@ldmjs/ui 1.0.0-dev-8 → 1.0.0-dev-9
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 +22 -6
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1274 -36
- package/dist/scss/_inputs.scss +162 -0
- package/dist/scss/index.scss +1 -0
- package/dist/types/options.d.ts +6 -5
- package/package.json +91 -65
package/dist/index.js
CHANGED
|
@@ -1,17 +1,63 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("vue"), require("vue-class-component"), require("vue-property-decorator"));
|
|
3
|
+
module.exports = factory(require("vue"), require("vue-class-component"), require("vue-property-decorator"), require("@vuelidate/validators"), require("vue-imask"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE__380__, __WEBPACK_EXTERNAL_MODULE__299__, __WEBPACK_EXTERNAL_MODULE__70__) => {
|
|
5
|
+
define(["vue", "vue-class-component", "vue-property-decorator", "@vuelidate/validators", "vue-imask"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("vue"), require("vue-class-component"), require("vue-property-decorator"), require("@vuelidate/validators"), require("vue-imask")) : factory(root["vue"], root["vue-class-component"], root["vue-property-decorator"], root["@vuelidate/validators"], root["vue-imask"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__380__, __WEBPACK_EXTERNAL_MODULE__299__, __WEBPACK_EXTERNAL_MODULE__70__, __WEBPACK_EXTERNAL_MODULE__887__, __WEBPACK_EXTERNAL_MODULE__434__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ 393:
|
|
16
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
22
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
23
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
24
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
25
|
+
// Imports
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
29
|
+
// Module
|
|
30
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.input-class[data-v-020a6720]{height:var(--input-height);font-size:var(--font-size);max-width:100%;border-radius:var(--border-radius);border:1px solid var(--grey-l-5);padding:0 6px}.input-class[data-v-020a6720]:not(.disabled){background-color:var(--white)}.input-class[data-v-020a6720]:focus{border:1px solid var(--grey-l-4);outline:none}.input-class__suffix[data-v-020a6720]{position:absolute;top:3px;right:6px;color:var(--label)}
|
|
31
|
+
`, ""]);
|
|
32
|
+
// Exports
|
|
33
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/***/ }),
|
|
37
|
+
|
|
38
|
+
/***/ 801:
|
|
39
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
40
|
+
|
|
41
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
43
|
+
/* harmony export */ });
|
|
44
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
45
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
46
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
47
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
48
|
+
// Imports
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
52
|
+
// Module
|
|
53
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.label[data-v-053e5df4]{word-wrap:break-word;max-width:100%;padding-bottom:2px;color:var(--label) !important;font-size:var(--font-size)}.label-wrapper[data-v-053e5df4]{display:flex;align-items:center;min-height:var(--input-height)}.require[data-v-053e5df4]::after{content:'*';display:inline-block;color:var(--error)}
|
|
54
|
+
`, ""]);
|
|
55
|
+
// Exports
|
|
56
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/***/ }),
|
|
60
|
+
|
|
15
61
|
/***/ 63:
|
|
16
62
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
17
63
|
|
|
@@ -426,6 +472,13 @@ exports.A = (sfc, props) => {
|
|
|
426
472
|
};
|
|
427
473
|
|
|
428
474
|
|
|
475
|
+
/***/ }),
|
|
476
|
+
|
|
477
|
+
/***/ 887:
|
|
478
|
+
/***/ ((module) => {
|
|
479
|
+
|
|
480
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__887__;
|
|
481
|
+
|
|
429
482
|
/***/ }),
|
|
430
483
|
|
|
431
484
|
/***/ 380:
|
|
@@ -442,6 +495,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__299__;
|
|
|
442
495
|
|
|
443
496
|
/***/ }),
|
|
444
497
|
|
|
498
|
+
/***/ 434:
|
|
499
|
+
/***/ ((module) => {
|
|
500
|
+
|
|
501
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__434__;
|
|
502
|
+
|
|
503
|
+
/***/ }),
|
|
504
|
+
|
|
445
505
|
/***/ 70:
|
|
446
506
|
/***/ ((module) => {
|
|
447
507
|
|
|
@@ -532,9 +592,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
532
592
|
__webpack_require__.d(__webpack_exports__, {
|
|
533
593
|
"default": () => (/* binding */ src),
|
|
534
594
|
defaults: () => (/* reexport */ defaults),
|
|
595
|
+
delay: () => (/* reexport */ delay),
|
|
535
596
|
getAliases: () => (/* reexport */ vuetify),
|
|
536
|
-
|
|
537
|
-
|
|
597
|
+
isDefined: () => (/* reexport */ isDefined),
|
|
598
|
+
uidGen: () => (/* reexport */ uidGen)
|
|
538
599
|
});
|
|
539
600
|
|
|
540
601
|
// EXTERNAL MODULE: external "vue"
|
|
@@ -1064,6 +1125,29 @@ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $se
|
|
|
1064
1125
|
}
|
|
1065
1126
|
;// CONCATENATED MODULE: ./src/ld-button/ld-button.vue?vue&type=template&id=2f14fde1
|
|
1066
1127
|
|
|
1128
|
+
;// CONCATENATED MODULE: ./src/mixins/viewport.mixins.ts
|
|
1129
|
+
|
|
1130
|
+
class ViewportMixin extends external_vue_property_decorator_.Vue {
|
|
1131
|
+
get globalMobileKey() {
|
|
1132
|
+
return this.$ldmui?.options?.viewport?.isMobile;
|
|
1133
|
+
}
|
|
1134
|
+
get globalTabletKey() {
|
|
1135
|
+
return this.$ldmui?.options?.viewport?.isTablet;
|
|
1136
|
+
}
|
|
1137
|
+
get globalDesktopKey() {
|
|
1138
|
+
return this.$ldmui?.options?.viewport?.isDesktop;
|
|
1139
|
+
}
|
|
1140
|
+
get isMobileGlobal() {
|
|
1141
|
+
return this.globalMobileKey ? this[this.globalMobileKey] : false;
|
|
1142
|
+
}
|
|
1143
|
+
get isTabletGlobal() {
|
|
1144
|
+
return this.globalTabletKey ? this[this.globalTabletKey] : false;
|
|
1145
|
+
}
|
|
1146
|
+
get isDesktopGlobal() {
|
|
1147
|
+
return this.globalDesktopKey ? this[this.globalDesktopKey] : false;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1067
1151
|
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./src/ld-button/ld-button.ts?vue&type=script&lang=js&external
|
|
1068
1152
|
var ld_buttonvue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1069
1153
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -1075,6 +1159,7 @@ var ld_buttonvue_type_script_lang_js_external_metadata = (undefined && undefined
|
|
|
1075
1159
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1076
1160
|
};
|
|
1077
1161
|
|
|
1162
|
+
|
|
1078
1163
|
/**
|
|
1079
1164
|
* isDesktop - кнопка отображатеся как стандартная кнопка с иконкой и надписью
|
|
1080
1165
|
* isTablet - на кнопке остается одна иконка, надпись уходит в tooltip
|
|
@@ -1084,7 +1169,7 @@ var ld_buttonvue_type_script_lang_js_external_metadata = (undefined && undefined
|
|
|
1084
1169
|
* slot name=text - надпись на кнопке или tooltip
|
|
1085
1170
|
* slot name=hidden - для вспомогательных скрытых элементов
|
|
1086
1171
|
*/
|
|
1087
|
-
let ResponsiveButtonComponent = class ResponsiveButtonComponent extends external_vue_property_decorator_.
|
|
1172
|
+
let ResponsiveButtonComponent = class ResponsiveButtonComponent extends (0,external_vue_property_decorator_.mixins)(ViewportMixin) {
|
|
1088
1173
|
onClick(value) {
|
|
1089
1174
|
this.$emit('click', value);
|
|
1090
1175
|
}
|
|
@@ -1160,18 +1245,6 @@ ld_buttonvue_type_script_lang_js_external_decorate([
|
|
|
1160
1245
|
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: null }),
|
|
1161
1246
|
ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
1162
1247
|
], ResponsiveButtonComponent.prototype, "isMobileView", void 0);
|
|
1163
|
-
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
1164
|
-
(0,external_vue_property_decorator_.Prop)(),
|
|
1165
|
-
ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
|
|
1166
|
-
], ResponsiveButtonComponent.prototype, "globalMobileKey", void 0);
|
|
1167
|
-
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
1168
|
-
(0,external_vue_property_decorator_.Prop)(),
|
|
1169
|
-
ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
|
|
1170
|
-
], ResponsiveButtonComponent.prototype, "globalTabletKey", void 0);
|
|
1171
|
-
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
1172
|
-
(0,external_vue_property_decorator_.Prop)(),
|
|
1173
|
-
ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
|
|
1174
|
-
], ResponsiveButtonComponent.prototype, "globalDesktopKey", void 0);
|
|
1175
1248
|
ResponsiveButtonComponent = ld_buttonvue_type_script_lang_js_external_decorate([
|
|
1176
1249
|
(0,external_vue_property_decorator_.Options)({
|
|
1177
1250
|
emits: ['click'],
|
|
@@ -1193,18 +1266,6 @@ const ld_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_butto
|
|
|
1193
1266
|
;// CONCATENATED MODULE: ./src/ld-button/index.ts
|
|
1194
1267
|
|
|
1195
1268
|
function ld_button_reg(vue, options) {
|
|
1196
|
-
ld_button.props = {
|
|
1197
|
-
...ld_button.props,
|
|
1198
|
-
globalMobileKey: {
|
|
1199
|
-
default: options?.LdBtn?.isMobile
|
|
1200
|
-
},
|
|
1201
|
-
globalTabletKey: {
|
|
1202
|
-
default: options?.LdBtn?.isTablet
|
|
1203
|
-
},
|
|
1204
|
-
globalDesktopKey: {
|
|
1205
|
-
default: options?.LdBtn?.isDesktop
|
|
1206
|
-
}
|
|
1207
|
-
};
|
|
1208
1269
|
vue.component(options?.aliases?.['ld-button'] ? options.aliases['ld-button'] : 'ld-button', ld_button);
|
|
1209
1270
|
}
|
|
1210
1271
|
/* harmony default export */ const src_ld_button = (ld_button_reg);
|
|
@@ -2271,6 +2332,1178 @@ function ld_breadcrumbs_reg(vue, options) {
|
|
|
2271
2332
|
}
|
|
2272
2333
|
/* harmony default export */ const src_ld_breadcrumbs = (ld_breadcrumbs_reg);
|
|
2273
2334
|
|
|
2335
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./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=020a6720&scoped=true&ts=true
|
|
2336
|
+
|
|
2337
|
+
const ld_edit_textvue_type_template_id_020a6720_scoped_true_ts_true_withScopeId = n => ((0,external_vue_.pushScopeId)("data-v-020a6720"), n = n(), (0,external_vue_.popScopeId)(), n);
|
|
2338
|
+
const ld_edit_textvue_type_template_id_020a6720_scoped_true_ts_true_hoisted_1 = { class: "min-w-full" };
|
|
2339
|
+
const ld_edit_textvue_type_template_id_020a6720_scoped_true_ts_true_hoisted_2 = { key: 0 };
|
|
2340
|
+
const _hoisted_3 = /*#__PURE__*/ ld_edit_textvue_type_template_id_020a6720_scoped_true_ts_true_withScopeId(() => /*#__PURE__*/ (0,external_vue_.createElementVNode)("span", null, "Показать пароль", -1 /* HOISTED */));
|
|
2341
|
+
const _hoisted_4 = {
|
|
2342
|
+
key: 1,
|
|
2343
|
+
class: "d-flex relative w-full flex-col flex-wrap"
|
|
2344
|
+
};
|
|
2345
|
+
const _hoisted_5 = {
|
|
2346
|
+
key: 0,
|
|
2347
|
+
class: "input-class__suffix"
|
|
2348
|
+
};
|
|
2349
|
+
const _hoisted_6 = {
|
|
2350
|
+
key: 1,
|
|
2351
|
+
class: "v-input__details textbox-validate"
|
|
2352
|
+
};
|
|
2353
|
+
function ld_edit_textvue_type_template_id_020a6720_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2354
|
+
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
2355
|
+
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
2356
|
+
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
2357
|
+
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip");
|
|
2358
|
+
const _component_v_text_field = (0,external_vue_.resolveComponent)("v-text-field");
|
|
2359
|
+
const _component_imask_input = (0,external_vue_.resolveComponent)("imask-input");
|
|
2360
|
+
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
2361
|
+
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
2362
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_020a6720_scoped_true_ts_true_hoisted_1, [
|
|
2363
|
+
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
2364
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2365
|
+
(_ctx.label)
|
|
2366
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
|
|
2367
|
+
key: 0,
|
|
2368
|
+
class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses]),
|
|
2369
|
+
label: _ctx.label,
|
|
2370
|
+
required: _ctx.required,
|
|
2371
|
+
"align-label-to-right": _ctx.alignLabelToRight
|
|
2372
|
+
}, null, 8 /* PROPS */, ["class", "label", "required", "align-label-to-right"]))
|
|
2373
|
+
: (0,external_vue_.createCommentVNode)("v-if", true),
|
|
2374
|
+
(0,external_vue_.createTextVNode)(),
|
|
2375
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
2376
|
+
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
2377
|
+
}, {
|
|
2378
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2379
|
+
(!_ctx.onlyNumbers)
|
|
2380
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_text_field, {
|
|
2381
|
+
key: 0,
|
|
2382
|
+
ref: "vInput",
|
|
2383
|
+
"model-value": _ctx.modelValue,
|
|
2384
|
+
type: _ctx.type === 'password' ? 'text' : _ctx.type,
|
|
2385
|
+
class: (0,external_vue_.normalizeClass)(["small-input text-body-1 my-0", { disabled: _ctx.disabled, password: _ctx.type === 'password' && !_ctx.passwordVisible }]),
|
|
2386
|
+
"single-line": "",
|
|
2387
|
+
variant: "outlined",
|
|
2388
|
+
"persistent-hint": _ctx.persistentHint,
|
|
2389
|
+
rules: _ctx.validRules,
|
|
2390
|
+
"validate-on": _ctx.validateOnBlur ? 'blur' : 'input lazy',
|
|
2391
|
+
"validation-value": _ctx.type === 'password' ? _ctx.savedModelValue : _ctx.modelValue,
|
|
2392
|
+
placeholder: _ctx.placeholder,
|
|
2393
|
+
disabled: _ctx.disabled,
|
|
2394
|
+
readonly: _ctx.readonly,
|
|
2395
|
+
hint: _ctx.inputHint,
|
|
2396
|
+
mask: _ctx.mask,
|
|
2397
|
+
tabindex: _ctx.tabIndex,
|
|
2398
|
+
maxlength: _ctx.maxlength,
|
|
2399
|
+
autofocus: _ctx.autofocus,
|
|
2400
|
+
"hide-details": _ctx.hideDetails,
|
|
2401
|
+
prefix: _ctx.prefix,
|
|
2402
|
+
suffix: _ctx.suffix,
|
|
2403
|
+
clearable: _ctx.clearable,
|
|
2404
|
+
error: _ctx.showError,
|
|
2405
|
+
"error-messages": _ctx.validationMessage,
|
|
2406
|
+
"prepend-inner-icon": _ctx.prependInnerIcon,
|
|
2407
|
+
autocomplete: _ctx.autocomplete,
|
|
2408
|
+
onChange: _ctx.emitChange,
|
|
2409
|
+
"onUpdate:modelValue": _ctx.onUpdateModelValue,
|
|
2410
|
+
onBlur: _ctx.onBlur,
|
|
2411
|
+
onClick: _ctx.emitClick,
|
|
2412
|
+
onKeydown: _ctx.onKeydown,
|
|
2413
|
+
onCopy: _ctx.emitCopy
|
|
2414
|
+
}, (0,external_vue_.createSlots)({ _: 2 /* DYNAMIC */ }, [
|
|
2415
|
+
(_ctx.modelValue && (_ctx.clearIcon || _ctx.type === 'password'))
|
|
2416
|
+
? {
|
|
2417
|
+
name: "append-inner",
|
|
2418
|
+
fn: (0,external_vue_.withCtx)(() => [
|
|
2419
|
+
(_ctx.clearIcon)
|
|
2420
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
2421
|
+
key: 0,
|
|
2422
|
+
color: "error",
|
|
2423
|
+
icon: "",
|
|
2424
|
+
onClick: _cache[0] || (_cache[0] = ($event) => (_ctx.emitUpdateModelValue('')))
|
|
2425
|
+
}, {
|
|
2426
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2427
|
+
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
2428
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2429
|
+
(0,external_vue_.createTextVNode)("close")
|
|
2430
|
+
]),
|
|
2431
|
+
_: 1 /* STABLE */
|
|
2432
|
+
})
|
|
2433
|
+
]),
|
|
2434
|
+
_: 1 /* STABLE */
|
|
2435
|
+
}))
|
|
2436
|
+
: (0,external_vue_.createCommentVNode)("v-if", true),
|
|
2437
|
+
(0,external_vue_.createTextVNode)(),
|
|
2438
|
+
(_ctx.type === 'password')
|
|
2439
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_tooltip, { key: 1 }, {
|
|
2440
|
+
activator: (0,external_vue_.withCtx)(({ props }) => [
|
|
2441
|
+
(0,external_vue_.createVNode)(_component_square_button, (0,external_vue_.mergeProps)({ tabindex: "1" }, props, {
|
|
2442
|
+
icon: "",
|
|
2443
|
+
color: "grey",
|
|
2444
|
+
onClick: _ctx.passwordVisibilityToggle
|
|
2445
|
+
}), {
|
|
2446
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2447
|
+
(_ctx.passwordVisible)
|
|
2448
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_icon, { key: 0 }, {
|
|
2449
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2450
|
+
(0,external_vue_.createTextVNode)("visibility_off")
|
|
2451
|
+
]),
|
|
2452
|
+
_: 1 /* STABLE */
|
|
2453
|
+
}))
|
|
2454
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_icon, { key: 1 }, {
|
|
2455
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2456
|
+
(0,external_vue_.createTextVNode)("visibility")
|
|
2457
|
+
]),
|
|
2458
|
+
_: 1 /* STABLE */
|
|
2459
|
+
}))
|
|
2460
|
+
]),
|
|
2461
|
+
_: 2 /* DYNAMIC */
|
|
2462
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["onClick"])
|
|
2463
|
+
]),
|
|
2464
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2465
|
+
(0,external_vue_.createTextVNode)(),
|
|
2466
|
+
(_ctx.passwordVisible)
|
|
2467
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_020a6720_scoped_true_ts_true_hoisted_2, "Скрыть пароль"))
|
|
2468
|
+
: (0,external_vue_.createCommentVNode)("v-if", true),
|
|
2469
|
+
(0,external_vue_.createTextVNode)(),
|
|
2470
|
+
_hoisted_3
|
|
2471
|
+
]),
|
|
2472
|
+
_: 1 /* STABLE */
|
|
2473
|
+
}))
|
|
2474
|
+
: (0,external_vue_.createCommentVNode)("v-if", true)
|
|
2475
|
+
]),
|
|
2476
|
+
key: "0"
|
|
2477
|
+
}
|
|
2478
|
+
: undefined,
|
|
2479
|
+
(_ctx.showError || (_ctx.inputHint && _ctx.persistentHint))
|
|
2480
|
+
? {
|
|
2481
|
+
name: "message",
|
|
2482
|
+
fn: (0,external_vue_.withCtx)(({ message }) => [
|
|
2483
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
2484
|
+
class: (0,external_vue_.normalizeClass)({ 'error--text': _ctx.validationMessage, 'label-color': !_ctx.validationMessage })
|
|
2485
|
+
}, (0,external_vue_.toDisplayString)(message), 3 /* TEXT, CLASS */)
|
|
2486
|
+
]),
|
|
2487
|
+
key: "1"
|
|
2488
|
+
}
|
|
2489
|
+
: undefined
|
|
2490
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["model-value", "type", "class", "persistent-hint", "rules", "validate-on", "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", "onClick", "onKeydown", "onCopy"]))
|
|
2491
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", _hoisted_4, [
|
|
2492
|
+
(0,external_vue_.createVNode)(_component_imask_input, {
|
|
2493
|
+
ref: "maskInput",
|
|
2494
|
+
modelValue: _ctx.value,
|
|
2495
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => ((_ctx.value) = $event)),
|
|
2496
|
+
mask: Number,
|
|
2497
|
+
maxlength: _ctx.maxlength,
|
|
2498
|
+
scale: _ctx.scale,
|
|
2499
|
+
signed: _ctx.signed,
|
|
2500
|
+
type: "text",
|
|
2501
|
+
min: _ctx.minValue,
|
|
2502
|
+
max: _ctx.maxValue,
|
|
2503
|
+
disabled: _ctx.disabled,
|
|
2504
|
+
tabindex: _ctx.tabIndex,
|
|
2505
|
+
class: (0,external_vue_.normalizeClass)([{ disabled: _ctx.disabled }, "input-class"]),
|
|
2506
|
+
placeholder: _ctx.placeholder,
|
|
2507
|
+
outlined: "",
|
|
2508
|
+
onBlur: _ctx.onBlur,
|
|
2509
|
+
onClick: _ctx.emitClick,
|
|
2510
|
+
onFocus: _ctx.onFocus
|
|
2511
|
+
}, null, 8 /* PROPS */, ["modelValue", "maxlength", "scale", "signed", "min", "max", "disabled", "tabindex", "class", "placeholder", "onBlur", "onClick", "onFocus"]),
|
|
2512
|
+
(0,external_vue_.createTextVNode)(),
|
|
2513
|
+
(_ctx.suffix)
|
|
2514
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", _hoisted_5, (0,external_vue_.toDisplayString)(_ctx.suffix), 1 /* TEXT */))
|
|
2515
|
+
: (0,external_vue_.createCommentVNode)("v-if", true),
|
|
2516
|
+
(0,external_vue_.createTextVNode)(),
|
|
2517
|
+
(!_ctx.hideDetails)
|
|
2518
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", _hoisted_6, [
|
|
2519
|
+
(0,external_vue_.createVNode)(external_vue_.Transition, {
|
|
2520
|
+
name: "squash",
|
|
2521
|
+
persisted: ""
|
|
2522
|
+
}, {
|
|
2523
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2524
|
+
(0,external_vue_.withDirectives)((0,external_vue_.createElementVNode)("span", { class: "v-message error--text" }, (0,external_vue_.toDisplayString)(_ctx.validationMessage), 513 /* TEXT, NEED_PATCH */), [
|
|
2525
|
+
[external_vue_.vShow, _ctx.showError]
|
|
2526
|
+
])
|
|
2527
|
+
]),
|
|
2528
|
+
_: 1 /* STABLE */
|
|
2529
|
+
})
|
|
2530
|
+
]))
|
|
2531
|
+
: (0,external_vue_.createCommentVNode)("v-if", true)
|
|
2532
|
+
]))
|
|
2533
|
+
]),
|
|
2534
|
+
_: 1 /* STABLE */
|
|
2535
|
+
}, 8 /* PROPS */, ["class"])
|
|
2536
|
+
]),
|
|
2537
|
+
_: 1 /* STABLE */
|
|
2538
|
+
})
|
|
2539
|
+
]));
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=020a6720&scoped=true&ts=true
|
|
2543
|
+
|
|
2544
|
+
;// CONCATENATED MODULE: ./src/decorators/emit.decorator.ts
|
|
2545
|
+
|
|
2546
|
+
function makeDecoratorEmit(event) {
|
|
2547
|
+
function helper(proto, key) {
|
|
2548
|
+
return (0,external_vue_class_component_.createDecorator)((componentOptions, propertyKey) => {
|
|
2549
|
+
const emitName = event.toLowerCase();
|
|
2550
|
+
if (!componentOptions.emits) {
|
|
2551
|
+
componentOptions.emits = [];
|
|
2552
|
+
}
|
|
2553
|
+
componentOptions.emits.push(emitName);
|
|
2554
|
+
const original = componentOptions.methods[propertyKey];
|
|
2555
|
+
componentOptions.methods[propertyKey] = function emitter(...args) {
|
|
2556
|
+
const emit = (returnValue) => {
|
|
2557
|
+
/* eslint-disable no-undefined */
|
|
2558
|
+
if (returnValue === undefined) {
|
|
2559
|
+
if (args.length === 0) {
|
|
2560
|
+
this.$emit(emitName);
|
|
2561
|
+
}
|
|
2562
|
+
else if (args.length === 1) {
|
|
2563
|
+
this.$emit(emitName, args[0]);
|
|
2564
|
+
}
|
|
2565
|
+
else {
|
|
2566
|
+
this.$emit(emitName, ...args);
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
else {
|
|
2570
|
+
args.unshift(returnValue);
|
|
2571
|
+
this.$emit(emitName, ...args);
|
|
2572
|
+
}
|
|
2573
|
+
};
|
|
2574
|
+
const returnValue = original.apply(this, args);
|
|
2575
|
+
emit(returnValue);
|
|
2576
|
+
};
|
|
2577
|
+
})(proto, key);
|
|
2578
|
+
}
|
|
2579
|
+
return helper;
|
|
2580
|
+
}
|
|
2581
|
+
const Emit = makeDecoratorEmit;
|
|
2582
|
+
|
|
2583
|
+
|
|
2584
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-label/ld-label.vue?vue&type=template&id=053e5df4&scoped=true&ts=true
|
|
2585
|
+
|
|
2586
|
+
const ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-053e5df4"), n = n(), _popScopeId(), n);
|
|
2587
|
+
const ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_hoisted_1 = {
|
|
2588
|
+
key: 0,
|
|
2589
|
+
class: "require mx-1"
|
|
2590
|
+
};
|
|
2591
|
+
const ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_hoisted_2 = { class: "text-body-1" };
|
|
2592
|
+
const ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_hoisted_3 = {
|
|
2593
|
+
key: 1,
|
|
2594
|
+
class: "label font-weight-bold pr-1"
|
|
2595
|
+
};
|
|
2596
|
+
const ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_hoisted_4 = {
|
|
2597
|
+
key: 0,
|
|
2598
|
+
class: "require mx-1"
|
|
2599
|
+
};
|
|
2600
|
+
function ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2601
|
+
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip");
|
|
2602
|
+
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
2603
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_col, { class: "pa-0" }, {
|
|
2604
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2605
|
+
(0,external_vue_.createElementVNode)("div", {
|
|
2606
|
+
class: (0,external_vue_.normalizeClass)(["label-wrapper", { 'justify-end': _ctx.alignLabelToRight }])
|
|
2607
|
+
}, [
|
|
2608
|
+
(_ctx.labelHint)
|
|
2609
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_tooltip, {
|
|
2610
|
+
key: 0,
|
|
2611
|
+
location: "top"
|
|
2612
|
+
}, {
|
|
2613
|
+
activator: (0,external_vue_.withCtx)(({ props }) => [
|
|
2614
|
+
(0,external_vue_.createElementVNode)("span", (0,external_vue_.mergeProps)({
|
|
2615
|
+
class: ["label font-weight-bold pr-1", { 'cursor-help': _ctx.labelHint }]
|
|
2616
|
+
}, props), [
|
|
2617
|
+
(0,external_vue_.createTextVNode)((0,external_vue_.toDisplayString)(_ctx.label) + " ", 1 /* TEXT */),
|
|
2618
|
+
(_ctx.required)
|
|
2619
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_hoisted_1))
|
|
2620
|
+
: (0,external_vue_.createCommentVNode)("v-if", true)
|
|
2621
|
+
], 16 /* FULL_PROPS */)
|
|
2622
|
+
]),
|
|
2623
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2624
|
+
(0,external_vue_.createTextVNode)(),
|
|
2625
|
+
(0,external_vue_.createElementVNode)("span", ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(_ctx.labelHint), 1 /* TEXT */)
|
|
2626
|
+
]),
|
|
2627
|
+
_: 1 /* STABLE */
|
|
2628
|
+
}))
|
|
2629
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_hoisted_3, [
|
|
2630
|
+
(0,external_vue_.createTextVNode)((0,external_vue_.toDisplayString)(_ctx.label) + " ", 1 /* TEXT */),
|
|
2631
|
+
(_ctx.required)
|
|
2632
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_hoisted_4))
|
|
2633
|
+
: (0,external_vue_.createCommentVNode)("v-if", true)
|
|
2634
|
+
]))
|
|
2635
|
+
], 2 /* CLASS */)
|
|
2636
|
+
]),
|
|
2637
|
+
_: 1 /* STABLE */
|
|
2638
|
+
}));
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
;// CONCATENATED MODULE: ./src/ld-label/ld-label.vue?vue&type=template&id=053e5df4&scoped=true&ts=true
|
|
2642
|
+
|
|
2643
|
+
;// CONCATENATED MODULE: ./src/mixins/input.mixin.ts
|
|
2644
|
+
var input_mixin_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2645
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2646
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2647
|
+
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;
|
|
2648
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2649
|
+
};
|
|
2650
|
+
var input_mixin_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
2651
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2652
|
+
};
|
|
2653
|
+
|
|
2654
|
+
class InputMixin extends external_vue_property_decorator_.Vue {
|
|
2655
|
+
get noDataPlaceholder() {
|
|
2656
|
+
return 'Нет данных';
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
input_mixin_decorate([
|
|
2660
|
+
(0,external_vue_property_decorator_.Prop)({ default: false, type: Boolean }),
|
|
2661
|
+
input_mixin_metadata("design:type", Boolean)
|
|
2662
|
+
], InputMixin.prototype, "disabled", void 0);
|
|
2663
|
+
input_mixin_decorate([
|
|
2664
|
+
(0,external_vue_property_decorator_.Prop)({ default: false, type: Boolean }),
|
|
2665
|
+
input_mixin_metadata("design:type", Boolean)
|
|
2666
|
+
], InputMixin.prototype, "required", void 0);
|
|
2667
|
+
input_mixin_decorate([
|
|
2668
|
+
(0,external_vue_property_decorator_.Prop)({ default: false, type: Boolean }),
|
|
2669
|
+
input_mixin_metadata("design:type", Boolean)
|
|
2670
|
+
], InputMixin.prototype, "readonly", void 0);
|
|
2671
|
+
input_mixin_decorate([
|
|
2672
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
2673
|
+
input_mixin_metadata("design:type", String)
|
|
2674
|
+
], InputMixin.prototype, "label", void 0);
|
|
2675
|
+
input_mixin_decorate([
|
|
2676
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
2677
|
+
input_mixin_metadata("design:type", String)
|
|
2678
|
+
], InputMixin.prototype, "labelHint", void 0);
|
|
2679
|
+
input_mixin_decorate([
|
|
2680
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
2681
|
+
input_mixin_metadata("design:type", Boolean)
|
|
2682
|
+
], InputMixin.prototype, "alignLabelToRight", void 0);
|
|
2683
|
+
input_mixin_decorate([
|
|
2684
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
2685
|
+
input_mixin_metadata("design:type", Object)
|
|
2686
|
+
], InputMixin.prototype, "tabIndex", void 0);
|
|
2687
|
+
input_mixin_decorate([
|
|
2688
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
2689
|
+
input_mixin_metadata("design:type", Boolean)
|
|
2690
|
+
], InputMixin.prototype, "autofocus", void 0);
|
|
2691
|
+
input_mixin_decorate([
|
|
2692
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
2693
|
+
input_mixin_metadata("design:type", Boolean)
|
|
2694
|
+
], InputMixin.prototype, "hideDetails", void 0);
|
|
2695
|
+
input_mixin_decorate([
|
|
2696
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
|
|
2697
|
+
input_mixin_metadata("design:type", Boolean)
|
|
2698
|
+
], InputMixin.prototype, "solo", void 0);
|
|
2699
|
+
input_mixin_decorate([
|
|
2700
|
+
(0,external_vue_property_decorator_.Prop)({ type: String, default: '' }),
|
|
2701
|
+
input_mixin_metadata("design:type", String)
|
|
2702
|
+
], InputMixin.prototype, "placeholder", void 0);
|
|
2703
|
+
input_mixin_decorate([
|
|
2704
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
2705
|
+
input_mixin_metadata("design:type", String)
|
|
2706
|
+
], InputMixin.prototype, "prependInnerIcon", void 0);
|
|
2707
|
+
input_mixin_decorate([
|
|
2708
|
+
(0,external_vue_property_decorator_.Prop)({ default: '' }),
|
|
2709
|
+
input_mixin_metadata("design:type", String)
|
|
2710
|
+
], InputMixin.prototype, "autocomplete", void 0);
|
|
2711
|
+
|
|
2712
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./src/ld-label/ld-label.ts?vue&type=script&lang=ts&external
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
/**
|
|
2716
|
+
* Простой компонент лейбла для полей карточки
|
|
2717
|
+
* @displayName card-label
|
|
2718
|
+
*/
|
|
2719
|
+
class CardLabelComponent extends (0,external_vue_class_component_.mixins)(InputMixin) {
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
;// CONCATENATED MODULE: ./src/ld-label/ld-label.ts?vue&type=script&lang=ts&external
|
|
2723
|
+
|
|
2724
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-2.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-label/ld-label.vue?vue&type=style&index=0&id=053e5df4&lang=scss&scoped=true
|
|
2725
|
+
var ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true = __webpack_require__(801);
|
|
2726
|
+
;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-2.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-label/ld-label.vue?vue&type=style&index=0&id=053e5df4&lang=scss&scoped=true
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
|
|
2732
|
+
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
var ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true_options = {};
|
|
2739
|
+
|
|
2740
|
+
ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true_options.styleTagTransform = (styleTagTransform_default());
|
|
2741
|
+
ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true_options.setAttributes = (setAttributesWithoutAttributes_default());
|
|
2742
|
+
|
|
2743
|
+
ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true_options.insert = insertBySelector_default().bind(null, "head");
|
|
2744
|
+
|
|
2745
|
+
ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true_options.domAPI = (styleDomAPI_default());
|
|
2746
|
+
ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true_options.insertStyleElement = (insertStyleElement_default());
|
|
2747
|
+
|
|
2748
|
+
var ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true_update = injectStylesIntoStyleTag_default()(ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true/* default */.A, ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true_options);
|
|
2749
|
+
|
|
2750
|
+
|
|
2751
|
+
|
|
2752
|
+
|
|
2753
|
+
/* harmony default export */ const ld_label_ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true = (ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true/* default */.A && ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true/* default */.A.locals ? ld_labelvue_type_style_index_0_id_053e5df4_lang_scss_scoped_true/* default */.A.locals : undefined);
|
|
2754
|
+
|
|
2755
|
+
;// CONCATENATED MODULE: ./src/ld-label/ld-label.vue?vue&type=style&index=0&id=053e5df4&lang=scss&scoped=true
|
|
2756
|
+
|
|
2757
|
+
;// CONCATENATED MODULE: ./src/ld-label/ld-label.vue
|
|
2758
|
+
|
|
2759
|
+
|
|
2760
|
+
|
|
2761
|
+
|
|
2762
|
+
;
|
|
2763
|
+
|
|
2764
|
+
|
|
2765
|
+
const ld_label_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CardLabelComponent, [['render',ld_labelvue_type_template_id_053e5df4_scoped_true_ts_true_render],['__scopeId',"data-v-053e5df4"]])
|
|
2766
|
+
|
|
2767
|
+
/* harmony default export */ const ld_label = (ld_label_exports_);
|
|
2768
|
+
;// CONCATENATED MODULE: ./src/mixins/grid.mixin.ts
|
|
2769
|
+
var grid_mixin_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2770
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2771
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2772
|
+
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;
|
|
2773
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2774
|
+
};
|
|
2775
|
+
var grid_mixin_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
2776
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2777
|
+
};
|
|
2778
|
+
/* eslint-disable eqeqeq */
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
class GridMixin extends (0,external_vue_property_decorator_.mixins)(ViewportMixin) {
|
|
2782
|
+
constructor() {
|
|
2783
|
+
super(...arguments);
|
|
2784
|
+
this.labelSizeClasses = null;
|
|
2785
|
+
this.inputSizeClasses = null;
|
|
2786
|
+
this.myInputSize = 0;
|
|
2787
|
+
this.myLabelSize = 0;
|
|
2788
|
+
}
|
|
2789
|
+
onMobileViewChanged() {
|
|
2790
|
+
this.gridMixinSetClasses();
|
|
2791
|
+
}
|
|
2792
|
+
created() {
|
|
2793
|
+
this.gridMixinSetClasses();
|
|
2794
|
+
}
|
|
2795
|
+
gridMixinSetClasses() {
|
|
2796
|
+
this.myInputSize = Number(this.inputSize);
|
|
2797
|
+
this.myLabelSize = Number(this.labelSize);
|
|
2798
|
+
if (this.myLabelSize !== 3 || this.myInputSize !== 9) {
|
|
2799
|
+
if (this.myLabelSize) {
|
|
2800
|
+
this.myInputSize = 12 - this.myLabelSize;
|
|
2801
|
+
}
|
|
2802
|
+
if (this.myInputSize) {
|
|
2803
|
+
this.myLabelSize = 12 - this.myInputSize;
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
if (this.mobile || this.labelOnTop || this.isMobileGlobal || !this.$utils.isDefined(this.label)) {
|
|
2807
|
+
this.myInputSize = 12;
|
|
2808
|
+
this.myLabelSize = 12;
|
|
2809
|
+
}
|
|
2810
|
+
this.labelSizeClasses = {
|
|
2811
|
+
'v-col-1': this.myLabelSize === 1,
|
|
2812
|
+
'v-col-2': this.myLabelSize === 2,
|
|
2813
|
+
'v-col-3': this.myLabelSize === 3,
|
|
2814
|
+
'v-col-4': this.myLabelSize === 4,
|
|
2815
|
+
'v-col-5': this.myLabelSize === 5,
|
|
2816
|
+
'v-col-6': this.myLabelSize === 6,
|
|
2817
|
+
'v-col-7': this.myLabelSize === 7,
|
|
2818
|
+
'v-col-8': this.myLabelSize === 8,
|
|
2819
|
+
'v-col-9': this.myLabelSize === 9,
|
|
2820
|
+
'v-col-10': this.myLabelSize === 10,
|
|
2821
|
+
'v-col-11': this.myLabelSize === 11,
|
|
2822
|
+
'v-col-12': this.myLabelSize === 12,
|
|
2823
|
+
};
|
|
2824
|
+
this.inputSizeClasses = {
|
|
2825
|
+
'v-col-1': this.myInputSize === 1,
|
|
2826
|
+
'v-col-2': this.myInputSize === 2,
|
|
2827
|
+
'v-col-3': this.myInputSize === 3,
|
|
2828
|
+
'v-col-4': this.myInputSize === 4,
|
|
2829
|
+
'v-col-5': this.myInputSize === 5,
|
|
2830
|
+
'v-col-6': this.myInputSize === 6,
|
|
2831
|
+
'v-col-7': this.myInputSize === 7,
|
|
2832
|
+
'v-col-8': this.myInputSize === 8,
|
|
2833
|
+
'v-col-9': this.myInputSize === 9,
|
|
2834
|
+
'v-col-10': this.myInputSize === 10,
|
|
2835
|
+
'v-col-11': this.myInputSize === 11,
|
|
2836
|
+
'v-col-12': this.myInputSize === 12,
|
|
2837
|
+
};
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
grid_mixin_decorate([
|
|
2841
|
+
(0,external_vue_property_decorator_.Prop)({ default: 9 }),
|
|
2842
|
+
grid_mixin_metadata("design:type", Object)
|
|
2843
|
+
], GridMixin.prototype, "inputSize", void 0);
|
|
2844
|
+
grid_mixin_decorate([
|
|
2845
|
+
(0,external_vue_property_decorator_.Prop)({ default: 3 }),
|
|
2846
|
+
grid_mixin_metadata("design:type", Object)
|
|
2847
|
+
], GridMixin.prototype, "labelSize", void 0);
|
|
2848
|
+
grid_mixin_decorate([
|
|
2849
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
2850
|
+
grid_mixin_metadata("design:type", String)
|
|
2851
|
+
], GridMixin.prototype, "label", void 0);
|
|
2852
|
+
grid_mixin_decorate([
|
|
2853
|
+
(0,external_vue_property_decorator_.Prop)({ default: false, type: Boolean }),
|
|
2854
|
+
grid_mixin_metadata("design:type", Boolean)
|
|
2855
|
+
], GridMixin.prototype, "labelOnTop", void 0);
|
|
2856
|
+
grid_mixin_decorate([
|
|
2857
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
2858
|
+
grid_mixin_metadata("design:type", Boolean)
|
|
2859
|
+
], GridMixin.prototype, "mobile", void 0);
|
|
2860
|
+
grid_mixin_decorate([
|
|
2861
|
+
(0,external_vue_property_decorator_.Watch)('isMobileGlobal'),
|
|
2862
|
+
(0,external_vue_property_decorator_.Watch)('mobile'),
|
|
2863
|
+
(0,external_vue_property_decorator_.Watch)('labelOnTop'),
|
|
2864
|
+
grid_mixin_metadata("design:type", Function),
|
|
2865
|
+
grid_mixin_metadata("design:paramtypes", []),
|
|
2866
|
+
grid_mixin_metadata("design:returntype", void 0)
|
|
2867
|
+
], GridMixin.prototype, "onMobileViewChanged", null);
|
|
2868
|
+
|
|
2869
|
+
// EXTERNAL MODULE: external "@vuelidate/validators"
|
|
2870
|
+
var validators_ = __webpack_require__(887);
|
|
2871
|
+
;// CONCATENATED MODULE: ./src/mixins/validators.ts
|
|
2872
|
+
/* eslint-disable no-nested-ternary */
|
|
2873
|
+
|
|
2874
|
+
/** requiredRule(name?: string) - Обязательность заполнения поля */
|
|
2875
|
+
const requiredRule = (name) => value => {
|
|
2876
|
+
// eslint-disable-next-line eqeqeq
|
|
2877
|
+
if (value == null || (typeof value === 'string' && value === '')) {
|
|
2878
|
+
return name ? `Поле ${name} обязательно` : 'Это поле обязательно';
|
|
2879
|
+
}
|
|
2880
|
+
const valid = validators_.required.$validator(value, null, null);
|
|
2881
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2882
|
+
return true;
|
|
2883
|
+
}
|
|
2884
|
+
return name ? `Поле ${name} обязательно` : 'Это поле обязательно';
|
|
2885
|
+
};
|
|
2886
|
+
/** maxLengthRule(max: number) - Значение должно быть меньше ${max} символов */
|
|
2887
|
+
const maxLengthRule = (max) => value => {
|
|
2888
|
+
const valid = (0,validators_.maxLength)(max).$validator(value, null, null);
|
|
2889
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2890
|
+
return true;
|
|
2891
|
+
}
|
|
2892
|
+
return `Значение должно быть меньше ${max} символов`;
|
|
2893
|
+
};
|
|
2894
|
+
/** alphaRule() - Разрешены только буквы */
|
|
2895
|
+
const alphaRule = () => value => {
|
|
2896
|
+
const valid = validators_.alpha.$validator(value, null, null);
|
|
2897
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2898
|
+
return true;
|
|
2899
|
+
}
|
|
2900
|
+
return 'Разрешены только латинские буквы';
|
|
2901
|
+
};
|
|
2902
|
+
/** alphaNumRule() - Разрешены только буквы и цифры */
|
|
2903
|
+
const alphaNumRule = () => value => {
|
|
2904
|
+
const valid = validators_.alphaNum.$validator(value, null, null);
|
|
2905
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2906
|
+
return true;
|
|
2907
|
+
}
|
|
2908
|
+
return 'Разрешены только латинские буквы и цифры';
|
|
2909
|
+
};
|
|
2910
|
+
/** andRule(..._validators: Array<() => {}>) - Добавление дополнительных валидаторов */
|
|
2911
|
+
// export const andRule =
|
|
2912
|
+
// (..._validators: Array<ValidationRule>): ValidateFunction =>
|
|
2913
|
+
// value =>
|
|
2914
|
+
// and(_validators) ? 'Ошибка' : true;
|
|
2915
|
+
/** betweenRule(min: number, max: number) - допустимы значения в диапазоне от ${min} до ${max} */
|
|
2916
|
+
const betweenRule = (min, max) => value => {
|
|
2917
|
+
const valid = (0,validators_.between)(min, max).$validator(value, null, null);
|
|
2918
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2919
|
+
return true;
|
|
2920
|
+
}
|
|
2921
|
+
return `Значение должно быть в диапазоне от ${min} до ${max}`;
|
|
2922
|
+
};
|
|
2923
|
+
/** decimalRule() - Значение должно быть целым или дробным числом */
|
|
2924
|
+
const decimalRule = () => value => {
|
|
2925
|
+
const valid = validators_.decimal.$validator(value, null, null);
|
|
2926
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2927
|
+
return true;
|
|
2928
|
+
}
|
|
2929
|
+
return 'Значение должно быть целым или дробным числом';
|
|
2930
|
+
};
|
|
2931
|
+
/** emailRule() - только эл. почта */
|
|
2932
|
+
const emailRule = () => value => {
|
|
2933
|
+
const valid = validators_.email.$validator(value, null, null);
|
|
2934
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2935
|
+
return true;
|
|
2936
|
+
}
|
|
2937
|
+
return 'Неверный формат адреса эл.почты';
|
|
2938
|
+
};
|
|
2939
|
+
/** integerRule() - Значение должно быть целым числом */
|
|
2940
|
+
const integerRule = () => value => {
|
|
2941
|
+
const valid = validators_.integer.$validator(value, null, null);
|
|
2942
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2943
|
+
return true;
|
|
2944
|
+
}
|
|
2945
|
+
return 'Значение должно быть целым числом';
|
|
2946
|
+
};
|
|
2947
|
+
/** ipAddressRule() - Неправильный формат IP-адреса */
|
|
2948
|
+
const ipAddressRule = () => value => {
|
|
2949
|
+
const valid = validators_.ipAddress.$validator(value, null, null);
|
|
2950
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2951
|
+
return true;
|
|
2952
|
+
}
|
|
2953
|
+
return 'Неправильный формат IP-адреса';
|
|
2954
|
+
};
|
|
2955
|
+
/** macAddressRule() - Неправильный формат mac-адреса */
|
|
2956
|
+
const macAddressRule = () => value => {
|
|
2957
|
+
const valid = (0,validators_.macAddress)(':').$validator(value, null, null);
|
|
2958
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2959
|
+
return true;
|
|
2960
|
+
}
|
|
2961
|
+
return 'Неправильный формат mac-адреса';
|
|
2962
|
+
};
|
|
2963
|
+
/** maxValueRule(max: number) - Значение должно быть меньше ${max} */
|
|
2964
|
+
const maxValueRule = (max) => value => {
|
|
2965
|
+
const valid = (0,validators_.maxValue)(max).$validator(value, null, null);
|
|
2966
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2967
|
+
return true;
|
|
2968
|
+
}
|
|
2969
|
+
return `Значение должно быть меньше ${max}`;
|
|
2970
|
+
};
|
|
2971
|
+
/** minValueRule(min: number) - Значение должно быть больше ${min} */
|
|
2972
|
+
const minValueRule = (min) => value => {
|
|
2973
|
+
const valid = (0,validators_.minValue)(min).$validator(value, null, null);
|
|
2974
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2975
|
+
return true;
|
|
2976
|
+
}
|
|
2977
|
+
return `Значение должно быть больше ${min}`;
|
|
2978
|
+
};
|
|
2979
|
+
/** numericRule() - Разрешены только цифры */
|
|
2980
|
+
const numericRule = () => value => {
|
|
2981
|
+
const valid = validators_.numeric.$validator(value, null, null);
|
|
2982
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2983
|
+
return true;
|
|
2984
|
+
}
|
|
2985
|
+
return 'Разрешены только цифры';
|
|
2986
|
+
};
|
|
2987
|
+
/** urlRule() - Неправильный формат URI */
|
|
2988
|
+
const urlRule = () => value => {
|
|
2989
|
+
const valid = validators_.url.$validator(value, null, null);
|
|
2990
|
+
if (typeof valid === 'boolean' && valid) {
|
|
2991
|
+
return true;
|
|
2992
|
+
}
|
|
2993
|
+
return 'Неправильный формат URI';
|
|
2994
|
+
};
|
|
2995
|
+
/** phoneRule() - Неправильный формат телефона */
|
|
2996
|
+
const phoneRule = () => value => {
|
|
2997
|
+
const pattern = /^[\d()+-]+$/;
|
|
2998
|
+
return pattern.test(value) || 'Неправильный формат телефона';
|
|
2999
|
+
};
|
|
3000
|
+
const validators = {
|
|
3001
|
+
requiredRule,
|
|
3002
|
+
maxLengthRule,
|
|
3003
|
+
alphaRule,
|
|
3004
|
+
alphaNumRule,
|
|
3005
|
+
betweenRule,
|
|
3006
|
+
decimalRule,
|
|
3007
|
+
emailRule,
|
|
3008
|
+
integerRule,
|
|
3009
|
+
ipAddressRule,
|
|
3010
|
+
macAddressRule,
|
|
3011
|
+
maxValueRule,
|
|
3012
|
+
minValueRule,
|
|
3013
|
+
numericRule,
|
|
3014
|
+
urlRule,
|
|
3015
|
+
phoneRule,
|
|
3016
|
+
};
|
|
3017
|
+
/* harmony default export */ const mixins_validators = ({});
|
|
3018
|
+
|
|
3019
|
+
;// CONCATENATED MODULE: ./src/utils/UIDGenerator.ts
|
|
3020
|
+
function uidGen(len = 6, format) {
|
|
3021
|
+
let result = '';
|
|
3022
|
+
let dic = '';
|
|
3023
|
+
switch (format) {
|
|
3024
|
+
case 'a-z':
|
|
3025
|
+
dic = 'abcdefghijklmnopqrstuvwxyz';
|
|
3026
|
+
break;
|
|
3027
|
+
case 'A-Z':
|
|
3028
|
+
dic = 'ABCDEFGHIJKLMNOPQRSTUWVXYZ';
|
|
3029
|
+
break;
|
|
3030
|
+
case '0-9':
|
|
3031
|
+
dic = '1234567890';
|
|
3032
|
+
break;
|
|
3033
|
+
case 'a-zA-Z':
|
|
3034
|
+
dic = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ';
|
|
3035
|
+
break;
|
|
3036
|
+
case 'a-z0-9':
|
|
3037
|
+
dic = 'abcdefghijklmnopqrstuvwxyz1234567890';
|
|
3038
|
+
break;
|
|
3039
|
+
case 'A-Z0-9':
|
|
3040
|
+
dic = 'ABCDEFGHIJKLMNOPQRSTUWVXYZ1234567890';
|
|
3041
|
+
break;
|
|
3042
|
+
default:
|
|
3043
|
+
dic = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ1234567890';
|
|
3044
|
+
}
|
|
3045
|
+
for (let i = 0; i < len; i++) {
|
|
3046
|
+
result += dic.charAt(Math.floor(Math.random() * dic.length));
|
|
3047
|
+
}
|
|
3048
|
+
if (format === '0-9') {
|
|
3049
|
+
return Number(result);
|
|
3050
|
+
}
|
|
3051
|
+
return result;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
;// CONCATENATED MODULE: ./src/mixins/validatable.mixin.ts
|
|
3055
|
+
var validatable_mixin_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3056
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3057
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3058
|
+
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;
|
|
3059
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3060
|
+
};
|
|
3061
|
+
var validatable_mixin_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
3062
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3063
|
+
};
|
|
3064
|
+
var validatable_mixin_a, _b, _c;
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
|
|
3068
|
+
class ValidatableMixin extends external_vue_property_decorator_.Vue {
|
|
3069
|
+
constructor() {
|
|
3070
|
+
super(...arguments);
|
|
3071
|
+
this.myRules = [];
|
|
3072
|
+
this.validationMessage = '';
|
|
3073
|
+
this.errorBucket = [];
|
|
3074
|
+
this.uid = uidGen(6, '0-9');
|
|
3075
|
+
}
|
|
3076
|
+
onRulesChanged(newVal) {
|
|
3077
|
+
if (Array.isArray(newVal) && newVal.length) {
|
|
3078
|
+
this.myRules = [...newVal, ...this.customRules];
|
|
3079
|
+
}
|
|
3080
|
+
else {
|
|
3081
|
+
this.myRules = [...this.customRules];
|
|
3082
|
+
}
|
|
3083
|
+
}
|
|
3084
|
+
get validRules() {
|
|
3085
|
+
return this.required ? [requiredRule()].concat(this.myRules) : this.myRules;
|
|
3086
|
+
}
|
|
3087
|
+
get showError() {
|
|
3088
|
+
return this.validRules.length ? Boolean(this.validationMessage) : false;
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
validatable_mixin_decorate([
|
|
3092
|
+
(0,external_vue_property_decorator_.Prop)({ type: Array, default: () => [] }),
|
|
3093
|
+
validatable_mixin_metadata("design:type", typeof (validatable_mixin_a = typeof Array !== "undefined" && Array) === "function" ? validatable_mixin_a : Object)
|
|
3094
|
+
], ValidatableMixin.prototype, "rules", void 0);
|
|
3095
|
+
validatable_mixin_decorate([
|
|
3096
|
+
(0,external_vue_property_decorator_.Prop)({ type: Array, default: () => [] }),
|
|
3097
|
+
validatable_mixin_metadata("design:type", typeof (_b = typeof Array !== "undefined" && Array) === "function" ? _b : Object)
|
|
3098
|
+
], ValidatableMixin.prototype, "customRules", void 0);
|
|
3099
|
+
validatable_mixin_decorate([
|
|
3100
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
|
|
3101
|
+
validatable_mixin_metadata("design:type", Boolean)
|
|
3102
|
+
], ValidatableMixin.prototype, "validateOnBlur", void 0);
|
|
3103
|
+
validatable_mixin_decorate([
|
|
3104
|
+
(0,external_vue_property_decorator_.Watch)('rules', { immediate: true }),
|
|
3105
|
+
validatable_mixin_metadata("design:type", Function),
|
|
3106
|
+
validatable_mixin_metadata("design:paramtypes", [typeof (_c = typeof Array !== "undefined" && Array) === "function" ? _c : Object]),
|
|
3107
|
+
validatable_mixin_metadata("design:returntype", void 0)
|
|
3108
|
+
], ValidatableMixin.prototype, "onRulesChanged", null);
|
|
3109
|
+
|
|
3110
|
+
// EXTERNAL MODULE: external "vue-imask"
|
|
3111
|
+
var external_vue_imask_ = __webpack_require__(434);
|
|
3112
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./src/ld-edit-text/ld-edit-text.ts?vue&type=script&lang=ts&external
|
|
3113
|
+
var ld_edit_textvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3114
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3115
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3116
|
+
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;
|
|
3117
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3118
|
+
};
|
|
3119
|
+
var ld_edit_textvue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
3120
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3121
|
+
};
|
|
3122
|
+
var ld_edit_textvue_type_script_lang_ts_external_a;
|
|
3123
|
+
|
|
3124
|
+
|
|
3125
|
+
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
|
|
3132
|
+
/**
|
|
3133
|
+
* Простой компонент ввода текстовой информации
|
|
3134
|
+
* @displayName card-edit-text
|
|
3135
|
+
* @property validateOnBlur: booolean (default: false)
|
|
3136
|
+
* @property rules: Array<string> - набор названий предопределённых правил валидации. Правила описаны в файле ;
|
|
3137
|
+
* @property customRules: Array<() => boolean> - набор кастомных правил валидации. (пример на https://vuetifyjs.com/ru/components/text-fields);
|
|
3138
|
+
*/
|
|
3139
|
+
let CardEditTextComponent = class CardEditTextComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
|
|
3140
|
+
constructor() {
|
|
3141
|
+
super(...arguments);
|
|
3142
|
+
this.value = '-1'; // используется для числового ввода (onlyNumbers = true), string из-за требований imask-input (он ждёт строку)
|
|
3143
|
+
this.deboucedFunc = null;
|
|
3144
|
+
this.savedModelValue = '';
|
|
3145
|
+
this.passwordVisible = false;
|
|
3146
|
+
}
|
|
3147
|
+
emitEnter() {
|
|
3148
|
+
return true;
|
|
3149
|
+
}
|
|
3150
|
+
emitKeydown(e) {
|
|
3151
|
+
return e;
|
|
3152
|
+
}
|
|
3153
|
+
emitChange(e) {
|
|
3154
|
+
return e;
|
|
3155
|
+
}
|
|
3156
|
+
emitUpdateModelValue(value) {
|
|
3157
|
+
return value;
|
|
3158
|
+
}
|
|
3159
|
+
emitUpdateValue(value) {
|
|
3160
|
+
return value;
|
|
3161
|
+
}
|
|
3162
|
+
emitClick(e) {
|
|
3163
|
+
return e;
|
|
3164
|
+
}
|
|
3165
|
+
emitCopy(e) {
|
|
3166
|
+
return e;
|
|
3167
|
+
}
|
|
3168
|
+
emitBlur(e) {
|
|
3169
|
+
return e;
|
|
3170
|
+
}
|
|
3171
|
+
onTextChanged() {
|
|
3172
|
+
if (!this.onlyNumbers && this.$refs.vInput) {
|
|
3173
|
+
this.validate();
|
|
3174
|
+
}
|
|
3175
|
+
else {
|
|
3176
|
+
if (this.value && String(this.value) === String(this.modelValue)) {
|
|
3177
|
+
return;
|
|
3178
|
+
}
|
|
3179
|
+
this.value = Number.isNaN(Number(this.modelValue)) ? '' : (this.modelValue || '').toString();
|
|
3180
|
+
this.validate();
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
onlyNumbersChange(newVal) {
|
|
3184
|
+
if (newVal) {
|
|
3185
|
+
if (!this.modelValue) {
|
|
3186
|
+
this.value = '0';
|
|
3187
|
+
}
|
|
3188
|
+
else {
|
|
3189
|
+
this.value = Number.isNaN(Number(this.modelValue)) ? '' : this.modelValue.toString();
|
|
3190
|
+
}
|
|
3191
|
+
this.form?.register(this, null);
|
|
3192
|
+
}
|
|
3193
|
+
else {
|
|
3194
|
+
this.form?.unregister(this, null);
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
onValueChanged(newVal, oldVal) {
|
|
3198
|
+
if (!newVal && !oldVal) {
|
|
3199
|
+
return;
|
|
3200
|
+
}
|
|
3201
|
+
const emitData = this.$utils.isDefined(newVal) ? Number(newVal) : null;
|
|
3202
|
+
if (this.nonZero && emitData === 0) {
|
|
3203
|
+
this.value = null;
|
|
3204
|
+
}
|
|
3205
|
+
this.emitUpdateModelValue(emitData);
|
|
3206
|
+
}
|
|
3207
|
+
created() {
|
|
3208
|
+
if (this.form) {
|
|
3209
|
+
this.form.register(this, null);
|
|
3210
|
+
}
|
|
3211
|
+
if (this.debounced) {
|
|
3212
|
+
this.deboucedFunc = lodash_es_debounce((value) => this.emitUpdateModelValue(value), this.debounced);
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
unmounted() {
|
|
3216
|
+
if (this.form) {
|
|
3217
|
+
this.form.unregister(this, null);
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
onBlur(e) {
|
|
3221
|
+
this.emitBlur(e);
|
|
3222
|
+
this.validate();
|
|
3223
|
+
}
|
|
3224
|
+
onFocus(e) {
|
|
3225
|
+
this.validationMessage = '';
|
|
3226
|
+
}
|
|
3227
|
+
onKeydown(e) {
|
|
3228
|
+
if (e.key === 'Enter') {
|
|
3229
|
+
this.emitEnter();
|
|
3230
|
+
}
|
|
3231
|
+
else {
|
|
3232
|
+
this.emitKeydown(e);
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
onUpdateModelValue(value) {
|
|
3236
|
+
if (this.type === 'password' && !this.passwordVisible) {
|
|
3237
|
+
const val = value.replace(/•/g, '');
|
|
3238
|
+
if (val.length === 0) {
|
|
3239
|
+
this.savedModelValue = this.savedModelValue.slice(0, value.length);
|
|
3240
|
+
}
|
|
3241
|
+
else if (value.length === 1) {
|
|
3242
|
+
this.savedModelValue = val;
|
|
3243
|
+
}
|
|
3244
|
+
else if (value.length > 1) {
|
|
3245
|
+
this.savedModelValue += val;
|
|
3246
|
+
}
|
|
3247
|
+
value = value
|
|
3248
|
+
.split('')
|
|
3249
|
+
.map(i => '•')
|
|
3250
|
+
.join('');
|
|
3251
|
+
}
|
|
3252
|
+
if (this.debounced) {
|
|
3253
|
+
this.deboucedFunc(value);
|
|
3254
|
+
}
|
|
3255
|
+
else {
|
|
3256
|
+
this.emitUpdateModelValue(value);
|
|
3257
|
+
this.emitUpdateValue(this.savedModelValue);
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
passwordVisibilityToggle() {
|
|
3261
|
+
this.passwordVisible = !this.passwordVisible;
|
|
3262
|
+
if (this.passwordVisible) {
|
|
3263
|
+
this.onUpdateModelValue(this.savedModelValue);
|
|
3264
|
+
}
|
|
3265
|
+
else {
|
|
3266
|
+
this.savedModelValue = '';
|
|
3267
|
+
this.onUpdateModelValue(this.modelValue);
|
|
3268
|
+
}
|
|
3269
|
+
}
|
|
3270
|
+
validate() {
|
|
3271
|
+
let funcResult = null;
|
|
3272
|
+
this.validationMessage = '';
|
|
3273
|
+
for (const func of this.validRules) {
|
|
3274
|
+
if (this.validationMessage) {
|
|
3275
|
+
break;
|
|
3276
|
+
}
|
|
3277
|
+
const value = this.type === 'password' ? this.savedModelValue : this.modelValue;
|
|
3278
|
+
funcResult = func(value);
|
|
3279
|
+
if (typeof funcResult === 'string') {
|
|
3280
|
+
this.validationMessage = funcResult;
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3283
|
+
return !this.validationMessage;
|
|
3284
|
+
}
|
|
3285
|
+
get appendIcon() {
|
|
3286
|
+
if (this.clearIcon && this.modelValue) {
|
|
3287
|
+
return 'close';
|
|
3288
|
+
}
|
|
3289
|
+
return '';
|
|
3290
|
+
}
|
|
3291
|
+
get labelStyle() {
|
|
3292
|
+
return {
|
|
3293
|
+
'text-align': this.alignLabelToRight ? 'end' : 'start',
|
|
3294
|
+
};
|
|
3295
|
+
}
|
|
3296
|
+
};
|
|
3297
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3298
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3299
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
3300
|
+
], CardEditTextComponent.prototype, "modelValue", void 0);
|
|
3301
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3302
|
+
(0,external_vue_property_decorator_.Prop)({ default: 'text' }),
|
|
3303
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
3304
|
+
], CardEditTextComponent.prototype, "type", void 0);
|
|
3305
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3306
|
+
(0,external_vue_property_decorator_.Prop)({ default: false, type: Boolean }),
|
|
3307
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
3308
|
+
], CardEditTextComponent.prototype, "clearIcon", void 0);
|
|
3309
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3310
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
3311
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
3312
|
+
], CardEditTextComponent.prototype, "persistentHint", void 0);
|
|
3313
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3314
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3315
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
3316
|
+
], CardEditTextComponent.prototype, "inputHint", void 0);
|
|
3317
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3318
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3319
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
3320
|
+
], CardEditTextComponent.prototype, "mask", void 0);
|
|
3321
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3322
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3323
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
3324
|
+
], CardEditTextComponent.prototype, "maxlength", void 0);
|
|
3325
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3326
|
+
(0,external_vue_property_decorator_.Prop)({ type: String, default: '' }),
|
|
3327
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
3328
|
+
], CardEditTextComponent.prototype, "placeholder", void 0);
|
|
3329
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3330
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3331
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
3332
|
+
], CardEditTextComponent.prototype, "prefix", void 0);
|
|
3333
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3334
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3335
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
3336
|
+
], CardEditTextComponent.prototype, "suffix", void 0);
|
|
3337
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3338
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
3339
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
3340
|
+
], CardEditTextComponent.prototype, "clearable", void 0);
|
|
3341
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3342
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
3343
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
3344
|
+
], CardEditTextComponent.prototype, "onlyNumbers", void 0);
|
|
3345
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3346
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
3347
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
3348
|
+
], CardEditTextComponent.prototype, "nonZero", void 0);
|
|
3349
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3350
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3351
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
3352
|
+
], CardEditTextComponent.prototype, "scale", void 0);
|
|
3353
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3354
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3355
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
3356
|
+
], CardEditTextComponent.prototype, "minValue", void 0);
|
|
3357
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3358
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3359
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
3360
|
+
], CardEditTextComponent.prototype, "maxValue", void 0);
|
|
3361
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3362
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
3363
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
3364
|
+
], CardEditTextComponent.prototype, "signed", void 0);
|
|
3365
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3366
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
3367
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
3368
|
+
], CardEditTextComponent.prototype, "debounced", void 0);
|
|
3369
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3370
|
+
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
3371
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
3372
|
+
], CardEditTextComponent.prototype, "form", void 0);
|
|
3373
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3374
|
+
Emit('enter'),
|
|
3375
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3376
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
3377
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3378
|
+
], CardEditTextComponent.prototype, "emitEnter", null);
|
|
3379
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3380
|
+
Emit('keydown'),
|
|
3381
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3382
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [typeof (ld_edit_textvue_type_script_lang_ts_external_a = typeof KeyboardEvent !== "undefined" && KeyboardEvent) === "function" ? ld_edit_textvue_type_script_lang_ts_external_a : Object]),
|
|
3383
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3384
|
+
], CardEditTextComponent.prototype, "emitKeydown", null);
|
|
3385
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3386
|
+
Emit('change'),
|
|
3387
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3388
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
3389
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3390
|
+
], CardEditTextComponent.prototype, "emitChange", null);
|
|
3391
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3392
|
+
Emit('update:model-value'),
|
|
3393
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3394
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
3395
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3396
|
+
], CardEditTextComponent.prototype, "emitUpdateModelValue", null);
|
|
3397
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3398
|
+
Emit('update:value'),
|
|
3399
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3400
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
3401
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3402
|
+
], CardEditTextComponent.prototype, "emitUpdateValue", null);
|
|
3403
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3404
|
+
Emit('click'),
|
|
3405
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3406
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
3407
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3408
|
+
], CardEditTextComponent.prototype, "emitClick", null);
|
|
3409
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3410
|
+
Emit('copy'),
|
|
3411
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3412
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
3413
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3414
|
+
], CardEditTextComponent.prototype, "emitCopy", null);
|
|
3415
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3416
|
+
Emit('blur'),
|
|
3417
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3418
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
|
|
3419
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3420
|
+
], CardEditTextComponent.prototype, "emitBlur", null);
|
|
3421
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3422
|
+
(0,external_vue_property_decorator_.Watch)('modelValue'),
|
|
3423
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3424
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
3425
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3426
|
+
], CardEditTextComponent.prototype, "onTextChanged", null);
|
|
3427
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3428
|
+
(0,external_vue_property_decorator_.Watch)('onlyNumbers', { immediate: true }),
|
|
3429
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3430
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Boolean]),
|
|
3431
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3432
|
+
], CardEditTextComponent.prototype, "onlyNumbersChange", null);
|
|
3433
|
+
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3434
|
+
(0,external_vue_property_decorator_.Watch)('value'),
|
|
3435
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
3436
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [String, String]),
|
|
3437
|
+
ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
3438
|
+
], CardEditTextComponent.prototype, "onValueChanged", null);
|
|
3439
|
+
CardEditTextComponent = ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
3440
|
+
(0,external_vue_property_decorator_.Options)({
|
|
3441
|
+
components: {
|
|
3442
|
+
'imask-input': external_vue_imask_.IMaskComponent,
|
|
3443
|
+
'ld-label': ld_label
|
|
3444
|
+
},
|
|
3445
|
+
})
|
|
3446
|
+
], CardEditTextComponent);
|
|
3447
|
+
/* harmony default export */ const ld_edit_textvue_type_script_lang_ts_external = (CardEditTextComponent);
|
|
3448
|
+
|
|
3449
|
+
;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.ts?vue&type=script&lang=ts&external
|
|
3450
|
+
|
|
3451
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-2.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-edit-text/ld-edit-text.vue?vue&type=style&index=0&id=020a6720&scoped=true&lang=scss
|
|
3452
|
+
var ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss = __webpack_require__(393);
|
|
3453
|
+
;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-2.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-edit-text/ld-edit-text.vue?vue&type=style&index=0&id=020a6720&scoped=true&lang=scss
|
|
3454
|
+
|
|
3455
|
+
|
|
3456
|
+
|
|
3457
|
+
|
|
3458
|
+
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
|
|
3463
|
+
|
|
3464
|
+
|
|
3465
|
+
var ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss_options = {};
|
|
3466
|
+
|
|
3467
|
+
ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss_options.styleTagTransform = (styleTagTransform_default());
|
|
3468
|
+
ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss_options.setAttributes = (setAttributesWithoutAttributes_default());
|
|
3469
|
+
|
|
3470
|
+
ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss_options.insert = insertBySelector_default().bind(null, "head");
|
|
3471
|
+
|
|
3472
|
+
ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss_options.domAPI = (styleDomAPI_default());
|
|
3473
|
+
ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss_options.insertStyleElement = (insertStyleElement_default());
|
|
3474
|
+
|
|
3475
|
+
var ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss_update = injectStylesIntoStyleTag_default()(ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss/* default */.A, ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss_options);
|
|
3476
|
+
|
|
3477
|
+
|
|
3478
|
+
|
|
3479
|
+
|
|
3480
|
+
/* harmony default export */ const ld_edit_text_ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss = (ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss/* default */.A && ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss/* default */.A.locals ? ld_edit_textvue_type_style_index_0_id_020a6720_scoped_true_lang_scss/* default */.A.locals : undefined);
|
|
3481
|
+
|
|
3482
|
+
;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=style&index=0&id=020a6720&scoped=true&lang=scss
|
|
3483
|
+
|
|
3484
|
+
;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue
|
|
3485
|
+
|
|
3486
|
+
|
|
3487
|
+
|
|
3488
|
+
|
|
3489
|
+
;
|
|
3490
|
+
|
|
3491
|
+
|
|
3492
|
+
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_020a6720_scoped_true_ts_true_render],['__scopeId',"data-v-020a6720"]])
|
|
3493
|
+
|
|
3494
|
+
/* harmony default export */ const ld_edit_text = (ld_edit_text_exports_);
|
|
3495
|
+
;// CONCATENATED MODULE: ./src/ld-edit-text/index.ts
|
|
3496
|
+
|
|
3497
|
+
function ld_edit_text_reg(vue, options) {
|
|
3498
|
+
vue.component(options?.aliases?.['ld-edit-text'] ? options.aliases['ld-edit-text'] : 'ld-edit-text', ld_edit_text);
|
|
3499
|
+
}
|
|
3500
|
+
/* harmony default export */ const src_ld_edit_text = (ld_edit_text_reg);
|
|
3501
|
+
|
|
3502
|
+
;// CONCATENATED MODULE: ./src/utils/delay.ts
|
|
3503
|
+
async function delay(timeout) {
|
|
3504
|
+
return new Promise(resolve => setTimeout(() => resolve(), timeout));
|
|
3505
|
+
}
|
|
3506
|
+
|
|
2274
3507
|
;// CONCATENATED MODULE: ./src/vuetify.ts
|
|
2275
3508
|
const aliases = {
|
|
2276
3509
|
SmallButton: 'VBtn',
|
|
@@ -2340,6 +3573,8 @@ const ActiveDirectiveOptions = {
|
|
|
2340
3573
|
|
|
2341
3574
|
|
|
2342
3575
|
|
|
3576
|
+
|
|
3577
|
+
|
|
2343
3578
|
const ldmuiPlugin = {
|
|
2344
3579
|
install(vue, options) {
|
|
2345
3580
|
src_ld_icon(vue, options);
|
|
@@ -2348,11 +3583,14 @@ const ldmuiPlugin = {
|
|
|
2348
3583
|
src_ld_splitter(vue, options);
|
|
2349
3584
|
src_ld_toggle_buttons(vue, options);
|
|
2350
3585
|
src_ld_breadcrumbs(vue, options);
|
|
3586
|
+
src_ld_edit_text(vue, options);
|
|
2351
3587
|
vue.config.globalProperties.$utils = {
|
|
2352
|
-
isDefined: isDefined
|
|
3588
|
+
isDefined: isDefined,
|
|
3589
|
+
uidGen: uidGen,
|
|
3590
|
+
delay: delay
|
|
2353
3591
|
};
|
|
2354
3592
|
vue.config.globalProperties.$ldmui = {
|
|
2355
|
-
options
|
|
3593
|
+
options,
|
|
2356
3594
|
};
|
|
2357
3595
|
vue.directive('active', ActiveDirectiveOptions);
|
|
2358
3596
|
},
|