@zeedhi/vuetify 1.93.0 → 1.93.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/vuetify",
3
- "version": "1.93.0",
3
+ "version": "1.93.1",
4
4
  "description": "Zeedhi Components based on Vuetify",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -51,5 +51,5 @@
51
51
  "@types/prismjs": "1.26.*",
52
52
  "@types/sortablejs": "1.15.*"
53
53
  },
54
- "gitHead": "2c26178029cabda01c5fa562f2ed143ef83e82dc"
54
+ "gitHead": "65fc7d4e60ddd637d29cb7fa5d5714d73567e413"
55
55
  }
@@ -35,8 +35,10 @@ import ZdGridAction from './zd-grid/subcomponents/cell/ZdGridAction';
35
35
  import ZdGridCell from './zd-grid/subcomponents/cell/ZdGridCell';
36
36
  import ZdGridCellContent from './zd-grid/subcomponents/cell/ZdGridCellContent';
37
37
  import ZdGridCellEdit from './zd-grid/subcomponents/cell/ZdGridCellEdit';
38
+ import ZdGridEditableCell from './zd-grid/subcomponents/cell/ZdGridEditableCell';
38
39
  import ZdGridEditableCellContent from './zd-grid/subcomponents/cell/ZdGridEditableCellContent';
39
40
  import ZdGridRow from './zd-grid/subcomponents/cell/ZdGridRow';
41
+ import ZdGridCheckbox from './zd-grid/subcomponents/cell/ZdGridCheckbox';
40
42
  import ZdTreeGridCellContent from './zd-tree-grid/cell/ZdTreeGridCellContent';
41
43
  import ZdGridEditable from './zd-grid/ZdGridEditable';
42
44
  import ZdHeader from './zd-header/ZdHeader';
@@ -91,4 +93,4 @@ import ZdTooltip from './zd-tooltip/ZdTooltip';
91
93
  import ZdTree from './zd-tree/ZdTree';
92
94
  import ZdTreeGrid from './zd-tree-grid/ZdTreeGrid';
93
95
  import ZdTreeGridEditable from './zd-tree-grid/ZdTreeGridEditable';
94
- export { ZdAlert, ZdApexChart, ZdBadge, ZdBreadcrumbs, ZdButton, ZdButtonGroup, ZdCard, ZdCarousel, ZdCheckbox, ZdCheckboxMultiple, ZdChip, ZdCodeEditor, ZdCol, ZdCollapseCard, ZdComponent, ZdComponentRender, ZdContainer, ZdCurrency, ZdDashboard, ZdDate, ZdDateRange, ZdDialog, ZdDivider, ZdDropdown, ZdFileInput, ZdFooter, ZdForm, ZdFrame, ZdFramePage, ZdGrid, ZdGridFooter, ZdGridEditable, ZdIterableNoData, ZdGridTop, ZdGridAction, ZdGridCell, ZdGridCellContent, ZdGridCellEdit, ZdGridEditableCellContent, ZdGridRow, ZdTreeGridCellContent, ZdHeader, ZdImage, ZdIncrement, ZdInput, ZdIterable, ZdIterableComponentRender, ZdIterableColumnsButton, ZdIterablePagination, ZdIterablePageSize, ZdIterablePageInfo, ZdList, ZdListItem, ZdListGroup, ZdLoading, ZdLogin, ZdLoginButton, ZdMasterDetail, ZdMenu, ZdMenuLink, ZdMenuGroup, ZdMenuButton, ZdMenuSeparator, ZdModal, ZdModalCloseButton, ZdMonth, ZdNumber, ZdPassword, ZdProgress, ZdRadio, ZdRangeSlider, ZdRow, ZdSearch, ZdSelectableList, ZdSelect, ZdSelectTree, ZdSelectTreeMultiple, ZdSpeedDial, ZdSteppers, ZdSvgMap, ZdSwitch, ZdTable, ZdTabs, ZdTag, ZdText, ZdTextarea, ZdTextInput, ZdTime, ZdToggleable, ZdTooltip, ZdTree, ZdTreeGrid, ZdTreeGridEditable, };
96
+ export { ZdAlert, ZdApexChart, ZdBadge, ZdBreadcrumbs, ZdButton, ZdButtonGroup, ZdCard, ZdCarousel, ZdCheckbox, ZdCheckboxMultiple, ZdChip, ZdCodeEditor, ZdCol, ZdCollapseCard, ZdComponent, ZdComponentRender, ZdContainer, ZdCurrency, ZdDashboard, ZdDate, ZdDateRange, ZdDialog, ZdDivider, ZdDropdown, ZdFileInput, ZdFooter, ZdForm, ZdFrame, ZdFramePage, ZdGrid, ZdGridFooter, ZdGridEditable, ZdIterableNoData, ZdGridTop, ZdGridAction, ZdGridCell, ZdGridCellContent, ZdGridCellEdit, ZdGridEditableCell, ZdGridEditableCellContent, ZdGridRow, ZdGridCheckbox, ZdTreeGridCellContent, ZdHeader, ZdImage, ZdIncrement, ZdInput, ZdIterable, ZdIterableComponentRender, ZdIterableColumnsButton, ZdIterablePagination, ZdIterablePageSize, ZdIterablePageInfo, ZdList, ZdListItem, ZdListGroup, ZdLoading, ZdLogin, ZdLoginButton, ZdMasterDetail, ZdMenu, ZdMenuLink, ZdMenuGroup, ZdMenuButton, ZdMenuSeparator, ZdModal, ZdModalCloseButton, ZdMonth, ZdNumber, ZdPassword, ZdProgress, ZdRadio, ZdRangeSlider, ZdRow, ZdSearch, ZdSelectableList, ZdSelect, ZdSelectTree, ZdSelectTreeMultiple, ZdSpeedDial, ZdSteppers, ZdSvgMap, ZdSwitch, ZdTable, ZdTabs, ZdTag, ZdText, ZdTextarea, ZdTextInput, ZdTime, ZdToggleable, ZdTooltip, ZdTree, ZdTreeGrid, ZdTreeGridEditable, };
@@ -29,6 +29,7 @@ export default class ZdGrid extends ZdIterable {
29
29
  showSelectAll: boolean | string;
30
30
  selectAllPages: boolean | string;
31
31
  toolbarSlot: IComponentRender[];
32
+ cellSelection: boolean | string;
32
33
  instance: Grid;
33
34
  instanceType: typeof Grid;
34
35
  /**
@@ -40,7 +41,7 @@ export default class ZdGrid extends ZdIterable {
40
41
  change(value: any): void;
41
42
  changeColumns(): void;
42
43
  changeLoading(value: boolean): void;
43
- get allselectedState(): 1 | 0 | 2;
44
+ get allselectedState(): 0 | 1 | 2;
44
45
  /**
45
46
  * Left distance for each column
46
47
  */
@@ -82,6 +83,7 @@ export default class ZdGrid extends ZdIterable {
82
83
  }): void;
83
84
  selectAllClick(isSelected: boolean, event: Event): void;
84
85
  cellClick(row: IDictionary<any>, column: GridColumn, event: Event): void;
86
+ cellFocus(row: IDictionary<any>, column: GridColumn): void;
85
87
  isCurrentRow(row: IDictionary<any>): boolean;
86
88
  changeData(): void;
87
89
  protected calcScrollData(): void;
@@ -18,13 +18,9 @@ export default class ZdGridEditable extends ZdGrid {
18
18
  instance: GridEditable;
19
19
  instanceType: typeof GridEditable;
20
20
  isTrVisible: boolean;
21
- private navigationKeyMapping;
22
21
  getColWidth(col: Column): boolean;
23
22
  protected registerOnVisible(): void;
24
23
  mounted(): void;
25
- beforeDestroy(): void;
26
- private navigateUp;
27
- private navigateDown;
28
24
  hasToggleIcon(column: Column, row: IDictionary<any>): boolean;
29
25
  getWidthStyle(column: Column): IColumnWidths;
30
26
  }
@@ -11,4 +11,5 @@ export default class ZdGridAction extends Vue {
11
11
  rowKey: string | number;
12
12
  actions: ComponentRender[];
13
13
  change(): void;
14
+ focusin(event: FocusEvent): void;
14
15
  }
@@ -10,6 +10,11 @@ export default class ZdGridCell extends Vue {
10
10
  cellsApplied?: IDictionary<any>;
11
11
  cellClass?: (IDictionary<boolean> | string)[];
12
12
  cellStyle?: IDictionary[];
13
+ cellSelection?: boolean;
14
+ isCurrent: boolean;
15
+ get tabindex(): 0 | "";
16
+ focusin(event: FocusEvent): void;
17
+ focusout(event: FocusEvent): void;
13
18
  click(event: Event): void;
14
19
  get cellProps(): {};
15
20
  }
@@ -15,6 +15,7 @@ export default class ZdGridCellContent extends Vue {
15
15
  visibleValue: any;
16
16
  mouseenter(event: Event): void;
17
17
  mouseleave(event: Event): void;
18
+ focus(event: Event): void;
18
19
  get cellProps(): {
19
20
  [x: string]: any;
20
21
  };
@@ -0,0 +1,16 @@
1
+ import Vue from 'vue';
2
+ /**
3
+ * Grid cell component
4
+ */
5
+ export default class ZdGridCheckbox extends Vue {
6
+ cellSelection?: boolean;
7
+ selectable?: boolean;
8
+ disabled?: boolean;
9
+ isSelected?: boolean;
10
+ indeterminate?: boolean;
11
+ theme?: string;
12
+ isCurrent: boolean;
13
+ focusin(event: FocusEvent): void;
14
+ focusout(event: FocusEvent): void;
15
+ click(event: Event): void;
16
+ }
@@ -0,0 +1,53 @@
1
+ import { Column } from '@zeedhi/common';
2
+ import { IDictionary } from '@zeedhi/core';
3
+ import ZdGridCell from './ZdGridCell';
4
+ /**
5
+ * Grid editable cell component
6
+ */
7
+ export default class ZdGridEditableCell extends ZdGridCell {
8
+ column: Column;
9
+ rowStyle?: IDictionary<any>;
10
+ cellsApplied?: IDictionary<any>;
11
+ row: IDictionary<any>;
12
+ rowKey: string | number;
13
+ getEditableComponent: Function;
14
+ getWidthStyle: Function;
15
+ hasToggleIcon: Function;
16
+ getVisibleValue: Function;
17
+ isEdited: Function;
18
+ isValid: Function;
19
+ register: Function;
20
+ isCellEditable: Function;
21
+ canEdit: boolean;
22
+ cssClass: (IDictionary<boolean> | string)[];
23
+ cellSelection: boolean;
24
+ get cellProps(): {};
25
+ get editable(): any;
26
+ get tabindex(): 0 | "";
27
+ component: any;
28
+ updateComponent(): void;
29
+ visibleValue: null;
30
+ getNewVisibleValue(): any;
31
+ updateVisibleValue(): void;
32
+ edited: boolean;
33
+ updateEdited(): void;
34
+ valid: boolean;
35
+ updateValid(): void;
36
+ get id(): string;
37
+ registerComponent(): void;
38
+ mounted(): void;
39
+ /**
40
+ * Forces the component to update
41
+ * this is needed to avoid reactivity to crosstab editedRows,
42
+ * which can cause unnecessary rerenders
43
+ */
44
+ forceUpdate(): void;
45
+ rowChange(): void;
46
+ editing: boolean;
47
+ enterEdit(event?: Event): void;
48
+ leaveEdit(): void;
49
+ click(event: Event): void;
50
+ focus(event: Event): void;
51
+ focusInput(): void;
52
+ keydown(event: KeyboardEvent): void;
53
+ }
@@ -20,6 +20,7 @@ export default class ZdGridEditableCellContent extends Vue {
20
20
  isCellEditable: Function;
21
21
  canEdit: boolean;
22
22
  cssClass: (IDictionary<boolean> | string)[];
23
+ cellSelection: boolean;
23
24
  get cellProps(): {};
24
25
  get editable(): any;
25
26
  get tabindex(): 0 | -1;
@@ -13,13 +13,9 @@ export default class ZdTreeGridEditable extends ZdTreeGrid {
13
13
  instance: TreeGridEditable;
14
14
  instanceType: typeof TreeGridEditable;
15
15
  isTrVisible: boolean;
16
- private navigationKeyMapping;
17
16
  getColWidth(col: Column): boolean;
18
17
  private registerOnVisible;
19
18
  mounted(): void;
20
- beforeDestroy(): void;
21
- private navigateUp;
22
- private navigateDown;
23
19
  hasToggleIcon(column: Column, row: IDictionary<any>): boolean;
24
20
  getWidthStyle(column: Column): IColumnWidths;
25
21
  }
@@ -1,5 +1,5 @@
1
1
  import Vue from 'vue';
2
- import { GridColumnEditable, GridEditable, IGridColumnEditable } from '@zeedhi/common';
2
+ import { GridColumn, GridColumnEditable, GridEditable, IGridColumnEditable } from '@zeedhi/common';
3
3
  import { IDictionary } from '@zeedhi/core';
4
4
  interface IUpdatableComponent {
5
5
  forceUpdate: () => void;
@@ -8,6 +8,10 @@ interface IUpdatableComponent {
8
8
  registerComponent: () => void;
9
9
  focusInput: () => void;
10
10
  }
11
+ interface ICellEvent {
12
+ event: Event;
13
+ component: IUpdatableComponent;
14
+ }
11
15
  export default class EditableMixin extends Vue {
12
16
  instance: GridEditable;
13
17
  rowKey: Function;
@@ -59,18 +63,10 @@ export default class EditableMixin extends Vue {
59
63
  };
60
64
  cellClick(row: IDictionary<any>, column: GridColumnEditable, event: Event, canEdit?: boolean, componentId?: string): void;
61
65
  callCellClick(row: IDictionary<any>, column: GridColumnEditable, event: Event, canEdit: boolean, componentId: string): void;
62
- cellFocus(component: IUpdatableComponent, id: string): void;
66
+ editableCellFocus(component: IUpdatableComponent, id: string, row: IDictionary<any>, column: GridColumn): void;
63
67
  getVisibleValue(row: IDictionary, column: GridColumnEditable): any;
64
- /**
65
- * Focus an element or its first focusable children
66
- * @param element element to be focused
67
- */
68
- focusElement(element?: HTMLElement | null): void;
69
- private getTdNode;
70
- private getArrayFromElementTag;
71
- private getArrayFromTdElement;
72
- private getArrayFromTrElement;
73
- private findNextTd;
74
- navigate(up: boolean): void;
68
+ cellFocus(row: IDictionary<any>, column: GridColumn): void;
69
+ fieldFocusout({ event, component }: ICellEvent): void;
70
+ enterEditEvent(row: IDictionary, column: GridColumnEditable, event: Event): void;
75
71
  }
76
72
  export {};
@@ -1,2 +1,3 @@
1
1
  import EditableMixin from './editable-mixin/EditableMixin';
2
- export { EditableMixin, };
2
+ import NavigableTableMixin from './navigable-table-mixin/NavigableTableMixin';
3
+ export { EditableMixin, NavigableTableMixin, };
@@ -0,0 +1,26 @@
1
+ import Vue from 'vue';
2
+ import { Grid } from '@zeedhi/common';
3
+ /**
4
+ * Mixin for tabular components that can be navigated using keyboard keys,
5
+ * Grids in general
6
+ */
7
+ export default class NavigableTableMixin extends Vue {
8
+ instance: Grid;
9
+ mounted(): void;
10
+ private viewNavigate;
11
+ private navigateRight;
12
+ private navigateLeft;
13
+ private isElementVisible;
14
+ focusableSelector: string;
15
+ /**
16
+ * Focus an element or its first focusable children
17
+ * @param element element to be focused
18
+ */
19
+ focusElement(element?: HTMLElement | null): void;
20
+ private getTdNode;
21
+ private getArrayFromElementTag;
22
+ private getArrayFromTdElement;
23
+ private getArrayFromTrElement;
24
+ private findNextTd;
25
+ navigateVertical(up: boolean): void;
26
+ }
@@ -6,4 +6,5 @@ import isDarkPlugin from './isDarkPlugin';
6
6
  import isLightPlugin from './isLightPlugin';
7
7
  import styleObjectPlugin from './styleObjectPlugin';
8
8
  import onVisiblePlugin from './onVisiblePlugin';
9
- export { getIconPlugin, formatSizePlugin, doubleClickPlugin, isMobilePlugin, onVisiblePlugin, isDarkPlugin, isLightPlugin, styleObjectPlugin, };
9
+ import solidColorPlugin from './solidColorPlugin';
10
+ export { getIconPlugin, formatSizePlugin, doubleClickPlugin, isMobilePlugin, onVisiblePlugin, isDarkPlugin, isLightPlugin, styleObjectPlugin, solidColorPlugin, };
@@ -0,0 +1,2 @@
1
+ declare const _default: (foregroundHex: string, opacity: number, backgroundHex: string) => string;
2
+ export default _default;