@zeedhi/teknisa-components-vuetify 1.38.0 → 1.39.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.
@@ -1,6 +1,6 @@
1
1
  import { Modal, ModalService, Icons } from '@zeedhi/common';
2
2
  import { Prop, Component, Watch } from 'vue-property-decorator';
3
- import { BreadcrumbHeader, CardTitle, CrudButton, CrudAddButton, CrudCancelButton, CrudDeleteButton, CrudForm, CrudSaveButton, TekGrid as TekGrid$1, TekRestDatasource, TekMemoryDatasource, TekGridColumnsButton as TekGridColumnsButton$1, TekGridLayoutOptions as TekGridLayoutOptions$1, TekGridColumn, TekFilterHelper, Image, IterableCarousel, IterableComponentRender, Notifications, ProductCard } from '@zeedhi/teknisa-components-common';
3
+ import { BreadcrumbHeader, CardTitle, CrudButton, CrudAddButton, CrudCancelButton, CrudDeleteButton, CrudForm, CrudSaveButton, TekGrid as TekGrid$2, TekRestDatasource, TekMemoryDatasource, TekGridColumn, TekGridColumnsButton as TekGridColumnsButton$1, TekGridLayoutOptions as TekGridLayoutOptions$1, TekFilterHelper, Image, IterableCarousel, IterableComponentRender, Notifications, ProductCard, TekTreeGrid } from '@zeedhi/teknisa-components-common';
4
4
  import { ZdComponent, ZdComponentRender, components as components$1, ZdForm, ZdGrid, ZdIterableColumnsButton, ZdIterable } from '@zeedhi/vuetify';
5
5
  import { Metadata, Singleton, normalize, I18n, Loader } from '@zeedhi/core';
6
6
  import debounce from 'lodash.debounce';
@@ -57,7 +57,7 @@ __decorate([
57
57
  TekBreadcrumbHeader = __decorate([
58
58
  Component
59
59
  ], TekBreadcrumbHeader);
60
- var script$e = TekBreadcrumbHeader;
60
+ var script$f = TekBreadcrumbHeader;
61
61
 
62
62
  function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
63
63
  if (typeof shadowMode !== 'boolean') {
@@ -188,10 +188,10 @@ function addStyle(id, css) {
188
188
  }
189
189
 
190
190
  /* script */
191
- const __vue_script__$e = script$e;
191
+ const __vue_script__$f = script$f;
192
192
 
193
193
  /* template */
194
- var __vue_render__$e = function () {
194
+ var __vue_render__$f = function () {
195
195
  var _vm = this;
196
196
  var _h = _vm.$createElement;
197
197
  var _c = _vm._self._c || _h;
@@ -257,34 +257,34 @@ var __vue_render__$e = function () {
257
257
  1
258
258
  )
259
259
  };
260
- var __vue_staticRenderFns__$e = [];
261
- __vue_render__$e._withStripped = true;
260
+ var __vue_staticRenderFns__$f = [];
261
+ __vue_render__$f._withStripped = true;
262
262
 
263
263
  /* style */
264
- const __vue_inject_styles__$e = function (inject) {
264
+ const __vue_inject_styles__$f = function (inject) {
265
265
  if (!inject) return
266
266
  inject("data-v-cb6f4dac_0", { source: ".tek-breadcrumb-header .tek-breadcrumb-header-title-col {\n display: flex;\n padding-top: 5px;\n padding-left: 0;\n}\n.tek-breadcrumb-header .tek-breadcrumb-header-title-col .tek-breadcrumb-header-slot-right {\n margin-left: auto;\n}\n.tek-breadcrumb-header .zd-breadcrumbs {\n padding: 0;\n font-size: var(--zd-font-body2-size);\n}\n.tek-breadcrumb-header .zd-breadcrumbs .v-breadcrumbs__item--disabled {\n color: #667080;\n}\n.tek-breadcrumb-header .zd-text {\n color: #667080;\n}\n.tek-breadcrumb-header .zd-text.tek-breadcrumb-header-title {\n font-size: 32px;\n font-weight: bold;\n line-height: 35px;\n margin-bottom: 10px;\n}\n.tek-breadcrumb-header .zd-text > p {\n margin: 0;\n}", map: undefined, media: undefined });
267
267
 
268
268
  };
269
269
  /* scoped */
270
- const __vue_scope_id__$e = undefined;
270
+ const __vue_scope_id__$f = undefined;
271
271
  /* module identifier */
272
- const __vue_module_identifier__$e = undefined;
272
+ const __vue_module_identifier__$f = undefined;
273
273
  /* functional template */
274
- const __vue_is_functional_template__$e = false;
274
+ const __vue_is_functional_template__$f = false;
275
275
  /* style inject SSR */
276
276
 
277
277
  /* style inject shadow dom */
278
278
 
279
279
 
280
280
 
281
- const __vue_component__$e = /*#__PURE__*/normalizeComponent(
282
- { render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },
283
- __vue_inject_styles__$e,
284
- __vue_script__$e,
285
- __vue_scope_id__$e,
286
- __vue_is_functional_template__$e,
287
- __vue_module_identifier__$e,
281
+ const __vue_component__$f = /*#__PURE__*/normalizeComponent(
282
+ { render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },
283
+ __vue_inject_styles__$f,
284
+ __vue_script__$f,
285
+ __vue_scope_id__$f,
286
+ __vue_is_functional_template__$f,
287
+ __vue_module_identifier__$f,
288
288
  false,
289
289
  createInjector,
290
290
  undefined,
@@ -327,13 +327,13 @@ __decorate([
327
327
  TekCardTitle = __decorate([
328
328
  Component
329
329
  ], TekCardTitle);
330
- var script$d = TekCardTitle;
330
+ var script$e = TekCardTitle;
331
331
 
332
332
  /* script */
333
- const __vue_script__$d = script$d;
333
+ const __vue_script__$e = script$e;
334
334
 
335
335
  /* template */
336
- var __vue_render__$d = function () {
336
+ var __vue_render__$e = function () {
337
337
  var _vm = this;
338
338
  var _h = _vm.$createElement;
339
339
  var _c = _vm._self._c || _h;
@@ -430,34 +430,34 @@ var __vue_render__$d = function () {
430
430
  1
431
431
  )
432
432
  };
433
- var __vue_staticRenderFns__$d = [];
434
- __vue_render__$d._withStripped = true;
433
+ var __vue_staticRenderFns__$e = [];
434
+ __vue_render__$e._withStripped = true;
435
435
 
436
436
  /* style */
437
- const __vue_inject_styles__$d = function (inject) {
437
+ const __vue_inject_styles__$e = function (inject) {
438
438
  if (!inject) return
439
439
  inject("data-v-520a641c_0", { source: ".tek-card-title-row {\n display: flex;\n align-items: center;\n}\n.tek-card-title-row .tek-card-title-text {\n color: var(--v-primary-base);\n font-weight: bold;\n font-size: 20px;\n}\n.tek-card-title-row .tek-card-subtitle-text {\n padding-left: 10px;\n color: var(--zd-font-color);\n font-size: 13px;\n}\n.tek-card-title-row .tek-card-title-text,\n.tek-card-title-row .tek-card-subtitle-text {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: baseline;\n}\n.tek-card-title-row .v-icon {\n color: var(--v-primary-base);\n padding-right: calc(var(--zd-default-padding) / 2);\n}\n.tek-card-title .v-divider {\n margin-bottom: 16px;\n}\n.tek-card-title .tek-card-title-router {\n text-decoration: none;\n}\n.tek-card-title .tek-card-title-no-router {\n text-decoration: none;\n cursor: default;\n}", map: undefined, media: undefined });
440
440
 
441
441
  };
442
442
  /* scoped */
443
- const __vue_scope_id__$d = undefined;
443
+ const __vue_scope_id__$e = undefined;
444
444
  /* module identifier */
445
- const __vue_module_identifier__$d = undefined;
445
+ const __vue_module_identifier__$e = undefined;
446
446
  /* functional template */
447
- const __vue_is_functional_template__$d = false;
447
+ const __vue_is_functional_template__$e = false;
448
448
  /* style inject SSR */
449
449
 
450
450
  /* style inject shadow dom */
451
451
 
452
452
 
453
453
 
454
- const __vue_component__$d = /*#__PURE__*/normalizeComponent(
455
- { render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },
456
- __vue_inject_styles__$d,
457
- __vue_script__$d,
458
- __vue_scope_id__$d,
459
- __vue_is_functional_template__$d,
460
- __vue_module_identifier__$d,
454
+ const __vue_component__$e = /*#__PURE__*/normalizeComponent(
455
+ { render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },
456
+ __vue_inject_styles__$e,
457
+ __vue_script__$e,
458
+ __vue_scope_id__$e,
459
+ __vue_is_functional_template__$e,
460
+ __vue_module_identifier__$e,
461
461
  false,
462
462
  createInjector,
463
463
  undefined,
@@ -530,13 +530,13 @@ __decorate([
530
530
  TekCrudAddButton = __decorate([
531
531
  Component
532
532
  ], TekCrudAddButton);
533
- var script$c = TekCrudAddButton;
533
+ var script$d = TekCrudAddButton;
534
534
 
535
535
  /* script */
536
- const __vue_script__$c = script$c;
536
+ const __vue_script__$d = script$d;
537
537
 
538
538
  /* template */
539
- var __vue_render__$c = function () {
539
+ var __vue_render__$d = function () {
540
540
  var _vm = this;
541
541
  var _h = _vm.$createElement;
542
542
  var _c = _vm._self._c || _h;
@@ -601,17 +601,17 @@ var __vue_render__$c = function () {
601
601
  ]
602
602
  )
603
603
  };
604
- var __vue_staticRenderFns__$c = [];
605
- __vue_render__$c._withStripped = true;
604
+ var __vue_staticRenderFns__$d = [];
605
+ __vue_render__$d._withStripped = true;
606
606
 
607
607
  /* style */
608
- const __vue_inject_styles__$c = undefined;
608
+ const __vue_inject_styles__$d = undefined;
609
609
  /* scoped */
610
- const __vue_scope_id__$c = undefined;
610
+ const __vue_scope_id__$d = undefined;
611
611
  /* module identifier */
612
- const __vue_module_identifier__$c = undefined;
612
+ const __vue_module_identifier__$d = undefined;
613
613
  /* functional template */
614
- const __vue_is_functional_template__$c = false;
614
+ const __vue_is_functional_template__$d = false;
615
615
  /* style inject */
616
616
 
617
617
  /* style inject SSR */
@@ -620,13 +620,13 @@ __vue_render__$c._withStripped = true;
620
620
 
621
621
 
622
622
 
623
- const __vue_component__$c = /*#__PURE__*/normalizeComponent(
624
- { render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },
625
- __vue_inject_styles__$c,
626
- __vue_script__$c,
627
- __vue_scope_id__$c,
628
- __vue_is_functional_template__$c,
629
- __vue_module_identifier__$c,
623
+ const __vue_component__$d = /*#__PURE__*/normalizeComponent(
624
+ { render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },
625
+ __vue_inject_styles__$d,
626
+ __vue_script__$d,
627
+ __vue_scope_id__$d,
628
+ __vue_is_functional_template__$d,
629
+ __vue_module_identifier__$d,
630
630
  false,
631
631
  undefined,
632
632
  undefined,
@@ -657,13 +657,13 @@ __decorate([
657
657
  TekCrudCancelButton = __decorate([
658
658
  Component
659
659
  ], TekCrudCancelButton);
660
- var script$b = TekCrudCancelButton;
660
+ var script$c = TekCrudCancelButton;
661
661
 
662
662
  /* script */
663
- const __vue_script__$b = script$b;
663
+ const __vue_script__$c = script$c;
664
664
 
665
665
  /* template */
666
- var __vue_render__$b = function () {
666
+ var __vue_render__$c = function () {
667
667
  var _vm = this;
668
668
  var _h = _vm.$createElement;
669
669
  var _c = _vm._self._c || _h;
@@ -728,17 +728,17 @@ var __vue_render__$b = function () {
728
728
  ]
729
729
  )
730
730
  };
731
- var __vue_staticRenderFns__$b = [];
732
- __vue_render__$b._withStripped = true;
731
+ var __vue_staticRenderFns__$c = [];
732
+ __vue_render__$c._withStripped = true;
733
733
 
734
734
  /* style */
735
- const __vue_inject_styles__$b = undefined;
735
+ const __vue_inject_styles__$c = undefined;
736
736
  /* scoped */
737
- const __vue_scope_id__$b = undefined;
737
+ const __vue_scope_id__$c = undefined;
738
738
  /* module identifier */
739
- const __vue_module_identifier__$b = undefined;
739
+ const __vue_module_identifier__$c = undefined;
740
740
  /* functional template */
741
- const __vue_is_functional_template__$b = false;
741
+ const __vue_is_functional_template__$c = false;
742
742
  /* style inject */
743
743
 
744
744
  /* style inject SSR */
@@ -747,13 +747,13 @@ __vue_render__$b._withStripped = true;
747
747
 
748
748
 
749
749
 
750
- const __vue_component__$b = /*#__PURE__*/normalizeComponent(
751
- { render: __vue_render__$b, staticRenderFns: __vue_staticRenderFns__$b },
752
- __vue_inject_styles__$b,
753
- __vue_script__$b,
754
- __vue_scope_id__$b,
755
- __vue_is_functional_template__$b,
756
- __vue_module_identifier__$b,
750
+ const __vue_component__$c = /*#__PURE__*/normalizeComponent(
751
+ { render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },
752
+ __vue_inject_styles__$c,
753
+ __vue_script__$c,
754
+ __vue_scope_id__$c,
755
+ __vue_is_functional_template__$c,
756
+ __vue_module_identifier__$c,
757
757
  false,
758
758
  undefined,
759
759
  undefined,
@@ -792,13 +792,13 @@ __decorate([
792
792
  TekCrudDeleteButton = __decorate([
793
793
  Component
794
794
  ], TekCrudDeleteButton);
795
- var script$a = TekCrudDeleteButton;
795
+ var script$b = TekCrudDeleteButton;
796
796
 
797
797
  /* script */
798
- const __vue_script__$a = script$a;
798
+ const __vue_script__$b = script$b;
799
799
 
800
800
  /* template */
801
- var __vue_render__$a = function () {
801
+ var __vue_render__$b = function () {
802
802
  var _vm = this;
803
803
  var _h = _vm.$createElement;
804
804
  var _c = _vm._self._c || _h;
@@ -863,17 +863,17 @@ var __vue_render__$a = function () {
863
863
  ]
864
864
  )
865
865
  };
866
- var __vue_staticRenderFns__$a = [];
867
- __vue_render__$a._withStripped = true;
866
+ var __vue_staticRenderFns__$b = [];
867
+ __vue_render__$b._withStripped = true;
868
868
 
869
869
  /* style */
870
- const __vue_inject_styles__$a = undefined;
870
+ const __vue_inject_styles__$b = undefined;
871
871
  /* scoped */
872
- const __vue_scope_id__$a = undefined;
872
+ const __vue_scope_id__$b = undefined;
873
873
  /* module identifier */
874
- const __vue_module_identifier__$a = undefined;
874
+ const __vue_module_identifier__$b = undefined;
875
875
  /* functional template */
876
- const __vue_is_functional_template__$a = false;
876
+ const __vue_is_functional_template__$b = false;
877
877
  /* style inject */
878
878
 
879
879
  /* style inject SSR */
@@ -882,13 +882,13 @@ __vue_render__$a._withStripped = true;
882
882
 
883
883
 
884
884
 
885
- const __vue_component__$a = /*#__PURE__*/normalizeComponent(
886
- { render: __vue_render__$a, staticRenderFns: __vue_staticRenderFns__$a },
887
- __vue_inject_styles__$a,
888
- __vue_script__$a,
889
- __vue_scope_id__$a,
890
- __vue_is_functional_template__$a,
891
- __vue_module_identifier__$a,
885
+ const __vue_component__$b = /*#__PURE__*/normalizeComponent(
886
+ { render: __vue_render__$b, staticRenderFns: __vue_staticRenderFns__$b },
887
+ __vue_inject_styles__$b,
888
+ __vue_script__$b,
889
+ __vue_scope_id__$b,
890
+ __vue_is_functional_template__$b,
891
+ __vue_module_identifier__$b,
892
892
  false,
893
893
  undefined,
894
894
  undefined,
@@ -907,13 +907,13 @@ let TekCrudForm = class TekCrudForm extends ZdForm {
907
907
  TekCrudForm = __decorate([
908
908
  Component
909
909
  ], TekCrudForm);
910
- var script$9 = TekCrudForm;
910
+ var script$a = TekCrudForm;
911
911
 
912
912
  /* script */
913
- const __vue_script__$9 = script$9;
913
+ const __vue_script__$a = script$a;
914
914
 
915
915
  /* template */
916
- var __vue_render__$9 = function () {
916
+ var __vue_render__$a = function () {
917
917
  var _vm = this;
918
918
  var _h = _vm.$createElement;
919
919
  var _c = _vm._self._c || _h;
@@ -987,34 +987,34 @@ var __vue_render__$9 = function () {
987
987
  2
988
988
  )
989
989
  };
990
- var __vue_staticRenderFns__$9 = [];
991
- __vue_render__$9._withStripped = true;
990
+ var __vue_staticRenderFns__$a = [];
991
+ __vue_render__$a._withStripped = true;
992
992
 
993
993
  /* style */
994
- const __vue_inject_styles__$9 = function (inject) {
994
+ const __vue_inject_styles__$a = function (inject) {
995
995
  if (!inject) return
996
996
  inject("data-v-aa2c2e04_0", { source: ".tek-crud-form {\n outline: none;\n}", map: undefined, media: undefined });
997
997
 
998
998
  };
999
999
  /* scoped */
1000
- const __vue_scope_id__$9 = undefined;
1000
+ const __vue_scope_id__$a = undefined;
1001
1001
  /* module identifier */
1002
- const __vue_module_identifier__$9 = undefined;
1002
+ const __vue_module_identifier__$a = undefined;
1003
1003
  /* functional template */
1004
- const __vue_is_functional_template__$9 = false;
1004
+ const __vue_is_functional_template__$a = false;
1005
1005
  /* style inject SSR */
1006
1006
 
1007
1007
  /* style inject shadow dom */
1008
1008
 
1009
1009
 
1010
1010
 
1011
- const __vue_component__$9 = /*#__PURE__*/normalizeComponent(
1012
- { render: __vue_render__$9, staticRenderFns: __vue_staticRenderFns__$9 },
1013
- __vue_inject_styles__$9,
1014
- __vue_script__$9,
1015
- __vue_scope_id__$9,
1016
- __vue_is_functional_template__$9,
1017
- __vue_module_identifier__$9,
1011
+ const __vue_component__$a = /*#__PURE__*/normalizeComponent(
1012
+ { render: __vue_render__$a, staticRenderFns: __vue_staticRenderFns__$a },
1013
+ __vue_inject_styles__$a,
1014
+ __vue_script__$a,
1015
+ __vue_scope_id__$a,
1016
+ __vue_is_functional_template__$a,
1017
+ __vue_module_identifier__$a,
1018
1018
  false,
1019
1019
  createInjector,
1020
1020
  undefined,
@@ -1041,13 +1041,13 @@ __decorate([
1041
1041
  TekCrudSaveButton = __decorate([
1042
1042
  Component
1043
1043
  ], TekCrudSaveButton);
1044
- var script$8 = TekCrudSaveButton;
1044
+ var script$9 = TekCrudSaveButton;
1045
1045
 
1046
1046
  /* script */
1047
- const __vue_script__$8 = script$8;
1047
+ const __vue_script__$9 = script$9;
1048
1048
 
1049
1049
  /* template */
1050
- var __vue_render__$8 = function () {
1050
+ var __vue_render__$9 = function () {
1051
1051
  var _vm = this;
1052
1052
  var _h = _vm.$createElement;
1053
1053
  var _c = _vm._self._c || _h;
@@ -1112,17 +1112,17 @@ var __vue_render__$8 = function () {
1112
1112
  ]
1113
1113
  )
1114
1114
  };
1115
- var __vue_staticRenderFns__$8 = [];
1116
- __vue_render__$8._withStripped = true;
1115
+ var __vue_staticRenderFns__$9 = [];
1116
+ __vue_render__$9._withStripped = true;
1117
1117
 
1118
1118
  /* style */
1119
- const __vue_inject_styles__$8 = undefined;
1119
+ const __vue_inject_styles__$9 = undefined;
1120
1120
  /* scoped */
1121
- const __vue_scope_id__$8 = undefined;
1121
+ const __vue_scope_id__$9 = undefined;
1122
1122
  /* module identifier */
1123
- const __vue_module_identifier__$8 = undefined;
1123
+ const __vue_module_identifier__$9 = undefined;
1124
1124
  /* functional template */
1125
- const __vue_is_functional_template__$8 = false;
1125
+ const __vue_is_functional_template__$9 = false;
1126
1126
  /* style inject */
1127
1127
 
1128
1128
  /* style inject SSR */
@@ -1131,13 +1131,13 @@ __vue_render__$8._withStripped = true;
1131
1131
 
1132
1132
 
1133
1133
 
1134
- const __vue_component__$8 = /*#__PURE__*/normalizeComponent(
1135
- { render: __vue_render__$8, staticRenderFns: __vue_staticRenderFns__$8 },
1136
- __vue_inject_styles__$8,
1137
- __vue_script__$8,
1138
- __vue_scope_id__$8,
1139
- __vue_is_functional_template__$8,
1140
- __vue_module_identifier__$8,
1134
+ const __vue_component__$9 = /*#__PURE__*/normalizeComponent(
1135
+ { render: __vue_render__$9, staticRenderFns: __vue_staticRenderFns__$9 },
1136
+ __vue_inject_styles__$9,
1137
+ __vue_script__$9,
1138
+ __vue_scope_id__$9,
1139
+ __vue_is_functional_template__$9,
1140
+ __vue_module_identifier__$9,
1141
1141
  false,
1142
1142
  undefined,
1143
1143
  undefined,
@@ -1149,10 +1149,10 @@ const ZdGridEditable = components$1.ZdGridEditable;
1149
1149
  /**
1150
1150
  * TekGrid component
1151
1151
  */
1152
- let TekGrid = class TekGrid extends ZdGridEditable {
1152
+ let TekGrid$1 = class TekGrid extends ZdGridEditable {
1153
1153
  constructor() {
1154
1154
  super(...arguments);
1155
- this.instanceType = TekGrid$1;
1155
+ this.instanceType = TekGrid$2;
1156
1156
  this.debouncedDatasourceGet = debounce((instance) => {
1157
1157
  if (instance.events.beforeApplyFilter) {
1158
1158
  instance.events.beforeApplyFilter({ component: instance });
@@ -1398,7 +1398,7 @@ let TekGrid = class TekGrid extends ZdGridEditable {
1398
1398
  if (!a.fixed && b.fixed)
1399
1399
  return 1;
1400
1400
  return -1;
1401
- });
1401
+ }).filter((item) => item instanceof TekGridColumn);
1402
1402
  }
1403
1403
  updateFixedColumns() {
1404
1404
  if (this.instance.columns.filter((column) => column.fixed).length === 0)
@@ -1427,92 +1427,142 @@ let TekGrid = class TekGrid extends ZdGridEditable {
1427
1427
  return 'unset';
1428
1428
  return headerElement[0].style.left;
1429
1429
  }
1430
+ isGroupSelected(item) {
1431
+ return item.children.every((child) => {
1432
+ const { uniqueKey } = this.instance.datasource;
1433
+ const idx = this.instance.selectedRows.findIndex((row) => child[uniqueKey] === row[uniqueKey]);
1434
+ return idx !== -1;
1435
+ });
1436
+ }
1437
+ isGroupSelectIndeterminate(item) {
1438
+ let hasSelected = false;
1439
+ let hasNotSelected = false;
1440
+ const { uniqueKey } = this.instance.datasource;
1441
+ item.children.forEach((child) => {
1442
+ const idx = this.instance.selectedRows.findIndex((row) => child[uniqueKey] === row[uniqueKey]);
1443
+ hasSelected = hasSelected || idx !== -1;
1444
+ hasNotSelected = hasNotSelected || idx === -1;
1445
+ });
1446
+ return hasSelected && hasNotSelected;
1447
+ }
1448
+ selectGroup(item, event) {
1449
+ const { uniqueKey } = this.instance.datasource;
1450
+ const isSelected = this.isGroupSelected(item);
1451
+ if (!isSelected) {
1452
+ item.children.forEach((child) => {
1453
+ const idx = this.instance.selectedRows.findIndex((row) => child[uniqueKey] === row[uniqueKey]);
1454
+ if (idx === -1) {
1455
+ this.instance.selectedRows.push(child);
1456
+ }
1457
+ });
1458
+ }
1459
+ else {
1460
+ this.instance.selectedRows = this.instance.selectedRows.filter((row) => {
1461
+ const idx = item.children.findIndex((child) => child[uniqueKey] === row[uniqueKey]);
1462
+ return idx === -1;
1463
+ });
1464
+ }
1465
+ this.selectGroupRowClick(item, !isSelected, event);
1466
+ }
1467
+ selectGroupRowClick(row, isSelected, event) {
1468
+ this.$nextTick(() => {
1469
+ this.instance.selectGroupClick(row, isSelected, event, this.$el);
1470
+ });
1471
+ }
1472
+ toggleSelectAll() {
1473
+ if (this.instance.selectedRows.length === this.instance.datasource.data.length) {
1474
+ this.instance.selectedRows = [];
1475
+ }
1476
+ else {
1477
+ this.instance.selectedRows = this.instance.datasource.data;
1478
+ }
1479
+ }
1430
1480
  };
1431
1481
  __decorate([
1432
1482
  Prop({ type: [String], default: '' }),
1433
1483
  __metadata("design:type", String)
1434
- ], TekGrid.prototype, "title", void 0);
1484
+ ], TekGrid$1.prototype, "title", void 0);
1435
1485
  __decorate([
1436
1486
  Prop({ type: [Boolean, String], default: false }),
1437
1487
  __metadata("design:type", Object)
1438
- ], TekGrid.prototype, "addButton", void 0);
1488
+ ], TekGrid$1.prototype, "addButton", void 0);
1439
1489
  __decorate([
1440
1490
  Prop({ type: [String], default: 'none' }),
1441
1491
  __metadata("design:type", String)
1442
- ], TekGrid.prototype, "deleteButton", void 0);
1492
+ ], TekGrid$1.prototype, "deleteButton", void 0);
1443
1493
  __decorate([
1444
1494
  Prop({ type: [Boolean, String], default: false }),
1445
1495
  __metadata("design:type", Object)
1446
- ], TekGrid.prototype, "columnsButton", void 0);
1496
+ ], TekGrid$1.prototype, "columnsButton", void 0);
1447
1497
  __decorate([
1448
1498
  Prop({ type: [Array, String], default: () => [] }),
1449
1499
  __metadata("design:type", Object)
1450
- ], TekGrid.prototype, "columnsButtonIgnore", void 0);
1500
+ ], TekGrid$1.prototype, "columnsButtonIgnore", void 0);
1451
1501
  __decorate([
1452
1502
  Prop({ type: [Boolean, String], default: false }),
1453
1503
  __metadata("design:type", Object)
1454
- ], TekGrid.prototype, "filterButton", void 0);
1504
+ ], TekGrid$1.prototype, "filterButton", void 0);
1455
1505
  __decorate([
1456
1506
  Prop({ type: [Boolean, String], default: false }),
1457
1507
  __metadata("design:type", Object)
1458
- ], TekGrid.prototype, "columnFilterButton", void 0);
1508
+ ], TekGrid$1.prototype, "columnFilterButton", void 0);
1459
1509
  __decorate([
1460
1510
  Prop({ type: [Array], default: () => [] }),
1461
1511
  __metadata("design:type", Array)
1462
- ], TekGrid.prototype, "actions", void 0);
1512
+ ], TekGrid$1.prototype, "actions", void 0);
1463
1513
  __decorate([
1464
1514
  Prop({ type: [String, Boolean], default: true }),
1465
1515
  __metadata("design:type", Object)
1466
- ], TekGrid.prototype, "dragColumns", void 0);
1516
+ ], TekGrid$1.prototype, "dragColumns", void 0);
1467
1517
  __decorate([
1468
1518
  Prop({ type: [String, Boolean], default: true }),
1469
1519
  __metadata("design:type", Object)
1470
- ], TekGrid.prototype, "resizeColumns", void 0);
1520
+ ], TekGrid$1.prototype, "resizeColumns", void 0);
1471
1521
  __decorate([
1472
1522
  Prop({ type: [String, Boolean], default: true }),
1473
1523
  __metadata("design:type", Object)
1474
- ], TekGrid.prototype, "showLayoutOptions", void 0);
1524
+ ], TekGrid$1.prototype, "showLayoutOptions", void 0);
1475
1525
  __decorate([
1476
1526
  Prop({ type: [String, Boolean], default: false }),
1477
1527
  __metadata("design:type", Object)
1478
- ], TekGrid.prototype, "showExport", void 0);
1528
+ ], TekGrid$1.prototype, "showExport", void 0);
1479
1529
  __decorate([
1480
1530
  Prop({ type: [String, Boolean], default: true }),
1481
1531
  __metadata("design:type", Object)
1482
- ], TekGrid.prototype, "showReload", void 0);
1532
+ ], TekGrid$1.prototype, "showReload", void 0);
1483
1533
  __decorate([
1484
1534
  Prop({ type: [String, Array] }),
1485
1535
  __metadata("design:type", Array)
1486
- ], TekGrid.prototype, "exportConfig", void 0);
1536
+ ], TekGrid$1.prototype, "exportConfig", void 0);
1487
1537
  __decorate([
1488
1538
  Prop({ type: [Array] }),
1489
1539
  __metadata("design:type", Array)
1490
- ], TekGrid.prototype, "exportActions", void 0);
1540
+ ], TekGrid$1.prototype, "exportActions", void 0);
1491
1541
  __decorate([
1492
1542
  Prop({ type: [String, Boolean], default: false }),
1493
1543
  __metadata("design:type", Object)
1494
- ], TekGrid.prototype, "groupsOpened", void 0);
1544
+ ], TekGrid$1.prototype, "groupsOpened", void 0);
1495
1545
  __decorate([
1496
1546
  Prop({ type: [String, Boolean], default: true }),
1497
1547
  __metadata("design:type", Object)
1498
- ], TekGrid.prototype, "showSummaryTotal", void 0);
1548
+ ], TekGrid$1.prototype, "showSummaryTotal", void 0);
1499
1549
  __decorate([
1500
1550
  Prop({
1501
1551
  type: Array,
1502
1552
  default: () => undefined,
1503
1553
  }),
1504
1554
  __metadata("design:type", Array)
1505
- ], TekGrid.prototype, "toolbarSlot", void 0);
1506
- TekGrid = __decorate([
1555
+ ], TekGrid$1.prototype, "toolbarSlot", void 0);
1556
+ TekGrid$1 = __decorate([
1507
1557
  Component
1508
- ], TekGrid);
1509
- var script$7 = TekGrid;
1558
+ ], TekGrid$1);
1559
+ var script$8 = TekGrid$1;
1510
1560
 
1511
1561
  /* script */
1512
- const __vue_script__$7 = script$7;
1562
+ const __vue_script__$8 = script$8;
1513
1563
 
1514
1564
  /* template */
1515
- var __vue_render__$7 = function () {
1565
+ var __vue_render__$8 = function () {
1516
1566
  var _vm = this;
1517
1567
  var _h = _vm.$createElement;
1518
1568
  var _c = _vm._self._c || _h;
@@ -1590,7 +1640,6 @@ var __vue_render__$7 = function () {
1590
1640
  key: "header",
1591
1641
  fn: function (ref) {
1592
1642
  var props = ref.props;
1593
- var on = ref.on;
1594
1643
  return [
1595
1644
  _c("thead", { staticClass: "zd-grid-table-header" }, [
1596
1645
  _c(
@@ -1625,7 +1674,7 @@ var __vue_render__$7 = function () {
1625
1674
  on: {
1626
1675
  click: function ($event) {
1627
1676
  $event.stopPropagation();
1628
- on["toggle-select-all"](!props.everyItem);
1677
+ _vm.toggleSelectAll();
1629
1678
  _vm.selectAllClick(
1630
1679
  !props.everyItem,
1631
1680
  $event
@@ -1655,6 +1704,10 @@ var __vue_render__$7 = function () {
1655
1704
  refInFor: true,
1656
1705
  class: [
1657
1706
  "zd-table-cell",
1707
+ "column-th-" +
1708
+ column.name +
1709
+ "-" +
1710
+ _vm.instance.name,
1658
1711
  {
1659
1712
  sortable:
1660
1713
  column.sortable &&
@@ -2296,33 +2349,63 @@ var __vue_render__$7 = function () {
2296
2349
  },
2297
2350
  [
2298
2351
  _vm.instance.selectable
2299
- ? _c("td", {
2300
- staticClass:
2301
- "zd-table-cell selectable zd-table-fixed-column",
2302
- })
2303
- : _vm._e(),
2304
- _vm._v(" "),
2305
- _c(
2306
- "td",
2307
- {
2308
- staticClass:
2309
- "zd-table-cell text-left zd-table-group-header zd-table-fixed-column",
2310
- style:
2311
- "left: " +
2312
- (_vm.instance.selectable ? 40 : 0) +
2313
- "px",
2314
- attrs: { colspan: 999 },
2315
- },
2316
- [
2317
- _c(
2318
- "span",
2352
+ ? _c(
2353
+ "td",
2319
2354
  {
2320
- staticClass: "zd-table-group-container",
2321
- style:
2322
- "left: " +
2323
- (_vm.instance.selectable ? 48 : 8) +
2324
- "px",
2325
- },
2355
+ staticClass:
2356
+ "zd-table-cell selectable zd-table-fixed-column",
2357
+ },
2358
+ [
2359
+ _c("v-checkbox", {
2360
+ staticClass: "zd-grid-row-checkbox",
2361
+ attrs: {
2362
+ "hide-details": "",
2363
+ color: "primary",
2364
+ disabled: _vm.instance.editing,
2365
+ "on-icon": _vm.$getIcon("checkboxOn"),
2366
+ "off-icon": _vm.$getIcon("checkboxOff"),
2367
+ "indeterminate-icon": _vm.$getIcon(
2368
+ "checkboxIndeterminate"
2369
+ ),
2370
+ "true-value": true,
2371
+ "false-value": false,
2372
+ "input-value": _vm.isGroupSelected(item),
2373
+ indeterminate:
2374
+ _vm.isGroupSelectIndeterminate(item),
2375
+ },
2376
+ on: {
2377
+ click: function ($event) {
2378
+ $event.stopPropagation();
2379
+ return _vm.selectGroup(item, $event)
2380
+ },
2381
+ },
2382
+ }),
2383
+ ],
2384
+ 1
2385
+ )
2386
+ : _vm._e(),
2387
+ _vm._v(" "),
2388
+ _c(
2389
+ "td",
2390
+ {
2391
+ staticClass:
2392
+ "zd-table-cell text-left zd-table-group-header zd-table-fixed-column",
2393
+ style:
2394
+ "left: " +
2395
+ (_vm.instance.selectable ? 40 : 0) +
2396
+ "px",
2397
+ attrs: { colspan: 999 },
2398
+ },
2399
+ [
2400
+ _c(
2401
+ "span",
2402
+ {
2403
+ staticClass: "zd-table-group-container",
2404
+ style:
2405
+ "left: " +
2406
+ (_vm.instance.selectable ? 48 : 8) +
2407
+ "px",
2408
+ },
2326
2409
  [
2327
2410
  _vm._l(
2328
2411
  item.groupHeaders,
@@ -2962,34 +3045,34 @@ var __vue_render__$7 = function () {
2962
3045
  },
2963
3046
  })
2964
3047
  };
2965
- var __vue_staticRenderFns__$7 = [];
2966
- __vue_render__$7._withStripped = true;
3048
+ var __vue_staticRenderFns__$8 = [];
3049
+ __vue_render__$8._withStripped = true;
2967
3050
 
2968
3051
  /* style */
2969
- const __vue_inject_styles__$7 = function (inject) {
3052
+ const __vue_inject_styles__$8 = function (inject) {
2970
3053
  if (!inject) return
2971
- inject("data-v-1f93e5e4_0", { source: ".tek-grid .zd-grid-toolbar {\n height: 36px;\n}\n.tek-grid .zd-grid-toolbar .zd-grid-toolbar-slot {\n align-items: center;\n}\n.tek-grid .zd-grid-toolbar .toolbar-divider {\n margin: 10px;\n}\n.tek-grid .zd-grid-toolbar .toolbar-title {\n line-height: 22px;\n}\n.tek-grid table thead tr th {\n padding-right: 15px !important;\n}\n.tek-grid table thead tr th.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 4;\n background: #f7f7f7 !important;\n}\n.tek-grid table thead tr th .tek-grid-column-filter-button {\n display: inline-block;\n}\n.tek-grid table thead tr th .tek-grid-column-filter-button .v-icon {\n cursor: pointer;\n font-size: 15px;\n width: 15px;\n padding: 0 3px;\n opacity: 0;\n color: #ccc;\n}\n.tek-grid table thead tr th .tek-grid-column-filter-button.has-filter-data .v-icon {\n opacity: 1;\n color: var(--v-primary-base);\n}\n.tek-grid table thead tr th:hover .tek-grid-column-filter-button .v-icon {\n opacity: 1;\n}\n.tek-grid table tbody tr.footer {\n background: #f6f6f6;\n}\n.tek-grid table tbody tr.footer td.zd-table-cell {\n font-weight: 700;\n}\n.tek-grid table tbody tr.summary {\n background: #eee;\n}\n.tek-grid table tbody tr.summary td.zd-table-cell {\n font-weight: 700;\n font-size: 15px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header {\n font-weight: bold;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .v-icon {\n font-size: 21px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .v-icon.closed {\n transform: rotate(-90deg);\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-container {\n position: sticky !important;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-container .zd-table-group-text {\n vertical-align: middle;\n}\n.tek-grid table tbody tr td.zd-table-cell .zd-table-cell-text {\n display: inline-block;\n vertical-align: middle;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 3;\n background: #f7f7f7 !important;\n}\n.tek-grid table tbody tr.current td.zd-table-cell.zd-table-fixed-column {\n color: var(--v-primary-base) !important;\n}\n.tek-grid table .tek-grid-header-group-identation {\n width: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.tek-grid table .tek-grid-header-group-identation.first-group {\n width: 20px;\n}\n.tek-grid table .tek-grid-body-group-identation {\n width: 8px;\n display: inline-block;\n vertical-align: middle;\n margin-left: 14px;\n height: 100%;\n border-left: solid 1px #ccc;\n}\n.tek-grid table .tek-grid-body-group-identation.first-group {\n width: 10px;\n margin-left: 10px;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer {\n height: 60%;\n border-bottom: solid 1px #ccc;\n position: relative;\n top: -25%;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer-no-line {\n border-left: none;\n}\n.tek-grid .zd-skeleton-table-cell .v-skeleton-loader__table-cell {\n height: auto;\n}\n.tekgrid-actions-dropdown > * {\n display: block;\n}\n.tek-grid-column-filter-menu {\n background: white;\n padding: 12px 12px 0 12px;\n max-height: 300px;\n}\n.filter-helper-values-button {\n height: 24px !important;\n margin-left: 5px;\n margin-top: 0;\n}\n.filter-helper-values-button.with-label {\n margin-top: 20px;\n}\n.filter-helper-values-option {\n cursor: pointer;\n}\n.filter-helper-values-option:hover {\n background-color: rgba(0, 0, 0, 0.03);\n}", map: undefined, media: undefined });
3054
+ inject("data-v-7c368a9c_0", { source: ".tek-grid .zd-grid-toolbar {\n height: 36px;\n}\n.tek-grid .zd-grid-toolbar .zd-grid-toolbar-slot {\n align-items: center;\n}\n.tek-grid .zd-grid-toolbar .toolbar-divider {\n margin: 10px;\n}\n.tek-grid .zd-grid-toolbar .toolbar-title {\n line-height: 22px;\n}\n.tek-grid table thead tr th {\n padding-right: 15px !important;\n}\n.tek-grid table thead tr th.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 4;\n background: #f7f7f7 !important;\n}\n.tek-grid table thead tr th .tek-grid-column-filter-button {\n display: inline-block;\n}\n.tek-grid table thead tr th .tek-grid-column-filter-button .v-icon {\n cursor: pointer;\n font-size: 15px;\n width: 15px;\n padding: 0 3px;\n opacity: 0;\n color: #ccc;\n}\n.tek-grid table thead tr th .tek-grid-column-filter-button.has-filter-data .v-icon {\n opacity: 1;\n color: var(--v-primary-base);\n}\n.tek-grid table thead tr th:hover .tek-grid-column-filter-button .v-icon {\n opacity: 1;\n}\n.tek-grid table tbody tr.footer {\n background: #f6f6f6;\n}\n.tek-grid table tbody tr.footer td.zd-table-cell {\n font-weight: 700;\n}\n.tek-grid table tbody tr.summary {\n background: #eee;\n}\n.tek-grid table tbody tr.summary td.zd-table-cell {\n font-weight: 700;\n font-size: 15px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header {\n font-weight: bold;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .v-icon {\n font-size: 21px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .v-icon.closed {\n transform: rotate(-90deg);\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-container {\n position: sticky !important;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-container .zd-table-group-text {\n vertical-align: middle;\n}\n.tek-grid table tbody tr td.zd-table-cell .zd-table-cell-text {\n display: inline-block;\n vertical-align: middle;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 3;\n background: #f7f7f7 !important;\n}\n.tek-grid table tbody tr.current td.zd-table-cell.zd-table-fixed-column {\n color: var(--v-primary-base) !important;\n}\n.tek-grid table .tek-grid-header-group-identation {\n width: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.tek-grid table .tek-grid-header-group-identation.first-group {\n width: 20px;\n}\n.tek-grid table .tek-grid-body-group-identation {\n width: 8px;\n display: inline-block;\n vertical-align: middle;\n margin-left: 14px;\n height: 100%;\n border-left: solid 1px #ccc;\n}\n.tek-grid table .tek-grid-body-group-identation.first-group {\n width: 10px;\n margin-left: 10px;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer {\n height: 60%;\n border-bottom: solid 1px #ccc;\n position: relative;\n top: -25%;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer-no-line {\n border-left: none;\n}\n.tek-grid .zd-skeleton-table-cell .v-skeleton-loader__table-cell {\n height: auto;\n}\n.tekgrid-actions-dropdown > * {\n display: block;\n}\n.tek-grid-column-filter-menu {\n background: white;\n padding: 12px 12px 0 12px;\n max-height: 300px;\n}\n.filter-helper-values-button {\n height: 24px !important;\n margin-left: 5px;\n margin-top: 0;\n}\n.filter-helper-values-button.with-label {\n margin-top: 20px;\n}\n.filter-helper-values-option {\n cursor: pointer;\n}\n.filter-helper-values-option:hover {\n background-color: rgba(0, 0, 0, 0.03);\n}", map: undefined, media: undefined });
2972
3055
 
2973
3056
  };
2974
3057
  /* scoped */
2975
- const __vue_scope_id__$7 = undefined;
3058
+ const __vue_scope_id__$8 = undefined;
2976
3059
  /* module identifier */
2977
- const __vue_module_identifier__$7 = undefined;
3060
+ const __vue_module_identifier__$8 = undefined;
2978
3061
  /* functional template */
2979
- const __vue_is_functional_template__$7 = false;
3062
+ const __vue_is_functional_template__$8 = false;
2980
3063
  /* style inject SSR */
2981
3064
 
2982
3065
  /* style inject shadow dom */
2983
3066
 
2984
3067
 
2985
3068
 
2986
- const __vue_component__$7 = /*#__PURE__*/normalizeComponent(
2987
- { render: __vue_render__$7, staticRenderFns: __vue_staticRenderFns__$7 },
2988
- __vue_inject_styles__$7,
2989
- __vue_script__$7,
2990
- __vue_scope_id__$7,
2991
- __vue_is_functional_template__$7,
2992
- __vue_module_identifier__$7,
3069
+ const __vue_component__$8 = /*#__PURE__*/normalizeComponent(
3070
+ { render: __vue_render__$8, staticRenderFns: __vue_staticRenderFns__$8 },
3071
+ __vue_inject_styles__$8,
3072
+ __vue_script__$8,
3073
+ __vue_scope_id__$8,
3074
+ __vue_is_functional_template__$8,
3075
+ __vue_module_identifier__$8,
2993
3076
  false,
2994
3077
  createInjector,
2995
3078
  undefined,
@@ -3006,6 +3089,7 @@ let TekGridColumnsOptionsController = class TekGridColumnsOptionsController {
3006
3089
  this.aggregationData = [];
3007
3090
  this.selectedColumnNames = [];
3008
3091
  this.searchValue = '';
3092
+ this.showGroups = true;
3009
3093
  this.updatingSelect = false;
3010
3094
  this.modal = modal;
3011
3095
  }
@@ -3035,6 +3119,7 @@ let TekGridColumnsOptionsController = class TekGridColumnsOptionsController {
3035
3119
  set instance(instance) {
3036
3120
  this.instanceValue = instance;
3037
3121
  this.iterableComponent = instance.iterableComponent;
3122
+ this.showGroups = instance.iterableComponent instanceof TekGrid$2;
3038
3123
  this.aggregationData = instance.getAggregationSelectData();
3039
3124
  this.columnData = {};
3040
3125
  this.iterableComponent.columns.forEach((column) => {
@@ -3623,6 +3708,7 @@ TekGridColumnsOptionsModal.modalDef = {
3623
3708
  {
3624
3709
  name: 'tekGridColumnsOptionsGroupedRow',
3625
3710
  component: 'ZdRow',
3711
+ isVisible: `{{${TekGridColumnsOptionsModal.controllerName}.showGroups}}`,
3626
3712
  children: [
3627
3713
  {
3628
3714
  name: 'tekGridColumnsOptionsGroupedCol',
@@ -3825,6 +3911,7 @@ TekGridColumnsOptionsModal.modalDef = {
3825
3911
  {
3826
3912
  name: 'tekGridColumnsOptionsColumnAggregation',
3827
3913
  component: 'ZdSelect',
3914
+ isVisible: `{{${TekGridColumnsOptionsModal.controllerName}.showGroups}}`,
3828
3915
  autocomplete: false,
3829
3916
  label: 'TEKGRID_COLUMN_AGGREGATION',
3830
3917
  showHelper: false,
@@ -3846,6 +3933,7 @@ TekGridColumnsOptionsModal.modalDef = {
3846
3933
  {
3847
3934
  name: 'tekGridColumnsOptionsColumnGroupOpened',
3848
3935
  component: 'ZdCheckbox',
3936
+ isVisible: `{{${TekGridColumnsOptionsModal.controllerName}.showGroups}}`,
3849
3937
  cssClass: 'zd-form-input-align',
3850
3938
  disabled: `{{${TekGridColumnsOptionsModal.controllerName}.notGroupInSelection}}`,
3851
3939
  label: 'TEKGRID_COLUMN_GROUP_OPENED',
@@ -3940,6 +4028,10 @@ let TekGridColumnsButton = class TekGridColumnsButton extends ZdIterableColumnsB
3940
4028
  this.menuIsOpened = false;
3941
4029
  }
3942
4030
  };
4031
+ __decorate([
4032
+ Prop({ type: [Boolean, String], default: false }),
4033
+ __metadata("design:type", Object)
4034
+ ], TekGridColumnsButton.prototype, "hideGroups", void 0);
3943
4035
  __decorate([
3944
4036
  Watch('menuIsOpened'),
3945
4037
  __metadata("design:type", Function),
@@ -3949,13 +4041,13 @@ __decorate([
3949
4041
  TekGridColumnsButton = __decorate([
3950
4042
  Component
3951
4043
  ], TekGridColumnsButton);
3952
- var script$6 = TekGridColumnsButton;
4044
+ var script$7 = TekGridColumnsButton;
3953
4045
 
3954
4046
  /* script */
3955
- const __vue_script__$6 = script$6;
4047
+ const __vue_script__$7 = script$7;
3956
4048
 
3957
4049
  /* template */
3958
- var __vue_render__$6 = function () {
4050
+ var __vue_render__$7 = function () {
3959
4051
  var _vm = this;
3960
4052
  var _h = _vm.$createElement;
3961
4053
  var _c = _vm._self._c || _h;
@@ -4039,11 +4131,15 @@ var __vue_render__$6 = function () {
4039
4131
  _vm._v(" "),
4040
4132
  _c("th", [_vm._v(_vm._s(_vm.$t("TEKGRID_COLUMN_VISIBLE")))]),
4041
4133
  _vm._v(" "),
4042
- _c("th", [_vm._v(_vm._s(_vm.$t("TEKGRID_COLUMN_GROUPED")))]),
4134
+ !_vm.instance.hideGroups
4135
+ ? _c("th", [_vm._v(_vm._s(_vm.$t("TEKGRID_COLUMN_GROUPED")))])
4136
+ : _vm._e(),
4043
4137
  _vm._v(" "),
4044
- _c("th", [
4045
- _vm._v(_vm._s(_vm.$t("TEKGRID_COLUMN_AGGREGATION"))),
4046
- ]),
4138
+ !_vm.instance.hideGroups
4139
+ ? _c("th", [
4140
+ _vm._v(_vm._s(_vm.$t("TEKGRID_COLUMN_AGGREGATION"))),
4141
+ ])
4142
+ : _vm._e(),
4047
4143
  ]),
4048
4144
  ]),
4049
4145
  _vm._v(" "),
@@ -4090,77 +4186,81 @@ var __vue_render__$6 = function () {
4090
4186
  1
4091
4187
  ),
4092
4188
  _vm._v(" "),
4093
- _c(
4094
- "td",
4095
- [
4096
- column.type !== "action"
4097
- ? _c("zd-checkbox", {
4098
- attrs: {
4099
- name:
4100
- _vm.instance.name +
4101
- "_column_grouped_" +
4102
- column.name,
4103
- value: column.grouped,
4104
- events: {
4105
- change:
4106
- _vm.instance.controller.changeGroupedColumn.bind(
4107
- _vm.instance.controller,
4108
- column
4109
- ),
4110
- },
4111
- },
4112
- })
4113
- : _vm._e(),
4114
- ],
4115
- 1
4116
- ),
4117
- _vm._v(" "),
4118
- _c(
4119
- "td",
4120
- {
4121
- staticClass:
4122
- "tek-grid-columns-button-column-aggregation",
4123
- },
4124
- [
4125
- column.type !== "action"
4126
- ? _c(
4127
- "zd-select",
4128
- _vm._b(
4129
- {
4189
+ !_vm.instance.hideGroups
4190
+ ? _c(
4191
+ "td",
4192
+ [
4193
+ column.type !== "action"
4194
+ ? _c("zd-checkbox", {
4130
4195
  attrs: {
4131
4196
  name:
4132
4197
  _vm.instance.name +
4133
- "_column_aggregation_" +
4198
+ "_column_grouped_" +
4134
4199
  column.name,
4200
+ value: column.grouped,
4201
+ events: {
4202
+ change:
4203
+ _vm.instance.controller.changeGroupedColumn.bind(
4204
+ _vm.instance.controller,
4205
+ column
4206
+ ),
4207
+ },
4135
4208
  },
4136
- },
4137
- "zd-select",
4138
- {
4139
- value: column.aggregation,
4140
- disabled: column.grouped,
4141
- events: {
4142
- change:
4143
- _vm.instance.controller.changeAggregationColumn.bind(
4144
- _vm.instance.controller,
4145
- column
4146
- ),
4147
- },
4148
- dataText: "text",
4149
- dataValue: "value",
4150
- autocomplete: false,
4151
- showHelper: false,
4152
- showLabel: false,
4153
- datasource: {
4154
- data: _vm.instance.getAggregationSelectData(),
4155
- },
4156
- },
4157
- false
4158
- )
4159
- )
4160
- : _vm._e(),
4161
- ],
4162
- 1
4163
- ),
4209
+ })
4210
+ : _vm._e(),
4211
+ ],
4212
+ 1
4213
+ )
4214
+ : _vm._e(),
4215
+ _vm._v(" "),
4216
+ !_vm.instance.hideGroups
4217
+ ? _c(
4218
+ "td",
4219
+ {
4220
+ staticClass:
4221
+ "tek-grid-columns-button-column-aggregation",
4222
+ },
4223
+ [
4224
+ column.type !== "action"
4225
+ ? _c(
4226
+ "zd-select",
4227
+ _vm._b(
4228
+ {
4229
+ attrs: {
4230
+ name:
4231
+ _vm.instance.name +
4232
+ "_column_aggregation_" +
4233
+ column.name,
4234
+ },
4235
+ },
4236
+ "zd-select",
4237
+ {
4238
+ value: column.aggregation,
4239
+ disabled: column.grouped,
4240
+ events: {
4241
+ change:
4242
+ _vm.instance.controller.changeAggregationColumn.bind(
4243
+ _vm.instance.controller,
4244
+ column
4245
+ ),
4246
+ },
4247
+ dataText: "text",
4248
+ dataValue: "value",
4249
+ autocomplete: false,
4250
+ showHelper: false,
4251
+ showLabel: false,
4252
+ datasource: {
4253
+ data: _vm.instance.getAggregationSelectData(),
4254
+ },
4255
+ },
4256
+ false
4257
+ )
4258
+ )
4259
+ : _vm._e(),
4260
+ ],
4261
+ 1
4262
+ )
4263
+ : _vm._e(),
4164
4264
  ]
4165
4265
  )
4166
4266
  }),
@@ -4208,34 +4308,34 @@ var __vue_render__$6 = function () {
4208
4308
  ]
4209
4309
  )
4210
4310
  };
4211
- var __vue_staticRenderFns__$6 = [];
4212
- __vue_render__$6._withStripped = true;
4311
+ var __vue_staticRenderFns__$7 = [];
4312
+ __vue_render__$7._withStripped = true;
4213
4313
 
4214
4314
  /* style */
4215
- const __vue_inject_styles__$6 = function (inject) {
4315
+ const __vue_inject_styles__$7 = function (inject) {
4216
4316
  if (!inject) return
4217
- inject("data-v-0b148da7_0", { source: ".tek-grid-columns-button-options {\n max-height: 250px;\n display: flex;\n flex-direction: column;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper {\n flex: 1;\n overflow-y: auto;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table {\n padding: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);\n background-color: white;\n font-size: 13px;\n border-spacing: 0;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table thead tr th {\n padding: var(--spacing-2) var(--spacing-2) var(--spacing-1) var(--spacing-2);\n white-space: nowrap;\n text-align: left;\n background: white;\n position: sticky;\n top: 0;\n z-index: 10;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table tbody tr td {\n padding: var(--spacing-1) var(--spacing-2);\n white-space: nowrap;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table tbody tr td.tek-grid-columns-button-column-name {\n cursor: -webkit-grab;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table tbody tr td.tek-grid-columns-button-column-name > span {\n padding-right: 4px;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table tbody tr td.tek-grid-columns-button-column-aggregation {\n max-width: 150px;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-footer {\n display: flex;\n background: white;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-footer .zd-button {\n flex: 1;\n}\n.tek-grid-columns-button-sortable-drag {\n background: white;\n}\n.tek-grid-column-option-box {\n margin: var(--spacing-1);\n background: #ccc;\n padding: 2px var(--spacing-1);\n cursor: pointer;\n}\n.tek-grid-column-option-box > * {\n display: inline-block;\n}\n.tek-grid-column-option-box > .zd-icon {\n font-size: 0.9rem;\n margin-left: var(--spacing-2);\n}\n.tek-grid-column-option-box.tek-grid-column-option-grouped-true {\n cursor: default;\n background: #fafafa;\n}\n.tek-grid-column-option-box.tek-grid-column-option-grouped-true > .zd-icon {\n display: none;\n}\n.tek-grid-column-option-box.tek-grid-column-option-selected-true {\n background: var(--v-primary-base);\n color: white;\n}\n.tek-grid-column-option-box.tek-grid-column-option-selected-true > .zd-icon {\n color: white;\n}\n.tek-grid-column-option-container-col {\n position: relative;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-container {\n background: #eee;\n padding: var(--spacing-1);\n max-height: 100px;\n min-height: 42px;\n align-content: center;\n position: relative;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-container .tek-iterable-footer {\n display: none !important;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-container .zd-text.no-data {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n font-size: 0.7rem;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-label {\n font-weight: var(--zd-font-body2-weight);\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-select-all {\n position: absolute;\n top: 0.5rem;\n right: var(--spacing-1);\n color: var(--v-primary-base);\n cursor: pointer;\n font-size: 0.8rem;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-drop-here {\n position: absolute;\n z-index: 100;\n left: 50%;\n transform: translateX(-50%);\n top: 35px;\n}\n.tek-grid-column-option-detail-name {\n color: var(--v-primary-base);\n font-weight: var(--zd-font-body2-weight);\n font-size: 1.1rem;\n margin-top: var(--spacing-6);\n}", map: undefined, media: undefined });
4317
+ inject("data-v-6c9f5d6a_0", { source: ".tek-grid-columns-button-options {\n max-height: 250px;\n display: flex;\n flex-direction: column;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper {\n flex: 1;\n overflow-y: auto;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table {\n padding: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);\n background-color: white;\n font-size: 13px;\n border-spacing: 0;\n width: 100%;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table thead tr th {\n padding: var(--spacing-2) var(--spacing-2) var(--spacing-1) var(--spacing-2);\n white-space: nowrap;\n text-align: left;\n background: white;\n position: sticky;\n top: 0;\n z-index: 10;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table tbody tr td {\n padding: var(--spacing-1) var(--spacing-2);\n white-space: nowrap;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table tbody tr td.tek-grid-columns-button-column-name {\n cursor: -webkit-grab;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table tbody tr td.tek-grid-columns-button-column-name > span {\n padding-right: 4px;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table tbody tr td.tek-grid-columns-button-column-aggregation {\n max-width: 150px;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-footer {\n display: flex;\n background: white;\n}\n.tek-grid-columns-button-options .tek-grid-columns-button-table-footer .zd-button {\n flex: 1;\n}\n.tek-grid-columns-button-sortable-drag {\n background: white;\n}\n.tek-grid-column-option-box {\n margin: var(--spacing-1);\n background: #ccc;\n padding: 2px var(--spacing-1);\n cursor: pointer;\n}\n.tek-grid-column-option-box > * {\n display: inline-block;\n}\n.tek-grid-column-option-box > .zd-icon {\n font-size: 0.9rem;\n margin-left: var(--spacing-2);\n}\n.tek-grid-column-option-box.tek-grid-column-option-grouped-true {\n cursor: default;\n background: #fafafa;\n}\n.tek-grid-column-option-box.tek-grid-column-option-grouped-true > .zd-icon {\n display: none;\n}\n.tek-grid-column-option-box.tek-grid-column-option-selected-true {\n background: var(--v-primary-base);\n color: white;\n}\n.tek-grid-column-option-box.tek-grid-column-option-selected-true > .zd-icon {\n color: white;\n}\n.tek-grid-column-option-container-col {\n position: relative;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-container {\n background: #eee;\n padding: var(--spacing-1);\n max-height: 100px;\n min-height: 42px;\n align-content: center;\n position: relative;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-container .tek-iterable-footer {\n display: none !important;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-container .zd-text.no-data {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n font-size: 0.7rem;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-label {\n font-weight: var(--zd-font-body2-weight);\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-select-all {\n position: absolute;\n top: 0.5rem;\n right: var(--spacing-1);\n color: var(--v-primary-base);\n cursor: pointer;\n font-size: 0.8rem;\n}\n.tek-grid-column-option-container-col .tek-grid-column-option-drop-here {\n position: absolute;\n z-index: 100;\n left: 50%;\n transform: translateX(-50%);\n top: 35px;\n}\n.tek-grid-column-option-detail-name {\n color: var(--v-primary-base);\n font-weight: var(--zd-font-body2-weight);\n font-size: 1.1rem;\n margin-top: var(--spacing-6);\n}", map: undefined, media: undefined });
4218
4318
 
4219
4319
  };
4220
4320
  /* scoped */
4221
- const __vue_scope_id__$6 = undefined;
4321
+ const __vue_scope_id__$7 = undefined;
4222
4322
  /* module identifier */
4223
- const __vue_module_identifier__$6 = undefined;
4323
+ const __vue_module_identifier__$7 = undefined;
4224
4324
  /* functional template */
4225
- const __vue_is_functional_template__$6 = false;
4325
+ const __vue_is_functional_template__$7 = false;
4226
4326
  /* style inject SSR */
4227
4327
 
4228
4328
  /* style inject shadow dom */
4229
4329
 
4230
4330
 
4231
4331
 
4232
- const __vue_component__$6 = /*#__PURE__*/normalizeComponent(
4233
- { render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },
4234
- __vue_inject_styles__$6,
4235
- __vue_script__$6,
4236
- __vue_scope_id__$6,
4237
- __vue_is_functional_template__$6,
4238
- __vue_module_identifier__$6,
4332
+ const __vue_component__$7 = /*#__PURE__*/normalizeComponent(
4333
+ { render: __vue_render__$7, staticRenderFns: __vue_staticRenderFns__$7 },
4334
+ __vue_inject_styles__$7,
4335
+ __vue_script__$7,
4336
+ __vue_scope_id__$7,
4337
+ __vue_is_functional_template__$7,
4338
+ __vue_module_identifier__$7,
4239
4339
  false,
4240
4340
  createInjector,
4241
4341
  undefined,
@@ -4430,13 +4530,13 @@ let TekGridLayoutOptions = class TekGridLayoutOptions extends ZdComponentRender
4430
4530
  TekGridLayoutOptions = __decorate([
4431
4531
  Component
4432
4532
  ], TekGridLayoutOptions);
4433
- var script$5 = TekGridLayoutOptions;
4533
+ var script$6 = TekGridLayoutOptions;
4434
4534
 
4435
4535
  /* script */
4436
- const __vue_script__$5 = script$5;
4536
+ const __vue_script__$6 = script$6;
4437
4537
 
4438
4538
  /* template */
4439
- var __vue_render__$5 = function () {
4539
+ var __vue_render__$6 = function () {
4440
4540
  var _vm = this;
4441
4541
  var _h = _vm.$createElement;
4442
4542
  var _c = _vm._self._c || _h;
@@ -4675,34 +4775,34 @@ var __vue_render__$5 = function () {
4675
4775
  1
4676
4776
  )
4677
4777
  };
4678
- var __vue_staticRenderFns__$5 = [];
4679
- __vue_render__$5._withStripped = true;
4778
+ var __vue_staticRenderFns__$6 = [];
4779
+ __vue_render__$6._withStripped = true;
4680
4780
 
4681
4781
  /* style */
4682
- const __vue_inject_styles__$5 = function (inject) {
4782
+ const __vue_inject_styles__$6 = function (inject) {
4683
4783
  if (!inject) return
4684
4784
  inject("data-v-29ce02fa_0", { source: ".tek-grid-layout-options-badge .v-badge__badge {\n font-size: var(--zd-font-caption-size);\n font-weight: var(--zd-font-caption-weight);\n line-height: 14px;\n pointer-events: none;\n background-color: var(--zd-badge-background-color) !important;\n}\n.tek-grid-layout-options-badge .v-badge__badge span {\n color: var(--zd-badge-text-color) !important;\n}\n.tek-grid-layout-item {\n font-size: 13px;\n cursor: pointer;\n min-height: 30px;\n}\n.tek-grid-layout-item.selected {\n font-weight: 700;\n}\n.tek-grid-layout-item:hover {\n background: #eee;\n}\n.tek-grid-layout-item:hover .tek-grid-layout-item-buttons {\n display: inherit;\n}\n.tek-grid-layout-item .tek-grid-layout-item-buttons {\n display: none;\n position: absolute;\n right: 5px;\n}\n.tek-grid-layout-item .tek-grid-layout-item-buttons .v-icon {\n font-size: 12px;\n}", map: undefined, media: undefined });
4685
4785
 
4686
4786
  };
4687
4787
  /* scoped */
4688
- const __vue_scope_id__$5 = undefined;
4788
+ const __vue_scope_id__$6 = undefined;
4689
4789
  /* module identifier */
4690
- const __vue_module_identifier__$5 = undefined;
4790
+ const __vue_module_identifier__$6 = undefined;
4691
4791
  /* functional template */
4692
- const __vue_is_functional_template__$5 = false;
4792
+ const __vue_is_functional_template__$6 = false;
4693
4793
  /* style inject SSR */
4694
4794
 
4695
4795
  /* style inject shadow dom */
4696
4796
 
4697
4797
 
4698
4798
 
4699
- const __vue_component__$5 = /*#__PURE__*/normalizeComponent(
4700
- { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },
4701
- __vue_inject_styles__$5,
4702
- __vue_script__$5,
4703
- __vue_scope_id__$5,
4704
- __vue_is_functional_template__$5,
4705
- __vue_module_identifier__$5,
4799
+ const __vue_component__$6 = /*#__PURE__*/normalizeComponent(
4800
+ { render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },
4801
+ __vue_inject_styles__$6,
4802
+ __vue_script__$6,
4803
+ __vue_scope_id__$6,
4804
+ __vue_is_functional_template__$6,
4805
+ __vue_module_identifier__$6,
4706
4806
  false,
4707
4807
  createInjector,
4708
4808
  undefined,
@@ -4729,13 +4829,13 @@ __decorate([
4729
4829
  TekImage = __decorate([
4730
4830
  Component
4731
4831
  ], TekImage);
4732
- var script$4 = TekImage;
4832
+ var script$5 = TekImage;
4733
4833
 
4734
4834
  /* script */
4735
- const __vue_script__$4 = script$4;
4835
+ const __vue_script__$5 = script$5;
4736
4836
 
4737
4837
  /* template */
4738
- var __vue_render__$4 = function () {
4838
+ var __vue_render__$5 = function () {
4739
4839
  var _vm = this;
4740
4840
  var _h = _vm.$createElement;
4741
4841
  var _c = _vm._self._c || _h;
@@ -4746,17 +4846,17 @@ var __vue_render__$4 = function () {
4746
4846
  1
4747
4847
  )
4748
4848
  };
4749
- var __vue_staticRenderFns__$4 = [];
4750
- __vue_render__$4._withStripped = true;
4849
+ var __vue_staticRenderFns__$5 = [];
4850
+ __vue_render__$5._withStripped = true;
4751
4851
 
4752
4852
  /* style */
4753
- const __vue_inject_styles__$4 = undefined;
4853
+ const __vue_inject_styles__$5 = undefined;
4754
4854
  /* scoped */
4755
- const __vue_scope_id__$4 = undefined;
4855
+ const __vue_scope_id__$5 = undefined;
4756
4856
  /* module identifier */
4757
- const __vue_module_identifier__$4 = undefined;
4857
+ const __vue_module_identifier__$5 = undefined;
4758
4858
  /* functional template */
4759
- const __vue_is_functional_template__$4 = false;
4859
+ const __vue_is_functional_template__$5 = false;
4760
4860
  /* style inject */
4761
4861
 
4762
4862
  /* style inject SSR */
@@ -4765,13 +4865,13 @@ __vue_render__$4._withStripped = true;
4765
4865
 
4766
4866
 
4767
4867
 
4768
- const __vue_component__$4 = /*#__PURE__*/normalizeComponent(
4769
- { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
4770
- __vue_inject_styles__$4,
4771
- __vue_script__$4,
4772
- __vue_scope_id__$4,
4773
- __vue_is_functional_template__$4,
4774
- __vue_module_identifier__$4,
4868
+ const __vue_component__$5 = /*#__PURE__*/normalizeComponent(
4869
+ { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },
4870
+ __vue_inject_styles__$5,
4871
+ __vue_script__$5,
4872
+ __vue_scope_id__$5,
4873
+ __vue_is_functional_template__$5,
4874
+ __vue_module_identifier__$5,
4775
4875
  false,
4776
4876
  undefined,
4777
4877
  undefined,
@@ -4796,13 +4896,13 @@ __decorate([
4796
4896
  TekIterableCarousel = __decorate([
4797
4897
  Component
4798
4898
  ], TekIterableCarousel);
4799
- var script$3 = TekIterableCarousel;
4899
+ var script$4 = TekIterableCarousel;
4800
4900
 
4801
4901
  /* script */
4802
- const __vue_script__$3 = script$3;
4902
+ const __vue_script__$4 = script$4;
4803
4903
 
4804
4904
  /* template */
4805
- var __vue_render__$3 = function () {
4905
+ var __vue_render__$4 = function () {
4806
4906
  var _vm = this;
4807
4907
  var _h = _vm.$createElement;
4808
4908
  var _c = _vm._self._c || _h;
@@ -4876,17 +4976,17 @@ var __vue_render__$3 = function () {
4876
4976
  1
4877
4977
  )
4878
4978
  };
4879
- var __vue_staticRenderFns__$3 = [];
4880
- __vue_render__$3._withStripped = true;
4979
+ var __vue_staticRenderFns__$4 = [];
4980
+ __vue_render__$4._withStripped = true;
4881
4981
 
4882
4982
  /* style */
4883
- const __vue_inject_styles__$3 = undefined;
4983
+ const __vue_inject_styles__$4 = undefined;
4884
4984
  /* scoped */
4885
- const __vue_scope_id__$3 = undefined;
4985
+ const __vue_scope_id__$4 = undefined;
4886
4986
  /* module identifier */
4887
- const __vue_module_identifier__$3 = undefined;
4987
+ const __vue_module_identifier__$4 = undefined;
4888
4988
  /* functional template */
4889
- const __vue_is_functional_template__$3 = false;
4989
+ const __vue_is_functional_template__$4 = false;
4890
4990
  /* style inject */
4891
4991
 
4892
4992
  /* style inject SSR */
@@ -4895,13 +4995,13 @@ __vue_render__$3._withStripped = true;
4895
4995
 
4896
4996
 
4897
4997
 
4898
- const __vue_component__$3 = /*#__PURE__*/normalizeComponent(
4899
- { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
4900
- __vue_inject_styles__$3,
4901
- __vue_script__$3,
4902
- __vue_scope_id__$3,
4903
- __vue_is_functional_template__$3,
4904
- __vue_module_identifier__$3,
4998
+ const __vue_component__$4 = /*#__PURE__*/normalizeComponent(
4999
+ { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
5000
+ __vue_inject_styles__$4,
5001
+ __vue_script__$4,
5002
+ __vue_scope_id__$4,
5003
+ __vue_is_functional_template__$4,
5004
+ __vue_module_identifier__$4,
4905
5005
  false,
4906
5006
  undefined,
4907
5007
  undefined,
@@ -4968,13 +5068,13 @@ __decorate([
4968
5068
  TekIterableComponentRender = __decorate([
4969
5069
  Component
4970
5070
  ], TekIterableComponentRender);
4971
- var script$2 = TekIterableComponentRender;
5071
+ var script$3 = TekIterableComponentRender;
4972
5072
 
4973
5073
  /* script */
4974
- const __vue_script__$2 = script$2;
5074
+ const __vue_script__$3 = script$3;
4975
5075
 
4976
5076
  /* template */
4977
- var __vue_render__$2 = function () {
5077
+ var __vue_render__$3 = function () {
4978
5078
  var _vm = this;
4979
5079
  var _h = _vm.$createElement;
4980
5080
  var _c = _vm._self._c || _h;
@@ -5150,34 +5250,34 @@ var __vue_render__$2 = function () {
5150
5250
  )
5151
5251
  : _vm._e()
5152
5252
  };
5153
- var __vue_staticRenderFns__$2 = [];
5154
- __vue_render__$2._withStripped = true;
5253
+ var __vue_staticRenderFns__$3 = [];
5254
+ __vue_render__$3._withStripped = true;
5155
5255
 
5156
5256
  /* style */
5157
- const __vue_inject_styles__$2 = function (inject) {
5257
+ const __vue_inject_styles__$3 = function (inject) {
5158
5258
  if (!inject) return
5159
5259
  inject("data-v-02c0169b_0", { source: ".tek-iterable-component-render[data-v-02c0169b] {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n -webkit-box-flex: 1;\n flex: 1 1 auto;\n}\n.tek-iterable-component-render .error--text[data-v-02c0169b],\n.tek-iterable-component-render .no--data[data-v-02c0169b] {\n text-align: center;\n width: 100%;\n font-size: 14px;\n}\n.tek-iterable-component-render .no--data[data-v-02c0169b] {\n color: rgba(0, 0, 0, 0.38);\n}\n.tek-iterable-component-render .tek-iterable-toolbar[data-v-02c0169b] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 16px;\n align-items: center;\n width: 100%;\n}\n.tek-iterable-component-render .tek-iterable-footer[data-v-02c0169b] {\n padding: 5px 0;\n display: flex;\n width: 100%;\n}", map: undefined, media: undefined });
5160
5260
 
5161
5261
  };
5162
5262
  /* scoped */
5163
- const __vue_scope_id__$2 = "data-v-02c0169b";
5263
+ const __vue_scope_id__$3 = "data-v-02c0169b";
5164
5264
  /* module identifier */
5165
- const __vue_module_identifier__$2 = undefined;
5265
+ const __vue_module_identifier__$3 = undefined;
5166
5266
  /* functional template */
5167
- const __vue_is_functional_template__$2 = false;
5267
+ const __vue_is_functional_template__$3 = false;
5168
5268
  /* style inject SSR */
5169
5269
 
5170
5270
  /* style inject shadow dom */
5171
5271
 
5172
5272
 
5173
5273
 
5174
- const __vue_component__$2 = /*#__PURE__*/normalizeComponent(
5175
- { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
5176
- __vue_inject_styles__$2,
5177
- __vue_script__$2,
5178
- __vue_scope_id__$2,
5179
- __vue_is_functional_template__$2,
5180
- __vue_module_identifier__$2,
5274
+ const __vue_component__$3 = /*#__PURE__*/normalizeComponent(
5275
+ { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
5276
+ __vue_inject_styles__$3,
5277
+ __vue_script__$3,
5278
+ __vue_scope_id__$3,
5279
+ __vue_is_functional_template__$3,
5280
+ __vue_module_identifier__$3,
5181
5281
  false,
5182
5282
  createInjector,
5183
5283
  undefined,
@@ -5206,13 +5306,13 @@ __decorate([
5206
5306
  TekNotifications = __decorate([
5207
5307
  Component
5208
5308
  ], TekNotifications);
5209
- var script$1 = TekNotifications;
5309
+ var script$2 = TekNotifications;
5210
5310
 
5211
5311
  /* script */
5212
- const __vue_script__$1 = script$1;
5312
+ const __vue_script__$2 = script$2;
5213
5313
 
5214
5314
  /* template */
5215
- var __vue_render__$1 = function () {
5315
+ var __vue_render__$2 = function () {
5216
5316
  var _vm = this;
5217
5317
  var _h = _vm.$createElement;
5218
5318
  var _c = _vm._self._c || _h;
@@ -5289,34 +5389,34 @@ var __vue_render__$1 = function () {
5289
5389
  1
5290
5390
  )
5291
5391
  };
5292
- var __vue_staticRenderFns__$1 = [];
5293
- __vue_render__$1._withStripped = true;
5392
+ var __vue_staticRenderFns__$2 = [];
5393
+ __vue_render__$2._withStripped = true;
5294
5394
 
5295
5395
  /* style */
5296
- const __vue_inject_styles__$1 = function (inject) {
5396
+ const __vue_inject_styles__$2 = function (inject) {
5297
5397
  if (!inject) return
5298
5398
  inject("data-v-552c53cd_0", { source: ".tek-notifications .tek-card-title .mark-read-text {\n font-size: var(--zd-font-body1-size);\n font-weight: var(--zd-font-body1-weight);\n display: inline-block;\n}\n.tek-notifications .tek-card-title .mark-read-text p {\n margin-bottom: 0px;\n}\n.tek-notifications .tek-card-title hr.v-divider {\n margin-bottom: 0px;\n}\n.tek-notifications ul.tek-notifications-list {\n list-style: none;\n padding: 0;\n}\n.tek-notifications ul.tek-notifications-list li {\n border-bottom: solid 1px rgba(0, 0, 0, 0.12);\n color: #667080;\n font-size: var(--zd-font-body1-size);\n font-weight: var(--zd-font-body1-weight);\n line-height: 14px;\n padding: 10px 20px 10px 0;\n position: relative;\n}\n.tek-notifications ul.tek-notifications-list li .tek-notification-subject {\n font-weight: 700;\n}\n.tek-notifications ul.tek-notifications-list li .tek-notification-read-mark {\n width: 10px;\n height: 10px;\n background-color: var(--v-primary-base);\n border-radius: 50%;\n position: absolute;\n right: 2px;\n top: 12px;\n}\n.tek-notifications ul.tek-notifications-list li:last-child {\n border-bottom: none;\n}\n.tek-notifications .tek-notification-show-all {\n text-decoration: none;\n text-align: center;\n padding-top: 10px;\n font-weight: 700;\n display: block;\n border-top: solid 1px rgba(0, 0, 0, 0.12);\n}", map: undefined, media: undefined });
5299
5399
 
5300
5400
  };
5301
5401
  /* scoped */
5302
- const __vue_scope_id__$1 = undefined;
5402
+ const __vue_scope_id__$2 = undefined;
5303
5403
  /* module identifier */
5304
- const __vue_module_identifier__$1 = undefined;
5404
+ const __vue_module_identifier__$2 = undefined;
5305
5405
  /* functional template */
5306
- const __vue_is_functional_template__$1 = false;
5406
+ const __vue_is_functional_template__$2 = false;
5307
5407
  /* style inject SSR */
5308
5408
 
5309
5409
  /* style inject shadow dom */
5310
5410
 
5311
5411
 
5312
5412
 
5313
- const __vue_component__$1 = /*#__PURE__*/normalizeComponent(
5314
- { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
5315
- __vue_inject_styles__$1,
5316
- __vue_script__$1,
5317
- __vue_scope_id__$1,
5318
- __vue_is_functional_template__$1,
5319
- __vue_module_identifier__$1,
5413
+ const __vue_component__$2 = /*#__PURE__*/normalizeComponent(
5414
+ { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
5415
+ __vue_inject_styles__$2,
5416
+ __vue_script__$2,
5417
+ __vue_scope_id__$2,
5418
+ __vue_is_functional_template__$2,
5419
+ __vue_module_identifier__$2,
5320
5420
  false,
5321
5421
  createInjector,
5322
5422
  undefined,
@@ -5382,13 +5482,13 @@ __decorate([
5382
5482
  TekProductCard = __decorate([
5383
5483
  Component
5384
5484
  ], TekProductCard);
5385
- var script = TekProductCard;
5485
+ var script$1 = TekProductCard;
5386
5486
 
5387
5487
  /* script */
5388
- const __vue_script__ = script;
5488
+ const __vue_script__$1 = script$1;
5389
5489
 
5390
5490
  /* template */
5391
- var __vue_render__ = function () {
5491
+ var __vue_render__$1 = function () {
5392
5492
  var _vm = this;
5393
5493
  var _h = _vm.$createElement;
5394
5494
  var _c = _vm._self._c || _h;
@@ -5508,14 +5608,1686 @@ var __vue_render__ = function () {
5508
5608
  )
5509
5609
  : _vm._e()
5510
5610
  };
5511
- var __vue_staticRenderFns__ = [];
5512
- __vue_render__._withStripped = true;
5611
+ var __vue_staticRenderFns__$1 = [];
5612
+ __vue_render__$1._withStripped = true;
5513
5613
 
5514
5614
  /* style */
5515
- const __vue_inject_styles__ = function (inject) {
5615
+ const __vue_inject_styles__$1 = function (inject) {
5516
5616
  if (!inject) return
5517
5617
  inject("data-v-541eabd6_0", { source: ".tek-product-card * {\n text-decoration: none;\n}\n.tek-product-card .v-card {\n padding: 0%;\n}\n.tek-product-card .v-card .tek-image-content {\n text-align: center;\n}\n.tek-product-card .v-card .tek-product-card-image-container {\n position: relative;\n}\n.tek-product-card .v-card .tek-product-card-info {\n display: flex;\n flex-direction: column;\n padding: 5px 10px 10px 10px;\n color: var(--zd-font-color);\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 16px;\n line-height: 19px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-supplier {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n color: #c4c4c4;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-top: 10px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-brand {\n font-size: var(--zd-font-body2-size);\n line-height: 14px;\n}\n.tek-product-card .v-card .tek-product-card-info .tek-product-card-footer .tek-product-card-price {\n font-weight: var(--zd-font-body4-weight);\n font-size: var(--zd-font-body4-size);\n line-height: 16px;\n}\n.tek-product-card--link .v-card {\n cursor: pointer;\n}", map: undefined, media: undefined });
5518
5618
 
5619
+ };
5620
+ /* scoped */
5621
+ const __vue_scope_id__$1 = undefined;
5622
+ /* module identifier */
5623
+ const __vue_module_identifier__$1 = undefined;
5624
+ /* functional template */
5625
+ const __vue_is_functional_template__$1 = false;
5626
+ /* style inject SSR */
5627
+
5628
+ /* style inject shadow dom */
5629
+
5630
+
5631
+
5632
+ const __vue_component__$1 = /*#__PURE__*/normalizeComponent(
5633
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
5634
+ __vue_inject_styles__$1,
5635
+ __vue_script__$1,
5636
+ __vue_scope_id__$1,
5637
+ __vue_is_functional_template__$1,
5638
+ __vue_module_identifier__$1,
5639
+ false,
5640
+ createInjector,
5641
+ undefined,
5642
+ undefined
5643
+ );
5644
+
5645
+ // eslint-disable-next-line prefer-destructuring
5646
+ const ZdTreeGridEditable = components$1.ZdTreeGridEditable;
5647
+ /**
5648
+ * TekGrid component
5649
+ */
5650
+ let TekGrid = class TekGrid extends ZdTreeGridEditable {
5651
+ constructor() {
5652
+ super(...arguments);
5653
+ this.instanceType = TekTreeGrid;
5654
+ this.debouncedDatasourceGet = debounce((instance) => {
5655
+ if (instance.events.beforeApplyFilter) {
5656
+ instance.events.beforeApplyFilter({ component: instance });
5657
+ }
5658
+ const { datasource } = instance;
5659
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
5660
+ datasource.updateDynamicFilter();
5661
+ }
5662
+ else {
5663
+ datasource.get();
5664
+ }
5665
+ }, 500);
5666
+ this.operationList = '';
5667
+ this.defaultOperation = '';
5668
+ this.defaultRelation = '';
5669
+ this.lastFilter = '';
5670
+ this.tableHeader = null;
5671
+ this.tableBody = null;
5672
+ }
5673
+ mounted() {
5674
+ this.originalChangeLayout = this.instance.changeLayout;
5675
+ this.instance.changeLayout = this.onChangeLayout;
5676
+ this.updateFixedColumns();
5677
+ }
5678
+ minimumColumnWidth(column) {
5679
+ let minWidth = column && column.sortable ? 50 : 34;
5680
+ if (this.instance.columnFilterButton && column && column.filterable) {
5681
+ minWidth += 15;
5682
+ }
5683
+ return minWidth;
5684
+ }
5685
+ onChangeLayout(event, element) {
5686
+ if (this.originalChangeLayout) {
5687
+ this.originalChangeLayout.call(this.instance, event, element);
5688
+ }
5689
+ if (this.instance.showLayoutOptions) {
5690
+ try {
5691
+ const layoutOptions = Metadata.getInstance(`${this.instance.name}_layout_options`);
5692
+ layoutOptions.layoutEdited = true;
5693
+ }
5694
+ catch (_a) {
5695
+ // do nothing
5696
+ }
5697
+ }
5698
+ this.updateFixedColumns();
5699
+ }
5700
+ getFilterActivatorEvents(on, column) {
5701
+ const events = {};
5702
+ Object.keys(on).forEach((eventName) => {
5703
+ events[eventName] = (event) => {
5704
+ this.defaultOperation = 'CONTAINS';
5705
+ this.defaultRelation = 'AND';
5706
+ this.operationList = this.getColumnFilterOptions(column).map((item) => item.operation).join(';');
5707
+ on[eventName](event);
5708
+ };
5709
+ });
5710
+ return events;
5711
+ }
5712
+ getFilterItemChange(prop, column, index) {
5713
+ return this.filterItemChange.bind(this, prop, column, index);
5714
+ }
5715
+ getFilterValueChange(column, index) {
5716
+ return this.filterValueChange.bind(this, column, index);
5717
+ }
5718
+ getComponentType(index) {
5719
+ this.operationList.split(';');
5720
+ const operationListArray = this.operationList.split(';');
5721
+ return ['IN', 'NOT_IN', 'BETWEEN'].includes(operationListArray[index]) ? 'ZdTextInput' : '';
5722
+ }
5723
+ getComponentHint(index) {
5724
+ const operationListArray = this.operationList.split(';');
5725
+ return ['IN', 'NOT_IN', 'BETWEEN'].includes(operationListArray[index]) ? 'TEKGRID_MULTIPLE_VALUE_HINT' : '';
5726
+ }
5727
+ filterItemChange(prop, column, index, { component, event, element }) {
5728
+ const { name } = component;
5729
+ const valueInputName = name.replace(`-filter-${prop}-`, '-filter-value-');
5730
+ const valueInput = Metadata.getInstance(valueInputName);
5731
+ const operationListArray = this.operationList.split(';');
5732
+ if (prop === 'operation' && operationListArray[index] !== component.value) {
5733
+ operationListArray[index] = component.value;
5734
+ this.operationList = operationListArray.join(';');
5735
+ }
5736
+ try {
5737
+ valueInput.setFocus();
5738
+ }
5739
+ catch (_a) {
5740
+ // do nothing
5741
+ }
5742
+ const { datasource } = this.instance;
5743
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
5744
+ if (datasource.dynamicFilter[column.name] && datasource.dynamicFilter[column.name][index]) {
5745
+ this.lastFilter = JSON.stringify(datasource.dynamicFilter);
5746
+ datasource.dynamicFilter[column.name][index][prop] = component.value;
5747
+ if (this.lastFilter !== JSON.stringify(datasource.dynamicFilter)) {
5748
+ this.debouncedDatasourceGet(this.instance);
5749
+ this.onChangeLayout(event, element);
5750
+ }
5751
+ }
5752
+ }
5753
+ }
5754
+ filterValueChange(column, index, { component, event, element }) {
5755
+ const { value } = component;
5756
+ const { datasource } = this.instance;
5757
+ if (!(element === null || element === void 0 ? void 0 : element.offsetParent))
5758
+ return;
5759
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
5760
+ this.lastFilter = JSON.stringify(datasource.dynamicFilter);
5761
+ if (value) {
5762
+ if (!datasource.dynamicFilter[column.name]) {
5763
+ datasource.dynamicFilter[column.name] = [];
5764
+ }
5765
+ if (!datasource.dynamicFilter[column.name][index]) {
5766
+ const { name } = component;
5767
+ let relation;
5768
+ if (index > 0) {
5769
+ const relationSelectName = name.replace('-filter-value-', '-filter-relation-');
5770
+ const relationSelect = Metadata.getInstance(relationSelectName);
5771
+ relation = relationSelect.value;
5772
+ }
5773
+ else {
5774
+ relation = 'AND';
5775
+ }
5776
+ const operationSelectName = name.replace('-filter-value-', '-filter-operation-');
5777
+ const operationSelect = Metadata.getInstance(operationSelectName);
5778
+ const operation = operationSelect.value;
5779
+ datasource.dynamicFilter[column.name].push({
5780
+ relation,
5781
+ operation,
5782
+ value,
5783
+ });
5784
+ }
5785
+ else {
5786
+ datasource.dynamicFilter[column.name][index].value = value;
5787
+ }
5788
+ }
5789
+ else if (datasource.dynamicFilter[column.name] && datasource.dynamicFilter[column.name][index]) {
5790
+ this.defaultOperation = datasource.dynamicFilter[column.name][index].operation;
5791
+ this.defaultRelation = datasource.dynamicFilter[column.name][index].relation;
5792
+ datasource.dynamicFilter[column.name].splice(index, 1);
5793
+ if (datasource.dynamicFilter[column.name].length === 1) {
5794
+ datasource.dynamicFilter[column.name][0].relation = 'AND';
5795
+ }
5796
+ if (!datasource.dynamicFilter[column.name].length) {
5797
+ delete datasource.dynamicFilter[column.name];
5798
+ }
5799
+ }
5800
+ if (this.lastFilter !== JSON.stringify(datasource.dynamicFilter)) {
5801
+ this.debouncedDatasourceGet(this.instance);
5802
+ this.onChangeLayout(event, element);
5803
+ this.clearHelperValues(column);
5804
+ }
5805
+ }
5806
+ else {
5807
+ this.lastFilter = JSON.stringify(this.instance.datasource.filter);
5808
+ if (value) {
5809
+ this.instance.datasource.addFilter(column.name, value);
5810
+ }
5811
+ else {
5812
+ this.instance.datasource.removeFilter(column.name);
5813
+ }
5814
+ if (this.lastFilter !== JSON.stringify(this.instance.datasource.filter)) {
5815
+ this.debouncedDatasourceGet(this.instance);
5816
+ this.onChangeLayout(event, element);
5817
+ this.clearHelperValues(column);
5818
+ }
5819
+ }
5820
+ }
5821
+ clearHelperValues(column) {
5822
+ if (!Array.isArray(column.filterProps)) {
5823
+ column.filterProps.helperValue = '';
5824
+ }
5825
+ else {
5826
+ column.filterProps.forEach((prop) => {
5827
+ prop.helperValue = '';
5828
+ });
5829
+ }
5830
+ }
5831
+ getColumnFilterOptions(column) {
5832
+ const filterOptions = [];
5833
+ const { datasource } = this.instance;
5834
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
5835
+ const dynamicFilter = datasource.dynamicFilter[column.name];
5836
+ if (dynamicFilter && dynamicFilter.length > 0) {
5837
+ dynamicFilter.forEach((item) => {
5838
+ filterOptions.push(item);
5839
+ });
5840
+ }
5841
+ filterOptions.push({
5842
+ operation: this.defaultOperation,
5843
+ relation: this.defaultRelation,
5844
+ value: '',
5845
+ });
5846
+ }
5847
+ else {
5848
+ const option = {
5849
+ operation: undefined,
5850
+ relation: undefined,
5851
+ value: this.instance.datasource.filter[column.name] || '',
5852
+ };
5853
+ filterOptions.push(option);
5854
+ }
5855
+ return filterOptions;
5856
+ }
5857
+ isCurrentRow(row) {
5858
+ const { uniqueKey, currentRow } = this.instance.datasource;
5859
+ return !!((row[uniqueKey] && row[uniqueKey] === currentRow[uniqueKey]));
5860
+ }
5861
+ getVisibleData() {
5862
+ this.scrollData.visibleData = this.instance.datasource.data;
5863
+ return this.scrollData.visibleData;
5864
+ }
5865
+ getData() {
5866
+ if (!this.instance.virtualScroll || !this.scrollData.initialized) {
5867
+ return this.instance.treeDataStructure.searchHasNoData ? [] : this.instance.treeDataStructure.treeData;
5868
+ }
5869
+ return this.renderedData;
5870
+ }
5871
+ rowClick(row, event) {
5872
+ this.instance.rowClick(row, event, this.$el);
5873
+ }
5874
+ orderHeaders(headers) {
5875
+ return headers.sort((a, b) => {
5876
+ if (a.fixed === b.fixed)
5877
+ return 0;
5878
+ if (!a.fixed && b.fixed)
5879
+ return 1;
5880
+ return -1;
5881
+ }).filter((item) => item instanceof TekGridColumn);
5882
+ }
5883
+ updateFixedColumns() {
5884
+ if (this.instance.columns.filter((column) => column.fixed).length === 0)
5885
+ return;
5886
+ if (!this.tableHeader) {
5887
+ this.tableHeader = this.$el.querySelector('table thead tr');
5888
+ this.tableBody = this.$el.querySelector('table tbody');
5889
+ if (!this.tableHeader || !this.tableBody)
5890
+ return;
5891
+ }
5892
+ const headerColumns = Array.from(this.tableHeader.querySelectorAll('th'));
5893
+ let left = this.instance.selectable ? 40 : 0;
5894
+ headerColumns.forEach((column) => {
5895
+ const name = column.getAttribute('column-name');
5896
+ if (name && column.classList.contains('zd-table-fixed-column')) {
5897
+ column.style.left = `${left}px`;
5898
+ left += column.clientWidth;
5899
+ }
5900
+ });
5901
+ }
5902
+ getFixedLeft(column) {
5903
+ if (!column.fixed)
5904
+ return 'unset';
5905
+ const headerElement = this.$refs[`column-${column.name}`];
5906
+ if (!headerElement)
5907
+ return 'unset';
5908
+ return headerElement[0].style.left;
5909
+ }
5910
+ };
5911
+ __decorate([
5912
+ Prop({ type: [String], default: '' }),
5913
+ __metadata("design:type", String)
5914
+ ], TekGrid.prototype, "title", void 0);
5915
+ __decorate([
5916
+ Prop({ type: [Boolean, String], default: false }),
5917
+ __metadata("design:type", Object)
5918
+ ], TekGrid.prototype, "addButton", void 0);
5919
+ __decorate([
5920
+ Prop({ type: [String], default: 'none' }),
5921
+ __metadata("design:type", String)
5922
+ ], TekGrid.prototype, "deleteButton", void 0);
5923
+ __decorate([
5924
+ Prop({ type: [Boolean, String], default: false }),
5925
+ __metadata("design:type", Object)
5926
+ ], TekGrid.prototype, "columnsButton", void 0);
5927
+ __decorate([
5928
+ Prop({ type: [Array, String], default: () => [] }),
5929
+ __metadata("design:type", Object)
5930
+ ], TekGrid.prototype, "columnsButtonIgnore", void 0);
5931
+ __decorate([
5932
+ Prop({ type: [Boolean, String], default: false }),
5933
+ __metadata("design:type", Object)
5934
+ ], TekGrid.prototype, "filterButton", void 0);
5935
+ __decorate([
5936
+ Prop({ type: [Boolean, String], default: false }),
5937
+ __metadata("design:type", Object)
5938
+ ], TekGrid.prototype, "columnFilterButton", void 0);
5939
+ __decorate([
5940
+ Prop({ type: [Array], default: () => [] }),
5941
+ __metadata("design:type", Array)
5942
+ ], TekGrid.prototype, "actions", void 0);
5943
+ __decorate([
5944
+ Prop({ type: [String, Boolean], default: true }),
5945
+ __metadata("design:type", Object)
5946
+ ], TekGrid.prototype, "dragColumns", void 0);
5947
+ __decorate([
5948
+ Prop({ type: [String, Boolean], default: true }),
5949
+ __metadata("design:type", Object)
5950
+ ], TekGrid.prototype, "resizeColumns", void 0);
5951
+ __decorate([
5952
+ Prop({ type: [String, Boolean], default: true }),
5953
+ __metadata("design:type", Object)
5954
+ ], TekGrid.prototype, "showLayoutOptions", void 0);
5955
+ __decorate([
5956
+ Prop({ type: [String, Boolean], default: false }),
5957
+ __metadata("design:type", Object)
5958
+ ], TekGrid.prototype, "showExport", void 0);
5959
+ __decorate([
5960
+ Prop({ type: [String, Boolean], default: true }),
5961
+ __metadata("design:type", Object)
5962
+ ], TekGrid.prototype, "showReload", void 0);
5963
+ __decorate([
5964
+ Prop({ type: [String, Array] }),
5965
+ __metadata("design:type", Array)
5966
+ ], TekGrid.prototype, "exportConfig", void 0);
5967
+ __decorate([
5968
+ Prop({ type: [Array] }),
5969
+ __metadata("design:type", Array)
5970
+ ], TekGrid.prototype, "exportActions", void 0);
5971
+ __decorate([
5972
+ Prop({
5973
+ type: Array,
5974
+ default: () => undefined,
5975
+ }),
5976
+ __metadata("design:type", Array)
5977
+ ], TekGrid.prototype, "toolbarSlot", void 0);
5978
+ TekGrid = __decorate([
5979
+ Component
5980
+ ], TekGrid);
5981
+ var script = TekGrid;
5982
+
5983
+ /* script */
5984
+ const __vue_script__ = script;
5985
+
5986
+ /* template */
5987
+ var __vue_render__ = function () {
5988
+ var _vm = this;
5989
+ var _h = _vm.$createElement;
5990
+ var _c = _vm._self._c || _h;
5991
+ return _c("v-data-table", {
5992
+ directives: [
5993
+ {
5994
+ name: "show",
5995
+ rawName: "v-show",
5996
+ value: _vm.instance.isVisible,
5997
+ expression: "instance.isVisible",
5998
+ },
5999
+ ],
6000
+ ref: "grid",
6001
+ class: [
6002
+ "zd-grid",
6003
+ "zd-tree-grid-editable",
6004
+ "tek-grid",
6005
+ "tek-tree-grid",
6006
+ _vm.instance.cssClass,
6007
+ { "zd-grid-flex": _vm.instance.gridHeight || _vm.instance.gridMaxHeight },
6008
+ ],
6009
+ style: [_vm.cssColorVars, _vm.instance.cssStyle],
6010
+ attrs: {
6011
+ "fixed-header": "",
6012
+ "disable-pagination": "",
6013
+ "hide-default-header": "",
6014
+ "hide-default-footer": "",
6015
+ name: _vm.instance.name,
6016
+ headers: _vm.instance.columns,
6017
+ items: _vm.getData(),
6018
+ search: _vm.instance.datasource.search,
6019
+ "show-select": _vm.instance.selectable,
6020
+ dense: _vm.instance.dense,
6021
+ loading: _vm.instance.datasource.loading,
6022
+ "item-key": _vm.instance.datasource.uniqueKey,
6023
+ "disable-sort": "",
6024
+ "disable-filtering": "",
6025
+ tabindex: "0",
6026
+ },
6027
+ on: {
6028
+ "current-items": function ($event) {
6029
+ return _vm.changeData($event)
6030
+ },
6031
+ },
6032
+ scopedSlots: _vm._u(
6033
+ [
6034
+ {
6035
+ key: "top",
6036
+ fn: function () {
6037
+ return [
6038
+ !_vm.$slots.toolbarSlot
6039
+ ? [
6040
+ _c("zd-grid-top", {
6041
+ ref: "treeGridTopSlot",
6042
+ attrs: {
6043
+ name: _vm.instance.name + "_top",
6044
+ toolbarSlot: _vm.instance.toolbarSlot,
6045
+ instance: _vm.instance,
6046
+ },
6047
+ }),
6048
+ ]
6049
+ : _vm._e(),
6050
+ _vm._v(" "),
6051
+ _vm._t("toolbarSlot"),
6052
+ _vm._v(" "),
6053
+ _c("span", {
6054
+ ref: "gridTooltip",
6055
+ staticClass: "zd-grid-cell-tooltip",
6056
+ }),
6057
+ ]
6058
+ },
6059
+ proxy: true,
6060
+ },
6061
+ _vm.instance.showHeader
6062
+ ? {
6063
+ key: "header",
6064
+ fn: function (ref) {
6065
+ var props = ref.props;
6066
+ var on = ref.on;
6067
+ return [
6068
+ _c("thead", { staticClass: "zd-grid-table-header" }, [
6069
+ _c(
6070
+ "tr",
6071
+ [
6072
+ _vm.instance.selectable
6073
+ ? _c(
6074
+ "th",
6075
+ {
6076
+ staticClass:
6077
+ "zd-table-cell selectable zd-table-fixed-column",
6078
+ style:
6079
+ "background-color: " +
6080
+ _vm.instance.headerBackground,
6081
+ },
6082
+ [
6083
+ _c("v-checkbox", {
6084
+ staticClass: "zd-grid-header-checkbox",
6085
+ attrs: {
6086
+ "hide-details": "",
6087
+ color: "primary",
6088
+ disabled: _vm.instance.editing,
6089
+ "on-icon": _vm.$getIcon("checkboxOn"),
6090
+ "off-icon": _vm.$getIcon("checkboxOff"),
6091
+ "indeterminate-icon": _vm.$getIcon(
6092
+ "checkboxIndeterminate"
6093
+ ),
6094
+ value: props.everyItem,
6095
+ indeterminate:
6096
+ !props.everyItem && props.someItems,
6097
+ },
6098
+ on: {
6099
+ click: function ($event) {
6100
+ $event.stopPropagation();
6101
+ on["toggle-select-all"](!props.everyItem);
6102
+ _vm.selectAllClick(
6103
+ !props.everyItem,
6104
+ $event
6105
+ );
6106
+ },
6107
+ },
6108
+ }),
6109
+ ],
6110
+ 1
6111
+ )
6112
+ : _vm._e(),
6113
+ _vm._v(" "),
6114
+ _vm._l(
6115
+ _vm.orderHeaders(props.headers),
6116
+ function (column, index) {
6117
+ return [
6118
+ column.isVisible
6119
+ ? _c(
6120
+ "th",
6121
+ {
6122
+ key: column.name,
6123
+ ref: "column-" + column.name,
6124
+ refInFor: true,
6125
+ class: [
6126
+ "zd-table-cell",
6127
+ "column-th-" +
6128
+ column.name +
6129
+ "-" +
6130
+ _vm.instance.name,
6131
+ {
6132
+ sortable: column.sortable,
6133
+ sortHandle: _vm.instance.dragColumns,
6134
+ "zd-table-fixed-column": column.fixed,
6135
+ },
6136
+ "text-" + column.align,
6137
+ _vm.instance.datasource.getOrderByColumn(
6138
+ column.name
6139
+ ),
6140
+ _vm.instance.datasource.getOrderByColumn(
6141
+ column.name
6142
+ ) !== null
6143
+ ? "active"
6144
+ : "",
6145
+ ],
6146
+ style: {
6147
+ "background-color":
6148
+ _vm.instance.headerBackground,
6149
+ "min-width":
6150
+ _vm.calcWidth(
6151
+ column,
6152
+ column.minWidth
6153
+ ) || "unset",
6154
+ "max-width":
6155
+ _vm.calcWidth(
6156
+ column,
6157
+ column.maxWidth
6158
+ ) || "unset",
6159
+ },
6160
+ attrs: {
6161
+ "column-name": column.name,
6162
+ index: index,
6163
+ },
6164
+ on: {
6165
+ click: function ($event) {
6166
+ return _vm.instance.changeColumnOrder(
6167
+ column
6168
+ )
6169
+ },
6170
+ },
6171
+ },
6172
+ [
6173
+ _c(
6174
+ "span",
6175
+ {
6176
+ staticClass: "zd-table-header-cell",
6177
+ style: {
6178
+ width:
6179
+ _vm.calcHeaderCellWidth(column),
6180
+ },
6181
+ },
6182
+ [
6183
+ column.type !== "action"
6184
+ ? [
6185
+ column.sortable &&
6186
+ column.align === "right"
6187
+ ? _c(
6188
+ "span",
6189
+ {
6190
+ staticClass:
6191
+ "zd-table-cell-sort",
6192
+ },
6193
+ [
6194
+ column.sortable &&
6195
+ column.align === "right"
6196
+ ? _c(
6197
+ "v-icon",
6198
+ {
6199
+ staticClass:
6200
+ "zd-table-cell-sort-icon",
6201
+ attrs: {
6202
+ small: "",
6203
+ },
6204
+ },
6205
+ [
6206
+ _vm._v(
6207
+ _vm._s(
6208
+ _vm.$getIcon(
6209
+ "chevronUp"
6210
+ )
6211
+ )
6212
+ ),
6213
+ ]
6214
+ )
6215
+ : _vm._e(),
6216
+ _vm._v(" "),
6217
+ _vm.instance.datasource.findOrderIndex(
6218
+ column.name
6219
+ ) >= 0
6220
+ ? _c(
6221
+ "span",
6222
+ {
6223
+ staticClass:
6224
+ "zd-table-cell-sort-order left",
6225
+ },
6226
+ [
6227
+ _vm._v(
6228
+ _vm._s(
6229
+ _vm.instance.datasource.findOrderIndex(
6230
+ column.name
6231
+ ) + 1
6232
+ )
6233
+ ),
6234
+ ]
6235
+ )
6236
+ : _vm._e(),
6237
+ ],
6238
+ 1
6239
+ )
6240
+ : _vm._e(),
6241
+ _vm._v(" "),
6242
+ _c(
6243
+ "span",
6244
+ {
6245
+ class: [
6246
+ "zd-table-cell-name",
6247
+ {
6248
+ "overflow-hidden":
6249
+ column.overflow ===
6250
+ "hidden",
6251
+ "overflow-wrap":
6252
+ column.overflow ===
6253
+ "wrap",
6254
+ },
6255
+ !isNaN(column.overflow)
6256
+ ? "overflow-clamp overflow-clamp-" +
6257
+ column.overflow
6258
+ : "",
6259
+ ],
6260
+ style: {
6261
+ "min-width":
6262
+ _vm.calcWidth(
6263
+ column,
6264
+ column.minWidth
6265
+ ) || "unset",
6266
+ "max-width":
6267
+ _vm.calcWidth(
6268
+ column,
6269
+ column.maxWidth
6270
+ ) || "unset",
6271
+ },
6272
+ on: {
6273
+ mouseenter: function (
6274
+ $event
6275
+ ) {
6276
+ return _vm.checkOverflow(
6277
+ $event
6278
+ )
6279
+ },
6280
+ mouseleave: function (
6281
+ $event
6282
+ ) {
6283
+ return _vm.removeTooltip()
6284
+ },
6285
+ },
6286
+ },
6287
+ [
6288
+ _vm._v(
6289
+ _vm._s(
6290
+ _vm.$t(column.label)
6291
+ )
6292
+ ),
6293
+ ]
6294
+ ),
6295
+ _vm._v(" "),
6296
+ column.sortable &&
6297
+ column.align !== "right"
6298
+ ? _c(
6299
+ "span",
6300
+ {
6301
+ staticClass:
6302
+ "zd-table-cell-sort",
6303
+ },
6304
+ [
6305
+ column.sortable &&
6306
+ column.align !== "right"
6307
+ ? _c(
6308
+ "v-icon",
6309
+ {
6310
+ staticClass:
6311
+ "zd-table-cell-sort-icon",
6312
+ attrs: {
6313
+ small: "",
6314
+ },
6315
+ },
6316
+ [
6317
+ _vm._v(
6318
+ _vm._s(
6319
+ _vm.$getIcon(
6320
+ "chevronUp"
6321
+ )
6322
+ )
6323
+ ),
6324
+ ]
6325
+ )
6326
+ : _vm._e(),
6327
+ _vm._v(" "),
6328
+ _vm.instance.datasource.findOrderIndex(
6329
+ column.name
6330
+ ) >= 0
6331
+ ? _c(
6332
+ "span",
6333
+ {
6334
+ staticClass:
6335
+ "zd-table-cell-sort-order",
6336
+ },
6337
+ [
6338
+ _vm._v(
6339
+ _vm._s(
6340
+ _vm.instance.datasource.findOrderIndex(
6341
+ column.name
6342
+ ) + 1
6343
+ )
6344
+ ),
6345
+ ]
6346
+ )
6347
+ : _vm._e(),
6348
+ ],
6349
+ 1
6350
+ )
6351
+ : _vm._e(),
6352
+ ]
6353
+ : [
6354
+ _c(
6355
+ "span",
6356
+ {
6357
+ staticClass:
6358
+ "zd-table-cell-name",
6359
+ },
6360
+ [
6361
+ _vm._v(
6362
+ _vm._s(
6363
+ _vm.$t(column.label)
6364
+ )
6365
+ ),
6366
+ ]
6367
+ ),
6368
+ ],
6369
+ _vm._v(" "),
6370
+ _vm.instance.columnFilterButton &&
6371
+ column.filterable
6372
+ ? _c(
6373
+ "span",
6374
+ {
6375
+ class: [
6376
+ "tek-grid-column-filter-button",
6377
+ {
6378
+ "has-filter-data":
6379
+ _vm.instance.columnHasFilterData(
6380
+ column
6381
+ ),
6382
+ },
6383
+ ],
6384
+ },
6385
+ [
6386
+ _c(
6387
+ "v-menu",
6388
+ {
6389
+ attrs: {
6390
+ "offset-overflow": "",
6391
+ "offset-y": "",
6392
+ "min-width": 200,
6393
+ transition:
6394
+ "scale-transition",
6395
+ "content-class":
6396
+ "tek-grid-column-filter-menu",
6397
+ "close-on-content-click": false,
6398
+ },
6399
+ scopedSlots: _vm._u(
6400
+ [
6401
+ {
6402
+ key: "activator",
6403
+ fn: function (ref) {
6404
+ var on = ref.on;
6405
+ return [
6406
+ _c(
6407
+ "v-icon",
6408
+ _vm._g(
6409
+ {},
6410
+ Object.assign(
6411
+ {},
6412
+ _vm.getFilterActivatorEvents(
6413
+ on,
6414
+ column
6415
+ )
6416
+ )
6417
+ ),
6418
+ [
6419
+ _vm._v(
6420
+ _vm._s(
6421
+ _vm.$getIcon(
6422
+ "filter"
6423
+ )
6424
+ )
6425
+ ),
6426
+ ]
6427
+ ),
6428
+ ]
6429
+ },
6430
+ },
6431
+ ],
6432
+ null,
6433
+ true
6434
+ ),
6435
+ },
6436
+ [
6437
+ _vm._v(" "),
6438
+ _vm._l(
6439
+ _vm.getColumnFilterOptions(
6440
+ column
6441
+ ),
6442
+ function (
6443
+ item,
6444
+ filterIndex
6445
+ ) {
6446
+ return _c(
6447
+ "span",
6448
+ {
6449
+ key: filterIndex,
6450
+ },
6451
+ [
6452
+ filterIndex > 0
6453
+ ? _c(
6454
+ "zd-radio",
6455
+ _vm._b(
6456
+ {
6457
+ attrs: {
6458
+ name:
6459
+ _vm
6460
+ .instance
6461
+ .name +
6462
+ "-" +
6463
+ column.name +
6464
+ "-filter-relation-" +
6465
+ filterIndex,
6466
+ },
6467
+ },
6468
+ "zd-radio",
6469
+ {
6470
+ showLabel: false,
6471
+ showHelper: false,
6472
+ vertical: false,
6473
+ cssClass:
6474
+ "zd-mb-2",
6475
+ datasource:
6476
+ _vm
6477
+ .instance
6478
+ .filterRelationsDatasource,
6479
+ dataValue:
6480
+ "value",
6481
+ dataLabel:
6482
+ "text",
6483
+ value:
6484
+ item.relation,
6485
+ events:
6486
+ {
6487
+ change:
6488
+ _vm.getFilterItemChange(
6489
+ "relation",
6490
+ column,
6491
+ filterIndex
6492
+ ),
6493
+ },
6494
+ },
6495
+ false
6496
+ )
6497
+ )
6498
+ : _vm._e(),
6499
+ _vm._v(" "),
6500
+ item.operation !==
6501
+ undefined
6502
+ ? _c(
6503
+ "zd-select",
6504
+ _vm._b(
6505
+ {
6506
+ attrs: {
6507
+ name:
6508
+ _vm
6509
+ .instance
6510
+ .name +
6511
+ "-" +
6512
+ column.name +
6513
+ "-filter-operation-" +
6514
+ filterIndex,
6515
+ },
6516
+ },
6517
+ "zd-select",
6518
+ {
6519
+ autocomplete: false,
6520
+ showLabel: false,
6521
+ showHelper: false,
6522
+ clearable: false,
6523
+ cssClass:
6524
+ "zd-mb-2",
6525
+ datasource:
6526
+ _vm
6527
+ .instance
6528
+ .filterOperationsDatasource,
6529
+ dataValue:
6530
+ "value",
6531
+ dataText:
6532
+ "text",
6533
+ value:
6534
+ item.operation,
6535
+ events:
6536
+ {
6537
+ change:
6538
+ _vm.getFilterItemChange(
6539
+ "operation",
6540
+ column,
6541
+ filterIndex
6542
+ ),
6543
+ },
6544
+ },
6545
+ false
6546
+ )
6547
+ )
6548
+ : _vm._e(),
6549
+ _vm._v(" "),
6550
+ _c(
6551
+ _vm.getComponentType(
6552
+ filterIndex
6553
+ ) ||
6554
+ column
6555
+ .componentProps
6556
+ .component,
6557
+ _vm._b(
6558
+ {
6559
+ tag: "component",
6560
+ attrs: {
6561
+ name:
6562
+ _vm
6563
+ .instance
6564
+ .name +
6565
+ "-" +
6566
+ column.name +
6567
+ "-filter-value-" +
6568
+ filterIndex,
6569
+ },
6570
+ },
6571
+ "component",
6572
+ Object.assign(
6573
+ {},
6574
+ column.componentProps,
6575
+ {
6576
+ showLabel: false,
6577
+ showHelper: true,
6578
+ autofill: false,
6579
+ cssClass:
6580
+ "zd-mb-2",
6581
+ value:
6582
+ item.value,
6583
+ persistentHint: true,
6584
+ hint: _vm.getComponentHint(
6585
+ filterIndex
6586
+ ),
6587
+ events: {
6588
+ input:
6589
+ _vm.getFilterValueChange(
6590
+ column,
6591
+ filterIndex
6592
+ ),
6593
+ },
6594
+ }
6595
+ ),
6596
+ false
6597
+ )
6598
+ ),
6599
+ ],
6600
+ 1
6601
+ )
6602
+ }
6603
+ ),
6604
+ ],
6605
+ 2
6606
+ ),
6607
+ ],
6608
+ 1
6609
+ )
6610
+ : _vm._e(),
6611
+ _vm._v(" "),
6612
+ _vm.instance.resizeColumns
6613
+ ? _c(
6614
+ "span",
6615
+ {
6616
+ staticClass:
6617
+ "zd-grid-resize-handle",
6618
+ on: {
6619
+ mousedown: function (
6620
+ $event
6621
+ ) {
6622
+ return _vm.resizeMouseDownHandler(
6623
+ column,
6624
+ $event
6625
+ )
6626
+ },
6627
+ click:
6628
+ _vm.resizeClickHandler,
6629
+ },
6630
+ },
6631
+ [_vm._v("‖")]
6632
+ )
6633
+ : _vm._e(),
6634
+ ],
6635
+ 2
6636
+ ),
6637
+ ]
6638
+ )
6639
+ : _vm._e(),
6640
+ ]
6641
+ }
6642
+ ),
6643
+ ],
6644
+ 2
6645
+ ),
6646
+ ]),
6647
+ ]
6648
+ },
6649
+ }
6650
+ : null,
6651
+ _vm.instance.virtualScroll && _vm.scrollData.start > 0
6652
+ ? {
6653
+ key: "body.prepend",
6654
+ fn: function (ref) {
6655
+ var headers = ref.headers;
6656
+ return [
6657
+ _c("tr", [
6658
+ _c("td", {
6659
+ style: "padding-top:" + _vm.scrollData.startHeight + "px",
6660
+ attrs: { colspan: headers.length },
6661
+ }),
6662
+ ]),
6663
+ ]
6664
+ },
6665
+ }
6666
+ : null,
6667
+ _vm.instance.virtualScroll &&
6668
+ _vm.scrollData.start + _vm.scrollData.perPage <
6669
+ (_vm.scrollData.visibleData || []).length
6670
+ ? {
6671
+ key: "body.append",
6672
+ fn: function (ref) {
6673
+ var headers = ref.headers;
6674
+ return [
6675
+ _c("tr", [
6676
+ _c("td", {
6677
+ style: "padding-top:" + _vm.scrollData.endHeight + "px",
6678
+ attrs: { colspan: headers.length },
6679
+ }),
6680
+ ]),
6681
+ ]
6682
+ },
6683
+ }
6684
+ : null,
6685
+ _vm.instance.treeDataStructure.treeData.length
6686
+ ? {
6687
+ key: "item",
6688
+ fn: function (ref) {
6689
+ var item = ref.item;
6690
+ var isSelected = ref.isSelected;
6691
+ var index = ref.index;
6692
+ var headers = ref.headers;
6693
+ return [
6694
+ _c(
6695
+ "tr",
6696
+ {
6697
+ directives: [
6698
+ {
6699
+ name: "show",
6700
+ rawName: "v-show",
6701
+ value: _vm.instance.treeDataStructure.isOpened(item),
6702
+ expression:
6703
+ "instance.treeDataStructure.isOpened(item)",
6704
+ },
6705
+ ],
6706
+ class: {
6707
+ active: isSelected,
6708
+ current: _vm.isCurrentRow(item),
6709
+ },
6710
+ on: {
6711
+ click: function ($event) {
6712
+ return _vm.rowClick(item, $event)
6713
+ },
6714
+ },
6715
+ },
6716
+ [
6717
+ _vm.instance.selectable
6718
+ ? _c(
6719
+ "td",
6720
+ {
6721
+ staticClass:
6722
+ "zd-table-cell selectable zd-table-fixed-column",
6723
+ },
6724
+ [
6725
+ _c("v-checkbox", {
6726
+ staticClass: "zd-grid-row-checkbox",
6727
+ attrs: {
6728
+ "hide-details": "",
6729
+ color: "primary",
6730
+ disabled: _vm.instance.editing,
6731
+ "on-icon": _vm.$getIcon("checkboxOn"),
6732
+ "off-icon": _vm.$getIcon("checkboxOff"),
6733
+ "true-value": true,
6734
+ "false-value": false,
6735
+ value: isSelected,
6736
+ },
6737
+ on: {
6738
+ click: function ($event) {
6739
+ $event.stopPropagation();
6740
+ return _vm.selectClick(
6741
+ index,
6742
+ !isSelected,
6743
+ $event
6744
+ )
6745
+ },
6746
+ },
6747
+ }),
6748
+ ],
6749
+ 1
6750
+ )
6751
+ : _vm._e(),
6752
+ _vm._v(" "),
6753
+ _vm._l(
6754
+ _vm.orderHeaders(headers),
6755
+ function (header, headerIndex) {
6756
+ return [
6757
+ _vm._l(
6758
+ [
6759
+ {
6760
+ column: header,
6761
+ cellProps: (_vm.instance.cellsApplied[
6762
+ _vm.rowKey(item)
6763
+ ] || {})[header.name],
6764
+ },
6765
+ ],
6766
+ function (ref) {
6767
+ var column = ref.column;
6768
+ var cellProps = ref.cellProps;
6769
+ return [
6770
+ column.isVisible && column.type !== "action"
6771
+ ? [
6772
+ _c(
6773
+ "td",
6774
+ {
6775
+ key: column.name,
6776
+ class: [
6777
+ "zd-table-cell",
6778
+ "text-" + column.align,
6779
+ Object.assign(
6780
+ {},
6781
+ column,
6782
+ cellProps
6783
+ ).cssClass,
6784
+ { first: headerIndex === 0 },
6785
+ {
6786
+ "zd-table-column-editable":
6787
+ column.editable,
6788
+ "zd-table-cell-editable":
6789
+ Object.assign(
6790
+ {},
6791
+ column,
6792
+ cellProps
6793
+ ).editable,
6794
+ "zd-table-fixed-column":
6795
+ column.fixed,
6796
+ },
6797
+ ],
6798
+ style: [
6799
+ Object.assign(
6800
+ {},
6801
+ column,
6802
+ cellProps
6803
+ ).style,
6804
+ Object.assign(
6805
+ {},
6806
+ column,
6807
+ cellProps
6808
+ ).cssStyle,
6809
+ {
6810
+ left: _vm.getFixedLeft(column),
6811
+ },
6812
+ ],
6813
+ on: {
6814
+ click: function ($event) {
6815
+ return _vm.cellClick(
6816
+ item,
6817
+ column,
6818
+ $event
6819
+ )
6820
+ },
6821
+ },
6822
+ },
6823
+ [
6824
+ column.loading
6825
+ ? _c("v-skeleton-loader", {
6826
+ staticClass:
6827
+ "zd-skeleton-table-cell",
6828
+ attrs: {
6829
+ loading: "",
6830
+ type: "table-cell",
6831
+ },
6832
+ })
6833
+ : _vm._e(),
6834
+ _vm._v(" "),
6835
+ Object.assign({}, column, cellProps)
6836
+ .editable && _vm.instance.editing
6837
+ ? _c(
6838
+ "span",
6839
+ {
6840
+ directives: [
6841
+ {
6842
+ name: "show",
6843
+ rawName: "v-show",
6844
+ value: !column.loading,
6845
+ expression:
6846
+ "!column.loading",
6847
+ },
6848
+ ],
6849
+ staticClass:
6850
+ "zd-table-cell-inline-edit",
6851
+ style: {
6852
+ width:
6853
+ _vm.calcWidth(
6854
+ column,
6855
+ column.maxWidth ||
6856
+ column.minWidth
6857
+ ) || "unset",
6858
+ "min-width":
6859
+ _vm.calcWidth(
6860
+ column,
6861
+ column.minWidth
6862
+ ) || "unset",
6863
+ "max-width":
6864
+ _vm.calcWidth(
6865
+ column,
6866
+ column.maxWidth
6867
+ ) || "unset",
6868
+ },
6869
+ },
6870
+ [
6871
+ _vm.instance.isEdited(
6872
+ column,
6873
+ item
6874
+ )
6875
+ ? _c(
6876
+ "span",
6877
+ {
6878
+ staticClass:
6879
+ "zd-table-cell-edit-icon",
6880
+ },
6881
+ [
6882
+ _vm.instance.isValid(
6883
+ column,
6884
+ item
6885
+ )
6886
+ ? _c(
6887
+ "v-icon",
6888
+ {
6889
+ attrs: {
6890
+ color:
6891
+ "primary",
6892
+ },
6893
+ },
6894
+ [
6895
+ _vm._v(
6896
+ _vm._s(
6897
+ _vm.$getIcon(
6898
+ "pencil"
6899
+ )
6900
+ )
6901
+ ),
6902
+ ]
6903
+ )
6904
+ : _c(
6905
+ "v-icon",
6906
+ {
6907
+ attrs: {
6908
+ color:
6909
+ "error",
6910
+ },
6911
+ },
6912
+ [
6913
+ _vm._v(
6914
+ _vm._s(
6915
+ _vm.$getIcon(
6916
+ "warning"
6917
+ )
6918
+ )
6919
+ ),
6920
+ ]
6921
+ ),
6922
+ ],
6923
+ 1
6924
+ )
6925
+ : _vm._e(),
6926
+ _vm._v(" "),
6927
+ _c(
6928
+ column.componentProps
6929
+ .component,
6930
+ _vm._b(
6931
+ {
6932
+ key:
6933
+ column.name +
6934
+ _vm.rowKey(item),
6935
+ tag: "component",
6936
+ },
6937
+ "component",
6938
+ _vm.getEditableComponent(
6939
+ column,
6940
+ item,
6941
+ cellProps
6942
+ ),
6943
+ false
6944
+ )
6945
+ ),
6946
+ ],
6947
+ 1
6948
+ )
6949
+ : _vm.hasToggleIcon(column, item)
6950
+ ? _c(
6951
+ "span",
6952
+ [
6953
+ _c("v-icon", [
6954
+ _vm._v(
6955
+ _vm._s(
6956
+ _vm.$getIcon(
6957
+ column.formatterByRow(
6958
+ item,
6959
+ cellProps
6960
+ )
6961
+ )
6962
+ )
6963
+ ),
6964
+ ]),
6965
+ ],
6966
+ 1
6967
+ )
6968
+ : _c(
6969
+ "span",
6970
+ {
6971
+ directives: [
6972
+ {
6973
+ name: "show",
6974
+ rawName: "v-show",
6975
+ value: !column.loading,
6976
+ expression:
6977
+ "!column.loading",
6978
+ },
6979
+ ],
6980
+ class: [
6981
+ "zd-table-cell-text",
6982
+ {
6983
+ "zd-table-cell-text-editable":
6984
+ Object.assign(
6985
+ {},
6986
+ column,
6987
+ cellProps
6988
+ ).editable,
6989
+ "overflow-hidden":
6990
+ column.overflow ===
6991
+ "hidden",
6992
+ "overflow-wrap":
6993
+ column.overflow ===
6994
+ "wrap",
6995
+ },
6996
+ !isNaN(column.overflow)
6997
+ ? "overflow-clamp overflow-clamp-" +
6998
+ column.overflow
6999
+ : "",
7000
+ ],
7001
+ style: {
7002
+ width:
7003
+ _vm.calcWidth(
7004
+ column,
7005
+ column.maxWidth ||
7006
+ column.minWidth
7007
+ ) || "unset",
7008
+ "min-width":
7009
+ _vm.calcWidth(
7010
+ column,
7011
+ column.minWidth
7012
+ ) || "unset",
7013
+ "max-width":
7014
+ _vm.calcWidth(
7015
+ column,
7016
+ column.maxWidth
7017
+ ) || "unset",
7018
+ },
7019
+ on: {
7020
+ mouseenter: function (
7021
+ $event
7022
+ ) {
7023
+ return _vm.checkOverflow(
7024
+ $event
7025
+ )
7026
+ },
7027
+ mouseleave: function (
7028
+ $event
7029
+ ) {
7030
+ return _vm.removeTooltip()
7031
+ },
7032
+ },
7033
+ },
7034
+ [
7035
+ _c(
7036
+ "div",
7037
+ {
7038
+ directives: [
7039
+ {
7040
+ name: "show",
7041
+ rawName: "v-show",
7042
+ value:
7043
+ headerIndex === 0,
7044
+ expression:
7045
+ "headerIndex === 0",
7046
+ },
7047
+ ],
7048
+ class: [
7049
+ "zd-tree-grid-editable-expand",
7050
+ "level" +
7051
+ item.tree__level,
7052
+ ],
7053
+ },
7054
+ [
7055
+ item.tree__children
7056
+ .length > 0
7057
+ ? _c(
7058
+ "v-icon",
7059
+ {
7060
+ class: {
7061
+ opened:
7062
+ item.tree__opened,
7063
+ },
7064
+ attrs: {
7065
+ tabindex:
7066
+ "-1",
7067
+ },
7068
+ on: {
7069
+ click:
7070
+ function (
7071
+ $event
7072
+ ) {
7073
+ return _vm.instance.toggleExpand(
7074
+ item,
7075
+ index
7076
+ )
7077
+ },
7078
+ },
7079
+ },
7080
+ [
7081
+ _vm._v(
7082
+ "\n " +
7083
+ _vm._s(
7084
+ _vm.$getIcon(
7085
+ "chevronRight"
7086
+ )
7087
+ ) +
7088
+ "\n "
7089
+ ),
7090
+ ]
7091
+ )
7092
+ : _vm._e(),
7093
+ ],
7094
+ 1
7095
+ ),
7096
+ _vm._v(" "),
7097
+ _c("span", {
7098
+ key: item.tree__searched
7099
+ ? "a"
7100
+ : "b",
7101
+ domProps: {
7102
+ innerHTML: _vm._s(
7103
+ _vm.formatSearchResult(
7104
+ column.formatterByRow(
7105
+ item,
7106
+ cellProps
7107
+ )
7108
+ )
7109
+ ),
7110
+ },
7111
+ }),
7112
+ ]
7113
+ ),
7114
+ ],
7115
+ 1
7116
+ ),
7117
+ ]
7118
+ : column.isVisible &&
7119
+ column.type === "action"
7120
+ ? [
7121
+ _c(
7122
+ "td",
7123
+ {
7124
+ key: column.name,
7125
+ class: [
7126
+ "zd-table-cell",
7127
+ "text-" + column.align,
7128
+ Object.assign(
7129
+ {},
7130
+ column,
7131
+ cellProps
7132
+ ).cssClass,
7133
+ ],
7134
+ style: [
7135
+ Object.assign(
7136
+ {},
7137
+ column,
7138
+ cellProps
7139
+ ).style,
7140
+ Object.assign(
7141
+ {},
7142
+ column,
7143
+ cellProps
7144
+ ).cssStyle,
7145
+ ],
7146
+ on: {
7147
+ click: function ($event) {
7148
+ return _vm.cellClick(
7149
+ item,
7150
+ column,
7151
+ $event
7152
+ )
7153
+ },
7154
+ },
7155
+ },
7156
+ _vm._l(
7157
+ column.childrenProps,
7158
+ function (child) {
7159
+ return _c(
7160
+ child.component,
7161
+ _vm._b(
7162
+ {
7163
+ key:
7164
+ child.name +
7165
+ _vm.rowKey(item),
7166
+ tag: "component",
7167
+ },
7168
+ "component",
7169
+ Object.assign(
7170
+ {},
7171
+ child,
7172
+ _vm.instance.getActionComponent(
7173
+ child,
7174
+ column,
7175
+ item
7176
+ )
7177
+ ),
7178
+ false
7179
+ )
7180
+ )
7181
+ }
7182
+ ),
7183
+ 1
7184
+ ),
7185
+ ]
7186
+ : _vm._e(),
7187
+ ]
7188
+ }
7189
+ ),
7190
+ ]
7191
+ }
7192
+ ),
7193
+ ],
7194
+ 2
7195
+ ),
7196
+ ]
7197
+ },
7198
+ }
7199
+ : null,
7200
+ {
7201
+ key: "no-data",
7202
+ fn: function () {
7203
+ return [
7204
+ _c("zd-iterable-no-data", {
7205
+ ref: "gridNoData",
7206
+ attrs: {
7207
+ name: _vm.instance.name + "_no_data",
7208
+ instance: _vm.instance,
7209
+ noDataSlot: _vm.instance.noDataSlot,
7210
+ noResultSlot: _vm.instance.noResultSlot,
7211
+ errorSlot: _vm.instance.errorSlot,
7212
+ empty: !_vm.getData().length,
7213
+ },
7214
+ scopedSlots: _vm._u(
7215
+ [
7216
+ {
7217
+ key: "errorSlot",
7218
+ fn: function () {
7219
+ return [_vm._t("errorSlot")]
7220
+ },
7221
+ proxy: true,
7222
+ },
7223
+ {
7224
+ key: "noResultSlot",
7225
+ fn: function () {
7226
+ return [_vm._t("noResultSlot")]
7227
+ },
7228
+ proxy: true,
7229
+ },
7230
+ {
7231
+ key: "noDataSlot",
7232
+ fn: function () {
7233
+ return [_vm._t("noDataSlot")]
7234
+ },
7235
+ proxy: true,
7236
+ },
7237
+ ],
7238
+ null,
7239
+ true
7240
+ ),
7241
+ }),
7242
+ ]
7243
+ },
7244
+ proxy: true,
7245
+ },
7246
+ _vm.instance.showFooter
7247
+ ? {
7248
+ key: "footer",
7249
+ fn: function () {
7250
+ return [
7251
+ !_vm.$slots.footerSlot
7252
+ ? [
7253
+ _c("zd-grid-footer", {
7254
+ ref: "gridFooter",
7255
+ attrs: {
7256
+ name: _vm.instance.name + "_footer",
7257
+ instance: _vm.instance,
7258
+ footerSlot: _vm.instance.footerSlot,
7259
+ },
7260
+ }),
7261
+ ]
7262
+ : _vm._e(),
7263
+ _vm._v(" "),
7264
+ _vm._t("footerSlot"),
7265
+ ]
7266
+ },
7267
+ proxy: true,
7268
+ }
7269
+ : null,
7270
+ ],
7271
+ null,
7272
+ true
7273
+ ),
7274
+ model: {
7275
+ value: _vm.instance.selectedRows,
7276
+ callback: function ($$v) {
7277
+ _vm.$set(_vm.instance, "selectedRows", $$v);
7278
+ },
7279
+ expression: "instance.selectedRows",
7280
+ },
7281
+ })
7282
+ };
7283
+ var __vue_staticRenderFns__ = [];
7284
+ __vue_render__._withStripped = true;
7285
+
7286
+ /* style */
7287
+ const __vue_inject_styles__ = function (inject) {
7288
+ if (!inject) return
7289
+ inject("data-v-29a40362_0", { source: ".tek-grid .zd-grid-toolbar {\n height: 36px;\n}\n.tek-grid .zd-grid-toolbar .zd-grid-toolbar-slot {\n align-items: center;\n}\n.tek-grid .zd-grid-toolbar .toolbar-divider {\n margin: 10px;\n}\n.tek-grid .zd-grid-toolbar .toolbar-title {\n line-height: 22px;\n}\n.tek-grid table thead tr th {\n padding-right: 15px !important;\n}\n.tek-grid table thead tr th.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 4;\n background: #f7f7f7 !important;\n}\n.tek-grid table thead tr th .tek-grid-column-filter-button {\n display: inline-block;\n}\n.tek-grid table thead tr th .tek-grid-column-filter-button .v-icon {\n cursor: pointer;\n font-size: 15px;\n width: 15px;\n padding: 0 3px;\n opacity: 0;\n color: #ccc;\n}\n.tek-grid table thead tr th .tek-grid-column-filter-button.has-filter-data .v-icon {\n opacity: 1;\n color: var(--v-primary-base);\n}\n.tek-grid table thead tr th:hover .tek-grid-column-filter-button .v-icon {\n opacity: 1;\n}\n.tek-grid table tbody tr.footer {\n background: #f6f6f6;\n}\n.tek-grid table tbody tr.footer td.zd-table-cell {\n font-weight: 700;\n}\n.tek-grid table tbody tr.summary {\n background: #eee;\n}\n.tek-grid table tbody tr.summary td.zd-table-cell {\n font-weight: 700;\n font-size: 15px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header {\n font-weight: bold;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .v-icon {\n font-size: 21px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .v-icon.closed {\n transform: rotate(-90deg);\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-container {\n position: sticky !important;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-container .zd-table-group-text {\n vertical-align: middle;\n}\n.tek-grid table tbody tr td.zd-table-cell .zd-table-cell-text {\n display: inline-block;\n vertical-align: middle;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 3;\n background: #f7f7f7 !important;\n}\n.tek-grid table tbody tr.current td.zd-table-cell.zd-table-fixed-column {\n color: var(--v-primary-base) !important;\n}\n.tek-grid table .tek-grid-header-group-identation {\n width: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.tek-grid table .tek-grid-header-group-identation.first-group {\n width: 20px;\n}\n.tek-grid table .tek-grid-body-group-identation {\n width: 8px;\n display: inline-block;\n vertical-align: middle;\n margin-left: 14px;\n height: 100%;\n border-left: solid 1px #ccc;\n}\n.tek-grid table .tek-grid-body-group-identation.first-group {\n width: 10px;\n margin-left: 10px;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer {\n height: 60%;\n border-bottom: solid 1px #ccc;\n position: relative;\n top: -25%;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer-no-line {\n border-left: none;\n}\n.tek-grid .zd-skeleton-table-cell .v-skeleton-loader__table-cell {\n height: auto;\n}\n.tekgrid-actions-dropdown > * {\n display: block;\n}\n.tek-grid-column-filter-menu {\n background: white;\n padding: 12px 12px 0 12px;\n max-height: 300px;\n}\n.filter-helper-values-button {\n height: 24px !important;\n margin-left: 5px;\n margin-top: 0;\n}\n.filter-helper-values-button.with-label {\n margin-top: 20px;\n}\n.filter-helper-values-option {\n cursor: pointer;\n}\n.filter-helper-values-option:hover {\n background-color: rgba(0, 0, 0, 0.03);\n}", map: undefined, media: undefined });
7290
+
5519
7291
  };
5520
7292
  /* scoped */
5521
7293
  const __vue_scope_id__ = undefined;
@@ -5543,21 +7315,22 @@ __vue_render__._withStripped = true;
5543
7315
  );
5544
7316
 
5545
7317
  const components = {
5546
- TekBreadcrumbHeader: __vue_component__$e,
5547
- TekCardTitle: __vue_component__$d,
5548
- TekCrudAddButton: __vue_component__$c,
5549
- TekCrudCancelButton: __vue_component__$b,
5550
- TekCrudDeleteButton: __vue_component__$a,
5551
- TekCrudForm: __vue_component__$9,
5552
- TekCrudSaveButton: __vue_component__$8,
5553
- TekGrid: __vue_component__$7,
5554
- TekGridColumnsButton: __vue_component__$6,
5555
- TekGridLayoutOptions: __vue_component__$5,
5556
- TekImage: __vue_component__$4,
5557
- TekProductCard: __vue_component__,
5558
- TekIterableComponentRender: __vue_component__$2,
5559
- TekIterableCarousel: __vue_component__$3,
5560
- TekNotifications: __vue_component__$1,
7318
+ TekBreadcrumbHeader: __vue_component__$f,
7319
+ TekCardTitle: __vue_component__$e,
7320
+ TekCrudAddButton: __vue_component__$d,
7321
+ TekCrudCancelButton: __vue_component__$c,
7322
+ TekCrudDeleteButton: __vue_component__$b,
7323
+ TekCrudForm: __vue_component__$a,
7324
+ TekCrudSaveButton: __vue_component__$9,
7325
+ TekGrid: __vue_component__$8,
7326
+ TekGridColumnsButton: __vue_component__$7,
7327
+ TekGridLayoutOptions: __vue_component__$6,
7328
+ TekImage: __vue_component__$5,
7329
+ TekProductCard: __vue_component__$1,
7330
+ TekIterableComponentRender: __vue_component__$3,
7331
+ TekIterableCarousel: __vue_component__$4,
7332
+ TekNotifications: __vue_component__$2,
7333
+ TekTreeGrid: __vue_component__,
5561
7334
  };
5562
7335
 
5563
7336
  Icons.addIcons({
@@ -5578,4 +7351,4 @@ const TeknisaComponents = {
5578
7351
  },
5579
7352
  };
5580
7353
 
5581
- export { script$e as TekBreadcrumbHeader, script$d as TekCardTitle, script$c as TekCrudAddButton, script$b as TekCrudCancelButton, script$a as TekCrudDeleteButton, script$9 as TekCrudForm, script$8 as TekCrudSaveButton, script$7 as TekGrid, script$6 as TekGridColumnsButton, script$5 as TekGridLayoutOptions, script$4 as TekImage, script$2 as TekIterableComponentRender, script as TekProductCard, TeknisaComponents as default };
7354
+ export { script$f as TekBreadcrumbHeader, script$e as TekCardTitle, script$d as TekCrudAddButton, script$c as TekCrudCancelButton, script$b as TekCrudDeleteButton, script$a as TekCrudForm, script$9 as TekCrudSaveButton, script$8 as TekGrid, script$7 as TekGridColumnsButton, script$6 as TekGridLayoutOptions, script$5 as TekImage, script$3 as TekIterableComponentRender, script$1 as TekProductCard, script as TekTreeGrid, TeknisaComponents as default };