@sula-tech/webcomponents 0.15.0 → 0.17.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_22.cjs.entry.js → sula-avatar_29.cjs.entry.js} +244 -25
- package/dist/cjs/sula-avatar_29.cjs.entry.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/sula-avatar/sula-avatar.css +1 -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-toggle/model/sula-toggle.model.js +2 -0
- package/dist/collection/components/sula-toggle/model/sula-toggle.model.js.map +1 -0
- package/dist/collection/components/sula-toggle/sula-toggle.css +1 -0
- package/dist/collection/components/sula-toggle/sula-toggle.js +150 -0
- package/dist/collection/components/sula-toggle/sula-toggle.js.map +1 -0
- package/dist/collection/components/sula-toggle/sula-toggle.stories.js +189 -0
- package/dist/collection/components/sula-toggle/sula-toggle.stories.js.map +1 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.js +1 -1
- package/dist/collection/index.js.map +1 -1
- 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-CQ1I0UIz.js +12 -0
- package/dist/components/p-CQ1I0UIz.js.map +1 -0
- package/dist/components/{p-BESq0oqe.js → p-CXwxPt-3.js} +3 -3
- package/dist/components/{p-BESq0oqe.js.map → p-CXwxPt-3.js.map} +1 -1
- package/dist/components/{p-BznR9x_k.js → p-DR7vhr0W.js} +3 -3
- package/dist/components/{p-BznR9x_k.js.map → p-DR7vhr0W.js.map} +1 -1
- package/dist/components/p-DrIWCpI3.js +28 -0
- package/dist/components/p-DrIWCpI3.js.map +1 -0
- 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 +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-toggle.d.ts +11 -0
- package/dist/components/sula-toggle.js +83 -0
- package/dist/components/sula-toggle.js.map +1 -0
- package/dist/components/sula-tooltip.js +2 -2
- 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_22.entry.js → sula-avatar_29.entry.js} +238 -26
- package/dist/esm/sula-avatar_29.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-toggle/model/sula-toggle.model.d.ts +3 -0
- package/dist/types/components/sula-toggle/sula-toggle.d.ts +27 -0
- package/dist/types/components/sula-toggle/sula-toggle.stories.d.ts +75 -0
- package/dist/types/components.d.ts +175 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/replace-host-with-rendered-element.d.ts +1 -0
- package/dist/webcomponents/{p-6dc2ae91.entry.js → p-2956027f.entry.js} +1751 -1465
- package/dist/webcomponents/p-2956027f.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 +12 -4
- package/package.json +1 -1
- package/dist/cjs/index-C19aFtyq.js.map +0 -1
- package/dist/cjs/sula-avatar_22.cjs.entry.js.map +0 -1
- package/dist/esm/index-CwIBTB8E.js.map +0 -1
- package/dist/esm/sula-avatar_22.entry.js.map +0 -1
- package/dist/webcomponents/p-6dc2ae91.entry.js.map +0 -1
- package/dist/webcomponents/p-CwIBTB8E.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_29",[[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-toggle",{"selected":[1028],"buttonDisabled":[1028,"button-disabled"],"icon":[1]}],[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,27 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { SulaToggleEvent } from './model/sula-toggle.model';
|
|
3
|
+
export declare class SulaToggle {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the favorite is selected (filled heart)
|
|
6
|
+
*/
|
|
7
|
+
selected: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the button is disabled
|
|
10
|
+
*/
|
|
11
|
+
buttonDisabled: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Icon name (Phosphor Icons) without the prefix.
|
|
14
|
+
* @default 'heart'
|
|
15
|
+
*/
|
|
16
|
+
icon: string;
|
|
17
|
+
/**
|
|
18
|
+
* Event emitted when the toggle button is clicked.
|
|
19
|
+
* @note If button is disabled, the event won't be emitted
|
|
20
|
+
*/
|
|
21
|
+
toggleClicked: EventEmitter<SulaToggleEvent>;
|
|
22
|
+
private getIconName;
|
|
23
|
+
private getIconColorClass;
|
|
24
|
+
private getButtonClass;
|
|
25
|
+
handleClick: () => void;
|
|
26
|
+
render(): any;
|
|
27
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
argTypes: {
|
|
5
|
+
selected: {
|
|
6
|
+
control: string;
|
|
7
|
+
description: string;
|
|
8
|
+
table: {
|
|
9
|
+
type: {
|
|
10
|
+
summary: string;
|
|
11
|
+
};
|
|
12
|
+
defaultValue: {
|
|
13
|
+
summary: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
buttonDisabled: {
|
|
18
|
+
control: string;
|
|
19
|
+
description: string;
|
|
20
|
+
table: {
|
|
21
|
+
type: {
|
|
22
|
+
summary: string;
|
|
23
|
+
};
|
|
24
|
+
defaultValue: {
|
|
25
|
+
summary: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
icon: {
|
|
30
|
+
control: string;
|
|
31
|
+
description: string;
|
|
32
|
+
table: {
|
|
33
|
+
type: {
|
|
34
|
+
summary: string;
|
|
35
|
+
};
|
|
36
|
+
defaultValue: {
|
|
37
|
+
summary: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
toggleClicked: {
|
|
42
|
+
action: string;
|
|
43
|
+
description: string;
|
|
44
|
+
table: {
|
|
45
|
+
type: {
|
|
46
|
+
summary: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
parameters: {
|
|
52
|
+
docs: {
|
|
53
|
+
description: {
|
|
54
|
+
component: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
|
60
|
+
export declare const Default: any;
|
|
61
|
+
export declare const Selected: any;
|
|
62
|
+
export declare const Disabled: any;
|
|
63
|
+
export declare const DisabledSelected: any;
|
|
64
|
+
export declare const CustomIcon: any;
|
|
65
|
+
export declare const CustomIconBookmark: any;
|
|
66
|
+
export declare const AllStates: {
|
|
67
|
+
(): HTMLDivElement;
|
|
68
|
+
parameters: {
|
|
69
|
+
docs: {
|
|
70
|
+
description: {
|
|
71
|
+
story: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -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 { SulaToggleEvent } from "./components/sula-toggle/model/sula-toggle.model";
|
|
27
29
|
import { SulaTooltipPosition, SulaTooltipTrigger } from "./components/sula-tooltip/model/sula-tooltip.model";
|
|
28
30
|
export { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model";
|
|
29
31
|
export { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
@@ -39,11 +41,13 @@ export { SulaProgressBarAppearance, SulaProgressBarState } from "./components/su
|
|
|
39
41
|
export { SulaSearchBarStyle } from "./components/sula-search-bar/model/sula-search.bar-model";
|
|
40
42
|
export { SulaSegmentedControlColor, SulaSegmentedControlOption, SulaSegmentedControlSize, SulaSegmentedControlType } from "./components/sula-segmented-control/model/sula-segmented-control.model";
|
|
41
43
|
export { SulaSwitchType } from "./components/sula-switch/model/sula-switch.model";
|
|
44
|
+
export { SulaTableDensity } from "./components/sula-table/model/sula-table.model";
|
|
42
45
|
export { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from "./components/sula-tag/model/sula-tag.model";
|
|
43
46
|
export { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textarea.model";
|
|
44
47
|
export { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
45
48
|
export { SulaTilesSize, SulaTilesType } from "./components/sula-tiles/model/sula-tiles.model";
|
|
46
49
|
export { SulaTimelineListItem } from "./components/sula-timeline-list/model/sula-timeline-list.model";
|
|
50
|
+
export { SulaToggleEvent } from "./components/sula-toggle/model/sula-toggle.model";
|
|
47
51
|
export { SulaTooltipPosition, SulaTooltipTrigger } from "./components/sula-tooltip/model/sula-tooltip.model";
|
|
48
52
|
export namespace Components {
|
|
49
53
|
interface SulaAvatar {
|
|
@@ -469,6 +473,33 @@ export namespace Components {
|
|
|
469
473
|
*/
|
|
470
474
|
"type": SulaSwitchType;
|
|
471
475
|
}
|
|
476
|
+
interface SulaTable {
|
|
477
|
+
/**
|
|
478
|
+
* Density of the table
|
|
479
|
+
* @default SulaTableDensity.Default
|
|
480
|
+
*/
|
|
481
|
+
"density": SulaTableDensity;
|
|
482
|
+
/**
|
|
483
|
+
* If true, all columns will have equal width
|
|
484
|
+
* @default true
|
|
485
|
+
*/
|
|
486
|
+
"equalWidth": boolean;
|
|
487
|
+
/**
|
|
488
|
+
* If true, the table will take the full width of its container
|
|
489
|
+
* @default true
|
|
490
|
+
*/
|
|
491
|
+
"fullWidth": boolean;
|
|
492
|
+
}
|
|
493
|
+
interface SulaTableBody {
|
|
494
|
+
}
|
|
495
|
+
interface SulaTableCell {
|
|
496
|
+
}
|
|
497
|
+
interface SulaTableHeadCell {
|
|
498
|
+
}
|
|
499
|
+
interface SulaTableHeader {
|
|
500
|
+
}
|
|
501
|
+
interface SulaTableRow {
|
|
502
|
+
}
|
|
472
503
|
interface SulaTag {
|
|
473
504
|
/**
|
|
474
505
|
* Tag appearance
|
|
@@ -629,6 +660,23 @@ export namespace Components {
|
|
|
629
660
|
*/
|
|
630
661
|
"sulaTimelineList": SulaTimelineListItem[];
|
|
631
662
|
}
|
|
663
|
+
interface SulaToggle {
|
|
664
|
+
/**
|
|
665
|
+
* Whether the button is disabled
|
|
666
|
+
* @default false
|
|
667
|
+
*/
|
|
668
|
+
"buttonDisabled": boolean;
|
|
669
|
+
/**
|
|
670
|
+
* Icon name (Phosphor Icons) without the prefix.
|
|
671
|
+
* @default 'heart'
|
|
672
|
+
*/
|
|
673
|
+
"icon": string;
|
|
674
|
+
/**
|
|
675
|
+
* Whether the favorite is selected (filled heart)
|
|
676
|
+
* @default false
|
|
677
|
+
*/
|
|
678
|
+
"selected": boolean;
|
|
679
|
+
}
|
|
632
680
|
interface SulaTooltip {
|
|
633
681
|
/**
|
|
634
682
|
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
@@ -711,6 +759,10 @@ export interface SulaTimelineListCustomEvent<T> extends CustomEvent<T> {
|
|
|
711
759
|
detail: T;
|
|
712
760
|
target: HTMLSulaTimelineListElement;
|
|
713
761
|
}
|
|
762
|
+
export interface SulaToggleCustomEvent<T> extends CustomEvent<T> {
|
|
763
|
+
detail: T;
|
|
764
|
+
target: HTMLSulaToggleElement;
|
|
765
|
+
}
|
|
714
766
|
declare global {
|
|
715
767
|
interface HTMLSulaAvatarElement extends Components.SulaAvatar, HTMLStencilElement {
|
|
716
768
|
}
|
|
@@ -946,6 +998,42 @@ declare global {
|
|
|
946
998
|
prototype: HTMLSulaSwitchElement;
|
|
947
999
|
new (): HTMLSulaSwitchElement;
|
|
948
1000
|
};
|
|
1001
|
+
interface HTMLSulaTableElement extends Components.SulaTable, HTMLStencilElement {
|
|
1002
|
+
}
|
|
1003
|
+
var HTMLSulaTableElement: {
|
|
1004
|
+
prototype: HTMLSulaTableElement;
|
|
1005
|
+
new (): HTMLSulaTableElement;
|
|
1006
|
+
};
|
|
1007
|
+
interface HTMLSulaTableBodyElement extends Components.SulaTableBody, HTMLStencilElement {
|
|
1008
|
+
}
|
|
1009
|
+
var HTMLSulaTableBodyElement: {
|
|
1010
|
+
prototype: HTMLSulaTableBodyElement;
|
|
1011
|
+
new (): HTMLSulaTableBodyElement;
|
|
1012
|
+
};
|
|
1013
|
+
interface HTMLSulaTableCellElement extends Components.SulaTableCell, HTMLStencilElement {
|
|
1014
|
+
}
|
|
1015
|
+
var HTMLSulaTableCellElement: {
|
|
1016
|
+
prototype: HTMLSulaTableCellElement;
|
|
1017
|
+
new (): HTMLSulaTableCellElement;
|
|
1018
|
+
};
|
|
1019
|
+
interface HTMLSulaTableHeadCellElement extends Components.SulaTableHeadCell, HTMLStencilElement {
|
|
1020
|
+
}
|
|
1021
|
+
var HTMLSulaTableHeadCellElement: {
|
|
1022
|
+
prototype: HTMLSulaTableHeadCellElement;
|
|
1023
|
+
new (): HTMLSulaTableHeadCellElement;
|
|
1024
|
+
};
|
|
1025
|
+
interface HTMLSulaTableHeaderElement extends Components.SulaTableHeader, HTMLStencilElement {
|
|
1026
|
+
}
|
|
1027
|
+
var HTMLSulaTableHeaderElement: {
|
|
1028
|
+
prototype: HTMLSulaTableHeaderElement;
|
|
1029
|
+
new (): HTMLSulaTableHeaderElement;
|
|
1030
|
+
};
|
|
1031
|
+
interface HTMLSulaTableRowElement extends Components.SulaTableRow, HTMLStencilElement {
|
|
1032
|
+
}
|
|
1033
|
+
var HTMLSulaTableRowElement: {
|
|
1034
|
+
prototype: HTMLSulaTableRowElement;
|
|
1035
|
+
new (): HTMLSulaTableRowElement;
|
|
1036
|
+
};
|
|
949
1037
|
interface HTMLSulaTagElement extends Components.SulaTag, HTMLStencilElement {
|
|
950
1038
|
}
|
|
951
1039
|
var HTMLSulaTagElement: {
|
|
@@ -1025,6 +1113,23 @@ declare global {
|
|
|
1025
1113
|
prototype: HTMLSulaTimelineListElement;
|
|
1026
1114
|
new (): HTMLSulaTimelineListElement;
|
|
1027
1115
|
};
|
|
1116
|
+
interface HTMLSulaToggleElementEventMap {
|
|
1117
|
+
"toggleClicked": SulaToggleEvent;
|
|
1118
|
+
}
|
|
1119
|
+
interface HTMLSulaToggleElement extends Components.SulaToggle, HTMLStencilElement {
|
|
1120
|
+
addEventListener<K extends keyof HTMLSulaToggleElementEventMap>(type: K, listener: (this: HTMLSulaToggleElement, ev: SulaToggleCustomEvent<HTMLSulaToggleElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1121
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1122
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1123
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1124
|
+
removeEventListener<K extends keyof HTMLSulaToggleElementEventMap>(type: K, listener: (this: HTMLSulaToggleElement, ev: SulaToggleCustomEvent<HTMLSulaToggleElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1125
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1126
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1127
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1128
|
+
}
|
|
1129
|
+
var HTMLSulaToggleElement: {
|
|
1130
|
+
prototype: HTMLSulaToggleElement;
|
|
1131
|
+
new (): HTMLSulaToggleElement;
|
|
1132
|
+
};
|
|
1028
1133
|
interface HTMLSulaTooltipElement extends Components.SulaTooltip, HTMLStencilElement {
|
|
1029
1134
|
}
|
|
1030
1135
|
var HTMLSulaTooltipElement: {
|
|
@@ -1048,11 +1153,18 @@ declare global {
|
|
|
1048
1153
|
"sula-search-bar": HTMLSulaSearchBarElement;
|
|
1049
1154
|
"sula-segmented-control": HTMLSulaSegmentedControlElement;
|
|
1050
1155
|
"sula-switch": HTMLSulaSwitchElement;
|
|
1156
|
+
"sula-table": HTMLSulaTableElement;
|
|
1157
|
+
"sula-table-body": HTMLSulaTableBodyElement;
|
|
1158
|
+
"sula-table-cell": HTMLSulaTableCellElement;
|
|
1159
|
+
"sula-table-head-cell": HTMLSulaTableHeadCellElement;
|
|
1160
|
+
"sula-table-header": HTMLSulaTableHeaderElement;
|
|
1161
|
+
"sula-table-row": HTMLSulaTableRowElement;
|
|
1051
1162
|
"sula-tag": HTMLSulaTagElement;
|
|
1052
1163
|
"sula-textarea": HTMLSulaTextareaElement;
|
|
1053
1164
|
"sula-textfield": HTMLSulaTextfieldElement;
|
|
1054
1165
|
"sula-tiles": HTMLSulaTilesElement;
|
|
1055
1166
|
"sula-timeline-list": HTMLSulaTimelineListElement;
|
|
1167
|
+
"sula-toggle": HTMLSulaToggleElement;
|
|
1056
1168
|
"sula-tooltip": HTMLSulaTooltipElement;
|
|
1057
1169
|
}
|
|
1058
1170
|
}
|
|
@@ -1593,6 +1705,33 @@ declare namespace LocalJSX {
|
|
|
1593
1705
|
*/
|
|
1594
1706
|
"type"?: SulaSwitchType;
|
|
1595
1707
|
}
|
|
1708
|
+
interface SulaTable {
|
|
1709
|
+
/**
|
|
1710
|
+
* Density of the table
|
|
1711
|
+
* @default SulaTableDensity.Default
|
|
1712
|
+
*/
|
|
1713
|
+
"density"?: SulaTableDensity;
|
|
1714
|
+
/**
|
|
1715
|
+
* If true, all columns will have equal width
|
|
1716
|
+
* @default true
|
|
1717
|
+
*/
|
|
1718
|
+
"equalWidth"?: boolean;
|
|
1719
|
+
/**
|
|
1720
|
+
* If true, the table will take the full width of its container
|
|
1721
|
+
* @default true
|
|
1722
|
+
*/
|
|
1723
|
+
"fullWidth"?: boolean;
|
|
1724
|
+
}
|
|
1725
|
+
interface SulaTableBody {
|
|
1726
|
+
}
|
|
1727
|
+
interface SulaTableCell {
|
|
1728
|
+
}
|
|
1729
|
+
interface SulaTableHeadCell {
|
|
1730
|
+
}
|
|
1731
|
+
interface SulaTableHeader {
|
|
1732
|
+
}
|
|
1733
|
+
interface SulaTableRow {
|
|
1734
|
+
}
|
|
1596
1735
|
interface SulaTag {
|
|
1597
1736
|
/**
|
|
1598
1737
|
* Tag appearance
|
|
@@ -1790,6 +1929,28 @@ declare namespace LocalJSX {
|
|
|
1790
1929
|
*/
|
|
1791
1930
|
"sulaTimelineList"?: SulaTimelineListItem[];
|
|
1792
1931
|
}
|
|
1932
|
+
interface SulaToggle {
|
|
1933
|
+
/**
|
|
1934
|
+
* Whether the button is disabled
|
|
1935
|
+
* @default false
|
|
1936
|
+
*/
|
|
1937
|
+
"buttonDisabled"?: boolean;
|
|
1938
|
+
/**
|
|
1939
|
+
* Icon name (Phosphor Icons) without the prefix.
|
|
1940
|
+
* @default 'heart'
|
|
1941
|
+
*/
|
|
1942
|
+
"icon"?: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Event emitted when the toggle button is clicked.
|
|
1945
|
+
* @note If button is disabled, the event won't be emitted
|
|
1946
|
+
*/
|
|
1947
|
+
"onToggleClicked"?: (event: SulaToggleCustomEvent<SulaToggleEvent>) => void;
|
|
1948
|
+
/**
|
|
1949
|
+
* Whether the favorite is selected (filled heart)
|
|
1950
|
+
* @default false
|
|
1951
|
+
*/
|
|
1952
|
+
"selected"?: boolean;
|
|
1953
|
+
}
|
|
1793
1954
|
interface SulaTooltip {
|
|
1794
1955
|
/**
|
|
1795
1956
|
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
@@ -1828,11 +1989,18 @@ declare namespace LocalJSX {
|
|
|
1828
1989
|
"sula-search-bar": SulaSearchBar;
|
|
1829
1990
|
"sula-segmented-control": SulaSegmentedControl;
|
|
1830
1991
|
"sula-switch": SulaSwitch;
|
|
1992
|
+
"sula-table": SulaTable;
|
|
1993
|
+
"sula-table-body": SulaTableBody;
|
|
1994
|
+
"sula-table-cell": SulaTableCell;
|
|
1995
|
+
"sula-table-head-cell": SulaTableHeadCell;
|
|
1996
|
+
"sula-table-header": SulaTableHeader;
|
|
1997
|
+
"sula-table-row": SulaTableRow;
|
|
1831
1998
|
"sula-tag": SulaTag;
|
|
1832
1999
|
"sula-textarea": SulaTextarea;
|
|
1833
2000
|
"sula-textfield": SulaTextfield;
|
|
1834
2001
|
"sula-tiles": SulaTiles;
|
|
1835
2002
|
"sula-timeline-list": SulaTimelineList;
|
|
2003
|
+
"sula-toggle": SulaToggle;
|
|
1836
2004
|
"sula-tooltip": SulaTooltip;
|
|
1837
2005
|
}
|
|
1838
2006
|
}
|
|
@@ -1856,11 +2024,18 @@ declare module "@stencil/core" {
|
|
|
1856
2024
|
"sula-search-bar": LocalJSX.SulaSearchBar & JSXBase.HTMLAttributes<HTMLSulaSearchBarElement>;
|
|
1857
2025
|
"sula-segmented-control": LocalJSX.SulaSegmentedControl & JSXBase.HTMLAttributes<HTMLSulaSegmentedControlElement>;
|
|
1858
2026
|
"sula-switch": LocalJSX.SulaSwitch & JSXBase.HTMLAttributes<HTMLSulaSwitchElement>;
|
|
2027
|
+
"sula-table": LocalJSX.SulaTable & JSXBase.HTMLAttributes<HTMLSulaTableElement>;
|
|
2028
|
+
"sula-table-body": LocalJSX.SulaTableBody & JSXBase.HTMLAttributes<HTMLSulaTableBodyElement>;
|
|
2029
|
+
"sula-table-cell": LocalJSX.SulaTableCell & JSXBase.HTMLAttributes<HTMLSulaTableCellElement>;
|
|
2030
|
+
"sula-table-head-cell": LocalJSX.SulaTableHeadCell & JSXBase.HTMLAttributes<HTMLSulaTableHeadCellElement>;
|
|
2031
|
+
"sula-table-header": LocalJSX.SulaTableHeader & JSXBase.HTMLAttributes<HTMLSulaTableHeaderElement>;
|
|
2032
|
+
"sula-table-row": LocalJSX.SulaTableRow & JSXBase.HTMLAttributes<HTMLSulaTableRowElement>;
|
|
1859
2033
|
"sula-tag": LocalJSX.SulaTag & JSXBase.HTMLAttributes<HTMLSulaTagElement>;
|
|
1860
2034
|
"sula-textarea": LocalJSX.SulaTextarea & JSXBase.HTMLAttributes<HTMLSulaTextareaElement>;
|
|
1861
2035
|
"sula-textfield": LocalJSX.SulaTextfield & JSXBase.HTMLAttributes<HTMLSulaTextfieldElement>;
|
|
1862
2036
|
"sula-tiles": LocalJSX.SulaTiles & JSXBase.HTMLAttributes<HTMLSulaTilesElement>;
|
|
1863
2037
|
"sula-timeline-list": LocalJSX.SulaTimelineList & JSXBase.HTMLAttributes<HTMLSulaTimelineListElement>;
|
|
2038
|
+
"sula-toggle": LocalJSX.SulaToggle & JSXBase.HTMLAttributes<HTMLSulaToggleElement>;
|
|
1864
2039
|
"sula-tooltip": LocalJSX.SulaTooltip & JSXBase.HTMLAttributes<HTMLSulaTooltipElement>;
|
|
1865
2040
|
}
|
|
1866
2041
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const replaceHostWithRenderedElement: (host: HTMLElement, selector: string) => void;
|