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
|
@@ -195,7 +195,7 @@ export class LeNumberInput {
|
|
|
195
195
|
this.emitChange();
|
|
196
196
|
};
|
|
197
197
|
render() {
|
|
198
|
-
return (h("le-component", { key: '
|
|
198
|
+
return (h("le-component", { key: 'c6c327cad4a4df50aa270efcc203449f2c15d36c', component: "le-number-input", hostClass: classnames({ 'disabled': this.disabled }) }, h("div", { key: '3745bd8a915fcfc6909c96afa882c22b2fea7e87', class: "le-input-wrapper" }, this.label && (h("label", { key: '557aa7702fab5ff75d9f547a677b3bc2e72ef8aa', class: "le-input-label", htmlFor: this.name }, this.label)), h("div", { key: '5e5f68aaabba117db7680f0680e67dffcc15dc7c', class: classnames('le-input-container', { 'has-error': !this.isValid }) }, this.iconStart && (h("span", { key: 'ff47ad75a59cc6a35758eead376afcb3dd10ba59', class: "icon-start" }, this.iconStart)), 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 && (h("div", { key: 'e2fe4db81e51ff88447b8c27b83d0e7227516153', class: "le-input-controls" }, 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" }, h("span", { key: 'a7008c7bcee858324ae75eaf2a9eff0c818dc521', slot: "icon-only" }, "\u2191")), 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" }, h("span", { key: '915fbe4bcec150360f1f857a08675b00182a7ea3', slot: "icon-only" }, "\u2193"))))), !this.isValid && h("div", { key: '3a6b6c39aa89ad1295a6277f5b1d7b0b27ed8c4b', class: "le-input-error" }, this.validationMessage), h("div", { key: '2124de657df8f114fbcbf62dfcb878177d255274', class: "le-input-description" }, h("le-slot", { key: 'd5547bee7220cfedefe52b56f4c51a8eefde3b0e', name: "description", type: "text", tag: "p", label: "Description" }, h("slot", { key: '643326ec71aa2b527fc7ac0baa75f329d9b460dd', name: "description" }))))));
|
|
199
199
|
}
|
|
200
200
|
static get is() { return "le-number-input"; }
|
|
201
201
|
static get encapsulation() { return "shadow"; }
|
|
@@ -459,12 +459,12 @@ export class LePopover {
|
|
|
459
459
|
popoverStyles.minWidth = this.minWidth;
|
|
460
460
|
if (this.maxWidth)
|
|
461
461
|
popoverStyles.maxWidth = this.maxWidth;
|
|
462
|
-
return (h(Host, { key: '
|
|
462
|
+
return (h(Host, { key: '16aec5e624881b728716d00fc6827b5b9c4049b1', "trigger-full-width": this.triggerFullWidth }, h("div", { key: 'f4171fc444414c68d43b4a081b574fb6ccbc3dfe', class: classnames('le-popover-trigger', {
|
|
463
463
|
'le-popover-trigger-full-width': this.triggerFullWidth,
|
|
464
|
-
}), ref: el => (this.triggerEl = el), onClick: this.handleTriggerClick, part: "trigger" }, h("slot", { key: '
|
|
464
|
+
}), ref: el => (this.triggerEl = el), onClick: this.handleTriggerClick, part: "trigger" }, h("slot", { key: '039a6b55fc666443605178c6f86ecd0155bfab1f', name: "trigger" }, h("button", { key: 'f7140509d06b764d3da9086a895036bccb72b939', type: "button", class: "le-popover-default-trigger" }, h("span", { key: 'd618acd932b9489020373820a81bde4bc8ec01e6' }, "\u2295")))), h("div", { key: '678d09edfa103eecd3fe04b03933d8c4c7c7f847', id: this.uniqueId, class: "le-popover-content",
|
|
465
465
|
// Always use manual mode so nested popovers can be open together.
|
|
466
466
|
// We implement click-outside and Escape handling ourselves.
|
|
467
|
-
popover: "manual", ref: el => (this.popoverEl = el), style: popoverStyles, "data-fallback-open": this.supportsPopoverApi ? undefined : String(this.open) }, (this.popoverTitle || this.showClose) && (h("div", { key: '
|
|
467
|
+
popover: "manual", ref: el => (this.popoverEl = el), style: popoverStyles, "data-fallback-open": this.supportsPopoverApi ? undefined : String(this.open) }, (this.popoverTitle || this.showClose) && (h("div", { key: '98404abda58b31d5a405be271180924bc140cb45', class: "le-popover-header" }, this.popoverTitle && h("span", { key: '43b1559400087ea256485c4755bf2db61feff3de', class: "le-popover-title" }, this.popoverTitle), this.showClose && (h("button", { key: '99ef18a9f3b0268b0010bc3cb1637a9409a47888', type: "button", class: "le-popover-close", onClick: () => this.hide(), "aria-label": "Close" }, "\u00D7")))), h("div", { key: '1631159f18e60932960449f86da91cd00f859fac', class: "le-popover-body", part: "content" }, h("slot", { key: '87a4a321122749546b18d1706dd39911eab3b843' })))));
|
|
468
468
|
}
|
|
469
469
|
static get is() { return "le-popover"; }
|
|
470
470
|
static get encapsulation() { return "shadow"; }
|
|
@@ -209,7 +209,7 @@ export class LePopup {
|
|
|
209
209
|
}
|
|
210
210
|
render() {
|
|
211
211
|
const positionClass = `le-popup-position-${this.position}`;
|
|
212
|
-
return (h("dialog", { key: '
|
|
212
|
+
return (h("dialog", { key: '75ff06ac2532818f2951283fb455d165d1b13e89', class: `le-popup-dialog ${positionClass}`, part: "dialog", ref: el => (this.dialogEl = el), onClick: this.handleBackdropClick }, h("le-component", { key: '0fea1c4ea66d8457c66bf5e14b08b7ac3251a9cc', component: "le-popup" }, h("div", { key: 'eb95845004b27cdba2e817b2f296a59ae1d62552', class: "le-popup-container", part: "container" }, this.renderHeader(), this.renderBody(), this.renderFooter()))));
|
|
213
213
|
}
|
|
214
214
|
static get is() { return "le-popup"; }
|
|
215
215
|
static get encapsulation() { return "shadow"; }
|
|
@@ -85,7 +85,7 @@ export class LeRoundProgress {
|
|
|
85
85
|
return (h("svg", { viewBox: this.getViewBox(), class: "round-progress" }, paths));
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h("div", { key: '
|
|
88
|
+
return (h("div", { key: '6379320fd320009f649c11d58f2e918c733de68d', class: "round-progress--container" }, this.getPaths(), h("svg", { key: 'af63bb6fdf93e2d0d8060be60fcd41b4f74c294e', viewBox: this.getViewBox(), class: "round-progress round-progress--progress" }, h("path", { key: '7b8e0b41a9487b6ba02ef90b1f0a0177aac058f6', class: "round-progress--circle", "stroke-dasharray": this.getStrokeDashArray(), d: this.getPath() })), h("slot", { key: '659336629730730ba96f5fbc788dc01e4f280fed' })));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "le-round-progress"; }
|
|
91
91
|
static get encapsulation() { return "shadow"; }
|
|
@@ -118,7 +118,7 @@ export class LeScrollProgress {
|
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
120
|
const width = `${this.progress * 100}%`;
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: '5aa4fc59f57bbb1de387debf27b4a39c073c85bf' }, h("div", { key: '7bce9ba58ce43340c6e1c56afe7cb50eb0117079', class: "track", part: "track", "aria-hidden": "true" }, h("div", { key: 'adc0c2fe77b49d9496c67d05ce2b1a38dcafef05', class: "fill", part: "fill", style: { width } }))));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "le-scroll-progress"; }
|
|
124
124
|
static get encapsulation() { return "shadow"; }
|
|
@@ -236,7 +236,7 @@ export class LeSegmentedControl {
|
|
|
236
236
|
'full-width': fullWidth,
|
|
237
237
|
'disabled': disabled,
|
|
238
238
|
};
|
|
239
|
-
return (h(Host, { key: '
|
|
239
|
+
return (h(Host, { key: 'a285c7c0ca824e96670b51dc638301c2c8ab6a6b', class: `overflow-${this.overflow}` }, h("le-component", { key: '6afe6d0861d3e797efabac23b24ad9731e19b6dd', component: "le-segmented-control" }, h("div", { key: '251f4d07960c6f464001cf6fda7643fe8db6af09', class: classes, ref: el => (this.containerRef = el), role: "radiogroup", part: "container", onKeyDown: this.handleKeyDown, tabIndex: 0 }, segmentConfigs.map(option => {
|
|
240
240
|
const optValue = this.getOptionValue(option);
|
|
241
241
|
const isSelected = optValue === value;
|
|
242
242
|
const isDisabled = option.disabled || disabled;
|
|
@@ -192,13 +192,13 @@ export class LeSelect {
|
|
|
192
192
|
}
|
|
193
193
|
render() {
|
|
194
194
|
const hasValue = this.selectedOption !== undefined;
|
|
195
|
-
return (h("le-component", { key: '
|
|
195
|
+
return (h("le-component", { key: '1659550d258d0d647cefa5715cc9cbcf5ac3b6c7', component: "le-select" }, h("le-dropdown-base", { key: '4210afe927afaf35adeb25794d684d8bf6265604', ref: el => (this.dropdownEl = el), options: this.parsedOptions, value: this.value, disabled: this.disabled, filterFn: this.searchable ? this.filterOption : undefined, filterQuery: this.searchQuery, onLeOptionSelect: this.handleOptionSelect, onLeDropdownOpen: this.handleDropdownOpen, onLeDropdownClose: this.handleDropdownClose, fullWidth: this.fullWidth }, h("le-button", { key: '204b62bae909fb979f84f79ab64a7405f44df0a7', variant: this.variant && this.variant !== 'default' ? this.variant : 'outlined', slot: "trigger", align: "space-between", class: {
|
|
196
196
|
'select-trigger': true,
|
|
197
197
|
'has-value': hasValue,
|
|
198
198
|
'is-open': this.open,
|
|
199
199
|
}, mode: "default", size: this.size, disabled: this.disabled, "aria-haspopup": "listbox", "aria-expanded": this.open ? 'true' : 'false', onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown, fullWidth: this.fullWidth, iconStart: hasValue && this.selectedOption?.iconStart
|
|
200
200
|
? this.renderIcon(this.selectedOption.iconStart)
|
|
201
|
-
: null, iconEnd: h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { d: "M4 6l4 4 4-4" })) }, h("span", { key: '
|
|
201
|
+
: null, iconEnd: h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { d: "M4 6l4 4 4-4" })) }, h("span", { key: 'abb56957a4ddf6b39c3554b26e46c0ad51e022be', class: "trigger-label" }, hasValue ? this.selectedOption.label : this.placeholder)), this.searchable && this.open && (h("div", { key: '25d58fdfddc45f7fde1a41defdbd50dbddd70ea5', class: "multiselect-search", slot: "header" }, h("le-string-input", { key: '81b290d28bed6190b9ec165897ec2e7d758575bf', mode: "default", inputRef: el => (this.inputEl = el), class: "search-input", placeholder: "Search...", value: this.searchQuery, onInput: this.handleSearchInput })))), this.name && h("input", { key: '70e413d81035cdd61bfdaeae27ba3ced0a25f544', type: "hidden", name: this.name, value: this.value?.toString() ?? '' })));
|
|
202
202
|
}
|
|
203
203
|
static get is() { return "le-select"; }
|
|
204
204
|
static get encapsulation() { return "shadow"; }
|
|
@@ -343,7 +343,7 @@ export class LeSlot {
|
|
|
343
343
|
render() {
|
|
344
344
|
const displayLabel = this.label || this.name;
|
|
345
345
|
// Always render the same structure, CSS handles visibility via .admin-mode class
|
|
346
|
-
return (h(Host, { key: '
|
|
346
|
+
return (h(Host, { key: '02bfcbc32ff96bcbdcb531430283b67a257a8333', class: {
|
|
347
347
|
'admin-mode': this.adminMode,
|
|
348
348
|
'invalid-html': !this.isValidHtml,
|
|
349
349
|
}, role: this.adminMode ? 'region' : undefined, "aria-label": this.adminMode ? `Slot: ${displayLabel}` : undefined, "data-slot-name": this.name, "data-slot-type": this.type, "data-allowed": this.allowedComponents, "data-multiple": this.multiple, "data-required": this.required }, this.adminMode ? (h("div", { class: "le-slot-container" }, h("div", { class: classnames('le-slot-header', {
|
|
@@ -134,7 +134,7 @@ export class LeStack {
|
|
|
134
134
|
});
|
|
135
135
|
// Slot style for admin mode - make items display in the same direction
|
|
136
136
|
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()};`;
|
|
137
|
-
return (h("le-component", { key: '
|
|
137
|
+
return (h("le-component", { key: 'b9fa5837421caadf0bf79a9303a2b279f9efa92c', component: "le-stack", hostClass: hostClass }, h("div", { key: 'a7d39ec296b741f608832d619639e340c42bc652', class: "stack", part: "stack", style: style }, 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 }, h("slot", { key: '70a847ebeebc868a204b9121f922ad70f34186a4' })))));
|
|
138
138
|
}
|
|
139
139
|
static get is() { return "le-stack"; }
|
|
140
140
|
static get encapsulation() { return "shadow"; }
|
|
@@ -99,11 +99,11 @@ export class LeStringInput {
|
|
|
99
99
|
ev.stopPropagation();
|
|
100
100
|
};
|
|
101
101
|
render() {
|
|
102
|
-
return (h("le-component", { key: '
|
|
102
|
+
return (h("le-component", { key: 'd77913214c129e32a8707b984d2a32cc9daa27b0', component: "le-string-input", hostClass: classnames({ disabled: this.disabled }) }, h("div", { key: '0059b3a7b915096469c0c9ad4f24f431cff96d30', class: "le-input-wrapper" }, this.label && (h("label", { key: '20cac379c5a5a3ff6554997fb8a1504b5fdbac02', class: "le-input-label", htmlFor: this.name }, this.label)), h("div", { key: '7a5460949f07c16e333fe4fd641e5d003aeddeaf', class: "le-input-container", part: "container" }, this.iconStart && h("span", { key: 'bd1996639dfafab0f77149f5a66debcbf9d229f7', class: "icon-start" }, this.iconStart), h("input", { key: 'e768f8af9b47ce493dd8d0aee01655ee48521f15', ref: el => {
|
|
103
103
|
if (this.inputRef) {
|
|
104
104
|
this.inputRef(el);
|
|
105
105
|
}
|
|
106
|
-
}, id: this.name, type: this.type, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput, onChange: this.handleChange, onClick: this.handleClick }), this.iconEnd && h("span", { key: '
|
|
106
|
+
}, id: this.name, type: this.type, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput, onChange: this.handleChange, onClick: this.handleClick }), this.iconEnd && h("span", { key: 'afe7c876edccbf0fa15f838ef3ccf8a0cbb51fca', class: "icon-end" }, this.iconEnd)), !this.hideDescription && (h("div", { key: '9a4d068a1b3fffd9b5beae410382631ec0c4f737', class: "le-input-description" }, h("le-slot", { key: 'bc738beb28f7d7c6890f09a4a5b2a59cd328a625', name: "description", type: "text", tag: "p", label: "Description" }, h("slot", { key: '716953e93011f8b2d323f19b0c21a30997ea566e', name: "description" })))))));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "le-string-input"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -135,7 +135,7 @@ export class LeTab {
|
|
|
135
135
|
const attrs = this.href
|
|
136
136
|
? { href: this.href, target: this.target, role: 'button' }
|
|
137
137
|
: { disabled: this.disabled };
|
|
138
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: 'a1139b9b387444dd8e8e387f9ef8a85417163141' }, h("le-component", { key: '85bcbfa03d837920a4a180f0a09678a1ceac1c60', component: "le-tab" }, h(TagType, { key: '789494d523473b9cc72d190904e08f588a43e955', class: classnames('le-tab-container', `le-tab-align-${this.align}`, classes), part: "button", ...attrs, onClick: this.handleClick, tabIndex: this.focusable ? 0 : -1 }, this.icon !== undefined ? (h("div", { class: "icon-only" }, h("div", { class: "icon" }, this.icon), this.showLabel && h("span", { class: "icon-label" }, this.label))) : (h(Fragment, null, h("span", { class: "le-tab-label" }, this.iconStart && (h("span", { class: "icon-start", part: "icon-start" }, this.iconStart)), h("le-slot", { name: "", description: "Tab text", type: "text", class: "content", part: "content" }, h("slot", null, this.label))), this.iconEnd && (h("span", { class: "icon-end", part: "icon-end" }, this.iconEnd))))))));
|
|
139
139
|
}
|
|
140
140
|
static get is() { return "le-tab"; }
|
|
141
141
|
static get encapsulation() { return "shadow"; }
|
|
@@ -236,7 +236,7 @@ export class LeTabBar {
|
|
|
236
236
|
'position-top': this.position === 'top',
|
|
237
237
|
'position-bottom': this.position === 'bottom',
|
|
238
238
|
};
|
|
239
|
-
return (h(Host, { key: '
|
|
239
|
+
return (h(Host, { key: '45acb7c7c2c2676f1b7040d59dc56e3ef762a5fb', class: classes }, h("le-component", { key: 'ed3b7eaf5163ebe676b3c830039f689782d6c58b', component: "le-tab-bar" }, h("div", { key: 'ba0d8f8a6adb511671ab540e7c1f3cdcda86dc05', class: "tablist", role: "tablist", "aria-orientation": "horizontal", part: "tablist", onKeyDown: this.handleKeyDown }, h("le-slot", { key: '11e4cb848cfb6ede8f65d2d35732f9d7702def26', name: "", type: "slot", allowedComponents: "le-tab" }, tabConfigs.map(tab => {
|
|
240
240
|
const value = this.getTabValue(tab);
|
|
241
241
|
const isSelected = value === selected;
|
|
242
242
|
return (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) }, h("span", { class: "tab-label" }, tab.label)));
|
|
@@ -88,11 +88,11 @@ export class LeTabPanel {
|
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
90
|
const shouldRender = this.shouldRenderContent();
|
|
91
|
-
return (h("le-component", { key: '
|
|
91
|
+
return (h("le-component", { key: '0e3a7a052446c3643c09b24ef00f75e8510a5222', component: "le-tab-panel" }, h("div", { key: '4ee30fa55177f3957195b403ad764808a5df5cf0', class: {
|
|
92
92
|
'tab-panel': true,
|
|
93
93
|
'active': this.active,
|
|
94
94
|
'lazy-hidden': this.lazy && !this.active,
|
|
95
|
-
}, role: "tabpanel", "aria-hidden": !this.active ? 'true' : undefined, tabIndex: this.active ? 0 : -1 }, h("le-slot", { key: '
|
|
95
|
+
}, role: "tabpanel", "aria-hidden": !this.active ? 'true' : undefined, tabIndex: this.active ? 0 : -1 }, h("le-slot", { key: '825f30d9cf743243ace0555d48f634feafaefe6a', name: "", description: "Tab panel content", type: "slot" }, shouldRender && h("slot", { key: '92e6ade3fa4c97ac0579cba0f78f55ddf00f0fba' })))));
|
|
96
96
|
}
|
|
97
97
|
static get is() { return "le-tab-panel"; }
|
|
98
98
|
static get encapsulation() { return "shadow"; }
|
|
@@ -291,7 +291,7 @@ export class LeTabs {
|
|
|
291
291
|
: this.position === 'start'
|
|
292
292
|
? 'top'
|
|
293
293
|
: 'bottom';
|
|
294
|
-
return (h("le-component", { key: '
|
|
294
|
+
return (h("le-component", { key: 'a19d36c9613b49aac936f8015e6b5527d3673e55', component: "le-tabs", hostClass: classnames(classes) }, h("div", { key: 'd7fa47c769880d2741a88997a1dd3bbf8eedec81', class: classes }, h("div", { key: '4d34d50afeef2ae01a4e8fe0ba0b34fdf9239bbd', class: {
|
|
295
295
|
'tablist': true,
|
|
296
296
|
'wrap-tabs': this.wrap,
|
|
297
297
|
[`overflow-${this.overflow}`]: true,
|
|
@@ -300,7 +300,7 @@ export class LeTabs {
|
|
|
300
300
|
const tabId = `tab-${config.value}`;
|
|
301
301
|
const panelId = `panel-${config.value}`;
|
|
302
302
|
return (h("le-tab", { key: config.value, id: tabId, class: "tab", mode: "default", variant: this.variant, selected: isSelected, disabled: config.disabled, size: this.size, position: tabPosition, align: this.orientation === 'vertical' ? 'start' : 'center', role: "tab", part: isSelected ? 'tab tab-active' : 'tab', "aria-selected": isSelected ? 'true' : 'false', "aria-controls": panelId, "aria-disabled": config.disabled ? 'true' : undefined, focusable: false, onClick: () => this.handleTabClick(config), iconStart: config.iconStart, iconEnd: config.iconEnd }, h("span", { class: "tab-label" }, config.label)));
|
|
303
|
-
})), h("div", { key: '
|
|
303
|
+
})), h("div", { key: '81a0a74054e983642c5eb6d274d5563a5c91c06b', class: "panels", part: "panels" }, isDeclarativeMode ? (
|
|
304
304
|
// Declarative mode - render slot for le-tab-panel children
|
|
305
305
|
h("le-slot", { name: "", description: "Tab panels", type: "slot", allowedComponents: "le-tab-panel" }, h("slot", null))) : (
|
|
306
306
|
// Programmatic mode - render named slots
|
|
@@ -89,7 +89,7 @@ export class LeTag {
|
|
|
89
89
|
return h("span", { class: "tag-icon" }, this.icon);
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
|
-
return (h("le-component", { key: '
|
|
92
|
+
return (h("le-component", { key: 'e7e0f9850380e15ddf062ee006f24b8ea2c1a64d', component: "le-tag" }, h("span", { key: '8a05e940f19927eba092d30e910ef9c6739afd6e', class: "tag" }, this.renderIcon(), h("span", { key: '666299d71770c187fe60fda8434fe556ebdaa3a3', class: "tag-label" }, h("le-slot", { key: '8027ca0be8948249bc25601b191d009804198be8', name: "", tag: "span", type: "text" }, h("slot", { key: 'bc0668302745656b75a8ae8907eaf964a5bb5984' }, this.label))), this.dismissible && (h("button", { key: 'c25c2774fd2eb00f1f5df09fa082400d0017221c', type: "button", class: "tag-dismiss", onClick: this.handleDismiss, disabled: this.disabled, "aria-label": "Remove" }, h("svg", { key: '66a46afe8f45c94b7ac13f5a4d54b77ce4fc05c7', viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { key: 'a6ae8463322e756a7b4194c2383ac316721d5045', d: "M4 4l8 8M12 4l-8 8" })))))));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "le-tag"; }
|
|
95
95
|
static get encapsulation() { return "shadow"; }
|
|
@@ -120,7 +120,7 @@ export class LeTurntable {
|
|
|
120
120
|
this.el.style.transform = `rotate(${angle}deg)`;
|
|
121
121
|
}
|
|
122
122
|
render() {
|
|
123
|
-
return (h("div", { key: '
|
|
123
|
+
return (h("div", { key: '044fa1f42a2052032b2c5f910670dbd16d0d83c2', class: "turntable", onMouseDown: this.handleMouseDown.bind(this) }, h("slot", { key: '9b121701301205bb9182be89736ba64c4fd74373' })));
|
|
124
124
|
}
|
|
125
125
|
static get is() { return "le-turntable"; }
|
|
126
126
|
static get encapsulation() { return "shadow"; }
|