ngx-vector-components 4.92.0 → 4.93.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/CHANGELOG.md +1220 -1214
- package/README.md +35 -35
- package/assets/icons/chevron_down_icon.svg +3 -3
- package/assets/icons/home_menu_icon.svg +3 -3
- package/assets/icons/logout_icon.svg +9 -9
- package/assets/icons/menu_footer_icon.svg +3 -3
- package/assets/icons/menu_hamburguer_icon.svg +3 -3
- package/assets/icons/terms_of_use_icon.svg +9 -9
- package/assets/icons/vector_admin_icon.svg +4 -4
- package/assets/icons/vector_fintech_icon.svg +3 -3
- package/assets/icons/vector_logtech_icon.svg +6 -6
- package/assets/icons/vector_marketplace_icon.svg +3 -3
- package/assets/images/bunge_logo.svg +23 -23
- package/assets/images/cofco_logo.svg +117 -117
- package/assets/images/emote_bad.svg +6 -6
- package/assets/images/emote_cool.svg +5 -5
- package/assets/images/emote_nice.svg +5 -5
- package/assets/images/success_sign.svg +4 -4
- package/assets/images/vector-logo-horizontal-inverse-color.svg +13 -13
- package/assets/images/vector_logo_horizontal.svg +13 -13
- package/assets/images/warn_sign.svg +4 -4
- package/assets/styles/_fonts.scss +114 -114
- package/assets/styles/_mixins.scss +7 -7
- package/assets/styles/_primeng-custom-theme.scss +982 -982
- package/assets/styles/_spinner.scss +35 -35
- package/assets/styles/_styles.scss +115 -115
- package/assets/styles/_variables.scss +27 -27
- package/esm2022/lib/components/badge/badge.component.mjs +39 -0
- package/esm2022/lib/components/badge/badge.module.mjs +19 -0
- package/{esm2020 → esm2022}/lib/components/badge/index.mjs +3 -3
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +66 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.module.mjs +18 -0
- package/{esm2020 → esm2022}/lib/components/breadcrumb/index.mjs +3 -3
- package/esm2022/lib/components/crud-base/crud-base.component.mjs +47 -0
- package/{esm2020 → esm2022}/lib/components/crud-base/index.mjs +2 -2
- package/esm2022/lib/components/crud-footer/crud-footer.component.mjs +32 -0
- package/esm2022/lib/components/crud-footer/crud-footer.module.mjs +20 -0
- package/{esm2020 → esm2022}/lib/components/crud-footer/index.mjs +3 -3
- package/esm2022/lib/components/crud-header/crud-header.component.mjs +30 -0
- package/esm2022/lib/components/crud-header/crud-header.module.mjs +19 -0
- package/{esm2020 → esm2022}/lib/components/crud-header/index.mjs +3 -3
- package/esm2022/lib/components/crud-history/crud-history.component.mjs +82 -0
- package/esm2022/lib/components/crud-history/crud-history.module.mjs +20 -0
- package/{esm2020 → esm2022}/lib/components/crud-history/index.mjs +3 -3
- package/esm2022/lib/components/fields/button/button.component.mjs +41 -0
- package/{esm2020 → esm2022}/lib/components/fields/button/index.mjs +2 -2
- package/esm2022/lib/components/fields/calendar-field/calendar-field.component.mjs +74 -0
- package/{esm2020 → esm2022}/lib/components/fields/calendar-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/checkbox-field/checkbox-field.component.mjs +46 -0
- package/{esm2020 → esm2022}/lib/components/fields/checkbox-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/currency-field/currency-field.component.mjs +98 -0
- package/{esm2020 → esm2022}/lib/components/fields/currency-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/data-table/data-table.component.mjs +386 -0
- package/{esm2020 → esm2022}/lib/components/fields/data-table/index.mjs +2 -2
- package/esm2022/lib/components/fields/dropdown-field/dropdown-field.component.mjs +204 -0
- package/{esm2020 → esm2022}/lib/components/fields/dropdown-field/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/components/fields/field-error-message/field-error-message.component.mjs +30 -30
- package/{esm2020 → esm2022}/lib/components/fields/field-error-message/index.mjs +2 -2
- package/esm2022/lib/components/fields/fields.module.mjs +211 -0
- package/esm2022/lib/components/fields/filters/filters.component.mjs +203 -0
- package/{esm2020 → esm2022}/lib/components/fields/filters/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/components/fields/index.mjs +19 -19
- package/{esm2020 → esm2022}/lib/components/fields/input-number-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/input-number-field/input-number-field.component.mjs +85 -0
- package/{esm2020 → esm2022}/lib/components/fields/multiselect-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/multiselect-field/multiselect-field.component.mjs +50 -0
- package/{esm2020 → esm2022}/lib/components/fields/percentage-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/percentage-field/percentage-field.component.mjs +42 -0
- package/{esm2020 → esm2022}/lib/components/fields/radio-button-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/radio-button-field/radio-button-field.component.mjs +48 -0
- package/{esm2020 → esm2022}/lib/components/fields/range-value/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/components/fields/range-value/range-value.component.mjs +72 -72
- package/{esm2020 → esm2022}/lib/components/fields/search-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/search-field/search-field.component.mjs +33 -0
- package/{esm2020 → esm2022}/lib/components/fields/select-button-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/select-button-field/select-button-field.component.mjs +20 -0
- package/{esm2020 → esm2022}/lib/components/fields/text-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/text-field/text-field.component.mjs +229 -0
- package/{esm2020 → esm2022}/lib/components/fields/textarea-field/index.mjs +2 -2
- package/esm2022/lib/components/fields/textarea-field/textarea-field.component.mjs +81 -0
- package/esm2022/lib/components/generic-error-modal/generic-error-modal.component.mjs +39 -0
- package/esm2022/lib/components/generic-error-modal/generic-error-modal.module.mjs +20 -0
- package/{esm2020 → esm2022}/lib/components/generic-error-modal/index.mjs +3 -3
- package/esm2022/lib/components/generic-modal/generic-modal.component.mjs +66 -0
- package/esm2022/lib/components/generic-modal/generic-modal.module.mjs +20 -0
- package/{esm2020 → esm2022}/lib/components/generic-modal/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/components/index.mjs +14 -14
- package/{esm2020 → esm2022}/lib/components/menu/index.mjs +4 -4
- package/esm2022/lib/components/menu/menu.component.mjs +305 -0
- package/esm2022/lib/components/menu/menu.module.mjs +20 -0
- package/esm2022/lib/components/menu/sub-menus-list/sub-menus-list.component.mjs +42 -0
- package/{esm2020 → esm2022}/lib/components/panel/index.mjs +3 -3
- package/esm2022/lib/components/panel/panel.component.mjs +15 -0
- package/esm2022/lib/components/panel/panel.module.mjs +19 -0
- package/{esm2020 → esm2022}/lib/components/score/index.mjs +3 -3
- package/esm2022/lib/components/score/score.component.mjs +17 -0
- package/{esm2020 → esm2022}/lib/components/score/score.module.mjs +16 -16
- package/{esm2020 → esm2022}/lib/components/top-bar/index.mjs +3 -3
- package/esm2022/lib/components/top-bar/top-bar.component.mjs +142 -0
- package/esm2022/lib/components/top-bar/top-bar.module.mjs +20 -0
- package/{esm2020 → esm2022}/lib/guards/crud-list-has-items.guard.mjs +22 -22
- package/{esm2020 → esm2022}/lib/guards/get-token-by-guid.guard.mjs +54 -54
- package/{esm2020 → esm2022}/lib/guards/has-permission.guard.mjs +27 -27
- package/{esm2020 → esm2022}/lib/guards/index.mjs +6 -6
- package/{esm2020 → esm2022}/lib/guards/role.guard.mjs +24 -24
- package/{esm2020 → esm2022}/lib/guards/token-is-present.guard.mjs +26 -26
- package/{esm2020 → esm2022}/lib/interceptors/http-interceptor.mjs +185 -185
- package/{esm2020 → esm2022}/lib/interceptors/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/models/app-name.enum.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/boolean-type.enum.mjs +6 -6
- package/{esm2020 → esm2022}/lib/models/crud-history.model.mjs +3 -3
- package/{esm2020 → esm2022}/lib/models/crud-mode.enum.mjs +7 -7
- package/{esm2020 → esm2022}/lib/models/currency.enum.mjs +7 -7
- package/esm2022/lib/models/data-table.model.mjs +23 -0
- package/{esm2020 → esm2022}/lib/models/document-type.enum.mjs +6 -6
- package/{esm2020 → esm2022}/lib/models/filters.model.mjs +2 -2
- package/{esm2020 → esm2022}/lib/models/generic-modal.model.mjs +2 -2
- package/esm2022/lib/models/http-response.model.mjs +2 -0
- package/{esm2020 → esm2022}/lib/models/index.mjs +18 -18
- package/{esm2020 → esm2022}/lib/models/ip-info.enum.mjs +2 -2
- package/{esm2020 → esm2022}/lib/models/list-item.model.mjs +2 -2
- package/{esm2020 → esm2022}/lib/models/locale.enum.mjs +7 -7
- package/esm2022/lib/models/menu-item.model.mjs +2 -0
- package/{esm2020 → esm2022}/lib/models/message-status.enum.mjs +8 -8
- package/{esm2020 → esm2022}/lib/models/profile.model.mjs +271 -271
- package/{esm2020 → esm2022}/lib/models/role.enum.mjs +5 -5
- package/{esm2020 → esm2022}/lib/models/status.enum.mjs +8 -8
- package/{esm2020 → esm2022}/lib/models/topbar.model.mjs +2 -2
- package/esm2022/lib/models/vector-app.model.mjs +2 -0
- package/{esm2020 → esm2022}/lib/models/vector-notification.model.mjs +2 -2
- package/{esm2020 → esm2022}/lib/models/view.enum.mjs +7 -7
- package/{esm2020 → esm2022}/lib/pipes/currency-brl.pipe.mjs +18 -18
- package/{esm2020 → esm2022}/lib/pipes/format-document.pipe.mjs +17 -17
- package/{esm2020 → esm2022}/lib/pipes/index.mjs +9 -9
- package/{esm2020 → esm2022}/lib/pipes/mask.pipe.mjs +21 -21
- package/{esm2020 → esm2022}/lib/pipes/not-hidden.pipe.mjs +16 -16
- package/{esm2020 → esm2022}/lib/pipes/only-active.pipe.mjs +16 -16
- package/{esm2020 → esm2022}/lib/pipes/pipes.module.mjs +50 -50
- package/{esm2020 → esm2022}/lib/pipes/remove-last-child.pipe.mjs +18 -18
- package/{esm2020 → esm2022}/lib/pipes/unread-notifications.pipe.mjs +15 -15
- package/{esm2020 → esm2022}/lib/resolvers/get-selected-crud-item.resolver.mjs +28 -28
- package/{esm2020 → esm2022}/lib/resolvers/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/services/auth.service.mjs +77 -77
- package/esm2022/lib/services/base-dropdown.mjs +2 -0
- package/{esm2020 → esm2022}/lib/services/crud-base.service.mjs +14 -14
- package/{esm2020 → esm2022}/lib/services/enum.service.mjs +43 -43
- package/{esm2020 → esm2022}/lib/services/error-message.service.mjs +16 -16
- package/{esm2020 → esm2022}/lib/services/geolocation.service.mjs +23 -23
- package/{esm2020 → esm2022}/lib/services/index.mjs +13 -13
- package/{esm2020 → esm2022}/lib/services/loading.service.mjs +15 -15
- package/{esm2020 → esm2022}/lib/services/menu.service.mjs +152 -152
- package/{esm2020 → esm2022}/lib/services/modal.service.mjs +15 -15
- package/{esm2020 → esm2022}/lib/services/notifications.service.mjs +64 -64
- package/{esm2020 → esm2022}/lib/services/profile.service.mjs +103 -103
- package/{esm2020 → esm2022}/lib/services/storage.service.mjs +108 -108
- package/esm2022/lib/shared/shared.module.mjs +19 -0
- package/{esm2020 → esm2022}/lib/utils/cpf-cnpj-validator.util.mjs +116 -116
- package/{esm2020 → esm2022}/lib/utils/file.util.mjs +15 -15
- package/{esm2020 → esm2022}/lib/utils/index.mjs +8 -8
- package/esm2022/lib/utils/mask.util.mjs +76 -0
- package/{esm2020 → esm2022}/lib/utils/object.util.mjs +27 -27
- package/{esm2020 → esm2022}/lib/utils/string.util.mjs +16 -16
- package/{esm2020 → esm2022}/lib/utils/validation.util.mjs +234 -234
- package/{esm2020 → esm2022}/lib/utils/window.util.mjs +9 -9
- package/{esm2020 → esm2022}/ngx-vector-components.mjs +4 -4
- package/{esm2020 → esm2022}/public-api.mjs +9 -9
- package/fesm2022/ngx-vector-components.mjs +4784 -0
- package/fesm2022/ngx-vector-components.mjs.map +1 -0
- package/{ngx-vector-components.d.ts → index.d.ts} +5 -5
- package/lib/components/badge/badge.component.d.ts +15 -15
- package/lib/components/badge/badge.module.d.ts +9 -9
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +19 -19
- package/lib/components/breadcrumb/breadcrumb.module.d.ts +8 -8
- package/lib/components/breadcrumb/index.d.ts +2 -2
- package/lib/components/crud-base/crud-base.component.d.ts +20 -20
- package/lib/components/crud-base/index.d.ts +1 -1
- package/lib/components/crud-footer/crud-footer.component.d.ts +13 -13
- package/lib/components/crud-footer/crud-footer.module.d.ts +10 -10
- package/lib/components/crud-footer/index.d.ts +2 -2
- package/lib/components/crud-header/crud-header.component.d.ts +11 -11
- package/lib/components/crud-header/crud-header.module.d.ts +9 -9
- package/lib/components/crud-header/index.d.ts +2 -2
- package/lib/components/crud-history/crud-history.component.d.ts +12 -12
- package/lib/components/crud-history/crud-history.module.d.ts +10 -10
- package/lib/components/crud-history/index.d.ts +2 -2
- package/lib/components/fields/button/button.component.d.ts +17 -17
- package/lib/components/fields/button/index.d.ts +1 -1
- package/lib/components/fields/calendar-field/calendar-field.component.d.ts +23 -23
- package/lib/components/fields/calendar-field/index.d.ts +1 -1
- package/lib/components/fields/checkbox-field/checkbox-field.component.d.ts +19 -19
- package/lib/components/fields/checkbox-field/index.d.ts +1 -1
- package/lib/components/fields/currency-field/currency-field.component.d.ts +32 -32
- package/lib/components/fields/currency-field/index.d.ts +1 -1
- package/lib/components/fields/data-table/data-table.component.d.ts +82 -82
- package/lib/components/fields/data-table/index.d.ts +1 -1
- package/lib/components/fields/dropdown-field/dropdown-field.component.d.ts +52 -52
- package/lib/components/fields/dropdown-field/index.d.ts +1 -1
- package/lib/components/fields/field-error-message/field-error-message.component.d.ts +10 -10
- package/lib/components/fields/field-error-message/index.d.ts +1 -1
- package/lib/components/fields/fields.module.d.ts +48 -48
- package/lib/components/fields/filters/filters.component.d.ts +63 -63
- package/lib/components/fields/filters/index.d.ts +1 -1
- package/lib/components/fields/index.d.ts +18 -18
- package/lib/components/fields/input-number-field/index.d.ts +1 -1
- package/lib/components/fields/input-number-field/input-number-field.component.d.ts +28 -28
- package/lib/components/fields/multiselect-field/index.d.ts +1 -1
- package/lib/components/fields/multiselect-field/multiselect-field.component.d.ts +16 -16
- package/lib/components/fields/percentage-field/index.d.ts +1 -1
- package/lib/components/fields/percentage-field/percentage-field.component.d.ts +16 -16
- package/lib/components/fields/radio-button-field/index.d.ts +1 -1
- package/lib/components/fields/radio-button-field/radio-button-field.component.d.ts +25 -25
- package/lib/components/fields/range-value/index.d.ts +1 -1
- package/lib/components/fields/range-value/range-value.component.d.ts +18 -18
- package/lib/components/fields/search-field/index.d.ts +1 -1
- package/lib/components/fields/search-field/search-field.component.d.ts +14 -14
- package/lib/components/fields/select-button-field/index.d.ts +1 -1
- package/lib/components/fields/select-button-field/select-button-field.component.d.ts +9 -9
- package/lib/components/fields/text-field/index.d.ts +1 -1
- package/lib/components/fields/text-field/text-field.component.d.ts +54 -54
- package/lib/components/fields/textarea-field/index.d.ts +1 -1
- package/lib/components/fields/textarea-field/textarea-field.component.d.ts +22 -22
- package/lib/components/generic-error-modal/generic-error-modal.component.d.ts +16 -15
- package/lib/components/generic-error-modal/generic-error-modal.module.d.ts +10 -10
- package/lib/components/generic-error-modal/index.d.ts +2 -2
- package/lib/components/generic-modal/generic-modal.component.d.ts +24 -24
- package/lib/components/generic-modal/generic-modal.module.d.ts +10 -10
- package/lib/components/generic-modal/index.d.ts +2 -2
- package/lib/components/index.d.ts +13 -13
- package/lib/components/menu/index.d.ts +3 -3
- package/lib/components/menu/menu.component.d.ts +53 -53
- package/lib/components/menu/menu.module.d.ts +10 -10
- package/lib/components/menu/sub-menus-list/sub-menus-list.component.d.ts +14 -14
- package/lib/components/panel/index.d.ts +2 -2
- package/lib/components/panel/panel.component.d.ts +8 -8
- package/lib/components/panel/panel.module.d.ts +9 -9
- package/lib/components/score/index.d.ts +2 -2
- package/lib/components/score/score.component.d.ts +9 -9
- package/lib/components/score/score.module.d.ts +7 -7
- package/lib/components/top-bar/index.d.ts +2 -2
- package/lib/components/top-bar/top-bar.component.d.ts +48 -48
- package/lib/components/top-bar/top-bar.module.d.ts +10 -10
- package/lib/guards/crud-list-has-items.guard.d.ts +10 -10
- package/lib/guards/get-token-by-guid.guard.d.ts +15 -15
- package/lib/guards/has-permission.guard.d.ts +13 -13
- package/lib/guards/index.d.ts +5 -5
- package/lib/guards/role.guard.d.ts +11 -11
- package/lib/guards/token-is-present.guard.d.ts +11 -11
- package/lib/interceptors/http-interceptor.d.ts +31 -31
- package/lib/interceptors/index.d.ts +1 -1
- package/lib/models/app-name.enum.d.ts +8 -8
- package/lib/models/boolean-type.enum.d.ts +4 -4
- package/lib/models/crud-history.model.d.ts +13 -13
- package/lib/models/crud-mode.enum.d.ts +5 -5
- package/lib/models/currency.enum.d.ts +5 -5
- package/lib/models/data-table.model.d.ts +65 -65
- package/lib/models/document-type.enum.d.ts +4 -4
- package/lib/models/filters.model.d.ts +4 -4
- package/lib/models/generic-modal.model.d.ts +13 -13
- package/lib/models/http-response.model.d.ts +48 -48
- package/lib/models/index.d.ts +17 -17
- package/lib/models/ip-info.enum.d.ts +6 -6
- package/lib/models/list-item.model.d.ts +7 -7
- package/lib/models/locale.enum.d.ts +5 -5
- package/lib/models/menu-item.model.d.ts +16 -16
- package/lib/models/message-status.enum.d.ts +6 -6
- package/lib/models/profile.model.d.ts +292 -292
- package/lib/models/role.enum.d.ts +3 -3
- package/lib/models/status.enum.d.ts +6 -6
- package/lib/models/topbar.model.d.ts +5 -5
- package/lib/models/vector-app.model.d.ts +9 -9
- package/lib/models/vector-notification.model.d.ts +8 -8
- package/lib/models/view.enum.d.ts +5 -5
- package/lib/pipes/currency-brl.pipe.d.ts +7 -7
- package/lib/pipes/format-document.pipe.d.ts +7 -7
- package/lib/pipes/index.d.ts +8 -8
- package/lib/pipes/mask.pipe.d.ts +7 -7
- package/lib/pipes/not-hidden.pipe.d.ts +7 -7
- package/lib/pipes/only-active.pipe.d.ts +7 -7
- package/lib/pipes/pipes.module.d.ts +13 -13
- package/lib/pipes/remove-last-child.pipe.d.ts +7 -7
- package/lib/pipes/unread-notifications.pipe.d.ts +9 -9
- package/lib/resolvers/get-selected-crud-item.resolver.d.ts +10 -10
- package/lib/resolvers/index.d.ts +1 -1
- package/lib/services/auth.service.d.ts +24 -24
- package/lib/services/base-dropdown.d.ts +7 -7
- package/lib/services/crud-base.service.d.ts +7 -7
- package/lib/services/enum.service.d.ts +13 -13
- package/lib/services/error-message.service.d.ts +8 -8
- package/lib/services/geolocation.service.d.ts +13 -13
- package/lib/services/index.d.ts +12 -12
- package/lib/services/loading.service.d.ts +7 -7
- package/lib/services/menu.service.d.ts +35 -35
- package/lib/services/modal.service.d.ts +7 -7
- package/lib/services/notifications.service.d.ts +13 -13
- package/lib/services/profile.service.d.ts +26 -26
- package/lib/services/storage.service.d.ts +43 -43
- package/lib/shared/shared.module.d.ts +10 -10
- package/lib/utils/cpf-cnpj-validator.util.d.ts +5 -5
- package/lib/utils/file.util.d.ts +4 -4
- package/lib/utils/index.d.ts +7 -7
- package/lib/utils/mask.util.d.ts +21 -21
- package/lib/utils/object.util.d.ts +5 -5
- package/lib/utils/string.util.d.ts +4 -4
- package/lib/utils/validation.util.d.ts +17 -17
- package/lib/utils/window.util.d.ts +4 -4
- package/package.json +18 -24
- package/public-api.d.ts +8 -8
- package/esm2020/lib/components/badge/badge.component.mjs +0 -39
- package/esm2020/lib/components/badge/badge.module.mjs +0 -19
- package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +0 -66
- package/esm2020/lib/components/breadcrumb/breadcrumb.module.mjs +0 -18
- package/esm2020/lib/components/crud-base/crud-base.component.mjs +0 -47
- package/esm2020/lib/components/crud-footer/crud-footer.component.mjs +0 -32
- package/esm2020/lib/components/crud-footer/crud-footer.module.mjs +0 -20
- package/esm2020/lib/components/crud-header/crud-header.component.mjs +0 -30
- package/esm2020/lib/components/crud-header/crud-header.module.mjs +0 -19
- package/esm2020/lib/components/crud-history/crud-history.component.mjs +0 -82
- package/esm2020/lib/components/crud-history/crud-history.module.mjs +0 -20
- package/esm2020/lib/components/fields/button/button.component.mjs +0 -41
- package/esm2020/lib/components/fields/calendar-field/calendar-field.component.mjs +0 -74
- package/esm2020/lib/components/fields/checkbox-field/checkbox-field.component.mjs +0 -46
- package/esm2020/lib/components/fields/currency-field/currency-field.component.mjs +0 -98
- package/esm2020/lib/components/fields/data-table/data-table.component.mjs +0 -386
- package/esm2020/lib/components/fields/dropdown-field/dropdown-field.component.mjs +0 -204
- package/esm2020/lib/components/fields/fields.module.mjs +0 -213
- package/esm2020/lib/components/fields/filters/filters.component.mjs +0 -203
- package/esm2020/lib/components/fields/input-number-field/input-number-field.component.mjs +0 -85
- package/esm2020/lib/components/fields/multiselect-field/multiselect-field.component.mjs +0 -50
- package/esm2020/lib/components/fields/percentage-field/percentage-field.component.mjs +0 -42
- package/esm2020/lib/components/fields/radio-button-field/radio-button-field.component.mjs +0 -48
- package/esm2020/lib/components/fields/search-field/search-field.component.mjs +0 -33
- package/esm2020/lib/components/fields/select-button-field/select-button-field.component.mjs +0 -20
- package/esm2020/lib/components/fields/text-field/text-field.component.mjs +0 -229
- package/esm2020/lib/components/fields/textarea-field/textarea-field.component.mjs +0 -81
- package/esm2020/lib/components/generic-error-modal/generic-error-modal.component.mjs +0 -36
- package/esm2020/lib/components/generic-error-modal/generic-error-modal.module.mjs +0 -20
- package/esm2020/lib/components/generic-modal/generic-modal.component.mjs +0 -66
- package/esm2020/lib/components/generic-modal/generic-modal.module.mjs +0 -20
- package/esm2020/lib/components/menu/menu.component.mjs +0 -305
- package/esm2020/lib/components/menu/menu.module.mjs +0 -20
- package/esm2020/lib/components/menu/sub-menus-list/sub-menus-list.component.mjs +0 -42
- package/esm2020/lib/components/panel/panel.component.mjs +0 -15
- package/esm2020/lib/components/panel/panel.module.mjs +0 -19
- package/esm2020/lib/components/score/score.component.mjs +0 -17
- package/esm2020/lib/components/top-bar/top-bar.component.mjs +0 -142
- package/esm2020/lib/components/top-bar/top-bar.module.mjs +0 -20
- package/esm2020/lib/models/data-table.model.mjs +0 -23
- package/esm2020/lib/models/http-response.model.mjs +0 -2
- package/esm2020/lib/models/menu-item.model.mjs +0 -2
- package/esm2020/lib/models/vector-app.model.mjs +0 -2
- package/esm2020/lib/services/base-dropdown.mjs +0 -2
- package/esm2020/lib/shared/shared.module.mjs +0 -19
- package/esm2020/lib/utils/mask.util.mjs +0 -76
- package/fesm2015/ngx-vector-components.mjs +0 -4805
- package/fesm2015/ngx-vector-components.mjs.map +0 -1
- package/fesm2020/ngx-vector-components.mjs +0 -4783
- package/fesm2020/ngx-vector-components.mjs.map +0 -1
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import { map, switchMap } from 'rxjs/operators';
|
|
3
|
-
import { Role } from '../models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../services";
|
|
6
|
-
import * as i2 from "@angular/router";
|
|
7
|
-
import * as i3 from "../models";
|
|
8
|
-
export class GetTokenByGuidGuard {
|
|
9
|
-
constructor(authService, storageService, router, profileService, appName) {
|
|
10
|
-
this.authService = authService;
|
|
11
|
-
this.storageService = storageService;
|
|
12
|
-
this.router = router;
|
|
13
|
-
this.profileService = profileService;
|
|
14
|
-
this.appName = appName;
|
|
15
|
-
}
|
|
16
|
-
canActivate(route) {
|
|
17
|
-
const paramTokenGuid = route.queryParams['Token'];
|
|
18
|
-
const role = atob(route.queryParams['role'] || '');
|
|
19
|
-
this.authService.role$.next(role);
|
|
20
|
-
if (paramTokenGuid) {
|
|
21
|
-
this.storageService.clear();
|
|
22
|
-
this.storageService.setRole(route.queryParams['role']);
|
|
23
|
-
this.storageService.setUserId(route.queryParams['userId']);
|
|
24
|
-
return this.authService.getTokenByGuid(paramTokenGuid).pipe(switchMap((token) => {
|
|
25
|
-
if (token && role !== Role.ADMIN) {
|
|
26
|
-
this.router.createUrlTree([this.appName.toLowerCase()]);
|
|
27
|
-
}
|
|
28
|
-
return this.profileService.getUserInfo().pipe(map((response) => {
|
|
29
|
-
if (response.id) {
|
|
30
|
-
this.storageService.setUserId(response.id);
|
|
31
|
-
}
|
|
32
|
-
return true;
|
|
33
|
-
}));
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
else if (this.storageService.getToken()) {
|
|
37
|
-
if (role !== Role.ADMIN) {
|
|
38
|
-
return this.router.createUrlTree([this.appName.toLowerCase()]);
|
|
39
|
-
}
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
this.authService.logout();
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
49
|
-
type: Injectable
|
|
50
|
-
}], ctorParameters: function () { return [{ type: i1.AuthService }, { type: i1.StorageService }, { type: i2.Router }, { type: i1.ProfileService }, { type: i3.AppName, decorators: [{
|
|
51
|
-
type: Inject,
|
|
52
|
-
args: ['appName']
|
|
53
|
-
}] }]; } });
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
|
2
|
+
import { map, switchMap } from 'rxjs/operators';
|
|
3
|
+
import { Role } from '../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../services";
|
|
6
|
+
import * as i2 from "@angular/router";
|
|
7
|
+
import * as i3 from "../models";
|
|
8
|
+
export class GetTokenByGuidGuard {
|
|
9
|
+
constructor(authService, storageService, router, profileService, appName) {
|
|
10
|
+
this.authService = authService;
|
|
11
|
+
this.storageService = storageService;
|
|
12
|
+
this.router = router;
|
|
13
|
+
this.profileService = profileService;
|
|
14
|
+
this.appName = appName;
|
|
15
|
+
}
|
|
16
|
+
canActivate(route) {
|
|
17
|
+
const paramTokenGuid = route.queryParams['Token'];
|
|
18
|
+
const role = atob(route.queryParams['role'] || '');
|
|
19
|
+
this.authService.role$.next(role);
|
|
20
|
+
if (paramTokenGuid) {
|
|
21
|
+
this.storageService.clear();
|
|
22
|
+
this.storageService.setRole(route.queryParams['role']);
|
|
23
|
+
this.storageService.setUserId(route.queryParams['userId']);
|
|
24
|
+
return this.authService.getTokenByGuid(paramTokenGuid).pipe(switchMap((token) => {
|
|
25
|
+
if (token && role !== Role.ADMIN) {
|
|
26
|
+
this.router.createUrlTree([this.appName.toLowerCase()]);
|
|
27
|
+
}
|
|
28
|
+
return this.profileService.getUserInfo().pipe(map((response) => {
|
|
29
|
+
if (response.id) {
|
|
30
|
+
this.storageService.setUserId(response.id);
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
}));
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
else if (this.storageService.getToken()) {
|
|
37
|
+
if (role !== Role.ADMIN) {
|
|
38
|
+
return this.router.createUrlTree([this.appName.toLowerCase()]);
|
|
39
|
+
}
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
this.authService.logout();
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: GetTokenByGuidGuard, deps: [{ token: i1.AuthService }, { token: i1.StorageService }, { token: i2.Router }, { token: i1.ProfileService }, { token: 'appName' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
46
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: GetTokenByGuidGuard }); }
|
|
47
|
+
}
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: GetTokenByGuidGuard, decorators: [{
|
|
49
|
+
type: Injectable
|
|
50
|
+
}], ctorParameters: function () { return [{ type: i1.AuthService }, { type: i1.StorageService }, { type: i2.Router }, { type: i1.ProfileService }, { type: i3.AppName, decorators: [{
|
|
51
|
+
type: Inject,
|
|
52
|
+
args: ['appName']
|
|
53
|
+
}] }]; } });
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LXRva2VuLWJ5LWd1aWQuZ3VhcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3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7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICB9KVxuICAgICAgICAgICk7XG4gICAgICAgIH0pXG4gICAgICApO1xuICAgIH0gZWxzZSBpZiAodGhpcy5zdG9yYWdlU2VydmljZS5nZXRUb2tlbigpKSB7XG4gICAgICBpZiAocm9sZSAhPT0gUm9sZS5BRE1JTikge1xuICAgICAgICByZXR1cm4gdGhpcy5yb3V0ZXIuY3JlYXRlVXJsVHJlZShbdGhpcy5hcHBOYW1lLnRvTG93ZXJDYXNlKCldKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cbiAgICB0aGlzLmF1dGhTZXJ2aWNlLmxvZ291dCgpO1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxufVxuIl19
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../services";
|
|
4
|
-
import * as i2 from "@angular/router";
|
|
5
|
-
import * as i3 from "../models";
|
|
6
|
-
export class HasPermissionGuard {
|
|
7
|
-
constructor(profileService, router, appName) {
|
|
8
|
-
this.profileService = profileService;
|
|
9
|
-
this.router = router;
|
|
10
|
-
this.appName = appName;
|
|
11
|
-
}
|
|
12
|
-
canActivate(routeSnapshot) {
|
|
13
|
-
if (!this.profileService.userHasPermission(routeSnapshot.data['permission'])) {
|
|
14
|
-
return this.router.createUrlTree([this.appName.toLowerCase()]);
|
|
15
|
-
}
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
-
type: Injectable
|
|
23
|
-
}], ctorParameters: function () { return [{ type: i1.ProfileService }, { type: i2.Router }, { type: i3.AppName, decorators: [{
|
|
24
|
-
type: Inject,
|
|
25
|
-
args: ['appName']
|
|
26
|
-
}] }]; } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../services";
|
|
4
|
+
import * as i2 from "@angular/router";
|
|
5
|
+
import * as i3 from "../models";
|
|
6
|
+
export class HasPermissionGuard {
|
|
7
|
+
constructor(profileService, router, appName) {
|
|
8
|
+
this.profileService = profileService;
|
|
9
|
+
this.router = router;
|
|
10
|
+
this.appName = appName;
|
|
11
|
+
}
|
|
12
|
+
canActivate(routeSnapshot) {
|
|
13
|
+
if (!this.profileService.userHasPermission(routeSnapshot.data['permission'])) {
|
|
14
|
+
return this.router.createUrlTree([this.appName.toLowerCase()]);
|
|
15
|
+
}
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: HasPermissionGuard, deps: [{ token: i1.ProfileService }, { token: i2.Router }, { token: 'appName' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
19
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: HasPermissionGuard }); }
|
|
20
|
+
}
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: HasPermissionGuard, decorators: [{
|
|
22
|
+
type: Injectable
|
|
23
|
+
}], ctorParameters: function () { return [{ type: i1.ProfileService }, { type: i2.Router }, { type: i3.AppName, decorators: [{
|
|
24
|
+
type: Inject,
|
|
25
|
+
args: ['appName']
|
|
26
|
+
}] }]; } });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFzLXBlcm1pc3Npb24uZ3VhcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi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0gZnJvbSAnLi4vbW9kZWxzJztcbmltcG9ydCB7IFByb2ZpbGVTZXJ2aWNlIH0gZnJvbSAnLi4vc2VydmljZXMnO1xuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgSGFzUGVybWlzc2lvbkd1YXJkICB7XG4gIGNvbnN0cnVjdG9yKFxuICAgIHByaXZhdGUgcHJvZmlsZVNlcnZpY2U6IFByb2ZpbGVTZXJ2aWNlLFxuICAgIHByaXZhdGUgcm91dGVyOiBSb3V0ZXIsXG4gICAgQEluamVjdCgnYXBwTmFtZScpIHByaXZhdGUgYXBwTmFtZTogQXBwTmFtZVxuICApIHt9XG5cbiAgY2FuQWN0aXZhdGUocm91dGVTbmFwc2hvdDogQWN0aXZhdGVkUm91dGVTbmFwc2hvdCkge1xuICAgIGlmICghdGhpcy5wcm9maWxlU2VydmljZS51c2VySGFzUGVybWlzc2lvbihyb3V0ZVNuYXBzaG90LmRhdGFbJ3Blcm1pc3Npb24nXSkpIHtcbiAgICAgIHJldHVybiB0aGlzLnJvdXRlci5jcmVhdGVVcmxUcmVlKFt0aGlzLmFwcE5hbWUudG9Mb3dlckNhc2UoKV0pO1xuICAgIH1cbiAgICByZXR1cm4gdHJ1ZTtcbiAgfVxufVxuIl19
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './crud-list-has-items.guard';
|
|
2
|
-
export * from './get-token-by-guid.guard';
|
|
3
|
-
export * from './has-permission.guard';
|
|
4
|
-
export * from './role.guard';
|
|
5
|
-
export * from './token-is-present.guard';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './crud-list-has-items.guard';
|
|
2
|
+
export * from './get-token-by-guid.guard';
|
|
3
|
+
export * from './has-permission.guard';
|
|
4
|
+
export * from './role.guard';
|
|
5
|
+
export * from './token-is-present.guard';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdmVjdG9yLWNvbXBvbmVudHMvc3JjL2xpYi9ndWFyZHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYywwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY3J1ZC1saXN0LWhhcy1pdGVtcy5ndWFyZCc7XG5leHBvcnQgKiBmcm9tICcuL2dldC10b2tlbi1ieS1ndWlkLmd1YXJkJztcbmV4cG9ydCAqIGZyb20gJy4vaGFzLXBlcm1pc3Npb24uZ3VhcmQnO1xuZXhwb3J0ICogZnJvbSAnLi9yb2xlLmd1YXJkJztcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW4taXMtcHJlc2VudC5ndWFyZCc7XG4iXX0=
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { Role } from '../models';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../services";
|
|
5
|
-
import * as i2 from "@angular/router";
|
|
6
|
-
export class RoleGuard {
|
|
7
|
-
constructor(storageService, router) {
|
|
8
|
-
this.storageService = storageService;
|
|
9
|
-
this.router = router;
|
|
10
|
-
}
|
|
11
|
-
canActivate(routeSnapshot) {
|
|
12
|
-
const isRoleAdmin = this.storageService.getRole() === Role.ADMIN;
|
|
13
|
-
if ((routeSnapshot.data['adminView'] && isRoleAdmin) || (!routeSnapshot.data['adminView'] && !isRoleAdmin)) {
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
return this.router.createUrlTree(['']);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
-
type: Injectable
|
|
23
|
-
}], ctorParameters: function () { return [{ type: i1.StorageService }, { type: i2.Router }]; } });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Role } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../services";
|
|
5
|
+
import * as i2 from "@angular/router";
|
|
6
|
+
export class RoleGuard {
|
|
7
|
+
constructor(storageService, router) {
|
|
8
|
+
this.storageService = storageService;
|
|
9
|
+
this.router = router;
|
|
10
|
+
}
|
|
11
|
+
canActivate(routeSnapshot) {
|
|
12
|
+
const isRoleAdmin = this.storageService.getRole() === Role.ADMIN;
|
|
13
|
+
if ((routeSnapshot.data['adminView'] && isRoleAdmin) || (!routeSnapshot.data['adminView'] && !isRoleAdmin)) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
return this.router.createUrlTree(['']);
|
|
17
|
+
}
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: RoleGuard, deps: [{ token: i1.StorageService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
19
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: RoleGuard }); }
|
|
20
|
+
}
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: RoleGuard, decorators: [{
|
|
22
|
+
type: Injectable
|
|
23
|
+
}], ctorParameters: function () { return [{ type: i1.StorageService }, { type: i2.Router }]; } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9sZS5ndWFyZC5qcy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vdXRlciB9IGZyb20gJ0Bhbmd1bGFyL3JvdXRlcic7XG5pbXBvcnQgeyBSb2xlIH0gZnJvbSAnLi4vbW9kZWxzJztcbmltcG9ydCB7IFN0b3JhZ2VTZXJ2aWNlIH0gZnJvbSAnLi4vc2VydmljZXMnO1xuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgUm9sZUd1YXJkICB7XG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgc3RvcmFnZVNlcnZpY2U6IFN0b3JhZ2VTZXJ2aWNlLCBwcml2YXRlIHJvdXRlcjogUm91dGVyKSB7fVxuXG4gIGNhbkFjdGl2YXRlKHJvdXRlU25hcHNob3Q6IEFjdGl2YXRlZFJvdXRlU25hcHNob3QpIHtcbiAgICBjb25zdCBpc1JvbGVBZG1pbiA9IHRoaXMuc3RvcmFnZVNlcnZpY2UuZ2V0Um9sZSgpID09PSBSb2xlLkFETUlOO1xuICAgIGlmICgocm91dGVTbmFwc2hvdC5kYXRhWydhZG1pblZpZXcnXSAmJiBpc1JvbGVBZG1pbikgfHwgKCFyb3V0ZVNuYXBzaG90LmRhdGFbJ2FkbWluVmlldyddICYmICFpc1JvbGVBZG1pbikpIHtcbiAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5yb3V0ZXIuY3JlYXRlVXJsVHJlZShbJyddKTtcbiAgfVxufVxuIl19
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../services";
|
|
4
|
-
export class TokenIsPresentGuard {
|
|
5
|
-
constructor(storageService, authService) {
|
|
6
|
-
this.storageService = storageService;
|
|
7
|
-
this.authService = authService;
|
|
8
|
-
}
|
|
9
|
-
canActivate(routeSnapshot) {
|
|
10
|
-
if (routeSnapshot.queryParams['tokenGuid']) {
|
|
11
|
-
return this.authService
|
|
12
|
-
.getTokenByGuid(routeSnapshot.queryParams['tokenGuid'])
|
|
13
|
-
.toPromise()
|
|
14
|
-
.then((response) => !!response.accessToken);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
return !!this.storageService.getToken();
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
-
type: Injectable
|
|
25
|
-
}], ctorParameters: function () { return [{ type: i1.StorageService }, { type: i1.AuthService }]; } });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../services";
|
|
4
|
+
export class TokenIsPresentGuard {
|
|
5
|
+
constructor(storageService, authService) {
|
|
6
|
+
this.storageService = storageService;
|
|
7
|
+
this.authService = authService;
|
|
8
|
+
}
|
|
9
|
+
canActivate(routeSnapshot) {
|
|
10
|
+
if (routeSnapshot.queryParams['tokenGuid']) {
|
|
11
|
+
return this.authService
|
|
12
|
+
.getTokenByGuid(routeSnapshot.queryParams['tokenGuid'])
|
|
13
|
+
.toPromise()
|
|
14
|
+
.then((response) => !!response.accessToken);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return !!this.storageService.getToken();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: TokenIsPresentGuard, deps: [{ token: i1.StorageService }, { token: i1.AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
21
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: TokenIsPresentGuard }); }
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: TokenIsPresentGuard, decorators: [{
|
|
24
|
+
type: Injectable
|
|
25
|
+
}], ctorParameters: function () { return [{ type: i1.StorageService }, { type: i1.AuthService }]; } });
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW4taXMtcHJlc2VudC5ndWFyZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC12ZWN0b3ItY29tcG9uZW50cy9zcmMvbGliL2d1YXJkcy90b2tlbi1pcy1wcmVzZW50Lmd1YXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQUszQyxNQUFNLE9BQU8sbUJBQW1CO0lBQzlCLFlBQW9CLGNBQThCLEVBQVUsV0FBd0I7UUFBaEUsbUJBQWMsR0FBZCxjQUFjLENBQWdCO1FBQVUsZ0JBQVcsR0FBWCxXQUFXLENBQWE7SUFBRyxDQUFDO0lBRXhGLFdBQVcsQ0FBQyxhQUFxQztRQUMvQyxJQUFJLGFBQWEsQ0FBQyxXQUFXLENBQUMsV0FBVyxDQUFDLEVBQUU7WUFDMUMsT0FBTyxJQUFJLENBQUMsV0FBVztpQkFDcEIsY0FBYyxDQUFDLGFBQWEsQ0FBQyxXQUFXLENBQUMsV0FBVyxDQUFDLENBQUM7aUJBQ3RELFNBQVMsRUFBRTtpQkFDWCxJQUFJLENBQUMsQ0FBQyxRQUFRLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsV0FBVyxDQUFDLENBQUM7U0FDL0M7YUFBTTtZQUNMLE9BQU8sQ0FBQyxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsUUFBUSxFQUFFLENBQUM7U0FDekM7SUFDSCxDQUFDOzhHQVpVLG1CQUFtQjtrSEFBbkIsbUJBQW1COzsyRkFBbkIsbUJBQW1C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