@sula-tech/webcomponents 0.14.1 → 0.16.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-C19aFtyq.js → index-CHZXBkfx.js} +357 -7
- package/dist/cjs/index-CHZXBkfx.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{sula-avatar_21.cjs.entry.js → sula-avatar_28.cjs.entry.js} +2103 -23
- package/dist/cjs/sula-avatar_28.cjs.entry.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.js +6 -6
- package/dist/collection/components/sula-dropdown/sula-dropdown.js.map +1 -1
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-table/model/sula-table.model.js +8 -0
- package/dist/collection/components/sula-table/model/sula-table.model.js.map +1 -0
- package/dist/collection/components/sula-table/sula-table.css +1 -0
- package/dist/collection/components/sula-table/sula-table.js +111 -0
- package/dist/collection/components/sula-table/sula-table.js.map +1 -0
- package/dist/collection/components/sula-table/sula-table.stories.js +298 -0
- package/dist/collection/components/sula-table/sula-table.stories.js.map +1 -0
- package/dist/collection/components/sula-table-body/sula-table-body.css +1 -0
- package/dist/collection/components/sula-table-body/sula-table-body.js +23 -0
- package/dist/collection/components/sula-table-body/sula-table-body.js.map +1 -0
- package/dist/collection/components/sula-table-cell/sula-table-cell.css +1 -0
- package/dist/collection/components/sula-table-cell/sula-table-cell.js +34 -0
- package/dist/collection/components/sula-table-cell/sula-table-cell.js.map +1 -0
- package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.css +1 -0
- package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js +34 -0
- package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js.map +1 -0
- package/dist/collection/components/sula-table-header/sula-table-header.css +1 -0
- package/dist/collection/components/sula-table-header/sula-table-header.js +23 -0
- package/dist/collection/components/sula-table-header/sula-table-header.js.map +1 -0
- package/dist/collection/components/sula-table-row/sula-table-row.css +1 -0
- package/dist/collection/components/sula-table-row/sula-table-row.js +23 -0
- package/dist/collection/components/sula-table-row/sula-table-row.js.map +1 -0
- package/dist/collection/components/sula-tag/sula-tag.js +3 -3
- package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
- package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
- package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
- package/dist/collection/components/sula-tooltip/model/sula-tooltip.model.js +13 -0
- package/dist/collection/components/sula-tooltip/model/sula-tooltip.model.js.map +1 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.css +1 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.js +218 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.js.map +1 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.stories.js +179 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.stories.js.map +1 -0
- package/dist/collection/utils/replace-host-with-rendered-element.js +24 -0
- package/dist/collection/utils/replace-host-with-rendered-element.js.map +1 -0
- package/dist/components/index.js +355 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-tr2oA4pB.js → p-BoXZrDgj.js} +3 -3
- package/dist/components/{p-tr2oA4pB.js.map → p-BoXZrDgj.js.map} +1 -1
- package/dist/components/p-CQ1I0UIz.js +12 -0
- package/dist/components/p-CQ1I0UIz.js.map +1 -0
- package/dist/components/p-DrIWCpI3.js +28 -0
- package/dist/components/p-DrIWCpI3.js.map +1 -0
- package/dist/components/{p-BlyFOqde.js → p-ExcZQ46X.js} +3 -3
- package/dist/components/{p-BlyFOqde.js.map → p-ExcZQ46X.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 +1 -1
- package/dist/components/sula-dropdown.js +7 -7
- package/dist/components/sula-dropdown.js.map +1 -1
- package/dist/components/sula-icon.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-table-body.d.ts +11 -0
- package/dist/components/sula-table-body.js +41 -0
- package/dist/components/sula-table-body.js.map +1 -0
- package/dist/components/sula-table-cell.d.ts +11 -0
- package/dist/components/sula-table-cell.js +52 -0
- package/dist/components/sula-table-cell.js.map +1 -0
- package/dist/components/sula-table-head-cell.d.ts +11 -0
- package/dist/components/sula-table-head-cell.js +52 -0
- package/dist/components/sula-table-head-cell.js.map +1 -0
- package/dist/components/sula-table-header.d.ts +11 -0
- package/dist/components/sula-table-header.js +41 -0
- package/dist/components/sula-table-header.js.map +1 -0
- package/dist/components/sula-table-row.d.ts +11 -0
- package/dist/components/sula-table-row.js +41 -0
- package/dist/components/sula-table-row.js.map +1 -0
- package/dist/components/sula-table.d.ts +11 -0
- package/dist/components/sula-table.js +61 -0
- package/dist/components/sula-table.js.map +1 -0
- package/dist/components/sula-tag.js +4 -4
- package/dist/components/sula-textarea.js +6 -6
- package/dist/components/sula-textfield.js +3 -3
- package/dist/components/sula-tiles.js +2 -2
- package/dist/components/sula-timeline-list.js +2 -2
- package/dist/components/sula-tooltip.d.ts +11 -0
- package/dist/components/sula-tooltip.js +1946 -0
- package/dist/components/sula-tooltip.js.map +1 -0
- package/dist/esm/{index-CwIBTB8E.js → index-CwrCjm3e.js} +357 -7
- package/dist/esm/index-CwrCjm3e.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{sula-avatar_21.entry.js → sula-avatar_28.entry.js} +2097 -24
- package/dist/esm/sula-avatar_28.entry.js.map +1 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/types/components/sula-table/model/sula-table.model.d.ts +6 -0
- package/dist/types/components/sula-table/sula-table.d.ts +16 -0
- package/dist/types/components/sula-table/sula-table.stories.d.ts +69 -0
- package/dist/types/components/sula-table-body/sula-table-body.d.ts +5 -0
- package/dist/types/components/sula-table-cell/sula-table-cell.d.ts +6 -0
- package/dist/types/components/sula-table-head-cell/sula-table-head-cell.d.ts +6 -0
- package/dist/types/components/sula-table-header/sula-table-header.d.ts +5 -0
- package/dist/types/components/sula-table-row/sula-table-row.d.ts +5 -0
- package/dist/types/components/sula-tooltip/model/sula-tooltip.model.d.ts +10 -0
- package/dist/types/components/sula-tooltip/sula-tooltip.d.ts +40 -0
- package/dist/types/components/sula-tooltip/sula-tooltip.stories.d.ts +105 -0
- package/dist/types/components.d.ts +163 -0
- package/dist/types/utils/replace-host-with-rendered-element.d.ts +1 -0
- package/dist/webcomponents/{p-a7141407.entry.js → p-8472342b.entry.js} +3258 -1317
- package/dist/webcomponents/p-8472342b.entry.js.map +1 -0
- package/dist/webcomponents/{p-CwIBTB8E.js → p-CwrCjm3e.js} +504 -150
- package/dist/webcomponents/p-CwrCjm3e.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +14 -4
- package/package.json +2 -1
- package/dist/cjs/index-C19aFtyq.js.map +0 -1
- package/dist/cjs/sula-avatar_21.cjs.entry.js.map +0 -1
- package/dist/esm/index-CwIBTB8E.js.map +0 -1
- package/dist/esm/sula-avatar_21.entry.js.map +0 -1
- package/dist/webcomponents/p-CwIBTB8E.js.map +0 -1
- package/dist/webcomponents/p-a7141407.entry.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-CwrCjm3e.js';
|
|
2
|
+
export { s as setNonce } from './index-CwrCjm3e.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-
|
|
19
|
+
return bootstrapLazy([["sula-avatar_28",[[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"],"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-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"],"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-tooltip",{"text":[1],"position":[1],"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-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
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SulaTableDensity } from './model/sula-table.model';
|
|
2
|
+
export declare class SulaTable {
|
|
3
|
+
/**
|
|
4
|
+
* Density of the table
|
|
5
|
+
*/
|
|
6
|
+
density: SulaTableDensity;
|
|
7
|
+
/**
|
|
8
|
+
* If true, all columns will have equal width
|
|
9
|
+
*/
|
|
10
|
+
equalWidth: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* If true, the table will take the full width of its container
|
|
13
|
+
*/
|
|
14
|
+
fullWidth: boolean;
|
|
15
|
+
render(): any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { SulaTableDensity } from './model/sula-table.model';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
argTypes: {
|
|
6
|
+
density: {
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
options: SulaTableDensity[];
|
|
11
|
+
description: string;
|
|
12
|
+
table: {
|
|
13
|
+
type: {
|
|
14
|
+
summary: string;
|
|
15
|
+
};
|
|
16
|
+
defaultValue: {
|
|
17
|
+
summary: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
fullWidth: {
|
|
22
|
+
control: string;
|
|
23
|
+
description: string;
|
|
24
|
+
table: {
|
|
25
|
+
type: {
|
|
26
|
+
summary: string;
|
|
27
|
+
};
|
|
28
|
+
defaultValue: {
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
equalWidth: {
|
|
34
|
+
control: string;
|
|
35
|
+
description: string;
|
|
36
|
+
table: {
|
|
37
|
+
type: {
|
|
38
|
+
summary: string;
|
|
39
|
+
};
|
|
40
|
+
defaultValue: {
|
|
41
|
+
summary: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
parameters: {
|
|
47
|
+
docs: {
|
|
48
|
+
description: {
|
|
49
|
+
component: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
55
|
+
export declare const Playground: any;
|
|
56
|
+
export declare const TextOnly: any;
|
|
57
|
+
export declare const CustomContent: any;
|
|
58
|
+
export declare const EqualWidthColumns: any;
|
|
59
|
+
export declare const IntrinsicWidth: any;
|
|
60
|
+
export declare const DensityComparison: {
|
|
61
|
+
(): HTMLDivElement;
|
|
62
|
+
parameters: {
|
|
63
|
+
docs: {
|
|
64
|
+
description: {
|
|
65
|
+
story: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SulaTooltipPosition, SulaTooltipTrigger } from './model/sula-tooltip.model';
|
|
2
|
+
export declare class SulaTooltip {
|
|
3
|
+
el: HTMLElement;
|
|
4
|
+
/**
|
|
5
|
+
* Tooltip hint text — max 300 characters
|
|
6
|
+
*/
|
|
7
|
+
text: string;
|
|
8
|
+
/**
|
|
9
|
+
* Tooltip position relative to trigger
|
|
10
|
+
*/
|
|
11
|
+
position: SulaTooltipPosition;
|
|
12
|
+
private readonly icon;
|
|
13
|
+
/**
|
|
14
|
+
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
15
|
+
*/
|
|
16
|
+
focused: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Trigger mode.
|
|
19
|
+
* - `'icon'` (default): the built-in info icon is the hover target.
|
|
20
|
+
* - `'parent'`: the icon is hidden; the component stretches to fill the
|
|
21
|
+
* parent element (which **must** have `position: relative`) and the hint
|
|
22
|
+
* appears on hover of that parent.
|
|
23
|
+
*/
|
|
24
|
+
trigger: SulaTooltipTrigger;
|
|
25
|
+
isVisible: boolean;
|
|
26
|
+
private parentEl;
|
|
27
|
+
private hintEl;
|
|
28
|
+
private triggerEl;
|
|
29
|
+
private arrowEl;
|
|
30
|
+
private popperInstance;
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
private initPopper;
|
|
34
|
+
private get displayText();
|
|
35
|
+
private getIconClasses;
|
|
36
|
+
private getHintClasses;
|
|
37
|
+
private handleMouseEnter;
|
|
38
|
+
private handleMouseLeave;
|
|
39
|
+
render(): any;
|
|
40
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { SulaTooltipPosition, SulaTooltipTrigger } from './model/sula-tooltip.model';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
argTypes: {
|
|
6
|
+
text: {
|
|
7
|
+
control: string;
|
|
8
|
+
description: string;
|
|
9
|
+
table: {
|
|
10
|
+
type: {
|
|
11
|
+
summary: string;
|
|
12
|
+
};
|
|
13
|
+
defaultValue: {
|
|
14
|
+
summary: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
position: {
|
|
19
|
+
control: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
options: SulaTooltipPosition[];
|
|
23
|
+
description: string;
|
|
24
|
+
table: {
|
|
25
|
+
type: {
|
|
26
|
+
summary: string;
|
|
27
|
+
};
|
|
28
|
+
defaultValue: {
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
icon: {
|
|
34
|
+
control: string;
|
|
35
|
+
description: string;
|
|
36
|
+
table: {
|
|
37
|
+
type: {
|
|
38
|
+
summary: string;
|
|
39
|
+
};
|
|
40
|
+
defaultValue: {
|
|
41
|
+
summary: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
focused: {
|
|
46
|
+
control: string;
|
|
47
|
+
description: string;
|
|
48
|
+
table: {
|
|
49
|
+
type: {
|
|
50
|
+
summary: string;
|
|
51
|
+
};
|
|
52
|
+
defaultValue: {
|
|
53
|
+
summary: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
trigger: {
|
|
58
|
+
control: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
options: SulaTooltipTrigger[];
|
|
62
|
+
description: string;
|
|
63
|
+
table: {
|
|
64
|
+
type: {
|
|
65
|
+
summary: string;
|
|
66
|
+
};
|
|
67
|
+
defaultValue: {
|
|
68
|
+
summary: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
parameters: {
|
|
74
|
+
docs: {
|
|
75
|
+
description: {
|
|
76
|
+
component: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export default _default;
|
|
82
|
+
export declare const Playground: any;
|
|
83
|
+
export declare const Positions: {
|
|
84
|
+
(): HTMLDivElement;
|
|
85
|
+
parameters: {
|
|
86
|
+
docs: {
|
|
87
|
+
description: {
|
|
88
|
+
story: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export declare const FocusRing: any;
|
|
94
|
+
export declare const CustomIcon: any;
|
|
95
|
+
export declare const LongText: any;
|
|
96
|
+
export declare const ParentTrigger: {
|
|
97
|
+
(): HTMLDivElement;
|
|
98
|
+
parameters: {
|
|
99
|
+
docs: {
|
|
100
|
+
description: {
|
|
101
|
+
story: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -19,11 +19,13 @@ import { SulaProgressBarAppearance, SulaProgressBarState } from "./components/su
|
|
|
19
19
|
import { SulaSearchBarStyle } from "./components/sula-search-bar/model/sula-search.bar-model";
|
|
20
20
|
import { SulaSegmentedControlColor, SulaSegmentedControlOption, SulaSegmentedControlSize, SulaSegmentedControlType } from "./components/sula-segmented-control/model/sula-segmented-control.model";
|
|
21
21
|
import { SulaSwitchType } from "./components/sula-switch/model/sula-switch.model";
|
|
22
|
+
import { SulaTableDensity } from "./components/sula-table/model/sula-table.model";
|
|
22
23
|
import { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from "./components/sula-tag/model/sula-tag.model";
|
|
23
24
|
import { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textarea.model";
|
|
24
25
|
import { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
25
26
|
import { SulaTilesSize, SulaTilesType } from "./components/sula-tiles/model/sula-tiles.model";
|
|
26
27
|
import { SulaTimelineListItem } from "./components/sula-timeline-list/model/sula-timeline-list.model";
|
|
28
|
+
import { SulaTooltipPosition, SulaTooltipTrigger } from "./components/sula-tooltip/model/sula-tooltip.model";
|
|
27
29
|
export { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model";
|
|
28
30
|
export { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
29
31
|
export { SulaMenuBreadcrumb } from "./components/sula-breadcrumb/model/sula-breadcrumb.model";
|
|
@@ -38,11 +40,13 @@ export { SulaProgressBarAppearance, SulaProgressBarState } from "./components/su
|
|
|
38
40
|
export { SulaSearchBarStyle } from "./components/sula-search-bar/model/sula-search.bar-model";
|
|
39
41
|
export { SulaSegmentedControlColor, SulaSegmentedControlOption, SulaSegmentedControlSize, SulaSegmentedControlType } from "./components/sula-segmented-control/model/sula-segmented-control.model";
|
|
40
42
|
export { SulaSwitchType } from "./components/sula-switch/model/sula-switch.model";
|
|
43
|
+
export { SulaTableDensity } from "./components/sula-table/model/sula-table.model";
|
|
41
44
|
export { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from "./components/sula-tag/model/sula-tag.model";
|
|
42
45
|
export { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textarea.model";
|
|
43
46
|
export { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
44
47
|
export { SulaTilesSize, SulaTilesType } from "./components/sula-tiles/model/sula-tiles.model";
|
|
45
48
|
export { SulaTimelineListItem } from "./components/sula-timeline-list/model/sula-timeline-list.model";
|
|
49
|
+
export { SulaTooltipPosition, SulaTooltipTrigger } from "./components/sula-tooltip/model/sula-tooltip.model";
|
|
46
50
|
export namespace Components {
|
|
47
51
|
interface SulaAvatar {
|
|
48
52
|
/**
|
|
@@ -467,6 +471,33 @@ export namespace Components {
|
|
|
467
471
|
*/
|
|
468
472
|
"type": SulaSwitchType;
|
|
469
473
|
}
|
|
474
|
+
interface SulaTable {
|
|
475
|
+
/**
|
|
476
|
+
* Density of the table
|
|
477
|
+
* @default SulaTableDensity.Default
|
|
478
|
+
*/
|
|
479
|
+
"density": SulaTableDensity;
|
|
480
|
+
/**
|
|
481
|
+
* If true, all columns will have equal width
|
|
482
|
+
* @default true
|
|
483
|
+
*/
|
|
484
|
+
"equalWidth": boolean;
|
|
485
|
+
/**
|
|
486
|
+
* If true, the table will take the full width of its container
|
|
487
|
+
* @default true
|
|
488
|
+
*/
|
|
489
|
+
"fullWidth": boolean;
|
|
490
|
+
}
|
|
491
|
+
interface SulaTableBody {
|
|
492
|
+
}
|
|
493
|
+
interface SulaTableCell {
|
|
494
|
+
}
|
|
495
|
+
interface SulaTableHeadCell {
|
|
496
|
+
}
|
|
497
|
+
interface SulaTableHeader {
|
|
498
|
+
}
|
|
499
|
+
interface SulaTableRow {
|
|
500
|
+
}
|
|
470
501
|
interface SulaTag {
|
|
471
502
|
/**
|
|
472
503
|
* Tag appearance
|
|
@@ -627,6 +658,27 @@ export namespace Components {
|
|
|
627
658
|
*/
|
|
628
659
|
"sulaTimelineList": SulaTimelineListItem[];
|
|
629
660
|
}
|
|
661
|
+
interface SulaTooltip {
|
|
662
|
+
/**
|
|
663
|
+
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
664
|
+
* @default false
|
|
665
|
+
*/
|
|
666
|
+
"focused": boolean;
|
|
667
|
+
/**
|
|
668
|
+
* Tooltip position relative to trigger
|
|
669
|
+
* @default SulaTooltipPosition.Top
|
|
670
|
+
*/
|
|
671
|
+
"position": SulaTooltipPosition;
|
|
672
|
+
/**
|
|
673
|
+
* Tooltip hint text — max 300 characters
|
|
674
|
+
*/
|
|
675
|
+
"text": string;
|
|
676
|
+
/**
|
|
677
|
+
* Trigger mode. - `'icon'` (default): the built-in info icon is the hover target. - `'parent'`: the icon is hidden; the component stretches to fill the parent element (which **must** have `position: relative`) and the hint appears on hover of that parent.
|
|
678
|
+
* @default SulaTooltipTrigger.Icon
|
|
679
|
+
*/
|
|
680
|
+
"trigger": SulaTooltipTrigger;
|
|
681
|
+
}
|
|
630
682
|
}
|
|
631
683
|
export interface SulaBreadcrumbCustomEvent<T> extends CustomEvent<T> {
|
|
632
684
|
detail: T;
|
|
@@ -923,6 +975,42 @@ declare global {
|
|
|
923
975
|
prototype: HTMLSulaSwitchElement;
|
|
924
976
|
new (): HTMLSulaSwitchElement;
|
|
925
977
|
};
|
|
978
|
+
interface HTMLSulaTableElement extends Components.SulaTable, HTMLStencilElement {
|
|
979
|
+
}
|
|
980
|
+
var HTMLSulaTableElement: {
|
|
981
|
+
prototype: HTMLSulaTableElement;
|
|
982
|
+
new (): HTMLSulaTableElement;
|
|
983
|
+
};
|
|
984
|
+
interface HTMLSulaTableBodyElement extends Components.SulaTableBody, HTMLStencilElement {
|
|
985
|
+
}
|
|
986
|
+
var HTMLSulaTableBodyElement: {
|
|
987
|
+
prototype: HTMLSulaTableBodyElement;
|
|
988
|
+
new (): HTMLSulaTableBodyElement;
|
|
989
|
+
};
|
|
990
|
+
interface HTMLSulaTableCellElement extends Components.SulaTableCell, HTMLStencilElement {
|
|
991
|
+
}
|
|
992
|
+
var HTMLSulaTableCellElement: {
|
|
993
|
+
prototype: HTMLSulaTableCellElement;
|
|
994
|
+
new (): HTMLSulaTableCellElement;
|
|
995
|
+
};
|
|
996
|
+
interface HTMLSulaTableHeadCellElement extends Components.SulaTableHeadCell, HTMLStencilElement {
|
|
997
|
+
}
|
|
998
|
+
var HTMLSulaTableHeadCellElement: {
|
|
999
|
+
prototype: HTMLSulaTableHeadCellElement;
|
|
1000
|
+
new (): HTMLSulaTableHeadCellElement;
|
|
1001
|
+
};
|
|
1002
|
+
interface HTMLSulaTableHeaderElement extends Components.SulaTableHeader, HTMLStencilElement {
|
|
1003
|
+
}
|
|
1004
|
+
var HTMLSulaTableHeaderElement: {
|
|
1005
|
+
prototype: HTMLSulaTableHeaderElement;
|
|
1006
|
+
new (): HTMLSulaTableHeaderElement;
|
|
1007
|
+
};
|
|
1008
|
+
interface HTMLSulaTableRowElement extends Components.SulaTableRow, HTMLStencilElement {
|
|
1009
|
+
}
|
|
1010
|
+
var HTMLSulaTableRowElement: {
|
|
1011
|
+
prototype: HTMLSulaTableRowElement;
|
|
1012
|
+
new (): HTMLSulaTableRowElement;
|
|
1013
|
+
};
|
|
926
1014
|
interface HTMLSulaTagElement extends Components.SulaTag, HTMLStencilElement {
|
|
927
1015
|
}
|
|
928
1016
|
var HTMLSulaTagElement: {
|
|
@@ -1002,6 +1090,12 @@ declare global {
|
|
|
1002
1090
|
prototype: HTMLSulaTimelineListElement;
|
|
1003
1091
|
new (): HTMLSulaTimelineListElement;
|
|
1004
1092
|
};
|
|
1093
|
+
interface HTMLSulaTooltipElement extends Components.SulaTooltip, HTMLStencilElement {
|
|
1094
|
+
}
|
|
1095
|
+
var HTMLSulaTooltipElement: {
|
|
1096
|
+
prototype: HTMLSulaTooltipElement;
|
|
1097
|
+
new (): HTMLSulaTooltipElement;
|
|
1098
|
+
};
|
|
1005
1099
|
interface HTMLElementTagNameMap {
|
|
1006
1100
|
"sula-avatar": HTMLSulaAvatarElement;
|
|
1007
1101
|
"sula-badge": HTMLSulaBadgeElement;
|
|
@@ -1019,11 +1113,18 @@ declare global {
|
|
|
1019
1113
|
"sula-search-bar": HTMLSulaSearchBarElement;
|
|
1020
1114
|
"sula-segmented-control": HTMLSulaSegmentedControlElement;
|
|
1021
1115
|
"sula-switch": HTMLSulaSwitchElement;
|
|
1116
|
+
"sula-table": HTMLSulaTableElement;
|
|
1117
|
+
"sula-table-body": HTMLSulaTableBodyElement;
|
|
1118
|
+
"sula-table-cell": HTMLSulaTableCellElement;
|
|
1119
|
+
"sula-table-head-cell": HTMLSulaTableHeadCellElement;
|
|
1120
|
+
"sula-table-header": HTMLSulaTableHeaderElement;
|
|
1121
|
+
"sula-table-row": HTMLSulaTableRowElement;
|
|
1022
1122
|
"sula-tag": HTMLSulaTagElement;
|
|
1023
1123
|
"sula-textarea": HTMLSulaTextareaElement;
|
|
1024
1124
|
"sula-textfield": HTMLSulaTextfieldElement;
|
|
1025
1125
|
"sula-tiles": HTMLSulaTilesElement;
|
|
1026
1126
|
"sula-timeline-list": HTMLSulaTimelineListElement;
|
|
1127
|
+
"sula-tooltip": HTMLSulaTooltipElement;
|
|
1027
1128
|
}
|
|
1028
1129
|
}
|
|
1029
1130
|
declare namespace LocalJSX {
|
|
@@ -1563,6 +1664,33 @@ declare namespace LocalJSX {
|
|
|
1563
1664
|
*/
|
|
1564
1665
|
"type"?: SulaSwitchType;
|
|
1565
1666
|
}
|
|
1667
|
+
interface SulaTable {
|
|
1668
|
+
/**
|
|
1669
|
+
* Density of the table
|
|
1670
|
+
* @default SulaTableDensity.Default
|
|
1671
|
+
*/
|
|
1672
|
+
"density"?: SulaTableDensity;
|
|
1673
|
+
/**
|
|
1674
|
+
* If true, all columns will have equal width
|
|
1675
|
+
* @default true
|
|
1676
|
+
*/
|
|
1677
|
+
"equalWidth"?: boolean;
|
|
1678
|
+
/**
|
|
1679
|
+
* If true, the table will take the full width of its container
|
|
1680
|
+
* @default true
|
|
1681
|
+
*/
|
|
1682
|
+
"fullWidth"?: boolean;
|
|
1683
|
+
}
|
|
1684
|
+
interface SulaTableBody {
|
|
1685
|
+
}
|
|
1686
|
+
interface SulaTableCell {
|
|
1687
|
+
}
|
|
1688
|
+
interface SulaTableHeadCell {
|
|
1689
|
+
}
|
|
1690
|
+
interface SulaTableHeader {
|
|
1691
|
+
}
|
|
1692
|
+
interface SulaTableRow {
|
|
1693
|
+
}
|
|
1566
1694
|
interface SulaTag {
|
|
1567
1695
|
/**
|
|
1568
1696
|
* Tag appearance
|
|
@@ -1760,6 +1888,27 @@ declare namespace LocalJSX {
|
|
|
1760
1888
|
*/
|
|
1761
1889
|
"sulaTimelineList"?: SulaTimelineListItem[];
|
|
1762
1890
|
}
|
|
1891
|
+
interface SulaTooltip {
|
|
1892
|
+
/**
|
|
1893
|
+
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
1894
|
+
* @default false
|
|
1895
|
+
*/
|
|
1896
|
+
"focused"?: boolean;
|
|
1897
|
+
/**
|
|
1898
|
+
* Tooltip position relative to trigger
|
|
1899
|
+
* @default SulaTooltipPosition.Top
|
|
1900
|
+
*/
|
|
1901
|
+
"position"?: SulaTooltipPosition;
|
|
1902
|
+
/**
|
|
1903
|
+
* Tooltip hint text — max 300 characters
|
|
1904
|
+
*/
|
|
1905
|
+
"text"?: string;
|
|
1906
|
+
/**
|
|
1907
|
+
* Trigger mode. - `'icon'` (default): the built-in info icon is the hover target. - `'parent'`: the icon is hidden; the component stretches to fill the parent element (which **must** have `position: relative`) and the hint appears on hover of that parent.
|
|
1908
|
+
* @default SulaTooltipTrigger.Icon
|
|
1909
|
+
*/
|
|
1910
|
+
"trigger"?: SulaTooltipTrigger;
|
|
1911
|
+
}
|
|
1763
1912
|
interface IntrinsicElements {
|
|
1764
1913
|
"sula-avatar": SulaAvatar;
|
|
1765
1914
|
"sula-badge": SulaBadge;
|
|
@@ -1777,11 +1926,18 @@ declare namespace LocalJSX {
|
|
|
1777
1926
|
"sula-search-bar": SulaSearchBar;
|
|
1778
1927
|
"sula-segmented-control": SulaSegmentedControl;
|
|
1779
1928
|
"sula-switch": SulaSwitch;
|
|
1929
|
+
"sula-table": SulaTable;
|
|
1930
|
+
"sula-table-body": SulaTableBody;
|
|
1931
|
+
"sula-table-cell": SulaTableCell;
|
|
1932
|
+
"sula-table-head-cell": SulaTableHeadCell;
|
|
1933
|
+
"sula-table-header": SulaTableHeader;
|
|
1934
|
+
"sula-table-row": SulaTableRow;
|
|
1780
1935
|
"sula-tag": SulaTag;
|
|
1781
1936
|
"sula-textarea": SulaTextarea;
|
|
1782
1937
|
"sula-textfield": SulaTextfield;
|
|
1783
1938
|
"sula-tiles": SulaTiles;
|
|
1784
1939
|
"sula-timeline-list": SulaTimelineList;
|
|
1940
|
+
"sula-tooltip": SulaTooltip;
|
|
1785
1941
|
}
|
|
1786
1942
|
}
|
|
1787
1943
|
export { LocalJSX as JSX };
|
|
@@ -1804,11 +1960,18 @@ declare module "@stencil/core" {
|
|
|
1804
1960
|
"sula-search-bar": LocalJSX.SulaSearchBar & JSXBase.HTMLAttributes<HTMLSulaSearchBarElement>;
|
|
1805
1961
|
"sula-segmented-control": LocalJSX.SulaSegmentedControl & JSXBase.HTMLAttributes<HTMLSulaSegmentedControlElement>;
|
|
1806
1962
|
"sula-switch": LocalJSX.SulaSwitch & JSXBase.HTMLAttributes<HTMLSulaSwitchElement>;
|
|
1963
|
+
"sula-table": LocalJSX.SulaTable & JSXBase.HTMLAttributes<HTMLSulaTableElement>;
|
|
1964
|
+
"sula-table-body": LocalJSX.SulaTableBody & JSXBase.HTMLAttributes<HTMLSulaTableBodyElement>;
|
|
1965
|
+
"sula-table-cell": LocalJSX.SulaTableCell & JSXBase.HTMLAttributes<HTMLSulaTableCellElement>;
|
|
1966
|
+
"sula-table-head-cell": LocalJSX.SulaTableHeadCell & JSXBase.HTMLAttributes<HTMLSulaTableHeadCellElement>;
|
|
1967
|
+
"sula-table-header": LocalJSX.SulaTableHeader & JSXBase.HTMLAttributes<HTMLSulaTableHeaderElement>;
|
|
1968
|
+
"sula-table-row": LocalJSX.SulaTableRow & JSXBase.HTMLAttributes<HTMLSulaTableRowElement>;
|
|
1807
1969
|
"sula-tag": LocalJSX.SulaTag & JSXBase.HTMLAttributes<HTMLSulaTagElement>;
|
|
1808
1970
|
"sula-textarea": LocalJSX.SulaTextarea & JSXBase.HTMLAttributes<HTMLSulaTextareaElement>;
|
|
1809
1971
|
"sula-textfield": LocalJSX.SulaTextfield & JSXBase.HTMLAttributes<HTMLSulaTextfieldElement>;
|
|
1810
1972
|
"sula-tiles": LocalJSX.SulaTiles & JSXBase.HTMLAttributes<HTMLSulaTilesElement>;
|
|
1811
1973
|
"sula-timeline-list": LocalJSX.SulaTimelineList & JSXBase.HTMLAttributes<HTMLSulaTimelineListElement>;
|
|
1974
|
+
"sula-tooltip": LocalJSX.SulaTooltip & JSXBase.HTMLAttributes<HTMLSulaTooltipElement>;
|
|
1812
1975
|
}
|
|
1813
1976
|
}
|
|
1814
1977
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const replaceHostWithRenderedElement: (host: HTMLElement, selector: string) => void;
|