@zeedhi/teknisa-components-vuetify 3.0.3 → 3.1.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 (51) hide show
  1. package/dist/teknisa-vuetify.css +1 -1
  2. package/dist/teknisa-vuetify.js +3040 -2807
  3. package/package.json +3 -3
  4. package/src/components/index.ts +3 -0
  5. package/src/components/public.ts +4 -0
  6. package/src/components/tek-breadcrumb-header/TekBreadcrumbHeader.ts +8 -1
  7. package/src/components/tek-breadcrumb-header/TekBreadcrumbHeader.vue +1 -0
  8. package/src/components/tek-grid/TekGrid.ts +16 -2
  9. package/src/components/tek-grid/columns-button/TekGridColumnsButton.ts +1 -0
  10. package/src/components/tek-grid/columns-button/TekGridColumnsOptionsModal.ts +1 -1
  11. package/src/components/tek-grid/filter-button/TekGridFilterButton.ts +1 -0
  12. package/src/components/tek-grid/layout-options/TekGridLayoutOptions.ts +6 -1
  13. package/src/components/tek-loading/TekLoading.ts +30 -0
  14. package/src/components/tek-loading/TekLoading.vue +18 -0
  15. package/src/components/tek-user-info/TekUserInfo.ts +2 -1
  16. package/src/components/tek-user-info/TekUserInfoList.ts +6 -1
  17. package/src/index.ts +0 -3
  18. package/types/components/index.d.ts +6 -5
  19. package/types/components/public.d.ts +11 -9
  20. package/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.d.ts +1168 -1138
  21. package/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.ts.d.ts +1168 -1138
  22. package/types/components/tek-grid/TekGrid.d.ts +6443 -7211
  23. package/types/components/tek-grid/TekGrid.ts.d.ts +6443 -7211
  24. package/types/components/tek-grid/column-filter/TekGridColumnFilter.d.ts +130 -130
  25. package/types/components/tek-grid/column-filter/TekGridColumnFilter.ts.d.ts +130 -130
  26. package/types/components/tek-grid/column-header/TekGridHeaderRow.d.ts +225 -225
  27. package/types/components/tek-grid/column-header/TekGridHeaderRow.ts.d.ts +225 -225
  28. package/types/components/tek-grid/columns-button/TekGridColumnsButton.d.ts +2933 -2432
  29. package/types/components/tek-grid/columns-button/TekGridColumnsButton.ts.d.ts +2933 -2432
  30. package/types/components/tek-grid/columns-button/TekGridColumnsOptionsController.d.ts +66 -66
  31. package/types/components/tek-grid/columns-button/TekGridColumnsOptionsModal.d.ts +9 -9
  32. package/types/components/tek-grid/filter-button/TekGridFilterButton.d.ts +3580 -2920
  33. package/types/components/tek-grid/filter-button/TekGridFilterButton.ts.d.ts +3580 -2920
  34. package/types/components/tek-grid/indentation/TekGridIndentation.d.ts +32 -32
  35. package/types/components/tek-grid/indentation/TekGridIndentation.ts.d.ts +32 -32
  36. package/types/components/tek-grid/layout-options/TekGridLayoutOptions.d.ts +2394 -1893
  37. package/types/components/tek-grid/layout-options/TekGridLayoutOptions.ts.d.ts +2394 -1893
  38. package/types/components/tek-grid/row/TekGridFooterRow.d.ts +90 -90
  39. package/types/components/tek-grid/row/TekGridFooterRow.ts.d.ts +90 -90
  40. package/types/components/tek-grid/row/TekGridGroupRow.d.ts +87 -87
  41. package/types/components/tek-grid/row/TekGridGroupRow.ts.d.ts +87 -87
  42. package/types/components/tek-loading/TekLoading.d.ts +663 -0
  43. package/types/components/tek-loading/TekLoading.ts.d.ts +663 -0
  44. package/types/components/tek-user-info/TekUserInfo.d.ts +2459 -1940
  45. package/types/components/tek-user-info/TekUserInfo.ts.d.ts +2459 -1940
  46. package/types/components/tek-user-info/TekUserInfoList.d.ts +1245 -1015
  47. package/types/components/tek-user-info/TekUserInfoList.ts.d.ts +1245 -1015
  48. package/types/composables/useTableLayout.d.ts +26 -26
  49. package/types/index.d.ts +6 -6
  50. package/types/utils/isArrayOperation.d.ts +2 -2
  51. /package/{jest.config.js → jest.config.cjs} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/teknisa-components-vuetify",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "description": "Teknisa Components based on Vuetify",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -19,7 +19,7 @@
19
19
  "watch": "rollup -cw"
20
20
  },
21
21
  "dependencies": {
22
- "@zeedhi/teknisa-components-common": "^3.0.3",
22
+ "@zeedhi/teknisa-components-common": "^3.1.0",
23
23
  "@zeedhi/vuetify": "^3.0.0",
24
24
  "@zeedhi/zd-user-info-common": "^3.0.0",
25
25
  "@zeedhi/zd-user-info-vue": "^3.0.0",
@@ -42,7 +42,7 @@
42
42
  "rollup-plugin-vue": "^6.0.0",
43
43
  "ts-jest": "26.5.*"
44
44
  },
45
- "gitHead": "11a2585cf51e1493b086de34040c3f8115b0d5af",
45
+ "gitHead": "a59638c95db87930b47a12dd8aa8401bf2b906ca",
46
46
  "env": {
47
47
  "NODE_ENV": "production"
48
48
  }
@@ -11,10 +11,12 @@ import TekGridIndentation from './tek-grid/indentation/TekGridIndentation.vue';
11
11
  import TekGridLayoutOptions from './tek-grid/layout-options/TekGridLayoutOptions.vue';
12
12
  import TekGridFooterRow from './tek-grid/row/TekGridFooterRow.vue';
13
13
  import TekGridGroupRow from './tek-grid/row/TekGridGroupRow.vue';
14
+ import TekLoading from './tek-loading/TekLoading.vue';
14
15
  import TekUserInfo from './tek-user-info/TekUserInfo.vue';
15
16
  import TekUserInfoList from './tek-user-info/TekUserInfoList.vue';
16
17
 
17
18
  export * from './tek-breadcrumb-header/TekBreadcrumbHeader';
19
+ export * from './tek-loading/TekLoading';
18
20
 
19
21
  export const components: IDictionary<DefineComponent<any, any, any>> = {
20
22
  TekBreadcrumbHeader,
@@ -27,6 +29,7 @@ export const components: IDictionary<DefineComponent<any, any, any>> = {
27
29
  TekGridLayoutOptions,
28
30
  TekGridFooterRow,
29
31
  TekGridGroupRow,
32
+ TekLoading,
30
33
  TekUserInfo,
31
34
  TekUserInfoList,
32
35
  };
@@ -11,6 +11,7 @@ import TekGridColumnFilter from './tek-grid/column-filter/TekGridColumnFilter';
11
11
  import TekGridColumnsButton from './tek-grid/columns-button/TekGridColumnsButton';
12
12
  import TekGridFilterButton from './tek-grid/filter-button/TekGridFilterButton';
13
13
  import TekGridLayoutOptions from './tek-grid/layout-options/TekGridLayoutOptions';
14
+ import TekLoading from './tek-loading/TekLoading.vue';
14
15
  // import TekImage from './tek-image/TekImage';
15
16
  // import TekIterableComponentRender from './tek-iterable-component-render/TekIterableComponentRender';
16
17
  // import TekProductCard from './tek-product-card/TekProductCard';
@@ -32,6 +33,7 @@ export {
32
33
  TekGridColumnsButton,
33
34
  TekGridFilterButton,
34
35
  TekGridLayoutOptions,
36
+ TekLoading,
35
37
  // TekImage,
36
38
  // TekProductCard,
37
39
  // TekIterableComponentRender,
@@ -39,3 +41,5 @@ export {
39
41
  TekUserInfo,
40
42
  TekUserInfoList,
41
43
  };
44
+
45
+ export { TekLoadingProps } from './tek-loading/TekLoading';
@@ -11,10 +11,12 @@ export const TekBreadcrumbHeaderProps = {
11
11
  breadcrumb: {
12
12
  type: Object,
13
13
  default: {},
14
+ watch: false,
14
15
  },
15
16
  rightSlot: {
16
17
  type: Array,
17
18
  default: () => [],
19
+ watch: false,
18
20
  },
19
21
  };
20
22
 
@@ -22,7 +24,12 @@ const breadcrumbHeaderComponent = defineComponent({
22
24
  props: TekBreadcrumbHeaderProps,
23
25
  inheritAttrs: false,
24
26
  setup(props, ctx) {
25
- const { instance, root } = useCreateInstance<BreadcrumbHeader>(props, ctx, BreadcrumbHeader);
27
+ const { instance, root } = useCreateInstance<BreadcrumbHeader>(
28
+ props,
29
+ ctx,
30
+ BreadcrumbHeader,
31
+ TekBreadcrumbHeaderProps,
32
+ );
26
33
 
27
34
  return {
28
35
  instance,
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  :id="instance.name"
4
+ ref="root"
4
5
  class="tek-breadcrumb-header">
5
6
  <zd-breadcrumbs
6
7
  v-bind="instance.breadcrumb"
@@ -19,6 +19,7 @@ export const TekGridProps = buildProps({
19
19
  toolbarSlot: {
20
20
  type: Array,
21
21
  default: undefined,
22
+ watch: false,
22
23
  },
23
24
  title: {
24
25
  type: String,
@@ -67,6 +68,7 @@ export const TekGridProps = buildProps({
67
68
  actions: {
68
69
  type: Array,
69
70
  default: () => [],
71
+ watch: false,
70
72
  },
71
73
  dragColumns: {
72
74
  type: [Boolean, String],
@@ -93,6 +95,7 @@ export const TekGridProps = buildProps({
93
95
  },
94
96
  exportActions: {
95
97
  type: Array,
98
+ watch: false,
96
99
  },
97
100
  groupsOpened: {
98
101
  type: [Boolean, String],
@@ -134,7 +137,7 @@ const gridEditableComponent = defineComponent({
134
137
  props: TekGridProps,
135
138
  inheritAttrs: false,
136
139
  setup(props, ctx) {
137
- const { instance, root } = useCreateInstance<TekGrid, ComponentPublicInstance>(props, ctx, TekGrid);
140
+ const { instance, root } = useCreateInstance<TekGrid, ComponentPublicInstance>(props, ctx, TekGrid, TekGridProps);
138
141
 
139
142
  const renderedData = computed(() => {
140
143
  if (instance.isGrouped()) {
@@ -147,7 +150,18 @@ const gridEditableComponent = defineComponent({
147
150
  return renderedData.value.filter((row) => instance.isItemVisible(row));
148
151
  });
149
152
 
150
- const gridEditableScope = useGridEditableInstance({ instance, root, renderedData: visibleData });
153
+ const isNavigableRow = (element: Element) => {
154
+ return element.classList.contains('zd-grid__row')
155
+ && !element.classList.contains('tek-grid-group-row')
156
+ && !element.classList.contains('tek-grid-footer-row');
157
+ };
158
+
159
+ const gridEditableScope = useGridEditableInstance({
160
+ instance,
161
+ root,
162
+ renderedData: visibleData,
163
+ isNavigableRow,
164
+ });
151
165
 
152
166
  const rootEl = getRootElement(root);
153
167
  const { visibleColumns } = useGridColumns({
@@ -20,6 +20,7 @@ const tekGridColumnsButton = defineComponent({
20
20
  props,
21
21
  ctx,
22
22
  TekGridColumnsButton,
23
+ TekGridColumnsButtonProps,
23
24
  );
24
25
  const buttonScope = useButtonInstance({ instance, root });
25
26
 
@@ -5,7 +5,7 @@ import { UnwrapNestedRefs } from 'vue';
5
5
  import TekGridColumnsOptionsController from './TekGridColumnsOptionsController';
6
6
 
7
7
  export default class TekGridColumnsOptionsModal {
8
- private static controllerName = `TekGridColumnsOptionsController_${new Date().getTime()}`;
8
+ private static controllerName = `TekGridColumnsOptionsController_${Date.now()}`;
9
9
 
10
10
  private static modalDef: IModal = {
11
11
  name: 'tekGridColumnsOptionsModal',
@@ -28,6 +28,7 @@ const tekGridFilterButtonComponent = defineComponent({
28
28
  props,
29
29
  ctx,
30
30
  TekGridFilterButton,
31
+ TekGridFilterButtonProps,
31
32
  );
32
33
  const buttonScope = useButtonInstance({ instance, root });
33
34
 
@@ -14,7 +14,12 @@ const layoutOptionsComponent = defineComponent({
14
14
  props: TekGridLayoutOptionsProps,
15
15
  inheritAttrs: false,
16
16
  setup(props, ctx) {
17
- const { instance, root } = useCreateInstance<TekGridLayoutOptions>(props, ctx, TekGridLayoutOptions);
17
+ const { instance, root } = useCreateInstance<TekGridLayoutOptions>(
18
+ props,
19
+ ctx,
20
+ TekGridLayoutOptions,
21
+ TekGridLayoutOptionsProps,
22
+ );
18
23
 
19
24
  const { applyLayout: applyTekGridLayout, getColumnElements, getTableWidth } = useTableLayout();
20
25
 
@@ -0,0 +1,30 @@
1
+ import { Loading } from '@zeedhi/teknisa-components-common';
2
+ import { useCreateInstance, ZdLoadingProps } from '@zeedhi/vuetify';
3
+ import { defineComponent } from 'vue';
4
+
5
+ export const TekLoadingProps = {
6
+ ...ZdLoadingProps,
7
+ text: {
8
+ type: String,
9
+ default: '',
10
+ },
11
+ image: {
12
+ type: String,
13
+ default: undefined,
14
+ },
15
+ };
16
+
17
+ const loadingComponent = defineComponent({
18
+ props: TekLoadingProps,
19
+ inheritAttrs: false,
20
+ setup(props, ctx) {
21
+ const { instance, root } = useCreateInstance<Loading>(props, ctx, Loading, TekLoadingProps);
22
+
23
+ return {
24
+ instance,
25
+ root,
26
+ };
27
+ },
28
+ });
29
+
30
+ export default loadingComponent;
@@ -0,0 +1,18 @@
1
+ <template>
2
+ <zd-loading
3
+ ref="root"
4
+ v-bind="{
5
+ name: instance.name,
6
+ text: instance.text,
7
+ image: instance.image,
8
+ zIndex: instance.zIndex,
9
+ textColor,
10
+ loadingColor,
11
+ size,
12
+ loadingWidth,
13
+ opacity,
14
+ }"
15
+ />
16
+ </template>
17
+
18
+ <script lang="ts" src="./TekLoading.ts"></script>
@@ -25,6 +25,7 @@ export const TekUserInfoProps ={
25
25
  bottomSlot: {
26
26
  type: Array as () => IComponentRender[],
27
27
  default: undefined,
28
+ watch: false,
28
29
  },
29
30
  };
30
31
 
@@ -32,7 +33,7 @@ const tekUserInfoComponent = defineComponent({
32
33
  props: TekUserInfoProps,
33
34
  inheritAttrs: false,
34
35
  setup(props, ctx) {
35
- const { instance, root } = useCreateInstance<TekUserInfoClass>(props, ctx, TekUserInfoClass);
36
+ const { instance, root } = useCreateInstance<TekUserInfoClass>(props, ctx, TekUserInfoClass, TekUserInfoProps);
36
37
 
37
38
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root);
38
39
 
@@ -19,7 +19,12 @@ const tekUserInfoListComponent = defineComponent({
19
19
  props: TekUserInfoListProps,
20
20
  inheritAttrs: false,
21
21
  setup(props,ctx) {
22
- const { instance, root } = useCreateInstance<TekUserInfoListClass>(props, ctx, TekUserInfoListClass);
22
+ const { instance, root } = useCreateInstance<TekUserInfoListClass>(
23
+ props,
24
+ ctx,
25
+ TekUserInfoListClass,
26
+ TekUserInfoListProps,
27
+ );
23
28
 
24
29
  const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root);
25
30
 
package/src/index.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable max-len */
2
2
  import type { App } from 'vue';
3
3
  import { Icons } from '@zeedhi/common';
4
- import ZdUserInfoComponent from '@zeedhi/zd-user-info-vue';
5
4
  import { components } from './components';
6
5
 
7
6
  Icons.addIcons({
@@ -20,8 +19,6 @@ const TeknisaComponents = {
20
19
  Object.keys(components).forEach((id) => {
21
20
  app.component(id, components[id]);
22
21
  });
23
-
24
- app.component('ZdUserInfo', ZdUserInfoComponent);
25
22
  },
26
23
  };
27
24
 
@@ -1,5 +1,6 @@
1
- import type { App, DefineComponent } from 'vue';
2
- import type { IDictionary } from '@zeedhi/core';
3
- export * from './tek-breadcrumb-header/TekBreadcrumbHeader';
4
- export declare const components: IDictionary<DefineComponent<any, any, any>>;
5
- export declare function RegisterComponents(app: App): void;
1
+ import type { App, DefineComponent } from 'vue';
2
+ import type { IDictionary } from '@zeedhi/core';
3
+ export * from './tek-breadcrumb-header/TekBreadcrumbHeader';
4
+ export * from './tek-loading/TekLoading';
5
+ export declare const components: IDictionary<DefineComponent<any, any, any>>;
6
+ export declare function RegisterComponents(app: App): void;
@@ -1,9 +1,11 @@
1
- import TekBreadcrumbHeader from './tek-breadcrumb-header/TekBreadcrumbHeader';
2
- import TekGrid from './tek-grid/TekGrid';
3
- import TekGridColumnFilter from './tek-grid/column-filter/TekGridColumnFilter';
4
- import TekGridColumnsButton from './tek-grid/columns-button/TekGridColumnsButton';
5
- import TekGridFilterButton from './tek-grid/filter-button/TekGridFilterButton';
6
- import TekGridLayoutOptions from './tek-grid/layout-options/TekGridLayoutOptions';
7
- import TekUserInfo from './tek-user-info/TekUserInfo';
8
- import TekUserInfoList from './tek-user-info/TekUserInfoList';
9
- export { TekBreadcrumbHeader, TekGrid, TekGridColumnFilter, TekGridColumnsButton, TekGridFilterButton, TekGridLayoutOptions, TekUserInfo, TekUserInfoList, };
1
+ import TekBreadcrumbHeader from './tek-breadcrumb-header/TekBreadcrumbHeader';
2
+ import TekGrid from './tek-grid/TekGrid';
3
+ import TekGridColumnFilter from './tek-grid/column-filter/TekGridColumnFilter';
4
+ import TekGridColumnsButton from './tek-grid/columns-button/TekGridColumnsButton';
5
+ import TekGridFilterButton from './tek-grid/filter-button/TekGridFilterButton';
6
+ import TekGridLayoutOptions from './tek-grid/layout-options/TekGridLayoutOptions';
7
+ import TekLoading from './tek-loading/TekLoading.vue';
8
+ import TekUserInfo from './tek-user-info/TekUserInfo';
9
+ import TekUserInfoList from './tek-user-info/TekUserInfoList';
10
+ export { TekBreadcrumbHeader, TekGrid, TekGridColumnFilter, TekGridColumnsButton, TekGridFilterButton, TekGridLayoutOptions, TekLoading, TekUserInfo, TekUserInfoList, };
11
+ export { TekLoadingProps } from './tek-loading/TekLoading';