@simplysm/angular 14.0.40 → 14.0.42
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/collapse/sd-collapse-icon.d.ts +2 -4
- package/dist/controls/collapse/sd-collapse-icon.d.ts.map +1 -1
- package/dist/controls/collapse/sd-collapse-icon.js +5 -5
- package/dist/core/app-structure/sd-app-structure.provider.d.ts +2 -2
- package/dist/core/app-structure/sd-app-structure.provider.d.ts.map +1 -1
- package/dist/core/app-structure/sd-app-structure.provider.js +4 -4
- package/dist/core/config/sd-local-storage.provider.d.ts +1 -1
- package/dist/core/config/sd-local-storage.provider.d.ts.map +1 -1
- package/dist/core/config/sd-local-storage.provider.js +4 -4
- 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/error-handler/sd-global-error-handler.plugin.js +3 -3
- package/dist/core/modal/sd-modal.d.ts +4 -3
- package/dist/core/modal/sd-modal.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.js +14 -12
- package/dist/core/modal/sd-modal.provider.d.ts +1 -0
- package/dist/core/modal/sd-modal.provider.d.ts.map +1 -1
- package/dist/core/routing/injectViewTitleSignal.js +3 -3
- package/dist/core/routing/injectViewTypeSignal.js +2 -2
- package/dist/core/routing/sd-router-link.d.ts +1 -1
- package/dist/core/routing/sd-router-link.d.ts.map +1 -1
- package/dist/core/routing/sd-router-link.js +4 -4
- package/dist/core/routing/setupCanDeactivate.js +3 -3
- package/dist/core/service-client/sd-service-client-factory.provider.d.ts +2 -2
- package/dist/core/service-client/sd-service-client-factory.provider.d.ts.map +1 -1
- package/dist/core/service-client/sd-service-client-factory.provider.js +4 -4
- package/dist/core/shared-data/sd-shared-data.provider.d.ts +4 -3
- package/dist/core/shared-data/sd-shared-data.provider.d.ts.map +1 -1
- package/dist/core/shared-data/sd-shared-data.provider.js +4 -4
- package/dist/core/toast/sd-toast.provider.d.ts +3 -3
- package/dist/core/toast/sd-toast.provider.d.ts.map +1 -1
- package/dist/core/toast/sd-toast.provider.js +2 -2
- package/dist/data/data-detail/sd-data-detail.base.d.ts +6 -4
- package/dist/data/data-detail/sd-data-detail.base.d.ts.map +1 -1
- package/dist/data/data-select-button/sd-data-select-button.base.d.ts +2 -2
- package/dist/data/data-select-button/sd-data-select-button.base.d.ts.map +1 -1
- package/dist/data/data-sheet/sd-data-sheet.d.ts.map +1 -1
- package/dist/data/data-sheet/sd-data-sheet.js +75 -43
- package/dist/data/sheet/sd-sheet-column-cell-template.d.ts +9 -0
- package/dist/data/sheet/sd-sheet-column-cell-template.d.ts.map +1 -0
- package/dist/data/sheet/sd-sheet-column-cell-template.js +17 -0
- package/dist/data/sheet/sd-sheet-column.d.ts +10 -7
- package/dist/data/sheet/sd-sheet-column.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet-column.js +10 -6
- package/dist/data/sheet/sd-sheet-config.modal.d.ts +1 -1
- package/dist/data/sheet/sd-sheet-config.modal.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet.d.ts +4 -3
- package/dist/data/sheet/sd-sheet.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet.js +61 -36
- package/dist/data/sheet/types.d.ts +2 -0
- package/dist/data/sheet/types.d.ts.map +1 -1
- package/dist/data/sheet/useSheetCellStyling.d.ts.map +1 -1
- package/dist/data/sheet/useSheetCellStyling.js +7 -1
- package/dist/data/sheet/useSheetLayoutEngine.d.ts.map +1 -1
- package/dist/data/sheet/useSheetLayoutEngine.js +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/layout/base-container/sd-base-container.d.ts +1 -1
- package/dist/layout/base-container/sd-base-container.d.ts.map +1 -1
- package/dist/layout/base-container/sd-base-container.js +2 -2
- package/package.json +6 -6
- package/src/controls/collapse/sd-collapse-icon.ts +2 -3
- package/src/core/app-structure/sd-app-structure.provider.ts +4 -4
- package/src/core/config/sd-local-storage.provider.ts +4 -4
- package/src/core/error-handler/sd-global-error-handler.plugin.ts +3 -3
- package/src/core/modal/sd-modal.provider.ts +1 -0
- package/src/core/modal/sd-modal.ts +10 -9
- package/src/core/routing/injectViewTitleSignal.ts +3 -3
- package/src/core/routing/injectViewTypeSignal.ts +2 -2
- package/src/core/routing/sd-router-link.ts +4 -4
- package/src/core/routing/setupCanDeactivate.ts +3 -3
- package/src/core/service-client/sd-service-client-factory.provider.ts +4 -4
- package/src/core/shared-data/sd-shared-data.provider.ts +5 -5
- package/src/core/toast/sd-toast.provider.ts +6 -6
- package/src/data/data-detail/sd-data-detail.base.ts +3 -3
- package/src/data/data-select-button/sd-data-select-button.base.ts +1 -1
- package/src/data/data-sheet/sd-data-sheet.ts +14 -5
- package/src/data/sheet/sd-sheet-column-cell-template.ts +17 -0
- package/src/data/sheet/sd-sheet-column.ts +12 -5
- package/src/data/sheet/sd-sheet.ts +14 -3
- package/src/data/sheet/types.ts +2 -0
- package/src/data/sheet/useSheetCellStyling.ts +5 -1
- package/src/data/sheet/useSheetLayoutEngine.ts +2 -0
- package/src/index.ts +2 -1
- package/src/layout/base-container/sd-base-container.ts +2 -2
|
@@ -15,7 +15,7 @@ export declare class SdToastProvider {
|
|
|
15
15
|
private readonly _appRef;
|
|
16
16
|
private readonly _envInjector;
|
|
17
17
|
private readonly _injector;
|
|
18
|
-
private readonly
|
|
18
|
+
private readonly _sdSystemLog;
|
|
19
19
|
alertThemes: WritableSignal<SdToastSeverity[]>;
|
|
20
20
|
overlap: WritableSignal<boolean>;
|
|
21
21
|
beforeShowFn?: (theme: SdToastSeverity) => void;
|
|
@@ -33,8 +33,8 @@ export declare class SdToastProvider {
|
|
|
33
33
|
danger(message: string, useProgress?: true): WritableSignal<number>;
|
|
34
34
|
danger(message: string, useProgress?: false): void;
|
|
35
35
|
notify<T extends SdToastContentDef<any>>(input: SdToastInput<T>): Promise<Parameters<T["close"]["emit"]>[0] | undefined>;
|
|
36
|
-
try<R>(fn: () => Promise<R
|
|
37
|
-
try<R>(fn: () =>
|
|
36
|
+
try<R>(fn: () => Promise<R>, messageFn?: (err: Error) => string): Promise<R | undefined>;
|
|
37
|
+
try<R>(fn: () => R, messageFn?: (err: Error) => string): R | undefined;
|
|
38
38
|
private _show;
|
|
39
39
|
private _setupAutoDismiss;
|
|
40
40
|
private _dismissToast;
|
|
@@ -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,CAAC,CAAC,SAAS,iBAAiB,CAAC,GAAG,CAAC;IAC5D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACd,MAAM,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CACjD;AAED,qBACa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;IAClD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA+B;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;IAC9C,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":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AAO,CAAC,iBAAiB;IA0CzB,OAAO,CAAC,aAAa;IAqBrB,OAAO,CAAC,aAAa;IAsBrB,OAAO,CAAC,gBAAgB;yCAzRb,eAAe;6CAAf,eAAe;CA8R3B"}
|
|
@@ -9,7 +9,7 @@ export class SdToastProvider {
|
|
|
9
9
|
_appRef = inject(ApplicationRef);
|
|
10
10
|
_envInjector = inject(EnvironmentInjector);
|
|
11
11
|
_injector = inject(Injector);
|
|
12
|
-
|
|
12
|
+
_sdSystemLog = inject(SdSystemLogProvider);
|
|
13
13
|
alertThemes = signal([], ...(ngDevMode ? [{ debugName: "alertThemes" }] : /* istanbul ignore next */ []));
|
|
14
14
|
overlap = signal(false, ...(ngDevMode ? [{ debugName: "overlap" }] : /* istanbul ignore next */ []));
|
|
15
15
|
beforeShowFn;
|
|
@@ -101,7 +101,7 @@ export class SdToastProvider {
|
|
|
101
101
|
}
|
|
102
102
|
const message = messageFn !== undefined ? messageFn(err) : err.message;
|
|
103
103
|
this.danger(message);
|
|
104
|
-
await this.
|
|
104
|
+
await this._sdSystemLog.writeAsync("error", err.stack ?? err.message);
|
|
105
105
|
return undefined;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { type Signal, TemplateRef } from "@angular/core";
|
|
1
|
+
import { ErrorHandler, type Signal, TemplateRef } from "@angular/core";
|
|
2
2
|
import { DateTime } from "@simplysm/core-common";
|
|
3
|
+
import { SdSharedDataProvider } from "../../core/shared-data/sd-shared-data.provider";
|
|
3
4
|
import { type SdModalContentDef } from "../../core/modal/sd-modal.provider";
|
|
5
|
+
import { SdToastProvider } from "../../core/toast/sd-toast.provider";
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export interface SdDataDetailDataInfo {
|
|
6
8
|
isNew: boolean;
|
|
@@ -22,9 +24,9 @@ export declare abstract class SdDataDetailBase<T extends object, R = boolean> im
|
|
|
22
24
|
};
|
|
23
25
|
toggleDelete?(del: boolean): Promise<R | undefined> | R | undefined;
|
|
24
26
|
submit?(data: T): Promise<R | undefined> | R | undefined;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
protected readonly _sdToast: SdToastProvider;
|
|
28
|
+
protected readonly _sdSharedData: SdSharedDataProvider<Record<string, import("../..").SharedDataBase<string | number>>>;
|
|
29
|
+
protected readonly _errorHandler: ErrorHandler;
|
|
28
30
|
viewType: Signal<import("../..").SdViewType>;
|
|
29
31
|
busyCount: import("@angular/core").WritableSignal<number>;
|
|
30
32
|
busyMessage: import("@angular/core").WritableSignal<string | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-data-detail.base.d.ts","sourceRoot":"","sources":["../../../src/data/data-detail/sd-data-detail.base.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"sd-data-detail.base.d.ts","sourceRoot":"","sources":["../../../src/data/data-detail/sd-data-detail.base.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAIZ,KAAK,MAAM,EACX,WAAW,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAO,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAItF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;;AAGrE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,QAAQ,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,8BACsB,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,GAAG,OAAO,CAClE,YAAW,iBAAiB,CAAC,CAAC,CAAC;IAI/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,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1
1
|
import { type Signal } from "@angular/core";
|
|
2
2
|
import type { SelectModeValue } from "../../controls/select/sd-select";
|
|
3
|
-
import { type SdModalOptions } from "../../core/modal/sd-modal.provider";
|
|
3
|
+
import { SdModalProvider, type SdModalOptions } from "../../core/modal/sd-modal.provider";
|
|
4
4
|
import type { SdSelectModal, SdSelectModalInfo } from "../../controls/button/sd-modal-select-button";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare abstract class SdDataSelectButtonBase<TItem extends object, TKey, TMode extends keyof SelectModeValue<TKey> = keyof SelectModeValue<TKey>> {
|
|
7
7
|
abstract modal: Signal<SdSelectModalInfo<SdSelectModal<any>>>;
|
|
8
8
|
abstract load(keys: TKey[]): Promise<TItem[]> | TItem[];
|
|
9
|
-
|
|
9
|
+
protected readonly _sdModal: SdModalProvider;
|
|
10
10
|
value: import("@angular/core").ModelSignal<SelectModeValue<TKey>[TMode] | undefined>;
|
|
11
11
|
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
12
|
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-data-select-button.base.d.ts","sourceRoot":"","sources":["../../../src/data/data-select-button/sd-data-select-button.base.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"sd-data-select-button.base.d.ts","sourceRoot":"","sources":["../../../src/data/data-select-button/sd-data-select-button.base.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EACL,eAAe,EACf,KAAK,cAAc,EACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;;AAGtD,8BACsB,sBAAsB,CAC1C,KAAK,SAAS,MAAM,EACpB,IAAI,EACJ,KAAK,SAAS,MAAM,eAAe,CAAC,IAAI,CAAC,GAAG,MAAM,eAAe,CAAC,IAAI,CAAC;IAGvE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC9D,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,KAAK,EAAE;IAIvD,SAAS,CAAC,QAAQ,CAAC,QAAQ,kBAA2B;IAEtD,KAAK,gFAAyC;IAE9C,QAAQ,qEAAiD;IACzD,QAAQ,qEAAiD;IACzD,KAAK,qEAAiD;IACtD,IAAI,+DAAwB;IAC5B,UAAU,6CAAmC;IAE7C,SAAS,kBAKN;IAEH,aAAa,kDAAuB;;IAyB9B,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB1D,cAAc,IAAI,IAAI;yCA7EF,sBAAsB;2CAAtB,sBAAsB;CAgF3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-data-sheet.d.ts","sourceRoot":"","sources":["../../../src/data/data-sheet/sd-data-sheet.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"sd-data-sheet.d.ts","sourceRoot":"","sources":["../../../src/data/data-sheet/sd-data-sheet.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAOrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAc3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;;AAIvD,qBA6Va,WAAW;IACtB,MAAM,iCAAkD;IAExD,QAAQ,qDAAiC;IAEzC,UAAU,0DAAmB;IAC7B,UAAU,0DAAmB;IAC7B,WAAW,0DAAmB;IAC9B,UAAU,8CAAuB;IACjC,WAAW,8CAAwB;IAEnC,gBAAgB,+DAAwD;IACxE,UAAU,+DAAkD;IAC5D,YAAY,+DAAoD;IAChE,gBAAgB,+DAAwD;IACxE,UAAU,+DAAkD;IAC5D,iBAAiB,+DAAyD;IAE1E,cAAc,+DAAsC;IAEpD,iBAAiB,+DAAsD;;IAQvE,SAAS,CAAC,QAAQ,CAAC,KAAK;;;;;;;;MAQtB;IAEF,cAAc;IAId,oBAAoB;IAId,uBAAuB;IAIvB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU;IAMjE,8BAA8B,CAAC,GAAG,EAAE,OAAO;IAIjD,6BAA6B,CAAC,IAAI,EAAE,GAAG;IAIvC,mBAAmB;IAIb,QAAQ;IAIR,oBAAoB;IAIpB,0BAA0B;IAI1B,wBAAwB;IAI9B,oBAAoB;IAIpB,mBAAmB;yCAxFR,WAAW;2CAAX,WAAW;CA2FvB"}
|
|
@@ -3,6 +3,7 @@ import { ChangeDetectionStrategy, Component, contentChild, contentChildren, effe
|
|
|
3
3
|
import { SdButton } from "../../controls/button/sd-button";
|
|
4
4
|
import { SdForm } from "../../controls/form/sd-form";
|
|
5
5
|
import { SdSheetColumn } from "../sheet/sd-sheet-column";
|
|
6
|
+
import { SdSheetColumnCellTemplate } from "../sheet/sd-sheet-column-cell-template";
|
|
6
7
|
import { SdSheet } from "../sheet/sd-sheet";
|
|
7
8
|
import { injectParent } from "../../core/injectParent";
|
|
8
9
|
import { FormatPipe } from "../../core/format.pipe";
|
|
@@ -252,13 +253,13 @@ function SdDataSheet_ng_template_3_Conditional_4_Template(rf, ctx) { if (rf & 1)
|
|
|
252
253
|
} }
|
|
253
254
|
function SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
254
255
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
255
|
-
i0.ɵɵelementStart(0, "div",
|
|
256
|
-
i0.ɵɵlistener("click", function SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template_sd_anchor_click_1_listener() { const item_r14 = i0.ɵɵrestoreView(_r13)
|
|
256
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "sd-anchor", 29);
|
|
257
|
+
i0.ɵɵlistener("click", function SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template_sd_anchor_click_1_listener() { const item_r14 = i0.ɵɵrestoreView(_r13).item; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onToggleDeleteItemButtonClick(item_r14)); });
|
|
257
258
|
i0.ɵɵelement(2, "ng-icon", 10);
|
|
258
259
|
i0.ɵɵtext(3);
|
|
259
260
|
i0.ɵɵelementEnd()();
|
|
260
261
|
} if (rf & 2) {
|
|
261
|
-
const item_r14 = ctx
|
|
262
|
+
const item_r14 = ctx.item;
|
|
262
263
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
263
264
|
i0.ɵɵadvance();
|
|
264
265
|
i0.ɵɵproperty("theme", "danger")("disabled", !ctx_r2.parent.getItemInfoFn(item_r14).canDelete);
|
|
@@ -269,36 +270,48 @@ function SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template(rf, ctx)
|
|
|
269
270
|
} }
|
|
270
271
|
function SdDataSheet_ng_template_3_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
271
272
|
i0.ɵɵelementStart(0, "sd-sheet-column", 17);
|
|
272
|
-
i0.ɵɵtemplate(1, SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template, 4, 4, "ng-template",
|
|
273
|
+
i0.ɵɵtemplate(1, SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template, 4, 4, "ng-template", 27);
|
|
273
274
|
i0.ɵɵelementEnd();
|
|
274
275
|
} if (rf & 2) {
|
|
275
276
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
276
277
|
i0.ɵɵproperty("fixed", true)("key", ctx_r2.parent.itemPropInfo.isDeleted);
|
|
278
|
+
i0.ɵɵadvance();
|
|
279
|
+
i0.ɵɵproperty("cell", ctx_r2.parent.items());
|
|
277
280
|
} }
|
|
278
281
|
function SdDataSheet_ng_template_3_For_10_Conditional_1_ng_template_0_ng_template_0_Template(rf, ctx) { }
|
|
279
282
|
function SdDataSheet_ng_template_3_For_10_Conditional_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
280
283
|
i0.ɵɵtemplate(0, SdDataSheet_ng_template_3_For_10_Conditional_1_ng_template_0_ng_template_0_Template, 0, 0, "ng-template", 11);
|
|
281
284
|
} if (rf & 2) {
|
|
282
285
|
const columnControl_r15 = i0.ɵɵnextContext(2).$implicit;
|
|
283
|
-
i0.ɵɵproperty("ngTemplateOutlet", columnControl_r15.
|
|
286
|
+
i0.ɵɵproperty("ngTemplateOutlet", columnControl_r15.headerTplRef());
|
|
284
287
|
} }
|
|
285
288
|
function SdDataSheet_ng_template_3_For_10_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
286
|
-
i0.ɵɵtemplate(0, SdDataSheet_ng_template_3_For_10_Conditional_1_ng_template_0_Template, 1, 1, "ng-template", null,
|
|
289
|
+
i0.ɵɵtemplate(0, SdDataSheet_ng_template_3_For_10_Conditional_1_ng_template_0_Template, 1, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
290
|
+
} }
|
|
291
|
+
function SdDataSheet_ng_template_3_For_10_Conditional_2_ng_template_0_ng_template_0_Template(rf, ctx) { }
|
|
292
|
+
function SdDataSheet_ng_template_3_For_10_Conditional_2_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
293
|
+
i0.ɵɵtemplate(0, SdDataSheet_ng_template_3_For_10_Conditional_2_ng_template_0_ng_template_0_Template, 0, 0, "ng-template", 11);
|
|
294
|
+
} if (rf & 2) {
|
|
295
|
+
const columnControl_r15 = i0.ɵɵnextContext(2).$implicit;
|
|
296
|
+
i0.ɵɵproperty("ngTemplateOutlet", columnControl_r15.summaryTplRef());
|
|
297
|
+
} }
|
|
298
|
+
function SdDataSheet_ng_template_3_For_10_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
299
|
+
i0.ɵɵtemplate(0, SdDataSheet_ng_template_3_For_10_Conditional_2_ng_template_0_Template, 1, 1, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
287
300
|
} }
|
|
288
|
-
function
|
|
289
|
-
function
|
|
301
|
+
function SdDataSheet_ng_template_3_For_10_ng_template_3_Conditional_0_ng_template_4_Template(rf, ctx) { }
|
|
302
|
+
function SdDataSheet_ng_template_3_For_10_ng_template_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
290
303
|
const _r16 = i0.ɵɵgetCurrentView();
|
|
291
|
-
i0.ɵɵelementStart(0, "sd-anchor",
|
|
292
|
-
i0.ɵɵlistener("click", function
|
|
293
|
-
i0.ɵɵelementStart(1, "div",
|
|
304
|
+
i0.ɵɵelementStart(0, "sd-anchor", 32);
|
|
305
|
+
i0.ɵɵlistener("click", function SdDataSheet_ng_template_3_For_10_ng_template_3_Conditional_0_Template_sd_anchor_click_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r16 = i0.ɵɵnextContext(); const item_r18 = ctx_r16.item; const index_r19 = ctx_r16.index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onEditItemButtonClick(item_r18, index_r19, $event)); });
|
|
306
|
+
i0.ɵɵelementStart(1, "div", 33);
|
|
294
307
|
i0.ɵɵelement(2, "ng-icon", 10);
|
|
295
308
|
i0.ɵɵelementEnd();
|
|
296
|
-
i0.ɵɵelementStart(3, "div",
|
|
297
|
-
i0.ɵɵtemplate(4,
|
|
309
|
+
i0.ɵɵelementStart(3, "div", 34);
|
|
310
|
+
i0.ɵɵtemplate(4, SdDataSheet_ng_template_3_For_10_ng_template_3_Conditional_0_ng_template_4_Template, 0, 0, "ng-template", 31);
|
|
298
311
|
i0.ɵɵelementEnd()();
|
|
299
312
|
} if (rf & 2) {
|
|
300
313
|
const ctx_r16 = i0.ɵɵnextContext();
|
|
301
|
-
const item_r18 = ctx_r16
|
|
314
|
+
const item_r18 = ctx_r16.item;
|
|
302
315
|
const index_r19 = ctx_r16.index;
|
|
303
316
|
const depth_r20 = ctx_r16.depth;
|
|
304
317
|
const edit_r21 = ctx_r16.edit;
|
|
@@ -309,22 +322,22 @@ function SdDataSheet_ng_template_3_For_10_ng_template_2_Conditional_0_Template(r
|
|
|
309
322
|
i0.ɵɵadvance(2);
|
|
310
323
|
i0.ɵɵproperty("ngTemplateOutlet", columnControl_r15.cellTplRef())("ngTemplateOutletContext", i0.ɵɵpureFunction5(3, _c8, item_r18, item_r18, index_r19, depth_r20, edit_r21));
|
|
311
324
|
} }
|
|
312
|
-
function
|
|
313
|
-
function
|
|
314
|
-
i0.ɵɵtemplate(0,
|
|
325
|
+
function SdDataSheet_ng_template_3_For_10_ng_template_3_Conditional_1_ng_template_0_Template(rf, ctx) { }
|
|
326
|
+
function SdDataSheet_ng_template_3_For_10_ng_template_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
327
|
+
i0.ɵɵtemplate(0, SdDataSheet_ng_template_3_For_10_ng_template_3_Conditional_1_ng_template_0_Template, 0, 0, "ng-template", 31);
|
|
315
328
|
} if (rf & 2) {
|
|
316
329
|
const ctx_r16 = i0.ɵɵnextContext();
|
|
317
|
-
const item_r18 = ctx_r16
|
|
330
|
+
const item_r18 = ctx_r16.item;
|
|
318
331
|
const index_r19 = ctx_r16.index;
|
|
319
332
|
const depth_r20 = ctx_r16.depth;
|
|
320
333
|
const edit_r21 = ctx_r16.edit;
|
|
321
334
|
const columnControl_r15 = i0.ɵɵnextContext().$implicit;
|
|
322
335
|
i0.ɵɵproperty("ngTemplateOutlet", columnControl_r15.cellTplRef())("ngTemplateOutletContext", i0.ɵɵpureFunction5(2, _c8, item_r18, item_r18, index_r19, depth_r20, edit_r21));
|
|
323
336
|
} }
|
|
324
|
-
function
|
|
325
|
-
i0.ɵɵconditionalCreate(0,
|
|
337
|
+
function SdDataSheet_ng_template_3_For_10_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
338
|
+
i0.ɵɵconditionalCreate(0, SdDataSheet_ng_template_3_For_10_ng_template_3_Conditional_0_Template, 5, 9, "sd-anchor", 30)(1, SdDataSheet_ng_template_3_For_10_ng_template_3_Conditional_1_Template, 1, 8, null, 31);
|
|
326
339
|
} if (rf & 2) {
|
|
327
|
-
const item_r18 = ctx
|
|
340
|
+
const item_r18 = ctx.item;
|
|
328
341
|
const columnControl_r15 = i0.ɵɵnextContext().$implicit;
|
|
329
342
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
330
343
|
i0.ɵɵconditional(ctx_r2.parent.editMode === "modal" && ctx_r2.parent.canEdit() && columnControl_r15.edit() && ctx_r2.parent.getItemInfoFn(item_r18).canEdit ? 0 : 1);
|
|
@@ -332,50 +345,60 @@ function SdDataSheet_ng_template_3_For_10_ng_template_2_Template(rf, ctx) { if (
|
|
|
332
345
|
function SdDataSheet_ng_template_3_For_10_Template(rf, ctx) { if (rf & 1) {
|
|
333
346
|
i0.ɵɵelementStart(0, "sd-sheet-column", 18);
|
|
334
347
|
i0.ɵɵconditionalCreate(1, SdDataSheet_ng_template_3_For_10_Conditional_1_Template, 2, 0);
|
|
335
|
-
i0.ɵɵ
|
|
348
|
+
i0.ɵɵconditionalCreate(2, SdDataSheet_ng_template_3_For_10_Conditional_2_Template, 2, 0);
|
|
349
|
+
i0.ɵɵtemplate(3, SdDataSheet_ng_template_3_For_10_ng_template_3_Template, 2, 1, "ng-template", 27);
|
|
336
350
|
i0.ɵɵelementEnd();
|
|
337
351
|
} if (rf & 2) {
|
|
338
352
|
const columnControl_r15 = ctx.$implicit;
|
|
339
|
-
|
|
353
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
354
|
+
i0.ɵɵproperty("key", columnControl_r15.key())("fixed", columnControl_r15.fixed())("header", columnControl_r15.header())("headerStyle", columnControl_r15.headerStyle())("tooltip", columnControl_r15.tooltip())("width", columnControl_r15.width())("disableSorting", columnControl_r15.disableSorting())("disableResizing", columnControl_r15.disableResizing())("hidden", columnControl_r15.hidden())("collapse", columnControl_r15.collapse());
|
|
355
|
+
i0.ɵɵadvance();
|
|
356
|
+
i0.ɵɵconditional(columnControl_r15.headerTplRef() ? 1 : -1);
|
|
340
357
|
i0.ɵɵadvance();
|
|
341
|
-
i0.ɵɵconditional(columnControl_r15.summaryTplRef() ?
|
|
358
|
+
i0.ɵɵconditional(columnControl_r15.summaryTplRef() ? 2 : -1);
|
|
359
|
+
i0.ɵɵadvance();
|
|
360
|
+
i0.ɵɵproperty("cell", ctx_r2.parent.items());
|
|
342
361
|
} }
|
|
343
362
|
function SdDataSheet_ng_template_3_Conditional_11_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
344
|
-
i0.ɵɵelementStart(0, "div",
|
|
363
|
+
i0.ɵɵelementStart(0, "div", 28);
|
|
345
364
|
i0.ɵɵtext(1);
|
|
346
365
|
i0.ɵɵpipe(2, "format");
|
|
347
366
|
i0.ɵɵelementEnd();
|
|
348
367
|
} if (rf & 2) {
|
|
349
|
-
const item_r22 = ctx
|
|
368
|
+
const item_r22 = ctx.item;
|
|
350
369
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
351
370
|
i0.ɵɵadvance();
|
|
352
371
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, item_r22[ctx_r2.parent.itemPropInfo.lastModifiedAt], "yyyy-MM-dd HH:mm"), " ");
|
|
353
372
|
} }
|
|
354
373
|
function SdDataSheet_ng_template_3_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
355
374
|
i0.ɵɵelementStart(0, "sd-sheet-column", 19);
|
|
356
|
-
i0.ɵɵtemplate(1, SdDataSheet_ng_template_3_Conditional_11_ng_template_1_Template, 3, 4, "ng-template",
|
|
375
|
+
i0.ɵɵtemplate(1, SdDataSheet_ng_template_3_Conditional_11_ng_template_1_Template, 3, 4, "ng-template", 27);
|
|
357
376
|
i0.ɵɵelementEnd();
|
|
358
377
|
} if (rf & 2) {
|
|
359
378
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
360
379
|
i0.ɵɵproperty("header", "\uC218\uC815\uC77C\uC2DC")("key", ctx_r2.parent.itemPropInfo.lastModifiedAt)("hidden", true);
|
|
380
|
+
i0.ɵɵadvance();
|
|
381
|
+
i0.ɵɵproperty("cell", ctx_r2.parent.items());
|
|
361
382
|
} }
|
|
362
383
|
function SdDataSheet_ng_template_3_Conditional_12_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
363
|
-
i0.ɵɵelementStart(0, "div",
|
|
384
|
+
i0.ɵɵelementStart(0, "div", 28);
|
|
364
385
|
i0.ɵɵtext(1);
|
|
365
386
|
i0.ɵɵelementEnd();
|
|
366
387
|
} if (rf & 2) {
|
|
367
|
-
const item_r23 = ctx
|
|
388
|
+
const item_r23 = ctx.item;
|
|
368
389
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
369
390
|
i0.ɵɵadvance();
|
|
370
391
|
i0.ɵɵtextInterpolate1(" ", item_r23[ctx_r2.parent.itemPropInfo.lastModifiedBy], " ");
|
|
371
392
|
} }
|
|
372
393
|
function SdDataSheet_ng_template_3_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
373
394
|
i0.ɵɵelementStart(0, "sd-sheet-column", 19);
|
|
374
|
-
i0.ɵɵtemplate(1, SdDataSheet_ng_template_3_Conditional_12_ng_template_1_Template, 2, 1, "ng-template",
|
|
395
|
+
i0.ɵɵtemplate(1, SdDataSheet_ng_template_3_Conditional_12_ng_template_1_Template, 2, 1, "ng-template", 27);
|
|
375
396
|
i0.ɵɵelementEnd();
|
|
376
397
|
} if (rf & 2) {
|
|
377
398
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
378
399
|
i0.ɵɵproperty("header", "\uC218\uC815\uC790")("key", ctx_r2.parent.itemPropInfo.lastModifiedBy)("hidden", true);
|
|
400
|
+
i0.ɵɵadvance();
|
|
401
|
+
i0.ɵɵproperty("cell", ctx_r2.parent.items());
|
|
379
402
|
} }
|
|
380
403
|
function SdDataSheet_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
381
404
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -387,10 +410,10 @@ function SdDataSheet_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
387
410
|
i0.ɵɵlistener("formSubmit", function SdDataSheet_ng_template_3_Template_sd_form_formSubmit_5_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onSubmit()); });
|
|
388
411
|
i0.ɵɵelementStart(7, "sd-sheet", 16);
|
|
389
412
|
i0.ɵɵtwoWayListener("currentPageChange", function SdDataSheet_ng_template_3_Template_sd_sheet_currentPageChange_7_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.parent.page, $event) || (ctx_r2.parent.page = $event); return i0.ɵɵresetView($event); })("sortsChange", function SdDataSheet_ng_template_3_Template_sd_sheet_sortsChange_7_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.parent.sortingDefs, $event) || (ctx_r2.parent.sortingDefs = $event); return i0.ɵɵresetView($event); })("selectedItemsChange", function SdDataSheet_ng_template_3_Template_sd_sheet_selectedItemsChange_7_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.parent.selectedItems, $event) || (ctx_r2.parent.selectedItems = $event); return i0.ɵɵresetView($event); });
|
|
390
|
-
i0.ɵɵconditionalCreate(8, SdDataSheet_ng_template_3_Conditional_8_Template,
|
|
391
|
-
i0.ɵɵrepeaterCreate(9, SdDataSheet_ng_template_3_For_10_Template, 4,
|
|
392
|
-
i0.ɵɵconditionalCreate(11, SdDataSheet_ng_template_3_Conditional_11_Template,
|
|
393
|
-
i0.ɵɵconditionalCreate(12, SdDataSheet_ng_template_3_Conditional_12_Template,
|
|
413
|
+
i0.ɵɵconditionalCreate(8, SdDataSheet_ng_template_3_Conditional_8_Template, 2, 3, "sd-sheet-column", 17);
|
|
414
|
+
i0.ɵɵrepeaterCreate(9, SdDataSheet_ng_template_3_For_10_Template, 4, 13, "sd-sheet-column", 18, _forTrack0);
|
|
415
|
+
i0.ɵɵconditionalCreate(11, SdDataSheet_ng_template_3_Conditional_11_Template, 2, 4, "sd-sheet-column", 19);
|
|
416
|
+
i0.ɵɵconditionalCreate(12, SdDataSheet_ng_template_3_Conditional_12_Template, 2, 4, "sd-sheet-column", 19);
|
|
394
417
|
i0.ɵɵelementEnd()()();
|
|
395
418
|
} if (rf & 2) {
|
|
396
419
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -449,7 +472,7 @@ function SdDataSheet_Conditional_5_ng_template_0_Conditional_4_Template(rf, ctx)
|
|
|
449
472
|
i0.ɵɵtextInterpolate1(" \uD655\uC778(", ctx_r2.parent.selectedItemKeys().length, ") ");
|
|
450
473
|
} }
|
|
451
474
|
function SdDataSheet_Conditional_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
452
|
-
i0.ɵɵelementStart(0, "div",
|
|
475
|
+
i0.ɵɵelementStart(0, "div", 35)(1, "div", 36);
|
|
453
476
|
i0.ɵɵconditionalCreate(2, SdDataSheet_Conditional_5_ng_template_0_Conditional_2_Template, 1, 1, null, 11);
|
|
454
477
|
i0.ɵɵelementEnd();
|
|
455
478
|
i0.ɵɵconditionalCreate(3, SdDataSheet_Conditional_5_ng_template_0_Conditional_3_Template, 2, 3, "sd-button", 25);
|
|
@@ -466,7 +489,7 @@ function SdDataSheet_Conditional_5_ng_template_0_Template(rf, ctx) { if (rf & 1)
|
|
|
466
489
|
} }
|
|
467
490
|
function SdDataSheet_Conditional_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
468
491
|
const _r26 = i0.ɵɵgetCurrentView();
|
|
469
|
-
i0.ɵɵelementStart(0, "sd-anchor",
|
|
492
|
+
i0.ɵɵelementStart(0, "sd-anchor", 37);
|
|
470
493
|
i0.ɵɵlistener("click", function SdDataSheet_Conditional_5_ng_template_2_Template_sd_anchor_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onRefreshButtonClick()); });
|
|
471
494
|
i0.ɵɵelement(1, "ng-icon", 10);
|
|
472
495
|
i0.ɵɵelementEnd();
|
|
@@ -562,7 +585,7 @@ export class SdDataSheet {
|
|
|
562
585
|
i0.ɵɵqueryAdvance(2);
|
|
563
586
|
} }, hostBindings: function SdDataSheet_HostBindings(rf, ctx) { if (rf & 1) {
|
|
564
587
|
i0.ɵɵlistener("sdRefreshCommand", function SdDataSheet_sdRefreshCommand_HostBindingHandler() { return ctx.onRefreshButtonClick(); })("sdSaveCommand", function SdDataSheet_sdSaveCommand_HostBindingHandler() { return ctx.onSubmitButtonClick(); });
|
|
565
|
-
} }, inputs: { insertText: [1, "insertText"], deleteText: [1, "deleteText"], restoreText: [1, "restoreText"], deleteIcon: [1, "deleteIcon"], restoreIcon: [1, "restoreIcon"] }, decls: 6, vars: 6, consts: [["pageTopbarTpl", ""], ["contentTpl", ""], ["formCtrl", ""], ["
|
|
588
|
+
} }, inputs: { insertText: [1, "insertText"], deleteText: [1, "deleteText"], restoreText: [1, "restoreText"], deleteIcon: [1, "deleteIcon"], restoreIcon: [1, "restoreIcon"] }, decls: 6, vars: 6, consts: [["pageTopbarTpl", ""], ["contentTpl", ""], ["formCtrl", ""], ["headerTpl", ""], ["summaryTpl", ""], ["modalBottomTpl", ""], ["modalActionTpl", ""], [3, "busy", "busyMessage", "viewType", "initialized", "restricted"], [3, "theme"], [3, "click", "theme"], [3, "svg"], [3, "ngTemplateOutlet"], [1, "flex-column", "fill"], [1, "flex-row", "gap-sm", "p-default", "bdb", "bdb-theme-gray-lightest"], [1, "p-default"], [1, "flex-fill", "p-default", "pt-0", 3, "formSubmit"], [3, "currentPageChange", "sortsChange", "selectedItemsChange", "key", "items", "currentPage", "totalPageCount", "sorts", "selectMode", "autoSelect", "selectedItems", "trackByFn", "getItemCellStyleFn", "getItemSelectableFn"], [3, "fixed", "key"], [3, "key", "fixed", "header", "headerStyle", "tooltip", "width", "disableSorting", "disableResizing", "hidden", "collapse"], [3, "header", "key", "hidden"], [3, "click", "size", "theme"], [3, "formSubmit"], [1, "form-box-inline"], [3, "type", "theme"], [1, "flex-row", "gap-sm", "p-xs-default"], [3, "size", "theme"], [3, "click", "size", "theme", "disabled"], [3, "cell"], [1, "p-xs-sm", "tx-center"], [3, "click", "theme", "disabled"], [1, "flex-row"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "flex-row", 3, "click"], [1, "p-xs-sm"], [1, "flex-fill"], [1, "p-sm-default", "flex-row", "gap-sm"], [1, "flex-fill", "flex-row", "gap-sm"], ["title", "\uC0C8\uB85C\uACE0\uCE68(CTRL+ALT+L)", 1, "p-sm-default", 3, "click", "theme"]], template: function SdDataSheet_Template(rf, ctx) { if (rf & 1) {
|
|
566
589
|
i0.ɵɵelementStart(0, "sd-base-container", 7);
|
|
567
590
|
i0.ɵɵtemplate(1, SdDataSheet_ng_template_1_Template, 7, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, SdDataSheet_ng_template_3_Template, 13, 17, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
568
591
|
i0.ɵɵconditionalCreate(5, SdDataSheet_Conditional_5_Template, 4, 0);
|
|
@@ -575,6 +598,7 @@ export class SdDataSheet {
|
|
|
575
598
|
SdButton,
|
|
576
599
|
SdSheet,
|
|
577
600
|
SdSheetColumn,
|
|
601
|
+
SdSheetColumnCellTemplate,
|
|
578
602
|
NgTemplateOutlet,
|
|
579
603
|
SdBaseContainer,
|
|
580
604
|
SdAnchor,
|
|
@@ -593,6 +617,7 @@ export class SdDataSheet {
|
|
|
593
617
|
SdButton,
|
|
594
618
|
SdSheet,
|
|
595
619
|
SdSheetColumn,
|
|
620
|
+
SdSheetColumnCellTemplate,
|
|
596
621
|
NgTemplateOutlet,
|
|
597
622
|
SdBaseContainer,
|
|
598
623
|
FormatPipe,
|
|
@@ -762,7 +787,7 @@ export class SdDataSheet {
|
|
|
762
787
|
parent.itemPropInfo.isDeleted
|
|
763
788
|
) {
|
|
764
789
|
<sd-sheet-column [fixed]="true" [key]="parent.itemPropInfo.isDeleted!">
|
|
765
|
-
<ng-template
|
|
790
|
+
<ng-template [cell]="parent.items()" let-item="item">
|
|
766
791
|
<div class="p-xs-sm tx-center">
|
|
767
792
|
<sd-anchor
|
|
768
793
|
[theme]="'danger'"
|
|
@@ -792,12 +817,19 @@ export class SdDataSheet {
|
|
|
792
817
|
[key]="columnControl.key()"
|
|
793
818
|
[fixed]="columnControl.fixed()"
|
|
794
819
|
[header]="columnControl.header()"
|
|
820
|
+
[headerStyle]="columnControl.headerStyle()"
|
|
821
|
+
[tooltip]="columnControl.tooltip()"
|
|
795
822
|
[width]="columnControl.width()"
|
|
796
823
|
[disableSorting]="columnControl.disableSorting()"
|
|
797
824
|
[disableResizing]="columnControl.disableResizing()"
|
|
798
825
|
[hidden]="columnControl.hidden()"
|
|
799
826
|
[collapse]="columnControl.collapse()"
|
|
800
827
|
>
|
|
828
|
+
@if (columnControl.headerTplRef()) {
|
|
829
|
+
<ng-template #headerTpl>
|
|
830
|
+
<ng-template [ngTemplateOutlet]="columnControl.headerTplRef()!" />
|
|
831
|
+
</ng-template>
|
|
832
|
+
}
|
|
801
833
|
@if (columnControl.summaryTplRef()) {
|
|
802
834
|
<ng-template #summaryTpl>
|
|
803
835
|
<ng-template [ngTemplateOutlet]="columnControl.summaryTplRef()!" />
|
|
@@ -805,8 +837,8 @@ export class SdDataSheet {
|
|
|
805
837
|
}
|
|
806
838
|
|
|
807
839
|
<ng-template
|
|
808
|
-
|
|
809
|
-
let-item
|
|
840
|
+
[cell]="parent.items()"
|
|
841
|
+
let-item="item"
|
|
810
842
|
let-index="index"
|
|
811
843
|
let-depth="depth"
|
|
812
844
|
let-edit="edit"
|
|
@@ -859,7 +891,7 @@ export class SdDataSheet {
|
|
|
859
891
|
[key]="parent.itemPropInfo.lastModifiedAt!"
|
|
860
892
|
[hidden]="true"
|
|
861
893
|
>
|
|
862
|
-
<ng-template
|
|
894
|
+
<ng-template [cell]="parent.items()" let-item="item">
|
|
863
895
|
<div class="p-xs-sm tx-center">
|
|
864
896
|
{{
|
|
865
897
|
item[parent.itemPropInfo.lastModifiedAt!]
|
|
@@ -875,7 +907,7 @@ export class SdDataSheet {
|
|
|
875
907
|
[key]="parent.itemPropInfo.lastModifiedBy!"
|
|
876
908
|
[hidden]="true"
|
|
877
909
|
>
|
|
878
|
-
<ng-template
|
|
910
|
+
<ng-template [cell]="parent.items()" let-item="item">
|
|
879
911
|
<div class="p-xs-sm tx-center">
|
|
880
912
|
{{ item[parent.itemPropInfo.lastModifiedBy!] }}
|
|
881
913
|
</div>
|
|
@@ -925,4 +957,4 @@ export class SdDataSheet {
|
|
|
925
957
|
`,
|
|
926
958
|
}]
|
|
927
959
|
}], () => [], { formCtrl: [{ type: i0.ViewChild, args: ["formCtrl", { isSignal: true }] }], insertText: [{ type: i0.Input, args: [{ isSignal: true, alias: "insertText", required: false }] }], deleteText: [{ type: i0.Input, args: [{ isSignal: true, alias: "deleteText", required: false }] }], restoreText: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreText", required: false }] }], deleteIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "deleteIcon", required: false }] }], restoreIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreIcon", required: false }] }], pageTopbarTplRef: [{ type: i0.ContentChild, args: ["pageTopbarTpl", { ...{ read: TemplateRef }, isSignal: true }] }], prevTplRef: [{ type: i0.ContentChild, args: ["prevTpl", { ...{ read: TemplateRef }, isSignal: true }] }], filterTplRef: [{ type: i0.ContentChild, args: ["filterTpl", { ...{ read: TemplateRef }, isSignal: true }] }], beforeToolTplRef: [{ type: i0.ContentChild, args: ["beforeToolTpl", { ...{ read: TemplateRef }, isSignal: true }] }], toolTplRef: [{ type: i0.ContentChild, args: ["toolTpl", { ...{ read: TemplateRef }, isSignal: true }] }], modalBottomTplRef: [{ type: i0.ContentChild, args: ["modalBottomTpl", { ...{ read: TemplateRef }, isSignal: true }] }], columnControls: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdDataSheetColumn), { isSignal: true }] }], modalActionTplRef: [{ type: i0.ViewChild, args: ["modalActionTpl", { ...{ read: TemplateRef }, isSignal: true }] }] }); })();
|
|
928
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdDataSheet, { className: "SdDataSheet", filePath: "packages/angular/src/data/data-sheet/sd-data-sheet.ts", lineNumber:
|
|
960
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdDataSheet, { className: "SdDataSheet", filePath: "packages/angular/src/data/data-sheet/sd-data-sheet.ts", lineNumber: 388, forbidOrphanRendering: true }); })();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SdSheetCellContext } from "./sd-sheet-column";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SdSheetColumnCellTemplate<T> {
|
|
4
|
+
cell: import("@angular/core").InputSignal<T[]>;
|
|
5
|
+
static ngTemplateContextGuard<TContextItem>(_dir: SdSheetColumnCellTemplate<TContextItem>, _ctx: unknown): _ctx is SdSheetCellContext<TContextItem>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdSheetColumnCellTemplate<any>, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdSheetColumnCellTemplate<any>, "ng-template[cell]", never, { "cell": { "alias": "cell"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=sd-sheet-column-cell-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-sheet-column-cell-template.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/sd-sheet-column-cell-template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;;AAE5D,qBAIa,yBAAyB,CAAC,CAAC;IACtC,IAAI,2CAAyB;IAE7B,MAAM,CAAC,sBAAsB,CAAC,YAAY,EACxC,IAAI,EAAE,yBAAyB,CAAC,YAAY,CAAC,EAC7C,IAAI,EAAE,OAAO,GACZ,IAAI,IAAI,kBAAkB,CAAC,YAAY,CAAC;yCANhC,yBAAyB;2CAAzB,yBAAyB;CASrC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Directive, input } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class SdSheetColumnCellTemplate {
|
|
4
|
+
cell = input.required(...(ngDevMode ? [{ debugName: "cell" }] : /* istanbul ignore next */ []));
|
|
5
|
+
static ngTemplateContextGuard(_dir, _ctx) {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
static ɵfac = function SdSheetColumnCellTemplate_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdSheetColumnCellTemplate)(); };
|
|
9
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SdSheetColumnCellTemplate, selectors: [["ng-template", "cell", ""]], inputs: { cell: [1, "cell"] } });
|
|
10
|
+
}
|
|
11
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdSheetColumnCellTemplate, [{
|
|
12
|
+
type: Directive,
|
|
13
|
+
args: [{
|
|
14
|
+
selector: "ng-template[cell]",
|
|
15
|
+
standalone: true,
|
|
16
|
+
}]
|
|
17
|
+
}], null, { cell: [{ type: i0.Input, args: [{ isSignal: true, alias: "cell", required: true }] }] }); })();
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export interface SdSheetCellContext {
|
|
4
|
-
$implicit:
|
|
5
|
-
item:
|
|
3
|
+
export interface SdSheetCellContext<T = unknown> {
|
|
4
|
+
$implicit: T;
|
|
5
|
+
item: T;
|
|
6
6
|
index: number;
|
|
7
7
|
depth: number;
|
|
8
8
|
edit: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare class SdSheetColumn {
|
|
10
|
+
export declare class SdSheetColumn<T = unknown> {
|
|
11
11
|
key: import("@angular/core").InputSignal<string>;
|
|
12
12
|
header: import("@angular/core").InputSignal<string | string[]>;
|
|
13
|
+
headerStyle: import("@angular/core").InputSignal<string | undefined>;
|
|
14
|
+
tooltip: import("@angular/core").InputSignal<string | undefined>;
|
|
13
15
|
width: import("@angular/core").InputSignal<string | undefined>;
|
|
14
16
|
fixed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
17
|
hidden: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -17,9 +19,10 @@ export declare class SdSheetColumn {
|
|
|
17
19
|
disableSorting: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
20
|
disableResizing: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
19
21
|
ordering: import("@angular/core").InputSignal<number>;
|
|
20
|
-
cellTplRef: import("@angular/core").Signal<TemplateRef<SdSheetCellContext
|
|
22
|
+
cellTplRef: import("@angular/core").Signal<TemplateRef<SdSheetCellContext<T>>>;
|
|
23
|
+
headerTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
21
24
|
summaryTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdSheetColumn
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SdSheetColumn
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdSheetColumn<any>, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdSheetColumn<any>, "sd-sheet-column", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "fixed": { "alias": "fixed"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "collapse": { "alias": "collapse"; "required": false; "isSignal": true; }; "disableSorting": { "alias": "disableSorting"; "required": false; "isSignal": true; }; "disableResizing": { "alias": "disableResizing"; "required": false; "isSignal": true; }; "ordering": { "alias": "ordering"; "required": false; "isSignal": true; }; }, {}, ["cellTplRef", "headerTplRef", "summaryTplRef"], never, true, never>;
|
|
24
27
|
}
|
|
25
28
|
//# sourceMappingURL=sd-sheet-column.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-sheet-column.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/sd-sheet-column.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,WAAW,EACZ,MAAM,eAAe,CAAC;;
|
|
1
|
+
{"version":3,"file":"sd-sheet-column.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/sd-sheet-column.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,WAAW,EACZ,MAAM,eAAe,CAAC;;AAGvB,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,SAAS,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,CAAC;IACR,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACf;AAED,qBAIa,aAAa,CAAC,CAAC,GAAG,OAAO;IACpC,GAAG,8CAA4B;IAC/B,MAAM,yDAAgC;IACtC,WAAW,0DAAmB;IAC9B,OAAO,0DAAmB;IAC1B,KAAK,0DAAmB;IACxB,KAAK,qEAAiD;IACtD,MAAM,qEAAiD;IACvD,QAAQ,qEAAiD;IACzD,cAAc,qEAAiD;IAC/D,eAAe,qEAAiD;IAChE,QAAQ,8CAAY;IAEpB,UAAU,qEAGR;IACF,YAAY,gEAAgD;IAC5D,aAAa,gEAAiD;yCAlBnD,aAAa;2CAAb,aAAa;CAmBzB"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { booleanAttribute, contentChild, Directive, input, TemplateRef, } from "@angular/core";
|
|
2
|
+
import { SdSheetColumnCellTemplate } from "./sd-sheet-column-cell-template";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
const _c0 = ["
|
|
4
|
+
const _c0 = ["headerTpl"];
|
|
4
5
|
const _c1 = ["summaryTpl"];
|
|
5
6
|
export class SdSheetColumn {
|
|
6
7
|
key = input.required(...(ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []));
|
|
7
8
|
header = input("", ...(ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []));
|
|
9
|
+
headerStyle = input(...(ngDevMode ? [undefined, { debugName: "headerStyle" }] : /* istanbul ignore next */ []));
|
|
10
|
+
tooltip = input(...(ngDevMode ? [undefined, { debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
8
11
|
width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
|
|
9
12
|
fixed = input(false, { ...(ngDevMode ? { debugName: "fixed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
10
13
|
hidden = input(false, { ...(ngDevMode ? { debugName: "hidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
@@ -12,14 +15,15 @@ export class SdSheetColumn {
|
|
|
12
15
|
disableSorting = input(false, { ...(ngDevMode ? { debugName: "disableSorting" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
13
16
|
disableResizing = input(false, { ...(ngDevMode ? { debugName: "disableResizing" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
14
17
|
ordering = input(0, ...(ngDevMode ? [{ debugName: "ordering" }] : /* istanbul ignore next */ []));
|
|
15
|
-
cellTplRef = contentChild(
|
|
18
|
+
cellTplRef = contentChild.required(SdSheetColumnCellTemplate, { read: TemplateRef });
|
|
19
|
+
headerTplRef = contentChild("headerTpl", ...(ngDevMode ? [{ debugName: "headerTplRef" }] : /* istanbul ignore next */ []));
|
|
16
20
|
summaryTplRef = contentChild("summaryTpl", ...(ngDevMode ? [{ debugName: "summaryTplRef" }] : /* istanbul ignore next */ []));
|
|
17
21
|
static ɵfac = function SdSheetColumn_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdSheetColumn)(); };
|
|
18
22
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SdSheetColumn, selectors: [["sd-sheet-column"]], contentQueries: function SdSheetColumn_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
19
|
-
i0.ɵɵcontentQuerySignal(dirIndex, ctx.cellTplRef, _c0, 5)(dirIndex, ctx.summaryTplRef, _c1, 5);
|
|
23
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.cellTplRef, SdSheetColumnCellTemplate, 5, TemplateRef)(dirIndex, ctx.headerTplRef, _c0, 5)(dirIndex, ctx.summaryTplRef, _c1, 5);
|
|
20
24
|
} if (rf & 2) {
|
|
21
|
-
i0.ɵɵqueryAdvance(
|
|
22
|
-
} }, inputs: { key: [1, "key"], header: [1, "header"], width: [1, "width"], fixed: [1, "fixed"], hidden: [1, "hidden"], collapse: [1, "collapse"], disableSorting: [1, "disableSorting"], disableResizing: [1, "disableResizing"], ordering: [1, "ordering"] } });
|
|
25
|
+
i0.ɵɵqueryAdvance(3);
|
|
26
|
+
} }, inputs: { key: [1, "key"], header: [1, "header"], headerStyle: [1, "headerStyle"], tooltip: [1, "tooltip"], width: [1, "width"], fixed: [1, "fixed"], hidden: [1, "hidden"], collapse: [1, "collapse"], disableSorting: [1, "disableSorting"], disableResizing: [1, "disableResizing"], ordering: [1, "ordering"] } });
|
|
23
27
|
}
|
|
24
28
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdSheetColumn, [{
|
|
25
29
|
type: Directive,
|
|
@@ -27,4 +31,4 @@ export class SdSheetColumn {
|
|
|
27
31
|
selector: "sd-sheet-column",
|
|
28
32
|
standalone: true,
|
|
29
33
|
}]
|
|
30
|
-
}], null, { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], fixed: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixed", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], collapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapse", required: false }] }], disableSorting: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableSorting", required: false }] }], disableResizing: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableResizing", required: false }] }], ordering: [{ type: i0.Input, args: [{ isSignal: true, alias: "ordering", required: false }] }], cellTplRef: [{ type: i0.ContentChild, args: ["
|
|
34
|
+
}], null, { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], headerStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerStyle", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], fixed: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixed", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], collapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapse", required: false }] }], disableSorting: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableSorting", required: false }] }], disableResizing: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableResizing", required: false }] }], ordering: [{ type: i0.Input, args: [{ isSignal: true, alias: "ordering", required: false }] }], cellTplRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdSheetColumnCellTemplate), { ...{ read: TemplateRef }, isSignal: true }] }], headerTplRef: [{ type: i0.ContentChild, args: ["headerTpl", { isSignal: true }] }], summaryTplRef: [{ type: i0.ContentChild, args: ["summaryTpl", { isSignal: true }] }] }); })();
|
|
@@ -13,7 +13,7 @@ interface ConfigItem {
|
|
|
13
13
|
export declare class SdSheetConfigModal implements SdModalContentDef<SdSheetConfig | undefined> {
|
|
14
14
|
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
15
15
|
close: import("@angular/core").OutputEmitterRef<SdSheetConfig | undefined>;
|
|
16
|
-
controls: import("@angular/core").InputSignal<readonly SdSheetColumn[]>;
|
|
16
|
+
controls: import("@angular/core").InputSignal<readonly SdSheetColumn<unknown>[]>;
|
|
17
17
|
config: import("@angular/core").InputSignal<SdSheetConfig | undefined>;
|
|
18
18
|
_icons: {
|
|
19
19
|
tablerArrowUp: string;
|
|
@@ -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,CA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