@smartsoft001/crud-shell-angular 1.2.90 → 2.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/addons.js +1 -0
- package/.storybook/config.js +5 -0
- package/.storybook/tsconfig.json +8 -0
- package/.storybook/webpack.config.js +7 -0
- package/jest.config.ts +38 -0
- package/ng-package.json +7 -0
- package/package.json +12 -23
- package/project.json +49 -0
- package/src/index.ts +13 -0
- package/src/lib/+state/crud.facade.ts +82 -0
- package/src/lib/+state/crud.feature.methods.ts +258 -0
- package/src/lib/+state/crud.feature.store.ts +77 -0
- package/src/lib/components/components.module.ts +58 -0
- package/src/lib/components/export/export.component.ts +69 -0
- package/src/lib/components/filter/base/base.component.ts +175 -0
- package/src/lib/components/filter/check/check.component.scss +25 -0
- package/src/lib/components/filter/check/check.component.ts +72 -0
- package/src/lib/components/filter/date/date.component.html +30 -0
- package/src/lib/components/filter/date/date.component.ts +70 -0
- package/src/lib/components/filter/date-time/date-time.component.html +62 -0
- package/src/lib/components/filter/date-time/date-time.component.ts +56 -0
- package/src/lib/components/filter/date-with-edit/date-with-edit.component.html +109 -0
- package/src/lib/components/filter/date-with-edit/date-with-edit.component.ts +70 -0
- package/src/lib/components/filter/filter.component.html +52 -0
- package/src/lib/components/filter/filter.component.ts +34 -0
- package/src/lib/components/filter/flag/flag.component.ts +55 -0
- package/src/lib/components/filter/index.ts +9 -0
- package/src/lib/components/filter/int/int.component.html +74 -0
- package/src/lib/components/filter/int/int.component.ts +57 -0
- package/src/lib/components/filter/radio/radio.component.ts +74 -0
- package/src/lib/components/filter/text/text.component.ts +46 -0
- package/src/lib/components/filters/filters.component.scss +150 -0
- package/src/lib/components/filters/filters.component.ts +157 -0
- package/src/lib/components/filters-config/filters-config.component.ts +69 -0
- package/src/lib/components/group/group.component.ts +93 -0
- package/src/lib/components/index.ts +7 -0
- package/src/lib/components/multiselect/multiselect.component.html +41 -0
- package/src/lib/components/multiselect/multiselect.component.scss +125 -0
- package/src/lib/components/multiselect/multiselect.component.ts +104 -0
- package/src/lib/crud-full.module.ts +51 -0
- package/src/lib/crud.config.ts +79 -0
- package/src/lib/crud.module.ts +72 -0
- package/src/lib/factories/list-pagination/list-pagination.factory.ts +77 -0
- package/src/lib/models/index.ts +1 -0
- package/src/lib/models/interfaces.ts +34 -0
- package/src/lib/pages/index.ts +6 -0
- package/src/lib/pages/item/base/base.component.ts +54 -0
- package/src/lib/pages/item/item.component.ts +513 -0
- package/src/lib/pages/item/standard/standard.component.scss +0 -0
- package/src/lib/pages/item/standard/standard.component.ts +50 -0
- package/src/lib/pages/list/base/base.component.ts +29 -0
- package/src/lib/pages/list/list.component.stories.ts +77 -0
- package/src/lib/pages/list/list.component.ts +438 -0
- package/src/lib/pages/list/standard/standard.component.ts +42 -0
- package/src/lib/pipes/form-options/form-options.pipe.ts +61 -0
- package/src/lib/pipes/index.ts +2 -0
- package/src/lib/pipes/pipes.module.ts +9 -0
- package/src/lib/providers/model-possibilities/model-possibilities.provider.ts +19 -0
- package/src/lib/services/crud/crud.service.spec.ts +303 -0
- package/src/lib/services/crud/crud.service.ts +178 -0
- package/src/lib/services/list-group/list-group.service.spec.ts +87 -0
- package/src/lib/services/list-group/list-group.service.ts +65 -0
- package/src/lib/services/page/page.service.spec.ts +143 -0
- package/src/lib/services/page/page.service.ts +44 -0
- package/src/lib/services/search/search.service.spec.ts +134 -0
- package/src/lib/services/search/search.service.ts +42 -0
- package/test-setup.ts +0 -0
- package/tsconfig.json +13 -0
- package/tsconfig.lib.json +31 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +10 -0
- package/tslint.json +10 -0
- package/esm2022/index.mjs +0 -18
- package/esm2022/lib/+state/crud.actions.mjs +0 -224
- package/esm2022/lib/+state/crud.effects.mjs +0 -182
- package/esm2022/lib/+state/crud.facade.mjs +0 -91
- package/esm2022/lib/+state/crud.reducer.mjs +0 -214
- package/esm2022/lib/+state/crud.selectors.mjs +0 -11
- package/esm2022/lib/components/components.module.mjs +0 -110
- package/esm2022/lib/components/export/export.component.mjs +0 -47
- package/esm2022/lib/components/filter/base/base.component.mjs +0 -152
- package/esm2022/lib/components/filter/check/check.component.mjs +0 -36
- package/esm2022/lib/components/filter/date/date.component.mjs +0 -47
- package/esm2022/lib/components/filter/date-time/date-time.component.mjs +0 -43
- package/esm2022/lib/components/filter/date-with-edit/date-with-edit.component.mjs +0 -49
- package/esm2022/lib/components/filter/filter.component.mjs +0 -30
- package/esm2022/lib/components/filter/flag/flag.component.mjs +0 -16
- package/esm2022/lib/components/filter/index.mjs +0 -10
- package/esm2022/lib/components/filter/int/int.component.mjs +0 -38
- package/esm2022/lib/components/filter/radio/radio.component.mjs +0 -16
- package/esm2022/lib/components/filter/text/text.component.mjs +0 -16
- package/esm2022/lib/components/filters/filters.component.mjs +0 -111
- package/esm2022/lib/components/filters-config/filters-config.component.mjs +0 -37
- package/esm2022/lib/components/group/group.component.mjs +0 -54
- package/esm2022/lib/components/index.mjs +0 -8
- package/esm2022/lib/components/multiselect/multiselect.component.mjs +0 -71
- package/esm2022/lib/crud-full.module.mjs +0 -103
- package/esm2022/lib/crud.config.mjs +0 -17
- package/esm2022/lib/crud.module.mjs +0 -106
- package/esm2022/lib/factories/list-pagination/list-pagination.factory.mjs +0 -69
- package/esm2022/lib/models/index.mjs +0 -2
- package/esm2022/lib/models/interfaces.mjs +0 -2
- package/esm2022/lib/pages/index.mjs +0 -7
- package/esm2022/lib/pages/item/base/base.component.mjs +0 -44
- package/esm2022/lib/pages/item/item.component.mjs +0 -395
- package/esm2022/lib/pages/item/standard/standard.component.mjs +0 -15
- package/esm2022/lib/pages/list/base/base.component.mjs +0 -23
- package/esm2022/lib/pages/list/list.component.mjs +0 -355
- package/esm2022/lib/pages/list/standard/standard.component.mjs +0 -34
- package/esm2022/lib/pipes/form-options/form-options.pipe.mjs +0 -55
- package/esm2022/lib/pipes/index.mjs +0 -3
- package/esm2022/lib/pipes/pipes.module.mjs +0 -20
- package/esm2022/lib/providers/model-possibilities/model-possibilities.provider.mjs +0 -11
- package/esm2022/lib/services/crud/crud.service.mjs +0 -138
- package/esm2022/lib/services/list-group/list-group.service.mjs +0 -60
- package/esm2022/lib/services/page/page.service.mjs +0 -41
- package/esm2022/lib/services/search/search.service.mjs +0 -41
- package/esm2022/lib/services/socket/socket.service.mjs +0 -17
- package/esm2022/smartsoft001-crud-shell-angular.mjs +0 -5
- package/fesm2022/smartsoft001-crud-shell-angular.mjs +0 -2810
- package/fesm2022/smartsoft001-crud-shell-angular.mjs.map +0 -1
- package/index.d.ts +0 -18
- package/index.d.ts.map +0 -1
- package/lib/+state/crud.actions.d.ts +0 -152
- package/lib/+state/crud.actions.d.ts.map +0 -1
- package/lib/+state/crud.effects.d.ts +0 -18
- package/lib/+state/crud.effects.d.ts.map +0 -1
- package/lib/+state/crud.facade.d.ts +0 -44
- package/lib/+state/crud.facade.d.ts.map +0 -1
- package/lib/+state/crud.reducer.d.ts +0 -43
- package/lib/+state/crud.reducer.d.ts.map +0 -1
- package/lib/+state/crud.selectors.d.ts +0 -10
- package/lib/+state/crud.selectors.d.ts.map +0 -1
- package/lib/components/components.module.d.ts +0 -27
- package/lib/components/components.module.d.ts.map +0 -1
- package/lib/components/export/export.component.d.ts +0 -21
- package/lib/components/export/export.component.d.ts.map +0 -1
- package/lib/components/filter/base/base.component.d.ts +0 -39
- package/lib/components/filter/base/base.component.d.ts.map +0 -1
- package/lib/components/filter/check/check.component.d.ts +0 -19
- package/lib/components/filter/check/check.component.d.ts.map +0 -1
- package/lib/components/filter/date/date.component.d.ts +0 -16
- package/lib/components/filter/date/date.component.d.ts.map +0 -1
- package/lib/components/filter/date-time/date-time.component.d.ts +0 -15
- package/lib/components/filter/date-time/date-time.component.d.ts.map +0 -1
- package/lib/components/filter/date-with-edit/date-with-edit.component.d.ts +0 -17
- package/lib/components/filter/date-with-edit/date-with-edit.component.d.ts.map +0 -1
- package/lib/components/filter/filter.component.d.ts +0 -14
- package/lib/components/filter/filter.component.d.ts.map +0 -1
- package/lib/components/filter/flag/flag.component.d.ts +0 -8
- package/lib/components/filter/flag/flag.component.d.ts.map +0 -1
- package/lib/components/filter/index.d.ts +0 -10
- package/lib/components/filter/index.d.ts.map +0 -1
- package/lib/components/filter/int/int.component.d.ts +0 -15
- package/lib/components/filter/int/int.component.d.ts.map +0 -1
- package/lib/components/filter/radio/radio.component.d.ts +0 -8
- package/lib/components/filter/radio/radio.component.d.ts.map +0 -1
- package/lib/components/filter/text/text.component.d.ts +0 -8
- package/lib/components/filter/text/text.component.d.ts.map +0 -1
- package/lib/components/filters/filters.component.d.ts +0 -83
- package/lib/components/filters/filters.component.d.ts.map +0 -1
- package/lib/components/filters-config/filters-config.component.d.ts +0 -19
- package/lib/components/filters-config/filters-config.component.d.ts.map +0 -1
- package/lib/components/group/group.component.d.ts +0 -23
- package/lib/components/group/group.component.d.ts.map +0 -1
- package/lib/components/index.d.ts +0 -8
- package/lib/components/index.d.ts.map +0 -1
- package/lib/components/multiselect/multiselect.component.d.ts +0 -28
- package/lib/components/multiselect/multiselect.component.d.ts.map +0 -1
- package/lib/crud-full.module.d.ts +0 -28
- package/lib/crud-full.module.d.ts.map +0 -1
- package/lib/crud.config.d.ts +0 -65
- package/lib/crud.config.d.ts.map +0 -1
- package/lib/crud.module.d.ts +0 -34
- package/lib/crud.module.d.ts.map +0 -1
- package/lib/factories/list-pagination/list-pagination.factory.d.ts +0 -20
- package/lib/factories/list-pagination/list-pagination.factory.d.ts.map +0 -1
- package/lib/models/index.d.ts +0 -2
- package/lib/models/index.d.ts.map +0 -1
- package/lib/models/interfaces.d.ts +0 -30
- package/lib/models/interfaces.d.ts.map +0 -1
- package/lib/pages/index.d.ts +0 -7
- package/lib/pages/index.d.ts.map +0 -1
- package/lib/pages/item/base/base.component.d.ts +0 -25
- package/lib/pages/item/base/base.component.d.ts.map +0 -1
- package/lib/pages/item/item.component.d.ts +0 -70
- package/lib/pages/item/item.component.d.ts.map +0 -1
- package/lib/pages/item/standard/standard.component.d.ts +0 -8
- package/lib/pages/item/standard/standard.component.d.ts.map +0 -1
- package/lib/pages/list/base/base.component.d.ts +0 -15
- package/lib/pages/list/base/base.component.d.ts.map +0 -1
- package/lib/pages/list/list.component.d.ts +0 -54
- package/lib/pages/list/list.component.d.ts.map +0 -1
- package/lib/pages/list/standard/standard.component.d.ts +0 -14
- package/lib/pages/list/standard/standard.component.d.ts.map +0 -1
- package/lib/pipes/form-options/form-options.pipe.d.ts +0 -15
- package/lib/pipes/form-options/form-options.pipe.d.ts.map +0 -1
- package/lib/pipes/index.d.ts +0 -3
- package/lib/pipes/index.d.ts.map +0 -1
- package/lib/pipes/pipes.module.d.ts +0 -8
- package/lib/pipes/pipes.module.d.ts.map +0 -1
- package/lib/providers/model-possibilities/model-possibilities.provider.d.ts +0 -18
- package/lib/providers/model-possibilities/model-possibilities.provider.d.ts.map +0 -1
- package/lib/services/crud/crud.service.d.ts +0 -38
- package/lib/services/crud/crud.service.d.ts.map +0 -1
- package/lib/services/list-group/list-group.service.d.ts +0 -15
- package/lib/services/list-group/list-group.service.d.ts.map +0 -1
- package/lib/services/page/page.service.d.ts +0 -12
- package/lib/services/page/page.service.d.ts.map +0 -1
- package/lib/services/search/search.service.d.ts +0 -16
- package/lib/services/search/search.service.d.ts.map +0 -1
- package/lib/services/socket/socket.service.d.ts +0 -10
- package/lib/services/socket/socket.service.d.ts.map +0 -1
- package/smartsoft001-crud-shell-angular.d.ts.map +0 -1
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { MenuService, StyleService } from "@smartsoft001/angular";
|
|
4
|
-
import { IModelFilter } from "@smartsoft001/models";
|
|
5
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
6
|
-
import { ICrudFilter } from "../../models/interfaces";
|
|
7
|
-
import { CrudConfig } from "../../crud.config";
|
|
8
|
-
import { CrudFacade } from "../../+state/crud.facade";
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* This component is only to use in crud module
|
|
12
|
-
* @requires CrudModule
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* html: <smart-crud-filters></smart-crud-filters>
|
|
16
|
-
*
|
|
17
|
-
* use on the model:
|
|
18
|
-
* @Model({
|
|
19
|
-
titleKey: 'body',
|
|
20
|
-
filters: [
|
|
21
|
-
{
|
|
22
|
-
label: 'testNegation',
|
|
23
|
-
key: 'body',
|
|
24
|
-
type: '!=',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: 'fromDate',
|
|
28
|
-
key: 'createDate',
|
|
29
|
-
type: '<=',
|
|
30
|
-
fieldType: FieldType.dateWithEdit
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: 'select',
|
|
34
|
-
key: 'type',
|
|
35
|
-
type: '=',
|
|
36
|
-
fieldType: FieldType.radio,
|
|
37
|
-
possibilities$: of([
|
|
38
|
-
{
|
|
39
|
-
id: 1, text: 'Test 1'
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
id: 2, text: 'Test 2'
|
|
43
|
-
}
|
|
44
|
-
])
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
})
|
|
48
|
-
*
|
|
49
|
-
* use on the field (list.filter property):
|
|
50
|
-
* @Field({
|
|
51
|
-
create: modifyMetdata,
|
|
52
|
-
update: {
|
|
53
|
-
...modifyMetdata,
|
|
54
|
-
multi: true
|
|
55
|
-
},
|
|
56
|
-
type: FieldType.longText,
|
|
57
|
-
details: true,
|
|
58
|
-
list: {
|
|
59
|
-
order: 2,
|
|
60
|
-
filter: true
|
|
61
|
-
}
|
|
62
|
-
})
|
|
63
|
-
body: string;
|
|
64
|
-
*/
|
|
65
|
-
export declare class FiltersComponent<T extends IEntity<string>> implements OnInit {
|
|
66
|
-
private menuService;
|
|
67
|
-
private config;
|
|
68
|
-
private facade;
|
|
69
|
-
private styleService;
|
|
70
|
-
private elementRef;
|
|
71
|
-
list: Array<IModelFilter>;
|
|
72
|
-
filter$: Observable<ICrudFilter>;
|
|
73
|
-
/**
|
|
74
|
-
* Hide menu used only from MenuService
|
|
75
|
-
*/
|
|
76
|
-
hideMenu: boolean;
|
|
77
|
-
constructor(menuService: MenuService, config: CrudConfig<T>, facade: CrudFacade<T>, styleService: StyleService, elementRef: ElementRef);
|
|
78
|
-
onClose(): Promise<void>;
|
|
79
|
-
ngOnInit(): void;
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersComponent<any>, never>;
|
|
81
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersComponent<any>, "smart-crud-filters", never, { "hideMenu": { "alias": "hideMenu"; "required": false; }; }, {}, never, never, false, never>;
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=filters.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filters.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/components/filters/filters.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAS,MAAM,EAAC,MAAM,eAAe,CAAC;AACnE,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAc,WAAW,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAKH,YAAY,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,qBAKa,gBAAgB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAE,YAAW,MAAM;IAWpE,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,UAAU;IAdtB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAE1B,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAE/B;;OAEG;IACI,QAAQ,EAAE,OAAO,CAAC;gBAGf,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EACrB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EACrB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU;IAG5B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,QAAQ,IAAI,IAAI;yCAtBL,gBAAgB;2CAAhB,gBAAgB;CA8C5B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
4
|
-
import { StyleService } from "@smartsoft001/angular";
|
|
5
|
-
import { ICrudFilterQueryItem } from '../../models/interfaces';
|
|
6
|
-
import { CrudFacade } from '../../+state/crud.facade';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FiltersConfigComponent<T extends IEntity<string>> implements OnInit {
|
|
9
|
-
private readonly facade;
|
|
10
|
-
private styleService;
|
|
11
|
-
private elementRef;
|
|
12
|
-
query$: Observable<ICrudFilterQueryItem[]>;
|
|
13
|
-
constructor(facade: CrudFacade<any>, styleService: StyleService, elementRef: ElementRef);
|
|
14
|
-
onRemoveQuery(item: ICrudFilterQueryItem): void;
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersConfigComponent<any>, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersConfigComponent<any>, "smart-crud-filters-config", never, {}, {}, never, never, false, never>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=filters-config.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filters-config.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/components/filters-config/filters-config.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAGhC,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;;AAEtD,qBAKa,sBAAsB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAE,YAAW,MAAM;IAI1E,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,UAAU;IALtB,MAAM,EAAE,UAAU,CAAC,oBAAoB,EAAE,CAAC,CAAC;gBAGtB,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,EAChC,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU;IAGlC,aAAa,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI;IAQ/C,QAAQ,IAAI,IAAI;yCAjBL,sBAAsB;2CAAtB,sBAAsB;CA0BlC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { BaseComponent, IListOptions, StyleService } from "@smartsoft001/angular";
|
|
3
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
4
|
-
import { ICrudListGroup } from "../../models/interfaces";
|
|
5
|
-
import { CrudFacade } from "../../+state/crud.facade";
|
|
6
|
-
import { CrudListGroupService } from "../../services/list-group/list-group.service";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class GroupComponent<T extends IEntity<string>> extends BaseComponent implements OnInit, OnDestroy {
|
|
9
|
-
private styleService;
|
|
10
|
-
private elementRef;
|
|
11
|
-
private facade;
|
|
12
|
-
private cd;
|
|
13
|
-
private groupService;
|
|
14
|
-
groups: Array<ICrudListGroup>;
|
|
15
|
-
listOptions: IListOptions<T>;
|
|
16
|
-
constructor(styleService: StyleService, elementRef: ElementRef, facade: CrudFacade<T>, cd: ChangeDetectorRef, groupService: CrudListGroupService<T>);
|
|
17
|
-
change(val: any, item: ICrudListGroup, force?: boolean): void;
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GroupComponent<any>, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GroupComponent<any>, "smart-crud-group", never, { "groups": { "alias": "groups"; "required": false; }; "listOptions": { "alias": "listOptions"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=group.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/components/group/group.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAa,UAAU,EAAS,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAEjG,OAAO,EAAC,aAAa,EAAE,YAAY,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;;AAElF,qBAKa,cAAc,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAE,SAAQ,aAAc,YAAW,MAAM,EAAE,SAAS;IAKjG,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,YAAY;IARf,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC9B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;gBAG1B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EACrB,EAAE,EAAE,iBAAiB,EACrB,YAAY,EAAE,oBAAoB,CAAC,CAAC,CAAC;IAKjD,MAAM,CAAC,GAAG,KAAA,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,UAAQ,GAAG,IAAI;IAkBtD,QAAQ,IAAI,IAAI;IAIhB,WAAW,IAAI,IAAI;yCApCV,cAAc;2CAAd,cAAc;CAwC1B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./export/export.component";
|
|
2
|
-
export * from "./filter";
|
|
3
|
-
export * from "./filters/filters.component";
|
|
4
|
-
export * from "./filters-config/filters-config.component";
|
|
5
|
-
export * from "./multiselect/multiselect.component";
|
|
6
|
-
export * from "./group/group.component";
|
|
7
|
-
export * from "./components.module";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/crud/shell/angular/src/lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
2
|
-
import { OnInit } from "@angular/core";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
import { IButtonOptions, MenuService } from "@smartsoft001/angular";
|
|
5
|
-
import { CrudFacade } from "../../+state/crud.facade";
|
|
6
|
-
import { CrudFullConfig } from "../../crud.config";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class MultiselectComponent<T extends IEntity<string>> implements OnInit {
|
|
9
|
-
private facade;
|
|
10
|
-
config: CrudFullConfig<T>;
|
|
11
|
-
private menuService;
|
|
12
|
-
private _list;
|
|
13
|
-
private _changes;
|
|
14
|
-
item: T;
|
|
15
|
-
valid: boolean;
|
|
16
|
-
buttonOptions: IButtonOptions;
|
|
17
|
-
lock: boolean;
|
|
18
|
-
showForm: boolean;
|
|
19
|
-
list$: Observable<T[]>;
|
|
20
|
-
constructor(facade: CrudFacade<T>, config: CrudFullConfig<T>, menuService: MenuService);
|
|
21
|
-
onClose(): Promise<void>;
|
|
22
|
-
onPartialChange(changes: Partial<T>, list: Array<T>): void;
|
|
23
|
-
onValidChange(valid: boolean): void;
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectComponent<any>, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectComponent<any>, "smart-crud-multiselect", never, {}, {}, never, never, false, never>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=multiselect.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multiselect.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/components/multiselect/multiselect.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO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} from "./+state/crud.effects";
|
|
5
|
-
import { ListComponent } from "./pages/list/list.component";
|
|
6
|
-
import { ItemComponent } from "./pages/item/item.component";
|
|
7
|
-
import { ListStandardComponent } from "./pages/list/standard/standard.component";
|
|
8
|
-
import { ItemStandardComponent } from "./pages/item/standard/standard.component";
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "./pages/item/item.component";
|
|
11
|
-
import * as i2 from "./pages/list/list.component";
|
|
12
|
-
import * as i3 from "./pages/list/standard/standard.component";
|
|
13
|
-
import * as i4 from "./pages/item/standard/standard.component";
|
|
14
|
-
import * as i5 from "@ngrx/store";
|
|
15
|
-
import * as i6 from "@smartsoft001/angular";
|
|
16
|
-
import * as i7 from "./pipes/pipes.module";
|
|
17
|
-
import * as i8 from "@angular/router";
|
|
18
|
-
import * as i9 from "@angular/forms";
|
|
19
|
-
import * as i10 from "@angular/common";
|
|
20
|
-
import * as i11 from "./components/components.module";
|
|
21
|
-
export declare const PAGES: (typeof ListComponent | typeof ItemStandardComponent | typeof ItemComponent | typeof ListStandardComponent)[];
|
|
22
|
-
export declare class CrudFullModule<T extends IEntity<string>> {
|
|
23
|
-
constructor(store: Store<any>, config: CrudConfig<T>, effects: CrudEffects<any>);
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFullModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudFullModule, [typeof i1.ItemComponent, typeof i2.ListComponent, typeof i3.ListStandardComponent, typeof i4.ItemStandardComponent], [typeof i5.StoreModule, typeof i6.SharedModule, typeof i7.CrudPipesModule, typeof i8.RouterModule, typeof i9.FormsModule, typeof i10.CommonModule, typeof i11.CrudComponentsModule], [typeof i1.ItemComponent, typeof i2.ListComponent, typeof i3.ListStandardComponent, typeof i4.ItemStandardComponent, typeof i11.CrudComponentsModule]>;
|
|
26
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CrudFullModule>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=crud-full.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crud-full.module.d.ts","sourceRoot":"","sources":["../../../../../../libs/crud/shell/angular/src/lib/crud-full.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,KAAK,EAAc,MAAM,aAAa,CAAC;AAK/C,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAO1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAC,qBAAqB,EAAC,MAAM,0CAA0C,CAAC;;;;;;;;;;;;;AAG/E,eAAO,MAAM,KAAK,+GAKjB,CAAC;AAEF,qBA8Ba,cAAc,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC;gBACrC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC;yCADtE,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAU1B"}
|
package/lib/crud.config.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Type } from "@angular/core";
|
|
2
|
-
import { IIconButtonOptions, ICellPipe, InputBaseComponent, ListMode, PaginationMode } from "@smartsoft001/angular";
|
|
3
|
-
import { ICrudFilterQueryItem, ICrudListGroup } from "./models";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CrudConfig<T> {
|
|
6
|
-
apiUrl: string;
|
|
7
|
-
entity: string;
|
|
8
|
-
type?: any;
|
|
9
|
-
reducerFactory?: () => any;
|
|
10
|
-
baseQuery?: Array<ICrudFilterQueryItem>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudConfig<any>, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CrudConfig<any>>;
|
|
13
|
-
}
|
|
14
|
-
export declare class CrudFullConfig<T> extends CrudConfig<T> {
|
|
15
|
-
type: any;
|
|
16
|
-
title: string;
|
|
17
|
-
details?: boolean | {
|
|
18
|
-
cellPipe?: ICellPipe<T>;
|
|
19
|
-
components?: {
|
|
20
|
-
top?: any;
|
|
21
|
-
bottom?: any;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
edit?: boolean | {
|
|
25
|
-
cellPipe?: ICellPipe<T>;
|
|
26
|
-
components?: {
|
|
27
|
-
top?: any;
|
|
28
|
-
bottom?: any;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
add?: boolean | {
|
|
32
|
-
components?: {
|
|
33
|
-
top?: any;
|
|
34
|
-
bottom?: any;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
remove?: boolean;
|
|
38
|
-
search?: boolean;
|
|
39
|
-
export?: boolean;
|
|
40
|
-
pagination?: {
|
|
41
|
-
limit: number;
|
|
42
|
-
};
|
|
43
|
-
sort?: boolean | {
|
|
44
|
-
default?: string;
|
|
45
|
-
defaultDesc?: boolean;
|
|
46
|
-
};
|
|
47
|
-
list?: {
|
|
48
|
-
cellPipe?: ICellPipe<T>;
|
|
49
|
-
components?: {
|
|
50
|
-
top?: any;
|
|
51
|
-
multi?: any;
|
|
52
|
-
};
|
|
53
|
-
mode?: ListMode;
|
|
54
|
-
paginationMode?: PaginationMode;
|
|
55
|
-
resetQuery?: "beforeInit";
|
|
56
|
-
groups?: Array<ICrudListGroup>;
|
|
57
|
-
};
|
|
58
|
-
buttons?: Array<IIconButtonOptions>;
|
|
59
|
-
inputComponents?: {
|
|
60
|
-
[key: string]: Type<InputBaseComponent<T>>;
|
|
61
|
-
};
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFullConfig<any>, never>;
|
|
63
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CrudFullConfig<any>>;
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=crud.config.d.ts.map
|
package/lib/crud.config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crud.config.d.ts","sourceRoot":"","sources":["../../../../../../libs/crud/shell/angular/src/lib/crud.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,IAAI,EAAC,MAAM,eAAe,CAAC;AAE/C,OAAO,EACH,kBAAkB,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE,cAAc,EAC9E,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAC,oBAAoB,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;;AAE9D,qBACa,UAAU,CAAC,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;yCAL/B,UAAU;6CAAV,UAAU;CAMtB;AAED,qBACa,cAAc,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IAChD,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG;QAChB,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;QACxB,UAAU,CAAC,EAAE;YACT,GAAG,CAAC,EAAE,GAAG,CAAC;YACV,MAAM,CAAC,EAAE,GAAG,CAAA;SACf,CAAA;KACJ,CAAC;IACF,IAAI,CAAC,EAAE,OAAO,GAAG;QACb,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;QACxB,UAAU,CAAC,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001/domain-core";
|
|
3
|
-
import { CrudConfig, CrudFullConfig } from "./crud.config";
|
|
4
|
-
import { CrudEffects } from "./+state/crud.effects";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@ngrx/store";
|
|
7
|
-
import * as i2 from "@smartsoft001/angular";
|
|
8
|
-
import * as i3 from "./pipes/pipes.module";
|
|
9
|
-
import * as i4 from "@angular/forms";
|
|
10
|
-
import * as i5 from "@angular/common";
|
|
11
|
-
import * as i6 from "./components/components.module";
|
|
12
|
-
export declare class CrudCoreModule<T extends IEntity<string>> {
|
|
13
|
-
constructor(config: CrudConfig<T>, effects: CrudEffects<any>);
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudCoreModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudCoreModule, never, [typeof i1.StoreModule, typeof i2.SharedModule, typeof i3.CrudPipesModule, typeof i4.FormsModule, typeof i5.CommonModule, typeof i6.CrudComponentsModule, typeof i2.NgrxSharedModule], [typeof i6.CrudComponentsModule]>;
|
|
16
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CrudCoreModule>;
|
|
17
|
-
}
|
|
18
|
-
export declare class CrudModule<T extends IEntity<string>> {
|
|
19
|
-
static forFeature<T extends IEntity<string>>(options: ICrudModuleOptionsWithRoutng<T> | ICrudModuleOptionsWithoutRoutng<T>): ModuleWithProviders<CrudModule<any>>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudModule, never, never, never>;
|
|
22
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CrudModule>;
|
|
23
|
-
}
|
|
24
|
-
export interface ICrudModuleOptionsWithRoutng<T> {
|
|
25
|
-
config: CrudFullConfig<T>;
|
|
26
|
-
socket?: boolean;
|
|
27
|
-
routing: true;
|
|
28
|
-
}
|
|
29
|
-
export interface ICrudModuleOptionsWithoutRoutng<T> {
|
|
30
|
-
config: CrudConfig<T>;
|
|
31
|
-
socket?: boolean;
|
|
32
|
-
routing: false;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=crud.module.d.ts.map
|
package/lib/crud.module.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crud.module.d.ts","sourceRoot":"","sources":["../../../../../../libs/crud/shell/angular/src/lib/crud.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAA8B,MAAM,eAAe,CAAC;AAKhF,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AASpD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;;;;;;;;AAYpD,qBAsBa,cAAc,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC;gBACvC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC;yCADjD,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAU1B;AAED,qBACa,UAAU,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC;IAC/C,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,EACzC,OAAO,EACH,4BAA4B,CAAC,CAAC,CAAC,GAC/B,+BAA+B,CAAC,CAAC,CAAC,GACrC,mBAAmB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;yCAL5B,UAAU;0CAAV,UAAU;0CAAV,UAAU;CAuBtB;AAED,MAAM,WAAW,4BAA4B,CAAC,CAAC;IAC7C,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,+BAA+B,CAAC,CAAC;IAChD,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;CAChB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
2
|
-
import { IListPaginationOptions, PaginationMode } from "@smartsoft001/angular";
|
|
3
|
-
import { CrudFacade } from "../../+state/crud.facade";
|
|
4
|
-
import { ICrudFilter } from "../../models/interfaces";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CrudListPaginationFactory<T extends IEntity<string>> {
|
|
7
|
-
private readonly facade;
|
|
8
|
-
constructor(facade: CrudFacade<T>);
|
|
9
|
-
create(options: {
|
|
10
|
-
mode?: PaginationMode;
|
|
11
|
-
limit: number;
|
|
12
|
-
provider: {
|
|
13
|
-
getLinks(): any;
|
|
14
|
-
getFilter(): ICrudFilter;
|
|
15
|
-
};
|
|
16
|
-
}): Promise<IListPaginationOptions>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudListPaginationFactory<any>, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CrudListPaginationFactory<any>>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=list-pagination.factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-pagination.factory.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/factories/list-pagination/list-pagination.factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAE7E,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;;AAEpD,qBACa,yBAAyB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC;IAClD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IAE5C,MAAM,CAAC,OAAO,EAAE;QACpB,IAAI,CAAC,EAAE,cAAc,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE;YACR,QAAQ,IAAI,GAAG,CAAC;YAChB,SAAS,IAAI,WAAW,CAAC;SAC1B,CAAC;KACH,GAAG,OAAO,CAAC,sBAAsB,CAAC;yCAVxB,yBAAyB;6CAAzB,yBAAyB;CA+ErC"}
|
package/lib/models/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/crud/shell/angular/src/lib/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IModelFilter } from "@smartsoft001/models";
|
|
2
|
-
import { PaginationMode } from "@smartsoft001/angular";
|
|
3
|
-
export interface ICrudFilter {
|
|
4
|
-
searchText?: string;
|
|
5
|
-
sortBy?: string;
|
|
6
|
-
sortDesc?: boolean;
|
|
7
|
-
offset?: number;
|
|
8
|
-
limit?: number;
|
|
9
|
-
paginationMode?: PaginationMode;
|
|
10
|
-
query?: Array<ICrudFilterQueryItem>;
|
|
11
|
-
}
|
|
12
|
-
export interface ICrudFilterQueryItem extends IModelFilter {
|
|
13
|
-
key: string;
|
|
14
|
-
value: any;
|
|
15
|
-
type: '=' | '!=' | '>=' | '<=' | '<' | '>';
|
|
16
|
-
hidden?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface ICrudCreateManyOptions {
|
|
19
|
-
mode: CrudCreateManyMode;
|
|
20
|
-
}
|
|
21
|
-
export interface ICrudListGroup {
|
|
22
|
-
key: string;
|
|
23
|
-
value: string;
|
|
24
|
-
text: string;
|
|
25
|
-
show?: boolean;
|
|
26
|
-
changed?: boolean;
|
|
27
|
-
children?: Array<ICrudListGroup>;
|
|
28
|
-
}
|
|
29
|
-
export type CrudCreateManyMode = 'default' | 'replace';
|
|
30
|
-
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../../../libs/crud/shell/angular/src/lib/models/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAErD,MAAM,WAAW,WAAW;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;CACtC;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACtD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,GAAG,CAAC;IACX,IAAI,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,kBAAkB,CAAA;CAC3B;AAED,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACpC;AAED,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,CAAC"}
|
package/lib/pages/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./item/base/base.component";
|
|
2
|
-
export * from "./item/item.component";
|
|
3
|
-
export * from "./item/standard/standard.component";
|
|
4
|
-
export * from "./list/list.component";
|
|
5
|
-
export * from "./list/base/base.component";
|
|
6
|
-
export * from "./list/standard/standard.component";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/pages/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/crud/shell/angular/src/lib/pages/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, QueryList, ViewContainerRef } from "@angular/core";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { BaseComponent, DynamicComponentType, FormComponent, IDetailsOptions } from "@smartsoft001/angular";
|
|
4
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
5
|
-
import { CrudFullConfig } from "../../../crud.config";
|
|
6
|
-
import { CrudFacade } from "../../../+state/crud.facade";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare abstract class CrudItemPageBaseComponent<T extends IEntity<string>> extends BaseComponent {
|
|
9
|
-
config: CrudFullConfig<T>;
|
|
10
|
-
facade: CrudFacade<T>;
|
|
11
|
-
static smartType: DynamicComponentType;
|
|
12
|
-
selected$: Observable<T>;
|
|
13
|
-
contentTpl: ViewContainerRef;
|
|
14
|
-
formComponents: QueryList<FormComponent<any>>;
|
|
15
|
-
detailsOptions: IDetailsOptions<T>;
|
|
16
|
-
mode: string;
|
|
17
|
-
uniqueProvider: (values: Record<keyof T, any>) => Promise<boolean>;
|
|
18
|
-
onPartialChange: EventEmitter<Partial<T>>;
|
|
19
|
-
onChange: EventEmitter<T>;
|
|
20
|
-
onValidChange: EventEmitter<boolean>;
|
|
21
|
-
constructor(config: CrudFullConfig<T>, facade: CrudFacade<T>);
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudItemPageBaseComponent<any>, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CrudItemPageBaseComponent<any>, never, never, { "detailsOptions": { "alias": "detailsOptions"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "uniqueProvider": { "alias": "uniqueProvider"; "required": false; }; }, { "onPartialChange": "onPartialChange"; "onChange": "onChange"; "onValidChange": "onValidChange"; }, never, never, false, never>;
|
|
24
|
-
}
|
|
25
|
-
//# 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/item/base/base.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACQ,YAAY,EACR,SAAS,EAExB,gBAAgB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EACH,aAAa,EACb,oBAAoB,EAAE,aAAa,EAAE,eAAe,EACvD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;;AAEzD,8BACsB,yBAAyB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAE,SAAQ,aAAa;IA6BjF,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IACzB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IA7BhC,MAAM,CAAC,SAAS,EAAE,oBAAoB,CAAoB;IAE1D,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAGzB,UAAU,EAAE,gBAAgB,CAAC;IAEyB,cAAc,gCAAuC;IAG3G,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAGnC,IAAI,EAAE,MAAM,CAAC;IAGb,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAGnE,eAAe,2BAAkC;IAGjD,QAAQ,kBAAyB;IAGjC,aAAa,wBAA+B;gBAGjC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EACzB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;yCA9Bd,yBAAyB;2CAAzB,yBAAyB;CAqC9C"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ComponentFactoryResolver, ElementRef, NgModuleRef, OnInit, QueryList, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
-
import { ActivatedRoute, Router } from "@angular/router";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
import { Location } from "@angular/common";
|
|
5
|
-
import { TranslateService } from "@ngx-translate/core";
|
|
6
|
-
import { AuthService, DetailsService, DynamicComponentLoader, DynamicContentDirective, IDetailsOptions, IPageOptions, StyleService, ToastService } from "@smartsoft001/angular";
|
|
7
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
8
|
-
import { CrudFacade } from "../../+state/crud.facade";
|
|
9
|
-
import { CrudFullConfig } from "../../crud.config";
|
|
10
|
-
import { CrudService } from "../../services/crud/crud.service";
|
|
11
|
-
import { IonContent } from "@ionic/angular";
|
|
12
|
-
import { ItemStandardComponent } from "./standard/standard.component";
|
|
13
|
-
import { CrudItemPageBaseComponent } from "./base/base.component";
|
|
14
|
-
import { PageService } from "../../services/page/page.service";
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
declare const ItemComponent_base: new (cd: ChangeDetectorRef, moduleRef: NgModuleRef<any>, componentFactoryResolver: ComponentFactoryResolver) => import("@smartsoft001/angular").IDynamicComponent<CrudItemPageBaseComponent<any>>;
|
|
17
|
-
export declare class ItemComponent<T extends IEntity<string>> extends ItemComponent_base implements OnInit {
|
|
18
|
-
private router;
|
|
19
|
-
private activeRoute;
|
|
20
|
-
private facade;
|
|
21
|
-
private service;
|
|
22
|
-
private route;
|
|
23
|
-
private dynamicComponentLoader;
|
|
24
|
-
private translateService;
|
|
25
|
-
config: CrudFullConfig<T>;
|
|
26
|
-
private location;
|
|
27
|
-
private cd;
|
|
28
|
-
private styleService;
|
|
29
|
-
private elementRef;
|
|
30
|
-
private toastService;
|
|
31
|
-
private pageService;
|
|
32
|
-
private moduleRef;
|
|
33
|
-
private componentFactoryResolver;
|
|
34
|
-
private detailsService;
|
|
35
|
-
private _mode;
|
|
36
|
-
pageOptions: IPageOptions;
|
|
37
|
-
detailsOptions: IDetailsOptions<T>;
|
|
38
|
-
id: string;
|
|
39
|
-
formValue: T;
|
|
40
|
-
formValid: boolean;
|
|
41
|
-
item: T;
|
|
42
|
-
formPartialValue: Partial<T>;
|
|
43
|
-
uniqueProvider: (values: Record<keyof T, any>) => Promise<boolean>;
|
|
44
|
-
set mode(val: string);
|
|
45
|
-
get mode(): string;
|
|
46
|
-
selected$: Observable<T>;
|
|
47
|
-
standardComponents: QueryList<ItemStandardComponent<any>>;
|
|
48
|
-
content: IonContent;
|
|
49
|
-
contentTpl: TemplateRef<any>;
|
|
50
|
-
topTpl: ViewContainerRef;
|
|
51
|
-
bottomTpl: ViewContainerRef;
|
|
52
|
-
dynamicContents: QueryList<DynamicContentDirective>;
|
|
53
|
-
constructor(router: Router, activeRoute: ActivatedRoute, facade: CrudFacade<T>, service: CrudService<T>, route: ActivatedRoute, dynamicComponentLoader: DynamicComponentLoader<T>, translateService: TranslateService, config: CrudFullConfig<T>, location: Location, cd: ChangeDetectorRef, authService: AuthService, styleService: StyleService, elementRef: ElementRef, toastService: ToastService, pageService: PageService<T>, moduleRef: NgModuleRef<any>, componentFactoryResolver: ComponentFactoryResolver, detailsService: DetailsService);
|
|
54
|
-
refreshProperties(): void;
|
|
55
|
-
ngOnInit(): Promise<void>;
|
|
56
|
-
private generateComponents;
|
|
57
|
-
onPartialChange(val: Partial<T>): void;
|
|
58
|
-
onChange(val: T): void;
|
|
59
|
-
onValidChange(val: boolean): void;
|
|
60
|
-
private initPageOptions;
|
|
61
|
-
private getButtons;
|
|
62
|
-
private getTitle;
|
|
63
|
-
private removeParagraph;
|
|
64
|
-
private checkFirstInvalid;
|
|
65
|
-
private getInvalidFields;
|
|
66
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItemComponent<any>, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItemComponent<any>, "smart-crud-item-page", never, {}, {}, never, ["*"], false, never>;
|
|
68
|
-
}
|
|
69
|
-
export {};
|
|
70
|
-
//# sourceMappingURL=item.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/crud/shell/angular/src/lib/pages/item/item.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACN,wBAAwB,EACnC,UAAU,EAAE,WAAW,EACvB,MAAM,EACN,SAAS,EAAE,WAAW,EAER,gBAAgB,EAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,OAAO,EACL,WAAW,EAA0B,cAAc,EACnD,sBAAsB,EAAE,uBAAuB,EAC/C,eAAe,EAEf,YAAY,EAAE,Y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Ae;IAQvB,OAAO,CAAC,UAAU;IA4ElB,OAAO,CAAC,QAAQ;IAehB,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,iBAAiB;IAuBzB,OAAO,CAAC,gBAAgB;yCAlXb,aAAa;2CAAb,aAAa;CA4YzB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
2
|
-
import { CrudItemPageBaseComponent } from "../base/base.component";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ItemStandardComponent<T extends IEntity<string>> extends CrudItemPageBaseComponent<T> {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItemStandardComponent<any>, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItemStandardComponent<any>, "smart-crud-item-standard-page", never, {}, {}, never, never, false, never>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=standard.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"standard.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/crud/shell/angular/src/lib/pages/item/standard/standard.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAC,yBAAyB,EAAC,MAAM,wBAAwB,CAAC;;AAEjE,qBAKa,qBAAqB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAE,SAAQ,yBAAyB,CAAC,CAAC,CAAC;yCAArF,qBAAqB;2CAArB,qBAAqB;CAAmE"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ViewContainerRef } from "@angular/core";
|
|
2
|
-
import { BaseComponent, DynamicComponentType, IListOptions } from "@smartsoft001/angular";
|
|
3
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
4
|
-
import { CrudFullConfig } from "../../../crud.config";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare abstract class CrudListPageBaseComponent<T extends IEntity<string>> extends BaseComponent {
|
|
7
|
-
config: CrudFullConfig<T>;
|
|
8
|
-
static smartType: DynamicComponentType;
|
|
9
|
-
contentTpl: ViewContainerRef;
|
|
10
|
-
listOptions: IListOptions<T>;
|
|
11
|
-
constructor(config: CrudFullConfig<T>);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudListPageBaseComponent<any>, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CrudListPageBaseComponent<any>, never, never, { "listOptions": { "alias": "listOptions"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
|
-
}
|
|
15
|
-
//# 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/list/base/base.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,gBAAgB,EACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,aAAa,EACb,oBAAoB,EACpB,YAAY,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;;AAEpD,8BACsB,yBAAyB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAE,SAAQ,aAAa;IAUjF,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IATpC,MAAM,CAAC,SAAS,EAAE,oBAAoB,CAAoB;IAG1D,UAAU,EAAE,gBAAgB,CAAC;IAG7B,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;gBAGlB,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;yCAVlB,yBAAyB;2CAAzB,yBAAyB;CAc9C"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ComponentFactoryResolver, ElementRef, Injector, NgModuleRef, OnDestroy, OnInit, QueryList, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
-
import { Router } from "@angular/router";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
import { DynamicComponentLoader, DynamicContentDirective, HardwareService, IListOptions, IPageOptions, MenuService, StyleService } from "@smartsoft001/angular";
|
|
5
|
-
import { IEntity } from "@smartsoft001/domain-core";
|
|
6
|
-
import { CrudFacade } from "../../+state/crud.facade";
|
|
7
|
-
import { CrudFullConfig } from "../../crud.config";
|
|
8
|
-
import { ICrudFilter } from "../../models/interfaces";
|
|
9
|
-
import { CrudListPaginationFactory } from "../../factories/list-pagination/list-pagination.factory";
|
|
10
|
-
import { PageService } from "../../services/page/page.service";
|
|
11
|
-
import { CrudListPageBaseComponent } from "./base/base.component";
|
|
12
|
-
import { CrudSearchService } from "../../services/search/search.service";
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
declare const ListComponent_base: new (cd: ChangeDetectorRef, moduleRef: NgModuleRef<any>, componentFactoryResolver: ComponentFactoryResolver) => import("@smartsoft001/angular").IDynamicComponent<CrudListPageBaseComponent<any>>;
|
|
15
|
-
export declare class ListComponent<T extends IEntity<string>> extends ListComponent_base implements OnInit, OnDestroy {
|
|
16
|
-
private facade;
|
|
17
|
-
private router;
|
|
18
|
-
private dynamicComponentLoader;
|
|
19
|
-
private injector;
|
|
20
|
-
private cd;
|
|
21
|
-
private menuService;
|
|
22
|
-
private hardwareService;
|
|
23
|
-
private paginationFacade;
|
|
24
|
-
private styleService;
|
|
25
|
-
private elementRef;
|
|
26
|
-
private pageService;
|
|
27
|
-
config: CrudFullConfig<T>;
|
|
28
|
-
private searchService;
|
|
29
|
-
private moduleRef;
|
|
30
|
-
private componentFactoryResolver;
|
|
31
|
-
private _cleanMultiSelected$;
|
|
32
|
-
pageOptions: IPageOptions;
|
|
33
|
-
listOptions: IListOptions<T>;
|
|
34
|
-
filter: ICrudFilter;
|
|
35
|
-
links: {
|
|
36
|
-
next: any;
|
|
37
|
-
prev: any;
|
|
38
|
-
};
|
|
39
|
-
filter$: Observable<ICrudFilter>;
|
|
40
|
-
topTpl: ViewContainerRef;
|
|
41
|
-
contentTpl: TemplateRef<any>;
|
|
42
|
-
dynamicContents: QueryList<DynamicContentDirective>;
|
|
43
|
-
constructor(facade: CrudFacade<T>, router: Router, dynamicComponentLoader: DynamicComponentLoader<T>, injector: Injector, cd: ChangeDetectorRef, menuService: MenuService, hardwareService: HardwareService, paginationFacade: CrudListPaginationFactory<T>, styleService: StyleService, elementRef: ElementRef, pageService: PageService<T>, config: CrudFullConfig<T>, searchService: CrudSearchService, moduleRef: NgModuleRef<any>, componentFactoryResolver: ComponentFactoryResolver);
|
|
44
|
-
refreshProperties(): void;
|
|
45
|
-
ngOnInit(): Promise<void>;
|
|
46
|
-
private initCloseMenu;
|
|
47
|
-
private clear;
|
|
48
|
-
private getEndButtons;
|
|
49
|
-
private initTopComponent;
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent<any>, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent<any>, "smart-crud-list-page", never, {}, {}, never, ["*"], false, never>;
|
|
52
|
-
}
|
|
53
|
-
export {};
|
|
54
|
-
//# sourceMappingURL=list.component.d.ts.map
|