@gipisistemas/ng-core 1.0.67 → 1.0.68
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/styles/colors.scss +261 -0
- package/assets/styles/layout-grid.scss +146 -0
- package/assets/styles/styles.scss +149 -0
- package/assets/styles/theme.scss +22 -0
- package/assets/styles/typography.scss +54 -0
- package/assets/styles/variable.scss +41 -0
- package/bundles/gipisistemas-ng-core.umd.js +28311 -0
- package/bundles/gipisistemas-ng-core.umd.js.map +1 -0
- package/bundles/gipisistemas-ng-core.umd.min.js +66 -0
- package/bundles/gipisistemas-ng-core.umd.min.js.map +1 -0
- package/core/app-messages.d.ts +9 -0
- package/core/app.messages.d.ts +4 -0
- package/core/components/abstract-crud.component.d.ts +27 -0
- package/core/components/abstract-find.component.d.ts +43 -0
- package/core/components/abstract.component.d.ts +23 -0
- package/core/components/alert/alert.component.d.ts +7 -0
- package/core/core.module.d.ts +17 -0
- package/core/custom-breakpoints.d.ts +7 -0
- package/core/enums/local-time.enum.d.ts +5 -0
- package/core/extensions/string.extension.d.ts +3 -0
- package/core/gipi-components/components/abstract-crud.component.d.ts +25 -0
- package/core/gipi-components/components/abstract-find.component.d.ts +73 -0
- package/core/gipi-components/components/abstract.component.d.ts +38 -0
- package/core/gipi-components/decorators/autowired.decorator.d.ts +7 -0
- package/core/gipi-components/enums/sort-direction.enum.d.ts +5 -0
- package/core/gipi-components/interface/abstract-crud.interface.d.ts +5 -0
- package/core/gipi-components/interface/abstract-find.interface.d.ts +12 -0
- package/core/gipi-components/interface/abstract.interface.d.ts +11 -0
- package/core/gipi-components/interface/base-permission.interface.d.ts +9 -0
- package/core/gipi-components/models/abstract-filter.model.d.ts +9 -0
- package/core/gipi-components/models/abstract.model.d.ts +7 -0
- package/core/gipi-components/models/applied-filter.model.d.ts +9 -0
- package/core/gipi-components/models/dto/abstract.dto.d.ts +7 -0
- package/core/gipi-components/models/page-event.model.d.ts +18 -0
- package/core/gipi-components/models/page.model.d.ts +7 -0
- package/core/gipi-components/models/sort.model.d.ts +6 -0
- package/core/gipi-components/services/abstract-crud.service.d.ts +83 -0
- package/core/gipi-components/services/abstract.service.d.ts +19 -0
- package/core/gipi-components/services/base.service.d.ts +35 -0
- package/core/gipi-components/services/file.service.d.ts +6 -0
- package/core/gipi-components/services/session-storage.service.d.ts +8 -0
- package/core/gipi-components/types/generic.type.d.ts +1 -0
- package/core/gipi-components/types/uuid.type.d.ts +1 -0
- package/core/guards/auth.guard.d.ts +11 -0
- package/core/guards/permission.guard.d.ts +14 -0
- package/core/guards/public.guard.d.ts +11 -0
- package/core/interceptors/auth.interceptor.d.ts +9 -0
- package/core/interceptors/error.interceptor.d.ts +11 -0
- package/core/models/abstract.model.d.ts +3 -0
- package/core/models/archive.model.d.ts +4 -0
- package/core/models/authority.model.d.ts +3 -0
- package/core/models/base-user.model.d.ts +12 -0
- package/core/models/dto/abstract.dto.d.ts +2 -0
- package/core/models/dto/api-error.dto.d.ts +9 -0
- package/core/models/dto/api-sub-error.dto.d.ts +7 -0
- package/core/models/dto/chart.dto.d.ts +5 -0
- package/core/models/dto/confirmation.dto.d.ts +10 -0
- package/core/models/dto/dialog.dto.d.ts +36 -0
- package/core/models/dto/filter.dto.d.ts +8 -0
- package/core/models/dto/input-listbox.dto.d.ts +6 -0
- package/core/models/dto/menu.dto.d.ts +15 -0
- package/core/models/dto/message.dto.d.ts +7 -0
- package/core/models/dto/page.dto.d.ts +8 -0
- package/core/models/dto/sort.dto.d.ts +7 -0
- package/core/models/dto/tab.dto.d.ts +12 -0
- package/core/models/dto/table-column.dto.d.ts +21 -0
- package/core/models/dto/table-group-header.dto.d.ts +7 -0
- package/core/models/dto/table-page-event.dto.d.ts +6 -0
- package/core/models/dto/token.dto.d.ts +8 -0
- package/core/models/enums/criteria-operation.enum.d.ts +13 -0
- package/core/models/enums/criteria-sort-direction.enum.d.ts +4 -0
- package/core/models/enums/menu-type.enum.d.ts +6 -0
- package/core/models/enums/radio-button.enum.d.ts +6 -0
- package/core/models/enums/sort-direction.enum.d.ts +4 -0
- package/core/models/multitenant.model.d.ts +4 -0
- package/core/models/permission.model.d.ts +8 -0
- package/core/models/role.model.d.ts +7 -0
- package/core/pipes/local-time.pipe.d.ts +6 -0
- package/core/services/abstract-crud.service.d.ts +15 -0
- package/core/services/abstract-find.service.d.ts +30 -0
- package/core/services/abstract.service.d.ts +13 -0
- package/core/services/authentication.service.d.ts +23 -0
- package/core/services/breakpoint-observer.service.d.ts +9 -0
- package/core/services/confirmation.service.d.ts +8 -0
- package/core/services/dialog.service.d.ts +8 -0
- package/core/services/message.service.d.ts +8 -0
- package/core/services/nav.service.d.ts +16 -0
- package/core/services/svg-register.service.d.ts +22 -0
- package/core/types/local-time.type.d.ts +5 -0
- package/core/types/ng-class.type.d.ts +10 -0
- package/core/utils/array.util.d.ts +14 -0
- package/core/utils/browser.util.d.ts +4 -0
- package/core/utils/currency.util.d.ts +6 -0
- package/core/utils/date.util.d.ts +39 -0
- package/core/utils/document.util.d.ts +11 -0
- package/core/utils/email.util.d.ts +4 -0
- package/core/utils/number.util.d.ts +8 -0
- package/core/utils/object.util.d.ts +20 -0
- package/core/utils/password.util.d.ts +11 -0
- package/core/utils/phone.util.d.ts +13 -0
- package/core/utils/string.util.d.ts +9 -0
- package/core/utils/table-column-builder.d.ts +40 -0
- package/core/utils/time.util.d.ts +9 -0
- package/core/utils/url-params.util.d.ts +7 -0
- package/core/utils/uuid.util.d.ts +5 -0
- package/core/utils/zindex.util.d.ts +7 -0
- package/core.d.ts +88 -0
- package/esm2015/core/app-messages.js +1 -0
- package/esm2015/core/app.messages.js +12 -0
- package/esm2015/core/components/abstract-crud.component.js +97 -0
- package/esm2015/core/components/abstract-find.component.js +189 -0
- package/esm2015/core/components/abstract.component.js +110 -0
- package/esm2015/core/components/alert/alert.component.js +24 -0
- package/esm2015/core/core.module.js +103 -0
- package/esm2015/core/custom-breakpoints.js +87 -0
- package/esm2015/core/enums/local-time.enum.js +6 -0
- package/esm2015/core/extensions/string.extension.js +37 -0
- package/esm2015/core/gipi-components/components/abstract-crud.component.js +110 -0
- package/esm2015/core/gipi-components/components/abstract-find.component.js +471 -0
- package/esm2015/core/gipi-components/components/abstract.component.js +140 -0
- package/esm2015/core/gipi-components/decorators/autowired.decorator.js +47 -0
- package/esm2015/core/gipi-components/enums/sort-direction.enum.js +6 -0
- package/esm2015/core/gipi-components/interface/abstract-crud.interface.js +1 -0
- package/esm2015/core/gipi-components/interface/abstract-find.interface.js +1 -0
- package/esm2015/core/gipi-components/interface/abstract.interface.js +1 -0
- package/esm2015/core/gipi-components/interface/base-permission.interface.js +1 -0
- package/esm2015/core/gipi-components/models/abstract-filter.model.js +3 -0
- package/esm2015/core/gipi-components/models/abstract.model.js +3 -0
- package/esm2015/core/gipi-components/models/applied-filter.model.js +19 -0
- package/esm2015/core/gipi-components/models/dto/abstract.dto.js +3 -0
- package/esm2015/core/gipi-components/models/page-event.model.js +35 -0
- package/esm2015/core/gipi-components/models/page.model.js +7 -0
- package/esm2015/core/gipi-components/models/sort.model.js +7 -0
- package/esm2015/core/gipi-components/services/abstract-crud.service.js +109 -0
- package/esm2015/core/gipi-components/services/abstract.service.js +47 -0
- package/esm2015/core/gipi-components/services/base.service.js +102 -0
- package/esm2015/core/gipi-components/services/file.service.js +51 -0
- package/esm2015/core/gipi-components/services/session-storage.service.js +44 -0
- package/esm2015/core/gipi-components/types/generic.type.js +1 -0
- package/esm2015/core/gipi-components/types/uuid.type.js +1 -0
- package/esm2015/core/guards/auth.guard.js +48 -0
- package/esm2015/core/guards/permission.guard.js +61 -0
- package/esm2015/core/guards/public.guard.js +45 -0
- package/esm2015/core/interceptors/auth.interceptor.js +28 -0
- package/esm2015/core/interceptors/error.interceptor.js +110 -0
- package/esm2015/core/models/abstract.model.js +3 -0
- package/esm2015/core/models/archive.model.js +3 -0
- package/esm2015/core/models/authority.model.js +3 -0
- package/esm2015/core/models/base-user.model.js +8 -0
- package/esm2015/core/models/dto/abstract.dto.js +3 -0
- package/esm2015/core/models/dto/api-error.dto.js +8 -0
- package/esm2015/core/models/dto/api-sub-error.dto.js +4 -0
- package/esm2015/core/models/dto/chart.dto.js +4 -0
- package/esm2015/core/models/dto/confirmation.dto.js +8 -0
- package/esm2015/core/models/dto/dialog.dto.js +4 -0
- package/esm2015/core/models/dto/filter.dto.js +4 -0
- package/esm2015/core/models/dto/input-listbox.dto.js +7 -0
- package/esm2015/core/models/dto/menu.dto.js +9 -0
- package/esm2015/core/models/dto/message.dto.js +4 -0
- package/esm2015/core/models/dto/page.dto.js +9 -0
- package/esm2015/core/models/dto/sort.dto.js +9 -0
- package/esm2015/core/models/dto/tab.dto.js +10 -0
- package/esm2015/core/models/dto/table-column.dto.js +24 -0
- package/esm2015/core/models/dto/table-group-header.dto.js +10 -0
- package/esm2015/core/models/dto/table-page-event.dto.js +7 -0
- package/esm2015/core/models/dto/token.dto.js +4 -0
- package/esm2015/core/models/enums/criteria-operation.enum.js +15 -0
- package/esm2015/core/models/enums/criteria-sort-direction.enum.js +6 -0
- package/esm2015/core/models/enums/menu-type.enum.js +7 -0
- package/esm2015/core/models/enums/radio-button.enum.js +8 -0
- package/esm2015/core/models/enums/sort-direction.enum.js +6 -0
- package/esm2015/core/models/multitenant.model.js +4 -0
- package/esm2015/core/models/permission.model.js +11 -0
- package/esm2015/core/models/role.model.js +8 -0
- package/esm2015/core/pipes/local-time.pipe.js +21 -0
- package/esm2015/core/services/abstract-crud.service.js +24 -0
- package/esm2015/core/services/abstract-find.service.js +65 -0
- package/esm2015/core/services/abstract.service.js +30 -0
- package/esm2015/core/services/authentication.service.js +100 -0
- package/esm2015/core/services/breakpoint-observer.service.js +42 -0
- package/esm2015/core/services/confirmation.service.js +55 -0
- package/esm2015/core/services/dialog.service.js +41 -0
- package/esm2015/core/services/message.service.js +33 -0
- package/esm2015/core/services/nav.service.js +48 -0
- package/esm2015/core/services/svg-register.service.js +55 -0
- package/esm2015/core/types/local-time.type.js +1 -0
- package/esm2015/core/types/ng-class.type.js +1 -0
- package/esm2015/core/utils/array.util.js +110 -0
- package/esm2015/core/utils/browser.util.js +13 -0
- package/esm2015/core/utils/currency.util.js +21 -0
- package/esm2015/core/utils/date.util.js +257 -0
- package/esm2015/core/utils/document.util.js +153 -0
- package/esm2015/core/utils/email.util.js +25 -0
- package/esm2015/core/utils/number.util.js +28 -0
- package/esm2015/core/utils/object.util.js +199 -0
- package/esm2015/core/utils/password.util.js +38 -0
- package/esm2015/core/utils/phone.util.js +125 -0
- package/esm2015/core/utils/string.util.js +40 -0
- package/esm2015/core/utils/table-column-builder.js +85 -0
- package/esm2015/core/utils/time.util.js +59 -0
- package/esm2015/core/utils/url-params.util.js +12 -0
- package/esm2015/core/utils/uuid.util.js +17 -0
- package/esm2015/core/utils/zindex.util.js +35 -0
- package/esm2015/core.js +89 -0
- package/esm2015/gipi-components.js +105 -0
- package/esm2015/gipisistemas-ng-core.js +21 -0
- package/esm2015/public_api.js +4 -0
- package/esm2015/shared/api/generate-id-component.js +12 -0
- package/esm2015/shared/api/gipi-ng-config.js +76 -0
- package/esm2015/shared/api/overlay-message.js +1 -0
- package/esm2015/shared/api/throttle.js +60 -0
- package/esm2015/shared/api/translation.js +1 -0
- package/esm2015/shared/components/button/button.component.js +110 -0
- package/esm2015/shared/components/card/card.component.js +44 -0
- package/esm2015/shared/components/checkbox/checkbox.component.js +79 -0
- package/esm2015/shared/components/dom/connected-overlay-scroll-handler.js +27 -0
- package/esm2015/shared/components/dom/dom-handler.js +538 -0
- package/esm2015/shared/components/icon/icon.component.js +35 -0
- package/esm2015/shared/components/input/input.component.js +235 -0
- package/esm2015/shared/components/input-currency/input-currency.component.js +115 -0
- package/esm2015/shared/components/input-file/input-file.component.js +161 -0
- package/esm2015/shared/components/loading/loading.component.js +15 -0
- package/esm2015/shared/components/loading-overlay/loading-overlay.component.js +21 -0
- package/esm2015/shared/components/overlay-panel/overlay-panel.component.js +361 -0
- package/esm2015/shared/components/popover/popover-ref.js +25 -0
- package/esm2015/shared/components/popover/popover.component.js +34 -0
- package/esm2015/shared/components/popover/popover.service.js +85 -0
- package/esm2015/shared/components/radio-group-entity/radio-group-entity.component.js +74 -0
- package/esm2015/shared/components/radio-group-enum/radio-group-enum.component.js +126 -0
- package/esm2015/shared/components/select-button/select-button.component.js +181 -0
- package/esm2015/shared/components/select-entity/select-entity.component.js +262 -0
- package/esm2015/shared/components/select-entity-paged/select-entity-paged.component.js +419 -0
- package/esm2015/shared/components/select-entity-paged/shared/default-options.js +35 -0
- package/esm2015/shared/components/select-entity-paged/shared/select-button-add/select-button-add.component.js +69 -0
- package/esm2015/shared/components/select-entity-paged/shared/select-button-next-batch/select-button-next-batch.component.js +59 -0
- package/esm2015/shared/components/select-entity-paged/shared/select-no-entries-found.directive.js +20 -0
- package/esm2015/shared/components/select-entity-paged/shared/select-search/select-search.component.js +547 -0
- package/esm2015/shared/components/select-entity-paged/shared/select-search-clear.directive.js +18 -0
- package/esm2015/shared/components/select-enum/select-enum.component.js +117 -0
- package/esm2015/shared/components/select-month-period/select-month-period.component.js +87 -0
- package/esm2015/shared/components/slide-toggle/slide-toggle.component.js +75 -0
- package/esm2015/shared/components/stepper/stepper.component.js +32 -0
- package/esm2015/shared/components/tab/tab.component.js +57 -0
- package/esm2015/shared/components/tab-group/tab-group.component.js +117 -0
- package/esm2015/shared/components/table/table.component.js +523 -0
- package/esm2015/shared/components/table-scrolled/table-scrolled.component.js +105 -0
- package/esm2015/shared/components/textarea/textarea.component.js +156 -0
- package/esm2015/shared/directives/dynamic-tab.directive.js +18 -0
- package/esm2015/shared/directives/generic-template.directive.js +30 -0
- package/esm2015/shared/directives/input-select-infinite-scroll.directive.js +109 -0
- package/esm2015/shared/directives/lower-case.directive.js +47 -0
- package/esm2015/shared/directives/phone-mask.directive.js +60 -0
- package/esm2015/shared/directives/space-drop.directive.js +47 -0
- package/esm2015/shared/directives/upper-case.directive.js +47 -0
- package/esm2015/shared/gipi-components/abstract-form/abstract-form.component.js +119 -0
- package/esm2015/shared/gipi-components/action-row/action-row.component.js +30 -0
- package/esm2015/shared/gipi-components/badge/badge.component.js +44 -0
- package/esm2015/shared/gipi-components/button/button.component.js +251 -0
- package/esm2015/shared/gipi-components/chips/chips.component.js +149 -0
- package/esm2015/shared/gipi-components/confirmation-dialog/confirmation-dialog.component.js +44 -0
- package/esm2015/shared/gipi-components/datepicker/date-range-picker/date-range-picker.component.js +324 -0
- package/esm2015/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range-selection-startegy.js +41 -0
- package/esm2015/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range.directive.js +35 -0
- package/esm2015/shared/gipi-components/datepicker/date-range-picker/shared/preset-range/preset-range.component.js +259 -0
- package/esm2015/shared/gipi-components/datepicker/datepicker/datepicker.component.js +218 -0
- package/esm2015/shared/gipi-components/datepicker/datepicker.module.js +130 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/calendar-body.js +341 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/calendar.js +397 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-input-parts.js +325 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-input.js +329 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-picker.js +41 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-selection-strategy.js +61 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-selection-model.js +159 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-animations.js +35 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-base.js +555 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-errors.js +14 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-input-base.js +303 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-input.js +179 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-intl.js +51 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-toggle.js +124 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker.js +29 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/month-view.js +365 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/multi-year-view.js +305 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-adapter.js +116 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-formats.js +10 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-adapter.js +294 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-formats.js +19 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/platform.js +81 -0
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/year-view.js +294 -0
- package/esm2015/shared/gipi-components/dom/connected-overlay-scroll-handler.js +27 -0
- package/esm2015/shared/gipi-components/dom/dom-handler.js +645 -0
- package/esm2015/shared/gipi-components/dropdown-menu/dropdown-menu.component.js +185 -0
- package/esm2015/shared/gipi-components/expansion-panel/expansion-panel.component.js +81 -0
- package/esm2015/shared/gipi-components/file-drag-and-drop/file-drag-and-drop.component.js +240 -0
- package/esm2015/shared/gipi-components/file-drag-and-drop/shared/file-drag-and-drop.directive.js +92 -0
- package/esm2015/shared/gipi-components/footer/footer.component.js +29 -0
- package/esm2015/shared/gipi-components/form-field/form-field.component.js +262 -0
- package/esm2015/shared/gipi-components/helpful-tip/helpful-tip.component.js +62 -0
- package/esm2015/shared/gipi-components/infinite-scroll/infinite-scroll.directive.js +103 -0
- package/esm2015/shared/gipi-components/input-checkbox/input-checkbox.component.js +112 -0
- package/esm2015/shared/gipi-components/input-currency/input-currency.component.js +197 -0
- package/esm2015/shared/gipi-components/input-monthpicker/input-monthpicker.component.js +408 -0
- package/esm2015/shared/gipi-components/input-select/input-select.component.js +655 -0
- package/esm2015/shared/gipi-components/input-select-enum/input-select-enum.component.js +311 -0
- package/esm2015/shared/gipi-components/input-select-listbox/input-select-listbox.component.js +422 -0
- package/esm2015/shared/gipi-components/input-select-paged/input-search/input-search.component.js +374 -0
- package/esm2015/shared/gipi-components/input-select-paged/input-select-paged.component.js +350 -0
- package/esm2015/shared/gipi-components/input-select-radio/input-select-radio.component.js +269 -0
- package/esm2015/shared/gipi-components/layout-grid/col.directive.js +161 -0
- package/esm2015/shared/gipi-components/layout-grid/row.directive.js +124 -0
- package/esm2015/shared/gipi-components/layout-grid/services/breakpoint.service.js +87 -0
- package/esm2015/shared/gipi-components/layout-grid/services/resize.service.js +64 -0
- package/esm2015/shared/gipi-components/month-year-picker/calendar-month-year/calendar-month-year.component.js +193 -0
- package/esm2015/shared/gipi-components/month-year-picker/mont-year-picker.module.js +47 -0
- package/esm2015/shared/gipi-components/month-year-picker/month-year-picker.component.js +460 -0
- package/esm2015/shared/gipi-components/notification/notification.component.js +104 -0
- package/esm2015/shared/gipi-components/novelties/novelties.component.js +109 -0
- package/esm2015/shared/gipi-components/overlay/overlay.component.js +565 -0
- package/esm2015/shared/gipi-components/overlay/shared/overlay-service.js +21 -0
- package/esm2015/shared/gipi-components/overlay/shared/overlay_options.js +1 -0
- package/esm2015/shared/gipi-components/password-requeriments/password-requeriments.component.js +127 -0
- package/esm2015/shared/gipi-components/popover/popover.component.js +397 -0
- package/esm2015/shared/gipi-components/popover/shared/popover-animations.js +29 -0
- package/esm2015/shared/gipi-components/popover/shared/popover-errors.js +27 -0
- package/esm2015/shared/gipi-components/popover/shared/popover-interfaces.js +1 -0
- package/esm2015/shared/gipi-components/popover/shared/popover-target.js +19 -0
- package/esm2015/shared/gipi-components/popover/shared/popover-trigger.js +514 -0
- package/esm2015/shared/gipi-components/popover/shared/popover-types.js +1 -0
- package/esm2015/shared/gipi-components/radio-group/radio-group.component.js +143 -0
- package/esm2015/shared/gipi-components/range-page/range-page.component.js +254 -0
- package/esm2015/shared/gipi-components/range-slider/range-slider.component.js +345 -0
- package/esm2015/shared/gipi-components/select/select.component.js +211 -0
- package/esm2015/shared/gipi-components/select-button/select-button.component.js +187 -0
- package/esm2015/shared/gipi-components/sidebar/container/container.component.js +83 -0
- package/esm2015/shared/gipi-components/sidebar/sidenav/sidenav.component.js +240 -0
- package/esm2015/shared/gipi-components/stepper/stepper.component.js +37 -0
- package/esm2015/shared/gipi-components/table/components/table-body/table-body.component.js +203 -0
- package/esm2015/shared/gipi-components/table/components/table-footer/table-footer.component.js +30 -0
- package/esm2015/shared/gipi-components/table/components/table-header/table-header.component.js +152 -0
- package/esm2015/shared/gipi-components/table/components/table-pagination/shared/paginate.pipe.js +122 -0
- package/esm2015/shared/gipi-components/table/components/table-pagination/shared/pagination-controls.directive.js +225 -0
- package/esm2015/shared/gipi-components/table/components/table-pagination/shared/pagination-instance.js +1 -0
- package/esm2015/shared/gipi-components/table/components/table-pagination/shared/pagination.service.js +105 -0
- package/esm2015/shared/gipi-components/table/components/table-pagination/table-pagination.component.js +102 -0
- package/esm2015/shared/gipi-components/table/components/table-progress-bar/table-progress-bar.component.js +30 -0
- package/esm2015/shared/gipi-components/table/models/pipe-transform.model.js +1 -0
- package/esm2015/shared/gipi-components/table/models/sort.model.js +19 -0
- package/esm2015/shared/gipi-components/table/models/sorted-column.model.js +2 -0
- package/esm2015/shared/gipi-components/table/models/table-column-builder.model.js +104 -0
- package/esm2015/shared/gipi-components/table/models/table-column.model.js +162 -0
- package/esm2015/shared/gipi-components/table/table.component.js +159 -0
- package/esm2015/shared/gipi-components/table/types/sort-direction.type.js +1 -0
- package/esm2015/shared/gipi-components/table/types/sort.type.js +1 -0
- package/esm2015/shared/gipi-components/template/template.directive.js +33 -0
- package/esm2015/shared/gipi-components/toolbar/toolbar.component.js +53 -0
- package/esm2015/shared/gipi-components/top-nav/top-nav.component.js +38 -0
- package/esm2015/shared/gipi-components/user-profile/user-profile.component.js +109 -0
- package/esm2015/shared/material.module.js +102 -0
- package/esm2015/shared/shared.module.js +339 -0
- package/esm2015/shared.js +36 -0
- package/esm5/core/app-messages.js +1 -0
- package/esm5/core/app.messages.js +12 -0
- package/esm5/core/components/abstract-crud.component.js +108 -0
- package/esm5/core/components/abstract-find.component.js +201 -0
- package/esm5/core/components/abstract.component.js +112 -0
- package/esm5/core/components/alert/alert.component.js +25 -0
- package/esm5/core/core.module.js +107 -0
- package/esm5/core/custom-breakpoints.js +87 -0
- package/esm5/core/enums/local-time.enum.js +6 -0
- package/esm5/core/extensions/string.extension.js +37 -0
- package/esm5/core/gipi-components/components/abstract-crud.component.js +122 -0
- package/esm5/core/gipi-components/components/abstract-find.component.js +507 -0
- package/esm5/core/gipi-components/components/abstract.component.js +152 -0
- package/esm5/core/gipi-components/decorators/autowired.decorator.js +52 -0
- package/esm5/core/gipi-components/enums/sort-direction.enum.js +6 -0
- package/esm5/core/gipi-components/interface/abstract-crud.interface.js +1 -0
- package/esm5/core/gipi-components/interface/abstract-find.interface.js +1 -0
- package/esm5/core/gipi-components/interface/abstract.interface.js +1 -0
- package/esm5/core/gipi-components/interface/base-permission.interface.js +1 -0
- package/esm5/core/gipi-components/models/abstract-filter.model.js +7 -0
- package/esm5/core/gipi-components/models/abstract.model.js +7 -0
- package/esm5/core/gipi-components/models/applied-filter.model.js +29 -0
- package/esm5/core/gipi-components/models/dto/abstract.dto.js +7 -0
- package/esm5/core/gipi-components/models/page-event.model.js +49 -0
- package/esm5/core/gipi-components/models/page.model.js +9 -0
- package/esm5/core/gipi-components/models/sort.model.js +9 -0
- package/esm5/core/gipi-components/services/abstract-crud.service.js +114 -0
- package/esm5/core/gipi-components/services/abstract.service.js +49 -0
- package/esm5/core/gipi-components/services/base.service.js +143 -0
- package/esm5/core/gipi-components/services/file.service.js +53 -0
- package/esm5/core/gipi-components/services/session-storage.service.js +45 -0
- package/esm5/core/gipi-components/types/generic.type.js +1 -0
- package/esm5/core/gipi-components/types/uuid.type.js +1 -0
- package/esm5/core/guards/auth.guard.js +50 -0
- package/esm5/core/guards/permission.guard.js +74 -0
- package/esm5/core/guards/public.guard.js +47 -0
- package/esm5/core/interceptors/auth.interceptor.js +29 -0
- package/esm5/core/interceptors/error.interceptor.js +129 -0
- package/esm5/core/models/abstract.model.js +7 -0
- package/esm5/core/models/archive.model.js +7 -0
- package/esm5/core/models/authority.model.js +7 -0
- package/esm5/core/models/base-user.model.js +13 -0
- package/esm5/core/models/dto/abstract.dto.js +7 -0
- package/esm5/core/models/dto/api-error.dto.js +13 -0
- package/esm5/core/models/dto/api-sub-error.dto.js +11 -0
- package/esm5/core/models/dto/chart.dto.js +11 -0
- package/esm5/core/models/dto/confirmation.dto.js +13 -0
- package/esm5/core/models/dto/dialog.dto.js +11 -0
- package/esm5/core/models/dto/filter.dto.js +11 -0
- package/esm5/core/models/dto/input-listbox.dto.js +11 -0
- package/esm5/core/models/dto/menu.dto.js +14 -0
- package/esm5/core/models/dto/message.dto.js +11 -0
- package/esm5/core/models/dto/page.dto.js +14 -0
- package/esm5/core/models/dto/sort.dto.js +14 -0
- package/esm5/core/models/dto/tab.dto.js +15 -0
- package/esm5/core/models/dto/table-column.dto.js +29 -0
- package/esm5/core/models/dto/table-group-header.dto.js +15 -0
- package/esm5/core/models/dto/table-page-event.dto.js +11 -0
- package/esm5/core/models/dto/token.dto.js +11 -0
- package/esm5/core/models/enums/criteria-operation.enum.js +15 -0
- package/esm5/core/models/enums/criteria-sort-direction.enum.js +6 -0
- package/esm5/core/models/enums/menu-type.enum.js +7 -0
- package/esm5/core/models/enums/radio-button.enum.js +8 -0
- package/esm5/core/models/enums/sort-direction.enum.js +6 -0
- package/esm5/core/models/multitenant.model.js +11 -0
- package/esm5/core/models/permission.model.js +16 -0
- package/esm5/core/models/role.model.js +13 -0
- package/esm5/core/pipes/local-time.pipe.js +26 -0
- package/esm5/core/services/abstract-crud.service.js +30 -0
- package/esm5/core/services/abstract-find.service.js +71 -0
- package/esm5/core/services/abstract.service.js +32 -0
- package/esm5/core/services/authentication.service.js +121 -0
- package/esm5/core/services/breakpoint-observer.service.js +52 -0
- package/esm5/core/services/confirmation.service.js +66 -0
- package/esm5/core/services/dialog.service.js +44 -0
- package/esm5/core/services/message.service.js +36 -0
- package/esm5/core/services/nav.service.js +51 -0
- package/esm5/core/services/svg-register.service.js +67 -0
- package/esm5/core/types/local-time.type.js +1 -0
- package/esm5/core/types/ng-class.type.js +1 -0
- package/esm5/core/utils/array.util.js +120 -0
- package/esm5/core/utils/browser.util.js +17 -0
- package/esm5/core/utils/currency.util.js +26 -0
- package/esm5/core/utils/date.util.js +269 -0
- package/esm5/core/utils/document.util.js +157 -0
- package/esm5/core/utils/email.util.js +29 -0
- package/esm5/core/utils/number.util.js +32 -0
- package/esm5/core/utils/object.util.js +204 -0
- package/esm5/core/utils/password.util.js +42 -0
- package/esm5/core/utils/phone.util.js +135 -0
- package/esm5/core/utils/string.util.js +44 -0
- package/esm5/core/utils/table-column-builder.js +87 -0
- package/esm5/core/utils/time.util.js +65 -0
- package/esm5/core/utils/url-params.util.js +16 -0
- package/esm5/core/utils/uuid.util.js +21 -0
- package/esm5/core/utils/zindex.util.js +35 -0
- package/esm5/core.js +89 -0
- package/esm5/gipi-components.js +105 -0
- package/esm5/gipisistemas-ng-core.js +21 -0
- package/esm5/public_api.js +4 -0
- package/esm5/shared/api/generate-id-component.js +16 -0
- package/esm5/shared/api/gipi-ng-config.js +77 -0
- package/esm5/shared/api/overlay-message.js +1 -0
- package/esm5/shared/api/throttle.js +60 -0
- package/esm5/shared/api/translation.js +1 -0
- package/esm5/shared/components/button/button.component.js +111 -0
- package/esm5/shared/components/card/card.component.js +45 -0
- package/esm5/shared/components/checkbox/checkbox.component.js +85 -0
- package/esm5/shared/components/dom/connected-overlay-scroll-handler.js +30 -0
- package/esm5/shared/components/dom/dom-handler.js +573 -0
- package/esm5/shared/components/icon/icon.component.js +38 -0
- package/esm5/shared/components/input/input.component.js +242 -0
- package/esm5/shared/components/input-currency/input-currency.component.js +121 -0
- package/esm5/shared/components/input-file/input-file.component.js +165 -0
- package/esm5/shared/components/loading/loading.component.js +18 -0
- package/esm5/shared/components/loading-overlay/loading-overlay.component.js +23 -0
- package/esm5/shared/components/overlay-panel/overlay-panel.component.js +366 -0
- package/esm5/shared/components/popover/popover-ref.js +28 -0
- package/esm5/shared/components/popover/popover.component.js +35 -0
- package/esm5/shared/components/popover/popover.service.js +88 -0
- package/esm5/shared/components/radio-group-entity/radio-group-entity.component.js +80 -0
- package/esm5/shared/components/radio-group-enum/radio-group-enum.component.js +138 -0
- package/esm5/shared/components/select-button/select-button.component.js +195 -0
- package/esm5/shared/components/select-entity/select-entity.component.js +269 -0
- package/esm5/shared/components/select-entity-paged/select-entity-paged.component.js +453 -0
- package/esm5/shared/components/select-entity-paged/shared/default-options.js +35 -0
- package/esm5/shared/components/select-entity-paged/shared/select-button-add/select-button-add.component.js +72 -0
- package/esm5/shared/components/select-entity-paged/shared/select-button-next-batch/select-button-next-batch.component.js +62 -0
- package/esm5/shared/components/select-entity-paged/shared/select-no-entries-found.directive.js +23 -0
- package/esm5/shared/components/select-entity-paged/shared/select-search/select-search.component.js +590 -0
- package/esm5/shared/components/select-entity-paged/shared/select-search-clear.directive.js +21 -0
- package/esm5/shared/components/select-enum/select-enum.component.js +124 -0
- package/esm5/shared/components/select-month-period/select-month-period.component.js +91 -0
- package/esm5/shared/components/slide-toggle/slide-toggle.component.js +81 -0
- package/esm5/shared/components/stepper/stepper.component.js +36 -0
- package/esm5/shared/components/tab/tab.component.js +58 -0
- package/esm5/shared/components/tab-group/tab-group.component.js +125 -0
- package/esm5/shared/components/table/table.component.js +538 -0
- package/esm5/shared/components/table-scrolled/table-scrolled.component.js +107 -0
- package/esm5/shared/components/textarea/textarea.component.js +174 -0
- package/esm5/shared/directives/dynamic-tab.directive.js +19 -0
- package/esm5/shared/directives/generic-template.directive.js +31 -0
- package/esm5/shared/directives/input-select-infinite-scroll.directive.js +113 -0
- package/esm5/shared/directives/lower-case.directive.js +48 -0
- package/esm5/shared/directives/phone-mask.directive.js +61 -0
- package/esm5/shared/directives/space-drop.directive.js +48 -0
- package/esm5/shared/directives/upper-case.directive.js +48 -0
- package/esm5/shared/gipi-components/abstract-form/abstract-form.component.js +141 -0
- package/esm5/shared/gipi-components/action-row/action-row.component.js +33 -0
- package/esm5/shared/gipi-components/badge/badge.component.js +46 -0
- package/esm5/shared/gipi-components/button/button.component.js +257 -0
- package/esm5/shared/gipi-components/chips/chips.component.js +159 -0
- package/esm5/shared/gipi-components/confirmation-dialog/confirmation-dialog.component.js +46 -0
- package/esm5/shared/gipi-components/datepicker/date-range-picker/date-range-picker.component.js +378 -0
- package/esm5/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range-selection-startegy.js +42 -0
- package/esm5/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range.directive.js +40 -0
- package/esm5/shared/gipi-components/datepicker/date-range-picker/shared/preset-range/preset-range.component.js +291 -0
- package/esm5/shared/gipi-components/datepicker/datepicker/datepicker.component.js +252 -0
- package/esm5/shared/gipi-components/datepicker/datepicker.module.js +133 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/calendar-body.js +349 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/calendar.js +441 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-input-parts.js +339 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-input.js +376 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-picker.js +46 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-selection-strategy.js +62 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-selection-model.js +167 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-animations.js +35 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-base.js +586 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-errors.js +14 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-input-base.js +327 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-input.js +199 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-intl.js +52 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-toggle.js +133 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker.js +34 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/month-view.js +384 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/multi-year-view.js +324 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-adapter.js +118 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-formats.js +10 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-adapter.js +300 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-formats.js +19 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/platform.js +82 -0
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/year-view.js +313 -0
- package/esm5/shared/gipi-components/dom/connected-overlay-scroll-handler.js +30 -0
- package/esm5/shared/gipi-components/dom/dom-handler.js +681 -0
- package/esm5/shared/gipi-components/dropdown-menu/dropdown-menu.component.js +191 -0
- package/esm5/shared/gipi-components/expansion-panel/expansion-panel.component.js +83 -0
- package/esm5/shared/gipi-components/file-drag-and-drop/file-drag-and-drop.component.js +255 -0
- package/esm5/shared/gipi-components/file-drag-and-drop/shared/file-drag-and-drop.directive.js +93 -0
- package/esm5/shared/gipi-components/footer/footer.component.js +32 -0
- package/esm5/shared/gipi-components/form-field/form-field.component.js +276 -0
- package/esm5/shared/gipi-components/helpful-tip/helpful-tip.component.js +68 -0
- package/esm5/shared/gipi-components/infinite-scroll/infinite-scroll.directive.js +106 -0
- package/esm5/shared/gipi-components/input-checkbox/input-checkbox.component.js +118 -0
- package/esm5/shared/gipi-components/input-currency/input-currency.component.js +207 -0
- package/esm5/shared/gipi-components/input-monthpicker/input-monthpicker.component.js +426 -0
- package/esm5/shared/gipi-components/input-select/input-select.component.js +698 -0
- package/esm5/shared/gipi-components/input-select-enum/input-select-enum.component.js +351 -0
- package/esm5/shared/gipi-components/input-select-listbox/input-select-listbox.component.js +437 -0
- package/esm5/shared/gipi-components/input-select-paged/input-search/input-search.component.js +397 -0
- package/esm5/shared/gipi-components/input-select-paged/input-select-paged.component.js +384 -0
- package/esm5/shared/gipi-components/input-select-radio/input-select-radio.component.js +286 -0
- package/esm5/shared/gipi-components/layout-grid/col.directive.js +164 -0
- package/esm5/shared/gipi-components/layout-grid/row.directive.js +127 -0
- package/esm5/shared/gipi-components/layout-grid/services/breakpoint.service.js +90 -0
- package/esm5/shared/gipi-components/layout-grid/services/resize.service.js +68 -0
- package/esm5/shared/gipi-components/month-year-picker/calendar-month-year/calendar-month-year.component.js +200 -0
- package/esm5/shared/gipi-components/month-year-picker/mont-year-picker.module.js +50 -0
- package/esm5/shared/gipi-components/month-year-picker/month-year-picker.component.js +505 -0
- package/esm5/shared/gipi-components/notification/notification.component.js +106 -0
- package/esm5/shared/gipi-components/novelties/novelties.component.js +111 -0
- package/esm5/shared/gipi-components/overlay/overlay.component.js +670 -0
- package/esm5/shared/gipi-components/overlay/shared/overlay-service.js +22 -0
- package/esm5/shared/gipi-components/overlay/shared/overlay_options.js +1 -0
- package/esm5/shared/gipi-components/password-requeriments/password-requeriments.component.js +157 -0
- package/esm5/shared/gipi-components/popover/popover.component.js +473 -0
- package/esm5/shared/gipi-components/popover/shared/popover-animations.js +29 -0
- package/esm5/shared/gipi-components/popover/shared/popover-errors.js +21 -0
- package/esm5/shared/gipi-components/popover/shared/popover-interfaces.js +1 -0
- package/esm5/shared/gipi-components/popover/shared/popover-target.js +20 -0
- package/esm5/shared/gipi-components/popover/shared/popover-trigger.js +529 -0
- package/esm5/shared/gipi-components/popover/shared/popover-types.js +1 -0
- package/esm5/shared/gipi-components/radio-group/radio-group.component.js +155 -0
- package/esm5/shared/gipi-components/range-page/range-page.component.js +283 -0
- package/esm5/shared/gipi-components/range-slider/range-slider.component.js +364 -0
- package/esm5/shared/gipi-components/select/select.component.js +222 -0
- package/esm5/shared/gipi-components/select-button/select-button.component.js +206 -0
- package/esm5/shared/gipi-components/sidebar/container/container.component.js +96 -0
- package/esm5/shared/gipi-components/sidebar/sidenav/sidenav.component.js +267 -0
- package/esm5/shared/gipi-components/stepper/stepper.component.js +43 -0
- package/esm5/shared/gipi-components/table/components/table-body/table-body.component.js +209 -0
- package/esm5/shared/gipi-components/table/components/table-footer/table-footer.component.js +33 -0
- package/esm5/shared/gipi-components/table/components/table-header/table-header.component.js +155 -0
- package/esm5/shared/gipi-components/table/components/table-pagination/shared/paginate.pipe.js +123 -0
- package/esm5/shared/gipi-components/table/components/table-pagination/shared/pagination-controls.directive.js +228 -0
- package/esm5/shared/gipi-components/table/components/table-pagination/shared/pagination-instance.js +1 -0
- package/esm5/shared/gipi-components/table/components/table-pagination/shared/pagination.service.js +108 -0
- package/esm5/shared/gipi-components/table/components/table-pagination/table-pagination.component.js +116 -0
- package/esm5/shared/gipi-components/table/components/table-progress-bar/table-progress-bar.component.js +33 -0
- package/esm5/shared/gipi-components/table/models/pipe-transform.model.js +1 -0
- package/esm5/shared/gipi-components/table/models/sort.model.js +29 -0
- package/esm5/shared/gipi-components/table/models/sorted-column.model.js +2 -0
- package/esm5/shared/gipi-components/table/models/table-column-builder.model.js +106 -0
- package/esm5/shared/gipi-components/table/models/table-column.model.js +252 -0
- package/esm5/shared/gipi-components/table/table.component.js +161 -0
- package/esm5/shared/gipi-components/table/types/sort-direction.type.js +1 -0
- package/esm5/shared/gipi-components/table/types/sort.type.js +1 -0
- package/esm5/shared/gipi-components/template/template.directive.js +34 -0
- package/esm5/shared/gipi-components/toolbar/toolbar.component.js +56 -0
- package/esm5/shared/gipi-components/top-nav/top-nav.component.js +40 -0
- package/esm5/shared/gipi-components/user-profile/user-profile.component.js +115 -0
- package/esm5/shared/material.module.js +101 -0
- package/esm5/shared/shared.module.js +340 -0
- package/esm5/shared.js +36 -0
- package/fesm2015/gipisistemas-ng-core.js +25879 -0
- package/fesm2015/gipisistemas-ng-core.js.map +1 -0
- package/fesm5/gipisistemas-ng-core.js +27905 -0
- package/fesm5/gipisistemas-ng-core.js.map +1 -0
- package/gipi-components.d.ts +97 -0
- package/gipisistemas-ng-core.d.ts +20 -0
- package/gipisistemas-ng-core.metadata.json +1 -0
- package/package.json +31 -83
- package/public_api.d.ts +3 -0
- package/shared/api/generate-id-component.d.ts +3 -0
- package/shared/api/gipi-ng-config.d.ts +18 -0
- package/shared/api/overlay-message.d.ts +14 -0
- package/shared/api/throttle.d.ts +17 -0
- package/shared/api/translation.d.ts +45 -0
- package/shared/components/button/button.component.d.ts +26 -0
- package/shared/components/card/card.component.d.ts +10 -0
- package/shared/components/checkbox/checkbox.component.d.ts +20 -0
- package/shared/components/dom/connected-overlay-scroll-handler.d.ts +9 -0
- package/shared/components/dom/dom-handler.d.ts +74 -0
- package/shared/components/icon/icon.component.d.ts +9 -0
- package/shared/components/input/input.component.d.ts +52 -0
- package/shared/components/input-currency/input-currency.component.d.ts +29 -0
- package/shared/components/input-file/input-file.component.d.ts +28 -0
- package/shared/components/loading/loading.component.d.ts +4 -0
- package/shared/components/loading-overlay/loading-overlay.component.d.ts +6 -0
- package/shared/components/overlay-panel/overlay-panel.component.d.ts +67 -0
- package/shared/components/popover/popover-ref.d.ts +17 -0
- package/shared/components/popover/popover.component.d.ts +10 -0
- package/shared/components/popover/popover.service.d.ts +23 -0
- package/shared/components/radio-group-entity/radio-group-entity.component.d.ts +19 -0
- package/shared/components/radio-group-enum/radio-group-enum.component.d.ts +30 -0
- package/shared/components/select-button/select-button.component.d.ts +35 -0
- package/shared/components/select-entity/select-entity.component.d.ts +52 -0
- package/shared/components/select-entity-paged/select-entity-paged.component.d.ts +78 -0
- package/shared/components/select-entity-paged/shared/default-options.d.ts +25 -0
- package/shared/components/select-entity-paged/shared/select-button-add/select-button-add.component.d.ts +18 -0
- package/shared/components/select-entity-paged/shared/select-button-next-batch/select-button-next-batch.component.d.ts +16 -0
- package/shared/components/select-entity-paged/shared/select-no-entries-found.directive.d.ts +11 -0
- package/shared/components/select-entity-paged/shared/select-search/select-search.component.d.ts +119 -0
- package/shared/components/select-entity-paged/shared/select-search-clear.directive.d.ts +9 -0
- package/shared/components/select-enum/select-enum.component.d.ts +29 -0
- package/shared/components/select-month-period/select-month-period.component.d.ts +20 -0
- package/shared/components/slide-toggle/slide-toggle.component.d.ts +19 -0
- package/shared/components/stepper/stepper.component.d.ts +7 -0
- package/shared/components/tab/tab.component.d.ts +14 -0
- package/shared/components/tab-group/tab-group.component.d.ts +22 -0
- package/shared/components/table/table.component.d.ts +86 -0
- package/shared/components/table-scrolled/table-scrolled.component.d.ts +31 -0
- package/shared/components/textarea/textarea.component.d.ts +35 -0
- package/shared/directives/dynamic-tab.directive.d.ts +5 -0
- package/shared/directives/generic-template.directive.d.ts +8 -0
- package/shared/directives/input-select-infinite-scroll.directive.d.ts +35 -0
- package/shared/directives/lower-case.directive.d.ts +9 -0
- package/shared/directives/phone-mask.directive.d.ts +8 -0
- package/shared/directives/space-drop.directive.d.ts +9 -0
- package/shared/directives/upper-case.directive.d.ts +9 -0
- package/shared/gipi-components/abstract-form/abstract-form.component.d.ts +21 -0
- package/shared/gipi-components/action-row/action-row.component.d.ts +5 -0
- package/shared/gipi-components/badge/badge.component.d.ts +8 -0
- package/shared/gipi-components/button/button.component.d.ts +56 -0
- package/shared/gipi-components/chips/chips.component.d.ts +37 -0
- package/shared/gipi-components/confirmation-dialog/confirmation-dialog.component.d.ts +11 -0
- package/shared/gipi-components/datepicker/date-range-picker/date-range-picker.component.d.ts +71 -0
- package/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range-selection-startegy.d.ts +11 -0
- package/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range.directive.d.ts +6 -0
- package/shared/gipi-components/datepicker/date-range-picker/shared/preset-range/preset-range.component.d.ts +40 -0
- package/shared/gipi-components/datepicker/datepicker/datepicker.component.d.ts +49 -0
- package/shared/gipi-components/datepicker/datepicker.module.d.ts +2 -0
- package/shared/gipi-components/datepicker/mat-datepicker/calendar-body.d.ts +143 -0
- package/shared/gipi-components/datepicker/mat-datepicker/calendar.d.ts +152 -0
- package/shared/gipi-components/datepicker/mat-datepicker/date-range-input-parts.d.ts +102 -0
- package/shared/gipi-components/datepicker/mat-datepicker/date-range-input.d.ts +124 -0
- package/shared/gipi-components/datepicker/mat-datepicker/date-range-picker.d.ts +21 -0
- package/shared/gipi-components/datepicker/mat-datepicker/date-range-selection-strategy.d.ts +45 -0
- package/shared/gipi-components/datepicker/mat-datepicker/date-selection-model.d.ts +106 -0
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-animations.d.ts +16 -0
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-base.d.ts +209 -0
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-errors.d.ts +9 -0
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-input-base.d.ts +136 -0
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-input.d.ts +68 -0
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-intl.d.ts +38 -0
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-toggle.d.ts +39 -0
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker.d.ts +11 -0
- package/shared/gipi-components/datepicker/mat-datepicker/month-view.d.ts +120 -0
- package/shared/gipi-components/datepicker/mat-datepicker/multi-year-view.d.ts +85 -0
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-adapter.d.ts +225 -0
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-formats.d.ts +20 -0
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-adapter.d.ts +76 -0
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-formats.d.ts +9 -0
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/platform.d.ts +33 -0
- package/shared/gipi-components/datepicker/mat-datepicker/year-view.d.ts +97 -0
- package/shared/gipi-components/dom/connected-overlay-scroll-handler.d.ts +9 -0
- package/shared/gipi-components/dom/dom-handler.d.ts +85 -0
- package/shared/gipi-components/dropdown-menu/dropdown-menu.component.d.ts +36 -0
- package/shared/gipi-components/expansion-panel/expansion-panel.component.d.ts +16 -0
- package/shared/gipi-components/file-drag-and-drop/file-drag-and-drop.component.d.ts +43 -0
- package/shared/gipi-components/file-drag-and-drop/shared/file-drag-and-drop.directive.d.ts +13 -0
- package/shared/gipi-components/footer/footer.component.d.ts +5 -0
- package/shared/gipi-components/form-field/form-field.component.d.ts +61 -0
- package/shared/gipi-components/helpful-tip/helpful-tip.component.d.ts +13 -0
- package/shared/gipi-components/infinite-scroll/infinite-scroll.directive.d.ts +27 -0
- package/shared/gipi-components/input-checkbox/input-checkbox.component.d.ts +28 -0
- package/shared/gipi-components/input-currency/input-currency.component.d.ts +48 -0
- package/shared/gipi-components/input-monthpicker/input-monthpicker.component.d.ts +89 -0
- package/shared/gipi-components/input-select/input-select.component.d.ts +120 -0
- package/shared/gipi-components/input-select-enum/input-select-enum.component.d.ts +65 -0
- package/shared/gipi-components/input-select-listbox/input-select-listbox.component.d.ts +85 -0
- package/shared/gipi-components/input-select-paged/input-search/input-search.component.d.ts +77 -0
- package/shared/gipi-components/input-select-paged/input-select-paged.component.d.ts +66 -0
- package/shared/gipi-components/input-select-radio/input-select-radio.component.d.ts +53 -0
- package/shared/gipi-components/layout-grid/col.directive.d.ts +38 -0
- package/shared/gipi-components/layout-grid/row.directive.d.ts +28 -0
- package/shared/gipi-components/layout-grid/services/breakpoint.service.d.ts +30 -0
- package/shared/gipi-components/layout-grid/services/resize.service.d.ts +17 -0
- package/shared/gipi-components/month-year-picker/calendar-month-year/calendar-month-year.component.d.ts +37 -0
- package/shared/gipi-components/month-year-picker/mont-year-picker.module.d.ts +2 -0
- package/shared/gipi-components/month-year-picker/month-year-picker.component.d.ts +104 -0
- package/shared/gipi-components/notification/notification.component.d.ts +21 -0
- package/shared/gipi-components/novelties/novelties.component.d.ts +22 -0
- package/shared/gipi-components/overlay/overlay.component.d.ts +113 -0
- package/shared/gipi-components/overlay/shared/overlay-service.d.ts +6 -0
- package/shared/gipi-components/overlay/shared/overlay_options.d.ts +50 -0
- package/shared/gipi-components/password-requeriments/password-requeriments.component.d.ts +27 -0
- package/shared/gipi-components/popover/popover.component.d.ts +133 -0
- package/shared/gipi-components/popover/shared/popover-animations.d.ts +13 -0
- package/shared/gipi-components/popover/shared/popover-errors.d.ts +14 -0
- package/shared/gipi-components/popover/shared/popover-interfaces.d.ts +43 -0
- package/shared/gipi-components/popover/shared/popover-target.d.ts +5 -0
- package/shared/gipi-components/popover/shared/popover-trigger.d.ts +140 -0
- package/shared/gipi-components/popover/shared/popover-types.d.ts +4 -0
- package/shared/gipi-components/radio-group/radio-group.component.d.ts +33 -0
- package/shared/gipi-components/range-page/range-page.component.d.ts +55 -0
- package/shared/gipi-components/range-slider/range-slider.component.d.ts +57 -0
- package/shared/gipi-components/select/select.component.d.ts +45 -0
- package/shared/gipi-components/select-button/select-button.component.d.ts +39 -0
- package/shared/gipi-components/sidebar/container/container.component.d.ts +15 -0
- package/shared/gipi-components/sidebar/sidenav/sidenav.component.d.ts +40 -0
- package/shared/gipi-components/stepper/stepper.component.d.ts +8 -0
- package/shared/gipi-components/table/components/table-body/table-body.component.d.ts +36 -0
- package/shared/gipi-components/table/components/table-footer/table-footer.component.d.ts +5 -0
- package/shared/gipi-components/table/components/table-header/table-header.component.d.ts +28 -0
- package/shared/gipi-components/table/components/table-pagination/shared/paginate.pipe.d.ts +40 -0
- package/shared/gipi-components/table/components/table-pagination/shared/pagination-controls.directive.d.ts +81 -0
- package/shared/gipi-components/table/components/table-pagination/shared/pagination-instance.d.ts +24 -0
- package/shared/gipi-components/table/components/table-pagination/shared/pagination.service.d.ts +45 -0
- package/shared/gipi-components/table/components/table-pagination/table-pagination.component.d.ts +21 -0
- package/shared/gipi-components/table/components/table-progress-bar/table-progress-bar.component.d.ts +5 -0
- package/shared/gipi-components/table/models/pipe-transform.model.d.ts +3 -0
- package/shared/gipi-components/table/models/sort.model.d.ts +10 -0
- package/shared/gipi-components/table/models/sorted-column.model.d.ts +6 -0
- package/shared/gipi-components/table/models/table-column-builder.model.d.ts +52 -0
- package/shared/gipi-components/table/models/table-column.model.d.ts +74 -0
- package/shared/gipi-components/table/table.component.d.ts +37 -0
- package/shared/gipi-components/table/types/sort-direction.type.d.ts +1 -0
- package/shared/gipi-components/table/types/sort.type.d.ts +1 -0
- package/shared/gipi-components/template/template.directive.d.ts +8 -0
- package/shared/gipi-components/toolbar/toolbar.component.d.ts +11 -0
- package/shared/gipi-components/top-nav/top-nav.component.d.ts +8 -0
- package/shared/gipi-components/user-profile/user-profile.component.d.ts +24 -0
- package/shared/material.module.d.ts +2 -0
- package/shared/shared.module.d.ts +6 -0
- package/shared.d.ts +35 -0
- package/README.md +0 -38
- package/_ITSS-NG-CI-CD.yml +0 -53
- package/_ITSS-NG-CI-PR.yml +0 -53
- package/angular-cli.json +0 -42
- package/azure-pipelines.yml +0 -35
- package/projects/itss-ng/ng-package.json +0 -7
- package/projects/itss-ng/package.json +0 -25
@@ -0,0 +1,185 @@
|
|
1
|
+
var GIPIDropdownMenuComponent_1;
|
2
|
+
import { __decorate, __metadata } from "tslib";
|
3
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostListener, Input, OnDestroy, OnInit, Output, ViewChild, forwardRef } from '@angular/core';
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
|
+
import { GIPIPopoverTrigger } from '../popover/shared/popover-trigger';
|
6
|
+
let nextUniqueId = 0;
|
7
|
+
let GIPIDropdownMenuComponent = GIPIDropdownMenuComponent_1 = class GIPIDropdownMenuComponent {
|
8
|
+
constructor(_changeDetectorRef, elementRef) {
|
9
|
+
this._changeDetectorRef = _changeDetectorRef;
|
10
|
+
this.elementRef = elementRef;
|
11
|
+
this._name = `gipi-dropdown-menu-${nextUniqueId++}`;
|
12
|
+
this.id = this._name;
|
13
|
+
this.name = this._name;
|
14
|
+
this.label = '';
|
15
|
+
this.ariaLabel = '';
|
16
|
+
this.placeholder = '';
|
17
|
+
this.disabled = false;
|
18
|
+
this.required = false;
|
19
|
+
this.showTrigger = true;
|
20
|
+
this._trigger = 0;
|
21
|
+
this.onKeydown = new EventEmitter();
|
22
|
+
this.onFocus = new EventEmitter();
|
23
|
+
this.onBlur = new EventEmitter();
|
24
|
+
this.onClick = new EventEmitter();
|
25
|
+
this.onOpenPopover = new EventEmitter();
|
26
|
+
this.onClosePopover = new EventEmitter();
|
27
|
+
}
|
28
|
+
set trigger(value) {
|
29
|
+
this._trigger = value;
|
30
|
+
}
|
31
|
+
get trigger() {
|
32
|
+
return this._trigger;
|
33
|
+
}
|
34
|
+
ngOnInit() { }
|
35
|
+
ngOnDestroy() {
|
36
|
+
if (this.popoverTrigger) {
|
37
|
+
this.popoverTrigger.destroyPopover();
|
38
|
+
}
|
39
|
+
}
|
40
|
+
onInputKeydown(event) {
|
41
|
+
if (!this.disabled) {
|
42
|
+
this.onKeydown.emit(event);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
onInputFocus(event) {
|
46
|
+
if (!this.disabled) {
|
47
|
+
this.onFocus.emit(event);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
onInputBlur(event) {
|
51
|
+
if (!this.disabled) {
|
52
|
+
this.onBlur.emit(event);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
onInputClick(event) {
|
56
|
+
if (!this.disabled) {
|
57
|
+
this.onClick.emit(event);
|
58
|
+
event.stopPropagation();
|
59
|
+
}
|
60
|
+
}
|
61
|
+
togglePopover() {
|
62
|
+
if (!this.disabled) {
|
63
|
+
this.popoverTrigger.togglePopover();
|
64
|
+
}
|
65
|
+
}
|
66
|
+
showPopover() {
|
67
|
+
if (this.disabled) {
|
68
|
+
return;
|
69
|
+
}
|
70
|
+
else {
|
71
|
+
this.popoverTrigger.openPopover();
|
72
|
+
}
|
73
|
+
}
|
74
|
+
closePopover() {
|
75
|
+
if (this.disabled) {
|
76
|
+
return;
|
77
|
+
}
|
78
|
+
else {
|
79
|
+
this.popoverTrigger.closePopover();
|
80
|
+
}
|
81
|
+
}
|
82
|
+
onResize(event) {
|
83
|
+
if (this.popoverTrigger) {
|
84
|
+
this.popoverTrigger.closePopover();
|
85
|
+
}
|
86
|
+
}
|
87
|
+
};
|
88
|
+
GIPIDropdownMenuComponent.ctorParameters = () => [
|
89
|
+
{ type: ChangeDetectorRef },
|
90
|
+
{ type: ElementRef }
|
91
|
+
];
|
92
|
+
__decorate([
|
93
|
+
ViewChild(GIPIPopoverTrigger, { static: false }),
|
94
|
+
__metadata("design:type", GIPIPopoverTrigger)
|
95
|
+
], GIPIDropdownMenuComponent.prototype, "popoverTrigger", void 0);
|
96
|
+
__decorate([
|
97
|
+
Input(),
|
98
|
+
__metadata("design:type", Object)
|
99
|
+
], GIPIDropdownMenuComponent.prototype, "id", void 0);
|
100
|
+
__decorate([
|
101
|
+
Input(),
|
102
|
+
__metadata("design:type", String)
|
103
|
+
], GIPIDropdownMenuComponent.prototype, "name", void 0);
|
104
|
+
__decorate([
|
105
|
+
Input(),
|
106
|
+
__metadata("design:type", String)
|
107
|
+
], GIPIDropdownMenuComponent.prototype, "label", void 0);
|
108
|
+
__decorate([
|
109
|
+
Input(),
|
110
|
+
__metadata("design:type", String)
|
111
|
+
], GIPIDropdownMenuComponent.prototype, "ariaLabel", void 0);
|
112
|
+
__decorate([
|
113
|
+
Input(),
|
114
|
+
__metadata("design:type", String)
|
115
|
+
], GIPIDropdownMenuComponent.prototype, "placeholder", void 0);
|
116
|
+
__decorate([
|
117
|
+
Input(),
|
118
|
+
__metadata("design:type", Boolean)
|
119
|
+
], GIPIDropdownMenuComponent.prototype, "disabled", void 0);
|
120
|
+
__decorate([
|
121
|
+
Input(),
|
122
|
+
__metadata("design:type", Boolean)
|
123
|
+
], GIPIDropdownMenuComponent.prototype, "required", void 0);
|
124
|
+
__decorate([
|
125
|
+
Input(),
|
126
|
+
__metadata("design:type", Boolean)
|
127
|
+
], GIPIDropdownMenuComponent.prototype, "showTrigger", void 0);
|
128
|
+
__decorate([
|
129
|
+
Input(),
|
130
|
+
__metadata("design:type", Number),
|
131
|
+
__metadata("design:paramtypes", [Number])
|
132
|
+
], GIPIDropdownMenuComponent.prototype, "trigger", null);
|
133
|
+
__decorate([
|
134
|
+
Output(),
|
135
|
+
__metadata("design:type", EventEmitter)
|
136
|
+
], GIPIDropdownMenuComponent.prototype, "onKeydown", void 0);
|
137
|
+
__decorate([
|
138
|
+
Output(),
|
139
|
+
__metadata("design:type", EventEmitter)
|
140
|
+
], GIPIDropdownMenuComponent.prototype, "onFocus", void 0);
|
141
|
+
__decorate([
|
142
|
+
Output(),
|
143
|
+
__metadata("design:type", EventEmitter)
|
144
|
+
], GIPIDropdownMenuComponent.prototype, "onBlur", void 0);
|
145
|
+
__decorate([
|
146
|
+
Output(),
|
147
|
+
__metadata("design:type", EventEmitter)
|
148
|
+
], GIPIDropdownMenuComponent.prototype, "onClick", void 0);
|
149
|
+
__decorate([
|
150
|
+
Output(),
|
151
|
+
__metadata("design:type", EventEmitter)
|
152
|
+
], GIPIDropdownMenuComponent.prototype, "onOpenPopover", void 0);
|
153
|
+
__decorate([
|
154
|
+
Output(),
|
155
|
+
__metadata("design:type", EventEmitter)
|
156
|
+
], GIPIDropdownMenuComponent.prototype, "onClosePopover", void 0);
|
157
|
+
__decorate([
|
158
|
+
HostListener('window:resize', ['$event']),
|
159
|
+
__metadata("design:type", Function),
|
160
|
+
__metadata("design:paramtypes", [UIEvent]),
|
161
|
+
__metadata("design:returntype", void 0)
|
162
|
+
], GIPIDropdownMenuComponent.prototype, "onResize", null);
|
163
|
+
GIPIDropdownMenuComponent = GIPIDropdownMenuComponent_1 = __decorate([
|
164
|
+
Component({
|
165
|
+
selector: `gipi-dropdown-menu`,
|
166
|
+
exportAs: 'gipiDropdownMenu',
|
167
|
+
template: "<label class=\"dropdown-menu-container\"\n [attr.for]=\"id\">\n <span class=\"dropdown-menu-label\"\n *ngIf=\"label\">\n {{ label }}\n <span *ngIf=\"required && label\"> * </span>\n </span>\n\n <div class=\"dropdown-menu-content\"\n (click)=\"onInputClick($event)\"\n #popoverTrigger=\"popoverTrigger\"\n [popoverTriggerFor]=\"dropdownMenuPopover\"\n [popoverTriggerOn]=\"'click'\"\n [popoverBackdropCloseOnClick]=\"true\"\n (opened)=\"onOpenPopover.emit()\"\n (closed)=\"onClosePopover.emit()\">\n\n <input class=\"dropdown-menu-input\"\n autocomplete=\"off\"\n type=\"text\"\n readonly=\"true\"\n [attr.id]=\"id\"\n [attr.aria-label]=\"ariaLabel\"\n [name]=\"name\"\n [required]=\"required\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (click)=\"togglePopover(); onInputClick($event)\">\n\n <div class=\"dropdown-menu-suffix\">\n <div class=\"dropdown-menu-trigger\"\n *ngIf=\"showTrigger && (trigger && trigger > 1)\">\n + {{ trigger >= 99 ? 99 : trigger }}\n </div>\n\n <mat-icon class=\"dropdown-menu-icon\">\n keyboard_arrow_down\n </mat-icon>\n </div>\n </div>\n</label>\n\n<gipi-popover #dropdownMenuPopover=\"gipiPopover\"\n [popoverOverlapTrigger]=\"false\"\n [popoverCloseOnClick]=\"false\"\n [popoverArrowWidth]=\"0\"\n [popoverOffsetY]=\"3\">\n <div class=\"btn-popover-content\">\n <ng-content> </ng-content>\n </div>\n</gipi-popover>",
|
168
|
+
providers: [
|
169
|
+
{
|
170
|
+
provide: NG_VALUE_ACCESSOR,
|
171
|
+
useExisting: forwardRef(() => GIPIDropdownMenuComponent_1),
|
172
|
+
multi: true
|
173
|
+
}
|
174
|
+
],
|
175
|
+
host: {
|
176
|
+
'class': 'gipi-dropdown-menu',
|
177
|
+
},
|
178
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
179
|
+
styles: [".dropdown-menu-container{display:flex;flex-direction:column;gap:12px;width:100%}.dropdown-menu-container .dropdown-menu-label{color:#131313;font-size:1.4rem;line-height:100%}.dropdown-menu-container .dropdown-menu-label>span{color:#d14014;font-size:inherit;line-height:inherit}.dropdown-menu-container .dropdown-menu-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;gap:12px;width:100%;max-height:4rem;border-radius:5px;cursor:pointer;background-color:#fff;border:1px solid rgba(0,0,0,.12);color:#696969;transition:.2s}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:active),.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:hover{border-color:#bfbfbf!important;background-color:#f5f5f5}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled){background-color:#e0e1e2!important;border-color:#e0e1e2!important;color:#d1d2d4!important;box-shadow:none!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-input,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-button{cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-input{cursor:pointer;height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix{display:flex;flex-direction:row;align-items:center;gap:16px}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;border-radius:40px;border:1px solid transparent;color:#131313;background-color:#f0f0f0;font-size:1.2rem;line-height:1.4rem}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.dropdown-menu-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}.btn-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}"]
|
180
|
+
}),
|
181
|
+
__metadata("design:paramtypes", [ChangeDetectorRef,
|
182
|
+
ElementRef])
|
183
|
+
], GIPIDropdownMenuComponent);
|
184
|
+
export { GIPIDropdownMenuComponent };
|
185
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tbWVudS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZ2lwaXNpc3RlbWFzL25nLWNvcmUvIiwic291cmNlcyI6WyJzaGFyZWQvZ2lwaS1jb21wb25lbnRzL2Ryb3Bkb3duLW1lbnUvZHJvcGRvd24tbWVudS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUF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VBvcG92ZXIoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLmRpc2FibGVkKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLnBvcG92ZXJUcmlnZ2VyLmNsb3NlUG9wb3ZlcigpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgQEhvc3RMaXN0ZW5lcignd2luZG93OnJlc2l6ZScsIFsnJGV2ZW50J10pXG4gICAgb25SZXNpemUoZXZlbnQ6IFVJRXZlbnQpOiB2b2lkIHtcbiAgICAgICAgaWYgKHRoaXMucG9wb3ZlclRyaWdnZXIpIHtcbiAgICAgICAgICAgIHRoaXMucG9wb3ZlclRyaWdnZXIuY2xvc2VQb3BvdmVyKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbn1cbiJdfQ==
|
@@ -0,0 +1,81 @@
|
|
1
|
+
var GIPIExpansionPanelComponent_1;
|
2
|
+
import { __decorate, __metadata } from "tslib";
|
3
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, OnInit, Output, forwardRef } from '@angular/core';
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
|
+
let GIPIExpansionPanelComponent = GIPIExpansionPanelComponent_1 = class GIPIExpansionPanelComponent {
|
6
|
+
constructor(elementRef, _changeDetectorRef) {
|
7
|
+
this.elementRef = elementRef;
|
8
|
+
this._changeDetectorRef = _changeDetectorRef;
|
9
|
+
this.isExpanded = false;
|
10
|
+
this.startExpanded = false;
|
11
|
+
this.disabled = false;
|
12
|
+
this.expanded = new EventEmitter();
|
13
|
+
}
|
14
|
+
ngOnInit() {
|
15
|
+
if (this.startExpanded) {
|
16
|
+
this.isExpanded = this.startExpanded;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
emitExpanded(value) {
|
20
|
+
this.expanded.emit(value);
|
21
|
+
}
|
22
|
+
};
|
23
|
+
GIPIExpansionPanelComponent.ctorParameters = () => [
|
24
|
+
{ type: ElementRef },
|
25
|
+
{ type: ChangeDetectorRef }
|
26
|
+
];
|
27
|
+
__decorate([
|
28
|
+
Input(),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], GIPIExpansionPanelComponent.prototype, "icon", void 0);
|
31
|
+
__decorate([
|
32
|
+
Input(),
|
33
|
+
__metadata("design:type", String)
|
34
|
+
], GIPIExpansionPanelComponent.prototype, "svgIcon", void 0);
|
35
|
+
__decorate([
|
36
|
+
Input(),
|
37
|
+
__metadata("design:type", Object)
|
38
|
+
], GIPIExpansionPanelComponent.prototype, "iconSize", void 0);
|
39
|
+
__decorate([
|
40
|
+
Input(),
|
41
|
+
__metadata("design:type", String)
|
42
|
+
], GIPIExpansionPanelComponent.prototype, "panelTitle", void 0);
|
43
|
+
__decorate([
|
44
|
+
Input(),
|
45
|
+
__metadata("design:type", Boolean)
|
46
|
+
], GIPIExpansionPanelComponent.prototype, "isExpanded", void 0);
|
47
|
+
__decorate([
|
48
|
+
Input(),
|
49
|
+
__metadata("design:type", Boolean)
|
50
|
+
], GIPIExpansionPanelComponent.prototype, "startExpanded", void 0);
|
51
|
+
__decorate([
|
52
|
+
Input(),
|
53
|
+
__metadata("design:type", Boolean)
|
54
|
+
], GIPIExpansionPanelComponent.prototype, "disabled", void 0);
|
55
|
+
__decorate([
|
56
|
+
Output(),
|
57
|
+
__metadata("design:type", EventEmitter)
|
58
|
+
], GIPIExpansionPanelComponent.prototype, "expanded", void 0);
|
59
|
+
GIPIExpansionPanelComponent = GIPIExpansionPanelComponent_1 = __decorate([
|
60
|
+
Component({
|
61
|
+
selector: `gipi-expansion-panel`,
|
62
|
+
exportAs: 'gipiExpansionPanel',
|
63
|
+
template: "<mat-accordion #accordion\n fxFlex>\n <mat-expansion-panel #expansionPanel\n togglePosition=\"before\"\n [expanded]=\"isExpanded\"\n (afterExpand)=\"emitExpanded(true)\"\n (afterCollapse)=\"emitExpanded(false)\"\n [disabled]=\"disabled\">\n <mat-expansion-panel-header #expansionPanelHeader>\n <mat-panel-title>\n <span *ngIf=\"panelTitle\">\n {{ panelTitle }}\n </span>\n <div *ngIf=\"icon || svgIcon\">\n <itss-icon *ngIf=\"icon\"\n [icon]=\"icon\"\n [iconSize]=\"iconSize\">\n </itss-icon>\n <itss-icon *ngIf=\"svgIcon\"\n [svgIcon]=\"svgIcon\"\n [iconSize]=\"iconSize\">\n </itss-icon>\n </div>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <ng-content> </ng-content>\n </mat-expansion-panel>\n</mat-accordion>",
|
64
|
+
providers: [
|
65
|
+
{
|
66
|
+
provide: NG_VALUE_ACCESSOR,
|
67
|
+
useExisting: forwardRef(() => GIPIExpansionPanelComponent_1),
|
68
|
+
multi: true
|
69
|
+
}
|
70
|
+
],
|
71
|
+
host: {
|
72
|
+
'class': 'gipi-expansion-panel',
|
73
|
+
},
|
74
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
75
|
+
styles: ["::ng-deep .mat-expansion-panel:not([class*=mat-elevation-z]){border-radius:3px!important;box-shadow:none!important}::ng-deep .mat-expansion-panel-header{color:#696969!important;padding:0 24px!important;border:1px solid #e0e1e2!important;background:#f5f5f6!important;border-radius:3px!important;transition:box-shadow .2s!important;height:48px!important}::ng-deep .mat-expansion-panel-header-title{color:#696969!important;font-weight:700!important;margin:0!important}::ng-deep .mat-expansion-panel-header-title>span{width:100%!important;-ms-grid-row-align:center!important;align-self:center!important;line-height:15px!important}::ng-deep .mat-expansion-panel-indicator{margin:-8px 16px 0 0!important;align-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important}::ng-deep .mat-expansion-indicator::before{margin-top:-5px!important}::ng-deep .mat-expansion-indicator::after{margin-top:-5px!important}::ng-deep .mat-expansion-panel-body{border:1px solid #e0e1e2!important;border-top:none!important;padding:1.6rem!important}"]
|
76
|
+
}),
|
77
|
+
__metadata("design:paramtypes", [ElementRef,
|
78
|
+
ChangeDetectorRef])
|
79
|
+
], GIPIExpansionPanelComponent);
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HJpbmcgfCBudW1iZXI7XG5cbiAgICBASW5wdXQoKSBwYW5lbFRpdGxlOiBzdHJpbmc7XG5cbiAgICBASW5wdXQoKSBpc0V4cGFuZGVkOiBib29sZWFuID0gZmFsc2U7XG5cbiAgICBASW5wdXQoKSBzdGFydEV4cGFuZGVkOiBib29sZWFuID0gZmFsc2U7XG5cbiAgICBASW5wdXQoKSBkaXNhYmxlZDogYm9vbGVhbiA9IGZhbHNlO1xuXG4gICAgQE91dHB1dCgpIGV4cGFuZGVkOiBFdmVudEVtaXR0ZXI8Ym9vbGVhbj4gPSBuZXcgRXZlbnRFbWl0dGVyPGJvb2xlYW4+KCk7XG5cbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgcHVibGljIGVsZW1lbnRSZWY6IEVsZW1lbnRSZWYsXG4gICAgICAgIHByaXZhdGUgX2NoYW5nZURldGVjdG9yUmVmOiBDaGFuZ2VEZXRlY3RvclJlZlxuICAgICkgeyB9XG5cbiAgICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICAgICAgaWYgKHRoaXMuc3RhcnRFeHBhbmRlZCkge1xuICAgICAgICAgICAgdGhpcy5pc0V4cGFuZGVkID0gdGhpcy5zdGFydEV4cGFuZGVkO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZW1pdEV4cGFuZGVkKHZhbHVlOiBib29sZWFuKTogdm9pZCB7XG4gICAgICAgIHRoaXMuZXhwYW5kZWQuZW1pdCh2YWx1ZSk7XG4gICAgfVxuXG59XG5cblxuIl19
|
@@ -0,0 +1,240 @@
|
|
1
|
+
var GIPIFileDragAndDropComponent_1;
|
2
|
+
import { __decorate, __metadata } from "tslib";
|
3
|
+
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, forwardRef, Input, Output, ViewChild } from '@angular/core';
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
|
+
import { ConfirmationService } from '../../../core/services/confirmation.service';
|
6
|
+
import { MessageService } from '../../../core/services/message.service';
|
7
|
+
import { ArrayUtil } from '../../../core/utils/array.util';
|
8
|
+
import { StringUtil } from '../../../core/utils/string.util';
|
9
|
+
let GIPIFileDragAndDropComponent = GIPIFileDragAndDropComponent_1 = class GIPIFileDragAndDropComponent {
|
10
|
+
constructor(_messageService, _confirmationService) {
|
11
|
+
this._messageService = _messageService;
|
12
|
+
this._confirmationService = _confirmationService;
|
13
|
+
this.files = [];
|
14
|
+
this.iconSize = 0;
|
15
|
+
this.iconSizeFile = 0;
|
16
|
+
this.multiple = false;
|
17
|
+
this.verifyHasAdded = false;
|
18
|
+
this.legendFieldset = '';
|
19
|
+
this.listFileVisible = false;
|
20
|
+
this.removingFiles = false;
|
21
|
+
this.fileChange = new EventEmitter();
|
22
|
+
this.onChange = () => { };
|
23
|
+
this.onTouch = () => { };
|
24
|
+
}
|
25
|
+
ngOnInit() { }
|
26
|
+
registerOnChange(fn) {
|
27
|
+
this.onChange = fn;
|
28
|
+
}
|
29
|
+
registerOnTouched(fn) {
|
30
|
+
this.onTouch = fn;
|
31
|
+
}
|
32
|
+
writeValue(value) {
|
33
|
+
this.files = value;
|
34
|
+
}
|
35
|
+
onFileChange(pFileList) {
|
36
|
+
if (this._validateCountFiles(pFileList) && this._validateExtensionFile(pFileList) && this._validateHasAdded(pFileList)) {
|
37
|
+
this.files = Object.keys(pFileList).map(key => pFileList[key]);
|
38
|
+
this.fileChange.emit(this.files);
|
39
|
+
}
|
40
|
+
this._elementRef.nativeElement.value = '';
|
41
|
+
}
|
42
|
+
onDeleteFile(file) {
|
43
|
+
let list = this.files;
|
44
|
+
this.files = [];
|
45
|
+
list = this.files.filter((fileUploaded) => fileUploaded.name !== file.name);
|
46
|
+
this.files = list;
|
47
|
+
this.fileChange.emit(this.files);
|
48
|
+
this._elementRef.nativeElement.value = '';
|
49
|
+
}
|
50
|
+
onClearInputFile(emitFileChange) {
|
51
|
+
this._elementRef.nativeElement.value = '';
|
52
|
+
this.files = [];
|
53
|
+
if (emitFileChange) {
|
54
|
+
this.fileChange.emit(this.files);
|
55
|
+
}
|
56
|
+
return ((this.files.length <= 0) && StringUtil.isEmpty(this._elementRef.nativeElement.value));
|
57
|
+
}
|
58
|
+
openConfirmDialogRemoveFile(file, index) {
|
59
|
+
try {
|
60
|
+
this._confirmationService.confirm({
|
61
|
+
title: 'Confirmação',
|
62
|
+
message: `Deseja realmente remover o arquivo ${file.name} da lista?`,
|
63
|
+
accept: () => {
|
64
|
+
const list = this.files;
|
65
|
+
list.splice(index, 1);
|
66
|
+
this.files = [];
|
67
|
+
this.files = list;
|
68
|
+
},
|
69
|
+
cancel: () => { }
|
70
|
+
});
|
71
|
+
}
|
72
|
+
catch (e) {
|
73
|
+
this.addErrorMessage(e);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
_validateCountFiles(pFileList) {
|
77
|
+
if (!this.multiple && pFileList.length > 1) {
|
78
|
+
this.addErrorMessage('Não é possível selecionar mais de um arquivo por vez');
|
79
|
+
return false;
|
80
|
+
}
|
81
|
+
return true;
|
82
|
+
}
|
83
|
+
_validateHasAdded(pFileList) {
|
84
|
+
if ((!this.verifyHasAdded) || (ArrayUtil.isEmpty(this.files))) {
|
85
|
+
return true;
|
86
|
+
}
|
87
|
+
let valid = true;
|
88
|
+
for (let i = 0; i < pFileList.length; i++) {
|
89
|
+
const existInListFile = this.files.filter(f => f.name.toUpperCase() === pFileList[i].name.toUpperCase()).length > 0;
|
90
|
+
if (existInListFile) {
|
91
|
+
this.addErrorMessage(`O arquivo ${pFileList[i].name} já foi adicionado`);
|
92
|
+
valid = false;
|
93
|
+
break;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
return valid;
|
97
|
+
}
|
98
|
+
_validateExtensionFile(pFileList) {
|
99
|
+
// Verifica se não há extensões especificadas
|
100
|
+
if (!this.onlyExtensions || this.onlyExtensions.length === 0) {
|
101
|
+
return true; // Se não há extensões especificadas, todos os arquivos são considerados válidos
|
102
|
+
}
|
103
|
+
const specialExtensions = this.onlyExtensions.filter(ext => ext.includes('*')).map(ext => ext.slice(0, ext.indexOf('*')));
|
104
|
+
for (let i = 0; i < pFileList.length; i++) {
|
105
|
+
const fileName = pFileList[i].name;
|
106
|
+
const fileExtension = fileName.substring(fileName.lastIndexOf('.')).toLowerCase();
|
107
|
+
// Verifica se a extensão está na lista de extensões permitidas
|
108
|
+
let isValid = this.onlyExtensions.includes(fileExtension);
|
109
|
+
// Se a extensão não estiver na lista e houver extensões especiais
|
110
|
+
if (!isValid && specialExtensions.length > 0) {
|
111
|
+
isValid = specialExtensions.some(specExt => fileExtension.startsWith(specExt));
|
112
|
+
}
|
113
|
+
// Se não for válido, adiciona mensagem de erro e retorna falso imediatamente
|
114
|
+
if (!isValid) {
|
115
|
+
this.addErrorMessage(`Informe somente arquivos com extensão ${this.onlyExtensions.join(', ')}`);
|
116
|
+
return false;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
return true; // Se todas as extensões forem válidas, retorna true
|
120
|
+
}
|
121
|
+
addSuccessMessage(message) {
|
122
|
+
this._messageService.add({
|
123
|
+
icon: 'check_circle',
|
124
|
+
title: 'Sucesso',
|
125
|
+
message: message,
|
126
|
+
type: 'success'
|
127
|
+
});
|
128
|
+
}
|
129
|
+
addErrorMessage(message) {
|
130
|
+
this._messageService.add({
|
131
|
+
icon: 'cancel',
|
132
|
+
title: 'Ocorreu um erro',
|
133
|
+
message: message,
|
134
|
+
type: 'error'
|
135
|
+
});
|
136
|
+
}
|
137
|
+
};
|
138
|
+
GIPIFileDragAndDropComponent.ctorParameters = () => [
|
139
|
+
{ type: MessageService },
|
140
|
+
{ type: ConfirmationService }
|
141
|
+
];
|
142
|
+
__decorate([
|
143
|
+
ViewChild('inputFile', { static: false, read: ElementRef }),
|
144
|
+
__metadata("design:type", ElementRef)
|
145
|
+
], GIPIFileDragAndDropComponent.prototype, "_elementRef", void 0);
|
146
|
+
__decorate([
|
147
|
+
Input(),
|
148
|
+
__metadata("design:type", Array)
|
149
|
+
], GIPIFileDragAndDropComponent.prototype, "files", void 0);
|
150
|
+
__decorate([
|
151
|
+
Input(),
|
152
|
+
__metadata("design:type", String)
|
153
|
+
], GIPIFileDragAndDropComponent.prototype, "color", void 0);
|
154
|
+
__decorate([
|
155
|
+
Input(),
|
156
|
+
__metadata("design:type", String)
|
157
|
+
], GIPIFileDragAndDropComponent.prototype, "icon", void 0);
|
158
|
+
__decorate([
|
159
|
+
Input(),
|
160
|
+
__metadata("design:type", String)
|
161
|
+
], GIPIFileDragAndDropComponent.prototype, "iconFile", void 0);
|
162
|
+
__decorate([
|
163
|
+
Input(),
|
164
|
+
__metadata("design:type", String)
|
165
|
+
], GIPIFileDragAndDropComponent.prototype, "iconDeleteFile", void 0);
|
166
|
+
__decorate([
|
167
|
+
Input(),
|
168
|
+
__metadata("design:type", String)
|
169
|
+
], GIPIFileDragAndDropComponent.prototype, "svgIcon", void 0);
|
170
|
+
__decorate([
|
171
|
+
Input(),
|
172
|
+
__metadata("design:type", String)
|
173
|
+
], GIPIFileDragAndDropComponent.prototype, "svgIconFile", void 0);
|
174
|
+
__decorate([
|
175
|
+
Input(),
|
176
|
+
__metadata("design:type", String)
|
177
|
+
], GIPIFileDragAndDropComponent.prototype, "svgIconDeleteFile", void 0);
|
178
|
+
__decorate([
|
179
|
+
Input(),
|
180
|
+
__metadata("design:type", Number)
|
181
|
+
], GIPIFileDragAndDropComponent.prototype, "iconSize", void 0);
|
182
|
+
__decorate([
|
183
|
+
Input(),
|
184
|
+
__metadata("design:type", Number)
|
185
|
+
], GIPIFileDragAndDropComponent.prototype, "iconSizeFile", void 0);
|
186
|
+
__decorate([
|
187
|
+
Input(),
|
188
|
+
__metadata("design:type", Boolean)
|
189
|
+
], GIPIFileDragAndDropComponent.prototype, "multiple", void 0);
|
190
|
+
__decorate([
|
191
|
+
Input(),
|
192
|
+
__metadata("design:type", Boolean)
|
193
|
+
], GIPIFileDragAndDropComponent.prototype, "disabled", void 0);
|
194
|
+
__decorate([
|
195
|
+
Input(),
|
196
|
+
__metadata("design:type", Array)
|
197
|
+
], GIPIFileDragAndDropComponent.prototype, "onlyExtensions", void 0);
|
198
|
+
__decorate([
|
199
|
+
Input(),
|
200
|
+
__metadata("design:type", Boolean)
|
201
|
+
], GIPIFileDragAndDropComponent.prototype, "verifyHasAdded", void 0);
|
202
|
+
__decorate([
|
203
|
+
Input(),
|
204
|
+
__metadata("design:type", String)
|
205
|
+
], GIPIFileDragAndDropComponent.prototype, "legendFieldset", void 0);
|
206
|
+
__decorate([
|
207
|
+
Input(),
|
208
|
+
__metadata("design:type", Boolean)
|
209
|
+
], GIPIFileDragAndDropComponent.prototype, "listFileVisible", void 0);
|
210
|
+
__decorate([
|
211
|
+
Input(),
|
212
|
+
__metadata("design:type", Boolean)
|
213
|
+
], GIPIFileDragAndDropComponent.prototype, "removingFiles", void 0);
|
214
|
+
__decorate([
|
215
|
+
Output(),
|
216
|
+
__metadata("design:type", EventEmitter)
|
217
|
+
], GIPIFileDragAndDropComponent.prototype, "fileChange", void 0);
|
218
|
+
GIPIFileDragAndDropComponent = GIPIFileDragAndDropComponent_1 = __decorate([
|
219
|
+
Component({
|
220
|
+
selector: `gipi-file-drag-and-drop`,
|
221
|
+
exportAs: 'gipiFileDragAndDrop',
|
222
|
+
template: "<div>\n <div class=\"dropzone\"\n fileDragAndDrop\n [disabled]=\"disabled\"\n (filesChangeEmiter)=\"onFileChange($event)\"\n [class.dropzone-disabled]=\"disabled\">\n <div class=\"text-wrapper\">\n <div class=\"centered\">\n <mat-icon *ngIf=\"icon\"\n [style.color]=\"color\"\n [style.width.px]=\"iconSize\"\n [style.height.px]=\"iconSize\"\n matSuffix>\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf=\"svgIcon\"\n [svgIcon]=\"svgIcon\"\n [style.color]=\"color\"\n [style.width.px]=\"iconSize\"\n [style.height.px]=\"iconSize\"\n matSuffix>\n </mat-icon>\n\n <h3> Arraste e solte o arquivo aqui </h3>\n <h3> ou </h3>\n\n <div class=\"select-file\"\n [class.select-file-disabled]=\"disabled\">\n <input #inputFile\n type=\"file\"\n [accept]=\"onlyExtensions.join(',')\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n (change)=\"onFileChange($event.target.files)\">\n <label>Procure o arquivo</label>\n </div>\n </div>\n </div>\n </div>\n\n <fieldset class=\"list-files\"\n *ngIf=\"listFileVisible\">\n <legend>\n {{ legendFieldset.length <= 0\n ? 'Arquivos selecionados'\n :\n legendFieldset\n }}\n </legend>\n\n <div class=\"file-item\"\n [class.file-item-disabled]=\"disabled\"\n *ngFor=\"let file of files; let ind = index\"\n (click)=\"removingFiles ? openConfirmDialogRemoveFile(file, ind) : null\">\n\n <div class=\"file-item-icon\"\n *ngIf=\"removingFiles\">\n <itss-icon class=\"not-hover\"\n [icon]=\"iconFile\"\n [svgIcon]=\"svgIconFile\"\n [iconSize]=\"iconSizeFile\"></itss-icon>\n <itss-icon class=\"hovering\"\n [icon]=\"iconDeleteFile\"\n [svgIcon]=\"svgIconDeleteFile\"\n [iconSize]=\"iconSizeFile\"></itss-icon>\n </div>\n\n <div class=\"file-item-icon\"\n *ngIf=\"!removingFiles\">\n <itss-icon [icon]=\"iconFile\"\n [svgIcon]=\"svgIconFile\"\n [iconSize]=\"iconSizeFile\"></itss-icon>\n </div>\n\n <div class=\"file-item-text\">\n <span *ngIf=\"files.length > 0\">\n {{ (file.name.length > 20) ? (file.name | slice:0:20) + '...' : file.name }}\n </span>\n <span *ngIf=\"(files.length <= 0) \"></span>\n </div>\n </div>\n </fieldset>\n</div>\n",
|
223
|
+
providers: [
|
224
|
+
{
|
225
|
+
provide: NG_VALUE_ACCESSOR,
|
226
|
+
useExisting: forwardRef(() => GIPIFileDragAndDropComponent_1),
|
227
|
+
multi: true
|
228
|
+
}
|
229
|
+
],
|
230
|
+
host: {
|
231
|
+
'class': 'gipi-file-drag-and-drop',
|
232
|
+
},
|
233
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
234
|
+
styles: [":host ::ng-deep .dropzone{width:100%;height:100%;min-height:25rem;display:flex;align-items:center;justify-content:center;position:relative}:host ::ng-deep .dropzone .text-wrapper{display:flex;align-items:center;justify-content:center;height:100%}:host ::ng-deep .dropzone .centered{display:flex;align-items:center;gap:8px;justify-content:center;flex-direction:column}:host ::ng-deep .dropzone .centered>mat-icon{color:#595959;fill:#595959}:host ::ng-deep .dropzone .centered>mat-icon svg path{color:#595959!important;fill:#595959!important}:host ::ng-deep .dropzone .centered>h3{font-size:1.8rem;font-weight:700;color:#595959}:host ::ng-deep .dropzone .centered .select-file{padding:12px 30px;text-align:center;background-color:#e0313e;color:#fff;border-radius:30px;font-size:1.4rem;transition:.3s;position:relative;cursor:pointer}:host ::ng-deep .dropzone .centered .select-file>input[type=file]{width:100%;opacity:0;position:absolute;z-index:2;height:100%;top:0;left:0;cursor:pointer}:host ::ng-deep .dropzone .centered .select-file>input[type=file]:disabled{cursor:not-allowed}:host ::ng-deep .dropzone .centered .select-file>label{cursor:pointer}:host ::ng-deep .dropzone .centered .select-file:hover{background-color:#cc2d38}:host ::ng-deep .dropzone .centered .select-file-disabled{background-color:#d1d2d4!important;color:#f5f5f6!important;cursor:not-allowed!important}.dropzone-disabled{cursor:not-allowed;opacity:.4}:host ::ng-deep .list-files{margin-top:20px;border:1px solid #b6b6b6;color:#696969;font-size:14px;font-weight:700;padding:20px;display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,150px));justify-content:space-evenly;gap:15px;min-height:140px;border-radius:5px}:host ::ng-deep .list-files .file-item{height:100px;border-radius:20px;border:2px dashed #b6b6b6;background:0 0;padding:10px;font-size:11px;text-transform:uppercase;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}:host ::ng-deep .list-files .file-item:hover{border:1px solid #f3465c;background-color:#f3465c26;color:#f3465c;font-weight:700}:host ::ng-deep .list-files .file-item:hover .not-hover{display:none}:host ::ng-deep .list-files .file-item:hover .hovering{display:block}:host ::ng-deep .list-files .file-item .not-hover{display:block}:host ::ng-deep .list-files .file-item .hovering{display:none}:host ::ng-deep .list-files .file-item-icon{width:100%;height:150px;display:flex;align-items:center;justify-content:center}:host ::ng-deep .list-files .file-item-text{text-align:center}.file-item-disabled{opacity:.4;border:1px solid;cursor:not-allowed}"]
|
235
|
+
}),
|
236
|
+
__metadata("design:paramtypes", [MessageService,
|
237
|
+
ConfirmationService])
|
238
|
+
], GIPIFileDragAndDropComponent);
|
239
|
+
export { GIPIFileDragAndDropComponent };
|
240
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1kcmFnLWFuZC1kcm9wLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BnaXBpc2lzdGVtYXMvbmctY29yZS8iLCJzb3VyY2VzIjpbInNoYXJlZC9naXBpLWNvbXBvbmVudHMvZmlsZS1kcmFnLWFuZC1kcm9wL2ZpbGUtZHJhZy1hbmQtZHJvcC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQUUsVUFBVSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNJLE9BQU8sRUFBd0IsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUV6RSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSw2Q0FBNkMsQ0FBQztBQUNsRixPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDeEUsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzNELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQW1CN0QsSUFBYSw0QkFBNEIsb0NBQXpDLE1BQWEsNEJBQTRCO0lBd0NyQyxZQ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tZW50LnZhbHVlID0gJyc7XG4gICAgICAgIHRoaXMuZmlsZXMgPSBbXTtcbiAgICAgICAgaWYgKGVtaXRGaWxlQ2hhbmdlKSB7XG4gICAgICAgICAgICB0aGlzLmZpbGVDaGFuZ2UuZW1pdCh0aGlzLmZpbGVzKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gKCh0aGlzLmZpbGVzLmxlbmd0aCA8PSAwKSAmJiBTdHJpbmdVdGlsLmlzRW1wdHkodGhpcy5fZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LnZhbHVlKSk7XG4gICAgfVxuXG4gICAgb3BlbkNvbmZpcm1EaWFsb2dSZW1vdmVGaWxlKGZpbGU6IEZpbGUsIGluZGV4OiBudW1iZXIpOiB2b2lkIHtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHRoaXMuX2NvbmZpcm1hdGlvblNlcnZpY2UuY29uZmlybSh7XG4gICAgICAgICAgICAgICAgdGl0bGU6ICdDb25maXJtYcOnw6NvJyxcbiAgICAgICAgICAgICAgICBtZXNzYWdlOiBgRGVzZWphIHJlYWxtZW50ZSByZW1vdmVyIG8gYXJxdWl2byAke2ZpbGUubmFtZX0gZGEgbGlzdGE/YCxcbiAgICAgICAgICAgICAgICBhY2NlcHQ6ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgbGlzdDogRmlsZVtdID0gdGhpcy5maWxlcztcbiAgICAgICAgICAgICAgICAgICAgbGlzdC5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbGVzID0gW107XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmlsZXMgPSBsaXN0O1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgY2FuY2VsOiAoKSA9PiB7IH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICB0aGlzLmFkZEVycm9yTWVzc2FnZShlKTtc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