@simplysm/angular 14.0.85 → 14.0.87
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/pagination/sd-pagination.d.ts.map +1 -1
- package/dist/controls/pagination/sd-pagination.js +2 -0
- package/dist/controls/select/sd-select-item.js +1 -1
- package/dist/controls/select/sd-select.js +1 -1
- package/dist/core/app-structure/sd-app-structure.provider.d.ts +2 -3
- package/dist/core/app-structure/sd-app-structure.provider.d.ts.map +1 -1
- package/dist/core/app-structure/sd-app-structure.provider.js +5 -9
- package/dist/core/app-structure/sd-app-structure.utils.d.ts +2 -0
- package/dist/core/app-structure/sd-app-structure.utils.d.ts.map +1 -1
- package/dist/core/app-structure/sd-app-structure.utils.js +9 -1
- package/dist/core/busy/sd-busy-container.d.ts +1 -1
- package/dist/core/busy/sd-busy-container.d.ts.map +1 -1
- package/dist/core/busy/sd-busy-container.js +11 -11
- package/dist/core/busy/sd-busy.provider.d.ts.map +1 -1
- package/dist/core/busy/sd-busy.provider.js +3 -0
- package/dist/core/config/sd-system-config.provider.d.ts +4 -4
- package/dist/core/config/sd-system-config.provider.d.ts.map +1 -1
- package/dist/core/config/sd-system-config.provider.js +3 -0
- package/dist/core/error-handler/sd-global-error-handler.plugin.d.ts +1 -1
- package/dist/core/error-handler/sd-global-error-handler.plugin.d.ts.map +1 -1
- package/dist/core/file-dialog/sd-file-dialog.provider.d.ts.map +1 -1
- package/dist/core/file-dialog/sd-file-dialog.provider.js +4 -0
- package/dist/core/modal/sd-activated-modal.provider.d.ts +2 -1
- package/dist/core/modal/sd-activated-modal.provider.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.js +3 -3
- package/dist/core/modal/sd-modal.provider.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.provider.js +8 -0
- package/dist/core/modal/sd-prompt-modal.d.ts +2 -2
- package/dist/core/modal/sd-prompt-modal.d.ts.map +1 -1
- package/dist/core/modal/sd-prompt-modal.js +32 -37
- package/dist/core/print/sd-print.provider.d.ts.map +1 -1
- package/dist/core/print/sd-print.provider.js +19 -6
- package/dist/core/provideSdAngular.d.ts.map +1 -1
- package/dist/core/provideSdAngular.js +4 -1
- package/dist/core/routing/injectViewTitleSignal.d.ts.map +1 -1
- package/dist/core/routing/injectViewTitleSignal.js +1 -6
- package/dist/core/shared-data/sd-shared-data.provider.d.ts +2 -1
- package/dist/core/shared-data/sd-shared-data.provider.d.ts.map +1 -1
- package/dist/core/shared-data/sd-shared-data.provider.js +3 -3
- package/dist/core/toast/sd-toast.provider.d.ts +1 -0
- package/dist/core/toast/sd-toast.provider.d.ts.map +1 -1
- package/dist/core/toast/sd-toast.provider.js +18 -4
- package/dist/data/crud/sd-base-container.d.ts.map +1 -1
- package/dist/data/crud/sd-base-container.js +56 -54
- package/dist/data/kanban/sd-kanban-lane.d.ts.map +1 -1
- package/dist/data/shared-data/sd-shared-data-select-button.d.ts +1 -2
- package/dist/data/shared-data/sd-shared-data-select-button.d.ts.map +1 -1
- package/dist/data/shared-data/sd-shared-data-select-button.js +18 -21
- 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 +10 -10
- package/dist/data/sheet/sd-sheet-config.modal.d.ts +3 -3
- package/dist/data/sheet/sd-sheet-config.modal.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet-config.modal.js +37 -34
- package/dist/data/sheet/sd-sheet.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet.js +5 -1
- package/dist/data/sheet/useSheetCellStyling.d.ts.map +1 -1
- package/dist/data/sheet/useSheetCellStyling.js +4 -22
- package/dist/data/state-preset/sd-state-preset.d.ts +10 -10
- package/dist/data/state-preset/sd-state-preset.d.ts.map +1 -1
- package/dist/data/state-preset/sd-state-preset.js +4 -4
- package/dist/features/address/sd-address-search.modal.js +1 -1
- package/dist/features/editor/sd-tiptap-editor.d.ts.map +1 -1
- package/dist/features/editor/sd-tiptap-editor.js +3 -2
- package/dist/features/theme/sd-theme-selector.d.ts +6 -8
- package/dist/features/theme/sd-theme-selector.d.ts.map +1 -1
- package/dist/features/theme/sd-theme-selector.js +54 -51
- package/dist/features/visual/sd-barcode.d.ts.map +1 -1
- package/dist/features/visual/sd-barcode.js +5 -10
- package/dist/layout/sidebar/sd-sidebar-user.d.ts.map +1 -1
- package/dist/layout/sidebar/sd-sidebar-user.js +26 -36
- package/package.json +28 -28
- package/src/controls/button/sd-modal-select-button.ts +1 -1
- package/src/controls/form/sd-form.ts +1 -1
- package/src/controls/input/sd-textfield-type-handlers.ts +2 -2
- package/src/controls/pagination/sd-pagination.ts +1 -0
- package/src/controls/select/sd-select-item.ts +1 -1
- package/src/controls/select/sd-select.ts +1 -1
- package/src/core/app-structure/sd-app-structure.provider.ts +7 -13
- package/src/core/app-structure/sd-app-structure.utils.ts +14 -2
- package/src/core/busy/sd-busy-container.ts +6 -13
- package/src/core/busy/sd-busy.provider.ts +4 -0
- package/src/core/config/injectSdSystemConfigResource.ts +1 -1
- package/src/core/config/sd-system-config.provider.ts +5 -3
- package/src/core/error-handler/sd-global-error-handler.plugin.ts +1 -1
- package/src/core/file-dialog/sd-file-dialog.provider.ts +5 -1
- package/src/core/modal/sd-activated-modal.provider.ts +2 -1
- package/src/core/modal/sd-modal.provider.ts +8 -0
- package/src/core/modal/sd-modal.ts +6 -3
- package/src/core/modal/sd-prompt-modal.ts +13 -23
- package/src/core/print/sd-print.provider.ts +21 -6
- package/src/core/provideSdAngular.ts +5 -1
- package/src/core/routing/injectViewTitleSignal.ts +1 -5
- package/src/core/shared-data/sd-shared-data.provider.ts +4 -4
- package/src/core/toast/sd-toast.provider.ts +35 -12
- package/src/data/crud/sd-base-container.ts +120 -118
- package/src/data/kanban/sd-kanban-lane.ts +2 -2
- package/src/data/shared-data/sd-shared-data-select-button.ts +15 -20
- package/src/data/shared-data/sd-shared-data-select-list.ts +4 -4
- package/src/data/shared-data/sd-shared-data-select.ts +10 -12
- package/src/data/sheet/sd-sheet-column.ts +1 -1
- package/src/data/sheet/sd-sheet-config.modal.ts +39 -35
- package/src/data/sheet/sd-sheet.ts +6 -1
- package/src/data/sheet/useSheetCellStyling.ts +3 -20
- package/src/data/state-preset/sd-state-preset.ts +11 -11
- package/src/features/address/sd-address-search.modal.ts +1 -1
- package/src/features/editor/sd-tiptap-editor.ts +3 -2
- package/src/features/theme/sd-theme-selector.ts +77 -75
- package/src/features/visual/sd-barcode.ts +5 -9
- package/src/features/visual/sd-calendar.ts +1 -1
- package/src/layout/sidebar/sd-sidebar-user.ts +3 -5
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ApplicationRef, createComponent, inject, Injectable, inputBinding, } from "@angular/core";
|
|
2
2
|
import { SdBusyProvider } from "../busy/sd-busy.provider";
|
|
3
|
-
import { wait } from "@simplysm/core-common";
|
|
3
|
+
import { createLogger, wait } from "@simplysm/core-common";
|
|
4
4
|
import { jsPDF } from "jspdf";
|
|
5
5
|
import * as htmlToImage from "html-to-image";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
const logger = createLogger("angular:print");
|
|
7
8
|
export class SdPrintProvider {
|
|
8
9
|
_appRef = inject(ApplicationRef);
|
|
9
10
|
_sdBusy = inject(SdBusyProvider);
|
|
@@ -116,22 +117,34 @@ export class SdPrintProvider {
|
|
|
116
117
|
}
|
|
117
118
|
async _waitForAllImagesLoadedAsync(container) {
|
|
118
119
|
const imgs = Array.from(container.querySelectorAll("img"));
|
|
120
|
+
const failedSrcs = [];
|
|
119
121
|
await Promise.all(imgs.map((img) => {
|
|
120
122
|
return new Promise((resolve) => {
|
|
121
123
|
if (img.complete && img.naturalWidth !== 0) {
|
|
122
124
|
resolve();
|
|
123
125
|
}
|
|
124
126
|
else {
|
|
125
|
-
const
|
|
126
|
-
img.removeEventListener("load",
|
|
127
|
-
img.removeEventListener("error",
|
|
127
|
+
const cleanup = () => {
|
|
128
|
+
img.removeEventListener("load", onLoad);
|
|
129
|
+
img.removeEventListener("error", onError);
|
|
130
|
+
};
|
|
131
|
+
const onLoad = () => {
|
|
132
|
+
cleanup();
|
|
133
|
+
resolve();
|
|
134
|
+
};
|
|
135
|
+
const onError = () => {
|
|
136
|
+
failedSrcs.push(img.src);
|
|
137
|
+
cleanup();
|
|
128
138
|
resolve();
|
|
129
139
|
};
|
|
130
|
-
img.addEventListener("load",
|
|
131
|
-
img.addEventListener("error",
|
|
140
|
+
img.addEventListener("load", onLoad);
|
|
141
|
+
img.addEventListener("error", onError);
|
|
132
142
|
}
|
|
133
143
|
});
|
|
134
144
|
}));
|
|
145
|
+
if (failedSrcs.length > 0) {
|
|
146
|
+
logger.error(`인쇄/PDF: 이미지 ${failedSrcs.length}건 로드 실패`, failedSrcs);
|
|
147
|
+
}
|
|
135
148
|
}
|
|
136
149
|
static ɵfac = function SdPrintProvider_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdPrintProvider)(); };
|
|
137
150
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SdPrintProvider, factory: SdPrintProvider.ɵfac, providedIn: "root" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provideSdAngular.d.ts","sourceRoot":"","sources":["../../src/core/provideSdAngular.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"provideSdAngular.d.ts","sourceRoot":"","sources":["../../src/core/provideSdAngular.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAkC1D,wBAAgB,gBAAgB,CAAC,GAAG,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,oBAAoB,CA4IlF"}
|
|
@@ -11,6 +11,8 @@ import { SdThemeProvider } from "../features/theme/sd-theme-provider";
|
|
|
11
11
|
import { SdLocalStorageProvider } from "./config/sd-local-storage.provider";
|
|
12
12
|
import { SdGlobalErrorHandlerPlugin } from "./error-handler/sd-global-error-handler.plugin";
|
|
13
13
|
import { SdOptionEventPlugin } from "./events/sd-option-event.plugin";
|
|
14
|
+
import { createLogger } from "@simplysm/core-common";
|
|
15
|
+
const logger = createLogger("angular:sw-update");
|
|
14
16
|
export function provideSdAngular(opt) {
|
|
15
17
|
return makeEnvironmentProviders([
|
|
16
18
|
{
|
|
@@ -102,8 +104,9 @@ export function provideSdAngular(opt) {
|
|
|
102
104
|
}
|
|
103
105
|
failCount = 0;
|
|
104
106
|
}
|
|
105
|
-
catch {
|
|
107
|
+
catch (err) {
|
|
106
108
|
failCount++;
|
|
109
|
+
logger.error(err);
|
|
107
110
|
}
|
|
108
111
|
finally {
|
|
109
112
|
const interval = Math.min(BASE_INTERVAL * Math.pow(2, Math.max(0, failCount - 1)), MAX_INTERVAL);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectViewTitleSignal.d.ts","sourceRoot":"","sources":["../../../src/core/routing/injectViewTitleSignal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAM9D,wBAAgB,qBAAqB,IAAI,MAAM,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"injectViewTitleSignal.d.ts","sourceRoot":"","sources":["../../../src/core/routing/injectViewTitleSignal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAM9D,wBAAgB,qBAAqB,IAAI,MAAM,CAAC,MAAM,CAAC,CActD"}
|
|
@@ -12,11 +12,6 @@ export function injectViewTitleSignal() {
|
|
|
12
12
|
if (sdActivatedModal != null) {
|
|
13
13
|
return sdActivatedModal.modalComponent()?.title() ?? "";
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
return sdAppStructure.getTitleByFullCode(currPageCode?.() ?? fullPageCode());
|
|
17
|
-
}
|
|
18
|
-
catch {
|
|
19
|
-
return "";
|
|
20
|
-
}
|
|
15
|
+
return sdAppStructure.findTitleByFullCode(currPageCode?.() ?? fullPageCode()) ?? "";
|
|
21
16
|
});
|
|
22
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ErrorHandler, type Signal, type WritableSignal } from "@angular/core";
|
|
2
|
+
import { DateOnly, DateTime, Time } from "@simplysm/core-common";
|
|
2
3
|
import { SdServiceClientFactoryProvider } from "../service-client/sd-service-client-factory.provider";
|
|
3
4
|
import "@simplysm/core-common";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -12,7 +13,7 @@ export interface SharedDataInfo<T extends SharedDataBase<string | number>> {
|
|
|
12
13
|
serviceKey: string;
|
|
13
14
|
getter: (changeKeys?: (string | number)[]) => Promise<T[]>;
|
|
14
15
|
filter?: unknown;
|
|
15
|
-
orderBy?: (item: T) =>
|
|
16
|
+
orderBy?: (item: T) => string | number | DateOnly | DateTime | Time | undefined;
|
|
16
17
|
}
|
|
17
18
|
export interface SharedDataHandle<T extends SharedDataBase<string | number>> {
|
|
18
19
|
items: Signal<T[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-shared-data.provider.d.ts","sourceRoot":"","sources":["../../../src/core/shared-data/sd-shared-data.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAA8B,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"sd-shared-data.provider.d.ts","sourceRoot":"","sources":["../../../src/core/shared-data/sd-shared-data.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAA8B,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAErH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAO,IAAI,EAAoB,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,8BAA8B,E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,CAAC,QAAQ,CAA2C;IAEpE,QAAQ,CAAC,UAAU,IAAI,IAAI;IAE3B,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAqC/E,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAchE,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,EACxC,IAAI,EAAE,CAAC,EACP,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAC/B,OAAO,CAAC,IAAI,CAAC;IAcV,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,OAAO,CAAC,cAAc;YAuCR,QAAQ;yCAzHF,oBAAoB;6CAApB,oBAAoB;CAgKzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, ErrorHandler, inject, Injectable, signal } from "@angular/core";
|
|
2
2
|
import { defineEvent } from "@simplysm/service-common";
|
|
3
|
-
import { obj, wait as waitUtil } from "@simplysm/core-common";
|
|
3
|
+
import { DateOnly, DateTime, obj, Time, wait as waitUtil } from "@simplysm/core-common";
|
|
4
4
|
import { SdServiceClientFactoryProvider } from "../service-client/sd-service-client-factory.provider";
|
|
5
5
|
import "@simplysm/core-common";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -61,7 +61,7 @@ export class SdSharedDataProvider {
|
|
|
61
61
|
throw new Error(`등록되지 않은 공유 데이터: ${name}`);
|
|
62
62
|
}
|
|
63
63
|
const client = this._sdServiceClientFactory.get(entry.info.serviceKey);
|
|
64
|
-
const event = client.getEvent(
|
|
64
|
+
const event = client.getEvent(SdSharedDataChangeEvent);
|
|
65
65
|
await event.emit((item) => item.name === name && obj.equal(item.filter, entry.info.filter), changeKeys);
|
|
66
66
|
}
|
|
67
67
|
async wait() {
|
|
@@ -82,7 +82,7 @@ export class SdSharedDataProvider {
|
|
|
82
82
|
// 이벤트 리스너 등록
|
|
83
83
|
if (entry.listenerKey == null) {
|
|
84
84
|
const client = this._sdServiceClientFactory.get(entry.info.serviceKey);
|
|
85
|
-
const event = client.getEvent(
|
|
85
|
+
const event = client.getEvent(SdSharedDataChangeEvent);
|
|
86
86
|
entry.listenerKey = await event.addListener({ name, filter: entry.info.filter }, async (changeKeys) => {
|
|
87
87
|
await this._onEvent(name, entry, changeKeys, capturedGeneration);
|
|
88
88
|
});
|
|
@@ -22,6 +22,7 @@ export declare class SdToastProvider {
|
|
|
22
22
|
private _containerRef;
|
|
23
23
|
private readonly _toastRefs;
|
|
24
24
|
private readonly _contentRefs;
|
|
25
|
+
private readonly _autoDismissCleanups;
|
|
25
26
|
constructor();
|
|
26
27
|
private _getContainerRef;
|
|
27
28
|
info(message: string, useProgress?: true): WritableSignal<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-toast.provider.d.ts","sourceRoot":"","sources":["../../../src/core/toast/sd-toast.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,gBAAgB,EACrB,KAAK,IAAI,EACT,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAIxE,OAAO,wBAAwB,CAAC;;AAEhC,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,eAAe,GAAG,MAAM,GAAG,WAAW,CAAC;AAE5F,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,KAAK,EAAE,gBAAgB,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,YAAY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AE,IAAI,GAAG,cAAc,CAAC,MAAM,CAAC;IACnE,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI;IAKlD,MAAM,CAAC,CAAC,SAAS,iBAAiB,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IAuDlH,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAC9F,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,MAAM,GAAG,CAAC,GAAG,SAAS;IAmBtE,OAAO,CAAC,KAAK;IA+Db,OAAO,CAAC,iBAAiB;IA6DzB,OAAO,CAAC,aAAa;IAsBrB,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,gBAAgB;yCAhTb,eAAe;6CAAf,eAAe;CAqT3B"}
|
|
@@ -16,6 +16,7 @@ export class SdToastProvider {
|
|
|
16
16
|
_containerRef;
|
|
17
17
|
_toastRefs = [];
|
|
18
18
|
_contentRefs = new Map();
|
|
19
|
+
_autoDismissCleanups = new Map();
|
|
19
20
|
constructor() {
|
|
20
21
|
effect(() => {
|
|
21
22
|
if (this._containerRef != null) {
|
|
@@ -154,18 +155,29 @@ export class SdToastProvider {
|
|
|
154
155
|
}
|
|
155
156
|
_setupAutoDismiss(toastRef, delayMs, onDismiss) {
|
|
156
157
|
const el = toastRef.location.nativeElement;
|
|
158
|
+
const ac = new AbortController();
|
|
159
|
+
let timerId;
|
|
157
160
|
let isHovering = false;
|
|
158
161
|
let dismissPending = false;
|
|
159
162
|
let dismissed = false;
|
|
163
|
+
// 타이머·리스너 정리. 외부 파괴 경로(_dismissToast/_destroyToast)에서도 호출되어
|
|
164
|
+
// 죽은 toastRef 에 대해 타이머가 깨어나는 race 와 리스너 누수를 막는다.
|
|
165
|
+
const cleanup = () => {
|
|
166
|
+
dismissed = true;
|
|
167
|
+
if (timerId != null)
|
|
168
|
+
clearTimeout(timerId);
|
|
169
|
+
ac.abort();
|
|
170
|
+
this._autoDismissCleanups.delete(toastRef);
|
|
171
|
+
};
|
|
172
|
+
this._autoDismissCleanups.set(toastRef, cleanup);
|
|
160
173
|
const dismiss = () => {
|
|
161
174
|
if (dismissed)
|
|
162
175
|
return;
|
|
163
|
-
dismissed = true;
|
|
164
176
|
onDismiss?.();
|
|
165
177
|
this._dismissToast(toastRef);
|
|
166
178
|
};
|
|
167
179
|
const dismissAfterDelay = (ms) => {
|
|
168
|
-
setTimeout(() => {
|
|
180
|
+
timerId = setTimeout(() => {
|
|
169
181
|
if (dismissed)
|
|
170
182
|
return;
|
|
171
183
|
if (isHovering) {
|
|
@@ -178,17 +190,18 @@ export class SdToastProvider {
|
|
|
178
190
|
};
|
|
179
191
|
el.addEventListener("mouseenter", () => {
|
|
180
192
|
isHovering = true;
|
|
181
|
-
});
|
|
193
|
+
}, { signal: ac.signal });
|
|
182
194
|
el.addEventListener("mouseleave", () => {
|
|
183
195
|
isHovering = false;
|
|
184
196
|
if (dismissPending) {
|
|
185
197
|
dismissPending = false;
|
|
186
198
|
dismissAfterDelay(1000);
|
|
187
199
|
}
|
|
188
|
-
});
|
|
200
|
+
}, { signal: ac.signal });
|
|
189
201
|
dismissAfterDelay(delayMs);
|
|
190
202
|
}
|
|
191
203
|
_dismissToast(toastRef) {
|
|
204
|
+
this._autoDismissCleanups.get(toastRef)?.();
|
|
192
205
|
toastRef.instance.open.set(false);
|
|
193
206
|
const el = toastRef.location.nativeElement;
|
|
194
207
|
let fallbackId;
|
|
@@ -205,6 +218,7 @@ export class SdToastProvider {
|
|
|
205
218
|
}, 300);
|
|
206
219
|
}
|
|
207
220
|
_destroyToast(toastRef) {
|
|
221
|
+
this._autoDismissCleanups.get(toastRef)?.();
|
|
208
222
|
const idx = this._toastRefs.indexOf(toastRef);
|
|
209
223
|
if (idx === -1)
|
|
210
224
|
return; // 이미 파괴됨
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-base-container.d.ts","sourceRoot":"","sources":["../../../src/data/crud/sd-base-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,WAAW,EAGjB,MAAM,eAAe,CAAC;AAOvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;;AAK1E,qBAwDa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"sd-base-container.d.ts","sourceRoot":"","sources":["../../../src/data/crud/sd-base-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,WAAW,EAGjB,MAAM,eAAe,CAAC;AAOvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;;AAK1E,qBAwDa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAoD;IAClF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;IAEpD,SAAS,yCAA2B;IAEpC,KAAK,+CAAgB;IACrB,WAAW,+CAAgB;IAC3B,SAAS,8CAAY;IAErB,UAAU,+CAAgB;IAE1B,QAAQ,kDAAgC;IAExC,YAAY,gEAAgD;IAC5D,aAAa,gEAAiD;IAC9D,aAAa,gEAAiD;IAC9D,mBAAmB,gEAAuD;;IAsB1E,SAAS,CAAC,QAAQ,CAAC,mBAAmB,ifAAuB;yCAvClD,eAAe;2CAAf,eAAe;CAwC3B"}
|
|
@@ -104,7 +104,7 @@ function SdBaseContainer_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
104
104
|
i0.ɵɵconditional(ctx_r0.bottomCommandTplRef() ? 4 : -1);
|
|
105
105
|
} }
|
|
106
106
|
export class SdBaseContainer {
|
|
107
|
-
_sdSharedData = inject(SdSharedDataProvider);
|
|
107
|
+
_sdSharedData = inject(SdSharedDataProvider, { optional: true });
|
|
108
108
|
_sdToast = inject(SdToastProvider);
|
|
109
109
|
viewTitle = injectViewTitleSignal();
|
|
110
110
|
ready = model(false, ...(ngDevMode ? [{ debugName: "ready" }] : /* istanbul ignore next */ []));
|
|
@@ -123,11 +123,13 @@ export class SdBaseContainer {
|
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
125
|
void untracked(async () => {
|
|
126
|
-
this.
|
|
127
|
-
|
|
128
|
-
await this.
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
if (this._sdSharedData) {
|
|
127
|
+
this.busyCount.update((v) => v + 1);
|
|
128
|
+
await this._sdToast.try(async () => {
|
|
129
|
+
await this._sdSharedData.wait();
|
|
130
|
+
});
|
|
131
|
+
this.busyCount.update((v) => v - 1);
|
|
132
|
+
}
|
|
131
133
|
this.ready.set(true);
|
|
132
134
|
});
|
|
133
135
|
});
|
|
@@ -157,54 +159,54 @@ export class SdBaseContainer {
|
|
|
157
159
|
encapsulation: ViewEncapsulation.None,
|
|
158
160
|
standalone: true,
|
|
159
161
|
imports: [SdBusyContainer, NgIcon, SdTopbarContainer, NgTemplateOutlet, SdTopbar],
|
|
160
|
-
template: `
|
|
161
|
-
<sd-busy-container [busy]="initialized() && busyCount() > 0">
|
|
162
|
-
@if (initialized()) {
|
|
163
|
-
@if (restricted()) {
|
|
164
|
-
<div class="fill tx-theme-gray-light p-xxl tx-center">
|
|
165
|
-
<br />
|
|
166
|
-
<ng-icon [svg]="tablerAlertTriangle" [size]="'5rem'" />
|
|
167
|
-
<br />
|
|
168
|
-
<br />
|
|
169
|
-
'{{ viewTitle() }}'에 대한 사용권한이 없습니다. 시스템 관리자에게 문의하세요.
|
|
170
|
-
</div>
|
|
171
|
-
} @else if (viewType() === "page") {
|
|
172
|
-
<sd-topbar-container>
|
|
173
|
-
<sd-topbar>
|
|
174
|
-
<h4>{{ viewTitle() }}</h4>
|
|
175
|
-
|
|
176
|
-
<ng-template [ngTemplateOutlet]="topbarTplRef()" />
|
|
177
|
-
</sd-topbar>
|
|
178
|
-
|
|
179
|
-
<ng-template [ngTemplateOutlet]="content" />
|
|
180
|
-
</sd-topbar-container>
|
|
181
|
-
} @else {
|
|
182
|
-
<ng-template [ngTemplateOutlet]="content" />
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
</sd-busy-container>
|
|
186
|
-
|
|
187
|
-
<ng-template #content>
|
|
188
|
-
<div class="flex-column fill">
|
|
189
|
-
@if (commandTplRef()) {
|
|
190
|
-
<div class="p-default flex-row gap-default bdb bdb-theme-gray-lightest">
|
|
191
|
-
<ng-template [ngTemplateOutlet]="commandTplRef()" />
|
|
192
|
-
</div>
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
<div class="flex-fill">
|
|
196
|
-
@if (contentTplRef()) {
|
|
197
|
-
<ng-template [ngTemplateOutlet]="contentTplRef()" />
|
|
198
|
-
}
|
|
199
|
-
</div>
|
|
200
|
-
|
|
201
|
-
@if (bottomCommandTplRef()) {
|
|
202
|
-
<div class="p-sm-default flex-row main-align-end gap-sm bdt bdt-theme-gray-lightest">
|
|
203
|
-
<ng-template [ngTemplateOutlet]="bottomCommandTplRef()" />
|
|
204
|
-
</div>
|
|
205
|
-
}
|
|
206
|
-
</div>
|
|
207
|
-
</ng-template>
|
|
162
|
+
template: `
|
|
163
|
+
<sd-busy-container [busy]="initialized() && busyCount() > 0">
|
|
164
|
+
@if (initialized()) {
|
|
165
|
+
@if (restricted()) {
|
|
166
|
+
<div class="fill tx-theme-gray-light p-xxl tx-center">
|
|
167
|
+
<br />
|
|
168
|
+
<ng-icon [svg]="tablerAlertTriangle" [size]="'5rem'" />
|
|
169
|
+
<br />
|
|
170
|
+
<br />
|
|
171
|
+
'{{ viewTitle() }}'에 대한 사용권한이 없습니다. 시스템 관리자에게 문의하세요.
|
|
172
|
+
</div>
|
|
173
|
+
} @else if (viewType() === "page") {
|
|
174
|
+
<sd-topbar-container>
|
|
175
|
+
<sd-topbar>
|
|
176
|
+
<h4>{{ viewTitle() }}</h4>
|
|
177
|
+
|
|
178
|
+
<ng-template [ngTemplateOutlet]="topbarTplRef()" />
|
|
179
|
+
</sd-topbar>
|
|
180
|
+
|
|
181
|
+
<ng-template [ngTemplateOutlet]="content" />
|
|
182
|
+
</sd-topbar-container>
|
|
183
|
+
} @else {
|
|
184
|
+
<ng-template [ngTemplateOutlet]="content" />
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
</sd-busy-container>
|
|
188
|
+
|
|
189
|
+
<ng-template #content>
|
|
190
|
+
<div class="flex-column fill">
|
|
191
|
+
@if (commandTplRef()) {
|
|
192
|
+
<div class="p-default flex-row gap-default bdb bdb-theme-gray-lightest">
|
|
193
|
+
<ng-template [ngTemplateOutlet]="commandTplRef()" />
|
|
194
|
+
</div>
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
<div class="flex-fill">
|
|
198
|
+
@if (contentTplRef()) {
|
|
199
|
+
<ng-template [ngTemplateOutlet]="contentTplRef()" />
|
|
200
|
+
}
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
@if (bottomCommandTplRef()) {
|
|
204
|
+
<div class="p-sm-default flex-row main-align-end gap-sm bdt bdt-theme-gray-lightest">
|
|
205
|
+
<ng-template [ngTemplateOutlet]="bottomCommandTplRef()" />
|
|
206
|
+
</div>
|
|
207
|
+
}
|
|
208
|
+
</div>
|
|
209
|
+
</ng-template>
|
|
208
210
|
`,
|
|
209
211
|
}]
|
|
210
212
|
}], () => [], { ready: [{ type: i0.Input, args: [{ isSignal: true, alias: "ready", required: false }] }, { type: i0.Output, args: ["readyChange"] }], initialized: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialized", required: false }] }], busyCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "busyCount", required: false }] }, { type: i0.Output, args: ["busyCountChange"] }], restricted: [{ type: i0.Input, args: [{ isSignal: true, alias: "restricted", required: false }] }], viewType: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewType", required: true }] }], topbarTplRef: [{ type: i0.ContentChild, args: ["topbarTpl", { isSignal: true }] }], commandTplRef: [{ type: i0.ContentChild, args: ["commandTpl", { isSignal: true }] }], contentTplRef: [{ type: i0.ContentChild, args: ["contentTpl", { isSignal: true }] }], bottomCommandTplRef: [{ type: i0.ContentChild, args: ["bottomCommandTpl", { isSignal: true }] }] }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-kanban-lane.d.ts","sourceRoot":"","sources":["../../../src/data/kanban/sd-kanban-lane.ts"],"names":[],"mappings":"AACA,OAAO,EAYL,WAAW,EAEZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;;AAKvC,qBA6Fa,YAAY,CAAC,CAAC,EAAE,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC;IACjE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAE5B;IAEF,IAAI,qEAAiD;IAErD,WAAW,qEAAiD;IAE5D,QAAQ,+CAAgB;IAExB,KAAK,qDAAc;IAEnB,cAAc,4DAAoE;IAElF,UAAU,
|
|
1
|
+
{"version":3,"file":"sd-kanban-lane.d.ts","sourceRoot":"","sources":["../../../src/data/kanban/sd-kanban-lane.ts"],"names":[],"mappings":"AACA,OAAO,EAYL,WAAW,EAEZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;;AAKvC,qBA6Fa,YAAY,CAAC,CAAC,EAAE,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC;IACjE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAE5B;IAEF,IAAI,qEAAiD;IAErD,WAAW,qEAAiD;IAE5D,QAAQ,+CAAgB;IAExB,KAAK,qDAAc;IAEnB,cAAc,4DAAoE;IAElF,UAAU,gEAA8E;IACxF,WAAW,gEAA+E;IAE1F,aAAa,0CAGV;IAEH,UAAU,gGAAmD;IAE7D,UAAU,kDAAiB;IAE3B,sBAAsB,yCAEpB;IAEF,eAAe;IAIf,2BAA2B;IAI3B,sBAAsB,CAAC,GAAG,EAAE,OAAO;IAyBnC,UAAU,CAAC,KAAK,EAAE,SAAS;IAS3B,WAAW,CAAC,KAAK,EAAE,SAAS;IAO5B,UAAU,CAAC,KAAK,EAAE,SAAS;IAU3B,SAAS,CAAC,QAAQ,CAAC,YAAY,wkBAAgB;IAC/C,SAAS,CAAC,QAAQ,CAAC,SAAS,ubAAa;yCA3F9B,YAAY;2CAAZ,YAAY;CA4FxB"}
|
|
@@ -14,8 +14,7 @@ export declare class SdSharedDataSelectButton<TItem extends SharedDataBase<strin
|
|
|
14
14
|
inset: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
15
|
size: import("@angular/core").InputSignal<"sm" | "lg" | undefined>;
|
|
16
16
|
itemTplRef: import("@angular/core").Signal<TemplateRef<SdItemOfTemplateContext<TItem>>>;
|
|
17
|
-
|
|
18
|
-
constructor();
|
|
17
|
+
_selectedItems: import("@angular/core").Signal<TItem[]>;
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdSharedDataSelectButton<any, any, any>, never>;
|
|
20
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<SdSharedDataSelectButton<any, any, any>, "sd-shared-data-select-button", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": true; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["itemTplRef"], never, true, never>;
|
|
21
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-shared-data-select-button.d.ts","sourceRoot":"","sources":["../../../src/data/shared-data/sd-shared-data-select-button.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"sd-shared-data-select-button.d.ts","sourceRoot":"","sources":["../../../src/data/shared-data/sd-shared-data-select-button.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,WAAW,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;;AAEvE,qBAiCa,wBAAwB,CACnC,KAAK,SAAS,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,EAC7C,KAAK,SAAS,MAAM,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,EACpD,MAAM,SAAS,aAAa,CAAC,GAAG,CAAC;IAEjC,KAAK,2FAAoD;IACzD,KAAK,+CAAsB;IAC3B,KAAK,iEAA+C;IACpD,UAAU,6CAAmC;IAC7C,QAAQ,qEAAiD;IACzD,QAAQ,qEAAiD;IACzD,KAAK,qEAAiD;IACtD,IAAI,+DAAwB;IAE5B,UAAU,8EAGR;IAEF,cAAc,0CAaX;yCAhCQ,wBAAwB;2CAAxB,wBAAwB;CAiCpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
-
import { booleanAttribute, ChangeDetectionStrategy, Component,
|
|
2
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, contentChild, input, model, TemplateRef, ViewEncapsulation, } from "@angular/core";
|
|
3
3
|
import { SdItemOfTemplate, } from "../../core/template/sd-item-of-template";
|
|
4
4
|
import { SdModalSelectButton, } from "../../controls/button/sd-modal-select-button";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -31,24 +31,21 @@ export class SdSharedDataSelectButton {
|
|
|
31
31
|
inset = input(false, { ...(ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
32
32
|
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
|
|
33
33
|
itemTplRef = contentChild.required(SdItemOfTemplate, { read: TemplateRef });
|
|
34
|
-
_selectedItems =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
34
|
+
_selectedItems = computed(() => {
|
|
35
|
+
const v = this.value();
|
|
36
|
+
const items = this.items();
|
|
37
|
+
const mode = this.selectMode();
|
|
38
|
+
if (mode === "multi" && Array.isArray(v) && v.filterExists().length > 0) {
|
|
39
|
+
const keys = v.filterExists();
|
|
40
|
+
return items.filter((it) => keys.includes(it.__valueKey));
|
|
41
|
+
}
|
|
42
|
+
else if (mode === "single" && !Array.isArray(v) && v != null) {
|
|
43
|
+
return items.filter((it) => it.__valueKey === v);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
}, ...(ngDevMode ? [{ debugName: "_selectedItems" }] : /* istanbul ignore next */ []));
|
|
52
49
|
static ɵfac = function SdSharedDataSelectButton_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdSharedDataSelectButton)(); };
|
|
53
50
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdSharedDataSelectButton, selectors: [["sd-shared-data-select-button"]], contentQueries: function SdSharedDataSelectButton_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
54
51
|
i0.ɵɵcontentQuerySignal(dirIndex, ctx.itemTplRef, SdItemOfTemplate, 5, TemplateRef);
|
|
@@ -101,5 +98,5 @@ export class SdSharedDataSelectButton {
|
|
|
101
98
|
</sd-modal-select-button>
|
|
102
99
|
`,
|
|
103
100
|
}]
|
|
104
|
-
}],
|
|
105
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelectButton, { className: "SdSharedDataSelectButton", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select-button.ts", lineNumber:
|
|
101
|
+
}], null, { 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: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: true }] }], selectMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectMode", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], itemTplRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdItemOfTemplate), { ...{ read: TemplateRef }, isSignal: true }] }] }); })();
|
|
102
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelectButton, { className: "SdSharedDataSelectButton", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select-button.ts", lineNumber: 58 }); })();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DateOnly, DateTime, Time } from "@simplysm/core-common";
|
|
1
2
|
import { TemplateRef } from "@angular/core";
|
|
2
3
|
import type { SharedDataBase } from "../../core/shared-data/sd-shared-data.provider";
|
|
3
4
|
import { type SelectModeValue } from "../../controls/select/sd-select";
|
|
@@ -25,7 +26,7 @@ export declare class SdSharedDataSelect<TItem extends SharedDataBase<string | nu
|
|
|
25
26
|
multiSelectionDisplayDirection: import("@angular/core").InputSignal<"vertical" | undefined>;
|
|
26
27
|
getIsHiddenFn: import("@angular/core").InputSignal<(item: TItem, index: number) => boolean>;
|
|
27
28
|
getSearchTextFn: import("@angular/core").InputSignal<(item: TItem, index: number) => string>;
|
|
28
|
-
|
|
29
|
+
displayOrderByFn: import("@angular/core").InputSignal<((item: TItem) => string | number | DateOnly | DateTime | Time | undefined) | undefined>;
|
|
29
30
|
itemTplRef: import("@angular/core").Signal<TemplateRef<SdItemOfTemplateContext<TItem>> | undefined>;
|
|
30
31
|
undefinedTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
31
32
|
trackByFn: (item: TItem) => TItem["__valueKey"];
|
|
@@ -47,6 +48,6 @@ export declare class SdSharedDataSelect<TItem extends SharedDataBase<string | nu
|
|
|
47
48
|
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=\"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0\"></path><path d=\"M21 21l-6 -6\"></path></svg>";
|
|
48
49
|
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.415z\"></path><path d=\"M16 5l3 3\"></path></svg>";
|
|
49
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdSharedDataSelect<any, any, any>, never>;
|
|
50
|
-
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; }; "
|
|
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>;
|
|
51
52
|
}
|
|
52
53
|
//# 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,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,EACjB,MAAM,oCAAoC,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B,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;IAcnD,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,CAK5D;IAEI,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAyBpD,sBAAsB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAU9D,SAAS,CAAC,QAAQ,CAAC,YAAY,yXAAgB;IAC/C,SAAS,CAAC,QAAQ,CAAC,UAAU,geAAc;yCAzOhC,kBAAkB;2CAAlB,kBAAkB;CA0O9B"}
|
|
@@ -119,7 +119,7 @@ export class SdSharedDataSelect {
|
|
|
119
119
|
multiSelectionDisplayDirection = input(...(ngDevMode ? [undefined, { debugName: "multiSelectionDisplayDirection" }] : /* istanbul ignore next */ []));
|
|
120
120
|
getIsHiddenFn = input((item) => item.__isHidden, ...(ngDevMode ? [{ debugName: "getIsHiddenFn" }] : /* istanbul ignore next */ []));
|
|
121
121
|
getSearchTextFn = input((item) => item.__searchText, ...(ngDevMode ? [{ debugName: "getSearchTextFn" }] : /* istanbul ignore next */ []));
|
|
122
|
-
|
|
122
|
+
displayOrderByFn = input(...(ngDevMode ? [undefined, { debugName: "displayOrderByFn" }] : /* istanbul ignore next */ []));
|
|
123
123
|
itemTplRef = contentChild(SdItemOfTemplate, { ...(ngDevMode ? { debugName: "itemTplRef" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
124
124
|
undefinedTplRef = contentChild("undefinedTpl", { ...(ngDevMode ? { debugName: "undefinedTplRef" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
125
125
|
trackByFn = (item) => item.__valueKey;
|
|
@@ -154,9 +154,9 @@ export class SdSharedDataSelect {
|
|
|
154
154
|
}
|
|
155
155
|
return true;
|
|
156
156
|
});
|
|
157
|
-
const
|
|
158
|
-
if (
|
|
159
|
-
result = result.orderBy(
|
|
157
|
+
const orderBy = this.displayOrderByFn();
|
|
158
|
+
if (orderBy != null) {
|
|
159
|
+
result = result.orderBy(orderBy);
|
|
160
160
|
}
|
|
161
161
|
return result;
|
|
162
162
|
}, ...(ngDevMode ? [{ debugName: "rootDisplayItems" }] : /* istanbul ignore next */ []));
|
|
@@ -240,12 +240,12 @@ export class SdSharedDataSelect {
|
|
|
240
240
|
const parentMap = this.itemByParentKeyMap();
|
|
241
241
|
if (parentMap == null)
|
|
242
242
|
return undefined;
|
|
243
|
-
const
|
|
244
|
-
if (
|
|
243
|
+
const orderBy = this.displayOrderByFn();
|
|
244
|
+
if (orderBy == null)
|
|
245
245
|
return parentMap;
|
|
246
246
|
const sorted = new Map();
|
|
247
247
|
for (const [key, children] of parentMap) {
|
|
248
|
-
sorted.set(key, children.orderBy(
|
|
248
|
+
sorted.set(key, children.orderBy(orderBy));
|
|
249
249
|
}
|
|
250
250
|
return sorted;
|
|
251
251
|
}, ...(ngDevMode ? [{ debugName: "_sortedChildrenMap" }] : /* istanbul ignore next */ []));
|
|
@@ -293,7 +293,7 @@ export class SdSharedDataSelect {
|
|
|
293
293
|
i0.ɵɵviewQuerySignal(ctx._selectCtrl, SdSelect, 5);
|
|
294
294
|
} if (rf & 2) {
|
|
295
295
|
i0.ɵɵqueryAdvance();
|
|
296
|
-
} }, 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"],
|
|
296
|
+
} }, 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-theme-gray-default"], [3, "value", "hidden"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function SdSharedDataSelect_Template(rf, ctx) { if (rf & 1) {
|
|
297
297
|
i0.ɵɵelementStart(0, "sd-select", 2);
|
|
298
298
|
i0.ɵɵlistener("valueChange", function SdSharedDataSelect_Template_sd_select_valueChange_0_listener($event) { return ctx.value.set($event); });
|
|
299
299
|
i0.ɵɵconditionalCreate(1, SdSharedDataSelect_Conditional_1_Template, 2, 1, "sd-select-button");
|
|
@@ -417,7 +417,7 @@ export class SdSharedDataSelect {
|
|
|
417
417
|
</sd-select>
|
|
418
418
|
`,
|
|
419
419
|
}]
|
|
420
|
-
}], () => [], { _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 }] }],
|
|
420
|
+
}], () => [], { _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", { ...{
|
|
421
421
|
read: TemplateRef,
|
|
422
422
|
}, isSignal: true }] }] }); })();
|
|
423
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelect, { className: "SdSharedDataSelect", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select.ts", lineNumber:
|
|
423
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelect, { className: "SdSharedDataSelect", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select.ts", lineNumber: 140 }); })();
|