@zeedhi/vuetify 1.101.0 → 1.102.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/vuetify",
3
- "version": "1.101.0",
3
+ "version": "1.102.0",
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": "a09f2851ece9c0011024e1cd69baba7a85b13130"
54
+ "gitHead": "3b9af737d3f68df0b393f7862bbb830a38daaa28"
55
55
  }
@@ -18,6 +18,7 @@ export default class ZdGrid extends ZdIterable {
18
18
  minWidth?: number | string;
19
19
  maxWidth?: number | string;
20
20
  fillHeight?: boolean | string;
21
+ backgroundColor?: string;
21
22
  disableSelection: string | Function;
22
23
  noDataSlot: IComponentRender[];
23
24
  noResultSlot: IComponentRender[];
@@ -104,9 +105,11 @@ export default class ZdGrid extends ZdIterable {
104
105
  private updateScrollData;
105
106
  private lastStart;
106
107
  onScroll(event: Event): void;
108
+ getBackgroundColor(): string;
109
+ getThemeBackground(background: string): string;
107
110
  get cssColorVars(): {
108
- '--current-row-color': string;
109
- '--current-row-hover-color': string;
111
+ '--theme-background-color': string;
112
+ '--background-color': string;
110
113
  };
111
114
  checkOverflow(event: MouseEvent, columnOverflow: number | string): void;
112
115
  removeTooltip(): void;
@@ -8,7 +8,6 @@ export default class ZdGridCheckbox extends Vue {
8
8
  disabled?: boolean;
9
9
  isSelected?: boolean;
10
10
  indeterminate?: boolean;
11
- theme?: string;
12
11
  isCurrent: boolean;
13
12
  focusin(event: FocusEvent): void;
14
13
  focusout(event: FocusEvent): void;
@@ -18,6 +18,7 @@ export default class ZdIterableComponentRender extends ZdIterable {
18
18
  minWidth?: number | string;
19
19
  maxWidth?: number | string;
20
20
  fillHeight?: boolean | string;
21
+ showLoading?: boolean | string;
21
22
  instance: IterableComponentRender;
22
23
  instanceType: typeof IterableComponentRender;
23
24
  mounted(): void;
@@ -27,6 +27,7 @@ export default class ZdSelect extends ZdTextInput {
27
27
  searchParam: string;
28
28
  dataValueOut: string | ISelectDataValueOutItem[];
29
29
  dataValueOutFormName: string;
30
+ closeOnScroll: boolean;
30
31
  instance: Select;
31
32
  instanceType: typeof Select;
32
33
  private inputWidth;
@@ -36,6 +37,17 @@ export default class ZdSelect extends ZdTextInput {
36
37
  protected componentRef: any;
37
38
  private originalOnScroll;
38
39
  mounted(): void;
40
+ private observer?;
41
+ private isSelectVisible;
42
+ private isDisconnected;
43
+ /**
44
+ * Register intersectionObserver to detect when element position changes
45
+ */
46
+ private registerObserver;
47
+ private createObserver;
48
+ private disconnectObserver;
49
+ changeCloseOnScroll(value: boolean): void;
50
+ destroyed(): void;
39
51
  protected applyAutofocus(): void;
40
52
  /**
41
53
  * Gets next page based on scroll distance from bottom
@@ -57,4 +69,5 @@ export default class ZdSelect extends ZdTextInput {
57
69
  loadMore(): void;
58
70
  get items(): IDictionary<any>[];
59
71
  dataChange(): void;
72
+ setMenuVisibility(visibility: boolean | 'show' | 'hide'): void;
60
73
  }
@@ -1,3 +1,4 @@
1
1
  import EditableMixin from './editable-mixin/EditableMixin';
2
2
  import NavigableTableMixin from './navigable-table-mixin/NavigableTableMixin';
3
- export { EditableMixin, NavigableTableMixin, };
3
+ import Themeable from './themeable/Themeable';
4
+ export { EditableMixin, NavigableTableMixin, Themeable, };
@@ -0,0 +1,16 @@
1
+ import { Component as ComponentInstance } from '@zeedhi/common';
2
+ import { Vue } from 'vue-property-decorator';
3
+ export default class ThemeableMixin extends Vue {
4
+ dark: boolean;
5
+ light: boolean;
6
+ instance?: ComponentInstance;
7
+ private themeableProvide;
8
+ get providedTheme(): {
9
+ isDark: boolean;
10
+ };
11
+ themeInject: {
12
+ isDark: boolean;
13
+ };
14
+ get isDark(): boolean;
15
+ handler(newVal: boolean, oldVal: boolean): void;
16
+ }
@@ -1,6 +0,0 @@
1
- import { IComponentRender } from '@zeedhi/common';
2
- import Vue from 'vue';
3
- export default class ZdGridFooter extends Vue {
4
- footerSlot: IComponentRender[];
5
- instance: any;
6
- }
@@ -1,8 +0,0 @@
1
- import { IComponentRender } from '@zeedhi/common';
2
- import Vue from 'vue';
3
- export default class ZdGridNoData extends Vue {
4
- errorSlot: IComponentRender[];
5
- noDataSlot: IComponentRender[];
6
- noResultSlot: IComponentRender[];
7
- instance: any;
8
- }
@@ -1,6 +0,0 @@
1
- import { IComponentRender } from '@zeedhi/common';
2
- import Vue from 'vue';
3
- export default class ZdGridTop extends Vue {
4
- toolbarSlot: IComponentRender[];
5
- instance: any;
6
- }
@@ -1,23 +0,0 @@
1
- import { IterableColumnsButton } from '@zeedhi/common';
2
- import ZdButton from '../zd-button/ZdButton.vue';
3
- /**
4
- * Iterable Columns Button component
5
- */
6
- export default class ZdIterableColumnsButton extends ZdButton {
7
- iterableComponentName: string;
8
- iconName: string;
9
- icon: boolean | string;
10
- instance: IterableColumnsButton;
11
- instanceType: typeof IterableColumnsButton;
12
- getEvents(on: any): {
13
- [x: string]: string | import("@zeedhi/core").IEvent<import("@zeedhi/common").IButtonEvent> | undefined;
14
- blur?: string | import("@zeedhi/core").IEvent<import("@zeedhi/common").IButtonEvent> | undefined;
15
- click?: string | import("@zeedhi/core").IEvent<import("@zeedhi/common").IButtonEvent> | undefined;
16
- focus?: string | import("@zeedhi/core").IEvent<import("@zeedhi/common").IButtonEvent> | undefined;
17
- onCreated?: string | import("@zeedhi/core").IEvent<import("@zeedhi/common").IButtonEvent> | undefined;
18
- onBeforeMount?: string | import("@zeedhi/core").IEvent<import("@zeedhi/common").IButtonEvent> | undefined;
19
- onMounted?: string | import("@zeedhi/core").IEvent<import("@zeedhi/common").IButtonEvent> | undefined;
20
- onBeforeDestroy?: string | import("@zeedhi/core").IEvent<import("@zeedhi/common").IButtonEvent> | undefined;
21
- onDestroyed?: string | import("@zeedhi/core").IEvent<import("@zeedhi/common").IButtonEvent> | undefined;
22
- };
23
- }
@@ -1,9 +0,0 @@
1
- import { IterablePageInfo } from '@zeedhi/common';
2
- import ZdIterablePageComponent from './ZdIterablePageComponent';
3
- /**
4
- * Iterable page info component
5
- */
6
- export default class ZdIterablePageInfo extends ZdIterablePageComponent {
7
- instance: IterablePageInfo;
8
- instanceType: typeof IterablePageInfo;
9
- }
@@ -1,20 +0,0 @@
1
- import { IDictionary } from '@zeedhi/core';
2
- import { IterablePageSize } from '@zeedhi/common';
3
- import ZdSelect from '../zd-select/ZdSelect.vue';
4
- /**
5
- * Iterable page size component
6
- */
7
- export default class ZdIterablePageSize extends ZdSelect {
8
- iterableComponentName: string;
9
- clearable: boolean | string;
10
- dataText: string | string[];
11
- dataValue: string;
12
- dense: boolean | string;
13
- autocomplete: boolean | string;
14
- showHelper: boolean | string;
15
- showLabel: boolean | string;
16
- validations: IDictionary<IDictionary<string | number>>;
17
- instance: IterablePageSize;
18
- instanceType: typeof IterablePageSize;
19
- mounted(): void;
20
- }
@@ -1,35 +0,0 @@
1
- import { IterablePagination } from '@zeedhi/common';
2
- import ZdIterablePageComponent from './ZdIterablePageComponent';
3
- /**
4
- * Iterable pagination component
5
- */
6
- export default class ZdIterablePagination extends ZdIterablePageComponent {
7
- circle: boolean;
8
- maxButtons?: number;
9
- nextIcon: string;
10
- prevIcon: string;
11
- instance: IterablePagination;
12
- instanceType: typeof IterablePagination;
13
- private lastLength?;
14
- private element;
15
- private paginationComponent;
16
- mounted(): void;
17
- private initRefs;
18
- /**
19
- * Vuetify doesn't wait for nextTick to calculate maxButtons when resizing,
20
- * so we have to refresh it
21
- */
22
- private refreshMaxButtons;
23
- private updateIterableEvent;
24
- /**
25
- * Fix maxButtons when pagination is not visible initially
26
- */
27
- private initMaxButtons;
28
- private lengthChange;
29
- growPagination(): void;
30
- /**
31
- * Approach to "width: auto + 17px", because vuetify pagination requires parent element
32
- * to have 17px of extra width relative to children to calculate the number of buttons displayed
33
- */
34
- updateWidth(): void;
35
- }
@@ -1,16 +0,0 @@
1
- import { Search } from '@zeedhi/common';
2
- import ZdTextInput from '../zd-text-input/ZdTextInput.vue';
3
- /**
4
- * Search component
5
- */
6
- export default class ZdSearch extends ZdTextInput {
7
- iterableComponentName: string;
8
- showLabel: string;
9
- showHelper: string;
10
- appendIcon: string;
11
- placeholder: string;
12
- cssClass: string;
13
- instance: Search;
14
- instanceType: typeof Search;
15
- getSearchValue(): string;
16
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (name: string) => string;
2
- export default _default;