le-kit 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/le-bar.cjs.entry.js +428 -0
- package/dist/cjs/le-box.cjs.entry.js +1 -1
- package/dist/cjs/le-button_13.cjs.entry.js +17 -17
- package/dist/cjs/le-card.cjs.entry.js +1 -1
- package/dist/cjs/le-combobox.cjs.entry.js +1 -1
- package/dist/cjs/le-header-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/le-icon.cjs.entry.js +1 -1
- package/dist/cjs/le-kit.cjs.js +1 -1
- package/dist/cjs/le-multiselect.cjs.entry.js +3 -3
- package/dist/cjs/le-navigation.cjs.entry.js +61 -250
- package/dist/cjs/le-number-input.cjs.entry.js +1 -1
- package/dist/cjs/le-round-progress.cjs.entry.js +1 -1
- package/dist/cjs/le-segmented-control.cjs.entry.js +1 -1
- package/dist/cjs/le-stack.cjs.entry.js +1 -1
- package/dist/cjs/le-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/le-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/le-tab.cjs.entry.js +1 -1
- package/dist/cjs/le-tabs.cjs.entry.js +2 -2
- package/dist/cjs/le-tag.cjs.entry.js +1 -1
- package/dist/cjs/le-turntable.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/le-bar/le-bar.css +255 -0
- package/dist/collection/components/le-bar/le-bar.js +628 -0
- package/dist/collection/components/le-bar/le-bar.js.map +1 -0
- package/dist/collection/components/le-box/le-box.js +1 -1
- package/dist/collection/components/le-button/le-button.js +1 -1
- package/dist/collection/components/le-card/le-card.js +1 -1
- package/dist/collection/components/le-checkbox/le-checkbox.js +1 -1
- package/dist/collection/components/le-collapse/le-collapse.js +1 -1
- package/dist/collection/components/le-combobox/le-combobox.js +1 -1
- package/dist/collection/components/le-current-heading/le-current-heading.js +1 -1
- package/dist/collection/components/le-dropdown-base/le-dropdown-base.js +1 -1
- package/dist/collection/components/le-header/le-header.js +2 -2
- package/dist/collection/components/le-header-placeholder/le-header-placeholder.js +1 -1
- package/dist/collection/components/le-icon/le-icon.js +1 -1
- package/dist/collection/components/le-multiselect/le-multiselect.js +3 -3
- package/dist/collection/components/le-navigation/le-navigation.css +29 -47
- package/dist/collection/components/le-navigation/le-navigation.js +62 -251
- package/dist/collection/components/le-navigation/le-navigation.js.map +1 -1
- package/dist/collection/components/le-number-input/le-number-input.js +1 -1
- package/dist/collection/components/le-popover/le-popover.js +3 -3
- package/dist/collection/components/le-popup/le-popup.js +1 -1
- package/dist/collection/components/le-round-progress/le-round-progress.js +1 -1
- package/dist/collection/components/le-scroll-progress/le-scroll-progress.js +1 -1
- package/dist/collection/components/le-segmented-control/le-segmented-control.js +1 -1
- package/dist/collection/components/le-select/le-select.js +2 -2
- package/dist/collection/components/le-slot/le-slot.js +1 -1
- package/dist/collection/components/le-stack/le-stack.js +1 -1
- package/dist/collection/components/le-string-input/le-string-input.js +2 -2
- package/dist/collection/components/le-tab/le-tab.js +1 -1
- package/dist/collection/components/le-tab-bar/le-tab-bar.js +1 -1
- package/dist/collection/components/le-tab-panel/le-tab-panel.js +2 -2
- package/dist/collection/components/le-tabs/le-tabs.js +2 -2
- package/dist/collection/components/le-tag/le-tag.js +1 -1
- package/dist/collection/components/le-turntable/le-turntable.js +1 -1
- package/dist/collection/dist/components/assets/custom-elements.json +2147 -1764
- package/dist/components/assets/custom-elements.json +2147 -1764
- package/dist/components/le-bar.d.ts +11 -0
- package/dist/components/le-bar.js +9 -0
- package/dist/components/le-bar.js.map +1 -0
- package/dist/components/le-bar2.js +473 -0
- package/dist/components/le-bar2.js.map +1 -0
- package/dist/components/le-box.js +1 -1
- package/dist/components/le-button2.js +8 -8
- package/dist/components/le-card.js +1 -1
- package/dist/components/le-collapse2.js +1 -1
- package/dist/components/le-combobox.js +1 -1
- package/dist/components/le-current-heading.js +1 -1
- package/dist/components/le-dropdown-base2.js +1 -1
- package/dist/components/le-header-placeholder.js +1 -1
- package/dist/components/le-header.js +2 -2
- package/dist/components/le-icon2.js +1 -1
- package/dist/components/le-multiselect.js +3 -3
- package/dist/components/le-navigation.js +70 -253
- package/dist/components/le-navigation.js.map +1 -1
- package/dist/components/le-number-input.js +1 -1
- package/dist/components/le-popover2.js +3 -3
- package/dist/components/le-round-progress.js +1 -1
- package/dist/components/le-scroll-progress.js +1 -1
- package/dist/components/le-segmented-control.js +1 -1
- package/dist/components/le-stack.js +1 -1
- package/dist/components/le-tab-bar.js +1 -1
- package/dist/components/le-tab-panel.js +2 -2
- package/dist/components/le-tab2.js +1 -1
- package/dist/components/le-tabs.js +2 -2
- package/dist/components/le-tag2.js +1 -1
- package/dist/components/le-turntable.js +1 -1
- package/dist/docs.json +404 -13
- package/dist/esm/le-bar.entry.js +426 -0
- package/dist/esm/le-bar.entry.js.map +1 -0
- package/dist/esm/le-box.entry.js +1 -1
- package/dist/esm/le-button_13.entry.js +17 -17
- package/dist/esm/le-card.entry.js +1 -1
- package/dist/esm/le-combobox.entry.js +1 -1
- package/dist/esm/le-header-placeholder.entry.js +1 -1
- package/dist/esm/le-icon.entry.js +1 -1
- package/dist/esm/le-kit.js +1 -1
- package/dist/esm/le-multiselect.entry.js +3 -3
- package/dist/esm/le-navigation.entry.js +61 -250
- package/dist/esm/le-navigation.entry.js.map +1 -1
- package/dist/esm/le-number-input.entry.js +1 -1
- package/dist/esm/le-round-progress.entry.js +1 -1
- package/dist/esm/le-segmented-control.entry.js +1 -1
- package/dist/esm/le-stack.entry.js +1 -1
- package/dist/esm/le-tab-bar.entry.js +1 -1
- package/dist/esm/le-tab-panel.entry.js +2 -2
- package/dist/esm/le-tab.entry.js +1 -1
- package/dist/esm/le-tabs.entry.js +2 -2
- package/dist/esm/le-tag.entry.js +1 -1
- package/dist/esm/le-turntable.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/le-kit/dist/components/assets/custom-elements.json +2147 -1764
- package/dist/le-kit/le-kit.esm.js +1 -1
- package/dist/le-kit/p-045e0d4a.entry.js +2 -0
- package/dist/le-kit/p-045e0d4a.entry.js.map +1 -0
- package/dist/le-kit/{p-00cd6dc4.entry.js → p-07705c61.entry.js} +2 -2
- package/dist/le-kit/{p-0b5ab6ec.entry.js → p-0a270831.entry.js} +2 -2
- package/dist/le-kit/p-2102a152.entry.js +2 -0
- package/dist/le-kit/{p-02699578.entry.js.map → p-2102a152.entry.js.map} +1 -1
- package/dist/le-kit/{p-76d03b1e.entry.js → p-244ff3d7.entry.js} +2 -2
- package/dist/le-kit/{p-a5e21c8e.entry.js → p-249db213.entry.js} +2 -2
- package/dist/le-kit/{p-348a4e39.entry.js → p-3a0a57e9.entry.js} +2 -2
- package/dist/le-kit/{p-2db32332.entry.js → p-4b88b0da.entry.js} +2 -2
- package/dist/le-kit/p-4f11ea11.entry.js +2 -0
- package/dist/le-kit/p-4f11ea11.entry.js.map +1 -0
- package/dist/le-kit/{p-9f409d74.entry.js → p-61edb398.entry.js} +2 -2
- package/dist/le-kit/{p-17ace252.entry.js → p-6d0090c1.entry.js} +2 -2
- package/dist/le-kit/{p-91421993.entry.js → p-73f7de28.entry.js} +2 -2
- package/dist/le-kit/{p-8907cf95.entry.js → p-764005e3.entry.js} +2 -2
- package/dist/le-kit/{p-509caf7f.entry.js → p-94f774af.entry.js} +2 -2
- package/dist/le-kit/p-ac822433.entry.js +2 -0
- package/dist/le-kit/{p-995f6de8.entry.js → p-b21277e8.entry.js} +2 -2
- package/dist/le-kit/{p-65fa68c3.entry.js → p-b6997587.entry.js} +2 -2
- package/dist/le-kit/{p-0aab5747.entry.js → p-c0ccc9aa.entry.js} +2 -2
- package/dist/le-kit/{p-b4dcb4df.entry.js → p-ebd86d4f.entry.js} +2 -2
- package/dist/types/components/le-bar/le-bar.d.ts +125 -0
- package/dist/types/components/le-navigation/le-navigation.d.ts +10 -18
- package/dist/types/components.d.ts +148 -0
- package/package.json +4 -4
- package/dist/le-kit/p-02699578.entry.js +0 -2
- package/dist/le-kit/p-a1c26c46.entry.js +0 -2
- package/dist/le-kit/p-a1c26c46.entry.js.map +0 -1
- package/dist/le-kit/p-ccf4c548.entry.js +0 -2
- /package/dist/le-kit/{p-00cd6dc4.entry.js.map → p-07705c61.entry.js.map} +0 -0
- /package/dist/le-kit/{p-0b5ab6ec.entry.js.map → p-0a270831.entry.js.map} +0 -0
- /package/dist/le-kit/{p-76d03b1e.entry.js.map → p-244ff3d7.entry.js.map} +0 -0
- /package/dist/le-kit/{p-a5e21c8e.entry.js.map → p-249db213.entry.js.map} +0 -0
- /package/dist/le-kit/{p-348a4e39.entry.js.map → p-3a0a57e9.entry.js.map} +0 -0
- /package/dist/le-kit/{p-2db32332.entry.js.map → p-4b88b0da.entry.js.map} +0 -0
- /package/dist/le-kit/{p-9f409d74.entry.js.map → p-61edb398.entry.js.map} +0 -0
- /package/dist/le-kit/{p-17ace252.entry.js.map → p-6d0090c1.entry.js.map} +0 -0
- /package/dist/le-kit/{p-91421993.entry.js.map → p-73f7de28.entry.js.map} +0 -0
- /package/dist/le-kit/{p-8907cf95.entry.js.map → p-764005e3.entry.js.map} +0 -0
- /package/dist/le-kit/{p-509caf7f.entry.js.map → p-94f774af.entry.js.map} +0 -0
- /package/dist/le-kit/{p-ccf4c548.entry.js.map → p-ac822433.entry.js.map} +0 -0
- /package/dist/le-kit/{p-995f6de8.entry.js.map → p-b21277e8.entry.js.map} +0 -0
- /package/dist/le-kit/{p-65fa68c3.entry.js.map → p-b6997587.entry.js.map} +0 -0
- /package/dist/le-kit/{p-0aab5747.entry.js.map → p-c0ccc9aa.entry.js.map} +0 -0
- /package/dist/le-kit/{p-b4dcb4df.entry.js.map → p-ebd86d4f.entry.js.map} +0 -0
|
@@ -224,7 +224,7 @@ const LeCombobox = class {
|
|
|
224
224
|
}
|
|
225
225
|
render() {
|
|
226
226
|
const hasValue = this.inputValue.length > 0;
|
|
227
|
-
return (index.h("le-component", { key: '
|
|
227
|
+
return (index.h("le-component", { key: 'f65aad2f17c8b15b08ea6719cc481a37cc68a081', component: "le-combobox" }, index.h("le-dropdown-base", { key: 'a1b518b8acd649bf1061e403d89f95ebc5d2e366', ref: el => (this.dropdownEl = el), options: this.parsedOptions, value: this.value, disabled: this.disabled, filterFn: this.filterOption, filterQuery: this.inputValue, emptyText: this.emptyText, fullWidth: this.fullWidth, closeOnClickOutside: false, onLeOptionSelect: this.handleOptionSelect, onLeDropdownOpen: this.handleDropdownOpen, onLeDropdownClose: this.handleDropdownClose }, index.h("div", { key: '47339300365dca2c59e1d26fcae4faeef747ab18', slot: "trigger", class: { 'combobox-trigger': true, 'is-open': this.open } }, index.h("le-string-input", { key: 'e3842d3ea970a14405fd555fd8d8f4e9dbd14e80', mode: "default", hideDescription: true, inputRef: el => (this.inputEl = el), type: "text", class: "combobox-input", value: this.inputValue, placeholder: this.placeholder, disabled: this.disabled, "aria-haspopup": "listbox", "aria-expanded": this.open ? 'true' : 'false', "aria-autocomplete": "list", onInput: this.handleInputChange, onFocus: this.handleInputFocus, onKeyDown: this.handleInputKeyDown }), hasValue && !this.disabled && (index.h("button", { key: '81caabc48183e8e93f84cd5a063a4d83edbfe87d', type: "button", class: "combobox-clear", onClick: this.handleClear, "aria-label": "Clear", tabIndex: -1 }, index.h("svg", { key: '02bc4d15d122119c3910b3bd03db76cd8a30b783', viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: 'de0053be0eef471d35478a1c10a4408250a44dbf', d: "M4 4l8 8M12 4l-8 8" })))), index.h("span", { key: '72ea5b8bda38a8c08fff1763457dcf2377787c44', class: "combobox-arrow" }, index.h("svg", { key: 'c0f66766a7893978e142e63adec3863e792b6554', viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: 'd6287e5dede972620a6f90632462dd7d495bf927', d: "M4 6l4 4 4-4" }))))), this.name && index.h("input", { key: 'fed8a8936750fafe7b58912954099da20a506907', type: "hidden", name: this.name, value: this.value?.toString() ?? '' })));
|
|
228
228
|
}
|
|
229
229
|
static get watchers() { return {
|
|
230
230
|
"value": ["handleValueChange"],
|
|
@@ -7,7 +7,7 @@ const LeHeaderPlaceholder = class {
|
|
|
7
7
|
index.registerInstance(this, hostRef);
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (index.h(index.Host, { key: '
|
|
10
|
+
return (index.h(index.Host, { key: '7246b0391351a1b40e76b833b83f057a7a11d6eb', "aria-hidden": "true", style: {
|
|
11
11
|
display: 'block',
|
|
12
12
|
height: 'var(--le-header-height, 64px)',
|
|
13
13
|
} }));
|
|
@@ -97,7 +97,7 @@ const LeIcon = class {
|
|
|
97
97
|
return svgElements;
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (index.h("svg", { key: '
|
|
100
|
+
return (index.h("svg", { key: 'ef551908a289cd765ae88ded83b99057d510e142', xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", height: this.size || 16, width: this.size || 16, viewBox: this.iconData?.viewBox || `0 0 ${this.size || 16} ${this.size || 16}` }, this.renderSVGContent(this.iconData?.children)));
|
|
101
101
|
}
|
|
102
102
|
static get assetsDirs() { return ["assets/icons"]; }
|
|
103
103
|
static get watchers() { return {
|
package/dist/cjs/le-kit.cjs.js
CHANGED
|
@@ -18,7 +18,7 @@ var patchBrowser = () => {
|
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(async (options) => {
|
|
20
20
|
await index.globalScripts();
|
|
21
|
-
return index.bootstrapLazy([["le-button_13.cjs",[[769,"le-header",{"isStatic":[516,"static"],"sticky":[516],"fixed":[516],"revealOnScroll":[513,"reveal-on-scroll"],"shrinkOffset":[513,"shrink-offset"],"expandOnHover":[516,"expand-on-hover"],"revealed":[32],"shrunk":[32],"placeholderHeight":[32],"hoverActive":[32]},[[9,"scroll","onWindowScroll"],[9,"resize","onWindowResize"]],{"revealOnScroll":["onBehaviorPropsChange"],"shrinkOffset":["onBehaviorPropsChange"],"fixed":["onBehaviorPropsChange"],"sticky":["onBehaviorPropsChange"],"isStatic":["onBehaviorPropsChange"]}],[769,"le-current-heading",{"selector":[1],"activeText":[32]},[[9,"scroll","onScroll"],[9,"resize","onResize"]],{"selector":["onSelectorChange"]}],[769,"le-scroll-progress",{"trackScrollProgress":[513,"track-scroll-progress"],"progress":[32]},[[9,"scroll","onScroll"],[9,"resize","onResize"]],{"trackScrollProgress":["onTrackChange"]}],[769,"le-collapse",{"closed":[1540],"scrollDown":[516,"scroll-down"],"noFading":[516,"no-fading"],"collapseOnHeaderShrink":[516,"collapse-on-header-shrink"],"headerShrunk":[32]},[[8,"leHeaderShrinkChange","handleHeaderShrink"]],{"open":["onOpenChange"],"headerShrunk":["onDrivenStateChange"]}],[769,"le-dropdown-base",{"options":[16],"value":[8],"multiple":[4],"open":[1540],"disabled":[516],"filterFn":[16],"filterQuery":[1,"filter-query"],"emptyText":[1,"empty-text"],"showCheckboxes":[4,"show-checkboxes"],"maxHeight":[1,"max-height"],"width":[1],"fullWidth":[4,"full-width"],"closeOnClickOutside":[4,"close-on-click-outside"],"focusedIndex":[32],"filteredOptions":[32],"show":[64],"hide":[64],"toggle":[64]},null,{"options":["handleOptionsChange"],"filterQuery":["handleOptionsChange"]}],[769,"le-popup",{"mode":[1537],"open":[1540],"type":[1],"popupTitle":[1,"popup-title"],"message":[1],"modal":[4],"position":[1],"confirmText":[1,"confirm-text"],"cancelText":[1,"cancel-text"],"placeholder":[1],"defaultValue":[1,"default-value"],"closeOnBackdrop":[4,"close-on-backdrop"],"inputValue":[32],"show":[64],"hide":[64]}],[769,"le-button",{"mode":[1537],"variant":[1],"color":[1],"size":[1],"selected":[4],"fullWidth":[516,"full-width"],"iconOnly":[1,"icon-only"],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"disabled":[4],"type":[1],"href":[1],"target":[1],"align":[1]}],[769,"le-checkbox",{"checked":[1540],"disabled":[4],"name":[1],"value":[1],"externalId":[1,"external-id"]}],[769,"le-component",{"component":[1],"displayName":[1,"display-name"],"hostClass":[1,"host-class"],"hostStyle":[16],"adminMode":[32],"componentMeta":[32],"propertyValues":[32]}],[769,"le-select",{"options":[1],"value":[1032],"placeholder":[1],"disabled":[516],"required":[4],"name":[1],"fullWidth":[4,"full-width"],"size":[513],"variant":[513],"searchable":[4],"emptyText":[1,"empty-text"],"open":[1540],"selectedOption":[32],"searchQuery":[32],"showDropdown":[64],"hideDropdown":[64]},null,{"value":["handleValueChange"],"options":["handleOptionsChange"]}],[769,"le-slot",{"type":[1],"name":[1],"label":[1],"description":[1],"allowedComponents":[1,"allowed-components"],"multiple":[4],"required":[4],"placeholder":[1],"tag":[1],"slotStyle":[1,"slot-style"],"adminMode":[32],"textValue":[32],"isValidHtml":[32],"availableComponents":[32],"pickerOpen":[32]}],[769,"le-string-input",{"inputRef":[16],"mode":[1537],"value":[1537],"name":[1],"type":[1],"label":[1],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"placeholder":[1],"hideDescription":[4,"hide-description"],"disabled":[4],"readonly":[4],"externalId":[1,"external-id"]}],[769,"le-popover",{"mode":[1537],"open":[1540],"position":[1],"align":[1],"popoverTitle":[1,"popover-title"],"showClose":[4,"show-close"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEscape":[4,"close-on-escape"],"offset":[2],"width":[1],"minWidth":[1,"min-width"],"maxWidth":[1,"max-width"],"triggerFullWidth":[4,"trigger-full-width"],"isPositioned":[32],"updatePosition":[64],"show":[64],"hide":[64],"toggle":[64]}]]],["le-navigation.cjs",[[769,"le-navigation",{"items":[1],"orientation":[513],"wrap":[516],"overflowMode":[513,"overflow-mode"],"minVisibleItemsForMore":[2,"min-visible-items-for-more"],"align":[513],"activeUrl":[1,"active-url"],"searchable":[4],"searchPlaceholder":[1,"search-placeholder"],"emptyText":[1,"empty-text"],"submenuSearchable":[4,"submenu-searchable"],"searchQuery":[32],"openState":[32],"overflowIds":[32],"hamburgerActive":[32],"
|
|
21
|
+
return index.bootstrapLazy([["le-button_13.cjs",[[769,"le-header",{"isStatic":[516,"static"],"sticky":[516],"fixed":[516],"revealOnScroll":[513,"reveal-on-scroll"],"shrinkOffset":[513,"shrink-offset"],"expandOnHover":[516,"expand-on-hover"],"revealed":[32],"shrunk":[32],"placeholderHeight":[32],"hoverActive":[32]},[[9,"scroll","onWindowScroll"],[9,"resize","onWindowResize"]],{"revealOnScroll":["onBehaviorPropsChange"],"shrinkOffset":["onBehaviorPropsChange"],"fixed":["onBehaviorPropsChange"],"sticky":["onBehaviorPropsChange"],"isStatic":["onBehaviorPropsChange"]}],[769,"le-current-heading",{"selector":[1],"activeText":[32]},[[9,"scroll","onScroll"],[9,"resize","onResize"]],{"selector":["onSelectorChange"]}],[769,"le-scroll-progress",{"trackScrollProgress":[513,"track-scroll-progress"],"progress":[32]},[[9,"scroll","onScroll"],[9,"resize","onResize"]],{"trackScrollProgress":["onTrackChange"]}],[769,"le-collapse",{"closed":[1540],"scrollDown":[516,"scroll-down"],"noFading":[516,"no-fading"],"collapseOnHeaderShrink":[516,"collapse-on-header-shrink"],"headerShrunk":[32]},[[8,"leHeaderShrinkChange","handleHeaderShrink"]],{"open":["onOpenChange"],"headerShrunk":["onDrivenStateChange"]}],[769,"le-dropdown-base",{"options":[16],"value":[8],"multiple":[4],"open":[1540],"disabled":[516],"filterFn":[16],"filterQuery":[1,"filter-query"],"emptyText":[1,"empty-text"],"showCheckboxes":[4,"show-checkboxes"],"maxHeight":[1,"max-height"],"width":[1],"fullWidth":[4,"full-width"],"closeOnClickOutside":[4,"close-on-click-outside"],"focusedIndex":[32],"filteredOptions":[32],"show":[64],"hide":[64],"toggle":[64]},null,{"options":["handleOptionsChange"],"filterQuery":["handleOptionsChange"]}],[769,"le-popup",{"mode":[1537],"open":[1540],"type":[1],"popupTitle":[1,"popup-title"],"message":[1],"modal":[4],"position":[1],"confirmText":[1,"confirm-text"],"cancelText":[1,"cancel-text"],"placeholder":[1],"defaultValue":[1,"default-value"],"closeOnBackdrop":[4,"close-on-backdrop"],"inputValue":[32],"show":[64],"hide":[64]}],[769,"le-button",{"mode":[1537],"variant":[1],"color":[1],"size":[1],"selected":[4],"fullWidth":[516,"full-width"],"iconOnly":[1,"icon-only"],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"disabled":[4],"type":[1],"href":[1],"target":[1],"align":[1]}],[769,"le-checkbox",{"checked":[1540],"disabled":[4],"name":[1],"value":[1],"externalId":[1,"external-id"]}],[769,"le-component",{"component":[1],"displayName":[1,"display-name"],"hostClass":[1,"host-class"],"hostStyle":[16],"adminMode":[32],"componentMeta":[32],"propertyValues":[32]}],[769,"le-select",{"options":[1],"value":[1032],"placeholder":[1],"disabled":[516],"required":[4],"name":[1],"fullWidth":[4,"full-width"],"size":[513],"variant":[513],"searchable":[4],"emptyText":[1,"empty-text"],"open":[1540],"selectedOption":[32],"searchQuery":[32],"showDropdown":[64],"hideDropdown":[64]},null,{"value":["handleValueChange"],"options":["handleOptionsChange"]}],[769,"le-slot",{"type":[1],"name":[1],"label":[1],"description":[1],"allowedComponents":[1,"allowed-components"],"multiple":[4],"required":[4],"placeholder":[1],"tag":[1],"slotStyle":[1,"slot-style"],"adminMode":[32],"textValue":[32],"isValidHtml":[32],"availableComponents":[32],"pickerOpen":[32]}],[769,"le-string-input",{"inputRef":[16],"mode":[1537],"value":[1537],"name":[1],"type":[1],"label":[1],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"placeholder":[1],"hideDescription":[4,"hide-description"],"disabled":[4],"readonly":[4],"externalId":[1,"external-id"]}],[769,"le-popover",{"mode":[1537],"open":[1540],"position":[1],"align":[1],"popoverTitle":[1,"popover-title"],"showClose":[4,"show-close"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEscape":[4,"close-on-escape"],"offset":[2],"width":[1],"minWidth":[1,"min-width"],"maxWidth":[1,"max-width"],"triggerFullWidth":[4,"trigger-full-width"],"isPositioned":[32],"updatePosition":[64],"show":[64],"hide":[64],"toggle":[64]}]]],["le-navigation.cjs",[[769,"le-navigation",{"items":[1],"orientation":[513],"wrap":[516],"overflowMode":[513,"overflow-mode"],"minVisibleItemsForMore":[2,"min-visible-items-for-more"],"align":[513],"activeUrl":[1,"active-url"],"searchable":[4],"searchPlaceholder":[1,"search-placeholder"],"emptyText":[1,"empty-text"],"submenuSearchable":[4,"submenu-searchable"],"searchQuery":[32],"openState":[32],"overflowIds":[32],"hamburgerActive":[32],"submenuQueries":[32],"overflowPopoverOpen":[32]},null,{"items":["handleLayoutInputsChange"],"orientation":["handleLayoutInputsChange"],"wrap":["handleLayoutInputsChange"],"overflowMode":["handleLayoutInputsChange"]}]]],["le-multiselect.cjs",[[769,"le-multiselect",{"options":[1],"value":[1040],"placeholder":[1],"disabled":[516],"required":[4],"name":[1],"fullWidth":[516,"full-width"],"size":[513],"maxSelections":[2,"max-selections"],"showSelectAll":[1032,"show-select-all"],"searchable":[4],"emptyText":[1,"empty-text"],"open":[1540],"selectAllLabel":[32],"deselectAllLabel":[32],"selectedOptions":[32],"searchQuery":[32],"showDropdown":[64],"hideDropdown":[64],"clearSelection":[64]},null,{"value":["handleValueChange"],"options":["handleOptionsChange"],"showSelectAll":["handleShowSelectAllChange"]}]]],["le-segmented-control.cjs",[[769,"le-segmented-control",{"options":[16],"value":[1032],"size":[1],"overflow":[1],"fullWidth":[4,"full-width"],"disabled":[4],"segmentConfigs":[32],"focusedIndex":[32],"isDeclarativeMode":[32]},[[0,"slotchange","handleSlotChange"]],{"options":["tabsChanged"]}]]],["le-tab-bar.cjs",[[769,"le-tab-bar",{"tabs":[16],"selected":[1032],"fullWidth":[4,"full-width"],"showLabels":[4,"show-labels"],"position":[1],"size":[1],"bordered":[4],"tabConfigs":[32],"isDeclarativeMode":[32],"focusedIndex":[32]},[[0,"slotchange","handleSlotChange"]],{"selected":["selectedChanged"],"tabs":["tabsChanged"]}]]],["le-tabs.cjs",[[769,"le-tabs",{"tabs":[16],"selected":[1032],"orientation":[1],"position":[1],"variant":[1],"fullWidth":[4,"full-width"],"size":[1],"wrap":[4],"overflow":[1],"tabConfigs":[32],"focusedIndex":[32],"isDeclarativeMode":[32]},[[0,"slotchange","handleSlotChange"]],{"selected":["selectedChanged"],"tabs":["tabsChanged"]}]]],["le-box.cjs",[[769,"le-box",{"grow":[2],"shrink":[2],"basis":[1],"width":[1],"height":[1],"minWidth":[1,"min-width"],"maxWidth":[1,"max-width"],"minHeight":[1,"min-height"],"maxHeight":[1,"max-height"],"background":[1],"borderRadius":[1,"border-radius"],"border":[1],"alignSelf":[1,"align-self"],"alignContent":[1,"align-content"],"justifyContent":[1,"justify-content"],"padding":[1],"order":[2],"displayFlex":[4,"display-flex"],"innerDirection":[1,"inner-direction"],"innerGap":[1,"inner-gap"]}]]],["le-card.cjs",[[769,"le-card",{"variant":[1],"interactive":[4]}]]],["le-combobox.cjs",[[769,"le-combobox",{"options":[1],"value":[1032],"placeholder":[1],"disabled":[516],"required":[4],"name":[1],"fullWidth":[516,"full-width"],"size":[513],"allowCustom":[4,"allow-custom"],"minSearchLength":[2,"min-search-length"],"emptyText":[1,"empty-text"],"open":[1540],"inputValue":[32],"selectedOption":[32],"showDropdown":[64],"hideDropdown":[64],"focusInput":[64]},[[8,"click","handleWindowClick"]],{"value":["handleValueChange"],"options":["handleOptionsChange"]}]]],["le-number-input.cjs",[[769,"le-number-input",{"value":[1538],"name":[1],"label":[1],"placeholder":[1],"min":[2],"max":[2],"step":[2],"required":[4],"disabled":[4],"readonly":[4],"iconStart":[1,"icon-start"],"showSpinners":[4,"show-spinners"],"externalId":[1,"external-id"],"isValid":[32],"validationMessage":[32]},null,{"value":["valueChanged"]}]]],["le-stack.cjs",[[769,"le-stack",{"direction":[1],"gap":[1],"align":[1],"justify":[1],"wrap":[4],"alignContent":[1,"align-content"],"reverse":[4],"maxItems":[2,"max-items"],"fullWidth":[4,"full-width"],"fullHeight":[4,"full-height"],"padding":[1]}]]],["le-tab-panel.cjs",[[769,"le-tab-panel",{"label":[1],"value":[1],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"disabled":[4],"lazy":[4],"active":[32],"hasBeenActive":[32],"getValue":[64],"getTabConfig":[64],"setActive":[64]},null,{"active":["activeChanged"]}]]],["le-text.cjs",[[769,"le-text",{"variant":[1537],"align":[513],"color":[1],"truncate":[4],"maxLines":[2,"max-lines"],"adminMode":[32],"content":[32],"isFocused":[32],"selectionState":[32]},null,{"variant":["onVariantChange"]}]]],["le-header-placeholder.cjs",[[256,"le-header-placeholder"]]],["le-round-progress.cjs",[[769,"le-round-progress",{"value":[2],"padding":[2],"paths":[1],"params":[32]},null,{"value":["updateValue"],"padding":["updatePadding"],"paths":["updateProgressBackgrounds"]}]]],["le-turntable.cjs",[[769,"le-turntable",{"center":[1],"value":[2]},[[9,"mousemove","handleMouseMove"],[9,"mouseup","handleMouseUp"],[9,"resize","handleWindowResize"]],{"value":["updateValue"]}]]],["le-tag.cjs",[[769,"le-tag",{"label":[1],"mode":[1537],"icon":[1],"dismissible":[4],"disabled":[516],"size":[513],"variant":[513]}]]],["le-icon.cjs",[[769,"le-icon",{"name":[1],"size":[2],"iconData":[32],"visible":[32]},null,{"name":["loadIconData"]}]]],["le-bar.cjs",[[769,"le-bar",{"overflow":[513],"alignItems":[513,"align-items"],"arrows":[4],"disablePopover":[4,"disable-popover"],"showAllMenu":[8,"show-all-menu"],"popoverOpen":[32],"hamburgerActive":[32],"overflowingIds":[32],"canScrollStart":[32],"canScrollEnd":[32],"allMenuOpen":[32],"containerHeight":[32],"recalculate":[64]},[[0,"slotchange","handleSlotChange"]],{"overflow":["handleOverflowChange"]}]]],["le-tab.cjs",[[769,"le-tab",{"mode":[1537],"label":[1],"value":[1],"variant":[1],"position":[1],"size":[1],"focusable":[4],"selected":[4],"fullWidth":[516,"full-width"],"icon":[1],"showLabel":[4,"show-label"],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"disabled":[4],"href":[1],"target":[1],"align":[1],"getTabConfig":[64]}]]]], options);
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
exports.setNonce = index.setNonce;
|
|
@@ -286,13 +286,13 @@ const LeMultiselect = class {
|
|
|
286
286
|
render() {
|
|
287
287
|
const hasSelections = this.selectedOptions.length > 0;
|
|
288
288
|
const atMaxSelections = this.maxSelections && this.value.length >= this.maxSelections;
|
|
289
|
-
return (index.h("le-component", { key: '
|
|
289
|
+
return (index.h("le-component", { key: '3f2d29e466307145bb01d7dd8a5be7674ea72ec8', component: "le-multiselect" }, index.h("le-dropdown-base", { key: 'c551daf51424318394d883c86e1f6ec7499c4703', ref: el => (this.dropdownEl = el), options: this.effectiveOptions, value: this.value, multiple: true, disabled: this.disabled, filterFn: this.searchable ? this.filterOption : undefined, filterQuery: this.searchQuery, emptyText: this.emptyText, showCheckboxes: true, fullWidth: this.fullWidth, onLeOptionSelect: this.handleOptionSelect, onLeDropdownOpen: this.handleDropdownOpen, onLeDropdownClose: this.handleDropdownClose }, index.h("div", { key: '863e1bc369781fe3ddc0a8bad09e4e651536498e', slot: "trigger", class: {
|
|
290
290
|
'multiselect-trigger': true,
|
|
291
291
|
'has-selections': hasSelections,
|
|
292
292
|
'is-open': this.open,
|
|
293
293
|
'is-disabled': this.disabled,
|
|
294
|
-
}, tabIndex: this.disabled ? -1 : 0, role: "combobox", "aria-haspopup": "listbox", "aria-expanded": this.open ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, this.renderTags(), index.h("div", { key: '
|
|
295
|
-
this.value.map(val => (index.h("input", { type: "hidden", name: this.name, value: val.toString(), key: val.toString() }))), atMaxSelections && (index.h("span", { key: '
|
|
294
|
+
}, tabIndex: this.disabled ? -1 : 0, role: "combobox", "aria-haspopup": "listbox", "aria-expanded": this.open ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, this.renderTags(), index.h("div", { key: '8fa1afd6495d8054461a30c49ed10eda70d5c219', class: "multiselect-actions" }, hasSelections && !this.disabled && (index.h("button", { key: 'acca7ff73f0e5f50ba8d257c333a15f9de4b7569', type: "button", class: "multiselect-clear", onClick: this.handleClearAll, "aria-label": "Clear all", tabIndex: -1 }, index.h("svg", { key: '388610e0baa60ad75956ebfc2b2f1edb7cebbb94', viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: 'cc6c0b17360942fd86b43d104f1fa822e67f42a2', d: "M4 4l8 8M12 4l-8 8" })))), index.h("span", { key: '81e7fe95233d439226ab262448e5157b20b8a2d5', class: "multiselect-arrow" }, index.h("svg", { key: 'a748a8c3647e45ab181659bc5061fe181ed50e63', viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { key: '319e8960ae71e16cd6aba1fdfae025e7ca7c03d7', d: "M4 6l4 4 4-4" }))))), this.searchable && this.open && (index.h("div", { key: '57ca976f1ce817a703d401af4fa19ea4fb73c8cc', class: "multiselect-search", slot: "header" }, index.h("le-string-input", { key: '62b7c46edb93df22d6bce871dc948418ac388fb5', mode: "default", inputRef: el => (this.inputEl = el), class: "search-input", placeholder: "Search...", value: this.searchQuery, onInput: this.handleSearchInput })))), this.name &&
|
|
295
|
+
this.value.map(val => (index.h("input", { type: "hidden", name: this.name, value: val.toString(), key: val.toString() }))), atMaxSelections && (index.h("span", { key: 'd213d97108df7093de3fa979f4a082797584e24b', class: "multiselect-status" }, "Maximum ", this.maxSelections, " selections"))));
|
|
296
296
|
}
|
|
297
297
|
static get watchers() { return {
|
|
298
298
|
"value": ["handleValueChange"],
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-CNRmviSz.js');
|
|
4
4
|
var utils = require('./utils-CZG22_vQ.js');
|
|
5
5
|
|
|
6
|
-
const leNavigationCss = () => `:host{display:block;--le-nav-radius:var(--le-radius-md);--le-nav-gap:var(--le-spacing-2);--le-nav-item-padding-x:var(--le-spacing-1);--le-nav-item-padding-y:var(--le-spacing-2);--le-nav-item-gap:var(--le-spacing-2);--le-nav-color:var(--le-color-text-primary);--le-nav-muted:var(--le-color-text-secondary);--le-nav-hover-bg:var(--le-color-gray-100);--le-nav-selected-bg:var(--le-color-primary);--le-nav-selected-color:var(--le-color-primary-contrast)}.nav-vertical{display:flex;flex-direction:column;gap:var(--le-nav-gap)}.nav-search{width:100%}.nav-search-input{--le-input-radius:var(--le-radius-md)}.nav-empty{padding:var(--le-spacing-2);color:var(--le-nav-muted);font-size:var(--le-font-size-sm)}.nav-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--le-spacing-1)}.nav-row{display:flex;align-items:stretch;gap:var(--le-spacing-1);border-radius:var(--le-nav-radius)}.nav-row:hover{background:var(--le-nav-hover-bg)}.nav-toggle,.nav-toggle-spacer{box-sizing:border-box;width:var(--le-spacing-4);min-width:var(--le-spacing-4);display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--le-nav-radius);color:inherit}.nav-toggle{background:transparent;cursor:pointer;opacity:0.4}.nav-toggle:hover:not(:disabled){opacity:1}.nav-toggle:focus-visible{outline:2px solid var(--le-color-focus);outline-offset:2px;opacity:1}.nav-chevron{display:inline-block;transition:transform var(--le-transition-fast)}.nav-chevron svg{display:block;width:var(--le-spacing-4);height:var(--le-spacing-4)}.nav-node>div>button>.nav-chevron{transform:rotate(-90deg)}.nav-node.open>div>button>.nav-chevron{transform:rotate(0deg)}.nav-item{flex:1;display:inline-flex;align-items:center;gap:var(--le-nav-item-gap);padding:var(--le-nav-item-padding-y) var(--le-nav-item-padding-x) var(--le-nav-item-padding-y) 0;border-radius:var(--le-nav-radius);border:1px solid transparent;background:transparent;text-decoration:none;color:var(--le-nav-color);font-family:var(--le-font-family-base);font-size:var(--le-font-size-md);line-height:var(--le-line-height-tight);cursor:pointer}.nav-item:focus-visible{outline:2px solid var(--le-color-focus);outline-offset:2px}.nav-node.selected>.nav-row{background:var(--le-nav-selected-bg);color:var(--le-nav-selected-color)}.nav-node.selected>.nav-row>.nav-item{color:inherit}.nav-node.disabled>.nav-row>.nav-item{opacity:0.5;cursor:not-allowed}.nav-text{display:flex;flex-direction:column;min-width:0}.nav-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-description{color:color-mix(in srgb, var(--le-nav-muted) 90%, transparent);font-size:var(--le-font-size-sm);line-height:var(--le-line-height-tight)}.nav-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.nav-icon-end{margin-left:auto}.nav-children{margin-top:var(--le-spacing-1)}.nav-horizontal{display:flex;align-items:center;gap:var(--le-spacing-2)}.nav-
|
|
6
|
+
const leNavigationCss = () => `:host{display:block;--le-nav-radius:var(--le-radius-md);--le-nav-gap:var(--le-spacing-2);--le-nav-item-padding-x:var(--le-spacing-1);--le-nav-item-padding-y:var(--le-spacing-2);--le-nav-item-gap:var(--le-spacing-2);--le-nav-color:var(--le-color-text-primary);--le-nav-muted:var(--le-color-text-secondary);--le-nav-hover-bg:var(--le-color-gray-100);--le-nav-selected-bg:var(--le-color-primary);--le-nav-selected-color:var(--le-color-primary-contrast)}:host([orientation='horizontal']:not([wrap])){flex:1 1 0%;min-width:0}.nav-vertical{display:flex;flex-direction:column;gap:var(--le-nav-gap)}.nav-search{width:100%}.nav-search-input{--le-input-radius:var(--le-radius-md)}.nav-empty{padding:var(--le-spacing-2);color:var(--le-nav-muted);font-size:var(--le-font-size-sm)}.nav-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--le-spacing-1)}.nav-row{display:flex;align-items:stretch;gap:var(--le-spacing-1);border-radius:var(--le-nav-radius)}.nav-row:hover{background:var(--le-nav-hover-bg)}.nav-toggle,.nav-toggle-spacer{box-sizing:border-box;width:var(--le-spacing-4);min-width:var(--le-spacing-4);display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--le-nav-radius);color:inherit}.nav-toggle{background:transparent;cursor:pointer;opacity:0.4}.nav-toggle:hover:not(:disabled){opacity:1}.nav-toggle:focus-visible{outline:2px solid var(--le-color-focus);outline-offset:2px;opacity:1}.nav-chevron{display:inline-block;transition:transform var(--le-transition-fast)}.nav-chevron svg{display:block;width:var(--le-spacing-4);height:var(--le-spacing-4)}.nav-node>div>button>.nav-chevron{transform:rotate(-90deg)}.nav-node.open>div>button>.nav-chevron{transform:rotate(0deg)}.nav-item{flex:1;display:inline-flex;align-items:center;gap:var(--le-nav-item-gap);padding:var(--le-nav-item-padding-y) var(--le-nav-item-padding-x) var(--le-nav-item-padding-y) 0;border-radius:var(--le-nav-radius);border:1px solid transparent;background:transparent;text-decoration:none;color:var(--le-nav-color);font-family:var(--le-font-family-base);font-size:var(--le-font-size-md);line-height:var(--le-line-height-tight);cursor:pointer}.nav-item:focus-visible{outline:2px solid var(--le-color-focus);outline-offset:2px}.nav-node.selected>.nav-row{background:var(--le-nav-selected-bg);color:var(--le-nav-selected-color)}.nav-node.selected>.nav-row>.nav-item{color:inherit}.nav-node.disabled>.nav-row>.nav-item{opacity:0.5;cursor:not-allowed}.nav-text{display:flex;flex-direction:column;min-width:0}.nav-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-description{color:color-mix(in srgb, var(--le-nav-muted) 90%, transparent);font-size:var(--le-font-size-sm);line-height:var(--le-line-height-tight)}.nav-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.nav-icon-end{margin-left:auto}.nav-children{margin-top:var(--le-spacing-1)}.nav-horizontal-wrapper{display:flex;align-items:center;gap:var(--le-spacing-2)}.nav-bar{flex:1 1 0%;min-width:0;--le-bar-gap:var(--le-spacing-2)}.nav-bar.align-end{--le-bar-justify:flex-end}.nav-bar.align-center{--le-bar-justify:center}.nav-bar.align-space-between{--le-bar-justify:space-between}.h-item{display:flex;align-items:center}.h-link{display:inline-flex;align-items:center;gap:var(--le-spacing-2);padding:var(--le-spacing-2) var(--le-spacing-3);border-radius:var(--le-nav-radius);border:1px solid transparent;background:transparent;text-decoration:none;color:var(--le-nav-color);font-family:var(--le-font-family-base);font-size:var(--le-font-size-md);cursor:pointer}.h-link:hover{background:var(--le-nav-hover-bg)}.h-link:focus-visible{outline:2px solid var(--le-color-focus);outline-offset:2px}.h-link.disabled,.h-trigger.disabled{opacity:0.5;pointer-events:none}.h-link.selected,.h-trigger.selected{background:var(--le-nav-selected-bg);color:var(--le-nav-selected-color)}.h-label{white-space:nowrap}.h-trigger{display:inline-flex;align-items:center;gap:var(--le-spacing-1);border-radius:var(--le-nav-radius)}.h-submenu-toggle{width:var(--le-spacing-3);height:var(--le-spacing-3);display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--le-nav-radius);background:transparent;color:currentColor;cursor:pointer}.h-submenu-toggle:hover{background:var(--le-nav-hover-bg)}.overflow-trigger{display:inline-flex;align-items:center;justify-content:center;gap:var(--le-spacing-2);padding:var(--le-spacing-2) var(--le-spacing-3);border-radius:var(--le-nav-radius);border:1px solid transparent;background:transparent;color:var(--le-nav-color);cursor:pointer;font-family:var(--le-font-family-base);font-size:var(--le-font-size-md)}.overflow-trigger:hover{background:var(--le-nav-hover-bg)}.overflow-trigger:focus-visible{outline:2px solid var(--le-color-focus);outline-offset:2px}.nav-overflow-trigger{display:flex;align-items:center}le-popover::part(content){padding:var(--le-spacing-1)}`;
|
|
7
7
|
|
|
8
8
|
const LeNavigation = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -74,19 +74,14 @@ const LeNavigation = class {
|
|
|
74
74
|
leNavItemToggle;
|
|
75
75
|
searchQuery = '';
|
|
76
76
|
openState = {};
|
|
77
|
+
/** IDs of items currently in overflow (from le-bar) */
|
|
77
78
|
overflowIds = [];
|
|
79
|
+
/** Whether hamburger mode is active (from le-bar) */
|
|
78
80
|
hamburgerActive = false;
|
|
79
|
-
fallbackHamburger = false;
|
|
80
81
|
submenuQueries = {};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
measureMoreEl;
|
|
84
|
-
topItemEls = new Map();
|
|
82
|
+
/** Whether the overflow popover is open */
|
|
83
|
+
overflowPopoverOpen = false;
|
|
85
84
|
popoverRefs = new Map();
|
|
86
|
-
moreTriggerEl;
|
|
87
|
-
hamburgerPopoverEl;
|
|
88
|
-
morePopoverEl;
|
|
89
|
-
resizeObserver;
|
|
90
85
|
instanceId = utils.generateId('le-nav');
|
|
91
86
|
partFromOptionPart(base, part) {
|
|
92
87
|
const raw = (part ?? '').trim();
|
|
@@ -101,40 +96,12 @@ const LeNavigation = class {
|
|
|
101
96
|
return [base, ...tokens.map(t => `${base}-${t}`)].join(' ');
|
|
102
97
|
}
|
|
103
98
|
handleLayoutInputsChange() {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
this.setupResizeObserver();
|
|
108
|
-
this.scheduleOverflowRecalc();
|
|
99
|
+
// Reset overflow state when layout inputs change
|
|
100
|
+
this.overflowIds = [];
|
|
101
|
+
this.hamburgerActive = false;
|
|
109
102
|
}
|
|
110
103
|
disconnectedCallback() {
|
|
111
|
-
|
|
112
|
-
this.resizeObserver = undefined;
|
|
113
|
-
}
|
|
114
|
-
componentDidRender() {
|
|
115
|
-
// In case refs change after render.
|
|
116
|
-
this.scheduleOverflowRecalc();
|
|
117
|
-
}
|
|
118
|
-
setupResizeObserver() {
|
|
119
|
-
this.resizeObserver?.disconnect();
|
|
120
|
-
if (typeof ResizeObserver === 'undefined')
|
|
121
|
-
return;
|
|
122
|
-
this.resizeObserver = new ResizeObserver(() => this.computeOverflow());
|
|
123
|
-
this.observeContainer(this.navContainerEl);
|
|
124
|
-
}
|
|
125
|
-
observeContainer(el) {
|
|
126
|
-
if (!this.resizeObserver)
|
|
127
|
-
return;
|
|
128
|
-
this.resizeObserver.disconnect();
|
|
129
|
-
if (el)
|
|
130
|
-
this.resizeObserver.observe(el);
|
|
131
|
-
}
|
|
132
|
-
scheduleOverflowRecalc() {
|
|
133
|
-
// Avoid work for vertical layout.
|
|
134
|
-
if (this.orientation !== 'horizontal')
|
|
135
|
-
return;
|
|
136
|
-
// Ensure it runs after layout.
|
|
137
|
-
requestAnimationFrame(() => this.computeOverflow());
|
|
104
|
+
// Cleanup if needed
|
|
138
105
|
}
|
|
139
106
|
get parsedItems() {
|
|
140
107
|
if (typeof this.items === 'string') {
|
|
@@ -248,149 +215,16 @@ const LeNavigation = class {
|
|
|
248
215
|
// Position may change as items filter.
|
|
249
216
|
requestAnimationFrame(() => this.popoverRefs.get(submenuId)?.updatePosition());
|
|
250
217
|
};
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
if (this.fallbackHamburger)
|
|
262
|
-
this.fallbackHamburger = false;
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
const container = this.navContainerEl;
|
|
266
|
-
if (!container)
|
|
267
|
-
return;
|
|
268
|
-
const topIds = this.getTopLevelIds(this.parsedItems);
|
|
269
|
-
const widths = topIds.map(id => this.topItemEls.get(id)?.getBoundingClientRect().width ?? 0);
|
|
270
|
-
const totalWidth = widths.reduce((a, b) => a + b, 0);
|
|
271
|
-
const availableWidth = container.getBoundingClientRect().width;
|
|
272
|
-
if (this.overflowMode === 'hamburger') {
|
|
273
|
-
const shouldHamburger = totalWidth > availableWidth;
|
|
274
|
-
if (shouldHamburger !== this.hamburgerActive) {
|
|
275
|
-
this.hamburgerActive = shouldHamburger;
|
|
276
|
-
}
|
|
277
|
-
if (!this.overflowIds || this.overflowIds.length)
|
|
278
|
-
this.overflowIds = [];
|
|
279
|
-
if (this.fallbackHamburger)
|
|
280
|
-
this.fallbackHamburger = false;
|
|
281
|
-
return;
|
|
282
|
-
}
|
|
283
|
-
// overflowMode === 'more'
|
|
284
|
-
if (this.hamburgerActive)
|
|
285
|
-
this.hamburgerActive = false;
|
|
286
|
-
const computedOverflow = this.computeOverflowMoreByWrap(availableWidth);
|
|
287
|
-
if (!computedOverflow)
|
|
288
|
-
return;
|
|
289
|
-
// Fallback to hamburger when "More" would leave too few items visible
|
|
290
|
-
// or when the trigger itself cannot fit the row.
|
|
291
|
-
const visibleCount = this.parsedItems.length - computedOverflow.length;
|
|
292
|
-
const moreWidth = this.moreTriggerEl?.getBoundingClientRect().width ?? 0;
|
|
293
|
-
const minVisible = Math.max(0, Number(this.minVisibleItemsForMore) || 0);
|
|
294
|
-
const shouldFallback = (computedOverflow.length > 0 && visibleCount < minVisible) ||
|
|
295
|
-
(moreWidth > 0 && moreWidth > availableWidth);
|
|
296
|
-
if (shouldFallback !== this.fallbackHamburger) {
|
|
297
|
-
this.fallbackHamburger = shouldFallback;
|
|
298
|
-
}
|
|
299
|
-
const nextOverflow = shouldFallback ? [] : computedOverflow;
|
|
300
|
-
const same = nextOverflow.length === this.overflowIds?.length &&
|
|
301
|
-
nextOverflow.every((v, i) => v === this.overflowIds[i]);
|
|
302
|
-
if (!same) {
|
|
303
|
-
this.overflowIds = nextOverflow;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
computeOverflowMoreByWrap(availableWidth) {
|
|
307
|
-
const container = this.navContainerEl;
|
|
308
|
-
const measure = this.measureEl;
|
|
309
|
-
const measureMore = this.measureMoreEl;
|
|
310
|
-
const items = this.parsedItems;
|
|
311
|
-
if (!container || !measure)
|
|
312
|
-
return null;
|
|
313
|
-
// Ensure measurement container matches visible container width.
|
|
314
|
-
measure.style.width = `${availableWidth}px`;
|
|
315
|
-
// Keep the measured "More" width aligned with the real trigger width (supports slotted content).
|
|
316
|
-
const realMoreWidth = this.moreTriggerEl?.getBoundingClientRect().width;
|
|
317
|
-
if (measureMore && realMoreWidth && realMoreWidth > 0) {
|
|
318
|
-
const btn = measureMore.querySelector('button');
|
|
319
|
-
if (btn) {
|
|
320
|
-
btn.style.width = `${realMoreWidth}px`;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
const allIds = this.getTopLevelIds(items);
|
|
324
|
-
const itemEls = allIds
|
|
325
|
-
.map(id => measure.querySelector(`[data-nav-id="${CSS.escape(id)}"]`))
|
|
326
|
-
.filter((el) => !!el);
|
|
327
|
-
// Reset measurement visibility.
|
|
328
|
-
itemEls.forEach(el => {
|
|
329
|
-
el.style.display = '';
|
|
330
|
-
});
|
|
331
|
-
if (measureMore) {
|
|
332
|
-
measureMore.style.display = 'none';
|
|
333
|
-
}
|
|
334
|
-
if (itemEls.length === 0) {
|
|
335
|
-
return [];
|
|
336
|
-
}
|
|
337
|
-
const firstRowTop = Math.min(...itemEls.map(el => el.offsetTop));
|
|
338
|
-
const overflowSet = new Set();
|
|
339
|
-
// Pass 1: detect which items fall onto rows > 1 (without "More" in flow).
|
|
340
|
-
itemEls.forEach(el => {
|
|
341
|
-
const id = el.getAttribute('data-nav-id');
|
|
342
|
-
if (!id)
|
|
343
|
-
return;
|
|
344
|
-
if (el.offsetTop > firstRowTop)
|
|
345
|
-
overflowSet.add(id);
|
|
346
|
-
});
|
|
347
|
-
if (overflowSet.size === 0) {
|
|
348
|
-
return [];
|
|
349
|
-
}
|
|
350
|
-
// Pass 2: show "More" and iteratively move items into overflow until "More" fits on row 1.
|
|
351
|
-
if (measureMore) {
|
|
352
|
-
measureMore.style.display = '';
|
|
353
|
-
}
|
|
354
|
-
// Hide currently overflowing items.
|
|
355
|
-
itemEls.forEach(el => {
|
|
356
|
-
const id = el.getAttribute('data-nav-id');
|
|
357
|
-
if (!id)
|
|
358
|
-
return;
|
|
359
|
-
if (overflowSet.has(id))
|
|
360
|
-
el.style.display = 'none';
|
|
361
|
-
});
|
|
362
|
-
const getVisibleItemEls = () => itemEls.filter(el => el.style.display !== 'none');
|
|
363
|
-
while (measureMore) {
|
|
364
|
-
const visible = getVisibleItemEls();
|
|
365
|
-
const rowTop = visible.length ? Math.min(...visible.map(el => el.offsetTop)) : 0;
|
|
366
|
-
if (measureMore.offsetTop <= rowTop)
|
|
367
|
-
break;
|
|
368
|
-
if (visible.length === 0)
|
|
369
|
-
break;
|
|
370
|
-
// Remove one last visible item and retry.
|
|
371
|
-
const last = visible[visible.length - 1];
|
|
372
|
-
const lastId = last.getAttribute('data-nav-id');
|
|
373
|
-
if (!lastId)
|
|
374
|
-
break;
|
|
375
|
-
last.style.display = 'none';
|
|
376
|
-
overflowSet.add(lastId);
|
|
377
|
-
}
|
|
378
|
-
const overflowIds = allIds.filter(id => overflowSet.has(id));
|
|
379
|
-
return overflowIds;
|
|
380
|
-
}
|
|
381
|
-
renderHorizontalMeasureItem(item, index$1) {
|
|
382
|
-
const id = this.getItemId(item, String(index$1));
|
|
383
|
-
const children = this.getChildItems(item);
|
|
384
|
-
const hasChildren = children.length > 0;
|
|
385
|
-
const setRef = (el) => {
|
|
386
|
-
if (el)
|
|
387
|
-
this.topItemEls.set(id, el);
|
|
388
|
-
};
|
|
389
|
-
if (!hasChildren) {
|
|
390
|
-
return (index.h("div", { class: "h-item", ref: setRef, "data-nav-id": id }, index.h("span", { class: "h-link" }, item.iconStart && (index.h("span", { class: "nav-icon", "aria-hidden": "true" }, item.iconStart)), index.h("span", { class: "h-label" }, item.label), item.iconEnd && (index.h("span", { class: "nav-icon nav-icon-end", "aria-hidden": "true" }, item.iconEnd)))));
|
|
391
|
-
}
|
|
392
|
-
return (index.h("div", { class: "h-item", ref: setRef, "data-nav-id": id }, index.h("span", { class: "h-trigger" }, index.h("span", { class: "h-link" }, item.iconStart && (index.h("span", { class: "nav-icon", "aria-hidden": "true" }, item.iconStart)), index.h("span", { class: "h-label" }, item.label)), index.h("span", { class: "h-submenu-toggle", "aria-hidden": "true" }, index.h("le-icon", { name: "chevron-down" })))));
|
|
393
|
-
}
|
|
218
|
+
handleBarOverflowChange = (e) => {
|
|
219
|
+
this.overflowIds = e.detail.overflowingIds;
|
|
220
|
+
this.hamburgerActive = e.detail.hamburgerActive;
|
|
221
|
+
};
|
|
222
|
+
openOverflowPopover = () => {
|
|
223
|
+
this.overflowPopoverOpen = true;
|
|
224
|
+
};
|
|
225
|
+
closeOverflowPopover = () => {
|
|
226
|
+
this.overflowPopoverOpen = false;
|
|
227
|
+
};
|
|
394
228
|
renderVerticalList(items, { depth, pathPrefix, autoOpenIds, searchable, searchQuery, searchPlaceholder, emptyText, submenuId, closePopover, }) {
|
|
395
229
|
const query = searchQuery ?? '';
|
|
396
230
|
const openFromSearch = autoOpenIds ?? new Set();
|
|
@@ -441,14 +275,14 @@ const LeNavigation = class {
|
|
|
441
275
|
? { href: item.href, role: 'menuitem' }
|
|
442
276
|
: { type: 'button', role: 'menuitem' };
|
|
443
277
|
const itemPart = this.partFromOptionPart('item', item.part);
|
|
444
|
-
return (index.h("div", { class: "h-item" }, index.h(TagType, { class: utils.classnames('h-link', {
|
|
278
|
+
return (index.h("div", { class: "h-item", "data-bar-id": id }, index.h(TagType, { class: utils.classnames('h-link', {
|
|
445
279
|
disabled: item.disabled,
|
|
446
280
|
selected: item.selected || (this.activeUrl && item.href === this.activeUrl),
|
|
447
281
|
}), part: itemPart, ...attrs, "aria-disabled": item.disabled ? 'true' : undefined, onClick: (e) => this.handleItemSelect(e, item, id) }, item.iconStart && (index.h("span", { class: "nav-icon", "aria-hidden": "true" }, item.iconStart)), index.h("span", { class: "h-label" }, item.label), item.iconEnd && (index.h("span", { class: "nav-icon nav-icon-end", "aria-hidden": "true" }, item.iconEnd)))));
|
|
448
282
|
}
|
|
449
283
|
const submenuId = id;
|
|
450
284
|
const itemPart = this.partFromOptionPart('item', item.part);
|
|
451
|
-
return (index.h("div", { class: "h-item" }, index.h("le-popover", { ref: el => {
|
|
285
|
+
return (index.h("div", { class: "h-item", "data-bar-id": id }, index.h("le-popover", { ref: el => {
|
|
452
286
|
if (el)
|
|
453
287
|
this.popoverRefs.set(submenuId, el);
|
|
454
288
|
}, mode: "default", showClose: false, closeOnClickOutside: true, closeOnEscape: true, position: "bottom", align: "start", minWidth: "240px" }, index.h("div", { slot: "trigger", class: utils.classnames('h-trigger', {
|
|
@@ -485,75 +319,52 @@ const LeNavigation = class {
|
|
|
485
319
|
closePopover: () => this.popoverRefs.get(submenuId)?.hide(),
|
|
486
320
|
})))));
|
|
487
321
|
}
|
|
488
|
-
|
|
322
|
+
getOverflowMode() {
|
|
323
|
+
if (this.wrap)
|
|
324
|
+
return 'wrap';
|
|
325
|
+
return this.overflowMode;
|
|
326
|
+
}
|
|
327
|
+
getBarAlignment() {
|
|
328
|
+
// Map le-navigation align to le-bar alignItems
|
|
329
|
+
// 'space-between' doesn't map directly, use 'stretch' as closest
|
|
330
|
+
if (this.align === 'space-between')
|
|
331
|
+
return 'stretch';
|
|
332
|
+
return this.align;
|
|
333
|
+
}
|
|
334
|
+
renderOverflowPopover() {
|
|
489
335
|
const items = this.parsedItems;
|
|
490
336
|
const overflowSet = new Set(this.overflowIds);
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
((
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
return (index.h("div", { class: "nav-horizontal-shell" }, index.h("div", { class: "nav-horizontal-measure", "aria-hidden": "true", ref: el => {
|
|
504
|
-
this.measureEl = el;
|
|
505
|
-
} }, items.map((item, index) => this.renderHorizontalMeasureItem(item, index)), index.h("div", { class: "h-item", ref: el => {
|
|
506
|
-
this.measureMoreEl = el;
|
|
507
|
-
} }, index.h("button", { type: "button", class: "overflow-trigger" }, "More"))), index.h("div", { class: utils.classnames('nav-horizontal', {
|
|
508
|
-
'align-end': this.align === 'end',
|
|
509
|
-
'align-center': this.align === 'center',
|
|
510
|
-
'align-space-between': this.align === 'space-between',
|
|
511
|
-
}), ref: el => {
|
|
512
|
-
this.navContainerEl = el;
|
|
513
|
-
this.setupResizeObserver();
|
|
514
|
-
this.observeContainer(this.navContainerEl);
|
|
515
|
-
} }, index.h("le-popover", { ref: el => {
|
|
516
|
-
this.hamburgerPopoverEl = el;
|
|
517
|
-
}, mode: "default", showClose: false, closeOnClickOutside: true, closeOnEscape: true, position: "bottom", align: "end", minWidth: "260px" }, index.h("button", { slot: "trigger", type: "button", class: "overflow-trigger", part: "hamburger-trigger", "aria-label": "Open menu" }, index.h("slot", { name: "hamburger-trigger" }, index.h("le-icon", { name: "hamburger" }))), index.h("div", { class: "popover-menu" }, this.renderVerticalList(items, {
|
|
518
|
-
depth: 0,
|
|
519
|
-
pathPrefix: '',
|
|
520
|
-
closePopover: () => this.hamburgerPopoverEl?.hide(),
|
|
521
|
-
}))))));
|
|
337
|
+
// Determine which items to show in the popover
|
|
338
|
+
let itemsToShow;
|
|
339
|
+
if (this.hamburgerActive) {
|
|
340
|
+
// In hamburger mode, show all items
|
|
341
|
+
itemsToShow = items;
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
// In "more" mode, show only overflow items
|
|
345
|
+
itemsToShow = items.filter((item, index) => {
|
|
346
|
+
const id = this.getItemId(item, String(index));
|
|
347
|
+
return overflowSet.has(id);
|
|
348
|
+
});
|
|
522
349
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
350
|
+
if (itemsToShow.length === 0)
|
|
351
|
+
return null;
|
|
352
|
+
const isHamburger = this.hamburgerActive;
|
|
353
|
+
return (index.h("le-popover", { mode: "default", open: this.overflowPopoverOpen, showClose: false, closeOnClickOutside: true, closeOnEscape: true, position: "bottom", align: "end", minWidth: "260px", onLePopoverClose: this.closeOverflowPopover }, index.h("button", { slot: "trigger", type: "button", class: "overflow-trigger", part: isHamburger ? 'hamburger-trigger' : 'more-trigger', "aria-label": isHamburger ? 'Open menu' : 'More', onClick: this.openOverflowPopover }, index.h("slot", { name: isHamburger ? 'hamburger-trigger' : 'more-trigger' }, index.h("le-icon", { name: isHamburger ? 'hamburger' : 'ellipsis-horizontal' }))), index.h("div", { class: "popover-menu" }, this.renderVerticalList(itemsToShow, {
|
|
354
|
+
depth: 0,
|
|
355
|
+
pathPrefix: '',
|
|
356
|
+
closePopover: this.closeOverflowPopover,
|
|
357
|
+
}))));
|
|
358
|
+
}
|
|
359
|
+
renderHorizontal() {
|
|
360
|
+
const items = this.parsedItems;
|
|
361
|
+
const overflowMode = this.getOverflowMode();
|
|
362
|
+
const showOverflowButton = this.overflowIds.length > 0 || this.hamburgerActive;
|
|
363
|
+
return (index.h("div", { class: "nav-horizontal-wrapper" }, index.h("le-bar", { class: utils.classnames('nav-bar', {
|
|
531
364
|
'align-end': this.align === 'end',
|
|
532
365
|
'align-center': this.align === 'center',
|
|
533
366
|
'align-space-between': this.align === 'space-between',
|
|
534
|
-
}),
|
|
535
|
-
this.navContainerEl = el;
|
|
536
|
-
this.setupResizeObserver();
|
|
537
|
-
this.observeContainer(this.navContainerEl);
|
|
538
|
-
} }, items.map((item, index) => {
|
|
539
|
-
const id = this.getItemId(item, String(index));
|
|
540
|
-
const isOverflow = !this.wrap && this.overflowMode === 'more' && overflowSet.has(id);
|
|
541
|
-
if (isOverflow)
|
|
542
|
-
return null;
|
|
543
|
-
return this.renderHorizontalItem(item, index);
|
|
544
|
-
}), index.h("div", { class: utils.classnames('more-trigger-wrap', {
|
|
545
|
-
'is-visible': showMore,
|
|
546
|
-
'is-measure': !showMore,
|
|
547
|
-
}) }, index.h("le-popover", { ref: el => {
|
|
548
|
-
this.morePopoverEl = el;
|
|
549
|
-
}, mode: "default", position: "bottom", align: "end", minWidth: "260px", showClose: false }, index.h("button", { slot: "trigger", type: "button", class: "overflow-trigger", part: "more-trigger", "aria-label": "More", ref: el => {
|
|
550
|
-
if (el)
|
|
551
|
-
this.moreTriggerEl = el;
|
|
552
|
-
} }, index.h("slot", { name: "more-trigger" }, index.h("le-icon", { name: "ellipsis-horizontal" }))), index.h("div", { class: "popover-menu" }, this.renderVerticalList(overflowItems, {
|
|
553
|
-
depth: 0,
|
|
554
|
-
pathPrefix: '',
|
|
555
|
-
closePopover: () => this.morePopoverEl?.hide(),
|
|
556
|
-
})))))));
|
|
367
|
+
}), overflow: overflowMode, alignItems: this.getBarAlignment(), disablePopover: true, onLeBarOverflowChange: this.handleBarOverflowChange }, items.map((item, index) => this.renderHorizontalItem(item, index))), showOverflowButton && this.renderOverflowPopover()));
|
|
557
368
|
}
|
|
558
369
|
render() {
|
|
559
370
|
const items = this.parsedItems;
|
|
@@ -190,7 +190,7 @@ const LeNumberInput = class {
|
|
|
190
190
|
this.emitChange();
|
|
191
191
|
};
|
|
192
192
|
render() {
|
|
193
|
-
return (index.h("le-component", { key: '
|
|
193
|
+
return (index.h("le-component", { key: 'c6c327cad4a4df50aa270efcc203449f2c15d36c', component: "le-number-input", hostClass: utils.classnames({ 'disabled': this.disabled }) }, index.h("div", { key: '3745bd8a915fcfc6909c96afa882c22b2fea7e87', class: "le-input-wrapper" }, this.label && (index.h("label", { key: '557aa7702fab5ff75d9f547a677b3bc2e72ef8aa', class: "le-input-label", htmlFor: this.name }, this.label)), index.h("div", { key: '5e5f68aaabba117db7680f0680e67dffcc15dc7c', class: utils.classnames('le-input-container', { 'has-error': !this.isValid }) }, this.iconStart && (index.h("span", { key: 'ff47ad75a59cc6a35758eead376afcb3dd10ba59', class: "icon-start" }, this.iconStart)), index.h("input", { key: 'ec214ea43b6cb94d7e73129c53e55506c5b0b890', id: this.name, type: "number", name: this.name, placeholder: this.placeholder, min: this.min, max: this.max, step: this.step, value: this.value, disabled: this.disabled, readOnly: this.readonly, required: this.required, onInput: this.handleInput, onChange: this.handleChange, onKeyDown: this.handleKeyDown, onWheel: this.handleWheel }), this.showSpinners && (index.h("div", { key: 'e2fe4db81e51ff88447b8c27b83d0e7227516153', class: "le-input-controls" }, index.h("le-button", { key: '91c3d862066fbd13c222eebe043f89be5de39acd', mode: "default", variant: "clear", size: "small", "icon-only": true, class: "le-input-control-btn", onClick: this.increment, disabled: this.disabled || this.readonly || (this.max !== undefined && this.value >= this.max), tabindex: "-1" }, index.h("span", { key: 'a7008c7bcee858324ae75eaf2a9eff0c818dc521', slot: "icon-only" }, "\u2191")), index.h("le-button", { key: 'bd075538967672ec669287682e21d832bf0732f4', mode: "default", variant: "clear", size: "small", "icon-only": true, class: "le-input-control-btn", onClick: this.decrement, disabled: this.disabled || this.readonly || (this.min !== undefined && this.value <= this.min), tabindex: "-1" }, index.h("span", { key: '915fbe4bcec150360f1f857a08675b00182a7ea3', slot: "icon-only" }, "\u2193"))))), !this.isValid && index.h("div", { key: '3a6b6c39aa89ad1295a6277f5b1d7b0b27ed8c4b', class: "le-input-error" }, this.validationMessage), index.h("div", { key: '2124de657df8f114fbcbf62dfcb878177d255274', class: "le-input-description" }, index.h("le-slot", { key: 'd5547bee7220cfedefe52b56f4c51a8eefde3b0e', name: "description", type: "text", tag: "p", label: "Description" }, index.h("slot", { key: '643326ec71aa2b527fc7ac0baa75f329d9b460dd', name: "description" }))))));
|
|
194
194
|
}
|
|
195
195
|
static get watchers() { return {
|
|
196
196
|
"value": ["valueChanged"]
|
|
@@ -92,7 +92,7 @@ const LeRoundProgress = class {
|
|
|
92
92
|
return (index.h("svg", { viewBox: this.getViewBox(), class: "round-progress" }, paths));
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
|
-
return (index.h("div", { key: '
|
|
95
|
+
return (index.h("div", { key: '6379320fd320009f649c11d58f2e918c733de68d', class: "round-progress--container" }, this.getPaths(), index.h("svg", { key: 'af63bb6fdf93e2d0d8060be60fcd41b4f74c294e', viewBox: this.getViewBox(), class: "round-progress round-progress--progress" }, index.h("path", { key: '7b8e0b41a9487b6ba02ef90b1f0a0177aac058f6', class: "round-progress--circle", "stroke-dasharray": this.getStrokeDashArray(), d: this.getPath() })), index.h("slot", { key: '659336629730730ba96f5fbc788dc01e4f280fed' })));
|
|
96
96
|
}
|
|
97
97
|
static get watchers() { return {
|
|
98
98
|
"value": ["updateValue"],
|
|
@@ -228,7 +228,7 @@ const LeSegmentedControl = class {
|
|
|
228
228
|
'full-width': fullWidth,
|
|
229
229
|
'disabled': disabled,
|
|
230
230
|
};
|
|
231
|
-
return (index.h(index.Host, { key: '
|
|
231
|
+
return (index.h(index.Host, { key: 'a285c7c0ca824e96670b51dc638301c2c8ab6a6b', class: `overflow-${this.overflow}` }, index.h("le-component", { key: '6afe6d0861d3e797efabac23b24ad9731e19b6dd', component: "le-segmented-control" }, index.h("div", { key: '251f4d07960c6f464001cf6fda7643fe8db6af09', class: classes, ref: el => (this.containerRef = el), role: "radiogroup", part: "container", onKeyDown: this.handleKeyDown, tabIndex: 0 }, segmentConfigs.map(option => {
|
|
232
232
|
const optValue = this.getOptionValue(option);
|
|
233
233
|
const isSelected = optValue === value;
|
|
234
234
|
const isDisabled = option.disabled || disabled;
|
|
@@ -126,7 +126,7 @@ const LeStack = class {
|
|
|
126
126
|
});
|
|
127
127
|
// Slot style for admin mode - make items display in the same direction
|
|
128
128
|
const slotStyle = `display: flex; flex-direction: ${this.getFlexDirection()}; gap: ${this.gap || 'var(--le-space-md)'}; flex-wrap: ${this.wrap ? 'wrap' : 'nowrap'}; justify-content: ${this.getJustifyContent()}; align-items: ${this.getAlignItems()};`;
|
|
129
|
-
return (index.h("le-component", { key: '
|
|
129
|
+
return (index.h("le-component", { key: 'b9fa5837421caadf0bf79a9303a2b279f9efa92c', component: "le-stack", hostClass: hostClass }, index.h("div", { key: 'a7d39ec296b741f608832d619639e340c42bc652', class: "stack", part: "stack", style: style }, index.h("le-slot", { key: 'd0a4643dcb137eefc57629ac78579e51e3530fd1', name: "", description: `Items arranged ${this.direction}ly${this.maxItems ? ` (max ${this.maxItems})` : ''}`, type: "slot", "allowed-components": "le-text,le-box,le-card,le-button,le-stack", slotStyle: slotStyle }, index.h("slot", { key: '70a847ebeebc868a204b9121f922ad70f34186a4' })))));
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
LeStack.style = leStackDefaultCss();
|
|
@@ -225,7 +225,7 @@ const LeTabBar = class {
|
|
|
225
225
|
'position-top': this.position === 'top',
|
|
226
226
|
'position-bottom': this.position === 'bottom',
|
|
227
227
|
};
|
|
228
|
-
return (index.h(index.Host, { key: '
|
|
228
|
+
return (index.h(index.Host, { key: '45acb7c7c2c2676f1b7040d59dc56e3ef762a5fb', class: classes }, index.h("le-component", { key: 'ed3b7eaf5163ebe676b3c830039f689782d6c58b', component: "le-tab-bar" }, index.h("div", { key: 'ba0d8f8a6adb511671ab540e7c1f3cdcda86dc05', class: "tablist", role: "tablist", "aria-orientation": "horizontal", part: "tablist", onKeyDown: this.handleKeyDown }, index.h("le-slot", { key: '11e4cb848cfb6ede8f65d2d35732f9d7702def26', name: "", type: "slot", allowedComponents: "le-tab" }, tabConfigs.map(tab => {
|
|
229
229
|
const value = this.getTabValue(tab);
|
|
230
230
|
const isSelected = value === selected;
|
|
231
231
|
return (index.h("le-tab", { key: value, class: "tab", role: "tab", variant: "icon-only", label: tab.label, value: tab.value, icon: tab.icon, href: tab.href, selected: isSelected, disabled: tab.disabled, showLabel: this.showLabels, size: size, part: isSelected ? 'tab tab-active' : 'tab', "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": tab.disabled ? 'true' : undefined, tabIndex: -1, onClick: () => this.handleTabClick(tab) }, index.h("span", { class: "tab-label" }, tab.label)));
|