@deskhero/dh_ui 1.36.3 → 1.36.4
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive, ref, defineComponent, useSlots, toRef, provide, computed, onMounted, onUnmounted, watch, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps, isRef, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createBlock, Teleport, createCommentVNode, inject, withKeys, withModifiers, Transition, createElementVNode, Fragment, normalizeStyle, createTextVNode, toDisplayString, resolveDynamicComponent, nextTick, withDirectives, vShow, onBeforeUpdate, getCurrentScope, onScopeDispose, vModelCheckbox, shallowRef, onBeforeUnmount, toRaw, h, isProxy, resolveComponent, toRefs, getCurrentInstance, vModelDynamic, vModelText, pushScopeId, popScopeId } from "vue";
|
|
1
|
+
import { reactive, ref, defineComponent, useSlots, toRef, provide, computed, onMounted, onUnmounted, watch, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps, isRef, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createBlock, Teleport, createCommentVNode, inject, withKeys, withModifiers, Transition, createElementVNode, Fragment, normalizeStyle, createTextVNode, toDisplayString, resolveDynamicComponent, nextTick, withDirectives, vShow, onBeforeUpdate, getCurrentScope, onScopeDispose, vModelCheckbox, shallowRef, onBeforeUnmount, toRaw, h, isProxy, resolveComponent, toRefs, getCurrentInstance, useCssVars, vModelDynamic, vModelText, pushScopeId, popScopeId } from "vue";
|
|
2
2
|
var main$1 = "";
|
|
3
3
|
function toInteger(dirtyNumber) {
|
|
4
4
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
@@ -23070,7 +23070,7 @@ const _hoisted_1$k = { class: "bar" };
|
|
|
23070
23070
|
const _hoisted_2$j = ["min", "max", "step", "value"];
|
|
23071
23071
|
const _hoisted_3$d = { class: "caption" };
|
|
23072
23072
|
const _hoisted_4$a = { class: "min-caption" };
|
|
23073
|
-
const _hoisted_5$
|
|
23073
|
+
const _hoisted_5$8 = { class: "bar-inner" };
|
|
23074
23074
|
const _hoisted_6$7 = ["min", "max", "step", "value"];
|
|
23075
23075
|
const _hoisted_7$6 = { class: "caption" };
|
|
23076
23076
|
const _hoisted_8$3 = { class: "max-caption" };
|
|
@@ -23115,7 +23115,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23115
23115
|
createElementVNode("span", _hoisted_4$a, toDisplayString($props.minCaption || $options.barMinVal), 1)
|
|
23116
23116
|
])
|
|
23117
23117
|
], 32),
|
|
23118
|
-
createElementVNode("div", _hoisted_5$
|
|
23118
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
23119
23119
|
createElementVNode("div", {
|
|
23120
23120
|
class: "bar-inner-left",
|
|
23121
23121
|
onClick: _cache[4] || (_cache[4] = (...args) => $options.onInnerBarLeftClick && $options.onInnerBarLeftClick(...args))
|
|
@@ -23237,7 +23237,7 @@ const _hoisted_1$j = { class: "dh-advanced-filter-container" };
|
|
|
23237
23237
|
const _hoisted_2$i = { class: "advance_section" };
|
|
23238
23238
|
const _hoisted_3$c = { key: 0 };
|
|
23239
23239
|
const _hoisted_4$9 = { class: "list-none" };
|
|
23240
|
-
const _hoisted_5$
|
|
23240
|
+
const _hoisted_5$7 = ["checked"];
|
|
23241
23241
|
const _hoisted_6$6 = ["checked"];
|
|
23242
23242
|
const _hoisted_7$5 = ["checked"];
|
|
23243
23243
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -23264,7 +23264,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23264
23264
|
name: "number_filter",
|
|
23265
23265
|
type: "checkbox",
|
|
23266
23266
|
onChange: _cache[1] || (_cache[1] = ($event) => _ctx.missingFilter())
|
|
23267
|
-
}, null, 40, _hoisted_5$
|
|
23267
|
+
}, null, 40, _hoisted_5$7),
|
|
23268
23268
|
createTextVNode(" " + toDisplayString(_ctx.filterMissingText), 1)
|
|
23269
23269
|
])
|
|
23270
23270
|
]),
|
|
@@ -23557,7 +23557,7 @@ const _hoisted_3$b = {
|
|
|
23557
23557
|
class: "input-group-section"
|
|
23558
23558
|
};
|
|
23559
23559
|
const _hoisted_4$8 = { class: "input-group sb-input" };
|
|
23560
|
-
const _hoisted_5$
|
|
23560
|
+
const _hoisted_5$6 = ["disabled", "max", "value"];
|
|
23561
23561
|
const _hoisted_6$5 = { class: "input-group sb-input" };
|
|
23562
23562
|
const _hoisted_7$4 = ["disabled", "max", "min", "value"];
|
|
23563
23563
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -23604,7 +23604,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23604
23604
|
type: "number",
|
|
23605
23605
|
value: `${_ctx.min}`,
|
|
23606
23606
|
onInput: _cache[0] || (_cache[0] = ($event) => _ctx.changeMin($event))
|
|
23607
|
-
}, null, 40, _hoisted_5$
|
|
23607
|
+
}, null, 40, _hoisted_5$6)
|
|
23608
23608
|
]),
|
|
23609
23609
|
createElementVNode("div", _hoisted_6$5, [
|
|
23610
23610
|
createElementVNode("label", {
|
|
@@ -23645,7 +23645,7 @@ const _hoisted_2$g = /* @__PURE__ */ createElementVNode("div", { class: "dp__cal
|
|
|
23645
23645
|
], -1);
|
|
23646
23646
|
const _hoisted_3$a = { class: "dp__multi" };
|
|
23647
23647
|
const _hoisted_4$7 = ["value"];
|
|
23648
|
-
const _hoisted_5$
|
|
23648
|
+
const _hoisted_5$5 = ["value"];
|
|
23649
23649
|
const _hoisted_6$4 = /* @__PURE__ */ createTextVNode(" Back ");
|
|
23650
23650
|
const _hoisted_7$3 = ["onClick"];
|
|
23651
23651
|
const _hoisted_8$2 = ["onClick"];
|
|
@@ -23792,7 +23792,7 @@ const _sfc_main$h = {
|
|
|
23792
23792
|
type: "text",
|
|
23793
23793
|
value: maxDate.value ? maxDate.value : date.value[1],
|
|
23794
23794
|
onInput: _cache[1] || (_cache[1] = ($event) => changeSecondDate($event))
|
|
23795
|
-
}, null, 40, _hoisted_5$
|
|
23795
|
+
}, null, 40, _hoisted_5$5)
|
|
23796
23796
|
])
|
|
23797
23797
|
]),
|
|
23798
23798
|
"arrow-left": withCtx(() => [
|
|
@@ -24224,7 +24224,7 @@ const _hoisted_2$b = {
|
|
|
24224
24224
|
};
|
|
24225
24225
|
const _hoisted_3$9 = { class: "file__upload_list_item" };
|
|
24226
24226
|
const _hoisted_4$6 = { class: "file__upload_list_item_label" };
|
|
24227
|
-
const _hoisted_5$
|
|
24227
|
+
const _hoisted_5$4 = ["title"];
|
|
24228
24228
|
const _hoisted_6$3 = {
|
|
24229
24229
|
key: 0,
|
|
24230
24230
|
class: "label__antivirus"
|
|
@@ -24463,7 +24463,7 @@ const _sfc_main$b = {
|
|
|
24463
24463
|
createElementVNode("div", null, [
|
|
24464
24464
|
createElementVNode("span", {
|
|
24465
24465
|
title: file.name
|
|
24466
|
-
}, toDisplayString(getName(file.name)) + toDisplayString(getExtension(file.name)), 9, _hoisted_5$
|
|
24466
|
+
}, toDisplayString(getName(file.name)) + toDisplayString(getExtension(file.name)), 9, _hoisted_5$4),
|
|
24467
24467
|
props.uploadProgress[id] == 100 && __props.fileSaved && !__props.errorOccurred[id] && __props.virusCheck[id] == "loading" ? (openBlock(), createElementBlock("span", _hoisted_6$3, [
|
|
24468
24468
|
createTextVNode(toDisplayString(__props.virusCheckText) + " ", 1),
|
|
24469
24469
|
createVNode(DhIcon, {
|
|
@@ -24546,6 +24546,7 @@ const _hoisted_1$a = { class: "input__dropdown" };
|
|
|
24546
24546
|
const _hoisted_2$a = { class: "input__dropdown_second" };
|
|
24547
24547
|
const _hoisted_3$8 = ["tabindex"];
|
|
24548
24548
|
const _hoisted_4$5 = ["onClick"];
|
|
24549
|
+
const _hoisted_5$3 = ["onClick"];
|
|
24549
24550
|
const _sfc_main$a = {
|
|
24550
24551
|
__name: "InputDropdown",
|
|
24551
24552
|
props: {
|
|
@@ -24553,14 +24554,17 @@ const _sfc_main$a = {
|
|
|
24553
24554
|
type: Array,
|
|
24554
24555
|
required: true
|
|
24555
24556
|
},
|
|
24557
|
+
labelProp: {
|
|
24558
|
+
type: String,
|
|
24559
|
+
default: "label"
|
|
24560
|
+
},
|
|
24556
24561
|
icon: {
|
|
24557
24562
|
type: String,
|
|
24558
24563
|
required: true
|
|
24559
24564
|
},
|
|
24560
|
-
|
|
24565
|
+
placeholder: {
|
|
24561
24566
|
type: String,
|
|
24562
|
-
|
|
24563
|
-
default: null
|
|
24567
|
+
default: "select from menu"
|
|
24564
24568
|
},
|
|
24565
24569
|
tabindex: {
|
|
24566
24570
|
type: Number,
|
|
@@ -24571,7 +24575,7 @@ const _sfc_main$a = {
|
|
|
24571
24575
|
emits: ["update"],
|
|
24572
24576
|
setup(__props, { emit }) {
|
|
24573
24577
|
const props = __props;
|
|
24574
|
-
const selected = ref(props.
|
|
24578
|
+
const selected = ref(props.placeholder);
|
|
24575
24579
|
const open = ref(false);
|
|
24576
24580
|
const name = ref(null);
|
|
24577
24581
|
onMounted(() => {
|
|
@@ -24603,20 +24607,36 @@ const _sfc_main$a = {
|
|
|
24603
24607
|
class: normalizeClass(["custom__select_selected", { "custom__select--open": open.value }]),
|
|
24604
24608
|
onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
|
|
24605
24609
|
}, toDisplayString(selected.value), 3),
|
|
24606
|
-
|
|
24610
|
+
typeof __props.list[0] === "object" ? (openBlock(), createElementBlock("div", {
|
|
24611
|
+
key: 0,
|
|
24612
|
+
class: normalizeClass(["custom__select_items", { "custom__select--hide": !open.value }])
|
|
24613
|
+
}, [
|
|
24614
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (option, index) => {
|
|
24615
|
+
return openBlock(), createElementBlock("div", {
|
|
24616
|
+
key: index,
|
|
24617
|
+
onClick: ($event) => {
|
|
24618
|
+
selected.value = option[__props.labelProp];
|
|
24619
|
+
open.value = false;
|
|
24620
|
+
update();
|
|
24621
|
+
}
|
|
24622
|
+
}, toDisplayString(option[__props.labelProp]), 9, _hoisted_4$5);
|
|
24623
|
+
}), 128))
|
|
24624
|
+
], 2)) : createCommentVNode("", true),
|
|
24625
|
+
typeof __props.list[0] === "string" ? (openBlock(), createElementBlock("div", {
|
|
24626
|
+
key: 1,
|
|
24607
24627
|
class: normalizeClass(["custom__select_items", { "custom__select--hide": !open.value }])
|
|
24608
24628
|
}, [
|
|
24609
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (option,
|
|
24629
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (option, index) => {
|
|
24610
24630
|
return openBlock(), createElementBlock("div", {
|
|
24611
|
-
key:
|
|
24631
|
+
key: index,
|
|
24612
24632
|
onClick: ($event) => {
|
|
24613
24633
|
selected.value = option;
|
|
24614
24634
|
open.value = false;
|
|
24615
24635
|
update();
|
|
24616
24636
|
}
|
|
24617
|
-
}, toDisplayString(option), 9,
|
|
24637
|
+
}, toDisplayString(option), 9, _hoisted_5$3);
|
|
24618
24638
|
}), 128))
|
|
24619
|
-
], 2)
|
|
24639
|
+
], 2)) : createCommentVNode("", true)
|
|
24620
24640
|
], 40, _hoisted_3$8)
|
|
24621
24641
|
])
|
|
24622
24642
|
]);
|
|
@@ -26819,7 +26839,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26819
26839
|
}
|
|
26820
26840
|
script.render = render;
|
|
26821
26841
|
script.__file = "src/Multiselect.vue";
|
|
26822
|
-
var
|
|
26842
|
+
var default_css_vue_type_style_index_0_src_11864558_lang = "";
|
|
26823
26843
|
var InputList_vue_vue_type_style_index_1_lang = "";
|
|
26824
26844
|
const _hoisted_1$8 = /* @__PURE__ */ createElementVNode("img", {
|
|
26825
26845
|
alt: "",
|
|
@@ -26834,19 +26854,38 @@ const _sfc_main$9 = {
|
|
|
26834
26854
|
list: {
|
|
26835
26855
|
type: Array,
|
|
26836
26856
|
required: true
|
|
26857
|
+
},
|
|
26858
|
+
maxHeight: {
|
|
26859
|
+
type: String,
|
|
26860
|
+
default: "200px"
|
|
26861
|
+
},
|
|
26862
|
+
labelProp: {
|
|
26863
|
+
type: String,
|
|
26864
|
+
default: "label"
|
|
26865
|
+
},
|
|
26866
|
+
idProp: {
|
|
26867
|
+
type: String,
|
|
26868
|
+
default: "id"
|
|
26837
26869
|
}
|
|
26838
26870
|
},
|
|
26839
26871
|
setup(__props) {
|
|
26872
|
+
useCssVars((_ctx) => ({
|
|
26873
|
+
"6113b1b3": __props.maxHeight
|
|
26874
|
+
}));
|
|
26840
26875
|
const value = ref(null);
|
|
26841
26876
|
return (_ctx, _cache) => {
|
|
26842
26877
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
26843
26878
|
createVNode(unref(script), {
|
|
26844
26879
|
modelValue: value.value,
|
|
26845
26880
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
26881
|
+
label: __props.labelProp,
|
|
26846
26882
|
mode: "tags",
|
|
26883
|
+
native: false,
|
|
26884
|
+
object: true,
|
|
26847
26885
|
options: __props.list,
|
|
26848
26886
|
placeholder: "Start typing a name",
|
|
26849
|
-
searchable: true
|
|
26887
|
+
searchable: true,
|
|
26888
|
+
"value-prop": __props.idProp
|
|
26850
26889
|
}, {
|
|
26851
26890
|
tag: withCtx(({ option, handleTagRemove, disabled }) => [
|
|
26852
26891
|
(openBlock(), createBlock(Teleport, { to: "#list" }, [
|
|
@@ -26854,7 +26893,7 @@ const _sfc_main$9 = {
|
|
|
26854
26893
|
class: normalizeClass(["list__item", { "is-disabled": disabled }])
|
|
26855
26894
|
}, [
|
|
26856
26895
|
_hoisted_1$8,
|
|
26857
|
-
createElementVNode("p", _hoisted_2$8, toDisplayString(option.
|
|
26896
|
+
createElementVNode("p", _hoisted_2$8, toDisplayString(option[__props.labelProp]), 1),
|
|
26858
26897
|
createVNode(DhIcon, {
|
|
26859
26898
|
class: "list__item_icon",
|
|
26860
26899
|
"icon-name": "delete",
|
|
@@ -26866,7 +26905,7 @@ const _sfc_main$9 = {
|
|
|
26866
26905
|
]))
|
|
26867
26906
|
]),
|
|
26868
26907
|
_: 3
|
|
26869
|
-
}, 8, ["modelValue", "options"]),
|
|
26908
|
+
}, 8, ["modelValue", "label", "options", "value-prop"]),
|
|
26870
26909
|
_hoisted_3$6
|
|
26871
26910
|
], 64);
|
|
26872
26911
|
};
|