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,22 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { PageFormComponent } from "./page-form.component";
|
|
3
|
-
import { CommonModule } from "@angular/common";
|
|
4
|
-
import { KvButtonsModule, PrimeNgModule } from "../../public-api";
|
|
5
|
-
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
declarations: [
|
|
9
|
-
PageFormComponent
|
|
10
|
-
],
|
|
11
|
-
imports: [
|
|
12
|
-
CommonModule,
|
|
13
|
-
FormsModule,
|
|
14
|
-
PrimeNgModule,
|
|
15
|
-
KvButtonsModule,
|
|
16
|
-
ReactiveFormsModule
|
|
17
|
-
],
|
|
18
|
-
exports: [
|
|
19
|
-
PageFormComponent
|
|
20
|
-
]
|
|
21
|
-
})
|
|
22
|
-
export class KvPageFormModule { }
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
[formGroup]="formGroup"
|
|
3
|
-
class="grid-nogutter m-0"
|
|
4
|
-
id="page-form-container"
|
|
5
|
-
>
|
|
6
|
-
|
|
7
|
-
<!-- Renderização do form -->
|
|
8
|
-
<div class="col-12 p-0">
|
|
9
|
-
<ng-content></ng-content>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<!-- Divider -->
|
|
13
|
-
<!-- <p-divider class="col-12"></p-divider> -->
|
|
14
|
-
|
|
15
|
-
<!-- Barra de ações -->
|
|
16
|
-
<div class="flex flex-column lg:flex-row justify-content-end col-12 gap-2 barra-acoes grid grid-nogutter p-fluid">
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<kv-button-secondary
|
|
20
|
-
*ngIf="showBtnCancel"
|
|
21
|
-
[label]="txtBtnCancel"
|
|
22
|
-
[icon]="iconBtnCancel"
|
|
23
|
-
(click)="cancel($event)"
|
|
24
|
-
class="w-full lg:w-auto"
|
|
25
|
-
>
|
|
26
|
-
</kv-button-secondary>
|
|
27
|
-
|
|
28
|
-
<kv-button-success
|
|
29
|
-
*ngIf="showBtnSave"
|
|
30
|
-
[label]="txtBtnSave"
|
|
31
|
-
[icon]="iconBtnSave"
|
|
32
|
-
[loading]="isSaveLoading"
|
|
33
|
-
(click)="save($event)"
|
|
34
|
-
class="w-full lg:w-auto"
|
|
35
|
-
/>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<kv-button-popup
|
|
39
|
-
*ngIf="actions && showBtnSaveToogle"
|
|
40
|
-
[label]="txtBtnSaveToogle"
|
|
41
|
-
[icon]="iconBtnSaveToogle"
|
|
42
|
-
(click)="menu.toggle($event)"
|
|
43
|
-
[loading]="isSaveLoading"
|
|
44
|
-
class="w-full lg:w-auto"
|
|
45
|
-
>
|
|
46
|
-
</kv-button-popup>
|
|
47
|
-
|
|
48
|
-
<p-menu
|
|
49
|
-
#menu
|
|
50
|
-
[popup]="true"
|
|
51
|
-
[model]="actions"
|
|
52
|
-
appendTo="body"
|
|
53
|
-
class="w-full lg:w-auto"
|
|
54
|
-
></p-menu>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
</div>
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
::ng-deep .p-dialog .p-dialog-header {
|
|
2
|
-
color: white !important;
|
|
3
|
-
background: #002542 !important;
|
|
4
|
-
display: flex !important;
|
|
5
|
-
flex-wrap: wrap;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
::ng-deep .p-dialog .p-dialog-content {
|
|
9
|
-
padding-top: 1rem;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.sub-title {
|
|
13
|
-
// color: white !important;
|
|
14
|
-
color: yellow;
|
|
15
|
-
position: relative;
|
|
16
|
-
bottom: 25px;
|
|
17
|
-
z-index: 1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
::ng-deep .p-dialog-content {
|
|
21
|
-
|
|
22
|
-
&::-webkit-scrollbar {
|
|
23
|
-
width: 8px;
|
|
24
|
-
|
|
25
|
-
&:hover {
|
|
26
|
-
background-color: rgba(222, 222, 222, 0.75);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&::-webkit-scrollbar-thumb {
|
|
31
|
-
border-radius: 4px;
|
|
32
|
-
background-color: transparent;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:hover::-webkit-scrollbar-thumb {
|
|
36
|
-
border-left: 2px solid white;
|
|
37
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&::-webkit-scrollbar-track {
|
|
41
|
-
border-left: 2px solid white;
|
|
42
|
-
background-color: rgba(222, 222, 222, 0.75);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
overflow-x: hidden;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
* {
|
|
49
|
-
padding-bottom: 0rem;
|
|
50
|
-
padding-top: 0rem;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.barra-acoes {
|
|
54
|
-
position: fixed;
|
|
55
|
-
bottom: 0;
|
|
56
|
-
left: 0;
|
|
57
|
-
right: 0;
|
|
58
|
-
background-color: rgb(255, 255, 255);
|
|
59
|
-
padding: 10px;
|
|
60
|
-
z-index: 999;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
#page-form-container {
|
|
65
|
-
padding-bottom: 40px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@media screen and (max-width: 991px) {
|
|
69
|
-
#page-form-container {
|
|
70
|
-
padding-bottom: 130px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* tslint:disable:no-unused-variable */
|
|
2
|
-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
-
import { By } from '@angular/platform-browser';
|
|
4
|
-
import { DebugElement } from '@angular/core';
|
|
5
|
-
|
|
6
|
-
import { PageFormComponent } from './page-form.component';
|
|
7
|
-
|
|
8
|
-
describe('PageFormComponent', () => {
|
|
9
|
-
let component: PageFormComponent;
|
|
10
|
-
let fixture: ComponentFixture<PageFormComponent>;
|
|
11
|
-
|
|
12
|
-
beforeEach(async(() => {
|
|
13
|
-
TestBed.configureTestingModule({
|
|
14
|
-
declarations: [ PageFormComponent ]
|
|
15
|
-
})
|
|
16
|
-
.compileComponents();
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
|
-
beforeEach(() => {
|
|
20
|
-
fixture = TestBed.createComponent(PageFormComponent);
|
|
21
|
-
component = fixture.componentInstance;
|
|
22
|
-
fixture.detectChanges();
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
it('should create', () => {
|
|
26
|
-
expect(component).toBeTruthy();
|
|
27
|
-
});
|
|
28
|
-
});
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { ActionItem } from '../api/components/table/action-item';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'kv-page-form',
|
|
7
|
-
templateUrl: './page-form.component.html',
|
|
8
|
-
styleUrls: ['./page-form.component.scss'],
|
|
9
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
10
|
-
})
|
|
11
|
-
export class PageFormComponent implements OnInit {
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Configurações do formulário
|
|
15
|
-
*/
|
|
16
|
-
@Input() formGroup: FormGroup = new FormGroup({});
|
|
17
|
-
@Input() TituloForm: string | undefined = '';
|
|
18
|
-
@Input() SubTituloForm: string | undefined = '';
|
|
19
|
-
@Input() isSaveLoading!: boolean;
|
|
20
|
-
@Input() popup: boolean = false;
|
|
21
|
-
@Input() locationUseComponent: 'page' | 'dialog' = 'dialog';
|
|
22
|
-
// @Input() expandMenu!: boolean;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Botão cancelar
|
|
26
|
-
*/
|
|
27
|
-
@Input() iconBtnCancel: string = 'pi pi-fw pi-times';
|
|
28
|
-
@Input() showBtnCancel: boolean = true;
|
|
29
|
-
@Input() txtBtnCancel: string = "Cancelar";
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Botão salvar
|
|
33
|
-
*/
|
|
34
|
-
@Input() iconBtnSave: string = 'pi pi-save';
|
|
35
|
-
@Input() showBtnSave: boolean = true;
|
|
36
|
-
@Input() txtBtnSave: string = "Salvar";
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Botão de opções
|
|
40
|
-
*/
|
|
41
|
-
@Input() actions!: ActionItem[];
|
|
42
|
-
@Input() iconBtnSaveToogle: string = "pi pi-chevron-down";
|
|
43
|
-
@Input() showBtnSaveToogle: boolean = false;
|
|
44
|
-
@Input() txtBtnSaveToogle: string = "Ações";
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Botão fechar
|
|
48
|
-
*/
|
|
49
|
-
@Input() disableBtnSair: boolean = true;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Salvar dados
|
|
53
|
-
*/
|
|
54
|
-
@Output() onSave: EventEmitter<any> = new EventEmitter();
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Cancelar
|
|
58
|
-
*/
|
|
59
|
-
@Output() onCancel: EventEmitter<any> = new EventEmitter();
|
|
60
|
-
|
|
61
|
-
constructor(private fb: FormBuilder) { }
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Adiciona sub-título à tela
|
|
65
|
-
*/
|
|
66
|
-
addSubTitle() {
|
|
67
|
-
if (this.SubTituloForm) {
|
|
68
|
-
const headerElement = document.querySelector('.p-dialog .p-dialog-header');
|
|
69
|
-
if (headerElement) {
|
|
70
|
-
const subtitleElement = document.createElement('span');
|
|
71
|
-
subtitleElement.textContent = this.SubTituloForm;
|
|
72
|
-
subtitleElement.style.fontSize = '0.75rem'
|
|
73
|
-
subtitleElement.style.width = '100%'
|
|
74
|
-
subtitleElement.style.marginLeft = '2px'
|
|
75
|
-
|
|
76
|
-
headerElement.appendChild(subtitleElement);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
ngOnInit() {
|
|
83
|
-
this.addSubTitle();
|
|
84
|
-
this.setPageFormContainerAttributes();
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Dispara o método de cancelamento da tela
|
|
89
|
-
* @param event evento
|
|
90
|
-
*/
|
|
91
|
-
cancel(event: Event) {
|
|
92
|
-
this.onCancel.emit(event);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Dispara o método de salvar da tela
|
|
97
|
-
* @param event evento
|
|
98
|
-
*/
|
|
99
|
-
save(event: Event) {
|
|
100
|
-
this.onSave.emit(event);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Ajusta o tamanho da tela considerando o menu lateral
|
|
105
|
-
*/
|
|
106
|
-
setPageFormContainerAttributes() {
|
|
107
|
-
if (this.locationUseComponent == 'page') {
|
|
108
|
-
var form = document.getElementById('page-form-container');
|
|
109
|
-
|
|
110
|
-
if (form) {
|
|
111
|
-
var widthFull = form.clientWidth;
|
|
112
|
-
var widthAdjusted;
|
|
113
|
-
|
|
114
|
-
widthAdjusted = widthFull - 332
|
|
115
|
-
|
|
116
|
-
// if (this.expandMenu) widthAdjusted = widthFull - 332;
|
|
117
|
-
// else widthAdjusted = widthFull - 92;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FormsModule } from '@angular/forms';
|
|
2
|
-
import { PrimeNgModule } from '../api/modules/primeng.module';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { PickListComponent } from './picklist.component';
|
|
5
|
-
import { NgModule } from "@angular/core";
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
declarations: [
|
|
9
|
-
PickListComponent
|
|
10
|
-
],
|
|
11
|
-
imports: [
|
|
12
|
-
CommonModule,
|
|
13
|
-
PrimeNgModule,
|
|
14
|
-
FormsModule,
|
|
15
|
-
],
|
|
16
|
-
exports: [
|
|
17
|
-
PickListComponent
|
|
18
|
-
]
|
|
19
|
-
})
|
|
20
|
-
export class KvPickListModule { }
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<p-pickList
|
|
2
|
-
[source]="source"
|
|
3
|
-
[sourceHeader]="sourceHeader"
|
|
4
|
-
[sourceStyle]="sourceStyle"
|
|
5
|
-
[target]="target"
|
|
6
|
-
[targetHeader]="targetHeader"
|
|
7
|
-
[targetStyle]="targetStyle"
|
|
8
|
-
[dragdrop]="dragdrop"
|
|
9
|
-
[responsive]="responsive"
|
|
10
|
-
[filterBy]="filterBy"
|
|
11
|
-
[breakpoint]="breakpoint"
|
|
12
|
-
[stripedRows]="stripedRows"
|
|
13
|
-
>
|
|
14
|
-
<ng-template let-item pTemplate="item" *ngIf="itemTemplate">
|
|
15
|
-
<ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: item }"></ng-container>
|
|
16
|
-
</ng-template>
|
|
17
|
-
</p-pickList>
|
|
File without changes
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* tslint:disable:no-unused-variable */
|
|
2
|
-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
-
|
|
4
|
-
import { PickListComponent } from './picklist.component';
|
|
5
|
-
|
|
6
|
-
describe('PickListComponent', () => {
|
|
7
|
-
let component: PickListComponent;
|
|
8
|
-
let fixture: ComponentFixture<PickListComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async(() => {
|
|
11
|
-
TestBed.configureTestingModule({
|
|
12
|
-
declarations: [ PickListComponent ]
|
|
13
|
-
})
|
|
14
|
-
.compileComponents();
|
|
15
|
-
}));
|
|
16
|
-
|
|
17
|
-
beforeEach(() => {
|
|
18
|
-
fixture = TestBed.createComponent(PickListComponent);
|
|
19
|
-
component = fixture.componentInstance;
|
|
20
|
-
fixture.detectChanges();
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('should create', () => {
|
|
24
|
-
expect(component).toBeTruthy();
|
|
25
|
-
});
|
|
26
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'kv-picklist',
|
|
5
|
-
templateUrl: './picklist.component.html',
|
|
6
|
-
styleUrls: ['./picklist.component.scss', '../styles-components.scss']
|
|
7
|
-
})
|
|
8
|
-
export class PickListComponent implements OnInit {
|
|
9
|
-
|
|
10
|
-
@Input() source!: any[]; // Lista de origem
|
|
11
|
-
@Input() sourceHeader: string = 'Título da lista de origem';
|
|
12
|
-
@Input() sourceStyle!: any; // Estilização da lista de origem
|
|
13
|
-
@Input() target!: any[]; // Lista de destino (Itens selecionados)
|
|
14
|
-
@Input() targetHeader: string = 'Título de lista de destino';
|
|
15
|
-
@Input() targetStyle!: any; // Estilização da lista de destino
|
|
16
|
-
@Input() dragdrop: boolean = true; // Ativa/Desativa o arrasta e solta
|
|
17
|
-
@Input() responsive: boolean = true; // Ativa/Desativa a responsividade automática
|
|
18
|
-
@Input() filterBy!: string; // Campo de filtro nas listas.
|
|
19
|
-
@Input() breakpoint: string = "1400px"; // Define a largura da tela na qual o componente deve alterar seu comportamento responsivo.
|
|
20
|
-
@Input() stripedRows: boolean = false; // Ativa/Desativa linhas com cores alternadas ("zebradas")
|
|
21
|
-
@Input() itemTemplate!: TemplateRef<any>; // Como as listas são dinâmicas, obrigatoriamente um template deve ser informado para exibir os itens das listas
|
|
22
|
-
|
|
23
|
-
constructor() { }
|
|
24
|
-
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Pipe({ name: 'codigoFipe' })
|
|
4
|
-
export class CodigoFipePipe implements PipeTransform {
|
|
5
|
-
|
|
6
|
-
transform(value: string) {
|
|
7
|
-
if (value) {
|
|
8
|
-
|
|
9
|
-
const identificacao = value.replace(/[^0-9]/g, '');
|
|
10
|
-
|
|
11
|
-
return identificacao.replace(/(\d{6})(\d{1})/g, "\$1-\$2");
|
|
12
|
-
}
|
|
13
|
-
else return null;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Pipe({ name: 'cpfCnpj' })
|
|
4
|
-
export class CpfCnpjPipe implements PipeTransform {
|
|
5
|
-
|
|
6
|
-
transform(value: string) {
|
|
7
|
-
if (value) {
|
|
8
|
-
|
|
9
|
-
const identificacao = value.replace(/[^0-9]/g, '');
|
|
10
|
-
|
|
11
|
-
if (identificacao.length === 11) {
|
|
12
|
-
return identificacao.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/g, "\$1.\$2.\$3\-\$4");
|
|
13
|
-
} else if (identificacao.length === 14) {
|
|
14
|
-
return identificacao.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/g, "\$1.\$2.\$3\/\$4\-\$5");
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return value;
|
|
18
|
-
}
|
|
19
|
-
else return null;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { CpfCnpjPipe } from './cpfcnpj.pipe';
|
|
4
|
-
import { TelefonePipe } from './telefone.pipe';
|
|
5
|
-
import { CodigoFipePipe } from './codigofile.pipe';
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: [
|
|
9
|
-
CommonModule
|
|
10
|
-
],
|
|
11
|
-
declarations: [
|
|
12
|
-
CpfCnpjPipe,
|
|
13
|
-
TelefonePipe,
|
|
14
|
-
CodigoFipePipe
|
|
15
|
-
],
|
|
16
|
-
exports: [
|
|
17
|
-
CpfCnpjPipe,
|
|
18
|
-
TelefonePipe,
|
|
19
|
-
CodigoFipePipe
|
|
20
|
-
]
|
|
21
|
-
})
|
|
22
|
-
export class PipesModule { }
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Pipe({
|
|
4
|
-
name: 'Telefone'
|
|
5
|
-
})
|
|
6
|
-
export class TelefonePipe implements PipeTransform {
|
|
7
|
-
|
|
8
|
-
transform(tel: string) {
|
|
9
|
-
if (tel) {
|
|
10
|
-
const value = tel.toString().replace(/\D/g, '');
|
|
11
|
-
|
|
12
|
-
let foneFormatado = '';
|
|
13
|
-
|
|
14
|
-
if (value.length > 12) {
|
|
15
|
-
foneFormatado = value.replace(/(\d{2})?(\d{2})?(\d{5})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
16
|
-
|
|
17
|
-
} else if (value.length > 11) {
|
|
18
|
-
foneFormatado = value.replace(/(\d{2})?(\d{2})?(\d{4})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
19
|
-
|
|
20
|
-
} else if (value.length > 10) {
|
|
21
|
-
foneFormatado = value.replace(/(\d{2})?(\d{5})?(\d{4})/, '($1) $2-$3');
|
|
22
|
-
|
|
23
|
-
} else if (value.length > 9) {
|
|
24
|
-
foneFormatado = value.replace(/(\d{2})?(\d{4})?(\d{4})/, '($1) $2-$3');
|
|
25
|
-
|
|
26
|
-
} else if (value.length > 5) {
|
|
27
|
-
foneFormatado = value.replace(/^(\d{2})?(\d{4})?(\d{0,4})/, '($1) $2-$3');
|
|
28
|
-
|
|
29
|
-
} else if (value.length > 1) {
|
|
30
|
-
foneFormatado = value.replace(/^(\d{2})?(\d{0,5})/, '($1) $2');
|
|
31
|
-
} else {
|
|
32
|
-
if (tel !== '') { foneFormatado = value.replace(/^(\d*)/, '($1'); }
|
|
33
|
-
}
|
|
34
|
-
return foneFormatado;
|
|
35
|
-
}
|
|
36
|
-
else return null;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { TableComponent } from './table.component';
|
|
4
|
-
import { PrimeNgModule } from '../api/modules/primeng.module';
|
|
5
|
-
import { FormsModule } from '@angular/forms';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
declarations: [
|
|
11
|
-
TableComponent
|
|
12
|
-
],
|
|
13
|
-
imports: [
|
|
14
|
-
CommonModule,
|
|
15
|
-
PrimeNgModule,
|
|
16
|
-
FormsModule,
|
|
17
|
-
],
|
|
18
|
-
exports: [
|
|
19
|
-
TableComponent
|
|
20
|
-
]
|
|
21
|
-
})
|
|
22
|
-
export class KvTableModule { }
|