@katlux/preset-modern 0.1.1-alpha.103 → 0.1.1-alpha.105
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/module.json
CHANGED
|
@@ -288,7 +288,24 @@ const isLoading = computed(() => {
|
|
|
288
288
|
return dpLoading.value || dpInitialLoad.value || false;
|
|
289
289
|
});
|
|
290
290
|
const datatableItems = computed(() => {
|
|
291
|
-
|
|
291
|
+
const currentRows = pageRows.value;
|
|
292
|
+
const dp = props.dataProvider;
|
|
293
|
+
if (props.virtualScroll) {
|
|
294
|
+
if (dp?.isEncryptionEnabled && (dp?.pageSize > 0 || isRef(dp?.pageSize) && dp.pageSize.value > 0)) {
|
|
295
|
+
return currentRows;
|
|
296
|
+
}
|
|
297
|
+
if (Array.isArray(virtualRows?.value) && virtualRows.value.length > 0) return virtualRows.value;
|
|
298
|
+
if (Array.isArray(dp?.rowMap)) return dp.rowMap;
|
|
299
|
+
if (Array.isArray(dp?.rowMap?.value)) return dp.rowMap.value;
|
|
300
|
+
if (Array.isArray(dp?.allVisibleRows)) return dp.allVisibleRows;
|
|
301
|
+
if (Array.isArray(dp?.allVisibleRows?.value)) return dp.allVisibleRows.value;
|
|
302
|
+
if (Array.isArray(dp?.allVisibleNodes)) return dp.allVisibleNodes;
|
|
303
|
+
if (Array.isArray(dp?.allVisibleNodes?.value)) return dp.allVisibleNodes.value;
|
|
304
|
+
if (Array.isArray(dp?.allData?.value)) return dp.allData.value;
|
|
305
|
+
if (Array.isArray(dp?.allData)) return dp.allData;
|
|
306
|
+
if (Array.isArray(dp?.data)) return dp.data;
|
|
307
|
+
}
|
|
308
|
+
return currentRows;
|
|
292
309
|
});
|
|
293
310
|
const {
|
|
294
311
|
visibleItems,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@katlux/preset-modern",
|
|
3
|
-
"version": "0.1.1-alpha.
|
|
3
|
+
"version": "0.1.1-alpha.105",
|
|
4
4
|
"description": "Modern default design preset and styling variables for Katlux components",
|
|
5
5
|
"author": "Katlux",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"**/*.sass"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@katlux/toolkit": "^0.1.1-alpha.
|
|
28
|
+
"@katlux/toolkit": "^0.1.1-alpha.129",
|
|
29
29
|
"@nuxt/kit": "^3.12.0"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|