@gravitee/ui-particles-angular 7.6.0 → 7.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3Jhdml0ZWUtdWktcGFydGljbGVzLWFuZ3VsYXItdGVzdGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3VpLXBhcnRpY2xlcy1hbmd1bGFyL3Rlc3RpbmcvZ3Jhdml0ZWUtdWktcGFydGljbGVzLWFuZ3VsYXItdGVzdGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
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 { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
17
+ export class DivHarness extends ComponentHarness {
18
+ /**
19
+ * Get Harness with the given filter.
20
+ *
21
+ * @param options Options for filtering which input instances are considered a match.
22
+ * @return a `HarnessPredicate` configured with the given options.
23
+ */
24
+ static with(options = {}) {
25
+ return new HarnessPredicate(DivHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
26
+ }
27
+ childLocatorFor(query) {
28
+ return this.locatorFor(query);
29
+ }
30
+ childLocatorForAll(query) {
31
+ return this.locatorForAll(query);
32
+ }
33
+ async getText(option) {
34
+ let element = await this.host();
35
+ if (option?.childSelector) {
36
+ element = await this.locatorForOptional(option.childSelector)();
37
+ }
38
+ return element ? element.text() : null;
39
+ }
40
+ }
41
+ DivHarness.hostSelector = 'div';
42
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGl2Lmhhcm5lc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS1wYXJ0aWNsZXMtYW5ndWxhci90ZXN0aW5nL2hhcm5lc3Nlcy9kaXYuaGFybmVzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUNILE9BQU8sRUFBc0MsZ0JBQWdCLEVBQUUsZ0JBQWdCLEVBQTZCLE1BQU0sc0JBQXNCLENBQUM7QUFPekksTUFBTSxPQUFPLFVBQVcsU0FBUSxnQkFBZ0I7SUFHOUM7Ozs7O09BS0c7SUFDSSxNQUFNLENBQUMsSUFBSSxDQUFDLFVBQTZCLEVBQUU7UUFDaEQsT0FBTyxJQUFJLGdCQUFnQixDQUFDLFVBQVUsRUFBRSxPQUFPLENBQUMsQ0FBQyxTQUFTLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0FBQyxPQUFPLEVBQUUsSUFBSSxFQUFFLEVBQUUsQ0FDakcsZ0JBQWdCLENBQUMsYUFBYSxDQUFDLE9BQU8sQ0FBQyxPQU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luZyB8IG51bGw+IHtcbiAgICBsZXQgZWxlbWVudDogVGVzdEVsZW1lbnQgfCBudWxsID0gYXdhaXQgdGhpcy5ob3N0KCk7XG4gICAgaWYgKG9wdGlvbj8uY2hpbGRTZWxlY3Rvcikge1xuICAgICAgZWxlbWVudCA9IGF3YWl0IHRoaXMubG9jYXRvckZvck9wdGlvbmFsKG9wdGlvbi5jaGlsZFNlbGVjdG9yKSgpO1xuICAgIH1cblxuICAgIHJldHVybiBlbGVtZW50ID8gZWxlbWVudC50ZXh0KCkgOiBudWxsO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
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 * from './div.harness';
17
+ export * from './span.harness';
18
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS1wYXJ0aWNsZXMtYW5ndWxhci90ZXN0aW5nL2hhcm5lc3Nlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUNILGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQ29weXJpZ2h0IChDKSAyMDIzIFRoZSBHcmF2aXRlZSB0ZWFtIChodHRwOi8vZ3Jhdml0ZWUuaW8pXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICAgICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9kaXYuaGFybmVzcyc7XG5leHBvcnQgKiBmcm9tICcuL3NwYW4uaGFybmVzcyc7XG4iXX0=
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
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 { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
17
+ export class SpanHarness extends ComponentHarness {
18
+ /**
19
+ * Get Harness with the given filter.
20
+ *
21
+ * @param options Options for filtering which input instances are considered a match.
22
+ * @return a `HarnessPredicate` configured with the given options.
23
+ */
24
+ static with(options = {}) {
25
+ return new HarnessPredicate(SpanHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
26
+ }
27
+ childLocatorFor(query) {
28
+ return this.locatorFor(query);
29
+ }
30
+ childLocatorForAll(query) {
31
+ return this.locatorForAll(query);
32
+ }
33
+ async getText(option) {
34
+ let element = await this.host();
35
+ if (option?.childSelector) {
36
+ element = await this.locatorForOptional(option.childSelector)();
37
+ }
38
+ return element ? element.text() : null;
39
+ }
40
+ }
41
+ SpanHarness.hostSelector = 'span';
42
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhbi5oYXJuZXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWktcGFydGljbGVzLWFuZ3VsYXIvdGVzdGluZy9oYXJuZXNzZXMvc3Bhbi5oYXJuZXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBQ0gsT0FBTyxFQUFzQyxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFBNkIsTUFBTSxzQkFBc0IsQ0FBQztBQU96SSxNQUFNLE9BQU8sV0FBWSxTQUFRLGdCQUFnQjtJQUcvQzs7Ozs7T0FLRztJQUNJLE1BQU0sQ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gY2hpbGRMb2NhdG9yRm9yQWxsPFQgZXh0ZW5kcyBDb21wb25lbnRIYXJuZXNzPihxdWVyeTogSGFybmVzc1F1ZXJ5PFQ+KTogQXN5bmNGYWN0b3J5Rm48VFtdPiB7XG4gICAgcmV0dXJuIHRoaXMubG9jYXRvckZvckFsbChxdWVyeSk7XG4gIH1cblxuICBwdWJsaWMgYXN5bmMgZ2V0VGV4dChvcHRpb24/OiB7IGNoaWxkU2VsZWN0b3I/OiBzdHJpbmcgfSk6IFByb21pc2U8c3RyaW5nIHwgbnVsbD4ge1xuICAgIGxldCBlbGVtZW50OiBUZXN0RWxlbWVudCB8IG51bGwgPSBhd2FpdCB0aGlzLmhvc3QoKTtcbiAgICBpZiAob3B0aW9uPy5jaGlsZFNlbGVjdG9yKSB7XG4gICAgICBlbGVtZW50ID0gYXdhaXQgdGhpcy5sb2NhdG9yRm9yT3B0aW9uYWwob3B0aW9uLmNoaWxkU2VsZWN0b3IpKCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGVsZW1lbnQgPyBlbGVtZW50LnRleHQoKSA6IG51bGw7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
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 * from './harnesses';
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4u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9cbmV4cG9ydCAqIGZyb20gJy4vaGFybmVzc2VzJztcbiJdfQ==
@@ -0,0 +1,97 @@
1
+ import { __awaiter } from 'tslib';
2
+ import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
3
+
4
+ class DivHarness extends ComponentHarness {
5
+ /**
6
+ * Get Harness with the given filter.
7
+ *
8
+ * @param options Options for filtering which input instances are considered a match.
9
+ * @return a `HarnessPredicate` configured with the given options.
10
+ */
11
+ static with(options = {}) {
12
+ return new HarnessPredicate(DivHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
13
+ }
14
+ childLocatorFor(query) {
15
+ return this.locatorFor(query);
16
+ }
17
+ childLocatorForAll(query) {
18
+ return this.locatorForAll(query);
19
+ }
20
+ getText(option) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ let element = yield this.host();
23
+ if (option === null || option === void 0 ? void 0 : option.childSelector) {
24
+ element = yield this.locatorForOptional(option.childSelector)();
25
+ }
26
+ return element ? element.text() : null;
27
+ });
28
+ }
29
+ }
30
+ DivHarness.hostSelector = 'div';
31
+
32
+ class SpanHarness extends ComponentHarness {
33
+ /**
34
+ * Get Harness with the given filter.
35
+ *
36
+ * @param options Options for filtering which input instances are considered a match.
37
+ * @return a `HarnessPredicate` configured with the given options.
38
+ */
39
+ static with(options = {}) {
40
+ return new HarnessPredicate(SpanHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
41
+ }
42
+ childLocatorFor(query) {
43
+ return this.locatorFor(query);
44
+ }
45
+ childLocatorForAll(query) {
46
+ return this.locatorForAll(query);
47
+ }
48
+ getText(option) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ let element = yield this.host();
51
+ if (option === null || option === void 0 ? void 0 : option.childSelector) {
52
+ element = yield this.locatorForOptional(option.childSelector)();
53
+ }
54
+ return element ? element.text() : null;
55
+ });
56
+ }
57
+ }
58
+ SpanHarness.hostSelector = 'span';
59
+
60
+ /*
61
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
62
+ *
63
+ * Licensed under the Apache License, Version 2.0 (the "License");
64
+ * you may not use this file except in compliance with the License.
65
+ * You may obtain a copy of the License at
66
+ *
67
+ * http://www.apache.org/licenses/LICENSE-2.0
68
+ *
69
+ * Unless required by applicable law or agreed to in writing, software
70
+ * distributed under the License is distributed on an "AS IS" BASIS,
71
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ * See the License for the specific language governing permissions and
73
+ * limitations under the License.
74
+ */
75
+
76
+ /*
77
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
78
+ *
79
+ * Licensed under the Apache License, Version 2.0 (the "License");
80
+ * you may not use this file except in compliance with the License.
81
+ * You may obtain a copy of the License at
82
+ *
83
+ * http://www.apache.org/licenses/LICENSE-2.0
84
+ *
85
+ * Unless required by applicable law or agreed to in writing, software
86
+ * distributed under the License is distributed on an "AS IS" BASIS,
87
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
88
+ * See the License for the specific language governing permissions and
89
+ * limitations under the License.
90
+ */
91
+
92
+ /**
93
+ * Generated bundle index. Do not edit.
94
+ */
95
+
96
+ export { DivHarness, SpanHarness };
97
+ //# sourceMappingURL=gravitee-ui-particles-angular-testing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gravitee-ui-particles-angular-testing.mjs","sources":["../../../projects/ui-particles-angular/testing/harnesses/div.harness.ts","../../../projects/ui-particles-angular/testing/harnesses/span.harness.ts","../../../projects/ui-particles-angular/testing/harnesses/index.ts","../../../projects/ui-particles-angular/testing/public-api.ts","../../../projects/ui-particles-angular/testing/gravitee-ui-particles-angular-testing.ts"],"sourcesContent":["/*\n * Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { AsyncFactoryFn, BaseHarnessFilters, ComponentHarness, HarnessPredicate, HarnessQuery, TestElement } from '@angular/cdk/testing';\n\nexport type DivHarnessFilters = BaseHarnessFilters & {\n /** Filters based on the text */\n text?: string | RegExp;\n};\n\nexport class DivHarness extends ComponentHarness {\n public static hostSelector = 'div';\n\n /**\n * Get Harness with the given filter.\n *\n * @param options Options for filtering which input instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n public static with(options: DivHarnessFilters = {}): HarnessPredicate<DivHarness> {\n return new HarnessPredicate(DivHarness, options).addOption('text', options.text, (harness, text) =>\n HarnessPredicate.stringMatches(harness.getText(), text),\n );\n }\n\n public childLocatorFor<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T> {\n return this.locatorFor(query);\n }\n\n public childLocatorForAll<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T[]> {\n return this.locatorForAll(query);\n }\n\n public async getText(option?: { childSelector?: string }): Promise<string | null> {\n let element: TestElement | null = await this.host();\n if (option?.childSelector) {\n element = await this.locatorForOptional(option.childSelector)();\n }\n\n return element ? element.text() : null;\n }\n}\n","/*\n * Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { AsyncFactoryFn, BaseHarnessFilters, ComponentHarness, HarnessPredicate, HarnessQuery, TestElement } from '@angular/cdk/testing';\n\nexport type SpanHarnessFilters = BaseHarnessFilters & {\n /** Filters based on the text */\n text?: string | RegExp;\n};\n\nexport class SpanHarness extends ComponentHarness {\n public static hostSelector = 'span';\n\n /**\n * Get Harness with the given filter.\n *\n * @param options Options for filtering which input instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n public static with(options: SpanHarnessFilters = {}): HarnessPredicate<SpanHarness> {\n return new HarnessPredicate(SpanHarness, options).addOption('text', options.text, (harness, text) =>\n HarnessPredicate.stringMatches(harness.getText(), text),\n );\n }\n\n public childLocatorFor<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T> {\n return this.locatorFor(query);\n }\n\n public childLocatorForAll<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T[]> {\n return this.locatorForAll(query);\n }\n\n public async getText(option?: { childSelector?: string }): Promise<string | null> {\n let element: TestElement | null = await this.host();\n if (option?.childSelector) {\n element = await this.locatorForOptional(option.childSelector)();\n }\n\n return element ? element.text() : null;\n }\n}\n","/*\n * Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport * from './div.harness';\nexport * from './span.harness';\n","/*\n * Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport * from './harnesses';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAsBa,mBAAmB,gBAAgB;;;;;;;IASvC,OAAO,IAAI,CAAC,UAA6B,EAAE;QAChD,OAAO,IAAI,gBAAgB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,IAAI,KAC7F,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CACxD,CAAC;KACH;IAEM,eAAe,CAA6B,KAAsB;QACvE,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;KAC/B;IAEM,kBAAkB,CAA6B,KAAsB;QAC1E,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAClC;IAEY,OAAO,CAAC,MAAmC;;YACtD,IAAI,OAAO,GAAuB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;YACpD,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,EAAE;gBACzB,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;aACjE;YAED,OAAO,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC;SACxC;KAAA;;AA7Ba,uBAAY,GAAG,KAAK;;MCDvB,oBAAoB,gBAAgB;;;;;;;IASxC,OAAO,IAAI,CAAC,UAA8B,EAAE;QACjD,OAAO,IAAI,gBAAgB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,IAAI,KAC9F,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CACxD,CAAC;KACH;IAEM,eAAe,CAA6B,KAAsB;QACvE,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;KAC/B;IAEM,kBAAkB,CAA6B,KAAsB;QAC1E,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAClC;IAEY,OAAO,CAAC,MAAmC;;YACtD,IAAI,OAAO,GAAuB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;YACpD,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,EAAE;gBACzB,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;aACjE;YAED,OAAO,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC;SACxC;KAAA;;AA7Ba,wBAAY,GAAG,MAAM;;ACvBrC;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;ACAA;;;;;;"}
@@ -0,0 +1,122 @@
1
+ import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
+
3
+ /*
4
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ class DivHarness extends ComponentHarness {
19
+ /**
20
+ * Get Harness with the given filter.
21
+ *
22
+ * @param options Options for filtering which input instances are considered a match.
23
+ * @return a `HarnessPredicate` configured with the given options.
24
+ */
25
+ static with(options = {}) {
26
+ return new HarnessPredicate(DivHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
27
+ }
28
+ childLocatorFor(query) {
29
+ return this.locatorFor(query);
30
+ }
31
+ childLocatorForAll(query) {
32
+ return this.locatorForAll(query);
33
+ }
34
+ async getText(option) {
35
+ let element = await this.host();
36
+ if (option?.childSelector) {
37
+ element = await this.locatorForOptional(option.childSelector)();
38
+ }
39
+ return element ? element.text() : null;
40
+ }
41
+ }
42
+ DivHarness.hostSelector = 'div';
43
+
44
+ /*
45
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
46
+ *
47
+ * Licensed under the Apache License, Version 2.0 (the "License");
48
+ * you may not use this file except in compliance with the License.
49
+ * You may obtain a copy of the License at
50
+ *
51
+ * http://www.apache.org/licenses/LICENSE-2.0
52
+ *
53
+ * Unless required by applicable law or agreed to in writing, software
54
+ * distributed under the License is distributed on an "AS IS" BASIS,
55
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56
+ * See the License for the specific language governing permissions and
57
+ * limitations under the License.
58
+ */
59
+ class SpanHarness extends ComponentHarness {
60
+ /**
61
+ * Get Harness with the given filter.
62
+ *
63
+ * @param options Options for filtering which input instances are considered a match.
64
+ * @return a `HarnessPredicate` configured with the given options.
65
+ */
66
+ static with(options = {}) {
67
+ return new HarnessPredicate(SpanHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
68
+ }
69
+ childLocatorFor(query) {
70
+ return this.locatorFor(query);
71
+ }
72
+ childLocatorForAll(query) {
73
+ return this.locatorForAll(query);
74
+ }
75
+ async getText(option) {
76
+ let element = await this.host();
77
+ if (option?.childSelector) {
78
+ element = await this.locatorForOptional(option.childSelector)();
79
+ }
80
+ return element ? element.text() : null;
81
+ }
82
+ }
83
+ SpanHarness.hostSelector = 'span';
84
+
85
+ /*
86
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
87
+ *
88
+ * Licensed under the Apache License, Version 2.0 (the "License");
89
+ * you may not use this file except in compliance with the License.
90
+ * You may obtain a copy of the License at
91
+ *
92
+ * http://www.apache.org/licenses/LICENSE-2.0
93
+ *
94
+ * Unless required by applicable law or agreed to in writing, software
95
+ * distributed under the License is distributed on an "AS IS" BASIS,
96
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
97
+ * See the License for the specific language governing permissions and
98
+ * limitations under the License.
99
+ */
100
+
101
+ /*
102
+ * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
103
+ *
104
+ * Licensed under the Apache License, Version 2.0 (the "License");
105
+ * you may not use this file except in compliance with the License.
106
+ * You may obtain a copy of the License at
107
+ *
108
+ * http://www.apache.org/licenses/LICENSE-2.0
109
+ *
110
+ * Unless required by applicable law or agreed to in writing, software
111
+ * distributed under the License is distributed on an "AS IS" BASIS,
112
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113
+ * See the License for the specific language governing permissions and
114
+ * limitations under the License.
115
+ */
116
+
117
+ /**
118
+ * Generated bundle index. Do not edit.
119
+ */
120
+
121
+ export { DivHarness, SpanHarness };
122
+ //# sourceMappingURL=gravitee-ui-particles-angular-testing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gravitee-ui-particles-angular-testing.mjs","sources":["../../../projects/ui-particles-angular/testing/harnesses/div.harness.ts","../../../projects/ui-particles-angular/testing/harnesses/span.harness.ts","../../../projects/ui-particles-angular/testing/harnesses/index.ts","../../../projects/ui-particles-angular/testing/public-api.ts","../../../projects/ui-particles-angular/testing/gravitee-ui-particles-angular-testing.ts"],"sourcesContent":["/*\n * Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { AsyncFactoryFn, BaseHarnessFilters, ComponentHarness, HarnessPredicate, HarnessQuery, TestElement } from '@angular/cdk/testing';\n\nexport type DivHarnessFilters = BaseHarnessFilters & {\n /** Filters based on the text */\n text?: string | RegExp;\n};\n\nexport class DivHarness extends ComponentHarness {\n public static hostSelector = 'div';\n\n /**\n * Get Harness with the given filter.\n *\n * @param options Options for filtering which input instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n public static with(options: DivHarnessFilters = {}): HarnessPredicate<DivHarness> {\n return new HarnessPredicate(DivHarness, options).addOption('text', options.text, (harness, text) =>\n HarnessPredicate.stringMatches(harness.getText(), text),\n );\n }\n\n public childLocatorFor<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T> {\n return this.locatorFor(query);\n }\n\n public childLocatorForAll<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T[]> {\n return this.locatorForAll(query);\n }\n\n public async getText(option?: { childSelector?: string }): Promise<string | null> {\n let element: TestElement | null = await this.host();\n if (option?.childSelector) {\n element = await this.locatorForOptional(option.childSelector)();\n }\n\n return element ? element.text() : null;\n }\n}\n","/*\n * Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { AsyncFactoryFn, BaseHarnessFilters, ComponentHarness, HarnessPredicate, HarnessQuery, TestElement } from '@angular/cdk/testing';\n\nexport type SpanHarnessFilters = BaseHarnessFilters & {\n /** Filters based on the text */\n text?: string | RegExp;\n};\n\nexport class SpanHarness extends ComponentHarness {\n public static hostSelector = 'span';\n\n /**\n * Get Harness with the given filter.\n *\n * @param options Options for filtering which input instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n public static with(options: SpanHarnessFilters = {}): HarnessPredicate<SpanHarness> {\n return new HarnessPredicate(SpanHarness, options).addOption('text', options.text, (harness, text) =>\n HarnessPredicate.stringMatches(harness.getText(), text),\n );\n }\n\n public childLocatorFor<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T> {\n return this.locatorFor(query);\n }\n\n public childLocatorForAll<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T[]> {\n return this.locatorForAll(query);\n }\n\n public async getText(option?: { childSelector?: string }): Promise<string | null> {\n let element: TestElement | null = await this.host();\n if (option?.childSelector) {\n element = await this.locatorForOptional(option.childSelector)();\n }\n\n return element ? element.text() : null;\n }\n}\n","/*\n * Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport * from './div.harness';\nexport * from './span.harness';\n","/*\n * Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport * from './harnesses';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;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M,kBAAkB,CAA6B,KAAsB;QAC1E,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAClC;IAEM,MAAM,OAAO,CAAC,MAAmC;QACtD,IAAI,OAAO,GAAuB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QACpD,IAAI,MAAM,EAAE,aAAa,EAAE;YACzB,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;SACjE;QAED,OAAO,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC;KACxC;;AA7Ba,wBAAY,GAAG,MAAM;;ACvBrC;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;ACAA;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-particles-angular",
3
- "version": "7.6.0",
3
+ "version": "7.7.0",
4
4
  "description": "Gravitee.io - UI Particles Angular",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,6 +52,14 @@
52
52
  "es2015": "./fesm2015/gravitee-ui-particles-angular.mjs",
53
53
  "node": "./fesm2015/gravitee-ui-particles-angular.mjs",
54
54
  "default": "./fesm2020/gravitee-ui-particles-angular.mjs"
55
+ },
56
+ "./testing": {
57
+ "types": "./testing/gravitee-ui-particles-angular-testing.d.ts",
58
+ "esm2020": "./esm2020/testing/gravitee-ui-particles-angular-testing.mjs",
59
+ "es2020": "./fesm2020/gravitee-ui-particles-angular-testing.mjs",
60
+ "es2015": "./fesm2015/gravitee-ui-particles-angular-testing.mjs",
61
+ "node": "./fesm2015/gravitee-ui-particles-angular-testing.mjs",
62
+ "default": "./fesm2020/gravitee-ui-particles-angular-testing.mjs"
55
63
  }
56
64
  },
57
65
  "sideEffects": false
@@ -17,7 +17,7 @@
17
17
  @forward './gio-mat-palettes' show $mat-primary-palette, $mat-accent-palette, $mat-success-palette, $mat-warning-palette, $mat-error-palette,
18
18
  $mat-method-palette, $mat-basic-palette, $mat-blue-palette, $mat-cyan-palette, $mat-space-palette, $mat-dove-palette;
19
19
 
20
- @forward './theme/typography/gio-typography' show subtitle-typography, code-typography, link-typography;
20
+ @forward './theme/typography/gio-typography' show subtitle-typography, code-typography, link-typography, caption-2;
21
21
 
22
22
  @forward './gio-mat-theme-variable' show $mat-theme, $mat-typography, $mat-theme-dark;
23
23
 
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@gravitee/ui-particles-angular/testing" />
5
+ export * from './public-api';
@@ -0,0 +1,20 @@
1
+ import { AsyncFactoryFn, BaseHarnessFilters, ComponentHarness, HarnessPredicate, HarnessQuery } from '@angular/cdk/testing';
2
+ export declare type DivHarnessFilters = BaseHarnessFilters & {
3
+ /** Filters based on the text */
4
+ text?: string | RegExp;
5
+ };
6
+ export declare class DivHarness extends ComponentHarness {
7
+ static hostSelector: string;
8
+ /**
9
+ * Get Harness with the given filter.
10
+ *
11
+ * @param options Options for filtering which input instances are considered a match.
12
+ * @return a `HarnessPredicate` configured with the given options.
13
+ */
14
+ static with(options?: DivHarnessFilters): HarnessPredicate<DivHarness>;
15
+ childLocatorFor<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T>;
16
+ childLocatorForAll<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T[]>;
17
+ getText(option?: {
18
+ childSelector?: string;
19
+ }): Promise<string | null>;
20
+ }
@@ -0,0 +1,2 @@
1
+ export * from './div.harness';
2
+ export * from './span.harness';
@@ -0,0 +1,20 @@
1
+ import { AsyncFactoryFn, BaseHarnessFilters, ComponentHarness, HarnessPredicate, HarnessQuery } from '@angular/cdk/testing';
2
+ export declare type SpanHarnessFilters = BaseHarnessFilters & {
3
+ /** Filters based on the text */
4
+ text?: string | RegExp;
5
+ };
6
+ export declare class SpanHarness extends ComponentHarness {
7
+ static hostSelector: string;
8
+ /**
9
+ * Get Harness with the given filter.
10
+ *
11
+ * @param options Options for filtering which input instances are considered a match.
12
+ * @return a `HarnessPredicate` configured with the given options.
13
+ */
14
+ static with(options?: SpanHarnessFilters): HarnessPredicate<SpanHarness>;
15
+ childLocatorFor<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T>;
16
+ childLocatorForAll<T extends ComponentHarness>(query: HarnessQuery<T>): AsyncFactoryFn<T[]>;
17
+ getText(option?: {
18
+ childSelector?: string;
19
+ }): Promise<string | null>;
20
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../fesm2015/gravitee-ui-particles-angular-testing.mjs",
3
+ "es2020": "../fesm2020/gravitee-ui-particles-angular-testing.mjs",
4
+ "esm2020": "../esm2020/testing/gravitee-ui-particles-angular-testing.mjs",
5
+ "fesm2020": "../fesm2020/gravitee-ui-particles-angular-testing.mjs",
6
+ "fesm2015": "../fesm2015/gravitee-ui-particles-angular-testing.mjs",
7
+ "typings": "gravitee-ui-particles-angular-testing.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@gravitee/ui-particles-angular/testing"
10
+ }
@@ -0,0 +1 @@
1
+ export * from './harnesses';