@luigi-project/container 1.6.0-dev.20250410038 → 1.6.0-dev.20250420034
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/bundle.js +1 -1
- package/bundle.js.map +1 -1
- package/constants/events.d.ts +26 -0
- package/constants/events.js +152 -0
- package/dist/custom-elements.json +26 -54
- package/package.json +1 -1
package/constants/events.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export namespace Events {
|
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* Event fired when the micro frontend requests to navigate back.
|
|
85
|
+
* @deprecated use GO_BACK_REQUEST
|
|
85
86
|
*/
|
|
86
87
|
export const BACK_NAVIGATION_REQUEST = 'navigate-back-request';
|
|
87
88
|
|
|
@@ -100,6 +101,11 @@ export namespace Events {
|
|
|
100
101
|
*/
|
|
101
102
|
export const UPDATE_MODAL_PATH_DATA_REQUEST = 'update-modal-path-data-request';
|
|
102
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Event fired when the micro frontend requests to update the modal settings.
|
|
106
|
+
*/
|
|
107
|
+
export const UPDATE_MODAL_SETTINGS_REQUEST = 'update-modal-settings-request';
|
|
108
|
+
|
|
103
109
|
/**
|
|
104
110
|
* Event fired when the micro frontend requests to check the validity of a path.
|
|
105
111
|
*/
|
|
@@ -117,6 +123,7 @@ export namespace Events {
|
|
|
117
123
|
|
|
118
124
|
/**
|
|
119
125
|
* Event fired when the micro frontend requests to set the document title.
|
|
126
|
+
* @deprecated
|
|
120
127
|
*/
|
|
121
128
|
export const SET_DOCUMENT_TITLE_REQUEST = 'set-document-title-request';
|
|
122
129
|
|
|
@@ -142,6 +149,7 @@ export namespace Events {
|
|
|
142
149
|
|
|
143
150
|
/**
|
|
144
151
|
* Event fired when the micro frontend requests to check if the path exists.
|
|
152
|
+
* @deprecated use CHECK_PATH_EXISTS_REQUEST
|
|
145
153
|
*/
|
|
146
154
|
export const PATH_EXISTS_REQUEST = 'path-exists-request';
|
|
147
155
|
|
|
@@ -155,8 +163,26 @@ export namespace Events {
|
|
|
155
163
|
*/
|
|
156
164
|
export const HAS_BACK_REQUEST = 'has-back-request';
|
|
157
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Event fired when the micro frontend requests to display the backdrop.
|
|
168
|
+
*/
|
|
169
|
+
export const ADD_BACKDROP_REQUEST = 'add-backdrop-request';
|
|
170
|
+
|
|
158
171
|
/**
|
|
159
172
|
* Event fired when the micro frontend requests to remove the backdrop.
|
|
160
173
|
*/
|
|
161
174
|
export const REMOVE_BACKDROP_REQUEST = 'remove-backdrop-request';
|
|
162
175
|
}
|
|
176
|
+
|
|
177
|
+
export class LuigiEvent extends Event {
|
|
178
|
+
payload?: unknown;
|
|
179
|
+
detail: unknown;
|
|
180
|
+
|
|
181
|
+
constructor(type: string, data: unknown, payload?: unknown) {
|
|
182
|
+
super(type);
|
|
183
|
+
this.detail = data;
|
|
184
|
+
this.payload = payload || data || {};
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export { Events as LuigiEvents };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
var Events;
|
|
2
|
+
(function (Events) {
|
|
3
|
+
/**
|
|
4
|
+
* Event fired when the micro frontend sends a custom message.
|
|
5
|
+
*/
|
|
6
|
+
Events.CUSTOM_MESSAGE = 'custom-message';
|
|
7
|
+
/**
|
|
8
|
+
* Event fired when the micro frontend requests the context data.
|
|
9
|
+
*/
|
|
10
|
+
Events.GET_CONTEXT_REQUEST = 'get-context-request';
|
|
11
|
+
/**
|
|
12
|
+
* Event fired when a navigation has been requested by the micro frontend.
|
|
13
|
+
*/
|
|
14
|
+
Events.NAVIGATION_REQUEST = 'navigation-request';
|
|
15
|
+
/**
|
|
16
|
+
* Event fired when the micro frontend requests to show an alert.
|
|
17
|
+
*/
|
|
18
|
+
Events.ALERT_REQUEST = 'show-alert-request';
|
|
19
|
+
/**
|
|
20
|
+
* Event left due to historical reasons - do not use.
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
23
|
+
Events.ALERT_CLOSED = 'close-alert-request';
|
|
24
|
+
/**
|
|
25
|
+
* Event fired when the micro frontend has been initialized.
|
|
26
|
+
*/
|
|
27
|
+
Events.INITIALIZED = 'initialized';
|
|
28
|
+
/**
|
|
29
|
+
* Event fired when the micro frontend requests the addition of search parameters to the URL.
|
|
30
|
+
*/
|
|
31
|
+
Events.ADD_SEARCH_PARAMS_REQUEST = 'add-search-params-request';
|
|
32
|
+
/**
|
|
33
|
+
* Event fired when the micro frontend requests the addition of node parameters to the URL.
|
|
34
|
+
*/
|
|
35
|
+
Events.ADD_NODE_PARAMS_REQUEST = 'add-node-params-request';
|
|
36
|
+
/**
|
|
37
|
+
* Event fired when the micro frontend requests to show a confirmation modal.
|
|
38
|
+
*/
|
|
39
|
+
Events.SHOW_CONFIRMATION_MODAL_REQUEST = 'show-confirmation-modal-request';
|
|
40
|
+
/**
|
|
41
|
+
* Event fired when the micro frontend requests to show a loading indicator.
|
|
42
|
+
*/
|
|
43
|
+
Events.SHOW_LOADING_INDICATOR_REQUEST = 'show-loading-indicator-request';
|
|
44
|
+
/**
|
|
45
|
+
* Event fired when the micro frontend requests to hide the loading indicator.
|
|
46
|
+
*/
|
|
47
|
+
Events.HIDE_LOADING_INDICATOR_REQUEST = 'hide-loading-indicator-request';
|
|
48
|
+
/**
|
|
49
|
+
* Event fired when the micro frontend requests to set the current locale.
|
|
50
|
+
*/
|
|
51
|
+
Events.SET_CURRENT_LOCALE_REQUEST = 'set-current-locale-request';
|
|
52
|
+
/**
|
|
53
|
+
* Event fired when the micro frontend requests to modify the local storage.
|
|
54
|
+
*/
|
|
55
|
+
Events.LOCAL_STORAGE_SET_REQUEST = 'set-storage-request';
|
|
56
|
+
/**
|
|
57
|
+
* Event fired when the micro frontend requests to handle errors that might happen during the runtime of the micro frontend.
|
|
58
|
+
*/
|
|
59
|
+
Events.RUNTIME_ERROR_HANDLING_REQUEST = 'runtime-error-handling-request';
|
|
60
|
+
/**
|
|
61
|
+
* Event fired when the micro frontend requests to set the anchor of the URL.
|
|
62
|
+
*/
|
|
63
|
+
Events.SET_ANCHOR_LINK_REQUEST = 'set-anchor-request';
|
|
64
|
+
/**
|
|
65
|
+
* Event fired when the micro frontend requests to set third-party cookies.
|
|
66
|
+
*/
|
|
67
|
+
Events.SET_THIRD_PARTY_COOKIES_REQUEST = 'set-third-party-cookies-request';
|
|
68
|
+
/**
|
|
69
|
+
* Event fired when the micro frontend requests to navigate back.
|
|
70
|
+
* @deprecated use GO_BACK_REQUEST
|
|
71
|
+
*/
|
|
72
|
+
Events.BACK_NAVIGATION_REQUEST = 'navigate-back-request';
|
|
73
|
+
/**
|
|
74
|
+
* Event fired when the micro frontend requests the current app route.
|
|
75
|
+
*/
|
|
76
|
+
Events.GET_CURRENT_ROUTE_REQUEST = 'get-current-route-request';
|
|
77
|
+
/**
|
|
78
|
+
* Event fired to report that the micro frontend's navigation has completed.
|
|
79
|
+
*/
|
|
80
|
+
Events.NAVIGATION_COMPLETED_REPORT = 'report-navigation-completed-request';
|
|
81
|
+
/**
|
|
82
|
+
* Event fired when the micro frontend requests to update the modal path parameters.
|
|
83
|
+
*/
|
|
84
|
+
Events.UPDATE_MODAL_PATH_DATA_REQUEST = 'update-modal-path-data-request';
|
|
85
|
+
/**
|
|
86
|
+
* Event fired when the micro frontend requests to update the modal settings.
|
|
87
|
+
*/
|
|
88
|
+
Events.UPDATE_MODAL_SETTINGS_REQUEST = 'update-modal-settings-request';
|
|
89
|
+
/**
|
|
90
|
+
* Event fired when the micro frontend requests to check the validity of a path.
|
|
91
|
+
*/
|
|
92
|
+
Events.CHECK_PATH_EXISTS_REQUEST = 'check-path-exists-request';
|
|
93
|
+
/**
|
|
94
|
+
* Event fired when the micro frontend requests to set the 'dirty status' which, for example, avoids closing when there are any unsaved changes.
|
|
95
|
+
*/
|
|
96
|
+
Events.SET_DIRTY_STATUS_REQUEST = 'set-dirty-status-request';
|
|
97
|
+
/**
|
|
98
|
+
* Event fired when the micro frontend requests to set the view group data.
|
|
99
|
+
*/
|
|
100
|
+
Events.SET_VIEW_GROUP_DATA_REQUEST = 'set-viewgroup-data-request';
|
|
101
|
+
/**
|
|
102
|
+
* Event fired when the micro frontend requests to set the document title.
|
|
103
|
+
* @deprecated
|
|
104
|
+
*/
|
|
105
|
+
Events.SET_DOCUMENT_TITLE_REQUEST = 'set-document-title-request';
|
|
106
|
+
/**
|
|
107
|
+
* Event fired when the micro frontend requests to open the user settings.
|
|
108
|
+
*/
|
|
109
|
+
Events.OPEN_USER_SETTINGS_REQUEST = 'open-user-settings-request';
|
|
110
|
+
/**
|
|
111
|
+
* Event fired when the micro frontend requests to close the user settings.
|
|
112
|
+
*/
|
|
113
|
+
Events.CLOSE_USER_SETTINGS_REQUEST = 'close-user-settings-request';
|
|
114
|
+
/**
|
|
115
|
+
* Event fired when the micro frontend requests to collapse left side navigation.
|
|
116
|
+
*/
|
|
117
|
+
Events.COLLAPSE_LEFT_NAV_REQUEST = 'collapse-leftnav-request';
|
|
118
|
+
/**
|
|
119
|
+
* Event fired when the micro frontend requests to update the top navigation.
|
|
120
|
+
*/
|
|
121
|
+
Events.UPDATE_TOP_NAVIGATION_REQUEST = 'update-top-navigation-request';
|
|
122
|
+
/**
|
|
123
|
+
* Event fired when the micro frontend requests to check if the path exists.
|
|
124
|
+
* @deprecated use CHECK_PATH_EXISTS_REQUEST
|
|
125
|
+
*/
|
|
126
|
+
Events.PATH_EXISTS_REQUEST = 'path-exists-request';
|
|
127
|
+
/**
|
|
128
|
+
* Event fired when the micro frontend requests to navigate back.
|
|
129
|
+
*/
|
|
130
|
+
Events.GO_BACK_REQUEST = 'go-back-request';
|
|
131
|
+
/**
|
|
132
|
+
* Event fired when the micro frontend requests to check if there are any preserved views.
|
|
133
|
+
*/
|
|
134
|
+
Events.HAS_BACK_REQUEST = 'has-back-request';
|
|
135
|
+
/**
|
|
136
|
+
* Event fired when the micro frontend requests to display the backdrop.
|
|
137
|
+
*/
|
|
138
|
+
Events.ADD_BACKDROP_REQUEST = 'add-backdrop-request';
|
|
139
|
+
/**
|
|
140
|
+
* Event fired when the micro frontend requests to remove the backdrop.
|
|
141
|
+
*/
|
|
142
|
+
Events.REMOVE_BACKDROP_REQUEST = 'remove-backdrop-request';
|
|
143
|
+
})(Events || (Events = {}));
|
|
144
|
+
class LuigiEvent extends Event {
|
|
145
|
+
constructor(type, data, payload) {
|
|
146
|
+
super(type);
|
|
147
|
+
this.detail = data;
|
|
148
|
+
this.payload = payload || data || {};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export { LuigiEvent, Events as LuigiEvents };
|
|
@@ -270,13 +270,6 @@
|
|
|
270
270
|
"text": "Event"
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
|
-
{
|
|
274
|
-
"name": "close-alert-request",
|
|
275
|
-
"description": "Event left due to historical reasons - do not use. @deprecated",
|
|
276
|
-
"type": {
|
|
277
|
-
"text": "Event"
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
273
|
{
|
|
281
274
|
"name": "initialized",
|
|
282
275
|
"description": "Event fired when the micro frontend has been initialized.",
|
|
@@ -354,13 +347,6 @@
|
|
|
354
347
|
"text": "Event"
|
|
355
348
|
}
|
|
356
349
|
},
|
|
357
|
-
{
|
|
358
|
-
"name": "navigate-back-request",
|
|
359
|
-
"description": "Event fired when the micro frontend requests to navigate back.",
|
|
360
|
-
"type": {
|
|
361
|
-
"text": "Event"
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
350
|
{
|
|
365
351
|
"name": "get-current-route-request",
|
|
366
352
|
"description": "Event fired when the micro frontend requests the current app route.",
|
|
@@ -382,6 +368,13 @@
|
|
|
382
368
|
"text": "Event"
|
|
383
369
|
}
|
|
384
370
|
},
|
|
371
|
+
{
|
|
372
|
+
"name": "update-modal-settings-request",
|
|
373
|
+
"description": "Event fired when the micro frontend requests to update the modal settings.",
|
|
374
|
+
"type": {
|
|
375
|
+
"text": "Event"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
385
378
|
{
|
|
386
379
|
"name": "check-path-exists-request",
|
|
387
380
|
"description": "Event fired when the micro frontend requests to check the validity of a path.",
|
|
@@ -403,13 +396,6 @@
|
|
|
403
396
|
"text": "Event"
|
|
404
397
|
}
|
|
405
398
|
},
|
|
406
|
-
{
|
|
407
|
-
"name": "set-document-title-request",
|
|
408
|
-
"description": "Event fired when the micro frontend requests to set the document title.",
|
|
409
|
-
"type": {
|
|
410
|
-
"text": "Event"
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
399
|
{
|
|
414
400
|
"name": "open-user-settings-request",
|
|
415
401
|
"description": "Event fired when the micro frontend requests to open the user settings.",
|
|
@@ -439,22 +425,22 @@
|
|
|
439
425
|
}
|
|
440
426
|
},
|
|
441
427
|
{
|
|
442
|
-
"name": "
|
|
443
|
-
"description": "Event fired when the micro frontend requests to
|
|
428
|
+
"name": "go-back-request",
|
|
429
|
+
"description": "Event fired when the micro frontend requests to navigate back.",
|
|
444
430
|
"type": {
|
|
445
431
|
"text": "Event"
|
|
446
432
|
}
|
|
447
433
|
},
|
|
448
434
|
{
|
|
449
|
-
"name": "
|
|
450
|
-
"description": "Event fired when the micro frontend requests to
|
|
435
|
+
"name": "has-back-request",
|
|
436
|
+
"description": "Event fired when the micro frontend requests to check if there are any preserved views.",
|
|
451
437
|
"type": {
|
|
452
438
|
"text": "Event"
|
|
453
439
|
}
|
|
454
440
|
},
|
|
455
441
|
{
|
|
456
|
-
"name": "
|
|
457
|
-
"description": "Event fired when the micro frontend requests to
|
|
442
|
+
"name": "add-backdrop-request",
|
|
443
|
+
"description": "Event fired when the micro frontend requests to display the backdrop.",
|
|
458
444
|
"type": {
|
|
459
445
|
"text": "Event"
|
|
460
446
|
}
|
|
@@ -702,13 +688,6 @@
|
|
|
702
688
|
"text": "Event"
|
|
703
689
|
}
|
|
704
690
|
},
|
|
705
|
-
{
|
|
706
|
-
"name": "close-alert-request",
|
|
707
|
-
"description": "Event left due to historical reasons - do not use. @deprecated",
|
|
708
|
-
"type": {
|
|
709
|
-
"text": "Event"
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
691
|
{
|
|
713
692
|
"name": "initialized",
|
|
714
693
|
"description": "Event fired when the micro frontend has been initialized.",
|
|
@@ -786,13 +765,6 @@
|
|
|
786
765
|
"text": "Event"
|
|
787
766
|
}
|
|
788
767
|
},
|
|
789
|
-
{
|
|
790
|
-
"name": "navigate-back-request",
|
|
791
|
-
"description": "Event fired when the micro frontend requests to navigate back.",
|
|
792
|
-
"type": {
|
|
793
|
-
"text": "Event"
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
768
|
{
|
|
797
769
|
"name": "get-current-route-request",
|
|
798
770
|
"description": "Event fired when the micro frontend requests the current app route.",
|
|
@@ -814,6 +786,13 @@
|
|
|
814
786
|
"text": "Event"
|
|
815
787
|
}
|
|
816
788
|
},
|
|
789
|
+
{
|
|
790
|
+
"name": "update-modal-settings-request",
|
|
791
|
+
"description": "Event fired when the micro frontend requests to update the modal settings.",
|
|
792
|
+
"type": {
|
|
793
|
+
"text": "Event"
|
|
794
|
+
}
|
|
795
|
+
},
|
|
817
796
|
{
|
|
818
797
|
"name": "check-path-exists-request",
|
|
819
798
|
"description": "Event fired when the micro frontend requests to check the validity of a path.",
|
|
@@ -835,13 +814,6 @@
|
|
|
835
814
|
"text": "Event"
|
|
836
815
|
}
|
|
837
816
|
},
|
|
838
|
-
{
|
|
839
|
-
"name": "set-document-title-request",
|
|
840
|
-
"description": "Event fired when the micro frontend requests to set the document title.",
|
|
841
|
-
"type": {
|
|
842
|
-
"text": "Event"
|
|
843
|
-
}
|
|
844
|
-
},
|
|
845
817
|
{
|
|
846
818
|
"name": "open-user-settings-request",
|
|
847
819
|
"description": "Event fired when the micro frontend requests to open the user settings.",
|
|
@@ -871,22 +843,22 @@
|
|
|
871
843
|
}
|
|
872
844
|
},
|
|
873
845
|
{
|
|
874
|
-
"name": "
|
|
875
|
-
"description": "Event fired when the micro frontend requests to
|
|
846
|
+
"name": "go-back-request",
|
|
847
|
+
"description": "Event fired when the micro frontend requests to navigate back.",
|
|
876
848
|
"type": {
|
|
877
849
|
"text": "Event"
|
|
878
850
|
}
|
|
879
851
|
},
|
|
880
852
|
{
|
|
881
|
-
"name": "
|
|
882
|
-
"description": "Event fired when the micro frontend requests to
|
|
853
|
+
"name": "has-back-request",
|
|
854
|
+
"description": "Event fired when the micro frontend requests to check if there are any preserved views.",
|
|
883
855
|
"type": {
|
|
884
856
|
"text": "Event"
|
|
885
857
|
}
|
|
886
858
|
},
|
|
887
859
|
{
|
|
888
|
-
"name": "
|
|
889
|
-
"description": "Event fired when the micro frontend requests to
|
|
860
|
+
"name": "add-backdrop-request",
|
|
861
|
+
"description": "Event fired when the micro frontend requests to display the backdrop.",
|
|
890
862
|
"type": {
|
|
891
863
|
"text": "Event"
|
|
892
864
|
}
|
package/package.json
CHANGED