wj-elements 0.1.196 → 0.1.197
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-dialog.js +1 -1
- package/dist/wje-file-upload.js +1 -2
- package/dist/wje-file-upload.js.map +1 -1
- package/dist/wje-routerx.js +1 -1
- package/dist/wje-routerx.js.map +1 -1
- package/package.json +1 -1
- package/dist/packages/index.d.ts +0 -107
- package/dist/packages/internals/form-associated-element.d.ts +0 -143
- package/dist/packages/localize/localize.d.ts +0 -47
- 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/base-path.d.ts +0 -14
- package/dist/packages/utils/date.d.ts +0 -2
- package/dist/packages/utils/element-utils.d.ts +0 -46
- package/dist/packages/utils/event.d.ts +0 -67
- package/dist/packages/utils/icon-library.d.ts +0 -3
- package/dist/packages/utils/localize.d.ts +0 -4
- package/dist/packages/utils/permissions.d.ts +0 -40
- package/dist/packages/utils/universal-service.d.ts +0 -18
- package/dist/packages/utils/utils.d.ts +0 -1
- 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 -204
- 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 -96
- 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 -99
- package/dist/packages/wje-chip/chip.d.ts +0 -2
- package/dist/packages/wje-chip/chip.element.d.ts +0 -64
- 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 -127
- 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 -84
- package/dist/packages/wje-element/element.d.ts +0 -306
- 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 -68
- 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 -83
- 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/library.d.ts +0 -3
- 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 -187
- package/dist/packages/wje-img/img.d.ts +0 -2
- package/dist/packages/wje-img/img.element.d.ts +0 -118
- 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 -172
- package/dist/packages/wje-input/input.d.ts +0 -2
- package/dist/packages/wje-input/input.element.d.ts +0 -159
- 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 -182
- 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 -158
- 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 -95
- package/dist/packages/wje-options/options.d.ts +0 -2
- package/dist/packages/wje-options/options.element.d.ts +0 -232
- 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 -94
- 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 -64
- package/dist/packages/wje-radio-group/radio-group.d.ts +0 -2
- package/dist/packages/wje-radio-group/radio-group.element.d.ts +0 -61
- 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 -358
- 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-sliding-container/sliding-container.d.ts +0 -2
- package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +0 -265
- 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 -65
- 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 -80
- package/dist/packages/wje-store/default-store-actions.d.ts +0 -25
- package/dist/packages/wje-store/pubsub.d.ts +0 -22
- 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 -66
- package/dist/packages/wje-tab-group/tab-group.d.ts +0 -2
- package/dist/packages/wje-tab-group/tab-group.element.d.ts +0 -107
- 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 -89
- 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 -77
- package/dist/packages/wje-tree/tree.d.ts +0 -2
- package/dist/packages/wje-tree/tree.element.d.ts +0 -105
- 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,153 +0,0 @@
|
|
|
1
|
-
import { default as PubSub } from './pubsub.js';
|
|
2
|
-
export let store: Store;
|
|
3
|
-
import * as defaultStoreActions from './default-store-actions.js';
|
|
4
|
-
/**
|
|
5
|
-
* @summary A reactive state management system with support for reducers, events, and state immutability.
|
|
6
|
-
* @description The `Store` class provides a centralized way to manage application state with actions, reducers, and event subscriptions. It supports handling both object and array state, with flexibility for custom reducers.
|
|
7
|
-
* @example
|
|
8
|
-
* const store = new Store({
|
|
9
|
-
* reducer: (state, action) => { ... },
|
|
10
|
-
* state: { user: { id: 1, name: 'John' } }
|
|
11
|
-
* });
|
|
12
|
-
* store.subscribe('user', (newState, oldState) => console.log('User changed:', newState));
|
|
13
|
-
* store.dispatch({ type: 'user/UPDATE', payload: { name: 'Jane' } });
|
|
14
|
-
*/
|
|
15
|
-
declare class Store {
|
|
16
|
-
/**
|
|
17
|
-
* Initializes the store with optional reducer and state.
|
|
18
|
-
* @param {object} [params] Configuration for the store.
|
|
19
|
-
* @param {Function} [params.reducer] Initial reducer function for handling state updates.
|
|
20
|
-
* @param {object} [params.state] Initial state of the store.
|
|
21
|
-
*/
|
|
22
|
-
constructor(params?: {
|
|
23
|
-
reducer?: Function;
|
|
24
|
-
state?: object;
|
|
25
|
-
});
|
|
26
|
-
_state: {};
|
|
27
|
-
_reducer: Function;
|
|
28
|
-
events: PubSub;
|
|
29
|
-
status: string;
|
|
30
|
-
_isPause: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Dispatches an action to update the state by invoking the reducer function.
|
|
33
|
-
* @param {object} action The action object containing the type and any associated payload.
|
|
34
|
-
* @param {string} action.type The type of the action being dispatched.
|
|
35
|
-
* @returns {boolean} Returns `true` after the state has been successfully updated.
|
|
36
|
-
* @example
|
|
37
|
-
* const action = { type: 'INCREMENT', payload: { amount: 1 } };
|
|
38
|
-
* store.dispatch(action);
|
|
39
|
-
*/
|
|
40
|
-
dispatch(action: {
|
|
41
|
-
type: string;
|
|
42
|
-
}): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Retrieves a deep copy of the current state to ensure immutability.
|
|
45
|
-
* @returns {object} A deep copy of the current state.
|
|
46
|
-
* @example
|
|
47
|
-
* const currentState = store.getState();
|
|
48
|
-
* console.log(currentState);
|
|
49
|
-
*/
|
|
50
|
-
getState(): object;
|
|
51
|
-
/**
|
|
52
|
-
* Subscribes to a specific event with a provided callback function.
|
|
53
|
-
* @param {string} eventName The name of the event to subscribe to.
|
|
54
|
-
* @param {Function} callbackFn The function to execute when the event is triggered.
|
|
55
|
-
* @returns {Function} - A function to unsubscribe from the event.
|
|
56
|
-
* @example
|
|
57
|
-
* const unsubscribe = store.subscribe('stateChange', (newState) => {
|
|
58
|
-
* console.log('State changed:', newState);
|
|
59
|
-
* });
|
|
60
|
-
* // Later, to unsubscribe
|
|
61
|
-
* unsubscribe();
|
|
62
|
-
*/
|
|
63
|
-
subscribe(eventName: string, callbackFn: Function): Function;
|
|
64
|
-
/**
|
|
65
|
-
* Unsubscribes from a specific event by removing all associated listeners.
|
|
66
|
-
* @param {string} eventName The name of the event to unsubscribe from.
|
|
67
|
-
* @returns {void}
|
|
68
|
-
* @example
|
|
69
|
-
* store.unsubscribe('stateChange');
|
|
70
|
-
*/
|
|
71
|
-
unsubscribe(eventName: string): void;
|
|
72
|
-
/**
|
|
73
|
-
* Pauses event handling or other operations.
|
|
74
|
-
* @returns {this} Returns the current instance for method chaining.
|
|
75
|
-
* @example
|
|
76
|
-
* store.pause().doSomething();
|
|
77
|
-
*/
|
|
78
|
-
pause(): this;
|
|
79
|
-
/**
|
|
80
|
-
* Resumes event handling or other operations.
|
|
81
|
-
* @param {*} [val] Optional value to pass while resuming.
|
|
82
|
-
* @returns {this} Returns the current instance for method chaining.
|
|
83
|
-
* @example
|
|
84
|
-
* store.play().doSomething();
|
|
85
|
-
*/
|
|
86
|
-
play(val?: any): this;
|
|
87
|
-
/**
|
|
88
|
-
* Merges a new reducer function into the existing reducer for a specific state property.
|
|
89
|
-
* @param {string} stateValueName The key in the state object that the new reducer will manage.
|
|
90
|
-
* @param {Function} newReducer The reducer function to handle updates for the specified state property.
|
|
91
|
-
* @returns {void}
|
|
92
|
-
* @example
|
|
93
|
-
* const newReducer = (newState, currentState) => ({ ...currentState, ...newState });
|
|
94
|
-
* store.mergeReducers('user', newReducer);
|
|
95
|
-
*/
|
|
96
|
-
mergeReducers(stateValueName: string, newReducer: Function): void;
|
|
97
|
-
/**
|
|
98
|
-
* Synchronizes each entry in an array with the store by defining or updating state entries.
|
|
99
|
-
* @param {string} storeKey The key prefix used for defining or updating store entries.
|
|
100
|
-
* @param {Array<object>} [array] The array of entries to be synchronized with the store.
|
|
101
|
-
* @param {string} [identificator] The property name used as a unique identifier for each entry.
|
|
102
|
-
* @returns {void}
|
|
103
|
-
* @example
|
|
104
|
-
* const data = [{ id: 1, name: 'Item 1' }, { id: 2, name: 'Item 2' }];
|
|
105
|
-
* store.makeEveryArrayEntryAsStoreState('items', data, 'id');
|
|
106
|
-
*/
|
|
107
|
-
makeEveryArrayEntryAsStoreState(storeKey: string, array?: Array<object>, identificator?: string): void;
|
|
108
|
-
/**
|
|
109
|
-
* Defines a new state variable and associates it with a reducer.
|
|
110
|
-
* @param {string} stateValueName The name of the state variable to define.
|
|
111
|
-
* @param {*} defaultValue The initial value of the state variable.
|
|
112
|
-
* @param {Function|null} [reducer] An optional reducer function to manage updates for the state variable.
|
|
113
|
-
* @param {string} [key] The key used to identify individual entries if the state value is an array or object.
|
|
114
|
-
* @returns {void}
|
|
115
|
-
* @example
|
|
116
|
-
* // Define a new state with a custom reducer
|
|
117
|
-
* store.define('user', { id: 1, name: 'John Doe' }, (newState, currentState) => ({ ...currentState, ...newState }));
|
|
118
|
-
* @example
|
|
119
|
-
* // Define a new state with default array reducer
|
|
120
|
-
* store.define('items', [], null, 'itemId');
|
|
121
|
-
*/
|
|
122
|
-
define(stateValueName: string, defaultValue: any, reducer?: Function | null, key?: string): void;
|
|
123
|
-
/**
|
|
124
|
-
* Refreshes the state by wrapping it in a Proxy to track changes and notify subscribers.
|
|
125
|
-
* @param {object} newState The new state object to be set. Defaults to an empty object if not provided.
|
|
126
|
-
* @returns {void}
|
|
127
|
-
* @example
|
|
128
|
-
* store.refreshProxy({ user: { id: 1, name: 'John Doe' } });
|
|
129
|
-
*/
|
|
130
|
-
refreshProxy(newState: object): void;
|
|
131
|
-
/**
|
|
132
|
-
* Creates a reducer function to manage an object state.
|
|
133
|
-
* @param {string} stateValueName The name of the state property this reducer manages.
|
|
134
|
-
* @returns {Function} A reducer function that handles `ADD`, `UPDATE`, and `DELETE` actions for the specified state property.
|
|
135
|
-
* @throws {Error} If the payload is an array, an error is logged since the reducer is designed for object state management.
|
|
136
|
-
* @example
|
|
137
|
-
* const userReducer = store.createObjectReducer('user');
|
|
138
|
-
* const newState = userReducer({ type: 'user/ADD', payload: { id: 1, name: 'John Doe' } });
|
|
139
|
-
*/
|
|
140
|
-
createObjectReducer(stateValueName: string): Function;
|
|
141
|
-
/**
|
|
142
|
-
* Creates a reducer function to manage an array state.
|
|
143
|
-
* @param {string} stateValueName The name of the state property this reducer manages.
|
|
144
|
-
* @param {string} key The unique key used to identify items in the array for updates and deletions.
|
|
145
|
-
* @returns {Function} A reducer function that handles `ADD`, `ADD_MANY`, `UPDATE`, `DELETE`, and `LOAD` actions for the specified state property.
|
|
146
|
-
* @throws {Error} If `action.payload` is not an array when required.
|
|
147
|
-
* @example
|
|
148
|
-
* const itemsReducer = store.createArrayReducer('items', 'id');
|
|
149
|
-
* const newState = itemsReducer({ type: 'items/ADD', payload: { id: 1, name: 'Item 1' } });
|
|
150
|
-
*/
|
|
151
|
-
createArrayReducer(stateValueName: string, key: string): Function;
|
|
152
|
-
}
|
|
153
|
-
export { defaultStoreActions };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `Tab` is a custom web component that represents a tab.
|
|
4
|
-
* @summary This element represents a tab.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/tab
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @param {string} panel The name of the tab panel. This is used to identify the corresponding tab panel.
|
|
9
|
-
* @param {string} route The route to navigate to when the tab is clicked.
|
|
10
|
-
* @cssproperty [--wje-tab-text-transform=uppercase] - The text transformation for the tab (e.g., uppercase, lowercase).
|
|
11
|
-
* @cssproperty [--wje-tab-font-weight=500] - The font weight of the tab text.
|
|
12
|
-
* @cssproperty [--wje-tab-letter-spacing=0.06em] - The letter spacing of the tab text.
|
|
13
|
-
* @cssproperty [--wje-tab-padding-inline=1rem] - The horizontal padding of the tab.
|
|
14
|
-
* @cssproperty [--wje-tab-padding-top=.75rem] - The top padding of the tab text.
|
|
15
|
-
* @cssproperty [--wje-tab-padding-bottom=.75rem] - The bottom padding of the tab text.
|
|
16
|
-
* @cssproperty [--wje-tab-color-active=var(--wje-color-primary-11)] - The text color of the active tab.
|
|
17
|
-
* @cssproperty [--wje-tab-color-hover=var(--wje-color-primary-1)] - The text color of the tab when hovered.
|
|
18
|
-
* //@fires wje-tab:change - Dispatched when the tab is changed.
|
|
19
|
-
* @tag wje-tab
|
|
20
|
-
*/
|
|
21
|
-
export default class Tab extends WJElement {
|
|
22
|
-
/**
|
|
23
|
-
* Returns the CSS styles for the component.
|
|
24
|
-
* @static
|
|
25
|
-
* @returns {CSSStyleSheet}
|
|
26
|
-
*/
|
|
27
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
28
|
-
/**
|
|
29
|
-
* Indicates whether this is the last tab.
|
|
30
|
-
* @type {boolean}
|
|
31
|
-
*/
|
|
32
|
-
last: boolean;
|
|
33
|
-
_hasPanel: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Sets the panel attribute to the specified value.
|
|
36
|
-
* @param {string} value The value to set for the panel attribute.
|
|
37
|
-
*/
|
|
38
|
-
set panel(value: string);
|
|
39
|
-
/**
|
|
40
|
-
* Retrieves the value of the 'panel' attribute of the element.
|
|
41
|
-
* @returns {string|null} Returns the 'panel' attribute value if it exists; otherwise, returns null.
|
|
42
|
-
*/
|
|
43
|
-
get panel(): string | null;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the value of the 'route' attribute for the current object.
|
|
46
|
-
* @param {string} value The new value to set for the 'route' attribute.
|
|
47
|
-
*/
|
|
48
|
-
set route(value: string);
|
|
49
|
-
/**
|
|
50
|
-
* Retrieves the value of the 'route' attribute.
|
|
51
|
-
* If the 'route' attribute is not set, it returns null.
|
|
52
|
-
* @returns {string|null} The value of the 'route' attribute or null if not set.
|
|
53
|
-
*/
|
|
54
|
-
get route(): string | null;
|
|
55
|
-
/**
|
|
56
|
-
* Draws the component for the tab.
|
|
57
|
-
* @returns {DocumentFragment}
|
|
58
|
-
*/
|
|
59
|
-
draw(): DocumentFragment;
|
|
60
|
-
/**
|
|
61
|
-
* Sets up event listeners after the component is rendered.
|
|
62
|
-
* // @fires wje-tab:change - Dispatched when the component is clicked, indicating a tab change.
|
|
63
|
-
*/
|
|
64
|
-
afterDraw(): void;
|
|
65
|
-
unbindRouterLinks: any;
|
|
66
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `TabGroup` is a custom web component that represents a group of tabs.
|
|
4
|
-
* @summary This element represents a group of tabs.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/tab-group
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments WJElement
|
|
8
|
-
* @param {string} type The type of the tab group. Can be either 'panel' or 'route'.
|
|
9
|
-
* @slot - The default slot for the tab group.
|
|
10
|
-
* @slot nav - Slot for the navigation of the tab group.
|
|
11
|
-
* @cssproperty [--wje-tab-group-padding=1rem] - Specifies the padding inside the tab group. This property defines the space between the content of the tab group and its outer boundary. Accepts any valid CSS length unit (e.g., `px`, `rem`, `em`, `%`).
|
|
12
|
-
* @tag wje-tab-group
|
|
13
|
-
*/
|
|
14
|
-
export default class TabGroup extends WJElement {
|
|
15
|
-
/**
|
|
16
|
-
* Returns the CSS styles for the component.
|
|
17
|
-
* @static
|
|
18
|
-
* @returns {CSSStyleSheet}
|
|
19
|
-
*/
|
|
20
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the 'type' attribute of the element to the specified value.
|
|
23
|
-
* @param {string} value The value to set for the 'type' attribute.
|
|
24
|
-
*/
|
|
25
|
-
set type(value: string);
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves the `type` attribute of the element.
|
|
28
|
-
* If the `type` attribute is not set, it defaults to `'panel'`.
|
|
29
|
-
* @returns {string} The value of the `type` attribute or the default value `'panel'`.
|
|
30
|
-
*/
|
|
31
|
-
get type(): string;
|
|
32
|
-
/**
|
|
33
|
-
* Sets up the event listeners before the component is drawn.
|
|
34
|
-
* This method is called before the component is drawn.
|
|
35
|
-
* It is used to set up event listeners.
|
|
36
|
-
*/
|
|
37
|
-
beforeDraw(): void;
|
|
38
|
-
/**
|
|
39
|
-
* Creates and returns a document fragment containing a structured layout for a tab group.
|
|
40
|
-
* The tab group layout includes a `header` section with navigational elements,
|
|
41
|
-
* a `section` element for tab panels, and slots for customization such as additional navigation items,
|
|
42
|
-
* dropdowns, and more.
|
|
43
|
-
* The structure comprises:
|
|
44
|
-
* - A `div` container with relevant styling and part attributes.
|
|
45
|
-
* - A `header` for tabs, including a slot for navigation (`nav`) and additional tabs in a dropdown (`moreDropdown`).
|
|
46
|
-
* - A `section` for tab panels with a customizable `slot`.
|
|
47
|
-
* This function also initializes the `nav` and `moreDropdown` properties for external use.
|
|
48
|
-
* @returns {DocumentFragment} The completed document fragment containing the tab group layout.
|
|
49
|
-
*/
|
|
50
|
-
draw(): DocumentFragment;
|
|
51
|
-
nav: HTMLElement;
|
|
52
|
-
moreDropdown: HTMLElement;
|
|
53
|
-
/**
|
|
54
|
-
* Executes necessary initializations and attaches event listeners after a drawing operation.
|
|
55
|
-
* Handles active tab selection, 'wje-tab:change' event binding, and window resize event for overflow checking.
|
|
56
|
-
* @returns {void} Does not return a value.
|
|
57
|
-
*/
|
|
58
|
-
afterDraw(): void;
|
|
59
|
-
/**
|
|
60
|
-
* Checks if the tabs within a navigation bar overflow the available space.
|
|
61
|
-
* Moves overflowing tabs into a dropdown menu and updates their state accordingly.
|
|
62
|
-
* @returns {void} This method does not return a value.
|
|
63
|
-
*/
|
|
64
|
-
checkOverflow(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Removes the 'active' class from all panel and tab elements.
|
|
67
|
-
* @returns {void} This method does not return a value.
|
|
68
|
-
*/
|
|
69
|
-
removeActiveTab(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Sets the active tab and panel.
|
|
72
|
-
* @param {string} tab The name of the tab to set as active.
|
|
73
|
-
*/
|
|
74
|
-
setActiveTab(tab: string): void;
|
|
75
|
-
/**
|
|
76
|
-
* Returns the currently active tab.
|
|
77
|
-
* @returns {Element|null} The active tab, or null if no tab is active.
|
|
78
|
-
*/
|
|
79
|
-
getActiveTab(): Element | null;
|
|
80
|
-
/**
|
|
81
|
-
* Returns all tabs.
|
|
82
|
-
* @returns {Array<Element>} An array of all tabs.
|
|
83
|
-
*/
|
|
84
|
-
getTabAll(): Array<Element>;
|
|
85
|
-
/**
|
|
86
|
-
* Returns all panels.
|
|
87
|
-
* @returns {Array<Element>} An array of all panels.
|
|
88
|
-
*/
|
|
89
|
-
getPanelAll(): Array<Element>;
|
|
90
|
-
/**
|
|
91
|
-
* Returns the names of all tabs.
|
|
92
|
-
* @returns {Array<string>} An array of all tab names.
|
|
93
|
-
*/
|
|
94
|
-
getPanelAllName(): Array<string>;
|
|
95
|
-
/**
|
|
96
|
-
* Toggles the visibility of the "more" dropdown based on the presence of tabs in the "more" slot.
|
|
97
|
-
* @returns {void} Does not return a value.
|
|
98
|
-
*/
|
|
99
|
-
toggleMoreVisibility(): void;
|
|
100
|
-
/**
|
|
101
|
-
* Toggles the "dropdown-active" class on the element based on its "active" status
|
|
102
|
-
* and the value of its "slot" attribute.
|
|
103
|
-
* @param {HTMLElement} el The HTML element to evaluate and apply the toggle logic.
|
|
104
|
-
* @returns {void} This method does not return any value.
|
|
105
|
-
*/
|
|
106
|
-
dropdownActive(el: HTMLElement): void;
|
|
107
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `TabPanel` is a custom web component that represents a tab panel.
|
|
4
|
-
* @summary This element represents a tab panel.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/tab-panel
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @slot - The default slot for the tab panel.
|
|
9
|
-
* @tag wje-tab-panel
|
|
10
|
-
*/
|
|
11
|
-
export default class TabPanel extends WJElement {
|
|
12
|
-
/**
|
|
13
|
-
* Returns the CSS styles for the component.
|
|
14
|
-
* @static
|
|
15
|
-
* @returns {CSSStyleSheet}
|
|
16
|
-
*/
|
|
17
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
18
|
-
/**
|
|
19
|
-
* Draws the component for the tab panel.
|
|
20
|
-
* @returns {DocumentFragment}
|
|
21
|
-
*/
|
|
22
|
-
draw(): DocumentFragment;
|
|
23
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { FormAssociatedElement } from '../internals/form-associated-element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `Textarea` is a custom web component that represents a textarea input.
|
|
4
|
-
* @summary This element represents a textarea input.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/textarea
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {FormAssociatedElement}
|
|
8
|
-
* @csspart native - The native textarea wrapper.
|
|
9
|
-
* @csspart input - The textarea input.
|
|
10
|
-
* @csspart wrapper - The textarea wrapper.
|
|
11
|
-
* @cssproperty [--wje-textarea-font-family=var(--wje-font-family)] - Specifies the font family used for the textarea. Accepts any valid CSS font-family value.
|
|
12
|
-
* @cssproperty [--wje-textarea-background-color=var(--wje-background)] - Sets the background color of the textarea. Accepts any valid CSS color value.
|
|
13
|
-
* @cssproperty [--wje-textarea-color=var(--wje-color)] - Defines the text color within the textarea. Accepts any valid CSS color value.
|
|
14
|
-
* @cssproperty [--wje-textarea-color-invalid=var(--wje-color-danger)] - Changes the text color of the textarea when it is invalid. Useful for highlighting validation errors.
|
|
15
|
-
* @cssproperty [--wje-textarea-border-width=1px] - Specifies the width of the textarea's border. Accepts any valid CSS length unit.
|
|
16
|
-
* @cssproperty [--wje-textarea-border-style=solid] - Sets the style of the textarea's border. Accepts standard CSS border styles such as `solid`, `dashed`, or `dotted`.
|
|
17
|
-
* @cssproperty [--wje-textarea-border-color=var(--wje-border-color)] - Defines the border color of the textarea. Accepts any valid CSS color value.
|
|
18
|
-
* @cssproperty [--wje-textarea-border-color-focus=var(--wje-color-primary)] - Specifies the border color of the textarea when it is focused. Enhances the user experience by providing visual feedback.
|
|
19
|
-
* @cssproperty [--wje-textarea-border-radius=4px] - Determines the border radius of the textarea, defining how rounded its corners are. Accepts any valid CSS length unit.
|
|
20
|
-
* @cssproperty [--wje-textarea-margin-bottom=.5rem] - Sets the bottom margin of the textarea. Ensures spacing between the textarea and other elements.
|
|
21
|
-
* @cssproperty [--wje-textarea-line-height=20px] - Specifies the line height of the text within the textarea. Helps control the vertical spacing of the text.
|
|
22
|
-
* @cssproperty [--wje-textarea-padding=0.5rem] - Defines the padding inside the textarea. Controls the spacing between the content and the border.
|
|
23
|
-
* @tag wje-textarea
|
|
24
|
-
*/
|
|
25
|
-
export default class Textarea extends FormAssociatedElement {
|
|
26
|
-
/**
|
|
27
|
-
* Returns the CSS styles for the component.
|
|
28
|
-
* @static
|
|
29
|
-
* @returns {CSSStyleSheet} The CSS stylesheet
|
|
30
|
-
*/
|
|
31
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the list of attributes to observe for changes.
|
|
34
|
-
* @static
|
|
35
|
-
* @returns {Array<string>}
|
|
36
|
-
*/
|
|
37
|
-
static get observedAttributes(): Array<string>;
|
|
38
|
-
pristine: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Setter for the value attribute.
|
|
41
|
-
* @param {string} value The value to set.
|
|
42
|
-
*/
|
|
43
|
-
set value(value: string);
|
|
44
|
-
/**
|
|
45
|
-
* Getter for the value attribute.
|
|
46
|
-
* @returns {string} The value of the attribute.
|
|
47
|
-
*/
|
|
48
|
-
get value(): string;
|
|
49
|
-
_value: string;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the `validateOnChange` property. If set to a truthy value, it adds the
|
|
52
|
-
* `validate-on-change` attribute to the element. If set to a falsy value, it
|
|
53
|
-
* removes the `validate-on-change` attribute from the element.
|
|
54
|
-
* @param {boolean} value Determines whether to add or remove the
|
|
55
|
-
* `validate-on-change` attribute. A truthy value adds the attribute, whereas a
|
|
56
|
-
* falsy value removes it.
|
|
57
|
-
*/
|
|
58
|
-
set validateOnChange(value: boolean);
|
|
59
|
-
/**
|
|
60
|
-
* Getter for the validateOnChange attribute.
|
|
61
|
-
* @returns {boolean} Whether the attribute is present.
|
|
62
|
-
*/
|
|
63
|
-
get validateOnChange(): boolean;
|
|
64
|
-
set placeholder(value: string);
|
|
65
|
-
get placeholder(): string;
|
|
66
|
-
/**
|
|
67
|
-
* Draws the component for the textarea.
|
|
68
|
-
* @returns {DocumentFragment}
|
|
69
|
-
*/
|
|
70
|
-
draw(): DocumentFragment;
|
|
71
|
-
counterElement: HTMLDivElement;
|
|
72
|
-
native: HTMLDivElement;
|
|
73
|
-
labelElement: HTMLLabelElement;
|
|
74
|
-
input: HTMLTextAreaElement;
|
|
75
|
-
/**
|
|
76
|
-
* Sets up the event listeners after the component is drawn.
|
|
77
|
-
*/
|
|
78
|
-
afterDraw(): void;
|
|
79
|
-
resizeObserver: ResizeObserver;
|
|
80
|
-
/**
|
|
81
|
-
* Sets the height of the textarea.
|
|
82
|
-
*/
|
|
83
|
-
setTextareaHeight: () => void;
|
|
84
|
-
/**
|
|
85
|
-
* Updates the counter for the textarea.
|
|
86
|
-
* @param {Event} e The event object.
|
|
87
|
-
*/
|
|
88
|
-
counterFn: (e: Event) => void;
|
|
89
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* @summary Thumbnail class
|
|
4
|
-
* @documentation https://elements.webjet.sk/components/thumbnail
|
|
5
|
-
* @status stable
|
|
6
|
-
* @augments WJElement
|
|
7
|
-
* @slot thumbnail-slot - The slot for the thumbnail content.
|
|
8
|
-
* @cssproperty [--wje-thumbnail-width=48px] - Defines the width of the thumbnail. Accepts any valid CSS length unit such as `px`, `rem`, or `%`.
|
|
9
|
-
* @cssproperty [--wje-thumbnail-height=48px] - Specifies the height of the thumbnail. Accepts any valid CSS length unit.
|
|
10
|
-
* @cssproperty [--wje-thumbnail-border-radius=var(--wje-border-radius-medium)] - Sets the border radius of the thumbnail, determining how rounded its corners appear. Accepts any valid CSS length unit or CSS variable.
|
|
11
|
-
* @tag thumbnail-element
|
|
12
|
-
*/
|
|
13
|
-
export default class Thumbnail extends WJElement {
|
|
14
|
-
/**
|
|
15
|
-
* Returns the CSS stylesheet for the component.
|
|
16
|
-
* @static
|
|
17
|
-
* @returns {CSSStyleSheet} The CSS stylesheet
|
|
18
|
-
*/
|
|
19
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
20
|
-
/**
|
|
21
|
-
* Returns the list of observed attributes.
|
|
22
|
-
* @static
|
|
23
|
-
* @returns {Array} An empty array
|
|
24
|
-
*/
|
|
25
|
-
static get observedAttributes(): any[];
|
|
26
|
-
/**
|
|
27
|
-
* Draws the component for the thumbnail.
|
|
28
|
-
* @returns {object} Document fragment
|
|
29
|
-
*/
|
|
30
|
-
draw(): object;
|
|
31
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `Timeline` is a custom web component that represents a timeline.
|
|
4
|
-
* @summary This element represents a timeline.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/timeline
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments WJElement
|
|
8
|
-
* @slot - Slot for the timeline items.
|
|
9
|
-
* @csspart native - The native part of the rating component.
|
|
10
|
-
* @csspart vertical-line - The vertical line part of the rating component.
|
|
11
|
-
* @tag wje-timeline
|
|
12
|
-
*/
|
|
13
|
-
export default class Timeline extends WJElement {
|
|
14
|
-
/**
|
|
15
|
-
* Returns the CSS stylesheet for the component.
|
|
16
|
-
* @static
|
|
17
|
-
* @returns {CSSStyleSheet} The CSS stylesheet
|
|
18
|
-
*/
|
|
19
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
20
|
-
/**
|
|
21
|
-
* Draws the component for the timeline.
|
|
22
|
-
* @returns {DocumentFragment}
|
|
23
|
-
*/
|
|
24
|
-
draw(): DocumentFragment;
|
|
25
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* The TimelineItem component.
|
|
4
|
-
* @summary This element represents a timeline item.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/timeline-item
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @csspart native - The native part of the timeline item.
|
|
9
|
-
* @csspart content-container - The content container part of the timeline item.
|
|
10
|
-
* @csspart default-icon - The default icon part of the timeline item.
|
|
11
|
-
* @slot - Slot for the content of the timeline item.
|
|
12
|
-
* @slot status - Slot for the status of the timeline item.
|
|
13
|
-
* @tag wje-timeline-item
|
|
14
|
-
*/
|
|
15
|
-
export default class TimelineItem extends WJElement {
|
|
16
|
-
/**
|
|
17
|
-
* Returns the CSS styles for the component.
|
|
18
|
-
* @static
|
|
19
|
-
* @returns {CSSStyleSheet}
|
|
20
|
-
*/
|
|
21
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
22
|
-
/**
|
|
23
|
-
* Draws the component for the timeline item.
|
|
24
|
-
* @returns {DocumentFragment}
|
|
25
|
-
*/
|
|
26
|
-
draw(): DocumentFragment;
|
|
27
|
-
}
|