@simplysm/angular 14.0.41 → 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/modal/sd-modal.d.ts +2 -1
- package/dist/core/modal/sd-modal.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.js +6 -4
- 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/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 +3 -2
- package/dist/data/sheet/sd-sheet.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet.js +59 -34
- 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/package.json +6 -6
- package/src/controls/collapse/sd-collapse-icon.ts +2 -3
- package/src/core/modal/sd-modal.provider.ts +1 -0
- package/src/core/modal/sd-modal.ts +2 -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 +12 -1
- 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
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class SdCollapseIcon {
|
|
3
|
+
icon: import("@angular/core").InputSignal<string>;
|
|
3
4
|
open: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
4
5
|
openRotate: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
5
|
-
icons: {
|
|
6
|
-
tablerChevronRight: string;
|
|
7
|
-
};
|
|
8
6
|
transformStyle: import("@angular/core").Signal<string>;
|
|
9
7
|
transitionStyle: import("@angular/core").Signal<"transform 0.1s ease-out" | "transform 0.1s ease-in">;
|
|
10
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdCollapseIcon, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdCollapseIcon, "sd-collapse-icon", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "openRotate": { "alias": "openRotate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdCollapseIcon, "sd-collapse-icon", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "openRotate": { "alias": "openRotate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
10
|
}
|
|
13
11
|
//# sourceMappingURL=sd-collapse-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-collapse-icon.d.ts","sourceRoot":"","sources":["../../../src/controls/collapse/sd-collapse-icon.ts"],"names":[],"mappings":";AAYA,qBAyBa,cAAc;IACzB,IAAI,qEAAiD;IACrD,UAAU,oEAA6C;IAEvD,
|
|
1
|
+
{"version":3,"file":"sd-collapse-icon.d.ts","sourceRoot":"","sources":["../../../src/controls/collapse/sd-collapse-icon.ts"],"names":[],"mappings":";AAYA,qBAyBa,cAAc;IACzB,IAAI,8CAA6B;IACjC,IAAI,qEAAiD;IACrD,UAAU,oEAA6C;IAEvD,cAAc,yCAEX;IAEH,eAAe,uFAEZ;yCAXQ,cAAc;2CAAd,cAAc;CAY1B"}
|
|
@@ -3,9 +3,9 @@ import { NgIcon } from "@ng-icons/core";
|
|
|
3
3
|
import { tablerChevronRight } from "@ng-icons/tabler-icons";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export class SdCollapseIcon {
|
|
6
|
+
icon = input(tablerChevronRight, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
6
7
|
open = input(false, { ...(ngDevMode ? { debugName: "open" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
7
8
|
openRotate = input(90, { ...(ngDevMode ? { debugName: "openRotate" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
8
|
-
icons = { tablerChevronRight };
|
|
9
9
|
transformStyle = computed(() => {
|
|
10
10
|
return this.open() ? `rotate(${this.openRotate()}deg)` : "";
|
|
11
11
|
}, ...(ngDevMode ? [{ debugName: "transformStyle" }] : /* istanbul ignore next */ []));
|
|
@@ -15,19 +15,19 @@ export class SdCollapseIcon {
|
|
|
15
15
|
static ɵfac = function SdCollapseIcon_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdCollapseIcon)(); };
|
|
16
16
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdCollapseIcon, selectors: [["sd-collapse-icon"]], hostVars: 4, hostBindings: function SdCollapseIcon_HostBindings(rf, ctx) { if (rf & 2) {
|
|
17
17
|
i0.ɵɵstyleProp("transform", ctx.transformStyle())("transition", ctx.transitionStyle());
|
|
18
|
-
} }, inputs: { open: [1, "open"], openRotate: [1, "openRotate"] }, decls: 1, vars: 1, consts: [[3, "svg"]], template: function SdCollapseIcon_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
} }, inputs: { icon: [1, "icon"], open: [1, "open"], openRotate: [1, "openRotate"] }, decls: 1, vars: 1, consts: [[3, "svg"]], template: function SdCollapseIcon_Template(rf, ctx) { if (rf & 1) {
|
|
19
19
|
i0.ɵɵelement(0, "ng-icon", 0);
|
|
20
20
|
} if (rf & 2) {
|
|
21
|
-
i0.ɵɵproperty("svg", ctx.
|
|
21
|
+
i0.ɵɵproperty("svg", ctx.icon());
|
|
22
22
|
} }, dependencies: [NgIcon], styles: ["sd-collapse-icon {\n display: inline-block;\n}\nsd-collapse-icon > ng-icon {\n display: block;\n}"], encapsulation: 2, changeDetection: 0 });
|
|
23
23
|
}
|
|
24
24
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdCollapseIcon, [{
|
|
25
25
|
type: Component,
|
|
26
26
|
args: [{ selector: "sd-collapse-icon", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [NgIcon], template: `
|
|
27
|
-
<ng-icon [svg]="
|
|
27
|
+
<ng-icon [svg]="icon()" />
|
|
28
28
|
`, host: {
|
|
29
29
|
"[style.transform]": "transformStyle()",
|
|
30
30
|
"[style.transition]": "transitionStyle()",
|
|
31
31
|
}, styles: ["sd-collapse-icon {\n display: inline-block;\n}\nsd-collapse-icon > ng-icon {\n display: block;\n}"] }]
|
|
32
|
-
}], null, { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], openRotate: [{ type: i0.Input, args: [{ isSignal: true, alias: "openRotate", required: false }] }] }); })();
|
|
32
|
+
}], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], openRotate: [{ type: i0.Input, args: [{ isSignal: true, alias: "openRotate", required: false }] }] }); })();
|
|
33
33
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdCollapseIcon, { className: "SdCollapseIcon", filePath: "packages/angular/src/controls/collapse/sd-collapse-icon.ts", lineNumber: 38, forbidOrphanRendering: true }); })();
|
|
@@ -13,6 +13,7 @@ export declare class SdModal {
|
|
|
13
13
|
title: import("@angular/core").InputSignal<string>;
|
|
14
14
|
hideHeader: import("@angular/core").InputSignal<boolean>;
|
|
15
15
|
hideCloseButton: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
headerStyle: import("@angular/core").InputSignal<string | undefined>;
|
|
16
17
|
useCloseByBackdrop: import("@angular/core").InputSignal<boolean>;
|
|
17
18
|
useCloseByEscapeKey: import("@angular/core").InputSignal<boolean>;
|
|
18
19
|
float: import("@angular/core").InputSignal<boolean>;
|
|
@@ -40,6 +41,6 @@ export declare class SdModal {
|
|
|
40
41
|
private _saveConfig;
|
|
41
42
|
private _restoreConfig;
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdModal, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdModal, "sd-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; "hideCloseButton": { "alias": "hideCloseButton"; "required": false; "isSignal": true; }; "useCloseByBackdrop": { "alias": "useCloseByBackdrop"; "required": false; "isSignal": true; }; "useCloseByEscapeKey": { "alias": "useCloseByEscapeKey"; "required": false; "isSignal": true; }; "float": { "alias": "float"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "movable": { "alias": "movable"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "minHeightPx": { "alias": "minHeightPx"; "required": false; "isSignal": true; }; "minWidthPx": { "alias": "minWidthPx"; "required": false; "isSignal": true; }; "heightPx": { "alias": "heightPx"; "required": false; "isSignal": true; }; "widthPx": { "alias": "widthPx"; "required": false; "isSignal": true; }; "actionTplRef": { "alias": "actionTplRef"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closeRequest": "closeRequest"; }, never, ["*"], true, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdModal, "sd-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; "hideCloseButton": { "alias": "hideCloseButton"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "useCloseByBackdrop": { "alias": "useCloseByBackdrop"; "required": false; "isSignal": true; }; "useCloseByEscapeKey": { "alias": "useCloseByEscapeKey"; "required": false; "isSignal": true; }; "float": { "alias": "float"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "movable": { "alias": "movable"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "minHeightPx": { "alias": "minHeightPx"; "required": false; "isSignal": true; }; "minWidthPx": { "alias": "minWidthPx"; "required": false; "isSignal": true; }; "heightPx": { "alias": "heightPx"; "required": false; "isSignal": true; }; "widthPx": { "alias": "widthPx"; "required": false; "isSignal": true; }; "actionTplRef": { "alias": "actionTplRef"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closeRequest": "closeRequest"; }, never, ["*"], true, never>;
|
|
44
45
|
}
|
|
45
46
|
//# sourceMappingURL=sd-modal.d.ts.map
|
|
@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AQrB,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,YAAY;YAIN,WAAW;YAgBX,cAAc;yCAtJjB,OAAO;2CAAP,OAAO;CAsKnB"}
|
|
@@ -41,6 +41,7 @@ function SdModal_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
41
41
|
i0.ɵɵelementEnd();
|
|
42
42
|
} if (rf & 2) {
|
|
43
43
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
44
|
+
i0.ɵɵstyleMap(ctx_r1.headerStyle());
|
|
44
45
|
i0.ɵɵadvance(2);
|
|
45
46
|
i0.ɵɵtextInterpolate(ctx_r1.title());
|
|
46
47
|
i0.ɵɵadvance();
|
|
@@ -87,6 +88,7 @@ export class SdModal {
|
|
|
87
88
|
title = input("", ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
88
89
|
hideHeader = input(false, ...(ngDevMode ? [{ debugName: "hideHeader" }] : /* istanbul ignore next */ []));
|
|
89
90
|
hideCloseButton = input(false, ...(ngDevMode ? [{ debugName: "hideCloseButton" }] : /* istanbul ignore next */ []));
|
|
91
|
+
headerStyle = input(undefined, ...(ngDevMode ? [{ debugName: "headerStyle" }] : /* istanbul ignore next */ []));
|
|
90
92
|
useCloseByBackdrop = input(true, ...(ngDevMode ? [{ debugName: "useCloseByBackdrop" }] : /* istanbul ignore next */ []));
|
|
91
93
|
useCloseByEscapeKey = input(true, ...(ngDevMode ? [{ debugName: "useCloseByEscapeKey" }] : /* istanbul ignore next */ []));
|
|
92
94
|
float = input(false, ...(ngDevMode ? [{ debugName: "float" }] : /* istanbul ignore next */ []));
|
|
@@ -238,14 +240,14 @@ export class SdModal {
|
|
|
238
240
|
static ɵfac = function SdModal_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdModal)(); };
|
|
239
241
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdModal, selectors: [["sd-modal"]], hostVars: 4, hostBindings: function SdModal_HostBindings(rf, ctx) { if (rf & 2) {
|
|
240
242
|
i0.ɵɵattribute("data-sd-open", ctx.open() || undefined)("data-sd-float", ctx.float() || undefined)("data-sd-fill", ctx.fill() || undefined)("data-sd-position", ctx.position() || undefined);
|
|
241
|
-
} }, inputs: { open: [1, "open"], key: [1, "key"], title: [1, "title"], hideHeader: [1, "hideHeader"], hideCloseButton: [1, "hideCloseButton"], useCloseByBackdrop: [1, "useCloseByBackdrop"], useCloseByEscapeKey: [1, "useCloseByEscapeKey"], float: [1, "float"], fill: [1, "fill"], resizable: [1, "resizable"], movable: [1, "movable"], position: [1, "position"], minHeightPx: [1, "minHeightPx"], minWidthPx: [1, "minWidthPx"], heightPx: [1, "heightPx"], widthPx: [1, "widthPx"], actionTplRef: [1, "actionTplRef"] }, outputs: { open: "openChange", closeRequest: "closeRequest" }, ngContentSelectors: _c0, decls: 6, vars: 2, consts: [[1, "_backdrop", 3, "mousedown"], ["tabindex", "-1", 1, "_dialog", 3, "keydown", "focus"], [1, "_header"], [1, "_content"], [1, "_header", 3, "mousedown"], [1, "_title"], [1, "_close-btn"], [4, "ngTemplateOutlet"], [1, "_close-btn", 3, "click"], [3, "svg"], ["data-resize-dir", "top", 1, "_resize-handle", "_resize-top", 3, "mousedown"], ["data-resize-dir", "bottom", 1, "_resize-handle", "_resize-bottom", 3, "mousedown"], ["data-resize-dir", "left", 1, "_resize-handle", "_resize-left", 3, "mousedown"], ["data-resize-dir", "right", 1, "_resize-handle", "_resize-right", 3, "mousedown"], ["data-resize-dir", "top-left", 1, "_resize-handle", "_resize-top-left", 3, "mousedown"], ["data-resize-dir", "top-right", 1, "_resize-handle", "_resize-top-right", 3, "mousedown"], ["data-resize-dir", "bottom-left", 1, "_resize-handle", "_resize-bottom-left", 3, "mousedown"], ["data-resize-dir", "bottom-right", 1, "_resize-handle", "_resize-bottom-right", 3, "mousedown"]], template: function SdModal_Template(rf, ctx) { if (rf & 1) {
|
|
243
|
+
} }, inputs: { open: [1, "open"], key: [1, "key"], title: [1, "title"], hideHeader: [1, "hideHeader"], hideCloseButton: [1, "hideCloseButton"], headerStyle: [1, "headerStyle"], useCloseByBackdrop: [1, "useCloseByBackdrop"], useCloseByEscapeKey: [1, "useCloseByEscapeKey"], float: [1, "float"], fill: [1, "fill"], resizable: [1, "resizable"], movable: [1, "movable"], position: [1, "position"], minHeightPx: [1, "minHeightPx"], minWidthPx: [1, "minWidthPx"], heightPx: [1, "heightPx"], widthPx: [1, "widthPx"], actionTplRef: [1, "actionTplRef"] }, outputs: { open: "openChange", closeRequest: "closeRequest" }, ngContentSelectors: _c0, decls: 6, vars: 2, consts: [[1, "_backdrop", 3, "mousedown"], ["tabindex", "-1", 1, "_dialog", 3, "keydown", "focus"], [1, "_header", 3, "style"], [1, "_content"], [1, "_header", 3, "mousedown"], [1, "_title"], [1, "_close-btn"], [4, "ngTemplateOutlet"], [1, "_close-btn", 3, "click"], [3, "svg"], ["data-resize-dir", "top", 1, "_resize-handle", "_resize-top", 3, "mousedown"], ["data-resize-dir", "bottom", 1, "_resize-handle", "_resize-bottom", 3, "mousedown"], ["data-resize-dir", "left", 1, "_resize-handle", "_resize-left", 3, "mousedown"], ["data-resize-dir", "right", 1, "_resize-handle", "_resize-right", 3, "mousedown"], ["data-resize-dir", "top-left", 1, "_resize-handle", "_resize-top-left", 3, "mousedown"], ["data-resize-dir", "top-right", 1, "_resize-handle", "_resize-top-right", 3, "mousedown"], ["data-resize-dir", "bottom-left", 1, "_resize-handle", "_resize-bottom-left", 3, "mousedown"], ["data-resize-dir", "bottom-right", 1, "_resize-handle", "_resize-bottom-right", 3, "mousedown"]], template: function SdModal_Template(rf, ctx) { if (rf & 1) {
|
|
242
244
|
i0.ɵɵprojectionDef();
|
|
243
245
|
i0.ɵɵelementStart(0, "div", 0);
|
|
244
246
|
i0.ɵɵlistener("mousedown", function SdModal_Template_div_mousedown_0_listener() { return ctx.onBackdropClick(); });
|
|
245
247
|
i0.ɵɵelementEnd();
|
|
246
248
|
i0.ɵɵelementStart(1, "div", 1);
|
|
247
249
|
i0.ɵɵlistener("keydown", function SdModal_Template_div_keydown_1_listener($event) { return ctx.onDialogKeydown($event); })("focus", function SdModal_Template_div_focus_1_listener() { return ctx.onDialogFocus(); });
|
|
248
|
-
i0.ɵɵconditionalCreate(2, SdModal_Conditional_2_Template, 5,
|
|
250
|
+
i0.ɵɵconditionalCreate(2, SdModal_Conditional_2_Template, 5, 5, "div", 2);
|
|
249
251
|
i0.ɵɵelementStart(3, "div", 3);
|
|
250
252
|
i0.ɵɵprojection(4);
|
|
251
253
|
i0.ɵɵelementEnd();
|
|
@@ -271,7 +273,7 @@ export class SdModal {
|
|
|
271
273
|
(keydown)="onDialogKeydown($event)"
|
|
272
274
|
(focus)="onDialogFocus()">
|
|
273
275
|
@if (!hideHeader()) {
|
|
274
|
-
<div class="_header" (mousedown)="onHeaderMouseDown($event)">
|
|
276
|
+
<div class="_header" (mousedown)="onHeaderMouseDown($event)" [style]="headerStyle()">
|
|
275
277
|
<span class="_title">{{ title() }}</span>
|
|
276
278
|
@if (actionTplRef()) {
|
|
277
279
|
<ng-container *ngTemplateOutlet="actionTplRef()!" />
|
|
@@ -294,5 +296,5 @@ export class SdModal {
|
|
|
294
296
|
}
|
|
295
297
|
</div>
|
|
296
298
|
`, styles: ["sd-modal {\n display: block;\n position: fixed;\n z-index: var(--z-index-modal);\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding-top: calc(var(--topbar-height) + var(--gap-sm));\n opacity: 0;\n transition: opacity var(--animation-duration) ease-in-out;\n pointer-events: none;\n}\nsd-modal > ._backdrop {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: var(--trans-default);\n}\nsd-modal > ._dialog {\n position: relative;\n display: flex;\n flex-direction: column;\n margin: 0 auto;\n width: fit-content;\n min-width: 200px;\n background: var(--control-color);\n overflow: hidden;\n box-shadow: 0 calc(16 * var(--elevation-size)) calc(16 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n border-radius: var(--border-radius-default);\n transform: translateY(-25px);\n transition: transform var(--animation-duration) ease-in-out;\n}\nsd-modal > ._dialog:focus {\n outline: none;\n}\nsd-modal > ._dialog > ._header {\n display: flex;\n align-items: center;\n user-select: none;\n border-bottom: 1px solid var(--theme-gray-lightest);\n}\nsd-modal > ._dialog > ._header > ._title {\n flex: 1;\n padding: var(--gap-sm) var(--gap-default);\n}\nsd-modal > ._dialog > ._header > ._close-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--gap-sm) var(--gap-default);\n border: none;\n background: transparent;\n cursor: pointer;\n font-size: inherit;\n color: inherit;\n}\nsd-modal > ._dialog > ._header > ._close-btn:hover {\n background: var(--trans-lightest);\n}\nsd-modal > ._dialog > ._content {\n flex: 1;\n overflow: auto;\n}\nsd-modal > ._dialog > ._resize-handle {\n position: absolute;\n}\nsd-modal > ._dialog > ._resize-handle._resize-left {\n top: 0;\n left: 0;\n width: var(--gap-sm);\n height: 100%;\n cursor: ew-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-right {\n top: 0;\n right: 0;\n width: var(--gap-sm);\n height: 100%;\n cursor: ew-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-top {\n top: 0;\n left: 0;\n width: 100%;\n height: var(--gap-sm);\n cursor: ns-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-top-right {\n right: 0;\n top: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n z-index: 1;\n cursor: nesw-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-top-left {\n left: 0;\n top: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n cursor: nwse-resize;\n z-index: 1;\n}\nsd-modal > ._dialog > ._resize-handle._resize-bottom {\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--gap-sm);\n cursor: ns-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-bottom-right {\n right: 0;\n bottom: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n z-index: 1;\n cursor: nwse-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-bottom-left {\n left: 0;\n bottom: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n cursor: nesw-resize;\n z-index: 1;\n}\nsd-modal[data-sd-open][data-sd-init] {\n opacity: 1;\n pointer-events: auto;\n}\nsd-modal[data-sd-open][data-sd-init] > ._dialog {\n transform: none;\n}\nsd-modal[data-sd-float] {\n pointer-events: none;\n}\nsd-modal[data-sd-float] > ._backdrop {\n display: none;\n}\nsd-modal[data-sd-float] > ._dialog {\n pointer-events: auto;\n opacity: 0;\n box-shadow: 0 calc(4 * var(--elevation-size)) calc(4 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n border: 1px solid var(--theme-gray-lighter);\n}\nsd-modal[data-sd-float] > ._dialog:focus {\n box-shadow: 0 calc(16 * var(--elevation-size)) calc(16 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n}\nsd-modal[data-sd-float][data-sd-open][data-sd-init] {\n pointer-events: none;\n}\nsd-modal[data-sd-float][data-sd-open][data-sd-init] > ._dialog {\n pointer-events: auto;\n opacity: 1;\n}\nsd-modal[data-sd-position=bottom-right] > ._dialog {\n position: absolute;\n right: calc(var(--gap-xxl) * 2);\n bottom: var(--gap-xxl);\n}\nsd-modal[data-sd-position=top-right] > ._dialog {\n position: absolute;\n right: var(--gap-xxl);\n top: var(--gap-xxl);\n}\nsd-modal[data-sd-fill] {\n padding-top: 0;\n}\nsd-modal[data-sd-fill] > ._dialog {\n width: 100%;\n height: 100%;\n border: none;\n border-radius: 0;\n}\nsd-modal[data-sd-fill] > ._dialog > ._header {\n background: transparent;\n color: var(--text-trans-lighter);\n}"] }]
|
|
297
|
-
}], () => [], { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], hideHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeader", required: false }] }], hideCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideCloseButton", required: false }] }], useCloseByBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "useCloseByBackdrop", required: false }] }], useCloseByEscapeKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "useCloseByEscapeKey", required: false }] }], float: [{ type: i0.Input, args: [{ isSignal: true, alias: "float", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], movable: [{ type: i0.Input, args: [{ isSignal: true, alias: "movable", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], minHeightPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "minHeightPx", required: false }] }], minWidthPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidthPx", required: false }] }], heightPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "heightPx", required: false }] }], widthPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthPx", required: false }] }], actionTplRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTplRef", required: false }] }], closeRequest: [{ type: i0.Output, args: ["closeRequest"] }] }); })();
|
|
299
|
+
}], () => [], { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], hideHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeader", required: false }] }], hideCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideCloseButton", required: false }] }], headerStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerStyle", required: false }] }], useCloseByBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "useCloseByBackdrop", required: false }] }], useCloseByEscapeKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "useCloseByEscapeKey", required: false }] }], float: [{ type: i0.Input, args: [{ isSignal: true, alias: "float", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], movable: [{ type: i0.Input, args: [{ isSignal: true, alias: "movable", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], minHeightPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "minHeightPx", required: false }] }], minWidthPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidthPx", required: false }] }], heightPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "heightPx", required: false }] }], widthPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthPx", required: false }] }], actionTplRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTplRef", required: false }] }], closeRequest: [{ type: i0.Output, args: ["closeRequest"] }] }); })();
|
|
298
300
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdModal, { className: "SdModal", filePath: "packages/angular/src/core/modal/sd-modal.ts", lineNumber: 286, forbidOrphanRendering: true }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-modal.provider.d.ts","sourceRoot":"","sources":["../../../src/core/modal/sd-modal.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,gBAAgB,EACrB,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,IAAI,EACV,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EACV,qBAAqB,EACrB,YAAY,EACb,MAAM,4BAA4B,CAAC;AAGpC,OAAO,wBAAwB,CAAC;;AAEhC;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IACl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UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;GAEG;AACH,qBACa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;IAClD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA+B;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;IAE9C,UAAU,iDAAa;IAEjB,SAAS,CAAC,CAAC,SAAS,iBAAiB,CAAC,GAAG,CAAC,EAC9C,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IA0JzD,OAAO,CAAC,aAAa;yCApKV,eAAe;6CAAf,eAAe;CA+K3B"}
|
|
@@ -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
|