@sdcorejs/angular 21.2.4 → 21.2.6
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/README.md +11 -9
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +3 -3
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-card.mjs +174 -0
- package/fesm2022/sdcorejs-angular-components-card.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-data-state.mjs +4 -3
- package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +14 -14
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +38 -6
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-inform.mjs +4 -3
- package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +17 -4
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +3 -3
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs +5 -3
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +3 -2
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-stepper.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-stepper.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1358 -803
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +4 -3
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components.mjs +1 -0
- package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +248 -60
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs +57 -7
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +291 -68
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +180 -0
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +2 -2
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-api.mjs +5 -0
- package/fesm2022/sdcorejs-angular-services-api.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs +55 -9
- package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-notify.mjs +2 -2
- package/fesm2022/sdcorejs-angular-services-notify.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-utilities-read-state.mjs +87 -0
- package/fesm2022/sdcorejs-angular-utilities-read-state.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-utilities.mjs +1 -0
- package/fesm2022/sdcorejs-angular-utilities.mjs.map +1 -1
- package/package.json +11 -3
- package/types/sdcorejs-angular-components-card.d.ts +58 -0
- package/types/sdcorejs-angular-components-import-excel.d.ts +23 -1
- package/types/sdcorejs-angular-components-modal.d.ts +1 -0
- package/types/sdcorejs-angular-components-quick-action.d.ts +6 -4
- package/types/sdcorejs-angular-components-table.d.ts +303 -233
- package/types/sdcorejs-angular-components-upload-file.d.ts +2 -1
- package/types/sdcorejs-angular-components.d.ts +1 -0
- package/types/sdcorejs-angular-forms-autocomplete.d.ts +13 -2
- package/types/sdcorejs-angular-forms-select.d.ts +11 -1
- package/types/sdcorejs-angular-i18n.d.ts +36 -0
- package/types/sdcorejs-angular-services-confirm.d.ts +12 -0
- package/types/sdcorejs-angular-utilities-read-state.d.ts +42 -0
- package/types/sdcorejs-angular-utilities.d.ts +1 -0
|
@@ -110,6 +110,7 @@ declare class SdUploadFile<TArgs = unknown> {
|
|
|
110
110
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
111
111
|
readonly key: _angular_core.InputSignal<string | undefined>;
|
|
112
112
|
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
113
|
+
readonly appearance: _angular_core.InputSignal<"dropzone" | "compact">;
|
|
113
114
|
readonly previewWidth: _angular_core.InputSignal<string>;
|
|
114
115
|
readonly previewHeight: _angular_core.InputSignal<string>;
|
|
115
116
|
readonly align: _angular_core.InputSignal<"left" | "center">;
|
|
@@ -171,7 +172,7 @@ declare class SdUploadFile<TArgs = unknown> {
|
|
|
171
172
|
onDownload: (previewFile: PreviewFile) => void;
|
|
172
173
|
isLastVisibleOverlay(fileIndex: number): boolean;
|
|
173
174
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdUploadFile<any>, never>;
|
|
174
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdUploadFile<any>, "sd-upload-file", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "args": { "alias": "args"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "previewWidth": { "alias": "previewWidth"; "required": false; "isSignal": true; }; "previewHeight": { "alias": "previewHeight"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "uploadInput": { "alias": "upload"; "required": false; "isSignal": true; }; "details": { "alias": "details"; "required": false; "isSignal": true; }; "downloadInput": { "alias": "download"; "required": false; "isSignal": true; }; "imageValidator": { "alias": "imageValidator"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "scaleToPixel": { "alias": "scaleToPixel"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "nameInput": { "alias": "name"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "maxOfImage": { "alias": "maxOfImage"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "loaded": "loaded"; "filesChanged": "filesChanged"; "model": "modelChange"; }, ["sdLabelDef"], never, true, never>;
|
|
175
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdUploadFile<any>, "sd-upload-file", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "args": { "alias": "args"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "previewWidth": { "alias": "previewWidth"; "required": false; "isSignal": true; }; "previewHeight": { "alias": "previewHeight"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "uploadInput": { "alias": "upload"; "required": false; "isSignal": true; }; "details": { "alias": "details"; "required": false; "isSignal": true; }; "downloadInput": { "alias": "download"; "required": false; "isSignal": true; }; "imageValidator": { "alias": "imageValidator"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "scaleToPixel": { "alias": "scaleToPixel"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "nameInput": { "alias": "name"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "maxOfImage": { "alias": "maxOfImage"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "loaded": "loaded"; "filesChanged": "filesChanged"; "model": "modelChange"; }, ["sdLabelDef"], never, true, never>;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
export { SD_UPLOAD_FILE_CONFIGURATION, SdUploadFile };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from '@sdcorejs/angular/components/avatar';
|
|
2
2
|
export * from '@sdcorejs/angular/components/button';
|
|
3
|
+
export * from '@sdcorejs/angular/components/card';
|
|
3
4
|
export * from '@sdcorejs/angular/components/badge';
|
|
4
5
|
export * from '@sdcorejs/angular/components/tab-router';
|
|
5
6
|
export * from '@sdcorejs/angular/components/side-drawer';
|
|
@@ -4,6 +4,8 @@ import { FormGroup, FormControl, FormGroupDirective, NgForm } from '@angular/for
|
|
|
4
4
|
import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
5
5
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
6
6
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
7
|
+
import { SdDataStateTemplateDirective } from '@sdcorejs/angular/components/data-state';
|
|
8
|
+
import { SdSearchReadState } from '@sdcorejs/angular/utilities/read-state';
|
|
7
9
|
import { SdItemDefDefDirective, SdViewDefDirective } from '@sdcorejs/angular/forms/directives';
|
|
8
10
|
import { SdSearch, SdViewed, SdViewedInput, SdCustomValidator, SdSelectionData, SdFormControl } from '@sdcorejs/angular/forms/models';
|
|
9
11
|
import { Size } from '@sdcorejs/utils/models';
|
|
@@ -50,6 +52,11 @@ declare class SdAutocomplete<T = unknown> implements OnInit, OnDestroy {
|
|
|
50
52
|
hyperlink: _angular_core.InputSignal<string | null | undefined>;
|
|
51
53
|
items: _angular_core.InputSignal<SdSearch<T> | T[] | null | undefined>;
|
|
52
54
|
hideInlineError: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
55
|
+
readonly hideReadError: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
56
|
+
readonly dataStateTemplate: _angular_core.Signal<SdDataStateTemplateDirective | undefined>;
|
|
57
|
+
readonly sdReadStateChange: _angular_core.OutputEmitterRef<SdSearchReadState>;
|
|
58
|
+
readonly readState: _angular_core.Signal<SdSearchReadState>;
|
|
59
|
+
readonly hasSearched: _angular_core.WritableSignal<boolean>;
|
|
53
60
|
addable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
54
61
|
required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
55
62
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -94,7 +101,9 @@ declare class SdAutocomplete<T = unknown> implements OnInit, OnDestroy {
|
|
|
94
101
|
ngOnDestroy(): void;
|
|
95
102
|
onSelect: (item: T) => void;
|
|
96
103
|
onFocus: () => void;
|
|
97
|
-
onBlur: () => void;
|
|
104
|
+
onBlur: (event?: FocusEvent) => void;
|
|
105
|
+
protected focusReadRetry: (event: KeyboardEvent) => void;
|
|
106
|
+
protected onReadRegionKeydown: (event: KeyboardEvent) => void;
|
|
98
107
|
onClick: () => void;
|
|
99
108
|
blur: () => void;
|
|
100
109
|
focus: () => void;
|
|
@@ -103,8 +112,10 @@ declare class SdAutocomplete<T = unknown> implements OnInit, OnDestroy {
|
|
|
103
112
|
clear: ($event?: any) => void;
|
|
104
113
|
onAdd: ($event: Event) => void;
|
|
105
114
|
reValidate: () => void;
|
|
115
|
+
/** Retry bypasses text debounce/distinctness while using the original loader and request snapshot. */
|
|
116
|
+
retryRead: () => void;
|
|
106
117
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdAutocomplete<any>, never>;
|
|
107
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdAutocomplete<any>, "sd-autocomplete", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "displayField": { "alias": "displayField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "cacheChecksum": { "alias": "cacheChecksum"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "addable": { "alias": "addable"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "validator": { "alias": "validator"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; "sdSelection": "sdSelection"; "sdAdd": "sdAdd"; }, ["sdLabelTemplate", "sdValueTemplate", "itemDef", "sdViewDef"], ["[sdLabel]"], true, never>;
|
|
118
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdAutocomplete<any>, "sd-autocomplete", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "displayField": { "alias": "displayField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "cacheChecksum": { "alias": "cacheChecksum"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "hideReadError": { "alias": "hideReadError"; "required": false; "isSignal": true; }; "addable": { "alias": "addable"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "validator": { "alias": "validator"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "sdReadStateChange": "sdReadStateChange"; "valueModel": "modelChange"; "sdChange": "sdChange"; "sdSelection": "sdSelection"; "sdAdd": "sdAdd"; }, ["sdLabelTemplate", "sdValueTemplate", "itemDef", "sdViewDef", "dataStateTemplate"], ["[sdLabel]"], true, never>;
|
|
108
119
|
}
|
|
109
120
|
|
|
110
121
|
export { SdAutocomplete };
|
|
@@ -4,6 +4,8 @@ import { FormGroup, FormControl } from '@angular/forms';
|
|
|
4
4
|
import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
|
|
5
5
|
import { MatInput } from '@angular/material/input';
|
|
6
6
|
import { MatSelect, MatSelectChange } from '@angular/material/select';
|
|
7
|
+
import { SdDataStateTemplateDirective } from '@sdcorejs/angular/components/data-state';
|
|
8
|
+
import { SdSearchReadState } from '@sdcorejs/angular/utilities/read-state';
|
|
7
9
|
import { SdItemDefDefDirective, SdViewDefDirective } from '@sdcorejs/angular/forms/directives';
|
|
8
10
|
import { SdViewed, SdViewedInput, SdCustomValidator, SdSearch, SdSelectionData, SdFormControl } from '@sdcorejs/angular/forms/models';
|
|
9
11
|
import { Size } from '@sdcorejs/utils/models';
|
|
@@ -73,6 +75,10 @@ declare class SdSelect<T extends object | string | number = Record<string, unkno
|
|
|
73
75
|
hyperlink: _angular_core.InputSignal<string | null | undefined>;
|
|
74
76
|
minWidthPanel: _angular_core.InputSignalWithTransform<string | number, string | number | null | undefined>;
|
|
75
77
|
hideInlineError: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
78
|
+
readonly hideReadError: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
79
|
+
readonly dataStateTemplate: Signal<SdDataStateTemplateDirective | undefined>;
|
|
80
|
+
readonly sdReadStateChange: _angular_core.OutputEmitterRef<SdSearchReadState>;
|
|
81
|
+
readonly readState: Signal<SdSearchReadState>;
|
|
76
82
|
required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
77
83
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
78
84
|
/** Display mode: `false` edit · `true` static view · `'inline'` view + click-to-edit (bare editor). */
|
|
@@ -146,6 +152,10 @@ declare class SdSelect<T extends object | string | number = Record<string, unkno
|
|
|
146
152
|
updatePanelWidth: () => void;
|
|
147
153
|
constructor();
|
|
148
154
|
ngOnInit(): void;
|
|
155
|
+
protected focusReadRetry: (event: KeyboardEvent) => void;
|
|
156
|
+
protected onReadRegionKeydown: (event: KeyboardEvent) => void;
|
|
157
|
+
/** Retry the error selected by readState; VALUE and SEARCH retain separate snapshots. */
|
|
158
|
+
retryRead: () => Promise<void>;
|
|
149
159
|
onSelectionChange: (change: MatSelectChange) => void;
|
|
150
160
|
/**
|
|
151
161
|
* Toggle "Tất cả" theo scope hiện tại (items enabled khớp search):
|
|
@@ -163,7 +173,7 @@ declare class SdSelect<T extends object | string | number = Record<string, unkno
|
|
|
163
173
|
open: () => void;
|
|
164
174
|
onOpenedChange: (isOpened: boolean) => void;
|
|
165
175
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdSelect<any>, never>;
|
|
166
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdSelect<any>, "sd-select", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "displayField": { "alias": "displayField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "cacheChecksum": { "alias": "cacheChecksum"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "minWidthPanel": { "alias": "minWidthPanel"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "validator": { "alias": "validator"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; "sdSelection": "sdSelection"; }, ["sdLabelTemplate", "sdValueTemplate", "sdSelectedTemplate", "itemDef", "sdViewDef", "footerActions"], ["[sdLabel]"], true, never>;
|
|
176
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdSelect<any>, "sd-select", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "displayField": { "alias": "displayField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "cacheChecksum": { "alias": "cacheChecksum"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "minWidthPanel": { "alias": "minWidthPanel"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "hideReadError": { "alias": "hideReadError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "validator": { "alias": "validator"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "sdReadStateChange": "sdReadStateChange"; "valueModel": "modelChange"; "sdChange": "sdChange"; "sdSelection": "sdSelection"; }, ["sdLabelTemplate", "sdValueTemplate", "sdSelectedTemplate", "itemDef", "sdViewDef", "footerActions", "dataStateTemplate"], ["[sdLabel]"], true, never>;
|
|
167
177
|
}
|
|
168
178
|
|
|
169
179
|
export { SdSelect, SdSelectFooterActionDirective };
|
|
@@ -5,6 +5,23 @@ import { Signal, PipeTransform } from '@angular/core';
|
|
|
5
5
|
declare const I18N_STORAGE_KEY = "sd-core.language";
|
|
6
6
|
|
|
7
7
|
declare const EN_MESSAGES: {
|
|
8
|
+
readonly 'core.component.table.mobile.tools': "Tools";
|
|
9
|
+
readonly 'core.component.table.mobile.tools-title': "Table tools";
|
|
10
|
+
readonly 'core.component.table.mobile.row-commands': "Row actions: {row}";
|
|
11
|
+
readonly 'core.component.table.mobile.row': "Row {index}";
|
|
12
|
+
readonly 'core.component.table.mobile.select-row': "Select {row}";
|
|
13
|
+
readonly 'core.component.table.mobile.commands-for': "Commands for {row}";
|
|
14
|
+
readonly 'core.component.table.mobile.expand-row': "Toggle details for {row}";
|
|
15
|
+
readonly 'core.component.table.mobile.level': "Level {level}";
|
|
16
|
+
readonly 'core.component.table.mobile.selected-across-pages': "Selected {count} — {here} on this page";
|
|
17
|
+
readonly 'core.component.table.mobile.selected': "Selected {count}";
|
|
18
|
+
readonly 'core.component.table.mobile.action': "Action {index}";
|
|
19
|
+
readonly 'core.component.table.mobile.sort': "Sort";
|
|
20
|
+
readonly 'core.component.table.mobile.more': "More";
|
|
21
|
+
readonly 'core.component.table.mobile.select-page': "Select this page";
|
|
22
|
+
readonly 'core.component.table.mobile.reorder': "Drag to reorder row";
|
|
23
|
+
readonly 'core.component.table.mobile.details': "Details";
|
|
24
|
+
readonly 'core.component.table.mobile.summary': "Summary";
|
|
8
25
|
readonly 'core.common.cancel': "Cancel";
|
|
9
26
|
readonly 'core.common.close': "Close";
|
|
10
27
|
readonly 'core.common.reload': "Reload page";
|
|
@@ -201,6 +218,7 @@ declare const EN_MESSAGES: {
|
|
|
201
218
|
readonly 'core.form.checkbox.unchecked': "No";
|
|
202
219
|
readonly 'core.form.select.required': "Please enter information";
|
|
203
220
|
readonly 'core.form.select.selectAll': "All";
|
|
221
|
+
readonly 'core.form.select.selected-count': "{count} items selected";
|
|
204
222
|
readonly 'core.form.textarea.required': "Please enter information";
|
|
205
223
|
readonly 'core.form.textarea.maxlength': "Maximum characters: {max}";
|
|
206
224
|
readonly 'core.form.textarea.invalid-pattern': "Invalid format";
|
|
@@ -350,6 +368,21 @@ declare const EN_MESSAGES: {
|
|
|
350
368
|
readonly 'core.component.code-editor.copied': "Copied!";
|
|
351
369
|
readonly 'core.component.code-editor.copy': "Copy code";
|
|
352
370
|
readonly 'core.component.history.by': "By";
|
|
371
|
+
readonly 'core.component.import-excel.choose-hint': "Choose an .xlsx template file with up to {limit} rows.";
|
|
372
|
+
readonly 'core.component.import-excel.choose-file': "Choose Excel file";
|
|
373
|
+
readonly 'core.component.import-excel.template': "Download template";
|
|
374
|
+
readonly 'core.component.import-excel.row-count': "{count} data rows";
|
|
375
|
+
readonly 'core.component.import-excel.replace-file': "Replace file";
|
|
376
|
+
readonly 'core.component.import-excel.filter-all': "All";
|
|
377
|
+
readonly 'core.component.import-excel.filter-success': "Valid";
|
|
378
|
+
readonly 'core.component.import-excel.filter-warning': "Warnings";
|
|
379
|
+
readonly 'core.component.import-excel.filter-error': "Errors";
|
|
380
|
+
readonly 'core.component.import-excel.preview': "Excel data preview";
|
|
381
|
+
readonly 'core.component.import-excel.issue-count': "View {count} issues";
|
|
382
|
+
readonly 'core.component.import-excel.no-filter-results': "No matching rows";
|
|
383
|
+
readonly 'core.component.import-excel.no-filter-results-hint': "Try another filter or view all data.";
|
|
384
|
+
readonly 'core.component.import-excel.blocked-errors': "Fix {count} rows with errors before importing.";
|
|
385
|
+
readonly 'core.component.import-excel.submitted': "Data has been submitted for processing.";
|
|
353
386
|
readonly 'core.component.import-excel.title': "Import Excel data";
|
|
354
387
|
readonly 'core.component.import-excel.see-all': "See all";
|
|
355
388
|
readonly 'core.component.import-excel.valid-rows': "Valid rows";
|
|
@@ -477,9 +510,12 @@ declare const EN_MESSAGES: {
|
|
|
477
510
|
readonly 'core.component.table.config.drag-hint': "Drag the ⠿ handle to reorder columns";
|
|
478
511
|
readonly 'core.component.table.config.drag-handle': "Drag to reorder column";
|
|
479
512
|
readonly 'core.component.table.popup-export.select-columns': "Please select columns to export";
|
|
513
|
+
readonly 'core.component.table.selector-action.selected': "Selected {count}";
|
|
514
|
+
readonly 'core.component.table.selector-action.more': "More";
|
|
480
515
|
readonly 'core.component.table.selector-action.default-msg': "items selected";
|
|
481
516
|
readonly 'core.component.tab-router.too-many-tabs': "You have opened too many tabs.";
|
|
482
517
|
readonly 'core.component.upload-file.upload': "Upload file";
|
|
518
|
+
readonly 'core.component.upload-file.choose-or-drop': "Choose a file or drag it here";
|
|
483
519
|
readonly 'core.component.upload-file.error-occurred': "An error occurred";
|
|
484
520
|
readonly 'core.component.upload-file.please-upload': "Please upload a file/image";
|
|
485
521
|
readonly 'core.component.upload-file.desc-format-and-size': "Format: {exts} and up to: {maxSize}MB";
|
|
@@ -11,6 +11,7 @@ interface DialogData {
|
|
|
11
11
|
yesButtonColor?: Color;
|
|
12
12
|
noButtonColor?: Color;
|
|
13
13
|
input?: {
|
|
14
|
+
label?: string;
|
|
14
15
|
placeholder?: string;
|
|
15
16
|
minlength?: number;
|
|
16
17
|
maxlength?: number;
|
|
@@ -56,6 +57,9 @@ declare class DialogConfirmComponent {
|
|
|
56
57
|
id: string;
|
|
57
58
|
readonly dialogRef: MatDialogRef<any, any>;
|
|
58
59
|
readonly data: DialogData;
|
|
60
|
+
readonly iconTone: Color;
|
|
61
|
+
readonly resolvedIcon: string;
|
|
62
|
+
readonly hasFields: boolean;
|
|
59
63
|
constructor();
|
|
60
64
|
onCancel: () => void;
|
|
61
65
|
onAccept: () => void;
|
|
@@ -70,6 +74,7 @@ declare class SdConfirmService {
|
|
|
70
74
|
constructor(...args: unknown[]);
|
|
71
75
|
confirm: (message: string, option?: {
|
|
72
76
|
title?: string;
|
|
77
|
+
icon?: string;
|
|
73
78
|
yesTitle?: string;
|
|
74
79
|
noTitle?: string;
|
|
75
80
|
yesButtonColor?: Color;
|
|
@@ -79,10 +84,13 @@ declare class SdConfirmService {
|
|
|
79
84
|
}) => Promise<unknown>;
|
|
80
85
|
withInput: (message?: string, option?: {
|
|
81
86
|
title?: string;
|
|
87
|
+
icon?: string;
|
|
82
88
|
yesTitle?: string;
|
|
83
89
|
noTitle?: string;
|
|
84
90
|
required?: boolean;
|
|
85
91
|
maxlength?: number;
|
|
92
|
+
label?: string;
|
|
93
|
+
placeholder?: string;
|
|
86
94
|
yesButtonColor?: Color;
|
|
87
95
|
noButtonColor?: Color;
|
|
88
96
|
defaultValue?: string;
|
|
@@ -90,6 +98,7 @@ declare class SdConfirmService {
|
|
|
90
98
|
}) => Promise<string>;
|
|
91
99
|
withRadio: (message?: string, option?: {
|
|
92
100
|
title?: string;
|
|
101
|
+
icon?: string;
|
|
93
102
|
yesTitle?: string;
|
|
94
103
|
noTitle?: string;
|
|
95
104
|
required?: boolean;
|
|
@@ -104,6 +113,7 @@ declare class SdConfirmService {
|
|
|
104
113
|
}) => Promise<string>;
|
|
105
114
|
withSelect: (message?: string, option?: {
|
|
106
115
|
title?: string;
|
|
116
|
+
icon?: string;
|
|
107
117
|
yesTitle?: string;
|
|
108
118
|
noTitle?: string;
|
|
109
119
|
required?: boolean;
|
|
@@ -119,6 +129,7 @@ declare class SdConfirmService {
|
|
|
119
129
|
}) => Promise<string | number | (string | number)[]>;
|
|
120
130
|
withDate: (message?: string, option?: {
|
|
121
131
|
title?: string;
|
|
132
|
+
icon?: string;
|
|
122
133
|
yesTitle?: string;
|
|
123
134
|
noTitle?: string;
|
|
124
135
|
required?: boolean;
|
|
@@ -132,6 +143,7 @@ declare class SdConfirmService {
|
|
|
132
143
|
}) => Promise<string | Date>;
|
|
133
144
|
withDatetime: (message?: string, option?: {
|
|
134
145
|
title?: string;
|
|
146
|
+
icon?: string;
|
|
135
147
|
yesTitle?: string;
|
|
136
148
|
noTitle?: string;
|
|
137
149
|
required?: boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type SdReadOperation = 'TABLE' | 'VALUE' | 'SEARCH';
|
|
4
|
+
type SdReadStatus = 'idle' | 'loading' | 'ready' | 'empty' | 'error';
|
|
5
|
+
/** An accepted read result. Only an error snapshot contains the original exception. */
|
|
6
|
+
type SdReadState = Readonly<{
|
|
7
|
+
status: Exclude<SdReadStatus, 'error'>;
|
|
8
|
+
operation: SdReadOperation;
|
|
9
|
+
} | {
|
|
10
|
+
status: 'error';
|
|
11
|
+
operation: SdReadOperation;
|
|
12
|
+
error: unknown;
|
|
13
|
+
}>;
|
|
14
|
+
type SdSearchReadState = SdReadState & {
|
|
15
|
+
readonly channels: Readonly<{
|
|
16
|
+
VALUE: SdReadState;
|
|
17
|
+
SEARCH: SdReadState;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
/** VALUE errors take precedence; otherwise SEARCH errors, then the active SEARCH channel. */
|
|
21
|
+
declare function combineReadStates(value: SdReadState, search: SdReadState): SdSearchReadState;
|
|
22
|
+
/** @internal Request guard shared by controls. Context is checked even before Angular effects run. */
|
|
23
|
+
declare class SdReadChannel {
|
|
24
|
+
#private;
|
|
25
|
+
readonly operation: SdReadOperation;
|
|
26
|
+
private readonly changed?;
|
|
27
|
+
readonly state: _angular_core.Signal<SdReadState>;
|
|
28
|
+
constructor(operation: SdReadOperation, changed?: ((state: SdReadState) => void) | undefined);
|
|
29
|
+
begin(valid?: () => boolean): number;
|
|
30
|
+
isCurrent(revision: number): boolean;
|
|
31
|
+
succeed(revision: number, count: number): boolean;
|
|
32
|
+
fail(revision: number, error: unknown): boolean;
|
|
33
|
+
invalidate(): void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @internal Copy request-owned data, including Dates. Unlike ObjectUtilities.clone,
|
|
37
|
+
* Dates must be copied too; structuredClone cannot retain table column callbacks.
|
|
38
|
+
*/
|
|
39
|
+
declare function cloneReadRequest<T>(value: T, seen?: WeakMap<object, unknown>): T;
|
|
40
|
+
|
|
41
|
+
export { SdReadChannel, cloneReadRequest, combineReadStates };
|
|
42
|
+
export type { SdReadOperation, SdReadState, SdReadStatus, SdSearchReadState };
|