@ldmjs/ui 1.0.37 → 1.0.39
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 +2 -2
- package/dist/index.js +1087 -1082
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11681,14 +11681,14 @@ function ld_select_list_box_reg(vue, options) {
|
|
|
11681
11681
|
}
|
|
11682
11682
|
/* harmony default export */ const src_ld_select_list_box = (ld_select_list_box_reg);
|
|
11683
11683
|
|
|
11684
|
-
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=
|
|
11684
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=3fbd6592&ts=true
|
|
11685
11685
|
|
|
11686
|
-
const
|
|
11686
|
+
const ld_checkboxvue_type_template_id_3fbd6592_ts_true_hoisted_1 = {
|
|
11687
11687
|
class: "d-flex align-center",
|
|
11688
11688
|
style: { "position": "relative" }
|
|
11689
11689
|
};
|
|
11690
|
-
const
|
|
11691
|
-
const
|
|
11690
|
+
const ld_checkboxvue_type_template_id_3fbd6592_ts_true_hoisted_2 = ["checked", "data-testid", "tabindex", "disabled"];
|
|
11691
|
+
const ld_checkboxvue_type_template_id_3fbd6592_ts_true_hoisted_3 = /*#__PURE__*/ (0,external_vue_.createElementVNode)("i", { class: "v-icon" }, [
|
|
11692
11692
|
/*#__PURE__*/ (0,external_vue_.createElementVNode)("svg", {
|
|
11693
11693
|
width: "14",
|
|
11694
11694
|
height: "15",
|
|
@@ -11705,7 +11705,7 @@ const ld_checkboxvue_type_template_id_068cc5f6_ts_true_hoisted_3 = /*#__PURE__*/
|
|
|
11705
11705
|
})
|
|
11706
11706
|
])
|
|
11707
11707
|
], -1);
|
|
11708
|
-
function
|
|
11708
|
+
function ld_checkboxvue_type_template_id_3fbd6592_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11709
11709
|
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip");
|
|
11710
11710
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
|
|
11711
11711
|
class: (0,external_vue_.normalizeClass)(["ld-checkbox", { 'ld-checkbox--focused': _ctx.isFocused }])
|
|
@@ -11740,7 +11740,7 @@ function ld_checkboxvue_type_template_id_068cc5f6_ts_true_render(_ctx, _cache, $
|
|
|
11740
11740
|
]))
|
|
11741
11741
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
11742
11742
|
(0,external_vue_.createTextVNode)(),
|
|
11743
|
-
(0,external_vue_.createElementVNode)("label",
|
|
11743
|
+
(0,external_vue_.createElementVNode)("label", ld_checkboxvue_type_template_id_3fbd6592_ts_true_hoisted_1, [
|
|
11744
11744
|
(0,external_vue_.createElementVNode)("input", {
|
|
11745
11745
|
ref: "checkbox",
|
|
11746
11746
|
type: "checkbox",
|
|
@@ -11757,9 +11757,9 @@ function ld_checkboxvue_type_template_id_068cc5f6_ts_true_render(_ctx, _cache, $
|
|
|
11757
11757
|
onInput: _cache[3] || (_cache[3] =
|
|
11758
11758
|
//@ts-ignore
|
|
11759
11759
|
(...args) => (_ctx.onChange && _ctx.onChange(...args)))
|
|
11760
|
-
}, null, 40,
|
|
11760
|
+
}, null, 40, ld_checkboxvue_type_template_id_3fbd6592_ts_true_hoisted_2),
|
|
11761
11761
|
(0,external_vue_.createTextVNode)(),
|
|
11762
|
-
|
|
11762
|
+
ld_checkboxvue_type_template_id_3fbd6592_ts_true_hoisted_3
|
|
11763
11763
|
]),
|
|
11764
11764
|
(0,external_vue_.createTextVNode)(),
|
|
11765
11765
|
(_ctx.label && !_ctx.labelOnLeft)
|
|
@@ -11795,7 +11795,7 @@ function ld_checkboxvue_type_template_id_068cc5f6_ts_true_render(_ctx, _cache, $
|
|
|
11795
11795
|
], 2));
|
|
11796
11796
|
}
|
|
11797
11797
|
|
|
11798
|
-
;// CONCATENATED MODULE: ./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=
|
|
11798
|
+
;// CONCATENATED MODULE: ./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=3fbd6592&ts=true
|
|
11799
11799
|
|
|
11800
11800
|
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-checkbox/ld-checkbox.ts?vue&type=script&lang=ts&external
|
|
11801
11801
|
var ld_checkboxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -11825,6 +11825,8 @@ class CheckboxComponent extends (0,external_vue_property_decorator_.mixins)(Inpu
|
|
|
11825
11825
|
return value;
|
|
11826
11826
|
}
|
|
11827
11827
|
onValueChanged() {
|
|
11828
|
+
/* eslint-disable no-console */
|
|
11829
|
+
console.log('onValueChanged!!!');
|
|
11828
11830
|
if (this.modelValue === this.internalValue) {
|
|
11829
11831
|
return;
|
|
11830
11832
|
}
|
|
@@ -11850,6 +11852,8 @@ class CheckboxComponent extends (0,external_vue_property_decorator_.mixins)(Inpu
|
|
|
11850
11852
|
}
|
|
11851
11853
|
}
|
|
11852
11854
|
onChange(event) {
|
|
11855
|
+
/* eslint-disable no-console */
|
|
11856
|
+
console.log('onChange!!!');
|
|
11853
11857
|
const checked = event.target.checked;
|
|
11854
11858
|
if (this.$utils.isDefined(this.checkedValue) && this.$utils.isDefined(this.uncheckedValue)) {
|
|
11855
11859
|
this.fireinputEvent(checked ? this.checkedValue : this.uncheckedValue);
|
|
@@ -11968,7 +11972,7 @@ ld_checkboxvue_type_script_lang_ts_external_decorate([
|
|
|
11968
11972
|
;
|
|
11969
11973
|
|
|
11970
11974
|
|
|
11971
|
-
const ld_checkbox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CheckboxComponent, [['render',
|
|
11975
|
+
const ld_checkbox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CheckboxComponent, [['render',ld_checkboxvue_type_template_id_3fbd6592_ts_true_render]])
|
|
11972
11976
|
|
|
11973
11977
|
/* harmony default export */ const ld_checkbox = (ld_checkbox_exports_);
|
|
11974
11978
|
;// CONCATENATED MODULE: ./src/ld-checkbox/index.ts
|
|
@@ -14219,346 +14223,459 @@ function ld_text_viewervue_type_template_id_26123e5c_scoped_true_render(_ctx, _c
|
|
|
14219
14223
|
}
|
|
14220
14224
|
;// CONCATENATED MODULE: ./src/ld-text-viewer/ld-text-viewer.vue?vue&type=template&id=26123e5c&scoped=true
|
|
14221
14225
|
|
|
14222
|
-
;// CONCATENATED MODULE: ./
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14226
|
-
|
|
14227
|
-
|
|
14228
|
-
|
|
14229
|
-
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
|
|
14234
|
-
|
|
14235
|
-
|
|
14236
|
-
|
|
14237
|
-
/**
|
|
14238
|
-
* @displayName ld-text-viewer
|
|
14239
|
-
*/
|
|
14240
|
-
let CardTextViewer = class CardTextViewer extends (0,external_vue_class_component_.mixins)(GridMixin) {
|
|
14241
|
-
hasSlotContent(slot, slotProps = {}) {
|
|
14242
|
-
if (!slot) {
|
|
14243
|
-
return false;
|
|
14226
|
+
;// CONCATENATED MODULE: ./src/utils/awaiting.ts
|
|
14227
|
+
async function awaiting(callback) {
|
|
14228
|
+
let resolveFunc = null;
|
|
14229
|
+
const counter = 0;
|
|
14230
|
+
let timer = null;
|
|
14231
|
+
const promise = new Promise(resolve => {
|
|
14232
|
+
resolveFunc = resolve;
|
|
14233
|
+
});
|
|
14234
|
+
timer = setInterval(() => {
|
|
14235
|
+
const a = callback();
|
|
14236
|
+
if (counter > 100 || Boolean(a)) {
|
|
14237
|
+
clearInterval(timer);
|
|
14238
|
+
resolveFunc(a ?? true);
|
|
14244
14239
|
}
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
-
|
|
14240
|
+
}, 100);
|
|
14241
|
+
await promise;
|
|
14242
|
+
}
|
|
14243
|
+
|
|
14244
|
+
;// CONCATENATED MODULE: ./src/utils/base64.ts
|
|
14245
|
+
/* eslint-disable no-bitwise */
|
|
14246
|
+
class Base64Util {
|
|
14247
|
+
constructor() {
|
|
14248
|
+
this._keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
14249
|
+
}
|
|
14250
|
+
encode(input) {
|
|
14251
|
+
let output = '';
|
|
14252
|
+
let chr1, chr2, chr3, enc1, enc2, enc3, enc4;
|
|
14253
|
+
let i = 0;
|
|
14254
|
+
input = Base64Util._utf8_encode(input);
|
|
14255
|
+
while (i < input.length) {
|
|
14256
|
+
chr1 = input.charCodeAt(i++);
|
|
14257
|
+
chr2 = input.charCodeAt(i++);
|
|
14258
|
+
chr3 = input.charCodeAt(i++);
|
|
14259
|
+
enc1 = chr1 >> 2;
|
|
14260
|
+
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
|
|
14261
|
+
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
|
|
14262
|
+
enc4 = chr3 & 63;
|
|
14263
|
+
if (isNaN(chr2)) {
|
|
14264
|
+
enc3 = enc4 = 64;
|
|
14248
14265
|
}
|
|
14249
|
-
if (
|
|
14250
|
-
|
|
14266
|
+
else if (isNaN(chr3)) {
|
|
14267
|
+
enc4 = 64;
|
|
14251
14268
|
}
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14255
|
-
|
|
14256
|
-
|
|
14269
|
+
output =
|
|
14270
|
+
output +
|
|
14271
|
+
this._keyStr.charAt(enc1) +
|
|
14272
|
+
this._keyStr.charAt(enc2) +
|
|
14273
|
+
this._keyStr.charAt(enc3) +
|
|
14274
|
+
this._keyStr.charAt(enc4);
|
|
14275
|
+
}
|
|
14276
|
+
return output;
|
|
14257
14277
|
}
|
|
14258
|
-
|
|
14259
|
-
|
|
14260
|
-
|
|
14278
|
+
decode(input) {
|
|
14279
|
+
let output = '';
|
|
14280
|
+
let chr1, chr2, chr3;
|
|
14281
|
+
let enc1, enc2, enc3, enc4;
|
|
14282
|
+
let i = 0;
|
|
14283
|
+
input = input.replace(/[^\d+/=A-Za-z]/g, '');
|
|
14284
|
+
while (i < input.length) {
|
|
14285
|
+
enc1 = this._keyStr.indexOf(input.charAt(i++));
|
|
14286
|
+
enc2 = this._keyStr.indexOf(input.charAt(i++));
|
|
14287
|
+
enc3 = this._keyStr.indexOf(input.charAt(i++));
|
|
14288
|
+
enc4 = this._keyStr.indexOf(input.charAt(i++));
|
|
14289
|
+
chr1 = (enc1 << 2) | (enc2 >> 4);
|
|
14290
|
+
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
|
|
14291
|
+
chr3 = ((enc3 & 3) << 6) | enc4;
|
|
14292
|
+
output = output + String.fromCharCode(chr1);
|
|
14293
|
+
if (enc3 !== 64) {
|
|
14294
|
+
output = output + String.fromCharCode(chr2);
|
|
14295
|
+
}
|
|
14296
|
+
if (enc4 !== 64) {
|
|
14297
|
+
output = output + String.fromCharCode(chr3);
|
|
14298
|
+
}
|
|
14261
14299
|
}
|
|
14262
|
-
|
|
14300
|
+
output = Base64Util._utf8_decode(output);
|
|
14301
|
+
return output;
|
|
14263
14302
|
}
|
|
14264
|
-
|
|
14265
|
-
|
|
14266
|
-
|
|
14303
|
+
static _utf8_encode(str) {
|
|
14304
|
+
str = str.replace(/\r\n/g, '\n');
|
|
14305
|
+
let utftext = '';
|
|
14306
|
+
for (let n = 0; n < str.length; n++) {
|
|
14307
|
+
const c = str.charCodeAt(n);
|
|
14308
|
+
if (c < 128) {
|
|
14309
|
+
utftext += String.fromCharCode(c);
|
|
14310
|
+
}
|
|
14311
|
+
else if (c > 127 && c < 2048) {
|
|
14312
|
+
utftext += String.fromCharCode((c >> 6) | 192);
|
|
14313
|
+
utftext += String.fromCharCode((c & 63) | 128);
|
|
14314
|
+
}
|
|
14315
|
+
else {
|
|
14316
|
+
utftext += String.fromCharCode((c >> 12) | 224);
|
|
14317
|
+
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
|
|
14318
|
+
utftext += String.fromCharCode((c & 63) | 128);
|
|
14319
|
+
}
|
|
14267
14320
|
}
|
|
14268
|
-
|
|
14269
|
-
|
|
14270
|
-
|
|
14271
|
-
|
|
14272
|
-
|
|
14321
|
+
return utftext;
|
|
14322
|
+
}
|
|
14323
|
+
static _utf8_decode(utftext) {
|
|
14324
|
+
let string = '';
|
|
14325
|
+
let i = 0;
|
|
14326
|
+
let c = 0;
|
|
14327
|
+
let c2 = 0;
|
|
14328
|
+
let c3 = 0;
|
|
14329
|
+
while (i < utftext.length) {
|
|
14330
|
+
c = utftext.charCodeAt(i);
|
|
14331
|
+
if (c < 128) {
|
|
14332
|
+
string += String.fromCharCode(c);
|
|
14333
|
+
i++;
|
|
14334
|
+
}
|
|
14335
|
+
else if (c > 191 && c < 224) {
|
|
14336
|
+
c2 = utftext.charCodeAt(i + 1);
|
|
14337
|
+
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
|
|
14338
|
+
i += 2;
|
|
14339
|
+
}
|
|
14340
|
+
else {
|
|
14341
|
+
c2 = utftext.charCodeAt(i + 1);
|
|
14342
|
+
c3 = utftext.charCodeAt(i + 2);
|
|
14343
|
+
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
|
|
14344
|
+
i += 3;
|
|
14273
14345
|
}
|
|
14274
|
-
return result;
|
|
14275
14346
|
}
|
|
14276
|
-
return
|
|
14347
|
+
return string;
|
|
14277
14348
|
}
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
|
|
14349
|
+
isValid(value) {
|
|
14350
|
+
// eslint-disable-next-line optimize-regex/optimize-regex
|
|
14351
|
+
const base64Regex = /^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/gim;
|
|
14352
|
+
return base64Regex.test(value);
|
|
14353
|
+
}
|
|
14354
|
+
}
|
|
14355
|
+
const base64 = new Base64Util();
|
|
14356
|
+
|
|
14357
|
+
|
|
14358
|
+
;// CONCATENATED MODULE: ./src/utils/cookie.ts
|
|
14359
|
+
class Cookie {
|
|
14360
|
+
get(key) {
|
|
14361
|
+
const _key = key.replace(/([$()*+./?[\\\]^{|}])/g, '\\$1');
|
|
14362
|
+
const matches = document.cookie.match(new RegExp('(?:^|; )' + _key + '=([^;]*)'));
|
|
14363
|
+
if (matches && matches[1] && matches[1].length) {
|
|
14364
|
+
return matches[1];
|
|
14281
14365
|
}
|
|
14282
|
-
|
|
14283
|
-
|
|
14284
|
-
|
|
14366
|
+
return null;
|
|
14367
|
+
}
|
|
14368
|
+
set(key, value, expires) {
|
|
14369
|
+
let time = 0;
|
|
14370
|
+
switch (expires) {
|
|
14371
|
+
case 'day':
|
|
14372
|
+
time = 1000 * 60 * 60 * 24;
|
|
14373
|
+
break;
|
|
14374
|
+
case 'month':
|
|
14375
|
+
time = 1000 * 60 * 60 * 24 * 30;
|
|
14376
|
+
break;
|
|
14285
14377
|
}
|
|
14286
|
-
|
|
14378
|
+
let exp = '';
|
|
14379
|
+
if (time) {
|
|
14380
|
+
time = Date.now() + time;
|
|
14381
|
+
exp = new Date(time).toUTCString();
|
|
14382
|
+
}
|
|
14383
|
+
document.cookie = key + '=' + value + '; path=/; expires=' + exp;
|
|
14287
14384
|
}
|
|
14288
|
-
|
|
14289
|
-
|
|
14385
|
+
delete(key) {
|
|
14386
|
+
document.cookie = key + '=; path=/; expires=-1';
|
|
14290
14387
|
}
|
|
14291
|
-
};
|
|
14292
|
-
ld_text_viewervue_type_script_lang_js_external_decorate([
|
|
14293
|
-
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
14294
|
-
ld_text_viewervue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
14295
|
-
], CardTextViewer.prototype, "activeLinks", void 0);
|
|
14296
|
-
ld_text_viewervue_type_script_lang_js_external_decorate([
|
|
14297
|
-
(0,external_vue_property_decorator_.Prop)(),
|
|
14298
|
-
ld_text_viewervue_type_script_lang_js_external_metadata("design:type", String)
|
|
14299
|
-
], CardTextViewer.prototype, "text", void 0);
|
|
14300
|
-
ld_text_viewervue_type_script_lang_js_external_decorate([
|
|
14301
|
-
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
14302
|
-
ld_text_viewervue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
14303
|
-
], CardTextViewer.prototype, "alignLabelToRight", void 0);
|
|
14304
|
-
CardTextViewer = ld_text_viewervue_type_script_lang_js_external_decorate([
|
|
14305
|
-
(0,external_vue_class_component_.Options)({
|
|
14306
|
-
components: {
|
|
14307
|
-
'ld-label': ld_label
|
|
14308
|
-
},
|
|
14309
|
-
})
|
|
14310
|
-
], CardTextViewer);
|
|
14311
|
-
/* harmony default export */ const ld_text_viewervue_type_script_lang_js_external = (CardTextViewer);
|
|
14312
|
-
|
|
14313
|
-
;// CONCATENATED MODULE: ./src/ld-text-viewer/ld-text-viewer.ts?vue&type=script&lang=js&external
|
|
14314
|
-
|
|
14315
|
-
;// CONCATENATED MODULE: ./src/ld-text-viewer/ld-text-viewer.vue
|
|
14316
|
-
|
|
14317
|
-
|
|
14318
|
-
|
|
14319
|
-
|
|
14320
|
-
;
|
|
14321
|
-
|
|
14322
|
-
|
|
14323
|
-
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_26123e5c_scoped_true_render],['__scopeId',"data-v-26123e5c"]])
|
|
14324
|
-
|
|
14325
|
-
/* harmony default export */ const ld_text_viewer = (ld_text_viewer_exports_);
|
|
14326
|
-
;// CONCATENATED MODULE: ./src/ld-text-viewer/index.ts
|
|
14327
|
-
|
|
14328
|
-
function ld_text_viewer_reg(vue, options) {
|
|
14329
|
-
vue.component(options.aliases['ld-text-viewer'], ld_text_viewer);
|
|
14330
14388
|
}
|
|
14331
|
-
|
|
14332
|
-
|
|
14333
|
-
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-edit-masked-text/ld-edit-masked-text.vue?vue&type=template&id=33aa4ec6&scoped=true
|
|
14334
|
-
|
|
14335
|
-
|
|
14336
|
-
const ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_withScopeId = n => (_pushScopeId("data-v-33aa4ec6"),n=n(),_popScopeId(),n)
|
|
14337
|
-
const ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_hoisted_1 = { class: "ld-edit-masked-text" }
|
|
14338
|
-
const ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_hoisted_2 = {
|
|
14339
|
-
key: 0,
|
|
14340
|
-
class: "ld-edit-masked-text-validate"
|
|
14341
|
-
}
|
|
14389
|
+
const cookie = new Cookie();
|
|
14390
|
+
|
|
14342
14391
|
|
|
14343
|
-
|
|
14344
|
-
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14352
|
-
|
|
14353
|
-
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
|
|
14357
|
-
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
|
|
14364
|
-
|
|
14365
|
-
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
value: _ctx.internalValue,
|
|
14371
|
-
"onUpdate:value": _cache[1] || (_cache[1] = $event => ((_ctx.internalValue) = $event)),
|
|
14372
|
-
mask: _ctx.mask,
|
|
14373
|
-
scale: _ctx.scale,
|
|
14374
|
-
"thousands-separator": _ctx.thousandsSeparator,
|
|
14375
|
-
signed: _ctx.signed,
|
|
14376
|
-
mapToRadix: _ctx.mapToRadix,
|
|
14377
|
-
placeholder: _ctx.placeholder,
|
|
14378
|
-
"onAccept:masked": _ctx.onInput,
|
|
14379
|
-
onBlur: _ctx.onBlur,
|
|
14380
|
-
onClick: _ctx.onClick
|
|
14381
|
-
}, {
|
|
14382
|
-
"append-inner": (0,external_vue_.withCtx)(() => [
|
|
14383
|
-
(_ctx.clearIcon && _ctx.text)
|
|
14384
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_icon, {
|
|
14385
|
-
key: 0,
|
|
14386
|
-
color: "error",
|
|
14387
|
-
onClick: _cache[0] || (_cache[0] = $event => (_ctx.emitUpdateModelValue('')))
|
|
14388
|
-
}, {
|
|
14389
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
14390
|
-
(0,external_vue_.createTextVNode)("close")
|
|
14391
|
-
]),
|
|
14392
|
-
_: 1
|
|
14393
|
-
}))
|
|
14394
|
-
: (0,external_vue_.createCommentVNode)("", true)
|
|
14395
|
-
]),
|
|
14396
|
-
_: 1
|
|
14397
|
-
}, 8, ["value", "mask", "scale", "thousands-separator", "signed", "mapToRadix", "placeholder", "onAccept:masked", "onBlur", "onClick"]),
|
|
14398
|
-
(0,external_vue_.createTextVNode)(),
|
|
14399
|
-
(!_ctx.hideDetails)
|
|
14400
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_hoisted_2, [
|
|
14401
|
-
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
14402
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
14403
|
-
(0,external_vue_.createElementVNode)("span", {
|
|
14404
|
-
style: {"line-height":"12px","font-size":"var(--font-size--1)"},
|
|
14405
|
-
class: (0,external_vue_.normalizeClass)({ 'error--text': _ctx.warningHint })
|
|
14406
|
-
}, (0,external_vue_.toDisplayString)(_ctx.validationMessage || _ctx.inputHint), 3)
|
|
14407
|
-
]),
|
|
14408
|
-
_: 1
|
|
14409
|
-
})
|
|
14410
|
-
]))
|
|
14411
|
-
: (0,external_vue_.createCommentVNode)("", true)
|
|
14412
|
-
]),
|
|
14413
|
-
_: 1
|
|
14414
|
-
}, 8, ["class"])
|
|
14415
|
-
]),
|
|
14416
|
-
_: 1
|
|
14417
|
-
})
|
|
14418
|
-
]))
|
|
14419
|
-
}
|
|
14420
|
-
;// CONCATENATED MODULE: ./src/ld-edit-masked-text/ld-edit-masked-text.vue?vue&type=template&id=33aa4ec6&scoped=true
|
|
14421
|
-
|
|
14422
|
-
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-edit-masked-text/ld-edit-masked-text.ts?vue&type=script&lang=js&external
|
|
14423
|
-
var ld_edit_masked_textvue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14424
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14425
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14426
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14427
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14428
|
-
};
|
|
14429
|
-
var ld_edit_masked_textvue_type_script_lang_js_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
14430
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14431
|
-
};
|
|
14432
|
-
var ld_edit_masked_textvue_type_script_lang_js_external_a;
|
|
14433
|
-
|
|
14434
|
-
|
|
14435
|
-
|
|
14436
|
-
|
|
14437
|
-
|
|
14438
|
-
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
let EditMaskedTextComponent = class EditMaskedTextComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
|
|
14442
|
-
constructor() {
|
|
14443
|
-
super(...arguments);
|
|
14444
|
-
this.internalValue = '';
|
|
14392
|
+
;// CONCATENATED MODULE: ./src/utils/converting.ts
|
|
14393
|
+
function fileToArrayBuffer(src) {
|
|
14394
|
+
return new Promise(resolve => {
|
|
14395
|
+
const reader = new FileReader();
|
|
14396
|
+
reader.onloadend = function () {
|
|
14397
|
+
resolve(reader.result);
|
|
14398
|
+
};
|
|
14399
|
+
reader.readAsArrayBuffer(src);
|
|
14400
|
+
});
|
|
14401
|
+
}
|
|
14402
|
+
function fileToBase64(file) {
|
|
14403
|
+
return new Promise((resolve, reject) => {
|
|
14404
|
+
const reader = new FileReader();
|
|
14405
|
+
reader.readAsDataURL(file);
|
|
14406
|
+
reader.onload = () => {
|
|
14407
|
+
let fileStr = reader.result.toString();
|
|
14408
|
+
if (fileStr.includes(',')) {
|
|
14409
|
+
fileStr = fileStr.split(',')[1];
|
|
14410
|
+
}
|
|
14411
|
+
resolve(fileStr);
|
|
14412
|
+
};
|
|
14413
|
+
reader.onerror = error => reject(error);
|
|
14414
|
+
});
|
|
14415
|
+
}
|
|
14416
|
+
function base64ToUint8Array(base64) {
|
|
14417
|
+
if (!base64.trim()) {
|
|
14418
|
+
return null;
|
|
14445
14419
|
}
|
|
14446
|
-
|
|
14447
|
-
|
|
14420
|
+
const decrypted = window.atob(base64);
|
|
14421
|
+
let n = decrypted.length;
|
|
14422
|
+
const arr = new Uint8Array(n);
|
|
14423
|
+
while (n--) {
|
|
14424
|
+
arr[n] = decrypted.charCodeAt(n);
|
|
14448
14425
|
}
|
|
14449
|
-
|
|
14450
|
-
|
|
14451
|
-
|
|
14426
|
+
return arr;
|
|
14427
|
+
}
|
|
14428
|
+
function Uint8ArrayToHex(bytes) {
|
|
14429
|
+
const hex = [];
|
|
14430
|
+
/* eslint-disable-next-line @typescript-eslint/prefer-for-of */
|
|
14431
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
14432
|
+
const current = bytes[i] < 0 ? bytes[i] + 256 : bytes[i];
|
|
14433
|
+
/* eslint-disable-next-line no-bitwise */
|
|
14434
|
+
hex.push((current >>> 4).toString(16));
|
|
14435
|
+
/* eslint-disable-next-line no-bitwise */
|
|
14436
|
+
hex.push((current & 0xf).toString(16));
|
|
14452
14437
|
}
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14438
|
+
return hex.join('');
|
|
14439
|
+
}
|
|
14440
|
+
function hexToArrayBuffer(hex) {
|
|
14441
|
+
hex = hex.replace(/^0x/, '');
|
|
14442
|
+
if (hex.length % 2 != 0) {
|
|
14443
|
+
// console.log('WARNING: expecting an even number of characters in the hexString');
|
|
14458
14444
|
}
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
}
|
|
14445
|
+
const bad = hex.match(/[\sg-z]/i);
|
|
14446
|
+
if (bad) {
|
|
14447
|
+
// console.log('WARNING: found non-hex characters', bad);
|
|
14463
14448
|
}
|
|
14464
|
-
|
|
14465
|
-
|
|
14466
|
-
|
|
14467
|
-
|
|
14449
|
+
const pairs = hex.match(/[\da-f]{2}/gi);
|
|
14450
|
+
const result = [];
|
|
14451
|
+
for (const s of pairs) {
|
|
14452
|
+
result.push(parseInt(s, 16));
|
|
14468
14453
|
}
|
|
14469
|
-
|
|
14470
|
-
|
|
14454
|
+
return result;
|
|
14455
|
+
}
|
|
14456
|
+
function uint8ArrayToBase64(value) {
|
|
14457
|
+
const bin = value.reduce((acc, i) => (acc += String.fromCharCode.apply(null, [i])), '');
|
|
14458
|
+
return window.btoa(bin);
|
|
14459
|
+
}
|
|
14460
|
+
function arrayBufferToUint8Array(value) {
|
|
14461
|
+
return new Uint8Array(value);
|
|
14462
|
+
}
|
|
14463
|
+
|
|
14464
|
+
|
|
14465
|
+
;// CONCATENATED MODULE: ./src/utils/deepValueGetter.ts
|
|
14466
|
+
/**
|
|
14467
|
+
* Returns a deep object given a string. zoo['animal.type']
|
|
14468
|
+
* @param {object} obj
|
|
14469
|
+
* @param {string} path
|
|
14470
|
+
*/
|
|
14471
|
+
function deepValueGetter(obj, path) {
|
|
14472
|
+
if (obj === null) {
|
|
14473
|
+
return '';
|
|
14471
14474
|
}
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
this.emitUpdateModelValue(emitData);
|
|
14475
|
+
if (!obj || !path) {
|
|
14476
|
+
return obj;
|
|
14475
14477
|
}
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
if (
|
|
14489
|
-
|
|
14478
|
+
const value = obj[path];
|
|
14479
|
+
// eslint-disable-next-line no-undefined
|
|
14480
|
+
if (value !== undefined) {
|
|
14481
|
+
return value;
|
|
14482
|
+
}
|
|
14483
|
+
let current = obj;
|
|
14484
|
+
const split = path.split('.');
|
|
14485
|
+
if (split.length) {
|
|
14486
|
+
for (const key of split) {
|
|
14487
|
+
current = current[key];
|
|
14488
|
+
// if found undefined, return empty string
|
|
14489
|
+
// eslint-disable-next-line no-undefined
|
|
14490
|
+
if (current === undefined || current === null) {
|
|
14491
|
+
return '';
|
|
14490
14492
|
}
|
|
14491
|
-
}
|
|
14492
|
-
return !this.validationMessage;
|
|
14493
|
+
}
|
|
14493
14494
|
}
|
|
14494
|
-
|
|
14495
|
-
|
|
14495
|
+
return current;
|
|
14496
|
+
}
|
|
14497
|
+
|
|
14498
|
+
;// CONCATENATED MODULE: ./src/utils/delay.ts
|
|
14499
|
+
async function delay(timeout) {
|
|
14500
|
+
return new Promise(resolve => setTimeout(() => resolve(), timeout));
|
|
14501
|
+
}
|
|
14502
|
+
|
|
14503
|
+
;// CONCATENATED MODULE: ./src/utils/isObjectEmpty.ts
|
|
14504
|
+
function isObjectEmpty(obj) {
|
|
14505
|
+
for (const _i in obj) {
|
|
14506
|
+
return false;
|
|
14496
14507
|
}
|
|
14497
|
-
|
|
14498
|
-
|
|
14508
|
+
return true;
|
|
14509
|
+
}
|
|
14510
|
+
|
|
14511
|
+
;// CONCATENATED MODULE: ./src/utils/pluralizeNoun.ts
|
|
14512
|
+
function pluralizeNoun(num, one, two, five, printNum = true) {
|
|
14513
|
+
if (!num) {
|
|
14514
|
+
return '';
|
|
14499
14515
|
}
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
|
|
14503
|
-
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
|
|
14516
|
+
let n;
|
|
14517
|
+
if (typeof num === 'string') {
|
|
14518
|
+
n = Number(num.match(/\d+\.?\d*/g));
|
|
14519
|
+
}
|
|
14520
|
+
else {
|
|
14521
|
+
n = Math.abs(num);
|
|
14522
|
+
}
|
|
14523
|
+
n %= 100;
|
|
14524
|
+
if (n >= 5 && n <= 20) {
|
|
14525
|
+
return printNum ? `${num} ${five}` : `${five}`;
|
|
14526
|
+
}
|
|
14527
|
+
n %= 10;
|
|
14528
|
+
if (n === 1) {
|
|
14529
|
+
return printNum ? `${num} ${one}` : `${one}`;
|
|
14530
|
+
}
|
|
14531
|
+
if (n >= 2 && n <= 4) {
|
|
14532
|
+
return printNum ? `${num} ${two}` : `${two}`;
|
|
14533
|
+
}
|
|
14534
|
+
return printNum ? `${num} ${five}` : `${five}`;
|
|
14535
|
+
}
|
|
14536
|
+
|
|
14537
|
+
;// CONCATENATED MODULE: ./src/utils/strings.ts
|
|
14538
|
+
class Strings {
|
|
14539
|
+
camelCase(str) {
|
|
14540
|
+
// Replace special characters with a space
|
|
14541
|
+
str = str.replace(/[^\d A-Za-z]/g, ' ');
|
|
14542
|
+
// put a space before an uppercase letter
|
|
14543
|
+
str = str.replace(/([a-z](?=[A-Z]))/g, '$1 ');
|
|
14544
|
+
// Lower case first character and some other stuff
|
|
14545
|
+
str = str
|
|
14546
|
+
.replace(/([^\d A-Za-z])|^\d+/g, '')
|
|
14547
|
+
.trim()
|
|
14548
|
+
.toLowerCase();
|
|
14549
|
+
// uppercase characters preceded by a space or number
|
|
14550
|
+
str = str.replace(/([\d ]+)([A-Za-z])/g, (a, b, c) => b.trim() + c.toUpperCase());
|
|
14551
|
+
return str;
|
|
14552
|
+
}
|
|
14553
|
+
capitalize(str) {
|
|
14554
|
+
if (!str) {
|
|
14555
|
+
return str;
|
|
14556
|
+
}
|
|
14557
|
+
const first = str[0];
|
|
14558
|
+
const other = str.substring(1);
|
|
14559
|
+
return `${first.toUpperCase()}${other}`;
|
|
14560
|
+
}
|
|
14561
|
+
}
|
|
14562
|
+
const strings = new Strings();
|
|
14563
|
+
|
|
14564
|
+
|
|
14565
|
+
;// CONCATENATED MODULE: ./src/utils/urlRegexp.ts
|
|
14566
|
+
const urlRegexp =
|
|
14567
|
+
// eslint-disable-next-line optimize-regex/optimize-regex
|
|
14568
|
+
/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\\[\]{};:'".,<>?«»“”‘’]))/i;
|
|
14569
|
+
|
|
14570
|
+
;// CONCATENATED MODULE: ./src/utils/index.ts
|
|
14571
|
+
|
|
14572
|
+
|
|
14573
|
+
|
|
14574
|
+
|
|
14575
|
+
|
|
14576
|
+
|
|
14577
|
+
|
|
14578
|
+
|
|
14579
|
+
|
|
14580
|
+
|
|
14581
|
+
|
|
14582
|
+
|
|
14583
|
+
|
|
14584
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-text-viewer/ld-text-viewer.ts?vue&type=script&lang=js&external
|
|
14585
|
+
var ld_text_viewervue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14586
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14587
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14588
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14589
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14590
|
+
};
|
|
14591
|
+
var ld_text_viewervue_type_script_lang_js_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
14592
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14593
|
+
};
|
|
14594
|
+
|
|
14595
|
+
|
|
14596
|
+
|
|
14597
|
+
|
|
14598
|
+
|
|
14599
|
+
|
|
14600
|
+
/**
|
|
14601
|
+
* @displayName ld-text-viewer
|
|
14602
|
+
*/
|
|
14603
|
+
let CardTextViewer = class CardTextViewer extends (0,external_vue_class_component_.mixins)(GridMixin) {
|
|
14604
|
+
hasSlotContent(slot, slotProps = {}) {
|
|
14605
|
+
if (!slot) {
|
|
14606
|
+
return false;
|
|
14607
|
+
}
|
|
14608
|
+
return slot(slotProps).some((vnode) => {
|
|
14609
|
+
if (vnode.type === external_vue_.Comment) {
|
|
14610
|
+
return false;
|
|
14611
|
+
}
|
|
14612
|
+
if (Array.isArray(vnode.children) && !vnode.children.length) {
|
|
14613
|
+
return false;
|
|
14614
|
+
}
|
|
14615
|
+
return vnode.type !== external_vue_.Text || (typeof vnode.children === 'string' && vnode.children.trim() !== '');
|
|
14616
|
+
});
|
|
14617
|
+
}
|
|
14618
|
+
get hasSlot() {
|
|
14619
|
+
return this.hasSlotContent(this.$slots.default);
|
|
14620
|
+
}
|
|
14621
|
+
get isTextSlotOnly() {
|
|
14622
|
+
if (this.hasSlot) {
|
|
14623
|
+
return this.$slots.default().every((vnode) => typeof vnode.children === 'string');
|
|
14624
|
+
}
|
|
14625
|
+
return false;
|
|
14626
|
+
}
|
|
14627
|
+
get src() {
|
|
14628
|
+
if (this.text) {
|
|
14629
|
+
return String(this.text).replace(/\n/g, '<br>');
|
|
14630
|
+
}
|
|
14631
|
+
if (this.hasSlot && this.isTextSlotOnly) {
|
|
14632
|
+
const slots = this.$slots.default();
|
|
14633
|
+
let result = '';
|
|
14634
|
+
for (const s of slots) {
|
|
14635
|
+
result += s.children.trim();
|
|
14636
|
+
}
|
|
14637
|
+
return result;
|
|
14638
|
+
}
|
|
14639
|
+
return '';
|
|
14640
|
+
}
|
|
14641
|
+
get textWithHyperlinks() {
|
|
14642
|
+
if (!this.src) {
|
|
14643
|
+
return;
|
|
14644
|
+
}
|
|
14645
|
+
if (this.activeLinks) {
|
|
14646
|
+
const globalUrlRegExp = new RegExp(urlRegexp, 'ig');
|
|
14647
|
+
return this.src.replace(globalUrlRegExp, '<a href="$1" target="_blank">$1</a>');
|
|
14648
|
+
}
|
|
14649
|
+
return this.src;
|
|
14650
|
+
}
|
|
14651
|
+
get showPlaceholder() {
|
|
14652
|
+
return !this.src && !this.hasSlot;
|
|
14653
|
+
}
|
|
14654
|
+
};
|
|
14655
|
+
ld_text_viewervue_type_script_lang_js_external_decorate([
|
|
14656
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
14657
|
+
ld_text_viewervue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
14658
|
+
], CardTextViewer.prototype, "activeLinks", void 0);
|
|
14659
|
+
ld_text_viewervue_type_script_lang_js_external_decorate([
|
|
14530
14660
|
(0,external_vue_property_decorator_.Prop)(),
|
|
14531
|
-
|
|
14532
|
-
],
|
|
14533
|
-
|
|
14534
|
-
(0,external_vue_property_decorator_.
|
|
14535
|
-
|
|
14536
|
-
],
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
14540
|
-
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:paramtypes", [String]),
|
|
14541
|
-
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
14542
|
-
], EditMaskedTextComponent.prototype, "emitUpdateModelValue", null);
|
|
14543
|
-
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14544
|
-
(0,external_vue_property_decorator_.Watch)('modelValue'),
|
|
14545
|
-
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
14546
|
-
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
14547
|
-
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
14548
|
-
], EditMaskedTextComponent.prototype, "onTextChanged", null);
|
|
14549
|
-
EditMaskedTextComponent = ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14550
|
-
(0,external_vue_property_decorator_.Options)({
|
|
14661
|
+
ld_text_viewervue_type_script_lang_js_external_metadata("design:type", Object)
|
|
14662
|
+
], CardTextViewer.prototype, "text", void 0);
|
|
14663
|
+
ld_text_viewervue_type_script_lang_js_external_decorate([
|
|
14664
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
14665
|
+
ld_text_viewervue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
14666
|
+
], CardTextViewer.prototype, "alignLabelToRight", void 0);
|
|
14667
|
+
CardTextViewer = ld_text_viewervue_type_script_lang_js_external_decorate([
|
|
14668
|
+
(0,external_vue_class_component_.Options)({
|
|
14551
14669
|
components: {
|
|
14552
|
-
'ld-label': ld_label
|
|
14553
|
-
'imask-input': imask_js_.IMaskComponent,
|
|
14670
|
+
'ld-label': ld_label
|
|
14554
14671
|
},
|
|
14555
14672
|
})
|
|
14556
|
-
],
|
|
14557
|
-
/* harmony default export */ const
|
|
14673
|
+
], CardTextViewer);
|
|
14674
|
+
/* harmony default export */ const ld_text_viewervue_type_script_lang_js_external = (CardTextViewer);
|
|
14558
14675
|
|
|
14559
|
-
;// CONCATENATED MODULE: ./src/ld-
|
|
14676
|
+
;// CONCATENATED MODULE: ./src/ld-text-viewer/ld-text-viewer.ts?vue&type=script&lang=js&external
|
|
14560
14677
|
|
|
14561
|
-
;// CONCATENATED MODULE: ./src/ld-
|
|
14678
|
+
;// CONCATENATED MODULE: ./src/ld-text-viewer/ld-text-viewer.vue
|
|
14562
14679
|
|
|
14563
14680
|
|
|
14564
14681
|
|
|
@@ -14566,38 +14683,34 @@ EditMaskedTextComponent = ld_edit_masked_textvue_type_script_lang_js_external_de
|
|
|
14566
14683
|
;
|
|
14567
14684
|
|
|
14568
14685
|
|
|
14569
|
-
const
|
|
14686
|
+
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_26123e5c_scoped_true_render],['__scopeId',"data-v-26123e5c"]])
|
|
14570
14687
|
|
|
14571
|
-
/* harmony default export */ const
|
|
14572
|
-
;// CONCATENATED MODULE: ./src/ld-
|
|
14688
|
+
/* harmony default export */ const ld_text_viewer = (ld_text_viewer_exports_);
|
|
14689
|
+
;// CONCATENATED MODULE: ./src/ld-text-viewer/index.ts
|
|
14573
14690
|
|
|
14574
|
-
function
|
|
14575
|
-
vue.component(options.aliases['ld-
|
|
14691
|
+
function ld_text_viewer_reg(vue, options) {
|
|
14692
|
+
vue.component(options.aliases['ld-text-viewer'], ld_text_viewer);
|
|
14576
14693
|
}
|
|
14577
|
-
/* harmony default export */ const
|
|
14694
|
+
/* harmony default export */ const src_ld_text_viewer = (ld_text_viewer_reg);
|
|
14578
14695
|
|
|
14579
|
-
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-text
|
|
14696
|
+
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-edit-masked-text/ld-edit-masked-text.vue?vue&type=template&id=33aa4ec6&scoped=true
|
|
14580
14697
|
|
|
14581
14698
|
|
|
14582
|
-
const
|
|
14583
|
-
const
|
|
14584
|
-
const
|
|
14585
|
-
|
|
14586
|
-
|
|
14587
|
-
class: "content editorbox",
|
|
14588
|
-
style: {"visibility":"hidden"},
|
|
14589
|
-
id: "editorbox"
|
|
14699
|
+
const ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_withScopeId = n => (_pushScopeId("data-v-33aa4ec6"),n=n(),_popScopeId(),n)
|
|
14700
|
+
const ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_hoisted_1 = { class: "ld-edit-masked-text" }
|
|
14701
|
+
const ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_hoisted_2 = {
|
|
14702
|
+
key: 0,
|
|
14703
|
+
class: "ld-edit-masked-text-validate"
|
|
14590
14704
|
}
|
|
14591
14705
|
|
|
14592
|
-
function
|
|
14706
|
+
function ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14593
14707
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label")
|
|
14594
|
-
const
|
|
14595
|
-
const
|
|
14596
|
-
const _component_md_editor = (0,external_vue_.resolveComponent)("md-editor")
|
|
14708
|
+
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon")
|
|
14709
|
+
const _component_imask_input = (0,external_vue_.resolveComponent)("imask-input")
|
|
14597
14710
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col")
|
|
14598
14711
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row")
|
|
14599
14712
|
|
|
14600
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
14713
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_hoisted_1, [
|
|
14601
14714
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
14602
14715
|
default: (0,external_vue_.withCtx)(() => [
|
|
14603
14716
|
(_ctx.label)
|
|
@@ -14611,205 +14724,75 @@ function ld_text_markupvue_type_template_id_12e81c9c_scoped_true_render(_ctx, _c
|
|
|
14611
14724
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
14612
14725
|
(0,external_vue_.createTextVNode)(),
|
|
14613
14726
|
(0,external_vue_.createVNode)(_component_v_col, {
|
|
14614
|
-
class: (0,external_vue_.normalizeClass)([
|
|
14727
|
+
class: (0,external_vue_.normalizeClass)(["d-flex flex-column", _ctx.inputSizeClasses])
|
|
14615
14728
|
}, {
|
|
14616
14729
|
default: (0,external_vue_.withCtx)(() => [
|
|
14617
|
-
(0,external_vue_.
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
(0,external_vue_.
|
|
14633
|
-
|
|
14634
|
-
|
|
14635
|
-
|
|
14636
|
-
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
14640
|
-
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
14644
|
-
|
|
14645
|
-
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
key: 0,
|
|
14649
|
-
template: _ctx.template,
|
|
14650
|
-
id: "contentbox"
|
|
14651
|
-
}, null, 8, ["template"]))
|
|
14652
|
-
: (0,external_vue_.createCommentVNode)("", true),
|
|
14730
|
+
(0,external_vue_.createVNode)(_component_imask_input, {
|
|
14731
|
+
ref: "imask",
|
|
14732
|
+
radix: ",",
|
|
14733
|
+
value: _ctx.internalValue,
|
|
14734
|
+
"onUpdate:value": _cache[1] || (_cache[1] = $event => ((_ctx.internalValue) = $event)),
|
|
14735
|
+
mask: _ctx.mask,
|
|
14736
|
+
scale: _ctx.scale,
|
|
14737
|
+
"thousands-separator": _ctx.thousandsSeparator,
|
|
14738
|
+
signed: _ctx.signed,
|
|
14739
|
+
mapToRadix: _ctx.mapToRadix,
|
|
14740
|
+
placeholder: _ctx.placeholder,
|
|
14741
|
+
"onAccept:masked": _ctx.onInput,
|
|
14742
|
+
onBlur: _ctx.onBlur,
|
|
14743
|
+
onClick: _ctx.onClick
|
|
14744
|
+
}, {
|
|
14745
|
+
"append-inner": (0,external_vue_.withCtx)(() => [
|
|
14746
|
+
(_ctx.clearIcon && _ctx.text)
|
|
14747
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_icon, {
|
|
14748
|
+
key: 0,
|
|
14749
|
+
color: "error",
|
|
14750
|
+
onClick: _cache[0] || (_cache[0] = $event => (_ctx.emitUpdateModelValue('')))
|
|
14751
|
+
}, {
|
|
14752
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
14753
|
+
(0,external_vue_.createTextVNode)("close")
|
|
14754
|
+
]),
|
|
14755
|
+
_: 1
|
|
14756
|
+
}))
|
|
14757
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
14758
|
+
]),
|
|
14759
|
+
_: 1
|
|
14760
|
+
}, 8, ["value", "mask", "scale", "thousands-separator", "signed", "mapToRadix", "placeholder", "onAccept:masked", "onBlur", "onClick"]),
|
|
14653
14761
|
(0,external_vue_.createTextVNode)(),
|
|
14654
|
-
(
|
|
14655
|
-
(0,external_vue_.
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
|
|
14667
|
-
])
|
|
14762
|
+
(!_ctx.hideDetails)
|
|
14763
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_hoisted_2, [
|
|
14764
|
+
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
14765
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
14766
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
14767
|
+
style: {"line-height":"12px","font-size":"var(--font-size--1)"},
|
|
14768
|
+
class: (0,external_vue_.normalizeClass)({ 'error--text': _ctx.warningHint })
|
|
14769
|
+
}, (0,external_vue_.toDisplayString)(_ctx.validationMessage || _ctx.inputHint), 3)
|
|
14770
|
+
]),
|
|
14771
|
+
_: 1
|
|
14772
|
+
})
|
|
14773
|
+
]))
|
|
14774
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
14668
14775
|
]),
|
|
14669
14776
|
_: 1
|
|
14670
14777
|
}, 8, ["class"])
|
|
14671
14778
|
]),
|
|
14672
14779
|
_: 1
|
|
14673
|
-
})
|
|
14674
|
-
(0,external_vue_.createTextVNode)(),
|
|
14675
|
-
(!_ctx.hideDetails)
|
|
14676
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_row, {
|
|
14677
|
-
key: 0,
|
|
14678
|
-
"no-gutters": "",
|
|
14679
|
-
class: "ld-text-markup-validate"
|
|
14680
|
-
}, {
|
|
14681
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
14682
|
-
(0,external_vue_.createVNode)(_component_v_col, {
|
|
14683
|
-
class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses])
|
|
14684
|
-
}, null, 8, ["class"]),
|
|
14685
|
-
(0,external_vue_.createTextVNode)(),
|
|
14686
|
-
(0,external_vue_.createVNode)(_component_v_col, {
|
|
14687
|
-
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
14688
|
-
}, {
|
|
14689
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
14690
|
-
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
14691
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
14692
|
-
(_ctx.showError)
|
|
14693
|
-
? (0,external_vue_.withDirectives)(((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", {
|
|
14694
|
-
key: 0,
|
|
14695
|
-
class: "error--text",
|
|
14696
|
-
style: {"font-size":"var(--font-size--1)"}
|
|
14697
|
-
}, (0,external_vue_.toDisplayString)(_ctx.validationMessage), 513)), [
|
|
14698
|
-
[external_vue_.vShow, _ctx.showError]
|
|
14699
|
-
])
|
|
14700
|
-
: (0,external_vue_.createCommentVNode)("", true)
|
|
14701
|
-
]),
|
|
14702
|
-
_: 1
|
|
14703
|
-
})
|
|
14704
|
-
]),
|
|
14705
|
-
_: 1
|
|
14706
|
-
}, 8, ["class"])
|
|
14707
|
-
]),
|
|
14708
|
-
_: 1
|
|
14709
|
-
}))
|
|
14710
|
-
: (0,external_vue_.createCommentVNode)("", true)
|
|
14780
|
+
})
|
|
14711
14781
|
]))
|
|
14712
14782
|
}
|
|
14713
|
-
;// CONCATENATED MODULE: ./src/ld-text
|
|
14714
|
-
|
|
14715
|
-
;// CONCATENATED MODULE: ./src/ld-text-markup/translation.ts
|
|
14716
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14717
|
-
const ru_RU = {
|
|
14718
|
-
toolbarTips: {
|
|
14719
|
-
bold: 'Полужирный',
|
|
14720
|
-
underline: 'Подчеркнутый',
|
|
14721
|
-
italic: 'Курсив',
|
|
14722
|
-
strikeThrough: 'strikeThrough',
|
|
14723
|
-
title: 'Заголовок',
|
|
14724
|
-
sub: 'subscript',
|
|
14725
|
-
sup: 'superscript',
|
|
14726
|
-
quote: 'quote',
|
|
14727
|
-
unorderedList: 'Список',
|
|
14728
|
-
orderedList: 'Нумерованный список',
|
|
14729
|
-
task: 'task list',
|
|
14730
|
-
codeRow: 'Программый код',
|
|
14731
|
-
code: 'block-level code',
|
|
14732
|
-
link: 'Создать ссылку',
|
|
14733
|
-
image: 'image',
|
|
14734
|
-
table: 'Добавить таблицу',
|
|
14735
|
-
mermaid: 'mermaid',
|
|
14736
|
-
katex: 'formula',
|
|
14737
|
-
revoke: 'revoke',
|
|
14738
|
-
next: 'undo revoke',
|
|
14739
|
-
save: 'save',
|
|
14740
|
-
prettier: 'prettier',
|
|
14741
|
-
pageFullscreen: 'fullscreen in page',
|
|
14742
|
-
fullscreen: 'fullscreen',
|
|
14743
|
-
preview: 'Превью',
|
|
14744
|
-
htmlPreview: 'html preview',
|
|
14745
|
-
catalog: 'catalog',
|
|
14746
|
-
github: 'source code',
|
|
14747
|
-
},
|
|
14748
|
-
titleItem: {
|
|
14749
|
-
h1: 'Заголовок 1 уровня',
|
|
14750
|
-
h2: 'Заголовок 2 уровня',
|
|
14751
|
-
h3: 'Заголовок 3 уровня',
|
|
14752
|
-
h4: 'Заголовок 4 уровня',
|
|
14753
|
-
h5: 'Заголовок 5 уровня',
|
|
14754
|
-
h6: 'Заголовок 6 уровня',
|
|
14755
|
-
},
|
|
14756
|
-
imgTitleItem: {
|
|
14757
|
-
link: 'Add Img Link',
|
|
14758
|
-
upload: 'Upload Img',
|
|
14759
|
-
clip2upload: 'Clip Upload',
|
|
14760
|
-
},
|
|
14761
|
-
linkModalTips: {
|
|
14762
|
-
descLabel: 'Описание',
|
|
14763
|
-
descLabelPlaceHolder: 'Текст для отображения',
|
|
14764
|
-
urlLabel: 'Ссылка',
|
|
14765
|
-
urlLabelPlaceHolder: 'Адрес ссылки',
|
|
14766
|
-
buttonOK: 'Сохранить',
|
|
14767
|
-
},
|
|
14768
|
-
clipModalTips: {
|
|
14769
|
-
title: 'Crop Image',
|
|
14770
|
-
buttonUpload: 'Upload',
|
|
14771
|
-
},
|
|
14772
|
-
copyCode: {
|
|
14773
|
-
text: 'Copy',
|
|
14774
|
-
successTips: 'Copied!',
|
|
14775
|
-
failTips: 'Copy failed!',
|
|
14776
|
-
},
|
|
14777
|
-
mermaid: {
|
|
14778
|
-
flow: 'flow',
|
|
14779
|
-
sequence: 'sequence',
|
|
14780
|
-
gantt: 'gantt',
|
|
14781
|
-
class: 'class',
|
|
14782
|
-
state: 'state',
|
|
14783
|
-
pie: 'pie',
|
|
14784
|
-
relationship: 'relationship',
|
|
14785
|
-
journey: 'journey',
|
|
14786
|
-
},
|
|
14787
|
-
katex: {
|
|
14788
|
-
inline: 'inline',
|
|
14789
|
-
block: 'block',
|
|
14790
|
-
},
|
|
14791
|
-
footer: {
|
|
14792
|
-
markdownTotal: 'Всего слов',
|
|
14793
|
-
scrollAuto: 'Автопрокрутка',
|
|
14794
|
-
},
|
|
14795
|
-
};
|
|
14796
|
-
/* harmony default export */ const translation = (ru_RU);
|
|
14783
|
+
;// CONCATENATED MODULE: ./src/ld-edit-masked-text/ld-edit-masked-text.vue?vue&type=template&id=33aa4ec6&scoped=true
|
|
14797
14784
|
|
|
14798
|
-
|
|
14799
|
-
var
|
|
14800
|
-
var runtime_template_js_default = /*#__PURE__*/__webpack_require__.n(runtime_template_js_);
|
|
14801
|
-
// EXTERNAL MODULE: external "md-editor-v3"
|
|
14802
|
-
var external_md_editor_v3_ = __webpack_require__(6443);
|
|
14803
|
-
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-text-markup/ld-text-markup.ts?vue&type=script&lang=js&external
|
|
14804
|
-
var ld_text_markupvue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14785
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-edit-masked-text/ld-edit-masked-text.ts?vue&type=script&lang=js&external
|
|
14786
|
+
var ld_edit_masked_textvue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14805
14787
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14806
14788
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14807
14789
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14808
14790
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14809
14791
|
};
|
|
14810
|
-
var
|
|
14792
|
+
var ld_edit_masked_textvue_type_script_lang_js_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
14811
14793
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14812
14794
|
};
|
|
14795
|
+
var ld_edit_masked_textvue_type_script_lang_js_external_a;
|
|
14813
14796
|
|
|
14814
14797
|
|
|
14815
14798
|
|
|
@@ -14818,74 +14801,22 @@ var ld_text_markupvue_type_script_lang_js_external_metadata = (undefined && unde
|
|
|
14818
14801
|
|
|
14819
14802
|
|
|
14820
14803
|
|
|
14821
|
-
|
|
14822
|
-
|
|
14823
|
-
/**
|
|
14824
|
-
* @displayName ld-text-markup
|
|
14825
|
-
*/
|
|
14826
|
-
let TextMarkupComponent = class TextMarkupComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
|
|
14804
|
+
let EditMaskedTextComponent = class EditMaskedTextComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
|
|
14827
14805
|
constructor() {
|
|
14828
14806
|
super(...arguments);
|
|
14829
|
-
|
|
14830
|
-
* html
|
|
14831
|
-
*/
|
|
14832
|
-
this.template = '';
|
|
14833
|
-
/**
|
|
14834
|
-
* markdown
|
|
14835
|
-
*/
|
|
14836
|
-
this.value = '';
|
|
14837
|
-
this.isPreviewActive = false;
|
|
14838
|
-
this.md = null;
|
|
14839
|
-
this.previewWatchDisabled = false;
|
|
14807
|
+
this.internalValue = '';
|
|
14840
14808
|
}
|
|
14841
|
-
|
|
14842
|
-
return
|
|
14809
|
+
emitUpdateModelValue(value) {
|
|
14810
|
+
return value;
|
|
14843
14811
|
}
|
|
14844
|
-
|
|
14845
|
-
|
|
14812
|
+
onTextChanged() {
|
|
14813
|
+
this.internalValue = this.modelValue ? String(this.modelValue) : '';
|
|
14814
|
+
this.validate();
|
|
14846
14815
|
}
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
if (this.value) {
|
|
14852
|
-
this.validationMessage = '';
|
|
14853
|
-
}
|
|
14854
|
-
}
|
|
14855
|
-
onReadonlyChanged() {
|
|
14856
|
-
if (this.readonly && !this.isPreviewActive) {
|
|
14857
|
-
this.togglePreview();
|
|
14858
|
-
}
|
|
14859
|
-
}
|
|
14860
|
-
async onPreviewChanged() {
|
|
14861
|
-
if (this.previewWatchDisabled) {
|
|
14862
|
-
return;
|
|
14863
|
-
}
|
|
14864
|
-
this.previewWatchDisabled = true;
|
|
14865
|
-
await this.toggleClick();
|
|
14866
|
-
await this.$nextTick();
|
|
14867
|
-
this.previewWatchDisabled = false;
|
|
14868
|
-
}
|
|
14869
|
-
created() {
|
|
14870
|
-
(0,external_md_editor_v3_.config)({
|
|
14871
|
-
editorConfig: {
|
|
14872
|
-
languageUserDefined: {
|
|
14873
|
-
/* eslint-disable-next-line @typescript-eslint/naming-convention */
|
|
14874
|
-
ru_RU: translation,
|
|
14875
|
-
},
|
|
14876
|
-
},
|
|
14877
|
-
});
|
|
14878
|
-
if (this.form) {
|
|
14879
|
-
this.form.register(this, null);
|
|
14880
|
-
}
|
|
14881
|
-
}
|
|
14882
|
-
async mounted() {
|
|
14883
|
-
const markdownIt = (await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 8461, 23))).default;
|
|
14884
|
-
const md = new markdownIt();
|
|
14885
|
-
this.md = md;
|
|
14886
|
-
this.buildEditor();
|
|
14887
|
-
if (this.form) {
|
|
14888
|
-
this.form?.register(this, null);
|
|
14816
|
+
created() {
|
|
14817
|
+
this.internalValue = this.modelValue ? String(this.modelValue) : '';
|
|
14818
|
+
if (this.form) {
|
|
14819
|
+
this.form.register(this, null);
|
|
14889
14820
|
}
|
|
14890
14821
|
}
|
|
14891
14822
|
unmounted() {
|
|
@@ -14893,136 +14824,104 @@ let TextMarkupComponent = class TextMarkupComponent extends (0,external_vue_clas
|
|
|
14893
14824
|
this.form.unregister(this, null);
|
|
14894
14825
|
}
|
|
14895
14826
|
}
|
|
14896
|
-
|
|
14897
|
-
this.
|
|
14898
|
-
|
|
14899
|
-
}
|
|
14900
|
-
async togglePreview() {
|
|
14901
|
-
this.isPreviewActive = !this.isPreviewActive;
|
|
14902
|
-
if (this.isPreviewActive) {
|
|
14903
|
-
this.previewRender(this.value);
|
|
14904
|
-
await this.$nextTick();
|
|
14827
|
+
onBlur() {
|
|
14828
|
+
if (this.validateOnBlur) {
|
|
14829
|
+
this.validate();
|
|
14905
14830
|
}
|
|
14906
|
-
this.emitPreview();
|
|
14907
14831
|
}
|
|
14908
|
-
|
|
14909
|
-
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14832
|
+
onClick() {
|
|
14833
|
+
this.validationMessage = '';
|
|
14834
|
+
}
|
|
14835
|
+
onInput(e) {
|
|
14836
|
+
const emitData = e?.length ? e?.replace(/\s|(-)/g, '') : null;
|
|
14837
|
+
this.emitUpdateModelValue(emitData);
|
|
14913
14838
|
}
|
|
14914
14839
|
validate() {
|
|
14915
14840
|
let funcResult = null;
|
|
14916
14841
|
this.validationMessage = '';
|
|
14842
|
+
if (typeof this.mask === 'string' &&
|
|
14843
|
+
/[ ()-]/.test(this.internalValue) &&
|
|
14844
|
+
this.internalValue.length > 0 &&
|
|
14845
|
+
this.mask.replace(/[ ()-]/g, '').length > this.internalValue.length) {
|
|
14846
|
+
this.validationMessage = 'Недостаточное количество символов';
|
|
14847
|
+
return !this.validationMessage;
|
|
14848
|
+
}
|
|
14917
14849
|
this.validRules.forEach(func => {
|
|
14918
|
-
funcResult = func(this.
|
|
14850
|
+
funcResult = func(this.modelValue);
|
|
14919
14851
|
if (funcResult !== true) {
|
|
14920
14852
|
this.validationMessage = funcResult;
|
|
14921
14853
|
}
|
|
14922
14854
|
});
|
|
14923
14855
|
return !this.validationMessage;
|
|
14924
14856
|
}
|
|
14925
|
-
buildEditor() {
|
|
14926
|
-
this.value = this.modelValue;
|
|
14927
|
-
if (this.preview || this.readonly) {
|
|
14928
|
-
this.togglePreview();
|
|
14929
|
-
}
|
|
14930
|
-
const editorWrapper = document.getElementById('editorbox');
|
|
14931
|
-
if (editorWrapper) {
|
|
14932
|
-
editorWrapper.style.visibility = 'visible';
|
|
14933
|
-
}
|
|
14934
|
-
}
|
|
14935
|
-
previewRender(plainText) {
|
|
14936
|
-
plainText = plainText.replace(/\n\n/g, '\n <br> \n');
|
|
14937
|
-
try {
|
|
14938
|
-
let html = this.md.render(plainText);
|
|
14939
|
-
html = html.replace(/<br>/g, '<br>');
|
|
14940
|
-
this.template = '<div class="content contentbox"><div>' + html + '</div></div>';
|
|
14941
|
-
}
|
|
14942
|
-
catch (e) {
|
|
14943
|
-
/* eslint-disable no-console */
|
|
14944
|
-
console.error(e);
|
|
14945
|
-
}
|
|
14946
|
-
}
|
|
14947
14857
|
get showError() {
|
|
14948
14858
|
return Boolean(this.validationMessage);
|
|
14949
14859
|
}
|
|
14950
|
-
get
|
|
14951
|
-
return
|
|
14952
|
-
'bold',
|
|
14953
|
-
'underline',
|
|
14954
|
-
'italic',
|
|
14955
|
-
'-',
|
|
14956
|
-
'title',
|
|
14957
|
-
'unorderedList',
|
|
14958
|
-
'orderedList',
|
|
14959
|
-
'-',
|
|
14960
|
-
'codeRow',
|
|
14961
|
-
'code',
|
|
14962
|
-
'link',
|
|
14963
|
-
];
|
|
14860
|
+
get warningHint() {
|
|
14861
|
+
return Boolean(this.validationMessage);
|
|
14964
14862
|
}
|
|
14965
14863
|
};
|
|
14966
|
-
|
|
14864
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14865
|
+
(0,external_vue_property_decorator_.Prop)({ default: '' }),
|
|
14866
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Object)
|
|
14867
|
+
], EditMaskedTextComponent.prototype, "modelValue", void 0);
|
|
14868
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14967
14869
|
(0,external_vue_property_decorator_.Prop)(),
|
|
14968
|
-
|
|
14969
|
-
],
|
|
14970
|
-
|
|
14971
|
-
(0,external_vue_property_decorator_.Prop)(
|
|
14972
|
-
|
|
14973
|
-
],
|
|
14974
|
-
|
|
14975
|
-
(0,external_vue_property_decorator_.Prop)(
|
|
14976
|
-
|
|
14977
|
-
],
|
|
14978
|
-
|
|
14870
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Object)
|
|
14871
|
+
], EditMaskedTextComponent.prototype, "mask", void 0);
|
|
14872
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14873
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
14874
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Number)
|
|
14875
|
+
], EditMaskedTextComponent.prototype, "scale", void 0);
|
|
14876
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14877
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
14878
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", String)
|
|
14879
|
+
], EditMaskedTextComponent.prototype, "thousandsSeparator", void 0);
|
|
14880
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14881
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
14882
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
14883
|
+
], EditMaskedTextComponent.prototype, "signed", void 0);
|
|
14884
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14885
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
14886
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", typeof (ld_edit_masked_textvue_type_script_lang_js_external_a = typeof Array !== "undefined" && Array) === "function" ? ld_edit_masked_textvue_type_script_lang_js_external_a : Object)
|
|
14887
|
+
], EditMaskedTextComponent.prototype, "mapToRadix", void 0);
|
|
14888
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14889
|
+
(0,external_vue_property_decorator_.Prop)({ default: false, type: Boolean }),
|
|
14890
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
14891
|
+
], EditMaskedTextComponent.prototype, "clearIcon", void 0);
|
|
14892
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14893
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
14894
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", String)
|
|
14895
|
+
], EditMaskedTextComponent.prototype, "inputHint", void 0);
|
|
14896
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14979
14897
|
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
14980
|
-
|
|
14981
|
-
],
|
|
14982
|
-
|
|
14898
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Object)
|
|
14899
|
+
], EditMaskedTextComponent.prototype, "form", void 0);
|
|
14900
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14983
14901
|
Emit('update:model-value'),
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
],
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
],
|
|
14994
|
-
|
|
14995
|
-
(0,external_vue_property_decorator_.Watch)('value'),
|
|
14996
|
-
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
14997
|
-
ld_text_markupvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
14998
|
-
ld_text_markupvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
14999
|
-
], TextMarkupComponent.prototype, "onValueChanged", null);
|
|
15000
|
-
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15001
|
-
(0,external_vue_property_decorator_.Watch)('readonly'),
|
|
15002
|
-
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
15003
|
-
ld_text_markupvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
15004
|
-
ld_text_markupvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
15005
|
-
], TextMarkupComponent.prototype, "onReadonlyChanged", null);
|
|
15006
|
-
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15007
|
-
(0,external_vue_property_decorator_.Watch)('preview'),
|
|
15008
|
-
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
15009
|
-
ld_text_markupvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
15010
|
-
ld_text_markupvue_type_script_lang_js_external_metadata("design:returntype", Promise)
|
|
15011
|
-
], TextMarkupComponent.prototype, "onPreviewChanged", null);
|
|
15012
|
-
TextMarkupComponent = ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
14902
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
14903
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:paramtypes", [String]),
|
|
14904
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
14905
|
+
], EditMaskedTextComponent.prototype, "emitUpdateModelValue", null);
|
|
14906
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
14907
|
+
(0,external_vue_property_decorator_.Watch)('modelValue'),
|
|
14908
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
14909
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
14910
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
14911
|
+
], EditMaskedTextComponent.prototype, "onTextChanged", null);
|
|
14912
|
+
EditMaskedTextComponent = ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
15013
14913
|
(0,external_vue_property_decorator_.Options)({
|
|
15014
14914
|
components: {
|
|
15015
14915
|
'ld-label': ld_label,
|
|
15016
|
-
'
|
|
15017
|
-
'md-editor': external_md_editor_v3_.MdEditor,
|
|
14916
|
+
'imask-input': imask_js_.IMaskComponent,
|
|
15018
14917
|
},
|
|
15019
14918
|
})
|
|
15020
|
-
],
|
|
15021
|
-
/* harmony default export */ const
|
|
14919
|
+
], EditMaskedTextComponent);
|
|
14920
|
+
/* harmony default export */ const ld_edit_masked_textvue_type_script_lang_js_external = (EditMaskedTextComponent);
|
|
15022
14921
|
|
|
15023
|
-
;// CONCATENATED MODULE: ./src/ld-text
|
|
14922
|
+
;// CONCATENATED MODULE: ./src/ld-edit-masked-text/ld-edit-masked-text.ts?vue&type=script&lang=js&external
|
|
15024
14923
|
|
|
15025
|
-
;// CONCATENATED MODULE: ./src/ld-text
|
|
14924
|
+
;// CONCATENATED MODULE: ./src/ld-edit-masked-text/ld-edit-masked-text.vue
|
|
15026
14925
|
|
|
15027
14926
|
|
|
15028
14927
|
|
|
@@ -15030,65 +14929,529 @@ TextMarkupComponent = ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
|
15030
14929
|
;
|
|
15031
14930
|
|
|
15032
14931
|
|
|
15033
|
-
const
|
|
14932
|
+
const ld_edit_masked_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_masked_textvue_type_script_lang_js_external, [['render',ld_edit_masked_textvue_type_template_id_33aa4ec6_scoped_true_render],['__scopeId',"data-v-33aa4ec6"]])
|
|
15034
14933
|
|
|
15035
|
-
/* harmony default export */ const
|
|
15036
|
-
;// CONCATENATED MODULE: ./src/ld-text
|
|
14934
|
+
/* harmony default export */ const ld_edit_masked_text = (ld_edit_masked_text_exports_);
|
|
14935
|
+
;// CONCATENATED MODULE: ./src/ld-edit-masked-text/index.ts
|
|
15037
14936
|
|
|
15038
|
-
function
|
|
15039
|
-
vue.component(options.aliases['ld-text
|
|
14937
|
+
function ld_edit_masked_text_reg(vue, options) {
|
|
14938
|
+
vue.component(options.aliases['ld-edit-masked-text'], ld_edit_masked_text);
|
|
15040
14939
|
}
|
|
15041
|
-
/* harmony default export */ const
|
|
15042
|
-
|
|
15043
|
-
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-switch/ld-switch.vue?vue&type=template&id=89826e86&scoped=true
|
|
15044
|
-
|
|
14940
|
+
/* harmony default export */ const src_ld_edit_masked_text = (ld_edit_masked_text_reg);
|
|
15045
14941
|
|
|
15046
|
-
|
|
15047
|
-
const ld_switchvue_type_template_id_89826e86_scoped_true_hoisted_1 = { class: "ld-switch" }
|
|
14942
|
+
;// CONCATENATED MODULE: ./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=12e81c9c&scoped=true
|
|
15048
14943
|
|
|
15049
|
-
function ld_switchvue_type_template_id_89826e86_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15050
|
-
const _component_v_switch = (0,external_vue_.resolveComponent)("v-switch")
|
|
15051
14944
|
|
|
15052
|
-
|
|
15053
|
-
|
|
15054
|
-
|
|
15055
|
-
|
|
15056
|
-
|
|
15057
|
-
|
|
15058
|
-
|
|
15059
|
-
|
|
15060
|
-
}, null, 8, ["modelValue", "readonly", "disabled", "label", "hide-details"])
|
|
15061
|
-
]))
|
|
14945
|
+
const ld_text_markupvue_type_template_id_12e81c9c_scoped_true_withScopeId = n => (_pushScopeId("data-v-12e81c9c"),n=n(),_popScopeId(),n)
|
|
14946
|
+
const ld_text_markupvue_type_template_id_12e81c9c_scoped_true_hoisted_1 = { class: "ld-text-markup" }
|
|
14947
|
+
const ld_text_markupvue_type_template_id_12e81c9c_scoped_true_hoisted_2 = { class: "tabs-wrapper" }
|
|
14948
|
+
const ld_text_markupvue_type_template_id_12e81c9c_scoped_true_hoisted_3 = {
|
|
14949
|
+
key: "editor",
|
|
14950
|
+
class: "content editorbox",
|
|
14951
|
+
style: {"visibility":"hidden"},
|
|
14952
|
+
id: "editorbox"
|
|
15062
14953
|
}
|
|
15063
|
-
;// CONCATENATED MODULE: ./src/ld-switch/ld-switch.vue?vue&type=template&id=89826e86&scoped=true
|
|
15064
14954
|
|
|
15065
|
-
|
|
15066
|
-
|
|
15067
|
-
|
|
15068
|
-
|
|
15069
|
-
|
|
15070
|
-
|
|
15071
|
-
|
|
15072
|
-
|
|
14955
|
+
function ld_text_markupvue_type_template_id_12e81c9c_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14956
|
+
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label")
|
|
14957
|
+
const _component_v_btn = (0,external_vue_.resolveComponent)("v-btn")
|
|
14958
|
+
const _component_v_runtime_template = (0,external_vue_.resolveComponent)("v-runtime-template")
|
|
14959
|
+
const _component_md_editor = (0,external_vue_.resolveComponent)("md-editor")
|
|
14960
|
+
const _component_v_col = (0,external_vue_.resolveComponent)("v-col")
|
|
14961
|
+
const _component_v_row = (0,external_vue_.resolveComponent)("v-row")
|
|
14962
|
+
|
|
14963
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_text_markupvue_type_template_id_12e81c9c_scoped_true_hoisted_1, [
|
|
14964
|
+
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
14965
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
14966
|
+
(_ctx.label)
|
|
14967
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
|
|
14968
|
+
key: 0,
|
|
14969
|
+
class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses]),
|
|
14970
|
+
label: _ctx.label,
|
|
14971
|
+
required: _ctx.required,
|
|
14972
|
+
"align-label-to-right": _ctx.alignLabelToRight
|
|
14973
|
+
}, null, 8, ["class", "label", "required", "align-label-to-right"]))
|
|
14974
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
14975
|
+
(0,external_vue_.createTextVNode)(),
|
|
14976
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
14977
|
+
class: (0,external_vue_.normalizeClass)([_ctx.inputSizeClasses, "pa-1 content-wrapper"])
|
|
14978
|
+
}, {
|
|
14979
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
14980
|
+
(0,external_vue_.createElementVNode)("div", ld_text_markupvue_type_template_id_12e81c9c_scoped_true_hoisted_2, [
|
|
14981
|
+
(0,external_vue_.createVNode)(_component_v_btn, {
|
|
14982
|
+
class: (0,external_vue_.normalizeClass)(["small-button", { active: !_ctx.isPreviewActive }]),
|
|
14983
|
+
variant: "outlined",
|
|
14984
|
+
disabled: _ctx.readonly,
|
|
14985
|
+
onClick: _ctx.onPreviewChanged
|
|
14986
|
+
}, {
|
|
14987
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
14988
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
14989
|
+
class: (0,external_vue_.normalizeClass)({ 'text-color': !_ctx.isPreviewActive })
|
|
14990
|
+
}, "Текст", 2)
|
|
14991
|
+
]),
|
|
14992
|
+
_: 1
|
|
14993
|
+
}, 8, ["class", "disabled", "onClick"]),
|
|
14994
|
+
(0,external_vue_.createTextVNode)(),
|
|
14995
|
+
(0,external_vue_.createVNode)(_component_v_btn, {
|
|
14996
|
+
class: (0,external_vue_.normalizeClass)(["small-button", { active: _ctx.isPreviewActive }]),
|
|
14997
|
+
variant: "outlined",
|
|
14998
|
+
onClick: _ctx.onPreviewChanged
|
|
14999
|
+
}, {
|
|
15000
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
15001
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
15002
|
+
class: (0,external_vue_.normalizeClass)({ 'text-color': _ctx.isPreviewActive })
|
|
15003
|
+
}, "Превью", 2)
|
|
15004
|
+
]),
|
|
15005
|
+
_: 1
|
|
15006
|
+
}, 8, ["class", "onClick"])
|
|
15007
|
+
]),
|
|
15008
|
+
(0,external_vue_.createTextVNode)(),
|
|
15009
|
+
(_ctx.isPreviewActive)
|
|
15010
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_runtime_template, {
|
|
15011
|
+
key: 0,
|
|
15012
|
+
template: _ctx.template,
|
|
15013
|
+
id: "contentbox"
|
|
15014
|
+
}, null, 8, ["template"]))
|
|
15015
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
15016
|
+
(0,external_vue_.createTextVNode)(),
|
|
15017
|
+
(0,external_vue_.withDirectives)((0,external_vue_.createElementVNode)("div", ld_text_markupvue_type_template_id_12e81c9c_scoped_true_hoisted_3, [
|
|
15018
|
+
(0,external_vue_.createVNode)(_component_md_editor, {
|
|
15019
|
+
modelValue: _ctx.value,
|
|
15020
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.value) = $event)),
|
|
15021
|
+
ref: "editor",
|
|
15022
|
+
language: "ru_RU",
|
|
15023
|
+
preview: false,
|
|
15024
|
+
toolbars: _ctx.toolbars,
|
|
15025
|
+
footers: [],
|
|
15026
|
+
onOnChange: _ctx.onEditorTextChange
|
|
15027
|
+
}, null, 8, ["modelValue", "toolbars", "onOnChange"])
|
|
15028
|
+
], 512), [
|
|
15029
|
+
[external_vue_.vShow, !_ctx.isPreviewActive]
|
|
15030
|
+
])
|
|
15031
|
+
]),
|
|
15032
|
+
_: 1
|
|
15033
|
+
}, 8, ["class"])
|
|
15034
|
+
]),
|
|
15035
|
+
_: 1
|
|
15036
|
+
}),
|
|
15037
|
+
(0,external_vue_.createTextVNode)(),
|
|
15038
|
+
(!_ctx.hideDetails)
|
|
15039
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_row, {
|
|
15040
|
+
key: 0,
|
|
15041
|
+
"no-gutters": "",
|
|
15042
|
+
class: "ld-text-markup-validate"
|
|
15043
|
+
}, {
|
|
15044
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
15045
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
15046
|
+
class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses])
|
|
15047
|
+
}, null, 8, ["class"]),
|
|
15048
|
+
(0,external_vue_.createTextVNode)(),
|
|
15049
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
15050
|
+
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
15051
|
+
}, {
|
|
15052
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
15053
|
+
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
15054
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
15055
|
+
(_ctx.showError)
|
|
15056
|
+
? (0,external_vue_.withDirectives)(((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", {
|
|
15057
|
+
key: 0,
|
|
15058
|
+
class: "error--text",
|
|
15059
|
+
style: {"font-size":"var(--font-size--1)"}
|
|
15060
|
+
}, (0,external_vue_.toDisplayString)(_ctx.validationMessage), 513)), [
|
|
15061
|
+
[external_vue_.vShow, _ctx.showError]
|
|
15062
|
+
])
|
|
15063
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
15064
|
+
]),
|
|
15065
|
+
_: 1
|
|
15066
|
+
})
|
|
15067
|
+
]),
|
|
15068
|
+
_: 1
|
|
15069
|
+
}, 8, ["class"])
|
|
15070
|
+
]),
|
|
15071
|
+
_: 1
|
|
15072
|
+
}))
|
|
15073
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
15074
|
+
]))
|
|
15075
|
+
}
|
|
15076
|
+
;// CONCATENATED MODULE: ./src/ld-text-markup/ld-text-markup.vue?vue&type=template&id=12e81c9c&scoped=true
|
|
15077
|
+
|
|
15078
|
+
;// CONCATENATED MODULE: ./src/ld-text-markup/translation.ts
|
|
15079
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
15080
|
+
const ru_RU = {
|
|
15081
|
+
toolbarTips: {
|
|
15082
|
+
bold: 'Полужирный',
|
|
15083
|
+
underline: 'Подчеркнутый',
|
|
15084
|
+
italic: 'Курсив',
|
|
15085
|
+
strikeThrough: 'strikeThrough',
|
|
15086
|
+
title: 'Заголовок',
|
|
15087
|
+
sub: 'subscript',
|
|
15088
|
+
sup: 'superscript',
|
|
15089
|
+
quote: 'quote',
|
|
15090
|
+
unorderedList: 'Список',
|
|
15091
|
+
orderedList: 'Нумерованный список',
|
|
15092
|
+
task: 'task list',
|
|
15093
|
+
codeRow: 'Программый код',
|
|
15094
|
+
code: 'block-level code',
|
|
15095
|
+
link: 'Создать ссылку',
|
|
15096
|
+
image: 'image',
|
|
15097
|
+
table: 'Добавить таблицу',
|
|
15098
|
+
mermaid: 'mermaid',
|
|
15099
|
+
katex: 'formula',
|
|
15100
|
+
revoke: 'revoke',
|
|
15101
|
+
next: 'undo revoke',
|
|
15102
|
+
save: 'save',
|
|
15103
|
+
prettier: 'prettier',
|
|
15104
|
+
pageFullscreen: 'fullscreen in page',
|
|
15105
|
+
fullscreen: 'fullscreen',
|
|
15106
|
+
preview: 'Превью',
|
|
15107
|
+
htmlPreview: 'html preview',
|
|
15108
|
+
catalog: 'catalog',
|
|
15109
|
+
github: 'source code',
|
|
15110
|
+
},
|
|
15111
|
+
titleItem: {
|
|
15112
|
+
h1: 'Заголовок 1 уровня',
|
|
15113
|
+
h2: 'Заголовок 2 уровня',
|
|
15114
|
+
h3: 'Заголовок 3 уровня',
|
|
15115
|
+
h4: 'Заголовок 4 уровня',
|
|
15116
|
+
h5: 'Заголовок 5 уровня',
|
|
15117
|
+
h6: 'Заголовок 6 уровня',
|
|
15118
|
+
},
|
|
15119
|
+
imgTitleItem: {
|
|
15120
|
+
link: 'Add Img Link',
|
|
15121
|
+
upload: 'Upload Img',
|
|
15122
|
+
clip2upload: 'Clip Upload',
|
|
15123
|
+
},
|
|
15124
|
+
linkModalTips: {
|
|
15125
|
+
descLabel: 'Описание',
|
|
15126
|
+
descLabelPlaceHolder: 'Текст для отображения',
|
|
15127
|
+
urlLabel: 'Ссылка',
|
|
15128
|
+
urlLabelPlaceHolder: 'Адрес ссылки',
|
|
15129
|
+
buttonOK: 'Сохранить',
|
|
15130
|
+
},
|
|
15131
|
+
clipModalTips: {
|
|
15132
|
+
title: 'Crop Image',
|
|
15133
|
+
buttonUpload: 'Upload',
|
|
15134
|
+
},
|
|
15135
|
+
copyCode: {
|
|
15136
|
+
text: 'Copy',
|
|
15137
|
+
successTips: 'Copied!',
|
|
15138
|
+
failTips: 'Copy failed!',
|
|
15139
|
+
},
|
|
15140
|
+
mermaid: {
|
|
15141
|
+
flow: 'flow',
|
|
15142
|
+
sequence: 'sequence',
|
|
15143
|
+
gantt: 'gantt',
|
|
15144
|
+
class: 'class',
|
|
15145
|
+
state: 'state',
|
|
15146
|
+
pie: 'pie',
|
|
15147
|
+
relationship: 'relationship',
|
|
15148
|
+
journey: 'journey',
|
|
15149
|
+
},
|
|
15150
|
+
katex: {
|
|
15151
|
+
inline: 'inline',
|
|
15152
|
+
block: 'block',
|
|
15153
|
+
},
|
|
15154
|
+
footer: {
|
|
15155
|
+
markdownTotal: 'Всего слов',
|
|
15156
|
+
scrollAuto: 'Автопрокрутка',
|
|
15157
|
+
},
|
|
15158
|
+
};
|
|
15159
|
+
/* harmony default export */ const translation = (ru_RU);
|
|
15160
|
+
|
|
15161
|
+
// EXTERNAL MODULE: external "./lib/runtime-template.js"
|
|
15162
|
+
var runtime_template_js_ = __webpack_require__(9435);
|
|
15163
|
+
var runtime_template_js_default = /*#__PURE__*/__webpack_require__.n(runtime_template_js_);
|
|
15164
|
+
// EXTERNAL MODULE: external "md-editor-v3"
|
|
15165
|
+
var external_md_editor_v3_ = __webpack_require__(6443);
|
|
15166
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-text-markup/ld-text-markup.ts?vue&type=script&lang=js&external
|
|
15167
|
+
var ld_text_markupvue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15168
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15169
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15170
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15171
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15172
|
+
};
|
|
15173
|
+
var ld_text_markupvue_type_script_lang_js_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
15073
15174
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
15074
15175
|
};
|
|
15075
15176
|
|
|
15076
15177
|
|
|
15077
|
-
|
|
15178
|
+
|
|
15179
|
+
|
|
15180
|
+
|
|
15181
|
+
|
|
15182
|
+
|
|
15183
|
+
|
|
15184
|
+
|
|
15185
|
+
|
|
15186
|
+
/**
|
|
15187
|
+
* @displayName ld-text-markup
|
|
15188
|
+
*/
|
|
15189
|
+
let TextMarkupComponent = class TextMarkupComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
|
|
15078
15190
|
constructor() {
|
|
15079
15191
|
super(...arguments);
|
|
15080
|
-
|
|
15192
|
+
/**
|
|
15193
|
+
* html
|
|
15194
|
+
*/
|
|
15195
|
+
this.template = '';
|
|
15196
|
+
/**
|
|
15197
|
+
* markdown
|
|
15198
|
+
*/
|
|
15199
|
+
this.value = '';
|
|
15200
|
+
this.isPreviewActive = false;
|
|
15201
|
+
this.md = null;
|
|
15202
|
+
this.previewWatchDisabled = false;
|
|
15081
15203
|
}
|
|
15082
|
-
|
|
15083
|
-
this.value
|
|
15204
|
+
emitInput() {
|
|
15205
|
+
return this.value;
|
|
15084
15206
|
}
|
|
15085
|
-
|
|
15086
|
-
this
|
|
15207
|
+
emitPreview() {
|
|
15208
|
+
return this.isPreviewActive;
|
|
15087
15209
|
}
|
|
15088
|
-
|
|
15089
|
-
|
|
15090
|
-
|
|
15091
|
-
|
|
15210
|
+
onValueChanged() {
|
|
15211
|
+
if (!this.value && this.required) {
|
|
15212
|
+
this.validate();
|
|
15213
|
+
}
|
|
15214
|
+
if (this.value) {
|
|
15215
|
+
this.validationMessage = '';
|
|
15216
|
+
}
|
|
15217
|
+
}
|
|
15218
|
+
onReadonlyChanged() {
|
|
15219
|
+
if (this.readonly && !this.isPreviewActive) {
|
|
15220
|
+
this.togglePreview();
|
|
15221
|
+
}
|
|
15222
|
+
}
|
|
15223
|
+
async onPreviewChanged() {
|
|
15224
|
+
if (this.previewWatchDisabled) {
|
|
15225
|
+
return;
|
|
15226
|
+
}
|
|
15227
|
+
this.previewWatchDisabled = true;
|
|
15228
|
+
await this.toggleClick();
|
|
15229
|
+
await this.$nextTick();
|
|
15230
|
+
this.previewWatchDisabled = false;
|
|
15231
|
+
}
|
|
15232
|
+
created() {
|
|
15233
|
+
(0,external_md_editor_v3_.config)({
|
|
15234
|
+
editorConfig: {
|
|
15235
|
+
languageUserDefined: {
|
|
15236
|
+
/* eslint-disable-next-line @typescript-eslint/naming-convention */
|
|
15237
|
+
ru_RU: translation,
|
|
15238
|
+
},
|
|
15239
|
+
},
|
|
15240
|
+
});
|
|
15241
|
+
if (this.form) {
|
|
15242
|
+
this.form.register(this, null);
|
|
15243
|
+
}
|
|
15244
|
+
}
|
|
15245
|
+
async mounted() {
|
|
15246
|
+
const markdownIt = (await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 8461, 23))).default;
|
|
15247
|
+
const md = new markdownIt();
|
|
15248
|
+
this.md = md;
|
|
15249
|
+
this.buildEditor();
|
|
15250
|
+
if (this.form) {
|
|
15251
|
+
this.form?.register(this, null);
|
|
15252
|
+
}
|
|
15253
|
+
}
|
|
15254
|
+
unmounted() {
|
|
15255
|
+
if (this.form) {
|
|
15256
|
+
this.form.unregister(this, null);
|
|
15257
|
+
}
|
|
15258
|
+
}
|
|
15259
|
+
onEditorTextChange(value) {
|
|
15260
|
+
this.value = value;
|
|
15261
|
+
this.emitInput();
|
|
15262
|
+
}
|
|
15263
|
+
async togglePreview() {
|
|
15264
|
+
this.isPreviewActive = !this.isPreviewActive;
|
|
15265
|
+
if (this.isPreviewActive) {
|
|
15266
|
+
this.previewRender(this.value);
|
|
15267
|
+
await this.$nextTick();
|
|
15268
|
+
}
|
|
15269
|
+
this.emitPreview();
|
|
15270
|
+
}
|
|
15271
|
+
async toggleClick() {
|
|
15272
|
+
if (this.readonly || this.disabled) {
|
|
15273
|
+
return;
|
|
15274
|
+
}
|
|
15275
|
+
await this.togglePreview();
|
|
15276
|
+
}
|
|
15277
|
+
validate() {
|
|
15278
|
+
let funcResult = null;
|
|
15279
|
+
this.validationMessage = '';
|
|
15280
|
+
this.validRules.forEach(func => {
|
|
15281
|
+
funcResult = func(this.value);
|
|
15282
|
+
if (funcResult !== true) {
|
|
15283
|
+
this.validationMessage = funcResult;
|
|
15284
|
+
}
|
|
15285
|
+
});
|
|
15286
|
+
return !this.validationMessage;
|
|
15287
|
+
}
|
|
15288
|
+
buildEditor() {
|
|
15289
|
+
this.value = this.modelValue;
|
|
15290
|
+
if (this.preview || this.readonly) {
|
|
15291
|
+
this.togglePreview();
|
|
15292
|
+
}
|
|
15293
|
+
const editorWrapper = document.getElementById('editorbox');
|
|
15294
|
+
if (editorWrapper) {
|
|
15295
|
+
editorWrapper.style.visibility = 'visible';
|
|
15296
|
+
}
|
|
15297
|
+
}
|
|
15298
|
+
previewRender(plainText) {
|
|
15299
|
+
plainText = plainText.replace(/\n\n/g, '\n <br> \n');
|
|
15300
|
+
try {
|
|
15301
|
+
let html = this.md.render(plainText);
|
|
15302
|
+
html = html.replace(/<br>/g, '<br>');
|
|
15303
|
+
this.template = '<div class="content contentbox"><div>' + html + '</div></div>';
|
|
15304
|
+
}
|
|
15305
|
+
catch (e) {
|
|
15306
|
+
/* eslint-disable no-console */
|
|
15307
|
+
console.error(e);
|
|
15308
|
+
}
|
|
15309
|
+
}
|
|
15310
|
+
get showError() {
|
|
15311
|
+
return Boolean(this.validationMessage);
|
|
15312
|
+
}
|
|
15313
|
+
get toolbars() {
|
|
15314
|
+
return [
|
|
15315
|
+
'bold',
|
|
15316
|
+
'underline',
|
|
15317
|
+
'italic',
|
|
15318
|
+
'-',
|
|
15319
|
+
'title',
|
|
15320
|
+
'unorderedList',
|
|
15321
|
+
'orderedList',
|
|
15322
|
+
'-',
|
|
15323
|
+
'codeRow',
|
|
15324
|
+
'code',
|
|
15325
|
+
'link',
|
|
15326
|
+
];
|
|
15327
|
+
}
|
|
15328
|
+
};
|
|
15329
|
+
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15330
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
15331
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", String)
|
|
15332
|
+
], TextMarkupComponent.prototype, "modelValue", void 0);
|
|
15333
|
+
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15334
|
+
(0,external_vue_property_decorator_.Prop)({ default: false }),
|
|
15335
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
15336
|
+
], TextMarkupComponent.prototype, "preview", void 0);
|
|
15337
|
+
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15338
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
15339
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
15340
|
+
], TextMarkupComponent.prototype, "persistentHint", void 0);
|
|
15341
|
+
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15342
|
+
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
15343
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Object)
|
|
15344
|
+
], TextMarkupComponent.prototype, "form", void 0);
|
|
15345
|
+
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15346
|
+
Emit('update:model-value'),
|
|
15347
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
15348
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
15349
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
15350
|
+
], TextMarkupComponent.prototype, "emitInput", null);
|
|
15351
|
+
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15352
|
+
Emit('update:preview'),
|
|
15353
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
15354
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
15355
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
15356
|
+
], TextMarkupComponent.prototype, "emitPreview", null);
|
|
15357
|
+
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15358
|
+
(0,external_vue_property_decorator_.Watch)('value'),
|
|
15359
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
15360
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
15361
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
15362
|
+
], TextMarkupComponent.prototype, "onValueChanged", null);
|
|
15363
|
+
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15364
|
+
(0,external_vue_property_decorator_.Watch)('readonly'),
|
|
15365
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
15366
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
15367
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
15368
|
+
], TextMarkupComponent.prototype, "onReadonlyChanged", null);
|
|
15369
|
+
ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15370
|
+
(0,external_vue_property_decorator_.Watch)('preview'),
|
|
15371
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
15372
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
15373
|
+
ld_text_markupvue_type_script_lang_js_external_metadata("design:returntype", Promise)
|
|
15374
|
+
], TextMarkupComponent.prototype, "onPreviewChanged", null);
|
|
15375
|
+
TextMarkupComponent = ld_text_markupvue_type_script_lang_js_external_decorate([
|
|
15376
|
+
(0,external_vue_property_decorator_.Options)({
|
|
15377
|
+
components: {
|
|
15378
|
+
'ld-label': ld_label,
|
|
15379
|
+
'v-runtime-template': (runtime_template_js_default()),
|
|
15380
|
+
'md-editor': external_md_editor_v3_.MdEditor,
|
|
15381
|
+
},
|
|
15382
|
+
})
|
|
15383
|
+
], TextMarkupComponent);
|
|
15384
|
+
/* harmony default export */ const ld_text_markupvue_type_script_lang_js_external = (TextMarkupComponent);
|
|
15385
|
+
|
|
15386
|
+
;// CONCATENATED MODULE: ./src/ld-text-markup/ld-text-markup.ts?vue&type=script&lang=js&external
|
|
15387
|
+
|
|
15388
|
+
;// CONCATENATED MODULE: ./src/ld-text-markup/ld-text-markup.vue
|
|
15389
|
+
|
|
15390
|
+
|
|
15391
|
+
|
|
15392
|
+
|
|
15393
|
+
;
|
|
15394
|
+
|
|
15395
|
+
|
|
15396
|
+
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_12e81c9c_scoped_true_render],['__scopeId',"data-v-12e81c9c"]])
|
|
15397
|
+
|
|
15398
|
+
/* harmony default export */ const ld_text_markup = (ld_text_markup_exports_);
|
|
15399
|
+
;// CONCATENATED MODULE: ./src/ld-text-markup/index.ts
|
|
15400
|
+
|
|
15401
|
+
function ld_text_markup_reg(vue, options) {
|
|
15402
|
+
vue.component(options.aliases['ld-text-markup'], ld_text_markup);
|
|
15403
|
+
}
|
|
15404
|
+
/* harmony default export */ const src_ld_text_markup = (ld_text_markup_reg);
|
|
15405
|
+
|
|
15406
|
+
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-switch/ld-switch.vue?vue&type=template&id=89826e86&scoped=true
|
|
15407
|
+
|
|
15408
|
+
|
|
15409
|
+
const ld_switchvue_type_template_id_89826e86_scoped_true_withScopeId = n => (_pushScopeId("data-v-89826e86"),n=n(),_popScopeId(),n)
|
|
15410
|
+
const ld_switchvue_type_template_id_89826e86_scoped_true_hoisted_1 = { class: "ld-switch" }
|
|
15411
|
+
|
|
15412
|
+
function ld_switchvue_type_template_id_89826e86_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15413
|
+
const _component_v_switch = (0,external_vue_.resolveComponent)("v-switch")
|
|
15414
|
+
|
|
15415
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_switchvue_type_template_id_89826e86_scoped_true_hoisted_1, [
|
|
15416
|
+
(0,external_vue_.createVNode)(_component_v_switch, {
|
|
15417
|
+
modelValue: _ctx.value,
|
|
15418
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.value) = $event)),
|
|
15419
|
+
readonly: _ctx.readonly,
|
|
15420
|
+
disabled: _ctx.disabled,
|
|
15421
|
+
label: _ctx.label,
|
|
15422
|
+
"hide-details": _ctx.hideDetails
|
|
15423
|
+
}, null, 8, ["modelValue", "readonly", "disabled", "label", "hide-details"])
|
|
15424
|
+
]))
|
|
15425
|
+
}
|
|
15426
|
+
;// CONCATENATED MODULE: ./src/ld-switch/ld-switch.vue?vue&type=template&id=89826e86&scoped=true
|
|
15427
|
+
|
|
15428
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-switch/ld-switch.ts?vue&type=script&lang=js&external
|
|
15429
|
+
var ld_switchvue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15430
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15431
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15432
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15433
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15434
|
+
};
|
|
15435
|
+
var ld_switchvue_type_script_lang_js_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
15436
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
15437
|
+
};
|
|
15438
|
+
|
|
15439
|
+
|
|
15440
|
+
let SwitchComponent = class SwitchComponent extends (0,external_vue_property_decorator_.mixins)(InputMixin) {
|
|
15441
|
+
constructor() {
|
|
15442
|
+
super(...arguments);
|
|
15443
|
+
this.value = false;
|
|
15444
|
+
}
|
|
15445
|
+
onModelChanged() {
|
|
15446
|
+
this.value = this.modelValue;
|
|
15447
|
+
}
|
|
15448
|
+
onValueChanged(val) {
|
|
15449
|
+
this.$emit('update:model-value', val);
|
|
15450
|
+
}
|
|
15451
|
+
};
|
|
15452
|
+
ld_switchvue_type_script_lang_js_external_decorate([
|
|
15453
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
15454
|
+
ld_switchvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
15092
15455
|
], SwitchComponent.prototype, "modelValue", void 0);
|
|
15093
15456
|
ld_switchvue_type_script_lang_js_external_decorate([
|
|
15094
15457
|
(0,external_vue_property_decorator_.Watch)('modelValue', { immediate: true }),
|
|
@@ -15380,364 +15743,6 @@ function ld_dialogvue_type_template_id_184339ee_ts_true_render(_ctx, _cache, $pr
|
|
|
15380
15743
|
|
|
15381
15744
|
// EXTERNAL MODULE: ./node_modules/@ldmjs/core/dist/index.js
|
|
15382
15745
|
var dist = __webpack_require__(634);
|
|
15383
|
-
;// CONCATENATED MODULE: ./src/utils/awaiting.ts
|
|
15384
|
-
async function awaiting(callback) {
|
|
15385
|
-
let resolveFunc = null;
|
|
15386
|
-
const counter = 0;
|
|
15387
|
-
let timer = null;
|
|
15388
|
-
const promise = new Promise(resolve => {
|
|
15389
|
-
resolveFunc = resolve;
|
|
15390
|
-
});
|
|
15391
|
-
timer = setInterval(() => {
|
|
15392
|
-
const a = callback();
|
|
15393
|
-
if (counter > 100 || Boolean(a)) {
|
|
15394
|
-
clearInterval(timer);
|
|
15395
|
-
resolveFunc(a ?? true);
|
|
15396
|
-
}
|
|
15397
|
-
}, 100);
|
|
15398
|
-
await promise;
|
|
15399
|
-
}
|
|
15400
|
-
|
|
15401
|
-
;// CONCATENATED MODULE: ./src/utils/base64.ts
|
|
15402
|
-
/* eslint-disable no-bitwise */
|
|
15403
|
-
class Base64Util {
|
|
15404
|
-
constructor() {
|
|
15405
|
-
this._keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
15406
|
-
}
|
|
15407
|
-
encode(input) {
|
|
15408
|
-
let output = '';
|
|
15409
|
-
let chr1, chr2, chr3, enc1, enc2, enc3, enc4;
|
|
15410
|
-
let i = 0;
|
|
15411
|
-
input = Base64Util._utf8_encode(input);
|
|
15412
|
-
while (i < input.length) {
|
|
15413
|
-
chr1 = input.charCodeAt(i++);
|
|
15414
|
-
chr2 = input.charCodeAt(i++);
|
|
15415
|
-
chr3 = input.charCodeAt(i++);
|
|
15416
|
-
enc1 = chr1 >> 2;
|
|
15417
|
-
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
|
|
15418
|
-
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
|
|
15419
|
-
enc4 = chr3 & 63;
|
|
15420
|
-
if (isNaN(chr2)) {
|
|
15421
|
-
enc3 = enc4 = 64;
|
|
15422
|
-
}
|
|
15423
|
-
else if (isNaN(chr3)) {
|
|
15424
|
-
enc4 = 64;
|
|
15425
|
-
}
|
|
15426
|
-
output =
|
|
15427
|
-
output +
|
|
15428
|
-
this._keyStr.charAt(enc1) +
|
|
15429
|
-
this._keyStr.charAt(enc2) +
|
|
15430
|
-
this._keyStr.charAt(enc3) +
|
|
15431
|
-
this._keyStr.charAt(enc4);
|
|
15432
|
-
}
|
|
15433
|
-
return output;
|
|
15434
|
-
}
|
|
15435
|
-
decode(input) {
|
|
15436
|
-
let output = '';
|
|
15437
|
-
let chr1, chr2, chr3;
|
|
15438
|
-
let enc1, enc2, enc3, enc4;
|
|
15439
|
-
let i = 0;
|
|
15440
|
-
input = input.replace(/[^\d+/=A-Za-z]/g, '');
|
|
15441
|
-
while (i < input.length) {
|
|
15442
|
-
enc1 = this._keyStr.indexOf(input.charAt(i++));
|
|
15443
|
-
enc2 = this._keyStr.indexOf(input.charAt(i++));
|
|
15444
|
-
enc3 = this._keyStr.indexOf(input.charAt(i++));
|
|
15445
|
-
enc4 = this._keyStr.indexOf(input.charAt(i++));
|
|
15446
|
-
chr1 = (enc1 << 2) | (enc2 >> 4);
|
|
15447
|
-
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
|
|
15448
|
-
chr3 = ((enc3 & 3) << 6) | enc4;
|
|
15449
|
-
output = output + String.fromCharCode(chr1);
|
|
15450
|
-
if (enc3 !== 64) {
|
|
15451
|
-
output = output + String.fromCharCode(chr2);
|
|
15452
|
-
}
|
|
15453
|
-
if (enc4 !== 64) {
|
|
15454
|
-
output = output + String.fromCharCode(chr3);
|
|
15455
|
-
}
|
|
15456
|
-
}
|
|
15457
|
-
output = Base64Util._utf8_decode(output);
|
|
15458
|
-
return output;
|
|
15459
|
-
}
|
|
15460
|
-
static _utf8_encode(str) {
|
|
15461
|
-
str = str.replace(/\r\n/g, '\n');
|
|
15462
|
-
let utftext = '';
|
|
15463
|
-
for (let n = 0; n < str.length; n++) {
|
|
15464
|
-
const c = str.charCodeAt(n);
|
|
15465
|
-
if (c < 128) {
|
|
15466
|
-
utftext += String.fromCharCode(c);
|
|
15467
|
-
}
|
|
15468
|
-
else if (c > 127 && c < 2048) {
|
|
15469
|
-
utftext += String.fromCharCode((c >> 6) | 192);
|
|
15470
|
-
utftext += String.fromCharCode((c & 63) | 128);
|
|
15471
|
-
}
|
|
15472
|
-
else {
|
|
15473
|
-
utftext += String.fromCharCode((c >> 12) | 224);
|
|
15474
|
-
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
|
|
15475
|
-
utftext += String.fromCharCode((c & 63) | 128);
|
|
15476
|
-
}
|
|
15477
|
-
}
|
|
15478
|
-
return utftext;
|
|
15479
|
-
}
|
|
15480
|
-
static _utf8_decode(utftext) {
|
|
15481
|
-
let string = '';
|
|
15482
|
-
let i = 0;
|
|
15483
|
-
let c = 0;
|
|
15484
|
-
let c2 = 0;
|
|
15485
|
-
let c3 = 0;
|
|
15486
|
-
while (i < utftext.length) {
|
|
15487
|
-
c = utftext.charCodeAt(i);
|
|
15488
|
-
if (c < 128) {
|
|
15489
|
-
string += String.fromCharCode(c);
|
|
15490
|
-
i++;
|
|
15491
|
-
}
|
|
15492
|
-
else if (c > 191 && c < 224) {
|
|
15493
|
-
c2 = utftext.charCodeAt(i + 1);
|
|
15494
|
-
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
|
|
15495
|
-
i += 2;
|
|
15496
|
-
}
|
|
15497
|
-
else {
|
|
15498
|
-
c2 = utftext.charCodeAt(i + 1);
|
|
15499
|
-
c3 = utftext.charCodeAt(i + 2);
|
|
15500
|
-
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
|
|
15501
|
-
i += 3;
|
|
15502
|
-
}
|
|
15503
|
-
}
|
|
15504
|
-
return string;
|
|
15505
|
-
}
|
|
15506
|
-
isValid(value) {
|
|
15507
|
-
// eslint-disable-next-line optimize-regex/optimize-regex
|
|
15508
|
-
const base64Regex = /^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/gim;
|
|
15509
|
-
return base64Regex.test(value);
|
|
15510
|
-
}
|
|
15511
|
-
}
|
|
15512
|
-
const base64 = new Base64Util();
|
|
15513
|
-
|
|
15514
|
-
|
|
15515
|
-
;// CONCATENATED MODULE: ./src/utils/cookie.ts
|
|
15516
|
-
class Cookie {
|
|
15517
|
-
get(key) {
|
|
15518
|
-
const _key = key.replace(/([$()*+./?[\\\]^{|}])/g, '\\$1');
|
|
15519
|
-
const matches = document.cookie.match(new RegExp('(?:^|; )' + _key + '=([^;]*)'));
|
|
15520
|
-
if (matches && matches[1] && matches[1].length) {
|
|
15521
|
-
return matches[1];
|
|
15522
|
-
}
|
|
15523
|
-
return null;
|
|
15524
|
-
}
|
|
15525
|
-
set(key, value, expires) {
|
|
15526
|
-
let time = 0;
|
|
15527
|
-
switch (expires) {
|
|
15528
|
-
case 'day':
|
|
15529
|
-
time = 1000 * 60 * 60 * 24;
|
|
15530
|
-
break;
|
|
15531
|
-
case 'month':
|
|
15532
|
-
time = 1000 * 60 * 60 * 24 * 30;
|
|
15533
|
-
break;
|
|
15534
|
-
}
|
|
15535
|
-
let exp = '';
|
|
15536
|
-
if (time) {
|
|
15537
|
-
time = Date.now() + time;
|
|
15538
|
-
exp = new Date(time).toUTCString();
|
|
15539
|
-
}
|
|
15540
|
-
document.cookie = key + '=' + value + '; path=/; expires=' + exp;
|
|
15541
|
-
}
|
|
15542
|
-
delete(key) {
|
|
15543
|
-
document.cookie = key + '=; path=/; expires=-1';
|
|
15544
|
-
}
|
|
15545
|
-
}
|
|
15546
|
-
const cookie = new Cookie();
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
;// CONCATENATED MODULE: ./src/utils/converting.ts
|
|
15550
|
-
function fileToArrayBuffer(src) {
|
|
15551
|
-
return new Promise(resolve => {
|
|
15552
|
-
const reader = new FileReader();
|
|
15553
|
-
reader.onloadend = function () {
|
|
15554
|
-
resolve(reader.result);
|
|
15555
|
-
};
|
|
15556
|
-
reader.readAsArrayBuffer(src);
|
|
15557
|
-
});
|
|
15558
|
-
}
|
|
15559
|
-
function fileToBase64(file) {
|
|
15560
|
-
return new Promise((resolve, reject) => {
|
|
15561
|
-
const reader = new FileReader();
|
|
15562
|
-
reader.readAsDataURL(file);
|
|
15563
|
-
reader.onload = () => {
|
|
15564
|
-
let fileStr = reader.result.toString();
|
|
15565
|
-
if (fileStr.includes(',')) {
|
|
15566
|
-
fileStr = fileStr.split(',')[1];
|
|
15567
|
-
}
|
|
15568
|
-
resolve(fileStr);
|
|
15569
|
-
};
|
|
15570
|
-
reader.onerror = error => reject(error);
|
|
15571
|
-
});
|
|
15572
|
-
}
|
|
15573
|
-
function base64ToUint8Array(base64) {
|
|
15574
|
-
if (!base64.trim()) {
|
|
15575
|
-
return null;
|
|
15576
|
-
}
|
|
15577
|
-
const decrypted = window.atob(base64);
|
|
15578
|
-
let n = decrypted.length;
|
|
15579
|
-
const arr = new Uint8Array(n);
|
|
15580
|
-
while (n--) {
|
|
15581
|
-
arr[n] = decrypted.charCodeAt(n);
|
|
15582
|
-
}
|
|
15583
|
-
return arr;
|
|
15584
|
-
}
|
|
15585
|
-
function Uint8ArrayToHex(bytes) {
|
|
15586
|
-
const hex = [];
|
|
15587
|
-
/* eslint-disable-next-line @typescript-eslint/prefer-for-of */
|
|
15588
|
-
for (let i = 0; i < bytes.length; i++) {
|
|
15589
|
-
const current = bytes[i] < 0 ? bytes[i] + 256 : bytes[i];
|
|
15590
|
-
/* eslint-disable-next-line no-bitwise */
|
|
15591
|
-
hex.push((current >>> 4).toString(16));
|
|
15592
|
-
/* eslint-disable-next-line no-bitwise */
|
|
15593
|
-
hex.push((current & 0xf).toString(16));
|
|
15594
|
-
}
|
|
15595
|
-
return hex.join('');
|
|
15596
|
-
}
|
|
15597
|
-
function hexToArrayBuffer(hex) {
|
|
15598
|
-
hex = hex.replace(/^0x/, '');
|
|
15599
|
-
if (hex.length % 2 != 0) {
|
|
15600
|
-
// console.log('WARNING: expecting an even number of characters in the hexString');
|
|
15601
|
-
}
|
|
15602
|
-
const bad = hex.match(/[\sg-z]/i);
|
|
15603
|
-
if (bad) {
|
|
15604
|
-
// console.log('WARNING: found non-hex characters', bad);
|
|
15605
|
-
}
|
|
15606
|
-
const pairs = hex.match(/[\da-f]{2}/gi);
|
|
15607
|
-
const result = [];
|
|
15608
|
-
for (const s of pairs) {
|
|
15609
|
-
result.push(parseInt(s, 16));
|
|
15610
|
-
}
|
|
15611
|
-
return result;
|
|
15612
|
-
}
|
|
15613
|
-
function uint8ArrayToBase64(value) {
|
|
15614
|
-
const bin = value.reduce((acc, i) => (acc += String.fromCharCode.apply(null, [i])), '');
|
|
15615
|
-
return window.btoa(bin);
|
|
15616
|
-
}
|
|
15617
|
-
function arrayBufferToUint8Array(value) {
|
|
15618
|
-
return new Uint8Array(value);
|
|
15619
|
-
}
|
|
15620
|
-
|
|
15621
|
-
|
|
15622
|
-
;// CONCATENATED MODULE: ./src/utils/deepValueGetter.ts
|
|
15623
|
-
/**
|
|
15624
|
-
* Returns a deep object given a string. zoo['animal.type']
|
|
15625
|
-
* @param {object} obj
|
|
15626
|
-
* @param {string} path
|
|
15627
|
-
*/
|
|
15628
|
-
function deepValueGetter(obj, path) {
|
|
15629
|
-
if (obj === null) {
|
|
15630
|
-
return '';
|
|
15631
|
-
}
|
|
15632
|
-
if (!obj || !path) {
|
|
15633
|
-
return obj;
|
|
15634
|
-
}
|
|
15635
|
-
const value = obj[path];
|
|
15636
|
-
// eslint-disable-next-line no-undefined
|
|
15637
|
-
if (value !== undefined) {
|
|
15638
|
-
return value;
|
|
15639
|
-
}
|
|
15640
|
-
let current = obj;
|
|
15641
|
-
const split = path.split('.');
|
|
15642
|
-
if (split.length) {
|
|
15643
|
-
for (const key of split) {
|
|
15644
|
-
current = current[key];
|
|
15645
|
-
// if found undefined, return empty string
|
|
15646
|
-
// eslint-disable-next-line no-undefined
|
|
15647
|
-
if (current === undefined || current === null) {
|
|
15648
|
-
return '';
|
|
15649
|
-
}
|
|
15650
|
-
}
|
|
15651
|
-
}
|
|
15652
|
-
return current;
|
|
15653
|
-
}
|
|
15654
|
-
|
|
15655
|
-
;// CONCATENATED MODULE: ./src/utils/delay.ts
|
|
15656
|
-
async function delay(timeout) {
|
|
15657
|
-
return new Promise(resolve => setTimeout(() => resolve(), timeout));
|
|
15658
|
-
}
|
|
15659
|
-
|
|
15660
|
-
;// CONCATENATED MODULE: ./src/utils/isObjectEmpty.ts
|
|
15661
|
-
function isObjectEmpty(obj) {
|
|
15662
|
-
for (const _i in obj) {
|
|
15663
|
-
return false;
|
|
15664
|
-
}
|
|
15665
|
-
return true;
|
|
15666
|
-
}
|
|
15667
|
-
|
|
15668
|
-
;// CONCATENATED MODULE: ./src/utils/pluralizeNoun.ts
|
|
15669
|
-
function pluralizeNoun(num, one, two, five, printNum = true) {
|
|
15670
|
-
if (!num) {
|
|
15671
|
-
return '';
|
|
15672
|
-
}
|
|
15673
|
-
let n;
|
|
15674
|
-
if (typeof num === 'string') {
|
|
15675
|
-
n = Number(num.match(/\d+\.?\d*/g));
|
|
15676
|
-
}
|
|
15677
|
-
else {
|
|
15678
|
-
n = Math.abs(num);
|
|
15679
|
-
}
|
|
15680
|
-
n %= 100;
|
|
15681
|
-
if (n >= 5 && n <= 20) {
|
|
15682
|
-
return printNum ? `${num} ${five}` : `${five}`;
|
|
15683
|
-
}
|
|
15684
|
-
n %= 10;
|
|
15685
|
-
if (n === 1) {
|
|
15686
|
-
return printNum ? `${num} ${one}` : `${one}`;
|
|
15687
|
-
}
|
|
15688
|
-
if (n >= 2 && n <= 4) {
|
|
15689
|
-
return printNum ? `${num} ${two}` : `${two}`;
|
|
15690
|
-
}
|
|
15691
|
-
return printNum ? `${num} ${five}` : `${five}`;
|
|
15692
|
-
}
|
|
15693
|
-
|
|
15694
|
-
;// CONCATENATED MODULE: ./src/utils/strings.ts
|
|
15695
|
-
class Strings {
|
|
15696
|
-
camelCase(str) {
|
|
15697
|
-
// Replace special characters with a space
|
|
15698
|
-
str = str.replace(/[^\d A-Za-z]/g, ' ');
|
|
15699
|
-
// put a space before an uppercase letter
|
|
15700
|
-
str = str.replace(/([a-z](?=[A-Z]))/g, '$1 ');
|
|
15701
|
-
// Lower case first character and some other stuff
|
|
15702
|
-
str = str
|
|
15703
|
-
.replace(/([^\d A-Za-z])|^\d+/g, '')
|
|
15704
|
-
.trim()
|
|
15705
|
-
.toLowerCase();
|
|
15706
|
-
// uppercase characters preceded by a space or number
|
|
15707
|
-
str = str.replace(/([\d ]+)([A-Za-z])/g, (a, b, c) => b.trim() + c.toUpperCase());
|
|
15708
|
-
return str;
|
|
15709
|
-
}
|
|
15710
|
-
capitalize(str) {
|
|
15711
|
-
if (!str) {
|
|
15712
|
-
return str;
|
|
15713
|
-
}
|
|
15714
|
-
const first = str[0];
|
|
15715
|
-
const other = str.substring(1);
|
|
15716
|
-
return `${first.toUpperCase()}${other}`;
|
|
15717
|
-
}
|
|
15718
|
-
}
|
|
15719
|
-
const strings = new Strings();
|
|
15720
|
-
|
|
15721
|
-
|
|
15722
|
-
;// CONCATENATED MODULE: ./src/utils/urlRegexp.ts
|
|
15723
|
-
const urlRegexp =
|
|
15724
|
-
// eslint-disable-next-line optimize-regex/optimize-regex
|
|
15725
|
-
/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\\[\]{};:'".,<>?«»“”‘’]))/i;
|
|
15726
|
-
|
|
15727
|
-
;// CONCATENATED MODULE: ./src/utils/index.ts
|
|
15728
|
-
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
|
|
15736
|
-
|
|
15737
|
-
|
|
15738
|
-
|
|
15739
|
-
|
|
15740
|
-
|
|
15741
15746
|
;// CONCATENATED MODULE: ./src/ld-dialog/dialog.manager.ts
|
|
15742
15747
|
|
|
15743
15748
|
|