@simplysm/angular 14.2.18 → 14.2.23
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/button/sd-modal-select-button.d.ts.map +1 -1
- package/dist/controls/button/sd-modal-select-button.js +1 -1
- package/dist/data/shared-data/sd-shared-data-select-list.d.ts +3 -1
- package/dist/data/shared-data/sd-shared-data-select-list.d.ts.map +1 -1
- package/dist/data/shared-data/sd-shared-data-select-list.js +5 -3
- package/dist/data/shared-data/sd-shared-data-select.d.ts +3 -2
- package/dist/data/shared-data/sd-shared-data-select.d.ts.map +1 -1
- package/dist/data/shared-data/sd-shared-data-select.js +7 -5
- package/package.json +8 -5
- package/src/controls/button/sd-modal-select-button.ts +13 -10
- package/src/data/shared-data/sd-shared-data-select-list.ts +3 -2
- package/src/data/shared-data/sd-shared-data-select.ts +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-modal-select-button.d.ts","sourceRoot":"","sources":["../../../src/controls/button/sd-modal-select-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;;AAIrF;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,IAAI,CAAE,SAAQ,iBAAiB,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC3F,UAAU,EAAE,WAAW,CAAC,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IACxD,YAAY,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC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,EAAE,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,IAAI,WAAW,CACvE,CAAC,EACD,YAAY,GAAG,cAAc,CAC9B,CAAC;AAEF,qBAyGa,mBAAmB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,eAAe,CAAC,CAAC,CAAC,GAAG,MAAM,eAAe,CAAC,CAAC,CAAC;IAC/F,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;IAEpD,KAAK,mDAAyD;IAE9D,KAAK,yEAAkC;IAEvC,QAAQ,qEAAiD;IACzD,QAAQ,qEAAiD;IACzD,KAAK,qEAAiD;IACtD,IAAI,uCAAwB;IAC5B,UAAU,iBAA2B;IACrC,YAAY,0CAA2B;IAEvC,UAAU,sBAAuB;IAEjC,SAAS,CAAC,QAAQ,CAAC,YAAY,obAAgB;IAE/C,SAAS,0CAKN;;IAYH,YAAY,IAAI,IAAI;IAId,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;yCAvC1C,mBAAmB;2CAAnB,mBAAmB;CAgE/B"}
|
|
@@ -86,7 +86,7 @@ export class SdModalSelectButton {
|
|
|
86
86
|
: [this.value()]).filterExists(),
|
|
87
87
|
...modal.inputs,
|
|
88
88
|
},
|
|
89
|
-
});
|
|
89
|
+
}, this.modalOptions());
|
|
90
90
|
if (result) {
|
|
91
91
|
const newValue = this.selectMode() === "multi" ? result.selectedKeys : result.selectedKeys[0];
|
|
92
92
|
this.value.set(newValue);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
2
|
import type { SharedDataBase } from "../../core/shared-data/sd-shared-data.provider";
|
|
3
3
|
import { type SdItemOfTemplateContext } from "../../core/template/sd-item-of-template";
|
|
4
|
+
import { type SdModalOptions } from "../../core/modal/sd-modal.provider";
|
|
4
5
|
import type { SdSelectModal, SdSelectModalInfo } from "../../controls/button/sd-modal-select-button";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class SdSharedDataSelectList<TItem extends SharedDataBase<string | number>, TModal extends SdSelectModal<any>> {
|
|
@@ -12,6 +13,7 @@ export declare class SdSharedDataSelectList<TItem extends SharedDataBase<string
|
|
|
12
13
|
useUndefined: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
14
|
filterFn: import("@angular/core").InputSignal<((item: TItem, index: number) => boolean) | undefined>;
|
|
14
15
|
modal: import("@angular/core").InputSignal<SdSelectModalInfo<TModal> | undefined>;
|
|
16
|
+
modalOptions: import("@angular/core").InputSignal<SdModalOptions | undefined>;
|
|
15
17
|
header: import("@angular/core").InputSignal<string | undefined>;
|
|
16
18
|
headerTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
17
19
|
filterTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
@@ -29,6 +31,6 @@ export declare class SdSharedDataSelectList<TItem extends SharedDataBase<string
|
|
|
29
31
|
onModalButtonClick(): Promise<void>;
|
|
30
32
|
protected readonly tablerExternalLink = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"stroke-width:var(--ng-icon__stroke-width, 2)\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6\"></path><path d=\"M11 13l9 -9\"></path><path d=\"M15 4h5v5\"></path></svg>";
|
|
31
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdSharedDataSelectList<any, any>, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdSharedDataSelectList<any, any>, "sd-shared-data-select-list", never, { "selectedItem": { "alias": "selectedItem"; "required": false; "isSignal": true; }; "canChangeFn": { "alias": "canChangeFn"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "selectedIcon": { "alias": "selectedIcon"; "required": false; "isSignal": true; }; "useUndefined": { "alias": "useUndefined"; "required": false; "isSignal": true; }; "filterFn": { "alias": "filterFn"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "pageItemCount": { "alias": "pageItemCount"; "required": false; "isSignal": true; }; }, { "selectedItem": "selectedItemChange"; }, ["headerTplRef", "filterTplRef", "itemTplRef", "undefinedTplRef"], never, true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdSharedDataSelectList<any, any>, "sd-shared-data-select-list", never, { "selectedItem": { "alias": "selectedItem"; "required": false; "isSignal": true; }; "canChangeFn": { "alias": "canChangeFn"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "selectedIcon": { "alias": "selectedIcon"; "required": false; "isSignal": true; }; "useUndefined": { "alias": "useUndefined"; "required": false; "isSignal": true; }; "filterFn": { "alias": "filterFn"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "modalOptions": { "alias": "modalOptions"; "required": false; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "pageItemCount": { "alias": "pageItemCount"; "required": false; "isSignal": true; }; }, { "selectedItem": "selectedItemChange"; }, ["headerTplRef", "filterTplRef", "itemTplRef", "undefinedTplRef"], never, true, never>;
|
|
33
35
|
}
|
|
34
36
|
//# sourceMappingURL=sd-shared-data-select-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-shared-data-select-list.d.ts","sourceRoot":"","sources":["../../../src/data/shared-data/sd-shared-data-select-list.ts"],"names":[],"mappings":"AACA,OAAO,EAWL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;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I,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IAI/B,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAuBzC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,waAAsB;yCAtHhD,sBAAsB;2CAAtB,sBAAsB;CAuHlC"}
|
|
@@ -145,6 +145,8 @@ export class SdSharedDataSelectList {
|
|
|
145
145
|
...(ngDevMode ? [undefined, { debugName: "filterFn" }] : /* istanbul ignore next */ []));
|
|
146
146
|
modal = input(/* @ts-ignore */
|
|
147
147
|
...(ngDevMode ? [undefined, { debugName: "modal" }] : /* istanbul ignore next */ []));
|
|
148
|
+
modalOptions = input(/* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [undefined, { debugName: "modalOptions" }] : /* istanbul ignore next */ []));
|
|
148
150
|
header = input(/* @ts-ignore */
|
|
149
151
|
...(ngDevMode ? [undefined, { debugName: "header" }] : /* istanbul ignore next */ []));
|
|
150
152
|
headerTplRef = contentChild("headerTpl", { ...(ngDevMode ? { debugName: "headerTplRef" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
@@ -218,7 +220,7 @@ export class SdSharedDataSelectList {
|
|
|
218
220
|
.map((item) => item.__valueKey),
|
|
219
221
|
...modalInfo.inputs,
|
|
220
222
|
},
|
|
221
|
-
});
|
|
223
|
+
}, this.modalOptions());
|
|
222
224
|
if (result != null) {
|
|
223
225
|
const newSelectedItem = this.items().find((item) => item.__valueKey === result.selectedKeys[0]);
|
|
224
226
|
this.selectedItem.set(newSelectedItem);
|
|
@@ -230,7 +232,7 @@ export class SdSharedDataSelectList {
|
|
|
230
232
|
i0.ɵɵcontentQuerySignal(dirIndex, ctx.headerTplRef, _c0, 5, TemplateRef)(dirIndex, ctx.filterTplRef, _c1, 5, TemplateRef)(dirIndex, ctx.itemTplRef, SdItemOfTemplate, 5, TemplateRef)(dirIndex, ctx.undefinedTplRef, _c2, 5, TemplateRef);
|
|
231
233
|
} if (rf & 2) {
|
|
232
234
|
i0.ɵɵqueryAdvance(4);
|
|
233
|
-
} }, hostAttrs: [1, "flex-column", "fill"], inputs: { selectedItem: [1, "selectedItem"], canChangeFn: [1, "canChangeFn"], items: [1, "items"], selectedIcon: [1, "selectedIcon"], useUndefined: [1, "useUndefined"], filterFn: [1, "filterFn"], modal: [1, "modal"], header: [1, "header"], pageItemCount: [1, "pageItemCount"] }, outputs: { selectedItem: "selectedItemChange" }, decls: 11, vars: 5, consts: [[1, "flex-column", "gap-sm", "pt-default", "ph-sm"], [1, "flex-row"], [3, "type", "placeholder", "value"], [1, "flex-fill"], [1, "flex-column", "gap-default"], [3, "currentPage", "totalPageCount"], [1, "flex-fill", 3, "inset"], [3, "selected", "selectedIcon"], [3, "ngTemplateOutlet"], [1, "control-header"], [3, "click"], [3, "svg"], [3, "valueChange", "type", "placeholder", "value"], [3, "currentPageChange", "currentPage", "totalPageCount"], [3, "click", "selected", "selectedIcon"], [1, "tx-gray"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function SdSharedDataSelectList_Template(rf, ctx) { if (rf & 1) {
|
|
235
|
+
} }, hostAttrs: [1, "flex-column", "fill"], inputs: { selectedItem: [1, "selectedItem"], canChangeFn: [1, "canChangeFn"], items: [1, "items"], selectedIcon: [1, "selectedIcon"], useUndefined: [1, "useUndefined"], filterFn: [1, "filterFn"], modal: [1, "modal"], modalOptions: [1, "modalOptions"], header: [1, "header"], pageItemCount: [1, "pageItemCount"] }, outputs: { selectedItem: "selectedItemChange" }, decls: 11, vars: 5, consts: [[1, "flex-column", "gap-sm", "pt-default", "ph-sm"], [1, "flex-row"], [3, "type", "placeholder", "value"], [1, "flex-fill"], [1, "flex-column", "gap-default"], [3, "currentPage", "totalPageCount"], [1, "flex-fill", 3, "inset"], [3, "selected", "selectedIcon"], [3, "ngTemplateOutlet"], [1, "control-header"], [3, "click"], [3, "svg"], [3, "valueChange", "type", "placeholder", "value"], [3, "currentPageChange", "currentPage", "totalPageCount"], [3, "click", "selected", "selectedIcon"], [1, "tx-gray"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function SdSharedDataSelectList_Template(rf, ctx) { if (rf & 1) {
|
|
234
236
|
i0.ɵɵelementStart(0, "div", 0);
|
|
235
237
|
i0.ɵɵconditionalCreate(1, SdSharedDataSelectList_Conditional_1_Template, 5, 3, "div", 1);
|
|
236
238
|
i0.ɵɵconditionalCreate(2, SdSharedDataSelectList_Conditional_2_Template, 1, 3, "sd-textfield", 2)(3, SdSharedDataSelectList_Conditional_3_Template, 2, 1, "div");
|
|
@@ -340,7 +342,7 @@ export class SdSharedDataSelectList {
|
|
|
340
342
|
</div>
|
|
341
343
|
`,
|
|
342
344
|
}]
|
|
343
|
-
}], () => [], { selectedItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedItem", required: false }] }, { type: i0.Output, args: ["selectedItemChange"] }], canChangeFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "canChangeFn", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], selectedIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIcon", required: false }] }], useUndefined: [{ type: i0.Input, args: [{ isSignal: true, alias: "useUndefined", required: false }] }], filterFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFn", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], headerTplRef: [{ type: i0.ContentChild, args: ["headerTpl", { ...{
|
|
345
|
+
}], () => [], { selectedItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedItem", required: false }] }, { type: i0.Output, args: ["selectedItemChange"] }], canChangeFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "canChangeFn", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], selectedIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIcon", required: false }] }], useUndefined: [{ type: i0.Input, args: [{ isSignal: true, alias: "useUndefined", required: false }] }], filterFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFn", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], modalOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "modalOptions", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], headerTplRef: [{ type: i0.ContentChild, args: ["headerTpl", { ...{
|
|
344
346
|
read: TemplateRef,
|
|
345
347
|
}, isSignal: true }] }], filterTplRef: [{ type: i0.ContentChild, args: ["filterTpl", { ...{
|
|
346
348
|
read: TemplateRef,
|
|
@@ -3,7 +3,7 @@ import { TemplateRef } from "@angular/core";
|
|
|
3
3
|
import type { SharedDataBase } from "../../core/shared-data/sd-shared-data.provider";
|
|
4
4
|
import { type SelectModeValue } from "../../controls/select/sd-select";
|
|
5
5
|
import { type SdItemOfTemplateContext } from "../../core/template/sd-item-of-template";
|
|
6
|
-
import { type SdModalContentDef, type SdModalInfo } from "../../core/modal/sd-modal.provider";
|
|
6
|
+
import { type SdModalContentDef, type SdModalInfo, type SdModalOptions } from "../../core/modal/sd-modal.provider";
|
|
7
7
|
import type { SdSelectModal, SdSelectModalInfo } from "../../controls/button/sd-modal-select-button";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class SdSharedDataSelect<TItem extends SharedDataBase<string | number>, TMode extends keyof SelectModeValue<TItem>, TModal extends SdSelectModal<any>> {
|
|
@@ -22,6 +22,7 @@ export declare class SdSharedDataSelect<TItem extends SharedDataBase<string | nu
|
|
|
22
22
|
filterFnParams: import("@angular/core").InputSignal<any[] | undefined>;
|
|
23
23
|
modal: import("@angular/core").InputSignal<SdSelectModalInfo<TModal> | undefined>;
|
|
24
24
|
editModal: import("@angular/core").InputSignal<SdModalInfo<SdModalContentDef<boolean>, ""> | undefined>;
|
|
25
|
+
modalOptions: import("@angular/core").InputSignal<SdModalOptions | undefined>;
|
|
25
26
|
selectClass: import("@angular/core").InputSignal<string | undefined>;
|
|
26
27
|
multiSelectionDisplayDirection: import("@angular/core").InputSignal<"vertical" | undefined>;
|
|
27
28
|
getIsHiddenFn: import("@angular/core").InputSignal<(item: TItem, index: number) => boolean>;
|
|
@@ -48,6 +49,6 @@ export declare class SdSharedDataSelect<TItem extends SharedDataBase<string | nu
|
|
|
48
49
|
protected readonly tablerSearch = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"stroke-width:var(--ng-icon__stroke-width, 2)\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0\"></path><path d=\"M21 21l-6 -6\"></path></svg>";
|
|
49
50
|
protected readonly tablerEdit = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"stroke-width:var(--ng-icon__stroke-width, 2)\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1\"></path><path d=\"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415\"></path><path d=\"M16 5l3 3\"></path></svg>";
|
|
50
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdSharedDataSelect<any, any, any>, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdSharedDataSelect<any, any, any>, "sd-shared-data-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "useUndefined": { "alias": "useUndefined"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "filterFn": { "alias": "filterFn"; "required": false; "isSignal": true; }; "filterFnParams": { "alias": "filterFnParams"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "editModal": { "alias": "editModal"; "required": false; "isSignal": true; }; "selectClass": { "alias": "selectClass"; "required": false; "isSignal": true; }; "multiSelectionDisplayDirection": { "alias": "multiSelectionDisplayDirection"; "required": false; "isSignal": true; }; "getIsHiddenFn": { "alias": "getIsHiddenFn"; "required": false; "isSignal": true; }; "getSearchTextFn": { "alias": "getSearchTextFn"; "required": false; "isSignal": true; }; "displayOrderByFn": { "alias": "displayOrderByFn"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["itemTplRef", "undefinedTplRef"], never, true, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdSharedDataSelect<any, any, any>, "sd-shared-data-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "useUndefined": { "alias": "useUndefined"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "filterFn": { "alias": "filterFn"; "required": false; "isSignal": true; }; "filterFnParams": { "alias": "filterFnParams"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "editModal": { "alias": "editModal"; "required": false; "isSignal": true; }; "modalOptions": { "alias": "modalOptions"; "required": false; "isSignal": true; }; "selectClass": { "alias": "selectClass"; "required": false; "isSignal": true; }; "multiSelectionDisplayDirection": { "alias": "multiSelectionDisplayDirection"; "required": false; "isSignal": true; }; "getIsHiddenFn": { "alias": "getIsHiddenFn"; "required": false; "isSignal": true; }; "getSearchTextFn": { "alias": "getSearchTextFn"; "required": false; "isSignal": true; }; "displayOrderByFn": { "alias": "displayOrderByFn"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["itemTplRef", "undefinedTplRef"], never, true, never>;
|
|
52
53
|
}
|
|
53
54
|
//# sourceMappingURL=sd-shared-data-select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-shared-data-select.d.ts","sourceRoot":"","sources":["../../../src/data/shared-data/sd-shared-data-select.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAWL,WAAW,EAIZ,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIjF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"sd-shared-data-select.d.ts","sourceRoot":"","sources":["../../../src/data/shared-data/sd-shared-data-select.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAWL,WAAW,EAIZ,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIjF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAE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AEH,gBAAgB,0CAmBb;IAEH,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAsCnC;IAEH,YAAY,wCAKT;;IAgBH,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAMtE,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAWnD,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAIzD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAYhC;IAEH,WAAW,GAAI,MAAM,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,KAAG,KAAK,EAAE,CAE5D;IAEI,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAsBpD,sBAAsB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAU9D,SAAS,CAAC,QAAQ,CAAC,YAAY,mXAAgB;IAC/C,SAAS,CAAC,QAAQ,CAAC,UAAU,+dAAc;yCA5NhC,kBAAkB;2CAAlB,kBAAkB;CA6N9B"}
|
|
@@ -124,6 +124,8 @@ export class SdSharedDataSelect {
|
|
|
124
124
|
...(ngDevMode ? [undefined, { debugName: "modal" }] : /* istanbul ignore next */ []));
|
|
125
125
|
editModal = input(/* @ts-ignore */
|
|
126
126
|
...(ngDevMode ? [undefined, { debugName: "editModal" }] : /* istanbul ignore next */ []));
|
|
127
|
+
modalOptions = input(/* @ts-ignore */
|
|
128
|
+
...(ngDevMode ? [undefined, { debugName: "modalOptions" }] : /* istanbul ignore next */ []));
|
|
127
129
|
selectClass = input(/* @ts-ignore */
|
|
128
130
|
...(ngDevMode ? [undefined, { debugName: "selectClass" }] : /* istanbul ignore next */ []));
|
|
129
131
|
multiSelectionDisplayDirection = input(/* @ts-ignore */
|
|
@@ -286,7 +288,7 @@ export class SdSharedDataSelect {
|
|
|
286
288
|
selectedKeys: this.selectedKeys(),
|
|
287
289
|
...modalInfo.inputs,
|
|
288
290
|
},
|
|
289
|
-
});
|
|
291
|
+
}, this.modalOptions());
|
|
290
292
|
if (result != null) {
|
|
291
293
|
const newValue = this.selectMode() === "multi" ? result.selectedKeys : result.selectedKeys[0];
|
|
292
294
|
this.value.set(newValue);
|
|
@@ -298,7 +300,7 @@ export class SdSharedDataSelect {
|
|
|
298
300
|
const modalInfo = this.editModal();
|
|
299
301
|
if (modalInfo == null)
|
|
300
302
|
return;
|
|
301
|
-
await this._sdModal.showAsync(modalInfo);
|
|
303
|
+
await this._sdModal.showAsync(modalInfo, this.modalOptions());
|
|
302
304
|
}
|
|
303
305
|
tablerSearch = tablerSearch;
|
|
304
306
|
tablerEdit = tablerEdit;
|
|
@@ -311,7 +313,7 @@ export class SdSharedDataSelect {
|
|
|
311
313
|
i0.ɵɵviewQuerySignal(ctx._selectCtrl, SdSelect, 5);
|
|
312
314
|
} if (rf & 2) {
|
|
313
315
|
i0.ɵɵqueryAdvance();
|
|
314
|
-
} }, inputs: { value: [1, "value"], items: [1, "items"], disabled: [1, "disabled"], required: [1, "required"], useUndefined: [1, "useUndefined"], inset: [1, "inset"], inline: [1, "inline"], size: [1, "size"], selectMode: [1, "selectMode"], filterFn: [1, "filterFn"], filterFnParams: [1, "filterFnParams"], modal: [1, "modal"], editModal: [1, "editModal"], selectClass: [1, "selectClass"], multiSelectionDisplayDirection: [1, "multiSelectionDisplayDirection"], getIsHiddenFn: [1, "getIsHiddenFn"], getSearchTextFn: [1, "getSearchTextFn"], displayOrderByFn: [1, "displayOrderByFn"] }, outputs: { value: "valueChange" }, decls: 8, vars: 15, consts: [["headerTpl", ""], ["beforeTpl", ""], [3, "valueChange", "value", "disabled", "required", "inset", "inline", "size", "items", "trackByFn", "selectMode", "contentClass", "multiSelectionDisplayDirection", "getChildrenFn"], [3, "itemOf"], [3, "click"], [3, "svg"], [1, "p-xs"], [3, "valueChange", "type", "value", "placeholder", "size"], [3, "ngTemplateOutlet"], [1, "tx-gray"], [3, "value", "hidden"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function SdSharedDataSelect_Template(rf, ctx) { if (rf & 1) {
|
|
316
|
+
} }, inputs: { value: [1, "value"], items: [1, "items"], disabled: [1, "disabled"], required: [1, "required"], useUndefined: [1, "useUndefined"], inset: [1, "inset"], inline: [1, "inline"], size: [1, "size"], selectMode: [1, "selectMode"], filterFn: [1, "filterFn"], filterFnParams: [1, "filterFnParams"], modal: [1, "modal"], editModal: [1, "editModal"], modalOptions: [1, "modalOptions"], selectClass: [1, "selectClass"], multiSelectionDisplayDirection: [1, "multiSelectionDisplayDirection"], getIsHiddenFn: [1, "getIsHiddenFn"], getSearchTextFn: [1, "getSearchTextFn"], displayOrderByFn: [1, "displayOrderByFn"] }, outputs: { value: "valueChange" }, decls: 8, vars: 15, consts: [["headerTpl", ""], ["beforeTpl", ""], [3, "valueChange", "value", "disabled", "required", "inset", "inline", "size", "items", "trackByFn", "selectMode", "contentClass", "multiSelectionDisplayDirection", "getChildrenFn"], [3, "itemOf"], [3, "click"], [3, "svg"], [1, "p-xs"], [3, "valueChange", "type", "value", "placeholder", "size"], [3, "ngTemplateOutlet"], [1, "tx-gray"], [3, "value", "hidden"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function SdSharedDataSelect_Template(rf, ctx) { if (rf & 1) {
|
|
315
317
|
i0.ɵɵelementStart(0, "sd-select", 2);
|
|
316
318
|
i0.ɵɵlistener("valueChange", function SdSharedDataSelect_Template_sd_select_valueChange_0_listener($event) { return ctx.value.set($event); });
|
|
317
319
|
i0.ɵɵconditionalCreate(1, SdSharedDataSelect_Conditional_1_Template, 2, 1, "sd-select-button");
|
|
@@ -432,7 +434,7 @@ export class SdSharedDataSelect {
|
|
|
432
434
|
</sd-select>
|
|
433
435
|
`,
|
|
434
436
|
}]
|
|
435
|
-
}], () => [], { _selectCtrl: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdSelect), { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], useUndefined: [{ type: i0.Input, args: [{ isSignal: true, alias: "useUndefined", required: false }] }], inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], selectMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectMode", required: false }] }], filterFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFn", required: false }] }], filterFnParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFnParams", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], editModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "editModal", required: false }] }], selectClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectClass", required: false }] }], multiSelectionDisplayDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiSelectionDisplayDirection", required: false }] }], getIsHiddenFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "getIsHiddenFn", required: false }] }], getSearchTextFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "getSearchTextFn", required: false }] }], displayOrderByFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayOrderByFn", required: false }] }], itemTplRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdItemOfTemplate), { ...{ read: TemplateRef }, isSignal: true }] }], undefinedTplRef: [{ type: i0.ContentChild, args: ["undefinedTpl", { ...{
|
|
437
|
+
}], () => [], { _selectCtrl: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdSelect), { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], useUndefined: [{ type: i0.Input, args: [{ isSignal: true, alias: "useUndefined", required: false }] }], inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], selectMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectMode", required: false }] }], filterFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFn", required: false }] }], filterFnParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFnParams", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], editModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "editModal", required: false }] }], modalOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "modalOptions", required: false }] }], selectClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectClass", required: false }] }], multiSelectionDisplayDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiSelectionDisplayDirection", required: false }] }], getIsHiddenFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "getIsHiddenFn", required: false }] }], getSearchTextFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "getSearchTextFn", required: false }] }], displayOrderByFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayOrderByFn", required: false }] }], itemTplRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdItemOfTemplate), { ...{ read: TemplateRef }, isSignal: true }] }], undefinedTplRef: [{ type: i0.ContentChild, args: ["undefinedTpl", { ...{
|
|
436
438
|
read: TemplateRef,
|
|
437
439
|
}, isSignal: true }] }] }); })();
|
|
438
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelect, { className: "SdSharedDataSelect", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select.ts", lineNumber:
|
|
440
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelect, { className: "SdSharedDataSelect", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select.ts", lineNumber: 138 }); })();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/angular",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.23",
|
|
4
4
|
"description": "심플리즘 패키지 - Angular",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "심플리즘",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@angular/service-worker": "^22.1.0",
|
|
40
40
|
"@ng-icons/core": "^34.0.0",
|
|
41
41
|
"@ng-icons/tabler-icons": "^34.0.0",
|
|
42
|
-
"@simplysm/core-browser": "14.2.
|
|
43
|
-
"@simplysm/core-common": "14.2.
|
|
44
|
-
"@simplysm/service-client": "14.2.
|
|
45
|
-
"@simplysm/service-common": "14.2.
|
|
42
|
+
"@simplysm/core-browser": "14.2.23",
|
|
43
|
+
"@simplysm/core-common": "14.2.23",
|
|
44
|
+
"@simplysm/service-client": "14.2.23",
|
|
45
|
+
"@simplysm/service-common": "14.2.23",
|
|
46
46
|
"@tiptap/core": "^3.29.2",
|
|
47
47
|
"@tiptap/extension-color": "^3.29.2",
|
|
48
48
|
"@tiptap/extension-document": "^3.29.2",
|
|
@@ -66,5 +66,8 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@angular/compiler": "^22.1.0"
|
|
68
68
|
},
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"@simplysm:registry": "https://registry.npmjs.org/"
|
|
71
|
+
},
|
|
69
72
|
"scripts": {}
|
|
70
73
|
}
|
|
@@ -189,17 +189,20 @@ export class SdModalSelectButton<K, M extends keyof SelectModeValue<K> = keyof S
|
|
|
189
189
|
event.stopPropagation();
|
|
190
190
|
|
|
191
191
|
const modal = this.modal();
|
|
192
|
-
const result = await this._sdModal.showAsync(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
192
|
+
const result = await this._sdModal.showAsync(
|
|
193
|
+
{
|
|
194
|
+
...modal,
|
|
195
|
+
inputs: {
|
|
196
|
+
selectMode: this.selectMode(),
|
|
197
|
+
selectedKeys: (this.selectMode() === "multi"
|
|
198
|
+
? ((this.value() as any[] | undefined) ?? [])
|
|
199
|
+
: [this.value()]
|
|
200
|
+
).filterExists(),
|
|
201
|
+
...modal.inputs,
|
|
202
|
+
},
|
|
201
203
|
},
|
|
202
|
-
|
|
204
|
+
this.modalOptions(),
|
|
205
|
+
);
|
|
203
206
|
|
|
204
207
|
if (result) {
|
|
205
208
|
const newValue = this.selectMode() === "multi" ? result.selectedKeys : result.selectedKeys[0];
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
SdItemOfTemplate,
|
|
22
22
|
type SdItemOfTemplateContext,
|
|
23
23
|
} from "../../core/template/sd-item-of-template";
|
|
24
|
-
import { SdModalProvider } from "../../core/modal/sd-modal.provider";
|
|
24
|
+
import { SdModalProvider, type SdModalOptions } from "../../core/modal/sd-modal.provider";
|
|
25
25
|
import type {
|
|
26
26
|
SdSelectModal,
|
|
27
27
|
SdSelectModalInfo,
|
|
@@ -132,6 +132,7 @@ export class SdSharedDataSelectList<
|
|
|
132
132
|
filterFn = input<(item: TItem, index: number) => boolean>();
|
|
133
133
|
|
|
134
134
|
modal = input<SdSelectModalInfo<TModal>>();
|
|
135
|
+
modalOptions = input<SdModalOptions>();
|
|
135
136
|
|
|
136
137
|
header = input<string>();
|
|
137
138
|
|
|
@@ -224,7 +225,7 @@ export class SdSharedDataSelectList<
|
|
|
224
225
|
.map((item) => item.__valueKey),
|
|
225
226
|
...modalInfo.inputs,
|
|
226
227
|
} as any,
|
|
227
|
-
});
|
|
228
|
+
}, this.modalOptions());
|
|
228
229
|
|
|
229
230
|
if (result != null) {
|
|
230
231
|
const newSelectedItem = this.items().find(
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
SdModalProvider,
|
|
30
30
|
type SdModalContentDef,
|
|
31
31
|
type SdModalInfo,
|
|
32
|
+
type SdModalOptions,
|
|
32
33
|
} from "../../core/modal/sd-modal.provider";
|
|
33
34
|
import type {
|
|
34
35
|
SdSelectModal,
|
|
@@ -159,6 +160,7 @@ export class SdSharedDataSelect<
|
|
|
159
160
|
|
|
160
161
|
modal = input<SdSelectModalInfo<TModal>>();
|
|
161
162
|
editModal = input<SdModalInfo<SdModalContentDef<boolean>>>();
|
|
163
|
+
modalOptions = input<SdModalOptions>();
|
|
162
164
|
|
|
163
165
|
selectClass = input<string>();
|
|
164
166
|
multiSelectionDisplayDirection = input<"vertical">();
|
|
@@ -334,7 +336,7 @@ export class SdSharedDataSelect<
|
|
|
334
336
|
selectedKeys: this.selectedKeys(),
|
|
335
337
|
...modalInfo.inputs,
|
|
336
338
|
} as any,
|
|
337
|
-
});
|
|
339
|
+
}, this.modalOptions());
|
|
338
340
|
|
|
339
341
|
if (result != null) {
|
|
340
342
|
const newValue = this.selectMode() === "multi" ? result.selectedKeys : result.selectedKeys[0];
|
|
@@ -349,7 +351,7 @@ export class SdSharedDataSelect<
|
|
|
349
351
|
const modalInfo = this.editModal();
|
|
350
352
|
if (modalInfo == null) return;
|
|
351
353
|
|
|
352
|
-
await this._sdModal.showAsync(modalInfo);
|
|
354
|
+
await this._sdModal.showAsync(modalInfo, this.modalOptions());
|
|
353
355
|
}
|
|
354
356
|
|
|
355
357
|
protected readonly tablerSearch = tablerSearch;
|