@sula-tech/webcomponents 0.19.1 → 0.19.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/loader.cjs.js +1 -1
- package/dist/cjs/sula-avatar_31.cjs.entry.js +97 -10
- package/dist/cjs/sula-avatar_31.cjs.entry.js.map +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/sula-avatar/sula-avatar.css +1 -1
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-tooltip/sula-tooltip.css +1 -1
- package/dist/collection/components/sula-tooltip/sula-tooltip.js +119 -8
- package/dist/collection/components/sula-tooltip/sula-tooltip.js.map +1 -1
- package/dist/collection/components/sula-tooltip/sula-tooltip.stories.js +61 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.stories.js.map +1 -1
- package/dist/components/{p-DE4pFpiq.js → p-BJQZqrGi.js} +3 -3
- package/dist/components/{p-DE4pFpiq.js.map → p-BJQZqrGi.js.map} +1 -1
- package/dist/components/{p-DoTL1gHf.js → p-Bqd5Y-Ir.js} +4 -4
- package/dist/components/{p-DoTL1gHf.js.map → p-Bqd5Y-Ir.js.map} +1 -1
- package/dist/components/{p-CnGkvX5w.js → p-CelSwSJG.js} +3 -3
- package/dist/components/{p-CnGkvX5w.js.map → p-CelSwSJG.js.map} +1 -1
- package/dist/components/{p-CnjVJ_xQ.js → p-D1tWu3qb.js} +3 -3
- package/dist/components/{p-CnjVJ_xQ.js.map → p-D1tWu3qb.js.map} +1 -1
- package/dist/components/{p-BddXO6fP.js → p-bHiC51v2.js} +3 -3
- package/dist/components/{p-BddXO6fP.js.map → p-bHiC51v2.js.map} +1 -1
- package/dist/components/sula-avatar.js +2 -2
- 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 +2 -2
- package/dist/components/sula-dropdown.js +1 -1
- package/dist/components/sula-icon-picker.js +4 -4
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-menu-select-list.js +1 -1
- package/dist/components/sula-menu.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-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/components/sula-toggle.js +1 -1
- package/dist/components/sula-tooltip.js +99 -9
- package/dist/components/sula-tooltip.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sula-avatar_31.entry.js +97 -10
- package/dist/esm/sula-avatar_31.entry.js.map +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/sula-tooltip/sula-tooltip.d.ts +26 -0
- package/dist/types/components/sula-tooltip/sula-tooltip.stories.d.ts +22 -0
- package/dist/types/components.d.ts +12 -0
- package/dist/webcomponents/{p-b5c2f1e3.entry.js → p-c2f9f164.entry.js} +102 -15
- package/dist/webcomponents/p-c2f9f164.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +4 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-b5c2f1e3.entry.js.map +0 -1
|
@@ -16,7 +16,7 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["sula-avatar_31",[[1,"sula-icon-picker",{"label":[1025],"required":[1028],"disabled":[1028],"error":[1025],"value":[1025],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"icons":[1040],"maxVisibleIcons":[2,"max-visible-icons"],"menuMaxHeight":[2,"menu-max-height"],"selectedIcon":[32],"searchTerm":[32]},null,{"value":["handleValueChange"],"icons":["handleIconsChange"]}],[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-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-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"items":[1040],"collapsed":[32],"previewExpanded":[32],"selectedItem":[32]},null,{"items":["syncSelectedItemFromItems"]}],[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-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"],"maskPatternSwitchMaxLength":[2,"mask-pattern-switch-max-length"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"],"maskPattern":["watchMaskPatternHandler"],"maskPatternSwitchMaxLength":["watchMaskPatternSwitchMaxLengthHandler"]}],[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-toggle",{"selected":[1028],"buttonDisabled":[1028,"button-disabled"],"icon":[1]}],[1,"sula-tooltip",{"text":[1],"position":[1],"icon":[1],"iconClass":[1,"icon-class"],"focused":[4],"trigger":[1],"isVisible":[32]}],[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]}],[4,"sula-table",{"density":[1],"equalWidth":[4,"equal-width"],"fullWidth":[4,"full-width"]}],[4,"sula-table-body"],[4,"sula-table-cell"],[4,"sula-table-head-cell"],[4,"sula-table-header"],[4,"sula-table-row"],[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-dropdown",{"label":[1025],"disabled":[1028],"hasError":[1540,"has-error"],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"contentMaxHeight":[2,"content-max-height"],"customContent":[516,"custom-content"],"closeOnSelect":[4,"close-on-select"],"showContent":[1540,"show-content"],"selectedItem":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showContent":["handleShowContentChange"]}],[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-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);
|
|
19
|
+
return bootstrapLazy([["sula-avatar_31",[[1,"sula-icon-picker",{"label":[1025],"required":[1028],"disabled":[1028],"error":[1025],"value":[1025],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"icons":[1040],"maxVisibleIcons":[2,"max-visible-icons"],"menuMaxHeight":[2,"menu-max-height"],"selectedIcon":[32],"searchTerm":[32]},null,{"value":["handleValueChange"],"icons":["handleIconsChange"]}],[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-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-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"items":[1040],"collapsed":[32],"previewExpanded":[32],"selectedItem":[32]},null,{"items":["syncSelectedItemFromItems"]}],[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-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"],"maskPatternSwitchMaxLength":[2,"mask-pattern-switch-max-length"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"],"maskPattern":["watchMaskPatternHandler"],"maskPatternSwitchMaxLength":["watchMaskPatternSwitchMaxLengthHandler"]}],[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-toggle",{"selected":[1028],"buttonDisabled":[1028,"button-disabled"],"icon":[1]}],[1,"sula-tooltip",{"text":[1],"position":[1],"icon":[1],"iconClass":[1,"icon-class"],"focused":[4],"trigger":[1],"appendToBody":[4,"append-to-body"],"isVisible":[32]},null,{"text":["handleTextChange"]}],[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]}],[4,"sula-table",{"density":[1],"equalWidth":[4,"equal-width"],"fullWidth":[4,"full-width"]}],[4,"sula-table-body"],[4,"sula-table-cell"],[4,"sula-table-head-cell"],[4,"sula-table-header"],[4,"sula-table-row"],[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-dropdown",{"label":[1025],"disabled":[1028],"hasError":[1540,"has-error"],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"contentMaxHeight":[2,"content-max-height"],"customContent":[516,"custom-content"],"closeOnSelect":[4,"close-on-select"],"showContent":[1540,"show-content"],"selectedItem":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showContent":["handleShowContentChange"]}],[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-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
|
|
|
@@ -29,19 +29,45 @@ export declare class SulaTooltip {
|
|
|
29
29
|
* appears on hover of that parent.
|
|
30
30
|
*/
|
|
31
31
|
trigger: SulaTooltipTrigger;
|
|
32
|
+
/**
|
|
33
|
+
* When true, the hint bubble is rendered in a portal appended to
|
|
34
|
+
* `document.body` instead of staying inside the component's local DOM
|
|
35
|
+
* subtree. Use this when the tooltip lives inside a container that clips
|
|
36
|
+
* overflow (e.g. `overflow-x-auto`/`overflow: hidden`, such as `sula-table`
|
|
37
|
+
* cells) — those ancestors clip `position: fixed` descendants too, so the
|
|
38
|
+
* bubble can get cut off or hidden behind other elements regardless of the
|
|
39
|
+
* Popper.js `flip`/`preventOverflow` modifiers.
|
|
40
|
+
*/
|
|
41
|
+
appendToBody: boolean;
|
|
32
42
|
isVisible: boolean;
|
|
33
43
|
private parentEl;
|
|
34
44
|
private hintEl;
|
|
35
45
|
private triggerEl;
|
|
36
46
|
private arrowEl;
|
|
37
47
|
private popperInstance;
|
|
48
|
+
private portalHost;
|
|
49
|
+
private portalShadow;
|
|
50
|
+
private hintTextNode;
|
|
38
51
|
componentDidLoad(): void;
|
|
52
|
+
private mount;
|
|
39
53
|
disconnectedCallback(): void;
|
|
54
|
+
handleTextChange(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Builds the hint bubble outside of Stencil's own DOM subtree and appends
|
|
57
|
+
* it to `document.body`, so ancestor containers with `overflow` set can no
|
|
58
|
+
* longer clip it. The bubble's styles are copied from this component's own
|
|
59
|
+
* shadow root (adopted stylesheets or `<style>` tags) into a dedicated
|
|
60
|
+
* shadow root on the portal host to keep styling encapsulated.
|
|
61
|
+
*/
|
|
62
|
+
private createPortalHint;
|
|
63
|
+
private copyStylesInto;
|
|
64
|
+
private destroyPortalHint;
|
|
40
65
|
private initPopper;
|
|
41
66
|
private get displayText();
|
|
42
67
|
private getIconClasses;
|
|
43
68
|
private getHintClasses;
|
|
44
69
|
private handleMouseEnter;
|
|
45
70
|
private handleMouseLeave;
|
|
71
|
+
private syncPortalVisibility;
|
|
46
72
|
render(): any;
|
|
47
73
|
}
|
|
@@ -69,6 +69,18 @@ declare const _default: {
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
+
appendToBody: {
|
|
73
|
+
control: string;
|
|
74
|
+
description: string;
|
|
75
|
+
table: {
|
|
76
|
+
type: {
|
|
77
|
+
summary: string;
|
|
78
|
+
};
|
|
79
|
+
defaultValue: {
|
|
80
|
+
summary: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
72
84
|
};
|
|
73
85
|
parameters: {
|
|
74
86
|
docs: {
|
|
@@ -103,3 +115,13 @@ export declare const ParentTrigger: {
|
|
|
103
115
|
};
|
|
104
116
|
};
|
|
105
117
|
};
|
|
118
|
+
export declare const AppendToBody: {
|
|
119
|
+
(): HTMLDivElement;
|
|
120
|
+
parameters: {
|
|
121
|
+
docs: {
|
|
122
|
+
description: {
|
|
123
|
+
story: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
@@ -776,6 +776,11 @@ export namespace Components {
|
|
|
776
776
|
"selected": boolean;
|
|
777
777
|
}
|
|
778
778
|
interface SulaTooltip {
|
|
779
|
+
/**
|
|
780
|
+
* When true, the hint bubble is rendered in a portal appended to `document.body` instead of staying inside the component's local DOM subtree. Use this when the tooltip lives inside a container that clips overflow (e.g. `overflow-x-auto`/`overflow: hidden`, such as `sula-table` cells) — those ancestors clip `position: fixed` descendants too, so the bubble can get cut off or hidden behind other elements regardless of the Popper.js `flip`/`preventOverflow` modifiers.
|
|
781
|
+
* @default false
|
|
782
|
+
*/
|
|
783
|
+
"appendToBody": boolean;
|
|
779
784
|
/**
|
|
780
785
|
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
781
786
|
* @default false
|
|
@@ -798,6 +803,7 @@ export namespace Components {
|
|
|
798
803
|
"position": SulaTooltipPosition;
|
|
799
804
|
/**
|
|
800
805
|
* Tooltip hint text — max 300 characters
|
|
806
|
+
* @default ''
|
|
801
807
|
*/
|
|
802
808
|
"text": string;
|
|
803
809
|
/**
|
|
@@ -2240,6 +2246,11 @@ declare namespace LocalJSX {
|
|
|
2240
2246
|
"selected"?: boolean;
|
|
2241
2247
|
}
|
|
2242
2248
|
interface SulaTooltip {
|
|
2249
|
+
/**
|
|
2250
|
+
* When true, the hint bubble is rendered in a portal appended to `document.body` instead of staying inside the component's local DOM subtree. Use this when the tooltip lives inside a container that clips overflow (e.g. `overflow-x-auto`/`overflow: hidden`, such as `sula-table` cells) — those ancestors clip `position: fixed` descendants too, so the bubble can get cut off or hidden behind other elements regardless of the Popper.js `flip`/`preventOverflow` modifiers.
|
|
2251
|
+
* @default false
|
|
2252
|
+
*/
|
|
2253
|
+
"appendToBody"?: boolean;
|
|
2243
2254
|
/**
|
|
2244
2255
|
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
2245
2256
|
* @default false
|
|
@@ -2262,6 +2273,7 @@ declare namespace LocalJSX {
|
|
|
2262
2273
|
"position"?: SulaTooltipPosition;
|
|
2263
2274
|
/**
|
|
2264
2275
|
* Tooltip hint text — max 300 characters
|
|
2276
|
+
* @default ''
|
|
2265
2277
|
*/
|
|
2266
2278
|
"text"?: string;
|
|
2267
2279
|
/**
|