cat-qw-lib 0.0.2 → 0.0.3
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/fesm2022/cat-qw-lib.mjs +2033 -0
- package/fesm2022/cat-qw-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/admin/action-admin/action-admin.module.d.ts +9 -0
- package/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.d.ts +5 -0
- package/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.d.ts +12 -0
- package/lib/admin/action-admin/models/action.model.d.ts +9 -0
- package/lib/admin/action-admin/state/action.service.d.ts +13 -0
- package/lib/admin/action-admin/state/action.store.d.ts +8 -0
- package/lib/admin/api-admin/api-admin.module.d.ts +18 -0
- package/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.d.ts +30 -0
- package/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.d.ts +10 -0
- package/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.d.ts +14 -0
- package/lib/admin/api-admin/models/api-admin.model.d.ts +15 -0
- package/lib/admin/api-admin/models/credentials.model.d.ts +4 -0
- package/lib/admin/api-admin/state/api-admin.service.d.ts +16 -0
- package/lib/admin/api-admin/state/api-admin.store.d.ts +8 -0
- package/lib/shared/_base/base-control/base-control.component.d.ts +22 -0
- package/lib/shared/_base/base-form/base-form.component.d.ts +27 -0
- package/lib/shared/_base/base-list/base-list.component.d.ts +16 -0
- package/lib/shared/components/form-container/form-container.component.d.ts +26 -0
- package/lib/shared/components/sidebar/sidebar.component.d.ts +13 -0
- package/lib/shared/constant/CSS.d.ts +11 -0
- package/lib/shared/constant/DATASOURCES.d.ts +10 -0
- package/lib/shared/constant/ERROR.d.ts +3 -0
- package/lib/shared/constant/HEADERS.d.ts +4 -0
- package/lib/shared/constant/LIST-CONFIG.d.ts +8 -0
- package/lib/shared/constant/LOOKUPS.d.ts +3 -0
- package/lib/shared/constant/ROUTES.d.ts +12 -0
- package/lib/shared/constant/SHARED.d.ts +565 -0
- package/lib/shared/constant/URLS.d.ts +3 -0
- package/lib/shared/controls/button/button.component.d.ts +6 -0
- package/lib/shared/controls/check-box/check-box.component.d.ts +6 -0
- package/lib/shared/controls/date/date.component.d.ts +12 -0
- package/lib/shared/controls/dropdown/dropdown.component.d.ts +19 -0
- package/lib/shared/controls/file-upload/file-upload.component.d.ts +7 -0
- package/lib/shared/controls/password/password.component.d.ts +9 -0
- package/lib/shared/controls/text-area/text-area.component.d.ts +8 -0
- package/lib/shared/controls/text-box/text-box.component.d.ts +7 -0
- package/lib/shared/controls/username/username.component.d.ts +6 -0
- package/{src/lib/shared/index.ts → lib/shared/index.d.ts} +30 -35
- package/lib/shared/models/attribute.model.d.ts +41 -0
- package/lib/shared/models/base.model.d.ts +3 -0
- package/lib/shared/models/list.model.d.ts +11 -0
- package/lib/shared/pipe/capitalize-words.pipe.d.ts +7 -0
- package/lib/shared/services/app-config.service.d.ts +12 -0
- package/lib/shared/services/auth/auth.guard.d.ts +12 -0
- package/lib/shared/services/date-parser.service.d.ts +7 -0
- package/lib/shared/services/list.service.d.ts +13 -0
- package/lib/shared/services/session.service.d.ts +13 -0
- package/lib/shared/services/table.builder.d.ts +11 -0
- package/lib/shared/services/validator.service.d.ts +7 -0
- package/lib/shared/shared.module.d.ts +32 -0
- package/lib/shared/state/base.query.d.ts +19 -0
- package/lib/shared/state/base.service.d.ts +27 -0
- package/lib/shared/state/base.state.d.ts +4 -0
- package/lib/shared/state/base.store.d.ts +24 -0
- package/lib/shared/table-primary/components/table-primary.component.d.ts +26 -0
- package/lib/shared/table-primary/models/table-primary-header.model.d.ts +6 -0
- package/lib/shared/table-primary/models/table-primary.model.d.ts +5 -0
- package/package.json +25 -16
- package/{src/public-api.ts → public-api.d.ts} +6 -11
- package/ng-package.json +0 -10
- package/src/lib/admin/action-admin/action-admin.module.ts +0 -16
- package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.html +0 -1
- package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.scss +0 -0
- package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.spec.ts +0 -23
- package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.ts +0 -11
- package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.html +0 -5
- package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.scss +0 -0
- package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.spec.ts +0 -23
- package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.ts +0 -24
- package/src/lib/admin/action-admin/models/action.model.ts +0 -12
- package/src/lib/admin/action-admin/state/action.query.ts +0 -11
- package/src/lib/admin/action-admin/state/action.service.ts +0 -18
- package/src/lib/admin/action-admin/state/action.state.ts +0 -14
- package/src/lib/admin/action-admin/state/action.store.ts +0 -14
- package/src/lib/admin/admin.module.ts +0 -22
- package/src/lib/admin/api-admin/api-admin.module.ts +0 -39
- package/src/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.html +0 -96
- package/src/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.scss +0 -6
- package/src/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.spec.ts +0 -23
- package/src/lib/admin/api-admin/components/api-admin-form/api-admin-form.component.ts +0 -94
- package/src/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.html +0 -6
- package/src/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.scss +0 -0
- package/src/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.spec.ts +0 -23
- package/src/lib/admin/api-admin/components/api-admin-list/api-admin-list.component.ts +0 -17
- package/src/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.html +0 -29
- package/src/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.scss +0 -0
- package/src/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.spec.ts +0 -21
- package/src/lib/admin/api-admin/components/api-credential-form/api-credential-form.component.ts +0 -25
- package/src/lib/admin/api-admin/models/api-admin.model.ts +0 -16
- package/src/lib/admin/api-admin/models/credentials.model.ts +0 -4
- package/src/lib/admin/api-admin/state/api-admin.query.ts +0 -14
- package/src/lib/admin/api-admin/state/api-admin.service.ts +0 -31
- package/src/lib/admin/api-admin/state/api-admin.state.ts +0 -14
- package/src/lib/admin/api-admin/state/api-admin.store.ts +0 -13
- package/src/lib/admin/dd-admin/components/dd-admin-form/dd-admin-form.component.css +0 -0
- package/src/lib/admin/dd-admin/components/dd-admin-form/dd-admin-form.component.html +0 -1
- package/src/lib/admin/dd-admin/components/dd-admin-form/dd-admin-form.component.spec.ts +0 -23
- package/src/lib/admin/dd-admin/components/dd-admin-form/dd-admin-form.component.ts +0 -11
- package/src/lib/admin/dd-admin/components/dd-admin-list/dd-admin-list.component.css +0 -0
- package/src/lib/admin/dd-admin/components/dd-admin-list/dd-admin-list.component.html +0 -1
- package/src/lib/admin/dd-admin/components/dd-admin-list/dd-admin-list.component.spec.ts +0 -23
- package/src/lib/admin/dd-admin/components/dd-admin-list/dd-admin-list.component.ts +0 -11
- package/src/lib/admin/dd-admin/dd-admin.module.ts +0 -12
- package/src/lib/admin/queue-admin/components/queue-admin-form/queue-admin-form.component.css +0 -0
- package/src/lib/admin/queue-admin/components/queue-admin-form/queue-admin-form.component.html +0 -1
- package/src/lib/admin/queue-admin/components/queue-admin-form/queue-admin-form.component.spec.ts +0 -23
- package/src/lib/admin/queue-admin/components/queue-admin-form/queue-admin-form.component.ts +0 -11
- package/src/lib/admin/queue-admin/components/queue-admin-list/queue-admin-list.component.css +0 -0
- package/src/lib/admin/queue-admin/components/queue-admin-list/queue-admin-list.component.html +0 -1
- package/src/lib/admin/queue-admin/components/queue-admin-list/queue-admin-list.component.spec.ts +0 -23
- package/src/lib/admin/queue-admin/components/queue-admin-list/queue-admin-list.component.ts +0 -11
- package/src/lib/admin/queue-admin/queue-admin.module.ts +0 -12
- package/src/lib/admin/widget-admin/components/widget-admin-form/widget-admin-form.component.css +0 -0
- package/src/lib/admin/widget-admin/components/widget-admin-form/widget-admin-form.component.html +0 -1
- package/src/lib/admin/widget-admin/components/widget-admin-form/widget-admin-form.component.spec.ts +0 -23
- package/src/lib/admin/widget-admin/components/widget-admin-form/widget-admin-form.component.ts +0 -11
- package/src/lib/admin/widget-admin/components/widget-admin-list/widget-admin-list.component.css +0 -0
- package/src/lib/admin/widget-admin/components/widget-admin-list/widget-admin-list.component.html +0 -1
- package/src/lib/admin/widget-admin/components/widget-admin-list/widget-admin-list.component.spec.ts +0 -23
- package/src/lib/admin/widget-admin/components/widget-admin-list/widget-admin-list.component.ts +0 -11
- package/src/lib/admin/widget-admin/widget-admin.module.ts +0 -12
- package/src/lib/shared/_base/base-control/base-control.component.html +0 -1
- package/src/lib/shared/_base/base-control/base-control.component.scss +0 -0
- package/src/lib/shared/_base/base-control/base-control.component.spec.ts +0 -21
- package/src/lib/shared/_base/base-control/base-control.component.ts +0 -55
- package/src/lib/shared/_base/base-form/base-form.component.html +0 -1
- package/src/lib/shared/_base/base-form/base-form.component.scss +0 -0
- package/src/lib/shared/_base/base-form/base-form.component.spec.ts +0 -21
- package/src/lib/shared/_base/base-form/base-form.component.ts +0 -81
- package/src/lib/shared/_base/base-list/base-list.component.html +0 -1
- package/src/lib/shared/_base/base-list/base-list.component.scss +0 -0
- package/src/lib/shared/_base/base-list/base-list.component.spec.ts +0 -21
- package/src/lib/shared/_base/base-list/base-list.component.ts +0 -31
- package/src/lib/shared/components/form-container/form-container.component.html +0 -55
- package/src/lib/shared/components/form-container/form-container.component.scss +0 -108
- package/src/lib/shared/components/form-container/form-container.component.spec.ts +0 -21
- package/src/lib/shared/components/form-container/form-container.component.ts +0 -55
- package/src/lib/shared/components/sidebar/sidebar.component.html +0 -13
- package/src/lib/shared/components/sidebar/sidebar.component.scss +0 -45
- package/src/lib/shared/components/sidebar/sidebar.component.spec.ts +0 -21
- package/src/lib/shared/components/sidebar/sidebar.component.ts +0 -26
- package/src/lib/shared/constant/CSS.ts +0 -9
- package/src/lib/shared/constant/DATASOURCES.ts +0 -10
- package/src/lib/shared/constant/ERROR.ts +0 -3
- package/src/lib/shared/constant/HEADERS.ts +0 -4
- package/src/lib/shared/constant/LIST-CONFIG.ts +0 -10
- package/src/lib/shared/constant/LOOKUPS.ts +0 -3
- package/src/lib/shared/constant/ROUTES.ts +0 -12
- package/src/lib/shared/constant/SHARED.ts +0 -603
- package/src/lib/shared/constant/URLS.ts +0 -3
- package/src/lib/shared/controls/button/button.component.html +0 -25
- package/src/lib/shared/controls/button/button.component.scss +0 -0
- package/src/lib/shared/controls/button/button.component.spec.ts +0 -21
- package/src/lib/shared/controls/button/button.component.ts +0 -15
- package/src/lib/shared/controls/check-box/check-box.component.html +0 -22
- package/src/lib/shared/controls/check-box/check-box.component.scss +0 -32
- package/src/lib/shared/controls/check-box/check-box.component.spec.ts +0 -26
- package/src/lib/shared/controls/check-box/check-box.component.ts +0 -16
- package/src/lib/shared/controls/date/date.component.html +0 -43
- package/src/lib/shared/controls/date/date.component.scss +0 -0
- package/src/lib/shared/controls/date/date.component.spec.ts +0 -21
- package/src/lib/shared/controls/date/date.component.ts +0 -42
- package/src/lib/shared/controls/dropdown/dropdown.component.html +0 -28
- package/src/lib/shared/controls/dropdown/dropdown.component.scss +0 -12
- package/src/lib/shared/controls/dropdown/dropdown.component.ts +0 -71
- package/src/lib/shared/controls/file-upload/file-upload.component.html +0 -18
- package/src/lib/shared/controls/file-upload/file-upload.component.scss +0 -0
- package/src/lib/shared/controls/file-upload/file-upload.component.spec.ts +0 -21
- package/src/lib/shared/controls/file-upload/file-upload.component.ts +0 -19
- package/src/lib/shared/controls/number-feild/number-feild.component.html +0 -39
- package/src/lib/shared/controls/number-feild/number-feild.component.scss +0 -13
- package/src/lib/shared/controls/number-feild/number-feild.component.spec.ts +0 -21
- package/src/lib/shared/controls/number-feild/number-feild.component.ts +0 -35
- package/src/lib/shared/controls/password/password.component.html +0 -22
- package/src/lib/shared/controls/password/password.component.scss +0 -0
- package/src/lib/shared/controls/password/password.component.spec.ts +0 -28
- package/src/lib/shared/controls/password/password.component.ts +0 -24
- package/src/lib/shared/controls/text-area/text-area.component.html +0 -36
- package/src/lib/shared/controls/text-area/text-area.component.scss +0 -22
- package/src/lib/shared/controls/text-area/text-area.component.spec.ts +0 -23
- package/src/lib/shared/controls/text-area/text-area.component.ts +0 -25
- package/src/lib/shared/controls/text-box/text-box.component.html +0 -44
- package/src/lib/shared/controls/text-box/text-box.component.scss +0 -25
- package/src/lib/shared/controls/text-box/text-box.component.spec.ts +0 -30
- package/src/lib/shared/controls/text-box/text-box.component.ts +0 -26
- package/src/lib/shared/controls/username/username.component.html +0 -16
- package/src/lib/shared/controls/username/username.component.scss +0 -0
- package/src/lib/shared/controls/username/username.component.spec.ts +0 -29
- package/src/lib/shared/controls/username/username.component.ts +0 -17
- package/src/lib/shared/models/attribute.model.ts +0 -42
- package/src/lib/shared/models/base.model.ts +0 -3
- package/src/lib/shared/models/list.model.ts +0 -27
- package/src/lib/shared/models/message.model.ts +0 -4
- package/src/lib/shared/pipe/capitalize-words.pipe.spec.ts +0 -8
- package/src/lib/shared/pipe/capitalize-words.pipe.ts +0 -17
- package/src/lib/shared/services/app-config.service.spec.ts +0 -16
- package/src/lib/shared/services/app-config.service.ts +0 -25
- package/src/lib/shared/services/auth/auth.guard.spec.ts +0 -17
- package/src/lib/shared/services/auth/auth.guard.ts +0 -25
- package/src/lib/shared/services/data-transformer.service.spec.ts +0 -16
- package/src/lib/shared/services/data-transformer.service.ts +0 -41
- package/src/lib/shared/services/date-parser.service.spec.ts +0 -16
- package/src/lib/shared/services/date-parser.service.ts +0 -54
- package/src/lib/shared/services/list.service.spec.ts +0 -16
- package/src/lib/shared/services/list.service.ts +0 -53
- package/src/lib/shared/services/session.service.spec.ts +0 -16
- package/src/lib/shared/services/session.service.ts +0 -37
- package/src/lib/shared/services/table.builder.ts +0 -38
- package/src/lib/shared/services/validator.service.spec.ts +0 -16
- package/src/lib/shared/services/validator.service.ts +0 -13
- package/src/lib/shared/shared.module.ts +0 -62
- package/src/lib/shared/state/base.query.ts +0 -48
- package/src/lib/shared/state/base.service.ts +0 -69
- package/src/lib/shared/state/base.state.ts +0 -6
- package/src/lib/shared/state/base.store.ts +0 -56
- package/src/lib/shared/table-primary/components/table-primary.component.html +0 -56
- package/src/lib/shared/table-primary/components/table-primary.component.scss +0 -187
- package/src/lib/shared/table-primary/components/table-primary.component.spec.ts +0 -21
- package/src/lib/shared/table-primary/components/table-primary.component.ts +0 -71
- package/src/lib/shared/table-primary/models/table-primary-header.model.ts +0 -7
- package/src/lib/shared/table-primary/models/table-primary.model.ts +0 -6
- package/src/lib/widget/components/widget-body/widget-body.component.html +0 -1
- package/src/lib/widget/components/widget-body/widget-body.component.scss +0 -0
- package/src/lib/widget/components/widget-body/widget-body.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-body/widget-body.component.ts +0 -11
- package/src/lib/widget/components/widget-container/widget-container.component.css +0 -0
- package/src/lib/widget/components/widget-container/widget-container.component.html +0 -1
- package/src/lib/widget/components/widget-container/widget-container.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-container/widget-container.component.ts +0 -11
- package/src/lib/widget/components/widget-footer/widget-footer.component.css +0 -0
- package/src/lib/widget/components/widget-footer/widget-footer.component.html +0 -1
- package/src/lib/widget/components/widget-footer/widget-footer.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-footer/widget-footer.component.ts +0 -11
- package/src/lib/widget/components/widget-header/widget-header.component.css +0 -0
- package/src/lib/widget/components/widget-header/widget-header.component.html +0 -1
- package/src/lib/widget/components/widget-header/widget-header.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-header/widget-header.component.ts +0 -11
- package/src/lib/widget/components/widget-item/widget-item.component.css +0 -0
- package/src/lib/widget/components/widget-item/widget-item.component.html +0 -1
- package/src/lib/widget/components/widget-item/widget-item.component.spec.ts +0 -23
- package/src/lib/widget/components/widget-item/widget-item.component.ts +0 -11
- package/src/lib/widget/widget.module.ts +0 -12
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -1,35 +1,30 @@
|
|
|
1
|
-
export * from './shared.module';
|
|
2
|
-
export * from './constant/SHARED';
|
|
3
|
-
export * from './constant/ROUTES';
|
|
4
|
-
export * from './constant/DATASOURCES';
|
|
5
|
-
export * from './constant/HEADERS';
|
|
6
|
-
export * from './constant/URLS';
|
|
7
|
-
export * from './controls/username/username.component';
|
|
8
|
-
export * from './controls/password/password.component';
|
|
9
|
-
export * from './controls/text-box/text-box.component';
|
|
10
|
-
export * from './controls/date/date.component';
|
|
11
|
-
export * from './controls/button/button.component';
|
|
12
|
-
export * from './controls/check-box/check-box.component';
|
|
13
|
-
export * from './components/sidebar/sidebar.component';
|
|
14
|
-
export * from './constant/CSS'
|
|
15
|
-
export * from './models/attribute.model';
|
|
16
|
-
export * from './models/base.model';
|
|
17
|
-
export * from './state/base.store';
|
|
18
|
-
export * from './state/base.query';
|
|
19
|
-
export * from './constant/ERROR';
|
|
20
|
-
|
|
21
|
-
export * from './services/
|
|
22
|
-
export * from './
|
|
23
|
-
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './
|
|
27
|
-
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './table-primary/models/table-primary.model';
|
|
32
|
-
export * from './table-primary/models/table-primary-header.model';
|
|
33
|
-
export * from './pipe/capitalize-words.pipe'
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
export * from './shared.module';
|
|
2
|
+
export * from './constant/SHARED';
|
|
3
|
+
export * from './constant/ROUTES';
|
|
4
|
+
export * from './constant/DATASOURCES';
|
|
5
|
+
export * from './constant/HEADERS';
|
|
6
|
+
export * from './constant/URLS';
|
|
7
|
+
export * from './controls/username/username.component';
|
|
8
|
+
export * from './controls/password/password.component';
|
|
9
|
+
export * from './controls/text-box/text-box.component';
|
|
10
|
+
export * from './controls/date/date.component';
|
|
11
|
+
export * from './controls/button/button.component';
|
|
12
|
+
export * from './controls/check-box/check-box.component';
|
|
13
|
+
export * from './components/sidebar/sidebar.component';
|
|
14
|
+
export * from './constant/CSS';
|
|
15
|
+
export * from './models/attribute.model';
|
|
16
|
+
export * from './models/base.model';
|
|
17
|
+
export * from './state/base.store';
|
|
18
|
+
export * from './state/base.query';
|
|
19
|
+
export * from './constant/ERROR';
|
|
20
|
+
export * from './services/auth/auth.guard';
|
|
21
|
+
export * from './services/app-config.service';
|
|
22
|
+
export * from './state/base.service';
|
|
23
|
+
export * from './_base/base-list/base-list.component';
|
|
24
|
+
export * from './_base/base-form/base-form.component';
|
|
25
|
+
export * from './services/table.builder';
|
|
26
|
+
export * from './constant/LOOKUPS';
|
|
27
|
+
export * from './table-primary/components/table-primary.component';
|
|
28
|
+
export * from './table-primary/models/table-primary.model';
|
|
29
|
+
export * from './table-primary/models/table-primary-header.model';
|
|
30
|
+
export * from './pipe/capitalize-words.pipe';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SelectItem } from "primeng/api";
|
|
2
|
+
export declare class AttributeModel {
|
|
3
|
+
displayText?: string;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
name?: any;
|
|
6
|
+
isRequired?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
infoText?: string;
|
|
10
|
+
buttonLabel?: string;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
customButtonWidth?: string;
|
|
13
|
+
isPrimary?: number;
|
|
14
|
+
title?: string;
|
|
15
|
+
customColumnWidth?: string;
|
|
16
|
+
customHeight?: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
iconPosition?: 'left' | 'right';
|
|
19
|
+
customPadding?: string;
|
|
20
|
+
dataSource?: string;
|
|
21
|
+
listValueProperty?: string;
|
|
22
|
+
listLabelProperty?: string;
|
|
23
|
+
options?: SelectItem[];
|
|
24
|
+
childListName?: any;
|
|
25
|
+
childListKey?: any;
|
|
26
|
+
inputId?: string;
|
|
27
|
+
allowFraction?: string;
|
|
28
|
+
numberMode?: string;
|
|
29
|
+
currency?: string;
|
|
30
|
+
locale?: 'en-GB';
|
|
31
|
+
tooltip?: string;
|
|
32
|
+
toolTipPosition?: string;
|
|
33
|
+
hourFormat?: string;
|
|
34
|
+
yearRange?: string;
|
|
35
|
+
showCalenderIcon?: boolean;
|
|
36
|
+
additionalFilterList?: string;
|
|
37
|
+
additionalFilterKey?: string;
|
|
38
|
+
lookupName?: any;
|
|
39
|
+
textColorOnReadonly?: any;
|
|
40
|
+
hideLabelOnForm?: boolean;
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectItem } from "primeng/api";
|
|
2
|
+
export declare class List {
|
|
3
|
+
dataSource?: string;
|
|
4
|
+
records: any[];
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
forProperty: string;
|
|
8
|
+
items: SelectItem[];
|
|
9
|
+
allItems: SelectItem[];
|
|
10
|
+
constructor(dataSource: string, records: any[] | undefined, label: string, value: string, forProperty?: string);
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CapitalizeWordsPipe implements PipeTransform {
|
|
4
|
+
transform(value: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CapitalizeWordsPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalizeWordsPipe, "capitalizeWords", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AppConfigService {
|
|
4
|
+
private http;
|
|
5
|
+
private appConfig;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
loadAppConfig(): Promise<void>;
|
|
8
|
+
get apiBaseUrl(): any;
|
|
9
|
+
get visibilityOptions(): any;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';
|
|
2
|
+
import { SessionService } from '../session.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AuthGuard implements CanActivate {
|
|
6
|
+
_sessionService: SessionService;
|
|
7
|
+
private _router;
|
|
8
|
+
constructor(_sessionService: SessionService, _router: Router);
|
|
9
|
+
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DateParserService {
|
|
3
|
+
constructor();
|
|
4
|
+
parseDate(date: any): string | Date;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateParserService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DateParserService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { List } from "../models/list.model";
|
|
2
|
+
import { HttpClient } from "@angular/common/http";
|
|
3
|
+
import { AppConfigService } from "./app-config.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ListService {
|
|
6
|
+
http: HttpClient;
|
|
7
|
+
configService: AppConfigService;
|
|
8
|
+
constructor(http: HttpClient, configService: AppConfigService);
|
|
9
|
+
getLists(models: any[]): Promise<List[]>;
|
|
10
|
+
getbyPathName(data: string): import("rxjs").Observable<Object>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ListService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SessionService {
|
|
4
|
+
router: Router;
|
|
5
|
+
constructor(router: Router);
|
|
6
|
+
getUserRole(): string | null;
|
|
7
|
+
setUserSession(data: any): void;
|
|
8
|
+
getUserSession(): any;
|
|
9
|
+
getSessionID(): number;
|
|
10
|
+
clearSession(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SessionService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TablePrimaryModel } from "../table-primary/models/table-primary.model";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TableBuilder {
|
|
4
|
+
hiddenHeaders: string[];
|
|
5
|
+
buildTable(records: any[], headerWidths?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
}): TablePrimaryModel;
|
|
8
|
+
private buildHeaders;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableBuilder, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TableBuilder>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ValidatorService {
|
|
3
|
+
constructor();
|
|
4
|
+
handleValidateRecords(record: any): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ValidatorService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/sidebar/sidebar.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "primeng/inputtext";
|
|
6
|
+
import * as i5 from "primeng/button";
|
|
7
|
+
import * as i6 from "primeng/dropdown";
|
|
8
|
+
import * as i7 from "primeng/inputgroup";
|
|
9
|
+
import * as i8 from "primeng/card";
|
|
10
|
+
import * as i9 from "primeng/sidebar";
|
|
11
|
+
import * as i10 from "./controls/check-box/check-box.component";
|
|
12
|
+
import * as i11 from "primeng/dragdrop";
|
|
13
|
+
import * as i12 from "./components/form-container/form-container.component";
|
|
14
|
+
import * as i13 from "./_base/base-list/base-list.component";
|
|
15
|
+
import * as i14 from "./controls/dropdown/dropdown.component";
|
|
16
|
+
import * as i15 from "./controls/text-box/text-box.component";
|
|
17
|
+
import * as i16 from "primeng/inputtextarea";
|
|
18
|
+
import * as i17 from "primeng/divider";
|
|
19
|
+
import * as i18 from "./controls/date/date.component";
|
|
20
|
+
import * as i19 from "primeng/dialog";
|
|
21
|
+
import * as i20 from "primeng/timeline";
|
|
22
|
+
import * as i21 from "primeng/listbox";
|
|
23
|
+
import * as i22 from "primeng/checkbox";
|
|
24
|
+
import * as i23 from "./controls/file-upload/file-upload.component";
|
|
25
|
+
import * as i24 from "primeng/fileupload";
|
|
26
|
+
import * as i25 from "./pipe/capitalize-words.pipe";
|
|
27
|
+
import * as i26 from "./controls/text-area/text-area.component";
|
|
28
|
+
export declare class SharedModule {
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.SidebarComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.InputTextModule, typeof i5.ButtonModule, typeof i6.DropdownModule, typeof i7.InputGroupModule, typeof i8.CardModule, typeof i9.SidebarModule, typeof i10.CheckBoxComponent, typeof i11.DragDropModule, typeof i12.FormContainerComponent, typeof i13.BaseListComponent, typeof i14.DropdownComponent, typeof i13.BaseListComponent, typeof i15.TextBoxComponent, typeof i16.InputTextareaModule, typeof i17.DividerModule, typeof i18.DateComponent, typeof i19.DialogModule, typeof i20.TimelineModule, typeof i21.ListboxModule, typeof i22.CheckboxModule, typeof i23.FileUploadComponent, typeof i24.FileUploadModule, typeof i25.CapitalizeWordsPipe, typeof i26.TextAreaComponent], [typeof i25.CapitalizeWordsPipe, typeof i15.TextBoxComponent, typeof i3.FormsModule, typeof i21.ListboxModule, typeof i19.DialogModule, typeof i22.CheckboxModule, typeof i14.DropdownComponent, typeof i12.FormContainerComponent, typeof i13.BaseListComponent, typeof i1.SidebarComponent, typeof i17.DividerModule, typeof i8.CardModule]>;
|
|
31
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { QueryEntity } from '@datorama/akita';
|
|
2
|
+
import { BaseEntityState, BaseStore } from './base.store';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { BaseModel } from '../models/base.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class BaseQuery<T extends BaseModel> extends QueryEntity<BaseEntityState<T>, T> {
|
|
7
|
+
protected store: BaseStore<T>;
|
|
8
|
+
constructor(store: BaseStore<T>);
|
|
9
|
+
selectAllEntities(): Observable<T[]>;
|
|
10
|
+
selectEntityById(id: string): Observable<T | undefined>;
|
|
11
|
+
getLists(): Observable<any>;
|
|
12
|
+
getRecordChange(): Observable<any>;
|
|
13
|
+
getOnDocumentAccept(): Observable<any>;
|
|
14
|
+
getonDailogClose(): Observable<any>;
|
|
15
|
+
getOpenDocument(): Observable<any>;
|
|
16
|
+
getAlertMessage(): Observable<any>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseQuery<any>, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseQuery<any>>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { BaseStore } from './base.store';
|
|
4
|
+
import { BaseModel } from '../models/base.model';
|
|
5
|
+
import { AppConfigService } from '../services/app-config.service';
|
|
6
|
+
import { ListService } from '../services/list.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class BaseService<T extends BaseModel> {
|
|
9
|
+
private store;
|
|
10
|
+
private appConfigService;
|
|
11
|
+
protected listService: ListService;
|
|
12
|
+
_pathName: string;
|
|
13
|
+
protected lists: string[];
|
|
14
|
+
protected http: HttpClient;
|
|
15
|
+
protected list: [];
|
|
16
|
+
constructor(http: HttpClient, store: BaseStore<T>, appConfigService: AppConfigService, listService: ListService);
|
|
17
|
+
get apiUrl(): string;
|
|
18
|
+
set pathName(value: string);
|
|
19
|
+
initList(): Promise<void>;
|
|
20
|
+
create(entity: T): Observable<T>;
|
|
21
|
+
getAll(): Observable<T[]>;
|
|
22
|
+
getById(id: string): Observable<T>;
|
|
23
|
+
update(id: string, entity: T): Observable<T>;
|
|
24
|
+
delete(id: string): Observable<void>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseService<any>, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseService<any>>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EntityState, EntityStore } from '@datorama/akita';
|
|
2
|
+
import { BaseState } from './base.state';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { BaseModel } from '../models/base.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface BaseEntityState<T> extends BaseState, EntityState<T> {
|
|
7
|
+
}
|
|
8
|
+
export declare class BaseStore<T extends BaseModel> extends EntityStore<BaseEntityState<T>, T> {
|
|
9
|
+
static storeName: string;
|
|
10
|
+
recordChange$: BehaviorSubject<any>;
|
|
11
|
+
onDocumentAccept$: BehaviorSubject<any>;
|
|
12
|
+
onDailogClose$: BehaviorSubject<any>;
|
|
13
|
+
openDocument$: BehaviorSubject<any>;
|
|
14
|
+
alertMessage$: BehaviorSubject<any>;
|
|
15
|
+
constructor();
|
|
16
|
+
setList(data: T[]): void;
|
|
17
|
+
setRecordChange(value: any): void;
|
|
18
|
+
setOnDocumentAccept(value: any): void;
|
|
19
|
+
setOnDailogClose(value: any): void;
|
|
20
|
+
setOpenDocument(value: any): void;
|
|
21
|
+
setAlertMessage(value: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseStore<any>, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseStore<any>>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TablePrimaryModel } from '../models/table-primary.model';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TablePrimaryComponent implements OnInit {
|
|
6
|
+
private _router;
|
|
7
|
+
table: TablePrimaryModel;
|
|
8
|
+
title: string;
|
|
9
|
+
showStatus: boolean;
|
|
10
|
+
showActions: boolean;
|
|
11
|
+
showSearchBar: boolean;
|
|
12
|
+
showNewRecordButton: boolean;
|
|
13
|
+
showRefreshButton: boolean;
|
|
14
|
+
globalFilter: string;
|
|
15
|
+
constructor(_router: Router);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
clearSearch(table: any): void;
|
|
18
|
+
refreshTable(): void;
|
|
19
|
+
handleCreate(): void;
|
|
20
|
+
handleEditClick(id: number): void;
|
|
21
|
+
editRow(rowData: any): void;
|
|
22
|
+
deleteRow(rowData: any): void;
|
|
23
|
+
viewRow(rowData: any): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TablePrimaryComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TablePrimaryComponent, "lib-table-primary", never, { "table": { "alias": "table"; "required": false; }; "title": { "alias": "title"; "required": false; }; "showStatus": { "alias": "showStatus"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "showNewRecordButton": { "alias": "showNewRecordButton"; "required": false; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cat-qw-lib",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^19.0.0",
|
|
6
|
-
"@angular/core": "^19.0.0"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.3.0"
|
|
10
|
-
},
|
|
11
|
-
"typings": "index.d.ts",
|
|
12
|
-
"main": "bundles/cat-qw-lib.umd.js",
|
|
13
|
-
"module": "
|
|
14
|
-
"es2015": "fesm2015/cat-qw-lib.js",
|
|
15
|
-
"sideEffects": false
|
|
16
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "cat-qw-lib",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^19.0.0",
|
|
6
|
+
"@angular/core": "^19.0.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"typings": "index.d.ts",
|
|
12
|
+
"main": "bundles/cat-qw-lib.umd.js",
|
|
13
|
+
"module": "fesm2022/cat-qw-lib.mjs",
|
|
14
|
+
"es2015": "fesm2015/cat-qw-lib.js",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"exports": {
|
|
17
|
+
"./package.json": {
|
|
18
|
+
"default": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./index.d.ts",
|
|
22
|
+
"default": "./fesm2022/cat-qw-lib.mjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export * from './lib/admin/
|
|
6
|
-
export * from './lib/admin/
|
|
7
|
-
export * from './lib/admin/api-admin/components/api-admin-list/api-admin-list.component';
|
|
8
|
-
|
|
9
|
-
export * from './lib/admin/action-admin/action-admin.module';
|
|
10
|
-
export * from './lib/admin/action-admin/components/admin-action-list/admin-action-list.component';
|
|
11
|
-
export * from './lib/admin/action-admin/components/admin-action-form/admin-action-form.component';
|
|
1
|
+
export * from './lib/admin/api-admin/api-admin.module';
|
|
2
|
+
export * from './lib/admin/api-admin/components/api-admin-form/api-admin-form.component';
|
|
3
|
+
export * from './lib/admin/api-admin/components/api-admin-list/api-admin-list.component';
|
|
4
|
+
export * from './lib/admin/action-admin/action-admin.module';
|
|
5
|
+
export * from './lib/admin/action-admin/components/admin-action-list/admin-action-list.component';
|
|
6
|
+
export * from './lib/admin/action-admin/components/admin-action-form/admin-action-form.component';
|
package/ng-package.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { AdminActionListComponent } from './components/admin-action-list/admin-action-list.component';
|
|
4
|
-
import { TablePrimaryComponent } from '../../shared';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@NgModule({
|
|
9
|
-
declarations: [AdminActionListComponent],
|
|
10
|
-
imports: [
|
|
11
|
-
CommonModule,
|
|
12
|
-
TablePrimaryComponent
|
|
13
|
-
],
|
|
14
|
-
exports: [AdminActionListComponent]
|
|
15
|
-
})
|
|
16
|
-
export class ActionAdminModule { }
|
package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<p>admin-action-form works!</p>
|
package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.scss
DELETED
|
File without changes
|
package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.spec.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { AdminActionFormComponent } from './admin-action-form.component';
|
|
4
|
-
|
|
5
|
-
describe('AdminActionFormComponent', () => {
|
|
6
|
-
let component: AdminActionFormComponent;
|
|
7
|
-
let fixture: ComponentFixture<AdminActionFormComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [AdminActionFormComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(AdminActionFormComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
package/src/lib/admin/action-admin/components/admin-action-form/admin-action-form.component.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'lib-admin-action-form',
|
|
5
|
-
standalone : false,
|
|
6
|
-
templateUrl: './admin-action-form.component.html',
|
|
7
|
-
styleUrl: './admin-action-form.component.scss'
|
|
8
|
-
})
|
|
9
|
-
export class AdminActionFormComponent {
|
|
10
|
-
|
|
11
|
-
}
|
package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.scss
DELETED
|
File without changes
|
package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.spec.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { AdminActionListComponent } from './admin-action-list.component';
|
|
4
|
-
|
|
5
|
-
describe('AdminActionListComponent', () => {
|
|
6
|
-
let component: AdminActionListComponent;
|
|
7
|
-
let fixture: ComponentFixture<AdminActionListComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [AdminActionListComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(AdminActionListComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
package/src/lib/admin/action-admin/components/admin-action-list/admin-action-list.component.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { BaseListComponent } from '../../../../shared/_base/base-list/base-list.component';
|
|
3
|
-
import { ActionModel } from '../../models/action.model';
|
|
4
|
-
import { TableBuilder } from '../../../../shared/services/table.builder';
|
|
5
|
-
import { ActionService } from '../../state/action.service';
|
|
6
|
-
import { actionHiddenHeaderList, actionList, actionTableColumnWidthList } from '../../../../shared/constant/SHARED';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'lib-admin-action-list',
|
|
10
|
-
standalone : false,
|
|
11
|
-
templateUrl: './admin-action-list.component.html',
|
|
12
|
-
styleUrl: './admin-action-list.component.scss'
|
|
13
|
-
})
|
|
14
|
-
export class AdminActionListComponent extends BaseListComponent<ActionModel>{
|
|
15
|
-
constructor(service: ActionService, private tableBuilder: TableBuilder){
|
|
16
|
-
super(service, tableBuilder)
|
|
17
|
-
this.tableBuilder.hiddenHeaders = actionHiddenHeaderList;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
override ngOnInit(): void {
|
|
21
|
-
const actionTableColumnWidths = actionTableColumnWidthList;
|
|
22
|
-
this.table = this.tableBuilder.buildTable(actionList, actionTableColumnWidths);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SHARED } from "../../../shared/constant/SHARED";
|
|
2
|
-
import { BaseModel } from "../../../shared/models/base.model";
|
|
3
|
-
|
|
4
|
-
export class ActionModel extends BaseModel {
|
|
5
|
-
actionName!: string;
|
|
6
|
-
apiEndPoint!: string;
|
|
7
|
-
prompt!: string;
|
|
8
|
-
queue!: string;
|
|
9
|
-
status!: StatusType;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type StatusType = "Enable" | "Disable";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { ActionModel } from '../models/action.model';
|
|
3
|
-
import { ActionStore } from './action.store';
|
|
4
|
-
import { BaseQuery } from '../../../shared/state/base.query';
|
|
5
|
-
|
|
6
|
-
@Injectable({ providedIn: 'root' })
|
|
7
|
-
export class ActionQuery extends BaseQuery<ActionModel> {
|
|
8
|
-
constructor(protected override store: ActionStore) {
|
|
9
|
-
super(store);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { ActionModel } from '../models/action.model';
|
|
5
|
-
import { ActionStore } from './action.store';
|
|
6
|
-
import { DATASOURCES } from '../../../shared/constant/DATASOURCES';
|
|
7
|
-
import { BaseService } from '../../../shared/state/base.service';
|
|
8
|
-
import { AppConfigService } from '../../../shared/services/app-config.service';
|
|
9
|
-
import { ListService } from '../../../shared/services/list.service';
|
|
10
|
-
|
|
11
|
-
@Injectable({ providedIn: 'root' })
|
|
12
|
-
export class ActionService extends BaseService<ActionModel> {
|
|
13
|
-
|
|
14
|
-
constructor(public actionStore: ActionStore, http: HttpClient, appConfigService : AppConfigService, listService:ListService) {
|
|
15
|
-
super(http, actionStore, appConfigService,listService);
|
|
16
|
-
this._pathName = DATASOURCES.ACTIONS;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseState } from "../../../shared/state/base.state";
|
|
2
|
-
import { ActionModel } from "../models/action.model";
|
|
3
|
-
|
|
4
|
-
export interface ActionState extends BaseState {
|
|
5
|
-
actions: ActionModel[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export function createInitialState(): ActionState {
|
|
9
|
-
return {
|
|
10
|
-
actions: [],
|
|
11
|
-
records: [],
|
|
12
|
-
lists: []
|
|
13
|
-
};
|
|
14
|
-
}
|