@zeedhi/teknisa-components-vuetify 3.0.4 → 3.2.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 (87) hide show
  1. package/dist/teknisa-components-vuetify.es.js +3234 -0
  2. package/dist/teknisa-vuetify.css +1 -1
  3. package/dist/types/components/index.d.ts +6 -0
  4. package/dist/types/components/public.d.ts +11 -0
  5. package/dist/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.d.ts +3 -0
  6. package/dist/types/components/tek-grid/TekGrid.d.ts +3 -0
  7. package/dist/types/components/tek-grid/column-filter/TekGridColumnFilter.d.ts +36 -0
  8. package/dist/types/components/tek-grid/column-header/TekGridHeaderRow.d.ts +2 -0
  9. package/dist/types/components/tek-grid/columns-button/TekGridColumnsButton.d.ts +3 -0
  10. package/{types → dist/types}/components/tek-grid/columns-button/TekGridColumnsOptionsController.d.ts +67 -66
  11. package/{types → dist/types}/components/tek-grid/columns-button/TekGridColumnsOptionsModal.d.ts +10 -9
  12. package/dist/types/components/tek-grid/filter-button/TekGridFilterButton.d.ts +3 -0
  13. package/dist/types/components/tek-grid/indentation/TekGridIndentation.d.ts +2 -0
  14. package/dist/types/components/tek-grid/layout-options/TekGridLayoutOptions.d.ts +3 -0
  15. package/dist/types/components/tek-grid/row/TekGridFooterRow.d.ts +2 -0
  16. package/dist/types/components/tek-grid/row/TekGridGroupRow.d.ts +2 -0
  17. package/dist/types/components/tek-loading/TekLoading.d.ts +3 -0
  18. package/dist/types/components/tek-user-info/TekUserInfo.d.ts +3 -0
  19. package/dist/types/components/tek-user-info/TekUserInfoList.d.ts +2 -0
  20. package/{types → dist/types}/composables/useTableLayout.d.ts +26 -26
  21. package/{types → dist/types}/index.d.ts +5 -6
  22. package/{types → dist/types}/utils/isArrayOperation.d.ts +2 -2
  23. package/package.json +40 -20
  24. package/src/index.ts +5 -3
  25. package/dist/teknisa-vuetify.js +0 -3885
  26. package/environments.json +0 -16
  27. package/jest.config.js +0 -31
  28. package/rollup.scss.config.js +0 -13
  29. package/src/components/index.ts +0 -38
  30. package/src/components/public.ts +0 -41
  31. package/src/components/tek-breadcrumb-header/TekBreadcrumbHeader.ts +0 -34
  32. package/src/components/tek-breadcrumb-header/TekBreadcrumbHeader.vue +0 -76
  33. package/src/components/tek-grid/TekGrid.ts +0 -318
  34. package/src/components/tek-grid/TekGrid.vue +0 -235
  35. package/src/components/tek-grid/column-filter/TekGridColumnFilter.ts +0 -244
  36. package/src/components/tek-grid/column-filter/TekGridColumnFilter.vue +0 -93
  37. package/src/components/tek-grid/column-header/TekGridHeaderRow.ts +0 -147
  38. package/src/components/tek-grid/column-header/TekGridHeaderRow.vue +0 -78
  39. package/src/components/tek-grid/columns-button/TekGridColumnsButton.ts +0 -96
  40. package/src/components/tek-grid/columns-button/TekGridColumnsButton.vue +0 -273
  41. package/src/components/tek-grid/columns-button/TekGridColumnsOptionsController.ts +0 -470
  42. package/src/components/tek-grid/columns-button/TekGridColumnsOptionsModal.ts +0 -513
  43. package/src/components/tek-grid/filter-button/TekGridFilterButton.ts +0 -47
  44. package/src/components/tek-grid/filter-button/TekGridFilterButton.vue +0 -28
  45. package/src/components/tek-grid/indentation/TekGridIndentation.ts +0 -21
  46. package/src/components/tek-grid/indentation/TekGridIndentation.vue +0 -33
  47. package/src/components/tek-grid/layout-options/TekGridLayoutOptions.ts +0 -119
  48. package/src/components/tek-grid/layout-options/TekGridLayoutOptions.vue +0 -172
  49. package/src/components/tek-grid/row/TekGridFooterRow.ts +0 -62
  50. package/src/components/tek-grid/row/TekGridFooterRow.vue +0 -64
  51. package/src/components/tek-grid/row/TekGridGroupRow.ts +0 -65
  52. package/src/components/tek-grid/row/TekGridGroupRow.vue +0 -65
  53. package/src/components/tek-user-info/TekUserInfo.ts +0 -51
  54. package/src/components/tek-user-info/TekUserInfo.vue +0 -53
  55. package/src/components/tek-user-info/TekUserInfoList.ts +0 -39
  56. package/src/components/tek-user-info/TekUserInfoList.vue +0 -12
  57. package/src/composables/useTableLayout.ts +0 -290
  58. package/src/shims-vue.d.ts +0 -6
  59. package/src/styles/index.scss +0 -0
  60. package/src/utils/isArrayOperation.ts +0 -5
  61. package/tsconfig.eslint.json +0 -9
  62. package/types/components/index.d.ts +0 -5
  63. package/types/components/public.d.ts +0 -9
  64. package/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.d.ts +0 -1138
  65. package/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.ts.d.ts +0 -1138
  66. package/types/components/tek-grid/TekGrid.d.ts +0 -7211
  67. package/types/components/tek-grid/TekGrid.ts.d.ts +0 -7211
  68. package/types/components/tek-grid/column-filter/TekGridColumnFilter.d.ts +0 -130
  69. package/types/components/tek-grid/column-filter/TekGridColumnFilter.ts.d.ts +0 -130
  70. package/types/components/tek-grid/column-header/TekGridHeaderRow.d.ts +0 -225
  71. package/types/components/tek-grid/column-header/TekGridHeaderRow.ts.d.ts +0 -225
  72. package/types/components/tek-grid/columns-button/TekGridColumnsButton.d.ts +0 -2432
  73. package/types/components/tek-grid/columns-button/TekGridColumnsButton.ts.d.ts +0 -2432
  74. package/types/components/tek-grid/filter-button/TekGridFilterButton.d.ts +0 -2920
  75. package/types/components/tek-grid/filter-button/TekGridFilterButton.ts.d.ts +0 -2920
  76. package/types/components/tek-grid/indentation/TekGridIndentation.d.ts +0 -32
  77. package/types/components/tek-grid/indentation/TekGridIndentation.ts.d.ts +0 -32
  78. package/types/components/tek-grid/layout-options/TekGridLayoutOptions.d.ts +0 -1893
  79. package/types/components/tek-grid/layout-options/TekGridLayoutOptions.ts.d.ts +0 -1893
  80. package/types/components/tek-grid/row/TekGridFooterRow.d.ts +0 -90
  81. package/types/components/tek-grid/row/TekGridFooterRow.ts.d.ts +0 -90
  82. package/types/components/tek-grid/row/TekGridGroupRow.d.ts +0 -87
  83. package/types/components/tek-grid/row/TekGridGroupRow.ts.d.ts +0 -87
  84. package/types/components/tek-user-info/TekUserInfo.d.ts +0 -1940
  85. package/types/components/tek-user-info/TekUserInfo.ts.d.ts +0 -1940
  86. package/types/components/tek-user-info/TekUserInfoList.d.ts +0 -1015
  87. package/types/components/tek-user-info/TekUserInfoList.ts.d.ts +0 -1015
@@ -1 +1 @@
1
- .tek-breadcrumb-header .v-breadcrumbs-item{padding:0}.tek-breadcrumb-header .tek-breadcrumb-header-title-col{display:flex;padding-top:5px;padding-left:0}.tek-breadcrumb-header .tek-breadcrumb-header-title-col .tek-breadcrumb-header-slot-right{margin-left:auto}.tek-breadcrumb-header .zd-breadcrumbs{padding:0;font-size:var(--zd-font-body2-size)}.tek-breadcrumb-header .zd-breadcrumbs .v-breadcrumbs__item--disabled{color:#667080}.tek-breadcrumb-header .zd-text{color:#667080}.tek-breadcrumb-header .zd-text.tek-breadcrumb-header-title{font-size:32px;font-weight:bold;line-height:35px;margin-bottom:10px}.tek-breadcrumb-header .zd-text>p{margin:0}.tek-grid .zd-grid__row:not(.tek-grid-group-row) :nth-child(1 of td:not(.zd-grid__selectable-cell)){display:flex}.tek-grid .is-rotated{transform:rotate(180deg);transition:transform .3s ease}.tek-grid .zd-grid__toolbar{height:38px}.tek-grid .zd-grid__toolbar .toolbar-divider{margin:10px}.tek-grid .zd-grid__toolbar .zd-search{width:200px}.tek-grid-columns-button-options{max-height:250px;display:flex;flex-direction:column;background-color:#fff}.tek-grid-columns-button-options.theme--dark{background-color:#1e1e1e}.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper{flex:1;overflow-y:auto}.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table{font-size:13px;border-spacing:0;width:100%}.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table thead tr th{padding:var(--spacing-2) var(--spacing-2) var(--spacing-1) var(--spacing-2);white-space:nowrap;text-align:left;position:sticky;top:0;z-index:10;background-color:var(--zd-background-base)}.tek-grid-columns-button-options .tek-grid-columns-button-table-wrapper .tek-grid-columns-button-table tbody tr td{padding:var(--spacing-1) var(--spacing-2);white-space:nowrap}.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{cursor:-webkit-grab}.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{padding-right:4px}.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{max-width:150px}.tek-grid-columns-button-options .tek-grid-columns-button-table-footer{display:flex}.tek-grid-columns-button-options .tek-grid-columns-button-table-footer .zd-button{flex:1}.tek-grid-columns-button-sortable-drag{background:#fff}.tek-grid-column-option-box{margin:var(--spacing-1);background:#ccc;padding:2px var(--spacing-1);cursor:pointer}.tek-grid-column-option-box>*{display:inline-block}.tek-grid-column-option-box>.zd-icon{font-size:.9rem;margin-left:var(--spacing-2)}.tek-grid-column-option-box.tek-grid-column-option-grouped-true{cursor:default;background:#fafafa}.tek-grid-column-option-box.tek-grid-column-option-grouped-true>.zd-icon{display:none}.tek-grid-column-option-box.tek-grid-column-option-selected-true{background:var(--v-primary-base);color:#fff}.tek-grid-column-option-box.tek-grid-column-option-selected-true>.zd-icon{color:#fff}.tek-grid-column-option-container-col{position:relative}.tek-grid-column-option-container-col .tek-grid-column-option-container{background:#eee;padding:var(--spacing-1);max-height:100px;min-height:42px;align-content:center;position:relative}.tek-grid-column-option-container-col .tek-grid-column-option-container .tek-iterable-footer{display:none !important}.tek-grid-column-option-container-col .tek-grid-column-option-container .zd-text.no-data{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);text-align:center;font-size:.7rem}.tek-grid-column-option-container-col .tek-grid-column-option-label{font-weight:var(--zd-font-body2-weight)}.tek-grid-column-option-container-col .tek-grid-column-option-select-all{position:absolute;top:.5rem;right:var(--spacing-1);color:var(--v-primary-base);cursor:pointer;font-size:.8rem}.tek-grid-column-option-container-col .tek-grid-column-option-drop-here{position:absolute;z-index:100;left:50%;transform:translateX(-50%);top:35px}.tek-grid-column-option-detail-name{color:var(--v-primary-base);font-weight:var(--zd-font-body2-weight);font-size:1.1rem;margin-top:var(--spacing-6)}.zd-container.tek-grid-filter-content-container{position:relative;left:calc(var(--zd-default-padding)*-1) !important;padding-left:var(--zd-default-padding) !important;width:calc(100% + var(--zd-default-padding)*2) !important;padding-right:var(--zd-default-padding) !important;max-width:none !important}.tek-grid-indentation{display:flex;width:8px;margin-left:10px;height:100%}.tek-grid-indentation--divider{border-left:solid 1px #ccc}.tek-grid-indentation--corner{height:60%;border-bottom:1px solid #ccc}.about-modal{flex-grow:0;overflow-y:unset;width:auto;border:3px solid var(--v-primary-base)}.about-modal .zd-modal-card,.about-modal .zd-modal-card-text,.about-modal .zd-modal-container,.about-modal .zd-tabs{height:100%}.about-modal .v-card-text{font-size:.875rem !important}.about-modal .zd-modal-card-text{padding:8px !important}.about-modal .zd-modal-container{display:flex;flex-direction:column}.about-modal .zd-tabs,.about-modal .v-tabs-items{overflow-y:auto}.about-modal .zd-image-valid{width:50%;align-items:center}.about-modal #basic-user-info_version_tabs{height:300px !important}.about-modal #basic-user-info_about_image{text-align:center}.tek-grid-footer-row--summary{background:var(--row-active-color)}.tek-grid-footer-row--summary .zd-grid__cell-content{font-size:15px}.tek-grid-footer-row .zd-grid__cell-content{padding:0 8px;font-weight:bold}.tek-grid-group-cell{font-weight:bold}.tek-grid-group-cell__container{height:100%;align-items:center;position:sticky}.tek-grid-layout-options-badge .v-badge__badge{font-size:var(--zd-font-caption-size);font-weight:var(--zd-font-caption-weight);line-height:14px;pointer-events:none;background-color:var(--zd-badge-background-color) !important}.tek-grid-layout-options-badge .v-badge__badge span{color:var(--zd-badge-text-color) !important}.tek-grid-layout-item{font-size:13px;cursor:pointer;min-height:30px}.tek-grid-layout-item.selected{font-weight:700}.tek-grid-layout-item:hover.theme--light{background:#eee}.tek-grid-layout-item .tek-grid-layout-item-buttons{position:absolute;right:16px}.tek-grid-layout-item .tek-grid-layout-item-buttons .v-icon{font-size:18px}.tek-grid-layout-item-header{max-width:270px;font-size:13px;font-weight:bold;color:var(--v-primary-base) !important;line-height:18px}.tek-grid-layout-item-header.edited{color:var(--v-error-darken2) !important}.tek-grid-layout-item-discard{min-height:30px;padding-top:10px}
1
+ /* CSS is injected via JS at runtime, see vite-plugin-css-injected-by-js */
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import { IDictionary } from '@zeedhi/core';
3
+ export * from './tek-breadcrumb-header/TekBreadcrumbHeader';
4
+ export * from './tek-loading/TekLoading';
5
+ export declare const components: IDictionary<any>;
6
+ export declare function RegisterComponents(app: App): void;
@@ -0,0 +1,11 @@
1
+ import { default as TekBreadcrumbHeader } from './tek-breadcrumb-header/TekBreadcrumbHeader';
2
+ import { default as TekGrid } from './tek-grid/TekGrid';
3
+ import { default as TekGridColumnFilter } from './tek-grid/column-filter/TekGridColumnFilter';
4
+ import { default as TekGridColumnsButton } from './tek-grid/columns-button/TekGridColumnsButton';
5
+ import { default as TekGridFilterButton } from './tek-grid/filter-button/TekGridFilterButton';
6
+ import { default as TekGridLayoutOptions } from './tek-grid/layout-options/TekGridLayoutOptions';
7
+ import { default as TekLoading } from './tek-loading/TekLoading.vue';
8
+ import { default as TekUserInfo } from './tek-user-info/TekUserInfo';
9
+ import { default as TekUserInfoList } from './tek-user-info/TekUserInfoList';
10
+ export { TekBreadcrumbHeader, TekGrid, TekGridColumnFilter, TekGridColumnsButton, TekGridFilterButton, TekGridLayoutOptions, TekLoading, TekUserInfo, TekUserInfoList, };
11
+ export { TekLoadingProps } from './tek-loading/TekLoading';
@@ -0,0 +1,3 @@
1
+ export declare const TekBreadcrumbHeaderProps: any;
2
+ declare const breadcrumbHeaderComponent: any;
3
+ export default breadcrumbHeaderComponent;
@@ -0,0 +1,3 @@
1
+ export declare const TekGridProps: any;
2
+ declare const gridEditableComponent: any;
3
+ export default gridEditableComponent;
@@ -0,0 +1,36 @@
1
+ export declare const TekGridColumnFilterProps: {
2
+ readonly hasFilterData: {
3
+ readonly type: BooleanConstructor;
4
+ readonly default: false;
5
+ };
6
+ readonly column: {
7
+ readonly type: ObjectConstructor;
8
+ readonly required: true;
9
+ };
10
+ readonly modelValue: {
11
+ readonly type: PropType<IDynamicFilterItem[]>;
12
+ readonly default: readonly [];
13
+ };
14
+ readonly instanceName: {
15
+ readonly type: StringConstructor;
16
+ readonly required: true;
17
+ };
18
+ readonly filterRelationsDatasource: {
19
+ readonly type: PropType<boolean | null>;
20
+ readonly required: false;
21
+ };
22
+ readonly filterOperationsDatasource: {
23
+ readonly type: PropType<boolean | null>;
24
+ readonly required: false;
25
+ };
26
+ readonly isHovering: {
27
+ readonly type: BooleanConstructor;
28
+ readonly default: false;
29
+ };
30
+ readonly multiple: {
31
+ readonly type: BooleanConstructor;
32
+ readonly required: true;
33
+ };
34
+ };
35
+ declare const tekGridColumnFilter: any;
36
+ export default tekGridColumnFilter;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const TekGridColumnsButtonProps: any;
2
+ declare const tekGridColumnsButton: any;
3
+ export default tekGridColumnsButton;
@@ -1,66 +1,67 @@
1
- import { Modal, Select } from '@zeedhi/common';
2
- import { TekGridColumnsButton } from '@zeedhi/teknisa-components-common';
3
- import { IDictionary, IEventParam } from '@zeedhi/core';
4
- export default class TekGridColumnsOptionsController {
5
- modal: Modal;
6
- columnData: IDictionary<any>;
7
- fixedColumns: IDictionary<any>[];
8
- visibleColumns: IDictionary<any>[];
9
- groupedColumns: IDictionary<any>[];
10
- otherColumns: IDictionary<any>[];
11
- aggregationData: IDictionary<any>[];
12
- selectedColumnNames: string[];
13
- searchValue: string;
14
- showGroups: boolean;
15
- private selectedColumnsAlignment?;
16
- private selectedColumnsAggregation?;
17
- private iterableComponent;
18
- private instanceValue;
19
- constructor(modal: Modal);
20
- private updateArrays;
21
- set instance(instance: TekGridColumnsButton);
22
- private getAggregationText;
23
- private columnInSearch;
24
- get fixedColumnData(): any;
25
- set fixedColumnData(_data: any);
26
- get visibleColumnData(): any;
27
- set visibleColumnData(_data: any);
28
- get groupedColumnData(): any;
29
- set groupedColumnData(_data: any);
30
- get otherColumnData(): any;
31
- set otherColumnData(_data: any);
32
- get hasSelectedColumn(): boolean;
33
- get hasNoSelectedColumn(): boolean;
34
- get detailColumnName(): string;
35
- get hasNoFixedColumns(): boolean;
36
- get hasNoVisibleColumns(): boolean;
37
- get hasNoGroupedColumns(): boolean;
38
- get hasNoOtherColumns(): boolean;
39
- get hasNoSingleSelection(): boolean;
40
- get selectedColumnLabel(): string;
41
- set selectedColumnLabel(value: string);
42
- private getSameValue;
43
- private setSameValue;
44
- get groupInSelection(): boolean;
45
- get notGroupInSelection(): boolean;
46
- get selectedColumnGroupOpened(): any;
47
- set selectedColumnGroupOpened(value: any);
48
- selectMounted({ component }: IEventParam<Select>): void;
49
- private updatingSelect;
50
- selectChange({ component }: IEventParam<Select>): void;
51
- private updateSelects;
52
- private updateSelect;
53
- private columnRemoveClick;
54
- columnFixedRemoveClick({ element }: IEventParam<any>): void;
55
- columnVisibleRemoveClick({ element }: IEventParam<any>): void;
56
- columnGroupedRemoveClick({ element }: IEventParam<any>): void;
57
- private isMacPlatform;
58
- private isMobilePlatform;
59
- columnClick({ element, event }: IEventParam<any>): void;
60
- private removeFromSourceList;
61
- private onDragEnd;
62
- columnContainerMounted({ element }: IEventParam<Modal>): void;
63
- selectAll({ component }: IEventParam<any>): void;
64
- cancelChanges(): void;
65
- applyChanges({ event, element }: IEventParam<any>): void;
66
- }
1
+ import { Modal, Select } from '@zeedhi/common';
2
+ import { TekGridColumnsButton } from '@zeedhi/teknisa-components-common';
3
+ import { IDictionary, IEventParam } from '@zeedhi/core';
4
+ export default class TekGridColumnsOptionsController {
5
+ modal: Modal;
6
+ columnData: IDictionary<any>;
7
+ fixedColumns: IDictionary<any>[];
8
+ visibleColumns: IDictionary<any>[];
9
+ groupedColumns: IDictionary<any>[];
10
+ otherColumns: IDictionary<any>[];
11
+ aggregationData: IDictionary<any>[];
12
+ selectedColumnNames: string[];
13
+ searchValue: string;
14
+ showGroups: boolean;
15
+ private selectedColumnsAlignment?;
16
+ private selectedColumnsAggregation?;
17
+ private iterableComponent;
18
+ private instanceValue;
19
+ constructor(modal: Modal);
20
+ private updateArrays;
21
+ set instance(instance: TekGridColumnsButton);
22
+ private getAggregationText;
23
+ private columnInSearch;
24
+ get fixedColumnData(): any;
25
+ set fixedColumnData(_data: any);
26
+ get visibleColumnData(): any;
27
+ set visibleColumnData(_data: any);
28
+ get groupedColumnData(): any;
29
+ set groupedColumnData(_data: any);
30
+ get otherColumnData(): any;
31
+ set otherColumnData(_data: any);
32
+ get hasSelectedColumn(): boolean;
33
+ get hasNoSelectedColumn(): boolean;
34
+ get detailColumnName(): string;
35
+ get hasNoFixedColumns(): boolean;
36
+ get hasNoVisibleColumns(): boolean;
37
+ get hasNoGroupedColumns(): boolean;
38
+ get hasNoOtherColumns(): boolean;
39
+ get hasNoSingleSelection(): boolean;
40
+ get selectedColumnLabel(): string;
41
+ set selectedColumnLabel(value: string);
42
+ private getSameValue;
43
+ private setSameValue;
44
+ get groupInSelection(): boolean;
45
+ get notGroupInSelection(): boolean;
46
+ get selectedColumnGroupOpened(): any;
47
+ set selectedColumnGroupOpened(value: any);
48
+ onShowModal(): void;
49
+ selectMounted({ component }: IEventParam<Select>): void;
50
+ private updatingSelect;
51
+ selectChange({ component }: IEventParam<Select>): void;
52
+ private updateSelects;
53
+ private updateSelect;
54
+ private columnRemoveClick;
55
+ columnFixedRemoveClick({ element }: IEventParam<any>): void;
56
+ columnVisibleRemoveClick({ element }: IEventParam<any>): void;
57
+ columnGroupedRemoveClick({ element }: IEventParam<any>): void;
58
+ private isMacPlatform;
59
+ private isMobilePlatform;
60
+ columnClick({ element, event }: IEventParam<any>): void;
61
+ private removeFromSourceList;
62
+ private onDragEnd;
63
+ columnContainerMounted({ element }: IEventParam<Modal>): void;
64
+ selectAll({ component }: IEventParam<any>): void;
65
+ cancelChanges(): void;
66
+ applyChanges({ event, element }: IEventParam<any>): void;
67
+ }
@@ -1,9 +1,10 @@
1
- import { TekGridColumnsButton } from '@zeedhi/teknisa-components-common';
2
- import { UnwrapNestedRefs } from 'vue';
3
- export default class TekGridColumnsOptionsModal {
4
- private static controllerName;
5
- private static modalDef;
6
- private static modal;
7
- static show(instance: UnwrapNestedRefs<TekGridColumnsButton>): void;
8
- static hide(): void;
9
- }
1
+ import { TekGridColumnsButton } from '@zeedhi/teknisa-components-common';
2
+ import { UnwrapNestedRefs } from 'vue';
3
+ export default class TekGridColumnsOptionsModal {
4
+ private static controllerName;
5
+ private static modalDef;
6
+ private static modal;
7
+ static show(instance: UnwrapNestedRefs<TekGridColumnsButton>): void;
8
+ static hide(): void;
9
+ private static callOnShowModal;
10
+ }
@@ -0,0 +1,3 @@
1
+ export declare const TekGridFilterButtonProps: any;
2
+ declare const tekGridFilterButtonComponent: any;
3
+ export default tekGridFilterButtonComponent;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const TekGridLayoutOptionsProps: any;
2
+ declare const layoutOptionsComponent: any;
3
+ export default layoutOptionsComponent;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const TekLoadingProps: any;
2
+ declare const loadingComponent: any;
3
+ export default loadingComponent;
@@ -0,0 +1,3 @@
1
+ export declare const TekUserInfoProps: any;
2
+ declare const tekUserInfoComponent: any;
3
+ export default tekUserInfoComponent;
@@ -0,0 +1,2 @@
1
+ declare const tekUserInfoListComponent: any;
2
+ export default tekUserInfoListComponent;
@@ -1,26 +1,26 @@
1
- import { IIterable } from '@zeedhi/common';
2
- import { IDynamicFilterItem, IGroupedDataManager, ITekGridLayout, ITekGridLayoutColumn, TekGridColumn } from '@zeedhi/teknisa-components-common';
3
- import { IDictionary } from '@zeedhi/core';
4
- import { ComputedRef, UnwrapNestedRefs } from 'vue';
5
- export type DefaultLayout = {
6
- originalDatasourceOrder: string[];
7
- originalDatasourceFilter: IDictionary<any>;
8
- originalColumnProps: ITekGridLayoutColumn[];
9
- originalDatasourceDynamicFilter: IDictionary<IDynamicFilterItem[]>;
10
- };
11
- export type ApplyLayout = (params: {
12
- layout?: ITekGridLayout;
13
- defaultLayout: DefaultLayout;
14
- changeLayoutCallback: (layout: ITekGridLayout) => void;
15
- }) => void;
16
- export type GetColumnElements = () => IDictionary<Element>;
17
- export type GetTableWidth = () => string;
18
- export declare function useTableLayout(): {
19
- applyLayout: ApplyLayout;
20
- getColumnElements: GetColumnElements;
21
- getTableWidth: GetTableWidth;
22
- };
23
- export declare function provideTableLayout<T extends IIterable<TekGridColumn> & IGroupedDataManager>({ instance, rootEl, }: {
24
- instance: UnwrapNestedRefs<T>;
25
- rootEl: ComputedRef<HTMLElement | undefined>;
26
- }): void;
1
+ import { IIterable } from '@zeedhi/common';
2
+ import { IDynamicFilterItem, IGroupedDataManager, ITekGridLayout, ITekGridLayoutColumn, TekGridColumn } from '@zeedhi/teknisa-components-common';
3
+ import { IDictionary } from '@zeedhi/core';
4
+ import { ComputedRef, UnwrapNestedRefs } from 'vue';
5
+ export type DefaultLayout = {
6
+ originalDatasourceOrder: string[];
7
+ originalDatasourceFilter: IDictionary<any>;
8
+ originalColumnProps: ITekGridLayoutColumn[];
9
+ originalDatasourceDynamicFilter: IDictionary<IDynamicFilterItem[]>;
10
+ };
11
+ export type ApplyLayout = (params: {
12
+ layout?: ITekGridLayout;
13
+ defaultLayout: DefaultLayout;
14
+ changeLayoutCallback: (layout: ITekGridLayout) => void;
15
+ }) => void;
16
+ export type GetColumnElements = () => IDictionary<Element>;
17
+ export type GetTableWidth = () => string;
18
+ export declare function useTableLayout(): {
19
+ applyLayout: any;
20
+ getColumnElements: any;
21
+ getTableWidth: any;
22
+ };
23
+ export declare function provideTableLayout<T extends IIterable<TekGridColumn> & IGroupedDataManager>({ instance, rootEl, }: {
24
+ instance: UnwrapNestedRefs<T>;
25
+ rootEl: ComputedRef<HTMLElement | undefined>;
26
+ }): void;
@@ -1,6 +1,5 @@
1
- import type { App } from 'vue';
2
- declare const TeknisaComponents: {
3
- install(app: App): void;
4
- };
5
- export default TeknisaComponents;
6
- export * from './components/public';
1
+ declare const TeknisaComponents: {
2
+ install(app: App): void;
3
+ };
4
+ export default TeknisaComponents;
5
+ export * from './components/public';
@@ -1,2 +1,2 @@
1
- declare const isArrayOperation: (operation: string) => boolean;
2
- export { isArrayOperation };
1
+ declare const isArrayOperation: (operation: string) => boolean;
2
+ export { isArrayOperation };
package/package.json CHANGED
@@ -1,48 +1,68 @@
1
1
  {
2
2
  "name": "@zeedhi/teknisa-components-vuetify",
3
- "version": "3.0.4",
3
+ "version": "3.2.0",
4
4
  "description": "Teknisa Components based on Vuetify",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
7
7
  "main": "src/index.ts",
8
- "module": "dist/teknisa-vuetify.js",
9
- "typings": "types/index.d.ts",
8
+ "module": "./dist/teknisa-components-vuetify.es.js",
9
+ "types": "./dist/types/index.d.ts",
10
10
  "type": "module",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/teknisa-components-vuetify.es.js",
17
+ "types": "./dist/types/index.d.ts"
18
+ },
19
+ "./dist/teknisa-vuetify.css": "./dist/teknisa-vuetify.css"
20
+ },
11
21
  "publishConfig": {
12
22
  "access": "public"
13
23
  },
14
24
  "scripts": {
15
- "build": "rollup -c && npm run build:scss",
16
- "build:scss": "rollup -c rollup.scss.config.js",
17
- "docs": "typedoc --out docs src/",
18
- "lint": "eslint . --ext .ts --fix",
19
- "watch": "rollup -cw"
25
+ "dev": "vite",
26
+ "build": "vue-tsc -b && vite build",
27
+ "preview": "vite preview"
20
28
  },
21
- "dependencies": {
22
- "@zeedhi/teknisa-components-common": "^3.0.4",
29
+ "peerDependencies": {
30
+ "@zeedhi/common": "^3.0.0",
31
+ "@zeedhi/core": "^3.0.0",
32
+ "@zeedhi/teknisa-components-common": "^3.0.0",
23
33
  "@zeedhi/vuetify": "^3.0.0",
34
+ "vue": "^3.5.13"
35
+ },
36
+ "dependencies": {
24
37
  "@zeedhi/zd-user-info-common": "^3.0.0",
25
38
  "@zeedhi/zd-user-info-vue": "^3.0.0",
39
+ "i18next-vue": "^2.1.1",
26
40
  "lodash.clonedeep": "4.5.*",
27
41
  "lodash.debounce": "4.0.*",
28
42
  "lodash.merge": "4.6.*",
29
- "sortablejs": "1.15.*",
30
- "vue": "^3.0.0",
31
- "vuetify": "~3.11.0"
43
+ "sortablejs": "1.15.*"
32
44
  },
33
45
  "devDependencies": {
34
- "@rollup/plugin-commonjs": "^24.0.1",
35
- "@rollup/plugin-json": "^6.0.0",
36
- "@rollup/plugin-typescript": "^11.1.1",
37
- "@types/jest": "26.0.*",
38
46
  "@types/lodash.clonedeep": "4.5.*",
39
47
  "@types/lodash.debounce": "4.0.*",
40
48
  "@types/lodash.merge": "4.6.*",
49
+ "@types/node": "^22.10.2",
41
50
  "@types/sortablejs": "1.15.*",
42
- "rollup-plugin-vue": "^6.0.0",
43
- "ts-jest": "26.5.*"
51
+ "@vitejs/plugin-vue": "^6.0.7",
52
+ "@vue/tsconfig": "^0.7.0",
53
+ "@zeedhi/common": "^3.0.0",
54
+ "@zeedhi/core": "^3.0.0",
55
+ "@zeedhi/teknisa-components-common": "^3.2.0",
56
+ "@zeedhi/vuetify": "^3.0.0",
57
+ "sass": "^1.83.0",
58
+ "typescript": "~5.6.2",
59
+ "vite": "^6.0.1",
60
+ "vite-plugin-css-injected-by-js": "^3.5.2",
61
+ "vite-plugin-dts": "^4.3.0",
62
+ "vue": "^3.5.13",
63
+ "vue-tsc": "^2.1.10"
44
64
  },
45
- "gitHead": "c9110a75a584766dfe49c370bb10eedfceab2b64",
65
+ "gitHead": "43ffebef28c3efaf5e4f1a6947c37487c439f9a3",
46
66
  "env": {
47
67
  "NODE_ENV": "production"
48
68
  }
package/src/index.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  /* eslint-disable max-len */
2
2
  import type { App } from 'vue';
3
+ import I18NextVue from 'i18next-vue';
3
4
  import { Icons } from '@zeedhi/common';
4
- import ZdUserInfoComponent from '@zeedhi/zd-user-info-vue';
5
5
  import { components } from './components';
6
+ import { I18n } from '@zeedhi/core';
6
7
 
7
8
  Icons.addIcons({
8
9
  add: 'mdi-plus-box',
@@ -17,11 +18,12 @@ Icons.addIcons({
17
18
 
18
19
  const TeknisaComponents = {
19
20
  install(app: App): void {
21
+ if (!app._context.components.i18next) {
22
+ app.use(I18NextVue, { i18next: I18n.instance });
23
+ }
20
24
  Object.keys(components).forEach((id) => {
21
25
  app.component(id, components[id]);
22
26
  });
23
-
24
- app.component('ZdUserInfo', ZdUserInfoComponent);
25
27
  },
26
28
  };
27
29