@db-ux/wc-core-components 4.5.4 → 4.6.1
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 +21 -0
- package/README.md +32 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-button.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +8 -10
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +1 -1
- package/dist/cjs/db-header.cjs.entry.js +1 -1
- package/dist/cjs/db-icon.cjs.entry.js +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation.cjs.entry.js +1 -1
- package/dist/cjs/db-notification.cjs.entry.js +1 -1
- package/dist/cjs/db-page.cjs.entry.js +1 -1
- package/dist/cjs/db-popover.cjs.entry.js +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +1 -1
- package/dist/cjs/db-section.cjs.entry.js +1 -1
- package/dist/cjs/db-select.cjs.entry.js +5 -5
- package/dist/cjs/db-stack.cjs.entry.js +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +1 -1
- package/dist/cjs/db-tabs.cjs.entry.js +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +5 -7
- package/dist/cjs/db-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/{index-D_vrmAD6.js → index-BoC-BWt4.js} +36 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/input/input.js +7 -9
- package/dist/collection/components/select/select.js +4 -4
- package/dist/collection/components/textarea/textarea.js +4 -6
- package/dist/collection/utils/form-components.js +25 -3
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/{p-29442fd9.entry.js → p-0e0c3c72.entry.js} +1 -1
- package/dist/db-ux/{p-074e4a43.entry.js → p-12a2c502.entry.js} +1 -1
- package/dist/db-ux/{p-ff3866f3.entry.js → p-13157b54.entry.js} +1 -1
- package/dist/db-ux/{p-587263ad.entry.js → p-202323c2.entry.js} +1 -1
- package/dist/db-ux/{p-9a19e197.entry.js → p-21068628.entry.js} +1 -1
- package/dist/db-ux/{p-32c4a1b5.entry.js → p-212bde1e.entry.js} +1 -1
- package/dist/db-ux/p-2355324e.entry.js +1 -0
- package/dist/db-ux/{p-0541c3c2.entry.js → p-377987d0.entry.js} +1 -1
- package/dist/db-ux/{p-c6f43506.entry.js → p-3d5d49ff.entry.js} +1 -1
- package/dist/db-ux/{p-4cda36f1.entry.js → p-452a8b6b.entry.js} +1 -1
- package/dist/db-ux/{p-d186aef4.entry.js → p-4de2c697.entry.js} +1 -1
- package/dist/db-ux/{p-745ccfb8.entry.js → p-5cb74480.entry.js} +1 -1
- package/dist/db-ux/{p-1c89f0fc.entry.js → p-5f5eb78d.entry.js} +1 -1
- package/dist/db-ux/{p-3e5be44c.entry.js → p-605013f0.entry.js} +1 -1
- package/dist/db-ux/{p-dceb35a8.entry.js → p-67d59d5b.entry.js} +1 -1
- package/dist/db-ux/{p-f0bc176a.entry.js → p-6f9e146e.entry.js} +1 -1
- package/dist/db-ux/{p-9fb146d1.entry.js → p-70823b80.entry.js} +1 -1
- package/dist/db-ux/{p-ef034bba.entry.js → p-761c9ddf.entry.js} +1 -1
- package/dist/db-ux/{p-836f0fef.entry.js → p-7fa91164.entry.js} +1 -1
- package/dist/db-ux/{p-6b073570.entry.js → p-8e84712d.entry.js} +1 -1
- package/dist/db-ux/{p-213bfff6.entry.js → p-980a6afe.entry.js} +1 -1
- package/dist/db-ux/p-K4o-AcjZ.js +2 -0
- package/dist/db-ux/{p-fb5f7825.entry.js → p-a65d0d23.entry.js} +1 -1
- package/dist/db-ux/{p-a34d2691.entry.js → p-a9efbb0b.entry.js} +1 -1
- package/dist/db-ux/{p-2bce91e1.entry.js → p-abb0885d.entry.js} +1 -1
- package/dist/db-ux/{p-043c407c.entry.js → p-ba8464d2.entry.js} +1 -1
- package/dist/db-ux/{p-4cf64cbb.entry.js → p-bd66d144.entry.js} +1 -1
- package/dist/db-ux/{p-e199b6f9.entry.js → p-bed8d029.entry.js} +1 -1
- package/dist/db-ux/{p-11251b99.entry.js → p-c76089f6.entry.js} +1 -1
- package/dist/db-ux/{p-5028b12e.entry.js → p-d85b1c15.entry.js} +1 -1
- package/dist/db-ux/{p-e3664354.entry.js → p-d8b38722.entry.js} +1 -1
- package/dist/db-ux/{p-56af9177.entry.js → p-dd08f6e4.entry.js} +1 -1
- package/dist/esm/db-accordion-item.entry.js +1 -1
- package/dist/esm/db-accordion.entry.js +1 -1
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +1 -1
- package/dist/esm/db-card.entry.js +1 -1
- package/dist/esm/db-checkbox.entry.js +1 -1
- package/dist/esm/db-custom-button.entry.js +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +8 -10
- package/dist/esm/db-custom-select-form-field.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +1 -1
- package/dist/esm/db-divider.entry.js +1 -1
- package/dist/esm/db-drawer.entry.js +1 -1
- package/dist/esm/db-header.entry.js +1 -1
- package/dist/esm/db-icon.entry.js +1 -1
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +1 -1
- package/dist/esm/db-navigation-item.entry.js +1 -1
- package/dist/esm/db-navigation.entry.js +1 -1
- package/dist/esm/db-notification.entry.js +1 -1
- package/dist/esm/db-page.entry.js +1 -1
- package/dist/esm/db-popover.entry.js +1 -1
- package/dist/esm/db-radio.entry.js +1 -1
- package/dist/esm/db-section.entry.js +1 -1
- package/dist/esm/db-select.entry.js +5 -5
- package/dist/esm/db-stack.entry.js +1 -1
- package/dist/esm/db-switch.entry.js +1 -1
- package/dist/esm/db-tab-item_3.entry.js +1 -1
- package/dist/esm/db-tabs.entry.js +1 -1
- package/dist/esm/db-textarea.entry.js +5 -7
- package/dist/esm/db-tooltip.entry.js +1 -1
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/{index-BjIPMjCM.js → index-K4o-AcjZ.js} +36 -9
- package/dist/esm/loader.js +2 -2
- package/dist/types/shared/model.d.ts +1 -1
- package/dist/types/utils/form-components.d.ts +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/db-ux/p-BjIPMjCM.js +0 -2
- package/dist/db-ux/p-cdfaf027.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @db-ux/wc-core-components
|
|
2
2
|
|
|
3
|
+
## 4.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(navigation): issue with changed transform inside drawer lead to broken sub-navigation for mobile view - [see commit 1762975](https://github.com/db-ux-design-system/core-web/commit/17629755c0c249808c0bb69686f167677d4181ee)
|
|
8
|
+
|
|
9
|
+
## 4.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- refactor: exclude whitelabel-theme from default bundle to reduce size and to align with "how to import a theme" - [see commit f272967](https://github.com/db-ux-design-system/core-web/commit/f272967acb7a37dc9b07d9786134e437b284e9b6)
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- fix: issue with tailwind duplicating some classes by using `@theme` inline - [see commit 92de4e6](https://github.com/db-ux-design-system/core-web/commit/92de4e6e5fdad3be5629d7457944d3b9b7396cf4)
|
|
18
|
+
|
|
19
|
+
- docs(vite): mentioning version 8 configuration in `README.md` file - [see commit 4c5fc92](https://github.com/db-ux-design-system/core-web/commit/4c5fc9266402d9585087f4738a1a800cff1515f1)
|
|
20
|
+
|
|
21
|
+
- fix(number input): prevent from clearing on intermediate decimal entry - [see commit aa85967](https://github.com/db-ux-design-system/core-web/commit/aa85967ffeaa685f6b647069d0e1d415d812dc87):
|
|
22
|
+
- fix(input,textarea): allow using `undefined` as `value`
|
|
23
|
+
|
|
3
24
|
## 4.5.4
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -42,6 +42,38 @@ import "@db-ux/core-components/build/styles/rollup.css";
|
|
|
42
42
|
|
|
43
43
|
</details>
|
|
44
44
|
|
|
45
|
+
### Vite 8
|
|
46
|
+
|
|
47
|
+
Starting with Vite 8, the default CSS minifier was changed to [LightningCSS](https://lightningcss.dev/), which provides buggy transformations for modern CSS features used by the DB UX Design System (e.g. `light-dark()` CSS function). To keep CSS output stable, configure `vite.config.ts` like this:
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
// vite.config.ts
|
|
51
|
+
export default defineConfig({
|
|
52
|
+
build: {
|
|
53
|
+
cssMinify: "esbuild"
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
> Alternatively, you could define a [browserslist](https://browsersl.ist/) based on your individual browser support strategy — which might be totally different from the list Vite 8 defines by default (targeting browsers from the early 2020s):
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
// Note: You need to install the required packages first:
|
|
62
|
+
// npm install -D lightningcss browserslist
|
|
63
|
+
|
|
64
|
+
// vite.config.ts
|
|
65
|
+
import { browserslistToTargets } from "lightningcss";
|
|
66
|
+
import browserslist from "browserslist";
|
|
67
|
+
|
|
68
|
+
export default defineConfig({
|
|
69
|
+
css: {
|
|
70
|
+
lightningcss: {
|
|
71
|
+
targets: browserslistToTargets(browserslist(">= 0.5%, last 2 major versions, Firefox ESR, not dead"))
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
```
|
|
76
|
+
|
|
45
77
|
> **Note:** The `@db-ux/core-components/build/styles/relative` file contains optional and all components styles. If you consider performance issues see [@db-ux/core-components](https://www.npmjs.com/package/@db-ux/core-components) for more information.
|
|
46
78
|
|
|
47
79
|
### DB Theme
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
var constants = require('./constants-bMY2_d8A.js');
|
|
6
6
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
@@ -357,9 +357,7 @@ const DBInput = class {
|
|
|
357
357
|
this.watch2Fn();
|
|
358
358
|
}
|
|
359
359
|
watch3Fn() {
|
|
360
|
-
|
|
361
|
-
this._value = this.value;
|
|
362
|
-
}
|
|
360
|
+
this._value = this.value;
|
|
363
361
|
}
|
|
364
362
|
watch3() {
|
|
365
363
|
this.watch3Fn();
|
|
@@ -402,20 +400,20 @@ const DBInput = class {
|
|
|
402
400
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
403
401
|
}
|
|
404
402
|
render() {
|
|
405
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
406
|
-
return (index.h("div", { key: '
|
|
403
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
404
|
+
return (index.h("div", { key: 'ec887e9cfe4cbbe0783364d6e2f76990273b522e', class: index$1.cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-show-icon": index$1.getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing) }, index.h("label", { key: 'da8836b5b06c992ea7e18aad485254c07ad22e79', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL), index.h("input", { key: '53bfc910e26783193bb881466bb637d67cafa4e7', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
407
405
|
this._ref = el;
|
|
408
|
-
}, id: this._id, name: this.name, type: this.type || "text", multiple: index$1.getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : constants.DEFAULT_PLACEHOLDER, disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), step: index$1.getStep(this.step), value: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, maxLength: index$1.getNumber(this.maxLength, this.maxlength), minLength: index$1.getNumber(this.minLength, this.minlength), max: index$1.getInputValue(this.max, this.type), min: index$1.getInputValue(this.min, this.type), readOnly: index$1.getBoolean(this.readOnly, "readOnly") ||
|
|
409
|
-
index$1.getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: index$1.getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (
|
|
406
|
+
}, id: this._id, name: this.name, type: this.type || "text", multiple: index$1.getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : constants.DEFAULT_PLACEHOLDER, disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), step: index$1.getStep(this.step), value: (_f = (_e = this.value) !== null && _e !== void 0 ? _e : this._value) !== null && _f !== void 0 ? _f : "", maxLength: index$1.getNumber(this.maxLength, this.maxlength), minLength: index$1.getNumber(this.minLength, this.minlength), max: index$1.getInputValue(this.max, this.type), min: index$1.getInputValue(this.min, this.type), readOnly: index$1.getBoolean(this.readOnly, "readOnly") ||
|
|
407
|
+
index$1.getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: index$1.getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_g = this.ariaDescribedBy) !== null && _g !== void 0 ? _g : this._descByIds, role: [
|
|
410
408
|
"datetime-local",
|
|
411
409
|
"date",
|
|
412
410
|
"time",
|
|
413
411
|
"week",
|
|
414
412
|
"month",
|
|
415
413
|
"color",
|
|
416
|
-
].includes((
|
|
414
|
+
].includes((_h = this.type) !== null && _h !== void 0 ? _h : "") && index$1.isIOSSafari()
|
|
417
415
|
? "textbox"
|
|
418
|
-
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (
|
|
416
|
+
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_j = this.getDataList()) === null || _j === void 0 ? void 0 : _j.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: '1d08d96e457929a1d7381b5cb6f6c693865d1104' }), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '81adecdd0714f3f16e55a8aa32de42342cab14c6', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), index.h("span", { key: 'f83fc13cc844367810c86739bc5554e6dd212dae', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
419
417
|
}
|
|
420
418
|
static get watchers() { return {
|
|
421
419
|
"id": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var documentClickListener = require('./document-click-listener-B2-xKJv3.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
var documentScrollListener = require('./document-scroll-listener-ChQ7XZRk.js');
|
|
6
6
|
var floatingComponents = require('./floating-components-DlstoCKH.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
@@ -237,15 +237,15 @@ const DBSelect = class {
|
|
|
237
237
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
238
238
|
}
|
|
239
239
|
render() {
|
|
240
|
-
var _a, _b, _c, _d, _e;
|
|
241
|
-
return (index.h("div", { key: 'e083b3de98c929310348ef084f614b6115cc79cb', class: index$1.cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: 'f2dab8efe5a3c299268da1f5c58d09752b6b8ca5', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL), index.h("select", { key: '
|
|
240
|
+
var _a, _b, _c, _d, _e, _f;
|
|
241
|
+
return (index.h("div", { key: 'e083b3de98c929310348ef084f614b6115cc79cb', class: index$1.cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: 'f2dab8efe5a3c299268da1f5c58d09752b6b8ca5', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL), index.h("select", { key: '610327eb481b3806f99a8d123452bcf8e7e2ca58', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
242
242
|
this._ref = el;
|
|
243
243
|
}, required: index$1.getBoolean(this.required, "required"), disabled: index$1.getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
244
244
|
/* @ts-ignore */
|
|
245
|
-
value: (_b = this.value) !== null && _b !== void 0 ? _b : this._value, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (
|
|
245
|
+
value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (index.h("option", { class: "placeholder", value: "", "data-show-empty-option": index$1.getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
|
|
246
246
|
var _a;
|
|
247
247
|
return (index.h(index.Fragment, null, option.options ? (index.h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (index.h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (index.h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
|
|
248
|
-
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '
|
|
248
|
+
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '946099b7eaab7da894f46400e1f428de137492ba', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '723768ffcad5add62979635d354280686145ca31', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
249
249
|
}
|
|
250
250
|
static get watchers() { return {
|
|
251
251
|
"id": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
@@ -157,9 +157,7 @@ const DBTextarea = class {
|
|
|
157
157
|
this.watch2Fn();
|
|
158
158
|
}
|
|
159
159
|
watch3Fn() {
|
|
160
|
-
|
|
161
|
-
this._value = this.value;
|
|
162
|
-
}
|
|
160
|
+
this._value = this.value;
|
|
163
161
|
}
|
|
164
162
|
watch3() {
|
|
165
163
|
this.watch3Fn();
|
|
@@ -202,11 +200,11 @@ const DBTextarea = class {
|
|
|
202
200
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
203
201
|
}
|
|
204
202
|
render() {
|
|
205
|
-
var _a, _b, _c, _d, _e;
|
|
206
|
-
return (index.h("div", { key: '
|
|
203
|
+
var _a, _b, _c, _d, _e, _f;
|
|
204
|
+
return (index.h("div", { key: 'e6c64857826bf80558d0b402594a66418e62ef57', class: index$1.cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-hide-label": index$1.getHideProp(this.showLabel) }, index.h("label", { key: '38f6ce12d40275dd6fa5cfa64c6d2ca4c17fab8f', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL), index.h("textarea", { key: '6d11324a4cfce9eeed9e1bcafe0a7edb1ee6c8ce', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
207
205
|
this._ref = el;
|
|
208
206
|
}, id: this._id, "data-resize": this.resize, "data-hide-resizer": index$1.getHideProp((_b = this.showResizer) !== null && _b !== void 0 ? _b : true), disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), readOnly: index$1.getBoolean(this.readOnly, "readOnly") ||
|
|
209
|
-
index$1.getBoolean(this.readonly, "readonly"), form: this.form, maxLength: index$1.getNumber(this.maxLength, this.maxlength), minLength: index$1.getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_c = this.value) !== null && _c !== void 0 ? _c : this._value, "aria-describedby": (
|
|
207
|
+
index$1.getBoolean(this.readonly, "readonly"), form: this.form, maxLength: index$1.getNumber(this.maxLength, this.maxlength), minLength: index$1.getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_d = (_c = this.value) !== null && _c !== void 0 ? _c : this._value) !== null && _d !== void 0 ? _d : "", "aria-describedby": (_e = this.ariaDescribedBy) !== null && _e !== void 0 ? _e : this._descByIds, placeholder: (_f = this.placeholder) !== null && _f !== void 0 ? _f : constants.DEFAULT_PLACEHOLDER, rows: index$1.getNumber(this.rows, constants.DEFAULT_ROWS), cols: index$1.getNumber(this.cols) }), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '16d43aeea87f6e3597c95847c037faa194875b94', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '8b407f9a60c61ac4af26d6ec5a9571d5f37ae915', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
210
208
|
}
|
|
211
209
|
static get watchers() { return {
|
|
212
210
|
"id": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var documentScrollListener = require('./document-scroll-listener-ChQ7XZRk.js');
|
package/dist/cjs/db-ux.cjs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.43.
|
|
8
|
+
Stencil Client Patch Browser v4.43.4 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
var patchBrowser = () => {
|
|
@@ -4,7 +4,7 @@ const NAMESPACE = 'db-ux';
|
|
|
4
4
|
const BUILD = /* db-ux */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: false, slotRelocation: true, state: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Platform v4.43.
|
|
7
|
+
Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
|
|
@@ -431,6 +431,31 @@ var convertToPrivate = (node) => {
|
|
|
431
431
|
return vnode;
|
|
432
432
|
};
|
|
433
433
|
|
|
434
|
+
// src/runtime/normalize-watchers.ts
|
|
435
|
+
var normalizeWatchers = (raw) => {
|
|
436
|
+
if (!raw) return void 0;
|
|
437
|
+
const keys = Object.keys(raw);
|
|
438
|
+
if (keys.length === 0) return void 0;
|
|
439
|
+
let hasLegacy = false;
|
|
440
|
+
for (const propName of keys) {
|
|
441
|
+
if (hasLegacy) break;
|
|
442
|
+
for (const h2 of raw[propName]) {
|
|
443
|
+
if (typeof h2 === "string") {
|
|
444
|
+
hasLegacy = true;
|
|
445
|
+
break;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
if (!hasLegacy) return raw;
|
|
450
|
+
const out = {};
|
|
451
|
+
for (const propName of keys) {
|
|
452
|
+
out[propName] = raw[propName].map(
|
|
453
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
return out;
|
|
457
|
+
};
|
|
458
|
+
|
|
434
459
|
// src/runtime/parse-property-value.ts
|
|
435
460
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
436
461
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -1365,7 +1390,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1365
1390
|
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1366
1391
|
{
|
|
1367
1392
|
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1368
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1393
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1369
1394
|
}
|
|
1370
1395
|
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1371
1396
|
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
@@ -1480,11 +1505,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1480
1505
|
return;
|
|
1481
1506
|
}
|
|
1482
1507
|
const propFlags = members.find(([m]) => m === propName);
|
|
1483
|
-
|
|
1508
|
+
const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
|
|
1509
|
+
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1510
|
+
if (isBooleanTarget) {
|
|
1484
1511
|
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1485
1512
|
}
|
|
1486
1513
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1487
|
-
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1514
|
+
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1488
1515
|
this[propName] = newValue;
|
|
1489
1516
|
}
|
|
1490
1517
|
});
|
|
@@ -1525,7 +1552,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1525
1552
|
}
|
|
1526
1553
|
if (!Cstr.isProxied) {
|
|
1527
1554
|
{
|
|
1528
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1555
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1529
1556
|
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1530
1557
|
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1531
1558
|
}
|
|
@@ -1686,7 +1713,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1686
1713
|
let hasSlotRelocation = false;
|
|
1687
1714
|
lazyBundles.map((lazyBundle) => {
|
|
1688
1715
|
lazyBundle[1].map((compactMeta) => {
|
|
1689
|
-
var _a2, _b
|
|
1716
|
+
var _a2, _b;
|
|
1690
1717
|
const cmpMeta = {
|
|
1691
1718
|
$flags$: compactMeta[0],
|
|
1692
1719
|
$tagName$: compactMeta[1],
|
|
@@ -1700,9 +1727,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1700
1727
|
cmpMeta.$members$ = compactMeta[2];
|
|
1701
1728
|
}
|
|
1702
1729
|
{
|
|
1703
|
-
cmpMeta.$watchers$ = (
|
|
1704
|
-
cmpMeta.$serializers$ = (
|
|
1705
|
-
cmpMeta.$deserializers$ = (
|
|
1730
|
+
cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
|
|
1731
|
+
cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
|
|
1732
|
+
cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
|
|
1706
1733
|
}
|
|
1707
1734
|
const tagName = transformTag(cmpMeta.$tagName$);
|
|
1708
1735
|
const HostElement = class extends HTMLElement {
|
package/dist/cjs/loader.cjs.js
CHANGED