@sdcorejs/angular 20.2.4 → 20.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/components/card/index.d.ts +58 -0
- package/components/import-excel/index.d.ts +23 -1
- package/components/index.d.ts +1 -0
- package/components/modal/index.d.ts +1 -0
- package/components/quick-action/index.d.ts +6 -4
- package/components/table/index.d.ts +303 -233
- package/components/upload-file/index.d.ts +2 -1
- 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 +178 -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/forms/autocomplete/index.d.ts +13 -2
- package/forms/select/index.d.ts +11 -1
- package/i18n/index.d.ts +36 -0
- package/package.json +11 -3
- package/services/confirm/index.d.ts +12 -0
- package/utilities/index.d.ts +1 -0
- package/utilities/read-state/index.d.ts +42 -0
package/i18n/index.d.ts
CHANGED
|
@@ -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";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdcorejs/angular",
|
|
3
|
-
"version": "20.2.
|
|
4
|
-
"description": "Angular component library: data table, query bar/builder, 20+ signal-based form controls, layout, auth and workflow services. Standalone, OnPush, signals-first. Published in parallel lines for Angular 19, 20 and
|
|
3
|
+
"version": "20.2.6",
|
|
4
|
+
"description": "Angular component library: data table, query bar/builder, 20+ signal-based form controls, layout, auth and workflow services. Standalone, OnPush, signals-first. Published in parallel lines for Angular 19, 20, 21 and 22.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
7
7
|
"angular-components",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"rxjs": "^7.8.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@sdcorejs/angular-material-datetime": "1.0.
|
|
43
|
+
"@sdcorejs/angular-material-datetime": "1.0.4",
|
|
44
44
|
"@sdcorejs/utils": "1.1.4",
|
|
45
45
|
"@lucide/angular": "^1.22.0",
|
|
46
46
|
"@ckeditor/ckeditor5-angular": "11.1.2",
|
|
@@ -106,6 +106,10 @@
|
|
|
106
106
|
"types": "./components/button/index.d.ts",
|
|
107
107
|
"default": "./fesm2022/sdcorejs-angular-components-button.mjs"
|
|
108
108
|
},
|
|
109
|
+
"./components/card": {
|
|
110
|
+
"types": "./components/card/index.d.ts",
|
|
111
|
+
"default": "./fesm2022/sdcorejs-angular-components-card.mjs"
|
|
112
|
+
},
|
|
109
113
|
"./components/chart": {
|
|
110
114
|
"types": "./components/chart/index.d.ts",
|
|
111
115
|
"default": "./fesm2022/sdcorejs-angular-components-chart.mjs"
|
|
@@ -425,6 +429,10 @@
|
|
|
425
429
|
"./utilities/models": {
|
|
426
430
|
"types": "./utilities/models/index.d.ts",
|
|
427
431
|
"default": "./fesm2022/sdcorejs-angular-utilities-models.mjs"
|
|
432
|
+
},
|
|
433
|
+
"./utilities/read-state": {
|
|
434
|
+
"types": "./utilities/read-state/index.d.ts",
|
|
435
|
+
"default": "./fesm2022/sdcorejs-angular-utilities-read-state.mjs"
|
|
428
436
|
}
|
|
429
437
|
}
|
|
430
438
|
}
|
|
@@ -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;
|
package/utilities/index.d.ts
CHANGED
|
@@ -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 };
|