keevo-components 1.8.44 → 1.8.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/ng-package.json +7 -0
- package/package.json +3 -16
- 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 +27 -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 +121 -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 +11 -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 +22 -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/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 +86 -0
- package/src/lib/api/helpers/translate-primeng.ts +25 -0
- package/src/lib/api/modules/primeng.module.ts +130 -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 +23 -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/src/lib/components/keevo-components-styles.scss +11 -0
- package/src/lib/components/keevo-components.module.ts +65 -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 +15 -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 +13 -0
- package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.ts +35 -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 +31 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.scss +24 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.spec.ts +23 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.ts +104 -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-inputs/kv-check/kv-check.component.html +11 -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 +4 -0
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.ts +38 -0
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.html +97 -0
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.scss +4 -0
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.ts +99 -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 +70 -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 +8 -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-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 +48 -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 +259 -0
- package/src/lib/components/kv-menu/kv-menu.component.scss +210 -0
- package/src/lib/components/kv-menu/kv-menu.component.spec.ts +23 -0
- package/src/lib/components/kv-menu/kv-menu.component.ts +192 -0
- package/src/lib/components/kv-menu/kv-menu.module.ts +33 -0
- package/src/lib/components/kv-modal/kv-modal.component.html +19 -0
- package/src/lib/components/kv-modal/kv-modal.component.scss +13 -0
- package/src/lib/components/kv-modal/kv-modal.component.spec.ts +21 -0
- package/src/lib/components/kv-modal/kv-modal.component.ts +73 -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 +59 -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 +134 -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 +17 -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 +34 -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-table/kv-table.component.html +530 -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 +599 -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 +630 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.component.scss +365 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.component.ts +602 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.module.ts +24 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.component.html +316 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.component.scss +130 -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 +231 -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 +57 -0
- package/src/lib/components/kv-workspace/kv-workspace.component.scss +117 -0
- package/src/lib/components/kv-workspace/kv-workspace.component.ts +196 -0
- package/src/lib/components/kv-workspace/kv-workspace.module.ts +35 -0
- package/{public-api.d.ts → src/public-api.ts} +189 -162
- 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 -36
- 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 -78
- 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 -3
- 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/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 -72
- package/esm2022/lib/api/helpers/translate-primeng.mjs +0 -23
- package/esm2022/lib/api/modules/primeng.module.mjs +0 -255
- 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/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/components/keevo-components.module.mjs +0 -137
- 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 -31
- 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 -92
- 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-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 -88
- 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 -108
- 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-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 -188
- package/esm2022/lib/components/kv-menu/kv-menu.module.mjs +0 -47
- package/esm2022/lib/components/kv-modal/kv-modal.component.mjs +0 -67
- 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 -147
- 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 -48
- 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-table/kv-table.component.mjs +0 -553
- 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 -564
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.module.mjs +0 -34
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +0 -220
- 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 -178
- package/esm2022/lib/components/kv-workspace/kv-workspace.module.mjs +0 -51
- package/esm2022/public-api.mjs +0 -166
- package/fesm2022/keevo-components.mjs +0 -5678
- 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 -14
- 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 -63
- 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 -10
- 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 -19
- 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/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 -11
- package/lib/api/helpers/translate-primeng.d.ts +0 -4
- package/lib/api/modules/primeng.module.d.ts +0 -62
- 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/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 -24
- 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 -13
- 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 -16
- 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-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 -36
- 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 -25
- 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-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 -58
- package/lib/components/kv-menu/kv-menu.module.d.ts +0 -13
- package/lib/components/kv-modal/kv-modal.component.d.ts +0 -20
- 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 -70
- 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 -20
- 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-table/kv-table.component.d.ts +0 -112
- 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 -115
- package/lib/components/kv-table-edit/kv-table-edit.module.d.ts +0 -12
- package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +0 -43
- 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 -46
- package/lib/components/kv-workspace/kv-workspace.module.d.ts +0 -14
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Injectable } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
ConfirmationService,
|
|
5
|
+
MessageService
|
|
6
|
+
} from "primeng/api";
|
|
7
|
+
|
|
8
|
+
export interface QuestionConfig {
|
|
9
|
+
type?: 'question' | 'alert';
|
|
10
|
+
message: string;
|
|
11
|
+
accept?: Function;
|
|
12
|
+
reject?: Function;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface DialogConfig {
|
|
16
|
+
type: 'info' | 'alert' | 'error';
|
|
17
|
+
message: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Injectable({
|
|
21
|
+
providedIn: 'root',
|
|
22
|
+
})
|
|
23
|
+
export class NotificationService {
|
|
24
|
+
constructor(
|
|
25
|
+
private readonly confirmationService: ConfirmationService,
|
|
26
|
+
private readonly messageService: MessageService,
|
|
27
|
+
) { }
|
|
28
|
+
|
|
29
|
+
question(config: QuestionConfig) {
|
|
30
|
+
this.confirmationService.confirm({
|
|
31
|
+
header: config.type === 'alert' ? 'Atenção' : 'Confirmação',
|
|
32
|
+
icon: `pi ${config.type === 'alert' ? 'pi-exclamation-triangle' : 'pi-question-circle'}`,
|
|
33
|
+
acceptLabel: 'Sim',
|
|
34
|
+
acceptButtonStyleClass: 'p-button-success',
|
|
35
|
+
rejectLabel: 'Não',
|
|
36
|
+
rejectButtonStyleClass: 'p-button-secondary',
|
|
37
|
+
...config,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
dialog(config: DialogConfig) {
|
|
42
|
+
let dialogHeader: string;
|
|
43
|
+
let dialogIcon: string;
|
|
44
|
+
|
|
45
|
+
switch (config.type) {
|
|
46
|
+
case 'alert':
|
|
47
|
+
dialogHeader = 'Atenção';
|
|
48
|
+
dialogIcon = 'pi pi-exclamation-triangle';
|
|
49
|
+
break;
|
|
50
|
+
case 'info':
|
|
51
|
+
dialogHeader = 'Infomação';
|
|
52
|
+
dialogIcon = 'pi pi-info-circle';
|
|
53
|
+
break;
|
|
54
|
+
case 'error':
|
|
55
|
+
dialogHeader = 'Erro';
|
|
56
|
+
dialogIcon = 'pi pi-times-circle';
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
this.confirmationService.confirm({
|
|
61
|
+
header: dialogHeader,
|
|
62
|
+
icon: dialogIcon,
|
|
63
|
+
acceptLabel: 'Ok',
|
|
64
|
+
acceptButtonStyleClass: 'p-button-success',
|
|
65
|
+
rejectVisible: false,
|
|
66
|
+
message: config.message,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
toastSuccess(message: string, time: number = 4000) {
|
|
71
|
+
this.messageService.add({ severity: 'success', summary: 'Sucesso', detail: message, life: time });
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
toastInfo(message: string, time: number = 4000) {
|
|
75
|
+
this.messageService.add({ severity: 'info', summary: 'Info', detail: message, life: time });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
toastWarn(message: string, time: number = 4000) {
|
|
79
|
+
this.messageService.add({ severity: 'warn', summary: 'Aviso', detail: message, life: time });
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
toastError(message: string, time: number = 4000) {
|
|
83
|
+
this.messageService.add({ severity: 'error', summary: 'Erro', detail: message, life: time });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Injectable({
|
|
4
|
+
providedIn: 'root'
|
|
5
|
+
})
|
|
6
|
+
export class ObjectService {
|
|
7
|
+
static filterObject(array: any, propertyName: string, value: any) {
|
|
8
|
+
return array.filter((e: any) => {
|
|
9
|
+
return e[propertyName] === value;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
static findObject(array: any, propertyName: string, value: any) {
|
|
13
|
+
return array.find((e: any) => {
|
|
14
|
+
return e[propertyName] === value;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
static getProperty<T>(obj: T, propertyName: string) {
|
|
18
|
+
return obj[(propertyName as keyof typeof obj)];
|
|
19
|
+
}
|
|
20
|
+
static objCompare(obj1: any, obj2: any){
|
|
21
|
+
const Obj1_keys = Object.keys(obj1);
|
|
22
|
+
const Obj2_keys = Object.keys(obj2);
|
|
23
|
+
if (Obj1_keys.length !== Obj2_keys.length){
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
for (let k of Obj1_keys){
|
|
27
|
+
if(obj1[k] !== obj2[k]){
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
|
|
22
|
+
@NgModule({
|
|
23
|
+
declarations: [
|
|
24
|
+
],
|
|
25
|
+
imports: [
|
|
26
|
+
KvAvatarModule,
|
|
27
|
+
KvButtonsModule,
|
|
28
|
+
KvCarouselModule,
|
|
29
|
+
KvChartModule,
|
|
30
|
+
KvInputsModule,
|
|
31
|
+
KvLoaderModule,
|
|
32
|
+
KvLoginModule,
|
|
33
|
+
KvMenuModule,
|
|
34
|
+
KvModalModule,
|
|
35
|
+
KvOrgchartModule,
|
|
36
|
+
KvPageFormModule,
|
|
37
|
+
KvPickListModule,
|
|
38
|
+
KvProgressBarModule,
|
|
39
|
+
KvTableModule,
|
|
40
|
+
KvTreetableModule,
|
|
41
|
+
KvtreeViewModule,
|
|
42
|
+
KvWorkspaceModule,
|
|
43
|
+
],
|
|
44
|
+
exports: [
|
|
45
|
+
KvAvatarModule,
|
|
46
|
+
KvButtonsModule,
|
|
47
|
+
KvCarouselModule,
|
|
48
|
+
KvChartModule,
|
|
49
|
+
KvInputsModule,
|
|
50
|
+
KvLoaderModule,
|
|
51
|
+
KvLoginModule,
|
|
52
|
+
KvMenuModule,
|
|
53
|
+
KvModalModule,
|
|
54
|
+
KvOrgchartModule,
|
|
55
|
+
KvPageFormModule,
|
|
56
|
+
KvPickListModule,
|
|
57
|
+
KvProgressBarModule,
|
|
58
|
+
KvTableEditModule,
|
|
59
|
+
KvTableModule,
|
|
60
|
+
KvTreetableModule,
|
|
61
|
+
KvtreeViewModule,
|
|
62
|
+
KvWorkspaceModule,
|
|
63
|
+
]
|
|
64
|
+
})
|
|
65
|
+
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,15 @@
|
|
|
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
|
+
></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="btn-success border-green-500"
|
|
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,35 @@
|
|
|
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
|
+
|
|
19
|
+
override icon: string = 'pi pi-chevron-down';
|
|
20
|
+
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
handleShow() {
|
|
26
|
+
this.rotate();
|
|
27
|
+
}
|
|
28
|
+
handleHide() {
|
|
29
|
+
this.rotate();
|
|
30
|
+
}
|
|
31
|
+
rotate() {
|
|
32
|
+
this.icon = this.icon === 'pi pi-chevron-down' ? 'pi pi-chevron-up' : 'pi pi-chevron-down';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
@@ -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,31 @@
|
|
|
1
|
+
<p-carousel
|
|
2
|
+
[value]="carouselData"
|
|
3
|
+
[indicatorStyleClass]="'carousel-indicator'"
|
|
4
|
+
[showIndicators]="true"
|
|
5
|
+
[autoplayInterval]="5000"
|
|
6
|
+
[numVisible]="1"
|
|
7
|
+
[numScroll]="1"
|
|
8
|
+
[showNavigators]="false"
|
|
9
|
+
styleClass="mx-2 mt-2 carousel-container"
|
|
10
|
+
*ngIf="exibirCarousel"
|
|
11
|
+
>
|
|
12
|
+
<ng-template let-banner pTemplate="item" >
|
|
13
|
+
<div class="image" [style.height]="imageHeight" >
|
|
14
|
+
<a [href]="banner.link">
|
|
15
|
+
<img
|
|
16
|
+
[src]="banner.img"
|
|
17
|
+
class="h-full w-full border-round-lg"
|
|
18
|
+
[style.maxHeight]="'200px'"
|
|
19
|
+
/>
|
|
20
|
+
</a>
|
|
21
|
+
</div>
|
|
22
|
+
</ng-template>
|
|
23
|
+
</p-carousel>
|
|
24
|
+
|
|
25
|
+
<div
|
|
26
|
+
class="m-2 skeleton"
|
|
27
|
+
[style.height]="imageHeight"
|
|
28
|
+
*ngIf="!exibirCarousel"
|
|
29
|
+
>
|
|
30
|
+
<p-skeleton styleClass="h-full "></p-skeleton>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
::ng-deep .p-carousel .p-carousel-indicators {
|
|
2
|
+
padding: 0 !important;
|
|
3
|
+
position: relative;
|
|
4
|
+
bottom: 30px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
::ng-deep .carousel-indicator {
|
|
8
|
+
width: 40px !important;
|
|
9
|
+
height: 3px !important;
|
|
10
|
+
border-radius: 16px !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
::ng-deep .carousel-container {
|
|
14
|
+
position: relative;
|
|
15
|
+
top: 3px;
|
|
16
|
+
max-width: 100vw;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
// height: 100%;
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
::ng-deep .border-round-lg {
|
|
23
|
+
border-radius: 20px !important;
|
|
24
|
+
}
|