valtech-components 1.11.76 → 2.0.2

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 (166) hide show
  1. package/README.md +5 -84
  2. package/ng-package.json +7 -0
  3. package/package.json +5 -29
  4. package/src/lib/valtech-components.component.spec.ts +23 -0
  5. package/src/lib/valtech-components.component.ts +16 -0
  6. package/src/lib/valtech-components.service.spec.ts +16 -0
  7. package/src/lib/valtech-components.service.ts +9 -0
  8. package/src/public-api.ts +6 -0
  9. package/tsconfig.lib.json +14 -0
  10. package/tsconfig.lib.prod.json +10 -0
  11. package/tsconfig.spec.json +14 -0
  12. package/LICENSE +0 -21
  13. package/esm2022/lib/components/atoms/avatar/avatar.component.mjs +0 -31
  14. package/esm2022/lib/components/atoms/box/box.component.mjs +0 -32
  15. package/esm2022/lib/components/atoms/button/button.component.mjs +0 -34
  16. package/esm2022/lib/components/atoms/button/factory.mjs +0 -217
  17. package/esm2022/lib/components/atoms/button/types.mjs +0 -2
  18. package/esm2022/lib/components/atoms/display/display.component.mjs +0 -20
  19. package/esm2022/lib/components/atoms/divider/divider.component.mjs +0 -24
  20. package/esm2022/lib/components/atoms/href/href.component.mjs +0 -32
  21. package/esm2022/lib/components/atoms/href/types.mjs +0 -2
  22. package/esm2022/lib/components/atoms/icon/icon.component.mjs +0 -23
  23. package/esm2022/lib/components/atoms/image/image.component.mjs +0 -23
  24. package/esm2022/lib/components/atoms/image/types.mjs +0 -2
  25. package/esm2022/lib/components/atoms/progress-bar/progress-bar.component.mjs +0 -32
  26. package/esm2022/lib/components/atoms/text/text.component.mjs +0 -24
  27. package/esm2022/lib/components/atoms/title/title.component.mjs +0 -20
  28. package/esm2022/lib/components/molecules/alert-box/alert-box.component.mjs +0 -31
  29. package/esm2022/lib/components/molecules/button-group/button-group.component.mjs +0 -36
  30. package/esm2022/lib/components/molecules/card/card.component.mjs +0 -33
  31. package/esm2022/lib/components/molecules/card/types.mjs +0 -16
  32. package/esm2022/lib/components/molecules/check-input/check-input.component.mjs +0 -14
  33. package/esm2022/lib/components/molecules/comment-input/comment-input.component.mjs +0 -19
  34. package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +0 -27
  35. package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +0 -20
  36. package/esm2022/lib/components/molecules/email-input/email-input.component.mjs +0 -19
  37. package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +0 -37
  38. package/esm2022/lib/components/molecules/hint/hint.component.mjs +0 -29
  39. package/esm2022/lib/components/molecules/hour-input/hour-input.component.mjs +0 -19
  40. package/esm2022/lib/components/molecules/link/link.component.mjs +0 -27
  41. package/esm2022/lib/components/molecules/links-cake/links-cake.component.mjs +0 -24
  42. package/esm2022/lib/components/molecules/no-content/no-content.component.mjs +0 -24
  43. package/esm2022/lib/components/molecules/no-content/types.mjs +0 -2
  44. package/esm2022/lib/components/molecules/notes-box/notes-box.component.mjs +0 -29
  45. package/esm2022/lib/components/molecules/number-input/number-input.component.mjs +0 -19
  46. package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +0 -21
  47. package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +0 -39
  48. package/esm2022/lib/components/molecules/progress-status/progress-status.component.mjs +0 -34
  49. package/esm2022/lib/components/molecules/progress-status/types.mjs +0 -2
  50. package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +0 -27
  51. package/esm2022/lib/components/molecules/prompter/types.mjs +0 -2
  52. package/esm2022/lib/components/molecules/radio-input/radio-input.component.mjs +0 -20
  53. package/esm2022/lib/components/molecules/searchbar/searchbar.component.mjs +0 -35
  54. package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +0 -20
  55. package/esm2022/lib/components/molecules/title-block/title-block.component.mjs +0 -26
  56. package/esm2022/lib/components/molecules/title-block/types.mjs +0 -2
  57. package/esm2022/lib/components/organisms/banner/banner.component.mjs +0 -32
  58. package/esm2022/lib/components/organisms/banner/types.mjs +0 -2
  59. package/esm2022/lib/components/organisms/footer/footer.component.mjs +0 -25
  60. package/esm2022/lib/components/organisms/footer/types.mjs +0 -2
  61. package/esm2022/lib/components/organisms/form/factory.mjs +0 -8
  62. package/esm2022/lib/components/organisms/form/form-footer/form-footer.component.mjs +0 -36
  63. package/esm2022/lib/components/organisms/form/form.component.mjs +0 -83
  64. package/esm2022/lib/components/organisms/header/header.component.mjs +0 -24
  65. package/esm2022/lib/components/organisms/header/types.mjs +0 -2
  66. package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +0 -44
  67. package/esm2022/lib/components/organisms/toolbar/types.mjs +0 -8
  68. package/esm2022/lib/components/organisms/wizard/types.mjs +0 -7
  69. package/esm2022/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.mjs +0 -57
  70. package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +0 -72
  71. package/esm2022/lib/components/types.mjs +0 -29
  72. package/esm2022/lib/services/download.service.mjs +0 -63
  73. package/esm2022/lib/services/lang-provider/components/lang-settings.mjs +0 -13
  74. package/esm2022/lib/services/lang-provider/components/theme-settings.mjs +0 -15
  75. package/esm2022/lib/services/lang-provider/content.mjs +0 -8
  76. package/esm2022/lib/services/lang-provider/lang-provider.service.mjs +0 -39
  77. package/esm2022/lib/services/lang-provider/types.mjs +0 -14
  78. package/esm2022/lib/services/local-storage.service.mjs +0 -16
  79. package/esm2022/lib/services/theme.service.mjs +0 -97
  80. package/esm2022/lib/shared/constants/storage.mjs +0 -3
  81. package/esm2022/lib/shared/utils/dom.mjs +0 -17
  82. package/esm2022/lib/valtech-components.module.mjs +0 -239
  83. package/esm2022/public-api.mjs +0 -68
  84. package/esm2022/valtech-components.mjs +0 -5
  85. package/fesm2022/valtech-components.mjs +0 -1813
  86. package/fesm2022/valtech-components.mjs.map +0 -1
  87. package/index.d.ts +0 -5
  88. package/lib/components/atoms/avatar/avatar.component.d.ts +0 -14
  89. package/lib/components/atoms/box/box.component.d.ts +0 -15
  90. package/lib/components/atoms/button/button.component.d.ts +0 -20
  91. package/lib/components/atoms/button/factory.d.ts +0 -71
  92. package/lib/components/atoms/button/types.d.ts +0 -22
  93. package/lib/components/atoms/display/display.component.d.ts +0 -12
  94. package/lib/components/atoms/divider/divider.component.d.ts +0 -11
  95. package/lib/components/atoms/href/href.component.d.ts +0 -15
  96. package/lib/components/atoms/href/types.d.ts +0 -9
  97. package/lib/components/atoms/icon/icon.component.d.ts +0 -12
  98. package/lib/components/atoms/image/image.component.d.ts +0 -12
  99. package/lib/components/atoms/image/types.d.ts +0 -11
  100. package/lib/components/atoms/progress-bar/progress-bar.component.d.ts +0 -15
  101. package/lib/components/atoms/text/text.component.d.ts +0 -13
  102. package/lib/components/atoms/title/title.component.d.ts +0 -12
  103. package/lib/components/molecules/alert-box/alert-box.component.d.ts +0 -14
  104. package/lib/components/molecules/button-group/button-group.component.d.ts +0 -15
  105. package/lib/components/molecules/card/card.component.d.ts +0 -16
  106. package/lib/components/molecules/card/types.d.ts +0 -33
  107. package/lib/components/molecules/check-input/check-input.component.d.ts +0 -8
  108. package/lib/components/molecules/comment-input/comment-input.component.d.ts +0 -12
  109. package/lib/components/molecules/content-loader/content-loader.component.d.ts +0 -13
  110. package/lib/components/molecules/date-input/date-input.component.d.ts +0 -12
  111. package/lib/components/molecules/email-input/email-input.component.d.ts +0 -12
  112. package/lib/components/molecules/file-input/file-input.component.d.ts +0 -18
  113. package/lib/components/molecules/hint/hint.component.d.ts +0 -13
  114. package/lib/components/molecules/hour-input/hour-input.component.d.ts +0 -12
  115. package/lib/components/molecules/link/link.component.d.ts +0 -14
  116. package/lib/components/molecules/links-cake/links-cake.component.d.ts +0 -12
  117. package/lib/components/molecules/no-content/no-content.component.d.ts +0 -12
  118. package/lib/components/molecules/no-content/types.d.ts +0 -6
  119. package/lib/components/molecules/notes-box/notes-box.component.d.ts +0 -14
  120. package/lib/components/molecules/number-input/number-input.component.d.ts +0 -12
  121. package/lib/components/molecules/password-input/password-input.component.d.ts +0 -13
  122. package/lib/components/molecules/pin-input/pin-input.component.d.ts +0 -17
  123. package/lib/components/molecules/progress-status/progress-status.component.d.ts +0 -14
  124. package/lib/components/molecules/progress-status/types.d.ts +0 -10
  125. package/lib/components/molecules/prompter/prompter.component.d.ts +0 -12
  126. package/lib/components/molecules/prompter/types.d.ts +0 -11
  127. package/lib/components/molecules/radio-input/radio-input.component.d.ts +0 -12
  128. package/lib/components/molecules/searchbar/searchbar.component.d.ts +0 -14
  129. package/lib/components/molecules/text-input/text-input.component.d.ts +0 -12
  130. package/lib/components/molecules/title-block/title-block.component.d.ts +0 -13
  131. package/lib/components/molecules/title-block/types.d.ts +0 -11
  132. package/lib/components/organisms/banner/banner.component.d.ts +0 -14
  133. package/lib/components/organisms/banner/types.d.ts +0 -11
  134. package/lib/components/organisms/footer/footer.component.d.ts +0 -12
  135. package/lib/components/organisms/footer/types.d.ts +0 -6
  136. package/lib/components/organisms/form/factory.d.ts +0 -5
  137. package/lib/components/organisms/form/form-footer/form-footer.component.d.ts +0 -16
  138. package/lib/components/organisms/form/form.component.d.ts +0 -23
  139. package/lib/components/organisms/header/header.component.d.ts +0 -12
  140. package/lib/components/organisms/header/types.d.ts +0 -6
  141. package/lib/components/organisms/toolbar/toolbar.component.d.ts +0 -20
  142. package/lib/components/organisms/toolbar/types.d.ts +0 -24
  143. package/lib/components/organisms/wizard/types.d.ts +0 -21
  144. package/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.d.ts +0 -21
  145. package/lib/components/organisms/wizard/wizard.component.d.ts +0 -22
  146. package/lib/components/types.d.ts +0 -78
  147. package/lib/services/download.service.d.ts +0 -8
  148. package/lib/services/lang-provider/components/lang-settings.d.ts +0 -3
  149. package/lib/services/lang-provider/components/theme-settings.d.ts +0 -3
  150. package/lib/services/lang-provider/content.d.ts +0 -6
  151. package/lib/services/lang-provider/lang-provider.service.d.ts +0 -16
  152. package/lib/services/lang-provider/types.d.ts +0 -18
  153. package/lib/services/local-storage.service.d.ts +0 -6
  154. package/lib/services/theme.service.d.ts +0 -27
  155. package/lib/shared/constants/storage.d.ts +0 -2
  156. package/lib/shared/utils/dom.d.ts +0 -3
  157. package/lib/valtech-components.module.d.ts +0 -60
  158. package/public-api.d.ts +0 -64
  159. package/src/lib/components/styles/functions.scss +0 -20
  160. package/src/lib/components/styles/media-queries.scss +0 -66
  161. package/src/lib/components/styles/mixins.scss +0 -66
  162. package/src/lib/components/styles/overrides.scss +0 -158
  163. package/src/lib/components/styles/typography.scss +0 -189
  164. package/src/lib/components/styles/variables.scss +0 -82
  165. package/styles/overrides.scss +0 -1
  166. package/styles/utils.scss +0 -5
@@ -1,12 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { InputMetadata } from '../../types';
3
- import { FormControl } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export declare class RadioInputComponent implements OnInit {
6
- control: FormControl;
7
- metadata: InputMetadata;
8
- constructor();
9
- ngOnInit(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RadioInputComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioInputComponent, "val-radio-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
12
- }
@@ -1,14 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class SearchbarComponent {
4
- disabled: boolean;
5
- focusEvent: EventEmitter<void>;
6
- blurEvent: EventEmitter<void>;
7
- filterEvent: EventEmitter<string>;
8
- constructor();
9
- onSearch($event: any): void;
10
- onFocus(): void;
11
- onBlur(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SearchbarComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchbarComponent, "app-searchbar", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "filterEvent": "filterEvent"; }, never, never, false, never>;
14
- }
@@ -1,12 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormControl } from '@angular/forms';
3
- import { InputMetadata } from '../../types';
4
- import * as i0 from "@angular/core";
5
- export declare class TextInputComponent implements OnInit {
6
- control: FormControl;
7
- metadata: InputMetadata;
8
- constructor();
9
- ngOnInit(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "val-text-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
12
- }
@@ -1,13 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { TitleMetada } from './types';
3
- import * as i0 from "@angular/core";
4
- export declare class TitleBlockComponent implements OnInit {
5
- position: 'center' | 'left' | 'right';
6
- title?: TitleMetada;
7
- aboveTitle?: TitleMetada;
8
- bellowTitle?: TitleMetada;
9
- constructor();
10
- ngOnInit(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TitleBlockComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<TitleBlockComponent, "val-title-block", never, { "position": { "alias": "position"; "required": false; }; "title": { "alias": "title"; "required": false; }; "aboveTitle": { "alias": "aboveTitle"; "required": false; }; "bellowTitle": { "alias": "bellowTitle"; "required": false; }; }, {}, never, never, false, never>;
13
- }
@@ -1,11 +0,0 @@
1
- import { Color } from '@ionic/core';
2
- export type TitleMetada = {
3
- text: string;
4
- color: Color;
5
- size: 'small' | 'medium' | 'large' | 'xlarge';
6
- };
7
- export type TitleBlockMetada = {
8
- title?: TitleMetada;
9
- aboveTitle?: TitleMetada;
10
- bellowTitle?: TitleMetada;
11
- };
@@ -1,14 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { BannerMetadata } from './types';
3
- import * as i0 from "@angular/core";
4
- export declare class BannerComponent implements OnInit {
5
- props: BannerMetadata;
6
- onClick: EventEmitter<string>;
7
- onClose: EventEmitter<any>;
8
- constructor();
9
- ngOnInit(): void;
10
- clickHandler(token?: string): void;
11
- closeHandler(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<BannerComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<BannerComponent, "val-banner", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; "onClose": "onClose"; }, never, never, false, never>;
14
- }
@@ -1,11 +0,0 @@
1
- import { Color } from '@ionic/core';
2
- import { TitleBlockMetada } from '../../molecules/title-block/types';
3
- import { ButtonMetadata } from '../../atoms/button/types';
4
- export type BannerMetadata = {
5
- color: Color;
6
- bordered: boolean;
7
- closable: boolean;
8
- mode: 'row' | 'column' | 'hybrid' | 'center';
9
- actions: ButtonMetadata[];
10
- content: TitleBlockMetada;
11
- };
@@ -1,12 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { FooterMetadata } from './types';
3
- import * as i0 from "@angular/core";
4
- export declare class FooterComponent implements OnInit {
5
- props: FooterMetadata;
6
- onClick: EventEmitter<string>;
7
- constructor();
8
- ngOnInit(): void;
9
- clickHandler(token?: string): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "val-footer", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, ["[extra]"], false, never>;
12
- }
@@ -1,6 +0,0 @@
1
- import { ToolbarMetadata } from "../toolbar/types";
2
- export type FooterMetadata = {
3
- translucent?: boolean;
4
- bordered?: boolean;
5
- toolbar: ToolbarMetadata;
6
- };
@@ -1,5 +0,0 @@
1
- import { ValidatorFn } from "@angular/forms";
2
- export declare const maxLength: (field: string, max: number) => {
3
- validator: ValidatorFn;
4
- error: string;
5
- };
@@ -1,16 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { FormSubmit } from '../../../types';
4
- import { ButtonMetadata } from '../../../atoms/button/types';
5
- import * as i0 from "@angular/core";
6
- export declare class FormFooterComponent implements OnInit {
7
- form: FormGroup;
8
- action: ButtonMetadata;
9
- onSubmit: EventEmitter<FormSubmit>;
10
- constructor();
11
- ngOnInit(): void;
12
- submitHandler(token?: string): Promise<void>;
13
- get actions(): ButtonMetadata[];
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFooterComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFooterComponent, "val-form-footer", never, { "form": { "alias": "form"; "required": false; }; "action": { "alias": "action"; "required": false; }; }, { "onSubmit": "onSubmit"; }, never, never, false, never>;
16
- }
@@ -1,23 +0,0 @@
1
- import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
- import { FormMetadata, InputType, FormSubmit } from '../../types';
3
- import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
4
- import { ButtonMetadata } from '../../atoms/button/types';
5
- import * as i0 from "@angular/core";
6
- export declare class FormComponent implements OnInit {
7
- private fb;
8
- private elementRef;
9
- props: FormMetadata;
10
- onSubmit: EventEmitter<FormSubmit>;
11
- onInvalid: EventEmitter<any>;
12
- form: FormGroup;
13
- types: typeof InputType;
14
- constructor(fb: FormBuilder, elementRef: ElementRef);
15
- ngOnInit(): void;
16
- submitHandler(token?: string): Promise<void>;
17
- getControl(field: string): FormControl;
18
- get isAtEndOfForm(): boolean;
19
- get Form(): FormGroup;
20
- get actions(): ButtonMetadata[];
21
- static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "val-form", never, { "props": { "alias": "props"; "required": false; }; }, { "onSubmit": "onSubmit"; "onInvalid": "onInvalid"; }, never, never, false, never>;
23
- }
@@ -1,12 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { HeaderMetadata } from './types';
3
- import * as i0 from "@angular/core";
4
- export declare class HeaderComponent implements OnInit {
5
- props: HeaderMetadata;
6
- onClick: EventEmitter<string>;
7
- constructor();
8
- ngOnInit(): void;
9
- clickHandler(token?: string): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "val-header", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, never, false, never>;
12
- }
@@ -1,6 +0,0 @@
1
- import { ToolbarMetadata } from "../toolbar/types";
2
- export type HeaderMetadata = {
3
- translucent?: boolean;
4
- bordered?: boolean;
5
- toolbar: ToolbarMetadata;
6
- };
@@ -1,20 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { NavController } from '@ionic/angular';
3
- import { ToolbarAction, ToolbarMetadata, ToolbarActionType } from './types';
4
- import * as i0 from "@angular/core";
5
- export declare class ToolbarComponent implements OnInit {
6
- private navCtrl;
7
- actionTypes: typeof ToolbarActionType;
8
- props: ToolbarMetadata;
9
- onClick: EventEmitter<string>;
10
- constructor(navCtrl: NavController);
11
- ngOnInit(): void;
12
- goBack(): void;
13
- rightActions(): ToolbarAction[];
14
- leftActions(): ToolbarAction[];
15
- someInRight(): boolean;
16
- someInLeft(): boolean;
17
- clickHandler(token?: string): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "val-toolbar", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, ["[toolbar-bottom]"], false, never>;
20
- }
@@ -1,24 +0,0 @@
1
- import { Color } from '@ionic/core';
2
- import { ImageMetadata } from '../../atoms/image/types';
3
- export declare enum ToolbarActionType {
4
- AVATAR = "AVATAR",
5
- ICON = "ICON",
6
- IMAGE = "IMAGE",
7
- BUTTON = "BUTTON"
8
- }
9
- export type ToolbarAction = {
10
- type: 'AVATAR' | 'ICON' | 'IMAGE' | 'BUTTON';
11
- token?: string;
12
- position: 'left' | 'right' | 'center';
13
- description?: string;
14
- image?: ImageMetadata;
15
- };
16
- export type ToolbarMetadata = {
17
- withBack: boolean;
18
- backText?: string;
19
- withActions: boolean;
20
- color?: Color;
21
- textColor?: Color;
22
- title: string;
23
- actions: ToolbarAction[];
24
- };
@@ -1,21 +0,0 @@
1
- import { ButtonMetadata } from "../../atoms/button/types";
2
- import { NoContentMetadata } from "../../molecules/no-content/types";
3
- import { ComponentState } from "../../types";
4
- export type WizardMetadata = {
5
- state: ComponentState;
6
- current: number;
7
- steps: Steps;
8
- error: Step;
9
- };
10
- export type Step = {
11
- titles: NoContentMetadata;
12
- buttons: ButtonMetadata[];
13
- };
14
- export type Steps = {
15
- [step: number]: Step;
16
- };
17
- export declare enum MOTION {
18
- BACKWARD = 0,
19
- FORWARD = 1,
20
- RETRY = 2
21
- }
@@ -1,21 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { MOTION, Step, WizardMetadata } from '../types';
3
- import { ButtonMetadata } from '../../../atoms/button/types';
4
- import * as i0 from "@angular/core";
5
- export declare class WizardFooterComponent implements OnInit {
6
- props: WizardMetadata;
7
- onClick: EventEmitter<{
8
- current: number;
9
- motion: MOTION;
10
- }>;
11
- wrapperId: string;
12
- constructor();
13
- ngOnInit(): void;
14
- clickHandler(token?: string): void;
15
- get Current(): Step;
16
- get Progress(): number;
17
- get actions(): ButtonMetadata[];
18
- tryToStep(motion: MOTION): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<WizardFooterComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<WizardFooterComponent, "val-wizard-footer", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, never, false, never>;
21
- }
@@ -1,22 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { MOTION, Step, WizardMetadata } from './types';
3
- import * as i0 from "@angular/core";
4
- export declare class WizardComponent implements OnInit {
5
- props: WizardMetadata;
6
- onClick: EventEmitter<{
7
- current: number;
8
- motion: MOTION;
9
- }>;
10
- wrapperId: string;
11
- constructor();
12
- ngOnInit(): void;
13
- working(): void;
14
- done(): void;
15
- get Current(): Step;
16
- setCurrent(newStep: number): void;
17
- setError(error: string): void;
18
- reset(): void;
19
- clickHandler(token?: string): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<WizardComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "val-wizard", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, ["[step]"], false, never>;
22
- }
@@ -1,78 +0,0 @@
1
- import { ValidatorFn } from "@angular/forms";
2
- import { ButtonMetadata } from "./atoms/button/types";
3
- export type ComponentState = 'ENABLED' | 'DISABLED' | 'WORKING' | 'ERROR';
4
- export declare const ComponentStates: {
5
- ENABLED: "ENABLED";
6
- DISABLED: "DISABLED";
7
- WORKING: "WORKING";
8
- ERROR: "ERROR";
9
- };
10
- export declare enum ActionType {
11
- BROWSER_NEW_TAB = 0,
12
- BROWSER_DOWNLOAD = 1,
13
- NATIVE_DOWNLOAD = 2,
14
- APP_NAVIGATION = 3,
15
- BROWSER_NAVIGATION = 4
16
- }
17
- export type Action = {
18
- description: string;
19
- type: ActionType;
20
- source: string;
21
- };
22
- export declare enum InputType {
23
- TEXT = 0,
24
- EMAIL = 1,
25
- PASSWORD = 2,
26
- COMMENT = 3,
27
- NUMBER = 4,
28
- PIN_CODE = 5,
29
- DATE = 6,
30
- HOUR = 7,
31
- CHECK = 8,
32
- RADIO = 9,
33
- SELECT = 10,
34
- FILE = 11
35
- }
36
- export type InputOption = {
37
- id: string;
38
- name: string;
39
- selected?: boolean;
40
- order: number;
41
- };
42
- export type InputMetadata = {
43
- token: string;
44
- label: string;
45
- name: string;
46
- hint: string;
47
- placeholder: string;
48
- type: InputType;
49
- order: number;
50
- validators: ValidatorFn[];
51
- options?: InputOption[];
52
- range?: {
53
- min: number;
54
- max: number;
55
- };
56
- errors: {
57
- [key: string]: string;
58
- };
59
- value?: string;
60
- };
61
- export type FormSection = {
62
- name: string;
63
- order: number;
64
- fields: InputMetadata[];
65
- };
66
- export type FormSubmit = {
67
- fields: {
68
- key: string;
69
- value: string;
70
- }[];
71
- token?: string;
72
- };
73
- export type FormMetadata = {
74
- name: string;
75
- sections: FormSection[];
76
- actions: ButtonMetadata;
77
- state: ComponentState;
78
- };
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class DownloadService {
3
- getFileNameFromUrl(url: string): string;
4
- openNewTab(url: string): void;
5
- downloadLinkFromBrowser(url: string): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DownloadService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<DownloadService>;
8
- }
@@ -1,3 +0,0 @@
1
- import { TextContent } from '../types';
2
- declare const _default: TextContent;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { TextContent } from "../types";
2
- declare const _default: TextContent;
3
- export default _default;
@@ -1,6 +0,0 @@
1
- import { TextContent } from './types';
2
- export interface Provider {
3
- [x: string]: TextContent;
4
- }
5
- declare const content: Provider;
6
- export default content;
@@ -1,16 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { LangOption, LanguageText, ContentProvider } from './types';
3
- import { ValtechConfig } from '../../valtech-components.module';
4
- import * as i0 from "@angular/core";
5
- export declare class LangService {
6
- content: ContentProvider;
7
- default: LangOption;
8
- selectedLang: BehaviorSubject<LangOption>;
9
- config: ValtechConfig;
10
- constructor(config: ValtechConfig);
11
- Text(className: string): LanguageText;
12
- get Lang(): LangOption;
13
- set Lang(lang: LangOption);
14
- static ɵfac: i0.ɵɵFactoryDeclaration<LangService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<LangService>;
16
- }
@@ -1,18 +0,0 @@
1
- export type LanguageText = {
2
- [key: string]: string;
3
- };
4
- export type LanguagesContent = {
5
- [key: string]: LanguageText;
6
- };
7
- export type ContentProvider = {
8
- [x: string]: TextContent;
9
- };
10
- export declare class TextContent {
11
- text: LanguagesContent;
12
- constructor(text: LanguagesContent);
13
- get Content(): LanguagesContent;
14
- }
15
- export declare enum LangOption {
16
- ES = "es",
17
- EN = "en"
18
- }
@@ -1,6 +0,0 @@
1
- export declare class LocalStorageService {
2
- static set<T>(reference: string, value: T): void;
3
- static get<T>(reference: string): T;
4
- static remove(reference: string): void;
5
- static clear(): void;
6
- }
@@ -1,27 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare enum ThemeOption {
4
- LIGHT = "light",
5
- DARK = "dark",
6
- AUTO = "auto"
7
- }
8
- export declare class ThemeService {
9
- lightToggle: boolean;
10
- darkToggle: boolean;
11
- autoToggle: boolean;
12
- currentOption: ThemeOption;
13
- themeOptions: typeof ThemeOption;
14
- prefersDark: boolean;
15
- default: ThemeOption;
16
- theme: BehaviorSubject<ThemeOption>;
17
- constructor();
18
- private handleAutoConfiguration;
19
- private handleDarkPreference;
20
- private handleLightPreference;
21
- get Theme(): ThemeOption;
22
- set Theme(theme: ThemeOption);
23
- toggleTheme(name: string, shouldAdd: boolean): void;
24
- toggleUserPreference(option: ThemeOption): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
27
- }
@@ -1,2 +0,0 @@
1
- export declare const LANG = "LANG";
2
- export declare const THEME = "THEME";
@@ -1,3 +0,0 @@
1
- import { ElementRef } from "@angular/core";
2
- export declare const goToTop: (id: string) => void;
3
- export declare const isAtEnd: (elementRef: ElementRef) => boolean;
@@ -1,60 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { Provider } from './services/lang-provider/content';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./components/atoms/button/button.component";
5
- import * as i2 from "./components/atoms/box/box.component";
6
- import * as i3 from "./components/atoms/display/display.component";
7
- import * as i4 from "./components/atoms/text/text.component";
8
- import * as i5 from "./components/atoms/title/title.component";
9
- import * as i6 from "./components/atoms/avatar/avatar.component";
10
- import * as i7 from "./components/atoms/divider/divider.component";
11
- import * as i8 from "./components/molecules/content-loader/content-loader.component";
12
- import * as i9 from "./components/molecules/link/link.component";
13
- import * as i10 from "./components/molecules/searchbar/searchbar.component";
14
- import * as i11 from "./components/organisms/toolbar/toolbar.component";
15
- import * as i12 from "./components/atoms/icon/icon.component";
16
- import * as i13 from "./components/molecules/button-group/button-group.component";
17
- import * as i14 from "./components/molecules/title-block/title-block.component";
18
- import * as i15 from "./components/molecules/alert-box/alert-box.component";
19
- import * as i16 from "./components/organisms/banner/banner.component";
20
- import * as i17 from "./components/molecules/notes-box/notes-box.component";
21
- import * as i18 from "./components/atoms/image/image.component";
22
- import * as i19 from "./components/molecules/no-content/no-content.component";
23
- import * as i20 from "./components/atoms/href/href.component";
24
- import * as i21 from "./components/atoms/progress-bar/progress-bar.component";
25
- import * as i22 from "./components/molecules/links-cake/links-cake.component";
26
- import * as i23 from "./components/molecules/progress-status/progress-status.component";
27
- import * as i24 from "./components/molecules/check-input/check-input.component";
28
- import * as i25 from "./components/molecules/comment-input/comment-input.component";
29
- import * as i26 from "./components/molecules/date-input/date-input.component";
30
- import * as i27 from "./components/molecules/email-input/email-input.component";
31
- import * as i28 from "./components/molecules/file-input/file-input.component";
32
- import * as i29 from "./components/molecules/hint/hint.component";
33
- import * as i30 from "./components/molecules/hour-input/hour-input.component";
34
- import * as i31 from "./components/molecules/number-input/number-input.component";
35
- import * as i32 from "./components/molecules/password-input/password-input.component";
36
- import * as i33 from "./components/molecules/pin-input/pin-input.component";
37
- import * as i34 from "./components/molecules/prompter/prompter.component";
38
- import * as i35 from "./components/molecules/radio-input/radio-input.component";
39
- import * as i36 from "./components/molecules/text-input/text-input.component";
40
- import * as i37 from "./components/organisms/footer/footer.component";
41
- import * as i38 from "./components/organisms/form/form.component";
42
- import * as i39 from "./components/organisms/form/form-footer/form-footer.component";
43
- import * as i40 from "./components/organisms/header/header.component";
44
- import * as i41 from "./components/organisms/wizard/wizard.component";
45
- import * as i42 from "./components/organisms/wizard/wizard-footer/wizard-footer.component";
46
- import * as i43 from "./components/molecules/card/card.component";
47
- import * as i44 from "@angular/common";
48
- import * as i45 from "@angular/common/http";
49
- import * as i46 from "@ionic/angular";
50
- import * as i47 from "@angular/forms";
51
- import * as i48 from "ng-otp-input";
52
- export interface ValtechConfig {
53
- content: Provider;
54
- }
55
- export declare const ValtechConfigService: InjectionToken<ValtechConfig>;
56
- export declare class ValtechComponentsModule {
57
- static ɵfac: i0.ɵɵFactoryDeclaration<ValtechComponentsModule, never>;
58
- static ɵmod: i0.ɵɵNgModuleDeclaration<ValtechComponentsModule, [typeof i1.ButtonComponent, typeof i2.BoxComponent, typeof i3.DisplayComponent, typeof i4.TextComponent, typeof i5.TitleComponent, typeof i6.AvatarComponent, typeof i7.DividerComponent, typeof i8.ContentLoaderComponent, typeof i9.LinkComponent, typeof i10.SearchbarComponent, typeof i11.ToolbarComponent, typeof i12.IconComponent, typeof i13.ButtonGroupComponent, typeof i14.TitleBlockComponent, typeof i15.AlertBoxComponent, typeof i16.BannerComponent, typeof i17.NotesBoxComponent, typeof i18.ImageComponent, typeof i19.NoContentComponent, typeof i20.HrefComponent, typeof i21.ProgressBarComponent, typeof i22.LinksCakeComponent, typeof i23.ProgressStatusComponent, typeof i24.CheckInputComponent, typeof i25.CommentInputComponent, typeof i26.DateInputComponent, typeof i27.EmailInputComponent, typeof i28.FileInputComponent, typeof i29.HintComponent, typeof i30.HourInputComponent, typeof i31.NumberInputComponent, typeof i32.PasswordInputComponent, typeof i33.PinInputComponent, typeof i34.PrompterComponent, typeof i35.RadioInputComponent, typeof i36.TextInputComponent, typeof i37.FooterComponent, typeof i38.FormComponent, typeof i39.FormFooterComponent, typeof i40.HeaderComponent, typeof i41.WizardComponent, typeof i42.WizardFooterComponent, typeof i43.CardComponent], [typeof i44.CommonModule, typeof i45.HttpClientModule, typeof i46.IonicModule, typeof i47.ReactiveFormsModule, typeof i48.NgOtpInputModule], [typeof i1.ButtonComponent, typeof i2.BoxComponent, typeof i3.DisplayComponent, typeof i4.TextComponent, typeof i5.TitleComponent, typeof i6.AvatarComponent, typeof i7.DividerComponent, typeof i8.ContentLoaderComponent, typeof i9.LinkComponent, typeof i10.SearchbarComponent, typeof i11.ToolbarComponent, typeof i12.IconComponent, typeof i13.ButtonGroupComponent, typeof i14.TitleBlockComponent, typeof i15.AlertBoxComponent, typeof i16.BannerComponent, typeof i17.NotesBoxComponent, typeof i18.ImageComponent, typeof i19.NoContentComponent, typeof i20.HrefComponent, typeof i21.ProgressBarComponent, typeof i22.LinksCakeComponent, typeof i23.ProgressStatusComponent, typeof i24.CheckInputComponent, typeof i25.CommentInputComponent, typeof i26.DateInputComponent, typeof i27.EmailInputComponent, typeof i28.FileInputComponent, typeof i29.HintComponent, typeof i30.HourInputComponent, typeof i31.NumberInputComponent, typeof i32.PasswordInputComponent, typeof i33.PinInputComponent, typeof i34.PrompterComponent, typeof i35.RadioInputComponent, typeof i36.TextInputComponent, typeof i37.FooterComponent, typeof i38.FormComponent, typeof i39.FormFooterComponent, typeof i40.HeaderComponent, typeof i41.WizardComponent, typeof i42.WizardFooterComponent, typeof i43.CardComponent]>;
59
- static ɵinj: i0.ɵɵInjectorDeclaration<ValtechComponentsModule>;
60
- }
package/public-api.d.ts DELETED
@@ -1,64 +0,0 @@
1
- export * from './lib/components/atoms/button/button.component';
2
- export * from './lib/components/atoms/button/types';
3
- export * from './lib/components/atoms/button/factory';
4
- export * from './lib/components/atoms/text/text.component';
5
- export * from './lib/components/atoms/title/title.component';
6
- export * from './lib/components/atoms/display/display.component';
7
- export * from './lib/components/atoms/avatar/avatar.component';
8
- export * from './lib/components/atoms/divider/divider.component';
9
- export * from './lib/components/atoms/box/box.component';
10
- export * from './lib/components/atoms/icon/icon.component';
11
- export * from './lib/components/atoms/image/image.component';
12
- export * from './lib/components/atoms/image/types';
13
- export * from './lib/components/atoms/href/href.component';
14
- export * from './lib/components/atoms/href/types';
15
- export * from './lib/components/atoms/progress-bar/progress-bar.component';
16
- export * from './lib/components/molecules/content-loader/content-loader.component';
17
- export * from './lib/components/molecules/link/link.component';
18
- export * from './lib/components/molecules/searchbar/searchbar.component';
19
- export * from './lib/components/molecules/button-group/button-group.component';
20
- export * from './lib/components/molecules/title-block/title-block.component';
21
- export * from './lib/components/molecules/title-block/types';
22
- export * from './lib/components/molecules/notes-box/notes-box.component';
23
- export * from './lib/components/molecules/alert-box/alert-box.component';
24
- export * from './lib/components/molecules/no-content/no-content.component';
25
- export * from './lib/components/molecules/no-content/types';
26
- export * from './lib/components/molecules/links-cake/links-cake.component';
27
- export * from './lib/components/molecules/progress-status/progress-status.component';
28
- export * from './lib/components/molecules/progress-status/types';
29
- export * from './lib/components/molecules/check-input/check-input.component';
30
- export * from './lib/components/molecules/comment-input/comment-input.component';
31
- export * from './lib/components/molecules/date-input/date-input.component';
32
- export * from './lib/components/molecules/email-input/email-input.component';
33
- export * from './lib/components/molecules/file-input/file-input.component';
34
- export * from './lib/components/molecules/hint/hint.component';
35
- export * from './lib/components/molecules/hour-input/hour-input.component';
36
- export * from './lib/components/molecules/number-input/number-input.component';
37
- export * from './lib/components/molecules/password-input/password-input.component';
38
- export * from './lib/components/molecules/pin-input/pin-input.component';
39
- export * from './lib/components/molecules/prompter/prompter.component';
40
- export * from './lib/components/molecules/prompter/types';
41
- export * from './lib/components/molecules/radio-input/radio-input.component';
42
- export * from './lib/components/molecules/text-input/text-input.component';
43
- export * from './lib/components/molecules/card/card.component';
44
- export * from './lib/components/molecules/card/types';
45
- export * from './lib/components/organisms/toolbar/toolbar.component';
46
- export * from './lib/components/organisms/toolbar/types';
47
- export * from './lib/components/organisms/banner/banner.component';
48
- export * from './lib/components/organisms/banner/types';
49
- export * from './lib/components/organisms/footer/footer.component';
50
- export * from './lib/components/organisms/header/header.component';
51
- export * from './lib/components/organisms/form/form.component';
52
- export * from './lib/components/organisms/form/form-footer/form-footer.component';
53
- export * from './lib/components/organisms/form/factory';
54
- export * from './lib/components/organisms/wizard/wizard.component';
55
- export * from './lib/components/organisms/wizard/wizard-footer/wizard-footer.component';
56
- export * from './lib/components/organisms/wizard/types';
57
- export * from './lib/services/lang-provider/lang-provider.service';
58
- export * from './lib/services/lang-provider/types';
59
- export * from './lib/services/local-storage.service';
60
- export * from './lib/services/theme.service';
61
- export * from './lib/services/download.service';
62
- export * from './lib/valtech-components.module';
63
- export * from './lib/shared/utils/dom';
64
- export * from './lib/components/types';