@sdcorejs/angular 19.2.4 → 19.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 +2 -0
- package/components/card/src/card-group.component.d.ts +28 -0
- package/components/card/src/card.component.d.ts +27 -0
- package/components/card/src/card.constants.d.ts +2 -0
- package/components/import-excel/src/import-excel.component.d.ts +23 -1
- package/components/index.d.ts +1 -0
- package/components/modal/src/modal.component.d.ts +1 -0
- package/components/quick-action/src/quick-action.component.d.ts +3 -1
- package/components/table/index.d.ts +1 -0
- package/components/table/src/components/command/pipes/filter.pipe.d.ts +4 -5
- package/components/table/src/components/mobile-cards/mobile-action.model.d.ts +17 -0
- package/components/table/src/components/mobile-cards/mobile-actions.component.d.ts +30 -0
- package/components/table/src/components/mobile-cards/mobile-cards.component.d.ts +52 -0
- package/components/table/src/components/selector-action/selector-action.component.d.ts +10 -0
- package/components/table/src/directives/index.d.ts +1 -0
- package/components/table/src/directives/sd-table-row-mobile-def.directive.d.ts +20 -0
- package/components/table/src/models/table-item.model.d.ts +3 -0
- package/components/table/src/models/table-option.model.d.ts +5 -0
- package/components/table/src/services/table-local/table-local-sort.util.d.ts +3 -0
- package/components/table/src/services/table-selection/selection-action.util.d.ts +6 -0
- package/components/table/src/table.component.d.ts +35 -4
- package/components/upload-file/src/upload-file.component.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 +4 -2
- 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 +1479 -924
- 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 +3 -2
- 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 +247 -59
- 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 +290 -67
- 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/src/autocomplete.component.d.ts +13 -2
- package/forms/select/src/select.component.d.ts +11 -1
- package/i18n/src/en.d.ts +36 -0
- package/package.json +11 -3
- package/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.d.ts +4 -0
- package/services/confirm/src/lib/confirm.service.d.ts +8 -0
- package/utilities/index.d.ts +1 -0
- package/utilities/read-state/index.d.ts +1 -0
- package/utilities/read-state/src/read-state.d.ts +37 -0
- package/components/table/src/pipes/selection-disabled.pipe.d.ts +0 -9
- package/components/table/src/pipes/selection-visible.pipe.d.ts +0 -9
package/i18n/src/en.d.ts
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
export declare const EN_MESSAGES: {
|
|
2
|
+
readonly 'core.component.table.mobile.tools': "Tools";
|
|
3
|
+
readonly 'core.component.table.mobile.tools-title': "Table tools";
|
|
4
|
+
readonly 'core.component.table.mobile.row-commands': "Row actions: {row}";
|
|
5
|
+
readonly 'core.component.table.mobile.row': "Row {index}";
|
|
6
|
+
readonly 'core.component.table.mobile.select-row': "Select {row}";
|
|
7
|
+
readonly 'core.component.table.mobile.commands-for': "Commands for {row}";
|
|
8
|
+
readonly 'core.component.table.mobile.expand-row': "Toggle details for {row}";
|
|
9
|
+
readonly 'core.component.table.mobile.level': "Level {level}";
|
|
10
|
+
readonly 'core.component.table.mobile.selected-across-pages': "Selected {count} — {here} on this page";
|
|
11
|
+
readonly 'core.component.table.mobile.selected': "Selected {count}";
|
|
12
|
+
readonly 'core.component.table.mobile.action': "Action {index}";
|
|
13
|
+
readonly 'core.component.table.mobile.sort': "Sort";
|
|
14
|
+
readonly 'core.component.table.mobile.more': "More";
|
|
15
|
+
readonly 'core.component.table.mobile.select-page': "Select this page";
|
|
16
|
+
readonly 'core.component.table.mobile.reorder': "Drag to reorder row";
|
|
17
|
+
readonly 'core.component.table.mobile.details': "Details";
|
|
18
|
+
readonly 'core.component.table.mobile.summary': "Summary";
|
|
2
19
|
readonly 'core.common.cancel': "Cancel";
|
|
3
20
|
readonly 'core.common.close': "Close";
|
|
4
21
|
readonly 'core.common.reload': "Reload page";
|
|
@@ -195,6 +212,7 @@ export declare const EN_MESSAGES: {
|
|
|
195
212
|
readonly 'core.form.checkbox.unchecked': "No";
|
|
196
213
|
readonly 'core.form.select.required': "Please enter information";
|
|
197
214
|
readonly 'core.form.select.selectAll': "All";
|
|
215
|
+
readonly 'core.form.select.selected-count': "{count} items selected";
|
|
198
216
|
readonly 'core.form.textarea.required': "Please enter information";
|
|
199
217
|
readonly 'core.form.textarea.maxlength': "Maximum characters: {max}";
|
|
200
218
|
readonly 'core.form.textarea.invalid-pattern': "Invalid format";
|
|
@@ -344,6 +362,21 @@ export declare const EN_MESSAGES: {
|
|
|
344
362
|
readonly 'core.component.code-editor.copied': "Copied!";
|
|
345
363
|
readonly 'core.component.code-editor.copy': "Copy code";
|
|
346
364
|
readonly 'core.component.history.by': "By";
|
|
365
|
+
readonly 'core.component.import-excel.choose-hint': "Choose an .xlsx template file with up to {limit} rows.";
|
|
366
|
+
readonly 'core.component.import-excel.choose-file': "Choose Excel file";
|
|
367
|
+
readonly 'core.component.import-excel.template': "Download template";
|
|
368
|
+
readonly 'core.component.import-excel.row-count': "{count} data rows";
|
|
369
|
+
readonly 'core.component.import-excel.replace-file': "Replace file";
|
|
370
|
+
readonly 'core.component.import-excel.filter-all': "All";
|
|
371
|
+
readonly 'core.component.import-excel.filter-success': "Valid";
|
|
372
|
+
readonly 'core.component.import-excel.filter-warning': "Warnings";
|
|
373
|
+
readonly 'core.component.import-excel.filter-error': "Errors";
|
|
374
|
+
readonly 'core.component.import-excel.preview': "Excel data preview";
|
|
375
|
+
readonly 'core.component.import-excel.issue-count': "View {count} issues";
|
|
376
|
+
readonly 'core.component.import-excel.no-filter-results': "No matching rows";
|
|
377
|
+
readonly 'core.component.import-excel.no-filter-results-hint': "Try another filter or view all data.";
|
|
378
|
+
readonly 'core.component.import-excel.blocked-errors': "Fix {count} rows with errors before importing.";
|
|
379
|
+
readonly 'core.component.import-excel.submitted': "Data has been submitted for processing.";
|
|
347
380
|
readonly 'core.component.import-excel.title': "Import Excel data";
|
|
348
381
|
readonly 'core.component.import-excel.see-all': "See all";
|
|
349
382
|
readonly 'core.component.import-excel.valid-rows': "Valid rows";
|
|
@@ -471,9 +504,12 @@ export declare const EN_MESSAGES: {
|
|
|
471
504
|
readonly 'core.component.table.config.drag-hint': "Drag the ⠿ handle to reorder columns";
|
|
472
505
|
readonly 'core.component.table.config.drag-handle': "Drag to reorder column";
|
|
473
506
|
readonly 'core.component.table.popup-export.select-columns': "Please select columns to export";
|
|
507
|
+
readonly 'core.component.table.selector-action.selected': "Selected {count}";
|
|
508
|
+
readonly 'core.component.table.selector-action.more': "More";
|
|
474
509
|
readonly 'core.component.table.selector-action.default-msg': "items selected";
|
|
475
510
|
readonly 'core.component.tab-router.too-many-tabs': "You have opened too many tabs.";
|
|
476
511
|
readonly 'core.component.upload-file.upload': "Upload file";
|
|
512
|
+
readonly 'core.component.upload-file.choose-or-drop': "Choose a file or drag it here";
|
|
477
513
|
readonly 'core.component.upload-file.error-occurred': "An error occurred";
|
|
478
514
|
readonly 'core.component.upload-file.please-upload': "Please upload a file/image";
|
|
479
515
|
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": "19.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": "19.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",
|
|
@@ -146,6 +146,10 @@
|
|
|
146
146
|
"types": "./components/button/index.d.ts",
|
|
147
147
|
"default": "./fesm2022/sdcorejs-angular-components-button.mjs"
|
|
148
148
|
},
|
|
149
|
+
"./components/card": {
|
|
150
|
+
"types": "./components/card/index.d.ts",
|
|
151
|
+
"default": "./fesm2022/sdcorejs-angular-components-card.mjs"
|
|
152
|
+
},
|
|
149
153
|
"./components/chart": {
|
|
150
154
|
"types": "./components/chart/index.d.ts",
|
|
151
155
|
"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
|
}
|
|
@@ -10,6 +10,7 @@ export interface DialogData {
|
|
|
10
10
|
yesButtonColor?: Color;
|
|
11
11
|
noButtonColor?: Color;
|
|
12
12
|
input?: {
|
|
13
|
+
label?: string;
|
|
13
14
|
placeholder?: string;
|
|
14
15
|
minlength?: number;
|
|
15
16
|
maxlength?: number;
|
|
@@ -55,6 +56,9 @@ export declare class DialogConfirmComponent {
|
|
|
55
56
|
id: string;
|
|
56
57
|
readonly dialogRef: MatDialogRef<any, any>;
|
|
57
58
|
readonly data: DialogData;
|
|
59
|
+
readonly iconTone: Color;
|
|
60
|
+
readonly resolvedIcon: string;
|
|
61
|
+
readonly hasFields: boolean;
|
|
58
62
|
constructor();
|
|
59
63
|
onCancel: () => void;
|
|
60
64
|
onAccept: () => void;
|
|
@@ -7,6 +7,7 @@ export declare class SdConfirmService {
|
|
|
7
7
|
constructor(...args: unknown[]);
|
|
8
8
|
confirm: (message: string, option?: {
|
|
9
9
|
title?: string;
|
|
10
|
+
icon?: string;
|
|
10
11
|
yesTitle?: string;
|
|
11
12
|
noTitle?: string;
|
|
12
13
|
yesButtonColor?: Color;
|
|
@@ -16,10 +17,13 @@ export declare class SdConfirmService {
|
|
|
16
17
|
}) => Promise<unknown>;
|
|
17
18
|
withInput: (message?: string, option?: {
|
|
18
19
|
title?: string;
|
|
20
|
+
icon?: string;
|
|
19
21
|
yesTitle?: string;
|
|
20
22
|
noTitle?: string;
|
|
21
23
|
required?: boolean;
|
|
22
24
|
maxlength?: number;
|
|
25
|
+
label?: string;
|
|
26
|
+
placeholder?: string;
|
|
23
27
|
yesButtonColor?: Color;
|
|
24
28
|
noButtonColor?: Color;
|
|
25
29
|
defaultValue?: string;
|
|
@@ -27,6 +31,7 @@ export declare class SdConfirmService {
|
|
|
27
31
|
}) => Promise<string>;
|
|
28
32
|
withRadio: (message?: string, option?: {
|
|
29
33
|
title?: string;
|
|
34
|
+
icon?: string;
|
|
30
35
|
yesTitle?: string;
|
|
31
36
|
noTitle?: string;
|
|
32
37
|
required?: boolean;
|
|
@@ -41,6 +46,7 @@ export declare class SdConfirmService {
|
|
|
41
46
|
}) => Promise<string>;
|
|
42
47
|
withSelect: (message?: string, option?: {
|
|
43
48
|
title?: string;
|
|
49
|
+
icon?: string;
|
|
44
50
|
yesTitle?: string;
|
|
45
51
|
noTitle?: string;
|
|
46
52
|
required?: boolean;
|
|
@@ -56,6 +62,7 @@ export declare class SdConfirmService {
|
|
|
56
62
|
}) => Promise<string | number | (string | number)[]>;
|
|
57
63
|
withDate: (message?: string, option?: {
|
|
58
64
|
title?: string;
|
|
65
|
+
icon?: string;
|
|
59
66
|
yesTitle?: string;
|
|
60
67
|
noTitle?: string;
|
|
61
68
|
required?: boolean;
|
|
@@ -69,6 +76,7 @@ export declare class SdConfirmService {
|
|
|
69
76
|
}) => Promise<string | Date>;
|
|
70
77
|
withDatetime: (message?: string, option?: {
|
|
71
78
|
title?: string;
|
|
79
|
+
icon?: string;
|
|
72
80
|
yesTitle?: string;
|
|
73
81
|
noTitle?: string;
|
|
74
82
|
required?: boolean;
|
package/utilities/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/read-state';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type SdReadOperation = 'TABLE' | 'VALUE' | 'SEARCH';
|
|
2
|
+
export type SdReadStatus = 'idle' | 'loading' | 'ready' | 'empty' | 'error';
|
|
3
|
+
/** An accepted read result. Only an error snapshot contains the original exception. */
|
|
4
|
+
export type SdReadState = Readonly<{
|
|
5
|
+
status: Exclude<SdReadStatus, 'error'>;
|
|
6
|
+
operation: SdReadOperation;
|
|
7
|
+
} | {
|
|
8
|
+
status: 'error';
|
|
9
|
+
operation: SdReadOperation;
|
|
10
|
+
error: unknown;
|
|
11
|
+
}>;
|
|
12
|
+
export type SdSearchReadState = SdReadState & {
|
|
13
|
+
readonly channels: Readonly<{
|
|
14
|
+
VALUE: SdReadState;
|
|
15
|
+
SEARCH: SdReadState;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
/** VALUE errors take precedence; otherwise SEARCH errors, then the active SEARCH channel. */
|
|
19
|
+
export declare function combineReadStates(value: SdReadState, search: SdReadState): SdSearchReadState;
|
|
20
|
+
/** @internal Request guard shared by controls. Context is checked even before Angular effects run. */
|
|
21
|
+
export declare class SdReadChannel {
|
|
22
|
+
#private;
|
|
23
|
+
readonly operation: SdReadOperation;
|
|
24
|
+
private readonly changed?;
|
|
25
|
+
readonly state: import("@angular/core").Signal<SdReadState>;
|
|
26
|
+
constructor(operation: SdReadOperation, changed?: ((state: SdReadState) => void) | undefined);
|
|
27
|
+
begin(valid?: () => boolean): number;
|
|
28
|
+
isCurrent(revision: number): boolean;
|
|
29
|
+
succeed(revision: number, count: number): boolean;
|
|
30
|
+
fail(revision: number, error: unknown): boolean;
|
|
31
|
+
invalidate(): void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @internal Copy request-owned data, including Dates. Unlike ObjectUtilities.clone,
|
|
35
|
+
* Dates must be copied too; structuredClone cannot retain table column callbacks.
|
|
36
|
+
*/
|
|
37
|
+
export declare function cloneReadRequest<T>(value: T, seen?: WeakMap<object, unknown>): T;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { SdTableOptionSelector } from '../models/table-option-selector.model';
|
|
3
|
-
import { SdTableItem } from '../models/table-item.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SdSelectionDisabledPipe implements PipeTransform {
|
|
6
|
-
transform: <T>(selectedItems: SdTableItem<T>[], rowData: SdTableItem<T>, selection: SdTableOptionSelector<T>) => boolean;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdSelectionDisabledPipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SdSelectionDisabledPipe, "selectionDisabled", true>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { SdTableOptionSelector } from '../models/table-option-selector.model';
|
|
3
|
-
import { SdTableItem } from '../models/table-item.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SdSelectionVisiblePipe implements PipeTransform {
|
|
6
|
-
transform: (rowData: SdTableItem, selection: SdTableOptionSelector | undefined) => boolean;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdSelectionVisiblePipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SdSelectionVisiblePipe, "selectionVisible", true>;
|
|
9
|
-
}
|