vueless 0.0.431 → 0.0.432

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 CHANGED
@@ -26,16 +26,7 @@ const vueless = createVueless();
26
26
  createApp(App).use(vueless).mount('#app');
27
27
  ```
28
28
 
29
- 3. Create `vueless.config.js` at the root of the project.
30
-
31
- ```javascript
32
- export default {
33
- color: {},
34
- component: {},
35
- };
36
- ```
37
-
38
- 4. Add TailwindCSS preset.
29
+ 3. Add TailwindCSS preset.
39
30
 
40
31
  ```javascript
41
32
  import { vuelessPreset } from "vueless/preset.tailwind";
@@ -46,7 +37,7 @@ export default {
46
37
  };
47
38
  ```
48
39
 
49
- 5. Add Vite plugins.
40
+ 4. Add Vite plugins.
50
41
 
51
42
  ```javascript
52
43
  import { Vueless, VuelessUnpluginComponents } from "@vueless/plugin-vite";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.431",
3
+ "version": "0.0.432",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -56,10 +56,10 @@
56
56
  <template v-if="hasSlotContent($slots[`header-${column.key}`])">
57
57
  <!--
58
58
  @slot Use it to customise needed header cell.
59
- @binding {string} name
60
- @binding {number} column
59
+ @binding {object} column
60
+ @binding {number} index
61
61
  -->
62
- <slot :name="`header-${column.key}`" :column="column" />
62
+ <slot :name="`header-${column.key}`" :column="column" :index="index" />
63
63
  </template>
64
64
 
65
65
  <template v-else>
@@ -68,10 +68,10 @@
68
68
 
69
69
  <!--
70
70
  @slot Use it to add something after the needed header cell.
71
- @binding {string} name
72
- @binding {number} column
71
+ @binding {object} column
72
+ @binding {number} index
73
73
  -->
74
- <slot :name="`header-${column.key}-after`" :column="column" />
74
+ <slot :name="`header-${column.key}-after`" :column="column" :index="index" />
75
75
  </div>
76
76
  </template>
77
77
 
@@ -125,13 +125,14 @@
125
125
  >
126
126
  <!--
127
127
  @slot Use it to customise needed header cell.
128
- @binding {string} name
129
- @binding {number} column
128
+ @binding {object} column
129
+ @binding {number} index
130
130
  -->
131
131
  <slot
132
132
  v-if="hasSlotContent($slots[`header-${column.key}`])"
133
133
  :name="`header-${column.key}`"
134
134
  :column="column"
135
+ :index="index"
135
136
  />
136
137
 
137
138
  <template v-else>
@@ -140,10 +141,10 @@
140
141
 
141
142
  <!--
142
143
  @slot Use it to add something after the needed header cell.
143
- @binding {string} name
144
- @binding {number} column
144
+ @binding {object} column
145
+ @binding {number} index
145
146
  -->
146
- <slot :name="`header-${column.key}-after`" :column="column" />
147
+ <slot :name="`header-${column.key}-after`" :column="column" :index="index" />
147
148
  </th>
148
149
  </tr>
149
150
 
@@ -192,11 +193,16 @@
192
193
  >
193
194
  <!--
194
195
  @slot Use it to customise needed table cell.
195
- @binding {string} name
196
196
  @binding {string} value
197
197
  @binding {object} row
198
+ @binding {number} index
198
199
  -->
199
- <slot :name="`cell-${key}`" :value="slotValues.value" :row="slotValues.row" />
200
+ <slot
201
+ :name="`cell-${key}`"
202
+ :value="slotValues.value"
203
+ :row="slotValues.row"
204
+ :index="index"
205
+ />
200
206
  </template>
201
207
  <template #nested-content>
202
208
  <!--
@@ -280,9 +280,6 @@ RowAndCellClasses.args = {
280
280
  export const Empty = EmptyTemplate.bind({});
281
281
  Empty.args = {};
282
282
 
283
- export const Filters = EmptyTemplate.bind({});
284
- Filters.args = { filters: true };
285
-
286
283
  export const Selectable = DefaultTemplate.bind({});
287
284
  Selectable.args = { selectable: true };
288
285
 
@@ -96,6 +96,8 @@ export function getArgTypes(componentName) {
96
96
  const bindings = [];
97
97
 
98
98
  slot.bindings?.forEach((binding) => {
99
+ if (binding.name === "name") return;
100
+
99
101
  const description = binding.description ? ` (${binding.description})` : "";
100
102
 
101
103
  bindings.push(`${binding.name}: ${binding.type}${description}`);
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.431",
4
+ "version": "0.0.432",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -8423,12 +8423,15 @@
8423
8423
  "description": "Use it to customise needed header cell.",
8424
8424
  "bindings": [
8425
8425
  {
8426
- "type": "string",
8427
8426
  "name": "name"
8428
8427
  },
8429
8428
  {
8430
- "type": "number",
8429
+ "type": "object",
8431
8430
  "name": "column"
8431
+ },
8432
+ {
8433
+ "type": "number",
8434
+ "name": "index"
8432
8435
  }
8433
8436
  ]
8434
8437
  },
@@ -8438,12 +8441,15 @@
8438
8441
  "description": "Use it to add something after the needed header cell.",
8439
8442
  "bindings": [
8440
8443
  {
8441
- "type": "string",
8442
8444
  "name": "name"
8443
8445
  },
8444
8446
  {
8445
- "type": "number",
8447
+ "type": "object",
8446
8448
  "name": "column"
8449
+ },
8450
+ {
8451
+ "type": "number",
8452
+ "name": "index"
8447
8453
  }
8448
8454
  ]
8449
8455
  },
@@ -8468,7 +8474,6 @@
8468
8474
  "description": "Use it to customise needed table cell.",
8469
8475
  "bindings": [
8470
8476
  {
8471
- "type": "string",
8472
8477
  "name": "name"
8473
8478
  },
8474
8479
  {
@@ -8478,6 +8483,10 @@
8478
8483
  {
8479
8484
  "type": "object",
8480
8485
  "name": "row"
8486
+ },
8487
+ {
8488
+ "type": "number",
8489
+ "name": "index"
8481
8490
  }
8482
8491
  ]
8483
8492
  },