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,35 +1,35 @@
|
|
|
1
|
-
p-progressSpinner .p-progress-spinner-circle {
|
|
2
|
-
animation: custom-progress-spinner 1.5s ease-in-out infinite, custom-progress-spinner-color 6s ease-in-out infinite !important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
@keyframes custom-progress-spinner-color {
|
|
6
|
-
100%,
|
|
7
|
-
0% {
|
|
8
|
-
stroke: var(--theme-primary);
|
|
9
|
-
}
|
|
10
|
-
40% {
|
|
11
|
-
stroke: var(--theme-primary);
|
|
12
|
-
}
|
|
13
|
-
66% {
|
|
14
|
-
stroke: var(--theme-primary);
|
|
15
|
-
}
|
|
16
|
-
80%,
|
|
17
|
-
90% {
|
|
18
|
-
stroke: var(--theme-primary);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@keyframes custom-progress-spinner {
|
|
23
|
-
0% {
|
|
24
|
-
stroke-dasharray: 1, 200;
|
|
25
|
-
stroke-dashoffset: 0;
|
|
26
|
-
}
|
|
27
|
-
50% {
|
|
28
|
-
stroke-dasharray: 89, 200;
|
|
29
|
-
stroke-dashoffset: -35px;
|
|
30
|
-
}
|
|
31
|
-
100% {
|
|
32
|
-
stroke-dasharray: 89, 200;
|
|
33
|
-
stroke-dashoffset: -124px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
p-progressSpinner .p-progress-spinner-circle {
|
|
2
|
+
animation: custom-progress-spinner 1.5s ease-in-out infinite, custom-progress-spinner-color 6s ease-in-out infinite !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@keyframes custom-progress-spinner-color {
|
|
6
|
+
100%,
|
|
7
|
+
0% {
|
|
8
|
+
stroke: var(--theme-primary);
|
|
9
|
+
}
|
|
10
|
+
40% {
|
|
11
|
+
stroke: var(--theme-primary);
|
|
12
|
+
}
|
|
13
|
+
66% {
|
|
14
|
+
stroke: var(--theme-primary);
|
|
15
|
+
}
|
|
16
|
+
80%,
|
|
17
|
+
90% {
|
|
18
|
+
stroke: var(--theme-primary);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@keyframes custom-progress-spinner {
|
|
23
|
+
0% {
|
|
24
|
+
stroke-dasharray: 1, 200;
|
|
25
|
+
stroke-dashoffset: 0;
|
|
26
|
+
}
|
|
27
|
+
50% {
|
|
28
|
+
stroke-dasharray: 89, 200;
|
|
29
|
+
stroke-dashoffset: -35px;
|
|
30
|
+
}
|
|
31
|
+
100% {
|
|
32
|
+
stroke-dasharray: 89, 200;
|
|
33
|
+
stroke-dashoffset: -124px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
@import './fonts';
|
|
2
|
-
@import './primeng-custom-theme';
|
|
3
|
-
@import './spinner';
|
|
4
|
-
@import './variables';
|
|
5
|
-
@import './mixins';
|
|
6
|
-
|
|
7
|
-
body {
|
|
8
|
-
margin: 0px;
|
|
9
|
-
height: 100vh;
|
|
10
|
-
background-color: var(--background);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
body,
|
|
14
|
-
body .p-component {
|
|
15
|
-
color: var(--font-color);
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
font-family: Poppins;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
i {
|
|
21
|
-
font-size: 13px;
|
|
22
|
-
color: var(--font-color);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@media screen and (max-width: 640px) {
|
|
26
|
-
body {
|
|
27
|
-
font-size: 13px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
i {
|
|
31
|
-
font-size: 15px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
a {
|
|
36
|
-
color: var(--theme-dark);
|
|
37
|
-
font-weight: 600;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
text-decoration: none;
|
|
40
|
-
|
|
41
|
-
&:hover,
|
|
42
|
-
&:visited {
|
|
43
|
-
color: var(--theme-dark);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.card {
|
|
48
|
-
background-color: #ffffff;
|
|
49
|
-
background: #ffffff 0% 0% no-repeat padding-box;
|
|
50
|
-
box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, 0.06);
|
|
51
|
-
border-radius: 24px;
|
|
52
|
-
padding: 15px 20px 15px 20px;
|
|
53
|
-
overflow: hidden;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
ul {
|
|
57
|
-
padding: 0;
|
|
58
|
-
margin: 0;
|
|
59
|
-
list-style: none;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
::-webkit-scrollbar {
|
|
63
|
-
width: 7px;
|
|
64
|
-
height: 7px;
|
|
65
|
-
border-radius: 7px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
::-webkit-scrollbar-track {
|
|
69
|
-
background: var(--gray-light);
|
|
70
|
-
border-radius: 7px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
::-webkit-scrollbar-thumb {
|
|
74
|
-
background: #aaaaaa6e;
|
|
75
|
-
border-radius: 5px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
::-webkit-scrollbar-thumb:hover {
|
|
79
|
-
background: #aaa;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.field {
|
|
83
|
-
margin-bottom: 0px !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.form-field {
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
justify-content: flex-end;
|
|
90
|
-
min-height: 85px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.field-centered {
|
|
94
|
-
justify-content: center;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.checkbox-centered {
|
|
98
|
-
padding-bottom: 17px !important;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.form-container {
|
|
102
|
-
color: var(--form-labels-color);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.dump-field {
|
|
106
|
-
@media (max-width: 992px) {
|
|
107
|
-
display: none;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
label {
|
|
112
|
-
font-weight: 500;
|
|
113
|
-
font-size: 1em;
|
|
114
|
-
color: var(--theme-dark);
|
|
115
|
-
}
|
|
1
|
+
@import './fonts';
|
|
2
|
+
@import './primeng-custom-theme';
|
|
3
|
+
@import './spinner';
|
|
4
|
+
@import './variables';
|
|
5
|
+
@import './mixins';
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
margin: 0px;
|
|
9
|
+
height: 100vh;
|
|
10
|
+
background-color: var(--background);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
body,
|
|
14
|
+
body .p-component {
|
|
15
|
+
color: var(--font-color);
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
font-family: Poppins;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
i {
|
|
21
|
+
font-size: 13px;
|
|
22
|
+
color: var(--font-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media screen and (max-width: 640px) {
|
|
26
|
+
body {
|
|
27
|
+
font-size: 13px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
i {
|
|
31
|
+
font-size: 15px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
a {
|
|
36
|
+
color: var(--theme-dark);
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
|
|
41
|
+
&:hover,
|
|
42
|
+
&:visited {
|
|
43
|
+
color: var(--theme-dark);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.card {
|
|
48
|
+
background-color: #ffffff;
|
|
49
|
+
background: #ffffff 0% 0% no-repeat padding-box;
|
|
50
|
+
box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, 0.06);
|
|
51
|
+
border-radius: 24px;
|
|
52
|
+
padding: 15px 20px 15px 20px;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
ul {
|
|
57
|
+
padding: 0;
|
|
58
|
+
margin: 0;
|
|
59
|
+
list-style: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
::-webkit-scrollbar {
|
|
63
|
+
width: 7px;
|
|
64
|
+
height: 7px;
|
|
65
|
+
border-radius: 7px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
::-webkit-scrollbar-track {
|
|
69
|
+
background: var(--gray-light);
|
|
70
|
+
border-radius: 7px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
::-webkit-scrollbar-thumb {
|
|
74
|
+
background: #aaaaaa6e;
|
|
75
|
+
border-radius: 5px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
::-webkit-scrollbar-thumb:hover {
|
|
79
|
+
background: #aaa;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.field {
|
|
83
|
+
margin-bottom: 0px !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.form-field {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
justify-content: flex-end;
|
|
90
|
+
min-height: 85px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.field-centered {
|
|
94
|
+
justify-content: center;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.checkbox-centered {
|
|
98
|
+
padding-bottom: 17px !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.form-container {
|
|
102
|
+
color: var(--form-labels-color);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.dump-field {
|
|
106
|
+
@media (max-width: 992px) {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
label {
|
|
112
|
+
font-weight: 500;
|
|
113
|
+
font-size: 1em;
|
|
114
|
+
color: var(--theme-dark);
|
|
115
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--theme-primary: #0046e8;
|
|
3
|
-
--theme-medium: #0041AC;
|
|
4
|
-
--theme-dark: #3a2b68;
|
|
5
|
-
--background: #f2f2f7;
|
|
6
|
-
--font-color: #151515;
|
|
7
|
-
--disabled-background: #bcbcbc;
|
|
8
|
-
--placeholder-color: #aaaaaa80;
|
|
9
|
-
--border-radius: 5px;
|
|
10
|
-
--theme-primary-transparent: rgba(1, 70, 108, 0.8);
|
|
11
|
-
--gray-lighter: #eff0f6;
|
|
12
|
-
--gray-light: #e5e5ea;
|
|
13
|
-
--gray-medium: #d9dbe9;
|
|
14
|
-
--gray-dark: #6e7f88;
|
|
15
|
-
--gray-darker: #6e7191;
|
|
16
|
-
--error-color: #fd6a6a;
|
|
17
|
-
--error-color-dark: #ff4136;
|
|
18
|
-
--error-color-transparent: #fd6a6a1a;
|
|
19
|
-
--success-color: #11b797;
|
|
20
|
-
--success-color-dark: #0e8a71;
|
|
21
|
-
--theme-light: #0145e8;
|
|
22
|
-
--warning-color: #e9c429;
|
|
23
|
-
--cancel-color: #ca024f;
|
|
24
|
-
--form-labels-color: #4e4b66;
|
|
25
|
-
--font-color-primary: #3a2b68;
|
|
26
|
-
--font-color-secondary: rgb(87, 87, 87);
|
|
27
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--theme-primary: #0046e8;
|
|
3
|
+
--theme-medium: #0041AC;
|
|
4
|
+
--theme-dark: #3a2b68;
|
|
5
|
+
--background: #f2f2f7;
|
|
6
|
+
--font-color: #151515;
|
|
7
|
+
--disabled-background: #bcbcbc;
|
|
8
|
+
--placeholder-color: #aaaaaa80;
|
|
9
|
+
--border-radius: 5px;
|
|
10
|
+
--theme-primary-transparent: rgba(1, 70, 108, 0.8);
|
|
11
|
+
--gray-lighter: #eff0f6;
|
|
12
|
+
--gray-light: #e5e5ea;
|
|
13
|
+
--gray-medium: #d9dbe9;
|
|
14
|
+
--gray-dark: #6e7f88;
|
|
15
|
+
--gray-darker: #6e7191;
|
|
16
|
+
--error-color: #fd6a6a;
|
|
17
|
+
--error-color-dark: #ff4136;
|
|
18
|
+
--error-color-transparent: #fd6a6a1a;
|
|
19
|
+
--success-color: #11b797;
|
|
20
|
+
--success-color-dark: #0e8a71;
|
|
21
|
+
--theme-light: #0145e8;
|
|
22
|
+
--warning-color: #e9c429;
|
|
23
|
+
--cancel-color: #ca024f;
|
|
24
|
+
--form-labels-color: #4e4b66;
|
|
25
|
+
--font-color-primary: #3a2b68;
|
|
26
|
+
--font-color-secondary: rgb(87, 87, 87);
|
|
27
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { Status } from '../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "primeng/tooltip";
|
|
6
|
+
export class BadgeComponent {
|
|
7
|
+
constructor() { }
|
|
8
|
+
ngOnInit() { }
|
|
9
|
+
getStatusColor() {
|
|
10
|
+
switch (this.type) {
|
|
11
|
+
case Status.PENDING:
|
|
12
|
+
return 'badge-warning';
|
|
13
|
+
case Status.APPROVED:
|
|
14
|
+
return 'badge-success';
|
|
15
|
+
case Status.REJECTED:
|
|
16
|
+
return 'badge-error';
|
|
17
|
+
case Status.INFO:
|
|
18
|
+
return 'badge-info';
|
|
19
|
+
}
|
|
20
|
+
return '';
|
|
21
|
+
}
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: BadgeComponent, selector: "vector-badge", inputs: { type: "type", label: "label", customColor: "customColor", customBackgroundColor: "customBackgroundColor", tooltip: "tooltip" }, ngImport: i0, template: "<div\n class=\"badge\"\n [class]=\"getStatusColor()\"\n [ngStyle]=\"{ 'background-color': customBackgroundColor, color: customColor }\"\n [pTooltip]=\"tooltip || ''\"\n tooltipPosition=\"top\"\n>\n {{ label }}\n</div>\n", styles: [".badge{padding:4px 12px;border-radius:8px;color:#fff}.badge-success{background-color:var(--success-color)}.badge-error{background-color:var(--error-color)}.badge-warning{background-color:var(--warning-color)}.badge-info{background-color:var(--theme-light)}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] }); }
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BadgeComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: 'vector-badge', template: "<div\n class=\"badge\"\n [class]=\"getStatusColor()\"\n [ngStyle]=\"{ 'background-color': customBackgroundColor, color: customColor }\"\n [pTooltip]=\"tooltip || ''\"\n tooltipPosition=\"top\"\n>\n {{ label }}\n</div>\n", styles: [".badge{padding:4px 12px;border-radius:8px;color:#fff}.badge-success{background-color:var(--success-color)}.badge-error{background-color:var(--error-color)}.badge-warning{background-color:var(--warning-color)}.badge-info{background-color:var(--theme-light)}\n"] }]
|
|
28
|
+
}], ctorParameters: function () { return []; }, propDecorators: { type: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], label: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], customColor: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], customBackgroundColor: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}], tooltip: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}] } });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXZlY3Rvci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9iYWRnZS9iYWRnZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdmVjdG9yLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2JhZGdlL2JhZGdlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxjQUFjLENBQUM7Ozs7QUFPdEMsTUFBTSxPQUFPLGNBQWM7SUFZekIsZ0JBQWUsQ0FBQztJQUVoQixRQUFRLEtBQVUsQ0FBQztJQUVaLGNBQWM7UUFDbkIsUUFBUSxJQUFJLENBQUMsSUFBSSxFQUFFO1lBQ2pCLEtBQUssTUFBTSxDQUFDLE9BQU87Z0JBQ2pCLE9BQU8sZUFBZSxDQUFDO1lBQ3pCLEtBQUssTUFBTSxDQUFDLFFBQVE7Z0JBQ2xCLE9BQU8sZUFBZSxDQUFDO1lBQ3pCLEtBQUssTUFBTSxDQUFDLFFBQVE7Z0JBQ2xCLE9BQU8sYUFBYSxDQUFDO1lBQ3ZCLEtBQUssTUFBTSxDQUFDLElBQ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ZXRTdGF0dXNDb2xvcigpIHtcbiAgICBzd2l0Y2ggKHRoaXMudHlwZSkge1xuICAgICAgY2FzZSBTdGF0dXMuUEVORElORzpcbiAgICAgICAgcmV0dXJuICdiYWRnZS13YXJuaW5nJztcbiAgICAgIGNhc2UgU3RhdHVzLkFQUFJPVkVEOlxuICAgICAgICByZXR1cm4gJ2JhZGdlLXN1Y2Nlc3MnO1xuICAgICAgY2FzZSBTdGF0dXMuUkVKRUNURUQ6XG4gICAgICAgIHJldHVybiAnYmFkZ2UtZXJyb3InO1xuICAgICAgY2FzZSBTdGF0dXMuSU5GTzpcbiAgICAgICAgcmV0dXJuICdiYWRnZS1pbmZvJztcbiAgICB9XG4gICAgcmV0dXJuICcnO1xuICB9XG59XG4iLCI8ZGl2XG4gIGNsYXNzPVwiYmFkZ2VcIlxuICBbY2xhc3NdPVwiZ2V0U3RhdHVzQ29sb3IoKVwiXG4gIFtuZ1N0eWxlXT1cInsgJ2JhY2tncm91bmQtY29sb3InOiBjdXN0b21CYWNrZ3JvdW5kQ29sb3IsIGNvbG9yOiBjdXN0b21Db2xvciB9XCJcbiAgW3BUb29sdGlwXT1cInRvb2x0aXAgfHwgJydcIlxuICB0b29sdGlwUG9zaXRpb249XCJ0b3BcIlxuPlxuICB7eyBsYWJlbCB9fVxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { TooltipModule } from 'primeng/tooltip';
|
|
3
|
+
import { SharedModule } from '../../shared/shared.module';
|
|
4
|
+
import { BadgeComponent } from './badge.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class BadgeModule {
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: BadgeModule, declarations: [BadgeComponent], imports: [SharedModule, TooltipModule], exports: [BadgeComponent] }); }
|
|
9
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BadgeModule, imports: [SharedModule, TooltipModule] }); }
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BadgeModule, decorators: [{
|
|
12
|
+
type: NgModule,
|
|
13
|
+
args: [{
|
|
14
|
+
declarations: [BadgeComponent],
|
|
15
|
+
imports: [SharedModule, TooltipModule],
|
|
16
|
+
exports: [BadgeComponent],
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkZ2UubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXZlY3Rvci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9iYWRnZS9iYWRnZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQzFELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7QUFPbkQsTUFBTSxPQUFPLFdBQVc7OEdBQVgsV0FBVzsrR0FBWCxXQUFXLGlCQUpQLGNBQWMsYUFDbkIsWUFBWSxFQUFFLGFBQWEsYUFDM0IsY0FBYzsrR0FFYixXQUFXLFlBSFosWUFBWSxFQUFFLGFBQWE7OzJGQUcxQixXQUFXO2tCQUx2QixRQUFRO21CQUFDO29CQUNSLFlBQVksRUFBRSxDQUFDLGNBQWMsQ0FBQztvQkFDOUIsT0FBTyxFQUFFLENBQUMsWUFBWSxFQUFFLGFBQWEsQ0FBQztvQkFDdEMsT0FBTyxFQUFFLENBQUMsY0FBYyxDQUFDO2lCQUMxQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBUb29sdGlwTW9kdWxlIH0gZnJvbSAncHJpbWVuZy90b29sdGlwJztcbmltcG9ydCB7IFNoYXJlZE1vZHVsZSB9IGZyb20gJy4uLy4uL3NoYXJlZC9zaGFyZWQubW9kdWxlJztcbmltcG9ydCB7IEJhZGdlQ29tcG9uZW50IH0gZnJvbSAnLi9iYWRnZS5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtCYWRnZUNvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtTaGFyZWRNb2R1bGUsIFRvb2x0aXBNb2R1bGVdLFxuICBleHBvcnRzOiBbQmFkZ2VDb21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBCYWRnZU1vZHVsZSB7fVxuIl19
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './badge.component';
|
|
2
|
-
export * from './badge.module';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './badge.component';
|
|
2
|
+
export * from './badge.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdmVjdG9yLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2JhZGdlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYmFkZ2UuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vYmFkZ2UubW9kdWxlJztcbiJdfQ==
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Component, Inject } from '@angular/core';
|
|
2
|
+
import { NavigationEnd } from '@angular/router';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/router";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
import * as i3 from "../../pipes/remove-last-child.pipe";
|
|
8
|
+
export class BreadcrumbComponent {
|
|
9
|
+
constructor(router, environment, menuOptions) {
|
|
10
|
+
this.router = router;
|
|
11
|
+
this.environment = environment;
|
|
12
|
+
this.menuOptions = menuOptions;
|
|
13
|
+
this.appName = this.environment.appName;
|
|
14
|
+
this.routeFragments = [];
|
|
15
|
+
this.subscription = new Subscription();
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this.subscription.add(this.router.events.subscribe((event) => {
|
|
19
|
+
if (event instanceof NavigationEnd) {
|
|
20
|
+
this.routeFragments = [];
|
|
21
|
+
let url = event.urlAfterRedirects.replace('/', '');
|
|
22
|
+
if (url.includes('?')) {
|
|
23
|
+
url = url.substring(0, url.indexOf('?'));
|
|
24
|
+
}
|
|
25
|
+
this.extractRouteFragmentsFromMenu(url, this.menuOptions);
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
ngOnDestroy() {
|
|
30
|
+
this.subscription.unsubscribe();
|
|
31
|
+
}
|
|
32
|
+
navigateToFragment(fragment) {
|
|
33
|
+
this.router.navigate([fragment.route], { queryParamsHandling: 'preserve' });
|
|
34
|
+
}
|
|
35
|
+
extractRouteFragmentsFromMenu(url, currentChildren) {
|
|
36
|
+
let foundItem = false;
|
|
37
|
+
for (let i = 0; i < currentChildren.length; i++) {
|
|
38
|
+
if (currentChildren[i].route) {
|
|
39
|
+
if (currentChildren[i].route &&
|
|
40
|
+
(currentChildren[i].route.startsWith(url) || url.startsWith(currentChildren[i].route || ''))) {
|
|
41
|
+
this.routeFragments = [currentChildren[i]];
|
|
42
|
+
foundItem = true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (currentChildren[i].children && this.extractRouteFragmentsFromMenu(url, currentChildren[i].children || [])) {
|
|
46
|
+
this.routeFragments = [currentChildren[i]].concat(this.routeFragments);
|
|
47
|
+
foundItem = true;
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return foundItem;
|
|
52
|
+
}
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: i1.Router }, { token: 'environment' }, { token: 'menuOptions' }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: BreadcrumbComponent, selector: "vector-breadcrumb", ngImport: i0, template: "<div class=\"breadcrumb-container\" *ngIf=\"routeFragments?.length\">\n <div class=\"route-path\">\n <span class=\"app-name\">{{ appName }}</span>\n <div *ngIf=\"routeFragments.length < 2\" class=\"chevron\"></div>\n <span\n class=\"route-fragment\"\n [ngClass]=\"{ clickable: fragment.route }\"\n *ngFor=\"let fragment of routeFragments | removeLastChild\"\n (click)=\"navigateToFragment(fragment)\"\n ><div class=\"chevron\"></div>\n {{ fragment.label }}</span\n >\n </div>\n <span class=\"last-route\">\n {{ routeFragments[routeFragments.length - 1].label }}\n </span>\n</div>\n", styles: [".breadcrumb-container{display:flex;flex-direction:column;margin-bottom:15px}.breadcrumb-container .route-path{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;color:var(--gray-dark)}.breadcrumb-container .app-name,.breadcrumb-container .last-route,.breadcrumb-container .route-path .route-fragment{font-weight:700;letter-spacing:.75px;display:flex;flex-direction:row;align-items:center;margin:2.5px}.breadcrumb-container .clickable{cursor:pointer}.breadcrumb-container .chevron{margin:0 5px;background-image:url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2212%22 height%3D%227.4%22 viewBox%3D%220 0 12 7.4%22%3E %3Cpath id%3D%22Caminho_1437%22 data-name%3D%22Caminho 1437%22 d%3D%22M1526.175%2C366.14l4.6%2C4.6%2C4.6-4.6%2C1.4%2C1.4-6%2C6-6-6Z%22 transform%3D%22translate(-1524.775 -366.14)%22 fill%3D%22%23333%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;background-position:center;transform:rotate(-90deg);width:20px;height:20px;filter:invert(53%) sepia(13%) saturate(450%) hue-rotate(156deg) brightness(89%) contrast(85%)}.breadcrumb-container .last-route{font-size:1.5em;color:var(--success-color)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3.RemoveLastChildPipe, name: "removeLastChild" }] }); }
|
|
55
|
+
}
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
57
|
+
type: Component,
|
|
58
|
+
args: [{ selector: 'vector-breadcrumb', template: "<div class=\"breadcrumb-container\" *ngIf=\"routeFragments?.length\">\n <div class=\"route-path\">\n <span class=\"app-name\">{{ appName }}</span>\n <div *ngIf=\"routeFragments.length < 2\" class=\"chevron\"></div>\n <span\n class=\"route-fragment\"\n [ngClass]=\"{ clickable: fragment.route }\"\n *ngFor=\"let fragment of routeFragments | removeLastChild\"\n (click)=\"navigateToFragment(fragment)\"\n ><div class=\"chevron\"></div>\n {{ fragment.label }}</span\n >\n </div>\n <span class=\"last-route\">\n {{ routeFragments[routeFragments.length - 1].label }}\n </span>\n</div>\n", styles: [".breadcrumb-container{display:flex;flex-direction:column;margin-bottom:15px}.breadcrumb-container .route-path{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;color:var(--gray-dark)}.breadcrumb-container .app-name,.breadcrumb-container .last-route,.breadcrumb-container .route-path .route-fragment{font-weight:700;letter-spacing:.75px;display:flex;flex-direction:row;align-items:center;margin:2.5px}.breadcrumb-container .clickable{cursor:pointer}.breadcrumb-container .chevron{margin:0 5px;background-image:url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2212%22 height%3D%227.4%22 viewBox%3D%220 0 12 7.4%22%3E %3Cpath id%3D%22Caminho_1437%22 data-name%3D%22Caminho 1437%22 d%3D%22M1526.175%2C366.14l4.6%2C4.6%2C4.6-4.6%2C1.4%2C1.4-6%2C6-6-6Z%22 transform%3D%22translate(-1524.775 -366.14)%22 fill%3D%22%23333%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;background-position:center;transform:rotate(-90deg);width:20px;height:20px;filter:invert(53%) sepia(13%) saturate(450%) hue-rotate(156deg) brightness(89%) contrast(85%)}.breadcrumb-container .last-route{font-size:1.5em;color:var(--success-color)}\n"] }]
|
|
59
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: undefined, decorators: [{
|
|
60
|
+
type: Inject,
|
|
61
|
+
args: ['environment']
|
|
62
|
+
}] }, { type: undefined, decorators: [{
|
|
63
|
+
type: Inject,
|
|
64
|
+
args: ['menuOptions']
|
|
65
|
+
}] }]; } });
|
|
66
|
+
//# sourceMappingURL=data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AgICAgW25nQ2xhc3NdPVwieyBjbGlja2FibGU6IGZyYWdtZW50LnJvdXRlIH1cIlxuICAgICAgKm5nRm9yPVwibGV0IGZyYWdtZW50IG9mIHJvdXRlRnJhZ21lbnRzIHwgcmVtb3ZlTGFzdENoaWxkXCJcbiAgICAgIChjbGljayk9XCJuYXZpZ2F0ZVRvRnJhZ21lbnQoZnJhZ21lbnQpXCJcbiAgICAgID48ZGl2IGNsYXNzPVwiY2hldnJvblwiPjwvZGl2PlxuICAgICAge3sgZnJhZ21lbnQubGFiZWwgfX08L3NwYW5cbiAgICA+XG4gIDwvZGl2PlxuICA8c3BhbiBjbGFzcz1cImxhc3Qtcm91dGVcIj5cbiAgICB7eyByb3V0ZUZyYWdtZW50c1tyb3V0ZUZyYWdtZW50cy5sZW5ndGggLSAxXS5sYWJlbCB9fVxuICA8L3NwYW4+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { SharedModule } from '../../shared/shared.module';
|
|
3
|
+
import { BreadcrumbComponent } from './breadcrumb.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class BreadcrumbModule {
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: BreadcrumbModule, declarations: [BreadcrumbComponent], imports: [SharedModule], exports: [BreadcrumbComponent] }); }
|
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BreadcrumbModule, imports: [SharedModule] }); }
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: BreadcrumbModule, decorators: [{
|
|
11
|
+
type: NgModule,
|
|
12
|
+
args: [{
|
|
13
|
+
declarations: [BreadcrumbComponent],
|
|
14
|
+
exports: [BreadcrumbComponent],
|
|
15
|
+
imports: [SharedModule],
|
|
16
|
+
}]
|
|
17
|
+
}] });
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdmVjdG9yLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDMUQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7O0FBTzdELE1BQU0sT0FBTyxnQkFBZ0I7OEdBQWhCLGdCQUFnQjsrR0FBaEIsZ0JBQWdCLGlCQUpaLG1CQUFtQixhQUV4QixZQUFZLGFBRFosbUJBQW1COytHQUdsQixnQkFBZ0IsWUFGakIsWUFBWTs7MkZBRVgsZ0JBQWdCO2tCQUw1QixRQUFRO21CQUFDO29CQUNSLFlBQVksRUFBRSxDQUFDLG1CQUFtQixDQUFDO29CQUNuQyxPQUFPLEVBQUUsQ0FBQyxtQkFBbUIsQ0FBQztvQkFDOUIsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO2lCQUN4QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBTaGFyZWRNb2R1bGUgfSBmcm9tICcuLi8uLi9zaGFyZWQvc2hhcmVkLm1vZHVsZSc7XG5pbXBvcnQgeyBCcmVhZGNydW1iQ29tcG9uZW50IH0gZnJvbSAnLi9icmVhZGNydW1iLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0JyZWFkY3J1bWJDb21wb25lbnRdLFxuICBleHBvcnRzOiBbQnJlYWRjcnVtYkNvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtTaGFyZWRNb2R1bGVdLFxufSlcbmV4cG9ydCBjbGFzcyBCcmVhZGNydW1iTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './breadcrumb.component';
|
|
2
|
-
export * from './breadcrumb.module';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './breadcrumb.component';
|
|
2
|
+
export * from './breadcrumb.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdmVjdG9yLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2JyZWFkY3J1bWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9icmVhZGNydW1iLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2JyZWFkY3J1bWIubW9kdWxlJztcbiJdfQ==
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { CrudMode } from '../../models/crud-mode.enum';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/router";
|
|
7
|
+
export class CrudBaseComponent {
|
|
8
|
+
constructor(activatedRoute) {
|
|
9
|
+
this.activatedRoute = activatedRoute;
|
|
10
|
+
this.crudMode = CrudMode.NEW;
|
|
11
|
+
this.isReadonly = false;
|
|
12
|
+
this.form = new UntypedFormGroup({});
|
|
13
|
+
this.subscription = new Subscription();
|
|
14
|
+
this.crudMode = this.getCrudModeByRoute(this.activatedRoute.snapshot.url[0].path);
|
|
15
|
+
this.isReadonly = this.crudMode === CrudMode.VIEW;
|
|
16
|
+
}
|
|
17
|
+
ngOnDestroy() {
|
|
18
|
+
this.subscription.unsubscribe();
|
|
19
|
+
}
|
|
20
|
+
isInsertion() {
|
|
21
|
+
return this.crudMode === CrudMode.NEW;
|
|
22
|
+
}
|
|
23
|
+
isEdition() {
|
|
24
|
+
return this.crudMode === CrudMode.EDIT;
|
|
25
|
+
}
|
|
26
|
+
getCrudModeByRoute(route) {
|
|
27
|
+
switch (route) {
|
|
28
|
+
case 'new':
|
|
29
|
+
return CrudMode.NEW;
|
|
30
|
+
case 'edit':
|
|
31
|
+
return CrudMode.EDIT;
|
|
32
|
+
case 'view':
|
|
33
|
+
return CrudMode.VIEW;
|
|
34
|
+
default:
|
|
35
|
+
return CrudMode.NEW;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: CrudBaseComponent, deps: [{ token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: CrudBaseComponent, selector: "ng-component", ngImport: i0, template: '', isInline: true }); }
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: CrudBaseComponent, decorators: [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{
|
|
44
|
+
template: '',
|
|
45
|
+
}]
|
|
46
|
+
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }]; } });
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3J1ZC1iYXNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC12ZWN0b3ItY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvY3J1ZC1iYXNlL2NydWQtYmFzZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUNyRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVsRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3BDLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQzs7O0FBS3ZELE1BQU0sT0FBTyxpQkFBaUI7SUFNNUIsWUFBc0IsY0FBOEI7UUFBOUIsbUJBQWMsR0FBZCxjQUFjLENBQWdCO1FBTDdDLGFBQVEsR0FBRyxRQUFRLENBQUMsR0FBRyxDQUFDO1FBQ3hCLGVBQVUsR0FBRyxLQUFLLENBQUM7UUFDbkIsU0FBSSxHQUFHLElBQUksZ0JBQWdCLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDN0IsaUJBQVksR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO1FBRzFDLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDLGtCQUFrQixDQUFDLElBQUksQ0F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cm4gdGhpcy5jcnVkTW9kZSA9PT0gQ3J1ZE1vZGUuRURJVDtcbiAgfVxuXG4gIHByaXZhdGUgZ2V0Q3J1ZE1vZGVCeVJvdXRlKHJvdXRlOiBzdHJpbmcpIHtcbiAgICBzd2l0Y2ggKHJvdXRlKSB7XG4gICAgICBjYXNlICduZXcnOlxuICAgICAgICByZXR1cm4gQ3J1ZE1vZGUuTkVXO1xuICAgICAgY2FzZSAnZWRpdCc6XG4gICAgICAgIHJldHVybiBDcnVkTW9kZS5FRElUO1xuICAgICAgY2FzZSAndmlldyc6XG4gICAgICAgIHJldHVybiBDcnVkTW9kZS5WSUVXO1xuICAgICAgZGVmYXVsdDpcbiAgICAgICAgcmV0dXJuIENydWRNb2RlLk5FVztcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './crud-base.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './crud-base.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdmVjdG9yLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NydWQtYmFzZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jcnVkLWJhc2UuY29tcG9uZW50JztcbiJdfQ==
|