dap-design-system 0.16.0 → 0.16.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/dist/dds.d.ts +4 -1
- package/dist/dds.js +6 -4
- package/dist/dds.js.map +1 -1
- package/dist/manifest/types/vue/index.d.ts +314 -309
- package/dist/manifest/vscode.html-custom-data.json +336 -336
- package/dist/manifest/web-types.json +430 -422
- package/dist/react-types.ts +10 -10
- package/dist/react.d.ts +9 -2
- package/dist/react.js +129 -128
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/dds.d.ts
CHANGED
|
@@ -1285,6 +1285,7 @@ export declare class DapDSCheckbox extends LabelPositionedFormElement {
|
|
|
1285
1285
|
* @event dds-focus - Emitted when the select gains focus.
|
|
1286
1286
|
* @event dds-clear - Emitted when the select is cleared.
|
|
1287
1287
|
* @event dds-search - Emitted when the manual input value changes.
|
|
1288
|
+
* @event dds-input - Emitted when typing happens in the input.
|
|
1288
1289
|
*
|
|
1289
1290
|
* @attribute {string} value - The value of the select.
|
|
1290
1291
|
* @attribute {string} placeholder - The placeholder of the select.
|
|
@@ -2269,6 +2270,8 @@ export declare class DapDSOverlay extends DdsElement {
|
|
|
2269
2270
|
* @csspart postfix - The postfix of the password input.
|
|
2270
2271
|
* @csspart password-input - The password input.
|
|
2271
2272
|
* @csspart password-input--visible - The visible password input.
|
|
2273
|
+
* @csspart icon - The icon of the password input.
|
|
2274
|
+
* @csspart icon-base - The base of the icon.
|
|
2272
2275
|
*/
|
|
2273
2276
|
export declare class DapDSPasswordInput extends InputBaseElement {
|
|
2274
2277
|
passwordVisibile: boolean;
|
|
@@ -2587,7 +2590,7 @@ export declare class DapDSSkipLink extends DdsElement {
|
|
|
2587
2590
|
* @title - Snackbar
|
|
2588
2591
|
*
|
|
2589
2592
|
* @attribute { number } maxItems - Maximum number of snackbar messages at a given time.
|
|
2590
|
-
* @attribute { string } position - The position of the snackbar (values can be bottom-left, bottom-right, bottom-center, top-right, top-center). The default value is bottom-
|
|
2593
|
+
* @attribute { string } position - The position of the snackbar (values can be bottom-left, bottom-right, bottom-center, top-right, top-center). The default value is bottom-right.
|
|
2591
2594
|
* @attribute { number } duration - The duration of the snackbar message in milliseconds. Default is 6000ms.
|
|
2592
2595
|
*/
|
|
2593
2596
|
export declare class DapDSSnackbar extends DdsElement {
|
package/dist/dds.js
CHANGED
|
@@ -5704,7 +5704,7 @@ class W extends re {
|
|
|
5704
5704
|
}
|
|
5705
5705
|
}, this.handleInput = async (t) => {
|
|
5706
5706
|
const i = this.triggerInput;
|
|
5707
|
-
t.inputType !== "deleteContentBackward" || t.inputType === "deleteContentBackward" && this.allowManualInput ? (this.selectedText = i.value, this.value = i.value) : i.value === "" && t.inputType === "deleteContentBackward" && this.clearSelection(), this.emit("dds-input", { input: i.value, originalEvent: t }), this.setValidity();
|
|
5707
|
+
t.inputType !== "deleteContentBackward" || t.inputType === "deleteContentBackward" && this.allowManualInput ? (this.selectedText = i.value, this.search && (this.value = i.value)) : this.search ? (this.selectedText = i.value, this.value = i.value) : i.value === "" && t.inputType === "deleteContentBackward" && this.clearSelection(), this.emit("dds-input", { input: i.value, originalEvent: t }), this.setValidity();
|
|
5708
5708
|
}, this.handleListKeyDown = (t) => {
|
|
5709
5709
|
t.detail.key === "Escape" && (this.hideDropDown(), this.currentItem = this.selectedItem, this.selectedText = "", this.triggerInput.value = this.selectedItem.text, this.triggerInput.focus());
|
|
5710
5710
|
}, this.handleDocumentMouseDown = (t) => {
|
|
@@ -8568,12 +8568,12 @@ let ft = class extends Ot($) {
|
|
|
8568
8568
|
this.setSelectedOption(t), this.selectionChanged(t), this.currentOption && (this.selectedIndex = this.findIndexByValue(e, this.value), this.emit("dds-option-change", {
|
|
8569
8569
|
...this.getEventDetails(this.currentOption)
|
|
8570
8570
|
}));
|
|
8571
|
-
} else if (this.value && e.length > 0 && !this.search) {
|
|
8571
|
+
} else if (this.value && e.length > 0 && !this.search && !this.isAutoComplete) {
|
|
8572
8572
|
const t = e.find((i) => !i.disabled);
|
|
8573
8573
|
this.selectedIndex = 0, this.setCurrentOption(t, !1), this.emit("dds-current-change", {
|
|
8574
8574
|
...this.getEventDetails(t)
|
|
8575
8575
|
});
|
|
8576
|
-
} else if (this.value && e.length > 0 && this.search) {
|
|
8576
|
+
} else if (this.value && e.length > 0 && (this.search || this.isAutoComplete)) {
|
|
8577
8577
|
const t = e.find((i) => !i.disabled);
|
|
8578
8578
|
(!this.currentOption || this.currentOption.value !== t?.value) && (this.selectedIndex = 0, this.setCurrentOption(t, !1));
|
|
8579
8579
|
}
|
|
@@ -8690,6 +8690,8 @@ let aa = class extends J {
|
|
|
8690
8690
|
<dap-ds-stack direction="row" slot="postfix">
|
|
8691
8691
|
${this.loading ? j`<dap-ds-spinner size="lg"></dap-ds-spinner>` : R}
|
|
8692
8692
|
<dap-ds-icon-button
|
|
8693
|
+
part="icon"
|
|
8694
|
+
exportparts="base:icon-base"
|
|
8693
8695
|
size=${m(this.size)}
|
|
8694
8696
|
role="switch"
|
|
8695
8697
|
arialabel="${this.passwordVisibile ? yt("hide") : yt("show")}"
|
|
@@ -10235,7 +10237,7 @@ var jg = Object.defineProperty, Ng = Object.getOwnPropertyDescriptor, Mi = (e, t
|
|
|
10235
10237
|
};
|
|
10236
10238
|
let se = class extends $ {
|
|
10237
10239
|
constructor() {
|
|
10238
|
-
super(...arguments), this.maxItems = 4, this.position = "bottom-
|
|
10240
|
+
super(...arguments), this.maxItems = 4, this.position = "bottom-right", this.duration = 6e3, this.messages = [], this.idCounter = 0, this._timeoutId = null;
|
|
10239
10241
|
}
|
|
10240
10242
|
generateId() {
|
|
10241
10243
|
return this.idCounter++, `dap-snackbar-${this.idCounter}`;
|