@opentinyvue/vue-grid-toolbar 2.21.0 → 3.21.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/lib/index.js +1809 -1274
- package/package.json +29 -29
- package/src/custom-saas.vue.d.ts +1 -1
- package/src/custom-select.vue.d.ts +20 -5
- package/src/custom-switch.vue.d.ts +97 -1
- package/src/custom.vue.d.ts +168 -1
- package/src/index.d.ts +195 -1
package/lib/index.js
CHANGED
|
@@ -22,6 +22,7 @@ import Popover from '@opentinyvue/vue-popover';
|
|
|
22
22
|
import Radio from '@opentinyvue/vue-radio';
|
|
23
23
|
import { format } from '@opentinyvue/vue-renderless/common/date';
|
|
24
24
|
import { extend } from '@opentinyvue/vue-renderless/common/object';
|
|
25
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, toDisplayString, createElementVNode, createElementBlock, createCommentVNode, normalizeClass, resolveDynamicComponent, Fragment, renderList, resolveDirective, withDirectives, vShow } from 'vue';
|
|
25
26
|
import Tree from '@opentinyvue/vue-tree';
|
|
26
27
|
import Split from '@opentinyvue/vue-split';
|
|
27
28
|
import Checkbox from '@opentinyvue/vue-checkbox';
|
|
@@ -35,38 +36,41 @@ import Tooltip from '@opentinyvue/vue-tooltip';
|
|
|
35
36
|
import Clickoutside from '@opentinyvue/vue-renderless/common/deps/clickoutside';
|
|
36
37
|
import '@opentinyvue/vue-theme/grid-toolbar/index.css';
|
|
37
38
|
|
|
38
|
-
function
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
hook = injectStyles;
|
|
39
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
40
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
41
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
42
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
43
|
+
t && (r = t);
|
|
44
|
+
var o = 0;
|
|
45
|
+
return function() {
|
|
46
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
47
|
+
};
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
-
} else {
|
|
58
|
-
var existing = options.beforeCreate;
|
|
59
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
60
|
-
}
|
|
49
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
50
|
+
}
|
|
51
|
+
function _unsupportedIterableToArray(r, a) {
|
|
52
|
+
if (r) {
|
|
53
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
54
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
55
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
61
56
|
}
|
|
62
|
-
return {
|
|
63
|
-
exports: scriptExports,
|
|
64
|
-
options
|
|
65
|
-
};
|
|
66
57
|
}
|
|
58
|
+
function _arrayLikeToArray(r, a) {
|
|
59
|
+
(null == a || a > r.length) && (a = r.length);
|
|
60
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
64
|
+
var target = sfc.__vccOpts || sfc;
|
|
65
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
66
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
67
|
+
target[key] = val;
|
|
68
|
+
}
|
|
69
|
+
return target;
|
|
70
|
+
};
|
|
67
71
|
|
|
68
|
-
var
|
|
69
|
-
function
|
|
72
|
+
var _excluded = ["property"], _excluded2 = ["row"], _excluded3 = ["property"];
|
|
73
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
70
74
|
if (null == r) return {};
|
|
71
75
|
var t2 = {};
|
|
72
76
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
@@ -152,7 +156,7 @@ function mergeArray(toArr, fromArr) {
|
|
|
152
156
|
}
|
|
153
157
|
return result;
|
|
154
158
|
}
|
|
155
|
-
var
|
|
159
|
+
var _sfc_main$3 = defineComponent({
|
|
156
160
|
name: "TinyGridCustomSwitch",
|
|
157
161
|
components: {
|
|
158
162
|
TinyButton: Button,
|
|
@@ -471,8 +475,8 @@ var __vue2_script$3 = defineComponent({
|
|
|
471
475
|
}
|
|
472
476
|
this.fixStatus();
|
|
473
477
|
},
|
|
474
|
-
doCheck: function doCheck(
|
|
475
|
-
var storageType =
|
|
478
|
+
doCheck: function doCheck(_ref) {
|
|
479
|
+
var storageType = _ref.storageType;
|
|
476
480
|
if (storageType === "remote") {
|
|
477
481
|
if (!this.historyConfig.remoteMethod || typeof this.historyConfig.remoteMethod !== "function") {
|
|
478
482
|
GridTools.error("ui.grid.error.remoteMethod");
|
|
@@ -528,338 +532,531 @@ var __vue2_script$3 = defineComponent({
|
|
|
528
532
|
}
|
|
529
533
|
}
|
|
530
534
|
});
|
|
531
|
-
var
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
535
|
+
var _hoisted_1$2 = {
|
|
536
|
+
key: 0,
|
|
537
|
+
class: "radio-box"
|
|
538
|
+
};
|
|
539
|
+
var _hoisted_2$2 = {
|
|
540
|
+
class: "btn-box"
|
|
541
|
+
};
|
|
542
|
+
var _hoisted_3$2 = {
|
|
543
|
+
key: 1,
|
|
544
|
+
class: "tiny-grid-custom-switch"
|
|
545
|
+
};
|
|
546
|
+
var _hoisted_4$2 = {
|
|
547
|
+
class: "tiny-grid-custom-switch__title"
|
|
548
|
+
};
|
|
549
|
+
var _hoisted_5$2 = {
|
|
550
|
+
class: "tiny-grid-custom-switch__label"
|
|
551
|
+
};
|
|
552
|
+
var _hoisted_6$2 = {
|
|
553
|
+
class: "tiny-grid-custom-switch__content"
|
|
554
|
+
};
|
|
555
|
+
var _hoisted_7$2 = ["title"];
|
|
556
|
+
var _hoisted_8$2 = ["title"];
|
|
557
|
+
var _hoisted_9$2 = ["title"];
|
|
558
|
+
var _hoisted_10$2 = {
|
|
559
|
+
key: 0,
|
|
560
|
+
class: "tiny-grid-custom-switch__confirm-btns"
|
|
561
|
+
};
|
|
562
|
+
var _hoisted_11$2 = {
|
|
563
|
+
class: "tiny-grid-custom-switch__del-tip"
|
|
564
|
+
};
|
|
565
|
+
var _hoisted_12$2 = {
|
|
566
|
+
class: "tiny-grid-custom-switch__del-tip"
|
|
567
|
+
};
|
|
568
|
+
var _hoisted_13$2 = {
|
|
569
|
+
class: "tiny-grid-custom-switch__del-tip"
|
|
570
|
+
};
|
|
571
|
+
var _hoisted_14$2 = {
|
|
572
|
+
class: "tiny-grid-custom-switch__del-tip"
|
|
573
|
+
};
|
|
574
|
+
function _sfc_render$3(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
575
|
+
var _component_tiny_radio = resolveComponent("tiny-radio");
|
|
576
|
+
var _component_tiny_input = resolveComponent("tiny-input");
|
|
577
|
+
var _component_tiny_button = resolveComponent("tiny-button");
|
|
578
|
+
var _component_tiny_popover = resolveComponent("tiny-popover");
|
|
579
|
+
var _component_tiny_alert = resolveComponent("tiny-alert");
|
|
580
|
+
var _component_tiny_col = resolveComponent("tiny-col");
|
|
581
|
+
var _component_tiny_row = resolveComponent("tiny-row");
|
|
582
|
+
var _component_tiny_select = resolveComponent("tiny-select");
|
|
583
|
+
var _component_tiny_layout = resolveComponent("tiny-layout");
|
|
584
|
+
var _component_tiny_dialog_box = resolveComponent("tiny-dialog-box");
|
|
585
|
+
return _ctx.customMode === "saas" ? (openBlock(), createBlock(_component_tiny_popover, {
|
|
586
|
+
key: 0,
|
|
536
587
|
ref: "popover",
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
},
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}) :
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
588
|
+
width: "280",
|
|
589
|
+
modelValue: _ctx.templateVisible,
|
|
590
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = function($event) {
|
|
591
|
+
return _ctx.templateVisible = $event;
|
|
592
|
+
}),
|
|
593
|
+
placement: "top",
|
|
594
|
+
"popper-class": "grid-toolbar-template-popover",
|
|
595
|
+
trigger: "manual"
|
|
596
|
+
}, {
|
|
597
|
+
reference: withCtx(function() {
|
|
598
|
+
return [createVNode(_component_tiny_button, {
|
|
599
|
+
class: "save-btn",
|
|
600
|
+
onClick: _cache[6] || (_cache[6] = function($event) {
|
|
601
|
+
return _ctx.templateVisible = !_ctx.templateVisible;
|
|
602
|
+
})
|
|
603
|
+
}, {
|
|
604
|
+
default: withCtx(function() {
|
|
605
|
+
return [createTextVNode(
|
|
606
|
+
toDisplayString(_ctx.t("ui.grid.individuation.saveTemplate")),
|
|
607
|
+
1
|
|
608
|
+
/* TEXT */
|
|
609
|
+
)];
|
|
610
|
+
}),
|
|
611
|
+
_: 1
|
|
612
|
+
/* STABLE */
|
|
613
|
+
})];
|
|
614
|
+
}),
|
|
615
|
+
default: withCtx(function() {
|
|
616
|
+
return [createElementVNode("div", null, [_ctx.selectedTemplateVal.id && !_ctx.historyConfig.hideOverwrite ? (openBlock(), createElementBlock("div", _hoisted_1$2, [createVNode(_component_tiny_radio, {
|
|
617
|
+
modelValue: _ctx.saveMethod,
|
|
618
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
619
|
+
return _ctx.saveMethod = $event;
|
|
620
|
+
}),
|
|
621
|
+
label: "overwrite"
|
|
622
|
+
}, {
|
|
623
|
+
default: withCtx(function() {
|
|
624
|
+
return [createTextVNode(
|
|
625
|
+
toDisplayString(_ctx.t("ui.grid.individuation.overwriteSave")),
|
|
626
|
+
1
|
|
627
|
+
/* TEXT */
|
|
628
|
+
)];
|
|
629
|
+
}),
|
|
630
|
+
_: 1
|
|
631
|
+
/* STABLE */
|
|
632
|
+
}, 8, ["modelValue"]), createVNode(_component_tiny_radio, {
|
|
633
|
+
modelValue: _ctx.saveMethod,
|
|
634
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = function($event) {
|
|
635
|
+
return _ctx.saveMethod = $event;
|
|
636
|
+
}),
|
|
637
|
+
label: "save"
|
|
638
|
+
}, {
|
|
639
|
+
default: withCtx(function() {
|
|
640
|
+
return [createTextVNode(
|
|
641
|
+
toDisplayString(_ctx.t("ui.grid.individuation.saveAs")),
|
|
642
|
+
1
|
|
643
|
+
/* TEXT */
|
|
644
|
+
)];
|
|
645
|
+
}),
|
|
646
|
+
_: 1
|
|
647
|
+
/* STABLE */
|
|
648
|
+
}, 8, ["modelValue"])])) : createCommentVNode("v-if", true), _ctx.saveMethod === "save" ? (openBlock(), createBlock(_component_tiny_input, {
|
|
649
|
+
key: 1,
|
|
650
|
+
modelValue: _ctx.savedTemplateName,
|
|
651
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = function($event) {
|
|
652
|
+
return _ctx.savedTemplateName = $event;
|
|
653
|
+
}),
|
|
654
|
+
type: "text",
|
|
655
|
+
placeholder: _ctx.t("ui.grid.individuation.defaultTemplateName")
|
|
656
|
+
}, null, 8, ["modelValue", "placeholder"])) : (openBlock(), createBlock(_component_tiny_input, {
|
|
657
|
+
key: 2,
|
|
658
|
+
modelValue: _ctx.selectedTemplateName,
|
|
659
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = function($event) {
|
|
660
|
+
return _ctx.selectedTemplateName = $event;
|
|
661
|
+
}),
|
|
662
|
+
placeholder: _ctx.t("ui.grid.individuation.reserveTemplateName"),
|
|
663
|
+
type: "text"
|
|
664
|
+
}, null, 8, ["modelValue", "placeholder"])), createElementVNode("div", _hoisted_2$2, [createVNode(_component_tiny_button, {
|
|
665
|
+
onClick: _cache[4] || (_cache[4] = function($event) {
|
|
666
|
+
return _ctx.templateVisible = false;
|
|
667
|
+
})
|
|
668
|
+
}, {
|
|
669
|
+
default: withCtx(function() {
|
|
670
|
+
return [createTextVNode(
|
|
671
|
+
toDisplayString(_ctx.t("ui.grid.individuation.cancelBtn")),
|
|
672
|
+
1
|
|
673
|
+
/* TEXT */
|
|
674
|
+
)];
|
|
675
|
+
}),
|
|
676
|
+
_: 1
|
|
677
|
+
/* STABLE */
|
|
678
|
+
}), createVNode(_component_tiny_button, {
|
|
679
|
+
type: "primary",
|
|
680
|
+
onClick: _cache[5] || (_cache[5] = function($event) {
|
|
681
|
+
return _ctx.handleSaveConfirm(_ctx.saveMethod);
|
|
682
|
+
})
|
|
683
|
+
}, {
|
|
684
|
+
default: withCtx(function() {
|
|
685
|
+
return [createTextVNode(
|
|
686
|
+
toDisplayString(_ctx.t("ui.grid.individuation.saveBtn")),
|
|
687
|
+
1
|
|
688
|
+
/* TEXT */
|
|
689
|
+
)];
|
|
690
|
+
}),
|
|
691
|
+
_: 1
|
|
692
|
+
/* STABLE */
|
|
693
|
+
})])])];
|
|
694
|
+
}),
|
|
695
|
+
_: 1
|
|
696
|
+
/* STABLE */
|
|
697
|
+
}, 8, ["modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_3$2, [createVNode(_component_tiny_layout, null, {
|
|
698
|
+
default: withCtx(function() {
|
|
699
|
+
return [createVNode(_component_tiny_row, {
|
|
700
|
+
"no-space": ""
|
|
701
|
+
}, {
|
|
702
|
+
default: withCtx(function() {
|
|
703
|
+
return [createVNode(_component_tiny_col, {
|
|
704
|
+
span: 12
|
|
705
|
+
}, {
|
|
706
|
+
default: withCtx(function() {
|
|
707
|
+
return [createElementVNode("div", _hoisted_4$2, [_ctx.historyConfig.showTitle ? (openBlock(), createBlock(_component_tiny_alert, {
|
|
708
|
+
key: 0,
|
|
709
|
+
description: _ctx.historyConfig.title || _ctx.t("ui.grid.individuation.switchtitle"),
|
|
710
|
+
closable: false
|
|
711
|
+
}, null, 8, ["description"])) : createCommentVNode("v-if", true)])];
|
|
712
|
+
}),
|
|
713
|
+
_: 1
|
|
714
|
+
/* STABLE */
|
|
715
|
+
})];
|
|
716
|
+
}),
|
|
717
|
+
_: 1
|
|
718
|
+
/* STABLE */
|
|
719
|
+
}), createVNode(_component_tiny_row, {
|
|
720
|
+
"no-space": ""
|
|
721
|
+
}, {
|
|
722
|
+
default: withCtx(function() {
|
|
723
|
+
return [_ctx.historyConfig.showSave ? (openBlock(), createBlock(_component_tiny_col, {
|
|
724
|
+
key: 0,
|
|
725
|
+
span: 2
|
|
726
|
+
}, {
|
|
727
|
+
default: withCtx(function() {
|
|
728
|
+
return [createElementVNode("div", null, [createVNode(_component_tiny_button, {
|
|
729
|
+
type: "primary",
|
|
730
|
+
size: "mini",
|
|
731
|
+
disabled: _ctx.historyConfig.saveDisabled || _ctx.saveDisabled,
|
|
732
|
+
onClick: _ctx.handleSave
|
|
733
|
+
}, {
|
|
734
|
+
default: withCtx(function() {
|
|
735
|
+
return [createTextVNode(
|
|
736
|
+
toDisplayString(_ctx.historyConfig.saveText || _ctx.t("ui.grid.individuation.switchsave")),
|
|
737
|
+
1
|
|
738
|
+
/* TEXT */
|
|
739
|
+
)];
|
|
740
|
+
}),
|
|
741
|
+
_: 1
|
|
742
|
+
/* STABLE */
|
|
743
|
+
}, 8, ["disabled", "onClick"])])];
|
|
744
|
+
}),
|
|
745
|
+
_: 1
|
|
746
|
+
/* STABLE */
|
|
747
|
+
})) : createCommentVNode("v-if", true), createVNode(_component_tiny_col, {
|
|
748
|
+
span: 2
|
|
749
|
+
}, {
|
|
750
|
+
default: withCtx(function() {
|
|
751
|
+
return [createElementVNode(
|
|
752
|
+
"div",
|
|
753
|
+
_hoisted_5$2,
|
|
754
|
+
toDisplayString(_ctx.historyConfig.labelText || _ctx.t("ui.grid.individuation.switchlabel")),
|
|
755
|
+
1
|
|
756
|
+
/* TEXT */
|
|
757
|
+
)];
|
|
758
|
+
}),
|
|
759
|
+
_: 1
|
|
760
|
+
/* STABLE */
|
|
761
|
+
}), createVNode(_component_tiny_col, {
|
|
762
|
+
span: 5
|
|
763
|
+
}, {
|
|
764
|
+
default: withCtx(function() {
|
|
765
|
+
return [createElementVNode("div", _hoisted_6$2, [createVNode(_component_tiny_select, {
|
|
766
|
+
clearable: "",
|
|
767
|
+
ref: "select",
|
|
768
|
+
"value-field": "id",
|
|
769
|
+
"text-field": "name",
|
|
770
|
+
placeholder: _ctx.historyConfig.selectPlaceholder || _ctx.t("ui.select.placeholder"),
|
|
771
|
+
disabled: _ctx.historyConfig.selectDisabled || _ctx.selectDisabled,
|
|
772
|
+
options: _ctx.options,
|
|
773
|
+
onChange: _ctx.handleSelectChange,
|
|
774
|
+
modelValue: _ctx.selected,
|
|
775
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = function($event) {
|
|
776
|
+
return _ctx.selected = $event;
|
|
777
|
+
})
|
|
778
|
+
}, null, 8, ["placeholder", "disabled", "options", "onChange", "modelValue"])])];
|
|
779
|
+
}),
|
|
780
|
+
_: 1
|
|
781
|
+
/* STABLE */
|
|
782
|
+
}), createVNode(_component_tiny_col, {
|
|
783
|
+
span: 3
|
|
784
|
+
}, {
|
|
785
|
+
default: withCtx(function() {
|
|
786
|
+
return [createElementVNode("div", null, [_ctx.historyConfig.showApply ? (openBlock(), createElementBlock("span", {
|
|
787
|
+
key: 0,
|
|
788
|
+
title: _ctx.historyConfig.applyTitle || _ctx.t("ui.grid.individuation.switchapply"),
|
|
789
|
+
class: normalizeClass(["tiny-grid-custom-switch__icon-btn", {
|
|
790
|
+
"tiny-grid-custom-switch__icon-btn--disabled": _ctx.historyConfig.applyDisabled || _ctx.applyDisabled
|
|
791
|
+
}]),
|
|
792
|
+
onClick: _cache[9] || (_cache[9] = function() {
|
|
793
|
+
return _ctx.handleApply && _ctx.handleApply.apply(_ctx, arguments);
|
|
794
|
+
})
|
|
795
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.historyConfig.applyIcon || _ctx.IconSave)))], 10, _hoisted_7$2)) : createCommentVNode("v-if", true), _ctx.historyConfig.showEdit ? (openBlock(), createElementBlock("span", {
|
|
796
|
+
key: 1,
|
|
797
|
+
title: _ctx.historyConfig.editTitle || _ctx.t("ui.grid.individuation.switchedit"),
|
|
798
|
+
class: normalizeClass(["tiny-grid-custom-switch__icon-btn", {
|
|
799
|
+
"tiny-grid-custom-switch__icon-btn--disabled": _ctx.historyConfig.editDisabled || _ctx.editDisabled
|
|
800
|
+
}]),
|
|
801
|
+
onClick: _cache[10] || (_cache[10] = function() {
|
|
802
|
+
return _ctx.handleEdit && _ctx.handleEdit.apply(_ctx, arguments);
|
|
803
|
+
})
|
|
804
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.historyConfig.editIcon || _ctx.IconEdit)))], 10, _hoisted_8$2)) : createCommentVNode("v-if", true), _ctx.historyConfig.showDel ? (openBlock(), createElementBlock("span", {
|
|
805
|
+
key: 2,
|
|
806
|
+
title: _ctx.historyConfig.delTitle || _ctx.t("ui.grid.individuation.switchdel"),
|
|
807
|
+
class: normalizeClass(["tiny-grid-custom-switch__icon-btn", {
|
|
808
|
+
"tiny-grid-custom-switch__icon-btn--disabled": _ctx.historyConfig.delDisabled || _ctx.delDisabled
|
|
809
|
+
}]),
|
|
810
|
+
onClick: _cache[11] || (_cache[11] = function() {
|
|
811
|
+
return _ctx.handleDel && _ctx.handleDel.apply(_ctx, arguments);
|
|
812
|
+
})
|
|
813
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.historyConfig.delIcon || _ctx.IconDel)))], 10, _hoisted_9$2)) : createCommentVNode("v-if", true)])];
|
|
814
|
+
}),
|
|
815
|
+
_: 1
|
|
816
|
+
/* STABLE */
|
|
817
|
+
})];
|
|
818
|
+
}),
|
|
819
|
+
_: 1
|
|
820
|
+
/* STABLE */
|
|
821
|
+
})];
|
|
822
|
+
}),
|
|
823
|
+
_: 1
|
|
824
|
+
/* STABLE */
|
|
825
|
+
}), createVNode(_component_tiny_dialog_box, {
|
|
826
|
+
top: "30vh",
|
|
827
|
+
width: "420px",
|
|
828
|
+
"dialog-class": "tiny-grid-custom-switch__dialog-box",
|
|
829
|
+
draggable: "",
|
|
830
|
+
"append-to-body": "",
|
|
831
|
+
visible: _ctx.visible,
|
|
832
|
+
"close-on-click-modal": false,
|
|
833
|
+
title: _ctx.dialogTitle,
|
|
834
|
+
"onUpdate:visible": _cache[22] || (_cache[22] = function($event) {
|
|
835
|
+
return _ctx.visible = $event;
|
|
836
|
+
})
|
|
837
|
+
}, {
|
|
838
|
+
footer: withCtx(function() {
|
|
839
|
+
return [~["apply", "edit", "del"].indexOf(_ctx.status) ? (openBlock(), createElementBlock(
|
|
840
|
+
Fragment,
|
|
841
|
+
{
|
|
842
|
+
key: 0
|
|
843
|
+
},
|
|
844
|
+
[_ctx.status === "apply" ? (openBlock(), createElementBlock(
|
|
845
|
+
Fragment,
|
|
846
|
+
{
|
|
847
|
+
key: 0
|
|
760
848
|
},
|
|
761
|
-
|
|
762
|
-
"
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
849
|
+
[createVNode(_component_tiny_button, {
|
|
850
|
+
type: "primary",
|
|
851
|
+
onClick: _cache[16] || (_cache[16] = function($event) {
|
|
852
|
+
return _ctx.handleApplyConfirm("yes");
|
|
853
|
+
})
|
|
854
|
+
}, {
|
|
855
|
+
default: withCtx(function() {
|
|
856
|
+
return [createTextVNode(
|
|
857
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchdelyes")),
|
|
858
|
+
1
|
|
859
|
+
/* TEXT */
|
|
860
|
+
)];
|
|
861
|
+
}),
|
|
862
|
+
_: 1
|
|
863
|
+
/* STABLE */
|
|
864
|
+
}), createVNode(_component_tiny_button, {
|
|
865
|
+
onClick: _cache[17] || (_cache[17] = function($event) {
|
|
866
|
+
return _ctx.handleApplyConfirm("no");
|
|
867
|
+
})
|
|
868
|
+
}, {
|
|
869
|
+
default: withCtx(function() {
|
|
870
|
+
return [createTextVNode(
|
|
871
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchdelno")),
|
|
872
|
+
1
|
|
873
|
+
/* TEXT */
|
|
874
|
+
)];
|
|
875
|
+
}),
|
|
876
|
+
_: 1
|
|
877
|
+
/* STABLE */
|
|
878
|
+
})],
|
|
879
|
+
64
|
|
880
|
+
/* STABLE_FRAGMENT */
|
|
881
|
+
)) : createCommentVNode("v-if", true), _ctx.status === "edit" ? (openBlock(), createElementBlock(
|
|
882
|
+
Fragment,
|
|
883
|
+
{
|
|
884
|
+
key: 1
|
|
776
885
|
},
|
|
777
|
-
|
|
778
|
-
"
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
return
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
886
|
+
[createVNode(_component_tiny_button, {
|
|
887
|
+
type: "primary",
|
|
888
|
+
disabled: !_ctx.editName,
|
|
889
|
+
onClick: _cache[18] || (_cache[18] = function($event) {
|
|
890
|
+
return _ctx.handleEditConfirm("yes");
|
|
891
|
+
})
|
|
892
|
+
}, {
|
|
893
|
+
default: withCtx(function() {
|
|
894
|
+
return [createTextVNode(
|
|
895
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchdelyes")),
|
|
896
|
+
1
|
|
897
|
+
/* TEXT */
|
|
898
|
+
)];
|
|
899
|
+
}),
|
|
900
|
+
_: 1
|
|
901
|
+
/* STABLE */
|
|
902
|
+
}, 8, ["disabled"]), createVNode(_component_tiny_button, {
|
|
903
|
+
onClick: _cache[19] || (_cache[19] = function($event) {
|
|
904
|
+
return _ctx.handleEditConfirm("no");
|
|
905
|
+
})
|
|
906
|
+
}, {
|
|
907
|
+
default: withCtx(function() {
|
|
908
|
+
return [createTextVNode(
|
|
909
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchdelno")),
|
|
910
|
+
1
|
|
911
|
+
/* TEXT */
|
|
912
|
+
)];
|
|
913
|
+
}),
|
|
914
|
+
_: 1
|
|
915
|
+
/* STABLE */
|
|
916
|
+
})],
|
|
917
|
+
64
|
|
918
|
+
/* STABLE_FRAGMENT */
|
|
919
|
+
)) : createCommentVNode("v-if", true), _ctx.status === "del" ? (openBlock(), createElementBlock(
|
|
920
|
+
Fragment,
|
|
921
|
+
{
|
|
922
|
+
key: 2
|
|
791
923
|
},
|
|
792
|
-
|
|
793
|
-
"
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
924
|
+
[createVNode(_component_tiny_button, {
|
|
925
|
+
type: "primary",
|
|
926
|
+
onClick: _cache[20] || (_cache[20] = function($event) {
|
|
927
|
+
return _ctx.handleDelConfirm("yes");
|
|
928
|
+
})
|
|
929
|
+
}, {
|
|
930
|
+
default: withCtx(function() {
|
|
931
|
+
return [createTextVNode(
|
|
932
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchdelyes")),
|
|
933
|
+
1
|
|
934
|
+
/* TEXT */
|
|
935
|
+
)];
|
|
936
|
+
}),
|
|
937
|
+
_: 1
|
|
938
|
+
/* STABLE */
|
|
939
|
+
}), createVNode(_component_tiny_button, {
|
|
940
|
+
onClick: _cache[21] || (_cache[21] = function($event) {
|
|
941
|
+
return _ctx.handleDelConfirm("no");
|
|
942
|
+
})
|
|
943
|
+
}, {
|
|
944
|
+
default: withCtx(function() {
|
|
945
|
+
return [createTextVNode(
|
|
946
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchdelno")),
|
|
947
|
+
1
|
|
948
|
+
/* TEXT */
|
|
949
|
+
)];
|
|
950
|
+
}),
|
|
951
|
+
_: 1
|
|
952
|
+
/* STABLE */
|
|
953
|
+
})],
|
|
954
|
+
64
|
|
955
|
+
/* STABLE_FRAGMENT */
|
|
956
|
+
)) : createCommentVNode("v-if", true)],
|
|
957
|
+
64
|
|
958
|
+
/* STABLE_FRAGMENT */
|
|
959
|
+
)) : createCommentVNode("v-if", true)];
|
|
960
|
+
}),
|
|
961
|
+
default: withCtx(function() {
|
|
962
|
+
return [_ctx.status === "save" ? (openBlock(), createElementBlock("div", _hoisted_10$2, [createVNode(_component_tiny_button, {
|
|
963
|
+
type: "primary",
|
|
964
|
+
onClick: _cache[12] || (_cache[12] = function($event) {
|
|
965
|
+
return _ctx.handleSaveConfirm("save");
|
|
966
|
+
})
|
|
967
|
+
}, {
|
|
968
|
+
default: withCtx(function() {
|
|
969
|
+
return [createTextVNode(
|
|
970
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchonlytemp")),
|
|
971
|
+
1
|
|
972
|
+
/* TEXT */
|
|
973
|
+
)];
|
|
974
|
+
}),
|
|
975
|
+
_: 1
|
|
976
|
+
/* STABLE */
|
|
977
|
+
}), createVNode(_component_tiny_button, {
|
|
978
|
+
onClick: _cache[13] || (_cache[13] = function($event) {
|
|
979
|
+
return _ctx.handleSaveConfirm("save-apply");
|
|
980
|
+
})
|
|
981
|
+
}, {
|
|
982
|
+
default: withCtx(function() {
|
|
983
|
+
return [createTextVNode(
|
|
984
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchtempapply")),
|
|
985
|
+
1
|
|
986
|
+
/* TEXT */
|
|
987
|
+
)];
|
|
988
|
+
}),
|
|
989
|
+
_: 1
|
|
990
|
+
/* STABLE */
|
|
991
|
+
}), createVNode(_component_tiny_button, {
|
|
992
|
+
onClick: _cache[14] || (_cache[14] = function($event) {
|
|
993
|
+
return _ctx.handleSaveConfirm("overwrite");
|
|
994
|
+
}),
|
|
995
|
+
disabled: !_ctx.selected
|
|
996
|
+
}, {
|
|
997
|
+
default: withCtx(function() {
|
|
998
|
+
return [createTextVNode(
|
|
999
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchtempoverwrite")),
|
|
1000
|
+
1
|
|
1001
|
+
/* TEXT */
|
|
1002
|
+
)];
|
|
1003
|
+
}),
|
|
1004
|
+
_: 1
|
|
1005
|
+
/* STABLE */
|
|
1006
|
+
}, 8, ["disabled"])])) : createCommentVNode("v-if", true), _ctx.status === "apply" ? (openBlock(), createElementBlock(
|
|
1007
|
+
Fragment,
|
|
1008
|
+
{
|
|
1009
|
+
key: 1
|
|
1010
|
+
},
|
|
1011
|
+
[createElementVNode(
|
|
1012
|
+
"div",
|
|
1013
|
+
_hoisted_11$2,
|
|
1014
|
+
toDisplayString(_ctx.selectedName),
|
|
1015
|
+
1
|
|
1016
|
+
/* TEXT */
|
|
1017
|
+
), createElementVNode(
|
|
1018
|
+
"div",
|
|
1019
|
+
_hoisted_12$2,
|
|
1020
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchapplycon")),
|
|
1021
|
+
1
|
|
1022
|
+
/* TEXT */
|
|
1023
|
+
)],
|
|
1024
|
+
64
|
|
1025
|
+
/* STABLE_FRAGMENT */
|
|
1026
|
+
)) : createCommentVNode("v-if", true), _ctx.status === "edit" ? (openBlock(), createBlock(_component_tiny_input, {
|
|
1027
|
+
key: 2,
|
|
1028
|
+
modelValue: _ctx.editName,
|
|
1029
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = function($event) {
|
|
1030
|
+
return _ctx.editName = $event;
|
|
1031
|
+
})
|
|
1032
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("v-if", true), _ctx.status === "del" ? (openBlock(), createElementBlock(
|
|
1033
|
+
Fragment,
|
|
1034
|
+
{
|
|
1035
|
+
key: 3
|
|
1036
|
+
},
|
|
1037
|
+
[createElementVNode(
|
|
1038
|
+
"div",
|
|
1039
|
+
_hoisted_13$2,
|
|
1040
|
+
toDisplayString(_ctx.selectedName),
|
|
1041
|
+
1
|
|
1042
|
+
/* TEXT */
|
|
1043
|
+
), createElementVNode(
|
|
1044
|
+
"div",
|
|
1045
|
+
_hoisted_14$2,
|
|
1046
|
+
toDisplayString(_ctx.t("ui.grid.individuation.switchdelcon")),
|
|
1047
|
+
1
|
|
1048
|
+
/* TEXT */
|
|
1049
|
+
)],
|
|
1050
|
+
64
|
|
1051
|
+
/* STABLE_FRAGMENT */
|
|
1052
|
+
)) : createCommentVNode("v-if", true)];
|
|
1053
|
+
}),
|
|
1054
|
+
_: 1
|
|
1055
|
+
/* STABLE */
|
|
1056
|
+
}, 8, ["visible", "title"])]));
|
|
858
1057
|
}
|
|
859
|
-
var CustomSwitch = /* @__PURE__ */
|
|
860
|
-
|
|
861
|
-
}();
|
|
862
|
-
var __vue2_script$2 = defineComponent({
|
|
1058
|
+
var CustomSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
1059
|
+
var _sfc_main$2 = defineComponent({
|
|
863
1060
|
components: {
|
|
864
1061
|
TinyAlert: Alert,
|
|
865
1062
|
TinyTabs: Tabs,
|
|
@@ -1019,8 +1216,8 @@ var __vue2_script$2 = defineComponent({
|
|
|
1019
1216
|
t,
|
|
1020
1217
|
getColumnConfigs: function getColumnConfigs(configs) {
|
|
1021
1218
|
var _getColNodes = function getColNodes(columns2) {
|
|
1022
|
-
return columns2.map(function(
|
|
1023
|
-
var id =
|
|
1219
|
+
return columns2.map(function(_ref2) {
|
|
1220
|
+
var id = _ref2.id, title = _ref2.title, property = _ref2.property, fixed = _ref2.fixed, visible = _ref2.visible, order = _ref2.order, sortable = _ref2.sortable, level = _ref2.level, children = _ref2.children;
|
|
1024
1221
|
if (property) {
|
|
1025
1222
|
var column = {
|
|
1026
1223
|
id,
|
|
@@ -1094,8 +1291,8 @@ var __vue2_script$2 = defineComponent({
|
|
|
1094
1291
|
column.sortingIndex = index + 1;
|
|
1095
1292
|
});
|
|
1096
1293
|
},
|
|
1097
|
-
renderNumberSorting: function renderNumberSorting(h2,
|
|
1098
|
-
var row =
|
|
1294
|
+
renderNumberSorting: function renderNumberSorting(h2, _ref3) {
|
|
1295
|
+
var row = _ref3.row;
|
|
1099
1296
|
return h2("span", row.sortingIndex + "");
|
|
1100
1297
|
},
|
|
1101
1298
|
handleCustomMouseMove: function handleCustomMouseMove() {
|
|
@@ -1210,8 +1407,8 @@ var __vue2_script$2 = defineComponent({
|
|
|
1210
1407
|
},
|
|
1211
1408
|
buildSettings: function buildSettings() {
|
|
1212
1409
|
var props = ["order", "fixed", "visible", "sortable"].concat(this.keys);
|
|
1213
|
-
this.settings.columns = mapTree(this.columns, function(
|
|
1214
|
-
var property =
|
|
1410
|
+
this.settings.columns = mapTree(this.columns, function(_ref4) {
|
|
1411
|
+
var property = _ref4.property, rest = _objectWithoutPropertiesLoose(_ref4, _excluded);
|
|
1215
1412
|
var node = {
|
|
1216
1413
|
property
|
|
1217
1414
|
};
|
|
@@ -1272,7 +1469,7 @@ var __vue2_script$2 = defineComponent({
|
|
|
1272
1469
|
if (typeof this.resetMethod === "function") {
|
|
1273
1470
|
this.resetMethod().then(function(sourceSettings) {
|
|
1274
1471
|
_this12.buildSettings();
|
|
1275
|
-
var
|
|
1472
|
+
var _ref5 = sourceSettings || {}, columns = _ref5.columns, sortType = _ref5.sortType, pageSize = _ref5.pageSize;
|
|
1276
1473
|
if (columns && columns.length && _this12.settings.columns && _this12.settings.columns.length) {
|
|
1277
1474
|
_this12.settings.columns.forEach(function(setting) {
|
|
1278
1475
|
var source = find(columns, function(item) {
|
|
@@ -1345,313 +1542,357 @@ var __vue2_script$2 = defineComponent({
|
|
|
1345
1542
|
}
|
|
1346
1543
|
}
|
|
1347
1544
|
});
|
|
1348
|
-
var
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
"
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
}
|
|
1436
|
-
}) : _vm._e(), _c("tiny-grid-column", {
|
|
1437
|
-
attrs: {
|
|
1438
|
-
"field": "title",
|
|
1439
|
-
"tree-node": ""
|
|
1440
|
-
}
|
|
1441
|
-
}), _c("tiny-grid-column", {
|
|
1442
|
-
attrs: {
|
|
1443
|
-
"field": "property",
|
|
1444
|
-
"width": "120px",
|
|
1445
|
-
"class-name": "setting-item"
|
|
1446
|
-
},
|
|
1447
|
-
scopedSlots: _vm._u([{
|
|
1448
|
-
key: "default",
|
|
1449
|
-
fn: function fn2(_ref) {
|
|
1450
|
-
var row = _ref.row, data6 = _objectWithoutProperties(_ref, _excluded);
|
|
1451
|
-
return [!row.children ? _c("div", {
|
|
1452
|
-
staticClass: "setting-icon"
|
|
1453
|
-
}, [_c("span", {
|
|
1454
|
-
staticClass: "icon",
|
|
1455
|
-
attrs: {
|
|
1456
|
-
"title": _vm.visibleTitle(row)
|
|
1457
|
-
}
|
|
1458
|
-
}, [_c(row.visible ? "icon-eyeopen" : "icon-eyeclose", {
|
|
1459
|
-
tag: "component",
|
|
1460
|
-
class: [{
|
|
1461
|
-
open: row.visible
|
|
1462
|
-
}],
|
|
1463
|
-
on: {
|
|
1464
|
-
"click": function click($event) {
|
|
1465
|
-
return _vm.handlerSetting("visible", row, data6);
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
})], 1), _c("span", {
|
|
1469
|
-
staticClass: "icon",
|
|
1470
|
-
attrs: {
|
|
1471
|
-
"title": _vm.sortTitle(row)
|
|
1472
|
-
}
|
|
1473
|
-
}, [_c(row.order ? _vm.constants.icon[row.order] : "icon-minus", {
|
|
1474
|
-
tag: "component",
|
|
1475
|
-
class: {
|
|
1476
|
-
sort: row.order,
|
|
1477
|
-
"is-visible": !row.sortable
|
|
1478
|
-
},
|
|
1479
|
-
on: {
|
|
1480
|
-
"click": function click($event) {
|
|
1481
|
-
return _vm.handlerSetting("order", row);
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
})], 1), _c("span", {
|
|
1485
|
-
staticClass: "icon",
|
|
1486
|
-
attrs: {
|
|
1487
|
-
"title": _vm.fixedTitle(row)
|
|
1488
|
-
}
|
|
1489
|
-
}, [row.level === 1 && _vm.showFixed ? _c(row.fixed ? _vm.constants.icon[row.fixed] : "icon-unlock", {
|
|
1490
|
-
tag: "component",
|
|
1491
|
-
class: {
|
|
1492
|
-
lock: row.fixed
|
|
1545
|
+
var _hoisted_1$1 = {
|
|
1546
|
+
key: 0,
|
|
1547
|
+
class: "tiny-grid-custom tiny-grid__wrapper"
|
|
1548
|
+
};
|
|
1549
|
+
var _hoisted_2$1 = {
|
|
1550
|
+
class: "tiny-grid-custom__tabs-body"
|
|
1551
|
+
};
|
|
1552
|
+
var _hoisted_3$1 = {
|
|
1553
|
+
key: 0,
|
|
1554
|
+
class: "setting-icon"
|
|
1555
|
+
};
|
|
1556
|
+
var _hoisted_4$1 = ["title"];
|
|
1557
|
+
var _hoisted_5$1 = ["title"];
|
|
1558
|
+
var _hoisted_6$1 = ["title"];
|
|
1559
|
+
var _hoisted_7$1 = {
|
|
1560
|
+
class: "tiny-grid-custom__setting other-setting"
|
|
1561
|
+
};
|
|
1562
|
+
var _hoisted_8$1 = {
|
|
1563
|
+
class: "setting-item"
|
|
1564
|
+
};
|
|
1565
|
+
var _hoisted_9$1 = {
|
|
1566
|
+
class: "label"
|
|
1567
|
+
};
|
|
1568
|
+
var _hoisted_10$1 = {
|
|
1569
|
+
class: "selection"
|
|
1570
|
+
};
|
|
1571
|
+
var _hoisted_11$1 = {
|
|
1572
|
+
class: "setting-item"
|
|
1573
|
+
};
|
|
1574
|
+
var _hoisted_12$1 = {
|
|
1575
|
+
class: "label"
|
|
1576
|
+
};
|
|
1577
|
+
var _hoisted_13$1 = {
|
|
1578
|
+
class: "selection"
|
|
1579
|
+
};
|
|
1580
|
+
var _hoisted_14$1 = ["dir"];
|
|
1581
|
+
function _sfc_render$2(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
1582
|
+
var _component_tiny_alert = resolveComponent("tiny-alert");
|
|
1583
|
+
var _component_tiny_grid_column = resolveComponent("tiny-grid-column");
|
|
1584
|
+
var _component_tiny_option = resolveComponent("tiny-option");
|
|
1585
|
+
var _component_tiny_select = resolveComponent("tiny-select");
|
|
1586
|
+
var _component_tiny_grid = resolveComponent("tiny-grid");
|
|
1587
|
+
var _component_tiny_tab_item = resolveComponent("tiny-tab-item");
|
|
1588
|
+
var _component_tiny_radio = resolveComponent("tiny-radio");
|
|
1589
|
+
var _component_tiny_custom_switch = resolveComponent("tiny-custom-switch");
|
|
1590
|
+
var _component_tiny_tabs = resolveComponent("tiny-tabs");
|
|
1591
|
+
var _component_tiny_button = resolveComponent("tiny-button");
|
|
1592
|
+
var _component_tiny_modal = resolveComponent("tiny-modal");
|
|
1593
|
+
return openBlock(), createBlock(_component_tiny_modal, {
|
|
1594
|
+
width: "600",
|
|
1595
|
+
title: _ctx.t("ui.grid.individuation.title"),
|
|
1596
|
+
modelValue: _ctx.visible,
|
|
1597
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = function($event) {
|
|
1598
|
+
return _ctx.visible = $event;
|
|
1599
|
+
}),
|
|
1600
|
+
onInput: _ctx.handleInput,
|
|
1601
|
+
onClose: _ctx.handleClose,
|
|
1602
|
+
onCustomMousemove: _ctx.handleCustomMouseMove
|
|
1603
|
+
}, {
|
|
1604
|
+
default: withCtx(function() {
|
|
1605
|
+
return [_ctx.visible ? (openBlock(), createElementBlock("div", _hoisted_1$1, [createVNode(_component_tiny_tabs, {
|
|
1606
|
+
modelValue: _ctx.activeName,
|
|
1607
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = function($event) {
|
|
1608
|
+
return _ctx.activeName = $event;
|
|
1609
|
+
}),
|
|
1610
|
+
class: "tiny-grid-custom__tabs"
|
|
1611
|
+
}, {
|
|
1612
|
+
default: withCtx(function() {
|
|
1613
|
+
return [createElementVNode("div", _hoisted_2$1, [createVNode(_component_tiny_tab_item, {
|
|
1614
|
+
class: "tabs-body-item",
|
|
1615
|
+
title: _ctx.t("ui.grid.individuation.tabs.base.title"),
|
|
1616
|
+
name: "base"
|
|
1617
|
+
}, {
|
|
1618
|
+
default: withCtx(function() {
|
|
1619
|
+
return [createVNode(_component_tiny_alert, {
|
|
1620
|
+
class: "tiny-grid-custom__alert",
|
|
1621
|
+
description: _ctx.t("ui.grid.individuation.tabs.base.tips"),
|
|
1622
|
+
closable: false
|
|
1623
|
+
}, null, 8, ["description"]), createVNode(_component_tiny_grid, {
|
|
1624
|
+
class: "tiny-grid-custom__setting",
|
|
1625
|
+
"auto-resize": true,
|
|
1626
|
+
data: _ctx.columns,
|
|
1627
|
+
"row-class-name": _ctx.rowClassName,
|
|
1628
|
+
"row-key": "",
|
|
1629
|
+
"drop-config": _ctx.dropConfig,
|
|
1630
|
+
"tree-config": {
|
|
1631
|
+
children: "children"
|
|
1493
1632
|
},
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
}) : _vm._e()], 1)]) : _vm._e()];
|
|
1500
|
-
}
|
|
1501
|
-
}], null, false, 2200875852)
|
|
1502
|
-
}), _vm.numberSorting && !_vm.isGroup ? _c("tiny-grid-column", {
|
|
1503
|
-
attrs: {
|
|
1504
|
-
"width": "100px",
|
|
1505
|
-
"editor": {},
|
|
1506
|
-
"renderer": _vm.renderNumberSorting
|
|
1507
|
-
},
|
|
1508
|
-
scopedSlots: _vm._u([{
|
|
1509
|
-
key: "edit",
|
|
1510
|
-
fn: function fn2(_ref2) {
|
|
1511
|
-
var row = _ref2.row;
|
|
1512
|
-
return [_c("tiny-select", {
|
|
1513
|
-
on: {
|
|
1514
|
-
"change": function change($event) {
|
|
1515
|
-
return _vm.handelNumberSorting($event, row);
|
|
1516
|
-
}
|
|
1633
|
+
"show-header": false,
|
|
1634
|
+
"edit-config": {
|
|
1635
|
+
trigger: "click",
|
|
1636
|
+
mode: "cell",
|
|
1637
|
+
showStatus: true
|
|
1517
1638
|
},
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
"
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
"
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1639
|
+
"max-height": _ctx.historyConfig.tableMaxHeight,
|
|
1640
|
+
onRowDropEnd: _ctx.handleRowDropEnd
|
|
1641
|
+
}, {
|
|
1642
|
+
default: withCtx(function() {
|
|
1643
|
+
return [_ctx.initSettings.showIndex ? (openBlock(), createBlock(_component_tiny_grid_column, {
|
|
1644
|
+
key: 0,
|
|
1645
|
+
type: "index",
|
|
1646
|
+
width: "60"
|
|
1647
|
+
})) : createCommentVNode("v-if", true), createVNode(_component_tiny_grid_column, {
|
|
1648
|
+
field: "title",
|
|
1649
|
+
"tree-node": ""
|
|
1650
|
+
}), createVNode(_component_tiny_grid_column, {
|
|
1651
|
+
field: "property",
|
|
1652
|
+
width: "120px",
|
|
1653
|
+
"class-name": "setting-item"
|
|
1654
|
+
}, {
|
|
1655
|
+
default: withCtx(function(_ref6) {
|
|
1656
|
+
var row = _ref6.row, data6 = _objectWithoutPropertiesLoose(_ref6, _excluded2);
|
|
1657
|
+
return [!row.children ? (openBlock(), createElementBlock("div", _hoisted_3$1, [createElementVNode("span", {
|
|
1658
|
+
class: "icon",
|
|
1659
|
+
title: _ctx.visibleTitle(row)
|
|
1660
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(row.visible ? "icon-eyeopen" : "icon-eyeclose"), {
|
|
1661
|
+
class: normalizeClass([{
|
|
1662
|
+
open: row.visible
|
|
1663
|
+
}]),
|
|
1664
|
+
onClick: function onClick($event) {
|
|
1665
|
+
return _ctx.handlerSetting("visible", row, data6);
|
|
1666
|
+
}
|
|
1667
|
+
}, null, 8, ["class", "onClick"]))], 8, _hoisted_4$1), createElementVNode("span", {
|
|
1668
|
+
class: "icon",
|
|
1669
|
+
title: _ctx.sortTitle(row)
|
|
1670
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(row.order ? _ctx.constants.icon[row.order] : "icon-minus"), {
|
|
1671
|
+
class: normalizeClass({
|
|
1672
|
+
sort: row.order,
|
|
1673
|
+
"is-visible": !row.sortable
|
|
1674
|
+
}),
|
|
1675
|
+
onClick: function onClick($event) {
|
|
1676
|
+
return _ctx.handlerSetting("order", row);
|
|
1677
|
+
}
|
|
1678
|
+
}, null, 8, ["class", "onClick"]))], 8, _hoisted_5$1), createElementVNode("span", {
|
|
1679
|
+
class: "icon",
|
|
1680
|
+
title: _ctx.fixedTitle(row)
|
|
1681
|
+
}, [row.level === 1 && _ctx.showFixed ? (openBlock(), createBlock(resolveDynamicComponent(row.fixed ? _ctx.constants.icon[row.fixed] : "icon-unlock"), {
|
|
1682
|
+
key: 0,
|
|
1683
|
+
class: normalizeClass({
|
|
1684
|
+
lock: row.fixed
|
|
1685
|
+
}),
|
|
1686
|
+
onClick: function onClick($event) {
|
|
1687
|
+
return _ctx.handlerSetting("fixed", row);
|
|
1688
|
+
}
|
|
1689
|
+
}, null, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)], 8, _hoisted_6$1)])) : createCommentVNode("v-if", true)];
|
|
1690
|
+
}),
|
|
1691
|
+
_: 1
|
|
1692
|
+
/* STABLE */
|
|
1693
|
+
}), _ctx.numberSorting && !_ctx.isGroup ? (openBlock(), createBlock(_component_tiny_grid_column, {
|
|
1694
|
+
key: 1,
|
|
1695
|
+
width: "100px",
|
|
1696
|
+
editor: {},
|
|
1697
|
+
renderer: _ctx.renderNumberSorting
|
|
1698
|
+
}, {
|
|
1699
|
+
edit: withCtx(function(_ref7) {
|
|
1700
|
+
var row = _ref7.row;
|
|
1701
|
+
return [createVNode(_component_tiny_select, {
|
|
1702
|
+
modelValue: row.sortingIndex,
|
|
1703
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
1704
|
+
return row.sortingIndex = $event;
|
|
1705
|
+
},
|
|
1706
|
+
onChange: function onChange($event) {
|
|
1707
|
+
return _ctx.handelNumberSorting($event, row);
|
|
1708
|
+
}
|
|
1709
|
+
}, {
|
|
1710
|
+
default: withCtx(function() {
|
|
1711
|
+
return [(openBlock(true), createElementBlock(
|
|
1712
|
+
Fragment,
|
|
1713
|
+
null,
|
|
1714
|
+
renderList(_ctx.sortingOptions, function(item) {
|
|
1715
|
+
return openBlock(), createBlock(_component_tiny_option, {
|
|
1716
|
+
key: item,
|
|
1717
|
+
label: item,
|
|
1718
|
+
value: item
|
|
1719
|
+
}, null, 8, ["label", "value"]);
|
|
1720
|
+
}),
|
|
1721
|
+
128
|
|
1722
|
+
/* KEYED_FRAGMENT */
|
|
1723
|
+
))];
|
|
1724
|
+
}),
|
|
1725
|
+
_: 2
|
|
1726
|
+
/* DYNAMIC */
|
|
1727
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])];
|
|
1728
|
+
}),
|
|
1729
|
+
_: 1
|
|
1730
|
+
/* STABLE */
|
|
1731
|
+
}, 8, ["renderer"])) : createCommentVNode("v-if", true)];
|
|
1732
|
+
}),
|
|
1733
|
+
_: 1
|
|
1734
|
+
/* STABLE */
|
|
1735
|
+
}, 8, ["data", "row-class-name", "drop-config", "max-height", "onRowDropEnd"])];
|
|
1736
|
+
}),
|
|
1737
|
+
_: 1
|
|
1738
|
+
/* STABLE */
|
|
1739
|
+
}, 8, ["title"]), _ctx.other ? (openBlock(), createBlock(_component_tiny_tab_item, {
|
|
1740
|
+
key: 0,
|
|
1741
|
+
class: "tabs-body-item",
|
|
1742
|
+
title: _ctx.t("ui.grid.individuation.tabs.other.title"),
|
|
1743
|
+
name: "other"
|
|
1744
|
+
}, {
|
|
1745
|
+
default: withCtx(function() {
|
|
1746
|
+
return [createVNode(_component_tiny_alert, {
|
|
1747
|
+
class: "tiny-grid-custom__alert",
|
|
1748
|
+
description: _ctx.t("ui.grid.individuation.tabs.other.tips"),
|
|
1749
|
+
closable: false
|
|
1750
|
+
}, null, 8, ["description"]), createElementVNode("ul", _hoisted_7$1, [createElementVNode("li", _hoisted_8$1, [createElementVNode(
|
|
1751
|
+
"span",
|
|
1752
|
+
_hoisted_9$1,
|
|
1753
|
+
toDisplayString(_ctx.t("ui.grid.individuation.tabs.other.sortType")),
|
|
1754
|
+
1
|
|
1755
|
+
/* TEXT */
|
|
1756
|
+
), createElementVNode("span", _hoisted_10$1, [createVNode(_component_tiny_radio, {
|
|
1757
|
+
modelValue: _ctx.settings.sortType,
|
|
1758
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
1759
|
+
return _ctx.settings.sortType = $event;
|
|
1760
|
+
}),
|
|
1761
|
+
label: "page"
|
|
1762
|
+
}, {
|
|
1763
|
+
default: withCtx(function() {
|
|
1764
|
+
return [createTextVNode(
|
|
1765
|
+
toDisplayString(_ctx.t("ui.grid.individuation.tabs.other.currPageSort")),
|
|
1766
|
+
1
|
|
1767
|
+
/* TEXT */
|
|
1768
|
+
)];
|
|
1769
|
+
}),
|
|
1770
|
+
_: 1
|
|
1771
|
+
/* STABLE */
|
|
1772
|
+
}, 8, ["modelValue"]), createVNode(_component_tiny_radio, {
|
|
1773
|
+
modelValue: _ctx.settings.sortType,
|
|
1774
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = function($event) {
|
|
1775
|
+
return _ctx.settings.sortType = $event;
|
|
1776
|
+
}),
|
|
1777
|
+
label: "all"
|
|
1778
|
+
}, {
|
|
1779
|
+
default: withCtx(function() {
|
|
1780
|
+
return [createTextVNode(
|
|
1781
|
+
toDisplayString(_ctx.t("ui.grid.individuation.tabs.other.allDataSort")),
|
|
1782
|
+
1
|
|
1783
|
+
/* TEXT */
|
|
1784
|
+
)];
|
|
1785
|
+
}),
|
|
1786
|
+
_: 1
|
|
1787
|
+
/* STABLE */
|
|
1788
|
+
}, 8, ["modelValue"])])]), createElementVNode("li", _hoisted_11$1, [createElementVNode(
|
|
1789
|
+
"span",
|
|
1790
|
+
_hoisted_12$1,
|
|
1791
|
+
toDisplayString(_ctx.t("ui.grid.individuation.tabs.other.pageSize")),
|
|
1792
|
+
1
|
|
1793
|
+
/* TEXT */
|
|
1794
|
+
), createElementVNode("span", _hoisted_13$1, [(openBlock(true), createElementBlock(
|
|
1795
|
+
Fragment,
|
|
1796
|
+
null,
|
|
1797
|
+
renderList(_ctx.initSettings.pageSizes, function(item, index) {
|
|
1798
|
+
return openBlock(), createBlock(_component_tiny_radio, {
|
|
1799
|
+
key: index,
|
|
1800
|
+
modelValue: _ctx.settings.pageSize,
|
|
1801
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = function($event) {
|
|
1802
|
+
return _ctx.settings.pageSize = $event;
|
|
1803
|
+
}),
|
|
1804
|
+
label: item
|
|
1805
|
+
}, {
|
|
1806
|
+
default: withCtx(function() {
|
|
1807
|
+
return [createTextVNode(
|
|
1808
|
+
toDisplayString(item),
|
|
1809
|
+
1
|
|
1810
|
+
/* TEXT */
|
|
1811
|
+
)];
|
|
1812
|
+
}),
|
|
1813
|
+
_: 2
|
|
1814
|
+
/* DYNAMIC */
|
|
1815
|
+
}, 1032, ["modelValue", "label"]);
|
|
1816
|
+
}),
|
|
1817
|
+
128
|
|
1818
|
+
/* KEYED_FRAGMENT */
|
|
1819
|
+
))])])])];
|
|
1820
|
+
}),
|
|
1821
|
+
_: 1
|
|
1822
|
+
/* STABLE */
|
|
1823
|
+
}, 8, ["title"])) : createCommentVNode("v-if", true), _ctx.multipleHistory && _ctx.activeName === "base" ? (openBlock(), createBlock(_component_tiny_custom_switch, {
|
|
1824
|
+
key: 1,
|
|
1825
|
+
ref: "switch",
|
|
1826
|
+
"history-config": _ctx.historyConfig
|
|
1827
|
+
}, null, 8, ["history-config"])) : createCommentVNode("v-if", true)])];
|
|
1828
|
+
}),
|
|
1829
|
+
_: 1
|
|
1830
|
+
/* STABLE */
|
|
1831
|
+
}, 8, ["modelValue"]), !_ctx.multipleHistory || _ctx.multipleHistory && _ctx.activeName === "base" ? (openBlock(), createElementBlock("div", {
|
|
1832
|
+
key: 0,
|
|
1833
|
+
class: "tiny-grid-custom__footer",
|
|
1834
|
+
dir: _ctx.TinyTheme === "saas" ? "rtl" : "ltr"
|
|
1835
|
+
}, [createVNode(_component_tiny_button, {
|
|
1836
|
+
onClick: _ctx.handleReset
|
|
1837
|
+
}, {
|
|
1838
|
+
default: withCtx(function() {
|
|
1839
|
+
return [createTextVNode(
|
|
1840
|
+
toDisplayString(_ctx.t("ui.grid.individuation.resetBtn")),
|
|
1841
|
+
1
|
|
1842
|
+
/* TEXT */
|
|
1843
|
+
)];
|
|
1844
|
+
}),
|
|
1845
|
+
_: 1
|
|
1846
|
+
/* STABLE */
|
|
1847
|
+
}, 8, ["onClick"]), _ctx.showHideAll ? (openBlock(), createBlock(_component_tiny_button, {
|
|
1848
|
+
key: 0,
|
|
1849
|
+
onClick: _cache[4] || (_cache[4] = function($event) {
|
|
1850
|
+
return _ctx.showOrHideAllColumns(!_ctx.showAll);
|
|
1851
|
+
})
|
|
1852
|
+
}, {
|
|
1853
|
+
default: withCtx(function() {
|
|
1854
|
+
return [createTextVNode(
|
|
1855
|
+
toDisplayString(_ctx.showAll ? _ctx.t("ui.grid.individuation.hideAll") : _ctx.t("ui.grid.individuation.showAll")),
|
|
1856
|
+
1
|
|
1857
|
+
/* TEXT */
|
|
1858
|
+
)];
|
|
1859
|
+
}),
|
|
1860
|
+
_: 1
|
|
1861
|
+
/* STABLE */
|
|
1862
|
+
})) : createCommentVNode("v-if", true), createVNode(_component_tiny_button, {
|
|
1863
|
+
onClick: _ctx.cancelSettings
|
|
1864
|
+
}, {
|
|
1865
|
+
default: withCtx(function() {
|
|
1866
|
+
return [createTextVNode(
|
|
1867
|
+
toDisplayString(_ctx.t("ui.grid.individuation.cancelBtn")),
|
|
1868
|
+
1
|
|
1869
|
+
/* TEXT */
|
|
1870
|
+
)];
|
|
1871
|
+
}),
|
|
1872
|
+
_: 1
|
|
1873
|
+
/* STABLE */
|
|
1874
|
+
}, 8, ["onClick"]), createVNode(_component_tiny_button, {
|
|
1875
|
+
type: "primary",
|
|
1876
|
+
onClick: _ctx.saveSettings,
|
|
1877
|
+
disabled: _ctx.saveDisabled
|
|
1878
|
+
}, {
|
|
1879
|
+
default: withCtx(function() {
|
|
1880
|
+
return [createTextVNode(
|
|
1881
|
+
toDisplayString(_ctx.t("ui.grid.individuation.saveBtn")),
|
|
1882
|
+
1
|
|
1883
|
+
/* TEXT */
|
|
1884
|
+
)];
|
|
1885
|
+
}),
|
|
1886
|
+
_: 1
|
|
1887
|
+
/* STABLE */
|
|
1888
|
+
}, 8, ["onClick", "disabled"])], 8, _hoisted_14$1)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)];
|
|
1889
|
+
}),
|
|
1890
|
+
_: 1
|
|
1891
|
+
/* STABLE */
|
|
1892
|
+
}, 8, ["title", "modelValue", "onInput", "onClose", "onCustomMousemove"]);
|
|
1650
1893
|
}
|
|
1651
|
-
var GridCustom = /* @__PURE__ */
|
|
1652
|
-
|
|
1653
|
-
}();
|
|
1654
|
-
var __vue2_script$1 = {
|
|
1894
|
+
var GridCustom = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
1895
|
+
var _sfc_main$1 = {
|
|
1655
1896
|
name: "TinyGridCustomSelect",
|
|
1656
1897
|
components: {
|
|
1657
1898
|
TinySelect: Select,
|
|
@@ -1738,56 +1979,45 @@ var __vue2_script$1 = {
|
|
|
1738
1979
|
}
|
|
1739
1980
|
}
|
|
1740
1981
|
};
|
|
1741
|
-
|
|
1742
|
-
var
|
|
1743
|
-
var
|
|
1744
|
-
var
|
|
1745
|
-
return
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
}), 1);
|
|
1779
|
-
};
|
|
1780
|
-
var staticRenderFns$1 = [];
|
|
1781
|
-
var __cssModules$1 = {};
|
|
1782
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1);
|
|
1783
|
-
function __vue2_injectStyles$1(context) {
|
|
1784
|
-
for (var o in __cssModules$1) {
|
|
1785
|
-
this[o] = __cssModules$1[o];
|
|
1786
|
-
}
|
|
1982
|
+
function _sfc_render$1(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
1983
|
+
var _component_tiny_icon_setting = resolveComponent("tiny-icon-setting");
|
|
1984
|
+
var _component_tiny_option = resolveComponent("tiny-option");
|
|
1985
|
+
var _component_tiny_select = resolveComponent("tiny-select");
|
|
1986
|
+
return openBlock(), createBlock(_component_tiny_select, {
|
|
1987
|
+
modelValue: $data.multivalue,
|
|
1988
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
1989
|
+
return $data.multivalue = $event;
|
|
1990
|
+
}),
|
|
1991
|
+
onChange: $options.columnChange,
|
|
1992
|
+
placeholder: "请选择",
|
|
1993
|
+
placement: "bottom-end",
|
|
1994
|
+
searchable: true,
|
|
1995
|
+
multiple: ""
|
|
1996
|
+
}, {
|
|
1997
|
+
reference: withCtx(function() {
|
|
1998
|
+
return [createVNode(_component_tiny_icon_setting)];
|
|
1999
|
+
}),
|
|
2000
|
+
default: withCtx(function() {
|
|
2001
|
+
return [(openBlock(true), createElementBlock(
|
|
2002
|
+
Fragment,
|
|
2003
|
+
null,
|
|
2004
|
+
renderList($data.columns, function(item) {
|
|
2005
|
+
return openBlock(), createBlock(_component_tiny_option, {
|
|
2006
|
+
key: item.property,
|
|
2007
|
+
disabled: item.disabled,
|
|
2008
|
+
label: item.title,
|
|
2009
|
+
value: item.property
|
|
2010
|
+
}, null, 8, ["disabled", "label", "value"]);
|
|
2011
|
+
}),
|
|
2012
|
+
128
|
|
2013
|
+
/* KEYED_FRAGMENT */
|
|
2014
|
+
))];
|
|
2015
|
+
}),
|
|
2016
|
+
_: 1
|
|
2017
|
+
/* STABLE */
|
|
2018
|
+
}, 8, ["modelValue", "onChange"]);
|
|
1787
2019
|
}
|
|
1788
|
-
var GridCustomSelect = /* @__PURE__ */
|
|
1789
|
-
return __component__$1.exports;
|
|
1790
|
-
}();
|
|
2020
|
+
var GridCustomSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
1791
2021
|
var position = ["left", "right"];
|
|
1792
2022
|
var TitleRender = {
|
|
1793
2023
|
props: ["column"],
|
|
@@ -1803,7 +2033,7 @@ var TitleRender = {
|
|
|
1803
2033
|
}) : title]);
|
|
1804
2034
|
}
|
|
1805
2035
|
};
|
|
1806
|
-
var
|
|
2036
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1807
2037
|
components: {
|
|
1808
2038
|
TinyModal: Modal,
|
|
1809
2039
|
TinyButton: Button,
|
|
@@ -2474,7 +2704,7 @@ var __vue2_script = defineComponent({
|
|
|
2474
2704
|
var props = ["order", "fixed", "visible", "sortable"].concat(this.keys);
|
|
2475
2705
|
!this.updatedSorting && !this.columnsGroup.length && (this.columns = [].concat(this.groupedColumns[0].data));
|
|
2476
2706
|
this.settings.columns = mapTree(this.columns, function(_ref10) {
|
|
2477
|
-
var property = _ref10.property, rest =
|
|
2707
|
+
var property = _ref10.property, rest = _objectWithoutPropertiesLoose(_ref10, _excluded3);
|
|
2478
2708
|
var node = {
|
|
2479
2709
|
property
|
|
2480
2710
|
};
|
|
@@ -2691,566 +2921,871 @@ var __vue2_script = defineComponent({
|
|
|
2691
2921
|
}
|
|
2692
2922
|
}
|
|
2693
2923
|
});
|
|
2694
|
-
var
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2924
|
+
var _hoisted_1 = {
|
|
2925
|
+
key: 0,
|
|
2926
|
+
class: "tiny-grid-custom"
|
|
2927
|
+
};
|
|
2928
|
+
var _hoisted_2 = {
|
|
2929
|
+
class: "tiny-grid-custom__tabs"
|
|
2930
|
+
};
|
|
2931
|
+
var _hoisted_3 = {
|
|
2932
|
+
class: "tiny-grid-custom__tabs-head"
|
|
2933
|
+
};
|
|
2934
|
+
var _hoisted_4 = {
|
|
2935
|
+
class: "tiny-grid-custom__tabs-body"
|
|
2936
|
+
};
|
|
2937
|
+
var _hoisted_5 = {
|
|
2938
|
+
class: "left-panel"
|
|
2939
|
+
};
|
|
2940
|
+
var _hoisted_6 = {
|
|
2941
|
+
key: 0,
|
|
2942
|
+
class: "select-template"
|
|
2943
|
+
};
|
|
2944
|
+
var _hoisted_7 = ["title"];
|
|
2945
|
+
var _hoisted_8 = ["onClick"];
|
|
2946
|
+
var _hoisted_9 = {
|
|
2947
|
+
key: 2
|
|
2948
|
+
};
|
|
2949
|
+
var _hoisted_10 = {
|
|
2950
|
+
key: 0,
|
|
2951
|
+
class: "multi-check-all-btn"
|
|
2952
|
+
};
|
|
2953
|
+
var _hoisted_11 = {
|
|
2954
|
+
class: "tiny-tree-node__label"
|
|
2955
|
+
};
|
|
2956
|
+
var _hoisted_12 = {
|
|
2957
|
+
key: 3
|
|
2958
|
+
};
|
|
2959
|
+
var _hoisted_13 = {
|
|
2960
|
+
key: 0
|
|
2961
|
+
};
|
|
2962
|
+
var _hoisted_14 = {
|
|
2963
|
+
key: 1
|
|
2964
|
+
};
|
|
2965
|
+
var _hoisted_15 = {
|
|
2966
|
+
class: "check-all-btn"
|
|
2967
|
+
};
|
|
2968
|
+
var _hoisted_16 = {
|
|
2969
|
+
class: "right-panel"
|
|
2970
|
+
};
|
|
2971
|
+
var _hoisted_17 = {
|
|
2972
|
+
class: "header"
|
|
2973
|
+
};
|
|
2974
|
+
var _hoisted_18 = {
|
|
2975
|
+
key: 0
|
|
2976
|
+
};
|
|
2977
|
+
var _hoisted_19 = {
|
|
2978
|
+
key: 1
|
|
2979
|
+
};
|
|
2980
|
+
var _hoisted_20 = {
|
|
2981
|
+
ref: "list",
|
|
2982
|
+
class: "column-list-panel"
|
|
2983
|
+
};
|
|
2984
|
+
var _hoisted_21 = ["data-row"];
|
|
2985
|
+
var _hoisted_22 = {
|
|
2986
|
+
key: 0,
|
|
2987
|
+
class: "drag-icon toolbar-drag-item"
|
|
2988
|
+
};
|
|
2989
|
+
var _hoisted_23 = /* @__PURE__ */ createElementVNode(
|
|
2990
|
+
"span",
|
|
2991
|
+
null,
|
|
2992
|
+
null,
|
|
2993
|
+
-1
|
|
2994
|
+
/* HOISTED */
|
|
2995
|
+
);
|
|
2996
|
+
var _hoisted_24 = /* @__PURE__ */ createElementVNode(
|
|
2997
|
+
"span",
|
|
2998
|
+
null,
|
|
2999
|
+
null,
|
|
3000
|
+
-1
|
|
3001
|
+
/* HOISTED */
|
|
3002
|
+
);
|
|
3003
|
+
var _hoisted_25 = /* @__PURE__ */ createElementVNode(
|
|
3004
|
+
"span",
|
|
3005
|
+
null,
|
|
3006
|
+
null,
|
|
3007
|
+
-1
|
|
3008
|
+
/* HOISTED */
|
|
3009
|
+
);
|
|
3010
|
+
var _hoisted_26 = /* @__PURE__ */ createElementVNode(
|
|
3011
|
+
"span",
|
|
3012
|
+
null,
|
|
3013
|
+
null,
|
|
3014
|
+
-1
|
|
3015
|
+
/* HOISTED */
|
|
3016
|
+
);
|
|
3017
|
+
var _hoisted_27 = /* @__PURE__ */ createElementVNode(
|
|
3018
|
+
"span",
|
|
3019
|
+
null,
|
|
3020
|
+
null,
|
|
3021
|
+
-1
|
|
3022
|
+
/* HOISTED */
|
|
3023
|
+
);
|
|
3024
|
+
var _hoisted_28 = /* @__PURE__ */ createElementVNode(
|
|
3025
|
+
"span",
|
|
3026
|
+
null,
|
|
3027
|
+
null,
|
|
3028
|
+
-1
|
|
3029
|
+
/* HOISTED */
|
|
3030
|
+
);
|
|
3031
|
+
var _hoisted_29 = [_hoisted_23, _hoisted_24, _hoisted_25, _hoisted_26, _hoisted_27, _hoisted_28];
|
|
3032
|
+
var _hoisted_30 = {
|
|
3033
|
+
key: 2,
|
|
3034
|
+
class: "sort-number"
|
|
3035
|
+
};
|
|
3036
|
+
var _hoisted_31 = {
|
|
3037
|
+
key: 0,
|
|
3038
|
+
class: "sort-number-editor"
|
|
3039
|
+
};
|
|
3040
|
+
var _hoisted_32 = ["onClick"];
|
|
3041
|
+
var _hoisted_33 = {
|
|
3042
|
+
key: 3,
|
|
3043
|
+
class: "dropdown-column"
|
|
3044
|
+
};
|
|
3045
|
+
var _hoisted_34 = {
|
|
3046
|
+
key: 2,
|
|
3047
|
+
class: "set-btn"
|
|
3048
|
+
};
|
|
3049
|
+
var _hoisted_35 = ["onClick"];
|
|
3050
|
+
var _hoisted_36 = {
|
|
3051
|
+
key: 1
|
|
3052
|
+
};
|
|
3053
|
+
var _hoisted_37 = ["data-row"];
|
|
3054
|
+
var _hoisted_38 = {
|
|
3055
|
+
class: "column-container"
|
|
3056
|
+
};
|
|
3057
|
+
var _hoisted_39 = {
|
|
3058
|
+
class: "other-setting"
|
|
3059
|
+
};
|
|
3060
|
+
var _hoisted_40 = {
|
|
3061
|
+
class: "label"
|
|
3062
|
+
};
|
|
3063
|
+
var _hoisted_41 = ["dir"];
|
|
3064
|
+
function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
3065
|
+
var _component_tiny_option = resolveComponent("tiny-option");
|
|
3066
|
+
var _component_tiny_select = resolveComponent("tiny-select");
|
|
3067
|
+
var _component_tiny_search = resolveComponent("tiny-search");
|
|
3068
|
+
var _component_tiny_checkbox = resolveComponent("tiny-checkbox");
|
|
3069
|
+
var _component_title_render = resolveComponent("title-render");
|
|
3070
|
+
var _component_tiny_tree = resolveComponent("tiny-tree");
|
|
3071
|
+
var _component_tiny_checkbox_group = resolveComponent("tiny-checkbox-group");
|
|
3072
|
+
var _component_icon_chevron_right = resolveComponent("icon-chevron-right");
|
|
3073
|
+
var _component_icon_left_frozen = resolveComponent("icon-left-frozen");
|
|
3074
|
+
var _component_icon_right_frozen = resolveComponent("icon-right-frozen");
|
|
3075
|
+
var _component_tiny_dropdown_item = resolveComponent("tiny-dropdown-item");
|
|
3076
|
+
var _component_tiny_dropdown_menu = resolveComponent("tiny-dropdown-menu");
|
|
3077
|
+
var _component_tiny_dropdown = resolveComponent("tiny-dropdown");
|
|
3078
|
+
var _component_icon_ascending = resolveComponent("icon-ascending");
|
|
3079
|
+
var _component_icon_descending = resolveComponent("icon-descending");
|
|
3080
|
+
var _component_icon_close = resolveComponent("icon-close");
|
|
3081
|
+
var _component_tiny_split = resolveComponent("tiny-split");
|
|
3082
|
+
var _component_tiny_radio = resolveComponent("tiny-radio");
|
|
3083
|
+
var _component_tiny_radio_group = resolveComponent("tiny-radio-group");
|
|
3084
|
+
var _component_tiny_button = resolveComponent("tiny-button");
|
|
3085
|
+
var _component_tiny_custom_switch = resolveComponent("tiny-custom-switch");
|
|
3086
|
+
var _component_tiny_tooltip = resolveComponent("tiny-tooltip");
|
|
3087
|
+
var _component_tiny_modal = resolveComponent("tiny-modal");
|
|
3088
|
+
var _directive_clickoutside = resolveDirective("clickoutside");
|
|
3089
|
+
return openBlock(), createBlock(_component_tiny_modal, {
|
|
3090
|
+
width: "800",
|
|
3091
|
+
title: " ",
|
|
3092
|
+
class: "tiny-grid-toolbar-modal",
|
|
3093
|
+
modelValue: _ctx.visible,
|
|
3094
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = function($event) {
|
|
3095
|
+
return _ctx.visible = $event;
|
|
3096
|
+
}),
|
|
3097
|
+
onInput: _ctx.handleInput,
|
|
3098
|
+
onClose: _ctx.handleClose
|
|
3099
|
+
}, {
|
|
3100
|
+
default: withCtx(function() {
|
|
3101
|
+
return [_ctx.visible ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("ul", null, [createElementVNode(
|
|
3102
|
+
"li",
|
|
3103
|
+
{
|
|
3104
|
+
onClick: _cache[0] || (_cache[0] = function($event) {
|
|
3105
|
+
return _ctx.activeName = "base";
|
|
3106
|
+
}),
|
|
3107
|
+
class: normalizeClass({
|
|
3108
|
+
"tiny-grid-custom__tabs-selected": _ctx.activeName === "base" && _ctx.other,
|
|
3109
|
+
"tiny-grid-custom__tabs-base": !_ctx.other
|
|
3110
|
+
})
|
|
3111
|
+
},
|
|
3112
|
+
[createElementVNode(
|
|
3113
|
+
"span",
|
|
3114
|
+
null,
|
|
3115
|
+
toDisplayString(_ctx.t("ui.grid.individuation.columnSet")),
|
|
3116
|
+
1
|
|
3117
|
+
/* TEXT */
|
|
3118
|
+
)],
|
|
3119
|
+
2
|
|
3120
|
+
/* CLASS */
|
|
3121
|
+
), _ctx.other ? (openBlock(), createElementBlock(
|
|
3122
|
+
"li",
|
|
3123
|
+
{
|
|
3124
|
+
key: 0,
|
|
3125
|
+
onClick: _cache[1] || (_cache[1] = function($event) {
|
|
3126
|
+
return _ctx.activeName = "other";
|
|
3127
|
+
}),
|
|
3128
|
+
class: normalizeClass({
|
|
3129
|
+
"tiny-grid-custom__tabs-selected": _ctx.activeName === "other"
|
|
3130
|
+
})
|
|
3131
|
+
},
|
|
3132
|
+
[createElementVNode(
|
|
3133
|
+
"span",
|
|
3134
|
+
null,
|
|
3135
|
+
toDisplayString(_ctx.t("ui.grid.individuation.tabs.other.title")),
|
|
3136
|
+
1
|
|
3137
|
+
/* TEXT */
|
|
3138
|
+
)],
|
|
3139
|
+
2
|
|
3140
|
+
/* CLASS */
|
|
3141
|
+
)) : createCommentVNode("v-if", true)])]), createElementVNode("div", _hoisted_4, [withDirectives(createElementVNode(
|
|
3142
|
+
"div",
|
|
3143
|
+
{
|
|
3144
|
+
class: normalizeClass(["tabs-body-item", _ctx.animateShow === "base" ? "active-item" : ""])
|
|
3145
|
+
},
|
|
3146
|
+
[createVNode(_component_tiny_split, {
|
|
3147
|
+
modelValue: _ctx.splitVal,
|
|
3148
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = function($event) {
|
|
3149
|
+
return _ctx.splitVal = $event;
|
|
3150
|
+
}),
|
|
3151
|
+
"trigger-simple": "",
|
|
3152
|
+
"collapse-left-top": ""
|
|
3153
|
+
}, {
|
|
3154
|
+
left: withCtx(function() {
|
|
3155
|
+
return [createElementVNode("div", _hoisted_5, [_ctx.multipleHistory ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(_component_tiny_select, {
|
|
3156
|
+
modelValue: _ctx.selectedTemplate,
|
|
3157
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = function($event) {
|
|
3158
|
+
return _ctx.selectedTemplate = $event;
|
|
3159
|
+
}),
|
|
3160
|
+
shape: "filter",
|
|
3161
|
+
label: _ctx.t("ui.grid.individuation.selectTemplate"),
|
|
3162
|
+
onChange: _ctx.selectedTemplateChange,
|
|
3163
|
+
clearable: ""
|
|
3164
|
+
}, {
|
|
3165
|
+
default: withCtx(function() {
|
|
3166
|
+
return [(openBlock(true), createElementBlock(
|
|
3167
|
+
Fragment,
|
|
3168
|
+
null,
|
|
3169
|
+
renderList(_ctx.templateOptions, function(item) {
|
|
3170
|
+
return openBlock(), createBlock(_component_tiny_option, {
|
|
3171
|
+
key: item.id,
|
|
3172
|
+
label: item.name,
|
|
3173
|
+
value: item.id
|
|
3174
|
+
}, {
|
|
3175
|
+
default: withCtx(function() {
|
|
3176
|
+
return [createElementVNode("span", {
|
|
3177
|
+
style: {
|
|
3178
|
+
"float": "left",
|
|
3179
|
+
"width": "240px",
|
|
3180
|
+
"overflow": "hidden",
|
|
3181
|
+
"text-overflow": "ellipsis",
|
|
3182
|
+
"white-space": "nowrap"
|
|
3183
|
+
},
|
|
3184
|
+
title: item.name
|
|
3185
|
+
}, toDisplayString(item.name), 9, _hoisted_7), _ctx.historyConfig.showDel ? (openBlock(), createElementBlock("span", {
|
|
3186
|
+
key: 0,
|
|
3187
|
+
style: {
|
|
3188
|
+
"float": "right",
|
|
3189
|
+
"padding": "0 6px",
|
|
3190
|
+
"color": "#1890ff",
|
|
3191
|
+
"cursor": "pointer"
|
|
3192
|
+
},
|
|
3193
|
+
onClick: function onClick($event) {
|
|
3194
|
+
return _ctx.deleteTemplate(item, $event);
|
|
3195
|
+
}
|
|
3196
|
+
}, toDisplayString(_ctx.t("ui.grid.individuation.switchdel")), 9, _hoisted_8)) : createCommentVNode("v-if", true)];
|
|
3197
|
+
}),
|
|
3198
|
+
_: 2
|
|
3199
|
+
/* DYNAMIC */
|
|
3200
|
+
}, 1032, ["label", "value"]);
|
|
3201
|
+
}),
|
|
3202
|
+
128
|
|
3203
|
+
/* KEYED_FRAGMENT */
|
|
3204
|
+
))];
|
|
3205
|
+
}),
|
|
3206
|
+
_: 1
|
|
3207
|
+
/* STABLE */
|
|
3208
|
+
}, 8, ["modelValue", "label", "onChange"])])) : createCommentVNode("v-if", true), _ctx.search ? (openBlock(), createBlock(_component_tiny_search, {
|
|
3209
|
+
key: 1,
|
|
3210
|
+
modelValue: _ctx.searchValue,
|
|
3211
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = function($event) {
|
|
3212
|
+
return _ctx.searchValue = $event;
|
|
3213
|
+
}),
|
|
3214
|
+
onInput: _ctx.searchChange,
|
|
3215
|
+
placeholder: _ctx.t("ui.grid.individuation.toolbar.search")
|
|
3216
|
+
}, null, 8, ["modelValue", "onInput", "placeholder"])) : createCommentVNode("v-if", true), _ctx.isGroup ? (openBlock(), createElementBlock("div", _hoisted_9, [!_ctx.searchValue ? (openBlock(), createElementBlock("div", _hoisted_10, [createVNode(_component_tiny_checkbox, {
|
|
3217
|
+
indeterminate: _ctx.isMultiIndeterminate,
|
|
3218
|
+
modelValue: _ctx.multiCheckAll,
|
|
3219
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = function($event) {
|
|
3220
|
+
return _ctx.multiCheckAll = $event;
|
|
3221
|
+
}),
|
|
3222
|
+
onChange: _ctx.checkAllChange
|
|
3223
|
+
}, {
|
|
3224
|
+
default: withCtx(function() {
|
|
3225
|
+
return [createTextVNode(
|
|
3226
|
+
toDisplayString(_ctx.t("ui.grid.individuation.toolbar.all")),
|
|
3227
|
+
1
|
|
3228
|
+
/* TEXT */
|
|
3229
|
+
)];
|
|
3230
|
+
}),
|
|
3231
|
+
_: 1
|
|
3232
|
+
/* STABLE */
|
|
3233
|
+
}, 8, ["indeterminate", "modelValue", "onChange"])])) : createCommentVNode("v-if", true), createVNode(_component_tiny_tree, {
|
|
3234
|
+
ref: "tree",
|
|
3235
|
+
data: _ctx.columns,
|
|
3236
|
+
"default-expand-all": "",
|
|
3237
|
+
"check-on-click-node": "",
|
|
3238
|
+
"show-checkbox": "",
|
|
3239
|
+
"node-key": "id",
|
|
3240
|
+
"default-checked-keys": _ctx.defaultcheckedkeys,
|
|
3241
|
+
onCheck: _ctx.checkNode,
|
|
3242
|
+
"filter-node-method": _ctx.filterTreeNode,
|
|
3243
|
+
props: {
|
|
3244
|
+
label: "title"
|
|
3245
|
+
}
|
|
3246
|
+
}, {
|
|
3247
|
+
default: withCtx(function(sourceData) {
|
|
3248
|
+
return [createElementVNode("div", _hoisted_11, [createVNode(_component_title_render, {
|
|
3249
|
+
column: sourceData.data
|
|
3250
|
+
}, null, 8, ["column"])])];
|
|
3251
|
+
}),
|
|
3252
|
+
_: 1
|
|
3253
|
+
/* STABLE */
|
|
3254
|
+
}, 8, ["data", "default-checked-keys", "onCheck", "filter-node-method"])])) : (openBlock(), createElementBlock("div", _hoisted_12, [_ctx.searchValue ? (openBlock(), createElementBlock("div", _hoisted_13, [createVNode(_component_tiny_checkbox_group, {
|
|
3255
|
+
modelValue: _ctx.checkedColumns,
|
|
3256
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = function($event) {
|
|
3257
|
+
return _ctx.checkedColumns = $event;
|
|
3258
|
+
}),
|
|
3259
|
+
vertical: ""
|
|
3260
|
+
}, {
|
|
3261
|
+
default: withCtx(function() {
|
|
3262
|
+
return [(openBlock(true), createElementBlock(
|
|
3263
|
+
Fragment,
|
|
3264
|
+
null,
|
|
3265
|
+
renderList(_ctx.searchColumns, function(column) {
|
|
3266
|
+
return openBlock(), createBlock(_component_tiny_checkbox, {
|
|
3267
|
+
label: column.property,
|
|
3268
|
+
disabled: column.alwaysShow,
|
|
3269
|
+
key: column.property
|
|
3270
|
+
}, {
|
|
3271
|
+
default: withCtx(function() {
|
|
3272
|
+
return [createVNode(_component_title_render, {
|
|
3273
|
+
column
|
|
3274
|
+
}, null, 8, ["column"])];
|
|
3275
|
+
}),
|
|
3276
|
+
_: 2
|
|
3277
|
+
/* DYNAMIC */
|
|
3278
|
+
}, 1032, ["label", "disabled"]);
|
|
3279
|
+
}),
|
|
3280
|
+
128
|
|
3281
|
+
/* KEYED_FRAGMENT */
|
|
3282
|
+
))];
|
|
3283
|
+
}),
|
|
3284
|
+
_: 1
|
|
3285
|
+
/* STABLE */
|
|
3286
|
+
}, 8, ["modelValue"])])) : (openBlock(), createElementBlock("div", _hoisted_14, [createElementVNode("div", _hoisted_15, [createVNode(_component_tiny_checkbox, {
|
|
3287
|
+
indeterminate: _ctx.isIndeterminate,
|
|
3288
|
+
modelValue: _ctx.checkAll,
|
|
3289
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = function($event) {
|
|
3290
|
+
return _ctx.checkAll = $event;
|
|
3291
|
+
})
|
|
3292
|
+
}, {
|
|
3293
|
+
default: withCtx(function() {
|
|
3294
|
+
return [createTextVNode(
|
|
3295
|
+
toDisplayString(_ctx.t("ui.grid.individuation.toolbar.all")),
|
|
3296
|
+
1
|
|
3297
|
+
/* TEXT */
|
|
3298
|
+
)];
|
|
3299
|
+
}),
|
|
3300
|
+
_: 1
|
|
3301
|
+
/* STABLE */
|
|
3302
|
+
}, 8, ["indeterminate", "modelValue"])]), createVNode(_component_tiny_checkbox_group, {
|
|
3303
|
+
modelValue: _ctx.checkedColumns,
|
|
3304
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = function($event) {
|
|
3305
|
+
return _ctx.checkedColumns = $event;
|
|
3306
|
+
}),
|
|
3307
|
+
vertical: ""
|
|
3308
|
+
}, {
|
|
3309
|
+
default: withCtx(function() {
|
|
3310
|
+
return [(openBlock(true), createElementBlock(
|
|
3311
|
+
Fragment,
|
|
3312
|
+
null,
|
|
3313
|
+
renderList(_ctx.groupedColumns, function(group, index) {
|
|
3314
|
+
return openBlock(), createElementBlock(
|
|
3315
|
+
Fragment,
|
|
3316
|
+
null,
|
|
3317
|
+
[_ctx.defer(Math.floor(index / 5)) ? (openBlock(), createElementBlock("div", {
|
|
3318
|
+
key: index
|
|
3319
|
+
}, [group.label ? (openBlock(), createElementBlock(
|
|
3320
|
+
"p",
|
|
3321
|
+
{
|
|
3322
|
+
key: 0,
|
|
3323
|
+
class: normalizeClass(["group-label", [index === 0 && "group-label-first"]])
|
|
3324
|
+
},
|
|
3325
|
+
toDisplayString(group.label),
|
|
3326
|
+
3
|
|
3327
|
+
/* TEXT, CLASS */
|
|
3328
|
+
)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(
|
|
3329
|
+
Fragment,
|
|
3330
|
+
null,
|
|
3331
|
+
renderList(group.data, function(column) {
|
|
3332
|
+
return openBlock(), createBlock(_component_tiny_checkbox, {
|
|
3333
|
+
label: column.property,
|
|
3334
|
+
disabled: column.alwaysShow,
|
|
3335
|
+
key: column.property
|
|
3336
|
+
}, {
|
|
3337
|
+
default: withCtx(function() {
|
|
3338
|
+
return [createVNode(_component_title_render, {
|
|
3339
|
+
column
|
|
3340
|
+
}, null, 8, ["column"])];
|
|
3341
|
+
}),
|
|
3342
|
+
_: 2
|
|
3343
|
+
/* DYNAMIC */
|
|
3344
|
+
}, 1032, ["label", "disabled"]);
|
|
3345
|
+
}),
|
|
3346
|
+
128
|
|
3347
|
+
/* KEYED_FRAGMENT */
|
|
3348
|
+
))])) : createCommentVNode("v-if", true)],
|
|
3349
|
+
64
|
|
3350
|
+
/* STABLE_FRAGMENT */
|
|
3351
|
+
);
|
|
3352
|
+
}),
|
|
3353
|
+
256
|
|
3354
|
+
/* UNKEYED_FRAGMENT */
|
|
3355
|
+
))];
|
|
3356
|
+
}),
|
|
3357
|
+
_: 1
|
|
3358
|
+
/* STABLE */
|
|
3359
|
+
}, 8, ["modelValue"])]))]))])];
|
|
3360
|
+
}),
|
|
3361
|
+
right: withCtx(function() {
|
|
3362
|
+
return [createElementVNode("div", _hoisted_16, [createElementVNode("div", _hoisted_17, [createElementVNode(
|
|
3363
|
+
"p",
|
|
3364
|
+
null,
|
|
3365
|
+
toDisplayString(_ctx.t("ui.grid.individuation.toolbar.selected")) + " (" + toDisplayString(_ctx.visibleColumns.length) + "/" + toDisplayString(_ctx.columns.length) + ") ",
|
|
3366
|
+
1
|
|
3367
|
+
/* TEXT */
|
|
3368
|
+
), !_ctx.setting.hideFixedColumn ? (openBlock(), createElementBlock(
|
|
3369
|
+
"span",
|
|
3370
|
+
_hoisted_18,
|
|
3371
|
+
toDisplayString(_ctx.t("ui.grid.individuation.toolbar.freeze")),
|
|
3372
|
+
1
|
|
3373
|
+
/* TEXT */
|
|
3374
|
+
)) : createCommentVNode("v-if", true), !_ctx.setting.hideSortColumn ? (openBlock(), createElementBlock(
|
|
3375
|
+
"span",
|
|
3376
|
+
_hoisted_19,
|
|
3377
|
+
toDisplayString(_ctx.t("ui.grid.individuation.toolbar.sort")),
|
|
3378
|
+
1
|
|
3379
|
+
/* TEXT */
|
|
3380
|
+
)) : createCommentVNode("v-if", true), !_ctx.isGroup ? (openBlock(), createElementBlock(
|
|
3381
|
+
"span",
|
|
3382
|
+
{
|
|
3383
|
+
key: 2,
|
|
3384
|
+
class: "clear-all",
|
|
3385
|
+
onClick: _cache[8] || (_cache[8] = function() {
|
|
3386
|
+
return _ctx.handelClearAll && _ctx.handelClearAll.apply(_ctx, arguments);
|
|
3387
|
+
})
|
|
3388
|
+
},
|
|
3389
|
+
toDisplayString(_ctx.t("ui.grid.individuation.toolbar.clear")),
|
|
3390
|
+
1
|
|
3391
|
+
/* TEXT */
|
|
3392
|
+
)) : createCommentVNode("v-if", true)]), createElementVNode(
|
|
3393
|
+
"ul",
|
|
3394
|
+
_hoisted_20,
|
|
3395
|
+
[(openBlock(true), createElementBlock(
|
|
3396
|
+
Fragment,
|
|
3397
|
+
null,
|
|
3398
|
+
renderList(_ctx.visibleColumns, function(column, index) {
|
|
3399
|
+
return openBlock(), createElementBlock("li", {
|
|
3400
|
+
key: column.property + index,
|
|
3401
|
+
class: normalizeClass([column.fixed, _ctx.getRowClassName(column), "column-list-item", !column.expand && "item-collapse"]),
|
|
2953
3402
|
"data-tag": "tiny-grid-toolbar-item",
|
|
2954
3403
|
"data-row": column.property
|
|
2955
|
-
}
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
staticClass: "drag-icon toolbar-drag-item"
|
|
2961
|
-
}, [_c("span"), _c("span"), _c("span"), _c("span"), _c("span"), _c("span")]) : _vm._e(), _vm.isGroup && column.children ? _c("div", {
|
|
2962
|
-
staticClass: "toolbar-icon-expand",
|
|
2963
|
-
class: [column.expand && "toolbar-icon-collapse"]
|
|
2964
|
-
}, [_c("icon-chevron-right", {
|
|
2965
|
-
on: {
|
|
2966
|
-
"click": function click($event) {
|
|
2967
|
-
column.expand = !column.expand;
|
|
2968
|
-
}
|
|
2969
|
-
}
|
|
2970
|
-
})], 1) : _vm._e(), !_vm.isGroup ? _c("div", {
|
|
2971
|
-
staticClass: "sort-number"
|
|
2972
|
-
}, [column.numberSortVisible ? _c("div", {
|
|
2973
|
-
directives: [{
|
|
2974
|
-
name: "clickoutside",
|
|
2975
|
-
rawName: "v-clickoutside",
|
|
2976
|
-
value: _vm.clickEditorOutside,
|
|
2977
|
-
expression: "clickEditorOutside"
|
|
2978
|
-
}],
|
|
2979
|
-
staticClass: "sort-number-editor"
|
|
2980
|
-
}, [_c("tiny-select", {
|
|
2981
|
-
ref: "select" + index,
|
|
2982
|
-
refInFor: true,
|
|
2983
|
-
attrs: {
|
|
2984
|
-
"automatic-dropdown": ""
|
|
2985
|
-
},
|
|
2986
|
-
on: {
|
|
2987
|
-
"focus": function focus($event) {
|
|
2988
|
-
return _vm.selectFocus($event, column.sortingIndex);
|
|
2989
|
-
},
|
|
2990
|
-
"change": _vm.sortSelectChange
|
|
2991
|
-
},
|
|
2992
|
-
model: {
|
|
2993
|
-
value: column.sortingIndex,
|
|
2994
|
-
callback: function callback($$v) {
|
|
2995
|
-
_vm.$set(column, "sortingIndex", $$v);
|
|
3404
|
+
}, [createElementVNode("div", null, [_ctx.defer(Math.floor(index / 3)) ? (openBlock(), createElementBlock(
|
|
3405
|
+
"div",
|
|
3406
|
+
{
|
|
3407
|
+
key: 0,
|
|
3408
|
+
class: normalizeClass(["column-container", [!_ctx.isGroup && "with-padding"]])
|
|
2996
3409
|
},
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
});
|
|
3007
|
-
}), 1)], 1) : _c("div", {
|
|
3008
|
-
staticClass: "sort-number-display",
|
|
3009
|
-
on: {
|
|
3010
|
-
"click": function click($event) {
|
|
3011
|
-
return _vm.clickSortDisplay(column, index);
|
|
3012
|
-
}
|
|
3013
|
-
}
|
|
3014
|
-
}, [_vm._v(" " + _vm._s(column.sortingIndex) + " ")])]) : _vm._e(), _c("p", {
|
|
3015
|
-
staticClass: "name toolbar-drag-item",
|
|
3016
|
-
class: [_vm.dropConfig.plugin && !_vm.isGroup && "dragable"],
|
|
3017
|
-
on: {
|
|
3018
|
-
"mouseenter": _vm.handleMouseenter,
|
|
3019
|
-
"mouseleave": _vm.handleMouseleave
|
|
3020
|
-
}
|
|
3021
|
-
}, [_c("title-render", {
|
|
3022
|
-
attrs: {
|
|
3023
|
-
"column": column
|
|
3024
|
-
}
|
|
3025
|
-
})], 1), !_vm.setting.hideFixedColumn && (!_vm.isGroup || !column.children) ? _c("div", {
|
|
3026
|
-
staticClass: "dropdown-column"
|
|
3027
|
-
}, [_c("tiny-dropdown", {
|
|
3028
|
-
attrs: {
|
|
3029
|
-
"show-icon": false,
|
|
3030
|
-
"trigger": "hover"
|
|
3031
|
-
},
|
|
3032
|
-
on: {
|
|
3033
|
-
"item-click": _vm.handleFixedItemClick
|
|
3034
|
-
},
|
|
3035
|
-
scopedSlots: _vm._u([{
|
|
3036
|
-
key: "dropdown",
|
|
3037
|
-
fn: function fn3() {
|
|
3038
|
-
return [_c("tiny-dropdown-menu", {
|
|
3039
|
-
on: {
|
|
3040
|
-
"mouseenter": function mouseenter($event) {
|
|
3041
|
-
return _vm.handleDropdownMouseenter($event, index);
|
|
3042
|
-
},
|
|
3043
|
-
"mouseleave": function mouseleave($event) {
|
|
3044
|
-
return _vm.handleDropdownMouseleave($event, index);
|
|
3045
|
-
}
|
|
3410
|
+
[_ctx.dropConfig.plugin && !_ctx.isGroup ? (openBlock(), createElementBlock("div", _hoisted_22, _hoisted_29)) : createCommentVNode("v-if", true), _ctx.isGroup && column.children ? (openBlock(), createElementBlock(
|
|
3411
|
+
"div",
|
|
3412
|
+
{
|
|
3413
|
+
key: 1,
|
|
3414
|
+
class: normalizeClass(["toolbar-icon-expand", [column.expand && "toolbar-icon-collapse"]])
|
|
3415
|
+
},
|
|
3416
|
+
[createVNode(_component_icon_chevron_right, {
|
|
3417
|
+
onClick: function onClick($event) {
|
|
3418
|
+
return column.expand = !column.expand;
|
|
3046
3419
|
}
|
|
3047
|
-
},
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3420
|
+
}, null, 8, ["onClick"])],
|
|
3421
|
+
2
|
|
3422
|
+
/* CLASS */
|
|
3423
|
+
)) : createCommentVNode("v-if", true), !_ctx.isGroup ? (openBlock(), createElementBlock("div", _hoisted_30, [column.numberSortVisible ? withDirectives((openBlock(), createElementBlock("div", _hoisted_31, [createVNode(_component_tiny_select, {
|
|
3424
|
+
ref_for: true,
|
|
3425
|
+
ref: "select" + index,
|
|
3426
|
+
modelValue: column.sortingIndex,
|
|
3427
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
3428
|
+
return column.sortingIndex = $event;
|
|
3429
|
+
},
|
|
3430
|
+
"automatic-dropdown": "",
|
|
3431
|
+
onFocus: function onFocus($event) {
|
|
3432
|
+
return _ctx.selectFocus($event, column.sortingIndex);
|
|
3433
|
+
},
|
|
3434
|
+
onChange: _ctx.sortSelectChange
|
|
3435
|
+
}, {
|
|
3436
|
+
default: withCtx(function() {
|
|
3437
|
+
return [(openBlock(true), createElementBlock(
|
|
3438
|
+
Fragment,
|
|
3439
|
+
null,
|
|
3440
|
+
renderList(_ctx.sortingOptions, function(item) {
|
|
3441
|
+
return openBlock(), createBlock(_component_tiny_option, {
|
|
3442
|
+
key: item,
|
|
3443
|
+
label: item,
|
|
3444
|
+
value: item
|
|
3445
|
+
}, null, 8, ["label", "value"]);
|
|
3446
|
+
}),
|
|
3447
|
+
128
|
|
3448
|
+
/* KEYED_FRAGMENT */
|
|
3449
|
+
))];
|
|
3450
|
+
}),
|
|
3451
|
+
_: 2
|
|
3452
|
+
/* DYNAMIC */
|
|
3453
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])])), [[_directive_clickoutside, _ctx.clickEditorOutside]]) : (openBlock(), createElementBlock("div", {
|
|
3454
|
+
key: 1,
|
|
3455
|
+
class: "sort-number-display",
|
|
3456
|
+
onClick: function onClick($event) {
|
|
3457
|
+
return _ctx.clickSortDisplay(column, index);
|
|
3458
|
+
}
|
|
3459
|
+
}, toDisplayString(column.sortingIndex), 9, _hoisted_32))])) : createCommentVNode("v-if", true), createElementVNode(
|
|
3460
|
+
"p",
|
|
3461
|
+
{
|
|
3462
|
+
class: normalizeClass(["name toolbar-drag-item", [_ctx.dropConfig.plugin && !_ctx.isGroup && "dragable"]]),
|
|
3463
|
+
onMouseenter: _cache[9] || (_cache[9] = function() {
|
|
3464
|
+
return _ctx.handleMouseenter && _ctx.handleMouseenter.apply(_ctx, arguments);
|
|
3465
|
+
}),
|
|
3466
|
+
onMouseleave: _cache[10] || (_cache[10] = function() {
|
|
3467
|
+
return _ctx.handleMouseleave && _ctx.handleMouseleave.apply(_ctx, arguments);
|
|
3468
|
+
})
|
|
3469
|
+
},
|
|
3470
|
+
[createVNode(_component_title_render, {
|
|
3471
|
+
column
|
|
3472
|
+
}, null, 8, ["column"])],
|
|
3473
|
+
34
|
|
3474
|
+
/* CLASS, NEED_HYDRATION */
|
|
3475
|
+
), !_ctx.setting.hideFixedColumn && (!_ctx.isGroup || !column.children) ? (openBlock(), createElementBlock("div", _hoisted_33, [createVNode(_component_tiny_dropdown, {
|
|
3476
|
+
"show-icon": false,
|
|
3477
|
+
onItemClick: _ctx.handleFixedItemClick,
|
|
3478
|
+
trigger: "hover"
|
|
3479
|
+
}, {
|
|
3480
|
+
dropdown: withCtx(function() {
|
|
3481
|
+
return [createVNode(_component_tiny_dropdown_menu, {
|
|
3482
|
+
onMouseenter: function onMouseenter($event) {
|
|
3483
|
+
return _ctx.handleDropdownMouseenter($event, index);
|
|
3084
3484
|
},
|
|
3085
|
-
|
|
3086
|
-
return
|
|
3485
|
+
onMouseleave: function onMouseleave($event) {
|
|
3486
|
+
return _ctx.handleDropdownMouseleave($event, index);
|
|
3087
3487
|
}
|
|
3088
|
-
}
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3488
|
+
}, {
|
|
3489
|
+
default: withCtx(function() {
|
|
3490
|
+
return [(openBlock(true), createElementBlock(
|
|
3491
|
+
Fragment,
|
|
3492
|
+
null,
|
|
3493
|
+
renderList(column.fixedOption, function(item) {
|
|
3494
|
+
return openBlock(), createBlock(_component_tiny_dropdown_item, {
|
|
3495
|
+
key: item.value,
|
|
3496
|
+
label: item.label,
|
|
3497
|
+
"item-data": {
|
|
3498
|
+
value: item.value,
|
|
3499
|
+
property: column.property
|
|
3500
|
+
}
|
|
3501
|
+
}, {
|
|
3502
|
+
default: withCtx(function() {
|
|
3503
|
+
return [createTextVNode(
|
|
3504
|
+
toDisplayString(item.label),
|
|
3505
|
+
1
|
|
3506
|
+
/* TEXT */
|
|
3507
|
+
)];
|
|
3508
|
+
}),
|
|
3509
|
+
_: 2
|
|
3510
|
+
/* DYNAMIC */
|
|
3511
|
+
}, 1032, ["label", "item-data"]);
|
|
3512
|
+
}),
|
|
3513
|
+
128
|
|
3514
|
+
/* KEYED_FRAGMENT */
|
|
3515
|
+
))];
|
|
3516
|
+
}),
|
|
3517
|
+
_: 2
|
|
3518
|
+
/* DYNAMIC */
|
|
3519
|
+
}, 1032, ["onMouseenter", "onMouseleave"])];
|
|
3520
|
+
}),
|
|
3521
|
+
default: withCtx(function() {
|
|
3522
|
+
return [createElementVNode(
|
|
3523
|
+
"span",
|
|
3524
|
+
{
|
|
3525
|
+
class: normalizeClass(["left", "right"].includes(column.fixed) && "dropdown-btn")
|
|
3526
|
+
},
|
|
3527
|
+
[column.fixed === "left" ? (openBlock(), createBlock(_component_icon_left_frozen, {
|
|
3528
|
+
key: 0
|
|
3529
|
+
})) : column.fixed === "right" ? (openBlock(), createBlock(_component_icon_right_frozen, {
|
|
3530
|
+
key: 1
|
|
3531
|
+
})) : (openBlock(), createElementBlock(
|
|
3532
|
+
"span",
|
|
3533
|
+
_hoisted_34,
|
|
3534
|
+
toDisplayString(_ctx.t("ui.grid.individuation.toolbar.set")),
|
|
3535
|
+
1
|
|
3536
|
+
/* TEXT */
|
|
3537
|
+
))],
|
|
3538
|
+
2
|
|
3539
|
+
/* CLASS */
|
|
3540
|
+
)];
|
|
3541
|
+
}),
|
|
3542
|
+
_: 2
|
|
3543
|
+
/* DYNAMIC */
|
|
3544
|
+
}, 1032, ["onItemClick"])])) : createCommentVNode("v-if", true), !_ctx.setting.hideSortColumn ? (openBlock(), createElementBlock(
|
|
3545
|
+
"div",
|
|
3546
|
+
{
|
|
3547
|
+
key: 4,
|
|
3548
|
+
class: normalizeClass(["dropdown-column", [!column.sortable && "visibility-hidden"]])
|
|
3549
|
+
},
|
|
3550
|
+
[createVNode(_component_tiny_dropdown, {
|
|
3551
|
+
"show-icon": false,
|
|
3552
|
+
onItemClick: _ctx.handleSortItemClick,
|
|
3553
|
+
trigger: "hover"
|
|
3554
|
+
}, {
|
|
3555
|
+
dropdown: withCtx(function() {
|
|
3556
|
+
return [createVNode(_component_tiny_dropdown_menu, {
|
|
3557
|
+
onMouseenter: function onMouseenter($event) {
|
|
3558
|
+
return _ctx.handleDropdownMouseenter($event, index);
|
|
3559
|
+
},
|
|
3560
|
+
onMouseleave: function onMouseleave($event) {
|
|
3561
|
+
return _ctx.handleDropdownMouseleave($event, index);
|
|
3097
3562
|
}
|
|
3098
|
-
}
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
}
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3563
|
+
}, {
|
|
3564
|
+
default: withCtx(function() {
|
|
3565
|
+
return [(openBlock(true), createElementBlock(
|
|
3566
|
+
Fragment,
|
|
3567
|
+
null,
|
|
3568
|
+
renderList(column.sortOption, function(item) {
|
|
3569
|
+
return openBlock(), createBlock(_component_tiny_dropdown_item, {
|
|
3570
|
+
key: item.value,
|
|
3571
|
+
label: item.label,
|
|
3572
|
+
"item-data": {
|
|
3573
|
+
value: item.value,
|
|
3574
|
+
property: column.property
|
|
3575
|
+
}
|
|
3576
|
+
}, {
|
|
3577
|
+
default: withCtx(function() {
|
|
3578
|
+
return [createTextVNode(
|
|
3579
|
+
toDisplayString(item.label),
|
|
3580
|
+
1
|
|
3581
|
+
/* TEXT */
|
|
3582
|
+
)];
|
|
3583
|
+
}),
|
|
3584
|
+
_: 2
|
|
3585
|
+
/* DYNAMIC */
|
|
3586
|
+
}, 1032, ["label", "item-data"]);
|
|
3587
|
+
}),
|
|
3588
|
+
128
|
|
3589
|
+
/* KEYED_FRAGMENT */
|
|
3590
|
+
))];
|
|
3591
|
+
}),
|
|
3592
|
+
_: 2
|
|
3593
|
+
/* DYNAMIC */
|
|
3594
|
+
}, 1032, ["onMouseenter", "onMouseleave"])];
|
|
3595
|
+
}),
|
|
3596
|
+
default: withCtx(function() {
|
|
3597
|
+
return [createElementVNode(
|
|
3598
|
+
"span",
|
|
3599
|
+
{
|
|
3600
|
+
class: normalizeClass(["asc", "desc"].includes(column.order) && "dropdown-btn")
|
|
3601
|
+
},
|
|
3602
|
+
[column.order === "asc" ? (openBlock(), createBlock(_component_icon_ascending, {
|
|
3603
|
+
key: 0
|
|
3604
|
+
})) : column.order === "desc" ? (openBlock(), createBlock(_component_icon_descending, {
|
|
3605
|
+
key: 1
|
|
3606
|
+
})) : (openBlock(), createElementBlock(
|
|
3607
|
+
"span",
|
|
3608
|
+
{
|
|
3609
|
+
key: 2,
|
|
3610
|
+
class: normalizeClass(["set-btn", [!column.sortable && "visibility-hidden"]])
|
|
3611
|
+
},
|
|
3612
|
+
toDisplayString(_ctx.t("ui.grid.individuation.toolbar.set")),
|
|
3613
|
+
3
|
|
3614
|
+
/* TEXT, CLASS */
|
|
3615
|
+
))],
|
|
3616
|
+
2
|
|
3617
|
+
/* CLASS */
|
|
3618
|
+
)];
|
|
3619
|
+
}),
|
|
3620
|
+
_: 2
|
|
3621
|
+
/* DYNAMIC */
|
|
3622
|
+
}, 1032, ["onItemClick"])],
|
|
3623
|
+
2
|
|
3624
|
+
/* CLASS */
|
|
3625
|
+
)) : createCommentVNode("v-if", true), !_ctx.isGroup ? (openBlock(), createElementBlock("span", {
|
|
3626
|
+
key: 5,
|
|
3627
|
+
class: normalizeClass(["close-icon", [column.alwaysShow && "visibility-hidden"]]),
|
|
3628
|
+
onClick: function onClick($event) {
|
|
3629
|
+
return _ctx.hiddenColumn(column.property);
|
|
3630
|
+
}
|
|
3631
|
+
}, [createVNode(_component_icon_close)], 10, _hoisted_35)) : createCommentVNode("v-if", true)],
|
|
3632
|
+
2
|
|
3633
|
+
/* CLASS */
|
|
3634
|
+
)) : createCommentVNode("v-if", true), column.children ? (openBlock(), createElementBlock("ul", _hoisted_36, [(openBlock(true), createElementBlock(
|
|
3635
|
+
Fragment,
|
|
3636
|
+
null,
|
|
3637
|
+
renderList(column.children, function(column2, index2) {
|
|
3638
|
+
return withDirectives((openBlock(), createElementBlock("li", {
|
|
3639
|
+
key: column2.property + index2,
|
|
3640
|
+
class: normalizeClass([column2.fixed, _ctx.getRowClassName(column2)]),
|
|
3641
|
+
"data-row": column2.property
|
|
3642
|
+
}, [createElementVNode("div", _hoisted_38, [createElementVNode(
|
|
3643
|
+
"p",
|
|
3644
|
+
{
|
|
3645
|
+
class: "name child-name",
|
|
3646
|
+
onMouseenter: _cache[11] || (_cache[11] = function() {
|
|
3647
|
+
return _ctx.handleMouseenter && _ctx.handleMouseenter.apply(_ctx, arguments);
|
|
3648
|
+
}),
|
|
3649
|
+
onMouseleave: _cache[12] || (_cache[12] = function() {
|
|
3650
|
+
return _ctx.handleMouseleave && _ctx.handleMouseleave.apply(_ctx, arguments);
|
|
3651
|
+
})
|
|
3652
|
+
},
|
|
3653
|
+
[createVNode(_component_title_render, {
|
|
3654
|
+
column: column2
|
|
3655
|
+
}, null, 8, ["column"])],
|
|
3656
|
+
32
|
|
3657
|
+
/* NEED_HYDRATION */
|
|
3658
|
+
)])], 10, _hoisted_37)), [[vShow, column2.visible]]);
|
|
3659
|
+
}),
|
|
3660
|
+
128
|
|
3661
|
+
/* KEYED_FRAGMENT */
|
|
3662
|
+
))])) : createCommentVNode("v-if", true)])], 10, _hoisted_21);
|
|
3663
|
+
}),
|
|
3664
|
+
128
|
|
3665
|
+
/* KEYED_FRAGMENT */
|
|
3666
|
+
))],
|
|
3667
|
+
512
|
|
3668
|
+
/* NEED_PATCH */
|
|
3669
|
+
)])];
|
|
3670
|
+
}),
|
|
3671
|
+
_: 1
|
|
3672
|
+
/* STABLE */
|
|
3673
|
+
}, 8, ["modelValue"])],
|
|
3674
|
+
2
|
|
3675
|
+
/* CLASS */
|
|
3676
|
+
), [[vShow, _ctx.activeName === "base"]]), withDirectives(createElementVNode(
|
|
3677
|
+
"div",
|
|
3678
|
+
{
|
|
3679
|
+
class: normalizeClass(["tabs-body-item", _ctx.animateShow === "other" ? "active-item" : ""])
|
|
3680
|
+
},
|
|
3681
|
+
[createElementVNode("div", _hoisted_39, [createElementVNode(
|
|
3682
|
+
"span",
|
|
3683
|
+
_hoisted_40,
|
|
3684
|
+
toDisplayString(_ctx.t("ui.grid.individuation.tabs.other.pageSize")),
|
|
3685
|
+
1
|
|
3686
|
+
/* TEXT */
|
|
3687
|
+
), createVNode(_component_tiny_radio_group, {
|
|
3688
|
+
modelValue: _ctx.settings.pageSize,
|
|
3689
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = function($event) {
|
|
3690
|
+
return _ctx.settings.pageSize = $event;
|
|
3691
|
+
})
|
|
3692
|
+
}, {
|
|
3693
|
+
default: withCtx(function() {
|
|
3694
|
+
return [(openBlock(true), createElementBlock(
|
|
3695
|
+
Fragment,
|
|
3696
|
+
null,
|
|
3697
|
+
renderList(_ctx.initSettings.pageSizes, function(item, index) {
|
|
3698
|
+
return openBlock(), createBlock(_component_tiny_radio, {
|
|
3699
|
+
key: index,
|
|
3700
|
+
label: item
|
|
3701
|
+
}, {
|
|
3702
|
+
default: withCtx(function() {
|
|
3703
|
+
return [createTextVNode(
|
|
3704
|
+
toDisplayString(item),
|
|
3705
|
+
1
|
|
3706
|
+
/* TEXT */
|
|
3707
|
+
)];
|
|
3708
|
+
}),
|
|
3709
|
+
_: 2
|
|
3710
|
+
/* DYNAMIC */
|
|
3711
|
+
}, 1032, ["label"]);
|
|
3712
|
+
}),
|
|
3713
|
+
128
|
|
3714
|
+
/* KEYED_FRAGMENT */
|
|
3715
|
+
))];
|
|
3716
|
+
}),
|
|
3717
|
+
_: 1
|
|
3718
|
+
/* STABLE */
|
|
3719
|
+
}, 8, ["modelValue"])])],
|
|
3720
|
+
2
|
|
3721
|
+
/* CLASS */
|
|
3722
|
+
), [[vShow, _ctx.activeName === "other"]])])]), createElementVNode("div", {
|
|
3723
|
+
class: "tiny-grid-custom__footer",
|
|
3724
|
+
dir: _ctx.tinyTheme === "saas" ? "rtl" : "ltr"
|
|
3725
|
+
}, [createVNode(_component_tiny_button, {
|
|
3726
|
+
type: "primary",
|
|
3727
|
+
onClick: _ctx.saveSettings
|
|
3728
|
+
}, {
|
|
3729
|
+
default: withCtx(function() {
|
|
3730
|
+
return [createTextVNode(
|
|
3731
|
+
toDisplayString(_ctx.t("ui.grid.individuation.saveBtn")),
|
|
3732
|
+
1
|
|
3733
|
+
/* TEXT */
|
|
3734
|
+
)];
|
|
3735
|
+
}),
|
|
3736
|
+
_: 1
|
|
3737
|
+
/* STABLE */
|
|
3738
|
+
}, 8, ["onClick"]), _ctx.multipleHistory && _ctx.activeName === "base" ? (openBlock(), createBlock(_component_tiny_custom_switch, {
|
|
3739
|
+
key: 0,
|
|
3740
|
+
ref: "switch",
|
|
3741
|
+
remote: _ctx.setting.remote,
|
|
3742
|
+
"custom-mode": _ctx.customMode,
|
|
3743
|
+
selectedTemplateVal: _ctx.selectedTemplateVal,
|
|
3744
|
+
"history-config": _ctx.historyConfig,
|
|
3745
|
+
onInitStorage: _ctx.initStorage,
|
|
3746
|
+
onSetSelected: _ctx.setSelectedTemplate
|
|
3747
|
+
}, null, 8, ["remote", "custom-mode", "selectedTemplateVal", "history-config", "onInitStorage", "onSetSelected"])) : createCommentVNode("v-if", true), createVNode(_component_tiny_button, {
|
|
3748
|
+
onClick: _ctx.handleReset
|
|
3749
|
+
}, {
|
|
3750
|
+
default: withCtx(function() {
|
|
3751
|
+
return [createTextVNode(
|
|
3752
|
+
toDisplayString(_ctx.t("ui.grid.individuation.resetBtn")),
|
|
3753
|
+
1
|
|
3754
|
+
/* TEXT */
|
|
3755
|
+
)];
|
|
3756
|
+
}),
|
|
3757
|
+
_: 1
|
|
3758
|
+
/* STABLE */
|
|
3759
|
+
}, 8, ["onClick"]), createVNode(_component_tiny_button, {
|
|
3760
|
+
onClick: _ctx.cancelSettings
|
|
3761
|
+
}, {
|
|
3762
|
+
default: withCtx(function() {
|
|
3763
|
+
return [createTextVNode(
|
|
3764
|
+
toDisplayString(_ctx.t("ui.grid.individuation.cancelBtn")),
|
|
3765
|
+
1
|
|
3766
|
+
/* TEXT */
|
|
3767
|
+
)];
|
|
3768
|
+
}),
|
|
3769
|
+
_: 1
|
|
3770
|
+
/* STABLE */
|
|
3771
|
+
}, 8, ["onClick"])], 8, _hoisted_41)])) : createCommentVNode("v-if", true), createVNode(_component_tiny_tooltip, {
|
|
3772
|
+
ref: "tooltip",
|
|
3773
|
+
modelValue: _ctx.tooltipVisible,
|
|
3774
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = function($event) {
|
|
3775
|
+
return _ctx.tooltipVisible = $event;
|
|
3776
|
+
}),
|
|
3777
|
+
"popper-class": "absolute",
|
|
3778
|
+
manual: true,
|
|
3779
|
+
effect: "light",
|
|
3780
|
+
content: _ctx.tooltipContent,
|
|
3781
|
+
placement: "top"
|
|
3782
|
+
}, null, 8, ["modelValue", "content"])];
|
|
3783
|
+
}),
|
|
3784
|
+
_: 1
|
|
3785
|
+
/* STABLE */
|
|
3786
|
+
}, 8, ["modelValue", "onInput", "onClose"]);
|
|
3250
3787
|
}
|
|
3251
|
-
var GridCustomSaas = /* @__PURE__ */
|
|
3252
|
-
return __component__.exports;
|
|
3253
|
-
}();
|
|
3788
|
+
var GridCustomSaas = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3254
3789
|
var classMap = {
|
|
3255
3790
|
isActive: "is__active"
|
|
3256
3791
|
};
|
|
@@ -3605,7 +4140,7 @@ var GridToolbar = defineComponent({
|
|
|
3605
4140
|
tableListeners
|
|
3606
4141
|
};
|
|
3607
4142
|
},
|
|
3608
|
-
render: function
|
|
4143
|
+
render: function render2() {
|
|
3609
4144
|
var _ref21;
|
|
3610
4145
|
var $grid = this.$grid, $slots = this.slots, table = this.table, loading = this.loading, settingStore = this.settingStore, refresh = this.refresh, fullScreen = this.fullScreen;
|
|
3611
4146
|
var setting = this.setting, initSettings = this.initSettings, _this$buttons = this.buttons, buttons = _this$buttons === void 0 ? [] : _this$buttons, vSize2 = this.vSize, tableFullColumn = this.tableFullColumn;
|
|
@@ -4028,7 +4563,7 @@ var GridToolbar = defineComponent({
|
|
|
4028
4563
|
}
|
|
4029
4564
|
}
|
|
4030
4565
|
});
|
|
4031
|
-
var version = "
|
|
4566
|
+
var version = "3.21.0";
|
|
4032
4567
|
GridToolbar.install = function(Vue) {
|
|
4033
4568
|
Vue.component(GridToolbar.name, GridToolbar);
|
|
4034
4569
|
};
|