@db-ux/wc-core-components 4.6.1 → 4.7.0-tabs-34782eb

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 (168) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/agent/Tabs.md +30 -30
  3. package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
  4. package/dist/cjs/db-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/db-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/db-brand.cjs.entry.js +1 -1
  7. package/dist/cjs/db-button.cjs.entry.js +1 -1
  8. package/dist/cjs/db-card.cjs.entry.js +2 -2
  9. package/dist/cjs/db-checkbox.cjs.entry.js +2 -2
  10. package/dist/cjs/db-custom-button.cjs.entry.js +2 -2
  11. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +9 -9
  12. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +2 -2
  13. package/dist/cjs/db-custom-select.cjs.entry.js +5 -5
  14. package/dist/cjs/db-divider.cjs.entry.js +1 -1
  15. package/dist/cjs/db-drawer.cjs.entry.js +3 -3
  16. package/dist/cjs/db-header.cjs.entry.js +2 -2
  17. package/dist/cjs/db-icon.cjs.entry.js +1 -1
  18. package/dist/cjs/db-infotext.cjs.entry.js +1 -1
  19. package/dist/cjs/db-link.cjs.entry.js +1 -1
  20. package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
  21. package/dist/cjs/db-navigation.cjs.entry.js +2 -2
  22. package/dist/cjs/db-notification.cjs.entry.js +2 -2
  23. package/dist/cjs/db-page.cjs.entry.js +2 -2
  24. package/dist/cjs/db-popover.cjs.entry.js +2 -2
  25. package/dist/cjs/db-radio.cjs.entry.js +1 -1
  26. package/dist/cjs/db-section.cjs.entry.js +2 -2
  27. package/dist/cjs/db-select.cjs.entry.js +2 -2
  28. package/dist/cjs/db-stack.cjs.entry.js +2 -2
  29. package/dist/cjs/db-switch.cjs.entry.js +2 -2
  30. package/dist/cjs/db-tab-item_3.cjs.entry.js +133 -67
  31. package/dist/cjs/db-tabs.cjs.entry.js +373 -123
  32. package/dist/cjs/db-textarea.cjs.entry.js +2 -2
  33. package/dist/cjs/db-tooltip.cjs.entry.js +3 -4
  34. package/dist/cjs/db-ux.cjs.js +1 -1
  35. package/dist/cjs/index.cjs.js +2 -2
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/collection/components/accordion/accordion.js +1 -1
  38. package/dist/collection/components/accordion-item/accordion-item.js +2 -2
  39. package/dist/collection/components/badge/badge.js +1 -1
  40. package/dist/collection/components/brand/brand.js +1 -1
  41. package/dist/collection/components/button/button.js +1 -1
  42. package/dist/collection/components/card/card.js +2 -2
  43. package/dist/collection/components/checkbox/checkbox.js +2 -2
  44. package/dist/collection/components/custom-button/custom-button.js +2 -2
  45. package/dist/collection/components/custom-select/custom-select.js +5 -5
  46. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
  47. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  48. package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
  49. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +1 -1
  50. package/dist/collection/components/divider/divider.js +1 -1
  51. package/dist/collection/components/drawer/drawer.js +3 -3
  52. package/dist/collection/components/header/header.js +2 -2
  53. package/dist/collection/components/icon/icon.js +1 -1
  54. package/dist/collection/components/infotext/infotext.js +1 -1
  55. package/dist/collection/components/input/input.js +2 -2
  56. package/dist/collection/components/link/link.js +1 -1
  57. package/dist/collection/components/navigation/navigation.js +2 -2
  58. package/dist/collection/components/navigation-item/navigation-item.js +1 -1
  59. package/dist/collection/components/notification/notification.js +2 -2
  60. package/dist/collection/components/page/page.js +2 -2
  61. package/dist/collection/components/popover/popover.js +2 -2
  62. package/dist/collection/components/radio/radio.js +1 -1
  63. package/dist/collection/components/section/section.js +2 -2
  64. package/dist/collection/components/select/select.js +2 -2
  65. package/dist/collection/components/stack/stack.js +2 -2
  66. package/dist/collection/components/switch/switch.js +2 -2
  67. package/dist/collection/components/tab-item/tab-item.js +198 -129
  68. package/dist/collection/components/tab-list/tab-list.js +74 -12
  69. package/dist/collection/components/tab-panel/tab-panel.js +80 -2
  70. package/dist/collection/components/tabs/tabs.js +504 -167
  71. package/dist/collection/components/tag/tag.js +2 -2
  72. package/dist/collection/components/textarea/textarea.js +2 -2
  73. package/dist/collection/components/tooltip/tooltip.js +3 -4
  74. package/dist/collection/shared/model.js +1 -1
  75. package/dist/custom-elements.json +4021 -3053
  76. package/dist/db-ux/db-ux.esm.js +1 -1
  77. package/dist/db-ux/index.esm.js +1 -1
  78. package/dist/db-ux/{p-2355324e.entry.js → p-01c278b9.entry.js} +1 -1
  79. package/dist/db-ux/{p-5f5eb78d.entry.js → p-071ae423.entry.js} +1 -1
  80. package/dist/db-ux/{p-abb0885d.entry.js → p-07c7ecc9.entry.js} +1 -1
  81. package/dist/db-ux/p-10869bfa.entry.js +1 -0
  82. package/dist/db-ux/p-1427bb15.entry.js +1 -0
  83. package/dist/db-ux/{p-70823b80.entry.js → p-328faf6b.entry.js} +1 -1
  84. package/dist/db-ux/p-397bc590.entry.js +1 -0
  85. package/dist/db-ux/{p-d85b1c15.entry.js → p-43a9623f.entry.js} +1 -1
  86. package/dist/db-ux/{p-67d59d5b.entry.js → p-44a0407b.entry.js} +1 -1
  87. package/dist/db-ux/{p-12a2c502.entry.js → p-61784f7a.entry.js} +1 -1
  88. package/dist/db-ux/p-68835a75.entry.js +1 -0
  89. package/dist/db-ux/p-68a995df.entry.js +1 -0
  90. package/dist/db-ux/{p-a65d0d23.entry.js → p-6c26b0ba.entry.js} +1 -1
  91. package/dist/db-ux/p-6e898a58.entry.js +1 -0
  92. package/dist/db-ux/{p-761c9ddf.entry.js → p-70e6d32f.entry.js} +1 -1
  93. package/dist/db-ux/p-71868bb5.entry.js +1 -0
  94. package/dist/db-ux/{p-bed8d029.entry.js → p-74a45768.entry.js} +1 -1
  95. package/dist/db-ux/{p-ba8464d2.entry.js → p-9a895c18.entry.js} +1 -1
  96. package/dist/db-ux/p-9b4d0c18.entry.js +1 -0
  97. package/dist/db-ux/{p-0e0c3c72.entry.js → p-9b518eb4.entry.js} +1 -1
  98. package/dist/db-ux/p-a927fe88.entry.js +1 -0
  99. package/dist/db-ux/p-a93ca690.entry.js +1 -0
  100. package/dist/db-ux/{p-212bde1e.entry.js → p-b06fe221.entry.js} +1 -1
  101. package/dist/db-ux/{p-13157b54.entry.js → p-b7087f0b.entry.js} +1 -1
  102. package/dist/db-ux/{p-d8b38722.entry.js → p-d93b9d58.entry.js} +1 -1
  103. package/dist/db-ux/p-d97c0787.entry.js +1 -0
  104. package/dist/db-ux/{p-c76089f6.entry.js → p-ee43015b.entry.js} +1 -1
  105. package/dist/db-ux/p-efde1b6e.entry.js +1 -0
  106. package/dist/db-ux/{p-5cb74480.entry.js → p-f08b14d9.entry.js} +1 -1
  107. package/dist/db-ux/p-f92cbbae.entry.js +1 -0
  108. package/dist/db-ux/{p-980a6afe.entry.js → p-ffe614c8.entry.js} +1 -1
  109. package/dist/esm/db-accordion-item.entry.js +2 -2
  110. package/dist/esm/db-accordion.entry.js +1 -1
  111. package/dist/esm/db-badge.entry.js +1 -1
  112. package/dist/esm/db-brand.entry.js +1 -1
  113. package/dist/esm/db-button.entry.js +1 -1
  114. package/dist/esm/db-card.entry.js +2 -2
  115. package/dist/esm/db-checkbox.entry.js +2 -2
  116. package/dist/esm/db-custom-button.entry.js +2 -2
  117. package/dist/esm/db-custom-select-dropdown_5.entry.js +9 -9
  118. package/dist/esm/db-custom-select-form-field.entry.js +2 -2
  119. package/dist/esm/db-custom-select.entry.js +5 -5
  120. package/dist/esm/db-divider.entry.js +1 -1
  121. package/dist/esm/db-drawer.entry.js +3 -3
  122. package/dist/esm/db-header.entry.js +2 -2
  123. package/dist/esm/db-icon.entry.js +1 -1
  124. package/dist/esm/db-infotext.entry.js +1 -1
  125. package/dist/esm/db-link.entry.js +1 -1
  126. package/dist/esm/db-navigation-item.entry.js +1 -1
  127. package/dist/esm/db-navigation.entry.js +2 -2
  128. package/dist/esm/db-notification.entry.js +2 -2
  129. package/dist/esm/db-page.entry.js +2 -2
  130. package/dist/esm/db-popover.entry.js +2 -2
  131. package/dist/esm/db-radio.entry.js +1 -1
  132. package/dist/esm/db-section.entry.js +2 -2
  133. package/dist/esm/db-select.entry.js +2 -2
  134. package/dist/esm/db-stack.entry.js +2 -2
  135. package/dist/esm/db-switch.entry.js +2 -2
  136. package/dist/esm/db-tab-item_3.entry.js +134 -68
  137. package/dist/esm/db-tabs.entry.js +373 -123
  138. package/dist/esm/db-textarea.entry.js +2 -2
  139. package/dist/esm/db-tooltip.entry.js +4 -5
  140. package/dist/esm/db-ux.js +1 -1
  141. package/dist/esm/index.js +2 -2
  142. package/dist/esm/loader.js +1 -1
  143. package/dist/types/components/tab-item/model.d.ts +28 -11
  144. package/dist/types/components/tab-item/tab-item.d.ts +22 -20
  145. package/dist/types/components/tab-list/model.d.ts +15 -5
  146. package/dist/types/components/tab-list/tab-list.d.ts +4 -1
  147. package/dist/types/components/tab-panel/model.d.ts +13 -3
  148. package/dist/types/components/tab-panel/tab-panel.d.ts +3 -0
  149. package/dist/types/components/tabs/model.d.ts +51 -17
  150. package/dist/types/components/tabs/tabs.d.ts +35 -16
  151. package/dist/types/components.d.ts +80 -30
  152. package/dist/types/shared/model.d.ts +5 -5
  153. package/dist/vscode.html-custom-data.json +153 -59
  154. package/dist/web-types.json +297 -135
  155. package/package.json +3 -3
  156. package/dist/db-ux/p-202323c2.entry.js +0 -1
  157. package/dist/db-ux/p-21068628.entry.js +0 -1
  158. package/dist/db-ux/p-377987d0.entry.js +0 -1
  159. package/dist/db-ux/p-3d5d49ff.entry.js +0 -1
  160. package/dist/db-ux/p-452a8b6b.entry.js +0 -1
  161. package/dist/db-ux/p-4de2c697.entry.js +0 -1
  162. package/dist/db-ux/p-605013f0.entry.js +0 -1
  163. package/dist/db-ux/p-6f9e146e.entry.js +0 -1
  164. package/dist/db-ux/p-7fa91164.entry.js +0 -1
  165. package/dist/db-ux/p-8e84712d.entry.js +0 -1
  166. package/dist/db-ux/p-a9efbb0b.entry.js +0 -1
  167. package/dist/db-ux/p-bd66d144.entry.js +0 -1
  168. package/dist/db-ux/p-dd08f6e4.entry.js +0 -1
@@ -1,10 +1,13 @@
1
- import { cls } from "../../utils";
1
+ import { cls, uuid } from "../../utils";
2
2
  import { h } from "@stencil/core";
3
3
  /**
4
4
  * @slot children - This is a default/unnamed slot
5
5
 
6
6
  */
7
7
  export class DBTabList {
8
+ constructor() {
9
+ this._id = "tab-list-base-id";
10
+ }
8
11
  /**
9
12
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
10
13
  * @param element the ref for the component
@@ -43,12 +46,12 @@ export class DBTabList {
43
46
  }
44
47
  componentDidLoad() {
45
48
  this.enableAttributePassing(this._ref, "db-tab-list");
49
+ this._id = this.id || "tab-list-" + uuid();
46
50
  }
47
51
  render() {
48
- var _a, _b;
49
- return (h("div", { key: '8f02145864a04b79d94d5d5923b6eff32346a0c3', class: cls("db-tab-list", this.className), ref: (el) => {
52
+ return (h("div", { key: 'd6e9d47968f44e65f2c0f400a4141917e2035727', class: cls("db-tab-list", this.className), role: "tablist", ref: (el) => {
50
53
  this._ref = el;
51
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '759fdba6e69209ca915148c8b190f9311cb6f1ff', role: "tablist" }, h("slot", { key: '96bf4a10d3b422d6eb6be68c46f926b9f55eb0e6' }))));
54
+ }, id: this._id, "aria-orientation": this.orientation || "horizontal", "aria-label": this.ariaLabelledby ? undefined : this.ariaLabel, "aria-labelledby": this.ariaLabelledby }, h("slot", { key: 'dafa7344fceee4c2cb0fd3d364509c41e4686e6d' })));
52
55
  }
53
56
  static get is() { return "db-tab-list"; }
54
57
  static get properties() {
@@ -79,12 +82,12 @@ export class DBTabList {
79
82
  "reflect": false,
80
83
  "attribute": "id"
81
84
  },
82
- "propOverrides": {
83
- "type": "unknown",
85
+ "className": {
86
+ "type": "string",
84
87
  "mutable": false,
85
88
  "complexType": {
86
- "original": "DBTabListProps[\"propOverrides\"]",
87
- "resolved": "{ id?: string; }",
89
+ "original": "DBTabListProps[\"className\"]",
90
+ "resolved": "string",
88
91
  "references": {
89
92
  "DBTabListProps": {
90
93
  "location": "import",
@@ -101,13 +104,41 @@ export class DBTabList {
101
104
  "text": ""
102
105
  },
103
106
  "getter": false,
104
- "setter": false
107
+ "setter": false,
108
+ "reflect": false,
109
+ "attribute": "classname"
105
110
  },
106
- "className": {
111
+ "orientation": {
107
112
  "type": "string",
108
113
  "mutable": false,
109
114
  "complexType": {
110
- "original": "DBTabListProps[\"className\"]",
115
+ "original": "DBTabListProps[\"orientation\"]",
116
+ "resolved": "\"horizontal\" | \"vertical\"",
117
+ "references": {
118
+ "DBTabListProps": {
119
+ "location": "import",
120
+ "path": "./model",
121
+ "id": "src/components/tab-list/model.ts::DBTabListProps",
122
+ "referenceLocation": "DBTabListProps"
123
+ }
124
+ }
125
+ },
126
+ "required": false,
127
+ "optional": false,
128
+ "docs": {
129
+ "tags": [],
130
+ "text": ""
131
+ },
132
+ "getter": false,
133
+ "setter": false,
134
+ "reflect": false,
135
+ "attribute": "orientation"
136
+ },
137
+ "ariaLabelledby": {
138
+ "type": "string",
139
+ "mutable": false,
140
+ "complexType": {
141
+ "original": "DBTabListProps[\"ariaLabelledby\"]",
111
142
  "resolved": "string",
112
143
  "references": {
113
144
  "DBTabListProps": {
@@ -127,8 +158,39 @@ export class DBTabList {
127
158
  "getter": false,
128
159
  "setter": false,
129
160
  "reflect": false,
130
- "attribute": "classname"
161
+ "attribute": "aria-labelledby"
162
+ },
163
+ "ariaLabel": {
164
+ "type": "string",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "DBTabListProps[\"ariaLabel\"]",
168
+ "resolved": "string",
169
+ "references": {
170
+ "DBTabListProps": {
171
+ "location": "import",
172
+ "path": "./model",
173
+ "id": "src/components/tab-list/model.ts::DBTabListProps",
174
+ "referenceLocation": "DBTabListProps"
175
+ }
176
+ }
177
+ },
178
+ "required": false,
179
+ "optional": false,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": ""
183
+ },
184
+ "getter": false,
185
+ "setter": false,
186
+ "reflect": false,
187
+ "attribute": "aria-label"
131
188
  }
132
189
  };
133
190
  }
191
+ static get states() {
192
+ return {
193
+ "_id": {}
194
+ };
195
+ }
134
196
  }
@@ -46,9 +46,9 @@ export class DBTabPanel {
46
46
  }
47
47
  render() {
48
48
  var _a, _b;
49
- return (h("section", { key: 'c10873d5857be6ea8653189ab735784939c53474', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
49
+ return (h("div", { key: '231689474d2f2b3acfa8e8aed736b3a76559daf9', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
50
50
  this._ref = el;
51
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, h("slot", { key: '57a98a1b7e26ca61b16397b7615f71d883bfbd28' })));
51
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, tabIndex: this.hidden ? -1 : 0, hidden: this.hidden, "aria-label": this.ariaLabel, "aria-labelledby": this.ariaLabel ? undefined : this.ariaLabelledby }, this.content ? this.content : null, h("slot", { key: 'eb72a30d12dcd1bce44b0a2b61d2c486ec779d16' })));
52
52
  }
53
53
  static get is() { return "db-tab-panel"; }
54
54
  static get properties() {
@@ -129,6 +129,84 @@ export class DBTabPanel {
129
129
  "getter": false,
130
130
  "setter": false
131
131
  },
132
+ "hidden": {
133
+ "type": "boolean",
134
+ "mutable": false,
135
+ "complexType": {
136
+ "original": "DBTabPanelProps[\"hidden\"]",
137
+ "resolved": "boolean",
138
+ "references": {
139
+ "DBTabPanelProps": {
140
+ "location": "import",
141
+ "path": "./model",
142
+ "id": "src/components/tab-panel/model.ts::DBTabPanelProps",
143
+ "referenceLocation": "DBTabPanelProps"
144
+ }
145
+ }
146
+ },
147
+ "required": false,
148
+ "optional": false,
149
+ "docs": {
150
+ "tags": [],
151
+ "text": ""
152
+ },
153
+ "getter": false,
154
+ "setter": false,
155
+ "reflect": false,
156
+ "attribute": "hidden"
157
+ },
158
+ "ariaLabel": {
159
+ "type": "string",
160
+ "mutable": false,
161
+ "complexType": {
162
+ "original": "DBTabPanelProps[\"ariaLabel\"]",
163
+ "resolved": "string",
164
+ "references": {
165
+ "DBTabPanelProps": {
166
+ "location": "import",
167
+ "path": "./model",
168
+ "id": "src/components/tab-panel/model.ts::DBTabPanelProps",
169
+ "referenceLocation": "DBTabPanelProps"
170
+ }
171
+ }
172
+ },
173
+ "required": false,
174
+ "optional": false,
175
+ "docs": {
176
+ "tags": [],
177
+ "text": ""
178
+ },
179
+ "getter": false,
180
+ "setter": false,
181
+ "reflect": false,
182
+ "attribute": "aria-label"
183
+ },
184
+ "ariaLabelledby": {
185
+ "type": "string",
186
+ "mutable": false,
187
+ "complexType": {
188
+ "original": "DBTabPanelProps[\"ariaLabelledby\"]",
189
+ "resolved": "string",
190
+ "references": {
191
+ "DBTabPanelProps": {
192
+ "location": "import",
193
+ "path": "./model",
194
+ "id": "src/components/tab-panel/model.ts::DBTabPanelProps",
195
+ "referenceLocation": "DBTabPanelProps"
196
+ }
197
+ }
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": ""
204
+ },
205
+ "getter": false,
206
+ "setter": false,
207
+ "reflect": false,
208
+ "attribute": "aria-labelledby"
209
+ },
132
210
  "content": {
133
211
  "type": "string",
134
212
  "mutable": false,