vueless 0.0.280 → 0.0.282

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 (68) hide show
  1. package/package.json +1 -1
  2. package/service.platform/index.js +45 -0
  3. package/service.ui/index.js +135 -233
  4. package/ui.button/configs/default.config.js +1 -1
  5. package/ui.button/index.vue +12 -12
  6. package/ui.button-link/configs/default.config.js +1 -1
  7. package/ui.button-link/index.vue +17 -17
  8. package/ui.button-toggle/index.vue +10 -10
  9. package/ui.button-toggle-item/index.vue +9 -9
  10. package/ui.container-accordion/index.vue +2 -2
  11. package/ui.container-card/index.vue +3 -3
  12. package/ui.container-col/index.vue +6 -6
  13. package/ui.container-divider/index.vue +12 -12
  14. package/ui.container-group/index.vue +4 -4
  15. package/ui.container-modal/index.vue +9 -9
  16. package/ui.container-modal-confirm/index.stories.js +5 -3
  17. package/ui.container-modal-confirm/index.vue +5 -5
  18. package/ui.container-page/composables/attrs.composable.js +2 -1
  19. package/ui.container-page/index.vue +6 -6
  20. package/ui.container-row/index.vue +7 -7
  21. package/ui.data-list/index.vue +7 -7
  22. package/ui.data-table/index.vue +5 -5
  23. package/ui.dropdown-badge/index.vue +10 -10
  24. package/ui.dropdown-button/index.vue +13 -13
  25. package/ui.dropdown-link/index.vue +12 -12
  26. package/ui.dropdown-list/index.vue +7 -6
  27. package/ui.form-calendar/index.vue +7 -7
  28. package/ui.form-checkbox/index.vue +6 -6
  29. package/ui.form-checkbox-group/index.vue +4 -4
  30. package/ui.form-checkbox-multi-state/index.vue +5 -5
  31. package/ui.form-color-picker/index.vue +5 -5
  32. package/ui.form-date-picker/index.vue +11 -11
  33. package/ui.form-date-picker-range/index.vue +9 -9
  34. package/ui.form-input/configs/default.config.js +1 -1
  35. package/ui.form-input/index.vue +7 -8
  36. package/ui.form-input-file/index.vue +7 -7
  37. package/ui.form-input-money/index.vue +12 -12
  38. package/ui.form-input-number/index.vue +2 -2
  39. package/ui.form-input-rating/index.vue +6 -6
  40. package/ui.form-input-search/index.vue +6 -6
  41. package/ui.form-label/index.vue +5 -5
  42. package/ui.form-radio/index.vue +6 -6
  43. package/ui.form-radio-group/index.vue +4 -4
  44. package/ui.form-select/configs/default.config.js +1 -1
  45. package/ui.form-select/index.vue +14 -13
  46. package/ui.form-switch/index.vue +7 -7
  47. package/ui.form-textarea/configs/default.config.js +1 -1
  48. package/ui.form-textarea/index.vue +8 -8
  49. package/ui.image-avatar/index.vue +6 -6
  50. package/ui.image-icon/index.vue +6 -6
  51. package/ui.loader/index.vue +4 -4
  52. package/ui.loader-rendering/index.vue +2 -2
  53. package/ui.loader-top/index.vue +3 -2
  54. package/ui.navigation-pagination/index.vue +11 -11
  55. package/ui.navigation-progress/index.vue +5 -5
  56. package/ui.navigation-tab/index.vue +3 -3
  57. package/ui.navigation-tabs/index.vue +3 -3
  58. package/ui.other-dot/index.vue +3 -3
  59. package/ui.text-alert/index.vue +7 -7
  60. package/ui.text-badge/index.vue +5 -5
  61. package/ui.text-block/index.vue +4 -4
  62. package/ui.text-empty/index.vue +2 -2
  63. package/ui.text-file/index.vue +2 -2
  64. package/ui.text-files/index.vue +3 -3
  65. package/ui.text-header/index.vue +7 -7
  66. package/ui.text-money/index.vue +12 -12
  67. package/ui.text-notify/index.vue +4 -4
  68. package/web-types.json +2 -2
@@ -33,7 +33,7 @@
33
33
  import { provide, ref, watch } from "vue";
34
34
  import { isEqual } from "lodash-es";
35
35
 
36
- import UIService from "../service.ui";
36
+ import { getDefault } from "../service.ui";
37
37
 
38
38
  import ULabel from "../ui.form-label";
39
39
  import UCheckbox from "../ui.form-checkbox";
@@ -92,7 +92,7 @@ const props = defineProps({
92
92
  */
93
93
  size: {
94
94
  type: String,
95
- default: UIService.get(defaultConfig, UCheckboxGroup).default.size,
95
+ default: getDefault(defaultConfig, UCheckboxGroup).size,
96
96
  },
97
97
 
98
98
  /**
@@ -101,7 +101,7 @@ const props = defineProps({
101
101
  */
102
102
  color: {
103
103
  type: String,
104
- default: UIService.get(defaultConfig, UCheckboxGroup).default.color,
104
+ default: getDefault(defaultConfig, UCheckboxGroup).color,
105
105
  },
106
106
 
107
107
  /**
@@ -117,7 +117,7 @@ const props = defineProps({
117
117
  */
118
118
  disabled: {
119
119
  type: Boolean,
120
- default: UIService.get(defaultConfig, UCheckboxGroup).default.disabled,
120
+ default: getDefault(defaultConfig, UCheckboxGroup).disabled,
121
121
  },
122
122
 
123
123
  /**
@@ -15,7 +15,7 @@
15
15
  <script setup>
16
16
  import { computed, ref, watchEffect } from "vue";
17
17
 
18
- import UIService from "../service.ui";
18
+ import { getDefault } from "../service.ui";
19
19
  import UCheckbox from "../ui.form-checkbox";
20
20
 
21
21
  import defaultConfig from "./configs/default.config";
@@ -56,7 +56,7 @@ const props = defineProps({
56
56
  */
57
57
  size: {
58
58
  type: String,
59
- default: UIService.get(defaultConfig, UCheckboxMultiState).default.size,
59
+ default: getDefault(defaultConfig, UCheckboxMultiState).size,
60
60
  },
61
61
 
62
62
  /**
@@ -65,7 +65,7 @@ const props = defineProps({
65
65
  */
66
66
  color: {
67
67
  type: String,
68
- default: UIService.get(defaultConfig, UCheckboxMultiState).default.color,
68
+ default: getDefault(defaultConfig, UCheckboxMultiState).color,
69
69
  },
70
70
 
71
71
  /**
@@ -74,7 +74,7 @@ const props = defineProps({
74
74
  */
75
75
  placement: {
76
76
  type: String,
77
- default: UIService.get(defaultConfig, UCheckboxMultiState).default.placement,
77
+ default: getDefault(defaultConfig, UCheckboxMultiState).placement,
78
78
  },
79
79
 
80
80
  /**
@@ -82,7 +82,7 @@ const props = defineProps({
82
82
  */
83
83
  disabled: {
84
84
  type: Boolean,
85
- default: UIService.get(defaultConfig, UCheckboxMultiState).default.disabled,
85
+ default: getDefault(defaultConfig, UCheckboxMultiState).disabled,
86
86
  },
87
87
 
88
88
  /**
@@ -56,7 +56,7 @@ import { computed } from "vue";
56
56
  import UIcon from "../ui.image-icon";
57
57
  import URadio from "../ui.form-radio";
58
58
  import ULabel from "../ui.form-label";
59
- import UIService, { getRandomId } from "../service.ui";
59
+ import { getRandomId, getDefault } from "../service.ui";
60
60
 
61
61
  import { UColorPicker } from "./constants";
62
62
  import defaultConfig from "./configs/default.config";
@@ -79,7 +79,7 @@ const props = defineProps({
79
79
  */
80
80
  name: {
81
81
  type: String,
82
- default: UIService.get(defaultConfig, UColorPicker).default.name,
82
+ default: getDefault(defaultConfig, UColorPicker).name,
83
83
  },
84
84
 
85
85
  /**
@@ -112,7 +112,7 @@ const props = defineProps({
112
112
  */
113
113
  size: {
114
114
  type: String,
115
- default: UIService.get(defaultConfig, UColorPicker).default.size,
115
+ default: getDefault(defaultConfig, UColorPicker).size,
116
116
  },
117
117
 
118
118
  /**
@@ -120,7 +120,7 @@ const props = defineProps({
120
120
  */
121
121
  colorOptions: {
122
122
  type: Array,
123
- default: () => UIService.get(defaultConfig, UColorPicker).default.colorOptions,
123
+ default: () => getDefault(defaultConfig, UColorPicker).colorOptions,
124
124
  },
125
125
 
126
126
  /**
@@ -128,7 +128,7 @@ const props = defineProps({
128
128
  */
129
129
  disabled: {
130
130
  type: Boolean,
131
- default: UIService.get(defaultConfig, UColorPicker).default.disabled,
131
+ default: getDefault(defaultConfig, UColorPicker).disabled,
132
132
  },
133
133
 
134
134
  /**
@@ -63,7 +63,7 @@ import UInput from "../ui.form-input";
63
63
  import UCalendar from "../ui.form-calendar";
64
64
  import { VIEW } from "../ui.form-calendar/constants";
65
65
 
66
- import UIService, { getRandomId } from "../service.ui";
66
+ import { getRandomId, getDefault } from "../service.ui";
67
67
 
68
68
  import { addDays, isSameDay } from "../ui.form-calendar/services/date.service";
69
69
 
@@ -92,7 +92,7 @@ const props = defineProps({
92
92
  */
93
93
  labelAlign: {
94
94
  type: String,
95
- default: UIService.get(defaultConfig, UDatePicker).default.labelAlign,
95
+ default: getDefault(defaultConfig, UDatePicker).labelAlign,
96
96
  },
97
97
 
98
98
  /**
@@ -117,7 +117,7 @@ const props = defineProps({
117
117
  */
118
118
  openDirectionX: {
119
119
  type: String,
120
- default: UIService.get(defaultConfig, UDatePicker).default.openDirectionX,
120
+ default: getDefault(defaultConfig, UDatePicker).openDirectionX,
121
121
  },
122
122
 
123
123
  /**
@@ -126,7 +126,7 @@ const props = defineProps({
126
126
  */
127
127
  openDirectionY: {
128
128
  type: String,
129
- default: UIService.get(defaultConfig, UDatePicker).default.openDirectionY,
129
+ default: getDefault(defaultConfig, UDatePicker).openDirectionY,
130
130
  },
131
131
 
132
132
  /**
@@ -134,7 +134,7 @@ const props = defineProps({
134
134
  */
135
135
  minDate: {
136
136
  type: [String, Date],
137
- default: UIService.get(defaultConfig, UDatePicker).default.minDate,
137
+ default: getDefault(defaultConfig, UDatePicker).minDate,
138
138
  },
139
139
 
140
140
  /**
@@ -142,7 +142,7 @@ const props = defineProps({
142
142
  */
143
143
  maxDate: {
144
144
  type: [String, Date],
145
- default: UIService.get(defaultConfig, UDatePicker).default.maxDate,
145
+ default: getDefault(defaultConfig, UDatePicker).maxDate,
146
146
  },
147
147
 
148
148
  /**
@@ -150,7 +150,7 @@ const props = defineProps({
150
150
  */
151
151
  disabled: {
152
152
  type: Boolean,
153
- default: UIService.get(defaultConfig, UDatePicker).default.disabled,
153
+ default: getDefault(defaultConfig, UDatePicker).disabled,
154
154
  },
155
155
 
156
156
  /**
@@ -158,7 +158,7 @@ const props = defineProps({
158
158
  */
159
159
  timepicker: {
160
160
  type: Boolean,
161
- default: UIService.get(defaultConfig, UDatePicker).default.timepicker,
161
+ default: getDefault(defaultConfig, UDatePicker).timepicker,
162
162
  },
163
163
 
164
164
  /**
@@ -183,7 +183,7 @@ const props = defineProps({
183
183
  */
184
184
  size: {
185
185
  type: String,
186
- default: UIService.get(defaultConfig, UDatePicker).default.size,
186
+ default: getDefault(defaultConfig, UDatePicker).size,
187
187
  },
188
188
 
189
189
  /**
@@ -191,7 +191,7 @@ const props = defineProps({
191
191
  */
192
192
  dateFormat: {
193
193
  type: String,
194
- default: UIService.get(defaultConfig, UDatePicker).default.dateFormat,
194
+ default: getDefault(defaultConfig, UDatePicker).dateFormat,
195
195
  },
196
196
 
197
197
  /**
@@ -199,7 +199,7 @@ const props = defineProps({
199
199
  */
200
200
  userFormat: {
201
201
  type: String,
202
- default: UIService.get(defaultConfig, UDatePicker).default.userFormat,
202
+ default: getDefault(defaultConfig, UDatePicker).userFormat,
203
203
  },
204
204
 
205
205
  /**
@@ -219,7 +219,7 @@ import { LOCALE_TYPE } from "../ui.form-calendar/constants";
219
219
 
220
220
  import vClickOutside from "../directive.clickOutside";
221
221
 
222
- import UIService, { getRandomId } from "../service.ui";
222
+ import { getRandomId, getDefault } from "../service.ui";
223
223
 
224
224
  import {
225
225
  addDays,
@@ -303,7 +303,7 @@ const props = defineProps({
303
303
  */
304
304
  openDirectionX: {
305
305
  type: String,
306
- default: UIService.get(defaultConfig, UDatePickerRange).default.openDirectionX,
306
+ default: getDefault(defaultConfig, UDatePickerRange).openDirectionX,
307
307
  },
308
308
 
309
309
  /**
@@ -312,7 +312,7 @@ const props = defineProps({
312
312
  */
313
313
  openDirectionY: {
314
314
  type: String,
315
- default: UIService.get(defaultConfig, UDatePickerRange).default.openDirectionY,
315
+ default: getDefault(defaultConfig, UDatePickerRange).openDirectionY,
316
316
  },
317
317
 
318
318
  /**
@@ -321,7 +321,7 @@ const props = defineProps({
321
321
  */
322
322
  variant: {
323
323
  type: String,
324
- default: UIService.get(defaultConfig, UDatePickerRange).default.variant,
324
+ default: getDefault(defaultConfig, UDatePickerRange).variant,
325
325
  },
326
326
 
327
327
  /**
@@ -329,7 +329,7 @@ const props = defineProps({
329
329
  */
330
330
  minDate: {
331
331
  type: [String, Date],
332
- default: UIService.get(defaultConfig, UDatePickerRange).default.minDate,
332
+ default: getDefault(defaultConfig, UDatePickerRange).minDate,
333
333
  },
334
334
 
335
335
  /**
@@ -337,7 +337,7 @@ const props = defineProps({
337
337
  */
338
338
  maxDate: {
339
339
  type: [String, Date],
340
- default: UIService.get(defaultConfig, UDatePickerRange).default.maxDate,
340
+ default: getDefault(defaultConfig, UDatePickerRange).maxDate,
341
341
  },
342
342
 
343
343
  /**
@@ -346,7 +346,7 @@ const props = defineProps({
346
346
  */
347
347
  size: {
348
348
  type: String,
349
- default: UIService.get(defaultConfig, UDatePickerRange).default.size,
349
+ default: getDefault(defaultConfig, UDatePickerRange).size,
350
350
  },
351
351
 
352
352
  /**
@@ -386,7 +386,7 @@ const props = defineProps({
386
386
  */
387
387
  disabled: {
388
388
  type: Boolean,
389
- default: UIService.get(defaultConfig, UDatePickerRange).default.disabled,
389
+ default: getDefault(defaultConfig, UDatePickerRange).disabled,
390
390
  },
391
391
 
392
392
  /**
@@ -394,7 +394,7 @@ const props = defineProps({
394
394
  */
395
395
  dateFormat: {
396
396
  type: String,
397
- default: UIService.get(defaultConfig, UDatePickerRange).default.dateFormat,
397
+ default: getDefault(defaultConfig, UDatePickerRange).dateFormat,
398
398
  },
399
399
 
400
400
  /**
@@ -24,7 +24,7 @@ export default /*tw*/ {
24
24
  `,
25
25
  },
26
26
  disabled: {
27
- true: "pointer-events-none",
27
+ true: "focus-within:ring-0 focus-within:ring-offset-0 pointer-events-none",
28
28
  },
29
29
  },
30
30
  },
@@ -85,7 +85,7 @@
85
85
  </template>
86
86
 
87
87
  <script>
88
- import { getRandomId } from "../service.ui";
88
+ import { getRandomId, getDefault } from "../service.ui";
89
89
 
90
90
  const VALIDATION_RULES_REG_EX = {
91
91
  integer: /\d*/g,
@@ -101,7 +101,6 @@ import { ref, computed, onMounted, useSlots } from "vue";
101
101
 
102
102
  import UIcon from "../ui.image-icon";
103
103
  import ULabel from "../ui.form-label";
104
- import UIService from "../service.ui";
105
104
 
106
105
  import defaultConfig from "./configs/default.config";
107
106
  import { UInput } from "./constants";
@@ -173,7 +172,7 @@ const props = defineProps({
173
172
  */
174
173
  labelAlign: {
175
174
  type: String,
176
- default: UIService.get(defaultConfig, UInput).default.labelAlign,
175
+ default: getDefault(defaultConfig, UInput).labelAlign,
177
176
  },
178
177
 
179
178
  /**
@@ -206,7 +205,7 @@ const props = defineProps({
206
205
  */
207
206
  size: {
208
207
  type: String,
209
- default: UIService.get(defaultConfig, UInput).default.size,
208
+ default: getDefault(defaultConfig, UInput).size,
210
209
  },
211
210
 
212
211
  /**
@@ -259,7 +258,7 @@ const props = defineProps({
259
258
  */
260
259
  inputmode: {
261
260
  type: String,
262
- default: UIService.get(defaultConfig, UInput).default.inputmode,
261
+ default: getDefault(defaultConfig, UInput).inputmode,
263
262
  },
264
263
 
265
264
  /**
@@ -267,7 +266,7 @@ const props = defineProps({
267
266
  */
268
267
  readonly: {
269
268
  type: Boolean,
270
- default: UIService.get(defaultConfig, UInput).default.readonly,
269
+ default: getDefault(defaultConfig, UInput).readonly,
271
270
  },
272
271
 
273
272
  /**
@@ -275,7 +274,7 @@ const props = defineProps({
275
274
  */
276
275
  disabled: {
277
276
  type: Boolean,
278
- default: UIService.get(defaultConfig, UInput).default.disabled,
277
+ default: getDefault(defaultConfig, UInput).disabled,
279
278
  },
280
279
 
281
280
  /**
@@ -283,7 +282,7 @@ const props = defineProps({
283
282
  */
284
283
  noAutocomplete: {
285
284
  type: Boolean,
286
- default: UIService.get(defaultConfig, UInput).default.noAutocomplete,
285
+ default: getDefault(defaultConfig, UInput).noAutocomplete,
287
286
  },
288
287
 
289
288
  /**
@@ -100,7 +100,7 @@ import ULabel from "../ui.form-label";
100
100
  import UButton from "../ui.button";
101
101
  import UFiles from "../ui.text-files";
102
102
 
103
- import UIService, { getRandomId } from "../service.ui";
103
+ import { getRandomId, getDefault } from "../service.ui";
104
104
  import { getFileMbSize } from "./services/fileForm.service";
105
105
 
106
106
  import useAttrs from "./composables/attrs.composable";
@@ -135,7 +135,7 @@ const props = defineProps({
135
135
  */
136
136
  labelAlign: {
137
137
  type: String,
138
- default: UIService.get(defaultConfig, UInputFile).default.labelAlign,
138
+ default: getDefault(defaultConfig, UInputFile).labelAlign,
139
139
  },
140
140
 
141
141
  modelValue: {
@@ -148,7 +148,7 @@ const props = defineProps({
148
148
  */
149
149
  multiple: {
150
150
  type: Boolean,
151
- default: UIService.get(defaultConfig, UInputFile).default.multiple,
151
+ default: getDefault(defaultConfig, UInputFile).multiple,
152
152
  },
153
153
 
154
154
  /**
@@ -156,7 +156,7 @@ const props = defineProps({
156
156
  */
157
157
  maxFileSize: {
158
158
  type: Number,
159
- default: UIService.get(defaultConfig, UInputFile).default.maxFileSize,
159
+ default: getDefault(defaultConfig, UInputFile).maxFileSize,
160
160
  },
161
161
 
162
162
  /**
@@ -164,7 +164,7 @@ const props = defineProps({
164
164
  */
165
165
  allowedFileTypes: {
166
166
  type: Array,
167
- default: () => UIService.get(defaultConfig, UInputFile).default.allowedFileTypes,
167
+ default: () => getDefault(defaultConfig, UInputFile).allowedFileTypes,
168
168
  },
169
169
 
170
170
  /**
@@ -173,7 +173,7 @@ const props = defineProps({
173
173
  */
174
174
  size: {
175
175
  type: String,
176
- default: UIService.get(defaultConfig, UInputFile).default.size,
176
+ default: getDefault(defaultConfig, UInputFile).size,
177
177
  },
178
178
 
179
179
  /**
@@ -189,7 +189,7 @@ const props = defineProps({
189
189
  */
190
190
  disabled: {
191
191
  type: Boolean,
192
- default: UIService.get(defaultConfig, UInputFile).default.disabled,
192
+ default: getDefault(defaultConfig, UInputFile).disabled,
193
193
  },
194
194
 
195
195
  /**
@@ -37,7 +37,7 @@
37
37
  <script setup>
38
38
  import { computed, ref, watch, onMounted, nextTick } from "vue";
39
39
 
40
- import UIService, { getRandomId } from "../service.ui";
40
+ import { getRandomId, getDefault } from "../service.ui";
41
41
 
42
42
  import UInput from "../ui.form-input";
43
43
  import { SYMBOL_MINUS } from "../ui.text-money/constants";
@@ -72,7 +72,7 @@ const props = defineProps({
72
72
  */
73
73
  labelAlign: {
74
74
  type: String,
75
- default: UIService.get(defaultConfig, UInputMoney).default.labelAlign,
75
+ default: getDefault(defaultConfig, UInputMoney).labelAlign,
76
76
  },
77
77
 
78
78
  /**
@@ -80,7 +80,7 @@ const props = defineProps({
80
80
  */
81
81
  symbol: {
82
82
  type: String,
83
- default: UIService.get(defaultConfig, UInputMoney).default.symbol,
83
+ default: getDefault(defaultConfig, UInputMoney).symbol,
84
84
  },
85
85
 
86
86
  /**
@@ -113,7 +113,7 @@ const props = defineProps({
113
113
  */
114
114
  size: {
115
115
  type: String,
116
- default: UIService.get(defaultConfig, UInputMoney).default.size,
116
+ default: getDefault(defaultConfig, UInputMoney).size,
117
117
  },
118
118
 
119
119
  /**
@@ -121,7 +121,7 @@ const props = defineProps({
121
121
  */
122
122
  decimalScale: {
123
123
  type: Number,
124
- default: UIService.get(defaultConfig, UInputMoney).default.decimalScale,
124
+ default: getDefault(defaultConfig, UInputMoney).decimalScale,
125
125
  },
126
126
 
127
127
  /**
@@ -129,7 +129,7 @@ const props = defineProps({
129
129
  */
130
130
  decimalSeparator: {
131
131
  type: String,
132
- default: UIService.get(defaultConfig, UInputMoney).default.decimalSeparator,
132
+ default: getDefault(defaultConfig, UInputMoney).decimalSeparator,
133
133
  },
134
134
 
135
135
  /**
@@ -137,7 +137,7 @@ const props = defineProps({
137
137
  */
138
138
  thousandsSeparator: {
139
139
  type: String,
140
- default: UIService.get(defaultConfig, UInputMoney).default.thousandsSeparator,
140
+ default: getDefault(defaultConfig, UInputMoney).thousandsSeparator,
141
141
  },
142
142
 
143
143
  /**
@@ -145,7 +145,7 @@ const props = defineProps({
145
145
  */
146
146
  positiveOnly: {
147
147
  type: Boolean,
148
- default: UIService.get(defaultConfig, UInputMoney).default.positiveOnly,
148
+ default: getDefault(defaultConfig, UInputMoney).positiveOnly,
149
149
  },
150
150
 
151
151
  /**
@@ -153,7 +153,7 @@ const props = defineProps({
153
153
  */
154
154
  rawValuePrefix: {
155
155
  type: Boolean,
156
- default: UIService.get(defaultConfig, UInputMoney).default.rawValuePrefix,
156
+ default: getDefault(defaultConfig, UInputMoney).rawValuePrefix,
157
157
  },
158
158
 
159
159
  /**
@@ -161,7 +161,7 @@ const props = defineProps({
161
161
  */
162
162
  minus: {
163
163
  type: Boolean,
164
- default: UIService.get(defaultConfig, UInputMoney).default.minus,
164
+ default: getDefault(defaultConfig, UInputMoney).minus,
165
165
  },
166
166
 
167
167
  /**
@@ -169,7 +169,7 @@ const props = defineProps({
169
169
  */
170
170
  readonly: {
171
171
  type: Boolean,
172
- default: UIService.get(defaultConfig, UInputMoney).default.readonly,
172
+ default: getDefault(defaultConfig, UInputMoney).readonly,
173
173
  },
174
174
 
175
175
  /**
@@ -177,7 +177,7 @@ const props = defineProps({
177
177
  */
178
178
  disabled: {
179
179
  type: Boolean,
180
- default: UIService.get(defaultConfig, UInputMoney).default.disabled,
180
+ default: getDefault(defaultConfig, UInputMoney).disabled,
181
181
  },
182
182
 
183
183
  /**
@@ -52,7 +52,7 @@ import { computed } from "vue";
52
52
 
53
53
  import UIcon from "../ui.image-icon";
54
54
  import UButton from "../ui.button";
55
- import UIService from "../service.ui";
55
+ import { getDefault } from "../service.ui";
56
56
 
57
57
  import defaultConfig from "./configs/default.config";
58
58
  import { UInputNumber } from "./constants";
@@ -108,7 +108,7 @@ const props = defineProps({
108
108
  */
109
109
  size: {
110
110
  type: String,
111
- default: UIService.get(defaultConfig, UInputNumber).default.size,
111
+ default: getDefault(defaultConfig, UInputNumber).size,
112
112
  },
113
113
 
114
114
  /**
@@ -54,7 +54,7 @@ import { computed, ref } from "vue";
54
54
 
55
55
  import UIcon from "../ui.image-icon";
56
56
  import ULabel from "../ui.form-label";
57
- import UIService from "../service.ui";
57
+ import { getDefault } from "../service.ui";
58
58
 
59
59
  import { UInputRating } from "./constants";
60
60
  import defaultConfig from "./configs/default.config";
@@ -77,7 +77,7 @@ const props = defineProps({
77
77
  */
78
78
  stars: {
79
79
  type: Number,
80
- default: UIService.get(defaultConfig, UInputRating).default.stars,
80
+ default: getDefault(defaultConfig, UInputRating).stars,
81
81
  },
82
82
 
83
83
  /**
@@ -86,7 +86,7 @@ const props = defineProps({
86
86
  */
87
87
  size: {
88
88
  type: String,
89
- default: UIService.get(defaultConfig, UInputRating).default.size,
89
+ default: getDefault(defaultConfig, UInputRating).size,
90
90
  },
91
91
 
92
92
  /**
@@ -103,7 +103,7 @@ const props = defineProps({
103
103
  */
104
104
  labelAlign: {
105
105
  type: String,
106
- default: UIService.get(defaultConfig, UInputRating).default.labelAlign,
106
+ default: getDefault(defaultConfig, UInputRating).labelAlign,
107
107
  },
108
108
 
109
109
  /**
@@ -135,7 +135,7 @@ const props = defineProps({
135
135
  */
136
136
  counter: {
137
137
  type: Boolean,
138
- default: UIService.get(defaultConfig, UInputRating).default.counter,
138
+ default: getDefault(defaultConfig, UInputRating).counter,
139
139
  },
140
140
 
141
141
  /**
@@ -143,7 +143,7 @@ const props = defineProps({
143
143
  */
144
144
  selectable: {
145
145
  type: Boolean,
146
- default: UIService.get(defaultConfig, UInputRating).default.selectable,
146
+ default: getDefault(defaultConfig, UInputRating).selectable,
147
147
  },
148
148
 
149
149
  /**
@@ -82,7 +82,7 @@ import { computed, ref } from "vue";
82
82
  import UIcon from "../ui.image-icon";
83
83
  import UInput from "../ui.form-input";
84
84
  import UButton from "../ui.button";
85
- import UIService, { getRandomId } from "../service.ui";
85
+ import { getRandomId, getDefault } from "../service.ui";
86
86
  import { debounce as debounceMethod } from "../service.helper";
87
87
 
88
88
  import { UInputSearch } from "./constants";
@@ -107,7 +107,7 @@ const props = defineProps({
107
107
  */
108
108
  size: {
109
109
  type: String,
110
- default: UIService.get(defaultConfig, UInputSearch).default.size,
110
+ default: getDefault(defaultConfig, UInputSearch).size,
111
111
  },
112
112
 
113
113
  /**
@@ -124,7 +124,7 @@ const props = defineProps({
124
124
  */
125
125
  labelAlign: {
126
126
  type: String,
127
- default: UIService.get(defaultConfig, UInputSearch).default.labelAlign,
127
+ default: getDefault(defaultConfig, UInputSearch).labelAlign,
128
128
  },
129
129
 
130
130
  /**
@@ -164,7 +164,7 @@ const props = defineProps({
164
164
  */
165
165
  readonly: {
166
166
  type: Boolean,
167
- default: UIService.get(defaultConfig, UInputSearch).default.readonly,
167
+ default: getDefault(defaultConfig, UInputSearch).readonly,
168
168
  },
169
169
 
170
170
  /**
@@ -172,7 +172,7 @@ const props = defineProps({
172
172
  */
173
173
  disabled: {
174
174
  type: Boolean,
175
- default: UIService.get(defaultConfig, UInputSearch).default.disabled,
175
+ default: getDefault(defaultConfig, UInputSearch).disabled,
176
176
  },
177
177
 
178
178
  /**
@@ -186,7 +186,7 @@ const props = defineProps({
186
186
 
187
187
  debounce: {
188
188
  type: Number,
189
- default: UIService.get(defaultConfig, UInputSearch).default.debounce,
189
+ default: getDefault(defaultConfig, UInputSearch).debounce,
190
190
  },
191
191
 
192
192
  /**