@progressio_resources/gravity-design-system 1.1.14 → 1.1.16
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-attach-file/gravity-attach-file.component.mjs +3 -3
- package/esm2020/lib/components/gravity-button/gravity-button.component.mjs +4 -7
- package/esm2020/lib/components/gravity-calendar/gravity-calendar.component.mjs +35 -23
- package/esm2020/lib/components/gravity-checkbox/gravity-checkbox.component.mjs +2 -2
- package/esm2020/lib/components/gravity-dialog/gravity-dialog.component.mjs +3 -3
- package/esm2020/lib/components/gravity-dropdown-list/gravity-dropdown-list.component.mjs +3 -3
- package/esm2020/lib/components/gravity-icon/gravity-icon.component.mjs +3 -3
- package/esm2020/lib/components/gravity-notification/gravity-notification.component.mjs +3 -3
- package/esm2020/lib/components/gravity-notification-instant/gravity-notification-instant-container.component.mjs +3 -3
- package/esm2020/lib/components/gravity-radio-button/gravity-radio-button.component.mjs +2 -2
- package/esm2020/lib/components/gravity-switch/gravity-switch.component.mjs +2 -2
- package/esm2020/lib/components/gravity-text-field/gravity-text-field.component.mjs +15 -5
- package/esm2020/lib/services/gravity-dialog-manager.service.mjs +6 -3
- package/fesm2015/progressio_resources-gravity-design-system.mjs +74 -52
- package/fesm2015/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/fesm2020/progressio_resources-gravity-design-system.mjs +74 -52
- package/fesm2020/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/lib/components/gravity-button/gravity-button.component.d.ts +2 -3
- package/lib/components/gravity-calendar/gravity-calendar.component.d.ts +15 -23
- package/lib/components/gravity-dialog/gravity-dialog.component.d.ts +4 -2
- package/lib/components/gravity-text-field/gravity-text-field.component.d.ts +2 -1
- package/lib/services/gravity-dialog-manager.service.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/assets/icons/lock.svg +2 -2
- package/src/lib/assets/json/icons.json +3 -11
- package/src/lib/styles/_responsive.scss +1 -1
- package/src/lib/styles/components/_card_highlight.scss +2 -2
- package/src/lib/styles/components/_datepicker.scss +2 -2
- package/src/lib/styles/{fundamentals → foundations}/colors/primitives/_hero.primitives.scss +26 -24
- package/src/lib/styles/{fundamentals → foundations}/colors/themes/_hero.theme.scss +348 -347
- package/src/lib/styles/{fundamentals → foundations}/colors/tokens/_hero.tokens.scss +372 -371
- package/src/lib/styles/foundations/elevation/_hero.elevation.scss +22 -0
- package/src/lib/styles/foundations/grids/_grids.scss +158 -0
- package/src/lib/styles/gravity-design-system.scss +13 -6
- package/src/lib/styles/overwrite/bootstrap/_modal.scss +5 -2
- package/src/lib/styles/themes/_hero.scss +4 -0
- package/src/lib/assets/icons/radio-off.svg +0 -3
- package/src/lib/assets/icons/radio-on.svg +0 -3
- package/src/lib/styles/fundamentals/grids/grids.scss +0 -6
- /package/src/lib/styles/{fundamentals → foundations}/border-radius/_hero.border-radius.scss +0 -0
- /package/src/lib/styles/{fundamentals/breakpoints/breakpoints.scss → foundations/breakpoints/_breakpoints.scss} +0 -0
- /package/src/lib/styles/{fundamentals/spacing/spacing.scss → foundations/spacing/_spacing.scss} +0 -0
- /package/src/lib/styles/{fundamentals → foundations}/typography/_hero.typography.scss +0 -0
|
@@ -2,11 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class GravityButtonComponent {
|
|
3
3
|
cypressTag: string;
|
|
4
4
|
disabled: boolean;
|
|
5
|
-
|
|
6
|
-
iconPlacement: 'left' | 'right';
|
|
5
|
+
iconName: string;
|
|
7
6
|
isLoading: boolean;
|
|
8
7
|
size: 'sm' | 'md';
|
|
9
8
|
type: 'primary' | 'secondary' | 'tertiary' | 'positive' | 'negative' | 'alternative' | 'disabled';
|
|
10
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityButtonComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GravityButtonComponent, "gravity-button", never, { "cypressTag": "cypressTag"; "disabled": "disabled"; "
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityButtonComponent, "gravity-button", never, { "cypressTag": "cypressTag"; "disabled": "disabled"; "iconName": "iconName"; "isLoading": "isLoading"; "size": "size"; "type": "type"; }, {}, never, ["*"], false, never>;
|
|
12
11
|
}
|
|
@@ -2,30 +2,22 @@ import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/
|
|
|
2
2
|
import { NgbDate, NgbDateStruct } from "@ng-bootstrap/ng-bootstrap";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class GravityCalendarComponent implements OnChanges, AfterViewInit {
|
|
5
|
-
private datePicker;
|
|
6
|
-
private datepickerInput;
|
|
7
5
|
calendarResponse: EventEmitter<Date>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
minDate?: Date;
|
|
16
|
-
};
|
|
17
|
-
icon?: {
|
|
18
|
-
names: string[];
|
|
19
|
-
placement?: 'left' | 'right';
|
|
20
|
-
};
|
|
21
|
-
label: string;
|
|
22
|
-
required?: boolean;
|
|
23
|
-
state?: 'readonly' | 'disabled' | 'enabled';
|
|
24
|
-
supportText?: {
|
|
25
|
-
content: string;
|
|
26
|
-
type: 'neutro' | 'negative' | 'positive';
|
|
27
|
-
};
|
|
6
|
+
currentLang: string;
|
|
7
|
+
cypressTag: string;
|
|
8
|
+
dates: {
|
|
9
|
+
customDate?: 'today' | Date;
|
|
10
|
+
defaultDays?: number;
|
|
11
|
+
maxDate?: 'today' | Date;
|
|
12
|
+
minDate?: Date;
|
|
28
13
|
};
|
|
14
|
+
label: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
state: 'readonly' | 'disabled' | 'enabled';
|
|
17
|
+
supportTextContent: string;
|
|
18
|
+
supportTextType: 'neutro' | 'negative' | 'positive';
|
|
19
|
+
private datePicker;
|
|
20
|
+
private datepickerInput;
|
|
29
21
|
calendarOpened: boolean;
|
|
30
22
|
focusInput: boolean;
|
|
31
23
|
maxDate: NgbDateStruct;
|
|
@@ -44,5 +36,5 @@ export declare class GravityCalendarComponent implements OnChanges, AfterViewIni
|
|
|
44
36
|
private static formatDateToNgbDateStruct;
|
|
45
37
|
private static convertNgbDateToDate;
|
|
46
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityCalendarComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GravityCalendarComponent, "gravity-calendar", never, { "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityCalendarComponent, "gravity-calendar", never, { "currentLang": "currentLang"; "cypressTag": "cypressTag"; "dates": "dates"; "label": "label"; "required": "required"; "state": "state"; "supportTextContent": "supportTextContent"; "supportTextType": "supportTextType"; }, { "calendarResponse": "response"; }, never, never, false, never>;
|
|
48
40
|
}
|
|
@@ -10,9 +10,11 @@ export declare class GravityDialogComponent {
|
|
|
10
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<GravityDialogComponent, "ng-component", never, { "dialogContent": "dialogContent"; }, {}, never, never, false, never>;
|
|
11
11
|
}
|
|
12
12
|
export interface GravityDialogContentInterface {
|
|
13
|
+
contentTemplateRef?: TemplateRef<any>;
|
|
14
|
+
contentTemplateComponent?: any;
|
|
15
|
+
footerTemplateRef?: TemplateRef<any>;
|
|
16
|
+
footerTemplateComponent?: any;
|
|
13
17
|
showCloseIcon?: boolean;
|
|
14
|
-
templateRef?: TemplateRef<any>;
|
|
15
|
-
templateComponent?: any;
|
|
16
18
|
titleIconName?: string;
|
|
17
19
|
title: string;
|
|
18
20
|
}
|
|
@@ -15,6 +15,7 @@ export declare class GravityTextFieldComponent implements OnInit {
|
|
|
15
15
|
inputContentType: 'email' | 'number' | 'password' | 'text';
|
|
16
16
|
label: string;
|
|
17
17
|
placeholderType: 'default' | 'email' | 'url';
|
|
18
|
+
prefix: string;
|
|
18
19
|
required: boolean;
|
|
19
20
|
state: 'readonly' | 'disabled' | 'enabled';
|
|
20
21
|
supportTextContent: string;
|
|
@@ -36,5 +37,5 @@ export declare class GravityTextFieldComponent implements OnInit {
|
|
|
36
37
|
private changeInputValue;
|
|
37
38
|
handleIconClick(iconName: string): void;
|
|
38
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityTextFieldComponent, never>;
|
|
39
|
-
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>;
|
|
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"; "prefix": "prefix"; "required": "required"; "state": "state"; "supportTextContent": "supportTextContent"; "supportTextType": "supportTextType"; "textFieldType": "textFieldType"; "validations": "validations"; }, { "iconResponse": "clickIcon"; "textFieldValueResponse": "response"; }, never, never, false, never>;
|
|
40
41
|
}
|
|
@@ -7,7 +7,7 @@ export declare class GravityDialogManagerService {
|
|
|
7
7
|
private readonly ngbModal;
|
|
8
8
|
private readonly gravityInstantNotificationsService;
|
|
9
9
|
constructor(ngbModal: NgbModal, gravityInstantNotificationsService: GravityInstantNotificationsService);
|
|
10
|
-
openModal(gravityDialogContentInterface: GravityDialogContentInterface): void;
|
|
10
|
+
openModal(gravityDialogContentInterface: GravityDialogContentInterface, scrollableDialog?: boolean): void;
|
|
11
11
|
throwInformativeNotification(notificationContent: GravityNotificationContent): void;
|
|
12
12
|
throwInstantNotification(notificationContent: GravityNotificationContent): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityDialogManagerService, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="17.678" viewBox="0 0 14 17.678">
|
|
2
2
|
<g transform="translate(1 0.734)">
|
|
3
|
-
<path d="M10,8.5H2A2.066,2.066,0,0,1,0,6.377V0H12V6.377A2.066,2.066,0,0,1,10,8.5Z" transform="translate(0 7.44)" fill="none" stroke="var(--icon-color, #888)" stroke-linecap="round" stroke-miterlimit="10" stroke-width="
|
|
4
|
-
<path d="M0,5.846A5.681,5.681,0,0,1,5.5,0,5.681,5.681,0,0,1,11,5.846" transform="translate(0.5 0.266)" fill="none" stroke="var(--icon-color, #888)" stroke-linecap="round" stroke-miterlimit="10" stroke-width="
|
|
3
|
+
<path d="M10,8.5H2A2.066,2.066,0,0,1,0,6.377V0H12V6.377A2.066,2.066,0,0,1,10,8.5Z" transform="translate(0 7.44)" fill="none" stroke="var(--icon-color, #888)" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.667"/>
|
|
4
|
+
<path d="M0,5.846A5.681,5.681,0,0,1,5.5,0,5.681,5.681,0,0,1,11,5.846" transform="translate(0.5 0.266)" fill="none" stroke="var(--icon-color, #888)" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.667"/>
|
|
5
5
|
</g>
|
|
6
6
|
</svg>
|
|
@@ -61,25 +61,17 @@
|
|
|
61
61
|
"iconPath": "/assets/gravity/icons/mail.svg"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"iconName": "
|
|
64
|
+
"iconName": "notification_error",
|
|
65
65
|
"iconPath": "/assets/gravity/icons/notifications/error.svg"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
"iconName": "
|
|
68
|
+
"iconName": "notification_success",
|
|
69
69
|
"iconPath": "/assets/gravity/icons/notifications/success.svg"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
"iconName": "
|
|
72
|
+
"iconName": "notification_warning",
|
|
73
73
|
"iconPath": "/assets/gravity/icons/notifications/warning.svg"
|
|
74
74
|
},
|
|
75
|
-
{
|
|
76
|
-
"iconName": "radio-on",
|
|
77
|
-
"iconPath": "/assets/gravity/icons/radio-on.svg"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"iconName": "radio-off",
|
|
81
|
-
"iconPath": "/assets/gravity/icons/radio-off.svg"
|
|
82
|
-
},
|
|
83
75
|
{
|
|
84
76
|
"iconName": "search",
|
|
85
77
|
"iconPath": "/assets/gravity/icons/search.svg"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import "../
|
|
2
|
-
@import "../
|
|
1
|
+
@import "../foundations/typography/hero.typography";
|
|
2
|
+
@import "../foundations/border-radius/hero.border-radius";
|
|
3
3
|
@import "../shared";
|
|
4
4
|
|
|
5
5
|
.gravity-card-highlight {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import "../
|
|
2
|
-
@import "../
|
|
1
|
+
@import "../foundations/typography/hero.typography";
|
|
2
|
+
@import "../foundations/border-radius/hero.border-radius";
|
|
3
3
|
@import "../shared";
|
|
4
4
|
|
|
5
5
|
ngb-datepicker.gravity-datepicker-dialog {
|
|
@@ -8,13 +8,7 @@ $b600: #a3bcdc;
|
|
|
8
8
|
$b700: #cbe2ff;
|
|
9
9
|
$b800: #e7f1ff;
|
|
10
10
|
|
|
11
|
-
$
|
|
12
|
-
$g200: #055936;
|
|
13
|
-
$g300: #20662e;
|
|
14
|
-
$g400: #a5d7c2;
|
|
15
|
-
$g500: #ccfae7;
|
|
16
|
-
$g600: #e8fff5;
|
|
17
|
-
|
|
11
|
+
$n0: #0f131b;
|
|
18
12
|
$n100: #151c29;
|
|
19
13
|
$n200: #1e283a;
|
|
20
14
|
$n300: #21304a;
|
|
@@ -25,11 +19,12 @@ $n700: #d6dce5;
|
|
|
25
19
|
$n800: #f4f6f9;
|
|
26
20
|
$n900: #ffffff;
|
|
27
21
|
|
|
28
|
-
$
|
|
29
|
-
$
|
|
30
|
-
$
|
|
31
|
-
$
|
|
32
|
-
$
|
|
22
|
+
$g100: #004327;
|
|
23
|
+
$g200: #055936;
|
|
24
|
+
$g300: #20662e;
|
|
25
|
+
$g400: #a5d7c2;
|
|
26
|
+
$g500: #ccfae7;
|
|
27
|
+
$g600: #e8fff5;
|
|
33
28
|
|
|
34
29
|
$r100: #310101;
|
|
35
30
|
$r200: #7c1111;
|
|
@@ -39,6 +34,12 @@ $r500: #f19999;
|
|
|
39
34
|
$r600: #ffc3c3;
|
|
40
35
|
$r700: #ffdede;
|
|
41
36
|
|
|
37
|
+
$o100: #3c2000;
|
|
38
|
+
$o200: #542503;
|
|
39
|
+
$o300: #ff9d57;
|
|
40
|
+
$o400: #ffb27b;
|
|
41
|
+
$o500: #ffd2b2;
|
|
42
|
+
|
|
42
43
|
//This class must be only for gallery implementation
|
|
43
44
|
.hero-primitives {
|
|
44
45
|
--b100: #04163f;
|
|
@@ -50,13 +51,7 @@ $r700: #ffdede;
|
|
|
50
51
|
--b700: #cbe2ff;
|
|
51
52
|
--b800: #e7f1ff;
|
|
52
53
|
|
|
53
|
-
--
|
|
54
|
-
--g200: #055936;
|
|
55
|
-
--g300: #20662e;
|
|
56
|
-
--g400: #a5d7c2;
|
|
57
|
-
--g500: #ccfae7;
|
|
58
|
-
--g600: #e8fff5;
|
|
59
|
-
|
|
54
|
+
--n0: #0f131b;
|
|
60
55
|
--n100: #151c29;
|
|
61
56
|
--n200: #1e283a;
|
|
62
57
|
--n300: #21304a;
|
|
@@ -67,11 +62,12 @@ $r700: #ffdede;
|
|
|
67
62
|
--n800: #f4f6f9;
|
|
68
63
|
--n900: #ffffff;
|
|
69
64
|
|
|
70
|
-
--
|
|
71
|
-
--
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--
|
|
65
|
+
--g100: #004327;
|
|
66
|
+
--g200: #055936;
|
|
67
|
+
--g300: #20662e;
|
|
68
|
+
--g400: #a5d7c2;
|
|
69
|
+
--g500: #ccfae7;
|
|
70
|
+
--g600: #e8fff5;
|
|
75
71
|
|
|
76
72
|
--r100: #310101;
|
|
77
73
|
--r200: #7c1111;
|
|
@@ -80,4 +76,10 @@ $r700: #ffdede;
|
|
|
80
76
|
--r500: #f19999;
|
|
81
77
|
--r600: #ffc3c3;
|
|
82
78
|
--r700: #ffdede;
|
|
79
|
+
|
|
80
|
+
--o100: #3c2000;
|
|
81
|
+
--o200: #542503;
|
|
82
|
+
--o300: #ff9d57;
|
|
83
|
+
--o400: #ffb27b;
|
|
84
|
+
--o500: #ffd2b2;
|
|
83
85
|
}
|