@gipisistemas/ng-core 1.1.0 → 1.1.1
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,149 @@
|
|
1
|
+
var GIPIChipsComponent_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
|
+
export class RemoveChange {
|
6
|
+
}
|
7
|
+
let nextUniqueId = 0;
|
8
|
+
let GIPIChipsComponent = GIPIChipsComponent_1 = class GIPIChipsComponent {
|
9
|
+
constructor(_changeDetectorRef, elementRef) {
|
10
|
+
this._changeDetectorRef = _changeDetectorRef;
|
11
|
+
this.elementRef = elementRef;
|
12
|
+
this._name = `gipi-chips-${nextUniqueId++}`;
|
13
|
+
this.id = this._name;
|
14
|
+
this.name = this._name;
|
15
|
+
this.label = 'Selecionados';
|
16
|
+
this.labelRemoveAll = 'Limpar';
|
17
|
+
this.disabled = false;
|
18
|
+
this.showRemovableAll = false;
|
19
|
+
this.showRemovable = false;
|
20
|
+
this.property = 'description';
|
21
|
+
this.onFocus = new EventEmitter();
|
22
|
+
this.onClick = new EventEmitter();
|
23
|
+
this.removeChange = new EventEmitter();
|
24
|
+
this.removeAllChange = new EventEmitter();
|
25
|
+
this.onChange = () => { };
|
26
|
+
this.onTouch = () => { };
|
27
|
+
}
|
28
|
+
set value(value) {
|
29
|
+
this._value = value;
|
30
|
+
this.onChange(value);
|
31
|
+
this.onTouch();
|
32
|
+
this._changeDetectorRef.markForCheck();
|
33
|
+
}
|
34
|
+
get value() {
|
35
|
+
return this._value;
|
36
|
+
}
|
37
|
+
ngOnInit() { }
|
38
|
+
writeValue(value) {
|
39
|
+
this.value = value;
|
40
|
+
}
|
41
|
+
registerOnChange(fn) {
|
42
|
+
this.onChange = fn;
|
43
|
+
}
|
44
|
+
registerOnTouched(fn) {
|
45
|
+
this.onTouch = fn;
|
46
|
+
}
|
47
|
+
setDisabledState(value) {
|
48
|
+
this.disabled = value;
|
49
|
+
this._changeDetectorRef.markForCheck();
|
50
|
+
}
|
51
|
+
removeChip(chip, index) {
|
52
|
+
if (!this.disabled && this.showRemovable) {
|
53
|
+
this.value.splice(index, 1);
|
54
|
+
this._changeDetectorRef.detectChanges();
|
55
|
+
this.removeChange.emit({ chip: chip, index: index });
|
56
|
+
}
|
57
|
+
}
|
58
|
+
removeAllChips() {
|
59
|
+
if (!this.disabled && this.showRemovableAll) {
|
60
|
+
this.value = [];
|
61
|
+
this._changeDetectorRef.detectChanges();
|
62
|
+
this.removeAllChange.emit();
|
63
|
+
}
|
64
|
+
}
|
65
|
+
};
|
66
|
+
GIPIChipsComponent.ctorParameters = () => [
|
67
|
+
{ type: ChangeDetectorRef },
|
68
|
+
{ type: ElementRef }
|
69
|
+
];
|
70
|
+
__decorate([
|
71
|
+
Input(),
|
72
|
+
__metadata("design:type", Object)
|
73
|
+
], GIPIChipsComponent.prototype, "id", void 0);
|
74
|
+
__decorate([
|
75
|
+
Input(),
|
76
|
+
__metadata("design:type", String)
|
77
|
+
], GIPIChipsComponent.prototype, "name", void 0);
|
78
|
+
__decorate([
|
79
|
+
Input(),
|
80
|
+
__metadata("design:type", String)
|
81
|
+
], GIPIChipsComponent.prototype, "label", void 0);
|
82
|
+
__decorate([
|
83
|
+
Input(),
|
84
|
+
__metadata("design:type", String)
|
85
|
+
], GIPIChipsComponent.prototype, "labelRemoveAll", void 0);
|
86
|
+
__decorate([
|
87
|
+
Input(),
|
88
|
+
__metadata("design:type", String)
|
89
|
+
], GIPIChipsComponent.prototype, "ariaLabel", void 0);
|
90
|
+
__decorate([
|
91
|
+
Input(),
|
92
|
+
__metadata("design:type", Boolean)
|
93
|
+
], GIPIChipsComponent.prototype, "disabled", void 0);
|
94
|
+
__decorate([
|
95
|
+
Input(),
|
96
|
+
__metadata("design:type", Boolean)
|
97
|
+
], GIPIChipsComponent.prototype, "showRemovableAll", void 0);
|
98
|
+
__decorate([
|
99
|
+
Input(),
|
100
|
+
__metadata("design:type", Boolean)
|
101
|
+
], GIPIChipsComponent.prototype, "showRemovable", void 0);
|
102
|
+
__decorate([
|
103
|
+
Input(),
|
104
|
+
__metadata("design:type", String)
|
105
|
+
], GIPIChipsComponent.prototype, "property", void 0);
|
106
|
+
__decorate([
|
107
|
+
Input(),
|
108
|
+
__metadata("design:type", Array),
|
109
|
+
__metadata("design:paramtypes", [Array])
|
110
|
+
], GIPIChipsComponent.prototype, "value", null);
|
111
|
+
__decorate([
|
112
|
+
Output(),
|
113
|
+
__metadata("design:type", EventEmitter)
|
114
|
+
], GIPIChipsComponent.prototype, "onFocus", void 0);
|
115
|
+
__decorate([
|
116
|
+
Output(),
|
117
|
+
__metadata("design:type", EventEmitter)
|
118
|
+
], GIPIChipsComponent.prototype, "onClick", void 0);
|
119
|
+
__decorate([
|
120
|
+
Output(),
|
121
|
+
__metadata("design:type", EventEmitter)
|
122
|
+
], GIPIChipsComponent.prototype, "removeChange", void 0);
|
123
|
+
__decorate([
|
124
|
+
Output(),
|
125
|
+
__metadata("design:type", EventEmitter)
|
126
|
+
], GIPIChipsComponent.prototype, "removeAllChange", void 0);
|
127
|
+
GIPIChipsComponent = GIPIChipsComponent_1 = __decorate([
|
128
|
+
Component({
|
129
|
+
selector: `gipi-chips`,
|
130
|
+
exportAs: 'gipiChips',
|
131
|
+
template: "<mat-chip-list [attr.id]=\"id\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"ariaLabel\"\n class=\"chip-list\">\n {{ label }}\n\n <mat-chip *ngFor=\"let val of value; let i = index;\"\n [disabled]=\"disabled\"\n (removed)=\"removeChip(val, i)\">\n {{ val[property] }}\n\n <mat-icon matChipRemove\n *ngIf=\"!disabled && showRemovable\">\n cancel\n </mat-icon>\n </mat-chip>\n\n <mat-chip *ngIf=\"!disabled && showRemovableAll && (value && (value.length > 0))\"\n class=\"chip-clear-all\"\n (click)=\"removeAllChips()\">\n {{ labelRemoveAll }}\n\n <svg width=\"14\"\n height=\"14\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M3.0625 3.0625L3.60938 11.8125C3.63535 12.3181 4.00312 12.6875 4.48438 12.6875H9.51562C9.99879 12.6875 10.3597 12.3181 10.3906 11.8125L10.9375 3.0625\"\n stroke=\"#fff\"\n stroke-width=\"0.875\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n <path d=\"M2.1875 3.0625H11.8125Z\"\n fill=\"#fff\" />\n <path d=\"M2.1875 3.0625H11.8125\"\n stroke=\"#fff\"\n stroke-width=\"0.875\"\n stroke-miterlimit=\"10\"\n stroke-linecap=\"round\" />\n <path d=\"M5.25 3.0625V1.96875C5.24975 1.8825 5.26655 1.79705 5.29944 1.71732C5.33233 1.63758 5.38066 1.56514 5.44165 1.50415C5.50264 1.44316 5.57508 1.39483 5.65482 1.36194C5.73455 1.32905 5.82 1.31225 5.90625 1.3125H8.09375C8.18 1.31225 8.26545 1.32905 8.34518 1.36194C8.42492 1.39483 8.49736 1.44316 8.55835 1.50415C8.61934 1.56514 8.66767 1.63758 8.70056 1.71732C8.73345 1.79705 8.75025 1.8825 8.75 1.96875V3.0625M7 4.8125V10.9375M5.03125 4.8125L5.25 10.9375M8.96875 4.8125L8.75 10.9375\"\n stroke=\"#fff\"\n stroke-width=\"0.875\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n </svg>\n </mat-chip>\n</mat-chip-list>",
|
132
|
+
providers: [
|
133
|
+
{
|
134
|
+
provide: NG_VALUE_ACCESSOR,
|
135
|
+
useExisting: forwardRef(() => GIPIChipsComponent_1),
|
136
|
+
multi: true
|
137
|
+
}
|
138
|
+
],
|
139
|
+
host: {
|
140
|
+
'class': 'gipi-chips',
|
141
|
+
},
|
142
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
143
|
+
styles: ["::ng-deep .chip-list{outline:0!important}::ng-deep .chip-list .mat-chip-list-wrapper{margin:0!important;gap:8px!important;outline:0!important}::ng-deep .chip-list .mat-chip-list-wrapper .mat-standard-chip{outline:0!important;margin:0!important;padding:4px 8px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:1.4rem!important;font-weight:400!important;line-height:1.8rem!important;min-height:auto!important;height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important}.chip-clear-all{display:flex;align-items:center;gap:4px;background:#e0313e;color:#fff;cursor:pointer;transition:.2s}.chip-clear-all:hover{background:#cc2d38}"]
|
144
|
+
}),
|
145
|
+
__metadata("design:paramtypes", [ChangeDetectorRef,
|
146
|
+
ElementRef])
|
147
|
+
], GIPIChipsComponent);
|
148
|
+
export { GIPIChipsComponent };
|
149
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpcHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6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ICAgICAgICAgdGhpcy52YWx1ZS5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgICAgICAgdGhpcy5fY2hhbmdlRGV0ZWN0b3JSZWYuZGV0ZWN0Q2hhbmdlcygpO1xuICAgICAgICAgICAgdGhpcy5yZW1vdmVDaGFuZ2UuZW1pdCh7IGNoaXA6IGNoaXAsIGluZGV4OiBpbmRleCB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHB1YmxpYyByZW1vdmVBbGxDaGlwcygpOiB2b2lkIHtcbiAgICAgICAgaWYgKCF0aGlzLmRpc2FibGVkICYmIHRoaXMuc2hvd1JlbW92YWJsZUFsbCkge1xuICAgICAgICAgICAgdGhpcy52YWx1ZSA9IFtdO1xuICAgICAgICAgICAgdGhpcy5fY2hhbmdlRGV0ZWN0b3JSZWYuZGV0ZWN0Q2hhbmdlcygpO1xuICAgICAgICAgICAgdGhpcy5yZW1vdmVBbGxDaGFuZ2UuZW1pdCgpO1xuICAgICAgICB9XG4gICAgfVxuXG59XG4iXX0=
|
@@ -0,0 +1,44 @@
|
|
1
|
+
var GIPIConfirmationDialogComponent_1;
|
2
|
+
import { __decorate, __metadata, __param } from "tslib";
|
3
|
+
import { Component, Inject, forwardRef } from '@angular/core';
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
|
+
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
|
6
|
+
import { APP_MESSAGES } from '../../../core/app.messages';
|
7
|
+
import { ConfirmationDTO } from '../../../core/models/dto/confirmation.dto';
|
8
|
+
let GIPIConfirmationDialogComponent = GIPIConfirmationDialogComponent_1 = class GIPIConfirmationDialogComponent {
|
9
|
+
constructor(dialogRef, confirmation, messages) {
|
10
|
+
this.dialogRef = dialogRef;
|
11
|
+
this.confirmation = confirmation;
|
12
|
+
this.messages = messages;
|
13
|
+
}
|
14
|
+
ngOnInit() { }
|
15
|
+
};
|
16
|
+
GIPIConfirmationDialogComponent.ctorParameters = () => [
|
17
|
+
{ type: MatDialogRef },
|
18
|
+
{ type: ConfirmationDTO, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
19
|
+
{ type: undefined, decorators: [{ type: Inject, args: [APP_MESSAGES,] }] }
|
20
|
+
];
|
21
|
+
GIPIConfirmationDialogComponent = GIPIConfirmationDialogComponent_1 = __decorate([
|
22
|
+
Component({
|
23
|
+
selector: `gipi-confirmation-dialog`,
|
24
|
+
exportAs: 'gipiConfirmationDialog',
|
25
|
+
template: "<gipi-abstract-form id=\"dialogConfirmation\"\n name=\"dialogConfirmation\"\n [dialog]=\"true\">\n\n <gipi-toolbar id=\"toolbarDialogConfirmation\"\n mat-dialog-title>\n {{ confirmation.title }}\n </gipi-toolbar>\n\n <div mat-dialog-content>\n <p>{{ confirmation.message }}</p>\n <li *ngFor=\"let message of confirmation.listMessage\"> {{ message }} </li>\n </div>\n\n <div mat-dialog-actions\n class=\"screen-confirmation\"\n fxLayout=\"row wrap\"\n fxLayout.lt-md=\"column wrap\"\n fxLayoutGap=\"16px\"\n *ngIf=\"!confirmation.isWarningScreen\">\n <gipi-button [label]=\"messages.BUTTON_OK_CONFIRMATION\"\n gipi-primary\n fxFlex=\"30\"\n fxFlex.lt-md=\"100\"\n [mat-dialog-close]=\"true\">\n </gipi-button>\n\n <gipi-button [label]=\"messages.BUTTON_CANCEL_CONFIRMATION\"\n gipi-secondary\n fxFlex=\"30\"\n fxFlex.lt-md=\"100\"\n [mat-dialog-close]=\"false\">\n </gipi-button>\n </div>\n\n <div mat-dialog-actions\n class=\"screen-warning\"\n fxLayout=\"row wrap\"\n fxLayout.lt-md=\"column wrap\"\n fxLayoutGap=\"16px\"\n *ngIf=\"confirmation.isWarningScreen\">\n <gipi-button label=\"OK\"\n gipi-primary\n fxFlex=\"30\"\n fxFlex.lt-md=\"100\"\n [mat-dialog-close]=\"true\">\n </gipi-button>\n </div>\n\n</gipi-abstract-form>\n",
|
26
|
+
providers: [
|
27
|
+
{
|
28
|
+
provide: NG_VALUE_ACCESSOR,
|
29
|
+
useExisting: forwardRef(() => GIPIConfirmationDialogComponent_1),
|
30
|
+
multi: true
|
31
|
+
}
|
32
|
+
],
|
33
|
+
host: {
|
34
|
+
'class': 'gipi-confirmation-dialog',
|
35
|
+
},
|
36
|
+
styles: [".screen-confirmation{padding:20px 0 0!important;place-content:flex-end;align-items:flex-end}.screen-warning{padding:20px 0 0!important;place-content:center;align-items:center}li{margin:10px 0;font-size:13px}li::marker{font-size:16px;color:#f3465c}"]
|
37
|
+
}),
|
38
|
+
__param(1, Inject(MAT_DIALOG_DATA)),
|
39
|
+
__param(2, Inject(APP_MESSAGES)),
|
40
|
+
__metadata("design:paramtypes", [MatDialogRef,
|
41
|
+
ConfirmationDTO, Object])
|
42
|
+
], GIPIConfirmationDialogComponent);
|
43
|
+
export { GIPIConfirmationDialogComponent };
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybWF0aW9uLWRpYWxvZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZ2lwaXNpc3RlbWFzL25nLWNvcmUvIiwic291cmNlcyI6WyJzaGFyZWQvZ2lwaS1jb21wb25lbnRzL2NvbmZpcm1hdGlvbi1kaWFsb2cvY29uZmlybWF0aW9uLWRpYWxvZy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBVSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUdsRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGVBQW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uLWRpYWxvZycsXG4gICAgfSxcbn0pXG5leHBvcnQgY2xhc3MgR0lQSUNvbmZpcm1hdGlvbkRpYWxvZ0NvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG5cbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgcHVibGljIGRpYWxvZ1JlZjogTWF0RGlhbG9nUmVmPEdJUElDb25maXJtYXRpb25EaWFsb2dDb21wb25lbnQ+LFxuICAgICAgICBASW5qZWN0KE1BVF9ESUFMT0dfREFUQSkgcHVibGljIGNvbmZpcm1hdGlvbjogQ29uZmlybWF0aW9uRFRPLFxuICAgICAgICBASW5qZWN0KEFQUF9NRVNTQUdFUykgcHVibGljIG1lc3NhZ2VzOiBBcHBNZXNzYWdlc1xuICAgICkgeyB9XG5cbiAgICBuZ09uSW5pdCgpOiB2b2lkIHsgfVxuXG59XG4iXX0=
|
package/esm2015/shared/gipi-components/datepicker/date-range-picker/date-range-picker.component.js
ADDED
@@ -0,0 +1,324 @@
|
|
1
|
+
var DateRangePickerComponent_1;
|
2
|
+
import { __decorate, __metadata } from "tslib";
|
3
|
+
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
4
|
+
import { ChangeDetectorRef, Component, ElementRef, forwardRef, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';
|
5
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
6
|
+
import { BrowserUtil } from './../../../../core/utils/browser.util';
|
7
|
+
import { DateUtil } from './../../../../core/utils/date.util';
|
8
|
+
import * as moment_ from 'moment';
|
9
|
+
const moment = moment_;
|
10
|
+
import { DateRange } from '../mat-datepicker/date-selection-model';
|
11
|
+
import { MatDatepickerToggle } from '../mat-datepicker/datepicker-toggle';
|
12
|
+
export let nextUniqueId = 0;
|
13
|
+
let DateRangePickerComponent = DateRangePickerComponent_1 = class DateRangePickerComponent {
|
14
|
+
constructor(elementRef, _changeDetectorRef) {
|
15
|
+
this.elementRef = elementRef;
|
16
|
+
this._changeDetectorRef = _changeDetectorRef;
|
17
|
+
this._name = `gipi-date-range-${nextUniqueId++}`;
|
18
|
+
this.idStartDate = `${this._name}-start`;
|
19
|
+
this.idEndDate = `${this._name}-end`;
|
20
|
+
this.nameStartDate = `${this._name}-start`;
|
21
|
+
this.nameEndDate = `${this._name}-end`;
|
22
|
+
this.label = '';
|
23
|
+
this.placeholderStartDate = 'Inicial';
|
24
|
+
this.placeholderEndDate = 'Final';
|
25
|
+
this.help = '';
|
26
|
+
this.separator = '-';
|
27
|
+
this._customRangeLabel = 'Personalizado';
|
28
|
+
this._maxRange = 368;
|
29
|
+
this._minDate = new Date('01/01/2000');
|
30
|
+
this._required = false;
|
31
|
+
this._readonly = false;
|
32
|
+
this._disabled = false;
|
33
|
+
this._dateFilter = null;
|
34
|
+
this.onChange = () => { };
|
35
|
+
this.onTouched = () => { };
|
36
|
+
}
|
37
|
+
get startDate() {
|
38
|
+
return this._startDate;
|
39
|
+
}
|
40
|
+
set startDate(value) {
|
41
|
+
this._startDate = value;
|
42
|
+
}
|
43
|
+
get endDate() {
|
44
|
+
return this._endDate;
|
45
|
+
}
|
46
|
+
set endDate(value) {
|
47
|
+
this._endDate = value;
|
48
|
+
this.value = new DateRange(this.startDate, value);
|
49
|
+
}
|
50
|
+
get customRangeLabel() {
|
51
|
+
return this._customRangeLabel;
|
52
|
+
}
|
53
|
+
set customRangeLabel(value) {
|
54
|
+
this._customRangeLabel = value;
|
55
|
+
}
|
56
|
+
get ranges() {
|
57
|
+
return this._ranges;
|
58
|
+
}
|
59
|
+
set ranges(value) {
|
60
|
+
this._ranges = value;
|
61
|
+
}
|
62
|
+
get maxRange() {
|
63
|
+
return this._maxRange;
|
64
|
+
}
|
65
|
+
set maxRange(value) {
|
66
|
+
this._maxRange = coerceNumberProperty(value);
|
67
|
+
}
|
68
|
+
get minDate() {
|
69
|
+
return this._minDate;
|
70
|
+
}
|
71
|
+
set minDate(value) {
|
72
|
+
this._minDate = value;
|
73
|
+
this._minDate.setHours(0, 0, 0, 0);
|
74
|
+
}
|
75
|
+
get maxDate() {
|
76
|
+
return this._maxDate;
|
77
|
+
}
|
78
|
+
set maxDate(value) {
|
79
|
+
this._maxDate = value;
|
80
|
+
this._maxDate.setHours(0, 0, 0, 0);
|
81
|
+
}
|
82
|
+
get required() {
|
83
|
+
return this._required;
|
84
|
+
}
|
85
|
+
set required(value) {
|
86
|
+
this._required = coerceBooleanProperty(value);
|
87
|
+
}
|
88
|
+
get readonly() {
|
89
|
+
return this._readonly;
|
90
|
+
}
|
91
|
+
set readonly(value) {
|
92
|
+
this._readonly = coerceBooleanProperty(value);
|
93
|
+
}
|
94
|
+
get disabled() {
|
95
|
+
return this._disabled;
|
96
|
+
}
|
97
|
+
set disabled(value) {
|
98
|
+
this._disabled = coerceBooleanProperty(value);
|
99
|
+
}
|
100
|
+
get dateFilter() {
|
101
|
+
return this._dateFilter;
|
102
|
+
}
|
103
|
+
set dateFilter(value) {
|
104
|
+
this._dateFilter = value;
|
105
|
+
}
|
106
|
+
get value() {
|
107
|
+
return this._value;
|
108
|
+
}
|
109
|
+
set value(value) {
|
110
|
+
let start = null;
|
111
|
+
let end = null;
|
112
|
+
if (value && value.start) {
|
113
|
+
start = moment(value.start).startOf('day').toDate();
|
114
|
+
}
|
115
|
+
if (value && value.end) {
|
116
|
+
end = moment(value.end).endOf('day').toDate();
|
117
|
+
}
|
118
|
+
if (start && end) {
|
119
|
+
this._value = new DateRange(start, end);
|
120
|
+
this.onChange(this._value);
|
121
|
+
this.onTouched(this._value);
|
122
|
+
}
|
123
|
+
}
|
124
|
+
get formattedValue() {
|
125
|
+
return '';
|
126
|
+
}
|
127
|
+
ngOnInit() { }
|
128
|
+
ngOnDestroy() { }
|
129
|
+
writeValue(value) {
|
130
|
+
if (value && value.start) {
|
131
|
+
this.startDate = moment(value.start).startOf('day').toDate();
|
132
|
+
}
|
133
|
+
else {
|
134
|
+
this.startDate = null;
|
135
|
+
}
|
136
|
+
if (value && value.end) {
|
137
|
+
this.endDate = moment(value.end).endOf('day').toDate();
|
138
|
+
}
|
139
|
+
else {
|
140
|
+
this.endDate = null;
|
141
|
+
}
|
142
|
+
this._changeDetectorRef.detectChanges();
|
143
|
+
}
|
144
|
+
registerOnChange(fn) {
|
145
|
+
this.onChange = fn;
|
146
|
+
}
|
147
|
+
registerOnTouched(fn) {
|
148
|
+
this.onTouched = fn;
|
149
|
+
}
|
150
|
+
setDisabledState(isDisabled) {
|
151
|
+
this.disabled = isDisabled;
|
152
|
+
this._changeDetectorRef.markForCheck();
|
153
|
+
}
|
154
|
+
onInputContentClick(event) {
|
155
|
+
if (!this.readonly || !this.matDatepickerToggleRef) {
|
156
|
+
return;
|
157
|
+
}
|
158
|
+
this.matDatepickerToggleRef._open(event);
|
159
|
+
}
|
160
|
+
generatedStartDate(valueDate, keyUp) {
|
161
|
+
if (!keyUp && BrowserUtil.getBrowser() === 'Firefox') {
|
162
|
+
return;
|
163
|
+
}
|
164
|
+
let match = false;
|
165
|
+
if (valueDate.includes('/') && (!keyUp || valueDate.length === 10)) {
|
166
|
+
this.startDate = moment(valueDate, 'DD/MM/YYYY').toDate();
|
167
|
+
match = true;
|
168
|
+
}
|
169
|
+
else if (!valueDate.includes('/') && (!keyUp || valueDate.length === 8)) {
|
170
|
+
this.startDate = moment(valueDate, 'DDMMYYYY').toDate();
|
171
|
+
match = true;
|
172
|
+
}
|
173
|
+
if (BrowserUtil.getBrowser() !== 'Firefox') {
|
174
|
+
if (match && !DateUtil.isValid(this.startDate)) {
|
175
|
+
this.startDate = undefined;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
else {
|
179
|
+
if (match && !this.startDate) {
|
180
|
+
this.startDate = undefined;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
generatedEndDate(valueDate, keyUp) {
|
185
|
+
if (!keyUp && BrowserUtil.getBrowser() === 'Firefox') {
|
186
|
+
return;
|
187
|
+
}
|
188
|
+
let match = false;
|
189
|
+
if (valueDate.includes('/') && (!keyUp || valueDate.length === 10)) {
|
190
|
+
this.endDate = moment(valueDate, 'DD/MM/YYYY').toDate();
|
191
|
+
match = true;
|
192
|
+
}
|
193
|
+
else if (!valueDate.includes('/') && (!keyUp || valueDate.length === 8)) {
|
194
|
+
this.endDate = moment(valueDate, 'DDMMYYYY').toDate();
|
195
|
+
match = true;
|
196
|
+
}
|
197
|
+
if (BrowserUtil.getBrowser() !== 'Firefox') {
|
198
|
+
if (match && !DateUtil.isValid(this.endDate)) {
|
199
|
+
this.endDate = undefined;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
else {
|
203
|
+
if (match && !this.endDate) {
|
204
|
+
this.endDate = undefined;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
};
|
209
|
+
DateRangePickerComponent.ctorParameters = () => [
|
210
|
+
{ type: ElementRef },
|
211
|
+
{ type: ChangeDetectorRef }
|
212
|
+
];
|
213
|
+
__decorate([
|
214
|
+
ViewChild(MatDatepickerToggle, { static: true }),
|
215
|
+
__metadata("design:type", MatDatepickerToggle)
|
216
|
+
], DateRangePickerComponent.prototype, "matDatepickerToggleRef", void 0);
|
217
|
+
__decorate([
|
218
|
+
Input('idStart'),
|
219
|
+
__metadata("design:type", String)
|
220
|
+
], DateRangePickerComponent.prototype, "idStartDate", void 0);
|
221
|
+
__decorate([
|
222
|
+
Input('idEnd'),
|
223
|
+
__metadata("design:type", String)
|
224
|
+
], DateRangePickerComponent.prototype, "idEndDate", void 0);
|
225
|
+
__decorate([
|
226
|
+
Input('nameStart'),
|
227
|
+
__metadata("design:type", String)
|
228
|
+
], DateRangePickerComponent.prototype, "nameStartDate", void 0);
|
229
|
+
__decorate([
|
230
|
+
Input('nameEnd'),
|
231
|
+
__metadata("design:type", String)
|
232
|
+
], DateRangePickerComponent.prototype, "nameEndDate", void 0);
|
233
|
+
__decorate([
|
234
|
+
Input(),
|
235
|
+
__metadata("design:type", String)
|
236
|
+
], DateRangePickerComponent.prototype, "label", void 0);
|
237
|
+
__decorate([
|
238
|
+
Input('placeholderStart'),
|
239
|
+
__metadata("design:type", String)
|
240
|
+
], DateRangePickerComponent.prototype, "placeholderStartDate", void 0);
|
241
|
+
__decorate([
|
242
|
+
Input('placeholderEnd'),
|
243
|
+
__metadata("design:type", String)
|
244
|
+
], DateRangePickerComponent.prototype, "placeholderEndDate", void 0);
|
245
|
+
__decorate([
|
246
|
+
Input(),
|
247
|
+
__metadata("design:type", String)
|
248
|
+
], DateRangePickerComponent.prototype, "help", void 0);
|
249
|
+
__decorate([
|
250
|
+
Input(),
|
251
|
+
__metadata("design:type", String)
|
252
|
+
], DateRangePickerComponent.prototype, "separator", void 0);
|
253
|
+
__decorate([
|
254
|
+
Input(),
|
255
|
+
__metadata("design:type", String),
|
256
|
+
__metadata("design:paramtypes", [String])
|
257
|
+
], DateRangePickerComponent.prototype, "customRangeLabel", null);
|
258
|
+
__decorate([
|
259
|
+
Input(),
|
260
|
+
__metadata("design:type", Object),
|
261
|
+
__metadata("design:paramtypes", [Object])
|
262
|
+
], DateRangePickerComponent.prototype, "ranges", null);
|
263
|
+
__decorate([
|
264
|
+
Input(),
|
265
|
+
__metadata("design:type", Number),
|
266
|
+
__metadata("design:paramtypes", [Number])
|
267
|
+
], DateRangePickerComponent.prototype, "maxRange", null);
|
268
|
+
__decorate([
|
269
|
+
Input('min'),
|
270
|
+
__metadata("design:type", Date),
|
271
|
+
__metadata("design:paramtypes", [Date])
|
272
|
+
], DateRangePickerComponent.prototype, "minDate", null);
|
273
|
+
__decorate([
|
274
|
+
Input('max'),
|
275
|
+
__metadata("design:type", Date),
|
276
|
+
__metadata("design:paramtypes", [Date])
|
277
|
+
], DateRangePickerComponent.prototype, "maxDate", null);
|
278
|
+
__decorate([
|
279
|
+
Input(),
|
280
|
+
__metadata("design:type", Boolean),
|
281
|
+
__metadata("design:paramtypes", [Boolean])
|
282
|
+
], DateRangePickerComponent.prototype, "required", null);
|
283
|
+
__decorate([
|
284
|
+
Input(),
|
285
|
+
__metadata("design:type", Boolean),
|
286
|
+
__metadata("design:paramtypes", [Boolean])
|
287
|
+
], DateRangePickerComponent.prototype, "readonly", null);
|
288
|
+
__decorate([
|
289
|
+
Input(),
|
290
|
+
__metadata("design:type", Boolean),
|
291
|
+
__metadata("design:paramtypes", [Boolean])
|
292
|
+
], DateRangePickerComponent.prototype, "disabled", null);
|
293
|
+
__decorate([
|
294
|
+
Input(),
|
295
|
+
__metadata("design:type", Function),
|
296
|
+
__metadata("design:paramtypes", [Function])
|
297
|
+
], DateRangePickerComponent.prototype, "dateFilter", null);
|
298
|
+
__decorate([
|
299
|
+
Input(),
|
300
|
+
__metadata("design:type", DateRange),
|
301
|
+
__metadata("design:paramtypes", [DateRange])
|
302
|
+
], DateRangePickerComponent.prototype, "value", null);
|
303
|
+
DateRangePickerComponent = DateRangePickerComponent_1 = __decorate([
|
304
|
+
Component({
|
305
|
+
selector: 'gipi-date-range-picker',
|
306
|
+
exportAs: 'gipiDateRangePicker',
|
307
|
+
template: "<div class=\"input-wrapper\">\n\n <label *ngIf=\"label\"\n class=\"input-label\"\n [attr.for]=\"'dateRangeInput'\">\n {{ label }}\n <span *ngIf=\"required\"> * </span>\n </label>\n\n <div class=\"input-content\"\n (click)=\"onInputContentClick($event)\">\n <gipi-mat-date-range-input #matDateRangeInput\n id=\"dateRangeInput\"\n [min]=\"minDate\"\n [max]=\"maxDate\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [separator]=\"separator\"\n [rangePicker]=\"rangepicker\">\n <input gipiMatStartDate\n class=\"input-element\"\n [attr.id]=\"idStartDate\"\n [attr.name]=\"nameStartDate\"\n [placeholder]=\"placeholderStartDate\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [readOnly]=\"readonly\"\n [autocomplete]=\"'off'\"\n [autofocus]=\"false\"\n [maxlength]=\"10\"\n [(ngModel)]=\"startDate\"\n (keyup)=\"generatedStartDate($event.target.value, true)\"\n (change)=\"generatedStartDate($event.target.value, false)\" />\n\n <input gipiMatEndDate\n class=\"input-element\"\n [attr.id]=\"idEndDate\"\n [attr.name]=\"nameEndDate\"\n [placeholder]=\"placeholderEndDate\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [readOnly]=\"readonly\"\n [autocomplete]=\"'off'\"\n [autofocus]=\"false\"\n [maxlength]=\"10\"\n [(ngModel)]=\"endDate\"\n (keyup)=\"generatedEndDate($event.target.value, true)\"\n (change)=\"generatedEndDate($event.target.value, false)\" />\n </gipi-mat-date-range-input>\n\n <div class=\"suffix\">\n <gipi-mat-datepicker-toggle matSuffix\n [for]=\"rangepicker\">\n </gipi-mat-datepicker-toggle>\n </div>\n </div>\n\n <small *ngIf=\"help\"\n class=\"input-help\">\n {{ help }}\n </small>\n</div>\n\n<gipi-mat-date-range-picker #rangepicker\n [maxRange]=\"maxRange\"\n [templatePresetRange]=\"templatePresetRange\">\n</gipi-mat-date-range-picker>\n\n<ng-template #templatePresetRange\n let-component>\n <gipi-preset-range [matDateRangeInput]=\"matDateRangeInput\"\n [matCalendar]=\"component\"\n [matDateRangePicker]=\"rangepicker\"\n [customRangeLabel]=\"'Personalizado'\"\n [maxRange]=\"maxRange\"\n [ranges]=\"ranges\">\n </gipi-preset-range>\n</ng-template>\n",
|
308
|
+
providers: [
|
309
|
+
{
|
310
|
+
provide: NG_VALUE_ACCESSOR,
|
311
|
+
useExisting: forwardRef(() => DateRangePickerComponent_1),
|
312
|
+
multi: true
|
313
|
+
},
|
314
|
+
],
|
315
|
+
host: {
|
316
|
+
'class': 'gipi-date-range-picker',
|
317
|
+
},
|
318
|
+
styles: [":host{display:block;width:100%}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::ng-deep .mat-date-range-input{height:4rem!important;padding-left:.8rem!important}::ng-deep .mat-date-range-input-container,::ng-deep .mat-date-range-input-end-wrapper,::ng-deep .mat-date-range-input-inner,::ng-deep .mat-date-range-input-start-wrapper{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:100%;min-height:100%;height:100%;padding-bottom:3px}::ng-deep .mat-date-range-input-inner{padding:0!important}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
|
319
|
+
}),
|
320
|
+
__metadata("design:paramtypes", [ElementR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93c2VyKCkgPT09ICdGaXJlZm94Jykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IG1hdGNoID0gZmFsc2U7XG4gICAgICAgIGlmICh2YWx1ZURhdGUuaW5jbHVkZXMoJy8nKSAmJiAoIWtleVVwIHx8IHZhbHVlRGF0ZS5sZW5ndGggPT09IDEwKSkge1xuICAgICAgICAgICAgdGhpcy5lbmREYXRlID0gbW9tZW50KHZhbHVlRGF0ZSwgJ0REL01NL1lZWVknKS50b0RhdGUoKTtcbiAgICAgICAgICAgIG1hdGNoID0gdHJ1ZTtcbiAgICAgICAgfSBlbHNlIGlmICghdmFsdWVEYXRlLmluY2x1ZGVzKCcvJykgJiYgKCFrZXlVcCB8fCB2YWx1ZURhdGUubGVuZ3RoID09PSA4KSkge1xuICAgICAgICAgICAgdGhpcy5lbmREYXRlID0gbW9tZW50KHZhbHVlRGF0ZSwgJ0RETU1ZWVlZJykudG9EYXRlKCk7XG4gICAgICAgICAgICBtYXRjaCA9IHRydWU7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoQnJvd3NlclV0aWwuZ2V0QnJvd3NlcigpICE9PSAnRmlyZWZveCcpIHtcbiAgICAgICAgICAgIGlmIChtYXRjaCAmJiAhRGF0ZVV0aWwuaXNWYWxpZCh0aGlzLmVuZERhdGUpKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5lbmREYXRlID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgaWYgKG1hdGNoICYmICF0aGlzLmVuZERhdGUpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmVuZERhdGUgPSB1bmRlZmluZWQ7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cblxufVxuIl19
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
2
|
+
import { Injectable } from "@angular/core";
|
3
|
+
import { DateRange } from "../../../mat-datepicker/date-selection-model";
|
4
|
+
import { DateAdapter } from "../../../mat-datepicker/shared/adapter/date-adapter";
|
5
|
+
let MaxRangeSelectionStrategy = class MaxRangeSelectionStrategy {
|
6
|
+
constructor(_dateAdapter) {
|
7
|
+
this._dateAdapter = _dateAdapter;
|
8
|
+
}
|
9
|
+
selectionFinished(date, currentRange) {
|
10
|
+
let { start, end } = currentRange;
|
11
|
+
if (start == null) {
|
12
|
+
start = date;
|
13
|
+
}
|
14
|
+
else if (end == null && date && this._dateAdapter.compareDate(date, start) >= 0) {
|
15
|
+
const maxDate = this._dateAdapter.addCalendarDays(start, (this.delta - 1));
|
16
|
+
end = (date > maxDate) ? maxDate : date;
|
17
|
+
}
|
18
|
+
else {
|
19
|
+
start = date;
|
20
|
+
end = null;
|
21
|
+
}
|
22
|
+
return new DateRange(start, end);
|
23
|
+
}
|
24
|
+
createPreview(activeDate, currentRange) {
|
25
|
+
if (currentRange.start && !currentRange.end) {
|
26
|
+
const maxDate = this._dateAdapter.addCalendarDays(currentRange.start, (this.delta - 1));
|
27
|
+
const rangeEnd = activeDate ? (activeDate > maxDate) ? maxDate : activeDate : null;
|
28
|
+
return new DateRange(currentRange.start, rangeEnd);
|
29
|
+
}
|
30
|
+
return new DateRange(null, null);
|
31
|
+
}
|
32
|
+
};
|
33
|
+
MaxRangeSelectionStrategy.ctorParameters = () => [
|
34
|
+
{ type: DateAdapter }
|
35
|
+
];
|
36
|
+
MaxRangeSelectionStrategy = __decorate([
|
37
|
+
Injectable(),
|
38
|
+
__metadata("design:paramtypes", [DateAdapter])
|
39
|
+
], MaxRangeSelectionStrategy);
|
40
|
+
export { MaxRangeSelectionStrategy };
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF4LXJhbmdlLXNlbGVjdGlvbi1zdGFydGVneS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BnaXBpc2lzdGVtYXMvbmctY29yZS8iLCJzb3VyY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