vue-act-master 2.0.0 → 2.0.2
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 +429 -3
- package/dist/decorators/act-in-progress.d.ts +9 -0
- package/dist/decorators/act-subscribe.d.ts +12 -0
- package/dist/decorators/helpers.d.ts +10 -0
- package/dist/decorators/index.d.ts +2 -0
- package/dist/index.d.ts +32 -0
- package/dist/vue-act-master.js +431 -0
- package/dist/vue-act-master.umd.cjs +1 -0
- package/package.json +23 -21
- package/src/index.ts +1 -0
- package/dist/index.common.js +0 -130
- package/dist/index.umd.js +0 -134
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
### Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
4
|
+
|
|
5
|
+
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
|
+
|
|
7
|
+
#### [v1.11.5](https://github.com/avil13/vue-act-master/compare/v1.11.1...v1.11.5)
|
|
8
|
+
|
|
9
|
+
> 20 May 2022
|
|
10
|
+
|
|
11
|
+
- feat(act-master-cli): updated tests & added interfacePrefix [`c5a8367`](https://github.com/avil13/vue-act-master/commit/c5a8367fcbdd4617adbda146d953ebf73cb5f8ab)
|
|
12
|
+
- feat(act-master-cli): added cli utility for creating action interface [`5391f50`](https://github.com/avil13/vue-act-master/commit/5391f50cd56cb0cb7fe91244ea68f67bf186046d)
|
|
13
|
+
- wip [`1c3fd24`](https://github.com/avil13/vue-act-master/commit/1c3fd24b4b558dd0df9c422cd25d5be6b78258eb)
|
|
14
|
+
|
|
15
|
+
#### [v1.11.1](https://github.com/avil13/vue-act-master/compare/v1.11.0...v1.11.1)
|
|
16
|
+
|
|
17
|
+
> 29 March 2022
|
|
18
|
+
|
|
19
|
+
- chore: changelog [`1157982`](https://github.com/avil13/vue-act-master/commit/115798267eecde7a3f241257e0814f75ad57fa2a)
|
|
20
|
+
- fix: fixed ActName global event type [`9378779`](https://github.com/avil13/vue-act-master/commit/93787793c3134fa4472f4a6e620425cda8c65778)
|
|
21
|
+
|
|
22
|
+
#### [v1.11.0](https://github.com/avil13/vue-act-master/compare/v1.10.8...v1.11.0)
|
|
23
|
+
|
|
24
|
+
> 22 March 2022
|
|
25
|
+
|
|
26
|
+
- feat: change act help function types [`e234b71`](https://github.com/avil13/vue-act-master/commit/e234b71da77a542f700ef3aa9fcb872354ec887a)
|
|
27
|
+
|
|
28
|
+
#### [v1.10.8](https://github.com/avil13/vue-act-master/compare/v1.10.7...v1.10.8)
|
|
29
|
+
|
|
30
|
+
> 10 March 2022
|
|
31
|
+
|
|
32
|
+
- feat: CancelledAct wrapp error in ActMaster.exec [`ff0bc4d`](https://github.com/avil13/vue-act-master/commit/ff0bc4de2783018e5a11e91684f777c1b68399e2)
|
|
33
|
+
|
|
34
|
+
#### [v1.10.7](https://github.com/avil13/vue-act-master/compare/v1.10.5...v1.10.7)
|
|
35
|
+
|
|
36
|
+
> 10 March 2022
|
|
37
|
+
|
|
38
|
+
- feat: changes the type of the returned object from the exec method [`c1437b4`](https://github.com/avil13/vue-act-master/commit/c1437b4cf73f9d2a212fb64f9abf424a15e3a91c)
|
|
39
|
+
- feat: add extend object with CancelledAct [`c8911d8`](https://github.com/avil13/vue-act-master/commit/c8911d8f2eae298e7e47e81e731330b88b1ac936)
|
|
40
|
+
|
|
41
|
+
#### [v1.10.5](https://github.com/avil13/vue-act-master/compare/v1.10.4...v1.10.5)
|
|
42
|
+
|
|
43
|
+
> 3 March 2022
|
|
44
|
+
|
|
45
|
+
- build(deps): bump prismjs from 1.25.0 to 1.27.0 [`#28`](https://github.com/avil13/vue-act-master/pull/28)
|
|
46
|
+
- build(deps): bump nanoid from 3.1.30 to 3.2.0 [`#27`](https://github.com/avil13/vue-act-master/pull/27)
|
|
47
|
+
- chore: remove Jest add Vitest [`d777b9c`](https://github.com/avil13/vue-act-master/commit/d777b9c0772b2a6050a3f684b9f560383536931e)
|
|
48
|
+
- chore: remove unused deps [`2da37d6`](https://github.com/avil13/vue-act-master/commit/2da37d6804f30b34ab7c7fd4ab4e926a848f4b18)
|
|
49
|
+
- chore: remove commitizen [`540df34`](https://github.com/avil13/vue-act-master/commit/540df3477c2a3880a3fc26ea9ba28f63d943aa4a)
|
|
50
|
+
|
|
51
|
+
#### [v1.10.4](https://github.com/avil13/vue-act-master/compare/v1.10.3...v1.10.4)
|
|
52
|
+
|
|
53
|
+
> 12 December 2021
|
|
54
|
+
|
|
55
|
+
- fix(act-master): fixed wait removerd types [`be2e48e`](https://github.com/avil13/vue-act-master/commit/be2e48e0259ef2f332fa11b70eac8adec75dd43a)
|
|
56
|
+
|
|
57
|
+
#### [v1.10.3](https://github.com/avil13/vue-act-master/compare/v1.10.2...v1.10.3)
|
|
58
|
+
|
|
59
|
+
> 10 December 2021
|
|
60
|
+
|
|
61
|
+
- fix(act-master): act.subscribe - fixed unsubscribe param [`e571892`](https://github.com/avil13/vue-act-master/commit/e5718925fd0efdc9e4dec4241d7ec4aa89fc14e2)
|
|
62
|
+
|
|
63
|
+
#### [v1.10.2](https://github.com/avil13/vue-act-master/compare/v1.10.1...v1.10.2)
|
|
64
|
+
|
|
65
|
+
> 10 December 2021
|
|
66
|
+
|
|
67
|
+
- changelog(vue-act-master) [`efb304d`](https://github.com/avil13/vue-act-master/commit/efb304d3c095eec416bdfd0ee6bf4d43d355fede)
|
|
68
|
+
- doc(vue-act-master): fix readme [`1a79d1c`](https://github.com/avil13/vue-act-master/commit/1a79d1c55bb4714df4d436d7664790228001f5a9)
|
|
69
|
+
- fix(act-master): act.subscribe - fixed unsubscribe param [`e925305`](https://github.com/avil13/vue-act-master/commit/e9253059e241e824513d403cdeeb2c18adf763ac)
|
|
70
|
+
|
|
71
|
+
#### [v1.10.1](https://github.com/avil13/vue-act-master/compare/v1.10.0...v1.10.1)
|
|
72
|
+
|
|
73
|
+
> 6 December 2021
|
|
74
|
+
|
|
75
|
+
- changelog(vue-act-master) [`551e096`](https://github.com/avil13/vue-act-master/commit/551e096a9c31648c30f0d6fcf314b9be5d0551ed)
|
|
76
|
+
- fix(vue-act-master): fix ActSubscribe - get default value [`1aa62a7`](https://github.com/avil13/vue-act-master/commit/1aa62a7781cc46fed6005afaaf94d3a09387c2c8)
|
|
77
|
+
- changelog [`8ac56d1`](https://github.com/avil13/vue-act-master/commit/8ac56d1f1e79a0bb8a17e5f45450c0a90b3b9c7b)
|
|
78
|
+
|
|
79
|
+
#### [v1.10.0](https://github.com/avil13/vue-act-master/compare/v1.9.0...v1.10.0)
|
|
80
|
+
|
|
81
|
+
> 30 November 2021
|
|
82
|
+
|
|
83
|
+
- chore: upgrade deps [`e0b2f9b`](https://github.com/avil13/vue-act-master/commit/e0b2f9bdd300539fdd6023652a67429155ce9e04)
|
|
84
|
+
- feat: added size-limit library [`9dbc21b`](https://github.com/avil13/vue-act-master/commit/9dbc21ba36a917eb486a3de93bb1e82144ae8d4f)
|
|
85
|
+
- docs: added composition api examples [`6b5756f`](https://github.com/avil13/vue-act-master/commit/6b5756fe52311c1c5730eff1203abbd3d372db02)
|
|
86
|
+
|
|
87
|
+
#### [v1.9.0](https://github.com/avil13/vue-act-master/compare/v1.3.4...v1.9.0)
|
|
88
|
+
|
|
89
|
+
> 22 October 2021
|
|
90
|
+
|
|
91
|
+
- Feat/progress [`#26`](https://github.com/avil13/vue-act-master/pull/26)
|
|
92
|
+
- build(deps): bump tmpl from 1.0.4 to 1.0.5 [`#25`](https://github.com/avil13/vue-act-master/pull/25)
|
|
93
|
+
- build(deps): bump ws from 7.4.5 to 7.5.0 [`#17`](https://github.com/avil13/vue-act-master/pull/17)
|
|
94
|
+
- build(deps): bump postcss from 7.0.35 to 7.0.36 [`#18`](https://github.com/avil13/vue-act-master/pull/18)
|
|
95
|
+
- build(deps): bump ssri from 8.0.0 to 8.0.1 [`#14`](https://github.com/avil13/vue-act-master/pull/14)
|
|
96
|
+
- chore: removed unused packages [`04f38de`](https://github.com/avil13/vue-act-master/commit/04f38de4e233faab7027602439ded4cf759fa2c1)
|
|
97
|
+
- docs: up vitepress [`29a78fa`](https://github.com/avil13/vue-act-master/commit/29a78fa474c9be104aceaf13d7bf7bde43661b9f)
|
|
98
|
+
- chore: update deps [`277124b`](https://github.com/avil13/vue-act-master/commit/277124b67ce992809890781f9e372de30bbfbdfd)
|
|
99
|
+
|
|
100
|
+
#### [v1.3.4](https://github.com/avil13/vue-act-master/compare/v1.3.3...v1.3.4)
|
|
101
|
+
|
|
102
|
+
> 9 January 2021
|
|
103
|
+
|
|
104
|
+
- fix: readme [`abfbc54`](https://github.com/avil13/vue-act-master/commit/abfbc5464654a4619533d22cc46d59437a14fc0d)
|
|
105
|
+
- fix: readme and changelog script [`4067816`](https://github.com/avil13/vue-act-master/commit/4067816b7fc899fc64b834bcc95d7ee84afb7849)
|
|
106
|
+
|
|
107
|
+
#### [v1.3.3](https://github.com/avil13/vue-act-master/compare/v1.0.3...v1.3.3)
|
|
108
|
+
|
|
109
|
+
> 9 January 2021
|
|
110
|
+
|
|
111
|
+
- build(deps): bump node-notifier from 8.0.0 to 8.0.1 [`#13`](https://github.com/avil13/vue-act-master/pull/13)
|
|
112
|
+
- build(deps): bump ini from 1.3.5 to 1.3.8 [`#10`](https://github.com/avil13/vue-act-master/pull/10)
|
|
113
|
+
- Create LICENSE [`#8`](https://github.com/avil13/vue-act-master/pull/8)
|
|
114
|
+
- Bump node-fetch from 2.6.0 to 2.6.1 in /packages/vue-act-master [`#7`](https://github.com/avil13/vue-act-master/pull/7)
|
|
115
|
+
- feat(act-master): CancelledAct method "is" [`fcd75ab`](https://github.com/avil13/vue-act-master/commit/fcd75abe135a4c61881f0b11766a56f45d1a9678)
|
|
116
|
+
- feat(vue-act-master): updated act-master to v1.1.0 [`eb58a61`](https://github.com/avil13/vue-act-master/commit/eb58a61261f0341b2a50b05bca81b4469344b3c1)
|
|
117
|
+
- feat(docs): vitepress documentation [`14998c2`](https://github.com/avil13/vue-act-master/commit/14998c2981bcf1572f81350f26c4b2f8153d1491)
|
|
118
|
+
|
|
119
|
+
### [v1.0.3](https://github.com/avil13/vue-act-master/compare/v0.16.0...v1.0.3)
|
|
120
|
+
|
|
121
|
+
> 20 October 2020
|
|
122
|
+
|
|
123
|
+
#### [v0.16.0](https://github.com/avil13/vue-act-master/compare/v0.15.3...v0.16.0)
|
|
124
|
+
|
|
125
|
+
> 22 March 2022
|
|
126
|
+
|
|
127
|
+
- feat: change act help function types [`e234b71`](https://github.com/avil13/vue-act-master/commit/e234b71da77a542f700ef3aa9fcb872354ec887a)
|
|
128
|
+
- feat: changes the type of the returned object from the exec method [`c1437b4`](https://github.com/avil13/vue-act-master/commit/c1437b4cf73f9d2a212fb64f9abf424a15e3a91c)
|
|
129
|
+
- feat: add extend object with CancelledAct [`c8911d8`](https://github.com/avil13/vue-act-master/commit/c8911d8f2eae298e7e47e81e731330b88b1ac936)
|
|
130
|
+
|
|
131
|
+
#### [v0.15.3](https://github.com/avil13/vue-act-master/compare/v0.15.2...v0.15.3)
|
|
132
|
+
|
|
133
|
+
> 3 March 2022
|
|
134
|
+
|
|
135
|
+
- build(deps): bump prismjs from 1.25.0 to 1.27.0 [`#28`](https://github.com/avil13/vue-act-master/pull/28)
|
|
136
|
+
- build(deps): bump nanoid from 3.1.30 to 3.2.0 [`#27`](https://github.com/avil13/vue-act-master/pull/27)
|
|
137
|
+
- chore: remove Jest add Vitest [`d777b9c`](https://github.com/avil13/vue-act-master/commit/d777b9c0772b2a6050a3f684b9f560383536931e)
|
|
138
|
+
- chore: remove unused deps [`2da37d6`](https://github.com/avil13/vue-act-master/commit/2da37d6804f30b34ab7c7fd4ab4e926a848f4b18)
|
|
139
|
+
- chore: remove commitizen [`540df34`](https://github.com/avil13/vue-act-master/commit/540df3477c2a3880a3fc26ea9ba28f63d943aa4a)
|
|
140
|
+
|
|
141
|
+
#### [v0.15.2](https://github.com/avil13/vue-act-master/compare/v0.15.1...v0.15.2)
|
|
142
|
+
|
|
143
|
+
> 6 December 2021
|
|
144
|
+
|
|
145
|
+
- changelog(vue-act-master) [`551e096`](https://github.com/avil13/vue-act-master/commit/551e096a9c31648c30f0d6fcf314b9be5d0551ed)
|
|
146
|
+
- doc(vue-act-master): fix readme [`1a79d1c`](https://github.com/avil13/vue-act-master/commit/1a79d1c55bb4714df4d436d7664790228001f5a9)
|
|
147
|
+
- doc(act-master): fix readme [`96ed2ce`](https://github.com/avil13/vue-act-master/commit/96ed2ceea4a33026cc95857b7d5fdfce67d278b8)
|
|
148
|
+
|
|
149
|
+
#### [v0.15.1](https://github.com/avil13/vue-act-master/compare/v0.11.2...v0.15.1)
|
|
150
|
+
|
|
151
|
+
> 1 December 2021
|
|
152
|
+
|
|
153
|
+
- chore: upgrade deps [`e0b2f9b`](https://github.com/avil13/vue-act-master/commit/e0b2f9bdd300539fdd6023652a67429155ce9e04)
|
|
154
|
+
- feat: added size-limit library [`9dbc21b`](https://github.com/avil13/vue-act-master/commit/9dbc21ba36a917eb486a3de93bb1e82144ae8d4f)
|
|
155
|
+
- doc: added title image [`47a5cbb`](https://github.com/avil13/vue-act-master/commit/47a5cbb3c6318536a9b481cfd6d3ae04cf1841a6)
|
|
156
|
+
|
|
157
|
+
#### [v0.11.2](https://github.com/avil13/vue-act-master/compare/v0.9.8...v0.11.2)
|
|
158
|
+
|
|
159
|
+
> 3 October 2021
|
|
160
|
+
|
|
161
|
+
- Feat/progress [`#26`](https://github.com/avil13/vue-act-master/pull/26)
|
|
162
|
+
- build(deps): bump tmpl from 1.0.4 to 1.0.5 [`#25`](https://github.com/avil13/vue-act-master/pull/25)
|
|
163
|
+
- chore: removed unused packages [`04f38de`](https://github.com/avil13/vue-act-master/commit/04f38de4e233faab7027602439ded4cf759fa2c1)
|
|
164
|
+
- chore: update deps [`277124b`](https://github.com/avil13/vue-act-master/commit/277124b67ce992809890781f9e372de30bbfbdfd)
|
|
165
|
+
- wip(vue-act-master): added ActInProgress decoreator [`b77902c`](https://github.com/avil13/vue-act-master/commit/b77902c6069455e8bf65b043ae79464bbab146d2)
|
|
166
|
+
|
|
167
|
+
#### [v0.9.8](https://github.com/avil13/vue-act-master/compare/v0.9.6...v0.9.8)
|
|
168
|
+
|
|
169
|
+
> 6 July 2021
|
|
170
|
+
|
|
171
|
+
- build(deps): bump ws from 7.4.5 to 7.5.0 [`#17`](https://github.com/avil13/vue-act-master/pull/17)
|
|
172
|
+
- build(deps): bump postcss from 7.0.35 to 7.0.36 [`#18`](https://github.com/avil13/vue-act-master/pull/18)
|
|
173
|
+
- fix(vue-act-master): fix ActSubscribe decorator [`582ff24`](https://github.com/avil13/vue-act-master/commit/582ff245fea82ffa822ff0236a7edb53598234b4)
|
|
174
|
+
- feat(act-master): bump version 1.4.1 [`efcd46a`](https://github.com/avil13/vue-act-master/commit/efcd46a5b251524ff5ea5a9f9b759bd9075ebf2c)
|
|
175
|
+
- feat(act-master): Added error handler on validation error & fix test-utils reset bug [`525660c`](https://github.com/avil13/vue-act-master/commit/525660c300065b2e6a93f9f459782c445935cf16)
|
|
176
|
+
|
|
177
|
+
#### [v0.9.6](https://github.com/avil13/vue-act-master/compare/v0.9.3...v0.9.6)
|
|
178
|
+
|
|
179
|
+
> 20 June 2021
|
|
180
|
+
|
|
181
|
+
- feat(vue-act-master): nuxt fix module 4 [`8d86d18`](https://github.com/avil13/vue-act-master/commit/8d86d1866f08d2338132af70ca0ef2f1bb483526)
|
|
182
|
+
- docs: vue-act-master doc nuxtjs [`9af0608`](https://github.com/avil13/vue-act-master/commit/9af0608e03eb2fb3bfa5e435108c9e7d2e5d24bf)
|
|
183
|
+
- feat(vue-act-master): nuxt fix module 3 [`7d22c89`](https://github.com/avil13/vue-act-master/commit/7d22c89723218bee95c0d4da0fbe027c470001f9)
|
|
184
|
+
|
|
185
|
+
#### [v0.9.3](https://github.com/avil13/vue-act-master/compare/v0.9.2...v0.9.3)
|
|
186
|
+
|
|
187
|
+
> 8 May 2021
|
|
188
|
+
|
|
189
|
+
- feat(vue-act-master): nuxt fix module 2 [`41a2444`](https://github.com/avil13/vue-act-master/commit/41a2444bdd01326a4e77b1dad1bcf1d11be23493)
|
|
190
|
+
|
|
191
|
+
#### [v0.9.2](https://github.com/avil13/vue-act-master/compare/v0.9.1...v0.9.2)
|
|
192
|
+
|
|
193
|
+
> 8 May 2021
|
|
194
|
+
|
|
195
|
+
- docs: vue-act-master doc update [`98e6843`](https://github.com/avil13/vue-act-master/commit/98e6843bd68bbcd317b4938258e122fb6d6711d0)
|
|
196
|
+
- feat(vue-act-master): nuxt fix module [`5ddf0a0`](https://github.com/avil13/vue-act-master/commit/5ddf0a0ccdaab523d0284659451de18332446090)
|
|
197
|
+
|
|
198
|
+
#### [v0.9.1](https://github.com/avil13/vue-act-master/compare/v0.9.0...v0.9.1)
|
|
199
|
+
|
|
200
|
+
> 7 May 2021
|
|
201
|
+
|
|
202
|
+
- build(deps): bump ssri from 8.0.0 to 8.0.1 [`#14`](https://github.com/avil13/vue-act-master/pull/14)
|
|
203
|
+
- docs: up vitepress [`29a78fa`](https://github.com/avil13/vue-act-master/commit/29a78fa474c9be104aceaf13d7bf7bde43661b9f)
|
|
204
|
+
- chore(act-master): optimie build size [`dd3f8b1`](https://github.com/avil13/vue-act-master/commit/dd3f8b17b666bea9469e5b6b3482eed076971a78)
|
|
205
|
+
- docs(tip): added websocket example [`f3632cf`](https://github.com/avil13/vue-act-master/commit/f3632cf1d8a7c1f6ec69b1ab4b0fde2e18d73a60)
|
|
206
|
+
|
|
207
|
+
#### [v0.9.0](https://github.com/avil13/vue-act-master/compare/v0.8.8...v0.9.0)
|
|
208
|
+
|
|
209
|
+
> 9 January 2021
|
|
210
|
+
|
|
211
|
+
- feat(act-master): change listenera and action container to the Map [`f17df13`](https://github.com/avil13/vue-act-master/commit/f17df13ece0e5b9a7528811885ab692e7513a4ca)
|
|
212
|
+
- fix: readme [`abfbc54`](https://github.com/avil13/vue-act-master/commit/abfbc5464654a4619533d22cc46d59437a14fc0d)
|
|
213
|
+
- fix: repo in package.json [`2484a1f`](https://github.com/avil13/vue-act-master/commit/2484a1f9db9a1b5255b70c8104119b2ff3c99609)
|
|
214
|
+
|
|
215
|
+
#### [v0.8.8](https://github.com/avil13/vue-act-master/compare/v0.8.6...v0.8.8)
|
|
216
|
+
|
|
217
|
+
> 9 January 2021
|
|
218
|
+
|
|
219
|
+
- build(deps): bump node-notifier from 8.0.0 to 8.0.1 [`#13`](https://github.com/avil13/vue-act-master/pull/13)
|
|
220
|
+
- feat(docs): vitepress documentation [`14998c2`](https://github.com/avil13/vue-act-master/commit/14998c2981bcf1572f81350f26c4b2f8153d1491)
|
|
221
|
+
- feat(docs): fixes [`ef6ed76`](https://github.com/avil13/vue-act-master/commit/ef6ed7680198533f09f0dd2bf33cc69071831085)
|
|
222
|
+
- docs: logo and icons [`1920bae`](https://github.com/avil13/vue-act-master/commit/1920bae48f472c7fb444db13b6606016655433bc)
|
|
223
|
+
|
|
224
|
+
#### [v0.8.6](https://github.com/avil13/vue-act-master/compare/v0.8.5...v0.8.6)
|
|
225
|
+
|
|
226
|
+
> 29 December 2020
|
|
227
|
+
|
|
228
|
+
- feat(act-master): added validateInput method [`08182c9`](https://github.com/avil13/vue-act-master/commit/08182c9f3825a64e50a6bd66c01f90eea896ec08)
|
|
229
|
+
- feat(vue-act-master): up act-master to 1.3.0 [`7997f94`](https://github.com/avil13/vue-act-master/commit/7997f94769210de66259bf5091ecfcf4071f5b6c)
|
|
230
|
+
- feat(act-master): bump version 1.3.0 [`b96c8ab`](https://github.com/avil13/vue-act-master/commit/b96c8ab86a03aa9286d3624466f70cc4f3743fb8)
|
|
231
|
+
|
|
232
|
+
#### [v0.8.5](https://github.com/avil13/vue-act-master/compare/v0.8.4...v0.8.5)
|
|
233
|
+
|
|
234
|
+
> 14 December 2020
|
|
235
|
+
|
|
236
|
+
- build(deps): bump ini from 1.3.5 to 1.3.8 [`#10`](https://github.com/avil13/vue-act-master/pull/10)
|
|
237
|
+
- Create LICENSE [`#8`](https://github.com/avil13/vue-act-master/pull/8)
|
|
238
|
+
- feat(vue-act-master): auto-unsubscribe in vue3 [`41d3e3d`](https://github.com/avil13/vue-act-master/commit/41d3e3d9082de77a8419114448ec75fd43f632eb)
|
|
239
|
+
- feat(act-master): version v1.2.2 [`8c889da`](https://github.com/avil13/vue-act-master/commit/8c889da733b4dec323463203d20e56557bdfc60c)
|
|
240
|
+
- docs(vue-act-master): fix changelog [`b1ffd9b`](https://github.com/avil13/vue-act-master/commit/b1ffd9bef98d3f02f0ac7420544c78435cab01c6)
|
|
241
|
+
|
|
242
|
+
#### [v0.8.4](https://github.com/avil13/vue-act-master/compare/v0.8.3...v0.8.4)
|
|
243
|
+
|
|
244
|
+
> 5 November 2020
|
|
245
|
+
|
|
246
|
+
- feat(act-master): fixed test-utils loading & added min version [`abb6b99`](https://github.com/avil13/vue-act-master/commit/abb6b998b45f015243ea93cd5daadd90c500f323)
|
|
247
|
+
- fix(vue-act-master): version 0.8.3 [`df13fd7`](https://github.com/avil13/vue-act-master/commit/df13fd71b7e0a2aaa401439320e3e6f0e2b4063f)
|
|
248
|
+
- feat(act-master): bump version 1.2.1 [`106afa3`](https://github.com/avil13/vue-act-master/commit/106afa325a0b45efc8e6bb0947c1bb3efc5a3ac0)
|
|
249
|
+
|
|
250
|
+
#### [v0.8.3](https://github.com/avil13/vue-act-master/compare/v0.8.2...v0.8.3)
|
|
251
|
+
|
|
252
|
+
> 4 November 2020
|
|
253
|
+
|
|
254
|
+
- feat(vue-act-master): added test-utils [`81e0ecb`](https://github.com/avil13/vue-act-master/commit/81e0ecbf5750cfaf6ba101f989c08988051edcce)
|
|
255
|
+
- feat(vue-act-master): bump version to v0.8.2 [`d642b67`](https://github.com/avil13/vue-act-master/commit/d642b67cbfac40ae8d052b54c1a6e9c774d93ade)
|
|
256
|
+
|
|
257
|
+
#### [v0.8.2](https://github.com/avil13/vue-act-master/compare/v0.8.1...v0.8.2)
|
|
258
|
+
|
|
259
|
+
> 4 November 2020
|
|
260
|
+
|
|
261
|
+
- feat(act-master): added ActTest - helper class for unit tests [`5fa71eb`](https://github.com/avil13/vue-act-master/commit/5fa71eb6306de2267993cbf510fffb764cc06b64)
|
|
262
|
+
- docs(vue-act-master): updated README & up version act-master to 1.2.0 [`8d5bc90`](https://github.com/avil13/vue-act-master/commit/8d5bc90ed2e589242813c34cad4fc59d0ec23223)
|
|
263
|
+
- feat(act-master): bump version 1.2.0 [`fe78d07`](https://github.com/avil13/vue-act-master/commit/fe78d070497b4e65833e354a3284c36722fd1b8a)
|
|
264
|
+
|
|
265
|
+
#### [v0.8.1](https://github.com/avil13/vue-act-master/compare/v0.7.1...v0.8.1)
|
|
266
|
+
|
|
267
|
+
> 3 November 2020
|
|
268
|
+
|
|
269
|
+
- feat(vue-act-master): wip - ActSubscribe decorator [`d86825a`](https://github.com/avil13/vue-act-master/commit/d86825abe690e8b4607e57807cf4d5bbfc3bb29e)
|
|
270
|
+
- feat(vue-act-master): updated act-master to v1.1.2 [`59060b4`](https://github.com/avil13/vue-act-master/commit/59060b4e93104183068edd35cf079819ebf46ba1)
|
|
271
|
+
- docs(vue-act-master): updated README [`ecfa39c`](https://github.com/avil13/vue-act-master/commit/ecfa39c249955f8f501ac55182f595e293b4ff73)
|
|
272
|
+
|
|
273
|
+
#### [v0.7.1](https://github.com/avil13/vue-act-master/compare/v0.7.0...v0.7.1)
|
|
274
|
+
|
|
275
|
+
> 3 November 2020
|
|
276
|
+
|
|
277
|
+
- feat(vue-act-master): updated act-master to v1.1.0 [`eb58a61`](https://github.com/avil13/vue-act-master/commit/eb58a61261f0341b2a50b05bca81b4469344b3c1)
|
|
278
|
+
- feat(act-master): eventAction arguments list [`801f3bb`](https://github.com/avil13/vue-act-master/commit/801f3bbeb270774af5da0bc14e221778890c3e48)
|
|
279
|
+
- feat(vue-act-master): updated act-master to v1.1.1 [`52e26e5`](https://github.com/avil13/vue-act-master/commit/52e26e5878263f94a93a9b3c5ad8a82098cfbcb2)
|
|
280
|
+
|
|
281
|
+
#### [v0.7.0](https://github.com/avil13/vue-act-master/compare/v0.6.4...v0.7.0)
|
|
282
|
+
|
|
283
|
+
> 30 October 2020
|
|
284
|
+
|
|
285
|
+
- feat(vue-act-master): updated act-master to v1.1.0 [`a392f75`](https://github.com/avil13/vue-act-master/commit/a392f758779e2f567f8c1d9dcabb35e04d17b8db)
|
|
286
|
+
- feat(act-master): added commitezen [`0f335d4`](https://github.com/avil13/vue-act-master/commit/0f335d4e85b5ef7229659da0603af543a810df72)
|
|
287
|
+
- feat(act-master): added "di" option and tests for constructor options [`f5549a5`](https://github.com/avil13/vue-act-master/commit/f5549a588d7adfa1e41fd888e8469f9d05848e8c)
|
|
288
|
+
|
|
289
|
+
#### [v0.6.4](https://github.com/avil13/vue-act-master/compare/v0.6.3...v0.6.4)
|
|
290
|
+
|
|
291
|
+
> 29 October 2020
|
|
292
|
+
|
|
293
|
+
- feat(act-master): added "di" option and tests for constructor options
|
|
294
|
+
- feat(vue-act-master): link to example page [`16049dc`](https://github.com/avil13/vue-act-master/commit/16049dceeeb5e4bcb1594b6d1d6683919ebd48af)
|
|
295
|
+
- feat(vue-act-master): changelog [`77c6ddb`](https://github.com/avil13/vue-act-master/commit/77c6ddb541a07b62f27db6bdbc32eaf6d9a20829)
|
|
296
|
+
|
|
297
|
+
#### [v0.6.3](https://github.com/avil13/vue-act-master/compare/v0.6.1...v0.6.3)
|
|
298
|
+
|
|
299
|
+
> 28 October 2020
|
|
300
|
+
|
|
301
|
+
- feat(act-master): CancelledAct method "is" [`fcd75ab`](https://github.com/avil13/vue-act-master/commit/fcd75abe135a4c61881f0b11766a56f45d1a9678)
|
|
302
|
+
- fear(example): added example page [`c90d326`](https://github.com/avil13/vue-act-master/commit/c90d326dcad396ae7075c646404a528437bd3a2b)
|
|
303
|
+
- feat(act-master): build script fixed [`8d6c25a`](https://github.com/avil13/vue-act-master/commit/8d6c25a885986bcd8e268917538f208e5a2b538d)
|
|
304
|
+
|
|
305
|
+
#### [v0.6.1](https://github.com/avil13/vue-act-master/compare/v0.6.0...v0.6.1)
|
|
306
|
+
|
|
307
|
+
> 28 October 2020
|
|
308
|
+
|
|
309
|
+
- feat: update changelog command [`5075673`](https://github.com/avil13/vue-act-master/commit/50756734b83cf589d4858ab4a8e34d39d9a33719)
|
|
310
|
+
- . [`140990e`](https://github.com/avil13/vue-act-master/commit/140990e33785b66b5d5d80ab081cb75a2426fd25)
|
|
311
|
+
- chore: root repo scripts [`2607e3c`](https://github.com/avil13/vue-act-master/commit/2607e3c99b2d4cd241d1af383bf90dc84e93b078)
|
|
312
|
+
|
|
313
|
+
#### [v0.6.0](https://github.com/avil13/vue-act-master/compare/v0.5.0...v0.6.0)
|
|
314
|
+
|
|
315
|
+
> 25 October 2020
|
|
316
|
+
|
|
317
|
+
- Bump node-fetch from 2.6.0 to 2.6.1 in /packages/vue-act-master [`#7`](https://github.com/avil13/vue-act-master/pull/7)
|
|
318
|
+
- feat: add vue3 support [`e0281f3`](https://github.com/avil13/vue-act-master/commit/e0281f3fe03e14d7c1a72edecf06664442f7ce67)
|
|
319
|
+
|
|
320
|
+
#### [v0.5.0](https://github.com/avil13/vue-act-master/compare/v0.3.1...v0.5.0)
|
|
321
|
+
|
|
322
|
+
> 20 October 2020
|
|
323
|
+
|
|
324
|
+
#### [v0.3.1](https://github.com/avil13/vue-act-master/compare/v0.3.0...v0.3.1)
|
|
325
|
+
|
|
326
|
+
> 20 April 2022
|
|
327
|
+
|
|
328
|
+
- build(deps): bump prismjs from 1.25.0 to 1.27.0 [`#28`](https://github.com/avil13/vue-act-master/pull/28)
|
|
329
|
+
- build(deps): bump nanoid from 3.1.30 to 3.2.0 [`#27`](https://github.com/avil13/vue-act-master/pull/27)
|
|
330
|
+
- Feat/progress [`#26`](https://github.com/avil13/vue-act-master/pull/26)
|
|
331
|
+
- build(deps): bump tmpl from 1.0.4 to 1.0.5 [`#25`](https://github.com/avil13/vue-act-master/pull/25)
|
|
332
|
+
- build(deps): bump ws from 7.4.5 to 7.5.0 [`#17`](https://github.com/avil13/vue-act-master/pull/17)
|
|
333
|
+
- build(deps): bump postcss from 7.0.35 to 7.0.36 [`#18`](https://github.com/avil13/vue-act-master/pull/18)
|
|
334
|
+
- build(deps): bump ssri from 8.0.0 to 8.0.1 [`#14`](https://github.com/avil13/vue-act-master/pull/14)
|
|
335
|
+
- build(deps): bump node-notifier from 8.0.0 to 8.0.1 [`#13`](https://github.com/avil13/vue-act-master/pull/13)
|
|
336
|
+
- build(deps): bump ini from 1.3.5 to 1.3.8 [`#10`](https://github.com/avil13/vue-act-master/pull/10)
|
|
337
|
+
- Create LICENSE [`#8`](https://github.com/avil13/vue-act-master/pull/8)
|
|
338
|
+
- Bump node-fetch from 2.6.0 to 2.6.1 in /packages/vue-act-master [`#7`](https://github.com/avil13/vue-act-master/pull/7)
|
|
339
|
+
- wip: chrome-devtools [`f336e5d`](https://github.com/avil13/vue-act-master/commit/f336e5d0b3ac168c5c01390e8e4aa6c0fa18f9b5)
|
|
340
|
+
- chore: removed unused packages [`04f38de`](https://github.com/avil13/vue-act-master/commit/04f38de4e233faab7027602439ded4cf759fa2c1)
|
|
341
|
+
- feat: the division into packages 3 [`4188460`](https://github.com/avil13/vue-act-master/commit/4188460ef7c12800b99ca5dd603136078046dc9d)
|
|
342
|
+
|
|
343
|
+
#### [v0.3.0](https://github.com/avil13/vue-act-master/compare/v0.2.1...v0.3.0)
|
|
344
|
+
|
|
345
|
+
> 17 August 2020
|
|
346
|
+
|
|
347
|
+
- feat: added Emit decorator [`8d43ca7`](https://github.com/avil13/vue-act-master/commit/8d43ca7aeddc8511ffea3ad978bad12d97b3ff05)
|
|
348
|
+
- feat: added auto-changelog [`5a7a377`](https://github.com/avil13/vue-act-master/commit/5a7a37780b7d743e0f838627f39e4b614cb6f6db)
|
|
349
|
+
|
|
350
|
+
#### [v0.2.1](https://github.com/avil13/vue-act-master/compare/v0.2.0...v0.2.1)
|
|
351
|
+
|
|
352
|
+
> 16 August 2020
|
|
353
|
+
|
|
354
|
+
- feat: removal of unnecessary code [`66b4021`](https://github.com/avil13/vue-act-master/commit/66b4021cfc20b86e185a16ae879702231026b192)
|
|
355
|
+
- fix: fixed useDI method name [`3189c9f`](https://github.com/avil13/vue-act-master/commit/3189c9f355498bec11c5277d490fbc136f005f95)
|
|
356
|
+
|
|
357
|
+
#### [v0.2.0](https://github.com/avil13/vue-act-master/compare/v0.1.2...v0.2.0)
|
|
358
|
+
|
|
359
|
+
> 15 August 2020
|
|
360
|
+
|
|
361
|
+
- feat: update dependencies [`#6`](https://github.com/avil13/vue-act-master/pull/6)
|
|
362
|
+
- Bump elliptic from 6.5.2 to 6.5.3 [`#5`](https://github.com/avil13/vue-act-master/pull/5)
|
|
363
|
+
- feat: added UseDI decorator [`3152f7e`](https://github.com/avil13/vue-act-master/commit/3152f7e7a0d9565b2fad1059e5c0ec60eb560a8e)
|
|
364
|
+
|
|
365
|
+
#### [v0.1.2](https://github.com/avil13/vue-act-master/compare/v0.1.1...v0.1.2)
|
|
366
|
+
|
|
367
|
+
> 31 July 2020
|
|
368
|
+
|
|
369
|
+
- updated README [`a6d2c5a`](https://github.com/avil13/vue-act-master/commit/a6d2c5afb6074d23c72802dc398566502bd2a3d7)
|
|
370
|
+
- chore: change the name properties [`f55920f`](https://github.com/avil13/vue-act-master/commit/f55920f219be64e5589336a31565f0bff3ae62fe)
|
|
371
|
+
|
|
372
|
+
#### [v0.1.1](https://github.com/avil13/vue-act-master/compare/v0.1.0...v0.1.1)
|
|
373
|
+
|
|
374
|
+
> 21 May 2020
|
|
375
|
+
|
|
376
|
+
- fix useEmit cases [`d9673ea`](https://github.com/avil13/vue-act-master/commit/d9673ea9257e3117c393ca6193824a62c7ceb81e)
|
|
377
|
+
|
|
378
|
+
#### [v0.1.0](https://github.com/avil13/vue-act-master/compare/v0.0.11...v0.1.0)
|
|
379
|
+
|
|
380
|
+
> 16 May 2020
|
|
381
|
+
|
|
382
|
+
- Added
|
|
-
|
|
|
1
|
-
|
|
2
|
-
|
|
383
|
+
- wip [`e72a93d`](https://github.com/avil13/vue-act-master/commit/e72a93d8d8db49cf9cb987013bccb4bb43aadcf2)
|
|
384
|
+
|
|
385
|
+
#### [v0.0.11](https://github.com/avil13/vue-act-master/compare/v0.0.10...v0.0.11)
|
|
386
|
+
|
|
387
|
+
> 3 May 2020
|
|
388
|
+
|
|
389
|
+
- emitAction fix [`8f9c178`](https://github.com/avil13/vue-act-master/commit/8f9c17804dd3b9bfe8a42b483834d3f339bb11d8)
|
|
390
|
+
|
|
391
|
+
#### [v0.0.10](https://github.com/avil13/vue-act-master/compare/v0.0.9...v0.0.10)
|
|
392
|
+
|
|
393
|
+
> 3 May 2020
|
|
394
|
+
|
|
395
|
+
- add emit and change subscribe [`e9e0fdf`](https://github.com/avil13/vue-act-master/commit/e9e0fdfd8ce032c1abc4e6a6f0a66229139fba84)
|
|
396
|
+
|
|
397
|
+
#### [v0.0.9](https://github.com/avil13/vue-act-master/compare/v0.0.8...v0.0.9)
|
|
398
|
+
|
|
399
|
+
> 3 May 2020
|
|
400
|
+
|
|
401
|
+
- add setState method [`7a006b6`](https://github.com/avil13/vue-act-master/commit/7a006b6018d2f18c2dc2f2725354f608de564b23)
|
|
402
|
+
|
|
403
|
+
#### [v0.0.8](https://github.com/avil13/vue-act-master/compare/v0.0.7...v0.0.8)
|
|
404
|
+
|
|
405
|
+
> 3 May 2020
|
|
406
|
+
|
|
407
|
+
- states [`e6cde84`](https://github.com/avil13/vue-act-master/commit/e6cde846ed32b2ae0efe53d0e921d4d06cec6dcc)
|
|
408
|
+
|
|
409
|
+
#### [v0.0.7](https://github.com/avil13/vue-act-master/compare/v0.0.6...v0.0.7)
|
|
410
|
+
|
|
411
|
+
> 2 May 2020
|
|
412
|
+
|
|
413
|
+
- useVue method [`01d8a41`](https://github.com/avil13/vue-act-master/commit/01d8a41a26841707be635c1614f3faeac770c46e)
|
|
414
|
+
|
|
415
|
+
#### [v0.0.6](https://github.com/avil13/vue-act-master/compare/v0.0.2...v0.0.6)
|
|
416
|
+
|
|
417
|
+
> 2 May 2020
|
|
418
|
+
|
|
419
|
+
- wip [`fb7b995`](https://github.com/avil13/vue-act-master/commit/fb7b995e039c7ea3ff46d075d32eebd611bcaca6)
|
|
420
|
+
- remove saga [`20e292c`](https://github.com/avil13/vue-act-master/commit/20e292cf06b327e8e1135272d02c9bd606020d41)
|
|
421
|
+
- nuxt [`05192bb`](https://github.com/avil13/vue-act-master/commit/05192bb754fc53dc8378e4e2dcff1496f6431221)
|
|
422
|
+
|
|
423
|
+
#### v0.0.2
|
|
424
|
+
|
|
425
|
+
> 2 April 2020
|
|
426
|
+
|
|
427
|
+
- init [`b3fea4f`](https://github.com/avil13/vue-act-master/commit/b3fea4f252cec0904010eea73e2c7935038926ff)
|
|
428
|
+
- wip saga [`c86f87f`](https://github.com/avil13/vue-act-master/commit/c86f87fbf8a62cc4278cb30fe678c88e26506e74)
|
|
429
|
+
- update [`52ccb9b`](https://github.com/avil13/vue-act-master/commit/52ccb9bcb414f743f21c0ce705b0d5b8f74601d7)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActEventName } from 'act-master';
|
|
2
|
+
import { VueDecorator } from './helpers';
|
|
3
|
+
/**
|
|
4
|
+
* Decorator auto binning on the subscription result.
|
|
5
|
+
* Use only in Vue2 - otherwise there will be no auto unsubscribe,
|
|
6
|
+
* that will cause memory leak.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare function ActInProgress(eventName: ActEventName | ActEventName[]): VueDecorator;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ActEventName } from 'act-master';
|
|
2
|
+
import { VueDecorator } from './helpers';
|
|
3
|
+
/**
|
|
4
|
+
* Decorator auto binning on the subscription result.
|
|
5
|
+
* Use only in Vue2 - otherwise there will be no auto unsubscribe,
|
|
6
|
+
* that will cause memory leak.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare function ActSubscribe(eventName: ActEventName, pathToData?: PathToData, defaultValue?: unknown): VueDecorator;
|
|
10
|
+
type GetValueCallback = (value: any) => any;
|
|
11
|
+
type PathToData = string | null | GetValueCallback;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentOptions } from 'vue';
|
|
2
|
+
type Vue = any;
|
|
3
|
+
export interface VueDecorator {
|
|
4
|
+
(Ctor: any): void;
|
|
5
|
+
(target: Vue, key: string): void;
|
|
6
|
+
(target: Vue, key: string, index: number): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function createDecorator(factory: (options: ComponentOptions<Vue>, key: string, index: number) => void): VueDecorator;
|
|
9
|
+
export declare function objectPath(obj: any, path: string | null, defaultValue: unknown): any;
|
|
10
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ActMaster, ActMasterOptions } from 'act-master';
|
|
2
|
+
export * from 'act-master';
|
|
3
|
+
export * from './decorators';
|
|
4
|
+
/**
|
|
5
|
+
* Declaration vue2
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
declare module 'vue/types/vue' {
|
|
9
|
+
interface Vue {
|
|
10
|
+
$act: ActMaster;
|
|
11
|
+
}
|
|
12
|
+
interface VueConstructor {
|
|
13
|
+
act: ActMaster;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Declaration vue3
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
declare module '@vue/runtime-core' {
|
|
21
|
+
interface ComponentCustomProperties {
|
|
22
|
+
/**
|
|
23
|
+
* Normalized current location. See {@link RouteLocationNormalizedLoaded}.
|
|
24
|
+
*/
|
|
25
|
+
$act: ActMaster;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare class VueActMaster {
|
|
29
|
+
static instance: ActMaster | null;
|
|
30
|
+
static install(vue: any, options?: ActMasterOptions): void;
|
|
31
|
+
install(vue: any, options?: ActMasterOptions): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var D = (e, t, s) => t in e ? P(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
+
var w = (e, t, s) => (D(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
4
|
+
var v = Object.defineProperty, $ = (e, t, s) => t in e ? v(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, c = (e, t, s) => ($(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
5
|
+
class b {
|
|
6
|
+
constructor(t, s) {
|
|
7
|
+
if (c(this, "reason", ""), c(this, "data"), typeof t == "string") {
|
|
8
|
+
this.reason = t, this.data = s;
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (t && typeof t == "object")
|
|
12
|
+
return Object.assign(t, {
|
|
13
|
+
_name: this._name,
|
|
14
|
+
reason: t.message || ""
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
static get _name() {
|
|
18
|
+
return "__CancelledAct__";
|
|
19
|
+
}
|
|
20
|
+
get _name() {
|
|
21
|
+
return b._name;
|
|
22
|
+
}
|
|
23
|
+
static is(t) {
|
|
24
|
+
return !t || typeof t != "object" ? !1 : t._name === b._name;
|
|
25
|
+
}
|
|
26
|
+
valueOf() {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
toString() {
|
|
30
|
+
return this.reason;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
class y extends Error {
|
|
34
|
+
constructor(t) {
|
|
35
|
+
super(`Can't find "${t}" action`), this.eventName = t;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
class C extends Error {
|
|
39
|
+
constructor(t) {
|
|
40
|
+
super(`Action "${t}" already existing`), this.eventName = t;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
class M extends Error {
|
|
44
|
+
constructor(t) {
|
|
45
|
+
super(`"${t}" already exists in DI`), this.key = t;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
class N extends Error {
|
|
49
|
+
constructor() {
|
|
50
|
+
super(`"di" can't be array`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const O = "2.0.1";
|
|
54
|
+
function S(e) {
|
|
55
|
+
return function(t, s) {
|
|
56
|
+
t._DI_MAP_ || (t._DI_MAP_ = {}), t._DI_MAP_[s] = e;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function j() {
|
|
60
|
+
return (e, t) => {
|
|
61
|
+
Object.defineProperty(e, "useEmit", {
|
|
62
|
+
value: function(s) {
|
|
63
|
+
this[t] = s;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
const _ = class {
|
|
69
|
+
constructor(e = {}) {
|
|
70
|
+
if (c(this, "version", O), c(this, "_actions", /* @__PURE__ */ new Map()), c(this, "_watchers", /* @__PURE__ */ new Map()), c(this, "_listeners", /* @__PURE__ */ new Map()), c(this, "_inProgressWatchers", /* @__PURE__ */ new Map()), c(this, "_subsMap", /* @__PURE__ */ new Map()), c(this, "_lastUnsubscribe", () => !1), c(this, "_DIContainer", {}), c(this, "_singlePromisesStore", /* @__PURE__ */ new Map()), c(this, "config", {
|
|
71
|
+
errorOnReplaceDI: !1,
|
|
72
|
+
autoUnsubscribeCallback: void 0,
|
|
73
|
+
errorHandlerEventName: void 0
|
|
74
|
+
}), c(this, "exec", async (i, ...l) => {
|
|
75
|
+
if (this.setProgress(i, !0), this._singlePromisesStore.has(i)) {
|
|
76
|
+
const h = this._singlePromisesStore.get(i);
|
|
77
|
+
if (h)
|
|
78
|
+
return h;
|
|
79
|
+
}
|
|
80
|
+
const u = this.emit(i, ...l).then((h) => (this.setProgress(i, !1), h)).then((h) => (this._singlePromisesStore.has(i) && this._singlePromisesStore.delete(i), h)).catch((h) => {
|
|
81
|
+
if (this.setProgress(i, !1), h instanceof y)
|
|
82
|
+
throw h;
|
|
83
|
+
const m = this.getActionOrNull(i);
|
|
84
|
+
if (m != null && m.errorHandlerEventName && m.errorHandlerEventName !== i)
|
|
85
|
+
return this.emit(m.errorHandlerEventName, h), new b(h);
|
|
86
|
+
if (this.config.errorHandlerEventName && this.config.errorHandlerEventName !== i)
|
|
87
|
+
return this.emit(this.config.errorHandlerEventName, h), Promise.resolve(null);
|
|
88
|
+
throw h;
|
|
89
|
+
}), f = this.getActionOrNull(i);
|
|
90
|
+
return f && f.isSingleExec && this._singlePromisesStore.set(i, u), u;
|
|
91
|
+
}), c(this, "subscribe", (i, l, u) => {
|
|
92
|
+
this._listeners.set(i, [
|
|
93
|
+
...this._listeners.get(i) || [],
|
|
94
|
+
l
|
|
95
|
+
]);
|
|
96
|
+
const f = () => this.unsubscribe(i, l);
|
|
97
|
+
return this._lastUnsubscribe = f, this.config.autoUnsubscribeCallback && this.config.autoUnsubscribeCallback({
|
|
98
|
+
context: u,
|
|
99
|
+
listener: l,
|
|
100
|
+
eventName: i
|
|
101
|
+
}), u && this.subsList.add(u), f;
|
|
102
|
+
}), c(this, "once", (i, l) => {
|
|
103
|
+
const u = this.subscribe(i, (...f) => {
|
|
104
|
+
u(), l(...f);
|
|
105
|
+
});
|
|
106
|
+
return u;
|
|
107
|
+
}), c(this, "on", (i, l, u) => this.subscribe(i, l, u)), _.instance)
|
|
108
|
+
return _.instance;
|
|
109
|
+
const {
|
|
110
|
+
actions: t,
|
|
111
|
+
di: s,
|
|
112
|
+
errorOnReplaceDI: r,
|
|
113
|
+
autoUnsubscribeCallback: n,
|
|
114
|
+
errorHandlerEventName: o
|
|
115
|
+
} = e;
|
|
116
|
+
if (t && this.addActions(t), typeof n == "function" && (this.config.autoUnsubscribeCallback = n), typeof s == "object" && s) {
|
|
117
|
+
if (Array.isArray(s))
|
|
118
|
+
throw new N();
|
|
119
|
+
for (const i in s)
|
|
120
|
+
Object.prototype.hasOwnProperty.call(s, i) && this.setDI(i, s[i]);
|
|
121
|
+
}
|
|
122
|
+
typeof r == "boolean" && (this.config.errorOnReplaceDI = r), typeof o == "string" && (this.config.errorHandlerEventName = o), _.instance = this;
|
|
123
|
+
}
|
|
124
|
+
static getInstance() {
|
|
125
|
+
if (!_.instance)
|
|
126
|
+
throw new Error("ActMaster not initialized");
|
|
127
|
+
return _.instance;
|
|
128
|
+
}
|
|
129
|
+
//#region [ Actions ]
|
|
130
|
+
addActions(e) {
|
|
131
|
+
Array.isArray(e) && e.forEach((t) => {
|
|
132
|
+
this.addAction(t);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
addAction(e) {
|
|
136
|
+
const t = e.name;
|
|
137
|
+
if (this._actions.has(t))
|
|
138
|
+
throw new C(t);
|
|
139
|
+
if (e.useEmit) {
|
|
140
|
+
const s = (r, ...n) => this.emit(r, ...n);
|
|
141
|
+
e.useEmit(s);
|
|
142
|
+
}
|
|
143
|
+
return this._actions.set(t, e), this.emitDIProps(e), e.watch && e.watch.forEach((s) => {
|
|
144
|
+
const r = this._watchers.get(s) || [];
|
|
145
|
+
r.push(t), this._watchers.set(s, r);
|
|
146
|
+
}), this;
|
|
147
|
+
}
|
|
148
|
+
removeAction(e) {
|
|
149
|
+
if (!this._actions.has(e))
|
|
150
|
+
throw new y(e);
|
|
151
|
+
this._actions.delete(e);
|
|
152
|
+
}
|
|
153
|
+
clearActions() {
|
|
154
|
+
this._actions.clear();
|
|
155
|
+
}
|
|
156
|
+
clearListeners() {
|
|
157
|
+
for (const e in this._listeners)
|
|
158
|
+
this._listeners.has(e) && this._listeners.delete(e);
|
|
159
|
+
}
|
|
160
|
+
async emit(e, ...t) {
|
|
161
|
+
const s = this.getActionOrNull(e);
|
|
162
|
+
if (s === null)
|
|
163
|
+
throw new y(e);
|
|
164
|
+
if (s.validateInput) {
|
|
165
|
+
const n = await s.validateInput(...t);
|
|
166
|
+
if (n !== !0)
|
|
167
|
+
return this.config.errorHandlerEventName && this.emit(this.config.errorHandlerEventName, n), n;
|
|
168
|
+
}
|
|
169
|
+
const r = await s.exec(...t);
|
|
170
|
+
if (r instanceof b || b.is(r))
|
|
171
|
+
return r;
|
|
172
|
+
if (this.notifyListeners(e, r), this._watchers.has(e))
|
|
173
|
+
for (const n of this._watchers.get(e) || [])
|
|
174
|
+
this.emit(n, r);
|
|
175
|
+
return r;
|
|
176
|
+
}
|
|
177
|
+
notifyListeners(e, t) {
|
|
178
|
+
const s = this._listeners.get(e);
|
|
179
|
+
s && s.forEach((r) => {
|
|
180
|
+
r(t);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
unsubscribe(e, t) {
|
|
184
|
+
const s = this._listeners.get(e);
|
|
185
|
+
if (!s)
|
|
186
|
+
return this._subsMap.set(e, []), !1;
|
|
187
|
+
const r = s.indexOf(t);
|
|
188
|
+
return r > -1 && s.splice(r, 1), this._listeners.set(e, s), r > -1;
|
|
189
|
+
}
|
|
190
|
+
off(e, t) {
|
|
191
|
+
return this.unsubscribe(e, t);
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region [ extends functions ]
|
|
195
|
+
inProgress(e, t) {
|
|
196
|
+
if (Array.isArray(e)) {
|
|
197
|
+
e.forEach((n) => this._inProgressWatchers.set(n, t));
|
|
198
|
+
const r = () => {
|
|
199
|
+
e.forEach((n) => {
|
|
200
|
+
this._inProgressWatchers.delete(n);
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
return this._lastUnsubscribe = r, r;
|
|
204
|
+
}
|
|
205
|
+
this._inProgressWatchers.set(e, t);
|
|
206
|
+
const s = () => this._inProgressWatchers.delete(e);
|
|
207
|
+
return this._lastUnsubscribe = s, s;
|
|
208
|
+
}
|
|
209
|
+
setProgress(e, t) {
|
|
210
|
+
this._inProgressWatchers.has(e) && this._inProgressWatchers.get(e)(t);
|
|
211
|
+
}
|
|
212
|
+
get subsList() {
|
|
213
|
+
return {
|
|
214
|
+
add: (e, ...t) => {
|
|
215
|
+
t.length || t.push(this._lastUnsubscribe);
|
|
216
|
+
const s = this._subsMap.get(e) || [];
|
|
217
|
+
s.push(...t), this._subsMap.set(e, s);
|
|
218
|
+
},
|
|
219
|
+
clear: (e) => {
|
|
220
|
+
(this._subsMap.get(e) || []).forEach((t) => t()), this._subsMap.delete(e);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
// #endregion
|
|
225
|
+
//#region [ DI ]
|
|
226
|
+
clearDI() {
|
|
227
|
+
this._DIContainer = {};
|
|
228
|
+
}
|
|
229
|
+
setDI(e, t) {
|
|
230
|
+
if (this.config.errorOnReplaceDI && this._DIContainer[e])
|
|
231
|
+
throw new M(e);
|
|
232
|
+
return this._DIContainer[e] = t, this.freshEmitDI(), this;
|
|
233
|
+
}
|
|
234
|
+
freshEmitDI() {
|
|
235
|
+
let e;
|
|
236
|
+
Object.keys(this._actions).forEach((t) => {
|
|
237
|
+
e = this._actions.get(t), e && this.emitDIProps(e);
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
emitDIProps(e) {
|
|
241
|
+
e._DI_CONTAINER_ || Object.defineProperty(e, "_DI_CONTAINER_", {
|
|
242
|
+
get: () => this._DIContainer,
|
|
243
|
+
enumerable: !1
|
|
244
|
+
// Uncomment for DEBUG
|
|
245
|
+
}), e._DI_MAP_ && Object.keys(e._DI_MAP_).forEach((t) => {
|
|
246
|
+
var s;
|
|
247
|
+
if (e[t])
|
|
248
|
+
return;
|
|
249
|
+
const r = (s = e._DI_MAP_) == null ? void 0 : s[t];
|
|
250
|
+
r && Object.defineProperty(e, t, {
|
|
251
|
+
get() {
|
|
252
|
+
return this._DI_CONTAINER_[r];
|
|
253
|
+
},
|
|
254
|
+
enumerable: !0
|
|
255
|
+
});
|
|
256
|
+
}), e.useDI && e.useDI(this._DIContainer);
|
|
257
|
+
}
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region [ helpers ]
|
|
260
|
+
getActionOrNull(e) {
|
|
261
|
+
return this._actions.get(e) || null;
|
|
262
|
+
}
|
|
263
|
+
//#endregion
|
|
264
|
+
};
|
|
265
|
+
let g = _;
|
|
266
|
+
c(g, "instance");
|
|
267
|
+
const a = class {
|
|
268
|
+
constructor() {
|
|
269
|
+
}
|
|
270
|
+
static getInstance(e = {}) {
|
|
271
|
+
return a.resetAll(), a.removeSingleton(), a.$act = new g(e), a.$act;
|
|
272
|
+
}
|
|
273
|
+
static resetAll() {
|
|
274
|
+
a.$act && (a.$act.clearActions(), a.$act.clearListeners(), a.$act.clearDI()), a._lastResult = void 0;
|
|
275
|
+
}
|
|
276
|
+
static removeSingleton() {
|
|
277
|
+
g.instance = void 0, a._lastResult = void 0;
|
|
278
|
+
}
|
|
279
|
+
static addActions(e) {
|
|
280
|
+
a.$act.addActions(e);
|
|
281
|
+
}
|
|
282
|
+
static exec(e, ...t) {
|
|
283
|
+
return a.$act.exec(e, ...t).then((s) => (a._lastResult = s, s)).catch((s) => {
|
|
284
|
+
throw a._lastResult = s, s;
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
static subscribe(e, t, s) {
|
|
288
|
+
return a.$act.subscribe(e, t, s);
|
|
289
|
+
}
|
|
290
|
+
static entityCount(e) {
|
|
291
|
+
if (e === "di")
|
|
292
|
+
return Object.keys(a.$act._DIContainer).length;
|
|
293
|
+
if (e === "actions")
|
|
294
|
+
return a.$act._actions.size;
|
|
295
|
+
const t = {
|
|
296
|
+
watchers: "_watchers",
|
|
297
|
+
listeners: "_listeners"
|
|
298
|
+
}[e];
|
|
299
|
+
let s = 0;
|
|
300
|
+
return a.$act[t].forEach((r) => {
|
|
301
|
+
s += r.length;
|
|
302
|
+
}), s;
|
|
303
|
+
}
|
|
304
|
+
static getLastResult() {
|
|
305
|
+
return a._lastResult;
|
|
306
|
+
}
|
|
307
|
+
static makeActionStub(e) {
|
|
308
|
+
return {
|
|
309
|
+
name: `Act_${Math.random()}`,
|
|
310
|
+
exec: () => null,
|
|
311
|
+
...e
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
let A = a;
|
|
316
|
+
c(A, "$act"), c(A, "_lastResult");
|
|
317
|
+
d.init = (e) => new g(e);
|
|
318
|
+
const U = (e, t, s) => {
|
|
319
|
+
const r = d().subscribe(e, t);
|
|
320
|
+
return s && (typeof s == "function" ? s(r) : d().subsList.add(s, r)), r;
|
|
321
|
+
}, x = (e) => d().subsList.clear(e);
|
|
322
|
+
d.subListClear = x;
|
|
323
|
+
function d() {
|
|
324
|
+
const e = g.getInstance();
|
|
325
|
+
if (!e)
|
|
326
|
+
throw new Error(
|
|
327
|
+
'Instance call before initialization. Make a "new ActMaster()" first'
|
|
328
|
+
);
|
|
329
|
+
return e;
|
|
330
|
+
}
|
|
331
|
+
const k = (e) => {
|
|
332
|
+
if (typeof e != "function" || !e.name)
|
|
333
|
+
throw new Error(`Pass not valid function: "${e}"`);
|
|
334
|
+
return {
|
|
335
|
+
name: e.name,
|
|
336
|
+
exec: e
|
|
337
|
+
};
|
|
338
|
+
}, L = k;
|
|
339
|
+
function E(e) {
|
|
340
|
+
return (t, s, r) => {
|
|
341
|
+
const n = typeof t == "function" ? t : t.constructor;
|
|
342
|
+
n.__decorators__ || (n.__decorators__ = []), typeof r != "number" && (r = void 0), n.__decorators__.push((o) => e(o, s, r));
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
function W(e, t, s = null) {
|
|
346
|
+
return E((r, n) => {
|
|
347
|
+
const o = {
|
|
348
|
+
created() {
|
|
349
|
+
this.$act.subscribe(
|
|
350
|
+
e,
|
|
351
|
+
(i) => {
|
|
352
|
+
const l = R(i, t, s);
|
|
353
|
+
typeof this[n] == "function" ? this[n](l) : this[n] = l;
|
|
354
|
+
},
|
|
355
|
+
this
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
r.mixins ? r.mixins = [...r.mixins, o] : r.mixins = [o];
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
function R(e, t, s) {
|
|
363
|
+
if (e === void 0)
|
|
364
|
+
return s;
|
|
365
|
+
if (typeof t == "function")
|
|
366
|
+
return t(e);
|
|
367
|
+
let r = e;
|
|
368
|
+
if (t) {
|
|
369
|
+
const n = (t || "").split(".");
|
|
370
|
+
let o, i = 0;
|
|
371
|
+
for (i = 0; i < n.length && r; i++)
|
|
372
|
+
o = n[i], r = r[o];
|
|
373
|
+
}
|
|
374
|
+
return r === void 0 ? s : r;
|
|
375
|
+
}
|
|
376
|
+
function T(e) {
|
|
377
|
+
return E((t, s) => {
|
|
378
|
+
const r = {
|
|
379
|
+
created() {
|
|
380
|
+
const n = this.$act.inProgress(e, (o) => {
|
|
381
|
+
this[s] = o;
|
|
382
|
+
});
|
|
383
|
+
this.$once("hook:beforeDestroy", () => {
|
|
384
|
+
n(e);
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
t.mixins ? t.mixins = [...t.mixins, r] : t.mixins = [r];
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
const p = class {
|
|
392
|
+
static install(t, s) {
|
|
393
|
+
var n;
|
|
394
|
+
debugger;
|
|
395
|
+
const r = new g({
|
|
396
|
+
autoUnsubscribeCallback({ context: o, eventName: i, listener: l }) {
|
|
397
|
+
o && typeof o == "function" ? o(function() {
|
|
398
|
+
r.unsubscribe(i, l);
|
|
399
|
+
}) : o && typeof o.$once == "function" && o.$once("hook:beforeDestroy", () => {
|
|
400
|
+
r.unsubscribe(i, l);
|
|
401
|
+
});
|
|
402
|
+
},
|
|
403
|
+
...s
|
|
404
|
+
});
|
|
405
|
+
p.instance = r, (n = t.config) != null && n.globalProperties && !t.config.globalProperties.$act ? (t.config.globalProperties.$act = r, t.provide("$act", r)) : Object.prototype.hasOwnProperty.call(t, "$act") || (t.act = r, t.prototype.$act = r);
|
|
406
|
+
}
|
|
407
|
+
install(t, s) {
|
|
408
|
+
p.install(t, s);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
let I = p;
|
|
412
|
+
w(I, "instance", null);
|
|
413
|
+
export {
|
|
414
|
+
T as ActInProgress,
|
|
415
|
+
g as ActMaster,
|
|
416
|
+
W as ActSubscribe,
|
|
417
|
+
A as ActTest,
|
|
418
|
+
C as ActinonAlreadyExistingError,
|
|
419
|
+
b as CancelledAct,
|
|
420
|
+
j as Emit,
|
|
421
|
+
N as InvalidDITypeError,
|
|
422
|
+
M as KeyAlreadyExistsInDIError,
|
|
423
|
+
y as NotFoundActionError,
|
|
424
|
+
S as UseDI,
|
|
425
|
+
I as VueActMaster,
|
|
426
|
+
d as act,
|
|
427
|
+
U as actSubscribe,
|
|
428
|
+
L as fn2act,
|
|
429
|
+
k as functionToAction,
|
|
430
|
+
x as subListClear
|
|
431
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(c,u){typeof exports=="object"&&typeof module<"u"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(c=typeof globalThis<"u"?globalThis:c||self,u(c["vue-act-master"]={}))})(this,function(c){"use strict";var W=Object.defineProperty;var x=(c,u,b)=>u in c?W(c,u,{enumerable:!0,configurable:!0,writable:!0,value:b}):c[u]=b;var O=(c,u,b)=>(x(c,typeof u!="symbol"?u+"":u,b),b);var u=Object.defineProperty,b=(e,t,s)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,o=(e,t,s)=>(b(e,typeof t!="symbol"?t+"":t,s),s);class d{constructor(t,s){if(o(this,"reason",""),o(this,"data"),typeof t=="string"){this.reason=t,this.data=s;return}if(t&&typeof t=="object")return Object.assign(t,{_name:this._name,reason:t.message||""})}static get _name(){return"__CancelledAct__"}get _name(){return d._name}static is(t){return!t||typeof t!="object"?!1:t._name===d._name}valueOf(){return null}toString(){return this.reason}}class A extends Error{constructor(t){super(`Can't find "${t}" action`),this.eventName=t}}class D extends Error{constructor(t){super(`Action "${t}" already existing`),this.eventName=t}}class v extends Error{constructor(t){super(`"${t}" already exists in DI`),this.key=t}}class $ extends Error{constructor(){super(`"di" can't be array`)}}const S="2.0.1";function k(e){return function(t,s){t._DI_MAP_||(t._DI_MAP_={}),t._DI_MAP_[s]=e}}function j(){return(e,t)=>{Object.defineProperty(e,"useEmit",{value:function(s){this[t]=s}})}}const y=class{constructor(e={}){if(o(this,"version",S),o(this,"_actions",new Map),o(this,"_watchers",new Map),o(this,"_listeners",new Map),o(this,"_inProgressWatchers",new Map),o(this,"_subsMap",new Map),o(this,"_lastUnsubscribe",()=>!1),o(this,"_DIContainer",{}),o(this,"_singlePromisesStore",new Map),o(this,"config",{errorOnReplaceDI:!1,autoUnsubscribeCallback:void 0,errorHandlerEventName:void 0}),o(this,"exec",async(i,...h)=>{if(this.setProgress(i,!0),this._singlePromisesStore.has(i)){const f=this._singlePromisesStore.get(i);if(f)return f}const _=this.emit(i,...h).then(f=>(this.setProgress(i,!1),f)).then(f=>(this._singlePromisesStore.has(i)&&this._singlePromisesStore.delete(i),f)).catch(f=>{if(this.setProgress(i,!1),f instanceof A)throw f;const P=this.getActionOrNull(i);if(P!=null&&P.errorHandlerEventName&&P.errorHandlerEventName!==i)return this.emit(P.errorHandlerEventName,f),new d(f);if(this.config.errorHandlerEventName&&this.config.errorHandlerEventName!==i)return this.emit(this.config.errorHandlerEventName,f),Promise.resolve(null);throw f}),m=this.getActionOrNull(i);return m&&m.isSingleExec&&this._singlePromisesStore.set(i,_),_}),o(this,"subscribe",(i,h,_)=>{this._listeners.set(i,[...this._listeners.get(i)||[],h]);const m=()=>this.unsubscribe(i,h);return this._lastUnsubscribe=m,this.config.autoUnsubscribeCallback&&this.config.autoUnsubscribeCallback({context:_,listener:h,eventName:i}),_&&this.subsList.add(_),m}),o(this,"once",(i,h)=>{const _=this.subscribe(i,(...m)=>{_(),h(...m)});return _}),o(this,"on",(i,h,_)=>this.subscribe(i,h,_)),y.instance)return y.instance;const{actions:t,di:s,errorOnReplaceDI:r,autoUnsubscribeCallback:n,errorHandlerEventName:l}=e;if(t&&this.addActions(t),typeof n=="function"&&(this.config.autoUnsubscribeCallback=n),typeof s=="object"&&s){if(Array.isArray(s))throw new $;for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&this.setDI(i,s[i])}typeof r=="boolean"&&(this.config.errorOnReplaceDI=r),typeof l=="string"&&(this.config.errorHandlerEventName=l),y.instance=this}static getInstance(){if(!y.instance)throw new Error("ActMaster not initialized");return y.instance}addActions(e){Array.isArray(e)&&e.forEach(t=>{this.addAction(t)})}addAction(e){const t=e.name;if(this._actions.has(t))throw new D(t);if(e.useEmit){const s=(r,...n)=>this.emit(r,...n);e.useEmit(s)}return this._actions.set(t,e),this.emitDIProps(e),e.watch&&e.watch.forEach(s=>{const r=this._watchers.get(s)||[];r.push(t),this._watchers.set(s,r)}),this}removeAction(e){if(!this._actions.has(e))throw new A(e);this._actions.delete(e)}clearActions(){this._actions.clear()}clearListeners(){for(const e in this._listeners)this._listeners.has(e)&&this._listeners.delete(e)}async emit(e,...t){const s=this.getActionOrNull(e);if(s===null)throw new A(e);if(s.validateInput){const n=await s.validateInput(...t);if(n!==!0)return this.config.errorHandlerEventName&&this.emit(this.config.errorHandlerEventName,n),n}const r=await s.exec(...t);if(r instanceof d||d.is(r))return r;if(this.notifyListeners(e,r),this._watchers.has(e))for(const n of this._watchers.get(e)||[])this.emit(n,r);return r}notifyListeners(e,t){const s=this._listeners.get(e);s&&s.forEach(r=>{r(t)})}unsubscribe(e,t){const s=this._listeners.get(e);if(!s)return this._subsMap.set(e,[]),!1;const r=s.indexOf(t);return r>-1&&s.splice(r,1),this._listeners.set(e,s),r>-1}off(e,t){return this.unsubscribe(e,t)}inProgress(e,t){if(Array.isArray(e)){e.forEach(n=>this._inProgressWatchers.set(n,t));const r=()=>{e.forEach(n=>{this._inProgressWatchers.delete(n)})};return this._lastUnsubscribe=r,r}this._inProgressWatchers.set(e,t);const s=()=>this._inProgressWatchers.delete(e);return this._lastUnsubscribe=s,s}setProgress(e,t){this._inProgressWatchers.has(e)&&this._inProgressWatchers.get(e)(t)}get subsList(){return{add:(e,...t)=>{t.length||t.push(this._lastUnsubscribe);const s=this._subsMap.get(e)||[];s.push(...t),this._subsMap.set(e,s)},clear:e=>{(this._subsMap.get(e)||[]).forEach(t=>t()),this._subsMap.delete(e)}}}clearDI(){this._DIContainer={}}setDI(e,t){if(this.config.errorOnReplaceDI&&this._DIContainer[e])throw new v(e);return this._DIContainer[e]=t,this.freshEmitDI(),this}freshEmitDI(){let e;Object.keys(this._actions).forEach(t=>{e=this._actions.get(t),e&&this.emitDIProps(e)})}emitDIProps(e){e._DI_CONTAINER_||Object.defineProperty(e,"_DI_CONTAINER_",{get:()=>this._DIContainer,enumerable:!1}),e._DI_MAP_&&Object.keys(e._DI_MAP_).forEach(t=>{var s;if(e[t])return;const r=(s=e._DI_MAP_)==null?void 0:s[t];r&&Object.defineProperty(e,t,{get(){return this._DI_CONTAINER_[r]},enumerable:!0})}),e.useDI&&e.useDI(this._DIContainer)}getActionOrNull(e){return this._actions.get(e)||null}};let g=y;o(g,"instance");const a=class{constructor(){}static getInstance(e={}){return a.resetAll(),a.removeSingleton(),a.$act=new g(e),a.$act}static resetAll(){a.$act&&(a.$act.clearActions(),a.$act.clearListeners(),a.$act.clearDI()),a._lastResult=void 0}static removeSingleton(){g.instance=void 0,a._lastResult=void 0}static addActions(e){a.$act.addActions(e)}static exec(e,...t){return a.$act.exec(e,...t).then(s=>(a._lastResult=s,s)).catch(s=>{throw a._lastResult=s,s})}static subscribe(e,t,s){return a.$act.subscribe(e,t,s)}static entityCount(e){if(e==="di")return Object.keys(a.$act._DIContainer).length;if(e==="actions")return a.$act._actions.size;const t={watchers:"_watchers",listeners:"_listeners"}[e];let s=0;return a.$act[t].forEach(r=>{s+=r.length}),s}static getLastResult(){return a._lastResult}static makeActionStub(e){return{name:`Act_${Math.random()}`,exec:()=>null,...e}}};let p=a;o(p,"$act"),o(p,"_lastResult"),I.init=e=>new g(e);const R=(e,t,s)=>{const r=I().subscribe(e,t);return s&&(typeof s=="function"?s(r):I().subsList.add(s,r)),r},M=e=>I().subsList.clear(e);I.subListClear=M;function I(){const e=g.getInstance();if(!e)throw new Error('Instance call before initialization. Make a "new ActMaster()" first');return e}const C=e=>{if(typeof e!="function"||!e.name)throw new Error(`Pass not valid function: "${e}"`);return{name:e.name,exec:e}},H=C;function N(e){return(t,s,r)=>{const n=typeof t=="function"?t:t.constructor;n.__decorators__||(n.__decorators__=[]),typeof r!="number"&&(r=void 0),n.__decorators__.push(l=>e(l,s,r))}}function U(e,t,s=null){return N((r,n)=>{const l={created(){this.$act.subscribe(e,i=>{const h=L(i,t,s);typeof this[n]=="function"?this[n](h):this[n]=h},this)}};r.mixins?r.mixins=[...r.mixins,l]:r.mixins=[l]})}function L(e,t,s){if(e===void 0)return s;if(typeof t=="function")return t(e);let r=e;if(t){const n=(t||"").split(".");let l,i=0;for(i=0;i<n.length&&r;i++)l=n[i],r=r[l]}return r===void 0?s:r}function T(e){return N((t,s)=>{const r={created(){const n=this.$act.inProgress(e,l=>{this[s]=l});this.$once("hook:beforeDestroy",()=>{n(e)})}};t.mixins?t.mixins=[...t.mixins,r]:t.mixins=[r]})}const E=class{static install(t,s){var n;debugger;const r=new g({autoUnsubscribeCallback({context:l,eventName:i,listener:h}){l&&typeof l=="function"?l(function(){r.unsubscribe(i,h)}):l&&typeof l.$once=="function"&&l.$once("hook:beforeDestroy",()=>{r.unsubscribe(i,h)})},...s});E.instance=r,(n=t.config)!=null&&n.globalProperties&&!t.config.globalProperties.$act?(t.config.globalProperties.$act=r,t.provide("$act",r)):Object.prototype.hasOwnProperty.call(t,"$act")||(t.act=r,t.prototype.$act=r)}install(t,s){E.install(t,s)}};let w=E;O(w,"instance",null),c.ActInProgress=T,c.ActMaster=g,c.ActSubscribe=U,c.ActTest=p,c.ActinonAlreadyExistingError=D,c.CancelledAct=d,c.Emit=j,c.InvalidDITypeError=$,c.KeyAlreadyExistsInDIError=v,c.NotFoundActionError=A,c.UseDI=k,c.VueActMaster=w,c.act=I,c.actSubscribe=R,c.fn2act=H,c.functionToAction=C,c.subListClear=M,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-act-master",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "avil13",
|
|
6
|
-
"main": "dist/
|
|
7
|
-
"module": "dist/
|
|
8
|
-
"
|
|
9
|
-
"
|
|
6
|
+
"main": "dist/vue-act-master.umd.cjs",
|
|
7
|
+
"module": "dist/vue-act-master.js",
|
|
8
|
+
"typings": "dist/index.d.ts",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"require": "./dist/vue-act-master.umd.cjs",
|
|
13
|
+
"import": "./dist/vue-act-master.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
10
17
|
"files": [
|
|
11
18
|
"README.md",
|
|
12
19
|
"dist",
|
|
@@ -22,14 +29,16 @@
|
|
|
22
29
|
"business logic"
|
|
23
30
|
],
|
|
24
31
|
"scripts": {
|
|
25
|
-
"build": "rm -rf ./dist &&
|
|
32
|
+
"build": "rm -rf ./dist && vite build && tsc -p tsconfig.prod.json",
|
|
26
33
|
"changelog": "auto-changelog && git add CHANGELOG.md",
|
|
34
|
+
"size": "size-limit",
|
|
27
35
|
"lint:fix": "eslint --fix --ext .ts .",
|
|
36
|
+
"test": "vitest run",
|
|
28
37
|
"test:watch": "vitest dev",
|
|
29
|
-
"test": "vitest run --coverage",
|
|
38
|
+
"test:coverage": "vitest run --coverage",
|
|
30
39
|
"type-check:watch": "npm run type-check -- --watch",
|
|
31
|
-
"type-check": "tsc -p ./tsconfig.
|
|
32
|
-
"prepublishOnly": "
|
|
40
|
+
"type-check": "tsc -p ./tsconfig.json --noEmit",
|
|
41
|
+
"prepublishOnly": "yarn test && yarn run build"
|
|
33
42
|
},
|
|
34
43
|
"husky": {
|
|
35
44
|
"hooks": {
|
|
@@ -43,24 +52,17 @@
|
|
|
43
52
|
},
|
|
44
53
|
"license": "MIT",
|
|
45
54
|
"dependencies": {
|
|
46
|
-
"act-master": "^2.0.
|
|
55
|
+
"act-master": "^2.0.1"
|
|
47
56
|
},
|
|
48
57
|
"peerDependencies": {
|
|
49
|
-
"act-master": "^2.0.
|
|
58
|
+
"act-master": "^2.0.1"
|
|
50
59
|
},
|
|
51
60
|
"devDependencies": {
|
|
52
|
-
"@types
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
61
|
+
"@babel/types": "^7.22.5",
|
|
54
62
|
"auto-changelog": "^2.4.0",
|
|
55
|
-
"eslint": "^8.40.0",
|
|
56
|
-
"eslint-config-prettier": "^8.8.0",
|
|
57
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
58
|
-
"prettier": "^2.8.8",
|
|
59
|
-
"rollup": "^2.57.0",
|
|
60
|
-
"rollup-plugin-filesize": "^9.1.1",
|
|
61
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
62
|
-
"rollup-plugin-typescript2": "^0.30.0",
|
|
63
63
|
"typescript": "^5.0.4",
|
|
64
|
+
"vite": "^4.3.7",
|
|
65
|
+
"vitest": "^0.31.0",
|
|
64
66
|
"vue": "*"
|
|
65
67
|
}
|
|
66
68
|
}
|
package/src/index.ts
CHANGED
|
@@ -36,6 +36,7 @@ export class VueActMaster {
|
|
|
36
36
|
static instance: ActMaster | null = null;
|
|
37
37
|
|
|
38
38
|
static install(vue: any, options?: ActMasterOptions): void {
|
|
39
|
+
debugger;
|
|
39
40
|
const actMaster = new ActMaster({
|
|
40
41
|
autoUnsubscribeCallback({ context, eventName, listener }) {
|
|
41
42
|
if (context && typeof context === 'function') {
|
package/dist/index.common.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var actMaster = require('act-master');
|
|
6
|
-
|
|
7
|
-
function createDecorator(factory) {
|
|
8
|
-
return (target, key, index) => {
|
|
9
|
-
const Ctor = typeof target === 'function'
|
|
10
|
-
? target
|
|
11
|
-
: target.constructor;
|
|
12
|
-
if (!Ctor.__decorators__) {
|
|
13
|
-
Ctor.__decorators__ = [];
|
|
14
|
-
}
|
|
15
|
-
if (typeof index !== 'number') {
|
|
16
|
-
index = undefined;
|
|
17
|
-
}
|
|
18
|
-
Ctor.__decorators__.push((options) => factory(options, key, index));
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function ActSubscribe(eventName, pathToData, defaultValue = null) {
|
|
23
|
-
return createDecorator((componentOptions, key) => {
|
|
24
|
-
const subscribeHook = {
|
|
25
|
-
created() {
|
|
26
|
-
this.$act.subscribe(eventName, (data) => {
|
|
27
|
-
const value = objectPath(data, pathToData, defaultValue);
|
|
28
|
-
if (typeof this[key] === 'function') {
|
|
29
|
-
this[key](value);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
this[key] = value;
|
|
33
|
-
}
|
|
34
|
-
}, this);
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
if (componentOptions.mixins) {
|
|
38
|
-
componentOptions.mixins = [...componentOptions.mixins, subscribeHook];
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
componentOptions.mixins = [subscribeHook];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function objectPath(obj, path, defaultValue) {
|
|
46
|
-
if (obj === undefined) {
|
|
47
|
-
return defaultValue;
|
|
48
|
-
}
|
|
49
|
-
if (typeof path === 'function') {
|
|
50
|
-
return path(obj);
|
|
51
|
-
}
|
|
52
|
-
let value = obj;
|
|
53
|
-
if (path) {
|
|
54
|
-
const list = (path || '').split('.');
|
|
55
|
-
let key;
|
|
56
|
-
let i = 0;
|
|
57
|
-
for (i = 0; i < list.length && value; i++) {
|
|
58
|
-
key = list[i];
|
|
59
|
-
value = value[key];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if (value === undefined) {
|
|
63
|
-
return defaultValue;
|
|
64
|
-
}
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function ActInProgress(eventName) {
|
|
69
|
-
return createDecorator((componentOptions, key) => {
|
|
70
|
-
const inProgressHook = {
|
|
71
|
-
created() {
|
|
72
|
-
const unsubscribe = this.$act.inProgress(eventName, (inProgress) => {
|
|
73
|
-
this[key] = inProgress;
|
|
74
|
-
});
|
|
75
|
-
this.$once('hook:beforeDestroy', () => {
|
|
76
|
-
unsubscribe(eventName);
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
if (componentOptions.mixins) {
|
|
81
|
-
componentOptions.mixins = [...componentOptions.mixins, inProgressHook];
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
componentOptions.mixins = [inProgressHook];
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
class VueActMaster {
|
|
90
|
-
static install(vue, options) {
|
|
91
|
-
const actMaster$1 = new actMaster.ActMaster({
|
|
92
|
-
autoUnsubscribeCallback({ context, eventName, listener }) {
|
|
93
|
-
if (context && typeof context === 'function') {
|
|
94
|
-
context(function () {
|
|
95
|
-
actMaster$1.unsubscribe(eventName, listener);
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
else if (context && typeof context.$once === 'function') {
|
|
99
|
-
context.$once('hook:beforeDestroy', () => {
|
|
100
|
-
actMaster$1.unsubscribe(eventName, listener);
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
...options,
|
|
105
|
-
});
|
|
106
|
-
VueActMaster.instance = actMaster$1;
|
|
107
|
-
if (vue.config?.globalProperties && !vue.config.globalProperties.$act) {
|
|
108
|
-
vue.config.globalProperties.$act = actMaster$1;
|
|
109
|
-
vue.provide('$act', actMaster$1);
|
|
110
|
-
}
|
|
111
|
-
else if (!Object.prototype.hasOwnProperty.call(vue, '$act')) {
|
|
112
|
-
vue.act = actMaster$1;
|
|
113
|
-
vue.prototype.$act = actMaster$1;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
install(vue, options) {
|
|
117
|
-
VueActMaster.install(vue, options);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
VueActMaster.instance = null;
|
|
121
|
-
|
|
122
|
-
exports.ActInProgress = ActInProgress;
|
|
123
|
-
exports.ActSubscribe = ActSubscribe;
|
|
124
|
-
exports.VueActMaster = VueActMaster;
|
|
125
|
-
Object.keys(actMaster).forEach(function (k) {
|
|
126
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function () { return actMaster[k]; }
|
|
129
|
-
});
|
|
130
|
-
});
|
package/dist/index.umd.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('act-master')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'act-master'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["vue-act-master"] = {}, global.actMaster));
|
|
5
|
-
})(this, (function (exports, actMaster) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function createDecorator(factory) {
|
|
8
|
-
return (target, key, index) => {
|
|
9
|
-
const Ctor = typeof target === 'function'
|
|
10
|
-
? target
|
|
11
|
-
: target.constructor;
|
|
12
|
-
if (!Ctor.__decorators__) {
|
|
13
|
-
Ctor.__decorators__ = [];
|
|
14
|
-
}
|
|
15
|
-
if (typeof index !== 'number') {
|
|
16
|
-
index = undefined;
|
|
17
|
-
}
|
|
18
|
-
Ctor.__decorators__.push((options) => factory(options, key, index));
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function ActSubscribe(eventName, pathToData, defaultValue = null) {
|
|
23
|
-
return createDecorator((componentOptions, key) => {
|
|
24
|
-
const subscribeHook = {
|
|
25
|
-
created() {
|
|
26
|
-
this.$act.subscribe(eventName, (data) => {
|
|
27
|
-
const value = objectPath(data, pathToData, defaultValue);
|
|
28
|
-
if (typeof this[key] === 'function') {
|
|
29
|
-
this[key](value);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
this[key] = value;
|
|
33
|
-
}
|
|
34
|
-
}, this);
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
if (componentOptions.mixins) {
|
|
38
|
-
componentOptions.mixins = [...componentOptions.mixins, subscribeHook];
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
componentOptions.mixins = [subscribeHook];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function objectPath(obj, path, defaultValue) {
|
|
46
|
-
if (obj === undefined) {
|
|
47
|
-
return defaultValue;
|
|
48
|
-
}
|
|
49
|
-
if (typeof path === 'function') {
|
|
50
|
-
return path(obj);
|
|
51
|
-
}
|
|
52
|
-
let value = obj;
|
|
53
|
-
if (path) {
|
|
54
|
-
const list = (path || '').split('.');
|
|
55
|
-
let key;
|
|
56
|
-
let i = 0;
|
|
57
|
-
for (i = 0; i < list.length && value; i++) {
|
|
58
|
-
key = list[i];
|
|
59
|
-
value = value[key];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if (value === undefined) {
|
|
63
|
-
return defaultValue;
|
|
64
|
-
}
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function ActInProgress(eventName) {
|
|
69
|
-
return createDecorator((componentOptions, key) => {
|
|
70
|
-
const inProgressHook = {
|
|
71
|
-
created() {
|
|
72
|
-
const unsubscribe = this.$act.inProgress(eventName, (inProgress) => {
|
|
73
|
-
this[key] = inProgress;
|
|
74
|
-
});
|
|
75
|
-
this.$once('hook:beforeDestroy', () => {
|
|
76
|
-
unsubscribe(eventName);
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
if (componentOptions.mixins) {
|
|
81
|
-
componentOptions.mixins = [...componentOptions.mixins, inProgressHook];
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
componentOptions.mixins = [inProgressHook];
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
class VueActMaster {
|
|
90
|
-
static install(vue, options) {
|
|
91
|
-
const actMaster$1 = new actMaster.ActMaster({
|
|
92
|
-
autoUnsubscribeCallback({ context, eventName, listener }) {
|
|
93
|
-
if (context && typeof context === 'function') {
|
|
94
|
-
context(function () {
|
|
95
|
-
actMaster$1.unsubscribe(eventName, listener);
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
else if (context && typeof context.$once === 'function') {
|
|
99
|
-
context.$once('hook:beforeDestroy', () => {
|
|
100
|
-
actMaster$1.unsubscribe(eventName, listener);
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
...options,
|
|
105
|
-
});
|
|
106
|
-
VueActMaster.instance = actMaster$1;
|
|
107
|
-
if (vue.config?.globalProperties && !vue.config.globalProperties.$act) {
|
|
108
|
-
vue.config.globalProperties.$act = actMaster$1;
|
|
109
|
-
vue.provide('$act', actMaster$1);
|
|
110
|
-
}
|
|
111
|
-
else if (!Object.prototype.hasOwnProperty.call(vue, '$act')) {
|
|
112
|
-
vue.act = actMaster$1;
|
|
113
|
-
vue.prototype.$act = actMaster$1;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
install(vue, options) {
|
|
117
|
-
VueActMaster.install(vue, options);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
VueActMaster.instance = null;
|
|
121
|
-
|
|
122
|
-
exports.ActInProgress = ActInProgress;
|
|
123
|
-
exports.ActSubscribe = ActSubscribe;
|
|
124
|
-
exports.VueActMaster = VueActMaster;
|
|
125
|
-
Object.keys(actMaster).forEach(function (k) {
|
|
126
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function () { return actMaster[k]; }
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
133
|
-
|
|
134
|
-
}));
|