vueless 0.0.320 → 0.0.322

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 (34) hide show
  1. package/package.json +1 -1
  2. package/preset.tailwind.js +1 -1
  3. package/ui.dropdown-badge/configs/default.config.js +4 -4
  4. package/ui.dropdown-badge/index.vue +4 -4
  5. package/ui.dropdown-button/configs/default.config.js +4 -4
  6. package/ui.dropdown-button/index.vue +4 -4
  7. package/ui.dropdown-link/configs/default.config.js +4 -4
  8. package/ui.dropdown-link/index.vue +4 -4
  9. package/ui.form-calendar/components/DayView.vue +6 -7
  10. package/ui.form-calendar/components/MonthView.vue +60 -5
  11. package/ui.form-calendar/components/YearView.vue +53 -5
  12. package/ui.form-calendar/configs/default.config.js +5 -4
  13. package/ui.form-calendar/index.vue +5 -1
  14. package/ui.form-date-picker-range/configs/default.config.js +12 -4
  15. package/ui.form-date-picker-range/index.vue +64 -7
  16. package/ui.loader/configs/default.config.js +0 -1
  17. package/ui.text-alert/configs/default.config.js +2 -2
  18. package/ui.text-alert/index.vue +14 -14
  19. package/ui.text-badge/configs/default.config.js +1 -1
  20. package/ui.text-badge/index.vue +8 -8
  21. package/ui.text-empty/configs/default.config.js +1 -1
  22. package/ui.text-empty/index.vue +4 -4
  23. package/ui.text-file/configs/default.config.js +3 -15
  24. package/ui.text-file/index.vue +10 -7
  25. package/ui.text-files/configs/default.config.js +3 -3
  26. package/ui.text-files/index.vue +27 -20
  27. package/ui.text-header/configs/default.config.js +3 -9
  28. package/ui.text-header/index.stories.js +3 -6
  29. package/ui.text-header/index.vue +6 -15
  30. package/ui.text-money/configs/default.config.js +9 -14
  31. package/ui.text-money/index.stories.js +0 -3
  32. package/ui.text-money/index.vue +66 -64
  33. package/ui.text-notify/configs/default.config.js +1 -0
  34. package/web-types.json +130 -113
@@ -6,21 +6,27 @@
6
6
  </div>
7
7
 
8
8
  <div :data-test="dataTest" v-bind="sumAttrs">
9
- <span v-if="currencySymbolPosition.left" v-bind="symbolAttrs">
10
- {{ symbol + currencySpace }}
11
- </span>
12
-
13
- <span v-if="sum">{{ typeSymbol }}</span>
14
-
15
- <span>{{ preparedMoney.integer }}</span>
16
-
17
- <span v-if="!integer" v-bind="pennyAttrs">
18
- {{ preparedMoney.delimiter }}{{ preparedMoney.penny }}
19
- </span>
20
-
21
- <span v-if="currencySymbolPosition.right" v-bind="symbolAttrs">
22
- {{ currencySpace + symbol }}
23
- </span>
9
+ <span
10
+ v-if="currencySymbolPosition.left"
11
+ v-bind="symbolAttrs"
12
+ v-text="symbol + currencySpace"
13
+ />
14
+
15
+ <span v-if="sum" v-bind="mathSignAttrs" v-text="mathSign" />
16
+
17
+ <span v-bind="integerAttrs" v-text="preparedMoney.integer" />
18
+
19
+ <span
20
+ v-if="!integer"
21
+ v-bind="pennyAttrs"
22
+ v-text="preparedMoney.delimiter + preparedMoney.penny"
23
+ />
24
+
25
+ <span
26
+ v-if="currencySymbolPosition.right"
27
+ v-bind="symbolAttrs"
28
+ v-text="currencySpace + symbol"
29
+ />
24
30
  </div>
25
31
 
26
32
  <div v-if="hasSlotContent($slots['right'])" v-bind="slotRightAttrs">
@@ -45,7 +51,7 @@ defineOptions({ name: "UMoney", inheritAttrs: false });
45
51
 
46
52
  const props = defineProps({
47
53
  /**
48
- * Set sum.
54
+ * Money value.
49
55
  */
50
56
  sum: {
51
57
  type: Number,
@@ -53,40 +59,33 @@ const props = defineProps({
53
59
  },
54
60
 
55
61
  /**
56
- * Set currency symbol.
62
+ * Money size.
63
+ * @values xs, sm, md, lg, xl, 2xl, 3xl, 4xl
57
64
  */
58
- symbol: {
65
+ size: {
59
66
  type: String,
60
- default: "",
61
- },
62
-
63
- /**
64
- * Make sum planned (add brackets).
65
- */
66
- planned: {
67
- type: Boolean,
68
- default: getDefault(defaultConfig, UMoney).planned,
67
+ default: getDefault(defaultConfig, UMoney).size,
69
68
  },
70
69
 
71
70
  /**
72
- * Make sum integer.
71
+ * Money color.
72
+ * @values brand, grayscale, gray, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose, white
73
73
  */
74
- integer: {
75
- type: Boolean,
76
- default: getDefault(defaultConfig, UMoney).integer,
74
+ color: {
75
+ type: String,
76
+ default: getDefault(defaultConfig, UMoney).color,
77
77
  },
78
78
 
79
79
  /**
80
- * Set sign for sum.
81
- * @values default, positive, negative
80
+ * Money currency symbol.
82
81
  */
83
- sign: {
82
+ symbol: {
84
83
  type: String,
85
- default: getDefault(defaultConfig, UMoney).sign,
84
+ default: "",
86
85
  },
87
86
 
88
87
  /**
89
- * Set align for currency symbol.
88
+ * Money currency symbol align.
90
89
  * @values right, left
91
90
  */
92
91
  symbolAlign: {
@@ -95,30 +94,20 @@ const props = defineProps({
95
94
  },
96
95
 
97
96
  /**
98
- * Set text size of sum.
99
- * @values xs, sm, md, lg, xl, 2xl, 3xl, 4xl
97
+ * Add space between currency symbol and sum.
100
98
  */
101
- size: {
102
- type: String,
103
- default: getDefault(defaultConfig, UMoney).size,
104
- },
105
-
106
- /**
107
- * Set weight.
108
- * @values regular, medium, bold
109
- */
110
- weight: {
111
- type: String,
112
- default: getDefault(defaultConfig, UMoney).weight,
99
+ symbolDivided: {
100
+ type: Boolean,
101
+ default: getDefault(defaultConfig, UMoney).symbolDivided,
113
102
  },
114
103
 
115
104
  /**
116
- * The color of the text money.
117
- * @values brand, grayscale, gray, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose, white
105
+ * Money sign.
106
+ * @values default, positive, negative
118
107
  */
119
- color: {
108
+ sign: {
120
109
  type: String,
121
- default: getDefault(defaultConfig, UMoney).color,
110
+ default: getDefault(defaultConfig, UMoney).sign,
122
111
  },
123
112
 
124
113
  /**
@@ -138,7 +127,7 @@ const props = defineProps({
138
127
  },
139
128
 
140
129
  /**
141
- * Set align for money block.
130
+ * Money align.
142
131
  * @values right, left
143
132
  */
144
133
  align: {
@@ -147,16 +136,27 @@ const props = defineProps({
147
136
  },
148
137
 
149
138
  /**
150
- * Sets component ui config object.
139
+ * Make money sum integer.
151
140
  */
152
- config: {
153
- type: Object,
154
- default: () => ({}),
141
+ integer: {
142
+ type: Boolean,
143
+ default: getDefault(defaultConfig, UMoney).integer,
155
144
  },
156
145
 
157
- divided: {
146
+ /**
147
+ * Make money planned (add brackets).
148
+ */
149
+ planned: {
158
150
  type: Boolean,
159
- default: getDefault(defaultConfig, UMoney).divided,
151
+ default: getDefault(defaultConfig, UMoney).planned,
152
+ },
153
+
154
+ /**
155
+ * Component ui config object.
156
+ */
157
+ config: {
158
+ type: Object,
159
+ default: () => ({}),
160
160
  },
161
161
 
162
162
  /**
@@ -169,9 +169,11 @@ const props = defineProps({
169
169
  });
170
170
 
171
171
  const {
172
+ moneyAttrs,
172
173
  sumAttrs,
174
+ mathSignAttrs,
175
+ integerAttrs,
173
176
  pennyAttrs,
174
- moneyAttrs,
175
177
  slotLeftAttrs,
176
178
  symbolAttrs,
177
179
  slotRightAttrs,
@@ -186,10 +188,10 @@ const currencySymbolPosition = computed(() => {
186
188
  });
187
189
 
188
190
  const currencySpace = computed(() => {
189
- return props.divided ? " " : "";
191
+ return props.symbolDivided ? " " : "";
190
192
  });
191
193
 
192
- const typeSymbol = computed(() => {
194
+ const mathSign = computed(() => {
193
195
  let type = "";
194
196
 
195
197
  if (props.sign === MONEY_SIGN_TYPE.positive) type = "+";
@@ -44,6 +44,7 @@ export default /*tw*/ {
44
44
  defaults: {
45
45
  xPosition: "center",
46
46
  yPosition: "top",
47
+ html: false,
47
48
  /* icons */
48
49
  successIcon: "check_circle",
49
50
  warningIcon: "warning",