@simplysm/angular 14.0.86 → 14.0.88

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.
Files changed (109) hide show
  1. package/dist/controls/pagination/sd-pagination.d.ts.map +1 -1
  2. package/dist/controls/pagination/sd-pagination.js +2 -0
  3. package/dist/controls/select/sd-select-item.js +1 -1
  4. package/dist/controls/select/sd-select.js +1 -1
  5. package/dist/core/app-structure/sd-app-structure.provider.d.ts +1 -0
  6. package/dist/core/app-structure/sd-app-structure.provider.d.ts.map +1 -1
  7. package/dist/core/app-structure/sd-app-structure.provider.js +3 -0
  8. package/dist/core/app-structure/sd-app-structure.utils.d.ts +2 -0
  9. package/dist/core/app-structure/sd-app-structure.utils.d.ts.map +1 -1
  10. package/dist/core/app-structure/sd-app-structure.utils.js +9 -1
  11. package/dist/core/busy/sd-busy-container.d.ts +1 -1
  12. package/dist/core/busy/sd-busy-container.d.ts.map +1 -1
  13. package/dist/core/busy/sd-busy-container.js +11 -11
  14. package/dist/core/busy/sd-busy.provider.d.ts.map +1 -1
  15. package/dist/core/busy/sd-busy.provider.js +3 -0
  16. package/dist/core/config/sd-system-config.provider.d.ts +4 -4
  17. package/dist/core/config/sd-system-config.provider.d.ts.map +1 -1
  18. package/dist/core/config/sd-system-config.provider.js +3 -0
  19. package/dist/core/error-handler/sd-global-error-handler.plugin.d.ts +1 -1
  20. package/dist/core/error-handler/sd-global-error-handler.plugin.d.ts.map +1 -1
  21. package/dist/core/file-dialog/sd-file-dialog.provider.d.ts.map +1 -1
  22. package/dist/core/file-dialog/sd-file-dialog.provider.js +4 -0
  23. package/dist/core/modal/sd-activated-modal.provider.d.ts +2 -1
  24. package/dist/core/modal/sd-activated-modal.provider.d.ts.map +1 -1
  25. package/dist/core/modal/sd-modal.d.ts.map +1 -1
  26. package/dist/core/modal/sd-modal.js +3 -3
  27. package/dist/core/modal/sd-modal.provider.d.ts.map +1 -1
  28. package/dist/core/modal/sd-modal.provider.js +8 -0
  29. package/dist/core/modal/sd-prompt-modal.d.ts +2 -2
  30. package/dist/core/modal/sd-prompt-modal.d.ts.map +1 -1
  31. package/dist/core/modal/sd-prompt-modal.js +32 -37
  32. package/dist/core/print/sd-print.provider.d.ts.map +1 -1
  33. package/dist/core/print/sd-print.provider.js +19 -6
  34. package/dist/core/provideSdAngular.d.ts.map +1 -1
  35. package/dist/core/provideSdAngular.js +4 -1
  36. package/dist/core/routing/injectViewTitleSignal.d.ts.map +1 -1
  37. package/dist/core/routing/injectViewTitleSignal.js +1 -6
  38. package/dist/core/shared-data/sd-shared-data.provider.d.ts +2 -1
  39. package/dist/core/shared-data/sd-shared-data.provider.d.ts.map +1 -1
  40. package/dist/core/shared-data/sd-shared-data.provider.js +1 -1
  41. package/dist/core/toast/sd-toast.provider.d.ts +1 -0
  42. package/dist/core/toast/sd-toast.provider.d.ts.map +1 -1
  43. package/dist/core/toast/sd-toast.provider.js +18 -4
  44. package/dist/data/kanban/sd-kanban-lane.d.ts.map +1 -1
  45. package/dist/data/shared-data/sd-shared-data-select-button.d.ts +1 -2
  46. package/dist/data/shared-data/sd-shared-data-select-button.d.ts.map +1 -1
  47. package/dist/data/shared-data/sd-shared-data-select-button.js +18 -21
  48. package/dist/data/shared-data/sd-shared-data-select.d.ts +3 -2
  49. package/dist/data/shared-data/sd-shared-data-select.d.ts.map +1 -1
  50. package/dist/data/shared-data/sd-shared-data-select.js +10 -10
  51. package/dist/data/sheet/sd-sheet-config.modal.d.ts +3 -3
  52. package/dist/data/sheet/sd-sheet-config.modal.d.ts.map +1 -1
  53. package/dist/data/sheet/sd-sheet-config.modal.js +37 -34
  54. package/dist/data/sheet/sd-sheet.d.ts.map +1 -1
  55. package/dist/data/sheet/sd-sheet.js +5 -1
  56. package/dist/data/sheet/useSheetCellStyling.d.ts.map +1 -1
  57. package/dist/data/sheet/useSheetCellStyling.js +4 -22
  58. package/dist/data/state-preset/sd-state-preset.d.ts +10 -10
  59. package/dist/data/state-preset/sd-state-preset.d.ts.map +1 -1
  60. package/dist/data/state-preset/sd-state-preset.js +4 -4
  61. package/dist/features/address/sd-address-search.modal.js +1 -1
  62. package/dist/features/editor/sd-tiptap-editor.d.ts.map +1 -1
  63. package/dist/features/editor/sd-tiptap-editor.js +3 -2
  64. package/dist/features/theme/sd-theme-selector.d.ts +6 -8
  65. package/dist/features/theme/sd-theme-selector.d.ts.map +1 -1
  66. package/dist/features/theme/sd-theme-selector.js +54 -51
  67. package/dist/features/visual/sd-barcode.d.ts.map +1 -1
  68. package/dist/features/visual/sd-barcode.js +5 -10
  69. package/dist/layout/sidebar/sd-sidebar-user.d.ts.map +1 -1
  70. package/dist/layout/sidebar/sd-sidebar-user.js +26 -36
  71. package/package.json +5 -5
  72. package/src/controls/button/sd-modal-select-button.ts +1 -1
  73. package/src/controls/form/sd-form.ts +1 -1
  74. package/src/controls/input/sd-textfield-type-handlers.ts +2 -2
  75. package/src/controls/pagination/sd-pagination.ts +1 -0
  76. package/src/controls/select/sd-select-item.ts +1 -1
  77. package/src/controls/select/sd-select.ts +1 -1
  78. package/src/core/app-structure/sd-app-structure.provider.ts +4 -0
  79. package/src/core/app-structure/sd-app-structure.utils.ts +14 -2
  80. package/src/core/busy/sd-busy-container.ts +6 -13
  81. package/src/core/busy/sd-busy.provider.ts +4 -0
  82. package/src/core/config/injectSdSystemConfigResource.ts +1 -1
  83. package/src/core/config/sd-system-config.provider.ts +5 -3
  84. package/src/core/error-handler/sd-global-error-handler.plugin.ts +1 -1
  85. package/src/core/file-dialog/sd-file-dialog.provider.ts +5 -1
  86. package/src/core/modal/sd-activated-modal.provider.ts +2 -1
  87. package/src/core/modal/sd-modal.provider.ts +8 -0
  88. package/src/core/modal/sd-modal.ts +6 -3
  89. package/src/core/modal/sd-prompt-modal.ts +13 -23
  90. package/src/core/print/sd-print.provider.ts +21 -6
  91. package/src/core/provideSdAngular.ts +5 -1
  92. package/src/core/routing/injectViewTitleSignal.ts +1 -5
  93. package/src/core/shared-data/sd-shared-data.provider.ts +2 -2
  94. package/src/core/toast/sd-toast.provider.ts +35 -12
  95. package/src/data/kanban/sd-kanban-lane.ts +2 -2
  96. package/src/data/shared-data/sd-shared-data-select-button.ts +15 -20
  97. package/src/data/shared-data/sd-shared-data-select-list.ts +4 -4
  98. package/src/data/shared-data/sd-shared-data-select.ts +10 -12
  99. package/src/data/sheet/sd-sheet-column.ts +1 -1
  100. package/src/data/sheet/sd-sheet-config.modal.ts +39 -35
  101. package/src/data/sheet/sd-sheet.ts +6 -1
  102. package/src/data/sheet/useSheetCellStyling.ts +3 -20
  103. package/src/data/state-preset/sd-state-preset.ts +11 -11
  104. package/src/features/address/sd-address-search.modal.ts +1 -1
  105. package/src/features/editor/sd-tiptap-editor.ts +3 -2
  106. package/src/features/theme/sd-theme-selector.ts +77 -75
  107. package/src/features/visual/sd-barcode.ts +5 -9
  108. package/src/features/visual/sd-calendar.ts +1 -1
  109. package/src/layout/sidebar/sd-sidebar-user.ts +3 -5
@@ -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,CAkBtD"}
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
- try {
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) => any;
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,KA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AAgB,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";
@@ -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,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= [];
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-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,gEAA0E;IACpF,WAAW,gEAA2E;IAEtF,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"}
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
- protected readonly _selectedItems: import("@angular/core").WritableSignal<TItem[]>;
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,EASL,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,SAAS,CAAC,QAAQ,CAAC,cAAc,kDAAuB;;yCAnB7C,wBAAwB;2CAAxB,wBAAwB;CAqCpC"}
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, contentChild, effect, input, model, signal, TemplateRef, ViewEncapsulation, } from "@angular/core";
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 = signal([], ...(ngDevMode ? [{ debugName: "_selectedItems" }] : /* istanbul ignore next */ []));
35
- constructor() {
36
- effect(() => {
37
- const v = this.value();
38
- const items = this.items();
39
- const mode = this.selectMode();
40
- if (mode === "multi" && Array.isArray(v) && v.filterExists().length > 0) {
41
- const keys = v.filterExists();
42
- this._selectedItems.set(items.filter((it) => keys.includes(it.__valueKey)));
43
- }
44
- else if (mode === "single" && !Array.isArray(v) && v != null) {
45
- this._selectedItems.set(items.filter((it) => it.__valueKey === v));
46
- }
47
- else {
48
- this._selectedItems.set([]);
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
- }], () => [], { 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 }] }] }); })();
105
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelectButton, { className: "SdSharedDataSelectButton", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select-button.ts", lineNumber: 59 }); })();
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
- displayOrderKeyProp: import("@angular/core").InputSignal<string | undefined>;
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; }; "displayOrderKeyProp": { "alias": "displayOrderKeyProp"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["itemTplRef", "undefinedTplRef"], never, true, 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>;
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,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AAE,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
- displayOrderKeyProp = input(...(ngDevMode ? [undefined, { debugName: "displayOrderKeyProp" }] : /* istanbul ignore next */ []));
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 orderProp = this.displayOrderKeyProp();
158
- if (orderProp != null) {
159
- result = result.orderBy((item) => item[orderProp]);
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 orderProp = this.displayOrderKeyProp();
244
- if (orderProp == null)
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((item) => item[orderProp]));
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"], displayOrderKeyProp: [1, "displayOrderKeyProp"] }, 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) {
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 }] }], displayOrderKeyProp: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayOrderKeyProp", required: false }] }], itemTplRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdItemOfTemplate), { ...{ read: TemplateRef }, isSignal: true }] }], undefinedTplRef: [{ type: i0.ContentChild, args: ["undefinedTpl", { ...{
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: 139 }); })();
423
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelect, { className: "SdSharedDataSelect", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select.ts", lineNumber: 140 }); })();
@@ -1,4 +1,4 @@
1
- import type { SdModalContentDef } from "../../core/modal/sd-modal.provider";
1
+ import { type SdModalContentDef } from "../../core/modal/sd-modal.provider";
2
2
  import type { SdSheetConfig } from "./types";
3
3
  import type { SdSheetColumn } from "./sd-sheet-column";
4
4
  import { mark } from "../../core/mark";
@@ -13,6 +13,7 @@ interface ConfigItem {
13
13
  ordering: number | undefined;
14
14
  }
15
15
  export declare class SdSheetConfigModal implements SdModalContentDef<SdSheetConfig | undefined> {
16
+ private readonly _sdModal;
16
17
  initialized: import("@angular/core").WritableSignal<boolean>;
17
18
  close: import("@angular/core").OutputEmitterRef<SdSheetConfig | undefined>;
18
19
  sheetKey: import("@angular/core").InputSignal<string>;
@@ -24,12 +25,11 @@ export declare class SdSheetConfigModal implements SdModalContentDef<SdSheetConf
24
25
  protected readonly tablerChevronDown = "<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=\"M6 9l6 6l6 -6\"></path></svg>";
25
26
  protected readonly tablerX = "<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=\"M18 6l-12 12\"></path><path d=\"M6 6l12 12\"></path></svg>";
26
27
  protected readonly mark: typeof mark;
27
- constructor();
28
28
  onMoveUp(item: ConfigItem): void;
29
29
  onMoveDown(item: ConfigItem): void;
30
30
  onOkClick(): void;
31
31
  onCancelClick(): void;
32
- onResetClick(): void;
32
+ onResetClick(): Promise<void>;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<SdSheetConfigModal, never>;
34
34
  static ɵcmp: i0.ɵɵComponentDeclaration<SdSheetConfigModal, "sd-sheet-config-modal", never, { "sheetKey": { "alias": "sheetKey"; "required": true; "isSignal": true; }; "controls": { "alias": "controls"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "close": "close"; }, never, never, true, never>;
35
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sd-sheet-config.modal.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/sd-sheet-config.modal.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAWvD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;;AAEvC,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,qBAgJa,kBAAmB,YAAW,iBAAiB,CAAC,aAAa,GAAG,SAAS,CAAC;IACrF,WAAW,kDAAiB;IAC5B,KAAK,sEAAuC;IAE5C,QAAQ,8CAA4B;IACpC,QAAQ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AK,sEAAuC;IAE5C,QAAQ,8CAA4B;IACpC,QAAQ,yEAA8C;IACtD,MAAM,iEAA+C;IAErD,KAAK,uDAoBF;IAEH,SAAS,GAAI,MAAM,UAAU,KAAG,MAAM,CAAa;IAEnD,SAAS,CAAC,QAAQ,CAAC,eAAe,6TAAmB;IACrD,SAAS,CAAC,QAAQ,CAAC,iBAAiB,4TAAqB;IACzD,SAAS,CAAC,QAAQ,CAAC,OAAO,yVAAW;IACrC,SAAS,CAAC,QAAQ,CAAC,IAAI,cAAQ;IAE/B,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IAahC,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IAalC,SAAS,IAAI,IAAI;IAajB,aAAa,IAAI,IAAI;IAIf,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;yCAlFxB,kBAAkB;2CAAlB,kBAAkB;CA8F9B"}
@@ -1,4 +1,6 @@
1
- import { ChangeDetectionStrategy, Component, effect, forwardRef, input, output, signal, ViewEncapsulation, } from "@angular/core";
1
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, input, linkedSignal, output, signal, ViewEncapsulation, } from "@angular/core";
2
+ import { SdModalProvider } from "../../core/modal/sd-modal.provider";
3
+ import { SdConfirmModal } from "../../core/modal/sd-confirm-modal";
2
4
  import { SdSheet } from "./sd-sheet";
3
5
  import { SdSheetColumn as SdSheetColumnDir } from "./sd-sheet-column";
4
6
  import { SdSheetColumnCellTemplate } from "./sd-sheet-column-cell-template";
@@ -147,42 +149,38 @@ function SdSheetConfigModal_Conditional_1_Template(rf, ctx) { if (rf & 1) {
147
149
  i0.ɵɵproperty("size", "sm")("buttonStyle", "min-width: 60px;");
148
150
  } }
149
151
  export class SdSheetConfigModal {
150
- initialized = signal(false, ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
152
+ _sdModal = inject(SdModalProvider);
153
+ initialized = signal(true, ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
151
154
  close = output();
152
155
  sheetKey = input.required(...(ngDevMode ? [{ debugName: "sheetKey" }] : /* istanbul ignore next */ []));
153
156
  controls = input.required(...(ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []));
154
157
  config = input.required(...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
155
- items = signal([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
158
+ items = linkedSignal(() => {
159
+ const cfg = this.config();
160
+ return this.controls()
161
+ .map((ctrl) => {
162
+ const key = ctrl.key();
163
+ const cfgCol = cfg?.columnRecord[key];
164
+ return {
165
+ key,
166
+ header: Array.isArray(ctrl.header())
167
+ ? ctrl.header().join(" > ")
168
+ : ctrl.header(),
169
+ disableResizing: ctrl.disableResizing(),
170
+ fixed: cfgCol?.fixed ?? ctrl.fixed(),
171
+ hidden: cfgCol?.hidden ?? ctrl.hidden(),
172
+ width: cfgCol?.width ?? ctrl.width(),
173
+ ordering: cfgCol?.ordering ?? ctrl.ordering(),
174
+ };
175
+ })
176
+ .orderBy((i) => i.ordering ?? 0)
177
+ .orderBy((i) => (i.fixed ? 0 : 1));
178
+ }, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
156
179
  trackByFn = (item) => item.key;
157
180
  tablerChevronUp = tablerChevronUp;
158
181
  tablerChevronDown = tablerChevronDown;
159
182
  tablerX = tablerX;
160
183
  mark = mark;
161
- constructor() {
162
- effect(() => {
163
- const cfg = this.config();
164
- const items = this.controls()
165
- .map((ctrl) => {
166
- const key = ctrl.key();
167
- const cfgCol = cfg?.columnRecord[key];
168
- return {
169
- key,
170
- header: Array.isArray(ctrl.header())
171
- ? ctrl.header().join(" > ")
172
- : ctrl.header(),
173
- disableResizing: ctrl.disableResizing(),
174
- fixed: cfgCol?.fixed ?? ctrl.fixed(),
175
- hidden: cfgCol?.hidden ?? ctrl.hidden(),
176
- width: cfgCol?.width ?? ctrl.width(),
177
- ordering: cfgCol?.ordering ?? ctrl.ordering(),
178
- };
179
- })
180
- .orderBy((i) => i.ordering ?? 0)
181
- .orderBy((i) => (i.fixed ? 0 : 1));
182
- this.items.set(items);
183
- this.initialized.set(true);
184
- });
185
- }
186
184
  onMoveUp(item) {
187
185
  this.items.update((v) => {
188
186
  const r = [...v];
@@ -222,10 +220,15 @@ export class SdSheetConfigModal {
222
220
  onCancelClick() {
223
221
  this.close.emit(undefined);
224
222
  }
225
- onResetClick() {
226
- if (confirm("설정값이 모두 초기화 됩니다.")) {
227
- this.close.emit({ columnRecord: {} });
228
- }
223
+ async onResetClick() {
224
+ const confirmed = await this._sdModal.showAsync({
225
+ title: "설정 초기화",
226
+ type: SdConfirmModal,
227
+ inputs: { message: "설정값이 모두 초기화 됩니다." },
228
+ }, { useCloseByBackdrop: false });
229
+ if (confirmed !== true)
230
+ return;
231
+ this.close.emit({ columnRecord: {} });
229
232
  }
230
233
  static ɵfac = function SdSheetConfigModal_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdSheetConfigModal)(); };
231
234
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdSheetConfigModal, selectors: [["sd-sheet-config-modal"]], inputs: { sheetKey: [1, "sheetKey"], controls: [1, "controls"], config: [1, "config"] }, outputs: { close: "close" }, decls: 2, vars: 2, consts: [[3, "busy"], [1, "flex-fill", "p-default"], [3, "key", "items", "trackByFn", "hideConfigBar"], [3, "key", "header", "disableSorting", "disableResizing"], [3, "cell"], [3, "key", "header", "disableSorting"], [3, "key", "header", "disableSorting", "width"], [1, "p-sm-default", "flex-row", "gap-sm", "bdt", "bdt-theme-gray-lightest"], [1, "flex-fill", "align-start"], [3, "click", "size", "inline", "theme", "buttonStyle"], [3, "click", "size", "theme", "buttonStyle"], [3, "click", "size", "buttonStyle"], [2, "text-align", "center"], [3, "valueChange", "size", "inset", "value"], [1, "p-xs-sm", 2, "text-align", "center"], [3, "click", "disabled"], [3, "svg"], [1, "p-xs-sm"], [3, "type", "size", "inset", "value"], [3, "valueChange", "type", "size", "inset", "value"], [3, "valueChange", "size", "inset", "value", "icon", "theme"]], template: function SdSheetConfigModal_Template(rf, ctx) { if (rf & 1) {
@@ -391,5 +394,5 @@ export class SdSheetConfigModal {
391
394
  </sd-busy-container>
392
395
  `,
393
396
  }]
394
- }], () => [], { close: [{ type: i0.Output, args: ["close"] }], sheetKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "sheetKey", required: true }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }] }); })();
395
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSheetConfigModal, { className: "SdSheetConfigModal", filePath: "packages/angular/src/data/sheet/sd-sheet-config.modal.ts", lineNumber: 180 }); })();
397
+ }], null, { close: [{ type: i0.Output, args: ["close"] }], sheetKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "sheetKey", required: true }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }] }); })();
398
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSheetConfigModal, { className: "SdSheetConfigModal", filePath: "packages/angular/src/data/sheet/sd-sheet-config.modal.ts", lineNumber: 182 }); })();
@@ -1 +1 @@
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;AACjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;;;AAcjE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GAAG,IAAI;IAOjD,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3D,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAInC,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAKvC,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAKtC,iBAAiB,IAAI,IAAI;IAIzB,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAMzC,iBAAiB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAU1D,mBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IA8CvD,OAAO,CAAC,kBAAkB;IAqB1B,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI;IAItD,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIhE,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;yCAxV/B,OAAO;2CAAP,OAAO;CA2WnB;AAGD,YAAY,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC"}
@@ -707,11 +707,15 @@ export class SdSheet {
707
707
  this.cellKeydown.emit({ item, key: colKey, event });
708
708
  }
709
709
  async onConfigButtonClick() {
710
+ const key = this.key();
711
+ if (key == null) {
712
+ throw new Error("시트 설정을 사용하려면 'key'가 지정되어야 합니다.");
713
+ }
710
714
  const result = await this._sdModal.showAsync({
711
715
  title: "시트 설정",
712
716
  type: SdSheetConfigModal,
713
717
  inputs: {
714
- sheetKey: this.key(),
718
+ sheetKey: key,
715
719
  controls: this._effectiveColumnControls(),
716
720
  config: this._configResource.value(),
717
721
  },
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetCellStyling.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/useSheetCellStyling.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