@simplysm/angular 14.0.49 → 14.0.52
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/dist/controls/select/sd-select.js +3 -3
- package/dist/data/sheet/sd-sheet.d.ts +9 -12
- package/dist/data/sheet/sd-sheet.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet.js +150 -168
- package/dist/data/sheet/types.d.ts +1 -0
- package/dist/data/sheet/types.d.ts.map +1 -1
- package/dist/data/sheet/useSheetCellStyling.d.ts +2 -2
- package/dist/data/sheet/useSheetCellStyling.d.ts.map +1 -1
- package/dist/data/sheet/useSheetCellStyling.js +20 -12
- package/dist/data/sheet/useSheetColumnFixing.d.ts +3 -8
- package/dist/data/sheet/useSheetColumnFixing.d.ts.map +1 -1
- package/dist/data/sheet/useSheetColumnFixing.js +19 -27
- package/dist/data/sheet/useSheetLayoutEngine.d.ts.map +1 -1
- package/dist/data/sheet/useSheetLayoutEngine.js +4 -1
- package/dist/layout/dock/sd-dock-container.d.ts.map +1 -1
- package/dist/layout/dock/sd-dock-container.js +4 -4
- package/package.json +7 -8
- package/src/controls/select/sd-select.ts +3 -3
- package/src/core/modal/sd-modal.provider.ts +1 -1
- package/src/core/modal/sd-modal.ts +1 -1
- package/src/core/routing/menu-utils.ts +1 -1
- package/src/core/shared-data/sd-shared-data.provider.ts +7 -7
- package/src/data/shared-data/sd-shared-data-select.ts +2 -2
- package/src/data/sheet/sd-sheet.ts +39 -60
- package/src/data/sheet/types.ts +1 -0
- package/src/data/sheet/useSheetCellStyling.ts +19 -11
- package/src/data/sheet/useSheetColumnFixing.ts +21 -28
- package/src/data/sheet/useSheetLayoutEngine.ts +4 -1
- package/src/layout/dock/sd-dock-container.ts +2 -1
- package/README.md +0 -467
- package/docs/bootstrap.md +0 -38
- package/docs/directives.md +0 -236
- package/docs/features.md +0 -154
- package/docs/pipes.md +0 -32
- package/docs/plugins.md +0 -37
- package/docs/provider-types.md +0 -283
- package/docs/providers.md +0 -379
- package/docs/recipes/crud-detail.md +0 -875
- package/docs/recipes/crud-list.md +0 -1037
- package/docs/recipes/data-select-button.md +0 -318
- package/docs/recipes/page-modal-container.md +0 -178
- package/docs/styling.md +0 -222
- package/docs/type-utilities.md +0 -250
- package/docs/ui-data.md +0 -333
- package/docs/ui-form.md +0 -502
- package/docs/ui-layout.md +0 -140
- package/docs/ui-navigation.md +0 -303
- package/docs/ui-overlay.md +0 -157
- package/docs/ui-visual.md +0 -127
- package/docs/utils.md +0 -244
|
@@ -198,11 +198,11 @@ export class SdSelect {
|
|
|
198
198
|
const items = this._itemControls();
|
|
199
199
|
const currentValue = this.value();
|
|
200
200
|
if (this.selectMode() === "multi") {
|
|
201
|
-
|
|
202
|
-
if (arr == null || arr.length === 0) {
|
|
201
|
+
if (!Array.isArray(currentValue) || currentValue.length === 0) {
|
|
203
202
|
this._selectedItemContentHTML.set(undefined);
|
|
204
203
|
return;
|
|
205
204
|
}
|
|
205
|
+
const arr = currentValue;
|
|
206
206
|
const selectedItems = untracked(() => items.filter((item) => arr.includes(item.value())));
|
|
207
207
|
const isVertical = this.multiSelectionDisplayDirection() === "vertical";
|
|
208
208
|
const separator = isVertical ? "<div class='p-sm-0'></div>" : ", ";
|
|
@@ -251,7 +251,7 @@ export class SdSelect {
|
|
|
251
251
|
}
|
|
252
252
|
else {
|
|
253
253
|
this.value.update((v) => {
|
|
254
|
-
const arr = v
|
|
254
|
+
const arr = Array.isArray(v) ? v : [];
|
|
255
255
|
if (arr.includes(itemValue)) {
|
|
256
256
|
return arr.filter((item) => item !== itemValue);
|
|
257
257
|
}
|
|
@@ -22,7 +22,6 @@ export declare class SdSheet<T> {
|
|
|
22
22
|
getItemCellClassFn: import("@angular/core").InputSignal<((item: T, colKey: string) => string) | undefined>;
|
|
23
23
|
getItemCellStyleFn: import("@angular/core").InputSignal<((item: T, colKey: string) => string | undefined) | undefined>;
|
|
24
24
|
hideConfigBar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
25
|
-
cumulativeSelection: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
26
25
|
itemKeydown: import("@angular/core").OutputEmitterRef<SdSheetItemKeydownEventParam<T>>;
|
|
27
26
|
cellKeydown: import("@angular/core").OutputEmitterRef<SdSheetCellKeydownEventParam<T>>;
|
|
28
27
|
selectedItems: import("@angular/core").ModelSignal<T[]>;
|
|
@@ -30,6 +29,8 @@ export declare class SdSheet<T> {
|
|
|
30
29
|
sorts: import("@angular/core").ModelSignal<SortingDef[]>;
|
|
31
30
|
currentPage: import("@angular/core").ModelSignal<number>;
|
|
32
31
|
columnControls: import("@angular/core").Signal<readonly SdSheetColumn<any>[]>;
|
|
32
|
+
columnControlsInput: import("@angular/core").InputSignal<readonly SdSheetColumn<unknown>[] | undefined>;
|
|
33
|
+
private readonly _effectiveColumnControls;
|
|
33
34
|
private readonly _sdModal;
|
|
34
35
|
domAccessor: {
|
|
35
36
|
getHostEl: () => HTMLElement;
|
|
@@ -75,12 +76,6 @@ export declare class SdSheet<T> {
|
|
|
75
76
|
headerDepth: import("@angular/core").Signal<number>;
|
|
76
77
|
headerFeatureRowSpan: import("@angular/core").Signal<number>;
|
|
77
78
|
};
|
|
78
|
-
fixing: {
|
|
79
|
-
fixedLeftMap: import("@angular/core").Signal<Map<string, number>>;
|
|
80
|
-
hasFixed: import("@angular/core").Signal<boolean>;
|
|
81
|
-
};
|
|
82
|
-
private readonly _featureCellWidths;
|
|
83
|
-
featureFixedLeftMap: import("@angular/core").Signal<Map<number, number>>;
|
|
84
79
|
sorting: {
|
|
85
80
|
defMap: import("@angular/core").Signal<Map<string, {
|
|
86
81
|
indexText?: string;
|
|
@@ -101,10 +96,14 @@ export declare class SdSheet<T> {
|
|
|
101
96
|
def(item: T): import("../..").ExpandItemDef<T>;
|
|
102
97
|
};
|
|
103
98
|
displayItems: import("@angular/core").Signal<T[]>;
|
|
99
|
+
private readonly _fixedCellWidths;
|
|
100
|
+
fixing: {
|
|
101
|
+
fixedLeftMap: import("@angular/core").Signal<Map<number, number>>;
|
|
102
|
+
};
|
|
104
103
|
private readonly _styling;
|
|
105
104
|
getHeaderCellStyle: (cell: SdSheetHeaderDef) => string | null;
|
|
106
105
|
getCellStyle: (item: T, colDef: import("./types").SdSheetColumnDef) => string | null;
|
|
107
|
-
getFixedCellStyle: (
|
|
106
|
+
getFixedCellStyle: (colIdx: number) => string | null;
|
|
108
107
|
getCellStyleWithIndent: (item: T, colDef: import("./types").SdSheetColumnDef, colIdx: number) => string | null;
|
|
109
108
|
getDataCellClass: (item: T, colDef: import("./types").SdSheetColumnDef, r: number, c: number) => string | null;
|
|
110
109
|
private readonly _focusIndicator;
|
|
@@ -120,8 +119,6 @@ export declare class SdSheet<T> {
|
|
|
120
119
|
toggleAll(): void;
|
|
121
120
|
isSelected(item: T): boolean;
|
|
122
121
|
};
|
|
123
|
-
private _resetOnItemsChangeSkipFirst;
|
|
124
|
-
private readonly _resetOnItemsChange;
|
|
125
122
|
icons: {
|
|
126
123
|
tablerSettings: string;
|
|
127
124
|
tablerCaretRight: string;
|
|
@@ -155,14 +152,14 @@ export declare class SdSheet<T> {
|
|
|
155
152
|
onBlurCapture(event: FocusEvent): void;
|
|
156
153
|
onContainerScroll(): void;
|
|
157
154
|
onTableResize(event: SdResizeEvent): void;
|
|
158
|
-
|
|
155
|
+
onFixedCellResize(event: SdResizeEvent, key: number): void;
|
|
159
156
|
onSelectorMouseDown(event: MouseEvent, r: number): void;
|
|
160
157
|
private _autoScrollOnFocus;
|
|
161
158
|
onItemKeydown(event: KeyboardEvent, item: T): void;
|
|
162
159
|
onCellKeydown(event: KeyboardEvent, item: T, colKey: string): void;
|
|
163
160
|
onConfigButtonClick(): Promise<void>;
|
|
164
161
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdSheet<any>, never>;
|
|
165
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdSheet<any>, "sd-sheet", never, { "key": { "alias": "key"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "trackByFn": { "alias": "trackByFn"; "required": false; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "autoSelect": { "alias": "autoSelect"; "required": false; "isSignal": true; }; "getItemSelectableFn": { "alias": "getItemSelectableFn"; "required": false; "isSignal": true; }; "getChildrenFn": { "alias": "getChildrenFn"; "required": false; "isSignal": true; }; "useAutoSort": { "alias": "useAutoSort"; "required": false; "isSignal": true; }; "visiblePageCount": { "alias": "visiblePageCount"; "required": false; "isSignal": true; }; "totalPageCount": { "alias": "totalPageCount"; "required": false; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "contentStyle": { "alias": "contentStyle"; "required": false; "isSignal": true; }; "getItemCellClassFn": { "alias": "getItemCellClassFn"; "required": false; "isSignal": true; }; "getItemCellStyleFn": { "alias": "getItemCellStyleFn"; "required": false; "isSignal": true; }; "hideConfigBar": { "alias": "hideConfigBar"; "required": false; "isSignal": true; }; "
|
|
162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdSheet<any>, "sd-sheet", never, { "key": { "alias": "key"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "trackByFn": { "alias": "trackByFn"; "required": false; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "autoSelect": { "alias": "autoSelect"; "required": false; "isSignal": true; }; "getItemSelectableFn": { "alias": "getItemSelectableFn"; "required": false; "isSignal": true; }; "getChildrenFn": { "alias": "getChildrenFn"; "required": false; "isSignal": true; }; "useAutoSort": { "alias": "useAutoSort"; "required": false; "isSignal": true; }; "visiblePageCount": { "alias": "visiblePageCount"; "required": false; "isSignal": true; }; "totalPageCount": { "alias": "totalPageCount"; "required": false; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "contentStyle": { "alias": "contentStyle"; "required": false; "isSignal": true; }; "getItemCellClassFn": { "alias": "getItemCellClassFn"; "required": false; "isSignal": true; }; "getItemCellStyleFn": { "alias": "getItemCellStyleFn"; "required": false; "isSignal": true; }; "hideConfigBar": { "alias": "hideConfigBar"; "required": false; "isSignal": true; }; "selectedItems": { "alias": "selectedItems"; "required": false; "isSignal": true; }; "expandedItems": { "alias": "expandedItems"; "required": false; "isSignal": true; }; "sorts": { "alias": "sorts"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "columnControlsInput": { "alias": "columnControlsInput"; "required": false; "isSignal": true; }; }, { "itemKeydown": "itemKeydown"; "cellKeydown": "cellKeydown"; "selectedItems": "selectedItemsChange"; "expandedItems": "expandedItemsChange"; "sorts": "sortsChange"; "currentPage": "currentPageChange"; }, ["columnControls"], never, true, [{ directive: typeof i1.SdEvents; inputs: {}; outputs: { "keydown.capture": "keydown.capture"; "focus.capture": "focus.capture"; "blur.capture": "blur.capture"; }; }]>;
|
|
166
163
|
}
|
|
167
164
|
export type { SortingDef } from "../../core/selection/useSortingManager";
|
|
168
165
|
//# sourceMappingURL=sd-sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-sheet.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/sd-sheet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sd-sheet.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/sd-sheet.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAclD,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,wCAAwC,CAAC;AAI5F,OAAO,KAAK,EACV,4BAA4B,EAE5B,gBAAgB,EAChB,4BAA4B,EAC7B,MAAM,SAAS,CAAC;A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