@mozaic-ds/web-components 0.5.0 → 0.6.0
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/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/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/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/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/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/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/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/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/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/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/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/quantityselector/QuantitySelector.stories.d.ts.map +1 -1
|
@@ -1,373 +1,2 @@
|
|
|
1
|
-
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert, f as flush, s as safe_not_equal, c as assign, e as element, n as noop, g as attr, h as set_attributes, z as toggle_class, j as append, m as get_spread_update, o as detach, J as destroy_each, p as compute_rest_props, q as exclude_internal_props, d as space, t as text, k as set_data, l as listen } from '../../index-c33b3772.js';
|
|
2
|
-
import { E as EventHandler } from '../../EventHandler-02058705.js';
|
|
3
|
-
|
|
4
|
-
/* src/components/breadcrumb/Breadcrumb.svelte generated by Svelte v3.58.0 */
|
|
5
|
-
|
|
6
|
-
function get_each_context(ctx, list, i) {
|
|
7
|
-
const child_ctx = ctx.slice();
|
|
8
|
-
child_ctx[12] = list[i];
|
|
9
|
-
child_ctx[14] = i;
|
|
10
|
-
return child_ctx;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// (35:8) {:else}
|
|
14
|
-
function create_else_block(ctx) {
|
|
15
|
-
let span;
|
|
16
|
-
let t_value = /*item*/ ctx[12].text + "";
|
|
17
|
-
let t;
|
|
18
|
-
let span_class_value;
|
|
19
|
-
|
|
20
|
-
return {
|
|
21
|
-
c() {
|
|
22
|
-
span = element("span");
|
|
23
|
-
t = text(t_value);
|
|
24
|
-
attr(span, "class", span_class_value = "mc-link mc-link--s mc-breadcrumb__current" + (/*dark*/ ctx[0] ? ' mc-link--light' : ''));
|
|
25
|
-
},
|
|
26
|
-
m(target, anchor) {
|
|
27
|
-
insert(target, span, anchor);
|
|
28
|
-
append(span, t);
|
|
29
|
-
},
|
|
30
|
-
p(ctx, dirty) {
|
|
31
|
-
if (dirty & /*parseItems*/ 32 && t_value !== (t_value = /*item*/ ctx[12].text + "")) set_data(t, t_value);
|
|
32
|
-
|
|
33
|
-
if (dirty & /*dark*/ 1 && span_class_value !== (span_class_value = "mc-link mc-link--s mc-breadcrumb__current" + (/*dark*/ ctx[0] ? ' mc-link--light' : ''))) {
|
|
34
|
-
attr(span, "class", span_class_value);
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
d(detaching) {
|
|
38
|
-
if (detaching) detach(span);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// (27:8) {#if i !== parseItems.length - 1}
|
|
44
|
-
function create_if_block(ctx) {
|
|
45
|
-
let a;
|
|
46
|
-
let t_value = /*item*/ ctx[12].text + "";
|
|
47
|
-
let t;
|
|
48
|
-
let a_href_value;
|
|
49
|
-
let a_class_value;
|
|
50
|
-
let mounted;
|
|
51
|
-
let dispose;
|
|
52
|
-
|
|
53
|
-
function click_handler() {
|
|
54
|
-
return /*click_handler*/ ctx[9](/*item*/ ctx[12]);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return {
|
|
58
|
-
c() {
|
|
59
|
-
a = element("a");
|
|
60
|
-
t = text(t_value);
|
|
61
|
-
attr(a, "href", a_href_value = /*item*/ ctx[12].href);
|
|
62
|
-
attr(a, "class", a_class_value = "mc-link mc-link--s" + (/*dark*/ ctx[0] ? ' mc-link--light' : ''));
|
|
63
|
-
},
|
|
64
|
-
m(target, anchor) {
|
|
65
|
-
insert(target, a, anchor);
|
|
66
|
-
append(a, t);
|
|
67
|
-
|
|
68
|
-
if (!mounted) {
|
|
69
|
-
dispose = listen(a, "click", click_handler);
|
|
70
|
-
mounted = true;
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
p(new_ctx, dirty) {
|
|
74
|
-
ctx = new_ctx;
|
|
75
|
-
if (dirty & /*parseItems*/ 32 && t_value !== (t_value = /*item*/ ctx[12].text + "")) set_data(t, t_value);
|
|
76
|
-
|
|
77
|
-
if (dirty & /*parseItems*/ 32 && a_href_value !== (a_href_value = /*item*/ ctx[12].href)) {
|
|
78
|
-
attr(a, "href", a_href_value);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (dirty & /*dark*/ 1 && a_class_value !== (a_class_value = "mc-link mc-link--s" + (/*dark*/ ctx[0] ? ' mc-link--light' : ''))) {
|
|
82
|
-
attr(a, "class", a_class_value);
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
d(detaching) {
|
|
86
|
-
if (detaching) detach(a);
|
|
87
|
-
mounted = false;
|
|
88
|
-
dispose();
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// (25:4) {#each parseItems as item, i}
|
|
94
|
-
function create_each_block(ctx) {
|
|
95
|
-
let li;
|
|
96
|
-
let t;
|
|
97
|
-
let li_class_value;
|
|
98
|
-
|
|
99
|
-
function select_block_type(ctx, dirty) {
|
|
100
|
-
if (/*i*/ ctx[14] !== /*parseItems*/ ctx[5].length - 1) return create_if_block;
|
|
101
|
-
return create_else_block;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
let current_block_type = select_block_type(ctx);
|
|
105
|
-
let if_block = current_block_type(ctx);
|
|
106
|
-
|
|
107
|
-
return {
|
|
108
|
-
c() {
|
|
109
|
-
li = element("li");
|
|
110
|
-
if_block.c();
|
|
111
|
-
t = space();
|
|
112
|
-
attr(li, "class", li_class_value = "mc-breadcrumb__item" + (/*item*/ ctx[12].isActive ? ' is-active' : ''));
|
|
113
|
-
},
|
|
114
|
-
m(target, anchor) {
|
|
115
|
-
insert(target, li, anchor);
|
|
116
|
-
if_block.m(li, null);
|
|
117
|
-
append(li, t);
|
|
118
|
-
},
|
|
119
|
-
p(ctx, dirty) {
|
|
120
|
-
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
121
|
-
if_block.p(ctx, dirty);
|
|
122
|
-
} else {
|
|
123
|
-
if_block.d(1);
|
|
124
|
-
if_block = current_block_type(ctx);
|
|
125
|
-
|
|
126
|
-
if (if_block) {
|
|
127
|
-
if_block.c();
|
|
128
|
-
if_block.m(li, t);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
if (dirty & /*parseItems*/ 32 && li_class_value !== (li_class_value = "mc-breadcrumb__item" + (/*item*/ ctx[12].isActive ? ' is-active' : ''))) {
|
|
133
|
-
attr(li, "class", li_class_value);
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
d(detaching) {
|
|
137
|
-
if (detaching) detach(li);
|
|
138
|
-
if_block.d();
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
function create_fragment(ctx) {
|
|
144
|
-
let nav;
|
|
145
|
-
let ul;
|
|
146
|
-
let nav_class_value;
|
|
147
|
-
let each_value = /*parseItems*/ ctx[5];
|
|
148
|
-
let each_blocks = [];
|
|
149
|
-
|
|
150
|
-
for (let i = 0; i < each_value.length; i += 1) {
|
|
151
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
let nav_levels = [
|
|
155
|
-
{
|
|
156
|
-
class: nav_class_value = "mc-breadcrumb " + (/*responsive*/ ctx[1]
|
|
157
|
-
? ' mc-breadcrumb--responsive'
|
|
158
|
-
: '') + (/*dark*/ ctx[0] ? ' mc-breadcrumb--dark' : '') + " " + /*userClass*/ ctx[3]
|
|
159
|
-
},
|
|
160
|
-
{ "aria-label": "Breadcrumb" },
|
|
161
|
-
/*attributes*/ ctx[2]
|
|
162
|
-
];
|
|
163
|
-
|
|
164
|
-
let nav_data = {};
|
|
165
|
-
|
|
166
|
-
for (let i = 0; i < nav_levels.length; i += 1) {
|
|
167
|
-
nav_data = assign(nav_data, nav_levels[i]);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
return {
|
|
171
|
-
c() {
|
|
172
|
-
nav = element("nav");
|
|
173
|
-
ul = element("ul");
|
|
174
|
-
|
|
175
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
176
|
-
each_blocks[i].c();
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
this.c = noop;
|
|
180
|
-
attr(ul, "class", "mc-breadcrumb__container");
|
|
181
|
-
set_attributes(nav, nav_data);
|
|
182
|
-
toggle_class(nav, "mc-breadcrumb--no-padding", /*noPadding*/ ctx[4]);
|
|
183
|
-
},
|
|
184
|
-
m(target, anchor) {
|
|
185
|
-
insert(target, nav, anchor);
|
|
186
|
-
append(nav, ul);
|
|
187
|
-
|
|
188
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
189
|
-
if (each_blocks[i]) {
|
|
190
|
-
each_blocks[i].m(ul, null);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
p(ctx, [dirty]) {
|
|
195
|
-
if (dirty & /*parseItems, dark, eventHandler*/ 97) {
|
|
196
|
-
each_value = /*parseItems*/ ctx[5];
|
|
197
|
-
let i;
|
|
198
|
-
|
|
199
|
-
for (i = 0; i < each_value.length; i += 1) {
|
|
200
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
|
201
|
-
|
|
202
|
-
if (each_blocks[i]) {
|
|
203
|
-
each_blocks[i].p(child_ctx, dirty);
|
|
204
|
-
} else {
|
|
205
|
-
each_blocks[i] = create_each_block(child_ctx);
|
|
206
|
-
each_blocks[i].c();
|
|
207
|
-
each_blocks[i].m(ul, null);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
for (; i < each_blocks.length; i += 1) {
|
|
212
|
-
each_blocks[i].d(1);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
each_blocks.length = each_value.length;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
set_attributes(nav, nav_data = get_spread_update(nav_levels, [
|
|
219
|
-
dirty & /*responsive, dark, userClass*/ 11 && nav_class_value !== (nav_class_value = "mc-breadcrumb " + (/*responsive*/ ctx[1]
|
|
220
|
-
? ' mc-breadcrumb--responsive'
|
|
221
|
-
: '') + (/*dark*/ ctx[0] ? ' mc-breadcrumb--dark' : '') + " " + /*userClass*/ ctx[3]) && { class: nav_class_value },
|
|
222
|
-
{ "aria-label": "Breadcrumb" },
|
|
223
|
-
dirty & /*attributes*/ 4 && /*attributes*/ ctx[2]
|
|
224
|
-
]));
|
|
225
|
-
|
|
226
|
-
toggle_class(nav, "mc-breadcrumb--no-padding", /*noPadding*/ ctx[4]);
|
|
227
|
-
},
|
|
228
|
-
i: noop,
|
|
229
|
-
o: noop,
|
|
230
|
-
d(detaching) {
|
|
231
|
-
if (detaching) detach(nav);
|
|
232
|
-
destroy_each(each_blocks, detaching);
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
function instance($$self, $$props, $$invalidate) {
|
|
238
|
-
let parseItems;
|
|
239
|
-
let noPadding;
|
|
240
|
-
let userClass;
|
|
241
|
-
let attributes;
|
|
242
|
-
const omit_props_names = ["items","dark","responsive","nopadding"];
|
|
243
|
-
let $$restProps = compute_rest_props($$props, omit_props_names);
|
|
244
|
-
let { items } = $$props;
|
|
245
|
-
let { dark = false } = $$props;
|
|
246
|
-
let { responsive = false } = $$props;
|
|
247
|
-
let { nopadding = false } = $$props;
|
|
248
|
-
let eventHandler = new EventHandler();
|
|
249
|
-
const click_handler = item => eventHandler.dispatch('link-clicked', item);
|
|
250
|
-
|
|
251
|
-
$$self.$$set = $$new_props => {
|
|
252
|
-
$$invalidate(11, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
|
|
253
|
-
$$invalidate(10, $$restProps = compute_rest_props($$props, omit_props_names));
|
|
254
|
-
if ('items' in $$new_props) $$invalidate(7, items = $$new_props.items);
|
|
255
|
-
if ('dark' in $$new_props) $$invalidate(0, dark = $$new_props.dark);
|
|
256
|
-
if ('responsive' in $$new_props) $$invalidate(1, responsive = $$new_props.responsive);
|
|
257
|
-
if ('nopadding' in $$new_props) $$invalidate(8, nopadding = $$new_props.nopadding);
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
$$self.$$.update = () => {
|
|
261
|
-
if ($$self.$$.dirty & /*items*/ 128) {
|
|
262
|
-
$$invalidate(5, parseItems = items ? JSON.parse(items) : []);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
if ($$self.$$.dirty & /*nopadding*/ 256) {
|
|
266
|
-
$$invalidate(4, noPadding = nopadding && nopadding !== 'false');
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
$$invalidate(3, userClass = $$props.class);
|
|
270
|
-
$$invalidate(2, attributes = Object.assign({}, $$restProps));
|
|
271
|
-
|
|
272
|
-
if ($$self.$$.dirty & /*attributes*/ 4) {
|
|
273
|
-
delete attributes.class;
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
$$props = exclude_internal_props($$props);
|
|
278
|
-
|
|
279
|
-
return [
|
|
280
|
-
dark,
|
|
281
|
-
responsive,
|
|
282
|
-
attributes,
|
|
283
|
-
userClass,
|
|
284
|
-
noPadding,
|
|
285
|
-
parseItems,
|
|
286
|
-
eventHandler,
|
|
287
|
-
items,
|
|
288
|
-
nopadding,
|
|
289
|
-
click_handler
|
|
290
|
-
];
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
class Breadcrumb extends SvelteElement {
|
|
294
|
-
constructor(options) {
|
|
295
|
-
super();
|
|
296
|
-
const style = document.createElement('style');
|
|
297
|
-
style.textContent = `.mc-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:inherit;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:inherit;text-decoration:underline;-webkit-transition:color ease 200ms;-o-transition:color ease 200ms;transition:color ease 200ms;gap:0.25rem;color:#000000;position:relative;font-size:1rem;line-height:1.375}.mc-link:focus{outline:none}.mc-link:focus::after{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-link.is-visited,.mc-link:visited{color:#333333}.mc-link.is-hover,.mc-link:hover{color:#666666}.mc-link.is-active,.mc-link:active{color:#333333}.mc-link.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--s{font-size:0.875rem;line-height:1.2857142857}.mc-link--m{font-size:1rem;line-height:1.375}.mc-link::after{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:"";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;-o-transition:box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease}.mc-link__icon{display:block;height:1rem;fill:currentColor;-ms-flex-negative:0;flex-shrink:0;width:1rem}.mc-link--light{color:#ffffff}.mc-link--light.is-visited,.mc-link--light:visited{color:#cccccc}.mc-link--light.is-hover,.mc-link--light:hover{color:#999999}.mc-link--light.is-active,.mc-link--light:active{color:#cccccc}.mc-link--light.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary{color:#188803}.mc-link--primary.is-visited,.mc-link--primary:visited{color:#006902}.mc-link--primary.is-hover,.mc-link--primary:hover{color:#035010}.mc-link--primary.is-active,.mc-link--primary:active{color:#006902}.mc-link--primary.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary-02{color:#494f60}.mc-link--primary-02.is-visited,.mc-link--primary-02:visited{color:#343b4c}.mc-link--primary-02.is-hover,.mc-link--primary-02:hover{color:#171b26}.mc-link--primary-02.is-active,.mc-link--primary-02:active{color:#343b4c}.mc-link--primary-02.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--danger{color:#c61112}.mc-link--danger.is-visited,.mc-link--danger:visited{color:#8c0003}.mc-link--danger.is-hover,.mc-link--danger:hover{color:#530000}.mc-link--danger.is-active,.mc-link--danger:active{color:#8c0003}.mc-link--danger.is-disabled{color:#e6e6e6;cursor:not-allowed}@media screen and (min-width: 680px){.mc-link--s\\@from-m{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-m{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1024px){.mc-link--s\\@from-l{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-l{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1280px){.mc-link--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xl{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1920px){.mc-link--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xxl{font-size:1rem;line-height:1.375}}.mc-breadcrumb{font-family:"LeroyMerlin", sans-serif;font-weight:400;color:#191919;padding:0.9375rem 0 0.9375rem 1.125rem}@media screen and (min-width: 360px){.mc-breadcrumb{padding-left:1.25rem}}@media screen and (min-width: 390px){.mc-breadcrumb{padding-left:1.375rem}}@media screen and (min-width: 680px){.mc-breadcrumb{padding-left:2rem}}@media screen and (min-width: 769px){.mc-breadcrumb{padding-left:2.125rem}}@media screen and (min-width: 1024px){.mc-breadcrumb{padding-left:3rem}}@media screen and (min-width: 1280px){.mc-breadcrumb{padding-left:2rem}}@media screen and (min-width: 1440px){.mc-breadcrumb{padding-left:7rem}}@media screen and (min-width: 1680px){.mc-breadcrumb{padding-left:2rem}}@media screen and (min-width: 1920px){.mc-breadcrumb{padding-left:2.5rem}}.mc-breadcrumb__container{list-style:none;margin-left:0;padding-left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:0;margin-top:0}.mc-breadcrumb__item{padding-right:0.5rem;background-position:left center;background-repeat:no-repeat;background-size:1rem}@media screen and (min-width: 1024px){.mc-breadcrumb__item{-ms-flex-negative:0;flex-shrink:0}}.mc-breadcrumb__item.is-active,.mc-breadcrumb__item:only-child,.mc-breadcrumb__item:not(:first-child){padding-left:1.5rem}.mc-breadcrumb__item:not(:first-child){background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iIzMzMzMzMyI+PHBhdGggZD0iTTUuNSAxNGExIDEgMCAwMS0uNzEtLjI5IDEgMSAwIDAxMC0xLjQyTDkuMDkgOGwtNC4zLTQuMjlhMSAxIDAgMDExLjQyLTEuNDJsNSA1YTEgMSAwIDAxMCAxLjQybC01IDVhMSAxIDAgMDEtLjcxLjI5eiIvPjwvc3ZnPg==")}@media screen and (max-width: 1023px){.mc-breadcrumb__item.is-active,.mc-breadcrumb__item:only-child{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iIzMzMzMzMyI+PHBhdGggZD0iTTEwLjUgMTRhMSAxIDAgMDEtLjcxLS4yOWwtNS01YTEgMSAwIDAxMC0xLjQybDUtNWExIDEgMCAxMTEuNDIgMS40Mkw2LjkxIDhsNC4zIDQuMjlhMSAxIDAgMDEwIDEuNDIgMSAxIDAgMDEtLjcxLjI5eiIvPjwvc3ZnPg==")}}.mc-breadcrumb__current,.mc-breadcrumb__current.mc-link{cursor:default;text-decoration:none}.mc-breadcrumb__current,.mc-breadcrumb__current:active,.mc-breadcrumb__current:focus,.mc-breadcrumb__current:hover,.mc-breadcrumb__current:visited,.mc-breadcrumb__current.mc-link,.mc-breadcrumb__current.mc-link:active,.mc-breadcrumb__current.mc-link:focus,.mc-breadcrumb__current.mc-link:hover,.mc-breadcrumb__current.mc-link:visited{color:currentColor}.mc-breadcrumb--dark{background-color:#4d4d4d;color:#ffffff}.mc-breadcrumb--dark .mc-breadcrumb__item:not(:first-child){background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTUuNSAxNGExIDEgMCAwMS0uNzEtLjI5IDEgMSAwIDAxMC0xLjQyTDkuMDkgOGwtNC4zLTQuMjlhMSAxIDAgMDExLjQyLTEuNDJsNSA1YTEgMSAwIDAxMCAxLjQybC01IDVhMSAxIDAgMDEtLjcxLjI5eiIvPjwvc3ZnPg==")}@media screen and (max-width: 1023px){.mc-breadcrumb--dark .mc-breadcrumb__item.is-active,.mc-breadcrumb--dark .mc-breadcrumb__item:only-child{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTEwLjUgMTRhMSAxIDAgMDEtLjcxLS4yOWwtNS01YTEgMSAwIDAxMC0xLjQybDUtNWExIDEgMCAxMTEuNDIgMS40Mkw2LjkxIDhsNC4zIDQuMjlhMSAxIDAgMDEwIDEuNDIgMSAxIDAgMDEtLjcxLjI5eiIvPjwvc3ZnPg==")}}@media screen and (max-width: 1023px){.mc-breadcrumb--responsive .mc-breadcrumb__item:not(.is-active){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}}.mc-breadcrumb--no-padding{padding-left:0}`;
|
|
298
|
-
this.shadowRoot.appendChild(style);
|
|
299
|
-
|
|
300
|
-
init(
|
|
301
|
-
this,
|
|
302
|
-
{
|
|
303
|
-
target: this.shadowRoot,
|
|
304
|
-
props: attribute_to_object(this.attributes),
|
|
305
|
-
customElement: true
|
|
306
|
-
},
|
|
307
|
-
instance,
|
|
308
|
-
create_fragment,
|
|
309
|
-
safe_not_equal,
|
|
310
|
-
{
|
|
311
|
-
items: 7,
|
|
312
|
-
dark: 0,
|
|
313
|
-
responsive: 1,
|
|
314
|
-
nopadding: 8
|
|
315
|
-
},
|
|
316
|
-
null
|
|
317
|
-
);
|
|
318
|
-
|
|
319
|
-
if (options) {
|
|
320
|
-
if (options.target) {
|
|
321
|
-
insert(options.target, this, options.anchor);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
if (options.props) {
|
|
325
|
-
this.$set(options.props);
|
|
326
|
-
flush();
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
static get observedAttributes() {
|
|
332
|
-
return ["items", "dark", "responsive", "nopadding"];
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
get items() {
|
|
336
|
-
return this.$$.ctx[7];
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
set items(items) {
|
|
340
|
-
this.$$set({ items });
|
|
341
|
-
flush();
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
get dark() {
|
|
345
|
-
return this.$$.ctx[0];
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
set dark(dark) {
|
|
349
|
-
this.$$set({ dark });
|
|
350
|
-
flush();
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
get responsive() {
|
|
354
|
-
return this.$$.ctx[1];
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
set responsive(responsive) {
|
|
358
|
-
this.$$set({ responsive });
|
|
359
|
-
flush();
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
get nopadding() {
|
|
363
|
-
return this.$$.ctx[8];
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
set nopadding(nopadding) {
|
|
367
|
-
this.$$set({ nopadding });
|
|
368
|
-
flush();
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export { Breadcrumb as default };
|
|
1
|
+
import{S as e,i,a as r,b as c,f as n,s as t,c as m,e as a,n as d,g as s,h as l,z as o,j as b,m as g,o as u,J as h,p,q as x,d as k,t as f,k as v,l as w}from"../../index-c33b3772.js";import{E as M}from"../../EventHandler-02058705.js";function I(e,i,r){const c=e.slice();return c[12]=i[r],c[14]=r,c}function D(e){let i,r,n,t=e[12].text+"";return{c(){i=a("span"),r=f(t),s(i,"class",n="mc-link mc-link--s mc-breadcrumb__current"+(e[0]?" mc-link--light":""))},m(e,n){c(e,i,n),b(i,r)},p(e,c){32&c&&t!==(t=e[12].text+"")&&v(r,t),1&c&&n!==(n="mc-link mc-link--s mc-breadcrumb__current"+(e[0]?" mc-link--light":""))&&s(i,"class",n)},d(e){e&&u(i)}}}function y(e){let i,r,n,t,m,d,l=e[12].text+"";function o(){return e[9](e[12])}return{c(){i=a("a"),r=f(l),s(i,"href",n=e[12].href),s(i,"class",t="mc-link mc-link--s"+(e[0]?" mc-link--light":""))},m(e,n){c(e,i,n),b(i,r),m||(d=w(i,"click",o),m=!0)},p(c,m){e=c,32&m&&l!==(l=e[12].text+"")&&v(r,l),32&m&&n!==(n=e[12].href)&&s(i,"href",n),1&m&&t!==(t="mc-link mc-link--s"+(e[0]?" mc-link--light":""))&&s(i,"class",t)},d(e){e&&u(i),m=!1,d()}}}function _(e){let i,r,n;function t(e,i){return e[14]!==e[5].length-1?y:D}let m=t(e),d=m(e);return{c(){i=a("li"),d.c(),r=k(),s(i,"class",n="mc-breadcrumb__item"+(e[12].isActive?" is-active":""))},m(e,n){c(e,i,n),d.m(i,null),b(i,r)},p(e,c){m===(m=t(e))&&d?d.p(e,c):(d.d(1),d=m(e),d&&(d.c(),d.m(i,r))),32&c&&n!==(n="mc-breadcrumb__item"+(e[12].isActive?" is-active":""))&&s(i,"class",n)},d(e){e&&u(i),d.d()}}}function A(e){let i,r,n,t=e[5],p=[];for(let i=0;i<t.length;i+=1)p[i]=_(I(e,t,i));let x=[{class:n="mc-breadcrumb "+(e[1]?" mc-breadcrumb--responsive":"")+(e[0]?" mc-breadcrumb--dark":"")+" "+e[3]},{"aria-label":"Breadcrumb"},e[2]],k={};for(let e=0;e<x.length;e+=1)k=m(k,x[e]);return{c(){i=a("nav"),r=a("ul");for(let e=0;e<p.length;e+=1)p[e].c();this.c=d,s(r,"class","mc-breadcrumb__container"),l(i,k),o(i,"mc-breadcrumb--no-padding",e[4])},m(e,n){c(e,i,n),b(i,r);for(let e=0;e<p.length;e+=1)p[e]&&p[e].m(r,null)},p(e,[c]){if(97&c){let i;for(t=e[5],i=0;i<t.length;i+=1){const n=I(e,t,i);p[i]?p[i].p(n,c):(p[i]=_(n),p[i].c(),p[i].m(r,null))}for(;i<p.length;i+=1)p[i].d(1);p.length=t.length}l(i,k=g(x,[11&c&&n!==(n="mc-breadcrumb "+(e[1]?" mc-breadcrumb--responsive":"")+(e[0]?" mc-breadcrumb--dark":"")+" "+e[3])&&{class:n},{"aria-label":"Breadcrumb"},4&c&&e[2]])),o(i,"mc-breadcrumb--no-padding",e[4])},i:d,o:d,d(e){e&&u(i),h(p,e)}}}function j(e,i,r){let c,n,t,a;const d=["items","dark","responsive","nopadding"];let s=p(i,d),{items:l}=i,{dark:o=!1}=i,{responsive:b=!1}=i,{nopadding:g=!1}=i,u=new M;return e.$$set=e=>{r(11,i=m(m({},i),x(e))),r(10,s=p(i,d)),"items"in e&&r(7,l=e.items),"dark"in e&&r(0,o=e.dark),"responsive"in e&&r(1,b=e.responsive),"nopadding"in e&&r(8,g=e.nopadding)},e.$$.update=()=>{128&e.$$.dirty&&r(5,c=l?JSON.parse(l):[]),256&e.$$.dirty&&r(4,n=g&&"false"!==g),r(3,t=i.class),r(2,a=Object.assign({},s)),4&e.$$.dirty&&delete a.class},i=x(i),[o,b,a,t,n,c,u,l,g,e=>u.dispatch("link-clicked",e)]}class z extends e{constructor(e){super();const m=document.createElement("style");m.textContent='.mc-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:inherit;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:inherit;text-decoration:underline;-webkit-transition:color ease 200ms;-o-transition:color ease 200ms;transition:color ease 200ms;gap:0.25rem;color:#000000;position:relative;font-size:1rem;line-height:1.375}.mc-link:focus{outline:none}.mc-link:focus::after{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-link.is-visited,.mc-link:visited{color:#333333}.mc-link.is-hover,.mc-link:hover{color:#666666}.mc-link.is-active,.mc-link:active{color:#333333}.mc-link.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--s{font-size:0.875rem;line-height:1.2857142857}.mc-link--m{font-size:1rem;line-height:1.375}.mc-link::after{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:"";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;-o-transition:box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease}.mc-link__icon{display:block;height:1rem;fill:currentColor;-ms-flex-negative:0;flex-shrink:0;width:1rem}.mc-link--light{color:#ffffff}.mc-link--light.is-visited,.mc-link--light:visited{color:#cccccc}.mc-link--light.is-hover,.mc-link--light:hover{color:#999999}.mc-link--light.is-active,.mc-link--light:active{color:#cccccc}.mc-link--light.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary{color:#188803}.mc-link--primary.is-visited,.mc-link--primary:visited{color:#006902}.mc-link--primary.is-hover,.mc-link--primary:hover{color:#035010}.mc-link--primary.is-active,.mc-link--primary:active{color:#006902}.mc-link--primary.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary-02{color:#494f60}.mc-link--primary-02.is-visited,.mc-link--primary-02:visited{color:#343b4c}.mc-link--primary-02.is-hover,.mc-link--primary-02:hover{color:#171b26}.mc-link--primary-02.is-active,.mc-link--primary-02:active{color:#343b4c}.mc-link--primary-02.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--danger{color:#c61112}.mc-link--danger.is-visited,.mc-link--danger:visited{color:#8c0003}.mc-link--danger.is-hover,.mc-link--danger:hover{color:#530000}.mc-link--danger.is-active,.mc-link--danger:active{color:#8c0003}.mc-link--danger.is-disabled{color:#e6e6e6;cursor:not-allowed}@media screen and (min-width: 680px){.mc-link--s\\@from-m{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-m{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1024px){.mc-link--s\\@from-l{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-l{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1280px){.mc-link--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xl{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1920px){.mc-link--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xxl{font-size:1rem;line-height:1.375}}.mc-breadcrumb{font-family:"LeroyMerlin", sans-serif;font-weight:400;color:#191919;padding:0.9375rem 0 0.9375rem 1.125rem}@media screen and (min-width: 360px){.mc-breadcrumb{padding-left:1.25rem}}@media screen and (min-width: 390px){.mc-breadcrumb{padding-left:1.375rem}}@media screen and (min-width: 680px){.mc-breadcrumb{padding-left:2rem}}@media screen and (min-width: 769px){.mc-breadcrumb{padding-left:2.125rem}}@media screen and (min-width: 1024px){.mc-breadcrumb{padding-left:3rem}}@media screen and (min-width: 1280px){.mc-breadcrumb{padding-left:2rem}}@media screen and (min-width: 1440px){.mc-breadcrumb{padding-left:7rem}}@media screen and (min-width: 1680px){.mc-breadcrumb{padding-left:2rem}}@media screen and (min-width: 1920px){.mc-breadcrumb{padding-left:2.5rem}}.mc-breadcrumb__container{list-style:none;margin-left:0;padding-left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:0;margin-top:0}.mc-breadcrumb__item{padding-right:0.5rem;background-position:left center;background-repeat:no-repeat;background-size:1rem}@media screen and (min-width: 1024px){.mc-breadcrumb__item{-ms-flex-negative:0;flex-shrink:0}}.mc-breadcrumb__item.is-active,.mc-breadcrumb__item:only-child,.mc-breadcrumb__item:not(:first-child){padding-left:1.5rem}.mc-breadcrumb__item:not(:first-child){background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iIzMzMzMzMyI+PHBhdGggZD0iTTUuNSAxNGExIDEgMCAwMS0uNzEtLjI5IDEgMSAwIDAxMC0xLjQyTDkuMDkgOGwtNC4zLTQuMjlhMSAxIDAgMDExLjQyLTEuNDJsNSA1YTEgMSAwIDAxMCAxLjQybC01IDVhMSAxIDAgMDEtLjcxLjI5eiIvPjwvc3ZnPg==")}@media screen and (max-width: 1023px){.mc-breadcrumb__item.is-active,.mc-breadcrumb__item:only-child{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iIzMzMzMzMyI+PHBhdGggZD0iTTEwLjUgMTRhMSAxIDAgMDEtLjcxLS4yOWwtNS01YTEgMSAwIDAxMC0xLjQybDUtNWExIDEgMCAxMTEuNDIgMS40Mkw2LjkxIDhsNC4zIDQuMjlhMSAxIDAgMDEwIDEuNDIgMSAxIDAgMDEtLjcxLjI5eiIvPjwvc3ZnPg==")}}.mc-breadcrumb__current,.mc-breadcrumb__current.mc-link{cursor:default;text-decoration:none}.mc-breadcrumb__current,.mc-breadcrumb__current:active,.mc-breadcrumb__current:focus,.mc-breadcrumb__current:hover,.mc-breadcrumb__current:visited,.mc-breadcrumb__current.mc-link,.mc-breadcrumb__current.mc-link:active,.mc-breadcrumb__current.mc-link:focus,.mc-breadcrumb__current.mc-link:hover,.mc-breadcrumb__current.mc-link:visited{color:currentColor}.mc-breadcrumb--dark{background-color:#4d4d4d;color:#ffffff}.mc-breadcrumb--dark .mc-breadcrumb__item:not(:first-child){background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTUuNSAxNGExIDEgMCAwMS0uNzEtLjI5IDEgMSAwIDAxMC0xLjQyTDkuMDkgOGwtNC4zLTQuMjlhMSAxIDAgMDExLjQyLTEuNDJsNSA1YTEgMSAwIDAxMCAxLjQybC01IDVhMSAxIDAgMDEtLjcxLjI5eiIvPjwvc3ZnPg==")}@media screen and (max-width: 1023px){.mc-breadcrumb--dark .mc-breadcrumb__item.is-active,.mc-breadcrumb--dark .mc-breadcrumb__item:only-child{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTEwLjUgMTRhMSAxIDAgMDEtLjcxLS4yOWwtNS01YTEgMSAwIDAxMC0xLjQybDUtNWExIDEgMCAxMTEuNDIgMS40Mkw2LjkxIDhsNC4zIDQuMjlhMSAxIDAgMDEwIDEuNDIgMSAxIDAgMDEtLjcxLjI5eiIvPjwvc3ZnPg==")}}@media screen and (max-width: 1023px){.mc-breadcrumb--responsive .mc-breadcrumb__item:not(.is-active){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}}.mc-breadcrumb--no-padding{padding-left:0}',this.shadowRoot.appendChild(m),i(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},j,A,t,{items:7,dark:0,responsive:1,nopadding:8},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),n()))}static get observedAttributes(){return["items","dark","responsive","nopadding"]}get items(){return this.$$.ctx[7]}set items(e){this.$$set({items:e}),n()}get dark(){return this.$$.ctx[0]}set dark(e){this.$$set({dark:e}),n()}get responsive(){return this.$$.ctx[1]}set responsive(e){this.$$set({responsive:e}),n()}get nopadding(){return this.$$.ctx[8]}set nopadding(e){this.$$set({nopadding:e}),n()}}export{z as default};
|
|
373
2
|
//# sourceMappingURL=Breadcrumb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.js","sources":["../../../src/components/breadcrumb/Breadcrumb.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n import type { BreadcrumbItems } from './breadcrumb.types';\n import { EventHandler } from '../../utilities/EventHandler';\n\n export let items: string;\n export let dark = false;\n export let responsive = false;\n export let nopadding: boolean | string = false;\n let eventHandler = new EventHandler();\n\n $: parseItems = items ? (JSON.parse(items) as BreadcrumbItems[]) : [];\n $: noPadding = nopadding && nopadding !== 'false';\n $: userClass = $$props.class;\n $: attributes = { ...$$restProps };\n $: delete attributes.class;\n</script>\n\n<nav\n class=\"mc-breadcrumb {responsive ? ' mc-breadcrumb--responsive' : ''}{dark\n ? ' mc-breadcrumb--dark'\n : ''} {userClass}\"\n class:mc-breadcrumb--no-padding={noPadding}\n aria-label=\"Breadcrumb\"\n {...attributes}\n>\n <ul class=\"mc-breadcrumb__container\">\n {#each parseItems as item, i}\n <li class=\"mc-breadcrumb__item{item.isActive ? ' is-active' : ''}\">\n {#if i !== parseItems.length - 1}\n <a\n href={item.href}\n class=\"mc-link mc-link--s{dark ? ' mc-link--light' : ''}\"\n on:click={() => eventHandler.dispatch('link-clicked', item)}\n >\n {item.text}\n </a>\n {:else}\n <span\n class=\"mc-link mc-link--s mc-breadcrumb__current{dark\n ? ' mc-link--light'\n : ''}\"\n >\n {item.text}\n </span>\n {/if}\n </li>\n {/each}\n </ul>\n</nav>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import '@mozaic-ds/styles/components/_c.links';\n @import '@mozaic-ds/styles/components/_c.breadcrumb';\n</style>\n"],"names":[
|
|
1
|
+
{"version":3,"file":"Breadcrumb.js","sources":["../../../src/components/breadcrumb/Breadcrumb.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n import type { BreadcrumbItems } from './breadcrumb.types';\n import { EventHandler } from '../../utilities/EventHandler';\n\n export let items: string;\n export let dark = false;\n export let responsive = false;\n export let nopadding: boolean | string = false;\n let eventHandler = new EventHandler();\n\n $: parseItems = items ? (JSON.parse(items) as BreadcrumbItems[]) : [];\n $: noPadding = nopadding && nopadding !== 'false';\n $: userClass = $$props.class;\n $: attributes = { ...$$restProps };\n $: delete attributes.class;\n</script>\n\n<nav\n class=\"mc-breadcrumb {responsive ? ' mc-breadcrumb--responsive' : ''}{dark\n ? ' mc-breadcrumb--dark'\n : ''} {userClass}\"\n class:mc-breadcrumb--no-padding={noPadding}\n aria-label=\"Breadcrumb\"\n {...attributes}\n>\n <ul class=\"mc-breadcrumb__container\">\n {#each parseItems as item, i}\n <li class=\"mc-breadcrumb__item{item.isActive ? ' is-active' : ''}\">\n {#if i !== parseItems.length - 1}\n <a\n href={item.href}\n class=\"mc-link mc-link--s{dark ? ' mc-link--light' : ''}\"\n on:click={() => eventHandler.dispatch('link-clicked', item)}\n >\n {item.text}\n </a>\n {:else}\n <span\n class=\"mc-link mc-link--s mc-breadcrumb__current{dark\n ? ' mc-link--light'\n : ''}\"\n >\n {item.text}\n </span>\n {/if}\n </li>\n {/each}\n </ul>\n</nav>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import '@mozaic-ds/styles/components/_c.links';\n @import '@mozaic-ds/styles/components/_c.breadcrumb';\n</style>\n"],"names":["t_value","ctx","text","insert","target","span","anchor","dirty","set_data","t","attr","a","a_href_value","href","length","create_if_block","li","li_class_value","isActive","i","nav","append","ul","class","nav_class_value","items","$$props","dark","responsive","nopadding","eventHandler","EventHandler","$$invalidate","parseItems","JSON","parse","noPadding","userClass","attributes","Object","assign","$$restProps","item","dispatch"],"mappings":"gUA4CaA,EAAAC,MAAKC,KAAI,4FAJuCD,EAAA,GAC7C,kBACA,aAHNE,EAMMC,EAAAC,EAAAC,kBADH,GAAAC,GAAAP,KAAAA,EAAAC,MAAKC,KAAI,KAAAM,EAAAC,EAAAT,4DAJuCC,EAAA,GAC7C,kBACA,mEANHD,EAAAC,MAAKC,KAAI,8DAJJQ,EAAAC,EAAA,OAAAC,EAAAX,MAAKY,0CACeZ,EAAI,GAAG,kBAAoB,aAFvDE,EAMGC,EAAAO,EAAAL,iDADA,GAAAC,GAAAP,KAAAA,EAAAC,MAAKC,KAAI,KAAAM,EAAAC,EAAAT,GAJJ,GAAAO,GAAAK,KAAAA,EAAAX,MAAKY,uDACeZ,EAAI,GAAG,kBAAoB,sFAHpD,OAAAA,EAAM,MAAAA,EAAW,GAAAa,OAAS,EAACC,uDADHL,EAAAM,EAAA,QAAAC,EAAA,uBAAAhB,EAAK,IAAAiB,SAAW,aAAe,aAA9Df,EAkBIC,EAAAY,EAAAV,2FAlB2B,GAAAC,GAAAU,KAAAA,EAAA,uBAAAhB,EAAK,IAAAiB,SAAW,aAAe,qEADzDjB,EAAU,wBAAfa,OAAIK,GAAA,qDARclB,EAAU,GAAG,6BAA+B,KAAIA,EAAA,GAClE,uBACA,QAAKA,EAAS,gCAGdA,EAAU,8MAFmBA,EAAS,YAJ5CE,EA+BKC,EAAAgB,EAAAd,GAvBHe,EAsBID,EAAAE,mFArBKrB,EAAU,WAAfa,OAAIK,GAAA,EAAA,iHAAJL,iDARkBb,EAAU,GAAG,6BAA+B,KAAIA,EAAA,GAClE,uBACA,QAAKA,EAAS,KAAA,CAAAsB,MAAAC,oCAGdvB,EAAU,sCAFmBA,EAAS,uIAjB/BwB,GAAaC,GACbC,KAAAA,GAAO,GAAKD,GACZE,WAAAA,GAAa,GAAKF,GAClBG,UAAAA,GAA8B,GAAKH,EAC1CI,MAAmBC,8NAEtBC,EAAA,EAAEC,EAAaR,EAASS,KAAKC,MAAMV,GAAK,wBACtCW,EAAYP,GAA2B,UAAdA,GACzBG,EAAA,EAAAK,EAAYX,EAAQH,WACpBe,EAALC,OAAAC,UAAuBC,yBACXH,EAAWf,iCAkBKmB,GAAAZ,EAAaa,SAAS,eAAgBD"}
|