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