@ldmjs/ui 1.0.0-dev-14 → 1.0.0-dev-17
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/LICENSE +21 -21
- package/README.md +16 -1
- package/dist/calendar.js +1 -1
- package/dist/css/index.css +6 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +700 -71
- package/dist/scss/_inputs.scss +9 -0
- package/dist/types/options.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1845,12 +1845,12 @@ function ld_breadcrumbs_reg(vue, options) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
/* harmony default export */ const src_ld_breadcrumbs = (ld_breadcrumbs_reg);
|
|
1847
1847
|
|
|
1848
|
-
;// 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-edit-text/ld-edit-text.vue?vue&type=template&id=
|
|
1848
|
+
;// 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-edit-text/ld-edit-text.vue?vue&type=template&id=5dac00fe&scoped=true&ts=true
|
|
1849
1849
|
|
|
1850
|
-
const
|
|
1851
|
-
const
|
|
1852
|
-
const
|
|
1853
|
-
const _hoisted_3 = /*#__PURE__*/
|
|
1850
|
+
const ld_edit_textvue_type_template_id_5dac00fe_scoped_true_ts_true_withScopeId = n => ((0,external_vue_.pushScopeId)("data-v-5dac00fe"), n = n(), (0,external_vue_.popScopeId)(), n);
|
|
1851
|
+
const ld_edit_textvue_type_template_id_5dac00fe_scoped_true_ts_true_hoisted_1 = { class: "ld-edit-text" };
|
|
1852
|
+
const ld_edit_textvue_type_template_id_5dac00fe_scoped_true_ts_true_hoisted_2 = { key: 0 };
|
|
1853
|
+
const _hoisted_3 = /*#__PURE__*/ ld_edit_textvue_type_template_id_5dac00fe_scoped_true_ts_true_withScopeId(() => /*#__PURE__*/ (0,external_vue_.createElementVNode)("span", null, "Показать пароль", -1));
|
|
1854
1854
|
const _hoisted_4 = {
|
|
1855
1855
|
key: 1,
|
|
1856
1856
|
class: "d-flex w-100 flex-column",
|
|
@@ -1864,7 +1864,7 @@ const _hoisted_6 = {
|
|
|
1864
1864
|
key: 1,
|
|
1865
1865
|
class: "v-input__details textbox-validate"
|
|
1866
1866
|
};
|
|
1867
|
-
function
|
|
1867
|
+
function ld_edit_textvue_type_template_id_5dac00fe_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1868
1868
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
1869
1869
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
1870
1870
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
@@ -1873,7 +1873,7 @@ function ld_edit_textvue_type_template_id_b6178fe4_scoped_true_ts_true_render(_c
|
|
|
1873
1873
|
const _component_imask_input = (0,external_vue_.resolveComponent)("imask-input");
|
|
1874
1874
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
1875
1875
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
1876
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
1876
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_5dac00fe_scoped_true_ts_true_hoisted_1, [
|
|
1877
1877
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
1878
1878
|
default: (0,external_vue_.withCtx)(() => [
|
|
1879
1879
|
(_ctx.label)
|
|
@@ -1901,7 +1901,7 @@ function ld_edit_textvue_type_template_id_b6178fe4_scoped_true_ts_true_render(_c
|
|
|
1901
1901
|
variant: "outlined",
|
|
1902
1902
|
"persistent-hint": _ctx.persistentHint,
|
|
1903
1903
|
rules: _ctx.validRules,
|
|
1904
|
-
"validate-on":
|
|
1904
|
+
"validate-on": "input",
|
|
1905
1905
|
"validation-value": _ctx.type === 'password' ? _ctx.savedModelValue : _ctx.modelValue,
|
|
1906
1906
|
placeholder: _ctx.placeholder,
|
|
1907
1907
|
disabled: _ctx.disabled,
|
|
@@ -1979,7 +1979,7 @@ function ld_edit_textvue_type_template_id_b6178fe4_scoped_true_ts_true_render(_c
|
|
|
1979
1979
|
default: (0,external_vue_.withCtx)(() => [
|
|
1980
1980
|
(0,external_vue_.createTextVNode)(),
|
|
1981
1981
|
(_ctx.passwordVisible)
|
|
1982
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
1982
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_5dac00fe_scoped_true_ts_true_hoisted_2, "Скрыть пароль"))
|
|
1983
1983
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
1984
1984
|
(0,external_vue_.createTextVNode)(),
|
|
1985
1985
|
_hoisted_3
|
|
@@ -2002,7 +2002,7 @@ function ld_edit_textvue_type_template_id_b6178fe4_scoped_true_ts_true_render(_c
|
|
|
2002
2002
|
key: "1"
|
|
2003
2003
|
}
|
|
2004
2004
|
: undefined
|
|
2005
|
-
]), 1032, ["model-value", "type", "class", "persistent-hint", "rules", "
|
|
2005
|
+
]), 1032, ["model-value", "type", "class", "persistent-hint", "rules", "validation-value", "placeholder", "disabled", "readonly", "hint", "mask", "tabindex", "maxlength", "autofocus", "hide-details", "prefix", "suffix", "clearable", "error", "error-messages", "prepend-inner-icon", "autocomplete", "onChange", "onUpdate:modelValue", "onBlur", "onFocus", "onClick", "onKeydown", "onCopy"]))
|
|
2006
2006
|
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", _hoisted_4, [
|
|
2007
2007
|
(0,external_vue_.createVNode)(_component_imask_input, {
|
|
2008
2008
|
ref: "maskInput",
|
|
@@ -2051,7 +2051,7 @@ function ld_edit_textvue_type_template_id_b6178fe4_scoped_true_ts_true_render(_c
|
|
|
2051
2051
|
]));
|
|
2052
2052
|
}
|
|
2053
2053
|
|
|
2054
|
-
;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=
|
|
2054
|
+
;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=5dac00fe&scoped=true&ts=true
|
|
2055
2055
|
|
|
2056
2056
|
;// CONCATENATED MODULE: ./src/decorators/emit.decorator.ts
|
|
2057
2057
|
|
|
@@ -2345,6 +2345,41 @@ grid_mixin_decorate([
|
|
|
2345
2345
|
grid_mixin_metadata("design:returntype", void 0)
|
|
2346
2346
|
], GridMixin.prototype, "onMobileViewChanged", null);
|
|
2347
2347
|
|
|
2348
|
+
;// CONCATENATED MODULE: ./src/utils/UIDGenerator.ts
|
|
2349
|
+
function uidGen(len = 6, format) {
|
|
2350
|
+
let result = '';
|
|
2351
|
+
let dic = '';
|
|
2352
|
+
switch (format) {
|
|
2353
|
+
case 'a-z':
|
|
2354
|
+
dic = 'abcdefghijklmnopqrstuvwxyz';
|
|
2355
|
+
break;
|
|
2356
|
+
case 'A-Z':
|
|
2357
|
+
dic = 'ABCDEFGHIJKLMNOPQRSTUWVXYZ';
|
|
2358
|
+
break;
|
|
2359
|
+
case '0-9':
|
|
2360
|
+
dic = '1234567890';
|
|
2361
|
+
break;
|
|
2362
|
+
case 'a-zA-Z':
|
|
2363
|
+
dic = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ';
|
|
2364
|
+
break;
|
|
2365
|
+
case 'a-z0-9':
|
|
2366
|
+
dic = 'abcdefghijklmnopqrstuvwxyz1234567890';
|
|
2367
|
+
break;
|
|
2368
|
+
case 'A-Z0-9':
|
|
2369
|
+
dic = 'ABCDEFGHIJKLMNOPQRSTUWVXYZ1234567890';
|
|
2370
|
+
break;
|
|
2371
|
+
default:
|
|
2372
|
+
dic = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ1234567890';
|
|
2373
|
+
}
|
|
2374
|
+
for (let i = 0; i < len; i++) {
|
|
2375
|
+
result += dic.charAt(Math.floor(Math.random() * dic.length));
|
|
2376
|
+
}
|
|
2377
|
+
if (format === '0-9') {
|
|
2378
|
+
return Number(result);
|
|
2379
|
+
}
|
|
2380
|
+
return result;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2348
2383
|
// EXTERNAL MODULE: external "@vuelidate/validators"
|
|
2349
2384
|
var validators_ = __webpack_require__(887);
|
|
2350
2385
|
;// CONCATENATED MODULE: ./src/mixins/validators.ts
|
|
@@ -2494,41 +2529,6 @@ const validators = {
|
|
|
2494
2529
|
};
|
|
2495
2530
|
/* harmony default export */ const mixins_validators = ({});
|
|
2496
2531
|
|
|
2497
|
-
;// CONCATENATED MODULE: ./src/utils/UIDGenerator.ts
|
|
2498
|
-
function uidGen(len = 6, format) {
|
|
2499
|
-
let result = '';
|
|
2500
|
-
let dic = '';
|
|
2501
|
-
switch (format) {
|
|
2502
|
-
case 'a-z':
|
|
2503
|
-
dic = 'abcdefghijklmnopqrstuvwxyz';
|
|
2504
|
-
break;
|
|
2505
|
-
case 'A-Z':
|
|
2506
|
-
dic = 'ABCDEFGHIJKLMNOPQRSTUWVXYZ';
|
|
2507
|
-
break;
|
|
2508
|
-
case '0-9':
|
|
2509
|
-
dic = '1234567890';
|
|
2510
|
-
break;
|
|
2511
|
-
case 'a-zA-Z':
|
|
2512
|
-
dic = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ';
|
|
2513
|
-
break;
|
|
2514
|
-
case 'a-z0-9':
|
|
2515
|
-
dic = 'abcdefghijklmnopqrstuvwxyz1234567890';
|
|
2516
|
-
break;
|
|
2517
|
-
case 'A-Z0-9':
|
|
2518
|
-
dic = 'ABCDEFGHIJKLMNOPQRSTUWVXYZ1234567890';
|
|
2519
|
-
break;
|
|
2520
|
-
default:
|
|
2521
|
-
dic = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ1234567890';
|
|
2522
|
-
}
|
|
2523
|
-
for (let i = 0; i < len; i++) {
|
|
2524
|
-
result += dic.charAt(Math.floor(Math.random() * dic.length));
|
|
2525
|
-
}
|
|
2526
|
-
if (format === '0-9') {
|
|
2527
|
-
return Number(result);
|
|
2528
|
-
}
|
|
2529
|
-
return result;
|
|
2530
|
-
}
|
|
2531
|
-
|
|
2532
2532
|
;// CONCATENATED MODULE: ./src/mixins/validatable.mixin.ts
|
|
2533
2533
|
var validatable_mixin_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2534
2534
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -2944,7 +2944,7 @@ EditTextComponent = ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
|
2944
2944
|
;
|
|
2945
2945
|
|
|
2946
2946
|
|
|
2947
|
-
const ld_edit_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_textvue_type_script_lang_ts_external, [['render',
|
|
2947
|
+
const ld_edit_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_textvue_type_script_lang_ts_external, [['render',ld_edit_textvue_type_template_id_5dac00fe_scoped_true_ts_true_render],['__scopeId',"data-v-5dac00fe"]])
|
|
2948
2948
|
|
|
2949
2949
|
/* harmony default export */ const ld_edit_text = (ld_edit_text_exports_);
|
|
2950
2950
|
;// CONCATENATED MODULE: ./src/ld-edit-text/index.ts
|
|
@@ -3790,7 +3790,12 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
3790
3790
|
this.emitUpdateModelValue(value instanceof Date ? value : new Date(value));
|
|
3791
3791
|
}
|
|
3792
3792
|
if (typeof this.modelValue === 'string') {
|
|
3793
|
-
|
|
3793
|
+
if (typeof value === 'string') {
|
|
3794
|
+
this.emitUpdateModelValue(value);
|
|
3795
|
+
}
|
|
3796
|
+
else {
|
|
3797
|
+
this.emitUpdateModelValue(this.$utils.datetime.toServerString(value));
|
|
3798
|
+
}
|
|
3794
3799
|
}
|
|
3795
3800
|
}
|
|
3796
3801
|
}
|
|
@@ -4512,25 +4517,25 @@ function ld_page_toolbar_reg(vue, options) {
|
|
|
4512
4517
|
}
|
|
4513
4518
|
/* harmony default export */ const src_ld_page_toolbar = (ld_page_toolbar_reg);
|
|
4514
4519
|
|
|
4515
|
-
;// 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=
|
|
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=5a9ca916&scoped=true&ts=true
|
|
4516
4521
|
|
|
4517
|
-
const
|
|
4518
|
-
const
|
|
4519
|
-
const
|
|
4522
|
+
const ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-5a9ca916"), n = n(), _popScopeId(), n);
|
|
4523
|
+
const ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_1 = { class: "text-crop" };
|
|
4524
|
+
const ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_2 = {
|
|
4520
4525
|
key: 0,
|
|
4521
4526
|
class: "d-flex align-center"
|
|
4522
4527
|
};
|
|
4523
|
-
const
|
|
4524
|
-
const
|
|
4528
|
+
const ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_3 = { class: "d-flex flex-column ml-2 justify-center" };
|
|
4529
|
+
const ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_4 = {
|
|
4525
4530
|
key: 0,
|
|
4526
4531
|
class: "grey--text",
|
|
4527
4532
|
style: { "font-size": "var(--font-size--1)" }
|
|
4528
4533
|
};
|
|
4529
|
-
const
|
|
4534
|
+
const ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_5 = {
|
|
4530
4535
|
key: 0,
|
|
4531
4536
|
class: "select-list-textbox-loading"
|
|
4532
4537
|
};
|
|
4533
|
-
const
|
|
4538
|
+
const ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_6 = {
|
|
4534
4539
|
key: 0,
|
|
4535
4540
|
class: "select-list-textbox-validate"
|
|
4536
4541
|
};
|
|
@@ -4538,7 +4543,7 @@ const _hoisted_7 = {
|
|
|
4538
4543
|
key: 0,
|
|
4539
4544
|
class: "select-list-textbox-validate"
|
|
4540
4545
|
};
|
|
4541
|
-
function
|
|
4546
|
+
function ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4542
4547
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
4543
4548
|
const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
|
|
4544
4549
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
@@ -4612,7 +4617,7 @@ function ld_select_list_boxvue_type_template_id_b48ca034_scoped_true_ts_true_ren
|
|
|
4612
4617
|
"onClick:close": ($event) => (_ctx.onRemoveItem(option))
|
|
4613
4618
|
}, {
|
|
4614
4619
|
default: (0,external_vue_.withCtx)(() => [
|
|
4615
|
-
(0,external_vue_.createElementVNode)("span",
|
|
4620
|
+
(0,external_vue_.createElementVNode)("span", ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_1, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
|
|
4616
4621
|
]),
|
|
4617
4622
|
_: 2
|
|
4618
4623
|
}, 1032, ["color", "closable", "onClick:close"]))
|
|
@@ -4627,7 +4632,7 @@ function ld_select_list_boxvue_type_template_id_b48ca034_scoped_true_ts_true_ren
|
|
|
4627
4632
|
(0,external_vue_.createVNode)(_component_v_col, { class: "d-flex align-center" }, {
|
|
4628
4633
|
default: (0,external_vue_.withCtx)(() => [
|
|
4629
4634
|
(_ctx.multiselect)
|
|
4630
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
4635
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_2, [
|
|
4631
4636
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-checkbox']), {
|
|
4632
4637
|
key: JSON.stringify(option),
|
|
4633
4638
|
"model-value": _ctx.checkedItems,
|
|
@@ -4637,13 +4642,13 @@ function ld_select_list_boxvue_type_template_id_b48ca034_scoped_true_ts_true_ren
|
|
|
4637
4642
|
]))
|
|
4638
4643
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
4639
4644
|
(0,external_vue_.createTextVNode)(),
|
|
4640
|
-
(0,external_vue_.createElementVNode)("div",
|
|
4645
|
+
(0,external_vue_.createElementVNode)("div", ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_3, [
|
|
4641
4646
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), () => [
|
|
4642
|
-
(0,external_vue_.createElementVNode)("div", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, _ctx.
|
|
4647
|
+
(0,external_vue_.createElementVNode)("div", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, _ctx.itemTitle)), 1)
|
|
4643
4648
|
], true),
|
|
4644
4649
|
(0,external_vue_.createTextVNode)(),
|
|
4645
4650
|
(_ctx.optionHint)
|
|
4646
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
4651
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_4, [
|
|
4647
4652
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option-hint", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option })), () => [
|
|
4648
4653
|
(0,external_vue_.createTextVNode)("\r\n no slot \"option-hint\" found\r\n ")
|
|
4649
4654
|
], true)
|
|
@@ -4684,7 +4689,7 @@ function ld_select_list_boxvue_type_template_id_b48ca034_scoped_true_ts_true_ren
|
|
|
4684
4689
|
}, 8, ["disabled", "loading", "onClick"]),
|
|
4685
4690
|
(0,external_vue_.createTextVNode)(),
|
|
4686
4691
|
(_ctx.loading)
|
|
4687
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
4692
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_5))
|
|
4688
4693
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
4689
4694
|
]),
|
|
4690
4695
|
_: 3
|
|
@@ -4694,7 +4699,7 @@ function ld_select_list_boxvue_type_template_id_b48ca034_scoped_true_ts_true_ren
|
|
|
4694
4699
|
}),
|
|
4695
4700
|
(0,external_vue_.createTextVNode)(),
|
|
4696
4701
|
(!_ctx.hideDetails)
|
|
4697
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
4702
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_5a9ca916_scoped_true_ts_true_hoisted_6, [
|
|
4698
4703
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
4699
4704
|
default: (0,external_vue_.withCtx)(() => [
|
|
4700
4705
|
(_ctx.showHint)
|
|
@@ -4728,7 +4733,7 @@ function ld_select_list_boxvue_type_template_id_b48ca034_scoped_true_ts_true_ren
|
|
|
4728
4733
|
"onClick:close": _cache[1] || (_cache[1] = ($event) => (_ctx.onRemoveItem(_ctx.singeItem)))
|
|
4729
4734
|
}, {
|
|
4730
4735
|
default: (0,external_vue_.withCtx)(() => [
|
|
4731
|
-
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(_ctx.singeItem, this.
|
|
4736
|
+
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(_ctx.singeItem, this.itemTitle)), 1)
|
|
4732
4737
|
]),
|
|
4733
4738
|
_: 1
|
|
4734
4739
|
}, 8, ["closable", "color"]))
|
|
@@ -4746,7 +4751,7 @@ function ld_select_list_boxvue_type_template_id_b48ca034_scoped_true_ts_true_ren
|
|
|
4746
4751
|
}));
|
|
4747
4752
|
}
|
|
4748
4753
|
|
|
4749
|
-
;// CONCATENATED MODULE: ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=
|
|
4754
|
+
;// CONCATENATED MODULE: ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=5a9ca916&scoped=true&ts=true
|
|
4750
4755
|
|
|
4751
4756
|
// EXTERNAL MODULE: external "./multiselect.js"
|
|
4752
4757
|
var external_multiselect_js_ = __webpack_require__(9225);
|
|
@@ -7330,8 +7335,8 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7330
7335
|
return this.readedItems;
|
|
7331
7336
|
}
|
|
7332
7337
|
return this.readedItems.filter(item => {
|
|
7333
|
-
if (this.
|
|
7334
|
-
const value = String(this.$utils.deepValueGetter(item, this.
|
|
7338
|
+
if (this.itemTitle in item) {
|
|
7339
|
+
const value = String(this.$utils.deepValueGetter(item, this.itemTitle));
|
|
7335
7340
|
return value.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1;
|
|
7336
7341
|
}
|
|
7337
7342
|
});
|
|
@@ -7367,7 +7372,7 @@ ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
|
7367
7372
|
ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
7368
7373
|
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'value' }),
|
|
7369
7374
|
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
7370
|
-
], SelectListBoxComponent.prototype, "
|
|
7375
|
+
], SelectListBoxComponent.prototype, "itemTitle", void 0);
|
|
7371
7376
|
ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
7372
7377
|
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'id' }),
|
|
7373
7378
|
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
@@ -7470,7 +7475,7 @@ SelectListBoxComponent = ld_select_list_boxvue_type_script_lang_ts_external_deco
|
|
|
7470
7475
|
;
|
|
7471
7476
|
|
|
7472
7477
|
|
|
7473
|
-
const ld_select_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_select_list_boxvue_type_script_lang_ts_external, [['render',
|
|
7478
|
+
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_5a9ca916_scoped_true_ts_true_render],['__scopeId',"data-v-5a9ca916"]])
|
|
7474
7479
|
|
|
7475
7480
|
/* harmony default export */ const ld_select_list_box = (ld_select_list_box_exports_);
|
|
7476
7481
|
;// CONCATENATED MODULE: ./src/ld-select-list-box/index.ts
|
|
@@ -8205,6 +8210,607 @@ function ld_radiogroup_reg(vue, options) {
|
|
|
8205
8210
|
}
|
|
8206
8211
|
/* harmony default export */ const src_ld_radiogroup = (ld_radiogroup_reg);
|
|
8207
8212
|
|
|
8213
|
+
;// 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-textarea/ld-textarea.vue?vue&type=template&id=515ad14b&scoped=true&ts=true
|
|
8214
|
+
|
|
8215
|
+
const ld_textareavue_type_template_id_515ad14b_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-515ad14b"), n = n(), _popScopeId(), n);
|
|
8216
|
+
const ld_textareavue_type_template_id_515ad14b_scoped_true_ts_true_hoisted_1 = { class: "ld-textarea" };
|
|
8217
|
+
function ld_textareavue_type_template_id_515ad14b_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8218
|
+
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
8219
|
+
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
8220
|
+
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
8221
|
+
const _component_v_textarea = (0,external_vue_.resolveComponent)("v-textarea");
|
|
8222
|
+
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
8223
|
+
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
8224
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_textareavue_type_template_id_515ad14b_scoped_true_ts_true_hoisted_1, [
|
|
8225
|
+
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
8226
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8227
|
+
(_ctx.label)
|
|
8228
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
|
|
8229
|
+
key: 0,
|
|
8230
|
+
class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses]),
|
|
8231
|
+
label: _ctx.label,
|
|
8232
|
+
required: _ctx.required,
|
|
8233
|
+
"align-label-to-right": _ctx.alignLabelToRight
|
|
8234
|
+
}, null, 8, ["class", "label", "required", "align-label-to-right"]))
|
|
8235
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
8236
|
+
(0,external_vue_.createTextVNode)(),
|
|
8237
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
8238
|
+
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
8239
|
+
}, {
|
|
8240
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8241
|
+
(0,external_vue_.createVNode)(_component_v_textarea, {
|
|
8242
|
+
modelValue: _ctx.internalModel,
|
|
8243
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => ((_ctx.internalModel) = $event)),
|
|
8244
|
+
ref: "vInput",
|
|
8245
|
+
type: _ctx.type,
|
|
8246
|
+
class: (0,external_vue_.normalizeClass)({ disabled: _ctx.disabled, 'none-resizable': !_ctx.resizable }),
|
|
8247
|
+
"single-line": "",
|
|
8248
|
+
variant: "outlined",
|
|
8249
|
+
"hide-details": _ctx.hideDetails,
|
|
8250
|
+
"persistent-hint": _ctx.persistentHint,
|
|
8251
|
+
rules: _ctx.validRules,
|
|
8252
|
+
"validate-on": "input",
|
|
8253
|
+
placeholder: _ctx.placeholder,
|
|
8254
|
+
disabled: _ctx.disabled,
|
|
8255
|
+
readonly: _ctx.readonly,
|
|
8256
|
+
hint: _ctx.inputHint,
|
|
8257
|
+
tabindex: _ctx.tabIndex,
|
|
8258
|
+
maxlength: _ctx.maxlength,
|
|
8259
|
+
error: _ctx.showError,
|
|
8260
|
+
"error-messages": _ctx.validationMessage,
|
|
8261
|
+
rows: _ctx.rows,
|
|
8262
|
+
onBlur: _ctx.onBlur
|
|
8263
|
+
}, {
|
|
8264
|
+
"append-inner": (0,external_vue_.withCtx)(() => [
|
|
8265
|
+
(_ctx.clearIcon && _ctx.modelValue)
|
|
8266
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
8267
|
+
key: 0,
|
|
8268
|
+
color: "error",
|
|
8269
|
+
onClick: _cache[0] || (_cache[0] = ($event) => (_ctx.emitUpdateValue('')))
|
|
8270
|
+
}, {
|
|
8271
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8272
|
+
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
8273
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8274
|
+
(0,external_vue_.createTextVNode)("close")
|
|
8275
|
+
]),
|
|
8276
|
+
_: 1
|
|
8277
|
+
})
|
|
8278
|
+
]),
|
|
8279
|
+
_: 1
|
|
8280
|
+
}))
|
|
8281
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
8282
|
+
]),
|
|
8283
|
+
_: 1
|
|
8284
|
+
}, 8, ["modelValue", "type", "class", "hide-details", "persistent-hint", "rules", "placeholder", "disabled", "readonly", "hint", "tabindex", "maxlength", "error", "error-messages", "rows", "onBlur"])
|
|
8285
|
+
]),
|
|
8286
|
+
_: 1
|
|
8287
|
+
}, 8, ["class"])
|
|
8288
|
+
]),
|
|
8289
|
+
_: 1
|
|
8290
|
+
})
|
|
8291
|
+
]));
|
|
8292
|
+
}
|
|
8293
|
+
|
|
8294
|
+
;// CONCATENATED MODULE: ./src/ld-textarea/ld-textarea.vue?vue&type=template&id=515ad14b&scoped=true&ts=true
|
|
8295
|
+
|
|
8296
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-textarea/ld-textarea.ts?vue&type=script&lang=ts&external
|
|
8297
|
+
var ld_textareavue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8298
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8299
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8300
|
+
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;
|
|
8301
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8302
|
+
};
|
|
8303
|
+
var ld_textareavue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
8304
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8305
|
+
};
|
|
8306
|
+
|
|
8307
|
+
|
|
8308
|
+
|
|
8309
|
+
|
|
8310
|
+
|
|
8311
|
+
|
|
8312
|
+
|
|
8313
|
+
/**
|
|
8314
|
+
* @displayName ld-textarea
|
|
8315
|
+
*/
|
|
8316
|
+
let TextareaComponent = class TextareaComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
|
|
8317
|
+
constructor() {
|
|
8318
|
+
super(...arguments);
|
|
8319
|
+
this.internalModel = '';
|
|
8320
|
+
}
|
|
8321
|
+
emitUpdateValue(value) {
|
|
8322
|
+
return value;
|
|
8323
|
+
}
|
|
8324
|
+
emitBlur(event) {
|
|
8325
|
+
return event;
|
|
8326
|
+
}
|
|
8327
|
+
onTextChanged() {
|
|
8328
|
+
this.internalModel = this.modelValue;
|
|
8329
|
+
this.validate();
|
|
8330
|
+
}
|
|
8331
|
+
onInternalModelChanged() {
|
|
8332
|
+
this.emitUpdateValue(this.internalModel);
|
|
8333
|
+
}
|
|
8334
|
+
created() {
|
|
8335
|
+
if (this.form) {
|
|
8336
|
+
this.form?.register(this, null);
|
|
8337
|
+
}
|
|
8338
|
+
this.internalModel = this.modelValue;
|
|
8339
|
+
}
|
|
8340
|
+
onBlur(event) {
|
|
8341
|
+
this.emitBlur(event);
|
|
8342
|
+
}
|
|
8343
|
+
validate() {
|
|
8344
|
+
let funcResult = null;
|
|
8345
|
+
this.validationMessage = '';
|
|
8346
|
+
for (const func of this.validRules) {
|
|
8347
|
+
if (this.validationMessage) {
|
|
8348
|
+
break;
|
|
8349
|
+
}
|
|
8350
|
+
funcResult = func(this.modelValue);
|
|
8351
|
+
if (typeof funcResult === 'string') {
|
|
8352
|
+
this.validationMessage = funcResult;
|
|
8353
|
+
}
|
|
8354
|
+
}
|
|
8355
|
+
return !this.validationMessage;
|
|
8356
|
+
}
|
|
8357
|
+
get appendIcon() {
|
|
8358
|
+
if (this.clearIcon && this.modelValue) {
|
|
8359
|
+
return 'close';
|
|
8360
|
+
}
|
|
8361
|
+
return '';
|
|
8362
|
+
}
|
|
8363
|
+
};
|
|
8364
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8365
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
8366
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", String)
|
|
8367
|
+
], TextareaComponent.prototype, "modelValue", void 0);
|
|
8368
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8369
|
+
(0,external_vue_property_decorator_.Prop)({ default: 'text' }),
|
|
8370
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", String)
|
|
8371
|
+
], TextareaComponent.prototype, "type", void 0);
|
|
8372
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8373
|
+
(0,external_vue_property_decorator_.Prop)({ default: false, type: Boolean }),
|
|
8374
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
8375
|
+
], TextareaComponent.prototype, "clearIcon", void 0);
|
|
8376
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8377
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
8378
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
8379
|
+
], TextareaComponent.prototype, "persistentHint", void 0);
|
|
8380
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8381
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
8382
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", String)
|
|
8383
|
+
], TextareaComponent.prototype, "inputHint", void 0);
|
|
8384
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8385
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
8386
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
8387
|
+
], TextareaComponent.prototype, "maxlength", void 0);
|
|
8388
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8389
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
8390
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
8391
|
+
], TextareaComponent.prototype, "rows", void 0);
|
|
8392
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8393
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
8394
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
8395
|
+
], TextareaComponent.prototype, "resizable", void 0);
|
|
8396
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8397
|
+
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
8398
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
8399
|
+
], TextareaComponent.prototype, "form", void 0);
|
|
8400
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8401
|
+
Emit('update:model-value'),
|
|
8402
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
8403
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:paramtypes", [String]),
|
|
8404
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
8405
|
+
], TextareaComponent.prototype, "emitUpdateValue", null);
|
|
8406
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8407
|
+
Emit('blur'),
|
|
8408
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
8409
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
8410
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
8411
|
+
], TextareaComponent.prototype, "emitBlur", null);
|
|
8412
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8413
|
+
(0,external_vue_property_decorator_.Watch)('modelValue'),
|
|
8414
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
8415
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
8416
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
8417
|
+
], TextareaComponent.prototype, "onTextChanged", null);
|
|
8418
|
+
ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8419
|
+
(0,external_vue_property_decorator_.Watch)('internalModel'),
|
|
8420
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
8421
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
8422
|
+
ld_textareavue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
8423
|
+
], TextareaComponent.prototype, "onInternalModelChanged", null);
|
|
8424
|
+
TextareaComponent = ld_textareavue_type_script_lang_ts_external_decorate([
|
|
8425
|
+
(0,external_vue_class_component_.Options)({
|
|
8426
|
+
components: {
|
|
8427
|
+
'ld-label': ld_label
|
|
8428
|
+
}
|
|
8429
|
+
})
|
|
8430
|
+
], TextareaComponent);
|
|
8431
|
+
/* harmony default export */ const ld_textareavue_type_script_lang_ts_external = (TextareaComponent);
|
|
8432
|
+
|
|
8433
|
+
;// CONCATENATED MODULE: ./src/ld-textarea/ld-textarea.ts?vue&type=script&lang=ts&external
|
|
8434
|
+
|
|
8435
|
+
;// CONCATENATED MODULE: ./src/ld-textarea/ld-textarea.vue
|
|
8436
|
+
|
|
8437
|
+
|
|
8438
|
+
|
|
8439
|
+
|
|
8440
|
+
;
|
|
8441
|
+
|
|
8442
|
+
|
|
8443
|
+
const ld_textarea_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_textareavue_type_script_lang_ts_external, [['render',ld_textareavue_type_template_id_515ad14b_scoped_true_ts_true_render],['__scopeId',"data-v-515ad14b"]])
|
|
8444
|
+
|
|
8445
|
+
/* harmony default export */ const ld_textarea = (ld_textarea_exports_);
|
|
8446
|
+
;// CONCATENATED MODULE: ./src/ld-textarea/index.ts
|
|
8447
|
+
|
|
8448
|
+
function ld_textarea_reg(vue, options) {
|
|
8449
|
+
vue.component(options.aliases['ld-textarea'], ld_textarea);
|
|
8450
|
+
}
|
|
8451
|
+
/* harmony default export */ const src_ld_textarea = (ld_textarea_reg);
|
|
8452
|
+
|
|
8453
|
+
;// 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=6124ddba&scoped=true&ts=true
|
|
8454
|
+
|
|
8455
|
+
const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-6124ddba"), n = n(), _popScopeId(), n);
|
|
8456
|
+
const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_1 = { class: "ld-select" };
|
|
8457
|
+
const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_2 = {
|
|
8458
|
+
key: 1,
|
|
8459
|
+
class: "text-crop"
|
|
8460
|
+
};
|
|
8461
|
+
const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_3 = { class: "justify mr-2 flex items-center" };
|
|
8462
|
+
const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_4 = ["checked"];
|
|
8463
|
+
function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8464
|
+
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
8465
|
+
const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
|
|
8466
|
+
const _component_v_icon = (0,external_vue_.resolveComponent)("v-icon");
|
|
8467
|
+
const _component_v_list_item = (0,external_vue_.resolveComponent)("v-list-item");
|
|
8468
|
+
const _component_v_select = (0,external_vue_.resolveComponent)("v-select");
|
|
8469
|
+
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
8470
|
+
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
8471
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_1, [
|
|
8472
|
+
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
8473
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8474
|
+
(_ctx.label)
|
|
8475
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
|
|
8476
|
+
key: 0,
|
|
8477
|
+
class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses]),
|
|
8478
|
+
label: _ctx.label,
|
|
8479
|
+
required: _ctx.required,
|
|
8480
|
+
"align-label-to-right": _ctx.alignLabelToRight
|
|
8481
|
+
}, null, 8, ["class", "label", "required", "align-label-to-right"]))
|
|
8482
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
8483
|
+
(0,external_vue_.createTextVNode)(),
|
|
8484
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
8485
|
+
class: (0,external_vue_.normalizeClass)([{ 'only-view': _ctx.readonly }, _ctx.inputSizeClasses])
|
|
8486
|
+
}, {
|
|
8487
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8488
|
+
(0,external_vue_.createVNode)(_component_v_select, {
|
|
8489
|
+
ref: "select",
|
|
8490
|
+
modelValue: _ctx.selected,
|
|
8491
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => ((_ctx.selected) = $event)),
|
|
8492
|
+
variant: "outlined",
|
|
8493
|
+
"item-value": _ctx.itemValue,
|
|
8494
|
+
"item-title": _ctx.itemTitle,
|
|
8495
|
+
items: _ctx.items,
|
|
8496
|
+
rules: _ctx.validRules,
|
|
8497
|
+
placeholder: _ctx.placeholder,
|
|
8498
|
+
"hide-details": _ctx.hideDetails,
|
|
8499
|
+
multiple: _ctx.multiselect,
|
|
8500
|
+
"return-object": _ctx.returnObject,
|
|
8501
|
+
error: Boolean(_ctx.validationMessage),
|
|
8502
|
+
"error-messages": _ctx.validationMessage,
|
|
8503
|
+
readonly: _ctx.readonly,
|
|
8504
|
+
disabled: _ctx.disabled,
|
|
8505
|
+
"menu-icon": "arrow_drop_down",
|
|
8506
|
+
onBlur: _ctx.onBlur,
|
|
8507
|
+
onFocus: _ctx.onFocus
|
|
8508
|
+
}, {
|
|
8509
|
+
selection: (0,external_vue_.withCtx)(({ item, index }) => [
|
|
8510
|
+
(_ctx.multiselect || _ctx.chips)
|
|
8511
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 0 }, [
|
|
8512
|
+
(index < _ctx.selectionShowCount)
|
|
8513
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_chip, {
|
|
8514
|
+
key: 0,
|
|
8515
|
+
class: "my-0.5",
|
|
8516
|
+
closable: _ctx.multiselect || _ctx.closableChips,
|
|
8517
|
+
"onClick:close": ($event) => (_ctx.onUnselect(item.raw))
|
|
8518
|
+
}, {
|
|
8519
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8520
|
+
(0,external_vue_.createTextVNode)((0,external_vue_.toDisplayString)(item.title), 1)
|
|
8521
|
+
]),
|
|
8522
|
+
_: 2
|
|
8523
|
+
}, 1032, ["closable", "onClick:close"]))
|
|
8524
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 1 }, [
|
|
8525
|
+
(Array.isArray(_ctx.selected) && index === _ctx.selectionShowCount)
|
|
8526
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_chip, {
|
|
8527
|
+
key: 0,
|
|
8528
|
+
class: "my-0.5",
|
|
8529
|
+
closable: false
|
|
8530
|
+
}, {
|
|
8531
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
8532
|
+
(0,external_vue_.createTextVNode)("\r\n + Еще " + (0,external_vue_.toDisplayString)(_ctx.selected.length - _ctx.selectionShowCount), 1)
|
|
8533
|
+
]),
|
|
8534
|
+
_: 1
|
|
8535
|
+
}))
|
|
8536
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
8537
|
+
], 64))
|
|
8538
|
+
], 64))
|
|
8539
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(item.title), 1))
|
|
8540
|
+
]),
|
|
8541
|
+
item: (0,external_vue_.withCtx)(({ item, props }) => [
|
|
8542
|
+
(0,external_vue_.createVNode)(_component_v_list_item, (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)(props)), (0,external_vue_.createSlots)({ _: 2 }, [
|
|
8543
|
+
(_ctx.multiselect)
|
|
8544
|
+
? {
|
|
8545
|
+
name: "prepend",
|
|
8546
|
+
fn: (0,external_vue_.withCtx)(() => [
|
|
8547
|
+
(0,external_vue_.createElementVNode)("label", ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_3, [
|
|
8548
|
+
(0,external_vue_.createElementVNode)("input", {
|
|
8549
|
+
ref: "checkbox",
|
|
8550
|
+
type: "checkbox",
|
|
8551
|
+
class: "d-none",
|
|
8552
|
+
checked: _ctx.itemSelected(item.raw)
|
|
8553
|
+
}, null, 8, ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_4),
|
|
8554
|
+
(0,external_vue_.createTextVNode)(),
|
|
8555
|
+
(0,external_vue_.createVNode)(_component_v_icon, {
|
|
8556
|
+
icon: "check",
|
|
8557
|
+
onClick: ($event) => (_ctx.onToggle(item.raw))
|
|
8558
|
+
}, null, 8, ["onClick"])
|
|
8559
|
+
])
|
|
8560
|
+
]),
|
|
8561
|
+
key: "0"
|
|
8562
|
+
}
|
|
8563
|
+
: undefined
|
|
8564
|
+
]), 1040)
|
|
8565
|
+
]),
|
|
8566
|
+
message: (0,external_vue_.withCtx)(({ message }) => [
|
|
8567
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
8568
|
+
class: (0,external_vue_.normalizeClass)({ 'error--text': _ctx.validationMessage, 'grey--text': !_ctx.validationMessage })
|
|
8569
|
+
}, (0,external_vue_.toDisplayString)(message), 3)
|
|
8570
|
+
]),
|
|
8571
|
+
_: 1
|
|
8572
|
+
}, 8, ["modelValue", "item-value", "item-title", "items", "rules", "placeholder", "hide-details", "multiple", "return-object", "error", "error-messages", "readonly", "disabled", "onBlur", "onFocus"])
|
|
8573
|
+
]),
|
|
8574
|
+
_: 1
|
|
8575
|
+
}, 8, ["class"])
|
|
8576
|
+
]),
|
|
8577
|
+
_: 1
|
|
8578
|
+
})
|
|
8579
|
+
]));
|
|
8580
|
+
}
|
|
8581
|
+
|
|
8582
|
+
;// CONCATENATED MODULE: ./src/ld-select/ld-select.vue?vue&type=template&id=6124ddba&scoped=true&ts=true
|
|
8583
|
+
|
|
8584
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-select/ld-select.ts?vue&type=script&lang=ts&external
|
|
8585
|
+
var ld_selectvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8586
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8587
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8588
|
+
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;
|
|
8589
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8590
|
+
};
|
|
8591
|
+
var ld_selectvue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
8592
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8593
|
+
};
|
|
8594
|
+
var ld_selectvue_type_script_lang_ts_external_a, ld_selectvue_type_script_lang_ts_external_b;
|
|
8595
|
+
|
|
8596
|
+
|
|
8597
|
+
|
|
8598
|
+
|
|
8599
|
+
|
|
8600
|
+
|
|
8601
|
+
/**
|
|
8602
|
+
* @displayName ld-select
|
|
8603
|
+
*/
|
|
8604
|
+
let SelectComponent = class SelectComponent extends (0,external_vue_property_decorator_.mixins)(InputMixin, GridMixin, ValidatableMixin) {
|
|
8605
|
+
constructor() {
|
|
8606
|
+
super(...arguments);
|
|
8607
|
+
this.selected = null;
|
|
8608
|
+
this.noEmit = true;
|
|
8609
|
+
}
|
|
8610
|
+
emitUpdateSelected(value) {
|
|
8611
|
+
return value;
|
|
8612
|
+
}
|
|
8613
|
+
emitBlur(value) {
|
|
8614
|
+
return value;
|
|
8615
|
+
}
|
|
8616
|
+
onSelectedChanged() {
|
|
8617
|
+
if (this.noEmit) {
|
|
8618
|
+
return;
|
|
8619
|
+
}
|
|
8620
|
+
this.emitUpdateSelected(this.selected);
|
|
8621
|
+
}
|
|
8622
|
+
onValueChanged() {
|
|
8623
|
+
if (this.$utils.isDefined(this.modelValue)) {
|
|
8624
|
+
this.selected = this.modelValue;
|
|
8625
|
+
}
|
|
8626
|
+
else {
|
|
8627
|
+
this.selected = null;
|
|
8628
|
+
}
|
|
8629
|
+
}
|
|
8630
|
+
created() {
|
|
8631
|
+
this.form?.register(this, null);
|
|
8632
|
+
if (this.$utils.isDefined(this.modelValue)) {
|
|
8633
|
+
this.selected = this.modelValue;
|
|
8634
|
+
}
|
|
8635
|
+
if (this.multiselect && !this.modelValue) {
|
|
8636
|
+
this.selected = [];
|
|
8637
|
+
}
|
|
8638
|
+
this.$nextTick(() => {
|
|
8639
|
+
this.noEmit = false;
|
|
8640
|
+
});
|
|
8641
|
+
}
|
|
8642
|
+
onBlur(e) {
|
|
8643
|
+
this.emitBlur(e);
|
|
8644
|
+
this.validate();
|
|
8645
|
+
}
|
|
8646
|
+
onFocus(e) {
|
|
8647
|
+
this.validationMessage = '';
|
|
8648
|
+
}
|
|
8649
|
+
onToggle(item) {
|
|
8650
|
+
if (this.itemSelected(item)) {
|
|
8651
|
+
this.onUnselect(item);
|
|
8652
|
+
}
|
|
8653
|
+
else {
|
|
8654
|
+
this.onSelect(this.valueOf(item));
|
|
8655
|
+
}
|
|
8656
|
+
}
|
|
8657
|
+
itemSelected(item) {
|
|
8658
|
+
if (!Array.isArray(this.selected) || !this.selected.length) {
|
|
8659
|
+
return false;
|
|
8660
|
+
}
|
|
8661
|
+
if (typeof item === 'string' || typeof item === 'number') {
|
|
8662
|
+
return this.selected.indexOf(item) > -1;
|
|
8663
|
+
}
|
|
8664
|
+
const index = this.selected.findIndex((el) => this.isIdentity(el, item));
|
|
8665
|
+
return index > -1;
|
|
8666
|
+
}
|
|
8667
|
+
onSelect(value) {
|
|
8668
|
+
if (this.isModelArray || this.multiselect) {
|
|
8669
|
+
if (!this.selected) {
|
|
8670
|
+
this.selected = [];
|
|
8671
|
+
}
|
|
8672
|
+
this.selected.push(this.valueOf(value));
|
|
8673
|
+
}
|
|
8674
|
+
else {
|
|
8675
|
+
this.selected = this.valueOf(value);
|
|
8676
|
+
}
|
|
8677
|
+
}
|
|
8678
|
+
onUnselect(item) {
|
|
8679
|
+
if (this.isModelArray) {
|
|
8680
|
+
this.selected = this.selected.filter((el) => !this.isIdentity(el, item));
|
|
8681
|
+
}
|
|
8682
|
+
else if (this.$utils.isDefined(this.selected) && !Array.isArray(this.selected)) {
|
|
8683
|
+
this.selected = null;
|
|
8684
|
+
}
|
|
8685
|
+
}
|
|
8686
|
+
valueOf(item) {
|
|
8687
|
+
if (typeof item === 'string' || typeof item === 'number') {
|
|
8688
|
+
return item;
|
|
8689
|
+
}
|
|
8690
|
+
if (this.returnObject) {
|
|
8691
|
+
return item;
|
|
8692
|
+
}
|
|
8693
|
+
return item[this.itemValue];
|
|
8694
|
+
}
|
|
8695
|
+
validate() {
|
|
8696
|
+
let funcResult = null;
|
|
8697
|
+
this.validationMessage = '';
|
|
8698
|
+
this.validRules.forEach(func => {
|
|
8699
|
+
funcResult = func(this.modelValue);
|
|
8700
|
+
if (typeof funcResult === 'string') {
|
|
8701
|
+
this.validationMessage = funcResult;
|
|
8702
|
+
}
|
|
8703
|
+
});
|
|
8704
|
+
return !this.validationMessage;
|
|
8705
|
+
}
|
|
8706
|
+
isIdentity(current, target) {
|
|
8707
|
+
const isSimple = (v) => typeof v === 'string' || typeof v === 'number';
|
|
8708
|
+
if (isSimple(current) && isSimple(target)) {
|
|
8709
|
+
return current === target;
|
|
8710
|
+
}
|
|
8711
|
+
if (isSimple(current)) {
|
|
8712
|
+
return current === target[this.itemValue];
|
|
8713
|
+
}
|
|
8714
|
+
return (current[this.itemValue] ===
|
|
8715
|
+
target[this.itemValue]);
|
|
8716
|
+
}
|
|
8717
|
+
get isModelArray() {
|
|
8718
|
+
return Array.isArray(this.modelValue);
|
|
8719
|
+
}
|
|
8720
|
+
};
|
|
8721
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8722
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
8723
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
8724
|
+
], SelectComponent.prototype, "modelValue", void 0);
|
|
8725
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8726
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
8727
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", typeof (ld_selectvue_type_script_lang_ts_external_a = typeof Array !== "undefined" && Array) === "function" ? ld_selectvue_type_script_lang_ts_external_a : Object)
|
|
8728
|
+
], SelectComponent.prototype, "items", void 0);
|
|
8729
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8730
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
8731
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
8732
|
+
], SelectComponent.prototype, "multiselect", void 0);
|
|
8733
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8734
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
8735
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
8736
|
+
], SelectComponent.prototype, "returnObject", void 0);
|
|
8737
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8738
|
+
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'id' }),
|
|
8739
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
8740
|
+
], SelectComponent.prototype, "itemValue", void 0);
|
|
8741
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8742
|
+
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'value' }),
|
|
8743
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
8744
|
+
], SelectComponent.prototype, "itemTitle", void 0);
|
|
8745
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8746
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
8747
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
8748
|
+
], SelectComponent.prototype, "chips", void 0);
|
|
8749
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8750
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
8751
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
8752
|
+
], SelectComponent.prototype, "closableChips", void 0);
|
|
8753
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8754
|
+
(0,external_vue_property_decorator_.Prop)({ type: Number, default: 1000 }),
|
|
8755
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
8756
|
+
], SelectComponent.prototype, "selectionShowCount", void 0);
|
|
8757
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8758
|
+
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
8759
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
8760
|
+
], SelectComponent.prototype, "form", void 0);
|
|
8761
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8762
|
+
Emit('update:model-value'),
|
|
8763
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
8764
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
8765
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
8766
|
+
], SelectComponent.prototype, "emitUpdateSelected", null);
|
|
8767
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8768
|
+
Emit('blur'),
|
|
8769
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
8770
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:paramtypes", [typeof (ld_selectvue_type_script_lang_ts_external_b = typeof FocusEvent !== "undefined" && FocusEvent) === "function" ? ld_selectvue_type_script_lang_ts_external_b : Object]),
|
|
8771
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
8772
|
+
], SelectComponent.prototype, "emitBlur", null);
|
|
8773
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8774
|
+
(0,external_vue_property_decorator_.Watch)('selected'),
|
|
8775
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
8776
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
8777
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
8778
|
+
], SelectComponent.prototype, "onSelectedChanged", null);
|
|
8779
|
+
ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8780
|
+
(0,external_vue_property_decorator_.Watch)('modelValue'),
|
|
8781
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
8782
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
8783
|
+
ld_selectvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
8784
|
+
], SelectComponent.prototype, "onValueChanged", null);
|
|
8785
|
+
SelectComponent = ld_selectvue_type_script_lang_ts_external_decorate([
|
|
8786
|
+
(0,external_vue_property_decorator_.Options)({
|
|
8787
|
+
components: {
|
|
8788
|
+
'ld-label': ld_label,
|
|
8789
|
+
}
|
|
8790
|
+
})
|
|
8791
|
+
], SelectComponent);
|
|
8792
|
+
/* harmony default export */ const ld_selectvue_type_script_lang_ts_external = (SelectComponent);
|
|
8793
|
+
|
|
8794
|
+
;// CONCATENATED MODULE: ./src/ld-select/ld-select.ts?vue&type=script&lang=ts&external
|
|
8795
|
+
|
|
8796
|
+
;// CONCATENATED MODULE: ./src/ld-select/ld-select.vue
|
|
8797
|
+
|
|
8798
|
+
|
|
8799
|
+
|
|
8800
|
+
|
|
8801
|
+
;
|
|
8802
|
+
|
|
8803
|
+
|
|
8804
|
+
const ld_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_selectvue_type_script_lang_ts_external, [['render',ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render],['__scopeId',"data-v-6124ddba"]])
|
|
8805
|
+
|
|
8806
|
+
/* harmony default export */ const ld_select = (ld_select_exports_);
|
|
8807
|
+
;// CONCATENATED MODULE: ./src/ld-select/index.ts
|
|
8808
|
+
|
|
8809
|
+
function ld_select_reg(vue, options) {
|
|
8810
|
+
vue.component(options.aliases['ld-select'], ld_select);
|
|
8811
|
+
}
|
|
8812
|
+
/* harmony default export */ const src_ld_select = (ld_select_reg);
|
|
8813
|
+
|
|
8208
8814
|
;// CONCATENATED MODULE: ./src/utils/delay.ts
|
|
8209
8815
|
async function delay(timeout) {
|
|
8210
8816
|
return new Promise(resolve => setTimeout(() => resolve(), timeout));
|
|
@@ -8230,8 +8836,25 @@ function dateLocalToISO(value) {
|
|
|
8230
8836
|
}
|
|
8231
8837
|
return '';
|
|
8232
8838
|
}
|
|
8839
|
+
/**
|
|
8840
|
+
* Преобразует дату к формату yyyy-MM-ddThh:mm:ss+hh:mm (например, 2020-11-24T12:47:45+03:00)
|
|
8841
|
+
* @param dt Date
|
|
8842
|
+
*/
|
|
8843
|
+
function toServerString(dt) {
|
|
8844
|
+
if (!dt) {
|
|
8845
|
+
return null;
|
|
8846
|
+
}
|
|
8847
|
+
const tzo = -dt.getTimezoneOffset();
|
|
8848
|
+
const dif = tzo >= 0 ? '+' : '-';
|
|
8849
|
+
const pad = function (num) {
|
|
8850
|
+
const norm = Math.abs(Math.floor(num));
|
|
8851
|
+
return (norm < 10 ? '0' : '') + norm;
|
|
8852
|
+
};
|
|
8853
|
+
return `${dt.getFullYear()}-${pad(dt.getMonth() + 1)}-${pad(dt.getDate())}T${pad(dt.getHours())}:${pad(dt.getMinutes())}:${pad(dt.getSeconds())}${dif}${pad(tzo / 60)}:${pad(tzo % 60)}`;
|
|
8854
|
+
}
|
|
8233
8855
|
const datetime = {
|
|
8234
|
-
dateLocalToISO
|
|
8856
|
+
dateLocalToISO,
|
|
8857
|
+
toServerString
|
|
8235
8858
|
};
|
|
8236
8859
|
|
|
8237
8860
|
|
|
@@ -8601,6 +9224,8 @@ const ActiveDirectiveOptions = {
|
|
|
8601
9224
|
|
|
8602
9225
|
|
|
8603
9226
|
|
|
9227
|
+
|
|
9228
|
+
|
|
8604
9229
|
|
|
8605
9230
|
|
|
8606
9231
|
const ldmuiPlugin = {
|
|
@@ -8625,6 +9250,8 @@ const ldmuiPlugin = {
|
|
|
8625
9250
|
'ld-checkbox': options.aliases?.['ld-checkbox'] ?? 'ld-checkbox',
|
|
8626
9251
|
'ld-radiobutton': options.aliases?.['ld-radiobutton'] ?? 'ld-radiobutton',
|
|
8627
9252
|
'ld-radiogroup': options.aliases?.['ld-radiogroup'] ?? 'ld-radiogroup',
|
|
9253
|
+
'ld-textarea': options.aliases?.['ld-textarea'] ?? 'ld-textarea',
|
|
9254
|
+
'ld-select': options.aliases?.['ld-select'] ?? 'ld-select',
|
|
8628
9255
|
};
|
|
8629
9256
|
vue.config.globalProperties.$utils = {
|
|
8630
9257
|
...utils_namespaceObject,
|
|
@@ -8655,6 +9282,8 @@ const ldmuiPlugin = {
|
|
|
8655
9282
|
src_ld_checkbox(vue, options);
|
|
8656
9283
|
src_ld_radiobutton(vue, options);
|
|
8657
9284
|
src_ld_radiogroup(vue, options);
|
|
9285
|
+
src_ld_textarea(vue, options);
|
|
9286
|
+
src_ld_select(vue, options);
|
|
8658
9287
|
},
|
|
8659
9288
|
};
|
|
8660
9289
|
/* harmony default export */ const src = (ldmuiPlugin);
|