keevo-components 1.8.42 → 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/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} +41 -14
- 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 -21
- 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 -550
- 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 -215
- 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 -5667
- 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 -9
- 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 -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 -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 -42
- 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,316 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<p-treeTable
|
|
3
|
+
#tt
|
|
4
|
+
[value]="dataSource"
|
|
5
|
+
[columns]="config.columns"
|
|
6
|
+
[resizableColumns]="true"
|
|
7
|
+
[tableStyle]="{'min-width': '50rem'}"
|
|
8
|
+
[resizableColumns]="true"
|
|
9
|
+
[styleClass]="gridLines ? 'p-treetable-gridlines' : ''"
|
|
10
|
+
[(selection)]="selectedItems"
|
|
11
|
+
(onLazyLoad)="paginate($event)"
|
|
12
|
+
>
|
|
13
|
+
|
|
14
|
+
<ng-template
|
|
15
|
+
pTemplate="caption"
|
|
16
|
+
*ngIf="config.enableCation"
|
|
17
|
+
>
|
|
18
|
+
<div
|
|
19
|
+
class="flex flex-row flex-wrap justify-content-between align-items-center grid formgrid p-fluid col-12">
|
|
20
|
+
<div class="col-12 flex flex-column">
|
|
21
|
+
<div
|
|
22
|
+
*ngIf="config.title"
|
|
23
|
+
class="text-md font-bold my-3"
|
|
24
|
+
>
|
|
25
|
+
{{ config.title }}
|
|
26
|
+
</div>
|
|
27
|
+
<div
|
|
28
|
+
*ngIf="config.subtitle"
|
|
29
|
+
class="text-sm mb-4 font-medium"
|
|
30
|
+
>
|
|
31
|
+
{{ config.subtitle }}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div [class]="
|
|
36
|
+
tamanhoTela < 768
|
|
37
|
+
? 'flex flex-row align-items-center col-10 md:col-6 lg:col-4 justify-content-center'
|
|
38
|
+
: 'flex flex-row align-items-center col-12 md:col-6 lg:col-4 justify-content-center input-search'
|
|
39
|
+
">
|
|
40
|
+
|
|
41
|
+
<span
|
|
42
|
+
*ngIf="config.enableFilter"
|
|
43
|
+
class="p-input-icon-left"
|
|
44
|
+
>
|
|
45
|
+
<i class="pi pi-search"></i>
|
|
46
|
+
|
|
47
|
+
<input
|
|
48
|
+
pInputText
|
|
49
|
+
pAutoFocus
|
|
50
|
+
[autofocus]="true"
|
|
51
|
+
type="text"
|
|
52
|
+
(input)="onGlobalFilter(tt, $event)"
|
|
53
|
+
placeholder="Pesquisar..."
|
|
54
|
+
class="h-2.5rem"
|
|
55
|
+
/>
|
|
56
|
+
</span>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div class="flex flex-row col-1 justify-content-end p-0">
|
|
61
|
+
<div
|
|
62
|
+
*ngFor="let action of config.actionsLote"
|
|
63
|
+
class="btns-options"
|
|
64
|
+
>
|
|
65
|
+
<button
|
|
66
|
+
id="actionLoteBtns"
|
|
67
|
+
pButton
|
|
68
|
+
*ngIf="
|
|
69
|
+
(selectedItems.length > 0 || action.showAcoesLote) &&
|
|
70
|
+
exibirCampo(action, this.action)
|
|
71
|
+
"
|
|
72
|
+
class="actionLoteBtns p-button-raised p-button-text"
|
|
73
|
+
(click)="action?.command(commandEvent); activeItemLote(selectedItems)"
|
|
74
|
+
[pTooltip]="retornarCampo(action, selectedItems, 'tooltip')"
|
|
75
|
+
[tooltipPosition]="'bottom'"
|
|
76
|
+
[style.backgroundColor]="
|
|
77
|
+
retornarCampo(action, selectedItems, 'btnColor')
|
|
78
|
+
"
|
|
79
|
+
[disabled]="retornarCampo(action, selectedItems, 'disabled')"
|
|
80
|
+
>
|
|
81
|
+
<span
|
|
82
|
+
class="material-symbols-outlined md-22"
|
|
83
|
+
[style.color]="
|
|
84
|
+
retornarCampo(action, selectedItems, 'iconBtnColor')
|
|
85
|
+
"
|
|
86
|
+
>
|
|
87
|
+
{{ retornarCampo(action, selectedItems, "icon") }}
|
|
88
|
+
</span>
|
|
89
|
+
</button>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</ng-template>
|
|
94
|
+
|
|
95
|
+
<ng-template
|
|
96
|
+
pTemplate="header"
|
|
97
|
+
let-columns
|
|
98
|
+
>
|
|
99
|
+
<tr>
|
|
100
|
+
<th
|
|
101
|
+
*ngFor="let col of columns; index as i"
|
|
102
|
+
[ttSortableColumn]="col.field"
|
|
103
|
+
[ttSortableColumnDisabled]="col.sortable === false"
|
|
104
|
+
class="text-sm"
|
|
105
|
+
[style.width]="col.width"
|
|
106
|
+
>
|
|
107
|
+
<div>
|
|
108
|
+
<div [ngClass]="{ flex: i == 0, 'gap-3': i == 0 }">
|
|
109
|
+
<div *ngIf="i == 0 && config.enableSelect">
|
|
110
|
+
<p-treeTableHeaderCheckbox
|
|
111
|
+
(click)="activeItemLote(selectedItems)"></p-treeTableHeaderCheckbox>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<div
|
|
115
|
+
[class]="
|
|
116
|
+
centralizarColunas(col) && alignColunasHeader(col) == ''
|
|
117
|
+
? 'flex flex-row justify-content-center'
|
|
118
|
+
: 'flex flex-row'
|
|
119
|
+
"
|
|
120
|
+
[style]="alignColunasHeader(col)"
|
|
121
|
+
>
|
|
122
|
+
<span>{{ col.header }}</span>
|
|
123
|
+
<p-sortIcon
|
|
124
|
+
*ngIf="col.sortable === true"
|
|
125
|
+
[field]="col.field"
|
|
126
|
+
style="font-size: 10px"
|
|
127
|
+
></p-sortIcon>
|
|
128
|
+
|
|
129
|
+
<span
|
|
130
|
+
*ngIf="col.headerTooltip"
|
|
131
|
+
class="material-symbols-outlined flex align-items-center"
|
|
132
|
+
[pTooltip]="col.headerTooltip"
|
|
133
|
+
>info</span>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</th>
|
|
138
|
+
</tr>
|
|
139
|
+
</ng-template>
|
|
140
|
+
|
|
141
|
+
<ng-template
|
|
142
|
+
pTemplate="header"
|
|
143
|
+
let-columns
|
|
144
|
+
>
|
|
145
|
+
<tr>
|
|
146
|
+
<th
|
|
147
|
+
*ngFor="let col of columns"
|
|
148
|
+
ttResizableColumn
|
|
149
|
+
[style.width]="col.width"
|
|
150
|
+
[style]="col.centralize ? 'text-align: center;' : ''"
|
|
151
|
+
>
|
|
152
|
+
{{ col.header }} <br>
|
|
153
|
+
</th>
|
|
154
|
+
|
|
155
|
+
<th
|
|
156
|
+
[style.width]="5"
|
|
157
|
+
*ngIf="config.actions.length > 0"
|
|
158
|
+
></th>
|
|
159
|
+
</tr>
|
|
160
|
+
</ng-template>
|
|
161
|
+
<ng-template
|
|
162
|
+
pTemplate="body"
|
|
163
|
+
let-rowNode
|
|
164
|
+
let-rowData="rowData"
|
|
165
|
+
let-columns="columns"
|
|
166
|
+
>
|
|
167
|
+
<tr
|
|
168
|
+
[ttRow]="rowNode"
|
|
169
|
+
(dblclick)="doubleClick($event, rowData)"
|
|
170
|
+
[ngClass]="{ 'capitalize': tableCaptalized }"
|
|
171
|
+
>
|
|
172
|
+
<td
|
|
173
|
+
*ngFor="let col of columns; let i = index"
|
|
174
|
+
[style]="returnStyleRow(col, rowNode)"
|
|
175
|
+
[style.position]="rowNode.level !== 0 ? 'sticky' : null"
|
|
176
|
+
[style.left.px]="rowNode.level !== 0 ? rowNode.level*30 : null"
|
|
177
|
+
>
|
|
178
|
+
|
|
179
|
+
<div class="flex flex-row {{col.boolean ? 'justify-content-center' : '' }}">
|
|
180
|
+
<div
|
|
181
|
+
class="w-full-h-full flex align-items-center"
|
|
182
|
+
*ngIf="i == 0"
|
|
183
|
+
>
|
|
184
|
+
<p-treeTableCheckbox
|
|
185
|
+
[disabled]="isDisabledCheckbox(rowData, rowNode)"
|
|
186
|
+
(click)="activeItemLote(selectedItems)"
|
|
187
|
+
[value]="rowNode"
|
|
188
|
+
*ngIf="config.enableSelect == true"
|
|
189
|
+
></p-treeTableCheckbox>
|
|
190
|
+
|
|
191
|
+
<p-treeTableToggler
|
|
192
|
+
class="hiddenVisible"
|
|
193
|
+
[rowNode]="rowNode"
|
|
194
|
+
></p-treeTableToggler>
|
|
195
|
+
<!--
|
|
196
|
+
<p-treeTableToggler
|
|
197
|
+
[rowNode]="rowNode"
|
|
198
|
+
*ngIf="!rightCollapse"
|
|
199
|
+
></p-treeTableToggler>
|
|
200
|
+
<p-treeTableToggler
|
|
201
|
+
class="hiddenVisible"
|
|
202
|
+
[rowNode]="rowNode"
|
|
203
|
+
*ngIf="rightCollapse"
|
|
204
|
+
></p-treeTableToggler> -->
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
<div class="flex flex-row align-items-center">
|
|
209
|
+
<div class="flex flex-row align-items-center justify-content-center">
|
|
210
|
+
|
|
211
|
+
<i
|
|
212
|
+
*ngIf="col.boolean"
|
|
213
|
+
class="pi {{rowData[col.field] ? 'pi-check text-green-300' : ''}}"
|
|
214
|
+
style="font-size: 1.1rem;"
|
|
215
|
+
></i>
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
<div
|
|
219
|
+
class="flex flex-column"
|
|
220
|
+
*ngIf="!col.boolean"
|
|
221
|
+
>
|
|
222
|
+
<span class="m-0">{{ rowData[col.field] }}</span>
|
|
223
|
+
|
|
224
|
+
<p
|
|
225
|
+
*ngIf="col.subtitle"
|
|
226
|
+
class="m-0 text-xs font-semibold"
|
|
227
|
+
>{{rowData[col.subtitle]}}</p>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
<span *ngIf="col.template && validateShowTemplate(rowNode, col)">
|
|
237
|
+
<ng-container
|
|
238
|
+
*ngIf="getCustomTemplate(col.template.name)"
|
|
239
|
+
[ngTemplateOutlet]="getCustomTemplate(col.template.name)"
|
|
240
|
+
[ngTemplateOutletContext]="{ $implicit: rowData }"
|
|
241
|
+
>
|
|
242
|
+
</ng-container>
|
|
243
|
+
</span>
|
|
244
|
+
|
|
245
|
+
</td>
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
<td
|
|
249
|
+
style="border-left: none;"
|
|
250
|
+
*ngIf="config.actions.length > 0 || config.actionsPai"
|
|
251
|
+
>
|
|
252
|
+
|
|
253
|
+
<div *ngIf="config.actions.length > 0 && validateActionPosition(rowNode)">
|
|
254
|
+
<div
|
|
255
|
+
class="flex flex-row justify-content-center gap-1"
|
|
256
|
+
*ngIf="acoesLinhaTabela"
|
|
257
|
+
>
|
|
258
|
+
<p-button
|
|
259
|
+
*ngFor="let action of config.actions"
|
|
260
|
+
icon="pi {{action.icon}}"
|
|
261
|
+
[rounded]="true"
|
|
262
|
+
[severity]="action.severity ? action.severity : 'secondary'"
|
|
263
|
+
[style]="{width: '2rem', height: '2rem'}"
|
|
264
|
+
(onClick)="action.command($event)"
|
|
265
|
+
></p-button>
|
|
266
|
+
|
|
267
|
+
</div>
|
|
268
|
+
|
|
269
|
+
<span
|
|
270
|
+
*ngIf="!acoesLinhaTabela"
|
|
271
|
+
class="material-symbols-outlined cursor-pointer icon-more-horiz"
|
|
272
|
+
style="font-size: 22px"
|
|
273
|
+
(click)="menu.toggle($event); activeItem(rowData)"
|
|
274
|
+
>
|
|
275
|
+
more_horiz
|
|
276
|
+
</span>
|
|
277
|
+
|
|
278
|
+
<div *ngFor="let action of config.actions">
|
|
279
|
+
{{ criarMenusModal(rowData) }}
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
<p-menu
|
|
283
|
+
#menu
|
|
284
|
+
[popup]="true"
|
|
285
|
+
[model]="menuItems"
|
|
286
|
+
appendTo="body"
|
|
287
|
+
></p-menu>
|
|
288
|
+
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
<div *ngIf="config.actionsPai?.length > 0 && rowNode.level == 0">
|
|
292
|
+
|
|
293
|
+
<div
|
|
294
|
+
*ngFor="let actionPai of config.actionsPai"
|
|
295
|
+
class="flex justify-content-end"
|
|
296
|
+
>
|
|
297
|
+
|
|
298
|
+
<p-button
|
|
299
|
+
icon="pi {{actionPai.icon}}"
|
|
300
|
+
[rounded]="true"
|
|
301
|
+
[severity]="actionPai.severity ? actionPai.severity : 'secondary'"
|
|
302
|
+
[style]="{width: '2rem', height: '2rem'}"
|
|
303
|
+
(onClick)="activeItem(rowData);actionPai.command($event);"
|
|
304
|
+
></p-button>
|
|
305
|
+
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
</div>
|
|
309
|
+
|
|
310
|
+
</td>
|
|
311
|
+
|
|
312
|
+
</tr>
|
|
313
|
+
</ng-template>
|
|
314
|
+
|
|
315
|
+
</p-treeTable>
|
|
316
|
+
</div>
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* Início: Estilização padrão da tabela */
|
|
2
|
+
|
|
3
|
+
:host ::ng-deep .p-treetable table {
|
|
4
|
+
border-spacing: 0 3px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
#botaoFiltro:hover {
|
|
9
|
+
color: rgb(212, 212, 212);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
:host ::ng-deep .p-treetable .p-treetable-header {
|
|
14
|
+
// background-color: #f2f2f2;
|
|
15
|
+
background-color: #d1d1d1;
|
|
16
|
+
padding: 2px 0 0 0 !important;
|
|
17
|
+
border-radius: 5px !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
:host ::ng-deep .p-treetable .p-treetable-thead>tr>th {
|
|
22
|
+
// background-color: #f2f2f2;
|
|
23
|
+
background-color: #eaeaea;
|
|
24
|
+
|
|
25
|
+
padding: 0.5rem 0.5rem !important;
|
|
26
|
+
margin-bottom: -5px !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host ::ng-deep .p-treetable .p-treetable-tbody>tr>td {
|
|
30
|
+
padding: 0.5rem 0.5rem !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host ::ng-deep .p-treetable .p-treetable-thead {
|
|
34
|
+
border-spacing: 0 1px !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//frist
|
|
38
|
+
:host ::ng-deep .p-treetable .p-treetable-thead>tr>th:first-of-type {
|
|
39
|
+
// background-color: #f2f2f2;
|
|
40
|
+
background-color: #eaeaea;
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
padding: 0.5rem 0.5rem !important;
|
|
44
|
+
border-radius: 5px !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//last
|
|
48
|
+
|
|
49
|
+
:host ::ng-deep .p-treetable .p-treetable-thead>tr>th:last-child {
|
|
50
|
+
background-color: #eaeaea;
|
|
51
|
+
padding: 0.5rem 0.5rem !important;
|
|
52
|
+
border-radius: 0 5px 5px 0 !important;
|
|
53
|
+
-webkit-border-radius: 0 5px 5px 0 !important;
|
|
54
|
+
-moz-border-radius: 0 5px 5px 0 !important;
|
|
55
|
+
-ms-border-radius: 0 5px 5px 0 !important;
|
|
56
|
+
-o-border-radius: 0 5px 5px 0 !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
:host ::ng-deep .p-treetable-scrollable-header-box {
|
|
62
|
+
padding: 0 !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
:host ::ng-deep .p-treetable.p-treetable-sm .p-treetable-thead>tr>th {
|
|
67
|
+
background-color: #f2f2f2;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host ::ng-deep .p-treetable.p-treetable-sm .p-treetable-thead>tr>th:first-of-type {
|
|
71
|
+
border-radius: 5px 0 0px 5px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host ::ng-deep .p-treetable.p-treetable-sm .p-treetable-thead>tr>th:last-child {
|
|
75
|
+
border-radius: 0 5px 5px 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host ::ng-deep .p-treetable .p-treetable-tbody>tr>td {
|
|
79
|
+
border-bottom: 1px solid #ddd !important;
|
|
80
|
+
border-top: 1px solid #ddd !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host ::ng-deep #tr-style {
|
|
84
|
+
border-left: solid 4px #5289B4 !important;
|
|
85
|
+
border-radius: 10px !important;
|
|
86
|
+
display: block;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:host ::ng-deep .p-treetable .p-treetable-tbody>tr>td:first-of-type {
|
|
90
|
+
border-left: solid 4px #5289B4 !important;
|
|
91
|
+
border-right: none !important;
|
|
92
|
+
border-radius: 10px 0 0 10px !important;
|
|
93
|
+
-webkit-border-radius: 10px 0 0 10px !important;
|
|
94
|
+
-moz-border-radius: 10px 0 0 10px !important;
|
|
95
|
+
-ms-border-radius: 10px 0 0 10px !important;
|
|
96
|
+
-o-border-radius: 10px 0 0 10px !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host ::ng-deep .p-treetable .p-treetable-tbody>tr>td:last-child {
|
|
100
|
+
border-radius: 0 10px 10px 0 !important;
|
|
101
|
+
border-right: 1px solid #ddd !important;
|
|
102
|
+
-webkit-border-radius: 0 10px 10px 0 !important;
|
|
103
|
+
-moz-border-radius: 0 10px 10px 0 !important;
|
|
104
|
+
-ms-border-radius: 0 10px 10px 0 !important;
|
|
105
|
+
-o-border-radius: 0 10px 10px 0 !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:host ::ng-deep .actionBtns,
|
|
109
|
+
:host ::ng-deep .actionLoteBtns {
|
|
110
|
+
border-radius: 50%;
|
|
111
|
+
box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
|
|
112
|
+
|
|
113
|
+
width: 2.5rem !important;
|
|
114
|
+
height: 2.5rem !important;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host ::ng-deep .p-treetable table {
|
|
121
|
+
border-collapse: separate !important;
|
|
122
|
+
table-layout: auto !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.icon-more-horiz:hover,
|
|
126
|
+
.icon-more-horiz:focus {
|
|
127
|
+
color: #5e5e5e;
|
|
128
|
+
transform: scale(1.1);
|
|
129
|
+
transition: color 0.3s, transform 0.3s;
|
|
130
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { KvTreetableComponent } from './kv-tree-table.component';
|
|
4
|
+
|
|
5
|
+
describe('TreetableComponent', () => {
|
|
6
|
+
let component: KvTreetableComponent;
|
|
7
|
+
let fixture: ComponentFixture<KvTreetableComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [KvTreetableComponent]
|
|
12
|
+
});
|
|
13
|
+
fixture = TestBed.createComponent(KvTreetableComponent);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
ContentChildren,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
HostListener,
|
|
6
|
+
Input,
|
|
7
|
+
Output,
|
|
8
|
+
QueryList,
|
|
9
|
+
TemplateRef
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
|
|
12
|
+
import { MenuItemCommandEvent } from 'primeng/api';
|
|
13
|
+
import { TreeTable } from 'primeng/treetable';
|
|
14
|
+
|
|
15
|
+
import { KvMenuItem } from '../../api/components/table/kv-menuitem';
|
|
16
|
+
import { TablePaginate } from '../../api/components/table/table.paginate';
|
|
17
|
+
import { TemplateDirective } from '../../api/directives/template/template.directive';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
selector: 'kv-tree-table',
|
|
21
|
+
templateUrl: './kv-tree-table.component.html',
|
|
22
|
+
styleUrls: ['./kv-tree-table.component.scss']
|
|
23
|
+
})
|
|
24
|
+
export class KvTreetableComponent {
|
|
25
|
+
|
|
26
|
+
menuItems: KvMenuItem[] = [];
|
|
27
|
+
tamanhoTela!: number;
|
|
28
|
+
commandEvent!: MenuItemCommandEvent;
|
|
29
|
+
|
|
30
|
+
@Input() config!: any;
|
|
31
|
+
@Input() dataSource!: any;
|
|
32
|
+
@Input() gridLines: boolean = false;
|
|
33
|
+
@Input() acoesLinhaTabela: boolean = false;
|
|
34
|
+
@Input() tableCaptalized: boolean = false;
|
|
35
|
+
@Input() selectedItems: any = [];
|
|
36
|
+
|
|
37
|
+
@Output() onFilter: EventEmitter<any> = new EventEmitter();
|
|
38
|
+
@Output() onPaginate: EventEmitter<any> = new EventEmitter();
|
|
39
|
+
@Output() onActiveItem: EventEmitter<any> = new EventEmitter();
|
|
40
|
+
@Output() onActiveItemLote: EventEmitter<any> = new EventEmitter();
|
|
41
|
+
@Output() doubleClickEvent: EventEmitter<any> = new EventEmitter();
|
|
42
|
+
|
|
43
|
+
ngOnInit() {
|
|
44
|
+
this.tamanhoTela = window.innerWidth;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@ContentChildren(TemplateDirective) templates!: QueryList<any>;
|
|
48
|
+
@Input('templates') _templates!: any;
|
|
49
|
+
|
|
50
|
+
@HostListener('window:resize', ['$event'])
|
|
51
|
+
onWindowResize() {
|
|
52
|
+
this.tamanhoTela = window.innerWidth;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public activeItem(rowData: any) {
|
|
56
|
+
this.onActiveItem.emit(rowData);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public activeItemLote(rowData: any) {
|
|
60
|
+
this.onActiveItemLote.emit(rowData);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public onGlobalFilter(table: TreeTable, event: Event) {
|
|
64
|
+
this.onFilter.emit((event.target as HTMLInputElement).value);
|
|
65
|
+
table.filterGlobal((event.target as HTMLInputElement).value, 'contains');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
public paginate($event: any) {
|
|
69
|
+
if ($event) {
|
|
70
|
+
let paginaInicial =
|
|
71
|
+
($event?.first > 0 ? $event.first / $event.rows : $event.first) + 1;
|
|
72
|
+
let termoPesquisa = '';
|
|
73
|
+
let ordenacao = '';
|
|
74
|
+
|
|
75
|
+
if ($event.globalFilter) termoPesquisa = $event.globalFilter;
|
|
76
|
+
|
|
77
|
+
if ($event.sortField)
|
|
78
|
+
ordenacao = `${$event.sortField} ${$event.sortOrder === 1 ? 'ASC' : 'DESC'
|
|
79
|
+
}`;
|
|
80
|
+
|
|
81
|
+
const objeto: TablePaginate = {
|
|
82
|
+
paginaInicial: paginaInicial,
|
|
83
|
+
tamanhoPagina: $event.rows,
|
|
84
|
+
termoPesquisa: termoPesquisa,
|
|
85
|
+
ordenacao: ordenacao,
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
this.onPaginate.emit(objeto);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
returnStyleRow(col: any, rowNode: any): string {
|
|
93
|
+
const isFirstColumn = col.field === this.config.columns[0].field;
|
|
94
|
+
const baseOpacity = 1;
|
|
95
|
+
const maxLevels = 4;
|
|
96
|
+
|
|
97
|
+
if (isFirstColumn && rowNode.level >= 0) {
|
|
98
|
+
const opacity = baseOpacity - (rowNode.level / maxLevels);
|
|
99
|
+
|
|
100
|
+
return `border-left: solid 4px rgba(59, 110, 158, ${opacity}) !important;`;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (rowNode.level == 0)
|
|
104
|
+
return 'border-left: none !important; border-right: none !important'
|
|
105
|
+
|
|
106
|
+
return '';
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
alignColunasHeader(col: any): string {
|
|
110
|
+
if (col.align) {
|
|
111
|
+
if (col.align == 'right') return 'justify-content: end';
|
|
112
|
+
else return '';
|
|
113
|
+
} else return '';
|
|
114
|
+
}
|
|
115
|
+
centralizarColunas(col: any): string {
|
|
116
|
+
if (col.centralize) {
|
|
117
|
+
return 'text-align: center; ';
|
|
118
|
+
} else return '';
|
|
119
|
+
}
|
|
120
|
+
alignColunas(col: any): string {
|
|
121
|
+
if (col.align) {
|
|
122
|
+
return `text-align: ${col.align}`;
|
|
123
|
+
} else return '';
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
criarMenusModal(data: any) {
|
|
127
|
+
if (this.config.actions && data) {
|
|
128
|
+
const items = this.config.actions.map((action: any) => {
|
|
129
|
+
const icon = this.retornarCampo(action, data, 'icon');
|
|
130
|
+
const tooltip = this.retornarCampo(action, data, 'tooltip');
|
|
131
|
+
const tooltipPosition = this.retornarCampo(
|
|
132
|
+
action,
|
|
133
|
+
data,
|
|
134
|
+
'tooltipPosition'
|
|
135
|
+
);
|
|
136
|
+
const label = this.retornarCampo(action, data, 'label');
|
|
137
|
+
const command: any = this.retornarCampo(action, data, 'command');
|
|
138
|
+
const visible: boolean = action.visible ? action.visible(data) : true;
|
|
139
|
+
const disabled: boolean = action.disabled
|
|
140
|
+
? action.disabled(data)
|
|
141
|
+
: false;
|
|
142
|
+
|
|
143
|
+
const menuInsert: KvMenuItem = {
|
|
144
|
+
label,
|
|
145
|
+
icon,
|
|
146
|
+
tooltip,
|
|
147
|
+
tooltipPosition,
|
|
148
|
+
command,
|
|
149
|
+
disabled,
|
|
150
|
+
visible,
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
let item = this.menuItems.filter(
|
|
154
|
+
(x) => x.command == menuInsert.command
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
if (item.length == 0) this.menuItems.push(menuInsert);
|
|
158
|
+
else {
|
|
159
|
+
if (menuInsert.label != item[0].label) {
|
|
160
|
+
let index = this.menuItems.indexOf(item[0]);
|
|
161
|
+
this.menuItems.splice(index, 1);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (menuInsert.visible != item[0].visible) {
|
|
165
|
+
let index = this.menuItems.indexOf(item[0]);
|
|
166
|
+
this.menuItems.splice(index, 1);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (menuInsert.disabled != item[0].disabled) {
|
|
170
|
+
let index = this.menuItems.indexOf(item[0]);
|
|
171
|
+
this.menuItems.splice(index, 1);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
retornarCampo(action: KvMenuItem, rowData: any, field: string): string {
|
|
179
|
+
const _function = action.dynamicfields
|
|
180
|
+
? (action.dynamicfields[field] as Function)
|
|
181
|
+
: null;
|
|
182
|
+
const _field: string = _function
|
|
183
|
+
? _function.apply(action, [rowData])
|
|
184
|
+
: action[field];
|
|
185
|
+
return _field;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
exibirCampo(field: any, rowData: any) {
|
|
189
|
+
let visible = field.visible ? field.visible(rowData) : true;
|
|
190
|
+
return visible;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
validateActionPosition(rowNode: any): boolean {
|
|
194
|
+
if (this.config.actionsPai && rowNode.level == 0) return false;
|
|
195
|
+
else return true
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
doubleClick(e: any, rowData: any) {
|
|
200
|
+
|
|
201
|
+
let eventDoubleClick = { event: e, rowData: rowData };
|
|
202
|
+
|
|
203
|
+
let array: string[] = [];
|
|
204
|
+
e.target.classList.forEach((x: any) => array.push(x));
|
|
205
|
+
|
|
206
|
+
// if (array.find((x: any) => x == 'ng-star-inserted') != undefined)
|
|
207
|
+
this.doubleClickEvent.emit(eventDoubleClick);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
isDisabledCheckbox(rowData: any, rowNode: any): boolean {
|
|
211
|
+
return this.config.disableControlCheckboxFunction
|
|
212
|
+
? this.config.disableControlCheckboxFunction(rowData, rowNode)
|
|
213
|
+
: false;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
getCustomTemplate(templatename: string): TemplateRef<any> {
|
|
217
|
+
return this._templates[templatename];
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
validateShowTemplate(rowNode: any, col: any): boolean {
|
|
221
|
+
if (col.templateOnly) {
|
|
222
|
+
if (col.templateOnly === 'pai') {
|
|
223
|
+
return rowNode.level === 0;
|
|
224
|
+
}
|
|
225
|
+
if (col.templateOnly === 'filho') {
|
|
226
|
+
return rowNode.level === 1;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return true;
|
|
230
|
+
}
|
|
231
|
+
}
|