@ldmjs/ui 1.0.49 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +6 -6
- package/dist/i18n/en/en-En.json +18 -0
- package/dist/i18n/ru/ru-Ru.json +18 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +541 -542
- package/dist/scss/_dialogs.scss +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -132,6 +132,22 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__5070__;
|
|
|
132
132
|
"use strict";
|
|
133
133
|
module.exports = __WEBPACK_EXTERNAL_MODULE__7982__;
|
|
134
134
|
|
|
135
|
+
/***/ }),
|
|
136
|
+
|
|
137
|
+
/***/ 8179:
|
|
138
|
+
/***/ ((module) => {
|
|
139
|
+
|
|
140
|
+
"use strict";
|
|
141
|
+
module.exports = /*#__PURE__*/JSON.parse('{"en":{"Hours":"","Minutes":"","Seconds":"","Hide tabs":"","Show tabs":"","Expand":"","Collapsed windows":"","Close":"","Close all":"","Hide password":"","Show password":"","Text":"","Preview":"","No data":""}}');
|
|
142
|
+
|
|
143
|
+
/***/ }),
|
|
144
|
+
|
|
145
|
+
/***/ 1397:
|
|
146
|
+
/***/ ((module) => {
|
|
147
|
+
|
|
148
|
+
"use strict";
|
|
149
|
+
module.exports = /*#__PURE__*/JSON.parse('{"ru":{"Hours":"Часы","Minutes":"Минуты","Seconds":"Секунды","Hide tabs":"Скрыть вкладки","Show tabs":"Показать вкладки","Expand":"Развернуть","Collapsed windows":"Свернутые окна","Close":"Закрыть","Close all":"Закрыть все","Hide password":"Скрыть пароль","Show password":"Показать пароль","Text":"Текст","Preview":"Превью","No data":"Нет данных"}}');
|
|
150
|
+
|
|
135
151
|
/***/ })
|
|
136
152
|
|
|
137
153
|
/******/ });
|
|
@@ -274,6 +290,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
274
290
|
ipAddressRule: () => (/* reexport */ validators_js_.ipAddressRule),
|
|
275
291
|
isDefined: () => (/* reexport */ isDefined),
|
|
276
292
|
isObjectEmpty: () => (/* reexport */ isObjectEmpty),
|
|
293
|
+
ldmuii18n: () => (/* binding */ ldmuii18n),
|
|
277
294
|
macAddressRule: () => (/* reexport */ validators_js_.macAddressRule),
|
|
278
295
|
maxLengthRule: () => (/* reexport */ validators_js_.maxLengthRule),
|
|
279
296
|
maxValueRule: () => (/* reexport */ validators_js_.maxValueRule),
|
|
@@ -849,6 +866,46 @@ function ld_buttonvue_type_template_id_c4f3f8da_render(_ctx, _cache, $props, $se
|
|
|
849
866
|
}
|
|
850
867
|
;// ./src/ld-button/ld-button.vue?vue&type=template&id=c4f3f8da
|
|
851
868
|
|
|
869
|
+
;// ./src/decorators/emit.decorator.ts
|
|
870
|
+
|
|
871
|
+
function makeDecoratorEmit(event) {
|
|
872
|
+
function helper(proto, key) {
|
|
873
|
+
return (0,external_vue_class_component_.createDecorator)((componentOptions, propertyKey) => {
|
|
874
|
+
const emitName = event.toLowerCase();
|
|
875
|
+
if (!componentOptions.emits) {
|
|
876
|
+
componentOptions.emits = [];
|
|
877
|
+
}
|
|
878
|
+
componentOptions.emits.push(emitName);
|
|
879
|
+
const original = componentOptions.methods[propertyKey];
|
|
880
|
+
componentOptions.methods[propertyKey] = function emitter(...args) {
|
|
881
|
+
const emit = (returnValue) => {
|
|
882
|
+
/* eslint-disable no-undefined */
|
|
883
|
+
if (returnValue === undefined) {
|
|
884
|
+
if (args.length === 0) {
|
|
885
|
+
this.$emit(emitName);
|
|
886
|
+
}
|
|
887
|
+
else if (args.length === 1) {
|
|
888
|
+
this.$emit(emitName, args[0]);
|
|
889
|
+
}
|
|
890
|
+
else {
|
|
891
|
+
this.$emit(emitName, ...args);
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
else {
|
|
895
|
+
args.unshift(returnValue);
|
|
896
|
+
this.$emit(emitName, ...args);
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
const returnValue = original.apply(this, args);
|
|
900
|
+
emit(returnValue);
|
|
901
|
+
};
|
|
902
|
+
})(proto, key);
|
|
903
|
+
}
|
|
904
|
+
return helper;
|
|
905
|
+
}
|
|
906
|
+
const Emit = makeDecoratorEmit;
|
|
907
|
+
|
|
908
|
+
|
|
852
909
|
;// ./src/mixins/viewport.mixins.ts
|
|
853
910
|
|
|
854
911
|
class ViewportMixin extends external_vue_property_decorator_.Vue {
|
|
@@ -884,6 +941,7 @@ var ld_buttonvue_type_script_lang_js_external_metadata = (undefined && undefined
|
|
|
884
941
|
};
|
|
885
942
|
|
|
886
943
|
|
|
944
|
+
|
|
887
945
|
/**
|
|
888
946
|
* isDesktop - кнопка отображатеся как стандартная кнопка с иконкой и надписью
|
|
889
947
|
* isTablet - на кнопке остается одна иконка, надпись уходит в tooltip
|
|
@@ -894,8 +952,11 @@ var ld_buttonvue_type_script_lang_js_external_metadata = (undefined && undefined
|
|
|
894
952
|
* slot name=hidden - для вспомогательных скрытых элементов
|
|
895
953
|
*/
|
|
896
954
|
let ResponsiveButtonComponent = class ResponsiveButtonComponent extends (0,external_vue_property_decorator_.mixins)(ViewportMixin) {
|
|
955
|
+
emitClick(value) {
|
|
956
|
+
return value;
|
|
957
|
+
}
|
|
897
958
|
onClick(value) {
|
|
898
|
-
this
|
|
959
|
+
this.emitClick(value);
|
|
899
960
|
}
|
|
900
961
|
get isMobileGlobal() {
|
|
901
962
|
if (this.$utils.isDefined(this.isDesktopView) && this.isDesktopView) {
|
|
@@ -969,6 +1030,12 @@ ld_buttonvue_type_script_lang_js_external_decorate([
|
|
|
969
1030
|
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: null }),
|
|
970
1031
|
ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
971
1032
|
], ResponsiveButtonComponent.prototype, "isMobileView", void 0);
|
|
1033
|
+
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
1034
|
+
Emit('click'),
|
|
1035
|
+
ld_buttonvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
1036
|
+
ld_buttonvue_type_script_lang_js_external_metadata("design:paramtypes", [Object]),
|
|
1037
|
+
ld_buttonvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
1038
|
+
], ResponsiveButtonComponent.prototype, "emitClick", null);
|
|
972
1039
|
ResponsiveButtonComponent = ld_buttonvue_type_script_lang_js_external_decorate([
|
|
973
1040
|
(0,external_vue_property_decorator_.Options)({
|
|
974
1041
|
emits: ['click'],
|
|
@@ -2047,10 +2114,10 @@ function ld_breadcrumbs_reg(vue, options) {
|
|
|
2047
2114
|
}
|
|
2048
2115
|
/* harmony default export */ const src_ld_breadcrumbs = (ld_breadcrumbs_reg);
|
|
2049
2116
|
|
|
2050
|
-
;// ./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!./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=
|
|
2117
|
+
;// ./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!./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=2377fb12&scoped=true&ts=true
|
|
2051
2118
|
|
|
2052
|
-
const
|
|
2053
|
-
const
|
|
2119
|
+
const ld_edit_textvue_type_template_id_2377fb12_scoped_true_ts_true_hoisted_1 = { class: "ld-edit-text" };
|
|
2120
|
+
const ld_edit_textvue_type_template_id_2377fb12_scoped_true_ts_true_hoisted_2 = { key: 0 };
|
|
2054
2121
|
const _hoisted_3 = { key: 1 };
|
|
2055
2122
|
const _hoisted_4 = {
|
|
2056
2123
|
key: 1,
|
|
@@ -2073,7 +2140,7 @@ const _hoisted_8 = {
|
|
|
2073
2140
|
key: 1,
|
|
2074
2141
|
class: "grey--text"
|
|
2075
2142
|
};
|
|
2076
|
-
function
|
|
2143
|
+
function ld_edit_textvue_type_template_id_2377fb12_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2077
2144
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
2078
2145
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
2079
2146
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
@@ -2082,7 +2149,7 @@ function ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_render(_c
|
|
|
2082
2149
|
const _component_imask_input = (0,external_vue_.resolveComponent)("imask-input");
|
|
2083
2150
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
2084
2151
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
2085
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
2152
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_2377fb12_scoped_true_ts_true_hoisted_1, [
|
|
2086
2153
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
2087
2154
|
default: (0,external_vue_.withCtx)(() => [
|
|
2088
2155
|
(_ctx.label)
|
|
@@ -2201,8 +2268,8 @@ function ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_render(_c
|
|
|
2201
2268
|
default: (0,external_vue_.withCtx)(() => [
|
|
2202
2269
|
_cache[5] || (_cache[5] = (0,external_vue_.createTextVNode)()),
|
|
2203
2270
|
(_ctx.passwordVisible)
|
|
2204
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
2205
|
-
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", _hoisted_3,
|
|
2271
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_2377fb12_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Hide password')), 1))
|
|
2272
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", _hoisted_3, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Show password')), 1))
|
|
2206
2273
|
]),
|
|
2207
2274
|
_: 1
|
|
2208
2275
|
}))
|
|
@@ -2262,47 +2329,7 @@ function ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_render(_c
|
|
|
2262
2329
|
]));
|
|
2263
2330
|
}
|
|
2264
2331
|
|
|
2265
|
-
;// ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=
|
|
2266
|
-
|
|
2267
|
-
;// ./src/decorators/emit.decorator.ts
|
|
2268
|
-
|
|
2269
|
-
function makeDecoratorEmit(event) {
|
|
2270
|
-
function helper(proto, key) {
|
|
2271
|
-
return (0,external_vue_class_component_.createDecorator)((componentOptions, propertyKey) => {
|
|
2272
|
-
const emitName = event.toLowerCase();
|
|
2273
|
-
if (!componentOptions.emits) {
|
|
2274
|
-
componentOptions.emits = [];
|
|
2275
|
-
}
|
|
2276
|
-
componentOptions.emits.push(emitName);
|
|
2277
|
-
const original = componentOptions.methods[propertyKey];
|
|
2278
|
-
componentOptions.methods[propertyKey] = function emitter(...args) {
|
|
2279
|
-
const emit = (returnValue) => {
|
|
2280
|
-
/* eslint-disable no-undefined */
|
|
2281
|
-
if (returnValue === undefined) {
|
|
2282
|
-
if (args.length === 0) {
|
|
2283
|
-
this.$emit(emitName);
|
|
2284
|
-
}
|
|
2285
|
-
else if (args.length === 1) {
|
|
2286
|
-
this.$emit(emitName, args[0]);
|
|
2287
|
-
}
|
|
2288
|
-
else {
|
|
2289
|
-
this.$emit(emitName, ...args);
|
|
2290
|
-
}
|
|
2291
|
-
}
|
|
2292
|
-
else {
|
|
2293
|
-
args.unshift(returnValue);
|
|
2294
|
-
this.$emit(emitName, ...args);
|
|
2295
|
-
}
|
|
2296
|
-
};
|
|
2297
|
-
const returnValue = original.apply(this, args);
|
|
2298
|
-
emit(returnValue);
|
|
2299
|
-
};
|
|
2300
|
-
})(proto, key);
|
|
2301
|
-
}
|
|
2302
|
-
return helper;
|
|
2303
|
-
}
|
|
2304
|
-
const Emit = makeDecoratorEmit;
|
|
2305
|
-
|
|
2332
|
+
;// ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=2377fb12&scoped=true&ts=true
|
|
2306
2333
|
|
|
2307
2334
|
;// ./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!./src/ld-label/ld-label.vue?vue&type=template&id=12071c41&scoped=true&ts=true
|
|
2308
2335
|
|
|
@@ -3037,7 +3064,7 @@ EditTextComponent = ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
|
3037
3064
|
;
|
|
3038
3065
|
|
|
3039
3066
|
|
|
3040
|
-
const ld_edit_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_textvue_type_script_lang_ts_external, [['render',
|
|
3067
|
+
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_2377fb12_scoped_true_ts_true_render],['__scopeId',"data-v-2377fb12"]])
|
|
3041
3068
|
|
|
3042
3069
|
/* harmony default export */ const ld_edit_text = (ld_edit_text_exports_);
|
|
3043
3070
|
;// ./src/ld-edit-text/index.ts
|
|
@@ -3047,26 +3074,22 @@ function ld_edit_text_reg(vue, options) {
|
|
|
3047
3074
|
}
|
|
3048
3075
|
/* harmony default export */ const src_ld_edit_text = (ld_edit_text_reg);
|
|
3049
3076
|
|
|
3050
|
-
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=
|
|
3077
|
+
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=34ba51af&scoped=true
|
|
3051
3078
|
|
|
3052
3079
|
|
|
3053
|
-
const
|
|
3054
|
-
const ld_datepickervue_type_template_id_022851db_scoped_true_hoisted_2 = { key: 0 }
|
|
3055
|
-
const ld_datepickervue_type_template_id_022851db_scoped_true_hoisted_3 = { key: 1 }
|
|
3056
|
-
const ld_datepickervue_type_template_id_022851db_scoped_true_hoisted_4 = {
|
|
3080
|
+
const ld_datepickervue_type_template_id_34ba51af_scoped_true_hoisted_1 = {
|
|
3057
3081
|
key: 1,
|
|
3058
3082
|
class: "w-100",
|
|
3059
3083
|
style: {"position":"relative"}
|
|
3060
3084
|
}
|
|
3061
3085
|
|
|
3062
|
-
function
|
|
3086
|
+
function ld_datepickervue_type_template_id_34ba51af_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3063
3087
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label")
|
|
3064
3088
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon")
|
|
3065
3089
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button")
|
|
3066
3090
|
const _component_datepicker = (0,external_vue_.resolveComponent)("datepicker")
|
|
3067
3091
|
const _component_v_menu = (0,external_vue_.resolveComponent)("v-menu")
|
|
3068
3092
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col")
|
|
3069
|
-
const _component_v_card = (0,external_vue_.resolveComponent)("v-card")
|
|
3070
3093
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row")
|
|
3071
3094
|
const _component_v_container = (0,external_vue_.resolveComponent)("v-container")
|
|
3072
3095
|
|
|
@@ -3083,7 +3106,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3083
3106
|
"align-label-to-right": _ctx.alignLabelToRight
|
|
3084
3107
|
}, null, 8, ["class", "label", "required", "align-label-to-right"]))
|
|
3085
3108
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
3086
|
-
_cache[
|
|
3109
|
+
_cache[15] || (_cache[15] = (0,external_vue_.createTextVNode)()),
|
|
3087
3110
|
(0,external_vue_.createVNode)(_component_v_col, {
|
|
3088
3111
|
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
3089
3112
|
}, {
|
|
@@ -3120,7 +3143,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3120
3143
|
onFocus: _ctx.onInputDateFocus,
|
|
3121
3144
|
onEnter: _ctx.onInputDateEnter
|
|
3122
3145
|
}, null, 40, ["model-value", "id", "placeholder", "disabled", "tabindex", "autofocus", "onFocus", "onEnter"])),
|
|
3123
|
-
_cache[
|
|
3146
|
+
_cache[5] || (_cache[5] = (0,external_vue_.createTextVNode)()),
|
|
3124
3147
|
(_ctx.canClear && !_ctx.disabled && !_ctx.readonly)
|
|
3125
3148
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
3126
3149
|
key: 0,
|
|
@@ -3134,7 +3157,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3134
3157
|
}, {
|
|
3135
3158
|
default: (0,external_vue_.withCtx)(() => [
|
|
3136
3159
|
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
3137
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
3160
|
+
default: (0,external_vue_.withCtx)(() => _cache[3] || (_cache[3] = [
|
|
3138
3161
|
(0,external_vue_.createTextVNode)("close")
|
|
3139
3162
|
])),
|
|
3140
3163
|
_: 1
|
|
@@ -3143,7 +3166,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3143
3166
|
_: 1
|
|
3144
3167
|
}, 8, ["style", "onClick"]))
|
|
3145
3168
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
3146
|
-
_cache[
|
|
3169
|
+
_cache[6] || (_cache[6] = (0,external_vue_.createTextVNode)()),
|
|
3147
3170
|
(_ctx.showDatePicker)
|
|
3148
3171
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
3149
3172
|
key: 1,
|
|
@@ -3156,7 +3179,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3156
3179
|
(0,external_vue_.createVNode)(_component_ld_icon, {
|
|
3157
3180
|
color: _ctx.dateMenu ? 'primary' : undefined
|
|
3158
3181
|
}, {
|
|
3159
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
3182
|
+
default: (0,external_vue_.withCtx)(() => _cache[4] || (_cache[4] = [
|
|
3160
3183
|
(0,external_vue_.createTextVNode)("event")
|
|
3161
3184
|
])),
|
|
3162
3185
|
_: 1
|
|
@@ -3168,7 +3191,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3168
3191
|
], 16)
|
|
3169
3192
|
]),
|
|
3170
3193
|
default: (0,external_vue_.withCtx)(() => [
|
|
3171
|
-
_cache[
|
|
3194
|
+
_cache[10] || (_cache[10] = (0,external_vue_.createTextVNode)()),
|
|
3172
3195
|
(0,external_vue_.createVNode)(_component_datepicker, {
|
|
3173
3196
|
mode: "date",
|
|
3174
3197
|
is24hr: "",
|
|
@@ -3192,7 +3215,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3192
3215
|
"header-prev-button": (0,external_vue_.withCtx)(() => [
|
|
3193
3216
|
(0,external_vue_.renderSlot)(_ctx.$slots, "header-prev-button", {}, () => [
|
|
3194
3217
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), null, {
|
|
3195
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
3218
|
+
default: (0,external_vue_.withCtx)(() => _cache[7] || (_cache[7] = [
|
|
3196
3219
|
(0,external_vue_.createTextVNode)("\r\n keyboard_arrow_left\r\n ")
|
|
3197
3220
|
])),
|
|
3198
3221
|
_: 1
|
|
@@ -3202,7 +3225,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3202
3225
|
"header-next-button": (0,external_vue_.withCtx)(() => [
|
|
3203
3226
|
(0,external_vue_.renderSlot)(_ctx.$slots, "header-next-button", {}, () => [
|
|
3204
3227
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), null, {
|
|
3205
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
3228
|
+
default: (0,external_vue_.withCtx)(() => _cache[8] || (_cache[8] = [
|
|
3206
3229
|
(0,external_vue_.createTextVNode)("\r\n keyboard_arrow_right\r\n ")
|
|
3207
3230
|
])),
|
|
3208
3231
|
_: 1
|
|
@@ -3217,7 +3240,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3217
3240
|
]),
|
|
3218
3241
|
_: 3
|
|
3219
3242
|
}),
|
|
3220
|
-
_cache[
|
|
3243
|
+
_cache[13] || (_cache[13] = (0,external_vue_.createTextVNode)()),
|
|
3221
3244
|
(!_ctx.dateonly)
|
|
3222
3245
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_col, {
|
|
3223
3246
|
key: 0,
|
|
@@ -3226,143 +3249,27 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3226
3249
|
}, {
|
|
3227
3250
|
default: (0,external_vue_.withCtx)(() => [
|
|
3228
3251
|
(!_ctx.readonly && !_ctx.disabled)
|
|
3229
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(
|
|
3252
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-timepicker']), {
|
|
3230
3253
|
key: 0,
|
|
3231
|
-
|
|
3232
|
-
"
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
ref: "inputTime",
|
|
3242
|
-
id: _ctx.inputTimeId,
|
|
3243
|
-
"model-value": _ctx.timeString,
|
|
3244
|
-
style: (0,external_vue_.normalizeStyle)({
|
|
3245
|
-
color: _ctx.timeString ? 'var(--text)' : 'var(--grey-l-2)',
|
|
3246
|
-
}),
|
|
3247
|
-
class: "w-100",
|
|
3248
|
-
"hide-details": "",
|
|
3249
|
-
tabindex: _ctx.timeTabIndex,
|
|
3250
|
-
disabled: _ctx.isDateEmpty,
|
|
3251
|
-
placeholder: _ctx.placeholderTimepicker,
|
|
3252
|
-
readonly: _ctx.isMobileGlobal,
|
|
3253
|
-
onFocus: _ctx.onInputTimeFocus
|
|
3254
|
-
}, null, 40, ["id", "model-value", "style", "tabindex", "disabled", "placeholder", "readonly", "onFocus"])),
|
|
3255
|
-
_cache[15] || (_cache[15] = (0,external_vue_.createTextVNode)()),
|
|
3256
|
-
(_ctx.canClear && !_ctx.disabled && !_ctx.readonly)
|
|
3257
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
3258
|
-
key: 0,
|
|
3259
|
-
icon: "",
|
|
3260
|
-
style: {"position":"absolute","top":"0","right":"calc(var(--input-height) - 4px)"},
|
|
3261
|
-
disabled: _ctx.isDateEmpty,
|
|
3262
|
-
onClick: (0,external_vue_.withModifiers)(_ctx.clearTimeValue, ["stop"])
|
|
3263
|
-
}, {
|
|
3264
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
3265
|
-
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
3266
|
-
default: (0,external_vue_.withCtx)(() => _cache[13] || (_cache[13] = [
|
|
3267
|
-
(0,external_vue_.createTextVNode)("close")
|
|
3268
|
-
])),
|
|
3269
|
-
_: 1
|
|
3270
|
-
})
|
|
3271
|
-
]),
|
|
3272
|
-
_: 1
|
|
3273
|
-
}, 8, ["disabled", "onClick"]))
|
|
3274
|
-
: (0,external_vue_.createCommentVNode)("", true),
|
|
3275
|
-
_cache[16] || (_cache[16] = (0,external_vue_.createTextVNode)()),
|
|
3276
|
-
(0,external_vue_.createVNode)(_component_square_button, {
|
|
3277
|
-
icon: "",
|
|
3278
|
-
style: {"position":"absolute","top":"0","right":"0"},
|
|
3279
|
-
disabled: _ctx.isDateEmpty,
|
|
3280
|
-
onClick: _cache[2] || (_cache[2] = (0,external_vue_.withModifiers)($event => (_ctx.timeMenu = !_ctx.timeMenu), ["stop"]))
|
|
3281
|
-
}, {
|
|
3282
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
3283
|
-
(0,external_vue_.createVNode)(_component_ld_icon, {
|
|
3284
|
-
color: _ctx.timeMenu ? 'primary' : undefined
|
|
3285
|
-
}, {
|
|
3286
|
-
default: (0,external_vue_.withCtx)(() => _cache[14] || (_cache[14] = [
|
|
3287
|
-
(0,external_vue_.createTextVNode)("access_time")
|
|
3288
|
-
])),
|
|
3289
|
-
_: 1
|
|
3290
|
-
}, 8, ["color"])
|
|
3291
|
-
]),
|
|
3292
|
-
_: 1
|
|
3293
|
-
}, 8, ["disabled"])
|
|
3294
|
-
], 16)
|
|
3295
|
-
]),
|
|
3296
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
3297
|
-
_cache[20] || (_cache[20] = (0,external_vue_.createTextVNode)()),
|
|
3298
|
-
(0,external_vue_.createVNode)(_component_v_card, {
|
|
3299
|
-
elevation: "0",
|
|
3300
|
-
style: {"border":"1px solid var(--grey-l-5)"}
|
|
3301
|
-
}, {
|
|
3302
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
3303
|
-
(0,external_vue_.createElementVNode)("div", ld_datepickervue_type_template_id_022851db_scoped_true_hoisted_1, [
|
|
3304
|
-
(_ctx.isHours)
|
|
3305
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_datepickervue_type_template_id_022851db_scoped_true_hoisted_2, "Часы"))
|
|
3306
|
-
: (0,external_vue_.createCommentVNode)("", true),
|
|
3307
|
-
_cache[18] || (_cache[18] = (0,external_vue_.createTextVNode)()),
|
|
3308
|
-
(_ctx.isMinutes)
|
|
3309
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_datepickervue_type_template_id_022851db_scoped_true_hoisted_3, "Минуты"))
|
|
3310
|
-
: (0,external_vue_.createCommentVNode)("", true),
|
|
3311
|
-
_cache[19] || (_cache[19] = (0,external_vue_.createTextVNode)()),
|
|
3312
|
-
(0,external_vue_.createElementVNode)("div", null, [
|
|
3313
|
-
(_ctx.isHours)
|
|
3314
|
-
? ((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 0 }, (0,external_vue_.renderList)(Array.apply(null, { length: 24 }), (_, i) => {
|
|
3315
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
3316
|
-
key: i,
|
|
3317
|
-
variant: "outlined",
|
|
3318
|
-
color: i === _ctx.hours ? 'primary' : 'grey',
|
|
3319
|
-
onClick: $event => (_ctx.changeHours(i))
|
|
3320
|
-
}, {
|
|
3321
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
3322
|
-
(0,external_vue_.createElementVNode)("span", {
|
|
3323
|
-
class: (0,external_vue_.normalizeClass)({ 'text-color': i !== _ctx.hours })
|
|
3324
|
-
}, (0,external_vue_.toDisplayString)(('0' + i).slice(-2)), 3)
|
|
3325
|
-
]),
|
|
3326
|
-
_: 2
|
|
3327
|
-
}, 1032, ["color", "onClick"]))
|
|
3328
|
-
}), 128))
|
|
3329
|
-
: (0,external_vue_.createCommentVNode)("", true),
|
|
3330
|
-
_cache[17] || (_cache[17] = (0,external_vue_.createTextVNode)()),
|
|
3331
|
-
(_ctx.isMinutes)
|
|
3332
|
-
? ((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 1 }, (0,external_vue_.renderList)(Array.apply(null, { length: 12 }), (_, i) => {
|
|
3333
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
3334
|
-
key: i,
|
|
3335
|
-
variant: "outlined",
|
|
3336
|
-
color: i === _ctx.minuts ? 'primary' : 'grey',
|
|
3337
|
-
onClick: $event => (_ctx.changeMinutes(i))
|
|
3338
|
-
}, {
|
|
3339
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
3340
|
-
(0,external_vue_.createElementVNode)("span", {
|
|
3341
|
-
class: (0,external_vue_.normalizeClass)({ 'text-color': i !== _ctx.minuts })
|
|
3342
|
-
}, (0,external_vue_.toDisplayString)(('0' + 5 * i).slice(-2)), 3)
|
|
3343
|
-
]),
|
|
3344
|
-
_: 2
|
|
3345
|
-
}, 1032, ["color", "onClick"]))
|
|
3346
|
-
}), 128))
|
|
3347
|
-
: (0,external_vue_.createCommentVNode)("", true)
|
|
3348
|
-
])
|
|
3349
|
-
])
|
|
3350
|
-
]),
|
|
3351
|
-
_: 1
|
|
3352
|
-
})
|
|
3353
|
-
]),
|
|
3354
|
-
_: 1
|
|
3355
|
-
}, 8, ["modelValue", "disabled"]))
|
|
3356
|
-
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_datepickervue_type_template_id_022851db_scoped_true_hoisted_4, [
|
|
3254
|
+
id: _ctx.inputTimeId,
|
|
3255
|
+
"model-value": _ctx.timeString,
|
|
3256
|
+
placeholder: _ctx.placeholderTimepicker,
|
|
3257
|
+
tabindex: _ctx.timeTabIndex,
|
|
3258
|
+
disabled: _ctx.isDateEmpty,
|
|
3259
|
+
readonly: _ctx.isMobileGlobal,
|
|
3260
|
+
"hide-details": "",
|
|
3261
|
+
"onUpdate:modelValue": _ctx.onSelectTime
|
|
3262
|
+
}, null, 8, ["id", "model-value", "placeholder", "tabindex", "disabled", "readonly", "onUpdate:modelValue"]))
|
|
3263
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_datepickervue_type_template_id_34ba51af_scoped_true_hoisted_1, [
|
|
3357
3264
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-edit-text']), {
|
|
3358
3265
|
modelValue: _ctx.timeString,
|
|
3359
|
-
"onUpdate:modelValue": _cache[
|
|
3266
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((_ctx.timeString) = $event)),
|
|
3360
3267
|
placeholder: _ctx.placeholderTimepicker,
|
|
3361
3268
|
"hide-details": "",
|
|
3362
3269
|
readonly: "",
|
|
3363
3270
|
disabled: ""
|
|
3364
3271
|
}, null, 8, ["modelValue", "placeholder"])),
|
|
3365
|
-
_cache[
|
|
3272
|
+
_cache[12] || (_cache[12] = (0,external_vue_.createTextVNode)()),
|
|
3366
3273
|
(0,external_vue_.createVNode)(_component_square_button, {
|
|
3367
3274
|
icon: "",
|
|
3368
3275
|
disabled: true,
|
|
@@ -3370,7 +3277,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3370
3277
|
}, {
|
|
3371
3278
|
default: (0,external_vue_.withCtx)(() => [
|
|
3372
3279
|
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
3373
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
3280
|
+
default: (0,external_vue_.withCtx)(() => _cache[11] || (_cache[11] = [
|
|
3374
3281
|
(0,external_vue_.createTextVNode)("access_time")
|
|
3375
3282
|
])),
|
|
3376
3283
|
_: 1
|
|
@@ -3386,7 +3293,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3386
3293
|
]),
|
|
3387
3294
|
_: 3
|
|
3388
3295
|
}),
|
|
3389
|
-
_cache[
|
|
3296
|
+
_cache[14] || (_cache[14] = (0,external_vue_.createTextVNode)()),
|
|
3390
3297
|
(!_ctx.hideDetails)
|
|
3391
3298
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_row, {
|
|
3392
3299
|
key: 0,
|
|
@@ -3422,7 +3329,7 @@ function ld_datepickervue_type_template_id_022851db_scoped_true_render(_ctx, _ca
|
|
|
3422
3329
|
_: 3
|
|
3423
3330
|
}))
|
|
3424
3331
|
}
|
|
3425
|
-
;// ./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=
|
|
3332
|
+
;// ./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=34ba51af&scoped=true
|
|
3426
3333
|
|
|
3427
3334
|
;// ./node_modules/imask/esm/core/utils.js
|
|
3428
3335
|
/** Checks if value is string */
|
|
@@ -7289,22 +7196,35 @@ try {
|
|
|
7289
7196
|
var calendar_js_ = __webpack_require__(8766);
|
|
7290
7197
|
var calendar_js_default = /*#__PURE__*/__webpack_require__.n(calendar_js_);
|
|
7291
7198
|
;// ./src/utils/datetime.ts
|
|
7292
|
-
function
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7199
|
+
function parseDate(value, locale = 'ru') {
|
|
7200
|
+
let parsed = null;
|
|
7201
|
+
if (locale === 'ru') {
|
|
7202
|
+
parsed = /^(\d\d?).(\d\d?).(\d\d\d?\d?)$/.exec(value);
|
|
7203
|
+
}
|
|
7204
|
+
if (locale === 'en') {
|
|
7205
|
+
parsed = /^(\d\d?)\/(\d\d?)\/(\d\d\d?\d?)$/.exec(value);
|
|
7206
|
+
}
|
|
7207
|
+
const beautify = (value) => value.length === 1 ? '0' + value : value;
|
|
7208
|
+
const result = {
|
|
7209
|
+
d: null,
|
|
7210
|
+
m: null,
|
|
7211
|
+
y: null
|
|
7212
|
+
};
|
|
7297
7213
|
if (parsed[1]) {
|
|
7298
|
-
|
|
7214
|
+
result[locale === 'ru' ? 'd' : 'm'] = beautify(parsed[1]);
|
|
7299
7215
|
}
|
|
7300
7216
|
if (parsed[2]) {
|
|
7301
|
-
|
|
7217
|
+
result[locale === 'ru' ? 'm' : 'd'] = beautify(parsed[2]);
|
|
7302
7218
|
}
|
|
7303
7219
|
if (parsed[3]) {
|
|
7304
|
-
|
|
7220
|
+
result['y'] = parsed[3];
|
|
7305
7221
|
}
|
|
7306
|
-
|
|
7307
|
-
|
|
7222
|
+
return result;
|
|
7223
|
+
}
|
|
7224
|
+
function dateLocalToISO(value, locale = 'ru') {
|
|
7225
|
+
const { d, m, y } = parseDate(value);
|
|
7226
|
+
if (d && m && y) {
|
|
7227
|
+
return `${y}-${m}-${d}`;
|
|
7308
7228
|
}
|
|
7309
7229
|
return '';
|
|
7310
7230
|
}
|
|
@@ -7363,7 +7283,8 @@ function compare(a, b) {
|
|
|
7363
7283
|
const datetime = {
|
|
7364
7284
|
dateLocalToISO,
|
|
7365
7285
|
toServerString,
|
|
7366
|
-
compare
|
|
7286
|
+
compare,
|
|
7287
|
+
parseDate
|
|
7367
7288
|
};
|
|
7368
7289
|
|
|
7369
7290
|
|
|
@@ -7395,8 +7316,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7395
7316
|
constructor() {
|
|
7396
7317
|
super(...arguments);
|
|
7397
7318
|
this.date = null;
|
|
7398
|
-
this.hours = null;
|
|
7399
|
-
this.minuts = null;
|
|
7400
7319
|
this.currentYear = new Date().getUTCFullYear();
|
|
7401
7320
|
this.currentMonth = new Date().getUTCMonth() + 1;
|
|
7402
7321
|
this.dateString = null;
|
|
@@ -7404,9 +7323,7 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7404
7323
|
this.defaultHour = '09';
|
|
7405
7324
|
this.defaultMinuts = '00';
|
|
7406
7325
|
this.dateMask = null;
|
|
7407
|
-
this.timeMask = null;
|
|
7408
7326
|
this.dateMenu = false;
|
|
7409
|
-
this.timeMenu = false;
|
|
7410
7327
|
this.event = null;
|
|
7411
7328
|
this.errorsHandler = [];
|
|
7412
7329
|
this.isHours = true;
|
|
@@ -7434,17 +7351,18 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7434
7351
|
}
|
|
7435
7352
|
else {
|
|
7436
7353
|
this.date = new Date(newVal);
|
|
7437
|
-
this.dateString = datetime.dateLocalToISO(this.date.toLocaleDateString(this.locale));
|
|
7354
|
+
this.dateString = datetime.dateLocalToISO(this.date.toLocaleDateString(this.locale), this.locale);
|
|
7438
7355
|
}
|
|
7439
7356
|
if (this.date) {
|
|
7440
7357
|
const inputEl = this.$refs.inputDate;
|
|
7441
7358
|
if (inputEl) {
|
|
7442
7359
|
inputEl.value = this.formattedDate;
|
|
7360
|
+
this.dateMask.updateValue();
|
|
7443
7361
|
}
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7362
|
+
let hours = String(this.date.getHours());
|
|
7363
|
+
let minuts = String(this.date.getMinutes());
|
|
7364
|
+
hours = ('0' + hours).slice(-2);
|
|
7365
|
+
minuts = ('0' + minuts).slice(-2);
|
|
7448
7366
|
this.timeString = `${hours}:${minuts}`;
|
|
7449
7367
|
}
|
|
7450
7368
|
else {
|
|
@@ -7453,22 +7371,8 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7453
7371
|
}
|
|
7454
7372
|
setTimeout(() => {
|
|
7455
7373
|
this.dateMask.updateValue();
|
|
7456
|
-
if (this.timeMask) {
|
|
7457
|
-
this.timeMask.updateValue();
|
|
7458
|
-
}
|
|
7459
|
-
if (!this.isMobileGlobal) {
|
|
7460
|
-
const inputTimeEl = this.$refs.inputTime;
|
|
7461
|
-
if (inputTimeEl && inputTimeEl.value !== this.timeString) {
|
|
7462
|
-
inputTimeEl.value = this.timeString;
|
|
7463
|
-
}
|
|
7464
|
-
}
|
|
7465
7374
|
}, 100);
|
|
7466
7375
|
}
|
|
7467
|
-
onDateonlyChanged() {
|
|
7468
|
-
if (!this.dateonly) {
|
|
7469
|
-
this.setTimeMask();
|
|
7470
|
-
}
|
|
7471
|
-
}
|
|
7472
7376
|
onMinDateChanged(newVal) {
|
|
7473
7377
|
if (!newVal) {
|
|
7474
7378
|
this.currentMinDate = null;
|
|
@@ -7509,12 +7413,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7509
7413
|
}
|
|
7510
7414
|
this.dateMask.updateOptions({ max: newVal });
|
|
7511
7415
|
}
|
|
7512
|
-
onTimeMenuChanged() {
|
|
7513
|
-
if (!this.timeMenu) {
|
|
7514
|
-
this.isHours = true;
|
|
7515
|
-
this.isMinutes = false;
|
|
7516
|
-
}
|
|
7517
|
-
}
|
|
7518
7416
|
created() {
|
|
7519
7417
|
this.dateMaskPromise = new Promise(resolve => {
|
|
7520
7418
|
this.dateMaskPromiseResolve = resolve;
|
|
@@ -7523,12 +7421,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7523
7421
|
this.form.register(this, null);
|
|
7524
7422
|
}
|
|
7525
7423
|
}
|
|
7526
|
-
unmounted() {
|
|
7527
|
-
window.removeEventListener('wheel', this.datepickerScrollHandler);
|
|
7528
|
-
if (this.form) {
|
|
7529
|
-
this.form.unregister(this, null);
|
|
7530
|
-
}
|
|
7531
|
-
}
|
|
7532
7424
|
mounted() {
|
|
7533
7425
|
this.datepickerScrollHandler = this.datepickerScroll.bind(this);
|
|
7534
7426
|
window.addEventListener('wheel', this.datepickerScrollHandler);
|
|
@@ -7538,10 +7430,9 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7538
7430
|
if (inputEl) {
|
|
7539
7431
|
inputEl.value = this.formattedDate;
|
|
7540
7432
|
const options = {
|
|
7433
|
+
pattern: this.localeRu ? 'd.m.Y' : 'm/d/Y',
|
|
7541
7434
|
mask: Date,
|
|
7542
7435
|
lazy: true,
|
|
7543
|
-
overwrite: true,
|
|
7544
|
-
autofix: true,
|
|
7545
7436
|
blocks: {
|
|
7546
7437
|
d: {
|
|
7547
7438
|
mask: IMask.MaskedRange,
|
|
@@ -7559,9 +7450,14 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7559
7450
|
mask: IMask.MaskedRange,
|
|
7560
7451
|
from: 1900,
|
|
7561
7452
|
to: 2999,
|
|
7562
|
-
maxLength: 4,
|
|
7563
7453
|
},
|
|
7564
7454
|
},
|
|
7455
|
+
format: date => {
|
|
7456
|
+
return this.formattedDate;
|
|
7457
|
+
},
|
|
7458
|
+
parse: str => {
|
|
7459
|
+
return this.parseDate(str);
|
|
7460
|
+
},
|
|
7565
7461
|
min: null,
|
|
7566
7462
|
max: null,
|
|
7567
7463
|
};
|
|
@@ -7576,7 +7472,7 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7576
7472
|
this.dateMask._bindEvents();
|
|
7577
7473
|
this.dateMask.on('complete', () => this.onMaskedValueChanged(this.dateMask.value));
|
|
7578
7474
|
this.dateMaskPromiseResolve();
|
|
7579
|
-
this.
|
|
7475
|
+
this.dateMask.updateValue();
|
|
7580
7476
|
}
|
|
7581
7477
|
else {
|
|
7582
7478
|
throw new Error('Не найден элемент input для ввода даты');
|
|
@@ -7587,8 +7483,11 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7587
7483
|
if (this.dateMask) {
|
|
7588
7484
|
this.dateMask.off('complete', null);
|
|
7589
7485
|
}
|
|
7590
|
-
|
|
7591
|
-
|
|
7486
|
+
}
|
|
7487
|
+
unmounted() {
|
|
7488
|
+
window.removeEventListener('wheel', this.datepickerScrollHandler);
|
|
7489
|
+
if (this.form) {
|
|
7490
|
+
this.form.unregister(this, null);
|
|
7592
7491
|
}
|
|
7593
7492
|
}
|
|
7594
7493
|
// Позволяет менять месяцы в дейтпикере скроллом
|
|
@@ -7652,19 +7551,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7652
7551
|
}
|
|
7653
7552
|
}
|
|
7654
7553
|
}
|
|
7655
|
-
/**
|
|
7656
|
-
* обработчик события blur на input для ввода времени
|
|
7657
|
-
* @param e объект события
|
|
7658
|
-
*/
|
|
7659
|
-
onTimeMaskChange(e) {
|
|
7660
|
-
// проверим валидность ввода времени
|
|
7661
|
-
const value = e.target.value;
|
|
7662
|
-
const time = this.parseTime(value);
|
|
7663
|
-
if (time !== value) {
|
|
7664
|
-
this.timeString = time;
|
|
7665
|
-
e.target.value = time;
|
|
7666
|
-
}
|
|
7667
|
-
}
|
|
7668
7554
|
onMaskedValueChanged(value) {
|
|
7669
7555
|
if (!value) {
|
|
7670
7556
|
return;
|
|
@@ -7682,17 +7568,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7682
7568
|
this.dateMenu = false;
|
|
7683
7569
|
}, 100);
|
|
7684
7570
|
}
|
|
7685
|
-
onTimeMaskedValueChanged(value) {
|
|
7686
|
-
if (!this.dateString) {
|
|
7687
|
-
return;
|
|
7688
|
-
}
|
|
7689
|
-
const [hours = this.defaultHour, minutes = this.defaultMinuts] = value ? value.split(':') : [];
|
|
7690
|
-
const dt = new Date(this.dateString);
|
|
7691
|
-
dt.setHours(Number(hours));
|
|
7692
|
-
dt.setMinutes(Number(minutes));
|
|
7693
|
-
this.emitInput(dt);
|
|
7694
|
-
this.$nextTick(() => this.validate());
|
|
7695
|
-
}
|
|
7696
7571
|
onInputDateFocus(e) {
|
|
7697
7572
|
this.event = e;
|
|
7698
7573
|
}
|
|
@@ -7703,7 +7578,7 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7703
7578
|
if (this.timeString) {
|
|
7704
7579
|
d = this.addTimeToDate(d);
|
|
7705
7580
|
}
|
|
7706
|
-
const dt = datetime.dateLocalToISO(d.toLocaleDateString(this.locale));
|
|
7581
|
+
const dt = datetime.dateLocalToISO(d.toLocaleDateString(this.locale), this.locale);
|
|
7707
7582
|
this.onSelectDate(dt);
|
|
7708
7583
|
}
|
|
7709
7584
|
}
|
|
@@ -7717,53 +7592,29 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7717
7592
|
return;
|
|
7718
7593
|
}
|
|
7719
7594
|
this.dateMask.el.value = new Date(date).toLocaleDateString(this.locale);
|
|
7720
|
-
const d = this.minDate;
|
|
7721
|
-
// 1 Хак для https://github.com/uNmAnNeR/imaskjs/issues/100
|
|
7722
|
-
d?.setDate(d.getDate() - 1);
|
|
7723
|
-
// после этого вызова сработает onMaskedValueChanged
|
|
7724
7595
|
this.dateMenu = false;
|
|
7725
7596
|
this.onDateMaskChange(this.event);
|
|
7726
7597
|
this.event = null;
|
|
7727
|
-
// 2 Хак для https://github.com/uNmAnNeR/imaskjs/issues/100
|
|
7728
|
-
d?.setDate(d.getDate() + 1);
|
|
7729
7598
|
}
|
|
7730
|
-
|
|
7731
|
-
const h = ('0' + value).slice(-2);
|
|
7732
|
-
this.isHours = false;
|
|
7733
|
-
this.isMinutes = true;
|
|
7599
|
+
onSelectTime(value) {
|
|
7734
7600
|
if (!this.date) {
|
|
7735
7601
|
this.date = new Date();
|
|
7736
7602
|
}
|
|
7737
7603
|
const dt = new Date(this.date);
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
changeMinutes(value) {
|
|
7745
|
-
const m = ('0' + 5 * value).slice(-2);
|
|
7746
|
-
this.timeMenu = false;
|
|
7747
|
-
this.isHours = true;
|
|
7748
|
-
this.isMinutes = false;
|
|
7749
|
-
if (!this.date) {
|
|
7750
|
-
this.date = new Date();
|
|
7604
|
+
if (!value) {
|
|
7605
|
+
dt.setHours(0);
|
|
7606
|
+
dt.setMinutes(0);
|
|
7607
|
+
dt.setSeconds(0);
|
|
7608
|
+
this.emitInput(dt);
|
|
7609
|
+
return;
|
|
7751
7610
|
}
|
|
7752
|
-
const
|
|
7753
|
-
const
|
|
7754
|
-
dt.setHours(Number(
|
|
7611
|
+
const h = value ? value.split(':')[0] : this.defaultHour;
|
|
7612
|
+
const m = value ? value.split(':')[1] : this.defaultMinuts;
|
|
7613
|
+
dt.setHours(Number(h));
|
|
7755
7614
|
dt.setMinutes(Number(m));
|
|
7756
7615
|
dt.setSeconds(0);
|
|
7757
7616
|
this.emitInput(dt);
|
|
7758
7617
|
}
|
|
7759
|
-
onInputTimeFocus() {
|
|
7760
|
-
if (this.isMobileGlobal) {
|
|
7761
|
-
return;
|
|
7762
|
-
}
|
|
7763
|
-
if (!this.$refs.timeInput) {
|
|
7764
|
-
return;
|
|
7765
|
-
}
|
|
7766
|
-
}
|
|
7767
7618
|
onPickerClick(cb) {
|
|
7768
7619
|
if ((!this.disabled && !this.readonly) || !this.canClear) {
|
|
7769
7620
|
cb();
|
|
@@ -7773,31 +7624,15 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7773
7624
|
if (this.dateMask) {
|
|
7774
7625
|
this.dateMask.el.value = '';
|
|
7775
7626
|
}
|
|
7776
|
-
if (this.timeMask) {
|
|
7777
|
-
this.clearTimeValue();
|
|
7778
|
-
}
|
|
7779
7627
|
/**
|
|
7780
7628
|
* dateString сбросим к текущей дате, чтобы календарь переключился на нее
|
|
7781
7629
|
* date ставим null, чтобы обнулить модель
|
|
7782
7630
|
*/
|
|
7783
|
-
this.dateString = datetime.dateLocalToISO(new Date().toLocaleDateString(this.locale));
|
|
7631
|
+
this.dateString = datetime.dateLocalToISO(new Date().toLocaleDateString(this.locale), this.locale);
|
|
7784
7632
|
this.date = null;
|
|
7785
7633
|
this.emitUpdateModelValue(null);
|
|
7786
7634
|
this.validate();
|
|
7787
7635
|
}
|
|
7788
|
-
clearTimeValue() {
|
|
7789
|
-
if (this.isMobileGlobal) {
|
|
7790
|
-
this.timeMask.el.value = '';
|
|
7791
|
-
}
|
|
7792
|
-
if (!this.date) {
|
|
7793
|
-
this.date = new Date();
|
|
7794
|
-
}
|
|
7795
|
-
const dt = new Date(this.date);
|
|
7796
|
-
dt.setHours(0);
|
|
7797
|
-
dt.setMinutes(0);
|
|
7798
|
-
dt.setSeconds(0);
|
|
7799
|
-
this.emitInput(dt);
|
|
7800
|
-
}
|
|
7801
7636
|
validate() {
|
|
7802
7637
|
let funcResult = null;
|
|
7803
7638
|
this.validationMessage = '';
|
|
@@ -7809,44 +7644,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7809
7644
|
});
|
|
7810
7645
|
return !this.validationMessage;
|
|
7811
7646
|
}
|
|
7812
|
-
async setTimeMask() {
|
|
7813
|
-
if (this.isMobileGlobal) {
|
|
7814
|
-
return;
|
|
7815
|
-
}
|
|
7816
|
-
await this.$nextTick();
|
|
7817
|
-
const input = this.$refs.inputTime;
|
|
7818
|
-
if (input) {
|
|
7819
|
-
const inputEl = input.$el.querySelector('input');
|
|
7820
|
-
if (inputEl) {
|
|
7821
|
-
// const timeOptions: IOptions = {
|
|
7822
|
-
// mask: 'HH:mm',
|
|
7823
|
-
// lazy: false,
|
|
7824
|
-
// overwrite: true,
|
|
7825
|
-
// autofix: true,
|
|
7826
|
-
// blocks: {
|
|
7827
|
-
// HH: {
|
|
7828
|
-
// mask: IMask.MaskedRange,
|
|
7829
|
-
// from: 0,
|
|
7830
|
-
// to: 23,
|
|
7831
|
-
// maxLength: 2
|
|
7832
|
-
// },
|
|
7833
|
-
// mm: {
|
|
7834
|
-
// mask: IMask.MaskedRange,
|
|
7835
|
-
// from: 0,
|
|
7836
|
-
// to: 59,
|
|
7837
|
-
// maxLength: 2,
|
|
7838
|
-
// },
|
|
7839
|
-
// },
|
|
7840
|
-
// };
|
|
7841
|
-
// this.timeMask = IMask(inputEl as HTMLElement, {
|
|
7842
|
-
// mask: 'HH:mm',
|
|
7843
|
-
// });
|
|
7844
|
-
// this.timeMask._unbindEvents();
|
|
7845
|
-
// this.timeMask._bindEvents();
|
|
7846
|
-
// this.timeMask.on('complete', () => this.onTimeMaskedValueChanged(this.timeMask.value));
|
|
7847
|
-
}
|
|
7848
|
-
}
|
|
7849
|
-
}
|
|
7850
7647
|
parseDate(value) {
|
|
7851
7648
|
if (!value) {
|
|
7852
7649
|
return null;
|
|
@@ -7888,16 +7685,16 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7888
7685
|
}
|
|
7889
7686
|
}
|
|
7890
7687
|
}
|
|
7891
|
-
parseTime(value) {
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
}
|
|
7688
|
+
// private parseTime(value: string): string {
|
|
7689
|
+
// let [hours = this.defaultHour, minuts = this.defaultMinuts] = value ? value.split(':') : [];
|
|
7690
|
+
// if (!/^\d+$/.test(hours) || Number(hours) < 0 || Number(hours) > 23) {
|
|
7691
|
+
// hours = this.defaultHour;
|
|
7692
|
+
// }
|
|
7693
|
+
// if (!/^\d+$/.test(minuts) || Number(minuts) < 0 || Number(minuts) > 59) {
|
|
7694
|
+
// minuts = this.defaultMinuts;
|
|
7695
|
+
// }
|
|
7696
|
+
// return `${hours}:${minuts}`;
|
|
7697
|
+
// }
|
|
7901
7698
|
/**
|
|
7902
7699
|
* Добавляет к текущей дате время (часы, минуты)
|
|
7903
7700
|
* @param date текущая дата
|
|
@@ -7907,9 +7704,9 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7907
7704
|
return;
|
|
7908
7705
|
}
|
|
7909
7706
|
const [hours = this.defaultHour, minutes = this.defaultMinuts] = this.timeString ? this.timeString.split(':') : [];
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
date = new Date(date.getFullYear(), date.getMonth(), date.getDate(),
|
|
7707
|
+
const h = Number(hours);
|
|
7708
|
+
const m = Number(minutes);
|
|
7709
|
+
date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, 0, 0);
|
|
7913
7710
|
return date;
|
|
7914
7711
|
}
|
|
7915
7712
|
get isDateEmpty() {
|
|
@@ -7919,7 +7716,13 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7919
7716
|
if (!this.date) {
|
|
7920
7717
|
return '';
|
|
7921
7718
|
}
|
|
7922
|
-
|
|
7719
|
+
if (this.localeRu) {
|
|
7720
|
+
return this.date.toLocaleDateString(this.locale);
|
|
7721
|
+
}
|
|
7722
|
+
if (this.localeEn) {
|
|
7723
|
+
const { d, m, y } = datetime.parseDate(this.date.toLocaleDateString(this.locale));
|
|
7724
|
+
return `${d}/${m}/${y}`;
|
|
7725
|
+
}
|
|
7923
7726
|
}
|
|
7924
7727
|
get minDateString() {
|
|
7925
7728
|
if (!this.currentMinDate) {
|
|
@@ -7938,8 +7741,14 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7938
7741
|
get locale() {
|
|
7939
7742
|
return this.$ldmui.options.language;
|
|
7940
7743
|
}
|
|
7744
|
+
get localeRu() {
|
|
7745
|
+
return this.locale.includes('ru');
|
|
7746
|
+
}
|
|
7747
|
+
get localeEn() {
|
|
7748
|
+
return this.locale.includes('en');
|
|
7749
|
+
}
|
|
7941
7750
|
get firstDayOfWeek() {
|
|
7942
|
-
if (this.
|
|
7751
|
+
if (this.localeEn) {
|
|
7943
7752
|
return 1;
|
|
7944
7753
|
}
|
|
7945
7754
|
return 2;
|
|
@@ -8027,12 +7836,6 @@ ld_datepickervue_type_script_lang_js_external_decorate([
|
|
|
8027
7836
|
ld_datepickervue_type_script_lang_js_external_metadata("design:paramtypes", [Object, Object]),
|
|
8028
7837
|
ld_datepickervue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
8029
7838
|
], DatepickerComponent.prototype, "onValueChanged", null);
|
|
8030
|
-
ld_datepickervue_type_script_lang_js_external_decorate([
|
|
8031
|
-
(0,external_vue_property_decorator_.Watch)('dateonly'),
|
|
8032
|
-
ld_datepickervue_type_script_lang_js_external_metadata("design:type", Function),
|
|
8033
|
-
ld_datepickervue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
8034
|
-
ld_datepickervue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
8035
|
-
], DatepickerComponent.prototype, "onDateonlyChanged", null);
|
|
8036
7839
|
ld_datepickervue_type_script_lang_js_external_decorate([
|
|
8037
7840
|
(0,external_vue_property_decorator_.Watch)('minDate', { immediate: true }),
|
|
8038
7841
|
ld_datepickervue_type_script_lang_js_external_metadata("design:type", Function),
|
|
@@ -8057,12 +7860,6 @@ ld_datepickervue_type_script_lang_js_external_decorate([
|
|
|
8057
7860
|
ld_datepickervue_type_script_lang_js_external_metadata("design:paramtypes", [typeof (_l = typeof Date !== "undefined" && Date) === "function" ? _l : Object]),
|
|
8058
7861
|
ld_datepickervue_type_script_lang_js_external_metadata("design:returntype", Promise)
|
|
8059
7862
|
], DatepickerComponent.prototype, "onCurrentMaxDateChanged", null);
|
|
8060
|
-
ld_datepickervue_type_script_lang_js_external_decorate([
|
|
8061
|
-
(0,external_vue_property_decorator_.Watch)('timeMenu'),
|
|
8062
|
-
ld_datepickervue_type_script_lang_js_external_metadata("design:type", Function),
|
|
8063
|
-
ld_datepickervue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
8064
|
-
ld_datepickervue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
8065
|
-
], DatepickerComponent.prototype, "onTimeMenuChanged", null);
|
|
8066
7863
|
DatepickerComponent = ld_datepickervue_type_script_lang_js_external_decorate([
|
|
8067
7864
|
(0,external_vue_class_component_.Options)({
|
|
8068
7865
|
components: {
|
|
@@ -8083,7 +7880,7 @@ DatepickerComponent = ld_datepickervue_type_script_lang_js_external_decorate([
|
|
|
8083
7880
|
;
|
|
8084
7881
|
|
|
8085
7882
|
|
|
8086
|
-
const ld_datepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_datepickervue_type_script_lang_js_external, [['render',
|
|
7883
|
+
const ld_datepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_datepickervue_type_script_lang_js_external, [['render',ld_datepickervue_type_template_id_34ba51af_scoped_true_render],['__scopeId',"data-v-34ba51af"]])
|
|
8087
7884
|
|
|
8088
7885
|
/* harmony default export */ const ld_datepicker = (ld_datepicker_exports_);
|
|
8089
7886
|
;// ./src/ld-datepicker/index.ts
|
|
@@ -8399,27 +8196,27 @@ function ld_tab_reg(vue, options) {
|
|
|
8399
8196
|
}
|
|
8400
8197
|
/* harmony default export */ const src_ld_tab = (ld_tab_reg);
|
|
8401
8198
|
|
|
8402
|
-
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-tabs/ld-tabs.vue?vue&type=template&id=
|
|
8199
|
+
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-tabs/ld-tabs.vue?vue&type=template&id=7096ec80&scoped=true
|
|
8403
8200
|
|
|
8404
8201
|
|
|
8405
|
-
const
|
|
8406
|
-
const
|
|
8202
|
+
const ld_tabsvue_type_template_id_7096ec80_scoped_true_hoisted_1 = { class: "d-flex flex-column h-100" }
|
|
8203
|
+
const ld_tabsvue_type_template_id_7096ec80_scoped_true_hoisted_2 = {
|
|
8407
8204
|
class: "d-flex align-center justify-end",
|
|
8408
8205
|
style: {"height":"var(--ld-tab-height)"}
|
|
8409
8206
|
}
|
|
8410
|
-
const
|
|
8207
|
+
const ld_tabsvue_type_template_id_7096ec80_scoped_true_hoisted_3 = {
|
|
8411
8208
|
key: 0,
|
|
8412
8209
|
class: "header-text flex-1-1 px-4 font-weight-bold"
|
|
8413
8210
|
}
|
|
8414
8211
|
|
|
8415
|
-
function
|
|
8212
|
+
function ld_tabsvue_type_template_id_7096ec80_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8416
8213
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button")
|
|
8417
8214
|
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip")
|
|
8418
8215
|
const _component_v_tabs = (0,external_vue_.resolveComponent)("v-tabs")
|
|
8419
8216
|
const _component_v_window = (0,external_vue_.resolveComponent)("v-window")
|
|
8420
8217
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row")
|
|
8421
8218
|
|
|
8422
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
8219
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_tabsvue_type_template_id_7096ec80_scoped_true_hoisted_1, [
|
|
8423
8220
|
(0,external_vue_.createVNode)(_component_v_row, {
|
|
8424
8221
|
"no-gutters": "",
|
|
8425
8222
|
class: (0,external_vue_.normalizeClass)([{ 'ld-tabs-mobile': _ctx.isMobileGlobal && _ctx.vertical, 'hide-tabs': !_ctx.isTabsVisibled, 'hide-body': _ctx.isTabsVisibled }, "ld-tabs"])
|
|
@@ -8445,9 +8242,9 @@ function ld_tabsvue_type_template_id_bd490ea2_scoped_true_render(_ctx, _cache, $
|
|
|
8445
8242
|
key: 0,
|
|
8446
8243
|
class: (0,external_vue_.normalizeClass)({ 'w-100': !_ctx.isMobileGlobal, 'tab-mobile': _ctx.isMobileGlobal })
|
|
8447
8244
|
}, [
|
|
8448
|
-
(0,external_vue_.createElementVNode)("div",
|
|
8245
|
+
(0,external_vue_.createElementVNode)("div", ld_tabsvue_type_template_id_7096ec80_scoped_true_hoisted_2, [
|
|
8449
8246
|
(_ctx.isTabsVisibled)
|
|
8450
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("p",
|
|
8247
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("p", ld_tabsvue_type_template_id_7096ec80_scoped_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.header), 1))
|
|
8451
8248
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
8452
8249
|
_cache[3] || (_cache[3] = (0,external_vue_.createTextVNode)()),
|
|
8453
8250
|
(0,external_vue_.createVNode)(_component_v_tooltip, {
|
|
@@ -8479,7 +8276,7 @@ function ld_tabsvue_type_template_id_bd490ea2_scoped_true_render(_ctx, _cache, $
|
|
|
8479
8276
|
]),
|
|
8480
8277
|
default: (0,external_vue_.withCtx)(() => [
|
|
8481
8278
|
_cache[2] || (_cache[2] = (0,external_vue_.createTextVNode)()),
|
|
8482
|
-
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.isTabsVisibled ? '
|
|
8279
|
+
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.isTabsVisibled ? _ctx.$ldmuii18n.gettext('Hide tabs') : _ctx.$ldmuii18n.gettext('Show tabs')), 1)
|
|
8483
8280
|
]),
|
|
8484
8281
|
_: 1
|
|
8485
8282
|
}, 8, ["modelValue"])
|
|
@@ -8517,7 +8314,7 @@ function ld_tabsvue_type_template_id_bd490ea2_scoped_true_render(_ctx, _cache, $
|
|
|
8517
8314
|
(0,external_vue_.renderSlot)(_ctx.$slots, "footer", {}, undefined, true)
|
|
8518
8315
|
]))
|
|
8519
8316
|
}
|
|
8520
|
-
;// ./src/ld-tabs/ld-tabs.vue?vue&type=template&id=
|
|
8317
|
+
;// ./src/ld-tabs/ld-tabs.vue?vue&type=template&id=7096ec80&scoped=true
|
|
8521
8318
|
|
|
8522
8319
|
;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-tabs/ld-tabs.ts?vue&type=script&lang=js&external
|
|
8523
8320
|
var ld_tabsvue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -8691,7 +8488,7 @@ LdTabsComponent = ld_tabsvue_type_script_lang_js_external_decorate([
|
|
|
8691
8488
|
;
|
|
8692
8489
|
|
|
8693
8490
|
|
|
8694
|
-
const ld_tabs_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_tabsvue_type_script_lang_js_external, [['render',
|
|
8491
|
+
const ld_tabs_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_tabsvue_type_script_lang_js_external, [['render',ld_tabsvue_type_template_id_7096ec80_scoped_true_render],['__scopeId',"data-v-7096ec80"]])
|
|
8695
8492
|
|
|
8696
8493
|
/* harmony default export */ const ld_tabs = (ld_tabs_exports_);
|
|
8697
8494
|
;// ./src/ld-tabs/index.ts
|
|
@@ -13990,17 +13787,18 @@ function ld_combobox_reg(vue, options) {
|
|
|
13990
13787
|
}
|
|
13991
13788
|
/* harmony default export */ const src_ld_combobox = (ld_combobox_reg);
|
|
13992
13789
|
|
|
13993
|
-
;// ./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!./src/ld-timepicker/ld-timepicker.vue?vue&type=template&id=
|
|
13790
|
+
;// ./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!./src/ld-timepicker/ld-timepicker.vue?vue&type=template&id=15511ea0&scoped=true&ts=true
|
|
13994
13791
|
|
|
13995
|
-
const
|
|
13996
|
-
const
|
|
13997
|
-
const
|
|
13998
|
-
const
|
|
13999
|
-
const
|
|
13792
|
+
const ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_1 = { class: "ld-timepicker" };
|
|
13793
|
+
const ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_2 = { class: "time-selector" };
|
|
13794
|
+
const ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_3 = { key: 0 };
|
|
13795
|
+
const ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_4 = { key: 1 };
|
|
13796
|
+
const ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_5 = { class: "d-flex flex-wrap" };
|
|
13797
|
+
const ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_6 = {
|
|
14000
13798
|
key: 0,
|
|
14001
13799
|
class: "ld-timepicker-validate"
|
|
14002
13800
|
};
|
|
14003
|
-
function
|
|
13801
|
+
function ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14004
13802
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
14005
13803
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
14006
13804
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
@@ -14008,7 +13806,7 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14008
13806
|
const _component_v_menu = (0,external_vue_.resolveComponent)("v-menu");
|
|
14009
13807
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
14010
13808
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
14011
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
13809
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_1, [
|
|
14012
13810
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
14013
13811
|
default: (0,external_vue_.withCtx)(() => [
|
|
14014
13812
|
(_ctx.label)
|
|
@@ -14020,14 +13818,14 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14020
13818
|
"align-label-to-right": _ctx.alignLabelToRight
|
|
14021
13819
|
}, null, 8, ["class", "label", "required", "align-label-to-right"]))
|
|
14022
13820
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
14023
|
-
_cache[
|
|
13821
|
+
_cache[15] || (_cache[15] = (0,external_vue_.createTextVNode)()),
|
|
14024
13822
|
(0,external_vue_.createVNode)(_component_v_col, {
|
|
14025
13823
|
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
14026
13824
|
}, {
|
|
14027
13825
|
default: (0,external_vue_.withCtx)(() => [
|
|
14028
13826
|
(0,external_vue_.createVNode)(_component_v_menu, {
|
|
14029
13827
|
modelValue: _ctx.timeMenu,
|
|
14030
|
-
"onUpdate:modelValue": _cache[
|
|
13828
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => ((_ctx.timeMenu) = $event)),
|
|
14031
13829
|
"close-on-content-click": false,
|
|
14032
13830
|
transition: "toggle-slide-y-transition",
|
|
14033
13831
|
location: "bottom",
|
|
@@ -14038,7 +13836,7 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14038
13836
|
(0,external_vue_.createElementVNode)("div", (0,external_vue_.mergeProps)({ class: "d-flex align-center w-100" }, props, { style: { "position": "relative" } }), [
|
|
14039
13837
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-edit-text']), {
|
|
14040
13838
|
ref: "inputTime",
|
|
14041
|
-
"model-value": _ctx.
|
|
13839
|
+
"model-value": _ctx._time,
|
|
14042
13840
|
class: "w-100",
|
|
14043
13841
|
tabindex: _ctx.tabIndex,
|
|
14044
13842
|
disabled: _ctx.readonly || _ctx.disabled,
|
|
@@ -14046,7 +13844,7 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14046
13844
|
"hide-details": "",
|
|
14047
13845
|
readonly: true
|
|
14048
13846
|
}, null, 8, ["model-value", "tabindex", "disabled", "placeholder"])),
|
|
14049
|
-
_cache[
|
|
13847
|
+
_cache[6] || (_cache[6] = (0,external_vue_.createTextVNode)()),
|
|
14050
13848
|
(!_ctx.disabled && !_ctx.readonly)
|
|
14051
13849
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
14052
13850
|
key: 0,
|
|
@@ -14056,7 +13854,7 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14056
13854
|
}, {
|
|
14057
13855
|
default: (0,external_vue_.withCtx)(() => [
|
|
14058
13856
|
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
14059
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
13857
|
+
default: (0,external_vue_.withCtx)(() => _cache[4] || (_cache[4] = [
|
|
14060
13858
|
(0,external_vue_.createTextVNode)("close")
|
|
14061
13859
|
])),
|
|
14062
13860
|
_: 1
|
|
@@ -14065,7 +13863,7 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14065
13863
|
_: 1
|
|
14066
13864
|
}, 8, ["onClick"]))
|
|
14067
13865
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
14068
|
-
_cache[
|
|
13866
|
+
_cache[7] || (_cache[7] = (0,external_vue_.createTextVNode)()),
|
|
14069
13867
|
(0,external_vue_.createVNode)(_component_square_button, {
|
|
14070
13868
|
icon: "",
|
|
14071
13869
|
style: { "position": "absolute", "top": "0", "right": "0" },
|
|
@@ -14076,7 +13874,7 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14076
13874
|
(0,external_vue_.createVNode)(_component_ld_icon, {
|
|
14077
13875
|
color: _ctx.timeMenu ? 'primary' : undefined
|
|
14078
13876
|
}, {
|
|
14079
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
13877
|
+
default: (0,external_vue_.withCtx)(() => _cache[5] || (_cache[5] = [
|
|
14080
13878
|
(0,external_vue_.createTextVNode)("access_time")
|
|
14081
13879
|
])),
|
|
14082
13880
|
_: 1
|
|
@@ -14087,41 +13885,76 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14087
13885
|
], 16)
|
|
14088
13886
|
]),
|
|
14089
13887
|
default: (0,external_vue_.withCtx)(() => [
|
|
14090
|
-
_cache[
|
|
13888
|
+
_cache[13] || (_cache[13] = (0,external_vue_.createTextVNode)()),
|
|
14091
13889
|
(0,external_vue_.createVNode)(_component_v_card, {
|
|
14092
13890
|
elevation: "0",
|
|
14093
13891
|
style: { "border": "1px solid var(--grey-l-5)" },
|
|
14094
13892
|
width: "190px"
|
|
14095
13893
|
}, {
|
|
14096
13894
|
default: (0,external_vue_.withCtx)(() => [
|
|
14097
|
-
(0,external_vue_.createElementVNode)("div",
|
|
13895
|
+
(0,external_vue_.createElementVNode)("div", ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_2, [
|
|
14098
13896
|
(_ctx.isHours)
|
|
14099
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
13897
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Hours')), 1))
|
|
14100
13898
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
14101
|
-
_cache[
|
|
13899
|
+
_cache[11] || (_cache[11] = (0,external_vue_.createTextVNode)()),
|
|
14102
13900
|
(_ctx.isMinutes)
|
|
14103
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
13901
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_4, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Minutes')), 1))
|
|
14104
13902
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
14105
|
-
_cache[
|
|
14106
|
-
(0,external_vue_.createElementVNode)("div",
|
|
13903
|
+
_cache[12] || (_cache[12] = (0,external_vue_.createTextVNode)()),
|
|
13904
|
+
(0,external_vue_.createElementVNode)("div", ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_5, [
|
|
14107
13905
|
(_ctx.isHours)
|
|
14108
|
-
? ((0,external_vue_.openBlock)(
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
(0,external_vue_.
|
|
14117
|
-
|
|
14118
|
-
|
|
14119
|
-
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
|
|
13906
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 0 }, [
|
|
13907
|
+
((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, null, (0,external_vue_.renderList)(Array.apply(null, { length: _ctx._format }), (_, i) => {
|
|
13908
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
13909
|
+
key: i,
|
|
13910
|
+
variant: i === (_ctx.is12 ? _ctx.hours - 1 : _ctx.hours) ? 'flat' : 'outlined',
|
|
13911
|
+
color: i === (_ctx.is12 ? _ctx.hours - 1 : _ctx.hours) ? 'primary' : 'grey',
|
|
13912
|
+
onClick: ($event) => (_ctx.setHours(i))
|
|
13913
|
+
}, {
|
|
13914
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
13915
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
13916
|
+
class: (0,external_vue_.normalizeClass)({ 'text-color': i !== (_ctx.is12 ? _ctx.hours - 1 : _ctx.hours) })
|
|
13917
|
+
}, (0,external_vue_.toDisplayString)(('0' + (_ctx.is12 ? (i + 1) : i)).slice(-2)), 3)
|
|
13918
|
+
]),
|
|
13919
|
+
_: 2
|
|
13920
|
+
}, 1032, ["variant", "color", "onClick"]));
|
|
13921
|
+
}), 128)),
|
|
13922
|
+
_cache[8] || (_cache[8] = (0,external_vue_.createTextVNode)()),
|
|
13923
|
+
(_ctx.is12)
|
|
13924
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
13925
|
+
key: 0,
|
|
13926
|
+
variant: _ctx.isAM ? 'flat' : 'outlined',
|
|
13927
|
+
color: _ctx.isAM ? 'primary' : 'grey',
|
|
13928
|
+
style: { "margin-left": "39px" },
|
|
13929
|
+
onClick: _cache[1] || (_cache[1] = ($event) => (_ctx.setA('am')))
|
|
13930
|
+
}, {
|
|
13931
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
13932
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
13933
|
+
class: (0,external_vue_.normalizeClass)({ 'text-color': _ctx.isPM })
|
|
13934
|
+
}, "am", 2)
|
|
13935
|
+
]),
|
|
13936
|
+
_: 1
|
|
13937
|
+
}, 8, ["variant", "color"]))
|
|
13938
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
13939
|
+
_cache[9] || (_cache[9] = (0,external_vue_.createTextVNode)()),
|
|
13940
|
+
(_ctx.is12)
|
|
13941
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
13942
|
+
key: 1,
|
|
13943
|
+
variant: _ctx.isPM ? 'flat' : 'outlined',
|
|
13944
|
+
color: _ctx.isPM ? 'primary' : 'grey',
|
|
13945
|
+
onClick: _cache[2] || (_cache[2] = ($event) => (_ctx.setA('pm')))
|
|
13946
|
+
}, {
|
|
13947
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
13948
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
13949
|
+
class: (0,external_vue_.normalizeClass)({ 'text-color': _ctx.isAM })
|
|
13950
|
+
}, "pm", 2)
|
|
13951
|
+
]),
|
|
13952
|
+
_: 1
|
|
13953
|
+
}, 8, ["variant", "color"]))
|
|
13954
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
13955
|
+
], 64))
|
|
14123
13956
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
14124
|
-
_cache[
|
|
13957
|
+
_cache[10] || (_cache[10] = (0,external_vue_.createTextVNode)()),
|
|
14125
13958
|
(_ctx.isMinutes)
|
|
14126
13959
|
? ((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 1 }, (0,external_vue_.renderList)(Array.apply(null, { length: 12 }), (_, i) => {
|
|
14127
13960
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
@@ -14147,9 +13980,9 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14147
13980
|
]),
|
|
14148
13981
|
_: 1
|
|
14149
13982
|
}, 8, ["modelValue", "disabled"]),
|
|
14150
|
-
_cache[
|
|
13983
|
+
_cache[14] || (_cache[14] = (0,external_vue_.createTextVNode)()),
|
|
14151
13984
|
(!_ctx.hideDetails)
|
|
14152
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
13985
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_hoisted_6, [
|
|
14153
13986
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
14154
13987
|
default: (0,external_vue_.withCtx)(() => [
|
|
14155
13988
|
(0,external_vue_.createElementVNode)("span", {
|
|
@@ -14170,7 +14003,7 @@ function ld_timepickervue_type_template_id_64220520_scoped_true_ts_true_render(_
|
|
|
14170
14003
|
]));
|
|
14171
14004
|
}
|
|
14172
14005
|
|
|
14173
|
-
;// ./src/ld-timepicker/ld-timepicker.vue?vue&type=template&id=
|
|
14006
|
+
;// ./src/ld-timepicker/ld-timepicker.vue?vue&type=template&id=15511ea0&scoped=true&ts=true
|
|
14174
14007
|
|
|
14175
14008
|
;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-timepicker/ld-timepicker.ts?vue&type=script&lang=ts&external
|
|
14176
14009
|
var ld_timepickervue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -14200,18 +14033,20 @@ let TimepickerComponent = class TimepickerComponent extends (0,external_vue_clas
|
|
|
14200
14033
|
this.isMinutes = false;
|
|
14201
14034
|
this.hours = null;
|
|
14202
14035
|
this.minutes = null;
|
|
14036
|
+
this.a = 'am';
|
|
14203
14037
|
}
|
|
14204
14038
|
emitInput(value) {
|
|
14205
|
-
return value;
|
|
14039
|
+
return value ? this.emitedValue(value) : null;
|
|
14206
14040
|
}
|
|
14207
14041
|
emitBlur(value) {
|
|
14208
14042
|
return value;
|
|
14209
14043
|
}
|
|
14210
14044
|
onModelValueChanged(value) {
|
|
14211
|
-
|
|
14045
|
+
let v = this.toISO(value);
|
|
14046
|
+
if (!this.checkValue(v)) {
|
|
14212
14047
|
return;
|
|
14213
14048
|
}
|
|
14214
|
-
this.setTime(
|
|
14049
|
+
this.setTime(v);
|
|
14215
14050
|
}
|
|
14216
14051
|
onTimeMenuChanged() {
|
|
14217
14052
|
if (!this.timeMenu) {
|
|
@@ -14220,9 +14055,17 @@ let TimepickerComponent = class TimepickerComponent extends (0,external_vue_clas
|
|
|
14220
14055
|
}
|
|
14221
14056
|
}
|
|
14222
14057
|
onTimeChanged() {
|
|
14223
|
-
this.emitInput(this.
|
|
14058
|
+
this.emitInput(this._time);
|
|
14224
14059
|
this.validate();
|
|
14225
14060
|
}
|
|
14061
|
+
onFormatChanged() {
|
|
14062
|
+
this.setTime();
|
|
14063
|
+
this.emitInput(this._time);
|
|
14064
|
+
}
|
|
14065
|
+
onReturnFormatChanged() {
|
|
14066
|
+
this.setTime();
|
|
14067
|
+
this.emitInput(this._time);
|
|
14068
|
+
}
|
|
14226
14069
|
created() {
|
|
14227
14070
|
if (this.form) {
|
|
14228
14071
|
this.form.register(this, null);
|
|
@@ -14233,8 +14076,26 @@ let TimepickerComponent = class TimepickerComponent extends (0,external_vue_clas
|
|
|
14233
14076
|
this.form.unregister(this, null);
|
|
14234
14077
|
}
|
|
14235
14078
|
}
|
|
14079
|
+
checkValue(value) {
|
|
14080
|
+
if (!(/\d\d\:\d\d/.test(value))) {
|
|
14081
|
+
return false;
|
|
14082
|
+
}
|
|
14083
|
+
const [h, m] = this.toSplitted(value);
|
|
14084
|
+
if (isNaN(h) || h < 0 || h > 23) {
|
|
14085
|
+
return false;
|
|
14086
|
+
}
|
|
14087
|
+
const mm = Number(m);
|
|
14088
|
+
if (isNaN(mm) || mm < 0 || mm > 59) {
|
|
14089
|
+
return false;
|
|
14090
|
+
}
|
|
14091
|
+
return true;
|
|
14092
|
+
}
|
|
14236
14093
|
setHours(i) {
|
|
14094
|
+
if (this.is12) {
|
|
14095
|
+
i = i + 1;
|
|
14096
|
+
}
|
|
14237
14097
|
this.hours = i;
|
|
14098
|
+
this.minutes = this.minutes ? this.minutes : 0;
|
|
14238
14099
|
this.isHours = false;
|
|
14239
14100
|
this.isMinutes = true;
|
|
14240
14101
|
}
|
|
@@ -14243,24 +14104,28 @@ let TimepickerComponent = class TimepickerComponent extends (0,external_vue_clas
|
|
|
14243
14104
|
this.timeMenu = false;
|
|
14244
14105
|
}
|
|
14245
14106
|
setTime(value) {
|
|
14246
|
-
const
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
}
|
|
14250
|
-
checkValue(value) {
|
|
14251
|
-
if (!(/\d\d\:\d\d/.test(value))) {
|
|
14252
|
-
return false;
|
|
14107
|
+
const v = value || this.modelValue;
|
|
14108
|
+
if (!v) {
|
|
14109
|
+
return;
|
|
14253
14110
|
}
|
|
14254
|
-
const [h, m] =
|
|
14255
|
-
|
|
14256
|
-
|
|
14257
|
-
|
|
14111
|
+
const [h, m] = this.toSplitted(this.toISO(v));
|
|
14112
|
+
if (this.is12) {
|
|
14113
|
+
if (h > 12) {
|
|
14114
|
+
this.setA('pm');
|
|
14115
|
+
this.hours = h - 12;
|
|
14116
|
+
}
|
|
14117
|
+
if (h < 12) {
|
|
14118
|
+
this.setA('am');
|
|
14119
|
+
this.hours = h === 0 ? 12 : h;
|
|
14120
|
+
}
|
|
14121
|
+
if (h === 12) {
|
|
14122
|
+
this.hours = 12;
|
|
14123
|
+
}
|
|
14258
14124
|
}
|
|
14259
|
-
|
|
14260
|
-
|
|
14261
|
-
return false;
|
|
14125
|
+
else {
|
|
14126
|
+
this.hours = h;
|
|
14262
14127
|
}
|
|
14263
|
-
|
|
14128
|
+
this.minutes = Number(m);
|
|
14264
14129
|
}
|
|
14265
14130
|
clear() {
|
|
14266
14131
|
this.hours = null;
|
|
@@ -14274,34 +14139,115 @@ let TimepickerComponent = class TimepickerComponent extends (0,external_vue_clas
|
|
|
14274
14139
|
let funcResult = null;
|
|
14275
14140
|
this.validationMessage = '';
|
|
14276
14141
|
this.validRules.forEach(func => {
|
|
14277
|
-
funcResult = func(this.
|
|
14142
|
+
funcResult = func(this._time);
|
|
14278
14143
|
if (funcResult !== true) {
|
|
14279
14144
|
this.validationMessage = funcResult;
|
|
14280
14145
|
}
|
|
14281
14146
|
});
|
|
14282
14147
|
return !this.validationMessage;
|
|
14283
14148
|
}
|
|
14284
|
-
|
|
14149
|
+
setA(a) {
|
|
14150
|
+
this.a = a;
|
|
14151
|
+
}
|
|
14152
|
+
emitedValue(value) {
|
|
14153
|
+
if (this.returnFormat === 12) {
|
|
14154
|
+
return this.toLocalized(value);
|
|
14155
|
+
}
|
|
14156
|
+
return this.toISO(value);
|
|
14157
|
+
}
|
|
14158
|
+
toISO(value) {
|
|
14159
|
+
let v = null;
|
|
14160
|
+
if (/am/.test(value)) {
|
|
14161
|
+
v = value.replace(/am/g, '').trim();
|
|
14162
|
+
const [h, m] = this.toSplitted(v);
|
|
14163
|
+
return h === 12 ? `00:${m}` : v;
|
|
14164
|
+
}
|
|
14165
|
+
if (/pm/.test(value)) {
|
|
14166
|
+
v = value.replace(/pm/g, '').trim();
|
|
14167
|
+
const [h, m] = this.toSplitted(v);
|
|
14168
|
+
return `${h < 12 ? h + 12 : h}:${m}`;
|
|
14169
|
+
}
|
|
14170
|
+
return value;
|
|
14171
|
+
}
|
|
14172
|
+
toLocalized(value) {
|
|
14173
|
+
if (/am|pm/.test(value)) {
|
|
14174
|
+
return value;
|
|
14175
|
+
}
|
|
14176
|
+
const [h, m] = this.toSplitted(value);
|
|
14177
|
+
if (h > 12) {
|
|
14178
|
+
return `${h - 12}:${m} pm`;
|
|
14179
|
+
}
|
|
14180
|
+
if (h < 12) {
|
|
14181
|
+
return `${h}:${m} am`;
|
|
14182
|
+
}
|
|
14183
|
+
return `${h}:${m} ${this.a}`;
|
|
14184
|
+
}
|
|
14185
|
+
toSplitted(value) {
|
|
14186
|
+
if (!(/\d\d\:\d\d/.test(value))) {
|
|
14187
|
+
return [0, 0];
|
|
14188
|
+
}
|
|
14189
|
+
const [h, m] = value.split(':');
|
|
14190
|
+
return [Number(h), Number(m)];
|
|
14191
|
+
}
|
|
14192
|
+
get _format() {
|
|
14193
|
+
if (this.$utils.isDefined(this.format)) {
|
|
14194
|
+
return this.format;
|
|
14195
|
+
}
|
|
14196
|
+
if (this.localeRu) {
|
|
14197
|
+
return 24;
|
|
14198
|
+
}
|
|
14199
|
+
if (this.localeEn) {
|
|
14200
|
+
return 12;
|
|
14201
|
+
}
|
|
14202
|
+
return 24;
|
|
14203
|
+
}
|
|
14204
|
+
get is12() {
|
|
14205
|
+
return this._format === 12;
|
|
14206
|
+
}
|
|
14207
|
+
get is24() {
|
|
14208
|
+
return this._format === 24;
|
|
14209
|
+
}
|
|
14210
|
+
get isAM() {
|
|
14211
|
+
return this.a === 'am';
|
|
14212
|
+
}
|
|
14213
|
+
get isPM() {
|
|
14214
|
+
return this.a === 'pm';
|
|
14215
|
+
}
|
|
14216
|
+
get _hours() {
|
|
14285
14217
|
if (!this.$utils.isDefined(this.hours)) {
|
|
14286
14218
|
return '';
|
|
14287
14219
|
}
|
|
14288
14220
|
return ('0' + this.hours).slice(-2);
|
|
14289
14221
|
}
|
|
14290
|
-
get
|
|
14222
|
+
get _minutes() {
|
|
14291
14223
|
if (!this.$utils.isDefined(this.minutes)) {
|
|
14292
14224
|
return '';
|
|
14293
14225
|
}
|
|
14294
14226
|
return ('0' + this.minutes).slice(-2);
|
|
14295
14227
|
}
|
|
14296
|
-
get
|
|
14297
|
-
if (!this.
|
|
14228
|
+
get _time() {
|
|
14229
|
+
if (!this._hours && !this._minutes) {
|
|
14298
14230
|
return '';
|
|
14299
14231
|
}
|
|
14300
|
-
|
|
14232
|
+
if (this.is12) {
|
|
14233
|
+
return `${this._hours}:${this._minutes} ${this.a}`;
|
|
14234
|
+
}
|
|
14235
|
+
if (this.is24) {
|
|
14236
|
+
return `${this._hours}:${this._minutes}`;
|
|
14237
|
+
}
|
|
14301
14238
|
}
|
|
14302
14239
|
get warningHint() {
|
|
14303
14240
|
return Boolean(this.validationMessage);
|
|
14304
14241
|
}
|
|
14242
|
+
get locale() {
|
|
14243
|
+
return this.$ldmui.options.language;
|
|
14244
|
+
}
|
|
14245
|
+
get localeRu() {
|
|
14246
|
+
return this.locale.includes('ru');
|
|
14247
|
+
}
|
|
14248
|
+
get localeEn() {
|
|
14249
|
+
return this.locale.includes('en');
|
|
14250
|
+
}
|
|
14305
14251
|
};
|
|
14306
14252
|
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
14307
14253
|
(0,external_vue_property_decorator_.Prop)(),
|
|
@@ -14315,6 +14261,14 @@ ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
|
14315
14261
|
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'ЧЧ.ММ' }),
|
|
14316
14262
|
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", String)
|
|
14317
14263
|
], TimepickerComponent.prototype, "placeholder", void 0);
|
|
14264
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
14265
|
+
(0,external_vue_property_decorator_.Prop)({ type: Number, default: undefined }),
|
|
14266
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
14267
|
+
], TimepickerComponent.prototype, "format", void 0);
|
|
14268
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
14269
|
+
(0,external_vue_property_decorator_.Prop)({ type: Number, default: 24 }),
|
|
14270
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
14271
|
+
], TimepickerComponent.prototype, "returnFormat", void 0);
|
|
14318
14272
|
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
14319
14273
|
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
14320
14274
|
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
@@ -14344,11 +14298,23 @@ ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
|
14344
14298
|
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
14345
14299
|
], TimepickerComponent.prototype, "onTimeMenuChanged", null);
|
|
14346
14300
|
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
14347
|
-
(0,external_vue_property_decorator_.Watch)('
|
|
14301
|
+
(0,external_vue_property_decorator_.Watch)('_time'),
|
|
14348
14302
|
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
14349
14303
|
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
14350
14304
|
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
14351
14305
|
], TimepickerComponent.prototype, "onTimeChanged", null);
|
|
14306
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
14307
|
+
(0,external_vue_property_decorator_.Watch)('format'),
|
|
14308
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
14309
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
14310
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
14311
|
+
], TimepickerComponent.prototype, "onFormatChanged", null);
|
|
14312
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
14313
|
+
(0,external_vue_property_decorator_.Watch)('returnFormat'),
|
|
14314
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
14315
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
14316
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
14317
|
+
], TimepickerComponent.prototype, "onReturnFormatChanged", null);
|
|
14352
14318
|
TimepickerComponent = ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
14353
14319
|
(0,external_vue_class_component_.Options)({
|
|
14354
14320
|
components: {
|
|
@@ -14368,7 +14334,7 @@ TimepickerComponent = ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
|
14368
14334
|
;
|
|
14369
14335
|
|
|
14370
14336
|
|
|
14371
|
-
const ld_timepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_timepickervue_type_script_lang_ts_external, [['render',
|
|
14337
|
+
const ld_timepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_timepickervue_type_script_lang_ts_external, [['render',ld_timepickervue_type_template_id_15511ea0_scoped_true_ts_true_render],['__scopeId',"data-v-15511ea0"]])
|
|
14372
14338
|
|
|
14373
14339
|
/* harmony default export */ const ld_timepicker = (ld_timepicker_exports_);
|
|
14374
14340
|
;// ./src/ld-timepicker/index.ts
|
|
@@ -14378,24 +14344,24 @@ function ld_timepicker_reg(vue, options) {
|
|
|
14378
14344
|
}
|
|
14379
14345
|
/* harmony default export */ const src_ld_timepicker = (ld_timepicker_reg);
|
|
14380
14346
|
|
|
14381
|
-
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-text-viewer/ld-text-viewer.vue?vue&type=template&id=
|
|
14347
|
+
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-text-viewer/ld-text-viewer.vue?vue&type=template&id=3fa037a4&scoped=true
|
|
14382
14348
|
|
|
14383
14349
|
|
|
14384
|
-
const
|
|
14385
|
-
const
|
|
14386
|
-
const
|
|
14387
|
-
const
|
|
14350
|
+
const ld_text_viewervue_type_template_id_3fa037a4_scoped_true_hoisted_1 = { class: "ld-text-viewer" }
|
|
14351
|
+
const ld_text_viewervue_type_template_id_3fa037a4_scoped_true_hoisted_2 = ["innerHTML"]
|
|
14352
|
+
const ld_text_viewervue_type_template_id_3fa037a4_scoped_true_hoisted_3 = ["innerHTML"]
|
|
14353
|
+
const ld_text_viewervue_type_template_id_3fa037a4_scoped_true_hoisted_4 = {
|
|
14388
14354
|
key: 2,
|
|
14389
14355
|
class: "italic",
|
|
14390
14356
|
style: {"color":"var(--grey-l-2)"}
|
|
14391
14357
|
}
|
|
14392
14358
|
|
|
14393
|
-
function
|
|
14359
|
+
function ld_text_viewervue_type_template_id_3fa037a4_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14394
14360
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label")
|
|
14395
14361
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col")
|
|
14396
14362
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row")
|
|
14397
14363
|
|
|
14398
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
14364
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_text_viewervue_type_template_id_3fa037a4_scoped_true_hoisted_1, [
|
|
14399
14365
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
14400
14366
|
default: (0,external_vue_.withCtx)(() => [
|
|
14401
14367
|
(_ctx.label)
|
|
@@ -14418,16 +14384,16 @@ function ld_text_viewervue_type_template_id_26123e5c_scoped_true_render(_ctx, _c
|
|
|
14418
14384
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", {
|
|
14419
14385
|
key: 0,
|
|
14420
14386
|
innerHTML: _ctx.textWithHyperlinks
|
|
14421
|
-
}, null, 8,
|
|
14387
|
+
}, null, 8, ld_text_viewervue_type_template_id_3fa037a4_scoped_true_hoisted_2))
|
|
14422
14388
|
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", {
|
|
14423
14389
|
key: 1,
|
|
14424
14390
|
innerHTML: _ctx.src
|
|
14425
|
-
}, null, 8,
|
|
14391
|
+
}, null, 8, ld_text_viewervue_type_template_id_3fa037a4_scoped_true_hoisted_3))
|
|
14426
14392
|
], 64))
|
|
14427
14393
|
: (0,external_vue_.renderSlot)(_ctx.$slots, "default", { key: 1 }, undefined, true),
|
|
14428
14394
|
_cache[0] || (_cache[0] = (0,external_vue_.createTextVNode)()),
|
|
14429
14395
|
(_ctx.showPlaceholder)
|
|
14430
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("p",
|
|
14396
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("p", ld_text_viewervue_type_template_id_3fa037a4_scoped_true_hoisted_4, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('No data')), 1))
|
|
14431
14397
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
14432
14398
|
]),
|
|
14433
14399
|
_: 3
|
|
@@ -14437,7 +14403,7 @@ function ld_text_viewervue_type_template_id_26123e5c_scoped_true_render(_ctx, _c
|
|
|
14437
14403
|
})
|
|
14438
14404
|
]))
|
|
14439
14405
|
}
|
|
14440
|
-
;// ./src/ld-text-viewer/ld-text-viewer.vue?vue&type=template&id=
|
|
14406
|
+
;// ./src/ld-text-viewer/ld-text-viewer.vue?vue&type=template&id=3fa037a4&scoped=true
|
|
14441
14407
|
|
|
14442
14408
|
;// ./src/utils/awaiting.ts
|
|
14443
14409
|
async function awaiting(callback) {
|
|
@@ -14899,7 +14865,7 @@ CardTextViewer = ld_text_viewervue_type_script_lang_js_external_decorate([
|
|
|
14899
14865
|
;
|
|
14900
14866
|
|
|
14901
14867
|
|
|
14902
|
-
const ld_text_viewer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_text_viewervue_type_script_lang_js_external, [['render',
|
|
14868
|
+
const ld_text_viewer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_text_viewervue_type_script_lang_js_external, [['render',ld_text_viewervue_type_template_id_3fa037a4_scoped_true_render],['__scopeId',"data-v-3fa037a4"]])
|
|
14903
14869
|
|
|
14904
14870
|
/* harmony default export */ const ld_text_viewer = (ld_text_viewer_exports_);
|
|
14905
14871
|
;// ./src/ld-text-viewer/index.ts
|
|
@@ -15154,19 +15120,19 @@ function ld_edit_masked_text_reg(vue, options) {
|
|
|
15154
15120
|
}
|
|
15155
15121
|
/* harmony default export */ const src_ld_edit_masked_text = (ld_edit_masked_text_reg);
|
|
15156
15122
|
|
|
15157
|
-
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-text-markup/ld-text-markup.vue?vue&type=template&id=
|
|
15123
|
+
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-text-markup/ld-text-markup.vue?vue&type=template&id=2efb69ff&scoped=true
|
|
15158
15124
|
|
|
15159
15125
|
|
|
15160
|
-
const
|
|
15161
|
-
const
|
|
15162
|
-
const
|
|
15126
|
+
const ld_text_markupvue_type_template_id_2efb69ff_scoped_true_hoisted_1 = { class: "ld-text-markup" }
|
|
15127
|
+
const ld_text_markupvue_type_template_id_2efb69ff_scoped_true_hoisted_2 = { class: "tabs-wrapper" }
|
|
15128
|
+
const ld_text_markupvue_type_template_id_2efb69ff_scoped_true_hoisted_3 = {
|
|
15163
15129
|
key: "editor",
|
|
15164
15130
|
class: "content editorbox",
|
|
15165
15131
|
style: {"visibility":"hidden"},
|
|
15166
15132
|
id: "editorbox"
|
|
15167
15133
|
}
|
|
15168
15134
|
|
|
15169
|
-
function
|
|
15135
|
+
function ld_text_markupvue_type_template_id_2efb69ff_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15170
15136
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label")
|
|
15171
15137
|
const _component_v_btn = (0,external_vue_.resolveComponent)("v-btn")
|
|
15172
15138
|
const _component_v_runtime_template = (0,external_vue_.resolveComponent)("v-runtime-template")
|
|
@@ -15174,7 +15140,7 @@ function ld_text_markupvue_type_template_id_12e81c9c_scoped_true_render(_ctx, _c
|
|
|
15174
15140
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col")
|
|
15175
15141
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row")
|
|
15176
15142
|
|
|
15177
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
15143
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_text_markupvue_type_template_id_2efb69ff_scoped_true_hoisted_1, [
|
|
15178
15144
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
15179
15145
|
default: (0,external_vue_.withCtx)(() => [
|
|
15180
15146
|
(_ctx.label)
|
|
@@ -15191,7 +15157,7 @@ function ld_text_markupvue_type_template_id_12e81c9c_scoped_true_render(_ctx, _c
|
|
|
15191
15157
|
class: (0,external_vue_.normalizeClass)([_ctx.inputSizeClasses, "pa-1 content-wrapper"])
|
|
15192
15158
|
}, {
|
|
15193
15159
|
default: (0,external_vue_.withCtx)(() => [
|
|
15194
|
-
(0,external_vue_.createElementVNode)("div",
|
|
15160
|
+
(0,external_vue_.createElementVNode)("div", ld_text_markupvue_type_template_id_2efb69ff_scoped_true_hoisted_2, [
|
|
15195
15161
|
(0,external_vue_.createVNode)(_component_v_btn, {
|
|
15196
15162
|
class: (0,external_vue_.normalizeClass)(["small-button", { active: !_ctx.isPreviewActive }]),
|
|
15197
15163
|
variant: "outlined",
|
|
@@ -15201,7 +15167,7 @@ function ld_text_markupvue_type_template_id_12e81c9c_scoped_true_render(_ctx, _c
|
|
|
15201
15167
|
default: (0,external_vue_.withCtx)(() => [
|
|
15202
15168
|
(0,external_vue_.createElementVNode)("span", {
|
|
15203
15169
|
class: (0,external_vue_.normalizeClass)({ 'text-color': !_ctx.isPreviewActive })
|
|
15204
|
-
},
|
|
15170
|
+
}, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Text')), 3)
|
|
15205
15171
|
]),
|
|
15206
15172
|
_: 1
|
|
15207
15173
|
}, 8, ["class", "disabled", "onClick"]),
|
|
@@ -15214,7 +15180,7 @@ function ld_text_markupvue_type_template_id_12e81c9c_scoped_true_render(_ctx, _c
|
|
|
15214
15180
|
default: (0,external_vue_.withCtx)(() => [
|
|
15215
15181
|
(0,external_vue_.createElementVNode)("span", {
|
|
15216
15182
|
class: (0,external_vue_.normalizeClass)({ 'text-color': _ctx.isPreviewActive })
|
|
15217
|
-
},
|
|
15183
|
+
}, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Preview')), 3)
|
|
15218
15184
|
]),
|
|
15219
15185
|
_: 1
|
|
15220
15186
|
}, 8, ["class", "onClick"])
|
|
@@ -15228,7 +15194,7 @@ function ld_text_markupvue_type_template_id_12e81c9c_scoped_true_render(_ctx, _c
|
|
|
15228
15194
|
}, null, 8, ["template"]))
|
|
15229
15195
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
15230
15196
|
_cache[3] || (_cache[3] = (0,external_vue_.createTextVNode)()),
|
|
15231
|
-
(0,external_vue_.withDirectives)((0,external_vue_.createElementVNode)("div",
|
|
15197
|
+
(0,external_vue_.withDirectives)((0,external_vue_.createElementVNode)("div", ld_text_markupvue_type_template_id_2efb69ff_scoped_true_hoisted_3, [
|
|
15232
15198
|
(0,external_vue_.createVNode)(_component_md_editor, {
|
|
15233
15199
|
modelValue: _ctx.value,
|
|
15234
15200
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.value) = $event)),
|
|
@@ -15287,7 +15253,7 @@ function ld_text_markupvue_type_template_id_12e81c9c_scoped_true_render(_ctx, _c
|
|
|
15287
15253
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
15288
15254
|
]))
|
|
15289
15255
|
}
|
|
15290
|
-
;// ./src/ld-text-markup/ld-text-markup.vue?vue&type=template&id=
|
|
15256
|
+
;// ./src/ld-text-markup/ld-text-markup.vue?vue&type=template&id=2efb69ff&scoped=true
|
|
15291
15257
|
|
|
15292
15258
|
;// ./src/ld-text-markup/translation.ts
|
|
15293
15259
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
@@ -15607,7 +15573,7 @@ TextMarkupComponent = ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
|
15607
15573
|
;
|
|
15608
15574
|
|
|
15609
15575
|
|
|
15610
|
-
const ld_text_markup_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_text_markupvue_type_script_lang_js_external, [['render',
|
|
15576
|
+
const ld_text_markup_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_text_markupvue_type_script_lang_js_external, [['render',ld_text_markupvue_type_template_id_2efb69ff_scoped_true_render],['__scopeId',"data-v-2efb69ff"]])
|
|
15611
15577
|
|
|
15612
15578
|
/* harmony default export */ const ld_text_markup = (ld_text_markup_exports_);
|
|
15613
15579
|
;// ./src/ld-text-markup/index.ts
|
|
@@ -16343,25 +16309,25 @@ class DialogManager {
|
|
|
16343
16309
|
}
|
|
16344
16310
|
DialogManager._id = '';
|
|
16345
16311
|
|
|
16346
|
-
;// ./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!./src/ld-dialog/dialog.minimized.vue?vue&type=template&id=
|
|
16312
|
+
;// ./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!./src/ld-dialog/dialog.minimized.vue?vue&type=template&id=fda0257c&ts=true
|
|
16347
16313
|
|
|
16348
|
-
const
|
|
16314
|
+
const dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_1 = {
|
|
16349
16315
|
key: 0,
|
|
16350
16316
|
class: "minimized-dialogs"
|
|
16351
16317
|
};
|
|
16352
|
-
const
|
|
16318
|
+
const dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_2 = {
|
|
16353
16319
|
key: 0,
|
|
16354
16320
|
class: "d-flex flex-row-reverse"
|
|
16355
16321
|
};
|
|
16356
|
-
const
|
|
16357
|
-
const
|
|
16358
|
-
const
|
|
16359
|
-
const
|
|
16360
|
-
const
|
|
16361
|
-
const
|
|
16362
|
-
const
|
|
16322
|
+
const dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_3 = ["onClick"];
|
|
16323
|
+
const dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_4 = { class: "d-flex align-center justify-between px-2" };
|
|
16324
|
+
const dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_5 = { class: "white--text" };
|
|
16325
|
+
const dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_6 = { class: "d-flex justify-center" };
|
|
16326
|
+
const dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_7 = { class: "body-1 white--text" };
|
|
16327
|
+
const dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_8 = { class: "minimized-item__title" };
|
|
16328
|
+
const dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_9 = { class: "minimized-item__subtitle" };
|
|
16363
16329
|
const _hoisted_10 = { class: "pa-3" };
|
|
16364
|
-
function
|
|
16330
|
+
function dialog_minimizedvue_type_template_id_fda0257c_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16365
16331
|
const _component_v_spacer = (0,external_vue_.resolveComponent)("v-spacer");
|
|
16366
16332
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
16367
16333
|
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip");
|
|
@@ -16372,20 +16338,20 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16372
16338
|
const _component_v_card = (0,external_vue_.resolveComponent)("v-card");
|
|
16373
16339
|
const _component_v_menu = (0,external_vue_.resolveComponent)("v-menu");
|
|
16374
16340
|
return (_ctx.items.length)
|
|
16375
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
16341
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_1, [
|
|
16376
16342
|
(_ctx.isManyItems)
|
|
16377
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
16343
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_2, [
|
|
16378
16344
|
((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, null, (0,external_vue_.renderList)(_ctx.items, (item) => {
|
|
16379
16345
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("button", {
|
|
16380
16346
|
key: item.id,
|
|
16381
16347
|
class: "ml-4 minimize-btn",
|
|
16382
16348
|
onClick: ($event) => (_ctx.onMaximize(item))
|
|
16383
16349
|
}, [
|
|
16384
|
-
(0,external_vue_.createElementVNode)("div",
|
|
16385
|
-
(0,external_vue_.createElementVNode)("span",
|
|
16386
|
-
_cache[
|
|
16350
|
+
(0,external_vue_.createElementVNode)("div", dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_4, [
|
|
16351
|
+
(0,external_vue_.createElementVNode)("span", dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_5, (0,external_vue_.toDisplayString)(item.processingDescription || item.description || item.title), 1),
|
|
16352
|
+
_cache[5] || (_cache[5] = (0,external_vue_.createTextVNode)()),
|
|
16387
16353
|
(0,external_vue_.createVNode)(_component_v_spacer),
|
|
16388
|
-
_cache[
|
|
16354
|
+
_cache[6] || (_cache[6] = (0,external_vue_.createTextVNode)()),
|
|
16389
16355
|
(0,external_vue_.createElementVNode)("div", null, [
|
|
16390
16356
|
(0,external_vue_.createVNode)(_component_v_tooltip, { location: "top" }, {
|
|
16391
16357
|
activator: (0,external_vue_.withCtx)(({ props }) => [
|
|
@@ -16406,11 +16372,11 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16406
16372
|
]),
|
|
16407
16373
|
default: (0,external_vue_.withCtx)(() => [
|
|
16408
16374
|
_cache[1] || (_cache[1] = (0,external_vue_.createTextVNode)()),
|
|
16409
|
-
|
|
16375
|
+
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Expand')), 1)
|
|
16410
16376
|
]),
|
|
16411
16377
|
_: 2
|
|
16412
16378
|
}, 1024),
|
|
16413
|
-
_cache[
|
|
16379
|
+
_cache[4] || (_cache[4] = (0,external_vue_.createTextVNode)()),
|
|
16414
16380
|
(0,external_vue_.createVNode)(_component_v_tooltip, { location: "top" }, {
|
|
16415
16381
|
activator: (0,external_vue_.withCtx)(({ props }) => [
|
|
16416
16382
|
(0,external_vue_.createVNode)(_component_square_button, (0,external_vue_.mergeProps)({ ref_for: true }, props, {
|
|
@@ -16419,7 +16385,7 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16419
16385
|
}), {
|
|
16420
16386
|
default: (0,external_vue_.withCtx)(() => [
|
|
16421
16387
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), null, {
|
|
16422
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
16388
|
+
default: (0,external_vue_.withCtx)(() => _cache[2] || (_cache[2] = [
|
|
16423
16389
|
(0,external_vue_.createTextVNode)("close")
|
|
16424
16390
|
])),
|
|
16425
16391
|
_: 1
|
|
@@ -16429,29 +16395,29 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16429
16395
|
}, 1040, ["onClick"])
|
|
16430
16396
|
]),
|
|
16431
16397
|
default: (0,external_vue_.withCtx)(() => [
|
|
16432
|
-
_cache[
|
|
16433
|
-
|
|
16398
|
+
_cache[3] || (_cache[3] = (0,external_vue_.createTextVNode)()),
|
|
16399
|
+
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Close')), 1)
|
|
16434
16400
|
]),
|
|
16435
16401
|
_: 2
|
|
16436
16402
|
}, 1024)
|
|
16437
16403
|
])
|
|
16438
16404
|
])
|
|
16439
|
-
], 8,
|
|
16405
|
+
], 8, dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_3));
|
|
16440
16406
|
}), 128))
|
|
16441
16407
|
]))
|
|
16442
16408
|
: ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_menu, { key: 1 }, {
|
|
16443
16409
|
activator: (0,external_vue_.withCtx)(({ props }) => [
|
|
16444
16410
|
(0,external_vue_.createElementVNode)("button", (0,external_vue_.mergeProps)(props, { class: "minimize-btn" }), [
|
|
16445
|
-
(0,external_vue_.createElementVNode)("div",
|
|
16446
|
-
(0,external_vue_.createElementVNode)("span",
|
|
16447
|
-
|
|
16411
|
+
(0,external_vue_.createElementVNode)("div", dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_6, [
|
|
16412
|
+
(0,external_vue_.createElementVNode)("span", dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_7, [
|
|
16413
|
+
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Collapsed windows')), 1),
|
|
16448
16414
|
(0,external_vue_.createTextVNode)(" (" + (0,external_vue_.toDisplayString)(_ctx.items.length) + ") ", 1)
|
|
16449
16415
|
])
|
|
16450
16416
|
])
|
|
16451
16417
|
], 16)
|
|
16452
16418
|
]),
|
|
16453
16419
|
default: (0,external_vue_.withCtx)(() => [
|
|
16454
|
-
_cache[
|
|
16420
|
+
_cache[15] || (_cache[15] = (0,external_vue_.createTextVNode)()),
|
|
16455
16421
|
(0,external_vue_.createVNode)(_component_v_card, {
|
|
16456
16422
|
class: "d-flex flex-column overflow-hidden",
|
|
16457
16423
|
style: { "max-height": "65vh" }
|
|
@@ -16470,7 +16436,7 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16470
16436
|
}, {
|
|
16471
16437
|
default: (0,external_vue_.withCtx)(() => [
|
|
16472
16438
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), null, {
|
|
16473
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
16439
|
+
default: (0,external_vue_.withCtx)(() => _cache[8] || (_cache[8] = [
|
|
16474
16440
|
(0,external_vue_.createTextVNode)("\r\n open_in_full\r\n ")
|
|
16475
16441
|
])),
|
|
16476
16442
|
_: 1
|
|
@@ -16478,13 +16444,13 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16478
16444
|
]),
|
|
16479
16445
|
_: 2
|
|
16480
16446
|
}, 1032, ["onClick"]),
|
|
16481
|
-
_cache[
|
|
16447
|
+
_cache[10] || (_cache[10] = (0,external_vue_.createTextVNode)()),
|
|
16482
16448
|
(0,external_vue_.createVNode)(_component_square_button, {
|
|
16483
16449
|
onClick: (0,external_vue_.withModifiers)(($event) => (_ctx.onClose(item)), ["stop"])
|
|
16484
16450
|
}, {
|
|
16485
16451
|
default: (0,external_vue_.withCtx)(() => [
|
|
16486
16452
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), null, {
|
|
16487
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
16453
|
+
default: (0,external_vue_.withCtx)(() => _cache[9] || (_cache[9] = [
|
|
16488
16454
|
(0,external_vue_.createTextVNode)("\r\n close\r\n ")
|
|
16489
16455
|
])),
|
|
16490
16456
|
_: 1
|
|
@@ -16498,13 +16464,13 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16498
16464
|
class: (0,external_vue_.normalizeClass)({ 'changed': _ctx.itemIsChanged(item) })
|
|
16499
16465
|
}, {
|
|
16500
16466
|
default: (0,external_vue_.withCtx)(() => [
|
|
16501
|
-
(0,external_vue_.createElementVNode)("div",
|
|
16502
|
-
_cache[
|
|
16503
|
-
(0,external_vue_.createElementVNode)("div",
|
|
16467
|
+
(0,external_vue_.createElementVNode)("div", dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_8, (0,external_vue_.toDisplayString)(item.description), 1),
|
|
16468
|
+
_cache[7] || (_cache[7] = (0,external_vue_.createTextVNode)()),
|
|
16469
|
+
(0,external_vue_.createElementVNode)("div", dialog_minimizedvue_type_template_id_fda0257c_ts_true_hoisted_9, (0,external_vue_.toDisplayString)(item.title), 1)
|
|
16504
16470
|
]),
|
|
16505
16471
|
_: 2
|
|
16506
16472
|
}, 1032, ["class"]),
|
|
16507
|
-
_cache[
|
|
16473
|
+
_cache[11] || (_cache[11] = (0,external_vue_.createTextVNode)())
|
|
16508
16474
|
]),
|
|
16509
16475
|
_: 2
|
|
16510
16476
|
}, 1032, ["onClick"]));
|
|
@@ -16512,7 +16478,7 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16512
16478
|
]),
|
|
16513
16479
|
_: 1
|
|
16514
16480
|
}),
|
|
16515
|
-
_cache[
|
|
16481
|
+
_cache[14] || (_cache[14] = (0,external_vue_.createTextVNode)()),
|
|
16516
16482
|
(0,external_vue_.createElementVNode)("div", _hoisted_10, [
|
|
16517
16483
|
(0,external_vue_.createVNode)(_component_small_button, {
|
|
16518
16484
|
color: "grey",
|
|
@@ -16521,13 +16487,13 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16521
16487
|
}, {
|
|
16522
16488
|
default: (0,external_vue_.withCtx)(() => [
|
|
16523
16489
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), { color: "error" }, {
|
|
16524
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
16490
|
+
default: (0,external_vue_.withCtx)(() => _cache[12] || (_cache[12] = [
|
|
16525
16491
|
(0,external_vue_.createTextVNode)("\r\n close\r\n ")
|
|
16526
16492
|
])),
|
|
16527
16493
|
_: 1
|
|
16528
16494
|
})),
|
|
16529
|
-
_cache[
|
|
16530
|
-
|
|
16495
|
+
_cache[13] || (_cache[13] = (0,external_vue_.createTextVNode)()),
|
|
16496
|
+
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Close all')), 1)
|
|
16531
16497
|
]),
|
|
16532
16498
|
_: 1
|
|
16533
16499
|
}, 8, ["onClick"])
|
|
@@ -16542,7 +16508,7 @@ function dialog_minimizedvue_type_template_id_719819aa_ts_true_render(_ctx, _cac
|
|
|
16542
16508
|
: (0,external_vue_.createCommentVNode)("", true);
|
|
16543
16509
|
}
|
|
16544
16510
|
|
|
16545
|
-
;// ./src/ld-dialog/dialog.minimized.vue?vue&type=template&id=
|
|
16511
|
+
;// ./src/ld-dialog/dialog.minimized.vue?vue&type=template&id=fda0257c&ts=true
|
|
16546
16512
|
|
|
16547
16513
|
;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-dialog/dialog.minimized.ts?vue&type=script&lang=ts&external
|
|
16548
16514
|
var dialog_minimizedvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -16623,7 +16589,7 @@ DialogMinimizedComponent = dialog_minimizedvue_type_script_lang_ts_external_deco
|
|
|
16623
16589
|
|
|
16624
16590
|
|
|
16625
16591
|
;
|
|
16626
|
-
const dialog_minimized_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(dialog_minimizedvue_type_script_lang_ts_external, [['render',
|
|
16592
|
+
const dialog_minimized_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(dialog_minimizedvue_type_script_lang_ts_external, [['render',dialog_minimizedvue_type_template_id_fda0257c_ts_true_render]])
|
|
16627
16593
|
|
|
16628
16594
|
/* harmony default export */ const dialog_minimized = (dialog_minimized_exports_);
|
|
16629
16595
|
;// ./src/ld-dialog/dialogs.ts
|
|
@@ -19436,13 +19402,13 @@ const ldmuiPlugin = {
|
|
|
19436
19402
|
}
|
|
19437
19403
|
vue.config.globalProperties.$ldmui = {
|
|
19438
19404
|
options: (0,external_vue_.reactive)(options),
|
|
19439
|
-
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19405
|
+
};
|
|
19406
|
+
const library = (__webpack_require__(1397).ru);
|
|
19407
|
+
vue.config.globalProperties.$ldmuii18n = {
|
|
19408
|
+
library,
|
|
19409
|
+
gettext: (value) => {
|
|
19410
|
+
return library[value] ?? value;
|
|
19411
|
+
}
|
|
19446
19412
|
};
|
|
19447
19413
|
vue.directive('active', ActiveDirectiveOptions);
|
|
19448
19414
|
const toastedOptions = {
|
|
@@ -19487,6 +19453,39 @@ const ldmuiPlugin = {
|
|
|
19487
19453
|
},
|
|
19488
19454
|
};
|
|
19489
19455
|
/* harmony default export */ const src = (ldmuiPlugin);
|
|
19456
|
+
const localesMap = new Map();
|
|
19457
|
+
localesMap.set('en', () => __webpack_require__(8179));
|
|
19458
|
+
localesMap.set('ru', () => __webpack_require__(1397));
|
|
19459
|
+
const ldmuii18n = {
|
|
19460
|
+
install(vue, value) {
|
|
19461
|
+
let language = vue.config?.globalProperties?.$ldmui?.options?.language || 'en';
|
|
19462
|
+
let library = {};
|
|
19463
|
+
try {
|
|
19464
|
+
if (!value) {
|
|
19465
|
+
throw new Error('locale not defined');
|
|
19466
|
+
}
|
|
19467
|
+
const json = JSON.parse(value);
|
|
19468
|
+
library = json[language];
|
|
19469
|
+
if (!library) {
|
|
19470
|
+
throw new Error('locale not defined');
|
|
19471
|
+
}
|
|
19472
|
+
}
|
|
19473
|
+
catch (e) {
|
|
19474
|
+
language = localesMap.has(language) ? language : 'en';
|
|
19475
|
+
const func = localesMap.get(language);
|
|
19476
|
+
library = func()[language];
|
|
19477
|
+
}
|
|
19478
|
+
function gettext(value) {
|
|
19479
|
+
return this.library[value] || value;
|
|
19480
|
+
}
|
|
19481
|
+
vue.config.globalProperties.$ldmuii18n = {
|
|
19482
|
+
library,
|
|
19483
|
+
gettext: null
|
|
19484
|
+
};
|
|
19485
|
+
vue.config.globalProperties.$ldmuii18n.gettext = gettext.bind(vue.config.globalProperties.$ldmuii18n);
|
|
19486
|
+
}
|
|
19487
|
+
};
|
|
19488
|
+
|
|
19490
19489
|
|
|
19491
19490
|
|
|
19492
19491
|
|