@zeedhi/teknisa-components-vuetify 1.107.2 → 1.108.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.
Files changed (36) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +7 -7
  3. package/dist/tek-components-vuetify.esm.js +2083 -339
  4. package/dist/tek-components-vuetify.umd.js +2094 -350
  5. package/jest.config.js +31 -31
  6. package/package.json +2 -2
  7. package/rollup.scss.config.js +13 -13
  8. package/tsconfig.eslint.json +8 -8
  9. package/types/components/tek-grid/TekGrid.d.ts +1 -0
  10. package/dist/tek-style.css +0 -7
  11. package/types/components/tek-ag-grid/RenderedIcons.d.ts +0 -6
  12. package/types/components/tek-ag-grid/TekAgGrid.d.ts +0 -30
  13. package/types/components/tek-ag-grid/tek-ag-grid-components/index.d.ts +0 -6
  14. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-cell-editor/TekAgGridCellEditor.d.ts +0 -15
  15. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-cell-editor/interfaces.d.ts +0 -14
  16. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-cell-renderer/TekAgGridCellRenderer.d.ts +0 -11
  17. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-cell-renderer/interfaces.d.ts +0 -13
  18. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-date/TekAgGridDate.d.ts +0 -21
  19. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-date/interfaces.d.ts +0 -14
  20. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-select-editor/TekAgGridSelectEditor.d.ts +0 -13
  21. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-select-editor/interfaces.d.ts +0 -10
  22. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-select-renderer/TekAgGridSelectRenderer.d.ts +0 -9
  23. package/types/components/tek-ag-grid/tek-ag-grid-components/tek-ag-grid-select-renderer/interfaces.d.ts +0 -8
  24. package/types/components/tek-grid/RenderedIcons.d.ts +0 -6
  25. package/types/components/tek-grid/tek-grid-components/index.d.ts +0 -6
  26. package/types/components/tek-grid/tek-grid-components/tek-grid-cell-editor/TekGridCellEditor.d.ts +0 -15
  27. package/types/components/tek-grid/tek-grid-components/tek-grid-cell-editor/interfaces.d.ts +0 -14
  28. package/types/components/tek-grid/tek-grid-components/tek-grid-cell-renderer/TekGridCellRenderer.d.ts +0 -11
  29. package/types/components/tek-grid/tek-grid-components/tek-grid-cell-renderer/interfaces.d.ts +0 -13
  30. package/types/components/tek-grid/tek-grid-components/tek-grid-date/TekGridDate.d.ts +0 -21
  31. package/types/components/tek-grid/tek-grid-components/tek-grid-date/interfaces.d.ts +0 -14
  32. package/types/components/tek-grid/tek-grid-components/tek-grid-select-editor/TekGridSelectEditor.d.ts +0 -13
  33. package/types/components/tek-grid/tek-grid-components/tek-grid-select-editor/interfaces.d.ts +0 -10
  34. package/types/components/tek-grid/tek-grid-components/tek-grid-select-renderer/TekGridSelectRenderer.d.ts +0 -9
  35. package/types/components/tek-grid/tek-grid-components/tek-grid-select-renderer/interfaces.d.ts +0 -8
  36. package/types/components/tek-login/TekLogin.d.ts +0 -15
@@ -2,14 +2,14 @@ import { ModalService, IterableComponentRender, Icons } from '@zeedhi/common';
2
2
  import { ZdUserInfo } from '@zeedhi/zd-user-info-vue';
3
3
  import { Metadata, Config, dayjs, Singleton, Utils, I18n, Loader, VersionService } from '@zeedhi/core';
4
4
  import { Prop, Component, Watch } from 'vue-property-decorator';
5
- import { BreadcrumbHeader, CardTitle, CrudButton, CrudAddButton, CrudCancelButton, CrudDeleteButton, CrudForm, CrudSaveButton, TekGrid as TekGrid$3, TekRestDatasource, TekMemoryDatasource, TekGridColumn, TekGridColumnsButton as TekGridColumnsButton$1, TekGridFilterButton as TekGridFilterButton$1, TekGridLayoutOptions as TekGridLayoutOptions$1, TekFilterHelper, Image, ProductCard, TekTreeGrid, TekUserInfo as TekUserInfo$1, TekUserInfoList as TekUserInfoList$1, TekDragGrid as TekDragGrid$1, IterableCarousel, Loading, Notifications } from '@zeedhi/teknisa-components-common';
5
+ import { BreadcrumbHeader, CardTitle, CrudButton, CrudAddButton, CrudCancelButton, CrudDeleteButton, CrudForm, CrudSaveButton, TekGrid as TekGrid$6, TekRestDatasource, TekMemoryDatasource, TekGridColumn, TekDragGrid as TekDragGrid$3, TekGridColumnsButton as TekGridColumnsButton$3, TekGridFilterButton as TekGridFilterButton$3, TekGridLayoutOptions as TekGridLayoutOptions$3, TekFilterHelper, Image, ProductCard, TekTreeGrid, TekUserInfo as TekUserInfo$3, TekUserInfoList as TekUserInfoList$3, IterableCarousel, Loading, Notifications } from '@zeedhi/teknisa-components-common';
6
6
  import { PropWatch, ZdComponent, ZdComponentRender, components as components$1, ZdForm, EditableMixin, NavigableTableMixin, ZdGrid, ZdIterableColumnsButton, setFillHeight, ZdIterableComponentRender, ZdLoading, ZdIterable } from '@zeedhi/vuetify';
7
7
  import debounce from 'lodash.debounce';
8
8
  import Vue from 'vue';
9
9
  import Component$1 from 'vue-class-component';
10
10
  import { ZdDragGridHandle, ZdDragGridHandleHeader, updateDraggableFixedColumns } from '@zeedhi/zd-drag-grid-vue';
11
11
  import draggable from 'vuedraggable';
12
- import Sortable from 'sortablejs';
12
+ import sortable from 'sortablejs';
13
13
  import cloneDeep from 'lodash.clonedeep';
14
14
  import '@zeedhi/zd-drag-grid-vue/dist/drag-grid-style.css';
15
15
 
@@ -38,7 +38,7 @@ function __decorate(decorators, target, key, desc) {
38
38
  /**
39
39
  * Teknisa component
40
40
  */
41
- let TekBreadcrumbHeader = class TekBreadcrumbHeader extends ZdComponent {
41
+ let TekBreadcrumbHeader$2 = class TekBreadcrumbHeader extends ZdComponent {
42
42
  constructor() {
43
43
  super(...arguments);
44
44
  this.instanceType = BreadcrumbHeader;
@@ -46,17 +46,17 @@ let TekBreadcrumbHeader = class TekBreadcrumbHeader extends ZdComponent {
46
46
  };
47
47
  __decorate([
48
48
  PropWatch({ type: String, default: '' })
49
- ], TekBreadcrumbHeader.prototype, "title", void 0);
49
+ ], TekBreadcrumbHeader$2.prototype, "title", void 0);
50
50
  __decorate([
51
51
  Prop({ type: Object, default: {} })
52
- ], TekBreadcrumbHeader.prototype, "breadcrumb", void 0);
52
+ ], TekBreadcrumbHeader$2.prototype, "breadcrumb", void 0);
53
53
  __decorate([
54
54
  Prop({ type: Array, default: () => [] })
55
- ], TekBreadcrumbHeader.prototype, "rightSlot", void 0);
56
- TekBreadcrumbHeader = __decorate([
55
+ ], TekBreadcrumbHeader$2.prototype, "rightSlot", void 0);
56
+ TekBreadcrumbHeader$2 = __decorate([
57
57
  Component
58
- ], TekBreadcrumbHeader);
59
- var script$m = TekBreadcrumbHeader;
58
+ ], TekBreadcrumbHeader$2);
59
+ var script$n = TekBreadcrumbHeader$2;
60
60
 
61
61
  function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
62
62
  if (typeof shadowMode !== 'boolean') {
@@ -187,7 +187,7 @@ function addStyle(id, css) {
187
187
  }
188
188
 
189
189
  /* script */
190
- const __vue_script__$n = script$m;
190
+ const __vue_script__$n = script$n;
191
191
 
192
192
  /* template */
193
193
  var __vue_render__$n = function () {
@@ -267,7 +267,7 @@ __vue_render__$n._withStripped = true;
267
267
  /* style */
268
268
  const __vue_inject_styles__$n = function (inject) {
269
269
  if (!inject) return
270
- inject("data-v-4982d92e_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 });
270
+ inject("data-v-0797b9c0_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 });
271
271
 
272
272
  };
273
273
  /* scoped */
@@ -298,7 +298,7 @@ __vue_render__$n._withStripped = true;
298
298
  /**
299
299
  * TekCardTitle component join an icon, title, rightSlot and a divider
300
300
  */
301
- let TekCardTitle = class TekCardTitle extends ZdComponentRender {
301
+ let TekCardTitle$2 = class TekCardTitle extends ZdComponentRender {
302
302
  constructor() {
303
303
  super(...arguments);
304
304
  this.instanceType = CardTitle;
@@ -306,29 +306,29 @@ let TekCardTitle = class TekCardTitle extends ZdComponentRender {
306
306
  };
307
307
  __decorate([
308
308
  PropWatch({ type: String, default: '' })
309
- ], TekCardTitle.prototype, "title", void 0);
309
+ ], TekCardTitle$2.prototype, "title", void 0);
310
310
  __decorate([
311
311
  PropWatch({ type: String, default: '' })
312
- ], TekCardTitle.prototype, "subtitle", void 0);
312
+ ], TekCardTitle$2.prototype, "subtitle", void 0);
313
313
  __decorate([
314
314
  PropWatch({ type: String, default: '' })
315
- ], TekCardTitle.prototype, "iconName", void 0);
315
+ ], TekCardTitle$2.prototype, "iconName", void 0);
316
316
  __decorate([
317
317
  Prop({ type: Array, default: () => [] })
318
- ], TekCardTitle.prototype, "rightSlot", void 0);
318
+ ], TekCardTitle$2.prototype, "rightSlot", void 0);
319
319
  __decorate([
320
320
  PropWatch({ type: [Boolean, String], default: true })
321
- ], TekCardTitle.prototype, "showDivider", void 0);
321
+ ], TekCardTitle$2.prototype, "showDivider", void 0);
322
322
  __decorate([
323
323
  PropWatch({ type: String, default: '' })
324
- ], TekCardTitle.prototype, "to", void 0);
325
- TekCardTitle = __decorate([
324
+ ], TekCardTitle$2.prototype, "to", void 0);
325
+ TekCardTitle$2 = __decorate([
326
326
  Component
327
- ], TekCardTitle);
328
- var script$l = TekCardTitle;
327
+ ], TekCardTitle$2);
328
+ var script$m = TekCardTitle$2;
329
329
 
330
330
  /* script */
331
- const __vue_script__$m = script$l;
331
+ const __vue_script__$m = script$m;
332
332
 
333
333
  /* template */
334
334
  var __vue_render__$m = function () {
@@ -437,7 +437,7 @@ __vue_render__$m._withStripped = true;
437
437
  /* style */
438
438
  const __vue_inject_styles__$m = function (inject) {
439
439
  if (!inject) return
440
- inject("data-v-dc07bd14_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
+ inject("data-v-7c87feac_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 });
441
441
 
442
442
  };
443
443
  /* scoped */
@@ -466,11 +466,11 @@ __vue_render__$m._withStripped = true;
466
466
  );
467
467
 
468
468
  // eslint-disable-next-line prefer-destructuring
469
- const ZdButton$1 = components$1.ZdButton;
469
+ const ZdButton$2 = components$1.ZdButton;
470
470
  /**
471
471
  * TekCrudButton component
472
472
  */
473
- let TekCrudButton = class TekCrudButton extends ZdButton$1 {
473
+ let TekCrudButton = class TekCrudButton extends ZdButton$2 {
474
474
  constructor() {
475
475
  super(...arguments);
476
476
  this.instanceType = CrudButton;
@@ -502,7 +502,7 @@ var TekCrudButton$1 = TekCrudButton;
502
502
  /**
503
503
  * TekCrudAddButton component
504
504
  */
505
- let TekCrudAddButton = class TekCrudAddButton extends TekCrudButton$1 {
505
+ let TekCrudAddButton$2 = class TekCrudAddButton extends TekCrudButton$1 {
506
506
  constructor() {
507
507
  super(...arguments);
508
508
  this.instanceType = CrudAddButton;
@@ -510,26 +510,26 @@ let TekCrudAddButton = class TekCrudAddButton extends TekCrudButton$1 {
510
510
  };
511
511
  __decorate([
512
512
  PropWatch({ type: [String, Boolean], default: true })
513
- ], TekCrudAddButton.prototype, "flat", void 0);
513
+ ], TekCrudAddButton$2.prototype, "flat", void 0);
514
514
  __decorate([
515
515
  PropWatch({ type: [String, Boolean], default: true })
516
- ], TekCrudAddButton.prototype, "icon", void 0);
516
+ ], TekCrudAddButton$2.prototype, "icon", void 0);
517
517
  __decorate([
518
518
  PropWatch({ type: String, default: 'plus' })
519
- ], TekCrudAddButton.prototype, "iconName", void 0);
519
+ ], TekCrudAddButton$2.prototype, "iconName", void 0);
520
520
  __decorate([
521
521
  PropWatch({ type: String, default: '#666' })
522
- ], TekCrudAddButton.prototype, "color", void 0);
522
+ ], TekCrudAddButton$2.prototype, "color", void 0);
523
523
  __decorate([
524
524
  PropWatch({ type: String, default: 'f2' })
525
- ], TekCrudAddButton.prototype, "clickShortcutKey", void 0);
526
- TekCrudAddButton = __decorate([
525
+ ], TekCrudAddButton$2.prototype, "clickShortcutKey", void 0);
526
+ TekCrudAddButton$2 = __decorate([
527
527
  Component
528
- ], TekCrudAddButton);
529
- var script$k = TekCrudAddButton;
528
+ ], TekCrudAddButton$2);
529
+ var script$l = TekCrudAddButton$2;
530
530
 
531
531
  /* script */
532
- const __vue_script__$l = script$k;
532
+ const __vue_script__$l = script$l;
533
533
 
534
534
  /* template */
535
535
  var __vue_render__$l = function () {
@@ -632,7 +632,7 @@ __vue_render__$l._withStripped = true;
632
632
  /**
633
633
  * TekCrudCancelButton component
634
634
  */
635
- let TekCrudCancelButton = class TekCrudCancelButton extends TekCrudButton$1 {
635
+ let TekCrudCancelButton$2 = class TekCrudCancelButton extends TekCrudButton$1 {
636
636
  constructor() {
637
637
  super(...arguments);
638
638
  this.instanceType = CrudCancelButton;
@@ -640,20 +640,20 @@ let TekCrudCancelButton = class TekCrudCancelButton extends TekCrudButton$1 {
640
640
  };
641
641
  __decorate([
642
642
  PropWatch({ type: String, default: 'CANCEL' })
643
- ], TekCrudCancelButton.prototype, "label", void 0);
643
+ ], TekCrudCancelButton$2.prototype, "label", void 0);
644
644
  __decorate([
645
645
  PropWatch({ type: [String, Boolean], default: true })
646
- ], TekCrudCancelButton.prototype, "outline", void 0);
646
+ ], TekCrudCancelButton$2.prototype, "outline", void 0);
647
647
  __decorate([
648
648
  PropWatch({ type: String, default: 'esc' })
649
- ], TekCrudCancelButton.prototype, "clickShortcutKey", void 0);
650
- TekCrudCancelButton = __decorate([
649
+ ], TekCrudCancelButton$2.prototype, "clickShortcutKey", void 0);
650
+ TekCrudCancelButton$2 = __decorate([
651
651
  Component
652
- ], TekCrudCancelButton);
653
- var script$j = TekCrudCancelButton;
652
+ ], TekCrudCancelButton$2);
653
+ var script$k = TekCrudCancelButton$2;
654
654
 
655
655
  /* script */
656
- const __vue_script__$k = script$j;
656
+ const __vue_script__$k = script$k;
657
657
 
658
658
  /* template */
659
659
  var __vue_render__$k = function () {
@@ -756,7 +756,7 @@ __vue_render__$k._withStripped = true;
756
756
  /**
757
757
  * TekCrudDeleteButton component
758
758
  */
759
- let TekCrudDeleteButton = class TekCrudDeleteButton extends TekCrudButton$1 {
759
+ let TekCrudDeleteButton$2 = class TekCrudDeleteButton extends TekCrudButton$1 {
760
760
  constructor() {
761
761
  super(...arguments);
762
762
  this.instanceType = CrudDeleteButton;
@@ -764,26 +764,26 @@ let TekCrudDeleteButton = class TekCrudDeleteButton extends TekCrudButton$1 {
764
764
  };
765
765
  __decorate([
766
766
  PropWatch({ type: [String, Boolean], default: true })
767
- ], TekCrudDeleteButton.prototype, "flat", void 0);
767
+ ], TekCrudDeleteButton$2.prototype, "flat", void 0);
768
768
  __decorate([
769
769
  PropWatch({ type: [String, Boolean], default: true })
770
- ], TekCrudDeleteButton.prototype, "icon", void 0);
770
+ ], TekCrudDeleteButton$2.prototype, "icon", void 0);
771
771
  __decorate([
772
772
  PropWatch({ type: String, default: 'trashCanOutline' })
773
- ], TekCrudDeleteButton.prototype, "iconName", void 0);
773
+ ], TekCrudDeleteButton$2.prototype, "iconName", void 0);
774
774
  __decorate([
775
775
  PropWatch({ type: String, default: '#666' })
776
- ], TekCrudDeleteButton.prototype, "color", void 0);
776
+ ], TekCrudDeleteButton$2.prototype, "color", void 0);
777
777
  __decorate([
778
778
  PropWatch({ type: String, default: 'ctrl+d' })
779
- ], TekCrudDeleteButton.prototype, "clickShortcutKey", void 0);
780
- TekCrudDeleteButton = __decorate([
779
+ ], TekCrudDeleteButton$2.prototype, "clickShortcutKey", void 0);
780
+ TekCrudDeleteButton$2 = __decorate([
781
781
  Component
782
- ], TekCrudDeleteButton);
783
- var script$i = TekCrudDeleteButton;
782
+ ], TekCrudDeleteButton$2);
783
+ var script$j = TekCrudDeleteButton$2;
784
784
 
785
785
  /* script */
786
- const __vue_script__$j = script$i;
786
+ const __vue_script__$j = script$j;
787
787
 
788
788
  /* template */
789
789
  var __vue_render__$j = function () {
@@ -886,19 +886,19 @@ __vue_render__$j._withStripped = true;
886
886
  /**
887
887
  * TekCrudForm component
888
888
  */
889
- let TekCrudForm = class TekCrudForm extends ZdForm {
889
+ let TekCrudForm$2 = class TekCrudForm extends ZdForm {
890
890
  constructor() {
891
891
  super(...arguments);
892
892
  this.instanceType = CrudForm;
893
893
  }
894
894
  };
895
- TekCrudForm = __decorate([
895
+ TekCrudForm$2 = __decorate([
896
896
  Component
897
- ], TekCrudForm);
898
- var script$h = TekCrudForm;
897
+ ], TekCrudForm$2);
898
+ var script$i = TekCrudForm$2;
899
899
 
900
900
  /* script */
901
- const __vue_script__$i = script$h;
901
+ const __vue_script__$i = script$i;
902
902
 
903
903
  /* template */
904
904
  var __vue_render__$i = function () {
@@ -993,7 +993,7 @@ __vue_render__$i._withStripped = true;
993
993
  /* style */
994
994
  const __vue_inject_styles__$i = function (inject) {
995
995
  if (!inject) return
996
- inject("data-v-c0dcf978_0", { source: ".tek-crud-form {\n outline: none;\n overflow-x: hidden;\n padding-bottom: 4px;\n}\n.tek-crud-form > .row {\n height: 100%;\n align-content: flex-start;\n margin: 0 -12px;\n}\n.tek-crud-form > .row.row--dense {\n margin: 0 -4px;\n}", map: undefined, media: undefined });
996
+ inject("data-v-18d9c2cd_0", { source: ".tek-crud-form {\n outline: none;\n overflow-x: hidden;\n padding-bottom: 4px;\n}\n.tek-crud-form > .row {\n height: 100%;\n align-content: flex-start;\n margin: 0 -12px;\n}\n.tek-crud-form > .row.row--dense {\n margin: 0 -4px;\n}", map: undefined, media: undefined });
997
997
 
998
998
  };
999
999
  /* scoped */
@@ -1024,7 +1024,7 @@ __vue_render__$i._withStripped = true;
1024
1024
  /**
1025
1025
  * TekCrudSaveButton component
1026
1026
  */
1027
- let TekCrudSaveButton = class TekCrudSaveButton extends TekCrudButton$1 {
1027
+ let TekCrudSaveButton$2 = class TekCrudSaveButton extends TekCrudButton$1 {
1028
1028
  constructor() {
1029
1029
  super(...arguments);
1030
1030
  this.instanceType = CrudSaveButton;
@@ -1032,17 +1032,17 @@ let TekCrudSaveButton = class TekCrudSaveButton extends TekCrudButton$1 {
1032
1032
  };
1033
1033
  __decorate([
1034
1034
  PropWatch({ type: String, default: 'SAVE' })
1035
- ], TekCrudSaveButton.prototype, "label", void 0);
1035
+ ], TekCrudSaveButton$2.prototype, "label", void 0);
1036
1036
  __decorate([
1037
1037
  PropWatch({ type: String, default: 'ctrl+enter' })
1038
- ], TekCrudSaveButton.prototype, "clickShortcutKey", void 0);
1039
- TekCrudSaveButton = __decorate([
1038
+ ], TekCrudSaveButton$2.prototype, "clickShortcutKey", void 0);
1039
+ TekCrudSaveButton$2 = __decorate([
1040
1040
  Component
1041
- ], TekCrudSaveButton);
1042
- var script$g = TekCrudSaveButton;
1041
+ ], TekCrudSaveButton$2);
1042
+ var script$h = TekCrudSaveButton$2;
1043
1043
 
1044
1044
  /* script */
1045
- const __vue_script__$h = script$g;
1045
+ const __vue_script__$h = script$h;
1046
1046
 
1047
1047
  /* template */
1048
1048
  var __vue_render__$h = function () {
@@ -1143,14 +1143,14 @@ __vue_render__$h._withStripped = true;
1143
1143
  );
1144
1144
 
1145
1145
  // eslint-disable-next-line prefer-destructuring
1146
- const ZdGridEditable = components$1.ZdGridEditable;
1146
+ const ZdGridEditable$1 = components$1.ZdGridEditable;
1147
1147
  /**
1148
1148
  * TekGrid component
1149
1149
  */
1150
- let TekGrid$1 = class TekGrid extends ZdGridEditable {
1150
+ let TekGrid$5 = class TekGrid extends ZdGridEditable$1 {
1151
1151
  constructor() {
1152
1152
  super(...arguments);
1153
- this.instanceType = TekGrid$3;
1153
+ this.instanceType = TekGrid$6;
1154
1154
  this.visibleRowsLength = 0;
1155
1155
  this.debouncedDatasourceGet = debounce((instance) => {
1156
1156
  const event = new Event('change', { cancelable: true });
@@ -1569,106 +1569,109 @@ let TekGrid$1 = class TekGrid extends ZdGridEditable {
1569
1569
  };
1570
1570
  __decorate([
1571
1571
  PropWatch({ type: [String], default: '' })
1572
- ], TekGrid$1.prototype, "title", void 0);
1572
+ ], TekGrid$5.prototype, "title", void 0);
1573
1573
  __decorate([
1574
1574
  PropWatch({ type: [Boolean, String], default: false })
1575
- ], TekGrid$1.prototype, "addButton", void 0);
1575
+ ], TekGrid$5.prototype, "addButton", void 0);
1576
1576
  __decorate([
1577
1577
  PropWatch({ type: [String], default: 'none' })
1578
- ], TekGrid$1.prototype, "deleteButton", void 0);
1578
+ ], TekGrid$5.prototype, "deleteButton", void 0);
1579
1579
  __decorate([
1580
1580
  PropWatch({ type: [Boolean, String], default: false })
1581
- ], TekGrid$1.prototype, "columnsButton", void 0);
1581
+ ], TekGrid$5.prototype, "columnsButton", void 0);
1582
1582
  __decorate([
1583
1583
  Prop({ type: [Array, String], default: () => [] })
1584
- ], TekGrid$1.prototype, "columnsButtonIgnore", void 0);
1584
+ ], TekGrid$5.prototype, "columnsButtonIgnore", void 0);
1585
1585
  __decorate([
1586
1586
  PropWatch({ type: [Boolean, String], default: true })
1587
- ], TekGrid$1.prototype, "showEditButtons", void 0);
1587
+ ], TekGrid$5.prototype, "showEditButtons", void 0);
1588
1588
  __decorate([
1589
1589
  PropWatch({ type: [Boolean, String], default: false })
1590
- ], TekGrid$1.prototype, "filterButton", void 0);
1590
+ ], TekGrid$5.prototype, "filterButton", void 0);
1591
1591
  __decorate([
1592
1592
  PropWatch({ type: [Object] })
1593
- ], TekGrid$1.prototype, "modalFilterProps", void 0);
1593
+ ], TekGrid$5.prototype, "modalFilterProps", void 0);
1594
1594
  __decorate([
1595
1595
  PropWatch({ type: [Boolean, String], default: true })
1596
- ], TekGrid$1.prototype, "showSearch", void 0);
1596
+ ], TekGrid$5.prototype, "showSearch", void 0);
1597
1597
  __decorate([
1598
1598
  PropWatch({ type: [Boolean, String], default: false })
1599
- ], TekGrid$1.prototype, "columnFilterButton", void 0);
1599
+ ], TekGrid$5.prototype, "columnFilterButton", void 0);
1600
1600
  __decorate([
1601
1601
  PropWatch({ type: Boolean, default: false })
1602
- ], TekGrid$1.prototype, "hideActions", void 0);
1602
+ ], TekGrid$5.prototype, "hideActions", void 0);
1603
1603
  __decorate([
1604
1604
  Prop({ type: [Array], default: () => [] })
1605
- ], TekGrid$1.prototype, "actions", void 0);
1605
+ ], TekGrid$5.prototype, "actions", void 0);
1606
1606
  __decorate([
1607
1607
  PropWatch({ type: [String, Boolean], default: true })
1608
- ], TekGrid$1.prototype, "dragColumns", void 0);
1608
+ ], TekGrid$5.prototype, "dragColumns", void 0);
1609
1609
  __decorate([
1610
1610
  PropWatch({ type: [String, Boolean], default: true })
1611
- ], TekGrid$1.prototype, "resizeColumns", void 0);
1611
+ ], TekGrid$5.prototype, "resizeColumns", void 0);
1612
1612
  __decorate([
1613
1613
  PropWatch({ type: [String, Boolean], default: true })
1614
- ], TekGrid$1.prototype, "showLayoutOptions", void 0);
1614
+ ], TekGrid$5.prototype, "showLayoutOptions", void 0);
1615
1615
  __decorate([
1616
1616
  PropWatch({ type: [String, Boolean], default: false })
1617
- ], TekGrid$1.prototype, "showExport", void 0);
1617
+ ], TekGrid$5.prototype, "showExport", void 0);
1618
1618
  __decorate([
1619
1619
  PropWatch({ type: [String, Boolean], default: true })
1620
- ], TekGrid$1.prototype, "showReload", void 0);
1620
+ ], TekGrid$5.prototype, "showReload", void 0);
1621
1621
  __decorate([
1622
1622
  PropWatch({ type: [String, Array] })
1623
- ], TekGrid$1.prototype, "exportConfig", void 0);
1623
+ ], TekGrid$5.prototype, "exportConfig", void 0);
1624
1624
  __decorate([
1625
1625
  Prop({ type: [Array] })
1626
- ], TekGrid$1.prototype, "exportActions", void 0);
1626
+ ], TekGrid$5.prototype, "exportActions", void 0);
1627
1627
  __decorate([
1628
1628
  PropWatch({ type: [String, Boolean], default: false })
1629
- ], TekGrid$1.prototype, "groupsOpened", void 0);
1629
+ ], TekGrid$5.prototype, "groupsOpened", void 0);
1630
1630
  __decorate([
1631
1631
  PropWatch({ type: [String, Boolean], default: true })
1632
- ], TekGrid$1.prototype, "showSummaryTotal", void 0);
1632
+ ], TekGrid$5.prototype, "showSummaryTotal", void 0);
1633
1633
  __decorate([
1634
1634
  PropWatch({ type: [String, Boolean], default: true })
1635
- ], TekGrid$1.prototype, "mainGrid", void 0);
1635
+ ], TekGrid$5.prototype, "mainGrid", void 0);
1636
1636
  __decorate([
1637
1637
  PropWatch({ type: [String], default: undefined })
1638
- ], TekGrid$1.prototype, "xlsDefaultType", void 0);
1638
+ ], TekGrid$5.prototype, "xlsDefaultType", void 0);
1639
1639
  __decorate([
1640
1640
  PropWatch({
1641
1641
  type: [String, Boolean],
1642
1642
  default: Config.gridShowCheckboxAllFilter,
1643
1643
  })
1644
- ], TekGrid$1.prototype, "showCheckboxAllFilter", void 0);
1644
+ ], TekGrid$5.prototype, "showCheckboxAllFilter", void 0);
1645
1645
  __decorate([
1646
1646
  PropWatch({ type: [Boolean], default: true })
1647
- ], TekGrid$1.prototype, "toolbarOpened", void 0);
1647
+ ], TekGrid$5.prototype, "toolbarOpened", void 0);
1648
1648
  __decorate([
1649
1649
  PropWatch({ type: [Object] })
1650
- ], TekGrid$1.prototype, "defaultFilter", void 0);
1650
+ ], TekGrid$5.prototype, "defaultFilter", void 0);
1651
1651
  __decorate([
1652
1652
  PropWatch({ type: [String] })
1653
- ], TekGrid$1.prototype, "reportTitle", void 0);
1653
+ ], TekGrid$5.prototype, "reportTitle", void 0);
1654
+ __decorate([
1655
+ PropWatch({ type: [Array] })
1656
+ ], TekGrid$5.prototype, "toolbarConfig", void 0);
1654
1657
  __decorate([
1655
1658
  Prop({
1656
1659
  type: Array,
1657
1660
  default: () => undefined,
1658
1661
  })
1659
- ], TekGrid$1.prototype, "toolbarSlot", void 0);
1662
+ ], TekGrid$5.prototype, "toolbarSlot", void 0);
1660
1663
  __decorate([
1661
1664
  Watch('instance.title')
1662
- ], TekGrid$1.prototype, "updateTitle", null);
1663
- TekGrid$1 = __decorate([
1665
+ ], TekGrid$5.prototype, "updateTitle", null);
1666
+ TekGrid$5 = __decorate([
1664
1667
  Component({
1665
1668
  mixins: [EditableMixin, NavigableTableMixin],
1666
1669
  })
1667
- ], TekGrid$1);
1668
- var TekGrid$2 = TekGrid$1;
1670
+ ], TekGrid$5);
1671
+ var script$g = TekGrid$5;
1669
1672
 
1670
1673
  /* script */
1671
- const __vue_script__$g = TekGrid$2;
1674
+ const __vue_script__$g = script$g;
1672
1675
 
1673
1676
  /* template */
1674
1677
  var __vue_render__$g = function () {
@@ -2880,7 +2883,7 @@ __vue_render__$g._withStripped = true;
2880
2883
  /* style */
2881
2884
  const __vue_inject_styles__$g = function (inject) {
2882
2885
  if (!inject) return
2883
- inject("data-v-241bc9e5_0", { source: ".tek-grid .zd-table-cell-text-first {\n display: inline-flex;\n width: 100%;\n}\n.tek-grid .zd-grid-toolbar {\n height: 38px;\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 flex-grow: 1;\n line-height: 22px;\n color: var(--v-primary-base);\n}\n.tek-grid table thead tr th.zd-table-cell.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 5;\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.theme--light {\n background: #f6f6f6;\n}\n.tek-grid table tbody tr.footer.theme--dark {\n background: #3b3b3b;\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: var(--row-active-color);\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-first-group-cell {\n display: flex;\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 .zd-table-group-two-plus-container {\n display: flex;\n height: 100%;\n align-items: center;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation {\n top: unset;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation :not(.first-group) {\n margin-left: 10px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation.first-group {\n width: 14px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\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 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}\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 .zd-table-two-plus-groups {\n display: flex !important;\n}\n.tek-grid table .zd-table-two-plus-groups .zd-table-cell-text {\n position: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation {\n top: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\n}\n.tek-grid table .tek-grid-body-group-identation {\n width: 8px;\n display: flex;\n position: relative;\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: 1rem;\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 top: -10%;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer-no-line {\n border-left: none;\n}\n.tek-grid table .footer .zd-grid-row-checkbox {\n display: none;\n}\n.tek-grid .zd-skeleton-table-cell .v-skeleton-loader__table-cell {\n height: auto;\n}\n.tek-grid-export-landscape i {\n transform: rotate(-90deg);\n}\n.tek-grid-export-multioption-text {\n padding-left: 3px;\n font-size: var(--zd-font-body4-size);\n font-weight: var(--zd-font-body4-weight);\n cursor: default;\n}\n.tekgrid-actions-dropdown > * {\n display: block;\n}\n.tek-grid-column-filter-menu {\n padding: 12px 12px 0 12px;\n max-height: 300px;\n}\n.tek-grid-column-filter-menu.theme--light {\n background: #fff;\n}\n.tek-grid-column-filter-menu.theme--dark {\n background: #1e1e1e;\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}\n.is-rotated {\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n}", map: undefined, media: undefined });
2886
+ inject("data-v-20634d70_0", { source: ".tek-grid .zd-table-cell-text-first {\n display: inline-flex;\n width: 100%;\n}\n.tek-grid .zd-grid-toolbar {\n height: 38px;\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 flex-grow: 1;\n line-height: 22px;\n color: var(--v-primary-base);\n}\n.tek-grid table thead tr th.zd-table-cell.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 5;\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.theme--light {\n background: #f6f6f6;\n}\n.tek-grid table tbody tr.footer.theme--dark {\n background: #3b3b3b;\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: var(--row-active-color);\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-first-group-cell {\n display: flex;\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 .zd-table-group-two-plus-container {\n display: flex;\n height: 100%;\n align-items: center;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation {\n top: unset;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation :not(.first-group) {\n margin-left: 10px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation.first-group {\n width: 14px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\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 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}\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 .zd-table-two-plus-groups {\n display: flex !important;\n}\n.tek-grid table .zd-table-two-plus-groups .zd-table-cell-text {\n position: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation {\n top: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\n}\n.tek-grid table .tek-grid-body-group-identation {\n width: 8px;\n display: flex;\n position: relative;\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: 1rem;\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 top: -10%;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer-no-line {\n border-left: none;\n}\n.tek-grid table .footer .zd-grid-row-checkbox {\n display: none;\n}\n.tek-grid .zd-skeleton-table-cell .v-skeleton-loader__table-cell {\n height: auto;\n}\n.tek-grid-export-landscape i {\n transform: rotate(-90deg);\n}\n.tek-grid-export-multioption-text {\n padding-left: 3px;\n font-size: var(--zd-font-body4-size);\n font-weight: var(--zd-font-body4-weight);\n cursor: default;\n}\n.tekgrid-actions-dropdown > * {\n display: block;\n}\n.tek-grid-column-filter-menu {\n padding: 12px 12px 0 12px;\n max-height: 300px;\n}\n.tek-grid-column-filter-menu.theme--light {\n background: #fff;\n}\n.tek-grid-column-filter-menu.theme--dark {\n background: #1e1e1e;\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}\n.is-rotated {\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n margin-right: 3.7px;\n}", map: undefined, media: undefined });
2884
2887
 
2885
2888
  };
2886
2889
  /* scoped */
@@ -2911,21 +2914,21 @@ __vue_render__$g._withStripped = true;
2911
2914
  /**
2912
2915
  * tek Grid cell identation component
2913
2916
  */
2914
- let TekGridCellIdentation = class TekGridCellIdentation extends Vue {
2917
+ let TekGridCellIdentation$2 = class TekGridCellIdentation extends Vue {
2915
2918
  };
2916
2919
  __decorate([
2917
2920
  Prop({ type: [Number] })
2918
- ], TekGridCellIdentation.prototype, "groupIndex", void 0);
2921
+ ], TekGridCellIdentation$2.prototype, "groupIndex", void 0);
2919
2922
  __decorate([
2920
2923
  Prop({ type: [Boolean] })
2921
- ], TekGridCellIdentation.prototype, "groupFooter", void 0);
2924
+ ], TekGridCellIdentation$2.prototype, "groupFooter", void 0);
2922
2925
  __decorate([
2923
2926
  Prop({ type: [Boolean] })
2924
- ], TekGridCellIdentation.prototype, "groupSummary", void 0);
2925
- TekGridCellIdentation = __decorate([
2927
+ ], TekGridCellIdentation$2.prototype, "groupSummary", void 0);
2928
+ TekGridCellIdentation$2 = __decorate([
2926
2929
  Component
2927
- ], TekGridCellIdentation);
2928
- var script$f = TekGridCellIdentation;
2930
+ ], TekGridCellIdentation$2);
2931
+ var script$f = TekGridCellIdentation$2;
2929
2932
 
2930
2933
  /* script */
2931
2934
  const __vue_script__$f = script$f;
@@ -2954,7 +2957,7 @@ __vue_render__$f._withStripped = true;
2954
2957
  /* style */
2955
2958
  const __vue_inject_styles__$f = function (inject) {
2956
2959
  if (!inject) return
2957
- inject("data-v-ae0ff78e_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: undefined, media: undefined });
2960
+ inject("data-v-83efa3d2_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: undefined, media: undefined });
2958
2961
 
2959
2962
  };
2960
2963
  /* scoped */
@@ -2982,18 +2985,18 @@ __vue_render__$f._withStripped = true;
2982
2985
  undefined
2983
2986
  );
2984
2987
 
2985
- let TekGridHeaderIndentation = class TekGridHeaderIndentation extends Vue {
2988
+ let TekGridHeaderIndentation$2 = class TekGridHeaderIndentation extends Vue {
2986
2989
  };
2987
2990
  __decorate([
2988
2991
  Prop({ type: String })
2989
- ], TekGridHeaderIndentation.prototype, "name", void 0);
2992
+ ], TekGridHeaderIndentation$2.prototype, "name", void 0);
2990
2993
  __decorate([
2991
2994
  Prop({ type: Number })
2992
- ], TekGridHeaderIndentation.prototype, "groupIndex", void 0);
2993
- TekGridHeaderIndentation = __decorate([
2995
+ ], TekGridHeaderIndentation$2.prototype, "groupIndex", void 0);
2996
+ TekGridHeaderIndentation$2 = __decorate([
2994
2997
  Component$1
2995
- ], TekGridHeaderIndentation);
2996
- var script$e = TekGridHeaderIndentation;
2998
+ ], TekGridHeaderIndentation$2);
2999
+ var script$e = TekGridHeaderIndentation$2;
2997
3000
 
2998
3001
  /* script */
2999
3002
  const __vue_script__$e = script$e;
@@ -3045,7 +3048,7 @@ __vue_render__$e._withStripped = true;
3045
3048
  undefined
3046
3049
  );
3047
3050
 
3048
- let TekGridColumnFilter = class TekGridColumnFilter extends Vue {
3051
+ let TekGridColumnFilter$2 = class TekGridColumnFilter extends Vue {
3049
3052
  itemChange(type, filterIndex, params) {
3050
3053
  this.$emit('itemChange', { type, filterIndex, params });
3051
3054
  }
@@ -3055,35 +3058,35 @@ let TekGridColumnFilter = class TekGridColumnFilter extends Vue {
3055
3058
  };
3056
3059
  __decorate([
3057
3060
  Prop({ type: Boolean, default: false })
3058
- ], TekGridColumnFilter.prototype, "hasFilterData", void 0);
3061
+ ], TekGridColumnFilter$2.prototype, "hasFilterData", void 0);
3059
3062
  __decorate([
3060
3063
  Prop({ type: Function, required: true })
3061
- ], TekGridColumnFilter.prototype, "getFilterActivatorEvents", void 0);
3064
+ ], TekGridColumnFilter$2.prototype, "getFilterActivatorEvents", void 0);
3062
3065
  __decorate([
3063
3066
  Prop({ type: Object, required: true })
3064
- ], TekGridColumnFilter.prototype, "column", void 0);
3067
+ ], TekGridColumnFilter$2.prototype, "column", void 0);
3065
3068
  __decorate([
3066
3069
  Prop({ type: Array, default: [] })
3067
- ], TekGridColumnFilter.prototype, "columnFilterOptions", void 0);
3070
+ ], TekGridColumnFilter$2.prototype, "columnFilterOptions", void 0);
3068
3071
  __decorate([
3069
3072
  Prop({ type: String, required: true })
3070
- ], TekGridColumnFilter.prototype, "instanceName", void 0);
3073
+ ], TekGridColumnFilter$2.prototype, "instanceName", void 0);
3071
3074
  __decorate([
3072
3075
  Prop({ type: Object, required: true })
3073
- ], TekGridColumnFilter.prototype, "filterRelationsDatasource", void 0);
3076
+ ], TekGridColumnFilter$2.prototype, "filterRelationsDatasource", void 0);
3074
3077
  __decorate([
3075
3078
  Prop({ type: Object, required: true })
3076
- ], TekGridColumnFilter.prototype, "filterOperationsDatasource", void 0);
3079
+ ], TekGridColumnFilter$2.prototype, "filterOperationsDatasource", void 0);
3077
3080
  __decorate([
3078
3081
  Prop({ type: Function, required: true })
3079
- ], TekGridColumnFilter.prototype, "getComponentHint", void 0);
3082
+ ], TekGridColumnFilter$2.prototype, "getComponentHint", void 0);
3080
3083
  __decorate([
3081
3084
  Prop({ type: Function, required: true })
3082
- ], TekGridColumnFilter.prototype, "getComponentType", void 0);
3083
- TekGridColumnFilter = __decorate([
3085
+ ], TekGridColumnFilter$2.prototype, "getComponentType", void 0);
3086
+ TekGridColumnFilter$2 = __decorate([
3084
3087
  Component$1
3085
- ], TekGridColumnFilter);
3086
- var script$d = TekGridColumnFilter;
3088
+ ], TekGridColumnFilter$2);
3089
+ var script$d = TekGridColumnFilter$2;
3087
3090
 
3088
3091
  /* script */
3089
3092
  const __vue_script__$d = script$d;
@@ -3300,84 +3303,895 @@ __vue_render__$d._withStripped = true;
3300
3303
  undefined
3301
3304
  );
3302
3305
 
3303
- let TekGridColumnsOptionsController = class TekGridColumnsOptionsController {
3304
- constructor(modal) {
3305
- this.columnData = {};
3306
- this.fixedColumns = [];
3307
- this.visibleColumns = [];
3308
- this.groupedColumns = [];
3309
- this.otherColumns = [];
3310
- this.aggregationData = [];
3311
- this.selectedColumnNames = [];
3312
- this.searchValue = '';
3313
- this.showGroups = true;
3314
- this.updatingSelect = false;
3315
- this.modal = modal;
3316
- }
3317
- updateArrays() {
3318
- this.fixedColumns = [];
3319
- this.visibleColumns = [];
3320
- this.groupedColumns = [];
3321
- this.otherColumns = [];
3322
- Object.keys(this.columnData).forEach((name) => {
3323
- const column = this.columnData[name];
3324
- if (this.instanceValue && this.instanceValue.ignoreColumns.indexOf(column.name) === -1) {
3325
- if (column.grouped) {
3326
- this.groupedColumns.push(column);
3327
- }
3328
- else if (column.fixed) {
3329
- this.fixedColumns.push(column);
3330
- }
3331
- else if (column.isVisible) {
3332
- this.visibleColumns.push(column);
3333
- }
3334
- else {
3335
- this.otherColumns.push(column);
3336
- }
3337
- }
3338
- });
3339
- }
3340
- set instance(instance) {
3341
- this.instanceValue = instance;
3342
- this.iterableComponent = instance.iterableComponent;
3343
- this.showGroups = instance.iterableComponent instanceof TekGrid$3;
3344
- this.aggregationData = instance.getAggregationSelectData();
3345
- this.columnData = {};
3346
- this.iterableComponent.columns.forEach((column) => {
3347
- this.columnData[column.name] = {
3348
- name: column.name,
3349
- label: column.label,
3350
- fixed: column.fixed,
3351
- isVisible: column.isVisible,
3352
- align: column.align,
3353
- grouped: column.grouped || false,
3354
- groupOpened: column.groupOpened || false,
3355
- aggregation: column.aggregation,
3356
- aggregationText: this.getAggregationText(column.aggregation),
3357
- selected: false,
3358
- };
3359
- });
3360
- this.updateArrays();
3361
- this.selectedColumnNames = [];
3362
- }
3363
- getAggregationText(aggregation) {
3364
- let result = '';
3365
- if (aggregation) {
3366
- const idx = this.aggregationData.findIndex((item) => item.value === aggregation);
3367
- if (idx !== -1) {
3368
- result = ` (${this.aggregationData[idx].text})`;
3369
- }
3370
- }
3371
- return result;
3306
+ /**
3307
+ * Teknisa component
3308
+ */
3309
+ let TekBreadcrumbHeader = class TekBreadcrumbHeader extends ZdComponent {
3310
+ constructor() {
3311
+ super(...arguments);
3312
+ this.instanceType = BreadcrumbHeader;
3372
3313
  }
3373
- columnInSearch(column) {
3374
- return (!this.searchValue || Utils.normalize(column.label).indexOf(Utils.normalize(this.searchValue)) !== -1);
3314
+ };
3315
+ __decorate([
3316
+ PropWatch({ type: String, default: '' })
3317
+ ], TekBreadcrumbHeader.prototype, "title", void 0);
3318
+ __decorate([
3319
+ Prop({ type: Object, default: {} })
3320
+ ], TekBreadcrumbHeader.prototype, "breadcrumb", void 0);
3321
+ __decorate([
3322
+ Prop({ type: Array, default: () => [] })
3323
+ ], TekBreadcrumbHeader.prototype, "rightSlot", void 0);
3324
+ TekBreadcrumbHeader = __decorate([
3325
+ Component
3326
+ ], TekBreadcrumbHeader);
3327
+ var TekBreadcrumbHeader$1 = TekBreadcrumbHeader;
3328
+
3329
+ /**
3330
+ * TekCardTitle component join an icon, title, rightSlot and a divider
3331
+ */
3332
+ let TekCardTitle = class TekCardTitle extends ZdComponentRender {
3333
+ constructor() {
3334
+ super(...arguments);
3335
+ this.instanceType = CardTitle;
3375
3336
  }
3376
- get fixedColumnData() {
3377
- return this.fixedColumns.filter(this.columnInSearch.bind(this));
3337
+ };
3338
+ __decorate([
3339
+ PropWatch({ type: String, default: '' })
3340
+ ], TekCardTitle.prototype, "title", void 0);
3341
+ __decorate([
3342
+ PropWatch({ type: String, default: '' })
3343
+ ], TekCardTitle.prototype, "subtitle", void 0);
3344
+ __decorate([
3345
+ PropWatch({ type: String, default: '' })
3346
+ ], TekCardTitle.prototype, "iconName", void 0);
3347
+ __decorate([
3348
+ Prop({ type: Array, default: () => [] })
3349
+ ], TekCardTitle.prototype, "rightSlot", void 0);
3350
+ __decorate([
3351
+ PropWatch({ type: [Boolean, String], default: true })
3352
+ ], TekCardTitle.prototype, "showDivider", void 0);
3353
+ __decorate([
3354
+ PropWatch({ type: String, default: '' })
3355
+ ], TekCardTitle.prototype, "to", void 0);
3356
+ TekCardTitle = __decorate([
3357
+ Component
3358
+ ], TekCardTitle);
3359
+ var TekCardTitle$1 = TekCardTitle;
3360
+
3361
+ /**
3362
+ * TekCrudAddButton component
3363
+ */
3364
+ let TekCrudAddButton = class TekCrudAddButton extends TekCrudButton$1 {
3365
+ constructor() {
3366
+ super(...arguments);
3367
+ this.instanceType = CrudAddButton;
3378
3368
  }
3379
- set fixedColumnData(_data) {
3380
- // do nothing
3369
+ };
3370
+ __decorate([
3371
+ PropWatch({ type: [String, Boolean], default: true })
3372
+ ], TekCrudAddButton.prototype, "flat", void 0);
3373
+ __decorate([
3374
+ PropWatch({ type: [String, Boolean], default: true })
3375
+ ], TekCrudAddButton.prototype, "icon", void 0);
3376
+ __decorate([
3377
+ PropWatch({ type: String, default: 'plus' })
3378
+ ], TekCrudAddButton.prototype, "iconName", void 0);
3379
+ __decorate([
3380
+ PropWatch({ type: String, default: '#666' })
3381
+ ], TekCrudAddButton.prototype, "color", void 0);
3382
+ __decorate([
3383
+ PropWatch({ type: String, default: 'f2' })
3384
+ ], TekCrudAddButton.prototype, "clickShortcutKey", void 0);
3385
+ TekCrudAddButton = __decorate([
3386
+ Component
3387
+ ], TekCrudAddButton);
3388
+ var TekCrudAddButton$1 = TekCrudAddButton;
3389
+
3390
+ /**
3391
+ * TekCrudCancelButton component
3392
+ */
3393
+ let TekCrudCancelButton = class TekCrudCancelButton extends TekCrudButton$1 {
3394
+ constructor() {
3395
+ super(...arguments);
3396
+ this.instanceType = CrudCancelButton;
3397
+ }
3398
+ };
3399
+ __decorate([
3400
+ PropWatch({ type: String, default: 'CANCEL' })
3401
+ ], TekCrudCancelButton.prototype, "label", void 0);
3402
+ __decorate([
3403
+ PropWatch({ type: [String, Boolean], default: true })
3404
+ ], TekCrudCancelButton.prototype, "outline", void 0);
3405
+ __decorate([
3406
+ PropWatch({ type: String, default: 'esc' })
3407
+ ], TekCrudCancelButton.prototype, "clickShortcutKey", void 0);
3408
+ TekCrudCancelButton = __decorate([
3409
+ Component
3410
+ ], TekCrudCancelButton);
3411
+ var TekCrudCancelButton$1 = TekCrudCancelButton;
3412
+
3413
+ /**
3414
+ * TekCrudDeleteButton component
3415
+ */
3416
+ let TekCrudDeleteButton = class TekCrudDeleteButton extends TekCrudButton$1 {
3417
+ constructor() {
3418
+ super(...arguments);
3419
+ this.instanceType = CrudDeleteButton;
3420
+ }
3421
+ };
3422
+ __decorate([
3423
+ PropWatch({ type: [String, Boolean], default: true })
3424
+ ], TekCrudDeleteButton.prototype, "flat", void 0);
3425
+ __decorate([
3426
+ PropWatch({ type: [String, Boolean], default: true })
3427
+ ], TekCrudDeleteButton.prototype, "icon", void 0);
3428
+ __decorate([
3429
+ PropWatch({ type: String, default: 'trashCanOutline' })
3430
+ ], TekCrudDeleteButton.prototype, "iconName", void 0);
3431
+ __decorate([
3432
+ PropWatch({ type: String, default: '#666' })
3433
+ ], TekCrudDeleteButton.prototype, "color", void 0);
3434
+ __decorate([
3435
+ PropWatch({ type: String, default: 'ctrl+d' })
3436
+ ], TekCrudDeleteButton.prototype, "clickShortcutKey", void 0);
3437
+ TekCrudDeleteButton = __decorate([
3438
+ Component
3439
+ ], TekCrudDeleteButton);
3440
+ var TekCrudDeleteButton$1 = TekCrudDeleteButton;
3441
+
3442
+ /**
3443
+ * TekCrudForm component
3444
+ */
3445
+ let TekCrudForm = class TekCrudForm extends ZdForm {
3446
+ constructor() {
3447
+ super(...arguments);
3448
+ this.instanceType = CrudForm;
3449
+ }
3450
+ };
3451
+ TekCrudForm = __decorate([
3452
+ Component
3453
+ ], TekCrudForm);
3454
+ var TekCrudForm$1 = TekCrudForm;
3455
+
3456
+ /**
3457
+ * TekCrudSaveButton component
3458
+ */
3459
+ let TekCrudSaveButton = class TekCrudSaveButton extends TekCrudButton$1 {
3460
+ constructor() {
3461
+ super(...arguments);
3462
+ this.instanceType = CrudSaveButton;
3463
+ }
3464
+ };
3465
+ __decorate([
3466
+ PropWatch({ type: String, default: 'SAVE' })
3467
+ ], TekCrudSaveButton.prototype, "label", void 0);
3468
+ __decorate([
3469
+ PropWatch({ type: String, default: 'ctrl+enter' })
3470
+ ], TekCrudSaveButton.prototype, "clickShortcutKey", void 0);
3471
+ TekCrudSaveButton = __decorate([
3472
+ Component
3473
+ ], TekCrudSaveButton);
3474
+ var TekCrudSaveButton$1 = TekCrudSaveButton;
3475
+
3476
+ // eslint-disable-next-line prefer-destructuring
3477
+ const ZdGridEditable = components$1.ZdGridEditable;
3478
+ /**
3479
+ * TekGrid component
3480
+ */
3481
+ let TekGrid$3 = class TekGrid extends ZdGridEditable {
3482
+ constructor() {
3483
+ super(...arguments);
3484
+ this.instanceType = TekGrid$6;
3485
+ this.visibleRowsLength = 0;
3486
+ this.debouncedDatasourceGet = debounce((instance) => {
3487
+ const event = new Event('change', { cancelable: true });
3488
+ instance.callEvent('beforeApplyFilter', { component: instance, event });
3489
+ if (event.defaultPrevented)
3490
+ return;
3491
+ const { datasource } = instance;
3492
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
3493
+ datasource.updateDynamicFilter();
3494
+ }
3495
+ else {
3496
+ datasource.get();
3497
+ }
3498
+ }, 500);
3499
+ this.debouncedFilterChange = debounce((column, index, params) => this.filterValueChange(column, index, params), 1000);
3500
+ this.operationList = '';
3501
+ this.defaultOperation = '';
3502
+ this.defaultRelation = '';
3503
+ this.lastFilter = '';
3504
+ }
3505
+ updateTitle(instanceUpdateTitle) {
3506
+ if (this.instance.toolbarSlot[0].name === `${this.instance.name}_gridTitle`) {
3507
+ this.instance.toolbarSlot[0].text = instanceUpdateTitle;
3508
+ }
3509
+ }
3510
+ mounted() {
3511
+ this.originalChangeLayout = this.instance.changeLayout;
3512
+ this.instance.changeLayout = this.onChangeLayout;
3513
+ this.instance.viewUpdateScrollData = this.calcScrollData;
3514
+ this.instance.viewUpdateFixedColumns = this.updateFixedColumns.bind(this);
3515
+ }
3516
+ minimumColumnWidth(column) {
3517
+ let minWidth = this.superMethods(ZdGrid).minimumColumnWidth.call(this, column);
3518
+ if (this.instance.columnFilterButton && column && column.filterable) {
3519
+ minWidth += 15;
3520
+ }
3521
+ return minWidth;
3522
+ }
3523
+ onChangeLayout(event, element) {
3524
+ if (this.originalChangeLayout) {
3525
+ this.originalChangeLayout.call(this.instance, event, element);
3526
+ }
3527
+ if (this.instance.showLayoutOptions) {
3528
+ try {
3529
+ const layoutOptions = Metadata.getInstance(`${this.instance.name}_layout_options`);
3530
+ layoutOptions.layoutEdited = true;
3531
+ }
3532
+ catch (_a) {
3533
+ // do nothing
3534
+ }
3535
+ }
3536
+ setTimeout(this.updateFixedColumns.bind(this));
3537
+ }
3538
+ getFilterActivatorEvents(on, column) {
3539
+ const events = {};
3540
+ Object.keys(on).forEach((eventName) => {
3541
+ events[eventName] = (event) => {
3542
+ this.defaultOperation = 'CONTAINS';
3543
+ this.defaultRelation = 'AND';
3544
+ this.operationList = this.getColumnFilterOptions(column).map((item) => item.operation).join(';');
3545
+ on[eventName](event);
3546
+ };
3547
+ });
3548
+ return events;
3549
+ }
3550
+ getFilterItemChange(prop, column, index, params) {
3551
+ return this.filterItemChange(prop, column, index, params);
3552
+ }
3553
+ getFilterValueChange(column, index, params) {
3554
+ return this.debouncedFilterChange(column, index, params);
3555
+ }
3556
+ isOperationArrayValues(operation) {
3557
+ return ['IN', 'NOT_IN', 'BETWEEN'].includes(operation);
3558
+ }
3559
+ getComponentType(index) {
3560
+ const operationListArray = this.operationList.split(';');
3561
+ return this.isOperationArrayValues(operationListArray[index]) ? 'ZdTextInput' : '';
3562
+ }
3563
+ getComponentHint(index) {
3564
+ const operationListArray = this.operationList.split(';');
3565
+ return this.isOperationArrayValues(operationListArray[index]) ? 'TEKGRID_MULTIPLE_VALUE_HINT' : '';
3566
+ }
3567
+ filterItemChange(prop, column, index, { component, event, element }) {
3568
+ const { name } = component;
3569
+ const valueInputName = name.replace(`-filter-${prop}-`, '-filter-value-');
3570
+ const valueInput = Metadata.getInstance(valueInputName);
3571
+ const operationListArray = this.operationList.split(';');
3572
+ if (prop === 'operation' && operationListArray[index] !== component.value) {
3573
+ operationListArray[index] = component.value;
3574
+ this.operationList = operationListArray.join(';');
3575
+ }
3576
+ try {
3577
+ valueInput.setFocus();
3578
+ }
3579
+ catch (_a) {
3580
+ // do nothing
3581
+ }
3582
+ const { datasource } = this.instance;
3583
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
3584
+ if (datasource.dynamicFilter[column.name] && datasource.dynamicFilter[column.name][index]) {
3585
+ this.lastFilter = JSON.stringify(datasource.dynamicFilter);
3586
+ const { value } = datasource.dynamicFilter[column.name][index];
3587
+ if (prop === 'operation') {
3588
+ if (this.isOperationArrayValues(component.value) && !Array.isArray(value)) {
3589
+ datasource.dynamicFilter[column.name][index].value = [value];
3590
+ }
3591
+ if (!this.isOperationArrayValues(component.value) && Array.isArray(value)) {
3592
+ [datasource.dynamicFilter[column.name][index].value] = value;
3593
+ }
3594
+ }
3595
+ datasource.dynamicFilter[column.name][index][prop] = component.value;
3596
+ if (this.lastFilter !== JSON.stringify(datasource.dynamicFilter)) {
3597
+ this.debouncedDatasourceGet(this.instance);
3598
+ this.onChangeLayout(event, element);
3599
+ }
3600
+ }
3601
+ }
3602
+ }
3603
+ convertToDateFormat(column, value, revert) {
3604
+ const dateFormat = column.componentProps.dateFormat || Config.dateFormat;
3605
+ const displayFormat = column.componentProps.displayFormat || Config.displayFormat;
3606
+ if (revert) {
3607
+ if (dayjs(value, displayFormat).isValid() || !dayjs(value, dateFormat).isValid()) {
3608
+ return value;
3609
+ }
3610
+ return dayjs(value, dateFormat).format(displayFormat);
3611
+ }
3612
+ if (dayjs(value, dateFormat).isValid() || !dayjs(value, displayFormat).isValid()) {
3613
+ return value;
3614
+ }
3615
+ return dayjs(value, displayFormat).format(dateFormat);
3616
+ }
3617
+ checkDateValueFormat(column, value, revert = false) {
3618
+ if (['ZdDate', 'ZdDateRange'].includes(column.componentProps.component)) {
3619
+ if (Array.isArray(value)) {
3620
+ return value.map((item) => this.convertToDateFormat(column, item, revert));
3621
+ }
3622
+ return this.convertToDateFormat(column, value, revert);
3623
+ }
3624
+ return value;
3625
+ }
3626
+ filterValueChange(column, index, { component, event, element }) {
3627
+ let { value } = component;
3628
+ const { datasource } = this.instance;
3629
+ if (!(element === null || element === void 0 ? void 0 : element.offsetParent))
3630
+ return;
3631
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
3632
+ this.lastFilter = JSON.stringify(datasource.dynamicFilter);
3633
+ if (value) {
3634
+ if (!datasource.dynamicFilter[column.name]) {
3635
+ datasource.dynamicFilter[column.name] = [];
3636
+ }
3637
+ if (!datasource.dynamicFilter[column.name][index]) {
3638
+ const { name } = component;
3639
+ let relation;
3640
+ if (index > 0) {
3641
+ const relationSelectName = name.replace('-filter-value-', '-filter-relation-');
3642
+ const relationSelect = Metadata.getInstance(relationSelectName);
3643
+ relation = relationSelect.value;
3644
+ }
3645
+ else {
3646
+ relation = 'AND';
3647
+ }
3648
+ const operationSelectName = name.replace('-filter-value-', '-filter-operation-');
3649
+ const operationSelect = Metadata.getInstance(operationSelectName);
3650
+ const operation = operationSelect.value;
3651
+ if (this.isOperationArrayValues(operation)) {
3652
+ value = value.split(';');
3653
+ }
3654
+ value = this.checkDateValueFormat(column, value);
3655
+ datasource.dynamicFilter[column.name].push({
3656
+ relation,
3657
+ operation,
3658
+ value,
3659
+ });
3660
+ }
3661
+ else {
3662
+ if (this.isOperationArrayValues(datasource.dynamicFilter[column.name][index].operation)) {
3663
+ value = value.split(';');
3664
+ }
3665
+ value = this.checkDateValueFormat(column, value);
3666
+ datasource.dynamicFilter[column.name][index].value = value;
3667
+ }
3668
+ }
3669
+ else if (datasource.dynamicFilter[column.name] && datasource.dynamicFilter[column.name][index]) {
3670
+ this.defaultOperation = datasource.dynamicFilter[column.name][index].operation;
3671
+ this.defaultRelation = datasource.dynamicFilter[column.name][index].relation;
3672
+ datasource.dynamicFilter[column.name].splice(index, 1);
3673
+ if (datasource.dynamicFilter[column.name].length === 1) {
3674
+ datasource.dynamicFilter[column.name][0].relation = 'AND';
3675
+ }
3676
+ if (!datasource.dynamicFilter[column.name].length) {
3677
+ delete datasource.dynamicFilter[column.name];
3678
+ }
3679
+ }
3680
+ if (this.lastFilter !== JSON.stringify(datasource.dynamicFilter)) {
3681
+ this.debouncedDatasourceGet(this.instance);
3682
+ this.onChangeLayout(event, element);
3683
+ this.clearHelperValues(column);
3684
+ }
3685
+ }
3686
+ else {
3687
+ this.lastFilter = JSON.stringify(this.instance.datasource.filter);
3688
+ if (value) {
3689
+ this.instance.datasource.addFilter(column.name, value);
3690
+ }
3691
+ else {
3692
+ this.instance.datasource.removeFilter(column.name);
3693
+ }
3694
+ if (this.lastFilter !== JSON.stringify(this.instance.datasource.filter)) {
3695
+ this.debouncedDatasourceGet(this.instance);
3696
+ this.onChangeLayout(event, element);
3697
+ this.clearHelperValues(column);
3698
+ }
3699
+ }
3700
+ }
3701
+ clearHelperValues(column) {
3702
+ if (!Array.isArray(column.filterProps)) {
3703
+ column.filterProps.helperValue = '';
3704
+ }
3705
+ else {
3706
+ column.filterProps.forEach((prop) => {
3707
+ prop.helperValue = '';
3708
+ });
3709
+ }
3710
+ }
3711
+ getColumnFilterOptions(column) {
3712
+ const filterOptions = [];
3713
+ const { datasource } = this.instance;
3714
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
3715
+ const dynamicFilter = datasource.dynamicFilter[column.name];
3716
+ if (dynamicFilter && dynamicFilter.length > 0) {
3717
+ dynamicFilter.forEach((item) => {
3718
+ let { value } = item;
3719
+ if (this.isOperationArrayValues(item.operation) && Array.isArray(value)) {
3720
+ value = this.checkDateValueFormat(column, value, true);
3721
+ value = value.join(';');
3722
+ }
3723
+ filterOptions.push(Object.assign(Object.assign({}, item), { value }));
3724
+ });
3725
+ }
3726
+ filterOptions.push({
3727
+ operation: this.defaultOperation,
3728
+ relation: this.defaultRelation,
3729
+ value: '',
3730
+ });
3731
+ }
3732
+ else {
3733
+ const option = {
3734
+ operation: undefined,
3735
+ relation: undefined,
3736
+ value: this.instance.datasource.filter[column.name] || '',
3737
+ };
3738
+ filterOptions.push(option);
3739
+ }
3740
+ return filterOptions;
3741
+ }
3742
+ isCurrentRowGroup(row) {
3743
+ const { uniqueKey, currentRow } = this.instance.datasource;
3744
+ return !!((row.group && row.groupValue === currentRow.groupValue)
3745
+ || (row[uniqueKey] && row[uniqueKey] === currentRow[uniqueKey]));
3746
+ }
3747
+ isCurrentRow(row) {
3748
+ const { uniqueKey, currentRow } = this.instance.datasource;
3749
+ return !this.instance.cellSelection && (!!((row.group && row.groupValue === currentRow.groupValue)
3750
+ || (row[uniqueKey] && row[uniqueKey] === currentRow[uniqueKey])));
3751
+ }
3752
+ getVisibleData() {
3753
+ const groupColumns = !!this.instance.groupColumnNames.length;
3754
+ if (groupColumns || (this.instance.showSummaryTotal && this.instance.summaryColumns.length)) {
3755
+ this.scrollData.visibleData = this.instance.groupedData.filter((row) => this.instance.isItemVisible(row));
3756
+ }
3757
+ else {
3758
+ this.scrollData.visibleData = this.instance.datasource.data;
3759
+ }
3760
+ }
3761
+ cellDoubleClick(row, column, event) {
3762
+ this.instance.cellDoubleClick(row, column, event, this.$el);
3763
+ }
3764
+ getData() {
3765
+ let data;
3766
+ const groupColumns = !!this.instance.groupColumnNames.length;
3767
+ if (groupColumns || (this.instance.showSummaryTotal && this.instance.summaryColumns.length)) {
3768
+ data = this.instance.groupedData;
3769
+ }
3770
+ else {
3771
+ data = this.renderedData;
3772
+ }
3773
+ this.getVisibleData();
3774
+ return data;
3775
+ }
3776
+ rowClick(row, event) {
3777
+ if (row.group || row.groupFooter || row.groupSummary) {
3778
+ this.instance.groupRowClick(row, event, this.$el);
3779
+ }
3780
+ else {
3781
+ this.instance.rowClick(row, event, this.$el);
3782
+ }
3783
+ }
3784
+ rowDoubleClick(row, event) {
3785
+ if (row.group || row.groupFooter || row.groupSummary) {
3786
+ this.instance.groupRowDoubleClick(row, event, this.$el);
3787
+ }
3788
+ else {
3789
+ this.instance.rowDoubleClick(row, event, this.$el);
3790
+ }
3791
+ }
3792
+ orderHeaders(headers) {
3793
+ return headers.sort((a, b) => {
3794
+ if (a.fixed === b.fixed)
3795
+ return 0;
3796
+ if (!a.fixed && b.fixed)
3797
+ return 1;
3798
+ return -1;
3799
+ }).filter((item) => (item instanceof TekGridColumn) && (item.isVisible));
3800
+ }
3801
+ isGroupSelected(item) {
3802
+ return item.children.every((child) => {
3803
+ const { uniqueKey } = this.instance.datasource;
3804
+ const idx = this.instance.selectedRows.findIndex((row) => child[uniqueKey] === row[uniqueKey]);
3805
+ return idx !== -1;
3806
+ });
3807
+ }
3808
+ isGroupSelectIndeterminate(item) {
3809
+ let hasSelected = false;
3810
+ let hasNotSelected = false;
3811
+ const { uniqueKey } = this.instance.datasource;
3812
+ item.children.forEach((child) => {
3813
+ const idx = this.instance.selectedRows.findIndex((row) => child[uniqueKey] === row[uniqueKey]);
3814
+ hasSelected = hasSelected || idx !== -1;
3815
+ hasNotSelected = hasNotSelected || idx === -1;
3816
+ });
3817
+ return hasSelected && hasNotSelected;
3818
+ }
3819
+ selectGroup(item, event) {
3820
+ const { uniqueKey } = this.instance.datasource;
3821
+ const isSelected = this.isGroupSelected(item);
3822
+ if (!isSelected) {
3823
+ item.children.forEach((child) => {
3824
+ const idx = this.instance.selectedRows.findIndex((row) => child[uniqueKey] === row[uniqueKey]);
3825
+ if (idx === -1) {
3826
+ this.instance.selectedRows.push(child);
3827
+ }
3828
+ });
3829
+ }
3830
+ else {
3831
+ this.instance.selectedRows = this.instance.selectedRows.filter((row) => {
3832
+ const idx = item.children.findIndex((child) => child[uniqueKey] === row[uniqueKey]);
3833
+ return idx === -1;
3834
+ });
3835
+ }
3836
+ this.selectGroupRowClick(item, !isSelected, event);
3837
+ }
3838
+ selectGroupRowClick(row, isSelected, event) {
3839
+ this.$nextTick(() => {
3840
+ this.instance.selectGroupClick(row, isSelected, event, this.$el);
3841
+ });
3842
+ }
3843
+ get headers() {
3844
+ this.$nextTick(() => {
3845
+ if (this.$el)
3846
+ this.updateFixedColumns.call(this);
3847
+ });
3848
+ return this.instance.columns;
3849
+ }
3850
+ getColumnsDOMOrder() {
3851
+ return this.orderHeaders(this.instance.columns);
3852
+ }
3853
+ resizeMouseMoveHandler(event) {
3854
+ this.superMethods(ZdGrid).resizeMouseMoveHandler.call(this, event);
3855
+ }
3856
+ checkIfVirtualRow(item) {
3857
+ this.visibleRowsLength = this.scrollData.visibleData.length;
3858
+ const { uniqueKey } = this.instance.datasource;
3859
+ const index = this.scrollData.visibleData.findIndex((row) => {
3860
+ if (Object.keys(row).length !== Object.keys(item).length) {
3861
+ return false;
3862
+ }
3863
+ if (item.group) {
3864
+ if (item.groupColumnName === row.groupColumnName && item.groupValue === row.groupValue)
3865
+ return true;
3866
+ }
3867
+ else if (item.groupFooter) {
3868
+ if (item.groupIndex === row.groupIndex && item.groupValue === row.groupValue)
3869
+ return true;
3870
+ }
3871
+ else if (item.groupSummary && row.groupSummary)
3872
+ return true;
3873
+ else
3874
+ return (item[uniqueKey] === row[uniqueKey]);
3875
+ return false;
3876
+ });
3877
+ const startIndex = this.scrollData.start - this.instance.virtualScrollCache;
3878
+ const endIndex = this.scrollData.start + this.scrollData.perPage + this.instance.virtualScrollCache;
3879
+ return (!this.instance.virtualScroll
3880
+ || (index >= startIndex && index <= endIndex));
3881
+ }
3882
+ get getEndHeight() {
3883
+ if (this.instance.groupColumns) {
3884
+ const finalIndex = Math.max(this.visibleRowsLength - this.scrollData.start
3885
+ - this.scrollData.perPage - this.instance.virtualScrollCache, 0);
3886
+ const { rowHeight } = this.scrollData;
3887
+ return finalIndex * rowHeight;
3888
+ }
3889
+ return this.scrollData.endHeight;
3890
+ }
3891
+ openGroup(item) {
3892
+ this.instance.openGroup(item);
3893
+ this.getVisibleData();
3894
+ }
3895
+ isCellEditable(row, column, canEdit) {
3896
+ const rowKey = this.rowKey(row);
3897
+ const cellsApplied = (this.instance.cellsApplied[rowKey] || {})[column.name];
3898
+ return Object.assign(Object.assign({}, column), cellsApplied).editable && canEdit && !row.groupFooter;
3899
+ }
3900
+ };
3901
+ __decorate([
3902
+ PropWatch({ type: [String], default: '' })
3903
+ ], TekGrid$3.prototype, "title", void 0);
3904
+ __decorate([
3905
+ PropWatch({ type: [Boolean, String], default: false })
3906
+ ], TekGrid$3.prototype, "addButton", void 0);
3907
+ __decorate([
3908
+ PropWatch({ type: [String], default: 'none' })
3909
+ ], TekGrid$3.prototype, "deleteButton", void 0);
3910
+ __decorate([
3911
+ PropWatch({ type: [Boolean, String], default: false })
3912
+ ], TekGrid$3.prototype, "columnsButton", void 0);
3913
+ __decorate([
3914
+ Prop({ type: [Array, String], default: () => [] })
3915
+ ], TekGrid$3.prototype, "columnsButtonIgnore", void 0);
3916
+ __decorate([
3917
+ PropWatch({ type: [Boolean, String], default: true })
3918
+ ], TekGrid$3.prototype, "showEditButtons", void 0);
3919
+ __decorate([
3920
+ PropWatch({ type: [Boolean, String], default: false })
3921
+ ], TekGrid$3.prototype, "filterButton", void 0);
3922
+ __decorate([
3923
+ PropWatch({ type: [Object] })
3924
+ ], TekGrid$3.prototype, "modalFilterProps", void 0);
3925
+ __decorate([
3926
+ PropWatch({ type: [Boolean, String], default: true })
3927
+ ], TekGrid$3.prototype, "showSearch", void 0);
3928
+ __decorate([
3929
+ PropWatch({ type: [Boolean, String], default: false })
3930
+ ], TekGrid$3.prototype, "columnFilterButton", void 0);
3931
+ __decorate([
3932
+ PropWatch({ type: Boolean, default: false })
3933
+ ], TekGrid$3.prototype, "hideActions", void 0);
3934
+ __decorate([
3935
+ Prop({ type: [Array], default: () => [] })
3936
+ ], TekGrid$3.prototype, "actions", void 0);
3937
+ __decorate([
3938
+ PropWatch({ type: [String, Boolean], default: true })
3939
+ ], TekGrid$3.prototype, "dragColumns", void 0);
3940
+ __decorate([
3941
+ PropWatch({ type: [String, Boolean], default: true })
3942
+ ], TekGrid$3.prototype, "resizeColumns", void 0);
3943
+ __decorate([
3944
+ PropWatch({ type: [String, Boolean], default: true })
3945
+ ], TekGrid$3.prototype, "showLayoutOptions", void 0);
3946
+ __decorate([
3947
+ PropWatch({ type: [String, Boolean], default: false })
3948
+ ], TekGrid$3.prototype, "showExport", void 0);
3949
+ __decorate([
3950
+ PropWatch({ type: [String, Boolean], default: true })
3951
+ ], TekGrid$3.prototype, "showReload", void 0);
3952
+ __decorate([
3953
+ PropWatch({ type: [String, Array] })
3954
+ ], TekGrid$3.prototype, "exportConfig", void 0);
3955
+ __decorate([
3956
+ Prop({ type: [Array] })
3957
+ ], TekGrid$3.prototype, "exportActions", void 0);
3958
+ __decorate([
3959
+ PropWatch({ type: [String, Boolean], default: false })
3960
+ ], TekGrid$3.prototype, "groupsOpened", void 0);
3961
+ __decorate([
3962
+ PropWatch({ type: [String, Boolean], default: true })
3963
+ ], TekGrid$3.prototype, "showSummaryTotal", void 0);
3964
+ __decorate([
3965
+ PropWatch({ type: [String, Boolean], default: true })
3966
+ ], TekGrid$3.prototype, "mainGrid", void 0);
3967
+ __decorate([
3968
+ PropWatch({ type: [String], default: undefined })
3969
+ ], TekGrid$3.prototype, "xlsDefaultType", void 0);
3970
+ __decorate([
3971
+ PropWatch({
3972
+ type: [String, Boolean],
3973
+ default: Config.gridShowCheckboxAllFilter,
3974
+ })
3975
+ ], TekGrid$3.prototype, "showCheckboxAllFilter", void 0);
3976
+ __decorate([
3977
+ PropWatch({ type: [Boolean], default: true })
3978
+ ], TekGrid$3.prototype, "toolbarOpened", void 0);
3979
+ __decorate([
3980
+ PropWatch({ type: [Object] })
3981
+ ], TekGrid$3.prototype, "defaultFilter", void 0);
3982
+ __decorate([
3983
+ PropWatch({ type: [String] })
3984
+ ], TekGrid$3.prototype, "reportTitle", void 0);
3985
+ __decorate([
3986
+ PropWatch({ type: [Array] })
3987
+ ], TekGrid$3.prototype, "toolbarConfig", void 0);
3988
+ __decorate([
3989
+ Prop({
3990
+ type: Array,
3991
+ default: () => undefined,
3992
+ })
3993
+ ], TekGrid$3.prototype, "toolbarSlot", void 0);
3994
+ __decorate([
3995
+ Watch('instance.title')
3996
+ ], TekGrid$3.prototype, "updateTitle", null);
3997
+ TekGrid$3 = __decorate([
3998
+ Component({
3999
+ mixins: [EditableMixin, NavigableTableMixin],
4000
+ })
4001
+ ], TekGrid$3);
4002
+ var TekGrid$4 = TekGrid$3;
4003
+
4004
+ /**
4005
+ * tek Grid cell identation component
4006
+ */
4007
+ let TekGridCellIdentation = class TekGridCellIdentation extends Vue {
4008
+ };
4009
+ __decorate([
4010
+ Prop({ type: [Number] })
4011
+ ], TekGridCellIdentation.prototype, "groupIndex", void 0);
4012
+ __decorate([
4013
+ Prop({ type: [Boolean] })
4014
+ ], TekGridCellIdentation.prototype, "groupFooter", void 0);
4015
+ __decorate([
4016
+ Prop({ type: [Boolean] })
4017
+ ], TekGridCellIdentation.prototype, "groupSummary", void 0);
4018
+ TekGridCellIdentation = __decorate([
4019
+ Component
4020
+ ], TekGridCellIdentation);
4021
+ var TekGridCellIdentation$1 = TekGridCellIdentation;
4022
+
4023
+ let TekGridHeaderIndentation = class TekGridHeaderIndentation extends Vue {
4024
+ };
4025
+ __decorate([
4026
+ Prop({ type: String })
4027
+ ], TekGridHeaderIndentation.prototype, "name", void 0);
4028
+ __decorate([
4029
+ Prop({ type: Number })
4030
+ ], TekGridHeaderIndentation.prototype, "groupIndex", void 0);
4031
+ TekGridHeaderIndentation = __decorate([
4032
+ Component$1
4033
+ ], TekGridHeaderIndentation);
4034
+ var TekGridHeaderIndentation$1 = TekGridHeaderIndentation;
4035
+
4036
+ let TekGridColumnFilter = class TekGridColumnFilter extends Vue {
4037
+ itemChange(type, filterIndex, params) {
4038
+ this.$emit('itemChange', { type, filterIndex, params });
4039
+ }
4040
+ valueChange(filterIndex, params) {
4041
+ this.$emit('valueChange', { filterIndex, params });
4042
+ }
4043
+ };
4044
+ __decorate([
4045
+ Prop({ type: Boolean, default: false })
4046
+ ], TekGridColumnFilter.prototype, "hasFilterData", void 0);
4047
+ __decorate([
4048
+ Prop({ type: Function, required: true })
4049
+ ], TekGridColumnFilter.prototype, "getFilterActivatorEvents", void 0);
4050
+ __decorate([
4051
+ Prop({ type: Object, required: true })
4052
+ ], TekGridColumnFilter.prototype, "column", void 0);
4053
+ __decorate([
4054
+ Prop({ type: Array, default: [] })
4055
+ ], TekGridColumnFilter.prototype, "columnFilterOptions", void 0);
4056
+ __decorate([
4057
+ Prop({ type: String, required: true })
4058
+ ], TekGridColumnFilter.prototype, "instanceName", void 0);
4059
+ __decorate([
4060
+ Prop({ type: Object, required: true })
4061
+ ], TekGridColumnFilter.prototype, "filterRelationsDatasource", void 0);
4062
+ __decorate([
4063
+ Prop({ type: Object, required: true })
4064
+ ], TekGridColumnFilter.prototype, "filterOperationsDatasource", void 0);
4065
+ __decorate([
4066
+ Prop({ type: Function, required: true })
4067
+ ], TekGridColumnFilter.prototype, "getComponentHint", void 0);
4068
+ __decorate([
4069
+ Prop({ type: Function, required: true })
4070
+ ], TekGridColumnFilter.prototype, "getComponentType", void 0);
4071
+ TekGridColumnFilter = __decorate([
4072
+ Component$1
4073
+ ], TekGridColumnFilter);
4074
+ var TekGridColumnFilter$1 = TekGridColumnFilter;
4075
+
4076
+ /**
4077
+ * TekDragGrid component
4078
+ */
4079
+ let TekDragGrid$1 = class TekDragGrid extends TekGrid$4 {
4080
+ constructor() {
4081
+ super(...arguments);
4082
+ this.instanceType = TekDragGrid$3;
4083
+ this.dragColumnWidth = 24;
4084
+ }
4085
+ dragOnMove(event) {
4086
+ return this.instance.onDragMove(event, event.draggedContext.element, this.$el);
4087
+ }
4088
+ dragOnStart(event) {
4089
+ this.instance.onDragStart(event, this.instance.datasource.data[event.oldIndex], this.$el);
4090
+ }
4091
+ dragOnEnd(event) {
4092
+ this.instance.onDragEnd(event, this.instance.datasource.data[event.newIndex], this.$el);
4093
+ }
4094
+ updateFixedColumns() {
4095
+ return updateDraggableFixedColumns.bind(this)(this.dragColumnWidth);
4096
+ }
4097
+ get cssVars() {
4098
+ return {
4099
+ '--drag-column-width': `${this.dragColumnWidth}px`,
4100
+ };
4101
+ }
4102
+ };
4103
+ __decorate([
4104
+ PropWatch({ type: String, default: '' })
4105
+ ], TekDragGrid$1.prototype, "orderColumnName", void 0);
4106
+ __decorate([
4107
+ PropWatch({ type: String, default: 'asc' })
4108
+ ], TekDragGrid$1.prototype, "orderMode", void 0);
4109
+ TekDragGrid$1 = __decorate([
4110
+ Component({
4111
+ mixins: [EditableMixin, NavigableTableMixin],
4112
+ components: { draggable, ZdDragGridHandle, ZdDragGridHandleHeader },
4113
+ })
4114
+ ], TekDragGrid$1);
4115
+ var TekDragGrid$2 = TekDragGrid$1;
4116
+
4117
+ let TekGridColumnsOptionsController = class TekGridColumnsOptionsController {
4118
+ constructor(modal) {
4119
+ this.columnData = {};
4120
+ this.fixedColumns = [];
4121
+ this.visibleColumns = [];
4122
+ this.groupedColumns = [];
4123
+ this.otherColumns = [];
4124
+ this.aggregationData = [];
4125
+ this.selectedColumnNames = [];
4126
+ this.searchValue = '';
4127
+ this.showGroups = true;
4128
+ this.updatingSelect = false;
4129
+ this.modal = modal;
4130
+ }
4131
+ updateArrays() {
4132
+ this.fixedColumns = [];
4133
+ this.visibleColumns = [];
4134
+ this.groupedColumns = [];
4135
+ this.otherColumns = [];
4136
+ Object.keys(this.columnData).forEach((name) => {
4137
+ const column = this.columnData[name];
4138
+ if (this.instanceValue && this.instanceValue.ignoreColumns.indexOf(column.name) === -1) {
4139
+ if (column.grouped) {
4140
+ this.groupedColumns.push(column);
4141
+ }
4142
+ else if (column.fixed) {
4143
+ this.fixedColumns.push(column);
4144
+ }
4145
+ else if (column.isVisible) {
4146
+ this.visibleColumns.push(column);
4147
+ }
4148
+ else {
4149
+ this.otherColumns.push(column);
4150
+ }
4151
+ }
4152
+ });
4153
+ }
4154
+ set instance(instance) {
4155
+ this.instanceValue = instance;
4156
+ this.iterableComponent = instance.iterableComponent;
4157
+ this.showGroups = instance.iterableComponent instanceof TekGrid$6;
4158
+ this.aggregationData = instance.getAggregationSelectData();
4159
+ this.columnData = {};
4160
+ this.iterableComponent.columns.forEach((column) => {
4161
+ this.columnData[column.name] = {
4162
+ name: column.name,
4163
+ label: column.label,
4164
+ fixed: column.fixed,
4165
+ isVisible: column.isVisible,
4166
+ align: column.align,
4167
+ grouped: column.grouped || false,
4168
+ groupOpened: column.groupOpened || false,
4169
+ aggregation: column.aggregation,
4170
+ aggregationText: this.getAggregationText(column.aggregation),
4171
+ selected: false,
4172
+ };
4173
+ });
4174
+ this.updateArrays();
4175
+ this.selectedColumnNames = [];
4176
+ }
4177
+ getAggregationText(aggregation) {
4178
+ let result = '';
4179
+ if (aggregation) {
4180
+ const idx = this.aggregationData.findIndex((item) => item.value === aggregation);
4181
+ if (idx !== -1) {
4182
+ result = ` (${this.aggregationData[idx].text})`;
4183
+ }
4184
+ }
4185
+ return result;
4186
+ }
4187
+ columnInSearch(column) {
4188
+ return (!this.searchValue || Utils.normalize(column.label).indexOf(Utils.normalize(this.searchValue)) !== -1);
4189
+ }
4190
+ get fixedColumnData() {
4191
+ return this.fixedColumns.filter(this.columnInSearch.bind(this));
4192
+ }
4193
+ set fixedColumnData(_data) {
4194
+ // do nothing
3381
4195
  }
3382
4196
  get visibleColumnData() {
3383
4197
  return this.visibleColumns.filter(this.columnInSearch.bind(this));
@@ -3629,7 +4443,7 @@ let TekGridColumnsOptionsController = class TekGridColumnsOptionsController {
3629
4443
  }
3630
4444
  columnContainerMounted({ element }) {
3631
4445
  if (element) {
3632
- Sortable.create(element, {
4446
+ sortable.create(element, {
3633
4447
  handle: '.tek-grid-column-option-box',
3634
4448
  group: 'column-container',
3635
4449
  filter: '.no-data, .tek-grid-column-option-grouped-true',
@@ -4200,10 +5014,10 @@ TekGridColumnsOptionsModal.modalDef = {
4200
5014
  /**
4201
5015
  * TekGrid Columns Button component
4202
5016
  */
4203
- let TekGridColumnsButton = class TekGridColumnsButton extends ZdIterableColumnsButton {
5017
+ let TekGridColumnsButton$1 = class TekGridColumnsButton extends ZdIterableColumnsButton {
4204
5018
  constructor() {
4205
5019
  super(...arguments);
4206
- this.instanceType = TekGridColumnsButton$1;
5020
+ this.instanceType = TekGridColumnsButton$3;
4207
5021
  this.menuIsOpened = false;
4208
5022
  this.sortableInitialized = false;
4209
5023
  }
@@ -4213,7 +5027,7 @@ let TekGridColumnsButton = class TekGridColumnsButton extends ZdIterableColumnsB
4213
5027
  this.$nextTick(() => {
4214
5028
  const columnsTableBody = document.querySelector(`#${this.instance.name}_columns_table tbody`);
4215
5029
  if (columnsTableBody) {
4216
- Sortable.create(columnsTableBody, {
5030
+ sortable.create(columnsTableBody, {
4217
5031
  handle: '.sortHandle',
4218
5032
  dragClass: 'tek-grid-columns-button-sortable-drag',
4219
5033
  onEnd: this.sortEnd,
@@ -4249,24 +5063,24 @@ let TekGridColumnsButton = class TekGridColumnsButton extends ZdIterableColumnsB
4249
5063
  };
4250
5064
  __decorate([
4251
5065
  PropWatch({ type: [Boolean, String], default: false })
4252
- ], TekGridColumnsButton.prototype, "hideGroups", void 0);
5066
+ ], TekGridColumnsButton$1.prototype, "hideGroups", void 0);
4253
5067
  __decorate([
4254
5068
  Watch('menuIsOpened')
4255
- ], TekGridColumnsButton.prototype, "menuOpenedChange", null);
4256
- TekGridColumnsButton = __decorate([
5069
+ ], TekGridColumnsButton$1.prototype, "menuOpenedChange", null);
5070
+ TekGridColumnsButton$1 = __decorate([
4257
5071
  Component
4258
- ], TekGridColumnsButton);
4259
- var script$c = TekGridColumnsButton;
5072
+ ], TekGridColumnsButton$1);
5073
+ var TekGridColumnsButton$2 = TekGridColumnsButton$1;
4260
5074
 
4261
5075
  // eslint-disable-next-line prefer-destructuring
4262
- const ZdButton = components$1.ZdButton;
5076
+ const ZdButton$1 = components$1.ZdButton;
4263
5077
  /**
4264
5078
  * TekGrid Columns Button component
4265
5079
  */
4266
- let TekGridFilterButton = class TekGridFilterButton extends ZdButton {
5080
+ let TekGridFilterButton$1 = class TekGridFilterButton extends ZdButton$1 {
4267
5081
  constructor() {
4268
5082
  super(...arguments);
4269
- this.instanceType = TekGridFilterButton$1;
5083
+ this.instanceType = TekGridFilterButton$3;
4270
5084
  }
4271
5085
  filterClick({ event }) {
4272
5086
  this.instance.click(event);
@@ -4293,25 +5107,25 @@ let TekGridFilterButton = class TekGridFilterButton extends ZdButton {
4293
5107
  };
4294
5108
  __decorate([
4295
5109
  PropWatch({ type: [String], default: '' })
4296
- ], TekGridFilterButton.prototype, "gridName", void 0);
5110
+ ], TekGridFilterButton$1.prototype, "gridName", void 0);
4297
5111
  __decorate([
4298
5112
  PropWatch({ type: [Object, String], default: () => { } })
4299
- ], TekGridFilterButton.prototype, "grid", void 0);
5113
+ ], TekGridFilterButton$1.prototype, "grid", void 0);
4300
5114
  __decorate([
4301
5115
  PropWatch({ type: [Boolean, String], default: false })
4302
- ], TekGridFilterButton.prototype, "showCheckboxAll", void 0);
4303
- TekGridFilterButton = __decorate([
5116
+ ], TekGridFilterButton$1.prototype, "showCheckboxAll", void 0);
5117
+ TekGridFilterButton$1 = __decorate([
4304
5118
  Component
4305
- ], TekGridFilterButton);
4306
- var script$b = TekGridFilterButton;
5119
+ ], TekGridFilterButton$1);
5120
+ var TekGridFilterButton$2 = TekGridFilterButton$1;
4307
5121
 
4308
5122
  /**
4309
5123
  * TekGridLayoutOptions component
4310
5124
  */
4311
- let TekGridLayoutOptions = class TekGridLayoutOptions extends ZdComponentRender {
5125
+ let TekGridLayoutOptions$1 = class TekGridLayoutOptions extends ZdComponentRender {
4312
5126
  constructor() {
4313
5127
  super(...arguments);
4314
- this.instanceType = TekGridLayoutOptions$1;
5128
+ this.instanceType = TekGridLayoutOptions$3;
4315
5129
  }
4316
5130
  created() {
4317
5131
  this.instance.viewApplyLayout = this.applyLayout;
@@ -4437,7 +5251,7 @@ let TekGridLayoutOptions = class TekGridLayoutOptions extends ZdComponentRender
4437
5251
  !== oldDynamicFilter)
4438
5252
  && !groupParamsChanged) {
4439
5253
  // Se os parametros de agrupamento tiverem sido alterados um get é feito automaticamente
4440
- if (grid instanceof TekGrid$3) {
5254
+ if (grid instanceof TekGrid$6) {
4441
5255
  grid.loadAfterTasks();
4442
5256
  }
4443
5257
  else {
@@ -4540,15 +5354,15 @@ let TekGridLayoutOptions = class TekGridLayoutOptions extends ZdComponentRender
4540
5354
  event.stopImmediatePropagation();
4541
5355
  }
4542
5356
  };
4543
- TekGridLayoutOptions = __decorate([
5357
+ TekGridLayoutOptions$1 = __decorate([
4544
5358
  Component
4545
- ], TekGridLayoutOptions);
4546
- var script$a = TekGridLayoutOptions;
5359
+ ], TekGridLayoutOptions$1);
5360
+ var TekGridLayoutOptions$2 = TekGridLayoutOptions$1;
4547
5361
 
4548
5362
  /**
4549
5363
  * DocTable component
4550
5364
  */
4551
- let TekImage = class TekImage extends ZdComponent {
5365
+ let TekImage$1 = class TekImage extends ZdComponent {
4552
5366
  constructor() {
4553
5367
  super(...arguments);
4554
5368
  this.instanceType = Image;
@@ -4564,54 +5378,54 @@ let TekImage = class TekImage extends ZdComponent {
4564
5378
  };
4565
5379
  __decorate([
4566
5380
  PropWatch({ type: String, default: '' })
4567
- ], TekImage.prototype, "to", void 0);
5381
+ ], TekImage$1.prototype, "to", void 0);
4568
5382
  __decorate([
4569
5383
  PropWatch({ type: String, default: '' })
4570
- ], TekImage.prototype, "src", void 0);
5384
+ ], TekImage$1.prototype, "src", void 0);
4571
5385
  __decorate([
4572
5386
  PropWatch({ type: [Number, String], default: 'auto' })
4573
- ], TekImage.prototype, "height", void 0);
5387
+ ], TekImage$1.prototype, "height", void 0);
4574
5388
  __decorate([
4575
5389
  PropWatch({ type: [Number, String], default: 'auto' })
4576
- ], TekImage.prototype, "minHeight", void 0);
5390
+ ], TekImage$1.prototype, "minHeight", void 0);
4577
5391
  __decorate([
4578
5392
  PropWatch({ type: [Number, String], default: 'none' })
4579
- ], TekImage.prototype, "maxHeight", void 0);
5393
+ ], TekImage$1.prototype, "maxHeight", void 0);
4580
5394
  __decorate([
4581
5395
  PropWatch({ type: [Number, String], default: 'auto' })
4582
- ], TekImage.prototype, "width", void 0);
5396
+ ], TekImage$1.prototype, "width", void 0);
4583
5397
  __decorate([
4584
5398
  PropWatch({ type: [Number, String], default: 'auto' })
4585
- ], TekImage.prototype, "minWidth", void 0);
5399
+ ], TekImage$1.prototype, "minWidth", void 0);
4586
5400
  __decorate([
4587
5401
  PropWatch({ type: [Number, String], default: 'none' })
4588
- ], TekImage.prototype, "maxWidth", void 0);
5402
+ ], TekImage$1.prototype, "maxWidth", void 0);
4589
5403
  __decorate([
4590
5404
  PropWatch({ type: [Boolean, String], default: false })
4591
- ], TekImage.prototype, "fillHeight", void 0);
4592
- TekImage = __decorate([
5405
+ ], TekImage$1.prototype, "fillHeight", void 0);
5406
+ TekImage$1 = __decorate([
4593
5407
  Component
4594
- ], TekImage);
4595
- var script$9 = TekImage;
5408
+ ], TekImage$1);
5409
+ var TekImage$2 = TekImage$1;
4596
5410
 
4597
5411
  /**
4598
5412
  * ZdIterableComponentRender component
4599
5413
  */
4600
- let TekIterableComponentRender = class TekIterableComponentRender extends ZdIterableComponentRender {
5414
+ let TekIterableComponentRender$1 = class TekIterableComponentRender extends ZdIterableComponentRender {
4601
5415
  constructor() {
4602
5416
  super(...arguments);
4603
5417
  this.instanceType = IterableComponentRender;
4604
5418
  }
4605
5419
  };
4606
- TekIterableComponentRender = __decorate([
5420
+ TekIterableComponentRender$1 = __decorate([
4607
5421
  Component
4608
- ], TekIterableComponentRender);
4609
- var script$8 = TekIterableComponentRender;
5422
+ ], TekIterableComponentRender$1);
5423
+ var TekIterableComponentRender$2 = TekIterableComponentRender$1;
4610
5424
 
4611
5425
  /**
4612
5426
  * Product card component
4613
5427
  */
4614
- let TekProductCard = class TekProductCard extends ZdComponentRender {
5428
+ let TekProductCard$1 = class TekProductCard extends ZdComponentRender {
4615
5429
  constructor() {
4616
5430
  super(...arguments);
4617
5431
  this.instanceType = ProductCard;
@@ -4626,54 +5440,54 @@ let TekProductCard = class TekProductCard extends ZdComponentRender {
4626
5440
  };
4627
5441
  __decorate([
4628
5442
  PropWatch({ type: String, default: '' })
4629
- ], TekProductCard.prototype, "id", void 0);
5443
+ ], TekProductCard$1.prototype, "id", void 0);
4630
5444
  __decorate([
4631
5445
  PropWatch({ type: String, default: '' })
4632
- ], TekProductCard.prototype, "to", void 0);
5446
+ ], TekProductCard$1.prototype, "to", void 0);
4633
5447
  __decorate([
4634
5448
  PropWatch({ type: String, default: '' })
4635
- ], TekProductCard.prototype, "src", void 0);
5449
+ ], TekProductCard$1.prototype, "src", void 0);
4636
5450
  __decorate([
4637
5451
  PropWatch({ type: String, default: '' })
4638
- ], TekProductCard.prototype, "errorImagePath", void 0);
5452
+ ], TekProductCard$1.prototype, "errorImagePath", void 0);
4639
5453
  __decorate([
4640
5454
  PropWatch({ type: String, default: 'UNAVAILABLE_IMAGE' })
4641
- ], TekProductCard.prototype, "errorImageText", void 0);
5455
+ ], TekProductCard$1.prototype, "errorImageText", void 0);
4642
5456
  __decorate([
4643
5457
  PropWatch({ type: String, default: '' })
4644
- ], TekProductCard.prototype, "productName", void 0);
5458
+ ], TekProductCard$1.prototype, "productName", void 0);
4645
5459
  __decorate([
4646
5460
  PropWatch({ type: String })
4647
- ], TekProductCard.prototype, "productSupplier", void 0);
5461
+ ], TekProductCard$1.prototype, "productSupplier", void 0);
4648
5462
  __decorate([
4649
5463
  PropWatch({ type: String })
4650
- ], TekProductCard.prototype, "productBrand", void 0);
5464
+ ], TekProductCard$1.prototype, "productBrand", void 0);
4651
5465
  __decorate([
4652
5466
  PropWatch({ type: [String, Number] })
4653
- ], TekProductCard.prototype, "productPrice", void 0);
5467
+ ], TekProductCard$1.prototype, "productPrice", void 0);
4654
5468
  __decorate([
4655
5469
  PropWatch({ type: String, default: '' })
4656
- ], TekProductCard.prototype, "width", void 0);
5470
+ ], TekProductCard$1.prototype, "width", void 0);
4657
5471
  __decorate([
4658
5472
  PropWatch({ type: [Number, String], default: 'auto' })
4659
- ], TekProductCard.prototype, "height", void 0);
5473
+ ], TekProductCard$1.prototype, "height", void 0);
4660
5474
  __decorate([
4661
5475
  PropWatch({ type: [Number, String], default: 'none' })
4662
- ], TekProductCard.prototype, "maxHeight", void 0);
5476
+ ], TekProductCard$1.prototype, "maxHeight", void 0);
4663
5477
  __decorate([
4664
5478
  PropWatch({ type: [Number, String], default: 'none' })
4665
- ], TekProductCard.prototype, "minHeight", void 0);
4666
- TekProductCard = __decorate([
5479
+ ], TekProductCard$1.prototype, "minHeight", void 0);
5480
+ TekProductCard$1 = __decorate([
4667
5481
  Component
4668
- ], TekProductCard);
4669
- var script$7 = TekProductCard;
5482
+ ], TekProductCard$1);
5483
+ var TekProductCard$2 = TekProductCard$1;
4670
5484
 
4671
5485
  // eslint-disable-next-line prefer-destructuring
4672
- const ZdTreeGridEditable = components$1.ZdTreeGridEditable;
5486
+ const ZdTreeGridEditable$1 = components$1.ZdTreeGridEditable;
4673
5487
  /**
4674
5488
  * TekGrid component
4675
5489
  */
4676
- let TekGrid = class TekGrid extends ZdTreeGridEditable {
5490
+ let TekGrid$1 = class TekGrid extends ZdTreeGridEditable$1 {
4677
5491
  constructor() {
4678
5492
  super(...arguments);
4679
5493
  this.instanceType = TekTreeGrid;
@@ -5007,133 +5821,133 @@ let TekGrid = class TekGrid extends ZdTreeGridEditable {
5007
5821
  };
5008
5822
  __decorate([
5009
5823
  PropWatch({ type: [String], default: '' })
5010
- ], TekGrid.prototype, "title", void 0);
5824
+ ], TekGrid$1.prototype, "title", void 0);
5011
5825
  __decorate([
5012
5826
  PropWatch({ type: [Boolean, String], default: false })
5013
- ], TekGrid.prototype, "addButton", void 0);
5827
+ ], TekGrid$1.prototype, "addButton", void 0);
5014
5828
  __decorate([
5015
5829
  PropWatch({ type: [String], default: 'none' })
5016
- ], TekGrid.prototype, "deleteButton", void 0);
5830
+ ], TekGrid$1.prototype, "deleteButton", void 0);
5017
5831
  __decorate([
5018
5832
  PropWatch({ type: [Boolean, String], default: false })
5019
- ], TekGrid.prototype, "columnsButton", void 0);
5833
+ ], TekGrid$1.prototype, "columnsButton", void 0);
5020
5834
  __decorate([
5021
5835
  Prop({ type: [Array, String], default: () => [] })
5022
- ], TekGrid.prototype, "columnsButtonIgnore", void 0);
5836
+ ], TekGrid$1.prototype, "columnsButtonIgnore", void 0);
5023
5837
  __decorate([
5024
5838
  PropWatch({ type: [Boolean, String], default: true })
5025
- ], TekGrid.prototype, "showEditButtons", void 0);
5839
+ ], TekGrid$1.prototype, "showEditButtons", void 0);
5026
5840
  __decorate([
5027
5841
  PropWatch({ type: [Boolean, String], default: false })
5028
- ], TekGrid.prototype, "filterButton", void 0);
5842
+ ], TekGrid$1.prototype, "filterButton", void 0);
5029
5843
  __decorate([
5030
5844
  PropWatch({ type: [Object] })
5031
- ], TekGrid.prototype, "modalFilterProps", void 0);
5845
+ ], TekGrid$1.prototype, "modalFilterProps", void 0);
5032
5846
  __decorate([
5033
5847
  PropWatch({ type: [Boolean, String], default: true })
5034
- ], TekGrid.prototype, "showSearch", void 0);
5848
+ ], TekGrid$1.prototype, "showSearch", void 0);
5035
5849
  __decorate([
5036
5850
  PropWatch({ type: [Boolean, String], default: false })
5037
- ], TekGrid.prototype, "columnFilterButton", void 0);
5851
+ ], TekGrid$1.prototype, "columnFilterButton", void 0);
5038
5852
  __decorate([
5039
5853
  Prop({ type: [Array], default: () => [] })
5040
- ], TekGrid.prototype, "actions", void 0);
5854
+ ], TekGrid$1.prototype, "actions", void 0);
5041
5855
  __decorate([
5042
5856
  PropWatch({ type: [String, Boolean], default: true })
5043
- ], TekGrid.prototype, "dragColumns", void 0);
5857
+ ], TekGrid$1.prototype, "dragColumns", void 0);
5044
5858
  __decorate([
5045
5859
  PropWatch({ type: [String, Boolean], default: true })
5046
- ], TekGrid.prototype, "mainGrid", void 0);
5860
+ ], TekGrid$1.prototype, "mainGrid", void 0);
5047
5861
  __decorate([
5048
5862
  PropWatch({ type: [String, Boolean], default: true })
5049
- ], TekGrid.prototype, "resizeColumns", void 0);
5863
+ ], TekGrid$1.prototype, "resizeColumns", void 0);
5050
5864
  __decorate([
5051
5865
  PropWatch({ type: [String, Boolean], default: true })
5052
- ], TekGrid.prototype, "showLayoutOptions", void 0);
5866
+ ], TekGrid$1.prototype, "showLayoutOptions", void 0);
5053
5867
  __decorate([
5054
5868
  PropWatch({ type: [String, Boolean], default: false })
5055
- ], TekGrid.prototype, "showExport", void 0);
5869
+ ], TekGrid$1.prototype, "showExport", void 0);
5056
5870
  __decorate([
5057
5871
  PropWatch({ type: [String, Boolean], default: true })
5058
- ], TekGrid.prototype, "showReload", void 0);
5872
+ ], TekGrid$1.prototype, "showReload", void 0);
5059
5873
  __decorate([
5060
5874
  PropWatch({ type: [Object] })
5061
- ], TekGrid.prototype, "defaultFilter", void 0);
5875
+ ], TekGrid$1.prototype, "defaultFilter", void 0);
5062
5876
  __decorate([
5063
5877
  PropWatch({ type: [String] })
5064
- ], TekGrid.prototype, "reportTitle", void 0);
5878
+ ], TekGrid$1.prototype, "reportTitle", void 0);
5065
5879
  __decorate([
5066
5880
  Prop({ type: [String, Array] })
5067
- ], TekGrid.prototype, "exportConfig", void 0);
5881
+ ], TekGrid$1.prototype, "exportConfig", void 0);
5068
5882
  __decorate([
5069
5883
  Prop({ type: [Array] })
5070
- ], TekGrid.prototype, "exportActions", void 0);
5884
+ ], TekGrid$1.prototype, "exportActions", void 0);
5071
5885
  __decorate([
5072
5886
  Prop({
5073
5887
  type: Array,
5074
5888
  default: () => undefined,
5075
5889
  })
5076
- ], TekGrid.prototype, "toolbarSlot", void 0);
5890
+ ], TekGrid$1.prototype, "toolbarSlot", void 0);
5077
5891
  __decorate([
5078
5892
  Watch('instance.title')
5079
- ], TekGrid.prototype, "updateTitle", null);
5080
- TekGrid = __decorate([
5893
+ ], TekGrid$1.prototype, "updateTitle", null);
5894
+ TekGrid$1 = __decorate([
5081
5895
  Component
5082
- ], TekGrid);
5083
- var script$6 = TekGrid;
5896
+ ], TekGrid$1);
5897
+ var TekGrid$2 = TekGrid$1;
5084
5898
 
5085
- let TekUserInfo = class TekUserInfo extends ZdUserInfo {
5899
+ let TekUserInfo$1 = class TekUserInfo extends ZdUserInfo {
5086
5900
  constructor() {
5087
5901
  super(...arguments);
5088
- this.instanceType = TekUserInfo$1;
5902
+ this.instanceType = TekUserInfo$3;
5089
5903
  }
5090
5904
  };
5091
5905
  __decorate([
5092
5906
  PropWatch({ type: [String], default: '' })
5093
- ], TekUserInfo.prototype, "aboutImage", void 0);
5907
+ ], TekUserInfo$1.prototype, "aboutImage", void 0);
5094
5908
  __decorate([
5095
5909
  PropWatch({ type: [String], default: '' })
5096
- ], TekUserInfo.prototype, "defaultEmail", void 0);
5910
+ ], TekUserInfo$1.prototype, "defaultEmail", void 0);
5097
5911
  __decorate([
5098
5912
  PropWatch({ type: [Object, String], default: null })
5099
- ], TekUserInfo.prototype, "versionInfo", void 0);
5913
+ ], TekUserInfo$1.prototype, "versionInfo", void 0);
5100
5914
  __decorate([
5101
5915
  PropWatch({ type: [String], default: '' })
5102
- ], TekUserInfo.prototype, "versionUrl", void 0);
5916
+ ], TekUserInfo$1.prototype, "versionUrl", void 0);
5103
5917
  __decorate([
5104
5918
  Prop({ type: [Array], default: undefined })
5105
- ], TekUserInfo.prototype, "bottomSlot", void 0);
5106
- TekUserInfo = __decorate([
5919
+ ], TekUserInfo$1.prototype, "bottomSlot", void 0);
5920
+ TekUserInfo$1 = __decorate([
5107
5921
  Component
5108
- ], TekUserInfo);
5109
- var script$5 = TekUserInfo;
5922
+ ], TekUserInfo$1);
5923
+ var TekUserInfo$2 = TekUserInfo$1;
5110
5924
 
5111
5925
  // eslint-disable-next-line prefer-destructuring
5112
- const ZdList = components$1.ZdList;
5113
- let TekUserInfoList = class TekUserInfoList extends ZdList {
5926
+ const ZdList$1 = components$1.ZdList;
5927
+ let TekUserInfoList$1 = class TekUserInfoList extends ZdList$1 {
5114
5928
  constructor() {
5115
5929
  super(...arguments);
5116
- this.instanceType = TekUserInfoList$1;
5930
+ this.instanceType = TekUserInfoList$3;
5117
5931
  }
5118
5932
  };
5119
5933
  __decorate([
5120
5934
  PropWatch({ type: [String], default: '' })
5121
- ], TekUserInfoList.prototype, "parentName", void 0);
5935
+ ], TekUserInfoList$1.prototype, "parentName", void 0);
5122
5936
  __decorate([
5123
5937
  PropWatch({ type: [Boolean, String], default: true })
5124
- ], TekUserInfoList.prototype, "dense", void 0);
5125
- TekUserInfoList = __decorate([
5938
+ ], TekUserInfoList$1.prototype, "dense", void 0);
5939
+ TekUserInfoList$1 = __decorate([
5126
5940
  Component
5127
- ], TekUserInfoList);
5128
- var script$4 = TekUserInfoList;
5941
+ ], TekUserInfoList$1);
5942
+ var TekUserInfoList$2 = TekUserInfoList$1;
5129
5943
 
5130
5944
  /**
5131
5945
  * TekDragGrid component
5132
5946
  */
5133
- let TekDragGrid = class TekDragGrid extends TekGrid$2 {
5947
+ let TekDragGrid = class TekDragGrid extends TekGrid$4 {
5134
5948
  constructor() {
5135
5949
  super(...arguments);
5136
- this.instanceType = TekDragGrid$1;
5950
+ this.instanceType = TekDragGrid$3;
5137
5951
  this.dragColumnWidth = 24;
5138
5952
  }
5139
5953
  dragOnMove(event) {
@@ -5166,10 +5980,10 @@ TekDragGrid = __decorate([
5166
5980
  components: { draggable, ZdDragGridHandle, ZdDragGridHandleHeader },
5167
5981
  })
5168
5982
  ], TekDragGrid);
5169
- var script$3 = TekDragGrid;
5983
+ var script$c = TekDragGrid;
5170
5984
 
5171
5985
  /* script */
5172
- const __vue_script__$c = script$3;
5986
+ const __vue_script__$c = script$c;
5173
5987
 
5174
5988
  /* template */
5175
5989
  var __vue_render__$c = function () {
@@ -6352,7 +7166,7 @@ __vue_render__$c._withStripped = true;
6352
7166
  /* style */
6353
7167
  const __vue_inject_styles__$c = function (inject) {
6354
7168
  if (!inject) return
6355
- inject("data-v-605f8700_0", { source: ".tek-grid .zd-table-cell-text-first {\n display: inline-flex;\n width: 100%;\n}\n.tek-grid .zd-grid-toolbar {\n height: 38px;\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 flex-grow: 1;\n line-height: 22px;\n color: var(--v-primary-base);\n}\n.tek-grid table thead tr th.zd-table-cell.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 5;\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.theme--light {\n background: #f6f6f6;\n}\n.tek-grid table tbody tr.footer.theme--dark {\n background: #3b3b3b;\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: var(--row-active-color);\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-first-group-cell {\n display: flex;\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 .zd-table-group-two-plus-container {\n display: flex;\n height: 100%;\n align-items: center;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation {\n top: unset;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation :not(.first-group) {\n margin-left: 10px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation.first-group {\n width: 14px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\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 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}\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 .zd-table-two-plus-groups {\n display: flex !important;\n}\n.tek-grid table .zd-table-two-plus-groups .zd-table-cell-text {\n position: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation {\n top: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\n}\n.tek-grid table .tek-grid-body-group-identation {\n width: 8px;\n display: flex;\n position: relative;\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: 1rem;\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 top: -10%;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer-no-line {\n border-left: none;\n}\n.tek-grid table .footer .zd-grid-row-checkbox {\n display: none;\n}\n.tek-grid .zd-skeleton-table-cell .v-skeleton-loader__table-cell {\n height: auto;\n}\n.tek-grid-export-landscape i {\n transform: rotate(-90deg);\n}\n.tek-grid-export-multioption-text {\n padding-left: 3px;\n font-size: var(--zd-font-body4-size);\n font-weight: var(--zd-font-body4-weight);\n cursor: default;\n}\n.tekgrid-actions-dropdown > * {\n display: block;\n}\n.tek-grid-column-filter-menu {\n padding: 12px 12px 0 12px;\n max-height: 300px;\n}\n.tek-grid-column-filter-menu.theme--light {\n background: #fff;\n}\n.tek-grid-column-filter-menu.theme--dark {\n background: #1e1e1e;\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}\n.is-rotated {\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n}", map: undefined, media: undefined });
7169
+ inject("data-v-4a00b46f_0", { source: ".tek-grid .zd-table-cell-text-first {\n display: inline-flex;\n width: 100%;\n}\n.tek-grid .zd-grid-toolbar {\n height: 38px;\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 flex-grow: 1;\n line-height: 22px;\n color: var(--v-primary-base);\n}\n.tek-grid table thead tr th.zd-table-cell.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 5;\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.theme--light {\n background: #f6f6f6;\n}\n.tek-grid table tbody tr.footer.theme--dark {\n background: #3b3b3b;\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: var(--row-active-color);\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-first-group-cell {\n display: flex;\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 .zd-table-group-two-plus-container {\n display: flex;\n height: 100%;\n align-items: center;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation {\n top: unset;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation :not(.first-group) {\n margin-left: 10px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation.first-group {\n width: 14px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\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 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}\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 .zd-table-two-plus-groups {\n display: flex !important;\n}\n.tek-grid table .zd-table-two-plus-groups .zd-table-cell-text {\n position: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation {\n top: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\n}\n.tek-grid table .tek-grid-body-group-identation {\n width: 8px;\n display: flex;\n position: relative;\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: 1rem;\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 top: -10%;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer-no-line {\n border-left: none;\n}\n.tek-grid table .footer .zd-grid-row-checkbox {\n display: none;\n}\n.tek-grid .zd-skeleton-table-cell .v-skeleton-loader__table-cell {\n height: auto;\n}\n.tek-grid-export-landscape i {\n transform: rotate(-90deg);\n}\n.tek-grid-export-multioption-text {\n padding-left: 3px;\n font-size: var(--zd-font-body4-size);\n font-weight: var(--zd-font-body4-weight);\n cursor: default;\n}\n.tekgrid-actions-dropdown > * {\n display: block;\n}\n.tek-grid-column-filter-menu {\n padding: 12px 12px 0 12px;\n max-height: 300px;\n}\n.tek-grid-column-filter-menu.theme--light {\n background: #fff;\n}\n.tek-grid-column-filter-menu.theme--dark {\n background: #1e1e1e;\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}\n.is-rotated {\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n margin-right: 3.7px;\n}", map: undefined, media: undefined });
6356
7170
 
6357
7171
  };
6358
7172
  /* scoped */
@@ -6380,8 +7194,69 @@ __vue_render__$c._withStripped = true;
6380
7194
  undefined
6381
7195
  );
6382
7196
 
7197
+ /**
7198
+ * TekGrid Columns Button component
7199
+ */
7200
+ let TekGridColumnsButton = class TekGridColumnsButton extends ZdIterableColumnsButton {
7201
+ constructor() {
7202
+ super(...arguments);
7203
+ this.instanceType = TekGridColumnsButton$3;
7204
+ this.menuIsOpened = false;
7205
+ this.sortableInitialized = false;
7206
+ }
7207
+ menuOpenedChange() {
7208
+ if (this.menuIsOpened && !this.sortableInitialized) {
7209
+ this.sortableInitialized = true;
7210
+ this.$nextTick(() => {
7211
+ const columnsTableBody = document.querySelector(`#${this.instance.name}_columns_table tbody`);
7212
+ if (columnsTableBody) {
7213
+ sortable.create(columnsTableBody, {
7214
+ handle: '.sortHandle',
7215
+ dragClass: 'tek-grid-columns-button-sortable-drag',
7216
+ onEnd: this.sortEnd,
7217
+ });
7218
+ }
7219
+ });
7220
+ }
7221
+ }
7222
+ sortEnd(event) {
7223
+ const grid = this.instance.iterableComponent;
7224
+ const newOrder = Array.from(event.srcElement.querySelectorAll('tr')).map((row) => row.getAttribute('name'));
7225
+ const groupColumnNames = [];
7226
+ const newColumns = newOrder.map((columnName) => {
7227
+ const column = grid.getColumn(columnName);
7228
+ if (column.grouped) {
7229
+ groupColumnNames.push(columnName);
7230
+ }
7231
+ return column;
7232
+ });
7233
+ const ignoredColumns = grid.columns.filter((column) => this.instance.ignoreColumns.indexOf(column.name) !== -1);
7234
+ grid.columns = newColumns.concat(ignoredColumns);
7235
+ if ((grid.updateGrouping) && JSON.stringify(groupColumnNames) !== JSON.stringify(grid.groupColumnNames)) {
7236
+ grid.updateGrouping();
7237
+ }
7238
+ grid.changeLayout();
7239
+ }
7240
+ moreOptions() {
7241
+ TekGridColumnsOptionsModal.show(this.instance);
7242
+ }
7243
+ close() {
7244
+ this.menuIsOpened = false;
7245
+ }
7246
+ };
7247
+ __decorate([
7248
+ PropWatch({ type: [Boolean, String], default: false })
7249
+ ], TekGridColumnsButton.prototype, "hideGroups", void 0);
7250
+ __decorate([
7251
+ Watch('menuIsOpened')
7252
+ ], TekGridColumnsButton.prototype, "menuOpenedChange", null);
7253
+ TekGridColumnsButton = __decorate([
7254
+ Component
7255
+ ], TekGridColumnsButton);
7256
+ var script$b = TekGridColumnsButton;
7257
+
6383
7258
  /* script */
6384
- const __vue_script__$b = script$c;
7259
+ const __vue_script__$b = script$b;
6385
7260
 
6386
7261
  /* template */
6387
7262
  var __vue_render__$b = function () {
@@ -6645,7 +7520,7 @@ __vue_render__$b._withStripped = true;
6645
7520
  /* style */
6646
7521
  const __vue_inject_styles__$b = function (inject) {
6647
7522
  if (!inject) return
6648
- inject("data-v-046576c4_0", { source: ".tek-grid-columns-button-options {\n max-height: 250px;\n display: flex;\n flex-direction: column;\n background-color: #fff;\n}\n.tek-grid-columns-button-options.theme--dark {\n background-color: #1e1e1e;\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 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 position: sticky;\n top: 0;\n z-index: 10;\n background-color: var(--zd-background-base);\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}\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 });
7523
+ inject("data-v-08307fa9_0", { source: ".tek-grid-columns-button-options {\n max-height: 250px;\n display: flex;\n flex-direction: column;\n background-color: #fff;\n}\n.tek-grid-columns-button-options.theme--dark {\n background-color: #1e1e1e;\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 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 position: sticky;\n top: 0;\n z-index: 10;\n background-color: var(--zd-background-base);\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}\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 });
6649
7524
 
6650
7525
  };
6651
7526
  /* scoped */
@@ -6673,8 +7548,55 @@ __vue_render__$b._withStripped = true;
6673
7548
  undefined
6674
7549
  );
6675
7550
 
7551
+ // eslint-disable-next-line prefer-destructuring
7552
+ const ZdButton = components$1.ZdButton;
7553
+ /**
7554
+ * TekGrid Columns Button component
7555
+ */
7556
+ let TekGridFilterButton = class TekGridFilterButton extends ZdButton {
7557
+ constructor() {
7558
+ super(...arguments);
7559
+ this.instanceType = TekGridFilterButton$3;
7560
+ }
7561
+ filterClick({ event }) {
7562
+ this.instance.click(event);
7563
+ }
7564
+ getEvents() {
7565
+ const on = this.$listeners;
7566
+ const events = Object.assign({}, this.instance.events);
7567
+ Object.keys(on).forEach((eventName) => {
7568
+ const callback = this.instance.events[eventName];
7569
+ events[eventName] = ({ event, component, element }) => {
7570
+ if (callback && typeof callback === 'function') {
7571
+ callback({ event, component, element });
7572
+ }
7573
+ const onEvent = on[eventName];
7574
+ if (typeof onEvent === 'function') {
7575
+ onEvent(event);
7576
+ return;
7577
+ }
7578
+ onEvent.forEach((fn) => fn(event));
7579
+ };
7580
+ });
7581
+ return events;
7582
+ }
7583
+ };
7584
+ __decorate([
7585
+ PropWatch({ type: [String], default: '' })
7586
+ ], TekGridFilterButton.prototype, "gridName", void 0);
7587
+ __decorate([
7588
+ PropWatch({ type: [Object, String], default: () => { } })
7589
+ ], TekGridFilterButton.prototype, "grid", void 0);
7590
+ __decorate([
7591
+ PropWatch({ type: [Boolean, String], default: false })
7592
+ ], TekGridFilterButton.prototype, "showCheckboxAll", void 0);
7593
+ TekGridFilterButton = __decorate([
7594
+ Component
7595
+ ], TekGridFilterButton);
7596
+ var script$a = TekGridFilterButton;
7597
+
6676
7598
  /* script */
6677
- const __vue_script__$a = script$b;
7599
+ const __vue_script__$a = script$a;
6678
7600
 
6679
7601
  /* template */
6680
7602
  var __vue_render__$a = function () {
@@ -6703,7 +7625,7 @@ __vue_render__$a._withStripped = true;
6703
7625
  /* style */
6704
7626
  const __vue_inject_styles__$a = function (inject) {
6705
7627
  if (!inject) return
6706
- inject("data-v-312d9169_0", { source: ".zd-container.tek-grid-filter-content-container {\n position: relative;\n left: calc(var(--zd-default-padding) * -1) !important;\n padding-left: var(--zd-default-padding) !important;\n width: calc(100% + var(--zd-default-padding) * 2) !important;\n padding-right: var(--zd-default-padding) !important;\n max-width: none !important;\n}", map: undefined, media: undefined });
7628
+ inject("data-v-708089c0_0", { source: ".zd-container.tek-grid-filter-content-container {\n position: relative;\n left: calc(var(--zd-default-padding) * -1) !important;\n padding-left: var(--zd-default-padding) !important;\n width: calc(100% + var(--zd-default-padding) * 2) !important;\n padding-right: var(--zd-default-padding) !important;\n max-width: none !important;\n}", map: undefined, media: undefined });
6707
7629
 
6708
7630
  };
6709
7631
  /* scoped */
@@ -6731,8 +7653,248 @@ __vue_render__$a._withStripped = true;
6731
7653
  undefined
6732
7654
  );
6733
7655
 
7656
+ /**
7657
+ * TekGridLayoutOptions component
7658
+ */
7659
+ let TekGridLayoutOptions = class TekGridLayoutOptions extends ZdComponentRender {
7660
+ constructor() {
7661
+ super(...arguments);
7662
+ this.instanceType = TekGridLayoutOptions$3;
7663
+ }
7664
+ created() {
7665
+ this.instance.viewApplyLayout = this.applyLayout;
7666
+ this.instance.viewGetCurrentLayout = this.getCurrentLayout;
7667
+ }
7668
+ confirmLayoutClick({ component }) {
7669
+ const layoutName = component.value;
7670
+ if (layoutName) {
7671
+ const newLayout = this.getCurrentLayout(layoutName);
7672
+ this.instance.newLayout(newLayout);
7673
+ }
7674
+ this.$refs.layoutMenu.isActive = false;
7675
+ component.value = '';
7676
+ }
7677
+ datasourceDynamicFilter(datasource) {
7678
+ if (datasource instanceof TekRestDatasource)
7679
+ return datasource.dynamicFilter;
7680
+ return {};
7681
+ }
7682
+ applyLayout(layout) {
7683
+ var _a;
7684
+ let groupParamsChanged = false;
7685
+ const tableElement = this.getParentTable();
7686
+ if (!tableElement)
7687
+ return;
7688
+ const { grid } = this.instance;
7689
+ const gridColumns = {};
7690
+ let layoutChanged = false;
7691
+ const gridColumnNames = [];
7692
+ grid.columns.forEach((column) => {
7693
+ var _a, _b;
7694
+ gridColumns[column.name] = column;
7695
+ gridColumnNames.push(column.name);
7696
+ const layoutHasCol = (_a = layout === null || layout === void 0 ? void 0 : layout.columns) === null || _a === void 0 ? void 0 : _a.find((layCol) => layCol.name === column.name);
7697
+ // if column doesnt exist in the layout, push it
7698
+ if (layout && !layoutHasCol) {
7699
+ layoutChanged = true;
7700
+ (_b = layout.columns) === null || _b === void 0 ? void 0 : _b.push(column);
7701
+ }
7702
+ });
7703
+ const oldOrder = JSON.stringify(grid.datasource.order);
7704
+ const oldFilter = JSON.stringify(grid.datasource.filter);
7705
+ const oldDynamicFilter = JSON.stringify(this.datasourceDynamicFilter(grid.datasource));
7706
+ if (layout) {
7707
+ // removes columns that are in the layout but not in grid
7708
+ layout.columns = (_a = layout.columns) === null || _a === void 0 ? void 0 : _a.filter((column) => {
7709
+ const isInGrid = gridColumnNames.includes(column.name);
7710
+ if (!isInGrid)
7711
+ layoutChanged = true;
7712
+ return isInGrid;
7713
+ });
7714
+ if (layoutChanged) {
7715
+ this.instance.updateLayout(layout.name, this.getCurrentLayout(layout.name));
7716
+ }
7717
+ tableElement.style.width = layout.gridWidth || 'auto';
7718
+ grid.datasource.order = layout.order !== undefined ? layout.order : grid.datasource.order;
7719
+ grid.datasource.filter = layout.filter !== undefined ? layout.filter : grid.datasource.filter;
7720
+ if (grid.datasource instanceof TekRestDatasource
7721
+ && layout.dynamicFilter !== undefined) {
7722
+ grid.datasource.dynamicFilter = this.getHelperValues(layout.dynamicFilter, layout.columns || grid.columns);
7723
+ }
7724
+ if (layout.columns) {
7725
+ grid.columns = layout.columns.map((column) => {
7726
+ const col = gridColumns[column.name];
7727
+ col.label = column.label !== undefined ? column.label : col.label;
7728
+ col.align = column.align !== undefined ? column.align : col.align;
7729
+ col.isVisible = column.isVisible !== undefined ? column.isVisible : col.isVisible;
7730
+ col.fixed = !!column.fixed;
7731
+ col.grouped = !!column.grouped;
7732
+ col.groupOpened = !!column.groupOpened;
7733
+ col.aggregation = column.aggregation;
7734
+ col.minWidth = column.minWidth || '';
7735
+ col.maxWidth = column.maxWidth || '';
7736
+ col.width = column.width;
7737
+ this.setHelperValue(col, column.filterHelperValue || '');
7738
+ return col;
7739
+ });
7740
+ // wait to change column orders
7741
+ this.$nextTick(() => {
7742
+ grid.columns.forEach((_column, index) => {
7743
+ const columnElement = tableElement.querySelector(`tr th:not(.selectable)[index="${index}"]`);
7744
+ if (columnElement) {
7745
+ columnElement.style.width = layout.columns[index].width || 'unset';
7746
+ }
7747
+ });
7748
+ });
7749
+ }
7750
+ }
7751
+ else {
7752
+ grid.datasource.order = [...this.instance.originalDatasourceOrder];
7753
+ grid.datasource.filter = Object.assign({}, this.instance.originalDatasourceFilter);
7754
+ if (grid.datasource instanceof TekRestDatasource) {
7755
+ grid.datasource.dynamicFilter = this.getHelperValues(this.instance.originalDatasourceDynamicFilter, this.instance.originalColumnProps);
7756
+ }
7757
+ grid.columns = this.instance.originalColumnProps.map((column) => {
7758
+ const col = gridColumns[column.name];
7759
+ groupParamsChanged = groupParamsChanged
7760
+ || col.grouped !== column.grouped
7761
+ || col.groupOpened !== column.groupOpened
7762
+ || col.aggregation !== column.aggregation;
7763
+ col.isVisible = column.isVisible;
7764
+ col.label = column.label;
7765
+ col.align = column.align;
7766
+ col.fixed = column.fixed;
7767
+ col.grouped = column.grouped;
7768
+ col.groupOpened = column.groupOpened;
7769
+ col.aggregation = column.aggregation;
7770
+ col.minWidth = column.minWidth || '';
7771
+ col.maxWidth = column.maxWidth || '';
7772
+ col.width = column.width;
7773
+ this.setHelperValue(col, column.filterHelperValue || '');
7774
+ return col;
7775
+ });
7776
+ tableElement.style.width = '100%';
7777
+ const columnElements = Array.from(tableElement.querySelectorAll('tr th:not(.selectable)'));
7778
+ columnElements.forEach((item) => {
7779
+ item.style.width = 'unset';
7780
+ });
7781
+ }
7782
+ if ((JSON.stringify(grid.datasource.order) !== oldOrder
7783
+ || JSON.stringify(grid.datasource.filter) !== oldFilter
7784
+ || JSON.stringify(this.datasourceDynamicFilter(grid.datasource))
7785
+ !== oldDynamicFilter)
7786
+ && !groupParamsChanged) {
7787
+ // Se os parametros de agrupamento tiverem sido alterados um get é feito automaticamente
7788
+ if (grid instanceof TekGrid$6) {
7789
+ grid.loadAfterTasks();
7790
+ }
7791
+ else {
7792
+ grid.datasource.get();
7793
+ }
7794
+ }
7795
+ this.$refs.layoutMenu.isActive = false;
7796
+ }
7797
+ setHelperValue(column, value) {
7798
+ if (column instanceof TekGridColumn) {
7799
+ if (!Array.isArray(column.filterProps) && typeof value === 'string') {
7800
+ column.filterProps.helperValue = value;
7801
+ }
7802
+ else if (Array.isArray(column.filterProps) && Array.isArray(value)) {
7803
+ column.filterProps.forEach((prop, index) => {
7804
+ prop.value = value[index];
7805
+ });
7806
+ }
7807
+ }
7808
+ }
7809
+ getHelperValues(dynamicFilter, columns) {
7810
+ const filter = cloneDeep(dynamicFilter);
7811
+ Object.keys(filter).forEach((columnName) => {
7812
+ const filterOptions = filter[columnName];
7813
+ const column = columns[columns.findIndex((col) => col.name === columnName)];
7814
+ const { filterHelperValue } = column;
7815
+ filterOptions.forEach((item) => {
7816
+ if (['IN', 'NOT_IN', 'BETWEEN'].includes(item.operation)
7817
+ && !Array.isArray(item.value)) {
7818
+ item.value = item.value.split(';');
7819
+ }
7820
+ let helperValue = '';
7821
+ if (!Array.isArray(filterHelperValue)) {
7822
+ helperValue = filterHelperValue;
7823
+ }
7824
+ else {
7825
+ Object.keys(filterHelperValue).forEach((key) => {
7826
+ const value = filterHelperValue[key] || '';
7827
+ if (`${item.relation || 'AND'}-${item.operation || 'CONTAINS'}`
7828
+ === key) {
7829
+ helperValue = value;
7830
+ }
7831
+ });
7832
+ }
7833
+ if (helperValue) {
7834
+ const columnObj = this.instance.grid.getColumn(column.name);
7835
+ item.value = TekFilterHelper.getValue(helperValue, columnObj);
7836
+ }
7837
+ });
7838
+ });
7839
+ return filter;
7840
+ }
7841
+ getCurrentLayout(layoutName) {
7842
+ const { grid } = this.instance;
7843
+ const tableElement = this.getParentTable();
7844
+ const gridWidth = tableElement
7845
+ ? window.getComputedStyle(tableElement).width
7846
+ : 'auto';
7847
+ return {
7848
+ name: layoutName,
7849
+ gridWidth,
7850
+ order: grid.datasource.order,
7851
+ filter: grid.datasource.filter,
7852
+ dynamicFilter: this.datasourceDynamicFilter(grid.datasource),
7853
+ columns: grid.columns.map((column, index) => {
7854
+ const columnElement = tableElement === null || tableElement === void 0 ? void 0 : tableElement.querySelector(`tr th:not(.selectable)[index="${index}"]`);
7855
+ return {
7856
+ name: column.name,
7857
+ label: column.label,
7858
+ align: column.align,
7859
+ width: columnElement ? window.getComputedStyle(columnElement).width : 'unset',
7860
+ minWidth: column.minWidth,
7861
+ maxWidth: column.maxWidth,
7862
+ isVisible: column.isVisible,
7863
+ fixed: column.fixed,
7864
+ grouped: column.grouped,
7865
+ groupOpened: column.groupOpened,
7866
+ aggregation: column.aggregation,
7867
+ filterHelperValue: this.instance.getHelperValue(column),
7868
+ };
7869
+ }),
7870
+ };
7871
+ }
7872
+ getParentTable() {
7873
+ var _a;
7874
+ return (_a = this.$el.closest('.zd-grid')) === null || _a === void 0 ? void 0 : _a.getElementsByTagName('table')[0];
7875
+ }
7876
+ applyOrUpdateLayout(event, layoutName) {
7877
+ if (this.instance.layoutEdited) {
7878
+ this.instance.updateLayout(layoutName, this.getCurrentLayout(layoutName));
7879
+ event.stopImmediatePropagation();
7880
+ this.$refs.layoutMenu.isActive = false;
7881
+ }
7882
+ else {
7883
+ this.instance.applyLayout(layoutName);
7884
+ }
7885
+ }
7886
+ deleteLayout(event, layoutName) {
7887
+ this.instance.deleteLayout(layoutName);
7888
+ event.stopImmediatePropagation();
7889
+ }
7890
+ };
7891
+ TekGridLayoutOptions = __decorate([
7892
+ Component
7893
+ ], TekGridLayoutOptions);
7894
+ var script$9 = TekGridLayoutOptions;
7895
+
6734
7896
  /* script */
6735
- const __vue_script__$9 = script$a;
7897
+ const __vue_script__$9 = script$9;
6736
7898
 
6737
7899
  /* template */
6738
7900
  var __vue_render__$9 = function () {
@@ -7025,7 +8187,7 @@ __vue_render__$9._withStripped = true;
7025
8187
  /* style */
7026
8188
  const __vue_inject_styles__$9 = function (inject) {
7027
8189
  if (!inject) return
7028
- inject("data-v-24abb7d6_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.theme--light {\n background: #eee;\n}\n.tek-grid-layout-item .tek-grid-layout-item-buttons {\n position: absolute;\n right: 16px;\n}\n.tek-grid-layout-item .tek-grid-layout-item-buttons .v-icon {\n font-size: 18px;\n}\n.tek-grid-layout-item-header {\n max-width: 270px;\n font-size: 13px;\n font-weight: bold;\n color: var(--v-primary-base) !important;\n line-height: 18px;\n}\n.tek-grid-layout-item-header.edited {\n color: var(--v-error-darken2) !important;\n}\n.tek-grid-layout-item-discard {\n min-height: 30px;\n padding-top: 10px;\n}", map: undefined, media: undefined });
8190
+ inject("data-v-0d0ae3d8_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.theme--light {\n background: #eee;\n}\n.tek-grid-layout-item .tek-grid-layout-item-buttons {\n position: absolute;\n right: 16px;\n}\n.tek-grid-layout-item .tek-grid-layout-item-buttons .v-icon {\n font-size: 18px;\n}\n.tek-grid-layout-item-header {\n max-width: 270px;\n font-size: 13px;\n font-weight: bold;\n color: var(--v-primary-base) !important;\n line-height: 18px;\n}\n.tek-grid-layout-item-header.edited {\n color: var(--v-error-darken2) !important;\n}\n.tek-grid-layout-item-discard {\n min-height: 30px;\n padding-top: 10px;\n}", map: undefined, media: undefined });
7029
8191
 
7030
8192
  };
7031
8193
  /* scoped */
@@ -7053,8 +8215,57 @@ __vue_render__$9._withStripped = true;
7053
8215
  undefined
7054
8216
  );
7055
8217
 
8218
+ /**
8219
+ * DocTable component
8220
+ */
8221
+ let TekImage = class TekImage extends ZdComponent {
8222
+ constructor() {
8223
+ super(...arguments);
8224
+ this.instanceType = Image;
8225
+ }
8226
+ mounted() {
8227
+ if (this.instance.fillHeight) {
8228
+ setFillHeight(this.$el);
8229
+ }
8230
+ }
8231
+ load(event) {
8232
+ this.instance.load(event, this.$el);
8233
+ }
8234
+ };
8235
+ __decorate([
8236
+ PropWatch({ type: String, default: '' })
8237
+ ], TekImage.prototype, "to", void 0);
8238
+ __decorate([
8239
+ PropWatch({ type: String, default: '' })
8240
+ ], TekImage.prototype, "src", void 0);
8241
+ __decorate([
8242
+ PropWatch({ type: [Number, String], default: 'auto' })
8243
+ ], TekImage.prototype, "height", void 0);
8244
+ __decorate([
8245
+ PropWatch({ type: [Number, String], default: 'auto' })
8246
+ ], TekImage.prototype, "minHeight", void 0);
8247
+ __decorate([
8248
+ PropWatch({ type: [Number, String], default: 'none' })
8249
+ ], TekImage.prototype, "maxHeight", void 0);
8250
+ __decorate([
8251
+ PropWatch({ type: [Number, String], default: 'auto' })
8252
+ ], TekImage.prototype, "width", void 0);
8253
+ __decorate([
8254
+ PropWatch({ type: [Number, String], default: 'auto' })
8255
+ ], TekImage.prototype, "minWidth", void 0);
8256
+ __decorate([
8257
+ PropWatch({ type: [Number, String], default: 'none' })
8258
+ ], TekImage.prototype, "maxWidth", void 0);
8259
+ __decorate([
8260
+ PropWatch({ type: [Boolean, String], default: false })
8261
+ ], TekImage.prototype, "fillHeight", void 0);
8262
+ TekImage = __decorate([
8263
+ Component
8264
+ ], TekImage);
8265
+ var script$8 = TekImage;
8266
+
7056
8267
  /* script */
7057
- const __vue_script__$8 = script$9;
8268
+ const __vue_script__$8 = script$8;
7058
8269
 
7059
8270
  /* template */
7060
8271
  var __vue_render__$8 = function () {
@@ -7139,10 +8350,10 @@ __decorate([
7139
8350
  TekIterableCarousel = __decorate([
7140
8351
  Component
7141
8352
  ], TekIterableCarousel);
7142
- var script$2 = TekIterableCarousel;
8353
+ var script$7 = TekIterableCarousel;
7143
8354
 
7144
8355
  /* script */
7145
- const __vue_script__$7 = script$2;
8356
+ const __vue_script__$7 = script$7;
7146
8357
 
7147
8358
  /* template */
7148
8359
  var __vue_render__$7 = function () {
@@ -7251,8 +8462,22 @@ __vue_render__$7._withStripped = true;
7251
8462
  undefined
7252
8463
  );
7253
8464
 
8465
+ /**
8466
+ * ZdIterableComponentRender component
8467
+ */
8468
+ let TekIterableComponentRender = class TekIterableComponentRender extends ZdIterableComponentRender {
8469
+ constructor() {
8470
+ super(...arguments);
8471
+ this.instanceType = IterableComponentRender;
8472
+ }
8473
+ };
8474
+ TekIterableComponentRender = __decorate([
8475
+ Component
8476
+ ], TekIterableComponentRender);
8477
+ var script$6 = TekIterableComponentRender;
8478
+
7254
8479
  /* script */
7255
- const __vue_script__$6 = script$8;
8480
+ const __vue_script__$6 = script$6;
7256
8481
 
7257
8482
  /* template */
7258
8483
  var __vue_render__$6 = function () {
@@ -7452,11 +8677,11 @@ __vue_render__$6._withStripped = true;
7452
8677
  /* style */
7453
8678
  const __vue_inject_styles__$6 = function (inject) {
7454
8679
  if (!inject) return
7455
- inject("data-v-d9a525a4_0", { source: ".tek-iterable-component-render[data-v-d9a525a4] {\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-d9a525a4],\n.tek-iterable-component-render .no--data[data-v-d9a525a4] {\n text-align: center;\n width: 100%;\n font-size: 14px;\n}\n.tek-iterable-component-render .no--data[data-v-d9a525a4] {\n color: rgba(0, 0, 0, 0.38);\n}\n.tek-iterable-component-render .tek-iterable-toolbar[data-v-d9a525a4] {\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-d9a525a4] {\n padding: 5px 0;\n display: flex;\n width: 100%;\n}", map: undefined, media: undefined });
8680
+ inject("data-v-3a016221_0", { source: ".tek-iterable-component-render[data-v-3a016221] {\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-3a016221],\n.tek-iterable-component-render .no--data[data-v-3a016221] {\n text-align: center;\n width: 100%;\n font-size: 14px;\n}\n.tek-iterable-component-render .no--data[data-v-3a016221] {\n color: rgba(0, 0, 0, 0.38);\n}\n.tek-iterable-component-render .tek-iterable-toolbar[data-v-3a016221] {\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-3a016221] {\n padding: 5px 0;\n display: flex;\n width: 100%;\n}", map: undefined, media: undefined });
7456
8681
 
7457
8682
  };
7458
8683
  /* scoped */
7459
- const __vue_scope_id__$6 = "data-v-d9a525a4";
8684
+ const __vue_scope_id__$6 = "data-v-3a016221";
7460
8685
  /* module identifier */
7461
8686
  const __vue_module_identifier__$6 = undefined;
7462
8687
  /* functional template */
@@ -7500,10 +8725,10 @@ __decorate([
7500
8725
  TekLoading = __decorate([
7501
8726
  Component
7502
8727
  ], TekLoading);
7503
- var script$1 = TekLoading;
8728
+ var script$5 = TekLoading;
7504
8729
 
7505
8730
  /* script */
7506
- const __vue_script__$5 = script$1;
8731
+ const __vue_script__$5 = script$5;
7507
8732
 
7508
8733
  /* template */
7509
8734
  var __vue_render__$5 = function () {
@@ -7583,10 +8808,10 @@ __decorate([
7583
8808
  TekNotifications = __decorate([
7584
8809
  Component
7585
8810
  ], TekNotifications);
7586
- var script = TekNotifications;
8811
+ var script$4 = TekNotifications;
7587
8812
 
7588
8813
  /* script */
7589
- const __vue_script__$4 = script;
8814
+ const __vue_script__$4 = script$4;
7590
8815
 
7591
8816
  /* template */
7592
8817
  var __vue_render__$4 = function () {
@@ -7672,7 +8897,7 @@ __vue_render__$4._withStripped = true;
7672
8897
  /* style */
7673
8898
  const __vue_inject_styles__$4 = function (inject) {
7674
8899
  if (!inject) return
7675
- inject("data-v-30efacc6_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 });
8900
+ inject("data-v-21d49cb8_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 });
7676
8901
 
7677
8902
  };
7678
8903
  /* scoped */
@@ -7700,8 +8925,68 @@ __vue_render__$4._withStripped = true;
7700
8925
  undefined
7701
8926
  );
7702
8927
 
8928
+ /**
8929
+ * Product card component
8930
+ */
8931
+ let TekProductCard = class TekProductCard extends ZdComponentRender {
8932
+ constructor() {
8933
+ super(...arguments);
8934
+ this.instanceType = ProductCard;
8935
+ this.disableTooltip = true;
8936
+ }
8937
+ mounted() {
8938
+ const element = this.$refs.productDiv;
8939
+ setTimeout(() => {
8940
+ this.disableTooltip = !element || element.scrollWidth === element.clientWidth;
8941
+ }, 100);
8942
+ }
8943
+ };
8944
+ __decorate([
8945
+ PropWatch({ type: String, default: '' })
8946
+ ], TekProductCard.prototype, "id", void 0);
8947
+ __decorate([
8948
+ PropWatch({ type: String, default: '' })
8949
+ ], TekProductCard.prototype, "to", void 0);
8950
+ __decorate([
8951
+ PropWatch({ type: String, default: '' })
8952
+ ], TekProductCard.prototype, "src", void 0);
8953
+ __decorate([
8954
+ PropWatch({ type: String, default: '' })
8955
+ ], TekProductCard.prototype, "errorImagePath", void 0);
8956
+ __decorate([
8957
+ PropWatch({ type: String, default: 'UNAVAILABLE_IMAGE' })
8958
+ ], TekProductCard.prototype, "errorImageText", void 0);
8959
+ __decorate([
8960
+ PropWatch({ type: String, default: '' })
8961
+ ], TekProductCard.prototype, "productName", void 0);
8962
+ __decorate([
8963
+ PropWatch({ type: String })
8964
+ ], TekProductCard.prototype, "productSupplier", void 0);
8965
+ __decorate([
8966
+ PropWatch({ type: String })
8967
+ ], TekProductCard.prototype, "productBrand", void 0);
8968
+ __decorate([
8969
+ PropWatch({ type: [String, Number] })
8970
+ ], TekProductCard.prototype, "productPrice", void 0);
8971
+ __decorate([
8972
+ PropWatch({ type: String, default: '' })
8973
+ ], TekProductCard.prototype, "width", void 0);
8974
+ __decorate([
8975
+ PropWatch({ type: [Number, String], default: 'auto' })
8976
+ ], TekProductCard.prototype, "height", void 0);
8977
+ __decorate([
8978
+ PropWatch({ type: [Number, String], default: 'none' })
8979
+ ], TekProductCard.prototype, "maxHeight", void 0);
8980
+ __decorate([
8981
+ PropWatch({ type: [Number, String], default: 'none' })
8982
+ ], TekProductCard.prototype, "minHeight", void 0);
8983
+ TekProductCard = __decorate([
8984
+ Component
8985
+ ], TekProductCard);
8986
+ var script$3 = TekProductCard;
8987
+
7703
8988
  /* script */
7704
- const __vue_script__$3 = script$7;
8989
+ const __vue_script__$3 = script$3;
7705
8990
 
7706
8991
  /* template */
7707
8992
  var __vue_render__$3 = function () {
@@ -7843,7 +9128,7 @@ __vue_render__$3._withStripped = true;
7843
9128
  /* style */
7844
9129
  const __vue_inject_styles__$3 = function (inject) {
7845
9130
  if (!inject) return
7846
- inject("data-v-356ccff0_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 });
9131
+ inject("data-v-9a8efbf2_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 });
7847
9132
 
7848
9133
  };
7849
9134
  /* scoped */
@@ -7871,8 +9156,422 @@ __vue_render__$3._withStripped = true;
7871
9156
  undefined
7872
9157
  );
7873
9158
 
9159
+ // eslint-disable-next-line prefer-destructuring
9160
+ const ZdTreeGridEditable = components$1.ZdTreeGridEditable;
9161
+ /**
9162
+ * TekGrid component
9163
+ */
9164
+ let TekGrid = class TekGrid extends ZdTreeGridEditable {
9165
+ constructor() {
9166
+ super(...arguments);
9167
+ this.instanceType = TekTreeGrid;
9168
+ this.debouncedDatasourceGet = debounce((instance) => {
9169
+ if (instance.events.beforeApplyFilter) {
9170
+ instance.events.beforeApplyFilter({ component: instance });
9171
+ }
9172
+ const { datasource } = instance;
9173
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
9174
+ datasource.updateDynamicFilter();
9175
+ }
9176
+ else {
9177
+ datasource.get();
9178
+ }
9179
+ }, 500);
9180
+ this.debouncedFilterChange = debounce((column, index, params) => this.filterValueChange(column, index, params), 1000);
9181
+ this.operationList = '';
9182
+ this.defaultOperation = '';
9183
+ this.defaultRelation = '';
9184
+ this.lastFilter = '';
9185
+ this.tableHeader = null;
9186
+ this.tableBody = null;
9187
+ }
9188
+ updateTitle(instanceUpdateTitle) {
9189
+ if (this.instance.toolbarSlot[0].name === `${this.instance.name}_gridTitle`) {
9190
+ this.instance.toolbarSlot[0].text = instanceUpdateTitle;
9191
+ }
9192
+ }
9193
+ mounted() {
9194
+ this.originalChangeTekGridLayout = this.instance.changeLayout;
9195
+ this.instance.changeLayout = this.onChangeTekGridLayout;
9196
+ this.updateFixedColumns();
9197
+ this.orderColumnVisibility();
9198
+ }
9199
+ minimumColumnWidth(column) {
9200
+ let minWidth = column && column.sortable ? 50 : 34;
9201
+ if (this.instance.columnFilterButton && column && column.filterable) {
9202
+ minWidth += 15;
9203
+ }
9204
+ return minWidth;
9205
+ }
9206
+ onChangeTekGridLayout(event, element) {
9207
+ if (this.originalChangeTekGridLayout) {
9208
+ this.originalChangeTekGridLayout.call(this.instance, event, element);
9209
+ }
9210
+ if (this.instance.showLayoutOptions) {
9211
+ try {
9212
+ const layoutOptions = Metadata.getInstance(`${this.instance.name}_layout_options`);
9213
+ layoutOptions.layoutEdited = true;
9214
+ }
9215
+ catch (_a) {
9216
+ // do nothing
9217
+ }
9218
+ }
9219
+ this.updateFixedColumns();
9220
+ }
9221
+ getFilterActivatorEvents(on, column) {
9222
+ const events = {};
9223
+ Object.keys(on).forEach((eventName) => {
9224
+ events[eventName] = (event) => {
9225
+ this.defaultOperation = 'CONTAINS';
9226
+ this.defaultRelation = 'AND';
9227
+ this.operationList = this.getColumnFilterOptions(column).map((item) => item.operation).join(';');
9228
+ on[eventName](event);
9229
+ };
9230
+ });
9231
+ return events;
9232
+ }
9233
+ getFilterItemChange(prop, column, index, params) {
9234
+ return this.filterItemChange(prop, column, index, params);
9235
+ }
9236
+ getFilterValueChange(column, index, params) {
9237
+ return this.debouncedFilterChange(column, index, params);
9238
+ }
9239
+ isOperationArrayValues(operation) {
9240
+ return ['IN', 'NOT_IN', 'BETWEEN'].includes(operation);
9241
+ }
9242
+ getComponentType(index) {
9243
+ const operationListArray = this.operationList.split(';');
9244
+ return this.isOperationArrayValues(operationListArray[index]) ? 'ZdTextInput' : '';
9245
+ }
9246
+ getComponentHint(index) {
9247
+ const operationListArray = this.operationList.split(';');
9248
+ return this.isOperationArrayValues(operationListArray[index]) ? 'TEKGRID_MULTIPLE_VALUE_HINT' : '';
9249
+ }
9250
+ filterItemChange(prop, column, index, { component, event, element }) {
9251
+ const { name } = component;
9252
+ const valueInputName = name.replace(`-filter-${prop}-`, '-filter-value-');
9253
+ const valueInput = Metadata.getInstance(valueInputName);
9254
+ const operationListArray = this.operationList.split(';');
9255
+ if (prop === 'operation' && operationListArray[index] !== component.value) {
9256
+ operationListArray[index] = component.value;
9257
+ this.operationList = operationListArray.join(';');
9258
+ }
9259
+ try {
9260
+ valueInput.setFocus();
9261
+ }
9262
+ catch (_a) {
9263
+ // do nothing
9264
+ }
9265
+ const { datasource } = this.instance;
9266
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
9267
+ if (datasource.dynamicFilter[column.name] && datasource.dynamicFilter[column.name][index]) {
9268
+ this.lastFilter = JSON.stringify(datasource.dynamicFilter);
9269
+ const { value } = datasource.dynamicFilter[column.name][index];
9270
+ if (prop === 'operation') {
9271
+ if (this.isOperationArrayValues(component.value) && !Array.isArray(value)) {
9272
+ datasource.dynamicFilter[column.name][index].value = [value];
9273
+ }
9274
+ if (!this.isOperationArrayValues(component.value) && Array.isArray(value)) {
9275
+ [datasource.dynamicFilter[column.name][index].value] = value;
9276
+ }
9277
+ }
9278
+ datasource.dynamicFilter[column.name][index][prop] = component.value;
9279
+ if (this.lastFilter !== JSON.stringify(datasource.dynamicFilter)) {
9280
+ this.debouncedDatasourceGet(this.instance);
9281
+ this.onChangeTekGridLayout(event, element);
9282
+ }
9283
+ }
9284
+ }
9285
+ }
9286
+ orderColumnVisibility() {
9287
+ const columnsInvisible = this.instance.columns.filter((column) => column.isVisible === false);
9288
+ if (!columnsInvisible) {
9289
+ return;
9290
+ }
9291
+ const columnsVisible = this.instance.columns.filter((column) => column.isVisible === true);
9292
+ const newOrderColumns = [];
9293
+ if (columnsVisible) {
9294
+ newOrderColumns.push(...columnsVisible);
9295
+ }
9296
+ if (columnsInvisible) {
9297
+ newOrderColumns.push(...columnsInvisible);
9298
+ }
9299
+ this.instance.columns = newOrderColumns;
9300
+ }
9301
+ convertToDateFormat(column, value, revert) {
9302
+ const dateFormat = column.componentProps.dateFormat || Config.dateFormat;
9303
+ const displayFormat = column.componentProps.displayFormat || Config.displayFormat;
9304
+ if (revert) {
9305
+ if (dayjs(value, displayFormat).isValid() || !dayjs(value, dateFormat).isValid()) {
9306
+ return value;
9307
+ }
9308
+ return dayjs(value, dateFormat).format(displayFormat);
9309
+ }
9310
+ if (dayjs(value, dateFormat).isValid() || !dayjs(value, displayFormat).isValid()) {
9311
+ return value;
9312
+ }
9313
+ return dayjs(value, displayFormat).format(dateFormat);
9314
+ }
9315
+ checkDateValueFormat(column, value, revert = false) {
9316
+ if (['ZdDate', 'ZdDateRange'].includes(column.componentProps.component)) {
9317
+ if (Array.isArray(value)) {
9318
+ return value.map((item) => this.convertToDateFormat(column, item, revert));
9319
+ }
9320
+ return this.convertToDateFormat(column, value, revert);
9321
+ }
9322
+ return value;
9323
+ }
9324
+ filterValueChange(column, index, { component, event, element }) {
9325
+ let { value } = component;
9326
+ const { datasource } = this.instance;
9327
+ if (!(element === null || element === void 0 ? void 0 : element.offsetParent))
9328
+ return;
9329
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
9330
+ this.lastFilter = JSON.stringify(datasource.dynamicFilter);
9331
+ if (value) {
9332
+ if (!datasource.dynamicFilter[column.name]) {
9333
+ datasource.dynamicFilter[column.name] = [];
9334
+ }
9335
+ if (!datasource.dynamicFilter[column.name][index]) {
9336
+ const { name } = component;
9337
+ let relation;
9338
+ if (index > 0) {
9339
+ const relationSelectName = name.replace('-filter-value-', '-filter-relation-');
9340
+ const relationSelect = Metadata.getInstance(relationSelectName);
9341
+ relation = relationSelect.value;
9342
+ }
9343
+ else {
9344
+ relation = 'AND';
9345
+ }
9346
+ const operationSelectName = name.replace('-filter-value-', '-filter-operation-');
9347
+ const operationSelect = Metadata.getInstance(operationSelectName);
9348
+ const operation = operationSelect.value;
9349
+ if (this.isOperationArrayValues(operation)) {
9350
+ value = value.split(';');
9351
+ }
9352
+ value = this.checkDateValueFormat(column, value);
9353
+ datasource.dynamicFilter[column.name].push({
9354
+ relation,
9355
+ operation,
9356
+ value,
9357
+ });
9358
+ }
9359
+ else {
9360
+ if (this.isOperationArrayValues(datasource.dynamicFilter[column.name][index].operation)) {
9361
+ value = value.split(';');
9362
+ }
9363
+ value = this.checkDateValueFormat(column, value);
9364
+ datasource.dynamicFilter[column.name][index].value = value;
9365
+ }
9366
+ }
9367
+ else if (datasource.dynamicFilter[column.name] && datasource.dynamicFilter[column.name][index]) {
9368
+ this.defaultOperation = datasource.dynamicFilter[column.name][index].operation;
9369
+ this.defaultRelation = datasource.dynamicFilter[column.name][index].relation;
9370
+ datasource.dynamicFilter[column.name].splice(index, 1);
9371
+ if (datasource.dynamicFilter[column.name].length === 1) {
9372
+ datasource.dynamicFilter[column.name][0].relation = 'AND';
9373
+ }
9374
+ if (!datasource.dynamicFilter[column.name].length) {
9375
+ delete datasource.dynamicFilter[column.name];
9376
+ }
9377
+ }
9378
+ if (this.lastFilter !== JSON.stringify(datasource.dynamicFilter)) {
9379
+ this.debouncedDatasourceGet(this.instance);
9380
+ this.onChangeTekGridLayout(event, element);
9381
+ this.clearHelperValues(column);
9382
+ }
9383
+ }
9384
+ else {
9385
+ this.lastFilter = JSON.stringify(this.instance.datasource.filter);
9386
+ if (value) {
9387
+ this.instance.datasource.addFilter(column.name, value);
9388
+ }
9389
+ else {
9390
+ this.instance.datasource.removeFilter(column.name);
9391
+ }
9392
+ if (this.lastFilter !== JSON.stringify(this.instance.datasource.filter)) {
9393
+ this.debouncedDatasourceGet(this.instance);
9394
+ this.onChangeTekGridLayout(event, element);
9395
+ this.clearHelperValues(column);
9396
+ }
9397
+ }
9398
+ }
9399
+ clearHelperValues(column) {
9400
+ if (!Array.isArray(column.filterProps)) {
9401
+ column.filterProps.helperValue = '';
9402
+ }
9403
+ else {
9404
+ column.filterProps.forEach((prop) => {
9405
+ prop.helperValue = '';
9406
+ });
9407
+ }
9408
+ }
9409
+ getColumnFilterOptions(column) {
9410
+ const filterOptions = [];
9411
+ const { datasource } = this.instance;
9412
+ if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
9413
+ const dynamicFilter = datasource.dynamicFilter[column.name];
9414
+ if (dynamicFilter && dynamicFilter.length > 0) {
9415
+ dynamicFilter.forEach((item) => {
9416
+ let { value } = item;
9417
+ if (this.isOperationArrayValues(item.operation) && Array.isArray(value)) {
9418
+ value = this.checkDateValueFormat(column, value, true);
9419
+ value = value.join(';');
9420
+ }
9421
+ filterOptions.push(Object.assign(Object.assign({}, item), { value }));
9422
+ });
9423
+ }
9424
+ filterOptions.push({
9425
+ operation: this.defaultOperation,
9426
+ relation: this.defaultRelation,
9427
+ value: '',
9428
+ });
9429
+ }
9430
+ else {
9431
+ const option = {
9432
+ operation: undefined,
9433
+ relation: undefined,
9434
+ value: this.instance.datasource.filter[column.name] || '',
9435
+ };
9436
+ filterOptions.push(option);
9437
+ }
9438
+ return filterOptions;
9439
+ }
9440
+ isCurrentRow(row) {
9441
+ const { uniqueKey, currentRow } = this.instance.datasource;
9442
+ return !this.instance.cellSelection && !!((row[uniqueKey] && row[uniqueKey] === currentRow[uniqueKey]));
9443
+ }
9444
+ getVisibleData() {
9445
+ this.scrollData.visibleData = this.instance.datasource.data;
9446
+ return this.scrollData.visibleData;
9447
+ }
9448
+ getData() {
9449
+ return this.instance.treeDataStructure.searchHasNoData
9450
+ ? []
9451
+ : this.instance.treeDataStructure.treeData || this.renderedData;
9452
+ }
9453
+ rowClick(row, event) {
9454
+ this.instance.rowClick(row, event, this.$el);
9455
+ }
9456
+ orderHeaders(headers) {
9457
+ return headers.sort((a, b) => {
9458
+ if (a.fixed === b.fixed)
9459
+ return 0;
9460
+ if (!a.fixed && b.fixed)
9461
+ return 1;
9462
+ return -1;
9463
+ }).filter((item) => (item instanceof TekGridColumn) && (item.isVisible));
9464
+ }
9465
+ updateFixedColumns() {
9466
+ if (this.instance.columns.filter((column) => column.fixed).length === 0)
9467
+ return;
9468
+ if (!this.tableHeader) {
9469
+ this.tableHeader = this.$el.querySelector('table thead tr');
9470
+ this.tableBody = this.$el.querySelector('table tbody');
9471
+ if (!this.tableHeader || !this.tableBody)
9472
+ return;
9473
+ }
9474
+ const headerColumns = Array.from(this.tableHeader.querySelectorAll('th'));
9475
+ let left = this.instance.selectable ? 40 : 0;
9476
+ headerColumns.forEach((column) => {
9477
+ const name = column.getAttribute('column-name');
9478
+ if (name && column.classList.contains('zd-table-fixed-column')) {
9479
+ column.style.left = `${left}px`;
9480
+ left += column.clientWidth;
9481
+ }
9482
+ });
9483
+ }
9484
+ getFixedLeft(column) {
9485
+ if (!column.fixed)
9486
+ return 'unset';
9487
+ const headerElement = this.$refs[`column-${column.name}`];
9488
+ if (!headerElement)
9489
+ return 'unset';
9490
+ return headerElement[0].style.left;
9491
+ }
9492
+ setSpanWidth(column) {
9493
+ return column.width;
9494
+ }
9495
+ };
9496
+ __decorate([
9497
+ PropWatch({ type: [String], default: '' })
9498
+ ], TekGrid.prototype, "title", void 0);
9499
+ __decorate([
9500
+ PropWatch({ type: [Boolean, String], default: false })
9501
+ ], TekGrid.prototype, "addButton", void 0);
9502
+ __decorate([
9503
+ PropWatch({ type: [String], default: 'none' })
9504
+ ], TekGrid.prototype, "deleteButton", void 0);
9505
+ __decorate([
9506
+ PropWatch({ type: [Boolean, String], default: false })
9507
+ ], TekGrid.prototype, "columnsButton", void 0);
9508
+ __decorate([
9509
+ Prop({ type: [Array, String], default: () => [] })
9510
+ ], TekGrid.prototype, "columnsButtonIgnore", void 0);
9511
+ __decorate([
9512
+ PropWatch({ type: [Boolean, String], default: true })
9513
+ ], TekGrid.prototype, "showEditButtons", void 0);
9514
+ __decorate([
9515
+ PropWatch({ type: [Boolean, String], default: false })
9516
+ ], TekGrid.prototype, "filterButton", void 0);
9517
+ __decorate([
9518
+ PropWatch({ type: [Object] })
9519
+ ], TekGrid.prototype, "modalFilterProps", void 0);
9520
+ __decorate([
9521
+ PropWatch({ type: [Boolean, String], default: true })
9522
+ ], TekGrid.prototype, "showSearch", void 0);
9523
+ __decorate([
9524
+ PropWatch({ type: [Boolean, String], default: false })
9525
+ ], TekGrid.prototype, "columnFilterButton", void 0);
9526
+ __decorate([
9527
+ Prop({ type: [Array], default: () => [] })
9528
+ ], TekGrid.prototype, "actions", void 0);
9529
+ __decorate([
9530
+ PropWatch({ type: [String, Boolean], default: true })
9531
+ ], TekGrid.prototype, "dragColumns", void 0);
9532
+ __decorate([
9533
+ PropWatch({ type: [String, Boolean], default: true })
9534
+ ], TekGrid.prototype, "mainGrid", void 0);
9535
+ __decorate([
9536
+ PropWatch({ type: [String, Boolean], default: true })
9537
+ ], TekGrid.prototype, "resizeColumns", void 0);
9538
+ __decorate([
9539
+ PropWatch({ type: [String, Boolean], default: true })
9540
+ ], TekGrid.prototype, "showLayoutOptions", void 0);
9541
+ __decorate([
9542
+ PropWatch({ type: [String, Boolean], default: false })
9543
+ ], TekGrid.prototype, "showExport", void 0);
9544
+ __decorate([
9545
+ PropWatch({ type: [String, Boolean], default: true })
9546
+ ], TekGrid.prototype, "showReload", void 0);
9547
+ __decorate([
9548
+ PropWatch({ type: [Object] })
9549
+ ], TekGrid.prototype, "defaultFilter", void 0);
9550
+ __decorate([
9551
+ PropWatch({ type: [String] })
9552
+ ], TekGrid.prototype, "reportTitle", void 0);
9553
+ __decorate([
9554
+ Prop({ type: [String, Array] })
9555
+ ], TekGrid.prototype, "exportConfig", void 0);
9556
+ __decorate([
9557
+ Prop({ type: [Array] })
9558
+ ], TekGrid.prototype, "exportActions", void 0);
9559
+ __decorate([
9560
+ Prop({
9561
+ type: Array,
9562
+ default: () => undefined,
9563
+ })
9564
+ ], TekGrid.prototype, "toolbarSlot", void 0);
9565
+ __decorate([
9566
+ Watch('instance.title')
9567
+ ], TekGrid.prototype, "updateTitle", null);
9568
+ TekGrid = __decorate([
9569
+ Component
9570
+ ], TekGrid);
9571
+ var script$2 = TekGrid;
9572
+
7874
9573
  /* script */
7875
- const __vue_script__$2 = script$6;
9574
+ const __vue_script__$2 = script$2;
7876
9575
 
7877
9576
  /* template */
7878
9577
  var __vue_render__$2 = function () {
@@ -8669,7 +10368,7 @@ __vue_render__$2._withStripped = true;
8669
10368
  /* style */
8670
10369
  const __vue_inject_styles__$2 = function (inject) {
8671
10370
  if (!inject) return
8672
- inject("data-v-1b6893dd_0", { source: ".tek-grid .zd-table-cell-text-first {\n display: inline-flex;\n width: 100%;\n}\n.tek-grid .zd-grid-toolbar {\n height: 38px;\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 flex-grow: 1;\n line-height: 22px;\n color: var(--v-primary-base);\n}\n.tek-grid table thead tr th.zd-table-cell.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 5;\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.theme--light {\n background: #f6f6f6;\n}\n.tek-grid table tbody tr.footer.theme--dark {\n background: #3b3b3b;\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: var(--row-active-color);\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-first-group-cell {\n display: flex;\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 .zd-table-group-two-plus-container {\n display: flex;\n height: 100%;\n align-items: center;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation {\n top: unset;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation :not(.first-group) {\n margin-left: 10px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation.first-group {\n width: 14px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\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 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}\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 .zd-table-two-plus-groups {\n display: flex !important;\n}\n.tek-grid table .zd-table-two-plus-groups .zd-table-cell-text {\n position: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation {\n top: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\n}\n.tek-grid table .tek-grid-body-group-identation {\n width: 8px;\n display: flex;\n position: relative;\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: 1rem;\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 top: -10%;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer-no-line {\n border-left: none;\n}\n.tek-grid table .footer .zd-grid-row-checkbox {\n display: none;\n}\n.tek-grid .zd-skeleton-table-cell .v-skeleton-loader__table-cell {\n height: auto;\n}\n.tek-grid-export-landscape i {\n transform: rotate(-90deg);\n}\n.tek-grid-export-multioption-text {\n padding-left: 3px;\n font-size: var(--zd-font-body4-size);\n font-weight: var(--zd-font-body4-weight);\n cursor: default;\n}\n.tekgrid-actions-dropdown > * {\n display: block;\n}\n.tek-grid-column-filter-menu {\n padding: 12px 12px 0 12px;\n max-height: 300px;\n}\n.tek-grid-column-filter-menu.theme--light {\n background: #fff;\n}\n.tek-grid-column-filter-menu.theme--dark {\n background: #1e1e1e;\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}\n.is-rotated {\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n}", map: undefined, media: undefined });
10371
+ inject("data-v-a7ff331a_0", { source: ".tek-grid .zd-table-cell-text-first {\n display: inline-flex;\n width: 100%;\n}\n.tek-grid .zd-grid-toolbar {\n height: 38px;\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 flex-grow: 1;\n line-height: 22px;\n color: var(--v-primary-base);\n}\n.tek-grid table thead tr th.zd-table-cell.zd-table-fixed-column {\n position: sticky !important;\n left: 0;\n z-index: 5;\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.theme--light {\n background: #f6f6f6;\n}\n.tek-grid table tbody tr.footer.theme--dark {\n background: #3b3b3b;\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: var(--row-active-color);\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-first-group-cell {\n display: flex;\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 .zd-table-group-two-plus-container {\n display: flex;\n height: 100%;\n align-items: center;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation {\n top: unset;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation :not(.first-group) {\n margin-left: 10px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation.first-group {\n width: 14px;\n}\n.tek-grid table tbody tr td.zd-table-cell.zd-table-group-header .zd-table-group-two-plus-container .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\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 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}\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 .zd-table-two-plus-groups {\n display: flex !important;\n}\n.tek-grid table .zd-table-two-plus-groups .zd-table-cell-text {\n position: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation {\n top: unset !important;\n}\n.tek-grid table .zd-table-two-plus-groups .tek-grid-body-group-identation:not(.first-group) {\n top: unset;\n margin-left: 10px;\n}\n.tek-grid table .tek-grid-body-group-identation {\n width: 8px;\n display: flex;\n position: relative;\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: 1rem;\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 top: -10%;\n}\n.tek-grid table .tek-grid-body-group-identation.group-footer-no-line {\n border-left: none;\n}\n.tek-grid table .footer .zd-grid-row-checkbox {\n display: none;\n}\n.tek-grid .zd-skeleton-table-cell .v-skeleton-loader__table-cell {\n height: auto;\n}\n.tek-grid-export-landscape i {\n transform: rotate(-90deg);\n}\n.tek-grid-export-multioption-text {\n padding-left: 3px;\n font-size: var(--zd-font-body4-size);\n font-weight: var(--zd-font-body4-weight);\n cursor: default;\n}\n.tekgrid-actions-dropdown > * {\n display: block;\n}\n.tek-grid-column-filter-menu {\n padding: 12px 12px 0 12px;\n max-height: 300px;\n}\n.tek-grid-column-filter-menu.theme--light {\n background: #fff;\n}\n.tek-grid-column-filter-menu.theme--dark {\n background: #1e1e1e;\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}\n.is-rotated {\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n margin-right: 3.7px;\n}", map: undefined, media: undefined });
8673
10372
 
8674
10373
  };
8675
10374
  /* scoped */
@@ -8697,8 +10396,34 @@ __vue_render__$2._withStripped = true;
8697
10396
  undefined
8698
10397
  );
8699
10398
 
10399
+ let TekUserInfo = class TekUserInfo extends ZdUserInfo {
10400
+ constructor() {
10401
+ super(...arguments);
10402
+ this.instanceType = TekUserInfo$3;
10403
+ }
10404
+ };
10405
+ __decorate([
10406
+ PropWatch({ type: [String], default: '' })
10407
+ ], TekUserInfo.prototype, "aboutImage", void 0);
10408
+ __decorate([
10409
+ PropWatch({ type: [String], default: '' })
10410
+ ], TekUserInfo.prototype, "defaultEmail", void 0);
10411
+ __decorate([
10412
+ PropWatch({ type: [Object, String], default: null })
10413
+ ], TekUserInfo.prototype, "versionInfo", void 0);
10414
+ __decorate([
10415
+ PropWatch({ type: [String], default: '' })
10416
+ ], TekUserInfo.prototype, "versionUrl", void 0);
10417
+ __decorate([
10418
+ Prop({ type: [Array], default: undefined })
10419
+ ], TekUserInfo.prototype, "bottomSlot", void 0);
10420
+ TekUserInfo = __decorate([
10421
+ Component
10422
+ ], TekUserInfo);
10423
+ var script$1 = TekUserInfo;
10424
+
8700
10425
  /* script */
8701
- const __vue_script__$1 = script$5;
10426
+ const __vue_script__$1 = script$1;
8702
10427
 
8703
10428
  /* template */
8704
10429
  var __vue_render__$1 = function () {
@@ -8753,7 +10478,7 @@ __vue_render__$1._withStripped = true;
8753
10478
  /* style */
8754
10479
  const __vue_inject_styles__$1 = function (inject) {
8755
10480
  if (!inject) return
8756
- inject("data-v-52978667_0", { source: ".about-modal {\n flex-grow: 0;\n overflow-y: unset;\n width: auto;\n border: 3px solid var(--v-primary-base);\n}\n.about-modal .zd-modal-card, .about-modal .zd-modal-card-text, .about-modal .zd-modal-container, .about-modal .zd-tabs {\n height: 100%;\n}\n.about-modal .zd-modal-card-text {\n padding: 8px !important;\n}\n.about-modal .zd-modal-container {\n display: flex;\n flex-direction: column;\n}\n.about-modal .zd-tabs, .about-modal .v-tabs-items {\n overflow-y: auto;\n}\n.about-modal .zd-image-valid {\n width: 50%;\n align-items: center;\n}\n.about-modal #basic-user-info_version_tabs {\n height: 300px !important;\n}\n.about-modal #basic-user-info_about_image {\n text-align: center;\n}", map: undefined, media: undefined });
10481
+ inject("data-v-2ce8ec91_0", { source: ".about-modal {\n flex-grow: 0;\n overflow-y: unset;\n width: auto;\n border: 3px solid var(--v-primary-base);\n}\n.about-modal .zd-modal-card, .about-modal .zd-modal-card-text, .about-modal .zd-modal-container, .about-modal .zd-tabs {\n height: 100%;\n}\n.about-modal .zd-modal-card-text {\n padding: 8px !important;\n}\n.about-modal .zd-modal-container {\n display: flex;\n flex-direction: column;\n}\n.about-modal .zd-tabs, .about-modal .v-tabs-items {\n overflow-y: auto;\n}\n.about-modal .zd-image-valid {\n width: 50%;\n align-items: center;\n}\n.about-modal #basic-user-info_version_tabs {\n height: 300px !important;\n}\n.about-modal #basic-user-info_about_image {\n text-align: center;\n}", map: undefined, media: undefined });
8757
10482
 
8758
10483
  };
8759
10484
  /* scoped */
@@ -8781,8 +10506,27 @@ __vue_render__$1._withStripped = true;
8781
10506
  undefined
8782
10507
  );
8783
10508
 
10509
+ // eslint-disable-next-line prefer-destructuring
10510
+ const ZdList = components$1.ZdList;
10511
+ let TekUserInfoList = class TekUserInfoList extends ZdList {
10512
+ constructor() {
10513
+ super(...arguments);
10514
+ this.instanceType = TekUserInfoList$3;
10515
+ }
10516
+ };
10517
+ __decorate([
10518
+ PropWatch({ type: [String], default: '' })
10519
+ ], TekUserInfoList.prototype, "parentName", void 0);
10520
+ __decorate([
10521
+ PropWatch({ type: [Boolean, String], default: true })
10522
+ ], TekUserInfoList.prototype, "dense", void 0);
10523
+ TekUserInfoList = __decorate([
10524
+ Component
10525
+ ], TekUserInfoList);
10526
+ var script = TekUserInfoList;
10527
+
8784
10528
  /* script */
8785
- const __vue_script__ = script$4;
10529
+ const __vue_script__ = script;
8786
10530
 
8787
10531
  /* template */
8788
10532
  var __vue_render__ = function () {
@@ -8877,4 +10621,4 @@ const TeknisaComponents = {
8877
10621
  const packageContent = require('../package.json');
8878
10622
  VersionService.addPackageVersion(packageContent.name, packageContent.version);
8879
10623
 
8880
- export { script$m as TekBreadcrumbHeader, script$l as TekCardTitle, script$k as TekCrudAddButton, script$j as TekCrudCancelButton, script$i as TekCrudDeleteButton, script$h as TekCrudForm, script$g as TekCrudSaveButton, script$3 as TekDragGrid, TekGrid$2 as TekGrid, script$f as TekGridCellIdentation, script$d as TekGridColumnFilter, script$c as TekGridColumnsButton, script$b as TekGridFilterButton, script$e as TekGridHeaderIndentation, script$a as TekGridLayoutOptions, script$9 as TekImage, script$8 as TekIterableComponentRender, script$7 as TekProductCard, script$6 as TekTreeGrid, script$5 as TekUserInfo, script$4 as TekUserInfoList, TeknisaComponents as default };
10624
+ export { TekBreadcrumbHeader$1 as TekBreadcrumbHeader, TekCardTitle$1 as TekCardTitle, TekCrudAddButton$1 as TekCrudAddButton, TekCrudCancelButton$1 as TekCrudCancelButton, TekCrudDeleteButton$1 as TekCrudDeleteButton, TekCrudForm$1 as TekCrudForm, TekCrudSaveButton$1 as TekCrudSaveButton, TekDragGrid$2 as TekDragGrid, TekGrid$4 as TekGrid, TekGridCellIdentation$1 as TekGridCellIdentation, TekGridColumnFilter$1 as TekGridColumnFilter, TekGridColumnsButton$2 as TekGridColumnsButton, TekGridFilterButton$2 as TekGridFilterButton, TekGridHeaderIndentation$1 as TekGridHeaderIndentation, TekGridLayoutOptions$2 as TekGridLayoutOptions, TekImage$2 as TekImage, TekIterableComponentRender$2 as TekIterableComponentRender, TekProductCard$2 as TekProductCard, TekGrid$2 as TekTreeGrid, TekUserInfo$2 as TekUserInfo, TekUserInfoList$2 as TekUserInfoList, TeknisaComponents as default };