@sumaris-net/ngx-components 18.18.36 → 18.18.38
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/doc/changelog.md +6 -2
- package/esm2022/src/app/core/services/local-settings.service.mjs +1 -1
- package/esm2022/src/app/shared/debug/debug.component.mjs +1 -1
- package/esm2022/src/app/shared/rx-state/rx-state.decorators.mjs +5 -5
- package/esm2022/src/app/social/feed/feed.service.mjs +1 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +4 -4
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/rx-state/rx-state.decorators.d.ts +1 -0
- package/src/app/social/feed/feed.service.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
|
@@ -26780,7 +26780,7 @@ class DecoratorUtils {
|
|
|
26780
26780
|
return `${prefix}${this.capitalize(propertyKey)}`;
|
|
26781
26781
|
}
|
|
26782
26782
|
static validateStateProperty(target, stateObject) {
|
|
26783
|
-
if (!
|
|
26783
|
+
if (!stateObject) {
|
|
26784
26784
|
throw new Error(`Missing state! Please add a RxState in class: ${target.constructor.name}`);
|
|
26785
26785
|
}
|
|
26786
26786
|
}
|
|
@@ -26842,7 +26842,7 @@ function RxStateProperty(statePropertyName, projectValueReducer) {
|
|
|
26842
26842
|
*/
|
|
26843
26843
|
function RxStateSelect(statePropertyName, opts) {
|
|
26844
26844
|
return function (target, key) {
|
|
26845
|
-
//
|
|
26845
|
+
// Naming convention check
|
|
26846
26846
|
if (!production && !key.endsWith('$')) {
|
|
26847
26847
|
console.warn(`[RxStateSelect] Convention: Property ${target.constructor?.name}.${String(key)} should end with '$' to indicate it's an Observable`);
|
|
26848
26848
|
}
|
|
@@ -26887,7 +26887,7 @@ function RxStateSelect(statePropertyName, opts) {
|
|
|
26887
26887
|
*/
|
|
26888
26888
|
function RxStateComputed(dependencies, computeFn, opts) {
|
|
26889
26889
|
return function (target, key) {
|
|
26890
|
-
//
|
|
26890
|
+
// Naming convention check
|
|
26891
26891
|
if (!production && !key.endsWith('$')) {
|
|
26892
26892
|
console.warn(`[RxStateComputed] Convention: Property ${target.constructor?.name}.${String(key)} should end with '$' to indicate it's an Observable`);
|
|
26893
26893
|
}
|
|
@@ -26923,7 +26923,7 @@ function RxStateComputed(dependencies, computeFn, opts) {
|
|
|
26923
26923
|
*/
|
|
26924
26924
|
function RxStateOutput(statePropertyName, opts) {
|
|
26925
26925
|
return function (target, key) {
|
|
26926
|
-
//
|
|
26926
|
+
// Naming convention check
|
|
26927
26927
|
if (!production && !key.endsWith('Changes')) {
|
|
26928
26928
|
console.warn(`[RxStateOutput] Convention: Property ${target.constructor?.name}.${String(key)} should end with 'Changes' to indicate it's an Output`);
|
|
26929
26929
|
}
|