@gipisistemas/ngx-core 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -55
- package/{projects/ngx-core/src/components/checkbox/checkbox.component.scss → components/checkbox/checkbox.scss} +46 -2
- package/components/date-picker/date-picker-calendar.scss +470 -0
- package/components/date-picker/date-picker.scss +74 -0
- package/components/date-picker/time-picker.scss +125 -0
- package/components/filter-listbox/filter-listbox.scss +191 -0
- package/components/form-field/form-field.scss +192 -0
- package/{projects/ngx-core/src/components/label/label.component.scss → components/label/label.scss} +1 -1
- package/{projects/ngx-core/src/components → components}/loading/loading.component.scss +27 -0
- package/{projects/ngx-core/src/components/password-requeriments/password-requeriments.component.scss → components/password-requirements/password-requirements.scss} +11 -11
- package/{projects/ngx-core/src/components → components}/radio-group/radio-group.component.scss +1 -1
- package/components/select/select.scss +243 -0
- package/{projects/ngx-core/src/components → components}/split-button/split-button.component.scss +2 -1
- package/components/tooltip/tooltip.component.scss +143 -0
- package/fesm2022/gipisistemas-ngx-core.mjs +23726 -0
- package/fesm2022/gipisistemas-ngx-core.mjs.map +1 -0
- package/index.d.ts +6062 -0
- package/package.json +54 -77
- package/theming/_index.scss +4 -0
- package/theming/_palettes.scss +112 -0
- package/{projects/ngx-core/src/theming → theming}/_theme.scss +25 -33
- package/{projects/ngx-core/src/theming → theming}/_utils.scss +766 -759
- package/.editorconfig +0 -18
- package/.github/workflows/publish.yaml +0 -35
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -19
- package/.prettierrc +0 -11
- package/.releaserc.js +0 -28
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/CHANGELOG.md +0 -46
- package/angular.json +0 -80
- package/eslint.config.js +0 -151
- package/projects/ngx-core/README.md +0 -168
- package/projects/ngx-core/eslint.config.js +0 -15
- package/projects/ngx-core/ng-package.json +0 -28
- package/projects/ngx-core/package.json +0 -50
- package/projects/ngx-core/src/animations/fly-in-out.animation.ts +0 -50
- package/projects/ngx-core/src/animations/index.ts +0 -2
- package/projects/ngx-core/src/animations/rotate.animation.ts +0 -49
- package/projects/ngx-core/src/base/components/base-form-dialog.component.ts +0 -122
- package/projects/ngx-core/src/base/components/base-form.component.ts +0 -134
- package/projects/ngx-core/src/base/components/base-list-dialog.component.ts +0 -234
- package/projects/ngx-core/src/base/components/base-list.component.ts +0 -645
- package/projects/ngx-core/src/base/components/base-report.component.ts +0 -310
- package/projects/ngx-core/src/base/components/base.component.ts +0 -144
- package/projects/ngx-core/src/base/index.ts +0 -25
- package/projects/ngx-core/src/base/interfaces/base-report-type.interface.ts +0 -32
- package/projects/ngx-core/src/base/models/base-applied-filter.model.ts +0 -14
- package/projects/ngx-core/src/base/models/base-authority.model.ts +0 -12
- package/projects/ngx-core/src/base/models/base-filter.model.ts +0 -30
- package/projects/ngx-core/src/base/models/base-form-dialog-data.model.ts +0 -22
- package/projects/ngx-core/src/base/models/base-list-dialog-data.model.ts +0 -21
- package/projects/ngx-core/src/base/models/base-menu.model.ts +0 -48
- package/projects/ngx-core/src/base/models/base-page.model.ts +0 -27
- package/projects/ngx-core/src/base/models/base-query-params.model.ts +0 -19
- package/projects/ngx-core/src/base/models/base-sort.model.ts +0 -14
- package/projects/ngx-core/src/base/models/base-token.model.ts +0 -29
- package/projects/ngx-core/src/base/models/base-user.model.ts +0 -33
- package/projects/ngx-core/src/base/models/base.model.ts +0 -37
- package/projects/ngx-core/src/base/services/base-auth.service.ts +0 -125
- package/projects/ngx-core/src/base/services/base-crud.service.ts +0 -360
- package/projects/ngx-core/src/base/services/base.service.ts +0 -197
- package/projects/ngx-core/src/components/action-row/action-row.component.ts +0 -24
- package/projects/ngx-core/src/components/action-row/index.ts +0 -2
- package/projects/ngx-core/src/components/auto-focus/auto-focus.directive.ts +0 -78
- package/projects/ngx-core/src/components/auto-focus/index.ts +0 -2
- package/projects/ngx-core/src/components/avatar/avatar.component.ts +0 -87
- package/projects/ngx-core/src/components/avatar/index.ts +0 -2
- package/projects/ngx-core/src/components/base-component/base-control-value-accessor.ts +0 -138
- package/projects/ngx-core/src/components/base-component/base-input.ts +0 -68
- package/projects/ngx-core/src/components/base-component/index.ts +0 -2
- package/projects/ngx-core/src/components/button/button.component.ts +0 -263
- package/projects/ngx-core/src/components/button/index.ts +0 -2
- package/projects/ngx-core/src/components/button-group/button-group.component.ts +0 -87
- package/projects/ngx-core/src/components/button-group/index.ts +0 -1
- package/projects/ngx-core/src/components/checkbox/checkbox.component.ts +0 -298
- package/projects/ngx-core/src/components/checkbox/index.ts +0 -2
- package/projects/ngx-core/src/components/chips/chips.component.ts +0 -170
- package/projects/ngx-core/src/components/chips/index.ts +0 -1
- package/projects/ngx-core/src/components/confirm-dialog/confirm-dialog.component.ts +0 -146
- package/projects/ngx-core/src/components/confirm-dialog/index.ts +0 -5
- package/projects/ngx-core/src/components/confirm-dialog/shared/confirm-dialog-types.enum.ts +0 -8
- package/projects/ngx-core/src/components/confirm-dialog/shared/confirm-dialog.model.ts +0 -32
- package/projects/ngx-core/src/components/confirm-dialog/shared/confirm-dialog.service.ts +0 -59
- package/projects/ngx-core/src/components/currency/currency-config.ts +0 -33
- package/projects/ngx-core/src/components/currency/currency-input.handler.ts +0 -162
- package/projects/ngx-core/src/components/currency/currency-input.manager.ts +0 -64
- package/projects/ngx-core/src/components/currency/currency-input.service.ts +0 -386
- package/projects/ngx-core/src/components/currency/currency.directive.ts +0 -144
- package/projects/ngx-core/src/components/currency/index.ts +0 -2
- package/projects/ngx-core/src/components/date-picker/date-picker.component.scss +0 -23
- package/projects/ngx-core/src/components/date-picker/date-picker.component.ts +0 -192
- package/projects/ngx-core/src/components/date-picker/index.ts +0 -1
- package/projects/ngx-core/src/components/date-range-picker/date-range-picker.component.scss +0 -105
- package/projects/ngx-core/src/components/date-range-picker/date-range-picker.component.ts +0 -464
- package/projects/ngx-core/src/components/date-range-picker/index.ts +0 -6
- package/projects/ngx-core/src/components/date-range-picker/shared/calendar/calendar.component.scss +0 -13
- package/projects/ngx-core/src/components/date-range-picker/shared/calendar/calendar.component.ts +0 -144
- package/projects/ngx-core/src/components/date-range-picker/shared/default-preset-date-options.ts +0 -61
- package/projects/ngx-core/src/components/date-range-picker/shared/preset-key.enum.ts +0 -11
- package/projects/ngx-core/src/components/date-range-picker/shared/range-selection-strategy.service.ts +0 -84
- package/projects/ngx-core/src/components/date-range-picker/shared/select-date-option.interface.ts +0 -39
- package/projects/ngx-core/src/components/date-range-picker/shared/selected-date-event.interface.ts +0 -7
- package/projects/ngx-core/src/components/datetime-picker/datetime-picker.component.scss +0 -283
- package/projects/ngx-core/src/components/datetime-picker/datetime-picker.component.ts +0 -749
- package/projects/ngx-core/src/components/datetime-picker/index.ts +0 -1
- package/projects/ngx-core/src/components/disable-auto-fill/disable-auto-fill.directive.ts +0 -22
- package/projects/ngx-core/src/components/disable-auto-fill/index.ts +0 -2
- package/projects/ngx-core/src/components/echarts/echarts.directive.ts +0 -325
- package/projects/ngx-core/src/components/echarts/index.ts +0 -5
- package/projects/ngx-core/src/components/echarts/shared/echarts-change-filter.ts +0 -63
- package/projects/ngx-core/src/components/echarts/shared/echarts-config.interface.ts +0 -6
- package/projects/ngx-core/src/components/echarts/shared/echarts-theme.type.ts +0 -1
- package/projects/ngx-core/src/components/empty/empty.component.ts +0 -66
- package/projects/ngx-core/src/components/empty/index.ts +0 -1
- package/projects/ngx-core/src/components/expansion-panel/expansion-panel.component.ts +0 -127
- package/projects/ngx-core/src/components/expansion-panel/index.ts +0 -1
- package/projects/ngx-core/src/components/field-error/field-error.component.scss +0 -7
- package/projects/ngx-core/src/components/field-error/field-error.component.ts +0 -190
- package/projects/ngx-core/src/components/field-error/index.ts +0 -2
- package/projects/ngx-core/src/components/field-error/shared/field-error-custom-validators.type.ts +0 -6
- package/projects/ngx-core/src/components/fieldset/fieldset.component.ts +0 -69
- package/projects/ngx-core/src/components/fieldset/index.ts +0 -1
- package/projects/ngx-core/src/components/file-drag-and-drop/file-drag-and-drop.component.ts +0 -205
- package/projects/ngx-core/src/components/file-drag-and-drop/index.ts +0 -1
- package/projects/ngx-core/src/components/flex-layout/flex-layout.directive.ts +0 -248
- package/projects/ngx-core/src/components/flex-layout/index.ts +0 -1
- package/projects/ngx-core/src/components/form-wrapper/form-wrapper.component.ts +0 -61
- package/projects/ngx-core/src/components/form-wrapper/index.ts +0 -2
- package/projects/ngx-core/src/components/helpful-tip/helpful-tip.component.ts +0 -37
- package/projects/ngx-core/src/components/helpful-tip/index.ts +0 -2
- package/projects/ngx-core/src/components/icon/icon.component.ts +0 -165
- package/projects/ngx-core/src/components/icon/index.ts +0 -2
- package/projects/ngx-core/src/components/index.ts +0 -59
- package/projects/ngx-core/src/components/input/index.ts +0 -4
- package/projects/ngx-core/src/components/input/input.component.ts +0 -234
- package/projects/ngx-core/src/components/input/shared/input-prefix.directive.ts +0 -7
- package/projects/ngx-core/src/components/input/shared/input-suffix.directive.ts +0 -7
- package/projects/ngx-core/src/components/input/shared/input.directive.ts +0 -83
- package/projects/ngx-core/src/components/input-currency/index.ts +0 -1
- package/projects/ngx-core/src/components/input-currency/input-currency.component.ts +0 -232
- package/projects/ngx-core/src/components/input-file/index.ts +0 -1
- package/projects/ngx-core/src/components/input-file/input-file.component.ts +0 -283
- package/projects/ngx-core/src/components/input-file/shared/file-upload-event.interface.ts +0 -4
- package/projects/ngx-core/src/components/input-group/index.ts +0 -2
- package/projects/ngx-core/src/components/input-group/input-group-addon.component.ts +0 -24
- package/projects/ngx-core/src/components/input-group/input-group.component.ts +0 -38
- package/projects/ngx-core/src/components/input-phone/index.ts +0 -1
- package/projects/ngx-core/src/components/input-phone/input-phone.component.ts +0 -249
- package/projects/ngx-core/src/components/label/index.ts +0 -1
- package/projects/ngx-core/src/components/label/label.component.ts +0 -38
- package/projects/ngx-core/src/components/loading/index.ts +0 -2
- package/projects/ngx-core/src/components/loading/loading.component.ts +0 -45
- package/projects/ngx-core/src/components/lozenge/index.ts +0 -3
- package/projects/ngx-core/src/components/lozenge/lozenge.component.ts +0 -70
- package/projects/ngx-core/src/components/lozenge/shared/lozenge-fill.type.ts +0 -4
- package/projects/ngx-core/src/components/lozenge/shared/lozenge-variant.type.ts +0 -9
- package/projects/ngx-core/src/components/month-picker/index.ts +0 -1
- package/projects/ngx-core/src/components/month-picker/month-picker.component.scss +0 -33
- package/projects/ngx-core/src/components/month-picker/month-picker.component.ts +0 -233
- package/projects/ngx-core/src/components/paginator/index.ts +0 -1
- package/projects/ngx-core/src/components/paginator/paginator.component.ts +0 -95
- package/projects/ngx-core/src/components/password-requeriments/index.ts +0 -4
- package/projects/ngx-core/src/components/password-requeriments/password-requeriments.component.ts +0 -162
- package/projects/ngx-core/src/components/password-requeriments/shared/password-requeriments.interface.ts +0 -5
- package/projects/ngx-core/src/components/password-requeriments/shared/password-validation.util.ts +0 -132
- package/projects/ngx-core/src/components/pdf-viewer/index.ts +0 -4
- package/projects/ngx-core/src/components/pdf-viewer/pdf-viewer-dialog.component.ts +0 -63
- package/projects/ngx-core/src/components/pdf-viewer/pdf-viewer.component.ts +0 -543
- package/projects/ngx-core/src/components/pdf-viewer/pdf-viewer.d.ts +0 -7
- package/projects/ngx-core/src/components/pdf-viewer/shared/pdf-viewer-dialog.model.ts +0 -17
- package/projects/ngx-core/src/components/pdf-viewer/shared/pdf-viewer-dialog.service.ts +0 -101
- package/projects/ngx-core/src/components/popover/index.ts +0 -5
- package/projects/ngx-core/src/components/popover/popover-target.directive.ts +0 -12
- package/projects/ngx-core/src/components/popover/popover-trigger.directive.ts +0 -533
- package/projects/ngx-core/src/components/popover/popover.component.ts +0 -346
- package/projects/ngx-core/src/components/popover/popover.module.ts +0 -10
- package/projects/ngx-core/src/components/popover/shared/popover-animations.ts +0 -31
- package/projects/ngx-core/src/components/popover/shared/popover-errors.ts +0 -28
- package/projects/ngx-core/src/components/popover/shared/popover-types.type.ts +0 -7
- package/projects/ngx-core/src/components/popover/shared/popover.interface.ts +0 -31
- package/projects/ngx-core/src/components/radio-button/index.ts +0 -0
- package/projects/ngx-core/src/components/radio-button/radio-button.component.ts +0 -104
- package/projects/ngx-core/src/components/radio-group/index.ts +0 -2
- package/projects/ngx-core/src/components/radio-group/radio-group.component.ts +0 -186
- package/projects/ngx-core/src/components/radio-group/shared/option-radio-group.type.ts +0 -1
- package/projects/ngx-core/src/components/scroll-fade/index.ts +0 -1
- package/projects/ngx-core/src/components/scroll-fade/scroll-fade.directive.ts +0 -130
- package/projects/ngx-core/src/components/select/index.ts +0 -4
- package/projects/ngx-core/src/components/select/select.component.scss +0 -48
- package/projects/ngx-core/src/components/select/select.component.ts +0 -284
- package/projects/ngx-core/src/components/select/shared/mat-select-media-tracker.ts +0 -40
- package/projects/ngx-core/src/components/select/shared/mat-select-options-helper.ts +0 -62
- package/projects/ngx-core/src/components/select/shared/mat-select-styles.scss +0 -429
- package/projects/ngx-core/src/components/select/shared/mat-select.directive.ts +0 -1298
- package/projects/ngx-core/src/components/select-enum/index.ts +0 -3
- package/projects/ngx-core/src/components/select-enum/select-enum.component.scss +0 -37
- package/projects/ngx-core/src/components/select-enum/select-enum.component.ts +0 -257
- package/projects/ngx-core/src/components/select-enum/shared/option-select-enum.type.ts +0 -8
- package/projects/ngx-core/src/components/select-enum/shared/select-check-all.component.ts +0 -104
- package/projects/ngx-core/src/components/sidenav/index.ts +0 -2
- package/projects/ngx-core/src/components/sidenav/shared/sidenav-arrow-animations.ts +0 -13
- package/projects/ngx-core/src/components/sidenav/sidenav.component.ts +0 -267
- package/projects/ngx-core/src/components/skeleton/index.ts +0 -2
- package/projects/ngx-core/src/components/skeleton/skeleton.component.ts +0 -101
- package/projects/ngx-core/src/components/split-button/index.ts +0 -1
- package/projects/ngx-core/src/components/split-button/shared/split-button-arrow-animations.ts +0 -17
- package/projects/ngx-core/src/components/split-button/split-button.component.ts +0 -328
- package/projects/ngx-core/src/components/stepper/index.ts +0 -2
- package/projects/ngx-core/src/components/stepper/step.component.ts +0 -67
- package/projects/ngx-core/src/components/stepper/stepper.component.ts +0 -98
- package/projects/ngx-core/src/components/table/index.ts +0 -9
- package/projects/ngx-core/src/components/table/shared/table-column-action-type.enum.ts +0 -1
- package/projects/ngx-core/src/components/table/shared/table-column-align-type.enum.ts +0 -34
- package/projects/ngx-core/src/components/table/shared/table-column-builder.model.ts +0 -275
- package/projects/ngx-core/src/components/table/shared/table-column-condition.enum.ts +0 -6
- package/projects/ngx-core/src/components/table/shared/table-column-partial.model.ts +0 -9
- package/projects/ngx-core/src/components/table/shared/table-column.model.ts +0 -132
- package/projects/ngx-core/src/components/table/shared/table-menu-item-context-builder.model.ts +0 -155
- package/projects/ngx-core/src/components/table/shared/table-menu-item-context.model.ts +0 -79
- package/projects/ngx-core/src/components/table/table.component.html +0 -341
- package/projects/ngx-core/src/components/table/table.component.ts +0 -781
- package/projects/ngx-core/src/components/tabs/index.ts +0 -2
- package/projects/ngx-core/src/components/tabs/tab-group.component.ts +0 -147
- package/projects/ngx-core/src/components/tabs/tab.component.ts +0 -90
- package/projects/ngx-core/src/components/tag/index.ts +0 -1
- package/projects/ngx-core/src/components/tag/tag.component.ts +0 -82
- package/projects/ngx-core/src/components/text-capitalize/index.ts +0 -1
- package/projects/ngx-core/src/components/text-capitalize/text-capitalize.directive.ts +0 -73
- package/projects/ngx-core/src/components/text-ellipsis/index.ts +0 -2
- package/projects/ngx-core/src/components/text-ellipsis/text-ellipsis.directive.ts +0 -42
- package/projects/ngx-core/src/components/textarea/index.ts +0 -1
- package/projects/ngx-core/src/components/textarea/textarea.component.ts +0 -234
- package/projects/ngx-core/src/components/time-clock/index.ts +0 -2
- package/projects/ngx-core/src/components/time-clock/shared/time-clock.interface.ts +0 -15
- package/projects/ngx-core/src/components/time-clock/time-clock.component.ts +0 -670
- package/projects/ngx-core/src/components/toast/index.ts +0 -5
- package/projects/ngx-core/src/components/toast/shared/toast-types.enum.ts +0 -8
- package/projects/ngx-core/src/components/toast/shared/toast.model.ts +0 -18
- package/projects/ngx-core/src/components/toast/shared/toast.service.ts +0 -66
- package/projects/ngx-core/src/components/toast/toast.component.ts +0 -116
- package/projects/ngx-core/src/components/toggle-switch/index.ts +0 -2
- package/projects/ngx-core/src/components/toggle-switch/toggle-switch.component.ts +0 -175
- package/projects/ngx-core/src/components/toolbar/index.ts +0 -2
- package/projects/ngx-core/src/components/toolbar/toolbar.component.ts +0 -28
- package/projects/ngx-core/src/components/top-nav/index.ts +0 -2
- package/projects/ngx-core/src/components/top-nav/top-nav.component.ts +0 -25
- package/projects/ngx-core/src/components/tree-table/index.ts +0 -8
- package/projects/ngx-core/src/components/tree-table/shared/tree-table-arrow-animations.ts +0 -17
- package/projects/ngx-core/src/components/tree-table/shared/tree-table-column-builder.model.ts +0 -135
- package/projects/ngx-core/src/components/tree-table/shared/tree-table-column-condition.enum.ts +0 -6
- package/projects/ngx-core/src/components/tree-table/shared/tree-table-column-partial.model.ts +0 -9
- package/projects/ngx-core/src/components/tree-table/shared/tree-table-column.model.ts +0 -64
- package/projects/ngx-core/src/components/tree-table/shared/tree-table-menu-item-context-builder.model.ts +0 -155
- package/projects/ngx-core/src/components/tree-table/shared/tree-table-menu-item-context.model.ts +0 -79
- package/projects/ngx-core/src/components/tree-table/tree-table.component.html +0 -207
- package/projects/ngx-core/src/components/tree-table/tree-table.component.ts +0 -358
- package/projects/ngx-core/src/components/user-profile/index.ts +0 -2
- package/projects/ngx-core/src/components/user-profile/shared/user-profile-arrow-animations.ts +0 -13
- package/projects/ngx-core/src/components/user-profile/user-profile.component.ts +0 -159
- package/projects/ngx-core/src/components/year-picker/index.ts +0 -1
- package/projects/ngx-core/src/components/year-picker/year-picker.component.scss +0 -37
- package/projects/ngx-core/src/components/year-picker/year-picker.component.ts +0 -264
- package/projects/ngx-core/src/decorators/debounce.decorator.ts +0 -124
- package/projects/ngx-core/src/decorators/index.ts +0 -1
- package/projects/ngx-core/src/enums/index.ts +0 -3
- package/projects/ngx-core/src/enums/menu-type.enum.ts +0 -7
- package/projects/ngx-core/src/enums/sort-direction.enum.ts +0 -6
- package/projects/ngx-core/src/enums/type-operation-dialog.enum.ts +0 -15
- package/projects/ngx-core/src/guards/auth.guard.ts +0 -15
- package/projects/ngx-core/src/guards/index.ts +0 -3
- package/projects/ngx-core/src/guards/permission.guard.ts +0 -15
- package/projects/ngx-core/src/guards/public.guard.ts +0 -21
- package/projects/ngx-core/src/interceptors/auth.interceptor.ts +0 -56
- package/projects/ngx-core/src/interceptors/error.interceptor.ts +0 -121
- package/projects/ngx-core/src/interceptors/index.ts +0 -3
- package/projects/ngx-core/src/interfaces/filter-persistence.interface.ts +0 -31
- package/projects/ngx-core/src/interfaces/index.ts +0 -3
- package/projects/ngx-core/src/interfaces/page-adjust.interface.ts +0 -10
- package/projects/ngx-core/src/interfaces/permissions.interface.ts +0 -12
- package/projects/ngx-core/src/pipes/index.ts +0 -3
- package/projects/ngx-core/src/pipes/money.pipe.ts +0 -41
- package/projects/ngx-core/src/pipes/nomalize-text.pipe.ts +0 -32
- package/projects/ngx-core/src/pipes/paginator.pipe.ts +0 -44
- package/projects/ngx-core/src/providers/allowed-public-routes.provider.ts +0 -36
- package/projects/ngx-core/src/providers/app-messages.provider.ts +0 -32
- package/projects/ngx-core/src/providers/base-auth-service.provider.ts +0 -11
- package/projects/ngx-core/src/providers/echarts-core.provider.ts +0 -11
- package/projects/ngx-core/src/providers/index.ts +0 -5
- package/projects/ngx-core/src/providers/paginator-intl.provider.ts +0 -40
- package/projects/ngx-core/src/public-api.ts +0 -14
- package/projects/ngx-core/src/services/cacheable.service.ts +0 -57
- package/projects/ngx-core/src/services/dialog.service.ts +0 -126
- package/projects/ngx-core/src/services/file-saver.service.ts +0 -86
- package/projects/ngx-core/src/services/filter-indexed-db.service.ts +0 -237
- package/projects/ngx-core/src/services/filter-persistence.service.ts +0 -359
- package/projects/ngx-core/src/services/filter-url.service.ts +0 -151
- package/projects/ngx-core/src/services/index.ts +0 -10
- package/projects/ngx-core/src/services/moment-date-adapter.service.ts +0 -15
- package/projects/ngx-core/src/services/native-date-adapter.service.ts +0 -14
- package/projects/ngx-core/src/services/page-adjust.service.ts +0 -149
- package/projects/ngx-core/src/services/svg-register.service.ts +0 -59
- package/projects/ngx-core/src/signals/filter.signal.ts +0 -138
- package/projects/ngx-core/src/signals/index.ts +0 -1
- package/projects/ngx-core/src/theming/_index.scss +0 -19
- package/projects/ngx-core/src/theming/_palettes.scss +0 -112
- package/projects/ngx-core/src/types/booleanish.type.ts +0 -2
- package/projects/ngx-core/src/types/implicit-template.type.ts +0 -3
- package/projects/ngx-core/src/types/index.ts +0 -8
- package/projects/ngx-core/src/types/mixable-object.type.ts +0 -2
- package/projects/ngx-core/src/types/nullable.type.ts +0 -2
- package/projects/ngx-core/src/types/numberish.type.ts +0 -2
- package/projects/ngx-core/src/types/page-event.type.ts +0 -4
- package/projects/ngx-core/src/types/uuid.type.ts +0 -2
- package/projects/ngx-core/src/types/void-listener.type.ts +0 -2
- package/projects/ngx-core/src/utils/array.util.ts +0 -21
- package/projects/ngx-core/src/utils/css.util.ts +0 -28
- package/projects/ngx-core/src/utils/currency.util.ts +0 -176
- package/projects/ngx-core/src/utils/date.util.ts +0 -527
- package/projects/ngx-core/src/utils/document.util.ts +0 -1126
- package/projects/ngx-core/src/utils/email.util.ts +0 -25
- package/projects/ngx-core/src/utils/index.ts +0 -14
- package/projects/ngx-core/src/utils/number-to-words.util.ts +0 -249
- package/projects/ngx-core/src/utils/number.util.ts +0 -160
- package/projects/ngx-core/src/utils/object.util.ts +0 -191
- package/projects/ngx-core/src/utils/phone.util.ts +0 -242
- package/projects/ngx-core/src/utils/states.util.ts +0 -247
- package/projects/ngx-core/src/utils/storage.util.ts +0 -110
- package/projects/ngx-core/src/utils/string.util.ts +0 -172
- package/projects/ngx-core/src/utils/uuid.util.ts +0 -60
- package/projects/ngx-core/tsconfig.lib.json +0 -14
- package/projects/ngx-core/tsconfig.lib.prod.json +0 -10
- package/scripts/sync-version.js +0 -19
- package/tsconfig.json +0 -41
- /package/{projects/ngx-core/src/components/action-row/action-row.component.scss → components/action-row/action-row.scss} +0 -0
- /package/{projects/ngx-core/src/components/avatar/avatar.component.scss → components/avatar/avatar.scss} +0 -0
- /package/{projects/ngx-core/src/components/button/button.component.scss → components/button/button.scss} +0 -0
- /package/{projects/ngx-core/src/components/button-group/button-group.component.scss → components/button-group/button-group.scss} +0 -0
- /package/{projects/ngx-core/src/components/chips/chips.component.scss → components/chips/chips.scss} +0 -0
- /package/{projects/ngx-core/src/components/confirm-dialog/confirm-dialog.component.scss → components/confirm-dialog/confirm-dialog.scss} +0 -0
- /package/{projects/ngx-core/src/components/empty/empty.component.scss → components/empty/empty.scss} +0 -0
- /package/{projects/ngx-core/src/components/expansion-panel/expansion-panel.component.scss → components/expansion-panel/expansion-panel.scss} +0 -0
- /package/{projects/ngx-core/src/components/fieldset/fieldset.component.scss → components/fieldset/fieldset.scss} +0 -0
- /package/{projects/ngx-core/src/components/file-drag-and-drop/file-drag-and-drop.component.scss → components/file-drag-and-drop/file-drag-and-drop.scss} +0 -0
- /package/{projects/ngx-core/src/components/form-wrapper/form-wrapper.component.scss → components/form-wrapper/form-wrapper.scss} +0 -0
- /package/{projects/ngx-core/src/components/helpful-tip/helpful-tip.component.scss → components/helpful-tip/helpful-tip.scss} +0 -0
- /package/{projects/ngx-core/src/components/icon/icon.component.scss → components/icon/icon.scss} +0 -0
- /package/{projects/ngx-core/src/components → components}/input/input.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/input-currency/input-currency.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/input-file/input-file.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/input-group/input-group.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/input-phone/input-phone.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/lozenge/lozenge.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/paginator/paginator.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/pdf-viewer/pdf-viewer.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/popover/popover.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/radio-button/radio-button.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/sidenav/sidenav.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/skeleton/skeleton.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/stepper/stepper.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/table/table.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/tabs/tabs.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/tag/tag.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/textarea/textarea.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/time-clock/time-clock.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/toast/toast.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/toggle-switch/toggle-switch.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/toolbar/toolbar.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/top-nav/top-nav.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/tree-table/tree-table.component.scss +0 -0
- /package/{projects/ngx-core/src/components → components}/user-profile/user-profile.component.scss +0 -0
- /package/{projects/ngx-core/src/theming → theming}/_breakpoints.scss +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
# GIPI
|
|
1
|
+
# GIPI - ngx-core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Este projeto foi gerado utilizando o [Angular CLI](https://github.com/angular/angular-cli) - _versão `19.2.0`_.
|
|
4
|
+
|
|
5
|
+
## 📝 Sobre
|
|
6
|
+
|
|
7
|
+
A biblioteca `ngx-core` fornece utilitários, temas e componentes reutilizáveis para projetos Angular, facilitando o desenvolvimento de interfaces consistentes e responsivas.
|
|
8
|
+
|
|
9
|
+
## 🧩 Pré-requisitos
|
|
10
|
+
|
|
11
|
+
- [Node](https://nodejs.org/en/download) - _vesão `^18.19.1 || ^20.11.1 || ^22.0.0`._
|
|
12
|
+
- [Angular](https://angular.dev/) - _versão `20.x.x`._
|
|
13
|
+
- [Angular Material](https://material.angular.io/) - _versão `20.x.x`_.
|
|
4
14
|
|
|
5
15
|
## ⚠️ Estrutura de Commits (Conventional Commits)
|
|
6
16
|
|
|
@@ -27,95 +37,130 @@ Sempre coloque dois pontos e um espaço depois do tipo.
|
|
|
27
37
|
Somente commits fix, feat ou com BREAKING CHANGE geram versão.
|
|
28
38
|
Outros tipos (chore, docs, refactor, etc.) não geram release automaticamente.
|
|
29
39
|
|
|
30
|
-
##
|
|
40
|
+
## 🛠️ Desenvolvimento
|
|
31
41
|
|
|
32
|
-
Para
|
|
42
|
+
Para compilar a biblioteca em modo de desenvolvimento, execute:
|
|
33
43
|
|
|
34
44
|
```bash
|
|
35
|
-
|
|
45
|
+
npm run watch
|
|
36
46
|
```
|
|
37
47
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
## 🏗 Estrutura de código
|
|
41
|
-
|
|
42
|
-
**Ainda falta detalhar**
|
|
43
|
-
|
|
44
|
-
## 🏨 Building
|
|
45
|
-
|
|
46
|
-
Para gerar a `build` do projeto, execute:
|
|
48
|
+
Isso executará o comando:
|
|
47
49
|
|
|
48
50
|
```bash
|
|
49
|
-
ng build
|
|
51
|
+
ng build --watch --configuration development
|
|
50
52
|
```
|
|
51
53
|
|
|
52
|
-
|
|
54
|
+
Uma vez compilada. A biblioteca será recarregada automaticamente sempre que houver modificações nos arquivos.
|
|
53
55
|
|
|
54
|
-
##
|
|
56
|
+
## 🖥️ Utilização no aplicativo
|
|
55
57
|
|
|
56
58
|
Para utilizar esta biblioteca, siga os passos abaixo:
|
|
57
59
|
|
|
58
|
-
### 1️⃣
|
|
60
|
+
### 1️⃣ Instalar a biblioteca no aplicativo
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
Instale a biblioteca no seu aplicativo Angular executando:
|
|
61
63
|
|
|
62
64
|
```bash
|
|
63
|
-
npm install
|
|
65
|
+
npm install caminho-da-lib\\dist\\ngx-core
|
|
64
66
|
```
|
|
65
67
|
|
|
66
|
-
|
|
68
|
+
Substitua `caminho-da-lib` pelo caminho correto onde a biblioteca foi compilada.
|
|
67
69
|
|
|
68
|
-
|
|
70
|
+
### 2️⃣ Configurar `preserveSymlinks`
|
|
69
71
|
|
|
70
|
-
|
|
71
|
-
ng add @angular/material
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Siga as instruções do assistente de instalação para configurar o Material corretamente.
|
|
75
|
-
|
|
76
|
-
## ⚙️ Configuração
|
|
77
|
-
|
|
78
|
-
Para evitar erros durante a execução, é necessário realizar algumas configurações no projeto Angular.
|
|
72
|
+
É necessário definir `preserveSymlinks: true` no arquivo `angular.json` para evitar o seguinte erro:
|
|
79
73
|
|
|
80
|
-
|
|
74
|
+
```plaintext
|
|
75
|
+
core.mjs:7195 ERROR RuntimeError: NG0203: inject() must be called from an injection context...
|
|
76
|
+
```
|
|
81
77
|
|
|
82
|
-
|
|
83
|
-
`core.mjs:7195 ERROR RuntimeError: NG0203: inject() must be called from an injection context...`
|
|
78
|
+
🔹 No `angular.json`, dentro de `projects -> nome-do-projeto -> architect -> build -> options`, adicione:
|
|
84
79
|
|
|
85
|
-
|
|
80
|
+
```json
|
|
81
|
+
"preserveSymlinks": true
|
|
82
|
+
```
|
|
86
83
|
|
|
87
|
-
###
|
|
84
|
+
### 3️⃣ Adicionar os providers necessários
|
|
88
85
|
|
|
86
|
+
Esses providers são essenciais para o funcionamento da biblioteca.
|
|
89
87
|
No `main.ts` ou no arquivo de configuração `app.config.ts`, adicione os seguintes providers:
|
|
90
88
|
|
|
91
89
|
```typescript
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
90
|
+
import { bootstrapApplication } from "@angular/platform-browser";
|
|
91
|
+
import { AppComponent } from "./app/app.component";
|
|
92
|
+
import { importProvidersFrom } from "@angular/core";
|
|
95
93
|
import { MatSnackBarModule } from "@angular/material/snack-bar";
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import { appRoutes } from "./app.routes";
|
|
94
|
+
import { provideHttpClient, withInterceptorsFromDi } from "@angular/common/http";
|
|
95
|
+
import { provideAppMessages, DEFAULT_MESSAGES } from "@gipisistemas/ngx-core";
|
|
99
96
|
|
|
100
97
|
bootstrapApplication(AppComponent, {
|
|
101
98
|
providers: [
|
|
102
|
-
...
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
provideALlowedPublicRoutes(["/oauth/change-password", "/oauth/confirm-access"]),
|
|
106
|
-
provideAppInitializer(() => {
|
|
107
|
-
const authService = inject(AuthService);
|
|
108
|
-
return authService.load();
|
|
109
|
-
}),
|
|
110
|
-
provideHttpClient(withInterceptors([authInterceptor, errorInterceptor])),
|
|
99
|
+
// ...outros providers
|
|
100
|
+
importProvidersFrom(MatSnackBarModule),
|
|
101
|
+
provideHttpClient(withInterceptorsFromDi()),
|
|
111
102
|
provideAppMessages(DEFAULT_MESSAGES),
|
|
112
|
-
providePaginatorIntl(),
|
|
113
103
|
],
|
|
114
104
|
}).catch((err) => console.error(err));
|
|
115
105
|
```
|
|
116
106
|
|
|
117
|
-
|
|
107
|
+
### 4️⃣ Temas e estilos globais
|
|
108
|
+
|
|
109
|
+
Definição de temas:
|
|
110
|
+
|
|
111
|
+
🔹 Se não informar o `$custom-theme` no mixin `all-component-themes` a biblioteca irá aderir as paletas de cores, fontes e densidades padrão.
|
|
112
|
+
|
|
113
|
+
##### Palettes
|
|
114
|
+
|
|
115
|
+
- primary: `$palette-primary`
|
|
116
|
+
- secondary: `$palette-secondary`
|
|
117
|
+
- success: `$palette-success`
|
|
118
|
+
- information: `$palette-information`
|
|
119
|
+
- warning: `$palette-warning`
|
|
120
|
+
- danger: `$palette-danger`
|
|
121
|
+
- white: `$palette-white`
|
|
122
|
+
- black: `$palette-black`
|
|
123
|
+
- pastels: `$palette-pastels`
|
|
124
|
+
|
|
125
|
+
##### Typography
|
|
126
|
+
|
|
127
|
+
- font-family: `'Roboto, sans-serif'`
|
|
128
|
+
- font-size: `1.4rem`
|
|
129
|
+
- font-base: `62.5%` - _100% equivale a 16px; Logo 62.5% de 16px = 10px; Assim 1rem equivale 10px;_
|
|
130
|
+
|
|
131
|
+
##### Density
|
|
118
132
|
|
|
119
|
-
|
|
133
|
+
- scale: `0`
|
|
134
|
+
|
|
135
|
+
Utilizando tema customizado:
|
|
136
|
+
|
|
137
|
+
```scss
|
|
138
|
+
@use "@gipisistemas/ngx-core" as ngx-core;
|
|
139
|
+
|
|
140
|
+
$custom-theme: ngx-core.define-theme(
|
|
141
|
+
(
|
|
142
|
+
palettes: (
|
|
143
|
+
primary: $palette-primary,
|
|
144
|
+
secondary: $palette-secondary,
|
|
145
|
+
// ... other palettes
|
|
146
|
+
),
|
|
147
|
+
typography: (
|
|
148
|
+
font-family: "Roboto, sans-serif",
|
|
149
|
+
font-size: 1.4rem,
|
|
150
|
+
font-base: 62.5%,
|
|
151
|
+
),
|
|
152
|
+
)
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
@include ngx-core.all-component-themes($custom-theme);
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Utilizando tema padrão:
|
|
159
|
+
|
|
160
|
+
```scss
|
|
161
|
+
@use "@gipisistemas/ngx-core" as ngx-core;
|
|
162
|
+
@include ngx-core.all-component-themes();
|
|
163
|
+
```
|
|
120
164
|
|
|
121
|
-
|
|
165
|
+
## 🚀 Produção
|
|
166
|
+
Ainda será implementado
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
@use '../../theming/utils' as utils;
|
|
2
|
+
@use '../../theming/breakpoints' as breakpoints;
|
|
2
3
|
|
|
3
4
|
@mixin checkbox-theme($theme: ()) {
|
|
4
5
|
$font-family: utils.get-font-family($theme);
|
|
5
6
|
$font-size: utils.get-font-size($theme);
|
|
6
7
|
$font-color: utils.get-font-color($theme);
|
|
8
|
+
|
|
7
9
|
$white-100: utils.get-color($theme, white, 100);
|
|
10
|
+
|
|
8
11
|
$primary-500: utils.get-color($theme, primary, 500);
|
|
12
|
+
|
|
13
|
+
$secondary-100: utils.get-color($theme, secondary, 100);
|
|
9
14
|
$secondary-200: utils.get-color($theme, secondary, 200);
|
|
10
|
-
$secondary-500: utils.get-color($theme, secondary, 500);
|
|
11
15
|
$secondary-300: utils.get-color($theme, secondary, 300);
|
|
16
|
+
$secondary-500: utils.get-color($theme, secondary, 500);
|
|
12
17
|
|
|
13
18
|
.g-checkbox {
|
|
14
19
|
display: flex;
|
|
@@ -126,7 +131,7 @@
|
|
|
126
131
|
}
|
|
127
132
|
}
|
|
128
133
|
|
|
129
|
-
|
|
134
|
+
.g-checkbox-label {
|
|
130
135
|
display: flex;
|
|
131
136
|
align-items: center;
|
|
132
137
|
gap: 0.2rem;
|
|
@@ -145,4 +150,43 @@
|
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
152
|
}
|
|
153
|
+
|
|
154
|
+
.g-checkbox-group {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
gap: 0.4rem;
|
|
158
|
+
width: fit-content;
|
|
159
|
+
user-select: none;
|
|
160
|
+
font-family: $font-family;
|
|
161
|
+
|
|
162
|
+
.g-checkbox-group-container {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
gap: 0.8rem;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.g-checkbox-group-disabled .g-checkbox-group-container {
|
|
169
|
+
cursor: not-allowed;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.g-checkbox-group-select-all {
|
|
173
|
+
margin-bottom: 0.4rem;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.g-checkbox-group-options {
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
gap: 0.8rem;
|
|
180
|
+
border-left: 2px solid $secondary-100;
|
|
181
|
+
margin-left: 1rem;
|
|
182
|
+
padding-left: 1.6rem;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@include breakpoints.mobile-view() {
|
|
186
|
+
.g-checkbox-group-horizontal .g-checkbox-group-options {
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
gap: 0.8rem;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
148
192
|
}
|