@shival99/z-ui 1.2.22 → 1.2.23
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/fesm2022/shival99-z-ui-components-z-table.mjs +116 -109
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +3 -5
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-popover.d.ts +1 -1
|
@@ -1069,13 +1069,11 @@ class ZIndexDbService {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
async _triggerUpgrade() {
|
|
1071
1071
|
this._closeConnection();
|
|
1072
|
-
|
|
1072
|
+
const isVersionLimitReached = this._version >= Z_INDEXDB_MAX_VERSION;
|
|
1073
|
+
if (isVersionLimitReached) {
|
|
1073
1074
|
await this._resetDatabase();
|
|
1074
|
-
this._version = 1;
|
|
1075
|
-
}
|
|
1076
|
-
else {
|
|
1077
|
-
this._version += 1;
|
|
1078
1075
|
}
|
|
1076
|
+
this._version = isVersionLimitReached ? 1 : this._version + 1;
|
|
1079
1077
|
this._dbReady = this._initDb();
|
|
1080
1078
|
await this._dbReady;
|
|
1081
1079
|
}
|