@quadrel-enterprise-ui/framework 21.4.1 → 21.4.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.
- package/fesm2022/quadrel-enterprise-ui-framework.mjs +84 -14
- package/fesm2022/quadrel-enterprise-ui-framework.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/i18n/de.json +1 -0
- package/src/assets/i18n/en.json +1 -0
- package/src/assets/i18n/fr.json +1 -0
- package/src/assets/i18n/it.json +1 -0
- package/types/quadrel-enterprise-ui-framework.d.ts +44 -4
package/package.json
CHANGED
package/src/assets/i18n/de.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"i18n.qd.datepicker.a11y.yearPicker": "Jahr wählen",
|
|
10
10
|
"i18n.qd.datepicker.a11y.monthPicker": "Monat wählen",
|
|
11
11
|
"i18n.qd.datepicker.a11y.dialogLabel": "Datum wählen",
|
|
12
|
+
"i18n.qd.emptyValue.a11y.label": "Kein Wert",
|
|
12
13
|
"i18n.qd.fileCollector.title": "Datei Upload",
|
|
13
14
|
"i18n.qd.fileCollector.section.title": "QdFileCollector in QdSection",
|
|
14
15
|
"i18n.qd.fileCollector.standalone.addNew": "Hinzufügen",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"i18n.qd.datepicker.a11y.yearPicker": "Choose year",
|
|
10
10
|
"i18n.qd.datepicker.a11y.monthPicker": "Choose month",
|
|
11
11
|
"i18n.qd.datepicker.a11y.dialogLabel": "Choose date",
|
|
12
|
+
"i18n.qd.emptyValue.a11y.label": "No value",
|
|
12
13
|
"i18n.qd.fileCollector.title": "File Upload",
|
|
13
14
|
"i18n.qd.fileCollector.section.title": "QdFileCollector in QdSection",
|
|
14
15
|
"i18n.qd.fileCollector.standalone.addNew": "Add new",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"i18n.qd.datepicker.a11y.yearPicker": "Choisir l'année",
|
|
10
10
|
"i18n.qd.datepicker.a11y.monthPicker": "Choisir le mois",
|
|
11
11
|
"i18n.qd.datepicker.a11y.dialogLabel": "Choisir la date",
|
|
12
|
+
"i18n.qd.emptyValue.a11y.label": "Aucune valeur",
|
|
12
13
|
"i18n.qd.fileCollector.title": "Téléchargement de fichiers",
|
|
13
14
|
"i18n.qd.fileCollector.section.title": "QdFileCollector in QdSection",
|
|
14
15
|
"i18n.qd.fileCollector.standalone.addNew": "Ajouter",
|
package/src/assets/i18n/it.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"i18n.qd.datepicker.a11y.yearPicker": "Scegli l'anno",
|
|
10
10
|
"i18n.qd.datepicker.a11y.monthPicker": "Scegli il mese",
|
|
11
11
|
"i18n.qd.datepicker.a11y.dialogLabel": "Scegli la data",
|
|
12
|
+
"i18n.qd.emptyValue.a11y.label": "Nessun valore",
|
|
12
13
|
"i18n.qd.fileCollector.title": "Upload di file",
|
|
13
14
|
"i18n.qd.fileCollector.section.title": "QdFileCollector in QdSection",
|
|
14
15
|
"i18n.qd.fileCollector.standalone.addNew": "Aggiungere",
|
|
@@ -1708,9 +1708,16 @@ interface QdDataFacetsChipConfig {
|
|
|
1708
1708
|
maxChipCount?: number;
|
|
1709
1709
|
}
|
|
1710
1710
|
/**
|
|
1711
|
-
* @description
|
|
1711
|
+
* @description A single chip: either the label as a string, or the object variant.
|
|
1712
|
+
*
|
|
1713
|
+
* A chip shows text. Use the content type that fits a value of another type, for example
|
|
1714
|
+
* "boolean" for `true` and `false`, or "integer" and "currency" for numbers.
|
|
1712
1715
|
*/
|
|
1713
|
-
type
|
|
1716
|
+
type QdDataFacetsChipEntry = string | QdDataFacetsChipDataObject;
|
|
1717
|
+
/**
|
|
1718
|
+
* @description Type definition for data: one chip or a list of chips.
|
|
1719
|
+
*/
|
|
1720
|
+
type QdDataFacetsChipData = QdDataFacetsChipEntry | QdDataFacetsChipEntry[];
|
|
1714
1721
|
/**
|
|
1715
1722
|
* @description object variant for data
|
|
1716
1723
|
*/
|
|
@@ -2141,6 +2148,17 @@ interface QdTableRefreshConfig {
|
|
|
2141
2148
|
|
|
2142
2149
|
/**
|
|
2143
2150
|
* @description Type definition for tree data row object, including optional nested rows.
|
|
2151
|
+
*
|
|
2152
|
+
* A key without a column in "QdTreeConfig" is metadata. The tree never renders it, but keeps it on the row,
|
|
2153
|
+
* so it reaches the secondary action handlers. Use it for values that only the application needs,
|
|
2154
|
+
* for example the identifier of a record.
|
|
2155
|
+
*
|
|
2156
|
+
* @example
|
|
2157
|
+
* ```ts
|
|
2158
|
+
* type Columns = 'article' | 'mass' | 'recordId';
|
|
2159
|
+
*
|
|
2160
|
+
* const data: QdTreeData<Columns> = [{ article: 'Coffee', mass: 10, recordId: '0815' }];
|
|
2161
|
+
* ```
|
|
2144
2162
|
*/
|
|
2145
2163
|
type QdTreeDataRow<T extends string> = Partial<Record<T, QdTreeDataValue | QdTreeDataValue[]>> & {
|
|
2146
2164
|
uid?: string | number;
|
|
@@ -2259,6 +2277,8 @@ type QdTableRecentSecondaryAction<T extends string> = {
|
|
|
2259
2277
|
* @description Renders one or multiple chips.
|
|
2260
2278
|
*
|
|
2261
2279
|
* * Note: The content type "chip" can handle a single chip or an array of chips. A chip can be a simple string or an object of the form { label: string; state: QdChipState }.
|
|
2280
|
+
* * Note: A chip shows text. A value of another type is dropped and reported as an error. Use the content type that fits the value, for example "boolean" or "integer". Only when none of them fits, convert the value to a string yourself.
|
|
2281
|
+
* * Note: Entries without a label are dropped. If no entry is left at all, the component renders a dash instead of a chip.
|
|
2262
2282
|
* * Note: This is a base component for all potentially derived components and classes.
|
|
2263
2283
|
*/
|
|
2264
2284
|
declare class QdDataFacetsChipComponent implements OnInit, OnChanges {
|
|
@@ -2269,11 +2289,17 @@ declare class QdDataFacetsChipComponent implements OnInit, OnChanges {
|
|
|
2269
2289
|
private _chipsSubject;
|
|
2270
2290
|
chips$: Observable<QdDataFacetsChipDataObject[]>;
|
|
2271
2291
|
truncatedChips$: Observable<QdTableContentDataChipObject[]>;
|
|
2292
|
+
hasNoChips$: Observable<boolean>;
|
|
2293
|
+
readonly emptyValue = "-";
|
|
2294
|
+
readonly emptyValueI18n = "i18n.qd.emptyValue.a11y.label";
|
|
2272
2295
|
get maxChipCount(): number;
|
|
2273
2296
|
ngOnInit(): void;
|
|
2274
2297
|
ngOnChanges(): void;
|
|
2275
2298
|
private setChips;
|
|
2276
2299
|
private getChips;
|
|
2300
|
+
private toChip;
|
|
2301
|
+
private getLabel;
|
|
2302
|
+
private getState;
|
|
2277
2303
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdDataFacetsChipComponent, never>;
|
|
2278
2304
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdDataFacetsChipComponent, "qd-data-facets-chip", never, { "config": { "alias": "config"; "required": false; }; "data": { "alias": "data"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, false, never>;
|
|
2279
2305
|
}
|
|
@@ -14833,13 +14859,22 @@ declare class QdValueFacetComponent<T> {
|
|
|
14833
14859
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdValueFacetComponent<any>, "qd-value-facet", never, { "facet": { "alias": "facet"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
|
|
14834
14860
|
}
|
|
14835
14861
|
|
|
14862
|
+
/**
|
|
14863
|
+
* @description Renders the value of a status facet as a chip.
|
|
14864
|
+
*
|
|
14865
|
+
* * Note: Without a value the facet renders a dash instead of a chip.
|
|
14866
|
+
*/
|
|
14836
14867
|
declare class QdStatusFacetComponent<T> {
|
|
14837
14868
|
facet: QdPageHeaderFacetConfig<T>;
|
|
14838
14869
|
data: T;
|
|
14870
|
+
testId?: string;
|
|
14871
|
+
readonly emptyValue = "-";
|
|
14872
|
+
readonly emptyValueI18n = "i18n.qd.emptyValue.a11y.label";
|
|
14873
|
+
get hasValue(): boolean;
|
|
14839
14874
|
get stringData(): string;
|
|
14840
14875
|
get options(): QdFacetOptionsStatus;
|
|
14841
14876
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdStatusFacetComponent<any>, never>;
|
|
14842
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdStatusFacetComponent<any>, "qd-status-facet", never, { "facet": { "alias": "facet"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
|
|
14877
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdStatusFacetComponent<any>, "qd-status-facet", never, { "facet": { "alias": "facet"; "required": false; }; "data": { "alias": "data"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, false, never>;
|
|
14843
14878
|
}
|
|
14844
14879
|
|
|
14845
14880
|
declare class QdDynamicFacetDirective {
|
|
@@ -14853,15 +14888,17 @@ declare class QdDynamicFacetComponent<T> implements OnInit, OnChanges {
|
|
|
14853
14888
|
dynamicFacet: QdDynamicFacetDirective;
|
|
14854
14889
|
facet: QdPageHeaderFacetConfig<T>;
|
|
14855
14890
|
data: T;
|
|
14891
|
+
testId?: string;
|
|
14856
14892
|
private ref;
|
|
14857
14893
|
get component(): {
|
|
14858
14894
|
data: Text;
|
|
14859
14895
|
facet: QdPageHeaderFacetConfig<T>;
|
|
14896
|
+
testId?: string;
|
|
14860
14897
|
};
|
|
14861
14898
|
ngOnInit(): void;
|
|
14862
14899
|
ngOnChanges(changes: SimpleChanges): void;
|
|
14863
14900
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdDynamicFacetComponent<any>, never>;
|
|
14864
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdDynamicFacetComponent<any>, "qd-dynamic-facet", never, { "facet": { "alias": "facet"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
|
|
14901
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdDynamicFacetComponent<any>, "qd-dynamic-facet", never, { "facet": { "alias": "facet"; "required": false; }; "data": { "alias": "data"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, false, never>;
|
|
14865
14902
|
}
|
|
14866
14903
|
|
|
14867
14904
|
declare class QdCriticalityFacetComponent<T> implements OnChanges {
|
|
@@ -15901,6 +15938,9 @@ type QdTreeActionResult = void | Observable<boolean>;
|
|
|
15901
15938
|
interface QdTreeConfig<T extends string> {
|
|
15902
15939
|
/**
|
|
15903
15940
|
* @description Defines the columns of the tree.
|
|
15941
|
+
*
|
|
15942
|
+
* Only configured columns are rendered. A key of the tree data without a column here is metadata:
|
|
15943
|
+
* it stays on the row and reaches the handlers, but the tree shows no column for it.
|
|
15904
15944
|
*/
|
|
15905
15945
|
columns: QdTreeConfigColumn<T>[];
|
|
15906
15946
|
/**
|