le-kit 0.1.18 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-pT2cVC5w.js.map +1 -1
- package/dist/cjs/le-button_13.cjs.entry.js +24 -28
- 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 +108 -0
- 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 +499 -0
- 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/assets/icons/chevron-down.svg +3 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/le-button/le-button.css +24 -24
- package/dist/collection/components/le-button/le-button.js +2 -2
- package/dist/collection/components/le-button/le-button.js.map +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.css +3 -3
- package/dist/collection/components/le-collapse/le-collapse.js +11 -15
- package/dist/collection/components/le-collapse/le-collapse.js.map +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.css +13 -0
- package/dist/collection/components/le-icon/le-icon.js +168 -0
- package/dist/collection/components/le-icon/le-icon.js.map +1 -0
- package/dist/collection/components/le-multiselect/le-multiselect.js +3 -3
- package/dist/collection/components/le-navigation/le-navigation.css +323 -0
- package/dist/collection/components/le-navigation/le-navigation.js +742 -0
- package/dist/collection/components/le-navigation/le-navigation.js.map +1 -0
- 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 +7 -7
- 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 +2149 -1404
- package/dist/collection/dist/components/assets/icons/chevron-down.json +13 -0
- package/dist/collection/dist/components/assets/icons/chevron-down.svg +3 -0
- package/dist/collection/types/options.js.map +1 -1
- package/dist/components/assets/custom-elements.json +2149 -1404
- package/dist/components/assets/icons/chevron-down.json +13 -0
- package/dist/components/assets/icons/chevron-down.svg +3 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/le-button2.js +8 -8
- package/dist/components/le-button2.js.map +1 -1
- package/dist/components/le-card.js +1 -1
- package/dist/components/le-collapse.js +1 -137
- package/dist/components/le-collapse.js.map +1 -1
- package/dist/components/le-collapse2.js +138 -0
- package/dist/components/le-collapse2.js.map +1 -0
- 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-icon.d.ts +11 -0
- package/dist/components/le-icon.js +9 -0
- package/dist/components/le-icon.js.map +1 -0
- package/dist/components/le-icon2.js +133 -0
- package/dist/components/le-icon2.js.map +1 -0
- package/dist/components/le-multiselect.js +3 -3
- package/dist/components/le-navigation.d.ts +11 -0
- package/dist/components/le-navigation.js +598 -0
- package/dist/components/le-navigation.js.map +1 -0
- 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 +515 -27
- package/dist/esm/index-CNv6tzAt.js.map +1 -1
- package/dist/esm/le-button_13.entry.js +24 -28
- 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 +106 -0
- package/dist/esm/le-icon.entry.js.map +1 -0
- package/dist/esm/le-kit.js +1 -1
- package/dist/esm/le-multiselect.entry.js +3 -3
- package/dist/esm/le-navigation.entry.js +497 -0
- package/dist/esm/le-navigation.entry.js.map +1 -0
- 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 +2149 -1404
- package/dist/le-kit/dist/components/assets/icons/chevron-down.json +13 -0
- package/dist/le-kit/dist/components/assets/icons/chevron-down.svg +3 -0
- package/dist/le-kit/le-kit.esm.js +1 -1
- package/dist/le-kit/{p-b3531106.entry.js → p-0ac4397c.entry.js} +2 -2
- package/dist/le-kit/{p-31c3649c.entry.js → p-25a29e69.entry.js} +2 -2
- package/dist/le-kit/p-2ec60692.entry.js +2 -0
- package/dist/le-kit/{p-269fb44f.entry.js → p-511fbb63.entry.js} +2 -2
- package/dist/le-kit/{p-8afe6862.entry.js → p-58120921.entry.js} +2 -2
- package/dist/le-kit/{p-c83a1255.entry.js → p-5ceb06d8.entry.js} +2 -2
- package/dist/le-kit/p-8c5a8f1e.entry.js +2 -0
- package/dist/le-kit/p-8c5a8f1e.entry.js.map +1 -0
- package/dist/le-kit/{p-deef1f4d.entry.js → p-9a3bdbe1.entry.js} +2 -2
- package/dist/le-kit/p-CNv6tzAt.js.map +1 -1
- package/dist/le-kit/{p-e4618b36.entry.js → p-a0d2c580.entry.js} +2 -2
- package/dist/le-kit/{p-629c5e13.entry.js → p-a8963634.entry.js} +2 -2
- package/dist/le-kit/p-b1dc7e06.entry.js +2 -0
- package/dist/le-kit/p-b1dc7e06.entry.js.map +1 -0
- package/dist/le-kit/p-bb160082.entry.js +2 -0
- package/dist/le-kit/p-bb160082.entry.js.map +1 -0
- package/dist/le-kit/{p-7d316315.entry.js → p-de5638c9.entry.js} +2 -2
- package/dist/le-kit/{p-d2a5d431.entry.js → p-df9389f0.entry.js} +2 -2
- package/dist/le-kit/{p-684adc9f.entry.js → p-e24d3e33.entry.js} +2 -2
- package/dist/le-kit/{p-95cf203e.entry.js → p-ec20e438.entry.js} +2 -2
- package/dist/le-kit/{p-9ba2bfb3.entry.js → p-f4f2c3e7.entry.js} +2 -2
- package/dist/types/components/le-collapse/le-collapse.d.ts +5 -3
- package/dist/types/components/le-icon/le-icon.d.ts +28 -0
- package/dist/types/components/le-navigation/le-navigation.d.ts +112 -0
- package/dist/types/components.d.ts +194 -10
- package/dist/types/types/options.d.ts +5 -0
- package/package.json +1 -1
- package/dist/collection/dist/components/assets/.gitkeep +0 -1
- package/dist/components/assets/.gitkeep +0 -1
- package/dist/le-kit/dist/components/assets/.gitkeep +0 -1
- package/dist/le-kit/p-3829f572.entry.js +0 -2
- package/dist/le-kit/p-3829f572.entry.js.map +0 -1
- package/dist/le-kit/p-e07d4b78.entry.js +0 -2
- /package/dist/le-kit/{p-b3531106.entry.js.map → p-0ac4397c.entry.js.map} +0 -0
- /package/dist/le-kit/{p-31c3649c.entry.js.map → p-25a29e69.entry.js.map} +0 -0
- /package/dist/le-kit/{p-e07d4b78.entry.js.map → p-2ec60692.entry.js.map} +0 -0
- /package/dist/le-kit/{p-269fb44f.entry.js.map → p-511fbb63.entry.js.map} +0 -0
- /package/dist/le-kit/{p-8afe6862.entry.js.map → p-58120921.entry.js.map} +0 -0
- /package/dist/le-kit/{p-c83a1255.entry.js.map → p-5ceb06d8.entry.js.map} +0 -0
- /package/dist/le-kit/{p-deef1f4d.entry.js.map → p-9a3bdbe1.entry.js.map} +0 -0
- /package/dist/le-kit/{p-e4618b36.entry.js.map → p-a0d2c580.entry.js.map} +0 -0
- /package/dist/le-kit/{p-629c5e13.entry.js.map → p-a8963634.entry.js.map} +0 -0
- /package/dist/le-kit/{p-7d316315.entry.js.map → p-de5638c9.entry.js.map} +0 -0
- /package/dist/le-kit/{p-d2a5d431.entry.js.map → p-df9389f0.entry.js.map} +0 -0
- /package/dist/le-kit/{p-684adc9f.entry.js.map → p-e24d3e33.entry.js.map} +0 -0
- /package/dist/le-kit/{p-95cf203e.entry.js.map → p-ec20e438.entry.js.map} +0 -0
- /package/dist/le-kit/{p-9ba2bfb3.entry.js.map → p-f4f2c3e7.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as s}from"./p-CNv6tzAt.js";import{c as a}from"./p-W4FbLlut.js";const i=()=>`:host{display:block}:host([hidden]){display:none}.stack{gap:var(--le-stack-gap, var(--le-space-md))}:host(.full-width){width:100%}:host(.full-height){height:100%}:host(.direction-horizontal) .stack{min-height:0}:host(.direction-vertical) .stack{min-width:0}`;const n=class{constructor(e){t(this,e)}get el(){return e(this)}direction="horizontal";gap;align="stretch";justify="start";wrap=false;alignContent="stretch";reverse=false;maxItems;fullWidth=false;fullHeight=false;padding;getFlexDirection(){const t=this.direction==="vertical"?"column":"row";return this.reverse?`${t}-reverse`:t}getAlignItems(){const t={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"};return t[this.align]||"stretch"}getJustifyContent(){const t={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between","space-around":"space-around","space-evenly":"space-evenly"};return t[this.justify]||"flex-start"}getAlignContent(){const t={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch","space-between":"space-between","space-around":"space-around"};return t[this.alignContent]||"stretch"}render(){const t={display:"flex",flexDirection:this.getFlexDirection(),alignItems:this.getAlignItems(),justifyContent:this.getJustifyContent(),flexWrap:this.wrap?"wrap":"nowrap"};if(this.wrap){t.alignContent=this.getAlignContent()}if(this.gap){t.gap=this.gap}if(this.padding){t.padding=this.padding}const e=a(`direction-${this.direction}`,{wrap:this.wrap,reverse:this.reverse,"full-width":this.fullWidth,"full-height":this.fullHeight});const i=`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()};`;return s("le-component",{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as s}from"./p-CNv6tzAt.js";import{c as a}from"./p-W4FbLlut.js";const i=()=>`:host{display:block}:host([hidden]){display:none}.stack{gap:var(--le-stack-gap, var(--le-space-md))}:host(.full-width){width:100%}:host(.full-height){height:100%}:host(.direction-horizontal) .stack{min-height:0}:host(.direction-vertical) .stack{min-width:0}`;const n=class{constructor(e){t(this,e)}get el(){return e(this)}direction="horizontal";gap;align="stretch";justify="start";wrap=false;alignContent="stretch";reverse=false;maxItems;fullWidth=false;fullHeight=false;padding;getFlexDirection(){const t=this.direction==="vertical"?"column":"row";return this.reverse?`${t}-reverse`:t}getAlignItems(){const t={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"};return t[this.align]||"stretch"}getJustifyContent(){const t={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between","space-around":"space-around","space-evenly":"space-evenly"};return t[this.justify]||"flex-start"}getAlignContent(){const t={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch","space-between":"space-between","space-around":"space-around"};return t[this.alignContent]||"stretch"}render(){const t={display:"flex",flexDirection:this.getFlexDirection(),alignItems:this.getAlignItems(),justifyContent:this.getJustifyContent(),flexWrap:this.wrap?"wrap":"nowrap"};if(this.wrap){t.alignContent=this.getAlignContent()}if(this.gap){t.gap=this.gap}if(this.padding){t.padding=this.padding}const e=a(`direction-${this.direction}`,{wrap:this.wrap,reverse:this.reverse,"full-width":this.fullWidth,"full-height":this.fullHeight});const i=`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()};`;return s("le-component",{key:"5f01f4afc716be565227e396952da314182de505",component:"le-stack",hostClass:e},s("div",{key:"1eef9ac4318f39038282c3574d0019c4d904b421",class:"stack",part:"stack",style:t},s("le-slot",{key:"f4445ca2070d685a3621df06dffe02b40cbb2db3",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:i},s("slot",{key:"90d40bfa5c766d6161614e90ab8f8cec8a0a6dc3"}))))}};n.style=i();export{n as le_stack};
|
|
2
|
+
//# sourceMappingURL=p-f4f2c3e7.entry.js.map
|
|
@@ -17,8 +17,11 @@ export type LeCollapseAnimation = 'fade' | 'collapse' | 'fade-collapse';
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class LeCollapse {
|
|
19
19
|
el: HTMLElement;
|
|
20
|
-
/**
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Since Stencil boolean props default to `false` when the attribute is missing.
|
|
22
|
+
* instead of `open` defaulting to `true`, using a `closed` prop.
|
|
23
|
+
*/
|
|
24
|
+
closed: boolean;
|
|
22
25
|
/** Whether the content should scroll down from the top when open. */
|
|
23
26
|
scrollDown: boolean;
|
|
24
27
|
/** Stop fading the content when collapsing/expanding. */
|
|
@@ -31,7 +34,6 @@ export declare class LeCollapse {
|
|
|
31
34
|
*/
|
|
32
35
|
handleHeaderShrink(ev: Event): void;
|
|
33
36
|
private headerShrunk;
|
|
34
|
-
componentWillLoad(): void;
|
|
35
37
|
componentDidLoad(): void;
|
|
36
38
|
protected onOpenChange(): void;
|
|
37
39
|
protected onDrivenStateChange(): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class LeIcon {
|
|
2
|
+
el: HTMLElement;
|
|
3
|
+
/**
|
|
4
|
+
* Name of the icon to display. Corresponds to a JSON file in the assets folder.
|
|
5
|
+
* For example, "search" will load the "search.json" file.
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* Size of the icon in pixels. Default is 16.
|
|
10
|
+
*/
|
|
11
|
+
size: number;
|
|
12
|
+
private iconData;
|
|
13
|
+
private visible;
|
|
14
|
+
private loadIconData;
|
|
15
|
+
private intersectionObserver;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
componentWillLoad(): Promise<void>;
|
|
19
|
+
private waitUntilVisible;
|
|
20
|
+
/**
|
|
21
|
+
* Renders the SVG content out of a JSON data in a format:
|
|
22
|
+
* { "viewBox": "...", children: [{ "tag": "g", ""children": [ ... ], ...attrs }, ...] }
|
|
23
|
+
*
|
|
24
|
+
* @returns JSX.Element | null
|
|
25
|
+
*/
|
|
26
|
+
private renderSVGContent;
|
|
27
|
+
render(): any;
|
|
28
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { LeOption } from '../../types/options';
|
|
3
|
+
export interface LeNavigationItemSelectDetail {
|
|
4
|
+
item: LeOption;
|
|
5
|
+
id: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
originalEvent: MouseEvent;
|
|
8
|
+
}
|
|
9
|
+
export interface LeNavigationItemToggleDetail {
|
|
10
|
+
item: LeOption;
|
|
11
|
+
id: string;
|
|
12
|
+
open: boolean;
|
|
13
|
+
originalEvent: MouseEvent;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Navigation component with vertical (tree) and horizontal (menu) layouts.
|
|
17
|
+
*
|
|
18
|
+
* - Accepts items as `LeOption[]` or a JSON string.
|
|
19
|
+
* - Supports hierarchical items via `children`.
|
|
20
|
+
* - Supports persisted expansion via `open` on items.
|
|
21
|
+
*
|
|
22
|
+
* @cmsEditable true
|
|
23
|
+
* @cmsCategory Navigation
|
|
24
|
+
*/
|
|
25
|
+
export declare class LeNavigation {
|
|
26
|
+
el: HTMLElement;
|
|
27
|
+
/**
|
|
28
|
+
* Navigation items.
|
|
29
|
+
* Can be passed as an array or JSON string (same pattern as le-select).
|
|
30
|
+
*/
|
|
31
|
+
items: LeOption[] | string;
|
|
32
|
+
/**
|
|
33
|
+
* Layout orientation.
|
|
34
|
+
*/
|
|
35
|
+
orientation: 'vertical' | 'horizontal';
|
|
36
|
+
/**
|
|
37
|
+
* Horizontal wrapping behavior.
|
|
38
|
+
* If false, overflow behavior depends on `overflowMode`.
|
|
39
|
+
*/
|
|
40
|
+
wrap: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Overflow behavior for horizontal, non-wrapping menus.
|
|
43
|
+
* - more: moves overflow items into a "More" popover
|
|
44
|
+
* - hamburger: turns the whole nav into a hamburger popover
|
|
45
|
+
*/
|
|
46
|
+
overflowMode: 'more' | 'hamburger';
|
|
47
|
+
/**
|
|
48
|
+
* Enables a search input for the vertical navigation.
|
|
49
|
+
*/
|
|
50
|
+
searchable: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Placeholder text for the search input.
|
|
53
|
+
*/
|
|
54
|
+
searchPlaceholder: string;
|
|
55
|
+
/**
|
|
56
|
+
* Text shown when no items match the filter.
|
|
57
|
+
*/
|
|
58
|
+
emptyText: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether submenu popovers should include a filter input.
|
|
61
|
+
*/
|
|
62
|
+
submenuSearchable: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Fired when a navigation item is activated.
|
|
65
|
+
*
|
|
66
|
+
* This event is cancelable. Call `event.preventDefault()` to prevent
|
|
67
|
+
* default browser navigation and implement custom routing.
|
|
68
|
+
*/
|
|
69
|
+
leNavItemSelect: EventEmitter<LeNavigationItemSelectDetail>;
|
|
70
|
+
/**
|
|
71
|
+
* Fired when a tree branch is toggled.
|
|
72
|
+
*/
|
|
73
|
+
leNavItemToggle: EventEmitter<LeNavigationItemToggleDetail>;
|
|
74
|
+
private searchQuery;
|
|
75
|
+
private openState;
|
|
76
|
+
private overflowIds;
|
|
77
|
+
private hamburgerActive;
|
|
78
|
+
private submenuQueries;
|
|
79
|
+
private navContainerEl?;
|
|
80
|
+
private measureEl?;
|
|
81
|
+
private measureMoreEl?;
|
|
82
|
+
private topItemEls;
|
|
83
|
+
private popoverRefs;
|
|
84
|
+
private resizeObserver?;
|
|
85
|
+
private instanceId;
|
|
86
|
+
handleLayoutInputsChange(): void;
|
|
87
|
+
componentDidLoad(): void;
|
|
88
|
+
disconnectedCallback(): void;
|
|
89
|
+
componentDidRender(): void;
|
|
90
|
+
private setupResizeObserver;
|
|
91
|
+
private observeContainer;
|
|
92
|
+
private scheduleOverflowRecalc;
|
|
93
|
+
private get parsedItems();
|
|
94
|
+
private getItemId;
|
|
95
|
+
private getChildItems;
|
|
96
|
+
private isOpen;
|
|
97
|
+
private setOpen;
|
|
98
|
+
private matchesQuery;
|
|
99
|
+
private filterTree;
|
|
100
|
+
private handleItemSelect;
|
|
101
|
+
private handleToggle;
|
|
102
|
+
private handleSearchInput;
|
|
103
|
+
private handleSubmenuSearchInput;
|
|
104
|
+
private getTopLevelIds;
|
|
105
|
+
private computeOverflow;
|
|
106
|
+
private computeOverflowMoreByWrap;
|
|
107
|
+
private renderHorizontalMeasureItem;
|
|
108
|
+
private renderVerticalList;
|
|
109
|
+
private renderHorizontalItem;
|
|
110
|
+
private renderHorizontal;
|
|
111
|
+
render(): any;
|
|
112
|
+
}
|
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { LeMultiOptionSelectDetail, LeOption, LeOptionSelectDetail, LeOptionValue } from "./types/options";
|
|
9
|
+
import { LeNavigationItemSelectDetail, LeNavigationItemToggleDetail } from "./components/le-navigation/le-navigation";
|
|
9
10
|
import { LeKitMode } from "./global/app";
|
|
10
11
|
import { PopupPosition, PopupResult, PopupType } from "./components/le-popup/le-popup";
|
|
11
12
|
export { LeMultiOptionSelectDetail, LeOption, LeOptionSelectDetail, LeOptionValue } from "./types/options";
|
|
13
|
+
export { LeNavigationItemSelectDetail, LeNavigationItemToggleDetail } from "./components/le-navigation/le-navigation";
|
|
12
14
|
export { LeKitMode } from "./global/app";
|
|
13
15
|
export { PopupPosition, PopupResult, PopupType } from "./components/le-popup/le-popup";
|
|
14
16
|
export namespace Components {
|
|
@@ -276,6 +278,11 @@ export namespace Components {
|
|
|
276
278
|
* @cmsCategory Layout
|
|
277
279
|
*/
|
|
278
280
|
interface LeCollapse {
|
|
281
|
+
/**
|
|
282
|
+
* Since Stencil boolean props default to `false` when the attribute is missing. instead of `open` defaulting to `true`, using a `closed` prop.
|
|
283
|
+
* @default false
|
|
284
|
+
*/
|
|
285
|
+
"closed": boolean;
|
|
279
286
|
/**
|
|
280
287
|
* If true, collapse/expand based on the nearest header shrink event.
|
|
281
288
|
* @default false
|
|
@@ -286,11 +293,6 @@ export namespace Components {
|
|
|
286
293
|
* @default false
|
|
287
294
|
*/
|
|
288
295
|
"noFading": boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Whether the content should be shown.
|
|
291
|
-
* @default true
|
|
292
|
-
*/
|
|
293
|
-
"open": boolean;
|
|
294
296
|
/**
|
|
295
297
|
* Whether the content should scroll down from the top when open.
|
|
296
298
|
* @default false
|
|
@@ -604,6 +606,18 @@ export namespace Components {
|
|
|
604
606
|
*/
|
|
605
607
|
interface LeHeaderPlaceholder {
|
|
606
608
|
}
|
|
609
|
+
interface LeIcon {
|
|
610
|
+
/**
|
|
611
|
+
* Name of the icon to display. Corresponds to a JSON file in the assets folder. For example, "search" will load the "search.json" file.
|
|
612
|
+
* @default null
|
|
613
|
+
*/
|
|
614
|
+
"name": string;
|
|
615
|
+
/**
|
|
616
|
+
* Size of the icon in pixels. Default is 16.
|
|
617
|
+
* @default 16
|
|
618
|
+
*/
|
|
619
|
+
"size": number;
|
|
620
|
+
}
|
|
607
621
|
/**
|
|
608
622
|
* A multiselect component for selecting multiple options.
|
|
609
623
|
* Displays selected items as tags with optional search filtering.
|
|
@@ -709,6 +723,56 @@ export namespace Components {
|
|
|
709
723
|
*/
|
|
710
724
|
"value": LeOptionValue[];
|
|
711
725
|
}
|
|
726
|
+
/**
|
|
727
|
+
* Navigation component with vertical (tree) and horizontal (menu) layouts.
|
|
728
|
+
* - Accepts items as `LeOption[]` or a JSON string.
|
|
729
|
+
* - Supports hierarchical items via `children`.
|
|
730
|
+
* - Supports persisted expansion via `open` on items.
|
|
731
|
+
* @cmsEditable true
|
|
732
|
+
* @cmsCategory Navigation
|
|
733
|
+
*/
|
|
734
|
+
interface LeNavigation {
|
|
735
|
+
/**
|
|
736
|
+
* Text shown when no items match the filter.
|
|
737
|
+
* @default 'No results found'
|
|
738
|
+
*/
|
|
739
|
+
"emptyText": string;
|
|
740
|
+
/**
|
|
741
|
+
* Navigation items. Can be passed as an array or JSON string (same pattern as le-select).
|
|
742
|
+
* @default []
|
|
743
|
+
*/
|
|
744
|
+
"items": LeOption[] | string;
|
|
745
|
+
/**
|
|
746
|
+
* Layout orientation.
|
|
747
|
+
* @default 'vertical'
|
|
748
|
+
*/
|
|
749
|
+
"orientation": 'vertical' | 'horizontal';
|
|
750
|
+
/**
|
|
751
|
+
* Overflow behavior for horizontal, non-wrapping menus. - more: moves overflow items into a "More" popover - hamburger: turns the whole nav into a hamburger popover
|
|
752
|
+
* @default 'more'
|
|
753
|
+
*/
|
|
754
|
+
"overflowMode": 'more' | 'hamburger';
|
|
755
|
+
/**
|
|
756
|
+
* Placeholder text for the search input.
|
|
757
|
+
* @default 'Search...'
|
|
758
|
+
*/
|
|
759
|
+
"searchPlaceholder": string;
|
|
760
|
+
/**
|
|
761
|
+
* Enables a search input for the vertical navigation.
|
|
762
|
+
* @default false
|
|
763
|
+
*/
|
|
764
|
+
"searchable": boolean;
|
|
765
|
+
/**
|
|
766
|
+
* Whether submenu popovers should include a filter input.
|
|
767
|
+
* @default false
|
|
768
|
+
*/
|
|
769
|
+
"submenuSearchable": boolean;
|
|
770
|
+
/**
|
|
771
|
+
* Horizontal wrapping behavior. If false, overflow behavior depends on `overflowMode`.
|
|
772
|
+
* @default true
|
|
773
|
+
*/
|
|
774
|
+
"wrap": boolean;
|
|
775
|
+
}
|
|
712
776
|
/**
|
|
713
777
|
* A number input component with validation, keyboard controls, and custom spinners.
|
|
714
778
|
* @cssprop --le-input-bg - Input background color
|
|
@@ -1726,6 +1790,10 @@ export interface LeMultiselectCustomEvent<T> extends CustomEvent<T> {
|
|
|
1726
1790
|
detail: T;
|
|
1727
1791
|
target: HTMLLeMultiselectElement;
|
|
1728
1792
|
}
|
|
1793
|
+
export interface LeNavigationCustomEvent<T> extends CustomEvent<T> {
|
|
1794
|
+
detail: T;
|
|
1795
|
+
target: HTMLLeNavigationElement;
|
|
1796
|
+
}
|
|
1729
1797
|
export interface LeNumberInputCustomEvent<T> extends CustomEvent<T> {
|
|
1730
1798
|
detail: T;
|
|
1731
1799
|
target: HTMLLeNumberInputElement;
|
|
@@ -2065,6 +2133,12 @@ declare global {
|
|
|
2065
2133
|
prototype: HTMLLeHeaderPlaceholderElement;
|
|
2066
2134
|
new (): HTMLLeHeaderPlaceholderElement;
|
|
2067
2135
|
};
|
|
2136
|
+
interface HTMLLeIconElement extends Components.LeIcon, HTMLStencilElement {
|
|
2137
|
+
}
|
|
2138
|
+
var HTMLLeIconElement: {
|
|
2139
|
+
prototype: HTMLLeIconElement;
|
|
2140
|
+
new (): HTMLLeIconElement;
|
|
2141
|
+
};
|
|
2068
2142
|
interface HTMLLeMultiselectElementEventMap {
|
|
2069
2143
|
"leChange": LeMultiOptionSelectDetail;
|
|
2070
2144
|
"leOpen": void;
|
|
@@ -2112,6 +2186,32 @@ declare global {
|
|
|
2112
2186
|
prototype: HTMLLeMultiselectElement;
|
|
2113
2187
|
new (): HTMLLeMultiselectElement;
|
|
2114
2188
|
};
|
|
2189
|
+
interface HTMLLeNavigationElementEventMap {
|
|
2190
|
+
"leNavItemSelect": LeNavigationItemSelectDetail;
|
|
2191
|
+
"leNavItemToggle": LeNavigationItemToggleDetail;
|
|
2192
|
+
}
|
|
2193
|
+
/**
|
|
2194
|
+
* Navigation component with vertical (tree) and horizontal (menu) layouts.
|
|
2195
|
+
* - Accepts items as `LeOption[]` or a JSON string.
|
|
2196
|
+
* - Supports hierarchical items via `children`.
|
|
2197
|
+
* - Supports persisted expansion via `open` on items.
|
|
2198
|
+
* @cmsEditable true
|
|
2199
|
+
* @cmsCategory Navigation
|
|
2200
|
+
*/
|
|
2201
|
+
interface HTMLLeNavigationElement extends Components.LeNavigation, HTMLStencilElement {
|
|
2202
|
+
addEventListener<K extends keyof HTMLLeNavigationElementEventMap>(type: K, listener: (this: HTMLLeNavigationElement, ev: LeNavigationCustomEvent<HTMLLeNavigationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2203
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2204
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2205
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2206
|
+
removeEventListener<K extends keyof HTMLLeNavigationElementEventMap>(type: K, listener: (this: HTMLLeNavigationElement, ev: LeNavigationCustomEvent<HTMLLeNavigationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2207
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2208
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2209
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2210
|
+
}
|
|
2211
|
+
var HTMLLeNavigationElement: {
|
|
2212
|
+
prototype: HTMLLeNavigationElement;
|
|
2213
|
+
new (): HTMLLeNavigationElement;
|
|
2214
|
+
};
|
|
2115
2215
|
interface HTMLLeNumberInputElementEventMap {
|
|
2116
2216
|
"leChange": { value: number; name: string; externalId: string; isValid: boolean };
|
|
2117
2217
|
"leInput": { value: number; name: string; externalId: string; isValid: boolean };
|
|
@@ -2578,7 +2678,9 @@ declare global {
|
|
|
2578
2678
|
"le-dropdown-base": HTMLLeDropdownBaseElement;
|
|
2579
2679
|
"le-header": HTMLLeHeaderElement;
|
|
2580
2680
|
"le-header-placeholder": HTMLLeHeaderPlaceholderElement;
|
|
2681
|
+
"le-icon": HTMLLeIconElement;
|
|
2581
2682
|
"le-multiselect": HTMLLeMultiselectElement;
|
|
2683
|
+
"le-navigation": HTMLLeNavigationElement;
|
|
2582
2684
|
"le-number-input": HTMLLeNumberInputElement;
|
|
2583
2685
|
"le-popover": HTMLLePopoverElement;
|
|
2584
2686
|
"le-popup": HTMLLePopupElement;
|
|
@@ -2871,6 +2973,11 @@ declare namespace LocalJSX {
|
|
|
2871
2973
|
* @cmsCategory Layout
|
|
2872
2974
|
*/
|
|
2873
2975
|
interface LeCollapse {
|
|
2976
|
+
/**
|
|
2977
|
+
* Since Stencil boolean props default to `false` when the attribute is missing. instead of `open` defaulting to `true`, using a `closed` prop.
|
|
2978
|
+
* @default false
|
|
2979
|
+
*/
|
|
2980
|
+
"closed"?: boolean;
|
|
2874
2981
|
/**
|
|
2875
2982
|
* If true, collapse/expand based on the nearest header shrink event.
|
|
2876
2983
|
* @default false
|
|
@@ -2881,11 +2988,6 @@ declare namespace LocalJSX {
|
|
|
2881
2988
|
* @default false
|
|
2882
2989
|
*/
|
|
2883
2990
|
"noFading"?: boolean;
|
|
2884
|
-
/**
|
|
2885
|
-
* Whether the content should be shown.
|
|
2886
|
-
* @default true
|
|
2887
|
-
*/
|
|
2888
|
-
"open"?: boolean;
|
|
2889
2991
|
/**
|
|
2890
2992
|
* Whether the content should scroll down from the top when open.
|
|
2891
2993
|
* @default false
|
|
@@ -3220,6 +3322,18 @@ declare namespace LocalJSX {
|
|
|
3220
3322
|
*/
|
|
3221
3323
|
interface LeHeaderPlaceholder {
|
|
3222
3324
|
}
|
|
3325
|
+
interface LeIcon {
|
|
3326
|
+
/**
|
|
3327
|
+
* Name of the icon to display. Corresponds to a JSON file in the assets folder. For example, "search" will load the "search.json" file.
|
|
3328
|
+
* @default null
|
|
3329
|
+
*/
|
|
3330
|
+
"name"?: string;
|
|
3331
|
+
/**
|
|
3332
|
+
* Size of the icon in pixels. Default is 16.
|
|
3333
|
+
* @default 16
|
|
3334
|
+
*/
|
|
3335
|
+
"size"?: number;
|
|
3336
|
+
}
|
|
3223
3337
|
/**
|
|
3224
3338
|
* A multiselect component for selecting multiple options.
|
|
3225
3339
|
* Displays selected items as tags with optional search filtering.
|
|
@@ -3325,6 +3439,64 @@ declare namespace LocalJSX {
|
|
|
3325
3439
|
*/
|
|
3326
3440
|
"value"?: LeOptionValue[];
|
|
3327
3441
|
}
|
|
3442
|
+
/**
|
|
3443
|
+
* Navigation component with vertical (tree) and horizontal (menu) layouts.
|
|
3444
|
+
* - Accepts items as `LeOption[]` or a JSON string.
|
|
3445
|
+
* - Supports hierarchical items via `children`.
|
|
3446
|
+
* - Supports persisted expansion via `open` on items.
|
|
3447
|
+
* @cmsEditable true
|
|
3448
|
+
* @cmsCategory Navigation
|
|
3449
|
+
*/
|
|
3450
|
+
interface LeNavigation {
|
|
3451
|
+
/**
|
|
3452
|
+
* Text shown when no items match the filter.
|
|
3453
|
+
* @default 'No results found'
|
|
3454
|
+
*/
|
|
3455
|
+
"emptyText"?: string;
|
|
3456
|
+
/**
|
|
3457
|
+
* Navigation items. Can be passed as an array or JSON string (same pattern as le-select).
|
|
3458
|
+
* @default []
|
|
3459
|
+
*/
|
|
3460
|
+
"items"?: LeOption[] | string;
|
|
3461
|
+
/**
|
|
3462
|
+
* Fired when a navigation item is activated. This event is cancelable. Call `event.preventDefault()` to prevent default browser navigation and implement custom routing.
|
|
3463
|
+
*/
|
|
3464
|
+
"onLeNavItemSelect"?: (event: LeNavigationCustomEvent<LeNavigationItemSelectDetail>) => void;
|
|
3465
|
+
/**
|
|
3466
|
+
* Fired when a tree branch is toggled.
|
|
3467
|
+
*/
|
|
3468
|
+
"onLeNavItemToggle"?: (event: LeNavigationCustomEvent<LeNavigationItemToggleDetail>) => void;
|
|
3469
|
+
/**
|
|
3470
|
+
* Layout orientation.
|
|
3471
|
+
* @default 'vertical'
|
|
3472
|
+
*/
|
|
3473
|
+
"orientation"?: 'vertical' | 'horizontal';
|
|
3474
|
+
/**
|
|
3475
|
+
* Overflow behavior for horizontal, non-wrapping menus. - more: moves overflow items into a "More" popover - hamburger: turns the whole nav into a hamburger popover
|
|
3476
|
+
* @default 'more'
|
|
3477
|
+
*/
|
|
3478
|
+
"overflowMode"?: 'more' | 'hamburger';
|
|
3479
|
+
/**
|
|
3480
|
+
* Placeholder text for the search input.
|
|
3481
|
+
* @default 'Search...'
|
|
3482
|
+
*/
|
|
3483
|
+
"searchPlaceholder"?: string;
|
|
3484
|
+
/**
|
|
3485
|
+
* Enables a search input for the vertical navigation.
|
|
3486
|
+
* @default false
|
|
3487
|
+
*/
|
|
3488
|
+
"searchable"?: boolean;
|
|
3489
|
+
/**
|
|
3490
|
+
* Whether submenu popovers should include a filter input.
|
|
3491
|
+
* @default false
|
|
3492
|
+
*/
|
|
3493
|
+
"submenuSearchable"?: boolean;
|
|
3494
|
+
/**
|
|
3495
|
+
* Horizontal wrapping behavior. If false, overflow behavior depends on `overflowMode`.
|
|
3496
|
+
* @default true
|
|
3497
|
+
*/
|
|
3498
|
+
"wrap"?: boolean;
|
|
3499
|
+
}
|
|
3328
3500
|
/**
|
|
3329
3501
|
* A number input component with validation, keyboard controls, and custom spinners.
|
|
3330
3502
|
* @cssprop --le-input-bg - Input background color
|
|
@@ -4365,7 +4537,9 @@ declare namespace LocalJSX {
|
|
|
4365
4537
|
"le-dropdown-base": LeDropdownBase;
|
|
4366
4538
|
"le-header": LeHeader;
|
|
4367
4539
|
"le-header-placeholder": LeHeaderPlaceholder;
|
|
4540
|
+
"le-icon": LeIcon;
|
|
4368
4541
|
"le-multiselect": LeMultiselect;
|
|
4542
|
+
"le-navigation": LeNavigation;
|
|
4369
4543
|
"le-number-input": LeNumberInput;
|
|
4370
4544
|
"le-popover": LePopover;
|
|
4371
4545
|
"le-popup": LePopup;
|
|
@@ -4561,6 +4735,7 @@ declare module "@stencil/core" {
|
|
|
4561
4735
|
* @cmsInternal true
|
|
4562
4736
|
*/
|
|
4563
4737
|
"le-header-placeholder": LocalJSX.LeHeaderPlaceholder & JSXBase.HTMLAttributes<HTMLLeHeaderPlaceholderElement>;
|
|
4738
|
+
"le-icon": LocalJSX.LeIcon & JSXBase.HTMLAttributes<HTMLLeIconElement>;
|
|
4564
4739
|
/**
|
|
4565
4740
|
* A multiselect component for selecting multiple options.
|
|
4566
4741
|
* Displays selected items as tags with optional search filtering.
|
|
@@ -4590,6 +4765,15 @@ declare module "@stencil/core" {
|
|
|
4590
4765
|
* ```
|
|
4591
4766
|
*/
|
|
4592
4767
|
"le-multiselect": LocalJSX.LeMultiselect & JSXBase.HTMLAttributes<HTMLLeMultiselectElement>;
|
|
4768
|
+
/**
|
|
4769
|
+
* Navigation component with vertical (tree) and horizontal (menu) layouts.
|
|
4770
|
+
* - Accepts items as `LeOption[]` or a JSON string.
|
|
4771
|
+
* - Supports hierarchical items via `children`.
|
|
4772
|
+
* - Supports persisted expansion via `open` on items.
|
|
4773
|
+
* @cmsEditable true
|
|
4774
|
+
* @cmsCategory Navigation
|
|
4775
|
+
*/
|
|
4776
|
+
"le-navigation": LocalJSX.LeNavigation & JSXBase.HTMLAttributes<HTMLLeNavigationElement>;
|
|
4593
4777
|
/**
|
|
4594
4778
|
* A number input component with validation, keyboard controls, and custom spinners.
|
|
4595
4779
|
* @cssprop --le-input-bg - Input background color
|
|
@@ -94,6 +94,11 @@ export interface LeOption {
|
|
|
94
94
|
* Nested child options for hierarchical menus or submenus.
|
|
95
95
|
*/
|
|
96
96
|
children?: LeOption[];
|
|
97
|
+
/**
|
|
98
|
+
* Whether a hierarchical option is expanded (open).
|
|
99
|
+
* Used by tree-like components (e.g., navigation).
|
|
100
|
+
*/
|
|
101
|
+
open?: boolean;
|
|
97
102
|
/**
|
|
98
103
|
* Group label for categorizing options in flat lists.
|
|
99
104
|
* Options with the same group value are visually grouped together.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Assets directory for le-kit components
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Assets directory for le-kit components
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Assets directory for le-kit components
|