@gipisistemas/ng-core 1.1.0 → 1.1.2
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 +28372 -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 +585 -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 +599 -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 +25941 -0
- package/fesm2015/gipisistemas-ng-core.js.map +1 -0
- package/fesm5/gipisistemas-ng-core.js +27966 -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 +137 -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,90 @@
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
2
|
+
import { MediaMatcher } from '@angular/cdk/layout';
|
3
|
+
import { Injectable } from '@angular/core';
|
4
|
+
import { Subject } from 'rxjs';
|
5
|
+
import { distinctUntilChanged, map, startWith, takeUntil } from 'rxjs/operators';
|
6
|
+
import { GIPIResizeService } from './resize.service';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
import * as i1 from "./resize.service";
|
9
|
+
import * as i2 from "@angular/cdk/layout";
|
10
|
+
export var BreakpointEnum;
|
11
|
+
(function (BreakpointEnum) {
|
12
|
+
BreakpointEnum["xl"] = "xl";
|
13
|
+
BreakpointEnum["lg"] = "lg";
|
14
|
+
BreakpointEnum["md"] = "md";
|
15
|
+
BreakpointEnum["sm"] = "sm";
|
16
|
+
BreakpointEnum["xs"] = "xs";
|
17
|
+
})(BreakpointEnum || (BreakpointEnum = {}));
|
18
|
+
export var gridResponsiveMap = {
|
19
|
+
xs: '(max-width: 419px)',
|
20
|
+
sm: '(min-width: 420px)',
|
21
|
+
md: '(min-width: 600px)',
|
22
|
+
lg: '(min-width: 768px)',
|
23
|
+
xl: '(min-width: 1366px)',
|
24
|
+
};
|
25
|
+
export var siderResponsiveMap = {
|
26
|
+
xs: '(max-width: 420px)',
|
27
|
+
sm: '(max-width: 600px)',
|
28
|
+
md: '(max-width: 768px)',
|
29
|
+
lg: '(max-width: 1366px)',
|
30
|
+
xl: '(max-width: 1920px)',
|
31
|
+
};
|
32
|
+
var GIPIBreakpointService = /** @class */ (function () {
|
33
|
+
function GIPIBreakpointService(resizeService, mediaMatcher) {
|
34
|
+
this.resizeService = resizeService;
|
35
|
+
this.mediaMatcher = mediaMatcher;
|
36
|
+
this.destroy$ = new Subject();
|
37
|
+
this.resizeService
|
38
|
+
.subscribe()
|
39
|
+
.pipe(takeUntil(this.destroy$))
|
40
|
+
.subscribe(function () { });
|
41
|
+
}
|
42
|
+
GIPIBreakpointService.prototype.ngOnDestroy = function () {
|
43
|
+
this.destroy$.next();
|
44
|
+
};
|
45
|
+
GIPIBreakpointService.prototype.subscribe = function (breakpointMap, fullMap) {
|
46
|
+
var _this = this;
|
47
|
+
if (fullMap) {
|
48
|
+
var get = function () { return _this.matchMedia(breakpointMap, true); };
|
49
|
+
return this.resizeService.subscribe().pipe(map(get), startWith(get()), distinctUntilChanged(function (x, y) { return x[0] === y[0]; }), map(function (x) { return x[1]; }));
|
50
|
+
}
|
51
|
+
else {
|
52
|
+
var get = function () { return _this.matchMedia(breakpointMap); };
|
53
|
+
return this.resizeService.subscribe().pipe(map(get), startWith(get()), distinctUntilChanged());
|
54
|
+
}
|
55
|
+
};
|
56
|
+
GIPIBreakpointService.prototype.matchMedia = function (breakpointMap, fullMap) {
|
57
|
+
var _this = this;
|
58
|
+
var bp = BreakpointEnum.md;
|
59
|
+
var breakpointBooleanMap = {};
|
60
|
+
Object.keys(breakpointMap).map(function (breakpoint) {
|
61
|
+
var castBP = breakpoint;
|
62
|
+
var matched = _this.mediaMatcher.matchMedia(gridResponsiveMap[castBP]).matches;
|
63
|
+
breakpointBooleanMap[breakpoint] = matched;
|
64
|
+
if (matched) {
|
65
|
+
bp = castBP;
|
66
|
+
}
|
67
|
+
});
|
68
|
+
if (fullMap) {
|
69
|
+
return [bp, breakpointBooleanMap];
|
70
|
+
}
|
71
|
+
else {
|
72
|
+
return bp;
|
73
|
+
}
|
74
|
+
};
|
75
|
+
GIPIBreakpointService.ctorParameters = function () { return [
|
76
|
+
{ type: GIPIResizeService },
|
77
|
+
{ type: MediaMatcher }
|
78
|
+
]; };
|
79
|
+
GIPIBreakpointService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function GIPIBreakpointService_Factory() { return new GIPIBreakpointService(i0.ɵɵinject(i1.GIPIResizeService), i0.ɵɵinject(i2.MediaMatcher)); }, token: GIPIBreakpointService, providedIn: "root" });
|
80
|
+
GIPIBreakpointService = __decorate([
|
81
|
+
Injectable({
|
82
|
+
providedIn: 'root'
|
83
|
+
}),
|
84
|
+
__metadata("design:paramtypes", [GIPIResizeService,
|
85
|
+
MediaMatcher])
|
86
|
+
], GIPIBreakpointService);
|
87
|
+
return GIPIBreakpointService;
|
88
|
+
}());
|
89
|
+
export { GIPIBreakpointService };
|
90
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWtwb2ludC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGdpcGlzaXN0ZW1hcy9uZy1jb3JlLyIsInNvdXJjZXMiOlsic2hhcmVkL2dpcGktY29tcG9uZW50cy9sYXlvdXQtZ3JpZC9zZXJ2aWNlcy9icmVha3BvaW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8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3BvaW50Qm9vbGVhbk1hcFticmVha3BvaW50IGFzIEJyZWFrcG9pbnRFbnVtXSA9IG1hdGNoZWQ7XG5cbiAgICAgICAgICAgIGlmIChtYXRjaGVkKSB7XG4gICAgICAgICAgICAgICAgYnAgPSBjYXN0QlA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGlmIChmdWxsTWFwKSB7XG4gICAgICAgICAgICByZXR1cm4gW2JwLCBicmVha3BvaW50Qm9vbGVhbk1hcCBhcyBCcmVha3BvaW50Qm9vbGVhbk1hcF07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gYnA7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbiJdfQ==
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
2
|
+
import { Injectable, NgZone, OnDestroy, Renderer2, RendererFactory2 } from '@angular/core';
|
3
|
+
import { Subject } from 'rxjs';
|
4
|
+
import { auditTime, finalize } from 'rxjs/operators';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
var NOOP = function () { };
|
7
|
+
var ɵ0 = NOOP;
|
8
|
+
var GIPIResizeService = /** @class */ (function () {
|
9
|
+
function GIPIResizeService(ngZone, rendererFactory2) {
|
10
|
+
var _this = this;
|
11
|
+
this.ngZone = ngZone;
|
12
|
+
this.rendererFactory2 = rendererFactory2;
|
13
|
+
this.resizeSource$ = new Subject();
|
14
|
+
this.listeners = 0;
|
15
|
+
this.disposeHandle = NOOP;
|
16
|
+
this.handler = function () {
|
17
|
+
_this.ngZone.run(function () {
|
18
|
+
_this.resizeSource$.next();
|
19
|
+
});
|
20
|
+
};
|
21
|
+
this.renderer = this.rendererFactory2.createRenderer(null, null);
|
22
|
+
}
|
23
|
+
GIPIResizeService.prototype.ngOnDestroy = function () {
|
24
|
+
// Caretaker note: the `handler` is an instance property (it's not defined on the class prototype).
|
25
|
+
// The `handler` captures `this` and prevents the `GIPIResizeService` from being GC'd.
|
26
|
+
this.handler = NOOP;
|
27
|
+
};
|
28
|
+
GIPIResizeService.prototype.subscribe = function () {
|
29
|
+
var _this = this;
|
30
|
+
this.registerListener();
|
31
|
+
return this.resizeSource$.pipe(auditTime(16), finalize(function () { return _this.unregisterListener(); }));
|
32
|
+
};
|
33
|
+
GIPIResizeService.prototype.unsubscribe = function () {
|
34
|
+
this.unregisterListener();
|
35
|
+
};
|
36
|
+
GIPIResizeService.prototype.registerListener = function () {
|
37
|
+
var _this = this;
|
38
|
+
if (this.listeners === 0) {
|
39
|
+
this.ngZone.runOutsideAngular(function () {
|
40
|
+
_this.disposeHandle = _this.renderer.listen('window', 'resize', _this.handler);
|
41
|
+
});
|
42
|
+
}
|
43
|
+
this.listeners += 1;
|
44
|
+
};
|
45
|
+
GIPIResizeService.prototype.unregisterListener = function () {
|
46
|
+
this.listeners -= 1;
|
47
|
+
if (this.listeners === 0) {
|
48
|
+
this.disposeHandle();
|
49
|
+
this.disposeHandle = NOOP;
|
50
|
+
}
|
51
|
+
};
|
52
|
+
GIPIResizeService.ctorParameters = function () { return [
|
53
|
+
{ type: NgZone },
|
54
|
+
{ type: RendererFactory2 }
|
55
|
+
]; };
|
56
|
+
GIPIResizeService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function GIPIResizeService_Factory() { return new GIPIResizeService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.RendererFactory2)); }, token: GIPIResizeService, providedIn: "root" });
|
57
|
+
GIPIResizeService = __decorate([
|
58
|
+
Injectable({
|
59
|
+
providedIn: 'root'
|
60
|
+
}),
|
61
|
+
__metadata("design:paramtypes", [NgZone,
|
62
|
+
RendererFactory2])
|
63
|
+
], GIPIResizeService);
|
64
|
+
return GIPIResizeService;
|
65
|
+
}());
|
66
|
+
export { GIPIResizeService };
|
67
|
+
export { ɵ0 };
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplLnNlcnZpY2Uuan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dGVyTGlzdGVuZXIoKTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHJlZ2lzdGVyTGlzdGVuZXIoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLmxpc3RlbmVycyA9PT0gMCkge1xuICAgICAgICAgICAgdGhpcy5uZ1pvbmUucnVuT3V0c2lkZUFuZ3VsYXIoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMuZGlzcG9zZUhhbmRsZSA9IHRoaXMucmVuZGVyZXIubGlzdGVuKCd3aW5kb3cnLCAncmVzaXplJywgdGhpcy5oYW5kbGVyKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5saXN0ZW5lcnMgKz0gMTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHVucmVnaXN0ZXJMaXN0ZW5lcigpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5saXN0ZW5lcnMgLT0gMTtcblxuICAgICAgICBpZiAodGhpcy5saXN0ZW5lcnMgPT09IDApIHtcbiAgICAgICAgICAgIHRoaXMuZGlzcG9zZUhhbmRsZSgpO1xuICAgICAgICAgICAgdGhpcy5kaXNwb3NlSGFuZGxlID0gTk9PUDtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuIl19
|
@@ -0,0 +1,200 @@
|
|
1
|
+
import { __decorate, __metadata, __read, __spread } from "tslib";
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, Component, forwardRef, OnDestroy, OnInit } from '@angular/core';
|
3
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
+
import { Subject, Subscription } from 'rxjs';
|
5
|
+
import * as moment_ from 'moment';
|
6
|
+
var moment = moment_;
|
7
|
+
import { matDatepickerAnimations } from '@angular/material/datepicker';
|
8
|
+
import { ObjectUtil } from '../../../../core/utils/object.util';
|
9
|
+
var CalendarMonthYearComponent = /** @class */ (function () {
|
10
|
+
function CalendarMonthYearComponent(_changeDetectorRef) {
|
11
|
+
this._changeDetectorRef = _changeDetectorRef;
|
12
|
+
this._subscriptions = new Subscription();
|
13
|
+
this._animationState = 'enter';
|
14
|
+
this._animationDone = new Subject();
|
15
|
+
this.years = [];
|
16
|
+
this.months = [];
|
17
|
+
this._calendarView = 'both';
|
18
|
+
}
|
19
|
+
CalendarMonthYearComponent_1 = CalendarMonthYearComponent;
|
20
|
+
CalendarMonthYearComponent.prototype.ngOnInit = function () {
|
21
|
+
if (this._locale) {
|
22
|
+
moment.locale(this._locale);
|
23
|
+
}
|
24
|
+
else {
|
25
|
+
moment.locale('pt-br');
|
26
|
+
}
|
27
|
+
this.months = __spread(this.monthYearPicker.model.months);
|
28
|
+
this._calendarView = this.monthYearPicker.calendarView;
|
29
|
+
if (this._calendarView === 'year') {
|
30
|
+
this.toggleShowYears();
|
31
|
+
}
|
32
|
+
this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex, this.monthYearPicker.model.selectedMonthYear);
|
33
|
+
};
|
34
|
+
CalendarMonthYearComponent.prototype.ngAfterViewInit = function () {
|
35
|
+
var _this = this;
|
36
|
+
if (this._changeDetectorRef) {
|
37
|
+
this._subscriptions.add(this.monthYearPicker._stateChanges.subscribe(function () {
|
38
|
+
_this._changeDetectorRef.markForCheck();
|
39
|
+
}));
|
40
|
+
}
|
41
|
+
};
|
42
|
+
CalendarMonthYearComponent.prototype.ngOnDestroy = function () {
|
43
|
+
this._subscriptions.unsubscribe();
|
44
|
+
this._animationDone.complete();
|
45
|
+
};
|
46
|
+
CalendarMonthYearComponent.prototype._startExitAnimation = function () {
|
47
|
+
this._animationState = 'void';
|
48
|
+
if (this._changeDetectorRef) {
|
49
|
+
this._changeDetectorRef.markForCheck();
|
50
|
+
}
|
51
|
+
};
|
52
|
+
CalendarMonthYearComponent.prototype.decrement = function () {
|
53
|
+
this.monthYearPicker.model.decrementYear();
|
54
|
+
if (this.isShowYears) {
|
55
|
+
this._renderYears();
|
56
|
+
}
|
57
|
+
};
|
58
|
+
CalendarMonthYearComponent.prototype.increment = function () {
|
59
|
+
this.monthYearPicker.model.incrementYear();
|
60
|
+
if (this.isShowYears) {
|
61
|
+
this._renderYears();
|
62
|
+
}
|
63
|
+
};
|
64
|
+
CalendarMonthYearComponent.prototype.selectMonth = function (index) {
|
65
|
+
this.monthYearPicker.model.selectMonth(index);
|
66
|
+
this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex, this.monthYearPicker.model.selectedMonthYear);
|
67
|
+
this.monthYearPicker.close();
|
68
|
+
};
|
69
|
+
CalendarMonthYearComponent.prototype.isSelectedMonth = function (monthIndex) {
|
70
|
+
return this.monthYearPicker.model.selectedMonthIndex == monthIndex && this.monthYearPicker.model.selectedMonthYear == this.monthYearPicker.model.selectedYearMoment.year();
|
71
|
+
};
|
72
|
+
CalendarMonthYearComponent.prototype.isCurrentMonth = function (monthIndex) {
|
73
|
+
var currentMonth = moment().month();
|
74
|
+
var currentYear = moment().year();
|
75
|
+
return (monthIndex === currentMonth) && (this.monthYearPicker.model.selectedYearMoment.year() === currentYear);
|
76
|
+
};
|
77
|
+
CalendarMonthYearComponent.prototype.isDisabledMonth = function (index) {
|
78
|
+
var disabled = false;
|
79
|
+
if (!ObjectUtil.isNull(this.monthYearPicker)) {
|
80
|
+
var minMonth = !ObjectUtil.isNull(this.monthYearPicker.min) ? this.monthYearPicker.min.month : null;
|
81
|
+
var maxMonth = !ObjectUtil.isNull(this.monthYearPicker.max) ? this.monthYearPicker.max.month : null;
|
82
|
+
if (!ObjectUtil.isNull(minMonth) && !ObjectUtil.isNull(maxMonth)) {
|
83
|
+
disabled = index < minMonth || index > maxMonth;
|
84
|
+
}
|
85
|
+
else if (!ObjectUtil.isNull(minMonth)) {
|
86
|
+
disabled = index < minMonth;
|
87
|
+
}
|
88
|
+
else if (!ObjectUtil.isNull(maxMonth)) {
|
89
|
+
disabled = index > maxMonth;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
return disabled;
|
93
|
+
// let disabled = false;
|
94
|
+
// if (this._enabledMonths && this._enabledMonths.length > 0) {
|
95
|
+
// disabled = this._enabledMonths.indexOf(index) < 0;
|
96
|
+
// }
|
97
|
+
// if (this._disabledMonths && this._disabledMonths.length > 0) {
|
98
|
+
// disabled = this._disabledMonths.indexOf(index) >= 0;
|
99
|
+
// }
|
100
|
+
// return disabled;
|
101
|
+
};
|
102
|
+
/** Years */
|
103
|
+
CalendarMonthYearComponent.prototype.toggleShowYears = function () {
|
104
|
+
this.isShowYears = !this.isShowYears;
|
105
|
+
this._renderYears();
|
106
|
+
};
|
107
|
+
CalendarMonthYearComponent.prototype._renderYears = function () {
|
108
|
+
this.years = [];
|
109
|
+
for (var i = 11; i > 0; i--) {
|
110
|
+
this.years.push(this.monthYearPicker.model.selectedYearMoment.year() - i);
|
111
|
+
}
|
112
|
+
for (var i = 0; i <= 12; i++) {
|
113
|
+
this.years.push(this.monthYearPicker.model.selectedYearMoment.year() + i);
|
114
|
+
}
|
115
|
+
};
|
116
|
+
Object.defineProperty(CalendarMonthYearComponent.prototype, "periodButtonLabel", {
|
117
|
+
get: function () {
|
118
|
+
var formatYearRange = function (start, end) {
|
119
|
+
return start + " \u2013 " + end;
|
120
|
+
};
|
121
|
+
return this.isShowYears ? formatYearRange(this.years[0], this.years[this.years.length - 1]) : this.monthYearPicker.model.selectedYearText;
|
122
|
+
},
|
123
|
+
enumerable: false,
|
124
|
+
configurable: true
|
125
|
+
});
|
126
|
+
CalendarMonthYearComponent.prototype.selectYear = function (year) {
|
127
|
+
if (this._calendarView === 'both') {
|
128
|
+
this.isShowYears = false;
|
129
|
+
}
|
130
|
+
this.monthYearPicker.model.selectedYearMoment = moment().year(year);
|
131
|
+
this.monthYearPicker.model.updateYearText();
|
132
|
+
if (this._calendarView === 'year') {
|
133
|
+
this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex, year);
|
134
|
+
this.monthYearPicker.close();
|
135
|
+
}
|
136
|
+
};
|
137
|
+
CalendarMonthYearComponent.prototype.isSelectedYear = function (year) {
|
138
|
+
return this.monthYearPicker.model.selectedYearMoment.year() === year;
|
139
|
+
};
|
140
|
+
CalendarMonthYearComponent.prototype.isCurrentYear = function (year) {
|
141
|
+
return moment().year() === year;
|
142
|
+
};
|
143
|
+
CalendarMonthYearComponent.prototype.isDisabledYear = function (index) {
|
144
|
+
var disabled = false;
|
145
|
+
if (!ObjectUtil.isNull(this.monthYearPicker)) {
|
146
|
+
var minYear = !ObjectUtil.isNull(this.monthYearPicker.min) ? this.monthYearPicker.min.year : null;
|
147
|
+
var maxYear = !ObjectUtil.isNull(this.monthYearPicker.max) ? this.monthYearPicker.max.year : null;
|
148
|
+
if (!ObjectUtil.isNull(minYear) && !ObjectUtil.isNull(maxYear)) {
|
149
|
+
disabled = index < minYear || index > maxYear;
|
150
|
+
}
|
151
|
+
else if (!ObjectUtil.isNull(minYear)) {
|
152
|
+
disabled = index < minYear;
|
153
|
+
}
|
154
|
+
else if (!ObjectUtil.isNull(maxYear)) {
|
155
|
+
disabled = index > maxYear;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
return disabled;
|
159
|
+
// let disabled: boolean = false;
|
160
|
+
// if (this._enabledYears && this._enabledYears.length > 0) {
|
161
|
+
// disabled = this._enabledYears.findIndex(y => y === year) < 0;
|
162
|
+
// }
|
163
|
+
// if (this._disabledYears && this._disabledYears.length > 0) {
|
164
|
+
// disabled = this._disabledYears.findIndex(y => y === year) >= 0;
|
165
|
+
// }
|
166
|
+
// return disabled;
|
167
|
+
};
|
168
|
+
var CalendarMonthYearComponent_1;
|
169
|
+
CalendarMonthYearComponent.ctorParameters = function () { return [
|
170
|
+
{ type: ChangeDetectorRef }
|
171
|
+
]; };
|
172
|
+
CalendarMonthYearComponent = CalendarMonthYearComponent_1 = __decorate([
|
173
|
+
Component({
|
174
|
+
selector: 'gipi-calendar-month-year',
|
175
|
+
exportAs: 'gipiMonthYearPicker',
|
176
|
+
template: "<div class=\"month-picker\">\n <div class=\"card-header\">\n <button class=\"month-btn btn-control\"\n [class.fixed]=\"(_calendarView === 'year')\"\n (click)=\"(_calendarView === 'both') ? toggleShowYears() : null\">\n {{ periodButtonLabel }}\n\n <div *ngIf=\"(_calendarView === 'both')\"\n class=\"btn-icon-arrow\"\n [class.icon-arrow-invert]=\"isShowYears\">\n </div>\n </button>\n\n <div class=\"card-prev-next\">\n <button class=\"month-btn btn-decrement\"\n (click)=\"decrement()\">\n <mat-icon> chevron_left </mat-icon>\n </button>\n\n <button class=\"month-btn btn-increment\"\n (click)=\"increment()\">\n <mat-icon> chevron_right </mat-icon>\n </button>\n </div>\n </div>\n\n <div class=\"card-body\">\n <ng-container *ngIf=\"!isShowYears && (_calendarView === 'both')\">\n <div *ngFor=\"let month of months; let i = index\">\n <button class=\"month-btn btn-block\"\n [class.selected]=\"isSelectedMonth(i)\"\n [class.current]=\"isCurrentMonth(i)\"\n [disabled]=\"isDisabledMonth(i)\"\n (click)=\"selectMonth(i)\">\n {{ month }}\n </button>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"isShowYears && ((_calendarView === 'both') || (_calendarView === 'year'))\">\n <div *ngFor=\"let year of years; let i = index\">\n <button class=\"month-btn btn-block\"\n [class.selected]=\"isSelectedYear(year)\"\n [class.current]=\"isCurrentYear(year)\"\n [disabled]=\"isDisabledYear(year)\"\n (click)=\"selectYear(year)\">\n {{ year }}\n </button>\n </div>\n </ng-container>\n </div>\n</div>",
|
177
|
+
providers: [
|
178
|
+
{
|
179
|
+
provide: NG_VALUE_ACCESSOR,
|
180
|
+
useExisting: forwardRef(function () { return CalendarMonthYearComponent_1; }),
|
181
|
+
multi: true
|
182
|
+
},
|
183
|
+
],
|
184
|
+
animations: [
|
185
|
+
matDatepickerAnimations.transformPanel,
|
186
|
+
matDatepickerAnimations.fadeInCalendar,
|
187
|
+
],
|
188
|
+
host: {
|
189
|
+
'class': 'gipi-calendar-month-year',
|
190
|
+
'[@transformPanel]': '_animationState',
|
191
|
+
'(@transformPanel.done)': '_animationDone.next()',
|
192
|
+
},
|
193
|
+
styles: [".month-picker{display:flex;flex-direction:column;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);background-color:#fff;color:rgba(0,0,0,.87);padding:1rem;width:30rem;height:36.5rem}.month-picker .card-header{display:flex;justify-content:space-between;gap:1rem;padding-bottom:2rem;border-bottom:1px solid #595959}.month-picker .card-header .card-prev-next{display:flex;gap:1rem;align-items:center}.month-picker .card-body{display:-ms-grid;display:grid;-ms-grid-rows:(1fr)[6];grid-template-rows:repeat(6,1fr);-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr);grid-auto-flow:row dense;gap:.6rem;padding-top:1.6rem}.month-btn{display:flex;align-items:center;justify-content:center;gap:.4rem;border-radius:4px;outline:0;border:1px solid transparent;padding:1rem;cursor:pointer;background-color:transparent;transition:.2s;text-transform:uppercase;color:#595959}.month-btn>mat-icon{font-size:2rem;width:2rem;height:2rem;line-height:2rem}.month-btn:not(:disabled).btn-control{height:3.6rem;font-weight:700}.month-btn:not(:disabled).btn-control.fixed{cursor:default}.month-btn:not(:disabled).btn-control:not(.fixed):hover{background-color:#f0f0f0}.month-btn:not(:disabled).btn-decrement,.month-btn:not(:disabled).btn-increment{width:3.6rem;height:3.6rem;background-color:#e0313e;color:#fff}.month-btn:not(:disabled).btn-decrement:hover,.month-btn:not(:disabled).btn-increment:hover{background-color:#cc2d38}.month-btn:not(:disabled).btn-block{width:96%;height:96%;background-color:#f0f0f0;color:#595959;border-radius:.6rem;max-height:3.5rem}.month-btn:not(:disabled).btn-block:hover,.month-btn:not(:disabled).selected{background-color:#e0313e;color:#fff}.month-btn:not(:disabled).selected.current{box-shadow:inset 0 0 0 1px #fff!important}.month-btn:not(:disabled).current{box-shadow:inset 0 0 0 1px #e0313e!important}.month-btn:disabled{cursor:not-allowed;opacity:.6;color:#9a9da2}.btn-icon-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:solid transparent;border-top-width:5PX;border-top-style:solid;margin:0 0 0 5PX;vertical-align:middle}.btn-icon-arrow.icon-arrow-invert{transform:rotate(180deg)}"]
|
194
|
+
}),
|
195
|
+
__metadata("design:paramtypes", [ChangeDetectorRef])
|
196
|
+
], CalendarMonthYearComponent);
|
197
|
+
return CalendarMonthYearComponent;
|
198
|
+
}());
|
199
|
+
export { CalendarMonthYearComponent };
|
200
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXItbW9udGgteWVhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZ2lwaXNpc3RlbWFzL25nLWNvcmUvIiwic291cmNlcyI6WyJzaGFyZWQvZ2lwaS1jb21wb25lbnRzL21vbnRoLXllYXItcGlja2VyL2NhbGVuZGFyLW1vbnRoLXllYXIvY2FsZW5kYXItbW9udGgteWVhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNHLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRTdDLE9BQU8sS0FBSyxPQUFPLE1BQU0sUUFBUSxDQUFDO0FBQ2xDLElBQU0sTUFBTSxHQUFHLE9BQU8sQ0FBQztBQUV2QixPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUN2RSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUF3QmhFO0lBdUJJLG9DQUFvQixrQkFBcUM7UUFBckMsdUJBQWtCLEdBQWxCL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4gICAgICAgICAgICAgICAgICAgIHRoaXMuX2NoYW5nZURldGVjdG9yUmVmIS5tYXJrRm9yQ2hlY2soKTtcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgICAgICB0aGlzLl9zdWJzY3JpcHRpb25zLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgIHRoaXMuX2FuaW1hdGlvbkRvbmUuY29tcGxldGUoKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgX3N0YXJ0RXhpdEFuaW1hdGlvbigpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5fYW5pbWF0aW9uU3RhdGUgPSAndm9pZCc7XG4gICAgICAgIGlmICh0aGlzLl9jaGFuZ2VEZXRlY3RvclJlZikge1xuICAgICAgICAgICAgdGhpcy5fY2hhbmdlRGV0ZWN0b3JSZWYubWFya0ZvckNoZWNrKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwdWJsaWMgZGVjcmVtZW50KCk6IHZvaWQge1xuICAgICAgICB0aGlzLm1vbnRoWWVhclBpY2tlci5tb2RlbC5kZWNyZW1lbnRZZWFyKCk7XG4gICAgICAgIGlmICh0aGlzLmlzU2hvd1llYXJzKSB7XG4gICAgICAgICAgICB0aGlzLl9yZW5kZXJZZWFycygpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIGluY3JlbWVudCgpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuaW5jcmVtZW50WWVhcigpO1xuICAgICAgICBpZiAodGhpcy5pc1Nob3dZZWFycykge1xuICAgICAgICAgICAgdGhpcy5fcmVuZGVyWWVhcnMoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHB1YmxpYyBzZWxlY3RNb250aChpbmRleDogbnVtYmVyKSB7XG4gICAgICAgIHRoaXMubW9udGhZZWFyUGlja2VyLm1vZGVsLnNlbGVjdE1vbnRoKGluZGV4KTtcbiAgICAgICAgdGhpcy5tb250aFllYXJQaWNrZXIub25WYWx1ZUNoYW5nZSh0aGlzLm1vbnRoWWVhclBpY2tlci5tb2RlbC5zZWxlY3RlZE1vbnRoSW5kZXgsIHRoaXMubW9udGhZZWFyUGlja2VyLm1vZGVsLnNlbGVjdGVkTW9udGhZZWFyKTtcbiAgICAgICAgdGhpcy5tb250aFllYXJQaWNrZXIuY2xvc2UoKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNTZWxlY3RlZE1vbnRoKG1vbnRoSW5kZXg6IG51bWJlcikge1xuICAgICAgICByZXR1cm4gdGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuc2VsZWN0ZWRNb250aEluZGV4ID09IG1vbnRoSW5kZXggJiYgdGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuc2VsZWN0ZWRNb250aFllYXIgPT0gdGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuc2VsZWN0ZWRZZWFyTW9tZW50LnllYXIoKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNDdXJyZW50TW9udGgobW9udGhJbmRleDogbnVtYmVyKSB7XG4gICAgICAgIGNvbnN0IGN1cnJlbnRNb250aDogbnVtYmVyID0gbW9tZW50KCkubW9udGgoKTtcbiAgICAgICAgY29uc3QgY3VycmVudFllYXI6IG51bWJlciA9IG1vbWVudCgpLnllYXIoKTtcbiAgICAgICAgcmV0dXJuIChtb250aEluZGV4ID09PSBjdXJyZW50TW9udGgpICYmICh0aGlzLm1vbnRoWWVhclBpY2tlci5tb2RlbC5zZWxlY3RlZFllYXJNb21lbnQueWVhcigpID09PSBjdXJyZW50WWVhcik7XG4gICAgfVxuXG4gICAgcHVibGljIGlzRGlzYWJsZWRNb250aChpbmRleDogbnVtYmVyKTogYm9vbGVhbiB7XG4gICAgICAgIGxldCBkaXNhYmxlZCA9IGZhbHNlO1xuXG4gICAgICAgIGlmICghT2JqZWN0VXRpbC5pc051bGwodGhpcy5tb250aFllYXJQaWNrZXIpKSB7XG4gICAgICAgICAgICBjb25zdCBtaW5Nb250aCA9ICFPYmplY3RVdGlsLmlzTnVsbCh0aGlzLm1vbnRoWWVhclBpY2tlci5taW4pID8gdGhpcy5tb250aFllYXJQaWNrZXIubWluLm1vbnRoIDogbnVsbDtcbiAgICAgICAgICAgIGNvbnN0IG1heE1vbnRoID0gIU9iamVjdFV0aWwuaXNOdWxsKHRoaXMubW9udGhZZWFyUGlja2VyLm1heCkgPyB0aGlzLm1vbnRoWWVhclBpY2tlci5tYXgubW9udGggOiBudWxsO1xuXG4gICAgICAgICAgICBpZiAoIU9iamVjdFV0aWwuaXNOdWxsKG1pbk1vbnRoKSAmJiAhT2JqZWN0VXRpbC5pc051bGwobWF4TW9udGgpKSB7XG4gICAgICAgICAgICAgICAgZGlzYWJsZWQgPSBpbmRleCA8IG1pbk1vbnRoIHx8IGluZGV4ID4gbWF4TW9udGg7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCFPYmplY3RVdGlsLmlzTnVsbChtaW5Nb250aCkpIHtcbiAgICAgICAgICAgICAgICBkaXNhYmxlZCA9IGluZGV4IDwgbWluTW9udGg7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCFPYmplY3RVdGlsLmlzTnVsbChtYXhNb250aCkpIHtcbiAgICAgICAgICAgICAgICBkaXNhYmxlZCA9IGluZGV4ID4gbWF4TW9udGg7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZGlzYWJsZWQ7XG4gICAgICAgIC8vIGxldCBkaXNhYmxlZCA9IGZhbHNlO1xuICAgICAgICAvLyBpZiAodGhpcy5fZW5hYmxlZE1vbnRocyAmJiB0aGlzLl9lbmFibGVkTW9udGhzLmxlbmd0aCA+IDApIHtcbiAgICAgICAgLy8gICAgIGRpc2FibGVkID0gdGhpcy5fZW5hYmxlZE1vbnRocy5pbmRleE9mKGluZGV4KSA8IDA7XG4gICAgICAgIC8vIH1cbiAgICAgICAgLy8gaWYgKHRoaXMuX2Rpc2FibGVkTW9udGhzICYmIHRoaXMuX2Rpc2FibGVkTW9udGhzLmxlbmd0aCA+IDApIHtcbiAgICAgICAgLy8gICAgIGRpc2FibGVkID0gdGhpcy5fZGlzYWJsZWRNb250aHMuaW5kZXhPZihpbmRleCkgPj0gMDtcbiAgICAgICAgLy8gfVxuICAgICAgICAvLyByZXR1cm4gZGlzYWJsZWQ7XG4gICAgfVxuXG4gICAgLyoqIFllYXJzICovXG4gICAgcHVibGljIHRvZ2dsZVNob3dZZWFycygpIHtcbiAgICAgICAgdGhpcy5pc1Nob3dZZWFycyA9ICF0aGlzLmlzU2hvd1llYXJzO1xuICAgICAgICB0aGlzLl9yZW5kZXJZZWFycygpO1xuICAgIH1cblxuICAgIHByaXZhdGUgX3JlbmRlclllYXJzKCkge1xuICAgICAgICB0aGlzLnllYXJzID0gW107XG4gICAgICAgIGZvciAobGV0IGkgPSAxMTsgaSA+IDA7IGktLSkge1xuICAgICAgICAgICAgdGhpcy55ZWFycy5wdXNoKHRoaXMubW9udGhZZWFyUGlja2VyLm1vZGVsLnNlbGVjdGVkWWVhck1vbWVudC55ZWFyKCkgLSBpKTtcbiAgICAgICAgfVxuICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8PSAxMjsgaSsrKSB7XG4gICAgICAgICAgICB0aGlzLnllYXJzLnB1c2godGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuc2VsZWN0ZWRZZWFyTW9tZW50LnllYXIoKSArIGkpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIGdldCBwZXJpb2RCdXR0b25MYWJlbCgpOiBzdHJpbmcge1xuICAgICAgICBjb25zdCBmb3JtYXRZZWFyUmFuZ2UgPSAoc3RhcnQ6IG51bWJlciwgZW5kOiBudW1iZXIpOiBzdHJpbmcgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIGAke3N0YXJ0fSBcXHUyMDEzICR7ZW5kfWA7XG4gICA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udCgpLnllYXIoKSA9PT0geWVhcjtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNEaXNhYmxlZFllYXIoaW5kZXg6IG51bWJlcikge1xuICAgICAgICBsZXQgZGlzYWJsZWQgPSBmYWxzZTtcblxuICAgICAgICBpZiAoIU9iamVjdFV0aWwuaXNOdWxsKHRoaXMubW9udGhZZWFyUGlja2VyKSkge1xuICAgICAgICAgICAgY29uc3QgbWluWWVhciA9ICFPYmplY3RVdGlsLmlzTnVsbCh0aGlzLm1vbnRoWWVhclBpY2tlci5taW4pID8gdGhpcy5tb250aFllYXJQaWNrZXIubWluLnllYXIgOiBudWxsO1xuICAgICAgICAgICAgY29uc3QgbWF4WWVhciA9ICFPYmplY3RVdGlsLmlzTnVsbCh0aGlzLm1vbnRoWWVhclBpY2tlci5tYXgpID8gdGhpcy5tb250aFllYXJQaWNrZXIubWF4LnllYXIgOiBudWxsO1xuXG4gICAgICAgICAgICBpZiAoIU9iamVjdFV0aWwuaXNOdWxsKG1pblllYXIpICYmICFPYmplY3RVdGlsLmlzTnVsbChtYXhZZWFyKSkge1xuICAgICAgICAgICAgICAgIGRpc2FibGVkID0gaW5kZXggPCBtaW5ZZWFyIHx8IGluZGV4ID4gbWF4WWVhcjtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIU9iamVjdFV0aWwuaXNOdWxsKG1pblllYXIpKSB7XG4gICAgICAgICAgICAgICAgZGlzYWJsZWQgPSBpbmRleCA8IG1pblllYXI7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCFPYmplY3RVdGlsLmlzTnVsbChtYXhZZWFyKSkge1xuICAgICAgICAgICAgICAgIGRpc2FibGVkID0gaW5kZXggPiBtYXhZZWFyO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGRpc2FibGVkO1xuXG4gICAgICAgIC8vIGxldCBkaXNhYmxlZDogYm9vbGVhbiA9IGZhbHNlO1xuICAgICAgICAvLyBpZiAodGhpcy5fZW5hYmxlZFllYXJzICYmIHRoaXMuX2VuYWJsZWRZZWFycy5sZW5ndGggPiAwKSB7XG4gICAgICAgIC8vICAgICBkaXNhYmxlZCA9IHRoaXMuX2VuYWJsZWRZZWFycy5maW5kSW5kZXgoeSA9PiB5ID09PSB5ZWFyKSA8IDA7XG4gICAgICAgIC8vIH1cbiAgICAgICAgLy8gaWYgKHRoaXMuX2Rpc2FibGVkWWVhcnMgJiYgdGhpcy5fZGlzYWJsZWRZZWFycy5sZW5ndGggPiAwKSB7XG4gICAgICAgIC8vICAgICBkaXNhYmxlZCA9IHRoaXMuX2Rpc2FibGVkWWVhcnMuZmluZEluZGV4KHkgPT4geSA9PT0geWVhcikgPj0gMDtcbiAgICAgICAgLy8gfVxuICAgICAgICAvLyByZXR1cm4gZGlzYWJsZWQ7XG4gICAgfVxuXG59XG4iXX0=
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
3
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
4
|
+
import { PortalModule } from '@angular/cdk/portal';
|
5
|
+
import { ScrollingModule } from '@angular/cdk/scrolling';
|
6
|
+
import { CommonModule } from '@angular/common';
|
7
|
+
import { NgModule } from '@angular/core';
|
8
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
9
|
+
import { MatButtonModule } from '@angular/material/button';
|
10
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
11
|
+
import { MatIconModule } from '@angular/material/icon';
|
12
|
+
import { CalendarMonthYearComponent } from './calendar-month-year/calendar-month-year.component';
|
13
|
+
import { GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER, MonthYearPickerComponent } from './month-year-picker.component';
|
14
|
+
var MonthYearPickerModule = /** @class */ (function () {
|
15
|
+
function MonthYearPickerModule() {
|
16
|
+
}
|
17
|
+
MonthYearPickerModule = __decorate([
|
18
|
+
NgModule({
|
19
|
+
imports: [
|
20
|
+
CommonModule,
|
21
|
+
MatButtonModule,
|
22
|
+
MatDialogModule,
|
23
|
+
OverlayModule,
|
24
|
+
A11yModule,
|
25
|
+
PortalModule,
|
26
|
+
MatIconModule,
|
27
|
+
FormsModule,
|
28
|
+
ReactiveFormsModule,
|
29
|
+
],
|
30
|
+
exports: [
|
31
|
+
ScrollingModule,
|
32
|
+
CalendarMonthYearComponent,
|
33
|
+
MonthYearPickerComponent,
|
34
|
+
],
|
35
|
+
declarations: [
|
36
|
+
CalendarMonthYearComponent,
|
37
|
+
MonthYearPickerComponent,
|
38
|
+
],
|
39
|
+
providers: [
|
40
|
+
GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER,
|
41
|
+
],
|
42
|
+
entryComponents: [
|
43
|
+
CalendarMonthYearComponent,
|
44
|
+
],
|
45
|
+
})
|
46
|
+
], MonthYearPickerModule);
|
47
|
+
return MonthYearPickerModule;
|
48
|
+
}());
|
49
|
+
export { MonthYearPickerModule };
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udC15ZWFyLXBpY2tlci5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZ2lwaXNpc3RlbWFzL25nLWNvcmUvIiwic291cmNlcyI6WyJzaGFyZWQvZ2lwaS1jb21wb25lbnRzL21vbnRoLXllYXItcGlja2VyL21vbnQteWVhci1waWNrZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDL0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNuRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDekQsT0FBTyxFQUFFL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XG4gICAgaW1wb3J0czogW1xuICAgICAgICBDb21tb25Nb2R1bGUsXG4gICAgICAgIE1hdEJ1dHRvbk1vZHVsZSxcbiAgICAgICAgTWF0RGlhbG9nTW9kdWxlLFxuICAgICAgICBPdmVybGF5TW9kdWxlLFxuICAgICAgICBBMTF5TW9kdWxlLFxuICAgICAgICBQb3J0YWxNb2R1bGUsXG4gICAgICAgIE1hdEljb25Nb2R1bGUsXG4gICAgICAgIEZvcm1zTW9kdWxlLFxuICAgICAgICBSZWFjdGl2ZUZvcm1zTW9kdWxlLFxuICAgIF0sXG4gICAgZXhwb3J0czogW1xuICAgICAgICBTY3JvbGxpbmdNb2R1bGUsXG4gICAgICAgIENhbGVuZGFyTW9udGhZZWFyQ29tcG9uZW50LFxuICAgICAgICBNb250aFllYXJQaWNrZXJDb21wb25lbnQsXG4gICAgXSxcbiAgICBkZWNsYXJhdGlvbnM6IFtcbiAgICAgICAgQ2FsZW5kYXJNb250aFllYXJDb21wb25lbnQsXG4gICAgICAgIE1vbnRoWWVhclBpY2tlckNvbXBvbmVudCxcbiAgICBdLFxuICAgIHByb3ZpZGVyczogW1xuICAgICAgICBHSVBJX01PTlRIX1lFQVJfU0NST0xMX1NUUkFURUdZX0ZBQ1RPUllfUFJPVklERVIsXG4gICAgXSxcbiAgICBlbnRyeUNvbXBvbmVudHM6IFtcbiAgICAgICAgQ2FsZW5kYXJNb250aFllYXJDb21wb25lbnQsXG4gICAgXSxcbn0pXG5leHBvcnQgY2xhc3MgTW9udGhZZWFyUGlja2VyTW9kdWxlIHsgfVxuIl19
|