@ldmjs/ui 1.0.0-dev-19 → 1.0.0-dev-21
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/README.md +1 -1
- package/dist/css/index.css +10 -6
- package/dist/index.js +1252 -300
- package/dist/multiselect.js +1 -1
- package/dist/scss/_inputs.scss +1 -1
- package/dist/scss/_multiselect.scss +1 -1
- package/dist/types/options.d.ts +2 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -816,30 +816,16 @@ function ld_button_reg(vue, options) {
|
|
|
816
816
|
}
|
|
817
817
|
/* harmony default export */ const src_ld_button = (ld_button_reg);
|
|
818
818
|
|
|
819
|
-
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-splitter/ld-splitter.vue?vue&type=template&id=
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
const
|
|
823
|
-
const
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
viewBox: "0 0 1.5875 8.4666668",
|
|
827
|
-
height: "32",
|
|
828
|
-
width: "6"
|
|
829
|
-
}, [
|
|
830
|
-
/*#__PURE__*/(0,external_vue_.createElementVNode)("g", null, [
|
|
831
|
-
/*#__PURE__*/(0,external_vue_.createElementVNode)("path", {
|
|
832
|
-
transform: "scale(0.26458333)",
|
|
833
|
-
d: "M 0.38476562 0.7265625 L 0.38476562 3.2910156 L 2.53125 3.2910156 L 2.53125 0.7265625 L 0.38476562 0.7265625 z M 3.4941406 0.7265625 L 3.4941406 3.2910156 L 5.6699219 3.2910156 L 5.6699219 0.7265625 L 3.4941406 0.7265625 z M 0.38476562 4.2519531 L 0.38476562 6.8144531 L 2.53125 6.8144531 L 2.53125 4.2519531 L 0.38476562 4.2519531 z M 3.4941406 4.2519531 L 3.4941406 6.8144531 L 5.6699219 6.8144531 L 5.6699219 4.2519531 L 3.4941406 4.2519531 z M 0.38476562 7.7753906 L 0.38476562 10.339844 L 2.53125 10.339844 L 2.53125 7.7753906 L 0.38476562 7.7753906 z M 3.4941406 7.7753906 L 3.4941406 10.339844 L 5.6699219 10.339844 L 5.6699219 7.7753906 L 3.4941406 7.7753906 z M 0.38476562 11.298828 L 0.38476562 13.863281 L 2.53125 13.863281 L 2.53125 11.298828 L 0.38476562 11.298828 z M 3.4941406 11.298828 L 3.4941406 13.863281 L 5.6699219 13.863281 L 5.6699219 11.298828 L 3.4941406 11.298828 z M 0.38476562 14.822266 L 0.38476562 17.386719 L 2.53125 17.386719 L 2.53125 14.822266 L 0.38476562 14.822266 z M 3.4941406 14.822266 L 3.4941406 17.386719 L 5.6699219 17.386719 L 5.6699219 14.822266 L 3.4941406 14.822266 z M 0.38476562 18.347656 L 0.38476562 20.910156 L 2.53125 20.910156 L 2.53125 18.347656 L 0.38476562 18.347656 z M 3.4941406 18.347656 L 3.4941406 20.910156 L 5.6699219 20.910156 L 5.6699219 18.347656 L 3.4941406 18.347656 z M 0.38476562 21.871094 L 0.38476562 24.435547 L 2.53125 24.435547 L 2.53125 21.871094 L 0.38476562 21.871094 z M 3.4941406 21.871094 L 3.4941406 24.435547 L 5.6699219 24.435547 L 5.6699219 21.871094 L 3.4941406 21.871094 z M 0.38476562 25.394531 L 0.38476562 27.958984 L 2.53125 27.958984 L 2.53125 25.394531 L 0.38476562 25.394531 z M 3.4941406 25.394531 L 3.4941406 27.958984 L 5.6699219 27.958984 L 5.6699219 25.394531 L 3.4941406 25.394531 z M 0.38476562 28.917969 L 0.38476562 31.482422 L 2.53125 31.482422 L 2.53125 28.917969 L 0.38476562 28.917969 z M 3.4941406 28.917969 L 3.4941406 31.482422 L 5.6699219 31.482422 L 5.6699219 28.917969 L 3.4941406 28.917969 z ",
|
|
834
|
-
style: {"fill":"#cccccc","stroke-width":"0.831496"}
|
|
835
|
-
})
|
|
836
|
-
])
|
|
837
|
-
], -1))
|
|
838
|
-
const ld_splittervue_type_template_id_c282e58e_scoped_true_hoisted_2 = [
|
|
839
|
-
ld_splittervue_type_template_id_c282e58e_scoped_true_hoisted_1
|
|
819
|
+
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-splitter/ld-splitter.vue?vue&type=template&id=4f01e865&scoped=true
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
const ld_splittervue_type_template_id_4f01e865_scoped_true_withScopeId = n => (_pushScopeId("data-v-4f01e865"),n=n(),_popScopeId(),n)
|
|
823
|
+
const ld_splittervue_type_template_id_4f01e865_scoped_true_hoisted_1 = /*#__PURE__*/(0,external_vue_.createStaticVNode)("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"6\" height=\"45\" viewBox=\"0 0 1.5875 11.90625\" version=\"1.1\" data-v-4f01e865><g id=\"layer1\" data-v-4f01e865><path d=\"M 0.07060175,0.12564185 V 0.81087133 H 0.63904249 V 0.12564185 Z m 0.9151896,0.005168 V 0.81603896 H 1.5542321 V 0.13080949 Z M 0.07060175,1.340038 V 2.0252675 H 0.63904249 V 1.340038 Z m 0.9151896,0.00517 V 2.0304351 H 1.5542321 V 1.3452056 Z M 0.07060175,2.5544342 V 3.2396635 H 0.63904249 V 2.5544342 Z m 0.9151896,0.00517 V 3.2448313 H 1.5542321 V 2.5596018 Z m -0.9151896,1.209226 V 4.4540597 H 0.63904249 V 3.7688302 Z m 0.9151896,0.00517 V 4.4592276 H 1.5542321 V 3.773998 Z M 0.07060175,4.9832264 V 5.6684559 H 0.63904249 V 4.9832264 Z m 0.9151896,0.00517 V 5.6736235 H 1.5542321 V 4.9883942 Z\" style=\"fill:#b3b3b3;stroke-width:0.219999;\" id=\"rect864\" data-v-4f01e865></path> <path id=\"rect864-4\" style=\"fill:#b3b3b3;stroke-width:0.219999;\" d=\"m 0.07060179,4.9832264 v 0.6852295 h 0.5684407 V 4.9832264 Z m 0.9151896,0.00517 V 5.6736235 H 1.5542322 V 4.988394 Z m -0.9151896,1.2092261 v 0.6852296 h 0.5684407 V 6.1976225 Z m 0.9151896,0.00517 V 6.8880197 H 1.5542322 V 6.2027902 Z m -0.9151896,1.2092262 v 0.6852294 h 0.5684407 V 7.4120187 Z m 0.9151896,0.00517 V 8.102416 H 1.5542322 V 7.4171864 Z m -0.9151896,1.2092261 v 0.6852296 h 0.5684407 V 8.6264148 Z m 0.9151896,0.00517 V 9.3168117 H 1.5542322 V 8.6315827 Z M 0.07060179,9.840811 v 0.685228 h 0.5684407 V 9.840811 Z m 0.9151896,0.00517 v 0.685225 H 1.5542322 V 9.8459783 Z\" data-v-4f01e865></path> <path id=\"rect864-7\" style=\"fill:#b3b3b3;stroke-width:0.219999;\" d=\"M 0.07060179,6.1976225 V 6.882852 h 0.5684407 V 6.1976225 Z m 0.9151896,0.00517 V 6.8880197 H 1.5542322 V 6.2027902 Z m -0.9151896,1.2092261 v 0.6852296 h 0.5684407 V 7.4120186 Z m 0.9151896,0.00517 V 8.1024158 H 1.5542322 V 7.4171863 Z m -0.9151896,1.2092262 v 0.6852294 h 0.5684407 V 8.6264148 Z m 0.9151896,0.00517 V 9.3168121 H 1.5542322 V 8.6315825 Z M 0.07060179,9.840811 v 0.685229 h 0.5684407 V 9.840811 Z m 0.9151896,0.0052 v 0.685226 H 1.5542322 V 9.846009 Z m -0.9151896,1.209225 v 0.68523 h 0.5684407 v -0.68523 z m 0.9151896,0.0052 v 0.685227 H 1.5542322 v -0.68523 z\" data-v-4f01e865></path></g></svg>", 1)
|
|
824
|
+
const ld_splittervue_type_template_id_4f01e865_scoped_true_hoisted_2 = [
|
|
825
|
+
ld_splittervue_type_template_id_4f01e865_scoped_true_hoisted_1
|
|
840
826
|
]
|
|
841
827
|
|
|
842
|
-
function
|
|
828
|
+
function ld_splittervue_type_template_id_4f01e865_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
843
829
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
|
|
844
830
|
style: (0,external_vue_.normalizeStyle)({
|
|
845
831
|
cursor: _ctx.active ? (_ctx.horizontal ? 'ns-resize' : 'ew-resize') : '',
|
|
@@ -867,7 +853,7 @@ function ld_splittervue_type_template_id_c282e58e_scoped_true_render(_ctx, _cach
|
|
|
867
853
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.onClick && _ctx.onClick(...args))),
|
|
868
854
|
onTouchstart: _cache[1] || (_cache[1] = (0,external_vue_.withModifiers)((...args) => (_ctx.onDown && _ctx.onDown(...args)), ["prevent"])),
|
|
869
855
|
onMousedown: _cache[2] || (_cache[2] = (...args) => (_ctx.onDown && _ctx.onDown(...args)))
|
|
870
|
-
},
|
|
856
|
+
}, ld_splittervue_type_template_id_4f01e865_scoped_true_hoisted_2, 38), [
|
|
871
857
|
[external_vue_.vShow, _ctx.leftVisibled && _ctx.rightVisibled]
|
|
872
858
|
]),
|
|
873
859
|
(0,external_vue_.createTextVNode)(),
|
|
@@ -881,7 +867,7 @@ function ld_splittervue_type_template_id_c282e58e_scoped_true_render(_ctx, _cach
|
|
|
881
867
|
])
|
|
882
868
|
], 38))
|
|
883
869
|
}
|
|
884
|
-
;// CONCATENATED MODULE: ./src/ld-splitter/ld-splitter.vue?vue&type=template&id=
|
|
870
|
+
;// CONCATENATED MODULE: ./src/ld-splitter/ld-splitter.vue?vue&type=template&id=4f01e865&scoped=true
|
|
885
871
|
|
|
886
872
|
;// CONCATENATED MODULE: ./node_modules/lodash-es/isObject.js
|
|
887
873
|
/**
|
|
@@ -1607,7 +1593,7 @@ SplitterComponent = ld_splittervue_type_script_lang_js_external_decorate([
|
|
|
1607
1593
|
;
|
|
1608
1594
|
|
|
1609
1595
|
|
|
1610
|
-
const ld_splitter_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_splittervue_type_script_lang_js_external, [['render',
|
|
1596
|
+
const ld_splitter_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_splittervue_type_script_lang_js_external, [['render',ld_splittervue_type_template_id_4f01e865_scoped_true_render],['__scopeId',"data-v-4f01e865"]])
|
|
1611
1597
|
|
|
1612
1598
|
/* harmony default export */ const ld_splitter = (ld_splitter_exports_);
|
|
1613
1599
|
;// CONCATENATED MODULE: ./src/ld-splitter/index.ts
|
|
@@ -2548,7 +2534,6 @@ class ValidatableMixin extends external_vue_property_decorator_.Vue {
|
|
|
2548
2534
|
super(...arguments);
|
|
2549
2535
|
this.myRules = [];
|
|
2550
2536
|
this.validationMessage = '';
|
|
2551
|
-
this.errorBucket = [];
|
|
2552
2537
|
this.uid = uidGen(6, '0-9');
|
|
2553
2538
|
}
|
|
2554
2539
|
onRulesChanged(newVal) {
|
|
@@ -2954,15 +2939,15 @@ function ld_edit_text_reg(vue, options) {
|
|
|
2954
2939
|
}
|
|
2955
2940
|
/* harmony default export */ const src_ld_edit_text = (ld_edit_text_reg);
|
|
2956
2941
|
|
|
2957
|
-
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=
|
|
2942
|
+
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=b65d2d3a&scoped=true
|
|
2958
2943
|
|
|
2959
2944
|
|
|
2960
|
-
const
|
|
2961
|
-
const
|
|
2962
|
-
const
|
|
2963
|
-
const
|
|
2945
|
+
const ld_datepickervue_type_template_id_b65d2d3a_scoped_true_withScopeId = n => (_pushScopeId("data-v-b65d2d3a"),n=n(),_popScopeId(),n)
|
|
2946
|
+
const ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_1 = { class: "time-selector" }
|
|
2947
|
+
const ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_2 = { key: 0 }
|
|
2948
|
+
const ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_3 = { key: 1 }
|
|
2964
2949
|
|
|
2965
|
-
function
|
|
2950
|
+
function ld_datepickervue_type_template_id_b65d2d3a_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2966
2951
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label")
|
|
2967
2952
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon")
|
|
2968
2953
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button")
|
|
@@ -2975,10 +2960,7 @@ function ld_datepickervue_type_template_id_602bf8e3_scoped_true_render(_ctx, _ca
|
|
|
2975
2960
|
|
|
2976
2961
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_container, { class: "pa-0 ld-datepicker flex-column" }, {
|
|
2977
2962
|
default: (0,external_vue_.withCtx)(() => [
|
|
2978
|
-
(0,external_vue_.createVNode)(_component_v_row, {
|
|
2979
|
-
"no-gutters": "",
|
|
2980
|
-
style: {"height":"var(--input-height)"}
|
|
2981
|
-
}, {
|
|
2963
|
+
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
2982
2964
|
default: (0,external_vue_.withCtx)(() => [
|
|
2983
2965
|
(_ctx.label)
|
|
2984
2966
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
|
|
@@ -3171,13 +3153,13 @@ function ld_datepickervue_type_template_id_602bf8e3_scoped_true_render(_ctx, _ca
|
|
|
3171
3153
|
style: {"border":"1px solid var(--grey-l-5)"}
|
|
3172
3154
|
}, {
|
|
3173
3155
|
default: (0,external_vue_.withCtx)(() => [
|
|
3174
|
-
(0,external_vue_.createElementVNode)("div",
|
|
3156
|
+
(0,external_vue_.createElementVNode)("div", ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_1, [
|
|
3175
3157
|
(_ctx.isHours)
|
|
3176
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
3158
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_2, "Часы"))
|
|
3177
3159
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
3178
3160
|
(0,external_vue_.createTextVNode)(),
|
|
3179
3161
|
(_ctx.isMinutes)
|
|
3180
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
3162
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_3, "Минуты"))
|
|
3181
3163
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
3182
3164
|
(0,external_vue_.createTextVNode)(),
|
|
3183
3165
|
(0,external_vue_.createElementVNode)("div", null, [
|
|
@@ -3240,51 +3222,44 @@ function ld_datepickervue_type_template_id_602bf8e3_scoped_true_render(_ctx, _ca
|
|
|
3240
3222
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
3241
3223
|
]),
|
|
3242
3224
|
_: 1
|
|
3243
|
-
})
|
|
3244
|
-
]),
|
|
3245
|
-
_: 1
|
|
3246
|
-
}, 8, ["class"])
|
|
3247
|
-
]),
|
|
3248
|
-
_: 1
|
|
3249
|
-
}),
|
|
3250
|
-
(0,external_vue_.createTextVNode)(),
|
|
3251
|
-
(!_ctx.hideDetails)
|
|
3252
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_row, {
|
|
3253
|
-
key: 0,
|
|
3254
|
-
"no-gutters": "",
|
|
3255
|
-
class: "ld-datepicker-validate"
|
|
3256
|
-
}, {
|
|
3257
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
3258
|
-
(_ctx.label)
|
|
3259
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_col, {
|
|
3260
|
-
key: 0,
|
|
3261
|
-
class: (0,external_vue_.normalizeClass)(["pr-2", _ctx.labelSizeClasses])
|
|
3262
|
-
}, null, 8, ["class"]))
|
|
3263
|
-
: (0,external_vue_.createCommentVNode)("", true),
|
|
3225
|
+
}),
|
|
3264
3226
|
(0,external_vue_.createTextVNode)(),
|
|
3265
|
-
(
|
|
3266
|
-
|
|
3267
|
-
|
|
3227
|
+
(!_ctx.hideDetails)
|
|
3228
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_row, {
|
|
3229
|
+
key: 0,
|
|
3230
|
+
"no-gutters": "",
|
|
3231
|
+
class: "ld-datepicker-validate"
|
|
3232
|
+
}, {
|
|
3268
3233
|
default: (0,external_vue_.withCtx)(() => [
|
|
3269
|
-
(0,external_vue_.
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3234
|
+
(0,external_vue_.createVNode)(_component_v_col, null, {
|
|
3235
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
3236
|
+
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
3237
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
3238
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
3239
|
+
style: {"line-height":"12px","font-size":"var(--font-size--1)"},
|
|
3240
|
+
class: (0,external_vue_.normalizeClass)({ 'error--text': _ctx.warningHint })
|
|
3241
|
+
}, (0,external_vue_.toDisplayString)(_ctx.validationMessage || _ctx.inputHint), 3)
|
|
3242
|
+
]),
|
|
3243
|
+
_: 1
|
|
3244
|
+
})
|
|
3245
|
+
]),
|
|
3246
|
+
_: 1
|
|
3247
|
+
})
|
|
3273
3248
|
]),
|
|
3274
3249
|
_: 1
|
|
3275
|
-
})
|
|
3276
|
-
|
|
3277
|
-
_: 1
|
|
3278
|
-
})
|
|
3250
|
+
}))
|
|
3251
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
3279
3252
|
]),
|
|
3280
3253
|
_: 1
|
|
3281
|
-
})
|
|
3282
|
-
|
|
3254
|
+
}, 8, ["class"])
|
|
3255
|
+
]),
|
|
3256
|
+
_: 1
|
|
3257
|
+
})
|
|
3283
3258
|
]),
|
|
3284
3259
|
_: 1
|
|
3285
3260
|
}))
|
|
3286
3261
|
}
|
|
3287
|
-
;// CONCATENATED MODULE: ./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=
|
|
3262
|
+
;// CONCATENATED MODULE: ./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=b65d2d3a&scoped=true
|
|
3288
3263
|
|
|
3289
3264
|
// EXTERNAL MODULE: external "imask"
|
|
3290
3265
|
var external_imask_ = __webpack_require__(5467);
|
|
@@ -3332,8 +3307,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
3332
3307
|
this.dateMenu = false;
|
|
3333
3308
|
this.timeMenu = false;
|
|
3334
3309
|
this.event = null;
|
|
3335
|
-
this.validationMesssage = '';
|
|
3336
|
-
this.errorBucket = [];
|
|
3337
3310
|
this.errorsHandler = [];
|
|
3338
3311
|
this.isHours = true;
|
|
3339
3312
|
this.isMinutes = false;
|
|
@@ -3410,7 +3383,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
3410
3383
|
if (this.form) {
|
|
3411
3384
|
this.form.register(this, null);
|
|
3412
3385
|
}
|
|
3413
|
-
this.fullErrorBucket();
|
|
3414
3386
|
}
|
|
3415
3387
|
unmounted() {
|
|
3416
3388
|
window.removeEventListener('wheel', this.datepickerScrollHandler);
|
|
@@ -3695,29 +3667,16 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
3695
3667
|
dt.setSeconds(0);
|
|
3696
3668
|
this.emitInput(dt);
|
|
3697
3669
|
}
|
|
3698
|
-
/** Функции, отвечающие за работу валидации */
|
|
3699
3670
|
validate() {
|
|
3700
|
-
this.errorBucket = [];
|
|
3701
|
-
let funcResult = null;
|
|
3702
|
-
this.validationMesssage = '';
|
|
3703
|
-
this.validRules.forEach(func => {
|
|
3704
|
-
funcResult = func(this.date);
|
|
3705
|
-
if (funcResult !== true) {
|
|
3706
|
-
this.validationMesssage = funcResult;
|
|
3707
|
-
this.errorBucket.push(funcResult);
|
|
3708
|
-
}
|
|
3709
|
-
});
|
|
3710
|
-
return !this.validationMesssage;
|
|
3711
|
-
}
|
|
3712
|
-
fullErrorBucket() {
|
|
3713
|
-
this.errorBucket = [];
|
|
3714
3671
|
let funcResult = null;
|
|
3672
|
+
this.validationMessage = '';
|
|
3715
3673
|
this.validRules.forEach(func => {
|
|
3716
3674
|
funcResult = func(this.date);
|
|
3717
3675
|
if (funcResult !== true) {
|
|
3718
|
-
this.
|
|
3676
|
+
this.validationMessage = funcResult;
|
|
3719
3677
|
}
|
|
3720
3678
|
});
|
|
3679
|
+
return !this.validationMessage;
|
|
3721
3680
|
}
|
|
3722
3681
|
async setTimeMask() {
|
|
3723
3682
|
if (this.isMobileGlobal) {
|
|
@@ -3862,7 +3821,7 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
3862
3821
|
return Number(this.tabIndex) + 1;
|
|
3863
3822
|
}
|
|
3864
3823
|
get warningHint() {
|
|
3865
|
-
return Boolean(this.
|
|
3824
|
+
return Boolean(this.validationMessage) || this.errorsHandler.length > 0;
|
|
3866
3825
|
}
|
|
3867
3826
|
get inputClasses() {
|
|
3868
3827
|
return this.dateonly ? this.inputSizeClasses : null;
|
|
@@ -3978,7 +3937,7 @@ DatepickerComponent = ld_datepickervue_type_script_lang_js_external_decorate([
|
|
|
3978
3937
|
;
|
|
3979
3938
|
|
|
3980
3939
|
|
|
3981
|
-
const ld_datepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_datepickervue_type_script_lang_js_external, [['render',
|
|
3940
|
+
const ld_datepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_datepickervue_type_script_lang_js_external, [['render',ld_datepickervue_type_template_id_b65d2d3a_scoped_true_render],['__scopeId',"data-v-b65d2d3a"]])
|
|
3982
3941
|
|
|
3983
3942
|
/* harmony default export */ const ld_datepicker = (ld_datepicker_exports_);
|
|
3984
3943
|
;// CONCATENATED MODULE: ./src/ld-datepicker/index.ts
|
|
@@ -4517,33 +4476,33 @@ function ld_page_toolbar_reg(vue, options) {
|
|
|
4517
4476
|
}
|
|
4518
4477
|
/* harmony default export */ const src_ld_page_toolbar = (ld_page_toolbar_reg);
|
|
4519
4478
|
|
|
4520
|
-
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=
|
|
4479
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=f07bf04a&scoped=true&ts=true
|
|
4521
4480
|
|
|
4522
|
-
const
|
|
4523
|
-
const
|
|
4524
|
-
const
|
|
4481
|
+
const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-f07bf04a"), n = n(), _popScopeId(), n);
|
|
4482
|
+
const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_1 = { class: "text-crop" };
|
|
4483
|
+
const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_2 = {
|
|
4525
4484
|
key: 0,
|
|
4526
4485
|
class: "d-flex align-center"
|
|
4527
4486
|
};
|
|
4528
|
-
const
|
|
4529
|
-
const
|
|
4487
|
+
const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_3 = { class: "d-flex flex-column justify-center" };
|
|
4488
|
+
const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_4 = {
|
|
4530
4489
|
key: 0,
|
|
4531
4490
|
class: "grey--text",
|
|
4532
4491
|
style: { "font-size": "var(--font-size--1)" }
|
|
4533
4492
|
};
|
|
4534
|
-
const
|
|
4535
|
-
key:
|
|
4536
|
-
class: "select-list-
|
|
4493
|
+
const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_5 = {
|
|
4494
|
+
key: 1,
|
|
4495
|
+
class: "select-list-box-loading"
|
|
4537
4496
|
};
|
|
4538
|
-
const
|
|
4497
|
+
const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_6 = {
|
|
4539
4498
|
key: 0,
|
|
4540
|
-
class: "select-list-
|
|
4499
|
+
class: "select-list-box-validate"
|
|
4541
4500
|
};
|
|
4542
4501
|
const _hoisted_7 = {
|
|
4543
4502
|
key: 0,
|
|
4544
4503
|
class: "select-list-textbox-validate"
|
|
4545
4504
|
};
|
|
4546
|
-
function
|
|
4505
|
+
function ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4547
4506
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
4548
4507
|
const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
|
|
4549
4508
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
@@ -4610,7 +4569,11 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
|
|
|
4610
4569
|
onSearchChange: _ctx.getItems
|
|
4611
4570
|
}, {
|
|
4612
4571
|
tag: (0,external_vue_.withCtx)(({ option }) => [
|
|
4613
|
-
(0,external_vue_.renderSlot)(_ctx.$slots, "tag", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({
|
|
4572
|
+
(0,external_vue_.renderSlot)(_ctx.$slots, "tag", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({
|
|
4573
|
+
item: option,
|
|
4574
|
+
onRemove: _ctx.onRemoveItem,
|
|
4575
|
+
canRemove: _ctx.canRemove,
|
|
4576
|
+
})), () => [
|
|
4614
4577
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_chip, {
|
|
4615
4578
|
key: JSON.stringify(option),
|
|
4616
4579
|
color: _ctx.disabled ? 'grey' : 'primary',
|
|
@@ -4618,7 +4581,7 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
|
|
|
4618
4581
|
"onClick:close": ($event) => (_ctx.onRemoveItem(option))
|
|
4619
4582
|
}, {
|
|
4620
4583
|
default: (0,external_vue_.withCtx)(() => [
|
|
4621
|
-
(0,external_vue_.createElementVNode)("span",
|
|
4584
|
+
(0,external_vue_.createElementVNode)("span", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_1, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
|
|
4622
4585
|
]),
|
|
4623
4586
|
_: 2
|
|
4624
4587
|
}, 1032, ["color", "closable", "onClick:close"]))
|
|
@@ -4633,7 +4596,7 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
|
|
|
4633
4596
|
(0,external_vue_.createVNode)(_component_v_col, { class: "d-flex align-center" }, {
|
|
4634
4597
|
default: (0,external_vue_.withCtx)(() => [
|
|
4635
4598
|
(_ctx.multiselect)
|
|
4636
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
4599
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_2, [
|
|
4637
4600
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-checkbox']), {
|
|
4638
4601
|
key: JSON.stringify(option),
|
|
4639
4602
|
"model-value": _ctx.checkedItems,
|
|
@@ -4648,13 +4611,13 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
|
|
|
4648
4611
|
}, [
|
|
4649
4612
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option-icon", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), undefined, true),
|
|
4650
4613
|
(0,external_vue_.createTextVNode)(),
|
|
4651
|
-
(0,external_vue_.createElementVNode)("div",
|
|
4614
|
+
(0,external_vue_.createElementVNode)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_3, [
|
|
4652
4615
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), () => [
|
|
4653
4616
|
(0,external_vue_.createElementVNode)("div", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, _ctx.itemTitle)), 1)
|
|
4654
4617
|
], true),
|
|
4655
4618
|
(0,external_vue_.createTextVNode)(),
|
|
4656
4619
|
(_ctx.optionHint)
|
|
4657
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
4620
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_4, [
|
|
4658
4621
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option-hint", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option })), () => [
|
|
4659
4622
|
(0,external_vue_.createTextVNode)("\r\n no slot \"option-hint\" found\r\n ")
|
|
4660
4623
|
], true)
|
|
@@ -4675,29 +4638,32 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
|
|
|
4675
4638
|
_: 3
|
|
4676
4639
|
}, 8, ["modelValue", "multiple", "placeholder", "options", "internal-search", "close-on-select", "disabled", "limit", "tabindex", "allowEmpty", "onClose", "onSearchChange", "onUpdate:modelValue"]),
|
|
4677
4640
|
(0,external_vue_.createTextVNode)(),
|
|
4678
|
-
(
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4641
|
+
(!_ctx.disableDialog)
|
|
4642
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
4643
|
+
key: 0,
|
|
4644
|
+
variant: "outlined",
|
|
4645
|
+
id: "selectButton",
|
|
4646
|
+
color: "grey",
|
|
4647
|
+
disabled: _ctx.readonly || _ctx.disabled,
|
|
4648
|
+
loading: _ctx.loading,
|
|
4649
|
+
onClick: _ctx.onSelect
|
|
4650
|
+
}, {
|
|
4651
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
4652
|
+
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), {
|
|
4653
|
+
color: _ctx.validationMessage && !_ctx.readonly && !_ctx.disabled ? 'error' : 'grey'
|
|
4654
|
+
}, {
|
|
4655
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
4656
|
+
(0,external_vue_.createTextVNode)((0,external_vue_.toDisplayString)(_ctx.icon), 1)
|
|
4657
|
+
]),
|
|
4658
|
+
_: 1
|
|
4659
|
+
}, 8, ["color"]))
|
|
4660
|
+
]),
|
|
4661
|
+
_: 1
|
|
4662
|
+
}, 8, ["disabled", "loading", "onClick"]))
|
|
4663
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
4698
4664
|
(0,external_vue_.createTextVNode)(),
|
|
4699
4665
|
(_ctx.loading)
|
|
4700
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
4666
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_5))
|
|
4701
4667
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
4702
4668
|
]),
|
|
4703
4669
|
_: 3
|
|
@@ -4707,7 +4673,7 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
|
|
|
4707
4673
|
}),
|
|
4708
4674
|
(0,external_vue_.createTextVNode)(),
|
|
4709
4675
|
(!_ctx.hideDetails)
|
|
4710
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
4676
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_6, [
|
|
4711
4677
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
4712
4678
|
default: (0,external_vue_.withCtx)(() => [
|
|
4713
4679
|
(_ctx.showHint)
|
|
@@ -4759,11 +4725,52 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
|
|
|
4759
4725
|
}));
|
|
4760
4726
|
}
|
|
4761
4727
|
|
|
4762
|
-
;// CONCATENATED MODULE: ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=
|
|
4728
|
+
;// CONCATENATED MODULE: ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=f07bf04a&scoped=true&ts=true
|
|
4763
4729
|
|
|
4764
4730
|
// EXTERNAL MODULE: external "./multiselect.js"
|
|
4765
4731
|
var external_multiselect_js_ = __webpack_require__(9225);
|
|
4766
4732
|
var external_multiselect_js_default = /*#__PURE__*/__webpack_require__.n(external_multiselect_js_);
|
|
4733
|
+
// EXTERNAL MODULE: external "./floating.js"
|
|
4734
|
+
var external_floating_js_ = __webpack_require__(3654);
|
|
4735
|
+
;// CONCATENATED MODULE: ./src/mixins/floatingUI.mixin.ts
|
|
4736
|
+
|
|
4737
|
+
|
|
4738
|
+
class FloatingUI extends external_vue_class_component_.Vue {
|
|
4739
|
+
mounted() {
|
|
4740
|
+
this.addPosWatcher();
|
|
4741
|
+
}
|
|
4742
|
+
beforeUnmount() {
|
|
4743
|
+
this.removePosWatcher();
|
|
4744
|
+
}
|
|
4745
|
+
addPosWatcher() {
|
|
4746
|
+
const referenceEl = this.$refs.multiselect.$el;
|
|
4747
|
+
const dropdownEl = referenceEl.querySelector('.multiselect__content-wrapper');
|
|
4748
|
+
if (!dropdownEl || !referenceEl || !window.ResizeObserver) {
|
|
4749
|
+
return;
|
|
4750
|
+
}
|
|
4751
|
+
FloatingUI.CleanupPosWatcher = (0,external_floating_js_.autoUpdate)(referenceEl, dropdownEl, async () => {
|
|
4752
|
+
const { y, strategy } = await (0,external_floating_js_.computePosition)(referenceEl, dropdownEl, {
|
|
4753
|
+
strategy: 'fixed',
|
|
4754
|
+
middleware: [
|
|
4755
|
+
(0,external_floating_js_.autoPlacement)({
|
|
4756
|
+
allowedPlacements: ['top', 'bottom'],
|
|
4757
|
+
}),
|
|
4758
|
+
],
|
|
4759
|
+
});
|
|
4760
|
+
dropdownEl.style.position = strategy;
|
|
4761
|
+
dropdownEl.style.top = `${y}px`;
|
|
4762
|
+
dropdownEl.style.maxWidth = `${referenceEl.clientWidth}px`;
|
|
4763
|
+
});
|
|
4764
|
+
}
|
|
4765
|
+
removePosWatcher() {
|
|
4766
|
+
if (FloatingUI.CleanupPosWatcher) {
|
|
4767
|
+
FloatingUI.CleanupPosWatcher();
|
|
4768
|
+
}
|
|
4769
|
+
FloatingUI.CleanupPosWatcher = null;
|
|
4770
|
+
}
|
|
4771
|
+
}
|
|
4772
|
+
FloatingUI.CleanupPosWatcher = null;
|
|
4773
|
+
|
|
4767
4774
|
;// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheClear.js
|
|
4768
4775
|
/**
|
|
4769
4776
|
* Removes all key-value entries from the list cache.
|
|
@@ -7049,52 +7056,6 @@ function isEqual(value, other) {
|
|
|
7049
7056
|
|
|
7050
7057
|
/* harmony default export */ const lodash_es_isEqual = (isEqual);
|
|
7051
7058
|
|
|
7052
|
-
// EXTERNAL MODULE: external "./floating.js"
|
|
7053
|
-
var external_floating_js_ = __webpack_require__(3654);
|
|
7054
|
-
;// CONCATENATED MODULE: ./src/ld-select-list-box/floatingUI.mixin.ts
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
class FloatingUI extends external_vue_class_component_.Vue {
|
|
7058
|
-
constructor() {
|
|
7059
|
-
super(...arguments);
|
|
7060
|
-
this.cleanupPosWatcher = null;
|
|
7061
|
-
}
|
|
7062
|
-
mounted() {
|
|
7063
|
-
this.addPosWatcher();
|
|
7064
|
-
}
|
|
7065
|
-
beforeUnmount() {
|
|
7066
|
-
this.removePosWatcher();
|
|
7067
|
-
}
|
|
7068
|
-
addPosWatcher() {
|
|
7069
|
-
const referenceEl = this.$refs.multiselect.$el;
|
|
7070
|
-
const dropdownEl = referenceEl.querySelector('.multiselect__content-wrapper');
|
|
7071
|
-
if (!dropdownEl || !referenceEl || !window.ResizeObserver) {
|
|
7072
|
-
return;
|
|
7073
|
-
}
|
|
7074
|
-
this.cleanupPosWatcher = (0,external_floating_js_.autoUpdate)(referenceEl, dropdownEl, async () => {
|
|
7075
|
-
const { y, strategy } = await (0,external_floating_js_.computePosition)(referenceEl, dropdownEl, {
|
|
7076
|
-
strategy: 'fixed',
|
|
7077
|
-
middleware: [
|
|
7078
|
-
(0,external_floating_js_.autoPlacement)({
|
|
7079
|
-
allowedPlacements: ['top', 'bottom'],
|
|
7080
|
-
}),
|
|
7081
|
-
],
|
|
7082
|
-
});
|
|
7083
|
-
Object.assign(dropdownEl.style, {
|
|
7084
|
-
top: `${y}px`,
|
|
7085
|
-
position: strategy,
|
|
7086
|
-
'max-width': `${referenceEl.clientWidth}px`,
|
|
7087
|
-
});
|
|
7088
|
-
});
|
|
7089
|
-
}
|
|
7090
|
-
removePosWatcher() {
|
|
7091
|
-
if (this.cleanupPosWatcher) {
|
|
7092
|
-
this.cleanupPosWatcher();
|
|
7093
|
-
}
|
|
7094
|
-
this.cleanupPosWatcher = null;
|
|
7095
|
-
}
|
|
7096
|
-
}
|
|
7097
|
-
|
|
7098
7059
|
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-select-list-box/ld-select-list-box.ts?vue&type=script&lang=ts&external
|
|
7099
7060
|
var ld_select_list_boxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7100
7061
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -7184,15 +7145,6 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7184
7145
|
this.loading = false;
|
|
7185
7146
|
}
|
|
7186
7147
|
}
|
|
7187
|
-
async onShowInputChange(newVal) {
|
|
7188
|
-
if (newVal && !this.cleanupPosWatcher) {
|
|
7189
|
-
await this.$nextTick();
|
|
7190
|
-
this.addPosWatcher();
|
|
7191
|
-
}
|
|
7192
|
-
else {
|
|
7193
|
-
this.removePosWatcher();
|
|
7194
|
-
}
|
|
7195
|
-
}
|
|
7196
7148
|
created() {
|
|
7197
7149
|
this.messagesBucket = {
|
|
7198
7150
|
...this.messagesBucket,
|
|
@@ -7203,7 +7155,6 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7203
7155
|
if (this.form) {
|
|
7204
7156
|
this.form.register(this, null);
|
|
7205
7157
|
}
|
|
7206
|
-
this.fullErrorBucket();
|
|
7207
7158
|
}
|
|
7208
7159
|
mounted() {
|
|
7209
7160
|
if (this.autofocus) {
|
|
@@ -7236,6 +7187,9 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7236
7187
|
}
|
|
7237
7188
|
}
|
|
7238
7189
|
else {
|
|
7190
|
+
if (!this.hasItems) {
|
|
7191
|
+
await this.fetchData();
|
|
7192
|
+
}
|
|
7239
7193
|
this.optionsList = this.filterOptions(searchTerm);
|
|
7240
7194
|
}
|
|
7241
7195
|
}
|
|
@@ -7255,7 +7209,7 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7255
7209
|
}
|
|
7256
7210
|
}
|
|
7257
7211
|
validate() {
|
|
7258
|
-
this.
|
|
7212
|
+
this.validationMessage = '';
|
|
7259
7213
|
let funcResult = true;
|
|
7260
7214
|
if (this.required) {
|
|
7261
7215
|
funcResult = requiredRule()(this.selectedToArray);
|
|
@@ -7268,27 +7222,18 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7268
7222
|
funcResult = func(this.selectedToArray);
|
|
7269
7223
|
if (funcResult !== true) {
|
|
7270
7224
|
this.validationMessage = funcResult;
|
|
7271
|
-
if (!this.selected)
|
|
7272
|
-
this.errorBucket.push(funcResult);
|
|
7273
7225
|
}
|
|
7274
7226
|
});
|
|
7275
7227
|
return !this.validationMessage;
|
|
7276
7228
|
}
|
|
7277
|
-
fullErrorBucket() {
|
|
7278
|
-
this.errorBucket = [];
|
|
7279
|
-
let funcResult = null;
|
|
7280
|
-
this.validRules.forEach(func => {
|
|
7281
|
-
funcResult = func(this.selectedToArray);
|
|
7282
|
-
if (funcResult !== true) {
|
|
7283
|
-
this.errorBucket.push(funcResult);
|
|
7284
|
-
}
|
|
7285
|
-
});
|
|
7286
|
-
}
|
|
7287
7229
|
onInput() {
|
|
7288
7230
|
this.$nextTick(() => {
|
|
7289
7231
|
this.checkedItems = [...this.selectedIds];
|
|
7290
7232
|
});
|
|
7291
7233
|
this.emitUpdate();
|
|
7234
|
+
if (this.required) {
|
|
7235
|
+
this.validate();
|
|
7236
|
+
}
|
|
7292
7237
|
}
|
|
7293
7238
|
onCheckItem(checked, item) {
|
|
7294
7239
|
if (Array.isArray(this.selected)) {
|
|
@@ -7320,6 +7265,9 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7320
7265
|
this.readedItems = await this.handlers.fetchData();
|
|
7321
7266
|
}
|
|
7322
7267
|
}
|
|
7268
|
+
get hasItems() {
|
|
7269
|
+
return this.readedItems.length > 0;
|
|
7270
|
+
}
|
|
7323
7271
|
get showHint() {
|
|
7324
7272
|
return this.validationMessage || Boolean(this.inputHint && this.persistentHint);
|
|
7325
7273
|
}
|
|
@@ -7333,7 +7281,7 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7333
7281
|
return this.validationMessage ? this.validationMessage : this.inputHint;
|
|
7334
7282
|
}
|
|
7335
7283
|
get hasError() {
|
|
7336
|
-
return Boolean(this.validationMessage)
|
|
7284
|
+
return Boolean(this.validationMessage);
|
|
7337
7285
|
}
|
|
7338
7286
|
get singeItem() {
|
|
7339
7287
|
return this.toSingleItem(this.selected);
|
|
@@ -7347,9 +7295,6 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7347
7295
|
}
|
|
7348
7296
|
return this.selectedToArray.map(item => this.itemIdentity(item));
|
|
7349
7297
|
}
|
|
7350
|
-
get showInput() {
|
|
7351
|
-
return this.multiselect || !this.selectedIds.length;
|
|
7352
|
-
}
|
|
7353
7298
|
get canRemove() {
|
|
7354
7299
|
const result = !this.readonly && !this.disabled;
|
|
7355
7300
|
if (!result) {
|
|
@@ -7448,10 +7393,6 @@ ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
|
7448
7393
|
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
|
|
7449
7394
|
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
7450
7395
|
], SelectListBoxComponent.prototype, "allowEmpty", void 0);
|
|
7451
|
-
ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
7452
|
-
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
7453
|
-
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
7454
|
-
], SelectListBoxComponent.prototype, "setFocus", void 0);
|
|
7455
7396
|
ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
7456
7397
|
(0,external_vue_property_decorator_.Prop)({ default: () => ({}) }),
|
|
7457
7398
|
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
@@ -7496,12 +7437,6 @@ ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
|
7496
7437
|
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
7497
7438
|
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:returntype", Promise)
|
|
7498
7439
|
], SelectListBoxComponent.prototype, "onValueChanged", null);
|
|
7499
|
-
ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
7500
|
-
(0,external_vue_property_decorator_.Watch)('showInput'),
|
|
7501
|
-
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
7502
|
-
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:paramtypes", [Boolean]),
|
|
7503
|
-
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:returntype", Promise)
|
|
7504
|
-
], SelectListBoxComponent.prototype, "onShowInputChange", null);
|
|
7505
7440
|
SelectListBoxComponent = ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
7506
7441
|
(0,external_vue_property_decorator_.Options)({
|
|
7507
7442
|
components: {
|
|
@@ -7522,7 +7457,7 @@ SelectListBoxComponent = ld_select_list_boxvue_type_script_lang_ts_external_deco
|
|
|
7522
7457
|
;
|
|
7523
7458
|
|
|
7524
7459
|
|
|
7525
|
-
const ld_select_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_select_list_boxvue_type_script_lang_ts_external, [['render',
|
|
7460
|
+
const ld_select_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_select_list_boxvue_type_script_lang_ts_external, [['render',ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_render],['__scopeId',"data-v-f07bf04a"]])
|
|
7526
7461
|
|
|
7527
7462
|
/* harmony default export */ const ld_select_list_box = (ld_select_list_box_exports_);
|
|
7528
7463
|
;// CONCATENATED MODULE: ./src/ld-select-list-box/index.ts
|
|
@@ -7791,20 +7726,20 @@ function ld_checkbox_reg(vue, options) {
|
|
|
7791
7726
|
}
|
|
7792
7727
|
/* harmony default export */ const src_ld_checkbox = (ld_checkbox_reg);
|
|
7793
7728
|
|
|
7794
|
-
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-radiobutton/ld-radiobutton.vue?vue&type=template&id=
|
|
7729
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-radiobutton/ld-radiobutton.vue?vue&type=template&id=2d8a7abd&scoped=true&ts=true
|
|
7795
7730
|
|
|
7796
|
-
const
|
|
7797
|
-
const
|
|
7731
|
+
const ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-2d8a7abd"), n = n(), _popScopeId(), n);
|
|
7732
|
+
const ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_1 = {
|
|
7798
7733
|
key: 1,
|
|
7799
7734
|
class: "text-color w-auto",
|
|
7800
7735
|
style: {}
|
|
7801
7736
|
};
|
|
7802
|
-
const
|
|
7737
|
+
const ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_2 = {
|
|
7803
7738
|
class: "mr-1 d-flex flex-grow-0 align-center",
|
|
7804
7739
|
style: { "max-width": "100%" }
|
|
7805
7740
|
};
|
|
7806
|
-
const
|
|
7807
|
-
function
|
|
7741
|
+
const ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_3 = ["value", "id", "disabled", "checked"];
|
|
7742
|
+
function ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7808
7743
|
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip");
|
|
7809
7744
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
|
|
7810
7745
|
class: (0,external_vue_.normalizeClass)(["ld-radiobutton", {
|
|
@@ -7833,15 +7768,15 @@ function ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_render(
|
|
|
7833
7768
|
]),
|
|
7834
7769
|
_: 1
|
|
7835
7770
|
}))
|
|
7836
|
-
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
7771
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_1, (0,external_vue_.toDisplayString)(_ctx.label), 1))
|
|
7837
7772
|
]),
|
|
7838
7773
|
(0,external_vue_.createTextVNode)(),
|
|
7839
|
-
(0,external_vue_.createElementVNode)("div",
|
|
7774
|
+
(0,external_vue_.createElementVNode)("div", ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_2, [
|
|
7840
7775
|
(0,external_vue_.createElementVNode)("input", {
|
|
7841
7776
|
ref: "radioInput",
|
|
7842
7777
|
type: "radio",
|
|
7843
7778
|
style: { "height": "var(--font-size)" },
|
|
7844
|
-
class: (0,external_vue_.normalizeClass)({ checked: _ctx.isActive }),
|
|
7779
|
+
class: (0,external_vue_.normalizeClass)({ checked: _ctx.isActive, 'cursor-pointer': !_ctx.isDisabled }),
|
|
7845
7780
|
value: _ctx.value,
|
|
7846
7781
|
id: `radiobutton-${_ctx.uid}`,
|
|
7847
7782
|
disabled: _ctx.isDisabled,
|
|
@@ -7850,12 +7785,12 @@ function ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_render(
|
|
|
7850
7785
|
onBlur: _cache[2] || (_cache[2] =
|
|
7851
7786
|
//@ts-ignore
|
|
7852
7787
|
(...args) => (_ctx.emitBlur && _ctx.emitBlur(...args)))
|
|
7853
|
-
}, null, 42,
|
|
7788
|
+
}, null, 42, ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_3)
|
|
7854
7789
|
])
|
|
7855
7790
|
], 2));
|
|
7856
7791
|
}
|
|
7857
7792
|
|
|
7858
|
-
;// CONCATENATED MODULE: ./src/ld-radiobutton/ld-radiobutton.vue?vue&type=template&id=
|
|
7793
|
+
;// CONCATENATED MODULE: ./src/ld-radiobutton/ld-radiobutton.vue?vue&type=template&id=2d8a7abd&scoped=true&ts=true
|
|
7859
7794
|
|
|
7860
7795
|
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-radiobutton/ld-radiobutton.ts?vue&type=script&lang=ts&external
|
|
7861
7796
|
var ld_radiobuttonvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -7950,7 +7885,7 @@ ld_radiobuttonvue_type_script_lang_ts_external_decorate([
|
|
|
7950
7885
|
;
|
|
7951
7886
|
|
|
7952
7887
|
|
|
7953
|
-
const ld_radiobutton_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(RadiobuttonComponent, [['render',
|
|
7888
|
+
const ld_radiobutton_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(RadiobuttonComponent, [['render',ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_render],['__scopeId',"data-v-2d8a7abd"]])
|
|
7954
7889
|
|
|
7955
7890
|
/* harmony default export */ const ld_radiobutton = (ld_radiobutton_exports_);
|
|
7956
7891
|
;// CONCATENATED MODULE: ./src/ld-radiobutton/index.ts
|
|
@@ -7960,22 +7895,22 @@ function ld_radiobutton_reg(vue, options) {
|
|
|
7960
7895
|
}
|
|
7961
7896
|
/* harmony default export */ const src_ld_radiobutton = (ld_radiobutton_reg);
|
|
7962
7897
|
|
|
7963
|
-
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-radiogroup/ld-radiogroup.vue?vue&type=template&id=
|
|
7898
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-radiogroup/ld-radiogroup.vue?vue&type=template&id=1c1e9efc&scoped=true&ts=true
|
|
7964
7899
|
|
|
7965
|
-
const
|
|
7966
|
-
const
|
|
7900
|
+
const ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-1c1e9efc"), n = n(), _popScopeId(), n);
|
|
7901
|
+
const ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_1 = {
|
|
7967
7902
|
key: 1,
|
|
7968
7903
|
class: "d-flex flex-wrap"
|
|
7969
7904
|
};
|
|
7970
|
-
const
|
|
7905
|
+
const ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_2 = {
|
|
7971
7906
|
key: 2,
|
|
7972
7907
|
class: "validate"
|
|
7973
7908
|
};
|
|
7974
|
-
const
|
|
7909
|
+
const ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_3 = {
|
|
7975
7910
|
key: 0,
|
|
7976
7911
|
class: "error--text"
|
|
7977
7912
|
};
|
|
7978
|
-
function
|
|
7913
|
+
function ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7979
7914
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
7980
7915
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
7981
7916
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
@@ -8004,7 +7939,7 @@ function ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_render(_
|
|
|
8004
7939
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-radiobutton']), (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)(el)), null, 16));
|
|
8005
7940
|
}), 256))
|
|
8006
7941
|
], true)
|
|
8007
|
-
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
7942
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_1, [
|
|
8008
7943
|
(0,external_vue_.renderSlot)(_ctx.$slots, "default", {}, () => [
|
|
8009
7944
|
((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, null, (0,external_vue_.renderList)(_ctx.values, (el) => {
|
|
8010
7945
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-radiobutton']), (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)(el)), null, 16));
|
|
@@ -8013,11 +7948,11 @@ function ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_render(_
|
|
|
8013
7948
|
])),
|
|
8014
7949
|
(0,external_vue_.createTextVNode)(),
|
|
8015
7950
|
(!_ctx.hideDetails)
|
|
8016
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
7951
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_2, [
|
|
8017
7952
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
8018
7953
|
default: (0,external_vue_.withCtx)(() => [
|
|
8019
7954
|
(_ctx.hasError)
|
|
8020
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
7955
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.validationMessage), 1))
|
|
8021
7956
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
8022
7957
|
]),
|
|
8023
7958
|
_: 1
|
|
@@ -8032,7 +7967,7 @@ function ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_render(_
|
|
|
8032
7967
|
}, 8, ["class"]));
|
|
8033
7968
|
}
|
|
8034
7969
|
|
|
8035
|
-
;// CONCATENATED MODULE: ./src/ld-radiogroup/ld-radiogroup.vue?vue&type=template&id=
|
|
7970
|
+
;// CONCATENATED MODULE: ./src/ld-radiogroup/ld-radiogroup.vue?vue&type=template&id=1c1e9efc&scoped=true&ts=true
|
|
8036
7971
|
|
|
8037
7972
|
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-radiogroup/ld-radiogroup.ts?vue&type=script&lang=ts&external
|
|
8038
7973
|
var ld_radiogroupvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -8068,13 +8003,9 @@ let RadioGroupComponent = class RadioGroupComponent extends (0,external_vue_clas
|
|
|
8068
8003
|
disabled: this.disabled,
|
|
8069
8004
|
};
|
|
8070
8005
|
this.radiogroup = null;
|
|
8071
|
-
this.validationMessage = '';
|
|
8072
8006
|
this.radios = [];
|
|
8073
8007
|
this.internalValue = null;
|
|
8074
8008
|
this.hasInput = false;
|
|
8075
|
-
this.myRules = [];
|
|
8076
|
-
this.errorBucket = [];
|
|
8077
|
-
this.validationMesssage = '';
|
|
8078
8009
|
this.showInputHint = false;
|
|
8079
8010
|
}
|
|
8080
8011
|
emitUpdateModelValue(value) {
|
|
@@ -8105,7 +8036,6 @@ let RadioGroupComponent = class RadioGroupComponent extends (0,external_vue_clas
|
|
|
8105
8036
|
if (this.form) {
|
|
8106
8037
|
this.form.register(this, null);
|
|
8107
8038
|
}
|
|
8108
|
-
this.fullErrorBucket();
|
|
8109
8039
|
this.radiogroup = {
|
|
8110
8040
|
onRadioChange: () => {
|
|
8111
8041
|
this.emitUpdateModelValue(this.internalValue);
|
|
@@ -8143,14 +8073,12 @@ let RadioGroupComponent = class RadioGroupComponent extends (0,external_vue_clas
|
|
|
8143
8073
|
}
|
|
8144
8074
|
}
|
|
8145
8075
|
validate() {
|
|
8146
|
-
this.
|
|
8147
|
-
this.validationMesssage = '';
|
|
8076
|
+
this.validationMessage = '';
|
|
8148
8077
|
const validationResult = requiredRule()(String(this.modelValue));
|
|
8149
8078
|
if (validationResult !== true) {
|
|
8150
|
-
this.
|
|
8151
|
-
this.errorBucket.push(validationResult);
|
|
8079
|
+
this.validationMessage = validationResult;
|
|
8152
8080
|
}
|
|
8153
|
-
return !this.
|
|
8081
|
+
return !this.validationMessage;
|
|
8154
8082
|
}
|
|
8155
8083
|
setActiveRadio() {
|
|
8156
8084
|
for (let index = this.radios.length; --index >= 0; index) {
|
|
@@ -8162,18 +8090,11 @@ let RadioGroupComponent = class RadioGroupComponent extends (0,external_vue_clas
|
|
|
8162
8090
|
radio.isActive = this.internalValue == radio.value || lodash_es_isEqual(this.internalValue, radio.value);
|
|
8163
8091
|
}
|
|
8164
8092
|
}
|
|
8165
|
-
fullErrorBucket() {
|
|
8166
|
-
this.errorBucket = [];
|
|
8167
|
-
const validationResult = requiredRule()(this.modelValue);
|
|
8168
|
-
if (validationResult !== true) {
|
|
8169
|
-
this.errorBucket.push(validationResult);
|
|
8170
|
-
}
|
|
8171
|
-
}
|
|
8172
8093
|
get showHint() {
|
|
8173
|
-
return Boolean(this.
|
|
8094
|
+
return Boolean(this.validationMessage || (this.inputHint && this.showInputHint));
|
|
8174
8095
|
}
|
|
8175
8096
|
get hasError() {
|
|
8176
|
-
return Boolean(this.
|
|
8097
|
+
return Boolean(this.validationMessage);
|
|
8177
8098
|
}
|
|
8178
8099
|
};
|
|
8179
8100
|
ld_radiogroupvue_type_script_lang_ts_external_decorate([
|
|
@@ -8247,7 +8168,7 @@ RadioGroupComponent = ld_radiogroupvue_type_script_lang_ts_external_decorate([
|
|
|
8247
8168
|
;
|
|
8248
8169
|
|
|
8249
8170
|
|
|
8250
|
-
const ld_radiogroup_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_radiogroupvue_type_script_lang_ts_external, [['render',
|
|
8171
|
+
const ld_radiogroup_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_radiogroupvue_type_script_lang_ts_external, [['render',ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_render],['__scopeId',"data-v-1c1e9efc"]])
|
|
8251
8172
|
|
|
8252
8173
|
/* harmony default export */ const ld_radiogroup = (ld_radiogroup_exports_);
|
|
8253
8174
|
;// CONCATENATED MODULE: ./src/ld-radiogroup/index.ts
|
|
@@ -8497,17 +8418,17 @@ function ld_textarea_reg(vue, options) {
|
|
|
8497
8418
|
}
|
|
8498
8419
|
/* harmony default export */ const src_ld_textarea = (ld_textarea_reg);
|
|
8499
8420
|
|
|
8500
|
-
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-select/ld-select.vue?vue&type=template&id=
|
|
8421
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-select/ld-select.vue?vue&type=template&id=f3fdbf56&scoped=true&ts=true
|
|
8501
8422
|
|
|
8502
|
-
const
|
|
8503
|
-
const
|
|
8504
|
-
const
|
|
8423
|
+
const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-f3fdbf56"), n = n(), _popScopeId(), n);
|
|
8424
|
+
const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_1 = { class: "ld-select" };
|
|
8425
|
+
const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_2 = {
|
|
8505
8426
|
key: 1,
|
|
8506
8427
|
class: "text-crop"
|
|
8507
8428
|
};
|
|
8508
|
-
const
|
|
8509
|
-
const
|
|
8510
|
-
function
|
|
8429
|
+
const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_3 = { class: "justify mr-2 flex items-center" };
|
|
8430
|
+
const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_4 = ["checked"];
|
|
8431
|
+
function ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8511
8432
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
8512
8433
|
const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
|
|
8513
8434
|
const _component_v_icon = (0,external_vue_.resolveComponent)("v-icon");
|
|
@@ -8515,7 +8436,7 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
|
|
|
8515
8436
|
const _component_v_select = (0,external_vue_.resolveComponent)("v-select");
|
|
8516
8437
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
8517
8438
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
8518
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
8439
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_1, [
|
|
8519
8440
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
8520
8441
|
default: (0,external_vue_.withCtx)(() => [
|
|
8521
8442
|
(_ctx.label)
|
|
@@ -8529,7 +8450,7 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
|
|
|
8529
8450
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
8530
8451
|
(0,external_vue_.createTextVNode)(),
|
|
8531
8452
|
(0,external_vue_.createVNode)(_component_v_col, {
|
|
8532
|
-
class: (0,external_vue_.normalizeClass)([
|
|
8453
|
+
class: (0,external_vue_.normalizeClass)([_ctx.inputSizeClasses])
|
|
8533
8454
|
}, {
|
|
8534
8455
|
default: (0,external_vue_.withCtx)(() => [
|
|
8535
8456
|
(0,external_vue_.createVNode)(_component_v_select, {
|
|
@@ -8549,7 +8470,6 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
|
|
|
8549
8470
|
"error-messages": _ctx.validationMessage,
|
|
8550
8471
|
readonly: _ctx.readonly,
|
|
8551
8472
|
disabled: _ctx.disabled,
|
|
8552
|
-
"menu-icon": "arrow_drop_down",
|
|
8553
8473
|
onBlur: _ctx.onBlur,
|
|
8554
8474
|
onFocus: _ctx.onFocus
|
|
8555
8475
|
}, {
|
|
@@ -8583,7 +8503,7 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
|
|
|
8583
8503
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
8584
8504
|
], 64))
|
|
8585
8505
|
], 64))
|
|
8586
|
-
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
8506
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(item.title), 1))
|
|
8587
8507
|
]),
|
|
8588
8508
|
item: (0,external_vue_.withCtx)(({ item, props }) => [
|
|
8589
8509
|
(0,external_vue_.createVNode)(_component_v_list_item, (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)(props)), (0,external_vue_.createSlots)({ _: 2 }, [
|
|
@@ -8591,13 +8511,13 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
|
|
|
8591
8511
|
? {
|
|
8592
8512
|
name: "prepend",
|
|
8593
8513
|
fn: (0,external_vue_.withCtx)(() => [
|
|
8594
|
-
(0,external_vue_.createElementVNode)("label",
|
|
8514
|
+
(0,external_vue_.createElementVNode)("label", ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_3, [
|
|
8595
8515
|
(0,external_vue_.createElementVNode)("input", {
|
|
8596
8516
|
ref: "checkbox",
|
|
8597
8517
|
type: "checkbox",
|
|
8598
8518
|
class: "d-none",
|
|
8599
8519
|
checked: _ctx.itemSelected(item.raw)
|
|
8600
|
-
}, null, 8,
|
|
8520
|
+
}, null, 8, ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_4),
|
|
8601
8521
|
(0,external_vue_.createTextVNode)(),
|
|
8602
8522
|
(0,external_vue_.createVNode)(_component_v_icon, {
|
|
8603
8523
|
icon: "check",
|
|
@@ -8626,7 +8546,7 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
|
|
|
8626
8546
|
]));
|
|
8627
8547
|
}
|
|
8628
8548
|
|
|
8629
|
-
;// CONCATENATED MODULE: ./src/ld-select/ld-select.vue?vue&type=template&id=
|
|
8549
|
+
;// CONCATENATED MODULE: ./src/ld-select/ld-select.vue?vue&type=template&id=f3fdbf56&scoped=true&ts=true
|
|
8630
8550
|
|
|
8631
8551
|
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-select/ld-select.ts?vue&type=script&lang=ts&external
|
|
8632
8552
|
var ld_selectvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -8848,7 +8768,7 @@ SelectComponent = ld_selectvue_type_script_lang_ts_external_decorate([
|
|
|
8848
8768
|
;
|
|
8849
8769
|
|
|
8850
8770
|
|
|
8851
|
-
const ld_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_selectvue_type_script_lang_ts_external, [['render',
|
|
8771
|
+
const ld_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_selectvue_type_script_lang_ts_external, [['render',ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_render],['__scopeId',"data-v-f3fdbf56"]])
|
|
8852
8772
|
|
|
8853
8773
|
/* harmony default export */ const ld_select = (ld_select_exports_);
|
|
8854
8774
|
;// CONCATENATED MODULE: ./src/ld-select/index.ts
|
|
@@ -8858,32 +8778,1058 @@ function ld_select_reg(vue, options) {
|
|
|
8858
8778
|
}
|
|
8859
8779
|
/* harmony default export */ const src_ld_select = (ld_select_reg);
|
|
8860
8780
|
|
|
8861
|
-
;// CONCATENATED MODULE: ./src/
|
|
8862
|
-
|
|
8863
|
-
|
|
8781
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-combobox/ld-combobox.vue?vue&type=template&id=7bbbdbd8&scoped=true&ts=true
|
|
8782
|
+
|
|
8783
|
+
const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-7bbbdbd8"), n = n(), _popScopeId(), n);
|
|
8784
|
+
const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_1 = { class: "text-crop" };
|
|
8785
|
+
const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_2 = {
|
|
8786
|
+
key: 0,
|
|
8787
|
+
class: "d-flex align-center"
|
|
8788
|
+
};
|
|
8789
|
+
const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_3 = { class: "d-flex flex-column justify-center" };
|
|
8790
|
+
const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_4 = {
|
|
8791
|
+
key: 0,
|
|
8792
|
+
class: "grey--text",
|
|
8793
|
+
style: { "font-size": "var(--font-size--1)" }
|
|
8794
|
+
};
|
|
8795
|
+
const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_5 = {
|
|
8796
|
+
key: 0,
|
|
8797
|
+
class: "combobox-loading"
|
|
8798
|
+
};
|
|
8799
|
+
const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_6 = {
|
|
8800
|
+
key: 0,
|
|
8801
|
+
class: "combobox-validate"
|
|
8802
|
+
};
|
|
8803
|
+
function ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8804
|
+
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
8805
|
+
const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
|
|
8806
|
+
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
8807
|
+
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
8808
|
+
const _component_multiselect = (0,external_vue_.resolveComponent)("multiselect");
|
|
8809
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_row, {
|
|
8810
|
+
"no-gutters": "",
|
|
8811
|
+
class: "ld-combobox"
|
|
8812
|
+
}, {
|
|
8813
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8814
|
+
(_ctx.label)
|
|
8815
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
|
|
8816
|
+
key: 0,
|
|
8817
|
+
class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses]),
|
|
8818
|
+
label: _ctx.label,
|
|
8819
|
+
required: _ctx.required,
|
|
8820
|
+
"align-label-to-right": _ctx.alignLabelToRight
|
|
8821
|
+
}, null, 8, ["class", "label", "required", "align-label-to-right"]))
|
|
8822
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
8823
|
+
(0,external_vue_.createTextVNode)(),
|
|
8824
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
8825
|
+
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
8826
|
+
}, {
|
|
8827
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8828
|
+
(0,external_vue_.createVNode)(_component_v_row, {
|
|
8829
|
+
"no-gutters": "",
|
|
8830
|
+
style: { "border-radius": "var(--border-radius)", "overflow": "hidden" }
|
|
8831
|
+
}, {
|
|
8832
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8833
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
8834
|
+
class: "d-flex",
|
|
8835
|
+
style: { "position": "relative" }
|
|
8836
|
+
}, {
|
|
8837
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8838
|
+
(0,external_vue_.createVNode)(_component_multiselect, {
|
|
8839
|
+
ref: "multiselect",
|
|
8840
|
+
modelValue: _ctx.selected,
|
|
8841
|
+
"onUpdate:modelValue": [
|
|
8842
|
+
_cache[0] || (_cache[0] = ($event) => ((_ctx.selected) = $event)),
|
|
8843
|
+
_ctx.onInput
|
|
8844
|
+
],
|
|
8845
|
+
"track-by": "id",
|
|
8846
|
+
class: "multiselect--arrow",
|
|
8847
|
+
multiple: _ctx.multiselect,
|
|
8848
|
+
placeholder: _ctx.placeholder,
|
|
8849
|
+
"select-label": '',
|
|
8850
|
+
options: _ctx.optionsList,
|
|
8851
|
+
searchable: true,
|
|
8852
|
+
"internal-search": _ctx.internalSearch,
|
|
8853
|
+
"clear-on-select": true,
|
|
8854
|
+
"close-on-select": !_ctx.multiselect,
|
|
8855
|
+
"options-limit": 300,
|
|
8856
|
+
"max-height": 250,
|
|
8857
|
+
"show-no-results": true,
|
|
8858
|
+
"show-no-options": false,
|
|
8859
|
+
disabled: _ctx.readonly || _ctx.disabled,
|
|
8860
|
+
limit: _ctx.limit,
|
|
8861
|
+
tabindex: _ctx.tabIndex,
|
|
8862
|
+
allowEmpty: _ctx.allowEmpty,
|
|
8863
|
+
onClose: _ctx.dropdownClose,
|
|
8864
|
+
onOpen: _ctx.goSearch,
|
|
8865
|
+
onSearchChange: _ctx.getItems
|
|
8866
|
+
}, {
|
|
8867
|
+
tag: (0,external_vue_.withCtx)(({ option }) => [
|
|
8868
|
+
(0,external_vue_.renderSlot)(_ctx.$slots, "tag", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({
|
|
8869
|
+
item: option,
|
|
8870
|
+
onRemove: _ctx.onRemoveItem,
|
|
8871
|
+
canRemove: _ctx.canRemove,
|
|
8872
|
+
})), () => [
|
|
8873
|
+
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_chip, {
|
|
8874
|
+
key: JSON.stringify(option),
|
|
8875
|
+
color: _ctx.disabled ? 'grey' : 'primary',
|
|
8876
|
+
closable: _ctx.canRemove,
|
|
8877
|
+
"onClick:close": ($event) => (_ctx.onRemoveItem(option))
|
|
8878
|
+
}, {
|
|
8879
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8880
|
+
(0,external_vue_.createElementVNode)("span", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_1, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
|
|
8881
|
+
]),
|
|
8882
|
+
_: 2
|
|
8883
|
+
}, 1032, ["color", "closable", "onClick:close"]))
|
|
8884
|
+
], true)
|
|
8885
|
+
]),
|
|
8886
|
+
option: (0,external_vue_.withCtx)(({ option }) => [
|
|
8887
|
+
(0,external_vue_.createVNode)(_component_v_row, {
|
|
8888
|
+
"no-gutters": "",
|
|
8889
|
+
class: "mb-1"
|
|
8890
|
+
}, {
|
|
8891
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8892
|
+
(0,external_vue_.createVNode)(_component_v_col, { class: "d-flex align-center py-1" }, {
|
|
8893
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8894
|
+
(_ctx.multiselect)
|
|
8895
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_2, [
|
|
8896
|
+
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-checkbox']), {
|
|
8897
|
+
key: JSON.stringify(option),
|
|
8898
|
+
"model-value": _ctx.checkedItems,
|
|
8899
|
+
"initial-value": _ctx.$utils.deepValueGetter(option, _ctx.itemValue),
|
|
8900
|
+
"onUpdate:modelValue": ($event) => (_ctx.onCheckItem($event, option))
|
|
8901
|
+
}, null, 8, ["model-value", "initial-value", "onUpdate:modelValue"]))
|
|
8902
|
+
]))
|
|
8903
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
8904
|
+
(0,external_vue_.createTextVNode)(),
|
|
8905
|
+
(0,external_vue_.createElementVNode)("div", {
|
|
8906
|
+
class: (0,external_vue_.normalizeClass)(["d-flex align-center", { 'ml-1': _ctx.multiselect }])
|
|
8907
|
+
}, [
|
|
8908
|
+
(0,external_vue_.renderSlot)(_ctx.$slots, "option-icon", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), undefined, true),
|
|
8909
|
+
(0,external_vue_.createTextVNode)(),
|
|
8910
|
+
(0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_3, [
|
|
8911
|
+
(0,external_vue_.renderSlot)(_ctx.$slots, "option", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), () => [
|
|
8912
|
+
(0,external_vue_.createElementVNode)("div", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, _ctx.itemTitle)), 1)
|
|
8913
|
+
], true),
|
|
8914
|
+
(0,external_vue_.createTextVNode)(),
|
|
8915
|
+
(_ctx.optionHint)
|
|
8916
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_4, [
|
|
8917
|
+
(0,external_vue_.renderSlot)(_ctx.$slots, "option-hint", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option })), undefined, true)
|
|
8918
|
+
]))
|
|
8919
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
8920
|
+
])
|
|
8921
|
+
], 2)
|
|
8922
|
+
]),
|
|
8923
|
+
_: 2
|
|
8924
|
+
}, 1024)
|
|
8925
|
+
]),
|
|
8926
|
+
_: 2
|
|
8927
|
+
}, 1024)
|
|
8928
|
+
]),
|
|
8929
|
+
noResult: (0,external_vue_.withCtx)(() => [
|
|
8930
|
+
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.message), 1)
|
|
8931
|
+
]),
|
|
8932
|
+
_: 3
|
|
8933
|
+
}, 8, ["modelValue", "multiple", "placeholder", "options", "internal-search", "close-on-select", "disabled", "limit", "tabindex", "allowEmpty", "onClose", "onOpen", "onSearchChange", "onUpdate:modelValue"]),
|
|
8934
|
+
(0,external_vue_.createTextVNode)(),
|
|
8935
|
+
(_ctx.loading)
|
|
8936
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_5))
|
|
8937
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
8938
|
+
]),
|
|
8939
|
+
_: 3
|
|
8940
|
+
})
|
|
8941
|
+
]),
|
|
8942
|
+
_: 3
|
|
8943
|
+
}),
|
|
8944
|
+
(0,external_vue_.createTextVNode)(),
|
|
8945
|
+
(!_ctx.hideDetails)
|
|
8946
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_6, [
|
|
8947
|
+
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
8948
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8949
|
+
(_ctx.showHint)
|
|
8950
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", {
|
|
8951
|
+
key: 0,
|
|
8952
|
+
style: { "font-size": "var(--font-size--1)" },
|
|
8953
|
+
class: (0,external_vue_.normalizeClass)({ 'error--text': _ctx.warningHint, 'grey--text': !_ctx.validationMessage })
|
|
8954
|
+
}, (0,external_vue_.toDisplayString)(_ctx.displayingInputHint), 3))
|
|
8955
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
8956
|
+
]),
|
|
8957
|
+
_: 1
|
|
8958
|
+
})
|
|
8959
|
+
]))
|
|
8960
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
8961
|
+
]),
|
|
8962
|
+
_: 3
|
|
8963
|
+
}, 8, ["class"])
|
|
8964
|
+
]),
|
|
8965
|
+
_: 3
|
|
8966
|
+
}));
|
|
8864
8967
|
}
|
|
8865
8968
|
|
|
8866
|
-
;// CONCATENATED MODULE: ./src/
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
if (
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8969
|
+
;// CONCATENATED MODULE: ./src/ld-combobox/ld-combobox.vue?vue&type=template&id=7bbbdbd8&scoped=true&ts=true
|
|
8970
|
+
|
|
8971
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-combobox/ld-combobox.ts?vue&type=script&lang=ts&external
|
|
8972
|
+
var ld_comboboxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8973
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8974
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8975
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8976
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8977
|
+
};
|
|
8978
|
+
var ld_comboboxvue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
8979
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8980
|
+
};
|
|
8981
|
+
var ld_comboboxvue_type_script_lang_ts_external_a, ld_comboboxvue_type_script_lang_ts_external_b;
|
|
8982
|
+
|
|
8983
|
+
|
|
8984
|
+
|
|
8985
|
+
|
|
8986
|
+
|
|
8987
|
+
|
|
8988
|
+
|
|
8989
|
+
|
|
8990
|
+
|
|
8991
|
+
|
|
8992
|
+
|
|
8993
|
+
|
|
8994
|
+
class InternalError extends Error {
|
|
8995
|
+
constructor(message = 'internal error') {
|
|
8996
|
+
super(message);
|
|
8997
|
+
}
|
|
8998
|
+
}
|
|
8999
|
+
/**
|
|
9000
|
+
* @displayName ld-combobox
|
|
9001
|
+
*/
|
|
9002
|
+
let ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin, FloatingUI) {
|
|
9003
|
+
constructor() {
|
|
9004
|
+
super(...arguments);
|
|
9005
|
+
this.readedItems = [];
|
|
9006
|
+
this.optionsList = [];
|
|
9007
|
+
this.selected = [];
|
|
9008
|
+
this.checkedItems = [];
|
|
9009
|
+
this.getItems = null;
|
|
9010
|
+
this.errors = [];
|
|
9011
|
+
this.messagesBucket = {
|
|
9012
|
+
search: 'Идет поиск...',
|
|
9013
|
+
empty: 'Поиск не дал результатов',
|
|
9014
|
+
validation: ''
|
|
9015
|
+
};
|
|
9016
|
+
this.message = '';
|
|
9017
|
+
this.loading = false;
|
|
9018
|
+
}
|
|
9019
|
+
emitUpdateValue() {
|
|
9020
|
+
if (this.multiselect) {
|
|
9021
|
+
return this.selectedIds;
|
|
9022
|
+
}
|
|
9023
|
+
else {
|
|
9024
|
+
return this.selectedIds.length ? this.selectedIds[0] : null;
|
|
9025
|
+
}
|
|
9026
|
+
}
|
|
9027
|
+
emitUpdateItems() {
|
|
9028
|
+
return this.selectedToArray;
|
|
9029
|
+
}
|
|
9030
|
+
emitInput() {
|
|
9031
|
+
return true;
|
|
9032
|
+
}
|
|
9033
|
+
emitBlur(value) {
|
|
9034
|
+
return value;
|
|
9035
|
+
}
|
|
9036
|
+
emitClick() {
|
|
9037
|
+
return true;
|
|
9038
|
+
}
|
|
9039
|
+
async onValueChanged(value) {
|
|
9040
|
+
if (!this.$utils.isDefined(value)) {
|
|
9041
|
+
return;
|
|
9042
|
+
}
|
|
9043
|
+
let val = this.toArray(value);
|
|
9044
|
+
if (lodash_es_isEqual(val, this.selectedIds)) {
|
|
9045
|
+
return;
|
|
9046
|
+
}
|
|
9047
|
+
if (val.length) {
|
|
9048
|
+
try {
|
|
9049
|
+
await this.setSelected(val);
|
|
9050
|
+
}
|
|
9051
|
+
catch (e) {
|
|
9052
|
+
this.throwError(e);
|
|
9053
|
+
}
|
|
9054
|
+
}
|
|
9055
|
+
else if (!this.hasItems && !this.lazyLoad) {
|
|
9056
|
+
try {
|
|
9057
|
+
await this.fetchItems();
|
|
9058
|
+
}
|
|
9059
|
+
catch (e) {
|
|
9060
|
+
this.throwError(e);
|
|
9061
|
+
}
|
|
9062
|
+
}
|
|
9063
|
+
}
|
|
9064
|
+
onItemsChanged() {
|
|
9065
|
+
this.onValueChanged(this.modelValue);
|
|
9066
|
+
}
|
|
9067
|
+
created() {
|
|
9068
|
+
this.messagesBucket = {
|
|
9069
|
+
...this.messagesBucket,
|
|
9070
|
+
...this.messages,
|
|
9071
|
+
};
|
|
9072
|
+
this.message = this.messagesBucket.search;
|
|
9073
|
+
this.getItems = lodash_es_debounce(this.goSearch.bind(this), 600);
|
|
9074
|
+
if (this.form) {
|
|
9075
|
+
this.form.register(this, null);
|
|
9076
|
+
}
|
|
9077
|
+
}
|
|
9078
|
+
mounted() {
|
|
9079
|
+
if (this.autofocus) {
|
|
9080
|
+
const selectElem = this.$refs.multiselect.$el;
|
|
9081
|
+
if (selectElem) {
|
|
9082
|
+
selectElem.getElementsByClassName('multiselect__input')[0].focus();
|
|
9083
|
+
}
|
|
9084
|
+
}
|
|
9085
|
+
}
|
|
9086
|
+
unmounted() {
|
|
9087
|
+
if (this.form) {
|
|
9088
|
+
this.form.unregister(this, null);
|
|
9089
|
+
}
|
|
9090
|
+
}
|
|
9091
|
+
async goSearch(searchTerm) {
|
|
9092
|
+
if (this.hasItems || this.hasReadedItems) {
|
|
9093
|
+
this.optionsList = this.filterOptions(searchTerm);
|
|
9094
|
+
if (this.optionsList.length === 0) {
|
|
9095
|
+
this.message = this.messagesBucket.empty;
|
|
9096
|
+
}
|
|
9097
|
+
return;
|
|
9098
|
+
}
|
|
9099
|
+
try {
|
|
9100
|
+
this.loading = true;
|
|
9101
|
+
await this.fetchItems(searchTerm);
|
|
9102
|
+
this.optionsList = this.filterOptions(this.internalSearch ? searchTerm : null);
|
|
9103
|
+
}
|
|
9104
|
+
catch (e) {
|
|
9105
|
+
this.throwError(e);
|
|
9106
|
+
}
|
|
9107
|
+
finally {
|
|
9108
|
+
this.loading = false;
|
|
9109
|
+
}
|
|
9110
|
+
}
|
|
9111
|
+
dropdownClose() {
|
|
9112
|
+
this.validate();
|
|
9113
|
+
this.emitBlur(this.selectedToArray);
|
|
9114
|
+
}
|
|
9115
|
+
validate() {
|
|
9116
|
+
this.validationMessage = '';
|
|
9117
|
+
let funcResult = true;
|
|
9118
|
+
if (this.required) {
|
|
9119
|
+
funcResult = requiredRule()(this.selectedToArray);
|
|
9120
|
+
if (funcResult !== true) {
|
|
9121
|
+
this.validationMessage = this.messagesBucket.validation || funcResult;
|
|
9122
|
+
return false;
|
|
9123
|
+
}
|
|
9124
|
+
}
|
|
9125
|
+
this.myRules.forEach(func => {
|
|
9126
|
+
funcResult = func(this.selectedToArray);
|
|
9127
|
+
if (funcResult !== true) {
|
|
9128
|
+
this.validationMessage = funcResult;
|
|
9129
|
+
}
|
|
9130
|
+
});
|
|
9131
|
+
return !this.validationMessage;
|
|
9132
|
+
}
|
|
9133
|
+
onInput() {
|
|
9134
|
+
this.$nextTick(() => {
|
|
9135
|
+
this.checkedItems = [...this.selectedIds];
|
|
9136
|
+
});
|
|
9137
|
+
this.emitUpdate();
|
|
9138
|
+
if (this.required) {
|
|
9139
|
+
this.validate();
|
|
9140
|
+
}
|
|
9141
|
+
}
|
|
9142
|
+
onCheckItem(checked, item) {
|
|
9143
|
+
if (Array.isArray(this.selected)) {
|
|
9144
|
+
const id = this.itemIdentity(item);
|
|
9145
|
+
if (checked.includes(id)) {
|
|
9146
|
+
this.selected = this.selected.filter(el => this.itemIdentity(el) !== id);
|
|
9147
|
+
}
|
|
9148
|
+
else {
|
|
9149
|
+
this.selected.push({ ...item });
|
|
9150
|
+
}
|
|
9151
|
+
this.onInput();
|
|
9152
|
+
}
|
|
9153
|
+
}
|
|
9154
|
+
onRemoveItem(item) {
|
|
9155
|
+
const id = this.itemIdentity(item);
|
|
9156
|
+
if (Array.isArray(this.selected)) {
|
|
9157
|
+
this.selected = this.selected.filter(el => this.itemIdentity(el) !== id);
|
|
9158
|
+
}
|
|
9159
|
+
else {
|
|
9160
|
+
this.selected = null;
|
|
9161
|
+
}
|
|
9162
|
+
this.onInput();
|
|
9163
|
+
}
|
|
9164
|
+
itemIdentity(item) {
|
|
9165
|
+
return this.$utils.deepValueGetter(item, this.itemValue);
|
|
9166
|
+
}
|
|
9167
|
+
emitUpdate() {
|
|
9168
|
+
this.emitUpdateValue();
|
|
9169
|
+
this.emitUpdateItems();
|
|
9170
|
+
this.emitInput();
|
|
9171
|
+
}
|
|
9172
|
+
async fetchItems(searchTerm = null) {
|
|
9173
|
+
if (this.fetchData instanceof Function) {
|
|
9174
|
+
try {
|
|
9175
|
+
this.loading = true;
|
|
9176
|
+
this.readedItems = await this.fetchData(searchTerm);
|
|
9177
|
+
}
|
|
9178
|
+
catch (e) {
|
|
9179
|
+
/* eslint-disable no-console */
|
|
9180
|
+
console.error(e);
|
|
9181
|
+
}
|
|
9182
|
+
finally {
|
|
9183
|
+
this.loading = false;
|
|
9184
|
+
}
|
|
9185
|
+
}
|
|
9186
|
+
else {
|
|
9187
|
+
throw new InternalError();
|
|
9188
|
+
}
|
|
9189
|
+
}
|
|
9190
|
+
async setSelected(ids) {
|
|
9191
|
+
const func = (item) => {
|
|
9192
|
+
const id = this.$utils.deepValueGetter(item, this.itemValue);
|
|
9193
|
+
;
|
|
9194
|
+
return ids.includes(id);
|
|
9195
|
+
};
|
|
9196
|
+
const find = (items) => {
|
|
9197
|
+
return this.multiselect ? items.filter(func) : items.find(func);
|
|
9198
|
+
};
|
|
9199
|
+
if (this.hasItems) {
|
|
9200
|
+
this.selected = find(this.items);
|
|
9201
|
+
this.onInput();
|
|
9202
|
+
return;
|
|
9203
|
+
}
|
|
9204
|
+
if (this.itemsIsDefined) {
|
|
9205
|
+
return;
|
|
9206
|
+
}
|
|
9207
|
+
if (!this.hasReadedItems) {
|
|
9208
|
+
await this.fetchItems();
|
|
9209
|
+
}
|
|
9210
|
+
if (this.hasReadedItems) {
|
|
9211
|
+
this.selected = find(this.readedItems);
|
|
9212
|
+
this.onInput();
|
|
9213
|
+
}
|
|
9214
|
+
}
|
|
9215
|
+
filterOptions(searchTerm) {
|
|
9216
|
+
const func = (item) => {
|
|
9217
|
+
if (this.itemTitle in item) {
|
|
9218
|
+
const value = String(this.$utils.deepValueGetter(item, this.itemTitle));
|
|
9219
|
+
return value.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1;
|
|
9220
|
+
}
|
|
9221
|
+
};
|
|
9222
|
+
if (this.hasItems) {
|
|
9223
|
+
return searchTerm ? this.items.filter(func) : this.items;
|
|
9224
|
+
}
|
|
9225
|
+
if (this.hasReadedItems) {
|
|
9226
|
+
return searchTerm ? this.readedItems.filter(func) : this.readedItems;
|
|
9227
|
+
}
|
|
9228
|
+
return [];
|
|
9229
|
+
}
|
|
9230
|
+
toArray(value) {
|
|
9231
|
+
if (!this.$utils.isDefined(value)) {
|
|
9232
|
+
return [];
|
|
9233
|
+
}
|
|
9234
|
+
if (Array.isArray(value)) {
|
|
9235
|
+
return [...value];
|
|
9236
|
+
}
|
|
9237
|
+
return [value];
|
|
9238
|
+
}
|
|
9239
|
+
throwError(e) {
|
|
9240
|
+
if (e instanceof InternalError || e.message === 'internal error') {
|
|
9241
|
+
//
|
|
9242
|
+
}
|
|
9243
|
+
else {
|
|
9244
|
+
/* eslint-disable no-console */
|
|
9245
|
+
console.error(e);
|
|
9246
|
+
}
|
|
9247
|
+
}
|
|
9248
|
+
get itemsIsDefined() {
|
|
9249
|
+
return this.items !== undefined;
|
|
9250
|
+
}
|
|
9251
|
+
get hasItems() {
|
|
9252
|
+
return Array.isArray(this.items) && this.items.length > 0;
|
|
9253
|
+
}
|
|
9254
|
+
get hasReadedItems() {
|
|
9255
|
+
return Array.isArray(this.readedItems) && this.readedItems.length > 0;
|
|
9256
|
+
}
|
|
9257
|
+
get showHint() {
|
|
9258
|
+
return this.validationMessage || Boolean(this.inputHint && this.persistentHint);
|
|
9259
|
+
}
|
|
9260
|
+
get warningHint() {
|
|
9261
|
+
return Boolean(this.validationMessage) || this.errors.length > 0;
|
|
9262
|
+
}
|
|
9263
|
+
get displayingInputHint() {
|
|
9264
|
+
if (this.errors.length) {
|
|
9265
|
+
return this.errors[this.errors.length - 1];
|
|
9266
|
+
}
|
|
9267
|
+
return this.validationMessage ? this.validationMessage : this.inputHint;
|
|
9268
|
+
}
|
|
9269
|
+
get hasError() {
|
|
9270
|
+
return Boolean(this.validationMessage);
|
|
9271
|
+
}
|
|
9272
|
+
get selectedToArray() {
|
|
9273
|
+
return this.toArray(this.selected);
|
|
9274
|
+
}
|
|
9275
|
+
get selectedIds() {
|
|
9276
|
+
if (!this.selectedToArray.length) {
|
|
9277
|
+
return [];
|
|
9278
|
+
}
|
|
9279
|
+
return this.selectedToArray.map(item => this.itemIdentity(item));
|
|
9280
|
+
}
|
|
9281
|
+
get canRemove() {
|
|
9282
|
+
const result = !this.readonly && !this.disabled;
|
|
9283
|
+
if (!result) {
|
|
9284
|
+
return false;
|
|
9285
|
+
}
|
|
9286
|
+
if (!this.allowEmpty && this.multiselect && Array.isArray(this.selected)) {
|
|
9287
|
+
return this.selected.length > 1;
|
|
9288
|
+
}
|
|
9289
|
+
return result;
|
|
9290
|
+
}
|
|
9291
|
+
};
|
|
9292
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9293
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
9294
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
9295
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "modelValue", void 0);
|
|
9296
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9297
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
9298
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
9299
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "modelItems", void 0);
|
|
9300
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9301
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
9302
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
9303
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "multiselect", void 0);
|
|
9304
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9305
|
+
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'value' }),
|
|
9306
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
9307
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "itemTitle", void 0);
|
|
9308
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9309
|
+
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'id' }),
|
|
9310
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
9311
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "itemValue", void 0);
|
|
9312
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9313
|
+
(0,external_vue_property_decorator_.Prop)({ type: Object, default: () => ({}) }),
|
|
9314
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
9315
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "messages", void 0);
|
|
9316
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9317
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
9318
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
9319
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "inputHint", void 0);
|
|
9320
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9321
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
9322
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
9323
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "persistentHint", void 0);
|
|
9324
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9325
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
9326
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
9327
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "optionHint", void 0);
|
|
9328
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9329
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
9330
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
9331
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "limit", void 0);
|
|
9332
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9333
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
9334
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
9335
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "internalSearch", void 0);
|
|
9336
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9337
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
|
|
9338
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
9339
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "allowEmpty", void 0);
|
|
9340
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9341
|
+
(0,external_vue_property_decorator_.Prop)({ type: Array, default: undefined }),
|
|
9342
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", typeof (ld_comboboxvue_type_script_lang_ts_external_b = typeof Array !== "undefined" && Array) === "function" ? ld_comboboxvue_type_script_lang_ts_external_b : Object)
|
|
9343
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "items", void 0);
|
|
9344
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9345
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
9346
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
9347
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "lazyLoad", void 0);
|
|
9348
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9349
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
9350
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function)
|
|
9351
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "fetchData", void 0);
|
|
9352
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9353
|
+
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
9354
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
9355
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "form", void 0);
|
|
9356
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9357
|
+
Emit('update:model-value'),
|
|
9358
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9359
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9360
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9361
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitUpdateValue", null);
|
|
9362
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9363
|
+
Emit('update:model-items'),
|
|
9364
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9365
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9366
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9367
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitUpdateItems", null);
|
|
9368
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9369
|
+
Emit('input'),
|
|
9370
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9371
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9372
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9373
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitInput", null);
|
|
9374
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9375
|
+
Emit('blur'),
|
|
9376
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9377
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
9378
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9379
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitBlur", null);
|
|
9380
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9381
|
+
Emit('click'),
|
|
9382
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9383
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9384
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9385
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitClick", null);
|
|
9386
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9387
|
+
(0,external_vue_property_decorator_.Watch)('modelValue', { deep: true, immediate: true }),
|
|
9388
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9389
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
9390
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", Promise)
|
|
9391
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "onValueChanged", null);
|
|
9392
|
+
ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9393
|
+
(0,external_vue_property_decorator_.Watch)('items'),
|
|
9394
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9395
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9396
|
+
ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9397
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "onItemsChanged", null);
|
|
9398
|
+
ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent = ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
9399
|
+
(0,external_vue_property_decorator_.Options)({
|
|
9400
|
+
components: {
|
|
9401
|
+
'ld-label': ld_label,
|
|
9402
|
+
'multiselect': (external_multiselect_js_default()),
|
|
9403
|
+
},
|
|
9404
|
+
})
|
|
9405
|
+
], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent);
|
|
9406
|
+
/* harmony default export */ const ld_comboboxvue_type_script_lang_ts_external = (ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent);
|
|
9407
|
+
|
|
9408
|
+
;// CONCATENATED MODULE: ./src/ld-combobox/ld-combobox.ts?vue&type=script&lang=ts&external
|
|
9409
|
+
|
|
9410
|
+
;// CONCATENATED MODULE: ./src/ld-combobox/ld-combobox.vue
|
|
9411
|
+
|
|
9412
|
+
|
|
9413
|
+
|
|
9414
|
+
|
|
9415
|
+
;
|
|
9416
|
+
|
|
9417
|
+
|
|
9418
|
+
const ld_combobox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_comboboxvue_type_script_lang_ts_external, [['render',ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_render],['__scopeId',"data-v-7bbbdbd8"]])
|
|
9419
|
+
|
|
9420
|
+
/* harmony default export */ const ld_combobox = (ld_combobox_exports_);
|
|
9421
|
+
;// CONCATENATED MODULE: ./src/ld-combobox/index.ts
|
|
9422
|
+
|
|
9423
|
+
function ld_combobox_reg(vue, options) {
|
|
9424
|
+
vue.component(options.aliases['ld-combobox'], ld_combobox);
|
|
9425
|
+
}
|
|
9426
|
+
/* harmony default export */ const src_ld_combobox = (ld_combobox_reg);
|
|
9427
|
+
|
|
9428
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-timepicker/ld-timepicker.vue?vue&type=template&id=256abd0d&scoped=true&ts=true
|
|
9429
|
+
|
|
9430
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-256abd0d"), n = n(), _popScopeId(), n);
|
|
9431
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_1 = { class: "ld-timepicker" };
|
|
9432
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_2 = { class: "time-selector" };
|
|
9433
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_3 = { key: 0 };
|
|
9434
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_4 = { key: 1 };
|
|
9435
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_5 = {
|
|
9436
|
+
key: 0,
|
|
9437
|
+
class: "ld-timepicker-validate"
|
|
9438
|
+
};
|
|
9439
|
+
function ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9440
|
+
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
9441
|
+
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
9442
|
+
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
9443
|
+
const _component_v_card = (0,external_vue_.resolveComponent)("v-card");
|
|
9444
|
+
const _component_v_menu = (0,external_vue_.resolveComponent)("v-menu");
|
|
9445
|
+
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
9446
|
+
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
9447
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_1, [
|
|
9448
|
+
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
9449
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9450
|
+
(_ctx.label)
|
|
9451
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
|
|
9452
|
+
key: 0,
|
|
9453
|
+
class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses]),
|
|
9454
|
+
label: _ctx.label,
|
|
9455
|
+
required: _ctx.required,
|
|
9456
|
+
"align-label-to-right": _ctx.alignLabelToRight
|
|
9457
|
+
}, null, 8, ["class", "label", "required", "align-label-to-right"]))
|
|
9458
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9459
|
+
(0,external_vue_.createTextVNode)(),
|
|
9460
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
9461
|
+
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
9462
|
+
}, {
|
|
9463
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9464
|
+
(0,external_vue_.createVNode)(_component_v_menu, {
|
|
9465
|
+
modelValue: _ctx.timeMenu,
|
|
9466
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => ((_ctx.timeMenu) = $event)),
|
|
9467
|
+
"close-on-content-click": false,
|
|
9468
|
+
transition: "toggle-slide-y-transition",
|
|
9469
|
+
location: "bottom",
|
|
9470
|
+
"min-width": "190px",
|
|
9471
|
+
disabled: _ctx.readonly || _ctx.disabled
|
|
9472
|
+
}, {
|
|
9473
|
+
activator: (0,external_vue_.withCtx)(({ props }) => [
|
|
9474
|
+
(0,external_vue_.createElementVNode)("div", (0,external_vue_.mergeProps)({ class: "d-flex align-center w-100" }, props, { style: { "position": "relative" } }), [
|
|
9475
|
+
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-edit-text']), {
|
|
9476
|
+
ref: "inputTime",
|
|
9477
|
+
"model-value": _ctx.timeString,
|
|
9478
|
+
class: "w-100",
|
|
9479
|
+
tabindex: _ctx.tabIndex,
|
|
9480
|
+
disabled: _ctx.readonly || _ctx.disabled,
|
|
9481
|
+
placeholder: "ЧЧ:ММ",
|
|
9482
|
+
"hide-details": "",
|
|
9483
|
+
readonly: true
|
|
9484
|
+
}, null, 8, ["model-value", "tabindex", "disabled"])),
|
|
9485
|
+
(0,external_vue_.createTextVNode)(),
|
|
9486
|
+
(!_ctx.disabled && !_ctx.readonly)
|
|
9487
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
9488
|
+
key: 0,
|
|
9489
|
+
icon: "",
|
|
9490
|
+
style: { "position": "absolute", "top": "0", "right": "var(--input-height)" },
|
|
9491
|
+
onClick: (0,external_vue_.withModifiers)(_ctx.clear, ["stop"])
|
|
9492
|
+
}, {
|
|
9493
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9494
|
+
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
9495
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9496
|
+
(0,external_vue_.createTextVNode)("close")
|
|
9497
|
+
]),
|
|
9498
|
+
_: 1
|
|
9499
|
+
})
|
|
9500
|
+
]),
|
|
9501
|
+
_: 1
|
|
9502
|
+
}, 8, ["onClick"]))
|
|
9503
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9504
|
+
(0,external_vue_.createTextVNode)(),
|
|
9505
|
+
(0,external_vue_.createVNode)(_component_square_button, {
|
|
9506
|
+
icon: "",
|
|
9507
|
+
style: { "position": "absolute", "top": "0", "right": "0" },
|
|
9508
|
+
onClick: _cache[0] || (_cache[0] = (0,external_vue_.withModifiers)(($event) => (_ctx.timeMenu = !_ctx.timeMenu), ["stop"]))
|
|
9509
|
+
}, {
|
|
9510
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9511
|
+
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
9512
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9513
|
+
(0,external_vue_.createTextVNode)("access_time")
|
|
9514
|
+
]),
|
|
9515
|
+
_: 1
|
|
9516
|
+
})
|
|
9517
|
+
]),
|
|
9518
|
+
_: 1
|
|
9519
|
+
})
|
|
9520
|
+
], 16)
|
|
9521
|
+
]),
|
|
9522
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9523
|
+
(0,external_vue_.createTextVNode)(),
|
|
9524
|
+
(0,external_vue_.createVNode)(_component_v_card, {
|
|
9525
|
+
elevation: "0",
|
|
9526
|
+
style: { "border": "1px solid var(--grey-l-5)" },
|
|
9527
|
+
width: "190px"
|
|
9528
|
+
}, {
|
|
9529
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9530
|
+
(0,external_vue_.createElementVNode)("div", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_2, [
|
|
9531
|
+
(_ctx.isHours)
|
|
9532
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_3, "Часы"))
|
|
9533
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9534
|
+
(0,external_vue_.createTextVNode)(),
|
|
9535
|
+
(_ctx.isMinutes)
|
|
9536
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_4, "Минуты"))
|
|
9537
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9538
|
+
(0,external_vue_.createTextVNode)(),
|
|
9539
|
+
(0,external_vue_.createElementVNode)("div", null, [
|
|
9540
|
+
(_ctx.isHours)
|
|
9541
|
+
? ((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 0 }, (0,external_vue_.renderList)(Array.apply(null, { length: 24 }), (_, i) => {
|
|
9542
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
9543
|
+
key: i,
|
|
9544
|
+
variant: i === _ctx.hours ? 'flat' : 'outlined',
|
|
9545
|
+
color: i === _ctx.hours ? 'primary' : 'grey',
|
|
9546
|
+
onClick: ($event) => (_ctx.setHours(i))
|
|
9547
|
+
}, {
|
|
9548
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9549
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
9550
|
+
class: (0,external_vue_.normalizeClass)({ 'text-color': i !== _ctx.hours })
|
|
9551
|
+
}, (0,external_vue_.toDisplayString)(('0' + i).slice(-2)), 3)
|
|
9552
|
+
]),
|
|
9553
|
+
_: 2
|
|
9554
|
+
}, 1032, ["variant", "color", "onClick"]));
|
|
9555
|
+
}), 128))
|
|
9556
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9557
|
+
(0,external_vue_.createTextVNode)(),
|
|
9558
|
+
(_ctx.isMinutes)
|
|
9559
|
+
? ((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 1 }, (0,external_vue_.renderList)(Array.apply(null, { length: 12 }), (_, i) => {
|
|
9560
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
9561
|
+
key: i,
|
|
9562
|
+
variant: (5 * i) === _ctx.minutes ? 'flat' : 'outlined',
|
|
9563
|
+
color: (5 * i) === _ctx.minutes ? 'primary' : 'grey',
|
|
9564
|
+
onClick: ($event) => (_ctx.setMinutes(5 * i))
|
|
9565
|
+
}, {
|
|
9566
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9567
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
9568
|
+
class: (0,external_vue_.normalizeClass)({ 'text-color': (5 * i) !== _ctx.minutes })
|
|
9569
|
+
}, (0,external_vue_.toDisplayString)(('0' + 5 * i).slice(-2)), 3)
|
|
9570
|
+
]),
|
|
9571
|
+
_: 2
|
|
9572
|
+
}, 1032, ["variant", "color", "onClick"]));
|
|
9573
|
+
}), 128))
|
|
9574
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
9575
|
+
])
|
|
9576
|
+
])
|
|
9577
|
+
]),
|
|
9578
|
+
_: 1
|
|
9579
|
+
})
|
|
9580
|
+
]),
|
|
9581
|
+
_: 1
|
|
9582
|
+
}, 8, ["modelValue", "disabled"]),
|
|
9583
|
+
(0,external_vue_.createTextVNode)(),
|
|
9584
|
+
(!_ctx.hideDetails)
|
|
9585
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_5, [
|
|
9586
|
+
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
9587
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9588
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
9589
|
+
style: { "font-size": "var(--font-size--1)" },
|
|
9590
|
+
class: (0,external_vue_.normalizeClass)({ 'error--text': Boolean(_ctx.validationMessage) })
|
|
9591
|
+
}, (0,external_vue_.toDisplayString)(_ctx.validationMessage || _ctx.inputHint), 3)
|
|
9592
|
+
]),
|
|
9593
|
+
_: 1
|
|
9594
|
+
})
|
|
9595
|
+
]))
|
|
9596
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
9597
|
+
]),
|
|
9598
|
+
_: 1
|
|
9599
|
+
}, 8, ["class"])
|
|
9600
|
+
]),
|
|
9601
|
+
_: 1
|
|
9602
|
+
})
|
|
9603
|
+
]));
|
|
9604
|
+
}
|
|
9605
|
+
|
|
9606
|
+
;// CONCATENATED MODULE: ./src/ld-timepicker/ld-timepicker.vue?vue&type=template&id=256abd0d&scoped=true&ts=true
|
|
9607
|
+
|
|
9608
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-timepicker/ld-timepicker.ts?vue&type=script&lang=ts&external
|
|
9609
|
+
var ld_timepickervue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9610
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9611
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9612
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9613
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9614
|
+
};
|
|
9615
|
+
var ld_timepickervue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
9616
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9617
|
+
};
|
|
9618
|
+
|
|
9619
|
+
|
|
9620
|
+
|
|
9621
|
+
|
|
9622
|
+
|
|
9623
|
+
|
|
9624
|
+
|
|
9625
|
+
/**
|
|
9626
|
+
* @displayName ld-timepicker
|
|
9627
|
+
*/
|
|
9628
|
+
let TimepickerComponent = class TimepickerComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
|
|
9629
|
+
constructor() {
|
|
9630
|
+
super(...arguments);
|
|
9631
|
+
this.timeMenu = false;
|
|
9632
|
+
this.isHours = true;
|
|
9633
|
+
this.isMinutes = false;
|
|
9634
|
+
this.hours = null;
|
|
9635
|
+
this.minutes = null;
|
|
9636
|
+
}
|
|
9637
|
+
emitInput(value) {
|
|
9638
|
+
return value;
|
|
9639
|
+
}
|
|
9640
|
+
emitBlur(value) {
|
|
9641
|
+
return value;
|
|
9642
|
+
}
|
|
9643
|
+
onModelValueChanged(value) {
|
|
9644
|
+
if (!this.checkValue(value)) {
|
|
9645
|
+
return;
|
|
9646
|
+
}
|
|
9647
|
+
this.setTime(value);
|
|
9648
|
+
}
|
|
9649
|
+
onTimeMenuChanged() {
|
|
9650
|
+
if (!this.timeMenu) {
|
|
9651
|
+
this.isHours = true;
|
|
9652
|
+
this.isMinutes = false;
|
|
9653
|
+
}
|
|
9654
|
+
}
|
|
9655
|
+
onTimeChanged() {
|
|
9656
|
+
this.emitInput(this.timeString || null);
|
|
9657
|
+
this.validate();
|
|
9658
|
+
}
|
|
9659
|
+
created() {
|
|
9660
|
+
if (this.form) {
|
|
9661
|
+
this.form.register(this, null);
|
|
9662
|
+
}
|
|
9663
|
+
}
|
|
9664
|
+
unmounted() {
|
|
9665
|
+
if (this.form) {
|
|
9666
|
+
this.form.unregister(this, null);
|
|
9667
|
+
}
|
|
9668
|
+
}
|
|
9669
|
+
setHours(i) {
|
|
9670
|
+
this.hours = i;
|
|
9671
|
+
this.isHours = false;
|
|
9672
|
+
this.isMinutes = true;
|
|
9673
|
+
}
|
|
9674
|
+
setMinutes(i) {
|
|
9675
|
+
this.minutes = i;
|
|
9676
|
+
this.timeMenu = false;
|
|
9677
|
+
}
|
|
9678
|
+
setTime(value) {
|
|
9679
|
+
const [h, m] = value.split(':');
|
|
9680
|
+
this.hours = Number(h);
|
|
9681
|
+
this.minutes = Number(m);
|
|
9682
|
+
}
|
|
9683
|
+
checkValue(value) {
|
|
9684
|
+
if (!(/\d\d\:\d\d/.test(value))) {
|
|
9685
|
+
return false;
|
|
9686
|
+
}
|
|
9687
|
+
const [h, m] = value.split(':');
|
|
9688
|
+
const hh = Number(h);
|
|
9689
|
+
if (isNaN(hh) || hh < 0 || hh > 23) {
|
|
9690
|
+
return false;
|
|
9691
|
+
}
|
|
9692
|
+
const mm = Number(m);
|
|
9693
|
+
if (isNaN(mm) || mm < 0 || mm > 59) {
|
|
9694
|
+
return false;
|
|
9695
|
+
}
|
|
9696
|
+
return true;
|
|
9697
|
+
}
|
|
9698
|
+
clear() {
|
|
9699
|
+
this.hours = null;
|
|
9700
|
+
this.minutes = null;
|
|
9701
|
+
this.isHours = true;
|
|
9702
|
+
this.isMinutes = false;
|
|
9703
|
+
this.timeMenu = false;
|
|
9704
|
+
this.emitInput(null);
|
|
9705
|
+
}
|
|
9706
|
+
validate() {
|
|
9707
|
+
let funcResult = null;
|
|
9708
|
+
this.validationMessage = '';
|
|
9709
|
+
this.validRules.forEach(func => {
|
|
9710
|
+
funcResult = func(this.timeString);
|
|
9711
|
+
if (funcResult !== true) {
|
|
9712
|
+
this.validationMessage = funcResult;
|
|
9713
|
+
}
|
|
9714
|
+
});
|
|
9715
|
+
return !this.validationMessage;
|
|
9716
|
+
}
|
|
9717
|
+
get hoursString() {
|
|
9718
|
+
if (!this.$utils.isDefined(this.hours)) {
|
|
9719
|
+
return '';
|
|
9720
|
+
}
|
|
9721
|
+
return ('0' + this.hours).slice(-2);
|
|
9722
|
+
}
|
|
9723
|
+
get minutesString() {
|
|
9724
|
+
if (!this.$utils.isDefined(this.minutes)) {
|
|
9725
|
+
return '';
|
|
9726
|
+
}
|
|
9727
|
+
return ('0' + this.minutes).slice(-2);
|
|
9728
|
+
}
|
|
9729
|
+
get timeString() {
|
|
9730
|
+
if (!this.hoursString && !this.minutesString) {
|
|
9731
|
+
return '';
|
|
9732
|
+
}
|
|
9733
|
+
return `${this.hoursString}:${this.minutesString}`;
|
|
9734
|
+
}
|
|
9735
|
+
};
|
|
9736
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9737
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
9738
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", String)
|
|
9739
|
+
], TimepickerComponent.prototype, "modelValue", void 0);
|
|
9740
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9741
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
9742
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", String)
|
|
9743
|
+
], TimepickerComponent.prototype, "inputHint", void 0);
|
|
9744
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9745
|
+
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
9746
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
9747
|
+
], TimepickerComponent.prototype, "form", void 0);
|
|
9748
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9749
|
+
Emit('update:model-value'),
|
|
9750
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9751
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", [String]),
|
|
9752
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9753
|
+
], TimepickerComponent.prototype, "emitInput", null);
|
|
9754
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9755
|
+
Emit('blur'),
|
|
9756
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9757
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", [String]),
|
|
9758
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9759
|
+
], TimepickerComponent.prototype, "emitBlur", null);
|
|
9760
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9761
|
+
(0,external_vue_property_decorator_.Watch)('modelValue', { immediate: true }),
|
|
9762
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9763
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", [String]),
|
|
9764
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9765
|
+
], TimepickerComponent.prototype, "onModelValueChanged", null);
|
|
9766
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9767
|
+
(0,external_vue_property_decorator_.Watch)('timeMenu'),
|
|
9768
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9769
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9770
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9771
|
+
], TimepickerComponent.prototype, "onTimeMenuChanged", null);
|
|
9772
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9773
|
+
(0,external_vue_property_decorator_.Watch)('timeString'),
|
|
9774
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9775
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9776
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9777
|
+
], TimepickerComponent.prototype, "onTimeChanged", null);
|
|
9778
|
+
TimepickerComponent = ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9779
|
+
(0,external_vue_class_component_.Options)({
|
|
9780
|
+
components: {
|
|
9781
|
+
'ld-label': ld_label
|
|
9782
|
+
}
|
|
9783
|
+
})
|
|
9784
|
+
], TimepickerComponent);
|
|
9785
|
+
/* harmony default export */ const ld_timepickervue_type_script_lang_ts_external = (TimepickerComponent);
|
|
9786
|
+
|
|
9787
|
+
;// CONCATENATED MODULE: ./src/ld-timepicker/ld-timepicker.ts?vue&type=script&lang=ts&external
|
|
9788
|
+
|
|
9789
|
+
;// CONCATENATED MODULE: ./src/ld-timepicker/ld-timepicker.vue
|
|
9790
|
+
|
|
9791
|
+
|
|
9792
|
+
|
|
9793
|
+
|
|
9794
|
+
;
|
|
9795
|
+
|
|
9796
|
+
|
|
9797
|
+
const ld_timepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_timepickervue_type_script_lang_ts_external, [['render',ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_render],['__scopeId',"data-v-256abd0d"]])
|
|
9798
|
+
|
|
9799
|
+
/* harmony default export */ const ld_timepicker = (ld_timepicker_exports_);
|
|
9800
|
+
;// CONCATENATED MODULE: ./src/ld-timepicker/index.ts
|
|
9801
|
+
|
|
9802
|
+
function ld_timepicker_reg(vue, options) {
|
|
9803
|
+
vue.component(options.aliases['ld-timepicker'], ld_timepicker);
|
|
9804
|
+
}
|
|
9805
|
+
/* harmony default export */ const src_ld_timepicker = (ld_timepicker_reg);
|
|
9806
|
+
|
|
9807
|
+
;// CONCATENATED MODULE: ./src/utils/delay.ts
|
|
9808
|
+
async function delay(timeout) {
|
|
9809
|
+
return new Promise(resolve => setTimeout(() => resolve(), timeout));
|
|
9810
|
+
}
|
|
9811
|
+
|
|
9812
|
+
;// CONCATENATED MODULE: ./src/utils/datetime.ts
|
|
9813
|
+
function dateLocalToISO(value) {
|
|
9814
|
+
const parsed = /^(\d\d?).(\d\d?).(\d\d\d?\d?)$/.exec(value);
|
|
9815
|
+
let year = '';
|
|
9816
|
+
let month = '';
|
|
9817
|
+
let day = '';
|
|
9818
|
+
if (parsed[1]) {
|
|
9819
|
+
day = parsed[1].length === 1 ? '0' + parsed[1] : parsed[1];
|
|
9820
|
+
}
|
|
9821
|
+
if (parsed[2]) {
|
|
9822
|
+
month = parsed[2].length === 1 ? '0' + parsed[2] : parsed[2];
|
|
9823
|
+
}
|
|
9824
|
+
if (parsed[3]) {
|
|
9825
|
+
year = parsed[3];
|
|
9826
|
+
}
|
|
9827
|
+
if (day && month && year) {
|
|
9828
|
+
return `${year}-${month}-${day}`;
|
|
9829
|
+
}
|
|
9830
|
+
return '';
|
|
9831
|
+
}
|
|
9832
|
+
/**
|
|
8887
9833
|
* Преобразует дату к формату yyyy-MM-ddThh:mm:ss+hh:mm (например, 2020-11-24T12:47:45+03:00)
|
|
8888
9834
|
* @param dt Date
|
|
8889
9835
|
*/
|
|
@@ -9272,6 +10218,8 @@ const ActiveDirectiveOptions = {
|
|
|
9272
10218
|
|
|
9273
10219
|
|
|
9274
10220
|
|
|
10221
|
+
|
|
10222
|
+
|
|
9275
10223
|
|
|
9276
10224
|
|
|
9277
10225
|
|
|
@@ -9299,6 +10247,8 @@ const ldmuiPlugin = {
|
|
|
9299
10247
|
'ld-radiogroup': options.aliases?.['ld-radiogroup'] ?? 'ld-radiogroup',
|
|
9300
10248
|
'ld-textarea': options.aliases?.['ld-textarea'] ?? 'ld-textarea',
|
|
9301
10249
|
'ld-select': options.aliases?.['ld-select'] ?? 'ld-select',
|
|
10250
|
+
'ld-combobox': options.aliases?.['ld-combobox'] ?? 'ld-combobox',
|
|
10251
|
+
'ld-timepicker': options.aliases?.['ld-timepicker'] ?? 'ld-timepicker',
|
|
9302
10252
|
};
|
|
9303
10253
|
vue.config.globalProperties.$utils = {
|
|
9304
10254
|
...utils_namespaceObject,
|
|
@@ -9331,6 +10281,8 @@ const ldmuiPlugin = {
|
|
|
9331
10281
|
src_ld_radiogroup(vue, options);
|
|
9332
10282
|
src_ld_textarea(vue, options);
|
|
9333
10283
|
src_ld_select(vue, options);
|
|
10284
|
+
src_ld_combobox(vue, options);
|
|
10285
|
+
src_ld_timepicker(vue, options);
|
|
9334
10286
|
},
|
|
9335
10287
|
};
|
|
9336
10288
|
/* harmony default export */ const src = (ldmuiPlugin);
|