@gravitee/ui-particles-angular 12.9.0 → 12.10.0-improvement-9d78975
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.
- package/assets/gio-icons.svg +6 -0
- package/esm2022/lib/gio-card-empty-state/gio-card-empty-state.component.mjs +3 -3
- package/esm2022/testing/harnesses/div.harness.mjs +7 -10
- package/esm2022/testing/harnesses/span.harness.mjs +7 -7
- package/fesm2022/gravitee-ui-particles-angular-testing.mjs +12 -15
- package/fesm2022/gravitee-ui-particles-angular-testing.mjs.map +1 -1
- package/fesm2022/gravitee-ui-particles-angular.mjs +2 -2
- package/fesm2022/gravitee-ui-particles-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/testing/harnesses/div.harness.d.ts +4 -4
- package/testing/harnesses/span.harness.d.ts +4 -3
package/assets/gio-icons.svg
CHANGED
|
@@ -291,6 +291,12 @@
|
|
|
291
291
|
<path fill="currentColor" d="M20.707 5.293a1 1 0 0 1 0 1.414l-11 11a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L9 15.586 19.293 5.293a1 1 0 0 1 1.414 0Z"></path>
|
|
292
292
|
</g>
|
|
293
293
|
</symbol>
|
|
294
|
+
<symbol fill="none" viewBox="0 0 24 24" id="check-circle">
|
|
295
|
+
<g>
|
|
296
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23Z" fill="currentColor"/>
|
|
297
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.70711 11.2929C8.09763 10.9024 8.7308 10.9024 9.12132 11.2929L11.4142 13.5858L15.7071 9.29289C16.0976 8.90237 16.7308 8.90237 17.1213 9.29289C17.5118 9.68342 17.5118 10.3166 17.1213 10.7071L12.1213 15.7071C11.7308 16.0976 11.0976 16.0976 10.7071 15.7071L7.70711 12.7071C7.31658 12.3166 7.31658 11.6834 7.70711 11.2929Z" fill="currentColor"/>
|
|
298
|
+
</g>
|
|
299
|
+
</symbol>
|
|
294
300
|
<symbol fill="none" viewBox="0 0 24 24" id="chevrons-down">
|
|
295
301
|
<g>
|
|
296
302
|
<path fill="currentColor" d="M6.293 12.293a1 1 0 0 1 1.414 0L12 16.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 0-1.414Z"></path>
|
|
@@ -20,11 +20,11 @@ import * as i2 from "@angular/material/card";
|
|
|
20
20
|
import * as i3 from "@angular/material/icon";
|
|
21
21
|
export class GioCardEmptyStateComponent {
|
|
22
22
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: GioCardEmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: GioCardEmptyStateComponent, selector: "gio-card-empty-state", inputs: { icon: "icon", title: "title", subtitle: "subtitle" }, ngImport: i0, template: "<!--\n\n Copyright (C) 2024 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\n-->\n<mat-card
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: GioCardEmptyStateComponent, selector: "gio-card-empty-state", inputs: { icon: "icon", title: "title", subtitle: "subtitle" }, ngImport: i0, template: "<!--\n\n Copyright (C) 2024 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\n-->\n<mat-card class=\"gio-empty-state\">\n <mat-card-content class=\"gio-empty-state__content\">\n <mat-icon *ngIf=\"icon\" class=\"gio-empty-state__content__icon\" [svgIcon]=\"'gio:' + icon\"></mat-icon>\n <div *ngIf=\"title\" class=\"mat-h3\">{{ title }}</div>\n <span *ngIf=\"subtitle\" class=\"gio-empty-state__content__subtitle\">{{ subtitle }}</span>\n </mat-card-content>\n</mat-card>\n", styles: ["@charset \"UTF-8\";.gio-top-bar-menu .gio-badge-accent{background-color:var(--gio-oem-palette--active, #e7e2fb);color:var(--gio-oem-palette--active-contrast, #100c27)}.gio-empty-state__content{display:flex;flex-direction:column;align-items:center}.gio-empty-state__content__subtitle{color:#606274;text-align:center}.gio-empty-state__content__icon{width:60px;height:60px;padding:inherit;border-radius:30px;margin-bottom:10px;background-color:#d6ffff;color:#007a7a}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i2.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
24
24
|
}
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: GioCardEmptyStateComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
|
-
args: [{ selector: 'gio-card-empty-state', template: "<!--\n\n Copyright (C) 2024 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\n-->\n<mat-card
|
|
27
|
+
args: [{ selector: 'gio-card-empty-state', template: "<!--\n\n Copyright (C) 2024 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\n-->\n<mat-card class=\"gio-empty-state\">\n <mat-card-content class=\"gio-empty-state__content\">\n <mat-icon *ngIf=\"icon\" class=\"gio-empty-state__content__icon\" [svgIcon]=\"'gio:' + icon\"></mat-icon>\n <div *ngIf=\"title\" class=\"mat-h3\">{{ title }}</div>\n <span *ngIf=\"subtitle\" class=\"gio-empty-state__content__subtitle\">{{ subtitle }}</span>\n </mat-card-content>\n</mat-card>\n", styles: ["@charset \"UTF-8\";.gio-top-bar-menu .gio-badge-accent{background-color:var(--gio-oem-palette--active, #e7e2fb);color:var(--gio-oem-palette--active-contrast, #100c27)}.gio-empty-state__content{display:flex;flex-direction:column;align-items:center}.gio-empty-state__content__subtitle{color:#606274;text-align:center}.gio-empty-state__content__icon{width:60px;height:60px;padding:inherit;border-radius:30px;margin-bottom:10px;background-color:#d6ffff;color:#007a7a}\n"] }]
|
|
28
28
|
}], propDecorators: { icon: [{
|
|
29
29
|
type: Input
|
|
30
30
|
}], title: [{
|
|
@@ -32,4 +32,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImpor
|
|
|
32
32
|
}], subtitle: [{
|
|
33
33
|
type: Input
|
|
34
34
|
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2lvLWNhcmQtZW1wdHktc3RhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWktcGFydGljbGVzLWFuZ3VsYXIvc3JjL2xpYi9naW8tY2FyZC1lbXB0eS1zdGF0ZS9naW8tY2FyZC1lbXB0eS1zdGF0ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS1wYXJ0aWNsZXMtYW5ndWxhci9zcmMvbGliL2dpby1jYXJkLWVtcHR5LXN0YXRlL2dpby1jYXJkLWVtcHR5LXN0YXRlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBQ0gsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7O0FBT2pELE1BQU0sT0FBTywwQkFBMEI7OEdBQTFCLDBCQUEwQjtrR0FBMUIsMEJBQTBCLDRIQ3RCdkMsaWpDQXdCQTs7MkZERmEsMEJBQTBCO2tCQUx0QyxTQUFTOytCQUNFLHNCQUFzQjs4QkFLaEIsSUFBSTtzQkFBbkIsS0FBSztnQkFDVSxLQUFLO3NCQUFwQixLQUFLO2dCQUNVLFFBQVE7c0JBQXZCLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQ29weXJpZ2h0IChDKS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gIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAgICBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cblxuLS0+XG48bWF0LWNhcmQgY2xhc3M9XCJnaW8tZW1wdHktc3RhdGVcIj5cbiAgPG1hdC1jYXJkLWNvbnRlbnQgY2xhc3M9XCJnaW8tZW1wdHktc3RhdGVfX2NvbnRlbnRcIj5cbiAgICA8bWF0LWljb24gKm5nSWY9XCJpY29uXCIgY2xhc3M9XCJnaW8tZW1wdHktc3RhdGVfX2NvbnRlbnRfX2ljb25cIiBbc3ZnSWNvbl09XCInZ2lvOicgKyBpY29uXCI+PC9tYXQtaWNvbj5cbiAgICA8ZGl2ICpuZ0lmPVwidGl0bGVcIiBjbGFzcz1cIm1hdC1oM1wiPnt7IHRpdGxlIH19PC9kaXY+XG4gICAgPHNwYW4gKm5nSWY9XCJzdWJ0aXRsZVwiIGNsYXNzPVwiZ2lvLWVtcHR5LXN0YXRlX19jb250ZW50X19zdWJ0aXRsZVwiPnt7IHN1YnRpdGxlIH19PC9zcGFuPlxuICA8L21hdC1jYXJkLWNvbnRlbnQ+XG48L21hdC1jYXJkPlxuIl19
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
17
17
|
export class DivHarness extends ComponentHarness {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.childLocatorFor = this.locatorFor;
|
|
21
|
+
this.childLocatorForOptional = this.locatorForOptional;
|
|
22
|
+
this.childLocatorForAll = this.locatorForAll;
|
|
23
|
+
}
|
|
18
24
|
static { this.hostSelector = 'div'; }
|
|
19
25
|
/**
|
|
20
26
|
* Get Harness with the given filter.
|
|
@@ -25,15 +31,6 @@ export class DivHarness extends ComponentHarness {
|
|
|
25
31
|
static with(options = {}) {
|
|
26
32
|
return new HarnessPredicate(DivHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
|
|
27
33
|
}
|
|
28
|
-
childLocatorFor(query) {
|
|
29
|
-
return this.locatorFor(query);
|
|
30
|
-
}
|
|
31
|
-
childLocatorForOptional(query) {
|
|
32
|
-
return this.locatorForOptional(query);
|
|
33
|
-
}
|
|
34
|
-
childLocatorForAll(query) {
|
|
35
|
-
return this.locatorForAll(query);
|
|
36
|
-
}
|
|
37
34
|
async getText(option) {
|
|
38
35
|
let element = await this.host();
|
|
39
36
|
if (option?.childSelector) {
|
|
@@ -42,4 +39,4 @@ export class DivHarness extends ComponentHarness {
|
|
|
42
39
|
return element ? element.text() : null;
|
|
43
40
|
}
|
|
44
41
|
}
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGl2Lmhhcm5lc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS1wYXJ0aWNsZXMtYW5ndWxhci90ZXN0aW5nL2hhcm5lc3Nlcy9kaXYuaGFybmVzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUNILE9BQU8sRUFBc0IsZ0JBQWdCLEVBQUUsZ0JBQWdCLEVBQWUsTUFBTSxzQkFBc0IsQ0FBQztBQU8zRyxNQUFNLE9BQU8sVUFBVyxTQUFRLGdCQUFnQjtJQUFoRDs7UUFlUyxvQkFBZSxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUM7UUFFbEMsNEJBQXVCLEdBQUcsSUFBSSxDQUFDLGtCQUFrQixDQUFDO1FBRWxELHVCQUFrQixHQUFHLElBQUksQ0FBQyxhQUFhLENBQUM7SUFVakQsQ0FBQzthQTVCZSxpQkFBW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uICAgICAgZWxlbWVudCA9IGF3YWl0IHRoaXMubG9jYXRvckZvck9wdGlvbmFsKG9wdGlvbi5jaGlsZFNlbGVjdG9yKSgpO1xuICAgIH1cblxuICAgIHJldHVybiBlbGVtZW50ID8gZWxlbWVudC50ZXh0KCkgOiBudWxsO1xuICB9XG59XG4iXX0=
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
17
17
|
export class SpanHarness extends ComponentHarness {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.childLocatorFor = this.locatorFor;
|
|
21
|
+
this.childLocatorForOptional = this.locatorForOptional;
|
|
22
|
+
this.childLocatorForAll = this.locatorForAll;
|
|
23
|
+
}
|
|
18
24
|
static { this.hostSelector = 'span'; }
|
|
19
25
|
/**
|
|
20
26
|
* Get Harness with the given filter.
|
|
@@ -25,12 +31,6 @@ export class SpanHarness extends ComponentHarness {
|
|
|
25
31
|
static with(options = {}) {
|
|
26
32
|
return new HarnessPredicate(SpanHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
|
|
27
33
|
}
|
|
28
|
-
childLocatorFor(query) {
|
|
29
|
-
return this.locatorFor(query);
|
|
30
|
-
}
|
|
31
|
-
childLocatorForAll(query) {
|
|
32
|
-
return this.locatorForAll(query);
|
|
33
|
-
}
|
|
34
34
|
async getText(option) {
|
|
35
35
|
let element = await this.host();
|
|
36
36
|
if (option?.childSelector) {
|
|
@@ -39,4 +39,4 @@ export class SpanHarness extends ComponentHarness {
|
|
|
39
39
|
return element ? element.text() : null;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhbi5oYXJuZXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZX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5nTWF0Y2hlcyhoYXJuZXNzLmdldFRleHQoKSwgdGV4dCksXG4gICAgKTtcbiAgfVxuXG4gIHB1YmxpYyBjaGlsZExvY2F0b3JGb3IgPSB0aGlzLmxvY2F0b3JGb3I7XG5cbiAgcHVibGljIGNoaWxkTG9jYXRvckZvck9wdGlvbmFsID0gdGhpcy5sb2NhdG9yRm9yT3B0aW9uYWw7XG5cbiAgcHVibGljIGNoaWxkTG9jYXRvckZvckFsbCA9IHRoaXMubG9jYXRvckZvckFsbDtcblxuICBwdWJsaWMgYXN5bmMgZ2V0VGV4dChvcHRpb24/OiB7IGNoaWxkU2VsZWN0b3I/OiBzdHJpbmcgfSk6IFByb21pc2U8c3RyaW5nIHwgbnVsbD4ge1xuICAgIGxldCBlbGVtZW50OiBUZXN0RWxlbWVudCB8IG51bGwgPSBhd2FpdCB0aGlzLmhvc3QoKTtcbiAgICBpZiAob3B0aW9uPy5jaGlsZFNlbGVjdG9yKSB7XG4gICAgICBlbGVtZW50ID0gYXdhaXQgdGhpcy5sb2NhdG9yRm9yT3B0aW9uYWwob3B0aW9uLmNoaWxkU2VsZWN0b3IpKCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGVsZW1lbnQgPyBlbGVtZW50LnRleHQoKSA6IG51bGw7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -16,6 +16,12 @@ import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
class DivHarness extends ComponentHarness {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.childLocatorFor = this.locatorFor;
|
|
22
|
+
this.childLocatorForOptional = this.locatorForOptional;
|
|
23
|
+
this.childLocatorForAll = this.locatorForAll;
|
|
24
|
+
}
|
|
19
25
|
static { this.hostSelector = 'div'; }
|
|
20
26
|
/**
|
|
21
27
|
* Get Harness with the given filter.
|
|
@@ -26,15 +32,6 @@ class DivHarness extends ComponentHarness {
|
|
|
26
32
|
static with(options = {}) {
|
|
27
33
|
return new HarnessPredicate(DivHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
|
|
28
34
|
}
|
|
29
|
-
childLocatorFor(query) {
|
|
30
|
-
return this.locatorFor(query);
|
|
31
|
-
}
|
|
32
|
-
childLocatorForOptional(query) {
|
|
33
|
-
return this.locatorForOptional(query);
|
|
34
|
-
}
|
|
35
|
-
childLocatorForAll(query) {
|
|
36
|
-
return this.locatorForAll(query);
|
|
37
|
-
}
|
|
38
35
|
async getText(option) {
|
|
39
36
|
let element = await this.host();
|
|
40
37
|
if (option?.childSelector) {
|
|
@@ -60,6 +57,12 @@ class DivHarness extends ComponentHarness {
|
|
|
60
57
|
* limitations under the License.
|
|
61
58
|
*/
|
|
62
59
|
class SpanHarness extends ComponentHarness {
|
|
60
|
+
constructor() {
|
|
61
|
+
super(...arguments);
|
|
62
|
+
this.childLocatorFor = this.locatorFor;
|
|
63
|
+
this.childLocatorForOptional = this.locatorForOptional;
|
|
64
|
+
this.childLocatorForAll = this.locatorForAll;
|
|
65
|
+
}
|
|
63
66
|
static { this.hostSelector = 'span'; }
|
|
64
67
|
/**
|
|
65
68
|
* Get Harness with the given filter.
|
|
@@ -70,12 +73,6 @@ class SpanHarness extends ComponentHarness {
|
|
|
70
73
|
static with(options = {}) {
|
|
71
74
|
return new HarnessPredicate(SpanHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
|
|
72
75
|
}
|
|
73
|
-
childLocatorFor(query) {
|
|
74
|
-
return this.locatorFor(query);
|
|
75
|
-
}
|
|
76
|
-
childLocatorForAll(query) {
|
|
77
|
-
return this.locatorForAll(query);
|
|
78
|
-
}
|
|
79
76
|
async getText(option) {
|
|
80
77
|
let element = await this.host();
|
|
81
78
|
if (option?.childSelector) {
|
|
@@ -1 +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 {
|
|
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 { BaseHarnessFilters, ComponentHarness, HarnessPredicate, 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 = this.locatorFor;\n\n public childLocatorForOptional = this.locatorForOptional;\n\n public childLocatorForAll = this.locatorForAll;\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 { BaseHarnessFilters, ComponentHarness, HarnessPredicate, 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 = this.locatorFor;\n\n public childLocatorForOptional = this.locatorForOptional;\n\n public childLocatorForAll = this.locatorForAll;\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;;;;;;;;;;;;;;AAcG;AAQG,MAAO,UAAW,SAAQ,gBAAgB,CAAA;AAAhD,IAAA,WAAA,GAAA;;AAeS,QAAA,IAAA,CAAA,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC;AAElC,QAAA,IAAA,CAAA,uBAAuB,GAAG,IAAI,CAAC,kBAAkB,CAAC;AAElD,QAAA,IAAA,CAAA,kBAAkB,GAAG,IAAI,CAAC,aAAa,CAAC;KAUhD;aA5Be,IAAY,CAAA,YAAA,GAAG,KAAH,CAAS,EAAA;AAEnC;;;;;AAKG;AACI,IAAA,OAAO,IAAI,CAAC,OAAA,GAA6B,EAAE,EAAA;AAChD,QAAA,OAAO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I,OAAO,GAAuB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;AACpD,QAAA,IAAI,MAAM,EAAE,aAAa,EAAE;YACzB,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;SACjE;AAED,QAAA,OAAO,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC;KACxC;;;AClDH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
@@ -7615,11 +7615,11 @@ const computeStyleAndContrastByPrefix = (prefix, color) => {
|
|
|
7615
7615
|
*/
|
|
7616
7616
|
class GioCardEmptyStateComponent {
|
|
7617
7617
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: GioCardEmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7618
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: GioCardEmptyStateComponent, selector: "gio-card-empty-state", inputs: { icon: "icon", title: "title", subtitle: "subtitle" }, ngImport: i0, template: "<!--\n\n Copyright (C) 2024 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\n-->\n<mat-card
|
|
7618
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: GioCardEmptyStateComponent, selector: "gio-card-empty-state", inputs: { icon: "icon", title: "title", subtitle: "subtitle" }, ngImport: i0, template: "<!--\n\n Copyright (C) 2024 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\n-->\n<mat-card class=\"gio-empty-state\">\n <mat-card-content class=\"gio-empty-state__content\">\n <mat-icon *ngIf=\"icon\" class=\"gio-empty-state__content__icon\" [svgIcon]=\"'gio:' + icon\"></mat-icon>\n <div *ngIf=\"title\" class=\"mat-h3\">{{ title }}</div>\n <span *ngIf=\"subtitle\" class=\"gio-empty-state__content__subtitle\">{{ subtitle }}</span>\n </mat-card-content>\n</mat-card>\n", styles: ["@charset \"UTF-8\";.gio-top-bar-menu .gio-badge-accent{background-color:var(--gio-oem-palette--active, #e7e2fb);color:var(--gio-oem-palette--active-contrast, #100c27)}.gio-empty-state__content{display:flex;flex-direction:column;align-items:center}.gio-empty-state__content__subtitle{color:#606274;text-align:center}.gio-empty-state__content__icon{width:60px;height:60px;padding:inherit;border-radius:30px;margin-bottom:10px;background-color:#d6ffff;color:#007a7a}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i2.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
7619
7619
|
}
|
|
7620
7620
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: GioCardEmptyStateComponent, decorators: [{
|
|
7621
7621
|
type: Component,
|
|
7622
|
-
args: [{ selector: 'gio-card-empty-state', template: "<!--\n\n Copyright (C) 2024 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\n-->\n<mat-card
|
|
7622
|
+
args: [{ selector: 'gio-card-empty-state', template: "<!--\n\n Copyright (C) 2024 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\n-->\n<mat-card class=\"gio-empty-state\">\n <mat-card-content class=\"gio-empty-state__content\">\n <mat-icon *ngIf=\"icon\" class=\"gio-empty-state__content__icon\" [svgIcon]=\"'gio:' + icon\"></mat-icon>\n <div *ngIf=\"title\" class=\"mat-h3\">{{ title }}</div>\n <span *ngIf=\"subtitle\" class=\"gio-empty-state__content__subtitle\">{{ subtitle }}</span>\n </mat-card-content>\n</mat-card>\n", styles: ["@charset \"UTF-8\";.gio-top-bar-menu .gio-badge-accent{background-color:var(--gio-oem-palette--active, #e7e2fb);color:var(--gio-oem-palette--active-contrast, #100c27)}.gio-empty-state__content{display:flex;flex-direction:column;align-items:center}.gio-empty-state__content__subtitle{color:#606274;text-align:center}.gio-empty-state__content__icon{width:60px;height:60px;padding:inherit;border-radius:30px;margin-bottom:10px;background-color:#d6ffff;color:#007a7a}\n"] }]
|
|
7623
7623
|
}], propDecorators: { icon: [{
|
|
7624
7624
|
type: Input
|
|
7625
7625
|
}], title: [{
|