vueless 0.0.14 → 0.0.16

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 (40) hide show
  1. package/package.json +1 -1
  2. package/ui.button/index.vue +16 -3
  3. package/ui.button-link/index.vue +6 -3
  4. package/ui.container-page/configs/default.config.js +1 -1
  5. package/ui.data-table/index.vue +1 -1
  6. package/ui.data-table-cell/configs/default.config.js +2 -2
  7. package/ui.dropdown-badge/index.vue +11 -1
  8. package/ui.dropdown-button/index.vue +14 -2
  9. package/ui.dropdown-link/index.vue +11 -1
  10. package/ui.form-calendar/configs/default.config.js +1 -1
  11. package/ui.form-checkbox/index.vue +1 -1
  12. package/ui.form-color-picker/index.vue +1 -1
  13. package/ui.form-date-picker-range/configs/default.config.js +4 -4
  14. package/ui.form-input/configs/default.config.js +1 -1
  15. package/ui.form-input/index.vue +5 -8
  16. package/ui.form-input-file/configs/default.config.js +1 -1
  17. package/ui.form-input-file/index.vue +4 -8
  18. package/ui.form-input-rating/configs/default.config.js +1 -1
  19. package/ui.form-input-rating/index.vue +3 -7
  20. package/ui.form-label/configs/default.config.js +2 -0
  21. package/ui.form-label/index.vue +3 -3
  22. package/ui.form-radio/index.vue +5 -3
  23. package/ui.form-radio-card/composables/attrs.composable.js +3 -1
  24. package/ui.form-radio-card/configs/default.config.js +8 -2
  25. package/ui.form-radio-card/index.vue +26 -40
  26. package/ui.form-select/configs/default.config.js +3 -3
  27. package/ui.form-select/index.vue +7 -18
  28. package/ui.form-switch/index.vue +1 -1
  29. package/ui.form-textarea/index.vue +2 -2
  30. package/ui.notify/index.vue +3 -3
  31. package/ui.other-loader-top/composables/attrs.composable.js +32 -0
  32. package/ui.other-loader-top/configs/default.config.js +20 -0
  33. package/ui.other-loader-top/constants/index.js +8 -0
  34. package/ui.other-loader-top/index.vue +230 -0
  35. package/ui.other-loader-top/services/loaderTop.service.js +31 -0
  36. package/ui.text-badge/index.vue +7 -0
  37. package/web-types.json +36 -132
  38. package/ui.loader-top/components/TopProgress.vue +0 -277
  39. package/ui.loader-top/index.vue +0 -221
  40. /package/{ui.loader-top → ui.other-loader-top}/store/index.js +0 -0
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.14",
4
+ "version": "0.0.16",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -966,7 +966,7 @@
966
966
  "description": "Label placement.",
967
967
  "value": {
968
968
  "kind": "expression",
969
- "type": "'left' | 'right'"
969
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'bottom' | 'left' | 'right'"
970
970
  },
971
971
  "default": "left"
972
972
  },
@@ -3225,13 +3225,13 @@
3225
3225
  "default": "\"\""
3226
3226
  },
3227
3227
  {
3228
- "name": "labelOutside",
3229
- "description": "Show label outside the input block.",
3228
+ "name": "labelAlign",
3229
+ "description": "Set label placement related from the default slot.",
3230
3230
  "value": {
3231
3231
  "kind": "expression",
3232
- "type": "boolean"
3232
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'bottom' | 'left' | 'right'"
3233
3233
  },
3234
- "default": "false"
3234
+ "default": "topInside"
3235
3235
  },
3236
3236
  {
3237
3237
  "name": "placeholder",
@@ -3425,13 +3425,13 @@
3425
3425
  "default": "\"\""
3426
3426
  },
3427
3427
  {
3428
- "name": "labelOutside",
3428
+ "name": "labelAlign",
3429
3429
  "description": "Set label placement related from the default slot.",
3430
3430
  "value": {
3431
3431
  "kind": "expression",
3432
- "type": "'topInside' | 'top' | 'left' | 'right'"
3432
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'bottom' | 'left' | 'right'"
3433
3433
  },
3434
- "default": "false"
3434
+ "default": "topInside"
3435
3435
  },
3436
3436
  {
3437
3437
  "name": "files",
@@ -3888,13 +3888,13 @@
3888
3888
  "default": "false"
3889
3889
  },
3890
3890
  {
3891
- "name": "labelOutside",
3891
+ "name": "labelAlign",
3892
3892
  "description": "Set label placement related from the default slot.",
3893
3893
  "value": {
3894
3894
  "kind": "expression",
3895
- "type": "'topInside' | 'top' | 'left' | 'right'"
3895
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'bottom' | 'left' | 'right'"
3896
3896
  },
3897
- "default": "false"
3897
+ "default": "topInside"
3898
3898
  },
3899
3899
  {
3900
3900
  "name": "error",
@@ -4137,7 +4137,7 @@
4137
4137
  "description": "Set label placement related from the default slot.",
4138
4138
  "value": {
4139
4139
  "kind": "expression",
4140
- "type": "'topInside' | 'top' | 'topWithDesc' | 'left' | 'right'"
4140
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'bottom' | 'left' | 'right'"
4141
4141
  },
4142
4142
  "default": "top"
4143
4143
  },
@@ -4443,15 +4443,6 @@
4443
4443
  },
4444
4444
  "default": "\"\""
4445
4445
  },
4446
- {
4447
- "name": "zIndex",
4448
- "description": "The z-list of the loader stripe.",
4449
- "value": {
4450
- "kind": "expression",
4451
- "type": "'auto' | '50' | '100'"
4452
- },
4453
- "default": "\"auto\""
4454
- },
4455
4446
  {
4456
4447
  "name": "position",
4457
4448
  "description": "Loader position.",
@@ -4459,7 +4450,7 @@
4459
4450
  "kind": "expression",
4460
4451
  "type": "'fixed' | 'absolute' | 'relative'"
4461
4452
  },
4462
- "default": "\"fixed\""
4453
+ "default": "fixed"
4463
4454
  },
4464
4455
  {
4465
4456
  "name": "color",
@@ -4468,11 +4459,11 @@
4468
4459
  "kind": "expression",
4469
4460
  "type": "'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'violet' | 'fuchsia'"
4470
4461
  },
4471
- "default": "globalComponentConfig.ULoaderTop?.color"
4462
+ "default": "blue"
4472
4463
  }
4473
4464
  ],
4474
4465
  "source": {
4475
- "module": "/src/ui.loader-top/index.vue",
4466
+ "module": "/src/ui.other-loader-top/index.vue",
4476
4467
  "symbol": "default"
4477
4468
  }
4478
4469
  },
@@ -5401,7 +5392,7 @@
5401
5392
  "description": "Set label placement related from the default slot.",
5402
5393
  "value": {
5403
5394
  "kind": "expression",
5404
- "type": "'left' | 'right'"
5395
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'bottom' | 'left' | 'right'"
5405
5396
  },
5406
5397
  "default": "UIService.get(defaultConfig, URadio).default.labelAlign"
5407
5398
  },
@@ -5453,10 +5444,13 @@
5453
5444
  ],
5454
5445
  "events": [
5455
5446
  {
5456
- "name": "update:value"
5447
+ "name": "update:modelValue"
5457
5448
  }
5458
5449
  ],
5459
5450
  "slots": [
5451
+ {
5452
+ "name": "default"
5453
+ },
5460
5454
  {
5461
5455
  "name": "footer"
5462
5456
  }
@@ -5534,6 +5528,14 @@
5534
5528
  },
5535
5529
  "default": "() => getRandomId()"
5536
5530
  },
5531
+ {
5532
+ "name": "labelAlign",
5533
+ "value": {
5534
+ "kind": "expression",
5535
+ "type": "string"
5536
+ },
5537
+ "default": "top"
5538
+ },
5537
5539
  {
5538
5540
  "name": "config",
5539
5541
  "description": "Sets component ui config object.",
@@ -5754,13 +5756,13 @@
5754
5756
  "default": "\"\""
5755
5757
  },
5756
5758
  {
5757
- "name": "labelOutside",
5758
- "description": "Show label outside the select block.",
5759
+ "name": "labelAlign",
5760
+ "description": "Set label placement related from the default slot.",
5759
5761
  "value": {
5760
5762
  "kind": "expression",
5761
- "type": "boolean"
5763
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'bottom' | 'left' | 'right'"
5762
5764
  },
5763
- "default": "false"
5765
+ "default": "topInside"
5764
5766
  },
5765
5767
  {
5766
5768
  "name": "placeholder",
@@ -6097,7 +6099,7 @@
6097
6099
  "description": "Label alignment.",
6098
6100
  "value": {
6099
6101
  "kind": "expression",
6100
- "type": "'left' | 'right'"
6102
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'bottom' | 'left' | 'right'"
6101
6103
  },
6102
6104
  "default": "left"
6103
6105
  },
@@ -6665,10 +6667,10 @@
6665
6667
  },
6666
6668
  {
6667
6669
  "name": "labelAlign",
6668
- "description": "Input label place (above the input box or inside of it).",
6670
+ "description": "Set label placement related from the default slot.",
6669
6671
  "value": {
6670
6672
  "kind": "expression",
6671
- "type": "'topInside' | 'top'"
6673
+ "type": "'top' | 'topInside' | 'topWithDesc' | 'bottom' | 'left' | 'right'"
6672
6674
  },
6673
6675
  "default": "topInside"
6674
6676
  },
@@ -7004,104 +7006,6 @@
7004
7006
  "symbol": "default"
7005
7007
  }
7006
7008
  },
7007
- {
7008
- "name": "VueTopprogress",
7009
- "description": "",
7010
- "attributes": [
7011
- {
7012
- "name": "speed",
7013
- "value": {
7014
- "kind": "expression",
7015
- "type": "number"
7016
- },
7017
- "default": "150"
7018
- },
7019
- {
7020
- "name": "color",
7021
- "value": {
7022
- "kind": "expression",
7023
- "type": "string"
7024
- },
7025
- "default": "\"#29d\""
7026
- },
7027
- {
7028
- "name": "colorShadow",
7029
- "value": {
7030
- "kind": "expression",
7031
- "type": "string"
7032
- },
7033
- "default": "\"\""
7034
- },
7035
- {
7036
- "name": "errorColor",
7037
- "value": {
7038
- "kind": "expression",
7039
- "type": "string"
7040
- },
7041
- "default": "\"#f44336\""
7042
- },
7043
- {
7044
- "name": "trickle",
7045
- "value": {
7046
- "kind": "expression",
7047
- "type": "boolean"
7048
- },
7049
- "default": "true"
7050
- },
7051
- {
7052
- "name": "trickleSpeed",
7053
- "value": {
7054
- "kind": "expression",
7055
- "type": "number"
7056
- },
7057
- "default": "100"
7058
- },
7059
- {
7060
- "name": "easing",
7061
- "value": {
7062
- "kind": "expression",
7063
- "type": "string"
7064
- },
7065
- "default": "\"linear\""
7066
- },
7067
- {
7068
- "name": "height",
7069
- "value": {
7070
- "kind": "expression",
7071
- "type": "number"
7072
- },
7073
- "default": "3"
7074
- },
7075
- {
7076
- "name": "minimum",
7077
- "value": {
7078
- "kind": "expression",
7079
- "type": "number"
7080
- },
7081
- "default": "0.8"
7082
- },
7083
- {
7084
- "name": "maximum",
7085
- "value": {
7086
- "kind": "expression",
7087
- "type": "number"
7088
- },
7089
- "default": "97.5"
7090
- },
7091
- {
7092
- "name": "zIndex",
7093
- "value": {
7094
- "kind": "expression",
7095
- "type": "number"
7096
- },
7097
- "default": "9999"
7098
- }
7099
- ],
7100
- "source": {
7101
- "module": "/src/ui.loader-top/components/TopProgress.vue",
7102
- "symbol": "default"
7103
- }
7104
- },
7105
7009
  {
7106
7010
  "name": "YearView",
7107
7011
  "description": "",
@@ -1,277 +0,0 @@
1
- <template>
2
- <transition :css="false" @beforeEnter="beforeEnter" @enter="enter" @afterEnter="afterEnter">
3
- <div v-if="show" class="top-progress" :style="barStyle">
4
- <div class="peg" :style="pegStyle"></div>
5
- </div>
6
- </transition>
7
- </template>
8
-
9
- <script>
10
- function clamp(n, min, max) {
11
- if (n < min) {
12
- return min;
13
- }
14
-
15
- if (n > max) {
16
- return max;
17
- }
18
-
19
- return n;
20
- }
21
-
22
- let queue = (() => {
23
- let pending = [];
24
-
25
- function next() {
26
- let fn = pending.shift();
27
-
28
- if (fn) {
29
- fn(next);
30
- }
31
- }
32
-
33
- return (fn) => {
34
- pending.push(fn);
35
-
36
- if (pending.length === 1) {
37
- next();
38
- }
39
- };
40
- })();
41
-
42
- export default {
43
- name: "VueTopprogress",
44
-
45
- props: {
46
- speed: {
47
- type: Number,
48
- default: 150,
49
- },
50
-
51
- color: {
52
- type: String,
53
- default: "#29d",
54
- },
55
-
56
- colorShadow: {
57
- type: String,
58
- default: "",
59
- },
60
-
61
- errorColor: {
62
- type: String,
63
- default: "#f44336",
64
- },
65
-
66
- trickle: {
67
- type: Boolean,
68
- default: true,
69
- },
70
-
71
- trickleSpeed: {
72
- type: Number,
73
- default: 100,
74
- },
75
-
76
- easing: {
77
- type: String,
78
- default: "linear",
79
- },
80
-
81
- height: {
82
- type: Number,
83
- default: 3,
84
- },
85
-
86
- minimum: {
87
- type: Number,
88
- default: 0.8,
89
- },
90
-
91
- maximum: {
92
- type: Number,
93
- default: 97.5,
94
- },
95
-
96
- zIndex: {
97
- type: Number,
98
- default: 9999,
99
- },
100
- },
101
-
102
- data() {
103
- return {
104
- error: false,
105
- show: false,
106
- progress: 0,
107
- opacity: 1,
108
- status: null,
109
- isPaused: false,
110
- };
111
- },
112
-
113
- computed: {
114
- progressColor() {
115
- return this.error ? this.errorColor : this.color;
116
- },
117
-
118
- isStarted() {
119
- return typeof this.status === "number";
120
- },
121
-
122
- boxShadow() {
123
- return this.colorShadow || this.progressColor;
124
- },
125
-
126
- barStyle() {
127
- return {
128
- position: "fixed",
129
- top: "0",
130
- left: "0",
131
- right: "0",
132
- width: `${this.progress}%`,
133
- height: `${this.height}px`,
134
- backgroundColor: this.progressColor,
135
- transition: `all ${this.speed}ms ${this.easing}`,
136
- opacity: `${this.opacity}`,
137
- zIndex: `${this.zIndex}`,
138
- };
139
- },
140
-
141
- pegStyle() {
142
- return {
143
- display: "block",
144
- position: "absolute",
145
- right: "0",
146
- width: "100px",
147
- height: "100%",
148
- opacity: this.progress ? "1" : "0",
149
- boxShadow: `0 0 10px ${this.boxShadow}, 0 0 5px ${this.boxShadow}`,
150
- transform: "rotate(3deg) translate(0px, -4px)",
151
- };
152
- },
153
- },
154
-
155
- methods: {
156
- beforeEnter() {
157
- this.opacity = 0;
158
- this.progress = 0;
159
- this.width = 0;
160
- },
161
-
162
- enter(el, done) {
163
- this.opacity = 1;
164
- done();
165
- },
166
-
167
- afterEnter() {
168
- this._runStart();
169
- },
170
-
171
- _work() {
172
- setTimeout(() => {
173
- if (!this.isStarted || this.isPaused) {
174
- return;
175
- }
176
-
177
- this.increase();
178
- this._work();
179
- }, this.trickleSpeed);
180
- },
181
-
182
- _runStart() {
183
- this.status = this.progress === 100 ? null : this.progress;
184
-
185
- if (this.trickle) {
186
- this._work();
187
- }
188
- },
189
-
190
- start() {
191
- this.isPaused = false;
192
-
193
- if (this.show) {
194
- this._runStart();
195
- } else {
196
- this.show = true;
197
- }
198
- },
199
-
200
- set(amount) {
201
- this.isPaused = false;
202
-
203
- let o;
204
-
205
- if (this.isStarted) {
206
- o = amount < this.progress ? clamp(amount, 0, 100) : clamp(amount, this.minimum, 100);
207
- } else {
208
- o = 0;
209
- }
210
-
211
- this.status = o === 100 ? null : o;
212
-
213
- queue((next) => {
214
- this.progress = o;
215
-
216
- if (o === 100) {
217
- setTimeout(() => {
218
- this.opacity = 0;
219
- setTimeout(() => {
220
- this.show = false;
221
- this.error = false;
222
- next();
223
- }, this.speed);
224
- }, this.speed);
225
- } else {
226
- setTimeout(next, this.speed);
227
- }
228
- });
229
- },
230
-
231
- increase(amount) {
232
- let o = this.progress;
233
-
234
- if (o < 100 && typeof amount !== "number") {
235
- if (o >= 0 && o < 25) {
236
- amount = Math.random() * 3 + 3;
237
- } else if (o >= 25 && o < 50) {
238
- amount = Math.random() * 3;
239
- } else if (o >= 50 && o < 85) {
240
- amount = Math.random() * 2;
241
- } else if (o >= 85 && o < 99) {
242
- amount = 0.5;
243
- } else {
244
- amount = 0;
245
- }
246
- }
247
-
248
- this.set(clamp(o + amount, 0, this.maximum));
249
- },
250
-
251
- decrease(amount) {
252
- if (this.progress === 0) {
253
- return;
254
- }
255
-
256
- this.increase(-amount);
257
- },
258
-
259
- done() {
260
- this.set(100);
261
- },
262
-
263
- getProgress() {
264
- return this.status ? this.progress : 0;
265
- },
266
-
267
- pause() {
268
- this.isPaused = true;
269
- },
270
-
271
- fail() {
272
- this.error = true;
273
- this.done();
274
- },
275
- },
276
- };
277
- </script>