yukit 0.0.3 → 0.0.5
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/README.md +107 -11
- package/esm2022/lib/components/button/button.component.mjs +13 -4
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +9 -3
- package/esm2022/lib/components/input/input.component.mjs +9 -3
- package/esm2022/lib/components/searchbar/searchbar.component.mjs +15 -3
- package/esm2022/lib/components/textarea/textarea.component.mjs +9 -3
- package/esm2022/lib/components/toggle/toggle.component.mjs +9 -3
- package/fesm2022/yukit.mjs +57 -12
- package/fesm2022/yukit.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +5 -1
- package/lib/components/checkbox/checkbox.component.d.ts +3 -1
- package/lib/components/input/input.component.d.ts +3 -1
- package/lib/components/searchbar/searchbar.component.d.ts +5 -1
- package/lib/components/textarea/textarea.component.d.ts +3 -1
- package/lib/components/toggle/toggle.component.d.ts +3 -1
- package/package.json +3 -4
- package/src/lib/components/button/button.component.html +3 -0
- package/src/lib/components/button/button.component.ts +5 -1
- package/src/lib/components/checkbox/checkbox.component.html +2 -0
- package/src/lib/components/checkbox/checkbox.component.scss +1 -1
- package/src/lib/components/checkbox/checkbox.component.ts +3 -0
- package/src/lib/components/input/input.component.html +3 -1
- package/src/lib/components/input/input.component.ts +3 -0
- package/src/lib/components/searchbar/searchbar.component.html +4 -0
- package/src/lib/components/searchbar/searchbar.component.ts +5 -0
- package/src/lib/components/textarea/textarea.component.html +4 -1
- package/src/lib/components/textarea/textarea.component.ts +3 -0
- package/src/lib/components/toggle/toggle.component.html +2 -0
- package/src/lib/components/toggle/toggle.component.ts +3 -0
- package/src/lib/theme/components/tabs.scss +0 -15
- package/{yukit-0.0.3.tgz → yukit-0.0.5.tgz} +0 -0
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yukit",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.0.3",
|
|
3
|
+
"version": "0.0.5",
|
|
5
4
|
"author": {
|
|
6
5
|
"name": "Pablo Claramunt",
|
|
7
6
|
"email": "p.claramunt@yurest.com"
|
|
8
7
|
},
|
|
9
8
|
"peerDependencies": {
|
|
10
|
-
"@angular/common": "^
|
|
11
|
-
"@angular/core": "^
|
|
9
|
+
"@angular/common": "^18.0.0",
|
|
10
|
+
"@angular/core": "^18.0.0"
|
|
12
11
|
},
|
|
13
12
|
"dependencies": {
|
|
14
13
|
"tslib": "^2.3.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Component, Input} from '@angular/core';
|
|
1
|
+
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
|
2
2
|
import {YuColorDto} from '../../interface/color.interface';
|
|
3
3
|
import {YuSizeDto} from '../../interface/size.interface';
|
|
4
4
|
|
|
@@ -13,4 +13,8 @@ export class ButtonComponent {
|
|
|
13
13
|
@Input() size: YuSizeDto = 'medium';
|
|
14
14
|
|
|
15
15
|
@Input() disabled: boolean = false;
|
|
16
|
+
|
|
17
|
+
@Output() yuClick: EventEmitter<any> = new EventEmitter<any>();
|
|
18
|
+
@Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
|
|
19
|
+
@Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
|
|
16
20
|
}
|
|
@@ -17,4 +17,7 @@ export class CheckboxComponent {
|
|
|
17
17
|
|
|
18
18
|
@Input() value: any;
|
|
19
19
|
@Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
|
|
20
|
+
|
|
21
|
+
@Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
|
|
22
|
+
@Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
|
|
20
23
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
mode="md"
|
|
3
3
|
fill="outline"
|
|
4
4
|
labelPlacement="stacked"
|
|
5
|
+
[ngClass]="{'has-error': isIncorrectValue}"
|
|
5
6
|
[label]="label"
|
|
6
7
|
[placeholder]="placeholder"
|
|
7
8
|
[autocapitalize]="autocapitalize"
|
|
@@ -10,7 +11,8 @@
|
|
|
10
11
|
[disabled]="disabled"
|
|
11
12
|
[(ngModel)]="value"
|
|
12
13
|
(ngModelChange)="valueChange.emit(value)"
|
|
13
|
-
|
|
14
|
+
(ionFocus)="yuFocus.emit()"
|
|
15
|
+
(ionBlur)="yuBlur.emit()"
|
|
14
16
|
>
|
|
15
17
|
<ng-content></ng-content>
|
|
16
18
|
|
|
@@ -23,4 +23,7 @@ export class InputComponent {
|
|
|
23
23
|
|
|
24
24
|
@Input() value: any;
|
|
25
25
|
@Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
|
|
26
|
+
|
|
27
|
+
@Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
|
|
28
|
+
@Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
|
|
26
29
|
}
|
|
@@ -15,6 +15,11 @@ export class SearchbarComponent implements OnInit {
|
|
|
15
15
|
@Input() value: any;
|
|
16
16
|
@Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
|
|
17
17
|
|
|
18
|
+
@Output() yuCancel: EventEmitter<any> = new EventEmitter<any>();
|
|
19
|
+
@Output() yuClear: EventEmitter<any> = new EventEmitter<any>();
|
|
20
|
+
@Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
|
|
21
|
+
@Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
|
|
22
|
+
|
|
18
23
|
ngOnInit(): void {
|
|
19
24
|
setTimeout(() => {
|
|
20
25
|
if (this.setFocus) {
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
mode="md"
|
|
3
3
|
fill="outline"
|
|
4
4
|
labelPlacement="stacked"
|
|
5
|
+
[ngClass]="{'has-error': isIncorrectValue}"
|
|
5
6
|
[label]="label"
|
|
6
7
|
[placeholder]="placeholder"
|
|
7
8
|
[autocapitalize]="autocapitalize"
|
|
8
9
|
[rows]="rows"
|
|
9
10
|
[cols]="cols"
|
|
10
11
|
[autoGrow]="autoGrow"
|
|
12
|
+
[disabled]="disabled"
|
|
11
13
|
[(ngModel)]="value"
|
|
12
14
|
(ngModelChange)="valueChange.emit(value)"
|
|
13
|
-
|
|
15
|
+
(ionFocus)="yuFocus.emit()"
|
|
16
|
+
(ionBlur)="yuBlur.emit()"
|
|
14
17
|
></ion-textarea>
|
|
15
18
|
|
|
16
19
|
<yu-helper *ngIf="isIncorrectValue" color="error" icon="warning-circle">{{ helperText }}</yu-helper>
|
|
@@ -26,4 +26,7 @@ export class TextareaComponent {
|
|
|
26
26
|
|
|
27
27
|
@Input() value: any;
|
|
28
28
|
@Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
|
|
29
|
+
|
|
30
|
+
@Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
|
|
31
|
+
@Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
|
|
29
32
|
}
|
|
@@ -16,4 +16,7 @@ export class ToggleComponent {
|
|
|
16
16
|
|
|
17
17
|
@Input() value: any;
|
|
18
18
|
@Output() valueChange: EventEmitter<any> = new EventEmitter<any>();
|
|
19
|
+
|
|
20
|
+
@Output() yuBlur: EventEmitter<any> = new EventEmitter<any>();
|
|
21
|
+
@Output() yuFocus: EventEmitter<any> = new EventEmitter<any>();
|
|
19
22
|
}
|
|
@@ -21,12 +21,6 @@ ion-tabs {
|
|
|
21
21
|
color: var(--element-low);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
yu-badge {
|
|
25
|
-
position: absolute;
|
|
26
|
-
left: 65%;
|
|
27
|
-
top: 10px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
24
|
&.tab-selected {
|
|
31
25
|
ion-label {
|
|
32
26
|
color: var(--element-high);
|
|
@@ -34,15 +28,6 @@ ion-tabs {
|
|
|
34
28
|
}
|
|
35
29
|
}
|
|
36
30
|
|
|
37
|
-
.menu-button > ion-button {
|
|
38
|
-
height: 55px;
|
|
39
|
-
width: 55px;
|
|
40
|
-
|
|
41
|
-
margin: 0 10px;
|
|
42
|
-
|
|
43
|
-
--border-radius: var(--layout-radius-component-rounded) !important;
|
|
44
|
-
--yu-icon-size: 32px;
|
|
45
|
-
}
|
|
46
31
|
}
|
|
47
32
|
|
|
48
33
|
}
|
|
index 41b2f63..06406dd 100644
|
|
|
Binary file
|