--------------------------------------------------------------------------------
/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 |