@progressio_resources/gravity-design-system 1.1.1 → 1.1.2
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-dialog/gravity-dialog.component.mjs +5 -5
- package/esm2020/lib/components/gravity-notification/gravity-notification.component.mjs +21 -0
- package/esm2020/lib/components/gravity-notification-instant/gravity-notification-instant-container.component.mjs +18 -0
- package/esm2020/lib/components/gravity-text-field/gravity-text-field.component.mjs +11 -4
- package/esm2020/lib/gravity-design-system.module.mjs +13 -2
- package/esm2020/lib/services/gravity-dialog-manager.service.mjs +19 -6
- package/esm2020/lib/services/gravity-instant-notifications.service.mjs +23 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/progressio_resources-gravity-design-system.mjs +89 -12
- package/fesm2015/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/fesm2020/progressio_resources-gravity-design-system.mjs +89 -12
- package/fesm2020/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/lib/components/gravity-notification/gravity-notification.component.d.ts +15 -0
- package/lib/components/gravity-notification-instant/gravity-notification-instant-container.component.d.ts +8 -0
- package/lib/components/gravity-text-field/gravity-text-field.component.d.ts +3 -1
- package/lib/gravity-design-system.module.d.ts +14 -12
- package/lib/services/gravity-dialog-manager.service.d.ts +6 -1
- package/lib/services/gravity-instant-notifications.service.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/lib/assets/icons/notifications/error.svg +6 -0
- package/src/lib/assets/icons/notifications/success.svg +3 -0
- package/src/lib/assets/icons/notifications/warning.svg +5 -0
- package/src/lib/assets/json/icons.json +12 -0
- package/src/lib/styles/overwrite/bootstrap/_modal.scss +19 -6
|
@@ -5,19 +5,21 @@ import * as i3 from "./components/gravity-checkbox/gravity-checkbox.component";
|
|
|
5
5
|
import * as i4 from "./components/gravity-dialog/gravity-dialog.component";
|
|
6
6
|
import * as i5 from "./components/gravity-dropdown-list/gravity-dropdown-list.component";
|
|
7
7
|
import * as i6 from "./components/gravity-icon/gravity-icon.component";
|
|
8
|
-
import * as i7 from "./components/gravity-
|
|
9
|
-
import * as i8 from "./components/gravity-
|
|
10
|
-
import * as i9 from "./components/gravity-
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "@
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
8
|
+
import * as i7 from "./components/gravity-notification/gravity-notification.component";
|
|
9
|
+
import * as i8 from "./components/gravity-notification-instant/gravity-notification-instant-container.component";
|
|
10
|
+
import * as i9 from "./components/gravity-radio-button/gravity-radio-button.component";
|
|
11
|
+
import * as i10 from "./components/gravity-switch/gravity-switch.component";
|
|
12
|
+
import * as i11 from "./components/gravity-text-field/gravity-text-field.component";
|
|
13
|
+
import * as i12 from "angular-svg-icon";
|
|
14
|
+
import * as i13 from "angular-svg-icon-preloader";
|
|
15
|
+
import * as i14 from "@angular/common";
|
|
16
|
+
import * as i15 from "@angular/forms";
|
|
17
|
+
import * as i16 from "./vendor/gravity-tooltip/gravity-tooltip.module";
|
|
18
|
+
import * as i17 from "@ng-bootstrap/ng-bootstrap";
|
|
19
|
+
import * as i18 from "@ng-select/ng-select";
|
|
20
|
+
import * as i19 from "ngx-pretty-checkbox";
|
|
19
21
|
export declare class GravityDesignSystemModule {
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityDesignSystemModule, never>;
|
|
21
|
-
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.
|
|
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]>;
|
|
22
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<GravityDesignSystemModule>;
|
|
23
25
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
2
2
|
import { GravityDialogContentInterface } from "../components/gravity-dialog/gravity-dialog.component";
|
|
3
|
+
import { GravityInstantNotificationsService } from "./gravity-instant-notifications.service";
|
|
4
|
+
import { GravityNotificationContent } from "../components/gravity-notification/gravity-notification.component";
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class GravityDialogManagerService {
|
|
5
7
|
private readonly ngbModal;
|
|
6
|
-
|
|
8
|
+
private readonly gravityInstantNotificationsService;
|
|
9
|
+
constructor(ngbModal: NgbModal, gravityInstantNotificationsService: GravityInstantNotificationsService);
|
|
7
10
|
openModal(gravityDialogContentInterface: GravityDialogContentInterface): void;
|
|
11
|
+
throwInformativeNotification(notificationContent: GravityNotificationContent): void;
|
|
12
|
+
throwInstantNotification(notificationContent: GravityNotificationContent): void;
|
|
8
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityDialogManagerService, never>;
|
|
9
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<GravityDialogManagerService>;
|
|
10
15
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GravityNotificationContent } from "../components/gravity-notification/gravity-notification.component";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GravityInstantNotificationsService {
|
|
4
|
+
readonly notifications: GravityNotificationContent[];
|
|
5
|
+
showNotification(content: GravityNotificationContent): void;
|
|
6
|
+
hideNotification(index: number): void;
|
|
7
|
+
clearNotifications(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GravityInstantNotificationsService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GravityInstantNotificationsService>;
|
|
10
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './lib/components/gravity-checkbox/gravity-checkbox.component';
|
|
|
5
5
|
export * from './lib/components/gravity-dialog/gravity-dialog.component';
|
|
6
6
|
export * from './lib/components/gravity-dropdown-list/gravity-dropdown-list.component';
|
|
7
7
|
export * from './lib/components/gravity-icon/gravity-icon.component';
|
|
8
|
+
export * from './lib/components/gravity-notification-instant/gravity-notification-instant-container.component';
|
|
8
9
|
export * from './lib/components/gravity-radio-button/gravity-radio-button.component';
|
|
9
10
|
export * from './lib/components/gravity-switch/gravity-switch.component';
|
|
10
11
|
export * from './lib/components/gravity-text-field/gravity-text-field.component';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="13.58" height="17.487" viewBox="0 0 13.58 17.487">
|
|
2
|
+
<g transform="translate(1.413 1.664)">
|
|
3
|
+
<path d="M0,0,10.754,10.016" transform="translate(0 2.071)" fill="none" stroke="var(--icon-color, #888)" stroke-linecap="round" stroke-width="2"/>
|
|
4
|
+
<path d="M0,0,12.766,7.058" transform="matrix(0.259, -0.966, 0.966, 0.259, 0.338, 12.331)" fill="none" stroke="var(--icon-color, #888)" stroke-linecap="round" stroke-width="2"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18.764" height="16.688" viewBox="0 0 18.764 16.688">
|
|
2
|
+
<g transform="translate(-5.75 -10.75)">
|
|
3
|
+
<path d="M15.132,11a1.642,1.642,0,0,0-1.414.837L6.473,24.069v.006A2.894,2.894,0,0,0,6,25.528a1.667,1.667,0,0,0,1.66,1.66H22.6a1.667,1.667,0,0,0,1.66-1.66,2.894,2.894,0,0,0-.473-1.453v-.006L16.546,11.837A1.643,1.643,0,0,0,15.132,11Zm0,.83a.705.705,0,0,1,.7.428L23.077,24.49a2.168,2.168,0,0,1,.357,1.038.824.824,0,0,1-.83.83H7.66a.824.824,0,0,1-.83-.83,2.168,2.168,0,0,1,.357-1.038l7.244-12.232A.705.705,0,0,1,15.132,11.83Zm-.045,4.144a.415.415,0,0,0-.37.422v5.4a.415.415,0,0,0,.83.012V16.4a.415.415,0,0,0-.406-.424A.4.4,0,0,0,15.086,15.975Zm.045,7.063a.623.623,0,1,0,.623.623A.623.623,0,0,0,15.132,23.037Z" fill="var(--icon-color, #888)" stroke="var(--icon-color, #888)" stroke-width="0.5"/>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
|
@@ -56,6 +56,18 @@
|
|
|
56
56
|
"iconName": "mail",
|
|
57
57
|
"iconPath": "/assets/gravity/icons/mail.svg"
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
"iconName": "notification-error",
|
|
61
|
+
"iconPath": "/assets/gravity/icons/notifications/error.svg"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"iconName": "notification-success",
|
|
65
|
+
"iconPath": "/assets/gravity/icons/notifications/success.svg"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"iconName": "notification-warning",
|
|
69
|
+
"iconPath": "/assets/gravity/icons/notifications/warning.svg"
|
|
70
|
+
},
|
|
59
71
|
{
|
|
60
72
|
"iconName": "radio-on",
|
|
61
73
|
"iconPath": "/assets/gravity/icons/radio-on.svg"
|
|
@@ -40,11 +40,20 @@ $modal-margin: 3.5rem;
|
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.
|
|
43
|
+
.dialog-body {
|
|
44
44
|
overflow-y: auto;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
.informative-notification {
|
|
49
|
+
width: 28rem;
|
|
50
|
+
|
|
51
|
+
.modal-content {
|
|
52
|
+
--dialog-background-color: var(--bg-notification-primary);
|
|
53
|
+
--dialog-text-color: var(--on-bg-notification-primary);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
48
57
|
.modal-dialog-centered {
|
|
49
58
|
align-items: center;
|
|
50
59
|
display: flex;
|
|
@@ -62,21 +71,25 @@ $modal-margin: 3.5rem;
|
|
|
62
71
|
height: 100%;
|
|
63
72
|
}
|
|
64
73
|
|
|
65
|
-
.
|
|
66
|
-
.
|
|
74
|
+
.dialog-header,
|
|
75
|
+
.dialog-footer {
|
|
67
76
|
border-radius: 0;
|
|
68
77
|
}
|
|
69
78
|
|
|
70
|
-
.
|
|
79
|
+
.dialog-body {
|
|
71
80
|
overflow-y: auto;
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
|
|
75
84
|
.modal-content {
|
|
85
|
+
--dialog-background-color: var(--bg-dialog-primary);
|
|
86
|
+
--dialog-text-color: var(--text-primary);
|
|
87
|
+
|
|
76
88
|
background-clip: padding-box;
|
|
77
|
-
background-color: var(--
|
|
89
|
+
background-color: var(--dialog-background-color);
|
|
78
90
|
border-radius: $border-radius-system;
|
|
79
|
-
|
|
91
|
+
box-shadow: 0 27px 34px #000c208f;
|
|
92
|
+
color: var(--dialog-text-color);
|
|
80
93
|
display: flex;
|
|
81
94
|
flex-direction: column;
|
|
82
95
|
outline: 0;
|