@progressio_resources/gravity-design-system 1.1.2 → 1.1.4

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 (27) hide show
  1. package/esm2020/lib/components/gravity-button/gravity-button.component.mjs +22 -11
  2. package/esm2020/lib/components/gravity-dialog/gravity-dialog.component.mjs +3 -3
  3. package/esm2020/lib/components/gravity-dropdown-list/gravity-dropdown-list.component.mjs +37 -13
  4. package/esm2020/lib/components/gravity-notification/gravity-notification-content.interface.mjs +2 -0
  5. package/esm2020/lib/components/gravity-notification/gravity-notification.component.mjs +1 -1
  6. package/esm2020/lib/components/gravity-text-field/gravity-text-field.component.mjs +66 -19
  7. package/esm2020/lib/gravity-design-system.module.mjs +8 -5
  8. package/esm2020/lib/services/gravity-dialog-manager.service.mjs +2 -2
  9. package/esm2020/lib/services/gravity-instant-notifications.service.mjs +1 -1
  10. package/esm2020/public-api.mjs +3 -1
  11. package/fesm2015/progressio_resources-gravity-design-system.mjs +130 -46
  12. package/fesm2015/progressio_resources-gravity-design-system.mjs.map +1 -1
  13. package/fesm2020/progressio_resources-gravity-design-system.mjs +130 -46
  14. package/fesm2020/progressio_resources-gravity-design-system.mjs.map +1 -1
  15. package/lib/components/gravity-button/gravity-button.component.d.ts +9 -15
  16. package/lib/components/gravity-dialog/gravity-dialog.component.d.ts +2 -1
  17. package/lib/components/gravity-dropdown-list/gravity-dropdown-list.component.d.ts +20 -25
  18. package/lib/components/gravity-notification/gravity-notification-content.interface.d.ts +5 -0
  19. package/lib/components/gravity-notification/gravity-notification.component.d.ts +1 -5
  20. package/lib/components/gravity-text-field/gravity-text-field.component.d.ts +23 -21
  21. package/lib/gravity-design-system.module.d.ts +1 -1
  22. package/lib/services/gravity-dialog-manager.service.d.ts +1 -1
  23. package/lib/services/gravity-instant-notifications.service.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/public-api.d.ts +1 -0
  26. package/src/lib/styles/fundamentals/colors/tokens/_hero.tokens.scss +2 -2
  27. package/src/lib/styles/overwrite/bootstrap/_modal.scss +2 -2
@@ -1,35 +1,30 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class GravityDropdownListComponent implements OnInit {
3
+ export declare class GravityDropdownListComponent {
4
4
  selectedItemResponse: EventEmitter<any>;
5
- data: {
6
- currentLang?: string;
7
- cypressTag?: string;
8
- icon?: {
9
- names: string[];
10
- placement?: 'left' | 'right';
11
- };
12
- label: string;
13
- ngSelectConfig: {
14
- bindLabel?: string;
15
- bindValue?: string;
16
- clearable?: boolean;
17
- items: Array<any>;
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, { "data": "data"; }, { "selectedItemResponse": "response"; }, never, never, false, 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
  }
@@ -0,0 +1,5 @@
1
+ export interface GravityNotificationContent {
2
+ state: 'error' | 'success' | 'warning';
3
+ title: string;
4
+ text: string;
5
+ }
@@ -1,4 +1,5 @@
1
1
  import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
2
+ import { GravityNotificationContent } from "./gravity-notification-content.interface";
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class GravityNotificationComponent {
4
5
  private readonly ngbActiveModal;
@@ -8,8 +9,3 @@ export declare class GravityNotificationComponent {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<GravityNotificationComponent, never>;
9
10
  static ɵcmp: i0.ɵɵComponentDeclaration<GravityNotificationComponent, "ng-component", never, { "notificationContent": "notificationContent"; }, {}, never, never, false, never>;
10
11
  }
11
- export interface GravityNotificationContent {
12
- state: 'error' | 'success' | 'warning';
13
- title: string;
14
- text: string;
15
- }
@@ -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
- data: {
6
- autocomplete?: string;
7
- currentLang?: string;
8
- customPlaceholder?: string;
9
- customInputValue?: string;
10
- cypressTag?: string;
11
- icon?: {
12
- names: string[];
13
- placement?: 'left' | 'right';
14
- };
15
- inputContentType?: 'email' | 'password' | 'text';
16
- label: string;
17
- placeholderType?: 'default' | 'email' | 'url';
18
- required?: boolean;
19
- state?: 'readonly' | 'disabled' | 'enabled';
20
- supportText?: {
21
- content: string;
22
- type: 'neutro' | 'negative' | 'positive';
23
- };
24
- textFieldType?: 'input' | 'textarea';
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, { "data": "data"; }, { "textFieldValueResponse": "response"; }, never, never, false, 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
  }
@@ -1,7 +1,7 @@
1
1
  import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
2
2
  import { GravityDialogContentInterface } from "../components/gravity-dialog/gravity-dialog.component";
3
3
  import { GravityInstantNotificationsService } from "./gravity-instant-notifications.service";
4
- import { GravityNotificationContent } from "../components/gravity-notification/gravity-notification.component";
4
+ import { GravityNotificationContent } from "../components/gravity-notification/gravity-notification-content.interface";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class GravityDialogManagerService {
7
7
  private readonly ngbModal;
@@ -1,4 +1,4 @@
1
- import { GravityNotificationContent } from "../components/gravity-notification/gravity-notification.component";
1
+ import { GravityNotificationContent } from "../components/gravity-notification/gravity-notification-content.interface";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class GravityInstantNotificationsService {
4
4
  readonly notifications: GravityNotificationContent[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progressio_resources/gravity-design-system",
3
3
  "description": "Gravity Design System",
4
- "version": "1.1.2",
4
+ "version": "1.1.4",
5
5
  "license": "SEE LICENSE IN LIBRARY-LICENSE",
6
6
  "peerDependencies": {
7
7
  "@angular/common": "^15.1.0",
package/public-api.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from './lib/components/gravity-switch/gravity-switch.component';
11
11
  export * from './lib/components/gravity-text-field/gravity-text-field.component';
12
12
  export * from './lib/services/gravity-dialog-manager.service';
13
13
  export * from './lib/vendor/gravity-tooltip';
14
+ export * from './lib/components/gravity-notification/gravity-notification-content.interface';
@@ -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};
@@ -18,9 +18,9 @@ $modal-margin: 3.5rem;
18
18
  .modal-dialog {
19
19
  margin: $modal-margin auto;
20
20
  position: relative;
21
- max-width: 40rem;
21
+ max-width: 85vw;
22
22
  pointer-events: none;
23
- width: auto;
23
+ width: 35rem;
24
24
 
25
25
  .modal.fade & {
26
26
  transform: translate(0, -2rem);