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,195 @@
|
|
|
1
|
+
import { __values } from "tslib";
|
|
2
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../dnd.directive";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/material/button";
|
|
7
|
+
import * as i4 from "@angular/material/tooltip";
|
|
8
|
+
import * as i5 from "@angular/material/icon";
|
|
9
|
+
function AttachComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
var _r6 = i0.ɵɵgetCurrentView();
|
|
11
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
12
|
+
i0.ɵɵelementStart(1, "div", 10);
|
|
13
|
+
i0.ɵɵelementStart(2, "h4", 11);
|
|
14
|
+
i0.ɵɵtext(3);
|
|
15
|
+
i0.ɵɵelementEnd();
|
|
16
|
+
i0.ɵɵelementStart(4, "p", 12);
|
|
17
|
+
i0.ɵɵtext(5);
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
i0.ɵɵelementStart(6, "div", 13);
|
|
21
|
+
i0.ɵɵlistener("click", function AttachComponent_div_13_Template_div_click_6_listener() { i0.ɵɵrestoreView(_r6); var i_r4 = ctx.index; var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.deleteFile(i_r4); });
|
|
22
|
+
i0.ɵɵnamespaceSVG();
|
|
23
|
+
i0.ɵɵelementStart(7, "svg", 14);
|
|
24
|
+
i0.ɵɵelement(8, "path", 15);
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
var file_r3 = ctx.$implicit;
|
|
30
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
31
|
+
i0.ɵɵadvance(3);
|
|
32
|
+
i0.ɵɵtextInterpolate1(" ", file_r3 == null ? null : file_r3.name, " ");
|
|
33
|
+
i0.ɵɵadvance(2);
|
|
34
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatBytes(file_r3 == null ? null : file_r3.size, 2), " ");
|
|
35
|
+
} }
|
|
36
|
+
function AttachComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
+
var _r8 = i0.ɵɵgetCurrentView();
|
|
38
|
+
i0.ɵɵelementStart(0, "div", 16);
|
|
39
|
+
i0.ɵɵelementStart(1, "button", 17);
|
|
40
|
+
i0.ɵɵlistener("click", function AttachComponent_div_14_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r8); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.uploaded(); });
|
|
41
|
+
i0.ɵɵelementStart(2, "mat-icon");
|
|
42
|
+
i0.ɵɵtext(3, "file_upload");
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵtext(4, " Upload");
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
i0.ɵɵelementEnd();
|
|
47
|
+
} }
|
|
48
|
+
var AttachComponent = /** @class */ (function () {
|
|
49
|
+
function AttachComponent() {
|
|
50
|
+
this.message = "Drag and drop files here";
|
|
51
|
+
this.files = [];
|
|
52
|
+
this.filesChange = new EventEmitter();
|
|
53
|
+
this.upload = new EventEmitter();
|
|
54
|
+
this.enableUpload = false;
|
|
55
|
+
}
|
|
56
|
+
AttachComponent.prototype.ngOnInit = function () {
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* on file drop handler
|
|
60
|
+
*/
|
|
61
|
+
AttachComponent.prototype.onFileDropped = function ($event) {
|
|
62
|
+
this.prepareFilesList($event);
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* handle file from browsing
|
|
66
|
+
*/
|
|
67
|
+
AttachComponent.prototype.fileBrowseHandler = function (files) {
|
|
68
|
+
this.prepareFilesList(files);
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Delete file from files list
|
|
72
|
+
* @param index (File index)
|
|
73
|
+
*/
|
|
74
|
+
AttachComponent.prototype.deleteFile = function (index) {
|
|
75
|
+
this.files.splice(index, 1);
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Simulate the upload process
|
|
79
|
+
*/
|
|
80
|
+
// uploadFilesSimulator(index: number) {
|
|
81
|
+
// setTimeout(() => {
|
|
82
|
+
// if (index === this.files.length) {
|
|
83
|
+
// return;
|
|
84
|
+
// } else {
|
|
85
|
+
// const progressInterval = setInterval(() => {
|
|
86
|
+
// if (this.files[index].progress === 100) {
|
|
87
|
+
// clearInterval(progressInterval);
|
|
88
|
+
// this.uploadFilesSimulator(index + 1);
|
|
89
|
+
// } else {
|
|
90
|
+
// this.files[index].progress += 5;
|
|
91
|
+
// }
|
|
92
|
+
// }, 200);
|
|
93
|
+
// }
|
|
94
|
+
// }, 1000);
|
|
95
|
+
// }
|
|
96
|
+
/**
|
|
97
|
+
* Convert Files list to normal array list
|
|
98
|
+
* @param files (Files List)
|
|
99
|
+
*/
|
|
100
|
+
AttachComponent.prototype.prepareFilesList = function (files) {
|
|
101
|
+
var e_1, _a;
|
|
102
|
+
try {
|
|
103
|
+
for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
|
|
104
|
+
var item = files_1_1.value;
|
|
105
|
+
item.progress = 0;
|
|
106
|
+
this.files.push(item);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
110
|
+
finally {
|
|
111
|
+
try {
|
|
112
|
+
if (files_1_1 && !files_1_1.done && (_a = files_1.return)) _a.call(files_1);
|
|
113
|
+
}
|
|
114
|
+
finally { if (e_1) throw e_1.error; }
|
|
115
|
+
}
|
|
116
|
+
// this.uploadFilesSimulator(0);
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* format bytes
|
|
120
|
+
* @param bytes (File size in bytes)
|
|
121
|
+
* @param decimals (Decimals point)
|
|
122
|
+
*/
|
|
123
|
+
AttachComponent.prototype.formatBytes = function (bytes, decimals) {
|
|
124
|
+
if (bytes === 0) {
|
|
125
|
+
return '0 Bytes';
|
|
126
|
+
}
|
|
127
|
+
var k = 1024;
|
|
128
|
+
var dm = decimals <= 0 ? 0 : decimals || 2;
|
|
129
|
+
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
|
130
|
+
var i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
131
|
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
|
132
|
+
};
|
|
133
|
+
AttachComponent.prototype.uploaded = function () {
|
|
134
|
+
this.upload.emit();
|
|
135
|
+
};
|
|
136
|
+
AttachComponent.prototype.filesChanged = function () {
|
|
137
|
+
this.filesChange.emit(this.files);
|
|
138
|
+
};
|
|
139
|
+
AttachComponent.ɵfac = function AttachComponent_Factory(t) { return new (t || AttachComponent)(); };
|
|
140
|
+
AttachComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AttachComponent, selectors: [["spa-attach"]], inputs: { message: "message", files: "files", enableUpload: "enableUpload" }, outputs: { filesChange: "filesChange", upload: "upload" }, decls: 15, vars: 3, consts: [[1, "tin-input-row", 2, "width", "100%"], [1, "col"], ["appDnd", "", 1, "container", 3, "fileDropped"], ["type", "file", "id", "fileDropRef", "multiple", "", 3, "change"], ["fileDropRef", ""], ["for", "fileDropRef"], [1, "files-list"], ["class", "single-file ", "style", "width: 100%;", 4, "ngFor", "ngForOf"], ["class", "tin-input-row d-flex justify-content-center", "style", "width: 100%;", 4, "ngIf"], [1, "single-file", 2, "width", "100%"], [1, "tin-input-row", "info"], [1, "name"], [1, "size"], [1, "delete", 3, "click"], ["xmlns", "http://www.w3.org/2000/svg", "width", "14", "height", "18", "viewBox", "0 0 14 18"], ["fill", "#B1B1B1", "fill-rule", "nonzero", "d", "M1 16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v10zm3.17-7.83a.996.996 0 0 1 1.41 0L7 9.59l1.42-1.42a.996.996 0 1 1 1.41 1.41L8.41 11l1.42 1.42a.996.996 0 1 1-1.41 1.41L7 12.41l-1.42 1.42a.996.996 0 1 1-1.41-1.41L5.59 11 4.17 9.58a.996.996 0 0 1 0-1.41zM10.5 1L9.79.29C9.61.11 9.35 0 9.09 0H4.91c-.26 0-.52.11-.7.29L3.5 1H1c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1h-2.5z"], [1, "tin-input-row", "d-flex", "justify-content-center", 2, "width", "100%"], ["mat-button", "", "color", "primary", "matTooltip", "Upload New Documents", "matTooltipPosition", "above", 3, "click"]], template: function AttachComponent_Template(rf, ctx) { if (rf & 1) {
|
|
141
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
142
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
143
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
144
|
+
i0.ɵɵlistener("fileDropped", function AttachComponent_Template_div_fileDropped_2_listener($event) { return ctx.onFileDropped($event); });
|
|
145
|
+
i0.ɵɵelementStart(3, "input", 3, 4);
|
|
146
|
+
i0.ɵɵlistener("change", function AttachComponent_Template_input_change_3_listener($event) { return ctx.fileBrowseHandler($event.target.files); });
|
|
147
|
+
i0.ɵɵelementEnd();
|
|
148
|
+
i0.ɵɵelementStart(5, "h4");
|
|
149
|
+
i0.ɵɵtext(6);
|
|
150
|
+
i0.ɵɵelementEnd();
|
|
151
|
+
i0.ɵɵelementStart(7, "h4");
|
|
152
|
+
i0.ɵɵtext(8, "or");
|
|
153
|
+
i0.ɵɵelementEnd();
|
|
154
|
+
i0.ɵɵelementStart(9, "label", 5);
|
|
155
|
+
i0.ɵɵtext(10, "Click to Browse");
|
|
156
|
+
i0.ɵɵelementEnd();
|
|
157
|
+
i0.ɵɵelementEnd();
|
|
158
|
+
i0.ɵɵelementEnd();
|
|
159
|
+
i0.ɵɵelementStart(11, "div", 1);
|
|
160
|
+
i0.ɵɵelementStart(12, "div", 6);
|
|
161
|
+
i0.ɵɵtemplate(13, AttachComponent_div_13_Template, 9, 2, "div", 7);
|
|
162
|
+
i0.ɵɵelementEnd();
|
|
163
|
+
i0.ɵɵtemplate(14, AttachComponent_div_14_Template, 5, 0, "div", 8);
|
|
164
|
+
i0.ɵɵelementEnd();
|
|
165
|
+
i0.ɵɵelementEnd();
|
|
166
|
+
} if (rf & 2) {
|
|
167
|
+
i0.ɵɵadvance(6);
|
|
168
|
+
i0.ɵɵtextInterpolate(ctx.message);
|
|
169
|
+
i0.ɵɵadvance(7);
|
|
170
|
+
i0.ɵɵproperty("ngForOf", ctx.files);
|
|
171
|
+
i0.ɵɵadvance(1);
|
|
172
|
+
i0.ɵɵproperty("ngIf", ctx.files.length > 0 && ctx.enableUpload);
|
|
173
|
+
} }, directives: [i1.DndDirective, i2.NgForOf, i2.NgIf, i3.MatButton, i4.MatTooltip, i5.MatIcon], styles: [".container[_ngcontent-%COMP%]{width:100%;height:200px;padding:2rem;text-align:center;border:2px dashed #2a7b94;position:relative;margin:0 auto}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;position:absolute;z-index:2;width:100%;height:100%;top:0;left:0}.container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#fff;width:183px;height:44px;border-radius:21.5px;background-color:#db202f;padding:8px 16px}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#38424c}.fileover[_ngcontent-%COMP%]{-webkit-animation:1s infinite shake;animation:1s infinite shake}.files-list[_ngcontent-%COMP%]{margin-top:1.5rem}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%]{display:flex;padding:.5rem;justify-content:space-between;align-items:center;border:1px dashed #1c824d;margin-bottom:1rem;margin-right:1rem;display:flex;flex-grow:1}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .delete[_ngcontent-%COMP%]{display:flex;margin-left:.5rem;cursor:pointer;align-self:flex-end}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#353f4a;margin:0}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#a4a4a4;margin:0 0 0 1rem}.files-list[_ngcontent-%COMP%] .single-file[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{width:100%}@-webkit-keyframes shake{0%{transform:translate(1px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(-1deg)}20%{transform:translate(-3px,0) rotate(1deg)}30%{transform:translate(3px,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(-1deg)}60%{transform:translate(-3px,1px) rotate(0)}70%{transform:translate(3px,1px) rotate(-1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(1px,2px) rotate(0)}100%{transform:translate(1px,-2px) rotate(-1deg)}}@keyframes shake{0%{transform:translate(1px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(-1deg)}20%{transform:translate(-3px,0) rotate(1deg)}30%{transform:translate(3px,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(-1deg)}60%{transform:translate(-3px,1px) rotate(0)}70%{transform:translate(3px,1px) rotate(-1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(1px,2px) rotate(0)}100%{transform:translate(1px,-2px) rotate(-1deg)}}"] });
|
|
174
|
+
return AttachComponent;
|
|
175
|
+
}());
|
|
176
|
+
export { AttachComponent };
|
|
177
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AttachComponent, [{
|
|
178
|
+
type: Component,
|
|
179
|
+
args: [{
|
|
180
|
+
selector: 'spa-attach',
|
|
181
|
+
templateUrl: './attach.component.html',
|
|
182
|
+
styleUrls: ['./attach.component.scss']
|
|
183
|
+
}]
|
|
184
|
+
}], function () { return []; }, { message: [{
|
|
185
|
+
type: Input
|
|
186
|
+
}], files: [{
|
|
187
|
+
type: Input
|
|
188
|
+
}], filesChange: [{
|
|
189
|
+
type: Output
|
|
190
|
+
}], upload: [{
|
|
191
|
+
type: Output
|
|
192
|
+
}], enableUpload: [{
|
|
193
|
+
type: Input
|
|
194
|
+
}] }); })();
|
|
195
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXR0YWNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Rpbi1zcGEvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9hdHRhY2gvYXR0YWNoLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL2F0dGFjaC9hdHRhY2guY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUF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AgPC9kaXY+XHJcblxyXG48L2Rpdj5cclxuIl19
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { ChangeUserPassword } from './../../classes/Classes';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/router";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "../../services/http.service";
|
|
7
|
+
import * as i4 from "../../services/message.service";
|
|
8
|
+
import * as i5 from "../../services/data.service";
|
|
9
|
+
import * as i6 from "../../services/auth.service";
|
|
10
|
+
import * as i7 from "../text/text.component";
|
|
11
|
+
import * as i8 from "@angular/material/button";
|
|
12
|
+
function ChangePasswordComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
+
var _r3 = i0.ɵɵgetCurrentView();
|
|
14
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
15
|
+
i0.ɵɵelementStart(1, "spa-text", 10);
|
|
16
|
+
i0.ɵɵlistener("valueChange", function ChangePasswordComponent_div_7_Template_spa_text_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r3); var ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.changePassword.userName = $event; });
|
|
17
|
+
i0.ɵɵelementEnd();
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
} if (rf & 2) {
|
|
20
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
21
|
+
i0.ɵɵadvance(1);
|
|
22
|
+
i0.ɵɵproperty("value", ctx_r0.changePassword.userName);
|
|
23
|
+
} }
|
|
24
|
+
function ChangePasswordComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
var _r5 = i0.ɵɵgetCurrentView();
|
|
26
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
27
|
+
i0.ɵɵelementStart(1, "spa-text", 11);
|
|
28
|
+
i0.ɵɵlistener("valueChange", function ChangePasswordComponent_div_8_Template_spa_text_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r5); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.changePassword.currentPassword = $event; });
|
|
29
|
+
i0.ɵɵelementEnd();
|
|
30
|
+
i0.ɵɵelementEnd();
|
|
31
|
+
} if (rf & 2) {
|
|
32
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
33
|
+
i0.ɵɵadvance(1);
|
|
34
|
+
i0.ɵɵproperty("value", ctx_r1.changePassword.currentPassword);
|
|
35
|
+
} }
|
|
36
|
+
var ChangePasswordComponent = /** @class */ (function () {
|
|
37
|
+
function ChangePasswordComponent(router, location, httpService, messageService, dataService, authService, route) {
|
|
38
|
+
this.router = router;
|
|
39
|
+
this.location = location;
|
|
40
|
+
this.httpService = httpService;
|
|
41
|
+
this.messageService = messageService;
|
|
42
|
+
this.dataService = dataService;
|
|
43
|
+
this.authService = authService;
|
|
44
|
+
this.route = route;
|
|
45
|
+
this.isProcessing = false;
|
|
46
|
+
this.changePassword = new ChangeUserPassword();
|
|
47
|
+
}
|
|
48
|
+
ChangePasswordComponent.prototype.ngOnInit = function () {
|
|
49
|
+
this.myRole = this.authService.currentRoleSource.value;
|
|
50
|
+
if (this.dataService.tmpProfileuserName == "") {
|
|
51
|
+
this.changePassword.userName = this.authService.currentUser;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
this.changePassword.userName = this.dataService.tmpProfileuserName;
|
|
55
|
+
this.dataService.tmpProfileuserName = "";
|
|
56
|
+
}
|
|
57
|
+
if (this.route.snapshot.queryParams.redirectTo != undefined) {
|
|
58
|
+
this.redirectPath = this.route.snapshot.queryParams.redirectTo;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
this.redirectPath = "home";
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
ChangePasswordComponent.prototype.change = function () {
|
|
65
|
+
var _this = this;
|
|
66
|
+
if (!this.myRole[this.dataService.capUsers.name]) {
|
|
67
|
+
if (this.changePassword.currentPassword == "") {
|
|
68
|
+
this.messageService.toast("Please enter current Password");
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (this.changePassword.newPassword == "") {
|
|
73
|
+
this.messageService.toast("Please enter new Password");
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (this.changePassword.confirmPassword == "") {
|
|
77
|
+
this.messageService.toast("Please confirm new Password");
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (this.changePassword.confirmPassword != this.changePassword.newPassword) {
|
|
81
|
+
this.messageService.toast("Passwords do not match");
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
this.isProcessing = true;
|
|
85
|
+
if (this.myRole[this.dataService.capUsers.name]) {
|
|
86
|
+
this.dataService.ChangePasswordAdmin(this.changePassword).subscribe(function (apiResponse) {
|
|
87
|
+
_this.isProcessing = false;
|
|
88
|
+
if (apiResponse.message == "success") {
|
|
89
|
+
_this.messageService.toast("Password Changed");
|
|
90
|
+
_this.router.navigate([_this.redirectPath]);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
_this.messageService.toast("Error: " + apiResponse.message);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
this.dataService.ChangePassword(this.changePassword).subscribe(function (apiResponse) {
|
|
99
|
+
_this.isProcessing = false;
|
|
100
|
+
if (apiResponse.message == "success") {
|
|
101
|
+
_this.messageService.toast("Password Changed");
|
|
102
|
+
_this.router.navigate([_this.redirectPath]);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
_this.messageService.toast("Error: " + apiResponse.message);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
ChangePasswordComponent.ɵfac = function ChangePasswordComponent_Factory(t) { return new (t || ChangePasswordComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.Location), i0.ɵɵdirectiveInject(i3.HttpService), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.DataServiceLib), i0.ɵɵdirectiveInject(i6.AuthService), i0.ɵɵdirectiveInject(i1.ActivatedRoute)); };
|
|
111
|
+
ChangePasswordComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ChangePasswordComponent, selectors: [["spa-change-password"]], decls: 32, vars: 4, consts: [[1, "container"], [1, "d-flex", "justify-content-center", "row", "align-items-center"], [1, "col"], [1, "tin-input", 2, "font-size", "14px"], ["class", "col", 4, "ngIf"], ["id", "txtNewPassword", "display", "New Password", "width", "300px", "type", "password", 3, "value", "valueChange"], ["id", "txtConfirmPassword", "display", "Confirm Password", "width", "300px", "type", "password", 3, "value", "valueChange"], [1, "col", "mt-3"], ["id", "btnChange", "mat-raised-button", "", "color", "primary", "cdkFocusInitial", "", 3, "click"], ["role", "alert", 1, "alert", "alert-info", 2, "font-size", "14px"], ["id", "txtuserName", "display", "Username", "width", "300px", "readonly", "true", 3, "value", "valueChange"], ["id", "txtPassword", "display", "Current Password", "width", "300px", "type", "password", 3, "value", "valueChange"]], template: function ChangePasswordComponent_Template(rf, ctx) { if (rf & 1) {
|
|
112
|
+
i0.ɵɵelementStart(0, "h4");
|
|
113
|
+
i0.ɵɵtext(1, "Change Password");
|
|
114
|
+
i0.ɵɵelementEnd();
|
|
115
|
+
i0.ɵɵelement(2, "hr");
|
|
116
|
+
i0.ɵɵelementStart(3, "div", 0);
|
|
117
|
+
i0.ɵɵelementStart(4, "div", 1);
|
|
118
|
+
i0.ɵɵelementStart(5, "div", 2);
|
|
119
|
+
i0.ɵɵelementStart(6, "div", 3);
|
|
120
|
+
i0.ɵɵtemplate(7, ChangePasswordComponent_div_7_Template, 2, 1, "div", 4);
|
|
121
|
+
i0.ɵɵtemplate(8, ChangePasswordComponent_div_8_Template, 2, 1, "div", 4);
|
|
122
|
+
i0.ɵɵelementStart(9, "div", 2);
|
|
123
|
+
i0.ɵɵelementStart(10, "spa-text", 5);
|
|
124
|
+
i0.ɵɵlistener("valueChange", function ChangePasswordComponent_Template_spa_text_valueChange_10_listener($event) { return ctx.changePassword.newPassword = $event; });
|
|
125
|
+
i0.ɵɵelementEnd();
|
|
126
|
+
i0.ɵɵelementEnd();
|
|
127
|
+
i0.ɵɵelementStart(11, "div", 2);
|
|
128
|
+
i0.ɵɵelementStart(12, "spa-text", 6);
|
|
129
|
+
i0.ɵɵlistener("valueChange", function ChangePasswordComponent_Template_spa_text_valueChange_12_listener($event) { return ctx.changePassword.confirmPassword = $event; });
|
|
130
|
+
i0.ɵɵelementEnd();
|
|
131
|
+
i0.ɵɵelementEnd();
|
|
132
|
+
i0.ɵɵelementStart(13, "div", 7);
|
|
133
|
+
i0.ɵɵelementStart(14, "button", 8);
|
|
134
|
+
i0.ɵɵlistener("click", function ChangePasswordComponent_Template_button_click_14_listener() { return ctx.change(); });
|
|
135
|
+
i0.ɵɵtext(15, "Change");
|
|
136
|
+
i0.ɵɵelementEnd();
|
|
137
|
+
i0.ɵɵelementEnd();
|
|
138
|
+
i0.ɵɵelementEnd();
|
|
139
|
+
i0.ɵɵelementEnd();
|
|
140
|
+
i0.ɵɵelementStart(16, "div", 2);
|
|
141
|
+
i0.ɵɵelementStart(17, "div", 9);
|
|
142
|
+
i0.ɵɵelementStart(18, "b");
|
|
143
|
+
i0.ɵɵtext(19, "*Please consider these requirements for your new password.");
|
|
144
|
+
i0.ɵɵelementEnd();
|
|
145
|
+
i0.ɵɵelement(20, "br");
|
|
146
|
+
i0.ɵɵelement(21, "br");
|
|
147
|
+
i0.ɵɵtext(22, " At least 8 characters");
|
|
148
|
+
i0.ɵɵelement(23, "br");
|
|
149
|
+
i0.ɵɵtext(24, " At least 1 uppercase letter (A-Z)");
|
|
150
|
+
i0.ɵɵelement(25, "br");
|
|
151
|
+
i0.ɵɵtext(26, " At least 2 lowercase letters (a-z)");
|
|
152
|
+
i0.ɵɵelement(27, "br");
|
|
153
|
+
i0.ɵɵtext(28, " At least 1 digit (0-9)");
|
|
154
|
+
i0.ɵɵelement(29, "br");
|
|
155
|
+
i0.ɵɵtext(30, " At least 1 special character (~`! \u2026)");
|
|
156
|
+
i0.ɵɵelement(31, "br");
|
|
157
|
+
i0.ɵɵelementEnd();
|
|
158
|
+
i0.ɵɵelementEnd();
|
|
159
|
+
i0.ɵɵelementEnd();
|
|
160
|
+
i0.ɵɵelementEnd();
|
|
161
|
+
} if (rf & 2) {
|
|
162
|
+
i0.ɵɵadvance(7);
|
|
163
|
+
i0.ɵɵproperty("ngIf", ctx.changePassword.userName != "");
|
|
164
|
+
i0.ɵɵadvance(1);
|
|
165
|
+
i0.ɵɵproperty("ngIf", !ctx.myRole[ctx.dataService.capUsers.name]);
|
|
166
|
+
i0.ɵɵadvance(2);
|
|
167
|
+
i0.ɵɵproperty("value", ctx.changePassword.newPassword);
|
|
168
|
+
i0.ɵɵadvance(2);
|
|
169
|
+
i0.ɵɵproperty("value", ctx.changePassword.confirmPassword);
|
|
170
|
+
} }, directives: [i2.NgIf, i7.TextComponent, i8.MatButton], styles: [""] });
|
|
171
|
+
return ChangePasswordComponent;
|
|
172
|
+
}());
|
|
173
|
+
export { ChangePasswordComponent };
|
|
174
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ChangePasswordComponent, [{
|
|
175
|
+
type: Component,
|
|
176
|
+
args: [{
|
|
177
|
+
selector: 'spa-change-password',
|
|
178
|
+
templateUrl: './change-password.component.html',
|
|
179
|
+
styleUrls: ['./change-password.component.css']
|
|
180
|
+
}]
|
|
181
|
+
}], function () { return [{ type: i1.Router }, { type: i2.Location }, { type: i3.HttpService }, { type: i4.MessageService }, { type: i5.DataServiceLib }, { type: i6.AuthService }, { type: i1.ActivatedRoute }]; }, null); })();
|
|
182
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlLXBhc3N3b3JkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Rpbi1zcGEvIiwic291cmNlcyI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dHlsZT1cImZvbnQtc2l6ZTogMTRweDtcIiByb2xlPVwiYWxlcnRcIj5cclxuICAgICAgICA8Yj4qUGxlYXNlIGNvbnNpZGVyIHRoZXNlIHJlcXVpcmVtZW50cyBmb3IgeW91ciBuZXcgcGFzc3dvcmQuPC9iPiA8YnI+PGJyPlxyXG5cclxuICAgICAgICBBdCBsZWFzdCA4IGNoYXJhY3RlcnM8YnI+XHJcbiAgICAgICAgQXQgbGVhc3QgMSB1cHBlcmNhc2UgbGV0dGVyIChBLVopPGJyPlxyXG4gICAgICAgIEF0IGxlYXN0IDIgbG93ZXJjYXNlIGxldHRlcnMgKGEteik8YnI+XHJcbiAgICAgICAgQXQgbGVhc3QgMSBkaWdpdCAoMC05KTxicj5cclxuICAgICAgICBBdCBsZWFzdCAxIHNwZWNpYWwgY2hhcmFjdGVyICh+YCEg4oCmKTxicj5cclxuXHJcbiAgICAgIDwvZGl2PlxyXG5cclxuICAgIDwvZGl2PlxyXG5cclxuXHJcblxyXG5cclxuXHJcbiAgPC9kaXY+XHJcbjwvZGl2PlxyXG5cclxuIl19
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/material/checkbox";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
var CheckComponent = /** @class */ (function () {
|
|
6
|
+
function CheckComponent() {
|
|
7
|
+
this.readonly = false;
|
|
8
|
+
this.display = "";
|
|
9
|
+
this.value = false;
|
|
10
|
+
this.valueChange = new EventEmitter();
|
|
11
|
+
this.click = new EventEmitter();
|
|
12
|
+
this.check = new EventEmitter();
|
|
13
|
+
this.uncheck = new EventEmitter();
|
|
14
|
+
}
|
|
15
|
+
CheckComponent.prototype.ngOnInit = function () {
|
|
16
|
+
};
|
|
17
|
+
CheckComponent.prototype.changed = function () {
|
|
18
|
+
this.valueChange.emit(this.value);
|
|
19
|
+
};
|
|
20
|
+
CheckComponent.prototype.clicked = function () {
|
|
21
|
+
this.click.emit();
|
|
22
|
+
if (!this.value) {
|
|
23
|
+
this.checked();
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
this.unchecked();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
CheckComponent.prototype.checked = function () {
|
|
30
|
+
this.check.emit();
|
|
31
|
+
};
|
|
32
|
+
CheckComponent.prototype.unchecked = function () {
|
|
33
|
+
this.uncheck.emit();
|
|
34
|
+
};
|
|
35
|
+
CheckComponent.ɵfac = function CheckComponent_Factory(t) { return new (t || CheckComponent)(); };
|
|
36
|
+
CheckComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CheckComponent, selectors: [["spa-check"]], inputs: { readonly: "readonly", display: "display", value: "value" }, outputs: { valueChange: "valueChange", click: "click", check: "check", uncheck: "uncheck" }, decls: 2, vars: 3, consts: [["color", "primary", 2, "margin-right", "50px", "font-size", "14px", 3, "ngModel", "disabled", "ngModelChange", "change", "click"]], template: function CheckComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 0);
|
|
38
|
+
i0.ɵɵlistener("ngModelChange", function CheckComponent_Template_mat_checkbox_ngModelChange_0_listener($event) { return ctx.value = $event; })("change", function CheckComponent_Template_mat_checkbox_change_0_listener() { return ctx.changed(); })("click", function CheckComponent_Template_mat_checkbox_click_0_listener() { return ctx.clicked(); });
|
|
39
|
+
i0.ɵɵtext(1);
|
|
40
|
+
i0.ɵɵelementEnd();
|
|
41
|
+
} if (rf & 2) {
|
|
42
|
+
i0.ɵɵproperty("ngModel", ctx.value)("disabled", ctx.readonly);
|
|
43
|
+
i0.ɵɵadvance(1);
|
|
44
|
+
i0.ɵɵtextInterpolate(ctx.display);
|
|
45
|
+
} }, directives: [i1.MatCheckbox, i2.NgControlStatus, i2.NgModel], styles: [""] });
|
|
46
|
+
return CheckComponent;
|
|
47
|
+
}());
|
|
48
|
+
export { CheckComponent };
|
|
49
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(CheckComponent, [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{
|
|
52
|
+
selector: 'spa-check',
|
|
53
|
+
templateUrl: './check.component.html',
|
|
54
|
+
styleUrls: ['./check.component.css']
|
|
55
|
+
}]
|
|
56
|
+
}], function () { return []; }, { readonly: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], display: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], value: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], valueChange: [{
|
|
63
|
+
type: Output
|
|
64
|
+
}], click: [{
|
|
65
|
+
type: Output
|
|
66
|
+
}], check: [{
|
|
67
|
+
type: Output
|
|
68
|
+
}], uncheck: [{
|
|
69
|
+
type: Output
|
|
70
|
+
}] }); })();
|
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2suY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2NoZWNrL2NoZWNrLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL2NoZWNrL2NoZWNrLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7QUFHL0U7SUFPRTtRQUtTLGFBQVEsR0FBRyxLQUFLLENBQUM7UUFDakIsWUFBTyxHQUFHLEVBQUUsQ0FBQztRQUNiLFVBQUssR0FBRyxLQUFLLENBQUM7UUFDYixnQkFBVyxHQUFHLElBQUksWUFBWSxFQUFFLENBQUM7UUFDakMsVUFBSyxHQUFHLElBQUksWUFBWSxFQUFFLENBQUM7UUFDM0IsVUFBSyxHQUFHLElBQUksWUFB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HJcbiAgICB0aGlzLmNsaWNrLmVtaXQoKTtcclxuXHJcbiAgICBpZighdGhpcy52YWx1ZSl7XHJcbiAgICAgIHRoaXMuY2hlY2tlZCgpO1xyXG4gICAgfWVsc2V7XHJcbiAgICAgIHRoaXMudW5jaGVja2VkKCk7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBjaGVja2VkKCl7XHJcbiAgICB0aGlzLmNoZWNrLmVtaXQoKTtcclxuICB9XHJcbiAgdW5jaGVja2VkKCl7XHJcbiAgICB0aGlzLnVuY2hlY2suZW1pdCgpO1xyXG4gIH1cclxuXHJcbn1cclxuIiwiIDxtYXQtY2hlY2tib3ggY29sb3I9XCJwcmltYXJ5XCIgc3R5bGU9XCJtYXJnaW4tcmlnaHQ6NTBweDsgZm9udC1zaXplOjE0cHhcIiBbKG5nTW9kZWwpXT1cInZhbHVlXCIgKGNoYW5nZSk9XCJjaGFuZ2VkKClcIiAoY2xpY2spPVwiY2xpY2tlZCgpXCIgW2Rpc2FibGVkXT1cInJlYWRvbmx5XCI+e3tkaXNwbGF5fX08L21hdC1jaGVja2JveD5cclxuIl19
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../../services/message.service";
|
|
4
|
+
import * as i2 from "@angular/material/chips";
|
|
5
|
+
import * as i3 from "@angular/common";
|
|
6
|
+
import * as i4 from "@angular/material/icon";
|
|
7
|
+
function ChipsComponent_mat_chip_3_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelementStart(0, "mat-icon", 6);
|
|
9
|
+
i0.ɵɵtext(1);
|
|
10
|
+
i0.ɵɵelementEnd();
|
|
11
|
+
} if (rf & 2) {
|
|
12
|
+
var ctx_r4 = i0.ɵɵnextContext(2);
|
|
13
|
+
i0.ɵɵadvance(1);
|
|
14
|
+
i0.ɵɵtextInterpolate(ctx_r4.icon);
|
|
15
|
+
} }
|
|
16
|
+
function ChipsComponent_mat_chip_3_mat_icon_3_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
var _r8 = i0.ɵɵgetCurrentView();
|
|
18
|
+
i0.ɵɵelementStart(0, "mat-icon", 7);
|
|
19
|
+
i0.ɵɵlistener("click", function ChipsComponent_mat_chip_3_mat_icon_3_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r8); var chip_r2 = i0.ɵɵnextContext().$implicit; var ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.removed(chip_r2); });
|
|
20
|
+
i0.ɵɵtext(1, "cancel");
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
} }
|
|
23
|
+
var _c0 = function (a0) { return { "padding-right": a0 }; };
|
|
24
|
+
function ChipsComponent_mat_chip_3_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
var _r10 = i0.ɵɵgetCurrentView();
|
|
26
|
+
i0.ɵɵelementStart(0, "mat-chip", 3);
|
|
27
|
+
i0.ɵɵlistener("click", function ChipsComponent_mat_chip_3_Template_mat_chip_click_0_listener() { i0.ɵɵrestoreView(_r10); var chip_r2 = ctx.$implicit; var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.clicked(chip_r2); });
|
|
28
|
+
i0.ɵɵtemplate(1, ChipsComponent_mat_chip_3_mat_icon_1_Template, 2, 1, "mat-icon", 4);
|
|
29
|
+
i0.ɵɵtext(2);
|
|
30
|
+
i0.ɵɵtemplate(3, ChipsComponent_mat_chip_3_mat_icon_3_Template, 2, 0, "mat-icon", 5);
|
|
31
|
+
i0.ɵɵelementEnd();
|
|
32
|
+
} if (rf & 2) {
|
|
33
|
+
var chip_r2 = ctx.$implicit;
|
|
34
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
35
|
+
i0.ɵɵproperty("removable", ctx_r1.removable)("ngStyle", i0.ɵɵpureFunction1(5, _c0, ctx_r1.removable ? "5px" : "12px"));
|
|
36
|
+
i0.ɵɵadvance(1);
|
|
37
|
+
i0.ɵɵproperty("ngIf", ctx_r1.icon != "");
|
|
38
|
+
i0.ɵɵadvance(1);
|
|
39
|
+
i0.ɵɵtextInterpolate1(" ", chip_r2, " ");
|
|
40
|
+
i0.ɵɵadvance(1);
|
|
41
|
+
i0.ɵɵproperty("ngIf", ctx_r1.removable);
|
|
42
|
+
} }
|
|
43
|
+
var ChipsComponent = /** @class */ (function () {
|
|
44
|
+
function ChipsComponent(messageService) {
|
|
45
|
+
this.messageService = messageService;
|
|
46
|
+
this.icon = "";
|
|
47
|
+
this.removable = false;
|
|
48
|
+
this.addable = false;
|
|
49
|
+
// @Output() chipClick = new EventEmitter();
|
|
50
|
+
this.click = new EventEmitter();
|
|
51
|
+
this.remove = new EventEmitter();
|
|
52
|
+
}
|
|
53
|
+
ChipsComponent.prototype.ngOnInit = function () {
|
|
54
|
+
};
|
|
55
|
+
ChipsComponent.prototype.clicked = function (chip) {
|
|
56
|
+
if (typeof chip != 'string') {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (chip) {
|
|
60
|
+
this.click.emit(chip);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
ChipsComponent.prototype.removed = function (chip) {
|
|
64
|
+
// const index = this.chips.indexOf(chip);
|
|
65
|
+
var _this = this;
|
|
66
|
+
// if (index >= 0) {
|
|
67
|
+
// this.chips.splice(index, 1);
|
|
68
|
+
// }
|
|
69
|
+
this.messageService.confirm("Remove " + chip + " ?").subscribe(function (result) {
|
|
70
|
+
if (result == "yes") {
|
|
71
|
+
_this.remove.emit(chip);
|
|
72
|
+
}
|
|
73
|
+
;
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
ChipsComponent.ɵfac = function ChipsComponent_Factory(t) { return new (t || ChipsComponent)(i0.ɵɵdirectiveInject(i1.MessageService)); };
|
|
77
|
+
ChipsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ChipsComponent, selectors: [["spa-chips"]], inputs: { icon: "icon", removable: "removable", addable: "addable", chips: "chips" }, outputs: { click: "click", remove: "remove" }, decls: 4, vars: 1, consts: [[1, "row", "mt-1", 2, "margin-left", "1em"], ["chipList", ""], ["selectable", "", "style", "font-size: 12px;", 3, "removable", "ngStyle", "click", 4, "ngFor", "ngForOf"], ["selectable", "", 2, "font-size", "12px", 3, "removable", "ngStyle", "click"], ["color", "primary", "style", "font-size: 22px;", 4, "ngIf"], ["style", "font-size: 20px; margin-left: 5px;margin-top: 3px;margin-right: 0px; color: grey;", 3, "click", 4, "ngIf"], ["color", "primary", 2, "font-size", "22px"], [2, "font-size", "20px", "margin-left", "5px", "margin-top", "3px", "margin-right", "0px", "color", "grey", 3, "click"]], template: function ChipsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
78
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
79
|
+
i0.ɵɵelementStart(1, "mat-chip-list", null, 1);
|
|
80
|
+
i0.ɵɵtemplate(3, ChipsComponent_mat_chip_3_Template, 4, 7, "mat-chip", 2);
|
|
81
|
+
i0.ɵɵelementEnd();
|
|
82
|
+
i0.ɵɵelementEnd();
|
|
83
|
+
} if (rf & 2) {
|
|
84
|
+
i0.ɵɵadvance(3);
|
|
85
|
+
i0.ɵɵproperty("ngForOf", ctx.chips);
|
|
86
|
+
} }, directives: [i2.MatChipList, i3.NgForOf, i2.MatChip, i3.NgStyle, i3.NgIf, i4.MatIcon], styles: [""] });
|
|
87
|
+
return ChipsComponent;
|
|
88
|
+
}());
|
|
89
|
+
export { ChipsComponent };
|
|
90
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ChipsComponent, [{
|
|
91
|
+
type: Component,
|
|
92
|
+
args: [{
|
|
93
|
+
selector: 'spa-chips',
|
|
94
|
+
templateUrl: './chips.component.html',
|
|
95
|
+
styleUrls: ['./chips.component.css']
|
|
96
|
+
}]
|
|
97
|
+
}], function () { return [{ type: i1.MessageService }]; }, { icon: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], removable: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], addable: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}], chips: [{
|
|
104
|
+
type: Input
|
|
105
|
+
}], click: [{
|
|
106
|
+
type: Output
|
|
107
|
+
}], remove: [{
|
|
108
|
+
type: Output
|
|
109
|
+
}] }); })();
|
|
110
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpcHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2NoaXBzL2NoaXBzLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL2NoaXBzL2NoaXBzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7Ozs7SUNNekUsbUNBQXNFO0lBQUEsWUFBUTtJQUFBLGlCQUFXOzs7SUFBbkIsZUFBUTtJQUFSLGlDQUFROzs7O0lBSTlFLG1DQUErSTtJQUF4QixrUEFBdUI7SUFBQyxzQkFBTTtJQUFBLGlCQUFXOzs7OztJQUxsSyxtQ0FDRTtJQUR1Syx5TkFBdUI7SUFDOUwsb0ZBQXNFO0lBRXRFLFlBRUE7SUFBQSxvRkFBK0k7SUFDakosaUJBQVc7Ozs7SUFOb0QsNENBQXVCLDBFQUFBO0lBQzFFLGVBQWtCO0lBQWxCLHdDQUFrQjtJQUU1QixlQUVBO0lBRkEsd0NBRUE7SUFBVSxlQUFpQjtJQUFqQix1Q0FBaUI7O0FEUmpDO0lBT0Usd0JBQW9CLGNBQThCO1FBQTlCLG1CQUFjLEdBQWQsY0FBYyxDQUFnQjtRQU96QyxTQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ1YsY0FBUyxHQUFHL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