@deskhero/dh_ui 1.27.0 → 1.28.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 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$9 = {
73
+ const _hoisted_3$8 = {
74
74
  key: 0,
75
75
  class: "list-none"
76
76
  };
77
- const _hoisted_4$7 = ["checked"];
78
- const _hoisted_5$5 = ["checked"];
79
- const _hoisted_6$5 = ["checked"];
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$9, [
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$7),
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$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$5),
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$8 = {
10952
+ const _hoisted_3$7 = {
10953
10953
  key: 0,
10954
10954
  class: "file__upload_items"
10955
10955
  };
10956
- const _hoisted_4$6 = { class: "file__upload_list_item" };
10957
- const _hoisted_5$4 = { class: "file__upload_list_item_label" };
10958
- const _hoisted_6$4 = ["title"];
10959
- const _hoisted_7$3 = ["value"];
10960
- const _hoisted_8$3 = {
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$8, [
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$6, [
11069
- createElementVNode("div", _hoisted_5$4, [
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$4),
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$3)
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$3, " No file selected ")) : createCommentVNode("", true),
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", {
@@ -11136,17 +11136,11 @@ const _sfc_main$c = defineComponent({
11136
11136
  }
11137
11137
  }
11138
11138
  });
11139
- const _hoisted_1$b = /* @__PURE__ */ createTextVNode("Modal sidebar! ");
11140
- const _hoisted_2$a = /* @__PURE__ */ createElementVNode("button", { class: "btn btn-primary" }, "Button Bottom", -1);
11141
- const _hoisted_3$7 = {
11139
+ const _hoisted_1$b = {
11142
11140
  id: "modalTitle",
11143
11141
  class: "modal-header"
11144
11142
  };
11145
- const _hoisted_4$5 = /* @__PURE__ */ createTextVNode("Modal header! ");
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);
11143
+ const _hoisted_2$a = { class: "modal-footer" };
11150
11144
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
11151
11145
  const _component_dh_icon = resolveComponent("dh-icon");
11152
11146
  const _component_sidebar = resolveComponent("sidebar");
@@ -11183,38 +11177,26 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
11183
11177
  class: "modal-sidebar"
11184
11178
  }, {
11185
11179
  default: withCtx(() => [
11186
- renderSlot(_ctx.$slots, "sidebar", {}, () => [
11187
- _hoisted_1$b
11188
- ]),
11189
- renderSlot(_ctx.$slots, "sidebar-button-bottom", {}, () => [
11190
- _hoisted_2$a
11191
- ])
11180
+ renderSlot(_ctx.$slots, "sidebar"),
11181
+ renderSlot(_ctx.$slots, "sidebar-button-bottom")
11192
11182
  ]),
11193
11183
  _: 3
11194
11184
  })) : createCommentVNode("", true),
11195
11185
  createElementVNode("section", {
11196
11186
  class: normalizeClass(`right-section ${_ctx.hasSideBar ? "" : "full"}`)
11197
11187
  }, [
11198
- createElementVNode("header", _hoisted_3$7, [
11199
- renderSlot(_ctx.$slots, "header", {}, () => [
11200
- _hoisted_4$5
11201
- ])
11188
+ createElementVNode("header", _hoisted_1$b, [
11189
+ renderSlot(_ctx.$slots, "header")
11202
11190
  ]),
11203
11191
  createElementVNode("section", {
11204
11192
  id: "modalDescription",
11205
11193
  class: normalizeClass(["modal-body", _ctx.bodyClass])
11206
11194
  }, [
11207
- renderSlot(_ctx.$slots, "body", {}, () => [
11208
- _hoisted_5$3
11209
- ])
11195
+ renderSlot(_ctx.$slots, "body")
11210
11196
  ], 2),
11211
- createElementVNode("footer", _hoisted_6$3, [
11212
- renderSlot(_ctx.$slots, "footer", {}, () => [
11213
- _hoisted_7$2
11214
- ]),
11215
- renderSlot(_ctx.$slots, "footer-button-right", {}, () => [
11216
- _hoisted_8$2
11217
- ])
11197
+ createElementVNode("footer", _hoisted_2$a, [
11198
+ renderSlot(_ctx.$slots, "footer"),
11199
+ renderSlot(_ctx.$slots, "footer-button-right")
11218
11200
  ])
11219
11201
  ], 2)
11220
11202
  ], 2)
@@ -24585,10 +24567,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24585
24567
  submit();
24586
24568
  }
24587
24569
  function fillCell(secret) {
24588
- if (secret.length !== 6) {
24570
+ const secretCode = secret.replace(/\D/g, "");
24571
+ if (secretCode.length !== 6) {
24589
24572
  return;
24590
24573
  }
24591
- const [secret_1, secret_2, secret_3, secret_4, secret_5, secret_6] = secret.split("");
24574
+ const [secret_1, secret_2, secret_3, secret_4, secret_5, secret_6] = secretCode.split("");
24592
24575
  if (txtInput1.value)
24593
24576
  txtInput1.value.value = secret_1;
24594
24577
  if (txtInput2.value)
@@ -24621,6 +24604,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24621
24604
  autofocus: "",
24622
24605
  class: "form-input input-1",
24623
24606
  "data-e2e": "input-1",
24607
+ inputmode: "numeric",
24624
24608
  maxlength: "1",
24625
24609
  placeholder: "_",
24626
24610
  type: "text",
@@ -24637,6 +24621,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24637
24621
  ref: txtInput2,
24638
24622
  class: "form-input",
24639
24623
  "data-e2e": "input-2",
24624
+ inputmode: "numeric",
24640
24625
  maxlength: "1",
24641
24626
  placeholder: "_",
24642
24627
  type: "text",
@@ -24653,6 +24638,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24653
24638
  ref: txtInput3,
24654
24639
  class: "form-input",
24655
24640
  "data-e2e": "input-3",
24641
+ inputmode: "numeric",
24656
24642
  maxlength: "1",
24657
24643
  placeholder: "_",
24658
24644
  type: "text",
@@ -24669,6 +24655,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24669
24655
  ref: txtInput4,
24670
24656
  class: "form-input",
24671
24657
  "data-e2e": "input-4",
24658
+ inputmode: "numeric",
24672
24659
  maxlength: "1",
24673
24660
  placeholder: "_",
24674
24661
  type: "text",
@@ -24685,6 +24672,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24685
24672
  ref: txtInput5,
24686
24673
  class: "form-input",
24687
24674
  "data-e2e": "input-5",
24675
+ inputmode: "numeric",
24688
24676
  maxlength: "1",
24689
24677
  placeholder: "_",
24690
24678
  type: "text",
@@ -24701,6 +24689,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24701
24689
  ref: txtInput6,
24702
24690
  class: "form-input",
24703
24691
  "data-e2e": "input-6",
24692
+ inputmode: "numeric",
24704
24693
  maxlength: "1",
24705
24694
  placeholder: "_",
24706
24695
  type: "text",
@@ -24716,7 +24705,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24716
24705
  };
24717
24706
  }
24718
24707
  });
24719
- var VerificationCode = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-36ebd64c"]]);
24708
+ var VerificationCode = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7d5513ee"]]);
24720
24709
  const _sfc_main = defineComponent({
24721
24710
  components: { DhIcon },
24722
24711
  props: {