@katlux/preset-modern 0.1.1-alpha.101 → 0.1.1-alpha.103

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@katlux/preset-modern",
3
3
  "configKey": "katluxTemplateModern",
4
- "version": "0.1.1-alpha.101",
4
+ "version": "0.1.1-alpha.103",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -2,7 +2,7 @@ type __VLS_Props = {
2
2
  isLink: boolean;
3
3
  isDisabled: boolean;
4
4
  buttonClasses: any;
5
- onClick: () => void;
5
+ onClick: (e?: MouseEvent) => void;
6
6
  href?: string;
7
7
  loading?: boolean;
8
8
  };
@@ -1,5 +1,5 @@
1
1
  <template lang="pug">
2
- NuxtLink.KButton.modern-button(v-if="isLink" :to="href" @click.prevent="onClick" :class="buttonClasses")
2
+ NuxtLink.KButton.modern-button(v-if="isLink" :to="href" @click="onClick" :class="buttonClasses")
3
3
  .button-content
4
4
  .button-icon(v-if="$slots.icon")
5
5
  slot(name="icon")
@@ -30,6 +30,11 @@ defineProps({
30
30
 
31
31
  <style scoped>
32
32
  .KButton.modern-button {
33
+ display: inline-flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ vertical-align: middle;
37
+ box-sizing: border-box;
33
38
  border-radius: var(--button-border-radius);
34
39
  font-weight: var(--font-weight-semibold);
35
40
  cursor: pointer;
@@ -40,13 +45,21 @@ defineProps({
40
45
  text-decoration: none;
41
46
  box-shadow: var(--shadow-md);
42
47
  }
48
+ .KButton.modern-button:hover, .KButton.modern-button:focus, .KButton.modern-button:active {
49
+ text-decoration: none;
50
+ }
51
+ .KButton.modern-button:visited {
52
+ color: inherit;
53
+ }
43
54
  .KButton.modern-button .button-content {
44
- display: flex;
55
+ display: inline-flex;
45
56
  align-items: center;
46
57
  justify-content: center;
47
58
  gap: var(--gap-sm);
48
59
  position: relative;
49
60
  z-index: 1;
61
+ width: 100%;
62
+ height: 100%;
50
63
  }
51
64
  .KButton.modern-button .button-icon {
52
65
  display: flex;
@@ -2,7 +2,7 @@ type __VLS_Props = {
2
2
  isLink: boolean;
3
3
  isDisabled: boolean;
4
4
  buttonClasses: any;
5
- onClick: () => void;
5
+ onClick: (e?: MouseEvent) => void;
6
6
  href?: string;
7
7
  loading?: boolean;
8
8
  };
@@ -288,21 +288,7 @@ const isLoading = computed(() => {
288
288
  return dpLoading.value || dpInitialLoad.value || false;
289
289
  });
290
290
  const datatableItems = computed(() => {
291
- const currentRows = pageRows.value;
292
- const dp = props.dataProvider;
293
- if (props.virtualScroll) {
294
- if (Array.isArray(virtualRows?.value)) return virtualRows.value;
295
- if (Array.isArray(dp?.rowMap)) return dp.rowMap;
296
- if (Array.isArray(dp?.rowMap?.value)) return dp.rowMap.value;
297
- if (Array.isArray(dp?.allVisibleRows)) return dp.allVisibleRows;
298
- if (Array.isArray(dp?.allVisibleRows?.value)) return dp.allVisibleRows.value;
299
- if (Array.isArray(dp?.allVisibleNodes)) return dp.allVisibleNodes;
300
- if (Array.isArray(dp?.allVisibleNodes?.value)) return dp.allVisibleNodes.value;
301
- if (Array.isArray(dp?.allData?.value)) return dp.allData.value;
302
- if (Array.isArray(dp?.allData)) return dp.allData;
303
- if (Array.isArray(dp?.data)) return dp.data;
304
- }
305
- return currentRows;
291
+ return pageRows.value;
306
292
  });
307
293
  const {
308
294
  visibleItems,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katlux/preset-modern",
3
- "version": "0.1.1-alpha.101",
3
+ "version": "0.1.1-alpha.103",
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.125",
28
+ "@katlux/toolkit": "^0.1.1-alpha.127",
29
29
  "@nuxt/kit": "^3.12.0"
30
30
  },
31
31
  "files": [