valtech-components 1.8.0 → 1.8.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 (65) hide show
  1. package/esm2022/lib/components/atoms/avatar/avatar.component.mjs +31 -0
  2. package/esm2022/lib/components/atoms/button/button.component.mjs +26 -0
  3. package/esm2022/lib/components/atoms/button/factory.mjs +217 -0
  4. package/esm2022/lib/components/atoms/button/types.mjs +2 -0
  5. package/esm2022/lib/components/atoms/display/display.component.mjs +20 -0
  6. package/esm2022/lib/components/atoms/divider/divider.component.mjs +20 -0
  7. package/esm2022/lib/components/atoms/text/text.component.mjs +24 -0
  8. package/esm2022/lib/components/atoms/title/title.component.mjs +20 -0
  9. package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +27 -0
  10. package/esm2022/lib/components/molecules/link/link.component.mjs +27 -0
  11. package/esm2022/lib/components/types.mjs +5 -0
  12. package/esm2022/lib/valtech-components.module.mjs +59 -0
  13. package/esm2022/public-api.mjs +16 -0
  14. package/esm2022/valtech-components.mjs +5 -0
  15. package/fesm2022/valtech-components.mjs +454 -0
  16. package/fesm2022/valtech-components.mjs.map +1 -0
  17. package/index.d.ts +5 -0
  18. package/lib/components/atoms/avatar/avatar.component.d.ts +14 -0
  19. package/lib/components/atoms/button/button.component.d.ts +17 -0
  20. package/lib/components/atoms/button/factory.d.ts +71 -0
  21. package/lib/components/atoms/button/types.d.ts +20 -0
  22. package/lib/components/atoms/display/display.component.d.ts +12 -0
  23. package/lib/components/atoms/divider/divider.component.d.ts +11 -0
  24. package/lib/components/atoms/text/text.component.d.ts +13 -0
  25. package/lib/components/atoms/title/title.component.d.ts +12 -0
  26. package/lib/components/molecules/content-loader/content-loader.component.d.ts +13 -0
  27. package/lib/components/molecules/link/link.component.d.ts +14 -0
  28. package/lib/components/types.d.ts +6 -0
  29. package/lib/valtech-components.module.d.ts +17 -0
  30. package/package.json +15 -14
  31. package/{src/public-api.ts → public-api.d.ts} +0 -8
  32. package/.nvmrc +0 -1
  33. package/.releaserc +0 -12
  34. package/ng-package.json +0 -11
  35. package/src/lib/components/atoms/avatar/avatar.component.html +0 -3
  36. package/src/lib/components/atoms/avatar/avatar.component.scss +0 -20
  37. package/src/lib/components/atoms/avatar/avatar.component.ts +0 -28
  38. package/src/lib/components/atoms/button/button.component.html +0 -16
  39. package/src/lib/components/atoms/button/button.component.scss +0 -5
  40. package/src/lib/components/atoms/button/button.component.ts +0 -26
  41. package/src/lib/components/atoms/button/factory.ts +0 -378
  42. package/src/lib/components/atoms/button/types.ts +0 -22
  43. package/src/lib/components/atoms/display/display.component.html +0 -5
  44. package/src/lib/components/atoms/display/display.component.scss +0 -17
  45. package/src/lib/components/atoms/display/display.component.ts +0 -20
  46. package/src/lib/components/atoms/divider/divider.component.html +0 -1
  47. package/src/lib/components/atoms/divider/divider.component.scss +0 -54
  48. package/src/lib/components/atoms/divider/divider.component.ts +0 -19
  49. package/src/lib/components/atoms/text/text.component.html +0 -5
  50. package/src/lib/components/atoms/text/text.component.scss +0 -33
  51. package/src/lib/components/atoms/text/text.component.ts +0 -22
  52. package/src/lib/components/atoms/title/title.component.html +0 -5
  53. package/src/lib/components/atoms/title/title.component.scss +0 -13
  54. package/src/lib/components/atoms/title/title.component.ts +0 -20
  55. package/src/lib/components/molecules/content-loader/content-loader.component.html +0 -6
  56. package/src/lib/components/molecules/content-loader/content-loader.component.scss +0 -42
  57. package/src/lib/components/molecules/content-loader/content-loader.component.ts +0 -22
  58. package/src/lib/components/molecules/link/link.component.html +0 -6
  59. package/src/lib/components/molecules/link/link.component.scss +0 -5
  60. package/src/lib/components/molecules/link/link.component.ts +0 -27
  61. package/src/lib/components/types.ts +0 -5
  62. package/src/lib/valtech-components.module.ts +0 -37
  63. package/tsconfig.lib.json +0 -14
  64. package/tsconfig.lib.prod.json +0 -10
  65. package/tsconfig.spec.json +0 -14
@@ -1,22 +0,0 @@
1
- import { Component, Input, OnInit } from '@angular/core';
2
- import { Color } from '@ionic/core';
3
-
4
- @Component({
5
- selector: 'val-content-loader',
6
- templateUrl: './content-loader.component.html',
7
- styleUrls: ['./content-loader.component.scss'],
8
- })
9
- export class ContentLoaderComponent implements OnInit {
10
- @Input()
11
- color: Color = 'primary';
12
- @Input()
13
- size: 'small' | 'medium' | 'large' = 'small';
14
- @Input()
15
- name: 'circular' | 'crescent' | 'dots' | 'lines-sharp' = 'circular';
16
- @Input()
17
- text: string;
18
-
19
- constructor() {}
20
-
21
- ngOnInit() {}
22
- }
@@ -1,6 +0,0 @@
1
- <div>
2
- <ion-button type="button" [color]="color" fill="clear" [size]="size" (click)="onClickHandler()">
3
- <ion-icon slot="end" name="chevron-forward-outline"></ion-icon>
4
- <ion-text>{{ text }}</ion-text>
5
- </ion-button>
6
- </div>
@@ -1,5 +0,0 @@
1
- @import '../../styles/mixins.scss';
2
-
3
- ion-button {
4
- font-family: var(--ion-default-font), Arial, sans-serif;
5
- }
@@ -1,27 +0,0 @@
1
- import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
2
- import { Color } from '@ionic/core';
3
-
4
- @Component({
5
- selector: 'val-link',
6
- templateUrl: './link.component.html',
7
- styleUrls: ['./link.component.scss'],
8
- })
9
- export class LinkComponent implements OnInit {
10
- @Input()
11
- text: string;
12
- @Input()
13
- size: 'small' | 'default' | 'large';
14
- @Input()
15
- color: Color;
16
-
17
- @Output()
18
- onClick = new EventEmitter();
19
-
20
- constructor() {}
21
-
22
- ngOnInit() {}
23
-
24
- onClickHandler() {
25
- this.onClick.emit();
26
- }
27
- }
@@ -1,5 +0,0 @@
1
- export type ComponentState = 'ENABLED' | 'DISABLED' | 'WORKING';
2
- const ENABLED: ComponentState = 'ENABLED';
3
- const DISABLED: ComponentState = 'DISABLED';
4
- const WORKING: ComponentState = 'WORKING';
5
- export const ComponentStates = { ENABLED, DISABLED, WORKING };
@@ -1,37 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { HttpClientModule } from '@angular/common/http';
3
- import { NgModule } from '@angular/core';
4
- import { IonicModule } from '@ionic/angular';
5
- import { ButtonComponent } from './components/atoms/button/button.component';
6
- import { DisplayComponent } from './components/atoms/display/display.component';
7
- import { TextComponent } from './components/atoms/text/text.component';
8
- import { TitleComponent } from './components/atoms/title/title.component';
9
- import { AvatarComponent } from './components/atoms/avatar/avatar.component';
10
- import { DividerComponent } from './components/atoms/divider/divider.component';
11
- import { ContentLoaderComponent } from './components/molecules/content-loader/content-loader.component';
12
- import { LinkComponent } from './components/molecules/link/link.component';
13
-
14
- @NgModule({
15
- declarations: [
16
- ButtonComponent,
17
- DisplayComponent,
18
- TextComponent,
19
- TitleComponent,
20
- AvatarComponent,
21
- DividerComponent,
22
- ContentLoaderComponent,
23
- LinkComponent,
24
- ],
25
- imports: [CommonModule, HttpClientModule, IonicModule],
26
- exports: [
27
- ButtonComponent,
28
- DisplayComponent,
29
- TextComponent,
30
- TitleComponent,
31
- AvatarComponent,
32
- DividerComponent,
33
- ContentLoaderComponent,
34
- LinkComponent,
35
- ],
36
- })
37
- export class ValtechComponentsModule {}
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
- }