@progressio_resources/gravity-design-system 4.0.17 → 4.0.19
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/package.json
CHANGED
|
@@ -1140,6 +1140,8 @@ declare class GravityTablesV2Component {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
|
|
1142
1142
|
declare class GravityTextFieldComponent implements OnInit, OnChanges {
|
|
1143
|
+
onBlur: EventEmitter<FocusEvent>;
|
|
1144
|
+
onFocus: EventEmitter<FocusEvent>;
|
|
1143
1145
|
leftIconResponse: EventEmitter<void>;
|
|
1144
1146
|
rightIconResponse: EventEmitter<void>;
|
|
1145
1147
|
textFieldValueResponse: EventEmitter<string>;
|
|
@@ -1166,24 +1168,15 @@ declare class GravityTextFieldComponent implements OnInit, OnChanges {
|
|
|
1166
1168
|
autocomplete: string;
|
|
1167
1169
|
characterCounter: boolean;
|
|
1168
1170
|
width: 'short' | 'medium' | 'full' | 'fit';
|
|
1169
|
-
|
|
1170
|
-
maxLength?: number;
|
|
1171
|
-
minLength?: number;
|
|
1172
|
-
};
|
|
1173
|
-
passwordRequirements: {
|
|
1174
|
-
key: string;
|
|
1175
|
-
label: string;
|
|
1176
|
-
isValid: boolean;
|
|
1177
|
-
}[];
|
|
1178
|
-
inputContentType: 'email' | 'number' | 'password' | 'tel' | 'date' | 'text';
|
|
1171
|
+
inputContentType: 'email' | 'number' | 'tel' | 'date' | 'text' | 'password';
|
|
1179
1172
|
inputValue: string;
|
|
1180
1173
|
focusInput: boolean;
|
|
1181
1174
|
hasUserTyped: boolean;
|
|
1182
1175
|
characterLimit: boolean;
|
|
1183
|
-
isPasswordField: boolean;
|
|
1184
|
-
allPasswordRequirementsValid: boolean;
|
|
1185
1176
|
ngOnInit(): void;
|
|
1186
1177
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1178
|
+
handleFocus(event: FocusEvent): void;
|
|
1179
|
+
handleBlur(event: FocusEvent): void;
|
|
1187
1180
|
focus(): void;
|
|
1188
1181
|
isFocused(): boolean;
|
|
1189
1182
|
getPlaceholder(): string;
|
|
@@ -1193,11 +1186,10 @@ declare class GravityTextFieldComponent implements OnInit, OnChanges {
|
|
|
1193
1186
|
getTextFieldStatus(): string;
|
|
1194
1187
|
getTextFieldInputFontSize(): string;
|
|
1195
1188
|
isNewIcon(iconPosition: 'left' | 'right'): boolean;
|
|
1196
|
-
get hasInvalidPasswordRequirements(): boolean;
|
|
1197
1189
|
onKeyDownEvent($event: KeyboardEvent): void;
|
|
1198
1190
|
formatDateInput(event: any): void;
|
|
1199
1191
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityTextFieldComponent, never>;
|
|
1200
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GravityTextFieldComponent, "gravity-text-field", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "cypressTag": { "alias": "cypressTag"; "required": false; }; "supportText": { "alias": "supportText"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "customInputValue": { "alias": "customInputValue"; "required": false; }; "currentLang": { "alias": "currentLang"; "required": false; }; "textFieldType": { "alias": "textFieldType"; "required": false; }; "customState": { "alias": "customState"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconRight": { "alias": "iconRight"; "required": false; }; "supportTextIcon": { "alias": "supportTextIcon"; "required": false; }; "clickOnLeftIcon": { "alias": "clickOnLeftIcon"; "required": false; }; "clickOnRightIcon": { "alias": "clickOnRightIcon"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "labelExtraText": { "alias": "labelExtraText"; "required": false; }; "size": { "alias": "size"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "characterCounter": { "alias": "characterCounter"; "required": false; }; "width": { "alias": "width"; "required": false; }; "
|
|
1192
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityTextFieldComponent, "gravity-text-field", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "cypressTag": { "alias": "cypressTag"; "required": false; }; "supportText": { "alias": "supportText"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "customInputValue": { "alias": "customInputValue"; "required": false; }; "currentLang": { "alias": "currentLang"; "required": false; }; "textFieldType": { "alias": "textFieldType"; "required": false; }; "customState": { "alias": "customState"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconRight": { "alias": "iconRight"; "required": false; }; "supportTextIcon": { "alias": "supportTextIcon"; "required": false; }; "clickOnLeftIcon": { "alias": "clickOnLeftIcon"; "required": false; }; "clickOnRightIcon": { "alias": "clickOnRightIcon"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "labelExtraText": { "alias": "labelExtraText"; "required": false; }; "size": { "alias": "size"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "characterCounter": { "alias": "characterCounter"; "required": false; }; "width": { "alias": "width"; "required": false; }; "inputContentType": { "alias": "inputContentType"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "leftIconResponse": "clickIconLeft"; "rightIconResponse": "clickIconRight"; "textFieldValueResponse": "response"; }, never, never, true, never>;
|
|
1201
1193
|
}
|
|
1202
1194
|
|
|
1203
1195
|
interface currency {
|
|
@@ -2682,6 +2674,52 @@ declare class GravityDesignSystemModule {
|
|
|
2682
2674
|
static ɵinj: i0.ɵɵInjectorDeclaration<GravityDesignSystemModule>;
|
|
2683
2675
|
}
|
|
2684
2676
|
|
|
2677
|
+
interface IPasswordFieldRequirement {
|
|
2678
|
+
key: string;
|
|
2679
|
+
label: string;
|
|
2680
|
+
isValid: boolean;
|
|
2681
|
+
}
|
|
2682
|
+
declare class GravityPasswordFieldComponent implements OnInit, OnChanges {
|
|
2683
|
+
cypressTag: string;
|
|
2684
|
+
size: 'sm' | 'md';
|
|
2685
|
+
customState: any;
|
|
2686
|
+
currentLang: 'en' | 'es';
|
|
2687
|
+
width: 'short' | 'medium' | 'full' | 'fit';
|
|
2688
|
+
textFieldValueResponse: EventEmitter<string>;
|
|
2689
|
+
label: string;
|
|
2690
|
+
placeholder: string;
|
|
2691
|
+
supportText: string;
|
|
2692
|
+
labelExtraText: string;
|
|
2693
|
+
supportTextIcon: string;
|
|
2694
|
+
inputValue: string;
|
|
2695
|
+
requirementsTitle: string;
|
|
2696
|
+
focusInput: boolean;
|
|
2697
|
+
showPassword: boolean;
|
|
2698
|
+
hasUserTyped: boolean;
|
|
2699
|
+
isPasswordEmpty: boolean;
|
|
2700
|
+
showStrengthMeter: boolean;
|
|
2701
|
+
allPasswordRequirementsValid: boolean;
|
|
2702
|
+
passwordRequirements: IPasswordFieldRequirement[];
|
|
2703
|
+
private readonly _translations;
|
|
2704
|
+
ngOnInit(): void;
|
|
2705
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2706
|
+
private _initializeDefaultRequirements;
|
|
2707
|
+
private _updateLabels;
|
|
2708
|
+
get shouldShowStrengthMeter(): boolean;
|
|
2709
|
+
togglePasswordVisibility(): void;
|
|
2710
|
+
onValueChange(value: string): void;
|
|
2711
|
+
onFocus(): void;
|
|
2712
|
+
onBlur(): void;
|
|
2713
|
+
validatePassword(password: string): void;
|
|
2714
|
+
private _updateComponentState;
|
|
2715
|
+
get hasInvalidPasswordRequirements(): boolean;
|
|
2716
|
+
get passwordStrength(): 'default' | 'weak' | 'normal' | 'strong';
|
|
2717
|
+
get passwordStrengthLabel(): string;
|
|
2718
|
+
get widthClass(): string;
|
|
2719
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GravityPasswordFieldComponent, never>;
|
|
2720
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityPasswordFieldComponent, "gravity-password-field", never, { "cypressTag": { "alias": "cypressTag"; "required": false; }; "size": { "alias": "size"; "required": false; }; "customState": { "alias": "customState"; "required": false; }; "currentLang": { "alias": "currentLang"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, { "textFieldValueResponse": "response"; }, never, never, true, never>;
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2685
2723
|
declare class GravityDialogManagerService {
|
|
2686
2724
|
private readonly ngbModal;
|
|
2687
2725
|
private readonly gravityInstantNotificationsService;
|
|
@@ -2738,5 +2776,5 @@ declare class GravityTooltipComponent implements OnInit {
|
|
|
2738
2776
|
static ɵcmp: i0.ɵɵComponentDeclaration<GravityTooltipComponent, "tooltip", never, { "data": { "alias": "data"; "required": false; }; "show": { "alias": "show"; "required": false; }; }, {}, never, never, true, never>;
|
|
2739
2777
|
}
|
|
2740
2778
|
|
|
2741
|
-
export { BsNavigationDirection, GravityActionCardComponent, GravityAttachFileComponent, GravityAvatarStackComponent, GravityBackdropComponent, GravityBadgeComponent, GravityButtonComponent, GravityCalendarV2Component, GravityCheckboxComponent, GravityChipGroupComponent, GravityCurrencyComponent, GravityCurrencyDisplayV2Component, GravityCurrencyDropdownShortComponent, GravityDataViewsV2Component, GravityDatePickerComponent, GravityDesignSystemModule, GravityDetailContainerComponent, GravityDialogComponent, GravityDialogManagerService, GravityDropdownLabelComponent, GravityDropdownListComponent, GravityDropdownListDisplayComponent, GravityEditableInputComponent, GravityGenericAvatarComponent, GravityGenericAvatarSecondaryComponent, GravityHeaderComponent, GravityIconButtonComponent, GravityIconComponent, GravityLinkComponent, GravityMenuComponent, GravityModalComponent, GravityMultiLanguageComponent, GravityNavigationCardComponent, GravityNetworkPillComponent, GravityNotificationInstantContainerComponent, GravityPaginationComponent, GravityPushNotificationsComponent, GravityRadioButtonComponent, GravityRadioCardComponent, GravitySegmentedButtonComponent, GravityStatusIndicatorComponent, GravityStepperComponent, GravityStepperV2Component, GravityStrengthMeterComponent, GravitySwitchComponent, GravityTabPrimaryComponent, GravityTabSecondaryComponent, GravityTableComponent, GravityTablesV2Component, GravityTextFieldAmountOnlyComponent, GravityTextFieldComponent, GravityTextFieldNumberOnlyComponent, GravityTooltipComponent, GravityTooltipContainerComponent, GravityTooltipDirective, GravityTooltipModule, GravityTreeViewComponent, ICONS, OLD_ICONS };
|
|
2779
|
+
export { BsNavigationDirection, GravityActionCardComponent, GravityAttachFileComponent, GravityAvatarStackComponent, GravityBackdropComponent, GravityBadgeComponent, GravityButtonComponent, GravityCalendarV2Component, GravityCheckboxComponent, GravityChipGroupComponent, GravityCurrencyComponent, GravityCurrencyDisplayV2Component, GravityCurrencyDropdownShortComponent, GravityDataViewsV2Component, GravityDatePickerComponent, GravityDesignSystemModule, GravityDetailContainerComponent, GravityDialogComponent, GravityDialogManagerService, GravityDropdownLabelComponent, GravityDropdownListComponent, GravityDropdownListDisplayComponent, GravityEditableInputComponent, GravityGenericAvatarComponent, GravityGenericAvatarSecondaryComponent, GravityHeaderComponent, GravityIconButtonComponent, GravityIconComponent, GravityLinkComponent, GravityMenuComponent, GravityModalComponent, GravityMultiLanguageComponent, GravityNavigationCardComponent, GravityNetworkPillComponent, GravityNotificationInstantContainerComponent, GravityPaginationComponent, GravityPasswordFieldComponent, GravityPushNotificationsComponent, GravityRadioButtonComponent, GravityRadioCardComponent, GravitySegmentedButtonComponent, GravityStatusIndicatorComponent, GravityStepperComponent, GravityStepperV2Component, GravityStrengthMeterComponent, GravitySwitchComponent, GravityTabPrimaryComponent, GravityTabSecondaryComponent, GravityTableComponent, GravityTablesV2Component, GravityTextFieldAmountOnlyComponent, GravityTextFieldComponent, GravityTextFieldNumberOnlyComponent, GravityTooltipComponent, GravityTooltipContainerComponent, GravityTooltipDirective, GravityTooltipModule, GravityTreeViewComponent, ICONS, OLD_ICONS };
|
|
2742
2780
|
export type { AdComponent, BreadCrumb, BsDatepickerViewMode, BsNavigationEvent, BsViewNavigationEvent, CalendarCellViewModel, CellHoverEvent, DatepickerFormatOptions, DatepickerRenderOptions, DayViewModel, DaysCalendarModel, DaysCalendarViewModel, GravityChipItem, GravityDialogContentInterface, GravityNotificationContent, GravityPageChangedEvent, MonthViewOptions, MonthsCalendarViewModel, NavigationViewModel, NodeItem, NodeState, SegmentedButton, WeekViewModel, YearsCalendarViewModel };
|