@quadrel-enterprise-ui/framework 21.7.0 → 21.8.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.
- package/fesm2022/quadrel-enterprise-ui-framework.mjs +380 -51
- package/fesm2022/quadrel-enterprise-ui-framework.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/i18n/de.json +3 -0
- package/src/assets/i18n/en.json +3 -0
- package/src/assets/i18n/fr.json +3 -0
- package/src/assets/i18n/it.json +3 -0
- package/types/quadrel-enterprise-ui-framework.d.ts +420 -137
|
@@ -757,6 +757,127 @@ declare class QdMockFileCollectorComponent {
|
|
|
757
757
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdMockFileCollectorComponent, "qd-file-collector", never, {}, {}, never, never, false, never>;
|
|
758
758
|
}
|
|
759
759
|
|
|
760
|
+
/**
|
|
761
|
+
* Defines the base structure for a single form option.
|
|
762
|
+
*
|
|
763
|
+
* This type can be used directly or serve as the foundation for extended option types.
|
|
764
|
+
*/
|
|
765
|
+
interface QdFormBaseOption {
|
|
766
|
+
/**
|
|
767
|
+
* i18n key used for the label shown in the UI.
|
|
768
|
+
*/
|
|
769
|
+
i18n: string;
|
|
770
|
+
/**
|
|
771
|
+
* Value assigned to the option.
|
|
772
|
+
*/
|
|
773
|
+
value?: string | null;
|
|
774
|
+
/**
|
|
775
|
+
* Indicates whether the option is disabled.
|
|
776
|
+
*
|
|
777
|
+
* * @default: false
|
|
778
|
+
*/
|
|
779
|
+
disabled?: boolean;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* A list of base form options.
|
|
783
|
+
*
|
|
784
|
+
* Can be used directly or as the base for derived collections of options.
|
|
785
|
+
*/
|
|
786
|
+
type QdFormBaseOptions = QdFormBaseOption[];
|
|
787
|
+
interface QdFormCheckboxOption extends QdFormBaseOption {
|
|
788
|
+
/**
|
|
789
|
+
* @description Indicates whether the checkbox is initially checked.
|
|
790
|
+
*
|
|
791
|
+
* * @default: false
|
|
792
|
+
*/
|
|
793
|
+
checked?: boolean;
|
|
794
|
+
/**
|
|
795
|
+
* @description Optional index to identify the option.
|
|
796
|
+
*/
|
|
797
|
+
index?: number;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Represents a list of checkboxes options.
|
|
801
|
+
*/
|
|
802
|
+
type QdFormCheckboxOptions = QdFormCheckboxOption[];
|
|
803
|
+
/**
|
|
804
|
+
* Represents a single option used in input.
|
|
805
|
+
*/
|
|
806
|
+
interface QdFormInputOption extends QdFormBaseOption {
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* @description Defines a single switch input option for Qd-Forms-Switches.
|
|
810
|
+
*/
|
|
811
|
+
interface QdSwitchInput extends QdFormBaseOption {
|
|
812
|
+
/**
|
|
813
|
+
* @description Sets this switch as "active".
|
|
814
|
+
*
|
|
815
|
+
* * @default: false
|
|
816
|
+
*/
|
|
817
|
+
active?: boolean;
|
|
818
|
+
/**
|
|
819
|
+
* @description Index of this switch within the switch group.
|
|
820
|
+
*/
|
|
821
|
+
index?: number;
|
|
822
|
+
/**
|
|
823
|
+
* @description The position of the label relative to the switch toggler.
|
|
824
|
+
*
|
|
825
|
+
* * @default: 'right'
|
|
826
|
+
*/
|
|
827
|
+
labelPosition?: 'left' | 'right';
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Values entered for one file during an upload.
|
|
832
|
+
*/
|
|
833
|
+
interface QdFileDetails {
|
|
834
|
+
/**
|
|
835
|
+
* The file name entered by the user, without the extension.
|
|
836
|
+
*/
|
|
837
|
+
fileName?: string;
|
|
838
|
+
/**
|
|
839
|
+
* Metadata values keyed by the configured field name.
|
|
840
|
+
*/
|
|
841
|
+
metadata: QdFileMetadataValues;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Metadata values keyed by the configured field name.
|
|
845
|
+
*/
|
|
846
|
+
type QdFileMetadataValues = Record<string, string | null>;
|
|
847
|
+
/**
|
|
848
|
+
* A configurable metadata field shown as a dropdown in the upload dialog.
|
|
849
|
+
*/
|
|
850
|
+
interface QdFileMetadataField {
|
|
851
|
+
/**
|
|
852
|
+
* Control type used to render the metadata field.
|
|
853
|
+
*/
|
|
854
|
+
type: 'dropdown';
|
|
855
|
+
/**
|
|
856
|
+
* Unique field name. It is also used as the form control name.
|
|
857
|
+
*/
|
|
858
|
+
name: string;
|
|
859
|
+
/**
|
|
860
|
+
* i18n key for the visible field label.
|
|
861
|
+
*/
|
|
862
|
+
label: {
|
|
863
|
+
i18n: string;
|
|
864
|
+
};
|
|
865
|
+
/**
|
|
866
|
+
* i18n key for the help text shown below the field.
|
|
867
|
+
*/
|
|
868
|
+
description?: {
|
|
869
|
+
i18n: string;
|
|
870
|
+
};
|
|
871
|
+
/**
|
|
872
|
+
* Initial value for the field.
|
|
873
|
+
*/
|
|
874
|
+
defaultValue?: string | null;
|
|
875
|
+
/**
|
|
876
|
+
* Selectable options of the dropdown.
|
|
877
|
+
*/
|
|
878
|
+
options: QdFormBaseOptions;
|
|
879
|
+
}
|
|
880
|
+
|
|
760
881
|
interface QdCollectedFile {
|
|
761
882
|
/**
|
|
762
883
|
* @description Name of the file
|
|
@@ -793,6 +914,10 @@ interface QdCollectedFile {
|
|
|
793
914
|
* @example new Date('2025-03-20T14:30:00Z')
|
|
794
915
|
*/
|
|
795
916
|
uploadTimestamp?: Date;
|
|
917
|
+
/**
|
|
918
|
+
* Metadata values stored for this file, keyed by configured field name.
|
|
919
|
+
*/
|
|
920
|
+
metadata?: QdFileMetadataValues;
|
|
796
921
|
}
|
|
797
922
|
|
|
798
923
|
type QdUploadProgress = {
|
|
@@ -850,10 +975,11 @@ declare class QdMockFileCollectorItemComponent {
|
|
|
850
975
|
readonly: boolean;
|
|
851
976
|
viewonly: boolean;
|
|
852
977
|
downloadFilesWithHttpClient: boolean;
|
|
978
|
+
metadataFields: QdFileMetadataField[];
|
|
853
979
|
uploadTimestamp: Date;
|
|
854
980
|
testId: string;
|
|
855
981
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdMockFileCollectorItemComponent, never>;
|
|
856
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdMockFileCollectorItemComponent, "qd-file-collector-item", never, { "progress": { "alias": "progress"; "required": false; }; "newlyUploaded": { "alias": "newlyUploaded"; "required": false; }; "collectedFile": { "alias": "collectedFile"; "required": false; }; "error": { "alias": "error"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "viewonly": { "alias": "viewonly"; "required": false; }; "downloadFilesWithHttpClient": { "alias": "downloadFilesWithHttpClient"; "required": false; }; "uploadTimestamp": { "alias": "uploadTimestamp"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
982
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdMockFileCollectorItemComponent, "qd-file-collector-item", never, { "progress": { "alias": "progress"; "required": false; }; "newlyUploaded": { "alias": "newlyUploaded"; "required": false; }; "collectedFile": { "alias": "collectedFile"; "required": false; }; "error": { "alias": "error"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "viewonly": { "alias": "viewonly"; "required": false; }; "downloadFilesWithHttpClient": { "alias": "downloadFilesWithHttpClient"; "required": false; }; "metadataFields": { "alias": "metadataFields"; "required": false; }; "uploadTimestamp": { "alias": "uploadTimestamp"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
857
983
|
}
|
|
858
984
|
|
|
859
985
|
declare class QdMockFileCollectorItemNameComponent {
|
|
@@ -886,9 +1012,10 @@ declare class QdMockFileCollectorDialogItemComponent {
|
|
|
886
1012
|
progress: number;
|
|
887
1013
|
collectedFile: QdCollectedFile;
|
|
888
1014
|
error: QdUploadError | undefined;
|
|
1015
|
+
showProgress: boolean;
|
|
889
1016
|
testId: string;
|
|
890
1017
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdMockFileCollectorDialogItemComponent, never>;
|
|
891
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdMockFileCollectorDialogItemComponent, "qd-file-collector-dialog-item", never, { "progress": { "alias": "progress"; "required": false; }; "collectedFile": { "alias": "collectedFile"; "required": false; }; "error": { "alias": "error"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
1018
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdMockFileCollectorDialogItemComponent, "qd-file-collector-dialog-item", never, { "progress": { "alias": "progress"; "required": false; }; "collectedFile": { "alias": "collectedFile"; "required": false; }; "error": { "alias": "error"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
892
1019
|
}
|
|
893
1020
|
|
|
894
1021
|
declare class QdMockFileCollectorDialogItemErrorComponent {
|
|
@@ -2822,76 +2949,6 @@ declare class QdCoreModule {
|
|
|
2822
2949
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdCoreModule>;
|
|
2823
2950
|
}
|
|
2824
2951
|
|
|
2825
|
-
/**
|
|
2826
|
-
* Defines the base structure for a single form option.
|
|
2827
|
-
*
|
|
2828
|
-
* This type can be used directly or serve as the foundation for extended option types.
|
|
2829
|
-
*/
|
|
2830
|
-
interface QdFormBaseOption {
|
|
2831
|
-
/**
|
|
2832
|
-
* i18n key used for the label shown in the UI.
|
|
2833
|
-
*/
|
|
2834
|
-
i18n: string;
|
|
2835
|
-
/**
|
|
2836
|
-
* Value assigned to the option.
|
|
2837
|
-
*/
|
|
2838
|
-
value?: string | null;
|
|
2839
|
-
/**
|
|
2840
|
-
* Indicates whether the option is disabled.
|
|
2841
|
-
*
|
|
2842
|
-
* * @default: false
|
|
2843
|
-
*/
|
|
2844
|
-
disabled?: boolean;
|
|
2845
|
-
}
|
|
2846
|
-
/**
|
|
2847
|
-
* A list of base form options.
|
|
2848
|
-
*
|
|
2849
|
-
* Can be used directly or as the base for derived collections of options.
|
|
2850
|
-
*/
|
|
2851
|
-
type QdFormBaseOptions = QdFormBaseOption[];
|
|
2852
|
-
interface QdFormCheckboxOption extends QdFormBaseOption {
|
|
2853
|
-
/**
|
|
2854
|
-
* @description Indicates whether the checkbox is initially checked.
|
|
2855
|
-
*
|
|
2856
|
-
* * @default: false
|
|
2857
|
-
*/
|
|
2858
|
-
checked?: boolean;
|
|
2859
|
-
/**
|
|
2860
|
-
* @description Optional index to identify the option.
|
|
2861
|
-
*/
|
|
2862
|
-
index?: number;
|
|
2863
|
-
}
|
|
2864
|
-
/**
|
|
2865
|
-
* Represents a list of checkboxes options.
|
|
2866
|
-
*/
|
|
2867
|
-
type QdFormCheckboxOptions = QdFormCheckboxOption[];
|
|
2868
|
-
/**
|
|
2869
|
-
* Represents a single option used in input.
|
|
2870
|
-
*/
|
|
2871
|
-
interface QdFormInputOption extends QdFormBaseOption {
|
|
2872
|
-
}
|
|
2873
|
-
/**
|
|
2874
|
-
* @description Defines a single switch input option for Qd-Forms-Switches.
|
|
2875
|
-
*/
|
|
2876
|
-
interface QdSwitchInput extends QdFormBaseOption {
|
|
2877
|
-
/**
|
|
2878
|
-
* @description Sets this switch as "active".
|
|
2879
|
-
*
|
|
2880
|
-
* * @default: false
|
|
2881
|
-
*/
|
|
2882
|
-
active?: boolean;
|
|
2883
|
-
/**
|
|
2884
|
-
* @description Index of this switch within the switch group.
|
|
2885
|
-
*/
|
|
2886
|
-
index?: number;
|
|
2887
|
-
/**
|
|
2888
|
-
* @description The position of the label relative to the switch toggler.
|
|
2889
|
-
*
|
|
2890
|
-
* * @default: 'right'
|
|
2891
|
-
*/
|
|
2892
|
-
labelPosition?: 'left' | 'right';
|
|
2893
|
-
}
|
|
2894
|
-
|
|
2895
2952
|
interface QdFormCheckboxesConfiguration extends QdFormConfiguration {
|
|
2896
2953
|
/**
|
|
2897
2954
|
* @description Defines the individual options for an additional option list,
|
|
@@ -11811,6 +11868,38 @@ interface QdFileCollectorConfig {
|
|
|
11811
11868
|
standaloneAddNewLabel?: {
|
|
11812
11869
|
i18n: string;
|
|
11813
11870
|
};
|
|
11871
|
+
/**
|
|
11872
|
+
* Metadata fields shown as dropdowns when adding a file.
|
|
11873
|
+
*
|
|
11874
|
+
* Every configured field is required. Both settings are per-file: when at
|
|
11875
|
+
* least one metadata field or the file name input is configured, one file is
|
|
11876
|
+
* selected per upload operation and the upload starts when the user saves the
|
|
11877
|
+
* dialog.
|
|
11878
|
+
*/
|
|
11879
|
+
metadata?: QdFileMetadataField[];
|
|
11880
|
+
/**
|
|
11881
|
+
* Enables the file name input in the upload dialog.
|
|
11882
|
+
*
|
|
11883
|
+
* The input is prefilled with the original file name without its extension.
|
|
11884
|
+
* The extension is displayed as a fixed suffix and is not part of the value
|
|
11885
|
+
* passed to the file manager.
|
|
11886
|
+
*/
|
|
11887
|
+
fileNameInput?: {
|
|
11888
|
+
/**
|
|
11889
|
+
* i18n key for the file name label.
|
|
11890
|
+
*
|
|
11891
|
+
* @default i18n.qd.fileCollector.fileName
|
|
11892
|
+
*/
|
|
11893
|
+
label?: {
|
|
11894
|
+
i18n: string;
|
|
11895
|
+
};
|
|
11896
|
+
/**
|
|
11897
|
+
* i18n key for the file name help text.
|
|
11898
|
+
*/
|
|
11899
|
+
description?: {
|
|
11900
|
+
i18n: string;
|
|
11901
|
+
};
|
|
11902
|
+
};
|
|
11814
11903
|
}
|
|
11815
11904
|
|
|
11816
11905
|
/**
|
|
@@ -11822,6 +11911,7 @@ interface QdFileCollectorConfig {
|
|
|
11822
11911
|
* - **Download**: directly via URL or through `HttpClient` (e.g. for authorization)
|
|
11823
11912
|
* - **Delete**: with confirmation dialog
|
|
11824
11913
|
* - **Upload Timestamp**: shows the upload date next to the file name when `uploadTimestamp` is set
|
|
11914
|
+
* - **Metadata**: optionally collects a custom file name and metadata fields before uploading
|
|
11825
11915
|
* - **Validation**: restricts file type, size, and name pattern with customizable error messages
|
|
11826
11916
|
* - **Readonly / Viewonly**: disables upload and delete, allows only viewing and downloading
|
|
11827
11917
|
* - **Standalone / Section**: works independently with its own add button, or inside a `QdSection` via the toolbar action
|
|
@@ -11868,10 +11958,15 @@ interface QdFileCollectorConfig {
|
|
|
11868
11958
|
* export class MyFileManager implements QdFileManager {
|
|
11869
11959
|
* private http = inject(HttpClient);
|
|
11870
11960
|
*
|
|
11871
|
-
* upload(file: File): Observable<QdUploadProgress> {
|
|
11961
|
+
* upload(file: File, details?: QdFileDetails): Observable<QdUploadProgress> {
|
|
11872
11962
|
* // Emit progress values from 0 to 100.
|
|
11873
11963
|
* // When done, return the final QdCollectedFile from your backend response.
|
|
11874
|
-
*
|
|
11964
|
+
* const formData = new FormData();
|
|
11965
|
+
* formData.append('file', file);
|
|
11966
|
+
* if (details?.fileName !== undefined) formData.append('fileName', details.fileName);
|
|
11967
|
+
* formData.append('metadata', JSON.stringify(details?.metadata ?? {}));
|
|
11968
|
+
*
|
|
11969
|
+
* return this.http.post('/api/files', formData).pipe(
|
|
11875
11970
|
* map(response => {
|
|
11876
11971
|
*
|
|
11877
11972
|
* const myCollectedFile: QdCollectedFile = {
|
|
@@ -11948,6 +12043,11 @@ interface QdFileCollectorConfig {
|
|
|
11948
12043
|
* - **outside a `QdSection`**: the component shows its own add button
|
|
11949
12044
|
* - **inside a `QdSection`**: the component listens to the section action and opens the file picker when `addNew` is triggered
|
|
11950
12045
|
*
|
|
12046
|
+
* When `metadata` or `fileNameInput` is configured, the upload dialog shows the
|
|
12047
|
+
* configured required fields, accepts one file, and starts the upload only after
|
|
12048
|
+
* the user selects **Save**. Without that configuration, uploads start
|
|
12049
|
+
* immediately and the existing multi-file behavior is preserved.
|
|
12050
|
+
*
|
|
11951
12051
|
* In `readonly` or `viewonly` mode, upload and delete are disabled.
|
|
11952
12052
|
*
|
|
11953
12053
|
* If the component is connected to operation mode changes through the event broker,
|
|
@@ -11971,6 +12071,7 @@ declare class QdFileCollectorComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
11971
12071
|
private readonly fileTypeService;
|
|
11972
12072
|
private readonly dialogService;
|
|
11973
12073
|
private readonly viewContainerRef;
|
|
12074
|
+
private readonly _changeDetectorRef;
|
|
11974
12075
|
/**
|
|
11975
12076
|
* Configuration settings for the file collector.
|
|
11976
12077
|
*/
|
|
@@ -11984,6 +12085,7 @@ declare class QdFileCollectorComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
11984
12085
|
private readonly _viewonly$;
|
|
11985
12086
|
get fileUploads(): QdFileUpload$1[];
|
|
11986
12087
|
get canShowAddButton(): boolean;
|
|
12088
|
+
get requiresSingleFileUpload(): boolean;
|
|
11987
12089
|
ngOnInit(): void;
|
|
11988
12090
|
ngOnChanges(changes: SimpleChanges): void;
|
|
11989
12091
|
ngOnDestroy(): void;
|
|
@@ -12001,11 +12103,12 @@ declare class QdFileCollectorComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
12001
12103
|
|
|
12002
12104
|
interface QdFileManager {
|
|
12003
12105
|
/**
|
|
12004
|
-
* @description Uploads a file
|
|
12106
|
+
* @description Uploads a file and optionally submits its file name and metadata.
|
|
12005
12107
|
*
|
|
12006
12108
|
* @param file The file that should be uploaded
|
|
12109
|
+
* @param details The values entered in the upload dialog
|
|
12007
12110
|
*/
|
|
12008
|
-
upload(file: File): Observable<QdUploadProgress>;
|
|
12111
|
+
upload(file: File, details?: QdFileDetails): Observable<QdUploadProgress>;
|
|
12009
12112
|
/**
|
|
12010
12113
|
* @description Deletes a file
|
|
12011
12114
|
*
|
|
@@ -12026,7 +12129,11 @@ declare class QdFileCollectorAllowedFilesDescriptionComponent {
|
|
|
12026
12129
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdFileCollectorAllowedFilesDescriptionComponent, "qd-file-collector-allowed-files-description", never, {}, {}, never, never, false, never>;
|
|
12027
12130
|
}
|
|
12028
12131
|
|
|
12029
|
-
|
|
12132
|
+
interface QdFileMetadataDisplay {
|
|
12133
|
+
name: string;
|
|
12134
|
+
value: string;
|
|
12135
|
+
}
|
|
12136
|
+
declare class QdFileCollectorItemComponent implements OnChanges {
|
|
12030
12137
|
progress: number;
|
|
12031
12138
|
newlyUploaded: boolean;
|
|
12032
12139
|
collectedFile: QdCollectedFile;
|
|
@@ -12034,11 +12141,14 @@ declare class QdFileCollectorItemComponent {
|
|
|
12034
12141
|
readonly: boolean;
|
|
12035
12142
|
viewonly: boolean;
|
|
12036
12143
|
downloadFilesWithHttpClient: boolean;
|
|
12144
|
+
metadataFields: QdFileMetadataField[];
|
|
12037
12145
|
testId: string;
|
|
12146
|
+
metadataItems: QdFileMetadataDisplay[];
|
|
12038
12147
|
get hostTestId(): string;
|
|
12039
12148
|
get isNewlyUploaded(): boolean;
|
|
12149
|
+
ngOnChanges(): void;
|
|
12040
12150
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFileCollectorItemComponent, never>;
|
|
12041
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdFileCollectorItemComponent, "qd-file-collector-item", never, { "progress": { "alias": "progress"; "required": false; }; "newlyUploaded": { "alias": "newlyUploaded"; "required": false; }; "collectedFile": { "alias": "collectedFile"; "required": false; }; "error": { "alias": "error"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "viewonly": { "alias": "viewonly"; "required": false; }; "downloadFilesWithHttpClient": { "alias": "downloadFilesWithHttpClient"; "required": false; }; "testId": { "alias": "data-test-id"; "required": true; }; }, {}, never, never, false, never>;
|
|
12151
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdFileCollectorItemComponent, "qd-file-collector-item", never, { "progress": { "alias": "progress"; "required": false; }; "newlyUploaded": { "alias": "newlyUploaded"; "required": false; }; "collectedFile": { "alias": "collectedFile"; "required": false; }; "error": { "alias": "error"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "viewonly": { "alias": "viewonly"; "required": false; }; "downloadFilesWithHttpClient": { "alias": "downloadFilesWithHttpClient"; "required": false; }; "metadataFields": { "alias": "metadataFields"; "required": false; }; "testId": { "alias": "data-test-id"; "required": true; }; }, {}, never, never, false, never>;
|
|
12042
12152
|
}
|
|
12043
12153
|
|
|
12044
12154
|
declare class QdFileCollectorItemNameComponent {
|
|
@@ -12079,12 +12189,35 @@ declare class QdFileCollectorDialogComponent {
|
|
|
12079
12189
|
private readonly fileCollectorService;
|
|
12080
12190
|
private readonly dialogFileCollectorService;
|
|
12081
12191
|
private readonly dialogRef;
|
|
12192
|
+
private readonly destroyRef;
|
|
12193
|
+
selectedFile: File | null;
|
|
12194
|
+
form?: QdFormGroup;
|
|
12195
|
+
isSaving: boolean;
|
|
12196
|
+
isDetailsFormVisible: boolean;
|
|
12197
|
+
fileNameInputConfig: QdFormInputConfiguration | null;
|
|
12198
|
+
metadataFieldConfigs: Record<string, QdFormDropdownConfiguration>;
|
|
12082
12199
|
get fileUploads(): QdFileUpload$1[];
|
|
12200
|
+
get config(): QdFileCollectorConfig;
|
|
12201
|
+
get requiresSingleFileUpload(): boolean;
|
|
12202
|
+
get isSaveDisabled(): boolean;
|
|
12203
|
+
get showProgress(): boolean;
|
|
12204
|
+
private get hasFileValidationError();
|
|
12083
12205
|
constructor();
|
|
12084
12206
|
uploadFiles(files: File[]): void;
|
|
12207
|
+
save(): void;
|
|
12208
|
+
cancel(): void;
|
|
12085
12209
|
close(): void;
|
|
12086
12210
|
isCloseButtonDisabled(): boolean;
|
|
12087
12211
|
private isFileUploadCompleted;
|
|
12212
|
+
private setCloseButtonHidden;
|
|
12213
|
+
private initForm;
|
|
12214
|
+
private createFileNameInputConfig;
|
|
12215
|
+
private createMetadataConfig;
|
|
12216
|
+
private getFileDetails;
|
|
12217
|
+
private getStringValue;
|
|
12218
|
+
private getFileNameValue;
|
|
12219
|
+
private getFileNameWithoutExtension;
|
|
12220
|
+
private getFileExtension;
|
|
12088
12221
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFileCollectorDialogComponent, never>;
|
|
12089
12222
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdFileCollectorDialogComponent, "qd-file-collector-dialog", never, {}, {}, never, never, false, never>;
|
|
12090
12223
|
}
|
|
@@ -12093,12 +12226,13 @@ declare class QdFileCollectorDialogItemComponent {
|
|
|
12093
12226
|
progress: number;
|
|
12094
12227
|
collectedFile: QdCollectedFile;
|
|
12095
12228
|
error: QdUploadError | undefined;
|
|
12229
|
+
showProgress: boolean;
|
|
12096
12230
|
testId: string;
|
|
12097
12231
|
get hostTestId(): string;
|
|
12098
12232
|
get isSuccessful(): boolean;
|
|
12099
12233
|
get hasError(): boolean;
|
|
12100
12234
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFileCollectorDialogItemComponent, never>;
|
|
12101
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdFileCollectorDialogItemComponent, "qd-file-collector-dialog-item", never, { "progress": { "alias": "progress"; "required": false; }; "collectedFile": { "alias": "collectedFile"; "required": false; }; "error": { "alias": "error"; "required": false; }; "testId": { "alias": "data-test-id"; "required": true; }; }, {}, never, never, false, never>;
|
|
12235
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdFileCollectorDialogItemComponent, "qd-file-collector-dialog-item", never, { "progress": { "alias": "progress"; "required": false; }; "collectedFile": { "alias": "collectedFile"; "required": false; }; "error": { "alias": "error"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "testId": { "alias": "data-test-id"; "required": true; }; }, {}, never, never, false, never>;
|
|
12102
12236
|
}
|
|
12103
12237
|
|
|
12104
12238
|
declare class QdFileCollectorDialogItemProgressComponent implements OnInit, OnDestroy, OnChanges {
|
|
@@ -12205,7 +12339,7 @@ declare class QdProgressBarModule {
|
|
|
12205
12339
|
|
|
12206
12340
|
declare class QdFileCollectorModule {
|
|
12207
12341
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdFileCollectorModule, never>;
|
|
12208
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<QdFileCollectorModule, [typeof QdFileCollectorComponent, typeof QdFileCollectorAllowedFilesDescriptionComponent, typeof QdFileCollectorItemComponent, typeof QdFileCollectorItemNameComponent, typeof QdFileCollectorItemSizeComponent, typeof QdFileCollectorItemToolsComponent, typeof QdFileCollectorDialogComponent, typeof QdFileCollectorDialogItemComponent, typeof QdFileCollectorDialogItemProgressComponent, typeof QdFileCollectorDialogItemErrorComponent, typeof QdFileDeleteDialogComponent, typeof QdFileCollectorUploadTimestampComponent, typeof QdFileSizePipe, typeof QdUploadTimestampPipe], [typeof i2.CommonModule, typeof i5.TranslateModule, typeof QdButtonModule, typeof QdChipModule, typeof QdDialogModule, typeof QdButtonModule, typeof QdCoreModule, typeof QdIconModule, typeof QdProgressBarModule], [typeof QdFileCollectorComponent]>;
|
|
12342
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QdFileCollectorModule, [typeof QdFileCollectorComponent, typeof QdFileCollectorAllowedFilesDescriptionComponent, typeof QdFileCollectorItemComponent, typeof QdFileCollectorItemNameComponent, typeof QdFileCollectorItemSizeComponent, typeof QdFileCollectorItemToolsComponent, typeof QdFileCollectorDialogComponent, typeof QdFileCollectorDialogItemComponent, typeof QdFileCollectorDialogItemProgressComponent, typeof QdFileCollectorDialogItemErrorComponent, typeof QdFileDeleteDialogComponent, typeof QdFileCollectorUploadTimestampComponent, typeof QdFileSizePipe, typeof QdUploadTimestampPipe], [typeof i2.CommonModule, typeof QdFormModule, typeof i31.ReactiveFormsModule, typeof i5.TranslateModule, typeof QdButtonModule, typeof QdChipModule, typeof QdDialogModule, typeof QdButtonModule, typeof QdCoreModule, typeof QdIconModule, typeof QdProgressBarModule], [typeof QdFileCollectorComponent]>;
|
|
12209
12343
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdFileCollectorModule>;
|
|
12210
12344
|
}
|
|
12211
12345
|
|
|
@@ -13855,7 +13989,12 @@ declare class QdPageStepComponent extends CdkStep implements OnInit, OnChanges,
|
|
|
13855
13989
|
* * @note The use of CDK attributes is not permitted. Please configure this component here.
|
|
13856
13990
|
*/
|
|
13857
13991
|
config: QdPageStepConfig;
|
|
13858
|
-
|
|
13992
|
+
/**
|
|
13993
|
+
* The form of the step, for example a QdFormGroup.
|
|
13994
|
+
*
|
|
13995
|
+
* The stepper only moves on to the next step when this form is valid. Optional steps skip this check.
|
|
13996
|
+
*/
|
|
13997
|
+
stepControl: AbstractControl;
|
|
13859
13998
|
infoBanners: QueryList<QdPageInfoBannerComponent>;
|
|
13860
13999
|
private _destroyed$;
|
|
13861
14000
|
constructor();
|
|
@@ -13865,7 +14004,7 @@ declare class QdPageStepComponent extends CdkStep implements OnInit, OnChanges,
|
|
|
13865
14004
|
private blockCdkInput;
|
|
13866
14005
|
private validateLabel;
|
|
13867
14006
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdPageStepComponent, never>;
|
|
13868
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdPageStepComponent, "qd-page-step", never, { "config": { "alias": "config"; "required": false; }; "
|
|
14007
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdPageStepComponent, "qd-page-step", never, { "config": { "alias": "config"; "required": false; }; "stepControl": { "alias": "stepControl"; "required": false; }; }, {}, ["infoBanners"], ["qd-page-info-banner", "*"], true, never>;
|
|
13869
14008
|
}
|
|
13870
14009
|
|
|
13871
14010
|
/**
|
|
@@ -19185,25 +19324,28 @@ declare class QdPageTabsModule {
|
|
|
19185
19324
|
}
|
|
19186
19325
|
|
|
19187
19326
|
/**
|
|
19188
|
-
*
|
|
19327
|
+
* All rows of a QdQuickEdit in template data mode. The generic type names the columns.
|
|
19328
|
+
*
|
|
19329
|
+
* Not used in FormArray mode, where the rows live in the consumer's form.
|
|
19189
19330
|
*/
|
|
19190
19331
|
type QdQuickEditData<T extends string> = QdQuickEditRow<T>[];
|
|
19191
19332
|
/**
|
|
19192
|
-
*
|
|
19333
|
+
* One row: a flat object whose keys are the column names.
|
|
19334
|
+
*
|
|
19335
|
+
* Flat on purpose — a column name resolves a direct key only, never a path like `address.city`.
|
|
19193
19336
|
*/
|
|
19194
19337
|
type QdQuickEditRow<T extends string> = Record<T, QdQuickEditDataValue>;
|
|
19195
19338
|
/**
|
|
19196
|
-
*
|
|
19197
|
-
* Currently only support for number & strings
|
|
19339
|
+
* What a single cell may hold. Dates and booleans are not supported.
|
|
19198
19340
|
*/
|
|
19199
19341
|
type QdQuickEditDataValue = number | string | string[];
|
|
19200
19342
|
|
|
19201
19343
|
/**
|
|
19202
|
-
*
|
|
19344
|
+
* Text shown while the table holds no row at all.
|
|
19203
19345
|
*/
|
|
19204
19346
|
interface QdQuickEditEmptyStateView {
|
|
19205
19347
|
/**
|
|
19206
|
-
*
|
|
19348
|
+
* Toggles the empty view off, if set to "true".
|
|
19207
19349
|
*
|
|
19208
19350
|
* * @default: false
|
|
19209
19351
|
*/
|
|
@@ -19218,11 +19360,14 @@ interface QdQuickEditEmptyStateView {
|
|
|
19218
19360
|
*/
|
|
19219
19361
|
interface QdQuickEditConfig<T extends string> {
|
|
19220
19362
|
/**
|
|
19221
|
-
*
|
|
19363
|
+
* Defines the columns of the table, in the order they are rendered.
|
|
19364
|
+
*
|
|
19365
|
+
* Every column names a control of the row. In FormArray mode a column without a matching control
|
|
19366
|
+
* renders an empty cell.
|
|
19222
19367
|
*/
|
|
19223
19368
|
columns: QdQuickEditColumn<T>[];
|
|
19224
19369
|
/**
|
|
19225
|
-
*
|
|
19370
|
+
* Defines a list of secondary actions that can be executed per Click/Tab of an item in the menu.
|
|
19226
19371
|
*
|
|
19227
19372
|
* * @example
|
|
19228
19373
|
* This is how the two actions "save" and "delete" are created.
|
|
@@ -19242,12 +19387,17 @@ interface QdQuickEditConfig<T extends string> {
|
|
|
19242
19387
|
*/
|
|
19243
19388
|
secondaryActions?: QdQuickEditSecondaryAction<T>[];
|
|
19244
19389
|
/**
|
|
19245
|
-
* Determines whether
|
|
19246
|
-
*
|
|
19390
|
+
* Determines whether rows can be added and removed.
|
|
19391
|
+
*
|
|
19392
|
+
* When `true`, QuickEdit renders its own create button while used standalone. Inside a section, configure the
|
|
19393
|
+
* section with an `addNew` action instead and leave this unset.
|
|
19394
|
+
*
|
|
19395
|
+
* **This flag also switches the remove action in the row menu on.** Without it nobody can delete a row, in
|
|
19396
|
+
* either mode. Adding and removing cannot be allowed separately today.
|
|
19247
19397
|
*/
|
|
19248
19398
|
canAdd?: boolean;
|
|
19249
19399
|
/**
|
|
19250
|
-
*
|
|
19400
|
+
* Enables a confirmation dialog before a row is removed via the built-in remove button.
|
|
19251
19401
|
*
|
|
19252
19402
|
* When set to `true`, a confirmation dialog with a framework default message is shown. The row is only removed if the user confirms.
|
|
19253
19403
|
* Only applies when `canAdd` is true and the remove button is visible.
|
|
@@ -19265,7 +19415,7 @@ interface QdQuickEditConfig<T extends string> {
|
|
|
19265
19415
|
*/
|
|
19266
19416
|
hasRemoveConfirmation?: boolean;
|
|
19267
19417
|
/**
|
|
19268
|
-
*
|
|
19418
|
+
* Overrides the default message of the remove confirmation dialog.
|
|
19269
19419
|
*
|
|
19270
19420
|
* When set, the confirmation dialog is shown with the provided message (setting this also enables the dialog for backward compatibility).
|
|
19271
19421
|
* If omitted, the framework default message is shown when the dialog is enabled via `hasRemoveConfirmation`.
|
|
@@ -19290,11 +19440,11 @@ interface QdQuickEditConfig<T extends string> {
|
|
|
19290
19440
|
i18n: string;
|
|
19291
19441
|
};
|
|
19292
19442
|
/**
|
|
19293
|
-
*
|
|
19443
|
+
* Text shown instead of the table while there is no row at all.
|
|
19294
19444
|
*/
|
|
19295
19445
|
emptyStateView?: QdQuickEditEmptyStateView;
|
|
19296
19446
|
/**
|
|
19297
|
-
*
|
|
19447
|
+
* Enables "viewonly" mode for quick edit.
|
|
19298
19448
|
*
|
|
19299
19449
|
* When set to `true`, the table displays its content as read-only.
|
|
19300
19450
|
* Combined with `secondaryActions`, this can be used to selectively show or hide secondary actions
|
|
@@ -19336,28 +19486,65 @@ interface QdQuickEditColumnBase<T extends string> {
|
|
|
19336
19486
|
*/
|
|
19337
19487
|
isHidden?: boolean;
|
|
19338
19488
|
/**
|
|
19339
|
-
*
|
|
19489
|
+
* Tooltip shown next to the column header.
|
|
19340
19490
|
*/
|
|
19341
19491
|
tooltip?: QdTooltip;
|
|
19342
19492
|
}
|
|
19343
19493
|
/**
|
|
19344
19494
|
* Column configuration for text in QdQuickEdit.
|
|
19495
|
+
*
|
|
19496
|
+
* Besides `type` it takes every field of `QdQuickEditColumnBase`: the required `name`, `i18n` and
|
|
19497
|
+
* `isEditable`, plus the optional `validators`, `isHidden` and `tooltip`.
|
|
19498
|
+
*
|
|
19499
|
+
* @example
|
|
19500
|
+
* { name: 'name', type: 'text', i18n: 'i18n.app.actors.name', isEditable: () => true }
|
|
19345
19501
|
*/
|
|
19346
19502
|
interface QdQuickEditColumnText<T extends string> extends QdQuickEditColumnBase<T> {
|
|
19503
|
+
/**
|
|
19504
|
+
* Renders the cell as a text input.
|
|
19505
|
+
*/
|
|
19347
19506
|
type: 'text';
|
|
19348
19507
|
}
|
|
19349
19508
|
/**
|
|
19350
19509
|
* Column configuration for integers in QdQuickEdit.
|
|
19510
|
+
*
|
|
19511
|
+
* Besides `type` it takes every field of `QdQuickEditColumnBase`: the required `name`, `i18n` and
|
|
19512
|
+
* `isEditable`, plus the optional `validators`, `isHidden` and `tooltip`.
|
|
19513
|
+
*
|
|
19514
|
+
* @example
|
|
19515
|
+
* { name: 'amount', type: 'integer', i18n: 'i18n.app.actors.amount', isEditable: () => true }
|
|
19351
19516
|
*/
|
|
19352
19517
|
interface QdQuickEditColumnInteger<T extends string> extends QdQuickEditColumnBase<T> {
|
|
19518
|
+
/**
|
|
19519
|
+
* Renders the cell as a number input.
|
|
19520
|
+
*/
|
|
19353
19521
|
type: 'integer';
|
|
19354
19522
|
}
|
|
19355
19523
|
/**
|
|
19356
19524
|
* Column configuration for dropdowns in QdQuickEdit.
|
|
19525
|
+
*
|
|
19526
|
+
* Besides `type` it takes every field of `QdQuickEditColumnBase`: the required `name`, `i18n` and
|
|
19527
|
+
* `isEditable`, plus the optional `validators`, `isHidden` and `tooltip`.
|
|
19528
|
+
*
|
|
19529
|
+
* On top of that it takes `options`, `placeholder`, `placeholderPrefix` and `filter`
|
|
19530
|
+
* from `QdFormDropdownConfiguration`. **`options` is required** — without it the cell renders an empty
|
|
19531
|
+
* dropdown. Every option carries the stored `value` and the `i18n` key shown to the user.
|
|
19532
|
+
*
|
|
19533
|
+
* @example
|
|
19534
|
+
* {
|
|
19535
|
+
* name: 'status',
|
|
19536
|
+
* type: 'enum',
|
|
19537
|
+
* i18n: 'i18n.app.actors.status',
|
|
19538
|
+
* isEditable: () => true,
|
|
19539
|
+
* options: [
|
|
19540
|
+
* { value: '1', i18n: 'i18n.app.actors.status.active' },
|
|
19541
|
+
* { value: '0', i18n: 'i18n.app.actors.status.inactive' }
|
|
19542
|
+
* ]
|
|
19543
|
+
* }
|
|
19357
19544
|
*/
|
|
19358
19545
|
interface QdQuickEditColumnEnum<T extends string> extends QdQuickEditColumnBase<T>, Pick<QdFormDropdownConfiguration, 'placeholder' | 'placeholderPrefix' | 'filter' | 'options'> {
|
|
19359
19546
|
/**
|
|
19360
|
-
*
|
|
19547
|
+
* Renders the cell as a dropdown. Needs `options`.
|
|
19361
19548
|
*/
|
|
19362
19549
|
type: 'enum';
|
|
19363
19550
|
}
|
|
@@ -19370,21 +19557,29 @@ type QdQuickEditColumn<T extends string> = QdQuickEditColumnInteger<T> | QdQuick
|
|
|
19370
19557
|
*/
|
|
19371
19558
|
interface QdQuickEditSecondaryAction<T extends string> {
|
|
19372
19559
|
/**
|
|
19373
|
-
*
|
|
19560
|
+
* Defines the secondary action type for the table.
|
|
19561
|
+
*/
|
|
19562
|
+
/**
|
|
19563
|
+
* Translation key of the entry shown in the row menu.
|
|
19374
19564
|
*/
|
|
19375
19565
|
label: {
|
|
19376
19566
|
i18n: string;
|
|
19377
19567
|
};
|
|
19378
19568
|
/**
|
|
19379
|
-
*
|
|
19569
|
+
* Greys the entry out, either always or per row.
|
|
19570
|
+
*
|
|
19571
|
+
* The entry stays visible in the menu and cannot be clicked.
|
|
19380
19572
|
*/
|
|
19381
19573
|
isDisabled?: boolean | ((row: QdQuickEditRow<T>) => boolean);
|
|
19382
19574
|
/**
|
|
19383
|
-
*
|
|
19575
|
+
* Runs when the user picks the entry.
|
|
19576
|
+
*
|
|
19577
|
+
* Receives the value of the row, not its position. Carry your own key in the row when you need to
|
|
19578
|
+
* find it again in your FormArray.
|
|
19384
19579
|
*/
|
|
19385
19580
|
handler: (selectedRow: QdQuickEditRow<T>) => void;
|
|
19386
19581
|
/**
|
|
19387
|
-
*
|
|
19582
|
+
* Controls in which operation mode this action is shown. May be set by the Quadrel Framework ('edit' or 'view').
|
|
19388
19583
|
*
|
|
19389
19584
|
* - Use `'edit'` to show the action only in editable mode.
|
|
19390
19585
|
* - Use `'view'` to show the action only in viewonly mode.
|
|
@@ -19419,25 +19614,34 @@ interface QdQuickEditSecondaryAction<T extends string> {
|
|
|
19419
19614
|
* #### Configuration
|
|
19420
19615
|
*
|
|
19421
19616
|
* ```ts
|
|
19422
|
-
* type ColumnDefinition = '
|
|
19617
|
+
* type ColumnDefinition = 'category' | 'amount' | 'status';
|
|
19423
19618
|
* const config: QdQuickEditConfig<ColumnDefinition> = {
|
|
19424
19619
|
* columns: [
|
|
19425
19620
|
* {
|
|
19426
|
-
* name: '
|
|
19621
|
+
* name: 'category',
|
|
19427
19622
|
* type: 'text',
|
|
19428
|
-
* i18n: 'translation.key.
|
|
19623
|
+
* i18n: 'translation.key.category',
|
|
19429
19624
|
* isEditable: () => false
|
|
19430
19625
|
* },
|
|
19431
19626
|
* {
|
|
19432
|
-
* name: '
|
|
19627
|
+
* name: 'amount',
|
|
19433
19628
|
* type: 'integer',
|
|
19434
|
-
* i18n: 'translation.key.
|
|
19435
|
-
* isEditable:
|
|
19629
|
+
* i18n: 'translation.key.amount',
|
|
19630
|
+
* isEditable: row => !!row['category'],
|
|
19436
19631
|
* validators: [Validators.required] // only relevant in template data mode
|
|
19632
|
+
* },
|
|
19633
|
+
* {
|
|
19634
|
+
* name: 'status',
|
|
19635
|
+
* type: 'enum',
|
|
19636
|
+
* i18n: 'translation.key.status',
|
|
19637
|
+
* isEditable: () => true,
|
|
19638
|
+
* options: [
|
|
19639
|
+
* { value: '1', i18n: 'translation.key.status.active' },
|
|
19640
|
+
* { value: '0', i18n: 'translation.key.status.inactive' }
|
|
19641
|
+
* ]
|
|
19437
19642
|
* }
|
|
19438
19643
|
* ],
|
|
19439
|
-
* canAdd: true
|
|
19440
|
-
* secondaryActions: [...]
|
|
19644
|
+
* canAdd: true
|
|
19441
19645
|
* }
|
|
19442
19646
|
* ```
|
|
19443
19647
|
*
|
|
@@ -19447,39 +19651,64 @@ interface QdQuickEditSecondaryAction<T extends string> {
|
|
|
19447
19651
|
*
|
|
19448
19652
|
* ```ts
|
|
19449
19653
|
* form = new FormGroup({
|
|
19450
|
-
*
|
|
19654
|
+
* rows: new FormArray([
|
|
19451
19655
|
* new FormGroup({
|
|
19452
|
-
*
|
|
19453
|
-
*
|
|
19656
|
+
* category: new QdFormControl('Text'),
|
|
19657
|
+
* amount: new QdFormControl(123),
|
|
19658
|
+
* status: new QdFormControl('1')
|
|
19454
19659
|
* })
|
|
19455
19660
|
* ])
|
|
19456
19661
|
* })
|
|
19457
19662
|
* ```
|
|
19458
19663
|
*
|
|
19459
|
-
* Then bind the `formArrayName` directive in the template
|
|
19664
|
+
* Then bind the `formArrayName` directive in the template. The name is the key of your FormArray,
|
|
19665
|
+
* it has nothing to do with the `data` input:
|
|
19460
19666
|
*
|
|
19461
19667
|
* ```html
|
|
19462
19668
|
* <form [formGroup]="form">
|
|
19463
|
-
* <qd-quick-edit [config]="config" formArrayName="
|
|
19669
|
+
* <qd-quick-edit [config]="config" formArrayName="rows"></qd-quick-edit>
|
|
19464
19670
|
* </form>
|
|
19465
19671
|
* ```
|
|
19466
19672
|
*
|
|
19467
|
-
*
|
|
19673
|
+
* In this mode the FormArray is the single source of truth for the rows. QuickEdit keeps no copy of its own.
|
|
19674
|
+
* What the FormArray holds is what the table shows.
|
|
19675
|
+
*
|
|
19676
|
+
* **Adding rows:** QuickEdit does not create the row for you. It emits `(addNewClicked)` and you insert a new FormGroup:
|
|
19468
19677
|
*
|
|
19469
19678
|
* ```ts
|
|
19470
|
-
*
|
|
19471
|
-
* this.form.
|
|
19679
|
+
* addRow(): void {
|
|
19680
|
+
* this.form.controls.rows.insert(0, new FormGroup({ ... }));
|
|
19472
19681
|
* }
|
|
19473
19682
|
* ```
|
|
19474
19683
|
*
|
|
19684
|
+
* **Removing rows:** QuickEdit removes the row for you. It calls `removeAt(index)` on your FormArray.
|
|
19685
|
+
* There is no separate output event, because the FormArray already tells you: `valueChanges` fires, `length` and `controls` are updated.
|
|
19686
|
+
* The remove action only appears when `canAdd` is set — that one flag switches adding and removing on together.
|
|
19687
|
+
* With `hasRemoveConfirmation` or `removeConfirmationMessage` in the config, a confirmation dialog is shown first.
|
|
19688
|
+
* The row is only removed after the user confirms.
|
|
19689
|
+
*
|
|
19690
|
+
* **Reacting to a changed set of rows:** subscribe to the FormArray, not to QuickEdit. This covers both directions,
|
|
19691
|
+
* rows you insert and rows QuickEdit removes:
|
|
19692
|
+
*
|
|
19693
|
+
* ```ts
|
|
19694
|
+
* ngOnInit(): void {
|
|
19695
|
+
* this.form.controls.rows.valueChanges
|
|
19696
|
+
* .pipe(takeUntilDestroyed(this.destroyRef))
|
|
19697
|
+
* .subscribe(rows => (this.rowCount = rows.length));
|
|
19698
|
+
* }
|
|
19699
|
+
* ```
|
|
19700
|
+
*
|
|
19701
|
+
* **Row actions:** an entry of `config.secondaryActions` receives the value of its row, never its position.
|
|
19702
|
+
* Carry your own key in the row when the handler has to find that row again in your FormArray.
|
|
19703
|
+
*
|
|
19475
19704
|
* #### Template Data (optional)
|
|
19476
19705
|
*
|
|
19477
19706
|
* Alternatively, you can provide a static `data` array. This is useful for read-only scenarios without reactive forms.
|
|
19478
19707
|
*
|
|
19479
19708
|
* ```ts
|
|
19480
|
-
* const data: QdQuickEditData<
|
|
19481
|
-
* {
|
|
19482
|
-
* {
|
|
19709
|
+
* const data: QdQuickEditData<ColumnDefinition> = [
|
|
19710
|
+
* { category: 'Foo', amount: 42, status: '1' },
|
|
19711
|
+
* { category: 'Bar', amount: 77, status: '0' }
|
|
19483
19712
|
* ];
|
|
19484
19713
|
* ```
|
|
19485
19714
|
*
|
|
@@ -19487,6 +19716,14 @@ interface QdQuickEditSecondaryAction<T extends string> {
|
|
|
19487
19716
|
* <qd-quick-edit [config]="config" [data]="data"></qd-quick-edit>
|
|
19488
19717
|
* ```
|
|
19489
19718
|
*
|
|
19719
|
+
* **How this mode differs:** QuickEdit builds its own FormGroup with a `rows` FormArray from the `data` input.
|
|
19720
|
+
* Here QuickEdit is the source of truth, not your array.
|
|
19721
|
+
*
|
|
19722
|
+
* - Adding a row: QuickEdit inserts an empty row at the top itself. `(addNewClicked)` is not emitted.
|
|
19723
|
+
* - Removing a row: QuickEdit removes the row from its own FormArray and also from the `data` array you passed in (in place, via `splice`).
|
|
19724
|
+
* - Reacting to a changed set of rows: `(formGroupChange)` emits QuickEdit's FormGroup on every change. Read the rows from `formGroup.get('rows')`.
|
|
19725
|
+
* - Passing a new `data` array reference rebuilds all rows from that array.
|
|
19726
|
+
*
|
|
19490
19727
|
* #### Validation
|
|
19491
19728
|
*
|
|
19492
19729
|
* - In **FormArray mode**, validators must be set directly on your FormControls. Validators in `config.columns` are ignored.
|
|
@@ -19510,39 +19747,46 @@ declare class QdQuickEditComponent<T extends string> implements OnInit, OnChange
|
|
|
19510
19747
|
private controlContainer;
|
|
19511
19748
|
private confirmationDialogService;
|
|
19512
19749
|
/**
|
|
19513
|
-
* Configuration of the QuickEdit. The generic type
|
|
19750
|
+
* Configuration of the QuickEdit. The generic type names the columns.
|
|
19514
19751
|
*
|
|
19515
|
-
*
|
|
19752
|
+
* Every column name must be a member of that type, and `name`, `type`, `i18n` and `isEditable`
|
|
19753
|
+
* are required on each column. The only column types are `text`, `integer` and `enum`.
|
|
19516
19754
|
*
|
|
19517
19755
|
* @example
|
|
19518
|
-
* type ColumnDefinition = 'article' | 'mass' | '
|
|
19756
|
+
* type ColumnDefinition = 'article' | 'mass' | 'unit';
|
|
19519
19757
|
* const config: QdQuickEditConfig<ColumnDefinition> = {
|
|
19520
19758
|
* columns: [
|
|
19521
19759
|
* {
|
|
19522
|
-
* name: '
|
|
19760
|
+
* name: 'article',
|
|
19523
19761
|
* type: 'text',
|
|
19524
|
-
* i18n: 'translation.key.
|
|
19762
|
+
* i18n: 'translation.key.article',
|
|
19525
19763
|
* isEditable: () => false
|
|
19526
19764
|
* },
|
|
19527
19765
|
* {
|
|
19528
|
-
* name: '
|
|
19766
|
+
* name: 'mass',
|
|
19529
19767
|
* type: 'integer',
|
|
19530
|
-
* i18n: 'translation.key.
|
|
19531
|
-
* isEditable:
|
|
19532
|
-
* validators: [Validators.required]
|
|
19768
|
+
* i18n: 'translation.key.mass',
|
|
19769
|
+
* isEditable: row => row['article'] != null,
|
|
19770
|
+
* validators: [Validators.required] // only applied in template data mode
|
|
19533
19771
|
* },
|
|
19534
19772
|
* {
|
|
19535
|
-
* name: '
|
|
19536
|
-
* type: '
|
|
19537
|
-
* i18n: 'translation.key.
|
|
19538
|
-
*
|
|
19773
|
+
* name: 'unit',
|
|
19774
|
+
* type: 'enum',
|
|
19775
|
+
* i18n: 'translation.key.unit',
|
|
19776
|
+
* isEditable: () => true,
|
|
19777
|
+
* options: [
|
|
19778
|
+
* { value: 'kg', i18n: 'translation.key.unit.kg' },
|
|
19779
|
+
* { value: 't', i18n: 'translation.key.unit.t' }
|
|
19780
|
+
* ]
|
|
19539
19781
|
* }
|
|
19540
|
-
* ]
|
|
19782
|
+
* ],
|
|
19783
|
+
* canAdd: true
|
|
19541
19784
|
* }
|
|
19542
19785
|
*/
|
|
19543
19786
|
config: QdQuickEditConfig<T>;
|
|
19544
19787
|
/**
|
|
19545
|
-
* Data provider for QuickEdit.
|
|
19788
|
+
* Data provider for QuickEdit. Only used in template data mode.
|
|
19789
|
+
* QuickEdit removes rows from this array in place. Ignored when `formArrayName` is bound.
|
|
19546
19790
|
*/
|
|
19547
19791
|
data: QdQuickEditData<T> | undefined;
|
|
19548
19792
|
get templateData(): QdQuickEditData<T>;
|
|
@@ -19555,8 +19799,13 @@ declare class QdQuickEditComponent<T extends string> implements OnInit, OnChange
|
|
|
19555
19799
|
/**
|
|
19556
19800
|
* The form group instance of QdQuickEdit.
|
|
19557
19801
|
* Use this form group to bind it to step-control of QdStepper or other custom logics.
|
|
19802
|
+
* Only emits in template data mode. In FormArray mode your own FormArray is the source of truth.
|
|
19558
19803
|
*/
|
|
19559
19804
|
formGroupChange: EventEmitter<any>;
|
|
19805
|
+
/**
|
|
19806
|
+
* Emitted in FormArray mode when the user clicks the add button.
|
|
19807
|
+
* Insert a new FormGroup into your FormArray. Not emitted in template data mode.
|
|
19808
|
+
*/
|
|
19560
19809
|
addNewClicked: EventEmitter<void>;
|
|
19561
19810
|
private focusables;
|
|
19562
19811
|
private customForDirective;
|
|
@@ -19570,6 +19819,9 @@ declare class QdQuickEditComponent<T extends string> implements OnInit, OnChange
|
|
|
19570
19819
|
get canAdd(): boolean;
|
|
19571
19820
|
get rows(): FormArray;
|
|
19572
19821
|
get visibleColumns(): QdQuickEditColumn<T>[];
|
|
19822
|
+
/**
|
|
19823
|
+
* Track function for the column loop. Keeps a column's cells alive while the rows change.
|
|
19824
|
+
*/
|
|
19573
19825
|
trackByColumnName(_: number, column: QdQuickEditColumn<T>): string;
|
|
19574
19826
|
get isFormControl(): boolean;
|
|
19575
19827
|
togglerDrawing: boolean;
|
|
@@ -19577,11 +19829,37 @@ declare class QdQuickEditComponent<T extends string> implements OnInit, OnChange
|
|
|
19577
19829
|
ngOnInit(): void;
|
|
19578
19830
|
ngOnChanges(changes: SimpleChanges): void;
|
|
19579
19831
|
ngOnDestroy(): void;
|
|
19832
|
+
/**
|
|
19833
|
+
* Whether a secondary action is disabled for one row.
|
|
19834
|
+
* Resolves the `isDisabled` of the action, which may be a flag or a function of the row.
|
|
19835
|
+
*/
|
|
19580
19836
|
isActionDisabled(action: QdQuickEditSecondaryAction<T>, row: QdQuickEditRow<T>): boolean;
|
|
19837
|
+
/**
|
|
19838
|
+
* Runs the handler of a secondary action for one row.
|
|
19839
|
+
* The handler receives the row value only, never its position.
|
|
19840
|
+
*/
|
|
19581
19841
|
handleSecondaryAction(action: QdQuickEditSecondaryAction<T>, rowIndex: number): void;
|
|
19842
|
+
/**
|
|
19843
|
+
* Maps a column type onto a facet component.
|
|
19844
|
+
*
|
|
19845
|
+
* @deprecated Nothing calls this any more, the template renders the cells directly. Planned for v22.
|
|
19846
|
+
*/
|
|
19582
19847
|
getComponentType(column: QdQuickEditColumn<T>): Type<unknown> | null;
|
|
19848
|
+
/**
|
|
19849
|
+
* Builds the inputs of the facet component for one cell.
|
|
19850
|
+
*
|
|
19851
|
+
* @deprecated Nothing calls this any more, the template renders the cells directly. Planned for v22.
|
|
19852
|
+
*/
|
|
19583
19853
|
getComponentInputs(column: QdQuickEditColumn<T>, row: QdQuickEditRow<T>): any;
|
|
19854
|
+
/**
|
|
19855
|
+
* Adds a row and focuses its first field.
|
|
19856
|
+
* FormArray mode: emits `addNewClicked` and leaves the insert to you. Template data mode: inserts an empty row at the top.
|
|
19857
|
+
*/
|
|
19584
19858
|
createRow(): void;
|
|
19859
|
+
/**
|
|
19860
|
+
* Removes the row at `index`, after the confirmation dialog when one is configured.
|
|
19861
|
+
* FormArray mode: calls `removeAt(index)` on your FormArray, no extra event. Template data mode: removes from the internal FormArray and from `data`.
|
|
19862
|
+
*/
|
|
19585
19863
|
removeRow(index: number): void;
|
|
19586
19864
|
private executeRemoveRow;
|
|
19587
19865
|
private initRows;
|
|
@@ -19625,6 +19903,11 @@ declare class QdFocusableModule {
|
|
|
19625
19903
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdFocusableModule>;
|
|
19626
19904
|
}
|
|
19627
19905
|
|
|
19906
|
+
/**
|
|
19907
|
+
* Provides {@link QdQuickEditComponent} for editing rows inline.
|
|
19908
|
+
*
|
|
19909
|
+
* Import it where the table is used. It brings the form controls the cells need.
|
|
19910
|
+
*/
|
|
19628
19911
|
declare class QdQuickEditModule {
|
|
19629
19912
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdQuickEditModule, never>;
|
|
19630
19913
|
static ɵmod: i0.ɵɵNgModuleDeclaration<QdQuickEditModule, [typeof QdQuickEditComponent, typeof QdCustomForDirective], [typeof QdCoreModule, typeof QdButtonModule, typeof i2.CommonModule, typeof QdFormModule, typeof i31.ReactiveFormsModule, typeof QdIconModule, typeof QdPopoverModule, typeof i5.TranslateModule, typeof QdPageModule, typeof QdFocusableModule, typeof QdTooltipModule], [typeof QdQuickEditComponent]>;
|
|
@@ -19641,4 +19924,4 @@ declare class QdFrameworkModule {
|
|
|
19641
19924
|
declare const APP_ENVIRONMENT: InjectionToken<QdAppEnvironment>;
|
|
19642
19925
|
|
|
19643
19926
|
export { APP_ENVIRONMENT, BACKEND_ERROR_CODES, MockLocaleDatePipe, NavigationTileComponent, NavigationTilesComponent, QD_DIALOG_CONFIRMATION_RESOLVER_TOKEN, QD_FILE_MANAGER_TOKEN, QD_FILE_UPLOAD_MANAGER_TOKEN, QD_FORM_OPTIONS_RESOLVER, QD_PAGE_OBJECT_RESOLVER_TOKEN, QD_PAGE_STEP_RESOLVER_TOKEN, QD_POPOVER_TOP_FIRST, QD_SAFE_BOTTOM_OFFSET, QD_TABLE_DATA_RESOLVER_TOKEN, QD_UPLOAD_HTTP_OPTIONS, QdButtonComponent, QdButtonGhostDirective, QdButtonGridComponent, QdButtonLinkDirective, QdButtonModule, QdButtonStackButtonComponent, QdButtonStackComponent, QdCheckboxChipsComponent, QdCheckboxComponent, QdCheckboxesComponent, QdChipComponent, QdChipModule, QdColumnAutoFillDirective, QdColumnBreakBeforeDirective, QdColumnDirective, QdColumnDisableResponsiveColspansDirective, QdColumnFullGridWidthDirective, QdColumnNextInSameRowDirective, QdColumnsDirective, QdColumnsDisableAutoFillDirective, QdColumnsDisableResponsiveColspansDirective, QdColumnsMaxDirective, QdCommentsComponent, QdCommentsModule, QdConnectFormStateToPageDirective, QdConnectorTableContextDirective, QdConnectorTableFilterDirective, QdConnectorTableSearchDirective, QdContactCardComponent, QdContactCardModule, QdContainerPairsCaptionComponent, QdContainerPairsContainerComponent, QdContainerPairsHeaderComponent, QdContainerPairsItemComponent, QdContainerPairsValueComponent, QdContextService, QdCoreModule, QdDatepickerComponent, QdDialogActionComponent, QdDialogAuthSessionEndComponent, QdDialogAuthSessionEndService, QdDialogComponent, QdDialogConfirmationComponent, QdDialogConfirmationErrorDirective, QdDialogConfirmationInfoDirective, QdDialogConfirmationSuccessDirective, QdDialogModule, QdDialogRecordStepperComponent, QdDialogService, QdDialogSize, QdDisabledDirective, QdDropdownComponent, QdFileCollectorComponent, QdFileCollectorModule, QdFileSizePipe$1 as QdFileSizePipe, QdFileUploadComponent, QdFileUploadService, QdFilterComponent, QdFilterFormItemsComponent, QdFilterModule, QdFilterRestParamBuilder, QdFilterService, QdFooterActionType, QdFormArray, QdFormBuilder, QdFormControl, QdFormGroup, QdFormModule, QdFrameworkModule, QdGridComponent, QdGridModule, QdHorizontalPairsCaptionComponent, QdHorizontalPairsComponent, QdHorizontalPairsItemComponent, QdHorizontalPairsValueComponent, QdIconButtonComponent, QdIconComponent, QdIconModule, QdImageComponent, QdImageModule, QdIndeterminateProgressBarComponent, QdInputComponent, QdListModule, QdMenuButtonComponent, QdMockBreakpointService, QdMockButtonComponent, QdMockButtonGhostDirective, QdMockButtonGridComponent, QdMockButtonLinkDirective, QdMockButtonModule, QdMockButtonStackButtonComponent, QdMockButtonStackComponent, QdMockCalendarComponent, QdMockCheckboxChipsComponent, QdMockCheckboxComponent, QdMockCheckboxesComponent, QdMockChipComponent, QdMockChipModule, QdMockColumnDirective, QdMockColumnsDirective, QdMockContactCardComponent, QdMockContactCardModule, QdMockContainerPairsCaptionComponent, QdMockContainerPairsContainerComponent, QdMockContainerPairsHeaderComponent, QdMockContainerPairsItemComponent, QdMockContainerPairsValueComponent, QdMockCoreModule, QdMockCounterBadgeComponent, QdMockDatepickerComponent, QdMockDisabledDirective, QdMockDropdownComponent, QdMockFileCollectorComponent, QdMockFileCollectorModule, QdMockFilterCategoryBooleanComponent, QdMockFilterCategoryComponent, QdMockFilterCategoryDateComponent, QdMockFilterCategoryDateRangeComponent, QdMockFilterCategoryFreeTextComponent, QdMockFilterCategorySelectComponent, QdMockFilterComponent, QdMockFilterFormItemsComponent, QdMockFilterItemBooleanComponent, QdMockFilterItemDateComponent, QdMockFilterItemDateRangeComponent, QdMockFilterItemFreeTextComponent, QdMockFilterItemMultiSelectComponent, QdMockFilterItemSingleSelectComponent, QdMockFilterModule, QdMockFilterService, QdMockFormErrorComponent, QdMockFormGroupErrorComponent, QdMockFormHintComponent, QdMockFormLabelComponent, QdMockFormReadonlyComponent, QdMockFormViewonlyComponent, QdMockFormsModule, QdMockFrameworkModule, QdMockGridModule, QdMockIconButtonComponent, QdMockIconComponent, QdMockIconModule, QdMockImageComponent, QdMockImageModule, QdMockIndeterminateProgressBarComponent, QdMockInputComponent, QdMockListModule, QdMockNavigationTileComponent, QdMockNavigationTilesComponent, QdMockNavigationTilesModule, QdMockNotificationComponent, QdMockNotificationContentComponent, QdMockNotificationsComponent, QdMockNotificationsModule, QdMockNotificationsService, QdMockPageComponent, QdMockPageModule, QdMockPercentageProgressBarComponent, QdMockPinCodeComponent, QdMockPopoverOnClickDirective, QdMockProgressBarModule, QdMockRadioButtonsComponent, QdMockRwdDisabledDirective, QdMockSearchComponent, QdMockSearchModule, QdMockSectionComponent, QdMockSectionModule, QdMockShellComponent, QdMockShellFooterComponent, QdMockShellHeaderBannerComponent, QdMockShellHeaderComponent, QdMockShellHeaderSearchComponent, QdMockShellModule, QdMockShellToolbarComponent, QdMockShellToolbarItemComponent, QdMockStatusIndicatorCaptionComponent, QdMockStatusIndicatorComponent, QdMockStatusIndicatorItemComponent, QdMockStatusIndicatorModule, QdMockStatusPairsCaptionComponent, QdMockStatusPairsComponent, QdMockStatusPairsErrorComponent, QdMockStatusPairsItemComponent, QdMockStatusPairsValueComponent, QdMockSwitchComponent, QdMockSwitchesComponent, QdMockTableComponent, QdMockTableModule, QdMockTextSectionComponent, QdMockTextSectionHeadlineComponent, QdMockTextSectionModule, QdMockTextSectionParagraphComponent, QdMockTextareaComponent, QdMockTileButtonListComponent, QdMockTileComponent, QdMockTileTextListComponent, QdMockTileTextListItemComponent, QdMockTileTitleComponent, QdMockTilesContainerComponent, QdMockTilesContainerTitleComponent, QdMockTilesModule, QdMockTranslatePipe, QdMockVisuallyHiddenDirective, QdMultiInputComponent, QdNavigationTilesModule, QdNotificationComponent, QdNotificationContentComponent, QdNotificationsComponent, QdNotificationsHttpInterceptorService, QdNotificationsModule, QdNotificationsService, QdNotificationsSnackbarListenerDirective, QdNumberInputService, QdPageComponent, QdPageControlPanelComponent, QdPageFooterComponent, QdPageFooterCustomContentDirective, QdPageHeaderExtensionDirective, QdPageInfoBannerComponent, QdPageModule, QdPageStepComponent, QdPageStepperAdapterDirective, QdPageStepperComponent, QdPageStepperModule, QdPageStoreService, QdPageTabComponent, QdPageTabsAdapterDirective, QdPageTabsComponent, QdPageTabsModule, QdPanelSectionActionsComponent, QdPanelSectionComponent, QdPanelSectionModule, QdPanelSectionStatusComponent, QdPanelSectionTextParagraphComponent, QdPendingChangesGuardDirective, QdPercentageProgressBarComponent, QdPinCodeComponent, QdPlaceholderPipe, QdProgressBarModule, QdProjectionGuardComponent, QdPushEventsService, QdQuickEditComponent, QdQuickEditModule, QdRadioButtonsComponent, QdRichtextComponent, QdRouterQueryParamHubService, QdRwdDisabledDirective, QdSearchComponent, QdSearchModule, QdSearchService, QdSectionAdapterDirective, QdSectionComponent, QdSectionModule, QdSectionToolbarComponent, QdShellComponent, QdShellModule, QdSortDirection, QdSpinnerComponent, QdSpinnerModule, QdStatusIndicatorComponent, QdStatusIndicatorModule, QdStatusPairsCaptionComponent, QdStatusPairsComponent, QdStatusPairsErrorComponent, QdStatusPairsItemComponent, QdStatusPairsValueComponent, QdSubgridComponent, QdSwitchComponent, QdSwitchesComponent, QdTableComponent, QdTableModule, QdTextSectionComponent, QdTextSectionHeadlineComponent, QdTextSectionModule, QdTextSectionParagraphComponent, QdTextareaComponent, QdTileButtonListComponent, QdTileComponent, QdTileTextListComponent, QdTileTextListItemComponent, QdTileTitleComponent, QdTilesComponent, QdTilesModule, QdTilesTitleComponent, QdTooltipIconComponent, QdTreeComponent, QdTreeModule, QdTreeRowExpanderService, QdUploadErrorType, QdValidators, QdViewportAdaptiveDirective, QdVisuallyHiddenDirective, WHITELIST_ERROR_CODES, chipStateDefault, createMetadataStream, qdBackToOverview, qdFilterParameterize, qdMergeParams, qdPageTabParameterize, qdPaginationParameterize, qdSearchParameterize, qdSortParameterize, qdTableQueryParameterize, qdWrapParams, quadrelIconNames, updateHtmlLang };
|
|
19644
|
-
export type { CustomField, PreviousHref, QdAppEnvironment, QdAudioFileType, QdButtonAdditionalInfo, QdButtonAdditionalInfoMessage, QdButtonAdditionalInfoState, QdButtonColor, QdChipState, QdCollectedFile, QdComment, QdCommentAuthorFieldConfig, QdCommentCustomFieldConfig, QdCommentDeletedMeta, QdCommentRichtextConfig, QdCommentSecondaryActionConfig, QdCommentsAddButtonConfig, QdCommentsAddConfig, QdCommentsConfig, QdCompressedFileType, QdConfirmationState, QdContactAddress, QdContactCardActionConfig, QdContactCardActionLabel, QdContactCardActionsConfig, QdContactData, QdContactDataCustomField, QdContactDataCustomFieldEntry, QdContactDataCustomTranslatedEntry, QdContactFunction, QdContactPerson, QdContactTag, QdContextSelection, QdDependentFilterCategory, QdDialogAuthSessionEndResult, QdDialogCancelAction, QdDialogConfig, QdDialogConfirmConfigTranslation, QdDialogConfirmationConfig, QdDialogConfirmationResolver, QdDialogData, QdDialogPrimaryAction, QdDialogTitle, QdDisabledDates, QdDisabledDatesValidation, QdDisabledTimes, QdDisabledTimesValidation, QdDocumentFileType, QdFacetOptionMultiSelect, QdFacetOptionSingleSelect, QdFacetOptions, QdFacetOptionsDate, QdFacetOptionsIcon, QdFacetOptionsStatus, QdFacetOptionsValue, QdFileCollectorConfig, QdFileUpload$1 as QdFileCollectorUpload, QdFileManager, QdFileType, QdFileUpload, QdFileUploadManager, QdFilterCategory, QdFilterConfigData, QdFilterItem, QdFilterPostBodyCategory, QdFilterPostBodyData, QdFilterSelection, QdFilterType, QdFormArrayAsyncValidator, QdFormArrayItemAsyncValidator, QdFormArrayItemValidator, QdFormArrayItemValidatorOrOpts, QdFormArrayOptions, QdFormArrayValidator, QdFormArrayValuesOrControls, QdFormBaseOption, QdFormBaseOptions, QdFormCheckboxChipsConfiguration, QdFormCheckboxOption, QdFormCheckboxOptions, QdFormCheckboxesConfiguration, QdFormConfiguration, QdFormDatepickerConfiguration, QdFormDropdownConfiguration, QdFormFileUploadConfiguration, QdFormHint, QdFormInputConfiguration, QdFormInputOption, QdFormLabel, QdFormMultiInputConfiguration, QdFormOption, QdFormOptionsDependencies, QdFormOptionsResolvedEvent, QdFormOptionsResolver, QdFormPinCodeConfiguration, QdFormRadioButtonsConfiguration, QdFormRadioButtonsOptions, QdFormResolvableOptionsConfiguration, QdFormResolvedOption, QdFormResolvedOptions, QdFormSwitchesConfiguration, QdFormTextAreaConfiguration, QdFormTimepickerConfiguration, QdGridConfig, QdHinti18n, QdImageFileType, QdInputMode, QdInputRawEventValue, QdInputType, QdInputValue, QdInputValueWithUnit, QdInspectOperationMode, QdLabeli18n, QdMaxColumnsCount, QdMenuButtonActionConfig, QdMenuButtonActionLabel, QdMenuButtonConfig, QdMultiInputOption, QdNotification, QdNotificationLink, QdNotificationState, QdNotificationTitle, QdNotificationTranslation, QdNotifications, QdOsNotificationOptions, QdPageArchiveAction, QdPageCancelAction, QdPageCommitAction, QdPageConfig, QdPageConfigBase, QdPageConfigCreate, QdPageConfigCustom, QdPageConfigInspect, QdPageConfigOverview, QdPageContextConfig, QdPageContextConfigBase, QdPageContextConfigCustom, QdPageContextConfigMulti, QdPageContextConfigSingle, QdPageControlPanelConfig, QdPageCreateSubmitAction, QdPageCustomActionsLabel, QdPageDeleteAction, QdPageDialogCanCloseEntry, QdPageDialogCanCloseFn, QdPageDialogCanCloseResult, QdPageDialogCloseCause, QdPageEditAction, QdPageFooterAction, QdPageHeaderFacetConfig, QdPageInfoBannerConfig, QdPageInfoBannerLink, QdPageInfoBannerState, QdPageInfoBannerTitle, QdPageInfoBannerTranslation, QdPageInspectSubmitAction, QdPageObjectResolver, QdPageObjectResolverConfig, QdPageSaveAction, QdPageSaveDraftAction, QdPageSelectedContext, QdPageStepConfig, QdPageStepResolver, QdPageStepperActionConfig, QdPageStepperConfig, QdPageStepperHandlerParams, QdPageStepperSubmitActionConfig, QdPageTabConfig, QdPageTabCounters, QdPageTabsConfig, QdPageTabsSubmitButtonConfig, QdPageTitle, QdPageTypeCreateConfig, QdPageTypeCustomConfig, QdPageTypeInspectConfig, QdPageTypeOverviewConfig, QdPaginationParams, QdPanelSectionActionConfig, QdPanelSectionConfig, QdPanelSectionStatusConfig, QdPanelSectionStatusState, QdPanelSectionTextParagraphConfig, QdPanelSectionTextParagraphTitle, QdPanelSectionTitle, QdPinCodeInputType, QdPlaceholder, QdPlaceholderPrefix, QdPredefinedSectionActionConfig, QdPushEventName, QdQueryParameter, QdQuickEditColumn, QdQuickEditColumnBase, QdQuickEditColumnEnum, QdQuickEditColumnInteger, QdQuickEditColumnText, QdQuickEditConfig, QdQuickEditData, QdQuickEditDataValue, QdQuickEditEmptyStateView, QdQuickEditRow, QdQuickEditSecondaryAction, QdResolvedFilterCategory, QdRichtextConfig, QdSearchAdditionalInfo, QdSearchOptions, QdSearchPostBodyData, QdSearchPreSelectOptions, QdSearchPreSelectOptionsList, QdSearchState, QdSectionActionConfig, QdSectionActionOperationMode, QdSectionActionType, QdSectionCollapse, QdSectionConfig, QdSectionTitle, QdShellConfig, QdShellFooterCopyrightInfo, QdShellNavigationConfig, QdShellServiceNavigationBadge, QdShellServiceNavigationConfig, QdShellServiceNavigationContactInfo, QdShellServiceNavigationCustomButtonLinks, QdShellServiceNavigationEnvironment, QdShellServiceNavigationHrefs, QdShellServiceNavigationInfoLink, QdShellServiceNavigationLanguage, QdShellServiceNavigationMultiHrefBadge, QdShellServiceNavigationMultiHrefs, QdShellServiceNavigationProfileLink, QdShellServiceNavigationSingleHref, QdShellServiceNavigationSingleHrefBadge, QdShellToolbarConfig, QdShellToolbarItem, QdSnackbarNotificationOptions, QdStaticFilterCategory, QdStatus, QdStatusIndicator, QdStatusIndicatorCaption, QdStatusIndicatorLevel, QdStatusIndicatorState, QdStatusPairState, QdSubgridConfig, QdSwitchInput, QdSwitchOption, QdTabSelectionEvent, QdTableActionResult, QdTableChipDataValue, QdTableConfig, QdTableConfigColumn, QdTableConfigColumnBase, QdTableConfigColumnSort, QdTableConfigColumnType, QdTableConfigSecondaryActionType, QdTableConfigSelection, QdTableConfigSelectionType, QdTableConnectorCriteria, QdTableContentDataChip, QdTableContentDataChipObject, QdTableContextDataValue, QdTableCriticalDataValue, QdTableData, QdTableDataResolver, QdTableDataResolverProps, QdTableDataRow, QdTableDataValue, QdTableEmptyStateView, QdTableFillingColumn, QdTableOptionalRefreshingEventTypes, QdTablePagination, QdTablePrimaryAction, QdTableRecentSecondaryAction, QdTableRefreshConfig, QdTableResolvedData, QdTableRowIdentifier, QdTableRowIndex, QdTableRowUid, QdTableSecondaryAction, QdTableSelectedRow, QdTableSelectedRows, QdTableSort, QdTableStateSort, QdTableStatusDataValue, QdTileConfig, QdTilesConfig, QdTooltip, QdTranslatable, QdTranslation, QdTreeActionResult, QdTreeConfig, QdTreeConfigColumn, QdTreeConfigColumnBase, QdTreeConfigColumnType, QdTreeConfigSecondaryActionType, QdTreeData, QdTreeDataRow, QdTreeDataValue, QdTreeEmptyStateView, QdTreeGroupConfig, QdTreeRowsProvider, QdTreeSecondaryAction, QdUploadError, QdUploadProgress, QdVideoFileType };
|
|
19927
|
+
export type { CustomField, PreviousHref, QdAppEnvironment, QdAudioFileType, QdButtonAdditionalInfo, QdButtonAdditionalInfoMessage, QdButtonAdditionalInfoState, QdButtonColor, QdChipState, QdCollectedFile, QdComment, QdCommentAuthorFieldConfig, QdCommentCustomFieldConfig, QdCommentDeletedMeta, QdCommentRichtextConfig, QdCommentSecondaryActionConfig, QdCommentsAddButtonConfig, QdCommentsAddConfig, QdCommentsConfig, QdCompressedFileType, QdConfirmationState, QdContactAddress, QdContactCardActionConfig, QdContactCardActionLabel, QdContactCardActionsConfig, QdContactData, QdContactDataCustomField, QdContactDataCustomFieldEntry, QdContactDataCustomTranslatedEntry, QdContactFunction, QdContactPerson, QdContactTag, QdContextSelection, QdDependentFilterCategory, QdDialogAuthSessionEndResult, QdDialogCancelAction, QdDialogConfig, QdDialogConfirmConfigTranslation, QdDialogConfirmationConfig, QdDialogConfirmationResolver, QdDialogData, QdDialogPrimaryAction, QdDialogTitle, QdDisabledDates, QdDisabledDatesValidation, QdDisabledTimes, QdDisabledTimesValidation, QdDocumentFileType, QdFacetOptionMultiSelect, QdFacetOptionSingleSelect, QdFacetOptions, QdFacetOptionsDate, QdFacetOptionsIcon, QdFacetOptionsStatus, QdFacetOptionsValue, QdFileCollectorConfig, QdFileUpload$1 as QdFileCollectorUpload, QdFileDetails, QdFileManager, QdFileMetadataField, QdFileMetadataValues, QdFileType, QdFileUpload, QdFileUploadManager, QdFilterCategory, QdFilterConfigData, QdFilterItem, QdFilterPostBodyCategory, QdFilterPostBodyData, QdFilterSelection, QdFilterType, QdFormArrayAsyncValidator, QdFormArrayItemAsyncValidator, QdFormArrayItemValidator, QdFormArrayItemValidatorOrOpts, QdFormArrayOptions, QdFormArrayValidator, QdFormArrayValuesOrControls, QdFormBaseOption, QdFormBaseOptions, QdFormCheckboxChipsConfiguration, QdFormCheckboxOption, QdFormCheckboxOptions, QdFormCheckboxesConfiguration, QdFormConfiguration, QdFormDatepickerConfiguration, QdFormDropdownConfiguration, QdFormFileUploadConfiguration, QdFormHint, QdFormInputConfiguration, QdFormInputOption, QdFormLabel, QdFormMultiInputConfiguration, QdFormOption, QdFormOptionsDependencies, QdFormOptionsResolvedEvent, QdFormOptionsResolver, QdFormPinCodeConfiguration, QdFormRadioButtonsConfiguration, QdFormRadioButtonsOptions, QdFormResolvableOptionsConfiguration, QdFormResolvedOption, QdFormResolvedOptions, QdFormSwitchesConfiguration, QdFormTextAreaConfiguration, QdFormTimepickerConfiguration, QdGridConfig, QdHinti18n, QdImageFileType, QdInputMode, QdInputRawEventValue, QdInputType, QdInputValue, QdInputValueWithUnit, QdInspectOperationMode, QdLabeli18n, QdMaxColumnsCount, QdMenuButtonActionConfig, QdMenuButtonActionLabel, QdMenuButtonConfig, QdMultiInputOption, QdNotification, QdNotificationLink, QdNotificationState, QdNotificationTitle, QdNotificationTranslation, QdNotifications, QdOsNotificationOptions, QdPageArchiveAction, QdPageCancelAction, QdPageCommitAction, QdPageConfig, QdPageConfigBase, QdPageConfigCreate, QdPageConfigCustom, QdPageConfigInspect, QdPageConfigOverview, QdPageContextConfig, QdPageContextConfigBase, QdPageContextConfigCustom, QdPageContextConfigMulti, QdPageContextConfigSingle, QdPageControlPanelConfig, QdPageCreateSubmitAction, QdPageCustomActionsLabel, QdPageDeleteAction, QdPageDialogCanCloseEntry, QdPageDialogCanCloseFn, QdPageDialogCanCloseResult, QdPageDialogCloseCause, QdPageEditAction, QdPageFooterAction, QdPageHeaderFacetConfig, QdPageInfoBannerConfig, QdPageInfoBannerLink, QdPageInfoBannerState, QdPageInfoBannerTitle, QdPageInfoBannerTranslation, QdPageInspectSubmitAction, QdPageObjectResolver, QdPageObjectResolverConfig, QdPageSaveAction, QdPageSaveDraftAction, QdPageSelectedContext, QdPageStepConfig, QdPageStepResolver, QdPageStepperActionConfig, QdPageStepperConfig, QdPageStepperHandlerParams, QdPageStepperSubmitActionConfig, QdPageTabConfig, QdPageTabCounters, QdPageTabsConfig, QdPageTabsSubmitButtonConfig, QdPageTitle, QdPageTypeCreateConfig, QdPageTypeCustomConfig, QdPageTypeInspectConfig, QdPageTypeOverviewConfig, QdPaginationParams, QdPanelSectionActionConfig, QdPanelSectionConfig, QdPanelSectionStatusConfig, QdPanelSectionStatusState, QdPanelSectionTextParagraphConfig, QdPanelSectionTextParagraphTitle, QdPanelSectionTitle, QdPinCodeInputType, QdPlaceholder, QdPlaceholderPrefix, QdPredefinedSectionActionConfig, QdPushEventName, QdQueryParameter, QdQuickEditColumn, QdQuickEditColumnBase, QdQuickEditColumnEnum, QdQuickEditColumnInteger, QdQuickEditColumnText, QdQuickEditConfig, QdQuickEditData, QdQuickEditDataValue, QdQuickEditEmptyStateView, QdQuickEditRow, QdQuickEditSecondaryAction, QdResolvedFilterCategory, QdRichtextConfig, QdSearchAdditionalInfo, QdSearchOptions, QdSearchPostBodyData, QdSearchPreSelectOptions, QdSearchPreSelectOptionsList, QdSearchState, QdSectionActionConfig, QdSectionActionOperationMode, QdSectionActionType, QdSectionCollapse, QdSectionConfig, QdSectionTitle, QdShellConfig, QdShellFooterCopyrightInfo, QdShellNavigationConfig, QdShellServiceNavigationBadge, QdShellServiceNavigationConfig, QdShellServiceNavigationContactInfo, QdShellServiceNavigationCustomButtonLinks, QdShellServiceNavigationEnvironment, QdShellServiceNavigationHrefs, QdShellServiceNavigationInfoLink, QdShellServiceNavigationLanguage, QdShellServiceNavigationMultiHrefBadge, QdShellServiceNavigationMultiHrefs, QdShellServiceNavigationProfileLink, QdShellServiceNavigationSingleHref, QdShellServiceNavigationSingleHrefBadge, QdShellToolbarConfig, QdShellToolbarItem, QdSnackbarNotificationOptions, QdStaticFilterCategory, QdStatus, QdStatusIndicator, QdStatusIndicatorCaption, QdStatusIndicatorLevel, QdStatusIndicatorState, QdStatusPairState, QdSubgridConfig, QdSwitchInput, QdSwitchOption, QdTabSelectionEvent, QdTableActionResult, QdTableChipDataValue, QdTableConfig, QdTableConfigColumn, QdTableConfigColumnBase, QdTableConfigColumnSort, QdTableConfigColumnType, QdTableConfigSecondaryActionType, QdTableConfigSelection, QdTableConfigSelectionType, QdTableConnectorCriteria, QdTableContentDataChip, QdTableContentDataChipObject, QdTableContextDataValue, QdTableCriticalDataValue, QdTableData, QdTableDataResolver, QdTableDataResolverProps, QdTableDataRow, QdTableDataValue, QdTableEmptyStateView, QdTableFillingColumn, QdTableOptionalRefreshingEventTypes, QdTablePagination, QdTablePrimaryAction, QdTableRecentSecondaryAction, QdTableRefreshConfig, QdTableResolvedData, QdTableRowIdentifier, QdTableRowIndex, QdTableRowUid, QdTableSecondaryAction, QdTableSelectedRow, QdTableSelectedRows, QdTableSort, QdTableStateSort, QdTableStatusDataValue, QdTileConfig, QdTilesConfig, QdTooltip, QdTranslatable, QdTranslation, QdTreeActionResult, QdTreeConfig, QdTreeConfigColumn, QdTreeConfigColumnBase, QdTreeConfigColumnType, QdTreeConfigSecondaryActionType, QdTreeData, QdTreeDataRow, QdTreeDataValue, QdTreeEmptyStateView, QdTreeGroupConfig, QdTreeRowsProvider, QdTreeSecondaryAction, QdUploadError, QdUploadProgress, QdVideoFileType };
|