@awes-io/ui 2.116.0 → 2.118.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.118.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.117.0...@awes-io/ui@2.118.0) (2024-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add switcher in mobile menu ([338e4de](https://github.com/awes-io/client/commit/338e4de3c4ba952e7234f781f7447cbfc0ac428a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.117.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.116.0...@awes-io/ui@2.117.0) (2024-11-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **table-builder:** props to disable fetching ([c617fde](https://github.com/awes-io/client/commit/c617fde1833a50c775446cd5e3a95eb94a5593c2))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [2.116.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.115.0...@awes-io/ui@2.116.0) (2024-11-21)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -281,7 +281,17 @@ export default {
|
|
|
281
281
|
/**
|
|
282
282
|
* Disable auto fetching collection on mount
|
|
283
283
|
*/
|
|
284
|
-
noFetch: Boolean
|
|
284
|
+
noFetch: Boolean,
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Disable auto fetching on page or limit change
|
|
288
|
+
*/
|
|
289
|
+
noPagination: Boolean,
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Disable auto fetching on watch params change
|
|
293
|
+
*/
|
|
294
|
+
noWatchFetch: Boolean
|
|
285
295
|
},
|
|
286
296
|
|
|
287
297
|
data() {
|
|
@@ -420,7 +430,7 @@ export default {
|
|
|
420
430
|
this._scrollTop()
|
|
421
431
|
}
|
|
422
432
|
|
|
423
|
-
this.fetch()
|
|
433
|
+
!this.noPagination && this.fetch()
|
|
424
434
|
}
|
|
425
435
|
},
|
|
426
436
|
|
|
@@ -429,7 +439,7 @@ export default {
|
|
|
429
439
|
this._scrollTop()
|
|
430
440
|
}
|
|
431
441
|
|
|
432
|
-
this.fetch()
|
|
442
|
+
!this.noPagination && this.fetch()
|
|
433
443
|
}
|
|
434
444
|
},
|
|
435
445
|
|
|
@@ -565,6 +575,8 @@ export default {
|
|
|
565
575
|
* Resets page if it is not first or simply doing fetch otherwise
|
|
566
576
|
*/
|
|
567
577
|
_fetchFromWatcher() {
|
|
578
|
+
if (this.noWatchFetch) return
|
|
579
|
+
|
|
568
580
|
if (this.page !== 1) {
|
|
569
581
|
this.$router.push(mergeRouteQuery({ page: null }, this.$route))
|
|
570
582
|
} else {
|
|
@@ -229,7 +229,7 @@ export default {
|
|
|
229
229
|
|
|
230
230
|
return acc.concat({
|
|
231
231
|
...pick(
|
|
232
|
-
'icon,iconBg,iconActive,class,expanded,target,rel,listeners,abstract,key,badge,back,isDivide,arrow,hideText',
|
|
232
|
+
'icon,iconBg,iconActive,class,expanded,target,rel,listeners,abstract,key,badge,switcher,back,isDivide,arrow,hideText',
|
|
233
233
|
props
|
|
234
234
|
),
|
|
235
235
|
text,
|
|
@@ -43,6 +43,12 @@
|
|
|
43
43
|
</span>
|
|
44
44
|
</span>
|
|
45
45
|
|
|
46
|
+
<AwSwitcher
|
|
47
|
+
v-if="switcher"
|
|
48
|
+
v-bind="switcher"
|
|
49
|
+
v-on="switcher.listeners"
|
|
50
|
+
/>
|
|
51
|
+
|
|
46
52
|
<AwBadge v-if="badge" v-bind="badge" />
|
|
47
53
|
|
|
48
54
|
<AwIconSystemMono
|
|
@@ -117,6 +123,11 @@ export default {
|
|
|
117
123
|
default: null
|
|
118
124
|
},
|
|
119
125
|
|
|
126
|
+
switcher: {
|
|
127
|
+
type: Object,
|
|
128
|
+
default: null
|
|
129
|
+
},
|
|
130
|
+
|
|
120
131
|
arrow: Boolean,
|
|
121
132
|
|
|
122
133
|
active: Boolean
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.118.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"rollup-plugin-visualizer": "^2.6.0",
|
|
115
115
|
"rollup-plugin-vue": "^5.0.1"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "9fac83b530a7826aea528e3823d0317e439133f6"
|
|
118
118
|
}
|