vueless 0.0.210 → 0.0.211

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.
Files changed (71) hide show
  1. package/package.json +1 -1
  2. package/ui.container-group/configs/default.config.js +19 -1
  3. package/ui.container-group/index.vue +26 -1
  4. package/ui.container-row/configs/default.config.js +21 -3
  5. package/ui.container-row/index.vue +27 -2
  6. package/ui.data-list/composables/attrs.composable.js +39 -36
  7. package/ui.data-list/configs/default.config.js +6 -4
  8. package/ui.data-list/index.stories.js +2 -4
  9. package/ui.data-list/index.vue +34 -5
  10. package/ui.data-table/composables/attrs.composable.js +180 -245
  11. package/ui.data-table/configs/default.config.js +10 -10
  12. package/ui.data-table/index.vue +52 -12
  13. package/ui.form-checkbox/composables/attrs.composable.js +28 -43
  14. package/ui.form-checkbox/configs/default.config.js +2 -2
  15. package/ui.form-checkbox/index.stories.js +2 -4
  16. package/ui.form-checkbox/index.vue +16 -4
  17. package/ui.form-checkbox-group/composables/attrs.composable.js +24 -9
  18. package/ui.form-checkbox-group/configs/default.config.js +2 -2
  19. package/ui.form-checkbox-group/index.vue +8 -2
  20. package/ui.form-checkbox-multi-state/composables/attrs.composable.js +34 -12
  21. package/ui.form-checkbox-multi-state/configs/default.config.js +1 -1
  22. package/ui.form-checkbox-multi-state/index.vue +8 -2
  23. package/ui.form-input-file/composables/attrs.composable.js +19 -62
  24. package/ui.form-input-file/configs/default.config.js +7 -7
  25. package/ui.form-input-file/index.vue +15 -3
  26. package/ui.form-input-money/composables/attrs.composable.js +23 -4
  27. package/ui.form-input-money/configs/default.config.js +1 -1
  28. package/ui.form-input-money/index.stories.js +2 -4
  29. package/ui.form-input-number/composables/attrs.composable.js +22 -36
  30. package/ui.form-input-number/configs/default.config.js +4 -4
  31. package/ui.form-input-number/index.vue +8 -2
  32. package/ui.form-input-rating/composables/attrs.composable.js +10 -11
  33. package/ui.form-input-rating/index.vue +2 -2
  34. package/ui.form-input-search/composables/attrs.composable.js +26 -11
  35. package/ui.form-input-search/configs/default.config.js +4 -4
  36. package/ui.form-input-search/index.stories.js +2 -4
  37. package/ui.form-input-search/index.vue +21 -4
  38. package/ui.form-label/composables/attrs.composable.js +22 -49
  39. package/ui.form-label/index.vue +9 -2
  40. package/ui.form-radio/composables/attrs.composable.js +29 -22
  41. package/ui.form-radio/configs/default.config.js +1 -1
  42. package/ui.form-radio/index.stories.js +2 -4
  43. package/ui.form-radio/index.vue +8 -2
  44. package/ui.form-radio-group/composables/attrs.composable.js +20 -15
  45. package/ui.form-radio-group/configs/default.config.js +2 -1
  46. package/ui.form-radio-group/index.vue +8 -2
  47. package/ui.form-switch/composables/attrs.composable.js +25 -61
  48. package/ui.form-switch/configs/default.config.js +2 -2
  49. package/ui.form-switch/index.vue +8 -2
  50. package/ui.form-textarea/composables/attrs.composable.js +25 -36
  51. package/ui.form-textarea/configs/default.config.js +1 -1
  52. package/ui.form-textarea/index.stories.js +3 -5
  53. package/ui.form-textarea/index.vue +35 -4
  54. package/ui.navigation-pagination/composables/attrs.composable.js +41 -31
  55. package/ui.navigation-pagination/configs/default.config.js +2 -2
  56. package/ui.navigation-pagination/index.vue +22 -6
  57. package/ui.navigation-progress/components/StepperProgress.vue +1 -1
  58. package/ui.navigation-progress/composables/attrs.composable.js +19 -22
  59. package/ui.navigation-progress/index.vue +14 -1
  60. package/ui.navigation-tab/composables/attrs.composable.js +25 -20
  61. package/ui.navigation-tab/index.vue +1 -1
  62. package/ui.navigation-tabs/composables/attrs.composable.js +19 -13
  63. package/ui.navigation-tabs/configs/default.config.js +1 -1
  64. package/ui.navigation-tabs/index.vue +9 -2
  65. package/ui.text-file/configs/default.config.js +3 -0
  66. package/ui.text-file/index.vue +36 -25
  67. package/ui.text-files/index.vue +8 -0
  68. package/ui.text-header/configs/default.config.js +1 -0
  69. package/ui.text-header/index.stories.js +2 -2
  70. package/ui.text-header/index.vue +16 -12
  71. package/web-types.json +383 -62
@@ -2,22 +2,25 @@
2
2
  <ULink :url="url" no-ring target-blank :data-cy="dataCy" v-bind="fileAttrs">
3
3
  <slot name="left" :file="{ id, label, url, imageUrl }" />
4
4
 
5
- <div v-bind="infoAttrs">
6
- <img v-if="imageUrl" :src="imageUrl" v-bind="imageAttrs" />
7
-
8
- <UIcon
9
- v-else
10
- internal
11
- interactive
12
- color="gray"
13
- :name="config.iconName"
14
- v-bind="iconAttrs"
15
- @focus="onFocus"
16
- @blur="onBlur"
17
- />
18
-
19
- <span v-bind="labelAttrs" v-text="label" />
20
- </div>
5
+ <slot :file="{ id, label, url, imageUrl, iconName: config.iconName }">
6
+ <div v-bind="infoAttrs">
7
+ <img v-if="imageUrl" :src="imageUrl" v-bind="imageAttrs" />
8
+
9
+ <UIcon
10
+ v-else
11
+ internal
12
+ interactive
13
+ color="gray"
14
+ :size="size"
15
+ :name="config.iconName"
16
+ v-bind="iconAttrs"
17
+ @focus="onFocus"
18
+ @blur="onBlur"
19
+ />
20
+
21
+ <span v-bind="labelAttrs" v-text="label" />
22
+ </div>
23
+ </slot>
21
24
 
22
25
  <slot name="right" :file="{ id, label, url, imageUrl }" />
23
26
  </ULink>
@@ -40,7 +43,7 @@ defineOptions({ name: "UFile", inheritAttrs: false });
40
43
 
41
44
  const props = defineProps({
42
45
  /**
43
- * Set url link for the file.
46
+ * File url.
44
47
  */
45
48
  url: {
46
49
  type: String,
@@ -48,7 +51,7 @@ const props = defineProps({
48
51
  },
49
52
 
50
53
  /**
51
- * Set image url.
54
+ * Image url.
52
55
  */
53
56
  imageUrl: {
54
57
  type: String,
@@ -56,13 +59,22 @@ const props = defineProps({
56
59
  },
57
60
 
58
61
  /**
59
- * Set label.
62
+ * File label.
60
63
  */
61
64
  label: {
62
65
  type: String,
63
66
  default: "",
64
67
  },
65
68
 
69
+ /**
70
+ * File size.
71
+ * @values sm, md, lg
72
+ */
73
+ size: {
74
+ type: String,
75
+ default: UIService.get(defaultConfig, UFile).default.size,
76
+ },
77
+
66
78
  /**
67
79
  * Generates unique element id.
68
80
  * @ignore
@@ -73,16 +85,15 @@ const props = defineProps({
73
85
  },
74
86
 
75
87
  /**
76
- * Set size.
77
- * @values sm, md, lg
88
+ * Component ui config object.
78
89
  */
79
- size: {
80
- type: String,
81
- default: UIService.get(defaultConfig, UFile).default.size,
90
+ config: {
91
+ type: Object,
92
+ default: () => ({}),
82
93
  },
83
94
 
84
95
  /**
85
- * Sets data-cy attribute for automated testing.
96
+ * Data-cy attribute for automated testing.
86
97
  */
87
98
  dataCy: {
88
99
  type: String,
@@ -88,6 +88,14 @@ const props = defineProps({
88
88
  default: UIService.get(defaultConfig, UFiles).default.size,
89
89
  },
90
90
 
91
+ /**
92
+ * Component ui config object.
93
+ */
94
+ config: {
95
+ type: Object,
96
+ default: () => ({}),
97
+ },
98
+
91
99
  /**
92
100
  * Sets data-cy attribute for automated testing.
93
101
  */
@@ -42,6 +42,7 @@ export default /*tw*/ {
42
42
  color: "grayscale",
43
43
  weight: "medium",
44
44
  size: "md",
45
+ tag: "div",
45
46
  multiline: false,
46
47
  underlined: false,
47
48
  },
@@ -1,4 +1,4 @@
1
- import { getArgTypes, getSlotNames } from "../service.storybook";
1
+ import { allSlotsFragment, getArgTypes, getSlotNames } from "../service.storybook";
2
2
 
3
3
  import UHeader from "../ui.text-header";
4
4
  import UGroup from "../ui.container-group";
@@ -26,7 +26,7 @@ const DefaultTemplate = (args) => ({
26
26
  return { args, slots };
27
27
  },
28
28
  template: `
29
- <UHeader v-bind="args" />
29
+ <UHeader v-bind="args">${allSlotsFragment}</UHeader>
30
30
  `,
31
31
  });
32
32
 
@@ -1,11 +1,7 @@
1
1
  <template>
2
- <div :data-cy="dataCy" v-bind="wrapperAttrs">
3
- <template v-if="label">
4
- {{ label }}
5
- </template>
6
-
7
- <slot />
8
- </div>
2
+ <component :is="tag" v-bind="wrapperAttrs" :data-cy="dataCy">
3
+ <slot>{{ label }}</slot>
4
+ </component>
9
5
  </template>
10
6
 
11
7
  <script setup>
@@ -20,7 +16,7 @@ defineOptions({ name: "UHeader", inheritAttrs: false });
20
16
 
21
17
  const props = defineProps({
22
18
  /**
23
- * Set label.
19
+ * Header label.
24
20
  */
25
21
  label: {
26
22
  type: String,
@@ -28,7 +24,7 @@ const props = defineProps({
28
24
  },
29
25
 
30
26
  /**
31
- * Set size.
27
+ * Header size.
32
28
  * @values xs, sm, md, lg, xl, 2xl
33
29
  */
34
30
  size: {
@@ -37,7 +33,7 @@ const props = defineProps({
37
33
  },
38
34
 
39
35
  /**
40
- * Set weight.
36
+ * Header weight.
41
37
  * @values regular, medium, bold
42
38
  */
43
39
  weight: {
@@ -54,6 +50,14 @@ const props = defineProps({
54
50
  default: UIService.get(defaultConfig, UHeader).default.color,
55
51
  },
56
52
 
53
+ /**
54
+ * Allows changing button html tag.
55
+ */
56
+ tag: {
57
+ type: String,
58
+ default: UIService.get(defaultConfig, UHeader).default.tag,
59
+ },
60
+
57
61
  /**
58
62
  * Return default line height to the component (it may be useful for multiline headers).
59
63
  */
@@ -71,7 +75,7 @@ const props = defineProps({
71
75
  },
72
76
 
73
77
  /**
74
- * Sets component ui config object.
78
+ * Component ui config object.
75
79
  */
76
80
  config: {
77
81
  type: Object,
@@ -79,7 +83,7 @@ const props = defineProps({
79
83
  },
80
84
 
81
85
  /**
82
- * Sets data-cy attribute for automated testing.
86
+ * Data-cy attribute for automated testing.
83
87
  */
84
88
  dataCy: {
85
89
  type: String,