@mozaic-ds/web-components 0.5.0 → 0.6.1
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/package.json +3 -3
- package/public/ClickOutside-63071e7a.js +1 -15
- package/public/ClickOutside-63071e7a.js.map +1 -1
- package/public/DataTableDefaultAction.nested-4da4dc44.js +1 -759
- package/public/DataTableDefaultAction.nested-4da4dc44.js.map +1 -1
- package/public/DataTableUtilities-60220c78.js +1 -370
- package/public/DataTableUtilities-60220c78.js.map +1 -1
- package/public/EventForward-8492ff62.js +1 -109
- package/public/EventForward-8492ff62.js.map +1 -1
- package/public/EventHandler-02058705.js +1 -15
- package/public/EventHandler-02058705.js.map +1 -1
- package/public/adeo/components/checkbox/Checkbox.js +1 -1
- package/public/adeo/components/checkbox/Checkbox.js.map +1 -1
- package/public/adeo/components/checkbox/Checkbox.svelte +2 -2
- package/public/adeo/components/datatable/DataTable.js +1 -1
- package/public/adeo/components/datatable/DataTable.js.map +1 -1
- package/public/adeo/components/datatable/DataTable.svelte +18 -18
- package/public/adeo/components/fileuploader/FileUploader.js +1 -1
- package/public/adeo/components/fileuploader/FileUploader.js.map +1 -1
- package/public/adeo/components/fileuploader/FileUploader.svelte +8 -5
- package/public/adeo/components/fileuploader/ResultFile.nested.js +1 -1
- package/public/adeo/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/adeo/components/layer/Layer.js +1 -1
- package/public/adeo/components/layer/Layer.js.map +1 -1
- package/public/adeo/components/layer/Layer.svelte +2 -1
- package/public/adeo/components/link/Link.js +1 -1
- package/public/adeo/components/link/Link.js.map +1 -1
- package/public/adeo/components/link/Link.svelte +1 -1
- package/public/adeo/components/phonenumber/PhoneNumber.js +1 -1
- package/public/adeo/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/adeo/components/phonenumber/PhoneNumber.svelte +72 -9
- package/public/adeo/components/quantityselector/QuantitySelector.js +1 -1
- package/public/adeo/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/adeo/components/quantityselector/QuantitySelector.svelte +6 -3
- package/public/adeo/components/resultfile/ResultFile.nested.svelte +1 -1
- package/public/array-5b770a93.js +1 -13
- package/public/array-5b770a93.js.map +1 -1
- package/public/axis-fbc0f7b5.js +1 -174
- package/public/axis-fbc0f7b5.js.map +1 -1
- package/public/band-d7a07d2c.js +1 -186
- package/public/band-d7a07d2c.js.map +1 -1
- package/public/bricoman/components/chart/Donut.js +1 -1
- package/public/bricoman/components/checkbox/Checkbox.js +1 -1
- package/public/bricoman/components/checkbox/Checkbox.js.map +1 -1
- package/public/bricoman/components/checkbox/Checkbox.svelte +2 -2
- package/public/bricoman/components/datatable/DataTable.js +1 -1
- package/public/bricoman/components/datatable/DataTable.js.map +1 -1
- package/public/bricoman/components/datatable/DataTable.svelte +18 -18
- package/public/bricoman/components/fileuploader/FileUploader.js +1 -1
- package/public/bricoman/components/fileuploader/FileUploader.js.map +1 -1
- package/public/bricoman/components/fileuploader/FileUploader.svelte +8 -5
- package/public/bricoman/components/fileuploader/ResultFile.nested.js +1 -1
- package/public/bricoman/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/bricoman/components/header/Header.js +1 -1
- package/public/bricoman/components/hero/Hero.js +1 -1
- package/public/bricoman/components/layer/Layer.js +1 -1
- package/public/bricoman/components/layer/Layer.js.map +1 -1
- package/public/bricoman/components/layer/Layer.svelte +2 -1
- package/public/bricoman/components/link/Link.js +1 -1
- package/public/bricoman/components/link/Link.js.map +1 -1
- package/public/bricoman/components/link/Link.svelte +1 -1
- package/public/bricoman/components/listbox/Listbox.js +1 -1
- package/public/bricoman/components/listbox/Listbox.nested.js +1 -1
- package/public/bricoman/components/phonenumber/PhoneNumber.js +1 -1
- package/public/bricoman/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/bricoman/components/phonenumber/PhoneNumber.svelte +72 -9
- package/public/bricoman/components/price/Price.js +1 -1
- package/public/bricoman/components/quantityselector/QuantitySelector.js +1 -1
- package/public/bricoman/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/bricoman/components/quantityselector/QuantitySelector.svelte +6 -3
- package/public/bricoman/components/resultfile/ResultFile.nested.svelte +1 -1
- package/public/components/accordion/Accordion.js +1 -365
- package/public/components/accordion/Accordion.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.js +1 -1515
- package/public/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/components/badge/Badge.js +1 -155
- package/public/components/badge/Badge.js.map +1 -1
- package/public/components/badge/Badge.nested.js +1 -101
- package/public/components/badge/Badge.nested.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.js +1 -372
- package/public/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js +1 -319
- package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/components/button/Button.js +1 -1138
- package/public/components/button/Button.js.map +1 -1
- package/public/components/card/Card.js +1 -369
- package/public/components/card/Card.js.map +1 -1
- package/public/components/chart/BarChart.js +1 -582
- package/public/components/chart/BarChart.js.map +1 -1
- package/public/components/chart/Donut.js +1 -1189
- package/public/components/chart/Donut.js.map +1 -1
- package/public/components/chart/GroupedBarChart.js +1 -750
- package/public/components/chart/GroupedBarChart.js.map +1 -1
- package/public/components/chart/LineChart.js +1 -1731
- package/public/components/chart/LineChart.js.map +1 -1
- package/public/components/chart/Radar.js +1 -729
- package/public/components/chart/Radar.js.map +1 -1
- package/public/components/chart/StackedBarChart.js +1 -745
- package/public/components/chart/StackedBarChart.js.map +1 -1
- package/public/components/checkbox/Checkbox.js +1 -307
- package/public/components/checkbox/Checkbox.js.map +1 -1
- package/public/components/checkbox/Checkbox.svelte +2 -2
- package/public/components/checkboxgroup/checkboxGroup.js +1 -404
- package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
- package/public/components/datatable/DataTable.js +1 -3064
- package/public/components/datatable/DataTable.js.map +1 -1
- package/public/components/datatable/DataTable.svelte +18 -18
- package/public/components/datatable/DataTableDefaultAction.nested.js +1 -4
- package/public/components/datatable/DataTableDefaultAction.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js +1 -164
- package/public/components/datatable/DataTableDefaultEdtion.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js +1 -380
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js +1 -424
- package/public/components/datatable/DataTableDefaultSelection.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js +1 -263
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js.map +1 -1
- package/public/components/datatable/DataTableFooter.nested.js +1 -637
- package/public/components/datatable/DataTableFooter.nested.js.map +1 -1
- package/public/components/dropdown/Dropdown.js +1 -1426
- package/public/components/dropdown/Dropdown.js.map +1 -1
- package/public/components/field/Field.js +1 -375
- package/public/components/field/Field.js.map +1 -1
- package/public/components/fileuploader/FileUploader.js +1 -555
- package/public/components/fileuploader/FileUploader.js.map +1 -1
- package/public/components/fileuploader/FileUploader.svelte +8 -5
- package/public/components/fileuploader/ResultFile.nested.js +1 -265
- package/public/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/components/flag/Flag.js +1 -174
- package/public/components/flag/Flag.js.map +1 -1
- package/public/components/header/Header.js +1 -903
- package/public/components/header/Header.js.map +1 -1
- package/public/components/hero/Hero.js +1 -271
- package/public/components/hero/Hero.js.map +1 -1
- package/public/components/layer/Layer.js +1 -453
- package/public/components/layer/Layer.js.map +1 -1
- package/public/components/layer/Layer.svelte +2 -1
- package/public/components/link/Link.js +1 -380
- package/public/components/link/Link.js.map +1 -1
- package/public/components/link/Link.svelte +1 -1
- package/public/components/listbox/Listbox.js +1 -595
- package/public/components/listbox/Listbox.js.map +1 -1
- package/public/components/listbox/Listbox.nested.js +1 -629
- package/public/components/listbox/Listbox.nested.js.map +1 -1
- package/public/components/loader/Loader.js +1 -246
- package/public/components/loader/Loader.js.map +1 -1
- package/public/components/loader/Loader.nested.js +1 -176
- package/public/components/loader/Loader.nested.js.map +1 -1
- package/public/components/modal/Modal.js +1 -395
- package/public/components/modal/Modal.js.map +1 -1
- package/public/components/notification/Notification.js +1 -458
- package/public/components/notification/Notification.js.map +1 -1
- package/public/components/optionbutton/OptionButton.js +1 -316
- package/public/components/optionbutton/OptionButton.js.map +1 -1
- package/public/components/overlay/Overlay.js +1 -104
- package/public/components/overlay/Overlay.js.map +1 -1
- package/public/components/overlay/OverlayLoader.js +1 -151
- package/public/components/overlay/OverlayLoader.js.map +1 -1
- package/public/components/pagination/Pagination.js +1 -613
- package/public/components/pagination/Pagination.js.map +1 -1
- package/public/components/passwordinput/PasswordInput.js +1 -291
- package/public/components/passwordinput/PasswordInput.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.js +1 -6894
- package/public/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/components/price/Price.js +1 -768
- package/public/components/price/Price.js.map +1 -1
- package/public/components/progressbar/ProgressBar.js +1 -278
- package/public/components/progressbar/ProgressBar.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.js +1 -333
- package/public/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.svelte +6 -3
- package/public/components/radio/Radio.js +1 -273
- package/public/components/radio/Radio.js.map +1 -1
- package/public/components/radiogroup/RadioGroup.js +1 -414
- package/public/components/radiogroup/RadioGroup.js.map +1 -1
- package/public/components/ratings/StarsInput.js +1 -292
- package/public/components/ratings/StarsInput.js.map +1 -1
- package/public/components/ratings/StarsResult.js +1 -246
- package/public/components/ratings/StarsResult.js.map +1 -1
- package/public/components/resultfile/ResultFile.nested.svelte +1 -1
- package/public/components/select/Select.js +1 -451
- package/public/components/select/Select.js.map +1 -1
- package/public/components/sidebar/Sidebar.js +1 -784
- package/public/components/sidebar/Sidebar.js.map +1 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js +1 -594
- package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-feature.nested.js +1 -402
- package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-section.nested.js +1 -394
- package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-segment.nested.js +1 -200
- package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-separator.nested.js +1 -49
- package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js +1 -312
- package/public/components/sidebar/sidebar-sub-features.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-user.nested.js +1 -733
- package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/components/stepper/Stepper.js +1 -371
- package/public/components/stepper/Stepper.js.map +1 -1
- package/public/components/tabs/Tabs.js +1 -615
- package/public/components/tabs/Tabs.js.map +1 -1
- package/public/components/tabs/Tabs.nested.js +1 -472
- package/public/components/tabs/Tabs.nested.js.map +1 -1
- package/public/components/tag/Tag.js +1 -665
- package/public/components/tag/Tag.js.map +1 -1
- package/public/components/tag/Tag.nested.js +1 -554
- package/public/components/tag/Tag.nested.js.map +1 -1
- package/public/components/taglist/TagList.js +1 -475
- package/public/components/taglist/TagList.js.map +1 -1
- package/public/components/textarea/Textarea.js +1 -303
- package/public/components/textarea/Textarea.js.map +1 -1
- package/public/components/textinput/Textinput.js +1 -497
- package/public/components/textinput/Textinput.js.map +1 -1
- package/public/components/textinput/Textinput.nested.js +1 -320
- package/public/components/textinput/Textinput.nested.js.map +1 -1
- package/public/components/toggle/Toggle.js +1 -278
- package/public/components/toggle/Toggle.js.map +1 -1
- package/public/components/tooltip/Tooltip.js +1 -173
- package/public/components/tooltip/Tooltip.js.map +1 -1
- package/public/index-c33b3772.js +1 -873
- package/public/index-c33b3772.js.map +1 -1
- package/public/linear-f46d7e9e.js +1 -700
- package/public/linear-f46d7e9e.js.map +1 -1
- package/public/path-1b5da959.js +1 -186
- package/public/path-1b5da959.js.map +1 -1
- package/public/sidebar-service-275bf9ef.js +1 -129
- package/public/sidebar-service-275bf9ef.js.map +1 -1
- package/public/symbol-b05a6e2b.js +1 -169
- package/public/symbol-b05a6e2b.js.map +1 -1
- package/public/transform-15d69d5d.js +1 -2743
- package/public/transform-15d69d5d.js.map +1 -1
- package/public/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +1 -1
- package/public/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +1 -1
|
@@ -1,395 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Sidebar_feature_group_nested from './sidebar-feature-group.nested.js';
|
|
3
|
-
import Sidebar_sub_features_nested from './sidebar-sub-features.nested.js';
|
|
4
|
-
import { t as toggleSidebar, i as isSidebarOpen } from '../../sidebar-service-275bf9ef.js';
|
|
5
|
-
import './sidebar-feature.nested.js';
|
|
6
|
-
import '../../EventHandler-02058705.js';
|
|
7
|
-
|
|
8
|
-
/* src/components/sidebar/sidebar-section.nested.svelte generated by Svelte v3.58.0 */
|
|
9
|
-
|
|
10
|
-
function add_css(target) {
|
|
11
|
-
append_styles(target, "svelte-10lx8df", ".mc-sidebar-section.svelte-10lx8df.svelte-10lx8df{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;min-height:38px;overflow-x:hidden;overflow-y:auto;overflow-y:overlay;padding:1px 0px;scrollbar-color:#8f94a3 #b3b3b3;scrollbar-width:thin}.mc-sidebar-section.svelte-10lx8df ul.svelte-10lx8df,.mc-sidebar-section.svelte-10lx8df li.svelte-10lx8df{list-style-type:none;margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.mc-sidebar-section.svelte-10lx8df ul.svelte-10lx8df{-webkit-box-align:start;-ms-flex-align:start;align-items:start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mc-sidebar-section.svelte-10lx8df ul li.svelte-10lx8df{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;margin:4px 0px}.mc-sidebar-section.svelte-10lx8df ul li.svelte-10lx8df:first-child{margin-top:0}.mc-sidebar-section.svelte-10lx8df ul li.svelte-10lx8df:last-child{margin-bottom:0}.mc-sidebar-section.svelte-10lx8df ul.is-hidden.svelte-10lx8df{-o-transition:margin-left 300ms ease-in-out;-webkit-transition:margin-left 300ms ease-in-out;transition:margin-left 300ms ease-in-out;margin-left:-320px;opacity:0}.mc-sidebar-section.svelte-10lx8df ul.is-visible.svelte-10lx8df{-o-transition:margin-left 300ms ease-in-out;-webkit-transition:margin-left 300ms ease-in-out;transition:margin-left 300ms ease-in-out;margin-left:0}.mc-sidebar-section.svelte-10lx8df.svelte-10lx8df::-webkit-scrollbar{width:5px;height:10px;background:#b3b3b3}.mc-sidebar-section.svelte-10lx8df.svelte-10lx8df::-webkit-scrollbar-thumb{background:#8f94a3}");
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function get_each_context(ctx, list, i) {
|
|
15
|
-
const child_ctx = ctx.slice();
|
|
16
|
-
child_ctx[10] = list[i];
|
|
17
|
-
return child_ctx;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// (37:0) {#if data?.length}
|
|
21
|
-
function create_if_block(ctx) {
|
|
22
|
-
let div;
|
|
23
|
-
let ul;
|
|
24
|
-
let ul_class_value;
|
|
25
|
-
let ul_aria_hidden_value;
|
|
26
|
-
let t;
|
|
27
|
-
let current;
|
|
28
|
-
let each_value = /*data*/ ctx[0];
|
|
29
|
-
let each_blocks = [];
|
|
30
|
-
|
|
31
|
-
for (let i = 0; i < each_value.length; i += 1) {
|
|
32
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
|
36
|
-
each_blocks[i] = null;
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
let if_block = /*expandedSubGroup*/ ctx[3] && /*$isSidebarOpen*/ ctx[4] && create_if_block_1(ctx);
|
|
40
|
-
|
|
41
|
-
return {
|
|
42
|
-
c() {
|
|
43
|
-
div = element("div");
|
|
44
|
-
ul = element("ul");
|
|
45
|
-
|
|
46
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
47
|
-
each_blocks[i].c();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
t = space();
|
|
51
|
-
if (if_block) if_block.c();
|
|
52
|
-
|
|
53
|
-
attr(ul, "class", ul_class_value = "" + (null_to_empty(/*expandedSubGroup*/ ctx[3] && /*$isSidebarOpen*/ ctx[4]
|
|
54
|
-
? 'is-hidden'
|
|
55
|
-
: 'is-visible') + " svelte-10lx8df"));
|
|
56
|
-
|
|
57
|
-
attr(ul, "aria-hidden", ul_aria_hidden_value = /*expandedSubGroup*/ ctx[3] && /*$isSidebarOpen*/ ctx[4]);
|
|
58
|
-
attr(div, "class", "mc-sidebar-section svelte-10lx8df");
|
|
59
|
-
},
|
|
60
|
-
m(target, anchor) {
|
|
61
|
-
insert(target, div, anchor);
|
|
62
|
-
append(div, ul);
|
|
63
|
-
|
|
64
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
65
|
-
if (each_blocks[i]) {
|
|
66
|
-
each_blocks[i].m(ul, null);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
append(div, t);
|
|
71
|
-
if (if_block) if_block.m(div, null);
|
|
72
|
-
current = true;
|
|
73
|
-
},
|
|
74
|
-
p(ctx, dirty) {
|
|
75
|
-
if (dirty & /*handleGroupClick, data, expandedGroup, a11yLabels, handleFeatureClick*/ 103) {
|
|
76
|
-
each_value = /*data*/ ctx[0];
|
|
77
|
-
let i;
|
|
78
|
-
|
|
79
|
-
for (i = 0; i < each_value.length; i += 1) {
|
|
80
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
|
81
|
-
|
|
82
|
-
if (each_blocks[i]) {
|
|
83
|
-
each_blocks[i].p(child_ctx, dirty);
|
|
84
|
-
transition_in(each_blocks[i], 1);
|
|
85
|
-
} else {
|
|
86
|
-
each_blocks[i] = create_each_block(child_ctx);
|
|
87
|
-
each_blocks[i].c();
|
|
88
|
-
transition_in(each_blocks[i], 1);
|
|
89
|
-
each_blocks[i].m(ul, null);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
group_outros();
|
|
94
|
-
|
|
95
|
-
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
|
96
|
-
out(i);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
check_outros();
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (!current || dirty & /*expandedSubGroup, $isSidebarOpen*/ 24 && ul_class_value !== (ul_class_value = "" + (null_to_empty(/*expandedSubGroup*/ ctx[3] && /*$isSidebarOpen*/ ctx[4]
|
|
103
|
-
? 'is-hidden'
|
|
104
|
-
: 'is-visible') + " svelte-10lx8df"))) {
|
|
105
|
-
attr(ul, "class", ul_class_value);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (!current || dirty & /*expandedSubGroup, $isSidebarOpen*/ 24 && ul_aria_hidden_value !== (ul_aria_hidden_value = /*expandedSubGroup*/ ctx[3] && /*$isSidebarOpen*/ ctx[4])) {
|
|
109
|
-
attr(ul, "aria-hidden", ul_aria_hidden_value);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (/*expandedSubGroup*/ ctx[3] && /*$isSidebarOpen*/ ctx[4]) {
|
|
113
|
-
if (if_block) {
|
|
114
|
-
if_block.p(ctx, dirty);
|
|
115
|
-
|
|
116
|
-
if (dirty & /*expandedSubGroup, $isSidebarOpen*/ 24) {
|
|
117
|
-
transition_in(if_block, 1);
|
|
118
|
-
}
|
|
119
|
-
} else {
|
|
120
|
-
if_block = create_if_block_1(ctx);
|
|
121
|
-
if_block.c();
|
|
122
|
-
transition_in(if_block, 1);
|
|
123
|
-
if_block.m(div, null);
|
|
124
|
-
}
|
|
125
|
-
} else if (if_block) {
|
|
126
|
-
group_outros();
|
|
127
|
-
|
|
128
|
-
transition_out(if_block, 1, 1, () => {
|
|
129
|
-
if_block = null;
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
check_outros();
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
i(local) {
|
|
136
|
-
if (current) return;
|
|
137
|
-
|
|
138
|
-
for (let i = 0; i < each_value.length; i += 1) {
|
|
139
|
-
transition_in(each_blocks[i]);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
transition_in(if_block);
|
|
143
|
-
current = true;
|
|
144
|
-
},
|
|
145
|
-
o(local) {
|
|
146
|
-
each_blocks = each_blocks.filter(Boolean);
|
|
147
|
-
|
|
148
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
149
|
-
transition_out(each_blocks[i]);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
transition_out(if_block);
|
|
153
|
-
current = false;
|
|
154
|
-
},
|
|
155
|
-
d(detaching) {
|
|
156
|
-
if (detaching) detach(div);
|
|
157
|
-
destroy_each(each_blocks, detaching);
|
|
158
|
-
if (if_block) if_block.d();
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// (43:6) {#each data as featureGroup}
|
|
164
|
-
function create_each_block(ctx) {
|
|
165
|
-
let li;
|
|
166
|
-
let featuregroupcomponent;
|
|
167
|
-
let t;
|
|
168
|
-
let current;
|
|
169
|
-
let mounted;
|
|
170
|
-
let dispose;
|
|
171
|
-
|
|
172
|
-
featuregroupcomponent = new Sidebar_feature_group_nested({
|
|
173
|
-
props: {
|
|
174
|
-
featureGroup: /*featureGroup*/ ctx[10],
|
|
175
|
-
expand: /*expandedGroup*/ ctx[2] === /*featureGroup*/ ctx[10].code,
|
|
176
|
-
a11yLabels: /*a11yLabels*/ ctx[1]
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
featuregroupcomponent.$on("feature-click", /*feature_click_handler*/ ctx[7]);
|
|
181
|
-
|
|
182
|
-
function click_handler() {
|
|
183
|
-
return /*click_handler*/ ctx[8](/*featureGroup*/ ctx[10]);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
return {
|
|
187
|
-
c() {
|
|
188
|
-
li = element("li");
|
|
189
|
-
create_component(featuregroupcomponent.$$.fragment);
|
|
190
|
-
t = space();
|
|
191
|
-
attr(li, "class", "svelte-10lx8df");
|
|
192
|
-
},
|
|
193
|
-
m(target, anchor) {
|
|
194
|
-
insert(target, li, anchor);
|
|
195
|
-
mount_component(featuregroupcomponent, li, null);
|
|
196
|
-
append(li, t);
|
|
197
|
-
current = true;
|
|
198
|
-
|
|
199
|
-
if (!mounted) {
|
|
200
|
-
dispose = listen(li, "click", click_handler);
|
|
201
|
-
mounted = true;
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
p(new_ctx, dirty) {
|
|
205
|
-
ctx = new_ctx;
|
|
206
|
-
const featuregroupcomponent_changes = {};
|
|
207
|
-
if (dirty & /*data*/ 1) featuregroupcomponent_changes.featureGroup = /*featureGroup*/ ctx[10];
|
|
208
|
-
if (dirty & /*expandedGroup, data*/ 5) featuregroupcomponent_changes.expand = /*expandedGroup*/ ctx[2] === /*featureGroup*/ ctx[10].code;
|
|
209
|
-
if (dirty & /*a11yLabels*/ 2) featuregroupcomponent_changes.a11yLabels = /*a11yLabels*/ ctx[1];
|
|
210
|
-
featuregroupcomponent.$set(featuregroupcomponent_changes);
|
|
211
|
-
},
|
|
212
|
-
i(local) {
|
|
213
|
-
if (current) return;
|
|
214
|
-
transition_in(featuregroupcomponent.$$.fragment, local);
|
|
215
|
-
current = true;
|
|
216
|
-
},
|
|
217
|
-
o(local) {
|
|
218
|
-
transition_out(featuregroupcomponent.$$.fragment, local);
|
|
219
|
-
current = false;
|
|
220
|
-
},
|
|
221
|
-
d(detaching) {
|
|
222
|
-
if (detaching) detach(li);
|
|
223
|
-
destroy_component(featuregroupcomponent);
|
|
224
|
-
mounted = false;
|
|
225
|
-
dispose();
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
// (54:4) {#if expandedSubGroup && $isSidebarOpen}
|
|
231
|
-
function create_if_block_1(ctx) {
|
|
232
|
-
let subfeaturescomponent;
|
|
233
|
-
let current;
|
|
234
|
-
|
|
235
|
-
subfeaturescomponent = new Sidebar_sub_features_nested({
|
|
236
|
-
props: {
|
|
237
|
-
data: /*expandedSubGroup*/ ctx[3],
|
|
238
|
-
a11yLabels: /*a11yLabels*/ ctx[1]
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
|
|
242
|
-
subfeaturescomponent.$on("back-click", /*back_click_handler*/ ctx[9]);
|
|
243
|
-
|
|
244
|
-
return {
|
|
245
|
-
c() {
|
|
246
|
-
create_component(subfeaturescomponent.$$.fragment);
|
|
247
|
-
},
|
|
248
|
-
m(target, anchor) {
|
|
249
|
-
mount_component(subfeaturescomponent, target, anchor);
|
|
250
|
-
current = true;
|
|
251
|
-
},
|
|
252
|
-
p(ctx, dirty) {
|
|
253
|
-
const subfeaturescomponent_changes = {};
|
|
254
|
-
if (dirty & /*expandedSubGroup*/ 8) subfeaturescomponent_changes.data = /*expandedSubGroup*/ ctx[3];
|
|
255
|
-
if (dirty & /*a11yLabels*/ 2) subfeaturescomponent_changes.a11yLabels = /*a11yLabels*/ ctx[1];
|
|
256
|
-
subfeaturescomponent.$set(subfeaturescomponent_changes);
|
|
257
|
-
},
|
|
258
|
-
i(local) {
|
|
259
|
-
if (current) return;
|
|
260
|
-
transition_in(subfeaturescomponent.$$.fragment, local);
|
|
261
|
-
current = true;
|
|
262
|
-
},
|
|
263
|
-
o(local) {
|
|
264
|
-
transition_out(subfeaturescomponent.$$.fragment, local);
|
|
265
|
-
current = false;
|
|
266
|
-
},
|
|
267
|
-
d(detaching) {
|
|
268
|
-
destroy_component(subfeaturescomponent, detaching);
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
function create_fragment(ctx) {
|
|
274
|
-
let if_block_anchor;
|
|
275
|
-
let current;
|
|
276
|
-
let if_block = /*data*/ ctx[0]?.length && create_if_block(ctx);
|
|
277
|
-
|
|
278
|
-
return {
|
|
279
|
-
c() {
|
|
280
|
-
if (if_block) if_block.c();
|
|
281
|
-
if_block_anchor = empty();
|
|
282
|
-
},
|
|
283
|
-
m(target, anchor) {
|
|
284
|
-
if (if_block) if_block.m(target, anchor);
|
|
285
|
-
insert(target, if_block_anchor, anchor);
|
|
286
|
-
current = true;
|
|
287
|
-
},
|
|
288
|
-
p(ctx, [dirty]) {
|
|
289
|
-
if (/*data*/ ctx[0]?.length) {
|
|
290
|
-
if (if_block) {
|
|
291
|
-
if_block.p(ctx, dirty);
|
|
292
|
-
|
|
293
|
-
if (dirty & /*data*/ 1) {
|
|
294
|
-
transition_in(if_block, 1);
|
|
295
|
-
}
|
|
296
|
-
} else {
|
|
297
|
-
if_block = create_if_block(ctx);
|
|
298
|
-
if_block.c();
|
|
299
|
-
transition_in(if_block, 1);
|
|
300
|
-
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
301
|
-
}
|
|
302
|
-
} else if (if_block) {
|
|
303
|
-
group_outros();
|
|
304
|
-
|
|
305
|
-
transition_out(if_block, 1, 1, () => {
|
|
306
|
-
if_block = null;
|
|
307
|
-
});
|
|
308
|
-
|
|
309
|
-
check_outros();
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
i(local) {
|
|
313
|
-
if (current) return;
|
|
314
|
-
transition_in(if_block);
|
|
315
|
-
current = true;
|
|
316
|
-
},
|
|
317
|
-
o(local) {
|
|
318
|
-
transition_out(if_block);
|
|
319
|
-
current = false;
|
|
320
|
-
},
|
|
321
|
-
d(detaching) {
|
|
322
|
-
if (if_block) if_block.d(detaching);
|
|
323
|
-
if (detaching) detach(if_block_anchor);
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
function instance($$self, $$props, $$invalidate) {
|
|
329
|
-
let $isSidebarOpen;
|
|
330
|
-
component_subscribe($$self, isSidebarOpen, $$value => $$invalidate(4, $isSidebarOpen = $$value));
|
|
331
|
-
let { data = [] } = $$props;
|
|
332
|
-
let { a11yLabels } = $$props;
|
|
333
|
-
let expandedGroup;
|
|
334
|
-
let expandedSubGroup;
|
|
335
|
-
|
|
336
|
-
function handleGroupClick(code) {
|
|
337
|
-
const open = $isSidebarOpen;
|
|
338
|
-
|
|
339
|
-
if (!open) {
|
|
340
|
-
toggleSidebar();
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
if (open && expandedGroup === code) {
|
|
344
|
-
$$invalidate(2, expandedGroup = undefined);
|
|
345
|
-
} else {
|
|
346
|
-
$$invalidate(2, expandedGroup = code);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
function handleFeatureClick(event) {
|
|
351
|
-
if (event === null || event === void 0
|
|
352
|
-
? void 0
|
|
353
|
-
: event.detail) {
|
|
354
|
-
if (expandedSubGroup && expandedSubGroup.code === event.detail.code) {
|
|
355
|
-
$$invalidate(3, expandedSubGroup = undefined);
|
|
356
|
-
} else {
|
|
357
|
-
$$invalidate(3, expandedSubGroup = event.detail);
|
|
358
|
-
}
|
|
359
|
-
} else {
|
|
360
|
-
$$invalidate(3, expandedSubGroup = undefined);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
const feature_click_handler = event => handleFeatureClick(event);
|
|
365
|
-
const click_handler = featureGroup => handleGroupClick(featureGroup.code);
|
|
366
|
-
const back_click_handler = () => handleFeatureClick();
|
|
367
|
-
|
|
368
|
-
$$self.$$set = $$props => {
|
|
369
|
-
if ('data' in $$props) $$invalidate(0, data = $$props.data);
|
|
370
|
-
if ('a11yLabels' in $$props) $$invalidate(1, a11yLabels = $$props.a11yLabels);
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
return [
|
|
374
|
-
data,
|
|
375
|
-
a11yLabels,
|
|
376
|
-
expandedGroup,
|
|
377
|
-
expandedSubGroup,
|
|
378
|
-
$isSidebarOpen,
|
|
379
|
-
handleGroupClick,
|
|
380
|
-
handleFeatureClick,
|
|
381
|
-
feature_click_handler,
|
|
382
|
-
click_handler,
|
|
383
|
-
back_click_handler
|
|
384
|
-
];
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
class Sidebar_section_nested extends SvelteComponent {
|
|
388
|
-
constructor(options) {
|
|
389
|
-
super();
|
|
390
|
-
init(this, options, instance, create_fragment, safe_not_equal, { data: 0, a11yLabels: 1 }, add_css);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export { Sidebar_section_nested as default };
|
|
1
|
+
import{P as e,i as t,s as l,Q as i,K as s,b as a,C as n,D as o,E as r,o as d,ab as c,e as f,d as b,g as m,R as x,j as u,M as p,J as g,x as v,A as h,l as w,G as k}from"../../index-c33b3772.js";import y from"./sidebar-feature-group.nested.js";import $ from"./sidebar-sub-features.nested.js";import{t as j,i as L}from"../../sidebar-service-275bf9ef.js";import"./sidebar-feature.nested.js";import"../../EventHandler-02058705.js";function z(e){i(e,"svelte-10lx8df",".mc-sidebar-section.svelte-10lx8df.svelte-10lx8df{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;min-height:38px;overflow-x:hidden;overflow-y:auto;overflow-y:overlay;padding:1px 0px;scrollbar-color:#8f94a3 #b3b3b3;scrollbar-width:thin}.mc-sidebar-section.svelte-10lx8df ul.svelte-10lx8df,.mc-sidebar-section.svelte-10lx8df li.svelte-10lx8df{list-style-type:none;margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.mc-sidebar-section.svelte-10lx8df ul.svelte-10lx8df{-webkit-box-align:start;-ms-flex-align:start;align-items:start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mc-sidebar-section.svelte-10lx8df ul li.svelte-10lx8df{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;margin:4px 0px}.mc-sidebar-section.svelte-10lx8df ul li.svelte-10lx8df:first-child{margin-top:0}.mc-sidebar-section.svelte-10lx8df ul li.svelte-10lx8df:last-child{margin-bottom:0}.mc-sidebar-section.svelte-10lx8df ul.is-hidden.svelte-10lx8df{-o-transition:margin-left 300ms ease-in-out;-webkit-transition:margin-left 300ms ease-in-out;transition:margin-left 300ms ease-in-out;margin-left:-320px;opacity:0}.mc-sidebar-section.svelte-10lx8df ul.is-visible.svelte-10lx8df{-o-transition:margin-left 300ms ease-in-out;-webkit-transition:margin-left 300ms ease-in-out;transition:margin-left 300ms ease-in-out;margin-left:0}.mc-sidebar-section.svelte-10lx8df.svelte-10lx8df::-webkit-scrollbar{width:5px;height:10px;background:#b3b3b3}.mc-sidebar-section.svelte-10lx8df.svelte-10lx8df::-webkit-scrollbar-thumb{background:#8f94a3}")}function G(e,t,l){const i=e.slice();return i[10]=t[l],i}function E(e){let t,l,i,s,c,v,h=e[0],w=[];for(let t=0;t<h.length;t+=1)w[t]=A(G(e,h,t));const k=e=>o(w[e],1,1,(()=>{w[e]=null}));let y=e[3]&&e[4]&&B(e);return{c(){t=f("div"),l=f("ul");for(let e=0;e<w.length;e+=1)w[e].c();c=b(),y&&y.c(),m(l,"class",i=x(e[3]&&e[4]?"is-hidden":"is-visible")+" svelte-10lx8df"),m(l,"aria-hidden",s=e[3]&&e[4]),m(t,"class","mc-sidebar-section svelte-10lx8df")},m(e,i){a(e,t,i),u(t,l);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(l,null);u(t,c),y&&y.m(t,null),v=!0},p(e,a){if(103&a){let t;for(h=e[0],t=0;t<h.length;t+=1){const i=G(e,h,t);w[t]?(w[t].p(i,a),n(w[t],1)):(w[t]=A(i),w[t].c(),n(w[t],1),w[t].m(l,null))}for(p(),t=h.length;t<w.length;t+=1)k(t);r()}(!v||24&a&&i!==(i=x(e[3]&&e[4]?"is-hidden":"is-visible")+" svelte-10lx8df"))&&m(l,"class",i),(!v||24&a&&s!==(s=e[3]&&e[4]))&&m(l,"aria-hidden",s),e[3]&&e[4]?y?(y.p(e,a),24&a&&n(y,1)):(y=B(e),y.c(),n(y,1),y.m(t,null)):y&&(p(),o(y,1,1,(()=>{y=null})),r())},i(e){if(!v){for(let e=0;e<h.length;e+=1)n(w[e]);n(y),v=!0}},o(e){w=w.filter(Boolean);for(let e=0;e<w.length;e+=1)o(w[e]);o(y),v=!1},d(e){e&&d(t),g(w,e),y&&y.d()}}}function A(e){let t,l,i,s,r,c;function x(){return e[8](e[10])}return l=new y({props:{featureGroup:e[10],expand:e[2]===e[10].code,a11yLabels:e[1]}}),l.$on("feature-click",e[7]),{c(){t=f("li"),v(l.$$.fragment),i=b(),m(t,"class","svelte-10lx8df")},m(e,n){a(e,t,n),h(l,t,null),u(t,i),s=!0,r||(c=w(t,"click",x),r=!0)},p(t,i){e=t;const s={};1&i&&(s.featureGroup=e[10]),5&i&&(s.expand=e[2]===e[10].code),2&i&&(s.a11yLabels=e[1]),l.$set(s)},i(e){s||(n(l.$$.fragment,e),s=!0)},o(e){o(l.$$.fragment,e),s=!1},d(e){e&&d(t),k(l),r=!1,c()}}}function B(e){let t,l;return t=new $({props:{data:e[3],a11yLabels:e[1]}}),t.$on("back-click",e[9]),{c(){v(t.$$.fragment)},m(e,i){h(t,e,i),l=!0},p(e,l){const i={};8&l&&(i.data=e[3]),2&l&&(i.a11yLabels=e[1]),t.$set(i)},i(e){l||(n(t.$$.fragment,e),l=!0)},o(e){o(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function C(e){let t,l,i=e[0]?.length&&E(e);return{c(){i&&i.c(),t=s()},m(e,s){i&&i.m(e,s),a(e,t,s),l=!0},p(e,[l]){e[0]?.length?i?(i.p(e,l),1&l&&n(i,1)):(i=E(e),i.c(),n(i,1),i.m(t.parentNode,t)):i&&(p(),o(i,1,1,(()=>{i=null})),r())},i(e){l||(n(i),l=!0)},o(e){o(i),l=!1},d(e){i&&i.d(e),e&&d(t)}}}function D(e,t,l){let i;c(e,L,(e=>l(4,i=e)));let s,a,{data:n=[]}=t,{a11yLabels:o}=t;function r(e){const t=i;t||j(),l(2,s=t&&s===e?void 0:e)}function d(e){(null==e?void 0:e.detail)?a&&a.code===e.detail.code?l(3,a=void 0):l(3,a=e.detail):l(3,a=void 0)}return e.$$set=e=>{"data"in e&&l(0,n=e.data),"a11yLabels"in e&&l(1,o=e.a11yLabels)},[n,o,s,a,i,r,d,e=>d(e),e=>r(e.code),()=>d()]}class H extends e{constructor(e){super(),t(this,e,D,C,l,{data:0,a11yLabels:1},z)}}export{H as default};
|
|
395
2
|
//# sourceMappingURL=sidebar-section.nested.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-section.nested.js","sources":["../../../src/components/sidebar/sidebar-section.nested.svelte"],"sourcesContent":["<svelte:options />\n\n<script lang=\"ts\">\n import type { A11yLabels, Feature, FeatureGroup } from './sidebar.types';\n import FeatureGroupComponent from './sidebar-feature-group.nested.svelte';\n import SubFeaturesComponent from './sidebar-sub-features.nested.svelte';\n import { isSidebarOpen, toggleSidebar } from './sidebar-service';\n\n export let data: FeatureGroup[] = [];\n export let a11yLabels: A11yLabels;\n\n let expandedGroup: string | undefined;\n let expandedSubGroup: Feature | undefined;\n\n function handleGroupClick(code: string) {\n // opens the menu if at the time of the click on a FeatureGroup this one was closed\n const open = $isSidebarOpen;\n if (!open) {\n toggleSidebar();\n }\n\n if (open && expandedGroup === code) {\n expandedGroup = undefined;\n } else {\n expandedGroup = code;\n }\n }\n\n function handleFeatureClick(event?: CustomEvent<Feature>) {\n if (event?.detail) {\n if (expandedSubGroup && expandedSubGroup.code === event.detail.code) {\n expandedSubGroup = undefined;\n } else {\n expandedSubGroup = event.detail;\n }\n } else {\n expandedSubGroup = undefined;\n }\n }\n</script>\n\n{#if data?.length}\n <div class=\"mc-sidebar-section\">\n <ul\n class={expandedSubGroup && $isSidebarOpen ? 'is-hidden' : 'is-visible'}\n aria-hidden={expandedSubGroup && $isSidebarOpen}\n >\n {#each data as featureGroup}\n <li on:click={() => handleGroupClick(featureGroup.code)}>\n <FeatureGroupComponent\n {featureGroup}\n expand={expandedGroup === featureGroup.code}\n {a11yLabels}\n on:feature-click={(event) => handleFeatureClick(event)}\n />\n </li>\n {/each}\n </ul>\n {#if expandedSubGroup && $isSidebarOpen}\n <SubFeaturesComponent\n data={expandedSubGroup}\n {a11yLabels}\n on:back-click={() => handleFeatureClick()}\n />\n {/if}\n </div>\n{/if}\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import './sidebar-variables';\n\n .mc-sidebar-section {\n display: flex;\n flex-direction: row;\n flex: 1;\n align-items: flex-start;\n min-height: 38px;\n overflow-x: hidden;\n overflow-y: auto;\n overflow-y: overlay;\n padding: 1px 0px;\n scrollbar-color: $color-primary-02-400 $color-sidebar-divider-background;\n scrollbar-width: thin;\n\n ul,\n li {\n list-style-type: none;\n margin: 0;\n padding: 0;\n display: flex;\n width: 100%;\n }\n\n ul {\n align-items: start;\n flex-direction: column;\n justify-content: center;\n\n li {\n flex-direction: column;\n box-sizing: border-box;\n margin: 4px 0px;\n\n &:first-child {\n margin-top: 0;\n }\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n &.is-hidden {\n @include transition(margin-left 300ms ease-in-out);\n margin-left: -320px;\n opacity: 0;\n }\n\n &.is-visible {\n @include transition(margin-left 300ms ease-in-out);\n margin-left: 0;\n }\n }\n\n &::-webkit-scrollbar {\n width: 5px;\n height: 10px;\n background: $color-sidebar-divider-background;\n\n &-thumb {\n background: $color-primary-02-400;\n }\n }\n }\n</style>\n"],"names":[
|
|
1
|
+
{"version":3,"file":"sidebar-section.nested.js","sources":["../../../src/components/sidebar/sidebar-section.nested.svelte"],"sourcesContent":["<svelte:options />\n\n<script lang=\"ts\">\n import type { A11yLabels, Feature, FeatureGroup } from './sidebar.types';\n import FeatureGroupComponent from './sidebar-feature-group.nested.svelte';\n import SubFeaturesComponent from './sidebar-sub-features.nested.svelte';\n import { isSidebarOpen, toggleSidebar } from './sidebar-service';\n\n export let data: FeatureGroup[] = [];\n export let a11yLabels: A11yLabels;\n\n let expandedGroup: string | undefined;\n let expandedSubGroup: Feature | undefined;\n\n function handleGroupClick(code: string) {\n // opens the menu if at the time of the click on a FeatureGroup this one was closed\n const open = $isSidebarOpen;\n if (!open) {\n toggleSidebar();\n }\n\n if (open && expandedGroup === code) {\n expandedGroup = undefined;\n } else {\n expandedGroup = code;\n }\n }\n\n function handleFeatureClick(event?: CustomEvent<Feature>) {\n if (event?.detail) {\n if (expandedSubGroup && expandedSubGroup.code === event.detail.code) {\n expandedSubGroup = undefined;\n } else {\n expandedSubGroup = event.detail;\n }\n } else {\n expandedSubGroup = undefined;\n }\n }\n</script>\n\n{#if data?.length}\n <div class=\"mc-sidebar-section\">\n <ul\n class={expandedSubGroup && $isSidebarOpen ? 'is-hidden' : 'is-visible'}\n aria-hidden={expandedSubGroup && $isSidebarOpen}\n >\n {#each data as featureGroup}\n <li on:click={() => handleGroupClick(featureGroup.code)}>\n <FeatureGroupComponent\n {featureGroup}\n expand={expandedGroup === featureGroup.code}\n {a11yLabels}\n on:feature-click={(event) => handleFeatureClick(event)}\n />\n </li>\n {/each}\n </ul>\n {#if expandedSubGroup && $isSidebarOpen}\n <SubFeaturesComponent\n data={expandedSubGroup}\n {a11yLabels}\n on:back-click={() => handleFeatureClick()}\n />\n {/if}\n </div>\n{/if}\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import './sidebar-variables';\n\n .mc-sidebar-section {\n display: flex;\n flex-direction: row;\n flex: 1;\n align-items: flex-start;\n min-height: 38px;\n overflow-x: hidden;\n overflow-y: auto;\n overflow-y: overlay;\n padding: 1px 0px;\n scrollbar-color: $color-primary-02-400 $color-sidebar-divider-background;\n scrollbar-width: thin;\n\n ul,\n li {\n list-style-type: none;\n margin: 0;\n padding: 0;\n display: flex;\n width: 100%;\n }\n\n ul {\n align-items: start;\n flex-direction: column;\n justify-content: center;\n\n li {\n flex-direction: column;\n box-sizing: border-box;\n margin: 4px 0px;\n\n &:first-child {\n margin-top: 0;\n }\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n &.is-hidden {\n @include transition(margin-left 300ms ease-in-out);\n margin-left: -320px;\n opacity: 0;\n }\n\n &.is-visible {\n @include transition(margin-left 300ms ease-in-out);\n margin-left: 0;\n }\n }\n\n &::-webkit-scrollbar {\n width: 5px;\n height: 10px;\n background: $color-sidebar-divider-background;\n\n &-thumb {\n background: $color-primary-02-400;\n }\n }\n }\n</style>\n"],"names":["ctx","length","i","if_block","create_if_block_1","attr","ul","ul_class_value","null_to_empty","ul_aria_hidden_value","insert","target","div","anchor","append","each_blocks","current","dirty","code","li","create_if_block","expandedGroup","expandedSubGroup","data","$$props","a11yLabels","handleGroupClick","open","$isSidebarOpen","toggleSidebar","$$invalidate","undefined","handleFeatureClick","event","detail","featureGroup"],"mappings":"o+EA+CaA,EAAI,wBAATC,OAAIC,GAAA,4DAWH,IAAAC,EAAAH,MAAoBA,EAAc,IAAAI,EAAAJ,uFAd9BK,EAAAC,EAAA,QAAAC,EAAAC,EAAAR,MAAoBA,EAAc,GAAG,YAAc,cAAY,mBACzDK,EAAAC,EAAA,cAAAG,EAAAT,MAAoBA,EAAc,6DAHnDU,EAuBKC,EAAAC,EAAAC,GAtBHC,EAcIF,EAAAN,6GAVKN,EAAI,WAATC,OAAIC,GAAA,EAAA,yGAAJD,OAAIC,EAAAa,EAAAd,OAAAC,GAAA,aAHCc,GAAA,GAAAC,GAAAV,KAAAA,EAAAC,EAAAR,MAAoBA,EAAc,GAAG,YAAc,cAAY,sCACzDgB,GAAA,GAAAC,GAAAR,KAAAA,EAAAT,MAAoBA,EAAc,2BAa5CA,MAAoBA,EAAc,iIAXnCC,OAAIC,GAAA,4OAIQF,EAAa,KAAKA,EAAY,IAACkB,gIAH3CR,EAOIC,EAAAQ,EAAAN,wHAJQb,EAAa,KAAKA,EAAY,IAACkB,0LASrClB,EAAgB,2HAAhBA,EAAgB,6IAnBzBG,EAAAH,MAAMC,QAAMmB,EAAApB,yEAAZA,MAAMC,+NA9BLoB,EACAC,QAJOC,EAAI,IAAAC,cACJC,GAAsBD,EAKxB,SAAAE,EAAiBR,GAElB,MAAAS,EAAOC,EACRD,GACHE,IAIAC,EAAA,EAAAT,EADEM,GAAQN,IAAkBH,OACZa,EAEAb,GAIX,SAAAc,EAAmBC,IACtBA,eAAAA,EAAOC,QACLZ,GAAoBA,EAAiBJ,OAASe,EAAMC,OAAOhB,KAC7DY,EAAA,EAAAR,OAAmBS,OAEnBT,EAAmBW,EAAMC,QAG3BJ,EAAA,EAAAR,OAAmBS,sGAiBME,GAAUD,EAAmBC,MALhCP,EAAiBS,EAAajB,UAc7Bc"}
|
|
@@ -1,201 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { a as selectFeature, s as selectedFeature, i as isSidebarOpen } from '../../sidebar-service-275bf9ef.js';
|
|
3
|
-
|
|
4
|
-
/* src/components/sidebar/sidebar-segment.nested.svelte generated by Svelte v3.58.0 */
|
|
5
|
-
|
|
6
|
-
function add_css(target) {
|
|
7
|
-
append_styles(target, "svelte-mygktb", ".mc-sidebar-segment.svelte-mygktb.svelte-mygktb{cursor:pointer;-webkit-box-flex:0;-ms-flex:0;flex:0;text-decoration:none;color:#191919;line-height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;min-height:40px}.mc-sidebar-segment.svelte-mygktb span.svelte-mygktb{width:200px;min-width:200px}.mc-sidebar-segment__container.svelte-mygktb.svelte-mygktb{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:8px 0px}.mc-sidebar-segment__text.svelte-mygktb.svelte-mygktb{margin-left:10px}.mc-sidebar-segment.is-selected.svelte-mygktb.svelte-mygktb{background:#cfd2d8}.mc-sidebar-segment.svelte-mygktb .svelte-mygktb:last-child{margin-left:10px}.mc-sidebar-segment.svelte-mygktb.svelte-mygktb:focus-visible{-webkit-box-shadow:none;box-shadow:none;border:none;outline:none}.mc-sidebar-segment.svelte-mygktb:focus-visible .mc-sidebar-segment__container.svelte-mygktb{-webkit-box-shadow:none;box-shadow:none;border:none;border-radius:6px;outline:1px solid #0b96cc}.mc-sidebar-segment.svelte-mygktb.svelte-mygktb:hover{background:#b3b7c1}.mc-sidebar-segment.is-close.svelte-mygktb .mc-sidebar-segment__container.svelte-mygktb{-o-transition:margin 300ms ease-in-out;-webkit-transition:margin 300ms ease-in-out;transition:margin 300ms ease-in-out;margin:0 20px;width:24px}.mc-sidebar-segment.is-close.svelte-mygktb .mc-sidebar-segment__text.svelte-mygktb{opacity:0}.mc-sidebar-segment.is-open.svelte-mygktb .mc-sidebar-segment__container.svelte-mygktb{-o-transition:margin 300ms ease-in-out;-webkit-transition:margin 300ms ease-in-out;transition:margin 300ms ease-in-out;margin:0 32px}.mc-sidebar-segment.is-open.svelte-mygktb .mc-sidebar-segment__text.svelte-mygktb{opacity:1}");
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// (14:0) {#if data}
|
|
11
|
-
function create_if_block(ctx) {
|
|
12
|
-
let a;
|
|
13
|
-
let div;
|
|
14
|
-
let t0;
|
|
15
|
-
let span;
|
|
16
|
-
let t1_value = /*data*/ ctx[0].label + "";
|
|
17
|
-
let t1;
|
|
18
|
-
let span_aria_hidden_value;
|
|
19
|
-
let a_aria_label_value;
|
|
20
|
-
let a_class_value;
|
|
21
|
-
let a_href_value;
|
|
22
|
-
let a_id_value;
|
|
23
|
-
let mounted;
|
|
24
|
-
let dispose;
|
|
25
|
-
let if_block = /*data*/ ctx[0].icon && create_if_block_1(ctx);
|
|
26
|
-
|
|
27
|
-
return {
|
|
28
|
-
c() {
|
|
29
|
-
a = element("a");
|
|
30
|
-
div = element("div");
|
|
31
|
-
if (if_block) if_block.c();
|
|
32
|
-
t0 = space();
|
|
33
|
-
span = element("span");
|
|
34
|
-
t1 = text(t1_value);
|
|
35
|
-
attr(span, "aria-hidden", span_aria_hidden_value = !/*$isSidebarOpen*/ ctx[2]);
|
|
36
|
-
attr(span, "class", "mc-sidebar-segment__text svelte-mygktb");
|
|
37
|
-
attr(div, "class", "mc-sidebar-segment__container svelte-mygktb");
|
|
38
|
-
attr(a, "aria-label", a_aria_label_value = /*data*/ ctx[0].label);
|
|
39
|
-
|
|
40
|
-
attr(a, "class", a_class_value = "mc-sidebar-segment " + (/*data*/ ctx[0].code === /*$selectedFeature*/ ctx[1]?.lv0?.code
|
|
41
|
-
? 'is-selected'
|
|
42
|
-
: '') + " " + (/*$isSidebarOpen*/ ctx[2] ? 'is-open' : 'is-close') + " svelte-mygktb");
|
|
43
|
-
|
|
44
|
-
attr(a, "href", a_href_value = /*data*/ ctx[0].href ?? 'javascript:void(null)');
|
|
45
|
-
attr(a, "id", a_id_value = /*data*/ ctx[0].code);
|
|
46
|
-
},
|
|
47
|
-
m(target, anchor) {
|
|
48
|
-
insert(target, a, anchor);
|
|
49
|
-
append(a, div);
|
|
50
|
-
if (if_block) if_block.m(div, null);
|
|
51
|
-
append(div, t0);
|
|
52
|
-
append(div, span);
|
|
53
|
-
append(span, t1);
|
|
54
|
-
|
|
55
|
-
if (!mounted) {
|
|
56
|
-
dispose = listen(a, "click", /*handleClick*/ ctx[3]);
|
|
57
|
-
mounted = true;
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
p(ctx, dirty) {
|
|
61
|
-
if (/*data*/ ctx[0].icon) {
|
|
62
|
-
if (if_block) {
|
|
63
|
-
if_block.p(ctx, dirty);
|
|
64
|
-
} else {
|
|
65
|
-
if_block = create_if_block_1(ctx);
|
|
66
|
-
if_block.c();
|
|
67
|
-
if_block.m(div, t0);
|
|
68
|
-
}
|
|
69
|
-
} else if (if_block) {
|
|
70
|
-
if_block.d(1);
|
|
71
|
-
if_block = null;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (dirty & /*data*/ 1 && t1_value !== (t1_value = /*data*/ ctx[0].label + "")) set_data(t1, t1_value);
|
|
75
|
-
|
|
76
|
-
if (dirty & /*$isSidebarOpen*/ 4 && span_aria_hidden_value !== (span_aria_hidden_value = !/*$isSidebarOpen*/ ctx[2])) {
|
|
77
|
-
attr(span, "aria-hidden", span_aria_hidden_value);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (dirty & /*data*/ 1 && a_aria_label_value !== (a_aria_label_value = /*data*/ ctx[0].label)) {
|
|
81
|
-
attr(a, "aria-label", a_aria_label_value);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (dirty & /*data, $selectedFeature, $isSidebarOpen*/ 7 && a_class_value !== (a_class_value = "mc-sidebar-segment " + (/*data*/ ctx[0].code === /*$selectedFeature*/ ctx[1]?.lv0?.code
|
|
85
|
-
? 'is-selected'
|
|
86
|
-
: '') + " " + (/*$isSidebarOpen*/ ctx[2] ? 'is-open' : 'is-close') + " svelte-mygktb")) {
|
|
87
|
-
attr(a, "class", a_class_value);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (dirty & /*data*/ 1 && a_href_value !== (a_href_value = /*data*/ ctx[0].href ?? 'javascript:void(null)')) {
|
|
91
|
-
attr(a, "href", a_href_value);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (dirty & /*data*/ 1 && a_id_value !== (a_id_value = /*data*/ ctx[0].code)) {
|
|
95
|
-
attr(a, "id", a_id_value);
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
d(detaching) {
|
|
99
|
-
if (detaching) detach(a);
|
|
100
|
-
if (if_block) if_block.d();
|
|
101
|
-
mounted = false;
|
|
102
|
-
dispose();
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// (25:6) {#if data.icon}
|
|
108
|
-
function create_if_block_1(ctx) {
|
|
109
|
-
let html_tag;
|
|
110
|
-
let raw_value = `<${generateIcon(/*data*/ ctx[0].icon)} class="mc-sidebar-segment__icon" style="${mediumIconStyle}" />` + "";
|
|
111
|
-
let html_anchor;
|
|
112
|
-
|
|
113
|
-
return {
|
|
114
|
-
c() {
|
|
115
|
-
html_tag = new HtmlTag(false);
|
|
116
|
-
html_anchor = empty();
|
|
117
|
-
html_tag.a = html_anchor;
|
|
118
|
-
},
|
|
119
|
-
m(target, anchor) {
|
|
120
|
-
html_tag.m(raw_value, target, anchor);
|
|
121
|
-
insert(target, html_anchor, anchor);
|
|
122
|
-
},
|
|
123
|
-
p(ctx, dirty) {
|
|
124
|
-
if (dirty & /*data*/ 1 && raw_value !== (raw_value = `<${generateIcon(/*data*/ ctx[0].icon)} class="mc-sidebar-segment__icon" style="${mediumIconStyle}" />` + "")) html_tag.p(raw_value);
|
|
125
|
-
},
|
|
126
|
-
d(detaching) {
|
|
127
|
-
if (detaching) detach(html_anchor);
|
|
128
|
-
if (detaching) html_tag.d();
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function create_fragment(ctx) {
|
|
134
|
-
let if_block_anchor;
|
|
135
|
-
let if_block = /*data*/ ctx[0] && create_if_block(ctx);
|
|
136
|
-
|
|
137
|
-
return {
|
|
138
|
-
c() {
|
|
139
|
-
if (if_block) if_block.c();
|
|
140
|
-
if_block_anchor = empty();
|
|
141
|
-
},
|
|
142
|
-
m(target, anchor) {
|
|
143
|
-
if (if_block) if_block.m(target, anchor);
|
|
144
|
-
insert(target, if_block_anchor, anchor);
|
|
145
|
-
},
|
|
146
|
-
p(ctx, [dirty]) {
|
|
147
|
-
if (/*data*/ ctx[0]) {
|
|
148
|
-
if (if_block) {
|
|
149
|
-
if_block.p(ctx, dirty);
|
|
150
|
-
} else {
|
|
151
|
-
if_block = create_if_block(ctx);
|
|
152
|
-
if_block.c();
|
|
153
|
-
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
154
|
-
}
|
|
155
|
-
} else if (if_block) {
|
|
156
|
-
if_block.d(1);
|
|
157
|
-
if_block = null;
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
i: noop,
|
|
161
|
-
o: noop,
|
|
162
|
-
d(detaching) {
|
|
163
|
-
if (if_block) if_block.d(detaching);
|
|
164
|
-
if (detaching) detach(if_block_anchor);
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
const mediumIconStyle = 'width: 24px; height: 24px; fill: ${$color-sidebar-icon};';
|
|
170
|
-
|
|
171
|
-
function generateIcon(iconname) {
|
|
172
|
-
return `${iconname} size="2rem"`;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function instance($$self, $$props, $$invalidate) {
|
|
176
|
-
let $selectedFeature;
|
|
177
|
-
let $isSidebarOpen;
|
|
178
|
-
component_subscribe($$self, selectedFeature, $$value => $$invalidate(1, $selectedFeature = $$value));
|
|
179
|
-
component_subscribe($$self, isSidebarOpen, $$value => $$invalidate(2, $isSidebarOpen = $$value));
|
|
180
|
-
let { data } = $$props;
|
|
181
|
-
|
|
182
|
-
function handleClick() {
|
|
183
|
-
selectFeature(data.code);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
$$self.$$set = $$props => {
|
|
187
|
-
if ('data' in $$props) $$invalidate(0, data = $$props.data);
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
return [data, $selectedFeature, $isSidebarOpen, handleClick];
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
class Sidebar_segment_nested extends SvelteComponent {
|
|
194
|
-
constructor(options) {
|
|
195
|
-
super();
|
|
196
|
-
init(this, options, instance, create_fragment, safe_not_equal, { data: 0 }, add_css);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export { Sidebar_segment_nested as default };
|
|
1
|
+
import{P as e,i as s,s as t,Q as i,K as n,b as a,n as m,o as l,ab as o,e as c,d as r,t as b,g as d,j as g,l as p,k,Z as v}from"../../index-c33b3772.js";import{a as x,s as y,i as u}from"../../sidebar-service-275bf9ef.js";function f(e){i(e,"svelte-mygktb",".mc-sidebar-segment.svelte-mygktb.svelte-mygktb{cursor:pointer;-webkit-box-flex:0;-ms-flex:0;flex:0;text-decoration:none;color:#191919;line-height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;min-height:40px}.mc-sidebar-segment.svelte-mygktb span.svelte-mygktb{width:200px;min-width:200px}.mc-sidebar-segment__container.svelte-mygktb.svelte-mygktb{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:8px 0px}.mc-sidebar-segment__text.svelte-mygktb.svelte-mygktb{margin-left:10px}.mc-sidebar-segment.is-selected.svelte-mygktb.svelte-mygktb{background:#cfd2d8}.mc-sidebar-segment.svelte-mygktb .svelte-mygktb:last-child{margin-left:10px}.mc-sidebar-segment.svelte-mygktb.svelte-mygktb:focus-visible{-webkit-box-shadow:none;box-shadow:none;border:none;outline:none}.mc-sidebar-segment.svelte-mygktb:focus-visible .mc-sidebar-segment__container.svelte-mygktb{-webkit-box-shadow:none;box-shadow:none;border:none;border-radius:6px;outline:1px solid #0b96cc}.mc-sidebar-segment.svelte-mygktb.svelte-mygktb:hover{background:#b3b7c1}.mc-sidebar-segment.is-close.svelte-mygktb .mc-sidebar-segment__container.svelte-mygktb{-o-transition:margin 300ms ease-in-out;-webkit-transition:margin 300ms ease-in-out;transition:margin 300ms ease-in-out;margin:0 20px;width:24px}.mc-sidebar-segment.is-close.svelte-mygktb .mc-sidebar-segment__text.svelte-mygktb{opacity:0}.mc-sidebar-segment.is-open.svelte-mygktb .mc-sidebar-segment__container.svelte-mygktb{-o-transition:margin 300ms ease-in-out;-webkit-transition:margin 300ms ease-in-out;transition:margin 300ms ease-in-out;margin:0 32px}.mc-sidebar-segment.is-open.svelte-mygktb .mc-sidebar-segment__text.svelte-mygktb{opacity:1}")}function h(e){let s,t,i,n,m,o,v,x,y,u,f,h,w=e[0].label+"",$=e[0].icon&&_(e);return{c(){s=c("a"),t=c("div"),$&&$.c(),i=r(),n=c("span"),m=b(w),d(n,"aria-hidden",o=!e[2]),d(n,"class","mc-sidebar-segment__text svelte-mygktb"),d(t,"class","mc-sidebar-segment__container svelte-mygktb"),d(s,"aria-label",v=e[0].label),d(s,"class",x="mc-sidebar-segment "+(e[0].code===e[1]?.lv0?.code?"is-selected":"")+" "+(e[2]?"is-open":"is-close")+" svelte-mygktb"),d(s,"href",y=e[0].href??"javascript:void(null)"),d(s,"id",u=e[0].code)},m(l,o){a(l,s,o),g(s,t),$&&$.m(t,null),g(t,i),g(t,n),g(n,m),f||(h=p(s,"click",e[3]),f=!0)},p(e,a){e[0].icon?$?$.p(e,a):($=_(e),$.c(),$.m(t,i)):$&&($.d(1),$=null),1&a&&w!==(w=e[0].label+"")&&k(m,w),4&a&&o!==(o=!e[2])&&d(n,"aria-hidden",o),1&a&&v!==(v=e[0].label)&&d(s,"aria-label",v),7&a&&x!==(x="mc-sidebar-segment "+(e[0].code===e[1]?.lv0?.code?"is-selected":"")+" "+(e[2]?"is-open":"is-close")+" svelte-mygktb")&&d(s,"class",x),1&a&&y!==(y=e[0].href??"javascript:void(null)")&&d(s,"href",y),1&a&&u!==(u=e[0].code)&&d(s,"id",u)},d(e){e&&l(s),$&&$.d(),f=!1,h()}}}function _(e){let s,t,i=`<${j(e[0].icon)} class="mc-sidebar-segment__icon" style="${$}" />`;return{c(){s=new v(!1),t=n(),s.a=t},m(e,n){s.m(i,e,n),a(e,t,n)},p(e,t){1&t&&i!==(i=`<${j(e[0].icon)} class="mc-sidebar-segment__icon" style="${$}" />`)&&s.p(i)},d(e){e&&l(t),e&&s.d()}}}function w(e){let s,t=e[0]&&h(e);return{c(){t&&t.c(),s=n()},m(e,i){t&&t.m(e,i),a(e,s,i)},p(e,[i]){e[0]?t?t.p(e,i):(t=h(e),t.c(),t.m(s.parentNode,s)):t&&(t.d(1),t=null)},i:m,o:m,d(e){t&&t.d(e),e&&l(s)}}}const $="width: 24px; height: 24px; fill: ${$color-sidebar-icon};";function j(e){return`${e} size="2rem"`}function z(e,s,t){let i,n;o(e,y,(e=>t(1,i=e))),o(e,u,(e=>t(2,n=e)));let{data:a}=s;return e.$$set=e=>{"data"in e&&t(0,a=e.data)},[a,i,n,function(){x(a.code)}]}class K extends e{constructor(e){super(),s(this,e,z,w,t,{data:0},f)}}export{K as default};
|
|
201
2
|
//# sourceMappingURL=sidebar-segment.nested.js.map
|