keevo-components 1.5.191 → 1.5.193
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/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 +500 -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 +4706 -0
- package/fesm2015/keevo-components.mjs.map +1 -0
- package/fesm2020/keevo-components.mjs +4697 -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} +6 -7
- 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 +105 -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} +134 -156
- 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
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
<span>
|
|
2
|
-
<kv-label
|
|
3
|
-
[componentId]="componentId"
|
|
4
|
-
[label]="label"
|
|
5
|
-
/>
|
|
6
|
-
<p-dropdown
|
|
7
|
-
appendTo="body"
|
|
8
|
-
[class]="baseInputClass"
|
|
9
|
-
[disabled]="disabled"
|
|
10
|
-
[filter]="filter"
|
|
11
|
-
[inputId]="componentId"
|
|
12
|
-
[(ngModel)]="value"
|
|
13
|
-
[options]="filteredOptions"
|
|
14
|
-
[optionLabel]="optionLabel"
|
|
15
|
-
[optionValue]="optionValue"
|
|
16
|
-
[optionDisabled]="optionDisabled"
|
|
17
|
-
[group]="group"
|
|
18
|
-
[optionGroupLabel]="optionGroupLabel"
|
|
19
|
-
[optionGroupChildren]="optionGroupChildren"
|
|
20
|
-
[showClear]="showClear"
|
|
21
|
-
[lazy]="lazy"
|
|
22
|
-
scrollHeight="250px"
|
|
23
|
-
(onBlur)="onInputBlur($event)"
|
|
24
|
-
(onClick)="onInputClick($event)"
|
|
25
|
-
(onChange)="onInputChange($event)"
|
|
26
|
-
(onFilter)="onInputFilter($event)"
|
|
27
|
-
[style]="{'width':widthField}"
|
|
28
|
-
[panelStyle]="{ width: widthField, overflow: 'auto' }"
|
|
29
|
-
styleClass="inputs"
|
|
30
|
-
>
|
|
31
|
-
|
|
32
|
-
<ng-template
|
|
33
|
-
*ngIf="showAddButton"
|
|
34
|
-
pTemplate="footer"
|
|
35
|
-
>
|
|
36
|
-
<p-divider></p-divider>
|
|
37
|
-
<div class="flex flex-wrap card-container p-1">
|
|
38
|
-
<div class="flex justify-content-center">
|
|
39
|
-
<button
|
|
40
|
-
pButton
|
|
41
|
-
label="Incluir"
|
|
42
|
-
pTooltip="Clique aqui para incluir um novo registro"
|
|
43
|
-
tooltipPosition="bottom"
|
|
44
|
-
icon="pi pi-plus"
|
|
45
|
-
class="p-button-rounded p-button-success mr-2"
|
|
46
|
-
(click)="addClick($event)"
|
|
47
|
-
></button>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</ng-template>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<!-- :: -->
|
|
56
|
-
|
|
57
|
-
<ng-template
|
|
58
|
-
let-selectedItem
|
|
59
|
-
pTemplate="item"
|
|
60
|
-
*ngIf="itemTemplate"
|
|
61
|
-
>
|
|
62
|
-
<ng-container
|
|
63
|
-
[ngTemplateOutlet]="itemTemplate"
|
|
64
|
-
[ngTemplateOutletContext]="{ $implicit: selectedItem }"
|
|
65
|
-
>
|
|
66
|
-
|
|
67
|
-
</ng-container>
|
|
68
|
-
</ng-template>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<ng-template
|
|
72
|
-
let-item
|
|
73
|
-
pTemplate="selectedItem"
|
|
74
|
-
*ngIf="selectedItemTemplate"
|
|
75
|
-
>
|
|
76
|
-
<ng-container
|
|
77
|
-
[ngTemplateOutlet]="selectedItemTemplate"
|
|
78
|
-
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
79
|
-
>
|
|
80
|
-
|
|
81
|
-
</ng-container>
|
|
82
|
-
</ng-template>
|
|
83
|
-
|
|
84
|
-
<!-- :: -->
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</p-dropdown>
|
|
88
|
-
|
|
89
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
90
|
-
</span>
|
|
91
|
-
<ng-content></ng-content>
|
|
File without changes
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { DialogService } from 'primeng/dynamicdialog';
|
|
3
|
-
import { ComponentService } from '../../api/services/component.service';
|
|
4
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
5
|
-
import { BaseComponentDropDown } from '../../api/base-components/base-component-dropdown';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'kv-dropdown',
|
|
9
|
-
templateUrl: './dropdown.component.html',
|
|
10
|
-
styleUrls: ['./dropdown.component.scss', '../../styles-components.scss'],
|
|
11
|
-
providers: ComponentProviders(DropdownComponent),
|
|
12
|
-
})
|
|
13
|
-
export class DropdownComponent extends BaseComponentDropDown implements OnInit{
|
|
14
|
-
constructor(
|
|
15
|
-
componentService: ComponentService,
|
|
16
|
-
dialogService: DialogService) {
|
|
17
|
-
super(componentService, dialogService);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Input() dropDowValue!: any;
|
|
21
|
-
@Input() itemTemplate!: TemplateRef<any>;
|
|
22
|
-
@Input() selectedItemTemplate!: TemplateRef<any>;
|
|
23
|
-
|
|
24
|
-
override ngOnInit(): void {
|
|
25
|
-
if (this.dropDowValue)
|
|
26
|
-
this.value = this.dropDowValue;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<p-editor
|
|
3
|
-
[(ngModel)]="value"
|
|
4
|
-
[style]="{ height: canvaHeigth }"
|
|
5
|
-
[readonly]="readonly"
|
|
6
|
-
[placeholder]="placeholder"
|
|
7
|
-
(onTextChange)="textChange($event)"
|
|
8
|
-
(onSelectionChange)="selectionChange($event)"
|
|
9
|
-
[modules]="modules"
|
|
10
|
-
>
|
|
11
|
-
|
|
12
|
-
<ng-template pTemplate="header" >
|
|
13
|
-
<ng-container
|
|
14
|
-
[ngTemplateOutlet]="tollbartemplate"
|
|
15
|
-
*ngIf="tollbartemplate"
|
|
16
|
-
>
|
|
17
|
-
</ng-container>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<div id="toolbar-container" *ngIf="!tollbartemplate">
|
|
21
|
-
<span class="ql-formats">
|
|
22
|
-
<select class="ql-font">
|
|
23
|
-
<option selected>Sans Serif</option>
|
|
24
|
-
<option value="roboto">Roboto</option>
|
|
25
|
-
<option value="monospace">Monospace</option>
|
|
26
|
-
<option value="serif">Serif</option>
|
|
27
|
-
|
|
28
|
-
</select>
|
|
29
|
-
|
|
30
|
-
<select class="ql-header">
|
|
31
|
-
<option value="1">Titulo</option>
|
|
32
|
-
<option value="2">Subtitulo</option>
|
|
33
|
-
<option selected>Normal</option>
|
|
34
|
-
</select>
|
|
35
|
-
|
|
36
|
-
<select class="ql-size">
|
|
37
|
-
<option value="small">12px</option>
|
|
38
|
-
<option value="normal">16px</option>
|
|
39
|
-
<option value="large">24px</option>
|
|
40
|
-
<option value="huge">40px</option>
|
|
41
|
-
</select>
|
|
42
|
-
</span>
|
|
43
|
-
<span class="ql-formats">
|
|
44
|
-
<button class="ql-bold"></button>
|
|
45
|
-
<button class="ql-italic"></button>
|
|
46
|
-
<button class="ql-underline"></button>
|
|
47
|
-
<button class="ql-strike"></button>
|
|
48
|
-
</span>
|
|
49
|
-
<span class="ql-formats">
|
|
50
|
-
<select class="ql-color"></select>
|
|
51
|
-
<select class="ql-background"></select>
|
|
52
|
-
</span>
|
|
53
|
-
<span class="ql-formats">
|
|
54
|
-
<button class="ql-script" value="sub"></button>
|
|
55
|
-
<button class="ql-script" value="super"></button>
|
|
56
|
-
</span>
|
|
57
|
-
<span class="ql-formats">
|
|
58
|
-
<button class="ql-header" value="1"></button>
|
|
59
|
-
<button class="ql-header" value="2"></button>
|
|
60
|
-
<button class="ql-blockquote"></button>
|
|
61
|
-
<button class="ql-code-block"></button>
|
|
62
|
-
</span>
|
|
63
|
-
<span class="ql-formats">
|
|
64
|
-
<button class="ql-list" value="ordered"></button>
|
|
65
|
-
<button class="ql-list" value="bullet"></button>
|
|
66
|
-
<button class="ql-indent" value="-1"></button>
|
|
67
|
-
<button class="ql-indent" value="+1"></button>
|
|
68
|
-
</span>
|
|
69
|
-
<span class="ql-formats">
|
|
70
|
-
<button class="ql-direction" value="rtl"></button>
|
|
71
|
-
<select class="ql-align"></select>
|
|
72
|
-
</span>
|
|
73
|
-
<span class="ql-formats">
|
|
74
|
-
<button class="ql-link"></button>
|
|
75
|
-
<button class="ql-image"></button>
|
|
76
|
-
<button class="ql-video"></button>
|
|
77
|
-
</span>
|
|
78
|
-
<span class="ql-formats">
|
|
79
|
-
<button class="ql-clean"></button>
|
|
80
|
-
</span>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</ng-template>
|
|
86
|
-
|
|
87
|
-
</p-editor>
|
|
88
|
-
|
|
89
|
-
<link href="https://unpkg.com/quill@1.3.7/dist/quill.snow.css" rel="stylesheet" />
|
|
90
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterViewInit,
|
|
3
|
-
Component,
|
|
4
|
-
ElementRef,
|
|
5
|
-
EventEmitter,
|
|
6
|
-
Inject,
|
|
7
|
-
Input,
|
|
8
|
-
OnInit,
|
|
9
|
-
Output,
|
|
10
|
-
PLATFORM_ID,
|
|
11
|
-
TemplateRef,
|
|
12
|
-
} from '@angular/core';
|
|
13
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
14
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
15
|
-
import { ComponentService } from '../../api/services/component.service';
|
|
16
|
-
|
|
17
|
-
import Quill from "quill"
|
|
18
|
-
|
|
19
|
-
@Component({
|
|
20
|
-
selector: 'kv-editor',
|
|
21
|
-
templateUrl: './editor.component.html',
|
|
22
|
-
styleUrls: ['./editor.component.scss'],
|
|
23
|
-
providers: [ComponentProviders(EditorComponent)],
|
|
24
|
-
})
|
|
25
|
-
export class EditorComponent extends BaseComponentInput<string>{
|
|
26
|
-
constructor(componentService: ComponentService) {
|
|
27
|
-
super(componentService);
|
|
28
|
-
const Font = Quill.import('formats/font');
|
|
29
|
-
Font.whitelist = ['roboto', 'serif', 'monospace'];
|
|
30
|
-
|
|
31
|
-
const ColorClass = Quill.import('attributors/class/color');
|
|
32
|
-
const SizeStyle = Quill.import('attributors/style/size');
|
|
33
|
-
|
|
34
|
-
Quill.register(Font, true);
|
|
35
|
-
Quill.register(ColorClass, true);
|
|
36
|
-
Quill.register(SizeStyle, true);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @type {boolean}
|
|
40
|
-
* @description
|
|
41
|
-
* Esse item define se o editor e somente para leitura
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
@Input() readonly: boolean = false;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @type {boolean}
|
|
48
|
-
* @description
|
|
49
|
-
* Esse item define o tamanho do canva
|
|
50
|
-
*/
|
|
51
|
-
@Input() canvaHeigth: string = '380px';
|
|
52
|
-
|
|
53
|
-
@Input() debug: boolean = false;
|
|
54
|
-
@Input() modules!: object;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @type {TemplateRef}
|
|
58
|
-
* @description
|
|
59
|
-
* Esse item e opcional, mas caso precise de definir um template personalizado com base em clases css do quill poderar passar sua toolbar por aqui
|
|
60
|
-
*/
|
|
61
|
-
@Input() tollbartemplate!: TemplateRef<any>;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @description Executado a cada iteração
|
|
65
|
-
*/
|
|
66
|
-
@Output() onTextChange: EventEmitter<any> = new EventEmitter();
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @description Executado a cada seleção
|
|
70
|
-
*/
|
|
71
|
-
@Output() onSelectionChange: EventEmitter<any> = new EventEmitter();
|
|
72
|
-
|
|
73
|
-
textChange($event: any) {
|
|
74
|
-
this.onTextChange.emit($event);
|
|
75
|
-
}
|
|
76
|
-
selectionChange($event: any) {
|
|
77
|
-
this.onSelectionChange.emit($event);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<span>
|
|
2
|
-
<kv-label
|
|
3
|
-
[componentId]="componentId"
|
|
4
|
-
[label]="label"
|
|
5
|
-
/>
|
|
6
|
-
<p-calendar
|
|
7
|
-
#dateFilter
|
|
8
|
-
appendTo="body"
|
|
9
|
-
[class]="baseInputClass"
|
|
10
|
-
[id]="componentId"
|
|
11
|
-
[(ngModel)]="value"
|
|
12
|
-
[disabled]="disabled"
|
|
13
|
-
[minDate]="minDate"
|
|
14
|
-
[maxDate]="maxDate"
|
|
15
|
-
[selectionMode]="selectionMode"
|
|
16
|
-
[showButtonBar]="showButtonBar"
|
|
17
|
-
[showIcon]="showIcon"
|
|
18
|
-
[showTime]="showTime"
|
|
19
|
-
[view]="typeView"
|
|
20
|
-
[dateFormat]="dateFormat"
|
|
21
|
-
(onBlur)="onInputBlur($event)"
|
|
22
|
-
(onClose)="onInputClose($event)"
|
|
23
|
-
(onSelect)="onInputChange($event)"
|
|
24
|
-
styleClass="inputs"
|
|
25
|
-
>
|
|
26
|
-
</p-calendar>
|
|
27
|
-
|
|
28
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
29
|
-
</span>
|
|
30
|
-
<ng-content></ng-content>
|
|
File without changes
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
|
2
|
-
import { CalendarTypeView } from 'primeng/calendar';
|
|
3
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
4
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
5
|
-
import { ComponentService } from '../../api/services/component.service';
|
|
6
|
-
import { FormControl } from '@angular/forms';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'kv-input-calendar',
|
|
10
|
-
templateUrl: './input-calendar.component.html',
|
|
11
|
-
styleUrls: [
|
|
12
|
-
'./input-calendar.component.scss',
|
|
13
|
-
'../../styles-components.scss',
|
|
14
|
-
],
|
|
15
|
-
providers: ComponentProviders(InputCalendarComponent),
|
|
16
|
-
})
|
|
17
|
-
export class InputCalendarComponent
|
|
18
|
-
extends BaseComponentInput<Date>
|
|
19
|
-
implements OnInit
|
|
20
|
-
{
|
|
21
|
-
@Input() isYear: boolean = false;
|
|
22
|
-
@Input() isMonthYear: boolean = false;
|
|
23
|
-
@Input() minDate!: Date;
|
|
24
|
-
@Input() maxDate!: Date;
|
|
25
|
-
@Input() showButtonBar: boolean = false;
|
|
26
|
-
@Input() showIcon: boolean = true;
|
|
27
|
-
@Input() showTime: boolean = false;
|
|
28
|
-
@Input() selectionMode: 'single' | 'multiple' | 'range' = 'single';
|
|
29
|
-
@Output() onSelectionChange: EventEmitter<any> = new EventEmitter();
|
|
30
|
-
@Output() onSelectionValue: EventEmitter<any> = new EventEmitter();
|
|
31
|
-
@ViewChild('dateFilter') private dateFilter: any;
|
|
32
|
-
|
|
33
|
-
typeView: CalendarTypeView = 'date';
|
|
34
|
-
dateFormat: string = 'dd/mm/yy';
|
|
35
|
-
|
|
36
|
-
constructor(componentService: ComponentService) {
|
|
37
|
-
super(componentService);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
override writeValue(value: Date): void {
|
|
41
|
-
this.value = value;
|
|
42
|
-
|
|
43
|
-
if (value && typeof value === 'string') {
|
|
44
|
-
this.value = new Date(value);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
override ngOnInit(): void {
|
|
49
|
-
super.ngOnInit();
|
|
50
|
-
|
|
51
|
-
if (this.isYear) {
|
|
52
|
-
this.typeView = 'year';
|
|
53
|
-
this.dateFormat = 'yy';
|
|
54
|
-
} else if (this.isMonthYear) {
|
|
55
|
-
this.typeView = 'month';
|
|
56
|
-
this.dateFormat = 'mm/yy';
|
|
57
|
-
} else {
|
|
58
|
-
this.typeView = 'date';
|
|
59
|
-
this.dateFormat = 'dd/mm/yy';
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
protected onInputChange(event: any) {
|
|
64
|
-
this.hideOnRangeMode();
|
|
65
|
-
this.onSelectionValue.emit(event);
|
|
66
|
-
|
|
67
|
-
if (this.formControl) {
|
|
68
|
-
this.onSelectionChange.emit(this.formControl.value);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
hideOnRangeMode() {
|
|
75
|
-
if (this.selectionMode == 'range') {
|
|
76
|
-
if(this.dateFilter.value[1]){
|
|
77
|
-
this.dateFilter.hideOverlay();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<span>
|
|
2
|
-
<kv-label
|
|
3
|
-
[componentId]="componentId"
|
|
4
|
-
[label]="label"
|
|
5
|
-
/>
|
|
6
|
-
<p-inputMask
|
|
7
|
-
[class]="baseInputClass"
|
|
8
|
-
styleClass="inputs"
|
|
9
|
-
[inputId]="componentId"
|
|
10
|
-
[disabled]="disabled"
|
|
11
|
-
[placeholder]="placeholder"
|
|
12
|
-
[(ngModel)]="value"
|
|
13
|
-
[mask]="mask"
|
|
14
|
-
(onBlur)="onInputBlur($event)"
|
|
15
|
-
>
|
|
16
|
-
</p-inputMask>
|
|
17
|
-
|
|
18
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
19
|
-
</span>
|
|
20
|
-
<ng-content></ng-content>
|
|
File without changes
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
3
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
4
|
-
import { ComponentService } from '../../api/services/component.service';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'kv-input-mask',
|
|
9
|
-
templateUrl: './input-mask.component.html',
|
|
10
|
-
styleUrls: ['./input-mask.component.scss', '../../styles-components.scss'],
|
|
11
|
-
providers: ComponentProviders(InputMaskComponent),
|
|
12
|
-
})
|
|
13
|
-
export class InputMaskComponent extends BaseComponentInput<string> implements OnInit {
|
|
14
|
-
|
|
15
|
-
@Input() mask!: string;
|
|
16
|
-
|
|
17
|
-
constructor(componentService: ComponentService) {
|
|
18
|
-
super(componentService);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<span>
|
|
2
|
-
<kv-label
|
|
3
|
-
[componentId]="componentId"
|
|
4
|
-
[label]="label"
|
|
5
|
-
/>
|
|
6
|
-
<p-inputNumber
|
|
7
|
-
#inputNumber
|
|
8
|
-
[disabled]="disabled"
|
|
9
|
-
[class]="baseInputClass"
|
|
10
|
-
[inputId]="componentId"
|
|
11
|
-
styleClass="inputs"
|
|
12
|
-
[min]="min"
|
|
13
|
-
[max]="max"
|
|
14
|
-
[suffix]="suffix"
|
|
15
|
-
[(ngModel)]="value"
|
|
16
|
-
(onBlur)="onInputBlur($event)"
|
|
17
|
-
>
|
|
18
|
-
</p-inputNumber>
|
|
19
|
-
|
|
20
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
21
|
-
</span>
|
|
22
|
-
<ng-content></ng-content>
|
|
File without changes
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit, ViewChild } from '@angular/core';
|
|
2
|
-
import { InputNumber } from 'primeng/inputnumber';
|
|
3
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
4
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
5
|
-
import { ComponentService } from '../../api/services/component.service';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'kv-input-number',
|
|
10
|
-
templateUrl: './input-number.component.html',
|
|
11
|
-
styleUrls: ['./input-number.component.scss', '../../styles-components.scss'],
|
|
12
|
-
providers: ComponentProviders(InputNumberComponent),
|
|
13
|
-
})
|
|
14
|
-
export class InputNumberComponent extends BaseComponentInput<string> implements OnInit {
|
|
15
|
-
@Input() mode: 'currency' | 'decimal' = 'decimal';
|
|
16
|
-
@Input() digits: number = 0;
|
|
17
|
-
@Input() min: number = 0;
|
|
18
|
-
@Input() max!: number;
|
|
19
|
-
@Input() suffix!: string;
|
|
20
|
-
|
|
21
|
-
@ViewChild('inputNumber', { static: true }) inputNumber!: InputNumber;
|
|
22
|
-
|
|
23
|
-
constructor(componentService: ComponentService) {
|
|
24
|
-
super(componentService);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
override ngOnInit(): void {
|
|
28
|
-
super.ngOnInit();
|
|
29
|
-
|
|
30
|
-
this.inputNumber.mode = this.mode;
|
|
31
|
-
this.inputNumber.locale = 'pt-BR';
|
|
32
|
-
|
|
33
|
-
switch (this.mode) {
|
|
34
|
-
case 'decimal':
|
|
35
|
-
this.configDecimal();
|
|
36
|
-
break;
|
|
37
|
-
case 'currency':
|
|
38
|
-
this.configCurrency();
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
private configDecimal() {
|
|
44
|
-
if (!this.digits) this.inputNumber.useGrouping = false;
|
|
45
|
-
this.inputNumber.minFractionDigits = this.digits;
|
|
46
|
-
this.inputNumber.maxFractionDigits = this.digits;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
private configCurrency() {
|
|
50
|
-
this.inputNumber.currency = 'BRL';
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<span>
|
|
2
|
-
<kv-label
|
|
3
|
-
[componentId]="componentId"
|
|
4
|
-
[label]="label"
|
|
5
|
-
/>
|
|
6
|
-
<p-password
|
|
7
|
-
appendTo="body"
|
|
8
|
-
[class]="baseInputClass"
|
|
9
|
-
styleClass="inputs"
|
|
10
|
-
[id]="componentId"
|
|
11
|
-
[(ngModel)]="value"
|
|
12
|
-
[disabled]="disabled"
|
|
13
|
-
[toggleMask]="toggleMask"
|
|
14
|
-
[feedback]="feedback"
|
|
15
|
-
[mediumRegex]="mediumRegex"
|
|
16
|
-
[strongRegex]="strongRegex"
|
|
17
|
-
(onBlur)="onInputBlur($event)"
|
|
18
|
-
>
|
|
19
|
-
</p-password>
|
|
20
|
-
|
|
21
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
22
|
-
</span>
|
|
23
|
-
<ng-content></ng-content>
|
|
File without changes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
3
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
4
|
-
import { ComponentService } from '../../api/services/component.service';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'kv-input-password',
|
|
9
|
-
templateUrl: './input-password.component.html',
|
|
10
|
-
styleUrls: ['./input-password.component.scss', '../../styles-components.scss'],
|
|
11
|
-
providers: ComponentProviders(InputPasswordComponent),
|
|
12
|
-
})
|
|
13
|
-
export class InputPasswordComponent extends BaseComponentInput<string> implements OnInit {
|
|
14
|
-
|
|
15
|
-
@Input() feedback: boolean = false;
|
|
16
|
-
@Input() mediumRegex: string = '';
|
|
17
|
-
@Input() strongRegex: string = '';
|
|
18
|
-
@Input() toggleMask: boolean = true;
|
|
19
|
-
|
|
20
|
-
constructor(componentService: ComponentService) {
|
|
21
|
-
super(componentService);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<span>
|
|
2
|
-
<kv-label
|
|
3
|
-
[componentId]="componentId"
|
|
4
|
-
[label]="label"
|
|
5
|
-
/>
|
|
6
|
-
<input
|
|
7
|
-
pInputText
|
|
8
|
-
type="text"
|
|
9
|
-
[class]="baseInputClass"
|
|
10
|
-
class="inputs"
|
|
11
|
-
[disabled]="disabled"
|
|
12
|
-
[id]="componentId"
|
|
13
|
-
[(ngModel)]="value"
|
|
14
|
-
(blur)="onInputBlur($event)"
|
|
15
|
-
(input)="onInputInput($event)"
|
|
16
|
-
>
|
|
17
|
-
|
|
18
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
19
|
-
</span>
|
|
20
|
-
<ng-content></ng-content>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
3
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
4
|
-
import { ComponentService } from '../../api/services/component.service';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'kv-input-text',
|
|
9
|
-
templateUrl: './input-text.component.html',
|
|
10
|
-
styleUrls: ['./input-text.component.scss', '../../styles-components.scss'],
|
|
11
|
-
providers: ComponentProviders(InputTextComponent),
|
|
12
|
-
})
|
|
13
|
-
export class InputTextComponent extends BaseComponentInput<string> implements OnInit {
|
|
14
|
-
constructor(componentService: ComponentService) {
|
|
15
|
-
super(componentService);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<kv-label
|
|
2
|
-
[componentId]="componentId"
|
|
3
|
-
[label]="label"
|
|
4
|
-
/>
|
|
5
|
-
<div class="p-inputgroup ">
|
|
6
|
-
<span
|
|
7
|
-
class="p-inputgroup-addon"
|
|
8
|
-
style="height: 35px;"
|
|
9
|
-
><p-checkbox
|
|
10
|
-
[(ngModel)]="checkBoxValue"
|
|
11
|
-
[binary]="true"
|
|
12
|
-
[pTooltip]="tooltipCheckbox"
|
|
13
|
-
></p-checkbox>
|
|
14
|
-
|
|
15
|
-
</span>
|
|
16
|
-
|
|
17
|
-
<span class="p-float-label">
|
|
18
|
-
<input
|
|
19
|
-
type="text"
|
|
20
|
-
pInputText
|
|
21
|
-
[class]="baseInputClass"
|
|
22
|
-
styleClass="inputs"
|
|
23
|
-
[disabled]="disabled"
|
|
24
|
-
[placeholder]="placeholder"
|
|
25
|
-
[id]="componentId"
|
|
26
|
-
[(ngModel)]="value"
|
|
27
|
-
(blur)="onInputBlur($event)"
|
|
28
|
-
style="height: 35px;"
|
|
29
|
-
/>
|
|
30
|
-
</span>
|
|
31
|
-
|
|
32
|
-
</div>
|