@gipisistemas/ng-core 1.0.68 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +38 -0
- package/_ITSS-NG-CI-CD.yml +53 -0
- package/_ITSS-NG-CI-PR.yml +53 -0
- package/angular-cli.json +42 -0
- package/azure-pipelines.yml +35 -0
- package/package.json +83 -31
- package/projects/itss-ng/ng-package.json +7 -0
- package/projects/itss-ng/package.json +25 -0
- package/assets/styles/colors.scss +0 -261
- package/assets/styles/layout-grid.scss +0 -146
- package/assets/styles/styles.scss +0 -149
- package/assets/styles/theme.scss +0 -22
- package/assets/styles/typography.scss +0 -54
- package/assets/styles/variable.scss +0 -41
- package/bundles/gipisistemas-ng-core.umd.js +0 -28311
- package/bundles/gipisistemas-ng-core.umd.js.map +0 -1
- package/bundles/gipisistemas-ng-core.umd.min.js +0 -66
- package/bundles/gipisistemas-ng-core.umd.min.js.map +0 -1
- package/core/app-messages.d.ts +0 -9
- package/core/app.messages.d.ts +0 -4
- package/core/components/abstract-crud.component.d.ts +0 -27
- package/core/components/abstract-find.component.d.ts +0 -43
- package/core/components/abstract.component.d.ts +0 -23
- package/core/components/alert/alert.component.d.ts +0 -7
- package/core/core.module.d.ts +0 -17
- package/core/custom-breakpoints.d.ts +0 -7
- package/core/enums/local-time.enum.d.ts +0 -5
- package/core/extensions/string.extension.d.ts +0 -3
- package/core/gipi-components/components/abstract-crud.component.d.ts +0 -25
- package/core/gipi-components/components/abstract-find.component.d.ts +0 -73
- package/core/gipi-components/components/abstract.component.d.ts +0 -38
- package/core/gipi-components/decorators/autowired.decorator.d.ts +0 -7
- package/core/gipi-components/enums/sort-direction.enum.d.ts +0 -5
- package/core/gipi-components/interface/abstract-crud.interface.d.ts +0 -5
- package/core/gipi-components/interface/abstract-find.interface.d.ts +0 -12
- package/core/gipi-components/interface/abstract.interface.d.ts +0 -11
- package/core/gipi-components/interface/base-permission.interface.d.ts +0 -9
- package/core/gipi-components/models/abstract-filter.model.d.ts +0 -9
- package/core/gipi-components/models/abstract.model.d.ts +0 -7
- package/core/gipi-components/models/applied-filter.model.d.ts +0 -9
- package/core/gipi-components/models/dto/abstract.dto.d.ts +0 -7
- package/core/gipi-components/models/page-event.model.d.ts +0 -18
- package/core/gipi-components/models/page.model.d.ts +0 -7
- package/core/gipi-components/models/sort.model.d.ts +0 -6
- package/core/gipi-components/services/abstract-crud.service.d.ts +0 -83
- package/core/gipi-components/services/abstract.service.d.ts +0 -19
- package/core/gipi-components/services/base.service.d.ts +0 -35
- package/core/gipi-components/services/file.service.d.ts +0 -6
- package/core/gipi-components/services/session-storage.service.d.ts +0 -8
- package/core/gipi-components/types/generic.type.d.ts +0 -1
- package/core/gipi-components/types/uuid.type.d.ts +0 -1
- package/core/guards/auth.guard.d.ts +0 -11
- package/core/guards/permission.guard.d.ts +0 -14
- package/core/guards/public.guard.d.ts +0 -11
- package/core/interceptors/auth.interceptor.d.ts +0 -9
- package/core/interceptors/error.interceptor.d.ts +0 -11
- package/core/models/abstract.model.d.ts +0 -3
- package/core/models/archive.model.d.ts +0 -4
- package/core/models/authority.model.d.ts +0 -3
- package/core/models/base-user.model.d.ts +0 -12
- package/core/models/dto/abstract.dto.d.ts +0 -2
- package/core/models/dto/api-error.dto.d.ts +0 -9
- package/core/models/dto/api-sub-error.dto.d.ts +0 -7
- package/core/models/dto/chart.dto.d.ts +0 -5
- package/core/models/dto/confirmation.dto.d.ts +0 -10
- package/core/models/dto/dialog.dto.d.ts +0 -36
- package/core/models/dto/filter.dto.d.ts +0 -8
- package/core/models/dto/input-listbox.dto.d.ts +0 -6
- package/core/models/dto/menu.dto.d.ts +0 -15
- package/core/models/dto/message.dto.d.ts +0 -7
- package/core/models/dto/page.dto.d.ts +0 -8
- package/core/models/dto/sort.dto.d.ts +0 -7
- package/core/models/dto/tab.dto.d.ts +0 -12
- package/core/models/dto/table-column.dto.d.ts +0 -21
- package/core/models/dto/table-group-header.dto.d.ts +0 -7
- package/core/models/dto/table-page-event.dto.d.ts +0 -6
- package/core/models/dto/token.dto.d.ts +0 -8
- package/core/models/enums/criteria-operation.enum.d.ts +0 -13
- package/core/models/enums/criteria-sort-direction.enum.d.ts +0 -4
- package/core/models/enums/menu-type.enum.d.ts +0 -6
- package/core/models/enums/radio-button.enum.d.ts +0 -6
- package/core/models/enums/sort-direction.enum.d.ts +0 -4
- package/core/models/multitenant.model.d.ts +0 -4
- package/core/models/permission.model.d.ts +0 -8
- package/core/models/role.model.d.ts +0 -7
- package/core/pipes/local-time.pipe.d.ts +0 -6
- package/core/services/abstract-crud.service.d.ts +0 -15
- package/core/services/abstract-find.service.d.ts +0 -30
- package/core/services/abstract.service.d.ts +0 -13
- package/core/services/authentication.service.d.ts +0 -23
- package/core/services/breakpoint-observer.service.d.ts +0 -9
- package/core/services/confirmation.service.d.ts +0 -8
- package/core/services/dialog.service.d.ts +0 -8
- package/core/services/message.service.d.ts +0 -8
- package/core/services/nav.service.d.ts +0 -16
- package/core/services/svg-register.service.d.ts +0 -22
- package/core/types/local-time.type.d.ts +0 -5
- package/core/types/ng-class.type.d.ts +0 -10
- package/core/utils/array.util.d.ts +0 -14
- package/core/utils/browser.util.d.ts +0 -4
- package/core/utils/currency.util.d.ts +0 -6
- package/core/utils/date.util.d.ts +0 -39
- package/core/utils/document.util.d.ts +0 -11
- package/core/utils/email.util.d.ts +0 -4
- package/core/utils/number.util.d.ts +0 -8
- package/core/utils/object.util.d.ts +0 -20
- package/core/utils/password.util.d.ts +0 -11
- package/core/utils/phone.util.d.ts +0 -13
- package/core/utils/string.util.d.ts +0 -9
- package/core/utils/table-column-builder.d.ts +0 -40
- package/core/utils/time.util.d.ts +0 -9
- package/core/utils/url-params.util.d.ts +0 -7
- package/core/utils/uuid.util.d.ts +0 -5
- package/core/utils/zindex.util.d.ts +0 -7
- package/core.d.ts +0 -88
- package/esm2015/core/app-messages.js +0 -1
- package/esm2015/core/app.messages.js +0 -12
- package/esm2015/core/components/abstract-crud.component.js +0 -97
- package/esm2015/core/components/abstract-find.component.js +0 -189
- package/esm2015/core/components/abstract.component.js +0 -110
- package/esm2015/core/components/alert/alert.component.js +0 -24
- package/esm2015/core/core.module.js +0 -103
- package/esm2015/core/custom-breakpoints.js +0 -87
- package/esm2015/core/enums/local-time.enum.js +0 -6
- package/esm2015/core/extensions/string.extension.js +0 -37
- package/esm2015/core/gipi-components/components/abstract-crud.component.js +0 -110
- package/esm2015/core/gipi-components/components/abstract-find.component.js +0 -471
- package/esm2015/core/gipi-components/components/abstract.component.js +0 -140
- package/esm2015/core/gipi-components/decorators/autowired.decorator.js +0 -47
- package/esm2015/core/gipi-components/enums/sort-direction.enum.js +0 -6
- package/esm2015/core/gipi-components/interface/abstract-crud.interface.js +0 -1
- package/esm2015/core/gipi-components/interface/abstract-find.interface.js +0 -1
- package/esm2015/core/gipi-components/interface/abstract.interface.js +0 -1
- package/esm2015/core/gipi-components/interface/base-permission.interface.js +0 -1
- package/esm2015/core/gipi-components/models/abstract-filter.model.js +0 -3
- package/esm2015/core/gipi-components/models/abstract.model.js +0 -3
- package/esm2015/core/gipi-components/models/applied-filter.model.js +0 -19
- package/esm2015/core/gipi-components/models/dto/abstract.dto.js +0 -3
- package/esm2015/core/gipi-components/models/page-event.model.js +0 -35
- package/esm2015/core/gipi-components/models/page.model.js +0 -7
- package/esm2015/core/gipi-components/models/sort.model.js +0 -7
- package/esm2015/core/gipi-components/services/abstract-crud.service.js +0 -109
- package/esm2015/core/gipi-components/services/abstract.service.js +0 -47
- package/esm2015/core/gipi-components/services/base.service.js +0 -102
- package/esm2015/core/gipi-components/services/file.service.js +0 -51
- package/esm2015/core/gipi-components/services/session-storage.service.js +0 -44
- package/esm2015/core/gipi-components/types/generic.type.js +0 -1
- package/esm2015/core/gipi-components/types/uuid.type.js +0 -1
- package/esm2015/core/guards/auth.guard.js +0 -48
- package/esm2015/core/guards/permission.guard.js +0 -61
- package/esm2015/core/guards/public.guard.js +0 -45
- package/esm2015/core/interceptors/auth.interceptor.js +0 -28
- package/esm2015/core/interceptors/error.interceptor.js +0 -110
- package/esm2015/core/models/abstract.model.js +0 -3
- package/esm2015/core/models/archive.model.js +0 -3
- package/esm2015/core/models/authority.model.js +0 -3
- package/esm2015/core/models/base-user.model.js +0 -8
- package/esm2015/core/models/dto/abstract.dto.js +0 -3
- package/esm2015/core/models/dto/api-error.dto.js +0 -8
- package/esm2015/core/models/dto/api-sub-error.dto.js +0 -4
- package/esm2015/core/models/dto/chart.dto.js +0 -4
- package/esm2015/core/models/dto/confirmation.dto.js +0 -8
- package/esm2015/core/models/dto/dialog.dto.js +0 -4
- package/esm2015/core/models/dto/filter.dto.js +0 -4
- package/esm2015/core/models/dto/input-listbox.dto.js +0 -7
- package/esm2015/core/models/dto/menu.dto.js +0 -9
- package/esm2015/core/models/dto/message.dto.js +0 -4
- package/esm2015/core/models/dto/page.dto.js +0 -9
- package/esm2015/core/models/dto/sort.dto.js +0 -9
- package/esm2015/core/models/dto/tab.dto.js +0 -10
- package/esm2015/core/models/dto/table-column.dto.js +0 -24
- package/esm2015/core/models/dto/table-group-header.dto.js +0 -10
- package/esm2015/core/models/dto/table-page-event.dto.js +0 -7
- package/esm2015/core/models/dto/token.dto.js +0 -4
- package/esm2015/core/models/enums/criteria-operation.enum.js +0 -15
- package/esm2015/core/models/enums/criteria-sort-direction.enum.js +0 -6
- package/esm2015/core/models/enums/menu-type.enum.js +0 -7
- package/esm2015/core/models/enums/radio-button.enum.js +0 -8
- package/esm2015/core/models/enums/sort-direction.enum.js +0 -6
- package/esm2015/core/models/multitenant.model.js +0 -4
- package/esm2015/core/models/permission.model.js +0 -11
- package/esm2015/core/models/role.model.js +0 -8
- package/esm2015/core/pipes/local-time.pipe.js +0 -21
- package/esm2015/core/services/abstract-crud.service.js +0 -24
- package/esm2015/core/services/abstract-find.service.js +0 -65
- package/esm2015/core/services/abstract.service.js +0 -30
- package/esm2015/core/services/authentication.service.js +0 -100
- package/esm2015/core/services/breakpoint-observer.service.js +0 -42
- package/esm2015/core/services/confirmation.service.js +0 -55
- package/esm2015/core/services/dialog.service.js +0 -41
- package/esm2015/core/services/message.service.js +0 -33
- package/esm2015/core/services/nav.service.js +0 -48
- package/esm2015/core/services/svg-register.service.js +0 -55
- package/esm2015/core/types/local-time.type.js +0 -1
- package/esm2015/core/types/ng-class.type.js +0 -1
- package/esm2015/core/utils/array.util.js +0 -110
- package/esm2015/core/utils/browser.util.js +0 -13
- package/esm2015/core/utils/currency.util.js +0 -21
- package/esm2015/core/utils/date.util.js +0 -257
- package/esm2015/core/utils/document.util.js +0 -153
- package/esm2015/core/utils/email.util.js +0 -25
- package/esm2015/core/utils/number.util.js +0 -28
- package/esm2015/core/utils/object.util.js +0 -199
- package/esm2015/core/utils/password.util.js +0 -38
- package/esm2015/core/utils/phone.util.js +0 -125
- package/esm2015/core/utils/string.util.js +0 -40
- package/esm2015/core/utils/table-column-builder.js +0 -85
- package/esm2015/core/utils/time.util.js +0 -59
- package/esm2015/core/utils/url-params.util.js +0 -12
- package/esm2015/core/utils/uuid.util.js +0 -17
- package/esm2015/core/utils/zindex.util.js +0 -35
- package/esm2015/core.js +0 -89
- package/esm2015/gipi-components.js +0 -105
- package/esm2015/gipisistemas-ng-core.js +0 -21
- package/esm2015/public_api.js +0 -4
- package/esm2015/shared/api/generate-id-component.js +0 -12
- package/esm2015/shared/api/gipi-ng-config.js +0 -76
- package/esm2015/shared/api/overlay-message.js +0 -1
- package/esm2015/shared/api/throttle.js +0 -60
- package/esm2015/shared/api/translation.js +0 -1
- package/esm2015/shared/components/button/button.component.js +0 -110
- package/esm2015/shared/components/card/card.component.js +0 -44
- package/esm2015/shared/components/checkbox/checkbox.component.js +0 -79
- package/esm2015/shared/components/dom/connected-overlay-scroll-handler.js +0 -27
- package/esm2015/shared/components/dom/dom-handler.js +0 -538
- package/esm2015/shared/components/icon/icon.component.js +0 -35
- package/esm2015/shared/components/input/input.component.js +0 -235
- package/esm2015/shared/components/input-currency/input-currency.component.js +0 -115
- package/esm2015/shared/components/input-file/input-file.component.js +0 -161
- package/esm2015/shared/components/loading/loading.component.js +0 -15
- package/esm2015/shared/components/loading-overlay/loading-overlay.component.js +0 -21
- package/esm2015/shared/components/overlay-panel/overlay-panel.component.js +0 -361
- package/esm2015/shared/components/popover/popover-ref.js +0 -25
- package/esm2015/shared/components/popover/popover.component.js +0 -34
- package/esm2015/shared/components/popover/popover.service.js +0 -85
- package/esm2015/shared/components/radio-group-entity/radio-group-entity.component.js +0 -74
- package/esm2015/shared/components/radio-group-enum/radio-group-enum.component.js +0 -126
- package/esm2015/shared/components/select-button/select-button.component.js +0 -181
- package/esm2015/shared/components/select-entity/select-entity.component.js +0 -262
- package/esm2015/shared/components/select-entity-paged/select-entity-paged.component.js +0 -419
- package/esm2015/shared/components/select-entity-paged/shared/default-options.js +0 -35
- package/esm2015/shared/components/select-entity-paged/shared/select-button-add/select-button-add.component.js +0 -69
- package/esm2015/shared/components/select-entity-paged/shared/select-button-next-batch/select-button-next-batch.component.js +0 -59
- package/esm2015/shared/components/select-entity-paged/shared/select-no-entries-found.directive.js +0 -20
- package/esm2015/shared/components/select-entity-paged/shared/select-search/select-search.component.js +0 -547
- package/esm2015/shared/components/select-entity-paged/shared/select-search-clear.directive.js +0 -18
- package/esm2015/shared/components/select-enum/select-enum.component.js +0 -117
- package/esm2015/shared/components/select-month-period/select-month-period.component.js +0 -87
- package/esm2015/shared/components/slide-toggle/slide-toggle.component.js +0 -75
- package/esm2015/shared/components/stepper/stepper.component.js +0 -32
- package/esm2015/shared/components/tab/tab.component.js +0 -57
- package/esm2015/shared/components/tab-group/tab-group.component.js +0 -117
- package/esm2015/shared/components/table/table.component.js +0 -523
- package/esm2015/shared/components/table-scrolled/table-scrolled.component.js +0 -105
- package/esm2015/shared/components/textarea/textarea.component.js +0 -156
- package/esm2015/shared/directives/dynamic-tab.directive.js +0 -18
- package/esm2015/shared/directives/generic-template.directive.js +0 -30
- package/esm2015/shared/directives/input-select-infinite-scroll.directive.js +0 -109
- package/esm2015/shared/directives/lower-case.directive.js +0 -47
- package/esm2015/shared/directives/phone-mask.directive.js +0 -60
- package/esm2015/shared/directives/space-drop.directive.js +0 -47
- package/esm2015/shared/directives/upper-case.directive.js +0 -47
- package/esm2015/shared/gipi-components/abstract-form/abstract-form.component.js +0 -119
- package/esm2015/shared/gipi-components/action-row/action-row.component.js +0 -30
- package/esm2015/shared/gipi-components/badge/badge.component.js +0 -44
- package/esm2015/shared/gipi-components/button/button.component.js +0 -251
- package/esm2015/shared/gipi-components/chips/chips.component.js +0 -149
- package/esm2015/shared/gipi-components/confirmation-dialog/confirmation-dialog.component.js +0 -44
- package/esm2015/shared/gipi-components/datepicker/date-range-picker/date-range-picker.component.js +0 -324
- package/esm2015/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range-selection-startegy.js +0 -41
- package/esm2015/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range.directive.js +0 -35
- package/esm2015/shared/gipi-components/datepicker/date-range-picker/shared/preset-range/preset-range.component.js +0 -259
- package/esm2015/shared/gipi-components/datepicker/datepicker/datepicker.component.js +0 -218
- package/esm2015/shared/gipi-components/datepicker/datepicker.module.js +0 -130
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/calendar-body.js +0 -341
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/calendar.js +0 -397
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-input-parts.js +0 -325
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-input.js +0 -329
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-picker.js +0 -41
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-selection-strategy.js +0 -61
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-selection-model.js +0 -159
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-animations.js +0 -35
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-base.js +0 -555
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-errors.js +0 -14
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-input-base.js +0 -303
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-input.js +0 -179
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-intl.js +0 -51
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker-toggle.js +0 -124
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/datepicker.js +0 -29
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/month-view.js +0 -365
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/multi-year-view.js +0 -305
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-adapter.js +0 -116
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-formats.js +0 -10
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-adapter.js +0 -294
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-formats.js +0 -19
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/platform.js +0 -81
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/year-view.js +0 -294
- package/esm2015/shared/gipi-components/dom/connected-overlay-scroll-handler.js +0 -27
- package/esm2015/shared/gipi-components/dom/dom-handler.js +0 -645
- package/esm2015/shared/gipi-components/dropdown-menu/dropdown-menu.component.js +0 -185
- package/esm2015/shared/gipi-components/expansion-panel/expansion-panel.component.js +0 -81
- package/esm2015/shared/gipi-components/file-drag-and-drop/file-drag-and-drop.component.js +0 -240
- package/esm2015/shared/gipi-components/file-drag-and-drop/shared/file-drag-and-drop.directive.js +0 -92
- package/esm2015/shared/gipi-components/footer/footer.component.js +0 -29
- package/esm2015/shared/gipi-components/form-field/form-field.component.js +0 -262
- package/esm2015/shared/gipi-components/helpful-tip/helpful-tip.component.js +0 -62
- package/esm2015/shared/gipi-components/infinite-scroll/infinite-scroll.directive.js +0 -103
- package/esm2015/shared/gipi-components/input-checkbox/input-checkbox.component.js +0 -112
- package/esm2015/shared/gipi-components/input-currency/input-currency.component.js +0 -197
- package/esm2015/shared/gipi-components/input-monthpicker/input-monthpicker.component.js +0 -408
- package/esm2015/shared/gipi-components/input-select/input-select.component.js +0 -655
- package/esm2015/shared/gipi-components/input-select-enum/input-select-enum.component.js +0 -311
- package/esm2015/shared/gipi-components/input-select-listbox/input-select-listbox.component.js +0 -422
- package/esm2015/shared/gipi-components/input-select-paged/input-search/input-search.component.js +0 -374
- package/esm2015/shared/gipi-components/input-select-paged/input-select-paged.component.js +0 -350
- package/esm2015/shared/gipi-components/input-select-radio/input-select-radio.component.js +0 -269
- package/esm2015/shared/gipi-components/layout-grid/col.directive.js +0 -161
- package/esm2015/shared/gipi-components/layout-grid/row.directive.js +0 -124
- package/esm2015/shared/gipi-components/layout-grid/services/breakpoint.service.js +0 -87
- package/esm2015/shared/gipi-components/layout-grid/services/resize.service.js +0 -64
- package/esm2015/shared/gipi-components/month-year-picker/calendar-month-year/calendar-month-year.component.js +0 -193
- package/esm2015/shared/gipi-components/month-year-picker/mont-year-picker.module.js +0 -47
- package/esm2015/shared/gipi-components/month-year-picker/month-year-picker.component.js +0 -460
- package/esm2015/shared/gipi-components/notification/notification.component.js +0 -104
- package/esm2015/shared/gipi-components/novelties/novelties.component.js +0 -109
- package/esm2015/shared/gipi-components/overlay/overlay.component.js +0 -565
- package/esm2015/shared/gipi-components/overlay/shared/overlay-service.js +0 -21
- package/esm2015/shared/gipi-components/overlay/shared/overlay_options.js +0 -1
- package/esm2015/shared/gipi-components/password-requeriments/password-requeriments.component.js +0 -127
- package/esm2015/shared/gipi-components/popover/popover.component.js +0 -397
- package/esm2015/shared/gipi-components/popover/shared/popover-animations.js +0 -29
- package/esm2015/shared/gipi-components/popover/shared/popover-errors.js +0 -27
- package/esm2015/shared/gipi-components/popover/shared/popover-interfaces.js +0 -1
- package/esm2015/shared/gipi-components/popover/shared/popover-target.js +0 -19
- package/esm2015/shared/gipi-components/popover/shared/popover-trigger.js +0 -514
- package/esm2015/shared/gipi-components/popover/shared/popover-types.js +0 -1
- package/esm2015/shared/gipi-components/radio-group/radio-group.component.js +0 -143
- package/esm2015/shared/gipi-components/range-page/range-page.component.js +0 -254
- package/esm2015/shared/gipi-components/range-slider/range-slider.component.js +0 -345
- package/esm2015/shared/gipi-components/select/select.component.js +0 -211
- package/esm2015/shared/gipi-components/select-button/select-button.component.js +0 -187
- package/esm2015/shared/gipi-components/sidebar/container/container.component.js +0 -83
- package/esm2015/shared/gipi-components/sidebar/sidenav/sidenav.component.js +0 -240
- package/esm2015/shared/gipi-components/stepper/stepper.component.js +0 -37
- package/esm2015/shared/gipi-components/table/components/table-body/table-body.component.js +0 -203
- package/esm2015/shared/gipi-components/table/components/table-footer/table-footer.component.js +0 -30
- package/esm2015/shared/gipi-components/table/components/table-header/table-header.component.js +0 -152
- package/esm2015/shared/gipi-components/table/components/table-pagination/shared/paginate.pipe.js +0 -122
- package/esm2015/shared/gipi-components/table/components/table-pagination/shared/pagination-controls.directive.js +0 -225
- package/esm2015/shared/gipi-components/table/components/table-pagination/shared/pagination-instance.js +0 -1
- package/esm2015/shared/gipi-components/table/components/table-pagination/shared/pagination.service.js +0 -105
- package/esm2015/shared/gipi-components/table/components/table-pagination/table-pagination.component.js +0 -102
- package/esm2015/shared/gipi-components/table/components/table-progress-bar/table-progress-bar.component.js +0 -30
- package/esm2015/shared/gipi-components/table/models/pipe-transform.model.js +0 -1
- package/esm2015/shared/gipi-components/table/models/sort.model.js +0 -19
- package/esm2015/shared/gipi-components/table/models/sorted-column.model.js +0 -2
- package/esm2015/shared/gipi-components/table/models/table-column-builder.model.js +0 -104
- package/esm2015/shared/gipi-components/table/models/table-column.model.js +0 -162
- package/esm2015/shared/gipi-components/table/table.component.js +0 -159
- package/esm2015/shared/gipi-components/table/types/sort-direction.type.js +0 -1
- package/esm2015/shared/gipi-components/table/types/sort.type.js +0 -1
- package/esm2015/shared/gipi-components/template/template.directive.js +0 -33
- package/esm2015/shared/gipi-components/toolbar/toolbar.component.js +0 -53
- package/esm2015/shared/gipi-components/top-nav/top-nav.component.js +0 -38
- package/esm2015/shared/gipi-components/user-profile/user-profile.component.js +0 -109
- package/esm2015/shared/material.module.js +0 -102
- package/esm2015/shared/shared.module.js +0 -339
- package/esm2015/shared.js +0 -36
- package/esm5/core/app-messages.js +0 -1
- package/esm5/core/app.messages.js +0 -12
- package/esm5/core/components/abstract-crud.component.js +0 -108
- package/esm5/core/components/abstract-find.component.js +0 -201
- package/esm5/core/components/abstract.component.js +0 -112
- package/esm5/core/components/alert/alert.component.js +0 -25
- package/esm5/core/core.module.js +0 -107
- package/esm5/core/custom-breakpoints.js +0 -87
- package/esm5/core/enums/local-time.enum.js +0 -6
- package/esm5/core/extensions/string.extension.js +0 -37
- package/esm5/core/gipi-components/components/abstract-crud.component.js +0 -122
- package/esm5/core/gipi-components/components/abstract-find.component.js +0 -507
- package/esm5/core/gipi-components/components/abstract.component.js +0 -152
- package/esm5/core/gipi-components/decorators/autowired.decorator.js +0 -52
- package/esm5/core/gipi-components/enums/sort-direction.enum.js +0 -6
- package/esm5/core/gipi-components/interface/abstract-crud.interface.js +0 -1
- package/esm5/core/gipi-components/interface/abstract-find.interface.js +0 -1
- package/esm5/core/gipi-components/interface/abstract.interface.js +0 -1
- package/esm5/core/gipi-components/interface/base-permission.interface.js +0 -1
- package/esm5/core/gipi-components/models/abstract-filter.model.js +0 -7
- package/esm5/core/gipi-components/models/abstract.model.js +0 -7
- package/esm5/core/gipi-components/models/applied-filter.model.js +0 -29
- package/esm5/core/gipi-components/models/dto/abstract.dto.js +0 -7
- package/esm5/core/gipi-components/models/page-event.model.js +0 -49
- package/esm5/core/gipi-components/models/page.model.js +0 -9
- package/esm5/core/gipi-components/models/sort.model.js +0 -9
- package/esm5/core/gipi-components/services/abstract-crud.service.js +0 -114
- package/esm5/core/gipi-components/services/abstract.service.js +0 -49
- package/esm5/core/gipi-components/services/base.service.js +0 -143
- package/esm5/core/gipi-components/services/file.service.js +0 -53
- package/esm5/core/gipi-components/services/session-storage.service.js +0 -45
- package/esm5/core/gipi-components/types/generic.type.js +0 -1
- package/esm5/core/gipi-components/types/uuid.type.js +0 -1
- package/esm5/core/guards/auth.guard.js +0 -50
- package/esm5/core/guards/permission.guard.js +0 -74
- package/esm5/core/guards/public.guard.js +0 -47
- package/esm5/core/interceptors/auth.interceptor.js +0 -29
- package/esm5/core/interceptors/error.interceptor.js +0 -129
- package/esm5/core/models/abstract.model.js +0 -7
- package/esm5/core/models/archive.model.js +0 -7
- package/esm5/core/models/authority.model.js +0 -7
- package/esm5/core/models/base-user.model.js +0 -13
- package/esm5/core/models/dto/abstract.dto.js +0 -7
- package/esm5/core/models/dto/api-error.dto.js +0 -13
- package/esm5/core/models/dto/api-sub-error.dto.js +0 -11
- package/esm5/core/models/dto/chart.dto.js +0 -11
- package/esm5/core/models/dto/confirmation.dto.js +0 -13
- package/esm5/core/models/dto/dialog.dto.js +0 -11
- package/esm5/core/models/dto/filter.dto.js +0 -11
- package/esm5/core/models/dto/input-listbox.dto.js +0 -11
- package/esm5/core/models/dto/menu.dto.js +0 -14
- package/esm5/core/models/dto/message.dto.js +0 -11
- package/esm5/core/models/dto/page.dto.js +0 -14
- package/esm5/core/models/dto/sort.dto.js +0 -14
- package/esm5/core/models/dto/tab.dto.js +0 -15
- package/esm5/core/models/dto/table-column.dto.js +0 -29
- package/esm5/core/models/dto/table-group-header.dto.js +0 -15
- package/esm5/core/models/dto/table-page-event.dto.js +0 -11
- package/esm5/core/models/dto/token.dto.js +0 -11
- package/esm5/core/models/enums/criteria-operation.enum.js +0 -15
- package/esm5/core/models/enums/criteria-sort-direction.enum.js +0 -6
- package/esm5/core/models/enums/menu-type.enum.js +0 -7
- package/esm5/core/models/enums/radio-button.enum.js +0 -8
- package/esm5/core/models/enums/sort-direction.enum.js +0 -6
- package/esm5/core/models/multitenant.model.js +0 -11
- package/esm5/core/models/permission.model.js +0 -16
- package/esm5/core/models/role.model.js +0 -13
- package/esm5/core/pipes/local-time.pipe.js +0 -26
- package/esm5/core/services/abstract-crud.service.js +0 -30
- package/esm5/core/services/abstract-find.service.js +0 -71
- package/esm5/core/services/abstract.service.js +0 -32
- package/esm5/core/services/authentication.service.js +0 -121
- package/esm5/core/services/breakpoint-observer.service.js +0 -52
- package/esm5/core/services/confirmation.service.js +0 -66
- package/esm5/core/services/dialog.service.js +0 -44
- package/esm5/core/services/message.service.js +0 -36
- package/esm5/core/services/nav.service.js +0 -51
- package/esm5/core/services/svg-register.service.js +0 -67
- package/esm5/core/types/local-time.type.js +0 -1
- package/esm5/core/types/ng-class.type.js +0 -1
- package/esm5/core/utils/array.util.js +0 -120
- package/esm5/core/utils/browser.util.js +0 -17
- package/esm5/core/utils/currency.util.js +0 -26
- package/esm5/core/utils/date.util.js +0 -269
- package/esm5/core/utils/document.util.js +0 -157
- package/esm5/core/utils/email.util.js +0 -29
- package/esm5/core/utils/number.util.js +0 -32
- package/esm5/core/utils/object.util.js +0 -204
- package/esm5/core/utils/password.util.js +0 -42
- package/esm5/core/utils/phone.util.js +0 -135
- package/esm5/core/utils/string.util.js +0 -44
- package/esm5/core/utils/table-column-builder.js +0 -87
- package/esm5/core/utils/time.util.js +0 -65
- package/esm5/core/utils/url-params.util.js +0 -16
- package/esm5/core/utils/uuid.util.js +0 -21
- package/esm5/core/utils/zindex.util.js +0 -35
- package/esm5/core.js +0 -89
- package/esm5/gipi-components.js +0 -105
- package/esm5/gipisistemas-ng-core.js +0 -21
- package/esm5/public_api.js +0 -4
- package/esm5/shared/api/generate-id-component.js +0 -16
- package/esm5/shared/api/gipi-ng-config.js +0 -77
- package/esm5/shared/api/overlay-message.js +0 -1
- package/esm5/shared/api/throttle.js +0 -60
- package/esm5/shared/api/translation.js +0 -1
- package/esm5/shared/components/button/button.component.js +0 -111
- package/esm5/shared/components/card/card.component.js +0 -45
- package/esm5/shared/components/checkbox/checkbox.component.js +0 -85
- package/esm5/shared/components/dom/connected-overlay-scroll-handler.js +0 -30
- package/esm5/shared/components/dom/dom-handler.js +0 -573
- package/esm5/shared/components/icon/icon.component.js +0 -38
- package/esm5/shared/components/input/input.component.js +0 -242
- package/esm5/shared/components/input-currency/input-currency.component.js +0 -121
- package/esm5/shared/components/input-file/input-file.component.js +0 -165
- package/esm5/shared/components/loading/loading.component.js +0 -18
- package/esm5/shared/components/loading-overlay/loading-overlay.component.js +0 -23
- package/esm5/shared/components/overlay-panel/overlay-panel.component.js +0 -366
- package/esm5/shared/components/popover/popover-ref.js +0 -28
- package/esm5/shared/components/popover/popover.component.js +0 -35
- package/esm5/shared/components/popover/popover.service.js +0 -88
- package/esm5/shared/components/radio-group-entity/radio-group-entity.component.js +0 -80
- package/esm5/shared/components/radio-group-enum/radio-group-enum.component.js +0 -138
- package/esm5/shared/components/select-button/select-button.component.js +0 -195
- package/esm5/shared/components/select-entity/select-entity.component.js +0 -269
- package/esm5/shared/components/select-entity-paged/select-entity-paged.component.js +0 -453
- package/esm5/shared/components/select-entity-paged/shared/default-options.js +0 -35
- package/esm5/shared/components/select-entity-paged/shared/select-button-add/select-button-add.component.js +0 -72
- package/esm5/shared/components/select-entity-paged/shared/select-button-next-batch/select-button-next-batch.component.js +0 -62
- package/esm5/shared/components/select-entity-paged/shared/select-no-entries-found.directive.js +0 -23
- package/esm5/shared/components/select-entity-paged/shared/select-search/select-search.component.js +0 -590
- package/esm5/shared/components/select-entity-paged/shared/select-search-clear.directive.js +0 -21
- package/esm5/shared/components/select-enum/select-enum.component.js +0 -124
- package/esm5/shared/components/select-month-period/select-month-period.component.js +0 -91
- package/esm5/shared/components/slide-toggle/slide-toggle.component.js +0 -81
- package/esm5/shared/components/stepper/stepper.component.js +0 -36
- package/esm5/shared/components/tab/tab.component.js +0 -58
- package/esm5/shared/components/tab-group/tab-group.component.js +0 -125
- package/esm5/shared/components/table/table.component.js +0 -538
- package/esm5/shared/components/table-scrolled/table-scrolled.component.js +0 -107
- package/esm5/shared/components/textarea/textarea.component.js +0 -174
- package/esm5/shared/directives/dynamic-tab.directive.js +0 -19
- package/esm5/shared/directives/generic-template.directive.js +0 -31
- package/esm5/shared/directives/input-select-infinite-scroll.directive.js +0 -113
- package/esm5/shared/directives/lower-case.directive.js +0 -48
- package/esm5/shared/directives/phone-mask.directive.js +0 -61
- package/esm5/shared/directives/space-drop.directive.js +0 -48
- package/esm5/shared/directives/upper-case.directive.js +0 -48
- package/esm5/shared/gipi-components/abstract-form/abstract-form.component.js +0 -141
- package/esm5/shared/gipi-components/action-row/action-row.component.js +0 -33
- package/esm5/shared/gipi-components/badge/badge.component.js +0 -46
- package/esm5/shared/gipi-components/button/button.component.js +0 -257
- package/esm5/shared/gipi-components/chips/chips.component.js +0 -159
- package/esm5/shared/gipi-components/confirmation-dialog/confirmation-dialog.component.js +0 -46
- package/esm5/shared/gipi-components/datepicker/date-range-picker/date-range-picker.component.js +0 -378
- package/esm5/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range-selection-startegy.js +0 -42
- package/esm5/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range.directive.js +0 -40
- package/esm5/shared/gipi-components/datepicker/date-range-picker/shared/preset-range/preset-range.component.js +0 -291
- package/esm5/shared/gipi-components/datepicker/datepicker/datepicker.component.js +0 -252
- package/esm5/shared/gipi-components/datepicker/datepicker.module.js +0 -133
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/calendar-body.js +0 -349
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/calendar.js +0 -441
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-input-parts.js +0 -339
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-input.js +0 -376
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-picker.js +0 -46
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-selection-strategy.js +0 -62
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-selection-model.js +0 -167
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-animations.js +0 -35
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-base.js +0 -586
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-errors.js +0 -14
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-input-base.js +0 -327
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-input.js +0 -199
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-intl.js +0 -52
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker-toggle.js +0 -133
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/datepicker.js +0 -34
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/month-view.js +0 -384
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/multi-year-view.js +0 -324
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-adapter.js +0 -118
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-formats.js +0 -10
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-adapter.js +0 -300
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-formats.js +0 -19
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/platform.js +0 -82
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/year-view.js +0 -313
- package/esm5/shared/gipi-components/dom/connected-overlay-scroll-handler.js +0 -30
- package/esm5/shared/gipi-components/dom/dom-handler.js +0 -681
- package/esm5/shared/gipi-components/dropdown-menu/dropdown-menu.component.js +0 -191
- package/esm5/shared/gipi-components/expansion-panel/expansion-panel.component.js +0 -83
- package/esm5/shared/gipi-components/file-drag-and-drop/file-drag-and-drop.component.js +0 -255
- package/esm5/shared/gipi-components/file-drag-and-drop/shared/file-drag-and-drop.directive.js +0 -93
- package/esm5/shared/gipi-components/footer/footer.component.js +0 -32
- package/esm5/shared/gipi-components/form-field/form-field.component.js +0 -276
- package/esm5/shared/gipi-components/helpful-tip/helpful-tip.component.js +0 -68
- package/esm5/shared/gipi-components/infinite-scroll/infinite-scroll.directive.js +0 -106
- package/esm5/shared/gipi-components/input-checkbox/input-checkbox.component.js +0 -118
- package/esm5/shared/gipi-components/input-currency/input-currency.component.js +0 -207
- package/esm5/shared/gipi-components/input-monthpicker/input-monthpicker.component.js +0 -426
- package/esm5/shared/gipi-components/input-select/input-select.component.js +0 -698
- package/esm5/shared/gipi-components/input-select-enum/input-select-enum.component.js +0 -351
- package/esm5/shared/gipi-components/input-select-listbox/input-select-listbox.component.js +0 -437
- package/esm5/shared/gipi-components/input-select-paged/input-search/input-search.component.js +0 -397
- package/esm5/shared/gipi-components/input-select-paged/input-select-paged.component.js +0 -384
- package/esm5/shared/gipi-components/input-select-radio/input-select-radio.component.js +0 -286
- package/esm5/shared/gipi-components/layout-grid/col.directive.js +0 -164
- package/esm5/shared/gipi-components/layout-grid/row.directive.js +0 -127
- package/esm5/shared/gipi-components/layout-grid/services/breakpoint.service.js +0 -90
- package/esm5/shared/gipi-components/layout-grid/services/resize.service.js +0 -68
- package/esm5/shared/gipi-components/month-year-picker/calendar-month-year/calendar-month-year.component.js +0 -200
- package/esm5/shared/gipi-components/month-year-picker/mont-year-picker.module.js +0 -50
- package/esm5/shared/gipi-components/month-year-picker/month-year-picker.component.js +0 -505
- package/esm5/shared/gipi-components/notification/notification.component.js +0 -106
- package/esm5/shared/gipi-components/novelties/novelties.component.js +0 -111
- package/esm5/shared/gipi-components/overlay/overlay.component.js +0 -670
- package/esm5/shared/gipi-components/overlay/shared/overlay-service.js +0 -22
- package/esm5/shared/gipi-components/overlay/shared/overlay_options.js +0 -1
- package/esm5/shared/gipi-components/password-requeriments/password-requeriments.component.js +0 -157
- package/esm5/shared/gipi-components/popover/popover.component.js +0 -473
- package/esm5/shared/gipi-components/popover/shared/popover-animations.js +0 -29
- package/esm5/shared/gipi-components/popover/shared/popover-errors.js +0 -21
- package/esm5/shared/gipi-components/popover/shared/popover-interfaces.js +0 -1
- package/esm5/shared/gipi-components/popover/shared/popover-target.js +0 -20
- package/esm5/shared/gipi-components/popover/shared/popover-trigger.js +0 -529
- package/esm5/shared/gipi-components/popover/shared/popover-types.js +0 -1
- package/esm5/shared/gipi-components/radio-group/radio-group.component.js +0 -155
- package/esm5/shared/gipi-components/range-page/range-page.component.js +0 -283
- package/esm5/shared/gipi-components/range-slider/range-slider.component.js +0 -364
- package/esm5/shared/gipi-components/select/select.component.js +0 -222
- package/esm5/shared/gipi-components/select-button/select-button.component.js +0 -206
- package/esm5/shared/gipi-components/sidebar/container/container.component.js +0 -96
- package/esm5/shared/gipi-components/sidebar/sidenav/sidenav.component.js +0 -267
- package/esm5/shared/gipi-components/stepper/stepper.component.js +0 -43
- package/esm5/shared/gipi-components/table/components/table-body/table-body.component.js +0 -209
- package/esm5/shared/gipi-components/table/components/table-footer/table-footer.component.js +0 -33
- package/esm5/shared/gipi-components/table/components/table-header/table-header.component.js +0 -155
- package/esm5/shared/gipi-components/table/components/table-pagination/shared/paginate.pipe.js +0 -123
- package/esm5/shared/gipi-components/table/components/table-pagination/shared/pagination-controls.directive.js +0 -228
- package/esm5/shared/gipi-components/table/components/table-pagination/shared/pagination-instance.js +0 -1
- package/esm5/shared/gipi-components/table/components/table-pagination/shared/pagination.service.js +0 -108
- package/esm5/shared/gipi-components/table/components/table-pagination/table-pagination.component.js +0 -116
- package/esm5/shared/gipi-components/table/components/table-progress-bar/table-progress-bar.component.js +0 -33
- package/esm5/shared/gipi-components/table/models/pipe-transform.model.js +0 -1
- package/esm5/shared/gipi-components/table/models/sort.model.js +0 -29
- package/esm5/shared/gipi-components/table/models/sorted-column.model.js +0 -2
- package/esm5/shared/gipi-components/table/models/table-column-builder.model.js +0 -106
- package/esm5/shared/gipi-components/table/models/table-column.model.js +0 -252
- package/esm5/shared/gipi-components/table/table.component.js +0 -161
- package/esm5/shared/gipi-components/table/types/sort-direction.type.js +0 -1
- package/esm5/shared/gipi-components/table/types/sort.type.js +0 -1
- package/esm5/shared/gipi-components/template/template.directive.js +0 -34
- package/esm5/shared/gipi-components/toolbar/toolbar.component.js +0 -56
- package/esm5/shared/gipi-components/top-nav/top-nav.component.js +0 -40
- package/esm5/shared/gipi-components/user-profile/user-profile.component.js +0 -115
- package/esm5/shared/material.module.js +0 -101
- package/esm5/shared/shared.module.js +0 -340
- package/esm5/shared.js +0 -36
- package/fesm2015/gipisistemas-ng-core.js +0 -25879
- package/fesm2015/gipisistemas-ng-core.js.map +0 -1
- package/fesm5/gipisistemas-ng-core.js +0 -27905
- package/fesm5/gipisistemas-ng-core.js.map +0 -1
- package/gipi-components.d.ts +0 -97
- package/gipisistemas-ng-core.d.ts +0 -20
- package/gipisistemas-ng-core.metadata.json +0 -1
- package/public_api.d.ts +0 -3
- package/shared/api/generate-id-component.d.ts +0 -3
- package/shared/api/gipi-ng-config.d.ts +0 -18
- package/shared/api/overlay-message.d.ts +0 -14
- package/shared/api/throttle.d.ts +0 -17
- package/shared/api/translation.d.ts +0 -45
- package/shared/components/button/button.component.d.ts +0 -26
- package/shared/components/card/card.component.d.ts +0 -10
- package/shared/components/checkbox/checkbox.component.d.ts +0 -20
- package/shared/components/dom/connected-overlay-scroll-handler.d.ts +0 -9
- package/shared/components/dom/dom-handler.d.ts +0 -74
- package/shared/components/icon/icon.component.d.ts +0 -9
- package/shared/components/input/input.component.d.ts +0 -52
- package/shared/components/input-currency/input-currency.component.d.ts +0 -29
- package/shared/components/input-file/input-file.component.d.ts +0 -28
- package/shared/components/loading/loading.component.d.ts +0 -4
- package/shared/components/loading-overlay/loading-overlay.component.d.ts +0 -6
- package/shared/components/overlay-panel/overlay-panel.component.d.ts +0 -67
- package/shared/components/popover/popover-ref.d.ts +0 -17
- package/shared/components/popover/popover.component.d.ts +0 -10
- package/shared/components/popover/popover.service.d.ts +0 -23
- package/shared/components/radio-group-entity/radio-group-entity.component.d.ts +0 -19
- package/shared/components/radio-group-enum/radio-group-enum.component.d.ts +0 -30
- package/shared/components/select-button/select-button.component.d.ts +0 -35
- package/shared/components/select-entity/select-entity.component.d.ts +0 -52
- package/shared/components/select-entity-paged/select-entity-paged.component.d.ts +0 -78
- package/shared/components/select-entity-paged/shared/default-options.d.ts +0 -25
- package/shared/components/select-entity-paged/shared/select-button-add/select-button-add.component.d.ts +0 -18
- package/shared/components/select-entity-paged/shared/select-button-next-batch/select-button-next-batch.component.d.ts +0 -16
- package/shared/components/select-entity-paged/shared/select-no-entries-found.directive.d.ts +0 -11
- package/shared/components/select-entity-paged/shared/select-search/select-search.component.d.ts +0 -119
- package/shared/components/select-entity-paged/shared/select-search-clear.directive.d.ts +0 -9
- package/shared/components/select-enum/select-enum.component.d.ts +0 -29
- package/shared/components/select-month-period/select-month-period.component.d.ts +0 -20
- package/shared/components/slide-toggle/slide-toggle.component.d.ts +0 -19
- package/shared/components/stepper/stepper.component.d.ts +0 -7
- package/shared/components/tab/tab.component.d.ts +0 -14
- package/shared/components/tab-group/tab-group.component.d.ts +0 -22
- package/shared/components/table/table.component.d.ts +0 -86
- package/shared/components/table-scrolled/table-scrolled.component.d.ts +0 -31
- package/shared/components/textarea/textarea.component.d.ts +0 -35
- package/shared/directives/dynamic-tab.directive.d.ts +0 -5
- package/shared/directives/generic-template.directive.d.ts +0 -8
- package/shared/directives/input-select-infinite-scroll.directive.d.ts +0 -35
- package/shared/directives/lower-case.directive.d.ts +0 -9
- package/shared/directives/phone-mask.directive.d.ts +0 -8
- package/shared/directives/space-drop.directive.d.ts +0 -9
- package/shared/directives/upper-case.directive.d.ts +0 -9
- package/shared/gipi-components/abstract-form/abstract-form.component.d.ts +0 -21
- package/shared/gipi-components/action-row/action-row.component.d.ts +0 -5
- package/shared/gipi-components/badge/badge.component.d.ts +0 -8
- package/shared/gipi-components/button/button.component.d.ts +0 -56
- package/shared/gipi-components/chips/chips.component.d.ts +0 -37
- package/shared/gipi-components/confirmation-dialog/confirmation-dialog.component.d.ts +0 -11
- package/shared/gipi-components/datepicker/date-range-picker/date-range-picker.component.d.ts +0 -71
- package/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range-selection-startegy.d.ts +0 -11
- package/shared/gipi-components/datepicker/date-range-picker/shared/max-range/max-range.directive.d.ts +0 -6
- package/shared/gipi-components/datepicker/date-range-picker/shared/preset-range/preset-range.component.d.ts +0 -40
- package/shared/gipi-components/datepicker/datepicker/datepicker.component.d.ts +0 -49
- package/shared/gipi-components/datepicker/datepicker.module.d.ts +0 -2
- package/shared/gipi-components/datepicker/mat-datepicker/calendar-body.d.ts +0 -143
- package/shared/gipi-components/datepicker/mat-datepicker/calendar.d.ts +0 -152
- package/shared/gipi-components/datepicker/mat-datepicker/date-range-input-parts.d.ts +0 -102
- package/shared/gipi-components/datepicker/mat-datepicker/date-range-input.d.ts +0 -124
- package/shared/gipi-components/datepicker/mat-datepicker/date-range-picker.d.ts +0 -21
- package/shared/gipi-components/datepicker/mat-datepicker/date-range-selection-strategy.d.ts +0 -45
- package/shared/gipi-components/datepicker/mat-datepicker/date-selection-model.d.ts +0 -106
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-animations.d.ts +0 -16
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-base.d.ts +0 -209
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-errors.d.ts +0 -9
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-input-base.d.ts +0 -136
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-input.d.ts +0 -68
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-intl.d.ts +0 -38
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker-toggle.d.ts +0 -39
- package/shared/gipi-components/datepicker/mat-datepicker/datepicker.d.ts +0 -11
- package/shared/gipi-components/datepicker/mat-datepicker/month-view.d.ts +0 -120
- package/shared/gipi-components/datepicker/mat-datepicker/multi-year-view.d.ts +0 -85
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-adapter.d.ts +0 -225
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/date-formats.d.ts +0 -20
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-adapter.d.ts +0 -76
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/native-date-formats.d.ts +0 -9
- package/shared/gipi-components/datepicker/mat-datepicker/shared/adapter/platform.d.ts +0 -33
- package/shared/gipi-components/datepicker/mat-datepicker/year-view.d.ts +0 -97
- package/shared/gipi-components/dom/connected-overlay-scroll-handler.d.ts +0 -9
- package/shared/gipi-components/dom/dom-handler.d.ts +0 -85
- package/shared/gipi-components/dropdown-menu/dropdown-menu.component.d.ts +0 -36
- package/shared/gipi-components/expansion-panel/expansion-panel.component.d.ts +0 -16
- package/shared/gipi-components/file-drag-and-drop/file-drag-and-drop.component.d.ts +0 -43
- package/shared/gipi-components/file-drag-and-drop/shared/file-drag-and-drop.directive.d.ts +0 -13
- package/shared/gipi-components/footer/footer.component.d.ts +0 -5
- package/shared/gipi-components/form-field/form-field.component.d.ts +0 -61
- package/shared/gipi-components/helpful-tip/helpful-tip.component.d.ts +0 -13
- package/shared/gipi-components/infinite-scroll/infinite-scroll.directive.d.ts +0 -27
- package/shared/gipi-components/input-checkbox/input-checkbox.component.d.ts +0 -28
- package/shared/gipi-components/input-currency/input-currency.component.d.ts +0 -48
- package/shared/gipi-components/input-monthpicker/input-monthpicker.component.d.ts +0 -89
- package/shared/gipi-components/input-select/input-select.component.d.ts +0 -120
- package/shared/gipi-components/input-select-enum/input-select-enum.component.d.ts +0 -65
- package/shared/gipi-components/input-select-listbox/input-select-listbox.component.d.ts +0 -85
- package/shared/gipi-components/input-select-paged/input-search/input-search.component.d.ts +0 -77
- package/shared/gipi-components/input-select-paged/input-select-paged.component.d.ts +0 -66
- package/shared/gipi-components/input-select-radio/input-select-radio.component.d.ts +0 -53
- package/shared/gipi-components/layout-grid/col.directive.d.ts +0 -38
- package/shared/gipi-components/layout-grid/row.directive.d.ts +0 -28
- package/shared/gipi-components/layout-grid/services/breakpoint.service.d.ts +0 -30
- package/shared/gipi-components/layout-grid/services/resize.service.d.ts +0 -17
- package/shared/gipi-components/month-year-picker/calendar-month-year/calendar-month-year.component.d.ts +0 -37
- package/shared/gipi-components/month-year-picker/mont-year-picker.module.d.ts +0 -2
- package/shared/gipi-components/month-year-picker/month-year-picker.component.d.ts +0 -104
- package/shared/gipi-components/notification/notification.component.d.ts +0 -21
- package/shared/gipi-components/novelties/novelties.component.d.ts +0 -22
- package/shared/gipi-components/overlay/overlay.component.d.ts +0 -113
- package/shared/gipi-components/overlay/shared/overlay-service.d.ts +0 -6
- package/shared/gipi-components/overlay/shared/overlay_options.d.ts +0 -50
- package/shared/gipi-components/password-requeriments/password-requeriments.component.d.ts +0 -27
- package/shared/gipi-components/popover/popover.component.d.ts +0 -133
- package/shared/gipi-components/popover/shared/popover-animations.d.ts +0 -13
- package/shared/gipi-components/popover/shared/popover-errors.d.ts +0 -14
- package/shared/gipi-components/popover/shared/popover-interfaces.d.ts +0 -43
- package/shared/gipi-components/popover/shared/popover-target.d.ts +0 -5
- package/shared/gipi-components/popover/shared/popover-trigger.d.ts +0 -140
- package/shared/gipi-components/popover/shared/popover-types.d.ts +0 -4
- package/shared/gipi-components/radio-group/radio-group.component.d.ts +0 -33
- package/shared/gipi-components/range-page/range-page.component.d.ts +0 -55
- package/shared/gipi-components/range-slider/range-slider.component.d.ts +0 -57
- package/shared/gipi-components/select/select.component.d.ts +0 -45
- package/shared/gipi-components/select-button/select-button.component.d.ts +0 -39
- package/shared/gipi-components/sidebar/container/container.component.d.ts +0 -15
- package/shared/gipi-components/sidebar/sidenav/sidenav.component.d.ts +0 -40
- package/shared/gipi-components/stepper/stepper.component.d.ts +0 -8
- package/shared/gipi-components/table/components/table-body/table-body.component.d.ts +0 -36
- package/shared/gipi-components/table/components/table-footer/table-footer.component.d.ts +0 -5
- package/shared/gipi-components/table/components/table-header/table-header.component.d.ts +0 -28
- package/shared/gipi-components/table/components/table-pagination/shared/paginate.pipe.d.ts +0 -40
- package/shared/gipi-components/table/components/table-pagination/shared/pagination-controls.directive.d.ts +0 -81
- package/shared/gipi-components/table/components/table-pagination/shared/pagination-instance.d.ts +0 -24
- package/shared/gipi-components/table/components/table-pagination/shared/pagination.service.d.ts +0 -45
- package/shared/gipi-components/table/components/table-pagination/table-pagination.component.d.ts +0 -21
- package/shared/gipi-components/table/components/table-progress-bar/table-progress-bar.component.d.ts +0 -5
- package/shared/gipi-components/table/models/pipe-transform.model.d.ts +0 -3
- package/shared/gipi-components/table/models/sort.model.d.ts +0 -10
- package/shared/gipi-components/table/models/sorted-column.model.d.ts +0 -6
- package/shared/gipi-components/table/models/table-column-builder.model.d.ts +0 -52
- package/shared/gipi-components/table/models/table-column.model.d.ts +0 -74
- package/shared/gipi-components/table/table.component.d.ts +0 -37
- package/shared/gipi-components/table/types/sort-direction.type.d.ts +0 -1
- package/shared/gipi-components/table/types/sort.type.d.ts +0 -1
- package/shared/gipi-components/template/template.directive.d.ts +0 -8
- package/shared/gipi-components/toolbar/toolbar.component.d.ts +0 -11
- package/shared/gipi-components/top-nav/top-nav.component.d.ts +0 -8
- package/shared/gipi-components/user-profile/user-profile.component.d.ts +0 -24
- package/shared/material.module.d.ts +0 -2
- package/shared/shared.module.d.ts +0 -6
- package/shared.d.ts +0 -35
@@ -1,87 +0,0 @@
|
|
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 const 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 const 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
|
-
let GIPIBreakpointService = class GIPIBreakpointService {
|
33
|
-
constructor(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(() => { });
|
41
|
-
}
|
42
|
-
ngOnDestroy() {
|
43
|
-
this.destroy$.next();
|
44
|
-
}
|
45
|
-
subscribe(breakpointMap, fullMap) {
|
46
|
-
if (fullMap) {
|
47
|
-
const get = () => this.matchMedia(breakpointMap, true);
|
48
|
-
return this.resizeService.subscribe().pipe(map(get), startWith(get()), distinctUntilChanged((x, y) => x[0] === y[0]), map(x => x[1]));
|
49
|
-
}
|
50
|
-
else {
|
51
|
-
const get = () => this.matchMedia(breakpointMap);
|
52
|
-
return this.resizeService.subscribe().pipe(map(get), startWith(get()), distinctUntilChanged());
|
53
|
-
}
|
54
|
-
}
|
55
|
-
matchMedia(breakpointMap, fullMap) {
|
56
|
-
let bp = BreakpointEnum.md;
|
57
|
-
const breakpointBooleanMap = {};
|
58
|
-
Object.keys(breakpointMap).map(breakpoint => {
|
59
|
-
const castBP = breakpoint;
|
60
|
-
const matched = this.mediaMatcher.matchMedia(gridResponsiveMap[castBP]).matches;
|
61
|
-
breakpointBooleanMap[breakpoint] = matched;
|
62
|
-
if (matched) {
|
63
|
-
bp = castBP;
|
64
|
-
}
|
65
|
-
});
|
66
|
-
if (fullMap) {
|
67
|
-
return [bp, breakpointBooleanMap];
|
68
|
-
}
|
69
|
-
else {
|
70
|
-
return bp;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
};
|
74
|
-
GIPIBreakpointService.ctorParameters = () => [
|
75
|
-
{ type: GIPIResizeService },
|
76
|
-
{ type: MediaMatcher }
|
77
|
-
];
|
78
|
-
GIPIBreakpointService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function GIPIBreakpointService_Factory() { return new GIPIBreakpointService(i0.ɵɵinject(i1.GIPIResizeService), i0.ɵɵinject(i2.MediaMatcher)); }, token: GIPIBreakpointService, providedIn: "root" });
|
79
|
-
GIPIBreakpointService = __decorate([
|
80
|
-
Injectable({
|
81
|
-
providedIn: 'root'
|
82
|
-
}),
|
83
|
-
__metadata("design:paramtypes", [GIPIResizeService,
|
84
|
-
MediaMatcher])
|
85
|
-
], GIPIBreakpointService);
|
86
|
-
export { GIPIBreakpointService };
|
87
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWtwb2ludC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGdpcGlzaXN0ZW1hcy9uZy1jb3JlLyIsInNvdXJjZXMiOlsic2hhcmVkL2dpcGktY29tcG9uZW50cy9sYXlvdXQtZ3JpZC9zZXJ2aWNlcy9icmVha3BvaW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNuRCxPQUFPLEVBQUUsVUFBVSxFQUFhLE1BQU0sZUFBZSxDQUFDO0FBQ3RELE9BQU8sRUFBYyxPQUFPLEVBQUUsTU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WFwKSB7XG4gICAgICAgICAgICByZXR1cm4gW2JwLCBicmVha3BvaW50Qm9vbGVhbk1hcCBhcyBCcmVha3BvaW50Qm9vbGVhbk1hcF07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gYnA7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbiJdfQ==
|
@@ -1,64 +0,0 @@
|
|
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
|
-
const NOOP = () => { };
|
7
|
-
const ɵ0 = NOOP;
|
8
|
-
let GIPIResizeService = class GIPIResizeService {
|
9
|
-
constructor(ngZone, rendererFactory2) {
|
10
|
-
this.ngZone = ngZone;
|
11
|
-
this.rendererFactory2 = rendererFactory2;
|
12
|
-
this.resizeSource$ = new Subject();
|
13
|
-
this.listeners = 0;
|
14
|
-
this.disposeHandle = NOOP;
|
15
|
-
this.handler = () => {
|
16
|
-
this.ngZone.run(() => {
|
17
|
-
this.resizeSource$.next();
|
18
|
-
});
|
19
|
-
};
|
20
|
-
this.renderer = this.rendererFactory2.createRenderer(null, null);
|
21
|
-
}
|
22
|
-
ngOnDestroy() {
|
23
|
-
// Caretaker note: the `handler` is an instance property (it's not defined on the class prototype).
|
24
|
-
// The `handler` captures `this` and prevents the `GIPIResizeService` from being GC'd.
|
25
|
-
this.handler = NOOP;
|
26
|
-
}
|
27
|
-
subscribe() {
|
28
|
-
this.registerListener();
|
29
|
-
return this.resizeSource$.pipe(auditTime(16), finalize(() => this.unregisterListener()));
|
30
|
-
}
|
31
|
-
unsubscribe() {
|
32
|
-
this.unregisterListener();
|
33
|
-
}
|
34
|
-
registerListener() {
|
35
|
-
if (this.listeners === 0) {
|
36
|
-
this.ngZone.runOutsideAngular(() => {
|
37
|
-
this.disposeHandle = this.renderer.listen('window', 'resize', this.handler);
|
38
|
-
});
|
39
|
-
}
|
40
|
-
this.listeners += 1;
|
41
|
-
}
|
42
|
-
unregisterListener() {
|
43
|
-
this.listeners -= 1;
|
44
|
-
if (this.listeners === 0) {
|
45
|
-
this.disposeHandle();
|
46
|
-
this.disposeHandle = NOOP;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
};
|
50
|
-
GIPIResizeService.ctorParameters = () => [
|
51
|
-
{ type: NgZone },
|
52
|
-
{ type: RendererFactory2 }
|
53
|
-
];
|
54
|
-
GIPIResizeService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function GIPIResizeService_Factory() { return new GIPIResizeService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.RendererFactory2)); }, token: GIPIResizeService, providedIn: "root" });
|
55
|
-
GIPIResizeService = __decorate([
|
56
|
-
Injectable({
|
57
|
-
providedIn: 'root'
|
58
|
-
}),
|
59
|
-
__metadata("design:paramtypes", [NgZone,
|
60
|
-
RendererFactory2])
|
61
|
-
], GIPIResizeService);
|
62
|
-
export { GIPIResizeService };
|
63
|
-
export { ɵ0 };
|
64
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZ2lwaXNpc3RlbWFzL25nLWNvcmUvIiwic291cmNlcyI6WyJzaGFyZWQvZ2lwaS1jb21wb25lbnRzL2xheW91dC1ncmlkL3NlcnZpY2VzL3Jlc2l6ZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNGLE9BQU8sRUFBYyxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDM0Ms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gICAgfVxuXG4gICAgcHJpdmF0ZSB1bnJlZ2lzdGVyTGlzdGVuZXIoKTogdm9pZCB7XG4gICAgICAgIHRoaXMubGlzdGVuZXJzIC09IDE7XG5cbiAgICAgICAgaWYgKHRoaXMubGlzdGVuZXJzID09PSAwKSB7XG4gICAgICAgICAgICB0aGlzLmRpc3Bvc2VIYW5kbGUoKTtcbiAgICAgICAgICAgIHRoaXMuZGlzcG9zZUhhbmRsZSA9IE5PT1A7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbiJdfQ==
|
@@ -1,193 +0,0 @@
|
|
1
|
-
var CalendarMonthYearComponent_1;
|
2
|
-
import { __decorate, __metadata } from "tslib";
|
3
|
-
import { AfterViewInit, ChangeDetectorRef, Component, forwardRef, OnDestroy, OnInit } from '@angular/core';
|
4
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
|
-
import { Subject, Subscription } from 'rxjs';
|
6
|
-
import * as moment_ from 'moment';
|
7
|
-
const moment = moment_;
|
8
|
-
import { matDatepickerAnimations } from '@angular/material/datepicker';
|
9
|
-
import { ObjectUtil } from '../../../../core/utils/object.util';
|
10
|
-
let CalendarMonthYearComponent = CalendarMonthYearComponent_1 = class CalendarMonthYearComponent {
|
11
|
-
constructor(_changeDetectorRef) {
|
12
|
-
this._changeDetectorRef = _changeDetectorRef;
|
13
|
-
this._subscriptions = new Subscription();
|
14
|
-
this._animationState = 'enter';
|
15
|
-
this._animationDone = new Subject();
|
16
|
-
this.years = [];
|
17
|
-
this.months = [];
|
18
|
-
this._calendarView = 'both';
|
19
|
-
}
|
20
|
-
ngOnInit() {
|
21
|
-
if (this._locale) {
|
22
|
-
moment.locale(this._locale);
|
23
|
-
}
|
24
|
-
else {
|
25
|
-
moment.locale('pt-br');
|
26
|
-
}
|
27
|
-
this.months = [...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
|
-
ngAfterViewInit() {
|
35
|
-
if (this._changeDetectorRef) {
|
36
|
-
this._subscriptions.add(this.monthYearPicker._stateChanges.subscribe(() => {
|
37
|
-
this._changeDetectorRef.markForCheck();
|
38
|
-
}));
|
39
|
-
}
|
40
|
-
}
|
41
|
-
ngOnDestroy() {
|
42
|
-
this._subscriptions.unsubscribe();
|
43
|
-
this._animationDone.complete();
|
44
|
-
}
|
45
|
-
_startExitAnimation() {
|
46
|
-
this._animationState = 'void';
|
47
|
-
if (this._changeDetectorRef) {
|
48
|
-
this._changeDetectorRef.markForCheck();
|
49
|
-
}
|
50
|
-
}
|
51
|
-
decrement() {
|
52
|
-
this.monthYearPicker.model.decrementYear();
|
53
|
-
if (this.isShowYears) {
|
54
|
-
this._renderYears();
|
55
|
-
}
|
56
|
-
}
|
57
|
-
increment() {
|
58
|
-
this.monthYearPicker.model.incrementYear();
|
59
|
-
if (this.isShowYears) {
|
60
|
-
this._renderYears();
|
61
|
-
}
|
62
|
-
}
|
63
|
-
selectMonth(index) {
|
64
|
-
this.monthYearPicker.model.selectMonth(index);
|
65
|
-
this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex, this.monthYearPicker.model.selectedMonthYear);
|
66
|
-
this.monthYearPicker.close();
|
67
|
-
}
|
68
|
-
isSelectedMonth(monthIndex) {
|
69
|
-
return this.monthYearPicker.model.selectedMonthIndex == monthIndex && this.monthYearPicker.model.selectedMonthYear == this.monthYearPicker.model.selectedYearMoment.year();
|
70
|
-
}
|
71
|
-
isCurrentMonth(monthIndex) {
|
72
|
-
const currentMonth = moment().month();
|
73
|
-
const currentYear = moment().year();
|
74
|
-
return (monthIndex === currentMonth) && (this.monthYearPicker.model.selectedYearMoment.year() === currentYear);
|
75
|
-
}
|
76
|
-
isDisabledMonth(index) {
|
77
|
-
let disabled = false;
|
78
|
-
if (!ObjectUtil.isNull(this.monthYearPicker)) {
|
79
|
-
const minMonth = !ObjectUtil.isNull(this.monthYearPicker.min) ? this.monthYearPicker.min.month : null;
|
80
|
-
const maxMonth = !ObjectUtil.isNull(this.monthYearPicker.max) ? this.monthYearPicker.max.month : null;
|
81
|
-
if (!ObjectUtil.isNull(minMonth) && !ObjectUtil.isNull(maxMonth)) {
|
82
|
-
disabled = index < minMonth || index > maxMonth;
|
83
|
-
}
|
84
|
-
else if (!ObjectUtil.isNull(minMonth)) {
|
85
|
-
disabled = index < minMonth;
|
86
|
-
}
|
87
|
-
else if (!ObjectUtil.isNull(maxMonth)) {
|
88
|
-
disabled = index > maxMonth;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
return disabled;
|
92
|
-
// let disabled = false;
|
93
|
-
// if (this._enabledMonths && this._enabledMonths.length > 0) {
|
94
|
-
// disabled = this._enabledMonths.indexOf(index) < 0;
|
95
|
-
// }
|
96
|
-
// if (this._disabledMonths && this._disabledMonths.length > 0) {
|
97
|
-
// disabled = this._disabledMonths.indexOf(index) >= 0;
|
98
|
-
// }
|
99
|
-
// return disabled;
|
100
|
-
}
|
101
|
-
/** Years */
|
102
|
-
toggleShowYears() {
|
103
|
-
this.isShowYears = !this.isShowYears;
|
104
|
-
this._renderYears();
|
105
|
-
}
|
106
|
-
_renderYears() {
|
107
|
-
this.years = [];
|
108
|
-
for (let i = 11; i > 0; i--) {
|
109
|
-
this.years.push(this.monthYearPicker.model.selectedYearMoment.year() - i);
|
110
|
-
}
|
111
|
-
for (let i = 0; i <= 12; i++) {
|
112
|
-
this.years.push(this.monthYearPicker.model.selectedYearMoment.year() + i);
|
113
|
-
}
|
114
|
-
}
|
115
|
-
get periodButtonLabel() {
|
116
|
-
const formatYearRange = (start, end) => {
|
117
|
-
return `${start} \u2013 ${end}`;
|
118
|
-
};
|
119
|
-
return this.isShowYears ? formatYearRange(this.years[0], this.years[this.years.length - 1]) : this.monthYearPicker.model.selectedYearText;
|
120
|
-
}
|
121
|
-
selectYear(year) {
|
122
|
-
if (this._calendarView === 'both') {
|
123
|
-
this.isShowYears = false;
|
124
|
-
}
|
125
|
-
this.monthYearPicker.model.selectedYearMoment = moment().year(year);
|
126
|
-
this.monthYearPicker.model.updateYearText();
|
127
|
-
if (this._calendarView === 'year') {
|
128
|
-
this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex, year);
|
129
|
-
this.monthYearPicker.close();
|
130
|
-
}
|
131
|
-
}
|
132
|
-
isSelectedYear(year) {
|
133
|
-
return this.monthYearPicker.model.selectedYearMoment.year() === year;
|
134
|
-
}
|
135
|
-
isCurrentYear(year) {
|
136
|
-
return moment().year() === year;
|
137
|
-
}
|
138
|
-
isDisabledYear(index) {
|
139
|
-
let disabled = false;
|
140
|
-
if (!ObjectUtil.isNull(this.monthYearPicker)) {
|
141
|
-
const minYear = !ObjectUtil.isNull(this.monthYearPicker.min) ? this.monthYearPicker.min.year : null;
|
142
|
-
const maxYear = !ObjectUtil.isNull(this.monthYearPicker.max) ? this.monthYearPicker.max.year : null;
|
143
|
-
if (!ObjectUtil.isNull(minYear) && !ObjectUtil.isNull(maxYear)) {
|
144
|
-
disabled = index < minYear || index > maxYear;
|
145
|
-
}
|
146
|
-
else if (!ObjectUtil.isNull(minYear)) {
|
147
|
-
disabled = index < minYear;
|
148
|
-
}
|
149
|
-
else if (!ObjectUtil.isNull(maxYear)) {
|
150
|
-
disabled = index > maxYear;
|
151
|
-
}
|
152
|
-
}
|
153
|
-
return disabled;
|
154
|
-
// let disabled: boolean = false;
|
155
|
-
// if (this._enabledYears && this._enabledYears.length > 0) {
|
156
|
-
// disabled = this._enabledYears.findIndex(y => y === year) < 0;
|
157
|
-
// }
|
158
|
-
// if (this._disabledYears && this._disabledYears.length > 0) {
|
159
|
-
// disabled = this._disabledYears.findIndex(y => y === year) >= 0;
|
160
|
-
// }
|
161
|
-
// return disabled;
|
162
|
-
}
|
163
|
-
};
|
164
|
-
CalendarMonthYearComponent.ctorParameters = () => [
|
165
|
-
{ type: ChangeDetectorRef }
|
166
|
-
];
|
167
|
-
CalendarMonthYearComponent = CalendarMonthYearComponent_1 = __decorate([
|
168
|
-
Component({
|
169
|
-
selector: 'gipi-calendar-month-year',
|
170
|
-
exportAs: 'gipiMonthYearPicker',
|
171
|
-
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>",
|
172
|
-
providers: [
|
173
|
-
{
|
174
|
-
provide: NG_VALUE_ACCESSOR,
|
175
|
-
useExisting: forwardRef(() => CalendarMonthYearComponent_1),
|
176
|
-
multi: true
|
177
|
-
},
|
178
|
-
],
|
179
|
-
animations: [
|
180
|
-
matDatepickerAnimations.transformPanel,
|
181
|
-
matDatepickerAnimations.fadeInCalendar,
|
182
|
-
],
|
183
|
-
host: {
|
184
|
-
'class': 'gipi-calendar-month-year',
|
185
|
-
'[@transformPanel]': '_animationState',
|
186
|
-
'(@transformPanel.done)': '_animationDone.next()',
|
187
|
-
},
|
188
|
-
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)}"]
|
189
|
-
}),
|
190
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
191
|
-
], CalendarMonthYearComponent);
|
192
|
-
export { CalendarMonthYearComponent };
|
193
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXItbW9udGgteWVhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZ2lwaXNpc3RlbWFzL25nLWNvcmUvIiwic291cmNlcyI6WyJzaGFyZWQvZ2lwaS1jb21wb25lbnRzL21vbnRoLXllYXItcGlja2VyL2NhbGVuZGFyLW1vbnRoLXllYXIvY2FsZW5kYXItbW9udGgteWVhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLGlCQUFpQixFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzRyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNuRCxPQUFPLEVBQUUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUU3QyxPQUFPLEtBQUssT0FBTyxNQUFNLFFBQVEsQ0FBQztBQUNsQyxNQUFNLE1BQU0sR0FBRy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WWVhclBpY2tlci5fc3RhdGVDaGFuZ2VzLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX2NoYW5nZURldGVjdG9yUmVmIS5tYXJrRm9yQ2hlY2soKTtcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgICAgICB0aGlzLl9zdWJzY3JpcHRpb25zLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgIHRoaXMuX2FuaW1hdGlvbkRvbmUuY29tcGxldGUoKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgX3N0YXJ0RXhpdEFuaW1hdGlvbigpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5fYW5pbWF0aW9uU3RhdGUgPSAndm9pZCc7XG4gICAgICAgIGlmICh0aGlzLl9jaGFuZ2VEZXRlY3RvclJlZikge1xuICAgICAgICAgICAgdGhpcy5fY2hhbmdlRGV0ZWN0b3JSZWYubWFya0ZvckNoZWNrKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwdWJsaWMgZGVjcmVtZW50KCk6IHZvaWQge1xuICAgICAgICB0aGlzLm1vbnRoWWVhclBpY2tlci5tb2RlbC5kZWNyZW1lbnRZZWFyKCk7XG4gICAgICAgIGlmICh0aGlzLmlzU2hvd1llYXJzKSB7XG4gICAgICAgICAgICB0aGlzLl9yZW5kZXJZZWFycygpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIGluY3JlbWVudCgpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuaW5jcmVtZW50WWVhcigpO1xuICAgICAgICBpZiAodGhpcy5pc1Nob3dZZWFycykge1xuICAgICAgICAgICAgdGhpcy5fcmVuZGVyWWVhcnMoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHB1YmxpYyBzZWxlY3RNb250aChpbmRleDogbnVtYmVyKSB7XG4gICAgICAgIHRoaXMubW9udGhZZWFyUGlja2VyLm1vZGVsLnNlbGVjdE1vbnRoKGluZGV4KTtcbiAgICAgICAgdGhpcy5tb250aFllYXJQaWNrZXIub25WYWx1ZUNoYW5nZSh0aGlzLm1vbnRoWWVhclBpY2tlci5tb2RlbC5zZWxlY3RlZE1vbnRoSW5kZXgsIHRoaXMubW9udGhZZWFyUGlja2VyLm1vZGVsLnNlbGVjdGVkTW9udGhZZWFyKTtcbiAgICAgICAgdGhpcy5tb250aFllYXJQaWNrZXIuY2xvc2UoKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNTZWxlY3RlZE1vbnRoKG1vbnRoSW5kZXg6IG51bWJlcikge1xuICAgICAgICByZXR1cm4gdGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuc2VsZWN0ZWRNb250aEluZGV4ID09IG1vbnRoSW5kZXggJiYgdGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuc2VsZWN0ZWRNb250aFllYXIgPT0gdGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuc2VsZWN0ZWRZZWFyTW9tZW50LnllYXIoKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNDdXJyZW50TW9udGgobW9udGhJbmRleDogbnVtYmVyKSB7XG4gICAgICAgIGNvbnN0IGN1cnJlbnRNb250aDogbnVtYmVyID0gbW9tZW50KCkubW9udGgoKTtcbiAgICAgICAgY29uc3QgY3VycmVudFllYXI6IG51bWJlciA9IG1vbWVudCgpLnllYXIoKTtcbiAgICAgICAgcmV0dXJuIChtb250aEluZGV4ID09PSBjdXJyZW50TW9udGgpICYmICh0aGlzLm1vbnRoWWVhclBpY2tlci5tb2RlbC5zZWxlY3RlZFllYXJNb21lbnQueWVhcigpID09PSBjdXJyZW50WWVhcik7XG4gICAgfVxuXG4gICAgcHVibGljIGlzRGlzYWJsZWRNb250aChpbmRleDogbnVtYmVyKTogYm9vbGVhbiB7XG4gICAgICAgIGxldCBkaXNhYmxlZCA9IGZhbHNlO1xuXG4gICAgICAgIGlmICghT2JqZWN0VXRpbC5pc051bGwodGhpcy5tb250aFllYXJQaWNrZXIpKSB7XG4gICAgICAgICAgICBjb25zdCBtaW5Nb250aCA9ICFPYmplY3RVdGlsLmlzTnVsbCh0aGlzLm1vbnRoWWVhclBpY2tlci5taW4pID8gdGhpcy5tb250aFllYXJQaWNrZXIubWluLm1vbnRoIDogbnVsbDtcbiAgICAgICAgICAgIGNvbnN0IG1heE1vbnRoID0gIU9iamVjdFV0aWwuaXNOdWxsKHRoaXMubW9udGhZZWFyUGlja2VyLm1heCkgPyB0aGlzLm1vbnRoWWVhclBpY2tlci5tYXgubW9udGggOiBudWxsO1xuXG4gICAgICAgICAgICBpZiAoIU9iamVjdFV0aWwuaXNOdWxsKG1pbk1vbnRoKSAmJiAhT2JqZWN0VXRpbC5pc051bGwobWF4TW9udGgpKSB7XG4gICAgICAgICAgICAgICAgZGlzYWJsZWQgPSBpbmRleCA8IG1pbk1vbnRoIHx8IGluZGV4ID4gbWF4TW9udGg7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCFPYmplY3RVdGlsLmlzTnVsbChtaW5Nb250aCkpIHtcbiAgICAgICAgICAgICAgICBkaXNhYmxlZCA9IGluZGV4IDwgbWluTW9udGg7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCFPYmplY3RVdGlsLmlzTnVsbChtYXhNb250aCkpIHtcbiAgICAgICAgICAgICAgICBkaXNhYmxlZCA9IGluZGV4ID4gbWF4TW9udGg7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZGlzYWJsZWQ7XG4gICAgICAgIC8vIGxldCBkaXNhYmxlZCA9IGZhbHNlO1xuICAgICAgICAvLyBpZiAodGhpcy5fZW5hYmxlZE1vbnRocyAmJiB0aGlzLl9lbmFibGVkTW9udGhzLmxlbmd0aCA+IDApIHtcbiAgICAgICAgLy8gICAgIGRpc2FibGVkID0gdGhpcy5fZW5hYmxlZE1vbnRocy5pbmRleE9mKGluZGV4KSA8IDA7XG4gICAgICAgIC8vIH1cbiAgICAgICAgLy8gaWYgKHRoaXMuX2Rpc2FibGVkTW9udGhzICYmIHRoaXMuX2Rpc2FibGVkTW9udGhzLmxlbmd0aCA+IDApIHtcbiAgICAgICAgLy8gICAgIGRpc2FibGVkID0gdGhpcy5fZGlzYWJsZWRNb250aHMuaW5kZXhPZihpbmRleCkgPj0gMDtcbiAgICAgICAgLy8gfVxuICAgICAgICAvLyByZXR1cm4gZGlzYWJsZWQ7XG4gICAgfVxuXG4gICAgLyoqIFllYXJzICovXG4gICAgcHVibGljIHRvZ2dsZVNob3dZZWFycygpIHtcbiAgICAgICAgdGhpcy5pc1Nob3dZZWFycyA9ICF0aGlzLmlzU2hvd1llYXJzO1xuICAgICAgICB0aGlzLl9yZW5kZXJZZWFycygpO1xuICAgIH1cblxuICAgIHByaXZhdGUgX3JlbmRlclllYXJzKCkge1xuICAgICAgICB0aGlzLnllYXJzID0gW107XG4gICAgICAgIGZvciAobGV0IGkgPSAxMTsgaSA+IDA7IGktLSkge1xuICAgICAgICAgICAgdGhpcy55ZWFycy5wdXNoKHRoaXMubW9udGhZZWFyUGlja2VyLm1vZGVsLnNlbGVjdGVkWWVhck1vbWVudC55ZWFyKCkgLSBpKTtcbiAgICAgICAgfVxuICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8PSAxMjsgaSsrKSB7XG4gICAgICAgICAgICB0aGlzLnllYXJzLnB1c2godGhpcy5tb250aFllYXJQaWNrZXIubW9kZWwuc2VsZWN0ZWRZZWFyTW9tZW50LnllYXIoKSArIGkpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIGdldCBwZXJpb2RCdXR0b25MYWJlbCgpOiBzdHJpbmcge1xuICAgICAgICBjb25zdCBmb3JtYXRZZWFyUmFuZ2UgPSAoc3RhcnQ6IG51bWJlciwgZW5kOiBudW1iZXIpOiBzdHJpbmcgPT4ge1xuICAgICAg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yZW50WWVhcih5ZWFyOiBudW1iZXIpIHtcbiAgICAgICAgcmV0dXJuIG1vbWVudCgpLnllYXIoKSA9PT0geWVhcjtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNEaXNhYmxlZFllYXIoaW5kZXg6IG51bWJlcikge1xuICAgICAgICBsZXQgZGlzYWJsZWQgPSBmYWxzZTtcblxuICAgICAgICBpZiAoIU9iamVjdFV0aWwuaXNOdWxsKHRoaXMubW9udGhZZWFyUGlja2VyKSkge1xuICAgICAgICAgICAgY29uc3QgbWluWWVhciA9ICFPYmplY3RVdGlsLmlzTnVsbCh0aGlzLm1vbnRoWWVhclBpY2tlci5taW4pID8gdGhpcy5tb250aFllYXJQaWNrZXIubWluLnllYXIgOiBudWxsO1xuICAgICAgICAgICAgY29uc3QgbWF4WWVhciA9ICFPYmplY3RVdGlsLmlzTnVsbCh0aGlzLm1vbnRoWWVhclBpY2tlci5tYXgpID8gdGhpcy5tb250aFllYXJQaWNrZXIubWF4LnllYXIgOiBudWxsO1xuXG4gICAgICAgICAgICBpZiAoIU9iamVjdFV0aWwuaXNOdWxsKG1pblllYXIpICYmICFPYmplY3RVdGlsLmlzTnVsbChtYXhZZWFyKSkge1xuICAgICAgICAgICAgICAgIGRpc2FibGVkID0gaW5kZXggPCBtaW5ZZWFyIHx8IGluZGV4ID4gbWF4WWVhcjtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIU9iamVjdFV0aWwuaXNOdWxsKG1pblllYXIpKSB7XG4gICAgICAgICAgICAgICAgZGlzYWJsZWQgPSBpbmRleCA8IG1pblllYXI7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCFPYmplY3RVdGlsLmlzTnVsbChtYXhZZWFyKSkge1xuICAgICAgICAgICAgICAgIGRpc2FibGVkID0gaW5kZXggPiBtYXhZZWFyO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGRpc2FibGVkO1xuXG4gICAgICAgIC8vIGxldCBkaXNhYmxlZDogYm9vbGVhbiA9IGZhbHNlO1xuICAgICAgICAvLyBpZiAodGhpcy5fZW5hYmxlZFllYXJzICYmIHRoaXMuX2VuYWJsZWRZZWFycy5sZW5ndGggPiAwKSB7XG4gICAgICAgIC8vICAgICBkaXNhYmxlZCA9IHRoaXMuX2VuYWJsZWRZZWFycy5maW5kSW5kZXgoeSA9PiB5ID09PSB5ZWFyKSA8IDA7XG4gICAgICAgIC8vIH1cbiAgICAgICAgLy8gaWYgKHRoaXMuX2Rpc2FibGVkWWVhcnMgJiYgdGhpcy5fZGlzYWJsZWRZZWFycy5sZW5ndGggPiAwKSB7XG4gICAgICAgIC8vICAgICBkaXNhYmxlZCA9IHRoaXMuX2Rpc2FibGVkWWVhcnMuZmluZEluZGV4KHkgPT4geSA9PT0geWVhcikgPj0gMDtcbiAgICAgICAgLy8gfVxuICAgICAgICAvLyByZXR1cm4gZGlzYWJsZWQ7XG4gICAgfVxuXG59XG4iXX0=
|
@@ -1,47 +0,0 @@
|
|
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
|
-
let MonthYearPickerModule = class MonthYearPickerModule {
|
15
|
-
};
|
16
|
-
MonthYearPickerModule = __decorate([
|
17
|
-
NgModule({
|
18
|
-
imports: [
|
19
|
-
CommonModule,
|
20
|
-
MatButtonModule,
|
21
|
-
MatDialogModule,
|
22
|
-
OverlayModule,
|
23
|
-
A11yModule,
|
24
|
-
PortalModule,
|
25
|
-
MatIconModule,
|
26
|
-
FormsModule,
|
27
|
-
ReactiveFormsModule,
|
28
|
-
],
|
29
|
-
exports: [
|
30
|
-
ScrollingModule,
|
31
|
-
CalendarMonthYearComponent,
|
32
|
-
MonthYearPickerComponent,
|
33
|
-
],
|
34
|
-
declarations: [
|
35
|
-
CalendarMonthYearComponent,
|
36
|
-
MonthYearPickerComponent,
|
37
|
-
],
|
38
|
-
providers: [
|
39
|
-
GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER,
|
40
|
-
],
|
41
|
-
entryComponents: [
|
42
|
-
CalendarMonthYearComponent,
|
43
|
-
],
|
44
|
-
})
|
45
|
-
], MonthYearPickerModule);
|
46
|
-
export { MonthYearPickerModule };
|
47
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udC15ZWFyLXBpY2tlci5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZ2lwaXNpc3RlbWFzL25nLWNvcmUvIiwic291cmNlcyI6WyJzaGFyZWQvZ2lwaS1jb21wb25lbnRzL21vbnRoLXllYXItcGlja2VyL21vbnQteWVhci1waWNrZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDL0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNuRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDekQsT0FBTyxFQ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