@smartsoft001/crud-shell-angular 1.1.595 → 1.1.602
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/smartsoft001-crud-shell-angular.umd.js +377 -245
- package/bundles/smartsoft001-crud-shell-angular.umd.js.map +1 -1
- package/esm2015/index.js +3 -1
- package/esm2015/lib/+state/crud.actions.js +1 -1
- package/esm2015/lib/+state/crud.effects.js +1 -1
- package/esm2015/lib/+state/crud.facade.js +1 -1
- package/esm2015/lib/+state/crud.reducer.js +1 -1
- package/esm2015/lib/+state/crud.selectors.js +1 -1
- package/esm2015/lib/components/components.module.js +1 -1
- package/esm2015/lib/components/export/export.component.js +1 -1
- package/esm2015/lib/components/filter/base/base.component.js +1 -1
- package/esm2015/lib/components/filter/check/check.component.js +1 -1
- package/esm2015/lib/components/filter/date/date.component.js +1 -1
- package/esm2015/lib/components/filter/date-with-edit/date-with-edit.component.js +1 -1
- package/esm2015/lib/components/filter/filter.component.js +1 -1
- package/esm2015/lib/components/filter/flag/flag.component.js +1 -1
- package/esm2015/lib/components/filter/index.js +1 -1
- package/esm2015/lib/components/filter/radio/radio.component.js +1 -1
- package/esm2015/lib/components/filter/text/text.component.js +1 -1
- package/esm2015/lib/components/filters/filters.component.js +1 -1
- package/esm2015/lib/components/filters-config/filters-config.component.js +1 -1
- package/esm2015/lib/components/group/group.component.js +1 -1
- package/esm2015/lib/components/index.js +2 -1
- package/esm2015/lib/components/multiselect/multiselect.component.js +1 -1
- package/esm2015/lib/crud-full.module.js +10 -3
- package/esm2015/lib/crud.config.js +1 -1
- package/esm2015/lib/crud.module.js +3 -1
- package/esm2015/lib/factories/list-pagination/list-pagination.factory.js +1 -1
- package/esm2015/lib/models/index.js +1 -1
- package/esm2015/lib/models/interfaces.js +1 -1
- package/esm2015/lib/pages/index.js +3 -0
- package/esm2015/lib/pages/item/base/base.component.js +41 -0
- package/esm2015/lib/pages/item/item.component.js +56 -17
- package/esm2015/lib/pages/item/standard/standard.component.js +13 -0
- package/esm2015/lib/pages/list/base/base.component.js +30 -0
- package/esm2015/lib/pages/list/list.component.js +30 -14
- package/esm2015/lib/pages/list/standard/standard.component.js +13 -0
- package/esm2015/lib/pipes/form-options/form-options.pipe.js +1 -1
- package/esm2015/lib/pipes/index.js +1 -1
- package/esm2015/lib/pipes/pipes.module.js +1 -1
- package/esm2015/lib/providers/model-possibilities/model-possibilities.provider.js +1 -1
- package/esm2015/lib/services/crud/crud.service.js +1 -1
- package/esm2015/lib/services/page/page.service.js +48 -0
- package/esm2015/lib/services/socket/socket.service.js +1 -1
- package/esm2015/smartsoft001-crud-shell-angular.js +6 -3
- package/fesm2015/smartsoft001-crud-shell-angular.js +358 -218
- package/fesm2015/smartsoft001-crud-shell-angular.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/crud-full.module.d.ts.map +1 -1
- package/lib/crud-full.module.ngfactory.d.ts.map +1 -1
- package/lib/crud.module.d.ts.map +1 -1
- package/lib/pages/index.d.ts +3 -0
- package/lib/pages/index.d.ts.map +1 -0
- package/lib/pages/item/base/base.component.d.ts +22 -0
- package/lib/pages/item/base/base.component.d.ts.map +1 -0
- package/lib/pages/item/item.component.d.ts +17 -7
- package/lib/pages/item/item.component.d.ts.map +1 -1
- package/lib/pages/item/standard/standard.component.d.ts +5 -0
- package/lib/pages/item/standard/standard.component.d.ts.map +1 -0
- package/lib/pages/item/standard/standard.component.ngfactory.d.ts.map +1 -0
- package/lib/pages/item/standard/standard.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/pages/list/base/base.component.d.ts +12 -0
- package/lib/pages/list/base/base.component.d.ts.map +1 -0
- package/lib/pages/list/list.component.d.ts +12 -5
- package/lib/pages/list/list.component.d.ts.map +1 -1
- package/lib/pages/list/standard/standard.component.d.ts +5 -0
- package/lib/pages/list/standard/standard.component.d.ts.map +1 -0
- package/lib/pages/list/standard/standard.component.ngfactory.d.ts.map +1 -0
- package/lib/pages/list/standard/standard.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/services/page/page.service.d.ts +9 -0
- package/lib/services/page/page.service.d.ts.map +1 -0
- package/lib/services/page/page.service.ngfactory.d.ts.map +1 -0
- package/package.json +10 -10
- package/smartsoft001-crud-shell-angular.d.ts +5 -2
- package/smartsoft001-crud-shell-angular.d.ts.map +1 -1
- package/smartsoft001-crud-shell-angular.metadata.json +1 -1
- package/esm2015/index.js.map +0 -1
- package/esm2015/index.metadata.json +0 -1
- package/esm2015/lib/+state/crud.actions.js.map +0 -1
- package/esm2015/lib/+state/crud.actions.metadata.json +0 -1
- package/esm2015/lib/+state/crud.effects.js.map +0 -1
- package/esm2015/lib/+state/crud.effects.metadata.json +0 -1
- package/esm2015/lib/+state/crud.effects.ngfactory.js.map +0 -1
- package/esm2015/lib/+state/crud.facade.js.map +0 -1
- package/esm2015/lib/+state/crud.facade.metadata.json +0 -1
- package/esm2015/lib/+state/crud.facade.ngfactory.js.map +0 -1
- package/esm2015/lib/+state/crud.reducer.js.map +0 -1
- package/esm2015/lib/+state/crud.reducer.metadata.json +0 -1
- package/esm2015/lib/+state/crud.selectors.js.map +0 -1
- package/esm2015/lib/+state/crud.selectors.metadata.json +0 -1
- package/esm2015/lib/components/components.module.js.map +0 -1
- package/esm2015/lib/components/components.module.metadata.json +0 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +0 -1
- package/esm2015/lib/components/export/export.component.js.map +0 -1
- package/esm2015/lib/components/export/export.component.metadata.json +0 -1
- package/esm2015/lib/components/export/export.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/export/export.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/filter/base/base.component.js.map +0 -1
- package/esm2015/lib/components/filter/base/base.component.metadata.json +0 -1
- package/esm2015/lib/components/filter/check/check.component.js.map +0 -1
- package/esm2015/lib/components/filter/check/check.component.metadata.json +0 -1
- package/esm2015/lib/components/filter/check/check.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/filter/check/check.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/filter/date/date.component.js.map +0 -1
- package/esm2015/lib/components/filter/date/date.component.metadata.json +0 -1
- package/esm2015/lib/components/filter/date/date.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/filter/date/date.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/filter/date-with-edit/date-with-edit.component.js.map +0 -1
- package/esm2015/lib/components/filter/date-with-edit/date-with-edit.component.metadata.json +0 -1
- package/esm2015/lib/components/filter/date-with-edit/date-with-edit.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/filter/date-with-edit/date-with-edit.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/filter/filter.component.js.map +0 -1
- package/esm2015/lib/components/filter/filter.component.metadata.json +0 -1
- package/esm2015/lib/components/filter/filter.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/filter/filter.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/filter/flag/flag.component.js.map +0 -1
- package/esm2015/lib/components/filter/flag/flag.component.metadata.json +0 -1
- package/esm2015/lib/components/filter/flag/flag.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/filter/flag/flag.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/filter/index.js.map +0 -1
- package/esm2015/lib/components/filter/index.metadata.json +0 -1
- package/esm2015/lib/components/filter/radio/radio.component.js.map +0 -1
- package/esm2015/lib/components/filter/radio/radio.component.metadata.json +0 -1
- package/esm2015/lib/components/filter/radio/radio.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/filter/radio/radio.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/filter/text/text.component.js.map +0 -1
- package/esm2015/lib/components/filter/text/text.component.metadata.json +0 -1
- package/esm2015/lib/components/filter/text/text.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/filter/text/text.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/filters/filters.component.js.map +0 -1
- package/esm2015/lib/components/filters/filters.component.metadata.json +0 -1
- package/esm2015/lib/components/filters/filters.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/filters/filters.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/filters-config/filters-config.component.js.map +0 -1
- package/esm2015/lib/components/filters-config/filters-config.component.metadata.json +0 -1
- package/esm2015/lib/components/filters-config/filters-config.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/filters-config/filters-config.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/group/group.component.js.map +0 -1
- package/esm2015/lib/components/group/group.component.metadata.json +0 -1
- package/esm2015/lib/components/group/group.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/group/group.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/index.js.map +0 -1
- package/esm2015/lib/components/index.metadata.json +0 -1
- package/esm2015/lib/components/multiselect/multiselect.component.js.map +0 -1
- package/esm2015/lib/components/multiselect/multiselect.component.metadata.json +0 -1
- package/esm2015/lib/components/multiselect/multiselect.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/multiselect/multiselect.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/crud-full.module.js.map +0 -1
- package/esm2015/lib/crud-full.module.metadata.json +0 -1
- package/esm2015/lib/crud-full.module.ngfactory.js.map +0 -1
- package/esm2015/lib/crud.config.js.map +0 -1
- package/esm2015/lib/crud.config.metadata.json +0 -1
- package/esm2015/lib/crud.config.ngfactory.js.map +0 -1
- package/esm2015/lib/crud.module.js.map +0 -1
- package/esm2015/lib/crud.module.metadata.json +0 -1
- package/esm2015/lib/crud.module.ngfactory.js.map +0 -1
- package/esm2015/lib/factories/list-pagination/list-pagination.factory.js.map +0 -1
- package/esm2015/lib/factories/list-pagination/list-pagination.factory.metadata.json +0 -1
- package/esm2015/lib/factories/list-pagination/list-pagination.factory.ngfactory.js.map +0 -1
- package/esm2015/lib/models/index.js.map +0 -1
- package/esm2015/lib/models/index.metadata.json +0 -1
- package/esm2015/lib/models/interfaces.js.map +0 -1
- package/esm2015/lib/models/interfaces.metadata.json +0 -1
- package/esm2015/lib/pages/base/base.component.js +0 -54
- package/esm2015/lib/pages/base/base.component.js.map +0 -1
- package/esm2015/lib/pages/base/base.component.metadata.json +0 -1
- package/esm2015/lib/pages/item/item.component.js.map +0 -1
- package/esm2015/lib/pages/item/item.component.metadata.json +0 -1
- package/esm2015/lib/pages/item/item.component.ngfactory.js.map +0 -1
- package/esm2015/lib/pages/item/item.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/pages/list/list.component.js.map +0 -1
- package/esm2015/lib/pages/list/list.component.metadata.json +0 -1
- package/esm2015/lib/pages/list/list.component.ngfactory.js.map +0 -1
- package/esm2015/lib/pages/list/list.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/pipes/form-options/form-options.pipe.js.map +0 -1
- package/esm2015/lib/pipes/form-options/form-options.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/form-options/form-options.pipe.ngfactory.js.map +0 -1
- package/esm2015/lib/pipes/index.js.map +0 -1
- package/esm2015/lib/pipes/index.metadata.json +0 -1
- package/esm2015/lib/pipes/pipes.module.js.map +0 -1
- package/esm2015/lib/pipes/pipes.module.metadata.json +0 -1
- package/esm2015/lib/pipes/pipes.module.ngfactory.js.map +0 -1
- package/esm2015/lib/providers/model-possibilities/model-possibilities.provider.js.map +0 -1
- package/esm2015/lib/providers/model-possibilities/model-possibilities.provider.metadata.json +0 -1
- package/esm2015/lib/services/crud/crud.service.js.map +0 -1
- package/esm2015/lib/services/crud/crud.service.metadata.json +0 -1
- package/esm2015/lib/services/crud/crud.service.ngfactory.js.map +0 -1
- package/esm2015/lib/services/socket/socket.service.js.map +0 -1
- package/esm2015/lib/services/socket/socket.service.metadata.json +0 -1
- package/esm2015/lib/services/socket/socket.service.ngfactory.js.map +0 -1
- package/esm2015/smartsoft001-crud-shell-angular.js.map +0 -1
- package/esm2015/smartsoft001-crud-shell-angular.metadata.json +0 -1
- package/lib/pages/base/base.component.d.ts +0 -11
- package/lib/pages/base/base.component.d.ts.map +0 -1
- package/lib/pages/item/item.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/pages/list/list.component.scss.shim.ngstyle.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CrudConfig":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1}}]},"CrudFullConfig":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"CrudConfig"},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":17,"character":1}}]}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crud.config.ngfactory.js","sourceRoot":"","sources":["../../../../../../../libs/crud/shell/angular/src/lib/crud.config.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crud.module.js","sourceRoot":"","sources":["../../../../../../../libs/crud/shell/angular/src/lib/crud.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,QAAQ,EAAoB,MAAM,eAAe,CAAC;AAChF,OAAO,EAAS,WAAW,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EACL,mBAAmB,EAEnB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,GACb,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,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AAC,cAAc;YAC3D,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE;gBACjD,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE;gBACrD;oBACE,OAAO,EAAE,mBAAmB;oBAC5B,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAwB;iBAClE;gBACD,GAAG,CACC,OAAO,CAAC,MAAM;oBACV,CAAC,CAAC,CAAC,aAAa,CAAC;oBACjB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,CACjE;aACF;SACF,CAAC;IACJ,CAAC;;;;YAvBF,QAAQ,SAAC,EAAE","sourcesContent":["import { ModuleWithProviders, NgModule, NO_ERRORS_SCHEMA } from \"@angular/core\";\nimport { Store, StoreModule } from \"@ngrx/store\";\nimport { FormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { IEntity } from \"@smartsoft001/domain-core\";\nimport {\n FILE_SERVICE_CONFIG,\n IFileServiceConfig,\n NgrxSharedModule,\n NgrxStoreService,\n SharedModule,\n} from \"@smartsoft001/angular\";\n\nimport { CrudConfig, CrudFullConfig } from \"./crud.config\";\nimport { CrudEffects } from \"./+state/crud.effects\";\nimport { getReducer } from \"./+state/crud.reducer\";\nimport { CrudService } from \"./services/crud/crud.service\";\nimport { CrudFacade } from \"./+state/crud.facade\";\nimport { CrudPipesModule } from \"./pipes/pipes.module\";\nimport { CrudFullModule } from \"./crud-full.module\";\nimport {NotSocketService, SocketService} from \"./services/socket/socket.service\";\nimport { CrudListPaginationFactory } from \"./factories/list-pagination/list-pagination.factory\";\nimport { CrudComponentsModule } from \"./components/components.module\";\n\n@NgModule({\n imports: [\n //AuthSharedModule,\n StoreModule,\n SharedModule,\n CrudPipesModule,\n FormsModule,\n CommonModule,\n CrudComponentsModule,\n NgrxSharedModule,\n ],\n exports: [CrudComponentsModule],\n providers: [\n CrudService,\n CrudEffects,\n CrudFacade,\n SocketService,\n CrudListPaginationFactory,\n ],\n})\nexport class CrudCoreModule<T extends IEntity<string>> {\n constructor(config: CrudConfig<T>, effects: CrudEffects<any>) {\n NgrxStoreService.addReducer(\n config.entity,\n config.reducerFactory\n ? config.reducerFactory()\n : getReducer(config.entity)\n );\n effects.init();\n }\n}\n\n@NgModule({})\nexport class CrudModule<T extends IEntity<string>> {\n static forFeature<T extends IEntity<string>>(\n options:\n | ICrudModuleOptionsWithRoutng<T>\n | ICrudModuleOptionsWithoutRoutng<T>\n ): ModuleWithProviders<CrudModule<any>> {\n return {\n ngModule: options.routing ? CrudFullModule : CrudCoreModule,\n providers: [\n { provide: CrudConfig, useValue: options.config },\n { provide: CrudFullConfig, useValue: options.config },\n {\n provide: FILE_SERVICE_CONFIG,\n useValue: { apiUrl: options.config.apiUrl } as IFileServiceConfig,\n },\n ...(\n options.socket\n ? [SocketService]\n : [{ provide: SocketService, useClass: NotSocketService }]\n ),\n ],\n };\n }\n}\n\nexport interface ICrudModuleOptionsWithRoutng<T> {\n config: CrudFullConfig<T>;\n socket?: boolean;\n routing: true;\n}\n\nexport interface ICrudModuleOptionsWithoutRoutng<T> {\n config: CrudConfig<T>;\n socket?: boolean;\n routing: false;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CrudCoreModule":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":25,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@ngrx/store","name":"StoreModule","line":28,"character":4},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"SharedModule","line":29,"character":4},{"__symbolic":"reference","module":"./pipes/pipes.module","name":"CrudPipesModule","line":30,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":31,"character":4},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":32,"character":4},{"__symbolic":"reference","module":"./components/components.module","name":"CrudComponentsModule","line":33,"character":4},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"NgrxSharedModule","line":34,"character":4}],"exports":[{"__symbolic":"reference","module":"./components/components.module","name":"CrudComponentsModule","line":36,"character":12}],"providers":[{"__symbolic":"reference","module":"./services/crud/crud.service","name":"CrudService","line":38,"character":4},{"__symbolic":"reference","module":"./+state/crud.effects","name":"CrudEffects","line":39,"character":4},{"__symbolic":"reference","module":"./+state/crud.facade","name":"CrudFacade","line":40,"character":4},{"__symbolic":"reference","module":"./services/socket/socket.service","name":"SocketService","line":41,"character":4},{"__symbolic":"reference","module":"./factories/list-pagination/list-pagination.factory","name":"CrudListPaginationFactory","line":42,"character":4}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./crud.config","name":"CrudConfig","line":46,"character":22,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":46,"character":33,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"./+state/crud.effects","name":"CrudEffects","line":46,"character":46,"arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"CrudModule":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":57,"character":1},"arguments":[{}]}],"statics":{"forFeature":{"__symbolic":"function","parameters":["options"],"value":{"ngModule":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"routing"},"thenExpression":{"__symbolic":"reference","module":"./crud-full.module","name":"CrudFullModule","line":65,"character":34},"elseExpression":{"__symbolic":"reference","name":"CrudCoreModule"}},"providers":[{"provide":{"__symbolic":"reference","module":"./crud.config","name":"CrudConfig","line":46,"character":22,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":46,"character":33,"context":{"typeName":"T"}}]},"useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"config"}},{"provide":{"__symbolic":"reference","module":"./crud.config","name":"CrudFullConfig","line":68,"character":19},"useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"config"}},{"provide":{"__symbolic":"reference","module":"@smartsoft001/angular","name":"FILE_SERVICE_CONFIG","line":70,"character":19},"useValue":{"apiUrl":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"config"},"member":"apiUrl"}}},{"__symbolic":"spread","expression":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"socket"},"thenExpression":[{"__symbolic":"reference","module":"./services/socket/socket.service","name":"SocketService","line":75,"character":19}],"elseExpression":[{"provide":{"__symbolic":"reference","module":"./services/socket/socket.service","name":"SocketService","line":76,"character":30},"useClass":{"__symbolic":"reference","module":"./services/socket/socket.service","name":"NotSocketService","line":76,"character":55}}]}}]}}}},"ICrudModuleOptionsWithRoutng":{"__symbolic":"interface"},"ICrudModuleOptionsWithoutRoutng":{"__symbolic":"interface"}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crud.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../../libs/crud/shell/angular/src/lib/crud.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './crud.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 './components/export/export.component';\nimport * as i8 from './components/filter/filter.component';\nimport * as i9 from './components/filter/text/text.component';\nimport * as i10 from './components/filters-config/filters-config.component';\nimport * as i11 from './components/filter/date/date.component';\nimport * as i12 from './components/filter/date-with-edit/date-with-edit.component';\nimport * as i13 from './components/filter/radio/radio.component';\nimport * as i14 from './components/filters/filters.component';\nimport * as i15 from './components/filter/flag/flag.component';\nimport * as i16 from './components/filter/check/check.component';\nimport * as i17 from './components/multiselect/multiselect.component';\nimport * as i18 from './components/group/group.component';\nimport * as i19 from './pipes/form-options/form-options.pipe';\nimport * as i20 from '@ngrx/store';\nimport * as i21 from './pipes/pipes.module';\nimport * as i22 from './components/components.module';\nexport const CrudCoreModuleNgFactory:i0.NgModuleFactory<i1.CrudCoreModule<any>> = (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.ɵca<any> = (<any>(null as any));\nvar _decl0_123:i6.ɵcd<any> = (<any>(null as any));\nvar _decl0_124:i6.ɵce<any> = (<any>(null as any));\nvar _decl0_125:i6.ɵcj = (<any>(null as any));\nvar _decl0_126:i6.ɵcm = (<any>(null as any));\nvar _decl0_127:i6.ɵcp = (<any>(null as any));\nvar _decl0_128:i6.ɵcq<any> = (<any>(null as any));\nvar _decl0_129:i6.ɵcr<any> = (<any>(null as any));\nvar _decl0_130:i6.ɵcu = (<any>(null as any));\nvar _decl0_131:i6.ɵcv<any> = (<any>(null as any));\nvar _decl0_132:i6.ɵcw<any> = (<any>(null as any));\nvar _decl0_133:i6.ɵcx<any> = (<any>(null as any));\nvar _decl0_134:i6.ɵcy<any> = (<any>(null as any));\nvar _decl0_135:i6.ɵcz<any> = (<any>(null as any));\nvar _decl0_136:i6.ɵda<any> = (<any>(null as any));\nvar _decl0_137:i6.ɵdc<any> = (<any>(null as any));\nvar _decl0_138:i6.ɵdd<any> = (<any>(null as any));\nvar _decl0_139:i6.ɵde<any> = (<any>(null as any));\nvar _decl0_140:i6.ɵdf<any> = (<any>(null as any));\nvar _decl0_141:i6.ɵdj<any> = (<any>(null as any));\nvar _decl0_142:i6.ɵdk<any> = (<any>(null as any));\nvar _decl0_143:i6.ɵdl<any> = (<any>(null as any));\nvar _decl0_144:i6.ɵdm<any> = (<any>(null as any));\nvar _decl0_145:i6.ɵdn<any,any> = (<any>(null as any));\nvar _decl0_146:i6.ɵdo<any> = (<any>(null as any));\nvar _decl0_147:i6.ɵdp<any> = (<any>(null as any));\nvar _decl0_148:i6.ɵdq<any> = (<any>(null as any));\nvar _decl0_149:i6.ɵdr<any> = (<any>(null as any));\nvar _decl0_150:i6.ɵds<any> = (<any>(null as any));\nvar _decl0_151:i6.ɵdt<any> = (<any>(null as any));\nvar _decl0_152:i6.ɵdu<any,any> = (<any>(null as any));\nvar _decl0_153:i6.ɵdv<any> = (<any>(null as any));\nvar _decl0_154:i6.ɵdx<any> = (<any>(null as any));\nvar _decl0_155:i6.ɵdy<any> = (<any>(null as any));\nvar _decl0_156:i6.ɵdz<any> = (<any>(null as any));\nvar _decl0_157:i6.ɵea<any> = (<any>(null as any));\nvar _decl0_158:i6.ɵeb<any> = (<any>(null as any));\nvar _decl0_159:i6.ɵec = (<any>(null as any));\nvar _decl0_160:i6.ɵed = (<any>(null as any));\nvar _decl0_161:i6.ɵef = (<any>(null as any));\nvar _decl0_162:i6.ɵeg<any> = (<any>(null as any));\nvar _decl0_163:i6.ɵeh<any> = (<any>(null as any));\nvar _decl0_164:i6.ɵej<any> = (<any>(null as any));\nvar _decl0_165:i6.ɵek<any> = (<any>(null as any));\nvar _decl0_166:i6.ɵel = (<any>(null as any));\nvar _decl0_167:i6.ɵem<any> = (<any>(null as any));\nvar _decl0_168:i6.ɵen<any> = (<any>(null as any));\nvar _decl0_169:i6.ɵep<any> = (<any>(null as any));\nvar _decl0_170:i6.ɵeq<any> = (<any>(null as any));\nvar _decl0_171:i6.ɵer<any> = (<any>(null as any));\nvar _decl0_172:i6.ɵes<any> = (<any>(null as any));\nvar _decl0_173:i6.ɵet<any,any> = (<any>(null as any));\nvar _decl0_174:i6.ɵeu<any> = (<any>(null as any));\nvar _decl0_175:i6.ɵev<any> = (<any>(null as any));\nvar _decl0_176:i6.ɵew<any,any> = (<any>(null as any));\nvar _decl0_177:i6.ɵex<any> = (<any>(null as any));\nvar _decl0_178:i6.ɵey<any> = (<any>(null as any));\nvar _decl0_179:i6.ɵez<any> = (<any>(null as any));\nvar _decl0_180:i6.ɵfa<any> = (<any>(null as any));\nvar _decl0_181:i6.ɵfb<any> = (<any>(null as any));\nvar _decl0_182:i6.ɵfc<any> = (<any>(null as any));\nvar _decl0_183:i6.ɵfd<any> = (<any>(null as any));\nvar _decl0_184:i6.ɵff = (<any>(null as any));\nvar _decl0_185:i6.ɵfg = (<any>(null as any));\nvar _decl0_186:i6.ɵfh = (<any>(null as any));\nvar _decl0_187:i6.ɵfi = (<any>(null as any));\nvar _decl0_188:i6.ɵfj = (<any>(null as any));\nvar _decl0_189:i6.ɵfk = (<any>(null as any));\nvar _decl0_190:i6.ɵfl<any> = (<any>(null as any));\nvar _decl0_191:i6.ɵfm<any> = (<any>(null as any));\nvar _decl0_192:i6.ɵfo<any> = (<any>(null as any));\nvar _decl0_193:i6.ɵfp = (<any>(null as any));\nvar _decl0_194:i6.ɵfq = (<any>(null as any));\nvar _decl0_195:i6.ɵfr = (<any>(null as any));\nvar _decl0_196:i6.ɵfs = (<any>(null as any));\nvar _decl0_197:i6.ɵft = (<any>(null as any));\nvar _decl0_198:i6.ɵfu = (<any>(null as any));\nvar _decl0_199:i6.ɵfv = (<any>(null as any));\nvar _decl0_200:i6.ɵfw = (<any>(null as any));\nvar _decl0_201:i6.ɵfx = (<any>(null as any));\nvar _decl0_202:i6.ɵfy = (<any>(null as any));\nvar _decl0_203:i6.ɵfz = (<any>(null as any));\nvar _decl0_204:i6.ɵga = (<any>(null as any));\nvar _decl0_205:i6.ɵgb = (<any>(null as any));\nvar _decl0_206:i6.ɵgg<any> = (<any>(null as any));\nvar _decl0_207:i6.ɵgd = (<any>(null as any));\nvar _decl0_208:i6.ɵge = (<any>(null as any));\nvar _decl0_209:i3.NgModel = (<any>(null as any));\nvar _decl0_210:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_211:i3.NgForm = (<any>(null as any));\nvar _decl0_212:i7.ExportComponent<any> = (<any>(null as any));\nvar _decl0_213:i8.FilterComponent = (<any>(null as any));\nvar _decl0_214:i9.FilterTextComponent<any> = (<any>(null as any));\nvar _decl0_215:i10.FiltersConfigComponent<any> = (<any>(null as any));\nvar _decl0_216:i11.FilterDateComponent<any> = (<any>(null as any));\nvar _decl0_217:i12.FilterDateWithEditComponent<any> = (<any>(null as any));\nvar _decl0_218:i13.FilterRadioComponent<any> = (<any>(null as any));\nvar _decl0_219:i14.FiltersComponent<any> = (<any>(null as any));\nvar _decl0_220:i15.FilterFlagComponent<any> = (<any>(null as any));\nvar _decl0_221:i16.FilterCheckComponent<any> = (<any>(null as any));\nvar _decl0_222:i17.MultiselectComponent<any> = (<any>(null as any));\nvar _decl0_223:i18.GroupComponent<any> = (<any>(null as any));\nvar _decl0_224:i2.TranslatePipe = (<any>(null as any));\nvar _decl0_225:i5.AsyncPipe = (<any>(null as any));\nvar _decl0_226:i5.UpperCasePipe = (<any>(null as any));\nvar _decl0_227:i5.LowerCasePipe = (<any>(null as any));\nvar _decl0_228:i5.JsonPipe = (<any>(null as any));\nvar _decl0_229:i5.SlicePipe = (<any>(null as any));\nvar _decl0_230:i5.DecimalPipe = (<any>(null as any));\nvar _decl0_231:i5.PercentPipe = (<any>(null as any));\nvar _decl0_232:i5.TitleCasePipe = (<any>(null as any));\nvar _decl0_233:i5.CurrencyPipe = (<any>(null as any));\nvar _decl0_234:i5.DatePipe = (<any>(null as any));\nvar _decl0_235:i5.I18nPluralPipe = (<any>(null as any));\nvar _decl0_236:i5.I18nSelectPipe = (<any>(null as any));\nvar _decl0_237:i5.KeyValuePipe = (<any>(null as any));\nvar _decl0_238:i6.ɵx = (<any>(null as any));\nvar _decl0_239:i6.ɵy<any> = (<any>(null as any));\nvar _decl0_240:i6.ɵz = (<any>(null as any));\nvar _decl0_241:i6.ɵba<any> = (<any>(null as any));\nvar _decl0_242:i6.ɵbd<any> = (<any>(null as any));\nvar _decl0_243:i19.FormOptionsPipe<any> = (<any>(null as any));\nvar _decl0_244:i20.StoreModule = (<any>(null as any));\nvar _decl0_245:i6.SharedModule = (<any>(null as any));\nvar _decl0_246:i21.CrudPipesModule = (<any>(null as any));\nvar _decl0_247:i3.FormsModule = (<any>(null as any));\nvar _decl0_248:i5.CommonModule = (<any>(null as any));\nvar _decl0_251:i22.CrudComponentsModule = (<any>(null as any));\nvar _decl0_250:i6.NgrxSharedModule = (<any>(null as any));\nvar _decl0_252:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_253:i0.ElementRef<any> = (<any>(null as any));\nexport const CrudModuleNgFactory:i0.NgModuleFactory<i1.CrudModule<any>> = (null as any);\nvar _decl1_0:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl1_1:i0.ElementRef<any> = (<any>(null as any));\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-pagination.factory.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/factories/list-pagination/list-pagination.factory.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAKrC,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAIpD,MAAM,OAAO,yBAAyB;IACpC,YAA6B,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAEhD,MAAM,CAAC,OAMZ;;YACC,OAAO;gBACL,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,YAAY,EAAE,GAAG,EAAE;oBACjB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI;wBACnE,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBAEhC,OAAO,IAAI,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;wBACzB,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;4BAC9C,IAAI,CAAC,EAAE;gCACL,6CAA6C;gCAC7C,UAAU,CAAC,GAAG,EAAE;oCACd,GAAG,CACD,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE;wCACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,CACnC,CAAC;gCACJ,CAAC,CAAC,CAAC;6BACJ;wBACH,CAAC,CAAC,CAAC;wBAEH,IAAI,CAAC,MAAM,CAAC,IAAI,iCACX,OAAO,CAAC,QAAQ,CAAC,SAAS,EAAE,KAC/B,MAAM,EACJ,OAAO,CAAC,QAAQ,CAA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AAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC/C,CAAC,CAAC,CACH;gBACD,WAAW,EAAE,aAAa,CACxB,IAAI,CAAC,MAAM,CAAC,OAAO,EACnB,IAAI,CAAC,MAAM,CAAC,WAAW,CACxB,CAAC,IAAI,CACJ,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,EAAE;oBAC3B,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClE,CAAC,CAAC,CACH;aACF,CAAC;QACJ,CAAC;KAAA;;;;YA7EF,UAAU;;;;;;;;;;YAHH,UAAU","sourcesContent":["import { Injectable } from \"@angular/core\";\n\nimport { map } from \"rxjs/operators\";\nimport { combineLatest } from \"rxjs\";\n\nimport { IEntity } from \"@smartsoft001/domain-core\";\nimport { IListPaginationOptions } from \"@smartsoft001/angular\";\n\nimport {CrudFacade} from \"../../+state/crud.facade\";\nimport {ICrudFilter} from \"../../models/interfaces\";\n\n@Injectable()\nexport class CrudListPaginationFactory<T extends IEntity<string>> {\n constructor(private readonly facade: CrudFacade<T>) {}\n\n async create(options: {\n limit: number;\n provider: {\n getLinks(): any;\n getFilter(): ICrudFilter;\n };\n }): Promise<IListPaginationOptions> {\n return {\n limit: options.limit,\n loadNextPage: () => {\n if (!options.provider.getLinks() || !options.provider.getLinks().next)\n return Promise.resolve(false);\n\n return new Promise((res) => {\n const sub = this.facade.loaded$.subscribe((l) => {\n if (l) {\n // if (sub && !sub.closed) sub.unsubscribe();\n setTimeout(() => {\n res(\n options.provider.getLinks() &&\n options.provider.getLinks().next\n );\n });\n }\n });\n\n this.facade.read({\n ...options.provider.getFilter(),\n offset:\n options.provider.getFilter().offset +\n options.provider.getFilter().limit,\n });\n });\n },\n loadPrevPage: () => {\n if (!options.provider.getLinks() || !options.provider.getLinks().prev)\n return Promise.resolve(false);\n\n return new Promise((res) => {\n const sub = this.facade.loaded$.subscribe((l) => {\n if (l) {\n // if (sub && !sub.closed) sub.unsubscribe();\n setTimeout(() => {\n res(\n options.provider.getLinks() &&\n options.provider.getLinks().prev\n );\n });\n }\n });\n\n this.facade.read({\n ...options.provider.getFilter(),\n offset:\n options.provider.getFilter().offset -\n options.provider.getFilter().limit,\n });\n });\n },\n page$: this.facade.filter$.pipe(\n map((f) => {\n return f?.limit ? f.offset / f.limit + 1 : 0;\n })\n ),\n totalPages$: combineLatest(\n this.facade.filter$,\n this.facade.totalCount$\n ).pipe(\n map(([filter, totalCount]) => {\n return filter?.limit ? Math.ceil(totalCount / filter.limit) : 0;\n })\n ),\n };\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CrudListPaginationFactory":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../../+state/crud.facade","name":"CrudFacade","line":13,"character":39,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":13,"character":50,"context":{"typeName":"T"}}]}]}],"create":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-pagination.factory.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/factories/list-pagination/list-pagination.factory.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC","sourcesContent":["export * from './interfaces';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./interfaces"}]}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/models/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import {IModelFilter} from \"@smartsoft001/models\";\n\nexport interface ICrudFilter {\n searchText?: string;\n sortBy?: string;\n sortDesc?: boolean;\n offset?: number;\n limit?: number;\n query?: Array<ICrudFilterQueryItem>\n}\n\nexport interface ICrudFilterQueryItem extends IModelFilter {\n key: string;\n value: any;\n type: '=' | '!=' | '>=' | '<=' | '<' | '>';\n hidden?: boolean;\n}\n\nexport interface ICrudCreateManyOptions {\n mode: CrudCreateManyMode\n}\n\nexport interface ICrudListGroup {\n key: string;\n value: string;\n text: string;\n show?: boolean;\n children?: Array<ICrudListGroup>;\n}\n\nexport type CrudCreateManyMode = 'default' | 'replace';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ICrudFilter":{"__symbolic":"interface"},"ICrudFilterQueryItem":{"__symbolic":"interface"},"ICrudCreateManyOptions":{"__symbolic":"interface"},"ICrudListGroup":{"__symbolic":"interface"},"CrudCreateManyMode":{"__symbolic":"interface"}}}]
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { AuthService, BaseComponent } from "@smartsoft001/angular";
|
|
3
|
-
import { Directive } from "@angular/core";
|
|
4
|
-
import { getModelOptions } from "@smartsoft001/models";
|
|
5
|
-
import { CrudFullConfig } from "../../crud.config";
|
|
6
|
-
export class PageBaseComponent extends BaseComponent {
|
|
7
|
-
constructor(authService, config) {
|
|
8
|
-
super();
|
|
9
|
-
this.authService = authService;
|
|
10
|
-
this.config = config;
|
|
11
|
-
}
|
|
12
|
-
ngOnInit() {
|
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
this.checkPermissions(this.config);
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
checkPermissions(val) {
|
|
18
|
-
const modelOptions = getModelOptions(val.type);
|
|
19
|
-
if (val.add &&
|
|
20
|
-
modelOptions.create &&
|
|
21
|
-
modelOptions.create.permissions &&
|
|
22
|
-
!this.authService.expectPermissions(modelOptions.create.permissions)) {
|
|
23
|
-
val.add = false;
|
|
24
|
-
}
|
|
25
|
-
if (val.edit &&
|
|
26
|
-
modelOptions.update &&
|
|
27
|
-
modelOptions.update.permissions &&
|
|
28
|
-
!this.authService.expectPermissions(modelOptions.update.permissions)) {
|
|
29
|
-
val.edit = false;
|
|
30
|
-
}
|
|
31
|
-
if (val.remove &&
|
|
32
|
-
modelOptions.remove &&
|
|
33
|
-
modelOptions.remove.permissions &&
|
|
34
|
-
!this.authService.expectPermissions(modelOptions.remove.permissions)) {
|
|
35
|
-
val.remove = false;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
40
|
-
PageBaseComponent.decorators = [
|
|
41
|
-
{ type: Directive }
|
|
42
|
-
];
|
|
43
|
-
/**
|
|
44
|
-
* @type {function(): !Array<(null|{
|
|
45
|
-
* type: ?,
|
|
46
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
47
|
-
* })>}
|
|
48
|
-
* @nocollapse
|
|
49
|
-
*/
|
|
50
|
-
PageBaseComponent.ctorParameters = () => [
|
|
51
|
-
{ type: AuthService },
|
|
52
|
-
{ type: CrudFullConfig }
|
|
53
|
-
];
|
|
54
|
-
//# sourceMappingURL=base.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pages/base/base.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EA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;SACpB;IACH,CAAC;;;;YA3CF,SAAS;;;;;;;;;;YAND,WAAW;YAIX,cAAc","sourcesContent":["import { AuthService, BaseComponent } from \"@smartsoft001/angular\";\nimport {Directive, OnInit} from \"@angular/core\";\nimport { getModelOptions } from \"@smartsoft001/models\";\n\nimport { CrudFullConfig } from \"../../crud.config\";\n\n@Directive()\nexport abstract class PageBaseComponent<T> extends BaseComponent\n implements OnInit {\n protected constructor(\n protected authService: AuthService,\n public config: CrudFullConfig<T>\n ) {\n super();\n }\n\n async ngOnInit(): Promise<void> {\n this.checkPermissions(this.config);\n }\n\n private checkPermissions(val: CrudFullConfig<T>): void {\n const modelOptions = getModelOptions(val.type);\n\n if (\n val.add &&\n modelOptions.create &&\n modelOptions.create.permissions &&\n !this.authService.expectPermissions(modelOptions.create.permissions)\n ) {\n val.add = false;\n }\n\n if (\n val.edit &&\n modelOptions.update &&\n modelOptions.update.permissions &&\n !this.authService.expectPermissions(modelOptions.update.permissions)\n ) {\n val.edit = false;\n }\n\n if (\n val.remove &&\n modelOptions.remove &&\n modelOptions.remove.permissions &&\n !this.authService.expectPermissions(modelOptions.remove.permissions)\n ) {\n val.remove = false;\n }\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"PageBaseComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@smartsoft001/angular","name":"BaseComponent","line":7,"character":51},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@smartsoft001/angular","name":"AuthService","line":10,"character":27},{"__symbolic":"reference","module":"../../crud.config","name":"CrudFullConfig","line":11,"character":19,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":11,"character":34,"context":{"typeName":"T"}}]}]}],"ngOnInit":[{"__symbolic":"method"}],"checkPermissions":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pages/item/item.component.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,UAAU,EAGV,SAAS,EACT,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,eAAe,EAA4B,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,OAAO,EACL,WAAW,EACX,sBAAsB,EAAE,aAAa,EAIvB,YAAY,EAAE,YAAY,GACzC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAkB,SAAS,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAOlF,MAAM,OAAO,aAAyC,SAAQ,iBAAoB;IAsBhF,YACU,MAAc,EACd,WAA2B,EAC3B,MAAqB,EACrB,OAAuB,EACvB,KAAqB,EACrB,sBAAiD,EACjD,gBAAkC,EACnC,MAAyB,EACxB,QAAkB,EAClB,EAAqB,EAC7B,WAAwB,EAChB,YAA0B,EAC1B,UAAsB,EACtB,YAA0B;QAElC,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAfnB,W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BACpC,IAAI,CAAC,gBAAgB,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,GAAG,IAAI,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC;YACpE,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;;;;YAxSF,SAAS,SAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,yoBAAoC;;aAErC;;;;;;;;;;YA5BwB,MAAM;YAAtB,cAAc;YAgBd,UAAU;YAEV,WAAW;YAlBX,cAAc;YAOrB,sBAAsB;YAJhB,gBAAgB;YAcf,cAAc;YAfd,QAAQ;YAXf,iBAAiB;YAejB,WAAW;YAKG,YAAY;YAlB1B,UAAU;YAkBkB,YAAY;;;;6BAqCvC,YAAY,SAAC,aAAa,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;sBACnD,SAAS,SAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE","sourcesContent":["import {\n ChangeDetectorRef,\n Component,\n ElementRef,\n OnDestroy,\n OnInit,\n QueryList,\n ViewChild,\n ViewChildren\n} from \"@angular/core\";\nimport { ActivatedRoute, Router } from \"@angular/router\";\nimport { BehaviorSubject, Observable, Subscription } from \"rxjs\";\nimport { Location } from \"@angular/common\";\nimport {TranslateService} from \"@ngx-translate/core\";\n\nimport {\n AuthService,\n DynamicComponentLoader, FormComponent, ICellPipe,\n IDetailsOptions,\n IIconButtonOptions,\n InputComponent,\n IPageOptions, StyleService, ToastService,\n} from \"@smartsoft001/angular\";\nimport { IEntity } from \"@smartsoft001/domain-core\";\nimport {getModelOptions} from \"@smartsoft001/models\";\n\nimport { CrudFacade } from \"../../+state/crud.facade\";\nimport { CrudFullConfig } from \"../../crud.config\";\nimport { CrudService } from \"../../services/crud/crud.service\";\nimport { ICrudFilter } from \"../../models/interfaces\";\nimport {PageBaseComponent} from \"../base/base.component\";\nimport { IonContent } from \"@ionic/angular\";\nimport {AbstractControl, FormArray, FormControl, FormGroup} from \"@angular/forms\";\n\n@Component({\n selector: \"smart-crud-item-page\",\n templateUrl: \"./item.component.html\",\n styleUrls: [\"./item.component.scss\"],\n})\nexport class ItemComponent<T extends IEntity<string>> extends PageBaseComponent<T>\n implements OnInit, OnDestroy {\n\n pageOptions: IPageOptions = {\n title: \"\",\n showBackButton: true,\n hideMenuButton: true,\n };\n detailsOptions: IDetailsOptions<T>;\n mode: string;\n id: string;\n formValue: T;\n formValid = false;\n item: T;\n formPartialValue: Partial<T>;\n uniqueProvider: (values: Record<keyof T, any>) => Promise<boolean>;\n\n selected$: Observable<T>;\n\n @ViewChildren(FormComponent, { read: FormComponent }) formComponents = new QueryList<FormComponent<any>>();\n @ViewChild(IonContent, { static: true }) content: IonContent;\n\n constructor(\n private router: Router,\n private activeRoute: ActivatedRoute,\n private facade: CrudFacade<T>,\n private service: CrudService<T>,\n private route: ActivatedRoute,\n private dynamicComponentLoader: DynamicComponentLoader<T>,\n private translateService: TranslateService,\n public config: CrudFullConfig<T>,\n private location: Location,\n private cd: ChangeDetectorRef,\n authService: AuthService,\n private styleService: StyleService,\n private elementRef: ElementRef,\n private toastService: ToastService\n ) {\n super(authService, config);\n\n this.selected$ = this.facade.selected$;\n }\n\n async ngOnInit() {\n this.styleService.init(this.elementRef);\n\n await super.ngOnInit();\n\n if (this.router.routerState.snapshot.url.endsWith(\"/add\")) {\n this.mode = \"create\";\n } else {\n this.mode = this.config.details ? \"details\" : \"update\";\n\n this.activeRoute.params\n .pipe(this.takeUntilDestroy)\n .subscribe(({ id }) => {\n this.facade.select(id);\n this.id = id;\n });\n\n this.activeRoute.queryParams\n .pipe(this.takeUntilDestroy)\n .subscribe(({ edit }) => {\n if (edit) {\n this.mode = \"update\";\n }\n });\n }\n\n this.uniqueProvider = async (values) => {\n const filter: ICrudFilter = {\n query: [],\n };\n\n Object.keys(values).forEach((key) => {\n filter.query.push({\n key: key,\n value: values[key],\n type: \"=\",\n });\n });\n\n const { totalCount } = await this.service.getList(filter).toPromise();\n\n return !totalCount;\n };\n\n if (this.config.details) {\n const compiledComponents = await this.dynamicComponentLoader.getComponentsWithFactories(\n {\n components: [\n ...(this.config.details &&\n this.config.details[\"components\"] &&\n this.config.details[\"components\"].top\n ? [this.config.details[\"components\"].top]\n : []),\n ...(this.config.details &&\n this.config.details[\"components\"] &&\n this.config.details[\"components\"].bottom\n ? [this.config.details[\"components\"].bottom]\n : []),\n ],\n }\n );\n\n this.detailsOptions = {\n type: this.config.type,\n item$: this.facade.selected$,\n cellPipe: this.config.details ? (this.config.details as {cellPipe?: ICellPipe<T>}).cellPipe : null,\n componentFactories: {\n top:\n this.config.details &&\n this.config.details[\"components\"] &&\n this.config.details[\"components\"].top\n ? compiledComponents.find(\n (cc) => cc.component === this.config.details[\"components\"].top\n ).factory\n : null,\n bottom:\n this.config.details &&\n this.config.details[\"components\"] &&\n this.config.details[\"components\"].bottom\n ? compiledComponents.find(\n (cc) => cc.component === this.config.details[\"components\"].bottom\n ).factory\n : null,\n },\n };\n }\n\n this.initPageOptions();\n\n this.facade.selected$.pipe(this.takeUntilDestroy).subscribe(item => {\n this.item = item;\n this.initPageOptions();\n this.cd.detectChanges();\n });\n }\n\n onPartialChange(val: Partial<T>) {\n this.formPartialValue = val;\n }\n\n onChange(val: T) {\n this.formValue = val;\n }\n\n onValidChange(val: boolean) {\n this.formValid = val;\n }\n\n private initPageOptions(): void {\n this.pageOptions = {\n ...this.pageOptions,\n title: this.getTitle(),\n endButtons: this.getButtons(),\n };\n }\n\n private getButtons(): Array<IIconButtonOptions> {\n switch (this.mode) {\n case \"create\":\n return [\n {\n icon: \"add\",\n text: \"add\",\n handler: () => {\n if (this.checkFirstInvalid()) {\n return;\n }\n\n this.facade.create(this.formValue);\n this.location.back();\n },\n },\n ];\n case \"update\":\n return [\n ...(this.config.details\n ? [\n {\n icon: \"close\",\n text: \"cancel\",\n handler: () => {\n this.mode = \"details\";\n this.initPageOptions();\n },\n disabled$: new BehaviorSubject(false),\n },\n ]\n : []),\n {\n icon: \"save\",\n text: \"save\",\n handler: () => {\n if (this.checkFirstInvalid()) {\n return;\n }\n\n this.formPartialValue.id = this.id;\n this.facade.updatePartial(this.formPartialValue as any);\n\n if (this.config.details) {\n this.mode = \"details\";\n this.initPageOptions();\n } else {\n this.location.back();\n }\n },\n },\n ];\n case \"details\":\n return this.config.edit\n ? [\n {\n icon: \"create\",\n text: \"edit\",\n handler: () => {\n this.mode = \"update\";\n this.initPageOptions();\n },\n disabled$: new BehaviorSubject(false),\n },\n ]\n : [];\n }\n }\n\n private getTitle(): string {\n const options = getModelOptions(this.config.type);\n\n const prefix = options.titleKey && this.item ? this.removeParagraph(this.item[options.titleKey]) + ' - ' : '';\n\n switch (this.mode) {\n case \"create\":\n return \"add\";\n case \"update\":\n return prefix + this.translateService.instant(\"change\");\n case \"details\":\n return prefix + this.translateService.instant(\"details\");\n }\n }\n\n private removeParagraph(val: string): string {\n if (!val || val.indexOf('<p>') !== 0) return val;\n\n const div=document.createElement(\"div\");\n div.innerHTML=val;\n\n const item = div.querySelectorAll(\"p\").item(0);\n\n return item.innerHTML;\n }\n\n private checkFirstInvalid(): boolean {\n const form = this.formComponents.first.form;\n\n if (form.valid) return false;\n\n const invalidFields = [];\n\n this.getInvalidFields(form, invalidFields, '');\n\n this.toastService.info({\n title: this.translateService.instant('INPUT.ERRORS.requires'),\n message: invalidFields.slice(0, 3).join('<br/>')\n });\n\n return true;\n }\n\n private getInvalidFields(control: AbstractControl, invalidFields: any[], baseField: string, key = null) {\n if (control.valid) return;\n\n const field = key ? baseField + ' > ' + this.translateService.instant('MODEL.' + key) : baseField;\n\n if (control instanceof FormControl) {\n invalidFields.push(field);\n }\n\n if (control instanceof FormGroup) {\n Object.keys(control.controls).forEach(groupKey => {\n this.getInvalidFields(control.controls[groupKey], invalidFields, field, groupKey);\n });\n }\n\n if (control instanceof FormArray) {\n control.controls.forEach((c, index) => {\n this.getInvalidFields(c, invalidFields, field + `(${index + 1})`);\n });\n }\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ItemComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../base/base.component","name":"PageBaseComponent","line":39,"character":62},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":34,"character":1},"arguments":[{"selector":"smart-crud-item-page","template":"<smart-page [options]=\"pageOptions\">\n\n <ng-container *ngIf=\"mode === 'details'; else editTpl\">\n <smart-details *ngIf=\"detailsOptions\" [options]='detailsOptions'></smart-details>\n </ng-container>\n\n <ng-template #editTpl>\n <smart-form\n [options]=\"\n (selected$ | async)\n | smartFormOptions : mode:config?.type:uniqueProvider : config.inputComponents\n \"\n (valuePartialChange)=\"onPartialChange($event)\"\n (valueChange)=\"onChange($event)\"\n (validChange)=\"onValidChange($event)\"\n ></smart-form>\n </ng-template>\n\n <br/><br/>\n</smart-page>\n","styles":[""]}]}],"members":{"formComponents":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":58,"character":3},"arguments":[{"__symbolic":"reference","module":"@smartsoft001/angular","name":"FormComponent","line":58,"character":16},{"read":{"__symbolic":"reference","module":"@smartsoft001/angular","name":"FormComponent","line":58,"character":39}}]}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":59,"character":3},"arguments":[{"__symbolic":"reference","module":"@ionic/angular","name":"IonContent","line":59,"character":13},{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":62,"character":20},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":63,"character":25},{"__symbolic":"reference","module":"../../+state/crud.facade","name":"CrudFacade","line":64,"character":20,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":64,"character":31,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"../../services/crud/crud.service","name":"CrudService","line":65,"character":21,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":65,"character":33,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":63,"character":25},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"DynamicComponentLoader","line":67,"character":36,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":67,"character":59,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService","line":68,"character":30},{"__symbolic":"reference","module":"../../crud.config","name":"CrudFullConfig","line":69,"character":19,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":69,"character":34,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":70,"character":22},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":71,"character":16},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"AuthService","line":72,"character":17},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"StyleService","line":73,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":74,"character":24},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"ToastService","line":75,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"onPartialChange":[{"__symbolic":"method"}],"onChange":[{"__symbolic":"method"}],"onValidChange":[{"__symbolic":"method"}],"initPageOptions":[{"__symbolic":"method"}],"getButtons":[{"__symbolic":"method"}],"getTitle":[{"__symbolic":"method"}],"removeParagraph":[{"__symbolic":"method"}],"checkFirstInvalid":[{"__symbolic":"method"}],"getInvalidFields":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pages/item/item.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item.component.scss.shim.ngstyle.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pages/item/item.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pages/list/list.component.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACS,UAAU,EAC5B,QAAQ,EAER,SAAS,EACT,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,eAAe,EAIf,QAAQ,EACR,WAAW,EAAE,YAAY,GAC1B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,yBAAyB,EACzB,eAAe,GAGhB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAOpG,MAAM,OAAO,aACX,SAAQ,iBAAoB;IAiB5B,YACU,MAAqB,EACrB,MAAc,EACd,sBAAiD,EACjD,QAAkB,EAClB,EAAqB,EACrB,WAAwB,EACxB,eAAgC,EAChC,gBAA8C,EAC9C,YAA0B,EAC1B,UAAsB,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CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAC5D,CAAC,OAAO;YACX,CAAC,CAAC,IAAI,CAAC;QAEX,UAAU,CAAC,GAAG,EAAE;YACd,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;gBAClC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;aACtC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;;;YAhTF,SAAS,SAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,ibAAoC;;aAErC;;;;;;;;;;YAbQ,UAAU;YArBV,MAAM;YAKb,sBAAsB;YAXtB,QAAQ;YAHR,iBAAiB;YAoBjB,WAAW;YALX,eAAe;YAsBR,yBAAyB;YAjBnB,YAAY;YAlBP,UAAU;YA6BrB,cAAc;YAlBrB,WAAW;;;;qBA8CV,SAAS,SAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE","sourcesContent":["import {\n ChangeDetectorRef,\n Component,\n ComponentFactory, ElementRef,\n Injector,\n OnInit,\n ViewChild,\n ViewContainerRef,\n} from \"@angular/core\";\nimport { map, tap } from \"rxjs/operators\";\nimport { Router } from \"@angular/router\";\nimport { Observable } from \"rxjs\";\n\nimport {\n AuthService,\n DynamicComponentLoader,\n HardwareService,\n IIconButtonOptions,\n IListOptions,\n IPageOptions,\n ListMode,\n MenuService, StyleService,\n} from \"@smartsoft001/angular\";\nimport { IEntity } from \"@smartsoft001/domain-core\";\nimport {\n getModelFieldsWithOptions,\n getModelOptions,\n IFieldEditMetadata,\n IFieldListMetadata,\n} from \"@smartsoft001/models\";\n\nimport { CrudFacade } from \"../../+state/crud.facade\";\nimport { CrudFullConfig } from \"../../crud.config\";\nimport { ICrudFilter } from \"../../models/interfaces\";\nimport { ExportComponent } from \"../../components/export/export.component\";\nimport { PageBaseComponent } from \"../base/base.component\";\nimport { FiltersComponent } from \"../../components/filters/filters.component\";\nimport { MultiselectComponent } from \"../../components/multiselect/multiselect.component\";\nimport { CrudListPaginationFactory } from \"../../factories/list-pagination/list-pagination.factory\";\n\n@Component({\n selector: \"smart-crud-list-page\",\n templateUrl: \"./list.component.html\",\n styleUrls: [\"./list.component.scss\"],\n})\nexport class ListComponent<T extends IEntity<string>>\n extends PageBaseComponent<T>\n implements OnInit\n{\n pageOptions: IPageOptions;\n listOptions: IListOptions<T>;\n filter: ICrudFilter;\n links: { next; prev };\n\n filter$: Observable<ICrudFilter> = this.facade.filter$.pipe(\n tap((filter) => {\n this.filter = filter;\n })\n );\n\n @ViewChild(\"topTpl\", { read: ViewContainerRef, static: false })\n topTpl: ViewContainerRef;\n\n constructor(\n private facade: CrudFacade<T>,\n private router: Router,\n private dynamicComponentLoader: DynamicComponentLoader<T>,\n private injector: Injector,\n private cd: ChangeDetectorRef,\n private menuService: MenuService,\n private hardwareService: HardwareService,\n private paginationFacade: CrudListPaginationFactory<T>,\n private styleService: StyleService,\n private elementRef: ElementRef,\n public config: CrudFullConfig<T>,\n authService: AuthService\n ) {\n super(authService, config);\n\n this.facade.links$.pipe(this.takeUntilDestroy).subscribe((links) => {\n this.links = links;\n });\n }\n\n async ngOnInit(): Promise<void> {\n await super.ngOnInit();\n\n this.facade.read({\n limit: this.config.pagination ? this.config.pagination.limit : null,\n offset: this.config.pagination ? 0 : null,\n sortBy: this.config.sort ? this.config.sort[\"default\"] : null,\n sortDesc: this.config.sort ? this.config.sort[\"defaultDesc\"] : null,\n });\n\n const endButtons = this.getEndButtons();\n\n this.pageOptions = {\n title: this.config.title,\n search: this.config.search\n ? {\n text$: this.filter$.pipe(map((f) => (f ? f.searchText : null))),\n set: (txt) => {\n if (txt !== this.filter.searchText)\n this.facade.read({\n ...this.filter,\n searchText: txt,\n offset: 0,\n });\n },\n }\n : null,\n endButtons: endButtons,\n };\n\n const compiledComponents =\n await this.dynamicComponentLoader.getComponentsWithFactories({\n components: [\n ...(this.config.details &&\n this.config.details[\"components\"] &&\n this.config.details[\"components\"].top\n ? [this.config.details[\"components\"].top]\n : []),\n ...(this.config.details &&\n this.config.details[\"components\"] &&\n this.config.details[\"components\"].bottom\n ? [this.config.details[\"components\"].bottom]\n : []),\n ...(this.config.list &&\n this.config.list[\"components\"] &&\n this.config.list[\"components\"].top\n ? [this.config.list[\"components\"].top]\n : []),\n ],\n });\n\n this.listOptions = {\n provider: {\n getData: (filter): void => {\n const global = {\n ...this.filter,\n ...filter,\n };\n this.facade.read(global);\n },\n onChangeMultiSelected: async (list) => {\n if (list.length && !this.menuService.openedEnd) {\n await this.menuService.openEnd({\n injector: this.injector,\n component: MultiselectComponent,\n });\n } else if (!list.length && this.menuService.openedEnd) {\n await this.menuService.closeEnd();\n }\n\n this.facade.multiSelect(list);\n },\n list$: this.facade.list$,\n loading$: this.facade.loaded$.pipe(map((l) => !l)),\n },\n cellPipe: this.config.list ? this.config.list.cellPipe : null,\n mode: this.config.list?.mode,\n type: this.config.type,\n details: this.config.details\n ? {\n provider: {\n getData: (id) => {\n this.facade.select(id);\n },\n clearData: () => {\n this.facade.unselect();\n },\n item$: this.facade.selected$,\n loading$: this.facade.loaded$.pipe(map((l) => !l)),\n },\n componentFactories: {\n top:\n this.config.details &&\n this.config.details[\"components\"] &&\n this.config.details[\"components\"].top\n ? compiledComponents.find(\n (cc) =>\n cc.component === this.config.details[\"components\"].top\n ).factory\n : null,\n bottom:\n this.config.details &&\n this.config.details[\"components\"] &&\n this.config.details[\"components\"].bottom\n ? compiledComponents.find(\n (cc) =>\n cc.component ===\n this.config.details[\"components\"].bottom\n ).factory\n : null,\n },\n }\n : null,\n item:\n this.config.edit || this.config.details\n ? {\n options: {\n routingPrefix: \"/\" + this.router.routerState.snapshot.url + \"/\",\n edit: this.config.edit,\n },\n }\n : null,\n remove: this.config.remove\n ? {\n provider: {\n invoke: (id) => this.facade.delete(id),\n },\n }\n : null,\n pagination: await this.paginationFacade.create({\n limit: this.config.pagination.limit,\n provider: {\n getFilter: () => this.filter,\n getLinks: () => this.links,\n },\n }),\n sort: this.config.sort,\n };\n\n this.cd.detectChanges();\n\n this.initCloseMenu();\n this.initTopComponent(compiledComponents);\n }\n\n private initCloseMenu() {\n this.router.events.pipe(this.takeUntilDestroy).subscribe(async () => {\n await this.clear();\n });\n }\n\n private async clear() {\n await this.menuService.closeEnd();\n\n this.listOptions = {\n ...this.listOptions,\n select: null,\n };\n\n this.facade.multiSelect([]);\n }\n\n private getEndButtons(): Array<IIconButtonOptions> {\n const fieldsWithOptions = getModelFieldsWithOptions(new this.config.type());\n const modelOptions = getModelOptions(this.config.type);\n\n const showFilters =\n fieldsWithOptions.some(\n (x) => (x.options?.list as IFieldListMetadata)?.filter\n ) || modelOptions?.filters?.length;\n\n const showMultiEdit =\n this.config.edit &&\n fieldsWithOptions.some(\n (x) => (x.options?.update as IFieldEditMetadata)?.multi\n ) &&\n !this.hardwareService.isMobile &&\n (!this.config?.list?.mode ||\n this.config?.list?.mode === ListMode.desktop);\n\n return [\n ...(showMultiEdit\n ? [\n {\n icon: \"checkbox-outline\",\n text: \"multi\",\n handler: async () => {\n this.listOptions = {\n ...this.listOptions,\n select: this.listOptions.select === \"multi\" ? null : \"multi\",\n };\n this.facade.multiSelect([]);\n if (this.menuService.openedEnd)\n await this.menuService.closeEnd();\n this.cd.detectChanges();\n },\n },\n ]\n : []),\n ...(showFilters\n ? [\n {\n icon: \"filter-outline\",\n text: \"filters\",\n handler: async () => {\n await this.menuService.openEnd({\n injector: this.injector,\n component: FiltersComponent,\n });\n },\n },\n ]\n : []),\n ...(this.config.add\n ? [\n {\n icon: \"add\",\n text: \"add\",\n handler: () => {\n this.router.navigate([\n \"/\" + this.router.routerState.snapshot.url + \"/add\",\n ]);\n },\n },\n ]\n : []),\n ...(this.config.export\n ? [\n {\n text: \"export\",\n icon: \"download-outline\",\n type: \"popover\" as \"popover\",\n component: ExportComponent,\n },\n ]\n : []),\n ...(this.config.buttons ? this.config.buttons : []),\n ];\n }\n\n private initTopComponent(\n compiledComponents: {\n component: any;\n factory: ComponentFactory<any>;\n }[]\n ) {\n const factory =\n this.config.list &&\n this.config.list[\"components\"] &&\n this.config.list[\"components\"].top\n ? compiledComponents.find(\n (cc) => cc.component === this.config.list[\"components\"].top\n ).factory\n : null;\n\n setTimeout(() => {\n if (factory && !this.topTpl.get(0)) {\n this.topTpl.createComponent(factory);\n }\n });\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ListComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../base/base.component","name":"PageBaseComponent","line":46,"character":10},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":40,"character":1},"arguments":[{"selector":"smart-crud-list-page","template":"<smart-page [options]=\"pageOptions\" *ngIf=\"filter$ | async\">\n <div #topTpl></div>\n <smart-crud-filters-config></smart-crud-filters-config>\n <smart-list *ngIf=\"listOptions\" [hidden]=\"config.list?.groups\" [options]=\"listOptions\"></smart-list>\n <smart-crud-group *ngIf=\"config.list?.groups\" [groups]=\"config.list?.groups\" [listOptions]=\"listOptions\">\n </smart-crud-group>\n</smart-page>\n","styles":[""]}]}],"members":{"topTpl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":60,"character":3},"arguments":["topTpl",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":60,"character":31},"static":false}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../../+state/crud.facade","name":"CrudFacade","line":64,"character":20,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":64,"character":31,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":65,"character":20},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"DynamicComponentLoader","line":66,"character":36,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":66,"character":59,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":67,"character":22},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":68,"character":16},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"MenuService","line":69,"character":25},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"HardwareService","line":70,"character":29},{"__symbolic":"reference","module":"../../factories/list-pagination/list-pagination.factory","name":"CrudListPaginationFactory","line":71,"character":30,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":71,"character":56,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"StyleService","line":72,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":73,"character":24},{"__symbolic":"reference","module":"../../crud.config","name":"CrudFullConfig","line":74,"character":19,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":74,"character":34,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@smartsoft001/angular","name":"AuthService","line":75,"character":17}]}],"ngOnInit":[{"__symbolic":"method"}],"initCloseMenu":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"getEndButtons":[{"__symbolic":"method"}],"initTopComponent":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pages/list/list.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.component.scss.shim.ngstyle.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pages/list/list.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-options.pipe.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pipes/form-options/form-options.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAsB,MAAM,eAAe,CAAC;AAK1E,OAAO,EACL,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,kEAAkE,CAAC;AAK1E,MAAM,OAAO,eAAe;IAE1B,YAGU,0BAA2D;QAA3D,+BAA0B,GAA1B,0BAA0B,CAAiC;IAClE,CAAC;IAEJ,SAAS,CACP,IAAO,EACP,IAAY,EACZ,IAAS,EACT,cAAmE,EACnE,eAAkE;QAElE,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QAEhC,IAAI,aAAa,GAAG,EAAE,CAAC;QAEvB,IAAI,IAAI,IAAI,IAAI,CAAC,0BAA0B,EAAE;YAC3C,aAAa,GAAG,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAC3D;QAED,IAAI,IAAI,KAAK,QAAQ,EAAE;YACrB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,aAAa;gBACb,eAAe;gBACf,cAAc;gBACd,KAAK,EAAE,IAAI,IAAI,EAAE;aAClB,CAAC;SACH;aAAM;YACL,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;YAEzB,IAAI,IAAI,EAAE;gBACR,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;oBAChC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;gBACzB,CAAC,CAAC,CAAC;aACJ;YAED,OAAO;gBACL,IAAI,EAAE,IAAI;gBACV,cAAc;gBACd,aAAa,EAAE,aAAa;gBAC5B,eAAe;gBACf,KAAK,EAAE,KAAK;aACb,CAAC;SACH;IACH,CAAC;;;;YAnDF,IAAI,SAAC;gBACJ,IAAI,EAAE,kBAAkB;aACzB;;;;;;;;;;YALC,+BAA+B,uBAS5B,QAAQ,YACR,MAAM,SAAC,iCAAiC","sourcesContent":["import {Inject, Optional, Pipe, PipeTransform, Type} from \"@angular/core\";\n\nimport { IEntity } from \"@smartsoft001/domain-core\";\nimport {IFormOptions, InputBaseComponent} from \"@smartsoft001/angular\";\n\nimport {\n CRUD_MODEL_POSSIBILITIES_PROVIDER,\n ICrudModelPossibilitiesProvider,\n} from \"../../providers/model-possibilities/model-possibilities.provider\";\n\n@Pipe({\n name: \"smartFormOptions\",\n})\nexport class FormOptionsPipe<T extends IEntity<string>>\n implements PipeTransform {\n constructor(\n @Optional()\n @Inject(CRUD_MODEL_POSSIBILITIES_PROVIDER)\n private modelPossibilitiesProvider: ICrudModelPossibilitiesProvider\n ) {}\n\n transform(\n item: T,\n mode: string,\n type: any,\n uniqueProvider?: (values: Record<keyof T, any>) => Promise<boolean>,\n inputComponents?: { [key: string]: Type<InputBaseComponent<any>> }\n ): IFormOptions<T> {\n if (!mode || !type) return null;\n\n let possibilities = {};\n\n if (type && this.modelPossibilitiesProvider) {\n possibilities = this.modelPossibilitiesProvider.get(type);\n }\n\n if (mode === \"create\") {\n return {\n mode: \"create\",\n possibilities,\n inputComponents,\n uniqueProvider,\n model: new type(),\n };\n } else {\n const model = new type();\n\n if (item) {\n Object.keys(item).forEach((key) => {\n model[key] = item[key];\n });\n }\n\n return {\n mode: mode,\n uniqueProvider,\n possibilities: possibilities,\n inputComponents,\n model: model,\n };\n }\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"FormOptionsPipe":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":10,"character":1},"arguments":[{"name":"smartFormOptions"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":16,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":17,"character":5},"arguments":[{"__symbolic":"reference","module":"../../providers/model-possibilities/model-possibilities.provider","name":"CRUD_MODEL_POSSIBILITIES_PROVIDER","line":17,"character":12}]}]],"parameters":[{"__symbolic":"reference","module":"../../providers/model-possibilities/model-possibilities.provider","name":"ICrudModelPossibilitiesProvider","line":18,"character":40}]}],"transform":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-options.pipe.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pipes/form-options/form-options.pipe.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kCAAkC,CAAC","sourcesContent":["export * from \"./pipes.module\";\nexport * from \"./form-options/form-options.pipe\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./pipes.module"},{"from":"./form-options/form-options.pipe"}]}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pipes.module.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/pipes/pipes.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AAUjE,MAAM,OAAO,eAAe;;;;YAR3B,QAAQ,SAAC;gBACN,YAAY,EAAE;oBACV,eAAe;iBAClB;gBACD,OAAO,EAAE;oBACL,eAAe;iBAClB;aACJ","sourcesContent":["import {NgModule} from \"@angular/core\";\n\nimport {FormOptionsPipe} from \"./form-options/form-options.pipe\";\n\n@NgModule({\n declarations: [\n FormOptionsPipe\n ],\n exports: [\n FormOptionsPipe\n ]\n})\nexport class CrudPipesModule {\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CrudPipesModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./form-options/form-options.pipe","name":"FormOptionsPipe","line":6,"character":8}],"exports":[{"__symbolic":"reference","module":"./form-options/form-options.pipe","name":"FormOptionsPipe","line":9,"character":8}]}]}]}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pipes.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/pipes/pipes.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './pipes.module';\nimport * as i2 from './form-options/form-options.pipe';\nexport const CrudPipesModuleNgFactory:i0.NgModuleFactory<i1.CrudPipesModule> = (null as any);\nvar _decl0_1:i2.FormOptionsPipe<any> = (<any>(null as any));\nvar _decl0_2:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_3:i0.ElementRef<any> = (<any>(null as any));\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model-possibilities.provider.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/providers/model-possibilities/model-possibilities.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C;;GAEG;AACH,MAAM,OAAgB,+BAA+B;CAEpD;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,IAAI,cAAc,CAEjE,mCAAmC,CAAC,CAAC","sourcesContent":["import { InjectionToken } from \"@angular/core\";\nimport {Observable} from \"rxjs\";\n\n/**\n * @deprecated - please, use IModelPossibilitiesProvider from @smartsoft001/angular\n */\nexport abstract class ICrudModelPossibilitiesProvider {\n abstract get<T>(type: any): { [key: string]: Observable<{ id: any; text: string }[]> };\n}\n\n/**\n * @deprecated - please, use MODEL_POSSIBILITIES_PROVIDER from @smartsoft001/angular\n */\nexport const CRUD_MODEL_POSSIBILITIES_PROVIDER = new InjectionToken<\n ICrudModelPossibilitiesProvider\n>(\"CRUD_MODEL_POSSIBILITIES_PROVIDER\");\n"]}
|
package/esm2015/lib/providers/model-possibilities/model-possibilities.provider.metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ICrudModelPossibilitiesProvider":{"__symbolic":"class","members":{"get":[{"__symbolic":"method"}]}},"CRUD_MODEL_POSSIBILITIES_PROVIDER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":53},"arguments":["CRUD_MODEL_POSSIBILITIES_PROVIDER"]}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crud.service.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/services/crud/crud.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAa,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAKrC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGzD,MAAM,OAAO,WAAW;IAMtB,YACY,MAAqB,EACrB,IAAgB,EACJ,MAAwB;QAFpC,WAAM,GAAN,MAAM,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AE,CAAC,CAAC;IAC/D,CAAC;IAES,QAAQ,CAAC,MAAmB;QACpC,IAAI,KAAK,GAAG,EAAE,CAAC;QAEf,IAAI,MAAM,IAAI,MAAM,CAAC,UAAU,EAAE;YAC/B,KAAK,IAAI,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;SAC1C;QAED,IAAI,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE;YAC1B,KAAK,IAAI,UAAU,MAAM,CAAC,KAAK,WAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAClC,EAAE,CAAC;SACJ;QAED,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE;YAC3B,KAAK,IAAI,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;SAClE;QAED,IAAI,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE;YAC1B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBACzB,KAAK,IAAI,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC;YAC1C,CAAC,CAAC,CAAC;SACJ;QAED,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnD,CAAC;;;;YAtJF,UAAU;;;;;;;;;;YAJF,UAAU;YANV,UAAU;YAQV,aAAa,uBAYjB,QAAQ","sourcesContent":["import {Injectable, Optional} from \"@angular/core\";\nimport {forkJoin, Observable} from \"rxjs\";\nimport { HttpClient } from \"@angular/common/http\";\nimport { map } from \"rxjs/operators\";\n\nimport { IEntity } from \"@smartsoft001/domain-core\";\nimport { ItemChangedData } from \"@smartsoft001/crud-shell-dtos\";\n\nimport { CrudConfig } from \"../../crud.config\";\nimport { ICrudCreateManyOptions, ICrudFilter } from \"../../models/interfaces\";\nimport { SocketService } from \"../socket/socket.service\";\n\n@Injectable()\nexport class CrudService<T extends IEntity<string>> {\n protected _formatMap = {\n csv: \"text/csv\",\n xlsx: \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n };\n\n constructor(\n protected config: CrudConfig<T>,\n protected http: HttpClient,\n @Optional() protected socket: SocketService<T>\n ) {}\n\n // changes(criteria: { id?: string } = {}): Observable<ItemChangedData> {\n // this.socket.emit(\"changes\", criteria);\n // return this.socket.fromEvent(\"changes\");\n // }\n\n // TODO : Location is null\n create(item: T): Observable<string> {\n return this.http\n .post<void>(this.config.apiUrl, item, { observe: \"response\" })\n .pipe(\n map((response) => {\n const location = response.headers[\"Location\"];\n if (!location) return null;\n const array = location.split(\"/\");\n return array[array.length - 1];\n })\n );\n }\n\n createMany(\n items: Array<T>,\n options: ICrudCreateManyOptions\n ): Observable<void> {\n return this.http.post<void>(\n this.config.apiUrl + \"/bulk?mode=\" + options.mode,\n items\n );\n }\n\n getById(id: string): Observable<T> {\n return this.http.get<T>(this.config.apiUrl + \"/\" + id);\n }\n\n getList(\n filter: ICrudFilter = null\n ): Observable<{ data: T[]; totalCount: number; links }> {\n return this.http.get<{ data: T[]; totalCount: number; links }>(\n this.config.apiUrl + this.getQuery(filter)\n );\n }\n\n exportList(filter: ICrudFilter = null, format): Observable<void> {\n if (!format) {\n format = \"csv\";\n }\n\n if (format === \"xlsx\") {\n return this.http\n .get(this.config.apiUrl + this.getQuery(filter), {\n headers: {\n \"Content-Type\": this._formatMap[format],\n },\n observe: \"response\",\n reportProgress: false,\n responseType: \"blob\",\n })\n .pipe(\n map((res) => {\n const downloadLink = document.createElement(\"a\");\n const blob = res.body;\n\n const url = URL.createObjectURL(blob);\n downloadLink.href = url;\n downloadLink.download = \"data.\" + format;\n\n document.body.appendChild(downloadLink);\n downloadLink.click();\n document.body.removeChild(downloadLink);\n })\n );\n }\n\n return this.http\n .get<string>(this.config.apiUrl + this.getQuery(filter), {\n headers: {\n \"Content-Type\": this._formatMap[format],\n },\n responseType: \"text\" as \"json\",\n })\n .pipe(\n map((res) => {\n const downloadLink = document.createElement(\"a\");\n const blob = new Blob([\"\\ufeff\", res]);\n\n const url = URL.createObjectURL(blob);\n downloadLink.href = url;\n downloadLink.download = \"data.\" + format;\n\n document.body.appendChild(downloadLink);\n downloadLink.click();\n document.body.removeChild(downloadLink);\n })\n );\n }\n\n update(item: T): Observable<void> {\n return this.http.put<void>(this.config.apiUrl + \"/\" + item.id, item);\n }\n\n updatePartial(item: Partial<T> & { id: string }): Observable<void> {\n return this.http.patch<void>(this.config.apiUrl + \"/\" + item.id, item);\n }\n\n updatePartialMany(items: (Partial<T> & { id: string })[]): Observable<any> {\n return forkJoin(items.map(item => {\n return this.updatePartial(item);\n }));\n }\n\n delete(id: string): Observable<void> {\n return this.http.delete<void>(this.config.apiUrl + \"/\" + id);\n }\n\n protected getQuery(filter: ICrudFilter): string {\n let query = \"\";\n\n if (filter && filter.searchText) {\n query += \"&$search=\" + filter.searchText;\n }\n\n if (filter && filter.limit) {\n query += `&limit=${filter.limit}&offset=${\n filter.offset ? filter.offset : 0\n }`;\n }\n\n if (filter && filter.sortBy) {\n query += `&sort=${(filter.sortDesc ? \"-\" : \"\") + filter.sortBy}`;\n }\n\n if (filter && filter.query) {\n filter.query.forEach((q) => {\n query += \"&\" + q.key + q.type + q.value;\n });\n }\n\n return query ? \"?\" + query.replace(\"&\", \"\") : \"\";\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CrudService":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":22,"character":5}}]],"parameters":[{"__symbolic":"reference","module":"../../crud.config","name":"CrudConfig","line":20,"character":22,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":20,"character":33,"context":{"typeName":"T"}}]},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":21,"character":20},{"__symbolic":"reference","module":"../socket/socket.service","name":"SocketService","line":22,"character":34,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":22,"character":48,"context":{"typeName":"T"}}]}]}],"create":[{"__symbolic":"method"}],"createMany":[{"__symbolic":"method"}],"getById":[{"__symbolic":"method"}],"getList":[{"__symbolic":"method"}],"exportList":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"updatePartial":[{"__symbolic":"method"}],"updatePartialMany":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"getQuery":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crud.service.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/services/crud/crud.service.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"socket.service.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/services/socket/socket.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAKzC,MAAM,OAAO,aAAa;;;;YADzB,UAAU;;AAeX,MAAM,OAAO,gBAAgB;;;;YAD5B,UAAU","sourcesContent":["import {Injectable} from \"@angular/core\";\n\nimport {CrudConfig} from \"../../crud.config\";\n\n@Injectable()\nexport class SocketService<T>// extends Socket\n{\n // constructor(private crudConfig: CrudConfig<T>) {\n // super( {\n // url: crudConfig.apiUrl,\n // options: {\n // transports: [\"websocket\"],\n // path: new URL(crudConfig.apiUrl).pathname + '/_socket/'\n // }\n // });\n // }\n}\n\n@Injectable()\nexport class NotSocketService<T> { }\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"SocketService":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}]},"NotSocketService":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":18,"character":1}}]}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"socket.service.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/services/socket/socket.service.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"smartsoft001-crud-shell-angular.js","sourceRoot":"","sources":["../../../../../../libs/crud/shell/angular/src/smartsoft001-crud-shell-angular.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC;AAExB,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAC,eAAe,IAAI,EAAE,EAAC,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,eAAe,IAAI,EAAE,EAAC,mBAAmB,IAAI,EAAE,EAAC,2BAA2B,IAAI,EAAE,EAAC,mBAAmB,IAAI,EAAE,EAAC,oBAAoB,IAAI,EAAE,EAAC,mBAAmB,IAAI,EAAE,EAAC,MAAM,yBAAyB,CAAC;AACpO,OAAO,EAAC,sBAAsB,IAAI,EAAE,EAAC,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAC,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAC,cAAc,IAAI,EAAE,EAAC,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,oDAAoD,CAAC;AAC9F,OAAO,EAAC,cAAc,IAAI,EAAE,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAC,iBAAiB,IAAI,EAAE,EAAC,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAC,aAAa,IAAI,EAAE,EAAC,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAC,aAAa,IAAI,EAAE,EAAC,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAC,eAAe,IAAI,EAAE,EAAC,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAC,eAAe,IAAI,EAAE,EAAC,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAC,aAAa,IAAI,EAAE,EAAC,MAAM,sCAAsC,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {CrudComponentsModule as ɵc} from './lib/components/components.module';\nexport {ExportComponent as ɵd} from './lib/components/export/export.component';\nexport {FilterCheckComponent as ɵm,FilterComponent as ɵe,FilterDateComponent as ɵh,FilterDateWithEditComponent as ɵi,FilterFlagComponent as ɵl,FilterRadioComponent as ɵj,FilterTextComponent as ɵf} from './lib/components/filter';\nexport {FiltersConfigComponent as ɵg} from './lib/components/filters-config/filters-config.component';\nexport {FiltersComponent as ɵk} from './lib/components/filters/filters.component';\nexport {GroupComponent as ɵo} from './lib/components/group/group.component';\nexport {MultiselectComponent as ɵn} from './lib/components/multiselect/multiselect.component';\nexport {CrudFullModule as ɵr} from './lib/crud-full.module';\nexport {PageBaseComponent as ɵt} from './lib/pages/base/base.component';\nexport {ItemComponent as ɵs} from './lib/pages/item/item.component';\nexport {ListComponent as ɵu} from './lib/pages/list/list.component';\nexport {FormOptionsPipe as ɵb} from './lib/pipes/form-options/form-options.pipe';\nexport {CrudPipesModule as ɵa} from './lib/pipes/pipes.module';\nexport {NotSocketService as ɵq,SocketService as ɵp} from './lib/services/socket/socket.service';"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./index"},{"from":"./lib/components/components.module","export":[{"name":"CrudComponentsModule","as":"ɵc"}]},{"from":"./lib/components/export/export.component","export":[{"name":"ExportComponent","as":"ɵd"}]},{"from":"./lib/components/filter","export":[{"name":"FilterCheckComponent","as":"ɵm"},{"name":"FilterComponent","as":"ɵe"},{"name":"FilterDateComponent","as":"ɵh"},{"name":"FilterDateWithEditComponent","as":"ɵi"},{"name":"FilterFlagComponent","as":"ɵl"},{"name":"FilterRadioComponent","as":"ɵj"},{"name":"FilterTextComponent","as":"ɵf"}]},{"from":"./lib/components/filters-config/filters-config.component","export":[{"name":"FiltersConfigComponent","as":"ɵg"}]},{"from":"./lib/components/filters/filters.component","export":[{"name":"FiltersComponent","as":"ɵk"}]},{"from":"./lib/components/group/group.component","export":[{"name":"GroupComponent","as":"ɵo"}]},{"from":"./lib/components/multiselect/multiselect.component","export":[{"name":"MultiselectComponent","as":"ɵn"}]},{"from":"./lib/crud-full.module","export":[{"name":"CrudFullModule","as":"ɵr"}]},{"from":"./lib/pages/base/base.component","export":[{"name":"PageBaseComponent","as":"ɵt"}]},{"from":"./lib/pages/item/item.component","export":[{"name":"ItemComponent","as":"ɵs"}]},{"from":"./lib/pages/list/list.component","export":[{"name":"ListComponent","as":"ɵu"}]},{"from":"./lib/pipes/form-options/form-options.pipe","export":[{"name":"FormOptionsPipe","as":"ɵb"}]},{"from":"./lib/pipes/pipes.module","export":[{"name":"CrudPipesModule","as":"ɵa"}]},{"from":"./lib/services/socket/socket.service","export":[{"name":"NotSocketService","as":"ɵq"},{"name":"SocketService","as":"ɵp"}]}]}]
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AuthService, BaseComponent } from "@smartsoft001/angular";
|
|
2
|
-
import { OnInit } from "@angular/core";
|
|
3
|
-
import { CrudFullConfig } from "../../crud.config";
|
|
4
|
-
export declare abstract class PageBaseComponent<T> extends BaseComponent implements OnInit {
|
|
5
|
-
protected authService: AuthService;
|
|
6
|
-
config: CrudFullConfig<T>;
|
|
7
|
-
protected constructor(authService: AuthService, config: CrudFullConfig<T>);
|
|
8
|
-
ngOnInit(): Promise<void>;
|
|
9
|
-
private checkPermissions;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=base.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/pages/base/base.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAY,MAAM,EAAC,MAAM,eAAe,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,8BACsB,iBAAiB,CAAC,CAAC,CAAE,SAAQ,aACjD,YAAW,MAAM;IAEf,SAAS,CAAC,WAAW,EAAE,WAAW;IAC3B,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IAFlC,SAAS,aACG,WAAW,EAAE,WAAW,EAC3B,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IAK5B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,OAAO,CAAC,gBAAgB;CA8BzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item.component.scss.shim.ngstyle.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/pages/item/item.component.scss.shim.ngstyle.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.component.scss.shim.ngstyle.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/pages/list/list.component.scss.shim.ngstyle.ts"],"names":[],"mappings":""}
|