keevo-components 1.8.127 → 1.8.130
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/esm2022/keevo-components.mjs +5 -0
- package/esm2022/lib/api/base-components/base-component-button.mjs +39 -0
- package/esm2022/lib/api/base-components/base-component-chart.mjs +92 -0
- package/esm2022/lib/api/base-components/base-component-crud-form.mjs +298 -0
- package/esm2022/lib/api/base-components/base-component-crud-list.mjs +79 -0
- package/esm2022/lib/api/base-components/base-component-crud.mjs +65 -0
- package/esm2022/lib/api/base-components/base-component-dropdown-external.mjs +31 -0
- package/esm2022/lib/api/base-components/base-component-dropdown.mjs +169 -0
- package/esm2022/lib/api/base-components/base-component-input.mjs +94 -0
- package/esm2022/lib/api/base-components/base-component-multi-select.mjs +130 -0
- package/esm2022/lib/api/base-components/base-component.mjs +51 -0
- package/esm2022/lib/api/components/chart/chart.config.mjs +2 -0
- package/esm2022/lib/api/components/chart/chart.model.mjs +2 -0
- package/esm2022/lib/api/components/chart/orchart.config.mjs +2 -0
- package/esm2022/lib/api/components/chart/orchart.item.mjs +2 -0
- package/esm2022/lib/api/components/dropdown/filtro.combo.mjs +2 -0
- package/esm2022/lib/api/components/table/action-item.mjs +2 -0
- package/esm2022/lib/api/components/table/kv-menuitem.mjs +46 -0
- package/esm2022/lib/api/components/table/table-dropdown-control.mjs +2 -0
- package/esm2022/lib/api/components/table/table.config.column.mjs +2 -0
- package/esm2022/lib/api/components/table/table.config.mjs +2 -0
- package/esm2022/lib/api/components/table/table.paginate.mjs +9 -0
- package/esm2022/lib/api/components/table/tabledit.config.mjs +2 -0
- package/esm2022/lib/api/components/table/tableedit.config.column.mjs +2 -0
- package/esm2022/lib/api/components/tree-table/tree-table.config.mjs +3 -0
- package/esm2022/lib/api/directives/template/template.directive.mjs +24 -0
- package/esm2022/lib/api/helpers/component-providers.mjs +16 -0
- package/esm2022/lib/api/helpers/keevo-validators.mjs +82 -0
- package/esm2022/lib/api/helpers/translate-primeng.mjs +23 -0
- package/esm2022/lib/api/modules/primeng.module.mjs +263 -0
- package/esm2022/lib/api/pipes/capitalize.pipe.mjs +28 -0
- package/esm2022/lib/api/pipes/cpfcnpj.pipe.mjs +25 -0
- package/esm2022/lib/api/pipes/mask.pipe.mjs +29 -0
- package/esm2022/lib/api/pipes/pipes.module.mjs +39 -0
- package/esm2022/lib/api/pipes/telefone.pipe.mjs +45 -0
- package/esm2022/lib/api/services/base.api.service.mjs +74 -0
- package/esm2022/lib/api/services/breadcrumbs.service.mjs +57 -0
- package/esm2022/lib/api/services/component.service.mjs +27 -0
- package/esm2022/lib/api/services/docs.service.mjs +129 -0
- package/esm2022/lib/api/services/form.service.mjs +85 -0
- package/esm2022/lib/api/services/imagens.service.mjs +28 -0
- package/esm2022/lib/api/services/notification.service.mjs +67 -0
- package/esm2022/lib/api/services/object.service.mjs +39 -0
- package/esm2022/lib/api/types/severity.mjs +2 -0
- package/esm2022/lib/components/keevo-components.module.mjs +151 -0
- package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +78 -0
- package/esm2022/lib/components/kv-avatar/kv-avatar.module.mjs +32 -0
- package/esm2022/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.mjs +31 -0
- package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +37 -0
- package/esm2022/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.mjs +17 -0
- package/esm2022/lib/components/kv-buttons/kv-button-success/kv-button-success.component.mjs +17 -0
- package/esm2022/lib/components/kv-buttons/kv-button.module.mjs +39 -0
- package/esm2022/lib/components/kv-carousel/kv-carousel.component.mjs +32 -0
- package/esm2022/lib/components/kv-carousel/kv-carousel.module.mjs +28 -0
- package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +145 -0
- package/esm2022/lib/components/kv-chart/kv-chart.module.mjs +32 -0
- package/esm2022/lib/components/kv-error/kv-error.component.mjs +26 -0
- package/esm2022/lib/components/kv-error/kv-error.module.mjs +35 -0
- package/esm2022/lib/components/kv-image-upload/kv-image-upload.component.mjs +83 -0
- package/esm2022/lib/components/kv-image-upload/kv-image-upload.module.mjs +18 -0
- package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +26 -0
- package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +37 -0
- package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +92 -0
- package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +89 -0
- package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +29 -0
- package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +59 -0
- package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +33 -0
- package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +25 -0
- package/esm2022/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.mjs +42 -0
- package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +43 -0
- package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +24 -0
- package/esm2022/lib/components/kv-inputs/kv-inputs.module.mjs +117 -0
- package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +44 -0
- package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +53 -0
- package/esm2022/lib/components/kv-inputs/kv-select-button/kv-select-button.component.mjs +46 -0
- package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +34 -0
- package/esm2022/lib/components/kv-label/kv-label.component.mjs +15 -0
- package/esm2022/lib/components/kv-label/kv-label.module.mjs +24 -0
- package/esm2022/lib/components/kv-loader/kv-loader.component.mjs +17 -0
- package/esm2022/lib/components/kv-loader/kv-loader.module.mjs +28 -0
- package/esm2022/lib/components/kv-loader/kv-loader.service.mjs +29 -0
- package/esm2022/lib/components/kv-login/kv-login.component.mjs +52 -0
- package/esm2022/lib/components/kv-login/kv-login.module.mjs +47 -0
- package/esm2022/lib/components/kv-menu/kv-menu.component.mjs +198 -0
- package/esm2022/lib/components/kv-menu/kv-menu.module.mjs +47 -0
- package/esm2022/lib/components/kv-modal/kv-modal.component.mjs +98 -0
- package/esm2022/lib/components/kv-modal/kv-modal.module.mjs +31 -0
- package/esm2022/lib/components/kv-orgchart/kv-orgchart.component.mjs +100 -0
- package/esm2022/lib/components/kv-orgchart/kv-orgchart.module.mjs +24 -0
- package/esm2022/lib/components/kv-page-form/kv-page-form.component.mjs +176 -0
- package/esm2022/lib/components/kv-page-form/kv-page-form.module.mjs +38 -0
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +54 -0
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.module.mjs +32 -0
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.component.mjs +58 -0
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.module.mjs +28 -0
- package/esm2022/lib/components/kv-report/kv-report.component.mjs +53 -0
- package/esm2022/lib/components/kv-report/kv-report.module.mjs +24 -0
- package/esm2022/lib/components/kv-stepper/kv-stepper.component.mjs +49 -0
- package/esm2022/lib/components/kv-stepper/kv-stepper.module.mjs +32 -0
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +494 -0
- package/esm2022/lib/components/kv-table/kv-table.module.mjs +36 -0
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +614 -0
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.module.mjs +41 -0
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +291 -0
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.module.mjs +28 -0
- package/esm2022/lib/components/kv-tree-view/kv-tree-view.component.mjs +30 -0
- package/esm2022/lib/components/kv-tree-view/kv-tree-view.module.mjs +28 -0
- package/esm2022/lib/components/kv-workspace/kv-workspace.component.mjs +167 -0
- package/esm2022/lib/components/kv-workspace/kv-workspace.module.mjs +51 -0
- package/esm2022/public-api.mjs +183 -0
- package/fesm2022/keevo-components.mjs +6273 -0
- package/fesm2022/keevo-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/api/base-components/base-component-button.d.ts +15 -0
- package/lib/api/base-components/base-component-chart.d.ts +40 -0
- package/lib/api/base-components/base-component-crud-form.d.ts +145 -0
- package/lib/api/base-components/base-component-crud-list.d.ts +64 -0
- package/lib/api/base-components/base-component-crud.d.ts +36 -0
- package/lib/api/base-components/base-component-dropdown-external.d.ts +15 -0
- package/lib/api/base-components/base-component-dropdown.d.ts +44 -0
- package/lib/api/base-components/base-component-input.d.ts +31 -0
- package/lib/api/base-components/base-component-multi-select.d.ts +35 -0
- package/lib/api/base-components/base-component.d.ts +22 -0
- package/lib/api/components/chart/chart.config.d.ts +11 -0
- package/lib/api/components/chart/chart.model.d.ts +9 -0
- package/lib/api/components/chart/orchart.config.d.ts +35 -0
- package/lib/api/components/chart/orchart.item.d.ts +26 -0
- package/lib/api/components/dropdown/filtro.combo.d.ts +4 -0
- package/lib/api/components/table/action-item.d.ts +11 -0
- package/lib/api/components/table/kv-menuitem.d.ts +152 -0
- package/lib/api/components/table/table-dropdown-control.d.ts +6 -0
- package/lib/api/components/table/table.config.column.d.ts +25 -0
- package/lib/api/components/table/table.config.d.ts +31 -0
- package/lib/api/components/table/table.paginate.d.ts +6 -0
- package/lib/api/components/table/tabledit.config.d.ts +8 -0
- package/lib/api/components/table/tableedit.config.column.d.ts +10 -0
- package/lib/api/components/tree-table/tree-table.config.d.ts +28 -0
- package/lib/api/directives/template/template.directive.d.ts +11 -0
- package/lib/api/helpers/component-providers.d.ts +2 -0
- package/lib/api/helpers/keevo-validators.d.ts +12 -0
- package/lib/api/helpers/translate-primeng.d.ts +4 -0
- package/lib/api/modules/primeng.module.d.ts +64 -0
- package/lib/api/pipes/capitalize.pipe.d.ts +8 -0
- package/lib/api/pipes/cpfcnpj.pipe.d.ts +7 -0
- package/lib/api/pipes/mask.pipe.d.ts +7 -0
- package/lib/api/pipes/pipes.module.d.ts +11 -0
- package/lib/api/pipes/telefone.pipe.d.ts +7 -0
- package/lib/api/services/base.api.service.d.ts +25 -0
- package/lib/api/services/breadcrumbs.service.d.ts +15 -0
- package/lib/api/services/component.service.d.ts +11 -0
- package/lib/api/services/docs.service.d.ts +12 -0
- package/lib/api/services/form.service.d.ts +28 -0
- package/lib/api/services/imagens.service.d.ts +10 -0
- package/lib/api/services/notification.service.d.ts +25 -0
- package/lib/api/services/object.service.d.ts +9 -0
- package/{src/lib/api/types/severity.ts → lib/api/types/severity.d.ts} +2 -3
- package/lib/components/keevo-components.module.d.ts +26 -0
- package/lib/components/kv-avatar/kv-avatar.component.d.ts +22 -0
- package/lib/components/kv-avatar/kv-avatar.module.d.ts +10 -0
- package/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.d.ts +13 -0
- package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +15 -0
- package/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.d.ts +7 -0
- package/lib/components/kv-buttons/kv-button-success/kv-button-success.component.d.ts +7 -0
- package/lib/components/kv-buttons/kv-button.module.d.ts +11 -0
- package/lib/components/kv-carousel/kv-carousel.component.d.ts +14 -0
- package/lib/components/kv-carousel/kv-carousel.module.d.ts +9 -0
- package/lib/components/kv-chart/kv-chart.component.d.ts +56 -0
- package/lib/components/kv-chart/kv-chart.module.d.ts +10 -0
- package/lib/components/kv-error/kv-error.component.d.ts +12 -0
- package/lib/components/kv-error/kv-error.module.d.ts +10 -0
- package/lib/components/kv-image-upload/kv-image-upload.component.d.ts +24 -0
- package/lib/components/kv-image-upload/kv-image-upload.module.d.ts +8 -0
- package/lib/components/kv-inputs/kv-check/kv-check.component.d.ts +11 -0
- package/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.d.ts +14 -0
- package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +21 -0
- package/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.d.ts +27 -0
- package/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.d.ts +12 -0
- package/lib/components/kv-inputs/kv-input-number/kv-input-number.component.d.ts +19 -0
- package/lib/components/kv-inputs/kv-input-password/kv-input-password.component.d.ts +13 -0
- package/lib/components/kv-inputs/kv-input-text/kv-input-text.component.d.ts +10 -0
- package/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.d.ts +16 -0
- package/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.d.ts +16 -0
- package/lib/components/kv-inputs/kv-input-time/kv-input-time.component.d.ts +10 -0
- package/lib/components/kv-inputs/kv-inputs.module.d.ts +27 -0
- package/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.d.ts +15 -0
- package/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.d.ts +18 -0
- package/lib/components/kv-inputs/kv-select-button/kv-select-button.component.d.ts +19 -0
- package/lib/components/kv-inputs/kv-switch/kv-switch.component.d.ts +14 -0
- package/lib/components/kv-label/kv-label.component.d.ts +7 -0
- package/lib/components/kv-label/kv-label.module.d.ts +8 -0
- package/lib/components/kv-loader/kv-loader.component.d.ts +8 -0
- package/lib/components/kv-loader/kv-loader.module.d.ts +9 -0
- package/lib/components/kv-loader/kv-loader.service.d.ts +10 -0
- package/lib/components/kv-login/kv-login.component.d.ts +30 -0
- package/lib/components/kv-login/kv-login.module.d.ts +13 -0
- package/lib/components/kv-menu/kv-menu.component.d.ts +59 -0
- package/lib/components/kv-menu/kv-menu.module.d.ts +13 -0
- package/lib/components/kv-modal/kv-modal.component.d.ts +28 -0
- package/lib/components/kv-modal/kv-modal.module.d.ts +10 -0
- package/lib/components/kv-orgchart/kv-orgchart.component.d.ts +27 -0
- package/lib/components/kv-orgchart/kv-orgchart.module.d.ts +9 -0
- package/lib/components/kv-page-form/kv-page-form.component.d.ts +87 -0
- package/lib/components/kv-page-form/kv-page-form.module.d.ts +11 -0
- package/lib/components/kv-pick-list/kv-pick-list.component.d.ts +22 -0
- package/lib/components/kv-pick-list/kv-pick-list.module.d.ts +10 -0
- package/lib/components/kv-progress-bar/kv-progress-bar.component.d.ts +67 -0
- package/lib/components/kv-progress-bar/kv-progress-bar.module.d.ts +9 -0
- package/lib/components/kv-report/kv-report.component.d.ts +20 -0
- package/lib/components/kv-report/kv-report.module.d.ts +8 -0
- package/lib/components/kv-stepper/kv-stepper.component.d.ts +21 -0
- package/lib/components/kv-stepper/kv-stepper.module.d.ts +10 -0
- package/lib/components/kv-table/kv-table.component.d.ts +111 -0
- package/lib/components/kv-table/kv-table.module.d.ts +11 -0
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +127 -0
- package/lib/components/kv-table-edit/kv-table-edit.module.d.ts +14 -0
- package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +61 -0
- package/lib/components/kv-tree-table/kv-tree-table.module.d.ts +9 -0
- package/lib/components/kv-tree-view/kv-tree-view.component.d.ts +14 -0
- package/lib/components/kv-tree-view/kv-tree-view.module.d.ts +9 -0
- package/lib/components/kv-workspace/kv-workspace.component.d.ts +65 -0
- package/lib/components/kv-workspace/kv-workspace.module.d.ts +14 -0
- package/package.json +43 -30
- package/{src/public-api.ts → public-api.d.ts} +179 -209
- package/ng-package.json +0 -7
- package/src/assets/.gitkeep +0 -0
- package/src/assets/images/LogoEvo.png +0 -0
- package/src/assets/images/LogoPequenaEvo.png +0 -0
- package/src/assets/images/background.png +0 -0
- package/src/assets/images/keepass-logo.png +0 -0
- package/src/assets/images/keepass-logo.svg +0 -74
- package/src/assets/images/keevo-logo.png +0 -0
- package/src/assets/images/logokeevo_2.png +0 -0
- package/src/index.ts +0 -1
- package/src/lib/api/base-components/base-component-button.ts +0 -29
- package/src/lib/api/base-components/base-component-chart.ts +0 -105
- package/src/lib/api/base-components/base-component-crud-form.ts +0 -361
- package/src/lib/api/base-components/base-component-crud-list.ts +0 -122
- package/src/lib/api/base-components/base-component-crud.ts +0 -70
- package/src/lib/api/base-components/base-component-dropdown-external.ts +0 -29
- package/src/lib/api/base-components/base-component-dropdown-new.ts +0 -112
- package/src/lib/api/base-components/base-component-dropdown.ts +0 -170
- package/src/lib/api/base-components/base-component-input.ts +0 -107
- package/src/lib/api/base-components/base-component-multi-select.ts +0 -136
- package/src/lib/api/base-components/base-component.ts +0 -47
- package/src/lib/api/components/chart/chart.config.ts +0 -12
- package/src/lib/api/components/chart/chart.model.ts +0 -9
- package/src/lib/api/components/chart/orchart.config.ts +0 -41
- package/src/lib/api/components/chart/orchart.item.ts +0 -33
- package/src/lib/api/components/dropdown/filtro.combo.ts +0 -4
- package/src/lib/api/components/table/action-item.ts +0 -11
- package/src/lib/api/components/table/kv-menuitem.ts +0 -198
- package/src/lib/api/components/table/table-dropdown-control.ts +0 -6
- package/src/lib/api/components/table/table.config.column.ts +0 -27
- package/src/lib/api/components/table/table.config.ts +0 -34
- package/src/lib/api/components/table/table.paginate.ts +0 -6
- package/src/lib/api/components/table/tabledit.config.ts +0 -10
- package/src/lib/api/components/table/tableedit.config.column.ts +0 -12
- package/src/lib/api/components/tree-table/tree-table.config.ts +0 -30
- package/src/lib/api/directives/directives.module.ts +0 -16
- package/src/lib/api/directives/drag/drag.directive.ts +0 -40
- package/src/lib/api/directives/template/template.directive.ts +0 -15
- package/src/lib/api/helpers/component-providers.ts +0 -16
- package/src/lib/api/helpers/keevo-validators.ts +0 -97
- package/src/lib/api/helpers/severity-color.ts +0 -77
- package/src/lib/api/helpers/translate-primeng.ts +0 -25
- package/src/lib/api/modules/primeng.module.ts +0 -134
- package/src/lib/api/pipes/capitalize.pipe.ts +0 -23
- package/src/lib/api/pipes/cpfcnpj.pipe.ts +0 -21
- package/src/lib/api/pipes/mask.pipe.ts +0 -24
- package/src/lib/api/pipes/pipes.module.ts +0 -26
- package/src/lib/api/pipes/telefone.pipe.ts +0 -38
- package/src/lib/api/services/base.api.service.ts +0 -115
- package/src/lib/api/services/breadcrumbs.service.ts +0 -58
- package/src/lib/api/services/component.service.ts +0 -32
- package/src/lib/api/services/docs.service.ts +0 -129
- package/src/lib/api/services/form.service.ts +0 -115
- package/src/lib/api/services/imagens.service.ts +0 -28
- package/src/lib/api/services/notification.service.ts +0 -85
- package/src/lib/api/services/object.service.ts +0 -33
- package/src/lib/api/types/stimulsoft.reports.d.ts +0 -67463
- package/src/lib/components/keevo-components-styles.scss +0 -11
- package/src/lib/components/keevo-components.module.ts +0 -72
- package/src/lib/components/kv-avatar/kv-avatar.component.html +0 -12
- package/src/lib/components/kv-avatar/kv-avatar.component.scss +0 -45
- package/src/lib/components/kv-avatar/kv-avatar.component.spec.ts +0 -23
- package/src/lib/components/kv-avatar/kv-avatar.component.ts +0 -72
- package/src/lib/components/kv-avatar/kv-avatar.module.ts +0 -21
- package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.html +0 -16
- package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.scss +0 -3
- package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.ts +0 -34
- package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.html +0 -12
- package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.scss +0 -31
- package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.ts +0 -40
- package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.html +0 -12
- package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.scss +0 -14
- package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.ts +0 -14
- package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.html +0 -11
- package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.scss +0 -13
- package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.ts +0 -14
- package/src/lib/components/kv-buttons/kv-button.module.ts +0 -26
- package/src/lib/components/kv-carousel/kv-carousel.component.html +0 -8
- package/src/lib/components/kv-carousel/kv-carousel.component.scss +0 -32
- package/src/lib/components/kv-carousel/kv-carousel.component.spec.ts +0 -23
- package/src/lib/components/kv-carousel/kv-carousel.component.ts +0 -31
- package/src/lib/components/kv-carousel/kv-carousel.module.ts +0 -19
- package/src/lib/components/kv-chart/kv-chart.component.html +0 -38
- package/src/lib/components/kv-chart/kv-chart.component.scss +0 -0
- package/src/lib/components/kv-chart/kv-chart.component.spec.ts +0 -28
- package/src/lib/components/kv-chart/kv-chart.component.ts +0 -153
- package/src/lib/components/kv-chart/kv-chart.module.ts +0 -21
- package/src/lib/components/kv-error/kv-error.component.html +0 -3
- package/src/lib/components/kv-error/kv-error.component.scss +0 -5
- package/src/lib/components/kv-error/kv-error.component.ts +0 -27
- package/src/lib/components/kv-error/kv-error.module.ts +0 -26
- package/src/lib/components/kv-image-upload/kv-image-upload.component.html +0 -62
- package/src/lib/components/kv-image-upload/kv-image-upload.component.scss +0 -0
- package/src/lib/components/kv-image-upload/kv-image-upload.component.ts +0 -82
- package/src/lib/components/kv-image-upload/kv-image-upload.module.ts +0 -10
- package/src/lib/components/kv-inputs/kv-check/kv-check.component.html +0 -12
- package/src/lib/components/kv-inputs/kv-check/kv-check.component.scss +0 -13
- package/src/lib/components/kv-inputs/kv-check/kv-check.component.ts +0 -32
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.html +0 -91
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.scss +0 -21
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.ts +0 -40
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.html +0 -100
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.scss +0 -8
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.ts +0 -113
- package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.html +0 -30
- package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.scss +0 -0
- package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.ts +0 -84
- package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.html +0 -22
- package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.scss +0 -0
- package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.ts +0 -35
- package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.html +0 -23
- package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.scss +0 -0
- package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.ts +0 -61
- package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.html +0 -23
- package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.scss +0 -0
- package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.ts +0 -26
- package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.html +0 -22
- package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.scss +0 -18
- package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.ts +0 -27
- package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.html +0 -35
- package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.scss +0 -0
- package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.spec.ts +0 -23
- package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.ts +0 -43
- package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.html +0 -22
- package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.scss +0 -0
- package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.ts +0 -40
- package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.html +0 -23
- package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.scss +0 -0
- package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.ts +0 -27
- package/src/lib/components/kv-inputs/kv-inputs.module.ts +0 -75
- package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.html +0 -45
- package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.scss +0 -13
- package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.ts +0 -44
- package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.html +0 -19
- package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.scss +0 -15
- package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.ts +0 -59
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.html +0 -26
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.scss +0 -5
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.spec.ts +0 -21
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.ts +0 -30
- package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.html +0 -13
- package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.scss +0 -3
- package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.ts +0 -41
- package/src/lib/components/kv-label/kv-label.component.html +0 -6
- package/src/lib/components/kv-label/kv-label.component.scss +0 -9
- package/src/lib/components/kv-label/kv-label.component.spec.ts +0 -23
- package/src/lib/components/kv-label/kv-label.component.ts +0 -14
- package/src/lib/components/kv-label/kv-label.module.ts +0 -17
- package/src/lib/components/kv-loader/kv-loader.component.html +0 -1
- package/src/lib/components/kv-loader/kv-loader.component.ts +0 -15
- package/src/lib/components/kv-loader/kv-loader.module.ts +0 -17
- package/src/lib/components/kv-loader/kv-loader.service.ts +0 -31
- package/src/lib/components/kv-login/kv-login.component.html +0 -108
- package/src/lib/components/kv-login/kv-login.component.scss +0 -76
- package/src/lib/components/kv-login/kv-login.component.spec.ts +0 -23
- package/src/lib/components/kv-login/kv-login.component.ts +0 -81
- package/src/lib/components/kv-login/kv-login.module.ts +0 -33
- package/src/lib/components/kv-menu/kv-menu.component.html +0 -292
- package/src/lib/components/kv-menu/kv-menu.component.scss +0 -214
- package/src/lib/components/kv-menu/kv-menu.component.spec.ts +0 -23
- package/src/lib/components/kv-menu/kv-menu.component.ts +0 -195
- package/src/lib/components/kv-menu/kv-menu.module.ts +0 -33
- package/src/lib/components/kv-modal/kv-modal.component.html +0 -20
- package/src/lib/components/kv-modal/kv-modal.component.scss +0 -84
- package/src/lib/components/kv-modal/kv-modal.component.spec.ts +0 -21
- package/src/lib/components/kv-modal/kv-modal.component.ts +0 -114
- package/src/lib/components/kv-modal/kv-modal.module.ts +0 -21
- package/src/lib/components/kv-orgchart/kv-orgchart.component.html +0 -58
- package/src/lib/components/kv-orgchart/kv-orgchart.component.scss +0 -21
- package/src/lib/components/kv-orgchart/kv-orgchart.component.ts +0 -110
- package/src/lib/components/kv-orgchart/kv-orgchart.module.ts +0 -14
- package/src/lib/components/kv-page-form/kv-page-form.component.html +0 -117
- package/src/lib/components/kv-page-form/kv-page-form.component.scss +0 -76
- package/src/lib/components/kv-page-form/kv-page-form.component.spec.ts +0 -28
- package/src/lib/components/kv-page-form/kv-page-form.component.ts +0 -152
- package/src/lib/components/kv-page-form/kv-page-form.module.ts +0 -31
- package/src/lib/components/kv-pick-list/kv-pick-list.component.html +0 -19
- package/src/lib/components/kv-pick-list/kv-pick-list.component.scss +0 -0
- package/src/lib/components/kv-pick-list/kv-pick-list.component.spec.ts +0 -26
- package/src/lib/components/kv-pick-list/kv-pick-list.component.ts +0 -37
- package/src/lib/components/kv-pick-list/kv-pick-list.module.ts +0 -21
- package/src/lib/components/kv-progress-bar/kv-progress-bar.component.html +0 -38
- package/src/lib/components/kv-progress-bar/kv-progress-bar.component.scss +0 -110
- package/src/lib/components/kv-progress-bar/kv-progress-bar.component.spec.ts +0 -21
- package/src/lib/components/kv-progress-bar/kv-progress-bar.component.ts +0 -79
- package/src/lib/components/kv-progress-bar/kv-progress-bar.module.ts +0 -19
- package/src/lib/components/kv-report/kv-report.component.html +0 -12
- package/src/lib/components/kv-report/kv-report.component.scss +0 -21
- package/src/lib/components/kv-report/kv-report.component.spec.ts +0 -28
- package/src/lib/components/kv-report/kv-report.component.ts +0 -50
- package/src/lib/components/kv-report/kv-report.module.ts +0 -18
- package/src/lib/components/kv-stepper/kv-stepper.component.html +0 -44
- package/src/lib/components/kv-stepper/kv-stepper.component.scss +0 -41
- package/src/lib/components/kv-stepper/kv-stepper.component.spec.ts +0 -23
- package/src/lib/components/kv-stepper/kv-stepper.component.ts +0 -41
- package/src/lib/components/kv-stepper/kv-stepper.module.ts +0 -20
- package/src/lib/components/kv-table/kv-table.component.html +0 -482
- package/src/lib/components/kv-table/kv-table.component.scss +0 -265
- package/src/lib/components/kv-table/kv-table.component.spec.ts +0 -28
- package/src/lib/components/kv-table/kv-table.component.ts +0 -535
- package/src/lib/components/kv-table/kv-table.module.ts +0 -23
- package/src/lib/components/kv-table-edit/kv-table-edit.component.html +0 -659
- package/src/lib/components/kv-table-edit/kv-table-edit.component.scss +0 -701
- package/src/lib/components/kv-table-edit/kv-table-edit.component.ts +0 -700
- package/src/lib/components/kv-table-edit/kv-table-edit.module.ts +0 -28
- package/src/lib/components/kv-tree-table/kv-tree-table.component.html +0 -556
- package/src/lib/components/kv-tree-table/kv-tree-table.component.scss +0 -145
- package/src/lib/components/kv-tree-table/kv-tree-table.component.spec.ts +0 -21
- package/src/lib/components/kv-tree-table/kv-tree-table.component.ts +0 -294
- package/src/lib/components/kv-tree-table/kv-tree-table.module.ts +0 -18
- package/src/lib/components/kv-tree-view/kv-tree-view.component.html +0 -9
- package/src/lib/components/kv-tree-view/kv-tree-view.component.scss +0 -0
- package/src/lib/components/kv-tree-view/kv-tree-view.component.spec.ts +0 -23
- package/src/lib/components/kv-tree-view/kv-tree-view.component.ts +0 -31
- package/src/lib/components/kv-tree-view/kv-tree-view.module.ts +0 -19
- package/src/lib/components/kv-workspace/kv-workspace.component.html +0 -53
- package/src/lib/components/kv-workspace/kv-workspace.component.scss +0 -117
- package/src/lib/components/kv-workspace/kv-workspace.component.ts +0 -201
- package/src/lib/components/kv-workspace/kv-workspace.module.ts +0 -35
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { KvAvatarModule } from './kv-avatar/kv-avatar.module';
|
|
4
|
-
import { KvButtonsModule } from './kv-buttons/kv-button.module';
|
|
5
|
-
import { KvCarouselModule } from './kv-carousel/kv-carousel.module';
|
|
6
|
-
import { KvChartModule } from './kv-chart/kv-chart.module';
|
|
7
|
-
import { KvInputsModule } from './kv-inputs/kv-inputs.module';
|
|
8
|
-
import { KvLoaderModule } from './kv-loader/kv-loader.module';
|
|
9
|
-
import { KvLoginModule } from './kv-login/kv-login.module';
|
|
10
|
-
import { KvMenuModule } from './kv-menu/kv-menu.module';
|
|
11
|
-
import { KvModalModule } from './kv-modal/kv-modal.module';
|
|
12
|
-
import { KvOrgchartModule } from './kv-orgchart/kv-orgchart.module';
|
|
13
|
-
import { KvPageFormModule } from './kv-page-form/kv-page-form.module';
|
|
14
|
-
import { KvPickListModule } from './kv-pick-list/kv-pick-list.module';
|
|
15
|
-
import { KvProgressBarModule } from './kv-progress-bar/kv-progress-bar.module';
|
|
16
|
-
import { KvTableEditModule } from './kv-table-edit/kv-table-edit.module';
|
|
17
|
-
import { KvTableModule } from './kv-table/kv-table.module';
|
|
18
|
-
import { KvTreetableModule } from './kv-tree-table/kv-tree-table.module';
|
|
19
|
-
import { KvtreeViewModule } from './kv-tree-view/kv-tree-view.module';
|
|
20
|
-
import { KvWorkspaceModule } from './kv-workspace/kv-workspace.module';
|
|
21
|
-
import { KvStepperModule } from './kv-stepper/kv-stepper.module';
|
|
22
|
-
import { KvImageUploadModule } from './kv-image-upload/kv-image-upload.module';
|
|
23
|
-
|
|
24
|
-
@NgModule({
|
|
25
|
-
declarations: [
|
|
26
|
-
|
|
27
|
-
],
|
|
28
|
-
imports: [
|
|
29
|
-
KvAvatarModule,
|
|
30
|
-
KvButtonsModule,
|
|
31
|
-
KvCarouselModule,
|
|
32
|
-
KvChartModule,
|
|
33
|
-
KvInputsModule,
|
|
34
|
-
KvLoaderModule,
|
|
35
|
-
KvLoginModule,
|
|
36
|
-
KvMenuModule,
|
|
37
|
-
KvModalModule,
|
|
38
|
-
KvOrgchartModule,
|
|
39
|
-
KvPageFormModule,
|
|
40
|
-
KvPickListModule,
|
|
41
|
-
KvProgressBarModule,
|
|
42
|
-
KvTableModule,
|
|
43
|
-
KvTreetableModule,
|
|
44
|
-
KvtreeViewModule,
|
|
45
|
-
KvWorkspaceModule,
|
|
46
|
-
KvStepperModule,
|
|
47
|
-
KvImageUploadModule
|
|
48
|
-
],
|
|
49
|
-
exports: [
|
|
50
|
-
KvAvatarModule,
|
|
51
|
-
KvButtonsModule,
|
|
52
|
-
KvCarouselModule,
|
|
53
|
-
KvChartModule,
|
|
54
|
-
KvInputsModule,
|
|
55
|
-
KvLoaderModule,
|
|
56
|
-
KvLoginModule,
|
|
57
|
-
KvMenuModule,
|
|
58
|
-
KvModalModule,
|
|
59
|
-
KvOrgchartModule,
|
|
60
|
-
KvPageFormModule,
|
|
61
|
-
KvPickListModule,
|
|
62
|
-
KvProgressBarModule,
|
|
63
|
-
KvTableEditModule,
|
|
64
|
-
KvTableModule,
|
|
65
|
-
KvTreetableModule,
|
|
66
|
-
KvtreeViewModule,
|
|
67
|
-
KvWorkspaceModule,
|
|
68
|
-
KvStepperModule,
|
|
69
|
-
KvImageUploadModule
|
|
70
|
-
]
|
|
71
|
-
})
|
|
72
|
-
export class KeevoComponentsModule { }
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<div class="image-container">
|
|
2
|
-
<img [src]="getImageSrc() || imageService.userDefaultImage()" alt="Foto" class="container-foto" [style.border-color]="borderColor" [style.width.px]="width" [style.height.px]="height" (error)="handleImageError($event)" >
|
|
3
|
-
<div class="btn">
|
|
4
|
-
<input *ngIf="btnAlterarFoto" id="fotoEscolhida" type="file" accept="image/*" style="display:none" (change)="selectFotoSelecionada($event)">
|
|
5
|
-
<button *ngIf="btnAlterarFoto && !existeLogo" class="botao-alterar-foto border-circle" (click)="openFile()">
|
|
6
|
-
<i class="pi pi-camera icon-edit"></i>
|
|
7
|
-
</button>
|
|
8
|
-
<button *ngIf="btnAlterarFoto && existeLogo" class="botao-excluir-foto border-circle" (click)="removerFoto()">
|
|
9
|
-
<i class="pi pi-trash icon-delete"></i>
|
|
10
|
-
</button>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
img {
|
|
2
|
-
border-style: solid;
|
|
3
|
-
border-width: 4px;
|
|
4
|
-
border-radius: 50%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.botao-alterar-foto {
|
|
8
|
-
border-style: none;
|
|
9
|
-
width: max-content;
|
|
10
|
-
background-color: rgb(82, 137, 180);
|
|
11
|
-
color: black;
|
|
12
|
-
font-weight: bold;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
padding: 10px 12px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.botao-alterar-foto i {
|
|
18
|
-
color: #fff;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.botao-excluir-foto {
|
|
22
|
-
border-style: none;
|
|
23
|
-
width: max-content;
|
|
24
|
-
background-color: rgb(82, 137, 180);
|
|
25
|
-
color: black;
|
|
26
|
-
font-weight: bold;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
padding: 10px 12px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.botao-excluir-foto i {
|
|
32
|
-
color: #fff;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.btn {
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: 87%;
|
|
38
|
-
left: 87%;
|
|
39
|
-
transform: translate(-50%, -50%);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.image-container {
|
|
43
|
-
display: inline-block;
|
|
44
|
-
position: relative;
|
|
45
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { KvAvatarComponent } from './kv-avatar.component';
|
|
4
|
-
|
|
5
|
-
describe('AvatarComponent', () => {
|
|
6
|
-
let component: KvAvatarComponent;
|
|
7
|
-
let fixture: ComponentFixture<KvAvatarComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ KvAvatarComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(KvAvatarComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
EventEmitter,
|
|
4
|
-
Input,
|
|
5
|
-
Output
|
|
6
|
-
} from '@angular/core';
|
|
7
|
-
|
|
8
|
-
import { ImagensService } from '../../api/services/imagens.service';
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'kv-avatar',
|
|
12
|
-
templateUrl: './kv-avatar.component.html',
|
|
13
|
-
styleUrls: ['./kv-avatar.component.scss']
|
|
14
|
-
})
|
|
15
|
-
export class KvAvatarComponent {
|
|
16
|
-
@Input() imageUrl!: string;
|
|
17
|
-
@Input() borderColor: string = '#5289B4';
|
|
18
|
-
@Input() width: number = 135;
|
|
19
|
-
@Input() height: number = 135;
|
|
20
|
-
@Output() imageUrlChange = new EventEmitter<string>();
|
|
21
|
-
@Output() removerFotoEvent = new EventEmitter<void>();
|
|
22
|
-
existeLogo = false;
|
|
23
|
-
|
|
24
|
-
@Input() btnAlterarFoto: boolean = false;
|
|
25
|
-
|
|
26
|
-
constructor(public imageService: ImagensService) { }
|
|
27
|
-
|
|
28
|
-
getImageSrc(): string {
|
|
29
|
-
if (this.imageUrl && (this.imageUrl.startsWith('data:image') || this.imageUrl.startsWith('http') || this.imageUrl.startsWith('https'))) {
|
|
30
|
-
this.existeLogo = true;
|
|
31
|
-
return this.imageUrl;
|
|
32
|
-
} else if (this.imageUrl) {
|
|
33
|
-
this.existeLogo = true;
|
|
34
|
-
return 'data:image/jpg;base64,' + this.imageUrl;
|
|
35
|
-
} else {
|
|
36
|
-
this.existeLogo = false;
|
|
37
|
-
return this.imageService.userDefaultImage();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
openFile() {
|
|
42
|
-
const inputElement: HTMLInputElement | null = document.getElementById('fotoEscolhida') as HTMLInputElement;
|
|
43
|
-
if (inputElement) {
|
|
44
|
-
inputElement.click();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
selectFotoSelecionada(event: any) {
|
|
49
|
-
const file = event.target.files[0];
|
|
50
|
-
if (file) {
|
|
51
|
-
const reader = new FileReader();
|
|
52
|
-
reader.readAsDataURL(file);
|
|
53
|
-
reader.onload = () => {
|
|
54
|
-
this.imageUrl = reader.result as string;
|
|
55
|
-
this.existeLogo = true;
|
|
56
|
-
this.imageUrlChange.emit(this.imageUrl);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
removerFoto() {
|
|
63
|
-
this.imageUrl = '';
|
|
64
|
-
this.removerFotoEvent.emit();
|
|
65
|
-
this.existeLogo = false;
|
|
66
|
-
this.imageUrlChange.emit(this.imageUrl);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
handleImageError(event: any) {
|
|
70
|
-
event.target.src = this.imageService.userDefaultImage();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ButtonModule } from 'primeng/button';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FileUploadModule } from 'primeng/fileupload';
|
|
4
|
-
import { NgModule } from "@angular/core";
|
|
5
|
-
|
|
6
|
-
import { KvAvatarComponent } from "./kv-avatar.component";
|
|
7
|
-
|
|
8
|
-
@NgModule({
|
|
9
|
-
declarations: [
|
|
10
|
-
KvAvatarComponent
|
|
11
|
-
],
|
|
12
|
-
imports: [
|
|
13
|
-
CommonModule,
|
|
14
|
-
ButtonModule,
|
|
15
|
-
FileUploadModule
|
|
16
|
-
],
|
|
17
|
-
exports: [
|
|
18
|
-
KvAvatarComponent
|
|
19
|
-
]
|
|
20
|
-
})
|
|
21
|
-
export class KvAvatarModule { }
|
package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.html
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<button
|
|
2
|
-
pButton
|
|
3
|
-
pRipple
|
|
4
|
-
[icon]="icon"
|
|
5
|
-
[label]="label"
|
|
6
|
-
[loading]="loading"
|
|
7
|
-
(click)="click($event)"
|
|
8
|
-
[disabled]="disabled"
|
|
9
|
-
class="btn-personalize"
|
|
10
|
-
[style.color]="textColor"
|
|
11
|
-
[style.backgroundColor]="backgroundColor"
|
|
12
|
-
[style.borderColor]="backgroundColor"
|
|
13
|
-
(mouseover)="onMouseOver()"
|
|
14
|
-
(mouseout)="onMouseOut()"
|
|
15
|
-
[text]="text"
|
|
16
|
-
></button>
|
package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { BaseComponentButton } from '../../../api/base-components/base-component-button';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'kv-button-personalize',
|
|
7
|
-
templateUrl: './kv-button-personalize.component.html',
|
|
8
|
-
styleUrls: ['./kv-button-personalize.component.scss']
|
|
9
|
-
})
|
|
10
|
-
export class KvButtonPersonalizeComponent extends BaseComponentButton {
|
|
11
|
-
|
|
12
|
-
@Input() colorHover!: string;
|
|
13
|
-
@Input() textColor!: string;
|
|
14
|
-
|
|
15
|
-
backgroundColor!: string;
|
|
16
|
-
|
|
17
|
-
constructor() {
|
|
18
|
-
super();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
this.colorHover = this.colorHover? this.colorHover : this.color;
|
|
23
|
-
this.backgroundColor = this.color;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
onMouseOver() {
|
|
27
|
-
this.backgroundColor = this.colorHover;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
onMouseOut() {
|
|
31
|
-
this.backgroundColor = this.color;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<p-menu #menu [model]="items" appendTo="body" [popup]="true" (onShow)="handleShow()" (onHide)="handleHide()"></p-menu>
|
|
2
|
-
<button
|
|
3
|
-
pButton
|
|
4
|
-
pRipple
|
|
5
|
-
class="{{classBtn}} btn-popup"
|
|
6
|
-
[icon]="icon"
|
|
7
|
-
iconPos="right"
|
|
8
|
-
[label]="label"
|
|
9
|
-
[loading]="loading"
|
|
10
|
-
[disabled]="disabled"
|
|
11
|
-
(click)="menu.toggle($event)">
|
|
12
|
-
</button>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.btn-success {
|
|
2
|
-
background-color: #29b92d !important;
|
|
3
|
-
color: #fff !important;
|
|
4
|
-
|
|
5
|
-
&:hover {
|
|
6
|
-
background-color: #229925 !important;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
&:disabled {
|
|
10
|
-
pointer-events: none;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.btn-secondary {
|
|
15
|
-
background-color: #f2f3f5 !important;
|
|
16
|
-
color: rgba(0, 0, 0, .87) !important;
|
|
17
|
-
|
|
18
|
-
&:hover {
|
|
19
|
-
background-color: #ef5350 !important;
|
|
20
|
-
color: #FFF !important;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&:disabled {
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.btn-popup{
|
|
30
|
-
height:35px;
|
|
31
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
Input
|
|
4
|
-
} from '@angular/core';
|
|
5
|
-
|
|
6
|
-
import { MenuItem } from 'primeng/api';
|
|
7
|
-
|
|
8
|
-
import { BaseComponentButton } from '../../../api/base-components/base-component-button';
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'kv-button-popup',
|
|
12
|
-
templateUrl: './kv-button-popup.component.html',
|
|
13
|
-
styleUrls: ['./kv-button-popup.component.scss']
|
|
14
|
-
})
|
|
15
|
-
export class KvButtonPopupComponent extends BaseComponentButton {
|
|
16
|
-
|
|
17
|
-
@Input() items: MenuItem[] = [];
|
|
18
|
-
@Input() classBtn: string = '';
|
|
19
|
-
|
|
20
|
-
override icon: string = 'pi pi-chevron-down';
|
|
21
|
-
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
ngOnInit(){
|
|
27
|
-
console.log(this.classBtn)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
handleShow() {
|
|
31
|
-
this.rotate();
|
|
32
|
-
}
|
|
33
|
-
handleHide() {
|
|
34
|
-
this.rotate();
|
|
35
|
-
}
|
|
36
|
-
rotate() {
|
|
37
|
-
this.icon = this.icon === 'pi pi-chevron-down' ? 'pi pi-chevron-up' : 'pi pi-chevron-down';
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { BaseComponentButton } from '../../../api/base-components/base-component-button';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'kv-button-secondary',
|
|
7
|
-
templateUrl: './kv-button-secondary.component.html',
|
|
8
|
-
styleUrls: ['./kv-button-secondary.component.scss']
|
|
9
|
-
})
|
|
10
|
-
export class KvButtonSecondaryComponent extends BaseComponentButton {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { BaseComponentButton } from '../../../api/base-components/base-component-button';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'kv-button-success',
|
|
7
|
-
templateUrl: './kv-button-success.component.html',
|
|
8
|
-
styleUrls: ['./kv-button-success.component.scss']
|
|
9
|
-
})
|
|
10
|
-
export class KvButtonSuccessComponent extends BaseComponentButton {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { KvButtonPersonalizeComponent } from './kv-button-personalize/kv-button-personalize.component';
|
|
4
|
-
import { KvButtonPopupComponent } from './kv-button-popup/kv-button-popup.component';
|
|
5
|
-
import { KvButtonSecondaryComponent } from './kv-button-secondary/kv-button-secondary.component';
|
|
6
|
-
import { KvButtonSuccessComponent } from './kv-button-success/kv-button-success.component';
|
|
7
|
-
import { PrimeNgModule } from '../../api/modules/primeng.module';
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
declarations: [
|
|
11
|
-
KvButtonSecondaryComponent,
|
|
12
|
-
KvButtonSuccessComponent,
|
|
13
|
-
KvButtonPersonalizeComponent,
|
|
14
|
-
KvButtonPopupComponent
|
|
15
|
-
],
|
|
16
|
-
imports: [
|
|
17
|
-
PrimeNgModule
|
|
18
|
-
],
|
|
19
|
-
exports: [
|
|
20
|
-
KvButtonSecondaryComponent,
|
|
21
|
-
KvButtonSuccessComponent,
|
|
22
|
-
KvButtonPersonalizeComponent,
|
|
23
|
-
KvButtonPopupComponent
|
|
24
|
-
]
|
|
25
|
-
})
|
|
26
|
-
export class KvButtonsModule { }
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<p-carousel id="carousel" [value]="carouselData" [indicatorStyleClass]="'carousel-indicator'" [autoplayInterval]="5000"
|
|
2
|
-
[showIndicators]="true" [showNavigators]="false" [numVisible]="1" [numScroll]="1" [circular]="true" styleClass="h-full">
|
|
3
|
-
>
|
|
4
|
-
<ng-template pTemplate="item" let-banner class="justify-content-center align-items-center ">
|
|
5
|
-
<img [src]="banner.img" class="w-full border-round-banner" [style.height.px]="heightCarousel"
|
|
6
|
-
(click)="navigateToLink(banner.link)">
|
|
7
|
-
</ng-template>
|
|
8
|
-
</p-carousel>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
::ng-deep .p-carousel-indicators {
|
|
2
|
-
position: absolute;
|
|
3
|
-
left: 50%;
|
|
4
|
-
transform: translateX(-50%);
|
|
5
|
-
bottom: -1rem;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
::ng-deep .carousel-indicator {
|
|
9
|
-
width: 15px !important;
|
|
10
|
-
height: 4px !important;
|
|
11
|
-
margin: -3px !important;
|
|
12
|
-
padding: 0 !important;
|
|
13
|
-
background-color: rgba(238, 238, 238, 0.816);
|
|
14
|
-
&:hover {
|
|
15
|
-
background-color: rgb(239, 239, 239);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
button.p-carousel-indicator.p-link{
|
|
20
|
-
background-color: aliceblue !important;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
::ng-deep .p-carousel .p-carousel-content {
|
|
24
|
-
overflow: hidden !important;
|
|
25
|
-
position: relative;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
::ng-deep .border-round-banner {
|
|
30
|
-
border-radius: 20px !important;
|
|
31
|
-
max-height: 500px;
|
|
32
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
import { KvCarouselComponent } from './kv-carousel.component';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
describe('BannerComponent', () => {
|
|
6
|
-
let component: KvCarouselComponent;
|
|
7
|
-
let fixture: ComponentFixture<KvCarouselComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ KvCarouselComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(KvCarouselComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, Component, HostListener, Input, OnInit } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'kv-carousel',
|
|
5
|
-
templateUrl: './kv-carousel.component.html',
|
|
6
|
-
styleUrls: ['./kv-carousel.component.scss']
|
|
7
|
-
})
|
|
8
|
-
export class KvCarouselComponent implements AfterViewInit {
|
|
9
|
-
|
|
10
|
-
@Input() carouselData: any[] = [];
|
|
11
|
-
heightCarousel!: number;
|
|
12
|
-
widthCarousel!: number;
|
|
13
|
-
|
|
14
|
-
constructor(private cd: ChangeDetectorRef) { }
|
|
15
|
-
|
|
16
|
-
ngAfterViewInit(): void {
|
|
17
|
-
this.getCarouselHeight();
|
|
18
|
-
this.cd.detectChanges();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
navigateToLink(link: string): void {
|
|
22
|
-
window.open(link, '_blank');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
getCarouselHeight(): void {
|
|
26
|
-
const divCarousel = document.getElementById('carousel');
|
|
27
|
-
if (divCarousel) {
|
|
28
|
-
this.heightCarousel = divCarousel.offsetHeight;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
import { PrimeNgModule } from '../../api/modules/primeng.module';
|
|
5
|
-
import { KvCarouselComponent } from './kv-carousel.component';
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
declarations: [
|
|
9
|
-
KvCarouselComponent
|
|
10
|
-
],
|
|
11
|
-
imports: [
|
|
12
|
-
CommonModule,
|
|
13
|
-
PrimeNgModule
|
|
14
|
-
],
|
|
15
|
-
exports: [
|
|
16
|
-
KvCarouselComponent
|
|
17
|
-
]
|
|
18
|
-
})
|
|
19
|
-
export class KvCarouselModule { }
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<div class="card h-full">
|
|
2
|
-
<div class="flex align-items-start justify-content-between mb-6">
|
|
3
|
-
<label class="text-900 text-xl font-semibold">{{ title }}</label>
|
|
4
|
-
<div>
|
|
5
|
-
<p-dropdown
|
|
6
|
-
*ngIf="showDatas"
|
|
7
|
-
[options]="periodos"
|
|
8
|
-
[(ngModel)]="selectedData"
|
|
9
|
-
optionLabel="label"
|
|
10
|
-
optionValue="value"
|
|
11
|
-
styleClass="w-15rem"
|
|
12
|
-
(onChange)="selectionValue($event)">
|
|
13
|
-
</p-dropdown>
|
|
14
|
-
<button
|
|
15
|
-
*ngIf="showMenu"
|
|
16
|
-
pButton
|
|
17
|
-
pRipple
|
|
18
|
-
icon="pi pi-ellipsis-h"
|
|
19
|
-
class="p-button-rounded p-button-secondary"
|
|
20
|
-
style="margin-left: 10px;"
|
|
21
|
-
(click)="menu.toggle($event)">
|
|
22
|
-
</button>
|
|
23
|
-
<p-menu
|
|
24
|
-
#menu
|
|
25
|
-
[popup]="true"
|
|
26
|
-
appendTo="body"
|
|
27
|
-
[model]="menuItems">
|
|
28
|
-
</p-menu>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
<p-chart
|
|
32
|
-
#chart
|
|
33
|
-
[type]="type"
|
|
34
|
-
[data]="data"
|
|
35
|
-
[options]="options"
|
|
36
|
-
height="300px">
|
|
37
|
-
</p-chart>
|
|
38
|
-
</div>
|