keevo-components 0.0.9 → 0.1.0

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.
Files changed (123) hide show
  1. package/esm2020/keevo-components.mjs +5 -0
  2. package/esm2020/lib/api/base-components/base-component-button.mjs +33 -0
  3. package/esm2020/lib/api/base-components/base-component-dropdown.mjs +115 -0
  4. package/esm2020/lib/api/base-components/base-component-input.mjs +77 -0
  5. package/esm2020/lib/api/base-components/base-component.mjs +49 -0
  6. package/esm2020/lib/api/components/error/error.component.mjs +26 -0
  7. package/esm2020/lib/api/components/error/kverror.module.mjs +35 -0
  8. package/esm2020/lib/api/helpers/component-providers.mjs +16 -0
  9. package/esm2020/lib/api/helpers/translate-primeng.mjs +23 -0
  10. package/esm2020/lib/api/modules/primeng.module.mjs +187 -0
  11. package/esm2020/lib/api/services/component.service.mjs +27 -0
  12. package/esm2020/lib/api/services/object.service.mjs +26 -0
  13. package/esm2020/lib/buttons/button-secondary/button-secondary.component.mjs +17 -0
  14. package/esm2020/lib/buttons/button-success/button-success.component.mjs +17 -0
  15. package/esm2020/lib/buttons/kvbutton.module.mjs +29 -0
  16. package/esm2020/lib/inputs/check/check.component.mjs +26 -0
  17. package/esm2020/lib/inputs/dropdown/dropdown.component.mjs +26 -0
  18. package/esm2020/lib/inputs/input-calendar/input-calendar.component.mjs +62 -0
  19. package/esm2020/lib/inputs/input-mask/input-mask.component.mjs +22 -0
  20. package/esm2020/lib/inputs/input-number/input-number.component.mjs +56 -0
  21. package/esm2020/lib/inputs/input-password/input-password.component.mjs +32 -0
  22. package/esm2020/lib/inputs/input-text/input-text.component.mjs +20 -0
  23. package/esm2020/lib/inputs/input-textarea/input-textarea.component.mjs +42 -0
  24. package/esm2020/lib/inputs/input-time/input-time.component.mjs +23 -0
  25. package/esm2020/lib/inputs/kvinputs.module.mjs +89 -0
  26. package/esm2020/lib/inputs/multi-select/multi-select.component.mjs +50 -0
  27. package/esm2020/lib/inputs/switch/switch.component.mjs +26 -0
  28. package/esm2020/lib/keevo-components.module.mjs +28 -0
  29. package/esm2020/public-api.mjs +31 -0
  30. package/fesm2015/keevo-components.mjs +1050 -0
  31. package/fesm2015/keevo-components.mjs.map +1 -0
  32. package/fesm2020/keevo-components.mjs +1046 -0
  33. package/fesm2020/keevo-components.mjs.map +1 -0
  34. package/index.d.ts +5 -0
  35. package/lib/api/base-components/base-component-button.d.ts +13 -0
  36. package/lib/api/base-components/base-component-dropdown.d.ts +31 -0
  37. package/lib/api/base-components/base-component-input.d.ts +26 -0
  38. package/lib/api/base-components/base-component.d.ts +21 -0
  39. package/lib/api/components/error/error.component.d.ts +12 -0
  40. package/lib/api/components/error/kverror.module.d.ts +10 -0
  41. package/lib/api/helpers/component-providers.d.ts +2 -0
  42. package/lib/api/helpers/translate-primeng.d.ts +4 -0
  43. package/lib/api/modules/primeng.module.d.ts +45 -0
  44. package/lib/api/services/component.service.d.ts +11 -0
  45. package/lib/api/services/object.service.d.ts +8 -0
  46. package/lib/buttons/button-secondary/button-secondary.component.d.ts +7 -0
  47. package/lib/buttons/button-success/button-success.component.d.ts +7 -0
  48. package/lib/buttons/kvbutton.module.d.ts +9 -0
  49. package/lib/inputs/check/check.component.d.ts +11 -0
  50. package/lib/inputs/dropdown/dropdown.component.d.ts +9 -0
  51. package/lib/inputs/input-calendar/input-calendar.component.d.ts +21 -0
  52. package/lib/inputs/input-mask/input-mask.component.d.ts +10 -0
  53. package/lib/inputs/input-number/input-number.component.d.ts +18 -0
  54. package/lib/inputs/input-password/input-password.component.d.ts +12 -0
  55. package/lib/inputs/input-text/input-text.component.d.ts +9 -0
  56. package/lib/inputs/input-textarea/input-textarea.component.d.ts +16 -0
  57. package/lib/inputs/input-time/input-time.component.d.ts +10 -0
  58. package/lib/inputs/kvinputs.module.d.ts +21 -0
  59. package/lib/inputs/multi-select/multi-select.component.d.ts +20 -0
  60. package/lib/inputs/switch/switch.component.d.ts +11 -0
  61. package/lib/keevo-components.module.d.ts +8 -0
  62. package/package.json +22 -3
  63. package/{src/public-api.ts → public-api.d.ts} +27 -34
  64. package/ng-package.json +0 -7
  65. package/src/index.ts +0 -1
  66. package/src/lib/api/base-components/base-component-button.ts +0 -25
  67. package/src/lib/api/base-components/base-component-dropdown.ts +0 -126
  68. package/src/lib/api/base-components/base-component-input.ts +0 -91
  69. package/src/lib/api/base-components/base-component.ts +0 -46
  70. package/src/lib/api/components/error/error.component.html +0 -3
  71. package/src/lib/api/components/error/error.component.scss +0 -0
  72. package/src/lib/api/components/error/error.component.ts +0 -22
  73. package/src/lib/api/components/error/kverror.module.ts +0 -23
  74. package/src/lib/api/helpers/component-providers.ts +0 -16
  75. package/src/lib/api/helpers/translate-primeng.ts +0 -25
  76. package/src/lib/api/modules/primeng.module.ts +0 -95
  77. package/src/lib/api/services/component.service.ts +0 -22
  78. package/src/lib/api/services/object.service.ts +0 -20
  79. package/src/lib/buttons/button-secondary/button-secondary.component.html +0 -9
  80. package/src/lib/buttons/button-secondary/button-secondary.component.scss +0 -13
  81. package/src/lib/buttons/button-secondary/button-secondary.component.ts +0 -13
  82. package/src/lib/buttons/button-success/button-success.component.html +0 -9
  83. package/src/lib/buttons/button-success/button-success.component.scss +0 -12
  84. package/src/lib/buttons/button-success/button-success.component.ts +0 -13
  85. package/src/lib/buttons/kvbutton.module.ts +0 -19
  86. package/src/lib/inputs/check/check.component.html +0 -11
  87. package/src/lib/inputs/check/check.component.scss +0 -0
  88. package/src/lib/inputs/check/check.component.ts +0 -24
  89. package/src/lib/inputs/dropdown/dropdown.component.html +0 -41
  90. package/src/lib/inputs/dropdown/dropdown.component.scss +0 -0
  91. package/src/lib/inputs/dropdown/dropdown.component.ts +0 -19
  92. package/src/lib/inputs/input-calendar/input-calendar.component.html +0 -22
  93. package/src/lib/inputs/input-calendar/input-calendar.component.scss +0 -0
  94. package/src/lib/inputs/input-calendar/input-calendar.component.ts +0 -54
  95. package/src/lib/inputs/input-mask/input-mask.component.html +0 -15
  96. package/src/lib/inputs/input-mask/input-mask.component.scss +0 -0
  97. package/src/lib/inputs/input-mask/input-mask.component.ts +0 -20
  98. package/src/lib/inputs/input-number/input-number.component.html +0 -15
  99. package/src/lib/inputs/input-number/input-number.component.scss +0 -0
  100. package/src/lib/inputs/input-number/input-number.component.ts +0 -51
  101. package/src/lib/inputs/input-password/input-password.component.html +0 -18
  102. package/src/lib/inputs/input-password/input-password.component.scss +0 -0
  103. package/src/lib/inputs/input-password/input-password.component.ts +0 -23
  104. package/src/lib/inputs/input-text/input-text.component.html +0 -14
  105. package/src/lib/inputs/input-text/input-text.component.scss +0 -18
  106. package/src/lib/inputs/input-text/input-text.component.ts +0 -17
  107. package/src/lib/inputs/input-textarea/input-textarea.component.html +0 -17
  108. package/src/lib/inputs/input-textarea/input-textarea.component.scss +0 -0
  109. package/src/lib/inputs/input-textarea/input-textarea.component.ts +0 -33
  110. package/src/lib/inputs/input-time/input-time.component.html +0 -18
  111. package/src/lib/inputs/input-time/input-time.component.scss +0 -0
  112. package/src/lib/inputs/input-time/input-time.component.ts +0 -20
  113. package/src/lib/inputs/kvinputs.module.ts +0 -53
  114. package/src/lib/inputs/multi-select/multi-select.component.html +0 -21
  115. package/src/lib/inputs/multi-select/multi-select.component.scss +0 -0
  116. package/src/lib/inputs/multi-select/multi-select.component.ts +0 -44
  117. package/src/lib/inputs/switch/switch.component.html +0 -11
  118. package/src/lib/inputs/switch/switch.component.scss +0 -3
  119. package/src/lib/inputs/switch/switch.component.ts +0 -24
  120. package/src/lib/keevo-components.module.ts +0 -17
  121. package/tsconfig.lib.json +0 -14
  122. package/tsconfig.lib.prod.json +0 -10
  123. package/tsconfig.spec.json +0 -14
@@ -1,53 +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
-
18
- @NgModule({
19
- declarations: [
20
- CheckComponent,
21
- DropdownComponent,
22
- InputCalendarComponent,
23
- InputMaskComponent,
24
- InputNumberComponent,
25
- InputPasswordComponent,
26
- InputTextComponent,
27
- InputTextareaComponent,
28
- InputTimeComponent,
29
- MultiSelectComponent,
30
- SwitchComponent,
31
- ],
32
- imports: [
33
- CommonModule,
34
- FormsModule,
35
- kvErrorModule,
36
- PrimeNgModule,
37
- ReactiveFormsModule,
38
- ],
39
- exports: [
40
- CheckComponent,
41
- DropdownComponent,
42
- InputCalendarComponent,
43
- InputMaskComponent,
44
- InputNumberComponent,
45
- InputPasswordComponent,
46
- InputTextComponent,
47
- InputTextareaComponent,
48
- InputTimeComponent,
49
- MultiSelectComponent,
50
- SwitchComponent,
51
- ]
52
- })
53
- export class KvInputsModule { }
@@ -1,21 +0,0 @@
1
- <span class="p-float-label">
2
- <p-multiSelect
3
- appendTo="body"
4
- display="chip"
5
- inputId="multiselect"
6
- [class]="baseInputClass"
7
- [disabled]="disabled"
8
- [options]="options"
9
- [optionLabel]="optionLabel"
10
- [optionValue]="optionValue"
11
- [filter]="filter"
12
- [showClear]="showClear"
13
- [(ngModel)]="value"
14
- (onChange)="selectionChange($event)"
15
- (onPanelHide)="panelHide($event)">
16
- </p-multiSelect>
17
- <label [for]="componentId">{{ label }}</label>
18
-
19
- <kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
20
- </span>
21
- <ng-content></ng-content>
@@ -1,44 +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-multi-select',
9
- templateUrl: './multi-select.component.html',
10
- styleUrls: ['./multi-select.component.scss'],
11
- providers: ComponentProviders(MultiSelectComponent),
12
- })
13
- export class MultiSelectComponent extends BaseComponentInput<any> implements OnInit {
14
-
15
- @Input() options: any;
16
- @Input() optionLabel!: string;
17
- @Input() optionValue!: string;
18
- @Input() filter: boolean = false;
19
- @Input() showClear: boolean = false;
20
-
21
- @Output() onSelectionChange: EventEmitter<any> = new EventEmitter();
22
- @Output() onPanelHide: EventEmitter<any> = new EventEmitter();
23
-
24
-
25
- constructor(componentService: ComponentService) {
26
- super(componentService);
27
- }
28
-
29
- override ngOnInit(): void {
30
- super.ngOnInit();
31
- }
32
-
33
- public override get baseInputClass(): string {
34
- return `p-multiselect-sm ${this.hasError ? 'ng-invalid ng-dirty' : ''}`;
35
- }
36
-
37
- selectionChange(event: Event) {
38
- this.onSelectionChange.emit(event);
39
- }
40
-
41
- panelHide(event: Event) {
42
- this.onPanelHide.emit(event);
43
- }
44
- }
@@ -1,11 +0,0 @@
1
- <div class="center field-checkbox">
2
-
3
- <p-inputSwitch
4
- [inputId]="componentId"
5
- [(ngModel)]="value"
6
- [disabled]="disabled">
7
- </p-inputSwitch>
8
- <label [for]="componentId">{{ label }}</label>
9
-
10
- <kv-error [hasError]="hasControlError()">{{ erroMessage() }}</kv-error>
11
- </div>
@@ -1,3 +0,0 @@
1
- p-inputSwitch {
2
- padding-right: 0.5rem;
3
- }
@@ -1,24 +0,0 @@
1
- import { Component, EventEmitter, 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'],
11
- providers: ComponentProviders(SwitchComponent),
12
- })
13
- export class SwitchComponent extends BaseComponentInput<boolean> implements OnInit {
14
-
15
- @Output() onSwitchChange: EventEmitter<any> = new EventEmitter();
16
-
17
- constructor(componentService: ComponentService) {
18
- super(componentService);
19
- }
20
-
21
- emitOnSwitchChange(event: any) {
22
- this.onSwitchChange.emit(event);
23
- }
24
- }
@@ -1,17 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { KvButtonsModule } from './buttons/kvbutton.module';
3
- import { KvInputsModule } from './inputs/kvinputs.module';
4
-
5
- @NgModule({
6
- declarations: [
7
- ],
8
- imports: [
9
- KvInputsModule,
10
- KvButtonsModule
11
- ],
12
- exports: [
13
- KvInputsModule,
14
- KvButtonsModule
15
- ]
16
- })
17
- export class KeevoComponentsModule { }
package/tsconfig.lib.json DELETED
@@ -1,14 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/lib",
6
- "declaration": true,
7
- "declarationMap": true,
8
- "inlineSources": true,
9
- "types": []
10
- },
11
- "exclude": [
12
- "**/*.spec.ts"
13
- ]
14
- }
@@ -1,10 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "./tsconfig.lib.json",
4
- "compilerOptions": {
5
- "declarationMap": false
6
- },
7
- "angularCompilerOptions": {
8
- "compilationMode": "partial"
9
- }
10
- }
@@ -1,14 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/spec",
6
- "types": [
7
- "jasmine"
8
- ]
9
- },
10
- "include": [
11
- "**/*.spec.ts",
12
- "**/*.d.ts"
13
- ]
14
- }