@sula-tech/webcomponents 0.11.1 → 0.11.2
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-LR6yFDX7.js → index-C19aFtyq.js} +5 -2
- package/dist/cjs/index-C19aFtyq.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sula-avatar_21.cjs.entry.js +60 -19
- package/dist/cjs/sula-avatar_21.cjs.entry.js.map +1 -1
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/components/sula-chip/sula-chip.css +1 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.css +1 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.js +62 -7
- package/dist/collection/components/sula-dropdown/sula-dropdown.js.map +1 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js +94 -0
- package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js.map +1 -1
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +28 -2
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js.map +1 -1
- package/dist/collection/components/sula-switch/sula-switch.css +1 -1
- package/dist/collection/components/sula-switch/sula-switch.js +35 -5
- package/dist/collection/components/sula-switch/sula-switch.js.map +1 -1
- package/dist/collection/components/sula-switch/sula-switch.stories.js +22 -0
- package/dist/collection/components/sula-switch/sula-switch.stories.js.map +1 -1
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-CD0__3qt.js → p-BlyFOqde.js} +3 -3
- package/dist/components/{p-CD0__3qt.js.map → p-BlyFOqde.js.map} +1 -1
- package/dist/components/{p-joZ5GnwE.js → p-DksR9NcR.js} +12 -5
- package/dist/components/p-DksR9NcR.js.map +1 -0
- package/dist/components/{p-DO7voMbe.js → p-tr2oA4pB.js} +3 -3
- package/dist/components/{p-DO7voMbe.js.map → p-tr2oA4pB.js.map} +1 -1
- package/dist/components/sula-avatar.js +1 -1
- package/dist/components/sula-badge.js +1 -1
- package/dist/components/sula-breadcrumb.js +1 -1
- package/dist/components/sula-button.js +1 -1
- package/dist/components/sula-checkbox.js +1 -1
- package/dist/components/sula-chip.js +3 -3
- package/dist/components/sula-chip.js.map +1 -1
- package/dist/components/sula-dropdown.js +41 -11
- package/dist/components/sula-dropdown.js.map +1 -1
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-menu-select-list.js +1 -1
- package/dist/components/sula-modal.js +2 -2
- package/dist/components/sula-progress-bar.js +1 -1
- package/dist/components/sula-search-bar.js +1 -1
- package/dist/components/sula-segmented-control.js +1 -1
- package/dist/components/sula-switch.js +14 -6
- package/dist/components/sula-switch.js.map +1 -1
- package/dist/components/sula-tag.js +1 -1
- package/dist/components/sula-textfield.js +1 -1
- package/dist/components/sula-tiles.js +1 -1
- package/dist/components/sula-timeline-list.js +1 -1
- package/dist/esm/{index-CrFclBiX.js → index-CwIBTB8E.js} +5 -2
- package/dist/esm/index-CwIBTB8E.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sula-avatar_21.entry.js +60 -19
- package/dist/esm/sula-avatar_21.entry.js.map +1 -1
- package/dist/esm/webcomponents.js +3 -3
- package/dist/types/components/sula-dropdown/sula-dropdown.d.ts +7 -0
- package/dist/types/components/sula-dropdown/sula-dropdown.stories.d.ts +9 -0
- package/dist/types/components/sula-menu-select-list/sula-menu-select-list.d.ts +4 -0
- package/dist/types/components/sula-switch/sula-switch.d.ts +5 -0
- package/dist/types/components/sula-switch/sula-switch.stories.d.ts +10 -0
- package/dist/types/components.d.ts +30 -0
- package/dist/webcomponents/{p-867d5bf9.entry.js → p-1b6e77dc.entry.js} +68 -29
- package/dist/webcomponents/p-1b6e77dc.entry.js.map +1 -0
- package/dist/webcomponents/{p-CrFclBiX.js → p-CwIBTB8E.js} +5 -2
- package/dist/webcomponents/p-CwIBTB8E.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +9 -5
- package/package.json +1 -1
- package/dist/cjs/index-LR6yFDX7.js.map +0 -1
- package/dist/components/p-joZ5GnwE.js.map +0 -1
- package/dist/esm/index-CrFclBiX.js.map +0 -1
- package/dist/webcomponents/p-867d5bf9.entry.js.map +0 -1
- package/dist/webcomponents/p-CrFclBiX.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-CwIBTB8E.js';
|
|
2
|
+
export { s as setNonce } from './index-CwIBTB8E.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Browser v4.35.1 | MIT Licensed | https://stenciljs.com
|
|
@@ -16,7 +16,7 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["sula-avatar_21",[[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"items":[1040],"selected":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"items":[1040],"value":[1040],"searchable":[516],"selectedItem":[32],"showItems":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32]},[[4,"click","handleDocumentClick"]],{"value":["handleValueChange"],"showItems":["handleShowItemsChange"]}],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-breadcrumb",{"items":[1040]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"isFocus":[32]}],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["sula-avatar_21",[[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"items":[1040],"selected":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"selectedItem":[32],"showItems":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showItems":["handleShowItemsChange"]}],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-breadcrumb",{"items":[1040]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"responsive":[4],"isFocus":[32]}],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"maxHeight":[2,"max-height"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=webcomponents.js.map
|
|
22
22
|
|
|
@@ -21,6 +21,10 @@ export declare class SulaDropdown {
|
|
|
21
21
|
* Enable search/filter functionality in dropdown
|
|
22
22
|
*/
|
|
23
23
|
searchable?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum height for dropdown menu in pixels
|
|
26
|
+
*/
|
|
27
|
+
menuMaxHeight: number;
|
|
24
28
|
/**
|
|
25
29
|
* Event emitted when dropdown is clicked
|
|
26
30
|
*/
|
|
@@ -42,11 +46,14 @@ export declare class SulaDropdown {
|
|
|
42
46
|
isFocused: boolean;
|
|
43
47
|
searchTerm: string;
|
|
44
48
|
filteredItems: SulaMenuListItem[];
|
|
49
|
+
openUpward: boolean;
|
|
45
50
|
node?: HTMLElement;
|
|
46
51
|
searchInputRef?: HTMLInputElement;
|
|
47
52
|
handleValueChange(): void;
|
|
48
53
|
handleShowItemsChange(newValue: boolean): void;
|
|
49
54
|
handleDocumentClick(event: Event): void;
|
|
55
|
+
handleWindowResize(): void;
|
|
56
|
+
calculateMenuPosition(): void;
|
|
50
57
|
componentWillLoad(): void;
|
|
51
58
|
componentDidRender(): void;
|
|
52
59
|
handleClick: () => void;
|
|
@@ -42,6 +42,14 @@ declare const _default: {
|
|
|
42
42
|
required: boolean;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
+
menuMaxHeight: {
|
|
46
|
+
control: string;
|
|
47
|
+
defaultValue: number;
|
|
48
|
+
description: string;
|
|
49
|
+
type: {
|
|
50
|
+
required: boolean;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
45
53
|
dropdownClicked: {
|
|
46
54
|
action: string;
|
|
47
55
|
description: string;
|
|
@@ -76,3 +84,4 @@ export declare const EmptyItems: any;
|
|
|
76
84
|
export declare const LongItemsList: any;
|
|
77
85
|
export declare const Searchable: any;
|
|
78
86
|
export declare const SearchableWithSelectedValue: any;
|
|
87
|
+
export declare const AutoPositioning: any;
|
|
@@ -21,6 +21,11 @@ export declare class SulaSwitch {
|
|
|
21
21
|
* Switch sub title (avaible when is `list` type)
|
|
22
22
|
*/
|
|
23
23
|
subTitle?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Enable responsive layout (full width)
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
responsive: boolean;
|
|
24
29
|
/**
|
|
25
30
|
* Event emitted when switch value changes.
|
|
26
31
|
*/
|
|
@@ -46,6 +46,14 @@ declare const _default: {
|
|
|
46
46
|
required: boolean;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
+
responsive: {
|
|
50
|
+
control: string;
|
|
51
|
+
defaultValue: boolean;
|
|
52
|
+
description: string;
|
|
53
|
+
type: {
|
|
54
|
+
required: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
49
57
|
valueChanged: {
|
|
50
58
|
action: string;
|
|
51
59
|
description: string;
|
|
@@ -77,3 +85,5 @@ export declare const List: any;
|
|
|
77
85
|
export declare const ListActive: any;
|
|
78
86
|
export declare const ListDisabled: any;
|
|
79
87
|
export declare const ListActiveDisabled: any;
|
|
88
|
+
export declare const ListResponsive: any;
|
|
89
|
+
export declare const ListResponsiveActive: any;
|
|
@@ -217,6 +217,11 @@ export namespace Components {
|
|
|
217
217
|
* Dropdown label
|
|
218
218
|
*/
|
|
219
219
|
"label": string;
|
|
220
|
+
/**
|
|
221
|
+
* Maximum height for dropdown menu in pixels
|
|
222
|
+
* @default 260
|
|
223
|
+
*/
|
|
224
|
+
"menuMaxHeight": number;
|
|
220
225
|
/**
|
|
221
226
|
* Enable search/filter functionality in dropdown
|
|
222
227
|
*/
|
|
@@ -255,6 +260,11 @@ export namespace Components {
|
|
|
255
260
|
* @default []
|
|
256
261
|
*/
|
|
257
262
|
"items": SulaMenuListItem[];
|
|
263
|
+
/**
|
|
264
|
+
* Maximum height for menu in pixels
|
|
265
|
+
* @default 260
|
|
266
|
+
*/
|
|
267
|
+
"maxHeight": number;
|
|
258
268
|
/**
|
|
259
269
|
* Selected value
|
|
260
270
|
*/
|
|
@@ -423,6 +433,11 @@ export namespace Components {
|
|
|
423
433
|
* Switch label
|
|
424
434
|
*/
|
|
425
435
|
"label"?: string;
|
|
436
|
+
/**
|
|
437
|
+
* Enable responsive layout (full width)
|
|
438
|
+
* @default false
|
|
439
|
+
*/
|
|
440
|
+
"responsive": boolean;
|
|
426
441
|
/**
|
|
427
442
|
* Switch sub title (avaible when is `list` type)
|
|
428
443
|
*/
|
|
@@ -1190,6 +1205,11 @@ declare namespace LocalJSX {
|
|
|
1190
1205
|
* Dropdown label
|
|
1191
1206
|
*/
|
|
1192
1207
|
"label"?: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* Maximum height for dropdown menu in pixels
|
|
1210
|
+
* @default 260
|
|
1211
|
+
*/
|
|
1212
|
+
"menuMaxHeight"?: number;
|
|
1193
1213
|
/**
|
|
1194
1214
|
* Event emitted when dropdown is clicked
|
|
1195
1215
|
*/
|
|
@@ -1244,6 +1264,11 @@ declare namespace LocalJSX {
|
|
|
1244
1264
|
* @default []
|
|
1245
1265
|
*/
|
|
1246
1266
|
"items"?: SulaMenuListItem[];
|
|
1267
|
+
/**
|
|
1268
|
+
* Maximum height for menu in pixels
|
|
1269
|
+
* @default 260
|
|
1270
|
+
*/
|
|
1271
|
+
"maxHeight"?: number;
|
|
1247
1272
|
/**
|
|
1248
1273
|
* Event emitted when item is selected
|
|
1249
1274
|
*/
|
|
@@ -1480,6 +1505,11 @@ declare namespace LocalJSX {
|
|
|
1480
1505
|
* Event emitted when switch value changes.
|
|
1481
1506
|
*/
|
|
1482
1507
|
"onValueChanged"?: (event: SulaSwitchCustomEvent<boolean>) => void;
|
|
1508
|
+
/**
|
|
1509
|
+
* Enable responsive layout (full width)
|
|
1510
|
+
* @default false
|
|
1511
|
+
*/
|
|
1512
|
+
"responsive"?: boolean;
|
|
1483
1513
|
/**
|
|
1484
1514
|
* Switch sub title (avaible when is `list` type)
|
|
1485
1515
|
*/
|