wj-elements 0.1.149 → 0.1.151
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/wje-element.js +3 -1
- package/dist/wje-element.js.map +1 -1
- package/dist/wje-img.js +2 -2
- package/dist/wje-img.js.map +1 -1
- package/dist/wje-pagination.js +3 -3
- package/dist/wje-pagination.js.map +1 -1
- package/package.json +1 -1
- package/dist/packages/index.d.ts +0 -104
- package/dist/packages/localize/localize.d.ts +0 -17
- package/dist/packages/translations/en-gb.d.ts +0 -18
- package/dist/packages/translations/sk-sk.d.ts +0 -13
- package/dist/packages/utils/animations.d.ts +0 -2
- package/dist/packages/utils/date.d.ts +0 -1
- package/dist/packages/utils/element-utils.d.ts +0 -46
- package/dist/packages/utils/event.d.ts +0 -67
- package/dist/packages/utils/localize.d.ts +0 -4
- package/dist/packages/utils/permissions-api.d.ts +0 -34
- package/dist/packages/utils/utils.d.ts +0 -1
- 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 +0 -2
- package/dist/packages/wje-accordion/accordion.element.d.ts +0 -72
- package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
- package/dist/packages/wje-accordion-item/accordion-item.d.ts +0 -2
- package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +0 -40
- package/dist/packages/wje-animation/animation.d.ts +0 -2
- package/dist/packages/wje-animation/animation.element.d.ts +0 -158
- package/dist/packages/wje-animation/animation.test.d.ts +0 -1
- package/dist/packages/wje-aside/aside.d.ts +0 -2
- package/dist/packages/wje-aside/aside.element.d.ts +0 -31
- package/dist/packages/wje-avatar/avatar.d.ts +0 -2
- package/dist/packages/wje-avatar/avatar.element.d.ts +0 -76
- package/dist/packages/wje-avatar/avatar.test.d.ts +0 -1
- package/dist/packages/wje-avatar/service/service.d.ts +0 -40
- package/dist/packages/wje-badge/badge.d.ts +0 -2
- package/dist/packages/wje-badge/badge.element.d.ts +0 -35
- package/dist/packages/wje-badge/badge.test.d.ts +0 -1
- package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +0 -2
- package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +0 -80
- package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +0 -2
- package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +0 -97
- package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +0 -1
- package/dist/packages/wje-button/button.d.ts +0 -2
- package/dist/packages/wje-button/button.element.d.ts +0 -173
- package/dist/packages/wje-button/button.test.d.ts +0 -1
- package/dist/packages/wje-button-group/button-group.d.ts +0 -2
- package/dist/packages/wje-button-group/button-group.element.d.ts +0 -39
- package/dist/packages/wje-card/card.d.ts +0 -2
- package/dist/packages/wje-card/card.element.d.ts +0 -29
- package/dist/packages/wje-card-content/card-content.d.ts +0 -2
- package/dist/packages/wje-card-content/card-content.element.d.ts +0 -22
- package/dist/packages/wje-card-controls/card-controls.d.ts +0 -2
- package/dist/packages/wje-card-controls/card-controls.element.d.ts +0 -23
- package/dist/packages/wje-card-header/card-header.d.ts +0 -2
- package/dist/packages/wje-card-header/card-header.element.d.ts +0 -22
- package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +0 -2
- package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +0 -30
- package/dist/packages/wje-card-title/card-title.d.ts +0 -2
- package/dist/packages/wje-card-title/card-title.element.d.ts +0 -32
- package/dist/packages/wje-carousel/carousel.d.ts +0 -2
- package/dist/packages/wje-carousel/carousel.element.d.ts +0 -146
- package/dist/packages/wje-carousel-item/carousel-item.d.ts +0 -2
- package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +0 -38
- package/dist/packages/wje-checkbox/checkbox.d.ts +0 -2
- package/dist/packages/wje-checkbox/checkbox.element.d.ts +0 -171
- package/dist/packages/wje-chip/chip.d.ts +0 -2
- package/dist/packages/wje-chip/chip.element.d.ts +0 -30
- package/dist/packages/wje-col/col.d.ts +0 -2
- package/dist/packages/wje-col/col.element.d.ts +0 -16
- package/dist/packages/wje-color-picker/color-picker.d.ts +0 -2
- package/dist/packages/wje-color-picker/color-picker.element.d.ts +0 -187
- package/dist/packages/wje-color-picker/color-picker.test.d.ts +0 -1
- package/dist/packages/wje-container/container.d.ts +0 -2
- package/dist/packages/wje-container/container.element.d.ts +0 -31
- package/dist/packages/wje-copy-button/copy-button.d.ts +0 -2
- package/dist/packages/wje-copy-button/copy-button.element.d.ts +0 -89
- package/dist/packages/wje-copy-button/service/service.d.ts +0 -12
- package/dist/packages/wje-dialog/dialog.d.ts +0 -2
- package/dist/packages/wje-dialog/dialog.element.d.ts +0 -116
- package/dist/packages/wje-divider/divider.d.ts +0 -2
- package/dist/packages/wje-divider/divider.element.d.ts +0 -32
- package/dist/packages/wje-dropdown/dropdown.d.ts +0 -2
- package/dist/packages/wje-dropdown/dropdown.element.d.ts +0 -85
- package/dist/packages/wje-element/element.d.ts +0 -315
- package/dist/packages/wje-element/service/universal-service.d.ts +0 -18
- package/dist/packages/wje-file-upload/file-upload.d.ts +0 -2
- package/dist/packages/wje-file-upload/file-upload.element.d.ts +0 -191
- package/dist/packages/wje-file-upload/service/service.d.ts +0 -70
- package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +0 -2
- package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +0 -66
- package/dist/packages/wje-footer/footer.d.ts +0 -2
- package/dist/packages/wje-footer/footer.element.d.ts +0 -28
- package/dist/packages/wje-form/form.d.ts +0 -2
- package/dist/packages/wje-form/form.element.d.ts +0 -28
- package/dist/packages/wje-format-digital/format-digital.d.ts +0 -2
- package/dist/packages/wje-format-digital/format-digital.element.d.ts +0 -87
- package/dist/packages/wje-format-digital/format-digital.test.d.ts +0 -1
- package/dist/packages/wje-grid/grid.d.ts +0 -2
- package/dist/packages/wje-grid/grid.element.d.ts +0 -26
- package/dist/packages/wje-header/header.d.ts +0 -2
- package/dist/packages/wje-header/header.element.d.ts +0 -35
- package/dist/packages/wje-icon/icon.d.ts +0 -2
- package/dist/packages/wje-icon/icon.element.d.ts +0 -40
- package/dist/packages/wje-icon/service/service.d.ts +0 -11
- package/dist/packages/wje-icon-picker/icon-picker.d.ts +0 -2
- package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +0 -197
- package/dist/packages/wje-img/img.d.ts +0 -2
- package/dist/packages/wje-img/img.element.d.ts +0 -117
- package/dist/packages/wje-img-comparer/img-comparer.d.ts +0 -2
- package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +0 -60
- package/dist/packages/wje-img-comparer/service/service.d.ts +0 -1
- package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +0 -2
- package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +0 -173
- package/dist/packages/wje-input/input.d.ts +0 -2
- package/dist/packages/wje-input/input.element.d.ts +0 -204
- package/dist/packages/wje-input-file/input-file.d.ts +0 -2
- package/dist/packages/wje-input-file/input-file.element.d.ts +0 -50
- package/dist/packages/wje-item/item.d.ts +0 -2
- package/dist/packages/wje-item/item.element.d.ts +0 -68
- package/dist/packages/wje-kanban/kanban.d.ts +0 -2
- package/dist/packages/wje-kanban/kanban.element.d.ts +0 -183
- package/dist/packages/wje-label/label.d.ts +0 -2
- package/dist/packages/wje-label/label.element.d.ts +0 -34
- package/dist/packages/wje-level-indicator/level-indicator.d.ts +0 -2
- package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +0 -91
- package/dist/packages/wje-list/list.d.ts +0 -2
- package/dist/packages/wje-list/list.element.d.ts +0 -31
- package/dist/packages/wje-main/main.d.ts +0 -2
- package/dist/packages/wje-main/main.element.d.ts +0 -30
- package/dist/packages/wje-masonry/masonry.d.ts +0 -2
- package/dist/packages/wje-masonry/masonry.element.d.ts +0 -114
- package/dist/packages/wje-masonry/service/service.d.ts +0 -32
- package/dist/packages/wje-menu/menu.d.ts +0 -2
- package/dist/packages/wje-menu/menu.element.d.ts +0 -47
- package/dist/packages/wje-menu-button/menu-button.d.ts +0 -2
- package/dist/packages/wje-menu-button/menu-button.element.d.ts +0 -34
- package/dist/packages/wje-menu-item/menu-item.d.ts +0 -2
- package/dist/packages/wje-menu-item/menu-item.element.d.ts +0 -139
- package/dist/packages/wje-menu-label/menu-label.d.ts +0 -2
- package/dist/packages/wje-menu-label/menu-label.element.d.ts +0 -39
- package/dist/packages/wje-option/option.d.ts +0 -2
- package/dist/packages/wje-option/option.element.d.ts +0 -59
- package/dist/packages/wje-options/options.d.ts +0 -2
- package/dist/packages/wje-options/options.element.d.ts +0 -183
- package/dist/packages/wje-orgchart/orgchart.d.ts +0 -2
- package/dist/packages/wje-orgchart/orgchart.element.d.ts +0 -24
- package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +0 -2
- package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +0 -28
- package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +0 -2
- package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +0 -49
- package/dist/packages/wje-pagination/pagination.d.ts +0 -2
- package/dist/packages/wje-pagination/pagination.element.d.ts +0 -166
- package/dist/packages/wje-pagination/pagination.test.d.ts +0 -1
- package/dist/packages/wje-pagination/service/service.d.ts +0 -9
- package/dist/packages/wje-panel/panel.d.ts +0 -2
- package/dist/packages/wje-panel/panel.element.d.ts +0 -34
- package/dist/packages/wje-popup/popup.d.ts +0 -2
- package/dist/packages/wje-popup/popup.element.d.ts +0 -93
- package/dist/packages/wje-progress-bar/progress-bar.d.ts +0 -2
- package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +0 -96
- package/dist/packages/wje-qr-code/qr-code.d.ts +0 -2
- package/dist/packages/wje-qr-code/qr-code.element.d.ts +0 -33
- package/dist/packages/wje-radio/radio.d.ts +0 -2
- package/dist/packages/wje-radio/radio.element.d.ts +0 -53
- package/dist/packages/wje-radio-group/radio-group.d.ts +0 -2
- package/dist/packages/wje-radio-group/radio-group.element.d.ts +0 -137
- package/dist/packages/wje-rate/rate.d.ts +0 -2
- package/dist/packages/wje-rate/rate.element.d.ts +0 -156
- package/dist/packages/wje-relative-time/relative-time.d.ts +0 -2
- package/dist/packages/wje-relative-time/relative-time.element.d.ts +0 -55
- package/dist/packages/wje-relative-time/relative-time.test.d.ts +0 -1
- package/dist/packages/wje-reorder/reorder.d.ts +0 -2
- package/dist/packages/wje-reorder/reorder.element.d.ts +0 -119
- package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +0 -2
- package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +0 -23
- package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +0 -2
- package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +0 -75
- package/dist/packages/wje-reorder-item/reorder-item.d.ts +0 -2
- package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +0 -24
- package/dist/packages/wje-route/route.d.ts +0 -2
- package/dist/packages/wje-route/route.element.d.ts +0 -22
- package/dist/packages/wje-router/router.d.ts +0 -2
- package/dist/packages/wje-router/router.element.d.ts +0 -39
- package/dist/packages/wje-router-link/router-link.d.ts +0 -2
- package/dist/packages/wje-router-link/router-link.element.d.ts +0 -31
- package/dist/packages/wje-router-outlet/router-outlet.d.ts +0 -2
- package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +0 -15
- package/dist/packages/wje-row/row.d.ts +0 -2
- package/dist/packages/wje-row/row.element.d.ts +0 -23
- package/dist/packages/wje-select/select.d.ts +0 -2
- package/dist/packages/wje-select/select.element.d.ts +0 -315
- package/dist/packages/wje-slider/slider.d.ts +0 -2
- package/dist/packages/wje-slider/slider.element.d.ts +0 -103
- package/dist/packages/wje-split-view/service/service.d.ts +0 -1
- package/dist/packages/wje-split-view/split-view.d.ts +0 -2
- package/dist/packages/wje-split-view/split-view.element.d.ts +0 -66
- package/dist/packages/wje-status/status.d.ts +0 -2
- package/dist/packages/wje-status/status.element.d.ts +0 -26
- package/dist/packages/wje-step/step.d.ts +0 -2
- package/dist/packages/wje-step/step.element.d.ts +0 -23
- package/dist/packages/wje-stepper/stepper.d.ts +0 -2
- package/dist/packages/wje-stepper/stepper.element.d.ts +0 -78
- package/dist/packages/wje-store/default-store-actions.d.ts +0 -25
- package/dist/packages/wje-store/pubsub.d.ts +0 -21
- package/dist/packages/wje-store/store.d.ts +0 -153
- package/dist/packages/wje-tab/tab.d.ts +0 -2
- package/dist/packages/wje-tab/tab.element.d.ts +0 -41
- package/dist/packages/wje-tab-group/tab-group.d.ts +0 -2
- package/dist/packages/wje-tab-group/tab-group.element.d.ts +0 -67
- package/dist/packages/wje-tab-panel/tab-panel.d.ts +0 -2
- package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +0 -23
- package/dist/packages/wje-textarea/textarea.d.ts +0 -2
- package/dist/packages/wje-textarea/textarea.element.d.ts +0 -176
- package/dist/packages/wje-thumbnail/thumbnail.d.ts +0 -2
- package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +0 -31
- package/dist/packages/wje-timeline/timeline.d.ts +0 -2
- package/dist/packages/wje-timeline/timeline.element.d.ts +0 -25
- package/dist/packages/wje-timeline-item/timeline-item.d.ts +0 -2
- package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +0 -27
- package/dist/packages/wje-toast/toast.d.ts +0 -2
- package/dist/packages/wje-toast/toast.element.d.ts +0 -173
- package/dist/packages/wje-toast/toast.test.d.ts +0 -1
- package/dist/packages/wje-toggle/toggle.d.ts +0 -2
- package/dist/packages/wje-toggle/toggle.element.d.ts +0 -65
- package/dist/packages/wje-toolbar/toolbar.d.ts +0 -2
- package/dist/packages/wje-toolbar/toolbar.element.d.ts +0 -39
- package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +0 -2
- package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +0 -35
- package/dist/packages/wje-tooltip/tooltip.d.ts +0 -2
- package/dist/packages/wje-tooltip/tooltip.element.d.ts +0 -71
- package/dist/packages/wje-tree/tree.d.ts +0 -2
- package/dist/packages/wje-tree/tree.element.d.ts +0 -104
- package/dist/packages/wje-tree/tree.test.d.ts +0 -1
- package/dist/packages/wje-tree-item/tree-item.d.ts +0 -2
- package/dist/packages/wje-tree-item/tree-item.element.d.ts +0 -155
- package/dist/packages/wje-tree-item/tree-item.test.d.ts +0 -1
- package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +0 -2
- package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +0 -29
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
import { Localizer } from '../utils/localize.js';
|
|
3
|
-
/**
|
|
4
|
-
* @summary This class represents the Pagination component for navigating through paginated content and dynamically updating navigation elements based on attributes like the number of items, page size, etc. Extends the WJElement class.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/pagination
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments WJElement
|
|
8
|
-
* @dependency wje-icon, wje-button
|
|
9
|
-
* @csspart native - The wrapper element for the pagination component.
|
|
10
|
-
*/
|
|
11
|
-
export default class Pagination extends WJElement {
|
|
12
|
-
/**
|
|
13
|
-
* Returns the CSS styles for the component.
|
|
14
|
-
* @static
|
|
15
|
-
* @returns {CSSStyleSheet}
|
|
16
|
-
*/
|
|
17
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
18
|
-
/**
|
|
19
|
-
* Getter for the observedAttributes attribute of the input element.
|
|
20
|
-
* @returns {Array} The attributes to observe for changes.
|
|
21
|
-
*/
|
|
22
|
-
static get observedAttributes(): any[];
|
|
23
|
-
localizer: Localizer;
|
|
24
|
-
_paginateObj: any;
|
|
25
|
-
/**
|
|
26
|
-
* Sets the value of the 'page' attribute for the object.
|
|
27
|
-
* @param {string} value The value to set for the 'page' attribute.
|
|
28
|
-
*/
|
|
29
|
-
set page(value: number);
|
|
30
|
-
/**
|
|
31
|
-
* Retrieves the current page number as a numeric value.
|
|
32
|
-
* @returns {number} The current page number. Returns 0 if the attribute 'page' is not set or is not a numeric value.
|
|
33
|
-
*/
|
|
34
|
-
get page(): number;
|
|
35
|
-
/**
|
|
36
|
-
* Sets the maximum number of pages.
|
|
37
|
-
* Updates the 'max-pages' attribute with the provided value.
|
|
38
|
-
* @param {number|string} value The maximum number of pages to set. Can be a number or a parsable string representing a number.
|
|
39
|
-
*/
|
|
40
|
-
set maxPages(value: number);
|
|
41
|
-
/**
|
|
42
|
-
* Gets the maximum number of pages.
|
|
43
|
-
* This getter retrieves the value of the "max-pages" attribute from the element.
|
|
44
|
-
* If the attribute is not set or is invalid, it defaults to 3.
|
|
45
|
-
* @returns {number} The maximum number of pages as a numeric value.
|
|
46
|
-
*/
|
|
47
|
-
get maxPages(): number;
|
|
48
|
-
/**
|
|
49
|
-
* Sets the `pageSize` attribute to the specified value.
|
|
50
|
-
* @param {number|string} value The desired page size value. This can be a number or a string representation of the size.
|
|
51
|
-
*/
|
|
52
|
-
set pageSize(value: number);
|
|
53
|
-
/**
|
|
54
|
-
* Retrieves the value of the 'page-size' attribute and converts it to a number.
|
|
55
|
-
* If the attribute is not set or is invalid, returns the default value of 3.
|
|
56
|
-
* @returns {number} The numeric value of the 'page-size' attribute or the default value of 3.
|
|
57
|
-
*/
|
|
58
|
-
get pageSize(): number;
|
|
59
|
-
/**
|
|
60
|
-
* Sets the total number of items.
|
|
61
|
-
* @param {number} value The new total number of items to set.
|
|
62
|
-
*/
|
|
63
|
-
set totalItems(value: number);
|
|
64
|
-
/**
|
|
65
|
-
* Retrieves the total number of items represented by the 'total-items' attribute.
|
|
66
|
-
* @returns {number} The total number of items. Defaults to 0 if the attribute is not set or is invalid.
|
|
67
|
-
*/
|
|
68
|
-
get totalItems(): number;
|
|
69
|
-
/**
|
|
70
|
-
* Sets the visibility of the first button based on the provided value.
|
|
71
|
-
* Adds the 'show-first-button' attribute when the value is truthy, and removes it otherwise.
|
|
72
|
-
* @param {boolean} value Determines whether to show the first button. If true, the 'show-first-button' attribute is added; if false, it is removed.
|
|
73
|
-
*/
|
|
74
|
-
set showFirstButton(value: boolean);
|
|
75
|
-
/**
|
|
76
|
-
* Determines whether the 'show-first-button' attribute is present on the element.
|
|
77
|
-
* @returns {boolean} True if the 'show-first-button' attribute is set; otherwise, false.
|
|
78
|
-
*/
|
|
79
|
-
get showFirstButton(): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Sets the visibility of the "last" button. This method controls the presence
|
|
82
|
-
* or absence of the "show-last-button" attribute based on the provided value.
|
|
83
|
-
* @param {boolean} value A boolean value indicating whether to show the "last" button.
|
|
84
|
-
* If true, the "show-last-button" attribute is added;
|
|
85
|
-
* if false, the attribute is removed.
|
|
86
|
-
*/
|
|
87
|
-
set showLastButton(value: boolean);
|
|
88
|
-
/**
|
|
89
|
-
* Determines if the 'show-last-button' attribute is present on the element.
|
|
90
|
-
* @returns {boolean} True if the 'show-last-button' attribute is present, otherwise false.
|
|
91
|
-
*/
|
|
92
|
-
get showLastButton(): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Sets the pagination object by calculating the pagination details
|
|
95
|
-
* based on the total items, current page, page size, and maximum pages.
|
|
96
|
-
* @param {object} value The value to set the pagination object. The pagination details are computed internally.
|
|
97
|
-
*/
|
|
98
|
-
set paginateObj(value: any);
|
|
99
|
-
/**
|
|
100
|
-
* Retrieves the pagination object used for managing paginated data.
|
|
101
|
-
* @returns {object} The pagination object containing details and functionality for paginating data.
|
|
102
|
-
*/
|
|
103
|
-
get paginateObj(): any;
|
|
104
|
-
/**
|
|
105
|
-
* Sets the 'round' attribute on the element. If the provided value is truthy,
|
|
106
|
-
* the 'round' attribute is added. If the value is falsy, the attribute is removed.
|
|
107
|
-
* @param {boolean} value A boolean value determining whether to add or remove the 'round' attribute.
|
|
108
|
-
*/
|
|
109
|
-
set round(value: boolean);
|
|
110
|
-
/**
|
|
111
|
-
* Retrieves the value of the 'round' attribute for the current element.
|
|
112
|
-
* @returns {boolean} A boolean indicating whether the 'round' attribute is present on the element.
|
|
113
|
-
*/
|
|
114
|
-
get round(): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Sets the `show-info` attribute on the element based on the provided value.
|
|
117
|
-
* @param {boolean} value A boolean indicating whether to add or remove the `show-info` attribute.
|
|
118
|
-
*/
|
|
119
|
-
set showInfo(value: boolean);
|
|
120
|
-
/**
|
|
121
|
-
* Retrieves the value of the 'show-info' attribute.
|
|
122
|
-
* Checks if the 'show-info' attribute is present on the element.
|
|
123
|
-
* @returns {boolean} True if the 'show-info' attribute is present, otherwise false.
|
|
124
|
-
*/
|
|
125
|
-
get showInfo(): boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Dependencies of the Button element.
|
|
128
|
-
* @type {object}
|
|
129
|
-
*/
|
|
130
|
-
dependencies: object;
|
|
131
|
-
beforeDraw(): Promise<void>;
|
|
132
|
-
/**
|
|
133
|
-
* Creates a document fragment, appends a new slot element to it, and returns the fragment.
|
|
134
|
-
* @returns {DocumentFragment} A document fragment containing a slot element.
|
|
135
|
-
*/
|
|
136
|
-
draw(): DocumentFragment;
|
|
137
|
-
/**
|
|
138
|
-
* Creates a pagination control for navigating between pages of content.
|
|
139
|
-
* This method generates and returns a document fragment containing pagination controls, including buttons for navigating to the first, previous, next, and last pages, as well as optional informational text about the current set of displayed items and total number of items.
|
|
140
|
-
* @returns {DocumentFragment} A document fragment containing the pagination controls.
|
|
141
|
-
*/
|
|
142
|
-
htmlPagination(): DocumentFragment;
|
|
143
|
-
/**
|
|
144
|
-
* Creates and returns a DocumentFragment containing a series of buttons for pagination purposes,
|
|
145
|
-
* based on the provided pagination object.
|
|
146
|
-
* @param {object} paginateObj An object containing pagination details.
|
|
147
|
-
* @param {number} paginateObj.currentPage The current active page index (1-based).
|
|
148
|
-
* @param {Array<number>} paginateObj.pages An array of page numbers to display in the pagination.
|
|
149
|
-
* @param {number} paginateObj.totalPages Total number of pages available for pagination.
|
|
150
|
-
* @returns {DocumentFragment} A DocumentFragment containing the buttons and additional pagination elements.
|
|
151
|
-
*/
|
|
152
|
-
htmlStackButtons(paginateObj: {
|
|
153
|
-
currentPage: number;
|
|
154
|
-
pages: Array<number>;
|
|
155
|
-
totalPages: number;
|
|
156
|
-
}): DocumentFragment;
|
|
157
|
-
/**
|
|
158
|
-
* Handles the click action for pagination and updates the current page.
|
|
159
|
-
* If the clicked page number is the same as the current page, no action is performed.
|
|
160
|
-
* Otherwise, the current page is updated to the new page number, and a custom event
|
|
161
|
-
* 'wje-pagination:page-change' is dispatched with the pagination object.
|
|
162
|
-
* @param {Event} e The event triggered by the page click.
|
|
163
|
-
* @param {number} page The page number that was clicked.
|
|
164
|
-
*/
|
|
165
|
-
pageClickAction: (e: Event, page: number) => void;
|
|
166
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Paginates items based on the total number of items, current page, page size, and maximum number of pages to display.
|
|
3
|
-
* @param {number} totalItems The total number of items to paginate.
|
|
4
|
-
* @param {number} [currentPage] The current page number (default is 1).
|
|
5
|
-
* @param {number} [pageSize] The number of items per page (default is 10).
|
|
6
|
-
* @param {number} [maxPages] The maximum number of pages to display in the pagination control (default is 5).
|
|
7
|
-
* @returns {object} An object containing pagination details including total items, current page, page size, total pages, start/end page, start/end index, and the pages array.
|
|
8
|
-
*/
|
|
9
|
-
export function paginate(totalItems: number, currentPage?: number, pageSize?: number, maxPages?: number): object;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `Panel` is a custom web component that represents a panel.
|
|
4
|
-
* @summary This element represents a panel.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/panel
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @slot - The default slot for the panel.
|
|
9
|
-
* @tag wje-panel
|
|
10
|
-
*/
|
|
11
|
-
export default class Panel extends WJElement {
|
|
12
|
-
/**
|
|
13
|
-
* Returns the CSS styles for the component.
|
|
14
|
-
* @static
|
|
15
|
-
* @returns {CSSStyleSheet}
|
|
16
|
-
*/
|
|
17
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
18
|
-
last: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Draws the component for the panel.
|
|
21
|
-
* @returns {DocumentFragment}
|
|
22
|
-
*/
|
|
23
|
-
draw(): DocumentFragment;
|
|
24
|
-
/**
|
|
25
|
-
* Adds event listeners after the component is drawn.
|
|
26
|
-
* Handles the collapsing of breadcrumbs.
|
|
27
|
-
*/
|
|
28
|
-
afterDraw(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Returns all the breadcrumb elements in the panel.
|
|
31
|
-
* @returns {Array<Element>} The breadcrumb elements.
|
|
32
|
-
*/
|
|
33
|
-
getBreadcrumbs(): Array<Element>;
|
|
34
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `Popup` is a custom web component that represents a popup.
|
|
4
|
-
* @summary This element represents a popup.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/popup
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @csspart native - The native part of the popup.
|
|
9
|
-
* @slot anchor - The slot for the anchor of the popup.
|
|
10
|
-
* @slot arrow - The slot for the arrow of the popup.
|
|
11
|
-
* @slot - The default slot for the popup.
|
|
12
|
-
* // @fires wje-popup:reposition - Event fired when the popup is repositioned.
|
|
13
|
-
* // @fires wje-popup:show - Event fired when the popup is shown.
|
|
14
|
-
* // @fires wje-popup:hide - Event fired when the popup is hidden.
|
|
15
|
-
* @tag wje-popup
|
|
16
|
-
*/
|
|
17
|
-
export default class Popup extends WJElement {
|
|
18
|
-
/**
|
|
19
|
-
* Returns the CSS styles for the component.
|
|
20
|
-
* @static
|
|
21
|
-
* @returns {CSSStyleSheet} The CSS styles for the component.
|
|
22
|
-
*/
|
|
23
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
24
|
-
/**
|
|
25
|
-
* Returns the list of attributes to observe for changes.
|
|
26
|
-
* @static
|
|
27
|
-
* @returns {Array<string>}
|
|
28
|
-
*/
|
|
29
|
-
static get observedAttributes(): string[];
|
|
30
|
-
_manual: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Sets the manual property of the popup.
|
|
33
|
-
* @param {boolean} value The value to set.
|
|
34
|
-
*/
|
|
35
|
-
set manual(value: boolean);
|
|
36
|
-
/**
|
|
37
|
-
* Gets the manual property of the popup.
|
|
38
|
-
* @returns {boolean} The value of the manual property.
|
|
39
|
-
*/
|
|
40
|
-
get manual(): boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Called when an attribute changes.
|
|
43
|
-
*/
|
|
44
|
-
attributeChangedCallback(name: any, old: any, newName: any): void;
|
|
45
|
-
beforeDraw(context: any, store: any, params: any): void;
|
|
46
|
-
/**
|
|
47
|
-
* Draws the component for the popup.
|
|
48
|
-
* @returns {DocumentFragment}
|
|
49
|
-
*/
|
|
50
|
-
draw(): DocumentFragment;
|
|
51
|
-
slotAnchor: HTMLSlotElement;
|
|
52
|
-
slotArrow: HTMLSlotElement;
|
|
53
|
-
native: HTMLDivElement;
|
|
54
|
-
/**
|
|
55
|
-
* After Draws the component.
|
|
56
|
-
*/
|
|
57
|
-
afterDraw(): void;
|
|
58
|
-
/**
|
|
59
|
-
* Sets the anchor for the popup.
|
|
60
|
-
* Adds a click event listener to the anchor element.
|
|
61
|
-
*/
|
|
62
|
-
setAnchor(): void;
|
|
63
|
-
anchorEl: any;
|
|
64
|
-
clickHandler: (e: any) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Toggles the active attribute of the popup.
|
|
67
|
-
*/
|
|
68
|
-
showHide(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Repositions the popup.
|
|
71
|
-
* Uses the floating-ui library to compute the position.
|
|
72
|
-
*/
|
|
73
|
-
reposition(): void;
|
|
74
|
-
offsetCalc: number;
|
|
75
|
-
arrow: Element;
|
|
76
|
-
/**
|
|
77
|
-
* Shows the popup.
|
|
78
|
-
* Adds the popup-active class to the native element.
|
|
79
|
-
* Sets up auto update for repositioning.
|
|
80
|
-
*/
|
|
81
|
-
show(dispatchEvent?: boolean): void;
|
|
82
|
-
cleanup: any;
|
|
83
|
-
/**
|
|
84
|
-
* Hides the popup.
|
|
85
|
-
* Removes the popup-active class from the native element.
|
|
86
|
-
* Cleans up the auto update for repositioning.
|
|
87
|
-
*/
|
|
88
|
-
hide(dispatchEvent?: boolean): void;
|
|
89
|
-
/**
|
|
90
|
-
* Removes the active attribute when the popup is hidden.
|
|
91
|
-
*/
|
|
92
|
-
handleHide: () => void;
|
|
93
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `ProgressBar` is a custom web component that represents a progress bar.
|
|
4
|
-
* @summary This element represents a progress bar.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/progress-bar
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @slot - The default slot for the progress bar.
|
|
9
|
-
* @slot start - The start slot of the progress bar.
|
|
10
|
-
* @slot end - The end slot of the progress bar.
|
|
11
|
-
* @cssproperty [--wje-progress-bar-color=var(--wje-color-contrast-6)] - Sets the color of the progress bar. This property controls the fill color of the progress indicator. Accepts any valid CSS color value, such as named colors (`red`), hex values (`#ff0000`), or CSS variables.
|
|
12
|
-
* @cssproperty [--wje-progress-bar-text-size=.75rem] - Defines the font size of the text displayed within the progress bar. Accepts any valid CSS length unit (e.g., `rem`, `px`, `em`) to control text size relative to the bar's design.
|
|
13
|
-
* @cssproperty [--wje-progress-bar-text-color=var(--wje-color)] - Specifies the color of the text displayed within the progress bar. Accepts any valid CSS color value to ensure contrast and readability against the progress bar's background.
|
|
14
|
-
* @tag wje-progress-bar
|
|
15
|
-
*/
|
|
16
|
-
export default class ProgressBar extends WJElement {
|
|
17
|
-
/**
|
|
18
|
-
* Returns the CSS styles for the component.
|
|
19
|
-
* @static
|
|
20
|
-
* @returns {CSSStyleSheet}
|
|
21
|
-
*/
|
|
22
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
23
|
-
/**
|
|
24
|
-
* Returns the list of attributes to observe for changes.
|
|
25
|
-
* @static
|
|
26
|
-
* @returns {Array<string>}
|
|
27
|
-
*/
|
|
28
|
-
static get observedAttributes(): string[];
|
|
29
|
-
/**
|
|
30
|
-
* Sets the radius of the progress bar.
|
|
31
|
-
* @param {number} value The value to set.
|
|
32
|
-
*/
|
|
33
|
-
set radius(value: number);
|
|
34
|
-
/**
|
|
35
|
-
* Gets the radius of the progress bar.
|
|
36
|
-
* @returns {number} The value of the radius.
|
|
37
|
-
*/
|
|
38
|
-
get radius(): number;
|
|
39
|
-
/**
|
|
40
|
-
* Gets the diameter of the progress bar.
|
|
41
|
-
* @returns {number} The value of the diameter.
|
|
42
|
-
*/
|
|
43
|
-
get diameter(): number;
|
|
44
|
-
/**
|
|
45
|
-
* Gets the diameter of the progress bar.
|
|
46
|
-
* @returns {number} The value of the diameter.
|
|
47
|
-
*/
|
|
48
|
-
get containerSize(): number;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the stroke of the progress bar.
|
|
51
|
-
* @param {number} value The value to set.
|
|
52
|
-
*/
|
|
53
|
-
set stroke(value: number);
|
|
54
|
-
/**
|
|
55
|
-
* Gets the stroke of the progress bar.
|
|
56
|
-
* @returns {number} The value of the stroke.
|
|
57
|
-
*/
|
|
58
|
-
get stroke(): number;
|
|
59
|
-
/**
|
|
60
|
-
* Gets the linecap of the progress bar.
|
|
61
|
-
* @returns {string} The value of the linecap.
|
|
62
|
-
*/
|
|
63
|
-
get linecap(): string;
|
|
64
|
-
/**
|
|
65
|
-
* Draws the component.
|
|
66
|
-
* @param {object} context The context for drawing.
|
|
67
|
-
* @param {object} store The store for drawing.
|
|
68
|
-
* @param {object} params The parameters for drawing.
|
|
69
|
-
* @returns {DocumentFragment}
|
|
70
|
-
*/
|
|
71
|
-
draw(context: object, store: object, params: object): DocumentFragment;
|
|
72
|
-
background: SVGCircleElement | SVGRectElement;
|
|
73
|
-
bar: SVGCircleElement | SVGRectElement;
|
|
74
|
-
/**
|
|
75
|
-
* Adds event listeners after the component is drawn.
|
|
76
|
-
*/
|
|
77
|
-
afterDraw(): void;
|
|
78
|
-
/**
|
|
79
|
-
* Returns the dasharray for a circle with the given radius.
|
|
80
|
-
* @param {number} radius The radius of the circle in pixels.
|
|
81
|
-
* @returns {number} The dasharray value.
|
|
82
|
-
*/
|
|
83
|
-
getCircleDasharray(radius?: number): number;
|
|
84
|
-
/**
|
|
85
|
-
* Returns the dashoffset for a circle with the given progress and radius.
|
|
86
|
-
* @param {number} progress The progress of the circle in percentage.
|
|
87
|
-
* @param {number} radius The radius of the circle in pixels.
|
|
88
|
-
* @returns {number} The dashoffset value.
|
|
89
|
-
*/
|
|
90
|
-
getCircleDashoffset(progress?: number, radius?: number): number;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the progress of the circle.
|
|
93
|
-
* @param percent
|
|
94
|
-
*/
|
|
95
|
-
setCircleProgress(percent: any): void;
|
|
96
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `QrCode` is a custom web component that generates a QR code.
|
|
4
|
-
* @summary This element represents a QR code generator.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/qr-code
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @csspart native - The native part of the QR code.
|
|
9
|
-
* @slot top - The slot for the top content of the QR code.
|
|
10
|
-
* @slot bottom - The slot for the bottom content of the QR code.
|
|
11
|
-
* @tag wje-qr-code
|
|
12
|
-
*/
|
|
13
|
-
export default class QrCode extends WJElement {
|
|
14
|
-
/**
|
|
15
|
-
* Returns the CSS stylesheet for the component.
|
|
16
|
-
* @returns {CSSStyleSheet} The CSS stylesheet.
|
|
17
|
-
*/
|
|
18
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
19
|
-
/**
|
|
20
|
-
* Returns the list of observed attributes.
|
|
21
|
-
* @returns {string[]} The list of observed attributes.
|
|
22
|
-
*/
|
|
23
|
-
static get observedAttributes(): string[];
|
|
24
|
-
/**
|
|
25
|
-
* Draws the QR code component.
|
|
26
|
-
* @returns {DocumentFragment} The document fragment containing the QR code component.
|
|
27
|
-
*/
|
|
28
|
-
draw(): DocumentFragment;
|
|
29
|
-
/**
|
|
30
|
-
* Called after the component is drawn to generate the QR code.
|
|
31
|
-
*/
|
|
32
|
-
afterDraw(): void;
|
|
33
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* @summary This class represents a Radio button element, extending the WJElement class.
|
|
4
|
-
* @documentation https://elements.webjet.sk/components/radio
|
|
5
|
-
* @status stable
|
|
6
|
-
* @augments WJElement
|
|
7
|
-
* @slot - Default slot for the radio button label content.
|
|
8
|
-
* @csspart native-radio - The native wrapper for the radio button.
|
|
9
|
-
* @cssproperty [--wje-radio-margin-inline=0] - Specifies the horizontal (left and right) margin for the radio button. Accepts any valid CSS length unit (e.g., `px`, `rem`, `%`) to control spacing on both sides of the component.
|
|
10
|
-
* @cssproperty [--wje-radio-margin-top=0] - Defines the top margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing above the component.
|
|
11
|
-
* @cssproperty [--wje-radio-margin-bottom=0] - Sets the bottom margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing below the component.
|
|
12
|
-
* // @fires wje-radio:change - Dispatched when the radio button's state changes.
|
|
13
|
-
* // @fires wje-radio:input - Dispatched when the radio button is interacted with.
|
|
14
|
-
*/
|
|
15
|
-
export default class Radio extends WJElement {
|
|
16
|
-
/**
|
|
17
|
-
* Returns the CSS styles for the component.
|
|
18
|
-
* @returns {CSSStyleSheet}
|
|
19
|
-
*/
|
|
20
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
21
|
-
/**
|
|
22
|
-
* Returns the list of attributes to observe for changes.
|
|
23
|
-
* @static
|
|
24
|
-
* @returns {Array<string>}
|
|
25
|
-
*/
|
|
26
|
-
static get observedAttributes(): string[];
|
|
27
|
-
_checked: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Sets the name of the radio button.
|
|
30
|
-
* @param value
|
|
31
|
-
*/
|
|
32
|
-
set checked(value: boolean);
|
|
33
|
-
/**
|
|
34
|
-
* Gets the checked property of the radio button.
|
|
35
|
-
* @returns {boolean}
|
|
36
|
-
*/
|
|
37
|
-
get checked(): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Draws the radio button.
|
|
40
|
-
* @returns {DocumentFragment}
|
|
41
|
-
*/
|
|
42
|
-
draw(): DocumentFragment;
|
|
43
|
-
input: HTMLInputElement;
|
|
44
|
-
/**
|
|
45
|
-
* Sets up the event listeners for the component.
|
|
46
|
-
*/
|
|
47
|
-
afterDraw(): void;
|
|
48
|
-
/**
|
|
49
|
-
* Called when an attribute changes.
|
|
50
|
-
* @param {object} e
|
|
51
|
-
*/
|
|
52
|
-
inputEvent: (e: object) => void;
|
|
53
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
import { default as Radio } from '../wje-radio/radio.js';
|
|
3
|
-
/**
|
|
4
|
-
* `RadioGroup` is a custom web component that represents a group of radio buttons.
|
|
5
|
-
* @summary This element represents a group of radio buttons.
|
|
6
|
-
* @documentation https://elements.webjet.sk/components/radio-group
|
|
7
|
-
* @status stable
|
|
8
|
-
* @augments {WJElement}
|
|
9
|
-
* @slot - The default slot for the radio group.
|
|
10
|
-
* @tag wje-radio-group
|
|
11
|
-
*/
|
|
12
|
-
export default class RadioGroup extends WJElement {
|
|
13
|
-
/**
|
|
14
|
-
* Returns the CSS styles for the component.
|
|
15
|
-
* @static
|
|
16
|
-
* @returns {CSSStyleSheet}
|
|
17
|
-
*/
|
|
18
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the input is associated with a form.
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
*/
|
|
23
|
-
static formAssociated: boolean;
|
|
24
|
-
internals: ElementInternals;
|
|
25
|
-
/**
|
|
26
|
-
* Setter for the value attribute.
|
|
27
|
-
* @param {string} value The value to set.
|
|
28
|
-
*/
|
|
29
|
-
set value(value: string);
|
|
30
|
-
/**
|
|
31
|
-
* Getter for the value attribute.
|
|
32
|
-
* @returns {string} The value of the attribute.
|
|
33
|
-
*/
|
|
34
|
-
get value(): string;
|
|
35
|
-
/**
|
|
36
|
-
* Getter for the form attribute.
|
|
37
|
-
* @returns {HTMLFormElement} The form the input is associated with.
|
|
38
|
-
*/
|
|
39
|
-
get form(): HTMLFormElement;
|
|
40
|
-
/**
|
|
41
|
-
* Getter for the name attribute.
|
|
42
|
-
* @returns {string} The name of the input.
|
|
43
|
-
*/
|
|
44
|
-
get name(): string;
|
|
45
|
-
/**
|
|
46
|
-
* Getter for the type attribute.
|
|
47
|
-
* @returns {string} The type of the input.
|
|
48
|
-
*/
|
|
49
|
-
get type(): string;
|
|
50
|
-
/**
|
|
51
|
-
* Getter for the validity attribute.
|
|
52
|
-
* @returns {ValidityState} The validity state of the input.
|
|
53
|
-
*/
|
|
54
|
-
get validity(): ValidityState;
|
|
55
|
-
/**
|
|
56
|
-
* Getter for the validationMessage attribute.
|
|
57
|
-
* @returns {string} The validation message of the input.
|
|
58
|
-
*/
|
|
59
|
-
get validationMessage(): string;
|
|
60
|
-
/**
|
|
61
|
-
* Getter for the willValidate attribute.
|
|
62
|
-
* @returns {boolean} Whether the input will be validated.
|
|
63
|
-
*/
|
|
64
|
-
get willValidate(): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* @summary Setter for the defaultValue attribute.
|
|
67
|
-
* This method sets the 'value' attribute of the custom input element to the provided value.
|
|
68
|
-
* The 'value' attribute represents the default value of the input element.
|
|
69
|
-
* @param {string} value The value to set as the default value.
|
|
70
|
-
*/
|
|
71
|
-
set defaultValue(value: string);
|
|
72
|
-
/**
|
|
73
|
-
* @summary Getter for the defaultValue attribute.
|
|
74
|
-
* This method retrieves the 'value' attribute of the custom input element.
|
|
75
|
-
* The 'value' attribute represents the default value of the input element.
|
|
76
|
-
* If the 'value' attribute is not set, it returns an empty string.
|
|
77
|
-
* @returns {string} The default value of the input element.
|
|
78
|
-
*/
|
|
79
|
-
get defaultValue(): string;
|
|
80
|
-
/**
|
|
81
|
-
* Draws the component for the radio group.
|
|
82
|
-
* @returns {DocumentFragment}
|
|
83
|
-
*/
|
|
84
|
-
draw(): DocumentFragment;
|
|
85
|
-
/**
|
|
86
|
-
* Adds event listeners after the component is drawn. Handles the selection of radio buttons.
|
|
87
|
-
*/
|
|
88
|
-
afterDraw(): void;
|
|
89
|
-
/**
|
|
90
|
-
* Returns the radio button with the given value.
|
|
91
|
-
* @param {string} value The value of the radio button.
|
|
92
|
-
* @returns {Radio} The radio button.
|
|
93
|
-
*/
|
|
94
|
-
getRadioByValue(value: string): Radio;
|
|
95
|
-
/**
|
|
96
|
-
* Removes the check from all radio buttons.
|
|
97
|
-
*/
|
|
98
|
-
removeCheck(): void;
|
|
99
|
-
/**
|
|
100
|
-
* Sets the given radio button to checked.
|
|
101
|
-
*/
|
|
102
|
-
checkRadio(value: any): boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Retrieves all direct child elements of the current element.
|
|
105
|
-
* @returns {HTMLElement[]} An array of child elements.
|
|
106
|
-
*/
|
|
107
|
-
getAllElements(): HTMLElement[];
|
|
108
|
-
/**
|
|
109
|
-
* The formResetCallback method is a built-in lifecycle callback that gets called when a form gets reset.
|
|
110
|
-
* This method is responsible for resetting the value of the custom input element to its default value.
|
|
111
|
-
* It also resets the form value and validity state in the form internals.
|
|
112
|
-
* @function
|
|
113
|
-
*/
|
|
114
|
-
formResetCallback(): void;
|
|
115
|
-
/**
|
|
116
|
-
* The formStateRestoreCallback method is a built-in lifecycle callback that gets called when the state of a form-associated custom element is restored.
|
|
117
|
-
* This method is responsible for restoring the value of the custom input element to its saved state.
|
|
118
|
-
* It also restores the form value and validity state in the form internals to their saved states.
|
|
119
|
-
* @param {object} state The saved state of the custom input element.
|
|
120
|
-
* @function
|
|
121
|
-
*/
|
|
122
|
-
formStateRestoreCallback(state: object): void;
|
|
123
|
-
/**
|
|
124
|
-
* The formStateSaveCallback method is a built-in lifecycle callback that gets called when the state of a form-associated custom element is saved.
|
|
125
|
-
* This method is responsible for saving the value of the custom input element.
|
|
126
|
-
* @returns {object} The saved state of the custom input element.
|
|
127
|
-
* @function
|
|
128
|
-
*/
|
|
129
|
-
formStateSaveCallback(): object;
|
|
130
|
-
/**
|
|
131
|
-
* The formDisabledCallback method is a built-in lifecycle callback that gets called when the disabled state of a form-associated custom element changes.
|
|
132
|
-
* This method is not implemented yet.
|
|
133
|
-
* @param {boolean} disabled The new disabled state of the custom input element.
|
|
134
|
-
* @function
|
|
135
|
-
*/
|
|
136
|
-
formDisabledCallback(disabled: boolean): void;
|
|
137
|
-
}
|