valtech-components 1.3.0 → 1.6.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.
- package/.nvmrc +1 -0
- package/.releaserc +12 -0
- package/ng-package.json +11 -0
- package/package.json +10 -13
- package/src/lib/components/atoms/avatar/avatar.component.html +3 -0
- package/src/lib/components/atoms/avatar/avatar.component.scss +20 -0
- package/src/lib/components/atoms/avatar/avatar.component.ts +28 -0
- package/src/lib/components/atoms/button/button.component.html +17 -0
- package/src/lib/components/atoms/button/button.component.scss +5 -0
- package/src/lib/components/atoms/button/button.component.ts +26 -0
- package/src/lib/components/atoms/button/factory.ts +378 -0
- package/src/lib/components/atoms/button/types.ts +22 -0
- package/src/lib/components/atoms/display/display.component.html +5 -0
- package/src/lib/components/atoms/display/display.component.scss +17 -0
- package/src/lib/components/atoms/display/display.component.ts +20 -0
- package/src/lib/components/atoms/divider/divider.component.html +1 -0
- package/src/lib/components/atoms/divider/divider.component.scss +54 -0
- package/src/lib/components/atoms/divider/divider.component.ts +19 -0
- package/src/lib/components/atoms/text/text.component.html +5 -0
- package/src/lib/components/atoms/text/text.component.scss +33 -0
- package/src/lib/components/atoms/text/text.component.ts +22 -0
- package/src/lib/components/atoms/title/title.component.html +5 -0
- package/src/lib/components/atoms/title/title.component.scss +13 -0
- package/src/lib/components/atoms/title/title.component.ts +20 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.html +6 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.scss +42 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.ts +22 -0
- package/src/lib/components/molecules/link/link.component.html +6 -0
- package/src/lib/components/molecules/link/link.component.scss +5 -0
- package/src/lib/components/molecules/link/link.component.ts +27 -0
- package/src/lib/components/types.ts +5 -0
- package/src/lib/valtech-components.module.ts +37 -0
- package/{public-api.d.ts → src/public-api.ts} +8 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/components/atoms/avatar/avatar.component.mjs +0 -31
- package/esm2022/lib/components/atoms/button/button.component.mjs +0 -26
- package/esm2022/lib/components/atoms/button/factory.mjs +0 -217
- package/esm2022/lib/components/atoms/button/types.mjs +0 -2
- package/esm2022/lib/components/atoms/display/display.component.mjs +0 -20
- package/esm2022/lib/components/atoms/divider/divider.component.mjs +0 -20
- package/esm2022/lib/components/atoms/text/text.component.mjs +0 -24
- package/esm2022/lib/components/atoms/title/title.component.mjs +0 -20
- package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +0 -27
- package/esm2022/lib/components/molecules/link/link.component.mjs +0 -27
- package/esm2022/lib/components/types.mjs +0 -5
- package/esm2022/lib/valtech-components.module.mjs +0 -59
- package/esm2022/public-api.mjs +0 -16
- package/esm2022/valtech-components.mjs +0 -5
- package/fesm2022/valtech-components.mjs +0 -454
- package/fesm2022/valtech-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/atoms/avatar/avatar.component.d.ts +0 -14
- package/lib/components/atoms/button/button.component.d.ts +0 -17
- package/lib/components/atoms/button/factory.d.ts +0 -71
- package/lib/components/atoms/button/types.d.ts +0 -20
- package/lib/components/atoms/display/display.component.d.ts +0 -12
- package/lib/components/atoms/divider/divider.component.d.ts +0 -11
- package/lib/components/atoms/text/text.component.d.ts +0 -13
- package/lib/components/atoms/title/title.component.d.ts +0 -12
- package/lib/components/molecules/content-loader/content-loader.component.d.ts +0 -13
- package/lib/components/molecules/link/link.component.d.ts +0 -14
- package/lib/components/types.d.ts +0 -6
- package/lib/valtech-components.module.d.ts +0 -17
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'val-divider',
|
|
5
|
+
templateUrl: './divider.component.html',
|
|
6
|
+
styleUrls: ['./divider.component.scss'],
|
|
7
|
+
})
|
|
8
|
+
export class DividerComponent implements OnInit {
|
|
9
|
+
@Input()
|
|
10
|
+
size: 'small' | 'medium' | 'large';
|
|
11
|
+
@Input()
|
|
12
|
+
color: 'primary' | 'secondary' | 'dark' | 'light';
|
|
13
|
+
@Input()
|
|
14
|
+
fill: 'solid' | 'gradient';
|
|
15
|
+
|
|
16
|
+
constructor() {}
|
|
17
|
+
|
|
18
|
+
ngOnInit() {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@import '../../styles/typography.scss';
|
|
2
|
+
|
|
3
|
+
.small {
|
|
4
|
+
@include body-small;
|
|
5
|
+
|
|
6
|
+
&.bold {
|
|
7
|
+
@include body-small-bold;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.medium {
|
|
12
|
+
@include body-medium;
|
|
13
|
+
|
|
14
|
+
&.bold {
|
|
15
|
+
@include body-medium-bold;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.large {
|
|
20
|
+
@include body-large;
|
|
21
|
+
|
|
22
|
+
&.bold {
|
|
23
|
+
@include body-large-bold;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.xlarge {
|
|
28
|
+
@include body-xlarge;
|
|
29
|
+
|
|
30
|
+
&.bold {
|
|
31
|
+
@include body-xlarge-bold;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { Color } from '@ionic/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'val-text',
|
|
6
|
+
templateUrl: './text.component.html',
|
|
7
|
+
styleUrls: ['./text.component.scss'],
|
|
8
|
+
})
|
|
9
|
+
export class TextComponent implements OnInit {
|
|
10
|
+
@Input()
|
|
11
|
+
size: 'small' | 'medium' | 'large' | 'xlarge';
|
|
12
|
+
@Input()
|
|
13
|
+
color: Color;
|
|
14
|
+
@Input()
|
|
15
|
+
content: string;
|
|
16
|
+
@Input()
|
|
17
|
+
bold: boolean = false;
|
|
18
|
+
|
|
19
|
+
constructor() {}
|
|
20
|
+
|
|
21
|
+
ngOnInit() {}
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { Color } from '@ionic/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'val-title',
|
|
6
|
+
templateUrl: './title.component.html',
|
|
7
|
+
styleUrls: ['./title.component.scss'],
|
|
8
|
+
})
|
|
9
|
+
export class TitleComponent implements OnInit {
|
|
10
|
+
@Input()
|
|
11
|
+
size: 'small' | 'medium' | 'large' | 'xlarge';
|
|
12
|
+
@Input()
|
|
13
|
+
color: Color;
|
|
14
|
+
@Input()
|
|
15
|
+
content: string;
|
|
16
|
+
|
|
17
|
+
constructor() {}
|
|
18
|
+
|
|
19
|
+
ngOnInit() {}
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@import '../../styles/mixins.scss';
|
|
2
|
+
|
|
3
|
+
.small {
|
|
4
|
+
width: pxToRem(24);
|
|
5
|
+
height: pxToRem(24);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.medium {
|
|
9
|
+
width: pxToRem(38);
|
|
10
|
+
height: pxToRem(38);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.large {
|
|
14
|
+
width: pxToRem(48);
|
|
15
|
+
height: pxToRem(48);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.spinner-wrapper {
|
|
19
|
+
width: 100%;
|
|
20
|
+
text-align: center;
|
|
21
|
+
|
|
22
|
+
&.small {
|
|
23
|
+
height: pxToRem(72);
|
|
24
|
+
padding-top: pxToRem(24);
|
|
25
|
+
|
|
26
|
+
@include body-small;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.medium {
|
|
30
|
+
height: pxToRem(98);
|
|
31
|
+
padding-top: pxToRem(32);
|
|
32
|
+
|
|
33
|
+
@include body-medium;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.large {
|
|
37
|
+
height: pxToRem(108);
|
|
38
|
+
padding-top: pxToRem(42);
|
|
39
|
+
|
|
40
|
+
@include body-large;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 {}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of valtech-components
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
export * from './lib/components/atoms/button/button.component';
|
|
2
6
|
export * from './lib/components/atoms/button/types';
|
|
3
7
|
export * from './lib/components/atoms/button/factory';
|
|
@@ -6,7 +10,11 @@ export * from './lib/components/atoms/title/title.component';
|
|
|
6
10
|
export * from './lib/components/atoms/display/display.component';
|
|
7
11
|
export * from './lib/components/atoms/avatar/avatar.component';
|
|
8
12
|
export * from './lib/components/atoms/divider/divider.component';
|
|
13
|
+
|
|
9
14
|
export * from './lib/components/molecules/content-loader/content-loader.component';
|
|
10
15
|
export * from './lib/components/molecules/link/link.component';
|
|
16
|
+
|
|
11
17
|
export * from './lib/components/types';
|
|
12
18
|
export * from './lib/valtech-components.module';
|
|
19
|
+
|
|
20
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@ionic/angular";
|
|
4
|
-
export class AvatarComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.size = 'medium';
|
|
7
|
-
this.box = false;
|
|
8
|
-
this.onClick = new EventEmitter();
|
|
9
|
-
}
|
|
10
|
-
ngOnInit() { }
|
|
11
|
-
onClickHandler() {
|
|
12
|
-
this.onClick.emit();
|
|
13
|
-
}
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: AvatarComponent, selector: "val-avatar", inputs: { image: "image", default: "default", size: "size", box: "box" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<ion-avatar [class]=\"size\" [class.box]=\"box\" (click)=\"onClickHandler()\">\n <img alt=\"profile image\" [src]=\"image || default\" />\n</ion-avatar>\n", styles: [".box{--border-radius: pxToRem(4)}.small{width:1.5rem;height:1.5rem}.medium{width:2.375rem;height:2.375rem}.large{width:3rem;height:3rem}\n"], dependencies: [{ kind: "component", type: i1.IonAvatar, selector: "ion-avatar" }] }); }
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: 'val-avatar', template: "<ion-avatar [class]=\"size\" [class.box]=\"box\" (click)=\"onClickHandler()\">\n <img alt=\"profile image\" [src]=\"image || default\" />\n</ion-avatar>\n", styles: [".box{--border-radius: pxToRem(4)}.small{width:1.5rem;height:1.5rem}.medium{width:2.375rem;height:2.375rem}.large{width:3rem;height:3rem}\n"] }]
|
|
20
|
-
}], ctorParameters: () => [], propDecorators: { image: [{
|
|
21
|
-
type: Input
|
|
22
|
-
}], default: [{
|
|
23
|
-
type: Input
|
|
24
|
-
}], size: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}], box: [{
|
|
27
|
-
type: Input
|
|
28
|
-
}], onClick: [{
|
|
29
|
-
type: Output
|
|
30
|
-
}] } });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXZhdGFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRlY2gtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvYXRvbXMvYXZhdGFyL2F2YXRhci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0ZWNoLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2F0b21zL2F2YXRhci9hdmF0YXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBTy9FLE1BQU0sT0FBTyxlQUFlO0lBYTFCO1FBUEEsU0FBSSxHQUFpQyxRQUFRLENBQUM7UUFFOUMsUUFBRyxHQUFZLEtBQUssQ0FBQztRQUdyQixZQUFPLEdBQUcsSUFBSSxZQUFZLEVBQUUsQ0FBQztJQUVkLENBQUM7SUFFaEIsUUFBUSxLQUFJLENBQUM7SUFFYixjQUFjO1FBQ1osSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUN0QixDQUFDOzhHQW5CVSxlQUFlO2tHQUFmLGVBQWUsNkpDUDVCLDZKQUdB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sZXIoKVwiPlxuICA8aW1nIGFsdD1cInByb2ZpbGUgaW1hZ2VcIiBbc3JjXT1cImltYWdlIHx8IGRlZmF1bHRcIiAvPlxuPC9pb24tYXZhdGFyPlxuIl19
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { ComponentStates } from '../../types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "@ionic/angular";
|
|
6
|
-
export class ButtonComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.states = ComponentStates;
|
|
9
|
-
this.onClick = new EventEmitter();
|
|
10
|
-
}
|
|
11
|
-
ngOnInit() { }
|
|
12
|
-
clickHandler() {
|
|
13
|
-
this.onClick.emit();
|
|
14
|
-
}
|
|
15
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: ButtonComponent, selector: "val-button", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<ion-button\n [type]=\"props.type\"\n [color]=\"props.color\"\n [expand]=\"props.expand\"\n [fill]=\"props.fill\"\n [size]=\"props.size\"\n [href]=\"props.href\"\n [target]=\"props.target\"\n [download]=\"props.download\"\n [shape]=\"props.shape\"\n [href]=\"props.href\"\n (click)=\"clickHandler()\"\n>\n <ion-icon *ngIf=\"props.icon\" [slot]=\"props.icon.slot\" [name]=\"props.icon.name\"></ion-icon>\n <ion-spinner *ngIf=\"props.state === states.WORKING\" name=\"circular\"></ion-spinner>\n <ion-text *ngIf=\"props.state !== states.WORKING\">{{ props.text }}</ion-text>\n</ion-button>\n", styles: ["ion-button{font-family:var(--ion-default-font),Arial,sans-serif}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: i2.IonText, selector: "ion-text", inputs: ["color", "mode"] }] }); }
|
|
17
|
-
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
19
|
-
type: Component,
|
|
20
|
-
args: [{ selector: 'val-button', template: "<ion-button\n [type]=\"props.type\"\n [color]=\"props.color\"\n [expand]=\"props.expand\"\n [fill]=\"props.fill\"\n [size]=\"props.size\"\n [href]=\"props.href\"\n [target]=\"props.target\"\n [download]=\"props.download\"\n [shape]=\"props.shape\"\n [href]=\"props.href\"\n (click)=\"clickHandler()\"\n>\n <ion-icon *ngIf=\"props.icon\" [slot]=\"props.icon.slot\" [name]=\"props.icon.name\"></ion-icon>\n <ion-spinner *ngIf=\"props.state === states.WORKING\" name=\"circular\"></ion-spinner>\n <ion-text *ngIf=\"props.state !== states.WORKING\">{{ props.text }}</ion-text>\n</ion-button>\n", styles: ["ion-button{font-family:var(--ion-default-font),Arial,sans-serif}\n"] }]
|
|
21
|
-
}], ctorParameters: () => [], propDecorators: { props: [{
|
|
22
|
-
type: Input
|
|
23
|
-
}], onClick: [{
|
|
24
|
-
type: Output
|
|
25
|
-
}] } });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJ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