wj-elements 0.7.5 → 0.7.7
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/custom-elements.json +7471 -7345
- package/dist/packages/translations/en-gb.d.ts +1 -0
- package/dist/packages/translations/sk-sk.d.ts +1 -0
- package/dist/packages/wje-button/button.element.d.ts +14 -1
- package/dist/packages/wje-img/img.element.d.ts +4 -4
- package/dist/packages/wje-pagination/pagination.element.d.ts +21 -0
- package/dist/web-types.json +611 -597
- package/dist/wje-breadcrumb.js +7 -3
- package/dist/wje-breadcrumb.js.map +1 -1
- package/dist/wje-button.js +54 -9
- package/dist/wje-button.js.map +1 -1
- package/dist/wje-chip.js +1 -1
- package/dist/wje-chip.js.map +1 -1
- package/dist/wje-dialog.js +1 -1
- package/dist/wje-dialog.js.map +1 -1
- package/dist/wje-file-upload-item.js +2 -2
- package/dist/wje-file-upload-item.js.map +1 -1
- package/dist/wje-file-upload.js +2 -2
- package/dist/wje-file-upload.js.map +1 -1
- package/dist/wje-img.js +4 -3
- package/dist/wje-img.js.map +1 -1
- package/dist/wje-master.js +2 -0
- package/dist/wje-master.js.map +1 -1
- package/dist/wje-pagination.js +33 -7
- package/dist/wje-pagination.js.map +1 -1
- package/dist/wje-toast.js +1 -1
- package/dist/wje-toast.js.map +1 -1
- package/dist/wje-toolbar-action.js +1 -1
- package/dist/wje-toolbar-action.js.map +1 -1
- package/package.json +2 -1
|
@@ -15,6 +15,7 @@ export const enGb: {
|
|
|
15
15
|
'wj.stepper.button.previous': string;
|
|
16
16
|
'wj.stepper.step': string;
|
|
17
17
|
'wj.pagination.of': string;
|
|
18
|
+
'wj.pagination.itemsPerPage': string;
|
|
18
19
|
'wj.pagination.first': string;
|
|
19
20
|
'wj.pagination.prev': string;
|
|
20
21
|
'wj.pagination.next': string;
|
|
@@ -15,6 +15,7 @@ export const skSk: {
|
|
|
15
15
|
'wj.stepper.button.previous': string;
|
|
16
16
|
'wj.stepper.step': string;
|
|
17
17
|
'wj.pagination.of': string;
|
|
18
|
+
'wj.pagination.itemsPerPage': string;
|
|
18
19
|
'wj.pagination.first': string;
|
|
19
20
|
'wj.pagination.prev': string;
|
|
20
21
|
'wj.pagination.next': string;
|
|
@@ -4,9 +4,11 @@ import { default as WJElement } from '../wje-element/element.js';
|
|
|
4
4
|
* @documentation https://elements.webjet.sk/components/button
|
|
5
5
|
* @status stable
|
|
6
6
|
* @augments WJElement
|
|
7
|
+
* @attribute {string} label - Accessible name forwarded to the internal native button or link.
|
|
7
8
|
* @dependency wje-icon
|
|
8
9
|
* @slot - The button main content.
|
|
9
10
|
* @slot icon - The button icon.
|
|
11
|
+
* @slot icon-only - The icon used when the button has no visible text.
|
|
10
12
|
* @slot caret - The button caret.
|
|
11
13
|
* @slot start - The button start slot.
|
|
12
14
|
* @slot end - The button end slot.
|
|
@@ -87,6 +89,16 @@ export default class Button extends WJElement {
|
|
|
87
89
|
* @returns {boolean}
|
|
88
90
|
*/
|
|
89
91
|
get tooltip(): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Set the accessible label of the Button element.
|
|
94
|
+
* @param {string|null} value The accessible label
|
|
95
|
+
*/
|
|
96
|
+
set label(value: string | null);
|
|
97
|
+
/**
|
|
98
|
+
* Get the accessible label of the Button element.
|
|
99
|
+
* @returns {string|null} label - The accessible label
|
|
100
|
+
*/
|
|
101
|
+
get label(): string | null;
|
|
90
102
|
/**
|
|
91
103
|
* Set variant of the Button element.
|
|
92
104
|
* @param value
|
|
@@ -184,6 +196,7 @@ export default class Button extends WJElement {
|
|
|
184
196
|
* @returns {object} fragment - The document fragment containing the drawn element.
|
|
185
197
|
*/
|
|
186
198
|
draw(): object;
|
|
199
|
+
native: HTMLAnchorElement | HTMLButtonElement;
|
|
187
200
|
hasToggle: boolean;
|
|
188
201
|
slotToggle: HTMLSlotElement;
|
|
189
202
|
/**
|
|
@@ -205,7 +218,7 @@ export default class Button extends WJElement {
|
|
|
205
218
|
*/
|
|
206
219
|
syncToggleState(): void;
|
|
207
220
|
/**
|
|
208
|
-
* Syncs
|
|
221
|
+
* Syncs accessibility attributes on the internal native control.
|
|
209
222
|
*/
|
|
210
223
|
syncAria(): void;
|
|
211
224
|
#private;
|
|
@@ -9,7 +9,7 @@ import { default as WJElement } from '../wje-element/element.js';
|
|
|
9
9
|
* @property {string} src - The source URL of the image.
|
|
10
10
|
* @property {string} alt - The alternative text for the image.
|
|
11
11
|
* @property {string} fallout - The action to perform when an error occurs while loading the image. The value can be a function or a predefined action like 'delete'.
|
|
12
|
-
* @property {string} loader - The URL of the image loader to display while the image is loading.
|
|
12
|
+
* @property {string} loader - The URL of the image loader to display while the image is loading. Defaults to the loader asset resolved from the configured base path.
|
|
13
13
|
* @property {boolean} noLazy - Disables lazy loading and renders the image source immediately.
|
|
14
14
|
* @tag wje-img
|
|
15
15
|
*/
|
|
@@ -68,10 +68,10 @@ export default class Img extends WJElement {
|
|
|
68
68
|
*/
|
|
69
69
|
set loader(value: string);
|
|
70
70
|
/**
|
|
71
|
-
* Retrieves the
|
|
72
|
-
* @returns {string
|
|
71
|
+
* Retrieves the configured loader URL or resolves the default loader from the base path.
|
|
72
|
+
* @returns {string} The loader URL.
|
|
73
73
|
*/
|
|
74
|
-
get loader(): string
|
|
74
|
+
get loader(): string;
|
|
75
75
|
/**
|
|
76
76
|
* Enables or disables lazy loading for the image.
|
|
77
77
|
* @param {boolean} value True to disable lazy loading, false to restore the default lazy behavior.
|
|
@@ -7,6 +7,27 @@ import { Localizer } from '../utils/localize.js';
|
|
|
7
7
|
* @augments WJElement
|
|
8
8
|
* @dependency wje-icon, wje-button
|
|
9
9
|
* @csspart native - The wrapper element for the pagination component.
|
|
10
|
+
* @csspart summary - The wrapper for the page-size selector and item range.
|
|
11
|
+
* @csspart page-size - The wrapper for the page-size label and selector.
|
|
12
|
+
* @csspart page-size-label - The page-size selector label.
|
|
13
|
+
* @csspart page-size-select - The page-size selector.
|
|
14
|
+
* @csspart info - The item range information.
|
|
15
|
+
* @csspart pages - The page navigation wrapper.
|
|
16
|
+
* @csspart page-button - Any pagination button.
|
|
17
|
+
* @csspart page-number - A numbered page button.
|
|
18
|
+
* @csspart current-page - The current page button.
|
|
19
|
+
* @csspart first-button - The button that navigates to the first page.
|
|
20
|
+
* @csspart previous-button - The button that navigates to the previous page.
|
|
21
|
+
* @csspart next-button - The button that navigates to the next page.
|
|
22
|
+
* @csspart last-button - The button that navigates to the last page.
|
|
23
|
+
* @csspart dots - The page range ellipsis.
|
|
24
|
+
* @cssproperty [--wje-pagination-gap=1rem] - Gap between the summary and page navigation.
|
|
25
|
+
* @cssproperty [--wje-pagination-summary-gap=1rem] - Gap between summary items.
|
|
26
|
+
* @cssproperty [--wje-pagination-page-size-gap=var(--wje-spacing-small)] - Gap between the page-size label and selector.
|
|
27
|
+
* @cssproperty [--wje-pagination-mobile-gap=var(--wje-spacing-x-large)] - Gap between pagination rows below the md container width.
|
|
28
|
+
* @cssproperty [--wje-pagination-page-size-width=68px] - Width of the page-size selector.
|
|
29
|
+
* @cssproperty [--wje-pagination-page-button-width=32px] - Width of pagination buttons.
|
|
30
|
+
* @cssproperty [--wje-pagination-page-button-gap=0.5rem] - Gap between pagination buttons.
|
|
10
31
|
*/
|
|
11
32
|
export default class Pagination extends WJElement {
|
|
12
33
|
/**
|