@zeedhi/vuetify 1.57.0 → 1.59.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/README.md +9 -9
- package/dist/zd-vuetify.esm.js +2765 -8692
- package/dist/zd-vuetify.umd.js +2837 -8763
- package/package.json +7 -8
- package/rollup.scss.config.js +13 -13
- package/types/components/public.d.ts +2 -1
- package/types/components/zd-grid/ZdGrid.d.ts +0 -1
- package/types/components/zd-grid/ZdGridNoData.d.ts +8 -0
- package/types/components/zd-iterable/ZdIterable.d.ts +1 -0
- package/types/components/zd-iterable/ZdIterableColumnsButton.d.ts +23 -0
- package/types/components/zd-iterable/ZdIterablePageInfo.d.ts +9 -0
- package/types/components/zd-iterable/ZdIterablePageSize.d.ts +20 -0
- package/types/components/zd-iterable/ZdIterablePagination.d.ts +35 -0
- package/types/components/zd-iterable/ZdSearch.d.ts +16 -0
- package/types/components/zd-iterable-component-render/ZdIterableComponentRender.d.ts +19 -0
- package/types/components/zd-number/ZdNumber.d.ts +0 -1
- package/types/components/zd-select-multiple/ZdSelectMultiple.d.ts +1 -2
- package/types/components/zd-tree-grid/ZdTreeGrid.d.ts +1 -0
- package/types/utils/getIconPlugin.d.ts +2 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zeedhi/vuetify",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.59.0",
|
4
4
|
"description": "Zeedhi Components based on Vuetify",
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
6
6
|
"license": "ISC",
|
@@ -20,11 +20,6 @@
|
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
22
|
"@panter/vue-i18next": "^0.15.2",
|
23
|
-
"@types/lodash.camelcase": "^4.3.6",
|
24
|
-
"@types/lodash.debounce": "^4.0.6",
|
25
|
-
"@types/lodash.isundefined": "^3.0.6",
|
26
|
-
"@types/lodash.kebabcase": "^4.1.6",
|
27
|
-
"@types/sortablejs": "^1.10.6",
|
28
23
|
"@zeedhi/zd-vue-treeselect": "^1.0.0",
|
29
24
|
"apexcharts": "^3.23.0",
|
30
25
|
"hooper": "^0.3.4",
|
@@ -44,12 +39,16 @@
|
|
44
39
|
"@zeedhi/common": "^1.0.0-alpha.0",
|
45
40
|
"@zeedhi/core": "^1.0.0-alpha.0",
|
46
41
|
"@zeedhi/vue": "^1.0.0-alpha.0",
|
47
|
-
"vue": "2.7.4",
|
42
|
+
"vue": "^2.7.4",
|
48
43
|
"vuetify": "^2.6.2"
|
49
44
|
},
|
50
45
|
"devDependencies": {
|
46
|
+
"@types/lodash.camelcase": "^4.3.6",
|
47
|
+
"@types/lodash.debounce": "^4.0.6",
|
48
|
+
"@types/lodash.isundefined": "^3.0.6",
|
49
|
+
"@types/lodash.kebabcase": "^4.1.6",
|
51
50
|
"@types/prismjs": "^1.16.2",
|
52
51
|
"@types/sortablejs": "^1.10.6"
|
53
52
|
},
|
54
|
-
"gitHead": "
|
53
|
+
"gitHead": "459683dac60530b3f283c151c81ad26e12ae841b"
|
55
54
|
}
|
package/rollup.scss.config.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
import scss from 'rollup-plugin-scss';
|
2
|
-
|
3
|
-
export default {
|
4
|
-
input: './src/styles/index.scss',
|
5
|
-
output: {
|
6
|
-
format: 'esm',
|
7
|
-
},
|
8
|
-
plugins: [
|
9
|
-
scss({
|
10
|
-
output: 'dist/zd-style.css',
|
11
|
-
}),
|
12
|
-
],
|
13
|
-
};
|
1
|
+
import scss from 'rollup-plugin-scss';
|
2
|
+
|
3
|
+
export default {
|
4
|
+
input: './src/styles/index.scss',
|
5
|
+
output: {
|
6
|
+
format: 'esm',
|
7
|
+
},
|
8
|
+
plugins: [
|
9
|
+
scss({
|
10
|
+
output: 'dist/zd-style.css',
|
11
|
+
}),
|
12
|
+
],
|
13
|
+
};
|
@@ -35,6 +35,7 @@ import ZdGridEditable from './zd-grid/ZdGridEditable';
|
|
35
35
|
import ZdHeader from './zd-header/ZdHeader';
|
36
36
|
import ZdImage from './zd-image/ZdImage';
|
37
37
|
import ZdIncrement from './zd-increment/ZdIncrement';
|
38
|
+
import ZdIterableComponentRender from './zd-iterable-component-render/ZdIterableComponentRender';
|
38
39
|
import ZdInput from './zd-input/ZdInput';
|
39
40
|
import ZdIterable from './zd-iterable/ZdIterable';
|
40
41
|
import ZdIterableColumnsButton from './zd-iterable/zd-iterable-columns-button/ZdIterableColumnsButton';
|
@@ -83,4 +84,4 @@ import ZdTooltip from './zd-tooltip/ZdTooltip';
|
|
83
84
|
import ZdTree from './zd-tree/ZdTree';
|
84
85
|
import ZdTreeGrid from './zd-tree-grid/ZdTreeGrid';
|
85
86
|
import ZdTreeGridEditable from './zd-tree-grid/ZdTreeGridEditable';
|
86
|
-
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, ZdHeader, ZdImage, ZdIncrement, ZdInput, ZdIterable, 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, };
|
87
|
+
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, 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, };
|
@@ -32,7 +32,6 @@ export default class ZdGrid extends ZdIterable {
|
|
32
32
|
private setHeight;
|
33
33
|
private setViewGetWidth;
|
34
34
|
calcWidth(column: Column, width?: string): string;
|
35
|
-
calcHeaderCellWidth(column: Column): string;
|
36
35
|
private sortColumns;
|
37
36
|
protected getColumnsDOMOrder(): Column[];
|
38
37
|
private checkMove;
|
@@ -20,6 +20,7 @@ export default class ZdIterable extends ZdComponentRender {
|
|
20
20
|
datasource: IDatasource;
|
21
21
|
pageSizes: string[];
|
22
22
|
virtualScroll: string | boolean;
|
23
|
+
searchVisibleOnly: string | boolean;
|
23
24
|
instance: Iterable;
|
24
25
|
instanceType: typeof Iterable;
|
25
26
|
private unWatchRouteFn;
|
@@ -0,0 +1,23 @@
|
|
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
|
+
}
|
@@ -0,0 +1,9 @@
|
|
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
|
+
}
|
@@ -0,0 +1,20 @@
|
|
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
|
+
}
|
@@ -0,0 +1,35 @@
|
|
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
|
+
}
|
@@ -0,0 +1,16 @@
|
|
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
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { IComponentRender, IterableComponentRender } from '@zeedhi/common';
|
2
|
+
import ZdIterable from '../zd-iterable/ZdIterable';
|
3
|
+
/**
|
4
|
+
* ZdIterableComponentRender component
|
5
|
+
*/
|
6
|
+
export default class ZdIterableComponentRender extends ZdIterable {
|
7
|
+
footerSlot: IComponentRender[];
|
8
|
+
toolbarSlot: IComponentRender[];
|
9
|
+
componentMetadata: IComponentRender;
|
10
|
+
rowPropName: string;
|
11
|
+
errorSlot: IComponentRender[];
|
12
|
+
noDataSlot: IComponentRender[];
|
13
|
+
noResultSlot: IComponentRender[];
|
14
|
+
height: number | string;
|
15
|
+
maxHeight: number | string;
|
16
|
+
minHeight: number | string;
|
17
|
+
instance: IterableComponentRender;
|
18
|
+
instanceType: typeof IterableComponentRender;
|
19
|
+
}
|
@@ -14,7 +14,6 @@ export default class ZdSelectMultiple extends ZdSelect {
|
|
14
14
|
expandedMode: boolean;
|
15
15
|
rows: number;
|
16
16
|
lastDisplayedChip: number;
|
17
|
-
allSelected: boolean;
|
18
17
|
hasHiddenRows: boolean;
|
19
18
|
private componentRef;
|
20
19
|
private element;
|
@@ -55,7 +54,7 @@ export default class ZdSelectMultiple extends ZdSelect {
|
|
55
54
|
get formattedData(): any;
|
56
55
|
get formattedValue(): IDictionary<any>[];
|
57
56
|
set formattedValue(value: IDictionary<any>[]);
|
58
|
-
|
57
|
+
get allSelected(): boolean | 0;
|
59
58
|
get limitValue(): number;
|
60
59
|
isChipVisible(index: number): boolean;
|
61
60
|
isMoreVisible(index: number): boolean;
|
@@ -8,6 +8,7 @@ export default class ZdTreeGrid extends ZdGrid {
|
|
8
8
|
parentField: string;
|
9
9
|
openLevelOnLoad: string | number | boolean;
|
10
10
|
fetchOnDemand: string | boolean;
|
11
|
+
flat: string | boolean;
|
11
12
|
footerSlot: IComponentRender[];
|
12
13
|
instance: TreeGrid;
|
13
14
|
instanceType: typeof TreeGrid;
|