@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,33 +0,0 @@
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
2
|
-
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
|
3
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
-
var GIPITableFooterComponent = /** @class */ (function () {
|
5
|
-
function GIPITableFooterComponent() {
|
6
|
-
}
|
7
|
-
GIPITableFooterComponent_1 = GIPITableFooterComponent;
|
8
|
-
GIPITableFooterComponent.prototype.ngOnInit = function () { };
|
9
|
-
var GIPITableFooterComponent_1;
|
10
|
-
GIPITableFooterComponent = GIPITableFooterComponent_1 = __decorate([
|
11
|
-
Component({
|
12
|
-
selector: "gipi-table-footer",
|
13
|
-
exportAs: 'gipiTableFooter',
|
14
|
-
template: "<p>\n table-footer works!\n</p>\n",
|
15
|
-
providers: [
|
16
|
-
{
|
17
|
-
provide: NG_VALUE_ACCESSOR,
|
18
|
-
useExisting: forwardRef(function () { return GIPITableFooterComponent_1; }),
|
19
|
-
multi: true
|
20
|
-
}
|
21
|
-
],
|
22
|
-
host: {
|
23
|
-
'class': 'gipi-table-footer',
|
24
|
-
},
|
25
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
26
|
-
styles: [""]
|
27
|
-
}),
|
28
|
-
__metadata("design:paramtypes", [])
|
29
|
-
], GIPITableFooterComponent);
|
30
|
-
return GIPITableFooterComponent;
|
31
|
-
}());
|
32
|
-
export { GIPITableFooterComponent };
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtZm9vdGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BnaXBpc2lzdGVtYXMvbmctY29yZS8iLCJzb3VyY2VzIjpbInNoYXJlZC9naXBpLWNvbXBvbmVudHMvdGFibGUvY29tcG9uZW50cy90YWJsZS1mb290ZXIvdGFibGUtZm9vdGVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBVSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFtQm5EO0lBRUk7SUFBZ0IsQ0FBQztpQ0FGUix3QkFBd0I7SUFJakMsMkNBQVEsR0FBUixjQUFhLENBQUM7O0lBSkwsd0JBQXdCO1FBakJwQyxTQUFTLENBQUM7WUFDUCxRQUFRLEVBQUUsbUJBQW1CO1lBQzdCLFFBQVEsRUFBRSxpQkFBaUI7WUFDM0IsOENBQTRDO1lBRTVDLFNBQVMsRUFBRTtnQkFDUDtvQkFDSSxPQUFPLEVBQUUsaUJBQWlCO29CQUMxQixXQUFXLEVBQU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djbGFzcyc6ICdnaXBpLXRhYmxlLWZvb3RlcicsXG4gICAgfSxcbiAgICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBHSVBJVGFibGVGb290ZXJDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gICAgY29uc3RydWN0b3IoKSB7IH1cblxuICAgIG5nT25Jbml0KCkgeyB9XG5cbn1cbiJdfQ==
|
@@ -1,155 +0,0 @@
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
2
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, forwardRef } from '@angular/core';
|
3
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
-
import { ObjectUtil } from '../../../../../core/utils/object.util';
|
5
|
-
import { SortModel } from '../../models/sort.model';
|
6
|
-
var GIPITableHeaderComponent = /** @class */ (function () {
|
7
|
-
function GIPITableHeaderComponent(_changeDetectorRef) {
|
8
|
-
this._changeDetectorRef = _changeDetectorRef;
|
9
|
-
this._sortedColumn = null;
|
10
|
-
this.columns = [];
|
11
|
-
this.loading = false;
|
12
|
-
this.disabled = false;
|
13
|
-
this.sortStart = 'asc';
|
14
|
-
this.sortDisableClear = true;
|
15
|
-
this.sortLocked = false;
|
16
|
-
this.sortAscendingIcon = 'keyboard_arrow_up';
|
17
|
-
this.sortDescendingIcon = 'keyboard_arrow_down';
|
18
|
-
this.sortUnsetIcon = 'unfold_more';
|
19
|
-
this.sortChange = new EventEmitter();
|
20
|
-
}
|
21
|
-
GIPITableHeaderComponent_1 = GIPITableHeaderComponent;
|
22
|
-
GIPITableHeaderComponent.prototype.ngOnInit = function () {
|
23
|
-
var _this = this;
|
24
|
-
if ((this.columns && this.columns.length) && this.sortActive) {
|
25
|
-
var columnActive = this.columns.find(function (c) { return c.property === _this.sortActive; });
|
26
|
-
if (!ObjectUtil.isNull(columnActive) && columnActive.sortable && ObjectUtil.isNull(this._sortedColumn)) {
|
27
|
-
this._sortedColumn = {};
|
28
|
-
this._sortedColumn.column = columnActive;
|
29
|
-
this._sortedColumn.sortDirection = this.sortStart;
|
30
|
-
this.sortChange.emit(new SortModel(columnActive.property, this._sortedColumn.sortDirection));
|
31
|
-
}
|
32
|
-
else {
|
33
|
-
throw new Error('There is no column with the property indicated in "sortActive"');
|
34
|
-
}
|
35
|
-
}
|
36
|
-
};
|
37
|
-
GIPITableHeaderComponent.prototype.columnTrackingFn = function (index, column) {
|
38
|
-
return column.property;
|
39
|
-
};
|
40
|
-
GIPITableHeaderComponent.prototype.onSortChange = function (column) {
|
41
|
-
if (!column.sortable || this.sortLocked) {
|
42
|
-
return;
|
43
|
-
}
|
44
|
-
if (ObjectUtil.isNull(this._sortedColumn)) {
|
45
|
-
this._sortedColumn = {};
|
46
|
-
}
|
47
|
-
this._sortedColumn.column = column;
|
48
|
-
this._sortedColumn.sortDirection = this._getNextSortDirection(column);
|
49
|
-
this.sortChange.emit(new SortModel(column.property, this._sortedColumn.sortDirection));
|
50
|
-
this._changeDetectorRef.markForCheck();
|
51
|
-
};
|
52
|
-
GIPITableHeaderComponent.prototype._getNextSortDirection = function (column) {
|
53
|
-
if (!column.sortable) {
|
54
|
-
return '';
|
55
|
-
}
|
56
|
-
if (this.sortDisableClear) {
|
57
|
-
if (this._sortedColumn.sortDirection === 'asc') {
|
58
|
-
return 'desc';
|
59
|
-
}
|
60
|
-
else {
|
61
|
-
return 'asc';
|
62
|
-
}
|
63
|
-
}
|
64
|
-
else {
|
65
|
-
if (!this._sortedColumn.sortDirection) {
|
66
|
-
return 'asc';
|
67
|
-
}
|
68
|
-
else if (this._sortedColumn.sortDirection === 'asc') {
|
69
|
-
return 'desc';
|
70
|
-
}
|
71
|
-
else if (this._sortedColumn.sortDirection === 'desc') {
|
72
|
-
return '';
|
73
|
-
}
|
74
|
-
}
|
75
|
-
return '';
|
76
|
-
};
|
77
|
-
GIPITableHeaderComponent.prototype.isEqualsColumns = function (column) {
|
78
|
-
if (!ObjectUtil.isNull(this._sortedColumn) && !ObjectUtil.isNull(this._sortedColumn.column)) {
|
79
|
-
var equals = ObjectUtil.shallowEqual(this._sortedColumn.column, column);
|
80
|
-
return equals;
|
81
|
-
}
|
82
|
-
return false;
|
83
|
-
};
|
84
|
-
var GIPITableHeaderComponent_1;
|
85
|
-
GIPITableHeaderComponent.ctorParameters = function () { return [
|
86
|
-
{ type: ChangeDetectorRef }
|
87
|
-
]; };
|
88
|
-
__decorate([
|
89
|
-
Input(),
|
90
|
-
__metadata("design:type", Array)
|
91
|
-
], GIPITableHeaderComponent.prototype, "columns", void 0);
|
92
|
-
__decorate([
|
93
|
-
Input(),
|
94
|
-
__metadata("design:type", Boolean)
|
95
|
-
], GIPITableHeaderComponent.prototype, "loading", void 0);
|
96
|
-
__decorate([
|
97
|
-
Input(),
|
98
|
-
__metadata("design:type", Boolean)
|
99
|
-
], GIPITableHeaderComponent.prototype, "disabled", void 0);
|
100
|
-
__decorate([
|
101
|
-
Input(),
|
102
|
-
__metadata("design:type", String)
|
103
|
-
], GIPITableHeaderComponent.prototype, "sortActive", void 0);
|
104
|
-
__decorate([
|
105
|
-
Input(),
|
106
|
-
__metadata("design:type", String)
|
107
|
-
], GIPITableHeaderComponent.prototype, "sortStart", void 0);
|
108
|
-
__decorate([
|
109
|
-
Input(),
|
110
|
-
__metadata("design:type", Boolean)
|
111
|
-
], GIPITableHeaderComponent.prototype, "sortDisableClear", void 0);
|
112
|
-
__decorate([
|
113
|
-
Input(),
|
114
|
-
__metadata("design:type", Boolean)
|
115
|
-
], GIPITableHeaderComponent.prototype, "sortLocked", void 0);
|
116
|
-
__decorate([
|
117
|
-
Input(),
|
118
|
-
__metadata("design:type", String)
|
119
|
-
], GIPITableHeaderComponent.prototype, "sortAscendingIcon", void 0);
|
120
|
-
__decorate([
|
121
|
-
Input(),
|
122
|
-
__metadata("design:type", String)
|
123
|
-
], GIPITableHeaderComponent.prototype, "sortDescendingIcon", void 0);
|
124
|
-
__decorate([
|
125
|
-
Input(),
|
126
|
-
__metadata("design:type", String)
|
127
|
-
], GIPITableHeaderComponent.prototype, "sortUnsetIcon", void 0);
|
128
|
-
__decorate([
|
129
|
-
Output(),
|
130
|
-
__metadata("design:type", EventEmitter)
|
131
|
-
], GIPITableHeaderComponent.prototype, "sortChange", void 0);
|
132
|
-
GIPITableHeaderComponent = GIPITableHeaderComponent_1 = __decorate([
|
133
|
-
Component({
|
134
|
-
selector: "gipi-table-header",
|
135
|
-
exportAs: 'gipiTableHeader',
|
136
|
-
template: "<div class=\"table-header-content\"\n role=\"rowheader\"\n #contentHeader\n gipi-row>\n\n <div *ngFor=\"let column of columns; trackBy: columnTrackingFn; let i = index;\"\n class=\"table-header-cell noselect\"\n role=\"cell\"\n gipi-col\n [GIPISpan]=\"column.columnSpan\"\n [attr.id]=\"column.property\"\n [style.align-items]=\"'center'\"\n [style.padding-inline.px]=\"column.paddingInline\"\n [style.justify-content]=\"column.align\"\n [style.cursor]=\"column.sortable && !sortLocked ? 'pointer' : 'default'\"\n (click)=\"onSortChange(column)\">\n <span class=\"table-header-label\"\n *ngIf=\"column.name\">\n {{ column.name }}\n </span>\n\n <ng-container *ngIf=\"column.sortable && _sortedColumn && (column.property === _sortedColumn?.column?.property)\">\n <mat-icon *ngIf=\"(_sortedColumn?.sortDirection === 'asc')\"\n class=\"table-header-sort\">\n {{ sortAscendingIcon }}\n </mat-icon>\n <mat-icon *ngIf=\"(_sortedColumn?.sortDirection === 'desc')\"\n class=\"table-header-sort\">\n {{ sortDescendingIcon }}\n </mat-icon>\n <mat-icon *ngIf=\"(_sortedColumn?.sortDirection === '')\"\n class=\"table-header-sort\">\n {{ sortUnsetIcon }}\n </mat-icon>\n </ng-container>\n </div>\n\n</div>",
|
137
|
-
providers: [
|
138
|
-
{
|
139
|
-
provide: NG_VALUE_ACCESSOR,
|
140
|
-
useExisting: forwardRef(function () { return GIPITableHeaderComponent_1; }),
|
141
|
-
multi: true
|
142
|
-
}
|
143
|
-
],
|
144
|
-
host: {
|
145
|
-
'class': 'gipi-table-header',
|
146
|
-
},
|
147
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
148
|
-
styles: [".table-header-content{position:relative;white-space:nowrap;border-bottom:1px solid #e0e1e2;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:1.4rem;line-height:100%;color:#131313}.table-header-content .table-header-cell{padding:2.4rem 0;gap:1.6rem;display:flex}.table-header-content .table-header-sort{color:#131313;fill:#131313;width:1.4rem;height:1.4rem;font-size:1.4rem}.table-header-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]
|
149
|
-
}),
|
150
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
151
|
-
], GIPITableHeaderComponent);
|
152
|
-
return GIPITableHeaderComponent;
|
153
|
-
}());
|
154
|
-
export { GIPITableHeaderComponent };
|
155
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtaGVhZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BnaXBpc2lzdGVtYXMvbmctY29yZS8iLCJzb3VyY2VzIjpbInNoYXJlZC9naXBpLWNvbXBvbmVudHMvdGFibGUvY29tcG9uZW50cy90YWJsZS1oZWFkZXIvdGFibGUtaGVhZGVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLGlCQUFpQixFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZJLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRW5ELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSx1Q0FBdUMsQ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bmdlRGV0ZWN0b3JSZWYubWFya0ZvckNoZWNrKCk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBfZ2V0TmV4dFNvcnREaXJlY3Rpb24oY29sdW1uOiBUYWJsZUNvbHVtbk1vZGVsKTogU29ydERpcmVjdGlvbiB7XG4gICAgICAgIGlmICghY29sdW1uLnNvcnRhYmxlKSB7XG4gICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5zb3J0RGlzYWJsZUNsZWFyKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5fc29ydGVkQ29sdW1uLnNvcnREaXJlY3Rpb24gPT09ICdhc2MnKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuICdkZXNjJztcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuICdhc2MnO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgaWYgKCF0aGlzLl9zb3J0ZWRDb2x1bW4uc29ydERpcmVjdGlvbikge1xuICAgICAgICAgICAgICAgIHJldHVybiAnYXNjJztcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5fc29ydGVkQ29sdW1uLnNvcnREaXJlY3Rpb24gPT09ICdhc2MnKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuICdkZXNjJztcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5fc29ydGVkQ29sdW1uLnNvcnREaXJlY3Rpb24gPT09ICdkZXNjJykge1xuICAgICAgICAgICAgICAgIHJldHVybiAnJztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiAnJztcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNFcXVhbHNDb2x1bW5zKGNvbHVtbjogVGFibGVDb2x1bW5Nb2RlbCk6IGJvb2xlYW4ge1xuICAgICAgICBpZiAoIU9iamVjdFV0aWwuaXNOdWxsKHRoaXMuX3NvcnRlZENvbHVtbikgJiYgIU9iamVjdFV0aWwuaXNOdWxsKHRoaXMuX3NvcnRlZENvbHVtbi5jb2x1bW4pKSB7XG4gICAgICAgICAgICBjb25zdCBlcXVhbHM6IGJvb2xlYW4gPSBPYmplY3RVdGlsLnNoYWxsb3dFcXVhbCh0aGlzLl9zb3J0ZWRDb2x1bW4uY29sdW1uLCBjb2x1bW4pO1xuICAgICAgICAgICAgcmV0dXJuIGVxdWFscztcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbn1cbiJdfQ==
|
package/esm5/shared/gipi-components/table/components/table-pagination/shared/paginate.pipe.js
DELETED
@@ -1,123 +0,0 @@
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
2
|
-
import { Pipe } from "@angular/core";
|
3
|
-
import { GIPIPaginationService } from "./pagination.service";
|
4
|
-
var LARGE_NUMBER = Number.MAX_SAFE_INTEGER;
|
5
|
-
var GIPIPaginatePipe = /** @class */ (function () {
|
6
|
-
function GIPIPaginatePipe(_service) {
|
7
|
-
this._service = _service;
|
8
|
-
// Armazenar os valores da última vez que o pipe foi invocado
|
9
|
-
this._state = {};
|
10
|
-
}
|
11
|
-
GIPIPaginatePipe.prototype.transform = function (collection, args) {
|
12
|
-
// Quando um observável é passado pelo AsyncPipe, ele produzirá
|
13
|
-
// `null` até que a assinatura seja resolvida. Neste caso, queremos
|
14
|
-
// usar os dados em cache do objeto `_state` para evitar que o NgFor
|
15
|
-
// pisque vazio até que os valores reais cheguem.
|
16
|
-
if (!(collection instanceof Array)) {
|
17
|
-
var _id = args.id || this._service.defaultId();
|
18
|
-
if (this._state[_id]) {
|
19
|
-
return this._state[_id].slice;
|
20
|
-
}
|
21
|
-
else {
|
22
|
-
return collection;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
var serverSideMode = args.totalItems && args.totalItems !== collection.length;
|
26
|
-
var instance = this.createInstance(collection, args);
|
27
|
-
var id = instance.id;
|
28
|
-
var start;
|
29
|
-
var end;
|
30
|
-
var perPage = instance.itemsPerPage;
|
31
|
-
var emitChange = this._service.register(instance);
|
32
|
-
if (!serverSideMode && collection instanceof Array) {
|
33
|
-
perPage = +perPage || LARGE_NUMBER;
|
34
|
-
start = (instance.currentPage - 1) * perPage;
|
35
|
-
end = start + perPage;
|
36
|
-
var isIdentical = this.stateIsIdentical(id, collection, start, end);
|
37
|
-
if (isIdentical) {
|
38
|
-
return this._state[id].slice;
|
39
|
-
}
|
40
|
-
else {
|
41
|
-
var slice = collection.slice(start, end);
|
42
|
-
this.saveState(id, collection, slice, start, end);
|
43
|
-
this._service.change.emit(id);
|
44
|
-
return slice;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
else {
|
48
|
-
if (emitChange) {
|
49
|
-
this._service.change.emit(id);
|
50
|
-
}
|
51
|
-
// salve o estado para coleta do lado do servidor para evitar nulo
|
52
|
-
// pisca à medida que novos dados são carregados.
|
53
|
-
this.saveState(id, collection, collection, start, end);
|
54
|
-
return collection;
|
55
|
-
}
|
56
|
-
};
|
57
|
-
/**
|
58
|
-
* Crie um objeto PaginationInstance, usando padrões para quaisquer propriedades opcionais não fornecidas.
|
59
|
-
*/
|
60
|
-
GIPIPaginatePipe.prototype.createInstance = function (collection, config) {
|
61
|
-
this.checkConfig(config);
|
62
|
-
return {
|
63
|
-
id: config.id != null ? config.id : this._service.defaultId(),
|
64
|
-
itemsPerPage: +config.itemsPerPage || 0,
|
65
|
-
currentPage: +config.currentPage || 1,
|
66
|
-
totalItems: +config.totalItems || collection.length
|
67
|
-
};
|
68
|
-
};
|
69
|
-
/**
|
70
|
-
* Assegure-se de que o argumento passado para o filtro contenha as propriedades necessárias.
|
71
|
-
*/
|
72
|
-
GIPIPaginatePipe.prototype.checkConfig = function (config) {
|
73
|
-
var required = ['itemsPerPage', 'currentPage'];
|
74
|
-
var missing = required.filter(function (prop) { return !(prop in config); });
|
75
|
-
if (0 < missing.length) {
|
76
|
-
throw new Error("PaginatePipe: Argumento est\u00E1 faltando as seguintes propriedades necess\u00E1rias: " + missing.join(', '));
|
77
|
-
}
|
78
|
-
};
|
79
|
-
/**
|
80
|
-
* Para evitar o retorno de um novo array toda vez que o pipe é executado, armazenamos o estado do sliced
|
81
|
-
* array para um determinado id. Isso significa que na próxima vez que o canal for executado nesta coleção e id, apenas
|
82
|
-
* precisa verificar se a coleta, os pontos inicial e final são todos idênticos e, em caso afirmativo, retornar o
|
83
|
-
* último array fatiado.
|
84
|
-
*/
|
85
|
-
GIPIPaginatePipe.prototype.saveState = function (id, collection, slice, start, end) {
|
86
|
-
this._state[id] = {
|
87
|
-
collection: collection,
|
88
|
-
size: collection.length,
|
89
|
-
slice: slice,
|
90
|
-
start: start,
|
91
|
-
end: end
|
92
|
-
};
|
93
|
-
};
|
94
|
-
/**
|
95
|
-
* Para um determinado id, retorna true se os valores de coleção, tamanho, início e fim forem idênticos.
|
96
|
-
*/
|
97
|
-
GIPIPaginatePipe.prototype.stateIsIdentical = function (id, collection, start, end) {
|
98
|
-
var state = this._state[id];
|
99
|
-
if (!state) {
|
100
|
-
return false;
|
101
|
-
}
|
102
|
-
var isMetaDataIdentical = state.size === collection.length &&
|
103
|
-
state.start === start &&
|
104
|
-
state.end === end;
|
105
|
-
if (!isMetaDataIdentical) {
|
106
|
-
return false;
|
107
|
-
}
|
108
|
-
return state.slice.every(function (element, index) { return element === collection[start + index]; });
|
109
|
-
};
|
110
|
-
GIPIPaginatePipe.ctorParameters = function () { return [
|
111
|
-
{ type: GIPIPaginationService }
|
112
|
-
]; };
|
113
|
-
GIPIPaginatePipe = __decorate([
|
114
|
-
Pipe({
|
115
|
-
name: 'paginate',
|
116
|
-
pure: false
|
117
|
-
}),
|
118
|
-
__metadata("design:paramtypes", [GIPIPaginationService])
|
119
|
-
], GIPIPaginatePipe);
|
120
|
-
return GIPIPaginatePipe;
|
121
|
-
}());
|
122
|
-
export { GIPIPaginatePipe };
|
123
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9u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ZXR1cm4gKHN0YXRlLnNsaWNlIGFzIEFycmF5PGFueT4pLmV2ZXJ5KChlbGVtZW50LCBpbmRleCkgPT4gZWxlbWVudCA9PT0gY29sbGVjdGlvbltzdGFydCArIGluZGV4XSk7XG4gICAgfVxufVxuIl19
|
@@ -1,228 +0,0 @@
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
2
|
-
import { ChangeDetectorRef, Directive, EventEmitter, Input, Output } from '@angular/core';
|
3
|
-
import { GIPIPaginationService } from './pagination.service';
|
4
|
-
/**
|
5
|
-
* Esta diretiva é o que alimenta todos os componentes de controle de paginação, incluindo o padrão.
|
6
|
-
* Ele expõe uma API conectada ao GIPIPaginationService para manter o PaginatePipe sincronizado
|
7
|
-
* com os controles de paginação.
|
8
|
-
*/
|
9
|
-
var GIPIPaginationControlsDirective = /** @class */ (function () {
|
10
|
-
function GIPIPaginationControlsDirective(_service, _changeDetectorRef) {
|
11
|
-
var _this = this;
|
12
|
-
this._service = _service;
|
13
|
-
this._changeDetectorRef = _changeDetectorRef;
|
14
|
-
this.pages = [];
|
15
|
-
this.maxSize = 5;
|
16
|
-
this.pageChange = new EventEmitter();
|
17
|
-
this.pageBoundsCorrection = new EventEmitter();
|
18
|
-
this.changeSub = this._service.change.subscribe(function (id) {
|
19
|
-
if (_this.id === id) {
|
20
|
-
_this.updatePageLinks();
|
21
|
-
_this._changeDetectorRef.markForCheck();
|
22
|
-
_this._changeDetectorRef.detectChanges();
|
23
|
-
}
|
24
|
-
});
|
25
|
-
}
|
26
|
-
GIPIPaginationControlsDirective.prototype.ngOnInit = function () {
|
27
|
-
if (this.id === undefined) {
|
28
|
-
this.id = this._service.defaultId();
|
29
|
-
}
|
30
|
-
this.updatePageLinks();
|
31
|
-
};
|
32
|
-
GIPIPaginationControlsDirective.prototype.ngOnChanges = function (changes) {
|
33
|
-
this.updatePageLinks();
|
34
|
-
};
|
35
|
-
GIPIPaginationControlsDirective.prototype.ngOnDestroy = function () {
|
36
|
-
this.changeSub.unsubscribe();
|
37
|
-
};
|
38
|
-
/**
|
39
|
-
* Ir para a página anterior
|
40
|
-
*/
|
41
|
-
GIPIPaginationControlsDirective.prototype.previous = function () {
|
42
|
-
this.checkValidId();
|
43
|
-
this.setCurrent(this.getCurrent() - 1);
|
44
|
-
};
|
45
|
-
/**
|
46
|
-
* Vá para a página seguinte
|
47
|
-
*/
|
48
|
-
GIPIPaginationControlsDirective.prototype.next = function () {
|
49
|
-
this.checkValidId();
|
50
|
-
this.setCurrent(this.getCurrent() + 1);
|
51
|
-
};
|
52
|
-
/**
|
53
|
-
* Retorna true se a página atual for a primeira página
|
54
|
-
*/
|
55
|
-
GIPIPaginationControlsDirective.prototype.isFirstPage = function () {
|
56
|
-
return this.getCurrent() === 1;
|
57
|
-
};
|
58
|
-
/**
|
59
|
-
* Retorna true se a página atual for a última página
|
60
|
-
*/
|
61
|
-
GIPIPaginationControlsDirective.prototype.isLastPage = function () {
|
62
|
-
return this.getLastPage() === this.getCurrent();
|
63
|
-
};
|
64
|
-
/**
|
65
|
-
* Defina o número da página atual
|
66
|
-
*/
|
67
|
-
GIPIPaginationControlsDirective.prototype.setCurrent = function (page) {
|
68
|
-
this.pageChange.emit(page);
|
69
|
-
};
|
70
|
-
/**
|
71
|
-
* Obtenha o número da página atual
|
72
|
-
*/
|
73
|
-
GIPIPaginationControlsDirective.prototype.getCurrent = function () {
|
74
|
-
return this._service.getCurrentPage(this.id);
|
75
|
-
};
|
76
|
-
/**
|
77
|
-
* Retorna o número da última página
|
78
|
-
*/
|
79
|
-
GIPIPaginationControlsDirective.prototype.getLastPage = function () {
|
80
|
-
var inst = this._service.getInstance(this.id);
|
81
|
-
if (inst.totalItems < 1) {
|
82
|
-
// quando há 0 ou menos itens (um caso de erro), não há "páginas" como tal,
|
83
|
-
// mas faz sentido considerar uma única página vazia como a última página.
|
84
|
-
return 1;
|
85
|
-
}
|
86
|
-
return Math.ceil(inst.totalItems / inst.itemsPerPage);
|
87
|
-
};
|
88
|
-
/**
|
89
|
-
* Retorna a quantidade total de páginas
|
90
|
-
*/
|
91
|
-
GIPIPaginationControlsDirective.prototype.getTotalItems = function () {
|
92
|
-
return this._service.getInstance(this.id).totalItems;
|
93
|
-
};
|
94
|
-
/**
|
95
|
-
* Verifica se o id da PaginationInstance é válido
|
96
|
-
*/
|
97
|
-
GIPIPaginationControlsDirective.prototype.checkValidId = function () {
|
98
|
-
if (this._service.getInstance(this.id).id == null) {
|
99
|
-
console.warn("PaginationControlsDirective: O id especificado \"" + this.id + "\" n\u00E3o corresponde a nenhuma PaginationInstance registrada");
|
100
|
-
}
|
101
|
-
};
|
102
|
-
/**
|
103
|
-
* Atualiza os links da página e verifica se a página atual é válida. Deve ser executado sempre que o
|
104
|
-
* PaginationService.change stream emite um valor correspondente ao ID atual ou quando qualquer um das
|
105
|
-
* mudanças nos valores de entrada.
|
106
|
-
*/
|
107
|
-
GIPIPaginationControlsDirective.prototype.updatePageLinks = function () {
|
108
|
-
var _this = this;
|
109
|
-
var inst = this._service.getInstance(this.id);
|
110
|
-
var correctedCurrentPage = this.outOfBoundCorrection(inst);
|
111
|
-
if (correctedCurrentPage !== inst.currentPage) {
|
112
|
-
setTimeout(function () {
|
113
|
-
_this.pageBoundsCorrection.emit(correctedCurrentPage);
|
114
|
-
_this.pages = _this.createPageArray(inst.currentPage, inst.itemsPerPage, inst.totalItems, _this.maxSize);
|
115
|
-
});
|
116
|
-
}
|
117
|
-
else {
|
118
|
-
this.pages = this.createPageArray(inst.currentPage, inst.itemsPerPage, inst.totalItems, this.maxSize);
|
119
|
-
}
|
120
|
-
};
|
121
|
-
/**
|
122
|
-
* Verifica se a propriedade instance.currentPage está dentro dos limites do intervalo de páginas atual.
|
123
|
-
* Caso contrário, retorne um valor correto para currentPage ou o valor atual se OK.
|
124
|
-
*/
|
125
|
-
GIPIPaginationControlsDirective.prototype.outOfBoundCorrection = function (instance) {
|
126
|
-
var totalPages = Math.ceil(instance.totalItems / instance.itemsPerPage);
|
127
|
-
if (totalPages < instance.currentPage && 0 < totalPages) {
|
128
|
-
return totalPages;
|
129
|
-
}
|
130
|
-
else if (instance.currentPage < 1) {
|
131
|
-
return 1;
|
132
|
-
}
|
133
|
-
return instance.currentPage;
|
134
|
-
};
|
135
|
-
/**
|
136
|
-
* Retorna uma matriz de objetos Page para usar nos controles de paginação.
|
137
|
-
*/
|
138
|
-
GIPIPaginationControlsDirective.prototype.createPageArray = function (currentPage, itemsPerPage, totalItems, paginationRange) {
|
139
|
-
// paginationRange pode ser uma string se for passada de atributo, então converta para number.
|
140
|
-
paginationRange = +paginationRange;
|
141
|
-
var pages = [];
|
142
|
-
// Retorne 1 como número de página padrão
|
143
|
-
// Faz sentido mostrar 1 em vez de vazio quando não há itens
|
144
|
-
var totalPages = Math.max(Math.ceil(totalItems / itemsPerPage), 1);
|
145
|
-
var halfWay = Math.ceil(paginationRange / 2);
|
146
|
-
var isStart = currentPage <= halfWay;
|
147
|
-
var isEnd = totalPages - halfWay < currentPage;
|
148
|
-
var isMiddle = !isStart && !isEnd;
|
149
|
-
var ellipsesNeeded = paginationRange < totalPages;
|
150
|
-
var i = 1;
|
151
|
-
while (i <= totalPages && i <= paginationRange) {
|
152
|
-
var label = void 0;
|
153
|
-
var pageNumber = this.calculatePageNumber(i, currentPage, paginationRange, totalPages);
|
154
|
-
var openingEllipsesNeeded = (i === 2 && (isMiddle || isEnd));
|
155
|
-
var closingEllipsesNeeded = (i === paginationRange - 1 && (isMiddle || isStart));
|
156
|
-
if (ellipsesNeeded && (openingEllipsesNeeded || closingEllipsesNeeded)) {
|
157
|
-
label = '...';
|
158
|
-
}
|
159
|
-
else {
|
160
|
-
label = String(pageNumber);
|
161
|
-
}
|
162
|
-
pages.push({
|
163
|
-
label: label,
|
164
|
-
value: pageNumber
|
165
|
-
});
|
166
|
-
i++;
|
167
|
-
}
|
168
|
-
return pages;
|
169
|
-
};
|
170
|
-
/**
|
171
|
-
* Dada a posição na sequência de links de paginação [i],
|
172
|
-
* descubra qual número de página corresponde a essa posição.
|
173
|
-
*/
|
174
|
-
GIPIPaginationControlsDirective.prototype.calculatePageNumber = function (i, currentPage, paginationRange, totalPages) {
|
175
|
-
var halfWay = Math.ceil(paginationRange / 2);
|
176
|
-
if (i === paginationRange) {
|
177
|
-
return totalPages;
|
178
|
-
}
|
179
|
-
else if (i === 1) {
|
180
|
-
return i;
|
181
|
-
}
|
182
|
-
else if (paginationRange < totalPages) {
|
183
|
-
if (totalPages - halfWay < currentPage) {
|
184
|
-
return totalPages - paginationRange + i;
|
185
|
-
}
|
186
|
-
else if (halfWay < currentPage) {
|
187
|
-
return currentPage - halfWay + i;
|
188
|
-
}
|
189
|
-
else {
|
190
|
-
return i;
|
191
|
-
}
|
192
|
-
}
|
193
|
-
else {
|
194
|
-
return i;
|
195
|
-
}
|
196
|
-
};
|
197
|
-
GIPIPaginationControlsDirective.ctorParameters = function () { return [
|
198
|
-
{ type: GIPIPaginationService },
|
199
|
-
{ type: ChangeDetectorRef }
|
200
|
-
]; };
|
201
|
-
__decorate([
|
202
|
-
Input(),
|
203
|
-
__metadata("design:type", String)
|
204
|
-
], GIPIPaginationControlsDirective.prototype, "id", void 0);
|
205
|
-
__decorate([
|
206
|
-
Input(),
|
207
|
-
__metadata("design:type", Number)
|
208
|
-
], GIPIPaginationControlsDirective.prototype, "maxSize", void 0);
|
209
|
-
__decorate([
|
210
|
-
Output(),
|
211
|
-
__metadata("design:type", EventEmitter)
|
212
|
-
], GIPIPaginationControlsDirective.prototype, "pageChange", void 0);
|
213
|
-
__decorate([
|
214
|
-
Output(),
|
215
|
-
__metadata("design:type", EventEmitter)
|
216
|
-
], GIPIPaginationControlsDirective.prototype, "pageBoundsCorrection", void 0);
|
217
|
-
GIPIPaginationControlsDirective = __decorate([
|
218
|
-
Directive({
|
219
|
-
selector: 'pagination-template,[pagination-template]',
|
220
|
-
exportAs: 'paginationApi'
|
221
|
-
}),
|
222
|
-
__metadata("design:paramtypes", [GIPIPaginationService,
|
223
|
-
ChangeDetectorRef])
|
224
|
-
], GIPIPaginationControlsDirective);
|
225
|
-
return GIPIPaginationControlsDirective;
|
226
|
-
}());
|
227
|
-
export { GIPIPaginationControlsDirective };
|
228
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi1jb250cm9scy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZ2lwaXNpc3RlbWFzL25nLWNvcmUvIiwic291cmNlcyI6WyJzaGFyZWQvZ2lwaS1jb21wb25lbnRzL3RhYmxlL2NvbXBvbmVudHMvdGFibGUtcGFnaW5hdGlvbi9zaGFyZWQvcGFnaW5hdGlvbi1jb250cm9scy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFJMUYsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFPN0Q7Ozs7R0FJRztBQUtIO0lBYUkseUNBQ1ksUUFBK0IsRUFDL0Isa0JBQXFDO1FBRmpELGlCQVdDO1FBVlcsYUFBUSxHQUFSLFFBQVEsQ0FBdUI7UUFDL0IsdUJBQWtCLEdBQWxCLGtCQUFrQixDQUFtQjtRQVhqRCxVQUFLLEdBQVcsRUFBRSxDQUFDO1FBSVYsWUFBTyxHQUFXLENBQUMsQ0FBQztRQUVuQixlQUFVLEdBQXlCLElBQUksWUFBWSxFQUFVLENBQUM7UUFDOUQseUJBQW9CLEdBQXlCLElBQUksWUFBWSxFQUFVLENBQUM7UUFNOUUsSUFBSSxDQUFDLFNBQVMsR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsVUFBQSxFQUFFO1lBQzlDLElBQUksS0FBSSxDQUFD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Z2UgKyBpO1xuICAgICAgICAgICAgfSBlbHNlIGlmIChoYWxmV2F5IDwgY3VycmVudFBhZ2UpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gY3VycmVudFBhZ2UgLSBoYWxmV2F5ICsgaTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gaTtcbiAgICAgICAgfVxuICAgIH1cblxufVxuIl19
|
package/esm5/shared/gipi-components/table/components/table-pagination/shared/pagination-instance.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi1pbnN0YW5jZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BnaXBpc2lzdGVtYXMvbmctY29yZS8iLCJzb3VyY2VzIjpbInNoYXJlZC9naXBpLWNvbXBvbmVudHMvdGFibGUvY29tcG9uZW50cy90YWJsZS1wYWdpbmF0aW9uL3NoYXJlZC9wYWdpbmF0aW9uLWluc3RhbmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFBhZ2luYXRpb25JbnN0YW5jZSB7XG5cbiAgICAvKipcbiAgICAgKiBVbSBJRCBvcGNpb25hbCBwYXJhIGEgaW5zdMOibmNpYSBkZSBwYWdpbmHDp8Ojby4gU8OzIMOpIMO6dGlsIHNlIHZvY8OqIHF1aXNlclxuICAgICAqIHRlciBtYWlzIGRlIHVtYSBpbnN0w6JuY2lhIHBvciB2ZXogZW0gdW0gZGV0ZXJtaW5hZG8gY29tcG9uZW50ZS5cbiAgICAgKi9cbiAgICBpZD86IHN0cmluZztcblxuICAgIC8qKlxuICAgICAqIE8gbsO6bWVybyBkZSBpdGVucyBwb3IgcMOhZ2luYS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