wj-elements 0.1.137 → 0.1.139
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/light.css +3 -2
- package/dist/localize.js +6 -4
- package/dist/localize.js.map +1 -1
- package/dist/packages/bundle.d.ts +0 -0
- package/dist/packages/index.d.ts +102 -0
- package/dist/packages/localize/localize.d.ts +17 -0
- package/dist/packages/translations/en-gb.d.ts +13 -0
- package/dist/packages/translations/sk-sk.d.ts +13 -0
- package/dist/packages/utils/animations.d.ts +2 -0
- package/dist/packages/utils/date.d.ts +1 -0
- package/dist/packages/utils/element-utils.d.ts +46 -0
- package/dist/packages/utils/event.d.ts +67 -0
- package/dist/packages/utils/localize.d.ts +4 -0
- package/dist/packages/utils/permissions-api.d.ts +34 -0
- package/dist/packages/utils/utils.d.ts +1 -0
- package/dist/packages/utils/wje-import-firefox.d.ts +0 -0
- package/dist/packages/utils/wje-import.d.ts +0 -0
- package/dist/packages/wje-accordion/accordion.d.ts +2 -0
- package/dist/packages/wje-accordion/accordion.element.d.ts +72 -0
- package/dist/packages/wje-accordion-item/accordion-item.d.ts +2 -0
- package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +40 -0
- package/dist/packages/wje-animation/animation.d.ts +2 -0
- package/dist/packages/wje-animation/animation.element.d.ts +153 -0
- package/dist/packages/wje-animation/animation.test.d.ts +1 -0
- package/dist/packages/wje-aside/aside.d.ts +2 -0
- package/dist/packages/wje-aside/aside.element.d.ts +31 -0
- package/dist/packages/wje-avatar/avatar.d.ts +2 -0
- package/dist/packages/wje-avatar/avatar.element.d.ts +37 -0
- package/dist/packages/wje-avatar/service/service.d.ts +40 -0
- package/dist/packages/wje-badge/badge.d.ts +2 -0
- package/dist/packages/wje-badge/badge.element.d.ts +35 -0
- package/dist/packages/wje-badge/badge.test.d.ts +1 -0
- package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +2 -0
- package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +80 -0
- package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +2 -0
- package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +97 -0
- package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/dist/packages/wje-button/button.d.ts +2 -0
- package/dist/packages/wje-button/button.element.d.ts +173 -0
- package/dist/packages/wje-button/button.test.d.ts +1 -0
- package/dist/packages/wje-button-group/button-group.d.ts +2 -0
- package/dist/packages/wje-button-group/button-group.element.d.ts +39 -0
- package/dist/packages/wje-card/card.d.ts +2 -0
- package/dist/packages/wje-card/card.element.d.ts +29 -0
- package/dist/packages/wje-card-content/card-content.d.ts +2 -0
- package/dist/packages/wje-card-content/card-content.element.d.ts +22 -0
- package/dist/packages/wje-card-controls/card-controls.d.ts +2 -0
- package/dist/packages/wje-card-controls/card-controls.element.d.ts +23 -0
- package/dist/packages/wje-card-header/card-header.d.ts +2 -0
- package/dist/packages/wje-card-header/card-header.element.d.ts +22 -0
- package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +2 -0
- package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +30 -0
- package/dist/packages/wje-card-title/card-title.d.ts +2 -0
- package/dist/packages/wje-card-title/card-title.element.d.ts +32 -0
- package/dist/packages/wje-carousel/carousel.d.ts +2 -0
- package/dist/packages/wje-carousel/carousel.element.d.ts +146 -0
- package/dist/packages/wje-carousel-item/carousel-item.d.ts +2 -0
- package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +38 -0
- package/dist/packages/wje-checkbox/checkbox.d.ts +2 -0
- package/dist/packages/wje-checkbox/checkbox.element.d.ts +171 -0
- package/dist/packages/wje-chip/chip.d.ts +2 -0
- package/dist/packages/wje-chip/chip.element.d.ts +29 -0
- package/dist/packages/wje-col/col.d.ts +2 -0
- package/dist/packages/wje-col/col.element.d.ts +16 -0
- package/dist/packages/wje-color-picker/color-picker.d.ts +2 -0
- package/dist/packages/wje-color-picker/color-picker.element.d.ts +187 -0
- package/dist/packages/wje-container/container.d.ts +2 -0
- package/dist/packages/wje-container/container.element.d.ts +31 -0
- package/dist/packages/wje-copy-button/copy-button.d.ts +2 -0
- package/dist/packages/wje-copy-button/copy-button.element.d.ts +89 -0
- package/dist/packages/wje-copy-button/service/service.d.ts +12 -0
- package/dist/packages/wje-dialog/dialog.d.ts +2 -0
- package/dist/packages/wje-dialog/dialog.element.d.ts +116 -0
- package/dist/packages/wje-divider/divider.d.ts +2 -0
- package/dist/packages/wje-divider/divider.element.d.ts +32 -0
- package/dist/packages/wje-dropdown/dropdown.d.ts +2 -0
- package/dist/packages/wje-dropdown/dropdown.element.d.ts +85 -0
- package/dist/packages/wje-element/element.d.ts +313 -0
- package/dist/packages/wje-element/service/universal-service.d.ts +18 -0
- package/dist/packages/wje-file-upload/file-upload.d.ts +2 -0
- package/dist/packages/wje-file-upload/file-upload.element.d.ts +191 -0
- package/dist/packages/wje-file-upload/service/service.d.ts +70 -0
- package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +2 -0
- package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +66 -0
- package/dist/packages/wje-footer/footer.d.ts +2 -0
- package/dist/packages/wje-footer/footer.element.d.ts +28 -0
- package/dist/packages/wje-form/form.d.ts +2 -0
- package/dist/packages/wje-form/form.element.d.ts +28 -0
- package/dist/packages/wje-format-digital/format-digital.d.ts +2 -0
- package/dist/packages/wje-format-digital/format-digital.element.d.ts +87 -0
- package/dist/packages/wje-format-digital/format-digital.test.d.ts +1 -0
- package/dist/packages/wje-grid/grid.d.ts +2 -0
- package/dist/packages/wje-grid/grid.element.d.ts +26 -0
- package/dist/packages/wje-header/header.d.ts +2 -0
- package/dist/packages/wje-header/header.element.d.ts +35 -0
- package/dist/packages/wje-icon/icon.d.ts +2 -0
- package/dist/packages/wje-icon/icon.element.d.ts +40 -0
- package/dist/packages/wje-icon/service/service.d.ts +11 -0
- package/dist/packages/wje-icon-picker/icon-picker.d.ts +2 -0
- package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +197 -0
- package/dist/packages/wje-img/img.d.ts +2 -0
- package/dist/packages/wje-img/img.element.d.ts +36 -0
- package/dist/packages/wje-img-comparer/img-comparer.d.ts +2 -0
- package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +60 -0
- package/dist/packages/wje-img-comparer/service/service.d.ts +1 -0
- package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +2 -0
- package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +134 -0
- package/dist/packages/wje-input/input.d.ts +2 -0
- package/dist/packages/wje-input/input.element.d.ts +204 -0
- package/dist/packages/wje-input-file/input-file.d.ts +2 -0
- package/dist/packages/wje-input-file/input-file.element.d.ts +50 -0
- package/dist/packages/wje-item/item.d.ts +2 -0
- package/dist/packages/wje-item/item.element.d.ts +68 -0
- package/dist/packages/wje-kanban/kanban.d.ts +2 -0
- package/dist/packages/wje-kanban/kanban.element.d.ts +183 -0
- package/dist/packages/wje-label/label.d.ts +2 -0
- package/dist/packages/wje-label/label.element.d.ts +34 -0
- package/dist/packages/wje-list/list.d.ts +2 -0
- package/dist/packages/wje-list/list.element.d.ts +31 -0
- package/dist/packages/wje-main/main.d.ts +2 -0
- package/dist/packages/wje-main/main.element.d.ts +30 -0
- package/dist/packages/wje-masonry/masonry.d.ts +2 -0
- package/dist/packages/wje-masonry/masonry.element.d.ts +114 -0
- package/dist/packages/wje-masonry/service/service.d.ts +32 -0
- package/dist/packages/wje-menu/menu.d.ts +2 -0
- package/dist/packages/wje-menu/menu.element.d.ts +47 -0
- package/dist/packages/wje-menu-button/menu-button.d.ts +2 -0
- package/dist/packages/wje-menu-button/menu-button.element.d.ts +34 -0
- package/dist/packages/wje-menu-item/menu-item.d.ts +2 -0
- package/dist/packages/wje-menu-item/menu-item.element.d.ts +139 -0
- package/dist/packages/wje-menu-label/menu-label.d.ts +2 -0
- package/dist/packages/wje-menu-label/menu-label.element.d.ts +39 -0
- package/dist/packages/wje-option/option.d.ts +2 -0
- package/dist/packages/wje-option/option.element.d.ts +59 -0
- package/dist/packages/wje-options/options.d.ts +2 -0
- package/dist/packages/wje-options/options.element.d.ts +183 -0
- package/dist/packages/wje-orgchart/orgchart.d.ts +2 -0
- package/dist/packages/wje-orgchart/orgchart.element.d.ts +24 -0
- package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +2 -0
- package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +28 -0
- package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +2 -0
- package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +49 -0
- package/dist/packages/wje-panel/panel.d.ts +2 -0
- package/dist/packages/wje-panel/panel.element.d.ts +34 -0
- package/dist/packages/wje-popup/popup.d.ts +2 -0
- package/dist/packages/wje-popup/popup.element.d.ts +93 -0
- package/dist/packages/wje-progress-bar/progress-bar.d.ts +2 -0
- package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +96 -0
- package/dist/packages/wje-qr-code/qr-code.d.ts +2 -0
- package/dist/packages/wje-qr-code/qr-code.element.d.ts +33 -0
- package/dist/packages/wje-radio/radio.d.ts +2 -0
- package/dist/packages/wje-radio/radio.element.d.ts +53 -0
- package/dist/packages/wje-radio-group/radio-group.d.ts +2 -0
- package/dist/packages/wje-radio-group/radio-group.element.d.ts +137 -0
- package/dist/packages/wje-rate/rate.d.ts +2 -0
- package/dist/packages/wje-rate/rate.element.d.ts +156 -0
- package/dist/packages/wje-relative-time/relative-time.d.ts +2 -0
- package/dist/packages/wje-relative-time/relative-time.element.d.ts +55 -0
- package/dist/packages/wje-relative-time/relative-time.test.d.ts +1 -0
- package/dist/packages/wje-reorder/reorder.d.ts +2 -0
- package/dist/packages/wje-reorder/reorder.element.d.ts +119 -0
- package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +2 -0
- package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +23 -0
- package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +2 -0
- package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +75 -0
- package/dist/packages/wje-reorder-item/reorder-item.d.ts +2 -0
- package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +24 -0
- package/dist/packages/wje-route/route.d.ts +2 -0
- package/dist/packages/wje-route/route.element.d.ts +22 -0
- package/dist/packages/wje-router/router.d.ts +2 -0
- package/dist/packages/wje-router/router.element.d.ts +39 -0
- package/dist/packages/wje-router-link/router-link.d.ts +2 -0
- package/dist/packages/wje-router-link/router-link.element.d.ts +31 -0
- package/dist/packages/wje-router-outlet/router-outlet.d.ts +2 -0
- package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +15 -0
- package/dist/packages/wje-row/row.d.ts +2 -0
- package/dist/packages/wje-row/row.element.d.ts +23 -0
- package/dist/packages/wje-select/select.d.ts +2 -0
- package/dist/packages/wje-select/select.element.d.ts +315 -0
- package/dist/packages/wje-slider/slider.d.ts +2 -0
- package/dist/packages/wje-slider/slider.element.d.ts +103 -0
- package/dist/packages/wje-split-view/service/service.d.ts +1 -0
- package/dist/packages/wje-split-view/split-view.d.ts +2 -0
- package/dist/packages/wje-split-view/split-view.element.d.ts +66 -0
- package/dist/packages/wje-status/status.d.ts +2 -0
- package/dist/packages/wje-status/status.element.d.ts +26 -0
- package/dist/packages/wje-step/step.d.ts +2 -0
- package/dist/packages/wje-step/step.element.d.ts +23 -0
- package/dist/packages/wje-stepper/stepper.d.ts +2 -0
- package/dist/packages/wje-stepper/stepper.element.d.ts +78 -0
- package/dist/packages/wje-store/default-store-actions.d.ts +25 -0
- package/dist/packages/wje-store/pubsub.d.ts +21 -0
- package/dist/packages/wje-store/store.d.ts +153 -0
- package/dist/packages/wje-tab/tab.d.ts +2 -0
- package/dist/packages/wje-tab/tab.element.d.ts +41 -0
- package/dist/packages/wje-tab-group/tab-group.d.ts +2 -0
- package/dist/packages/wje-tab-group/tab-group.element.d.ts +67 -0
- package/dist/packages/wje-tab-panel/tab-panel.d.ts +2 -0
- package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +23 -0
- package/dist/packages/wje-textarea/textarea.d.ts +2 -0
- package/dist/packages/wje-textarea/textarea.element.d.ts +176 -0
- package/dist/packages/wje-thumbnail/thumbnail.d.ts +2 -0
- package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +31 -0
- package/dist/packages/wje-timeline/timeline.d.ts +2 -0
- package/dist/packages/wje-timeline/timeline.element.d.ts +25 -0
- package/dist/packages/wje-timeline-item/timeline-item.d.ts +2 -0
- package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +27 -0
- package/dist/packages/wje-toast/toast.d.ts +2 -0
- package/dist/packages/wje-toast/toast.element.d.ts +173 -0
- package/dist/packages/wje-toast/toast.test.d.ts +1 -0
- package/dist/packages/wje-toggle/toggle.d.ts +2 -0
- package/dist/packages/wje-toggle/toggle.element.d.ts +65 -0
- package/dist/packages/wje-toolbar/toolbar.d.ts +2 -0
- package/dist/packages/wje-toolbar/toolbar.element.d.ts +39 -0
- package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +2 -0
- package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +35 -0
- package/dist/packages/wje-tooltip/tooltip.d.ts +2 -0
- package/dist/packages/wje-tooltip/tooltip.element.d.ts +71 -0
- package/dist/packages/wje-tree/tree.d.ts +2 -0
- package/dist/packages/wje-tree/tree.element.d.ts +104 -0
- package/dist/packages/wje-tree-item/tree-item.d.ts +2 -0
- package/dist/packages/wje-tree-item/tree-item.element.d.ts +155 -0
- package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +2 -0
- package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +29 -0
- package/dist/wje-animation.js +2 -4
- package/dist/wje-animation.js.map +1 -1
- package/dist/wje-file-upload-item.js +6 -4
- package/dist/wje-file-upload-item.js.map +1 -1
- package/dist/wje-master.js +218 -58
- package/dist/wje-master.js.map +1 -1
- package/dist/wje-textarea.js +4 -1
- package/dist/wje-textarea.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary This class represents an Animation element, extending the WJElement class.
|
|
4
|
+
* @documentation https://elements.webjet.sk/components/animation
|
|
5
|
+
* @status stable
|
|
6
|
+
* @augments WJElement
|
|
7
|
+
* @slot - The animation main content.
|
|
8
|
+
* @cssproperty --size - The size of the avatar.
|
|
9
|
+
* @tag wje-animation
|
|
10
|
+
*/
|
|
11
|
+
export default class Animation extends WJElement {
|
|
12
|
+
/**
|
|
13
|
+
* Getter for the CSS stylesheet.
|
|
14
|
+
* @returns {object} The styles for the Animation element.
|
|
15
|
+
*/
|
|
16
|
+
static get cssStyleSheet(): object;
|
|
17
|
+
/**
|
|
18
|
+
* Getter for the observed attributes.
|
|
19
|
+
* @returns {Array} An array containing the name of the observed attribute.
|
|
20
|
+
*/
|
|
21
|
+
static get observedAttributes(): any[];
|
|
22
|
+
_animations: any[];
|
|
23
|
+
/**
|
|
24
|
+
* Setter for the name attribute.
|
|
25
|
+
* @param value
|
|
26
|
+
*/
|
|
27
|
+
set name(value: string);
|
|
28
|
+
/**
|
|
29
|
+
* Getter for the name attribute.
|
|
30
|
+
* @returns {string}
|
|
31
|
+
*/
|
|
32
|
+
get name(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Setter for the name attribute.
|
|
35
|
+
* @param value
|
|
36
|
+
*/
|
|
37
|
+
set duration(value: number);
|
|
38
|
+
/**
|
|
39
|
+
* Getter for the name attribute.
|
|
40
|
+
* @returns {number}
|
|
41
|
+
*/
|
|
42
|
+
get duration(): number;
|
|
43
|
+
/**
|
|
44
|
+
* Setter for the name attribute.
|
|
45
|
+
* @param value
|
|
46
|
+
*/
|
|
47
|
+
set delay(value: number);
|
|
48
|
+
/**
|
|
49
|
+
* Getter for the name attribute.
|
|
50
|
+
* @returns {number}
|
|
51
|
+
*/
|
|
52
|
+
get delay(): number;
|
|
53
|
+
/**
|
|
54
|
+
* Setter for the name attribute.
|
|
55
|
+
* @param value
|
|
56
|
+
*/
|
|
57
|
+
set endDelay(value: number);
|
|
58
|
+
/**
|
|
59
|
+
* Getter for the name attribute.
|
|
60
|
+
* @returns {number}
|
|
61
|
+
*/
|
|
62
|
+
get endDelay(): number;
|
|
63
|
+
/**
|
|
64
|
+
* Setter for the name attribute.
|
|
65
|
+
* @param value
|
|
66
|
+
*/
|
|
67
|
+
set fill(value: string);
|
|
68
|
+
/**
|
|
69
|
+
* Getter for the name attribute.
|
|
70
|
+
* @returns {string}
|
|
71
|
+
*/
|
|
72
|
+
get fill(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Setter for the name attribute.
|
|
75
|
+
* @param value
|
|
76
|
+
*/
|
|
77
|
+
set iterations(value: string | number);
|
|
78
|
+
/**
|
|
79
|
+
* Getter for the name attribute.
|
|
80
|
+
* @returns {string|number}
|
|
81
|
+
*/
|
|
82
|
+
get iterations(): string | number;
|
|
83
|
+
/**
|
|
84
|
+
* Setter for the name attribute.
|
|
85
|
+
* @param value
|
|
86
|
+
*/
|
|
87
|
+
set iterationStart(value: number);
|
|
88
|
+
/**
|
|
89
|
+
* Getter for the name attribute.
|
|
90
|
+
* @returns {number}
|
|
91
|
+
*/
|
|
92
|
+
get iterationStart(): number;
|
|
93
|
+
/**
|
|
94
|
+
* Setter for the name attribute.
|
|
95
|
+
* @param value
|
|
96
|
+
*/
|
|
97
|
+
set direction(value: string);
|
|
98
|
+
/**
|
|
99
|
+
* Getter for the name attribute.
|
|
100
|
+
* @returns {string}
|
|
101
|
+
*/
|
|
102
|
+
get direction(): string;
|
|
103
|
+
/**
|
|
104
|
+
* Setter for the name attribute.
|
|
105
|
+
* @param value
|
|
106
|
+
*/
|
|
107
|
+
set easing(value: string);
|
|
108
|
+
/**
|
|
109
|
+
* Getter for the name attribute.
|
|
110
|
+
* @returns {string}
|
|
111
|
+
*/
|
|
112
|
+
get easing(): string;
|
|
113
|
+
/**
|
|
114
|
+
* Setter for the animations property.
|
|
115
|
+
* @param {Array} value The new value for the animations property.
|
|
116
|
+
*/
|
|
117
|
+
set animations(value: any[]);
|
|
118
|
+
/**
|
|
119
|
+
* Getter for the animations' property.
|
|
120
|
+
* @returns {Array} The current value of the animations' property.
|
|
121
|
+
*/
|
|
122
|
+
get animations(): any[];
|
|
123
|
+
/**
|
|
124
|
+
* Method to draw the Animation element.
|
|
125
|
+
* @returns {object} The document fragment containing the drawn element.
|
|
126
|
+
*/
|
|
127
|
+
draw(): object;
|
|
128
|
+
slotEl: HTMLSlotElement;
|
|
129
|
+
/**
|
|
130
|
+
* Method to perform actions after the Animation element is drawn.
|
|
131
|
+
* This method destroys any existing animation, fetches a new animations array,
|
|
132
|
+
* selects the appropriate animation, and applies it to the element.
|
|
133
|
+
*/
|
|
134
|
+
afterDraw(): Promise<void>;
|
|
135
|
+
animation: Animation;
|
|
136
|
+
/**
|
|
137
|
+
* Method to fetch and parse the animations array from a CSS file.
|
|
138
|
+
* @returns {Array} An array of animation definitions parsed from the CSS file.
|
|
139
|
+
*/
|
|
140
|
+
getAnimationsArray(): any[];
|
|
141
|
+
/**
|
|
142
|
+
* Method to destroy the current animation.
|
|
143
|
+
*/
|
|
144
|
+
destroyAnimation(): void;
|
|
145
|
+
/**
|
|
146
|
+
* Method to play the current animation.
|
|
147
|
+
*/
|
|
148
|
+
play(): void;
|
|
149
|
+
/**
|
|
150
|
+
* Method to cancel the current animation.
|
|
151
|
+
*/
|
|
152
|
+
cancel(): void;
|
|
153
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary This class represents an Aside element, extending the WJElement class.
|
|
4
|
+
* @documentation https://elements.webjet.sk/components/aside
|
|
5
|
+
* @status stable
|
|
6
|
+
* @augments WJElement
|
|
7
|
+
* @slot - The aside main content.
|
|
8
|
+
* @cssproperty --wje-aside-width;
|
|
9
|
+
* @cssproperty --wje-aside-top;
|
|
10
|
+
* @cssproperty --wje-aside-border-color: var(--wje-border-color);
|
|
11
|
+
* @cssproperty --wje-aside-border-width;
|
|
12
|
+
* @cssproperty --wje-aside-border-style;
|
|
13
|
+
* @tag wje-aside
|
|
14
|
+
*/
|
|
15
|
+
export default class Aside extends WJElement {
|
|
16
|
+
/**
|
|
17
|
+
* Getter for the CSS stylesheet.
|
|
18
|
+
* @returns {object} The styles for the Aside element.
|
|
19
|
+
*/
|
|
20
|
+
static get cssStyleSheet(): object;
|
|
21
|
+
/**
|
|
22
|
+
* Getter for the observed attributes.
|
|
23
|
+
* @returns {Array} An empty array as there are no observed attributes.
|
|
24
|
+
*/
|
|
25
|
+
static get observedAttributes(): any[];
|
|
26
|
+
/**
|
|
27
|
+
* Method to draw the Aside element.
|
|
28
|
+
* @returns {object} The document fragment containing the drawn element.
|
|
29
|
+
*/
|
|
30
|
+
draw(): object;
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary This class represents an Avatar element, extending the WJElement class.
|
|
4
|
+
* @documentation https://elements.webjet.sk/components/avatar
|
|
5
|
+
* @status stable
|
|
6
|
+
* @augments WJElement
|
|
7
|
+
* @slot - The avatar main content.
|
|
8
|
+
* @csspart native - The component's native wrapper.
|
|
9
|
+
* @cssproperty --wje-avatar-width;
|
|
10
|
+
* @cssproperty --wje-avatar-height;
|
|
11
|
+
* @cssproperty --wje-avatar-font-size;
|
|
12
|
+
* @cssproperty --wje-avatar-font-weight;
|
|
13
|
+
* @cssproperty --wje-avatar-color;
|
|
14
|
+
* @cssproperty --wje-avatar-background-color;
|
|
15
|
+
* @cssproperty --wje-avatar-border-radius;
|
|
16
|
+
* @cssproperty --wje-avatar-border-color;
|
|
17
|
+
* @cssproperty --wje-avatar-border-width;
|
|
18
|
+
* @cssproperty --wje-avatar-border-style;
|
|
19
|
+
* @tag wje-avatar
|
|
20
|
+
*/
|
|
21
|
+
export default class Avatar extends WJElement {
|
|
22
|
+
/**
|
|
23
|
+
* Getter for cssStyleSheet.
|
|
24
|
+
* @returns {string} styles
|
|
25
|
+
*/
|
|
26
|
+
static get cssStyleSheet(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Method to draw the avatar element and return a document fragment.
|
|
29
|
+
* @returns {object} fragment - The document fragment
|
|
30
|
+
*/
|
|
31
|
+
draw(): object;
|
|
32
|
+
/**
|
|
33
|
+
* Method to check if the avatar is an image.
|
|
34
|
+
* @returns {boolean} - True if the avatar is an image, false otherwise
|
|
35
|
+
*/
|
|
36
|
+
isImage(): boolean;
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates an HSL color value based on the input text.
|
|
3
|
+
* @param {string} text The input text to generate the HSL color.
|
|
4
|
+
* @param {number} [s] The saturation value (in percentage) for the HSL color.
|
|
5
|
+
* @param {number} [l] The lightness value (in percentage) for the HSL color.
|
|
6
|
+
* @returns {string} - The HSL color string in the format `hsl(h, s%, l%)`.
|
|
7
|
+
* @description
|
|
8
|
+
* This function computes a hash from the input text and uses it to generate
|
|
9
|
+
* a hue value. The hue is combined with the provided saturation and lightness
|
|
10
|
+
* values to create an HSL color. This can be useful for consistently assigning
|
|
11
|
+
* colors based on text input, such as for avatars or tags.
|
|
12
|
+
* @example
|
|
13
|
+
* // Returns 'hsl(180, 40%, 65%)'
|
|
14
|
+
* getHsl('example');
|
|
15
|
+
* @example
|
|
16
|
+
* // Returns 'hsl(300, 50%, 70%)'
|
|
17
|
+
* getHsl('test', 50, 70);
|
|
18
|
+
*/
|
|
19
|
+
export function getHsl(text: string, s?: number, l?: number): string;
|
|
20
|
+
/**
|
|
21
|
+
* Generates initials from a given string.
|
|
22
|
+
* @param {string} string The input string, typically a full name.
|
|
23
|
+
* @param {number} [length] The desired number of initials (default is 2).
|
|
24
|
+
* @returns {string} - The generated initials in uppercase.
|
|
25
|
+
* @description
|
|
26
|
+
* This function takes a string, splits it by spaces, and generates initials.
|
|
27
|
+
* It always includes the first character of the first word. If the input string
|
|
28
|
+
* contains more than one word and the `length` parameter is greater than 1, it
|
|
29
|
+
* also includes the first character of the last word.
|
|
30
|
+
* @example
|
|
31
|
+
* // Returns 'JD'
|
|
32
|
+
* getInitials('John Doe');
|
|
33
|
+
* @example
|
|
34
|
+
* // Returns 'J'
|
|
35
|
+
* getInitials('John');
|
|
36
|
+
* @example
|
|
37
|
+
* // Returns 'JM'
|
|
38
|
+
* getInitials('John Michael Doe', 2);
|
|
39
|
+
*/
|
|
40
|
+
export function getInitials(string: string, length?: number): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary This class represents a Badge element, extending the WJElement class.
|
|
4
|
+
* @documentation https://elements.webjet.sk/components/badge
|
|
5
|
+
* @status stable
|
|
6
|
+
* @augments WJElement
|
|
7
|
+
* @attribute {string} color - The color of the badge element. Accepts any valid string primary, secondary, success, danger, warning, info, default.
|
|
8
|
+
* @slot - The badge's main content.
|
|
9
|
+
* @csspart native - The component's native wrapper.
|
|
10
|
+
* @cssproperty [--wje-badge-border-radius=var(--wje-border-radius-pill)] - Border radius of the badge element.
|
|
11
|
+
* @tag wje-badge
|
|
12
|
+
*/
|
|
13
|
+
export default class Badge extends WJElement {
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves the CSS stylesheet for the Badge element.
|
|
16
|
+
* @static
|
|
17
|
+
* @returns {CSSStyleSheet} The CSS styles associated with the Badge.
|
|
18
|
+
*/
|
|
19
|
+
static get cssStyleSheet(): CSSStyleSheet;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the attributes to observe for changes.
|
|
22
|
+
* @static
|
|
23
|
+
* @returns {Array<string>} An array containing the names of attributes to observe.
|
|
24
|
+
* @example
|
|
25
|
+
* static get observedAttributes() {
|
|
26
|
+
* return ['color'];
|
|
27
|
+
* }
|
|
28
|
+
*/
|
|
29
|
+
static get observedAttributes(): Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates the DOM structure for the Badge element.
|
|
32
|
+
* @returns {DocumentFragment} A document fragment containing the Badge's structure.
|
|
33
|
+
*/
|
|
34
|
+
draw(): DocumentFragment;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary This class represents a Breadcrumb element, extending the WJElement class. It provides a navigational aid in user interfaces, displaying the current location within a hierarchy.
|
|
4
|
+
* @documentation https://elements.webjet.sk/components/breadcrumb
|
|
5
|
+
* @status stable
|
|
6
|
+
* @augments WJElement
|
|
7
|
+
* @slot - The main content of the breadcrumb.
|
|
8
|
+
* @slot start - Slot for content at the start of the breadcrumb.
|
|
9
|
+
* @slot end - Slot for content at the end of the breadcrumb.
|
|
10
|
+
* @slot separator - Slot for a custom separator between breadcrumb items.
|
|
11
|
+
* @csspart native - The native wrapper of the breadcrumb component.
|
|
12
|
+
* @csspart separator - The separator between breadcrumb items.
|
|
13
|
+
* @cssproperty [--wje-breadcrumb-a=var(--wje-color-contrast-8)] - The color of the breadcrumb text.
|
|
14
|
+
* @cssproperty [--wje-breadcrumb-a-hover=var(--wje-color-contrast-6)] - The color of the breadcrumb separator line.
|
|
15
|
+
* @tag wje-breadcrumb
|
|
16
|
+
*/
|
|
17
|
+
export default class Breadcrumb extends WJElement {
|
|
18
|
+
/**
|
|
19
|
+
* Get CSS stylesheet for the Breadcrumb element.
|
|
20
|
+
* @static
|
|
21
|
+
* @returns {object} styles - The CSS styles
|
|
22
|
+
*/
|
|
23
|
+
static get cssStyleSheet(): object;
|
|
24
|
+
/**
|
|
25
|
+
* Get observed attributes for the Breadcrumb element.
|
|
26
|
+
* @static
|
|
27
|
+
* @returns {Array<string>} - The observed attributes array for the Breadcrumb element.
|
|
28
|
+
*/
|
|
29
|
+
static get observedAttributes(): Array<string>;
|
|
30
|
+
_showSeparator: boolean;
|
|
31
|
+
showCollapsedIndicator: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Set show separator flag.
|
|
34
|
+
* @param {boolean} value The value to set
|
|
35
|
+
*/
|
|
36
|
+
set showSeparator(value: boolean);
|
|
37
|
+
/**
|
|
38
|
+
* Get show separator flag.
|
|
39
|
+
* @returns {boolean} showSeparator - The show separator flag
|
|
40
|
+
*/
|
|
41
|
+
get showSeparator(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Set collapsed variant.
|
|
44
|
+
* @param {string} value The value to set
|
|
45
|
+
*/
|
|
46
|
+
set collapsedVariant(value: string);
|
|
47
|
+
/**
|
|
48
|
+
* Get collapsed variant.
|
|
49
|
+
* @returns {string} The collapsed variant value in uppercase.
|
|
50
|
+
*/
|
|
51
|
+
get collapsedVariant(): string;
|
|
52
|
+
_collapsedVariant: string;
|
|
53
|
+
/**
|
|
54
|
+
* Attribute changed callback method.
|
|
55
|
+
* @returns {boolean} false - Always returns false
|
|
56
|
+
*/
|
|
57
|
+
attributeChangedCallback(name: any, oldValue: any, newValue: any): boolean;
|
|
58
|
+
active: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Draw method for the Breadcrumb element.
|
|
61
|
+
* @returns {object} fragment - The document fragment
|
|
62
|
+
*/
|
|
63
|
+
draw(): object;
|
|
64
|
+
native: HTMLAnchorElement;
|
|
65
|
+
/**
|
|
66
|
+
* Draw collapsed indicator method.
|
|
67
|
+
* @returns {object} - The collapsed indicator element.
|
|
68
|
+
*/
|
|
69
|
+
drawCollapsedIndicator(): object;
|
|
70
|
+
/**
|
|
71
|
+
* Collapse dropdown button.
|
|
72
|
+
* @returns {object} dropdown - The dropdown button.
|
|
73
|
+
*/
|
|
74
|
+
collapseDropdown(): object;
|
|
75
|
+
/**
|
|
76
|
+
* Collapse button method.
|
|
77
|
+
* @returns {object} - The button element.
|
|
78
|
+
*/
|
|
79
|
+
collapseButton(): object;
|
|
80
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary This class represents a Breadcrumbs container, extending the WJElement class. It acts as a wrapper for individual breadcrumb elements and manages their behavior, such as collapsing and marking the last breadcrumb.
|
|
4
|
+
* @documentation https://elements.webjet.sk/components/breadcrumbs
|
|
5
|
+
* @status stable
|
|
6
|
+
* @augments WJElement
|
|
7
|
+
* @slot - The container for breadcrumb elements.
|
|
8
|
+
* @csspart container - The component's container wrapper.
|
|
9
|
+
* @attribute {number} max-items - The maximum number of visible breadcrumbs before collapsing.
|
|
10
|
+
* @attribute {number} items-before-collapse - The number of breadcrumbs to show before the collapsed indicator.
|
|
11
|
+
* @attribute {number} items-after-collapse - The number of breadcrumbs to show after the collapsed indicator.
|
|
12
|
+
* @tag wje-breadcrumbs
|
|
13
|
+
* @example
|
|
14
|
+
* <!-- Example usage -->
|
|
15
|
+
* <wje-breadcrumbs max-items="5" items-before-collapse="2" items-after-collapse="2">
|
|
16
|
+
* <wje-breadcrumb>Home</wje-breadcrumb>
|
|
17
|
+
* <wje-breadcrumb>About</wje-breadcrumb>
|
|
18
|
+
* <wje-breadcrumb>Services</wje-breadcrumb>
|
|
19
|
+
* <wje-breadcrumb>Portfolio</wje-breadcrumb>
|
|
20
|
+
* <wje-breadcrumb>Contact</wje-breadcrumb>
|
|
21
|
+
* </wje-breadcrumbs>
|
|
22
|
+
*
|
|
23
|
+
* <!-- Output: Only the first two and last two breadcrumbs will be visible, with a collapsed indicator in the middle -->
|
|
24
|
+
*/
|
|
25
|
+
export default class Breadcrumbs extends WJElement {
|
|
26
|
+
/**
|
|
27
|
+
* Get CSS stylesheet for the Breadcrumbs element.
|
|
28
|
+
* @static
|
|
29
|
+
* @returns {object} styles - The CSS styles
|
|
30
|
+
*/
|
|
31
|
+
static get cssStyleSheet(): object;
|
|
32
|
+
/**
|
|
33
|
+
* Get observed attributes for the Breadcrumb element.
|
|
34
|
+
* @static
|
|
35
|
+
* @returns {Array<string>} - The observed attributes array for the Breadcrumb element.
|
|
36
|
+
*/
|
|
37
|
+
static get observedAttributes(): Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Last breadcrumb flag
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
*/
|
|
42
|
+
last: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Set variant attribute for the Breadcrumbs element.
|
|
45
|
+
* @param value
|
|
46
|
+
*/
|
|
47
|
+
set variant(value: string);
|
|
48
|
+
/**
|
|
49
|
+
* Get variant attribute for the Breadcrumbs element.
|
|
50
|
+
* @returns {string}
|
|
51
|
+
*/
|
|
52
|
+
get variant(): string;
|
|
53
|
+
/**
|
|
54
|
+
* Get items before collapse attribute.
|
|
55
|
+
* @param {string} value
|
|
56
|
+
*/
|
|
57
|
+
set maxItems(value: string);
|
|
58
|
+
/**
|
|
59
|
+
* Get items before collapse attribute.
|
|
60
|
+
* @returns {number}
|
|
61
|
+
*/
|
|
62
|
+
get maxItems(): number;
|
|
63
|
+
/**
|
|
64
|
+
* Get items before collapse attribute.
|
|
65
|
+
* @param value
|
|
66
|
+
*/
|
|
67
|
+
set itemsBeforeCollapse(value: number);
|
|
68
|
+
/**
|
|
69
|
+
* Get items before collapse attribute.
|
|
70
|
+
* @returns {number}
|
|
71
|
+
*/
|
|
72
|
+
get itemsBeforeCollapse(): number;
|
|
73
|
+
/**
|
|
74
|
+
* Get items after collapse attribute.
|
|
75
|
+
* @param value
|
|
76
|
+
*/
|
|
77
|
+
set itemsAfterCollapse(value: number);
|
|
78
|
+
/**
|
|
79
|
+
* Get items after collapse attribute.
|
|
80
|
+
* @returns {number}
|
|
81
|
+
*/
|
|
82
|
+
get itemsAfterCollapse(): number;
|
|
83
|
+
/**
|
|
84
|
+
* Draw method for the Breadcrumbs element.
|
|
85
|
+
* @returns {object} fragment - The document fragment
|
|
86
|
+
*/
|
|
87
|
+
draw(): object;
|
|
88
|
+
/**
|
|
89
|
+
* After draw method for the Breadcrumbs element.
|
|
90
|
+
*/
|
|
91
|
+
afterDraw(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Get breadcrumbs method.
|
|
94
|
+
* @returns {Array} - The breadcrumbs array
|
|
95
|
+
*/
|
|
96
|
+
getBreadcrumbs(): any[];
|
|
97
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary This class represents Button element, extending the WJElement class.
|
|
4
|
+
* @documentation https://elements.webjet.sk/components/button
|
|
5
|
+
* @status stable
|
|
6
|
+
* @augments WJElement
|
|
7
|
+
* @dependency wje-icon
|
|
8
|
+
* @slot - The button main content.
|
|
9
|
+
* @slot icon - The button icon.
|
|
10
|
+
* @slot caret - The button caret.
|
|
11
|
+
* @slot start - The button start slot.
|
|
12
|
+
* @slot end - The button end slot.
|
|
13
|
+
* @slot toggle - The button toggle slot.
|
|
14
|
+
* @csspart native - The component's native wrapper.
|
|
15
|
+
* @cssproperty [--wje-button-background-color=transparent] - Background color of the component;
|
|
16
|
+
* @cssproperty [--wje-button-border-color=--wje-color-contrast-4] - Border color of the component;
|
|
17
|
+
* @cssproperty [--wje-button-color=--wje-color-contrast-11] - Color of the component;
|
|
18
|
+
* @cssproperty [--wje-button-border-radius=--wje-border-radius-medium] - Border radius of the component;
|
|
19
|
+
* @cssproperty [--wje-button-border-width=1px] - Border width of the component;
|
|
20
|
+
* @cssproperty [--wje-button-border-style=solid] - Border style of the component;
|
|
21
|
+
* @cssproperty [--wje-button-border-color=--wje-color-contrast-1] - Border color of the component;
|
|
22
|
+
* @cssproperty [--wje-button-margin-inline=0] - Margin inline of the component;
|
|
23
|
+
*/
|
|
24
|
+
export default class Button extends WJElement {
|
|
25
|
+
/**
|
|
26
|
+
* Get CSS stylesheet for the Button element.
|
|
27
|
+
* @static
|
|
28
|
+
* @returns {CSSStyleSheet} styles - The CSS stylesheet for the Button element.
|
|
29
|
+
*/
|
|
30
|
+
static get cssStyleSheet(): CSSStyleSheet;
|
|
31
|
+
/**
|
|
32
|
+
* Get observed attributes for the Button element.
|
|
33
|
+
* @static
|
|
34
|
+
* @returns {Array<string>} observedAttributes - The observed attributes array for the Button element.
|
|
35
|
+
*/
|
|
36
|
+
static get observedAttributes(): Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
* @summary A static property that indicates whether the custom element is form-associated or not.
|
|
39
|
+
* Form-associated custom elements are elements that can participate in form submission.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
*/
|
|
42
|
+
static formAssociated: boolean;
|
|
43
|
+
internals_: ElementInternals;
|
|
44
|
+
/**
|
|
45
|
+
* Dependencies of the Button element.
|
|
46
|
+
* @type {object}
|
|
47
|
+
*/
|
|
48
|
+
dependencies: object;
|
|
49
|
+
/**
|
|
50
|
+
* Properties of the element Button.
|
|
51
|
+
* @param value
|
|
52
|
+
*/
|
|
53
|
+
set color(value: string | string);
|
|
54
|
+
/**
|
|
55
|
+
* Get color of the Button element.
|
|
56
|
+
* @returns {string|string}
|
|
57
|
+
*/
|
|
58
|
+
get color(): string | string;
|
|
59
|
+
/**
|
|
60
|
+
* Set variant of the Button element.
|
|
61
|
+
* @param value
|
|
62
|
+
*/
|
|
63
|
+
set caret(value: boolean);
|
|
64
|
+
/**
|
|
65
|
+
* Get variant of the Button element.
|
|
66
|
+
* @returns {boolean}
|
|
67
|
+
*/
|
|
68
|
+
get caret(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Set variant of the Button element.
|
|
71
|
+
* @param value
|
|
72
|
+
*/
|
|
73
|
+
set tooltip(value: boolean);
|
|
74
|
+
/**
|
|
75
|
+
* Get variant of the Button element.
|
|
76
|
+
* @returns {boolean}
|
|
77
|
+
*/
|
|
78
|
+
get tooltip(): boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Set variant of the Button element.
|
|
81
|
+
* @param value
|
|
82
|
+
*/
|
|
83
|
+
set dialog(value: string | object);
|
|
84
|
+
/**
|
|
85
|
+
* Get variant of the Button element.
|
|
86
|
+
* @returns {string|object}
|
|
87
|
+
*/
|
|
88
|
+
get dialog(): string | object;
|
|
89
|
+
/**
|
|
90
|
+
* Set active state of the Button element.
|
|
91
|
+
* @param {boolean} value The value to set
|
|
92
|
+
*/
|
|
93
|
+
set active(value: boolean);
|
|
94
|
+
/**
|
|
95
|
+
* Get active state of the Button element.
|
|
96
|
+
* @returns {boolean} active - The active state
|
|
97
|
+
*/
|
|
98
|
+
get active(): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Set disabled state of the Button element.
|
|
101
|
+
* @param {boolean} value The value to set
|
|
102
|
+
*/
|
|
103
|
+
set disabled(value: boolean);
|
|
104
|
+
/**
|
|
105
|
+
* Get disabled state of the Button element.
|
|
106
|
+
* @returns {boolean} disabled - The disabled state
|
|
107
|
+
*/
|
|
108
|
+
get disabled(): boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Set fill of the Button element.
|
|
111
|
+
* @param {string} value The value to set
|
|
112
|
+
*/
|
|
113
|
+
set fill(value: string);
|
|
114
|
+
/**
|
|
115
|
+
* Get fill of the Button element.
|
|
116
|
+
* @returns {string} fill - The fill value
|
|
117
|
+
*/
|
|
118
|
+
get fill(): string;
|
|
119
|
+
/**
|
|
120
|
+
* Set outline state of the Button element.
|
|
121
|
+
* @param {boolean} value The value to set
|
|
122
|
+
*/
|
|
123
|
+
set outline(value: boolean);
|
|
124
|
+
/**
|
|
125
|
+
* Get outline state of the Button element.
|
|
126
|
+
* @returns {boolean} outline - The outline state
|
|
127
|
+
*/
|
|
128
|
+
get outline(): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Set stop propagation state of the Button element.
|
|
131
|
+
* @param {boolean} value The value to set
|
|
132
|
+
*/
|
|
133
|
+
set stopPropagation(value: boolean);
|
|
134
|
+
/**
|
|
135
|
+
* Get stop propagation state of the Button element.
|
|
136
|
+
* @returns {boolean} stopPropagation - The stop propagation state
|
|
137
|
+
*/
|
|
138
|
+
get stopPropagation(): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* @summary Callback function that is called when the custom element is associated with a form.
|
|
141
|
+
* This function sets the internal `_form` property to the associated form.
|
|
142
|
+
* @param {HTMLFormElement} form The form the custom element is associated with.
|
|
143
|
+
*/
|
|
144
|
+
formAssociatedCallback(form: HTMLFormElement): void;
|
|
145
|
+
_form: HTMLFormElement;
|
|
146
|
+
/**
|
|
147
|
+
* @summary Callback function that is called when the form-associated state of the custom element changes.
|
|
148
|
+
* This function updates the 'disabled' attribute of the element based on the new state.
|
|
149
|
+
* @param {boolean} disabled The new form-associated state.
|
|
150
|
+
*/
|
|
151
|
+
formDisabledCallback(disabled: boolean): void;
|
|
152
|
+
/**
|
|
153
|
+
* Draw method for the Button element.
|
|
154
|
+
* @returns {object} fragment - The document fragment containing the drawn element.
|
|
155
|
+
*/
|
|
156
|
+
draw(): object;
|
|
157
|
+
hasToggle: boolean;
|
|
158
|
+
slotToggle: HTMLSlotElement;
|
|
159
|
+
/**
|
|
160
|
+
* After draw method for the Button element.
|
|
161
|
+
*/
|
|
162
|
+
afterDraw(): void;
|
|
163
|
+
unbindRouterLinks: any;
|
|
164
|
+
/**
|
|
165
|
+
* Event dialog open method for the Button element.
|
|
166
|
+
* @param {Event} e The event object
|
|
167
|
+
*/
|
|
168
|
+
eventDialogOpen: (e: Event) => void;
|
|
169
|
+
/**
|
|
170
|
+
* Toggle states method for the Button element.
|
|
171
|
+
*/
|
|
172
|
+
toggleStates: () => void;
|
|
173
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|