tin-spa 2.13.15 → 9.1.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/README.md +2 -2
- package/bundles/tin-spa.umd.js +6694 -0
- package/bundles/tin-spa.umd.js.map +1 -0
- package/bundles/tin-spa.umd.min.js +16 -0
- package/bundles/tin-spa.umd.min.js.map +1 -0
- package/esm2015/lib/classes/Classes.js +254 -0
- package/esm2015/lib/classes/TinCore.js +137 -0
- package/esm2015/lib/components/activity/activity.component.js +92 -0
- package/esm2015/lib/components/attach/attach.component.js +181 -0
- package/esm2015/lib/components/change-password/change-password.component.js +179 -0
- package/esm2015/lib/components/check/check.component.js +69 -0
- package/esm2015/lib/components/chips/chips.component.js +107 -0
- package/esm2015/lib/components/create-account/create-account.component.js +160 -0
- package/esm2015/lib/components/date/date.component.js +66 -0
- package/esm2015/lib/components/datetime/datetime.component.js +57 -0
- package/esm2015/lib/components/filter/filter.component.js +64 -0
- package/esm2015/lib/components/html/html.component.js +102 -0
- package/esm2015/lib/components/label/label.component.js +117 -0
- package/esm2015/lib/components/loader/loader.component.js +53 -0
- package/esm2015/lib/components/login/login.component.js +240 -0
- package/esm2015/lib/components/logs/logs.component.js +195 -0
- package/esm2015/lib/components/message/messageDialog.component.js +142 -0
- package/esm2015/lib/components/money/currency-input-mask.directive.js +187 -0
- package/esm2015/lib/components/money/currency-input-mask.module.js +30 -0
- package/esm2015/lib/components/money/money.component.js +152 -0
- package/esm2015/lib/components/nav-menu/nav-menu.component.js +204 -0
- package/esm2015/lib/components/option/option.component.js +129 -0
- package/esm2015/lib/components/profile/profile.component.js +198 -0
- package/esm2015/lib/components/recover-account/recover-account.component.js +74 -0
- package/esm2015/lib/components/roles/addRoleDialog.component.js +132 -0
- package/esm2015/lib/components/roles/roles.component.js +211 -0
- package/esm2015/lib/components/select/select.component.js +133 -0
- package/esm2015/lib/components/settings/settings.component.js +118 -0
- package/esm2015/lib/components/signup/signup.component.js +139 -0
- package/esm2015/lib/components/steps/steps.component.js +114 -0
- package/esm2015/lib/components/table/table.component.js +375 -0
- package/esm2015/lib/components/text/text.component.js +240 -0
- package/esm2015/lib/components/tiles/tiles.component.js +95 -0
- package/esm2015/lib/components/timeout/timeout.component.js +133 -0
- package/esm2015/lib/components/tin-spa.component.js +26 -0
- package/esm2015/lib/components/users/users.component.js +373 -0
- package/esm2015/lib/components/viewer/viewer.component.js +92 -0
- package/esm2015/lib/components/viewer/viewerDialog.component.js +131 -0
- package/esm2015/lib/dnd.directive.js +56 -0
- package/esm2015/lib/modules/spa-admin.module.js +81 -0
- package/esm2015/lib/modules/spa-index.module.js +58 -0
- package/esm2015/lib/modules/spa-mat.module.js +68 -0
- package/esm2015/lib/modules/spa-user.module.js +55 -0
- package/esm2015/lib/services/auth.service.js +142 -0
- package/esm2015/lib/services/data.service.js +111 -0
- package/esm2015/lib/services/export.service.js +29 -0
- package/esm2015/lib/services/http.service.js +79 -0
- package/esm2015/lib/services/loader-interceptor.service.js +77 -0
- package/esm2015/lib/services/loader.service.js +17 -0
- package/esm2015/lib/services/log.service.js +76 -0
- package/esm2015/lib/services/message.service.js +52 -0
- package/esm2015/lib/services/storage.service.js +43 -0
- package/esm2015/lib/services/tin-spa.service.js +14 -0
- package/esm2015/lib/tin-spa.module.js +156 -0
- package/esm2015/public-api.js +56 -0
- package/esm2015/tin-spa.js +5 -0
- package/esm5/lib/classes/Classes.js +313 -0
- package/esm5/lib/classes/TinCore.js +164 -0
- package/esm5/lib/components/activity/activity.component.js +94 -0
- package/esm5/lib/components/attach/attach.component.js +195 -0
- package/esm5/lib/components/change-password/change-password.component.js +182 -0
- package/esm5/lib/components/check/check.component.js +71 -0
- package/esm5/lib/components/chips/chips.component.js +110 -0
- package/esm5/lib/components/create-account/create-account.component.js +163 -0
- package/esm5/lib/components/date/date.component.js +68 -0
- package/esm5/lib/components/datetime/datetime.component.js +59 -0
- package/esm5/lib/components/filter/filter.component.js +66 -0
- package/esm5/lib/components/html/html.component.js +104 -0
- package/esm5/lib/components/label/label.component.js +119 -0
- package/esm5/lib/components/loader/loader.component.js +56 -0
- package/esm5/lib/components/login/login.component.js +244 -0
- package/esm5/lib/components/logs/logs.component.js +198 -0
- package/esm5/lib/components/message/messageDialog.component.js +144 -0
- package/esm5/lib/components/money/currency-input-mask.directive.js +193 -0
- package/esm5/lib/components/money/currency-input-mask.module.js +34 -0
- package/esm5/lib/components/money/money.component.js +154 -0
- package/esm5/lib/components/nav-menu/nav-menu.component.js +207 -0
- package/esm5/lib/components/option/option.component.js +131 -0
- package/esm5/lib/components/profile/profile.component.js +203 -0
- package/esm5/lib/components/recover-account/recover-account.component.js +77 -0
- package/esm5/lib/components/roles/addRoleDialog.component.js +135 -0
- package/esm5/lib/components/roles/roles.component.js +218 -0
- package/esm5/lib/components/select/select.component.js +136 -0
- package/esm5/lib/components/settings/settings.component.js +122 -0
- package/esm5/lib/components/signup/signup.component.js +142 -0
- package/esm5/lib/components/steps/steps.component.js +128 -0
- package/esm5/lib/components/table/table.component.js +378 -0
- package/esm5/lib/components/text/text.component.js +244 -0
- package/esm5/lib/components/tiles/tiles.component.js +97 -0
- package/esm5/lib/components/timeout/timeout.component.js +136 -0
- package/esm5/lib/components/tin-spa.component.js +25 -0
- package/esm5/lib/components/users/users.component.js +380 -0
- package/esm5/lib/components/viewer/viewer.component.js +94 -0
- package/esm5/lib/components/viewer/viewerDialog.component.js +133 -0
- package/esm5/lib/dnd.directive.js +58 -0
- package/esm5/lib/modules/spa-admin.module.js +85 -0
- package/esm5/lib/modules/spa-index.module.js +62 -0
- package/esm5/lib/modules/spa-mat.module.js +72 -0
- package/esm5/lib/modules/spa-user.module.js +59 -0
- package/esm5/lib/services/auth.service.js +145 -0
- package/esm5/lib/services/data.service.js +113 -0
- package/esm5/lib/services/export.service.js +31 -0
- package/esm5/lib/services/http.service.js +81 -0
- package/esm5/lib/services/loader-interceptor.service.js +80 -0
- package/esm5/lib/services/loader.service.js +19 -0
- package/esm5/lib/services/log.service.js +114 -0
- package/esm5/lib/services/message.service.js +54 -0
- package/esm5/lib/services/storage.service.js +76 -0
- package/esm5/lib/services/tin-spa.service.js +17 -0
- package/esm5/lib/tin-spa.module.js +160 -0
- package/esm5/public-api.js +56 -0
- package/esm5/tin-spa.js +5 -0
- package/fesm2015/tin-spa.js +6204 -0
- package/fesm2015/tin-spa.js.map +1 -0
- package/fesm5/tin-spa.js +6453 -0
- package/fesm5/tin-spa.js.map +1 -0
- package/lib/classes/Classes.d.ts +228 -375
- package/lib/classes/TinCore.d.ts +11 -43
- package/lib/components/activity/activity.component.d.ts +2 -2
- package/lib/components/attach/attach.component.d.ts +27 -15
- package/lib/{pages → components}/change-password/change-password.component.d.ts +4 -4
- package/lib/components/check/check.component.d.ts +3 -8
- package/lib/components/chips/chips.component.d.ts +2 -2
- package/lib/{pages → components}/create-account/create-account.component.d.ts +4 -8
- package/lib/components/date/date.component.d.ts +12 -24
- package/lib/components/datetime/datetime.component.d.ts +2 -6
- package/lib/components/filter/filter.component.d.ts +2 -7
- package/lib/components/html/html.component.d.ts +10 -11
- package/lib/components/label/label.component.d.ts +2 -4
- package/lib/components/loader/loader.component.d.ts +2 -2
- package/lib/components/login/login.component.d.ts +32 -0
- package/lib/components/logs/logs.component.d.ts +18 -0
- package/lib/components/message/messageDialog.component.d.ts +2 -2
- package/lib/components/money/currency-input-mask.directive.d.ts +2 -2
- package/lib/components/money/currency-input-mask.module.d.ts +2 -3
- package/lib/components/money/money.component.d.ts +3 -13
- package/lib/components/nav-menu/nav-menu.component.d.ts +4 -22
- package/lib/components/option/option.component.d.ts +3 -14
- package/lib/{pages → components}/profile/profile.component.d.ts +4 -6
- package/lib/{pages → components}/recover-account/recover-account.component.d.ts +3 -3
- package/lib/components/roles/addRoleDialog.component.d.ts +22 -0
- package/lib/components/roles/roles.component.d.ts +30 -0
- package/lib/components/select/select.component.d.ts +20 -20
- package/lib/{pages → components}/settings/settings.component.d.ts +3 -3
- package/lib/{pages → components}/signup/signup.component.d.ts +4 -4
- package/lib/components/steps/steps.component.d.ts +10 -19
- package/lib/components/table/table.component.d.ts +21 -84
- package/lib/components/text/text.component.d.ts +14 -36
- package/lib/components/tiles/tiles.component.d.ts +7 -21
- package/lib/components/timeout/timeout.component.d.ts +24 -0
- package/lib/components/tin-spa.component.d.ts +6 -3
- package/lib/{pages → components}/users/users.component.d.ts +18 -11
- package/lib/components/viewer/viewer.component.d.ts +5 -11
- package/lib/components/viewer/viewerDialog.component.d.ts +4 -6
- package/lib/dnd.directive.d.ts +11 -0
- package/lib/modules/spa-admin.module.d.ts +10 -10
- package/lib/modules/spa-index.module.d.ts +7 -8
- package/lib/modules/spa-mat.module.d.ts +2 -8
- package/lib/modules/spa-user.module.d.ts +6 -6
- package/lib/services/auth.service.d.ts +4 -16
- package/lib/services/data.service.d.ts +38 -0
- package/lib/services/export.service.d.ts +6 -2
- package/lib/services/http.service.d.ts +2 -2
- package/lib/services/loader-interceptor.service.d.ts +3 -4
- package/lib/services/loader.service.d.ts +2 -2
- package/lib/services/log.service.d.ts +3 -3
- package/lib/services/message.service.d.ts +3 -4
- package/lib/services/storage.service.d.ts +2 -2
- package/lib/services/tin-spa.service.d.ts +2 -2
- package/lib/tin-spa.module.d.ts +34 -83
- package/package.json +16 -24
- package/public-api.d.ts +16 -47
- package/esm2020/lib/classes/Classes.mjs +0 -112
- package/esm2020/lib/classes/LibClasses.mjs +0 -180
- package/esm2020/lib/classes/TinCore.mjs +0 -568
- package/esm2020/lib/components/activity/activity.component.mjs +0 -24
- package/esm2020/lib/components/alert/alert.component.mjs +0 -43
- package/esm2020/lib/components/attach/attach.component.mjs +0 -102
- package/esm2020/lib/components/capsules/capsules.component.mjs +0 -63
- package/esm2020/lib/components/cards/cards.component.mjs +0 -103
- package/esm2020/lib/components/check/check.component.mjs +0 -67
- package/esm2020/lib/components/chips/chips.component.mjs +0 -58
- package/esm2020/lib/components/date/date.component.mjs +0 -103
- package/esm2020/lib/components/datetime/datetime.component.mjs +0 -55
- package/esm2020/lib/components/email/email.component.mjs +0 -133
- package/esm2020/lib/components/filter/filter.component.mjs +0 -58
- package/esm2020/lib/components/form/form.component.mjs +0 -296
- package/esm2020/lib/components/html/html.component.mjs +0 -34
- package/esm2020/lib/components/label/label.component.mjs +0 -31
- package/esm2020/lib/components/list-dialog/list-dialog.component.mjs +0 -68
- package/esm2020/lib/components/loader/loader.component.mjs +0 -25
- package/esm2020/lib/components/message/messageDialog.component.mjs +0 -33
- package/esm2020/lib/components/money/currency-input-mask.directive.mjs +0 -185
- package/esm2020/lib/components/money/currency-input-mask.module.mjs +0 -28
- package/esm2020/lib/components/money/money.component.mjs +0 -137
- package/esm2020/lib/components/multi-select/multi-select.component.mjs +0 -165
- package/esm2020/lib/components/multi-text/multi-text.component.mjs +0 -208
- package/esm2020/lib/components/nav-menu/nav-menu.component.mjs +0 -88
- package/esm2020/lib/components/notes/notes.component.mjs +0 -62
- package/esm2020/lib/components/number/number.component.mjs +0 -131
- package/esm2020/lib/components/option/option.component.mjs +0 -92
- package/esm2020/lib/components/page/page.component.mjs +0 -101
- package/esm2020/lib/components/search/search.component.mjs +0 -36
- package/esm2020/lib/components/select/select.component.mjs +0 -75
- package/esm2020/lib/components/select-bitwise/select-bitwise.component.mjs +0 -87
- package/esm2020/lib/components/select-common/select-common.component.mjs +0 -206
- package/esm2020/lib/components/select-internal/select-internal.component.mjs +0 -75
- package/esm2020/lib/components/select-lite/select-lite.component.mjs +0 -18
- package/esm2020/lib/components/statuses/statuses.component.mjs +0 -44
- package/esm2020/lib/components/steps/steps.component.mjs +0 -112
- package/esm2020/lib/components/suffix/suffix.component.mjs +0 -70
- package/esm2020/lib/components/table/detailsDialog.component.mjs +0 -406
- package/esm2020/lib/components/table/table.component.mjs +0 -440
- package/esm2020/lib/components/table-action/table-action.component.mjs +0 -80
- package/esm2020/lib/components/table-header/table-header.component.mjs +0 -148
- package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +0 -406
- package/esm2020/lib/components/table-internal/table-internal.component.mjs +0 -441
- package/esm2020/lib/components/table-lite/detailsDialog-lite.component.mjs +0 -404
- package/esm2020/lib/components/table-lite/table-lite.component.mjs +0 -441
- package/esm2020/lib/components/table-row/table-row.component.mjs +0 -93
- package/esm2020/lib/components/tabs/tabs.component.mjs +0 -74
- package/esm2020/lib/components/text/text.component.mjs +0 -255
- package/esm2020/lib/components/tiles/tiles.component.mjs +0 -99
- package/esm2020/lib/components/tin-spa.component.mjs +0 -19
- package/esm2020/lib/components/viewer/viewer.component.mjs +0 -83
- package/esm2020/lib/components/viewer/viewerDialog.component.mjs +0 -95
- package/esm2020/lib/modules/admin/admin-routing.module.mjs +0 -71
- package/esm2020/lib/modules/admin/admin.module.mjs +0 -26
- package/esm2020/lib/modules/index/index-routing.module.mjs +0 -27
- package/esm2020/lib/modules/index/index.module.mjs +0 -26
- package/esm2020/lib/modules/spa-admin.module.mjs +0 -71
- package/esm2020/lib/modules/spa-index.module.mjs +0 -54
- package/esm2020/lib/modules/spa-mat.module.mjs +0 -84
- package/esm2020/lib/modules/spa-user.module.mjs +0 -47
- package/esm2020/lib/modules/user/user-routing.module.mjs +0 -23
- package/esm2020/lib/modules/user/user.module.mjs +0 -26
- package/esm2020/lib/pages/accounts/accountDialog.component.mjs +0 -56
- package/esm2020/lib/pages/accounts/accounts.component.mjs +0 -70
- package/esm2020/lib/pages/app-models/app-models.component.mjs +0 -56
- package/esm2020/lib/pages/approvals/approvals.component.mjs +0 -19
- package/esm2020/lib/pages/approvals-config/approvals-config.component.mjs +0 -165
- package/esm2020/lib/pages/bug/bug.component.mjs +0 -14
- package/esm2020/lib/pages/change-password/change-password.component.mjs +0 -92
- package/esm2020/lib/pages/create-account/create-account.component.mjs +0 -110
- package/esm2020/lib/pages/customers/customers.component.mjs +0 -21
- package/esm2020/lib/pages/departments/departments.component.mjs +0 -22
- package/esm2020/lib/pages/employees/employees.component.mjs +0 -20
- package/esm2020/lib/pages/grades/grades.component.mjs +0 -14
- package/esm2020/lib/pages/inventory/inventory.component.mjs +0 -99
- package/esm2020/lib/pages/inventory/quantityDialog.component.mjs +0 -53
- package/esm2020/lib/pages/invitations-table/invitations-table.component.mjs +0 -71
- package/esm2020/lib/pages/login/login.component.mjs +0 -166
- package/esm2020/lib/pages/logs/logs.component.mjs +0 -42
- package/esm2020/lib/pages/membership/membership.component.mjs +0 -44
- package/esm2020/lib/pages/notifications/notifications.component.mjs +0 -90
- package/esm2020/lib/pages/notifications-config/notifications-config.component.mjs +0 -113
- package/esm2020/lib/pages/plans/plans.component.mjs +0 -44
- package/esm2020/lib/pages/positions/positions.component.mjs +0 -21
- package/esm2020/lib/pages/profile/profile.component.mjs +0 -94
- package/esm2020/lib/pages/recover-account/recover-account.component.mjs +0 -46
- package/esm2020/lib/pages/roles/addRoleDialog.component.mjs +0 -60
- package/esm2020/lib/pages/roles/roles.component.mjs +0 -151
- package/esm2020/lib/pages/settings/settings.component.mjs +0 -54
- package/esm2020/lib/pages/signup/signup.component.mjs +0 -50
- package/esm2020/lib/pages/suppliers/suppliers.component.mjs +0 -22
- package/esm2020/lib/pages/tasks/tasks.component.mjs +0 -86
- package/esm2020/lib/pages/tenant-settings/tenant-settings.component.mjs +0 -228
- package/esm2020/lib/pages/tenants/tenants.component.mjs +0 -47
- package/esm2020/lib/pages/transactions/transactDialog.component.mjs +0 -80
- package/esm2020/lib/pages/transactions/transactions.component.mjs +0 -101
- package/esm2020/lib/pages/users/users.component.mjs +0 -167
- package/esm2020/lib/pages/welcome/welcome.component.mjs +0 -86
- package/esm2020/lib/pipes/camelToWords.pipe.mjs +0 -17
- package/esm2020/lib/select-context.directive.mjs +0 -23
- package/esm2020/lib/services/auth.service.mjs +0 -175
- package/esm2020/lib/services/button.service.mjs +0 -162
- package/esm2020/lib/services/condition.service.mjs +0 -32
- package/esm2020/lib/services/csv.service.mjs +0 -49
- package/esm2020/lib/services/datalib.service.mjs +0 -860
- package/esm2020/lib/services/dialog.service.mjs +0 -125
- package/esm2020/lib/services/export.service.mjs +0 -16
- package/esm2020/lib/services/http.service.mjs +0 -79
- package/esm2020/lib/services/loader-interceptor.service.mjs +0 -86
- package/esm2020/lib/services/loader.service.mjs +0 -17
- package/esm2020/lib/services/log.service.mjs +0 -77
- package/esm2020/lib/services/message.service.mjs +0 -59
- package/esm2020/lib/services/notifications.service.mjs +0 -33
- package/esm2020/lib/services/storage.service.mjs +0 -34
- package/esm2020/lib/services/table-config.service.mjs +0 -78
- package/esm2020/lib/services/tin-spa.service.mjs +0 -14
- package/esm2020/lib/tin-spa.module.mjs +0 -225
- package/esm2020/public-api.mjs +0 -90
- package/esm2020/tin-spa.mjs +0 -5
- package/fesm2015/tin-spa.mjs +0 -11736
- package/fesm2015/tin-spa.mjs.map +0 -1
- package/fesm2020/tin-spa.mjs +0 -11738
- package/fesm2020/tin-spa.mjs.map +0 -1
- package/lib/classes/LibClasses.d.ts +0 -173
- package/lib/components/alert/alert.component.d.ts +0 -15
- package/lib/components/capsules/capsules.component.d.ts +0 -26
- package/lib/components/cards/cards.component.d.ts +0 -39
- package/lib/components/email/email.component.d.ts +0 -40
- package/lib/components/form/form.component.d.ts +0 -47
- package/lib/components/list-dialog/list-dialog.component.d.ts +0 -23
- package/lib/components/multi-select/multi-select.component.d.ts +0 -47
- package/lib/components/multi-text/multi-text.component.d.ts +0 -56
- package/lib/components/notes/notes.component.d.ts +0 -19
- package/lib/components/number/number.component.d.ts +0 -41
- package/lib/components/page/page.component.d.ts +0 -38
- package/lib/components/search/search.component.d.ts +0 -15
- package/lib/components/select-bitwise/select-bitwise.component.d.ts +0 -31
- package/lib/components/select-common/select-common.component.d.ts +0 -53
- package/lib/components/select-internal/select-internal.component.d.ts +0 -23
- package/lib/components/select-lite/select-lite.component.d.ts +0 -8
- package/lib/components/statuses/statuses.component.d.ts +0 -12
- package/lib/components/suffix/suffix.component.d.ts +0 -23
- package/lib/components/table/detailsDialog.component.d.ts +0 -86
- package/lib/components/table-action/table-action.component.d.ts +0 -25
- package/lib/components/table-header/table-header.component.d.ts +0 -46
- package/lib/components/table-internal/detailsDialog-internal.component.d.ts +0 -86
- package/lib/components/table-internal/table-internal.component.d.ts +0 -91
- package/lib/components/table-lite/detailsDialog-lite.component.d.ts +0 -86
- package/lib/components/table-lite/table-lite.component.d.ts +0 -91
- package/lib/components/table-row/table-row.component.d.ts +0 -31
- package/lib/components/tabs/tabs.component.d.ts +0 -32
- package/lib/modules/admin/admin-routing.module.d.ts +0 -7
- package/lib/modules/admin/admin.module.d.ts +0 -9
- package/lib/modules/index/index-routing.module.d.ts +0 -7
- package/lib/modules/index/index.module.d.ts +0 -9
- package/lib/modules/user/user-routing.module.d.ts +0 -7
- package/lib/modules/user/user.module.d.ts +0 -9
- package/lib/pages/accounts/accountDialog.component.d.ts +0 -27
- package/lib/pages/accounts/accounts.component.d.ts +0 -25
- package/lib/pages/app-models/app-models.component.d.ts +0 -15
- package/lib/pages/approvals/approvals.component.d.ts +0 -10
- package/lib/pages/approvals-config/approvals-config.component.d.ts +0 -24
- package/lib/pages/bug/bug.component.d.ts +0 -8
- package/lib/pages/customers/customers.component.d.ts +0 -12
- package/lib/pages/departments/departments.component.d.ts +0 -14
- package/lib/pages/employees/employees.component.d.ts +0 -12
- package/lib/pages/grades/grades.component.d.ts +0 -8
- package/lib/pages/inventory/inventory.component.d.ts +0 -25
- package/lib/pages/inventory/quantityDialog.component.d.ts +0 -23
- package/lib/pages/invitations-table/invitations-table.component.d.ts +0 -19
- package/lib/pages/login/login.component.d.ts +0 -46
- package/lib/pages/logs/logs.component.d.ts +0 -14
- package/lib/pages/membership/membership.component.d.ts +0 -13
- package/lib/pages/notifications/notifications.component.d.ts +0 -16
- package/lib/pages/notifications-config/notifications-config.component.d.ts +0 -17
- package/lib/pages/plans/plans.component.d.ts +0 -13
- package/lib/pages/positions/positions.component.d.ts +0 -12
- package/lib/pages/roles/addRoleDialog.component.d.ts +0 -24
- package/lib/pages/roles/roles.component.d.ts +0 -42
- package/lib/pages/suppliers/suppliers.component.d.ts +0 -14
- package/lib/pages/tasks/tasks.component.d.ts +0 -27
- package/lib/pages/tenant-settings/tenant-settings.component.d.ts +0 -47
- package/lib/pages/tenants/tenants.component.d.ts +0 -17
- package/lib/pages/transactions/transactDialog.component.d.ts +0 -26
- package/lib/pages/transactions/transactions.component.d.ts +0 -31
- package/lib/pages/welcome/welcome.component.d.ts +0 -25
- package/lib/pipes/camelToWords.pipe.d.ts +0 -7
- package/lib/select-context.directive.d.ts +0 -10
- package/lib/services/button.service.d.ts +0 -30
- package/lib/services/condition.service.d.ts +0 -10
- package/lib/services/csv.service.d.ts +0 -10
- package/lib/services/datalib.service.d.ts +0 -125
- package/lib/services/dialog.service.d.ts +0 -20
- package/lib/services/notifications.service.d.ts +0 -12
- package/lib/services/table-config.service.d.ts +0 -17
- /package/{index.d.ts → tin-spa.d.ts} +0 -0
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { Component, ViewChild } from "@angular/core";
|
|
2
|
+
import { MatTableDataSource } from "@angular/material/table";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../services/http.service";
|
|
5
|
+
import * as i2 from "@angular/router";
|
|
6
|
+
import * as i3 from "../../services/auth.service";
|
|
7
|
+
import * as i4 from "../../services/data.service";
|
|
8
|
+
import * as i5 from "@angular/material/dialog";
|
|
9
|
+
import * as i6 from "../../services/message.service";
|
|
10
|
+
import * as i7 from "@angular/material/button";
|
|
11
|
+
import * as i8 from "../filter/filter.component";
|
|
12
|
+
import * as i9 from "@angular/common";
|
|
13
|
+
import * as i10 from "@angular/material/paginator";
|
|
14
|
+
import * as i11 from "@angular/material/table";
|
|
15
|
+
import * as i12 from "@angular/material/tooltip";
|
|
16
|
+
import * as i13 from "@angular/material/icon";
|
|
17
|
+
const _c0 = ["usersPaginator"];
|
|
18
|
+
function UsersComponent_p_10_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵelementStart(0, "p");
|
|
20
|
+
i0.ɵɵelementStart(1, "em");
|
|
21
|
+
i0.ɵɵtext(2, "Loading...");
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
} }
|
|
25
|
+
function UsersComponent_div_11_th_3_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
+
i0.ɵɵelementStart(0, "th", 25);
|
|
27
|
+
i0.ɵɵtext(1, " userName ");
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
} }
|
|
30
|
+
function UsersComponent_div_11_td_4_Template(rf, ctx) { if (rf & 1) {
|
|
31
|
+
i0.ɵɵelementStart(0, "td", 26);
|
|
32
|
+
i0.ɵɵtext(1);
|
|
33
|
+
i0.ɵɵelementEnd();
|
|
34
|
+
} if (rf & 2) {
|
|
35
|
+
const user_r21 = ctx.$implicit;
|
|
36
|
+
i0.ɵɵadvance(1);
|
|
37
|
+
i0.ɵɵtextInterpolate1(" ", user_r21.userName, " ");
|
|
38
|
+
} }
|
|
39
|
+
function UsersComponent_div_11_th_6_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
i0.ɵɵelementStart(0, "th", 25);
|
|
41
|
+
i0.ɵɵtext(1, " Locked ");
|
|
42
|
+
i0.ɵɵelementEnd();
|
|
43
|
+
} }
|
|
44
|
+
function UsersComponent_div_11_td_7_Template(rf, ctx) { if (rf & 1) {
|
|
45
|
+
i0.ɵɵelementStart(0, "td", 26);
|
|
46
|
+
i0.ɵɵtext(1);
|
|
47
|
+
i0.ɵɵelementEnd();
|
|
48
|
+
} if (rf & 2) {
|
|
49
|
+
const user_r22 = ctx.$implicit;
|
|
50
|
+
i0.ɵɵadvance(1);
|
|
51
|
+
i0.ɵɵtextInterpolate1(" ", user_r22.locked, " ");
|
|
52
|
+
} }
|
|
53
|
+
function UsersComponent_div_11_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
+
i0.ɵɵelementStart(0, "th", 25);
|
|
55
|
+
i0.ɵɵtext(1, " Name ");
|
|
56
|
+
i0.ɵɵelementEnd();
|
|
57
|
+
} }
|
|
58
|
+
function UsersComponent_div_11_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
+
i0.ɵɵelementStart(0, "td", 26);
|
|
60
|
+
i0.ɵɵtext(1);
|
|
61
|
+
i0.ɵɵelementEnd();
|
|
62
|
+
} if (rf & 2) {
|
|
63
|
+
const user_r23 = ctx.$implicit;
|
|
64
|
+
i0.ɵɵadvance(1);
|
|
65
|
+
i0.ɵɵtextInterpolate2(" ", user_r23.firstName, " ", user_r23.lastName, " ");
|
|
66
|
+
} }
|
|
67
|
+
function UsersComponent_div_11_th_12_Template(rf, ctx) { if (rf & 1) {
|
|
68
|
+
i0.ɵɵelementStart(0, "th", 25);
|
|
69
|
+
i0.ɵɵtext(1, " Role ");
|
|
70
|
+
i0.ɵɵelementEnd();
|
|
71
|
+
} }
|
|
72
|
+
function UsersComponent_div_11_td_13_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
+
i0.ɵɵelementStart(0, "td", 26);
|
|
74
|
+
i0.ɵɵtext(1);
|
|
75
|
+
i0.ɵɵelementEnd();
|
|
76
|
+
} if (rf & 2) {
|
|
77
|
+
const user_r24 = ctx.$implicit;
|
|
78
|
+
i0.ɵɵadvance(1);
|
|
79
|
+
i0.ɵɵtextInterpolate1(" ", user_r24.role.roleName, " ");
|
|
80
|
+
} }
|
|
81
|
+
function UsersComponent_div_11_th_15_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
i0.ɵɵelementStart(0, "th", 25);
|
|
83
|
+
i0.ɵɵtext(1, " Disabled ");
|
|
84
|
+
i0.ɵɵelementEnd();
|
|
85
|
+
} }
|
|
86
|
+
function UsersComponent_div_11_td_16_Template(rf, ctx) { if (rf & 1) {
|
|
87
|
+
i0.ɵɵelementStart(0, "td", 26);
|
|
88
|
+
i0.ɵɵtext(1);
|
|
89
|
+
i0.ɵɵelementEnd();
|
|
90
|
+
} if (rf & 2) {
|
|
91
|
+
const user_r25 = ctx.$implicit;
|
|
92
|
+
i0.ɵɵadvance(1);
|
|
93
|
+
i0.ɵɵtextInterpolate1(" ", user_r25.disabled, " ");
|
|
94
|
+
} }
|
|
95
|
+
function UsersComponent_div_11_th_18_Template(rf, ctx) { if (rf & 1) {
|
|
96
|
+
i0.ɵɵelementStart(0, "th", 25);
|
|
97
|
+
i0.ɵɵtext(1, " Created ");
|
|
98
|
+
i0.ɵɵelementEnd();
|
|
99
|
+
} }
|
|
100
|
+
function UsersComponent_div_11_td_19_Template(rf, ctx) { if (rf & 1) {
|
|
101
|
+
i0.ɵɵelementStart(0, "td", 26);
|
|
102
|
+
i0.ɵɵtext(1);
|
|
103
|
+
i0.ɵɵpipe(2, "date");
|
|
104
|
+
i0.ɵɵelementEnd();
|
|
105
|
+
} if (rf & 2) {
|
|
106
|
+
const user_r26 = ctx.$implicit;
|
|
107
|
+
i0.ɵɵadvance(1);
|
|
108
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, user_r26.createdDate, "dd/MM/yyyy"), " ");
|
|
109
|
+
} }
|
|
110
|
+
function UsersComponent_div_11_th_21_Template(rf, ctx) { if (rf & 1) {
|
|
111
|
+
i0.ɵɵelementStart(0, "th", 25);
|
|
112
|
+
i0.ɵɵtext(1, " Updated ");
|
|
113
|
+
i0.ɵɵelementEnd();
|
|
114
|
+
} }
|
|
115
|
+
function UsersComponent_div_11_td_22_Template(rf, ctx) { if (rf & 1) {
|
|
116
|
+
i0.ɵɵelementStart(0, "td", 26);
|
|
117
|
+
i0.ɵɵtext(1);
|
|
118
|
+
i0.ɵɵpipe(2, "date");
|
|
119
|
+
i0.ɵɵelementEnd();
|
|
120
|
+
} if (rf & 2) {
|
|
121
|
+
const user_r27 = ctx.$implicit;
|
|
122
|
+
i0.ɵɵadvance(1);
|
|
123
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, user_r27.updatedDate, "dd/MM/yyyy"), " ");
|
|
124
|
+
} }
|
|
125
|
+
function UsersComponent_div_11_th_24_Template(rf, ctx) { if (rf & 1) {
|
|
126
|
+
i0.ɵɵelementStart(0, "th", 25);
|
|
127
|
+
i0.ɵɵtext(1, " Action ");
|
|
128
|
+
i0.ɵɵelementEnd();
|
|
129
|
+
} }
|
|
130
|
+
function UsersComponent_div_11_td_25_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
131
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
132
|
+
i0.ɵɵelementStart(0, "button", 32);
|
|
133
|
+
i0.ɵɵlistener("click", function UsersComponent_div_11_td_25_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r33); const user_r28 = i0.ɵɵnextContext().$implicit; const ctx_r31 = i0.ɵɵnextContext(2); return ctx_r31.lock(user_r28); });
|
|
134
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
135
|
+
i0.ɵɵtext(2, "lock");
|
|
136
|
+
i0.ɵɵelementEnd();
|
|
137
|
+
i0.ɵɵelementEnd();
|
|
138
|
+
} }
|
|
139
|
+
function UsersComponent_div_11_td_25_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
140
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
141
|
+
i0.ɵɵelementStart(0, "button", 33);
|
|
142
|
+
i0.ɵɵlistener("click", function UsersComponent_div_11_td_25_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r36); const user_r28 = i0.ɵɵnextContext().$implicit; const ctx_r34 = i0.ɵɵnextContext(2); return ctx_r34.unlock(user_r28); });
|
|
143
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
144
|
+
i0.ɵɵtext(2, "lock_open");
|
|
145
|
+
i0.ɵɵelementEnd();
|
|
146
|
+
i0.ɵɵelementEnd();
|
|
147
|
+
} }
|
|
148
|
+
function UsersComponent_div_11_td_25_Template(rf, ctx) { if (rf & 1) {
|
|
149
|
+
const _r38 = i0.ɵɵgetCurrentView();
|
|
150
|
+
i0.ɵɵelementStart(0, "td", 27);
|
|
151
|
+
i0.ɵɵelementStart(1, "button", 28);
|
|
152
|
+
i0.ɵɵlistener("click", function UsersComponent_div_11_td_25_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r38); const user_r28 = ctx.$implicit; const ctx_r37 = i0.ɵɵnextContext(2); return ctx_r37.viewProfile(user_r28); });
|
|
153
|
+
i0.ɵɵelementStart(2, "mat-icon");
|
|
154
|
+
i0.ɵɵtext(3, "account_circle");
|
|
155
|
+
i0.ɵɵelementEnd();
|
|
156
|
+
i0.ɵɵelementEnd();
|
|
157
|
+
i0.ɵɵtemplate(4, UsersComponent_div_11_td_25_button_4_Template, 3, 0, "button", 29);
|
|
158
|
+
i0.ɵɵtemplate(5, UsersComponent_div_11_td_25_button_5_Template, 3, 0, "button", 30);
|
|
159
|
+
i0.ɵɵelementStart(6, "button", 31);
|
|
160
|
+
i0.ɵɵlistener("click", function UsersComponent_div_11_td_25_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r38); const user_r28 = ctx.$implicit; const ctx_r39 = i0.ɵɵnextContext(2); return ctx_r39.deleteUser(user_r28); });
|
|
161
|
+
i0.ɵɵelementStart(7, "mat-icon");
|
|
162
|
+
i0.ɵɵtext(8, "delete");
|
|
163
|
+
i0.ɵɵelementEnd();
|
|
164
|
+
i0.ɵɵelementEnd();
|
|
165
|
+
i0.ɵɵelementEnd();
|
|
166
|
+
} if (rf & 2) {
|
|
167
|
+
const user_r28 = ctx.$implicit;
|
|
168
|
+
i0.ɵɵadvance(4);
|
|
169
|
+
i0.ɵɵproperty("ngIf", user_r28.locked == "0");
|
|
170
|
+
i0.ɵɵadvance(1);
|
|
171
|
+
i0.ɵɵproperty("ngIf", user_r28.locked == "1");
|
|
172
|
+
} }
|
|
173
|
+
function UsersComponent_div_11_tr_26_Template(rf, ctx) { if (rf & 1) {
|
|
174
|
+
i0.ɵɵelement(0, "tr", 34);
|
|
175
|
+
} }
|
|
176
|
+
const _c1 = function (a0) { return { "make-gray": a0 }; };
|
|
177
|
+
function UsersComponent_div_11_tr_27_Template(rf, ctx) { if (rf & 1) {
|
|
178
|
+
i0.ɵɵelement(0, "tr", 35);
|
|
179
|
+
} if (rf & 2) {
|
|
180
|
+
const row_r40 = ctx.$implicit;
|
|
181
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c1, row_r40.disabled == "1"));
|
|
182
|
+
} }
|
|
183
|
+
function UsersComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
184
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
185
|
+
i0.ɵɵelementStart(1, "table", 11);
|
|
186
|
+
i0.ɵɵelementContainerStart(2, 12);
|
|
187
|
+
i0.ɵɵtemplate(3, UsersComponent_div_11_th_3_Template, 2, 0, "th", 13);
|
|
188
|
+
i0.ɵɵtemplate(4, UsersComponent_div_11_td_4_Template, 2, 1, "td", 14);
|
|
189
|
+
i0.ɵɵelementContainerEnd();
|
|
190
|
+
i0.ɵɵelementContainerStart(5, 15);
|
|
191
|
+
i0.ɵɵtemplate(6, UsersComponent_div_11_th_6_Template, 2, 0, "th", 13);
|
|
192
|
+
i0.ɵɵtemplate(7, UsersComponent_div_11_td_7_Template, 2, 1, "td", 14);
|
|
193
|
+
i0.ɵɵelementContainerEnd();
|
|
194
|
+
i0.ɵɵelementContainerStart(8, 16);
|
|
195
|
+
i0.ɵɵtemplate(9, UsersComponent_div_11_th_9_Template, 2, 0, "th", 13);
|
|
196
|
+
i0.ɵɵtemplate(10, UsersComponent_div_11_td_10_Template, 2, 2, "td", 14);
|
|
197
|
+
i0.ɵɵelementContainerEnd();
|
|
198
|
+
i0.ɵɵelementContainerStart(11, 17);
|
|
199
|
+
i0.ɵɵtemplate(12, UsersComponent_div_11_th_12_Template, 2, 0, "th", 13);
|
|
200
|
+
i0.ɵɵtemplate(13, UsersComponent_div_11_td_13_Template, 2, 1, "td", 14);
|
|
201
|
+
i0.ɵɵelementContainerEnd();
|
|
202
|
+
i0.ɵɵelementContainerStart(14, 18);
|
|
203
|
+
i0.ɵɵtemplate(15, UsersComponent_div_11_th_15_Template, 2, 0, "th", 13);
|
|
204
|
+
i0.ɵɵtemplate(16, UsersComponent_div_11_td_16_Template, 2, 1, "td", 14);
|
|
205
|
+
i0.ɵɵelementContainerEnd();
|
|
206
|
+
i0.ɵɵelementContainerStart(17, 19);
|
|
207
|
+
i0.ɵɵtemplate(18, UsersComponent_div_11_th_18_Template, 2, 0, "th", 13);
|
|
208
|
+
i0.ɵɵtemplate(19, UsersComponent_div_11_td_19_Template, 3, 4, "td", 14);
|
|
209
|
+
i0.ɵɵelementContainerEnd();
|
|
210
|
+
i0.ɵɵelementContainerStart(20, 20);
|
|
211
|
+
i0.ɵɵtemplate(21, UsersComponent_div_11_th_21_Template, 2, 0, "th", 13);
|
|
212
|
+
i0.ɵɵtemplate(22, UsersComponent_div_11_td_22_Template, 3, 4, "td", 14);
|
|
213
|
+
i0.ɵɵelementContainerEnd();
|
|
214
|
+
i0.ɵɵelementContainerStart(23, 21);
|
|
215
|
+
i0.ɵɵtemplate(24, UsersComponent_div_11_th_24_Template, 2, 0, "th", 13);
|
|
216
|
+
i0.ɵɵtemplate(25, UsersComponent_div_11_td_25_Template, 9, 2, "td", 22);
|
|
217
|
+
i0.ɵɵelementContainerEnd();
|
|
218
|
+
i0.ɵɵtemplate(26, UsersComponent_div_11_tr_26_Template, 1, 0, "tr", 23);
|
|
219
|
+
i0.ɵɵtemplate(27, UsersComponent_div_11_tr_27_Template, 1, 3, "tr", 24);
|
|
220
|
+
i0.ɵɵelementEnd();
|
|
221
|
+
i0.ɵɵelementEnd();
|
|
222
|
+
} if (rf & 2) {
|
|
223
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
224
|
+
i0.ɵɵadvance(1);
|
|
225
|
+
i0.ɵɵproperty("dataSource", ctx_r1.users);
|
|
226
|
+
i0.ɵɵadvance(25);
|
|
227
|
+
i0.ɵɵproperty("matHeaderRowDef", ctx_r1.displayedColumns);
|
|
228
|
+
i0.ɵɵadvance(1);
|
|
229
|
+
i0.ɵɵproperty("matRowDefColumns", ctx_r1.displayedColumns);
|
|
230
|
+
} }
|
|
231
|
+
const _c2 = function () { return [10, 20, 50]; };
|
|
232
|
+
export class UsersComponent {
|
|
233
|
+
constructor(httpService, router, authService, dataService, dialog, messageService) {
|
|
234
|
+
this.httpService = httpService;
|
|
235
|
+
this.router = router;
|
|
236
|
+
this.authService = authService;
|
|
237
|
+
this.dataService = dataService;
|
|
238
|
+
this.dialog = dialog;
|
|
239
|
+
this.messageService = messageService;
|
|
240
|
+
this.isProcessing = false;
|
|
241
|
+
this._filterText = "";
|
|
242
|
+
this.displayedColumns = ["userName", "fullName", "roleName", "locked", "dateCreated", "Action"];
|
|
243
|
+
}
|
|
244
|
+
ngOnInit() {
|
|
245
|
+
this.authService.isAuthorised(this.dataService.capUsers.name);
|
|
246
|
+
this.UpdateData();
|
|
247
|
+
}
|
|
248
|
+
UpdateData() {
|
|
249
|
+
this.dataService.GetUser().subscribe((apiResponse) => {
|
|
250
|
+
this.users = new MatTableDataSource(apiResponse);
|
|
251
|
+
this.users.paginator = this.usersPaginator;
|
|
252
|
+
this.applyFilter(this._filterText);
|
|
253
|
+
}, (error) => {
|
|
254
|
+
this.isProcessing = false;
|
|
255
|
+
this.messageService.toast(this.httpService.Error(error));
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
applyFilter(filterValue) {
|
|
259
|
+
this.users.filter = filterValue.trim().toLowerCase();
|
|
260
|
+
}
|
|
261
|
+
createAccount() {
|
|
262
|
+
this.router.navigate(["home/admin/create-account"]);
|
|
263
|
+
}
|
|
264
|
+
viewProfile(user) {
|
|
265
|
+
this.dataService.tmpProfileuserName = user.userName;
|
|
266
|
+
this.router.navigate(["home/user/profile"]);
|
|
267
|
+
}
|
|
268
|
+
lock(u) {
|
|
269
|
+
let login = { userName: u.userName, password: "Abcdef@123" };
|
|
270
|
+
this.dataService.LockUser(login).subscribe((apiResponse) => {
|
|
271
|
+
if (apiResponse.success) {
|
|
272
|
+
this.messageService.toast("User Locked");
|
|
273
|
+
this.UpdateData();
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
this.messageService.toast("Error: " + apiResponse);
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
unlock(u) {
|
|
281
|
+
let login = { userName: u.userName, password: "Abcdef@123" };
|
|
282
|
+
this.dataService.UnlockUser(login).subscribe((apiResponse) => {
|
|
283
|
+
if (apiResponse.success) {
|
|
284
|
+
this.messageService.toast("User Unlocked");
|
|
285
|
+
this.UpdateData();
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
this.messageService.toast("Error: " + apiResponse);
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
recover(u) {
|
|
293
|
+
this.dataService.SelfReset(u).subscribe((apiResponse) => {
|
|
294
|
+
if (apiResponse.message == "success") {
|
|
295
|
+
this.messageService.toast("The password has been sent on email");
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
this.messageService.toast("Error: " + apiResponse.message);
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
deleteUser(user) {
|
|
303
|
+
this.messageService.confirm(`Delete ${user.userName} ?`).subscribe((result) => {
|
|
304
|
+
if (result == "yes") {
|
|
305
|
+
this.isProcessing = true;
|
|
306
|
+
this.dataService.DeleteUser(user).subscribe((apiResponse) => {
|
|
307
|
+
this.isProcessing = false;
|
|
308
|
+
if (apiResponse.message == "success") {
|
|
309
|
+
this.messageService.toast("User Deleted");
|
|
310
|
+
this.UpdateData();
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
this.messageService.toast("Error: " + apiResponse.message);
|
|
314
|
+
}
|
|
315
|
+
}, (error) => {
|
|
316
|
+
this.messageService.toast("Connection failed ");
|
|
317
|
+
this.isProcessing = false;
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
UsersComponent.ɵfac = function UsersComponent_Factory(t) { return new (t || UsersComponent)(i0.ɵɵdirectiveInject(i1.HttpService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.AuthService), i0.ɵɵdirectiveInject(i4.DataServiceLib), i0.ɵɵdirectiveInject(i5.MatDialog), i0.ɵɵdirectiveInject(i6.MessageService)); };
|
|
324
|
+
UsersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UsersComponent, selectors: [["spa-users"]], viewQuery: function UsersComponent_Query(rf, ctx) { if (rf & 1) {
|
|
325
|
+
i0.ɵɵviewQuery(_c0, true);
|
|
326
|
+
} if (rf & 2) {
|
|
327
|
+
var _t;
|
|
328
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.usersPaginator = _t.first);
|
|
329
|
+
} }, decls: 14, vars: 5, consts: [[1, "container"], [1, "row", "justify-content-between", 2, "padding-bottom", "10px"], [1, "col-2"], ["id", "btnCreateAccount", "mat-raised-button", "", "color", "primary", 3, "click"], [1, "d-flex", "justify-content-end"], [3, "data", "refreshClick"], [4, "ngIf"], ["class", "mat-elevation-z8", 4, "ngIf"], ["showFirstLastButtons", "", 3, "pageSizeOptions"], ["usersPaginator", ""], [1, "mat-elevation-z8"], ["id", "tblTable", "mat-table", "", 3, "dataSource"], ["matColumnDef", "userName"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", 4, "matCellDef"], ["matColumnDef", "locked"], ["matColumnDef", "fullName"], ["matColumnDef", "roleName"], ["matColumnDef", "disabled"], ["matColumnDef", "dateCreated"], ["matColumnDef", "dateUpdated"], ["matColumnDef", "Action"], ["mat-cell", "", "style", "width: 250px;", 4, "matCellDef"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 3, "ngClass", 4, "matRowDef", "matRowDefColumns"], ["mat-header-cell", ""], ["mat-cell", ""], ["mat-cell", "", 2, "width", "250px"], ["mat-mini-fab", "", "color", "primary", "matTooltip", "View Profile", "matTooltipPosition", "above", 2, "margin-right", "30px", 3, "click"], ["mat-mini-fab", "", "color", "warn", "style", "margin-right:10px", "matTooltip", "Lock", "matTooltipPosition", "above", 3, "click", 4, "ngIf"], ["mat-mini-fab", "", "style", "margin-right:10px; background-color: green;", "matTooltip", "Unlock", "matTooltipPosition", "above", 3, "click", 4, "ngIf"], ["mat-mini-fab", "", "color", "warn", "matTooltip", "Delete", "matTooltipPosition", "above", 2, "margin-right", "10px", 3, "click"], ["mat-mini-fab", "", "color", "warn", "matTooltip", "Lock", "matTooltipPosition", "above", 2, "margin-right", "10px", 3, "click"], ["mat-mini-fab", "", "matTooltip", "Unlock", "matTooltipPosition", "above", 2, "margin-right", "10px", "background-color", "green", 3, "click"], ["mat-header-row", ""], ["mat-row", "", 3, "ngClass"]], template: function UsersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
330
|
+
i0.ɵɵelementStart(0, "h4");
|
|
331
|
+
i0.ɵɵtext(1, "Users");
|
|
332
|
+
i0.ɵɵelementEnd();
|
|
333
|
+
i0.ɵɵelement(2, "hr");
|
|
334
|
+
i0.ɵɵelementStart(3, "div", 0);
|
|
335
|
+
i0.ɵɵelementStart(4, "div", 1);
|
|
336
|
+
i0.ɵɵelementStart(5, "div", 2);
|
|
337
|
+
i0.ɵɵelementStart(6, "button", 3);
|
|
338
|
+
i0.ɵɵlistener("click", function UsersComponent_Template_button_click_6_listener() { return ctx.createAccount(); });
|
|
339
|
+
i0.ɵɵtext(7, "Create Account");
|
|
340
|
+
i0.ɵɵelementEnd();
|
|
341
|
+
i0.ɵɵelementEnd();
|
|
342
|
+
i0.ɵɵelementStart(8, "div", 4);
|
|
343
|
+
i0.ɵɵelementStart(9, "spa-filter", 5);
|
|
344
|
+
i0.ɵɵlistener("refreshClick", function UsersComponent_Template_spa_filter_refreshClick_9_listener() { return ctx.UpdateData(); });
|
|
345
|
+
i0.ɵɵelementEnd();
|
|
346
|
+
i0.ɵɵelementEnd();
|
|
347
|
+
i0.ɵɵelementEnd();
|
|
348
|
+
i0.ɵɵtemplate(10, UsersComponent_p_10_Template, 3, 0, "p", 6);
|
|
349
|
+
i0.ɵɵtemplate(11, UsersComponent_div_11_Template, 28, 3, "div", 7);
|
|
350
|
+
i0.ɵɵelement(12, "mat-paginator", 8, 9);
|
|
351
|
+
i0.ɵɵelementEnd();
|
|
352
|
+
} if (rf & 2) {
|
|
353
|
+
i0.ɵɵadvance(9);
|
|
354
|
+
i0.ɵɵproperty("data", ctx.users);
|
|
355
|
+
i0.ɵɵadvance(1);
|
|
356
|
+
i0.ɵɵproperty("ngIf", !ctx.users);
|
|
357
|
+
i0.ɵɵadvance(1);
|
|
358
|
+
i0.ɵɵproperty("ngIf", ctx.users);
|
|
359
|
+
i0.ɵɵadvance(1);
|
|
360
|
+
i0.ɵɵproperty("pageSizeOptions", i0.ɵɵpureFunction0(4, _c2));
|
|
361
|
+
} }, directives: [i7.MatButton, i8.FilterComponent, i9.NgIf, i10.MatPaginator, i11.MatTable, i11.MatColumnDef, i11.MatHeaderCellDef, i11.MatCellDef, i11.MatHeaderRowDef, i11.MatRowDef, i11.MatHeaderCell, i11.MatCell, i12.MatTooltip, i13.MatIcon, i11.MatHeaderRow, i11.MatRow, i9.NgClass], pipes: [i9.DatePipe], styles: [".mat-mini-fab[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mini-fab[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;margin-top:-3px}.refreshIcon[_ngcontent-%COMP%]{font-size:22px!important;margin-top:-7px!important}.make-gray[_ngcontent-%COMP%]{background-color:#d3d3d3}"] });
|
|
362
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UsersComponent, [{
|
|
363
|
+
type: Component,
|
|
364
|
+
args: [{
|
|
365
|
+
selector: "spa-users",
|
|
366
|
+
templateUrl: "./users.component.html",
|
|
367
|
+
styleUrls: ["./users.component.css"],
|
|
368
|
+
}]
|
|
369
|
+
}], function () { return [{ type: i1.HttpService }, { type: i2.Router }, { type: i3.AuthService }, { type: i4.DataServiceLib }, { type: i5.MatDialog }, { type: i6.MessageService }]; }, { usersPaginator: [{
|
|
370
|
+
type: ViewChild,
|
|
371
|
+
args: ["usersPaginator"]
|
|
372
|
+
}] }); })();
|
|
373
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlcnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3VzZXJzL3VzZXJzLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL3VzZXJzL3VzZXJzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWtCLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNyRSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7SUNnQjNELHlCQUFrQjtJQUFBLDBCQUFJO0lBQUEsMEJBQVU7SUFBQSxpQkFBSztJQUFBLGlCQUFJOzs7SUFRbkMsOEJBQXVDO0lBQUEsMEJBQVM7SUFBQSxpQkFBSzs7O0lBQ3JELDhCQUFxQztJQUFBLFlBQWtCO0lBQUEsaUJBQUs7OztJQUF2QixlQUFrQjtJQUFsQixrREFBa0I7OztJQUl2RCw4QkFBdUM7SUFBQSx3QkFBTztJQUFBLGlCQUFLOzs7SUFDbkQsOEJBQXFDO0lBQUEsWUFBZ0I7SUFBQSxpQkFBSzs7O0lBQXJCLGVBQWdCO0lBQWhCLGdEQUFnQjs7O0lBSXJELDhCQUF1QztJQUFBLHNCQUFLO0lBQUEsaUJBQUs7OztJQUNqRCw4QkFBcUM7SUFBQSxZQUFxQztJQUFBLGlCQUFLOzs7SUFBMUMsZUFBcUM7SUFBckMsMkVBQXFDOzs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PjwvdHI+XHJcbiAgICAgIDx0ciBtYXQtcm93ICptYXRSb3dEZWY9XCJsZXQgcm93OyBjb2x1bW5zOiBkaXNwbGF5ZWRDb2x1bW5zO1wiIFtuZ0NsYXNzXT1cInsnbWFrZS1ncmF5Jzogcm93LmRpc2FibGVkID09JzEnfVwiPjwvdHI+XHJcblxyXG4gICAgPC90YWJsZT5cclxuXHJcbiAgPC9kaXY+XHJcblxyXG4gIDxtYXQtcGFnaW5hdG9yICN1c2Vyc1BhZ2luYXRvciBbcGFnZVNpemVPcHRpb25zXT1cIlsxMCwgMjAsIDUwXVwiIHNob3dGaXJzdExhc3RCdXR0b25zPjwvbWF0LXBhZ2luYXRvcj5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { viewerDialog } from './viewerDialog.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/dialog";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "../chips/chips.component";
|
|
7
|
+
import * as i4 from "@angular/material/form-field";
|
|
8
|
+
function ViewerComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
10
|
+
i0.ɵɵelementStart(1, "mat-label", 4);
|
|
11
|
+
i0.ɵɵtext(2);
|
|
12
|
+
i0.ɵɵelementEnd();
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
|
+
i0.ɵɵadvance(2);
|
|
17
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.title, "");
|
|
18
|
+
} }
|
|
19
|
+
function ViewerComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
21
|
+
i0.ɵɵtext(1);
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
} if (rf & 2) {
|
|
24
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
|
+
i0.ɵɵadvance(1);
|
|
26
|
+
i0.ɵɵtextInterpolate1(" No ", ctx_r1.title.toLowerCase(), " ");
|
|
27
|
+
} }
|
|
28
|
+
export class ViewerComponent {
|
|
29
|
+
constructor(dialog) {
|
|
30
|
+
this.dialog = dialog;
|
|
31
|
+
this.dir = "";
|
|
32
|
+
this.folderName = "";
|
|
33
|
+
this.fileNames = new Array();
|
|
34
|
+
this.removable = false;
|
|
35
|
+
this.remove = new EventEmitter();
|
|
36
|
+
this.display = "Documents";
|
|
37
|
+
this.title = "Documents";
|
|
38
|
+
}
|
|
39
|
+
ngOnInit() {
|
|
40
|
+
}
|
|
41
|
+
// fileList: string[];
|
|
42
|
+
viewDocs(fileName) {
|
|
43
|
+
if (typeof fileName != 'string') {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const dialogRef = this.dialog.open(viewerDialog, {
|
|
47
|
+
minWidth: '1500px',
|
|
48
|
+
maxWidth: '80vw',
|
|
49
|
+
data: { fileNames: this.fileNames, fileName: fileName, path: `${this.dir}/${this.folderName}` }
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
removed(i) {
|
|
53
|
+
this.remove.emit(i);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
ViewerComponent.ɵfac = function ViewerComponent_Factory(t) { return new (t || ViewerComponent)(i0.ɵɵdirectiveInject(i1.MatDialog)); };
|
|
57
|
+
ViewerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ViewerComponent, selectors: [["spa-viewer"]], inputs: { dir: "dir", folderName: "folderName", fileNames: "fileNames", removable: "removable", display: "display", title: "title" }, outputs: { remove: "remove" }, decls: 3, vars: 5, consts: [["class", "tin-input-row mt-3", 4, "ngIf"], ["icon", "description", 3, "chips", "title", "removable", "click", "remove"], ["class", "d-flex justify-content-center row align-items-center", "style", "max-height:200px", 4, "ngIf"], [1, "tin-input-row", "mt-3"], [2, "font-size", "20px", "font-weight", "300"], [1, "d-flex", "justify-content-center", "row", "align-items-center", 2, "max-height", "200px"]], template: function ViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
58
|
+
i0.ɵɵtemplate(0, ViewerComponent_div_0_Template, 3, 1, "div", 0);
|
|
59
|
+
i0.ɵɵelementStart(1, "spa-chips", 1);
|
|
60
|
+
i0.ɵɵlistener("click", function ViewerComponent_Template_spa_chips_click_1_listener($event) { return ctx.viewDocs($event); })("remove", function ViewerComponent_Template_spa_chips_remove_1_listener($event) { return ctx.removed($event); });
|
|
61
|
+
i0.ɵɵelementEnd();
|
|
62
|
+
i0.ɵɵtemplate(2, ViewerComponent_div_2_Template, 2, 1, "div", 2);
|
|
63
|
+
} if (rf & 2) {
|
|
64
|
+
i0.ɵɵproperty("ngIf", ctx.title != "");
|
|
65
|
+
i0.ɵɵadvance(1);
|
|
66
|
+
i0.ɵɵproperty("chips", ctx.fileNames)("title", ctx.title)("removable", ctx.removable);
|
|
67
|
+
i0.ɵɵadvance(1);
|
|
68
|
+
i0.ɵɵproperty("ngIf", !ctx.fileNames);
|
|
69
|
+
} }, directives: [i2.NgIf, i3.ChipsComponent, i4.MatLabel], styles: [".truncate-text[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.align-end[_ngcontent-%COMP%]{justify-content:flex-end}.fx-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"] });
|
|
70
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ViewerComponent, [{
|
|
71
|
+
type: Component,
|
|
72
|
+
args: [{
|
|
73
|
+
selector: 'spa-viewer',
|
|
74
|
+
templateUrl: './viewer.component.html',
|
|
75
|
+
styleUrls: ['./viewer.component.css']
|
|
76
|
+
}]
|
|
77
|
+
}], function () { return [{ type: i1.MatDialog }]; }, { dir: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], folderName: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], fileNames: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}], removable: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], remove: [{
|
|
86
|
+
type: Output
|
|
87
|
+
}], display: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], title: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}] }); })();
|
|
92
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld2VyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Rpbi1zcGEvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy92aWV3ZXIvdmlld2VyLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL3ZpZXdlci92aWV3ZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUvRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7Ozs7Ozs7SUNGeEQsOEJBQ0U7SUFBQSxvQ0FBd0Q7SUFBQSxZQUFTO0lBQUEsaUJBQWE7SUFDaEYsaUJBQU07OztJQURvRCxlQUFTO0lBQVQsNENBQVM7OztJQU9uRSw4QkFFRTtJQUFBLFlBRUY7SUFBQSxpQkFBTTs7O0lBRkosZUFFRjtJQUZFLDhEQUVGOztBREhBLE1BQU0sT0FBTyxlQUFlO0lBRTFCLFlBQW1CLE1BQWlCO1FBQWpCLFdBQU0sR0FBTixNQUFNLENBQVc7UUFNM0IsUUFBRyxHQUFHLEVBQUUsQ0FBQztRQUNULGVBQVUsR0FBQyxFQUFFLENBQUM7UUFDZCxjQUFTLEdBQUcsSUFBSSxLQUFLLEVBQUUsQ0FBQTtRQUN2Qixj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