@deskhero/dh_ui 2.0.4 → 2.1.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/dist/dh_ui.es.js +173 -166
- package/dist/dh_ui.umd.js +21 -21
- package/dist/src/components/InputGroup.vue.d.ts +11 -1
- package/dist/src/components/InputList.vue.d.ts +6 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dh_ui.es.js
CHANGED
|
@@ -10875,7 +10875,7 @@ const _sfc_main$r = defineComponent({
|
|
|
10875
10875
|
});
|
|
10876
10876
|
const _hoisted_1$r = { class: "dp__options" };
|
|
10877
10877
|
const _hoisted_2$p = { class: "dp__options_switch" };
|
|
10878
|
-
const _hoisted_3$
|
|
10878
|
+
const _hoisted_3$g = /* @__PURE__ */ createElementVNode("span", { class: "dp__options_slider" }, null, -1);
|
|
10879
10879
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10880
10880
|
return openBlock(), createElementBlock("label", _hoisted_1$r, [
|
|
10881
10881
|
createElementVNode("span", null, toDisplayString(_ctx.label), 1),
|
|
@@ -10887,7 +10887,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10887
10887
|
}, null, 512), [
|
|
10888
10888
|
[vModelCheckbox, _ctx.checkedValue]
|
|
10889
10889
|
]),
|
|
10890
|
-
_hoisted_3$
|
|
10890
|
+
_hoisted_3$g
|
|
10891
10891
|
])
|
|
10892
10892
|
]);
|
|
10893
10893
|
}
|
|
@@ -23093,9 +23093,9 @@ const _sfc_main$q = {
|
|
|
23093
23093
|
};
|
|
23094
23094
|
const _hoisted_1$q = { class: "bar" };
|
|
23095
23095
|
const _hoisted_2$o = ["min", "max", "step", "value"];
|
|
23096
|
-
const _hoisted_3$
|
|
23097
|
-
const _hoisted_4$
|
|
23098
|
-
const _hoisted_5$
|
|
23096
|
+
const _hoisted_3$f = { class: "caption" };
|
|
23097
|
+
const _hoisted_4$d = { class: "min-caption" };
|
|
23098
|
+
const _hoisted_5$9 = { class: "bar-inner" };
|
|
23099
23099
|
const _hoisted_6$8 = ["min", "max", "step", "value"];
|
|
23100
23100
|
const _hoisted_7$8 = { class: "caption" };
|
|
23101
23101
|
const _hoisted_8$3 = { class: "max-caption" };
|
|
@@ -23136,11 +23136,11 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23136
23136
|
onMousedown: _cache[2] || (_cache[2] = (...args) => $options.onLeftThumbMousedown && $options.onLeftThumbMousedown(...args)),
|
|
23137
23137
|
onTouchstart: _cache[3] || (_cache[3] = (...args) => $options.onLeftThumbMousedown && $options.onLeftThumbMousedown(...args))
|
|
23138
23138
|
}, [
|
|
23139
|
-
createElementVNode("div", _hoisted_3$
|
|
23140
|
-
createElementVNode("span", _hoisted_4$
|
|
23139
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
23140
|
+
createElementVNode("span", _hoisted_4$d, toDisplayString($props.minCaption || $options.barMinVal), 1)
|
|
23141
23141
|
])
|
|
23142
23142
|
], 32),
|
|
23143
|
-
createElementVNode("div", _hoisted_5$
|
|
23143
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
23144
23144
|
createElementVNode("div", {
|
|
23145
23145
|
class: "bar-inner-left",
|
|
23146
23146
|
onClick: _cache[4] || (_cache[4] = (...args) => $options.onInnerBarLeftClick && $options.onInnerBarLeftClick(...args))
|
|
@@ -23412,12 +23412,12 @@ const _sfc_main$p = defineComponent({
|
|
|
23412
23412
|
});
|
|
23413
23413
|
const _hoisted_1$p = { class: "dh-range-container" };
|
|
23414
23414
|
const _hoisted_2$n = { class: "bar-chart" };
|
|
23415
|
-
const _hoisted_3$
|
|
23415
|
+
const _hoisted_3$e = {
|
|
23416
23416
|
key: 0,
|
|
23417
23417
|
class: "input-group-section"
|
|
23418
23418
|
};
|
|
23419
|
-
const _hoisted_4$
|
|
23420
|
-
const _hoisted_5$
|
|
23419
|
+
const _hoisted_4$c = { class: "input-group sb-input" };
|
|
23420
|
+
const _hoisted_5$8 = ["disabled", "max", "value"];
|
|
23421
23421
|
const _hoisted_6$7 = { class: "input-group sb-input" };
|
|
23422
23422
|
const _hoisted_7$7 = ["disabled", "max", "min", "value"];
|
|
23423
23423
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -23448,8 +23448,8 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23448
23448
|
onInput: _ctx.updateBarChart
|
|
23449
23449
|
}, null, 8, ["base-class-name", "max", "max-caption", "max-value", "min-caption", "min-value", "onInput"])
|
|
23450
23450
|
]),
|
|
23451
|
-
_ctx.includeForm ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
23452
|
-
createElementVNode("div", _hoisted_4$
|
|
23451
|
+
_ctx.includeForm ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
23452
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
23453
23453
|
createElementVNode("label", {
|
|
23454
23454
|
class: normalizeClass(`dh-body-2 input-to ${_ctx.validated ? "disable" : ""}`)
|
|
23455
23455
|
}, " From ", 2),
|
|
@@ -23462,7 +23462,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23462
23462
|
type: "number",
|
|
23463
23463
|
value: _ctx.getMinKey,
|
|
23464
23464
|
onInput: _cache[0] || (_cache[0] = ($event) => _ctx.changeMin($event))
|
|
23465
|
-
}, null, 40, _hoisted_5$
|
|
23465
|
+
}, null, 40, _hoisted_5$8)
|
|
23466
23466
|
]),
|
|
23467
23467
|
createElementVNode("div", _hoisted_6$7, [
|
|
23468
23468
|
createElementVNode("label", {
|
|
@@ -23496,9 +23496,9 @@ const _hoisted_2$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
|
|
|
23496
23496
|
/* @__PURE__ */ createElementVNode("p", null, "From"),
|
|
23497
23497
|
/* @__PURE__ */ createElementVNode("p", null, "To")
|
|
23498
23498
|
], -1));
|
|
23499
|
-
const _hoisted_3$
|
|
23500
|
-
const _hoisted_4$
|
|
23501
|
-
const _hoisted_5$
|
|
23499
|
+
const _hoisted_3$d = { class: "dp__multi" };
|
|
23500
|
+
const _hoisted_4$b = ["value"];
|
|
23501
|
+
const _hoisted_5$7 = ["value"];
|
|
23502
23502
|
const _hoisted_6$6 = /* @__PURE__ */ createTextVNode(" Back ");
|
|
23503
23503
|
const _hoisted_7$6 = ["onClick"];
|
|
23504
23504
|
const _hoisted_8$2 = ["onClick"];
|
|
@@ -23632,21 +23632,21 @@ const _sfc_main$o = {
|
|
|
23632
23632
|
onClosed: reOpen
|
|
23633
23633
|
}, {
|
|
23634
23634
|
"dp-input": withCtx(() => [
|
|
23635
|
-
createElementVNode("div", _hoisted_3$
|
|
23635
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
23636
23636
|
createElementVNode("input", {
|
|
23637
23637
|
class: "dp__input dp__multi_input",
|
|
23638
23638
|
placeholder: "MM/DD/YYYY",
|
|
23639
23639
|
type: "text",
|
|
23640
23640
|
value: minDate.value ? minDate.value : date.value[0],
|
|
23641
23641
|
onInput: _cache[0] || (_cache[0] = ($event) => changeFirstDate($event))
|
|
23642
|
-
}, null, 40, _hoisted_4$
|
|
23642
|
+
}, null, 40, _hoisted_4$b),
|
|
23643
23643
|
createElementVNode("input", {
|
|
23644
23644
|
class: "dp__input dp__multi_input",
|
|
23645
23645
|
placeholder: "MM/DD/YYYY",
|
|
23646
23646
|
type: "text",
|
|
23647
23647
|
value: maxDate.value ? maxDate.value : date.value[1],
|
|
23648
23648
|
onInput: _cache[1] || (_cache[1] = ($event) => changeSecondDate($event))
|
|
23649
|
-
}, null, 40, _hoisted_5$
|
|
23649
|
+
}, null, 40, _hoisted_5$7)
|
|
23650
23650
|
])
|
|
23651
23651
|
]),
|
|
23652
23652
|
"arrow-left": withCtx(() => [
|
|
@@ -23806,9 +23806,9 @@ const _sfc_main$n = defineComponent({
|
|
|
23806
23806
|
});
|
|
23807
23807
|
const _hoisted_1$n = { class: "dh-advanced-filter-container" };
|
|
23808
23808
|
const _hoisted_2$l = { class: "advance_section" };
|
|
23809
|
-
const _hoisted_3$
|
|
23810
|
-
const _hoisted_4$
|
|
23811
|
-
const _hoisted_5$
|
|
23809
|
+
const _hoisted_3$c = { key: 0 };
|
|
23810
|
+
const _hoisted_4$a = { class: "list-none" };
|
|
23811
|
+
const _hoisted_5$6 = ["checked"];
|
|
23812
23812
|
const _hoisted_6$5 = ["checked"];
|
|
23813
23813
|
const _hoisted_7$5 = ["checked"];
|
|
23814
23814
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -23825,9 +23825,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23825
23825
|
size: 20
|
|
23826
23826
|
}, null, 8, ["icon-name"])
|
|
23827
23827
|
]),
|
|
23828
|
-
_ctx.activeFilter ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
23828
|
+
_ctx.activeFilter ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
23829
23829
|
renderSlot(_ctx.$slots, "default"),
|
|
23830
|
-
createElementVNode("ul", _hoisted_4$
|
|
23830
|
+
createElementVNode("ul", _hoisted_4$a, [
|
|
23831
23831
|
createElementVNode("li", null, [
|
|
23832
23832
|
createElementVNode("label", null, [
|
|
23833
23833
|
createElementVNode("input", {
|
|
@@ -23835,7 +23835,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23835
23835
|
name: "number_filter",
|
|
23836
23836
|
type: "checkbox",
|
|
23837
23837
|
onChange: _cache[1] || (_cache[1] = ($event) => _ctx.missingFilter())
|
|
23838
|
-
}, null, 40, _hoisted_5$
|
|
23838
|
+
}, null, 40, _hoisted_5$6),
|
|
23839
23839
|
createTextVNode(" " + toDisplayString(_ctx.filterMissingText), 1)
|
|
23840
23840
|
])
|
|
23841
23841
|
]),
|
|
@@ -23871,7 +23871,7 @@ const _hoisted_2$k = {
|
|
|
23871
23871
|
key: 1,
|
|
23872
23872
|
class: "prepend-icon"
|
|
23873
23873
|
};
|
|
23874
|
-
const _hoisted_3$
|
|
23874
|
+
const _hoisted_3$b = { class: "append-icon" };
|
|
23875
23875
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
23876
23876
|
__name: "Button",
|
|
23877
23877
|
props: {
|
|
@@ -23959,7 +23959,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
23959
23959
|
"icon-name": __props.icon,
|
|
23960
23960
|
size: 24
|
|
23961
23961
|
}, null, 8, ["icon-name"])) : createCommentVNode("", true),
|
|
23962
|
-
createElementVNode("div", _hoisted_3$
|
|
23962
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
23963
23963
|
renderSlot(_ctx.$slots, "append-icon", {}, void 0, true)
|
|
23964
23964
|
])
|
|
23965
23965
|
], 10, _hoisted_1$m);
|
|
@@ -23998,7 +23998,7 @@ const _sfc_main$l = defineComponent({
|
|
|
23998
23998
|
});
|
|
23999
23999
|
const _hoisted_1$l = ["placement", "target", "tooltipText", "trigger"];
|
|
24000
24000
|
const _hoisted_2$j = ["id"];
|
|
24001
|
-
const _hoisted_3$
|
|
24001
|
+
const _hoisted_3$a = { class: "text" };
|
|
24002
24002
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24003
24003
|
return openBlock(), createElementBlock("div", {
|
|
24004
24004
|
id: "main-contain",
|
|
@@ -24017,7 +24017,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24017
24017
|
ref: _ctx.target,
|
|
24018
24018
|
class: normalizeClass(`tooltiptext ${_ctx.show}`)
|
|
24019
24019
|
}, [
|
|
24020
|
-
createElementVNode("span", _hoisted_3$
|
|
24020
|
+
createElementVNode("span", _hoisted_3$a, toDisplayString(_ctx.tooltipText), 1)
|
|
24021
24021
|
], 10, _hoisted_2$j)
|
|
24022
24022
|
], 40, _hoisted_1$l);
|
|
24023
24023
|
}
|
|
@@ -24435,9 +24435,9 @@ const _hoisted_2$e = {
|
|
|
24435
24435
|
key: 0,
|
|
24436
24436
|
class: "file__upload_items"
|
|
24437
24437
|
};
|
|
24438
|
-
const _hoisted_3$
|
|
24439
|
-
const _hoisted_4$
|
|
24440
|
-
const _hoisted_5$
|
|
24438
|
+
const _hoisted_3$9 = { class: "file__upload_list_item" };
|
|
24439
|
+
const _hoisted_4$9 = { class: "file__upload_list_item_label" };
|
|
24440
|
+
const _hoisted_5$5 = ["title"];
|
|
24441
24441
|
const _hoisted_6$4 = /* @__PURE__ */ createElementVNode("br", null, null, -1);
|
|
24442
24442
|
const _hoisted_7$4 = ["href"];
|
|
24443
24443
|
const _hoisted_8$1 = {
|
|
@@ -24718,12 +24718,12 @@ const _sfc_main$e = {
|
|
|
24718
24718
|
"icon-name": `file-` + iconName(file.label),
|
|
24719
24719
|
size: 40
|
|
24720
24720
|
}, null, 8, ["icon-name"]),
|
|
24721
|
-
createElementVNode("div", _hoisted_3$
|
|
24722
|
-
createElementVNode("div", _hoisted_4$
|
|
24721
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
24722
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
24723
24723
|
createElementVNode("div", null, [
|
|
24724
24724
|
createElementVNode("span", {
|
|
24725
24725
|
title: file.label
|
|
24726
|
-
}, toDisplayString(getName(file.label)) + toDisplayString(getExtension(file.label)), 9, _hoisted_5$
|
|
24726
|
+
}, toDisplayString(getName(file.label)) + toDisplayString(getExtension(file.label)), 9, _hoisted_5$5),
|
|
24727
24727
|
_hoisted_6$4,
|
|
24728
24728
|
createElementVNode("span", null, toDisplayString(formatKilobytes(file.size_kb)), 1)
|
|
24729
24729
|
])
|
|
@@ -24874,9 +24874,9 @@ const _sfc_main$e = {
|
|
|
24874
24874
|
var InputDropdown_vue_vue_type_style_index_0_lang = "";
|
|
24875
24875
|
const _hoisted_1$d = { class: "input__dropdown" };
|
|
24876
24876
|
const _hoisted_2$d = ["placeholder", "value"];
|
|
24877
|
-
const _hoisted_3$
|
|
24878
|
-
const _hoisted_4$
|
|
24879
|
-
const _hoisted_5$
|
|
24877
|
+
const _hoisted_3$8 = { class: "input__dropdown_second" };
|
|
24878
|
+
const _hoisted_4$8 = ["tabindex"];
|
|
24879
|
+
const _hoisted_5$4 = ["onClick"];
|
|
24880
24880
|
const _hoisted_6$3 = ["onClick"];
|
|
24881
24881
|
const _hoisted_7$3 = {
|
|
24882
24882
|
key: 2,
|
|
@@ -24988,7 +24988,7 @@ const _sfc_main$d = {
|
|
|
24988
24988
|
value: __props.inputValue,
|
|
24989
24989
|
onInput: update
|
|
24990
24990
|
}, null, 44, _hoisted_2$d),
|
|
24991
|
-
createElementVNode("div", _hoisted_3$
|
|
24991
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
24992
24992
|
createVNode(DhIcon, {
|
|
24993
24993
|
"icon-name": __props.icon,
|
|
24994
24994
|
size: 18
|
|
@@ -25015,7 +25015,7 @@ const _sfc_main$d = {
|
|
|
25015
25015
|
open.value = false;
|
|
25016
25016
|
update();
|
|
25017
25017
|
}
|
|
25018
|
-
}, toDisplayString(option[__props.labelProp]), 9, _hoisted_5$
|
|
25018
|
+
}, toDisplayString(option[__props.labelProp]), 9, _hoisted_5$4);
|
|
25019
25019
|
}), 128))
|
|
25020
25020
|
], 2)) : createCommentVNode("", true),
|
|
25021
25021
|
typeof __props.options[0] === "string" ? (openBlock(), createElementBlock("div", {
|
|
@@ -25036,12 +25036,12 @@ const _sfc_main$d = {
|
|
|
25036
25036
|
], 2)) : createCommentVNode("", true),
|
|
25037
25037
|
props.isClearable ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
25038
25038
|
createVNode(DhButton, {
|
|
25039
|
+
color: "ghost",
|
|
25039
25040
|
icon: "close",
|
|
25040
|
-
onClick: clear2
|
|
25041
|
-
color: "ghost"
|
|
25041
|
+
onClick: clear2
|
|
25042
25042
|
})
|
|
25043
25043
|
])) : createCommentVNode("", true)
|
|
25044
|
-
], 40, _hoisted_4$
|
|
25044
|
+
], 40, _hoisted_4$8)
|
|
25045
25045
|
])
|
|
25046
25046
|
]);
|
|
25047
25047
|
};
|
|
@@ -25134,30 +25134,35 @@ const _sfc_main$c = {
|
|
|
25134
25134
|
return openBlock(), createBlock(_sfc_main$d, {
|
|
25135
25135
|
key: index,
|
|
25136
25136
|
icon: props.icon,
|
|
25137
|
-
"selected-option": item.selectedOption,
|
|
25138
25137
|
"input-value": item.input,
|
|
25139
25138
|
"input-width": props.inputWidth,
|
|
25139
|
+
"is-clearable": "",
|
|
25140
|
+
"label-prop": props.labelProp,
|
|
25140
25141
|
options: props.options,
|
|
25141
25142
|
"placeholder-input": props.placeholderInput,
|
|
25143
|
+
"selected-option": item.selectedOption,
|
|
25142
25144
|
tabindex: props.tabindex,
|
|
25143
|
-
onUpdate: (input, label, optionId) => updateDropdown(index, input, label),
|
|
25144
|
-
"label-prop": props.labelProp,
|
|
25145
25145
|
"value-prop": props.valueProp,
|
|
25146
|
-
|
|
25147
|
-
|
|
25148
|
-
}, null, 8, ["icon", "
|
|
25146
|
+
onClear: ($event) => removeItem(index),
|
|
25147
|
+
onUpdate: (input, label, optionId) => updateDropdown(index, input, label)
|
|
25148
|
+
}, null, 8, ["icon", "input-value", "input-width", "label-prop", "options", "placeholder-input", "selected-option", "tabindex", "value-prop", "onClear", "onUpdate"]);
|
|
25149
25149
|
}), 128))
|
|
25150
25150
|
], 64);
|
|
25151
25151
|
};
|
|
25152
25152
|
}
|
|
25153
25153
|
};
|
|
25154
25154
|
var InputGroup_vue_vue_type_style_index_0_lang = "";
|
|
25155
|
-
const _hoisted_1$b = ["placeholder", "value"];
|
|
25155
|
+
const _hoisted_1$b = ["data-e2e", "placeholder", "value"];
|
|
25156
25156
|
const _hoisted_2$b = {
|
|
25157
25157
|
key: 1,
|
|
25158
|
+
class: "input__group_content"
|
|
25159
|
+
};
|
|
25160
|
+
const _hoisted_3$7 = ["data-e2e", "placeholder", "value"];
|
|
25161
|
+
const _hoisted_4$7 = {
|
|
25162
|
+
key: 2,
|
|
25158
25163
|
class: "input__group"
|
|
25159
25164
|
};
|
|
25160
|
-
const
|
|
25165
|
+
const _hoisted_5$3 = ["data-e2e", "placeholder", "type", "value"];
|
|
25161
25166
|
const _sfc_main$b = {
|
|
25162
25167
|
__name: "InputGroup",
|
|
25163
25168
|
props: {
|
|
@@ -25171,7 +25176,13 @@ const _sfc_main$b = {
|
|
|
25171
25176
|
},
|
|
25172
25177
|
iconName: {
|
|
25173
25178
|
type: String,
|
|
25174
|
-
required:
|
|
25179
|
+
required: false,
|
|
25180
|
+
default: ""
|
|
25181
|
+
},
|
|
25182
|
+
sideContent: {
|
|
25183
|
+
type: String,
|
|
25184
|
+
required: false,
|
|
25185
|
+
default: ""
|
|
25175
25186
|
},
|
|
25176
25187
|
widthProp: {
|
|
25177
25188
|
type: String,
|
|
@@ -25188,15 +25199,19 @@ const _sfc_main$b = {
|
|
|
25188
25199
|
placeholder: {
|
|
25189
25200
|
type: String,
|
|
25190
25201
|
default: "type here"
|
|
25202
|
+
},
|
|
25203
|
+
e2e: {
|
|
25204
|
+
type: String,
|
|
25205
|
+
default: ""
|
|
25191
25206
|
}
|
|
25192
25207
|
},
|
|
25193
25208
|
emits: ["update:modelValue"],
|
|
25194
25209
|
setup(__props) {
|
|
25195
25210
|
const props = __props;
|
|
25196
25211
|
useCssVars((_ctx) => ({
|
|
25197
|
-
"
|
|
25198
|
-
"
|
|
25199
|
-
"
|
|
25212
|
+
"a3a3c142": flexDir.value,
|
|
25213
|
+
"4241fd14": __props.widthProp,
|
|
25214
|
+
"8381e882": __props.heightProp
|
|
25200
25215
|
}));
|
|
25201
25216
|
const flexDir = ref("row");
|
|
25202
25217
|
onMounted(() => {
|
|
@@ -25205,41 +25220,57 @@ const _sfc_main$b = {
|
|
|
25205
25220
|
}
|
|
25206
25221
|
});
|
|
25207
25222
|
return (_ctx, _cache) => {
|
|
25208
|
-
return
|
|
25209
|
-
|
|
25210
|
-
class: normalizeClass(["text__area", __props.direction == "left" ? "text__area--left" : "text__area--right"])
|
|
25211
|
-
}, [
|
|
25212
|
-
createElementVNode("textarea", {
|
|
25213
|
-
class: "text__area_field",
|
|
25214
|
-
cols: "30",
|
|
25215
|
-
placeholder: __props.placeholder,
|
|
25216
|
-
rows: "10",
|
|
25217
|
-
value: __props.modelValue,
|
|
25218
|
-
onInput: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.value))
|
|
25219
|
-
}, null, 40, _hoisted_1$b),
|
|
25220
|
-
__props.direction == "left" ? (openBlock(), createBlock(DhIcon, {
|
|
25223
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
25224
|
+
__props.inputType == "multi-line" ? (openBlock(), createElementBlock("div", {
|
|
25221
25225
|
key: 0,
|
|
25222
|
-
class: "
|
|
25223
|
-
|
|
25224
|
-
|
|
25225
|
-
|
|
25226
|
-
|
|
25227
|
-
|
|
25228
|
-
|
|
25229
|
-
|
|
25230
|
-
|
|
25231
|
-
|
|
25232
|
-
|
|
25233
|
-
|
|
25234
|
-
|
|
25235
|
-
|
|
25236
|
-
|
|
25237
|
-
|
|
25238
|
-
|
|
25239
|
-
|
|
25240
|
-
|
|
25241
|
-
|
|
25242
|
-
|
|
25226
|
+
class: normalizeClass(["text__area", __props.direction == "left" ? "text__area--left" : "text__area--right"])
|
|
25227
|
+
}, [
|
|
25228
|
+
createElementVNode("textarea", {
|
|
25229
|
+
class: "text__area_field",
|
|
25230
|
+
cols: "30",
|
|
25231
|
+
"data-e2e": __props.e2e,
|
|
25232
|
+
placeholder: __props.placeholder,
|
|
25233
|
+
rows: "10",
|
|
25234
|
+
value: __props.modelValue,
|
|
25235
|
+
onInput: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.value))
|
|
25236
|
+
}, null, 40, _hoisted_1$b),
|
|
25237
|
+
__props.direction == "left" ? (openBlock(), createBlock(DhIcon, {
|
|
25238
|
+
key: 0,
|
|
25239
|
+
class: "text__area_icon text__area_icon--left",
|
|
25240
|
+
"icon-name": __props.iconName
|
|
25241
|
+
}, null, 8, ["icon-name"])) : createCommentVNode("", true),
|
|
25242
|
+
__props.direction == "right" ? (openBlock(), createBlock(DhIcon, {
|
|
25243
|
+
key: 1,
|
|
25244
|
+
class: "text__area_icon text__area_icon--right",
|
|
25245
|
+
"icon-name": __props.iconName
|
|
25246
|
+
}, null, 8, ["icon-name"])) : createCommentVNode("", true)
|
|
25247
|
+
], 2)) : createCommentVNode("", true),
|
|
25248
|
+
__props.inputType == "text" && __props.sideContent ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
25249
|
+
createElementVNode("input", {
|
|
25250
|
+
class: normalizeClass(["form-input", __props.direction == "left" ? "form-input--left" : "form-input--right"]),
|
|
25251
|
+
"data-e2e": __props.e2e,
|
|
25252
|
+
placeholder: __props.placeholder,
|
|
25253
|
+
value: __props.modelValue,
|
|
25254
|
+
onInput: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", $event.target.value))
|
|
25255
|
+
}, null, 42, _hoisted_3$7),
|
|
25256
|
+
createElementVNode("span", {
|
|
25257
|
+
class: normalizeClass(["form-span", __props.direction == "left" ? "form-span--left" : "form-span--right"])
|
|
25258
|
+
}, toDisplayString(__props.sideContent), 3)
|
|
25259
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
25260
|
+
createElementVNode("input", {
|
|
25261
|
+
class: "input__group_field",
|
|
25262
|
+
"data-e2e": __props.e2e,
|
|
25263
|
+
placeholder: __props.placeholder,
|
|
25264
|
+
type: __props.inputType,
|
|
25265
|
+
value: __props.modelValue,
|
|
25266
|
+
onInput: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:modelValue", $event.target.value))
|
|
25267
|
+
}, null, 40, _hoisted_5$3),
|
|
25268
|
+
createVNode(DhIcon, {
|
|
25269
|
+
class: "input__group_icon",
|
|
25270
|
+
"icon-name": __props.iconName
|
|
25271
|
+
}, null, 8, ["icon-name"])
|
|
25272
|
+
]))
|
|
25273
|
+
], 64);
|
|
25243
25274
|
};
|
|
25244
25275
|
}
|
|
25245
25276
|
};
|
|
@@ -27090,7 +27121,7 @@ var script = {
|
|
|
27090
27121
|
};
|
|
27091
27122
|
const _hoisted_1$a = ["id", "dir"];
|
|
27092
27123
|
const _hoisted_2$a = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"];
|
|
27093
|
-
const _hoisted_3$
|
|
27124
|
+
const _hoisted_3$6 = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"];
|
|
27094
27125
|
const _hoisted_4$6 = ["onKeyup", "aria-label"];
|
|
27095
27126
|
const _hoisted_5$2 = ["onClick"];
|
|
27096
27127
|
const _hoisted_6$2 = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"];
|
|
@@ -27153,7 +27184,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27153
27184
|
}, {
|
|
27154
27185
|
...$props.attrs,
|
|
27155
27186
|
..._ctx.arias
|
|
27156
|
-
}), null, 16, _hoisted_3$
|
|
27187
|
+
}), null, 16, _hoisted_3$6)) : createCommentVNode("v-if", true),
|
|
27157
27188
|
createCommentVNode(" Tags (with search) "),
|
|
27158
27189
|
$props.mode == "tags" ? (openBlock(), createElementBlock("div", {
|
|
27159
27190
|
key: 1,
|
|
@@ -27439,7 +27470,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27439
27470
|
}
|
|
27440
27471
|
script.render = render$1;
|
|
27441
27472
|
script.__file = "src/Multiselect.vue";
|
|
27442
|
-
var
|
|
27473
|
+
var default_css_vue_type_style_index_0_src_59d857bc_lang = "";
|
|
27443
27474
|
var InputList_vue_vue_type_style_index_1_lang = "";
|
|
27444
27475
|
const _hoisted_1$9 = /* @__PURE__ */ createElementVNode("img", {
|
|
27445
27476
|
alt: "",
|
|
@@ -27447,7 +27478,6 @@ const _hoisted_1$9 = /* @__PURE__ */ createElementVNode("img", {
|
|
|
27447
27478
|
src: _imports_0
|
|
27448
27479
|
}, null, -1);
|
|
27449
27480
|
const _hoisted_2$9 = { class: "list__item_text" };
|
|
27450
|
-
const _hoisted_3$6 = ["id"];
|
|
27451
27481
|
const _sfc_main$a = {
|
|
27452
27482
|
__name: "InputList",
|
|
27453
27483
|
props: {
|
|
@@ -27463,13 +27493,9 @@ const _sfc_main$a = {
|
|
|
27463
27493
|
type: String,
|
|
27464
27494
|
default: "label"
|
|
27465
27495
|
},
|
|
27466
|
-
|
|
27496
|
+
valueProp: {
|
|
27467
27497
|
type: String,
|
|
27468
|
-
default: "
|
|
27469
|
-
},
|
|
27470
|
-
selectItems: {
|
|
27471
|
-
type: Array,
|
|
27472
|
-
required: true
|
|
27498
|
+
default: "id"
|
|
27473
27499
|
},
|
|
27474
27500
|
canClear: {
|
|
27475
27501
|
type: Boolean,
|
|
@@ -27480,16 +27506,26 @@ const _sfc_main$a = {
|
|
|
27480
27506
|
type: String,
|
|
27481
27507
|
required: false,
|
|
27482
27508
|
default: "Start typing..."
|
|
27509
|
+
},
|
|
27510
|
+
modelValue: {
|
|
27511
|
+
type: [Object, Array],
|
|
27512
|
+
required: false,
|
|
27513
|
+
default: null
|
|
27483
27514
|
}
|
|
27484
27515
|
},
|
|
27485
27516
|
emits: ["update", "select", "deselect", "clear"],
|
|
27486
27517
|
setup(__props, { emit }) {
|
|
27487
27518
|
const props = __props;
|
|
27488
27519
|
useCssVars((_ctx) => ({
|
|
27489
|
-
"
|
|
27520
|
+
"182bac7a": __props.maxHeight
|
|
27490
27521
|
}));
|
|
27491
|
-
const
|
|
27492
|
-
|
|
27522
|
+
const computedValue = computed({
|
|
27523
|
+
get() {
|
|
27524
|
+
return props.modelValue;
|
|
27525
|
+
},
|
|
27526
|
+
set() {
|
|
27527
|
+
}
|
|
27528
|
+
});
|
|
27493
27529
|
function select(v) {
|
|
27494
27530
|
emit("select", v);
|
|
27495
27531
|
}
|
|
@@ -27502,70 +27538,41 @@ const _sfc_main$a = {
|
|
|
27502
27538
|
function clear2() {
|
|
27503
27539
|
emit("clear");
|
|
27504
27540
|
}
|
|
27505
|
-
function generateUniqueId() {
|
|
27506
|
-
const timestamp = Date.now().toString(36);
|
|
27507
|
-
const randomNum = Math.random().toString(36).substring(2, 9);
|
|
27508
|
-
return timestamp + randomNum;
|
|
27509
|
-
}
|
|
27510
|
-
onMounted(() => {
|
|
27511
|
-
uniqueId.value = generateUniqueId();
|
|
27512
|
-
});
|
|
27513
|
-
watch(() => props.selectItems, (oldValue, newValue) => {
|
|
27514
|
-
if (!oldValue) {
|
|
27515
|
-
return;
|
|
27516
|
-
}
|
|
27517
|
-
const selected = props.list.filter((item) => oldValue.includes(item[props.idProp]));
|
|
27518
|
-
if (JSON.stringify(selected) !== JSON.stringify(inputVal.value)) {
|
|
27519
|
-
inputVal.value = [...inputVal.value, ...selected];
|
|
27520
|
-
inputVal.value = [...new Set(inputVal.value)];
|
|
27521
|
-
}
|
|
27522
|
-
if (newValue.length > oldValue.length) {
|
|
27523
|
-
const difference = newValue.filter((x2) => !oldValue.includes(x2));
|
|
27524
|
-
inputVal.value = inputVal.value.filter((item) => !difference.includes(item[props.idProp]));
|
|
27525
|
-
}
|
|
27526
|
-
});
|
|
27527
27541
|
return (_ctx, _cache) => {
|
|
27528
|
-
return openBlock(),
|
|
27529
|
-
|
|
27530
|
-
|
|
27531
|
-
|
|
27532
|
-
|
|
27533
|
-
|
|
27534
|
-
|
|
27535
|
-
|
|
27536
|
-
|
|
27537
|
-
|
|
27538
|
-
|
|
27539
|
-
|
|
27540
|
-
|
|
27541
|
-
|
|
27542
|
-
|
|
27543
|
-
|
|
27544
|
-
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27548
|
-
|
|
27549
|
-
|
|
27550
|
-
|
|
27551
|
-
|
|
27552
|
-
|
|
27553
|
-
|
|
27554
|
-
|
|
27555
|
-
|
|
27556
|
-
|
|
27557
|
-
|
|
27558
|
-
|
|
27559
|
-
|
|
27560
|
-
|
|
27561
|
-
|
|
27562
|
-
], 2)
|
|
27563
|
-
], 8, ["to"]))
|
|
27564
|
-
]),
|
|
27565
|
-
_: 3
|
|
27566
|
-
}, 8, ["modelValue", "label", "canClear", "options", "placeholder", "value-prop"]),
|
|
27567
|
-
createElementVNode("div", { id: uniqueId.value }, null, 8, _hoisted_3$6)
|
|
27568
|
-
], 64);
|
|
27542
|
+
return openBlock(), createBlock(unref(script), {
|
|
27543
|
+
modelValue: unref(computedValue),
|
|
27544
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(computedValue) ? computedValue.value = $event : null),
|
|
27545
|
+
"can-clear": props.canClear,
|
|
27546
|
+
label: __props.labelProp,
|
|
27547
|
+
mode: "tags",
|
|
27548
|
+
native: false,
|
|
27549
|
+
object: true,
|
|
27550
|
+
options: __props.list,
|
|
27551
|
+
placeholder: props.placeholder,
|
|
27552
|
+
searchable: true,
|
|
27553
|
+
"value-prop": __props.valueProp,
|
|
27554
|
+
onChange: _cache[1] || (_cache[1] = (v) => update(v)),
|
|
27555
|
+
onClear: _cache[2] || (_cache[2] = ($event) => clear2()),
|
|
27556
|
+
onDeselect: _cache[3] || (_cache[3] = (v) => deselect(v)),
|
|
27557
|
+
onSelect: _cache[4] || (_cache[4] = (v) => select(v))
|
|
27558
|
+
}, {
|
|
27559
|
+
tag: withCtx(({ option, handleTagRemove, disabled }) => [
|
|
27560
|
+
createElementVNode("div", {
|
|
27561
|
+
class: normalizeClass(["list__item", { "is-disabled": disabled }])
|
|
27562
|
+
}, [
|
|
27563
|
+
_hoisted_1$9,
|
|
27564
|
+
createElementVNode("p", _hoisted_2$9, toDisplayString(option[__props.labelProp]), 1),
|
|
27565
|
+
createVNode(DhIcon, {
|
|
27566
|
+
class: "list__item_icon",
|
|
27567
|
+
"icon-name": "delete",
|
|
27568
|
+
size: 24,
|
|
27569
|
+
onMousedown: withModifiers(($event) => handleTagRemove(option, $event), ["prevent"])
|
|
27570
|
+
}, null, 8, ["onMousedown"]),
|
|
27571
|
+
renderSlot(_ctx.$slots, "default")
|
|
27572
|
+
], 2)
|
|
27573
|
+
]),
|
|
27574
|
+
_: 3
|
|
27575
|
+
}, 8, ["modelValue", "can-clear", "label", "options", "placeholder", "value-prop"]);
|
|
27569
27576
|
};
|
|
27570
27577
|
}
|
|
27571
27578
|
};
|