@zeedhi/teknisa-components-vuetify 3.1.0 → 3.3.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 (92) hide show
  1. package/dist/teknisa-components-vuetify.es.js +3235 -0
  2. package/dist/teknisa-components-vuetify.es.js.map +1 -0
  3. package/dist/teknisa-vuetify.css +1 -1
  4. package/dist/types/components/index.d.ts +6 -0
  5. package/dist/types/components/public.d.ts +11 -0
  6. package/dist/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.d.ts +3 -0
  7. package/dist/types/components/tek-grid/TekGrid.d.ts +3 -0
  8. package/dist/types/components/tek-grid/column-filter/TekGridColumnFilter.d.ts +36 -0
  9. package/dist/types/components/tek-grid/column-header/TekGridHeaderRow.d.ts +2 -0
  10. package/dist/types/components/tek-grid/columns-button/TekGridColumnsButton.d.ts +3 -0
  11. package/{types → dist/types}/components/tek-grid/columns-button/TekGridColumnsOptionsController.d.ts +1 -0
  12. package/{types → dist/types}/components/tek-grid/columns-button/TekGridColumnsOptionsModal.d.ts +1 -0
  13. package/dist/types/components/tek-grid/filter-button/TekGridFilterButton.d.ts +3 -0
  14. package/dist/types/components/tek-grid/indentation/TekGridIndentation.d.ts +2 -0
  15. package/dist/types/components/tek-grid/layout-options/TekGridLayoutOptions.d.ts +3 -0
  16. package/dist/types/components/tek-grid/row/TekGridFooterRow.d.ts +2 -0
  17. package/dist/types/components/tek-grid/row/TekGridGroupRow.d.ts +2 -0
  18. package/dist/types/components/tek-loading/TekLoading.d.ts +3 -0
  19. package/dist/types/components/tek-user-info/TekUserInfo.d.ts +3 -0
  20. package/dist/types/components/tek-user-info/TekUserInfoList.d.ts +2 -0
  21. package/{types → dist/types}/composables/useTableLayout.d.ts +3 -3
  22. package/{types → dist/types}/index.d.ts +0 -1
  23. package/package.json +40 -20
  24. package/src/index.ts +5 -0
  25. package/dist/teknisa-vuetify.js +0 -4117
  26. package/environments.json +0 -16
  27. package/jest.config.cjs +0 -31
  28. package/rollup.scss.config.js +0 -13
  29. package/src/components/index.ts +0 -41
  30. package/src/components/public.ts +0 -45
  31. package/src/components/tek-breadcrumb-header/TekBreadcrumbHeader.ts +0 -41
  32. package/src/components/tek-breadcrumb-header/TekBreadcrumbHeader.vue +0 -76
  33. package/src/components/tek-grid/TekGrid.ts +0 -332
  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 -97
  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 -48
  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 -124
  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-loading/TekLoading.ts +0 -30
  54. package/src/components/tek-loading/TekLoading.vue +0 -18
  55. package/src/components/tek-user-info/TekUserInfo.ts +0 -52
  56. package/src/components/tek-user-info/TekUserInfo.vue +0 -53
  57. package/src/components/tek-user-info/TekUserInfoList.ts +0 -44
  58. package/src/components/tek-user-info/TekUserInfoList.vue +0 -12
  59. package/src/composables/useTableLayout.ts +0 -290
  60. package/src/shims-vue.d.ts +0 -6
  61. package/src/styles/index.scss +0 -0
  62. package/src/utils/isArrayOperation.ts +0 -5
  63. package/tsconfig.eslint.json +0 -9
  64. package/types/components/index.d.ts +0 -6
  65. package/types/components/public.d.ts +0 -11
  66. package/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.d.ts +0 -1168
  67. package/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.ts.d.ts +0 -1168
  68. package/types/components/tek-grid/TekGrid.d.ts +0 -6443
  69. package/types/components/tek-grid/TekGrid.ts.d.ts +0 -6443
  70. package/types/components/tek-grid/column-filter/TekGridColumnFilter.d.ts +0 -130
  71. package/types/components/tek-grid/column-filter/TekGridColumnFilter.ts.d.ts +0 -130
  72. package/types/components/tek-grid/column-header/TekGridHeaderRow.d.ts +0 -225
  73. package/types/components/tek-grid/column-header/TekGridHeaderRow.ts.d.ts +0 -225
  74. package/types/components/tek-grid/columns-button/TekGridColumnsButton.d.ts +0 -2933
  75. package/types/components/tek-grid/columns-button/TekGridColumnsButton.ts.d.ts +0 -2933
  76. package/types/components/tek-grid/filter-button/TekGridFilterButton.d.ts +0 -3580
  77. package/types/components/tek-grid/filter-button/TekGridFilterButton.ts.d.ts +0 -3580
  78. package/types/components/tek-grid/indentation/TekGridIndentation.d.ts +0 -32
  79. package/types/components/tek-grid/indentation/TekGridIndentation.ts.d.ts +0 -32
  80. package/types/components/tek-grid/layout-options/TekGridLayoutOptions.d.ts +0 -2394
  81. package/types/components/tek-grid/layout-options/TekGridLayoutOptions.ts.d.ts +0 -2394
  82. package/types/components/tek-grid/row/TekGridFooterRow.d.ts +0 -90
  83. package/types/components/tek-grid/row/TekGridFooterRow.ts.d.ts +0 -90
  84. package/types/components/tek-grid/row/TekGridGroupRow.d.ts +0 -87
  85. package/types/components/tek-grid/row/TekGridGroupRow.ts.d.ts +0 -87
  86. package/types/components/tek-loading/TekLoading.d.ts +0 -663
  87. package/types/components/tek-loading/TekLoading.ts.d.ts +0 -663
  88. package/types/components/tek-user-info/TekUserInfo.d.ts +0 -2459
  89. package/types/components/tek-user-info/TekUserInfo.ts.d.ts +0 -2459
  90. package/types/components/tek-user-info/TekUserInfoList.d.ts +0 -1245
  91. package/types/components/tek-user-info/TekUserInfoList.ts.d.ts +0 -1245
  92. /package/{types → dist/types}/utils/isArrayOperation.d.ts +0 -0
@@ -1,124 +0,0 @@
1
- import { Input } from '@zeedhi/common';
2
- import { ITekGridLayout, TekGridLayoutOptions, TekRestDatasource } from '@zeedhi/teknisa-components-common';
3
- import { IEventParam } from '@zeedhi/core';
4
- import { defineComponent, mergeProps, onMounted, ref } from 'vue';
5
- import { ZdComponentRenderProps, useCreateInstance } from '@zeedhi/vuetify';
6
- import { useTableLayout } from '../../../composables/useTableLayout';
7
-
8
- export const TekGridLayoutOptionsProps = {
9
- ...ZdComponentRenderProps,
10
- // Zeedhi 3.0
11
- };
12
-
13
- const layoutOptionsComponent = defineComponent({
14
- props: TekGridLayoutOptionsProps,
15
- inheritAttrs: false,
16
- setup(props, ctx) {
17
- const { instance, root } = useCreateInstance<TekGridLayoutOptions>(
18
- props,
19
- ctx,
20
- TekGridLayoutOptions,
21
- TekGridLayoutOptionsProps,
22
- );
23
-
24
- const { applyLayout: applyTekGridLayout, getColumnElements, getTableWidth } = useTableLayout();
25
-
26
- onMounted(() => {
27
- instance.viewApplyLayout = applyLayout;
28
- instance.viewGetCurrentLayout = getCurrentLayout;
29
- });
30
-
31
- const confirmLayoutClick = ({ component }: IEventParam<Input>) => {
32
- const layoutName = component.value;
33
- if (layoutName) {
34
- const newLayout: ITekGridLayout = getCurrentLayout(layoutName);
35
- instance.newLayout(newLayout);
36
- }
37
-
38
- menuActive.value = false;
39
- component.value = '';
40
- };
41
-
42
- const datasourceDynamicFilter = () => {
43
- const datasource = instance.grid.datasource;
44
- if (datasource instanceof TekRestDatasource) return datasource.dynamicFilter;
45
- return {};
46
- };
47
-
48
- const changeLayout = (layout: ITekGridLayout) => {
49
- instance.updateLayout(layout.name, getCurrentLayout(layout.name));
50
- };
51
-
52
- const applyLayout = (layout?: ITekGridLayout) => {
53
- const defaultLayout = {
54
- originalDatasourceOrder: instance.originalDatasourceOrder,
55
- originalDatasourceFilter: instance.originalDatasourceFilter,
56
- originalColumnProps: instance.originalColumnProps,
57
- originalDatasourceDynamicFilter: instance.originalDatasourceDynamicFilter,
58
- };
59
- applyTekGridLayout({ layout, defaultLayout, changeLayoutCallback: changeLayout });
60
- menuActive.value = false;
61
- };
62
-
63
- const getCurrentLayout = (layoutName: string) => {
64
- const { grid } = instance;
65
-
66
- const gridWidth = getTableWidth();
67
- const columnElementsDict = getColumnElements();
68
-
69
- return {
70
- name: layoutName,
71
- gridWidth,
72
- order: grid.datasource.order,
73
- filter: grid.datasource.filter,
74
- dynamicFilter: datasourceDynamicFilter(),
75
- columns: grid.columns.map((column: any, index) => {
76
- const columnElement = columnElementsDict[index];
77
- return {
78
- name: column.name,
79
- label: column.label,
80
- align: column.align,
81
- width: columnElement ? window.getComputedStyle(columnElement).width : 'unset',
82
- minWidth: column.minWidth,
83
- maxWidth: column.maxWidth,
84
- isVisible: column.isVisible,
85
- fixed: column.fixed,
86
- grouped: column.grouped,
87
- groupOpened: column.groupOpened,
88
- aggregation: column.aggregation,
89
- filterHelperValue: instance.getHelperValue(column),
90
- };
91
- }),
92
- };
93
- };
94
-
95
- const menuActive = ref(false);
96
-
97
- const applyOrUpdateLayout = (event: Event, layoutName: string) => {
98
- if (instance.layoutEdited) {
99
- instance.updateLayout(layoutName, getCurrentLayout(layoutName));
100
- event.stopImmediatePropagation();
101
- menuActive.value = false;
102
- } else {
103
- instance.applyLayout(layoutName);
104
- }
105
- };
106
-
107
- const deleteLayout = (event: Event, layoutName: string) => {
108
- instance.deleteLayout(layoutName);
109
- event.stopImmediatePropagation();
110
- };
111
-
112
- return {
113
- instance,
114
- root,
115
- menuActive,
116
- confirmLayoutClick,
117
- applyOrUpdateLayout,
118
- deleteLayout,
119
- mergeProps,
120
- };
121
- },
122
- });
123
-
124
- export default layoutOptionsComponent;
@@ -1,172 +0,0 @@
1
- <template>
2
- <v-menu
3
- :id="instance.name"
4
- :name="instance.name"
5
- :class="['tek-grid-layout-options', instance.cssClass]"
6
- :style="instance.cssStyle"
7
- v-model="menuActive"
8
- offset-y
9
- :closeOnContentClick="false"
10
- >
11
- <template v-slot:activator="{ props: onMenu }">
12
- <v-tooltip bottom>
13
- <template v-slot:activator="{ props: onTooltip }">
14
- <v-badge
15
- v-show="instance.isVisible"
16
- overlap
17
- class="tek-grid-layout-options-badge"
18
- dot
19
- :offsetX="12"
20
- :offsetY="12"
21
- :value="instance.layoutEdited"
22
- >
23
- <zd-activator-wrapper
24
- ref="root"
25
- v-bind="mergeProps(onMenu, onTooltip)"
26
- :child-props="{
27
- component: 'ZdButton',
28
- name: instance.name + '_button',
29
- icon: true,
30
- iconName: 'mdi-table-star',
31
- isVisible: instance.isVisible,
32
- }"
33
- ></zd-activator-wrapper>
34
- </v-badge>
35
- </template>
36
- <span>{{ $t('LAYOUT') + (instance.currentLayoutName || $t('DEFAULT_LAYOUT')) }}</span>
37
- </v-tooltip>
38
- </template>
39
- <v-list>
40
- <v-list-item
41
- :class="['tek-grid-layout-item-header', { edited: instance.layoutEdited }]"
42
- >
43
- {{ instance.layoutEdited ? $t('LAYOUT_MODIFIED') : $t('LAYOUT_NOT_MODIFIED')}}
44
- </v-list-item>
45
- <v-list-item>
46
- <zd-text-input
47
- :name="instance.name+'_new_layout'"
48
- ref="inputNewLayout"
49
- v-bind="{
50
- showHelper: false,
51
- showLabel: false,
52
- placeholder: 'NEW_LAYOUT',
53
- appendOuterIcon: 'mdi-check',
54
- autofocus: true,
55
- autofill: false,
56
- keyMap: {
57
- enter: {
58
- event: confirmLayoutClick,
59
- input: true,
60
- active: true,
61
- },
62
- },
63
- events: {
64
- appendOuterIconClick: confirmLayoutClick,
65
- },
66
- }"
67
- />
68
- </v-list-item>
69
- <v-list-item
70
- v-if="!instance.layoutEdited"
71
- :class="['tek-grid-layout-item', {
72
- selected: instance.currentLayoutName === ''
73
- }]"
74
- @click="instance.applyLayout('')"
75
- >
76
- {{ $t('DEFAULT_LAYOUT') }}
77
- </v-list-item>
78
- <v-list-item
79
- v-for="item in instance.layoutNames"
80
- :key="item"
81
- :class="['tek-grid-layout-item', {
82
- selected: item === instance.currentLayoutName
83
- }]"
84
- @click="applyOrUpdateLayout($event, item)"
85
- >
86
- {{ item }}
87
- <span v-if="!instance.layoutEdited" class="tek-grid-layout-item-buttons">
88
- <zd-button
89
- :name="'tek-grid-layout-item-delete_' + instance.name + item"
90
- v-bind="{
91
- small: true,
92
- icon: true,
93
- iconName: 'mdi-trash-can-outline',
94
- events: {
95
- click: ({ event }) => { deleteLayout(event, item) },
96
- },
97
- }"
98
- />
99
- </span>
100
- </v-list-item>
101
- <v-list-item
102
- v-if="instance.layoutEdited"
103
- :class="['tek-grid-layout-item-discard']"
104
- @click="instance.discardChanges()"
105
- >
106
- <zd-button small color="error darken-2" width="100%" name="tek-grid-layout-item-discard-changes" label="LAYOUT_DISCART_CHANGES"></zd-button>
107
- </v-list-item>
108
- </v-list>
109
- </v-menu>
110
- </template>
111
-
112
- <script lang="ts" src="./TekGridLayoutOptions.ts"></script>
113
-
114
- <style lang="scss">
115
- .tek-grid-layout-options {
116
- &-badge {
117
- .v-badge__badge {
118
- font-size: var(--zd-font-caption-size);
119
- font-weight: var(--zd-font-caption-weight);
120
- line-height: 14px;
121
- pointer-events: none;
122
- background-color: var(--zd-badge-background-color) !important;
123
-
124
- span {
125
- color: var(--zd-badge-text-color) !important;
126
- }
127
- }
128
- }
129
- }
130
-
131
- .tek-grid-layout-item {
132
- font-size: 13px;
133
- cursor: pointer;
134
- min-height: 30px;
135
-
136
- &.selected {
137
- font-weight: 700;
138
- }
139
-
140
- &:hover {
141
- &.theme--light {
142
- background: #eee;
143
- }
144
- }
145
-
146
- .tek-grid-layout-item-buttons {
147
- position: absolute;
148
- right: 16px;
149
-
150
- .v-icon {
151
- font-size: 18px;
152
- }
153
- }
154
- }
155
-
156
- .tek-grid-layout-item-header {
157
- max-width: 270px;
158
- font-size: 13px;
159
- font-weight: bold;
160
- color: var(--v-primary-base) !important;
161
- line-height: 18px;
162
-
163
- &.edited {
164
- color: var(--v-error-darken2) !important;
165
- }
166
- }
167
-
168
- .tek-grid-layout-item-discard {
169
- min-height: 30px;
170
- padding-top: 10px;
171
- }
172
- </style>
@@ -1,62 +0,0 @@
1
- import { GridColumn } from '@zeedhi/common';
2
- import { IDictionary } from '@zeedhi/core';
3
- import { PropType, defineComponent } from 'vue';
4
-
5
- export default defineComponent({
6
- props: {
7
- isSelected: {
8
- type: Boolean,
9
- required: true,
10
- },
11
- selectable: {
12
- type: Boolean,
13
- required: true,
14
- },
15
- selectionDisabled: {
16
- type: Boolean,
17
- required: true,
18
- },
19
- cellSelection: {
20
- type: Boolean,
21
- required: true,
22
- },
23
- isCurrent: {
24
- type: Function as PropType<(args: { row: IDictionary; column?: GridColumn }) => boolean>,
25
- required: true,
26
- },
27
- columns: {
28
- type: Array as PropType<GridColumn[]>,
29
- required: true,
30
- },
31
- row: {
32
- type: Object as PropType<IDictionary>,
33
- required: true,
34
- },
35
- fixedLeft: {
36
- type: Object as PropType<IDictionary>,
37
- required: true,
38
- },
39
- fixedRight: {
40
- type: Object as PropType<IDictionary>,
41
- required: true,
42
- },
43
- },
44
- emits: ['focusin'],
45
- setup(props, { emit }) {
46
- const focusin = (event: Event) => {
47
- emit('focusin', { event, row: props.row });
48
- };
49
-
50
- const getLevel = (row: IDictionary) => {
51
- if (!row.groupHeaders) return 0;
52
-
53
- const { length } = row.groupHeaders;
54
- return length + 1;
55
- };
56
-
57
- return {
58
- focusin,
59
- getLevel,
60
- };
61
- },
62
- });
@@ -1,64 +0,0 @@
1
- <template>
2
- <table-row
3
- :cssClass="[
4
- 'tek-grid-footer-row',
5
- { 'tek-grid-footer-row--summary': row.groupSummary }
6
- ]"
7
- >
8
- <td
9
- v-if="selectable"
10
- :class="[
11
- 'zd-grid__cell',
12
- 'zd-grid__cell--fixed',
13
- 'zd-grid__selectable-cell',
14
- ]"
15
- ></td>
16
- <zd-grid-cell
17
- v-for="(column, index) in columns" :key="column.name"
18
- :row="row"
19
- :column="column"
20
- :cssClass="[
21
- {
22
- 'zd-grid__cell--fixed': column.fixed,
23
- 'zd-grid__action-cell--fixed': column.actionFixed,
24
- },
25
- ]"
26
- :cssStyle="[{
27
- left: column.fixed ? fixedLeft[column.name] : 'unset',
28
- right: column.actionFixed ? fixedRight[column.name] : 'unset',
29
- }]"
30
- :cellSelection="cellSelection"
31
- :isCurrent="isCurrent({ row, column })"
32
- v-memo="[row, column, fixedLeft, fixedRight, cellSelection, isCurrent({ row, column })]"
33
- @focus="cellFocus($event, column)"
34
- @focusin="focusin($event, column)"
35
- >
36
- <template #prepend>
37
- <tek-grid-indentation
38
- v-if="index === 0"
39
- footer
40
- :level="getLevel(row)"
41
- ></tek-grid-indentation>
42
- </template>
43
- </zd-grid-cell>
44
- </table-row>
45
- </template>
46
-
47
- <script lang="ts" src="./TekGridFooterRow"></script>
48
-
49
- <style lang="scss">
50
- .tek-grid-footer-row {
51
- &--summary {
52
- background: var(--row-active-color);
53
-
54
- .zd-grid__cell-content {
55
- font-size: 15px;
56
- }
57
- }
58
-
59
- .zd-grid__cell-content {
60
- padding: 0 8px;
61
- font-weight: bold;
62
- }
63
- }
64
- </style>
@@ -1,65 +0,0 @@
1
- import { GridColumn } from '@zeedhi/common';
2
- import { IDictionary } from '@zeedhi/core';
3
- import { PropType, defineComponent } from 'vue';
4
-
5
- export default defineComponent({
6
- props: {
7
- isSelected: {
8
- type: Boolean,
9
- required: true,
10
- },
11
- isCurrentRow: {
12
- type: Boolean,
13
- required: true,
14
- },
15
- selectable: {
16
- type: Boolean,
17
- required: true,
18
- },
19
- selectionDisabled: {
20
- type: Boolean,
21
- required: true,
22
- },
23
- cellSelection: {
24
- type: Boolean,
25
- required: true,
26
- },
27
- isCurrent: {
28
- type: Function as PropType<(args: { row: IDictionary; column?: GridColumn }) => boolean>,
29
- required: true,
30
- },
31
- row: {
32
- type: Object as PropType<IDictionary>,
33
- required: true,
34
- },
35
- indeterminate: {
36
- type: Boolean,
37
- required: true,
38
- },
39
- },
40
- emits: ['click', 'checkboxClick', 'focusin', 'expandClick'],
41
- setup(props, { emit }) {
42
- const click = (event: Event) => {
43
- emit('click', event);
44
- };
45
-
46
- const checkboxClick = (event: Event) => {
47
- emit('checkboxClick', event);
48
- };
49
-
50
- const focusin = (event: Event) => {
51
- emit('focusin', { event, row: props.row });
52
- };
53
-
54
- const expandClick = (event: Event) => {
55
- emit('expandClick', { event, row: props.row });
56
- };
57
-
58
- return {
59
- click,
60
- focusin,
61
- checkboxClick,
62
- expandClick,
63
- };
64
- },
65
- });
@@ -1,65 +0,0 @@
1
- <template>
2
- <table-row
3
- :class="[
4
- 'tek-grid-group-row',
5
- { 'tek-grid-row-group--summary': row.groupSummary }
6
- ]"
7
- :isCurrentRow="isCurrentRow"
8
- @click="click($event)"
9
- >
10
- <zd-grid-checkbox
11
- v-if="selectable"
12
- :disabled="selectionDisabled"
13
- :isSelected="isSelected"
14
- :indeterminate="indeterminate"
15
- :cellSelection="cellSelection"
16
- :isCurrent="isCurrent({ row })"
17
- @focusin="focusin($event)"
18
- @click.stop="checkboxClick($event)"
19
- />
20
-
21
- <td
22
- :colspan="999"
23
- :class="
24
- [
25
- 'zd-grid__cell',
26
- 'text-left',
27
- 'tek-grid-group-cell',
28
- 'zd-grid__cell--fixed',
29
- ]"
30
- :style="`left: ${(selectable ? 40 : 0)}px`"
31
- :tabindex="cellSelection ? 0 : ''"
32
- >
33
- <span
34
- :class="[
35
- 'tek-grid-group-cell__container'
36
- ]"
37
- :style="`left: ${(selectable ? 48 : 8)}px`"
38
- >
39
- <tek-grid-indentation
40
- :level="row.groupHeaders.length"
41
- ></tek-grid-indentation>
42
- <v-icon
43
- :class="{ closed: !row.groupOpened }"
44
- @click="expandClick($event)"
45
- :key="`${row.groupIndex}_${row.groupValue}`"
46
- >{{ $getIcon('expand') }}</v-icon>
47
- <span class="tek-grid__group-text zd-ml-2">{{ (row.groupLabel? row.groupLabel + ': ': '') + row.groupValue }}</span>
48
- </span>
49
- </td>
50
- </table-row>
51
- </template>
52
-
53
- <script lang="ts" src="./TekGridGroupRow"></script>
54
-
55
- <style lang="scss">
56
- .tek-grid-group-cell {
57
- font-weight: bold;
58
-
59
- &__container {
60
- height: 100%;
61
- align-items: center;
62
- position: sticky;
63
- }
64
- }
65
- </style>
@@ -1,30 +0,0 @@
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;
@@ -1,18 +0,0 @@
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>
@@ -1,52 +0,0 @@
1
- import { ZdUserInfoProps } from '@zeedhi/zd-user-info-vue';
2
- import { defineComponent } from 'vue';
3
- import { TekUserInfo as TekUserInfoClass } from '@zeedhi/teknisa-components-common';
4
- import type { IComponentRender } from '@zeedhi/common';
5
- import { useCreateInstance, useGetMethods } from '@zeedhi/vuetify';
6
-
7
- export const TekUserInfoProps ={
8
- ...ZdUserInfoProps,
9
- aboutImage: {
10
- type: String,
11
- default: '',
12
- },
13
- defaultEmail: {
14
- type: String,
15
- default: '',
16
- },
17
- versionInfo: {
18
- type: [Object, String],
19
- default: null,
20
- },
21
- versionUrl: {
22
- type: String,
23
- default: '',
24
- },
25
- bottomSlot: {
26
- type: Array as () => IComponentRender[],
27
- default: undefined,
28
- watch: false,
29
- },
30
- };
31
-
32
- const tekUserInfoComponent = defineComponent({
33
- props: TekUserInfoProps,
34
- inheritAttrs: false,
35
- setup(props, ctx) {
36
- const { instance, root } = useCreateInstance<TekUserInfoClass>(props, ctx, TekUserInfoClass, TekUserInfoProps);
37
-
38
- const { click, focus, blur, mouseenter, mouseleave } = useGetMethods(instance, root);
39
-
40
- return {
41
- instance,
42
- root,
43
- click,
44
- focus,
45
- blur,
46
- mouseenter,
47
- mouseleave,
48
- };
49
- }
50
- })
51
-
52
- export default tekUserInfoComponent;
@@ -1,53 +0,0 @@
1
- <template>
2
- <zd-user-info
3
- :id="instance.name"
4
- :instance-object="instance"
5
- name="user-info"
6
- >
7
- </zd-user-info>
8
- </template>
9
-
10
- <script lang="ts" src="./TekUserInfo.ts"></script>
11
-
12
- <style lang="scss">
13
- .about-modal {
14
- flex-grow: 0;
15
- overflow-y: unset;
16
- width: auto;
17
- border: 3px solid var(--v-primary-base);
18
-
19
- .zd-modal-card, .zd-modal-card-text, .zd-modal-container, .zd-tabs {
20
- height: 100%;
21
- }
22
-
23
- .v-card-text {
24
- font-size: .875rem !important;
25
- }
26
-
27
- .zd-modal-card-text{
28
- padding: 8px !important;
29
- }
30
-
31
- .zd-modal-container {
32
- display: flex;
33
- flex-direction: column;
34
- }
35
-
36
- .zd-tabs, .v-tabs-items {
37
- overflow-y: auto;
38
- }
39
-
40
- .zd-image-valid{
41
- width: 50%;
42
- align-items: center;
43
- }
44
-
45
- #basic-user-info_version_tabs{
46
- height: 300px !important;
47
- }
48
-
49
- #basic-user-info_about_image {
50
- text-align: center;
51
- }
52
- }
53
- </style>