keevo-components 1.8.263 → 1.8.264
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 +32 -45
- package/src/assets/.gitkeep +0 -0
- package/src/assets/images/LogoEvo.png +0 -0
- package/src/assets/images/LogoPequenaEvo.png +0 -0
- package/src/assets/images/background.png +0 -0
- package/src/assets/images/keepass-logo.png +0 -0
- package/src/assets/images/keepass-logo.svg +74 -0
- package/src/assets/images/keevo-logo.png +0 -0
- package/src/assets/images/logokeevo_2.png +0 -0
- package/src/index.ts +1 -0
- package/src/lib/api/base-components/base-component-button.ts +29 -0
- package/src/lib/api/base-components/base-component-chart.ts +105 -0
- package/src/lib/api/base-components/base-component-crud-form.ts +368 -0
- package/src/lib/api/base-components/base-component-crud-list.ts +136 -0
- package/src/lib/api/base-components/base-component-crud.ts +83 -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 +192 -0
- package/src/lib/api/base-components/base-component-input.ts +121 -0
- package/src/lib/api/base-components/base-component-multi-select.ts +136 -0
- package/src/lib/api/base-components/base-component-table.ts +364 -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/stepper/kv-stepperpanel.ts +10 -0
- package/src/lib/api/components/table/action-item.ts +12 -0
- package/src/lib/api/components/table/kv-menuitem.ts +198 -0
- package/src/lib/api/components/table/table-dropdown-control.ts +6 -0
- package/src/lib/api/components/table/table.config.column.ts +31 -0
- package/src/lib/api/components/table/table.config.ts +36 -0
- package/src/lib/api/components/table/table.paginate.ts +6 -0
- package/src/lib/api/components/table/tabledit.config.ts +10 -0
- package/src/lib/api/components/table/tableedit.config.column.ts +12 -0
- package/src/lib/api/components/tree-table/tree-table.config.ts +31 -0
- package/src/lib/api/directives/directives.module.ts +19 -0
- package/src/lib/api/directives/drag/drag.directive.ts +40 -0
- package/src/lib/api/directives/stepper/dynamicinput.directive.ts +23 -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 +126 -0
- package/src/lib/api/helpers/severity-color.ts +77 -0
- package/src/lib/api/helpers/translate-primeng.ts +25 -0
- package/src/lib/api/modules/primeng.module.ts +138 -0
- package/src/lib/api/pipes/capitalize.pipe.ts +23 -0
- package/src/lib/api/pipes/cpfcnpj.pipe.ts +21 -0
- package/src/lib/api/pipes/mask.pipe.ts +24 -0
- package/src/lib/api/pipes/pipes.module.ts +26 -0
- package/src/lib/api/pipes/telefone.pipe.ts +38 -0
- package/src/lib/api/services/base.api.service.ts +115 -0
- package/src/lib/api/services/breadcrumbs.service.ts +60 -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 +137 -0
- package/src/lib/api/services/imagens.service.ts +28 -0
- package/src/lib/api/services/notification.service.ts +88 -0
- package/src/lib/api/services/object.service.ts +33 -0
- package/{lib/api/types/severity.d.ts → src/lib/api/types/severity.ts} +3 -2
- package/src/lib/api/types/stimulsoft.reports.d.ts +67463 -0
- package/src/lib/components/keevo-components-styles.scss +194 -0
- package/src/lib/components/keevo-components.module.ts +88 -0
- package/src/lib/components/kv-avatar/kv-avatar.component.html +13 -0
- package/src/lib/components/kv-avatar/kv-avatar.component.scss +58 -0
- package/src/lib/components/kv-avatar/kv-avatar.component.spec.ts +23 -0
- package/src/lib/components/kv-avatar/kv-avatar.component.ts +142 -0
- package/src/lib/components/kv-avatar/kv-avatar.module.ts +35 -0
- package/src/lib/components/kv-avatar/kv-crop-image/kv-crop-image.component.html +11 -0
- package/src/lib/components/kv-avatar/kv-crop-image/kv-crop-image.component.scss +27 -0
- package/src/lib/components/kv-avatar/kv-crop-image/kv-crop-image.component.ts +217 -0
- package/src/lib/components/kv-button/kv-button.component.html +13 -0
- package/src/lib/components/kv-button/kv-button.component.scss +152 -0
- package/src/lib/components/kv-button/kv-button.component.spec.ts +23 -0
- package/src/lib/components/kv-button/kv-button.component.ts +21 -0
- package/src/lib/components/kv-button/kv-button.module.ts +20 -0
- package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.html +14 -0
- package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.scss +6 -0
- package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.ts +25 -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 +71 -0
- package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.ts +36 -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 +18 -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 +17 -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 +25 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.scss +32 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.spec.ts +23 -0
- package/src/lib/components/kv-carousel/kv-carousel.component.ts +38 -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-file-upload/kv-file-upload.component.html +53 -0
- package/src/lib/components/kv-file-upload/kv-file-upload.component.scss +9 -0
- package/src/lib/components/kv-file-upload/kv-file-upload.component.spec.ts +23 -0
- package/src/lib/components/kv-file-upload/kv-file-upload.component.ts +128 -0
- package/src/lib/components/kv-file-upload/kv-file-upload.module.ts +10 -0
- package/src/lib/components/kv-file-viewer/kv-file-viewer.component.html +16 -0
- package/src/lib/components/kv-file-viewer/kv-file-viewer.component.scss +18 -0
- package/src/lib/components/kv-file-viewer/kv-file-viewer.component.ts +40 -0
- package/src/lib/components/kv-file-viewer/kv-file-viewer.module.ts +14 -0
- package/src/lib/components/kv-filter-card/kv-filter-card.component.html +13 -0
- package/src/lib/components/kv-filter-card/kv-filter-card.component.scss +74 -0
- package/src/lib/components/kv-filter-card/kv-filter-card.component.spec.ts +23 -0
- package/src/lib/components/kv-filter-card/kv-filter-card.component.ts +17 -0
- package/src/lib/components/kv-filter-card/kv-filter-card.module.ts +23 -0
- package/src/lib/components/kv-filter-fieldset/kv-filter-fieldset.component.html +21 -0
- package/src/lib/components/kv-filter-fieldset/kv-filter-fieldset.component.scss +22 -0
- package/src/lib/components/kv-filter-fieldset/kv-filter-fieldset.component.spec.ts +23 -0
- package/src/lib/components/kv-filter-fieldset/kv-filter-fieldset.component.ts +20 -0
- package/src/lib/components/kv-filter-fieldset/kv-filter-fieldset.module.ts +20 -0
- package/src/lib/components/kv-g-icon/kv-g-icon.component.html +1 -0
- package/src/lib/components/kv-g-icon/kv-g-icon.component.scss +0 -0
- package/src/lib/components/kv-g-icon/kv-g-icon.component.spec.ts +23 -0
- package/src/lib/components/kv-g-icon/kv-g-icon.component.ts +10 -0
- package/src/lib/components/kv-g-icon/kv-g-icon.module.ts +11 -0
- package/src/lib/components/kv-home-card/kv-home-card.component.html +35 -0
- package/src/lib/components/kv-home-card/kv-home-card.component.scss +5 -0
- package/src/lib/components/kv-home-card/kv-home-card.component.spec.ts +23 -0
- package/src/lib/components/kv-home-card/kv-home-card.component.ts +33 -0
- package/src/lib/components/kv-home-card/kv-home-card.module.ts +18 -0
- package/src/lib/components/kv-image-upload/kv-image-upload.component.html +64 -0
- package/src/lib/components/kv-image-upload/kv-image-upload.component.scss +0 -0
- package/src/lib/components/kv-image-upload/kv-image-upload.component.ts +84 -0
- package/src/lib/components/kv-image-upload/kv-image-upload.module.ts +10 -0
- package/src/lib/components/kv-inputs/kv-check/kv-check.component.html +12 -0
- package/src/lib/components/kv-inputs/kv-check/kv-check.component.scss +32 -0
- package/src/lib/components/kv-inputs/kv-check/kv-check.component.ts +33 -0
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.html +91 -0
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.scss +21 -0
- package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.ts +40 -0
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.html +113 -0
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.scss +45 -0
- package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.ts +138 -0
- package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.html +31 -0
- package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.scss +19 -0
- package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.ts +96 -0
- package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.html +24 -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 +24 -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 +23 -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 +23 -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 +24 -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 +78 -0
- package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.html +45 -0
- package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.scss +13 -0
- package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.ts +44 -0
- package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.html +19 -0
- package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.scss +21 -0
- package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.ts +63 -0
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.html +26 -0
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.scss +5 -0
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.spec.ts +21 -0
- package/src/lib/components/kv-inputs/kv-select-button/kv-select-button.component.ts +30 -0
- package/src/lib/components/kv-inputs/kv-select-buttons/kv-select-buttons.component.html +19 -0
- package/src/lib/components/kv-inputs/kv-select-buttons/kv-select-buttons.component.scss +25 -0
- package/src/lib/components/kv-inputs/kv-select-buttons/kv-select-buttons.component.spec.ts +23 -0
- package/src/lib/components/kv-inputs/kv-select-buttons/kv-select-buttons.component.ts +29 -0
- package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.html +20 -0
- package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.scss +23 -0
- package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.ts +54 -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-layout/dropdown-master/dropdown-master.component.html +16 -0
- package/src/lib/components/kv-layout/dropdown-master/dropdown-master.component.scss +0 -0
- package/src/lib/components/kv-layout/dropdown-master/dropdown-master.component.spec.ts +28 -0
- package/src/lib/components/kv-layout/dropdown-master/dropdown-master.component.ts +34 -0
- package/src/lib/components/kv-layout/kv-layout.module.ts +35 -0
- package/src/lib/components/kv-layout/layout/kv-layout.component.html +373 -0
- package/src/lib/components/kv-layout/layout/kv-layout.component.scss +216 -0
- package/src/lib/components/kv-layout/layout/kv-layout.component.spec.ts +23 -0
- package/src/lib/components/kv-layout/layout/kv-layout.component.ts +277 -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 +116 -0
- package/src/lib/components/kv-login/kv-login.component.scss +99 -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-modal/kv-modal.component.html +20 -0
- package/src/lib/components/kv-modal/kv-modal.component.scss +33 -0
- package/src/lib/components/kv-modal/kv-modal.component.spec.ts +21 -0
- package/src/lib/components/kv-modal/kv-modal.component.ts +111 -0
- package/src/lib/components/kv-modal/kv-modal.module.ts +12 -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 +103 -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 +167 -0
- package/src/lib/components/kv-page-form/kv-page-form.module.ts +33 -0
- package/src/lib/components/kv-page-stepper/kv-page-stepper.component.html +251 -0
- package/src/lib/components/kv-page-stepper/kv-page-stepper.component.scss +129 -0
- package/src/lib/components/kv-page-stepper/kv-page-stepper.component.spec.ts +23 -0
- package/src/lib/components/kv-page-stepper/kv-page-stepper.component.ts +223 -0
- package/src/lib/components/kv-page-stepper/kv-page-stepper.module.ts +34 -0
- package/src/lib/components/kv-pick-list/kv-pick-list.component.html +23 -0
- package/src/lib/components/kv-pick-list/kv-pick-list.component.scss +5 -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 +60 -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 +130 -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 +75 -0
- package/src/lib/components/kv-progress-bar/kv-progress-bar.module.ts +19 -0
- package/src/lib/components/kv-report/kv-report.component.html +12 -0
- package/src/lib/components/kv-report/kv-report.component.scss +21 -0
- package/src/lib/components/kv-report/kv-report.component.spec.ts +28 -0
- package/src/lib/components/kv-report/kv-report.component.ts +50 -0
- package/src/lib/components/kv-report/kv-report.module.ts +18 -0
- package/src/lib/components/kv-stepper/kv-stepper.component.html +66 -0
- package/src/lib/components/kv-stepper/kv-stepper.component.scss +41 -0
- package/src/lib/components/kv-stepper/kv-stepper.component.spec.ts +23 -0
- package/src/lib/components/kv-stepper/kv-stepper.component.ts +48 -0
- package/src/lib/components/kv-stepper/kv-stepper.module.ts +20 -0
- package/src/lib/components/kv-table/kv-table.component.html +504 -0
- package/src/lib/components/kv-table/kv-table.component.scss +130 -0
- package/src/lib/components/kv-table/kv-table.component.spec.ts +28 -0
- package/src/lib/components/kv-table/kv-table.component.ts +676 -0
- package/src/lib/components/kv-table/kv-table.module.ts +25 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.component.html +825 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.component.scss +712 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.component.ts +391 -0
- package/src/lib/components/kv-table-edit/kv-table-edit.module.ts +28 -0
- package/src/lib/components/kv-table-expandable/kv-table-expandable.component.html +440 -0
- package/src/lib/components/kv-table-expandable/kv-table-expandable.component.scss +372 -0
- package/src/lib/components/kv-table-expandable/kv-table-expandable.component.ts +519 -0
- package/src/lib/components/kv-table-expandable/kv-table-expandable.module.ts +22 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.component.html +568 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.component.scss +96 -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 +326 -0
- package/src/lib/components/kv-tree-table/kv-tree-table.module.ts +23 -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/empresa/kv-workspace-empresa.component.html +14 -0
- package/src/lib/components/kv-workspace/empresa/kv-workspace-empresa.component.scss +0 -0
- package/src/lib/components/kv-workspace/empresa/kv-workspace-empresa.component.spec.ts +28 -0
- package/src/lib/components/kv-workspace/empresa/kv-workspace-empresa.component.ts +77 -0
- package/src/lib/components/kv-workspace/kv-workspace.module.ts +41 -0
- package/src/lib/components/kv-workspace/logo/kv-workspace-logo.component.html +20 -0
- package/src/lib/components/kv-workspace/logo/kv-workspace-logo.component.scss +0 -0
- package/src/lib/components/kv-workspace/logo/kv-workspace-logo.component.spec.ts +28 -0
- package/src/lib/components/kv-workspace/logo/kv-workspace-logo.component.ts +18 -0
- package/src/lib/components/kv-workspace/master/kv-workspace-master.component.html +12 -0
- package/src/lib/components/kv-workspace/master/kv-workspace-master.component.scss +0 -0
- package/src/lib/components/kv-workspace/master/kv-workspace-master.component.spec.ts +28 -0
- package/src/lib/components/kv-workspace/master/kv-workspace-master.component.ts +72 -0
- package/src/lib/components/kv-workspace/workspace/kv-workspace.component.html +36 -0
- package/src/lib/components/kv-workspace/workspace/kv-workspace.component.scss +17 -0
- package/src/lib/components/kv-workspace/workspace/kv-workspace.component.ts +54 -0
- package/{public-api.d.ts → src/public-api.ts} +272 -232
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/keevo-components.mjs +0 -5
- package/esm2022/lib/api/base-components/base-component-button.mjs +0 -39
- package/esm2022/lib/api/base-components/base-component-chart.mjs +0 -92
- package/esm2022/lib/api/base-components/base-component-crud-form.mjs +0 -304
- package/esm2022/lib/api/base-components/base-component-crud-list.mjs +0 -93
- 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 -187
- package/esm2022/lib/api/base-components/base-component-input.mjs +0 -101
- package/esm2022/lib/api/base-components/base-component-multi-select.mjs +0 -130
- package/esm2022/lib/api/base-components/base-component-table.mjs +0 -351
- 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/stepper/kv-stepperpanel.mjs +0 -2
- package/esm2022/lib/api/components/table/action-item.mjs +0 -2
- package/esm2022/lib/api/components/table/kv-menuitem.mjs +0 -46
- package/esm2022/lib/api/components/table/table-dropdown-control.mjs +0 -2
- package/esm2022/lib/api/components/table/table.config.column.mjs +0 -2
- package/esm2022/lib/api/components/table/table.config.mjs +0 -2
- package/esm2022/lib/api/components/table/table.paginate.mjs +0 -9
- package/esm2022/lib/api/components/table/tabledit.config.mjs +0 -2
- package/esm2022/lib/api/components/table/tableedit.config.column.mjs +0 -2
- package/esm2022/lib/api/components/tree-table/tree-table.config.mjs +0 -3
- package/esm2022/lib/api/directives/directives.module.mjs +0 -30
- package/esm2022/lib/api/directives/drag/drag.directive.mjs +0 -52
- package/esm2022/lib/api/directives/stepper/dynamicinput.directive.mjs +0 -31
- 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 -106
- package/esm2022/lib/api/helpers/translate-primeng.mjs +0 -23
- package/esm2022/lib/api/modules/primeng.module.mjs +0 -271
- package/esm2022/lib/api/pipes/capitalize.pipe.mjs +0 -28
- 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 -39
- 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 -60
- package/esm2022/lib/api/services/component.service.mjs +0 -27
- package/esm2022/lib/api/services/docs.service.mjs +0 -129
- package/esm2022/lib/api/services/form.service.mjs +0 -92
- package/esm2022/lib/api/services/imagens.service.mjs +0 -28
- package/esm2022/lib/api/services/notification.service.mjs +0 -69
- package/esm2022/lib/api/services/object.service.mjs +0 -39
- package/esm2022/lib/api/types/severity.mjs +0 -2
- package/esm2022/lib/components/keevo-components.module.mjs +0 -193
- package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +0 -226
- package/esm2022/lib/components/kv-avatar/kv-avatar.module.mjs +0 -51
- package/esm2022/lib/components/kv-button/kv-button.component.mjs +0 -36
- package/esm2022/lib/components/kv-button/kv-button.module.mjs +0 -28
- package/esm2022/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.mjs +0 -25
- package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +0 -34
- 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 -30
- 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-file-upload/kv-file-upload.component.mjs +0 -118
- package/esm2022/lib/components/kv-file-upload/kv-file-upload.module.mjs +0 -18
- package/esm2022/lib/components/kv-file-viewer/kv-file-viewer.component.mjs +0 -40
- package/esm2022/lib/components/kv-file-viewer/kv-file-viewer.module.mjs +0 -20
- package/esm2022/lib/components/kv-filter-card/kv-filter-card.component.mjs +0 -26
- package/esm2022/lib/components/kv-filter-card/kv-filter-card.module.mjs +0 -34
- package/esm2022/lib/components/kv-filter-fieldset/kv-filter-fieldset.component.mjs +0 -26
- package/esm2022/lib/components/kv-filter-fieldset/kv-filter-fieldset.module.mjs +0 -28
- package/esm2022/lib/components/kv-g-icon/kv-g-icon.component.mjs +0 -11
- package/esm2022/lib/components/kv-g-icon/kv-g-icon.module.mjs +0 -19
- package/esm2022/lib/components/kv-home-card/kv-home-card.component.mjs +0 -27
- package/esm2022/lib/components/kv-home-card/kv-home-card.module.mjs +0 -32
- package/esm2022/lib/components/kv-image-upload/kv-image-upload.component.mjs +0 -89
- package/esm2022/lib/components/kv-image-upload/kv-image-upload.module.mjs +0 -18
- package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +0 -29
- package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +0 -44
- package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +0 -112
- package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +0 -96
- package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +0 -30
- 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 -122
- 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 -60
- package/esm2022/lib/components/kv-inputs/kv-select-button/kv-select-button.component.mjs +0 -46
- package/esm2022/lib/components/kv-inputs/kv-select-buttons/kv-select-buttons.component.mjs +0 -31
- package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +0 -41
- 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-layout/dropdown-master/dropdown-master.component.mjs +0 -28
- package/esm2022/lib/components/kv-layout/kv-layout.module.mjs +0 -50
- package/esm2022/lib/components/kv-layout/layout/kv-layout.component.mjs +0 -250
- 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-modal/kv-modal.component.mjs +0 -97
- package/esm2022/lib/components/kv-modal/kv-modal.module.mjs +0 -20
- 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 -191
- package/esm2022/lib/components/kv-page-form/kv-page-form.module.mjs +0 -41
- package/esm2022/lib/components/kv-page-stepper/kv-page-stepper.component.mjs +0 -207
- package/esm2022/lib/components/kv-page-stepper/kv-page-stepper.module.mjs +0 -47
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +0 -78
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.module.mjs +0 -32
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.component.mjs +0 -58
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.module.mjs +0 -28
- package/esm2022/lib/components/kv-report/kv-report.component.mjs +0 -53
- package/esm2022/lib/components/kv-report/kv-report.module.mjs +0 -24
- package/esm2022/lib/components/kv-stepper/kv-stepper.component.mjs +0 -55
- package/esm2022/lib/components/kv-stepper/kv-stepper.module.mjs +0 -32
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +0 -584
- package/esm2022/lib/components/kv-table/kv-table.module.mjs +0 -40
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +0 -322
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.module.mjs +0 -41
- package/esm2022/lib/components/kv-table-expandable/kv-table-expandable.component.mjs +0 -485
- package/esm2022/lib/components/kv-table-expandable/kv-table-expandable.module.mjs +0 -36
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +0 -298
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.module.mjs +0 -39
- 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/empresa/kv-workspace-empresa.component.mjs +0 -72
- package/esm2022/lib/components/kv-workspace/kv-workspace.module.mjs +0 -60
- package/esm2022/lib/components/kv-workspace/logo/kv-workspace-logo.component.mjs +0 -22
- package/esm2022/lib/components/kv-workspace/master/kv-workspace-master.component.mjs +0 -63
- package/esm2022/lib/components/kv-workspace/workspace/kv-workspace.component.mjs +0 -64
- package/esm2022/public-api.mjs +0 -236
- package/fesm2022/keevo-components.mjs +0 -8181
- package/fesm2022/keevo-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/api/base-components/base-component-button.d.ts +0 -15
- package/lib/api/base-components/base-component-chart.d.ts +0 -40
- package/lib/api/base-components/base-component-crud-form.d.ts +0 -149
- package/lib/api/base-components/base-component-crud-list.d.ts +0 -70
- 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 -47
- package/lib/api/base-components/base-component-input.d.ts +0 -33
- package/lib/api/base-components/base-component-multi-select.d.ts +0 -35
- package/lib/api/base-components/base-component-table.d.ts +0 -87
- 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/stepper/kv-stepperpanel.d.ts +0 -9
- package/lib/api/components/table/action-item.d.ts +0 -12
- package/lib/api/components/table/kv-menuitem.d.ts +0 -152
- package/lib/api/components/table/table-dropdown-control.d.ts +0 -6
- package/lib/api/components/table/table.config.column.d.ts +0 -28
- package/lib/api/components/table/table.config.d.ts +0 -32
- package/lib/api/components/table/table.paginate.d.ts +0 -6
- package/lib/api/components/table/tabledit.config.d.ts +0 -8
- package/lib/api/components/table/tableedit.config.column.d.ts +0 -10
- package/lib/api/components/tree-table/tree-table.config.d.ts +0 -28
- package/lib/api/directives/directives.module.d.ts +0 -9
- package/lib/api/directives/drag/drag.directive.d.ts +0 -11
- package/lib/api/directives/stepper/dynamicinput.directive.d.ts +0 -15
- 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 -14
- package/lib/api/helpers/translate-primeng.d.ts +0 -4
- package/lib/api/modules/primeng.module.d.ts +0 -66
- package/lib/api/pipes/capitalize.pipe.d.ts +0 -8
- 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 -11
- 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 -16
- package/lib/api/services/component.service.d.ts +0 -11
- package/lib/api/services/docs.service.d.ts +0 -12
- package/lib/api/services/form.service.d.ts +0 -31
- package/lib/api/services/imagens.service.d.ts +0 -10
- package/lib/api/services/notification.service.d.ts +0 -26
- package/lib/api/services/object.service.d.ts +0 -9
- package/lib/components/keevo-components.module.d.ts +0 -32
- package/lib/components/kv-avatar/kv-avatar.component.d.ts +0 -45
- package/lib/components/kv-avatar/kv-avatar.module.d.ts +0 -14
- package/lib/components/kv-button/kv-button.component.d.ts +0 -15
- package/lib/components/kv-button/kv-button.module.d.ts +0 -9
- package/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.d.ts +0 -11
- package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +0 -14
- 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-file-upload/kv-file-upload.component.d.ts +0 -29
- package/lib/components/kv-file-upload/kv-file-upload.module.d.ts +0 -8
- package/lib/components/kv-file-viewer/kv-file-viewer.component.d.ts +0 -19
- package/lib/components/kv-file-viewer/kv-file-viewer.module.d.ts +0 -8
- package/lib/components/kv-filter-card/kv-filter-card.component.d.ts +0 -12
- package/lib/components/kv-filter-card/kv-filter-card.module.d.ts +0 -10
- package/lib/components/kv-filter-fieldset/kv-filter-fieldset.component.d.ts +0 -10
- package/lib/components/kv-filter-fieldset/kv-filter-fieldset.module.d.ts +0 -9
- package/lib/components/kv-g-icon/kv-g-icon.component.d.ts +0 -5
- package/lib/components/kv-g-icon/kv-g-icon.module.d.ts +0 -9
- package/lib/components/kv-home-card/kv-home-card.component.d.ts +0 -24
- package/lib/components/kv-home-card/kv-home-card.module.d.ts +0 -11
- package/lib/components/kv-image-upload/kv-image-upload.component.d.ts +0 -25
- package/lib/components/kv-image-upload/kv-image-upload.module.d.ts +0 -8
- package/lib/components/kv-inputs/kv-check/kv-check.component.d.ts +0 -12
- package/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.d.ts +0 -16
- package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +0 -27
- package/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.d.ts +0 -29
- 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 -28
- 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 -20
- package/lib/components/kv-inputs/kv-select-button/kv-select-button.component.d.ts +0 -19
- package/lib/components/kv-inputs/kv-select-buttons/kv-select-buttons.component.d.ts +0 -16
- package/lib/components/kv-inputs/kv-switch/kv-switch.component.d.ts +0 -16
- 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-layout/dropdown-master/dropdown-master.component.d.ts +0 -12
- package/lib/components/kv-layout/kv-layout.module.d.ts +0 -14
- package/lib/components/kv-layout/layout/kv-layout.component.d.ts +0 -109
- 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-modal/kv-modal.component.d.ts +0 -27
- 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 -100
- package/lib/components/kv-page-form/kv-page-form.module.d.ts +0 -12
- package/lib/components/kv-page-stepper/kv-page-stepper.component.d.ts +0 -84
- package/lib/components/kv-page-stepper/kv-page-stepper.module.d.ts +0 -13
- package/lib/components/kv-pick-list/kv-pick-list.component.d.ts +0 -30
- package/lib/components/kv-pick-list/kv-pick-list.module.d.ts +0 -10
- package/lib/components/kv-progress-bar/kv-progress-bar.component.d.ts +0 -67
- package/lib/components/kv-progress-bar/kv-progress-bar.module.d.ts +0 -9
- package/lib/components/kv-report/kv-report.component.d.ts +0 -20
- package/lib/components/kv-report/kv-report.module.d.ts +0 -8
- package/lib/components/kv-stepper/kv-stepper.component.d.ts +0 -25
- package/lib/components/kv-stepper/kv-stepper.module.d.ts +0 -10
- package/lib/components/kv-table/kv-table.component.d.ts +0 -138
- package/lib/components/kv-table/kv-table.module.d.ts +0 -12
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +0 -60
- package/lib/components/kv-table-edit/kv-table-edit.module.d.ts +0 -14
- package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +0 -110
- package/lib/components/kv-table-expandable/kv-table-expandable.module.d.ts +0 -12
- package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +0 -76
- package/lib/components/kv-tree-table/kv-tree-table.module.d.ts +0 -11
- 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/empresa/kv-workspace-empresa.component.d.ts +0 -20
- package/lib/components/kv-workspace/kv-workspace.module.d.ts +0 -17
- package/lib/components/kv-workspace/logo/kv-workspace-logo.component.d.ts +0 -11
- package/lib/components/kv-workspace/master/kv-workspace-master.component.d.ts +0 -18
- package/lib/components/kv-workspace/workspace/kv-workspace.component.d.ts +0 -26
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
EventEmitter,
|
|
4
|
+
Input,
|
|
5
|
+
OnChanges,
|
|
6
|
+
OnInit,
|
|
7
|
+
Output,
|
|
8
|
+
SimpleChanges
|
|
9
|
+
} from '@angular/core';
|
|
10
|
+
|
|
11
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
12
|
+
import { ComponentProviders } from '../../../api/helpers/component-providers';
|
|
13
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'kv-switch',
|
|
17
|
+
templateUrl: './kv-switch.component.html',
|
|
18
|
+
styleUrls: [
|
|
19
|
+
'./kv-switch.component.scss',
|
|
20
|
+
'../../keevo-components-styles.scss'
|
|
21
|
+
],
|
|
22
|
+
providers: ComponentProviders(KvSwitchComponent),
|
|
23
|
+
})
|
|
24
|
+
export class KvSwitchComponent extends BaseComponentInput<boolean> {
|
|
25
|
+
|
|
26
|
+
@Input() readonly!: boolean;
|
|
27
|
+
@Input() switchValue!: boolean;
|
|
28
|
+
|
|
29
|
+
@Output() onSwitchChange: EventEmitter<any> = new EventEmitter();
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
varivelDoMeuComponente: boolean = false;
|
|
33
|
+
|
|
34
|
+
constructor(componentService: ComponentService) {
|
|
35
|
+
super(componentService);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
ngOnChanges(changes: SimpleChanges) {
|
|
39
|
+
if(changes['switchValue']){
|
|
40
|
+
this.value = changes['switchValue'].currentValue;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
override ngOnInit(): void {
|
|
45
|
+
super.ngOnInit();
|
|
46
|
+
if (this.switchValue) this.value = this.switchValue;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
emitOnSwitchChange(event: any) {
|
|
50
|
+
this.onSwitchChange.emit(event);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { KvLabelComponent } from './kv-label.component';
|
|
4
|
+
|
|
5
|
+
describe('LabelComponent', () => {
|
|
6
|
+
let component: KvLabelComponent;
|
|
7
|
+
let fixture: ComponentFixture<KvLabelComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ KvLabelComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(KvLabelComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
Input
|
|
4
|
+
} from '@angular/core';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'kv-label',
|
|
8
|
+
templateUrl: './kv-label.component.html',
|
|
9
|
+
styleUrls: ['./kv-label.component.scss']
|
|
10
|
+
})
|
|
11
|
+
export class KvLabelComponent {
|
|
12
|
+
@Input() componentId!: string;
|
|
13
|
+
@Input() label!: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
import { KvLabelComponent } from './kv-label.component';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [
|
|
8
|
+
KvLabelComponent
|
|
9
|
+
],
|
|
10
|
+
imports: [
|
|
11
|
+
CommonModule
|
|
12
|
+
],
|
|
13
|
+
exports: [
|
|
14
|
+
KvLabelComponent
|
|
15
|
+
]
|
|
16
|
+
})
|
|
17
|
+
export class KvLabelModule { }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div [formGroup]="formGroup">
|
|
2
|
+
<kv-dropdown
|
|
3
|
+
componentId="idmaster"
|
|
4
|
+
label="Licença"
|
|
5
|
+
optionLabel="idmasternome"
|
|
6
|
+
optionValue="idmaster"
|
|
7
|
+
[options]="options"
|
|
8
|
+
[filter]="true"
|
|
9
|
+
[filteredOptions]="filteredOptions"
|
|
10
|
+
[formControlName]="formControlName"
|
|
11
|
+
[loading]="loading"
|
|
12
|
+
[showClear]="false"
|
|
13
|
+
(onSelectionChange)="onInputChange($event)"
|
|
14
|
+
(onSelectionValue)="onInputChange($event)">
|
|
15
|
+
</kv-dropdown>
|
|
16
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* tslint:disable:no-unused-variable */
|
|
2
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
+
import { By } from '@angular/platform-browser';
|
|
4
|
+
import { DebugElement } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
import { DropdownMasterComponent } from './dropdown-master.component';
|
|
7
|
+
|
|
8
|
+
describe('DropdownMasterComponent', () => {
|
|
9
|
+
let component: DropdownMasterComponent;
|
|
10
|
+
let fixture: ComponentFixture<DropdownMasterComponent>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
declarations: [ DropdownMasterComponent ]
|
|
15
|
+
})
|
|
16
|
+
.compileComponents();
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
beforeEach(() => {
|
|
20
|
+
fixture = TestBed.createComponent(DropdownMasterComponent);
|
|
21
|
+
component = fixture.componentInstance;
|
|
22
|
+
fixture.detectChanges();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('should create', () => {
|
|
26
|
+
expect(component).toBeTruthy();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
Input
|
|
4
|
+
} from '@angular/core';
|
|
5
|
+
|
|
6
|
+
import { DialogService } from 'primeng/dynamicdialog';
|
|
7
|
+
|
|
8
|
+
import { of } from 'rxjs';
|
|
9
|
+
import { ComponentProviders } from '../../../api/helpers/component-providers';
|
|
10
|
+
import { BaseComponentDropDownExternal } from '../../../api/base-components/base-component-dropdown-external';
|
|
11
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'dropdown-master',
|
|
15
|
+
templateUrl: './dropdown-master.component.html',
|
|
16
|
+
styleUrls: ['./dropdown-master.component.scss'],
|
|
17
|
+
providers: ComponentProviders(DropdownMasterComponent),
|
|
18
|
+
})
|
|
19
|
+
export class DropdownMasterComponent extends BaseComponentDropDownExternal {
|
|
20
|
+
|
|
21
|
+
@Input() formControlName!: string;
|
|
22
|
+
@Input() masters!: any[];
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
componentService: ComponentService,
|
|
26
|
+
dialogService: DialogService,
|
|
27
|
+
) {
|
|
28
|
+
super(componentService, dialogService);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
protected override listar() {
|
|
32
|
+
return of(this.masters || []);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
FormsModule,
|
|
5
|
+
ReactiveFormsModule
|
|
6
|
+
} from '@angular/forms';
|
|
7
|
+
|
|
8
|
+
import { NgModule } from '@angular/core';
|
|
9
|
+
|
|
10
|
+
import { KvButtonsModule } from '../kv-buttons/kv-button.module';
|
|
11
|
+
import { KvInputsModule } from '../kv-inputs/kv-inputs.module';
|
|
12
|
+
import { KvLayoutComponent } from './layout/kv-layout.component';
|
|
13
|
+
import { PipesModule } from "../../api/pipes/pipes.module";
|
|
14
|
+
import { PrimeNgModule } from '../../api/modules/primeng.module';
|
|
15
|
+
import { DropdownMasterComponent } from './dropdown-master/dropdown-master.component';
|
|
16
|
+
|
|
17
|
+
@NgModule({
|
|
18
|
+
declarations: [
|
|
19
|
+
DropdownMasterComponent,
|
|
20
|
+
KvLayoutComponent
|
|
21
|
+
],
|
|
22
|
+
exports: [
|
|
23
|
+
KvLayoutComponent
|
|
24
|
+
],
|
|
25
|
+
imports: [
|
|
26
|
+
CommonModule,
|
|
27
|
+
FormsModule,
|
|
28
|
+
KvButtonsModule,
|
|
29
|
+
KvInputsModule,
|
|
30
|
+
PipesModule,
|
|
31
|
+
PrimeNgModule,
|
|
32
|
+
ReactiveFormsModule,
|
|
33
|
+
]
|
|
34
|
+
})
|
|
35
|
+
export class KvLayoutModule { }
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
<div class="flex flex-row overflow-y-hidden w- full-container">
|
|
2
|
+
@if (showMenu) {
|
|
3
|
+
<div [style]="{ minWidth: expandMenu ? '300px' : '60px' }"></div>
|
|
4
|
+
} @if(showMenu) {
|
|
5
|
+
<p-sidebar
|
|
6
|
+
#sidebarRef
|
|
7
|
+
[visible]="true"
|
|
8
|
+
[showCloseIcon]="false"
|
|
9
|
+
[modal]="false"
|
|
10
|
+
[style]="{ width: expandMenu ? '300px' : '60px' }"
|
|
11
|
+
class="sidebar-animation"
|
|
12
|
+
>
|
|
13
|
+
<ng-template pTemplate="headless">
|
|
14
|
+
<div class="flex flex-column mx-1">
|
|
15
|
+
<div
|
|
16
|
+
class="flex flex-column gap-2 justify-content-between flex-shrink-0 mx-2"
|
|
17
|
+
>
|
|
18
|
+
<div
|
|
19
|
+
class="flex {{expandMenu ? 'flex-row' : 'flex-column'}} align-items-center {{
|
|
20
|
+
expandMenu ? 'justify-content-between' : 'justify-content-center'
|
|
21
|
+
}} py-3"
|
|
22
|
+
>
|
|
23
|
+
<!-- Logo para o menu expandido -->
|
|
24
|
+
<img
|
|
25
|
+
*ngIf="expandMenu && logoMenuExpand"
|
|
26
|
+
alt="Card"
|
|
27
|
+
[src]="logoMenuExpand"
|
|
28
|
+
width="150"
|
|
29
|
+
class="cursor-pointer"
|
|
30
|
+
(click)="navigateToDefaultRoute()"
|
|
31
|
+
/>
|
|
32
|
+
|
|
33
|
+
<!-- Logo para o menu minimizado-->
|
|
34
|
+
<img
|
|
35
|
+
*ngIf="!expandMenu && logoMenuHide"
|
|
36
|
+
alt="Card"
|
|
37
|
+
[src]="logoMenuHide"
|
|
38
|
+
width="50"
|
|
39
|
+
class="mb-2"
|
|
40
|
+
(click)="navigateToDefaultRoute()"
|
|
41
|
+
/>
|
|
42
|
+
|
|
43
|
+
<!-- Toggle menu -->
|
|
44
|
+
<button
|
|
45
|
+
*ngIf="showExpandMenu"
|
|
46
|
+
pButton
|
|
47
|
+
class="p-button-rounded p-button-text padding-style h-2rem w-2rem hover:bg-green-600 hover:text-white icon-menu"
|
|
48
|
+
(click)="toggleMenu()"
|
|
49
|
+
[pTooltip]="expandMenu ? 'Ocultar Menu' : 'Expandir Menu'"
|
|
50
|
+
[tooltipPosition]="'right'"
|
|
51
|
+
>
|
|
52
|
+
<i class="material-symbols-outlined"> menu </i>
|
|
53
|
+
</button>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
@if(showTrocaEmpresa){
|
|
57
|
+
<div
|
|
58
|
+
class="flex flex-row align-items-center {{
|
|
59
|
+
expandMenu ? 'justify-content-between' : 'justify-content-center'
|
|
60
|
+
}}"
|
|
61
|
+
>
|
|
62
|
+
<div
|
|
63
|
+
class="flex flex-column cursor-pointer"
|
|
64
|
+
*ngIf="expandMenu && selectedEmpresa"
|
|
65
|
+
(click)="changeEmpresa($event)"
|
|
66
|
+
>
|
|
67
|
+
<span
|
|
68
|
+
class="text-sm font-semibold mr-2"
|
|
69
|
+
[pTooltip]="this.selectedEmpresa.razaosocial"
|
|
70
|
+
[tooltipPosition]="'right'"
|
|
71
|
+
>
|
|
72
|
+
{{ nameEmpresa(this.selectedEmpresa.razaosocial) }}
|
|
73
|
+
</span>
|
|
74
|
+
<span class="text-sm mt-1">{{
|
|
75
|
+
this.selectedEmpresa.cpfcnpj | cpfCnpj
|
|
76
|
+
}}</span>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<button
|
|
80
|
+
pButton
|
|
81
|
+
class="p-button-rounded p-button-text padding-style h-2rem w-2rem hover:bg-green-600 hover:text-white icon-menu"
|
|
82
|
+
(click)="changeEmpresa($event)"
|
|
83
|
+
[pTooltip]="'Trocar de empresa'"
|
|
84
|
+
[tooltipPosition]="'right'"
|
|
85
|
+
>
|
|
86
|
+
<i class="material-symbols-outlined"> sync_alt </i>
|
|
87
|
+
</button>
|
|
88
|
+
</div>
|
|
89
|
+
<p-divider type="solid"></p-divider>
|
|
90
|
+
}
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div
|
|
94
|
+
class="list-none m-0 card-container {{ expandMenu ? 'mx-1' : '' }}"
|
|
95
|
+
[style.max-height]="heightCard - 220 + 'px'"
|
|
96
|
+
style="overflow-y: auto"
|
|
97
|
+
>
|
|
98
|
+
<!-- menus -->
|
|
99
|
+
<li *ngFor="let menu of menus; let i = index">
|
|
100
|
+
<!-- menu que não tem filho -->
|
|
101
|
+
<a
|
|
102
|
+
(mouseenter)="onMouseEnter(i)"
|
|
103
|
+
(mouseleave)="onMouseLeave()"
|
|
104
|
+
[ngClass]="{ 'hover-color': mouseOverIndex === i }"
|
|
105
|
+
(click)="callRoute(menu.link)"
|
|
106
|
+
*ngIf="
|
|
107
|
+
!menu.indmenupai && (!menu.idmenupai || menu.idmenupai == 0)
|
|
108
|
+
"
|
|
109
|
+
pRipple
|
|
110
|
+
[pTooltip]="!expandMenu ? menu.descricaomenu : ''"
|
|
111
|
+
[tooltipPosition]="'right'"
|
|
112
|
+
class="{{
|
|
113
|
+
verifySelectedPage(menu.link) ? 'bg-green-600' : ''
|
|
114
|
+
}} menu-option flex align-items-center no-underline {{
|
|
115
|
+
!expandMenu ? 'justify-content-center' : ''
|
|
116
|
+
}} cursor-pointer border-round text-700 hover:bg-green-600 hover:text-white transition-duration-150 transition-colors p-ripple"
|
|
117
|
+
>
|
|
118
|
+
<i
|
|
119
|
+
class="material-symbols-outlined icon-menu {{
|
|
120
|
+
expandMenu ? 'ml-1 mr-2' : ''
|
|
121
|
+
}} icon-hover-color {{
|
|
122
|
+
verifySelectedPage(menu.link) ? 'text-white' : ''
|
|
123
|
+
}}"
|
|
124
|
+
*ngIf="menu.icone"
|
|
125
|
+
>
|
|
126
|
+
{{ menu.icone }}
|
|
127
|
+
</i>
|
|
128
|
+
<span
|
|
129
|
+
class="text-base text-blue-900 font-medium {{
|
|
130
|
+
verifySelectedPage(menu.link) ? 'text-white' : ''
|
|
131
|
+
}}"
|
|
132
|
+
*ngIf="expandMenu"
|
|
133
|
+
>{{ menu.descricaomenu }}</span
|
|
134
|
+
>
|
|
135
|
+
</a>
|
|
136
|
+
<!-- menu com filho -->
|
|
137
|
+
<div *ngIf="menu.indmenupai">
|
|
138
|
+
<a
|
|
139
|
+
(mouseenter)="onMouseEnter(i)"
|
|
140
|
+
(mouseleave)="onMouseLeave()"
|
|
141
|
+
[ngClass]="{ 'hover-color': mouseOverIndex === i }"
|
|
142
|
+
pRipple
|
|
143
|
+
pStyleClass="@next"
|
|
144
|
+
enterClass="hidden"
|
|
145
|
+
enterActiveClass="slidedown"
|
|
146
|
+
leaveToClass="hidden"
|
|
147
|
+
leaveActiveClass="slideup"
|
|
148
|
+
class="menu-option flex align-items-center {{
|
|
149
|
+
!expandMenu
|
|
150
|
+
? 'justify-content-center'
|
|
151
|
+
: 'justify-content-between'
|
|
152
|
+
}} cursor-pointer border-round text-700 hover:bg-green-600 hover:text-white transition-duration-150 transition-colors p-ripple"
|
|
153
|
+
[tooltipPosition]="'right'"
|
|
154
|
+
[pTooltip]="!expandMenu ? menu.descricaomenu : ''"
|
|
155
|
+
(click)="!expandMenu ? (expandMenu = !expandMenu) : ''"
|
|
156
|
+
>
|
|
157
|
+
<div class="flex flex-row align-items-center">
|
|
158
|
+
<i
|
|
159
|
+
class="material-symbols-outlined icon-menu {{
|
|
160
|
+
expandMenu ? 'ml-1 mr-2' : ''
|
|
161
|
+
}} icon-hover-color"
|
|
162
|
+
*ngIf="menu.icone"
|
|
163
|
+
[ngClass]="{ 'hover-color': mouseOverIndex === i }"
|
|
164
|
+
>
|
|
165
|
+
{{ menu.icone }}
|
|
166
|
+
</i>
|
|
167
|
+
<span
|
|
168
|
+
class="text-base text-blue-900 font-medium"
|
|
169
|
+
*ngIf="expandMenu"
|
|
170
|
+
>{{ menu.descricaomenu }}</span
|
|
171
|
+
>
|
|
172
|
+
</div>
|
|
173
|
+
<i
|
|
174
|
+
class="pi pi-chevron-down text-blue-900 mr-1 icon-hover-color"
|
|
175
|
+
*ngIf="expandMenu"
|
|
176
|
+
[ngClass]="{ 'hover-color': mouseOverIndex === i }"
|
|
177
|
+
></i>
|
|
178
|
+
</a>
|
|
179
|
+
|
|
180
|
+
<!-- filhos -->
|
|
181
|
+
<div
|
|
182
|
+
class="list-none py-0 pl-3 pr-0 m-0 {{ !(menuSelecionado == menu.idmenu) && 'hidden'}} overflow-y-hidden transition-all transition-duration-400 transition-ease-in-out"
|
|
183
|
+
>
|
|
184
|
+
<li
|
|
185
|
+
*ngFor="
|
|
186
|
+
let filho of returnMenuChild(menu.idmenu);
|
|
187
|
+
let iFilho = index
|
|
188
|
+
"
|
|
189
|
+
>
|
|
190
|
+
<a
|
|
191
|
+
(mouseenter)="onMouseEnterChild(filho.idmenu)"
|
|
192
|
+
(mouseleave)="onMouseLeave()"
|
|
193
|
+
[ngClass]="{
|
|
194
|
+
'hover-color': mouseOverFilhoIndex === filho.idmenu
|
|
195
|
+
}"
|
|
196
|
+
*ngIf="expandMenu"
|
|
197
|
+
(click)="callRoute(filho.link)"
|
|
198
|
+
pRipple
|
|
199
|
+
class="{{
|
|
200
|
+
verifySelectedPage(filho.link, menu) ? 'bg-green-600' : ''
|
|
201
|
+
}} menu-option flex align-items-center no-underline cursor-pointer border-round text-700 hover:bg-green-600 transition-duration-150 transition-colors p-ripple p-2"
|
|
202
|
+
>
|
|
203
|
+
<i
|
|
204
|
+
class="material-symbols-outlined icon-menu {{
|
|
205
|
+
expandMenu ? 'ml-1 mr-2' : ''
|
|
206
|
+
}} icon-hover-color"
|
|
207
|
+
*ngIf="filho.icone"
|
|
208
|
+
[ngClass]="{ 'hover-color': mouseOverIndex === i }"
|
|
209
|
+
>
|
|
210
|
+
{{ filho.icone }}
|
|
211
|
+
</i>
|
|
212
|
+
<span
|
|
213
|
+
class="text-base text-blue-900 ml-4 {{
|
|
214
|
+
verifySelectedPage(filho.link, menu) ? 'text-white' : ''
|
|
215
|
+
}}"
|
|
216
|
+
*ngIf="expandMenu"
|
|
217
|
+
>{{ filho.descricaomenu }}</span
|
|
218
|
+
>
|
|
219
|
+
</a>
|
|
220
|
+
</li>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
</li>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
</ng-template>
|
|
227
|
+
</p-sidebar>
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
<!-- Topbar -->
|
|
231
|
+
<div
|
|
232
|
+
class="w-auto h-screen page-content overflow-y-hidden"
|
|
233
|
+
id="page-content"
|
|
234
|
+
style="width: 100vw !important"
|
|
235
|
+
>
|
|
236
|
+
<div class="flex flex-row align-items-center justify-content-between m-3">
|
|
237
|
+
|
|
238
|
+
@if(!showMenu) {
|
|
239
|
+
<!-- Logo home -->
|
|
240
|
+
<div>
|
|
241
|
+
<img [src]="logoMenuExpand" width="150" />
|
|
242
|
+
</div>
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@else {
|
|
246
|
+
<!-- Breadcrumbs -->
|
|
247
|
+
<div>
|
|
248
|
+
<p class="text-xl font-semibold text-blue-900 breadcrumb-title">
|
|
249
|
+
{{ breadCrumbItems[breadCrumbItems.length - 1]?.label }}
|
|
250
|
+
</p>
|
|
251
|
+
<p-breadcrumb
|
|
252
|
+
*ngIf="widthCard > 400"
|
|
253
|
+
styleClass="border-none p-0 flex align-items-center h-2rem !important;"
|
|
254
|
+
[model]="breadCrumbItems"
|
|
255
|
+
[style]="{ backgroundColor: '#eaeaea' }"
|
|
256
|
+
(onItemClick)="callRoute($event.item.routerLink, true)"
|
|
257
|
+
></p-breadcrumb>
|
|
258
|
+
</div>
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
<!-- dropdown para seleção de empresa/licenca -->
|
|
262
|
+
<dropdown-master
|
|
263
|
+
*ngIf="showLicencas()"
|
|
264
|
+
class="w-40rem"
|
|
265
|
+
formControlName="idmaster"
|
|
266
|
+
[formGroup]="formGroup"
|
|
267
|
+
[masters]="masters"
|
|
268
|
+
(onSelectionChange)="changeLicense($event)"
|
|
269
|
+
(onSelectionValue)="changeLicense($event)"
|
|
270
|
+
>
|
|
271
|
+
</dropdown-master>
|
|
272
|
+
|
|
273
|
+
<!-- Navegação de sistemas e usuários -->
|
|
274
|
+
<div class="w-auto flex flex-row align-items-center gap-2">
|
|
275
|
+
<p-button
|
|
276
|
+
*ngIf="showButtonApps"
|
|
277
|
+
styleClass="w-2rem h-2rem text-blue-900 hover:bg-green-600 hover:text-white"
|
|
278
|
+
icon="pi pi-th-large"
|
|
279
|
+
[rounded]="true"
|
|
280
|
+
[text]="true"
|
|
281
|
+
(click)="sistemasPanel.toggle($event)"
|
|
282
|
+
[pTooltip]="'Sistemas'"
|
|
283
|
+
[tooltipPosition]="'left'"
|
|
284
|
+
></p-button>
|
|
285
|
+
|
|
286
|
+
<p-button
|
|
287
|
+
*ngIf="showButtonUser"
|
|
288
|
+
styleClass="w-2rem h-2rem text-blue-900 hover:bg-green-600 hover:text-white"
|
|
289
|
+
icon="pi pi-user"
|
|
290
|
+
[rounded]="true"
|
|
291
|
+
[text]="true"
|
|
292
|
+
[pTooltip]="'Menu do Usuário'"
|
|
293
|
+
[tooltipPosition]="'left'"
|
|
294
|
+
(click)="meusDadosPanel.toggle($event)"
|
|
295
|
+
></p-button>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
|
|
299
|
+
<!-- Container -->
|
|
300
|
+
<p-card
|
|
301
|
+
styleClass="m-3 overflow-y-auto {{
|
|
302
|
+
!showMenu && 'sm:overflow-y-hidden'
|
|
303
|
+
}} card-container"
|
|
304
|
+
[style]="{ height: heightCard - adjustHeightCard() + 'px' }"
|
|
305
|
+
>
|
|
306
|
+
<div
|
|
307
|
+
class="{{ widthCard < 992 && 'card-container' }} w-full h-full"
|
|
308
|
+
[style]="{ width: widthCard + 'px' }"
|
|
309
|
+
>
|
|
310
|
+
<ng-content></ng-content>
|
|
311
|
+
</div>
|
|
312
|
+
</p-card>
|
|
313
|
+
</div>
|
|
314
|
+
|
|
315
|
+
<!-- Painel de aplicativos -->
|
|
316
|
+
<p-overlayPanel
|
|
317
|
+
#sistemasPanel
|
|
318
|
+
[showTransitionOptions]="'350ms ease-out'"
|
|
319
|
+
[hideTransitionOptions]="'250ms ease-in'"
|
|
320
|
+
>
|
|
321
|
+
<ng-template pTemplate="container">
|
|
322
|
+
<p class="title-style mt-3">Sistemas</p>
|
|
323
|
+
<div
|
|
324
|
+
class="flex flex-row flex-wrap gap-2 align-items-center justify-content-center mt-5 mb-3"
|
|
325
|
+
style="width: 250px; height: 100%"
|
|
326
|
+
>
|
|
327
|
+
<button
|
|
328
|
+
*ngFor="let aplicativo of apps"
|
|
329
|
+
pButton
|
|
330
|
+
pRipple
|
|
331
|
+
class="btn-sistema-2 btn-sistema hover-btn-cor-padrao remove-focus h-4rem w-4rem"
|
|
332
|
+
[pTooltip]="aplicativo?.descricaoaplicativo"
|
|
333
|
+
[tooltipPosition]="'left'"
|
|
334
|
+
(click)="selectApp(aplicativo.idaplicativo)"
|
|
335
|
+
>
|
|
336
|
+
{{ aplicativo.nomeaplicativo.charAt(0).toUpperCase() }}
|
|
337
|
+
</button>
|
|
338
|
+
</div>
|
|
339
|
+
</ng-template>
|
|
340
|
+
</p-overlayPanel>
|
|
341
|
+
|
|
342
|
+
<!-- Painel do usuário -->
|
|
343
|
+
<p-overlayPanel
|
|
344
|
+
#meusDadosPanel
|
|
345
|
+
[showTransitionOptions]="'350ms ease-out'"
|
|
346
|
+
[hideTransitionOptions]="'250ms ease-in'"
|
|
347
|
+
>
|
|
348
|
+
<ng-template pTemplate="container">
|
|
349
|
+
<p class="title-style mt-3">
|
|
350
|
+
Olá, {{ userName ? userName.split(" ")[0] : "Usuário" }}!
|
|
351
|
+
</p>
|
|
352
|
+
<div class="mt-5 mb-3"></div>
|
|
353
|
+
|
|
354
|
+
<p-button
|
|
355
|
+
icon="pi pi-lock"
|
|
356
|
+
label="Acessar Keepass"
|
|
357
|
+
(onClick)="accessKeePass($event)"
|
|
358
|
+
styleClass="border-noround w-full text-blue-900"
|
|
359
|
+
[text]="true"
|
|
360
|
+
>
|
|
361
|
+
</p-button>
|
|
362
|
+
|
|
363
|
+
<p-button
|
|
364
|
+
icon="pi pi-sign-out"
|
|
365
|
+
label="Sair"
|
|
366
|
+
(onClick)="logout($event)"
|
|
367
|
+
styleClass="border-noround w-full text-blue-900"
|
|
368
|
+
[text]="true"
|
|
369
|
+
>
|
|
370
|
+
</p-button>
|
|
371
|
+
</ng-template>
|
|
372
|
+
</p-overlayPanel>
|
|
373
|
+
</div>
|