@simplysm/angular 14.0.55 → 14.0.57
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/core/selection/useSelectionManager.d.ts +1 -1
- package/dist/core/selection/useSelectionManager.d.ts.map +1 -1
- package/dist/data/crud/sd-base-container.d.ts +3 -2
- package/dist/data/crud/sd-base-container.d.ts.map +1 -1
- package/dist/data/crud/sd-base-container.js +24 -13
- package/dist/data/crud/sd-crud-detail.d.ts +2 -1
- package/dist/data/crud/sd-crud-detail.d.ts.map +1 -1
- package/dist/data/crud/sd-crud-detail.js +87 -86
- package/dist/data/crud/sd-crud-list.d.ts +1 -1
- package/dist/data/crud/sd-crud-list.d.ts.map +1 -1
- package/dist/data/crud/sd-crud-list.js +154 -147
- package/dist/data/sheet/injectSheetSelectRowIndicator.d.ts +1 -1
- package/dist/data/sheet/injectSheetSelectRowIndicator.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet.d.ts +5 -5
- package/dist/data/sheet/sd-sheet.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet.js +2 -2
- package/package.json +5 -5
- package/src/core/selection/useSelectionManager.ts +2 -2
- package/src/data/crud/sd-base-container.ts +5 -2
- package/src/data/crud/sd-crud-detail.ts +13 -13
- package/src/data/crud/sd-crud-list.ts +53 -52
- package/src/data/sheet/injectSheetSelectRowIndicator.ts +1 -1
- package/src/data/sheet/sd-sheet.ts +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, inject, input, model, output,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, inject, input, model, output, viewChild, ViewEncapsulation, } from "@angular/core";
|
|
2
2
|
import { SdActivatedModalProvider } from "../../core/modal/sd-activated-modal.provider";
|
|
3
3
|
import { SdAnchor } from "../../controls/button/sd-anchor";
|
|
4
4
|
import { SdButton } from "../../controls/button/sd-button";
|
|
@@ -20,9 +20,9 @@ const _c3 = ["bottomCommandTpl"];
|
|
|
20
20
|
const _c4 = ["formCtrl"];
|
|
21
21
|
function SdCrudList_Conditional_1_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
22
22
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
23
|
-
i0.ɵɵelementStart(0, "sd-button",
|
|
24
|
-
i0.ɵɵlistener("click", function SdCrudList_Conditional_1_ng_template_0_Conditional_0_Template_sd_button_click_0_listener() { let
|
|
25
|
-
i0.ɵɵelement(1, "ng-icon",
|
|
23
|
+
i0.ɵɵelementStart(0, "sd-button", 10);
|
|
24
|
+
i0.ɵɵlistener("click", function SdCrudList_Conditional_1_ng_template_0_Conditional_0_Template_sd_button_click_0_listener() { let tmp_7_0; i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView((tmp_7_0 = ctx_r2.formCtrl()) == null ? null : tmp_7_0.requestSubmit()); });
|
|
25
|
+
i0.ɵɵelement(1, "ng-icon", 11);
|
|
26
26
|
i0.ɵɵtext(2, " \uC800\uC7A5 ");
|
|
27
27
|
i0.ɵɵelementStart(3, "small");
|
|
28
28
|
i0.ɵɵtext(4, "(CTRL+S)");
|
|
@@ -35,8 +35,8 @@ function SdCrudList_Conditional_1_ng_template_0_Conditional_0_Template(rf, ctx)
|
|
|
35
35
|
} }
|
|
36
36
|
function SdCrudList_Conditional_1_ng_template_0_ng_template_1_Template(rf, ctx) { }
|
|
37
37
|
function SdCrudList_Conditional_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
-
i0.ɵɵconditionalCreate(0, SdCrudList_Conditional_1_ng_template_0_Conditional_0_Template, 5, 2, "sd-button",
|
|
39
|
-
i0.ɵɵtemplate(1, SdCrudList_Conditional_1_ng_template_0_ng_template_1_Template, 0, 0, "ng-template",
|
|
38
|
+
i0.ɵɵconditionalCreate(0, SdCrudList_Conditional_1_ng_template_0_Conditional_0_Template, 5, 2, "sd-button", 8);
|
|
39
|
+
i0.ɵɵtemplate(1, SdCrudList_Conditional_1_ng_template_0_ng_template_1_Template, 0, 0, "ng-template", 9);
|
|
40
40
|
} if (rf & 2) {
|
|
41
41
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
42
42
|
i0.ɵɵconditional(!ctx_r2.readonly() ? 0 : -1);
|
|
@@ -44,13 +44,13 @@ function SdCrudList_Conditional_1_ng_template_0_Template(rf, ctx) { if (rf & 1)
|
|
|
44
44
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.commandTplRef());
|
|
45
45
|
} }
|
|
46
46
|
function SdCrudList_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
-
i0.ɵɵtemplate(0, SdCrudList_Conditional_1_ng_template_0_Template, 2, 2, "ng-template", null,
|
|
47
|
+
i0.ɵɵtemplate(0, SdCrudList_Conditional_1_ng_template_0_Template, 2, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
48
48
|
} }
|
|
49
49
|
function SdCrudList_Conditional_2_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
50
50
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
51
|
-
i0.ɵɵelementStart(0, "sd-button",
|
|
51
|
+
i0.ɵɵelementStart(0, "sd-button", 10);
|
|
52
52
|
i0.ɵɵlistener("click", function SdCrudList_Conditional_2_ng_template_0_Conditional_0_Template_sd_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onSaveButtonClick()); });
|
|
53
|
-
i0.ɵɵelement(1, "ng-icon",
|
|
53
|
+
i0.ɵɵelement(1, "ng-icon", 11);
|
|
54
54
|
i0.ɵɵtext(2, " \uC800\uC7A5 ");
|
|
55
55
|
i0.ɵɵelementStart(3, "small");
|
|
56
56
|
i0.ɵɵtext(4, "(CTRL+S)");
|
|
@@ -63,8 +63,8 @@ function SdCrudList_Conditional_2_ng_template_0_Conditional_0_Template(rf, ctx)
|
|
|
63
63
|
} }
|
|
64
64
|
function SdCrudList_Conditional_2_ng_template_0_ng_template_1_Template(rf, ctx) { }
|
|
65
65
|
function SdCrudList_Conditional_2_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
66
|
-
i0.ɵɵconditionalCreate(0, SdCrudList_Conditional_2_ng_template_0_Conditional_0_Template, 5, 2, "sd-button",
|
|
67
|
-
i0.ɵɵtemplate(1, SdCrudList_Conditional_2_ng_template_0_ng_template_1_Template, 0, 0, "ng-template",
|
|
66
|
+
i0.ɵɵconditionalCreate(0, SdCrudList_Conditional_2_ng_template_0_Conditional_0_Template, 5, 2, "sd-button", 8);
|
|
67
|
+
i0.ɵɵtemplate(1, SdCrudList_Conditional_2_ng_template_0_ng_template_1_Template, 0, 0, "ng-template", 9);
|
|
68
68
|
} if (rf & 2) {
|
|
69
69
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
70
70
|
i0.ɵɵconditional(!ctx_r2.readonly() ? 0 : -1);
|
|
@@ -72,12 +72,12 @@ function SdCrudList_Conditional_2_ng_template_0_Template(rf, ctx) { if (rf & 1)
|
|
|
72
72
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.commandTplRef());
|
|
73
73
|
} }
|
|
74
74
|
function SdCrudList_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
-
i0.ɵɵtemplate(0, SdCrudList_Conditional_2_ng_template_0_Template, 2, 2, "ng-template", null,
|
|
75
|
+
i0.ɵɵtemplate(0, SdCrudList_Conditional_2_ng_template_0_Template, 2, 2, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
76
76
|
} }
|
|
77
77
|
function SdCrudList_Conditional_3_ng_template_0_Conditional_0_ng_template_1_Template(rf, ctx) { }
|
|
78
78
|
function SdCrudList_Conditional_3_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
79
|
-
i0.ɵɵelementStart(0, "div",
|
|
80
|
-
i0.ɵɵtemplate(1, SdCrudList_Conditional_3_ng_template_0_Conditional_0_ng_template_1_Template, 0, 0, "ng-template",
|
|
79
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
80
|
+
i0.ɵɵtemplate(1, SdCrudList_Conditional_3_ng_template_0_Conditional_0_ng_template_1_Template, 0, 0, "ng-template", 9);
|
|
81
81
|
i0.ɵɵelementEnd();
|
|
82
82
|
} if (rf & 2) {
|
|
83
83
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
@@ -86,7 +86,7 @@ function SdCrudList_Conditional_3_ng_template_0_Conditional_0_Template(rf, ctx)
|
|
|
86
86
|
} }
|
|
87
87
|
function SdCrudList_Conditional_3_ng_template_0_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
88
88
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
89
|
-
i0.ɵɵelementStart(0, "sd-button",
|
|
89
|
+
i0.ɵɵelementStart(0, "sd-button", 15);
|
|
90
90
|
i0.ɵɵlistener("click", function SdCrudList_Conditional_3_ng_template_0_Conditional_1_Conditional_2_Template_sd_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.onModalSelectionConfirmClick()); });
|
|
91
91
|
i0.ɵɵtext(1);
|
|
92
92
|
i0.ɵɵelementEnd();
|
|
@@ -98,11 +98,11 @@ function SdCrudList_Conditional_3_ng_template_0_Conditional_1_Conditional_2_Temp
|
|
|
98
98
|
} }
|
|
99
99
|
function SdCrudList_Conditional_3_ng_template_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
100
100
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
101
|
-
i0.ɵɵelementStart(0, "sd-button",
|
|
101
|
+
i0.ɵɵelementStart(0, "sd-button", 13);
|
|
102
102
|
i0.ɵɵlistener("click", function SdCrudList_Conditional_3_ng_template_0_Conditional_1_Template_sd_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onModalSelectionCancelClick()); });
|
|
103
103
|
i0.ɵɵtext(1, " \uC120\uD0DD \uD574\uC81C ");
|
|
104
104
|
i0.ɵɵelementEnd();
|
|
105
|
-
i0.ɵɵconditionalCreate(2, SdCrudList_Conditional_3_ng_template_0_Conditional_1_Conditional_2_Template, 2, 3, "sd-button",
|
|
105
|
+
i0.ɵɵconditionalCreate(2, SdCrudList_Conditional_3_ng_template_0_Conditional_1_Conditional_2_Template, 2, 3, "sd-button", 14);
|
|
106
106
|
} if (rf & 2) {
|
|
107
107
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
108
108
|
i0.ɵɵproperty("size", "sm")("theme", "danger")("disabled", ctx_r2.selectedKeys().length < 1);
|
|
@@ -110,7 +110,7 @@ function SdCrudList_Conditional_3_ng_template_0_Conditional_1_Template(rf, ctx)
|
|
|
110
110
|
i0.ɵɵconditional(ctx_r2.selectMode() === "multi" ? 2 : -1);
|
|
111
111
|
} }
|
|
112
112
|
function SdCrudList_Conditional_3_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
113
|
-
i0.ɵɵconditionalCreate(0, SdCrudList_Conditional_3_ng_template_0_Conditional_0_Template, 2, 1, "div",
|
|
113
|
+
i0.ɵɵconditionalCreate(0, SdCrudList_Conditional_3_ng_template_0_Conditional_0_Template, 2, 1, "div", 12);
|
|
114
114
|
i0.ɵɵconditionalCreate(1, SdCrudList_Conditional_3_ng_template_0_Conditional_1_Template, 3, 4);
|
|
115
115
|
} if (rf & 2) {
|
|
116
116
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
@@ -119,21 +119,21 @@ function SdCrudList_Conditional_3_ng_template_0_Template(rf, ctx) { if (rf & 1)
|
|
|
119
119
|
i0.ɵɵconditional(ctx_r2.selectMode() != null ? 1 : -1);
|
|
120
120
|
} }
|
|
121
121
|
function SdCrudList_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
122
|
-
i0.ɵɵtemplate(0, SdCrudList_Conditional_3_ng_template_0_Template, 2, 2, "ng-template", null,
|
|
122
|
+
i0.ɵɵtemplate(0, SdCrudList_Conditional_3_ng_template_0_Template, 2, 2, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
123
123
|
} }
|
|
124
|
-
function
|
|
125
|
-
function
|
|
124
|
+
function SdCrudList_ng_template_4_Conditional_1_ng_template_6_Template(rf, ctx) { }
|
|
125
|
+
function SdCrudList_ng_template_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
126
126
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
127
|
-
i0.ɵɵelementStart(0, "sd-form",
|
|
128
|
-
i0.ɵɵlistener("formSubmit", function
|
|
129
|
-
i0.ɵɵelementStart(1, "div",
|
|
130
|
-
i0.ɵɵelement(4, "ng-icon",
|
|
127
|
+
i0.ɵɵelementStart(0, "sd-form", 20);
|
|
128
|
+
i0.ɵɵlistener("formSubmit", function SdCrudList_ng_template_4_Conditional_1_Template_sd_form_formSubmit_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.filterSubmit.emit()); });
|
|
129
|
+
i0.ɵɵelementStart(1, "div", 21)(2, "div")(3, "sd-button", 22);
|
|
130
|
+
i0.ɵɵelement(4, "ng-icon", 11);
|
|
131
131
|
i0.ɵɵtext(5, " \uC870\uD68C ");
|
|
132
132
|
i0.ɵɵelementEnd()();
|
|
133
|
-
i0.ɵɵtemplate(6,
|
|
133
|
+
i0.ɵɵtemplate(6, SdCrudList_ng_template_4_Conditional_1_ng_template_6_Template, 0, 0, "ng-template", 9);
|
|
134
134
|
i0.ɵɵelementEnd()();
|
|
135
135
|
} if (rf & 2) {
|
|
136
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
136
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
137
137
|
i0.ɵɵadvance(3);
|
|
138
138
|
i0.ɵɵproperty("type", "submit")("theme", "info");
|
|
139
139
|
i0.ɵɵadvance();
|
|
@@ -141,108 +141,123 @@ function SdCrudList_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
141
141
|
i0.ɵɵadvance(2);
|
|
142
142
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.filterTplRef());
|
|
143
143
|
} }
|
|
144
|
-
function
|
|
144
|
+
function SdCrudList_ng_template_4_Conditional_2_Conditional_1_Conditional_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
145
145
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
146
|
-
i0.ɵɵelementStart(0, "sd-button",
|
|
147
|
-
i0.ɵɵlistener("click", function
|
|
148
|
-
i0.ɵɵelement(1, "ng-icon",
|
|
146
|
+
i0.ɵɵelementStart(0, "sd-button", 15);
|
|
147
|
+
i0.ɵɵlistener("click", function SdCrudList_ng_template_4_Conditional_2_Conditional_1_Conditional_3_Conditional_3_Template_sd_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.restore.emit(ctx_r2.currSelectedItems())); });
|
|
148
|
+
i0.ɵɵelement(1, "ng-icon", 11);
|
|
149
149
|
i0.ɵɵtext(2, " \uC120\uD0DD \uBCF5\uAD6C ");
|
|
150
150
|
i0.ɵɵelementEnd();
|
|
151
151
|
} if (rf & 2) {
|
|
152
|
-
const ctx_r2 = i0.ɵɵnextContext(
|
|
152
|
+
const ctx_r2 = i0.ɵɵnextContext(5);
|
|
153
153
|
i0.ɵɵproperty("size", "sm")("theme", "link-warning");
|
|
154
154
|
i0.ɵɵadvance();
|
|
155
155
|
i0.ɵɵproperty("svg", ctx_r2.tablerRestore);
|
|
156
156
|
} }
|
|
157
|
-
function
|
|
157
|
+
function SdCrudList_ng_template_4_Conditional_2_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
158
158
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
159
|
-
i0.ɵɵelementStart(0, "sd-button",
|
|
160
|
-
i0.ɵɵlistener("click", function
|
|
161
|
-
i0.ɵɵelement(1, "ng-icon",
|
|
159
|
+
i0.ɵɵelementStart(0, "sd-button", 13);
|
|
160
|
+
i0.ɵɵlistener("click", function SdCrudList_ng_template_4_Conditional_2_Conditional_1_Conditional_3_Template_sd_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.delete.emit(ctx_r2.currSelectedItems())); });
|
|
161
|
+
i0.ɵɵelement(1, "ng-icon", 11);
|
|
162
162
|
i0.ɵɵtext(2, " \uC120\uD0DD \uC0AD\uC81C ");
|
|
163
163
|
i0.ɵɵelementEnd();
|
|
164
|
-
i0.ɵɵconditionalCreate(3,
|
|
164
|
+
i0.ɵɵconditionalCreate(3, SdCrudList_ng_template_4_Conditional_2_Conditional_1_Conditional_3_Conditional_3_Template, 3, 3, "sd-button", 14);
|
|
165
165
|
} if (rf & 2) {
|
|
166
|
-
const ctx_r2 = i0.ɵɵnextContext(
|
|
166
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
167
167
|
i0.ɵɵproperty("size", "sm")("theme", "link-danger")("disabled", !ctx_r2.hasSelectedNotDeleted());
|
|
168
168
|
i0.ɵɵadvance();
|
|
169
169
|
i0.ɵɵproperty("svg", ctx_r2.tablerEraser);
|
|
170
170
|
i0.ɵɵadvance(2);
|
|
171
171
|
i0.ɵɵconditional(ctx_r2.hasSelectedDeleted() ? 3 : -1);
|
|
172
172
|
} }
|
|
173
|
-
function
|
|
173
|
+
function SdCrudList_ng_template_4_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
174
174
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
175
|
-
i0.ɵɵelementStart(0, "sd-button",
|
|
176
|
-
i0.ɵɵlistener("click", function
|
|
177
|
-
i0.ɵɵelement(1, "ng-icon",
|
|
175
|
+
i0.ɵɵelementStart(0, "sd-button", 15);
|
|
176
|
+
i0.ɵɵlistener("click", function SdCrudList_ng_template_4_Conditional_2_Conditional_1_Template_sd_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.create.emit()); });
|
|
177
|
+
i0.ɵɵelement(1, "ng-icon", 11);
|
|
178
178
|
i0.ɵɵtext(2, " \uB4F1\uB85D ");
|
|
179
179
|
i0.ɵɵelementEnd();
|
|
180
|
-
i0.ɵɵconditionalCreate(3,
|
|
180
|
+
i0.ɵɵconditionalCreate(3, SdCrudList_ng_template_4_Conditional_2_Conditional_1_Conditional_3_Template, 4, 5);
|
|
181
181
|
} if (rf & 2) {
|
|
182
|
-
const ctx_r2 = i0.ɵɵnextContext(
|
|
182
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
183
183
|
i0.ɵɵproperty("size", "sm")("theme", "link-primary");
|
|
184
184
|
i0.ɵɵadvance();
|
|
185
185
|
i0.ɵɵproperty("svg", ctx_r2.tablerCirclePlus);
|
|
186
186
|
i0.ɵɵadvance(2);
|
|
187
187
|
i0.ɵɵconditional(ctx_r2.selectMode() !== "single" ? 3 : -1);
|
|
188
188
|
} }
|
|
189
|
-
function
|
|
190
|
-
function
|
|
191
|
-
i0.ɵɵtemplate(0,
|
|
189
|
+
function SdCrudList_ng_template_4_Conditional_2_Conditional_2_ng_template_0_Template(rf, ctx) { }
|
|
190
|
+
function SdCrudList_ng_template_4_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
191
|
+
i0.ɵɵtemplate(0, SdCrudList_ng_template_4_Conditional_2_Conditional_2_ng_template_0_Template, 0, 0, "ng-template", 9);
|
|
192
192
|
} if (rf & 2) {
|
|
193
|
-
const ctx_r2 = i0.ɵɵnextContext(
|
|
193
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
194
194
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.toolTplRef());
|
|
195
195
|
} }
|
|
196
|
-
function
|
|
197
|
-
i0.ɵɵelementStart(0, "div",
|
|
198
|
-
i0.ɵɵconditionalCreate(1,
|
|
199
|
-
i0.ɵɵconditionalCreate(2,
|
|
196
|
+
function SdCrudList_ng_template_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
197
|
+
i0.ɵɵelementStart(0, "div", 18);
|
|
198
|
+
i0.ɵɵconditionalCreate(1, SdCrudList_ng_template_4_Conditional_2_Conditional_1_Template, 4, 4);
|
|
199
|
+
i0.ɵɵconditionalCreate(2, SdCrudList_ng_template_4_Conditional_2_Conditional_2_Template, 1, 1, null, 9);
|
|
200
200
|
i0.ɵɵelementEnd();
|
|
201
201
|
} if (rf & 2) {
|
|
202
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
202
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
203
203
|
i0.ɵɵadvance();
|
|
204
204
|
i0.ɵɵconditional(!ctx_r2.readonly() ? 1 : -1);
|
|
205
205
|
i0.ɵɵadvance();
|
|
206
206
|
i0.ɵɵconditional(ctx_r2.toolTplRef() ? 2 : -1);
|
|
207
207
|
} }
|
|
208
|
-
function
|
|
209
|
-
function
|
|
210
|
-
i0.ɵɵelementStart(0, "div",
|
|
211
|
-
i0.ɵɵtemplate(1,
|
|
208
|
+
function SdCrudList_ng_template_4_Conditional_3_ng_template_1_Template(rf, ctx) { }
|
|
209
|
+
function SdCrudList_ng_template_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
210
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
211
|
+
i0.ɵɵtemplate(1, SdCrudList_ng_template_4_Conditional_3_ng_template_1_Template, 0, 0, "ng-template", 9);
|
|
212
212
|
i0.ɵɵelementEnd();
|
|
213
213
|
} if (rf & 2) {
|
|
214
|
-
i0.ɵɵnextContext();
|
|
215
|
-
const sheet_r11 = i0.ɵɵreference(
|
|
214
|
+
i0.ɵɵnextContext(2);
|
|
215
|
+
const sheet_r11 = i0.ɵɵreference(7);
|
|
216
216
|
i0.ɵɵadvance();
|
|
217
217
|
i0.ɵɵproperty("ngTemplateOutlet", sheet_r11);
|
|
218
218
|
} }
|
|
219
|
-
function
|
|
220
|
-
function
|
|
219
|
+
function SdCrudList_ng_template_4_Conditional_4_ng_template_2_Template(rf, ctx) { }
|
|
220
|
+
function SdCrudList_ng_template_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
221
221
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
222
|
-
i0.ɵɵelementStart(0, "sd-form",
|
|
223
|
-
i0.ɵɵlistener("formSubmit", function
|
|
224
|
-
i0.ɵɵtemplate(2,
|
|
222
|
+
i0.ɵɵelementStart(0, "sd-form", 23, 5);
|
|
223
|
+
i0.ɵɵlistener("formSubmit", function SdCrudList_ng_template_4_Conditional_4_Template_sd_form_formSubmit_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.submit.emit()); });
|
|
224
|
+
i0.ɵɵtemplate(2, SdCrudList_ng_template_4_Conditional_4_ng_template_2_Template, 0, 0, "ng-template", 9);
|
|
225
225
|
i0.ɵɵelementEnd();
|
|
226
226
|
} if (rf & 2) {
|
|
227
|
-
i0.ɵɵnextContext();
|
|
228
|
-
const sheet_r11 = i0.ɵɵreference(
|
|
227
|
+
i0.ɵɵnextContext(2);
|
|
228
|
+
const sheet_r11 = i0.ɵɵreference(7);
|
|
229
229
|
i0.ɵɵadvance(2);
|
|
230
230
|
i0.ɵɵproperty("ngTemplateOutlet", sheet_r11);
|
|
231
231
|
} }
|
|
232
|
-
function
|
|
233
|
-
i0.ɵɵelementStart(0, "div",
|
|
234
|
-
i0.ɵɵ
|
|
232
|
+
function SdCrudList_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
233
|
+
i0.ɵɵelementStart(0, "div", 16);
|
|
234
|
+
i0.ɵɵconditionalCreate(1, SdCrudList_ng_template_4_Conditional_1_Template, 7, 4, "sd-form", 17);
|
|
235
|
+
i0.ɵɵconditionalCreate(2, SdCrudList_ng_template_4_Conditional_2_Template, 3, 2, "div", 18);
|
|
236
|
+
i0.ɵɵconditionalCreate(3, SdCrudList_ng_template_4_Conditional_3_Template, 2, 1, "div", 19)(4, SdCrudList_ng_template_4_Conditional_4_Template, 3, 1, "sd-form", 19);
|
|
237
|
+
i0.ɵɵelementEnd();
|
|
238
|
+
} if (rf & 2) {
|
|
239
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
240
|
+
i0.ɵɵadvance();
|
|
241
|
+
i0.ɵɵconditional(ctx_r2.filterTplRef() ? 1 : -1);
|
|
242
|
+
i0.ɵɵadvance();
|
|
243
|
+
i0.ɵɵconditional(!ctx_r2.readonly() || ctx_r2.toolTplRef() ? 2 : -1);
|
|
244
|
+
i0.ɵɵadvance();
|
|
245
|
+
i0.ɵɵconditional(ctx_r2.readonly() ? 3 : 4);
|
|
246
|
+
} }
|
|
247
|
+
function SdCrudList_ng_template_6_Conditional_1_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
248
|
+
i0.ɵɵelementStart(0, "div", 27);
|
|
249
|
+
i0.ɵɵelement(1, "ng-icon", 11);
|
|
235
250
|
i0.ɵɵelementEnd();
|
|
236
251
|
} if (rf & 2) {
|
|
237
252
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
238
253
|
i0.ɵɵadvance();
|
|
239
254
|
i0.ɵɵproperty("svg", ctx_r2.tablerEraser);
|
|
240
255
|
} }
|
|
241
|
-
function
|
|
256
|
+
function SdCrudList_ng_template_6_Conditional_1_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
242
257
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
243
|
-
i0.ɵɵelementStart(0, "div",
|
|
244
|
-
i0.ɵɵlistener("click", function
|
|
245
|
-
i0.ɵɵelement(2, "ng-icon",
|
|
258
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "sd-anchor", 10);
|
|
259
|
+
i0.ɵɵlistener("click", function SdCrudList_ng_template_6_Conditional_1_ng_template_3_Template_sd_anchor_click_1_listener() { const item_r15 = i0.ɵɵrestoreView(_r14).item; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.isDeleted(item_r15) ? ctx_r2.restore.emit([item_r15]) : ctx_r2.delete.emit([item_r15])); });
|
|
260
|
+
i0.ɵɵelement(2, "ng-icon", 11);
|
|
246
261
|
i0.ɵɵelementEnd()();
|
|
247
262
|
} if (rf & 2) {
|
|
248
263
|
const item_r15 = ctx.item;
|
|
@@ -252,9 +267,9 @@ function SdCrudList_ng_template_9_Conditional_1_ng_template_3_Template(rf, ctx)
|
|
|
252
267
|
i0.ɵɵadvance();
|
|
253
268
|
i0.ɵɵproperty("svg", ctx_r2.isDeleted(item_r15) ? ctx_r2.tablerRestore : ctx_r2.tablerEraser);
|
|
254
269
|
} }
|
|
255
|
-
function
|
|
256
|
-
i0.ɵɵelementStart(0, "sd-sheet-column",
|
|
257
|
-
i0.ɵɵtemplate(1,
|
|
270
|
+
function SdCrudList_ng_template_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
271
|
+
i0.ɵɵelementStart(0, "sd-sheet-column", 25);
|
|
272
|
+
i0.ɵɵtemplate(1, SdCrudList_ng_template_6_Conditional_1_ng_template_1_Template, 2, 1, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor)(3, SdCrudList_ng_template_6_Conditional_1_ng_template_3_Template, 3, 2, "ng-template", 26);
|
|
258
273
|
i0.ɵɵelementEnd();
|
|
259
274
|
} if (rf & 2) {
|
|
260
275
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
@@ -262,12 +277,12 @@ function SdCrudList_ng_template_9_Conditional_1_Template(rf, ctx) { if (rf & 1)
|
|
|
262
277
|
i0.ɵɵadvance(3);
|
|
263
278
|
i0.ɵɵproperty("cell", ctx_r2.items());
|
|
264
279
|
} }
|
|
265
|
-
function
|
|
280
|
+
function SdCrudList_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
266
281
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
267
|
-
i0.ɵɵelementStart(0, "sd-sheet",
|
|
268
|
-
i0.ɵɵtwoWayListener("currentPageChange", function
|
|
269
|
-
i0.ɵɵlistener("selectedKeysChange", function
|
|
270
|
-
i0.ɵɵconditionalCreate(1,
|
|
282
|
+
i0.ɵɵelementStart(0, "sd-sheet", 24);
|
|
283
|
+
i0.ɵɵtwoWayListener("currentPageChange", function SdCrudList_ng_template_6_Template_sd_sheet_currentPageChange_0_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.currentPage, $event) || (ctx_r2.currentPage = $event); return i0.ɵɵresetView($event); })("sortsChange", function SdCrudList_ng_template_6_Template_sd_sheet_sortsChange_0_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.sorts, $event) || (ctx_r2.sorts = $event); return i0.ɵɵresetView($event); })("selectedKeysChange", function SdCrudList_ng_template_6_Template_sd_sheet_selectedKeysChange_0_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.selectedKeys, $event) || (ctx_r2.selectedKeys = $event); return i0.ɵɵresetView($event); });
|
|
284
|
+
i0.ɵɵlistener("selectedKeysChange", function SdCrudList_ng_template_6_Template_sd_sheet_selectedKeysChange_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onSelectedKeysChange()); });
|
|
285
|
+
i0.ɵɵconditionalCreate(1, SdCrudList_ng_template_6_Conditional_1_Template, 4, 5, "sd-sheet-column", 25);
|
|
271
286
|
i0.ɵɵelementEnd();
|
|
272
287
|
} if (rf & 2) {
|
|
273
288
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -359,18 +374,15 @@ export class SdCrudList {
|
|
|
359
374
|
i0.ɵɵqueryAdvance();
|
|
360
375
|
} }, hostBindings: function SdCrudList_HostBindings(rf, ctx) { if (rf & 1) {
|
|
361
376
|
i0.ɵɵlistener("sdSaveCommand", function SdCrudList_sdSaveCommand_HostBindingHandler() { return ctx.onSaveButtonClick(); });
|
|
362
|
-
} }, inputs: { ready: [1, "ready"], initialized: [1, "initialized"], busyCount: [1, "busyCount"], restricted: [1, "restricted"], readonly: [1, "readonly"], viewType: [1, "viewType"], selectMode: [1, "selectMode"], key: [1, "key"], items: [1, "items"], selectedKeys: [1, "selectedKeys"], currDeletedItems: [1, "currDeletedItems"], currentPage: [1, "currentPage"], totalPageCount: [1, "totalPageCount"], sorts: [1, "sorts"], trackByFn: [1, "trackByFn"] }, outputs: { ready: "readyChange", busyCount: "busyCountChange", filterSubmit: "filterSubmit", submit: "submit", create: "create", delete: "delete", restore: "restore", selectedKeys: "selectedKeysChange", currentPage: "currentPageChange", sorts: "sortsChange" }, features: [i0.ɵɵHostDirectivesFeature([{ directive: i1.SdCommandDirective, outputs: ["sdSaveCommand", "sdSaveCommand"] }])], decls:
|
|
377
|
+
} }, inputs: { ready: [1, "ready"], initialized: [1, "initialized"], busyCount: [1, "busyCount"], restricted: [1, "restricted"], readonly: [1, "readonly"], viewType: [1, "viewType"], selectMode: [1, "selectMode"], key: [1, "key"], items: [1, "items"], selectedKeys: [1, "selectedKeys"], currDeletedItems: [1, "currDeletedItems"], currentPage: [1, "currentPage"], totalPageCount: [1, "totalPageCount"], sorts: [1, "sorts"], trackByFn: [1, "trackByFn"] }, outputs: { ready: "readyChange", busyCount: "busyCountChange", filterSubmit: "filterSubmit", submit: "submit", create: "create", delete: "delete", restore: "restore", selectedKeys: "selectedKeysChange", currentPage: "currentPageChange", sorts: "sortsChange" }, features: [i0.ɵɵHostDirectivesFeature([{ directive: i1.SdCommandDirective, outputs: ["sdSaveCommand", "sdSaveCommand"] }])], decls: 8, vars: 7, consts: [["contentTpl", ""], ["sheet", ""], ["topbarTpl", ""], ["commandTpl", ""], ["bottomCommandTpl", ""], ["formCtrl", ""], ["headerTpl", ""], [3, "readyChange", "busyCountChange", "ready", "initialized", "busyCount", "restricted", "viewType"], [3, "theme"], [3, "ngTemplateOutlet"], [3, "click", "theme"], [3, "svg"], [1, "flex-fill", "flex-row", "main-align-start", "gap-sm"], [3, "click", "size", "theme", "disabled"], [3, "size", "theme"], [3, "click", "size", "theme"], [1, "flex-column", "fill"], [1, "block", "p-default"], [1, "flex-row", "gap-sm", "p-xs-default"], [1, "flex-fill", "p-default", "pt-0"], [1, "block", "p-default", 3, "formSubmit"], [1, "form-box-inline"], [3, "type", "theme"], [1, "flex-fill", "p-default", "pt-0", 3, "formSubmit"], [3, "currentPageChange", "sortsChange", "selectedKeysChange", "key", "items", "currentPage", "totalPageCount", "sorts", "useAutoSort", "selectMode", "selectedKeys", "trackByFn", "getItemCellStyleFn", "autoSelect", "columnControlsInput"], [3, "fixed", "key", "disableResizing", "disableSorting"], [3, "cell"], [1, "p-xs-sm", "tx-center"], [1, "p-xs-sm"]], template: function SdCrudList_Template(rf, ctx) { if (rf & 1) {
|
|
363
378
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
364
|
-
i0.ɵɵelementStart(0, "sd-base-container",
|
|
379
|
+
i0.ɵɵelementStart(0, "sd-base-container", 7);
|
|
365
380
|
i0.ɵɵtwoWayListener("readyChange", function SdCrudList_Template_sd_base_container_readyChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.ready, $event) || (ctx.ready = $event); return i0.ɵɵresetView($event); })("busyCountChange", function SdCrudList_Template_sd_base_container_busyCountChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.busyCount, $event) || (ctx.busyCount = $event); return i0.ɵɵresetView($event); });
|
|
366
381
|
i0.ɵɵconditionalCreate(1, SdCrudList_Conditional_1_Template, 2, 0)(2, SdCrudList_Conditional_2_Template, 2, 0);
|
|
367
382
|
i0.ɵɵconditionalCreate(3, SdCrudList_Conditional_3_Template, 2, 0);
|
|
368
|
-
i0.ɵɵ
|
|
369
|
-
i0.ɵɵ
|
|
370
|
-
i0.ɵɵ
|
|
371
|
-
i0.ɵɵconditionalCreate(7, SdCrudList_Conditional_7_Template, 2, 1, "div", 10)(8, SdCrudList_Conditional_8_Template, 3, 1, "sd-form", 10);
|
|
372
|
-
i0.ɵɵelementEnd()();
|
|
373
|
-
i0.ɵɵtemplate(9, SdCrudList_ng_template_9_Template, 2, 13, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
383
|
+
i0.ɵɵtemplate(4, SdCrudList_ng_template_4_Template, 5, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
384
|
+
i0.ɵɵelementEnd();
|
|
385
|
+
i0.ɵɵtemplate(6, SdCrudList_ng_template_6_Template, 2, 13, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
374
386
|
} if (rf & 2) {
|
|
375
387
|
i0.ɵɵtwoWayProperty("ready", ctx.ready);
|
|
376
388
|
i0.ɵɵproperty("initialized", ctx.initialized());
|
|
@@ -380,12 +392,6 @@ export class SdCrudList {
|
|
|
380
392
|
i0.ɵɵconditional(ctx.viewType() === "page" && (!ctx.readonly() || ctx.commandTplRef()) ? 1 : !ctx.readonly() || ctx.commandTplRef() ? 2 : -1);
|
|
381
393
|
i0.ɵɵadvance(2);
|
|
382
394
|
i0.ɵɵconditional(ctx.viewType() === "modal" && ctx.selectMode() != null || ctx.bottomCommandTplRef() ? 3 : -1);
|
|
383
|
-
i0.ɵɵadvance(2);
|
|
384
|
-
i0.ɵɵconditional(ctx.filterTplRef() ? 5 : -1);
|
|
385
|
-
i0.ɵɵadvance();
|
|
386
|
-
i0.ɵɵconditional(!ctx.readonly() || ctx.toolTplRef() ? 6 : -1);
|
|
387
|
-
i0.ɵɵadvance();
|
|
388
|
-
i0.ɵɵconditional(ctx.readonly() ? 7 : 8);
|
|
389
395
|
} }, dependencies: [SdBaseContainer,
|
|
390
396
|
SdButton,
|
|
391
397
|
NgIcon,
|
|
@@ -480,68 +486,69 @@ export class SdCrudList {
|
|
|
480
486
|
</ng-template>
|
|
481
487
|
}
|
|
482
488
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
489
|
+
<ng-template #contentTpl>
|
|
490
|
+
<div class="flex-column fill">
|
|
491
|
+
@if (filterTplRef()) {
|
|
492
|
+
<sd-form (formSubmit)="filterSubmit.emit()" class="block p-default">
|
|
493
|
+
<div class="form-box-inline">
|
|
494
|
+
<div>
|
|
495
|
+
<sd-button [type]="'submit'" [theme]="'info'">
|
|
496
|
+
<ng-icon [svg]="tablerSearch" />
|
|
497
|
+
조회
|
|
498
|
+
</sd-button>
|
|
499
|
+
</div>
|
|
500
|
+
<ng-template [ngTemplateOutlet]="filterTplRef()" />
|
|
493
501
|
</div>
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
</sd-form>
|
|
497
|
-
}
|
|
502
|
+
</sd-form>
|
|
503
|
+
}
|
|
498
504
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
</sd-button>
|
|
506
|
-
@if (selectMode() !== "single") {
|
|
507
|
-
<sd-button
|
|
508
|
-
[size]="'sm'"
|
|
509
|
-
[theme]="'link-danger'"
|
|
510
|
-
(click)="delete.emit(currSelectedItems())"
|
|
511
|
-
[disabled]="!hasSelectedNotDeleted()"
|
|
512
|
-
>
|
|
513
|
-
<ng-icon [svg]="tablerEraser" />
|
|
514
|
-
선택 삭제
|
|
505
|
+
@if (!readonly() || toolTplRef()) {
|
|
506
|
+
<div class="flex-row gap-sm p-xs-default">
|
|
507
|
+
@if (!readonly()) {
|
|
508
|
+
<sd-button [size]="'sm'" [theme]="'link-primary'" (click)="create.emit()">
|
|
509
|
+
<ng-icon [svg]="tablerCirclePlus" />
|
|
510
|
+
등록
|
|
515
511
|
</sd-button>
|
|
516
|
-
@if (
|
|
512
|
+
@if (selectMode() !== "single") {
|
|
517
513
|
<sd-button
|
|
518
514
|
[size]="'sm'"
|
|
519
|
-
[theme]="'link-
|
|
520
|
-
(click)="
|
|
515
|
+
[theme]="'link-danger'"
|
|
516
|
+
(click)="delete.emit(currSelectedItems())"
|
|
517
|
+
[disabled]="!hasSelectedNotDeleted()"
|
|
521
518
|
>
|
|
522
|
-
<ng-icon [svg]="
|
|
523
|
-
선택
|
|
519
|
+
<ng-icon [svg]="tablerEraser" />
|
|
520
|
+
선택 삭제
|
|
524
521
|
</sd-button>
|
|
522
|
+
@if (hasSelectedDeleted()) {
|
|
523
|
+
<sd-button
|
|
524
|
+
[size]="'sm'"
|
|
525
|
+
[theme]="'link-warning'"
|
|
526
|
+
(click)="restore.emit(currSelectedItems())"
|
|
527
|
+
>
|
|
528
|
+
<ng-icon [svg]="tablerRestore" />
|
|
529
|
+
선택 복구
|
|
530
|
+
</sd-button>
|
|
531
|
+
}
|
|
525
532
|
}
|
|
526
533
|
}
|
|
527
|
-
}
|
|
528
534
|
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
535
|
+
@if (toolTplRef()) {
|
|
536
|
+
<ng-template [ngTemplateOutlet]="toolTplRef()" />
|
|
537
|
+
}
|
|
538
|
+
</div>
|
|
539
|
+
}
|
|
534
540
|
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
541
|
+
@if (readonly()) {
|
|
542
|
+
<div class="flex-fill p-default pt-0">
|
|
543
|
+
<ng-template [ngTemplateOutlet]="sheet" />
|
|
544
|
+
</div>
|
|
545
|
+
} @else {
|
|
546
|
+
<sd-form #formCtrl (formSubmit)="submit.emit()" class="flex-fill p-default pt-0">
|
|
547
|
+
<ng-template [ngTemplateOutlet]="sheet" />
|
|
548
|
+
</sd-form>
|
|
549
|
+
}
|
|
550
|
+
</div>
|
|
551
|
+
</ng-template>
|
|
545
552
|
</sd-base-container>
|
|
546
553
|
|
|
547
554
|
<ng-template #sheet>
|
|
@@ -589,4 +596,4 @@ export class SdCrudList {
|
|
|
589
596
|
`,
|
|
590
597
|
}]
|
|
591
598
|
}], null, { ready: [{ type: i0.Input, args: [{ isSignal: true, alias: "ready", required: false }] }, { type: i0.Output, args: ["readyChange"] }], initialized: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialized", required: false }] }], busyCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "busyCount", required: false }] }, { type: i0.Output, args: ["busyCountChange"] }], restricted: [{ type: i0.Input, args: [{ isSignal: true, alias: "restricted", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], viewType: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewType", required: true }] }], selectMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectMode", required: false }] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: true }] }], formCtrl: [{ type: i0.ViewChild, args: ["formCtrl", { isSignal: true }] }], filterSubmit: [{ type: i0.Output, args: ["filterSubmit"] }], submit: [{ type: i0.Output, args: ["submit"] }], create: [{ type: i0.Output, args: ["create"] }], delete: [{ type: i0.Output, args: ["delete"] }], restore: [{ type: i0.Output, args: ["restore"] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], selectedKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedKeys", required: false }] }, { type: i0.Output, args: ["selectedKeysChange"] }], currDeletedItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "currDeletedItems", required: false }] }], currentPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPage", required: false }] }, { type: i0.Output, args: ["currentPageChange"] }], totalPageCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalPageCount", required: false }] }], sorts: [{ type: i0.Input, args: [{ isSignal: true, alias: "sorts", required: false }] }, { type: i0.Output, args: ["sortsChange"] }], trackByFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackByFn", required: true }] }], commandTplRef: [{ type: i0.ContentChild, args: ["commandTpl", { isSignal: true }] }], filterTplRef: [{ type: i0.ContentChild, args: ["filterTpl", { isSignal: true }] }], toolTplRef: [{ type: i0.ContentChild, args: ["toolTpl", { isSignal: true }] }], bottomCommandTplRef: [{ type: i0.ContentChild, args: ["bottomCommandTpl", { isSignal: true }] }], columnControls: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdSheetColumn), { isSignal: true }] }] }); })();
|
|
592
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdCrudList, { className: "SdCrudList", filePath: "packages/angular/src/data/crud/sd-crud-list.ts", lineNumber:
|
|
599
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdCrudList, { className: "SdCrudList", filePath: "packages/angular/src/data/crud/sd-crud-list.ts", lineNumber: 227 }); })();
|
|
@@ -2,7 +2,7 @@ import { type Signal } from "@angular/core";
|
|
|
2
2
|
import type { injectSheetDomAccessor } from "./injectSheetDomAccessor";
|
|
3
3
|
export declare function injectSheetSelectRowIndicator<TItem, TKey>(options: {
|
|
4
4
|
domAccessor: ReturnType<typeof injectSheetDomAccessor>;
|
|
5
|
-
selectedKeys: Signal<
|
|
5
|
+
selectedKeys: Signal<TKey[]>;
|
|
6
6
|
displayItems: Signal<TItem[]>;
|
|
7
7
|
trackByFn: Signal<(item: TItem, index: number) => TKey>;
|
|
8
8
|
}): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectSheetSelectRowIndicator.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/injectSheetSelectRowIndicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAOvE,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE;IAClE,WAAW,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;IACvD,YAAY,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"injectSheetSelectRowIndicator.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/injectSheetSelectRowIndicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAOvE,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE;IAClE,WAAW,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;IACvD,YAAY,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC,CAAC;CACzD;kBA2CoB,IAAI;EAqBxB"}
|
|
@@ -4,10 +4,10 @@ import type { SdSheetCellKeydownEventParam, SdSheetHeaderDef, SdSheetItemKeydown
|
|
|
4
4
|
import type { SdResizeEvent } from "../../core/events/sd-resize";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "../../core/events/sd-events";
|
|
7
|
-
export declare class SdSheet<TItem
|
|
7
|
+
export declare class SdSheet<TItem> {
|
|
8
8
|
key: import("@angular/core").InputSignal<string | undefined>;
|
|
9
9
|
items: import("@angular/core").InputSignal<TItem[]>;
|
|
10
|
-
trackByFn: import("@angular/core").InputSignal<(item: TItem, index: number) =>
|
|
10
|
+
trackByFn: import("@angular/core").InputSignal<(item: TItem, index: number) => unknown>;
|
|
11
11
|
selectMode: import("@angular/core").InputSignal<"single" | "multi" | undefined>;
|
|
12
12
|
autoSelect: import("@angular/core").InputSignal<"click" | "focus" | undefined>;
|
|
13
13
|
getItemSelectableFn: import("@angular/core").InputSignal<((item: TItem) => boolean | string) | undefined>;
|
|
@@ -24,7 +24,7 @@ export declare class SdSheet<TItem, TKey> {
|
|
|
24
24
|
hideConfigBar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
25
25
|
itemKeydown: import("@angular/core").OutputEmitterRef<SdSheetItemKeydownEventParam<TItem>>;
|
|
26
26
|
cellKeydown: import("@angular/core").OutputEmitterRef<SdSheetCellKeydownEventParam<TItem>>;
|
|
27
|
-
selectedKeys: import("@angular/core").ModelSignal<
|
|
27
|
+
selectedKeys: import("@angular/core").ModelSignal<unknown[]>;
|
|
28
28
|
expandedItems: import("@angular/core").ModelSignal<TItem[]>;
|
|
29
29
|
sorts: import("@angular/core").ModelSignal<SortingDef[]>;
|
|
30
30
|
currentPage: import("@angular/core").ModelSignal<number>;
|
|
@@ -158,8 +158,8 @@ export declare class SdSheet<TItem, TKey> {
|
|
|
158
158
|
onItemKeydown(event: KeyboardEvent, item: TItem): void;
|
|
159
159
|
onCellKeydown(event: KeyboardEvent, item: TItem, colKey: string): void;
|
|
160
160
|
onConfigButtonClick(): Promise<void>;
|
|
161
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdSheet<any
|
|
162
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdSheet<any
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdSheet<any>, never>;
|
|
162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdSheet<any>, "sd-sheet", never, { "key": { "alias": "key"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "trackByFn": { "alias": "trackByFn"; "required": false; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "autoSelect": { "alias": "autoSelect"; "required": false; "isSignal": true; }; "getItemSelectableFn": { "alias": "getItemSelectableFn"; "required": false; "isSignal": true; }; "getChildrenFn": { "alias": "getChildrenFn"; "required": false; "isSignal": true; }; "useAutoSort": { "alias": "useAutoSort"; "required": false; "isSignal": true; }; "visiblePageCount": { "alias": "visiblePageCount"; "required": false; "isSignal": true; }; "totalPageCount": { "alias": "totalPageCount"; "required": false; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "contentStyle": { "alias": "contentStyle"; "required": false; "isSignal": true; }; "getItemCellClassFn": { "alias": "getItemCellClassFn"; "required": false; "isSignal": true; }; "getItemCellStyleFn": { "alias": "getItemCellStyleFn"; "required": false; "isSignal": true; }; "hideConfigBar": { "alias": "hideConfigBar"; "required": false; "isSignal": true; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; "isSignal": true; }; "expandedItems": { "alias": "expandedItems"; "required": false; "isSignal": true; }; "sorts": { "alias": "sorts"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "columnControlsInput": { "alias": "columnControlsInput"; "required": false; "isSignal": true; }; }, { "itemKeydown": "itemKeydown"; "cellKeydown": "cellKeydown"; "selectedKeys": "selectedKeysChange"; "expandedItems": "expandedItemsChange"; "sorts": "sortsChange"; "currentPage": "currentPageChange"; }, ["columnControls"], never, true, [{ directive: typeof i1.SdEvents; inputs: {}; outputs: { "keydown.capture": "keydown.capture"; "focus.capture": "focus.capture"; "blur.capture": "blur.capture"; }; }]>;
|
|
163
163
|
}
|
|
164
164
|
export type { SortingDef } from "../../core/selection/useSortingManager";
|
|
165
165
|
//# sourceMappingURL=sd-sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-sheet.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/sd-sheet.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAclD,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,wCAAwC,CAAC;AAI5F,OAAO,KAAK,EACV,4BAA4B,EAE5B,gBAAgB,EAChB,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;;;AAcjE,qBAohBa,OAAO,CAAC,KAAK
|
|
1
|
+
{"version":3,"file":"sd-sheet.d.ts","sourceRoot":"","sources":["../../../src/data/sheet/sd-sheet.ts"],"names":[],"mappings":"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"}
|