@ssv/ngx.command 2.2.0-dev268 → 2.3.0-dev.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.
Files changed (38) hide show
  1. package/README.md +7 -7
  2. package/command-ref.directive.d.ts +3 -0
  3. package/command.directive.d.ts +3 -0
  4. package/esm2020/command-ref.directive.mjs +54 -0
  5. package/esm2020/command.directive.mjs +166 -0
  6. package/esm2020/command.mjs +127 -0
  7. package/esm2020/command.model.mjs +2 -0
  8. package/esm2020/command.util.mjs +29 -0
  9. package/esm2020/config.mjs +8 -0
  10. package/esm2020/index.mjs +8 -0
  11. package/esm2020/module.mjs +49 -0
  12. package/esm2020/ssv-ngx.command.mjs +5 -0
  13. package/esm2020/version.mjs +2 -0
  14. package/fesm2015/{ssv-ngx.command.js → ssv-ngx.command.mjs} +66 -45
  15. package/fesm2015/ssv-ngx.command.mjs.map +1 -0
  16. package/fesm2020/ssv-ngx.command.mjs +424 -0
  17. package/fesm2020/ssv-ngx.command.mjs.map +1 -0
  18. package/module.d.ts +6 -0
  19. package/package.json +23 -13
  20. package/version.d.ts +1 -1
  21. package/CHANGELOG.md +0 -216
  22. package/bundles/ssv-ngx.command.umd.js +0 -759
  23. package/bundles/ssv-ngx.command.umd.js.map +0 -1
  24. package/bundles/ssv-ngx.command.umd.min.js +0 -16
  25. package/bundles/ssv-ngx.command.umd.min.js.map +0 -1
  26. package/esm2015/command-ref.directive.js +0 -50
  27. package/esm2015/command.directive.js +0 -156
  28. package/esm2015/command.js +0 -127
  29. package/esm2015/command.model.js +0 -2
  30. package/esm2015/command.util.js +0 -28
  31. package/esm2015/config.js +0 -8
  32. package/esm2015/index.js +0 -8
  33. package/esm2015/module.js +0 -36
  34. package/esm2015/ssv-ngx.command.js +0 -5
  35. package/esm2015/version.js +0 -2
  36. package/fesm2015/ssv-ngx.command.js.map +0 -1
  37. package/ssv-ngx.command.d.ts +0 -4
  38. package/ssv-ngx.command.metadata.json +0 -1
package/CHANGELOG.md DELETED
@@ -1,216 +0,0 @@
1
- <!-- ## [vNext](https://github.com/sktch7/ngx.command/compare/2.0.0...3.0.0) (2020-x-x) -->
2
-
3
- ## [2.2.0](https://github.com/sketch7/ngx.command/compare/2.1.0...2.1.1) (2022-11-02)
4
-
5
- ### Bug Fixes
6
-
7
- - **command:** avoid set disabled initially + remove delay when setting in order to avoid flickers - by default, can be optionally changed via `hasDisabledDelay` when needed for example with material
8
-
9
- ## [2.1.1](https://github.com/sketch7/ngx.command/compare/2.1.0...2.1.1) (2022-09-26)
10
-
11
- ### Bug Fixes
12
-
13
- - **command:** execute throwing error due to `first` (empty sequence)
14
-
15
- ## [2.1.0](https://github.com/sketch7/ngx.command/compare/2.0.0...2.1.0) (2022-07-12)
16
-
17
- ### Bug Fixes
18
-
19
- - **util:** `canExecuteFromNgForm` is `delay(0)` which fix issue when observable `form.statusChanges` wasn't triggered after reset or make pristine form from the code
20
-
21
- ## [2.0.0](https://github.com/sketch7/ngx.command/compare/1.6.0...2.0.0) (2021-08-25)
22
-
23
- ### Features
24
-
25
- - **deps:** update dependencies to support Angular v10
26
- - **deps:** add dependency on `tslib: ^2.0.0`
27
-
28
- ### BREAKING CHANGES
29
-
30
- - **command:** remove deprecated code
31
- - **command:** change `ssvCommand` and `ssvCommandRef` when using `CommandCreator` e.g. this syntax only `[ssvCommandRef]="{host: this, execute: removeHero$}` to require `host: this`.
32
- This was added due to a limitation (which previously was handled via hack and is not supported anymore). [See this issue](https://github.com/angular/angular/issues/8277).
33
- - **module:** rename module to `SsvCommandModule` from `CommandModule`
34
-
35
- ## [1.6.1](https://github.com/sketch7/ngx.command/compare/1.6.0...1.6.1) (2020-11-07)
36
-
37
- ### Refactor
38
-
39
- - **config:** refactor module config registration
40
-
41
- ## [1.6.0](https://github.com/sketch7/ngx.command/compare/1.5.2...1.6.0) (2020-11-04)
42
-
43
- ### Features
44
-
45
- - **command:** add option `handleDisabled` which won't update `disabled` attribute and manually have to manage it (as sometimes it doesn't play well with components/directives or pipes)
46
-
47
- ## [1.5.2](https://github.com/sketch7/ngx.command/compare/1.5.1...1.5.2) (2020-10-30)
48
-
49
- ### Bug Fixes
50
-
51
- - **command:** remove initial delay to disable on load
52
-
53
- ## [1.5.1](https://github.com/sketch7/ngx.command/compare/1.5.0...1.5.1) (2020-10-28)
54
-
55
- ### Bug Fixes
56
-
57
- - **build:** down version several dev dependencies packages in order to support angular 8 (and possibly less)
58
- - **deps:** revert dependency on `tslib: ^1.10.0`
59
-
60
- ## [1.5.0](https://github.com/sketch7/ngx.command/compare/1.4.1...1.5.0) (2020-10-25)
61
-
62
- ### Features
63
-
64
- _This version is focused for maintenance rather than features_
65
-
66
- - **export:** export `CommandCreator` `ICommand`
67
- - **deps:** now depends on `tslib: ^1.10.0`
68
-
69
- ### Refactor
70
-
71
- - **lint:** fix all lint errors
72
- - **all:** minor refactoring
73
- - **all:** remove rxjs deprecations
74
-
75
- ### Chore
76
-
77
- - **deps:** update dev dependencies
78
- - **ci:** update node version
79
- - **lint:** migrate from tslint to eslint
80
-
81
- ## [1.4.1](https://github.com/sketch7/ngx.command/compare/1.4.0...1.4.1) (2019-09-11)
82
-
83
- ### Bug Fixes
84
-
85
- - **directive:** `canExecute` when started as `false` was not working with material buttons
86
- - **command:** `canExecute` when returning `undefined`/`null` or so its always converted to bool instead as truthy
87
-
88
- ### Chore
89
-
90
- - **example:** add/move examples to project
91
-
92
- ## [1.4.0](https://github.com/sketch7/ngx.command/compare/1.3.0...1.4.0) (2019-09-11)
93
-
94
- ### Features
95
-
96
- - **directive:** now supports `canExecute` with params for the command creator only e.g.
97
- ```html
98
- <button [ssvCommand]="{execute: removeHero$, canExecute: canRemoveHero$, params: [hero, 1337, 'xx']}">Remove</button>
99
- ```
100
-
101
- ## [1.3.0](https://github.com/sketch7/ngx.command/compare/1.2.6...1.3.0) (2019-07-24)
102
-
103
- ### Features
104
-
105
- - **util:** `canExecuteFromNgForm` now take `CanExecuteFormOptions` and defaults to check for dirty check (UI modified). Can optionally disable whether to check for `validity` and for `dirty`.
106
-
107
- ## [1.2.6](https://github.com/sketch7/ngx.command/compare/1.2.5...1.2.6) (2019-06-11)
108
-
109
- ### Chore
110
-
111
- _No new fixes/features in this release_
112
-
113
- - **deps:** update dev dependencies
114
- - **ci:** update node version
115
-
116
- ## [1.2.5](https://github.com/sketch7/ngx.command/compare/1.2.4...1.2.5) (2019-04-18)
117
-
118
- ### Bug Fixes
119
-
120
- - **util:** fix `canExecuteFromNgForm` initial value will now emit
121
-
122
- ## [1.2.4](https://github.com/sketch7/ngx.command/compare/1.2.3...1.2.4) (2019-04-18)
123
-
124
- ### Features
125
-
126
- - **util:** `canExecuteFromNgForm` now takes `AbstractControl | AbstractControlDirective` instead of `NgForm` - to support reactive forms
127
-
128
- ## [1.2.3](https://github.com/sketch7/ngx.command/compare/1.2.2...1.2.3) (2019-03-10)
129
-
130
- ### Bug Fixes
131
-
132
- - **command:** fix regression when using with observable which doesn't complete, on next click `isExecuting` was being set to `false` immediately
133
-
134
- ## [1.2.2](https://github.com/sketch7/ngx.command/compare/1.2.1...1.2.2) (2019-03-10)
135
-
136
- ### Bug Fixes
137
-
138
- - **command:** when `executeFn` returned observable was complete e.g. `EMPTY` it was still marked as executing.
139
- - **command:** `ssvCommandOptions` defaults were only applied on initial, now they are merged with every change.
140
-
141
- ## [1.2.1](https://github.com/sketch7/ngx.command/compare/1.2.0...1.2.1) (2019-02-21)
142
-
143
- ### Chore
144
-
145
- update tooling
146
-
147
- ## [1.2.0](https://github.com/sketch7/ngx.command/compare/1.1.2...1.2.0) (2019-02-20)
148
-
149
- ### Features
150
-
151
- - **util:** add util `canExecuteFromNgForm` which takes `NgForm` and returns observable
152
- - **util:** utils are now exported
153
- - **command:** add exportAs `ssvCommand`
154
-
155
- ### Bug Fixes
156
-
157
- - **command:** when `executeFn` was throwing, it was completing the observable and won't handle any more clicks
158
-
159
- ### Marked for Deprecation
160
-
161
- - **command:** `command`, `commandOptions` and `commandParams` in favor of `ssv` prefixed e.g. `ssvCommand`, `ssvCommandOptions` and `ssvCommandParams`
162
-
163
- ## [1.1.2](https://github.com/sketch7/ngx.command/compare/1.1.1...1.1.2) (2018-11-02)
164
-
165
- ### Bug Fixes
166
-
167
- - **directive:** wrap vars in if, as sometimes might not initialize and they will throw
168
-
169
- ## [1.1.1](https://github.com/sketch7/ngx.command/compare/1.1.0...1.1.1) (2018-10-20)
170
-
171
- ### Features
172
-
173
- - **deps:** now depends on `@angular/core >=6.0.0` to be compatible with v7
174
-
175
- ## [1.1.0](https://github.com/sketch7/ngx.command/compare/1.0.2...1.1.0) (2018-10-19)
176
-
177
- ### Features
178
-
179
- - **command ref:** implement `ssvCommandRef` directive, which creates a new instance and able to share it in views (useful for loops)
180
- - **command:** `execute` now take `...args: any[]`
181
- - **command:** implement `subscribe`, `unsubscribe` to be able to auto destroy while still having control
182
- - **command:** optionally set `autoDestroy` (defaults to `true`), to auto destroy when subscribers are `0`.
183
- - **command directive:** add `commandParams` input, arguments which are passed as execute arguments
184
- - **command directive:** now takes a command creator which is now able to create command `[command]="{execute: removeHero$, canExecute: isValid$, params: [hero, 1337, 'xx']}"`
185
-
186
- This is useful for collections (loops) or using multiple actions with different args, whilst not sharing `isExecuting`.
187
-
188
- - **util:** export `isCommand` and `isCommandCreator` utils, which check type of object.
189
-
190
- ## [1.0.2](https://github.com/sketch7/ngx.command/compare/1.0.0...1.0.2) (2018-07-31)
191
-
192
- ### Bug Fixes
193
-
194
- - **directive:** fix an issue when using in an OnPush component
195
-
196
- ## [1.0.0](https://github.com/sketch7/ngx.command/compare/1.0.0-rc.2...1.0.0) (2018-06-21)
197
-
198
- ### Features
199
-
200
- - **deps:** now depends on `@angular/core 6.x` and `rxjs 6.x`
201
-
202
- ## [1.0.0-rc.2](https://github.com/sketch7/ngx.command/compare/1.0.0-rc.1...1.0.0-rc.2) (2018-02-03)
203
-
204
- ### Features
205
-
206
- - **ts:** fix typescript in strict
207
-
208
- ## [1.0.0-rc.1](https://github.com/sketch7/ngx.command/compare/1.0.0-rc.0...1.0.0-rc.1) (2018-01-30)
209
-
210
- ### Bug Fixes
211
-
212
- - **release:** fixed release
213
-
214
- ## [1.0.0-rc.0](https://github.com/sketch7/ngx.command) (2014-12-14)
215
-
216
- Initial release