vueless 0.0.431 → 0.0.433

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.433",
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
 
@@ -234,7 +234,7 @@ const props = defineProps({
234
234
  */
235
235
  rightIcon: {
236
236
  type: String,
237
- default: getDefault(defaultConfig, UDatePicker).calendarIcon,
237
+ default: getDefault(defaultConfig, UDatePicker).rightIcon,
238
238
  },
239
239
 
240
240
  /**
@@ -123,7 +123,6 @@ export default /*tw*/ {
123
123
  dateTimeFormat: undefined,
124
124
  maxDate: undefined,
125
125
  minDate: undefined,
126
- /* icons */
127
- calendarIcon: "calendar_month-fill",
126
+ rightIcon: "calendar_month-fill",
128
127
  },
129
128
  };
@@ -7,6 +7,7 @@
7
7
  v-model="userFormatDate"
8
8
  :size="size"
9
9
  :label="label"
10
+ :label-align="labelAlign"
10
11
  :disabled="disabled"
11
12
  :placeholder="placeholder"
12
13
  :description="description"
@@ -300,7 +301,7 @@ const props = defineProps({
300
301
  */
301
302
  rightIcon: {
302
303
  type: String,
303
- default: getDefault(defaultConfig, UDatePickerRange).calendarIcon,
304
+ default: getDefault(defaultConfig, UDatePickerRange).rightIcon,
304
305
  },
305
306
 
306
307
  /**
@@ -311,6 +312,15 @@ const props = defineProps({
311
312
  default: "",
312
313
  },
313
314
 
315
+ /**
316
+ * Label placement.
317
+ * @values top, topInside, topWithDesc, left, right
318
+ */
319
+ labelAlign: {
320
+ type: String,
321
+ default: getDefault(defaultConfig, UDatePickerRange).labelAlign,
322
+ },
323
+
314
324
  /**
315
325
  * Input placeholder for an input type.
316
326
  */
@@ -187,6 +187,7 @@ export default /*tw*/ {
187
187
  defaults: {
188
188
  size: "md",
189
189
  variant: "button",
190
+ labelAlign: "topInside",
190
191
  openDirectionX: "auto",
191
192
  openDirectionY: "auto",
192
193
  timepicker: false,
@@ -194,10 +195,10 @@ export default /*tw*/ {
194
195
  dateFormat: undefined,
195
196
  maxDate: undefined,
196
197
  minDate: undefined,
198
+ rightIcon: "calendar_month-fill",
197
199
  /* icons */
198
200
  nextIcon: "keyboard_arrow_right",
199
201
  prevIcon: "keyboard_arrow_left",
200
202
  ownRangeIcon: "apps",
201
- calendarIcon: "calendar_month-fill",
202
203
  },
203
204
  };
@@ -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.433",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -2484,7 +2484,7 @@
2484
2484
  "kind": "expression",
2485
2485
  "type": "string"
2486
2486
  },
2487
- "default": "getDefault(defaultConfig, UDatePicker).calendarIcon"
2487
+ "default": "calendar_month-fill"
2488
2488
  },
2489
2489
  {
2490
2490
  "name": "disabled",
@@ -2708,7 +2708,7 @@
2708
2708
  "kind": "expression",
2709
2709
  "type": "string"
2710
2710
  },
2711
- "default": "getDefault(defaultConfig, UDatePickerRange).calendarIcon"
2711
+ "default": "calendar_month-fill"
2712
2712
  },
2713
2713
  {
2714
2714
  "name": "label",
@@ -2719,6 +2719,15 @@
2719
2719
  },
2720
2720
  "default": "\"\""
2721
2721
  },
2722
+ {
2723
+ "name": "labelAlign",
2724
+ "description": "Label placement.",
2725
+ "value": {
2726
+ "kind": "expression",
2727
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'left' | 'right'"
2728
+ },
2729
+ "default": "topInside"
2730
+ },
2722
2731
  {
2723
2732
  "name": "placeholder",
2724
2733
  "description": "Input placeholder for an input type.",
@@ -8423,12 +8432,15 @@
8423
8432
  "description": "Use it to customise needed header cell.",
8424
8433
  "bindings": [
8425
8434
  {
8426
- "type": "string",
8427
8435
  "name": "name"
8428
8436
  },
8429
8437
  {
8430
- "type": "number",
8438
+ "type": "object",
8431
8439
  "name": "column"
8440
+ },
8441
+ {
8442
+ "type": "number",
8443
+ "name": "index"
8432
8444
  }
8433
8445
  ]
8434
8446
  },
@@ -8438,12 +8450,15 @@
8438
8450
  "description": "Use it to add something after the needed header cell.",
8439
8451
  "bindings": [
8440
8452
  {
8441
- "type": "string",
8442
8453
  "name": "name"
8443
8454
  },
8444
8455
  {
8445
- "type": "number",
8456
+ "type": "object",
8446
8457
  "name": "column"
8458
+ },
8459
+ {
8460
+ "type": "number",
8461
+ "name": "index"
8447
8462
  }
8448
8463
  ]
8449
8464
  },
@@ -8468,7 +8483,6 @@
8468
8483
  "description": "Use it to customise needed table cell.",
8469
8484
  "bindings": [
8470
8485
  {
8471
- "type": "string",
8472
8486
  "name": "name"
8473
8487
  },
8474
8488
  {
@@ -8478,6 +8492,10 @@
8478
8492
  {
8479
8493
  "type": "object",
8480
8494
  "name": "row"
8495
+ },
8496
+ {
8497
+ "type": "number",
8498
+ "name": "index"
8481
8499
  }
8482
8500
  ]
8483
8501
  },