@zeedhi/vuetify 1.107.3 → 1.108.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/dist/zd-vuetify.esm.js
CHANGED
@@ -46606,6 +46606,7 @@ let ZdIterable$1 = class ZdIterable extends ZdComponentRender$1 {
|
|
46606
46606
|
initialized: false,
|
46607
46607
|
visibleData: [],
|
46608
46608
|
};
|
46609
|
+
this.data = [];
|
46609
46610
|
}
|
46610
46611
|
mounted() {
|
46611
46612
|
if (this.instance.datasource.watchUrl) {
|
@@ -46621,8 +46622,39 @@ let ZdIterable$1 = class ZdIterable extends ZdComponentRender$1 {
|
|
46621
46622
|
this.unWatchRouteFn();
|
46622
46623
|
}
|
46623
46624
|
}
|
46625
|
+
get virtualScrollPage() {
|
46626
|
+
var _a, _b;
|
46627
|
+
return [((_a = this.scrollData) === null || _a === void 0 ? void 0 : _a.start) || 0, ((_b = this.scrollData) === null || _b === void 0 ? void 0 : _b.perPage) || 0];
|
46628
|
+
}
|
46629
|
+
/**
|
46630
|
+
* Watches virtual scroll pagination info (start and perPage properties)
|
46631
|
+
* if the values change, should call changeData only with the visible data
|
46632
|
+
*/
|
46633
|
+
changeScrollData(scrollData, prevScrollData = [0, 0]) {
|
46634
|
+
const start = scrollData[0];
|
46635
|
+
const perPage = scrollData[1];
|
46636
|
+
const prevStart = prevScrollData[0];
|
46637
|
+
const prevPerPage = prevScrollData[1];
|
46638
|
+
if (start === prevStart && perPage === prevPerPage)
|
46639
|
+
return;
|
46640
|
+
this.changeDataWithFilter(this.data, start, perPage);
|
46641
|
+
}
|
46642
|
+
changeDataWithFilter(data, start, perPage) {
|
46643
|
+
const visibleData = [...data].splice(start, perPage);
|
46644
|
+
this.instance.changeData(visibleData);
|
46645
|
+
}
|
46624
46646
|
changeData(data) {
|
46625
|
-
|
46647
|
+
var _a, _b;
|
46648
|
+
if (!data)
|
46649
|
+
return;
|
46650
|
+
this.data = data;
|
46651
|
+
if (!this.instance.virtualScroll) {
|
46652
|
+
this.instance.changeData(data);
|
46653
|
+
return;
|
46654
|
+
}
|
46655
|
+
if (((_a = this.scrollData) === null || _a === void 0 ? void 0 : _a.start) !== undefined && ((_b = this.scrollData) === null || _b === void 0 ? void 0 : _b.perPage) !== undefined) {
|
46656
|
+
this.changeDataWithFilter(this.data, this.scrollData.start, this.scrollData.perPage);
|
46657
|
+
}
|
46626
46658
|
}
|
46627
46659
|
rowKey(item) {
|
46628
46660
|
return item[this.instance.datasource.uniqueKey];
|
@@ -46656,6 +46688,12 @@ __decorate([
|
|
46656
46688
|
Prop({ type: [String, Boolean], default: undefined }),
|
46657
46689
|
__metadata("design:type", Object)
|
46658
46690
|
], ZdIterable$1.prototype, "searchIn", void 0);
|
46691
|
+
__decorate([
|
46692
|
+
Watch('virtualScrollPage', { deep: true, immediate: true }),
|
46693
|
+
__metadata("design:type", Function),
|
46694
|
+
__metadata("design:paramtypes", [Array, Array]),
|
46695
|
+
__metadata("design:returntype", void 0)
|
46696
|
+
], ZdIterable$1.prototype, "changeScrollData", null);
|
46659
46697
|
ZdIterable$1 = __decorate([
|
46660
46698
|
Component$1
|
46661
46699
|
], ZdIterable$1);
|
@@ -53107,6 +53145,7 @@ let ZdIterable = class ZdIterable extends ZdComponentRender$1 {
|
|
53107
53145
|
initialized: false,
|
53108
53146
|
visibleData: [],
|
53109
53147
|
};
|
53148
|
+
this.data = [];
|
53110
53149
|
}
|
53111
53150
|
mounted() {
|
53112
53151
|
if (this.instance.datasource.watchUrl) {
|
@@ -53122,8 +53161,39 @@ let ZdIterable = class ZdIterable extends ZdComponentRender$1 {
|
|
53122
53161
|
this.unWatchRouteFn();
|
53123
53162
|
}
|
53124
53163
|
}
|
53164
|
+
get virtualScrollPage() {
|
53165
|
+
var _a, _b;
|
53166
|
+
return [((_a = this.scrollData) === null || _a === void 0 ? void 0 : _a.start) || 0, ((_b = this.scrollData) === null || _b === void 0 ? void 0 : _b.perPage) || 0];
|
53167
|
+
}
|
53168
|
+
/**
|
53169
|
+
* Watches virtual scroll pagination info (start and perPage properties)
|
53170
|
+
* if the values change, should call changeData only with the visible data
|
53171
|
+
*/
|
53172
|
+
changeScrollData(scrollData, prevScrollData = [0, 0]) {
|
53173
|
+
const start = scrollData[0];
|
53174
|
+
const perPage = scrollData[1];
|
53175
|
+
const prevStart = prevScrollData[0];
|
53176
|
+
const prevPerPage = prevScrollData[1];
|
53177
|
+
if (start === prevStart && perPage === prevPerPage)
|
53178
|
+
return;
|
53179
|
+
this.changeDataWithFilter(this.data, start, perPage);
|
53180
|
+
}
|
53181
|
+
changeDataWithFilter(data, start, perPage) {
|
53182
|
+
const visibleData = [...data].splice(start, perPage);
|
53183
|
+
this.instance.changeData(visibleData);
|
53184
|
+
}
|
53125
53185
|
changeData(data) {
|
53126
|
-
|
53186
|
+
var _a, _b;
|
53187
|
+
if (!data)
|
53188
|
+
return;
|
53189
|
+
this.data = data;
|
53190
|
+
if (!this.instance.virtualScroll) {
|
53191
|
+
this.instance.changeData(data);
|
53192
|
+
return;
|
53193
|
+
}
|
53194
|
+
if (((_a = this.scrollData) === null || _a === void 0 ? void 0 : _a.start) !== undefined && ((_b = this.scrollData) === null || _b === void 0 ? void 0 : _b.perPage) !== undefined) {
|
53195
|
+
this.changeDataWithFilter(this.data, this.scrollData.start, this.scrollData.perPage);
|
53196
|
+
}
|
53127
53197
|
}
|
53128
53198
|
rowKey(item) {
|
53129
53199
|
return item[this.instance.datasource.uniqueKey];
|
@@ -53157,6 +53227,12 @@ __decorate([
|
|
53157
53227
|
Prop({ type: [String, Boolean], default: undefined }),
|
53158
53228
|
__metadata("design:type", Object)
|
53159
53229
|
], ZdIterable.prototype, "searchIn", void 0);
|
53230
|
+
__decorate([
|
53231
|
+
Watch('virtualScrollPage', { deep: true, immediate: true }),
|
53232
|
+
__metadata("design:type", Function),
|
53233
|
+
__metadata("design:paramtypes", [Array, Array]),
|
53234
|
+
__metadata("design:returntype", void 0)
|
53235
|
+
], ZdIterable.prototype, "changeScrollData", null);
|
53160
53236
|
ZdIterable = __decorate([
|
53161
53237
|
Component$1
|
53162
53238
|
], ZdIterable);
|
package/dist/zd-vuetify.umd.js
CHANGED
@@ -46605,6 +46605,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
|
|
46605
46605
|
initialized: false,
|
46606
46606
|
visibleData: [],
|
46607
46607
|
};
|
46608
|
+
this.data = [];
|
46608
46609
|
}
|
46609
46610
|
mounted() {
|
46610
46611
|
if (this.instance.datasource.watchUrl) {
|
@@ -46620,8 +46621,39 @@ If you're seeing "$attrs is readonly", it's caused by this`);
|
|
46620
46621
|
this.unWatchRouteFn();
|
46621
46622
|
}
|
46622
46623
|
}
|
46624
|
+
get virtualScrollPage() {
|
46625
|
+
var _a, _b;
|
46626
|
+
return [((_a = this.scrollData) === null || _a === void 0 ? void 0 : _a.start) || 0, ((_b = this.scrollData) === null || _b === void 0 ? void 0 : _b.perPage) || 0];
|
46627
|
+
}
|
46628
|
+
/**
|
46629
|
+
* Watches virtual scroll pagination info (start and perPage properties)
|
46630
|
+
* if the values change, should call changeData only with the visible data
|
46631
|
+
*/
|
46632
|
+
changeScrollData(scrollData, prevScrollData = [0, 0]) {
|
46633
|
+
const start = scrollData[0];
|
46634
|
+
const perPage = scrollData[1];
|
46635
|
+
const prevStart = prevScrollData[0];
|
46636
|
+
const prevPerPage = prevScrollData[1];
|
46637
|
+
if (start === prevStart && perPage === prevPerPage)
|
46638
|
+
return;
|
46639
|
+
this.changeDataWithFilter(this.data, start, perPage);
|
46640
|
+
}
|
46641
|
+
changeDataWithFilter(data, start, perPage) {
|
46642
|
+
const visibleData = [...data].splice(start, perPage);
|
46643
|
+
this.instance.changeData(visibleData);
|
46644
|
+
}
|
46623
46645
|
changeData(data) {
|
46624
|
-
|
46646
|
+
var _a, _b;
|
46647
|
+
if (!data)
|
46648
|
+
return;
|
46649
|
+
this.data = data;
|
46650
|
+
if (!this.instance.virtualScroll) {
|
46651
|
+
this.instance.changeData(data);
|
46652
|
+
return;
|
46653
|
+
}
|
46654
|
+
if (((_a = this.scrollData) === null || _a === void 0 ? void 0 : _a.start) !== undefined && ((_b = this.scrollData) === null || _b === void 0 ? void 0 : _b.perPage) !== undefined) {
|
46655
|
+
this.changeDataWithFilter(this.data, this.scrollData.start, this.scrollData.perPage);
|
46656
|
+
}
|
46625
46657
|
}
|
46626
46658
|
rowKey(item) {
|
46627
46659
|
return item[this.instance.datasource.uniqueKey];
|
@@ -46655,6 +46687,12 @@ If you're seeing "$attrs is readonly", it's caused by this`);
|
|
46655
46687
|
vuePropertyDecorator.Prop({ type: [String, Boolean], default: undefined }),
|
46656
46688
|
__metadata("design:type", Object)
|
46657
46689
|
], ZdIterable$1.prototype, "searchIn", void 0);
|
46690
|
+
__decorate([
|
46691
|
+
vuePropertyDecorator.Watch('virtualScrollPage', { deep: true, immediate: true }),
|
46692
|
+
__metadata("design:type", Function),
|
46693
|
+
__metadata("design:paramtypes", [Array, Array]),
|
46694
|
+
__metadata("design:returntype", void 0)
|
46695
|
+
], ZdIterable$1.prototype, "changeScrollData", null);
|
46658
46696
|
ZdIterable$1 = __decorate([
|
46659
46697
|
vuePropertyDecorator.Component
|
46660
46698
|
], ZdIterable$1);
|
@@ -53106,6 +53144,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
|
|
53106
53144
|
initialized: false,
|
53107
53145
|
visibleData: [],
|
53108
53146
|
};
|
53147
|
+
this.data = [];
|
53109
53148
|
}
|
53110
53149
|
mounted() {
|
53111
53150
|
if (this.instance.datasource.watchUrl) {
|
@@ -53121,8 +53160,39 @@ If you're seeing "$attrs is readonly", it's caused by this`);
|
|
53121
53160
|
this.unWatchRouteFn();
|
53122
53161
|
}
|
53123
53162
|
}
|
53163
|
+
get virtualScrollPage() {
|
53164
|
+
var _a, _b;
|
53165
|
+
return [((_a = this.scrollData) === null || _a === void 0 ? void 0 : _a.start) || 0, ((_b = this.scrollData) === null || _b === void 0 ? void 0 : _b.perPage) || 0];
|
53166
|
+
}
|
53167
|
+
/**
|
53168
|
+
* Watches virtual scroll pagination info (start and perPage properties)
|
53169
|
+
* if the values change, should call changeData only with the visible data
|
53170
|
+
*/
|
53171
|
+
changeScrollData(scrollData, prevScrollData = [0, 0]) {
|
53172
|
+
const start = scrollData[0];
|
53173
|
+
const perPage = scrollData[1];
|
53174
|
+
const prevStart = prevScrollData[0];
|
53175
|
+
const prevPerPage = prevScrollData[1];
|
53176
|
+
if (start === prevStart && perPage === prevPerPage)
|
53177
|
+
return;
|
53178
|
+
this.changeDataWithFilter(this.data, start, perPage);
|
53179
|
+
}
|
53180
|
+
changeDataWithFilter(data, start, perPage) {
|
53181
|
+
const visibleData = [...data].splice(start, perPage);
|
53182
|
+
this.instance.changeData(visibleData);
|
53183
|
+
}
|
53124
53184
|
changeData(data) {
|
53125
|
-
|
53185
|
+
var _a, _b;
|
53186
|
+
if (!data)
|
53187
|
+
return;
|
53188
|
+
this.data = data;
|
53189
|
+
if (!this.instance.virtualScroll) {
|
53190
|
+
this.instance.changeData(data);
|
53191
|
+
return;
|
53192
|
+
}
|
53193
|
+
if (((_a = this.scrollData) === null || _a === void 0 ? void 0 : _a.start) !== undefined && ((_b = this.scrollData) === null || _b === void 0 ? void 0 : _b.perPage) !== undefined) {
|
53194
|
+
this.changeDataWithFilter(this.data, this.scrollData.start, this.scrollData.perPage);
|
53195
|
+
}
|
53126
53196
|
}
|
53127
53197
|
rowKey(item) {
|
53128
53198
|
return item[this.instance.datasource.uniqueKey];
|
@@ -53156,6 +53226,12 @@ If you're seeing "$attrs is readonly", it's caused by this`);
|
|
53156
53226
|
vuePropertyDecorator.Prop({ type: [String, Boolean], default: undefined }),
|
53157
53227
|
__metadata("design:type", Object)
|
53158
53228
|
], ZdIterable.prototype, "searchIn", void 0);
|
53229
|
+
__decorate([
|
53230
|
+
vuePropertyDecorator.Watch('virtualScrollPage', { deep: true, immediate: true }),
|
53231
|
+
__metadata("design:type", Function),
|
53232
|
+
__metadata("design:paramtypes", [Array, Array]),
|
53233
|
+
__metadata("design:returntype", void 0)
|
53234
|
+
], ZdIterable.prototype, "changeScrollData", null);
|
53159
53235
|
ZdIterable = __decorate([
|
53160
53236
|
vuePropertyDecorator.Component
|
53161
53237
|
], ZdIterable);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zeedhi/vuetify",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.108.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": "
|
54
|
+
"gitHead": "69fc4b2235ec2cdca0490368e27e672dda3725b5"
|
55
55
|
}
|
@@ -29,6 +29,14 @@ export default class ZdIterable extends ZdComponentRender {
|
|
29
29
|
scrollData: IScrollData;
|
30
30
|
mounted(): void;
|
31
31
|
beforeDestroy(): void;
|
32
|
+
get virtualScrollPage(): number[];
|
33
|
+
/**
|
34
|
+
* Watches virtual scroll pagination info (start and perPage properties)
|
35
|
+
* if the values change, should call changeData only with the visible data
|
36
|
+
*/
|
37
|
+
changeScrollData(scrollData: number[], prevScrollData?: number[]): void;
|
38
|
+
changeDataWithFilter(data: IDictionary[], start: number, perPage: number): void;
|
39
|
+
private data;
|
32
40
|
changeData(data?: IDictionary[]): void;
|
33
41
|
rowKey(item: IDictionary<any>): any;
|
34
42
|
}
|