@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.
Files changed (179) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
  3. package/dist/cjs/db-accordion.cjs.entry.js +2 -2
  4. package/dist/cjs/db-badge.cjs.entry.js +2 -2
  5. package/dist/cjs/db-brand.cjs.entry.js +2 -2
  6. package/dist/cjs/db-button.cjs.entry.js +2 -2
  7. package/dist/cjs/db-card.cjs.entry.js +2 -2
  8. package/dist/cjs/db-checkbox.cjs.entry.js +3 -3
  9. package/dist/cjs/{db-custom-select-dropdown_5.cjs.entry.js → db-custom-select-dropdown_6.cjs.entry.js} +257 -5
  10. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
  11. package/dist/cjs/db-custom-select.cjs.entry.js +14 -16
  12. package/dist/cjs/db-divider.cjs.entry.js +3 -3
  13. package/dist/cjs/db-drawer.cjs.entry.js +5 -5
  14. package/dist/cjs/db-header.cjs.entry.js +4 -4
  15. package/dist/cjs/db-icon.cjs.entry.js +3 -3
  16. package/dist/cjs/db-infotext.cjs.entry.js +2 -2
  17. package/dist/cjs/db-link.cjs.entry.js +3 -3
  18. package/dist/cjs/db-navigation-item.cjs.entry.js +3 -3
  19. package/dist/cjs/db-navigation.cjs.entry.js +4 -4
  20. package/dist/cjs/db-notification.cjs.entry.js +8 -4
  21. package/dist/cjs/db-page.cjs.entry.js +4 -4
  22. package/dist/cjs/db-popover.cjs.entry.js +5 -5
  23. package/dist/cjs/db-radio.cjs.entry.js +4 -4
  24. package/dist/cjs/db-section.cjs.entry.js +4 -4
  25. package/dist/cjs/db-select.cjs.entry.js +18 -7
  26. package/dist/cjs/db-stack.cjs.entry.js +4 -4
  27. package/dist/cjs/db-switch.cjs.entry.js +5 -5
  28. package/dist/cjs/db-tab-item_3.cjs.entry.js +8 -8
  29. package/dist/cjs/db-tabs.cjs.entry.js +4 -4
  30. package/dist/cjs/db-textarea.cjs.entry.js +5 -5
  31. package/dist/cjs/db-tooltip.cjs.entry.js +5 -5
  32. package/dist/cjs/db-ux.cjs.js +3 -3
  33. package/dist/cjs/{document-click-listener-B2Xzqbvs.js → document-click-listener-Bb3Tinb8.js} +1 -1
  34. package/dist/cjs/{document-scroll-listener-C_v46oIg.js → document-scroll-listener-unypEU42.js} +1 -1
  35. package/dist/cjs/{form-components-BrtqMwX0.js → form-components-LsqVohyb.js} +1 -1
  36. package/dist/cjs/{index-CW5aVEyQ.js → index-CsHqnQII.js} +26 -0
  37. package/dist/cjs/{index-Mi8dWSSD.js → index-TxzPzc5I.js} +69 -6
  38. package/dist/cjs/index.cjs.js +9 -3
  39. package/dist/cjs/loader.cjs.js +2 -2
  40. package/dist/collection/collection-manifest.json +2 -1
  41. package/dist/collection/components/custom-select/custom-select.js +15 -17
  42. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  43. package/dist/collection/components/divider/divider.js +1 -1
  44. package/dist/collection/components/drawer/drawer.js +3 -3
  45. package/dist/collection/components/header/header.js +2 -2
  46. package/dist/collection/components/icon/icon.js +1 -1
  47. package/dist/collection/components/link/link.js +1 -1
  48. package/dist/collection/components/loading-indicator/examples/_indicators.data.js +91 -0
  49. package/dist/collection/components/loading-indicator/index.js +2 -0
  50. package/dist/collection/components/loading-indicator/loading-indicator.js +713 -0
  51. package/dist/collection/components/loading-indicator/model.js +2 -0
  52. package/dist/collection/components/navigation/navigation.js +2 -2
  53. package/dist/collection/components/navigation-item/navigation-item.js +1 -1
  54. package/dist/collection/components/notification/notification.js +41 -11
  55. package/dist/collection/components/page/page.js +2 -2
  56. package/dist/collection/components/popover/popover.js +2 -2
  57. package/dist/collection/components/radio/radio.js +1 -1
  58. package/dist/collection/components/section/section.js +2 -2
  59. package/dist/collection/components/select/select.js +49 -12
  60. package/dist/collection/components/stack/stack.js +2 -2
  61. package/dist/collection/components/switch/switch.js +2 -2
  62. package/dist/collection/components/tab-item/tab-item.js +2 -2
  63. package/dist/collection/components/tab-list/tab-list.js +2 -2
  64. package/dist/collection/components/tab-panel/tab-panel.js +2 -2
  65. package/dist/collection/components/tabs/tabs.js +2 -2
  66. package/dist/collection/components/tag/tag.js +2 -2
  67. package/dist/collection/components/textarea/textarea.js +2 -2
  68. package/dist/collection/components/tooltip/tooltip.js +2 -2
  69. package/dist/collection/index.js +2 -0
  70. package/dist/collection/utils/index.js +25 -0
  71. package/dist/custom-elements.json +2499 -888
  72. package/dist/db-ux/db-ux.esm.js +1 -1
  73. package/dist/db-ux/index.esm.js +1 -1
  74. package/dist/db-ux/{p-e7e35164.entry.js → p-0a073f5e.entry.js} +1 -1
  75. package/dist/db-ux/p-19def2d3.entry.js +1 -0
  76. package/dist/db-ux/p-1bbe8d13.entry.js +1 -0
  77. package/dist/db-ux/{p-197f90e4.entry.js → p-2a1481e9.entry.js} +1 -1
  78. package/dist/db-ux/{p-b6538eed.entry.js → p-30ceac5f.entry.js} +1 -1
  79. package/dist/db-ux/p-34862d35.entry.js +1 -0
  80. package/dist/db-ux/{p-44f2f09d.entry.js → p-3aba68af.entry.js} +1 -1
  81. package/dist/db-ux/p-46b4ed7f.entry.js +1 -0
  82. package/dist/db-ux/{p-5bca6d35.entry.js → p-4b4916fb.entry.js} +1 -1
  83. package/dist/db-ux/{p-78f6b72a.entry.js → p-4bda74c9.entry.js} +1 -1
  84. package/dist/db-ux/{p-9a543d5a.entry.js → p-5c55381c.entry.js} +1 -1
  85. package/dist/db-ux/{p-a1e66a3d.entry.js → p-642484ca.entry.js} +1 -1
  86. package/dist/db-ux/p-66e24856.entry.js +1 -0
  87. package/dist/db-ux/p-69ebe202.entry.js +1 -0
  88. package/dist/db-ux/{p-a232eea2.entry.js → p-78fd1504.entry.js} +1 -1
  89. package/dist/db-ux/p-7c0621ef.entry.js +1 -0
  90. package/dist/db-ux/{p-286f83f4.entry.js → p-8931bdc6.entry.js} +1 -1
  91. package/dist/db-ux/{p-26fa6bc1.entry.js → p-8e63e73c.entry.js} +1 -1
  92. package/dist/db-ux/p-8ff8418d.entry.js +1 -0
  93. package/dist/db-ux/{p-29d3070a.entry.js → p-919ff123.entry.js} +1 -1
  94. package/dist/db-ux/p-B6-lLNGQ.js +2 -0
  95. package/dist/db-ux/p-BhXdfCpU.js +1 -0
  96. package/dist/db-ux/p-C4x0SOcx.js +1 -0
  97. package/dist/db-ux/{p-Cb-k135w.js → p-CAEpg8tJ.js} +1 -1
  98. package/dist/db-ux/{p-EqlW5Wqf.js → p-RHqkTr-_.js} +1 -1
  99. package/dist/db-ux/p-a01a5c4a.entry.js +1 -0
  100. package/dist/db-ux/{p-027fb90a.entry.js → p-a95f6c84.entry.js} +1 -1
  101. package/dist/db-ux/{p-e30a4814.entry.js → p-ada8a2ac.entry.js} +1 -1
  102. package/dist/db-ux/p-b05bc567.entry.js +1 -0
  103. package/dist/db-ux/p-c1825fa6.entry.js +1 -0
  104. package/dist/db-ux/p-e847596c.entry.js +1 -0
  105. package/dist/db-ux/{p-13dd39f1.entry.js → p-f3cc7450.entry.js} +1 -1
  106. package/dist/db-ux/{p-a7463ead.entry.js → p-f64ab366.entry.js} +1 -1
  107. package/dist/db-ux/p-f71548d2.entry.js +1 -0
  108. package/dist/db-ux/{p-29efc51e.entry.js → p-fd4f5fac.entry.js} +1 -1
  109. package/dist/esm/db-accordion-item.entry.js +2 -2
  110. package/dist/esm/db-accordion.entry.js +2 -2
  111. package/dist/esm/db-badge.entry.js +2 -2
  112. package/dist/esm/db-brand.entry.js +2 -2
  113. package/dist/esm/db-button.entry.js +2 -2
  114. package/dist/esm/db-card.entry.js +2 -2
  115. package/dist/esm/db-checkbox.entry.js +3 -3
  116. package/dist/esm/{db-custom-select-dropdown_5.entry.js → db-custom-select-dropdown_6.entry.js} +258 -7
  117. package/dist/esm/db-custom-select-form-field.entry.js +4 -4
  118. package/dist/esm/db-custom-select.entry.js +14 -16
  119. package/dist/esm/db-divider.entry.js +3 -3
  120. package/dist/esm/db-drawer.entry.js +5 -5
  121. package/dist/esm/db-header.entry.js +4 -4
  122. package/dist/esm/db-icon.entry.js +3 -3
  123. package/dist/esm/db-infotext.entry.js +2 -2
  124. package/dist/esm/db-link.entry.js +3 -3
  125. package/dist/esm/db-navigation-item.entry.js +3 -3
  126. package/dist/esm/db-navigation.entry.js +4 -4
  127. package/dist/esm/db-notification.entry.js +8 -4
  128. package/dist/esm/db-page.entry.js +4 -4
  129. package/dist/esm/db-popover.entry.js +5 -5
  130. package/dist/esm/db-radio.entry.js +4 -4
  131. package/dist/esm/db-section.entry.js +4 -4
  132. package/dist/esm/db-select.entry.js +18 -7
  133. package/dist/esm/db-stack.entry.js +4 -4
  134. package/dist/esm/db-switch.entry.js +5 -5
  135. package/dist/esm/db-tab-item_3.entry.js +8 -8
  136. package/dist/esm/db-tabs.entry.js +4 -4
  137. package/dist/esm/db-textarea.entry.js +5 -5
  138. package/dist/esm/db-tooltip.entry.js +5 -5
  139. package/dist/esm/db-ux.js +4 -4
  140. package/dist/esm/{document-click-listener-B_LaIr0O.js → document-click-listener-CmYoXpGE.js} +1 -1
  141. package/dist/esm/{document-scroll-listener-dHAsT0Tb.js → document-scroll-listener-65bHuFAN.js} +1 -1
  142. package/dist/esm/{form-components-Cl_wgkeJ.js → form-components-BLsiOrPI.js} +1 -1
  143. package/dist/esm/{index-9pYJFapZ.js → index-B6-lLNGQ.js} +69 -6
  144. package/dist/esm/{index-BwBkekqp.js → index-C4x0SOcx.js} +26 -1
  145. package/dist/esm/index.js +7 -4
  146. package/dist/esm/loader.js +3 -3
  147. package/dist/types/components/custom-select/custom-select.d.ts +1 -1
  148. package/dist/types/components/link/model.d.ts +2 -2
  149. package/dist/types/components/loading-indicator/examples/_indicators.data.d.ts +49 -0
  150. package/dist/types/components/loading-indicator/index.d.ts +2 -0
  151. package/dist/types/components/loading-indicator/loading-indicator.d.ts +56 -0
  152. package/dist/types/components/loading-indicator/model.d.ts +39 -0
  153. package/dist/types/components/notification/model.d.ts +2 -2
  154. package/dist/types/components/notification/notification.d.ts +2 -1
  155. package/dist/types/components/select/model.d.ts +10 -0
  156. package/dist/types/components/select/select.d.ts +3 -1
  157. package/dist/types/components.d.ts +91 -0
  158. package/dist/types/index.d.ts +2 -0
  159. package/dist/types/shared/model.d.ts +12 -8
  160. package/dist/types/utils/index.d.ts +12 -0
  161. package/dist/vscode.html-custom-data.json +182 -22
  162. package/dist/web-types.json +316 -51
  163. package/package.json +4 -4
  164. package/dist/db-ux/p-15241486.entry.js +0 -1
  165. package/dist/db-ux/p-2069117e.entry.js +0 -1
  166. package/dist/db-ux/p-2baf9c08.entry.js +0 -1
  167. package/dist/db-ux/p-39d22a0f.entry.js +0 -1
  168. package/dist/db-ux/p-462d8de5.entry.js +0 -1
  169. package/dist/db-ux/p-58611dcc.entry.js +0 -1
  170. package/dist/db-ux/p-623a6b59.entry.js +0 -1
  171. package/dist/db-ux/p-9d5365f7.entry.js +0 -1
  172. package/dist/db-ux/p-9pYJFapZ.js +0 -2
  173. package/dist/db-ux/p-BwBkekqp.js +0 -1
  174. package/dist/db-ux/p-a98bde77.entry.js +0 -1
  175. package/dist/db-ux/p-af0e61d0.entry.js +0 -1
  176. package/dist/db-ux/p-b729b29f.entry.js +0 -1
  177. package/dist/db-ux/p-bde7ff5f.entry.js +0 -1
  178. package/dist/db-ux/p-c9d514e5.entry.js +0 -1
  179. package/dist/db-ux/p-cqrM3KjS.js +0 -1
@@ -0,0 +1,713 @@
1
+ import { DEFAULT_ID } from "../../shared/constants";
2
+ import { cls, delay as delayFn, getBooleanAsString, uuid } from "../../utils";
3
+ import { h, } from "@stencil/core";
4
+ /**
5
+ * @slot children - This is a default/unnamed slot
6
+
7
+ */
8
+ export class DBLoadingIndicator {
9
+ constructor() {
10
+ this.autoDisable = true;
11
+ this.indeterminate = true;
12
+ this.size = "medium";
13
+ this.variant = "inline";
14
+ this._id = DEFAULT_ID;
15
+ this._loadingState = "inactive";
16
+ this._previousLoadingState = undefined;
17
+ this._style = {};
18
+ this.initialized = false;
19
+ }
20
+ getPercentage() {
21
+ if (this.indeterminate || !this.value || !this.max) {
22
+ return;
23
+ }
24
+ return `${(Number(this.value) / Number(this.max)).toFixed(2)}`;
25
+ }
26
+ getRole() {
27
+ if (this.role) {
28
+ if (this.role === "none") {
29
+ return;
30
+ }
31
+ return this.role;
32
+ }
33
+ return "status";
34
+ }
35
+ handleParentDisabled() {
36
+ if (this._ref && this.autoDisable && this.initialized) {
37
+ let parent = this._ref.parentElement;
38
+ if (parent && parent.localName === "db-loading-indicator") {
39
+ parent = parent.parentElement;
40
+ }
41
+ if (parent && "disabled" in parent) {
42
+ parent.disabled = this._loadingState !== "inactive";
43
+ }
44
+ }
45
+ }
46
+ handleParentAria(remove) {
47
+ if (this._ref && this._id && this.initialized) {
48
+ let parent = this._ref.parentElement;
49
+ if (parent && parent.localName === "db-loading-indicator") {
50
+ parent = parent.parentElement;
51
+ }
52
+ if (!parent)
53
+ return;
54
+ const isButton = (parent === null || parent === void 0 ? void 0 : parent.localName) === "button";
55
+ if (!(isButton || this.overlay))
56
+ return;
57
+ const ariaAttribute = isButton ? "aria-labelledby" : "aria-describedby";
58
+ const ariaLabelledBy = parent.getAttribute(ariaAttribute);
59
+ let labelledByElements = ariaLabelledBy ? ariaLabelledBy.split(",") : [];
60
+ if (remove || this._loadingState === "inactive") {
61
+ if (labelledByElements.includes(this._id)) {
62
+ labelledByElements = labelledByElements.filter((elementId) => elementId !== this._id);
63
+ if (!isButton) {
64
+ parent.ariaBusy = null;
65
+ }
66
+ }
67
+ else {
68
+ return;
69
+ }
70
+ }
71
+ else {
72
+ if (!labelledByElements.includes(this._id)) {
73
+ labelledByElements.push(this._id);
74
+ }
75
+ if (!isButton) {
76
+ parent.ariaBusy = this._loadingState === "active" ? "true" : null;
77
+ }
78
+ }
79
+ if (labelledByElements.length) {
80
+ parent.setAttribute(ariaAttribute, labelledByElements.join(","));
81
+ }
82
+ else {
83
+ parent.removeAttribute(ariaAttribute);
84
+ }
85
+ }
86
+ }
87
+ /**
88
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
89
+ * @param element the ref for the component
90
+ * @param customElementSelector the custom element like `my-component`
91
+ */
92
+ enableAttributePassing(element, customElementSelector) {
93
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
94
+ if (element && parent) {
95
+ const attributes = parent.attributes;
96
+ for (let i = 0; i < attributes.length; i++) {
97
+ const attr = attributes.item(i);
98
+ if (attr &&
99
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
100
+ element.setAttribute(attr.name, attr.value);
101
+ parent.removeAttribute(attr.name);
102
+ }
103
+ if (attr && attr.name === "class") {
104
+ const isWebComponent = attr.value.includes("hydrated");
105
+ const value = attr.value.replace("hydrated", "").trim();
106
+ const currentClass = element.getAttribute("class");
107
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
108
+ if (isWebComponent) {
109
+ // Stencil is using this class for lazy loading component
110
+ parent.setAttribute("class", "hydrated");
111
+ }
112
+ else {
113
+ parent.removeAttribute(attr.name);
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ watch0Fn() {
120
+ this.handleParentDisabled();
121
+ }
122
+ watch0() {
123
+ this.watch0Fn();
124
+ }
125
+ watch1Fn() {
126
+ this.handleParentAria(false);
127
+ }
128
+ watch1() {
129
+ this.watch1Fn();
130
+ }
131
+ watch2Fn() {
132
+ if (this.timeout) {
133
+ // Not merged if as workaround for angular
134
+ if (this._loadingState !== "inactive" &&
135
+ this._loadingState !== this._previousLoadingState) {
136
+ this._previousLoadingState = this._loadingState;
137
+ void delayFn(() => {
138
+ if (this.timeout) {
139
+ this.timeout.emit(this._loadingState);
140
+ }
141
+ }, this._loadingState === "active" ? 5000 : 2000);
142
+ }
143
+ }
144
+ }
145
+ watch2() {
146
+ this.watch2Fn();
147
+ }
148
+ watch3Fn() {
149
+ if (this._loadingState === this.state)
150
+ return;
151
+ if (this.state) {
152
+ this._loadingState = this.state;
153
+ }
154
+ else if (this.indeterminate === undefined || this.indeterminate) {
155
+ this._loadingState = "active";
156
+ }
157
+ else {
158
+ this._loadingState = "inactive";
159
+ }
160
+ }
161
+ watch3() {
162
+ this.watch3Fn();
163
+ }
164
+ watch4Fn() {
165
+ if (this._ref) {
166
+ if (this.delay === "slow" || this.delay === "fast") {
167
+ void delayFn(() => {
168
+ if (this._ref) {
169
+ this._ref.dataset["delay"] = "";
170
+ }
171
+ }, this.delay === "slow" ? 500 : 250);
172
+ }
173
+ }
174
+ }
175
+ watch4() {
176
+ this.watch4Fn();
177
+ }
178
+ watch5Fn() {
179
+ this._style = {
180
+ "--db-loading-indicator-percentage": this.getPercentage(),
181
+ };
182
+ }
183
+ watch5() {
184
+ this.watch5Fn();
185
+ }
186
+ componentDidLoad() {
187
+ this.enableAttributePassing(this._ref, "db-loading-indicator");
188
+ this._id = this.id || "loading-indicator-" + uuid();
189
+ this.initialized = true;
190
+ this.watch0Fn();
191
+ this.watch1Fn();
192
+ this.watch2Fn();
193
+ this.watch3Fn();
194
+ this.watch4Fn();
195
+ this.watch5Fn();
196
+ }
197
+ disconnectedCallback() {
198
+ this.handleParentAria(true);
199
+ this.handleParentDisabled();
200
+ }
201
+ render() {
202
+ var _a, _b;
203
+ return (h("div", { key: '4467fd7c9ebec6fe699995183b870ea08fa60ba7', class: cls("db-loading-indicator", this.className), ref: (el) => {
204
+ this._ref = el;
205
+ }, style: this._style, "data-indeterminate": getBooleanAsString(this.indeterminate), "data-size": this.size, "data-variant": this.variant, "data-delay": this.delay, "data-state": this._loadingState, "data-overlay": getBooleanAsString(this.overlay) }, this.variant !== "progress-bar" ? (h("svg", { class: "db-loading-indicator-circle", "aria-hidden": "true", viewBox: this.variant === "inline" ? "10 10 20 20" : "32 32 64 64" }, h("circle", { class: "db-loading-indicator-circle-track" }), h("circle", { class: "db-loading-indicator-circle-segment" }))) : null, h("div", { key: '7ea9f9fd64f1b7d073ca7917a4e8eb905eb344f0', role: this.getRole() }, h("label", { key: 'de7fd82a1e14e459735cf596f18104722965e7f2', "data-show-label": getBooleanAsString(this.showLabel), id: this._id }, this.label ? this.label : h("slot", null), h("progress", { key: 'd2abf58f6595675e873056610e1bec18bf4dff85', value: this.indeterminate ? undefined : (_a = this.value) !== null && _a !== void 0 ? _a : 0, max: this.indeterminate ? undefined : (_b = this.max) !== null && _b !== void 0 ? _b : 100 }, this.indeterminate ? undefined : this.progressText)), !this.indeterminate ? (h("span", { "aria-hidden": "true", "data-show-progress-text": getBooleanAsString(this.showProgressText) }, this.progressText)) : null)));
206
+ }
207
+ static get is() { return "db-loading-indicator"; }
208
+ static get properties() {
209
+ return {
210
+ "id": {
211
+ "type": "string",
212
+ "mutable": false,
213
+ "complexType": {
214
+ "original": "DBLoadingIndicatorProps[\"id\"]",
215
+ "resolved": "string",
216
+ "references": {
217
+ "DBLoadingIndicatorProps": {
218
+ "location": "import",
219
+ "path": "./model",
220
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
221
+ "referenceLocation": "DBLoadingIndicatorProps"
222
+ }
223
+ }
224
+ },
225
+ "required": false,
226
+ "optional": false,
227
+ "docs": {
228
+ "tags": [],
229
+ "text": ""
230
+ },
231
+ "getter": false,
232
+ "setter": false,
233
+ "reflect": false,
234
+ "attribute": "id"
235
+ },
236
+ "autoDisable": {
237
+ "type": "any",
238
+ "mutable": false,
239
+ "complexType": {
240
+ "original": "DBLoadingIndicatorProps[\"autoDisable\"]",
241
+ "resolved": "boolean | string",
242
+ "references": {
243
+ "DBLoadingIndicatorProps": {
244
+ "location": "import",
245
+ "path": "./model",
246
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
247
+ "referenceLocation": "DBLoadingIndicatorProps"
248
+ }
249
+ }
250
+ },
251
+ "required": false,
252
+ "optional": false,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": ""
256
+ },
257
+ "getter": false,
258
+ "setter": false,
259
+ "reflect": false,
260
+ "attribute": "auto-disable",
261
+ "defaultValue": "true"
262
+ },
263
+ "overlay": {
264
+ "type": "any",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "DBLoadingIndicatorProps[\"overlay\"]",
268
+ "resolved": "boolean | string",
269
+ "references": {
270
+ "DBLoadingIndicatorProps": {
271
+ "location": "import",
272
+ "path": "./model",
273
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
274
+ "referenceLocation": "DBLoadingIndicatorProps"
275
+ }
276
+ }
277
+ },
278
+ "required": false,
279
+ "optional": false,
280
+ "docs": {
281
+ "tags": [],
282
+ "text": ""
283
+ },
284
+ "getter": false,
285
+ "setter": false,
286
+ "reflect": false,
287
+ "attribute": "overlay"
288
+ },
289
+ "state": {
290
+ "type": "string",
291
+ "mutable": false,
292
+ "complexType": {
293
+ "original": "DBLoadingIndicatorProps[\"state\"]",
294
+ "resolved": "string",
295
+ "references": {
296
+ "DBLoadingIndicatorProps": {
297
+ "location": "import",
298
+ "path": "./model",
299
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
300
+ "referenceLocation": "DBLoadingIndicatorProps"
301
+ }
302
+ }
303
+ },
304
+ "required": false,
305
+ "optional": false,
306
+ "docs": {
307
+ "tags": [],
308
+ "text": ""
309
+ },
310
+ "getter": false,
311
+ "setter": false,
312
+ "reflect": false,
313
+ "attribute": "state"
314
+ },
315
+ "indeterminate": {
316
+ "type": "any",
317
+ "mutable": false,
318
+ "complexType": {
319
+ "original": "DBLoadingIndicatorProps[\"indeterminate\"]",
320
+ "resolved": "boolean | string",
321
+ "references": {
322
+ "DBLoadingIndicatorProps": {
323
+ "location": "import",
324
+ "path": "./model",
325
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
326
+ "referenceLocation": "DBLoadingIndicatorProps"
327
+ }
328
+ }
329
+ },
330
+ "required": false,
331
+ "optional": false,
332
+ "docs": {
333
+ "tags": [],
334
+ "text": ""
335
+ },
336
+ "getter": false,
337
+ "setter": false,
338
+ "reflect": false,
339
+ "attribute": "indeterminate",
340
+ "defaultValue": "true"
341
+ },
342
+ "delay": {
343
+ "type": "string",
344
+ "mutable": false,
345
+ "complexType": {
346
+ "original": "DBLoadingIndicatorProps[\"delay\"]",
347
+ "resolved": "\"fast\" | \"none\" | \"slow\"",
348
+ "references": {
349
+ "DBLoadingIndicatorProps": {
350
+ "location": "import",
351
+ "path": "./model",
352
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
353
+ "referenceLocation": "DBLoadingIndicatorProps"
354
+ }
355
+ }
356
+ },
357
+ "required": false,
358
+ "optional": false,
359
+ "docs": {
360
+ "tags": [],
361
+ "text": ""
362
+ },
363
+ "getter": false,
364
+ "setter": false,
365
+ "reflect": false,
366
+ "attribute": "delay"
367
+ },
368
+ "value": {
369
+ "type": "any",
370
+ "mutable": false,
371
+ "complexType": {
372
+ "original": "DBLoadingIndicatorProps[\"value\"]",
373
+ "resolved": "number | string",
374
+ "references": {
375
+ "DBLoadingIndicatorProps": {
376
+ "location": "import",
377
+ "path": "./model",
378
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
379
+ "referenceLocation": "DBLoadingIndicatorProps"
380
+ }
381
+ }
382
+ },
383
+ "required": false,
384
+ "optional": false,
385
+ "docs": {
386
+ "tags": [],
387
+ "text": ""
388
+ },
389
+ "getter": false,
390
+ "setter": false,
391
+ "reflect": false,
392
+ "attribute": "value"
393
+ },
394
+ "max": {
395
+ "type": "any",
396
+ "mutable": false,
397
+ "complexType": {
398
+ "original": "DBLoadingIndicatorProps[\"max\"]",
399
+ "resolved": "number | string",
400
+ "references": {
401
+ "DBLoadingIndicatorProps": {
402
+ "location": "import",
403
+ "path": "./model",
404
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
405
+ "referenceLocation": "DBLoadingIndicatorProps"
406
+ }
407
+ }
408
+ },
409
+ "required": false,
410
+ "optional": false,
411
+ "docs": {
412
+ "tags": [],
413
+ "text": ""
414
+ },
415
+ "getter": false,
416
+ "setter": false,
417
+ "reflect": false,
418
+ "attribute": "max"
419
+ },
420
+ "role": {
421
+ "type": "string",
422
+ "mutable": false,
423
+ "complexType": {
424
+ "original": "DBLoadingIndicatorProps[\"role\"]",
425
+ "resolved": "\"alert\" | \"none\" | \"status\"",
426
+ "references": {
427
+ "DBLoadingIndicatorProps": {
428
+ "location": "import",
429
+ "path": "./model",
430
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
431
+ "referenceLocation": "DBLoadingIndicatorProps"
432
+ }
433
+ }
434
+ },
435
+ "required": false,
436
+ "optional": false,
437
+ "docs": {
438
+ "tags": [],
439
+ "text": ""
440
+ },
441
+ "getter": false,
442
+ "setter": false,
443
+ "reflect": false,
444
+ "attribute": "role"
445
+ },
446
+ "className": {
447
+ "type": "string",
448
+ "mutable": false,
449
+ "complexType": {
450
+ "original": "DBLoadingIndicatorProps[\"className\"]",
451
+ "resolved": "string",
452
+ "references": {
453
+ "DBLoadingIndicatorProps": {
454
+ "location": "import",
455
+ "path": "./model",
456
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
457
+ "referenceLocation": "DBLoadingIndicatorProps"
458
+ }
459
+ }
460
+ },
461
+ "required": false,
462
+ "optional": false,
463
+ "docs": {
464
+ "tags": [],
465
+ "text": ""
466
+ },
467
+ "getter": false,
468
+ "setter": false,
469
+ "reflect": false,
470
+ "attribute": "classname"
471
+ },
472
+ "size": {
473
+ "type": "string",
474
+ "mutable": false,
475
+ "complexType": {
476
+ "original": "DBLoadingIndicatorProps[\"size\"]",
477
+ "resolved": "\"medium\" | \"small\"",
478
+ "references": {
479
+ "DBLoadingIndicatorProps": {
480
+ "location": "import",
481
+ "path": "./model",
482
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
483
+ "referenceLocation": "DBLoadingIndicatorProps"
484
+ }
485
+ }
486
+ },
487
+ "required": false,
488
+ "optional": false,
489
+ "docs": {
490
+ "tags": [],
491
+ "text": ""
492
+ },
493
+ "getter": false,
494
+ "setter": false,
495
+ "reflect": false,
496
+ "attribute": "size",
497
+ "defaultValue": "\"medium\""
498
+ },
499
+ "variant": {
500
+ "type": "string",
501
+ "mutable": false,
502
+ "complexType": {
503
+ "original": "DBLoadingIndicatorProps[\"variant\"]",
504
+ "resolved": "\"inline\" | \"onsite\" | \"progress-bar\"",
505
+ "references": {
506
+ "DBLoadingIndicatorProps": {
507
+ "location": "import",
508
+ "path": "./model",
509
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
510
+ "referenceLocation": "DBLoadingIndicatorProps"
511
+ }
512
+ }
513
+ },
514
+ "required": false,
515
+ "optional": false,
516
+ "docs": {
517
+ "tags": [],
518
+ "text": ""
519
+ },
520
+ "getter": false,
521
+ "setter": false,
522
+ "reflect": false,
523
+ "attribute": "variant",
524
+ "defaultValue": "\"inline\""
525
+ },
526
+ "showLabel": {
527
+ "type": "any",
528
+ "mutable": false,
529
+ "complexType": {
530
+ "original": "DBLoadingIndicatorProps[\"showLabel\"]",
531
+ "resolved": "boolean | string",
532
+ "references": {
533
+ "DBLoadingIndicatorProps": {
534
+ "location": "import",
535
+ "path": "./model",
536
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
537
+ "referenceLocation": "DBLoadingIndicatorProps"
538
+ }
539
+ }
540
+ },
541
+ "required": false,
542
+ "optional": false,
543
+ "docs": {
544
+ "tags": [],
545
+ "text": ""
546
+ },
547
+ "getter": false,
548
+ "setter": false,
549
+ "reflect": false,
550
+ "attribute": "show-label"
551
+ },
552
+ "label": {
553
+ "type": "string",
554
+ "mutable": false,
555
+ "complexType": {
556
+ "original": "DBLoadingIndicatorProps[\"label\"]",
557
+ "resolved": "string",
558
+ "references": {
559
+ "DBLoadingIndicatorProps": {
560
+ "location": "import",
561
+ "path": "./model",
562
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
563
+ "referenceLocation": "DBLoadingIndicatorProps"
564
+ }
565
+ }
566
+ },
567
+ "required": false,
568
+ "optional": false,
569
+ "docs": {
570
+ "tags": [],
571
+ "text": ""
572
+ },
573
+ "getter": false,
574
+ "setter": false,
575
+ "reflect": false,
576
+ "attribute": "label"
577
+ },
578
+ "progressText": {
579
+ "type": "string",
580
+ "mutable": false,
581
+ "complexType": {
582
+ "original": "DBLoadingIndicatorProps[\"progressText\"]",
583
+ "resolved": "string",
584
+ "references": {
585
+ "DBLoadingIndicatorProps": {
586
+ "location": "import",
587
+ "path": "./model",
588
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
589
+ "referenceLocation": "DBLoadingIndicatorProps"
590
+ }
591
+ }
592
+ },
593
+ "required": false,
594
+ "optional": false,
595
+ "docs": {
596
+ "tags": [],
597
+ "text": ""
598
+ },
599
+ "getter": false,
600
+ "setter": false,
601
+ "reflect": false,
602
+ "attribute": "progress-text"
603
+ },
604
+ "showProgressText": {
605
+ "type": "any",
606
+ "mutable": false,
607
+ "complexType": {
608
+ "original": "DBLoadingIndicatorProps[\"showProgressText\"]",
609
+ "resolved": "boolean | string",
610
+ "references": {
611
+ "DBLoadingIndicatorProps": {
612
+ "location": "import",
613
+ "path": "./model",
614
+ "id": "src/components/loading-indicator/model.ts::DBLoadingIndicatorProps",
615
+ "referenceLocation": "DBLoadingIndicatorProps"
616
+ }
617
+ }
618
+ },
619
+ "required": false,
620
+ "optional": false,
621
+ "docs": {
622
+ "tags": [],
623
+ "text": ""
624
+ },
625
+ "getter": false,
626
+ "setter": false,
627
+ "reflect": false,
628
+ "attribute": "show-progress-text"
629
+ }
630
+ };
631
+ }
632
+ static get states() {
633
+ return {
634
+ "_id": {},
635
+ "_loadingState": {},
636
+ "_previousLoadingState": {},
637
+ "_style": {},
638
+ "initialized": {}
639
+ };
640
+ }
641
+ static get events() {
642
+ return [{
643
+ "method": "timeout",
644
+ "name": "timeout",
645
+ "bubbles": true,
646
+ "cancelable": true,
647
+ "composed": true,
648
+ "docs": {
649
+ "tags": [],
650
+ "text": ""
651
+ },
652
+ "complexType": {
653
+ "original": "any",
654
+ "resolved": "any",
655
+ "references": {}
656
+ }
657
+ }];
658
+ }
659
+ static get watchers() {
660
+ return [{
661
+ "propName": "_ref",
662
+ "methodName": "watch0"
663
+ }, {
664
+ "propName": "initialized",
665
+ "methodName": "watch0"
666
+ }, {
667
+ "propName": "autoDisable",
668
+ "methodName": "watch0"
669
+ }, {
670
+ "propName": "_loadingState",
671
+ "methodName": "watch0"
672
+ }, {
673
+ "propName": "_ref",
674
+ "methodName": "watch1"
675
+ }, {
676
+ "propName": "initialized",
677
+ "methodName": "watch1"
678
+ }, {
679
+ "propName": "_loadingState",
680
+ "methodName": "watch1"
681
+ }, {
682
+ "propName": "overlay",
683
+ "methodName": "watch1"
684
+ }, {
685
+ "propName": "_id",
686
+ "methodName": "watch1"
687
+ }, {
688
+ "propName": "_loadingState",
689
+ "methodName": "watch2"
690
+ }, {
691
+ "propName": "timeout",
692
+ "methodName": "watch2"
693
+ }, {
694
+ "propName": "state",
695
+ "methodName": "watch3"
696
+ }, {
697
+ "propName": "_ref",
698
+ "methodName": "watch4"
699
+ }, {
700
+ "propName": "delay",
701
+ "methodName": "watch4"
702
+ }, {
703
+ "propName": "indeterminate",
704
+ "methodName": "watch5"
705
+ }, {
706
+ "propName": "value",
707
+ "methodName": "watch5"
708
+ }, {
709
+ "propName": "max",
710
+ "methodName": "watch5"
711
+ }];
712
+ }
713
+ }