@deskhero/dh_ui 1.27.0 → 1.28.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/dh_ui.es.js +58 -52
- package/dist/dh_ui.umd.js +6 -6
- package/dist/src/components/Modal.vue.d.ts +36 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dh_ui.es.js
CHANGED
|
@@ -70,13 +70,13 @@ const _sfc_main$h = defineComponent({
|
|
|
70
70
|
});
|
|
71
71
|
const _hoisted_1$g = { class: "dh-advanced-filter-container" };
|
|
72
72
|
const _hoisted_2$c = { class: "advance_section" };
|
|
73
|
-
const _hoisted_3$
|
|
73
|
+
const _hoisted_3$8 = {
|
|
74
74
|
key: 0,
|
|
75
75
|
class: "list-none"
|
|
76
76
|
};
|
|
77
|
-
const _hoisted_4$
|
|
78
|
-
const _hoisted_5$
|
|
79
|
-
const _hoisted_6$
|
|
77
|
+
const _hoisted_4$6 = ["checked"];
|
|
78
|
+
const _hoisted_5$4 = ["checked"];
|
|
79
|
+
const _hoisted_6$4 = ["checked"];
|
|
80
80
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
81
81
|
const _component_dh_icon = resolveComponent("dh-icon");
|
|
82
82
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
@@ -91,14 +91,14 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
91
91
|
size: 20
|
|
92
92
|
}, null, 8, ["icon-name"])
|
|
93
93
|
]),
|
|
94
|
-
_ctx.activeFilter ? (openBlock(), createElementBlock("ul", _hoisted_3$
|
|
94
|
+
_ctx.activeFilter ? (openBlock(), createElementBlock("ul", _hoisted_3$8, [
|
|
95
95
|
createElementVNode("li", null, [
|
|
96
96
|
createElementVNode("label", null, [
|
|
97
97
|
createElementVNode("input", {
|
|
98
98
|
checked: _ctx.isFilterMissing,
|
|
99
99
|
type: "checkbox",
|
|
100
100
|
onChange: _cache[1] || (_cache[1] = ($event) => _ctx.missingFilter())
|
|
101
|
-
}, null, 40, _hoisted_4$
|
|
101
|
+
}, null, 40, _hoisted_4$6),
|
|
102
102
|
createTextVNode(" " + toDisplayString(_ctx.filterMissingText), 1)
|
|
103
103
|
])
|
|
104
104
|
]),
|
|
@@ -109,7 +109,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
109
109
|
name: "number_filter",
|
|
110
110
|
type: "radio",
|
|
111
111
|
onChange: _cache[2] || (_cache[2] = ($event) => _ctx.matchFilter())
|
|
112
|
-
}, null, 40, _hoisted_5$
|
|
112
|
+
}, null, 40, _hoisted_5$4),
|
|
113
113
|
createTextVNode(" " + toDisplayString(_ctx.matchText), 1)
|
|
114
114
|
]),
|
|
115
115
|
createElementVNode("label", null, [
|
|
@@ -118,7 +118,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
118
118
|
name: "number_filter",
|
|
119
119
|
type: "radio",
|
|
120
120
|
onChange: _cache[3] || (_cache[3] = ($event) => _ctx.excludeFilter())
|
|
121
|
-
}, null, 40, _hoisted_6$
|
|
121
|
+
}, null, 40, _hoisted_6$4),
|
|
122
122
|
createTextVNode(" " + toDisplayString(_ctx.excludeText), 1)
|
|
123
123
|
])
|
|
124
124
|
])
|
|
@@ -10949,15 +10949,15 @@ const _hoisted_2$b = /* @__PURE__ */ createElementVNode("label", { for: "upload_
|
|
|
10949
10949
|
/* @__PURE__ */ createTextVNode(" Drag and drop file or "),
|
|
10950
10950
|
/* @__PURE__ */ createElementVNode("span", { id: "upload" }, "browse")
|
|
10951
10951
|
], -1);
|
|
10952
|
-
const _hoisted_3$
|
|
10952
|
+
const _hoisted_3$7 = {
|
|
10953
10953
|
key: 0,
|
|
10954
10954
|
class: "file__upload_items"
|
|
10955
10955
|
};
|
|
10956
|
-
const _hoisted_4$
|
|
10957
|
-
const _hoisted_5$
|
|
10958
|
-
const _hoisted_6$
|
|
10959
|
-
const _hoisted_7$
|
|
10960
|
-
const _hoisted_8$
|
|
10956
|
+
const _hoisted_4$5 = { class: "file__upload_list_item" };
|
|
10957
|
+
const _hoisted_5$3 = { class: "file__upload_list_item_label" };
|
|
10958
|
+
const _hoisted_6$3 = ["title"];
|
|
10959
|
+
const _hoisted_7$2 = ["value"];
|
|
10960
|
+
const _hoisted_8$2 = {
|
|
10961
10961
|
key: 1,
|
|
10962
10962
|
class: "file__upload_placeholder"
|
|
10963
10963
|
};
|
|
@@ -11055,7 +11055,7 @@ const _sfc_main$d = {
|
|
|
11055
11055
|
onInput: _cache[0] || (_cache[0] = ($event) => uploadFile($event))
|
|
11056
11056
|
}, null, 544)
|
|
11057
11057
|
], 32),
|
|
11058
|
-
fileSelected.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
11058
|
+
fileSelected.value ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
11059
11059
|
(openBlock(true), createElementBlock(Fragment, null, renderList(files.value, (file, id) => {
|
|
11060
11060
|
return openBlock(), createElementBlock("div", {
|
|
11061
11061
|
key: id,
|
|
@@ -11065,18 +11065,18 @@ const _sfc_main$d = {
|
|
|
11065
11065
|
"icon-name": `file-` + iconName(file.type),
|
|
11066
11066
|
size: 40
|
|
11067
11067
|
}, null, 8, ["icon-name"]),
|
|
11068
|
-
createElementVNode("div", _hoisted_4$
|
|
11069
|
-
createElementVNode("div", _hoisted_5$
|
|
11068
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
11069
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
11070
11070
|
createElementVNode("span", {
|
|
11071
11071
|
title: file.name
|
|
11072
|
-
}, toDisplayString(format2(file.name)) + "." + toDisplayString(extension(file.type)), 9, _hoisted_6$
|
|
11072
|
+
}, toDisplayString(format2(file.name)) + "." + toDisplayString(extension(file.type)), 9, _hoisted_6$3),
|
|
11073
11073
|
createElementVNode("span", null, toDisplayString(props.uploadProgress[id]) + "%", 1)
|
|
11074
11074
|
]),
|
|
11075
11075
|
createElementVNode("progress", {
|
|
11076
11076
|
id: "file",
|
|
11077
11077
|
max: "100",
|
|
11078
11078
|
value: props.uploadProgress[id]
|
|
11079
|
-
}, toDisplayString(props.uploadProgress[id]) + "% ", 9, _hoisted_7$
|
|
11079
|
+
}, toDisplayString(props.uploadProgress[id]) + "% ", 9, _hoisted_7$2)
|
|
11080
11080
|
]),
|
|
11081
11081
|
props.uploadProgress[id] !== 100 ? (openBlock(), createBlock(DhIcon, {
|
|
11082
11082
|
key: 0,
|
|
@@ -11094,7 +11094,7 @@ const _sfc_main$d = {
|
|
|
11094
11094
|
]);
|
|
11095
11095
|
}), 128))
|
|
11096
11096
|
])) : createCommentVNode("", true),
|
|
11097
|
-
!fileSelected.value ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
11097
|
+
!fileSelected.value ? (openBlock(), createElementBlock("div", _hoisted_8$2, " No file selected ")) : createCommentVNode("", true),
|
|
11098
11098
|
createElementVNode("div", _hoisted_9$2, [
|
|
11099
11099
|
_hoisted_10$2,
|
|
11100
11100
|
createElementVNode("button", {
|
|
@@ -11116,6 +11116,22 @@ const _sfc_main$c = defineComponent({
|
|
|
11116
11116
|
type: Boolean,
|
|
11117
11117
|
default: true
|
|
11118
11118
|
},
|
|
11119
|
+
hasSideBarButtonBottom: {
|
|
11120
|
+
type: Boolean,
|
|
11121
|
+
default: true
|
|
11122
|
+
},
|
|
11123
|
+
hasHeader: {
|
|
11124
|
+
type: Boolean,
|
|
11125
|
+
default: true
|
|
11126
|
+
},
|
|
11127
|
+
hasFooter: {
|
|
11128
|
+
type: Boolean,
|
|
11129
|
+
default: true
|
|
11130
|
+
},
|
|
11131
|
+
hasFooterButtonRight: {
|
|
11132
|
+
type: Boolean,
|
|
11133
|
+
default: true
|
|
11134
|
+
},
|
|
11119
11135
|
sideBarPosition: {
|
|
11120
11136
|
type: String,
|
|
11121
11137
|
default: "left"
|
|
@@ -11136,17 +11152,12 @@ const _sfc_main$c = defineComponent({
|
|
|
11136
11152
|
}
|
|
11137
11153
|
}
|
|
11138
11154
|
});
|
|
11139
|
-
const _hoisted_1$b =
|
|
11140
|
-
|
|
11141
|
-
const _hoisted_3$7 = {
|
|
11155
|
+
const _hoisted_1$b = {
|
|
11156
|
+
key: 0,
|
|
11142
11157
|
id: "modalTitle",
|
|
11143
11158
|
class: "modal-header"
|
|
11144
11159
|
};
|
|
11145
|
-
const
|
|
11146
|
-
const _hoisted_5$3 = /* @__PURE__ */ createTextVNode("Modal body! ");
|
|
11147
|
-
const _hoisted_6$3 = { class: "modal-footer" };
|
|
11148
|
-
const _hoisted_7$2 = /* @__PURE__ */ createTextVNode("Modal footer! ");
|
|
11149
|
-
const _hoisted_8$2 = /* @__PURE__ */ createElementVNode("button", { class: "btn btn-primary" }, "Button right", -1);
|
|
11160
|
+
const _hoisted_2$a = { class: "modal-footer" };
|
|
11150
11161
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11151
11162
|
const _component_dh_icon = resolveComponent("dh-icon");
|
|
11152
11163
|
const _component_sidebar = resolveComponent("sidebar");
|
|
@@ -11183,38 +11194,26 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11183
11194
|
class: "modal-sidebar"
|
|
11184
11195
|
}, {
|
|
11185
11196
|
default: withCtx(() => [
|
|
11186
|
-
renderSlot(_ctx.$slots, "sidebar",
|
|
11187
|
-
|
|
11188
|
-
]),
|
|
11189
|
-
renderSlot(_ctx.$slots, "sidebar-button-bottom", {}, () => [
|
|
11190
|
-
_hoisted_2$a
|
|
11191
|
-
])
|
|
11197
|
+
renderSlot(_ctx.$slots, "sidebar"),
|
|
11198
|
+
_ctx.hasSideBarButtonBottom ? renderSlot(_ctx.$slots, "sidebar-button-bottom", { key: 0 }) : createCommentVNode("", true)
|
|
11192
11199
|
]),
|
|
11193
11200
|
_: 3
|
|
11194
11201
|
})) : createCommentVNode("", true),
|
|
11195
11202
|
createElementVNode("section", {
|
|
11196
11203
|
class: normalizeClass(`right-section ${_ctx.hasSideBar ? "" : "full"}`)
|
|
11197
11204
|
}, [
|
|
11198
|
-
|
|
11199
|
-
renderSlot(_ctx.$slots, "header"
|
|
11200
|
-
|
|
11201
|
-
])
|
|
11202
|
-
]),
|
|
11205
|
+
_ctx.hasHeader ? (openBlock(), createElementBlock("header", _hoisted_1$b, [
|
|
11206
|
+
renderSlot(_ctx.$slots, "header")
|
|
11207
|
+
])) : createCommentVNode("", true),
|
|
11203
11208
|
createElementVNode("section", {
|
|
11204
11209
|
id: "modalDescription",
|
|
11205
11210
|
class: normalizeClass(["modal-body", _ctx.bodyClass])
|
|
11206
11211
|
}, [
|
|
11207
|
-
renderSlot(_ctx.$slots, "body"
|
|
11208
|
-
_hoisted_5$3
|
|
11209
|
-
])
|
|
11212
|
+
renderSlot(_ctx.$slots, "body")
|
|
11210
11213
|
], 2),
|
|
11211
|
-
createElementVNode("footer",
|
|
11212
|
-
renderSlot(_ctx.$slots, "footer", {},
|
|
11213
|
-
|
|
11214
|
-
]),
|
|
11215
|
-
renderSlot(_ctx.$slots, "footer-button-right", {}, () => [
|
|
11216
|
-
_hoisted_8$2
|
|
11217
|
-
])
|
|
11214
|
+
createElementVNode("footer", _hoisted_2$a, [
|
|
11215
|
+
_ctx.hasFooter ? renderSlot(_ctx.$slots, "footer", { key: 0 }) : createCommentVNode("", true),
|
|
11216
|
+
_ctx.hasFooterButtonRight ? renderSlot(_ctx.$slots, "footer-button-right", { key: 1 }) : createCommentVNode("", true)
|
|
11218
11217
|
])
|
|
11219
11218
|
], 2)
|
|
11220
11219
|
], 2)
|
|
@@ -24585,10 +24584,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24585
24584
|
submit();
|
|
24586
24585
|
}
|
|
24587
24586
|
function fillCell(secret) {
|
|
24588
|
-
|
|
24587
|
+
const secretCode = secret.replace(/\D/g, "");
|
|
24588
|
+
if (secretCode.length !== 6) {
|
|
24589
24589
|
return;
|
|
24590
24590
|
}
|
|
24591
|
-
const [secret_1, secret_2, secret_3, secret_4, secret_5, secret_6] =
|
|
24591
|
+
const [secret_1, secret_2, secret_3, secret_4, secret_5, secret_6] = secretCode.split("");
|
|
24592
24592
|
if (txtInput1.value)
|
|
24593
24593
|
txtInput1.value.value = secret_1;
|
|
24594
24594
|
if (txtInput2.value)
|
|
@@ -24621,6 +24621,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24621
24621
|
autofocus: "",
|
|
24622
24622
|
class: "form-input input-1",
|
|
24623
24623
|
"data-e2e": "input-1",
|
|
24624
|
+
inputmode: "numeric",
|
|
24624
24625
|
maxlength: "1",
|
|
24625
24626
|
placeholder: "_",
|
|
24626
24627
|
type: "text",
|
|
@@ -24637,6 +24638,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24637
24638
|
ref: txtInput2,
|
|
24638
24639
|
class: "form-input",
|
|
24639
24640
|
"data-e2e": "input-2",
|
|
24641
|
+
inputmode: "numeric",
|
|
24640
24642
|
maxlength: "1",
|
|
24641
24643
|
placeholder: "_",
|
|
24642
24644
|
type: "text",
|
|
@@ -24653,6 +24655,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24653
24655
|
ref: txtInput3,
|
|
24654
24656
|
class: "form-input",
|
|
24655
24657
|
"data-e2e": "input-3",
|
|
24658
|
+
inputmode: "numeric",
|
|
24656
24659
|
maxlength: "1",
|
|
24657
24660
|
placeholder: "_",
|
|
24658
24661
|
type: "text",
|
|
@@ -24669,6 +24672,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24669
24672
|
ref: txtInput4,
|
|
24670
24673
|
class: "form-input",
|
|
24671
24674
|
"data-e2e": "input-4",
|
|
24675
|
+
inputmode: "numeric",
|
|
24672
24676
|
maxlength: "1",
|
|
24673
24677
|
placeholder: "_",
|
|
24674
24678
|
type: "text",
|
|
@@ -24685,6 +24689,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24685
24689
|
ref: txtInput5,
|
|
24686
24690
|
class: "form-input",
|
|
24687
24691
|
"data-e2e": "input-5",
|
|
24692
|
+
inputmode: "numeric",
|
|
24688
24693
|
maxlength: "1",
|
|
24689
24694
|
placeholder: "_",
|
|
24690
24695
|
type: "text",
|
|
@@ -24701,6 +24706,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24701
24706
|
ref: txtInput6,
|
|
24702
24707
|
class: "form-input",
|
|
24703
24708
|
"data-e2e": "input-6",
|
|
24709
|
+
inputmode: "numeric",
|
|
24704
24710
|
maxlength: "1",
|
|
24705
24711
|
placeholder: "_",
|
|
24706
24712
|
type: "text",
|
|
@@ -24716,7 +24722,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24716
24722
|
};
|
|
24717
24723
|
}
|
|
24718
24724
|
});
|
|
24719
|
-
var VerificationCode = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
24725
|
+
var VerificationCode = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7d5513ee"]]);
|
|
24720
24726
|
const _sfc_main = defineComponent({
|
|
24721
24727
|
components: { DhIcon },
|
|
24722
24728
|
props: {
|