ngx-vector-components 4.134.0 → 4.136.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 +1505 -1491
- 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 +1105 -1105
- package/assets/styles/_spinner.scss +35 -35
- package/assets/styles/_styles.scss +115 -115
- package/assets/styles/_variables.scss +27 -27
- package/esm2020/lib/components/badge/badge.component.mjs +39 -39
- package/esm2020/lib/components/badge/badge.module.mjs +19 -19
- package/esm2020/lib/components/badge/index.mjs +3 -3
- package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +66 -66
- package/esm2020/lib/components/breadcrumb/breadcrumb.module.mjs +18 -18
- package/esm2020/lib/components/breadcrumb/index.mjs +3 -3
- package/esm2020/lib/components/crud-base/crud-base.component.mjs +47 -47
- package/esm2020/lib/components/crud-base/index.mjs +2 -2
- package/esm2020/lib/components/crud-footer/crud-footer.component.mjs +40 -40
- package/esm2020/lib/components/crud-footer/crud-footer.module.mjs +20 -20
- package/esm2020/lib/components/crud-footer/index.mjs +3 -3
- package/esm2020/lib/components/crud-header/crud-header.component.mjs +30 -30
- package/esm2020/lib/components/crud-header/crud-header.module.mjs +19 -19
- package/esm2020/lib/components/crud-header/index.mjs +3 -3
- package/esm2020/lib/components/crud-history/crud-history.component.mjs +82 -82
- package/esm2020/lib/components/crud-history/crud-history.module.mjs +20 -20
- package/esm2020/lib/components/crud-history/index.mjs +3 -3
- package/esm2020/lib/components/fields/button/button.component.mjs +41 -41
- package/esm2020/lib/components/fields/button/index.mjs +2 -2
- package/esm2020/lib/components/fields/calendar-field/calendar-field.component.mjs +74 -74
- package/esm2020/lib/components/fields/calendar-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/checkbox-field/checkbox-field.component.mjs +46 -46
- package/esm2020/lib/components/fields/checkbox-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/currency-field/currency-field.component.mjs +98 -98
- package/esm2020/lib/components/fields/currency-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/data-table/data-table.component.mjs +391 -388
- package/esm2020/lib/components/fields/data-table/index.mjs +2 -2
- package/esm2020/lib/components/fields/dropdown-field/dropdown-field.component.mjs +204 -204
- package/esm2020/lib/components/fields/dropdown-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/field-error-message/field-error-message.component.mjs +30 -30
- package/esm2020/lib/components/fields/field-error-message/index.mjs +2 -2
- package/esm2020/lib/components/fields/fields.module.mjs +222 -222
- package/esm2020/lib/components/fields/filters/filters.component.mjs +209 -209
- package/esm2020/lib/components/fields/filters/index.mjs +2 -2
- package/esm2020/lib/components/fields/index.mjs +20 -20
- package/esm2020/lib/components/fields/input-number-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/input-number-field/input-number-field.component.mjs +86 -86
- package/esm2020/lib/components/fields/input-switch-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/input-switch-field/input-switch-field.component.mjs +21 -16
- package/esm2020/lib/components/fields/multiselect-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/multiselect-field/multiselect-field.component.mjs +154 -154
- package/esm2020/lib/components/fields/percentage-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/percentage-field/percentage-field.component.mjs +54 -54
- package/esm2020/lib/components/fields/radio-button-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/radio-button-field/radio-button-field.component.mjs +48 -48
- package/esm2020/lib/components/fields/range-value/index.mjs +2 -2
- package/esm2020/lib/components/fields/range-value/range-value.component.mjs +72 -72
- package/esm2020/lib/components/fields/search-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/search-field/search-field.component.mjs +33 -33
- package/esm2020/lib/components/fields/select-button-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/select-button-field/select-button-field.component.mjs +20 -20
- package/esm2020/lib/components/fields/text-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/text-field/text-field.component.mjs +238 -238
- package/esm2020/lib/components/fields/textarea-field/index.mjs +2 -2
- package/esm2020/lib/components/fields/textarea-field/textarea-field.component.mjs +81 -81
- package/esm2020/lib/components/generic-error-modal/generic-error-modal.component.mjs +36 -36
- package/esm2020/lib/components/generic-error-modal/generic-error-modal.module.mjs +20 -20
- package/esm2020/lib/components/generic-error-modal/index.mjs +3 -3
- package/esm2020/lib/components/generic-modal/generic-modal.component.mjs +66 -66
- package/esm2020/lib/components/generic-modal/generic-modal.module.mjs +20 -20
- package/esm2020/lib/components/generic-modal/index.mjs +3 -3
- package/esm2020/lib/components/index.mjs +15 -15
- package/esm2020/lib/components/menu/index.mjs +4 -4
- package/esm2020/lib/components/menu/menu.component.mjs +305 -305
- package/esm2020/lib/components/menu/menu.module.mjs +20 -20
- package/esm2020/lib/components/menu/sub-menus-list/sub-menus-list.component.mjs +42 -42
- package/esm2020/lib/components/panel/index.mjs +3 -3
- package/esm2020/lib/components/panel/panel.component.mjs +15 -15
- package/esm2020/lib/components/panel/panel.module.mjs +19 -19
- package/esm2020/lib/components/score/index.mjs +3 -3
- package/esm2020/lib/components/score/score.component.mjs +17 -17
- package/esm2020/lib/components/score/score.module.mjs +16 -16
- package/esm2020/lib/components/stepper/index.mjs +3 -3
- package/esm2020/lib/components/stepper/stepper.component.mjs +47 -47
- package/esm2020/lib/components/stepper/stepper.module.mjs +19 -19
- package/esm2020/lib/components/top-bar/index.mjs +3 -3
- package/esm2020/lib/components/top-bar/top-bar.component.mjs +147 -147
- package/esm2020/lib/components/top-bar/top-bar.module.mjs +20 -20
- package/esm2020/lib/guards/crud-list-has-items.guard.mjs +22 -22
- package/esm2020/lib/guards/get-token-by-guid.guard.mjs +54 -54
- package/esm2020/lib/guards/has-permission.guard.mjs +27 -27
- package/esm2020/lib/guards/index.mjs +6 -6
- package/esm2020/lib/guards/role.guard.mjs +24 -24
- package/esm2020/lib/guards/token-is-present.guard.mjs +26 -26
- package/esm2020/lib/interceptors/http-interceptor.mjs +185 -185
- package/esm2020/lib/interceptors/index.mjs +2 -2
- package/esm2020/lib/models/app-name.enum.mjs +10 -10
- package/esm2020/lib/models/boolean-type.enum.mjs +6 -6
- package/esm2020/lib/models/crud-history.model.mjs +3 -3
- package/esm2020/lib/models/crud-mode.enum.mjs +7 -7
- package/esm2020/lib/models/currency.enum.mjs +7 -7
- package/esm2020/lib/models/data-table.model.mjs +23 -23
- package/esm2020/lib/models/document-type.enum.mjs +6 -6
- package/esm2020/lib/models/filters.model.mjs +2 -2
- package/esm2020/lib/models/generic-modal.model.mjs +2 -2
- package/esm2020/lib/models/http-response.model.mjs +2 -2
- package/esm2020/lib/models/index.mjs +18 -18
- package/esm2020/lib/models/ip-info.enum.mjs +2 -2
- package/esm2020/lib/models/list-item.model.mjs +2 -2
- package/esm2020/lib/models/locale.enum.mjs +7 -7
- package/esm2020/lib/models/menu-item.model.mjs +2 -2
- package/esm2020/lib/models/message-status.enum.mjs +8 -8
- package/esm2020/lib/models/profile.model.mjs +366 -359
- package/esm2020/lib/models/role.enum.mjs +5 -5
- package/esm2020/lib/models/status.enum.mjs +8 -8
- package/esm2020/lib/models/topbar.model.mjs +2 -2
- package/esm2020/lib/models/vector-app.model.mjs +2 -2
- package/esm2020/lib/models/vector-notification.model.mjs +2 -2
- package/esm2020/lib/models/view.enum.mjs +8 -8
- package/esm2020/lib/pipes/currency-brl.pipe.mjs +18 -18
- package/esm2020/lib/pipes/format-document.pipe.mjs +17 -17
- package/esm2020/lib/pipes/index.mjs +9 -9
- package/esm2020/lib/pipes/mask.pipe.mjs +21 -21
- package/esm2020/lib/pipes/not-hidden.pipe.mjs +16 -16
- package/esm2020/lib/pipes/only-active.pipe.mjs +16 -16
- package/esm2020/lib/pipes/pipes.module.mjs +50 -50
- package/esm2020/lib/pipes/remove-last-child.pipe.mjs +18 -18
- package/esm2020/lib/pipes/unread-notifications.pipe.mjs +15 -15
- package/esm2020/lib/resolvers/get-selected-crud-item.resolver.mjs +28 -28
- package/esm2020/lib/resolvers/index.mjs +2 -2
- package/esm2020/lib/services/auth.service.mjs +77 -77
- package/esm2020/lib/services/base-dropdown.mjs +2 -2
- package/esm2020/lib/services/crud-base.service.mjs +14 -14
- package/esm2020/lib/services/enum.service.mjs +43 -43
- package/esm2020/lib/services/error-message.service.mjs +16 -16
- package/esm2020/lib/services/geolocation.service.mjs +23 -23
- package/esm2020/lib/services/index.mjs +13 -13
- package/esm2020/lib/services/loading.service.mjs +15 -15
- package/esm2020/lib/services/menu.service.mjs +152 -152
- package/esm2020/lib/services/modal.service.mjs +15 -15
- package/esm2020/lib/services/notifications.service.mjs +64 -64
- package/esm2020/lib/services/profile.service.mjs +112 -112
- package/esm2020/lib/services/storage.service.mjs +108 -108
- package/esm2020/lib/shared/shared.module.mjs +19 -19
- package/esm2020/lib/utils/cpf-cnpj-validator.util.mjs +116 -116
- package/esm2020/lib/utils/file.util.mjs +15 -15
- package/esm2020/lib/utils/index.mjs +8 -8
- package/esm2020/lib/utils/mask.util.mjs +76 -76
- package/esm2020/lib/utils/object.util.mjs +27 -27
- package/esm2020/lib/utils/string.util.mjs +30 -30
- package/esm2020/lib/utils/validation.util.mjs +234 -234
- package/esm2020/lib/utils/window.util.mjs +9 -9
- package/esm2020/ngx-vector-components.mjs +4 -4
- package/esm2020/public-api.mjs +9 -9
- package/fesm2015/ngx-vector-components.mjs +4902 -4887
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +4878 -4863
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- 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 +19 -19
- 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 +88 -87
- 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 +50 -50
- package/lib/components/fields/filters/filters.component.d.ts +65 -65
- package/lib/components/fields/filters/index.d.ts +1 -1
- package/lib/components/fields/index.d.ts +19 -19
- 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/input-switch-field/index.d.ts +1 -1
- package/lib/components/fields/input-switch-field/input-switch-field.component.d.ts +9 -8
- package/lib/components/fields/multiselect-field/index.d.ts +1 -1
- package/lib/components/fields/multiselect-field/multiselect-field.component.d.ts +40 -40
- package/lib/components/fields/percentage-field/index.d.ts +1 -1
- package/lib/components/fields/percentage-field/percentage-field.component.d.ts +20 -20
- 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 +56 -56
- 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 +15 -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 +14 -14
- 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/stepper/index.d.ts +2 -2
- package/lib/components/stepper/stepper.component.d.ts +15 -15
- package/lib/components/stepper/stepper.module.d.ts +9 -9
- package/lib/components/top-bar/index.d.ts +2 -2
- package/lib/components/top-bar/top-bar.component.d.ts +49 -49
- 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 +12 -12
- package/lib/models/http-response.model.d.ts +57 -57
- 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 +386 -379
- 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 +6 -6
- 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 +27 -27
- 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 +6 -6
- package/lib/utils/validation.util.d.ts +17 -17
- package/lib/utils/window.util.d.ts +4 -4
- package/ngx-vector-components.d.ts +5 -5
- package/package.json +1 -1
- package/public-api.d.ts +8 -8
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
-
import { ProfileModule, ProfileModuleActionType, ProfileModuleType } from '../models/profile.model';
|
|
4
|
-
import { StorageService } from './storage.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ProfileService {
|
|
7
|
-
private http;
|
|
8
|
-
private storageService;
|
|
9
|
-
readonly moduleProfile$: BehaviorSubject<ProfileModule[] | undefined>;
|
|
10
|
-
readonly profileFirstName$: BehaviorSubject<string | undefined>;
|
|
11
|
-
readonly profileTypeItens$: BehaviorSubject<{
|
|
12
|
-
shipper: number;
|
|
13
|
-
carrierId: number;
|
|
14
|
-
profileTypeId: number;
|
|
15
|
-
} | undefined>;
|
|
16
|
-
hasFintechAdminPermission: boolean;
|
|
17
|
-
hasMarketplaceAdminPermission: boolean;
|
|
18
|
-
hasAnyFintechPermission: boolean;
|
|
19
|
-
hasAnyMarketplacePermission: boolean;
|
|
20
|
-
constructor(http: HttpClient, storageService: StorageService);
|
|
21
|
-
private getProfileTypeEnum;
|
|
22
|
-
getUserProfile(): Observable<any>;
|
|
23
|
-
userHasPermission(action: ProfileModuleActionType | ProfileModuleType | ProfileModuleActionType[] | ProfileModuleType[] | undefined): boolean;
|
|
24
|
-
getUserInfo(): Observable<any>;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
27
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { ProfileModule, ProfileModuleActionType, ProfileModuleType } from '../models/profile.model';
|
|
4
|
+
import { StorageService } from './storage.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ProfileService {
|
|
7
|
+
private http;
|
|
8
|
+
private storageService;
|
|
9
|
+
readonly moduleProfile$: BehaviorSubject<ProfileModule[] | undefined>;
|
|
10
|
+
readonly profileFirstName$: BehaviorSubject<string | undefined>;
|
|
11
|
+
readonly profileTypeItens$: BehaviorSubject<{
|
|
12
|
+
shipper: number;
|
|
13
|
+
carrierId: number;
|
|
14
|
+
profileTypeId: number;
|
|
15
|
+
} | undefined>;
|
|
16
|
+
hasFintechAdminPermission: boolean;
|
|
17
|
+
hasMarketplaceAdminPermission: boolean;
|
|
18
|
+
hasAnyFintechPermission: boolean;
|
|
19
|
+
hasAnyMarketplacePermission: boolean;
|
|
20
|
+
constructor(http: HttpClient, storageService: StorageService);
|
|
21
|
+
private getProfileTypeEnum;
|
|
22
|
+
getUserProfile(): Observable<any>;
|
|
23
|
+
userHasPermission(action: ProfileModuleActionType | ProfileModuleType | ProfileModuleActionType[] | ProfileModuleType[] | undefined): boolean;
|
|
24
|
+
getUserInfo(): Observable<any>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
27
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { ProfileModule, Role } from '../models';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class StorageService {
|
|
5
|
-
private http;
|
|
6
|
-
constructor(http: HttpClient);
|
|
7
|
-
clear(): void;
|
|
8
|
-
clearSession(): void;
|
|
9
|
-
get(key: string): any;
|
|
10
|
-
set(key: string, value: any): void;
|
|
11
|
-
remove(key: string): void;
|
|
12
|
-
getSession(key: string): any;
|
|
13
|
-
setSession(key: string, value: any): void;
|
|
14
|
-
removeSession(key: string): void;
|
|
15
|
-
getToken(): string;
|
|
16
|
-
setToken(token: string): void;
|
|
17
|
-
removeToken(): void;
|
|
18
|
-
getRefreshToken(): string;
|
|
19
|
-
setRefreshToken(refreshToken: string): void;
|
|
20
|
-
removeRefreshToken(): void;
|
|
21
|
-
getUsername(): string;
|
|
22
|
-
setUsername(username: string): void;
|
|
23
|
-
removeUsername(): void;
|
|
24
|
-
getUserId(): number;
|
|
25
|
-
setUserId(userId: number): void;
|
|
26
|
-
clearUserId(): void;
|
|
27
|
-
getRole(): Role;
|
|
28
|
-
setRole(role?: string): void;
|
|
29
|
-
clearRole(): void;
|
|
30
|
-
getProfile(): {
|
|
31
|
-
marketplace: ProfileModule | undefined;
|
|
32
|
-
fintech: ProfileModule | undefined;
|
|
33
|
-
allModules: ProfileModule[] | undefined;
|
|
34
|
-
};
|
|
35
|
-
setProfile(profiles: {
|
|
36
|
-
marketplace: ProfileModule | undefined;
|
|
37
|
-
fintech: ProfileModule | undefined;
|
|
38
|
-
allModules: ProfileModule[] | undefined;
|
|
39
|
-
}): void;
|
|
40
|
-
removeProfile(): void;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
42
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
43
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ProfileModule, Role } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StorageService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
clear(): void;
|
|
8
|
+
clearSession(): void;
|
|
9
|
+
get(key: string): any;
|
|
10
|
+
set(key: string, value: any): void;
|
|
11
|
+
remove(key: string): void;
|
|
12
|
+
getSession(key: string): any;
|
|
13
|
+
setSession(key: string, value: any): void;
|
|
14
|
+
removeSession(key: string): void;
|
|
15
|
+
getToken(): string;
|
|
16
|
+
setToken(token: string): void;
|
|
17
|
+
removeToken(): void;
|
|
18
|
+
getRefreshToken(): string;
|
|
19
|
+
setRefreshToken(refreshToken: string): void;
|
|
20
|
+
removeRefreshToken(): void;
|
|
21
|
+
getUsername(): string;
|
|
22
|
+
setUsername(username: string): void;
|
|
23
|
+
removeUsername(): void;
|
|
24
|
+
getUserId(): number;
|
|
25
|
+
setUserId(userId: number): void;
|
|
26
|
+
clearUserId(): void;
|
|
27
|
+
getRole(): Role;
|
|
28
|
+
setRole(role?: string): void;
|
|
29
|
+
clearRole(): void;
|
|
30
|
+
getProfile(): {
|
|
31
|
+
marketplace: ProfileModule | undefined;
|
|
32
|
+
fintech: ProfileModule | undefined;
|
|
33
|
+
allModules: ProfileModule[] | undefined;
|
|
34
|
+
};
|
|
35
|
+
setProfile(profiles: {
|
|
36
|
+
marketplace: ProfileModule | undefined;
|
|
37
|
+
fintech: ProfileModule | undefined;
|
|
38
|
+
allModules: ProfileModule[] | undefined;
|
|
39
|
+
}): void;
|
|
40
|
+
removeProfile(): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
42
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
43
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@ngx-translate/core";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "primeng/tooltip";
|
|
5
|
-
import * as i4 from "../pipes/pipes.module";
|
|
6
|
-
export declare class SharedModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.TranslateModule], [typeof i2.CommonModule, typeof i3.TooltipModule, typeof i4.PipesModule]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
10
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@ngx-translate/core";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "primeng/tooltip";
|
|
5
|
+
import * as i4 from "../pipes/pipes.module";
|
|
6
|
+
export declare class SharedModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.TranslateModule], [typeof i2.CommonModule, typeof i3.TooltipModule, typeof i4.PipesModule]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class CpfCnpjValidator {
|
|
2
|
-
static validateCpfOrCnpj(taxId: string): boolean;
|
|
3
|
-
static validateCpf(cpf: string): boolean;
|
|
4
|
-
static validateCnpj(cnpj: string): boolean;
|
|
5
|
-
}
|
|
1
|
+
export declare class CpfCnpjValidator {
|
|
2
|
+
static validateCpfOrCnpj(taxId: string): boolean;
|
|
3
|
+
static validateCpf(cpf: string): boolean;
|
|
4
|
+
static validateCnpj(cnpj: string): boolean;
|
|
5
|
+
}
|
package/lib/utils/file.util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class FileUtil {
|
|
2
|
-
static getBlob(base64StringData: string, mimeType: string): Blob;
|
|
3
|
-
static downloadFile(mimeType: string, base64StringData: string, fileName: string): void;
|
|
4
|
-
}
|
|
1
|
+
export declare class FileUtil {
|
|
2
|
+
static getBlob(base64StringData: string, mimeType: string): Blob;
|
|
3
|
+
static downloadFile(mimeType: string, base64StringData: string, fileName: string): void;
|
|
4
|
+
}
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './cpf-cnpj-validator.util';
|
|
2
|
-
export * from './file.util';
|
|
3
|
-
export * from './mask.util';
|
|
4
|
-
export * from './object.util';
|
|
5
|
-
export * from './string.util';
|
|
6
|
-
export * from './validation.util';
|
|
7
|
-
export * from './window.util';
|
|
1
|
+
export * from './cpf-cnpj-validator.util';
|
|
2
|
+
export * from './file.util';
|
|
3
|
+
export * from './mask.util';
|
|
4
|
+
export * from './object.util';
|
|
5
|
+
export * from './string.util';
|
|
6
|
+
export * from './validation.util';
|
|
7
|
+
export * from './window.util';
|
package/lib/utils/mask.util.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export declare class MaskUtil {
|
|
2
|
-
static CPF_TEXT_FIELD_PATTERN: string;
|
|
3
|
-
static CNPJ_TEXT_FIELD_PATTERN: string;
|
|
4
|
-
static BOLETO_TEXT_FIELD_PATTERN: string;
|
|
5
|
-
static CELLPHONE_TEXT_FIELD_PATTERN: string;
|
|
6
|
-
static PHONE_TEXT_FIELD_PATTERN: string;
|
|
7
|
-
static POSTALCODE_TEXT_FIELD_PATTERN: string;
|
|
8
|
-
static PLATE_FIELD_PATTERN: string;
|
|
9
|
-
static HOURS_MINUTES_FIELD_PATTERN: string;
|
|
10
|
-
static DNI_FIELD_PATTERN: string;
|
|
11
|
-
static CUIT_FIELD_PATTERN: string;
|
|
12
|
-
static formatDocument(stringValue: string): string;
|
|
13
|
-
static formatPostalCode(stringValue: string): string;
|
|
14
|
-
static formatBoleto(stringValue: string): string;
|
|
15
|
-
static formatPhone(stringValue: string): string;
|
|
16
|
-
static formatHoursMinutes(stringValue: string): string;
|
|
17
|
-
static formatPlate(stringValue: string): string;
|
|
18
|
-
static formatDni(stringValue: string): string;
|
|
19
|
-
static formatCuit(stringValue: string): string;
|
|
20
|
-
static doMaskString(str: string, pattern?: string): string;
|
|
21
|
-
}
|
|
1
|
+
export declare class MaskUtil {
|
|
2
|
+
static CPF_TEXT_FIELD_PATTERN: string;
|
|
3
|
+
static CNPJ_TEXT_FIELD_PATTERN: string;
|
|
4
|
+
static BOLETO_TEXT_FIELD_PATTERN: string;
|
|
5
|
+
static CELLPHONE_TEXT_FIELD_PATTERN: string;
|
|
6
|
+
static PHONE_TEXT_FIELD_PATTERN: string;
|
|
7
|
+
static POSTALCODE_TEXT_FIELD_PATTERN: string;
|
|
8
|
+
static PLATE_FIELD_PATTERN: string;
|
|
9
|
+
static HOURS_MINUTES_FIELD_PATTERN: string;
|
|
10
|
+
static DNI_FIELD_PATTERN: string;
|
|
11
|
+
static CUIT_FIELD_PATTERN: string;
|
|
12
|
+
static formatDocument(stringValue: string): string;
|
|
13
|
+
static formatPostalCode(stringValue: string): string;
|
|
14
|
+
static formatBoleto(stringValue: string): string;
|
|
15
|
+
static formatPhone(stringValue: string): string;
|
|
16
|
+
static formatHoursMinutes(stringValue: string): string;
|
|
17
|
+
static formatPlate(stringValue: string): string;
|
|
18
|
+
static formatDni(stringValue: string): string;
|
|
19
|
+
static formatCuit(stringValue: string): string;
|
|
20
|
+
static doMaskString(str: string, pattern?: string): string;
|
|
21
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class ObjectUtil {
|
|
2
|
-
static getObjectKeys<T>(obj: Object): Array<keyof T>;
|
|
3
|
-
static isValid(obj: any): boolean;
|
|
4
|
-
static getCodes(obj: any): any;
|
|
5
|
-
}
|
|
1
|
+
export declare class ObjectUtil {
|
|
2
|
+
static getObjectKeys<T>(obj: Object): Array<keyof T>;
|
|
3
|
+
static isValid(obj: any): boolean;
|
|
4
|
+
static getCodes(obj: any): any;
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class StringUtil {
|
|
2
|
-
static getInitials(nameString?: string): string;
|
|
3
|
-
static revertString(str: string): string;
|
|
4
|
-
static convertTimeToMinutes(timeText: string): number;
|
|
5
|
-
static convertMinutesToTime(minutesTotal: number): string;
|
|
6
|
-
}
|
|
1
|
+
export declare class StringUtil {
|
|
2
|
+
static getInitials(nameString?: string): string;
|
|
3
|
+
static revertString(str: string): string;
|
|
4
|
+
static convertTimeToMinutes(timeText: string): number;
|
|
5
|
+
static convertMinutesToTime(minutesTotal: number): string;
|
|
6
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
2
|
-
export declare class ValidationUtil {
|
|
3
|
-
static email(control: AbstractControl): ValidationErrors | null;
|
|
4
|
-
static fullName(control: AbstractControl): ValidationErrors | null;
|
|
5
|
-
static noMultipleWhitespace(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static isValidTaxId(control: AbstractControl): ValidationErrors | null;
|
|
7
|
-
static isValidCpf(control: AbstractControl): ValidationErrors | null;
|
|
8
|
-
static isValidCnpj(control: AbstractControl): ValidationErrors | null;
|
|
9
|
-
static majorAge(control: AbstractControl): ValidationErrors | null;
|
|
10
|
-
static matchField(anotherField: AbstractControl | null): ValidatorFn;
|
|
11
|
-
static cellphone(control: AbstractControl): ValidationErrors | null;
|
|
12
|
-
static lowerThanOrEqualTo(greaterControlName: string): ValidatorFn;
|
|
13
|
-
static greaterThanOrEqualTo(lowerControlName: string): ValidatorFn;
|
|
14
|
-
static notSequentialNumbers(length: number): ValidatorFn;
|
|
15
|
-
static firstLetterIsUppercase(control: AbstractControl): ValidationErrors | null;
|
|
16
|
-
static containsLettersAndNumbers(control: AbstractControl): ValidationErrors | null;
|
|
17
|
-
}
|
|
1
|
+
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
2
|
+
export declare class ValidationUtil {
|
|
3
|
+
static email(control: AbstractControl): ValidationErrors | null;
|
|
4
|
+
static fullName(control: AbstractControl): ValidationErrors | null;
|
|
5
|
+
static noMultipleWhitespace(control: AbstractControl): ValidationErrors | null;
|
|
6
|
+
static isValidTaxId(control: AbstractControl): ValidationErrors | null;
|
|
7
|
+
static isValidCpf(control: AbstractControl): ValidationErrors | null;
|
|
8
|
+
static isValidCnpj(control: AbstractControl): ValidationErrors | null;
|
|
9
|
+
static majorAge(control: AbstractControl): ValidationErrors | null;
|
|
10
|
+
static matchField(anotherField: AbstractControl | null): ValidatorFn;
|
|
11
|
+
static cellphone(control: AbstractControl): ValidationErrors | null;
|
|
12
|
+
static lowerThanOrEqualTo(greaterControlName: string): ValidatorFn;
|
|
13
|
+
static greaterThanOrEqualTo(lowerControlName: string): ValidatorFn;
|
|
14
|
+
static notSequentialNumbers(length: number): ValidatorFn;
|
|
15
|
+
static firstLetterIsUppercase(control: AbstractControl): ValidationErrors | null;
|
|
16
|
+
static containsLettersAndNumbers(control: AbstractControl): ValidationErrors | null;
|
|
17
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class WindowUtil {
|
|
2
|
-
static isSmallDevice(): boolean;
|
|
3
|
-
static isDesktop(): boolean;
|
|
4
|
-
}
|
|
1
|
+
export declare class WindowUtil {
|
|
2
|
+
static isSmallDevice(): boolean;
|
|
3
|
+
static isDesktop(): boolean;
|
|
4
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="ngx-vector-components" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="ngx-vector-components" />
|
|
5
|
+
export * from './public-api';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './lib/components';
|
|
2
|
-
export * from './lib/guards';
|
|
3
|
-
export * from './lib/interceptors';
|
|
4
|
-
export * from './lib/models';
|
|
5
|
-
export * from './lib/pipes';
|
|
6
|
-
export * from './lib/resolvers';
|
|
7
|
-
export * from './lib/services';
|
|
8
|
-
export * from './lib/utils';
|
|
1
|
+
export * from './lib/components';
|
|
2
|
+
export * from './lib/guards';
|
|
3
|
+
export * from './lib/interceptors';
|
|
4
|
+
export * from './lib/models';
|
|
5
|
+
export * from './lib/pipes';
|
|
6
|
+
export * from './lib/resolvers';
|
|
7
|
+
export * from './lib/services';
|
|
8
|
+
export * from './lib/utils';
|