@ng-atomic/common 18.9.1 → 18.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-atomic/common",
3
- "version": "18.9.1",
3
+ "version": "18.11.0",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^18.0.0",
@@ -11,7 +11,7 @@
11
11
  "@angular/material": "^18.0.0",
12
12
  "@angular/router": "^18.0.0",
13
13
  "@ngrx/component-store": "^18.0.0",
14
- "@nx-ddd/core": "18.9.1",
14
+ "@nx-ddd/core": "18.11.0",
15
15
  "dayjs": "1.11.12",
16
16
  "flat": "^6.0.0",
17
17
  "lodash-es": "^4.17.15",
@@ -340,18 +340,18 @@
340
340
  "esm": "./esm2022/stores/entities/ng-atomic-common-stores-entities.mjs",
341
341
  "default": "./fesm2022/ng-atomic-common-stores-entities.mjs"
342
342
  },
343
- "./stores/entity": {
344
- "types": "./stores/entity/index.d.ts",
345
- "esm2022": "./esm2022/stores/entity/ng-atomic-common-stores-entity.mjs",
346
- "esm": "./esm2022/stores/entity/ng-atomic-common-stores-entity.mjs",
347
- "default": "./fesm2022/ng-atomic-common-stores-entity.mjs"
348
- },
349
343
  "./stores/pagination": {
350
344
  "types": "./stores/pagination/index.d.ts",
351
345
  "esm2022": "./esm2022/stores/pagination/ng-atomic-common-stores-pagination.mjs",
352
346
  "esm": "./esm2022/stores/pagination/ng-atomic-common-stores-pagination.mjs",
353
347
  "default": "./fesm2022/ng-atomic-common-stores-pagination.mjs"
354
348
  },
349
+ "./stores/entity": {
350
+ "types": "./stores/entity/index.d.ts",
351
+ "esm2022": "./esm2022/stores/entity/ng-atomic-common-stores-entity.mjs",
352
+ "esm": "./esm2022/stores/entity/ng-atomic-common-stores-entity.mjs",
353
+ "default": "./fesm2022/ng-atomic-common-stores-entity.mjs"
354
+ },
355
355
  "./stores/query": {
356
356
  "types": "./stores/query/index.d.ts",
357
357
  "esm2022": "./esm2022/stores/query/ng-atomic-common-stores-query.mjs",
@@ -3,7 +3,9 @@ import * as i0 from "@angular/core";
3
3
  export type DataAccessor<T> = (obj: T, key: string, index?: number) => any;
4
4
  export declare const DATA_ACCESSOR: InjectionToken<DataAccessor<any>>;
5
5
  export declare const defaultDataAccessor: DataAccessor<any>;
6
- export declare function provideDataAccessor<T>(useFactory?: () => DataAccessor<T>): {
6
+ export declare function provideDataAccessor<T>(useFactory?: () => DataAccessor<T>, { merge }?: {
7
+ merge?: boolean;
8
+ }): {
7
9
  provide: InjectionToken<DataAccessor<any>>;
8
10
  useFactory: () => DataAccessor<T>;
9
11
  };
@@ -16,7 +16,10 @@ export declare class DomainPipe implements PipeTransform {
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DomainPipe, never>;
17
17
  static ɵpipe: i0.ɵɵPipeDeclaration<DomainPipe, "domain", true>;
18
18
  }
19
- export declare function provideLangMap(useFactory: () => DomainLangMap): {
19
+ export declare function injectParentDomainLangMap(): DomainLangMap;
20
+ export declare function provideLangMap(useFactory: () => DomainLangMap, { merge }?: {
21
+ merge?: boolean;
22
+ }): {
20
23
  provide: InjectionToken<DomainLangMap>;
21
24
  useFactory: () => DomainLangMap;
22
25
  };
@@ -1,29 +1,32 @@
1
1
  import { FormBuilder, FormGroup, NonNullableFormBuilder } from "@angular/forms";
2
2
  import { JsonSchema } from "json-schema-library";
3
3
  import * as i0 from "@angular/core";
4
- export declare function buildFormGroupByJsonSchema(schema: JsonSchema, { fb, value, }?: {
5
- fb?: FormBuilder | NonNullableFormBuilder;
6
- value?: object;
7
- }): FormGroup;
8
- export declare function buildFormArrayByJsonSchema(schema: JsonSchema, { fb, value, }?: {
9
- fb?: FormBuilder | NonNullableFormBuilder;
10
- value?: any[];
11
- }): any;
12
- export declare function buildFormByJsonSchemaProperty(property: JsonSchema, { fb, value, validators, }?: {
13
- fb?: FormBuilder | NonNullableFormBuilder;
14
- value?: object | object[];
15
- validators?: any[];
16
- }): any;
17
- export declare function buildFormFieldMapByJsonSchema(schema: JsonSchema, options?: {
18
- merge?: {
19
- [key: string]: any;
20
- };
21
- }): any;
22
- export declare function buildFormByJsonSchema(schema: JsonSchema, { fb, value, fieldMap, }?: {
23
- fb?: FormBuilder | NonNullableFormBuilder;
24
- value?: object;
25
- fieldMap?: object;
26
- }): any;
4
+ export declare class JsonSchemaFormUtils {
5
+ static removeObjectPercent<T extends object>(value: T): any;
6
+ static buildFormGroupByJsonSchema(schema: JsonSchema, { fb, value, }?: {
7
+ fb?: FormBuilder | NonNullableFormBuilder;
8
+ value?: object;
9
+ }): FormGroup;
10
+ static buildFormArrayByJsonSchema(schema: JsonSchema, { fb, value, }?: {
11
+ fb?: FormBuilder | NonNullableFormBuilder;
12
+ value?: any[];
13
+ }): any;
14
+ static buildFormByJsonSchemaProperty(property: JsonSchema, { fb, value, validators, }?: {
15
+ fb?: FormBuilder | NonNullableFormBuilder;
16
+ value?: object | object[];
17
+ validators?: any[];
18
+ }): any;
19
+ static buildFormByJsonSchema(schema: JsonSchema, { fb, value, fieldMap, }?: {
20
+ fb?: FormBuilder | NonNullableFormBuilder;
21
+ value?: object;
22
+ fieldMap?: object;
23
+ }): any;
24
+ static buildFormFieldMapByJsonSchema(schema: JsonSchema, options?: {
25
+ merge?: {
26
+ [key: string]: any;
27
+ };
28
+ }): any;
29
+ }
27
30
  export declare function buildFormGroup(klass: new () => any, { fb, value, }: {
28
31
  fb?: FormBuilder | NonNullableFormBuilder;
29
32
  value?: object;