@db-ux/wc-core-components 4.3.2 → 4.4.0-loading-567cd0c
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/CHANGELOG.md +8 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/db-accordion.cjs.entry.js +2 -2
- package/dist/cjs/db-badge.cjs.entry.js +2 -2
- package/dist/cjs/db-brand.cjs.entry.js +2 -2
- package/dist/cjs/db-button.cjs.entry.js +2 -2
- package/dist/cjs/db-card.cjs.entry.js +2 -2
- package/dist/cjs/db-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/{db-custom-select-dropdown_5.cjs.entry.js → db-custom-select-dropdown_6.cjs.entry.js} +257 -5
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
- package/dist/cjs/db-custom-select.cjs.entry.js +14 -16
- package/dist/cjs/db-divider.cjs.entry.js +3 -3
- package/dist/cjs/db-drawer.cjs.entry.js +5 -5
- package/dist/cjs/db-header.cjs.entry.js +4 -4
- package/dist/cjs/db-icon.cjs.entry.js +3 -3
- package/dist/cjs/db-infotext.cjs.entry.js +2 -2
- package/dist/cjs/db-link.cjs.entry.js +3 -3
- package/dist/cjs/db-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/db-navigation.cjs.entry.js +4 -4
- package/dist/cjs/db-notification.cjs.entry.js +8 -4
- package/dist/cjs/db-page.cjs.entry.js +4 -4
- package/dist/cjs/db-popover.cjs.entry.js +5 -5
- package/dist/cjs/db-radio.cjs.entry.js +4 -4
- package/dist/cjs/db-section.cjs.entry.js +4 -4
- package/dist/cjs/db-select.cjs.entry.js +18 -7
- package/dist/cjs/db-stack.cjs.entry.js +4 -4
- package/dist/cjs/db-switch.cjs.entry.js +5 -5
- package/dist/cjs/db-tab-item_3.cjs.entry.js +8 -8
- package/dist/cjs/db-tabs.cjs.entry.js +4 -4
- package/dist/cjs/db-textarea.cjs.entry.js +5 -5
- package/dist/cjs/db-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/{document-click-listener-B2Xzqbvs.js → document-click-listener-Bb3Tinb8.js} +1 -1
- package/dist/cjs/{document-scroll-listener-C_v46oIg.js → document-scroll-listener-unypEU42.js} +1 -1
- package/dist/cjs/{form-components-BrtqMwX0.js → form-components-LsqVohyb.js} +1 -1
- package/dist/cjs/{index-CW5aVEyQ.js → index-CsHqnQII.js} +26 -0
- package/dist/cjs/{index-Mi8dWSSD.js → index-TxzPzc5I.js} +69 -6
- package/dist/cjs/index.cjs.js +9 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/custom-select/custom-select.js +15 -17
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +3 -3
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/loading-indicator/examples/_indicators.data.js +91 -0
- package/dist/collection/components/loading-indicator/index.js +2 -0
- package/dist/collection/components/loading-indicator/loading-indicator.js +713 -0
- package/dist/collection/components/loading-indicator/model.js +2 -0
- package/dist/collection/components/navigation/navigation.js +2 -2
- package/dist/collection/components/navigation-item/navigation-item.js +1 -1
- package/dist/collection/components/notification/notification.js +41 -11
- package/dist/collection/components/page/page.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/section/section.js +2 -2
- package/dist/collection/components/select/select.js +49 -12
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab-item/tab-item.js +2 -2
- package/dist/collection/components/tab-list/tab-list.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +2 -2
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/index.js +25 -0
- package/dist/custom-elements.json +2499 -888
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-e7e35164.entry.js → p-0a073f5e.entry.js} +1 -1
- package/dist/db-ux/p-19def2d3.entry.js +1 -0
- package/dist/db-ux/p-1bbe8d13.entry.js +1 -0
- package/dist/db-ux/{p-197f90e4.entry.js → p-2a1481e9.entry.js} +1 -1
- package/dist/db-ux/{p-b6538eed.entry.js → p-30ceac5f.entry.js} +1 -1
- package/dist/db-ux/p-34862d35.entry.js +1 -0
- package/dist/db-ux/{p-44f2f09d.entry.js → p-3aba68af.entry.js} +1 -1
- package/dist/db-ux/p-46b4ed7f.entry.js +1 -0
- package/dist/db-ux/{p-5bca6d35.entry.js → p-4b4916fb.entry.js} +1 -1
- package/dist/db-ux/{p-78f6b72a.entry.js → p-4bda74c9.entry.js} +1 -1
- package/dist/db-ux/{p-9a543d5a.entry.js → p-5c55381c.entry.js} +1 -1
- package/dist/db-ux/{p-a1e66a3d.entry.js → p-642484ca.entry.js} +1 -1
- package/dist/db-ux/p-66e24856.entry.js +1 -0
- package/dist/db-ux/p-69ebe202.entry.js +1 -0
- package/dist/db-ux/{p-a232eea2.entry.js → p-78fd1504.entry.js} +1 -1
- package/dist/db-ux/p-7c0621ef.entry.js +1 -0
- package/dist/db-ux/{p-286f83f4.entry.js → p-8931bdc6.entry.js} +1 -1
- package/dist/db-ux/{p-26fa6bc1.entry.js → p-8e63e73c.entry.js} +1 -1
- package/dist/db-ux/p-8ff8418d.entry.js +1 -0
- package/dist/db-ux/{p-29d3070a.entry.js → p-919ff123.entry.js} +1 -1
- package/dist/db-ux/p-B6-lLNGQ.js +2 -0
- package/dist/db-ux/p-BhXdfCpU.js +1 -0
- package/dist/db-ux/p-C4x0SOcx.js +1 -0
- package/dist/db-ux/{p-Cb-k135w.js → p-CAEpg8tJ.js} +1 -1
- package/dist/db-ux/{p-EqlW5Wqf.js → p-RHqkTr-_.js} +1 -1
- package/dist/db-ux/p-a01a5c4a.entry.js +1 -0
- package/dist/db-ux/{p-027fb90a.entry.js → p-a95f6c84.entry.js} +1 -1
- package/dist/db-ux/{p-e30a4814.entry.js → p-ada8a2ac.entry.js} +1 -1
- package/dist/db-ux/p-b05bc567.entry.js +1 -0
- package/dist/db-ux/p-c1825fa6.entry.js +1 -0
- package/dist/db-ux/p-e847596c.entry.js +1 -0
- package/dist/db-ux/{p-13dd39f1.entry.js → p-f3cc7450.entry.js} +1 -1
- package/dist/db-ux/{p-a7463ead.entry.js → p-f64ab366.entry.js} +1 -1
- package/dist/db-ux/p-f71548d2.entry.js +1 -0
- package/dist/db-ux/{p-29efc51e.entry.js → p-fd4f5fac.entry.js} +1 -1
- package/dist/esm/db-accordion-item.entry.js +2 -2
- package/dist/esm/db-accordion.entry.js +2 -2
- package/dist/esm/db-badge.entry.js +2 -2
- package/dist/esm/db-brand.entry.js +2 -2
- package/dist/esm/db-button.entry.js +2 -2
- package/dist/esm/db-card.entry.js +2 -2
- package/dist/esm/db-checkbox.entry.js +3 -3
- package/dist/esm/{db-custom-select-dropdown_5.entry.js → db-custom-select-dropdown_6.entry.js} +258 -7
- package/dist/esm/db-custom-select-form-field.entry.js +4 -4
- package/dist/esm/db-custom-select.entry.js +14 -16
- package/dist/esm/db-divider.entry.js +3 -3
- package/dist/esm/db-drawer.entry.js +5 -5
- package/dist/esm/db-header.entry.js +4 -4
- package/dist/esm/db-icon.entry.js +3 -3
- package/dist/esm/db-infotext.entry.js +2 -2
- package/dist/esm/db-link.entry.js +3 -3
- package/dist/esm/db-navigation-item.entry.js +3 -3
- package/dist/esm/db-navigation.entry.js +4 -4
- package/dist/esm/db-notification.entry.js +8 -4
- package/dist/esm/db-page.entry.js +4 -4
- package/dist/esm/db-popover.entry.js +5 -5
- package/dist/esm/db-radio.entry.js +4 -4
- package/dist/esm/db-section.entry.js +4 -4
- package/dist/esm/db-select.entry.js +18 -7
- package/dist/esm/db-stack.entry.js +4 -4
- package/dist/esm/db-switch.entry.js +5 -5
- package/dist/esm/db-tab-item_3.entry.js +8 -8
- package/dist/esm/db-tabs.entry.js +4 -4
- package/dist/esm/db-textarea.entry.js +5 -5
- package/dist/esm/db-tooltip.entry.js +5 -5
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/{document-click-listener-B_LaIr0O.js → document-click-listener-CmYoXpGE.js} +1 -1
- package/dist/esm/{document-scroll-listener-dHAsT0Tb.js → document-scroll-listener-65bHuFAN.js} +1 -1
- package/dist/esm/{form-components-Cl_wgkeJ.js → form-components-BLsiOrPI.js} +1 -1
- package/dist/esm/{index-9pYJFapZ.js → index-B6-lLNGQ.js} +69 -6
- package/dist/esm/{index-BwBkekqp.js → index-C4x0SOcx.js} +26 -1
- package/dist/esm/index.js +7 -4
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/custom-select/custom-select.d.ts +1 -1
- package/dist/types/components/link/model.d.ts +2 -2
- package/dist/types/components/loading-indicator/examples/_indicators.data.d.ts +49 -0
- package/dist/types/components/loading-indicator/index.d.ts +2 -0
- package/dist/types/components/loading-indicator/loading-indicator.d.ts +56 -0
- package/dist/types/components/loading-indicator/model.d.ts +39 -0
- package/dist/types/components/notification/model.d.ts +2 -2
- package/dist/types/components/notification/notification.d.ts +2 -1
- package/dist/types/components/select/model.d.ts +10 -0
- package/dist/types/components/select/select.d.ts +3 -1
- package/dist/types/components.d.ts +91 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/shared/model.d.ts +12 -8
- package/dist/types/utils/index.d.ts +12 -0
- package/dist/vscode.html-custom-data.json +182 -22
- package/dist/web-types.json +316 -51
- package/package.json +4 -4
- package/dist/db-ux/p-15241486.entry.js +0 -1
- package/dist/db-ux/p-2069117e.entry.js +0 -1
- package/dist/db-ux/p-2baf9c08.entry.js +0 -1
- package/dist/db-ux/p-39d22a0f.entry.js +0 -1
- package/dist/db-ux/p-462d8de5.entry.js +0 -1
- package/dist/db-ux/p-58611dcc.entry.js +0 -1
- package/dist/db-ux/p-623a6b59.entry.js +0 -1
- package/dist/db-ux/p-9d5365f7.entry.js +0 -1
- package/dist/db-ux/p-9pYJFapZ.js +0 -2
- package/dist/db-ux/p-BwBkekqp.js +0 -1
- package/dist/db-ux/p-a98bde77.entry.js +0 -1
- package/dist/db-ux/p-af0e61d0.entry.js +0 -1
- package/dist/db-ux/p-b729b29f.entry.js +0 -1
- package/dist/db-ux/p-bde7ff5f.entry.js +0 -1
- package/dist/db-ux/p-c9d514e5.entry.js +0 -1
- package/dist/db-ux/p-cqrM3KjS.js +0 -1
|
@@ -24,6 +24,7 @@ import { DBIconProps } from "./components/icon/model";
|
|
|
24
24
|
import { DBInfotextProps } from "./components/infotext/model";
|
|
25
25
|
import { DBInputProps } from "./components/input/model";
|
|
26
26
|
import { DBLinkProps } from "./components/link/model";
|
|
27
|
+
import { DBLoadingIndicatorProps } from "./components/loading-indicator/model";
|
|
27
28
|
import { DBNavigationProps } from "./components/navigation/model";
|
|
28
29
|
import { DBNavigationItemProps } from "./components/navigation-item/model";
|
|
29
30
|
import { DBNotificationProps } from "./components/notification/model";
|
|
@@ -60,6 +61,7 @@ export { DBIconProps } from "./components/icon/model";
|
|
|
60
61
|
export { DBInfotextProps } from "./components/infotext/model";
|
|
61
62
|
export { DBInputProps } from "./components/input/model";
|
|
62
63
|
export { DBLinkProps } from "./components/link/model";
|
|
64
|
+
export { DBLoadingIndicatorProps } from "./components/loading-indicator/model";
|
|
63
65
|
export { DBNavigationProps } from "./components/navigation/model";
|
|
64
66
|
export { DBNavigationItemProps } from "./components/navigation-item/model";
|
|
65
67
|
export { DBNotificationProps } from "./components/notification/model";
|
|
@@ -369,6 +371,36 @@ export namespace Components {
|
|
|
369
371
|
"variant": DBLinkProps["variant"];
|
|
370
372
|
"wrap": DBLinkProps["wrap"];
|
|
371
373
|
}
|
|
374
|
+
interface DbLoadingIndicator {
|
|
375
|
+
/**
|
|
376
|
+
* @default true
|
|
377
|
+
*/
|
|
378
|
+
"autoDisable": DBLoadingIndicatorProps["autoDisable"];
|
|
379
|
+
"className": DBLoadingIndicatorProps["className"];
|
|
380
|
+
"delay": DBLoadingIndicatorProps["delay"];
|
|
381
|
+
"id": DBLoadingIndicatorProps["id"];
|
|
382
|
+
/**
|
|
383
|
+
* @default true
|
|
384
|
+
*/
|
|
385
|
+
"indeterminate": DBLoadingIndicatorProps["indeterminate"];
|
|
386
|
+
"label": DBLoadingIndicatorProps["label"];
|
|
387
|
+
"max": DBLoadingIndicatorProps["max"];
|
|
388
|
+
"overlay": DBLoadingIndicatorProps["overlay"];
|
|
389
|
+
"progressText": DBLoadingIndicatorProps["progressText"];
|
|
390
|
+
"role": DBLoadingIndicatorProps["role"];
|
|
391
|
+
"showLabel": DBLoadingIndicatorProps["showLabel"];
|
|
392
|
+
"showProgressText": DBLoadingIndicatorProps["showProgressText"];
|
|
393
|
+
/**
|
|
394
|
+
* @default "medium"
|
|
395
|
+
*/
|
|
396
|
+
"size": DBLoadingIndicatorProps["size"];
|
|
397
|
+
"state": DBLoadingIndicatorProps["state"];
|
|
398
|
+
"value": DBLoadingIndicatorProps["value"];
|
|
399
|
+
/**
|
|
400
|
+
* @default "inline"
|
|
401
|
+
*/
|
|
402
|
+
"variant": DBLoadingIndicatorProps["variant"];
|
|
403
|
+
}
|
|
372
404
|
interface DbNavigation {
|
|
373
405
|
"className": DBNavigationProps["className"];
|
|
374
406
|
"id": DBNavigationProps["id"];
|
|
@@ -397,6 +429,7 @@ export namespace Components {
|
|
|
397
429
|
"icon": DBNotificationProps["icon"];
|
|
398
430
|
"id": DBNotificationProps["id"];
|
|
399
431
|
"linkVariant": DBNotificationProps["linkVariant"];
|
|
432
|
+
"role": DBNotificationProps["role"];
|
|
400
433
|
"semantic": DBNotificationProps["semantic"];
|
|
401
434
|
"showHeadline": DBNotificationProps["showHeadline"];
|
|
402
435
|
"showIcon": DBNotificationProps["showIcon"];
|
|
@@ -460,6 +493,7 @@ export namespace Components {
|
|
|
460
493
|
"options": DBSelectProps["options"];
|
|
461
494
|
"placeholder": DBSelectProps["placeholder"];
|
|
462
495
|
"required": DBSelectProps["required"];
|
|
496
|
+
"showEmptyOption": DBSelectProps["showEmptyOption"];
|
|
463
497
|
"showIcon": DBSelectProps["showIcon"];
|
|
464
498
|
"showLabel": DBSelectProps["showLabel"];
|
|
465
499
|
"showMessage": DBSelectProps["showMessage"];
|
|
@@ -639,6 +673,10 @@ export interface DbInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
639
673
|
detail: T;
|
|
640
674
|
target: HTMLDbInputElement;
|
|
641
675
|
}
|
|
676
|
+
export interface DbLoadingIndicatorCustomEvent<T> extends CustomEvent<T> {
|
|
677
|
+
detail: T;
|
|
678
|
+
target: HTMLDbLoadingIndicatorElement;
|
|
679
|
+
}
|
|
642
680
|
export interface DbNavigationItemCustomEvent<T> extends CustomEvent<T> {
|
|
643
681
|
detail: T;
|
|
644
682
|
target: HTMLDbNavigationItemElement;
|
|
@@ -897,6 +935,23 @@ declare global {
|
|
|
897
935
|
prototype: HTMLDbLinkElement;
|
|
898
936
|
new (): HTMLDbLinkElement;
|
|
899
937
|
};
|
|
938
|
+
interface HTMLDbLoadingIndicatorElementEventMap {
|
|
939
|
+
"timeout": any;
|
|
940
|
+
}
|
|
941
|
+
interface HTMLDbLoadingIndicatorElement extends Components.DbLoadingIndicator, HTMLStencilElement {
|
|
942
|
+
addEventListener<K extends keyof HTMLDbLoadingIndicatorElementEventMap>(type: K, listener: (this: HTMLDbLoadingIndicatorElement, ev: DbLoadingIndicatorCustomEvent<HTMLDbLoadingIndicatorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
943
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
944
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
945
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
946
|
+
removeEventListener<K extends keyof HTMLDbLoadingIndicatorElementEventMap>(type: K, listener: (this: HTMLDbLoadingIndicatorElement, ev: DbLoadingIndicatorCustomEvent<HTMLDbLoadingIndicatorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
947
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
948
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
949
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
950
|
+
}
|
|
951
|
+
var HTMLDbLoadingIndicatorElement: {
|
|
952
|
+
prototype: HTMLDbLoadingIndicatorElement;
|
|
953
|
+
new (): HTMLDbLoadingIndicatorElement;
|
|
954
|
+
};
|
|
900
955
|
interface HTMLDbNavigationElement extends Components.DbNavigation, HTMLStencilElement {
|
|
901
956
|
}
|
|
902
957
|
var HTMLDbNavigationElement: {
|
|
@@ -1131,6 +1186,7 @@ declare global {
|
|
|
1131
1186
|
"db-infotext": HTMLDbInfotextElement;
|
|
1132
1187
|
"db-input": HTMLDbInputElement;
|
|
1133
1188
|
"db-link": HTMLDbLinkElement;
|
|
1189
|
+
"db-loading-indicator": HTMLDbLoadingIndicatorElement;
|
|
1134
1190
|
"db-navigation": HTMLDbNavigationElement;
|
|
1135
1191
|
"db-navigation-item": HTMLDbNavigationItemElement;
|
|
1136
1192
|
"db-notification": HTMLDbNotificationElement;
|
|
@@ -1459,6 +1515,37 @@ declare namespace LocalJSX {
|
|
|
1459
1515
|
"variant"?: DBLinkProps["variant"];
|
|
1460
1516
|
"wrap"?: DBLinkProps["wrap"];
|
|
1461
1517
|
}
|
|
1518
|
+
interface DbLoadingIndicator {
|
|
1519
|
+
/**
|
|
1520
|
+
* @default true
|
|
1521
|
+
*/
|
|
1522
|
+
"autoDisable"?: DBLoadingIndicatorProps["autoDisable"];
|
|
1523
|
+
"className"?: DBLoadingIndicatorProps["className"];
|
|
1524
|
+
"delay"?: DBLoadingIndicatorProps["delay"];
|
|
1525
|
+
"id"?: DBLoadingIndicatorProps["id"];
|
|
1526
|
+
/**
|
|
1527
|
+
* @default true
|
|
1528
|
+
*/
|
|
1529
|
+
"indeterminate"?: DBLoadingIndicatorProps["indeterminate"];
|
|
1530
|
+
"label"?: DBLoadingIndicatorProps["label"];
|
|
1531
|
+
"max"?: DBLoadingIndicatorProps["max"];
|
|
1532
|
+
"onTimeout"?: (event: DbLoadingIndicatorCustomEvent<any>) => void;
|
|
1533
|
+
"overlay"?: DBLoadingIndicatorProps["overlay"];
|
|
1534
|
+
"progressText"?: DBLoadingIndicatorProps["progressText"];
|
|
1535
|
+
"role"?: DBLoadingIndicatorProps["role"];
|
|
1536
|
+
"showLabel"?: DBLoadingIndicatorProps["showLabel"];
|
|
1537
|
+
"showProgressText"?: DBLoadingIndicatorProps["showProgressText"];
|
|
1538
|
+
/**
|
|
1539
|
+
* @default "medium"
|
|
1540
|
+
*/
|
|
1541
|
+
"size"?: DBLoadingIndicatorProps["size"];
|
|
1542
|
+
"state"?: DBLoadingIndicatorProps["state"];
|
|
1543
|
+
"value"?: DBLoadingIndicatorProps["value"];
|
|
1544
|
+
/**
|
|
1545
|
+
* @default "inline"
|
|
1546
|
+
*/
|
|
1547
|
+
"variant"?: DBLoadingIndicatorProps["variant"];
|
|
1548
|
+
}
|
|
1462
1549
|
interface DbNavigation {
|
|
1463
1550
|
"className"?: DBNavigationProps["className"];
|
|
1464
1551
|
"id"?: DBNavigationProps["id"];
|
|
@@ -1489,6 +1576,7 @@ declare namespace LocalJSX {
|
|
|
1489
1576
|
"id"?: DBNotificationProps["id"];
|
|
1490
1577
|
"linkVariant"?: DBNotificationProps["linkVariant"];
|
|
1491
1578
|
"onClose"?: (event: DbNotificationCustomEvent<any>) => void;
|
|
1579
|
+
"role"?: DBNotificationProps["role"];
|
|
1492
1580
|
"semantic"?: DBNotificationProps["semantic"];
|
|
1493
1581
|
"showHeadline"?: DBNotificationProps["showHeadline"];
|
|
1494
1582
|
"showIcon"?: DBNotificationProps["showIcon"];
|
|
@@ -1561,6 +1649,7 @@ declare namespace LocalJSX {
|
|
|
1561
1649
|
"options"?: DBSelectProps["options"];
|
|
1562
1650
|
"placeholder"?: DBSelectProps["placeholder"];
|
|
1563
1651
|
"required"?: DBSelectProps["required"];
|
|
1652
|
+
"showEmptyOption"?: DBSelectProps["showEmptyOption"];
|
|
1564
1653
|
"showIcon"?: DBSelectProps["showIcon"];
|
|
1565
1654
|
"showLabel"?: DBSelectProps["showLabel"];
|
|
1566
1655
|
"showMessage"?: DBSelectProps["showMessage"];
|
|
@@ -1734,6 +1823,7 @@ declare namespace LocalJSX {
|
|
|
1734
1823
|
"db-infotext": DbInfotext;
|
|
1735
1824
|
"db-input": DbInput;
|
|
1736
1825
|
"db-link": DbLink;
|
|
1826
|
+
"db-loading-indicator": DbLoadingIndicator;
|
|
1737
1827
|
"db-navigation": DbNavigation;
|
|
1738
1828
|
"db-navigation-item": DbNavigationItem;
|
|
1739
1829
|
"db-notification": DbNotification;
|
|
@@ -1776,6 +1866,7 @@ declare module "@stencil/core" {
|
|
|
1776
1866
|
"db-infotext": LocalJSX.DbInfotext & JSXBase.HTMLAttributes<HTMLDbInfotextElement>;
|
|
1777
1867
|
"db-input": LocalJSX.DbInput & JSXBase.HTMLAttributes<HTMLDbInputElement>;
|
|
1778
1868
|
"db-link": LocalJSX.DbLink & JSXBase.HTMLAttributes<HTMLDbLinkElement>;
|
|
1869
|
+
"db-loading-indicator": LocalJSX.DbLoadingIndicator & JSXBase.HTMLAttributes<HTMLDbLoadingIndicatorElement>;
|
|
1779
1870
|
"db-navigation": LocalJSX.DbNavigation & JSXBase.HTMLAttributes<HTMLDbNavigationElement>;
|
|
1780
1871
|
"db-navigation-item": LocalJSX.DbNavigationItem & JSXBase.HTMLAttributes<HTMLDbNavigationItemElement>;
|
|
1781
1872
|
"db-notification": LocalJSX.DbNotification & JSXBase.HTMLAttributes<HTMLDbNotificationElement>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -77,3 +77,5 @@ export * from './utils/document-scroll-listener';
|
|
|
77
77
|
export * from './utils/floating-components';
|
|
78
78
|
export * from './utils/index';
|
|
79
79
|
export * from './utils/navigation';
|
|
80
|
+
export * from "./components/loading-indicator";
|
|
81
|
+
export * from "./components/loading-indicator/model";
|
|
@@ -157,10 +157,6 @@ export type PopoverDelayType = (typeof PopoverDelayList)[number];
|
|
|
157
157
|
export declare const PopoverWidthList: readonly ["auto", "fixed"];
|
|
158
158
|
export type PopoverWidthType = (typeof PopoverWidthList)[number];
|
|
159
159
|
export type PopoverProps = {
|
|
160
|
-
/**
|
|
161
|
-
* Add a delay before showing the tooltip
|
|
162
|
-
*/
|
|
163
|
-
delay?: PopoverDelayType;
|
|
164
160
|
/**
|
|
165
161
|
* Disable animation
|
|
166
162
|
*/
|
|
@@ -169,6 +165,12 @@ export type PopoverProps = {
|
|
|
169
165
|
* Use fixed with for default max-width
|
|
170
166
|
*/
|
|
171
167
|
width?: PopoverWidthType;
|
|
168
|
+
} & DelayProps;
|
|
169
|
+
export type DelayProps = {
|
|
170
|
+
/**
|
|
171
|
+
* Add a delay before showing the component
|
|
172
|
+
*/
|
|
173
|
+
delay?: PopoverDelayType;
|
|
172
174
|
};
|
|
173
175
|
export type NameProps = {
|
|
174
176
|
/**
|
|
@@ -397,10 +399,6 @@ export type LinkProps = {
|
|
|
397
399
|
* The relationship of the linked URL as space-separated link types.
|
|
398
400
|
*/
|
|
399
401
|
rel?: string;
|
|
400
|
-
/**
|
|
401
|
-
* Sets aria role based on [`aria-role`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles).
|
|
402
|
-
*/
|
|
403
|
-
role?: string;
|
|
404
402
|
/**
|
|
405
403
|
* How much of the referrer to send when following the link.
|
|
406
404
|
* @deprecated use `referrerPolicy` instead
|
|
@@ -411,6 +409,12 @@ export type LinkProps = {
|
|
|
411
409
|
*/
|
|
412
410
|
referrerPolicy?: LinkReferrerPolicyType;
|
|
413
411
|
};
|
|
412
|
+
export type RoleProps = {
|
|
413
|
+
/**
|
|
414
|
+
* Sets aria role based on [`aria-role`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles).
|
|
415
|
+
*/
|
|
416
|
+
role?: string;
|
|
417
|
+
};
|
|
414
418
|
export type TextProps = {
|
|
415
419
|
/**
|
|
416
420
|
* Alternative for default slot/children.
|
|
@@ -58,3 +58,15 @@ export declare const getOptionKey: (option: {
|
|
|
58
58
|
value?: string | number | string[] | undefined;
|
|
59
59
|
}, prefix: string) => string;
|
|
60
60
|
export declare const isKeyboardEvent: <T>(event?: ClickEvent<T> | GeneralKeyboardEvent<T>) => event is GeneralKeyboardEvent<T>;
|
|
61
|
+
/**
|
|
62
|
+
* Maps semantic values to appropriate ARIA roles for notifications
|
|
63
|
+
* @param semantic - The semantic type of the notification
|
|
64
|
+
* @param role - The aria role of the notification
|
|
65
|
+
* @param ariaLive - The aria-live of the notification
|
|
66
|
+
* @returns The appropriate ARIA role or undefined for default behavior
|
|
67
|
+
*/
|
|
68
|
+
export declare const getNotificationRole: ({ semantic, role, ariaLive }: {
|
|
69
|
+
semantic?: string;
|
|
70
|
+
role?: string;
|
|
71
|
+
ariaLive?: string;
|
|
72
|
+
}) => string | undefined;
|
|
@@ -932,6 +932,79 @@
|
|
|
932
932
|
],
|
|
933
933
|
"references": []
|
|
934
934
|
},
|
|
935
|
+
{
|
|
936
|
+
"name": "db-loading-indicator",
|
|
937
|
+
"description": "\n---\n\n\n### **Events:**\n - **timeout**\n\n### **Slots:**\n - **children** - default slot",
|
|
938
|
+
"attributes": [
|
|
939
|
+
{
|
|
940
|
+
"name": "id",
|
|
941
|
+
"description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
942
|
+
"values": []
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"name": "auto-disable",
|
|
946
|
+
"description": "Disable the parent component (e.g. a DBButton) when loading indicator is inside it",
|
|
947
|
+
"values": []
|
|
948
|
+
},
|
|
949
|
+
{ "name": "overlay", "values": [] },
|
|
950
|
+
{
|
|
951
|
+
"name": "state",
|
|
952
|
+
"values": [
|
|
953
|
+
{ "name": "inactive" },
|
|
954
|
+
{ "name": "active" },
|
|
955
|
+
{ "name": "successful" },
|
|
956
|
+
{ "name": "critical" }
|
|
957
|
+
]
|
|
958
|
+
},
|
|
959
|
+
{ "name": "indeterminate", "values": [] },
|
|
960
|
+
{
|
|
961
|
+
"name": "delay",
|
|
962
|
+
"description": "Add a delay before showing the component",
|
|
963
|
+
"values": [{ "name": "none" }, { "name": "slow" }, { "name": "fast" }]
|
|
964
|
+
},
|
|
965
|
+
{ "name": "value", "values": [] },
|
|
966
|
+
{ "name": "max", "values": [] },
|
|
967
|
+
{
|
|
968
|
+
"name": "role",
|
|
969
|
+
"values": [
|
|
970
|
+
{ "name": "alert" },
|
|
971
|
+
{ "name": "status" },
|
|
972
|
+
{ "name": "none" }
|
|
973
|
+
]
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"name": "classname",
|
|
977
|
+
"description": "React specific for adding className to the component.",
|
|
978
|
+
"values": []
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"name": "size",
|
|
982
|
+
"description": "The size attribute changes the font-size and other related sizes of the component.",
|
|
983
|
+
"values": [{ "name": "small" }, { "name": "medium" }]
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"name": "variant",
|
|
987
|
+
"values": [
|
|
988
|
+
{ "name": "progress-bar" },
|
|
989
|
+
{ "name": "onsite" },
|
|
990
|
+
{ "name": "inline" }
|
|
991
|
+
]
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"name": "show-label",
|
|
995
|
+
"description": "Enables/disables the visibility of the label",
|
|
996
|
+
"values": []
|
|
997
|
+
},
|
|
998
|
+
{ "name": "label", "values": [] },
|
|
999
|
+
{ "name": "progress-text", "values": [] },
|
|
1000
|
+
{
|
|
1001
|
+
"name": "show-progress-text",
|
|
1002
|
+
"description": "Enables/disables the visibility of the progressText",
|
|
1003
|
+
"values": []
|
|
1004
|
+
}
|
|
1005
|
+
],
|
|
1006
|
+
"references": []
|
|
1007
|
+
},
|
|
935
1008
|
{
|
|
936
1009
|
"name": "db-tooltip",
|
|
937
1010
|
"description": "\n---\n\n\n### **Slots:**\n - **children** - default slot",
|
|
@@ -968,13 +1041,13 @@
|
|
|
968
1041
|
},
|
|
969
1042
|
{
|
|
970
1043
|
"name": "delay",
|
|
971
|
-
"description": "Add a delay before showing the
|
|
1044
|
+
"description": "Add a delay before showing the component",
|
|
972
1045
|
"values": [{ "name": "none" }, { "name": "slow" }, { "name": "fast" }]
|
|
973
1046
|
},
|
|
974
1047
|
{
|
|
975
1048
|
"name": "width",
|
|
976
1049
|
"description": "Use fixed with for default max-width",
|
|
977
|
-
"values": [
|
|
1050
|
+
"values": []
|
|
978
1051
|
},
|
|
979
1052
|
{
|
|
980
1053
|
"name": "show-arrow",
|
|
@@ -1283,13 +1356,13 @@
|
|
|
1283
1356
|
"values": []
|
|
1284
1357
|
},
|
|
1285
1358
|
{
|
|
1286
|
-
"name": "
|
|
1287
|
-
"description": "Dropdown - hint if
|
|
1359
|
+
"name": "no-results-text",
|
|
1360
|
+
"description": "Dropdown - hint if there are no options",
|
|
1288
1361
|
"values": []
|
|
1289
1362
|
},
|
|
1290
1363
|
{
|
|
1291
|
-
"name": "
|
|
1292
|
-
"description": "Dropdown - hint if
|
|
1364
|
+
"name": "loading-text",
|
|
1365
|
+
"description": "Dropdown - hint if data has to be loaded",
|
|
1293
1366
|
"values": []
|
|
1294
1367
|
},
|
|
1295
1368
|
{
|
|
@@ -1759,15 +1832,6 @@
|
|
|
1759
1832
|
"description": "React specific for adding className to the component.",
|
|
1760
1833
|
"values": []
|
|
1761
1834
|
},
|
|
1762
|
-
{
|
|
1763
|
-
"name": "aria-live",
|
|
1764
|
-
"description": "The arialive attribute will lead to that the screenreader interrupts immediately\nand reads out the notification if set to \"assertive\", while it will wait for the\nuser's idleness when set to \"polite\", compare to [aria-live](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-live)",
|
|
1765
|
-
"values": [
|
|
1766
|
-
{ "name": "assertive" },
|
|
1767
|
-
{ "name": "polite" },
|
|
1768
|
-
{ "name": "off" }
|
|
1769
|
-
]
|
|
1770
|
-
},
|
|
1771
1835
|
{
|
|
1772
1836
|
"name": "semantic",
|
|
1773
1837
|
"description": "The semantic defines the default variants for most components.",
|
|
@@ -1780,6 +1844,20 @@
|
|
|
1780
1844
|
{ "name": "successful" }
|
|
1781
1845
|
]
|
|
1782
1846
|
},
|
|
1847
|
+
{
|
|
1848
|
+
"name": "role",
|
|
1849
|
+
"description": "Sets aria role based on [`aria-role`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles).",
|
|
1850
|
+
"values": []
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"name": "aria-live",
|
|
1854
|
+
"description": "The arialive attribute will lead to that the screenreader interrupts immediately\nand reads out the notification if set to \"assertive\", while it will wait for the\nuser's idleness when set to \"polite\", compare to [aria-live](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-live)",
|
|
1855
|
+
"values": [
|
|
1856
|
+
{ "name": "assertive" },
|
|
1857
|
+
{ "name": "polite" },
|
|
1858
|
+
{ "name": "off" }
|
|
1859
|
+
]
|
|
1860
|
+
},
|
|
1783
1861
|
{
|
|
1784
1862
|
"name": "variant",
|
|
1785
1863
|
"description": "The variant attribute changes the styling of the notification.\n- The docked notifications are used e.g. between header and main content to show a global alert.\n- The standalone notifications are used e.g. inside a form to show an alert for a specific field.\n- The overlay notifications are used for absolute and floating notifications like snackbars etc.",
|
|
@@ -1930,13 +2008,13 @@
|
|
|
1930
2008
|
},
|
|
1931
2009
|
{
|
|
1932
2010
|
"name": "delay",
|
|
1933
|
-
"description": "Add a delay before showing the
|
|
2011
|
+
"description": "Add a delay before showing the component",
|
|
1934
2012
|
"values": [{ "name": "none" }, { "name": "slow" }, { "name": "fast" }]
|
|
1935
2013
|
},
|
|
1936
2014
|
{
|
|
1937
2015
|
"name": "width",
|
|
1938
2016
|
"description": "Use fixed with for default max-width",
|
|
1939
|
-
"values": [
|
|
2017
|
+
"values": []
|
|
1940
2018
|
}
|
|
1941
2019
|
],
|
|
1942
2020
|
"references": []
|
|
@@ -2102,16 +2180,21 @@
|
|
|
2102
2180
|
"description": "When the required attribute specified, the user will be required to fill the form element before submitting the form.\nThe form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).",
|
|
2103
2181
|
"values": []
|
|
2104
2182
|
},
|
|
2105
|
-
{
|
|
2106
|
-
"name": "classname",
|
|
2107
|
-
"description": "React specific for adding className to the component.",
|
|
2108
|
-
"values": []
|
|
2109
|
-
},
|
|
2110
2183
|
{
|
|
2111
2184
|
"name": "variant",
|
|
2112
2185
|
"description": "Change the variant of the label to float or hidden",
|
|
2113
2186
|
"values": [{ "name": "above" }, { "name": "floating" }]
|
|
2114
2187
|
},
|
|
2188
|
+
{
|
|
2189
|
+
"name": "show-empty-option",
|
|
2190
|
+
"description": "Controls whether the empty placeholder option is shown in the dropdown after the user's selection of another option.\nBy default, it is shown for non-required selects and hidden for required selects.\nSet to `true` to always show or `false` to always hide the empty option.\n\nNote: The empty option is only rendered when `variant === 'floating'` or a `placeholder` is set.\nSetting `showEmptyOption` alone has no effect if neither of these conditions is met.",
|
|
2191
|
+
"values": []
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
"name": "classname",
|
|
2195
|
+
"description": "React specific for adding className to the component.",
|
|
2196
|
+
"values": []
|
|
2197
|
+
},
|
|
2115
2198
|
{
|
|
2116
2199
|
"name": "show-label",
|
|
2117
2200
|
"description": "Enables/disables the visibility of the label",
|
|
@@ -2925,6 +3008,83 @@
|
|
|
2925
3008
|
}
|
|
2926
3009
|
],
|
|
2927
3010
|
"references": []
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
"name": "loading-indicator-button",
|
|
3014
|
+
"description": "\n---\n",
|
|
3015
|
+
"attributes": [],
|
|
3016
|
+
"references": []
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
"name": "loading-indicator-delay",
|
|
3020
|
+
"description": "\n---\n",
|
|
3021
|
+
"attributes": [],
|
|
3022
|
+
"references": []
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
"name": "loading-indicator-density",
|
|
3026
|
+
"description": "\n---\n",
|
|
3027
|
+
"attributes": [],
|
|
3028
|
+
"references": []
|
|
3029
|
+
},
|
|
3030
|
+
{
|
|
3031
|
+
"name": "loading-indicator-indeterminate",
|
|
3032
|
+
"description": "\n---\n",
|
|
3033
|
+
"attributes": [],
|
|
3034
|
+
"references": []
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"name": "loading-indicator-overlay",
|
|
3038
|
+
"description": "\n---\n",
|
|
3039
|
+
"attributes": [],
|
|
3040
|
+
"references": []
|
|
3041
|
+
},
|
|
3042
|
+
{
|
|
3043
|
+
"name": "loading-indicator-show-label",
|
|
3044
|
+
"description": "\n---\n",
|
|
3045
|
+
"attributes": [],
|
|
3046
|
+
"references": []
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
"name": "loading-indicator-show-progress-text",
|
|
3050
|
+
"description": "\n---\n",
|
|
3051
|
+
"attributes": [],
|
|
3052
|
+
"references": []
|
|
3053
|
+
},
|
|
3054
|
+
{
|
|
3055
|
+
"name": "loading-indicator-size",
|
|
3056
|
+
"description": "\n---\n",
|
|
3057
|
+
"attributes": [],
|
|
3058
|
+
"references": []
|
|
3059
|
+
},
|
|
3060
|
+
{
|
|
3061
|
+
"name": "loading-indicator-state-determinate",
|
|
3062
|
+
"description": "\n---\n",
|
|
3063
|
+
"attributes": [],
|
|
3064
|
+
"references": []
|
|
3065
|
+
},
|
|
3066
|
+
{
|
|
3067
|
+
"name": "loading-indicator-state",
|
|
3068
|
+
"description": "\n---\n",
|
|
3069
|
+
"attributes": [],
|
|
3070
|
+
"references": []
|
|
3071
|
+
},
|
|
3072
|
+
{
|
|
3073
|
+
"name": "loading-indicator-timeout",
|
|
3074
|
+
"description": "\n---\n",
|
|
3075
|
+
"attributes": [],
|
|
3076
|
+
"references": []
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
"name": "loading-indicator-showcase",
|
|
3080
|
+
"description": "\n---\n",
|
|
3081
|
+
"attributes": [
|
|
3082
|
+
{
|
|
3083
|
+
"name": "is-patternhub",
|
|
3084
|
+
"values": [{ "name": "PatternhubProps[\"isPatternhub\"]" }]
|
|
3085
|
+
}
|
|
3086
|
+
],
|
|
3087
|
+
"references": []
|
|
2928
3088
|
}
|
|
2929
3089
|
]
|
|
2930
3090
|
}
|