keevo-components 1.5.191 → 1.5.192
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/esm2020/keevo-components.mjs +5 -0
- package/esm2020/lib/api/base-components/base-component-button.mjs +36 -0
- package/esm2020/lib/api/base-components/base-component-chart.mjs +92 -0
- package/esm2020/lib/api/base-components/base-component-crud-form.mjs +270 -0
- package/esm2020/lib/api/base-components/base-component-crud-list.mjs +68 -0
- package/esm2020/lib/api/base-components/base-component-crud.mjs +65 -0
- package/esm2020/lib/api/base-components/base-component-dropdown-new.mjs +211 -0
- package/esm2020/lib/api/base-components/base-component-dropdown.mjs +161 -0
- package/esm2020/lib/api/base-components/base-component-input.mjs +94 -0
- package/esm2020/lib/api/base-components/base-component-multi-select.mjs +128 -0
- package/esm2020/lib/api/base-components/base-component.mjs +49 -0
- package/esm2020/lib/api/components/chart/chart.config.mjs +2 -0
- package/esm2020/lib/api/components/chart/chart.model.mjs +2 -0
- package/esm2020/lib/api/components/chart/orchart.config.mjs +2 -0
- package/esm2020/lib/api/components/chart/orchart.item.mjs +2 -0
- package/esm2020/lib/api/components/dropdown/filtro.combo.mjs +2 -0
- package/esm2020/lib/api/components/error/error.component.mjs +26 -0
- package/esm2020/lib/api/components/error/kverror.module.mjs +35 -0
- package/esm2020/lib/api/components/table/action-item.mjs +2 -0
- package/esm2020/lib/api/components/table/kv-menuitem.mjs +3 -0
- package/esm2020/lib/api/components/table/table.config.column.mjs +2 -0
- package/esm2020/lib/api/components/table/table.config.mjs +2 -0
- package/esm2020/lib/api/components/table/table.paginate.mjs +9 -0
- package/esm2020/lib/api/helpers/component-providers.mjs +16 -0
- package/esm2020/lib/api/helpers/keevo-validators.mjs +64 -0
- package/esm2020/lib/api/helpers/translate-primeng.mjs +23 -0
- package/esm2020/lib/api/models/menu/menu.model.mjs +2 -0
- package/esm2020/lib/api/models/menu/menucompleto.model.mjs +2 -0
- package/esm2020/lib/api/models/menu/sistemamenu.model.mjs +2 -0
- package/esm2020/lib/api/modules/primeng.module.mjs +247 -0
- package/esm2020/lib/api/services/base.api.service.mjs +74 -0
- package/esm2020/lib/api/services/component.service.mjs +27 -0
- package/esm2020/lib/api/services/form.service.mjs +84 -0
- package/esm2020/lib/api/services/imagens.service.mjs +22 -0
- package/esm2020/lib/api/services/notification.service.mjs +67 -0
- package/esm2020/lib/api/services/object.service.mjs +26 -0
- package/esm2020/lib/buttons/button-personalize/button-personalize.component.mjs +17 -0
- package/esm2020/lib/buttons/button-popup/button-popup.component.mjs +31 -0
- package/esm2020/lib/buttons/button-secondary/button-secondary.component.mjs +17 -0
- package/esm2020/lib/buttons/button-success/button-success.component.mjs +17 -0
- package/esm2020/lib/buttons/kvbutton.module.mjs +39 -0
- package/esm2020/lib/chart/chart.component.mjs +145 -0
- package/esm2020/lib/chart/kvchart.module.mjs +32 -0
- package/esm2020/lib/directives/template.directive.mjs +24 -0
- package/esm2020/lib/inputs/check/check.component.mjs +26 -0
- package/esm2020/lib/inputs/dropdown/dropdown.component.mjs +37 -0
- package/esm2020/lib/inputs/editor/editor.component.mjs +70 -0
- package/esm2020/lib/inputs/input-calendar/input-calendar.component.mjs +89 -0
- package/esm2020/lib/inputs/input-mask/input-mask.component.mjs +23 -0
- package/esm2020/lib/inputs/input-number/input-number.component.mjs +59 -0
- package/esm2020/lib/inputs/input-password/input-password.component.mjs +33 -0
- package/esm2020/lib/inputs/input-text/input-text.component.mjs +21 -0
- package/esm2020/lib/inputs/input-text-checkbox/input-text-checkbox.component.mjs +38 -0
- package/esm2020/lib/inputs/input-textarea/input-textarea.component.mjs +43 -0
- package/esm2020/lib/inputs/input-time/input-time.component.mjs +24 -0
- package/esm2020/lib/inputs/kvinputs.module.mjs +108 -0
- package/esm2020/lib/inputs/multi-select/multi-select.component.mjs +38 -0
- package/esm2020/lib/inputs/radio-group/radio-group.component.mjs +53 -0
- package/esm2020/lib/inputs/switch/switch.component.mjs +32 -0
- package/esm2020/lib/keevo-components.module.mjs +105 -0
- package/esm2020/lib/label/label.component.mjs +15 -0
- package/esm2020/lib/label/label.module.mjs +24 -0
- package/esm2020/lib/loader/kvloader.module.mjs +28 -0
- package/esm2020/lib/loader/loader.component.mjs +17 -0
- package/esm2020/lib/loader/loader.service.mjs +29 -0
- package/esm2020/lib/login/kvlogin.module.mjs +47 -0
- package/esm2020/lib/login/login.component.mjs +52 -0
- package/esm2020/lib/menu/kvmenu.module.mjs +43 -0
- package/esm2020/lib/menu/menu.component.mjs +237 -0
- package/esm2020/lib/orgchart/orgchart.component.mjs +100 -0
- package/esm2020/lib/orgchart/orgchart.module.mjs +24 -0
- package/esm2020/lib/page-form/kv-page-form.module.mjs +38 -0
- package/esm2020/lib/page-form/page-form.component.mjs +144 -0
- package/esm2020/lib/picklist/kvpicklist.module.mjs +32 -0
- package/esm2020/lib/picklist/picklist.component.mjs +48 -0
- package/esm2020/lib/pipes/codigofile.pipe.mjs +19 -0
- package/esm2020/lib/pipes/cpfcnpj.pipe.mjs +25 -0
- package/esm2020/lib/pipes/pipes.module.mjs +34 -0
- package/esm2020/lib/pipes/telefone.pipe.mjs +45 -0
- package/esm2020/lib/table/kvtable.module.mjs +32 -0
- package/esm2020/lib/table/table.component.mjs +499 -0
- package/esm2020/lib/tree-table/kv-treetable.component.mjs +371 -0
- package/esm2020/lib/tree-table/kv-treetable.module.mjs +32 -0
- package/esm2020/lib/tree-view/kvtree-view.module.mjs +28 -0
- package/esm2020/lib/tree-view/tree-view.component.mjs +29 -0
- package/esm2020/lib/workspace/kvworkspace.module.mjs +47 -0
- package/esm2020/lib/workspace/workspace.component.mjs +77 -0
- package/esm2020/public-api.mjs +138 -0
- package/fesm2015/keevo-components.mjs +4705 -0
- package/fesm2015/keevo-components.mjs.map +1 -0
- package/fesm2020/keevo-components.mjs +4696 -0
- package/fesm2020/keevo-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/api/base-components/base-component-button.d.ts +14 -0
- package/lib/api/base-components/base-component-chart.d.ts +40 -0
- package/lib/api/base-components/base-component-crud-form.d.ts +137 -0
- package/lib/api/base-components/base-component-crud-list.d.ts +63 -0
- package/lib/api/base-components/base-component-crud.d.ts +36 -0
- package/lib/api/base-components/base-component-dropdown-new.d.ts +14 -0
- package/lib/api/base-components/base-component-dropdown.d.ts +42 -0
- package/lib/api/base-components/base-component-input.d.ts +31 -0
- package/lib/api/base-components/base-component-multi-select.d.ts +35 -0
- package/lib/api/base-components/base-component.d.ts +21 -0
- package/lib/api/components/chart/chart.config.d.ts +11 -0
- package/lib/api/components/chart/chart.model.d.ts +9 -0
- package/lib/api/components/chart/orchart.config.d.ts +35 -0
- package/lib/api/components/chart/orchart.item.d.ts +26 -0
- package/lib/api/components/dropdown/filtro.combo.d.ts +4 -0
- package/lib/api/components/error/error.component.d.ts +12 -0
- package/lib/api/components/error/kverror.module.d.ts +10 -0
- package/lib/api/components/table/action-item.d.ts +5 -0
- package/lib/api/components/table/kv-menuitem.d.ts +9 -0
- package/lib/api/components/table/table.config.column.d.ts +21 -0
- package/lib/api/components/table/table.config.d.ts +17 -0
- package/lib/api/components/table/table.paginate.d.ts +6 -0
- package/lib/api/helpers/component-providers.d.ts +2 -0
- package/lib/api/helpers/keevo-validators.d.ts +10 -0
- package/lib/api/helpers/translate-primeng.d.ts +4 -0
- package/lib/api/models/menu/menu.model.d.ts +10 -0
- package/{src/lib/api/models/menu/menucompleto.model.ts → lib/api/models/menu/menucompleto.model.d.ts} +3 -4
- package/lib/api/models/menu/sistemamenu.model.d.ts +8 -0
- package/lib/api/modules/primeng.module.d.ts +60 -0
- package/lib/api/services/base.api.service.d.ts +25 -0
- package/lib/api/services/component.service.d.ts +11 -0
- package/lib/api/services/form.service.d.ts +27 -0
- package/lib/api/services/imagens.service.d.ts +8 -0
- package/lib/api/services/notification.service.d.ts +25 -0
- package/lib/api/services/object.service.d.ts +8 -0
- package/lib/buttons/button-personalize/button-personalize.component.d.ts +7 -0
- package/lib/buttons/button-popup/button-popup.component.d.ts +13 -0
- package/lib/buttons/button-secondary/button-secondary.component.d.ts +7 -0
- package/lib/buttons/button-success/button-success.component.d.ts +7 -0
- package/lib/buttons/kvbutton.module.d.ts +11 -0
- package/lib/chart/chart.component.d.ts +56 -0
- package/lib/chart/kvchart.module.d.ts +10 -0
- package/lib/directives/template.directive.d.ts +11 -0
- package/lib/inputs/check/check.component.d.ts +11 -0
- package/lib/inputs/dropdown/dropdown.component.d.ts +14 -0
- package/lib/inputs/editor/editor.component.d.ts +39 -0
- package/lib/inputs/input-calendar/input-calendar.component.d.ts +27 -0
- package/lib/inputs/input-mask/input-mask.component.d.ts +10 -0
- package/lib/inputs/input-number/input-number.component.d.ts +19 -0
- package/lib/inputs/input-password/input-password.component.d.ts +13 -0
- package/lib/inputs/input-text/input-text.component.d.ts +9 -0
- package/lib/inputs/input-text-checkbox/input-text-checkbox.component.d.ts +15 -0
- package/lib/inputs/input-textarea/input-textarea.component.d.ts +16 -0
- package/lib/inputs/input-time/input-time.component.d.ts +10 -0
- package/lib/inputs/kvinputs.module.d.ts +25 -0
- package/lib/inputs/multi-select/multi-select.component.d.ts +12 -0
- package/lib/inputs/radio-group/radio-group.component.d.ts +18 -0
- package/lib/inputs/switch/switch.component.d.ts +13 -0
- package/lib/keevo-components.module.d.ts +19 -0
- package/lib/label/label.component.d.ts +7 -0
- package/lib/label/label.module.d.ts +8 -0
- package/lib/loader/kvloader.module.d.ts +9 -0
- package/lib/loader/loader.component.d.ts +8 -0
- package/lib/loader/loader.service.d.ts +10 -0
- package/lib/login/kvlogin.module.d.ts +13 -0
- package/lib/login/login.component.d.ts +30 -0
- package/lib/menu/kvmenu.module.d.ts +12 -0
- package/lib/menu/menu.component.d.ts +74 -0
- package/lib/orgchart/orgchart.component.d.ts +27 -0
- package/lib/orgchart/orgchart.module.d.ts +9 -0
- package/lib/page-form/kv-page-form.module.d.ts +11 -0
- package/lib/page-form/page-form.component.d.ts +69 -0
- package/lib/picklist/kvpicklist.module.d.ts +10 -0
- package/lib/picklist/picklist.component.d.ts +20 -0
- package/lib/pipes/codigofile.pipe.d.ts +7 -0
- package/lib/pipes/cpfcnpj.pipe.d.ts +7 -0
- package/lib/pipes/pipes.module.d.ts +10 -0
- package/lib/pipes/telefone.pipe.d.ts +7 -0
- package/lib/table/kvtable.module.d.ts +10 -0
- package/lib/table/table.component.d.ts +104 -0
- package/lib/tree-table/kv-treetable.component.d.ts +84 -0
- package/lib/tree-table/kv-treetable.module.d.ts +11 -0
- package/lib/tree-view/kvtree-view.module.d.ts +9 -0
- package/lib/tree-view/tree-view.component.d.ts +14 -0
- package/lib/workspace/kvworkspace.module.d.ts +13 -0
- package/lib/workspace/workspace.component.d.ts +28 -0
- package/package.json +22 -3
- package/{src/public-api.ts → public-api.d.ts} +14 -36
- package/ng-package.json +0 -7
- package/src/assets/.gitkeep +0 -0
- package/src/assets/images/LogoEvo.png +0 -0
- package/src/assets/images/LogoPequenaEvo.png +0 -0
- package/src/assets/images/background.png +0 -0
- package/src/assets/images/keepass-logo.png +0 -0
- package/src/assets/images/keepass-logo.svg +0 -74
- package/src/assets/images/keevo-logo.png +0 -0
- package/src/assets/images/logokeevo_2.png +0 -0
- package/src/index.ts +0 -1
- package/src/lib/api/base-components/base-component-button.ts +0 -27
- package/src/lib/api/base-components/base-component-chart.ts +0 -105
- package/src/lib/api/base-components/base-component-crud-form.ts +0 -328
- package/src/lib/api/base-components/base-component-crud-list.ts +0 -111
- package/src/lib/api/base-components/base-component-crud.ts +0 -70
- package/src/lib/api/base-components/base-component-dropdown-new.ts +0 -112
- package/src/lib/api/base-components/base-component-dropdown.ts +0 -164
- package/src/lib/api/base-components/base-component-input.ts +0 -107
- package/src/lib/api/base-components/base-component-multi-select.ts +0 -136
- package/src/lib/api/base-components/base-component.ts +0 -46
- package/src/lib/api/components/chart/chart.config.ts +0 -12
- package/src/lib/api/components/chart/chart.model.ts +0 -9
- package/src/lib/api/components/chart/orchart.config.ts +0 -41
- package/src/lib/api/components/chart/orchart.item.ts +0 -33
- package/src/lib/api/components/dropdown/filtro.combo.ts +0 -4
- package/src/lib/api/components/error/error.component.html +0 -3
- package/src/lib/api/components/error/error.component.scss +0 -5
- package/src/lib/api/components/error/error.component.ts +0 -22
- package/src/lib/api/components/error/kverror.module.ts +0 -23
- package/src/lib/api/components/table/action-item.ts +0 -5
- package/src/lib/api/components/table/kv-menuitem.ts +0 -10
- package/src/lib/api/components/table/table.config.column.ts +0 -21
- package/src/lib/api/components/table/table.config.ts +0 -20
- package/src/lib/api/components/table/table.paginate.ts +0 -6
- package/src/lib/api/helpers/component-providers.ts +0 -16
- package/src/lib/api/helpers/keevo-validators.ts +0 -77
- package/src/lib/api/helpers/translate-primeng.ts +0 -25
- package/src/lib/api/models/menu/menu.model.ts +0 -10
- package/src/lib/api/models/menu/sistemamenu.model.ts +0 -8
- package/src/lib/api/modules/primeng.module.ts +0 -125
- package/src/lib/api/services/base.api.service.ts +0 -115
- package/src/lib/api/services/component.service.ts +0 -22
- package/src/lib/api/services/form.service.ts +0 -105
- package/src/lib/api/services/imagens.service.ts +0 -20
- package/src/lib/api/services/notification.service.ts +0 -82
- package/src/lib/api/services/object.service.ts +0 -20
- package/src/lib/buttons/button-personalize/button-personalize.component.html +0 -11
- package/src/lib/buttons/button-personalize/button-personalize.component.scss +0 -3
- package/src/lib/buttons/button-personalize/button-personalize.component.ts +0 -13
- package/src/lib/buttons/button-popup/button-popup.component.html +0 -12
- package/src/lib/buttons/button-popup/button-popup.component.scss +0 -13
- package/src/lib/buttons/button-popup/button-popup.component.ts +0 -30
- package/src/lib/buttons/button-secondary/button-secondary.component.html +0 -12
- package/src/lib/buttons/button-secondary/button-secondary.component.scss +0 -14
- package/src/lib/buttons/button-secondary/button-secondary.component.ts +0 -13
- package/src/lib/buttons/button-success/button-success.component.html +0 -11
- package/src/lib/buttons/button-success/button-success.component.scss +0 -13
- package/src/lib/buttons/button-success/button-success.component.ts +0 -13
- package/src/lib/buttons/kvbutton.module.ts +0 -25
- package/src/lib/chart/chart.component.html +0 -38
- package/src/lib/chart/chart.component.scss +0 -0
- package/src/lib/chart/chart.component.spec.ts +0 -28
- package/src/lib/chart/chart.component.ts +0 -141
- package/src/lib/chart/kvchart.module.ts +0 -20
- package/src/lib/directives/template.directive.ts +0 -15
- package/src/lib/inputs/check/check.component.html +0 -11
- package/src/lib/inputs/check/check.component.scss +0 -13
- package/src/lib/inputs/check/check.component.ts +0 -24
- package/src/lib/inputs/dropdown/dropdown.component.html +0 -91
- package/src/lib/inputs/dropdown/dropdown.component.scss +0 -0
- package/src/lib/inputs/dropdown/dropdown.component.ts +0 -28
- package/src/lib/inputs/editor/editor.component.html +0 -90
- package/src/lib/inputs/editor/editor.component.scss +0 -4
- package/src/lib/inputs/editor/editor.component.ts +0 -80
- package/src/lib/inputs/input-calendar/input-calendar.component.html +0 -30
- package/src/lib/inputs/input-calendar/input-calendar.component.scss +0 -0
- package/src/lib/inputs/input-calendar/input-calendar.component.ts +0 -81
- package/src/lib/inputs/input-mask/input-mask.component.html +0 -20
- package/src/lib/inputs/input-mask/input-mask.component.scss +0 -0
- package/src/lib/inputs/input-mask/input-mask.component.ts +0 -20
- package/src/lib/inputs/input-number/input-number.component.html +0 -22
- package/src/lib/inputs/input-number/input-number.component.scss +0 -0
- package/src/lib/inputs/input-number/input-number.component.ts +0 -52
- package/src/lib/inputs/input-password/input-password.component.html +0 -23
- package/src/lib/inputs/input-password/input-password.component.scss +0 -0
- package/src/lib/inputs/input-password/input-password.component.ts +0 -23
- package/src/lib/inputs/input-text/input-text.component.html +0 -20
- package/src/lib/inputs/input-text/input-text.component.scss +0 -18
- package/src/lib/inputs/input-text/input-text.component.ts +0 -17
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.html +0 -32
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.scss +0 -0
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.spec.ts +0 -23
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.ts +0 -36
- package/src/lib/inputs/input-textarea/input-textarea.component.html +0 -22
- package/src/lib/inputs/input-textarea/input-textarea.component.scss +0 -0
- package/src/lib/inputs/input-textarea/input-textarea.component.ts +0 -33
- package/src/lib/inputs/input-time/input-time.component.html +0 -23
- package/src/lib/inputs/input-time/input-time.component.scss +0 -0
- package/src/lib/inputs/input-time/input-time.component.ts +0 -20
- package/src/lib/inputs/kvinputs.module.ts +0 -64
- package/src/lib/inputs/multi-select/multi-select.component.html +0 -28
- package/src/lib/inputs/multi-select/multi-select.component.scss +0 -8
- package/src/lib/inputs/multi-select/multi-select.component.ts +0 -31
- package/src/lib/inputs/radio-group/radio-group.component.html +0 -19
- package/src/lib/inputs/radio-group/radio-group.component.scss +0 -15
- package/src/lib/inputs/radio-group/radio-group.component.ts +0 -50
- package/src/lib/inputs/switch/switch.component.html +0 -12
- package/src/lib/inputs/switch/switch.component.scss +0 -3
- package/src/lib/inputs/switch/switch.component.ts +0 -30
- package/src/lib/keevo-components.module.ts +0 -50
- package/src/lib/label/label.component.html +0 -6
- package/src/lib/label/label.component.scss +0 -9
- package/src/lib/label/label.component.spec.ts +0 -23
- package/src/lib/label/label.component.ts +0 -13
- package/src/lib/label/label.module.ts +0 -18
- package/src/lib/loader/kvloader.module.ts +0 -17
- package/src/lib/loader/loader.component.html +0 -1
- package/src/lib/loader/loader.component.ts +0 -14
- package/src/lib/loader/loader.service.ts +0 -26
- package/src/lib/login/kvlogin.module.ts +0 -28
- package/src/lib/login/login.component.html +0 -108
- package/src/lib/login/login.component.scss +0 -48
- package/src/lib/login/login.component.spec.ts +0 -23
- package/src/lib/login/login.component.ts +0 -65
- package/src/lib/menu/kvmenu.module.ts +0 -27
- package/src/lib/menu/menu.component.html +0 -342
- package/src/lib/menu/menu.component.scss +0 -210
- package/src/lib/menu/menu.component.spec.ts +0 -23
- package/src/lib/menu/menu.component.ts +0 -246
- package/src/lib/orgchart/orgchart.component.html +0 -58
- package/src/lib/orgchart/orgchart.component.scss +0 -21
- package/src/lib/orgchart/orgchart.component.ts +0 -118
- package/src/lib/orgchart/orgchart.module.ts +0 -14
- package/src/lib/page-form/kv-page-form.module.ts +0 -22
- package/src/lib/page-form/page-form.component.html +0 -57
- package/src/lib/page-form/page-form.component.scss +0 -72
- package/src/lib/page-form/page-form.component.spec.ts +0 -28
- package/src/lib/page-form/page-form.component.ts +0 -121
- package/src/lib/picklist/kvpicklist.module.ts +0 -20
- package/src/lib/picklist/picklist.component.html +0 -17
- package/src/lib/picklist/picklist.component.scss +0 -0
- package/src/lib/picklist/picklist.component.spec.ts +0 -26
- package/src/lib/picklist/picklist.component.ts +0 -27
- package/src/lib/pipes/codigofile.pipe.ts +0 -15
- package/src/lib/pipes/cpfcnpj.pipe.ts +0 -21
- package/src/lib/pipes/pipes.module.ts +0 -22
- package/src/lib/pipes/telefone.pipe.ts +0 -38
- package/src/lib/styles-components.scss +0 -11
- package/src/lib/table/kvtable.module.ts +0 -22
- package/src/lib/table/table.component.html +0 -473
- package/src/lib/table/table.component.scss +0 -240
- package/src/lib/table/table.component.spec.ts +0 -28
- package/src/lib/table/table.component.ts +0 -546
- package/src/lib/tree-table/kv-treetable.component.html +0 -649
- package/src/lib/tree-table/kv-treetable.component.scss +0 -315
- package/src/lib/tree-table/kv-treetable.component.ts +0 -390
- package/src/lib/tree-table/kv-treetable.module.ts +0 -18
- package/src/lib/tree-view/kvtree-view.module.ts +0 -19
- package/src/lib/tree-view/tree-view.component.html +0 -9
- package/src/lib/tree-view/tree-view.component.scss +0 -0
- package/src/lib/tree-view/tree-view.component.spec.ts +0 -23
- package/src/lib/tree-view/tree-view.component.ts +0 -29
- package/src/lib/workspace/kvworkspace.module.ts +0 -29
- package/src/lib/workspace/workspace.component.html +0 -108
- package/src/lib/workspace/workspace.component.scss +0 -83
- package/src/lib/workspace/workspace.component.ts +0 -75
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./workspace.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../api/modules/primeng.module";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "primeng/progressspinner";
|
|
7
|
+
import * as i6 from "primeng/autocomplete";
|
|
8
|
+
import * as i7 from "../buttons/kvbutton.module";
|
|
9
|
+
export declare class KvWorkspaceModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvWorkspaceModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvWorkspaceModule, [typeof i1.WorkspaceComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.ReactiveFormsModule, typeof i5.ProgressSpinnerModule, typeof i6.AutoCompleteModule, typeof i4.FormsModule, typeof i7.KvButtonsModule], [typeof i1.WorkspaceComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KvWorkspaceModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class WorkspaceComponent implements OnInit {
|
|
4
|
+
nomeSistema: string;
|
|
5
|
+
nomeUsuario: string;
|
|
6
|
+
masters: any[];
|
|
7
|
+
somenteMaster: boolean;
|
|
8
|
+
onGetMasterSelecionada: EventEmitter<any>;
|
|
9
|
+
onGetEmpresaSelecionada: EventEmitter<any>;
|
|
10
|
+
empresas: any[];
|
|
11
|
+
masterSelecionada: any;
|
|
12
|
+
empresaSelecionada: any;
|
|
13
|
+
visivel: boolean;
|
|
14
|
+
txtPesquisa: string;
|
|
15
|
+
imgPersonagens: string;
|
|
16
|
+
imgLogoKeevo: string;
|
|
17
|
+
styleBackground: string;
|
|
18
|
+
constructor();
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
verificaMasterUnica(): void;
|
|
21
|
+
selecionarMaster(master: any): void;
|
|
22
|
+
verificaEmpresaUnica(): void;
|
|
23
|
+
selecionarEmpresa(empresa: any): void;
|
|
24
|
+
voltar(): void;
|
|
25
|
+
filtrarEmpresa(event: any): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceComponent, "kv-workspace", never, { "nomeSistema": "nomeSistema"; "nomeUsuario": "nomeUsuario"; "masters": "masters"; "somenteMaster": "somenteMaster"; }, { "onGetMasterSelecionada": "onGetMasterSelecionada"; "onGetEmpresaSelecionada": "onGetEmpresaSelecionada"; }, never, never, false, never>;
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keevo-components",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.192",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^15.2.0",
|
|
6
6
|
"@angular/core": "^15.2.0",
|
|
@@ -24,5 +24,24 @@
|
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
26
|
"keevo components library"
|
|
27
|
-
]
|
|
28
|
-
|
|
27
|
+
],
|
|
28
|
+
"module": "fesm2015/keevo-components.mjs",
|
|
29
|
+
"es2020": "fesm2020/keevo-components.mjs",
|
|
30
|
+
"esm2020": "esm2020/keevo-components.mjs",
|
|
31
|
+
"fesm2020": "fesm2020/keevo-components.mjs",
|
|
32
|
+
"fesm2015": "fesm2015/keevo-components.mjs",
|
|
33
|
+
"typings": "index.d.ts",
|
|
34
|
+
"exports": {
|
|
35
|
+
"./package.json": {
|
|
36
|
+
"default": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./index.d.ts",
|
|
40
|
+
"esm2020": "./esm2020/keevo-components.mjs",
|
|
41
|
+
"es2020": "./fesm2020/keevo-components.mjs",
|
|
42
|
+
"es2015": "./fesm2015/keevo-components.mjs",
|
|
43
|
+
"node": "./fesm2015/keevo-components.mjs",
|
|
44
|
+
"default": "./fesm2020/keevo-components.mjs"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of keevo-components
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
1
|
/**
|
|
6
2
|
* Classes base de componentes
|
|
7
3
|
*/
|
|
@@ -14,38 +10,33 @@ export * from './lib/api/base-components/base-component-crud-list';
|
|
|
14
10
|
export * from './lib/api/base-components/base-component-dropdown';
|
|
15
11
|
export * from './lib/api/base-components/base-component-input';
|
|
16
12
|
export * from './lib/api/base-components/base-component-multi-select';
|
|
17
|
-
export * from './lib/api/base-components/base-component-dropdown-new'
|
|
18
|
-
|
|
13
|
+
export * from './lib/api/base-components/base-component-dropdown-new';
|
|
19
14
|
/**
|
|
20
15
|
* Helpers
|
|
21
16
|
*/
|
|
22
17
|
export * from './lib/api/helpers/component-providers';
|
|
23
18
|
export * from './lib/api/helpers/translate-primeng';
|
|
24
|
-
export * from './lib/api/helpers/keevo-validators'
|
|
25
|
-
|
|
19
|
+
export * from './lib/api/helpers/keevo-validators';
|
|
26
20
|
/**
|
|
27
21
|
* Pipes
|
|
28
22
|
*/
|
|
29
|
-
export * from './lib/pipes/codigofile.pipe'
|
|
30
|
-
export * from './lib/pipes/cpfcnpj.pipe'
|
|
31
|
-
export * from './lib/pipes/telefone.pipe'
|
|
32
|
-
export * from './lib/pipes/pipes.module'
|
|
33
|
-
|
|
23
|
+
export * from './lib/pipes/codigofile.pipe';
|
|
24
|
+
export * from './lib/pipes/cpfcnpj.pipe';
|
|
25
|
+
export * from './lib/pipes/telefone.pipe';
|
|
26
|
+
export * from './lib/pipes/pipes.module';
|
|
34
27
|
/**
|
|
35
28
|
* Services
|
|
36
29
|
*/
|
|
37
|
-
export * from './lib/api/services/base.api.service'
|
|
30
|
+
export * from './lib/api/services/base.api.service';
|
|
38
31
|
export * from './lib/api/services/component.service';
|
|
39
|
-
export * from './lib/api/services/form.service'
|
|
32
|
+
export * from './lib/api/services/form.service';
|
|
40
33
|
export * from './lib/api/services/notification.service';
|
|
41
34
|
export * from './lib/api/services/object.service';
|
|
42
|
-
|
|
43
35
|
/**
|
|
44
36
|
* PrimeNG
|
|
45
37
|
*/
|
|
46
38
|
export * from './lib/api/modules/primeng.module';
|
|
47
39
|
export * from './lib/keevo-components.module';
|
|
48
|
-
|
|
49
40
|
/**
|
|
50
41
|
* Charts
|
|
51
42
|
*/
|
|
@@ -53,13 +44,11 @@ export * from './lib/api/components/chart/chart.config';
|
|
|
53
44
|
export * from './lib/api/components/chart/chart.model';
|
|
54
45
|
export * from './lib/chart/chart.component';
|
|
55
46
|
export * from './lib/chart/kvchart.module';
|
|
56
|
-
|
|
57
47
|
/**
|
|
58
48
|
* Error
|
|
59
49
|
*/
|
|
60
50
|
export * from './lib/api/components/error/error.component';
|
|
61
51
|
export * from './lib/api/components/error/kverror.module';
|
|
62
|
-
|
|
63
52
|
/**
|
|
64
53
|
* Buttons
|
|
65
54
|
*/
|
|
@@ -68,7 +57,6 @@ export * from './lib/buttons/button-secondary/button-secondary.component';
|
|
|
68
57
|
export * from './lib/buttons/button-success/button-success.component';
|
|
69
58
|
export * from './lib/buttons//button-popup/button-popup.component';
|
|
70
59
|
export * from './lib/buttons/kvbutton.module';
|
|
71
|
-
|
|
72
60
|
/**
|
|
73
61
|
* Inputs
|
|
74
62
|
*/
|
|
@@ -88,19 +76,16 @@ export * from './lib/inputs/radio-group/radio-group.component';
|
|
|
88
76
|
export * from './lib/inputs/switch/switch.component';
|
|
89
77
|
export * from './lib/inputs/editor/editor.component';
|
|
90
78
|
export * from './lib/api/components/dropdown/filtro.combo';
|
|
91
|
-
|
|
92
79
|
/**
|
|
93
80
|
* Orgchart
|
|
94
81
|
*/
|
|
95
|
-
export * from './lib/orgchart/orgchart.component'
|
|
96
|
-
export * from './lib/orgchart/orgchart.module'
|
|
97
|
-
|
|
82
|
+
export * from './lib/orgchart/orgchart.component';
|
|
83
|
+
export * from './lib/orgchart/orgchart.module';
|
|
98
84
|
/**
|
|
99
85
|
* Picklist
|
|
100
86
|
*/
|
|
101
87
|
export * from './lib/picklist/kvpicklist.module';
|
|
102
88
|
export * from './lib/picklist/picklist.component';
|
|
103
|
-
|
|
104
89
|
/**
|
|
105
90
|
* Table
|
|
106
91
|
*/
|
|
@@ -111,43 +96,36 @@ export * from './lib/api/components/table/kv-menuitem';
|
|
|
111
96
|
export * from './lib/api/components/table/table.config';
|
|
112
97
|
export * from './lib/api/components/table/table.config.column';
|
|
113
98
|
export * from './lib/api/components/table/table.paginate';
|
|
114
|
-
|
|
115
99
|
/**
|
|
116
100
|
* TreeTable
|
|
117
101
|
*/
|
|
118
|
-
export * from './lib/tree-table/kv-treetable.component'
|
|
119
|
-
export * from './lib/tree-table/kv-treetable.module'
|
|
120
|
-
|
|
102
|
+
export * from './lib/tree-table/kv-treetable.component';
|
|
103
|
+
export * from './lib/tree-table/kv-treetable.module';
|
|
121
104
|
/**
|
|
122
105
|
* Treeview
|
|
123
106
|
*/
|
|
124
107
|
export * from './lib/tree-view/kvtree-view.module';
|
|
125
108
|
export * from './lib/tree-view/tree-view.component';
|
|
126
|
-
|
|
127
109
|
/**
|
|
128
110
|
* Componente de menu + layout
|
|
129
111
|
*/
|
|
130
112
|
export * from './lib/menu/kvmenu.module';
|
|
131
113
|
export * from './lib/menu/menu.component';
|
|
132
|
-
|
|
133
114
|
/**
|
|
134
115
|
* Componente de login
|
|
135
116
|
*/
|
|
136
117
|
export * from './lib/login/kvlogin.module';
|
|
137
118
|
export * from './lib/login/login.component';
|
|
138
|
-
|
|
139
119
|
/**
|
|
140
120
|
* Componente de workspaces
|
|
141
121
|
*/
|
|
142
122
|
export * from './lib/workspace/kvworkspace.module';
|
|
143
123
|
export * from './lib/workspace/workspace.component';
|
|
144
|
-
|
|
145
124
|
/**
|
|
146
125
|
* Formulário base
|
|
147
126
|
*/
|
|
148
|
-
export * from './lib/page-form/page-form.component'
|
|
149
|
-
export * from './lib/page-form/kv-page-form.module'
|
|
150
|
-
|
|
127
|
+
export * from './lib/page-form/page-form.component';
|
|
128
|
+
export * from './lib/page-form/kv-page-form.module';
|
|
151
129
|
/**
|
|
152
130
|
* Loader
|
|
153
131
|
*/
|
package/ng-package.json
DELETED
package/src/assets/.gitkeep
DELETED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" standalone="no"?>
|
|
2
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
-
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
-
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
width="1073.000000pt" height="626.000000pt" viewBox="0 0 1073.000000 626.000000"
|
|
6
|
-
preserveAspectRatio="xMidYMid meet">
|
|
7
|
-
|
|
8
|
-
<g transform="translate(0.000000,626.000000) scale(0.100000,-0.100000)"
|
|
9
|
-
fill="#000000" stroke="none">
|
|
10
|
-
<path d="M1871 6249 c-514 -58 -965 -329 -1246 -749 -172 -257 -267 -541 -290
|
|
11
|
-
-862 l-7 -98 -115 0 c-126 0 -157 -10 -187 -60 -15 -26 -16 -182 -16 -1865 0
|
|
12
|
-
-1683 1 -1839 16 -1865 37 -62 17 -60 633 -60 l561 0 2 1658 3 1657 21 45 c26
|
|
13
|
-
54 84 114 139 142 56 29 149 35 213 14 68 -23 143 -91 173 -158 l24 -53 5
|
|
14
|
-
-1266 5 -1266 991 876 c603 534 1008 884 1033 895 l41 19 -1 586 c0 427 -3
|
|
15
|
-
595 -12 621 -7 19 -27 44 -46 57 l-34 23 -1558 0 c-857 0 -1560 3 -1562 8 -10
|
|
16
|
-
19 16 232 42 333 134 527 562 932 1088 1028 154 28 244 33 374 21 472 -43 884
|
|
17
|
-
-312 1111 -725 53 -98 89 -125 163 -125 85 0 153 59 162 141 11 93 -148 341
|
|
18
|
-
-342 534 -263 262 -563 417 -929 480 -113 19 -346 27 -455 14z m1571 -2025
|
|
19
|
-
c51 -17 109 -67 134 -116 25 -49 30 -131 9 -184 -38 -99 -115 -153 -218 -154
|
|
20
|
-
-136 0 -236 97 -237 230 0 166 155 278 312 224z"/>
|
|
21
|
-
<path d="M5188 3641 l-33 -29 -3 -1070 -2 -1069 23 -34 c30 -45 83 -60 133
|
|
22
|
-
-36 60 29 64 52 64 344 l0 258 84 73 c47 41 88 73 93 72 4 -1 226 -167 493
|
|
23
|
-
-369 267 -202 495 -373 507 -379 47 -25 112 -3 138 48 20 38 19 69 -3 103 -9
|
|
24
|
-
15 -229 188 -488 385 -258 196 -471 361 -473 365 -1 5 179 169 401 365 221
|
|
25
|
-
197 409 370 416 385 18 38 8 88 -25 121 -20 21 -35 26 -73 26 l-47 0 -509
|
|
26
|
-
-450 -509 -450 -5 647 c-4 495 -8 653 -18 670 -34 60 -111 71 -164 24z"/>
|
|
27
|
-
<path d="M7593 3204 c-208 -45 -406 -173 -532 -343 -63 -85 -133 -231 -157
|
|
28
|
-
-331 -28 -112 -27 -346 3 -455 133 -488 619 -777 1101 -654 85 21 217 81 288
|
|
29
|
-
130 70 48 180 155 194 189 29 71 -24 150 -101 150 -35 0 -48 -8 -121 -76 -95
|
|
30
|
-
-87 -178 -136 -286 -171 -276 -88 -584 19 -758 263 -54 75 -101 183 -110 248
|
|
31
|
-
l-7 46 758 0 757 0 35 35 36 36 -6 97 c-25 397 -300 730 -681 827 -81 21 -121
|
|
32
|
-
25 -225 24 -69 -1 -154 -7 -188 -15z m352 -220 c33 -8 98 -33 145 -56 69 -33
|
|
33
|
-
102 -58 176 -132 76 -76 98 -105 132 -176 39 -83 71 -185 60 -195 -2 -3 -309
|
|
34
|
-
-4 -680 -3 l-675 3 14 55 c35 141 139 297 252 383 169 127 371 169 576 121z"/>
|
|
35
|
-
<path d="M9696 3199 c-87 -12 -233 -60 -313 -105 -215 -120 -385 -345 -444
|
|
36
|
-
-589 -31 -125 -31 -305 -1 -429 84 -342 354 -608 693 -682 97 -21 281 -21 378
|
|
37
|
-
0 186 41 370 149 484 284 30 36 37 52 37 87 0 74 -63 123 -133 104 -15 -4 -64
|
|
38
|
-
-42 -108 -83 -135 -127 -290 -190 -469 -190 -116 0 -196 20 -310 76 -69 33
|
|
39
|
-
-102 58 -170 127 -105 105 -166 215 -195 349 l-7 32 754 0 c729 0 754 1 785
|
|
40
|
-
20 45 27 55 72 43 185 -14 117 -34 191 -81 293 -130 283 -403 484 -709 522
|
|
41
|
-
-96 11 -136 11 -234 -1z m294 -234 c30 -8 93 -33 140 -56 109 -54 236 -177
|
|
42
|
-
292 -284 31 -61 78 -190 78 -216 0 -5 -287 -9 -680 -9 -374 0 -680 3 -680 6 0
|
|
43
|
-
31 40 144 73 209 57 111 181 235 292 292 73 38 153 64 230 77 50 7 196 -3 255
|
|
44
|
-
-19z"/>
|
|
45
|
-
<path d="M3205 1930 c-363 -321 -661 -584 -663 -586 -2 -1 189 -149 425 -328
|
|
46
|
-
l428 -325 197 -1 197 0 34 33 c26 24 37 44 41 77 4 25 6 420 4 879 l-3 834
|
|
47
|
-
-660 -583z"/>
|
|
48
|
-
<path d="M8015 987 c-123 -41 -210 -142 -234 -272 -14 -77 -15 -659 -1 -686
|
|
49
|
-
12 -22 68 -27 88 -7 8 8 12 67 12 201 l0 189 37 -32 c66 -58 127 -80 224 -80
|
|
50
|
-
76 0 93 4 147 30 137 69 207 215 181 378 -18 115 -86 210 -185 258 -66 32
|
|
51
|
-
-203 43 -269 21z m210 -106 c23 -10 59 -39 82 -64 150 -172 13 -450 -209 -424
|
|
52
|
-
-123 15 -205 104 -216 234 -8 107 51 212 143 254 53 24 147 24 200 0z"/>
|
|
53
|
-
<path d="M8873 986 c-96 -31 -189 -120 -220 -209 -28 -82 -24 -207 9 -279 33
|
|
54
|
-
-72 93 -137 155 -168 42 -22 61 -25 153 -25 116 0 154 13 219 74 18 17 35 31
|
|
55
|
-
37 31 2 0 4 -20 4 -45 0 -39 4 -47 25 -57 19 -8 31 -8 51 0 l25 12 -3 218 c-3
|
|
56
|
-
201 -5 220 -26 263 -34 70 -84 122 -153 159 -53 28 -74 33 -148 36 -55 3 -101
|
|
57
|
-
-1 -128 -10z m205 -102 c187 -78 202 -357 25 -461 -41 -24 -59 -28 -118 -28
|
|
58
|
-
-146 1 -244 102 -245 253 0 104 46 183 133 227 60 30 147 34 205 9z"/>
|
|
59
|
-
<path d="M9673 991 c-120 -31 -190 -139 -152 -238 25 -66 99 -112 222 -137
|
|
60
|
-
139 -29 197 -65 197 -123 0 -52 -84 -103 -171 -103 -56 0 -136 28 -173 60 -53
|
|
61
|
-
47 -106 37 -106 -20 0 -33 40 -72 105 -101 70 -32 235 -39 302 -14 90 35 143
|
|
62
|
-
103 143 186 0 92 -61 152 -188 184 -210 53 -232 66 -232 131 0 54 57 88 146
|
|
63
|
-
87 63 0 106 -17 157 -59 46 -38 97 -30 97 16 0 70 -106 132 -234 136 -45 2
|
|
64
|
-
-95 -1 -113 -5z"/>
|
|
65
|
-
<path d="M10342 986 c-54 -18 -108 -58 -127 -96 -22 -43 -19 -126 6 -166 35
|
|
66
|
-
-56 97 -86 252 -119 140 -30 189 -106 113 -173 -73 -64 -217 -52 -309 24 -33
|
|
67
|
-
28 -69 31 -91 8 -47 -47 15 -113 138 -149 84 -25 225 -18 289 14 111 54 147
|
|
68
|
-
185 76 275 -31 39 -108 74 -209 96 -100 21 -142 40 -164 72 -38 53 -1 109 85
|
|
69
|
-
127 69 15 138 -1 190 -45 57 -47 119 -44 119 7 0 28 -49 78 -104 106 -63 32
|
|
70
|
-
-195 41 -264 19z"/>
|
|
71
|
-
<path d="M1952 821 l-144 -126 156 -3 c86 -1 226 -1 312 0 l157 3 -159 121
|
|
72
|
-
c-87 66 -163 123 -169 126 -5 3 -75 -51 -153 -121z"/>
|
|
73
|
-
</g>
|
|
74
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './public-api';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
EventEmitter,
|
|
4
|
-
Input,
|
|
5
|
-
Output
|
|
6
|
-
} from '@angular/core';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
template: '',
|
|
10
|
-
})
|
|
11
|
-
export class BaseComponentButton {
|
|
12
|
-
|
|
13
|
-
@Input() icon: string = '';
|
|
14
|
-
@Input() label: string = '';
|
|
15
|
-
@Input() loading: boolean = false;
|
|
16
|
-
@Input() disabled: boolean = false;
|
|
17
|
-
@Input() color: string = 'bg-blue-100';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
@Output() onClick: EventEmitter<any> = new EventEmitter();
|
|
21
|
-
|
|
22
|
-
constructor() { }
|
|
23
|
-
|
|
24
|
-
click(event: any): void {
|
|
25
|
-
this.onClick.emit();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, OnInit, Output, ViewChild } from "@angular/core";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
|
|
4
|
-
import { chartModel } from "../components/chart/chart.model";
|
|
5
|
-
import { ChartConfig, ChartDatasetConfig } from "../components/chart/chart.config";
|
|
6
|
-
import { ChartComponent, PeriodosChart } from "../../chart/chart.component";
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
template: ''
|
|
10
|
-
})
|
|
11
|
-
export abstract class BaseChartComponent implements OnInit {
|
|
12
|
-
|
|
13
|
-
chartConfig!: ChartConfig;
|
|
14
|
-
selectedData: number = 0;
|
|
15
|
-
enablePeriodos: number[] = [];
|
|
16
|
-
periodos = PeriodosChart;
|
|
17
|
-
|
|
18
|
-
@ViewChild(ChartComponent) chartComponent?: ChartComponent;
|
|
19
|
-
|
|
20
|
-
@Output() onPrintReport: EventEmitter<any> = new EventEmitter();
|
|
21
|
-
|
|
22
|
-
constructor() { }
|
|
23
|
-
|
|
24
|
-
protected changeData(event: any) {
|
|
25
|
-
if (event) {
|
|
26
|
-
this.selectedData = event?.value;
|
|
27
|
-
this.loadData();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
ngOnInit(): void {
|
|
32
|
-
this.loadData()
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
abstract loadData(): void;
|
|
36
|
-
|
|
37
|
-
protected loadGraphic(obs: Observable<any>) {
|
|
38
|
-
obs
|
|
39
|
-
.subscribe({
|
|
40
|
-
next: (data: any) => {
|
|
41
|
-
this.chartConfig = this.assembleGraphic(data as chartModel[]);
|
|
42
|
-
this.chartComponent?.reInit(this.chartConfig);
|
|
43
|
-
},
|
|
44
|
-
error: (error: any) => { },
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
protected assembleGraphic(data: chartModel[]) {
|
|
49
|
-
let labels: string[] = [];
|
|
50
|
-
let datasets: ChartDatasetConfig[] = [];
|
|
51
|
-
|
|
52
|
-
// Tratando legendas
|
|
53
|
-
data.map((element: any) => {
|
|
54
|
-
if (element.labels && !labels.includes(element.labels)) {
|
|
55
|
-
labels.push(element.labels);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
//Descobrindo quantas dimensões tem o gráfico
|
|
60
|
-
let numDatasets = Math.max(...data.map(o => o.numDatasets));
|
|
61
|
-
|
|
62
|
-
//Populando datasets
|
|
63
|
-
for (let i = 0; i <= numDatasets; i++) {
|
|
64
|
-
let backgroundColor: string[] = [];
|
|
65
|
-
let hoverBackgroundColor: string[] = [];
|
|
66
|
-
let borderColor: string[] = [];
|
|
67
|
-
let values: number[] = [];
|
|
68
|
-
let labelDataset: string = '';
|
|
69
|
-
|
|
70
|
-
data.filter((obj) => {
|
|
71
|
-
return obj.numDatasets === i;
|
|
72
|
-
}).map((obj) => {
|
|
73
|
-
if (obj.backgroundColor && !backgroundColor.includes(obj.backgroundColor)) {
|
|
74
|
-
backgroundColor.push(obj.backgroundColor);
|
|
75
|
-
}
|
|
76
|
-
if (obj.borderColor && !borderColor.includes(obj.borderColor)) {
|
|
77
|
-
borderColor.push(obj.borderColor);
|
|
78
|
-
}
|
|
79
|
-
if (obj.hoverBackgroundColor && !hoverBackgroundColor.includes(obj.hoverBackgroundColor)) {
|
|
80
|
-
hoverBackgroundColor.push(obj.hoverBackgroundColor);
|
|
81
|
-
}
|
|
82
|
-
if (obj.labelDataset) labelDataset = obj.labelDataset;
|
|
83
|
-
|
|
84
|
-
values.push(obj.datasets);
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
datasets.push(
|
|
88
|
-
{
|
|
89
|
-
label: labelDataset,
|
|
90
|
-
backgroundColor: backgroundColor,
|
|
91
|
-
hoverBackgroundColor: hoverBackgroundColor,
|
|
92
|
-
borderColor: borderColor?.length === 0 ? undefined : borderColor,
|
|
93
|
-
data: values
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
let dados: ChartConfig = {
|
|
99
|
-
labels: labels,
|
|
100
|
-
datasets: datasets
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
return dados;
|
|
104
|
-
}
|
|
105
|
-
}
|