@smartsoft001/crud-shell-angular 1.1.541 → 1.1.545

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 (71) hide show
  1. package/bundles/smartsoft001-crud-shell-angular.umd.js +162 -27
  2. package/bundles/smartsoft001-crud-shell-angular.umd.js.map +1 -1
  3. package/esm2015/lib/+state/crud.effects.js +8 -1
  4. package/esm2015/lib/+state/crud.effects.js.map +1 -1
  5. package/esm2015/lib/+state/crud.facade.js +8 -1
  6. package/esm2015/lib/+state/crud.facade.js.map +1 -1
  7. package/esm2015/lib/components/components.module.js +1 -0
  8. package/esm2015/lib/components/components.module.js.map +1 -1
  9. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  10. package/esm2015/lib/components/export/export.component.js +9 -2
  11. package/esm2015/lib/components/export/export.component.js.map +1 -1
  12. package/esm2015/lib/components/export/export.component.metadata.json +1 -1
  13. package/esm2015/lib/components/filter/base/base.component.js +9 -1
  14. package/esm2015/lib/components/filter/base/base.component.js.map +1 -1
  15. package/esm2015/lib/components/filter/check/check.component.js +2 -1
  16. package/esm2015/lib/components/filter/check/check.component.js.map +1 -1
  17. package/esm2015/lib/components/filter/check/check.component.metadata.json +1 -1
  18. package/esm2015/lib/components/filter/date/date.component.js +2 -1
  19. package/esm2015/lib/components/filter/date/date.component.js.map +1 -1
  20. package/esm2015/lib/components/filter/date/date.component.metadata.json +1 -1
  21. package/esm2015/lib/components/filter/date-with-edit/date-with-edit.component.js +3 -1
  22. package/esm2015/lib/components/filter/date-with-edit/date-with-edit.component.js.map +1 -1
  23. package/esm2015/lib/components/filter/date-with-edit/date-with-edit.component.metadata.json +1 -1
  24. package/esm2015/lib/components/filter/filter.component.js +9 -1
  25. package/esm2015/lib/components/filter/filter.component.js.map +1 -1
  26. package/esm2015/lib/components/filter/flag/flag.component.js +2 -1
  27. package/esm2015/lib/components/filter/flag/flag.component.js.map +1 -1
  28. package/esm2015/lib/components/filter/flag/flag.component.metadata.json +1 -1
  29. package/esm2015/lib/components/filter/radio/radio.component.js +2 -1
  30. package/esm2015/lib/components/filter/radio/radio.component.js.map +1 -1
  31. package/esm2015/lib/components/filter/radio/radio.component.metadata.json +1 -1
  32. package/esm2015/lib/components/filter/text/text.component.js +2 -1
  33. package/esm2015/lib/components/filter/text/text.component.js.map +1 -1
  34. package/esm2015/lib/components/filter/text/text.component.metadata.json +1 -1
  35. package/esm2015/lib/components/filters/filters.component.js +10 -2
  36. package/esm2015/lib/components/filters/filters.component.js.map +1 -1
  37. package/esm2015/lib/components/filters/filters.component.metadata.json +1 -1
  38. package/esm2015/lib/components/filters-config/filters-config.component.js +9 -2
  39. package/esm2015/lib/components/filters-config/filters-config.component.js.map +1 -1
  40. package/esm2015/lib/components/filters-config/filters-config.component.metadata.json +1 -1
  41. package/esm2015/lib/components/multiselect/multiselect.component.js +9 -2
  42. package/esm2015/lib/components/multiselect/multiselect.component.js.map +1 -1
  43. package/esm2015/lib/components/multiselect/multiselect.component.metadata.json +1 -1
  44. package/esm2015/lib/crud-full.module.js +8 -1
  45. package/esm2015/lib/crud-full.module.js.map +1 -1
  46. package/esm2015/lib/crud-full.module.ngfactory.js.map +1 -1
  47. package/esm2015/lib/crud.config.js +2 -0
  48. package/esm2015/lib/crud.config.js.map +1 -1
  49. package/esm2015/lib/crud.module.js +9 -1
  50. package/esm2015/lib/crud.module.js.map +1 -1
  51. package/esm2015/lib/crud.module.ngfactory.js.map +1 -1
  52. package/esm2015/lib/factories/list-pagination/list-pagination.factory.js +8 -1
  53. package/esm2015/lib/factories/list-pagination/list-pagination.factory.js.map +1 -1
  54. package/esm2015/lib/pages/base/base.component.js +8 -1
  55. package/esm2015/lib/pages/base/base.component.js.map +1 -1
  56. package/esm2015/lib/pages/item/item.component.js +9 -1
  57. package/esm2015/lib/pages/item/item.component.js.map +1 -1
  58. package/esm2015/lib/pages/list/list.component.js +8 -1
  59. package/esm2015/lib/pages/list/list.component.js.map +1 -1
  60. package/esm2015/lib/pipes/form-options/form-options.pipe.js +8 -1
  61. package/esm2015/lib/pipes/form-options/form-options.pipe.js.map +1 -1
  62. package/esm2015/lib/pipes/pipes.module.js +1 -0
  63. package/esm2015/lib/pipes/pipes.module.js.map +1 -1
  64. package/esm2015/lib/services/crud/crud.service.js +8 -1
  65. package/esm2015/lib/services/crud/crud.service.js.map +1 -1
  66. package/esm2015/lib/services/socket/socket.service.js +8 -1
  67. package/esm2015/lib/services/socket/socket.service.js.map +1 -1
  68. package/fesm2015/smartsoft001-crud-shell-angular.js +162 -27
  69. package/fesm2015/smartsoft001-crud-shell-angular.js.map +1 -1
  70. package/package.json +17 -17
  71. package/smartsoft001-crud-shell-angular.metadata.json +1 -1
@@ -157,10 +157,17 @@ export class CrudEffects {
157
157
  });
158
158
  }
159
159
  }
160
+ /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
160
161
  CrudEffects.decorators = [
161
162
  { type: Injectable }
162
163
  ];
163
- /** @nocollapse */
164
+ /**
165
+ * @type {function(): !Array<(null|{
166
+ * type: ?,
167
+ * decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
168
+ * })>}
169
+ * @nocollapse
170
+ */
164
171
  CrudEffects.ctorParameters = () => [
165
172
  { type: ActionsSubject },
166
173
  { type: CrudService },
@@ -1 +1 @@
1
- {"version":3,"file":"crud.effects.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/+state/crud.effects.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAU,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE3E,OAAO,EAAE,WAAW,E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AAC;yBACjB,IAAI,CACH,GAAG,CAAC,GAAG,EAAE,CACP,IAAI,CAAC,KAAK,CAAC,QAAQ,CACjB,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CACzD,CACF,EACD,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE;wBACnB,IAAI,CAAC,KAAK,CAAC,QAAQ,CACjB,WAAW,CAAC,aAAa,CACvB,IAAI,CAAC,MAAM,CAAC,MAAM,EAClB,MAAM,CAAC,EAAE,EACT,KAAK,CACN,CACF,CAAC;wBACF,OAAO,EAAE,EAAE,CAAC;oBACd,CAAC,CAAC,CACH;yBACA,SAAS,EAAE,CAAC;oBACf,MAAM;gBAER,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,kBAAkB;oBACzC,IAAI,CAAC,KAAK;yBACL,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;yBACxD,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE;wBAClB,IAAI,CAAC,KAAK,CAAC,QAAQ,CACf,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,kCAC5B,MAAM,KACT,MAAM,EAAE,CAAC,IACX,CACL,CAAC;oBACN,CAAC,CAAC,CAAC;oBACT,MAAM;gBAER;oBACE,MAAM;aACT;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;;YA9UF,UAAU;;;;YARM,cAAc;YAEtB,WAAW;YAGX,UAAU;YAL6B,KAAK;YAAZ,KAAK","sourcesContent":["import \"reflect-metadata\";\n\nimport { Injectable } from \"@angular/core\";\nimport { catchError, first, tap } from \"rxjs/operators\";\nimport { of } from \"rxjs\";\nimport { Action, ActionsSubject, select, State, Store } from \"@ngrx/store\";\n\nimport { CrudService } from \"../services/crud/crud.service\";\nimport { IEntity } from \"@smartsoft001/domain-core\";\nimport * as CrudActions from \"./crud.actions\";\nimport { CrudConfig } from \"../crud.config\";\nimport { getCrudFilter } from \"./crud.selectors\";\n\n@Injectable()\nexport class CrudEffects<T extends IEntity<string>> {\n constructor(\n private actions$: ActionsSubject,\n private service: CrudService<T>,\n private config: CrudConfig<T>,\n private store: Store<any>,\n private state: State<any>\n ) {}\n\n init(): void {\n const metadata = Reflect.getMetadata(this.config.entity, CrudEffects);\n\n if (metadata) return;\n\n Reflect.defineMetadata(this.config.entity, true, CrudEffects);\n\n this.actions$.subscribe((action: Action & any) => {\n switch (action.type) {\n case `[${this.config.entity}] Create`:\n this.service\n .create(action.item)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.createSuccess(this.config.entity, action.item)\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.createFailure(\n this.config.entity,\n action.item,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Create Success`:\n const createState = this.state.getValue()[this.config.entity];\n this.store.dispatch(\n CrudActions.read(\n this.config.entity,\n createState.filter ? { ...createState.filter, offset: 0 } : null\n )\n );\n break;\n\n case `[${this.config.entity}] Create Many`:\n this.service\n .createMany(action.data.items, action.data.options)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.createManySuccess(this.config.entity, {\n items: action.data.items,\n options: action.data.options,\n })\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.createManyFailure(\n this.config.entity,\n {\n items: action.data.items,\n options: action.data.options,\n },\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Create Many Success`:\n const createManyState = this.state.getValue()[this.config.entity];\n this.store.dispatch(\n CrudActions.read(\n this.config.entity,\n createManyState.filter\n ? { ...createManyState.filter, offset: 0 }\n : null\n )\n );\n break;\n\n case `[${this.config.entity}] Read`:\n this.service\n .getList(action.filter)\n .pipe(\n tap((result) =>\n this.store.dispatch(\n CrudActions.readSuccess(\n this.config.entity,\n action.filter,\n result\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.readFailure(\n this.config.entity,\n action.filter,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Export`:\n this.service\n .exportList(action.filter, action.format)\n .pipe(\n tap((result) =>\n this.store.dispatch(\n CrudActions.exportListSuccess(\n this.config.entity,\n action.filter\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.exportListFailure(\n this.config.entity,\n action.filter,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Select`:\n this.service\n .getById(action.id)\n .pipe(\n tap((result) =>\n this.store.dispatch(\n CrudActions.selectSuccess(\n this.config.entity,\n action.id,\n result\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.selectFailure(\n this.config.entity,\n action.id,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Update`:\n this.service\n .updatePartial(action.item)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.updateSuccess(this.config.entity, action.item)\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.updateFailure(\n this.config.entity,\n action.item,\n error\n )\n );\n this.store.dispatch(CrudActions.read(this.config.entity));\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Update Success`:\n this.store\n .pipe(select(getCrudFilter(this.config.entity)), first())\n .subscribe((filter) => {\n this.store.dispatch(\n CrudActions.read(this.config.entity, {\n ...filter,\n offset: 0,\n })\n );\n\n this.store.dispatch(CrudActions.select(this.config.entity, action.item.id));\n });\n break;\n\n case `[${this.config.entity}] Update partial`:\n this.service\n .updatePartial(action.item)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.updatePartialSuccess(\n this.config.entity,\n action.item\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.updatePartialFailure(\n this.config.entity,\n action.item,\n error\n )\n );\n this.store.dispatch(CrudActions.read(this.config.entity));\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Update partial Success`:\n this.store\n .pipe(select(getCrudFilter(this.config.entity)), first())\n .subscribe((filter) => {\n this.store.dispatch(\n CrudActions.read(this.config.entity, {\n ...filter,\n offset: 0,\n })\n );\n\n this.store.dispatch(CrudActions.select(this.config.entity, action.item.id));\n });\n break;\n\n case `[${this.config.entity}] Update partial many`:\n this.service\n .updatePartialMany(action.items)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.updatePartialManySuccess(\n this.config.entity,\n action.items\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.updatePartialManyFailure(\n this.config.entity,\n action.items,\n error\n )\n );\n this.store.dispatch(CrudActions.read(this.config.entity));\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Update partial many Success`:\n this.store\n .pipe(select(getCrudFilter(this.config.entity)), first())\n .subscribe((filter) => {\n this.store.dispatch(\n CrudActions.read(this.config.entity, {\n ...filter,\n offset: 0,\n })\n );\n });\n break;\n\n case `[${this.config.entity}] Delete`:\n this.service\n .delete(action.id)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.deleteSuccess(this.config.entity, action.id)\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.deleteFailure(\n this.config.entity,\n action.id,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Delete Success`:\n this.store\n .pipe(select(getCrudFilter(this.config.entity)), first())\n .subscribe((filter) => {\n this.store.dispatch(\n CrudActions.read(this.config.entity, {\n ...filter,\n offset: 0,\n })\n );\n });\n break;\n\n default:\n break;\n }\n });\n }\n}\n"]}
1
+ {"version":3,"file":"crud.effects.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/+state/crud.effects.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC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AU;YAL6B,KAAK;YAAZ,KAAK","sourcesContent":["import \"reflect-metadata\";\n\nimport { Injectable } from \"@angular/core\";\nimport { catchError, first, tap } from \"rxjs/operators\";\nimport { of } from \"rxjs\";\nimport { Action, ActionsSubject, select, State, Store } from \"@ngrx/store\";\n\nimport { CrudService } from \"../services/crud/crud.service\";\nimport { IEntity } from \"@smartsoft001/domain-core\";\nimport * as CrudActions from \"./crud.actions\";\nimport { CrudConfig } from \"../crud.config\";\nimport { getCrudFilter } from \"./crud.selectors\";\n\n@Injectable()\nexport class CrudEffects<T extends IEntity<string>> {\n constructor(\n private actions$: ActionsSubject,\n private service: CrudService<T>,\n private config: CrudConfig<T>,\n private store: Store<any>,\n private state: State<any>\n ) {}\n\n init(): void {\n const metadata = Reflect.getMetadata(this.config.entity, CrudEffects);\n\n if (metadata) return;\n\n Reflect.defineMetadata(this.config.entity, true, CrudEffects);\n\n this.actions$.subscribe((action: Action & any) => {\n switch (action.type) {\n case `[${this.config.entity}] Create`:\n this.service\n .create(action.item)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.createSuccess(this.config.entity, action.item)\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.createFailure(\n this.config.entity,\n action.item,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Create Success`:\n const createState = this.state.getValue()[this.config.entity];\n this.store.dispatch(\n CrudActions.read(\n this.config.entity,\n createState.filter ? { ...createState.filter, offset: 0 } : null\n )\n );\n break;\n\n case `[${this.config.entity}] Create Many`:\n this.service\n .createMany(action.data.items, action.data.options)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.createManySuccess(this.config.entity, {\n items: action.data.items,\n options: action.data.options,\n })\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.createManyFailure(\n this.config.entity,\n {\n items: action.data.items,\n options: action.data.options,\n },\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Create Many Success`:\n const createManyState = this.state.getValue()[this.config.entity];\n this.store.dispatch(\n CrudActions.read(\n this.config.entity,\n createManyState.filter\n ? { ...createManyState.filter, offset: 0 }\n : null\n )\n );\n break;\n\n case `[${this.config.entity}] Read`:\n this.service\n .getList(action.filter)\n .pipe(\n tap((result) =>\n this.store.dispatch(\n CrudActions.readSuccess(\n this.config.entity,\n action.filter,\n result\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.readFailure(\n this.config.entity,\n action.filter,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Export`:\n this.service\n .exportList(action.filter, action.format)\n .pipe(\n tap((result) =>\n this.store.dispatch(\n CrudActions.exportListSuccess(\n this.config.entity,\n action.filter\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.exportListFailure(\n this.config.entity,\n action.filter,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Select`:\n this.service\n .getById(action.id)\n .pipe(\n tap((result) =>\n this.store.dispatch(\n CrudActions.selectSuccess(\n this.config.entity,\n action.id,\n result\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.selectFailure(\n this.config.entity,\n action.id,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Update`:\n this.service\n .updatePartial(action.item)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.updateSuccess(this.config.entity, action.item)\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.updateFailure(\n this.config.entity,\n action.item,\n error\n )\n );\n this.store.dispatch(CrudActions.read(this.config.entity));\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Update Success`:\n this.store\n .pipe(select(getCrudFilter(this.config.entity)), first())\n .subscribe((filter) => {\n this.store.dispatch(\n CrudActions.read(this.config.entity, {\n ...filter,\n offset: 0,\n })\n );\n\n this.store.dispatch(CrudActions.select(this.config.entity, action.item.id));\n });\n break;\n\n case `[${this.config.entity}] Update partial`:\n this.service\n .updatePartial(action.item)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.updatePartialSuccess(\n this.config.entity,\n action.item\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.updatePartialFailure(\n this.config.entity,\n action.item,\n error\n )\n );\n this.store.dispatch(CrudActions.read(this.config.entity));\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Update partial Success`:\n this.store\n .pipe(select(getCrudFilter(this.config.entity)), first())\n .subscribe((filter) => {\n this.store.dispatch(\n CrudActions.read(this.config.entity, {\n ...filter,\n offset: 0,\n })\n );\n\n this.store.dispatch(CrudActions.select(this.config.entity, action.item.id));\n });\n break;\n\n case `[${this.config.entity}] Update partial many`:\n this.service\n .updatePartialMany(action.items)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.updatePartialManySuccess(\n this.config.entity,\n action.items\n )\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.updatePartialManyFailure(\n this.config.entity,\n action.items,\n error\n )\n );\n this.store.dispatch(CrudActions.read(this.config.entity));\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Update partial many Success`:\n this.store\n .pipe(select(getCrudFilter(this.config.entity)), first())\n .subscribe((filter) => {\n this.store.dispatch(\n CrudActions.read(this.config.entity, {\n ...filter,\n offset: 0,\n })\n );\n });\n break;\n\n case `[${this.config.entity}] Delete`:\n this.service\n .delete(action.id)\n .pipe(\n tap(() =>\n this.store.dispatch(\n CrudActions.deleteSuccess(this.config.entity, action.id)\n )\n ),\n catchError((error) => {\n this.store.dispatch(\n CrudActions.deleteFailure(\n this.config.entity,\n action.id,\n error\n )\n );\n return of();\n })\n )\n .subscribe();\n break;\n\n case `[${this.config.entity}] Delete Success`:\n this.store\n .pipe(select(getCrudFilter(this.config.entity)), first())\n .subscribe((filter) => {\n this.store.dispatch(\n CrudActions.read(this.config.entity, {\n ...filter,\n offset: 0,\n })\n );\n });\n break;\n\n default:\n break;\n }\n });\n }\n}\n"]}
@@ -74,10 +74,17 @@ export class CrudFacade {
74
74
  return this.store;
75
75
  }
76
76
  }
77
+ /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
77
78
  CrudFacade.decorators = [
78
79
  { type: Injectable }
79
80
  ];
80
- /** @nocollapse */
81
+ /**
82
+ * @type {function(): !Array<(null|{
83
+ * type: ?,
84
+ * decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
85
+ * })>}
86
+ * @nocollapse
87
+ */
81
88
  CrudFacade.ctorParameters = () => [
82
89
  { type: Store },
83
90
  { type: CrudConfig }
@@ -1 +1 @@
1
- {"version":3,"file":"crud.facade.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/+state/crud.facade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAIvD,MAAM,OAAO,UAAU;IAgDrB,YAAoB,KAAiB,EAAU,MAAqB;QAAhD,UAAK,GAAL,KAAK,CAAY;QAAU,WAAM,GAAN,MAAM,CAAe;QA1CpE,YAAO,GAAwB,IAAI,CAAC,KAAK,CAAC,IAAI,CAC5C,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CACxD,CAAC;QACF,aAAQ,GAAwB,IAAI,CAAC,KAAK,CAAC,IAAI,CAC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AAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,CAAC,EAAU;QACf,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;IAC3E,CAAC;IAEO,QAAQ;QACd,IAAI,gBAAgB,CAAC,KAAK;YAAE,OAAO,gBAAgB,CAAC,KAAK,CAAC;QAE1D,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;;;YAjHF,UAAU;;;;YAfM,KAAK;YAQb,UAAU","sourcesContent":["import { select, Store } from \"@ngrx/store\";\nimport { Observable } from \"rxjs\";\nimport { Injectable } from \"@angular/core\";\nimport { map, tap } from \"rxjs/operators\";\nimport * as _ from \"lodash\";\n\nimport { IEntity } from \"@smartsoft001/domain-core\";\n\nimport { CrudConfig } from \"../crud.config\";\nimport * as CrudActions from \"./crud.actions\";\nimport * as CrudSelectors from \"./crud.selectors\";\nimport {ICrudCreateManyOptions, ICrudFilter} from \"../models/interfaces\";\nimport {NgrxStoreService} from \"@smartsoft001/angular\";\n\n\n@Injectable()\nexport class CrudFacade<T extends IEntity<string>> {\n selected: T;\n multiSelected: T;\n list: Array<T>;\n filter: ICrudFilter;\n\n loaded$: Observable<boolean> = this.store.pipe(\n select(CrudSelectors.getCrudLoaded(this.config.entity))\n );\n loading$: Observable<boolean> = this.store.pipe(\n select(CrudSelectors.getCrudLoaded(this.config.entity)),\n map(l => !l)\n );\n selected$: Observable<T> = this.store.pipe(\n select(CrudSelectors.getCrudSelected(this.config.entity)),\n tap(s => {\n this.selected = s;\n })\n );\n multiSelected$: Observable<T[]> = this.store.pipe(\n select(CrudSelectors.getCrudMultiSelected(this.config.entity)),\n tap(s => {\n this.multiSelected = s;\n })\n );\n list$: Observable<T[]> = this.store.pipe(\n select(CrudSelectors.getCrudList(this.config.entity)),\n tap(l => {\n this.list = l;\n })\n );\n filter$: Observable<ICrudFilter> = this.store.pipe(\n select(CrudSelectors.getCrudFilter(this.config.entity)),\n tap(f => {\n this.filter = f;\n })\n );\n totalCount$: Observable<number> = this.store.pipe(\n select(CrudSelectors.getCrudTotalCount(this.config.entity))\n );\n links$: Observable<any> = this.store.pipe(\n select(CrudSelectors.getCrudLinks(this.config.entity))\n );\n\n error$: Observable<any> = this.store.pipe(\n select(CrudSelectors.getCrudError(this.config.entity))\n );\n\n constructor(private store: Store<any>, private config: CrudConfig<T>) {\n if (NgrxStoreService.store) {\n this.store = NgrxStoreService.store;\n }\n }\n\n create(item: T): void {\n this.store.dispatch(CrudActions.create(this.config.entity, item));\n }\n\n createMany(items: Array<T>, options: ICrudCreateManyOptions): void {\n this.store.dispatch(CrudActions.createMany(this.config.entity, { items, options }));\n }\n\n read(filter: ICrudFilter = null): void {\n let baseQuery = [];\n if (this.config.baseQuery) {\n baseQuery = this.config.baseQuery;\n }\n\n const fullFilter = {\n ...(filter ? filter : {}),\n query: filter && filter.query ? filter.query : baseQuery\n };\n\n this.store.dispatch(CrudActions.read(this.config.entity, fullFilter));\n }\n\n select(id: string): void {\n this.store.dispatch(CrudActions.select(this.config.entity, id));\n }\n\n unselect(): void {\n this.store.dispatch(CrudActions.unselect(this.config.entity));\n }\n\n multiSelect(items: Array<T>): void {\n this.store.dispatch(CrudActions.multiSelect(this.config.entity, items));\n }\n\n update(item: T): void {\n this.getStore().dispatch(CrudActions.update(this.config.entity, item));\n }\n\n export(filter: ICrudFilter = null, format = null): void {\n this.getStore().dispatch(CrudActions.exportList(this.config.entity, filter, format));\n }\n\n updatePartial(item: Partial<T> & { id: string }): void {\n this.getStore().dispatch(CrudActions.updatePartial(this.config.entity, item));\n }\n\n updatePartialMany(items: (Partial<T> & {id: string})[]) {\n this.getStore().dispatch(CrudActions.updatePartialMany(this.config.entity, items));\n }\n\n delete(id: string): void {\n this.getStore().dispatch(CrudActions.deleteItem(this.config.entity, id));\n }\n\n private getStore(): Store {\n if (NgrxStoreService.store) return NgrxStoreService.store;\n\n return this.store;\n }\n}\n"]}
1
+ {"version":3,"file":"crud.facade.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/+state/crud.facade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAIvD,MAAM,OAAO,UAAU;IAgDrB,YAAoB,KAAiB,EAAU,MAAqB;QAAhD,UAAK,GAAL,KAAK,CAAY;QAAU,WAAM,GAAN,MAAM,CAAe;QA1CpE,YAAO,GAAwB,IAAI,CAAC,KAAK,CAAC,IAAI,CAC5C,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CACxD,CAAC;QACF,aAAQ,GAAwB,IAAI,CAAC,KAAK,CAAC,IAAI,CAC7C,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EACvD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CACb,CAAC;QACF,cAAS,GAAkB,IAAI,CAAC,KAAK,CAAC,IAAI,CACxC,MAAM,CAAC,aAAa,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EACzD,GAAG,CAAC,CAAC,CAAC,EAAE;YACN,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QACpB,CAAC,CAAC,CACH,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M,KAAK;YAQb,UAAU","sourcesContent":["import { select, Store } from \"@ngrx/store\";\nimport { Observable } from \"rxjs\";\nimport { Injectable } from \"@angular/core\";\nimport { map, tap } from \"rxjs/operators\";\nimport * as _ from \"lodash\";\n\nimport { IEntity } from \"@smartsoft001/domain-core\";\n\nimport { CrudConfig } from \"../crud.config\";\nimport * as CrudActions from \"./crud.actions\";\nimport * as CrudSelectors from \"./crud.selectors\";\nimport {ICrudCreateManyOptions, ICrudFilter} from \"../models/interfaces\";\nimport {NgrxStoreService} from \"@smartsoft001/angular\";\n\n\n@Injectable()\nexport class CrudFacade<T extends IEntity<string>> {\n selected: T;\n multiSelected: T;\n list: Array<T>;\n filter: ICrudFilter;\n\n loaded$: Observable<boolean> = this.store.pipe(\n select(CrudSelectors.getCrudLoaded(this.config.entity))\n );\n loading$: Observable<boolean> = this.store.pipe(\n select(CrudSelectors.getCrudLoaded(this.config.entity)),\n map(l => !l)\n );\n selected$: Observable<T> = this.store.pipe(\n select(CrudSelectors.getCrudSelected(this.config.entity)),\n tap(s => {\n this.selected = s;\n })\n );\n multiSelected$: Observable<T[]> = this.store.pipe(\n select(CrudSelectors.getCrudMultiSelected(this.config.entity)),\n tap(s => {\n this.multiSelected = s;\n })\n );\n list$: Observable<T[]> = this.store.pipe(\n select(CrudSelectors.getCrudList(this.config.entity)),\n tap(l => {\n this.list = l;\n })\n );\n filter$: Observable<ICrudFilter> = this.store.pipe(\n select(CrudSelectors.getCrudFilter(this.config.entity)),\n tap(f => {\n this.filter = f;\n })\n );\n totalCount$: Observable<number> = this.store.pipe(\n select(CrudSelectors.getCrudTotalCount(this.config.entity))\n );\n links$: Observable<any> = this.store.pipe(\n select(CrudSelectors.getCrudLinks(this.config.entity))\n );\n\n error$: Observable<any> = this.store.pipe(\n select(CrudSelectors.getCrudError(this.config.entity))\n );\n\n constructor(private store: Store<any>, private config: CrudConfig<T>) {\n if (NgrxStoreService.store) {\n this.store = NgrxStoreService.store;\n }\n }\n\n create(item: T): void {\n this.store.dispatch(CrudActions.create(this.config.entity, item));\n }\n\n createMany(items: Array<T>, options: ICrudCreateManyOptions): void {\n this.store.dispatch(CrudActions.createMany(this.config.entity, { items, options }));\n }\n\n read(filter: ICrudFilter = null): void {\n let baseQuery = [];\n if (this.config.baseQuery) {\n baseQuery = this.config.baseQuery;\n }\n\n const fullFilter = {\n ...(filter ? filter : {}),\n query: filter && filter.query ? filter.query : baseQuery\n };\n\n this.store.dispatch(CrudActions.read(this.config.entity, fullFilter));\n }\n\n select(id: string): void {\n this.store.dispatch(CrudActions.select(this.config.entity, id));\n }\n\n unselect(): void {\n this.store.dispatch(CrudActions.unselect(this.config.entity));\n }\n\n multiSelect(items: Array<T>): void {\n this.store.dispatch(CrudActions.multiSelect(this.config.entity, items));\n }\n\n update(item: T): void {\n this.getStore().dispatch(CrudActions.update(this.config.entity, item));\n }\n\n export(filter: ICrudFilter = null, format = null): void {\n this.getStore().dispatch(CrudActions.exportList(this.config.entity, filter, format));\n }\n\n updatePartial(item: Partial<T> & { id: string }): void {\n this.getStore().dispatch(CrudActions.updatePartial(this.config.entity, item));\n }\n\n updatePartialMany(items: (Partial<T> & {id: string})[]) {\n this.getStore().dispatch(CrudActions.updatePartialMany(this.config.entity, items));\n }\n\n delete(id: string): void {\n this.getStore().dispatch(CrudActions.deleteItem(this.config.entity, id));\n }\n\n private getStore(): Store {\n if (NgrxStoreService.store) return NgrxStoreService.store;\n\n return this.store;\n }\n}\n"]}
@@ -30,6 +30,7 @@ const COMPONENTS = [
30
30
  ];
31
31
  export class CrudComponentsModule {
32
32
  }
33
+ /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
33
34
  CrudComponentsModule.decorators = [
34
35
  { type: NgModule, args: [{
35
36
  declarations: [
@@ -1 +1 @@
1
- {"version":3,"file":"components.module.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/components/components.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eA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;iBAChB;gBACD,OAAO,EAAE;oBACL,mBAAmB;oBACnB,WAAW;oBACX,YAAY;oBACZ,eAAe;oBACf,cAAc;oBACd,WAAW;oBACX,YAAY;iBACf;gBACD,OAAO,EAAE;oBACL,eAAe;oBACf,GAAG,UAAU;iBAChB;gBACD,SAAS,EAAE;oBACP,WAAW;oBACX,WAAW;oBACX,UAAU;oBACV,aAAa;oBACb,yBAAyB;iBAC5B;aACJ","sourcesContent":["import {NgModule} from \"@angular/core\";\nimport {StoreModule} from \"@ngrx/store\";\nimport {SocketIoModule} from \"ngx-socket-io\";\nimport {FormsModule} from \"@angular/forms\";\nimport {CommonModule} from \"@angular/common\";\n\nimport {SharedModule} from \"@smartsoft001/angular\";\n\nimport {ExportComponent} from \"./export/export.component\";\nimport {\n FilterComponent,\n FilterDateComponent,\n FilterDateWithEditComponent, FilterFlagComponent,\n FilterRadioComponent,\n FilterTextComponent,\n FilterCheckComponent\n} from \"./filter\";\nimport {FiltersConfigComponent} from \"./filters-config/filters-config.component\";\nimport {FiltersComponent} from \"./filters/filters.component\";\nimport {MultiselectComponent} from \"./multiselect/multiselect.component\";\nimport {SocketService} from \"../services/socket/socket.service\";\nimport {CrudPipesModule} from \"../pipes/pipes.module\";\nimport {CrudService} from \"../services/crud/crud.service\";\nimport {CrudEffects} from \"../+state/crud.effects\";\nimport {CrudFacade} from \"../+state/crud.facade\";\nimport {CrudListPaginationFactory} from \"../factories/list-pagination/list-pagination.factory\";\n\nconst COMPONENTS = [\n ExportComponent,\n FilterComponent,\n FilterTextComponent,\n FiltersConfigComponent,\n FilterDateComponent,\n FilterDateWithEditComponent,\n FilterRadioComponent,\n FiltersComponent,\n FilterFlagComponent,\n FilterCheckComponent,\n MultiselectComponent\n];\n\n@NgModule({\n declarations: [\n ...COMPONENTS\n ],\n entryComponents: [\n ...COMPONENTS\n ],\n imports: [\n //AuthSharedModule,\n StoreModule,\n SharedModule,\n CrudPipesModule,\n SocketIoModule,\n FormsModule,\n CommonModule\n ],\n exports: [\n CrudPipesModule,\n ...COMPONENTS\n ],\n providers: [\n CrudService,\n CrudEffects,\n CrudFacade,\n SocketService,\n CrudListPaginationFactory,\n ],\n})\nexport class CrudComponentsModule { }"]}
1
+ {"version":3,"file":"components.module.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/components/components.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,2BAA2B,EAAE,mBAAmB,EAChD,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,sBAAsB,EAAC,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,yBAAyB,EAAC,MAAM,sDAAsD,CAAC;AAE/F,MAAM,UAAU,GAAG;IACf,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,sBAAsB;IACtB,mBAAmB;IACnB,2BAA2B;IAC3B,oBAAoB;IACpB,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;CACvB,CAAC;AA8BF,MAAM,OAAO,oBAAoB;;;;YA5BhC,QAAQ,SAAC;gBACN,YAAY,EAAE;oBACV,GAAG,UAAU;iBAChB;gBACD,eAAe,EAAE;oBACb,GAAG,UAAU;iBAChB;gBACD,OAAO,EAAE;oBACL,mBAAmB;oBACnB,WAAW;oBACX,YAAY;oBACZ,eAAe;oBACf,cAAc;oBACd,WAAW;oBACX,YAAY;iBACf;gBACD,OAAO,EAAE;oBACL,eAAe;oBACf,GAAG,UAAU;iBAChB;gBACD,SAAS,EAAE;oBACP,WAAW;oBACX,WAAW;oBACX,UAAU;oBACV,aAAa;oBACb,yBAAyB;iBAC5B;aACJ","sourcesContent":["import {NgModule} from \"@angular/core\";\nimport {StoreModule} from \"@ngrx/store\";\nimport {SocketIoModule} from \"ngx-socket-io\";\nimport {FormsModule} from \"@angular/forms\";\nimport {CommonModule} from \"@angular/common\";\n\nimport {SharedModule} from \"@smartsoft001/angular\";\n\nimport {ExportComponent} from \"./export/export.component\";\nimport {\n FilterComponent,\n FilterDateComponent,\n FilterDateWithEditComponent, FilterFlagComponent,\n FilterRadioComponent,\n FilterTextComponent,\n FilterCheckComponent\n} from \"./filter\";\nimport {FiltersConfigComponent} from \"./filters-config/filters-config.component\";\nimport {FiltersComponent} from \"./filters/filters.component\";\nimport {MultiselectComponent} from \"./multiselect/multiselect.component\";\nimport {SocketService} from \"../services/socket/socket.service\";\nimport {CrudPipesModule} from \"../pipes/pipes.module\";\nimport {CrudService} from \"../services/crud/crud.service\";\nimport {CrudEffects} from \"../+state/crud.effects\";\nimport {CrudFacade} from \"../+state/crud.facade\";\nimport {CrudListPaginationFactory} from \"../factories/list-pagination/list-pagination.factory\";\n\nconst COMPONENTS = [\n ExportComponent,\n FilterComponent,\n FilterTextComponent,\n FiltersConfigComponent,\n FilterDateComponent,\n FilterDateWithEditComponent,\n FilterRadioComponent,\n FiltersComponent,\n FilterFlagComponent,\n FilterCheckComponent,\n MultiselectComponent\n];\n\n@NgModule({\n declarations: [\n ...COMPONENTS\n ],\n entryComponents: [\n ...COMPONENTS\n ],\n imports: [\n //AuthSharedModule,\n StoreModule,\n SharedModule,\n CrudPipesModule,\n SocketIoModule,\n FormsModule,\n CommonModule\n ],\n exports: [\n CrudPipesModule,\n ...COMPONENTS\n ],\n providers: [\n CrudService,\n CrudEffects,\n CrudFacade,\n SocketService,\n CrudListPaginationFactory,\n ],\n})\nexport class CrudComponentsModule { }"]}
@@ -1 +1 @@
1
- {"version":3,"file":"components.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/components/components.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './components.module';\nimport * as i2 from '@ngx-translate/core';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@ionic/angular';\nimport * as i5 from '@angular/common';\nimport * as i6 from '@smartsoft001/angular';\nimport * as i7 from './export/export.component';\nimport * as i8 from './filter/filter.component';\nimport * as i9 from './filter/text/text.component';\nimport * as i10 from './filters-config/filters-config.component';\nimport * as i11 from './filter/date/date.component';\nimport * as i12 from './filter/date-with-edit/date-with-edit.component';\nimport * as i13 from './filter/radio/radio.component';\nimport * as i14 from './filters/filters.component';\nimport * as i15 from './filter/flag/flag.component';\nimport * as i16 from './filter/check/check.component';\nimport * as i17 from './multiselect/multiselect.component';\nimport * as i18 from '../pipes/form-options/form-options.pipe';\nimport * as i19 from '@ngrx/store';\nimport * as i20 from '../pipes/pipes.module';\nimport * as i21 from 'ngx-socket-io';\nexport const CrudComponentsModuleNgFactory:i0.NgModuleFactory<i1.CrudComponentsModule> = (null as any);\nvar _decl0_0:i2.TranslateDirective = (<any>(null as any));\nvar _decl0_1:i3.ɵangular_packages_forms_forms_bb = (<any>(null as any));\nvar _decl0_2:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_3:i3.ɵangular_packages_forms_forms_ba = (<any>(null as any));\nvar _decl0_4:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_5:i3.NumberValueAccessor = (<any>(null as any));\nvar _decl0_6:i3.RangeValueAccessor = (<any>(null as any));\nvar _decl0_7:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_8:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_9:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_10:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_11:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_12:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_13:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_14:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_15:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_16:i3.PatternValidator = (<any>(null as any));\nvar _decl0_17:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_18:i3.EmailValidator = (<any>(null as any));\nvar _decl0_19:i3.MinValidator = (<any>(null as any));\nvar _decl0_20:i3.MaxValidator = (<any>(null as any));\nvar _decl0_21:i3.FormControlDirective = (<any>(null as any));\nvar _decl0_22:i3.FormGroupDirective = (<any>(null as any));\nvar _decl0_23:i3.FormControlName = (<any>(null as any));\nvar _decl0_24:i3.FormGroupName = (<any>(null as any));\nvar _decl0_25:i3.FormArrayName = (<any>(null as any));\nvar _decl0_26:i4.IonApp = (<any>(null as any));\nvar _decl0_27:i4.IonAvatar = (<any>(null as any));\nvar _decl0_28:i4.IonBackButton = (<any>(null as any));\nvar _decl0_29:i4.IonBackdrop = (<any>(null as any));\nvar _decl0_30:i4.IonBadge = (<any>(null as any));\nvar _decl0_31:i4.IonButton = (<any>(null as any));\nvar _decl0_32:i4.IonButtons = (<any>(null as any));\nvar _decl0_33:i4.IonCard = (<any>(null as any));\nvar _decl0_34:i4.IonCardContent = (<any>(null as any));\nvar _decl0_35:i4.IonCardHeader = (<any>(null as any));\nvar _decl0_36:i4.IonCardSubtitle = (<any>(null as any));\nvar _decl0_37:i4.IonCardTitle = (<any>(null as any));\nvar _decl0_38:i4.IonCheckbox = (<any>(null as any));\nvar _decl0_39:i4.IonChip = (<any>(null as any));\nvar _decl0_40:i4.IonCol = (<any>(null as any));\nvar _decl0_41:i4.IonContent = (<any>(null as any));\nvar _decl0_42:i4.IonDatetime = (<any>(null as any));\nvar _decl0_43:i4.IonFab = (<any>(null as any));\nvar _decl0_44:i4.IonFabButton = (<any>(null as any));\nvar _decl0_45:i4.IonFabList = (<any>(null as any));\nvar _decl0_46:i4.IonFooter = (<any>(null as any));\nvar _decl0_47:i4.IonGrid = (<any>(null as any));\nvar _decl0_48:i4.IonHeader = (<any>(null as any));\nvar _decl0_49:i4.IonIcon = (<any>(null as any));\nvar _decl0_50:i4.IonImg = (<any>(null as any));\nvar _decl0_51:i4.IonInfiniteScroll = (<any>(null as any));\nvar _decl0_52:i4.IonInfiniteScrollContent = (<any>(null as any));\nvar _decl0_53:i4.IonInput = (<any>(null as any));\nvar _decl0_54:i4.IonItem = (<any>(null as any));\nvar _decl0_55:i4.IonItemDivider = (<any>(null as any));\nvar _decl0_56:i4.IonItemGroup = (<any>(null as any));\nvar _decl0_57:i4.IonItemOption = (<any>(null as any));\nvar _decl0_58:i4.IonItemOptions = (<any>(null as any));\nvar _decl0_59:i4.IonItemSliding = (<any>(null as any));\nvar _decl0_60:i4.IonLabel = (<any>(null as any));\nvar _decl0_61:i4.IonList = (<any>(null as any));\nvar _decl0_62:i4.IonListHeader = (<any>(null as any));\nvar _decl0_63:i4.IonMenu = (<any>(null as any));\nvar _decl0_64:i4.IonMenuButton = (<any>(null as any));\nvar _decl0_65:i4.IonMenuToggle = (<any>(null as any));\nvar _decl0_66:i4.IonNav = (<any>(null as any));\nvar _decl0_67:i4.IonNavLink = (<any>(null as any));\nvar _decl0_68:i4.IonNote = (<any>(null as any));\nvar _decl0_69:i4.IonProgressBar = (<any>(null as any));\nvar _decl0_70:i4.IonRadio = (<any>(null as any));\nvar _decl0_71:i4.IonRadioGroup = (<any>(null as any));\nvar _decl0_72:i4.IonRange = (<any>(null as any));\nvar _decl0_73:i4.IonRefresher = (<any>(null as any));\nvar _decl0_74:i4.IonRefresherContent = (<any>(null as any));\nvar _decl0_75:i4.IonReorder = (<any>(null as any));\nvar _decl0_76:i4.IonReorderGroup = (<any>(null as any));\nvar _decl0_77:i4.IonRippleEffect = (<any>(null as any));\nvar _decl0_78:i4.IonRow = (<any>(null as any));\nvar _decl0_79:i4.IonSearchbar = (<any>(null as any));\nvar _decl0_80:i4.IonSegment = (<any>(null as any));\nvar _decl0_81:i4.IonSegmentButton = (<any>(null as any));\nvar _decl0_82:i4.IonSelect = (<any>(null as any));\nvar _decl0_83:i4.IonSelectOption = (<any>(null as any));\nvar _decl0_84:i4.IonSkeletonText = (<any>(null as any));\nvar _decl0_85:i4.IonSlide = (<any>(null as any));\nvar _decl0_86:i4.IonSlides = (<any>(null as any));\nvar _decl0_87:i4.IonSpinner = (<any>(null as any));\nvar _decl0_88:i4.IonSplitPane = (<any>(null as any));\nvar _decl0_89:i4.IonTabBar = (<any>(null as any));\nvar _decl0_90:i4.IonTabButton = (<any>(null as any));\nvar _decl0_91:i4.IonText = (<any>(null as any));\nvar _decl0_92:i4.IonTextarea = (<any>(null as any));\nvar _decl0_93:i4.IonThumbnail = (<any>(null as any));\nvar _decl0_94:i4.IonToggle = (<any>(null as any));\nvar _decl0_95:i4.IonToolbar = (<any>(null as any));\nvar _decl0_96:i4.IonTitle = (<any>(null as any));\nvar _decl0_97:i4.IonTabs = (<any>(null as any));\nvar _decl0_98:i4.BooleanValueAccessor = (<any>(null as any));\nvar _decl0_99:i4.NumericValueAccessor = (<any>(null as any));\nvar _decl0_100:i4.RadioValueAccessor = (<any>(null as any));\nvar _decl0_101:i4.SelectValueAccessor = (<any>(null as any));\nvar _decl0_102:i4.TextValueAccessor = (<any>(null as any));\nvar _decl0_103:i4.IonRouterOutlet = (<any>(null as any));\nvar _decl0_104:i4.IonBackButtonDelegate = (<any>(null as any));\nvar _decl0_105:i4.NavDelegate = (<any>(null as any));\nvar _decl0_106:i4.RouterLinkDelegate = (<any>(null as any));\nvar _decl0_107:i4.VirtualFooter = (<any>(null as any));\nvar _decl0_108:i4.VirtualHeader = (<any>(null as any));\nvar _decl0_109:i4.VirtualItem = (<any>(null as any));\nvar _decl0_110:i4.IonVirtualScroll = (<any>(null as any));\nvar _decl0_111:i5.NgClass = (<any>(null as any));\nvar _decl0_112:i5.NgComponentOutlet = (<any>(null as any));\nvar _decl0_113:i5.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_114:i5.NgIf<any> = (<any>(null as any));\nvar _decl0_115:i5.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_116:i5.NgStyle = (<any>(null as any));\nvar _decl0_117:i5.NgSwitch = (<any>(null as any));\nvar _decl0_118:i5.NgSwitchCase = (<any>(null as any));\nvar _decl0_119:i5.NgSwitchDefault = (<any>(null as any));\nvar _decl0_120:i5.NgPlural = (<any>(null as any));\nvar _decl0_121:i5.NgPluralCase = (<any>(null as any));\nvar _decl0_122:i6.ɵbz<any> = (<any>(null as any));\nvar _decl0_123:i6.ɵcc<any> = (<any>(null as any));\nvar _decl0_124:i6.ɵcd<any> = (<any>(null as any));\nvar _decl0_125:i6.ɵci = (<any>(null as any));\nvar _decl0_126:i6.ɵcl = (<any>(null as any));\nvar _decl0_127:i6.ɵco = (<any>(null as any));\nvar _decl0_128:i6.ɵcp<any> = (<any>(null as any));\nvar _decl0_129:i6.ɵcq<any> = (<any>(null as any));\nvar _decl0_130:i6.ɵct = (<any>(null as any));\nvar _decl0_131:i6.ɵcu<any> = (<any>(null as any));\nvar _decl0_132:i6.ɵcv<any> = (<any>(null as any));\nvar _decl0_133:i6.ɵcw<any> = (<any>(null as any));\nvar _decl0_134:i6.ɵcx<any> = (<any>(null as any));\nvar _decl0_135:i6.ɵcy<any> = (<any>(null as any));\nvar _decl0_136:i6.ɵcz<any> = (<any>(null as any));\nvar _decl0_137:i6.ɵdb<any> = (<any>(null as any));\nvar _decl0_138:i6.ɵdc<any> = (<any>(null as any));\nvar _decl0_139:i6.ɵdd<any> = (<any>(null as any));\nvar _decl0_140:i6.ɵde<any> = (<any>(null as any));\nvar _decl0_141:i6.ɵdi<any> = (<any>(null as any));\nvar _decl0_142:i6.ɵdj<any> = (<any>(null as any));\nvar _decl0_143:i6.ɵdk<any> = (<any>(null as any));\nvar _decl0_144:i6.ɵdl<any> = (<any>(null as any));\nvar _decl0_145:i6.ɵdm<any,any> = (<any>(null as any));\nvar _decl0_146:i6.ɵdn<any> = (<any>(null as any));\nvar _decl0_147:i6.ɵdo<any> = (<any>(null as any));\nvar _decl0_148:i6.ɵdp<any> = (<any>(null as any));\nvar _decl0_149:i6.ɵdq<any> = (<any>(null as any));\nvar _decl0_150:i6.ɵdr<any> = (<any>(null as any));\nvar _decl0_151:i6.ɵds<any> = (<any>(null as any));\nvar _decl0_152:i6.ɵdt<any,any> = (<any>(null as any));\nvar _decl0_153:i6.ɵdu<any> = (<any>(null as any));\nvar _decl0_154:i6.ɵdw<any> = (<any>(null as any));\nvar _decl0_155:i6.ɵdx<any> = (<any>(null as any));\nvar _decl0_156:i6.ɵdy<any> = (<any>(null as any));\nvar _decl0_157:i6.ɵdz<any> = (<any>(null as any));\nvar _decl0_158:i6.ɵea<any> = (<any>(null as any));\nvar _decl0_159:i6.ɵeb = (<any>(null as any));\nvar _decl0_160:i6.ɵec = (<any>(null as any));\nvar _decl0_161:i6.ɵed<any> = (<any>(null as any));\nvar _decl0_162:i6.ɵee<any> = (<any>(null as any));\nvar _decl0_163:i6.ɵeg<any> = (<any>(null as any));\nvar _decl0_164:i6.ɵeh<any> = (<any>(null as any));\nvar _decl0_165:i6.ɵei = (<any>(null as any));\nvar _decl0_166:i6.ɵej<any> = (<any>(null as any));\nvar _decl0_167:i6.ɵek<any> = (<any>(null as any));\nvar _decl0_168:i6.ɵem<any> = (<any>(null as any));\nvar _decl0_169:i6.ɵen<any> = (<any>(null as any));\nvar _decl0_170:i6.ɵeo<any> = (<any>(null as any));\nvar _decl0_171:i6.ɵep<any> = (<any>(null as any));\nvar _decl0_172:i6.ɵeq<any,any> = (<any>(null as any));\nvar _decl0_173:i6.ɵer<any> = (<any>(null as any));\nvar _decl0_174:i6.ɵes<any> = (<any>(null as any));\nvar _decl0_175:i6.ɵet<any,any> = (<any>(null as any));\nvar _decl0_176:i6.ɵeu<any> = (<any>(null as any));\nvar _decl0_177:i6.ɵev<any> = (<any>(null as any));\nvar _decl0_178:i6.ɵew<any> = (<any>(null as any));\nvar _decl0_179:i6.ɵex<any> = (<any>(null as any));\nvar _decl0_180:i6.ɵey<any> = (<any>(null as any));\nvar _decl0_181:i6.ɵez<any> = (<any>(null as any));\nvar _decl0_182:i6.ɵfa<any> = (<any>(null as any));\nvar _decl0_183:i6.ɵfc = (<any>(null as any));\nvar _decl0_184:i6.ɵfd = (<any>(null as any));\nvar _decl0_185:i6.ɵfe = (<any>(null as any));\nvar _decl0_186:i6.ɵff = (<any>(null as any));\nvar _decl0_187:i6.ɵfg = (<any>(null as any));\nvar _decl0_188:i6.ɵfh = (<any>(null as any));\nvar _decl0_189:i6.ɵfi<any> = (<any>(null as any));\nvar _decl0_190:i6.ɵfj<any> = (<any>(null as any));\nvar _decl0_191:i6.ɵfl<any> = (<any>(null as any));\nvar _decl0_192:i6.ɵfm = (<any>(null as any));\nvar _decl0_193:i6.ɵfn = (<any>(null as any));\nvar _decl0_194:i6.ɵfo = (<any>(null as any));\nvar _decl0_195:i6.ɵfp = (<any>(null as any));\nvar _decl0_196:i6.ɵfq = (<any>(null as any));\nvar _decl0_197:i6.ɵfr = (<any>(null as any));\nvar _decl0_198:i6.ɵfs = (<any>(null as any));\nvar _decl0_199:i6.ɵft = (<any>(null as any));\nvar _decl0_200:i6.ɵfu = (<any>(null as any));\nvar _decl0_201:i6.ɵfv = (<any>(null as any));\nvar _decl0_202:i6.ɵfw = (<any>(null as any));\nvar _decl0_203:i6.ɵfx = (<any>(null as any));\nvar _decl0_204:i6.ɵfy = (<any>(null as any));\nvar _decl0_205:i6.ɵgd<any> = (<any>(null as any));\nvar _decl0_206:i6.ɵga = (<any>(null as any));\nvar _decl0_207:i6.ɵgb = (<any>(null as any));\nvar _decl0_208:i3.NgModel = (<any>(null as any));\nvar _decl0_209:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_210:i3.NgForm = (<any>(null as any));\nvar _decl0_211:i7.ExportComponent<any> = (<any>(null as any));\nvar _decl0_212:i8.FilterComponent = (<any>(null as any));\nvar _decl0_213:i9.FilterTextComponent<any> = (<any>(null as any));\nvar _decl0_214:i10.FiltersConfigComponent<any> = (<any>(null as any));\nvar _decl0_215:i11.FilterDateComponent<any> = (<any>(null as any));\nvar _decl0_216:i12.FilterDateWithEditComponent<any> = (<any>(null as any));\nvar _decl0_217:i13.FilterRadioComponent<any> = (<any>(null as any));\nvar _decl0_218:i14.FiltersComponent<any> = (<any>(null as any));\nvar _decl0_219:i15.FilterFlagComponent<any> = (<any>(null as any));\nvar _decl0_220:i16.FilterCheckComponent<any> = (<any>(null as any));\nvar _decl0_221:i17.MultiselectComponent<any> = (<any>(null as any));\nvar _decl0_222:i2.TranslatePipe = (<any>(null as any));\nvar _decl0_223:i5.AsyncPipe = (<any>(null as any));\nvar _decl0_224:i5.UpperCasePipe = (<any>(null as any));\nvar _decl0_225:i5.LowerCasePipe = (<any>(null as any));\nvar _decl0_226:i5.JsonPipe = (<any>(null as any));\nvar _decl0_227:i5.SlicePipe = (<any>(null as any));\nvar _decl0_228:i5.DecimalPipe = (<any>(null as any));\nvar _decl0_229:i5.PercentPipe = (<any>(null as any));\nvar _decl0_230:i5.TitleCasePipe = (<any>(null as any));\nvar _decl0_231:i5.CurrencyPipe = (<any>(null as any));\nvar _decl0_232:i5.DatePipe = (<any>(null as any));\nvar _decl0_233:i5.I18nPluralPipe = (<any>(null as any));\nvar _decl0_234:i5.I18nSelectPipe = (<any>(null as any));\nvar _decl0_235:i5.KeyValuePipe = (<any>(null as any));\nvar _decl0_236:i6.ɵw = (<any>(null as any));\nvar _decl0_237:i6.ɵx<any> = (<any>(null as any));\nvar _decl0_238:i6.ɵy = (<any>(null as any));\nvar _decl0_239:i6.ɵz<any> = (<any>(null as any));\nvar _decl0_240:i6.ɵbc<any> = (<any>(null as any));\nvar _decl0_241:i18.FormOptionsPipe<any> = (<any>(null as any));\nvar _decl0_242:i19.StoreModule = (<any>(null as any));\nvar _decl0_243:i6.SharedModule = (<any>(null as any));\nvar _decl0_248:i20.CrudPipesModule = (<any>(null as any));\nvar _decl0_245:i21.SocketIoModule = (<any>(null as any));\nvar _decl0_246:i3.FormsModule = (<any>(null as any));\nvar _decl0_247:i5.CommonModule = (<any>(null as any));\nvar _decl0_249:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_250:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_ExportComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ExportComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_211.buttonExportCsvOptions;\n currVal_0;\n const currVal_1:any = _decl0_211.buttonExportXlsxOptions;\n currVal_1;\n}\nfunction _View_FilterComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterComponent_2_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_3():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_4():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_5():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_6():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item.fieldType;\n currVal_0;\n const currVal_1:any = _decl0_212.FieldType.date;\n currVal_1;\n const currVal_2:any = _decl0_212.FieldType.dateWithEdit;\n currVal_2;\n const currVal_3:any = _decl0_212.FieldType.radio;\n currVal_3;\n const currVal_4:any = _decl0_212.FieldType.check;\n currVal_4;\n const currVal_5:any = _decl0_212.FieldType.flag;\n currVal_5;\n}\nfunction _View_FilterTextComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterTextComponent_3_1():void {\n if (_decl0_213.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'auto';\n currVal_0;\n const currVal_1:any = 'danger';\n currVal_1;\n const currVal_2:any = 'close-outline';\n currVal_2;\n const pd_3:any = ((<any>_decl0_213.refresh(null)) !== false);\n }\n}\nfunction _View_FilterTextComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'floating';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_213.item.label);\n currVal_1;\n const currVal_2:any = _decl0_213.value;\n currVal_2;\n const currVal_3:any = _decl0_11.is('untouched');\n currVal_3;\n const currVal_4:any = _decl0_11.is('touched');\n currVal_4;\n const currVal_5:any = _decl0_11.is('pristine');\n currVal_5;\n const currVal_6:any = _decl0_11.is('dirty');\n currVal_6;\n const currVal_7:any = _decl0_11.is('valid');\n currVal_7;\n const currVal_8:any = _decl0_11.is('invalid');\n currVal_8;\n const currVal_9:any = _decl0_11.is('pending');\n currVal_9;\n const currVal_10:any = _decl0_213.value;\n currVal_10;\n const pd_11:any = ((<any>_decl0_102._handleBlurEvent(_any.target)) !== false);\n const pd_12:any = ((<any>_decl0_102._handleInputEvent(_any.target)) !== false);\n const pd_13:any = ((<any>(_decl0_213.value = _any)) !== false);\n}\nfunction _View_FiltersConfigComponent_Host_4_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FiltersConfigComponent_4_3():void {\n if ((_decl0_223.transform(_decl0_214.query$) && ((_any == null)? (null as any): _any.length))) {\n var _any:any = (null as any);\n const currVal_0:any = 'medium';\n currVal_0;\n const currVal_1:any = 'true';\n currVal_1;\n const currVal_2:any = 'primary';\n currVal_2;\n const currVal_3:any = 'filter-circle-outline';\n currVal_3;\n const currVal_4:any = _decl0_222.transform(('MODEL.' + _any.key));\n currVal_4;\n const currVal_5:any = _any.type;\n currVal_5;\n const currVal_6:any = _decl0_222.transform(_any.value);\n currVal_6;\n const currVal_7:any = 'danger';\n currVal_7;\n const currVal_8:any = 'close';\n currVal_8;\n const pd_9:any = ((<any>_decl0_214.onRemoveQuery(_any)) !== false);\n }\n}\nfunction _View_FiltersConfigComponent_4_2():void {\n if ((_decl0_223.transform(_decl0_214.query$) && ((_any == null)? (null as any): _any.length))) {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n }\n}\nfunction _View_FiltersConfigComponent_4_1():void {\n if (_decl0_223.transform(_decl0_214.query$)) {\n var _any:any = (null as any);\n const currVal_0:any = ((_any == null)? (null as any): _any.length);\n currVal_0;\n }\n}\nfunction _View_FiltersConfigComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_223.transform(_decl0_214.query$);\n currVal_0;\n}\nfunction _View_FilterDateComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterDateComponent_5_1():void {\n if (_decl0_215.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'auto';\n currVal_0;\n const currVal_1:any = 'danger';\n currVal_1;\n const currVal_2:any = 'close-outline';\n currVal_2;\n const pd_3:any = ((<any>_decl0_215.refresh(null)) !== false);\n }\n}\nfunction _View_FilterDateComponent_5_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'floating';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_215.item.label);\n currVal_1;\n const currVal_2:any = _decl0_215.customValue;\n currVal_2;\n const currVal_3:any = _decl0_11.is('untouched');\n currVal_3;\n const currVal_4:any = _decl0_11.is('touched');\n currVal_4;\n const currVal_5:any = _decl0_11.is('pristine');\n currVal_5;\n const currVal_6:any = _decl0_11.is('dirty');\n currVal_6;\n const currVal_7:any = _decl0_11.is('valid');\n currVal_7;\n const currVal_8:any = _decl0_11.is('invalid');\n currVal_8;\n const currVal_9:any = _decl0_11.is('pending');\n currVal_9;\n const currVal_10:any = 'YYYY-MM-DD';\n currVal_10;\n const currVal_11:any = 'YYYY-MM-DD';\n currVal_11;\n const currVal_12:any = _decl0_215.value;\n currVal_12;\n const pd_13:any = ((<any>_decl0_101._handleBlurEvent(_any.target)) !== false);\n const pd_14:any = ((<any>_decl0_101._handleChangeEvent(_any.target)) !== false);\n const pd_15:any = ((<any>(_decl0_215.customValue = _any)) !== false);\n}\nfunction _View_FilterDateWithEditComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterDateWithEditComponent_6_1():void {\n if (_decl0_216.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'auto';\n currVal_0;\n const currVal_1:any = 'danger';\n currVal_1;\n const currVal_2:any = 'close-outline';\n currVal_2;\n const pd_3:any = ((<any>_decl0_216.refresh(null)) !== false);\n }\n}\nfunction _View_FilterDateWithEditComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'floating';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_216.item.label);\n currVal_1;\n const currVal_2:any = '([12]\\\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\\\d|3[01]))';\n currVal_2;\n const currVal_3:any = (_decl0_16.pattern? _decl0_16.pattern: null);\n currVal_3;\n const currVal_4:any = _decl0_216.customValue;\n currVal_4;\n const currVal_5:any = _decl0_11.is('untouched');\n currVal_5;\n const currVal_6:any = _decl0_11.is('touched');\n currVal_6;\n const currVal_7:any = _decl0_11.is('pristine');\n currVal_7;\n const currVal_8:any = _decl0_11.is('dirty');\n currVal_8;\n const currVal_9:any = _decl0_11.is('valid');\n currVal_9;\n const currVal_10:any = _decl0_11.is('invalid');\n currVal_10;\n const currVal_11:any = _decl0_11.is('pending');\n currVal_11;\n const currVal_12:any = '([12]\\\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\\\d|3[01]))';\n currVal_12;\n const currVal_13:any = 'YYYY-MM-DD';\n currVal_13;\n const currVal_14:any = _decl0_216.customValue;\n currVal_14;\n const currVal_15:any = _decl0_11.is('untouched');\n currVal_15;\n const currVal_16:any = _decl0_11.is('touched');\n currVal_16;\n const currVal_17:any = _decl0_11.is('pristine');\n currVal_17;\n const currVal_18:any = _decl0_11.is('dirty');\n currVal_18;\n const currVal_19:any = _decl0_11.is('valid');\n currVal_19;\n const currVal_20:any = _decl0_11.is('invalid');\n currVal_20;\n const currVal_21:any = _decl0_11.is('pending');\n currVal_21;\n const currVal_22:any = 'YYYY-MM-DD';\n currVal_22;\n const currVal_23:any = 'YYYY-MM-DD';\n currVal_23;\n const currVal_24:any = true;\n currVal_24;\n const currVal_25:any = 'auto';\n currVal_25;\n const currVal_26:any = 'calendar-outline';\n currVal_26;\n const currVal_27:any = _decl0_216.value;\n currVal_27;\n const pd_28:any = ((<any>_decl0_102._handleBlurEvent(_any.target)) !== false);\n const pd_29:any = ((<any>_decl0_102._handleInputEvent(_any.target)) !== false);\n const pd_30:any = ((<any>(_decl0_216.customValue = _any)) !== false);\n const pd_31:any = ((<any>_decl0_101._handleBlurEvent(_any.target)) !== false);\n const pd_32:any = ((<any>_decl0_101._handleChangeEvent(_any.target)) !== false);\n const pd_33:any = ((<any>(_decl0_216.customValue = _any)) !== false);\n const pd_34:any = ((<any>_decl0_216.open()) !== false);\n}\nfunction _View_FilterRadioComponent_Host_7_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterRadioComponent_7_1():void {\n if (_decl0_217.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'danger';\n currVal_0;\n const currVal_1:any = 'close-outline';\n currVal_1;\n const pd_2:any = ((<any>_decl0_217.refresh(null)) !== false);\n }\n}\nfunction _View_FilterRadioComponent_7_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_222.transform(_any.text);\n currVal_0;\n const currVal_1:any = _any.id;\n currVal_1;\n const pd_2:any = ((<any>_decl0_100._handleBlurEvent(_any.target)) !== false);\n const pd_3:any = ((<any>_decl0_100._handleIonSelect(_any.target)) !== false);\n}\nfunction _View_FilterRadioComponent_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_217.value;\n currVal_0;\n const currVal_1:any = _decl0_11.is('untouched');\n currVal_1;\n const currVal_2:any = _decl0_11.is('touched');\n currVal_2;\n const currVal_3:any = _decl0_11.is('pristine');\n currVal_3;\n const currVal_4:any = _decl0_11.is('dirty');\n currVal_4;\n const currVal_5:any = _decl0_11.is('valid');\n currVal_5;\n const currVal_6:any = _decl0_11.is('invalid');\n currVal_6;\n const currVal_7:any = _decl0_11.is('pending');\n currVal_7;\n const currVal_8:any = 'filter-outline';\n currVal_8;\n const currVal_9:any = _decl0_222.transform(_decl0_217.item.label);\n currVal_9;\n const currVal_10:any = _decl0_217.value;\n currVal_10;\n const currVal_11:any = _decl0_223.transform(_decl0_217.possibilities$);\n currVal_11;\n const pd_12:any = ((<any>_decl0_101._handleBlurEvent(_any.target)) !== false);\n const pd_13:any = ((<any>_decl0_101._handleChangeEvent(_any.target)) !== false);\n const pd_14:any = ((<any>(_decl0_217.value = _any)) !== false);\n}\nfunction _View_FiltersComponent_Host_8_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FiltersComponent_8_2():void {\n if (_decl0_223.transform(_decl0_218.filter$)) {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n const currVal_1:any = _any;\n currVal_1;\n }\n}\nfunction _View_FiltersComponent_8_1():void {\n if (_decl0_223.transform(_decl0_218.filter$)) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_218.list;\n currVal_0;\n }\n}\nfunction _View_FiltersComponent_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_218.hideMenu;\n currVal_0;\n const currVal_1:any = 'close';\n currVal_1;\n const currVal_2:any = _decl0_222.transform('filters');\n currVal_2;\n const currVal_3:any = _decl0_223.transform(_decl0_218.filter$);\n currVal_3;\n const pd_4:any = ((<any>_decl0_218.onClose()) !== false);\n}\nfunction _View_FilterFlagComponent_Host_9_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterFlagComponent_9_1():void {\n if (_decl0_219.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'auto';\n currVal_0;\n const currVal_1:any = 'danger';\n currVal_1;\n const currVal_2:any = 'close-outline';\n currVal_2;\n const pd_3:any = ((<any>_decl0_219.refresh(null)) !== false);\n }\n}\nfunction _View_FilterFlagComponent_9_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'static';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_219.item.label);\n currVal_1;\n const currVal_2:any = _decl0_219.value;\n currVal_2;\n const currVal_3:any = _decl0_11.is('untouched');\n currVal_3;\n const currVal_4:any = _decl0_11.is('touched');\n currVal_4;\n const currVal_5:any = _decl0_11.is('pristine');\n currVal_5;\n const currVal_6:any = _decl0_11.is('dirty');\n currVal_6;\n const currVal_7:any = _decl0_11.is('valid');\n currVal_7;\n const currVal_8:any = _decl0_11.is('invalid');\n currVal_8;\n const currVal_9:any = _decl0_11.is('pending');\n currVal_9;\n const currVal_10:any = _decl0_219.value;\n currVal_10;\n const pd_11:any = ((<any>_decl0_98._handleBlurEvent(_any.target)) !== false);\n const pd_12:any = ((<any>_decl0_98._handleIonChange(_any.target)) !== false);\n const pd_13:any = ((<any>(_decl0_219.value = _any)) !== false);\n}\nfunction _View_FilterCheckComponent_Host_10_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterCheckComponent_10_1():void {\n if ((_decl0_220.value && _decl0_220.value.length)) {\n var _any:any = (null as any);\n const currVal_0:any = 'danger';\n currVal_0;\n const currVal_1:any = 'close-outline';\n currVal_1;\n const pd_2:any = ((<any>_decl0_220.refresh(([] as any[]))) !== false);\n }\n}\nfunction _View_FilterCheckComponent_10_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_222.transform(_any.value.text);\n currVal_0;\n const currVal_1:any = _any.isCheck;\n currVal_1;\n const pd_2:any = ((<any>_decl0_98._handleBlurEvent(_any.target)) !== false);\n const pd_3:any = ((<any>_decl0_98._handleIonChange(_any.target)) !== false);\n const pd_4:any = ((<any>_decl0_220.onCheckChange(_any.detail.checked,_any)) !== false);\n}\nfunction _View_FilterCheckComponent_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'filter-outline';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_220.item.label);\n currVal_1;\n const currVal_2:any = (_decl0_220.value && _decl0_220.value.length);\n currVal_2;\n const currVal_3:any = _decl0_223.transform(_decl0_220.list$);\n currVal_3;\n}\nfunction _View_MultiselectComponent_Host_11_0():void {\n var _any:any = (null as any);\n}\nfunction _View_MultiselectComponent_11_2():void {\n if ((_decl0_223.transform(_decl0_221.list$) && _decl0_221.item)) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_241.transform(_decl0_221.item,'multiUpdate',_decl0_221.config.type);\n currVal_0;\n const currVal_1:any = _decl0_221.buttonOptions;\n currVal_1;\n const currVal_2:any = (_decl0_221.lock || !_decl0_221.valid);\n currVal_2;\n const currVal_3:any = _decl0_222.transform('change');\n currVal_3;\n const pd_4:any = ((<any>_decl0_221.onPartialChange(_any,_any)) !== false);\n const pd_5:any = ((<any>_decl0_221.onValidChange(_any)) !== false);\n }\n}\nfunction _View_MultiselectComponent_11_1():void {\n if (_decl0_223.transform(_decl0_221.list$)) {\n var _any:any = (null as any);\n const currVal_0:any = 'close';\n currVal_0;\n const currVal_1:any = _decl0_222.transform('selected');\n currVal_1;\n const currVal_2:any = ((_any == null)? (null as any): _any.length);\n currVal_2;\n const currVal_3:any = _decl0_221.item;\n currVal_3;\n const pd_4:any = ((<any>_decl0_221.onClose()) !== false);\n }\n}\nfunction _View_MultiselectComponent_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_223.transform(_decl0_221.list$);\n currVal_0;\n}\n"]}
1
+ {"version":3,"file":"components.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/components/components.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './components.module';\nimport * as i2 from '@ngx-translate/core';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@ionic/angular';\nimport * as i5 from '@angular/common';\nimport * as i6 from '@smartsoft001/angular';\nimport * as i7 from './export/export.component';\nimport * as i8 from './filter/filter.component';\nimport * as i9 from './filter/text/text.component';\nimport * as i10 from './filters-config/filters-config.component';\nimport * as i11 from './filter/date/date.component';\nimport * as i12 from './filter/date-with-edit/date-with-edit.component';\nimport * as i13 from './filter/radio/radio.component';\nimport * as i14 from './filters/filters.component';\nimport * as i15 from './filter/flag/flag.component';\nimport * as i16 from './filter/check/check.component';\nimport * as i17 from './multiselect/multiselect.component';\nimport * as i18 from '../pipes/form-options/form-options.pipe';\nimport * as i19 from '@ngrx/store';\nimport * as i20 from '../pipes/pipes.module';\nimport * as i21 from 'ngx-socket-io';\nexport const CrudComponentsModuleNgFactory:i0.NgModuleFactory<i1.CrudComponentsModule> = (null as any);\nvar _decl0_0:i2.TranslateDirective = (<any>(null as any));\nvar _decl0_1:i3.ɵangular_packages_forms_forms_bc = (<any>(null as any));\nvar _decl0_2:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_3:i3.ɵangular_packages_forms_forms_bb = (<any>(null as any));\nvar _decl0_4:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_5:i3.NumberValueAccessor = (<any>(null as any));\nvar _decl0_6:i3.RangeValueAccessor = (<any>(null as any));\nvar _decl0_7:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_8:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_9:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_10:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_11:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_12:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_13:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_14:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_15:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_16:i3.PatternValidator = (<any>(null as any));\nvar _decl0_17:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_18:i3.EmailValidator = (<any>(null as any));\nvar _decl0_19:i3.MinValidator = (<any>(null as any));\nvar _decl0_20:i3.MaxValidator = (<any>(null as any));\nvar _decl0_21:i3.FormControlDirective = (<any>(null as any));\nvar _decl0_22:i3.FormGroupDirective = (<any>(null as any));\nvar _decl0_23:i3.FormControlName = (<any>(null as any));\nvar _decl0_24:i3.FormGroupName = (<any>(null as any));\nvar _decl0_25:i3.FormArrayName = (<any>(null as any));\nvar _decl0_26:i4.IonApp = (<any>(null as any));\nvar _decl0_27:i4.IonAvatar = (<any>(null as any));\nvar _decl0_28:i4.IonBackButton = (<any>(null as any));\nvar _decl0_29:i4.IonBackdrop = (<any>(null as any));\nvar _decl0_30:i4.IonBadge = (<any>(null as any));\nvar _decl0_31:i4.IonButton = (<any>(null as any));\nvar _decl0_32:i4.IonButtons = (<any>(null as any));\nvar _decl0_33:i4.IonCard = (<any>(null as any));\nvar _decl0_34:i4.IonCardContent = (<any>(null as any));\nvar _decl0_35:i4.IonCardHeader = (<any>(null as any));\nvar _decl0_36:i4.IonCardSubtitle = (<any>(null as any));\nvar _decl0_37:i4.IonCardTitle = (<any>(null as any));\nvar _decl0_38:i4.IonCheckbox = (<any>(null as any));\nvar _decl0_39:i4.IonChip = (<any>(null as any));\nvar _decl0_40:i4.IonCol = (<any>(null as any));\nvar _decl0_41:i4.IonContent = (<any>(null as any));\nvar _decl0_42:i4.IonDatetime = (<any>(null as any));\nvar _decl0_43:i4.IonFab = (<any>(null as any));\nvar _decl0_44:i4.IonFabButton = (<any>(null as any));\nvar _decl0_45:i4.IonFabList = (<any>(null as any));\nvar _decl0_46:i4.IonFooter = (<any>(null as any));\nvar _decl0_47:i4.IonGrid = (<any>(null as any));\nvar _decl0_48:i4.IonHeader = (<any>(null as any));\nvar _decl0_49:i4.IonIcon = (<any>(null as any));\nvar _decl0_50:i4.IonImg = (<any>(null as any));\nvar _decl0_51:i4.IonInfiniteScroll = (<any>(null as any));\nvar _decl0_52:i4.IonInfiniteScrollContent = (<any>(null as any));\nvar _decl0_53:i4.IonInput = (<any>(null as any));\nvar _decl0_54:i4.IonItem = (<any>(null as any));\nvar _decl0_55:i4.IonItemDivider = (<any>(null as any));\nvar _decl0_56:i4.IonItemGroup = (<any>(null as any));\nvar _decl0_57:i4.IonItemOption = (<any>(null as any));\nvar _decl0_58:i4.IonItemOptions = (<any>(null as any));\nvar _decl0_59:i4.IonItemSliding = (<any>(null as any));\nvar _decl0_60:i4.IonLabel = (<any>(null as any));\nvar _decl0_61:i4.IonList = (<any>(null as any));\nvar _decl0_62:i4.IonListHeader = (<any>(null as any));\nvar _decl0_63:i4.IonMenu = (<any>(null as any));\nvar _decl0_64:i4.IonMenuButton = (<any>(null as any));\nvar _decl0_65:i4.IonMenuToggle = (<any>(null as any));\nvar _decl0_66:i4.IonNav = (<any>(null as any));\nvar _decl0_67:i4.IonNavLink = (<any>(null as any));\nvar _decl0_68:i4.IonNote = (<any>(null as any));\nvar _decl0_69:i4.IonProgressBar = (<any>(null as any));\nvar _decl0_70:i4.IonRadio = (<any>(null as any));\nvar _decl0_71:i4.IonRadioGroup = (<any>(null as any));\nvar _decl0_72:i4.IonRange = (<any>(null as any));\nvar _decl0_73:i4.IonRefresher = (<any>(null as any));\nvar _decl0_74:i4.IonRefresherContent = (<any>(null as any));\nvar _decl0_75:i4.IonReorder = (<any>(null as any));\nvar _decl0_76:i4.IonReorderGroup = (<any>(null as any));\nvar _decl0_77:i4.IonRippleEffect = (<any>(null as any));\nvar _decl0_78:i4.IonRow = (<any>(null as any));\nvar _decl0_79:i4.IonSearchbar = (<any>(null as any));\nvar _decl0_80:i4.IonSegment = (<any>(null as any));\nvar _decl0_81:i4.IonSegmentButton = (<any>(null as any));\nvar _decl0_82:i4.IonSelect = (<any>(null as any));\nvar _decl0_83:i4.IonSelectOption = (<any>(null as any));\nvar _decl0_84:i4.IonSkeletonText = (<any>(null as any));\nvar _decl0_85:i4.IonSlide = (<any>(null as any));\nvar _decl0_86:i4.IonSlides = (<any>(null as any));\nvar _decl0_87:i4.IonSpinner = (<any>(null as any));\nvar _decl0_88:i4.IonSplitPane = (<any>(null as any));\nvar _decl0_89:i4.IonTabBar = (<any>(null as any));\nvar _decl0_90:i4.IonTabButton = (<any>(null as any));\nvar _decl0_91:i4.IonText = (<any>(null as any));\nvar _decl0_92:i4.IonTextarea = (<any>(null as any));\nvar _decl0_93:i4.IonThumbnail = (<any>(null as any));\nvar _decl0_94:i4.IonToggle = (<any>(null as any));\nvar _decl0_95:i4.IonToolbar = (<any>(null as any));\nvar _decl0_96:i4.IonTitle = (<any>(null as any));\nvar _decl0_97:i4.IonTabs = (<any>(null as any));\nvar _decl0_98:i4.BooleanValueAccessor = (<any>(null as any));\nvar _decl0_99:i4.NumericValueAccessor = (<any>(null as any));\nvar _decl0_100:i4.RadioValueAccessor = (<any>(null as any));\nvar _decl0_101:i4.SelectValueAccessor = (<any>(null as any));\nvar _decl0_102:i4.TextValueAccessor = (<any>(null as any));\nvar _decl0_103:i4.IonRouterOutlet = (<any>(null as any));\nvar _decl0_104:i4.IonBackButtonDelegate = (<any>(null as any));\nvar _decl0_105:i4.NavDelegate = (<any>(null as any));\nvar _decl0_106:i4.RouterLinkDelegate = (<any>(null as any));\nvar _decl0_107:i4.VirtualFooter = (<any>(null as any));\nvar _decl0_108:i4.VirtualHeader = (<any>(null as any));\nvar _decl0_109:i4.VirtualItem = (<any>(null as any));\nvar _decl0_110:i4.IonVirtualScroll = (<any>(null as any));\nvar _decl0_111:i5.NgClass = (<any>(null as any));\nvar _decl0_112:i5.NgComponentOutlet = (<any>(null as any));\nvar _decl0_113:i5.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_114:i5.NgIf<any> = (<any>(null as any));\nvar _decl0_115:i5.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_116:i5.NgStyle = (<any>(null as any));\nvar _decl0_117:i5.NgSwitch = (<any>(null as any));\nvar _decl0_118:i5.NgSwitchCase = (<any>(null as any));\nvar _decl0_119:i5.NgSwitchDefault = (<any>(null as any));\nvar _decl0_120:i5.NgPlural = (<any>(null as any));\nvar _decl0_121:i5.NgPluralCase = (<any>(null as any));\nvar _decl0_122:i6.ɵbz<any> = (<any>(null as any));\nvar _decl0_123:i6.ɵcc<any> = (<any>(null as any));\nvar _decl0_124:i6.ɵcd<any> = (<any>(null as any));\nvar _decl0_125:i6.ɵci = (<any>(null as any));\nvar _decl0_126:i6.ɵcl = (<any>(null as any));\nvar _decl0_127:i6.ɵco = (<any>(null as any));\nvar _decl0_128:i6.ɵcp<any> = (<any>(null as any));\nvar _decl0_129:i6.ɵcq<any> = (<any>(null as any));\nvar _decl0_130:i6.ɵct = (<any>(null as any));\nvar _decl0_131:i6.ɵcu<any> = (<any>(null as any));\nvar _decl0_132:i6.ɵcv<any> = (<any>(null as any));\nvar _decl0_133:i6.ɵcw<any> = (<any>(null as any));\nvar _decl0_134:i6.ɵcx<any> = (<any>(null as any));\nvar _decl0_135:i6.ɵcy<any> = (<any>(null as any));\nvar _decl0_136:i6.ɵcz<any> = (<any>(null as any));\nvar _decl0_137:i6.ɵdb<any> = (<any>(null as any));\nvar _decl0_138:i6.ɵdc<any> = (<any>(null as any));\nvar _decl0_139:i6.ɵdd<any> = (<any>(null as any));\nvar _decl0_140:i6.ɵde<any> = (<any>(null as any));\nvar _decl0_141:i6.ɵdi<any> = (<any>(null as any));\nvar _decl0_142:i6.ɵdj<any> = (<any>(null as any));\nvar _decl0_143:i6.ɵdk<any> = (<any>(null as any));\nvar _decl0_144:i6.ɵdl<any> = (<any>(null as any));\nvar _decl0_145:i6.ɵdm<any,any> = (<any>(null as any));\nvar _decl0_146:i6.ɵdn<any> = (<any>(null as any));\nvar _decl0_147:i6.ɵdo<any> = (<any>(null as any));\nvar _decl0_148:i6.ɵdp<any> = (<any>(null as any));\nvar _decl0_149:i6.ɵdq<any> = (<any>(null as any));\nvar _decl0_150:i6.ɵdr<any> = (<any>(null as any));\nvar _decl0_151:i6.ɵds<any> = (<any>(null as any));\nvar _decl0_152:i6.ɵdt<any,any> = (<any>(null as any));\nvar _decl0_153:i6.ɵdu<any> = (<any>(null as any));\nvar _decl0_154:i6.ɵdw<any> = (<any>(null as any));\nvar _decl0_155:i6.ɵdx<any> = (<any>(null as any));\nvar _decl0_156:i6.ɵdy<any> = (<any>(null as any));\nvar _decl0_157:i6.ɵdz<any> = (<any>(null as any));\nvar _decl0_158:i6.ɵea<any> = (<any>(null as any));\nvar _decl0_159:i6.ɵeb = (<any>(null as any));\nvar _decl0_160:i6.ɵec = (<any>(null as any));\nvar _decl0_161:i6.ɵed<any> = (<any>(null as any));\nvar _decl0_162:i6.ɵee<any> = (<any>(null as any));\nvar _decl0_163:i6.ɵeg<any> = (<any>(null as any));\nvar _decl0_164:i6.ɵeh<any> = (<any>(null as any));\nvar _decl0_165:i6.ɵei = (<any>(null as any));\nvar _decl0_166:i6.ɵej<any> = (<any>(null as any));\nvar _decl0_167:i6.ɵek<any> = (<any>(null as any));\nvar _decl0_168:i6.ɵem<any> = (<any>(null as any));\nvar _decl0_169:i6.ɵen<any> = (<any>(null as any));\nvar _decl0_170:i6.ɵeo<any> = (<any>(null as any));\nvar _decl0_171:i6.ɵep<any> = (<any>(null as any));\nvar _decl0_172:i6.ɵeq<any,any> = (<any>(null as any));\nvar _decl0_173:i6.ɵer<any> = (<any>(null as any));\nvar _decl0_174:i6.ɵes<any> = (<any>(null as any));\nvar _decl0_175:i6.ɵet<any,any> = (<any>(null as any));\nvar _decl0_176:i6.ɵeu<any> = (<any>(null as any));\nvar _decl0_177:i6.ɵev<any> = (<any>(null as any));\nvar _decl0_178:i6.ɵew<any> = (<any>(null as any));\nvar _decl0_179:i6.ɵex<any> = (<any>(null as any));\nvar _decl0_180:i6.ɵey<any> = (<any>(null as any));\nvar _decl0_181:i6.ɵez<any> = (<any>(null as any));\nvar _decl0_182:i6.ɵfa<any> = (<any>(null as any));\nvar _decl0_183:i6.ɵfc = (<any>(null as any));\nvar _decl0_184:i6.ɵfd = (<any>(null as any));\nvar _decl0_185:i6.ɵfe = (<any>(null as any));\nvar _decl0_186:i6.ɵff = (<any>(null as any));\nvar _decl0_187:i6.ɵfg = (<any>(null as any));\nvar _decl0_188:i6.ɵfh = (<any>(null as any));\nvar _decl0_189:i6.ɵfi<any> = (<any>(null as any));\nvar _decl0_190:i6.ɵfj<any> = (<any>(null as any));\nvar _decl0_191:i6.ɵfl<any> = (<any>(null as any));\nvar _decl0_192:i6.ɵfm = (<any>(null as any));\nvar _decl0_193:i6.ɵfn = (<any>(null as any));\nvar _decl0_194:i6.ɵfo = (<any>(null as any));\nvar _decl0_195:i6.ɵfp = (<any>(null as any));\nvar _decl0_196:i6.ɵfq = (<any>(null as any));\nvar _decl0_197:i6.ɵfr = (<any>(null as any));\nvar _decl0_198:i6.ɵfs = (<any>(null as any));\nvar _decl0_199:i6.ɵft = (<any>(null as any));\nvar _decl0_200:i6.ɵfu = (<any>(null as any));\nvar _decl0_201:i6.ɵfv = (<any>(null as any));\nvar _decl0_202:i6.ɵfw = (<any>(null as any));\nvar _decl0_203:i6.ɵfx = (<any>(null as any));\nvar _decl0_204:i6.ɵfy = (<any>(null as any));\nvar _decl0_205:i6.ɵgd<any> = (<any>(null as any));\nvar _decl0_206:i6.ɵga = (<any>(null as any));\nvar _decl0_207:i6.ɵgb = (<any>(null as any));\nvar _decl0_208:i3.NgModel = (<any>(null as any));\nvar _decl0_209:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_210:i3.NgForm = (<any>(null as any));\nvar _decl0_211:i7.ExportComponent<any> = (<any>(null as any));\nvar _decl0_212:i8.FilterComponent = (<any>(null as any));\nvar _decl0_213:i9.FilterTextComponent<any> = (<any>(null as any));\nvar _decl0_214:i10.FiltersConfigComponent<any> = (<any>(null as any));\nvar _decl0_215:i11.FilterDateComponent<any> = (<any>(null as any));\nvar _decl0_216:i12.FilterDateWithEditComponent<any> = (<any>(null as any));\nvar _decl0_217:i13.FilterRadioComponent<any> = (<any>(null as any));\nvar _decl0_218:i14.FiltersComponent<any> = (<any>(null as any));\nvar _decl0_219:i15.FilterFlagComponent<any> = (<any>(null as any));\nvar _decl0_220:i16.FilterCheckComponent<any> = (<any>(null as any));\nvar _decl0_221:i17.MultiselectComponent<any> = (<any>(null as any));\nvar _decl0_222:i2.TranslatePipe = (<any>(null as any));\nvar _decl0_223:i5.AsyncPipe = (<any>(null as any));\nvar _decl0_224:i5.UpperCasePipe = (<any>(null as any));\nvar _decl0_225:i5.LowerCasePipe = (<any>(null as any));\nvar _decl0_226:i5.JsonPipe = (<any>(null as any));\nvar _decl0_227:i5.SlicePipe = (<any>(null as any));\nvar _decl0_228:i5.DecimalPipe = (<any>(null as any));\nvar _decl0_229:i5.PercentPipe = (<any>(null as any));\nvar _decl0_230:i5.TitleCasePipe = (<any>(null as any));\nvar _decl0_231:i5.CurrencyPipe = (<any>(null as any));\nvar _decl0_232:i5.DatePipe = (<any>(null as any));\nvar _decl0_233:i5.I18nPluralPipe = (<any>(null as any));\nvar _decl0_234:i5.I18nSelectPipe = (<any>(null as any));\nvar _decl0_235:i5.KeyValuePipe = (<any>(null as any));\nvar _decl0_236:i6.ɵw = (<any>(null as any));\nvar _decl0_237:i6.ɵx<any> = (<any>(null as any));\nvar _decl0_238:i6.ɵy = (<any>(null as any));\nvar _decl0_239:i6.ɵz<any> = (<any>(null as any));\nvar _decl0_240:i6.ɵbc<any> = (<any>(null as any));\nvar _decl0_241:i18.FormOptionsPipe<any> = (<any>(null as any));\nvar _decl0_242:i19.StoreModule = (<any>(null as any));\nvar _decl0_243:i6.SharedModule = (<any>(null as any));\nvar _decl0_248:i20.CrudPipesModule = (<any>(null as any));\nvar _decl0_245:i21.SocketIoModule = (<any>(null as any));\nvar _decl0_246:i3.FormsModule = (<any>(null as any));\nvar _decl0_247:i5.CommonModule = (<any>(null as any));\nvar _decl0_249:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_250:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_ExportComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ExportComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_211.buttonExportCsvOptions;\n currVal_0;\n const currVal_1:any = _decl0_211.buttonExportXlsxOptions;\n currVal_1;\n}\nfunction _View_FilterComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterComponent_2_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_3():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_4():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_5():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_6():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item;\n currVal_0;\n const currVal_1:any = _decl0_212.filter;\n currVal_1;\n}\nfunction _View_FilterComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_212.item.fieldType;\n currVal_0;\n const currVal_1:any = _decl0_212.FieldType.date;\n currVal_1;\n const currVal_2:any = _decl0_212.FieldType.dateWithEdit;\n currVal_2;\n const currVal_3:any = _decl0_212.FieldType.radio;\n currVal_3;\n const currVal_4:any = _decl0_212.FieldType.check;\n currVal_4;\n const currVal_5:any = _decl0_212.FieldType.flag;\n currVal_5;\n}\nfunction _View_FilterTextComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterTextComponent_3_1():void {\n if (_decl0_213.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'auto';\n currVal_0;\n const currVal_1:any = 'danger';\n currVal_1;\n const currVal_2:any = 'close-outline';\n currVal_2;\n const pd_3:any = ((<any>_decl0_213.refresh(null)) !== false);\n }\n}\nfunction _View_FilterTextComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'floating';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_213.item.label);\n currVal_1;\n const currVal_2:any = _decl0_213.value;\n currVal_2;\n const currVal_3:any = _decl0_11.is('untouched');\n currVal_3;\n const currVal_4:any = _decl0_11.is('touched');\n currVal_4;\n const currVal_5:any = _decl0_11.is('pristine');\n currVal_5;\n const currVal_6:any = _decl0_11.is('dirty');\n currVal_6;\n const currVal_7:any = _decl0_11.is('valid');\n currVal_7;\n const currVal_8:any = _decl0_11.is('invalid');\n currVal_8;\n const currVal_9:any = _decl0_11.is('pending');\n currVal_9;\n const currVal_10:any = _decl0_213.value;\n currVal_10;\n const pd_11:any = ((<any>_decl0_102._handleBlurEvent(_any.target)) !== false);\n const pd_12:any = ((<any>_decl0_102._handleInputEvent(_any.target)) !== false);\n const pd_13:any = ((<any>(_decl0_213.value = _any)) !== false);\n}\nfunction _View_FiltersConfigComponent_Host_4_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FiltersConfigComponent_4_3():void {\n if ((_decl0_223.transform(_decl0_214.query$) && ((_any == null)? (null as any): _any.length))) {\n var _any:any = (null as any);\n const currVal_0:any = 'medium';\n currVal_0;\n const currVal_1:any = 'true';\n currVal_1;\n const currVal_2:any = 'primary';\n currVal_2;\n const currVal_3:any = 'filter-circle-outline';\n currVal_3;\n const currVal_4:any = _decl0_222.transform(('MODEL.' + _any.key));\n currVal_4;\n const currVal_5:any = _any.type;\n currVal_5;\n const currVal_6:any = _decl0_222.transform(_any.value);\n currVal_6;\n const currVal_7:any = 'danger';\n currVal_7;\n const currVal_8:any = 'close';\n currVal_8;\n const pd_9:any = ((<any>_decl0_214.onRemoveQuery(_any)) !== false);\n }\n}\nfunction _View_FiltersConfigComponent_4_2():void {\n if ((_decl0_223.transform(_decl0_214.query$) && ((_any == null)? (null as any): _any.length))) {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n }\n}\nfunction _View_FiltersConfigComponent_4_1():void {\n if (_decl0_223.transform(_decl0_214.query$)) {\n var _any:any = (null as any);\n const currVal_0:any = ((_any == null)? (null as any): _any.length);\n currVal_0;\n }\n}\nfunction _View_FiltersConfigComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_223.transform(_decl0_214.query$);\n currVal_0;\n}\nfunction _View_FilterDateComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterDateComponent_5_1():void {\n if (_decl0_215.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'auto';\n currVal_0;\n const currVal_1:any = 'danger';\n currVal_1;\n const currVal_2:any = 'close-outline';\n currVal_2;\n const pd_3:any = ((<any>_decl0_215.refresh(null)) !== false);\n }\n}\nfunction _View_FilterDateComponent_5_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'floating';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_215.item.label);\n currVal_1;\n const currVal_2:any = _decl0_215.customValue;\n currVal_2;\n const currVal_3:any = _decl0_11.is('untouched');\n currVal_3;\n const currVal_4:any = _decl0_11.is('touched');\n currVal_4;\n const currVal_5:any = _decl0_11.is('pristine');\n currVal_5;\n const currVal_6:any = _decl0_11.is('dirty');\n currVal_6;\n const currVal_7:any = _decl0_11.is('valid');\n currVal_7;\n const currVal_8:any = _decl0_11.is('invalid');\n currVal_8;\n const currVal_9:any = _decl0_11.is('pending');\n currVal_9;\n const currVal_10:any = 'YYYY-MM-DD';\n currVal_10;\n const currVal_11:any = 'YYYY-MM-DD';\n currVal_11;\n const currVal_12:any = _decl0_215.value;\n currVal_12;\n const pd_13:any = ((<any>_decl0_101._handleBlurEvent(_any.target)) !== false);\n const pd_14:any = ((<any>_decl0_101._handleChangeEvent(_any.target)) !== false);\n const pd_15:any = ((<any>(_decl0_215.customValue = _any)) !== false);\n}\nfunction _View_FilterDateWithEditComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterDateWithEditComponent_6_1():void {\n if (_decl0_216.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'auto';\n currVal_0;\n const currVal_1:any = 'danger';\n currVal_1;\n const currVal_2:any = 'close-outline';\n currVal_2;\n const pd_3:any = ((<any>_decl0_216.refresh(null)) !== false);\n }\n}\nfunction _View_FilterDateWithEditComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'floating';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_216.item.label);\n currVal_1;\n const currVal_2:any = '([12]\\\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\\\d|3[01]))';\n currVal_2;\n const currVal_3:any = (_decl0_16.pattern? _decl0_16.pattern: null);\n currVal_3;\n const currVal_4:any = _decl0_216.customValue;\n currVal_4;\n const currVal_5:any = _decl0_11.is('untouched');\n currVal_5;\n const currVal_6:any = _decl0_11.is('touched');\n currVal_6;\n const currVal_7:any = _decl0_11.is('pristine');\n currVal_7;\n const currVal_8:any = _decl0_11.is('dirty');\n currVal_8;\n const currVal_9:any = _decl0_11.is('valid');\n currVal_9;\n const currVal_10:any = _decl0_11.is('invalid');\n currVal_10;\n const currVal_11:any = _decl0_11.is('pending');\n currVal_11;\n const currVal_12:any = '([12]\\\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\\\d|3[01]))';\n currVal_12;\n const currVal_13:any = 'YYYY-MM-DD';\n currVal_13;\n const currVal_14:any = _decl0_216.customValue;\n currVal_14;\n const currVal_15:any = _decl0_11.is('untouched');\n currVal_15;\n const currVal_16:any = _decl0_11.is('touched');\n currVal_16;\n const currVal_17:any = _decl0_11.is('pristine');\n currVal_17;\n const currVal_18:any = _decl0_11.is('dirty');\n currVal_18;\n const currVal_19:any = _decl0_11.is('valid');\n currVal_19;\n const currVal_20:any = _decl0_11.is('invalid');\n currVal_20;\n const currVal_21:any = _decl0_11.is('pending');\n currVal_21;\n const currVal_22:any = 'YYYY-MM-DD';\n currVal_22;\n const currVal_23:any = 'YYYY-MM-DD';\n currVal_23;\n const currVal_24:any = true;\n currVal_24;\n const currVal_25:any = 'auto';\n currVal_25;\n const currVal_26:any = 'calendar-outline';\n currVal_26;\n const currVal_27:any = _decl0_216.value;\n currVal_27;\n const pd_28:any = ((<any>_decl0_102._handleBlurEvent(_any.target)) !== false);\n const pd_29:any = ((<any>_decl0_102._handleInputEvent(_any.target)) !== false);\n const pd_30:any = ((<any>(_decl0_216.customValue = _any)) !== false);\n const pd_31:any = ((<any>_decl0_101._handleBlurEvent(_any.target)) !== false);\n const pd_32:any = ((<any>_decl0_101._handleChangeEvent(_any.target)) !== false);\n const pd_33:any = ((<any>(_decl0_216.customValue = _any)) !== false);\n const pd_34:any = ((<any>_decl0_216.open()) !== false);\n}\nfunction _View_FilterRadioComponent_Host_7_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterRadioComponent_7_1():void {\n if (_decl0_217.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'danger';\n currVal_0;\n const currVal_1:any = 'close-outline';\n currVal_1;\n const pd_2:any = ((<any>_decl0_217.refresh(null)) !== false);\n }\n}\nfunction _View_FilterRadioComponent_7_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_222.transform(_any.text);\n currVal_0;\n const currVal_1:any = _any.id;\n currVal_1;\n const pd_2:any = ((<any>_decl0_100._handleBlurEvent(_any.target)) !== false);\n const pd_3:any = ((<any>_decl0_100._handleIonSelect(_any.target)) !== false);\n}\nfunction _View_FilterRadioComponent_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_217.value;\n currVal_0;\n const currVal_1:any = _decl0_11.is('untouched');\n currVal_1;\n const currVal_2:any = _decl0_11.is('touched');\n currVal_2;\n const currVal_3:any = _decl0_11.is('pristine');\n currVal_3;\n const currVal_4:any = _decl0_11.is('dirty');\n currVal_4;\n const currVal_5:any = _decl0_11.is('valid');\n currVal_5;\n const currVal_6:any = _decl0_11.is('invalid');\n currVal_6;\n const currVal_7:any = _decl0_11.is('pending');\n currVal_7;\n const currVal_8:any = 'filter-outline';\n currVal_8;\n const currVal_9:any = _decl0_222.transform(_decl0_217.item.label);\n currVal_9;\n const currVal_10:any = _decl0_217.value;\n currVal_10;\n const currVal_11:any = _decl0_223.transform(_decl0_217.possibilities$);\n currVal_11;\n const pd_12:any = ((<any>_decl0_101._handleBlurEvent(_any.target)) !== false);\n const pd_13:any = ((<any>_decl0_101._handleChangeEvent(_any.target)) !== false);\n const pd_14:any = ((<any>(_decl0_217.value = _any)) !== false);\n}\nfunction _View_FiltersComponent_Host_8_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FiltersComponent_8_2():void {\n if (_decl0_223.transform(_decl0_218.filter$)) {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n const currVal_1:any = _any;\n currVal_1;\n }\n}\nfunction _View_FiltersComponent_8_1():void {\n if (_decl0_223.transform(_decl0_218.filter$)) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_218.list;\n currVal_0;\n }\n}\nfunction _View_FiltersComponent_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_218.hideMenu;\n currVal_0;\n const currVal_1:any = 'close';\n currVal_1;\n const currVal_2:any = _decl0_222.transform('filters');\n currVal_2;\n const currVal_3:any = _decl0_223.transform(_decl0_218.filter$);\n currVal_3;\n const pd_4:any = ((<any>_decl0_218.onClose()) !== false);\n}\nfunction _View_FilterFlagComponent_Host_9_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterFlagComponent_9_1():void {\n if (_decl0_219.value) {\n var _any:any = (null as any);\n const currVal_0:any = 'auto';\n currVal_0;\n const currVal_1:any = 'danger';\n currVal_1;\n const currVal_2:any = 'close-outline';\n currVal_2;\n const pd_3:any = ((<any>_decl0_219.refresh(null)) !== false);\n }\n}\nfunction _View_FilterFlagComponent_9_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'static';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_219.item.label);\n currVal_1;\n const currVal_2:any = _decl0_219.value;\n currVal_2;\n const currVal_3:any = _decl0_11.is('untouched');\n currVal_3;\n const currVal_4:any = _decl0_11.is('touched');\n currVal_4;\n const currVal_5:any = _decl0_11.is('pristine');\n currVal_5;\n const currVal_6:any = _decl0_11.is('dirty');\n currVal_6;\n const currVal_7:any = _decl0_11.is('valid');\n currVal_7;\n const currVal_8:any = _decl0_11.is('invalid');\n currVal_8;\n const currVal_9:any = _decl0_11.is('pending');\n currVal_9;\n const currVal_10:any = _decl0_219.value;\n currVal_10;\n const pd_11:any = ((<any>_decl0_98._handleBlurEvent(_any.target)) !== false);\n const pd_12:any = ((<any>_decl0_98._handleIonChange(_any.target)) !== false);\n const pd_13:any = ((<any>(_decl0_219.value = _any)) !== false);\n}\nfunction _View_FilterCheckComponent_Host_10_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FilterCheckComponent_10_1():void {\n if ((_decl0_220.value && _decl0_220.value.length)) {\n var _any:any = (null as any);\n const currVal_0:any = 'danger';\n currVal_0;\n const currVal_1:any = 'close-outline';\n currVal_1;\n const pd_2:any = ((<any>_decl0_220.refresh(([] as any[]))) !== false);\n }\n}\nfunction _View_FilterCheckComponent_10_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_222.transform(_any.value.text);\n currVal_0;\n const currVal_1:any = _any.isCheck;\n currVal_1;\n const pd_2:any = ((<any>_decl0_98._handleBlurEvent(_any.target)) !== false);\n const pd_3:any = ((<any>_decl0_98._handleIonChange(_any.target)) !== false);\n const pd_4:any = ((<any>_decl0_220.onCheckChange(_any.detail.checked,_any)) !== false);\n}\nfunction _View_FilterCheckComponent_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'filter-outline';\n currVal_0;\n const currVal_1:any = _decl0_222.transform(_decl0_220.item.label);\n currVal_1;\n const currVal_2:any = (_decl0_220.value && _decl0_220.value.length);\n currVal_2;\n const currVal_3:any = _decl0_223.transform(_decl0_220.list$);\n currVal_3;\n}\nfunction _View_MultiselectComponent_Host_11_0():void {\n var _any:any = (null as any);\n}\nfunction _View_MultiselectComponent_11_2():void {\n if ((_decl0_223.transform(_decl0_221.list$) && _decl0_221.item)) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_241.transform(_decl0_221.item,'multiUpdate',_decl0_221.config.type);\n currVal_0;\n const currVal_1:any = _decl0_221.buttonOptions;\n currVal_1;\n const currVal_2:any = (_decl0_221.lock || !_decl0_221.valid);\n currVal_2;\n const currVal_3:any = _decl0_222.transform('change');\n currVal_3;\n const pd_4:any = ((<any>_decl0_221.onPartialChange(_any,_any)) !== false);\n const pd_5:any = ((<any>_decl0_221.onValidChange(_any)) !== false);\n }\n}\nfunction _View_MultiselectComponent_11_1():void {\n if (_decl0_223.transform(_decl0_221.list$)) {\n var _any:any = (null as any);\n const currVal_0:any = 'close';\n currVal_0;\n const currVal_1:any = _decl0_222.transform('selected');\n currVal_1;\n const currVal_2:any = ((_any == null)? (null as any): _any.length);\n currVal_2;\n const currVal_3:any = _decl0_221.item;\n currVal_3;\n const pd_4:any = ((<any>_decl0_221.onClose()) !== false);\n }\n}\nfunction _View_MultiselectComponent_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_223.transform(_decl0_221.list$);\n currVal_0;\n}\n"]}
@@ -31,14 +31,21 @@ export class ExportComponent extends BaseComponent {
31
31
  };
32
32
  }
33
33
  }
34
+ /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
34
35
  ExportComponent.decorators = [
35
36
  { type: Component, args: [{
36
37
  selector: 'smart-crud-export',
37
38
  template: "<div class=\"smart-content\">\n <p>\n <smart-button [options]=\"buttonExportCsvOptions\">CSV</smart-button>\n </p>\n <p>\n <smart-button [options]=\"buttonExportXlsxOptions\">XLSX</smart-button>\n </p>\n</div>",
38
- styles: [".smart-content{padding:1.2rem}.smart-content p{margin:.6rem 0}.smart-content smart-button{width:100%;display:block}"]
39
+ styles: [".smart-content{padding:1.2rem}.smart-content p{margin:.6rem 0}.smart-content smart-button{width:100%;display:block}\n"]
39
40
  },] }
40
41
  ];
41
- /** @nocollapse */
42
+ /**
43
+ * @type {function(): !Array<(null|{
44
+ * type: ?,
45
+ * decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
46
+ * })>}
47
+ * @nocollapse
48
+ */
42
49
  ExportComponent.ctorParameters = () => [
43
50
  { type: CrudFacade },
44
51
  { type: PopoverService },
@@ -1 +1 @@
1
- {"version":3,"file":"export.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/components/export/export.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAS,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAC,aAAa,EAAkB,c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C;gBACT,QAAQ,EAAE,mBAAmB;gBAC7B,uPAAsC;;aAEvC;;;;YANO,UAAU;YAHqB,cAAc;YAAE,YAAY;YAHhD,UAAU","sourcesContent":["import {Component, ElementRef, OnInit} from '@angular/core';\nimport {Observable} from \"rxjs\";\n\nimport {BaseComponent, IButtonOptions, PopoverService, StyleService} from \"@smartsoft001/angular\";\nimport {IEntity} from \"@smartsoft001/domain-core\";\n\nimport {CrudFacade} from \"../../+state/crud.facade\";\n\n@Component({\n selector: 'smart-crud-export',\n templateUrl: './export.component.html',\n styleUrls: ['./export.component.scss']\n})\nexport class ExportComponent<T extends IEntity<string>> extends BaseComponent implements OnInit {\n\n buttonExportCsvOptions: IButtonOptions = this.initButtonExportOptions('csv');\n buttonExportXlsxOptions: IButtonOptions = this.initButtonExportOptions('xlsx');\n\n loading$: Observable<boolean> = this.facade.loading$;\n\n constructor(\n private facade: CrudFacade<T>,\n private popoverService: PopoverService,\n private styleService: StyleService,\n private elementRef: ElementRef\n ) {\n super();\n }\n\n ngOnInit(): void {\n this.styleService.init(this.elementRef);\n }\n\n private initButtonExportOptions(format: string): IButtonOptions {\n return {\n click: () => {\n this.facade.export({\n ...this.facade.filter,\n offset: null,\n limit: null\n }, format);\n\n const subscription = this.facade.loaded$.subscribe(val => {\n if (!val) return;\n this.popoverService.close();\n subscription.unsubscribe();\n });\n },\n loading$: this.facade.loading$,\n expand: 'block'\n }\n }\n}\n"]}
1
+ {"version":3,"file":"export.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/components/export/export.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAS,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAC,aAAa,EAAkB,cAAc,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAGlG,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAOpD,MAAM,OAAO,eAA2C,SAAQ,aAAa;IAO3E,YACY,MAAq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/core';\nimport {Observable} from \"rxjs\";\n\nimport {BaseComponent, IButtonOptions, PopoverService, StyleService} from \"@smartsoft001/angular\";\nimport {IEntity} from \"@smartsoft001/domain-core\";\n\nimport {CrudFacade} from \"../../+state/crud.facade\";\n\n@Component({\n selector: 'smart-crud-export',\n templateUrl: './export.component.html',\n styleUrls: ['./export.component.scss']\n})\nexport class ExportComponent<T extends IEntity<string>> extends BaseComponent implements OnInit {\n\n buttonExportCsvOptions: IButtonOptions = this.initButtonExportOptions('csv');\n buttonExportXlsxOptions: IButtonOptions = this.initButtonExportOptions('xlsx');\n\n loading$: Observable<boolean> = this.facade.loading$;\n\n constructor(\n private facade: CrudFacade<T>,\n private popoverService: PopoverService,\n private styleService: StyleService,\n private elementRef: ElementRef\n ) {\n super();\n }\n\n ngOnInit(): void {\n this.styleService.init(this.elementRef);\n }\n\n private initButtonExportOptions(format: string): IButtonOptions {\n return {\n click: () => {\n this.facade.export({\n ...this.facade.filter,\n offset: null,\n limit: null\n }, format);\n\n const subscription = this.facade.loaded$.subscribe(val => {\n if (!val) return;\n this.popoverService.close();\n subscription.unsubscribe();\n });\n },\n loading$: this.facade.loading$,\n expand: 'block'\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"ExportComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@smartsoft001/angular","name":"BaseComponent","line":13,"character":64},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"smart-crud-export","template":"<div class=\"smart-content\">\n <p>\n <smart-button [options]=\"buttonExportCsvOptions\">CSV</smart-button>\n </p>\n <p>\n <smart-button [options]=\"buttonExportXlsxOptions\">XLSX</smart-button>\n </p>\n</div>","styles":[".smart-content{padding:1.2rem}.smart-content p{margin:.6rem 0}.smart-content smart-button{width:100%;display:block}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../../+state/crud.facade","name":"CrudFacade","line":21,"character":22,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":21,"character":33,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"PopoverService","line":22,"character":30},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"StyleService","line":23,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":24,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"initButtonExportOptions":[{"__symbolic":"method"}]}}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"ExportComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@smartsoft001/angular","name":"BaseComponent","line":13,"character":64},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"smart-crud-export","template":"<div class=\"smart-content\">\n <p>\n <smart-button [options]=\"buttonExportCsvOptions\">CSV</smart-button>\n </p>\n <p>\n <smart-button [options]=\"buttonExportXlsxOptions\">XLSX</smart-button>\n </p>\n</div>","styles":[".smart-content{padding:1.2rem}.smart-content p{margin:.6rem 0}.smart-content smart-button{width:100%;display:block}\n"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../../+state/crud.facade","name":"CrudFacade","line":21,"character":22,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":21,"character":33,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"PopoverService","line":22,"character":30},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"StyleService","line":23,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":24,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"initButtonExportOptions":[{"__symbolic":"method"}]}}}}]
@@ -88,15 +88,23 @@ export class BaseComponent {
88
88
  this.facade.read(this.filter);
89
89
  }
90
90
  }
91
+ /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
91
92
  BaseComponent.decorators = [
92
93
  { type: Directive }
93
94
  ];
94
- /** @nocollapse */
95
+ /**
96
+ * @type {function(): !Array<(null|{
97
+ * type: ?,
98
+ * decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
99
+ * })>}
100
+ * @nocollapse
101
+ */
95
102
  BaseComponent.ctorParameters = () => [
96
103
  { type: CrudFacade },
97
104
  { type: CrudConfig },
98
105
  { type: ICrudModelPossibilitiesProvider, decorators: [{ type: Optional }, { type: Inject, args: [CRUD_MODEL_POSSIBILITIES_PROVIDER,] }] }
99
106
  ];
107
+ /** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
100
108
  BaseComponent.propDecorators = {
101
109
  item: [{ type: Input }],
102
110
  filter: [{ type: Input }]
@@ -1 +1 @@
1
- {"version":3,"file":"base.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/crud/shell/angular/src/lib/components/filter/base/base.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAU,QAAQ,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3C,OAAO,EAAC,SAAS,EAAe,MAAM,sBAAsB,CAAC;AAG7D,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AACvD,OAAO,EACL,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAGhD,MAAM,OAAO,aAAa;IAyBxB,YACY,MAAqB,EACvB,MAAqB,EAGrB,0BAA2D;QAJzD,WAAM,GAAN,MAAM,CAAe;QACvB,WAAM,GAAN,MAAM,CAAe;QAGrB,+BAA0B,GAA1B,0BAA0B,CAAiC;IAClE,CAAC;IAzBJ,IAAI,KAAK;QACP,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE;YACtB,OAAO,IAAI,CAAC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C,iCAAiC;;;mBA1B1C,KAAK;qBACL,KAAK;;AA8BN;IADC,QAAQ,CAAC,GAAG,CAAC;;;;4CAmCb","sourcesContent":["import {Directive, Inject, Input, OnInit, Optional} from \"@angular/core\";\nimport {Debounce} from \"lodash-decorators\";\nimport {Observable} from \"rxjs\";\n\nimport {IEntity} from \"@smartsoft001/domain-core\";\nimport {FieldType, IModelFilter} from \"@smartsoft001/models\";\n\nimport {ICrudFilter} from \"../../../models/interfaces\";\nimport {CrudFacade} from \"../../../+state/crud.facade\";\nimport {\n CRUD_MODEL_POSSIBILITIES_PROVIDER,\n ICrudModelPossibilitiesProvider,\n} from \"../../../providers/model-possibilities/model-possibilities.provider\";\nimport {CrudConfig} from \"../../../crud.config\";\n\n@Directive()\nexport class BaseComponent<T extends IEntity<string>> implements OnInit {\n possibilities$: Observable<{ id: any; text: string }[]>;\n\n @Input() item: IModelFilter;\n @Input() filter: ICrudFilter;\n\n get value(): any {\n if (this.isArrayType()) {\n return this.filter.query\n .filter(\n (q) => q.key === this.item.key && q.type === this.item.type\n )\n .map(q => q.value);\n }\n\n const query = this.filter.query.find(\n (q) => q.key === this.item.key && q.type === this.item.type\n );\n return query?.value;\n }\n\n set value(val: any) {\n this.refresh(val);\n }\n\n constructor(\n protected facade: CrudFacade<T>,\n private config: CrudConfig<T>,\n @Optional()\n @Inject(CRUD_MODEL_POSSIBILITIES_PROVIDER)\n private modelPossibilitiesProvider: ICrudModelPossibilitiesProvider\n ) {}\n\n @Debounce(500)\n refresh(val: any): void {\n if (this.isArrayType()) {\n this.refreshForArray(val as []);\n return;\n }\n\n let query = this.filter.query.find(\n (q) => q.key === this.item.key && q.type === this.item.type\n );\n\n if (val === null || val === undefined || val === '') {\n const index = this.filter.query.indexOf(query);\n if (index > -1) {\n this.filter.query.splice(index, 1);\n }\n\n this.facade.read(this.filter);\n return;\n }\n\n if (!query) {\n query = {\n key: this.item.key,\n type: this.item.type,\n value: null,\n };\n\n this.filter.query.push(query);\n }\n\n query.value = val;\n query.label = this.item.label;\n\n this.facade.read(this.filter);\n }\n\n ngOnInit(): void {\n this.initPossibilities();\n }\n\n private initPossibilities(): void {\n let possibilities = this.item.possibilities$;\n\n if (this.modelPossibilitiesProvider) {\n const possibilitiesFromProvider = this.modelPossibilitiesProvider.get(this.config.type);\n if (possibilitiesFromProvider && possibilitiesFromProvider[this.item.key])\n possibilities = possibilitiesFromProvider[this.item.key];\n }\n\n this.possibilities$ = possibilities;\n }\n\n private isArrayType(): boolean {\n return (this.item?.fieldType === FieldType.check);\n }\n\n private refreshForArray(vals: []): void {\n const queries = this.filter.query.filter(\n (q) => q.key === this.item.key && q.type === this.item.type\n );\n\n queries.forEach(query => {\n const index = this.filter.query.indexOf(query);\n if (index > -1) {\n this.filter.query.splice(index, 1);\n }\n });\n\n if (vals === null || vals === undefined || !vals.length) {\n this.facade.read(this.filter);\n return;\n }\n\n vals.forEach(val => {\n const query = {\n key: this.item.key,\n type: this.item.type,\n value: val,\n };\n\n this.filter.query.push(query);\n });\n\n this.facade.read(this.filter);\n }\n}\n"]}
1
+ {"version":3,"file":"base.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/crud/shell/angular/src/lib/components/filter/base/base.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAU,QAAQ,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3C,OAAO,EAAC,SAAS,EAAe,MAAM,sBAAsB,CAAC;AAG7D,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AACvD,OAAO,EACL,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAGhD,MAAM,OAAO,aAAa;IAyBxB,YACY,MAAqB,EACvB,MAAqB,EAGrB,0BAA2D;QAJzD,WAAM,GAAN,MAAM,CAAe;QACv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AAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;;;;YAvHF,SAAS;;;;;;;;;;YAPF,UAAU;YAKV,UAAU;YAFhB,+BAA+B,uBAiC5B,QAAQ,YACR,MAAM,SAAC,iCAAiC;;;;mBA1B1C,KAAK;qBACL,KAAK;;AA8BN;IADC,QAAQ,CAAC,GAAG,CAAC;;;;4CAmCb","sourcesContent":["import {Directive, Inject, Input, OnInit, Optional} from \"@angular/core\";\nimport {Debounce} from \"lodash-decorators\";\nimport {Observable} from \"rxjs\";\n\nimport {IEntity} from \"@smartsoft001/domain-core\";\nimport {FieldType, IModelFilter} from \"@smartsoft001/models\";\n\nimport {ICrudFilter} from \"../../../models/interfaces\";\nimport {CrudFacade} from \"../../../+state/crud.facade\";\nimport {\n CRUD_MODEL_POSSIBILITIES_PROVIDER,\n ICrudModelPossibilitiesProvider,\n} from \"../../../providers/model-possibilities/model-possibilities.provider\";\nimport {CrudConfig} from \"../../../crud.config\";\n\n@Directive()\nexport class BaseComponent<T extends IEntity<string>> implements OnInit {\n possibilities$: Observable<{ id: any; text: string }[]>;\n\n @Input() item: IModelFilter;\n @Input() filter: ICrudFilter;\n\n get value(): any {\n if (this.isArrayType()) {\n return this.filter.query\n .filter(\n (q) => q.key === this.item.key && q.type === this.item.type\n )\n .map(q => q.value);\n }\n\n const query = this.filter.query.find(\n (q) => q.key === this.item.key && q.type === this.item.type\n );\n return query?.value;\n }\n\n set value(val: any) {\n this.refresh(val);\n }\n\n constructor(\n protected facade: CrudFacade<T>,\n private config: CrudConfig<T>,\n @Optional()\n @Inject(CRUD_MODEL_POSSIBILITIES_PROVIDER)\n private modelPossibilitiesProvider: ICrudModelPossibilitiesProvider\n ) {}\n\n @Debounce(500)\n refresh(val: any): void {\n if (this.isArrayType()) {\n this.refreshForArray(val as []);\n return;\n }\n\n let query = this.filter.query.find(\n (q) => q.key === this.item.key && q.type === this.item.type\n );\n\n if (val === null || val === undefined || val === '') {\n const index = this.filter.query.indexOf(query);\n if (index > -1) {\n this.filter.query.splice(index, 1);\n }\n\n this.facade.read(this.filter);\n return;\n }\n\n if (!query) {\n query = {\n key: this.item.key,\n type: this.item.type,\n value: null,\n };\n\n this.filter.query.push(query);\n }\n\n query.value = val;\n query.label = this.item.label;\n\n this.facade.read(this.filter);\n }\n\n ngOnInit(): void {\n this.initPossibilities();\n }\n\n private initPossibilities(): void {\n let possibilities = this.item.possibilities$;\n\n if (this.modelPossibilitiesProvider) {\n const possibilitiesFromProvider = this.modelPossibilitiesProvider.get(this.config.type);\n if (possibilitiesFromProvider && possibilitiesFromProvider[this.item.key])\n possibilities = possibilitiesFromProvider[this.item.key];\n }\n\n this.possibilities$ = possibilities;\n }\n\n private isArrayType(): boolean {\n return (this.item?.fieldType === FieldType.check);\n }\n\n private refreshForArray(vals: []): void {\n const queries = this.filter.query.filter(\n (q) => q.key === this.item.key && q.type === this.item.type\n );\n\n queries.forEach(query => {\n const index = this.filter.query.indexOf(query);\n if (index > -1) {\n this.filter.query.splice(index, 1);\n }\n });\n\n if (vals === null || vals === undefined || !vals.length) {\n this.facade.read(this.filter);\n return;\n }\n\n vals.forEach(val => {\n const query = {\n key: this.item.key,\n type: this.item.type,\n value: val,\n };\n\n this.filter.query.push(query);\n });\n\n this.facade.read(this.filter);\n }\n}\n"]}
@@ -23,11 +23,12 @@ export class FilterCheckComponent extends BaseComponent {
23
23
  }
24
24
  }
25
25
  }
26
+ /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
26
27
  FilterCheckComponent.decorators = [
27
28
  { type: Component, args: [{
28
29
  selector: 'smart-crud-filter-check',
29
30
  template: "<ion-row>\n <ion-col>\n <ion-item-divider>\n <ion-icon slot=\"start\" name=\"filter-outline\"></ion-icon>\n <ion-label>\n {{ item.label | translate }}\n </ion-label>\n <ion-button *ngIf=\"value && value.length\" slot=\"end\" color=\"danger\" (click)=\"refresh([])\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-item-divider>\n <ion-item *ngFor=\"let entry of list$ | async\">\n <ion-label>{{entry.value.text | translate}}</ion-label>\n <ion-checkbox slot=\"end\" [checked]=\"entry.isCheck\" (ionChange)=\"onCheckChange($event.detail.checked, entry)\"></ion-checkbox>\n </ion-item>\n </ion-col>\n <!-- <ion-col size=\"auto\" *ngIf=\"value\">\n <ion-button color=\"danger\" (click)=\"refresh(null)\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col> -->\n</ion-row>",
30
- styles: [":host{width:100%;margin-bottom:1.2rem}:host ion-radio{margin-right:2.4rem}:host ion-item-divider{font-weight:300;--padding-end:.8rem;font-size:1.2rem;--ion-background-color:linear-gradient(90deg,transparent,var(--ion-color-light))}:host ion-item-divider ion-icon{margin-right:1.6rem;font-size:1.6rem;--color:var(--ion-color-primary)}:host ion-item-divider ion-label{--padding:var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}:host ion-item-divider .squere-button{margin:0;font-size:18px;height:36px;width:36px;padding:0;--padding-start:.2em;--padding-end:.2em}:host ion-item-divider .squere-button ion-icon{margin:0;padding:0}"]
31
+ styles: [":host{width:100%;margin-bottom:1.2rem}:host ion-radio{margin-right:2.4rem}:host ion-item-divider{font-weight:300;--padding-end: .8rem;font-size:1.2rem;--ion-background-color: linear-gradient(90deg, transparent, var(--ion-color-light))}:host ion-item-divider ion-icon{margin-right:1.6rem;font-size:1.6rem;--color: var(--ion-color-primary)}:host ion-item-divider ion-label{--padding: var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}:host ion-item-divider .squere-button{margin:0;font-size:18px;height:36px;width:36px;padding:0;--padding-start: .2em;--padding-end: .2em}:host ion-item-divider .squere-button ion-icon{margin:0;padding:0}\n"]
31
32
  },] }
32
33
  ];
33
34
  //# sourceMappingURL=check.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/crud/shell/angular/src/lib/components/filter/check/check.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAC,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAIrC,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAOrD,MAAM,OAAO,oBAAgD,SAAQ,aAAgB;IAGjF,kBAAkB;QACd,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,CAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CACzE,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE,EAAE;YACpB,OAAO,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBAC7B,KAAK,EAAE,GAAG;gBACV,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;aAC9C,CAAC,CAAC,CAAA;QACP,CAAC,CAAC,CACL,CAAC,CAAC;IACP,CAAC;IAED,aAAa,CAAC,OAAgB,EAAE,KAAuC;QACnE,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;YACxD,IAAI,CAAC,KAAK,GAAG;gBACT,GAAG,IAAI,CAAC,KAAK;gBACb,KAAK,CAAC,KAAK,CAAC,EAAE;aACjB,CAAA;SACJ;QAED,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;YACxD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;SAC7D;IACL,CAAC;;;YA9BJ,SAAS,SAAC;gBACP,QAAQ,EAAE,yBAAyB;gBACnC,+jCAAqC;;aAExC","sourcesContent":["import {AfterContentInit, Component} from '@angular/core';\nimport {Observable} from \"rxjs\";\nimport {map} from \"rxjs/operators\";\nimport { combineLatest } from 'rxjs';\n\nimport {IEntity} from \"@smartsoft001/domain-core\";\n\nimport {BaseComponent} from \"../base/base.component\";\n\n@Component({\n selector: 'smart-crud-filter-check',\n templateUrl: './check.component.html',\n styleUrls: ['./check.component.scss']\n})\nexport class FilterCheckComponent<T extends IEntity<string>> extends BaseComponent<T> implements AfterContentInit {\n list$: Observable<{ value: any, isCheck: boolean }[]>;\n\n ngAfterContentInit(): void {\n this.list$ = combineLatest([ this.possibilities$, this.facade.filter$]).pipe((\n map(([possibilities]) => {\n return possibilities.map(pos => ({\n value: pos,\n isCheck: this.value.some(r => r === pos.id)\n }))\n })\n ));\n }\n\n onCheckChange(checked: boolean, entry: { value: any; isCheck: boolean }) {\n if (checked && !this.value.some(r => r === entry.value.id)) {\n this.value = [\n ...this.value,\n entry.value.id\n ]\n }\n\n if (!checked && this.value.some(r => r === entry.value.id)) {\n this.value = this.value.filter(r => r !== entry.value.id);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"check.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/crud/shell/angular/src/lib/components/filter/check/check.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAC,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM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AAyB;gBACnC,+jCAAqC;;aAExC","sourcesContent":["import {AfterContentInit, Component} from '@angular/core';\nimport {Observable} from \"rxjs\";\nimport {map} from \"rxjs/operators\";\nimport { combineLatest } from 'rxjs';\n\nimport {IEntity} from \"@smartsoft001/domain-core\";\n\nimport {BaseComponent} from \"../base/base.component\";\n\n@Component({\n selector: 'smart-crud-filter-check',\n templateUrl: './check.component.html',\n styleUrls: ['./check.component.scss']\n})\nexport class FilterCheckComponent<T extends IEntity<string>> extends BaseComponent<T> implements AfterContentInit {\n list$: Observable<{ value: any, isCheck: boolean }[]>;\n\n ngAfterContentInit(): void {\n this.list$ = combineLatest([ this.possibilities$, this.facade.filter$]).pipe((\n map(([possibilities]) => {\n return possibilities.map(pos => ({\n value: pos,\n isCheck: this.value.some(r => r === pos.id)\n }))\n })\n ));\n }\n\n onCheckChange(checked: boolean, entry: { value: any; isCheck: boolean }) {\n if (checked && !this.value.some(r => r === entry.value.id)) {\n this.value = [\n ...this.value,\n entry.value.id\n ]\n }\n\n if (!checked && this.value.some(r => r === entry.value.id)) {\n this.value = this.value.filter(r => r !== entry.value.id);\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"FilterCheckComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../base/base.component","name":"BaseComponent","line":14,"character":69},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"smart-crud-filter-check","template":"<ion-row>\n <ion-col>\n <ion-item-divider>\n <ion-icon slot=\"start\" name=\"filter-outline\"></ion-icon>\n <ion-label>\n {{ item.label | translate }}\n </ion-label>\n <ion-button *ngIf=\"value && value.length\" slot=\"end\" color=\"danger\" (click)=\"refresh([])\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-item-divider>\n <ion-item *ngFor=\"let entry of list$ | async\">\n <ion-label>{{entry.value.text | translate}}</ion-label>\n <ion-checkbox slot=\"end\" [checked]=\"entry.isCheck\" (ionChange)=\"onCheckChange($event.detail.checked, entry)\"></ion-checkbox>\n </ion-item>\n </ion-col>\n <!-- <ion-col size=\"auto\" *ngIf=\"value\">\n <ion-button color=\"danger\" (click)=\"refresh(null)\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col> -->\n</ion-row>","styles":[":host{width:100%;margin-bottom:1.2rem}:host ion-radio{margin-right:2.4rem}:host ion-item-divider{font-weight:300;--padding-end:.8rem;font-size:1.2rem;--ion-background-color:linear-gradient(90deg,transparent,var(--ion-color-light))}:host ion-item-divider ion-icon{margin-right:1.6rem;font-size:1.6rem;--color:var(--ion-color-primary)}:host ion-item-divider ion-label{--padding:var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}:host ion-item-divider .squere-button{margin:0;font-size:18px;height:36px;width:36px;padding:0;--padding-start:.2em;--padding-end:.2em}:host ion-item-divider .squere-button ion-icon{margin:0;padding:0}"]}]}],"members":{"ngAfterContentInit":[{"__symbolic":"method"}],"onCheckChange":[{"__symbolic":"method"}]}}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"FilterCheckComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../base/base.component","name":"BaseComponent","line":14,"character":69},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"smart-crud-filter-check","template":"<ion-row>\n <ion-col>\n <ion-item-divider>\n <ion-icon slot=\"start\" name=\"filter-outline\"></ion-icon>\n <ion-label>\n {{ item.label | translate }}\n </ion-label>\n <ion-button *ngIf=\"value && value.length\" slot=\"end\" color=\"danger\" (click)=\"refresh([])\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-item-divider>\n <ion-item *ngFor=\"let entry of list$ | async\">\n <ion-label>{{entry.value.text | translate}}</ion-label>\n <ion-checkbox slot=\"end\" [checked]=\"entry.isCheck\" (ionChange)=\"onCheckChange($event.detail.checked, entry)\"></ion-checkbox>\n </ion-item>\n </ion-col>\n <!-- <ion-col size=\"auto\" *ngIf=\"value\">\n <ion-button color=\"danger\" (click)=\"refresh(null)\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col> -->\n</ion-row>","styles":[":host{width:100%;margin-bottom:1.2rem}:host ion-radio{margin-right:2.4rem}:host ion-item-divider{font-weight:300;--padding-end: .8rem;font-size:1.2rem;--ion-background-color: linear-gradient(90deg, transparent, var(--ion-color-light))}:host ion-item-divider ion-icon{margin-right:1.6rem;font-size:1.6rem;--color: var(--ion-color-primary)}:host ion-item-divider ion-label{--padding: var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}:host ion-item-divider .squere-button{margin:0;font-size:18px;height:36px;width:36px;padding:0;--padding-start: .2em;--padding-end: .2em}:host ion-item-divider .squere-button ion-icon{margin:0;padding:0}\n"]}]}],"members":{"ngAfterContentInit":[{"__symbolic":"method"}],"onCheckChange":[{"__symbolic":"method"}]}}}}]
@@ -11,11 +11,12 @@ export class FilterDateComponent extends BaseComponent {
11
11
  return this.value;
12
12
  }
13
13
  }
14
+ /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
14
15
  FilterDateComponent.decorators = [
15
16
  { type: Component, args: [{
16
17
  selector: 'smart-crud-filter-date',
17
18
  template: "<ion-row>\n <ion-col>\n <ion-label position=\"floating\">\n {{ item.label | translate }}\n </ion-label>\n <ion-datetime displayFormat=\"YYYY-MM-DD\"\n pickerFormat=\"YYYY-MM-DD\"\n [(ngModel)]=\"customValue\"></ion-datetime>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"value\">\n <ion-button color=\"danger\" (click)=\"refresh(null)\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n</ion-row>",
18
- styles: [":host{width:100%}:host .squere-button{height:var(--smart-button-height)!important;margin:.8rem}"]
19
+ styles: [":host{width:100%}:host .squere-button{height:var(--smart-button-height)!important;margin:.8rem}\n"]
19
20
  },] }
20
21
  ];
21
22
  //# sourceMappingURL=date.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/crud/shell/angular/src/lib/components/filter/date/date.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAIjC,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAOrD,MAAM,OAAO,mBAA+C,SAAQ,aAAgB;IAClF,IAAI,WAAW,CAAC,GAAG;;QACjB,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,CAAA,MAAC,GAAc,0CAAE,MAAM,KAAI,EAAE,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IAC7G,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;;;YAbF,SAAS,SAAC;gBACT,QAAQ,EAAE,wBAAwB;gBAClC,+kBAAoC;;aAErC","sourcesContent":["import { Component } from '@angular/core';\nimport * as moment from \"moment\";\n\nimport {IEntity} from \"@smartsoft001/domain-core\";\n\nimport {BaseComponent} from \"../base/base.component\";\n\n@Component({\n selector: 'smart-crud-filter-date',\n templateUrl: './date.component.html',\n styleUrls: ['./date.component.scss']\n})\nexport class FilterDateComponent<T extends IEntity<string>> extends BaseComponent<T> {\n set customValue(val) {\n const momentDate = moment(val);\n this.value = (val as string)?.length >= 10 && momentDate.isValid() ? momentDate.format('YYYY-MM-DD') : val;\n }\n\n get customValue(): any {\n return this.value;\n }\n}\n"]}
1
+ {"version":3,"file":"date.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/crud/shell/angular/src/lib/components/filter/date/date.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAIjC,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAOrD,MAAM,OAAO,mBAA+C,SAAQ,aAAgB;IAClF,IAAI,WAAW,CAAC,GAAG;;QACjB,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,CAAA,MAAC,GAAc,0CAAE,MAAM,KAAI,EAAE,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IAC7G,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;;;;YAbF,SAAS,SAAC;gBACT,QAAQ,EAAE,wBAAwB;gBAClC,+kBAAoC;;aAErC","sourcesContent":["import { Component } from '@angular/core';\nimport * as moment from \"moment\";\n\nimport {IEntity} from \"@smartsoft001/domain-core\";\n\nimport {BaseComponent} from \"../base/base.component\";\n\n@Component({\n selector: 'smart-crud-filter-date',\n templateUrl: './date.component.html',\n styleUrls: ['./date.component.scss']\n})\nexport class FilterDateComponent<T extends IEntity<string>> extends BaseComponent<T> {\n set customValue(val) {\n const momentDate = moment(val);\n this.value = (val as string)?.length >= 10 && momentDate.isValid() ? momentDate.format('YYYY-MM-DD') : val;\n }\n\n get customValue(): any {\n return this.value;\n }\n}\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"FilterDateComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../base/base.component","name":"BaseComponent","line":12,"character":68},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"smart-crud-filter-date","template":"<ion-row>\n <ion-col>\n <ion-label position=\"floating\">\n {{ item.label | translate }}\n </ion-label>\n <ion-datetime displayFormat=\"YYYY-MM-DD\"\n pickerFormat=\"YYYY-MM-DD\"\n [(ngModel)]=\"customValue\"></ion-datetime>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"value\">\n <ion-button color=\"danger\" (click)=\"refresh(null)\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n</ion-row>","styles":[":host{width:100%}:host .squere-button{height:var(--smart-button-height)!important;margin:.8rem}"]}]}]}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"FilterDateComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../base/base.component","name":"BaseComponent","line":12,"character":68},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"smart-crud-filter-date","template":"<ion-row>\n <ion-col>\n <ion-label position=\"floating\">\n {{ item.label | translate }}\n </ion-label>\n <ion-datetime displayFormat=\"YYYY-MM-DD\"\n pickerFormat=\"YYYY-MM-DD\"\n [(ngModel)]=\"customValue\"></ion-datetime>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"value\">\n <ion-button color=\"danger\" (click)=\"refresh(null)\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n</ion-row>","styles":[":host{width:100%}:host .squere-button{height:var(--smart-button-height)!important;margin:.8rem}\n"]}]}]}}}]