keevo-components 1.5.189 → 1.5.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/ng-package.json +7 -0
- package/package.json +3 -22
- package/src/assets/.gitkeep +0 -0
- package/src/assets/images/LogoEvo.png +0 -0
- package/src/assets/images/LogoPequenaEvo.png +0 -0
- package/src/assets/images/background.png +0 -0
- package/src/assets/images/keepass-logo.png +0 -0
- package/src/assets/images/keepass-logo.svg +74 -0
- package/src/assets/images/keevo-logo.png +0 -0
- package/src/assets/images/logokeevo_2.png +0 -0
- package/src/index.ts +1 -0
- package/src/lib/api/base-components/base-component-button.ts +27 -0
- package/src/lib/api/base-components/base-component-chart.ts +105 -0
- package/src/lib/api/base-components/base-component-crud-form.ts +328 -0
- package/src/lib/api/base-components/base-component-crud-list.ts +111 -0
- package/src/lib/api/base-components/base-component-crud.ts +70 -0
- package/src/lib/api/base-components/base-component-dropdown-new.ts +112 -0
- package/src/lib/api/base-components/base-component-dropdown.ts +164 -0
- package/src/lib/api/base-components/base-component-input.ts +107 -0
- package/src/lib/api/base-components/base-component-multi-select.ts +136 -0
- package/src/lib/api/base-components/base-component.ts +46 -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/error/error.component.html +3 -0
- package/src/lib/api/components/error/error.component.scss +5 -0
- package/src/lib/api/components/error/error.component.ts +22 -0
- package/src/lib/api/components/error/kverror.module.ts +23 -0
- package/src/lib/api/components/table/action-item.ts +5 -0
- package/src/lib/api/components/table/kv-menuitem.ts +10 -0
- package/src/lib/api/components/table/table.config.column.ts +21 -0
- package/src/lib/api/components/table/table.config.ts +20 -0
- package/src/lib/api/components/table/table.paginate.ts +6 -0
- package/src/lib/api/helpers/component-providers.ts +16 -0
- package/src/lib/api/helpers/keevo-validators.ts +77 -0
- package/src/lib/api/helpers/translate-primeng.ts +25 -0
- package/src/lib/api/models/menu/menu.model.ts +10 -0
- package/{lib/api/models/menu/menucompleto.model.d.ts → src/lib/api/models/menu/menucompleto.model.ts} +7 -6
- package/src/lib/api/models/menu/sistemamenu.model.ts +8 -0
- package/src/lib/api/modules/primeng.module.ts +125 -0
- package/src/lib/api/services/base.api.service.ts +115 -0
- package/src/lib/api/services/component.service.ts +22 -0
- package/src/lib/api/services/form.service.ts +105 -0
- package/src/lib/api/services/imagens.service.ts +20 -0
- package/src/lib/api/services/notification.service.ts +82 -0
- package/src/lib/api/services/object.service.ts +20 -0
- package/src/lib/buttons/button-personalize/button-personalize.component.html +11 -0
- package/src/lib/buttons/button-personalize/button-personalize.component.scss +3 -0
- package/src/lib/buttons/button-personalize/button-personalize.component.ts +13 -0
- package/src/lib/buttons/button-popup/button-popup.component.html +12 -0
- package/src/lib/buttons/button-popup/button-popup.component.scss +13 -0
- package/src/lib/buttons/button-popup/button-popup.component.ts +30 -0
- package/src/lib/buttons/button-secondary/button-secondary.component.html +12 -0
- package/src/lib/buttons/button-secondary/button-secondary.component.scss +14 -0
- package/src/lib/buttons/button-secondary/button-secondary.component.ts +13 -0
- package/src/lib/buttons/button-success/button-success.component.html +11 -0
- package/src/lib/buttons/button-success/button-success.component.scss +13 -0
- package/src/lib/buttons/button-success/button-success.component.ts +13 -0
- package/src/lib/buttons/kvbutton.module.ts +25 -0
- package/src/lib/chart/chart.component.html +38 -0
- package/src/lib/chart/chart.component.scss +0 -0
- package/src/lib/chart/chart.component.spec.ts +28 -0
- package/src/lib/chart/chart.component.ts +141 -0
- package/src/lib/chart/kvchart.module.ts +20 -0
- package/src/lib/directives/template.directive.ts +15 -0
- package/src/lib/inputs/check/check.component.html +11 -0
- package/src/lib/inputs/check/check.component.scss +13 -0
- package/src/lib/inputs/check/check.component.ts +24 -0
- package/src/lib/inputs/dropdown/dropdown.component.html +91 -0
- package/src/lib/inputs/dropdown/dropdown.component.scss +0 -0
- package/src/lib/inputs/dropdown/dropdown.component.ts +28 -0
- package/src/lib/inputs/editor/editor.component.html +90 -0
- package/src/lib/inputs/editor/editor.component.scss +4 -0
- package/src/lib/inputs/editor/editor.component.ts +80 -0
- package/src/lib/inputs/input-calendar/input-calendar.component.html +30 -0
- package/src/lib/inputs/input-calendar/input-calendar.component.scss +0 -0
- package/src/lib/inputs/input-calendar/input-calendar.component.ts +81 -0
- package/src/lib/inputs/input-mask/input-mask.component.html +20 -0
- package/src/lib/inputs/input-mask/input-mask.component.scss +0 -0
- package/src/lib/inputs/input-mask/input-mask.component.ts +20 -0
- package/src/lib/inputs/input-number/input-number.component.html +22 -0
- package/src/lib/inputs/input-number/input-number.component.scss +0 -0
- package/src/lib/inputs/input-number/input-number.component.ts +52 -0
- package/src/lib/inputs/input-password/input-password.component.html +23 -0
- package/src/lib/inputs/input-password/input-password.component.scss +0 -0
- package/src/lib/inputs/input-password/input-password.component.ts +23 -0
- package/src/lib/inputs/input-text/input-text.component.html +20 -0
- package/src/lib/inputs/input-text/input-text.component.scss +18 -0
- package/src/lib/inputs/input-text/input-text.component.ts +17 -0
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.html +32 -0
- 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 +23 -0
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.ts +36 -0
- package/src/lib/inputs/input-textarea/input-textarea.component.html +22 -0
- package/src/lib/inputs/input-textarea/input-textarea.component.scss +0 -0
- package/src/lib/inputs/input-textarea/input-textarea.component.ts +33 -0
- package/src/lib/inputs/input-time/input-time.component.html +23 -0
- package/src/lib/inputs/input-time/input-time.component.scss +0 -0
- package/src/lib/inputs/input-time/input-time.component.ts +20 -0
- package/src/lib/inputs/kvinputs.module.ts +64 -0
- package/src/lib/inputs/multi-select/multi-select.component.html +28 -0
- package/src/lib/inputs/multi-select/multi-select.component.scss +8 -0
- package/src/lib/inputs/multi-select/multi-select.component.ts +31 -0
- package/src/lib/inputs/radio-group/radio-group.component.html +19 -0
- package/src/lib/inputs/radio-group/radio-group.component.scss +15 -0
- package/src/lib/inputs/radio-group/radio-group.component.ts +50 -0
- package/src/lib/inputs/switch/switch.component.html +12 -0
- package/src/lib/inputs/switch/switch.component.scss +3 -0
- package/src/lib/inputs/switch/switch.component.ts +30 -0
- package/src/lib/keevo-components.module.ts +50 -0
- package/src/lib/label/label.component.html +6 -0
- package/src/lib/label/label.component.scss +9 -0
- package/src/lib/label/label.component.spec.ts +23 -0
- package/src/lib/label/label.component.ts +13 -0
- package/src/lib/label/label.module.ts +18 -0
- package/src/lib/loader/kvloader.module.ts +17 -0
- package/src/lib/loader/loader.component.html +1 -0
- package/src/lib/loader/loader.component.ts +14 -0
- package/src/lib/loader/loader.service.ts +26 -0
- package/src/lib/login/kvlogin.module.ts +28 -0
- package/src/lib/login/login.component.html +108 -0
- package/src/lib/login/login.component.scss +48 -0
- package/src/lib/login/login.component.spec.ts +23 -0
- package/src/lib/login/login.component.ts +65 -0
- package/src/lib/menu/kvmenu.module.ts +27 -0
- package/src/lib/menu/menu.component.html +342 -0
- package/src/lib/menu/menu.component.scss +210 -0
- package/src/lib/menu/menu.component.spec.ts +23 -0
- package/src/lib/menu/menu.component.ts +246 -0
- package/src/lib/orgchart/orgchart.component.html +58 -0
- package/src/lib/orgchart/orgchart.component.scss +21 -0
- package/src/lib/orgchart/orgchart.component.ts +118 -0
- package/src/lib/orgchart/orgchart.module.ts +14 -0
- package/src/lib/page-form/kv-page-form.module.ts +22 -0
- package/src/lib/page-form/page-form.component.html +57 -0
- package/src/lib/page-form/page-form.component.scss +72 -0
- package/src/lib/page-form/page-form.component.spec.ts +28 -0
- package/src/lib/page-form/page-form.component.ts +121 -0
- package/src/lib/picklist/kvpicklist.module.ts +20 -0
- package/src/lib/picklist/picklist.component.html +17 -0
- package/src/lib/picklist/picklist.component.scss +0 -0
- package/src/lib/picklist/picklist.component.spec.ts +26 -0
- package/src/lib/picklist/picklist.component.ts +27 -0
- package/src/lib/pipes/codigofile.pipe.ts +15 -0
- package/src/lib/pipes/cpfcnpj.pipe.ts +21 -0
- package/src/lib/pipes/pipes.module.ts +22 -0
- package/src/lib/pipes/telefone.pipe.ts +38 -0
- package/src/lib/styles-components.scss +11 -0
- package/src/lib/table/kvtable.module.ts +22 -0
- package/src/lib/table/table.component.html +473 -0
- package/src/lib/table/table.component.scss +240 -0
- package/src/lib/table/table.component.spec.ts +28 -0
- package/src/lib/table/table.component.ts +546 -0
- package/src/lib/tree-table/kv-treetable.component.html +649 -0
- package/src/lib/tree-table/kv-treetable.component.scss +315 -0
- package/src/lib/tree-table/kv-treetable.component.ts +390 -0
- package/src/lib/tree-table/kv-treetable.module.ts +18 -0
- package/src/lib/tree-view/kvtree-view.module.ts +19 -0
- package/src/lib/tree-view/tree-view.component.html +9 -0
- package/src/lib/tree-view/tree-view.component.scss +0 -0
- package/src/lib/tree-view/tree-view.component.spec.ts +23 -0
- package/src/lib/tree-view/tree-view.component.ts +29 -0
- package/src/lib/workspace/kvworkspace.module.ts +29 -0
- package/src/lib/workspace/workspace.component.html +108 -0
- package/src/lib/workspace/workspace.component.scss +83 -0
- package/src/lib/workspace/workspace.component.ts +75 -0
- package/{public-api.d.ts → src/public-api.ts} +156 -133
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2020/keevo-components.mjs +0 -5
- package/esm2020/lib/api/base-components/base-component-button.mjs +0 -36
- package/esm2020/lib/api/base-components/base-component-chart.mjs +0 -92
- package/esm2020/lib/api/base-components/base-component-crud-form.mjs +0 -269
- package/esm2020/lib/api/base-components/base-component-crud-list.mjs +0 -67
- package/esm2020/lib/api/base-components/base-component-crud.mjs +0 -65
- package/esm2020/lib/api/base-components/base-component-dropdown-new.mjs +0 -211
- package/esm2020/lib/api/base-components/base-component-dropdown.mjs +0 -161
- package/esm2020/lib/api/base-components/base-component-input.mjs +0 -94
- package/esm2020/lib/api/base-components/base-component-multi-select.mjs +0 -128
- package/esm2020/lib/api/base-components/base-component.mjs +0 -49
- package/esm2020/lib/api/components/chart/chart.config.mjs +0 -2
- package/esm2020/lib/api/components/chart/chart.model.mjs +0 -2
- package/esm2020/lib/api/components/chart/orchart.config.mjs +0 -2
- package/esm2020/lib/api/components/chart/orchart.item.mjs +0 -2
- package/esm2020/lib/api/components/dropdown/filtro.combo.mjs +0 -2
- package/esm2020/lib/api/components/error/error.component.mjs +0 -26
- package/esm2020/lib/api/components/error/kverror.module.mjs +0 -35
- package/esm2020/lib/api/components/table/action-item.mjs +0 -2
- package/esm2020/lib/api/components/table/kv-menuitem.mjs +0 -3
- package/esm2020/lib/api/components/table/table.config.column.mjs +0 -2
- package/esm2020/lib/api/components/table/table.config.mjs +0 -2
- package/esm2020/lib/api/components/table/table.paginate.mjs +0 -9
- package/esm2020/lib/api/helpers/component-providers.mjs +0 -16
- package/esm2020/lib/api/helpers/keevo-validators.mjs +0 -64
- package/esm2020/lib/api/helpers/translate-primeng.mjs +0 -23
- package/esm2020/lib/api/models/menu/menu.model.mjs +0 -2
- package/esm2020/lib/api/models/menu/menucompleto.model.mjs +0 -2
- package/esm2020/lib/api/models/menu/sistemamenu.model.mjs +0 -2
- package/esm2020/lib/api/modules/primeng.module.mjs +0 -247
- package/esm2020/lib/api/services/base.api.service.mjs +0 -74
- package/esm2020/lib/api/services/component.service.mjs +0 -27
- package/esm2020/lib/api/services/form.service.mjs +0 -84
- package/esm2020/lib/api/services/imagens.service.mjs +0 -22
- package/esm2020/lib/api/services/notification.service.mjs +0 -67
- package/esm2020/lib/api/services/object.service.mjs +0 -26
- package/esm2020/lib/buttons/button-personalize/button-personalize.component.mjs +0 -17
- package/esm2020/lib/buttons/button-popup/button-popup.component.mjs +0 -31
- package/esm2020/lib/buttons/button-secondary/button-secondary.component.mjs +0 -17
- package/esm2020/lib/buttons/button-success/button-success.component.mjs +0 -17
- package/esm2020/lib/buttons/kvbutton.module.mjs +0 -39
- package/esm2020/lib/chart/chart.component.mjs +0 -145
- package/esm2020/lib/chart/kvchart.module.mjs +0 -32
- package/esm2020/lib/directives/template.directive.mjs +0 -24
- package/esm2020/lib/inputs/check/check.component.mjs +0 -26
- package/esm2020/lib/inputs/dropdown/dropdown.component.mjs +0 -37
- package/esm2020/lib/inputs/editor/editor.component.mjs +0 -70
- package/esm2020/lib/inputs/input-calendar/input-calendar.component.mjs +0 -89
- package/esm2020/lib/inputs/input-mask/input-mask.component.mjs +0 -23
- package/esm2020/lib/inputs/input-number/input-number.component.mjs +0 -59
- package/esm2020/lib/inputs/input-password/input-password.component.mjs +0 -33
- package/esm2020/lib/inputs/input-text/input-text.component.mjs +0 -21
- package/esm2020/lib/inputs/input-text-checkbox/input-text-checkbox.component.mjs +0 -38
- package/esm2020/lib/inputs/input-textarea/input-textarea.component.mjs +0 -43
- package/esm2020/lib/inputs/input-time/input-time.component.mjs +0 -24
- package/esm2020/lib/inputs/kvinputs.module.mjs +0 -108
- package/esm2020/lib/inputs/multi-select/multi-select.component.mjs +0 -38
- package/esm2020/lib/inputs/radio-group/radio-group.component.mjs +0 -53
- package/esm2020/lib/inputs/switch/switch.component.mjs +0 -32
- package/esm2020/lib/keevo-components.module.mjs +0 -105
- package/esm2020/lib/label/label.component.mjs +0 -15
- package/esm2020/lib/label/label.module.mjs +0 -24
- package/esm2020/lib/loader/loader.component.mjs +0 -18
- package/esm2020/lib/loader/loader.module.mjs +0 -28
- package/esm2020/lib/loader/loader.service.mjs +0 -29
- package/esm2020/lib/login/kvlogin.module.mjs +0 -47
- package/esm2020/lib/login/login.component.mjs +0 -52
- package/esm2020/lib/menu/kvmenu.module.mjs +0 -43
- package/esm2020/lib/menu/menu.component.mjs +0 -237
- package/esm2020/lib/orgchart/orgchart.component.mjs +0 -100
- package/esm2020/lib/orgchart/orgchart.module.mjs +0 -24
- package/esm2020/lib/page-form/kv-page-form.module.mjs +0 -38
- package/esm2020/lib/page-form/page-form.component.mjs +0 -144
- package/esm2020/lib/picklist/kvpicklist.module.mjs +0 -32
- package/esm2020/lib/picklist/picklist.component.mjs +0 -48
- package/esm2020/lib/pipes/codigofile.pipe.mjs +0 -19
- package/esm2020/lib/pipes/cpfcnpj.pipe.mjs +0 -25
- package/esm2020/lib/pipes/pipes.module.mjs +0 -34
- package/esm2020/lib/pipes/telefone.pipe.mjs +0 -45
- package/esm2020/lib/table/kvtable.module.mjs +0 -32
- package/esm2020/lib/table/table.component.mjs +0 -499
- package/esm2020/lib/tree-table/kv-treetable.component.mjs +0 -371
- package/esm2020/lib/tree-table/kv-treetable.module.mjs +0 -32
- package/esm2020/lib/tree-view/kvtree-view.module.mjs +0 -28
- package/esm2020/lib/tree-view/tree-view.component.mjs +0 -29
- package/esm2020/lib/workspace/kvworkspace.module.mjs +0 -47
- package/esm2020/lib/workspace/workspace.component.mjs +0 -77
- package/esm2020/public-api.mjs +0 -137
- package/fesm2015/keevo-components.mjs +0 -4706
- package/fesm2015/keevo-components.mjs.map +0 -1
- package/fesm2020/keevo-components.mjs +0 -4697
- package/fesm2020/keevo-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/api/base-components/base-component-button.d.ts +0 -14
- package/lib/api/base-components/base-component-chart.d.ts +0 -40
- package/lib/api/base-components/base-component-crud-form.d.ts +0 -137
- package/lib/api/base-components/base-component-crud-list.d.ts +0 -63
- package/lib/api/base-components/base-component-crud.d.ts +0 -36
- package/lib/api/base-components/base-component-dropdown-new.d.ts +0 -14
- package/lib/api/base-components/base-component-dropdown.d.ts +0 -42
- package/lib/api/base-components/base-component-input.d.ts +0 -31
- package/lib/api/base-components/base-component-multi-select.d.ts +0 -35
- package/lib/api/base-components/base-component.d.ts +0 -21
- 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/error/error.component.d.ts +0 -12
- package/lib/api/components/error/kverror.module.d.ts +0 -10
- package/lib/api/components/table/action-item.d.ts +0 -5
- package/lib/api/components/table/kv-menuitem.d.ts +0 -9
- package/lib/api/components/table/table.config.column.d.ts +0 -21
- package/lib/api/components/table/table.config.d.ts +0 -17
- package/lib/api/components/table/table.paginate.d.ts +0 -6
- package/lib/api/helpers/component-providers.d.ts +0 -2
- package/lib/api/helpers/keevo-validators.d.ts +0 -10
- package/lib/api/helpers/translate-primeng.d.ts +0 -4
- package/lib/api/models/menu/menu.model.d.ts +0 -10
- package/lib/api/models/menu/sistemamenu.model.d.ts +0 -8
- package/lib/api/modules/primeng.module.d.ts +0 -60
- package/lib/api/services/base.api.service.d.ts +0 -25
- package/lib/api/services/component.service.d.ts +0 -11
- package/lib/api/services/form.service.d.ts +0 -27
- package/lib/api/services/imagens.service.d.ts +0 -8
- package/lib/api/services/notification.service.d.ts +0 -25
- package/lib/api/services/object.service.d.ts +0 -8
- package/lib/buttons/button-personalize/button-personalize.component.d.ts +0 -7
- package/lib/buttons/button-popup/button-popup.component.d.ts +0 -13
- package/lib/buttons/button-secondary/button-secondary.component.d.ts +0 -7
- package/lib/buttons/button-success/button-success.component.d.ts +0 -7
- package/lib/buttons/kvbutton.module.d.ts +0 -11
- package/lib/chart/chart.component.d.ts +0 -56
- package/lib/chart/kvchart.module.d.ts +0 -10
- package/lib/directives/template.directive.d.ts +0 -11
- package/lib/inputs/check/check.component.d.ts +0 -11
- package/lib/inputs/dropdown/dropdown.component.d.ts +0 -14
- package/lib/inputs/editor/editor.component.d.ts +0 -39
- package/lib/inputs/input-calendar/input-calendar.component.d.ts +0 -27
- package/lib/inputs/input-mask/input-mask.component.d.ts +0 -10
- package/lib/inputs/input-number/input-number.component.d.ts +0 -19
- package/lib/inputs/input-password/input-password.component.d.ts +0 -13
- package/lib/inputs/input-text/input-text.component.d.ts +0 -9
- package/lib/inputs/input-text-checkbox/input-text-checkbox.component.d.ts +0 -15
- package/lib/inputs/input-textarea/input-textarea.component.d.ts +0 -16
- package/lib/inputs/input-time/input-time.component.d.ts +0 -10
- package/lib/inputs/kvinputs.module.d.ts +0 -25
- package/lib/inputs/multi-select/multi-select.component.d.ts +0 -12
- package/lib/inputs/radio-group/radio-group.component.d.ts +0 -18
- package/lib/inputs/switch/switch.component.d.ts +0 -13
- package/lib/keevo-components.module.d.ts +0 -19
- package/lib/label/label.component.d.ts +0 -7
- package/lib/label/label.module.d.ts +0 -8
- package/lib/loader/loader.component.d.ts +0 -10
- package/lib/loader/loader.module.d.ts +0 -9
- package/lib/loader/loader.service.d.ts +0 -10
- package/lib/login/kvlogin.module.d.ts +0 -13
- package/lib/login/login.component.d.ts +0 -30
- package/lib/menu/kvmenu.module.d.ts +0 -12
- package/lib/menu/menu.component.d.ts +0 -74
- package/lib/orgchart/orgchart.component.d.ts +0 -27
- package/lib/orgchart/orgchart.module.d.ts +0 -9
- package/lib/page-form/kv-page-form.module.d.ts +0 -11
- package/lib/page-form/page-form.component.d.ts +0 -69
- package/lib/picklist/kvpicklist.module.d.ts +0 -10
- package/lib/picklist/picklist.component.d.ts +0 -20
- package/lib/pipes/codigofile.pipe.d.ts +0 -7
- package/lib/pipes/cpfcnpj.pipe.d.ts +0 -7
- package/lib/pipes/pipes.module.d.ts +0 -10
- package/lib/pipes/telefone.pipe.d.ts +0 -7
- package/lib/table/kvtable.module.d.ts +0 -10
- package/lib/table/table.component.d.ts +0 -104
- package/lib/tree-table/kv-treetable.component.d.ts +0 -84
- package/lib/tree-table/kv-treetable.module.d.ts +0 -11
- package/lib/tree-view/kvtree-view.module.d.ts +0 -9
- package/lib/tree-view/tree-view.component.d.ts +0 -14
- package/lib/workspace/kvworkspace.module.d.ts +0 -13
- package/lib/workspace/workspace.component.d.ts +0 -28
|
@@ -0,0 +1,91 @@
|
|
|
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
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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">
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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>
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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>
|