@provoly/dashboard 1.4.49 → 1.4.50
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/esm2022/lib/core/components/snackbar/snack.interface.mjs +1 -1
- package/esm2022/lib/core/components/snackbar/snackbar/snackbar.component.mjs +48 -12
- package/esm2022/lib/core/components/snackbar/snackbar.service.mjs +50 -12
- package/fesm2022/provoly-dashboard.mjs +92 -20
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/components/snackbar/snack.interface.d.ts +2 -1
- package/lib/core/components/snackbar/snackbar/snackbar.component.d.ts +16 -3
- package/lib/core/components/snackbar/snackbar.service.d.ts +9 -3
- package/package.json +37 -37
- package/styles-theme/components-theme/_m-snackbar.theme.scss +5 -0
|
@@ -1,25 +1,38 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { PrySnackMessage } from '../snack.interface';
|
|
4
|
+
import { PrySnackbarService } from '../snackbar.service';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class PrySnackbarComponent {
|
|
6
8
|
private cdRef;
|
|
9
|
+
private snackService;
|
|
10
|
+
private router;
|
|
7
11
|
container: any;
|
|
8
12
|
_data: PrySnackMessage;
|
|
9
13
|
set data(message: PrySnackMessage);
|
|
10
|
-
listIndex: number;
|
|
11
14
|
actionClicked: Subject<void>;
|
|
12
15
|
transformOptions: string;
|
|
13
16
|
transitionOptions: string;
|
|
14
17
|
hiddenFromAction: boolean;
|
|
15
|
-
|
|
18
|
+
private _listIndex;
|
|
19
|
+
snackStyle: {
|
|
20
|
+
top?: string;
|
|
21
|
+
bottom?: string;
|
|
22
|
+
};
|
|
23
|
+
set listIndex(listIndex: number);
|
|
24
|
+
get listIndex(): number;
|
|
25
|
+
constructor(cdRef: ChangeDetectorRef, snackService: PrySnackbarService, router: Router);
|
|
16
26
|
get data(): PrySnackMessage;
|
|
17
27
|
get typeClass(): {
|
|
18
28
|
[x: string]: boolean;
|
|
19
29
|
};
|
|
30
|
+
getStyle(): void;
|
|
20
31
|
get icon(): string;
|
|
21
32
|
actionClick(): void;
|
|
22
33
|
hide(): void;
|
|
34
|
+
openEvenement(data: PrySnackMessage): void;
|
|
35
|
+
closeNotif(data: PrySnackMessage): void;
|
|
23
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrySnackbarComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PrySnackbarComponent, "pry-snackbar", never, { "data": { "alias": "data"; "required": false; }; "
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PrySnackbarComponent, "pry-snackbar", never, { "data": { "alias": "data"; "required": false; }; "actionClicked": { "alias": "actionClicked"; "required": false; }; "listIndex": { "alias": "listIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
38
|
}
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import { ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
2
|
+
import { ComponentRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { PryI18nService } from '../../i18n/i18n.service';
|
|
5
5
|
import { PrySnackMessage } from './snack.interface';
|
|
6
|
+
import { PrySnackbarComponent } from './snackbar/snackbar.component';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare const DEFAULT_MSG_TIMEOUT = 3000;
|
|
8
9
|
export declare const DELAY_FOR_HIDE = 200;
|
|
9
10
|
export declare const PRY_CUSTOMEVENT_TYPE = "@pry.snack";
|
|
11
|
+
export interface notifSnack {
|
|
12
|
+
componentRef: ComponentRef<PrySnackbarComponent>;
|
|
13
|
+
overlayRef: OverlayRef;
|
|
14
|
+
}
|
|
10
15
|
export declare class PrySnackbarService {
|
|
11
16
|
private overlay;
|
|
12
17
|
private translate;
|
|
13
18
|
rootViewContainer?: ViewContainerRef;
|
|
14
19
|
static count: number;
|
|
15
|
-
private overlayRef?;
|
|
16
20
|
private messageEvents$;
|
|
21
|
+
private notifRef;
|
|
17
22
|
constructor(overlay: Overlay, translate: PryI18nService);
|
|
18
23
|
setRootViewContainerRef(viewContainerRef: ViewContainerRef): void;
|
|
19
24
|
dispatchOpenEvent(message: PrySnackMessage): void;
|
|
25
|
+
closeNotif(message: PrySnackMessage): void;
|
|
20
26
|
notMitigatedOpen(message: PrySnackMessage): Observable<void> | null;
|
|
21
27
|
open(message: PrySnackMessage): void;
|
|
22
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrySnackbarService, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.50",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"homepage": "https://documentation.provoly.com/provoly-dashboard/main/index.html",
|
|
6
6
|
"repository": {
|
|
@@ -145,36 +145,6 @@
|
|
|
145
145
|
"esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
|
|
146
146
|
"default": "./fesm2022/provoly-dashboard-toolbox.mjs"
|
|
147
147
|
},
|
|
148
|
-
"./filters/autocomplete": {
|
|
149
|
-
"types": "./filters/autocomplete/index.d.ts",
|
|
150
|
-
"esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
151
|
-
"esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
152
|
-
"default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
|
|
153
|
-
},
|
|
154
|
-
"./filters/date": {
|
|
155
|
-
"types": "./filters/date/index.d.ts",
|
|
156
|
-
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
157
|
-
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
158
|
-
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
159
|
-
},
|
|
160
|
-
"./filters/list": {
|
|
161
|
-
"types": "./filters/list/index.d.ts",
|
|
162
|
-
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
163
|
-
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
164
|
-
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
165
|
-
},
|
|
166
|
-
"./filters/number": {
|
|
167
|
-
"types": "./filters/number/index.d.ts",
|
|
168
|
-
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
169
|
-
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
170
|
-
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
171
|
-
},
|
|
172
|
-
"./filters/text": {
|
|
173
|
-
"types": "./filters/text/index.d.ts",
|
|
174
|
-
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
175
|
-
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
176
|
-
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
177
|
-
},
|
|
178
148
|
"./components/card": {
|
|
179
149
|
"types": "./components/card/index.d.ts",
|
|
180
150
|
"esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
@@ -247,24 +217,54 @@
|
|
|
247
217
|
"esm": "./esm2022/components/text-editor/provoly-dashboard-components-text-editor.mjs",
|
|
248
218
|
"default": "./fesm2022/provoly-dashboard-components-text-editor.mjs"
|
|
249
219
|
},
|
|
220
|
+
"./filters/autocomplete": {
|
|
221
|
+
"types": "./filters/autocomplete/index.d.ts",
|
|
222
|
+
"esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
223
|
+
"esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
|
|
224
|
+
"default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
|
|
225
|
+
},
|
|
226
|
+
"./filters/date": {
|
|
227
|
+
"types": "./filters/date/index.d.ts",
|
|
228
|
+
"esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
229
|
+
"esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
|
|
230
|
+
"default": "./fesm2022/provoly-dashboard-filters-date.mjs"
|
|
231
|
+
},
|
|
232
|
+
"./filters/list": {
|
|
233
|
+
"types": "./filters/list/index.d.ts",
|
|
234
|
+
"esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
235
|
+
"esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
|
|
236
|
+
"default": "./fesm2022/provoly-dashboard-filters-list.mjs"
|
|
237
|
+
},
|
|
238
|
+
"./filters/number": {
|
|
239
|
+
"types": "./filters/number/index.d.ts",
|
|
240
|
+
"esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
241
|
+
"esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
|
|
242
|
+
"default": "./fesm2022/provoly-dashboard-filters-number.mjs"
|
|
243
|
+
},
|
|
244
|
+
"./filters/text": {
|
|
245
|
+
"types": "./filters/text/index.d.ts",
|
|
246
|
+
"esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
247
|
+
"esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
|
|
248
|
+
"default": "./fesm2022/provoly-dashboard-filters-text.mjs"
|
|
249
|
+
},
|
|
250
250
|
"./pipeline-components/filter": {
|
|
251
251
|
"types": "./pipeline-components/filter/index.d.ts",
|
|
252
252
|
"esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
|
|
253
253
|
"esm": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
|
|
254
254
|
"default": "./fesm2022/provoly-dashboard-pipeline-components-filter.mjs"
|
|
255
255
|
},
|
|
256
|
-
"./pipeline-components/input-datasource": {
|
|
257
|
-
"types": "./pipeline-components/input-datasource/index.d.ts",
|
|
258
|
-
"esm2022": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
|
|
259
|
-
"esm": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
|
|
260
|
-
"default": "./fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs"
|
|
261
|
-
},
|
|
262
256
|
"./pipeline-components/noop": {
|
|
263
257
|
"types": "./pipeline-components/noop/index.d.ts",
|
|
264
258
|
"esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
|
|
265
259
|
"esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
|
|
266
260
|
"default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
|
|
267
261
|
},
|
|
262
|
+
"./pipeline-components/input-datasource": {
|
|
263
|
+
"types": "./pipeline-components/input-datasource/index.d.ts",
|
|
264
|
+
"esm2022": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
|
|
265
|
+
"esm": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
|
|
266
|
+
"default": "./fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs"
|
|
267
|
+
},
|
|
268
268
|
"./pipeline-components/output-dataset": {
|
|
269
269
|
"types": "./pipeline-components/output-dataset/index.d.ts",
|
|
270
270
|
"esm2022": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
background-color: white;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
&-notif {
|
|
17
|
+
color: themed($theme-map, 'color', 'grey', 1000);
|
|
18
|
+
background-color: themed($theme-map, 'color', 'graph', 06);
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
&.-success {
|
|
17
22
|
color: themed($theme-map, 'color', 'grey', 1000);
|
|
18
23
|
background-color: themed($theme-map, 'color', 'status', 'ok');
|