@deskhero/dh_ui 1.48.10 → 1.50.0
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/dh_ui.es.js +293 -316
- package/dist/dh_ui.umd.js +57 -57
- package/dist/src/components/DatePicker.vue.d.ts +12 -0
- package/dist/src/components/Notification.vue.d.ts +1 -1
- package/dist/src/components/NumberRange.vue.d.ts +46 -42
- package/dist/src/components/PasswordField.vue.d.ts +1 -1
- package/dist/src/components/SearchInput.vue.d.ts +1 -1
- package/dist/src/components/TextEditor.vue.d.ts +6 -0
- package/dist/src/components/Tooltip.vue.d.ts +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dh_ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive, ref, defineComponent, useSlots, toRef, provide, computed, onMounted, onUnmounted, watch, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps, isRef, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createBlock, Teleport, createCommentVNode, inject, withKeys, withModifiers, Transition, createElementVNode, Fragment, normalizeStyle, createTextVNode, toDisplayString, resolveDynamicComponent, nextTick, withDirectives, vShow, onBeforeUpdate, getCurrentScope, onScopeDispose, vModelCheckbox, shallowRef, onBeforeUnmount, toRaw, h, isProxy, resolveComponent, vModelText, useCssVars, toRefs, getCurrentInstance, vModelDynamic,
|
|
1
|
+
import { reactive, ref, defineComponent, useSlots, toRef, provide, computed, onMounted, onUnmounted, watch, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps, isRef, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createBlock, Teleport, createCommentVNode, inject, withKeys, withModifiers, Transition, createElementVNode, Fragment, normalizeStyle, createTextVNode, toDisplayString, resolveDynamicComponent, nextTick, withDirectives, vShow, onBeforeUpdate, getCurrentScope, onScopeDispose, vModelCheckbox, shallowRef, onBeforeUnmount, toRaw, h, isProxy, resolveComponent, pushScopeId, popScopeId, vModelText, useCssVars, toRefs, getCurrentInstance, vModelDynamic, createApp } from "vue";
|
|
2
2
|
var main$1 = "";
|
|
3
3
|
function toInteger(dirtyNumber) {
|
|
4
4
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
@@ -23197,128 +23197,12 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23197
23197
|
], 34);
|
|
23198
23198
|
}
|
|
23199
23199
|
var MultiRangeSlider = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$6]]);
|
|
23200
|
-
const _sfc_main$o = defineComponent({
|
|
23201
|
-
components: { DhIcon },
|
|
23202
|
-
props: {
|
|
23203
|
-
mainText: {
|
|
23204
|
-
type: String,
|
|
23205
|
-
default: "Advanced"
|
|
23206
|
-
},
|
|
23207
|
-
filterMissingText: {
|
|
23208
|
-
type: String,
|
|
23209
|
-
default: "Filter Missing"
|
|
23210
|
-
},
|
|
23211
|
-
matchText: {
|
|
23212
|
-
type: String,
|
|
23213
|
-
default: "Match"
|
|
23214
|
-
},
|
|
23215
|
-
excludeText: {
|
|
23216
|
-
type: String,
|
|
23217
|
-
default: "Exclude"
|
|
23218
|
-
}
|
|
23219
|
-
},
|
|
23220
|
-
data() {
|
|
23221
|
-
return {
|
|
23222
|
-
activeFilter: false,
|
|
23223
|
-
isFilterMissing: false,
|
|
23224
|
-
isMatch: false,
|
|
23225
|
-
isExclude: false
|
|
23226
|
-
};
|
|
23227
|
-
},
|
|
23228
|
-
emits: ["match", "exclude", "filter_missing"],
|
|
23229
|
-
mounted() {
|
|
23230
|
-
this.isMatch = true;
|
|
23231
|
-
},
|
|
23232
|
-
methods: {
|
|
23233
|
-
toggleFilter() {
|
|
23234
|
-
this.activeFilter = !this.activeFilter;
|
|
23235
|
-
},
|
|
23236
|
-
matchFilter() {
|
|
23237
|
-
this.isMatch = true;
|
|
23238
|
-
this.isExclude = false;
|
|
23239
|
-
this.$emit("match", this.isMatch);
|
|
23240
|
-
},
|
|
23241
|
-
excludeFilter() {
|
|
23242
|
-
this.isMatch = false;
|
|
23243
|
-
this.isExclude = true;
|
|
23244
|
-
this.$emit("exclude", this.isExclude);
|
|
23245
|
-
},
|
|
23246
|
-
missingFilter() {
|
|
23247
|
-
this.isFilterMissing = !this.isFilterMissing;
|
|
23248
|
-
this.$emit("filter_missing", this.isFilterMissing);
|
|
23249
|
-
if (this.isFilterMissing && this.isMatch) {
|
|
23250
|
-
this.matchFilter();
|
|
23251
|
-
} else if (this.isFilterMissing && this.isExclude) {
|
|
23252
|
-
this.excludeFilter();
|
|
23253
|
-
}
|
|
23254
|
-
}
|
|
23255
|
-
}
|
|
23256
|
-
});
|
|
23257
|
-
const _hoisted_1$o = { class: "dh-advanced-filter-container" };
|
|
23258
|
-
const _hoisted_2$n = { class: "advance_section" };
|
|
23259
|
-
const _hoisted_3$f = { key: 0 };
|
|
23260
|
-
const _hoisted_4$c = { class: "list-none" };
|
|
23261
|
-
const _hoisted_5$7 = ["checked"];
|
|
23262
|
-
const _hoisted_6$7 = ["checked"];
|
|
23263
|
-
const _hoisted_7$6 = ["checked"];
|
|
23264
|
-
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23265
|
-
const _component_dh_icon = resolveComponent("dh-icon");
|
|
23266
|
-
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
23267
|
-
createElementVNode("div", _hoisted_2$n, [
|
|
23268
|
-
createElementVNode("span", {
|
|
23269
|
-
class: "toggle-icon",
|
|
23270
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFilter())
|
|
23271
|
-
}, [
|
|
23272
|
-
createTextVNode(toDisplayString(_ctx.mainText) + " ", 1),
|
|
23273
|
-
createVNode(_component_dh_icon, {
|
|
23274
|
-
"icon-name": _ctx.activeFilter ? "arrow-up" : "arrow-down",
|
|
23275
|
-
size: 20
|
|
23276
|
-
}, null, 8, ["icon-name"])
|
|
23277
|
-
]),
|
|
23278
|
-
_ctx.activeFilter ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
23279
|
-
renderSlot(_ctx.$slots, "default"),
|
|
23280
|
-
createElementVNode("ul", _hoisted_4$c, [
|
|
23281
|
-
createElementVNode("li", null, [
|
|
23282
|
-
createElementVNode("label", null, [
|
|
23283
|
-
createElementVNode("input", {
|
|
23284
|
-
checked: _ctx.isFilterMissing,
|
|
23285
|
-
name: "number_filter",
|
|
23286
|
-
type: "checkbox",
|
|
23287
|
-
onChange: _cache[1] || (_cache[1] = ($event) => _ctx.missingFilter())
|
|
23288
|
-
}, null, 40, _hoisted_5$7),
|
|
23289
|
-
createTextVNode(" " + toDisplayString(_ctx.filterMissingText), 1)
|
|
23290
|
-
])
|
|
23291
|
-
]),
|
|
23292
|
-
createElementVNode("li", null, [
|
|
23293
|
-
createElementVNode("label", null, [
|
|
23294
|
-
createElementVNode("input", {
|
|
23295
|
-
checked: _ctx.isMatch,
|
|
23296
|
-
name: "number_filter",
|
|
23297
|
-
type: "radio",
|
|
23298
|
-
onChange: _cache[2] || (_cache[2] = ($event) => _ctx.matchFilter())
|
|
23299
|
-
}, null, 40, _hoisted_6$7),
|
|
23300
|
-
createTextVNode(" " + toDisplayString(_ctx.matchText), 1)
|
|
23301
|
-
]),
|
|
23302
|
-
createElementVNode("label", null, [
|
|
23303
|
-
createElementVNode("input", {
|
|
23304
|
-
checked: _ctx.isExclude,
|
|
23305
|
-
name: "number_filter",
|
|
23306
|
-
type: "radio",
|
|
23307
|
-
onChange: _cache[3] || (_cache[3] = ($event) => _ctx.excludeFilter())
|
|
23308
|
-
}, null, 40, _hoisted_7$6),
|
|
23309
|
-
createTextVNode(" " + toDisplayString(_ctx.excludeText), 1)
|
|
23310
|
-
])
|
|
23311
|
-
])
|
|
23312
|
-
])
|
|
23313
|
-
])) : createCommentVNode("", true)
|
|
23314
|
-
])
|
|
23315
|
-
]);
|
|
23316
|
-
}
|
|
23317
|
-
var DhAdvancedFilter = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$5]]);
|
|
23318
23200
|
var MultiRangeSliderBarOnly = "";
|
|
23201
|
+
var NumberRange_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23319
23202
|
Chart.register(plugin_tooltip, BarElement, CategoryScale, LinearScale);
|
|
23320
|
-
const _sfc_main$
|
|
23321
|
-
components: { Bar, MultiRangeSlider
|
|
23203
|
+
const _sfc_main$o = defineComponent({
|
|
23204
|
+
components: { Bar, MultiRangeSlider },
|
|
23205
|
+
emits: ["update"],
|
|
23322
23206
|
props: {
|
|
23323
23207
|
numberRange: {
|
|
23324
23208
|
type: Array,
|
|
@@ -23340,13 +23224,21 @@ const _sfc_main$n = defineComponent({
|
|
|
23340
23224
|
type: String,
|
|
23341
23225
|
default: "label"
|
|
23342
23226
|
},
|
|
23343
|
-
steps: {
|
|
23344
|
-
type: Number,
|
|
23345
|
-
default: 1
|
|
23346
|
-
},
|
|
23347
23227
|
includeForm: {
|
|
23348
23228
|
type: Boolean,
|
|
23349
23229
|
default: false
|
|
23230
|
+
},
|
|
23231
|
+
isMatch: {
|
|
23232
|
+
type: Boolean,
|
|
23233
|
+
default: true
|
|
23234
|
+
},
|
|
23235
|
+
isExclude: {
|
|
23236
|
+
type: Boolean,
|
|
23237
|
+
default: false
|
|
23238
|
+
},
|
|
23239
|
+
isDisable: {
|
|
23240
|
+
type: Boolean,
|
|
23241
|
+
default: false
|
|
23350
23242
|
}
|
|
23351
23243
|
},
|
|
23352
23244
|
data() {
|
|
@@ -23368,9 +23260,6 @@ const _sfc_main$n = defineComponent({
|
|
|
23368
23260
|
plugins: {
|
|
23369
23261
|
legend: {
|
|
23370
23262
|
display: false
|
|
23371
|
-
},
|
|
23372
|
-
tooltip: {
|
|
23373
|
-
enabled: false
|
|
23374
23263
|
}
|
|
23375
23264
|
},
|
|
23376
23265
|
scales: {
|
|
@@ -23394,69 +23283,88 @@ const _sfc_main$n = defineComponent({
|
|
|
23394
23283
|
}
|
|
23395
23284
|
}
|
|
23396
23285
|
},
|
|
23397
|
-
|
|
23398
|
-
|
|
23399
|
-
max: this.maxNumber(this.numberRange),
|
|
23400
|
-
rangeMax: this.numberRange.length,
|
|
23401
|
-
chart_dta: [],
|
|
23402
|
-
BarMinValue: 1,
|
|
23403
|
-
BarMaxValue: this.numberRange.length,
|
|
23404
|
-
activeFilter: false,
|
|
23286
|
+
min: 0,
|
|
23287
|
+
max: this.numberRange.length - 1,
|
|
23405
23288
|
validated: false,
|
|
23406
|
-
|
|
23407
|
-
|
|
23408
|
-
isDisable: false,
|
|
23409
|
-
labels: []
|
|
23289
|
+
activeColor: "#5ea9e5",
|
|
23290
|
+
inactiveColor: "#e0e0e0"
|
|
23410
23291
|
};
|
|
23411
23292
|
},
|
|
23412
23293
|
mounted() {
|
|
23413
|
-
this.isMatch = true;
|
|
23414
23294
|
this.setChartData(this.numberRange);
|
|
23415
|
-
this.
|
|
23416
|
-
|
|
23295
|
+
if (this.isDisable)
|
|
23296
|
+
this.missingFilter();
|
|
23297
|
+
},
|
|
23298
|
+
computed: {
|
|
23299
|
+
getRangeLength() {
|
|
23300
|
+
return this.numberRange.length;
|
|
23301
|
+
},
|
|
23302
|
+
getFirstKey() {
|
|
23303
|
+
return this.numberRange[0].key;
|
|
23304
|
+
},
|
|
23305
|
+
getLastKey() {
|
|
23306
|
+
return this.numberRange[this.getRangeLength - 1].key;
|
|
23307
|
+
},
|
|
23308
|
+
getMinKey() {
|
|
23309
|
+
return `${this.numberRange[this.min].key}`;
|
|
23310
|
+
},
|
|
23311
|
+
getMaxKey() {
|
|
23312
|
+
return `${this.numberRange[this.max].key}`;
|
|
23313
|
+
},
|
|
23314
|
+
getLastIndex() {
|
|
23315
|
+
return this.numberRange.length - 1;
|
|
23316
|
+
}
|
|
23417
23317
|
},
|
|
23418
23318
|
methods: {
|
|
23319
|
+
updateRange() {
|
|
23320
|
+
const minKey = this.getMinKey;
|
|
23321
|
+
const maxKey = this.getMaxKey;
|
|
23322
|
+
this.$emit("update", { minKey, maxKey });
|
|
23323
|
+
},
|
|
23324
|
+
updateBarChart(e2) {
|
|
23325
|
+
const { minValue, maxValue } = e2;
|
|
23326
|
+
this.min = minValue;
|
|
23327
|
+
this.max = maxValue;
|
|
23328
|
+
if (!this.isDisable) {
|
|
23329
|
+
if (this.isExclude)
|
|
23330
|
+
this.excludeFilter();
|
|
23331
|
+
else
|
|
23332
|
+
this.matchFilter();
|
|
23333
|
+
}
|
|
23334
|
+
},
|
|
23419
23335
|
matchFilter() {
|
|
23420
23336
|
if (!this.isDisable) {
|
|
23421
|
-
this.isMatch = true;
|
|
23422
|
-
this.isExclude = false;
|
|
23423
23337
|
var data = this.chartData.datasets[0].data;
|
|
23424
|
-
this.chartLines = this.chartData.datasets[0];
|
|
23425
23338
|
this.chartData.datasets[0].backgroundColor = [];
|
|
23426
23339
|
for (let i2 = 0; i2 <= data.length; i2++) {
|
|
23427
|
-
if (
|
|
23428
|
-
this.chartData.datasets[0].backgroundColor.push(
|
|
23340
|
+
if (i2 >= this.min && i2 <= this.max) {
|
|
23341
|
+
this.chartData.datasets[0].backgroundColor.push(this.activeColor);
|
|
23429
23342
|
} else {
|
|
23430
|
-
this.chartData.datasets[0].backgroundColor.push(
|
|
23343
|
+
this.chartData.datasets[0].backgroundColor.push(this.inactiveColor);
|
|
23431
23344
|
}
|
|
23432
23345
|
}
|
|
23433
23346
|
}
|
|
23434
23347
|
},
|
|
23435
23348
|
excludeFilter() {
|
|
23436
23349
|
if (!this.isDisable) {
|
|
23437
|
-
this.isMatch = false;
|
|
23438
|
-
this.isExclude = true;
|
|
23439
23350
|
var data = this.chartData.datasets[0].data;
|
|
23440
|
-
this.chartLines = this.chartData.datasets[0];
|
|
23441
23351
|
this.chartData.datasets[0].backgroundColor = [];
|
|
23442
23352
|
for (let i2 = 0; i2 < data.length; i2++) {
|
|
23443
|
-
if (
|
|
23444
|
-
this.chartData.datasets[0].backgroundColor.push(
|
|
23353
|
+
if (i2 >= this.min && i2 <= this.max) {
|
|
23354
|
+
this.chartData.datasets[0].backgroundColor.push(this.inactiveColor);
|
|
23445
23355
|
} else {
|
|
23446
|
-
this.chartData.datasets[0].backgroundColor.push(
|
|
23356
|
+
this.chartData.datasets[0].backgroundColor.push(this.activeColor);
|
|
23447
23357
|
}
|
|
23448
23358
|
}
|
|
23449
23359
|
}
|
|
23450
23360
|
},
|
|
23451
23361
|
missingFilter() {
|
|
23452
|
-
this.isDisable = !this.isDisable;
|
|
23453
23362
|
this.validated = !this.validated;
|
|
23454
23363
|
var data = this.chartData.datasets[0].data;
|
|
23455
|
-
this.chartLines = this.chartData.datasets[0];
|
|
23456
23364
|
this.chartData.datasets[0].backgroundColor = [];
|
|
23457
23365
|
if (this.validated) {
|
|
23458
23366
|
for (let i2 = 1; i2 <= data.length; i2++) {
|
|
23459
|
-
this.chartData.datasets[0].backgroundColor.push(
|
|
23367
|
+
this.chartData.datasets[0].backgroundColor.push(this.inactiveColor);
|
|
23460
23368
|
}
|
|
23461
23369
|
} else {
|
|
23462
23370
|
if (this.isMatch) {
|
|
@@ -23468,9 +23376,8 @@ const _sfc_main$n = defineComponent({
|
|
|
23468
23376
|
}
|
|
23469
23377
|
},
|
|
23470
23378
|
changeMin(e2) {
|
|
23471
|
-
let minValue = e2.target.value;
|
|
23472
|
-
this.min = minValue ? minValue :
|
|
23473
|
-
this.BarMinValue = minValue ? this.getFirstIndex(parseInt(minValue)) : 1;
|
|
23379
|
+
let minValue = parseInt(e2.target.value);
|
|
23380
|
+
this.min = minValue ? minValue : 0;
|
|
23474
23381
|
if (this.isMatch && !this.isDisable) {
|
|
23475
23382
|
this.matchFilter();
|
|
23476
23383
|
}
|
|
@@ -23479,9 +23386,8 @@ const _sfc_main$n = defineComponent({
|
|
|
23479
23386
|
}
|
|
23480
23387
|
},
|
|
23481
23388
|
changeMax(e2) {
|
|
23482
|
-
let maxValue = e2.target.value;
|
|
23483
|
-
this.
|
|
23484
|
-
this.max = maxValue && maxValue > this.maxNumber(this.numberRange) ? this.maxNumber(this.numberRange) : maxValue;
|
|
23389
|
+
let maxValue = parseInt(e2.target.value);
|
|
23390
|
+
this.max = maxValue;
|
|
23485
23391
|
if (this.isMatch && !this.isDisable) {
|
|
23486
23392
|
this.matchFilter();
|
|
23487
23393
|
}
|
|
@@ -23490,103 +23396,31 @@ const _sfc_main$n = defineComponent({
|
|
|
23490
23396
|
}
|
|
23491
23397
|
},
|
|
23492
23398
|
setChartData(chart_data) {
|
|
23493
|
-
|
|
23494
|
-
|
|
23495
|
-
let key = this.chartData.labels;
|
|
23399
|
+
let labels = this.chartData.labels;
|
|
23400
|
+
let values = [];
|
|
23496
23401
|
for (let j = 0; j < chart_data.length; j++) {
|
|
23497
|
-
|
|
23498
|
-
|
|
23499
|
-
}
|
|
23500
|
-
this.chartData.datasets[0].data = this.chart_dta;
|
|
23501
|
-
},
|
|
23502
|
-
highlightChart() {
|
|
23503
|
-
var data = this.chartData.datasets[0].data;
|
|
23504
|
-
this.chartLines = this.chartData.datasets[0];
|
|
23505
|
-
this.chartData.datasets[0].backgroundColor = [];
|
|
23506
|
-
for (let i2 = 0; i2 <= data.length; i2++) {
|
|
23507
|
-
if (data[i2] >= this.min && data[i2] <= this.max) {
|
|
23508
|
-
this.chartData.datasets[0].backgroundColor.push("#5ea9e5");
|
|
23509
|
-
} else {
|
|
23510
|
-
this.chartData.datasets[0].backgroundColor.push("#e0e0e0");
|
|
23511
|
-
}
|
|
23512
|
-
}
|
|
23513
|
-
},
|
|
23514
|
-
updateBarChart(e2) {
|
|
23515
|
-
const { minValue, maxValue } = e2;
|
|
23516
|
-
this.BarMinValue = minValue;
|
|
23517
|
-
this.BarMaxValue = maxValue;
|
|
23518
|
-
var data = this.chartData.datasets[0].data;
|
|
23519
|
-
this.min = data[this.BarMinValue] ? data[this.BarMinValue] : "1";
|
|
23520
|
-
this.max = data[this.BarMaxValue] ? data[this.BarMaxValue] : this.max;
|
|
23521
|
-
if (this.isMatch && !this.isDisable) {
|
|
23522
|
-
this.matchFilter();
|
|
23402
|
+
labels.push(chart_data[j].key);
|
|
23403
|
+
values.push(chart_data[j].count);
|
|
23523
23404
|
}
|
|
23524
|
-
|
|
23525
|
-
this.excludeFilter();
|
|
23526
|
-
}
|
|
23527
|
-
},
|
|
23528
|
-
toggleFilter() {
|
|
23529
|
-
this.activeFilter = !this.activeFilter;
|
|
23530
|
-
},
|
|
23531
|
-
removeChartData() {
|
|
23532
|
-
this.chartData.labels = [];
|
|
23533
|
-
this.chartData.datasets[0].data = [];
|
|
23534
|
-
this.chart_dta = [];
|
|
23535
|
-
},
|
|
23536
|
-
sortData(arr) {
|
|
23537
|
-
return arr.slice().sort(function(a3, b2) {
|
|
23538
|
-
return a3.count - b2.count;
|
|
23539
|
-
});
|
|
23540
|
-
},
|
|
23541
|
-
maxNumber(arr) {
|
|
23542
|
-
if (arr.length == 0)
|
|
23543
|
-
return;
|
|
23544
|
-
return arr.reduce((acc, shot) => acc = acc > shot.count ? acc : shot.count, 0);
|
|
23545
|
-
},
|
|
23546
|
-
getLastIndex(index) {
|
|
23547
|
-
let data = this.chartData.datasets[0].data;
|
|
23548
|
-
let indexVal = 0;
|
|
23549
|
-
for (let i2 = index; i2 >= 0; i2--) {
|
|
23550
|
-
if (data.lastIndexOf(i2) !== -1) {
|
|
23551
|
-
indexVal = data.lastIndexOf(i2);
|
|
23552
|
-
break;
|
|
23553
|
-
} else {
|
|
23554
|
-
continue;
|
|
23555
|
-
}
|
|
23556
|
-
}
|
|
23557
|
-
return indexVal;
|
|
23558
|
-
},
|
|
23559
|
-
getFirstIndex(index) {
|
|
23560
|
-
let data = this.chartData.datasets[0].data;
|
|
23561
|
-
let indexVal = 0;
|
|
23562
|
-
for (let i2 = index; i2 <= this.max; i2++) {
|
|
23563
|
-
if (data.lastIndexOf(i2) !== -1) {
|
|
23564
|
-
indexVal = data.lastIndexOf(i2);
|
|
23565
|
-
break;
|
|
23566
|
-
} else {
|
|
23567
|
-
continue;
|
|
23568
|
-
}
|
|
23569
|
-
}
|
|
23570
|
-
return indexVal;
|
|
23405
|
+
this.chartData.datasets[0].data = values;
|
|
23571
23406
|
}
|
|
23572
23407
|
}
|
|
23573
23408
|
});
|
|
23574
|
-
const _hoisted_1$
|
|
23575
|
-
const _hoisted_2$
|
|
23576
|
-
const _hoisted_3$
|
|
23409
|
+
const _hoisted_1$o = { class: "dh-range-container" };
|
|
23410
|
+
const _hoisted_2$n = { class: "bar-chart" };
|
|
23411
|
+
const _hoisted_3$f = {
|
|
23577
23412
|
key: 0,
|
|
23578
23413
|
class: "input-group-section"
|
|
23579
23414
|
};
|
|
23580
|
-
const _hoisted_4$
|
|
23581
|
-
const _hoisted_5$
|
|
23582
|
-
const _hoisted_6$
|
|
23583
|
-
const _hoisted_7$
|
|
23584
|
-
function _sfc_render$
|
|
23415
|
+
const _hoisted_4$c = { class: "input-group sb-input" };
|
|
23416
|
+
const _hoisted_5$7 = ["disabled", "max", "value"];
|
|
23417
|
+
const _hoisted_6$7 = { class: "input-group sb-input" };
|
|
23418
|
+
const _hoisted_7$6 = ["disabled", "max", "min", "value"];
|
|
23419
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23585
23420
|
const _component_Bar = resolveComponent("Bar");
|
|
23586
23421
|
const _component_MultiRangeSlider = resolveComponent("MultiRangeSlider");
|
|
23587
|
-
|
|
23588
|
-
|
|
23589
|
-
createElementVNode("div", _hoisted_2$m, [
|
|
23422
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
23423
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
23590
23424
|
createVNode(_component_Bar, {
|
|
23591
23425
|
"chart-data": _ctx.chartData,
|
|
23592
23426
|
"chart-id": _ctx.chartId,
|
|
@@ -23597,78 +23431,72 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23597
23431
|
}, null, 8, ["chart-data", "chart-id", "chart-options", "dataset-id-key", "height", "width"]),
|
|
23598
23432
|
createVNode(_component_MultiRangeSlider, {
|
|
23599
23433
|
"base-class-name": `multi-range-slider range-slider ${_ctx.isDisable}`,
|
|
23600
|
-
label:
|
|
23601
|
-
|
|
23602
|
-
max: _ctx.
|
|
23603
|
-
"max-
|
|
23604
|
-
|
|
23605
|
-
min:
|
|
23606
|
-
"min-
|
|
23607
|
-
"min-value": _ctx.BarMinValue,
|
|
23434
|
+
label: false,
|
|
23435
|
+
max: _ctx.getLastIndex,
|
|
23436
|
+
"max-caption": _ctx.getMaxKey,
|
|
23437
|
+
"max-value": _ctx.max,
|
|
23438
|
+
min: 0,
|
|
23439
|
+
"min-caption": _ctx.getMinKey,
|
|
23440
|
+
"min-value": _ctx.min,
|
|
23608
23441
|
"range-margin": 0,
|
|
23609
23442
|
ruler: false,
|
|
23610
|
-
step:
|
|
23443
|
+
step: 1,
|
|
23611
23444
|
onInput: _ctx.updateBarChart
|
|
23612
|
-
}, null, 8, ["base-class-name", "
|
|
23445
|
+
}, null, 8, ["base-class-name", "max", "max-caption", "max-value", "min-caption", "min-value", "onInput"])
|
|
23613
23446
|
]),
|
|
23614
|
-
_ctx.includeForm ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
23615
|
-
createElementVNode("div", _hoisted_4$
|
|
23447
|
+
_ctx.includeForm ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
23448
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
23616
23449
|
createElementVNode("label", {
|
|
23617
23450
|
class: normalizeClass(`dh-body-2 input-to ${_ctx.validated ? "disable" : ""}`)
|
|
23618
23451
|
}, " From ", 2),
|
|
23619
23452
|
createElementVNode("input", {
|
|
23620
23453
|
class: "form-input text",
|
|
23621
|
-
disabled: _ctx.validated
|
|
23622
|
-
max:
|
|
23454
|
+
disabled: _ctx.validated,
|
|
23455
|
+
max: _ctx.max,
|
|
23623
23456
|
min: "1",
|
|
23624
23457
|
placeholder: "From",
|
|
23625
23458
|
type: "number",
|
|
23626
|
-
value:
|
|
23459
|
+
value: _ctx.getMinKey,
|
|
23627
23460
|
onInput: _cache[0] || (_cache[0] = ($event) => _ctx.changeMin($event))
|
|
23628
|
-
}, null, 40, _hoisted_5$
|
|
23461
|
+
}, null, 40, _hoisted_5$7)
|
|
23629
23462
|
]),
|
|
23630
|
-
createElementVNode("div", _hoisted_6$
|
|
23463
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
23631
23464
|
createElementVNode("label", {
|
|
23632
23465
|
class: normalizeClass(`dh-body-2 input-to ${_ctx.validated ? "disable" : ""}`)
|
|
23633
23466
|
}, " To ", 2),
|
|
23634
23467
|
createElementVNode("input", {
|
|
23635
23468
|
class: "form-input text",
|
|
23636
|
-
disabled: _ctx.validated
|
|
23637
|
-
max:
|
|
23638
|
-
min:
|
|
23469
|
+
disabled: _ctx.validated,
|
|
23470
|
+
max: _ctx.max,
|
|
23471
|
+
min: _ctx.min,
|
|
23639
23472
|
placeholder: "To",
|
|
23640
23473
|
type: "number",
|
|
23641
|
-
value:
|
|
23474
|
+
value: _ctx.getMaxKey,
|
|
23642
23475
|
onInput: _cache[1] || (_cache[1] = ($event) => _ctx.changeMax($event))
|
|
23643
|
-
}, null, 40, _hoisted_7$
|
|
23476
|
+
}, null, 40, _hoisted_7$6)
|
|
23644
23477
|
])
|
|
23645
23478
|
])) : createCommentVNode("", true),
|
|
23646
|
-
renderSlot(_ctx.$slots, "input"),
|
|
23647
|
-
|
|
23648
|
-
|
|
23649
|
-
|
|
23650
|
-
|
|
23651
|
-
}, {
|
|
23652
|
-
default: withCtx(() => [
|
|
23653
|
-
renderSlot(_ctx.$slots, "filter")
|
|
23654
|
-
]),
|
|
23655
|
-
_: 3
|
|
23656
|
-
}, 8, ["onExclude", "onFilter_missing", "onMatch"])
|
|
23479
|
+
renderSlot(_ctx.$slots, "input", {}, void 0, true),
|
|
23480
|
+
createElementVNode("button", {
|
|
23481
|
+
class: "btn",
|
|
23482
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.updateRange())
|
|
23483
|
+
}, "Apply")
|
|
23657
23484
|
]);
|
|
23658
23485
|
}
|
|
23659
|
-
var DhNumberRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23486
|
+
var DhNumberRange = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$5], ["__scopeId", "data-v-65816419"]]);
|
|
23660
23487
|
var main = "";
|
|
23661
|
-
var
|
|
23662
|
-
const
|
|
23663
|
-
const
|
|
23488
|
+
var AdvancedDatePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23489
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-f12ea7b0"), n = n(), popScopeId(), n);
|
|
23490
|
+
const _hoisted_1$n = { id: "dp-container" };
|
|
23491
|
+
const _hoisted_2$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "dp__calendar_range" }, [
|
|
23664
23492
|
/* @__PURE__ */ createElementVNode("p", null, "From"),
|
|
23665
23493
|
/* @__PURE__ */ createElementVNode("p", null, "To")
|
|
23666
|
-
], -1);
|
|
23667
|
-
const _hoisted_3$
|
|
23668
|
-
const _hoisted_4$
|
|
23669
|
-
const _hoisted_5$
|
|
23670
|
-
const _hoisted_6$
|
|
23671
|
-
const _hoisted_7$
|
|
23494
|
+
], -1));
|
|
23495
|
+
const _hoisted_3$e = { class: "dp__multi" };
|
|
23496
|
+
const _hoisted_4$b = ["value"];
|
|
23497
|
+
const _hoisted_5$6 = ["value"];
|
|
23498
|
+
const _hoisted_6$6 = /* @__PURE__ */ createTextVNode(" Back ");
|
|
23499
|
+
const _hoisted_7$5 = ["onClick"];
|
|
23672
23500
|
const _hoisted_8$3 = ["onClick"];
|
|
23673
23501
|
const _hoisted_9$2 = ["onClick"];
|
|
23674
23502
|
const _hoisted_10$2 = ["onClick"];
|
|
@@ -23676,11 +23504,11 @@ const _hoisted_11$2 = ["onClick"];
|
|
|
23676
23504
|
const _hoisted_12$2 = ["onClick"];
|
|
23677
23505
|
const _hoisted_13$2 = ["onClick"];
|
|
23678
23506
|
const _hoisted_14$2 = ["onClick"];
|
|
23679
|
-
const _hoisted_15$2 = /* @__PURE__ */ createElementVNode("div", {
|
|
23507
|
+
const _hoisted_15$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", {
|
|
23680
23508
|
id: "tags",
|
|
23681
23509
|
class: "dp__calendar_tags"
|
|
23682
|
-
}, null, -1);
|
|
23683
|
-
const _sfc_main$
|
|
23510
|
+
}, null, -1));
|
|
23511
|
+
const _sfc_main$n = {
|
|
23684
23512
|
__name: "AdvancedDatePicker",
|
|
23685
23513
|
props: {
|
|
23686
23514
|
numberRange: {
|
|
@@ -23773,8 +23601,8 @@ const _sfc_main$m = {
|
|
|
23773
23601
|
datePicker.value.openMenu();
|
|
23774
23602
|
}
|
|
23775
23603
|
return (_ctx, _cache) => {
|
|
23776
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23777
|
-
_hoisted_2$
|
|
23604
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
23605
|
+
_hoisted_2$m,
|
|
23778
23606
|
createVNode(unref(ca), {
|
|
23779
23607
|
ref_key: "datePicker",
|
|
23780
23608
|
ref: datePicker,
|
|
@@ -23800,21 +23628,21 @@ const _sfc_main$m = {
|
|
|
23800
23628
|
onClosed: reOpen
|
|
23801
23629
|
}, {
|
|
23802
23630
|
"dp-input": withCtx(() => [
|
|
23803
|
-
createElementVNode("div", _hoisted_3$
|
|
23631
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
23804
23632
|
createElementVNode("input", {
|
|
23805
23633
|
class: "dp__input dp__multi_input",
|
|
23806
23634
|
placeholder: "MM/DD/YYYY",
|
|
23807
23635
|
type: "text",
|
|
23808
23636
|
value: minDate.value ? minDate.value : date.value[0],
|
|
23809
23637
|
onInput: _cache[0] || (_cache[0] = ($event) => changeFirstDate($event))
|
|
23810
|
-
}, null, 40, _hoisted_4$
|
|
23638
|
+
}, null, 40, _hoisted_4$b),
|
|
23811
23639
|
createElementVNode("input", {
|
|
23812
23640
|
class: "dp__input dp__multi_input",
|
|
23813
23641
|
placeholder: "MM/DD/YYYY",
|
|
23814
23642
|
type: "text",
|
|
23815
23643
|
value: maxDate.value ? maxDate.value : date.value[1],
|
|
23816
23644
|
onInput: _cache[1] || (_cache[1] = ($event) => changeSecondDate($event))
|
|
23817
|
-
}, null, 40, _hoisted_5$
|
|
23645
|
+
}, null, 40, _hoisted_5$6)
|
|
23818
23646
|
])
|
|
23819
23647
|
]),
|
|
23820
23648
|
"arrow-left": withCtx(() => [
|
|
@@ -23830,7 +23658,7 @@ const _sfc_main$m = {
|
|
|
23830
23658
|
})
|
|
23831
23659
|
]),
|
|
23832
23660
|
"calendar-icon": withCtx(() => [
|
|
23833
|
-
_hoisted_6$
|
|
23661
|
+
_hoisted_6$6
|
|
23834
23662
|
]),
|
|
23835
23663
|
"clear-icon": withCtx(() => []),
|
|
23836
23664
|
"action-preview": withCtx(() => []),
|
|
@@ -23839,7 +23667,7 @@ const _sfc_main$m = {
|
|
|
23839
23667
|
(openBlock(), createBlock(Teleport, { to: "#tags" }, [
|
|
23840
23668
|
createElementVNode("span", {
|
|
23841
23669
|
onClick: ($event) => presetDateRange(range)
|
|
23842
|
-
}, toDisplayString(label), 9, _hoisted_7$
|
|
23670
|
+
}, toDisplayString(label), 9, _hoisted_7$5)
|
|
23843
23671
|
]))
|
|
23844
23672
|
]),
|
|
23845
23673
|
week: withCtx(({ label, range, presetDateRange }) => [
|
|
@@ -23914,6 +23742,125 @@ const _sfc_main$m = {
|
|
|
23914
23742
|
};
|
|
23915
23743
|
}
|
|
23916
23744
|
};
|
|
23745
|
+
var AdvancedDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-f12ea7b0"]]);
|
|
23746
|
+
const _sfc_main$m = defineComponent({
|
|
23747
|
+
components: { DhIcon },
|
|
23748
|
+
props: {
|
|
23749
|
+
mainText: {
|
|
23750
|
+
type: String,
|
|
23751
|
+
default: "Advanced"
|
|
23752
|
+
},
|
|
23753
|
+
filterMissingText: {
|
|
23754
|
+
type: String,
|
|
23755
|
+
default: "Filter Missing"
|
|
23756
|
+
},
|
|
23757
|
+
matchText: {
|
|
23758
|
+
type: String,
|
|
23759
|
+
default: "Match"
|
|
23760
|
+
},
|
|
23761
|
+
excludeText: {
|
|
23762
|
+
type: String,
|
|
23763
|
+
default: "Exclude"
|
|
23764
|
+
}
|
|
23765
|
+
},
|
|
23766
|
+
data() {
|
|
23767
|
+
return {
|
|
23768
|
+
activeFilter: false,
|
|
23769
|
+
isFilterMissing: false,
|
|
23770
|
+
isMatch: false,
|
|
23771
|
+
isExclude: false
|
|
23772
|
+
};
|
|
23773
|
+
},
|
|
23774
|
+
emits: ["match", "exclude", "filter_missing"],
|
|
23775
|
+
mounted() {
|
|
23776
|
+
this.isMatch = true;
|
|
23777
|
+
},
|
|
23778
|
+
methods: {
|
|
23779
|
+
toggleFilter() {
|
|
23780
|
+
this.activeFilter = !this.activeFilter;
|
|
23781
|
+
},
|
|
23782
|
+
matchFilter() {
|
|
23783
|
+
this.isMatch = true;
|
|
23784
|
+
this.isExclude = false;
|
|
23785
|
+
this.$emit("match", this.isMatch);
|
|
23786
|
+
},
|
|
23787
|
+
excludeFilter() {
|
|
23788
|
+
this.isMatch = false;
|
|
23789
|
+
this.isExclude = true;
|
|
23790
|
+
this.$emit("exclude", this.isExclude);
|
|
23791
|
+
},
|
|
23792
|
+
missingFilter() {
|
|
23793
|
+
this.isFilterMissing = !this.isFilterMissing;
|
|
23794
|
+
this.$emit("filter_missing", this.isFilterMissing);
|
|
23795
|
+
if (this.isFilterMissing && this.isMatch) {
|
|
23796
|
+
this.matchFilter();
|
|
23797
|
+
} else if (this.isFilterMissing && this.isExclude) {
|
|
23798
|
+
this.excludeFilter();
|
|
23799
|
+
}
|
|
23800
|
+
}
|
|
23801
|
+
}
|
|
23802
|
+
});
|
|
23803
|
+
const _hoisted_1$m = { class: "dh-advanced-filter-container" };
|
|
23804
|
+
const _hoisted_2$l = { class: "advance_section" };
|
|
23805
|
+
const _hoisted_3$d = { key: 0 };
|
|
23806
|
+
const _hoisted_4$a = { class: "list-none" };
|
|
23807
|
+
const _hoisted_5$5 = ["checked"];
|
|
23808
|
+
const _hoisted_6$5 = ["checked"];
|
|
23809
|
+
const _hoisted_7$4 = ["checked"];
|
|
23810
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23811
|
+
const _component_dh_icon = resolveComponent("dh-icon");
|
|
23812
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
23813
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
23814
|
+
createElementVNode("span", {
|
|
23815
|
+
class: "toggle-icon",
|
|
23816
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFilter())
|
|
23817
|
+
}, [
|
|
23818
|
+
createTextVNode(toDisplayString(_ctx.mainText) + " ", 1),
|
|
23819
|
+
createVNode(_component_dh_icon, {
|
|
23820
|
+
"icon-name": _ctx.activeFilter ? "arrow-up" : "arrow-down",
|
|
23821
|
+
size: 20
|
|
23822
|
+
}, null, 8, ["icon-name"])
|
|
23823
|
+
]),
|
|
23824
|
+
_ctx.activeFilter ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
|
|
23825
|
+
renderSlot(_ctx.$slots, "default"),
|
|
23826
|
+
createElementVNode("ul", _hoisted_4$a, [
|
|
23827
|
+
createElementVNode("li", null, [
|
|
23828
|
+
createElementVNode("label", null, [
|
|
23829
|
+
createElementVNode("input", {
|
|
23830
|
+
checked: _ctx.isFilterMissing,
|
|
23831
|
+
name: "number_filter",
|
|
23832
|
+
type: "checkbox",
|
|
23833
|
+
onChange: _cache[1] || (_cache[1] = ($event) => _ctx.missingFilter())
|
|
23834
|
+
}, null, 40, _hoisted_5$5),
|
|
23835
|
+
createTextVNode(" " + toDisplayString(_ctx.filterMissingText), 1)
|
|
23836
|
+
])
|
|
23837
|
+
]),
|
|
23838
|
+
createElementVNode("li", null, [
|
|
23839
|
+
createElementVNode("label", null, [
|
|
23840
|
+
createElementVNode("input", {
|
|
23841
|
+
checked: _ctx.isMatch,
|
|
23842
|
+
name: "number_filter",
|
|
23843
|
+
type: "radio",
|
|
23844
|
+
onChange: _cache[2] || (_cache[2] = ($event) => _ctx.matchFilter())
|
|
23845
|
+
}, null, 40, _hoisted_6$5),
|
|
23846
|
+
createTextVNode(" " + toDisplayString(_ctx.matchText), 1)
|
|
23847
|
+
]),
|
|
23848
|
+
createElementVNode("label", null, [
|
|
23849
|
+
createElementVNode("input", {
|
|
23850
|
+
checked: _ctx.isExclude,
|
|
23851
|
+
name: "number_filter",
|
|
23852
|
+
type: "radio",
|
|
23853
|
+
onChange: _cache[3] || (_cache[3] = ($event) => _ctx.excludeFilter())
|
|
23854
|
+
}, null, 40, _hoisted_7$4),
|
|
23855
|
+
createTextVNode(" " + toDisplayString(_ctx.excludeText), 1)
|
|
23856
|
+
])
|
|
23857
|
+
])
|
|
23858
|
+
])
|
|
23859
|
+
])) : createCommentVNode("", true)
|
|
23860
|
+
])
|
|
23861
|
+
]);
|
|
23862
|
+
}
|
|
23863
|
+
var AdvancedFilter = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$4]]);
|
|
23917
23864
|
const _sfc_main$l = defineComponent({
|
|
23918
23865
|
props: {
|
|
23919
23866
|
target: { type: String, required: true },
|
|
@@ -24041,6 +23988,18 @@ const _sfc_main$j = {
|
|
|
24041
23988
|
inline: {
|
|
24042
23989
|
type: Boolean,
|
|
24043
23990
|
default: true
|
|
23991
|
+
},
|
|
23992
|
+
multiCalendars: {
|
|
23993
|
+
type: Boolean,
|
|
23994
|
+
default: false
|
|
23995
|
+
},
|
|
23996
|
+
range: {
|
|
23997
|
+
type: Boolean,
|
|
23998
|
+
default: false
|
|
23999
|
+
},
|
|
24000
|
+
enableTimePicker: {
|
|
24001
|
+
type: Boolean,
|
|
24002
|
+
default: false
|
|
24044
24003
|
}
|
|
24045
24004
|
},
|
|
24046
24005
|
emits: ["update"],
|
|
@@ -24069,15 +24028,18 @@ const _sfc_main$j = {
|
|
|
24069
24028
|
handleDate
|
|
24070
24029
|
],
|
|
24071
24030
|
"day-names": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
24072
|
-
"enable-time-picker": false,
|
|
24073
24031
|
inline: __props.inline,
|
|
24074
24032
|
markers: markers.value,
|
|
24033
|
+
"enable-time-picker": __props.enableTimePicker,
|
|
24075
24034
|
"month-name-format": "short",
|
|
24076
24035
|
offset: 12,
|
|
24077
24036
|
placeholder: "MM/DD/YYYY",
|
|
24037
|
+
format: "MM/dd/yyyy",
|
|
24078
24038
|
"select-text": "Apply",
|
|
24079
24039
|
"text-input": "",
|
|
24080
|
-
uid: "base"
|
|
24040
|
+
uid: "base",
|
|
24041
|
+
"multi-calendars": __props.multiCalendars,
|
|
24042
|
+
range: __props.range || __props.multiCalendars
|
|
24081
24043
|
}, {
|
|
24082
24044
|
"arrow-left": withCtx(() => [
|
|
24083
24045
|
createVNode(DhIcon, {
|
|
@@ -24100,7 +24062,7 @@ const _sfc_main$j = {
|
|
|
24100
24062
|
_hoisted_2$i
|
|
24101
24063
|
]),
|
|
24102
24064
|
_: 1
|
|
24103
|
-
}, 8, ["modelValue", "inline", "markers"])
|
|
24065
|
+
}, 8, ["modelValue", "inline", "markers", "enable-time-picker", "multi-calendars", "range"])
|
|
24104
24066
|
]);
|
|
24105
24067
|
};
|
|
24106
24068
|
}
|
|
@@ -27489,7 +27451,7 @@ const _sfc_main$8 = defineComponent({
|
|
|
27489
27451
|
if (this.dismissible && ["toast", "bottom-message"].includes(this.notificationType)) {
|
|
27490
27452
|
setTimeout(() => {
|
|
27491
27453
|
this.close();
|
|
27492
|
-
},
|
|
27454
|
+
}, 5e3);
|
|
27493
27455
|
}
|
|
27494
27456
|
},
|
|
27495
27457
|
emits: ["action"],
|
|
@@ -43279,7 +43241,7 @@ const _hoisted_7$1 = {
|
|
|
43279
43241
|
href: "https://deskhero.com",
|
|
43280
43242
|
target: "_blank"
|
|
43281
43243
|
};
|
|
43282
|
-
const _hoisted_8 =
|
|
43244
|
+
const _hoisted_8 = ["id"];
|
|
43283
43245
|
const _sfc_main$1 = {
|
|
43284
43246
|
__name: "TextEditor",
|
|
43285
43247
|
props: {
|
|
@@ -43320,6 +43282,10 @@ const _sfc_main$1 = {
|
|
|
43320
43282
|
default: "Start typing...",
|
|
43321
43283
|
required: false
|
|
43322
43284
|
},
|
|
43285
|
+
holder: {
|
|
43286
|
+
type: String,
|
|
43287
|
+
required: true
|
|
43288
|
+
},
|
|
43323
43289
|
wordCount: {
|
|
43324
43290
|
type: Boolean,
|
|
43325
43291
|
default: false,
|
|
@@ -43332,13 +43298,14 @@ const _sfc_main$1 = {
|
|
|
43332
43298
|
}
|
|
43333
43299
|
},
|
|
43334
43300
|
emits: ["change"],
|
|
43335
|
-
setup(__props, { emit }) {
|
|
43301
|
+
setup(__props, { expose, emit }) {
|
|
43336
43302
|
const props = __props;
|
|
43337
43303
|
const isReady = ref(false);
|
|
43338
43304
|
const words = ref(0);
|
|
43339
43305
|
const addFirstBlock = ref(false);
|
|
43306
|
+
const editorJS = ref({});
|
|
43340
43307
|
const configurationMail = ref({
|
|
43341
|
-
holder:
|
|
43308
|
+
holder: props.holder,
|
|
43342
43309
|
autofocus: true,
|
|
43343
43310
|
minHeight: 0,
|
|
43344
43311
|
defaultBlock: "paragraph",
|
|
@@ -43384,9 +43351,19 @@ const _sfc_main$1 = {
|
|
|
43384
43351
|
const limitExceeded = computed(() => {
|
|
43385
43352
|
return words.value > 300 ? true : false;
|
|
43386
43353
|
});
|
|
43354
|
+
expose({
|
|
43355
|
+
toggleReadOnly,
|
|
43356
|
+
save
|
|
43357
|
+
});
|
|
43358
|
+
function toggleReadOnly() {
|
|
43359
|
+
editorJS.value.readOnly.toggle();
|
|
43360
|
+
}
|
|
43361
|
+
function save() {
|
|
43362
|
+
return editorJS.value.save();
|
|
43363
|
+
}
|
|
43387
43364
|
function myEditor() {
|
|
43388
43365
|
if (props.featureSet == "Full") {
|
|
43389
|
-
|
|
43366
|
+
editorJS.value = new EditorJS({
|
|
43390
43367
|
...configurationMail.value,
|
|
43391
43368
|
data: props.data,
|
|
43392
43369
|
minHeight: props.minHeight,
|
|
@@ -43428,7 +43405,7 @@ const _sfc_main$1 = {
|
|
|
43428
43405
|
}
|
|
43429
43406
|
});
|
|
43430
43407
|
} else if (props.featureSet == "Mail") {
|
|
43431
|
-
|
|
43408
|
+
editorJS.value = new EditorJS({
|
|
43432
43409
|
...configurationMail.value,
|
|
43433
43410
|
data: props.data,
|
|
43434
43411
|
minHeight: props.minHeight,
|
|
@@ -43445,7 +43422,7 @@ const _sfc_main$1 = {
|
|
|
43445
43422
|
}
|
|
43446
43423
|
});
|
|
43447
43424
|
} else {
|
|
43448
|
-
|
|
43425
|
+
editorJS.value = new EditorJS({
|
|
43449
43426
|
...configurationMail.value,
|
|
43450
43427
|
data: props.data,
|
|
43451
43428
|
minHeight: props.minHeight,
|
|
@@ -43545,7 +43522,7 @@ const _sfc_main$1 = {
|
|
|
43545
43522
|
createElementVNode("p", _hoisted_6$1, toDisplayString(__props.firstBlockText), 1),
|
|
43546
43523
|
createElementVNode("a", _hoisted_7$1, toDisplayString(__props.learnMoreText), 1)
|
|
43547
43524
|
])) : createCommentVNode("", true),
|
|
43548
|
-
_hoisted_8
|
|
43525
|
+
createElementVNode("div", { id: __props.holder }, null, 8, _hoisted_8)
|
|
43549
43526
|
])
|
|
43550
43527
|
]);
|
|
43551
43528
|
};
|
|
@@ -43817,4 +43794,4 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43817
43794
|
}
|
|
43818
43795
|
});
|
|
43819
43796
|
var VerificationCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2ace876a"]]);
|
|
43820
|
-
export {
|
|
43797
|
+
export { AdvancedDatePicker as DhAdvancedDatePicker, AdvancedFilter as DhAdvancedFilter, _sfc_main$k as DhCopyText, _sfc_main$j as DhDatePicker, DropdownMenu as DhDropdownMenu, _sfc_main$g as DhError, ExpansionPanel as DhExpansionPanel, _sfc_main$e as DhFileUpload, DhIcon, _sfc_main$d as DhInputDropdown, _sfc_main$c as DhInputDropdownMultiple, _sfc_main$b as DhInputGroup, _sfc_main$a as DhInputList, Modal as DhModal, Notification as DhNotification, DhNumberRange, PasswordField as DhPasswordField, DhRadioBox, _sfc_main$5 as DhRadioBoxGroup, SearchInput as DhSearchInput, Stepper as DhStepper, DhSwitch, _sfc_main$1 as DhTextEditor, Tooltip as DhTooltip, VerificationCode as DhVerificationCode };
|