keevo-components 1.5.191 → 1.5.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/keevo-components.mjs +5 -0
- package/esm2020/lib/api/base-components/base-component-button.mjs +36 -0
- package/esm2020/lib/api/base-components/base-component-chart.mjs +92 -0
- package/esm2020/lib/api/base-components/base-component-crud-form.mjs +270 -0
- package/esm2020/lib/api/base-components/base-component-crud-list.mjs +68 -0
- package/esm2020/lib/api/base-components/base-component-crud.mjs +65 -0
- package/esm2020/lib/api/base-components/base-component-dropdown-new.mjs +211 -0
- package/esm2020/lib/api/base-components/base-component-dropdown.mjs +161 -0
- package/esm2020/lib/api/base-components/base-component-input.mjs +94 -0
- package/esm2020/lib/api/base-components/base-component-multi-select.mjs +128 -0
- package/esm2020/lib/api/base-components/base-component.mjs +49 -0
- package/esm2020/lib/api/components/chart/chart.config.mjs +2 -0
- package/esm2020/lib/api/components/chart/chart.model.mjs +2 -0
- package/esm2020/lib/api/components/chart/orchart.config.mjs +2 -0
- package/esm2020/lib/api/components/chart/orchart.item.mjs +2 -0
- package/esm2020/lib/api/components/dropdown/filtro.combo.mjs +2 -0
- package/esm2020/lib/api/components/error/error.component.mjs +26 -0
- package/esm2020/lib/api/components/error/kverror.module.mjs +35 -0
- package/esm2020/lib/api/components/table/action-item.mjs +2 -0
- package/esm2020/lib/api/components/table/kv-menuitem.mjs +3 -0
- package/esm2020/lib/api/components/table/table.config.column.mjs +2 -0
- package/esm2020/lib/api/components/table/table.config.mjs +2 -0
- package/esm2020/lib/api/components/table/table.paginate.mjs +9 -0
- package/esm2020/lib/api/helpers/component-providers.mjs +16 -0
- package/esm2020/lib/api/helpers/keevo-validators.mjs +64 -0
- package/esm2020/lib/api/helpers/translate-primeng.mjs +23 -0
- package/esm2020/lib/api/models/menu/menu.model.mjs +2 -0
- package/esm2020/lib/api/models/menu/menucompleto.model.mjs +2 -0
- package/esm2020/lib/api/models/menu/sistemamenu.model.mjs +2 -0
- package/esm2020/lib/api/modules/primeng.module.mjs +247 -0
- package/esm2020/lib/api/services/base.api.service.mjs +74 -0
- package/esm2020/lib/api/services/component.service.mjs +27 -0
- package/esm2020/lib/api/services/form.service.mjs +84 -0
- package/esm2020/lib/api/services/imagens.service.mjs +22 -0
- package/esm2020/lib/api/services/notification.service.mjs +67 -0
- package/esm2020/lib/api/services/object.service.mjs +26 -0
- package/esm2020/lib/buttons/button-personalize/button-personalize.component.mjs +17 -0
- package/esm2020/lib/buttons/button-popup/button-popup.component.mjs +31 -0
- package/esm2020/lib/buttons/button-secondary/button-secondary.component.mjs +17 -0
- package/esm2020/lib/buttons/button-success/button-success.component.mjs +17 -0
- package/esm2020/lib/buttons/kvbutton.module.mjs +39 -0
- package/esm2020/lib/chart/chart.component.mjs +145 -0
- package/esm2020/lib/chart/kvchart.module.mjs +32 -0
- package/esm2020/lib/directives/template.directive.mjs +24 -0
- package/esm2020/lib/inputs/check/check.component.mjs +26 -0
- package/esm2020/lib/inputs/dropdown/dropdown.component.mjs +37 -0
- package/esm2020/lib/inputs/editor/editor.component.mjs +70 -0
- package/esm2020/lib/inputs/input-calendar/input-calendar.component.mjs +89 -0
- package/esm2020/lib/inputs/input-mask/input-mask.component.mjs +23 -0
- package/esm2020/lib/inputs/input-number/input-number.component.mjs +59 -0
- package/esm2020/lib/inputs/input-password/input-password.component.mjs +33 -0
- package/esm2020/lib/inputs/input-text/input-text.component.mjs +21 -0
- package/esm2020/lib/inputs/input-text-checkbox/input-text-checkbox.component.mjs +38 -0
- package/esm2020/lib/inputs/input-textarea/input-textarea.component.mjs +43 -0
- package/esm2020/lib/inputs/input-time/input-time.component.mjs +24 -0
- package/esm2020/lib/inputs/kvinputs.module.mjs +108 -0
- package/esm2020/lib/inputs/multi-select/multi-select.component.mjs +38 -0
- package/esm2020/lib/inputs/radio-group/radio-group.component.mjs +53 -0
- package/esm2020/lib/inputs/switch/switch.component.mjs +32 -0
- package/esm2020/lib/keevo-components.module.mjs +105 -0
- package/esm2020/lib/label/label.component.mjs +15 -0
- package/esm2020/lib/label/label.module.mjs +24 -0
- package/esm2020/lib/loader/kvloader.module.mjs +28 -0
- package/esm2020/lib/loader/loader.component.mjs +17 -0
- package/esm2020/lib/loader/loader.service.mjs +29 -0
- package/esm2020/lib/login/kvlogin.module.mjs +47 -0
- package/esm2020/lib/login/login.component.mjs +52 -0
- package/esm2020/lib/menu/kvmenu.module.mjs +43 -0
- package/esm2020/lib/menu/menu.component.mjs +237 -0
- package/esm2020/lib/orgchart/orgchart.component.mjs +100 -0
- package/esm2020/lib/orgchart/orgchart.module.mjs +24 -0
- package/esm2020/lib/page-form/kv-page-form.module.mjs +38 -0
- package/esm2020/lib/page-form/page-form.component.mjs +144 -0
- package/esm2020/lib/picklist/kvpicklist.module.mjs +32 -0
- package/esm2020/lib/picklist/picklist.component.mjs +48 -0
- package/esm2020/lib/pipes/codigofile.pipe.mjs +19 -0
- package/esm2020/lib/pipes/cpfcnpj.pipe.mjs +25 -0
- package/esm2020/lib/pipes/pipes.module.mjs +34 -0
- package/esm2020/lib/pipes/telefone.pipe.mjs +45 -0
- package/esm2020/lib/table/kvtable.module.mjs +32 -0
- package/esm2020/lib/table/table.component.mjs +499 -0
- package/esm2020/lib/tree-table/kv-treetable.component.mjs +371 -0
- package/esm2020/lib/tree-table/kv-treetable.module.mjs +32 -0
- package/esm2020/lib/tree-view/kvtree-view.module.mjs +28 -0
- package/esm2020/lib/tree-view/tree-view.component.mjs +29 -0
- package/esm2020/lib/workspace/kvworkspace.module.mjs +47 -0
- package/esm2020/lib/workspace/workspace.component.mjs +77 -0
- package/esm2020/public-api.mjs +138 -0
- package/fesm2015/keevo-components.mjs +4705 -0
- package/fesm2015/keevo-components.mjs.map +1 -0
- package/fesm2020/keevo-components.mjs +4696 -0
- package/fesm2020/keevo-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/api/base-components/base-component-button.d.ts +14 -0
- package/lib/api/base-components/base-component-chart.d.ts +40 -0
- package/lib/api/base-components/base-component-crud-form.d.ts +137 -0
- package/lib/api/base-components/base-component-crud-list.d.ts +63 -0
- package/lib/api/base-components/base-component-crud.d.ts +36 -0
- package/lib/api/base-components/base-component-dropdown-new.d.ts +14 -0
- package/lib/api/base-components/base-component-dropdown.d.ts +42 -0
- package/lib/api/base-components/base-component-input.d.ts +31 -0
- package/lib/api/base-components/base-component-multi-select.d.ts +35 -0
- package/lib/api/base-components/base-component.d.ts +21 -0
- package/lib/api/components/chart/chart.config.d.ts +11 -0
- package/lib/api/components/chart/chart.model.d.ts +9 -0
- package/lib/api/components/chart/orchart.config.d.ts +35 -0
- package/lib/api/components/chart/orchart.item.d.ts +26 -0
- package/lib/api/components/dropdown/filtro.combo.d.ts +4 -0
- package/lib/api/components/error/error.component.d.ts +12 -0
- package/lib/api/components/error/kverror.module.d.ts +10 -0
- package/lib/api/components/table/action-item.d.ts +5 -0
- package/lib/api/components/table/kv-menuitem.d.ts +9 -0
- package/lib/api/components/table/table.config.column.d.ts +21 -0
- package/lib/api/components/table/table.config.d.ts +17 -0
- package/lib/api/components/table/table.paginate.d.ts +6 -0
- package/lib/api/helpers/component-providers.d.ts +2 -0
- package/lib/api/helpers/keevo-validators.d.ts +10 -0
- package/lib/api/helpers/translate-primeng.d.ts +4 -0
- package/lib/api/models/menu/menu.model.d.ts +10 -0
- package/{src/lib/api/models/menu/menucompleto.model.ts → lib/api/models/menu/menucompleto.model.d.ts} +3 -4
- package/lib/api/models/menu/sistemamenu.model.d.ts +8 -0
- package/lib/api/modules/primeng.module.d.ts +60 -0
- package/lib/api/services/base.api.service.d.ts +25 -0
- package/lib/api/services/component.service.d.ts +11 -0
- package/lib/api/services/form.service.d.ts +27 -0
- package/lib/api/services/imagens.service.d.ts +8 -0
- package/lib/api/services/notification.service.d.ts +25 -0
- package/lib/api/services/object.service.d.ts +8 -0
- package/lib/buttons/button-personalize/button-personalize.component.d.ts +7 -0
- package/lib/buttons/button-popup/button-popup.component.d.ts +13 -0
- package/lib/buttons/button-secondary/button-secondary.component.d.ts +7 -0
- package/lib/buttons/button-success/button-success.component.d.ts +7 -0
- package/lib/buttons/kvbutton.module.d.ts +11 -0
- package/lib/chart/chart.component.d.ts +56 -0
- package/lib/chart/kvchart.module.d.ts +10 -0
- package/lib/directives/template.directive.d.ts +11 -0
- package/lib/inputs/check/check.component.d.ts +11 -0
- package/lib/inputs/dropdown/dropdown.component.d.ts +14 -0
- package/lib/inputs/editor/editor.component.d.ts +39 -0
- package/lib/inputs/input-calendar/input-calendar.component.d.ts +27 -0
- package/lib/inputs/input-mask/input-mask.component.d.ts +10 -0
- package/lib/inputs/input-number/input-number.component.d.ts +19 -0
- package/lib/inputs/input-password/input-password.component.d.ts +13 -0
- package/lib/inputs/input-text/input-text.component.d.ts +9 -0
- package/lib/inputs/input-text-checkbox/input-text-checkbox.component.d.ts +15 -0
- package/lib/inputs/input-textarea/input-textarea.component.d.ts +16 -0
- package/lib/inputs/input-time/input-time.component.d.ts +10 -0
- package/lib/inputs/kvinputs.module.d.ts +25 -0
- package/lib/inputs/multi-select/multi-select.component.d.ts +12 -0
- package/lib/inputs/radio-group/radio-group.component.d.ts +18 -0
- package/lib/inputs/switch/switch.component.d.ts +13 -0
- package/lib/keevo-components.module.d.ts +19 -0
- package/lib/label/label.component.d.ts +7 -0
- package/lib/label/label.module.d.ts +8 -0
- package/lib/loader/kvloader.module.d.ts +9 -0
- package/lib/loader/loader.component.d.ts +8 -0
- package/lib/loader/loader.service.d.ts +10 -0
- package/lib/login/kvlogin.module.d.ts +13 -0
- package/lib/login/login.component.d.ts +30 -0
- package/lib/menu/kvmenu.module.d.ts +12 -0
- package/lib/menu/menu.component.d.ts +74 -0
- package/lib/orgchart/orgchart.component.d.ts +27 -0
- package/lib/orgchart/orgchart.module.d.ts +9 -0
- package/lib/page-form/kv-page-form.module.d.ts +11 -0
- package/lib/page-form/page-form.component.d.ts +69 -0
- package/lib/picklist/kvpicklist.module.d.ts +10 -0
- package/lib/picklist/picklist.component.d.ts +20 -0
- package/lib/pipes/codigofile.pipe.d.ts +7 -0
- package/lib/pipes/cpfcnpj.pipe.d.ts +7 -0
- package/lib/pipes/pipes.module.d.ts +10 -0
- package/lib/pipes/telefone.pipe.d.ts +7 -0
- package/lib/table/kvtable.module.d.ts +10 -0
- package/lib/table/table.component.d.ts +104 -0
- package/lib/tree-table/kv-treetable.component.d.ts +84 -0
- package/lib/tree-table/kv-treetable.module.d.ts +11 -0
- package/lib/tree-view/kvtree-view.module.d.ts +9 -0
- package/lib/tree-view/tree-view.component.d.ts +14 -0
- package/lib/workspace/kvworkspace.module.d.ts +13 -0
- package/lib/workspace/workspace.component.d.ts +28 -0
- package/package.json +22 -3
- package/{src/public-api.ts → public-api.d.ts} +14 -36
- package/ng-package.json +0 -7
- package/src/assets/.gitkeep +0 -0
- package/src/assets/images/LogoEvo.png +0 -0
- package/src/assets/images/LogoPequenaEvo.png +0 -0
- package/src/assets/images/background.png +0 -0
- package/src/assets/images/keepass-logo.png +0 -0
- package/src/assets/images/keepass-logo.svg +0 -74
- package/src/assets/images/keevo-logo.png +0 -0
- package/src/assets/images/logokeevo_2.png +0 -0
- package/src/index.ts +0 -1
- package/src/lib/api/base-components/base-component-button.ts +0 -27
- package/src/lib/api/base-components/base-component-chart.ts +0 -105
- package/src/lib/api/base-components/base-component-crud-form.ts +0 -328
- package/src/lib/api/base-components/base-component-crud-list.ts +0 -111
- package/src/lib/api/base-components/base-component-crud.ts +0 -70
- package/src/lib/api/base-components/base-component-dropdown-new.ts +0 -112
- package/src/lib/api/base-components/base-component-dropdown.ts +0 -164
- package/src/lib/api/base-components/base-component-input.ts +0 -107
- package/src/lib/api/base-components/base-component-multi-select.ts +0 -136
- package/src/lib/api/base-components/base-component.ts +0 -46
- package/src/lib/api/components/chart/chart.config.ts +0 -12
- package/src/lib/api/components/chart/chart.model.ts +0 -9
- package/src/lib/api/components/chart/orchart.config.ts +0 -41
- package/src/lib/api/components/chart/orchart.item.ts +0 -33
- package/src/lib/api/components/dropdown/filtro.combo.ts +0 -4
- package/src/lib/api/components/error/error.component.html +0 -3
- package/src/lib/api/components/error/error.component.scss +0 -5
- package/src/lib/api/components/error/error.component.ts +0 -22
- package/src/lib/api/components/error/kverror.module.ts +0 -23
- package/src/lib/api/components/table/action-item.ts +0 -5
- package/src/lib/api/components/table/kv-menuitem.ts +0 -10
- package/src/lib/api/components/table/table.config.column.ts +0 -21
- package/src/lib/api/components/table/table.config.ts +0 -20
- package/src/lib/api/components/table/table.paginate.ts +0 -6
- package/src/lib/api/helpers/component-providers.ts +0 -16
- package/src/lib/api/helpers/keevo-validators.ts +0 -77
- package/src/lib/api/helpers/translate-primeng.ts +0 -25
- package/src/lib/api/models/menu/menu.model.ts +0 -10
- package/src/lib/api/models/menu/sistemamenu.model.ts +0 -8
- package/src/lib/api/modules/primeng.module.ts +0 -125
- package/src/lib/api/services/base.api.service.ts +0 -115
- package/src/lib/api/services/component.service.ts +0 -22
- package/src/lib/api/services/form.service.ts +0 -105
- package/src/lib/api/services/imagens.service.ts +0 -20
- package/src/lib/api/services/notification.service.ts +0 -82
- package/src/lib/api/services/object.service.ts +0 -20
- package/src/lib/buttons/button-personalize/button-personalize.component.html +0 -11
- package/src/lib/buttons/button-personalize/button-personalize.component.scss +0 -3
- package/src/lib/buttons/button-personalize/button-personalize.component.ts +0 -13
- package/src/lib/buttons/button-popup/button-popup.component.html +0 -12
- package/src/lib/buttons/button-popup/button-popup.component.scss +0 -13
- package/src/lib/buttons/button-popup/button-popup.component.ts +0 -30
- package/src/lib/buttons/button-secondary/button-secondary.component.html +0 -12
- package/src/lib/buttons/button-secondary/button-secondary.component.scss +0 -14
- package/src/lib/buttons/button-secondary/button-secondary.component.ts +0 -13
- package/src/lib/buttons/button-success/button-success.component.html +0 -11
- package/src/lib/buttons/button-success/button-success.component.scss +0 -13
- package/src/lib/buttons/button-success/button-success.component.ts +0 -13
- package/src/lib/buttons/kvbutton.module.ts +0 -25
- package/src/lib/chart/chart.component.html +0 -38
- package/src/lib/chart/chart.component.scss +0 -0
- package/src/lib/chart/chart.component.spec.ts +0 -28
- package/src/lib/chart/chart.component.ts +0 -141
- package/src/lib/chart/kvchart.module.ts +0 -20
- package/src/lib/directives/template.directive.ts +0 -15
- package/src/lib/inputs/check/check.component.html +0 -11
- package/src/lib/inputs/check/check.component.scss +0 -13
- package/src/lib/inputs/check/check.component.ts +0 -24
- package/src/lib/inputs/dropdown/dropdown.component.html +0 -91
- package/src/lib/inputs/dropdown/dropdown.component.scss +0 -0
- package/src/lib/inputs/dropdown/dropdown.component.ts +0 -28
- package/src/lib/inputs/editor/editor.component.html +0 -90
- package/src/lib/inputs/editor/editor.component.scss +0 -4
- package/src/lib/inputs/editor/editor.component.ts +0 -80
- package/src/lib/inputs/input-calendar/input-calendar.component.html +0 -30
- package/src/lib/inputs/input-calendar/input-calendar.component.scss +0 -0
- package/src/lib/inputs/input-calendar/input-calendar.component.ts +0 -81
- package/src/lib/inputs/input-mask/input-mask.component.html +0 -20
- package/src/lib/inputs/input-mask/input-mask.component.scss +0 -0
- package/src/lib/inputs/input-mask/input-mask.component.ts +0 -20
- package/src/lib/inputs/input-number/input-number.component.html +0 -22
- package/src/lib/inputs/input-number/input-number.component.scss +0 -0
- package/src/lib/inputs/input-number/input-number.component.ts +0 -52
- package/src/lib/inputs/input-password/input-password.component.html +0 -23
- package/src/lib/inputs/input-password/input-password.component.scss +0 -0
- package/src/lib/inputs/input-password/input-password.component.ts +0 -23
- package/src/lib/inputs/input-text/input-text.component.html +0 -20
- package/src/lib/inputs/input-text/input-text.component.scss +0 -18
- package/src/lib/inputs/input-text/input-text.component.ts +0 -17
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.html +0 -32
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.scss +0 -0
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.spec.ts +0 -23
- package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.ts +0 -36
- package/src/lib/inputs/input-textarea/input-textarea.component.html +0 -22
- package/src/lib/inputs/input-textarea/input-textarea.component.scss +0 -0
- package/src/lib/inputs/input-textarea/input-textarea.component.ts +0 -33
- package/src/lib/inputs/input-time/input-time.component.html +0 -23
- package/src/lib/inputs/input-time/input-time.component.scss +0 -0
- package/src/lib/inputs/input-time/input-time.component.ts +0 -20
- package/src/lib/inputs/kvinputs.module.ts +0 -64
- package/src/lib/inputs/multi-select/multi-select.component.html +0 -28
- package/src/lib/inputs/multi-select/multi-select.component.scss +0 -8
- package/src/lib/inputs/multi-select/multi-select.component.ts +0 -31
- package/src/lib/inputs/radio-group/radio-group.component.html +0 -19
- package/src/lib/inputs/radio-group/radio-group.component.scss +0 -15
- package/src/lib/inputs/radio-group/radio-group.component.ts +0 -50
- package/src/lib/inputs/switch/switch.component.html +0 -12
- package/src/lib/inputs/switch/switch.component.scss +0 -3
- package/src/lib/inputs/switch/switch.component.ts +0 -30
- package/src/lib/keevo-components.module.ts +0 -50
- package/src/lib/label/label.component.html +0 -6
- package/src/lib/label/label.component.scss +0 -9
- package/src/lib/label/label.component.spec.ts +0 -23
- package/src/lib/label/label.component.ts +0 -13
- package/src/lib/label/label.module.ts +0 -18
- package/src/lib/loader/kvloader.module.ts +0 -17
- package/src/lib/loader/loader.component.html +0 -1
- package/src/lib/loader/loader.component.ts +0 -14
- package/src/lib/loader/loader.service.ts +0 -26
- package/src/lib/login/kvlogin.module.ts +0 -28
- package/src/lib/login/login.component.html +0 -108
- package/src/lib/login/login.component.scss +0 -48
- package/src/lib/login/login.component.spec.ts +0 -23
- package/src/lib/login/login.component.ts +0 -65
- package/src/lib/menu/kvmenu.module.ts +0 -27
- package/src/lib/menu/menu.component.html +0 -342
- package/src/lib/menu/menu.component.scss +0 -210
- package/src/lib/menu/menu.component.spec.ts +0 -23
- package/src/lib/menu/menu.component.ts +0 -246
- package/src/lib/orgchart/orgchart.component.html +0 -58
- package/src/lib/orgchart/orgchart.component.scss +0 -21
- package/src/lib/orgchart/orgchart.component.ts +0 -118
- package/src/lib/orgchart/orgchart.module.ts +0 -14
- package/src/lib/page-form/kv-page-form.module.ts +0 -22
- package/src/lib/page-form/page-form.component.html +0 -57
- package/src/lib/page-form/page-form.component.scss +0 -72
- package/src/lib/page-form/page-form.component.spec.ts +0 -28
- package/src/lib/page-form/page-form.component.ts +0 -121
- package/src/lib/picklist/kvpicklist.module.ts +0 -20
- package/src/lib/picklist/picklist.component.html +0 -17
- package/src/lib/picklist/picklist.component.scss +0 -0
- package/src/lib/picklist/picklist.component.spec.ts +0 -26
- package/src/lib/picklist/picklist.component.ts +0 -27
- package/src/lib/pipes/codigofile.pipe.ts +0 -15
- package/src/lib/pipes/cpfcnpj.pipe.ts +0 -21
- package/src/lib/pipes/pipes.module.ts +0 -22
- package/src/lib/pipes/telefone.pipe.ts +0 -38
- package/src/lib/styles-components.scss +0 -11
- package/src/lib/table/kvtable.module.ts +0 -22
- package/src/lib/table/table.component.html +0 -473
- package/src/lib/table/table.component.scss +0 -240
- package/src/lib/table/table.component.spec.ts +0 -28
- package/src/lib/table/table.component.ts +0 -546
- package/src/lib/tree-table/kv-treetable.component.html +0 -649
- package/src/lib/tree-table/kv-treetable.component.scss +0 -315
- package/src/lib/tree-table/kv-treetable.component.ts +0 -390
- package/src/lib/tree-table/kv-treetable.module.ts +0 -18
- package/src/lib/tree-view/kvtree-view.module.ts +0 -19
- package/src/lib/tree-view/tree-view.component.html +0 -9
- package/src/lib/tree-view/tree-view.component.scss +0 -0
- package/src/lib/tree-view/tree-view.component.spec.ts +0 -23
- package/src/lib/tree-view/tree-view.component.ts +0 -29
- package/src/lib/workspace/kvworkspace.module.ts +0 -29
- package/src/lib/workspace/workspace.component.html +0 -108
- package/src/lib/workspace/workspace.component.scss +0 -83
- package/src/lib/workspace/workspace.component.ts +0 -75
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
File without changes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { InputTextCheckboxComponent } from './input-text-checkbox.component';
|
|
4
|
-
|
|
5
|
-
describe('InputTextCheckboxComponent', () => {
|
|
6
|
-
let component: InputTextCheckboxComponent;
|
|
7
|
-
let fixture: ComponentFixture<InputTextCheckboxComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ InputTextCheckboxComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(InputTextCheckboxComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, OnInit, Output } 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
|
-
@Component({
|
|
7
|
-
selector: 'kv-input-text-checkbox',
|
|
8
|
-
templateUrl: './input-text-checkbox.component.html',
|
|
9
|
-
styleUrls: ['./input-text-checkbox.component.scss'],
|
|
10
|
-
providers: ComponentProviders(InputTextCheckboxComponent),
|
|
11
|
-
})
|
|
12
|
-
export class InputTextCheckboxComponent extends BaseComponentInput<string> implements OnInit {
|
|
13
|
-
constructor(componentService: ComponentService) {
|
|
14
|
-
super(componentService);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@Output() checkBoxEmit: EventEmitter<boolean> = new EventEmitter<boolean>();
|
|
18
|
-
|
|
19
|
-
@Input() tooltipCheckbox!: string;
|
|
20
|
-
|
|
21
|
-
private _checkBoxValue: boolean = false;
|
|
22
|
-
|
|
23
|
-
set checkBoxValue(value: boolean) {
|
|
24
|
-
this._checkBoxValue = value;
|
|
25
|
-
this.emitCheckBoxValue();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
get checkBoxValue(): boolean {
|
|
29
|
-
return this._checkBoxValue;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
emitCheckBoxValue(): void {
|
|
33
|
-
this.checkBoxEmit.emit(this._checkBoxValue);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<span>
|
|
2
|
-
|
|
3
|
-
<kv-label
|
|
4
|
-
[componentId]="componentId"
|
|
5
|
-
[label]="label"
|
|
6
|
-
/>
|
|
7
|
-
<textarea
|
|
8
|
-
pInputTextarea
|
|
9
|
-
[autoResize]="autoResize"
|
|
10
|
-
[class]="baseInputClass"
|
|
11
|
-
[cols]="cols"
|
|
12
|
-
[disabled]="disabled"
|
|
13
|
-
[id]="componentId"
|
|
14
|
-
[rows]="rows"
|
|
15
|
-
[(ngModel)]="value"
|
|
16
|
-
(blur)="onInputBlur($event)"
|
|
17
|
-
>
|
|
18
|
-
</textarea>
|
|
19
|
-
|
|
20
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
21
|
-
</span>
|
|
22
|
-
<ng-content></ng-content>
|
|
File without changes
|
|
@@ -1,33 +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-textarea',
|
|
9
|
-
templateUrl: './input-textarea.component.html',
|
|
10
|
-
styleUrls: ['./input-textarea.component.scss', '../../styles-components.scss'],
|
|
11
|
-
providers: ComponentProviders(InputTextareaComponent),
|
|
12
|
-
})
|
|
13
|
-
export class InputTextareaComponent extends BaseComponentInput<string> implements OnInit {
|
|
14
|
-
@Input() multiline: boolean = false;
|
|
15
|
-
@Input() rows: number = 2;
|
|
16
|
-
@Input() cols: number = 20;
|
|
17
|
-
@Input() autoResize: boolean = false;
|
|
18
|
-
@Input() maxValueLength: number = 0;
|
|
19
|
-
|
|
20
|
-
counterValueLength: number = 0;
|
|
21
|
-
|
|
22
|
-
constructor(componentService: ComponentService) {
|
|
23
|
-
super(componentService);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
override ngOnInit(): void {
|
|
27
|
-
super.ngOnInit();
|
|
28
|
-
|
|
29
|
-
this.formControl?.valueChanges.subscribe((value: any) => {
|
|
30
|
-
this.counterValueLength = value?.length;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<span>
|
|
2
|
-
|
|
3
|
-
<kv-label
|
|
4
|
-
[componentId]="componentId"
|
|
5
|
-
[label]="label"
|
|
6
|
-
/>
|
|
7
|
-
<p-calendar
|
|
8
|
-
appendTo="body"
|
|
9
|
-
[class]="baseInputClass"
|
|
10
|
-
[id]="componentId"
|
|
11
|
-
[(ngModel)]="value"
|
|
12
|
-
[disabled]="disabled"
|
|
13
|
-
[showIcon]="showIcon"
|
|
14
|
-
styleClass="inputs"
|
|
15
|
-
[showTime]="true"
|
|
16
|
-
[timeOnly]="true"
|
|
17
|
-
(onBlur)="onInputBlur($event)"
|
|
18
|
-
>
|
|
19
|
-
</p-calendar>
|
|
20
|
-
|
|
21
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
22
|
-
</span>
|
|
23
|
-
<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-time',
|
|
9
|
-
templateUrl: './input-time.component.html',
|
|
10
|
-
styleUrls: ['./input-time.component.scss', '../../styles-components.scss'],
|
|
11
|
-
providers: ComponentProviders(InputTimeComponent),
|
|
12
|
-
})
|
|
13
|
-
export class InputTimeComponent extends BaseComponentInput<string> implements OnInit {
|
|
14
|
-
|
|
15
|
-
@Input() showIcon: boolean = true;
|
|
16
|
-
|
|
17
|
-
constructor(componentService: ComponentService) {
|
|
18
|
-
super(componentService);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { CheckComponent } from './check/check.component';
|
|
5
|
-
import { DropdownComponent } from './dropdown/dropdown.component';
|
|
6
|
-
import { InputCalendarComponent } from './input-calendar/input-calendar.component';
|
|
7
|
-
import { InputMaskComponent } from './input-mask/input-mask.component';
|
|
8
|
-
import { InputNumberComponent } from './input-number/input-number.component';
|
|
9
|
-
import { InputPasswordComponent } from './input-password/input-password.component';
|
|
10
|
-
import { InputTextComponent } from './input-text/input-text.component';
|
|
11
|
-
import { InputTextareaComponent } from './input-textarea/input-textarea.component';
|
|
12
|
-
import { InputTimeComponent } from './input-time/input-time.component';
|
|
13
|
-
import { MultiSelectComponent } from './multi-select/multi-select.component';
|
|
14
|
-
import { SwitchComponent } from './switch/switch.component';
|
|
15
|
-
import { kvErrorModule } from '../api/components/error/kverror.module';
|
|
16
|
-
import { PrimeNgModule } from '../api/modules/primeng.module';
|
|
17
|
-
import { RadioGroupComponent } from './radio-group/radio-group.component';
|
|
18
|
-
import { InputTextCheckboxComponent } from './input-text-checkbox/input-text-checkbox.component';
|
|
19
|
-
import { LabelModule } from '../label/label.module';
|
|
20
|
-
import { EditorComponent } from './editor/editor.component';
|
|
21
|
-
|
|
22
|
-
@NgModule({
|
|
23
|
-
declarations: [
|
|
24
|
-
CheckComponent,
|
|
25
|
-
DropdownComponent,
|
|
26
|
-
InputCalendarComponent,
|
|
27
|
-
InputMaskComponent,
|
|
28
|
-
InputNumberComponent,
|
|
29
|
-
InputPasswordComponent,
|
|
30
|
-
InputTextComponent,
|
|
31
|
-
InputTextareaComponent,
|
|
32
|
-
InputTimeComponent,
|
|
33
|
-
MultiSelectComponent,
|
|
34
|
-
SwitchComponent,
|
|
35
|
-
RadioGroupComponent,
|
|
36
|
-
InputTextCheckboxComponent,
|
|
37
|
-
EditorComponent
|
|
38
|
-
],
|
|
39
|
-
imports: [
|
|
40
|
-
CommonModule,
|
|
41
|
-
FormsModule,
|
|
42
|
-
kvErrorModule,
|
|
43
|
-
PrimeNgModule,
|
|
44
|
-
ReactiveFormsModule,
|
|
45
|
-
LabelModule
|
|
46
|
-
],
|
|
47
|
-
exports: [
|
|
48
|
-
CheckComponent,
|
|
49
|
-
DropdownComponent,
|
|
50
|
-
InputCalendarComponent,
|
|
51
|
-
InputMaskComponent,
|
|
52
|
-
InputNumberComponent,
|
|
53
|
-
InputPasswordComponent,
|
|
54
|
-
InputTextComponent,
|
|
55
|
-
InputTextareaComponent,
|
|
56
|
-
InputTimeComponent,
|
|
57
|
-
MultiSelectComponent,
|
|
58
|
-
SwitchComponent,
|
|
59
|
-
RadioGroupComponent,
|
|
60
|
-
InputTextCheckboxComponent,
|
|
61
|
-
EditorComponent
|
|
62
|
-
]
|
|
63
|
-
})
|
|
64
|
-
export class KvInputsModule { }
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<span [ngClass]="{'disable': optionInactive === true}">
|
|
2
|
-
<kv-label
|
|
3
|
-
[componentId]="componentId"
|
|
4
|
-
[label]="label"
|
|
5
|
-
/>
|
|
6
|
-
|
|
7
|
-
<p-multiSelect
|
|
8
|
-
appendTo="body"
|
|
9
|
-
display="chip"
|
|
10
|
-
inputId="multiselect"
|
|
11
|
-
styleClass="inputs"
|
|
12
|
-
[class]="baseInputClass"
|
|
13
|
-
[group]="group"
|
|
14
|
-
[disabled]="disabled"
|
|
15
|
-
[options]="options"
|
|
16
|
-
[optionDisabled]=" inactiveOptions"
|
|
17
|
-
[optionLabel]="optionLabel"
|
|
18
|
-
[optionValue]="optionValue"
|
|
19
|
-
[filter]="filter"
|
|
20
|
-
[showClear]="showClear"
|
|
21
|
-
[(ngModel)]="value"
|
|
22
|
-
(onChange)="selectionChange($event)"
|
|
23
|
-
(onPanelHide)="panelHide($event)"
|
|
24
|
-
>
|
|
25
|
-
</p-multiSelect>
|
|
26
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
27
|
-
</span>
|
|
28
|
-
<ng-content></ng-content>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
3
|
-
import { ComponentService } from '../../api/services/component.service';
|
|
4
|
-
import { BaseComponentMultiSelect } from '../../api/base-components/base-component-multi-select';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'kv-multi-select',
|
|
8
|
-
templateUrl: './multi-select.component.html',
|
|
9
|
-
styleUrls: ['./multi-select.component.scss', '../../styles-components.scss'],
|
|
10
|
-
providers: ComponentProviders(MultiSelectComponent),
|
|
11
|
-
})
|
|
12
|
-
export class MultiSelectComponent extends BaseComponentMultiSelect {
|
|
13
|
-
@Input() optionInactive!: boolean;
|
|
14
|
-
@Input() group: boolean = false;
|
|
15
|
-
|
|
16
|
-
inactiveOptions!: string;
|
|
17
|
-
override ngOnInit(): void {
|
|
18
|
-
super.ngOnInit();
|
|
19
|
-
if (this.optionInactive == true) {
|
|
20
|
-
this.inactiveOptions = 'inactive';
|
|
21
|
-
this.options.map((element: Object, index: number) => {
|
|
22
|
-
Object.defineProperty(element, 'inactive', {
|
|
23
|
-
value: true,
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
constructor(componentService: ComponentService) {
|
|
29
|
-
super(componentService);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<kv-label [label]="label" />
|
|
2
|
-
<div [class.vertical-radio-group]="vertical">
|
|
3
|
-
<div class="option" *ngFor="let option of options; let isFirst = first">
|
|
4
|
-
<p-radioButton
|
|
5
|
-
[inputId]="option.id"
|
|
6
|
-
name="option"
|
|
7
|
-
[value]="option"
|
|
8
|
-
[(ngModel)]="selectedOpt"
|
|
9
|
-
(onClick)="selectedOption($event)"
|
|
10
|
-
[disabled]="disabled"
|
|
11
|
-
[class.ml-3]="!isFirst && !vertical"
|
|
12
|
-
>
|
|
13
|
-
</p-radioButton>
|
|
14
|
-
<label [for]="option.id" class="radio-option-label">
|
|
15
|
-
{{ option.description }}</label
|
|
16
|
-
>
|
|
17
|
-
</div>
|
|
18
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
19
|
-
</div>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Component, DoCheck, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
-
import { BaseComponentInput } from '../../api/base-components/base-component-input';
|
|
3
|
-
import { ComponentService } from '../../api/services/component.service';
|
|
4
|
-
import { ComponentProviders } from '../../api/helpers/component-providers';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'kv-radio-group',
|
|
9
|
-
templateUrl: './radio-group.component.html',
|
|
10
|
-
styleUrls: ['./radio-group.component.scss', '../../styles-components.scss'],
|
|
11
|
-
providers: ComponentProviders(RadioGroupComponent),
|
|
12
|
-
})
|
|
13
|
-
export class RadioGroupComponent extends BaseComponentInput<any> implements OnInit, DoCheck {
|
|
14
|
-
|
|
15
|
-
@Input() options: any[] = [
|
|
16
|
-
{ id: 0, description: 'Não'},
|
|
17
|
-
{ id: 1, description: 'Sim'},
|
|
18
|
-
];
|
|
19
|
-
|
|
20
|
-
@Input() optionValueDefault!: any
|
|
21
|
-
|
|
22
|
-
@Output() onSelectedOption: EventEmitter<any> = new EventEmitter();
|
|
23
|
-
|
|
24
|
-
@Input() vertical: boolean = false;
|
|
25
|
-
|
|
26
|
-
selectedOpt: any = null;
|
|
27
|
-
|
|
28
|
-
constructor(componentService: ComponentService) {
|
|
29
|
-
super(componentService);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
override ngOnInit(): void {
|
|
33
|
-
this.selectedDefault();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
ngDoCheck(): void {
|
|
37
|
-
this.selectedDefault();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
selectedDefault() {
|
|
41
|
-
if (this.optionValueDefault != undefined && !this.selectedOpt) {
|
|
42
|
-
let item = this.options.find(opt => opt.id === this.optionValueDefault);
|
|
43
|
-
if (item) this.selectedOpt = item;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
selectedOption(event: any) {
|
|
48
|
-
this.onSelectedOption.emit(event.value.id);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<div class="center field-checkbox">
|
|
2
|
-
|
|
3
|
-
<p-inputSwitch
|
|
4
|
-
[inputId]="componentId"
|
|
5
|
-
[(ngModel)]="value"
|
|
6
|
-
[disabled]="disabled"
|
|
7
|
-
(ngModelChange)="emitOnSwitchChange($event)">
|
|
8
|
-
</p-inputSwitch>
|
|
9
|
-
<label [for]="componentId">{{ label }}</label>
|
|
10
|
-
|
|
11
|
-
<kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
|
|
12
|
-
</div>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, OnInit, Output } 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-switch',
|
|
9
|
-
templateUrl: './switch.component.html',
|
|
10
|
-
styleUrls: ['./switch.component.scss', '../../styles-components.scss'],
|
|
11
|
-
providers: ComponentProviders(SwitchComponent),
|
|
12
|
-
})
|
|
13
|
-
export class SwitchComponent extends BaseComponentInput<boolean> implements OnInit {
|
|
14
|
-
|
|
15
|
-
@Input() switchValue!: boolean;
|
|
16
|
-
@Output() onSwitchChange: EventEmitter<any> = new EventEmitter();
|
|
17
|
-
|
|
18
|
-
constructor(componentService: ComponentService) {
|
|
19
|
-
super(componentService);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
override ngOnInit(): void {
|
|
23
|
-
if (this.switchValue)
|
|
24
|
-
this.value = this.switchValue;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
emitOnSwitchChange(event: any) {
|
|
28
|
-
this.onSwitchChange.emit(event);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { KvButtonsModule } from './buttons/kvbutton.module';
|
|
3
|
-
import { KvInputsModule } from './inputs/kvinputs.module';
|
|
4
|
-
import { KvTableModule } from './table/kvtable.module';
|
|
5
|
-
import { KvtreeViewModule } from './tree-view/kvtree-view.module';
|
|
6
|
-
import { KvChartModule } from './chart/kvchart.module';
|
|
7
|
-
import { KvMenuModule } from './menu/kvmenu.module';
|
|
8
|
-
import { KvPickListModule } from './picklist/kvpicklist.module';
|
|
9
|
-
import { KVTreeTableModule } from './tree-table/kv-treetable.module';
|
|
10
|
-
import { OrgchartModule } from './orgchart/orgchart.module';
|
|
11
|
-
import { KvWorkspaceModule } from './workspace/kvworkspace.module';
|
|
12
|
-
import { KvLoginModule } from './login/kvlogin.module';
|
|
13
|
-
import { KvPageFormModule } from './page-form/kv-page-form.module';
|
|
14
|
-
import { KvLoaderModule } from './loader/kvloader.module';
|
|
15
|
-
|
|
16
|
-
@NgModule({
|
|
17
|
-
declarations: [
|
|
18
|
-
],
|
|
19
|
-
imports: [
|
|
20
|
-
KvInputsModule,
|
|
21
|
-
KvButtonsModule,
|
|
22
|
-
KvTableModule,
|
|
23
|
-
KvtreeViewModule,
|
|
24
|
-
KvChartModule,
|
|
25
|
-
KvMenuModule,
|
|
26
|
-
KvPickListModule,
|
|
27
|
-
KVTreeTableModule,
|
|
28
|
-
KvWorkspaceModule,
|
|
29
|
-
OrgchartModule,
|
|
30
|
-
KvLoginModule,
|
|
31
|
-
KvPageFormModule,
|
|
32
|
-
KvLoaderModule
|
|
33
|
-
],
|
|
34
|
-
exports: [
|
|
35
|
-
KvInputsModule,
|
|
36
|
-
KvButtonsModule,
|
|
37
|
-
KvTableModule,
|
|
38
|
-
KvtreeViewModule,
|
|
39
|
-
KvChartModule,
|
|
40
|
-
KvMenuModule,
|
|
41
|
-
KvPickListModule,
|
|
42
|
-
KVTreeTableModule,
|
|
43
|
-
KvWorkspaceModule,
|
|
44
|
-
OrgchartModule,
|
|
45
|
-
KvLoginModule,
|
|
46
|
-
KvPageFormModule,
|
|
47
|
-
KvLoaderModule
|
|
48
|
-
]
|
|
49
|
-
})
|
|
50
|
-
export class KeevoComponentsModule { }
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
::ng-deep .label-style {
|
|
2
|
-
position: relative;
|
|
3
|
-
// top: 13px;
|
|
4
|
-
left: 1px;
|
|
5
|
-
font-size: 0.80rem !important;
|
|
6
|
-
padding-top: 0rem;
|
|
7
|
-
padding-bottom: 0rem;
|
|
8
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
|
|
9
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { LabelComponent } from './label.component';
|
|
4
|
-
|
|
5
|
-
describe('LabelComponent', () => {
|
|
6
|
-
let component: LabelComponent;
|
|
7
|
-
let fixture: ComponentFixture<LabelComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ LabelComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(LabelComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'kv-label',
|
|
5
|
-
templateUrl: './label.component.html',
|
|
6
|
-
styleUrls: ['./label.component.scss']
|
|
7
|
-
})
|
|
8
|
-
export class LabelComponent {
|
|
9
|
-
|
|
10
|
-
@Input() componentId!: string;
|
|
11
|
-
@Input() label!: string;
|
|
12
|
-
|
|
13
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { LabelComponent } from './label.component';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
declarations: [
|
|
9
|
-
LabelComponent
|
|
10
|
-
],
|
|
11
|
-
imports: [
|
|
12
|
-
CommonModule
|
|
13
|
-
],
|
|
14
|
-
exports: [
|
|
15
|
-
LabelComponent
|
|
16
|
-
]
|
|
17
|
-
})
|
|
18
|
-
export class LabelModule { }
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { NgxLoadingModule } from 'ngx-loading';
|
|
4
|
-
|
|
5
|
-
import { LoaderComponent } from './loader.component';
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
declarations: [LoaderComponent],
|
|
9
|
-
exports: [LoaderComponent],
|
|
10
|
-
imports: [
|
|
11
|
-
CommonModule,
|
|
12
|
-
NgxLoadingModule.forRoot({
|
|
13
|
-
fullScreenBackdrop: true
|
|
14
|
-
})
|
|
15
|
-
]
|
|
16
|
-
})
|
|
17
|
-
export class KvLoaderModule { }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<ngx-loading [show]="(loading | async) || false"></ngx-loading>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { LoaderService } from './loader.service';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'kv-loader',
|
|
7
|
-
templateUrl: './loader.component.html'
|
|
8
|
-
})
|
|
9
|
-
export class LoaderComponent {
|
|
10
|
-
|
|
11
|
-
public loading: Subject<boolean> = LoaderService.isLoading;
|
|
12
|
-
|
|
13
|
-
constructor() { }
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { Observable, Subject, finalize } from 'rxjs';
|
|
3
|
-
|
|
4
|
-
@Injectable({
|
|
5
|
-
providedIn: 'root'
|
|
6
|
-
})
|
|
7
|
-
export class LoaderService {
|
|
8
|
-
public static isLoading = new Subject<boolean>();
|
|
9
|
-
|
|
10
|
-
static show() {
|
|
11
|
-
this.isLoading.next(true);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
static hide() {
|
|
15
|
-
this.isLoading.next(false);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const loading = (): any => {
|
|
20
|
-
return (src: Observable<any>) => {
|
|
21
|
-
LoaderService.show();
|
|
22
|
-
return src.pipe(finalize(() => {
|
|
23
|
-
LoaderService.hide();
|
|
24
|
-
}));
|
|
25
|
-
};
|
|
26
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { LoginComponent } from './login.component';
|
|
4
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import { PrimeNgModule } from '../api/modules/primeng.module';
|
|
6
|
-
import { KvInputsModule } from '../inputs/kvinputs.module';
|
|
7
|
-
import { KvButtonsModule } from '../buttons/kvbutton.module';
|
|
8
|
-
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@NgModule({
|
|
12
|
-
declarations: [
|
|
13
|
-
LoginComponent
|
|
14
|
-
],
|
|
15
|
-
imports: [
|
|
16
|
-
CommonModule,
|
|
17
|
-
PrimeNgModule,
|
|
18
|
-
FormsModule,
|
|
19
|
-
ReactiveFormsModule,
|
|
20
|
-
KvInputsModule,
|
|
21
|
-
KvButtonsModule,
|
|
22
|
-
ProgressSpinnerModule,
|
|
23
|
-
],
|
|
24
|
-
exports: [
|
|
25
|
-
LoginComponent
|
|
26
|
-
]
|
|
27
|
-
})
|
|
28
|
-
export class KvLoginModule { }
|