keevo-components 1.8.126 → 1.8.127
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/ng-package.json +7 -0
- package/package.json +30 -43
- 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 +74 -0
- package/src/assets/images/keevo-logo.png +0 -0
- package/src/assets/images/logokeevo_2.png +0 -0
- package/src/index.ts +1 -0
- package/src/lib/api/base-components/base-component-button.ts +29 -0
- package/src/lib/api/base-components/base-component-chart.ts +105 -0
- package/src/lib/api/base-components/base-component-crud-form.ts +361 -0
- package/src/lib/api/base-components/base-component-crud-list.ts +122 -0
- package/src/lib/api/base-components/base-component-crud.ts +70 -0
- package/src/lib/api/base-components/base-component-dropdown-external.ts +29 -0
- package/src/lib/api/base-components/base-component-dropdown-new.ts +112 -0
- package/src/lib/api/base-components/base-component-dropdown.ts +170 -0
- package/src/lib/api/base-components/base-component-input.ts +107 -0
- package/src/lib/api/base-components/base-component-multi-select.ts +136 -0
- package/src/lib/api/base-components/base-component.ts +47 -0
- package/src/lib/api/components/chart/chart.config.ts +12 -0
- package/src/lib/api/components/chart/chart.model.ts +9 -0
- package/src/lib/api/components/chart/orchart.config.ts +41 -0
- package/src/lib/api/components/chart/orchart.item.ts +33 -0
- package/src/lib/api/components/dropdown/filtro.combo.ts +4 -0
- package/src/lib/api/components/table/action-item.ts +11 -0
- package/src/lib/api/components/table/kv-menuitem.ts +198 -0
- package/src/lib/api/components/table/table-dropdown-control.ts +6 -0
- package/src/lib/api/components/table/table.config.column.ts +27 -0
- package/src/lib/api/components/table/table.config.ts +34 -0
- package/src/lib/api/components/table/table.paginate.ts +6 -0
- package/src/lib/api/components/table/tabledit.config.ts +10 -0
- package/src/lib/api/components/table/tableedit.config.column.ts +12 -0
- package/src/lib/api/components/tree-table/tree-table.config.ts +30 -0
- package/src/lib/api/directives/directives.module.ts +16 -0
- package/src/lib/api/directives/drag/drag.directive.ts +40 -0
- package/src/lib/api/directives/template/template.directive.ts +15 -0
- package/src/lib/api/helpers/component-providers.ts +16 -0
- package/src/lib/api/helpers/keevo-validators.ts +97 -0
- package/src/lib/api/helpers/severity-color.ts +77 -0
- package/src/lib/api/helpers/translate-primeng.ts +25 -0
- package/src/lib/api/modules/primeng.module.ts +134 -0
- package/src/lib/api/pipes/capitalize.pipe.ts +23 -0
- package/src/lib/api/pipes/cpfcnpj.pipe.ts +21 -0
- package/src/lib/api/pipes/mask.pipe.ts +24 -0
- package/src/lib/api/pipes/pipes.module.ts +26 -0
- package/src/lib/api/pipes/telefone.pipe.ts +38 -0
- package/src/lib/api/services/base.api.service.ts +115 -0
- package/src/lib/api/services/breadcrumbs.service.ts +58 -0
- package/src/lib/api/services/component.service.ts +32 -0
- package/src/lib/api/services/docs.service.ts +129 -0
- package/src/lib/api/services/form.service.ts +115 -0
- package/src/lib/api/services/imagens.service.ts +28 -0
- package/src/lib/api/services/notification.service.ts +85 -0
- package/src/lib/api/services/object.service.ts +33 -0
- package/{lib/api/types/severity.d.ts → src/lib/api/types/severity.ts} +3 -2
- package/src/lib/api/types/stimulsoft.reports.d.ts +67463 -0
- package/src/lib/components/keevo-components-styles.scss +11 -0
- package/src/lib/components/keevo-components.module.ts +72 -0
- package/src/lib/components/kv-avatar/kv-avatar.component.html +12 -0
- package/src/lib/components/kv-avatar/kv-avatar.component.scss +45 -0
- package/src/lib/components/kv-avatar/kv-avatar.component.spec.ts +23 -0
- package/src/lib/components/kv-avatar/kv-avatar.component.ts +72 -0
- package/src/lib/components/kv-avatar/kv-avatar.module.ts +21 -0
- package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.html +16 -0
- package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.scss +3 -0
- package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.ts +34 -0
- package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.html +12 -0
- package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.scss +31 -0
- package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.ts +40 -0
- package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.html +12 -0
- package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.scss +14 -0
- package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.ts +14 -0
- package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.html +11 -0
- package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.scss +13 -0
- package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.ts +14 -0
- package/src/lib/components/kv-buttons/kv-button.module.ts +26 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.html +8 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.scss +32 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.spec.ts +23 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.ts +31 -0
- package/src/lib/components/kv-carousel/kv-carousel.module.ts +19 -0
- package/src/lib/components/kv-chart/kv-chart.component.html +38 -0
- package/src/lib/components/kv-chart/kv-chart.component.scss +0 -0
- package/src/lib/components/kv-chart/kv-chart.component.spec.ts +28 -0
- package/src/lib/components/kv-chart/kv-chart.component.ts +153 -0
- package/src/lib/components/kv-chart/kv-chart.module.ts +21 -0
- package/src/lib/components/kv-error/kv-error.component.html +3 -0
- package/src/lib/components/kv-error/kv-error.component.scss +5 -0
- package/src/lib/components/kv-error/kv-error.component.ts +27 -0
- package/src/lib/components/kv-error/kv-error.module.ts +26 -0
- package/src/lib/components/kv-image-upload/kv-image-upload.component.html +62 -0
- 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 +82 -0
- package/src/lib/components/kv-image-upload/kv-image-upload.module.ts +10 -0
- package/src/lib/components/kv-inputs/kv-check/kv-check.component.html +12 -0
- package/src/lib/components/kv-inputs/kv-check/kv-check.component.scss +13 -0
- package/src/lib/components/kv-inputs/kv-check/kv-check.component.ts +32 -0
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.html +91 -0
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.scss +21 -0
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.ts +40 -0
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.html +100 -0
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.scss +8 -0
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.ts +113 -0
- package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.html +30 -0
- 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 +84 -0
- package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.html +22 -0
- 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 +35 -0
- package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.html +23 -0
- 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 +61 -0
- package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.html +23 -0
- 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 +26 -0
- package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.html +22 -0
- package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.scss +18 -0
- package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.ts +27 -0
- package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.html +35 -0
- 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 +23 -0
- package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.ts +43 -0
- package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.html +22 -0
- 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 +40 -0
- package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.html +23 -0
- 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 +27 -0
- package/src/lib/components/kv-inputs/kv-inputs.module.ts +75 -0
- package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.html +45 -0
- package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.scss +13 -0
- package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.ts +44 -0
- package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.html +19 -0
- package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.scss +15 -0
- package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.ts +59 -0
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.html +26 -0
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.scss +5 -0
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.spec.ts +21 -0
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.ts +30 -0
- package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.html +13 -0
- package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.scss +3 -0
- package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.ts +41 -0
- package/src/lib/components/kv-label/kv-label.component.html +6 -0
- package/src/lib/components/kv-label/kv-label.component.scss +9 -0
- package/src/lib/components/kv-label/kv-label.component.spec.ts +23 -0
- package/src/lib/components/kv-label/kv-label.component.ts +14 -0
- package/src/lib/components/kv-label/kv-label.module.ts +17 -0
- package/src/lib/components/kv-loader/kv-loader.component.html +1 -0
- package/src/lib/components/kv-loader/kv-loader.component.ts +15 -0
- package/src/lib/components/kv-loader/kv-loader.module.ts +17 -0
- package/src/lib/components/kv-loader/kv-loader.service.ts +31 -0
- package/src/lib/components/kv-login/kv-login.component.html +108 -0
- package/src/lib/components/kv-login/kv-login.component.scss +76 -0
- package/src/lib/components/kv-login/kv-login.component.spec.ts +23 -0
- package/src/lib/components/kv-login/kv-login.component.ts +81 -0
- package/src/lib/components/kv-login/kv-login.module.ts +33 -0
- package/src/lib/components/kv-menu/kv-menu.component.html +292 -0
- package/src/lib/components/kv-menu/kv-menu.component.scss +214 -0
- package/src/lib/components/kv-menu/kv-menu.component.spec.ts +23 -0
- package/src/lib/components/kv-menu/kv-menu.component.ts +195 -0
- package/src/lib/components/kv-menu/kv-menu.module.ts +33 -0
- package/src/lib/components/kv-modal/kv-modal.component.html +20 -0
- package/src/lib/components/kv-modal/kv-modal.component.scss +84 -0
- package/src/lib/components/kv-modal/kv-modal.component.spec.ts +21 -0
- package/src/lib/components/kv-modal/kv-modal.component.ts +114 -0
- package/src/lib/components/kv-modal/kv-modal.module.ts +21 -0
- package/src/lib/components/kv-orgchart/kv-orgchart.component.html +58 -0
- package/src/lib/components/kv-orgchart/kv-orgchart.component.scss +21 -0
- package/src/lib/components/kv-orgchart/kv-orgchart.component.ts +110 -0
- package/src/lib/components/kv-orgchart/kv-orgchart.module.ts +14 -0
- package/src/lib/components/kv-page-form/kv-page-form.component.html +117 -0
- package/src/lib/components/kv-page-form/kv-page-form.component.scss +76 -0
- package/src/lib/components/kv-page-form/kv-page-form.component.spec.ts +28 -0
- package/src/lib/components/kv-page-form/kv-page-form.component.ts +152 -0
- package/src/lib/components/kv-page-form/kv-page-form.module.ts +31 -0
- package/src/lib/components/kv-pick-list/kv-pick-list.component.html +19 -0
- 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 +26 -0
- package/src/lib/components/kv-pick-list/kv-pick-list.component.ts +37 -0
- package/src/lib/components/kv-pick-list/kv-pick-list.module.ts +21 -0
- package/src/lib/components/kv-progress-bar/kv-progress-bar.component.html +38 -0
- package/src/lib/components/kv-progress-bar/kv-progress-bar.component.scss +110 -0
- package/src/lib/components/kv-progress-bar/kv-progress-bar.component.spec.ts +21 -0
- package/src/lib/components/kv-progress-bar/kv-progress-bar.component.ts +79 -0
- package/src/lib/components/kv-progress-bar/kv-progress-bar.module.ts +19 -0
- package/src/lib/components/kv-report/kv-report.component.html +12 -0
- package/src/lib/components/kv-report/kv-report.component.scss +21 -0
- package/src/lib/components/kv-report/kv-report.component.spec.ts +28 -0
- package/src/lib/components/kv-report/kv-report.component.ts +50 -0
- package/src/lib/components/kv-report/kv-report.module.ts +18 -0
- package/src/lib/components/kv-stepper/kv-stepper.component.html +44 -0
- package/src/lib/components/kv-stepper/kv-stepper.component.scss +41 -0
- package/src/lib/components/kv-stepper/kv-stepper.component.spec.ts +23 -0
- package/src/lib/components/kv-stepper/kv-stepper.component.ts +41 -0
- package/src/lib/components/kv-stepper/kv-stepper.module.ts +20 -0
- package/src/lib/components/kv-table/kv-table.component.html +482 -0
- package/src/lib/components/kv-table/kv-table.component.scss +265 -0
- package/src/lib/components/kv-table/kv-table.component.spec.ts +28 -0
- package/src/lib/components/kv-table/kv-table.component.ts +535 -0
- package/src/lib/components/kv-table/kv-table.module.ts +23 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.component.html +659 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.component.scss +701 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.component.ts +700 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.module.ts +28 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.component.html +556 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.component.scss +145 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.component.spec.ts +21 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.component.ts +294 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.module.ts +18 -0
- package/src/lib/components/kv-tree-view/kv-tree-view.component.html +9 -0
- 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 +23 -0
- package/src/lib/components/kv-tree-view/kv-tree-view.component.ts +31 -0
- package/src/lib/components/kv-tree-view/kv-tree-view.module.ts +19 -0
- package/src/lib/components/kv-workspace/kv-workspace.component.html +53 -0
- package/src/lib/components/kv-workspace/kv-workspace.component.scss +117 -0
- package/src/lib/components/kv-workspace/kv-workspace.component.ts +201 -0
- package/src/lib/components/kv-workspace/kv-workspace.module.ts +35 -0
- package/{public-api.d.ts → src/public-api.ts} +209 -178
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/keevo-components.mjs +0 -5
- package/esm2022/lib/api/base-components/base-component-button.mjs +0 -39
- package/esm2022/lib/api/base-components/base-component-chart.mjs +0 -92
- package/esm2022/lib/api/base-components/base-component-crud-form.mjs +0 -298
- package/esm2022/lib/api/base-components/base-component-crud-list.mjs +0 -79
- package/esm2022/lib/api/base-components/base-component-crud.mjs +0 -65
- package/esm2022/lib/api/base-components/base-component-dropdown-external.mjs +0 -31
- package/esm2022/lib/api/base-components/base-component-dropdown.mjs +0 -169
- package/esm2022/lib/api/base-components/base-component-input.mjs +0 -94
- package/esm2022/lib/api/base-components/base-component-multi-select.mjs +0 -130
- package/esm2022/lib/api/base-components/base-component.mjs +0 -51
- package/esm2022/lib/api/components/chart/chart.config.mjs +0 -2
- package/esm2022/lib/api/components/chart/chart.model.mjs +0 -2
- package/esm2022/lib/api/components/chart/orchart.config.mjs +0 -2
- package/esm2022/lib/api/components/chart/orchart.item.mjs +0 -2
- package/esm2022/lib/api/components/dropdown/filtro.combo.mjs +0 -2
- package/esm2022/lib/api/components/table/action-item.mjs +0 -2
- package/esm2022/lib/api/components/table/kv-menuitem.mjs +0 -46
- package/esm2022/lib/api/components/table/table-dropdown-control.mjs +0 -2
- package/esm2022/lib/api/components/table/table.config.column.mjs +0 -2
- package/esm2022/lib/api/components/table/table.config.mjs +0 -2
- package/esm2022/lib/api/components/table/table.paginate.mjs +0 -9
- package/esm2022/lib/api/components/table/tabledit.config.mjs +0 -2
- package/esm2022/lib/api/components/table/tableedit.config.column.mjs +0 -2
- package/esm2022/lib/api/components/tree-table/tree-table.config.mjs +0 -3
- package/esm2022/lib/api/directives/template/template.directive.mjs +0 -24
- package/esm2022/lib/api/helpers/component-providers.mjs +0 -16
- package/esm2022/lib/api/helpers/keevo-validators.mjs +0 -82
- package/esm2022/lib/api/helpers/translate-primeng.mjs +0 -23
- package/esm2022/lib/api/modules/primeng.module.mjs +0 -263
- package/esm2022/lib/api/pipes/cpfcnpj.pipe.mjs +0 -25
- package/esm2022/lib/api/pipes/mask.pipe.mjs +0 -29
- package/esm2022/lib/api/pipes/pipes.module.mjs +0 -34
- package/esm2022/lib/api/pipes/telefone.pipe.mjs +0 -45
- package/esm2022/lib/api/services/base.api.service.mjs +0 -74
- package/esm2022/lib/api/services/breadcrumbs.service.mjs +0 -57
- package/esm2022/lib/api/services/component.service.mjs +0 -27
- package/esm2022/lib/api/services/docs.service.mjs +0 -129
- package/esm2022/lib/api/services/form.service.mjs +0 -85
- package/esm2022/lib/api/services/imagens.service.mjs +0 -28
- package/esm2022/lib/api/services/notification.service.mjs +0 -67
- package/esm2022/lib/api/services/object.service.mjs +0 -39
- package/esm2022/lib/api/types/severity.mjs +0 -2
- package/esm2022/lib/components/keevo-components.module.mjs +0 -151
- package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +0 -78
- package/esm2022/lib/components/kv-avatar/kv-avatar.module.mjs +0 -32
- package/esm2022/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.mjs +0 -31
- package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +0 -37
- package/esm2022/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.mjs +0 -17
- package/esm2022/lib/components/kv-buttons/kv-button-success/kv-button-success.component.mjs +0 -17
- package/esm2022/lib/components/kv-buttons/kv-button.module.mjs +0 -39
- package/esm2022/lib/components/kv-carousel/kv-carousel.component.mjs +0 -32
- package/esm2022/lib/components/kv-carousel/kv-carousel.module.mjs +0 -28
- package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +0 -145
- package/esm2022/lib/components/kv-chart/kv-chart.module.mjs +0 -32
- package/esm2022/lib/components/kv-error/kv-error.component.mjs +0 -26
- package/esm2022/lib/components/kv-error/kv-error.module.mjs +0 -35
- package/esm2022/lib/components/kv-image-upload/kv-image-upload.component.mjs +0 -83
- package/esm2022/lib/components/kv-image-upload/kv-image-upload.module.mjs +0 -18
- package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +0 -26
- package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +0 -37
- package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +0 -92
- package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +0 -89
- package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +0 -29
- package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +0 -59
- package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +0 -33
- package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +0 -25
- package/esm2022/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.mjs +0 -42
- package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +0 -43
- package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +0 -24
- package/esm2022/lib/components/kv-inputs/kv-inputs.module.mjs +0 -117
- package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +0 -44
- package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +0 -53
- package/esm2022/lib/components/kv-inputs/kv-select-button/kv-select-button.component.mjs +0 -46
- package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +0 -34
- package/esm2022/lib/components/kv-label/kv-label.component.mjs +0 -15
- package/esm2022/lib/components/kv-label/kv-label.module.mjs +0 -24
- package/esm2022/lib/components/kv-loader/kv-loader.component.mjs +0 -17
- package/esm2022/lib/components/kv-loader/kv-loader.module.mjs +0 -28
- package/esm2022/lib/components/kv-loader/kv-loader.service.mjs +0 -29
- package/esm2022/lib/components/kv-login/kv-login.component.mjs +0 -52
- package/esm2022/lib/components/kv-login/kv-login.module.mjs +0 -47
- package/esm2022/lib/components/kv-menu/kv-menu.component.mjs +0 -198
- package/esm2022/lib/components/kv-menu/kv-menu.module.mjs +0 -47
- package/esm2022/lib/components/kv-modal/kv-modal.component.mjs +0 -98
- package/esm2022/lib/components/kv-modal/kv-modal.module.mjs +0 -31
- package/esm2022/lib/components/kv-orgchart/kv-orgchart.component.mjs +0 -100
- package/esm2022/lib/components/kv-orgchart/kv-orgchart.module.mjs +0 -24
- package/esm2022/lib/components/kv-page-form/kv-page-form.component.mjs +0 -176
- package/esm2022/lib/components/kv-page-form/kv-page-form.module.mjs +0 -38
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +0 -54
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.module.mjs +0 -32
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.component.mjs +0 -58
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.module.mjs +0 -28
- package/esm2022/lib/components/kv-report/kv-report.component.mjs +0 -53
- package/esm2022/lib/components/kv-report/kv-report.module.mjs +0 -24
- package/esm2022/lib/components/kv-stepper/kv-stepper.component.mjs +0 -49
- package/esm2022/lib/components/kv-stepper/kv-stepper.module.mjs +0 -32
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +0 -494
- package/esm2022/lib/components/kv-table/kv-table.module.mjs +0 -36
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +0 -611
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.module.mjs +0 -41
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +0 -227
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.module.mjs +0 -28
- package/esm2022/lib/components/kv-tree-view/kv-tree-view.component.mjs +0 -30
- package/esm2022/lib/components/kv-tree-view/kv-tree-view.module.mjs +0 -28
- package/esm2022/lib/components/kv-workspace/kv-workspace.component.mjs +0 -167
- package/esm2022/lib/components/kv-workspace/kv-workspace.module.mjs +0 -51
- package/esm2022/public-api.mjs +0 -182
- package/fesm2022/keevo-components.mjs +0 -6176
- package/fesm2022/keevo-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/api/base-components/base-component-button.d.ts +0 -15
- package/lib/api/base-components/base-component-chart.d.ts +0 -40
- package/lib/api/base-components/base-component-crud-form.d.ts +0 -145
- package/lib/api/base-components/base-component-crud-list.d.ts +0 -64
- package/lib/api/base-components/base-component-crud.d.ts +0 -36
- package/lib/api/base-components/base-component-dropdown-external.d.ts +0 -15
- package/lib/api/base-components/base-component-dropdown.d.ts +0 -44
- package/lib/api/base-components/base-component-input.d.ts +0 -31
- package/lib/api/base-components/base-component-multi-select.d.ts +0 -35
- package/lib/api/base-components/base-component.d.ts +0 -22
- package/lib/api/components/chart/chart.config.d.ts +0 -11
- package/lib/api/components/chart/chart.model.d.ts +0 -9
- package/lib/api/components/chart/orchart.config.d.ts +0 -35
- package/lib/api/components/chart/orchart.item.d.ts +0 -26
- package/lib/api/components/dropdown/filtro.combo.d.ts +0 -4
- package/lib/api/components/table/action-item.d.ts +0 -11
- package/lib/api/components/table/kv-menuitem.d.ts +0 -152
- package/lib/api/components/table/table-dropdown-control.d.ts +0 -6
- package/lib/api/components/table/table.config.column.d.ts +0 -25
- package/lib/api/components/table/table.config.d.ts +0 -31
- package/lib/api/components/table/table.paginate.d.ts +0 -6
- package/lib/api/components/table/tabledit.config.d.ts +0 -8
- package/lib/api/components/table/tableedit.config.column.d.ts +0 -10
- package/lib/api/components/tree-table/tree-table.config.d.ts +0 -28
- package/lib/api/directives/template/template.directive.d.ts +0 -11
- package/lib/api/helpers/component-providers.d.ts +0 -2
- package/lib/api/helpers/keevo-validators.d.ts +0 -12
- package/lib/api/helpers/translate-primeng.d.ts +0 -4
- package/lib/api/modules/primeng.module.d.ts +0 -64
- package/lib/api/pipes/cpfcnpj.pipe.d.ts +0 -7
- package/lib/api/pipes/mask.pipe.d.ts +0 -7
- package/lib/api/pipes/pipes.module.d.ts +0 -10
- package/lib/api/pipes/telefone.pipe.d.ts +0 -7
- package/lib/api/services/base.api.service.d.ts +0 -25
- package/lib/api/services/breadcrumbs.service.d.ts +0 -15
- package/lib/api/services/component.service.d.ts +0 -11
- package/lib/api/services/docs.service.d.ts +0 -12
- package/lib/api/services/form.service.d.ts +0 -28
- package/lib/api/services/imagens.service.d.ts +0 -10
- package/lib/api/services/notification.service.d.ts +0 -25
- package/lib/api/services/object.service.d.ts +0 -9
- package/lib/components/keevo-components.module.d.ts +0 -26
- package/lib/components/kv-avatar/kv-avatar.component.d.ts +0 -22
- package/lib/components/kv-avatar/kv-avatar.module.d.ts +0 -10
- package/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.d.ts +0 -13
- package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +0 -15
- package/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.d.ts +0 -7
- package/lib/components/kv-buttons/kv-button-success/kv-button-success.component.d.ts +0 -7
- package/lib/components/kv-buttons/kv-button.module.d.ts +0 -11
- package/lib/components/kv-carousel/kv-carousel.component.d.ts +0 -14
- package/lib/components/kv-carousel/kv-carousel.module.d.ts +0 -9
- package/lib/components/kv-chart/kv-chart.component.d.ts +0 -56
- package/lib/components/kv-chart/kv-chart.module.d.ts +0 -10
- package/lib/components/kv-error/kv-error.component.d.ts +0 -12
- package/lib/components/kv-error/kv-error.module.d.ts +0 -10
- package/lib/components/kv-image-upload/kv-image-upload.component.d.ts +0 -24
- package/lib/components/kv-image-upload/kv-image-upload.module.d.ts +0 -8
- package/lib/components/kv-inputs/kv-check/kv-check.component.d.ts +0 -11
- package/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.d.ts +0 -14
- package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +0 -21
- package/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.d.ts +0 -27
- package/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.d.ts +0 -12
- package/lib/components/kv-inputs/kv-input-number/kv-input-number.component.d.ts +0 -19
- package/lib/components/kv-inputs/kv-input-password/kv-input-password.component.d.ts +0 -13
- package/lib/components/kv-inputs/kv-input-text/kv-input-text.component.d.ts +0 -10
- package/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.d.ts +0 -16
- package/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.d.ts +0 -16
- package/lib/components/kv-inputs/kv-input-time/kv-input-time.component.d.ts +0 -10
- package/lib/components/kv-inputs/kv-inputs.module.d.ts +0 -27
- package/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.d.ts +0 -15
- package/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.d.ts +0 -18
- package/lib/components/kv-inputs/kv-select-button/kv-select-button.component.d.ts +0 -19
- package/lib/components/kv-inputs/kv-switch/kv-switch.component.d.ts +0 -14
- package/lib/components/kv-label/kv-label.component.d.ts +0 -7
- package/lib/components/kv-label/kv-label.module.d.ts +0 -8
- package/lib/components/kv-loader/kv-loader.component.d.ts +0 -8
- package/lib/components/kv-loader/kv-loader.module.d.ts +0 -9
- package/lib/components/kv-loader/kv-loader.service.d.ts +0 -10
- package/lib/components/kv-login/kv-login.component.d.ts +0 -30
- package/lib/components/kv-login/kv-login.module.d.ts +0 -13
- package/lib/components/kv-menu/kv-menu.component.d.ts +0 -59
- package/lib/components/kv-menu/kv-menu.module.d.ts +0 -13
- package/lib/components/kv-modal/kv-modal.component.d.ts +0 -28
- package/lib/components/kv-modal/kv-modal.module.d.ts +0 -10
- package/lib/components/kv-orgchart/kv-orgchart.component.d.ts +0 -27
- package/lib/components/kv-orgchart/kv-orgchart.module.d.ts +0 -9
- package/lib/components/kv-page-form/kv-page-form.component.d.ts +0 -87
- package/lib/components/kv-page-form/kv-page-form.module.d.ts +0 -11
- package/lib/components/kv-pick-list/kv-pick-list.component.d.ts +0 -22
- package/lib/components/kv-pick-list/kv-pick-list.module.d.ts +0 -10
- package/lib/components/kv-progress-bar/kv-progress-bar.component.d.ts +0 -67
- package/lib/components/kv-progress-bar/kv-progress-bar.module.d.ts +0 -9
- package/lib/components/kv-report/kv-report.component.d.ts +0 -20
- package/lib/components/kv-report/kv-report.module.d.ts +0 -8
- package/lib/components/kv-stepper/kv-stepper.component.d.ts +0 -21
- package/lib/components/kv-stepper/kv-stepper.module.d.ts +0 -10
- package/lib/components/kv-table/kv-table.component.d.ts +0 -111
- package/lib/components/kv-table/kv-table.module.d.ts +0 -11
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +0 -126
- package/lib/components/kv-table-edit/kv-table-edit.module.d.ts +0 -14
- package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +0 -53
- package/lib/components/kv-tree-table/kv-tree-table.module.d.ts +0 -9
- package/lib/components/kv-tree-view/kv-tree-view.component.d.ts +0 -14
- package/lib/components/kv-tree-view/kv-tree-view.module.d.ts +0 -9
- package/lib/components/kv-workspace/kv-workspace.component.d.ts +0 -65
- package/lib/components/kv-workspace/kv-workspace.module.d.ts +0 -14
|
@@ -0,0 +1,72 @@
|
|
|
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 { }
|
|
@@ -0,0 +1,12 @@
|
|
|
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>
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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>
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { }
|
|
@@ -0,0 +1,8 @@
|
|
|
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>
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { }
|
|
@@ -0,0 +1,38 @@
|
|
|
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>
|