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
@@ -63,7 +63,7 @@
63
63
  <script setup>
64
64
  import { computed, ref } from "vue";
65
65
 
66
- import UIService from "../service.ui";
66
+ import { getDefault } from "../service.ui";
67
67
 
68
68
  import defaultConfig from "./configs/default.config";
69
69
  import { ULabel, PLACEMENT } from "./constants";
@@ -94,7 +94,7 @@ const props = defineProps({
94
94
  */
95
95
  size: {
96
96
  type: String,
97
- default: UIService.get(defaultConfig, ULabel).default.size,
97
+ default: getDefault(defaultConfig, ULabel).size,
98
98
  },
99
99
 
100
100
  /**
@@ -103,7 +103,7 @@ const props = defineProps({
103
103
  */
104
104
  align: {
105
105
  type: String,
106
- default: UIService.get(defaultConfig, ULabel).default.align,
106
+ default: getDefault(defaultConfig, ULabel).align,
107
107
  },
108
108
 
109
109
  /**
@@ -111,7 +111,7 @@ const props = defineProps({
111
111
  */
112
112
  centred: {
113
113
  type: Boolean,
114
- default: UIService.get(defaultConfig, ULabel).default.centred,
114
+ default: getDefault(defaultConfig, ULabel).centred,
115
115
  },
116
116
 
117
117
  /**
@@ -144,7 +144,7 @@ const props = defineProps({
144
144
  */
145
145
  disabled: {
146
146
  type: Boolean,
147
- default: UIService.get(defaultConfig, ULabel).default.disabled,
147
+ default: getDefault(defaultConfig, ULabel).disabled,
148
148
  },
149
149
 
150
150
  /**
@@ -32,7 +32,7 @@
32
32
  import { computed, inject, onMounted, ref, watchEffect, toValue } from "vue";
33
33
 
34
34
  import ULabel from "../ui.form-label";
35
- import UIService, { getRandomId } from "../service.ui";
35
+ import { getRandomId, getDefault } from "../service.ui";
36
36
 
37
37
  import defaultConfig from "./configs/default.config";
38
38
  import useAttrs from "./composables/attrs.composable";
@@ -78,7 +78,7 @@ const props = defineProps({
78
78
  */
79
79
  labelAlign: {
80
80
  type: String,
81
- default: UIService.get(defaultConfig, URadio).default.labelAlign,
81
+ default: getDefault(defaultConfig, URadio).labelAlign,
82
82
  },
83
83
 
84
84
  /**
@@ -111,7 +111,7 @@ const props = defineProps({
111
111
  */
112
112
  size: {
113
113
  type: String,
114
- default: UIService.get(defaultConfig, URadio).default.size,
114
+ default: getDefault(defaultConfig, URadio).size,
115
115
  },
116
116
 
117
117
  /**
@@ -120,7 +120,7 @@ const props = defineProps({
120
120
  */
121
121
  color: {
122
122
  type: String,
123
- default: UIService.get(defaultConfig, URadio).default.color,
123
+ default: getDefault(defaultConfig, URadio).color,
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, URadio).default.disabled,
131
+ default: getDefault(defaultConfig, URadio).disabled,
132
132
  },
133
133
 
134
134
  /**
@@ -136,7 +136,7 @@ const props = defineProps({
136
136
  */
137
137
  checked: {
138
138
  type: Boolean,
139
- default: UIService.get(defaultConfig, URadio).default.checked,
139
+ default: getDefault(defaultConfig, URadio).checked,
140
140
  },
141
141
 
142
142
  /**
@@ -32,7 +32,7 @@ import { computed, provide } from "vue";
32
32
 
33
33
  import ULabel from "../ui.form-label";
34
34
  import URadio from "../ui.form-radio";
35
- import UIService from "../service.ui";
35
+ import { getDefault } from "../service.ui";
36
36
 
37
37
  import defaultConfig from "./configs/default.config";
38
38
  import { URadioGroup } from "./constants";
@@ -88,7 +88,7 @@ const props = defineProps({
88
88
  */
89
89
  size: {
90
90
  type: String,
91
- default: UIService.get(defaultConfig, URadioGroup).default.size,
91
+ default: getDefault(defaultConfig, URadioGroup).size,
92
92
  },
93
93
 
94
94
  /**
@@ -97,7 +97,7 @@ const props = defineProps({
97
97
  */
98
98
  color: {
99
99
  type: String,
100
- default: UIService.get(defaultConfig, URadioGroup).default.color,
100
+ default: getDefault(defaultConfig, URadioGroup).color,
101
101
  },
102
102
 
103
103
  /**
@@ -113,7 +113,7 @@ const props = defineProps({
113
113
  */
114
114
  disabled: {
115
115
  type: Boolean,
116
- default: UIService.get(defaultConfig, URadioGroup).default.disabled,
116
+ default: getDefault(defaultConfig, URadioGroup).disabled,
117
117
  },
118
118
 
119
119
  /**
@@ -20,7 +20,7 @@ export default /*tw*/ {
20
20
  disabled: {
21
21
  true: `
22
22
  border-gray-100 bg-gray-100 text-gray-900 hover:border-gray-100
23
- focus-within:border-gray-100 focus-within:ring-0
23
+ focus-within:border-gray-100 focus-within:ring-0 focus-within:ring-offset-0
24
24
  `,
25
25
  },
26
26
  },
@@ -280,7 +280,8 @@ import { debounce, merge } from "lodash-es";
280
280
  import UIcon from "../ui.image-icon";
281
281
  import ULabel from "../ui.form-label";
282
282
  import UDropdownList from "../ui.dropdown-list";
283
- import UIService, { getRandomId, isMac } from "../service.ui";
283
+ import { getRandomId, getDefault } from "../service.ui";
284
+ import { isMac } from "../service.platform";
284
285
 
285
286
  import SelectService from "./services/select.service";
286
287
  import useAttrs from "./composables/attrs.composable";
@@ -323,7 +324,7 @@ const props = defineProps({
323
324
  */
324
325
  labelAlign: {
325
326
  type: String,
326
- default: UIService.get(defaultConfig, USelect).default.labelAlign,
327
+ default: getDefault(defaultConfig, USelect).labelAlign,
327
328
  },
328
329
 
329
330
  /**
@@ -356,7 +357,7 @@ const props = defineProps({
356
357
  */
357
358
  size: {
358
359
  type: String,
359
- default: UIService.get(defaultConfig, USelect).default.size,
360
+ default: getDefault(defaultConfig, USelect).size,
360
361
  },
361
362
 
362
363
  /**
@@ -381,7 +382,7 @@ const props = defineProps({
381
382
  */
382
383
  openDirection: {
383
384
  type: String,
384
- default: UIService.get(defaultConfig, USelect).default.openDirection,
385
+ default: getDefault(defaultConfig, USelect).openDirection,
385
386
  },
386
387
 
387
388
  /**
@@ -389,7 +390,7 @@ const props = defineProps({
389
390
  */
390
391
  labelKey: {
391
392
  type: String,
392
- default: UIService.get(defaultConfig, USelect).default.labelKey,
393
+ default: getDefault(defaultConfig, USelect).labelKey,
393
394
  },
394
395
 
395
396
  /**
@@ -397,7 +398,7 @@ const props = defineProps({
397
398
  */
398
399
  valueKey: {
399
400
  type: String,
400
- default: UIService.get(defaultConfig, USelect).default.valueKey,
401
+ default: getDefault(defaultConfig, USelect).valueKey,
401
402
  },
402
403
 
403
404
  /**
@@ -421,7 +422,7 @@ const props = defineProps({
421
422
  */
422
423
  optionsLimit: {
423
424
  type: Number,
424
- default: UIService.get(defaultConfig, USelect).default.optionsLimit,
425
+ default: getDefault(defaultConfig, USelect).optionsLimit,
425
426
  },
426
427
 
427
428
  /**
@@ -429,7 +430,7 @@ const props = defineProps({
429
430
  */
430
431
  visibleOptions: {
431
432
  type: Number,
432
- default: UIService.get(defaultConfig, USelect).default.visibleOptions,
433
+ default: getDefault(defaultConfig, USelect).visibleOptions,
433
434
  },
434
435
 
435
436
  /**
@@ -437,7 +438,7 @@ const props = defineProps({
437
438
  */
438
439
  noClear: {
439
440
  type: Boolean,
440
- default: UIService.get(defaultConfig, USelect).default.noClear,
441
+ default: getDefault(defaultConfig, USelect).noClear,
441
442
  },
442
443
 
443
444
  /**
@@ -445,7 +446,7 @@ const props = defineProps({
445
446
  */
446
447
  multiple: {
447
448
  type: Boolean,
448
- default: UIService.get(defaultConfig, USelect).default.multiple,
449
+ default: getDefault(defaultConfig, USelect).multiple,
449
450
  },
450
451
 
451
452
  /**
@@ -453,7 +454,7 @@ const props = defineProps({
453
454
  */
454
455
  searchable: {
455
456
  type: Boolean,
456
- default: UIService.get(defaultConfig, USelect).default.searchable,
457
+ default: getDefault(defaultConfig, USelect).searchable,
457
458
  },
458
459
 
459
460
  /**
@@ -461,7 +462,7 @@ const props = defineProps({
461
462
  */
462
463
  disabled: {
463
464
  type: Boolean,
464
- default: UIService.get(defaultConfig, USelect).default.disabled,
465
+ default: getDefault(defaultConfig, USelect).disabled,
465
466
  },
466
467
 
467
468
  /**
@@ -469,7 +470,7 @@ const props = defineProps({
469
470
  */
470
471
  addOption: {
471
472
  type: Boolean,
472
- default: UIService.get(defaultConfig, USelect).default.addOption,
473
+ default: getDefault(defaultConfig, USelect).addOption,
473
474
  },
474
475
 
475
476
  /**
@@ -43,7 +43,7 @@ import { merge } from "lodash-es";
43
43
 
44
44
  import UIcon from "../ui.image-icon";
45
45
  import ULabel from "../ui.form-label";
46
- import UIService, { getRandomId } from "../service.ui";
46
+ import { getRandomId, getDefault } from "../service.ui";
47
47
 
48
48
  import { USwitch } from "./constants";
49
49
  import defaultConfig from "./configs/default.config";
@@ -68,7 +68,7 @@ const props = defineProps({
68
68
  */
69
69
  labelAlign: {
70
70
  type: String,
71
- default: UIService.get(defaultConfig, USwitch).default.labelAlign,
71
+ default: getDefault(defaultConfig, USwitch).labelAlign,
72
72
  },
73
73
 
74
74
  /**
@@ -93,7 +93,7 @@ const props = defineProps({
93
93
  */
94
94
  size: {
95
95
  type: String,
96
- default: UIService.get(defaultConfig, USwitch).default.size,
96
+ default: getDefault(defaultConfig, USwitch).size,
97
97
  },
98
98
 
99
99
  /**
@@ -101,7 +101,7 @@ const props = defineProps({
101
101
  * @values brand, grayscale, gray, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose, white */
102
102
  color: {
103
103
  type: String,
104
- default: UIService.get(defaultConfig, USwitch).default.color,
104
+ default: getDefault(defaultConfig, USwitch).color,
105
105
  },
106
106
 
107
107
  /**
@@ -109,7 +109,7 @@ const props = defineProps({
109
109
  */
110
110
  toggleIcon: {
111
111
  type: Boolean,
112
- default: UIService.get(defaultConfig, USwitch).default.toggleIcon,
112
+ default: getDefault(defaultConfig, USwitch).toggleIcon,
113
113
  },
114
114
 
115
115
  /**
@@ -117,7 +117,7 @@ const props = defineProps({
117
117
  */
118
118
  toggleLabel: {
119
119
  type: Boolean,
120
- default: UIService.get(defaultConfig, USwitch).default.toggleLabel,
120
+ default: getDefault(defaultConfig, USwitch).toggleLabel,
121
121
  },
122
122
 
123
123
  /**
@@ -125,7 +125,7 @@ const props = defineProps({
125
125
  */
126
126
  disabled: {
127
127
  type: Boolean,
128
- default: UIService.get(defaultConfig, USwitch).default.disabled,
128
+ default: getDefault(defaultConfig, USwitch).disabled,
129
129
  },
130
130
 
131
131
  /**
@@ -17,7 +17,7 @@ export default /*tw*/ {
17
17
  `,
18
18
  },
19
19
  disabled: {
20
- true: "pointer-events-none bg-gray-100",
20
+ true: "focus-within:ring-0 focus-within:ring-offset-0 bg-gray-100 pointer-events-none",
21
21
  },
22
22
  },
23
23
  compoundVariants: [
@@ -52,7 +52,7 @@
52
52
  import { computed, onMounted, ref, useSlots } from "vue";
53
53
 
54
54
  import ULabel from "../ui.form-label";
55
- import UIService, { getRandomId } from "../service.ui";
55
+ import { getRandomId, getDefault } from "../service.ui";
56
56
 
57
57
  import { UTextarea } from "./constants";
58
58
  import defaultConfig from "./configs/default.config";
@@ -68,7 +68,7 @@ const props = defineProps({
68
68
  */
69
69
  size: {
70
70
  type: String,
71
- default: UIService.get(defaultConfig, UTextarea).default.size,
71
+ default: getDefault(defaultConfig, UTextarea).size,
72
72
  },
73
73
 
74
74
  /**
@@ -101,7 +101,7 @@ const props = defineProps({
101
101
  */
102
102
  labelAlign: {
103
103
  type: String,
104
- default: UIService.get(defaultConfig, UTextarea).default.labelAlign,
104
+ default: getDefault(defaultConfig, UTextarea).labelAlign,
105
105
  },
106
106
 
107
107
  /**
@@ -117,7 +117,7 @@ const props = defineProps({
117
117
  */
118
118
  readonly: {
119
119
  type: Boolean,
120
- default: UIService.get(defaultConfig, UTextarea).default.readonly,
120
+ default: getDefault(defaultConfig, UTextarea).readonly,
121
121
  },
122
122
 
123
123
  /**
@@ -125,7 +125,7 @@ const props = defineProps({
125
125
  */
126
126
  disabled: {
127
127
  type: Boolean,
128
- default: UIService.get(defaultConfig, UTextarea).default.disabled,
128
+ default: getDefault(defaultConfig, UTextarea).disabled,
129
129
  },
130
130
 
131
131
  /**
@@ -134,7 +134,7 @@ const props = defineProps({
134
134
  */
135
135
  inputmode: {
136
136
  type: String,
137
- default: UIService.get(defaultConfig, UTextarea).default.inputmode,
137
+ default: getDefault(defaultConfig, UTextarea).inputmode,
138
138
  },
139
139
 
140
140
  /**
@@ -142,7 +142,7 @@ const props = defineProps({
142
142
  */
143
143
  noAutocomplete: {
144
144
  type: Boolean,
145
- default: UIService.get(defaultConfig, UTextarea).default.noAutocomplete,
145
+ default: getDefault(defaultConfig, UTextarea).noAutocomplete,
146
146
  },
147
147
 
148
148
  /**
@@ -158,7 +158,7 @@ const props = defineProps({
158
158
  */
159
159
  rows: {
160
160
  type: String,
161
- default: UIService.get(defaultConfig, UTextarea).default.rows,
161
+ default: getDefault(defaultConfig, UTextarea).rows,
162
162
  },
163
163
 
164
164
  /**
@@ -23,7 +23,7 @@
23
23
  import { computed } from "vue";
24
24
 
25
25
  import UIcon from "../ui.image-icon";
26
- import UIService from "../service.ui";
26
+ import { getDefault } from "../service.ui";
27
27
 
28
28
  import { UAvatar } from "./constants/index";
29
29
  import defaultConfig from "./configs/default.config";
@@ -54,7 +54,7 @@ const props = defineProps({
54
54
  */
55
55
  icon: {
56
56
  type: String,
57
- default: UIService.get(defaultConfig, UAvatar).default.icon,
57
+ default: getDefault(defaultConfig, UAvatar).icon,
58
58
  },
59
59
 
60
60
  /**
@@ -63,7 +63,7 @@ const props = defineProps({
63
63
  */
64
64
  size: {
65
65
  type: String,
66
- default: UIService.get(defaultConfig, UAvatar).default.size,
66
+ default: getDefault(defaultConfig, UAvatar).size,
67
67
  },
68
68
 
69
69
  /**
@@ -72,7 +72,7 @@ const props = defineProps({
72
72
  */
73
73
  color: {
74
74
  type: String,
75
- default: UIService.get(defaultConfig, UAvatar).default.color,
75
+ default: getDefault(defaultConfig, UAvatar).color,
76
76
  },
77
77
 
78
78
  /**
@@ -81,7 +81,7 @@ const props = defineProps({
81
81
  */
82
82
  rounded: {
83
83
  type: String,
84
- default: UIService.get(defaultConfig, UAvatar).default.rounded,
84
+ default: getDefault(defaultConfig, UAvatar).rounded,
85
85
  },
86
86
 
87
87
  /**
@@ -89,7 +89,7 @@ const props = defineProps({
89
89
  */
90
90
  bordered: {
91
91
  type: Boolean,
92
- default: UIService.get(defaultConfig, UAvatar).default.bordered,
92
+ default: getDefault(defaultConfig, UAvatar).bordered,
93
93
  },
94
94
 
95
95
  /**
@@ -15,7 +15,7 @@
15
15
 
16
16
  <script setup>
17
17
  import { computed, defineAsyncComponent } from "vue";
18
- import UIService from "../service.ui";
18
+ import { getDefault } from "../service.ui";
19
19
 
20
20
  import { UIcon } from "./constants";
21
21
  import defaultConfig from "./configs/default.config";
@@ -52,7 +52,7 @@ const props = defineProps({
52
52
  */
53
53
  color: {
54
54
  type: String,
55
- default: UIService.get(defaultConfig, UIcon).default.color,
55
+ default: getDefault(defaultConfig, UIcon).color,
56
56
  },
57
57
 
58
58
  /**
@@ -61,7 +61,7 @@ const props = defineProps({
61
61
  */
62
62
  size: {
63
63
  type: String,
64
- default: UIService.get(defaultConfig, UIcon).default.size,
64
+ default: getDefault(defaultConfig, UIcon).size,
65
65
  },
66
66
 
67
67
  /**
@@ -69,7 +69,7 @@ const props = defineProps({
69
69
  */
70
70
  pill: {
71
71
  type: Boolean,
72
- default: UIService.get(defaultConfig, UIcon).default.pill,
72
+ default: getDefault(defaultConfig, UIcon).pill,
73
73
  },
74
74
 
75
75
  /**
@@ -78,7 +78,7 @@ const props = defineProps({
78
78
  */
79
79
  variant: {
80
80
  type: String,
81
- default: UIService.get(defaultConfig, UIcon).default.variant,
81
+ default: getDefault(defaultConfig, UIcon).variant,
82
82
  },
83
83
 
84
84
  /**
@@ -86,7 +86,7 @@ const props = defineProps({
86
86
  */
87
87
  interactive: {
88
88
  type: Boolean,
89
- default: UIService.get(defaultConfig, UIcon).default.interactive,
89
+ default: getDefault(defaultConfig, UIcon).interactive,
90
90
  },
91
91
 
92
92
  /**
@@ -12,7 +12,7 @@
12
12
 
13
13
  <script setup>
14
14
  import { computed } from "vue";
15
- import UIService from "../service.ui";
15
+ import { getDefault } from "../service.ui";
16
16
 
17
17
  import { ULoader } from "./constants";
18
18
  import defaultConfig from "./configs/default.config";
@@ -28,7 +28,7 @@ const props = defineProps({
28
28
  */
29
29
  size: {
30
30
  type: String,
31
- default: UIService.get(defaultConfig, ULoader).default.size,
31
+ default: getDefault(defaultConfig, ULoader).size,
32
32
  },
33
33
 
34
34
  /**
@@ -37,7 +37,7 @@ const props = defineProps({
37
37
  */
38
38
  color: {
39
39
  type: String,
40
- default: UIService.get(defaultConfig, ULoader).default.color,
40
+ default: getDefault(defaultConfig, ULoader).color,
41
41
  },
42
42
 
43
43
  /**
@@ -45,7 +45,7 @@ const props = defineProps({
45
45
  */
46
46
  loading: {
47
47
  type: Boolean,
48
- default: UIService.get(defaultConfig, ULoader).default.loading,
48
+ default: getDefault(defaultConfig, ULoader).loading,
49
49
  },
50
50
  });
51
51
 
@@ -13,7 +13,7 @@
13
13
 
14
14
  <script setup>
15
15
  import { computed, onMounted, onUnmounted } from "vue";
16
- import UIService from "../service.ui";
16
+ import { getDefault } from "../service.ui";
17
17
 
18
18
  import ULoader from "../ui.loader";
19
19
 
@@ -40,7 +40,7 @@ const props = defineProps({
40
40
  */
41
41
  color: {
42
42
  type: String,
43
- default: UIService.get(defaultConfig, ULoaderRendering).default.color,
43
+ default: getDefault(defaultConfig, ULoaderRendering).color,
44
44
  },
45
45
  });
46
46
 
@@ -7,7 +7,8 @@
7
7
  <script setup>
8
8
  import { computed, onBeforeUnmount, watch, ref, onMounted, onUnmounted } from "vue";
9
9
 
10
- import UIService, { isMobileApp } from "../service.ui";
10
+ import { getDefault } from "../service.ui";
11
+ import { isMobileApp } from "../service.platform";
11
12
  import { clamp, queue, getRequestWithoutQuery } from "./services/loaderTop.service";
12
13
  import { useLoaderTop } from "./composables/useLoaderTop";
13
14
 
@@ -25,7 +26,7 @@ const props = defineProps({
25
26
  */
26
27
  color: {
27
28
  type: String,
28
- default: UIService.get(defaultConfig, ULoaderTop).default.color,
29
+ default: getDefault(defaultConfig, ULoaderTop).color,
29
30
  },
30
31
 
31
32
  /**
@@ -85,7 +85,7 @@ import { computed } from "vue";
85
85
  import { range } from "lodash-es";
86
86
 
87
87
  import UButton from "../ui.button";
88
- import UIService from "../service.ui";
88
+ import { getDefault } from "../service.ui";
89
89
 
90
90
  import defaultConfig from "./configs/default.config";
91
91
  import { UPagination, ELLIPSIS_LABEL } from "./constants";
@@ -108,7 +108,7 @@ const props = defineProps({
108
108
  */
109
109
  disabled: {
110
110
  type: Boolean,
111
- default: UIService.get(defaultConfig, UPagination).default.disabled,
111
+ default: getDefault(defaultConfig, UPagination).disabled,
112
112
  },
113
113
 
114
114
  /**
@@ -116,7 +116,7 @@ const props = defineProps({
116
116
  */
117
117
  perPage: {
118
118
  type: Number,
119
- default: UIService.get(defaultConfig, UPagination).default.perPage,
119
+ default: getDefault(defaultConfig, UPagination).perPage,
120
120
  validator: (value) => value > 0,
121
121
  },
122
122
 
@@ -134,7 +134,7 @@ const props = defineProps({
134
134
  */
135
135
  limit: {
136
136
  type: Number,
137
- default: UIService.get(defaultConfig, UPagination).default.limit,
137
+ default: getDefault(defaultConfig, UPagination).limit,
138
138
  validator: (value) => value >= 0,
139
139
  },
140
140
 
@@ -143,7 +143,7 @@ const props = defineProps({
143
143
  */
144
144
  ellipsis: {
145
145
  type: Boolean,
146
- default: UIService.get(defaultConfig, UPagination).default.ellipsis,
146
+ default: getDefault(defaultConfig, UPagination).ellipsis,
147
147
  },
148
148
 
149
149
  /**
@@ -151,7 +151,7 @@ const props = defineProps({
151
151
  */
152
152
  prevLabel: {
153
153
  type: String,
154
- default: UIService.get(defaultConfig, UPagination).default.prevLabel,
154
+ default: getDefault(defaultConfig, UPagination).prevLabel,
155
155
  },
156
156
 
157
157
  /**
@@ -159,7 +159,7 @@ const props = defineProps({
159
159
  */
160
160
  nextLabel: {
161
161
  type: String,
162
- default: UIService.get(defaultConfig, UPagination).default.nextLabel,
162
+ default: getDefault(defaultConfig, UPagination).nextLabel,
163
163
  },
164
164
 
165
165
  /**
@@ -167,7 +167,7 @@ const props = defineProps({
167
167
  */
168
168
  firstLabel: {
169
169
  type: String,
170
- default: UIService.get(defaultConfig, UPagination).default.firstLabel,
170
+ default: getDefault(defaultConfig, UPagination).firstLabel,
171
171
  },
172
172
 
173
173
  /**
@@ -175,7 +175,7 @@ const props = defineProps({
175
175
  */
176
176
  lastLabel: {
177
177
  type: String,
178
- default: UIService.get(defaultConfig, UPagination).default.lastLabel,
178
+ default: getDefault(defaultConfig, UPagination).lastLabel,
179
179
  },
180
180
 
181
181
  /**
@@ -183,7 +183,7 @@ const props = defineProps({
183
183
  */
184
184
  showFirst: {
185
185
  type: Boolean,
186
- default: UIService.get(defaultConfig, UPagination).default.showLast,
186
+ default: getDefault(defaultConfig, UPagination).showLast,
187
187
  },
188
188
 
189
189
  /**
@@ -191,7 +191,7 @@ const props = defineProps({
191
191
  */
192
192
  showLast: {
193
193
  type: Boolean,
194
- default: UIService.get(defaultConfig, UPagination).default.showLast,
194
+ default: getDefault(defaultConfig, UPagination).showLast,
195
195
  },
196
196
 
197
197
  /**