@simplysm/angular 14.0.90 → 14.0.92
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/button/sd-button.js +2 -2
- package/dist/controls/list/sd-list-item.d.ts +4 -0
- package/dist/controls/list/sd-list-item.d.ts.map +1 -1
- package/dist/controls/list/sd-list-item.js +79 -35
- package/dist/controls/list/sd-list.d.ts.map +1 -1
- package/dist/controls/list/sd-list.js +3 -3
- package/dist/core/modal/sd-modal.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.js +3 -3
- package/dist/core/routing/injectCurrentPageCodeSignal.js +1 -1
- package/dist/core/routing/injectViewTypeSignal.d.ts.map +1 -1
- package/dist/data/crud/sd-base-container.js +11 -11
- package/dist/data/crud/sd-crud-detail.js +13 -13
- package/dist/data/crud/sd-crud-list.d.ts +4 -1
- package/dist/data/crud/sd-crud-list.d.ts.map +1 -1
- package/dist/data/crud/sd-crud-list.js +39 -35
- package/dist/data/shared-data/sd-shared-data-select-list.d.ts.map +1 -1
- package/dist/data/shared-data/sd-shared-data-select-list.js +60 -60
- package/dist/layout/sidebar/sd-sidebar-menu.d.ts.map +1 -1
- package/dist/layout/sidebar/sd-sidebar-menu.js +26 -29
- package/dist/layout/sidebar/sd-sidebar-user.d.ts +1 -0
- package/dist/layout/sidebar/sd-sidebar-user.d.ts.map +1 -1
- package/dist/layout/sidebar/sd-sidebar-user.js +37 -20
- package/dist/layout/sidebar/sd-sidebar.d.ts.map +1 -1
- package/dist/layout/sidebar/sd-sidebar.js +3 -3
- package/dist/layout/topbar/sd-topbar.d.ts.map +1 -1
- package/dist/layout/topbar/sd-topbar.js +10 -9
- package/package.json +8 -7
- package/scss/commons/_styles.scss +430 -428
- package/scss/commons/_variables.scss +4 -10
- package/scss/controls/_table.scss +2 -2
- package/src/controls/button/sd-button.ts +1 -1
- package/src/controls/list/sd-list-item.ts +218 -153
- package/src/controls/list/sd-list.ts +13 -0
- package/src/core/modal/sd-modal.ts +2 -1
- package/src/core/routing/injectCurrentPageCodeSignal.ts +1 -1
- package/src/core/routing/injectViewTypeSignal.ts +1 -0
- package/src/data/crud/sd-base-container.ts +3 -3
- package/src/data/crud/sd-crud-detail.ts +2 -2
- package/src/data/crud/sd-crud-list.ts +15 -10
- package/src/data/shared-data/sd-shared-data-select-list.ts +7 -8
- package/src/layout/sidebar/sd-sidebar-menu.ts +2 -5
- package/src/layout/sidebar/sd-sidebar-user.ts +15 -3
- package/src/layout/sidebar/sd-sidebar.ts +3 -2
- package/src/layout/topbar/sd-topbar.ts +7 -5
- package/{dist/styles.css → styles.css} +57 -22
|
@@ -18,26 +18,26 @@ const _c1 = ["filterTpl"];
|
|
|
18
18
|
const _c2 = ["undefinedTpl"];
|
|
19
19
|
const _c3 = (a0, a1, a2) => ({ $implicit: a0, item: a1, index: a2, depth: 0 });
|
|
20
20
|
const _forTrack0 = ($index, $item) => $item.__valueKey;
|
|
21
|
-
function
|
|
22
|
-
|
|
21
|
+
function SdSharedDataSelectList_Conditional_1_Conditional_2_ng_template_0_Template(rf, ctx) { }
|
|
22
|
+
function SdSharedDataSelectList_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
i0.ɵɵtemplate(0, SdSharedDataSelectList_Conditional_1_Conditional_2_ng_template_0_Template, 0, 0, "ng-template", 8);
|
|
24
|
+
} if (rf & 2) {
|
|
25
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
26
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.headerTplRef());
|
|
27
|
+
} }
|
|
28
|
+
function SdSharedDataSelectList_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
23
30
|
i0.ɵɵtext(1);
|
|
24
31
|
i0.ɵɵelementEnd();
|
|
25
32
|
} if (rf & 2) {
|
|
26
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
33
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
27
34
|
i0.ɵɵadvance();
|
|
28
35
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.header(), " ");
|
|
29
36
|
} }
|
|
30
|
-
function
|
|
31
|
-
function SdSharedDataSelectList_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
-
i0.ɵɵtemplate(0, SdSharedDataSelectList_Conditional_2_Conditional_2_ng_template_0_Template, 0, 0, "ng-template", 9);
|
|
33
|
-
} if (rf & 2) {
|
|
34
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
35
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.headerTplRef());
|
|
36
|
-
} }
|
|
37
|
-
function SdSharedDataSelectList_Conditional_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
+
function SdSharedDataSelectList_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
38
38
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
39
39
|
i0.ɵɵelementStart(0, "sd-anchor", 10);
|
|
40
|
-
i0.ɵɵlistener("click", function
|
|
40
|
+
i0.ɵɵlistener("click", function SdSharedDataSelectList_Conditional_1_Conditional_4_Template_sd_anchor_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onModalButtonClick()); });
|
|
41
41
|
i0.ɵɵelement(1, "ng-icon", 11);
|
|
42
42
|
i0.ɵɵelementEnd();
|
|
43
43
|
} if (rf & 2) {
|
|
@@ -45,66 +45,69 @@ function SdSharedDataSelectList_Conditional_2_Conditional_3_Template(rf, ctx) {
|
|
|
45
45
|
i0.ɵɵadvance();
|
|
46
46
|
i0.ɵɵproperty("svg", ctx_r0.tablerExternalLink);
|
|
47
47
|
} }
|
|
48
|
-
function
|
|
49
|
-
i0.ɵɵelementStart(0, "div",
|
|
50
|
-
i0.ɵɵconditionalCreate(2,
|
|
48
|
+
function SdSharedDataSelectList_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "div", 3);
|
|
50
|
+
i0.ɵɵconditionalCreate(2, SdSharedDataSelectList_Conditional_1_Conditional_2_Template, 1, 1, null, 8);
|
|
51
|
+
i0.ɵɵconditionalCreate(3, SdSharedDataSelectList_Conditional_1_Conditional_3_Template, 2, 1, "div", 9);
|
|
51
52
|
i0.ɵɵelementEnd();
|
|
52
|
-
i0.ɵɵconditionalCreate(
|
|
53
|
+
i0.ɵɵconditionalCreate(4, SdSharedDataSelectList_Conditional_1_Conditional_4_Template, 2, 1, "sd-anchor");
|
|
53
54
|
i0.ɵɵelementEnd();
|
|
54
55
|
} if (rf & 2) {
|
|
55
56
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
56
57
|
i0.ɵɵadvance(2);
|
|
57
58
|
i0.ɵɵconditional(ctx_r0.headerTplRef() ? 2 : -1);
|
|
58
59
|
i0.ɵɵadvance();
|
|
59
|
-
i0.ɵɵconditional(ctx_r0.
|
|
60
|
+
i0.ɵɵconditional(ctx_r0.header() ? 3 : -1);
|
|
61
|
+
i0.ɵɵadvance();
|
|
62
|
+
i0.ɵɵconditional(ctx_r0.modal() ? 4 : -1);
|
|
60
63
|
} }
|
|
61
|
-
function
|
|
64
|
+
function SdSharedDataSelectList_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
62
65
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
63
66
|
i0.ɵɵelementStart(0, "sd-textfield", 12);
|
|
64
|
-
i0.ɵɵtwoWayListener("valueChange", function
|
|
67
|
+
i0.ɵɵtwoWayListener("valueChange", function SdSharedDataSelectList_Conditional_2_Template_sd_textfield_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.searchText, $event) || (ctx_r0.searchText = $event); return i0.ɵɵresetView($event); });
|
|
65
68
|
i0.ɵɵelementEnd();
|
|
66
69
|
} if (rf & 2) {
|
|
67
70
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
68
71
|
i0.ɵɵproperty("type", "text")("placeholder", "\uAC80\uC0C9\uC5B4");
|
|
69
72
|
i0.ɵɵtwoWayProperty("value", ctx_r0.searchText);
|
|
70
73
|
} }
|
|
71
|
-
function
|
|
72
|
-
function
|
|
74
|
+
function SdSharedDataSelectList_Conditional_3_ng_template_1_Template(rf, ctx) { }
|
|
75
|
+
function SdSharedDataSelectList_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
73
76
|
i0.ɵɵelementStart(0, "div");
|
|
74
|
-
i0.ɵɵtemplate(1,
|
|
77
|
+
i0.ɵɵtemplate(1, SdSharedDataSelectList_Conditional_3_ng_template_1_Template, 0, 0, "ng-template", 8);
|
|
75
78
|
i0.ɵɵelementEnd();
|
|
76
79
|
} if (rf & 2) {
|
|
77
80
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
78
81
|
i0.ɵɵadvance();
|
|
79
82
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.filterTplRef());
|
|
80
83
|
} }
|
|
81
|
-
function
|
|
84
|
+
function SdSharedDataSelectList_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
82
85
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
83
86
|
i0.ɵɵelementStart(0, "sd-pagination", 13);
|
|
84
|
-
i0.ɵɵtwoWayListener("currentPageChange", function
|
|
87
|
+
i0.ɵɵtwoWayListener("currentPageChange", function SdSharedDataSelectList_Conditional_6_Template_sd_pagination_currentPageChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.page, $event) || (ctx_r0.page = $event); return i0.ɵɵresetView($event); });
|
|
85
88
|
i0.ɵɵelementEnd();
|
|
86
89
|
} if (rf & 2) {
|
|
87
90
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
88
91
|
i0.ɵɵtwoWayProperty("currentPage", ctx_r0.page);
|
|
89
92
|
i0.ɵɵproperty("totalPageCount", ctx_r0.pageLength());
|
|
90
93
|
} }
|
|
91
|
-
function
|
|
92
|
-
function
|
|
93
|
-
i0.ɵɵtemplate(0,
|
|
94
|
+
function SdSharedDataSelectList_Conditional_8_Conditional_1_ng_template_0_Template(rf, ctx) { }
|
|
95
|
+
function SdSharedDataSelectList_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
96
|
+
i0.ɵɵtemplate(0, SdSharedDataSelectList_Conditional_8_Conditional_1_ng_template_0_Template, 0, 0, "ng-template", 8);
|
|
94
97
|
} if (rf & 2) {
|
|
95
98
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
96
99
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.undefinedTplRef());
|
|
97
100
|
} }
|
|
98
|
-
function
|
|
101
|
+
function SdSharedDataSelectList_Conditional_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
99
102
|
i0.ɵɵelementStart(0, "span", 15);
|
|
100
103
|
i0.ɵɵtext(1, "\uBBF8\uC9C0\uC815");
|
|
101
104
|
i0.ɵɵelementEnd();
|
|
102
105
|
} }
|
|
103
|
-
function
|
|
106
|
+
function SdSharedDataSelectList_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
104
107
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
105
108
|
i0.ɵɵelementStart(0, "sd-list-item", 14);
|
|
106
|
-
i0.ɵɵlistener("click", function
|
|
107
|
-
i0.ɵɵconditionalCreate(1,
|
|
109
|
+
i0.ɵɵlistener("click", function SdSharedDataSelectList_Conditional_8_Template_sd_list_item_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.select(undefined)); });
|
|
110
|
+
i0.ɵɵconditionalCreate(1, SdSharedDataSelectList_Conditional_8_Conditional_1_Template, 1, 1, null, 8)(2, SdSharedDataSelectList_Conditional_8_Conditional_2_Template, 2, 0, "span", 15);
|
|
108
111
|
i0.ɵɵelementEnd();
|
|
109
112
|
} if (rf & 2) {
|
|
110
113
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -112,12 +115,12 @@ function SdSharedDataSelectList_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
112
115
|
i0.ɵɵadvance();
|
|
113
116
|
i0.ɵɵconditional(ctx_r0.undefinedTplRef() ? 1 : 2);
|
|
114
117
|
} }
|
|
115
|
-
function
|
|
116
|
-
function
|
|
118
|
+
function SdSharedDataSelectList_For_10_ng_template_1_Template(rf, ctx) { }
|
|
119
|
+
function SdSharedDataSelectList_For_10_Template(rf, ctx) { if (rf & 1) {
|
|
117
120
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
118
121
|
i0.ɵɵelementStart(0, "sd-list-item", 14);
|
|
119
|
-
i0.ɵɵlistener("click", function
|
|
120
|
-
i0.ɵɵtemplate(1,
|
|
122
|
+
i0.ɵɵlistener("click", function SdSharedDataSelectList_For_10_Template_sd_list_item_click_0_listener() { const item_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.toggle(item_r7)); });
|
|
123
|
+
i0.ɵɵtemplate(1, SdSharedDataSelectList_For_10_ng_template_1_Template, 0, 0, "ng-template", 16);
|
|
121
124
|
i0.ɵɵelementEnd();
|
|
122
125
|
} if (rf & 2) {
|
|
123
126
|
const item_r7 = ctx.$implicit;
|
|
@@ -214,30 +217,28 @@ export class SdSharedDataSelectList {
|
|
|
214
217
|
i0.ɵɵcontentQuerySignal(dirIndex, ctx.headerTplRef, _c0, 5, TemplateRef)(dirIndex, ctx.filterTplRef, _c1, 5, TemplateRef)(dirIndex, ctx.itemTplRef, SdItemOfTemplate, 5, TemplateRef)(dirIndex, ctx.undefinedTplRef, _c2, 5, TemplateRef);
|
|
215
218
|
} if (rf & 2) {
|
|
216
219
|
i0.ɵɵqueryAdvance(4);
|
|
217
|
-
} }, hostAttrs: [1, "flex-column", "fill"], inputs: { selectedItem: [1, "selectedItem"], canChangeFn: [1, "canChangeFn"], items: [1, "items"], selectedIcon: [1, "selectedIcon"], useUndefined: [1, "useUndefined"], filterFn: [1, "filterFn"], modal: [1, "modal"], header: [1, "header"], pageItemCount: [1, "pageItemCount"] }, outputs: { selectedItem: "selectedItemChange" }, decls:
|
|
218
|
-
i0.ɵɵ
|
|
219
|
-
i0.ɵɵ
|
|
220
|
-
i0.ɵɵconditionalCreate(2, SdSharedDataSelectList_Conditional_2_Template,
|
|
221
|
-
i0.ɵɵconditionalCreate(3, SdSharedDataSelectList_Conditional_3_Template, 1, 3, "sd-textfield", 3)(4, SdSharedDataSelectList_Conditional_4_Template, 2, 1, "div");
|
|
220
|
+
} }, hostAttrs: [1, "flex-column", "fill"], inputs: { selectedItem: [1, "selectedItem"], canChangeFn: [1, "canChangeFn"], items: [1, "items"], selectedIcon: [1, "selectedIcon"], useUndefined: [1, "useUndefined"], filterFn: [1, "filterFn"], modal: [1, "modal"], header: [1, "header"], pageItemCount: [1, "pageItemCount"] }, outputs: { selectedItem: "selectedItemChange" }, decls: 11, vars: 5, consts: [[1, "flex-column", "gap-sm", "pt-default", "ph-sm"], [1, "flex-row"], [3, "type", "placeholder", "value"], [1, "flex-fill"], [1, "flex-column", "gap-default"], [3, "currentPage", "totalPageCount"], [1, "flex-fill", 3, "inset"], [3, "selected", "selectedIcon"], [3, "ngTemplateOutlet"], [1, "control-header"], [3, "click"], [3, "svg"], [3, "valueChange", "type", "placeholder", "value"], [3, "currentPageChange", "currentPage", "totalPageCount"], [3, "click", "selected", "selectedIcon"], [1, "tx-theme-gray-default"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function SdSharedDataSelectList_Template(rf, ctx) { if (rf & 1) {
|
|
221
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
222
|
+
i0.ɵɵconditionalCreate(1, SdSharedDataSelectList_Conditional_1_Template, 5, 3, "div", 1);
|
|
223
|
+
i0.ɵɵconditionalCreate(2, SdSharedDataSelectList_Conditional_2_Template, 1, 3, "sd-textfield", 2)(3, SdSharedDataSelectList_Conditional_3_Template, 2, 1, "div");
|
|
222
224
|
i0.ɵɵelementEnd();
|
|
223
|
-
i0.ɵɵelementStart(
|
|
224
|
-
i0.ɵɵconditionalCreate(
|
|
225
|
-
i0.ɵɵelementStart(
|
|
226
|
-
i0.ɵɵconditionalCreate(
|
|
227
|
-
i0.ɵɵrepeaterCreate(
|
|
225
|
+
i0.ɵɵelementStart(4, "div", 3)(5, "div", 4);
|
|
226
|
+
i0.ɵɵconditionalCreate(6, SdSharedDataSelectList_Conditional_6_Template, 1, 2, "sd-pagination", 5);
|
|
227
|
+
i0.ɵɵelementStart(7, "sd-list", 6);
|
|
228
|
+
i0.ɵɵconditionalCreate(8, SdSharedDataSelectList_Conditional_8_Template, 3, 3, "sd-list-item", 7);
|
|
229
|
+
i0.ɵɵrepeaterCreate(9, SdSharedDataSelectList_For_10_Template, 2, 8, "sd-list-item", 7, _forTrack0);
|
|
228
230
|
i0.ɵɵelementEnd()()();
|
|
229
231
|
} if (rf & 2) {
|
|
230
|
-
i0.ɵɵconditional(ctx.header() ? 0 : -1);
|
|
231
|
-
i0.ɵɵadvance(2);
|
|
232
|
-
i0.ɵɵconditional(ctx.headerTplRef() || ctx.modal() ? 2 : -1);
|
|
233
232
|
i0.ɵɵadvance();
|
|
234
|
-
i0.ɵɵconditional(
|
|
233
|
+
i0.ɵɵconditional(ctx.header() || ctx.headerTplRef() || ctx.modal() ? 1 : -1);
|
|
234
|
+
i0.ɵɵadvance();
|
|
235
|
+
i0.ɵɵconditional(!ctx.filterTplRef() ? 2 : 3);
|
|
235
236
|
i0.ɵɵadvance(4);
|
|
236
|
-
i0.ɵɵconditional(ctx.pageItemCount() ?
|
|
237
|
+
i0.ɵɵconditional(ctx.pageItemCount() ? 6 : -1);
|
|
237
238
|
i0.ɵɵadvance();
|
|
238
239
|
i0.ɵɵproperty("inset", true);
|
|
239
240
|
i0.ɵɵadvance();
|
|
240
|
-
i0.ɵɵconditional(ctx.useUndefined() ?
|
|
241
|
+
i0.ɵɵconditional(ctx.useUndefined() ? 8 : -1);
|
|
241
242
|
i0.ɵɵadvance();
|
|
242
243
|
i0.ɵɵrepeater(ctx.displayItems());
|
|
243
244
|
} }, dependencies: [NgTemplateOutlet,
|
|
@@ -268,19 +269,18 @@ export class SdSharedDataSelectList {
|
|
|
268
269
|
class: "flex-column fill",
|
|
269
270
|
},
|
|
270
271
|
template: `
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
{{ header() }}
|
|
274
|
-
</div>
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
<div class="flex-column gap-sm p-default pt-0">
|
|
278
|
-
@if (headerTplRef() || modal()) {
|
|
272
|
+
<div class="flex-column gap-sm pt-default ph-sm">
|
|
273
|
+
@if (header() || headerTplRef() || modal()) {
|
|
279
274
|
<div class="flex-row">
|
|
280
275
|
<div class="flex-fill">
|
|
281
276
|
@if (headerTplRef()) {
|
|
282
277
|
<ng-template [ngTemplateOutlet]="headerTplRef()!"></ng-template>
|
|
283
278
|
}
|
|
279
|
+
@if (header()) {
|
|
280
|
+
<div class="control-header">
|
|
281
|
+
{{ header() }}
|
|
282
|
+
</div>
|
|
283
|
+
}
|
|
284
284
|
</div>
|
|
285
285
|
@if (modal()) {
|
|
286
286
|
<sd-anchor (click)="onModalButtonClick()">
|
|
@@ -348,4 +348,4 @@ export class SdSharedDataSelectList {
|
|
|
348
348
|
}, isSignal: true }] }], itemTplRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdItemOfTemplate), { ...{ read: TemplateRef }, isSignal: true }] }], undefinedTplRef: [{ type: i0.ContentChild, args: ["undefinedTpl", { ...{
|
|
349
349
|
read: TemplateRef,
|
|
350
350
|
}, isSignal: true }] }], pageItemCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageItemCount", required: false }] }] }); })();
|
|
351
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelectList, { className: "SdSharedDataSelectList", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select-list.ts", lineNumber:
|
|
351
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSharedDataSelectList, { className: "SdSharedDataSelectList", filePath: "packages/angular/src/data/shared-data/sd-shared-data-select-list.ts", lineNumber: 128 }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-sidebar-menu.d.ts","sourceRoot":"","sources":["../../../src/layout/sidebar/sd-sidebar-menu.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,+BAA+B,CAAC;;AAQvC,
|
|
1
|
+
{"version":3,"file":"sd-sidebar-menu.d.ts","sourceRoot":"","sources":["../../../src/layout/sidebar/sd-sidebar-menu.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,+BAA+B,CAAC;;AAQvC,qBAyEa,aAAa;IACxB,KAAK,gDAAuB;IAC5B,MAAM,wEAAiC;IACvC,mBAAmB,8CAAgB,MAAM,KAAK,OAAO,eAAI;IAEzD,YAAY,yCAA8B;IAE1C,UAAU,uDAAsF;IAEhG,uBAAuB,CACrB,IAAI,EAAE,MAAM,GACX;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;KAAE,GAAG,SAAS;IAIhF,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIxC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAM/B,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAG;QACpC,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;yCA5BS,aAAa;2CAAb,aAAa;CA6BzB"}
|
|
@@ -11,42 +11,41 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
const _c0 = a0 => ({ menus: a0, depth: 0 });
|
|
12
12
|
const _c1 = (a0, a1) => ({ menus: a0, depth: a1 });
|
|
13
13
|
const _forTrack0 = ($index, $item) => $item.codeChain.join(".");
|
|
14
|
-
function
|
|
15
|
-
function
|
|
14
|
+
function SdSidebarMenu_ng_template_4_Template(rf, ctx) { }
|
|
15
|
+
function SdSidebarMenu_ng_template_5_For_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
16
16
|
i0.ɵɵelement(0, "ng-icon", 8);
|
|
17
17
|
i0.ɵɵtext(1, " \u00A0 ");
|
|
18
18
|
} if (rf & 2) {
|
|
19
19
|
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
20
20
|
i0.ɵɵproperty("svg", menu_r2.icon);
|
|
21
21
|
} }
|
|
22
|
-
function
|
|
23
|
-
function
|
|
22
|
+
function SdSidebarMenu_ng_template_5_For_1_Conditional_3_ng_template_1_Template(rf, ctx) { }
|
|
23
|
+
function SdSidebarMenu_ng_template_5_For_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
24
24
|
i0.ɵɵelementStart(0, "sd-list", 7);
|
|
25
|
-
i0.ɵɵtemplate(1,
|
|
25
|
+
i0.ɵɵtemplate(1, SdSidebarMenu_ng_template_5_For_1_Conditional_3_ng_template_1_Template, 0, 0, "ng-template", 3);
|
|
26
26
|
i0.ɵɵelementEnd();
|
|
27
27
|
} if (rf & 2) {
|
|
28
28
|
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
29
29
|
const depth_r4 = i0.ɵɵnextContext().depth;
|
|
30
30
|
i0.ɵɵnextContext();
|
|
31
|
-
const itemTpl_r5 = i0.ɵɵreference(
|
|
31
|
+
const itemTpl_r5 = i0.ɵɵreference(6);
|
|
32
32
|
i0.ɵɵproperty("inset", true);
|
|
33
33
|
i0.ɵɵadvance();
|
|
34
34
|
i0.ɵɵproperty("ngTemplateOutlet", itemTpl_r5)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c1, menu_r2.children, depth_r4 + 1));
|
|
35
35
|
} }
|
|
36
|
-
function
|
|
36
|
+
function SdSidebarMenu_ng_template_5_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
37
37
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
38
38
|
i0.ɵɵelementStart(0, "sd-list-item", 6);
|
|
39
|
-
i0.ɵɵlistener("click", function
|
|
40
|
-
i0.ɵɵconditionalCreate(1,
|
|
39
|
+
i0.ɵɵlistener("click", function SdSidebarMenu_ng_template_5_For_1_Template_sd_list_item_click_0_listener() { const menu_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onMenuClick(menu_r2)); });
|
|
40
|
+
i0.ɵɵconditionalCreate(1, SdSidebarMenu_ng_template_5_For_1_Conditional_1_Template, 2, 1);
|
|
41
41
|
i0.ɵɵtext(2);
|
|
42
|
-
i0.ɵɵconditionalCreate(3,
|
|
42
|
+
i0.ɵɵconditionalCreate(3, SdSidebarMenu_ng_template_5_For_1_Conditional_3_Template, 2, 6, "sd-list", 7);
|
|
43
43
|
i0.ɵɵelementEnd();
|
|
44
44
|
} if (rf & 2) {
|
|
45
45
|
const menu_r2 = ctx.$implicit;
|
|
46
46
|
const depth_r4 = i0.ɵɵnextContext().depth;
|
|
47
47
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
48
|
-
i0.ɵɵ
|
|
49
|
-
i0.ɵɵproperty("contentClass", depth_r4 === 0 ? "pv-default" : "")("sdRouterLink", ctx_r2.getMenuRouterLinkOption(menu_r2))("selected", ctx_r2.getIsMenuSelected(menu_r2))("layout", depth_r4 === 0 ? ctx_r2.rootLayout() : "accordion");
|
|
48
|
+
i0.ɵɵproperty("sdRouterLink", ctx_r2.getMenuRouterLinkOption(menu_r2))("selected", ctx_r2.getIsMenuSelected(menu_r2))("layout", depth_r4 === 0 ? ctx_r2.rootLayout() : "accordion");
|
|
50
49
|
i0.ɵɵadvance();
|
|
51
50
|
i0.ɵɵconditional(menu_r2.icon ? 1 : -1);
|
|
52
51
|
i0.ɵɵadvance();
|
|
@@ -54,8 +53,8 @@ function SdSidebarMenu_ng_template_4_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
54
53
|
i0.ɵɵadvance();
|
|
55
54
|
i0.ɵɵconditional(menu_r2.children ? 3 : -1);
|
|
56
55
|
} }
|
|
57
|
-
function
|
|
58
|
-
i0.ɵɵrepeaterCreate(0,
|
|
56
|
+
function SdSidebarMenu_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
57
|
+
i0.ɵɵrepeaterCreate(0, SdSidebarMenu_ng_template_5_For_1_Template, 4, 6, "sd-list-item", 5, _forTrack0);
|
|
59
58
|
} if (rf & 2) {
|
|
60
59
|
const currMenus_r6 = ctx.menus;
|
|
61
60
|
i0.ɵɵrepeater(currMenus_r6);
|
|
@@ -81,17 +80,17 @@ export class SdSidebarMenu {
|
|
|
81
80
|
static ɵfac = function SdSidebarMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdSidebarMenu)(); };
|
|
82
81
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdSidebarMenu, selectors: [["sd-sidebar-menu"]], hostAttrs: [1, "flex-column", "fill"], hostVars: 1, hostBindings: function SdSidebarMenu_HostBindings(rf, ctx) { if (rf & 2) {
|
|
83
82
|
i0.ɵɵattribute("data-sd-root-layout", ctx.rootLayout());
|
|
84
|
-
} }, inputs: { menus: [1, "menus"], layout: [1, "layout"], getMenuIsSelectedFn: [1, "getMenuIsSelectedFn"] }, decls:
|
|
85
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
86
|
-
i0.ɵɵtext(
|
|
83
|
+
} }, inputs: { menus: [1, "menus"], layout: [1, "layout"], getMenuIsSelectedFn: [1, "getMenuIsSelectedFn"] }, decls: 7, vars: 6, consts: [["itemTpl", ""], [1, "control-header", "p-default"], [1, "flex-fill", 3, "inset"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "typed"], [3, "sdRouterLink", "selected", "layout"], [3, "click", "sdRouterLink", "selected", "layout"], [3, "inset"], [3, "svg"]], template: function SdSidebarMenu_Template(rf, ctx) { if (rf & 1) {
|
|
84
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "b");
|
|
85
|
+
i0.ɵɵtext(2, "MENU");
|
|
86
|
+
i0.ɵɵelementEnd()();
|
|
87
|
+
i0.ɵɵelementStart(3, "sd-list", 2);
|
|
88
|
+
i0.ɵɵtemplate(4, SdSidebarMenu_ng_template_4_Template, 0, 0, "ng-template", 3);
|
|
87
89
|
i0.ɵɵelementEnd();
|
|
88
|
-
i0.ɵɵ
|
|
89
|
-
i0.ɵɵtemplate(3, SdSidebarMenu_ng_template_3_Template, 0, 0, "ng-template", 3);
|
|
90
|
-
i0.ɵɵelementEnd();
|
|
91
|
-
i0.ɵɵtemplate(4, SdSidebarMenu_ng_template_4_Template, 2, 0, "ng-template", 4, 0, i0.ɵɵtemplateRefExtractor);
|
|
90
|
+
i0.ɵɵtemplate(5, SdSidebarMenu_ng_template_5_Template, 2, 0, "ng-template", 4, 0, i0.ɵɵtemplateRefExtractor);
|
|
92
91
|
} if (rf & 2) {
|
|
93
|
-
const itemTpl_r5 = i0.ɵɵreference(
|
|
94
|
-
i0.ɵɵadvance(
|
|
92
|
+
const itemTpl_r5 = i0.ɵɵreference(6);
|
|
93
|
+
i0.ɵɵadvance(3);
|
|
95
94
|
i0.ɵɵproperty("inset", true);
|
|
96
95
|
i0.ɵɵadvance();
|
|
97
96
|
i0.ɵɵproperty("ngTemplateOutlet", itemTpl_r5)("ngTemplateOutletContext", i0.ɵɵpureFunction1(4, _c0, ctx.menus()));
|
|
@@ -102,7 +101,7 @@ export class SdSidebarMenu {
|
|
|
102
101
|
SdRouterLink,
|
|
103
102
|
SdList,
|
|
104
103
|
SdListItem,
|
|
105
|
-
NgIcon], styles: ["sd-sidebar-menu > sd-list[data-sd-inset=true] sd-list {\n background: var(--trans-lightest);\n}\nsd-sidebar-menu:not([data-sd-root-layout=accordion]) > sd-list[data-sd-inset=true] > sd-list-item > sd-collapse > ._content > sd-list {\n background: transparent;\n}"], encapsulation: 2, changeDetection: 0 });
|
|
104
|
+
NgIcon], styles: ["sd-sidebar-menu > sd-list[data-sd-inset=true] sd-list {\n background: var(--trans-lightest);\n}\nsd-sidebar-menu:not([data-sd-root-layout=accordion]) > sd-list[data-sd-inset=true] > sd-list-item > sd-collapse > ._content > ._children > sd-list {\n background: transparent;\n}"], encapsulation: 2, changeDetection: 0 });
|
|
106
105
|
}
|
|
107
106
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdSidebarMenu, [{
|
|
108
107
|
type: Component,
|
|
@@ -117,7 +116,7 @@ export class SdSidebarMenu {
|
|
|
117
116
|
"class": "flex-column fill",
|
|
118
117
|
"[attr.data-sd-root-layout]": "rootLayout()",
|
|
119
118
|
}, template: `
|
|
120
|
-
<div class="control-header p-default">MENU</div>
|
|
119
|
+
<div class="control-header p-default"><b>MENU</b></div>
|
|
121
120
|
|
|
122
121
|
<sd-list class="flex-fill" [inset]="true">
|
|
123
122
|
<ng-template
|
|
@@ -129,8 +128,6 @@ export class SdSidebarMenu {
|
|
|
129
128
|
<ng-template #itemTpl [typed]="itemTemplateType" let-currMenus="menus" let-depth="depth">
|
|
130
129
|
@for (menu of currMenus; track menu.codeChain.join(".")) {
|
|
131
130
|
<sd-list-item
|
|
132
|
-
[contentClass]="depth === 0 ? 'pv-default' : ''"
|
|
133
|
-
[style.text-indent.em]="depth > 0 ? (depth + 1) * 0.5 : undefined"
|
|
134
131
|
[sdRouterLink]="getMenuRouterLinkOption(menu)"
|
|
135
132
|
(click)="onMenuClick(menu)"
|
|
136
133
|
[selected]="getIsMenuSelected(menu)"
|
|
@@ -155,6 +152,6 @@ export class SdSidebarMenu {
|
|
|
155
152
|
</sd-list-item>
|
|
156
153
|
}
|
|
157
154
|
</ng-template>
|
|
158
|
-
`, styles: ["sd-sidebar-menu > sd-list[data-sd-inset=true] sd-list {\n background: var(--trans-lightest);\n}\nsd-sidebar-menu:not([data-sd-root-layout=accordion]) > sd-list[data-sd-inset=true] > sd-list-item > sd-collapse > ._content > sd-list {\n background: transparent;\n}"] }]
|
|
155
|
+
`, styles: ["sd-sidebar-menu > sd-list[data-sd-inset=true] sd-list {\n background: var(--trans-lightest);\n}\nsd-sidebar-menu:not([data-sd-root-layout=accordion]) > sd-list[data-sd-inset=true] > sd-list-item > sd-collapse > ._content > ._children > sd-list {\n background: transparent;\n}"] }]
|
|
159
156
|
}], null, { menus: [{ type: i0.Input, args: [{ isSignal: true, alias: "menus", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], getMenuIsSelectedFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "getMenuIsSelectedFn", required: false }] }] }); })();
|
|
160
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSidebarMenu, { className: "SdSidebarMenu", filePath: "packages/angular/src/layout/sidebar/sd-sidebar-menu.ts", lineNumber:
|
|
157
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSidebarMenu, { className: "SdSidebarMenu", filePath: "packages/angular/src/layout/sidebar/sd-sidebar-menu.ts", lineNumber: 88 }); })();
|
|
@@ -7,6 +7,7 @@ export declare class SdSidebarUser {
|
|
|
7
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<SdSidebarUser, "sd-sidebar-user", never, { "userMenu": { "alias": "userMenu"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
8
|
}
|
|
9
9
|
export interface SdSidebarUserMenu {
|
|
10
|
+
icon?: string;
|
|
10
11
|
title: string;
|
|
11
12
|
menus: {
|
|
12
13
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-sidebar-user.d.ts","sourceRoot":"","sources":["../../../src/layout/sidebar/sd-sidebar-user.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"sd-sidebar-user.d.ts","sourceRoot":"","sources":["../../../src/layout/sidebar/sd-sidebar-user.ts"],"names":[],"mappings":";AAcA,qBAoEa,aAAa;IACxB,QAAQ,qEAA8B;IAEtC,QAAQ,kDAAiB;IAEzB,qBAAqB,IAAI,IAAI;yCALlB,aAAa;2CAAb,aAAa;CAQzB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;KACrC,EAAE,CAAC;CACL"}
|
|
@@ -4,36 +4,46 @@ import { SdCollapse } from "../../controls/collapse/sd-collapse";
|
|
|
4
4
|
import { SdRipple } from "../../core/ripple/sd-ripple";
|
|
5
5
|
import { SdList } from "../../controls/list/sd-list";
|
|
6
6
|
import { SdListItem } from "../../controls/list/sd-list-item";
|
|
7
|
+
import { NgIcon } from "@ng-icons/core";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
const _c0 = ["*"];
|
|
9
10
|
const _forTrack0 = ($index, $item) => $item.title;
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
function SdSidebarUser_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
i0.ɵɵelement(0, "ng-icon", 2);
|
|
13
|
+
} if (rf & 2) {
|
|
14
|
+
const _userMenu_r3 = i0.ɵɵnextContext();
|
|
15
|
+
i0.ɵɵproperty("svg", _userMenu_r3.icon);
|
|
16
|
+
} }
|
|
17
|
+
function SdSidebarUser_Conditional_2_For_7_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
19
|
+
i0.ɵɵelementStart(0, "sd-list-item", 6);
|
|
20
|
+
i0.ɵɵlistener("click", function SdSidebarUser_Conditional_2_For_7_Template_sd_list_item_click_0_listener() { const menu_r5 = i0.ɵɵrestoreView(_r4).$implicit; return i0.ɵɵresetView(menu_r5.onClick()); });
|
|
14
21
|
i0.ɵɵtext(1);
|
|
15
22
|
i0.ɵɵelementEnd();
|
|
16
23
|
} if (rf & 2) {
|
|
17
|
-
const
|
|
24
|
+
const menu_r5 = ctx.$implicit;
|
|
18
25
|
i0.ɵɵadvance();
|
|
19
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
26
|
+
i0.ɵɵtextInterpolate1(" ", menu_r5.title, " ");
|
|
20
27
|
} }
|
|
21
28
|
function SdSidebarUser_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
22
29
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
23
30
|
i0.ɵɵelementStart(0, "div", 1);
|
|
24
31
|
i0.ɵɵlistener("click", function SdSidebarUser_Conditional_2_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onMenuOpenButtonClick()); })("keydown.enter", function SdSidebarUser_Conditional_2_Template_div_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onMenuOpenButtonClick()); });
|
|
25
|
-
i0.ɵɵ
|
|
26
|
-
i0.ɵɵ
|
|
32
|
+
i0.ɵɵconditionalCreate(1, SdSidebarUser_Conditional_2_Conditional_1_Template, 1, 1, "ng-icon", 2);
|
|
33
|
+
i0.ɵɵtext(2);
|
|
34
|
+
i0.ɵɵelement(3, "sd-collapse-icon", 3);
|
|
27
35
|
i0.ɵɵelementEnd();
|
|
28
|
-
i0.ɵɵelementStart(
|
|
29
|
-
i0.ɵɵrepeaterCreate(
|
|
36
|
+
i0.ɵɵelementStart(4, "sd-collapse", 4)(5, "sd-list", 5);
|
|
37
|
+
i0.ɵɵrepeaterCreate(6, SdSidebarUser_Conditional_2_For_7_Template, 2, 1, "sd-list-item", null, _forTrack0);
|
|
30
38
|
i0.ɵɵelementEnd()();
|
|
31
39
|
} if (rf & 2) {
|
|
32
|
-
const
|
|
40
|
+
const _userMenu_r3 = ctx;
|
|
33
41
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
34
42
|
i0.ɵɵproperty("sdRipple", true);
|
|
35
43
|
i0.ɵɵadvance();
|
|
36
|
-
i0.ɵɵ
|
|
44
|
+
i0.ɵɵconditional(_userMenu_r3.icon ? 1 : -1);
|
|
45
|
+
i0.ɵɵadvance();
|
|
46
|
+
i0.ɵɵtextInterpolate1(" ", _userMenu_r3.title, " ");
|
|
37
47
|
i0.ɵɵadvance();
|
|
38
48
|
i0.ɵɵproperty("open", ctx_r1.menuOpen())("openRotate", 180);
|
|
39
49
|
i0.ɵɵadvance();
|
|
@@ -41,7 +51,7 @@ function SdSidebarUser_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
41
51
|
i0.ɵɵadvance();
|
|
42
52
|
i0.ɵɵproperty("inset", true);
|
|
43
53
|
i0.ɵɵadvance();
|
|
44
|
-
i0.ɵɵrepeater(
|
|
54
|
+
i0.ɵɵrepeater(_userMenu_r3.menus);
|
|
45
55
|
} }
|
|
46
56
|
export class SdSidebarUser {
|
|
47
57
|
userMenu = input(...(ngDevMode ? [undefined, { debugName: "userMenu" }] : /* istanbul ignore next */ []));
|
|
@@ -50,22 +60,26 @@ export class SdSidebarUser {
|
|
|
50
60
|
this.menuOpen.update((v) => !v);
|
|
51
61
|
}
|
|
52
62
|
static ɵfac = function SdSidebarUser_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdSidebarUser)(); };
|
|
53
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdSidebarUser, selectors: [["sd-sidebar-user"]],
|
|
63
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdSidebarUser, selectors: [["sd-sidebar-user"]], hostVars: 2, hostBindings: function SdSidebarUser_HostBindings(rf, ctx) { if (rf & 2) {
|
|
64
|
+
i0.ɵɵclassMap("pv-lg");
|
|
65
|
+
} }, inputs: { userMenu: [1, "userMenu"] }, ngContentSelectors: _c0, decls: 3, vars: 1, consts: [[1, "p-xs-default"], ["tabindex", "0", 1, "_menu-button", 3, "click", "keydown.enter", "sdRipple"], [3, "svg"], [2, "float", "right", 3, "open", "openRotate"], [3, "open"], [3, "inset"], [3, "click"]], template: function SdSidebarUser_Template(rf, ctx) { if (rf & 1) {
|
|
54
66
|
i0.ɵɵprojectionDef();
|
|
55
67
|
i0.ɵɵelementStart(0, "div", 0);
|
|
56
68
|
i0.ɵɵprojection(1);
|
|
57
69
|
i0.ɵɵelementEnd();
|
|
58
|
-
i0.ɵɵconditionalCreate(2, SdSidebarUser_Conditional_2_Template,
|
|
70
|
+
i0.ɵɵconditionalCreate(2, SdSidebarUser_Conditional_2_Template, 8, 7);
|
|
59
71
|
} if (rf & 2) {
|
|
60
72
|
let tmp_0_0;
|
|
61
73
|
i0.ɵɵadvance(2);
|
|
62
74
|
i0.ɵɵconditional((tmp_0_0 = ctx.userMenu()) ? 2 : -1, tmp_0_0);
|
|
63
|
-
} }, dependencies: [SdCollapseIcon, SdCollapse, SdRipple, SdList, SdListItem], styles: ["sd-sidebar-user {\n display: block;\n}\nsd-sidebar-user > ._menu-button {\n display: block;\n cursor: pointer;\n user-select: none;\n padding: var(--gap-default);\n}\nsd-sidebar-user > ._menu-button:hover {\n background: var(--trans-lighter);\n}\nsd-sidebar-user > sd-collapse > ._content > sd-list {\n background: var(--trans-lightest);\n padding: var(--gap-xs) 0;\n}"], encapsulation: 2, changeDetection: 0 });
|
|
75
|
+
} }, dependencies: [SdCollapseIcon, SdCollapse, SdRipple, SdList, SdListItem, NgIcon], styles: ["sd-sidebar-user {\n display: block;\n}\nsd-sidebar-user > ._menu-button {\n display: block;\n cursor: pointer;\n user-select: none;\n color: var(--text-trans-light);\n padding: var(--gap-sm) var(--gap-default);\n border-radius: var(--border-radius-default);\n margin: 0 var(--gap-sm);\n}\nsd-sidebar-user > ._menu-button:hover {\n background: var(--trans-lighter);\n}\nsd-sidebar-user > sd-collapse > ._content > sd-list {\n background: var(--trans-lightest);\n padding: var(--gap-xs) 0;\n margin: 0 var(--gap-sm);\n}"], encapsulation: 2, changeDetection: 0 });
|
|
64
76
|
}
|
|
65
77
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdSidebarUser, [{
|
|
66
78
|
type: Component,
|
|
67
|
-
args: [{ selector: "sd-sidebar-user", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [SdCollapseIcon, SdCollapse, SdRipple, SdList, SdListItem],
|
|
68
|
-
|
|
79
|
+
args: [{ selector: "sd-sidebar-user", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [SdCollapseIcon, SdCollapse, SdRipple, SdList, SdListItem, NgIcon], host: {
|
|
80
|
+
"[class]": "'pv-lg'"
|
|
81
|
+
}, template: `
|
|
82
|
+
<div class="p-xs-default">
|
|
69
83
|
<ng-content />
|
|
70
84
|
</div>
|
|
71
85
|
@if (userMenu(); as _userMenu) {
|
|
@@ -76,6 +90,9 @@ export class SdSidebarUser {
|
|
|
76
90
|
(keydown.enter)="onMenuOpenButtonClick()"
|
|
77
91
|
[sdRipple]="true"
|
|
78
92
|
>
|
|
93
|
+
@if (_userMenu.icon) {
|
|
94
|
+
<ng-icon [svg]="_userMenu.icon" />
|
|
95
|
+
}
|
|
79
96
|
{{ _userMenu.title }}
|
|
80
97
|
<sd-collapse-icon [open]="menuOpen()" style="float: right;" [openRotate]="180" />
|
|
81
98
|
</div>
|
|
@@ -90,6 +107,6 @@ export class SdSidebarUser {
|
|
|
90
107
|
</sd-list>
|
|
91
108
|
</sd-collapse>
|
|
92
109
|
}
|
|
93
|
-
`, styles: ["sd-sidebar-user {\n display: block;\n}\nsd-sidebar-user > ._menu-button {\n display: block;\n cursor: pointer;\n user-select: none;\n padding: var(--gap-default);\n}\nsd-sidebar-user > ._menu-button:hover {\n background: var(--trans-lighter);\n}\nsd-sidebar-user > sd-collapse > ._content > sd-list {\n background: var(--trans-lightest);\n padding: var(--gap-xs) 0;\n}"] }]
|
|
110
|
+
`, styles: ["sd-sidebar-user {\n display: block;\n}\nsd-sidebar-user > ._menu-button {\n display: block;\n cursor: pointer;\n user-select: none;\n color: var(--text-trans-light);\n padding: var(--gap-sm) var(--gap-default);\n border-radius: var(--border-radius-default);\n margin: 0 var(--gap-sm);\n}\nsd-sidebar-user > ._menu-button:hover {\n background: var(--trans-lighter);\n}\nsd-sidebar-user > sd-collapse > ._content > sd-list {\n background: var(--trans-lightest);\n padding: var(--gap-xs) 0;\n margin: 0 var(--gap-sm);\n}"] }]
|
|
94
111
|
}], null, { userMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "userMenu", required: false }] }] }); })();
|
|
95
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSidebarUser, { className: "SdSidebarUser", filePath: "packages/angular/src/layout/sidebar/sd-sidebar-user.ts", lineNumber:
|
|
112
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSidebarUser, { className: "SdSidebarUser", filePath: "packages/angular/src/layout/sidebar/sd-sidebar-user.ts", lineNumber: 83 }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-sidebar.d.ts","sourceRoot":"","sources":["../../../src/layout/sidebar/sd-sidebar.ts"],"names":[],"mappings":";AAUA,
|
|
1
|
+
{"version":3,"file":"sd-sidebar.d.ts","sourceRoot":"","sources":["../../../src/layout/sidebar/sd-sidebar.ts"],"names":[],"mappings":";AAUA,qBAmDa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAE7B;IAEF,MAAM,0CAAgD;yCAL3C,SAAS;2CAAT,SAAS;CAMrB"}
|
|
@@ -11,7 +11,7 @@ export class SdSidebar {
|
|
|
11
11
|
} }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function SdSidebar_Template(rf, ctx) { if (rf & 1) {
|
|
12
12
|
i0.ɵɵprojectionDef();
|
|
13
13
|
i0.ɵɵprojection(0);
|
|
14
|
-
} }, styles: ["sd-sidebar {\n position: absolute;\n z-index: var(--z-index-sidebar);\n top: 0;\n left: 0;\n width: var(--sidebar-width);\n height: 100%;\n background: var(--
|
|
14
|
+
} }, styles: ["sd-sidebar {\n position: absolute;\n z-index: var(--z-index-sidebar);\n top: 0;\n left: 0;\n width: var(--sidebar-width);\n height: 100%;\n background: var(--theme-gray-lightest);\n}\n@media not all and (max-width: 520px) {\n sd-sidebar {\n transition: transform 0.1s ease-out;\n }\n sd-sidebar[data-sd-toggle=true] {\n transform: translateX(-100%);\n transition: transform 0.1s ease-in;\n }\n}\n@media all and (max-width: 520px) {\n sd-sidebar {\n transition: transform 0.3s ease-in;\n transform: translateX(-100%);\n }\n sd-sidebar[data-sd-toggle=true] {\n transform: none;\n transition: transform 0.3s ease-out;\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 }\n}"], encapsulation: 2, changeDetection: 0 });
|
|
15
15
|
}
|
|
16
16
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdSidebar, [{
|
|
17
17
|
type: Component,
|
|
@@ -19,6 +19,6 @@ export class SdSidebar {
|
|
|
19
19
|
"[attr.data-sd-toggle]": "toggle()",
|
|
20
20
|
}, template: `
|
|
21
21
|
<ng-content />
|
|
22
|
-
`, styles: ["sd-sidebar {\n position: absolute;\n z-index: var(--z-index-sidebar);\n top: 0;\n left: 0;\n width: var(--sidebar-width);\n height: 100%;\n background: var(--
|
|
22
|
+
`, styles: ["sd-sidebar {\n position: absolute;\n z-index: var(--z-index-sidebar);\n top: 0;\n left: 0;\n width: var(--sidebar-width);\n height: 100%;\n background: var(--theme-gray-lightest);\n}\n@media not all and (max-width: 520px) {\n sd-sidebar {\n transition: transform 0.1s ease-out;\n }\n sd-sidebar[data-sd-toggle=true] {\n transform: translateX(-100%);\n transition: transform 0.1s ease-in;\n }\n}\n@media all and (max-width: 520px) {\n sd-sidebar {\n transition: transform 0.3s ease-in;\n transform: translateX(-100%);\n }\n sd-sidebar[data-sd-toggle=true] {\n transform: none;\n transition: transform 0.3s ease-out;\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 }\n}"] }]
|
|
23
23
|
}], null, null); })();
|
|
24
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSidebar, { className: "SdSidebar", filePath: "packages/angular/src/layout/sidebar/sd-sidebar.ts", lineNumber:
|
|
24
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSidebar, { className: "SdSidebar", filePath: "packages/angular/src/layout/sidebar/sd-sidebar.ts", lineNumber: 62 }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-topbar.d.ts","sourceRoot":"","sources":["../../../src/layout/topbar/sd-topbar.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;;AAKrE,
|
|
1
|
+
{"version":3,"file":"sd-topbar.d.ts","sourceRoot":"","sources":["../../../src/layout/topbar/sd-topbar.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;;AAKrE,qBAgEa,QAAQ;IACnB,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAEvC;IAEH,gBAAgB,sEAA+B;IAE/C,UAAU,0CAER;IAEF,mBAAmB,IAAI,IAAI;IAO3B,SAAS,CAAC,QAAQ,CAAC,WAAW,oXAAe;yCAlBlC,QAAQ;2CAAR,QAAQ;CAmBpB"}
|
|
@@ -13,7 +13,7 @@ function SdTopbar_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
13
13
|
i0.ɵɵelementEnd();
|
|
14
14
|
} if (rf & 2) {
|
|
15
15
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
16
|
-
i0.ɵɵproperty("theme", "link-
|
|
16
|
+
i0.ɵɵproperty("size", "sm")("theme", "link-gray")("buttonClass", "p-xs-sm");
|
|
17
17
|
i0.ɵɵadvance();
|
|
18
18
|
i0.ɵɵproperty("svg", ctx_r1.tablerMenu2);
|
|
19
19
|
} }
|
|
@@ -31,23 +31,24 @@ export class SdTopbar {
|
|
|
31
31
|
}
|
|
32
32
|
tablerMenu2 = tablerMenu2;
|
|
33
33
|
static ɵfac = function SdTopbar_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdTopbar)(); };
|
|
34
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdTopbar, selectors: [["sd-topbar"]], hostAttrs: [1, "flex-row", "gap-
|
|
34
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdTopbar, selectors: [["sd-topbar"]], hostAttrs: [1, "flex-row", "gap-sm", "cross-align-center", "main-align-start"], inputs: { sidebarContainer: [1, "sidebarContainer"] }, ngContentSelectors: _c0, decls: 2, vars: 1, consts: [[3, "size", "theme", "buttonClass"], [3, "click", "size", "theme", "buttonClass"], [3, "svg"]], template: function SdTopbar_Template(rf, ctx) { if (rf & 1) {
|
|
35
35
|
i0.ɵɵprojectionDef();
|
|
36
|
-
i0.ɵɵconditionalCreate(0, SdTopbar_Conditional_0_Template, 2,
|
|
36
|
+
i0.ɵɵconditionalCreate(0, SdTopbar_Conditional_0_Template, 2, 4, "sd-button", 0);
|
|
37
37
|
i0.ɵɵprojection(1);
|
|
38
38
|
} if (rf & 2) {
|
|
39
39
|
i0.ɵɵconditional(ctx.hasSidebar() ? 0 : -1);
|
|
40
|
-
} }, dependencies: [SdButton, NgIcon], styles: ["sd-topbar {\n min-height: var(--topbar-height);\n overflow-x: auto;\n overflow-y: hidden;\n user-select: none;\n background: var(--
|
|
40
|
+
} }, dependencies: [SdButton, NgIcon], styles: ["sd-topbar {\n min-height: var(--topbar-height);\n overflow-x: auto;\n overflow-y: hidden;\n user-select: none;\n background: var(--theme-gray-lightest);\n color: var(--text-trans-default);\n border-bottom: 1px solid var(--border-color-lighter);\n padding-left: var(--gap-xs);\n}\nsd-topbar > h1 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h2 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h3 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h4 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h5 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h6 {\n padding-right: var(--gap-xl);\n}\nsd-topbar::-webkit-scrollbar-track {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar-corner {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar {\n width: var(--gap-sm);\n height: var(--gap-sm);\n background-color: transparent;\n}\nsd-topbar::-webkit-scrollbar-thumb {\n background-color: var(--trans-default);\n}"], encapsulation: 2, changeDetection: 0 });
|
|
41
41
|
}
|
|
42
42
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdTopbar, [{
|
|
43
43
|
type: Component,
|
|
44
44
|
args: [{ selector: "sd-topbar", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [SdButton, NgIcon], host: {
|
|
45
|
-
"class": "flex-row gap-
|
|
45
|
+
"class": "flex-row gap-sm cross-align-center main-align-start"
|
|
46
46
|
}, template: `
|
|
47
47
|
@if (hasSidebar()) {
|
|
48
48
|
<sd-button
|
|
49
|
-
[
|
|
50
|
-
[
|
|
49
|
+
[size]="'sm'"
|
|
50
|
+
[theme]="'link-gray'"
|
|
51
|
+
[buttonClass]="'p-xs-sm'"
|
|
51
52
|
(click)="onToggleButtonClick()"
|
|
52
53
|
>
|
|
53
54
|
<ng-icon [svg]="tablerMenu2" />
|
|
@@ -55,6 +56,6 @@ export class SdTopbar {
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
<ng-content />
|
|
58
|
-
`, styles: ["sd-topbar {\n min-height: var(--topbar-height);\n overflow-x: auto;\n overflow-y: hidden;\n user-select: none;\n background: var(--
|
|
59
|
+
`, styles: ["sd-topbar {\n min-height: var(--topbar-height);\n overflow-x: auto;\n overflow-y: hidden;\n user-select: none;\n background: var(--theme-gray-lightest);\n color: var(--text-trans-default);\n border-bottom: 1px solid var(--border-color-lighter);\n padding-left: var(--gap-xs);\n}\nsd-topbar > h1 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h2 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h3 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h4 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h5 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h6 {\n padding-right: var(--gap-xl);\n}\nsd-topbar::-webkit-scrollbar-track {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar-corner {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar {\n width: var(--gap-sm);\n height: var(--gap-sm);\n background-color: transparent;\n}\nsd-topbar::-webkit-scrollbar-thumb {\n background-color: var(--trans-default);\n}"] }]
|
|
59
60
|
}], null, { sidebarContainer: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarContainer", required: false }] }] }); })();
|
|
60
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdTopbar, { className: "SdTopbar", filePath: "packages/angular/src/layout/topbar/sd-topbar.ts", lineNumber:
|
|
61
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdTopbar, { className: "SdTopbar", filePath: "packages/angular/src/layout/topbar/sd-topbar.ts", lineNumber: 78 }); })();
|