@deskhero/dh_ui 1.20.0 → 1.20.2
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 +102 -93
- package/dist/dh_ui.umd.js +3 -3
- package/dist/src/components/PasswordField.vue.d.ts +19 -6
- package/dist/src/components/SearchInput.vue.d.ts +22 -7
- package/dist/src/components/Stepper.vue.d.ts +20 -5
- package/dist/src/components/TimePicker.vue.d.ts +0 -44
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/dh_ui.es.js
CHANGED
|
@@ -70,7 +70,7 @@ const _sfc_main$d = defineComponent({
|
|
|
70
70
|
});
|
|
71
71
|
const _hoisted_1$d = { class: "dh-advanced-filter-container" };
|
|
72
72
|
const _hoisted_2$b = { class: "advance_section" };
|
|
73
|
-
const _hoisted_3$
|
|
73
|
+
const _hoisted_3$9 = {
|
|
74
74
|
key: 0,
|
|
75
75
|
class: "list-none"
|
|
76
76
|
};
|
|
@@ -91,7 +91,7 @@ function _sfc_render$7(_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$9, [
|
|
95
95
|
createElementVNode("li", null, [
|
|
96
96
|
createElementVNode("label", null, [
|
|
97
97
|
createElementVNode("input", {
|
|
@@ -257,14 +257,14 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
257
257
|
alt: "icon",
|
|
258
258
|
class: normalizeClass({
|
|
259
259
|
"active-hover": _ctx.activeOnHover,
|
|
260
|
-
|
|
260
|
+
active: _ctx.active
|
|
261
261
|
}),
|
|
262
262
|
height: _ctx.size,
|
|
263
263
|
src: _ctx.getIconUrl(),
|
|
264
264
|
width: _ctx.size
|
|
265
265
|
}, null, 10, _hoisted_1$b);
|
|
266
266
|
}
|
|
267
|
-
var DhIcon = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
|
267
|
+
var DhIcon = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$6], ["__scopeId", "data-v-201309a0"]]);
|
|
268
268
|
const _sfc_main$a = defineComponent({
|
|
269
269
|
components: { DhIcon },
|
|
270
270
|
props: {
|
|
@@ -277,7 +277,7 @@ const _sfc_main$a = defineComponent({
|
|
|
277
277
|
default: true
|
|
278
278
|
},
|
|
279
279
|
sideBarPosition: {
|
|
280
|
-
type:
|
|
280
|
+
type: String,
|
|
281
281
|
default: "left"
|
|
282
282
|
},
|
|
283
283
|
hasCloseConfirmation: {
|
|
@@ -294,7 +294,7 @@ const _sfc_main$a = defineComponent({
|
|
|
294
294
|
});
|
|
295
295
|
const _hoisted_1$a = /* @__PURE__ */ createTextVNode("Modal sidebar! ");
|
|
296
296
|
const _hoisted_2$a = /* @__PURE__ */ createElementVNode("button", { class: "btn btn-primary" }, "Button Bottom", -1);
|
|
297
|
-
const _hoisted_3$
|
|
297
|
+
const _hoisted_3$8 = {
|
|
298
298
|
id: "modalTitle",
|
|
299
299
|
class: "modal-header"
|
|
300
300
|
};
|
|
@@ -317,12 +317,12 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
317
317
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.closed && _ctx.closed(...args))
|
|
318
318
|
}, [
|
|
319
319
|
createElementVNode("div", {
|
|
320
|
+
"aria-describedby": "modalDescription",
|
|
321
|
+
"aria-labelledby": "modalTitle",
|
|
320
322
|
class: normalizeClass(`modal ${_ctx.hasSideBar ? _ctx.sideBarPosition : ""}`),
|
|
321
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
322
|
-
}, ["stop"])),
|
|
323
323
|
role: "dialog",
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
325
|
+
}, ["stop"]))
|
|
326
326
|
}, [
|
|
327
327
|
_ctx.hasCloseButton ? (openBlock(), createElementBlock("button", {
|
|
328
328
|
key: 0,
|
|
@@ -355,7 +355,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
355
355
|
createElementVNode("section", {
|
|
356
356
|
class: normalizeClass(`right-section ${_ctx.hasSideBar ? "" : "full"}`)
|
|
357
357
|
}, [
|
|
358
|
-
createElementVNode("header", _hoisted_3$
|
|
358
|
+
createElementVNode("header", _hoisted_3$8, [
|
|
359
359
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
360
360
|
_hoisted_4$6
|
|
361
361
|
])
|
|
@@ -464,7 +464,7 @@ const _hoisted_1$9 = /* @__PURE__ */ createElementVNode("img", {
|
|
|
464
464
|
const _hoisted_2$9 = [
|
|
465
465
|
_hoisted_1$9
|
|
466
466
|
];
|
|
467
|
-
const _hoisted_3$
|
|
467
|
+
const _hoisted_3$7 = ["src"];
|
|
468
468
|
const _hoisted_4$5 = { class: "additional-text" };
|
|
469
469
|
const _hoisted_5$5 = {
|
|
470
470
|
key: 0,
|
|
@@ -493,7 +493,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
493
493
|
createElementVNode("img", {
|
|
494
494
|
class: normalizeClass(`icons icons-${_ctx.status} icons-${_ctx.status}-${_ctx.notificationType}`),
|
|
495
495
|
src: _ctx.getIconUrl()
|
|
496
|
-
}, null, 10, _hoisted_3$
|
|
496
|
+
}, null, 10, _hoisted_3$7)
|
|
497
497
|
], 2),
|
|
498
498
|
createElementVNode("div", _hoisted_4$5, [
|
|
499
499
|
createElementVNode("div", {
|
|
@@ -12717,7 +12717,7 @@ const _sfc_main$8 = {
|
|
|
12717
12717
|
};
|
|
12718
12718
|
const _hoisted_1$8 = { class: "bar" };
|
|
12719
12719
|
const _hoisted_2$8 = ["min", "max", "step", "value"];
|
|
12720
|
-
const _hoisted_3$
|
|
12720
|
+
const _hoisted_3$6 = { class: "caption" };
|
|
12721
12721
|
const _hoisted_4$4 = { class: "min-caption" };
|
|
12722
12722
|
const _hoisted_5$4 = { class: "bar-inner" };
|
|
12723
12723
|
const _hoisted_6$4 = ["min", "max", "step", "value"];
|
|
@@ -12760,7 +12760,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12760
12760
|
onMousedown: _cache[2] || (_cache[2] = (...args) => $options.onLeftThumbMousedown && $options.onLeftThumbMousedown(...args)),
|
|
12761
12761
|
onTouchstart: _cache[3] || (_cache[3] = (...args) => $options.onLeftThumbMousedown && $options.onLeftThumbMousedown(...args))
|
|
12762
12762
|
}, [
|
|
12763
|
-
createElementVNode("div", _hoisted_3$
|
|
12763
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
12764
12764
|
createElementVNode("span", _hoisted_4$4, toDisplayString($props.minCaption || $options.barMinVal), 1)
|
|
12765
12765
|
])
|
|
12766
12766
|
], 32),
|
|
@@ -13077,7 +13077,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
13077
13077
|
});
|
|
13078
13078
|
const _hoisted_1$7 = { class: "dh-range-container" };
|
|
13079
13079
|
const _hoisted_2$7 = { class: "bar-chart" };
|
|
13080
|
-
const _hoisted_3$
|
|
13080
|
+
const _hoisted_3$5 = { class: "input-group-section" };
|
|
13081
13081
|
const _hoisted_4$3 = { class: "input-group sb-input" };
|
|
13082
13082
|
const _hoisted_5$3 = ["disabled", "max", "value"];
|
|
13083
13083
|
const _hoisted_6$3 = { class: "input-group sb-input" };
|
|
@@ -13134,7 +13134,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13134
13134
|
onInput: _ctx.updateBarChart
|
|
13135
13135
|
}, null, 8, ["base-class-name", "max", "max-caption", "max-value", "min-caption", "min-value", "step", "onInput"])
|
|
13136
13136
|
]),
|
|
13137
|
-
createElementVNode("div", _hoisted_3$
|
|
13137
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
13138
13138
|
createElementVNode("div", _hoisted_4$3, [
|
|
13139
13139
|
createElementVNode("label", {
|
|
13140
13140
|
class: normalizeClass(`text-2 input-to ${_ctx.validated ? "disable" : ""}`)
|
|
@@ -13215,8 +13215,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13215
13215
|
var NumberRange = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$2]]);
|
|
13216
13216
|
var PasswordField_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13217
13217
|
const _hoisted_1$6 = { class: "password-panel" };
|
|
13218
|
-
const _hoisted_2$6 = ["
|
|
13219
|
-
const _hoisted_3$
|
|
13218
|
+
const _hoisted_2$6 = ["placeholder", "type"];
|
|
13219
|
+
const _hoisted_3$4 = { class: "icon is-right" };
|
|
13220
13220
|
const _hoisted_4$2 = {
|
|
13221
13221
|
key: 0,
|
|
13222
13222
|
class: "password-tooltip"
|
|
@@ -13227,8 +13227,14 @@ const _hoisted_7$2 = { class: "active-text" };
|
|
|
13227
13227
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
13228
13228
|
__name: "PasswordField",
|
|
13229
13229
|
props: {
|
|
13230
|
-
modelValue:
|
|
13231
|
-
|
|
13230
|
+
modelValue: {
|
|
13231
|
+
type: String,
|
|
13232
|
+
default: ""
|
|
13233
|
+
},
|
|
13234
|
+
placeholder: {
|
|
13235
|
+
type: String,
|
|
13236
|
+
default: ""
|
|
13237
|
+
},
|
|
13232
13238
|
tipChars: {
|
|
13233
13239
|
type: String,
|
|
13234
13240
|
default: "12 Characters"
|
|
@@ -13242,7 +13248,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13242
13248
|
default: "Symbols"
|
|
13243
13249
|
}
|
|
13244
13250
|
},
|
|
13245
|
-
emits: ["submit", "
|
|
13251
|
+
emits: ["submit", "update:modelValue"],
|
|
13246
13252
|
setup(__props, { emit }) {
|
|
13247
13253
|
const props = __props;
|
|
13248
13254
|
const password = ref("");
|
|
@@ -13268,18 +13274,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13268
13274
|
showPassword.value = !showPassword.value;
|
|
13269
13275
|
}
|
|
13270
13276
|
onMounted(() => () => password.value = props.modelValue || "");
|
|
13271
|
-
watch(props, () => (password.value = props.modelValue || "", hasMinimumLength.value = password.value.length > 11, hasNumber.value = /\d/.test(password.value), hasSpecial.value = /[
|
|
13277
|
+
watch(props, () => (password.value = props.modelValue || "", hasMinimumLength.value = password.value.length > 11, hasNumber.value = /\d/.test(password.value), hasSpecial.value = /[!@#$%^&*)(+=._-]/.test(password.value)));
|
|
13272
13278
|
return (_ctx, _cache) => {
|
|
13273
13279
|
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
13274
13280
|
withDirectives(createElementVNode("input", {
|
|
13275
|
-
type: showPassword.value ? "text" : "password",
|
|
13276
|
-
class: "form-input password-panel-input",
|
|
13277
13281
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => password.value = $event),
|
|
13282
|
+
class: "form-input password-panel-input",
|
|
13278
13283
|
"data-e2e": "search-input",
|
|
13279
13284
|
placeholder: props.placeholder,
|
|
13280
|
-
|
|
13285
|
+
type: showPassword.value ? "text" : "password",
|
|
13281
13286
|
onFocus,
|
|
13282
|
-
onFocusout: outFocus
|
|
13287
|
+
onFocusout: outFocus,
|
|
13288
|
+
onKeyup: emitChanged
|
|
13283
13289
|
}, null, 40, _hoisted_2$6), [
|
|
13284
13290
|
[vModelDynamic, password.value]
|
|
13285
13291
|
]),
|
|
@@ -13287,7 +13293,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13287
13293
|
class: "password-panel-button",
|
|
13288
13294
|
onClick: toggleShow
|
|
13289
13295
|
}, [
|
|
13290
|
-
createElementVNode("span", _hoisted_3$
|
|
13296
|
+
createElementVNode("span", _hoisted_3$4, [
|
|
13291
13297
|
createVNode(DhIcon, {
|
|
13292
13298
|
active: isActive.value,
|
|
13293
13299
|
"icon-name": showPassword.value ? "invisible" : "visible",
|
|
@@ -13325,15 +13331,21 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13325
13331
|
};
|
|
13326
13332
|
}
|
|
13327
13333
|
});
|
|
13328
|
-
var PasswordField = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
13334
|
+
var PasswordField = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-4b80b2e6"]]);
|
|
13329
13335
|
var SearchInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13330
13336
|
const _hoisted_1$5 = { class: "search-panel" };
|
|
13331
13337
|
const _hoisted_2$5 = ["placeholder"];
|
|
13332
13338
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
13333
13339
|
__name: "SearchInput",
|
|
13334
13340
|
props: {
|
|
13335
|
-
modelValue:
|
|
13336
|
-
|
|
13341
|
+
modelValue: {
|
|
13342
|
+
type: String,
|
|
13343
|
+
default: ""
|
|
13344
|
+
},
|
|
13345
|
+
placeholder: {
|
|
13346
|
+
type: String,
|
|
13347
|
+
default: ""
|
|
13348
|
+
}
|
|
13337
13349
|
},
|
|
13338
13350
|
emits: ["submit", "clean", "update:modelValue"],
|
|
13339
13351
|
setup(__props, { emit }) {
|
|
@@ -13389,17 +13401,22 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
13389
13401
|
};
|
|
13390
13402
|
}
|
|
13391
13403
|
});
|
|
13392
|
-
var SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
13404
|
+
var SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-562faa14"]]);
|
|
13393
13405
|
var Stepper_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13394
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
13406
|
+
const _withScopeId = (n) => (pushScopeId("data-v-0213b522"), n = n(), popScopeId(), n);
|
|
13395
13407
|
const _hoisted_1$4 = { class: "stepper" };
|
|
13396
|
-
const _hoisted_2$4 = { class: "
|
|
13397
|
-
const _hoisted_3$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("hr", { class: "solid" }, null, -1));
|
|
13408
|
+
const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("hr", { class: "solid" }, null, -1));
|
|
13398
13409
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
13399
13410
|
__name: "Stepper",
|
|
13400
13411
|
props: {
|
|
13401
|
-
maxSteps:
|
|
13402
|
-
|
|
13412
|
+
maxSteps: {
|
|
13413
|
+
type: Number,
|
|
13414
|
+
default: 0
|
|
13415
|
+
},
|
|
13416
|
+
currentStep: {
|
|
13417
|
+
type: Number,
|
|
13418
|
+
default: 0
|
|
13419
|
+
}
|
|
13403
13420
|
},
|
|
13404
13421
|
setup(__props) {
|
|
13405
13422
|
const props = __props;
|
|
@@ -13408,19 +13425,22 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13408
13425
|
}
|
|
13409
13426
|
return (_ctx, _cache) => {
|
|
13410
13427
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
13411
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(getSteps(), (step) => {
|
|
13412
|
-
return openBlock(), createElementBlock("div",
|
|
13428
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getSteps(), (step, id) => {
|
|
13429
|
+
return openBlock(), createElementBlock("div", {
|
|
13430
|
+
key: id,
|
|
13431
|
+
class: "step"
|
|
13432
|
+
}, [
|
|
13413
13433
|
createElementVNode("span", {
|
|
13414
13434
|
class: normalizeClass(["step-number", { active: step === __props.currentStep }])
|
|
13415
13435
|
}, toDisplayString(step + 1), 3),
|
|
13416
|
-
|
|
13436
|
+
_hoisted_2$4
|
|
13417
13437
|
]);
|
|
13418
|
-
}),
|
|
13438
|
+
}), 128))
|
|
13419
13439
|
]);
|
|
13420
13440
|
};
|
|
13421
13441
|
}
|
|
13422
13442
|
});
|
|
13423
|
-
var Stepper = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
13443
|
+
var Stepper = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-0213b522"]]);
|
|
13424
13444
|
const _sfc_main$3 = defineComponent({
|
|
13425
13445
|
props: {
|
|
13426
13446
|
data: {
|
|
@@ -24177,25 +24197,25 @@ const _sfc_main$1 = {
|
|
|
24177
24197
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
24178
24198
|
createElementVNode("div", _hoisted_1$1, [
|
|
24179
24199
|
createVNode(unref(ca), {
|
|
24180
|
-
|
|
24181
|
-
|
|
24200
|
+
ref_key: "datePicker",
|
|
24201
|
+
ref: datePicker,
|
|
24182
24202
|
modelValue: date.value,
|
|
24183
24203
|
"onUpdate:modelValue": [
|
|
24184
24204
|
_cache[0] || (_cache[0] = ($event) => date.value = $event),
|
|
24185
24205
|
handleDate
|
|
24186
24206
|
],
|
|
24187
|
-
"select-text": "Apply",
|
|
24188
|
-
"time-picker-component": unref(timePicker),
|
|
24189
|
-
"day-names": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
24190
|
-
textInput: "",
|
|
24191
|
-
textInputOptions: textInputOptions.value,
|
|
24192
|
-
offset: 12,
|
|
24193
|
-
ref_key: "datePicker",
|
|
24194
|
-
ref: datePicker,
|
|
24195
24207
|
"auto-apply": "",
|
|
24208
|
+
"close-on-auto-apply": false,
|
|
24209
|
+
"day-names": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
24196
24210
|
"enable-time-picker": isTime.value,
|
|
24197
|
-
|
|
24211
|
+
offset: 12,
|
|
24198
24212
|
range: range.value,
|
|
24213
|
+
"select-text": "Apply",
|
|
24214
|
+
teleport: "#dp__container",
|
|
24215
|
+
"text-input": "",
|
|
24216
|
+
"text-input-options": textInputOptions.value,
|
|
24217
|
+
"time-picker-component": unref(timePicker),
|
|
24218
|
+
uid: "base",
|
|
24199
24219
|
onClosed: reOpen
|
|
24200
24220
|
}, {
|
|
24201
24221
|
"dp-input": withCtx(({ value, onInput }) => [
|
|
@@ -24205,8 +24225,8 @@ const _sfc_main$1 = {
|
|
|
24205
24225
|
class: normalizeClass(["dp__custom_selection_input", time.value ? "dp__custom_selection_input_time" : ""])
|
|
24206
24226
|
}, [
|
|
24207
24227
|
createElementVNode("input", {
|
|
24208
|
-
type: "text",
|
|
24209
24228
|
placeholder: "DD/MM/YY",
|
|
24229
|
+
type: "text",
|
|
24210
24230
|
value,
|
|
24211
24231
|
onInput
|
|
24212
24232
|
}, null, 40, _hoisted_3$1),
|
|
@@ -24220,8 +24240,8 @@ const _sfc_main$1 = {
|
|
|
24220
24240
|
class: normalizeClass(["dp__custom_selection_input", time.value ? "dp__custom_selection_input_time" : ""])
|
|
24221
24241
|
}, [
|
|
24222
24242
|
createElementVNode("input", {
|
|
24223
|
-
type: "text",
|
|
24224
24243
|
placeholder: "DD/MM/YY",
|
|
24244
|
+
type: "text",
|
|
24225
24245
|
value: value.split("-")[0],
|
|
24226
24246
|
onInput
|
|
24227
24247
|
}, null, 40, _hoisted_5$1),
|
|
@@ -24234,8 +24254,8 @@ const _sfc_main$1 = {
|
|
|
24234
24254
|
class: normalizeClass(["dp__custom_selection_input", time.value ? "dp__custom_selection_input_time" : ""])
|
|
24235
24255
|
}, [
|
|
24236
24256
|
createElementVNode("input", {
|
|
24237
|
-
type: "text",
|
|
24238
24257
|
placeholder: "DD/MM/YY",
|
|
24258
|
+
type: "text",
|
|
24239
24259
|
value: value.split("-")[1]
|
|
24240
24260
|
}, null, 8, _hoisted_6$1),
|
|
24241
24261
|
createVNode(DhIcon, {
|
|
@@ -24267,7 +24287,7 @@ const _sfc_main$1 = {
|
|
|
24267
24287
|
"clear-icon": withCtx(() => []),
|
|
24268
24288
|
"action-preview": withCtx(() => []),
|
|
24269
24289
|
_: 1
|
|
24270
|
-
}, 8, ["modelValue", "time-picker
|
|
24290
|
+
}, 8, ["modelValue", "enable-time-picker", "range", "text-input-options", "time-picker-component"]),
|
|
24271
24291
|
_hoisted_7$1,
|
|
24272
24292
|
_hoisted_8$1,
|
|
24273
24293
|
createVNode(DhSwitch, {
|
|
@@ -24307,18 +24327,7 @@ const _hoisted_16 = ["value"];
|
|
|
24307
24327
|
const _sfc_main = {
|
|
24308
24328
|
__name: "TimePicker",
|
|
24309
24329
|
props: {
|
|
24310
|
-
|
|
24311
|
-
minutesIncrement: { type: [Number, String], default: 1 },
|
|
24312
|
-
is24: { type: Boolean, default: true },
|
|
24313
|
-
hoursGridIncrement: { type: [String, Number], default: 1 },
|
|
24314
|
-
range: { type: Boolean, default: false },
|
|
24315
|
-
filters: { type: Object, default: () => ({}) },
|
|
24316
|
-
minTime: { type: Object, default: () => ({}) },
|
|
24317
|
-
maxTime: { type: Object, default: () => ({}) },
|
|
24318
|
-
timePicker: { type: Boolean, default: false },
|
|
24319
|
-
hours: { type: [Number, Array], default: 0 },
|
|
24320
|
-
minutes: { type: [Number, Array], default: 0 },
|
|
24321
|
-
customProps: { type: Object, default: null }
|
|
24330
|
+
range: { type: Boolean, default: false }
|
|
24322
24331
|
},
|
|
24323
24332
|
emits: ["update:hours", "update:minutes"],
|
|
24324
24333
|
setup(__props, { emit }) {
|
|
@@ -24331,19 +24340,19 @@ const _sfc_main = {
|
|
|
24331
24340
|
createElementVNode("div", _hoisted_1, [
|
|
24332
24341
|
createElementVNode("div", _hoisted_2, [
|
|
24333
24342
|
createElementVNode("input", {
|
|
24334
|
-
type: "text",
|
|
24335
|
-
name: "hoursInput",
|
|
24336
24343
|
class: "time_input",
|
|
24337
|
-
|
|
24338
|
-
|
|
24344
|
+
name: "hoursInput",
|
|
24345
|
+
type: "text",
|
|
24346
|
+
value: _ctx.hours,
|
|
24347
|
+
onChange: _cache[0] || (_cache[0] = ($event) => emit("update:hours", +$event.target.value))
|
|
24339
24348
|
}, null, 40, _hoisted_3),
|
|
24340
24349
|
_hoisted_4,
|
|
24341
24350
|
createElementVNode("input", {
|
|
24342
|
-
type: "text",
|
|
24343
|
-
name: "MinutesInput",
|
|
24344
24351
|
class: "time_input",
|
|
24345
|
-
|
|
24346
|
-
|
|
24352
|
+
name: "MinutesInput",
|
|
24353
|
+
type: "text",
|
|
24354
|
+
value: _ctx.minutes,
|
|
24355
|
+
onChange: _cache[1] || (_cache[1] = ($event) => emit("update:minutes", +$event.target.value))
|
|
24347
24356
|
}, null, 40, _hoisted_5)
|
|
24348
24357
|
]),
|
|
24349
24358
|
createVNode(DhIcon, {
|
|
@@ -24360,19 +24369,19 @@ const _sfc_main = {
|
|
|
24360
24369
|
createElementVNode("div", _hoisted_7, [
|
|
24361
24370
|
createElementVNode("div", _hoisted_8, [
|
|
24362
24371
|
createElementVNode("input", {
|
|
24363
|
-
type: "text",
|
|
24364
|
-
name: "hoursInput",
|
|
24365
24372
|
class: "time_input",
|
|
24366
|
-
|
|
24367
|
-
|
|
24373
|
+
name: "hoursInput",
|
|
24374
|
+
type: "text",
|
|
24375
|
+
value: _ctx.hours[0],
|
|
24376
|
+
onSubmit: _cache[2] || (_cache[2] = ($event) => emit("update:hours", $event.target.value))
|
|
24368
24377
|
}, null, 40, _hoisted_9),
|
|
24369
24378
|
_hoisted_10,
|
|
24370
24379
|
createElementVNode("input", {
|
|
24371
|
-
type: "text",
|
|
24372
|
-
name: "MinutesInput",
|
|
24373
24380
|
class: "time_input",
|
|
24374
|
-
|
|
24375
|
-
|
|
24381
|
+
name: "MinutesInput",
|
|
24382
|
+
type: "text",
|
|
24383
|
+
value: _ctx.minutes[0],
|
|
24384
|
+
onSubmit: _cache[3] || (_cache[3] = ($event) => emit("update:minutes", $event.target.value))
|
|
24376
24385
|
}, null, 40, _hoisted_11)
|
|
24377
24386
|
]),
|
|
24378
24387
|
createVNode(DhIcon, {
|
|
@@ -24383,19 +24392,19 @@ const _sfc_main = {
|
|
|
24383
24392
|
createElementVNode("div", _hoisted_12, [
|
|
24384
24393
|
createElementVNode("div", _hoisted_13, [
|
|
24385
24394
|
createElementVNode("input", {
|
|
24386
|
-
type: "text",
|
|
24387
|
-
name: "hoursInput",
|
|
24388
24395
|
class: "time_input",
|
|
24389
|
-
|
|
24390
|
-
|
|
24396
|
+
name: "hoursInput",
|
|
24397
|
+
type: "text",
|
|
24398
|
+
value: _ctx.hours[1],
|
|
24399
|
+
onSubmit: _cache[4] || (_cache[4] = ($event) => emit("update:hours", $event.target.value))
|
|
24391
24400
|
}, null, 40, _hoisted_14),
|
|
24392
24401
|
_hoisted_15,
|
|
24393
24402
|
createElementVNode("input", {
|
|
24394
|
-
type: "text",
|
|
24395
|
-
name: "MinutesInput",
|
|
24396
24403
|
class: "time_input",
|
|
24397
|
-
|
|
24398
|
-
|
|
24404
|
+
name: "MinutesInput",
|
|
24405
|
+
type: "text",
|
|
24406
|
+
value: _ctx.minutes[1],
|
|
24407
|
+
onSubmit: _cache[5] || (_cache[5] = ($event) => emit("update:minutes", $event.target.value))
|
|
24399
24408
|
}, null, 40, _hoisted_16)
|
|
24400
24409
|
]),
|
|
24401
24410
|
createVNode(DhIcon, {
|