@knime/kds-components 13.1.0 → 13.3.0
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 +19 -0
- package/dist/KdsIcon-DWTHABhA.js.map +1 -1
- package/dist/index.css +64 -64
- package/dist/index.js +40 -16
- package/dist/index.js.map +1 -1
- package/dist/src/components/forms/RadioButton/KdsRadioButtonGroup.vue.d.ts.map +1 -1
- package/dist/src/components/forms/RadioButton/types.d.ts +2 -1
- package/dist/src/components/forms/RadioButton/types.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/BaseInput.vue.d.ts +2 -1
- package/dist/src/components/forms/inputs/BaseInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/TextInput/KdsTextInput.vue.d.ts +4 -4
- package/dist/src/components/forms/inputs/TextInput/KdsTextInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/TextInput/types.d.ts +2 -1
- package/dist/src/components/forms/inputs/TextInput/types.d.ts.map +1 -1
- package/dist/src/components/forms/selects/Dropdown/BaseDropdown.vue.d.ts.map +1 -1
- package/dist/src/components/forms/selects/Dropdown/KdsDropdown.vue.d.ts +4 -4
- package/dist/src/components/forms/selects/Dropdown/KdsDropdown.vue.d.ts.map +1 -1
- package/dist/src/components/forms/selects/Dropdown/types.d.ts +3 -3
- package/dist/src/components/forms/selects/Dropdown/types.d.ts.map +1 -1
- package/dist/src/components/forms/selects/MultiSelectListBox/useMultiSelectListBoxReorder.d.ts.map +1 -1
- package/dist/src/components/forms/types.d.ts +6 -0
- package/dist/src/components/forms/types.d.ts.map +1 -1
- package/dist/src/layouts/explorer/utils/dragGhostHelpers.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Modal/KdsModal.vue.d.ts +5 -0
- package/dist/src/layouts/overlays/Modal/KdsModal.vue.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Modal/KdsModalLayout.vue.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Modal/types.d.ts +7 -1
- package/dist/src/layouts/overlays/Modal/types.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3761,7 +3761,7 @@ kdsModalHeight.AUTO, kdsModalWidth.MEDIUM, kdsModalClosedBy.CLOSEREQUEST, { ...k
|
|
|
3761
3761
|
//#endregion
|
|
3762
3762
|
//#region src/layouts/overlays/Modal/KdsModalLayout.vue?vue&type=script&setup=true&lang.ts
|
|
3763
3763
|
var _hoisted_1$86 = { class: "modal-header" };
|
|
3764
|
-
var _hoisted_2$54 =
|
|
3764
|
+
var _hoisted_2$54 = ["id"];
|
|
3765
3765
|
var _hoisted_3$39 = ["data-variant"];
|
|
3766
3766
|
var _hoisted_4$33 = {
|
|
3767
3767
|
key: 0,
|
|
@@ -3777,10 +3777,11 @@ var KdsModalLayout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
3777
3777
|
variant: { default: () => kdsModalVariant.PADDED },
|
|
3778
3778
|
leadingIcon: {},
|
|
3779
3779
|
overflow: { default: "auto" },
|
|
3780
|
-
onClose: { type: Function }
|
|
3780
|
+
onClose: { type: Function },
|
|
3781
|
+
headlineId: {}
|
|
3781
3782
|
},
|
|
3782
3783
|
setup(__props) {
|
|
3783
|
-
useCssVars((_ctx) => ({ "
|
|
3784
|
+
useCssVars((_ctx) => ({ "v615a361c": _ctx.overflow }));
|
|
3784
3785
|
const props = createPropsRestProxy(__props, [
|
|
3785
3786
|
"headline",
|
|
3786
3787
|
"variant",
|
|
@@ -3794,7 +3795,10 @@ var KdsModalLayout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
3794
3795
|
name: props.leadingIcon,
|
|
3795
3796
|
size: "medium"
|
|
3796
3797
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
3797
|
-
createElementVNode("div",
|
|
3798
|
+
createElementVNode("div", {
|
|
3799
|
+
id: props.headlineId,
|
|
3800
|
+
class: "modal-header-headline"
|
|
3801
|
+
}, toDisplayString(__props.headline), 9, _hoisted_2$54),
|
|
3798
3802
|
createVNode(KdsButton_default, {
|
|
3799
3803
|
"leading-icon": "x-close",
|
|
3800
3804
|
variant: "transparent",
|
|
@@ -3812,10 +3816,10 @@ var KdsModalLayout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
3812
3816
|
], 64);
|
|
3813
3817
|
};
|
|
3814
3818
|
}
|
|
3815
|
-
}), [["__scopeId", "data-v-
|
|
3819
|
+
}), [["__scopeId", "data-v-7011f6c4"]]);
|
|
3816
3820
|
//#endregion
|
|
3817
3821
|
//#region src/layouts/overlays/Modal/KdsModal.vue?vue&type=script&setup=true&lang.ts
|
|
3818
|
-
var _hoisted_1$85 = ["closedby"];
|
|
3822
|
+
var _hoisted_1$85 = ["closedby", "aria-labelledby"];
|
|
3819
3823
|
//#endregion
|
|
3820
3824
|
//#region src/layouts/overlays/Modal/KdsModal.vue
|
|
3821
3825
|
var KdsModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -3835,8 +3839,9 @@ var KdsModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3835
3839
|
},
|
|
3836
3840
|
emits: ["close", "closed"],
|
|
3837
3841
|
setup(__props, { emit: __emit }) {
|
|
3838
|
-
useCssVars((_ctx) => ({ "
|
|
3842
|
+
useCssVars((_ctx) => ({ "v9f67ccd8": _ctx.overflow }));
|
|
3839
3843
|
const emit = __emit;
|
|
3844
|
+
const headlineId = useId();
|
|
3840
3845
|
const dialog = useTemplateRef("dialogElement");
|
|
3841
3846
|
const onClose = (event) => {
|
|
3842
3847
|
emit("close", event);
|
|
@@ -3878,15 +3883,18 @@ var KdsModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3878
3883
|
`overflow-${__props.overflow}`
|
|
3879
3884
|
]),
|
|
3880
3885
|
closedby: __props.closedby,
|
|
3886
|
+
"aria-labelledby": __props.headline ? unref(headlineId) : void 0,
|
|
3881
3887
|
onCancel: withModifiers(onClose, ["prevent"])
|
|
3882
3888
|
}, [renderSlot(_ctx.$slots, "default", {
|
|
3883
3889
|
headline: __props.headline,
|
|
3890
|
+
headlineId: unref(headlineId),
|
|
3884
3891
|
leadingIcon: __props.leadingIcon,
|
|
3885
3892
|
variant: __props.variant,
|
|
3886
3893
|
overflow: __props.overflow,
|
|
3887
3894
|
onClose
|
|
3888
3895
|
}, () => [createVNode(KdsModalLayout_default, {
|
|
3889
3896
|
headline: __props.headline,
|
|
3897
|
+
"headline-id": unref(headlineId),
|
|
3890
3898
|
"leading-icon": __props.leadingIcon,
|
|
3891
3899
|
variant: __props.variant,
|
|
3892
3900
|
overflow: __props.overflow,
|
|
@@ -3897,13 +3905,14 @@ var KdsModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3897
3905
|
_: 3
|
|
3898
3906
|
}, 8, [
|
|
3899
3907
|
"headline",
|
|
3908
|
+
"headline-id",
|
|
3900
3909
|
"leading-icon",
|
|
3901
3910
|
"variant",
|
|
3902
3911
|
"overflow"
|
|
3903
3912
|
])], true)], 42, _hoisted_1$85)) : createCommentVNode("", true);
|
|
3904
3913
|
};
|
|
3905
3914
|
}
|
|
3906
|
-
}), [["__scopeId", "data-v-
|
|
3915
|
+
}), [["__scopeId", "data-v-e325810b"]]);
|
|
3907
3916
|
//#endregion
|
|
3908
3917
|
//#region src/components/accessories/LoadingSpinner/KdsLoadingSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
3909
3918
|
var _hoisted_1$84 = ["data-style"];
|
|
@@ -13436,6 +13445,7 @@ var _hoisted_3$31 = [
|
|
|
13436
13445
|
"placeholder",
|
|
13437
13446
|
"disabled",
|
|
13438
13447
|
"autocomplete",
|
|
13448
|
+
"autofocus",
|
|
13439
13449
|
"min",
|
|
13440
13450
|
"maxlength",
|
|
13441
13451
|
"max",
|
|
@@ -13515,7 +13525,8 @@ var BaseInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
13515
13525
|
default: false
|
|
13516
13526
|
},
|
|
13517
13527
|
pattern: {},
|
|
13518
|
-
segments: { default: () => void 0 }
|
|
13528
|
+
segments: { default: () => void 0 },
|
|
13529
|
+
autofocus: { type: Boolean }
|
|
13519
13530
|
}, {
|
|
13520
13531
|
"modelValue": { default: "" },
|
|
13521
13532
|
"modelModifiers": {}
|
|
@@ -13633,6 +13644,7 @@ focus: focusInput });
|
|
|
13633
13644
|
placeholder: props.placeholder,
|
|
13634
13645
|
disabled: __props.disabled,
|
|
13635
13646
|
autocomplete: props.autocomplete,
|
|
13647
|
+
autofocus: props.autofocus,
|
|
13636
13648
|
min: props.min,
|
|
13637
13649
|
maxlength: props.maxlength,
|
|
13638
13650
|
max: props.max,
|
|
@@ -13692,7 +13704,7 @@ focus: focusInput });
|
|
|
13692
13704
|
], 2);
|
|
13693
13705
|
};
|
|
13694
13706
|
}
|
|
13695
|
-
}), [["__scopeId", "data-v-
|
|
13707
|
+
}), [["__scopeId", "data-v-7db4b084"]]);
|
|
13696
13708
|
//#endregion
|
|
13697
13709
|
//#region src/components/forms/selects/Dropdown/filterOptions.ts
|
|
13698
13710
|
/**
|
|
@@ -15819,7 +15831,8 @@ var KdsRadioButtonGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
15819
15831
|
default: false
|
|
15820
15832
|
},
|
|
15821
15833
|
subText: {},
|
|
15822
|
-
preserveSubTextSpace: { type: Boolean }
|
|
15834
|
+
preserveSubTextSpace: { type: Boolean },
|
|
15835
|
+
autofocus: { type: Boolean }
|
|
15823
15836
|
}, {
|
|
15824
15837
|
"modelValue": {},
|
|
15825
15838
|
"modelModifiers": {}
|
|
@@ -15871,6 +15884,7 @@ var KdsRadioButtonGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
15871
15884
|
text: option.text,
|
|
15872
15885
|
"model-value": modelValue.value === option.id,
|
|
15873
15886
|
tabindex: unref(tabIndexForOption)(index),
|
|
15887
|
+
autofocus: props.autofocus && unref(tabIndexForOption)(index) === 0,
|
|
15874
15888
|
name: unref(groupName),
|
|
15875
15889
|
onKeydown: (e) => unref(handleKeyDown)(e, index),
|
|
15876
15890
|
"onUpdate:modelValue": () => unref(handleClick)(index)
|
|
@@ -15881,6 +15895,7 @@ var KdsRadioButtonGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
15881
15895
|
"text",
|
|
15882
15896
|
"model-value",
|
|
15883
15897
|
"tabindex",
|
|
15898
|
+
"autofocus",
|
|
15884
15899
|
"name",
|
|
15885
15900
|
"onKeydown",
|
|
15886
15901
|
"onUpdate:modelValue"
|
|
@@ -15896,7 +15911,7 @@ var KdsRadioButtonGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
15896
15911
|
]);
|
|
15897
15912
|
};
|
|
15898
15913
|
}
|
|
15899
|
-
}), [["__scopeId", "data-v-
|
|
15914
|
+
}), [["__scopeId", "data-v-074b4770"]]);
|
|
15900
15915
|
//#endregion
|
|
15901
15916
|
//#region src/components/forms/RadioButton/ValueSwitchItem.vue?vue&type=script&setup=true&lang.ts
|
|
15902
15917
|
var _hoisted_1$49 = [
|
|
@@ -16604,6 +16619,7 @@ var KdsTextInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
16604
16619
|
},
|
|
16605
16620
|
autocomplete: {},
|
|
16606
16621
|
maxlength: {},
|
|
16622
|
+
autofocus: { type: Boolean },
|
|
16607
16623
|
suggestions: {},
|
|
16608
16624
|
suggestionsHeadline: {}
|
|
16609
16625
|
}, {
|
|
@@ -16699,6 +16715,7 @@ var KdsTextInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
16699
16715
|
maxlength: props.maxlength,
|
|
16700
16716
|
error: __props.error,
|
|
16701
16717
|
autocomplete: hasSuggestions.value ? "off" : props.autocomplete,
|
|
16718
|
+
autofocus: props.autofocus,
|
|
16702
16719
|
role: hasSuggestions.value ? "combobox" : void 0,
|
|
16703
16720
|
"aria-haspopup": hasSuggestions.value ? "listbox" : void 0,
|
|
16704
16721
|
"aria-expanded": hasSuggestions.value ? popoverOpen.value : void 0,
|
|
@@ -16715,6 +16732,7 @@ var KdsTextInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
16715
16732
|
"maxlength",
|
|
16716
16733
|
"error",
|
|
16717
16734
|
"autocomplete",
|
|
16735
|
+
"autofocus",
|
|
16718
16736
|
"role",
|
|
16719
16737
|
"aria-haspopup",
|
|
16720
16738
|
"aria-expanded",
|
|
@@ -16756,7 +16774,7 @@ var KdsTextInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
16756
16774
|
]);
|
|
16757
16775
|
};
|
|
16758
16776
|
}
|
|
16759
|
-
}), [["__scopeId", "data-v-
|
|
16777
|
+
}), [["__scopeId", "data-v-20d4bafb"]]);
|
|
16760
16778
|
//#endregion
|
|
16761
16779
|
//#region src/components/forms/inputs/ColorInput/colorUtils.ts
|
|
16762
16780
|
var HEX_RADIX = 16;
|
|
@@ -24296,6 +24314,7 @@ var _hoisted_1$35 = [
|
|
|
24296
24314
|
"aria-label",
|
|
24297
24315
|
"aria-invalid",
|
|
24298
24316
|
"aria-controls",
|
|
24317
|
+
"autofocus",
|
|
24299
24318
|
"disabled"
|
|
24300
24319
|
];
|
|
24301
24320
|
var _hoisted_2$22 = {
|
|
@@ -24337,7 +24356,8 @@ var BaseDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
24337
24356
|
type: Boolean,
|
|
24338
24357
|
default: () => void 0
|
|
24339
24358
|
},
|
|
24340
|
-
popoverId: {}
|
|
24359
|
+
popoverId: {},
|
|
24360
|
+
autofocus: { type: Boolean }
|
|
24341
24361
|
}, {
|
|
24342
24362
|
"open": {
|
|
24343
24363
|
type: Boolean,
|
|
@@ -24395,6 +24415,7 @@ focus: () => triggerEl.value?.focus() });
|
|
|
24395
24415
|
"aria-label": effectiveAriaLabel.value,
|
|
24396
24416
|
"aria-invalid": __props.ariaInvalid,
|
|
24397
24417
|
"aria-controls": props.popoverId,
|
|
24418
|
+
autofocus: props.autofocus,
|
|
24398
24419
|
"aria-haspopup": "dialog",
|
|
24399
24420
|
disabled: __props.disabled,
|
|
24400
24421
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("click")),
|
|
@@ -24418,7 +24439,7 @@ focus: () => triggerEl.value?.focus() });
|
|
|
24418
24439
|
], 42, _hoisted_1$35);
|
|
24419
24440
|
};
|
|
24420
24441
|
}
|
|
24421
|
-
}), [["__scopeId", "data-v-
|
|
24442
|
+
}), [["__scopeId", "data-v-b0a01bc2"]]);
|
|
24422
24443
|
//#endregion
|
|
24423
24444
|
//#region src/components/forms/selects/Dropdown/KdsDropdown.vue
|
|
24424
24445
|
var KdsDropdown_default = /* @__PURE__ */ defineComponent({
|
|
@@ -24450,7 +24471,8 @@ var KdsDropdown_default = /* @__PURE__ */ defineComponent({
|
|
|
24450
24471
|
preserveSubTextSpace: {
|
|
24451
24472
|
type: Boolean,
|
|
24452
24473
|
default: false
|
|
24453
|
-
}
|
|
24474
|
+
},
|
|
24475
|
+
autofocus: { type: Boolean }
|
|
24454
24476
|
}, {
|
|
24455
24477
|
"modelValue": { default: "" },
|
|
24456
24478
|
"modelModifiers": {}
|
|
@@ -24515,6 +24537,7 @@ focus: () => baseDropdownEl.value?.focus() });
|
|
|
24515
24537
|
error: __props.error,
|
|
24516
24538
|
missing: !!modelValue.value && !selectedOption.value,
|
|
24517
24539
|
accessory: selectedOption.value?.accessory,
|
|
24540
|
+
autofocus: props.autofocus,
|
|
24518
24541
|
"popover-id": popoverEl.value?.popoverId,
|
|
24519
24542
|
onClick: _cache[1] || (_cache[1] = ($event) => open.value = !open.value)
|
|
24520
24543
|
}), null, 16, [
|
|
@@ -24525,6 +24548,7 @@ focus: () => baseDropdownEl.value?.focus() });
|
|
|
24525
24548
|
"error",
|
|
24526
24549
|
"missing",
|
|
24527
24550
|
"accessory",
|
|
24551
|
+
"autofocus",
|
|
24528
24552
|
"popover-id"
|
|
24529
24553
|
]), createVNode(KdsPopover_default, {
|
|
24530
24554
|
ref_key: "popoverEl",
|