@sumaris-net/ngx-components 18.18.31 → 18.18.33

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 (47) hide show
  1. package/doc/changelog.md +4 -0
  2. package/esm2022/src/app/core/form/form.utils.mjs +1 -1
  3. package/esm2022/src/app/core/form/list/list.form.mjs +1 -1
  4. package/esm2022/src/app/core/form/properties/properties-file.service.mjs +1 -1
  5. package/esm2022/src/app/core/services/config/core.config.mjs +1 -1
  6. package/esm2022/src/app/core/services/model/entity.decorators.mjs +1 -1
  7. package/esm2022/src/app/core/services/model/entity.model.mjs +1 -1
  8. package/esm2022/src/app/core/services/model/model.enum.mjs +2 -2
  9. package/esm2022/src/app/core/services/network.types.mjs +1 -1
  10. package/esm2022/src/app/shared/capacitor/plugins.mjs +1 -1
  11. package/esm2022/src/app/shared/dates.mjs +1 -1
  12. package/esm2022/src/app/shared/form/field.model.mjs +1 -1
  13. package/esm2022/src/app/shared/gesture/hammer.utils.mjs +1 -1
  14. package/esm2022/src/app/shared/graph/graph-colors.mjs +1 -1
  15. package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +1 -1
  16. package/esm2022/src/app/shared/material/badge/badge.directive.mjs +1 -1
  17. package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +1 -1
  18. package/esm2022/src/app/shared/rx-state/rx-state.decorators.mjs +11 -10
  19. package/esm2022/src/app/shared/services/entity-service.class.mjs +1 -1
  20. package/esm2022/src/app/shared/services/progress-bar.service.mjs +1 -1
  21. package/esm2022/src/app/shared/types.mjs +1 -1
  22. package/esm2022/src/app/shared/upload-file/upload-file.model.mjs +1 -1
  23. package/esm2022/src/app/shared/validator/validators.mjs +1 -1
  24. package/fesm2022/sumaris-net.ngx-components.mjs +11 -10
  25. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/src/app/core/form/form.utils.d.ts +1 -1
  28. package/src/app/core/form/list/list.form.d.ts +1 -1
  29. package/src/app/core/form/properties/properties-file.service.d.ts +1 -1
  30. package/src/app/core/services/model/entity.decorators.d.ts +4 -5
  31. package/src/app/core/services/model/entity.model.d.ts +1 -1
  32. package/src/app/core/services/network.types.d.ts +1 -1
  33. package/src/app/shared/capacitor/plugins.d.ts +1 -1
  34. package/src/app/shared/dates.d.ts +1 -1
  35. package/src/app/shared/form/field.model.d.ts +2 -2
  36. package/src/app/shared/gesture/hammer.utils.d.ts +1 -1
  37. package/src/app/shared/graph/graph-colors.d.ts +1 -1
  38. package/src/app/shared/image/gallery/image-gallery.component.d.ts +1 -1
  39. package/src/app/shared/material/badge/badge.directive.d.ts +1 -1
  40. package/src/app/shared/material/latlong/latlong.utils.d.ts +4 -4
  41. package/src/app/shared/rx-state/rx-state.decorators.d.ts +7 -7
  42. package/src/app/shared/services/entity-service.class.d.ts +3 -3
  43. package/src/app/shared/services/progress-bar.service.d.ts +1 -1
  44. package/src/app/shared/types.d.ts +18 -17
  45. package/src/app/shared/upload-file/upload-file.model.d.ts +1 -1
  46. package/src/app/shared/validator/validators.d.ts +2 -2
  47. package/src/assets/manifest.json +1 -1
@@ -17727,7 +17727,7 @@ class Toasts {
17727
17727
 
17728
17728
  // TODO: rename to STATUS_ID_MAP
17729
17729
  // then declare a type like this :
17730
- // > export declare type StatusIds = keyof typeof STATUS_ID_MAP;
17730
+ // > export type StatusIds = keyof typeof STATUS_ID_MAP;
17731
17731
  const StatusIds = {
17732
17732
  DISABLE: 0,
17733
17733
  ENABLE: 1,
@@ -26793,10 +26793,11 @@ const DEFAULT_STATE_VAR_NAME = '_state';
26793
26793
  function RxStateRegister() {
26794
26794
  return function (target, key) {
26795
26795
  if (target[STATE_VAR_NAME_KEY]) {
26796
- throw new Error(`Cannot define more than one @RxStateRegister() in class hierarchy. Found: ${target[STATE_VAR_NAME_KEY]} and ${key}`);
26796
+ throw new Error(`Cannot define more than one @RxStateRegister() in class hierarchy. Found: ${target[STATE_VAR_NAME_KEY]} and ${String(key)}`);
26797
26797
  }
26798
+ // Store the state property name
26798
26799
  Object.defineProperty(target, STATE_VAR_NAME_KEY, {
26799
- value: key,
26800
+ value: String(key),
26800
26801
  writable: false,
26801
26802
  enumerable: false,
26802
26803
  configurable: false,
@@ -26832,7 +26833,7 @@ function RxStateProperty(statePropertyName, projectValueReducer) {
26832
26833
  });
26833
26834
  // Development logging
26834
26835
  if (!production) {
26835
- console.debug(`[RxStateProperty] ${target.constructor?.name}.${key} -> state.${String(finalStatePropertyName)}`);
26836
+ console.debug(`[RxStateProperty] ${target.constructor?.name}.${String(key)} -> state.${String(finalStatePropertyName)}`);
26836
26837
  }
26837
26838
  };
26838
26839
  }
@@ -26843,7 +26844,7 @@ function RxStateSelect(statePropertyName, opts) {
26843
26844
  return function (target, key) {
26844
26845
  // Convention check
26845
26846
  if (!production && !key.endsWith('$')) {
26846
- console.warn(`[RxStateSelect] Convention: Property ${target.constructor?.name}.${key} should end with '$' to indicate it's an Observable`);
26847
+ console.warn(`[RxStateSelect] Convention: Property ${target.constructor?.name}.${String(key)} should end with '$' to indicate it's an Observable`);
26847
26848
  }
26848
26849
  // Determine state property name
26849
26850
  const finalStatePropertyName = statePropertyName || key.replace(/\$$/, '');
@@ -26877,7 +26878,7 @@ function RxStateSelect(statePropertyName, opts) {
26877
26878
  });
26878
26879
  // Development logging
26879
26880
  if (!production) {
26880
- console.debug(`[RxStateSelect] ${target.constructor?.name}.${key} -> state.select('${finalStatePropertyName}')`);
26881
+ console.debug(`[RxStateSelect] ${target.constructor?.name}.${String(key)} -> state.select('${finalStatePropertyName}')`);
26881
26882
  }
26882
26883
  };
26883
26884
  }
@@ -26888,7 +26889,7 @@ function RxStateComputed(dependencies, computeFn, opts) {
26888
26889
  return function (target, key) {
26889
26890
  // Convention check
26890
26891
  if (!production && !key.endsWith('$')) {
26891
- console.warn(`[RxStateComputed] Convention: Property ${target.constructor?.name}.${key} should end with '$' to indicate it's an Observable`);
26892
+ console.warn(`[RxStateComputed] Convention: Property ${target.constructor?.name}.${String(key)} should end with '$' to indicate it's an Observable`);
26892
26893
  }
26893
26894
  const stateVarName = target instanceof RxState ? null : target[STATE_VAR_NAME_KEY] || opts?.stateName || DEFAULT_STATE_VAR_NAME;
26894
26895
  const cachePropertyName = `__${key}_cache`;
@@ -26913,7 +26914,7 @@ function RxStateComputed(dependencies, computeFn, opts) {
26913
26914
  });
26914
26915
  // Development logging
26915
26916
  if (!production) {
26916
- console.debug(`[RxStateComputed] ${target.constructor?.name}.${key} -> state.select([${dependencies.map((dep) => `'${dep}'`).join(', ')}])`);
26917
+ console.debug(`[RxStateComputed] ${target.constructor?.name}.${String(key)} -> state.select([${dependencies.map((dep) => `'${dep}'`).join(', ')}])`);
26917
26918
  }
26918
26919
  };
26919
26920
  }
@@ -26924,7 +26925,7 @@ function RxStateOutput(statePropertyName, opts) {
26924
26925
  return function (target, key) {
26925
26926
  // Convention check
26926
26927
  if (!production && !key.endsWith('Changes')) {
26927
- console.warn(`[RxStateOutput] Convention: Property ${target.constructor?.name}.${key} should end with 'Changes' to indicate it's an Output`);
26928
+ console.warn(`[RxStateOutput] Convention: Property ${target.constructor?.name}.${String(key)} should end with 'Changes' to indicate it's an Output`);
26928
26929
  }
26929
26930
  // Determine state property name
26930
26931
  const finalStatePropertyName = statePropertyName || key.replace(/Changes$/, '');
@@ -26948,7 +26949,7 @@ function RxStateOutput(statePropertyName, opts) {
26948
26949
  });
26949
26950
  // Development logging
26950
26951
  if (!production) {
26951
- console.debug(`[RxStateOutput] ${target.constructor?.name}.${key} -> state.$.pipe(select('${String(finalStatePropertyName)}'))`);
26952
+ console.debug(`[RxStateOutput] ${target.constructor?.name}.${String(key)} -> state.$.pipe(select('${String(finalStatePropertyName)}'))`);
26952
26953
  }
26953
26954
  };
26954
26955
  }