keevo-components 2.0.106 → 2.0.108

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 (47) hide show
  1. package/esm2022/lib/api/helpers/severity-color.mjs +73 -0
  2. package/esm2022/lib/api/types/severity.mjs +2 -0
  3. package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +2 -2
  4. package/esm2022/lib/components/kv-button/kv-button.component.mjs +2 -2
  5. package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +2 -2
  6. package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +2 -2
  7. package/esm2022/lib/components/kv-icon/kv-icon.component.mjs +30 -0
  8. package/esm2022/lib/components/kv-icon/kv-icon.model.mjs +2 -0
  9. package/esm2022/lib/components/kv-icon/kv-icon.module.mjs +24 -0
  10. package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +2 -2
  11. package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +2 -2
  12. package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +13 -8
  13. package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +2 -2
  14. package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +2 -2
  15. package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +2 -2
  16. package/esm2022/lib/components/kv-inputs/kv-input-number-addon/kv-input-number-addon.component.mjs +2 -2
  17. package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +2 -2
  18. package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +2 -2
  19. package/esm2022/lib/components/kv-inputs/kv-input-text-addon/kv-input-text-addon.component.mjs +2 -2
  20. package/esm2022/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.mjs +2 -2
  21. package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +2 -2
  22. package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +2 -2
  23. package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +2 -2
  24. package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +2 -2
  25. package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +2 -2
  26. package/esm2022/lib/components/kv-inputs/kv-tree-multi-select/kv-tree-multi-select.component.mjs +2 -2
  27. package/esm2022/lib/components/kv-layout/layout/kv-layout.component.mjs +2 -2
  28. package/esm2022/lib/components/kv-page-stepper/kv-page-stepper.component.mjs +2 -2
  29. package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +2 -2
  30. package/esm2022/lib/components/kv-stepper/kv-stepper.component.mjs +2 -2
  31. package/esm2022/lib/components/kv-widget-card/kv-widget-card.component.mjs +103 -0
  32. package/esm2022/public-api.mjs +11 -1
  33. package/fesm2022/keevo-components.mjs +202 -55
  34. package/fesm2022/keevo-components.mjs.map +1 -1
  35. package/lib/api/helpers/severity-color.d.ts +5 -0
  36. package/lib/api/types/severity.d.ts +2 -0
  37. package/lib/components/kv-button/kv-button.component.d.ts +3 -3
  38. package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +2 -2
  39. package/lib/components/kv-icon/kv-icon.component.d.ts +22 -0
  40. package/lib/components/kv-icon/kv-icon.model.d.ts +3 -0
  41. package/lib/components/kv-icon/kv-icon.module.d.ts +8 -0
  42. package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +3 -2
  43. package/lib/components/kv-tag/kv-tag.component.d.ts +1 -1
  44. package/lib/components/kv-widget-card/kv-widget-card.component.d.ts +60 -0
  45. package/package.json +1 -1
  46. package/public-api.d.ts +10 -0
  47. package/src/lib/components/keevo-components-styles.scss +5 -0
@@ -0,0 +1,5 @@
1
+ import Severity from "../types/severity";
2
+ export declare function severityColorNormal(severity: Severity): string;
3
+ export declare function severityColorHover(severity: Severity): string;
4
+ export declare function severityColorActive(severity: Severity): string;
5
+ export declare function severityColorText(severity: Severity): string;
@@ -0,0 +1,2 @@
1
+ type Severity = "primary" | "secondary" | "success" | "info" | "warning" | "help" | "danger";
2
+ export default Severity;
@@ -6,10 +6,10 @@ export declare class KvButtonComponent {
6
6
  fullWidth: import("@angular/core").InputSignal<boolean>;
7
7
  type: import("@angular/core").InputSignal<"text" | "outline" | undefined>;
8
8
  loading: import("@angular/core").InputSignal<boolean>;
9
- severity: import("@angular/core").InputSignal<"primary" | "secondary" | "tertiary" | "danger">;
10
- size: import("@angular/core").InputSignal<"small" | "normal" | "large">;
9
+ severity: import("@angular/core").InputSignal<"primary" | "secondary" | "danger" | "tertiary">;
10
+ size: import("@angular/core").InputSignal<"small" | "large" | "normal">;
11
11
  icon: import("@angular/core").ModelSignal<string>;
12
- iconPosition: import("@angular/core").InputSignal<"left" | "right">;
12
+ iconPosition: import("@angular/core").InputSignal<"right" | "left">;
13
13
  label: import("@angular/core").InputSignal<string>;
14
14
  disabled: import("@angular/core").InputSignal<boolean>;
15
15
  onClick: import("@angular/core").OutputEmitterRef<any>;
@@ -7,8 +7,8 @@ import * as i0 from "@angular/core";
7
7
  export declare class KvButtonPopupComponent extends BaseComponentButton {
8
8
  items: MenuItem[];
9
9
  classBtn: string;
10
- size: import("@angular/core").InputSignal<"small" | "normal" | "large">;
11
- type: import("@angular/core").InputSignal<"normal" | "text" | "outline">;
10
+ size: import("@angular/core").InputSignal<"small" | "large" | "normal">;
11
+ type: import("@angular/core").InputSignal<"text" | "normal" | "outline">;
12
12
  icon: string;
13
13
  constructor();
14
14
  handleShow(): void;
@@ -0,0 +1,22 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Componente para exibição de ícones na aplicação.
4
+ *
5
+ * O componente `kv-icon` permite renderizar ícones baseados no modelo fornecido.
6
+ *
7
+ * @example
8
+ * ```html
9
+ * <kv-icon [icon]="'info'" [severity]="'system'" [shape]="'circle'"></kv-icon>
10
+ * ```
11
+ *
12
+ * @input icon - Define o ícone a ser exibido.
13
+ * @input shape - Define a forma do ícone (opções: 'circle', 'hexagon', 'square').
14
+ * @input severity - Define a severidade do ícone (opções: 'system', 'warning', 'danger', 'success').
15
+ */
16
+ export declare class KvIconComponent {
17
+ icon: import("@angular/core").InputSignal<string>;
18
+ shape: import("@angular/core").InputSignal<"circle" | "hexagon" | "square">;
19
+ severity: import("@angular/core").InputSignal<"info" | "success" | "warning" | "danger" | "system" | "contrast">;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvIconComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvIconComponent, "kv-icon", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "shape": { "alias": "shape"; "required": true; "isSignal": true; }; "severity": { "alias": "severity"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
22
+ }
@@ -0,0 +1,3 @@
1
+ export type IconShapes = 'circle' | 'square' | 'hexagon';
2
+ export type IconSizes = 'small' | 'medium' | 'large';
3
+ export type IconSeverities = 'system' | 'success' | 'info' | 'warn' | 'danger' | 'contrast';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./kv-icon.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class KvIconModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvIconModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KvIconModule, [typeof i1.KvIconComponent], [typeof i2.CommonModule], [typeof i1.KvIconComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<KvIconModule>;
8
+ }
@@ -17,7 +17,6 @@ export declare class KvEditorComponent extends BaseComponentInput<string> implem
17
17
  */
18
18
  canvaHeigth: string;
19
19
  contentType: 'html' | 'text';
20
- readonly: boolean;
21
20
  debug: boolean;
22
21
  onTextChange: EventEmitter<any>;
23
22
  onSelectionChange: EventEmitter<any>;
@@ -39,6 +38,8 @@ export declare class KvEditorComponent extends BaseComponentInput<string> implem
39
38
  printButton: import("@angular/core").InputSignal<boolean>;
40
39
  labelEmptyDropdown: import("@angular/core").InputSignal<string>;
41
40
  instrucoesTemplate: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
41
+ showHeader: import("@angular/core").InputSignal<boolean>;
42
+ readonly: import("@angular/core").InputSignal<boolean>;
42
43
  idRelatorioSelected: import("@angular/core").Signal<number>;
43
44
  relatorio: import("@angular/core").Signal<KvEditorRelatorio | null>;
44
45
  isLoadingPdf: import("@angular/core").Signal<boolean>;
@@ -65,5 +66,5 @@ export declare class KvEditorComponent extends BaseComponentInput<string> implem
65
66
  showInstrucoes(): void;
66
67
  clearTemplate(): void;
67
68
  static ɵfac: i0.ɵɵFactoryDeclaration<KvEditorComponent, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<KvEditorComponent, "kv-editor", never, { "canvaHeigth": { "alias": "canvaHeigth"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "relatorios": { "alias": "relatorios"; "required": false; "isSignal": true; }; "idRelatorioInitial": { "alias": "idRelatorioInitial"; "required": false; "isSignal": true; }; "printButton": { "alias": "printButton"; "required": false; "isSignal": true; }; "labelEmptyDropdown": { "alias": "labelEmptyDropdown"; "required": false; "isSignal": true; }; "instrucoesTemplate": { "alias": "instrucoesTemplate"; "required": false; "isSignal": true; }; }, { "onTextChange": "onTextChange"; "onSelectionChange": "onSelectionChange"; "outputRaw": "outputRaw"; "outputHtml": "outputHtml"; "idRelatorioInitial": "idRelatorioInitialChange"; }, never, never, false, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvEditorComponent, "kv-editor", never, { "canvaHeigth": { "alias": "canvaHeigth"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "relatorios": { "alias": "relatorios"; "required": false; "isSignal": true; }; "idRelatorioInitial": { "alias": "idRelatorioInitial"; "required": false; "isSignal": true; }; "printButton": { "alias": "printButton"; "required": false; "isSignal": true; }; "labelEmptyDropdown": { "alias": "labelEmptyDropdown"; "required": false; "isSignal": true; }; "instrucoesTemplate": { "alias": "instrucoesTemplate"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onTextChange": "onTextChange"; "onSelectionChange": "onSelectionChange"; "outputRaw": "outputRaw"; "outputHtml": "outputHtml"; "idRelatorioInitial": "idRelatorioInitialChange"; }, never, never, false, never>;
69
70
  }
@@ -1,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class KvTagComponent {
3
- severity: import("@angular/core").InputSignal<"info" | "success" | "warn" | "danger" | "system" | "contrast">;
3
+ severity: import("@angular/core").InputSignal<"info" | "success" | "danger" | "system" | "contrast" | "warn">;
4
4
  border: import("@angular/core").InputSignal<boolean>;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<KvTagComponent, never>;
6
6
  static ɵcmp: i0.ɵɵComponentDeclaration<KvTagComponent, "kv-tag", never, { "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
@@ -0,0 +1,60 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface KvWidgetCardNavigationModel {
3
+ label: string;
4
+ redirectIcon: string;
5
+ action: () => void;
6
+ }
7
+ export declare class KvWidgetCardComponent {
8
+ /**
9
+ * Define o ícone do card.
10
+ * @required
11
+ */
12
+ icon: import("@angular/core").InputSignal<string>;
13
+ /**
14
+ * Define o formato do ícone do card.
15
+ * @required
16
+ */
17
+ iconShape: import("@angular/core").InputSignal<"circle" | "hexagon" | "square">;
18
+ /**
19
+ * Define a cor do ícone do card.
20
+ * @required
21
+ */
22
+ iconSeverity: import("@angular/core").InputSignal<"info" | "success" | "warning" | "danger" | "system" | "contrast">;
23
+ /**
24
+ * Título do card.
25
+ * @required
26
+ */
27
+ title: import("@angular/core").InputSignal<string>;
28
+ /**
29
+ * Define se a navegação do card deve ser exibida.
30
+ * @default true
31
+ */
32
+ showNavigation: import("@angular/core").InputSignal<boolean>;
33
+ /**
34
+ * Define se a borda do card deve ser exibida.
35
+ * @default false
36
+ */
37
+ border: import("@angular/core").InputSignal<boolean>;
38
+ /**
39
+ * Define o background-color do card.
40
+ * @default true
41
+ */
42
+ severity: import("@angular/core").InputSignal<"success" | "warning" | "danger" | "system">;
43
+ /**
44
+ * Valor do indicador principal do card.
45
+ * @default
46
+ */
47
+ indicator: import("@angular/core").InputSignal<number | undefined>;
48
+ /**
49
+ * Mensagem informativa adicional exibida no card.
50
+ * @default ''
51
+ */
52
+ informationMessage: import("@angular/core").InputSignal<string>;
53
+ /**
54
+ * Dados de navegação do card, incluindo rótulo, ícone e ação a ser executada.
55
+ * @default {label: '', redirectIcon: '', action: function que lança erro}
56
+ */
57
+ navigationData: import("@angular/core").InputSignal<KvWidgetCardNavigationModel>;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvWidgetCardComponent, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvWidgetCardComponent, "kv-widget-card", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "iconShape": { "alias": "iconShape"; "required": true; "isSignal": true; }; "iconSeverity": { "alias": "iconSeverity"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "showNavigation": { "alias": "showNavigation"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "informationMessage": { "alias": "informationMessage"; "required": false; "isSignal": true; }; "navigationData": { "alias": "navigationData"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
60
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "2.0.106",
3
+ "version": "2.0.108",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",
package/public-api.d.ts CHANGED
@@ -286,3 +286,13 @@ export { KvTagConfig, KvTagsComponent } from './lib/components/kv-tags/kv-tags.c
286
286
  * Timeline
287
287
  */
288
288
  export * from './lib/components/kv-timeline/kv-timeline.component';
289
+ /**
290
+ * Icon
291
+ */
292
+ export * from './lib/components/kv-icon/kv-icon.component';
293
+ export * from './lib/components/kv-icon/kv-icon.module';
294
+ export * from './lib/components/kv-icon/kv-icon.model';
295
+ /**
296
+ * Widget Card
297
+ */
298
+ export * from './lib/components/kv-widget-card/kv-widget-card.component';
@@ -19,6 +19,11 @@ $font-family-keevo: "Inter", "Inter var", sans-serif;
19
19
  --kv-secondary-color: 0, 37, 66;
20
20
  --kv-tertiary-color: 165, 165, 165;
21
21
  --kv-danger-color: 220, 53, 69;
22
+
23
+ --kv-success-color: 75, 181, 67;
24
+ --kv-info-color: 0, 123, 255;
25
+ --kv-warn-color: 241, 90, 36;
26
+ --kv-contrast-color: 33, 37, 41;
22
27
  }
23
28
 
24
29
  ::ng-deep .padrao {