@progressio_resources/gravity-design-system 1.1.3 → 1.1.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/esm2020/lib/components/gravity-button/gravity-button.component.mjs +22 -11
- package/esm2020/lib/components/gravity-dialog/gravity-dialog.component.mjs +3 -3
- package/esm2020/lib/components/gravity-dropdown-list/gravity-dropdown-list.component.mjs +37 -13
- package/esm2020/lib/components/gravity-text-field/gravity-text-field.component.mjs +66 -19
- package/esm2020/lib/gravity-design-system.module.mjs +8 -5
- package/esm2020/lib/services/gravity-dialog-manager.service.mjs +2 -2
- package/fesm2015/progressio_resources-gravity-design-system.mjs +130 -46
- package/fesm2015/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/fesm2020/progressio_resources-gravity-design-system.mjs +130 -46
- package/fesm2020/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/lib/components/gravity-button/gravity-button.component.d.ts +9 -15
- package/lib/components/gravity-dialog/gravity-dialog.component.d.ts +2 -1
- package/lib/components/gravity-dropdown-list/gravity-dropdown-list.component.d.ts +20 -25
- package/lib/components/gravity-text-field/gravity-text-field.component.d.ts +23 -21
- package/lib/gravity-design-system.module.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/styles/fundamentals/colors/tokens/_hero.tokens.scss +2 -2
- package/src/lib/styles/overwrite/bootstrap/_modal.scss +2 -2
|
@@ -1,35 +1,30 @@
|
|
|
1
|
-
import { EventEmitter
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GravityDropdownListComponent
|
|
3
|
+
export declare class GravityDropdownListComponent {
|
|
4
4
|
selectedItemResponse: EventEmitter<any>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
};
|
|
20
|
-
required?: boolean;
|
|
21
|
-
state?: 'readonly' | 'disabled' | 'enabled';
|
|
22
|
-
supportText?: {
|
|
23
|
-
content: string;
|
|
24
|
-
type: 'neutro' | 'negative' | 'positive';
|
|
25
|
-
};
|
|
5
|
+
currentLang: string;
|
|
6
|
+
customPlaceholder: string;
|
|
7
|
+
customValue: number;
|
|
8
|
+
cypressTag: string;
|
|
9
|
+
iconColor?: string;
|
|
10
|
+
iconNames: string[];
|
|
11
|
+
iconPlacement: 'left' | 'right';
|
|
12
|
+
items: Array<any>;
|
|
13
|
+
label: string;
|
|
14
|
+
ngSelectConfig: {
|
|
15
|
+
bindLabel?: string;
|
|
16
|
+
bindValue?: string;
|
|
17
|
+
clearable?: boolean;
|
|
26
18
|
};
|
|
19
|
+
required: boolean;
|
|
20
|
+
state: 'readonly' | 'disabled' | 'enabled';
|
|
21
|
+
supportTextContent: string;
|
|
22
|
+
supportTextType: 'neutro' | 'negative' | 'positive';
|
|
27
23
|
private ngSelectComponent;
|
|
28
24
|
selectedItem: any;
|
|
29
25
|
dropdownOpen: boolean;
|
|
30
|
-
ngOnInit(): void;
|
|
31
26
|
changeSelectedItem(newSelectedItem: any): void;
|
|
32
27
|
clearSelectedItem(): void;
|
|
33
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityDropdownListComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GravityDropdownListComponent, "gravity-dropdown-list", never, { "
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityDropdownListComponent, "gravity-dropdown-list", never, { "currentLang": "currentLang"; "customPlaceholder": "customPlaceholder"; "customValue": "customValue"; "cypressTag": "cypressTag"; "iconColor": "iconColor"; "iconNames": "iconNames"; "iconPlacement": "iconPlacement"; "items": "items"; "label": "label"; "ngSelectConfig": "ngSelectConfig"; "required": "required"; "state": "state"; "supportTextContent": "supportTextContent"; "supportTextType": "supportTextType"; }, { "selectedItemResponse": "response"; }, never, never, false, never>;
|
|
35
30
|
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class GravityTextFieldComponent implements AfterViewInit, OnInit {
|
|
4
|
+
iconResponse: EventEmitter<boolean>;
|
|
4
5
|
textFieldValueResponse: EventEmitter<string>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
autocomplete: string;
|
|
7
|
+
clickOnIconName: string | boolean;
|
|
8
|
+
currentLang: string;
|
|
9
|
+
customPlaceholder: string;
|
|
10
|
+
customInputValue: string;
|
|
11
|
+
cypressTag: string;
|
|
12
|
+
iconColor?: string;
|
|
13
|
+
iconNames: string[];
|
|
14
|
+
iconPlacement: 'left' | 'right';
|
|
15
|
+
inputContentType: 'email' | 'password' | 'text';
|
|
16
|
+
label: string;
|
|
17
|
+
placeholderType: 'default' | 'email' | 'url';
|
|
18
|
+
required: boolean;
|
|
19
|
+
state: 'readonly' | 'disabled' | 'enabled';
|
|
20
|
+
supportTextContent: string;
|
|
21
|
+
supportTextType: 'neutro' | 'negative' | 'positive';
|
|
22
|
+
textFieldType: 'input' | 'textarea';
|
|
23
|
+
validations: {
|
|
24
|
+
maxLength?: number;
|
|
25
|
+
minLength?: number;
|
|
25
26
|
};
|
|
26
27
|
private inputElement;
|
|
27
28
|
private textAreaElement;
|
|
@@ -34,6 +35,7 @@ export declare class GravityTextFieldComponent implements AfterViewInit, OnInit
|
|
|
34
35
|
clearInput(): void;
|
|
35
36
|
onInputKeyup(): void;
|
|
36
37
|
private changeInputValue;
|
|
38
|
+
handleIconClick(iconName: string): void;
|
|
37
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityTextFieldComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GravityTextFieldComponent, "gravity-text-field", never, { "
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityTextFieldComponent, "gravity-text-field", never, { "autocomplete": "autocomplete"; "clickOnIconName": "clickOnIconName"; "currentLang": "currentLang"; "customPlaceholder": "customPlaceholder"; "customInputValue": "customInputValue"; "cypressTag": "cypressTag"; "iconColor": "iconColor"; "iconNames": "iconNames"; "iconPlacement": "iconPlacement"; "inputContentType": "inputContentType"; "label": "label"; "placeholderType": "placeholderType"; "required": "required"; "state": "state"; "supportTextContent": "supportTextContent"; "supportTextType": "supportTextType"; "textFieldType": "textFieldType"; "validations": "validations"; }, { "iconResponse": "clickIcon"; "textFieldValueResponse": "response"; }, never, never, false, never>;
|
|
39
41
|
}
|
|
@@ -20,6 +20,6 @@ import * as i18 from "@ng-select/ng-select";
|
|
|
20
20
|
import * as i19 from "ngx-pretty-checkbox";
|
|
21
21
|
export declare class GravityDesignSystemModule {
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityDesignSystemModule, never>;
|
|
23
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GravityDesignSystemModule, [typeof i1.GravityButtonComponent, typeof i2.GravityCalendarComponent, typeof i3.GravityCheckboxComponent, typeof i4.GravityDialogComponent, typeof i5.GravityDropdownListComponent, typeof i6.GravityIconComponent, typeof i7.GravityNotificationComponent, typeof i8.GravityNotificationInstantContainerComponent, typeof i9.GravityRadioButtonComponent, typeof i10.GravitySwitchComponent, typeof i11.GravityTextFieldComponent], [typeof i12.AngularSvgIconModule, typeof i13.AngularSvgIconPreloaderModule, typeof i14.CommonModule, typeof i15.FormsModule, typeof i16.GravityTooltipModule, typeof i17.NgbDatepickerModule, typeof i17.NgbToastModule, typeof i18.NgSelectModule, typeof i19.NgxPrettyCheckboxModule, typeof i15.ReactiveFormsModule], [typeof i1.GravityButtonComponent, typeof i2.GravityCalendarComponent, typeof i3.GravityCheckboxComponent, typeof i4.GravityDialogComponent, typeof i5.GravityDropdownListComponent, typeof i6.GravityIconComponent, typeof i8.GravityNotificationInstantContainerComponent, typeof i9.GravityRadioButtonComponent, typeof i10.GravitySwitchComponent, typeof i11.GravityTextFieldComponent, typeof i16.GravityTooltipModule]>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GravityDesignSystemModule, [typeof i1.GravityButtonComponent, typeof i2.GravityCalendarComponent, typeof i3.GravityCheckboxComponent, typeof i4.GravityDialogComponent, typeof i5.GravityDropdownListComponent, typeof i6.GravityIconComponent, typeof i7.GravityNotificationComponent, typeof i8.GravityNotificationInstantContainerComponent, typeof i9.GravityRadioButtonComponent, typeof i10.GravitySwitchComponent, typeof i11.GravityTextFieldComponent], [typeof i12.AngularSvgIconModule, typeof i13.AngularSvgIconPreloaderModule, typeof i14.CommonModule, typeof i15.FormsModule, typeof i16.GravityTooltipModule, typeof i17.NgbDatepickerModule, typeof i17.NgbToastModule, typeof i18.NgSelectModule, typeof i19.NgxPrettyCheckboxModule, typeof i15.ReactiveFormsModule, typeof i17.NgbProgressbarModule], [typeof i1.GravityButtonComponent, typeof i2.GravityCalendarComponent, typeof i3.GravityCheckboxComponent, typeof i4.GravityDialogComponent, typeof i5.GravityDropdownListComponent, typeof i6.GravityIconComponent, typeof i8.GravityNotificationInstantContainerComponent, typeof i9.GravityRadioButtonComponent, typeof i10.GravitySwitchComponent, typeof i11.GravityTextFieldComponent, typeof i16.GravityTooltipModule]>;
|
|
24
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<GravityDesignSystemModule>;
|
|
25
25
|
}
|
package/package.json
CHANGED
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
// disabled-status
|
|
179
179
|
--outline-disabled: #{$outline-disabled-light};
|
|
180
180
|
--bg-button-disabled: #{$bg-button-disabled-light};
|
|
181
|
-
--on-bg-disabled: #{$on-bg-button-disabled-light};
|
|
181
|
+
--on-bg-button-disabled: #{$on-bg-button-disabled-light};
|
|
182
182
|
|
|
183
183
|
// button-secondary
|
|
184
184
|
--on-bg-button-pressed-secondary: #{$on-bg-button-pressed-secondary-light};
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
// disabled-status
|
|
405
405
|
--outline-disabled: #{$outline-disabled-dark};
|
|
406
406
|
--bg-button-disabled: #{$bg-button-disabled-dark};
|
|
407
|
-
--on-bg-disabled: #{$on-bg-button-disabled-dark};
|
|
407
|
+
--on-bg-button-disabled: #{$on-bg-button-disabled-dark};
|
|
408
408
|
|
|
409
409
|
// button-secondary
|
|
410
410
|
--on-bg-button-pressed-secondary: #{$on-bg-button-pressed-secondary-dark};
|