├── projects └── aem-angular-core-wcm-components │ ├── core │ ├── src │ │ ├── core.module.spec.ts │ │ ├── emptyfunctions │ │ │ ├── separator.v1.isempty.ts │ │ │ ├── default.v1.isempty.ts │ │ │ ├── text.v2.isempty.ts │ │ │ ├── title.v2.isempty.ts │ │ │ ├── button.v1.isempty.ts │ │ │ ├── image.v2.isempty.ts │ │ │ ├── language-navigation.v1.isempty.ts │ │ │ ├── index.ts │ │ │ ├── teaser.v1.isempty.ts │ │ │ ├── breadcrumb.v2.isempty.ts │ │ │ ├── download.v1.isempty.ts │ │ │ ├── list.v2.isempty.ts │ │ │ └── navigation.v1.isempty.ts │ │ ├── model │ │ │ ├── CoreComponentModel.ts │ │ │ ├── NavigationItemModel.ts │ │ │ └── RoutedCoreComponentModel.ts │ │ ├── editplaceholder │ │ │ ├── editplaceholder.component.html │ │ │ └── editplaceholder.component.ts │ │ ├── pipes │ │ │ └── safeHtml.pipe.ts │ │ ├── public-api.ts │ │ ├── test.ts │ │ ├── services │ │ │ └── NavigationUtilityService.ts │ │ ├── utils │ │ │ └── MetaUtils.ts │ │ ├── core.module.ts │ │ └── AbstractCoreComponent.ts │ ├── tsconfig.lib.prod.json │ ├── ng-package.json │ ├── tslint.json │ ├── tsconfig.spec.json │ ├── package-lock.json │ ├── package.json │ ├── tsconfig.lib.json │ ├── karma.conf.js │ └── README.md │ ├── tsconfig.lib.prod.json │ ├── authoring │ ├── image │ │ └── v2 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── ng-package.json │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── src │ │ │ ├── public-api.ts │ │ │ ├── test.ts │ │ │ ├── image.v2.module.ts │ │ │ ├── image.v2.component.ts │ │ │ └── image.v2.component.html │ │ │ ├── karma.conf.js │ │ │ └── README.md │ ├── list │ │ └── v2 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── ng-package.json │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── src │ │ │ ├── public-api.ts │ │ │ ├── test.ts │ │ │ ├── list.v2.module.ts │ │ │ ├── list.v2.component.ts │ │ │ └── list.v2.component.html │ │ │ ├── karma.conf.js │ │ │ └── README.md │ ├── text │ │ └── v2 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── ng-package.json │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── src │ │ │ ├── public-api.ts │ │ │ ├── text.v2.component.ts │ │ │ ├── test.ts │ │ │ ├── text.v2.module.ts │ │ │ └── text.v2.component.html │ │ │ ├── karma.conf.js │ │ │ └── README.md │ ├── title │ │ └── v2 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── ng-package.json │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── src │ │ │ ├── public-api.ts │ │ │ ├── test.ts │ │ │ ├── title.v2.module.ts │ │ │ ├── title.v2.component.ts │ │ │ └── title.v2.component.html │ │ │ ├── karma.conf.js │ │ │ └── README.md │ ├── button │ │ └── v1 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── ng-package.json │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── src │ │ │ ├── public-api.ts │ │ │ ├── test.ts │ │ │ ├── button.v1.module.ts │ │ │ ├── button.v1.component.ts │ │ │ └── button.v1.component.html │ │ │ ├── karma.conf.js │ │ │ └── README.md │ ├── default │ │ └── v1 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── ng-package.json │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── src │ │ │ ├── public-api.ts │ │ │ ├── default.v1.component.html │ │ │ ├── default.v1.component.ts │ │ │ ├── test.ts │ │ │ └── default.v1.module.ts │ │ │ ├── karma.conf.js │ │ │ └── README.md │ ├── download │ │ └── v1 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── ng-package.json │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── src │ │ │ ├── public-api.ts │ │ │ ├── test.ts │ │ │ └── download.v1.module.ts │ │ │ ├── karma.conf.js │ │ │ └── README.md │ ├── separator │ │ └── v1 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── ng-package.json │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── src │ │ │ ├── separator.v1.component.html │ │ │ ├── public-api.ts │ │ │ ├── separator.v1.component.ts │ │ │ ├── test.ts │ │ │ ├── separator.v1.module.ts │ │ │ └── separator.v1.component.spec.ts │ │ │ ├── karma.conf.js │ │ │ └── README.md │ └── teaser │ │ └── v1 │ │ ├── tslint.json │ │ ├── tsconfig.lib.prod.json │ │ ├── tsconfig.lib.json │ │ ├── tsconfig.spec.json │ │ ├── ng-package.json │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── src │ │ ├── public-api.ts │ │ ├── test.ts │ │ ├── teaser.v1.module.ts │ │ ├── teaser.v1.component.ts │ │ └── teaser.v1.component.html │ │ ├── karma.conf.js │ │ └── README.md │ ├── layout │ ├── breadcrumb │ │ └── v2 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── src │ │ │ ├── public-api.ts │ │ │ ├── test.ts │ │ │ ├── breadcrumb.v2.module.ts │ │ │ ├── breadcrumb.v2.component.ts │ │ │ └── breadcrumb.v2.component.html │ │ │ ├── ng-package.json │ │ │ ├── package.json │ │ │ ├── karma.conf.js │ │ │ └── README.md │ ├── navigation │ │ └── v1 │ │ │ ├── tslint.json │ │ │ ├── tsconfig.lib.prod.json │ │ │ ├── tsconfig.lib.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── src │ │ │ ├── public-api.ts │ │ │ ├── test.ts │ │ │ ├── navigation.v1.module.ts │ │ │ └── navigation.v1.component.ts │ │ │ ├── ng-package.json │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── karma.conf.js │ │ │ └── README.md │ └── language-navigation │ │ └── v1 │ │ ├── tslint.json │ │ ├── tsconfig.lib.prod.json │ │ ├── tsconfig.lib.json │ │ ├── tsconfig.spec.json │ │ ├── src │ │ ├── public-api.ts │ │ ├── test.ts │ │ ├── language-navigation.v1.module.ts │ │ └── language-navigation.v1.component.ts │ │ ├── ng-package.json │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── karma.conf.js │ │ └── README.md │ ├── ng-package.json │ ├── tslint.json │ ├── tsconfig.spec.json │ ├── package.json │ ├── package-lock.json │ ├── tsconfig.lib.json │ ├── src │ ├── public-api.ts │ └── test.ts │ └── karma.conf.js ├── .npmignore ├── .gitignore ├── .github ├── workflows │ ├── security.yml │ ├── ci.yml │ └── release.yml ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md └── renovate.json ├── update-version.js ├── README.md ├── combine-coverage.js ├── tsconfig.json ├── karma-conf-generator.local.js └── karma-conf-generator.js /projects/aem-angular-core-wcm-components/core/src/core.module.spec.ts: -------------------------------------------------------------------------------- 1 | import './core.module'; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | config 2 | node 3 | node_modules 4 | .eslintignore 5 | .gitignore 6 | *.iml 7 | jest.config.js 8 | pom.xml 9 | tsconfig.json -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/separator.v1.isempty.ts: -------------------------------------------------------------------------------- 1 | export function SeparatorV1IsEmptyFn(): boolean{ 2 | return false; 3 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/model/CoreComponentModel.ts: -------------------------------------------------------------------------------- 1 | export interface CoreComponentModel{ 2 | hidePlaceHolder: boolean 3 | isInEditor:boolean 4 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "angularCompilerOptions": { 4 | "enableIvy": false 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.lib.json", 3 | "exclude": [ 4 | "src/test.ts", 5 | "**/*.spec.ts" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../dist/aem-angular-core-wcm-components", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | } 7 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.spec.json", 3 | "files": [ 4 | "src/test.ts" 5 | ], 6 | "include": [ 7 | "**/*.spec.ts", 8 | "**/*.d.ts" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/src/public-api.ts: -------------------------------------------------------------------------------- 1 | export * from "./navigation.v1.component"; 2 | export * from "./navigation.v1.module"; 3 | export {NavigationV1IsEmptyFn, NavigationItemModel, NavigationV1Item} from "@adobe/aem-core-components-angular-base/core"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/src/public-api.ts: -------------------------------------------------------------------------------- 1 | export * from "./breadcrumb.v2.component"; 2 | export * from "./breadcrumb.v2.module"; 3 | export {BreadCrumbV2IsEmptyFn, BreadCrumbV2ItemModel, BreadCrumbV2Model} from "@adobe/aem-core-components-angular-base/core"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/default.v1.isempty.ts: -------------------------------------------------------------------------------- 1 | 2 | export interface DefaultV1Model{ 3 | html: string; 4 | } 5 | 6 | export function DefaultV1IsEmptyFn(props:DefaultV1Model): boolean{ 7 | return props.html == null || props.html.trim().length === 0; 8 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/src/public-api.ts: -------------------------------------------------------------------------------- 1 | export * from "./language-navigation.v1.component"; 2 | export * from "./language-navigation.v1.module"; 3 | export {LanguageNavigationV1Item, LanguageNavigationV1Model} from "@adobe/aem-core-components-angular-base/core"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/text.v2.isempty.ts: -------------------------------------------------------------------------------- 1 | 2 | export interface TextV2Model { 3 | text?: string; 4 | richText: boolean 5 | } 6 | 7 | export function TextV2IsEmptyFn(props:TextV2Model): boolean{ 8 | return props.text == null || props.text.trim().length === 0; 9 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../dist/aem-angular-core-wcm-components/core", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/title.v2.isempty.ts: -------------------------------------------------------------------------------- 1 | export interface TitleV2Model{ 2 | text: string; 3 | linkURL: string; 4 | linkDisabled: boolean; 5 | type: string; 6 | } 7 | 8 | export function TitleV2IsEmptyFn(props:TitleV2Model): boolean{ 9 | return props.text == null || props.text.trim().length === 0; 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/authoring/list/v2", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/authoring/text/v2", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tslint.json", 3 | "rules": { 4 | "directive-selector": [ 5 | true, 6 | "attribute", 7 | "lib", 8 | "camelCase" 9 | ], 10 | "component-selector": [ 11 | true, 12 | "element", 13 | "lib", 14 | "kebab-case" 15 | ] 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/authoring/button/v1", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/authoring/default/v1", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/authoring/image/v2", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/authoring/teaser/v1", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/authoring/title/v2", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json", 3 | "rules": { 4 | "directive-selector": [ 5 | true, 6 | "attribute", 7 | "lib", 8 | "camelCase" 9 | ], 10 | "component-selector": [ 11 | true, 12 | "element", 13 | "lib", 14 | "kebab-case" 15 | ] 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/layout/breadcrumb/v2", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/layout/navigation/v1", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts" 12 | ], 13 | "include": [ 14 | "**/*.spec.ts", 15 | "**/*.d.ts" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/authoring/download/v1", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/authoring/separator/v1", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../../out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts" 12 | ], 13 | "include": [ 14 | "**/*.spec.ts", 15 | "**/*.d.ts" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../../../../dist/aem-angular-core-wcm-components/layout/language-navigation/v1", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | }, 7 | "whitelistedNonPeerDependencies": [ 8 | "." 9 | ] 10 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-base", 3 | "version": "1.0.16", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@angular/common": "^9.1.12", 8 | "@angular/core": "^9.1.12" 9 | }, 10 | "dependencies": { 11 | "tslib": "^2.0.3" 12 | } 13 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | .idea 3 | .classpath 4 | .metadata 5 | .project 6 | .settings 7 | .externalToolBuilders 8 | maven-eclipse.xml 9 | *.swp 10 | *.iml 11 | *.ipr 12 | *.iws 13 | *.bak 14 | .vlt 15 | .DS_Store 16 | jcr.log 17 | atlassian-ide-plugin.xml 18 | .vlt-sync.log 19 | .vlt-sync-config.properties 20 | node 21 | node_modules 22 | 23 | dist 24 | coverage 25 | 26 | **/clientlibs/angular-spacomponents/resources/**/* 27 | **/clientlibs/angular-webcomponents/resources/**/* -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/button.v1.isempty.ts: -------------------------------------------------------------------------------- 1 | import {RoutedCoreComponentModel} from "../model/RoutedCoreComponentModel"; 2 | 3 | export interface ButtonV1Model extends RoutedCoreComponentModel{ 4 | text?: string; 5 | link?: string; 6 | icon?: string; 7 | ariaLabel?: string; 8 | } 9 | 10 | export function ButtonV1IsEmptyFn(props:ButtonV1Model): boolean{ 11 | return props.text == null || props.text.trim().length === 0; 12 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-base", 3 | "version": "1.0.9", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "2.0.3", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", 10 | "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/image.v2.isempty.ts: -------------------------------------------------------------------------------- 1 | import {RoutedCoreComponentModel} from "../model/RoutedCoreComponentModel"; 2 | 3 | export interface ImageV2Model extends RoutedCoreComponentModel{ 4 | src: string 5 | alt: string 6 | displayPopupTitle?: boolean 7 | title?: string 8 | link?: string 9 | } 10 | 11 | export function ImageV2IsEmptyFn(props:ImageV2Model) { 12 | return (!props.src) || props.src.length === 0; 13 | } 14 | 15 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/language-navigation.v1.isempty.ts: -------------------------------------------------------------------------------- 1 | import {NavigationV1Item, NavigationV1Model} from "./navigation.v1.isempty"; 2 | 3 | export interface LanguageNavigationV1Item extends NavigationV1Item{ 4 | locale: string, 5 | country: string, 6 | language: string 7 | children?: LanguageNavigationV1Item[] 8 | } 9 | 10 | export interface LanguageNavigationV1Model extends NavigationV1Model{ 11 | items:LanguageNavigationV1Item[] 12 | } 13 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-image-v2", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-list-v2", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-text-v2", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-title-v2", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-button-v1", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-default-v1", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-download-v1", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-teaser-v1", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-separator-v1", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-navigation-v1", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /.github/workflows/security.yml: -------------------------------------------------------------------------------- 1 | name: Vulnerability check 2 | on: 3 | push: 4 | branches: 5 | - master 6 | pull_request_target: 7 | 8 | jobs: 9 | security: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout source code 13 | uses: actions/checkout@master 14 | - name: Run Snyk to check for vulnerabilities 15 | uses: snyk/actions/node@master 16 | env: 17 | SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} 18 | with: 19 | command: monitor --all-projects --exclude=examples,pom.xml 20 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-language-navigation-v1", 3 | "version": "0.0.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "tslib": { 8 | "version": "1.14.1", 9 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 10 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./button.v1.isempty"; 2 | export * from "./default.v1.isempty"; 3 | export * from "./download.v1.isempty"; 4 | export * from "./image.v2.isempty"; 5 | export * from "./list.v2.isempty"; 6 | export * from "./separator.v1.isempty"; 7 | export * from "./teaser.v1.isempty"; 8 | export * from "./text.v2.isempty"; 9 | export * from "./title.v2.isempty"; 10 | export * from "./breadcrumb.v2.isempty"; 11 | export * from "./navigation.v1.isempty"; 12 | export * from "./language-navigation.v1.isempty"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-list-v2", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-text-v2", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /update-version.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs'); 2 | const path = require('path'); 3 | 4 | const generatedPackageJson = require('./dist/aem-angular-core-wcm-components/package.json'); 5 | 6 | const sourcePackageJson = require('./projects/aem-angular-core-wcm-components/package.json'); 7 | 8 | const destPath = path.join('projects', 'aem-angular-core-wcm-components', 'package.json'); 9 | 10 | sourcePackageJson['version'] = generatedPackageJson['version']; 11 | 12 | const data = JSON.stringify(sourcePackageJson,null, 4); 13 | fs.writeFileSync(destPath,data,{encoding:'utf8',flag:'w'}) -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-button-v1", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-image-v2", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-teaser-v1", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-title-v2", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-default-v1", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-download-v1", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-separator-v1", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-breadcrumb-v2", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-navigation-v1", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../../out-tsc/lib", 5 | "target": "es2015", 6 | "declaration": true, 7 | "inlineSources": true, 8 | "types": [], 9 | "lib": [ 10 | "dom", 11 | "es2018" 12 | ] 13 | }, 14 | "angularCompilerOptions": { 15 | "skipTemplateCodegen": true, 16 | "strictMetadataEmit": true, 17 | "enableResourceInlining": true 18 | }, 19 | "exclude": [ 20 | "src/test.ts", 21 | "**/*.spec.ts" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@adobe/aem-core-components-angular-core-language-navigation-v1", 3 | "version": "0.0.6", 4 | "author": "Adobe Systems Inc.", 5 | "license": "Apache-2.0", 6 | "peerDependencies": { 7 | "@adobe/aem-angular-editable-components": "^1.0.3", 8 | "@adobe/aem-spa-component-mapping": "^1.0.5", 9 | "@adobe/aem-spa-page-model-manager": "^1.0.3", 10 | "@angular/common": "^9.1.12", 11 | "@angular/core": "^9.1.12" 12 | }, 13 | "dependencies": { 14 | "tslib": "^1.10.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../out-tsc/lib", 5 | "target": "es2015", 6 | "declaration": true, 7 | "inlineSources": true, 8 | 9 | "types": [], 10 | "lib": [ 11 | "dom", 12 | "es2020" 13 | ] 14 | }, 15 | "angularCompilerOptions": { 16 | "skipTemplateCodegen": true, 17 | "strictMetadataEmit": true, 18 | "enableResourceInlining": true, 19 | "enableIvy": false 20 | }, 21 | "exclude": [ 22 | "src/test.ts", 23 | "**/*.spec.ts" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: Continuous Integration 2 | on: pull_request_target 3 | 4 | jobs: 5 | test-angular-base-components: 6 | name: test angular-base-components 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout source code 10 | uses: actions/checkout@v2 11 | - name: Setup Node.js 12 | uses: actions/setup-node@v1 13 | with: 14 | node-version: '12' 15 | - name: Install dependencies 16 | run: npm ci 17 | - name: Build the project 18 | run: npm run build-prod 19 | - name: Run tests and do code coverage check 20 | run: npm run test -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/teaser.v1.isempty.ts: -------------------------------------------------------------------------------- 1 | export function TeaserV1IsEmptyFn(props:TeaserV1Model): boolean{ 2 | return !props.title || !props.description 3 | } 4 | 5 | export interface TeaserV1Action { 6 | title: string 7 | URL: string 8 | routed?: boolean 9 | } 10 | 11 | export interface TeaserV1Model{ 12 | pretitle?: string 13 | title?: string 14 | description?: string 15 | titleType: string 16 | linkURL: string 17 | actionsEnabled: boolean 18 | imageLinkHidden: boolean 19 | titleLinkHidden: boolean 20 | actions: TeaserV1Action[] 21 | imagePath: string 22 | } 23 | 24 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/breadcrumb.v2.isempty.ts: -------------------------------------------------------------------------------- 1 | import {NavigationItemModel} from "../model/NavigationItemModel"; 2 | import {RoutedCoreComponentModel} from "../model/RoutedCoreComponentModel"; 3 | 4 | export interface BreadCrumbV2ItemModel extends NavigationItemModel{ 5 | active: boolean 6 | url: string 7 | title: string 8 | } 9 | 10 | export interface BreadCrumbV2Model extends RoutedCoreComponentModel{ 11 | items: BreadCrumbV2ItemModel[] 12 | ariaLabelI18n: string 13 | } 14 | 15 | export function BreadCrumbV2IsEmptyFn(props: BreadCrumbV2Model): boolean { 16 | return props.items == null || props.items.length === 0; 17 | } 18 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: "[feature] " 5 | labels: feature-request 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/download.v1.isempty.ts: -------------------------------------------------------------------------------- 1 | export interface DownloadV1LabelsModel { 2 | filename?: string 3 | filesize?: string; 4 | fileformat?: string; 5 | } 6 | 7 | export interface DownloadV1Model{ 8 | url?: string 9 | title: string 10 | description?: string 11 | actionText?: string 12 | filename?: string 13 | format?: string 14 | size?: string 15 | extension: string 16 | displayFilename: boolean 17 | displaySize: boolean 18 | displayFormat: boolean 19 | labels: DownloadV1LabelsModel 20 | } 21 | 22 | 23 | export function DownloadV1IsEmptyFn(props:DownloadV1Model): boolean{ 24 | return props.url == null || props.url.trim().length === 0; 25 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: "[bug]" 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **Package version** 14 | Provide a package version where the bug occurs. 15 | 16 | **To Reproduce** 17 | Steps to reproduce the behavior: 18 | 1. Go to '...' 19 | 2. Click on '....' 20 | 3. Scroll down to '....' 21 | 4. See error 22 | 23 | **Expected behavior** 24 | A clear and concise description of what you expected to happen. 25 | 26 | **Screenshots** 27 | If applicable, add screenshots to help explain your problem. 28 | 29 | **Additional context** 30 | Add any other context about the problem here. 31 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/list.v2.isempty.ts: -------------------------------------------------------------------------------- 1 | import {RoutedCoreComponentModel} from "../model/RoutedCoreComponentModel"; 2 | 3 | export interface ListV2Item extends RoutedCoreComponentModel{ 4 | url?:string 5 | lastModified?:number 6 | lastModifiedFormatted?:string 7 | description?:string 8 | path:string 9 | title:string 10 | } 11 | 12 | 13 | export interface ListV2Model extends RoutedCoreComponentModel{ 14 | items:ListV2Item[] 15 | dateFormatString: string 16 | showDescription: boolean 17 | showModificationDate: boolean 18 | linkItems: boolean 19 | } 20 | 21 | export function ListV2IsEmptyFn(props:ListV2Model): boolean{ 22 | return props.items == null || props.items.length === 0; 23 | } 24 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/emptyfunctions/navigation.v1.isempty.ts: -------------------------------------------------------------------------------- 1 | import {NavigationItemModel} from "../model/NavigationItemModel"; 2 | import {RoutedCoreComponentModel} from "../model/RoutedCoreComponentModel"; 3 | 4 | export interface NavigationV1Item extends NavigationItemModel{ 5 | level: number, 6 | active: boolean, 7 | title: string, 8 | url: string, 9 | lastModified: number, 10 | description?: string, 11 | path: string, 12 | children?: NavigationV1Item[] 13 | } 14 | 15 | export interface NavigationV1Model extends RoutedCoreComponentModel{ 16 | items:NavigationV1Item[] 17 | accessibilityLabel?: string 18 | } 19 | 20 | export function NavigationV1IsEmptyFn(props:NavigationV1Model): boolean{ 21 | return props.items == null || props.items.length === 0; 22 | } 23 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | on: 3 | push: 4 | branches: 5 | - master 6 | jobs: 7 | release: 8 | name: Release and publish module 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: Checkout source code 12 | uses: actions/checkout@v2 13 | with: 14 | fetch-depth: 0 15 | - name: Setup Node.js 16 | uses: actions/setup-node@v2 17 | with: 18 | node-version: 12 19 | - name: Install dependencies 20 | run: npm ci 21 | - name: Build the project 22 | run: npm run build-prod 23 | - name: Run tests and do code coverage check 24 | run: npm run test 25 | - name: Release module and publish it in github.com and npmjs.com 26 | env: 27 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 28 | NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} 29 | run: npm run semantic-release 30 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | export * from "./aem-angular-core-wcm-components.module"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/editplaceholder/editplaceholder.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
{{emptyText}}
-------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/src/separator.v1.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 |
19 |
-------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | export * from "./text.v2.component"; 18 | 19 | export * from "./text.v2.module"; 20 | export {TextV2IsEmptyFn, TextV2Model} from "@adobe/aem-core-components-angular-base/core"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | export {ButtonV1Model, ButtonV1IsEmptyFn} from "@adobe/aem-core-components-angular-base/core"; 17 | 18 | export * from "./button.v1.component"; 19 | export * from "./button.v1.module"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | export * from "./image.v2.component"; 18 | export * from "./image.v2.module"; 19 | 20 | export {ImageV2IsEmptyFn,ImageV2Model} from "@adobe/aem-core-components-angular-base/core"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | export * from "./separator.v1.component"; 18 | 19 | export * from "./separator.v1.module"; 20 | export {SeparatorV1IsEmptyFn} from "@adobe/aem-core-components-angular-base/core"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | export * from "./title.v2.component"; 18 | 19 | export * from "./title.v2.module"; 20 | export {TitleV2IsEmptyFn, TitleV2Model} from "@adobe/aem-core-components-angular-base/core"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | export * from "./list.v2.component"; 18 | 19 | export * from "./list.v2.module"; 20 | export {ListV2IsEmptyFn, ListV2Item, ListV2Model} from "@adobe/aem-core-components-angular-base/core"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | export {DefaultV1Model, DefaultV1IsEmptyFn} from "@adobe/aem-core-components-angular-base/core" 17 | 18 | export * from "./default.v1.component"; 19 | export * from "./default.v1.module"; 20 | 21 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | export * from "./teaser.v1.component"; 18 | export * from "./teaser.v1.module"; 19 | export {TeaserV1IsEmptyFn, TeaserV1Action, TeaserV1Model} from "@adobe/aem-core-components-angular-base/core"; -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "timezone": "Europe/Zurich", 3 | "masterIssue": true, 4 | "packageRules": [ 5 | { 6 | "groupName": "@adobe fixes", 7 | "updateTypes": ["patch", "pin", "digest", "minor"], 8 | "automerge": true, 9 | "packagePatterns": ["^@adobe/"], 10 | "schedule": ["at any time"] 11 | }, 12 | { 13 | "groupName": "@adobe major", 14 | "updateTypes": ["major"], 15 | "packagePatterns": ["^@adobe/"], 16 | "automerge": false, 17 | "schedule": ["at any time"] 18 | }, 19 | { 20 | "groupName": "external fixes", 21 | "updateTypes": ["patch", "pin", "digest", "minor"], 22 | "automerge": false, 23 | "schedule": ["after 1pm on Monday"], 24 | "packagePatterns": ["^.+"], 25 | "excludePackagePatterns": ["^@adobe/"] 26 | }, 27 | { 28 | "groupName": "external major", 29 | "updateTypes": ["major"], 30 | "automerge": false, 31 | "packagePatterns": ["^.+"], 32 | "excludePackagePatterns": ["^@adobe/"], 33 | "schedule": ["after 1pm on Monday"] 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | export {DownloadV1IsEmptyFn, DownloadV1LabelsModel, DownloadV1Model} from "@adobe/aem-core-components-angular-base/core"; 18 | export * from "./download.v1.component"; 19 | 20 | export * from "./download.v1.module"; 21 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/model/NavigationItemModel.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {RoutedCoreComponentModel} from "./RoutedCoreComponentModel"; 18 | 19 | export interface NavigationItemModel extends RoutedCoreComponentModel{ 20 | active: boolean 21 | url: string 22 | path: string 23 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AngularCore 2 | 3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.8. 4 | 5 | ## Development server 6 | 7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. 8 | 9 | ## Code scaffolding 10 | 11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. 12 | 13 | ## Build 14 | 15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. 16 | 17 | ## Running unit tests 18 | 19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). 20 | 21 | ## Running end-to-end tests 22 | 23 | Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). 24 | 25 | ## Further help 26 | 27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 28 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/model/RoutedCoreComponentModel.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | /** 18 | * RoutedCoreComponentModel 19 | * Means that for underlying model (item), routing can be toggled on / off with the designated property 20 | */ 21 | export interface RoutedCoreComponentModel { 22 | /** 23 | * Flag property to toggle routing on / off. 24 | */ 25 | routed?: boolean; 26 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-core'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/pipes/safeHtml.pipe.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {Pipe} from "@angular/core"; 18 | import {DomSanitizer} from "@angular/platform-browser"; 19 | 20 | @Pipe({name: 'safeHtml'}) 21 | export class SafeHtmlPipe { 22 | constructor(private sanitizer:DomSanitizer){} 23 | 24 | transform(style) { 25 | return this.sanitizer.bypassSecurityTrustHtml(style); 26 | } 27 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-list-v2'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-text-v2'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-button-v1'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-default-v1'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-image-v2'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-teaser-v1'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-title-v2'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-download-v1'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-separator-v1'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-breadcrumb-v2'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-navigation-v1'); 24 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/karma.conf.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | const karmaConfigGenerator = require('../../../../../karma-conf-generator'); 21 | 22 | module.exports = function (config) { 23 | return karmaConfigGenerator(config, 'aem-angular-core-wcm-components-language-navigation-v1'); 24 | }; -------------------------------------------------------------------------------- /combine-coverage.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | const createReporter = require('istanbul-api').createReporter; 19 | const istanbulCoverage = require('istanbul-lib-coverage'); 20 | const coverage = require('./coverage/coverage-final.json'); 21 | 22 | const map = istanbulCoverage.createCoverageMap(); 23 | Object.keys(coverage).forEach(filename => map.addFileCoverage(coverage[filename])); 24 | 25 | const reporter = createReporter(); 26 | reporter.addAll(['html', 'lcovonly', 'text-summary']); 27 | reporter.write(map); -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/src/default.v1.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 |
24 |
-------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/README.md: -------------------------------------------------------------------------------- 1 | # AemAngularCoreSpaWcmComponents 2 | 3 | This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12. 4 | 5 | ## Code scaffolding 6 | 7 | Run `ng generate component component-name --project aem-angular-core-spa-wcm-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project aem-angular-core-spa-wcm-components`. 8 | > Note: Don't forget to add `--project aem-angular-core-spa-wcm-components` or else it will be added to the default project in your `angular.json` file. 9 | 10 | ## Build 11 | 12 | Run `ng build aem-angular-core-spa-wcm-components` to build the project. The build artifacts will be stored in the `dist/` directory. 13 | 14 | ## Publishing 15 | 16 | After building your library with `ng build aem-angular-core-spa-wcm-components`, go to the dist folder `cd dist/aem-angular-core-spa-wcm-components` and run `npm publish`. 17 | 18 | ## Running unit tests 19 | 20 | Run `ng test aem-angular-core-spa-wcm-components` to execute the unit tests via [Karma](https://karma-runner.github.io). 21 | 22 | ## Further help 23 | 24 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 25 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/public-api.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | export * from "./core.module"; 18 | export * from "./editplaceholder/editplaceholder.component"; 19 | export * from "./pipes/safeHtml.pipe"; 20 | export * from "./services/NavigationUtilityService"; 21 | export * from "./utils/MetaUtils"; 22 | export * from "./model/CoreComponentModel"; 23 | export * from "./model/NavigationItemModel"; 24 | export * from "./model/RoutedCoreComponentModel"; 25 | export * from "./AbstractRoutedCoreComponent"; 26 | export * from "./AbstractCoreComponent"; 27 | export * from "./emptyfunctions"; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/src/separator.v1.component.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | 19 | import {Component, HostBinding, Input} from "@angular/core"; 20 | import {AbstractCoreComponent, SeparatorV1IsEmptyFn} from "@adobe/aem-core-components-angular-base/core"; 21 | 22 | 23 | @Component({ 24 | selector: 'core-separator-v1', 25 | templateUrl: './separator.v1.component.html', 26 | }) 27 | export class SeparatorV1Component extends AbstractCoreComponent{ 28 | @Input() baseCssClass = 'cmp-separator'; 29 | 30 | get isEmpty(): boolean { 31 | return SeparatorV1IsEmptyFn(); 32 | } 33 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/src/text.v2.component.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | 19 | import {Component, HostBinding, Input} from "@angular/core"; 20 | import {AbstractCoreComponent, TextV2IsEmptyFn, TextV2Model} from "@adobe/aem-core-components-angular-base/core"; 21 | 22 | 23 | @Component({ 24 | selector: 'core-text-v2', 25 | templateUrl: './text.v2.component.html', 26 | }) 27 | export class TextV2Component extends AbstractCoreComponent implements TextV2Model { 28 | 29 | @Input() baseCssClass = 'cmp-text'; 30 | @Input() text?; 31 | @Input() richText = false; 32 | 33 | get isEmpty(): boolean { 34 | return TextV2IsEmptyFn(this); 35 | } 36 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/src/default.v1.component.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {Component, HostBinding, Input} from '@angular/core'; 18 | import {AbstractCoreComponent, DefaultV1IsEmptyFn, DefaultV1Model} from "@adobe/aem-core-components-angular-base/core"; 19 | 20 | 21 | @Component({ 22 | selector: 'core-default-v1', 23 | templateUrl: './default.v1.component.html', 24 | }) 25 | export class DefaultV1Component extends AbstractCoreComponent implements DefaultV1Model{ 26 | 27 | @Input() baseCssClass = 'cmp-default'; 28 | @Input() html; 29 | 30 | get isEmpty(): boolean { 31 | return DefaultV1IsEmptyFn(this); 32 | } 33 | 34 | get aHtml(){ 35 | return this.html; 36 | } 37 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "baseUrl": "./", 5 | "outDir": "./dist/out-tsc", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "downlevelIteration": true, 9 | "experimentalDecorators": true, 10 | "emitDecoratorMetadata": true, 11 | "module": "esnext", 12 | "moduleResolution": "node", 13 | "importHelpers": true, 14 | "target": "es2015", 15 | "lib": [ 16 | "es2020", 17 | "dom" 18 | ], 19 | "paths": { 20 | "@angular/*": ["./node_modules/@angular/*"], 21 | "@adobe/aem-core-components-angular-spa": [ 22 | "./dist/aem-angular-core-spa-wcm-components" 23 | ], 24 | "@adobe/aem-core-components-angular-spa/*": [ 25 | "./dist/aem-angular-core-spa-wcm-components/*" 26 | ], 27 | "@adobe/aem-core-components-angular-base": [ 28 | "./dist/aem-angular-core-wcm-components" 29 | ], 30 | "@adobe/aem-core-components-angular-base/*": [ 31 | "./dist/aem-angular-core-wcm-components/*" 32 | ], 33 | "@adobe/aem-angular-editable-components":[ 34 | "./node_modules/@adobe/aem-angular-editable-components" 35 | ] 36 | } 37 | }, 38 | "angularCompilerOptions": { 39 | "enableIvy": false, 40 | "fullTemplateTypeCheck": true, 41 | "strictInjectionParameters": true 42 | } 43 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import 'core-js/features/reflect'; 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: any; 28 | 29 | // First, initialize the Angular testing environment. 30 | getTestBed().initTestEnvironment( 31 | BrowserDynamicTestingModule, 32 | platformBrowserDynamicTesting() 33 | ); 34 | // Then we find all the tests. 35 | const context = require.context('./../', true, /\.spec\.ts$/); 36 | // And load the modules. 37 | context.keys().map(context); 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/src/list.v2.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | import {NgModule} from '@angular/core'; 17 | import {CommonModule} from "@angular/common"; 18 | import {BrowserModule} from "@angular/platform-browser"; 19 | import {RouterModule} from "@angular/router"; 20 | import {ListV2Component} from "./list.v2.component"; 21 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 22 | 23 | @NgModule({ 24 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore], 25 | declarations: [ 26 | ListV2Component 27 | ], 28 | exports: [ 29 | ListV2Component 30 | ], 31 | entryComponents: [ 32 | ListV2Component, 33 | ], 34 | }) 35 | export class AemAngularCoreWcmComponentsListV2 { 36 | } 37 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/src/image.v2.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | import {NgModule} from '@angular/core'; 17 | import {CommonModule} from "@angular/common"; 18 | import {BrowserModule} from "@angular/platform-browser"; 19 | import {RouterModule} from "@angular/router"; 20 | import {ImageV2Component} from "./image.v2.component"; 21 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 22 | 23 | @NgModule({ 24 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore], 25 | declarations: [ 26 | ImageV2Component 27 | ], 28 | exports: [ 29 | ImageV2Component 30 | ], 31 | entryComponents: [ 32 | ImageV2Component, 33 | ], 34 | }) 35 | export class AemAngularCoreWcmComponentsImageV2 { 36 | } 37 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/src/text.v2.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import {NgModule} from '@angular/core'; 19 | import {CommonModule} from "@angular/common"; 20 | import {BrowserModule} from "@angular/platform-browser"; 21 | import {RouterModule} from "@angular/router"; 22 | import {TextV2Component} from "./text.v2.component"; 23 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 24 | 25 | @NgModule({ 26 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore], 27 | declarations: [ 28 | TextV2Component 29 | ], 30 | exports: [ 31 | TextV2Component 32 | ], 33 | entryComponents: [ 34 | TextV2Component, 35 | ], 36 | }) 37 | export class AemAngularCoreWcmComponentsTextV2 { 38 | } 39 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/src/title.v2.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {NgModule} from '@angular/core'; 18 | import {CommonModule} from "@angular/common"; 19 | import {BrowserModule} from "@angular/platform-browser"; 20 | import {RouterModule} from "@angular/router"; 21 | import {TitleV2Component} from "./title.v2.component"; 22 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 23 | 24 | @NgModule({ 25 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore], 26 | declarations: [ 27 | TitleV2Component 28 | ], 29 | exports: [ 30 | TitleV2Component 31 | ], 32 | entryComponents: [ 33 | TitleV2Component, 34 | ], 35 | }) 36 | export class AemAngularCoreWcmComponentsTitleV2 { 37 | } 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/default/v1/src/default.v1.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | import {NgModule} from '@angular/core'; 17 | import {CommonModule} from "@angular/common"; 18 | import {BrowserModule} from "@angular/platform-browser"; 19 | import {RouterModule} from "@angular/router"; 20 | import {DefaultV1Component} from "./default.v1.component"; 21 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 22 | 23 | @NgModule({ 24 | imports: [CommonModule, BrowserModule, RouterModule, AemAngularCoreWcmComponentsCore], 25 | declarations: [ 26 | DefaultV1Component 27 | ], 28 | exports: [ 29 | DefaultV1Component 30 | ], 31 | entryComponents: [ 32 | DefaultV1Component, 33 | ], 34 | }) 35 | export class AemAngularCoreWcmComponentsDefaultV1 { 36 | } 37 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/src/button.v1.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import {NgModule} from '@angular/core'; 19 | import {CommonModule} from "@angular/common"; 20 | import {BrowserModule} from "@angular/platform-browser"; 21 | import {RouterModule} from "@angular/router"; 22 | import {ButtonV1Component} from "./button.v1.component"; 23 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 24 | 25 | @NgModule({ 26 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore], 27 | declarations: [ 28 | ButtonV1Component 29 | ], 30 | exports: [ 31 | ButtonV1Component 32 | ], 33 | entryComponents: [ 34 | ButtonV1Component, 35 | ], 36 | }) 37 | export class AemAngularCoreWcmComponentsButtonV1 { 38 | } 39 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/text/v2/src/text.v2.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 |
27 | 28 |
29 | 30 | 31 | 32 | 33 |
34 |

{{text}}

35 |
36 |
-------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/src/breadcrumb.v2.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | import {NgModule} from '@angular/core'; 17 | import {CommonModule} from "@angular/common"; 18 | import {BrowserModule} from "@angular/platform-browser"; 19 | import {RouterModule} from "@angular/router"; 20 | import {BreadCrumbV2Component} from "./breadcrumb.v2.component"; 21 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 22 | 23 | @NgModule({ 24 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore], 25 | declarations: [ 26 | BreadCrumbV2Component 27 | ], 28 | exports: [ 29 | BreadCrumbV2Component 30 | ], 31 | entryComponents: [ 32 | BreadCrumbV2Component, 33 | ], 34 | }) 35 | export class AemAngularCoreWcmComponentsBreadCrumbV2 { 36 | } 37 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/src/navigation.v1.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | import {NgModule} from '@angular/core'; 17 | import {CommonModule} from "@angular/common"; 18 | import {BrowserModule} from "@angular/platform-browser"; 19 | import {RouterModule} from "@angular/router"; 20 | import {NavigationV1Component} from "./navigation.v1.component"; 21 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 22 | 23 | @NgModule({ 24 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore], 25 | declarations: [ 26 | NavigationV1Component 27 | ], 28 | exports: [ 29 | NavigationV1Component 30 | ], 31 | entryComponents: [ 32 | NavigationV1Component, 33 | ], 34 | }) 35 | export class AemAngularCoreWcmComponentsNavigationV1 { 36 | } 37 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/src/separator.v1.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import {NgModule} from '@angular/core'; 19 | import {CommonModule} from "@angular/common"; 20 | import {BrowserModule} from "@angular/platform-browser"; 21 | import {RouterModule} from "@angular/router"; 22 | import {SeparatorV1Component} from "./separator.v1.component"; 23 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 24 | 25 | @NgModule({ 26 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore], 27 | declarations: [ 28 | SeparatorV1Component 29 | ], 30 | exports: [ 31 | SeparatorV1Component 32 | ], 33 | entryComponents: [ 34 | SeparatorV1Component, 35 | ], 36 | }) 37 | export class AemAngularCoreWcmComponentsSeparatorV1 { 38 | } 39 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/src/list.v2.component.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | 19 | import {Component, Input} from "@angular/core"; 20 | import { 21 | AbstractRoutedCoreComponent, ListV2IsEmptyFn, ListV2Item, 22 | ListV2Model, 23 | RoutedCoreComponentModel 24 | } from "@adobe/aem-core-components-angular-base/core"; 25 | 26 | 27 | 28 | 29 | @Component({ 30 | selector: 'core-list-v2', 31 | templateUrl: './list.v2.component.html' 32 | }) 33 | export class ListV2Component extends AbstractRoutedCoreComponent implements ListV2Model{ 34 | 35 | baseCssClass = 'cmp-list'; 36 | 37 | @Input() items:ListV2Item[]; 38 | @Input() dateFormatString; 39 | @Input() showDescription; 40 | @Input() showModificationDate; 41 | @Input() linkItems; 42 | 43 | get isEmpty(): boolean { 44 | return ListV2IsEmptyFn(this); 45 | } 46 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/download/v1/src/download.v1.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | import {ComponentFactory, ComponentFactoryResolver, NgModule} from '@angular/core'; 17 | import {CommonModule} from "@angular/common"; 18 | import {BrowserModule} from "@angular/platform-browser"; 19 | import {RouterModule} from "@angular/router"; 20 | import {DownloadV1Component} from "./download.v1.component"; 21 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 22 | 23 | @NgModule({ 24 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore], 25 | declarations: [ 26 | DownloadV1Component 27 | ], 28 | exports: [ 29 | DownloadV1Component 30 | ], 31 | entryComponents: [ 32 | DownloadV1Component, 33 | ], 34 | }) 35 | export class AemAngularCoreWcmComponentsDownloadV1{ 36 | } 37 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/src/title.v2.component.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | 19 | import {Component, HostBinding, Input} from "@angular/core"; 20 | 21 | import { 22 | AbstractRoutedCoreComponent, 23 | TitleV2IsEmptyFn, 24 | TitleV2Model 25 | } from "@adobe/aem-core-components-angular-base/core"; 26 | 27 | 28 | @Component({ 29 | selector: 'core-title-v2', 30 | templateUrl: './title.v2.component.html', 31 | }) 32 | export class TitleV2Component extends AbstractRoutedCoreComponent implements TitleV2Model{ 33 | 34 | @Input() baseCssClass = 'cmp-title'; 35 | 36 | @Input() text; 37 | @Input() linkURL; 38 | @Input() linkDisabled = false; 39 | @Input() type = 'h3'; 40 | 41 | get isEmpty(): boolean { 42 | return TitleV2IsEmptyFn(this); 43 | } 44 | 45 | get hasLink(): boolean{ 46 | return !!this.linkURL && this.linkURL.trim().length > 0; 47 | } 48 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/src/test.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 18 | 19 | import 'zone.js/dist/zone'; 20 | import 'zone.js/dist/zone-testing'; 21 | import { getTestBed } from '@angular/core/testing'; 22 | import { 23 | BrowserDynamicTestingModule, 24 | platformBrowserDynamicTesting 25 | } from '@angular/platform-browser-dynamic/testing'; 26 | 27 | declare const require: { 28 | context(path: string, deep?: boolean, filter?: RegExp): { 29 | keys(): string[]; 30 | (id: string): T; 31 | }; 32 | }; 33 | 34 | // First, initialize the Angular testing environment. 35 | getTestBed().initTestEnvironment( 36 | BrowserDynamicTestingModule, 37 | platformBrowserDynamicTesting() 38 | ); 39 | // Then we find all the tests. 40 | const context = require.context('./../', true, /\.spec\.ts$/); 41 | // And load the modules. 42 | context.keys().map(context); 43 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/src/language-navigation.v1.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | import {NgModule} from '@angular/core'; 17 | import {CommonModule} from "@angular/common"; 18 | import {BrowserModule} from "@angular/platform-browser"; 19 | import {RouterModule} from "@angular/router"; 20 | import {LanguageNavigationV1Component} from "./language-navigation.v1.component"; 21 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 22 | import {AemAngularCoreWcmComponentsNavigationV1} from "@adobe/aem-core-components-angular-base/layout/navigation/v1"; 23 | 24 | @NgModule({ 25 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore,AemAngularCoreWcmComponentsNavigationV1], 26 | declarations: [ 27 | LanguageNavigationV1Component 28 | ], 29 | exports: [ 30 | LanguageNavigationV1Component 31 | ], 32 | entryComponents: [ 33 | LanguageNavigationV1Component, 34 | ], 35 | }) 36 | export class AemAngularCoreWcmComponentsLanguageNavigationV1 { 37 | } 38 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/services/NavigationUtilityService.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {Injectable, InjectionToken} from "@angular/core"; 18 | import {NavigationItemModel} from "../model/NavigationItemModel"; 19 | 20 | /** 21 | * NavigationUtilityService 22 | * By providing a custom implementation, you can override various layouts components behaviour to mark an item active or not. 23 | * This is useful when you want to make it based on a browser router location. 24 | */ 25 | export interface NavigationUtilityService { 26 | isItemActive(item:NavigationItemModel):boolean 27 | } 28 | export const NAVIGATION_UTIL_SERVICE = new InjectionToken('NAVIGATION_UTIL_SERVICE'); 29 | 30 | @Injectable() 31 | export class DefaultNavigationUtilityServiceImpl implements NavigationUtilityService { 32 | 33 | /** 34 | * You may overrule this method to determine for example based on current URL / page context whether the item is active. 35 | * @param item 36 | */ 37 | isItemActive(item: NavigationItemModel): boolean { 38 | return item.active; 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/src/button.v1.component.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {Component, EventEmitter, Input, Output} from '@angular/core'; 18 | import {AbstractRoutedCoreComponent, ButtonV1Model, ButtonV1IsEmptyFn} from "@adobe/aem-core-components-angular-base/core"; 19 | 20 | @Component({ 21 | selector: 'core-button-v1', 22 | templateUrl: './button.v1.component.html', 23 | host: { 24 | '[attr.data-cq-data-path]':'cqPath' 25 | }, 26 | }) 27 | export class ButtonV1Component extends AbstractRoutedCoreComponent implements ButtonV1Model{ 28 | 29 | @Input() baseCssClass = 'cmp-button'; 30 | @Input() text?; 31 | @Input() link?; 32 | @Input() icon?; 33 | @Input() ariaLabel?; 34 | 35 | @Output() public clickRequest = new EventEmitter(); 36 | 37 | get iconClass():string{ 38 | return `${this.baseCssClass}__icon ${this.baseCssClass}__icon--${this.icon}`; 39 | } 40 | 41 | onClick() { 42 | this.clickRequest.emit(); 43 | } 44 | 45 | get isEmpty(): boolean { 46 | return ButtonV1IsEmptyFn(this); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/src/teaser.v1.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import {NgModule} from '@angular/core'; 19 | import {CommonModule} from "@angular/common"; 20 | import {BrowserModule} from "@angular/platform-browser"; 21 | import {RouterModule} from "@angular/router"; 22 | import {TeaserV1Component} from "./teaser.v1.component"; 23 | import {AemAngularCoreWcmComponentsCore} from "@adobe/aem-core-components-angular-base/core"; 24 | import {AemAngularCoreWcmComponentsImageV2} from "@adobe/aem-core-components-angular-base/authoring/image/v2"; 25 | import {AemAngularCoreWcmComponentsTitleV2} from "@adobe/aem-core-components-angular-base/authoring/title/v2"; 26 | 27 | @NgModule({ 28 | imports: [CommonModule, BrowserModule, RouterModule,AemAngularCoreWcmComponentsCore,AemAngularCoreWcmComponentsImageV2,AemAngularCoreWcmComponentsTitleV2], 29 | declarations: [ 30 | TeaserV1Component 31 | ], 32 | exports: [ 33 | TeaserV1Component 34 | ], 35 | entryComponents: [ 36 | TeaserV1Component 37 | ], 38 | }) 39 | export class AemAngularCoreWcmComponentsTeaserV1 { 40 | } 41 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/utils/MetaUtils.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Adobe 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | export class MetaUtils { 18 | 19 | /** 20 | * Returns if the code executes in the browser context or not by checking for the 21 | * existance of the window object 22 | * 23 | * @returns {Boolean} the result of the check of the existance of the window object 24 | */ 25 | static isBrowser():boolean { 26 | try { 27 | return typeof window !== 'undefined'; 28 | } catch (e) { 29 | return false; 30 | } 31 | } 32 | 33 | static getWcmMode():string { 34 | return MetaUtils.getMetaPropertyValue('cq:wcmmode'); 35 | } 36 | 37 | static isInEditor():boolean{ 38 | return this.getWcmMode() === 'edit'; 39 | } 40 | 41 | /** 42 | * Returns the value of the meta property with the given key 43 | * 44 | * @param {string} propertyName - name of the meta property 45 | * @return {string|undefined} 46 | */ 47 | static getMetaPropertyValue(propertyName:string):any { 48 | if (this.isBrowser()) { 49 | const meta = document.head.querySelector('meta[property="' + propertyName + '"]'); 50 | // @ts-ignore 51 | return meta && meta.content; 52 | } 53 | } 54 | 55 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/src/image.v2.component.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | import {Component, HostBinding, Input} from "@angular/core"; 19 | import { 20 | AbstractRoutedCoreComponent, ImageV2IsEmptyFn, 21 | ImageV2Model, 22 | RoutedCoreComponentModel 23 | } from "@adobe/aem-core-components-angular-base/core"; 24 | 25 | @Component({ 26 | selector: 'core-image-v2', 27 | templateUrl: './image.v2.component.html', 28 | }) 29 | export class ImageV2Component extends AbstractRoutedCoreComponent implements ImageV2Model{ 30 | 31 | @Input() baseCssClass = 'cmp-image'; 32 | 33 | @Input() src; 34 | @Input() alt; 35 | @Input() displayPopupTitle?; 36 | @Input() title?; 37 | @Input() link?; 38 | 39 | get hasTitle(): boolean { 40 | return !!this.title && this.title.trim().length > 0; 41 | } 42 | 43 | get hasLink(): boolean{ 44 | return !!this.link && this.link.trim().length > 0; 45 | } 46 | 47 | get isEmpty(): boolean { 48 | return ImageV2IsEmptyFn(this); 49 | } 50 | 51 | get containerCssClass() { 52 | return `${this.baseCssClass} ${(this.isInEditor) ? ' cq-dd-image' : ''}`; 53 | } 54 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/editplaceholder/editplaceholder.component.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {Component, Input} from "@angular/core"; 18 | 19 | export interface PlaceHolderModel { 20 | componentTitle?: string 21 | classAppend?: string 22 | emptyTextAppend?: string 23 | emptyText:string 24 | placeHolderCssClass:string 25 | } 26 | @Component({ 27 | selector: 'core-placeholder', 28 | templateUrl: './editplaceholder.component.html', 29 | }) 30 | export class EditPlaceholderComponent implements PlaceHolderModel{ 31 | 32 | static DEFAULT_EMPTY_TEXT_LABEL: string = 'Please configure the component'; 33 | @Input() classAppend?: string; 34 | @Input() componentTitle?: string; 35 | @Input() emptyTextAppend?: string; 36 | 37 | get emptyText() { 38 | const part1: string = (this.componentTitle != null && this.componentTitle.length > 0) ? this.componentTitle + ' - ' : ''; 39 | const part2: string = (this.emptyTextAppend != null) ? this.emptyTextAppend : EditPlaceholderComponent.DEFAULT_EMPTY_TEXT_LABEL; 40 | return part1 + part2; 41 | } 42 | 43 | get placeHolderCssClass():string{ 44 | return 'cq-placeholder ' + this.classAppend; 45 | } 46 | 47 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/core.module.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {NgModule, Type} from '@angular/core'; 18 | import {EditPlaceholderComponent} from "./editplaceholder/editplaceholder.component"; 19 | import {SafeHtmlPipe} from "./pipes/safeHtml.pipe"; 20 | import {DefaultNavigationUtilityServiceImpl, NAVIGATION_UTIL_SERVICE, NavigationUtilityService} from "./services/NavigationUtilityService"; 21 | import {CommonModule} from "@angular/common"; 22 | import {BrowserModule} from "@angular/platform-browser"; 23 | import {RouterModule} from "@angular/router"; 24 | 25 | export interface NavigationUtilityConfig { 26 | navigatonUtilityServiceImpl: Type; 27 | } 28 | 29 | @NgModule({ 30 | imports: [CommonModule, BrowserModule, RouterModule], 31 | providers: [ 32 | {provide: NAVIGATION_UTIL_SERVICE, useClass: DefaultNavigationUtilityServiceImpl} 33 | ], 34 | exports: [ 35 | EditPlaceholderComponent, 36 | SafeHtmlPipe 37 | ], 38 | declarations: [ 39 | EditPlaceholderComponent, 40 | SafeHtmlPipe 41 | ], 42 | entryComponents: [ 43 | EditPlaceholderComponent, 44 | ], 45 | }) 46 | export class AemAngularCoreWcmComponentsCore { 47 | } 48 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/src/teaser.v1.component.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | 18 | 19 | import {Component, HostBinding, Input} from "@angular/core"; 20 | import { 21 | AbstractRoutedCoreComponent, 22 | TeaserV1Action, 23 | TeaserV1IsEmptyFn, 24 | TeaserV1Model 25 | } from "@adobe/aem-core-components-angular-base/core"; 26 | 27 | 28 | @Component({ 29 | selector: 'core-teaser-v1', 30 | templateUrl: './teaser.v1.component.html', 31 | }) 32 | export class TeaserV1Component extends AbstractRoutedCoreComponent implements TeaserV1Model{ 33 | 34 | @Input() baseCssClass = 'cmp-teaser'; 35 | 36 | @Input() pretitle?: string; 37 | @Input() title?: string; 38 | @Input() description?: string; 39 | @Input() titleType: string; 40 | @Input() linkURL: string; 41 | @Input() actionsEnabled: boolean = false; 42 | @Input() imageLinkHidden: boolean; 43 | @Input() titleLinkHidden: boolean; 44 | @Input() actions: TeaserV1Action[] = []; 45 | @Input() imagePath: string; 46 | 47 | get isEmpty(): boolean { 48 | return TeaserV1IsEmptyFn(this); 49 | } 50 | 51 | get isShowingImage(): boolean{ 52 | return !!this.imagePath && this.imagePath.length > 0; 53 | } 54 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/src/breadcrumb.v2.component.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Adobe 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import {Component, HostBinding, Inject, Input} from "@angular/core"; 18 | 19 | import { 20 | AbstractRoutedCoreComponent, 21 | NavigationItemModel, 22 | RoutedCoreComponentModel, 23 | NAVIGATION_UTIL_SERVICE, 24 | NavigationUtilityService, 25 | BreadCrumbV2Model, BreadCrumbV2IsEmptyFn, BreadCrumbV2ItemModel 26 | } from "@adobe/aem-core-components-angular-base/core"; 27 | 28 | @Component({ 29 | selector: 'core-breadcrumb-v2', 30 | templateUrl: './breadcrumb.v2.component.html' 31 | }) 32 | export class BreadCrumbV2Component extends AbstractRoutedCoreComponent implements BreadCrumbV2Model { 33 | 34 | @Input() baseCssClass = 'cmp-breadcrumb'; 35 | navigationUtilService: NavigationUtilityService; 36 | 37 | @Input() items; 38 | @Input() ariaLabelI18n; 39 | 40 | constructor(@Inject(NAVIGATION_UTIL_SERVICE) navigationUtilService: NavigationUtilityService) { 41 | super(); 42 | this.navigationUtilService = navigationUtilService; 43 | } 44 | 45 | get isEmpty(): boolean { 46 | return BreadCrumbV2IsEmptyFn(this); 47 | } 48 | 49 | getItemCssClass(item: BreadCrumbV2ItemModel): string { 50 | return this.navigationUtilService.isItemActive(item) ? this.baseCssClass + '__item ' + this.baseCssClass + '__item--active' : this.baseCssClass + '__item'; 51 | } 52 | 53 | 54 | } -------------------------------------------------------------------------------- /karma-conf-generator.local.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | 20 | module.exports = function (config, projectName) { 21 | config.set({ 22 | basePath: '', 23 | frameworks: ['jasmine', '@angular-devkit/build-angular'], 24 | plugins: [ 25 | require('karma-jasmine'), 26 | require('karma-chrome-launcher'), 27 | require('karma-jasmine-html-reporter'), 28 | require('karma-coverage-istanbul-reporter'), 29 | require('@angular-devkit/build-angular/plugins/karma') 30 | ], 31 | client: { 32 | clearContext: false // leave Jasmine Spec Runner output visible in browser 33 | }, 34 | coverageIstanbulReporter: { 35 | dir: require('path').join(__dirname, '/coverage/' + projectName), 36 | reports: ['json'], 37 | fixWebpackSourcePaths: true 38 | }, 39 | reporters: ['progress', 'kjhtml'], 40 | port: 9876, 41 | colors: true, 42 | logLevel: config.LOG_INFO, 43 | failOnEmptyTestSuite: false, 44 | autoWatch: true, 45 | browsers: ['Chrome'], 46 | singleRun: false, 47 | restartOnFileChange: true 48 | }); 49 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/language-navigation/v1/src/language-navigation.v1.component.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Adobe 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import {Component, HostBinding, Input} from "@angular/core"; 18 | import {NavigationV1Component} from "@adobe/aem-core-components-angular-base/layout/navigation/v1"; 19 | 20 | import {NavigationV1IsEmptyFn, NavigationV1Item, LanguageNavigationV1Item, LanguageNavigationV1Model} from "@adobe/aem-core-components-angular-base/core"; 21 | 22 | @Component({ 23 | selector: 'core-language-navigation-v1', 24 | templateUrl: './language-navigation.v1.component.html' 25 | }) 26 | export class LanguageNavigationV1Component extends NavigationV1Component implements LanguageNavigationV1Model { 27 | @Input() baseCssClass = 'cmp-languagenavigation'; 28 | 29 | @Input() items: LanguageNavigationV1Item[]; 30 | @Input() accessibilityLabel; 31 | 32 | get isEmpty(): boolean { 33 | return NavigationV1IsEmptyFn(this); 34 | } 35 | 36 | getItemCssClass(item:LanguageNavigationV1Item):string{ 37 | const parent = super.getItemCssClass(item); 38 | const countryCode = ` ${this.baseCssClass}__item--countrycode-${item.country}`; 39 | const langCode = ` ${this.baseCssClass}__item--langcode-${item.language}`; 40 | 41 | return parent + countryCode + langCode; 42 | } 43 | 44 | /** 45 | * You may overrule this method to determine for example based on current URL / page context whether the item is active. 46 | * @param item 47 | */ 48 | isItemActive(item:NavigationV1Item):boolean{ 49 | return item.active; 50 | } 51 | } -------------------------------------------------------------------------------- /karma-conf-generator.js: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | // Karma configuration file, see link for more information 18 | // https://karma-runner.github.io/1.0/config/configuration-file.html 19 | const puppeteer = require('puppeteer'); 20 | process.env.CHROME_BIN = puppeteer.executablePath(); 21 | 22 | 23 | module.exports = function (config, projectName) { 24 | config.set({ 25 | basePath: '', 26 | frameworks: ['jasmine', '@angular-devkit/build-angular'], 27 | plugins: [ 28 | require('karma-jasmine'), 29 | require('karma-chrome-launcher'), 30 | require('karma-jasmine-html-reporter'), 31 | require('karma-coverage-istanbul-reporter'), 32 | require('@angular-devkit/build-angular/plugins/karma') 33 | ], 34 | client: { 35 | clearContext: false // leave Jasmine Spec Runner output visible in browser 36 | }, 37 | coverageIstanbulReporter: { 38 | dir: require('path').join(__dirname, '/coverage/' + projectName), 39 | reports: ['json'], 40 | fixWebpackSourcePaths: true 41 | }, 42 | reporters: ['progress', 'kjhtml'], 43 | port: 9876, 44 | colors: true, 45 | logLevel: config.LOG_INFO, 46 | failOnEmptyTestSuite: false, 47 | autoWatch: true, 48 | browsers: ['ChromeHeadless'], 49 | singleRun: true, 50 | restartOnFileChange: true 51 | }); 52 | }; -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/core/src/AbstractCoreComponent.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {HostBinding, Input} from "@angular/core"; 18 | import {CoreComponentModel} from "./model/CoreComponentModel"; 19 | import {MetaUtils} from "./utils/MetaUtils"; 20 | 21 | /** 22 | * AbstractCoreComponent 23 | * provides shared functionality / properties across all core component controllers 24 | */ 25 | 26 | export abstract class AbstractCoreComponent implements CoreComponentModel{ 27 | 28 | /** Force disable the placeholder at all times. This is useful for nested components. **/ 29 | @Input() hidePlaceHolder: boolean = false; 30 | 31 | @Input() cqForceReload = false; 32 | @Input() cqPath; 33 | 34 | @Input() id:string; 35 | 36 | @Input() baseCssClass; 37 | @Input() dataLayer: {[key: string]: {[key: string]: string}} = {}; 38 | 39 | /** 40 | * Method that needs to be overloaded, to determine whether the component should be treated as 'empty' 41 | */ 42 | public abstract get isEmpty():boolean; 43 | 44 | /** 45 | * Returns whether to show the placeholder for the editors, if we cannot display the component. 46 | */ 47 | public get shouldShowPlaceHolder():boolean { 48 | return (this.isEmpty && this.isInEditor === true && this.hidePlaceHolder !== true); 49 | } 50 | 51 | public get isInEditor(){ 52 | return MetaUtils.isInEditor(); 53 | } 54 | 55 | public get dataLayerString(){ 56 | return this.dataLayer ? JSON.stringify(this.dataLayer) : ""; 57 | } 58 | 59 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/title/v2/src/title.v2.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | 34 | 35 | 36 | 37 |
38 |

{{text}}

39 |

{{text}}

40 |

{{text}}

41 |
{{text}}
42 |
{{text}}
43 |

{{text}}

44 |
45 |
46 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/navigation/v1/src/navigation.v1.component.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Adobe 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import {Component, HostBinding, Inject, Input} from "@angular/core"; 18 | import { 19 | AbstractRoutedCoreComponent, 20 | NAVIGATION_UTIL_SERVICE, 21 | NavigationItemModel, 22 | NavigationUtilityService, NavigationV1IsEmptyFn, NavigationV1Item, NavigationV1Model, 23 | RoutedCoreComponentModel 24 | } from "@adobe/aem-core-components-angular-base/core"; 25 | 26 | 27 | @Component({ 28 | selector: 'core-navigation-v1', 29 | templateUrl: './navigation.v1.component.html' 30 | }) 31 | export class NavigationV1Component extends AbstractRoutedCoreComponent implements NavigationV1Model { 32 | 33 | @Input() baseCssClass = 'cmp-navigation'; 34 | 35 | navigationUtilService: NavigationUtilityService; 36 | 37 | @Input() items: NavigationV1Item[]; 38 | @Input() accessibilityLabel; 39 | 40 | constructor(@Inject(NAVIGATION_UTIL_SERVICE) navigationUtilService: NavigationUtilityService) { 41 | super(); 42 | this.navigationUtilService = navigationUtilService; 43 | } 44 | 45 | get isEmpty(): boolean { 46 | return NavigationV1IsEmptyFn(this); 47 | } 48 | 49 | 50 | getItemCssClass(item:NavigationV1Item):string{ 51 | const active:string = this.isItemActive(item) ? ` ${this.baseCssClass}__item--active`: ''; 52 | const level:string = ` ${this.baseCssClass}__item--level-${item.level}`; 53 | return `${this.baseCssClass}__item${active}${level}`; 54 | } 55 | 56 | /** 57 | * You may overrule this method to determine for example based on current URL / page context whether the item is active. 58 | * @param item 59 | */ 60 | isItemActive(item:NavigationItemModel):boolean{ 61 | return this.navigationUtilService.isItemActive(item); 62 | } 63 | } -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/image/v2/src/image.v2.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 | 33 |
34 | {{alt}} 35 | 36 |
37 |
38 |
39 | 40 | 41 | 42 | 44 | {{alt}} 45 | 46 | 47 | 48 | 49 | 50 | 51 | {{alt}} 52 | 53 | 54 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/list/v2/src/list.v2.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
    25 |
  • 26 |
    27 | 28 | {{item.description}} 29 |
    30 |
  • 31 |
32 |
33 | 34 | 35 | 36 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | {{item.title}} 48 | {{item.lastModifiedFormatted}} 49 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/button/v1/src/button.v1.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 |
24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 43 | 44 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/teaser/v1/src/teaser.v1.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 |
27 | 28 |
29 |
30 |
{{pretitle}}
31 | 32 |
33 |
34 | 35 | 36 | 37 | 38 | {{action.title}} 39 | 40 | 41 | 42 | {{action.title}} 46 | 47 | 48 | 49 |
50 | 51 |
52 | 53 |
54 | 55 |
56 | 57 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/authoring/separator/v1/src/separator.v1.component.spec.ts: -------------------------------------------------------------------------------- 1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 | ~ Copyright 2020 Adobe Systems Incorporated 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 16 | 17 | import {ComponentFixture, TestBed} from '@angular/core/testing'; 18 | 19 | import {BrowserDynamicTestingModule} from '@angular/platform-browser-dynamic/testing'; 20 | 21 | 22 | import {SeparatorV1Component} from './separator.v1.component'; 23 | import {AemAngularCoreWcmComponentsCore, MetaUtils} from "@adobe/aem-core-components-angular-base/core"; 24 | import {RouterTestingModule} from "@angular/router/testing"; 25 | 26 | 27 | describe('SeparatorV1Component', () => { 28 | 29 | let component: SeparatorV1Component; 30 | let fixture: ComponentFixture; 31 | 32 | let isInEditorSpy; 33 | 34 | beforeEach(() => { 35 | 36 | isInEditorSpy = spyOn(MetaUtils, 'isInEditor').and.returnValue(false); 37 | 38 | TestBed.configureTestingModule({ 39 | declarations: [ 40 | SeparatorV1Component 41 | ], 42 | imports: [ 43 | AemAngularCoreWcmComponentsCore, 44 | RouterTestingModule.withRoutes([]), 45 | ], 46 | }).overrideModule(BrowserDynamicTestingModule, { 47 | set: { 48 | entryComponents: [SeparatorV1Component] 49 | } 50 | }).compileComponents(); 51 | 52 | fixture = TestBed.createComponent(SeparatorV1Component); 53 | 54 | component = fixture.componentInstance; 55 | fixture.detectChanges(); 56 | 57 | }); 58 | 59 | 60 | 61 | it('render a separator', () => { 62 | isInEditorSpy.and.returnValue(false); 63 | 64 | const element = fixture.nativeElement; 65 | 66 | expect( element.querySelector('div.cmp-separator') ).toBeDefined(); 67 | 68 | 69 | }); 70 | 71 | it('render a separator with custom bem class', () => { 72 | isInEditorSpy.and.returnValue(false); 73 | 74 | component.baseCssClass = 'custombem'; 75 | fixture.detectChanges(); 76 | const element = fixture.nativeElement; 77 | 78 | expect( element.querySelector('div.custombem') ).toBeDefined(); 79 | 80 | 81 | }); 82 | 83 | 84 | }); 85 | -------------------------------------------------------------------------------- /projects/aem-angular-core-wcm-components/layout/breadcrumb/v2/src/breadcrumb.v2.component.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | {{item.title}} 66 | --------------------------------------------------------------------------------