@quadrel-enterprise-ui/framework 20.18.2 → 20.18.3
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.
|
@@ -28199,6 +28199,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
28199
28199
|
type: Input
|
|
28200
28200
|
}] } });
|
|
28201
28201
|
|
|
28202
|
+
class QdIconFacetComponent {
|
|
28203
|
+
facet;
|
|
28204
|
+
data;
|
|
28205
|
+
get stringData() {
|
|
28206
|
+
return this.data[this.facet.name];
|
|
28207
|
+
}
|
|
28208
|
+
get options() {
|
|
28209
|
+
return this.facet.options;
|
|
28210
|
+
}
|
|
28211
|
+
get icon() {
|
|
28212
|
+
return this.options.icon[this.stringData];
|
|
28213
|
+
}
|
|
28214
|
+
get status() {
|
|
28215
|
+
return this.options.status?.[this.stringData];
|
|
28216
|
+
}
|
|
28217
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdIconFacetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28218
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdIconFacetComponent, isStandalone: false, selector: "qd-icon-facet", inputs: { facet: "facet", data: "data" }, ngImport: i0, template: "<qd-icon\n *ngIf=\"icon\"\n role=\"img\"\n [icon]=\"icon\"\n [status]=\"status\"\n [attr.aria-label]=\"options.i18ns ? (options.i18ns + '.' + stringData | translate) : stringData\"\n></qd-icon>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
|
|
28219
|
+
}
|
|
28220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdIconFacetComponent, decorators: [{
|
|
28221
|
+
type: Component,
|
|
28222
|
+
args: [{ selector: 'qd-icon-facet', standalone: false, template: "<qd-icon\n *ngIf=\"icon\"\n role=\"img\"\n [icon]=\"icon\"\n [status]=\"status\"\n [attr.aria-label]=\"options.i18ns ? (options.i18ns + '.' + stringData | translate) : stringData\"\n></qd-icon>\n" }]
|
|
28223
|
+
}], propDecorators: { facet: [{
|
|
28224
|
+
type: Input
|
|
28225
|
+
}], data: [{
|
|
28226
|
+
type: Input
|
|
28227
|
+
}] } });
|
|
28228
|
+
|
|
28202
28229
|
class QdMultiSelectFacetComponent {
|
|
28203
28230
|
facet;
|
|
28204
28231
|
data;
|
|
@@ -28322,6 +28349,7 @@ class QdDynamicFacetsService {
|
|
|
28322
28349
|
facets = new Map([
|
|
28323
28350
|
['criticality', QdCriticalityFacetComponent],
|
|
28324
28351
|
['date', QdDateFacetComponent],
|
|
28352
|
+
['icon', QdIconFacetComponent],
|
|
28325
28353
|
['multiSelect', QdMultiSelectFacetComponent],
|
|
28326
28354
|
['progress', QdProgressFacetComponent],
|
|
28327
28355
|
['references', QdReferencesFacetComponent],
|
|
@@ -31138,6 +31166,7 @@ class QdPageModule {
|
|
|
31138
31166
|
QdSingleSelectFacetComponent,
|
|
31139
31167
|
QdMultiSelectFacetComponent,
|
|
31140
31168
|
QdDateFacetComponent,
|
|
31169
|
+
QdIconFacetComponent,
|
|
31141
31170
|
QdValueFacetComponent,
|
|
31142
31171
|
QdStatusFacetComponent,
|
|
31143
31172
|
QdDynamicFacetComponent,
|
|
@@ -31225,6 +31254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
31225
31254
|
QdSingleSelectFacetComponent,
|
|
31226
31255
|
QdMultiSelectFacetComponent,
|
|
31227
31256
|
QdDateFacetComponent,
|
|
31257
|
+
QdIconFacetComponent,
|
|
31228
31258
|
QdValueFacetComponent,
|
|
31229
31259
|
QdStatusFacetComponent,
|
|
31230
31260
|
QdDynamicFacetComponent,
|