@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 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 normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
39
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
40
- if (render) {
41
- options.render = render;
42
- options.staticRenderFns = staticRenderFns;
43
- options._compiled = true;
44
- }
45
- var hook;
46
- if (injectStyles) {
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
- if (hook) {
50
- if (options.functional) {
51
- options._injectStyles = hook;
52
- var originalRender = options.render;
53
- options.render = function renderWithStyleInjection(h, context) {
54
- hook.call(context);
55
- return originalRender(h, context);
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 _excluded2 = ["property"], _excluded3 = ["property"];
69
- function _objectWithoutPropertiesLoose2(r, e) {
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 __vue2_script$3 = defineComponent({
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(_ref3) {
475
- var storageType = _ref3.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 render$3 = function render$32() {
532
- var _vm = this;
533
- var _h = _vm.$createElement;
534
- var _c = _vm._self._c || _h;
535
- return _vm.customMode === "saas" ? _c("tiny-popover", {
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
- attrs: {
538
- "width": "280",
539
- "placement": "top",
540
- "popper-class": "grid-toolbar-template-popover",
541
- "trigger": "manual"
542
- },
543
- scopedSlots: _vm._u([{
544
- key: "reference",
545
- fn: function fn() {
546
- return [_c("tiny-button", {
547
- staticClass: "save-btn",
548
- on: {
549
- "click": function click($event) {
550
- _vm.templateVisible = !_vm.templateVisible;
551
- }
552
- }
553
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.saveTemplate")))])];
554
- },
555
- proxy: true
556
- }], null, false, 3411578796),
557
- model: {
558
- value: _vm.templateVisible,
559
- callback: function callback($$v) {
560
- _vm.templateVisible = $$v;
561
- },
562
- expression: "templateVisible"
563
- }
564
- }, [_c("div", [_vm.selectedTemplateVal.id && !_vm.historyConfig.hideOverwrite ? _c("div", {
565
- staticClass: "radio-box"
566
- }, [_c("tiny-radio", {
567
- attrs: {
568
- "label": "overwrite"
569
- },
570
- model: {
571
- value: _vm.saveMethod,
572
- callback: function callback($$v) {
573
- _vm.saveMethod = $$v;
574
- },
575
- expression: "saveMethod"
576
- }
577
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.overwriteSave")))]), _c("tiny-radio", {
578
- attrs: {
579
- "label": "save"
580
- },
581
- model: {
582
- value: _vm.saveMethod,
583
- callback: function callback($$v) {
584
- _vm.saveMethod = $$v;
585
- },
586
- expression: "saveMethod"
587
- }
588
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.saveAs")))])], 1) : _vm._e(), _vm.saveMethod === "save" ? _c("tiny-input", {
589
- attrs: {
590
- "type": "text",
591
- "placeholder": _vm.t("ui.grid.individuation.defaultTemplateName")
592
- },
593
- model: {
594
- value: _vm.savedTemplateName,
595
- callback: function callback($$v) {
596
- _vm.savedTemplateName = $$v;
597
- },
598
- expression: "savedTemplateName"
599
- }
600
- }) : _c("tiny-input", {
601
- attrs: {
602
- "placeholder": _vm.t("ui.grid.individuation.reserveTemplateName"),
603
- "type": "text"
604
- },
605
- model: {
606
- value: _vm.selectedTemplateName,
607
- callback: function callback($$v) {
608
- _vm.selectedTemplateName = $$v;
609
- },
610
- expression: "selectedTemplateName"
611
- }
612
- }), _c("div", {
613
- staticClass: "btn-box"
614
- }, [_c("tiny-button", {
615
- on: {
616
- "click": function click($event) {
617
- _vm.templateVisible = false;
618
- }
619
- }
620
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.cancelBtn")))]), _c("tiny-button", {
621
- attrs: {
622
- "type": "primary"
623
- },
624
- on: {
625
- "click": function click($event) {
626
- return _vm.handleSaveConfirm(_vm.saveMethod);
627
- }
628
- }
629
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.saveBtn")))])], 1)], 1)]) : _c("div", {
630
- staticClass: "tiny-grid-custom-switch"
631
- }, [_c("tiny-layout", [_c("tiny-row", {
632
- attrs: {
633
- "no-space": ""
634
- }
635
- }, [_c("tiny-col", {
636
- attrs: {
637
- "span": 12
638
- }
639
- }, [_c("div", {
640
- staticClass: "tiny-grid-custom-switch__title"
641
- }, [_vm.historyConfig.showTitle ? _c("tiny-alert", {
642
- attrs: {
643
- "description": _vm.historyConfig.title || _vm.t("ui.grid.individuation.switchtitle"),
644
- "closable": false
645
- }
646
- }) : _vm._e()], 1)])], 1), _c("tiny-row", {
647
- attrs: {
648
- "no-space": ""
649
- }
650
- }, [_vm.historyConfig.showSave ? _c("tiny-col", {
651
- attrs: {
652
- "span": 2
653
- }
654
- }, [_c("div", [_c("tiny-button", {
655
- attrs: {
656
- "type": "primary",
657
- "size": "mini",
658
- "disabled": _vm.historyConfig.saveDisabled || _vm.saveDisabled
659
- },
660
- on: {
661
- "click": _vm.handleSave
662
- }
663
- }, [_vm._v(_vm._s(_vm.historyConfig.saveText || _vm.t("ui.grid.individuation.switchsave")))])], 1)]) : _vm._e(), _c("tiny-col", {
664
- attrs: {
665
- "span": 2
666
- }
667
- }, [_c("div", {
668
- staticClass: "tiny-grid-custom-switch__label"
669
- }, [_vm._v(" " + _vm._s(_vm.historyConfig.labelText || _vm.t("ui.grid.individuation.switchlabel")) + " ")])]), _c("tiny-col", {
670
- attrs: {
671
- "span": 5
672
- }
673
- }, [_c("div", {
674
- staticClass: "tiny-grid-custom-switch__content"
675
- }, [_c("tiny-select", {
676
- ref: "select",
677
- attrs: {
678
- "clearable": "",
679
- "value-field": "id",
680
- "text-field": "name",
681
- "placeholder": _vm.historyConfig.selectPlaceholder || _vm.t("ui.select.placeholder"),
682
- "disabled": _vm.historyConfig.selectDisabled || _vm.selectDisabled,
683
- "options": _vm.options
684
- },
685
- on: {
686
- "change": _vm.handleSelectChange
687
- },
688
- model: {
689
- value: _vm.selected,
690
- callback: function callback($$v) {
691
- _vm.selected = $$v;
692
- },
693
- expression: "selected"
694
- }
695
- })], 1)]), _c("tiny-col", {
696
- attrs: {
697
- "span": 3
698
- }
699
- }, [_c("div", [_vm.historyConfig.showApply ? _c("span", {
700
- staticClass: "tiny-grid-custom-switch__icon-btn",
701
- class: {
702
- "tiny-grid-custom-switch__icon-btn--disabled": _vm.historyConfig.applyDisabled || _vm.applyDisabled
703
- },
704
- attrs: {
705
- "title": _vm.historyConfig.applyTitle || _vm.t("ui.grid.individuation.switchapply")
706
- },
707
- on: {
708
- "click": _vm.handleApply
709
- }
710
- }, [_c(_vm.historyConfig.applyIcon || _vm.IconSave, {
711
- tag: "component"
712
- })], 1) : _vm._e(), _vm.historyConfig.showEdit ? _c("span", {
713
- staticClass: "tiny-grid-custom-switch__icon-btn",
714
- class: {
715
- "tiny-grid-custom-switch__icon-btn--disabled": _vm.historyConfig.editDisabled || _vm.editDisabled
716
- },
717
- attrs: {
718
- "title": _vm.historyConfig.editTitle || _vm.t("ui.grid.individuation.switchedit")
719
- },
720
- on: {
721
- "click": _vm.handleEdit
722
- }
723
- }, [_c(_vm.historyConfig.editIcon || _vm.IconEdit, {
724
- tag: "component"
725
- })], 1) : _vm._e(), _vm.historyConfig.showDel ? _c("span", {
726
- staticClass: "tiny-grid-custom-switch__icon-btn",
727
- class: {
728
- "tiny-grid-custom-switch__icon-btn--disabled": _vm.historyConfig.delDisabled || _vm.delDisabled
729
- },
730
- attrs: {
731
- "title": _vm.historyConfig.delTitle || _vm.t("ui.grid.individuation.switchdel")
732
- },
733
- on: {
734
- "click": _vm.handleDel
735
- }
736
- }, [_c(_vm.historyConfig.delIcon || _vm.IconDel, {
737
- tag: "component"
738
- })], 1) : _vm._e()])])], 1)], 1), _c("tiny-dialog-box", {
739
- attrs: {
740
- "top": "30vh",
741
- "width": "420px",
742
- "dialog-class": "tiny-grid-custom-switch__dialog-box",
743
- "draggable": "",
744
- "append-to-body": "",
745
- "visible": _vm.visible,
746
- "close-on-click-modal": false,
747
- "title": _vm.dialogTitle
748
- },
749
- on: {
750
- "update:visible": function updateVisible($event) {
751
- _vm.visible = $event;
752
- }
753
- },
754
- scopedSlots: _vm._u([{
755
- key: "footer",
756
- fn: function fn() {
757
- return [~["apply", "edit", "del"].indexOf(_vm.status) ? [_vm.status === "apply" ? [_c("tiny-button", {
758
- attrs: {
759
- "type": "primary"
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
- on: {
762
- "click": function click($event) {
763
- return _vm.handleApplyConfirm("yes");
764
- }
765
- }
766
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.switchdelyes")) + " ")]), _c("tiny-button", {
767
- on: {
768
- "click": function click($event) {
769
- return _vm.handleApplyConfirm("no");
770
- }
771
- }
772
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.switchdelno")))])] : _vm._e(), _vm.status === "edit" ? [_c("tiny-button", {
773
- attrs: {
774
- "type": "primary",
775
- "disabled": !_vm.editName
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
- on: {
778
- "click": function click($event) {
779
- return _vm.handleEditConfirm("yes");
780
- }
781
- }
782
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.switchdelyes")) + " ")]), _c("tiny-button", {
783
- on: {
784
- "click": function click($event) {
785
- return _vm.handleEditConfirm("no");
786
- }
787
- }
788
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.switchdelno")))])] : _vm._e(), _vm.status === "del" ? [_c("tiny-button", {
789
- attrs: {
790
- "type": "primary"
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
- on: {
793
- "click": function click($event) {
794
- return _vm.handleDelConfirm("yes");
795
- }
796
- }
797
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.switchdelyes")) + " ")]), _c("tiny-button", {
798
- on: {
799
- "click": function click($event) {
800
- return _vm.handleDelConfirm("no");
801
- }
802
- }
803
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.switchdelno")))])] : _vm._e()] : _vm._e()];
804
- },
805
- proxy: true
806
- }])
807
- }, [_vm.status === "save" ? _c("div", {
808
- staticClass: "tiny-grid-custom-switch__confirm-btns"
809
- }, [_c("tiny-button", {
810
- attrs: {
811
- "type": "primary"
812
- },
813
- on: {
814
- "click": function click($event) {
815
- return _vm.handleSaveConfirm("save");
816
- }
817
- }
818
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.switchonlytemp")) + " ")]), _c("tiny-button", {
819
- on: {
820
- "click": function click($event) {
821
- return _vm.handleSaveConfirm("save-apply");
822
- }
823
- }
824
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.switchtempapply")) + " ")]), _c("tiny-button", {
825
- attrs: {
826
- "disabled": !_vm.selected
827
- },
828
- on: {
829
- "click": function click($event) {
830
- return _vm.handleSaveConfirm("overwrite");
831
- }
832
- }
833
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.switchtempoverwrite")) + " ")])], 1) : _vm._e(), _vm.status === "apply" ? [_c("div", {
834
- staticClass: "tiny-grid-custom-switch__del-tip"
835
- }, [_vm._v(_vm._s(_vm.selectedName))]), _c("div", {
836
- staticClass: "tiny-grid-custom-switch__del-tip"
837
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.switchapplycon")) + " ")])] : _vm._e(), _vm.status === "edit" ? [_c("tiny-input", {
838
- model: {
839
- value: _vm.editName,
840
- callback: function callback($$v) {
841
- _vm.editName = $$v;
842
- },
843
- expression: "editName"
844
- }
845
- })] : _vm._e(), _vm.status === "del" ? [_c("div", {
846
- staticClass: "tiny-grid-custom-switch__del-tip"
847
- }, [_vm._v(_vm._s(_vm.selectedName))]), _c("div", {
848
- staticClass: "tiny-grid-custom-switch__del-tip"
849
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.switchdelcon")) + " ")])] : _vm._e()], 2)], 1);
850
- };
851
- var staticRenderFns$3 = [];
852
- var __cssModules$3 = {};
853
- var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3);
854
- function __vue2_injectStyles$3(context) {
855
- for (var o in __cssModules$3) {
856
- this[o] = __cssModules$3[o];
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__ */ function() {
860
- return __component__$3.exports;
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(_ref4) {
1023
- var id = _ref4.id, title = _ref4.title, property = _ref4.property, fixed = _ref4.fixed, visible = _ref4.visible, order = _ref4.order, sortable = _ref4.sortable, level = _ref4.level, children = _ref4.children;
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, _ref5) {
1098
- var row = _ref5.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(_ref6) {
1214
- var property = _ref6.property, rest = _objectWithoutPropertiesLoose2(_ref6, _excluded2);
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 _ref7 = sourceSettings || {}, columns = _ref7.columns, sortType = _ref7.sortType, pageSize = _ref7.pageSize;
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 _excluded = ["row"];
1349
- function _objectWithoutProperties(e, t2) {
1350
- if (null == e) return {};
1351
- var o, r, i = _objectWithoutPropertiesLoose(e, t2);
1352
- if (Object.getOwnPropertySymbols) {
1353
- var s = Object.getOwnPropertySymbols(e);
1354
- for (r = 0; r < s.length; r++) o = s[r], t2.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1355
- }
1356
- return i;
1357
- }
1358
- function _objectWithoutPropertiesLoose(r, e) {
1359
- if (null == r) return {};
1360
- var t2 = {};
1361
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1362
- if (e.includes(n)) continue;
1363
- t2[n] = r[n];
1364
- }
1365
- return t2;
1366
- }
1367
- var render$2 = function render$22() {
1368
- var _vm = this;
1369
- var _h = _vm.$createElement;
1370
- var _c = _vm._self._c || _h;
1371
- return _c("tiny-modal", {
1372
- attrs: {
1373
- "width": "600",
1374
- "title": _vm.t("ui.grid.individuation.title")
1375
- },
1376
- on: {
1377
- "input": _vm.handleInput,
1378
- "close": _vm.handleClose,
1379
- "custom-mousemove": _vm.handleCustomMouseMove
1380
- },
1381
- scopedSlots: _vm._u([{
1382
- key: "default",
1383
- fn: function fn() {
1384
- return [_vm.visible ? _c("div", {
1385
- staticClass: "tiny-grid-custom tiny-grid__wrapper"
1386
- }, [_c("tiny-tabs", {
1387
- staticClass: "tiny-grid-custom__tabs",
1388
- model: {
1389
- value: _vm.activeName,
1390
- callback: function callback($$v) {
1391
- _vm.activeName = $$v;
1392
- },
1393
- expression: "activeName"
1394
- }
1395
- }, [_c("div", {
1396
- staticClass: "tiny-grid-custom__tabs-body"
1397
- }, [_c("tiny-tab-item", {
1398
- staticClass: "tabs-body-item",
1399
- attrs: {
1400
- "title": _vm.t("ui.grid.individuation.tabs.base.title"),
1401
- "name": "base"
1402
- }
1403
- }, [_c("tiny-alert", {
1404
- staticClass: "tiny-grid-custom__alert",
1405
- attrs: {
1406
- "description": _vm.t("ui.grid.individuation.tabs.base.tips"),
1407
- "closable": false
1408
- }
1409
- }), _c("tiny-grid", {
1410
- staticClass: "tiny-grid-custom__setting",
1411
- attrs: {
1412
- "auto-resize": true,
1413
- "data": _vm.columns,
1414
- "row-class-name": _vm.rowClassName,
1415
- "row-key": "",
1416
- "drop-config": _vm.dropConfig,
1417
- "tree-config": {
1418
- children: "children"
1419
- },
1420
- "show-header": false,
1421
- "edit-config": {
1422
- trigger: "click",
1423
- mode: "cell",
1424
- showStatus: true
1425
- },
1426
- "max-height": _vm.historyConfig.tableMaxHeight
1427
- },
1428
- on: {
1429
- "row-drop-end": _vm.handleRowDropEnd
1430
- }
1431
- }, [_vm.initSettings.showIndex ? _c("tiny-grid-column", {
1432
- attrs: {
1433
- "type": "index",
1434
- "width": "60"
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
- on: {
1495
- "click": function click($event) {
1496
- return _vm.handlerSetting("fixed", row);
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
- model: {
1519
- value: row.sortingIndex,
1520
- callback: function callback($$v) {
1521
- _vm.$set(row, "sortingIndex", $$v);
1522
- },
1523
- expression: "row.sortingIndex"
1524
- }
1525
- }, _vm._l(_vm.sortingOptions, function(item) {
1526
- return _c("tiny-option", {
1527
- key: item,
1528
- attrs: {
1529
- "label": item,
1530
- "value": item
1531
- }
1532
- });
1533
- }), 1)];
1534
- }
1535
- }], null, false, 4084401751)
1536
- }) : _vm._e()], 1)], 1), _vm.other ? _c("tiny-tab-item", {
1537
- staticClass: "tabs-body-item",
1538
- attrs: {
1539
- "title": _vm.t("ui.grid.individuation.tabs.other.title"),
1540
- "name": "other"
1541
- }
1542
- }, [_c("tiny-alert", {
1543
- staticClass: "tiny-grid-custom__alert",
1544
- attrs: {
1545
- "description": _vm.t("ui.grid.individuation.tabs.other.tips"),
1546
- "closable": false
1547
- }
1548
- }), _c("ul", {
1549
- staticClass: "tiny-grid-custom__setting other-setting"
1550
- }, [_c("li", {
1551
- staticClass: "setting-item"
1552
- }, [_c("span", {
1553
- staticClass: "label"
1554
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.tabs.other.sortType")))]), _c("span", {
1555
- staticClass: "selection"
1556
- }, [_c("tiny-radio", {
1557
- attrs: {
1558
- "label": "page"
1559
- },
1560
- model: {
1561
- value: _vm.settings.sortType,
1562
- callback: function callback($$v) {
1563
- _vm.$set(_vm.settings, "sortType", $$v);
1564
- },
1565
- expression: "settings.sortType"
1566
- }
1567
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.tabs.other.currPageSort")))]), _c("tiny-radio", {
1568
- attrs: {
1569
- "label": "all"
1570
- },
1571
- model: {
1572
- value: _vm.settings.sortType,
1573
- callback: function callback($$v) {
1574
- _vm.$set(_vm.settings, "sortType", $$v);
1575
- },
1576
- expression: "settings.sortType"
1577
- }
1578
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.tabs.other.allDataSort")))])], 1)]), _c("li", {
1579
- staticClass: "setting-item"
1580
- }, [_c("span", {
1581
- staticClass: "label"
1582
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.tabs.other.pageSize")))]), _c("span", {
1583
- staticClass: "selection"
1584
- }, _vm._l(_vm.initSettings.pageSizes, function(item, index) {
1585
- return _c("tiny-radio", {
1586
- key: index,
1587
- attrs: {
1588
- "label": item
1589
- },
1590
- model: {
1591
- value: _vm.settings.pageSize,
1592
- callback: function callback($$v) {
1593
- _vm.$set(_vm.settings, "pageSize", $$v);
1594
- },
1595
- expression: "settings.pageSize"
1596
- }
1597
- }, [_vm._v(_vm._s(item))]);
1598
- }), 1)])])], 1) : _vm._e(), _vm.multipleHistory && _vm.activeName === "base" ? _c("tiny-custom-switch", {
1599
- ref: "switch",
1600
- attrs: {
1601
- "history-config": _vm.historyConfig
1602
- }
1603
- }) : _vm._e()], 1)]), !_vm.multipleHistory || _vm.multipleHistory && _vm.activeName === "base" ? _c("div", {
1604
- staticClass: "tiny-grid-custom__footer",
1605
- attrs: {
1606
- "dir": _vm.TinyTheme === "saas" ? "rtl" : "ltr"
1607
- }
1608
- }, [_c("tiny-button", {
1609
- on: {
1610
- "click": _vm.handleReset
1611
- }
1612
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.resetBtn")) + " ")]), _vm.showHideAll ? _c("tiny-button", {
1613
- on: {
1614
- "click": function click($event) {
1615
- return _vm.showOrHideAllColumns(!_vm.showAll);
1616
- }
1617
- }
1618
- }, [_vm._v(_vm._s(_vm.showAll ? _vm.t("ui.grid.individuation.hideAll") : _vm.t("ui.grid.individuation.showAll")))]) : _vm._e(), _c("tiny-button", {
1619
- on: {
1620
- "click": _vm.cancelSettings
1621
- }
1622
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.cancelBtn")) + " ")]), _c("tiny-button", {
1623
- attrs: {
1624
- "type": "primary",
1625
- "disabled": _vm.saveDisabled
1626
- },
1627
- on: {
1628
- "click": _vm.saveSettings
1629
- }
1630
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.saveBtn")) + " ")])], 1) : _vm._e()], 1) : _vm._e()];
1631
- },
1632
- proxy: true
1633
- }]),
1634
- model: {
1635
- value: _vm.visible,
1636
- callback: function callback($$v) {
1637
- _vm.visible = $$v;
1638
- },
1639
- expression: "visible"
1640
- }
1641
- });
1642
- };
1643
- var staticRenderFns$2 = [];
1644
- var __cssModules$2 = {};
1645
- var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2);
1646
- function __vue2_injectStyles$2(context) {
1647
- for (var o in __cssModules$2) {
1648
- this[o] = __cssModules$2[o];
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__ */ function() {
1652
- return __component__$2.exports;
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
- var render$1 = function render$12() {
1742
- var _vm = this;
1743
- var _h = _vm.$createElement;
1744
- var _c = _vm._self._c || _h;
1745
- return _c("tiny-select", {
1746
- attrs: {
1747
- "placeholder": "请选择",
1748
- "placement": "bottom-end",
1749
- "searchable": true,
1750
- "multiple": ""
1751
- },
1752
- on: {
1753
- "change": _vm.columnChange
1754
- },
1755
- scopedSlots: _vm._u([{
1756
- key: "reference",
1757
- fn: function fn() {
1758
- return [_c("tiny-icon-setting")];
1759
- },
1760
- proxy: true
1761
- }]),
1762
- model: {
1763
- value: _vm.multivalue,
1764
- callback: function callback($$v) {
1765
- _vm.multivalue = $$v;
1766
- },
1767
- expression: "multivalue"
1768
- }
1769
- }, _vm._l(_vm.columns, function(item) {
1770
- return _c("tiny-option", {
1771
- key: item.property,
1772
- attrs: {
1773
- "disabled": item.disabled,
1774
- "label": item.title,
1775
- "value": item.property
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__ */ function() {
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 __vue2_script = defineComponent({
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 = _objectWithoutPropertiesLoose2(_ref10, _excluded3);
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 render2 = function render3() {
2695
- var _vm = this;
2696
- var _h = _vm.$createElement;
2697
- var _c = _vm._self._c || _h;
2698
- return _c("tiny-modal", {
2699
- staticClass: "tiny-grid-toolbar-modal",
2700
- attrs: {
2701
- "width": "800",
2702
- "title": " "
2703
- },
2704
- on: {
2705
- "input": _vm.handleInput,
2706
- "close": _vm.handleClose
2707
- },
2708
- scopedSlots: _vm._u([{
2709
- key: "default",
2710
- fn: function fn() {
2711
- return [_vm.visible ? _c("div", {
2712
- staticClass: "tiny-grid-custom"
2713
- }, [_c("div", {
2714
- staticClass: "tiny-grid-custom__tabs"
2715
- }, [_c("div", {
2716
- staticClass: "tiny-grid-custom__tabs-head"
2717
- }, [_c("ul", [_c("li", {
2718
- class: {
2719
- "tiny-grid-custom__tabs-selected": _vm.activeName === "base" && _vm.other,
2720
- "tiny-grid-custom__tabs-base": !_vm.other
2721
- },
2722
- on: {
2723
- "click": function click($event) {
2724
- _vm.activeName = "base";
2725
- }
2726
- }
2727
- }, [_c("span", [_vm._v(_vm._s(_vm.t("ui.grid.individuation.columnSet")))])]), _vm.other ? _c("li", {
2728
- class: {
2729
- "tiny-grid-custom__tabs-selected": _vm.activeName === "other"
2730
- },
2731
- on: {
2732
- "click": function click($event) {
2733
- _vm.activeName = "other";
2734
- }
2735
- }
2736
- }, [_c("span", [_vm._v(_vm._s(_vm.t("ui.grid.individuation.tabs.other.title")))])]) : _vm._e()])]), _c("div", {
2737
- staticClass: "tiny-grid-custom__tabs-body"
2738
- }, [_c("div", {
2739
- directives: [{
2740
- name: "show",
2741
- rawName: "v-show",
2742
- value: _vm.activeName === "base",
2743
- expression: "activeName === 'base'"
2744
- }],
2745
- class: ["tabs-body-item", _vm.animateShow === "base" ? "active-item" : ""]
2746
- }, [_c("tiny-split", {
2747
- attrs: {
2748
- "trigger-simple": "",
2749
- "collapse-left-top": ""
2750
- },
2751
- scopedSlots: _vm._u([{
2752
- key: "left",
2753
- fn: function fn2() {
2754
- return [_c("div", {
2755
- staticClass: "left-panel"
2756
- }, [_vm.multipleHistory ? _c("div", {
2757
- staticClass: "select-template"
2758
- }, [_c("tiny-select", {
2759
- attrs: {
2760
- "shape": "filter",
2761
- "label": _vm.t("ui.grid.individuation.selectTemplate"),
2762
- "clearable": ""
2763
- },
2764
- on: {
2765
- "change": _vm.selectedTemplateChange
2766
- },
2767
- model: {
2768
- value: _vm.selectedTemplate,
2769
- callback: function callback($$v) {
2770
- _vm.selectedTemplate = $$v;
2771
- },
2772
- expression: "selectedTemplate"
2773
- }
2774
- }, _vm._l(_vm.templateOptions, function(item) {
2775
- return _c("tiny-option", {
2776
- key: item.id,
2777
- attrs: {
2778
- "label": item.name,
2779
- "value": item.id
2780
- }
2781
- }, [_c("span", {
2782
- staticStyle: {
2783
- "float": "left",
2784
- "width": "240px",
2785
- "overflow": "hidden",
2786
- "text-overflow": "ellipsis",
2787
- "white-space": "nowrap"
2788
- },
2789
- attrs: {
2790
- "title": item.name
2791
- }
2792
- }, [_vm._v(_vm._s(item.name))]), _vm.historyConfig.showDel ? _c("span", {
2793
- staticStyle: {
2794
- "float": "right",
2795
- "padding": "0 6px",
2796
- "color": "#1890ff",
2797
- "cursor": "pointer"
2798
- },
2799
- on: {
2800
- "click": function click($event) {
2801
- return _vm.deleteTemplate(item, $event);
2802
- }
2803
- }
2804
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.switchdel")))]) : _vm._e()]);
2805
- }), 1)], 1) : _vm._e(), _vm.search ? _c("tiny-search", {
2806
- attrs: {
2807
- "placeholder": _vm.t("ui.grid.individuation.toolbar.search")
2808
- },
2809
- on: {
2810
- "input": _vm.searchChange
2811
- },
2812
- model: {
2813
- value: _vm.searchValue,
2814
- callback: function callback($$v) {
2815
- _vm.searchValue = $$v;
2816
- },
2817
- expression: "searchValue"
2818
- }
2819
- }) : _vm._e(), _vm.isGroup ? _c("div", [!_vm.searchValue ? _c("div", {
2820
- staticClass: "multi-check-all-btn"
2821
- }, [_c("tiny-checkbox", {
2822
- attrs: {
2823
- "indeterminate": _vm.isMultiIndeterminate
2824
- },
2825
- on: {
2826
- "change": _vm.checkAllChange
2827
- },
2828
- model: {
2829
- value: _vm.multiCheckAll,
2830
- callback: function callback($$v) {
2831
- _vm.multiCheckAll = $$v;
2832
- },
2833
- expression: "multiCheckAll"
2834
- }
2835
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.toolbar.all")) + " ")])], 1) : _vm._e(), _c("tiny-tree", {
2836
- ref: "tree",
2837
- attrs: {
2838
- "data": _vm.columns,
2839
- "default-expand-all": "",
2840
- "check-on-click-node": "",
2841
- "show-checkbox": "",
2842
- "node-key": "id",
2843
- "default-checked-keys": _vm.defaultcheckedkeys,
2844
- "filter-node-method": _vm.filterTreeNode,
2845
- "props": {
2846
- label: "title"
2847
- }
2848
- },
2849
- on: {
2850
- "check": _vm.checkNode
2851
- },
2852
- scopedSlots: _vm._u([{
2853
- key: "default",
2854
- fn: function fn3(sourceData) {
2855
- return [_c("div", {
2856
- staticClass: "tiny-tree-node__label"
2857
- }, [_c("title-render", {
2858
- attrs: {
2859
- "column": sourceData.data
2860
- }
2861
- })], 1)];
2862
- }
2863
- }], null, false, 3003057265)
2864
- })], 1) : _c("div", [_vm.searchValue ? _c("div", [_c("tiny-checkbox-group", {
2865
- attrs: {
2866
- "vertical": ""
2867
- },
2868
- model: {
2869
- value: _vm.checkedColumns,
2870
- callback: function callback($$v) {
2871
- _vm.checkedColumns = $$v;
2872
- },
2873
- expression: "checkedColumns"
2874
- }
2875
- }, _vm._l(_vm.searchColumns, function(column) {
2876
- return _c("tiny-checkbox", {
2877
- key: column.property,
2878
- attrs: {
2879
- "label": column.property,
2880
- "disabled": column.alwaysShow
2881
- }
2882
- }, [_c("title-render", {
2883
- attrs: {
2884
- "column": column
2885
- }
2886
- })], 1);
2887
- }), 1)], 1) : _c("div", [_c("div", {
2888
- staticClass: "check-all-btn"
2889
- }, [_c("tiny-checkbox", {
2890
- attrs: {
2891
- "indeterminate": _vm.isIndeterminate
2892
- },
2893
- model: {
2894
- value: _vm.checkAll,
2895
- callback: function callback($$v) {
2896
- _vm.checkAll = $$v;
2897
- },
2898
- expression: "checkAll"
2899
- }
2900
- }, [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.toolbar.all")) + " ")])], 1), _c("tiny-checkbox-group", {
2901
- attrs: {
2902
- "vertical": ""
2903
- },
2904
- model: {
2905
- value: _vm.checkedColumns,
2906
- callback: function callback($$v) {
2907
- _vm.checkedColumns = $$v;
2908
- },
2909
- expression: "checkedColumns"
2910
- }
2911
- }, [_vm._l(_vm.groupedColumns, function(group, index) {
2912
- return [_vm.defer(Math.floor(index / 5)) ? _c("div", {
2913
- key: index
2914
- }, [group.label ? _c("p", {
2915
- staticClass: "group-label",
2916
- class: [index === 0 && "group-label-first"]
2917
- }, [_vm._v(" " + _vm._s(group.label) + " ")]) : _vm._e(), _vm._l(group.data, function(column) {
2918
- return _c("tiny-checkbox", {
2919
- key: column.property,
2920
- attrs: {
2921
- "label": column.property,
2922
- "disabled": column.alwaysShow
2923
- }
2924
- }, [_c("title-render", {
2925
- attrs: {
2926
- "column": column
2927
- }
2928
- })], 1);
2929
- })], 2) : _vm._e()];
2930
- })], 2)], 1)])], 1)];
2931
- },
2932
- proxy: true
2933
- }, {
2934
- key: "right",
2935
- fn: function fn2() {
2936
- return [_c("div", {
2937
- staticClass: "right-panel"
2938
- }, [_c("div", {
2939
- staticClass: "header"
2940
- }, [_c("p", [_vm._v(" " + _vm._s(_vm.t("ui.grid.individuation.toolbar.selected")) + " (" + _vm._s(_vm.visibleColumns.length) + "/" + _vm._s(_vm.columns.length) + ") ")]), !_vm.setting.hideFixedColumn ? _c("span", [_vm._v(_vm._s(_vm.t("ui.grid.individuation.toolbar.freeze")))]) : _vm._e(), !_vm.setting.hideSortColumn ? _c("span", [_vm._v(_vm._s(_vm.t("ui.grid.individuation.toolbar.sort")))]) : _vm._e(), !_vm.isGroup ? _c("span", {
2941
- staticClass: "clear-all",
2942
- on: {
2943
- "click": _vm.handelClearAll
2944
- }
2945
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.toolbar.clear")))]) : _vm._e()]), _c("ul", {
2946
- ref: "list",
2947
- staticClass: "column-list-panel"
2948
- }, _vm._l(_vm.visibleColumns, function(column, index) {
2949
- return _c("li", {
2950
- key: column.property + index,
2951
- class: [column.fixed, _vm.getRowClassName(column), "column-list-item", !column.expand && "item-collapse"],
2952
- attrs: {
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
- }, [_c("div", [_vm.defer(Math.floor(index / 3)) ? _c("div", {
2957
- staticClass: "column-container",
2958
- class: [!_vm.isGroup && "with-padding"]
2959
- }, [_vm.dropConfig.plugin && !_vm.isGroup ? _c("div", {
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
- expression: "column.sortingIndex"
2998
- }
2999
- }, _vm._l(_vm.sortingOptions, function(item) {
3000
- return _c("tiny-option", {
3001
- key: item,
3002
- attrs: {
3003
- "label": item,
3004
- "value": item
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
- }, _vm._l(column.fixedOption, function(item) {
3048
- return _c("tiny-dropdown-item", {
3049
- key: item.value,
3050
- attrs: {
3051
- "label": item.label,
3052
- "item-data": {
3053
- value: item.value,
3054
- property: column.property
3055
- }
3056
- }
3057
- }, [_vm._v(_vm._s(item.label))]);
3058
- }), 1)];
3059
- },
3060
- proxy: true
3061
- }], null, true)
3062
- }, [_c("span", {
3063
- class: ["left", "right"].includes(column.fixed) && "dropdown-btn"
3064
- }, [column.fixed === "left" ? _c("icon-left-frozen") : column.fixed === "right" ? _c("icon-right-frozen") : _c("span", {
3065
- staticClass: "set-btn"
3066
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.toolbar.set")))])], 1)])], 1) : _vm._e(), !_vm.setting.hideSortColumn ? _c("div", {
3067
- staticClass: "dropdown-column",
3068
- class: [!column.sortable && "visibility-hidden"]
3069
- }, [_c("tiny-dropdown", {
3070
- attrs: {
3071
- "show-icon": false,
3072
- "trigger": "hover"
3073
- },
3074
- on: {
3075
- "item-click": _vm.handleSortItemClick
3076
- },
3077
- scopedSlots: _vm._u([{
3078
- key: "dropdown",
3079
- fn: function fn3() {
3080
- return [_c("tiny-dropdown-menu", {
3081
- on: {
3082
- "mouseenter": function mouseenter($event) {
3083
- return _vm.handleDropdownMouseenter($event, index);
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
- "mouseleave": function mouseleave($event) {
3086
- return _vm.handleDropdownMouseleave($event, index);
3485
+ onMouseleave: function onMouseleave($event) {
3486
+ return _ctx.handleDropdownMouseleave($event, index);
3087
3487
  }
3088
- }
3089
- }, _vm._l(column.sortOption, function(item) {
3090
- return _c("tiny-dropdown-item", {
3091
- key: item.value,
3092
- attrs: {
3093
- "label": item.label,
3094
- "item-data": {
3095
- value: item.value,
3096
- property: column.property
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
- }, [_vm._v(_vm._s(item.label))]);
3100
- }), 1)];
3101
- },
3102
- proxy: true
3103
- }], null, true)
3104
- }, [_c("span", {
3105
- class: ["asc", "desc"].includes(column.order) && "dropdown-btn"
3106
- }, [column.order === "asc" ? _c("icon-ascending") : column.order === "desc" ? _c("icon-descending") : _c("span", {
3107
- staticClass: "set-btn",
3108
- class: [!column.sortable && "visibility-hidden"]
3109
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.toolbar.set")))])], 1)])], 1) : _vm._e(), !_vm.isGroup ? _c("span", {
3110
- staticClass: "close-icon",
3111
- class: [column.alwaysShow && "visibility-hidden"],
3112
- on: {
3113
- "click": function click($event) {
3114
- return _vm.hiddenColumn(column.property);
3115
- }
3116
- }
3117
- }, [_c("icon-close")], 1) : _vm._e()]) : _vm._e(), column.children ? _c("ul", _vm._l(column.children, function(column2, index2) {
3118
- return _c("li", {
3119
- directives: [{
3120
- name: "show",
3121
- rawName: "v-show",
3122
- value: column2.visible,
3123
- expression: "column.visible"
3124
- }],
3125
- key: column2.property + index2,
3126
- class: [column2.fixed, _vm.getRowClassName(column2)],
3127
- attrs: {
3128
- "data-row": column2.property
3129
- }
3130
- }, [_c("div", {
3131
- staticClass: "column-container"
3132
- }, [_c("p", {
3133
- staticClass: "name child-name",
3134
- on: {
3135
- "mouseenter": _vm.handleMouseenter,
3136
- "mouseleave": _vm.handleMouseleave
3137
- }
3138
- }, [_c("title-render", {
3139
- attrs: {
3140
- "column": column2
3141
- }
3142
- })], 1)])]);
3143
- }), 0) : _vm._e()])]);
3144
- }), 0)])];
3145
- },
3146
- proxy: true
3147
- }], null, false, 1239171024),
3148
- model: {
3149
- value: _vm.splitVal,
3150
- callback: function callback($$v) {
3151
- _vm.splitVal = $$v;
3152
- },
3153
- expression: "splitVal"
3154
- }
3155
- })], 1), _c("div", {
3156
- directives: [{
3157
- name: "show",
3158
- rawName: "v-show",
3159
- value: _vm.activeName === "other",
3160
- expression: "activeName === 'other'"
3161
- }],
3162
- class: ["tabs-body-item", _vm.animateShow === "other" ? "active-item" : ""]
3163
- }, [_c("div", {
3164
- staticClass: "other-setting"
3165
- }, [_c("span", {
3166
- staticClass: "label"
3167
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.tabs.other.pageSize")))]), _c("tiny-radio-group", {
3168
- model: {
3169
- value: _vm.settings.pageSize,
3170
- callback: function callback($$v) {
3171
- _vm.$set(_vm.settings, "pageSize", $$v);
3172
- },
3173
- expression: "settings.pageSize"
3174
- }
3175
- }, _vm._l(_vm.initSettings.pageSizes, function(item, index) {
3176
- return _c("tiny-radio", {
3177
- key: index,
3178
- attrs: {
3179
- "label": item
3180
- }
3181
- }, [_vm._v(_vm._s(item))]);
3182
- }), 1)], 1)])])]), _c("div", {
3183
- staticClass: "tiny-grid-custom__footer",
3184
- attrs: {
3185
- "dir": _vm.tinyTheme === "saas" ? "rtl" : "ltr"
3186
- }
3187
- }, [_c("tiny-button", {
3188
- attrs: {
3189
- "type": "primary"
3190
- },
3191
- on: {
3192
- "click": _vm.saveSettings
3193
- }
3194
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.saveBtn")))]), _vm.multipleHistory && _vm.activeName === "base" ? _c("tiny-custom-switch", {
3195
- ref: "switch",
3196
- attrs: {
3197
- "remote": _vm.setting.remote,
3198
- "custom-mode": _vm.customMode,
3199
- "selectedTemplateVal": _vm.selectedTemplateVal,
3200
- "history-config": _vm.historyConfig
3201
- },
3202
- on: {
3203
- "init-storage": _vm.initStorage,
3204
- "set-selected": _vm.setSelectedTemplate
3205
- }
3206
- }) : _vm._e(), _c("tiny-button", {
3207
- on: {
3208
- "click": _vm.handleReset
3209
- }
3210
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.resetBtn")))]), _c("tiny-button", {
3211
- on: {
3212
- "click": _vm.cancelSettings
3213
- }
3214
- }, [_vm._v(_vm._s(_vm.t("ui.grid.individuation.cancelBtn")))])], 1)]) : _vm._e(), _c("tiny-tooltip", {
3215
- ref: "tooltip",
3216
- attrs: {
3217
- "popper-class": "absolute",
3218
- "manual": true,
3219
- "effect": "light",
3220
- "content": _vm.tooltipContent,
3221
- "placement": "top"
3222
- },
3223
- model: {
3224
- value: _vm.tooltipVisible,
3225
- callback: function callback($$v) {
3226
- _vm.tooltipVisible = $$v;
3227
- },
3228
- expression: "tooltipVisible"
3229
- }
3230
- })];
3231
- },
3232
- proxy: true
3233
- }]),
3234
- model: {
3235
- value: _vm.visible,
3236
- callback: function callback($$v) {
3237
- _vm.visible = $$v;
3238
- },
3239
- expression: "visible"
3240
- }
3241
- });
3242
- };
3243
- var staticRenderFns = [];
3244
- var __cssModules = {};
3245
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render2, staticRenderFns, false, __vue2_injectStyles);
3246
- function __vue2_injectStyles(context) {
3247
- for (var o in __cssModules) {
3248
- this[o] = __cssModules[o];
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__ */ function() {
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 render4() {
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 = "2.21.0";
4566
+ var version = "3.21.0";
4032
4567
  GridToolbar.install = function(Vue) {
4033
4568
  Vue.component(GridToolbar.name, GridToolbar);
4034
4569
  };