@luigi-project/container 1.6.0-dev.20250410038 → 1.6.0-dev.202504120033
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 +30 -78
- 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 };
|
|
@@ -17,12 +17,7 @@
|
|
|
17
17
|
"kind": "field",
|
|
18
18
|
"name": "activeFeatureToggleList",
|
|
19
19
|
"type": {
|
|
20
|
-
"text": "Array<string>"
|
|
21
|
-
"references": [
|
|
22
|
-
{
|
|
23
|
-
"name": "string"
|
|
24
|
-
}
|
|
25
|
-
]
|
|
20
|
+
"text": "Array<string>"
|
|
26
21
|
},
|
|
27
22
|
"default": "undefined"
|
|
28
23
|
},
|
|
@@ -30,12 +25,7 @@
|
|
|
30
25
|
"kind": "field",
|
|
31
26
|
"name": "allowRules",
|
|
32
27
|
"type": {
|
|
33
|
-
"text": "Array<string>"
|
|
34
|
-
"references": [
|
|
35
|
-
{
|
|
36
|
-
"name": "string"
|
|
37
|
-
}
|
|
38
|
-
]
|
|
28
|
+
"text": "Array<string>"
|
|
39
29
|
},
|
|
40
30
|
"default": "undefined"
|
|
41
31
|
},
|
|
@@ -147,12 +137,7 @@
|
|
|
147
137
|
"kind": "field",
|
|
148
138
|
"name": "sandboxRules",
|
|
149
139
|
"type": {
|
|
150
|
-
"text": "Array<string>"
|
|
151
|
-
"references": [
|
|
152
|
-
{
|
|
153
|
-
"name": "string"
|
|
154
|
-
}
|
|
155
|
-
]
|
|
140
|
+
"text": "Array<string>"
|
|
156
141
|
},
|
|
157
142
|
"default": "undefined"
|
|
158
143
|
},
|
|
@@ -270,13 +255,6 @@
|
|
|
270
255
|
"text": "Event"
|
|
271
256
|
}
|
|
272
257
|
},
|
|
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
258
|
{
|
|
281
259
|
"name": "initialized",
|
|
282
260
|
"description": "Event fired when the micro frontend has been initialized.",
|
|
@@ -354,13 +332,6 @@
|
|
|
354
332
|
"text": "Event"
|
|
355
333
|
}
|
|
356
334
|
},
|
|
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
335
|
{
|
|
365
336
|
"name": "get-current-route-request",
|
|
366
337
|
"description": "Event fired when the micro frontend requests the current app route.",
|
|
@@ -382,6 +353,13 @@
|
|
|
382
353
|
"text": "Event"
|
|
383
354
|
}
|
|
384
355
|
},
|
|
356
|
+
{
|
|
357
|
+
"name": "update-modal-settings-request",
|
|
358
|
+
"description": "Event fired when the micro frontend requests to update the modal settings.",
|
|
359
|
+
"type": {
|
|
360
|
+
"text": "Event"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
385
363
|
{
|
|
386
364
|
"name": "check-path-exists-request",
|
|
387
365
|
"description": "Event fired when the micro frontend requests to check the validity of a path.",
|
|
@@ -403,13 +381,6 @@
|
|
|
403
381
|
"text": "Event"
|
|
404
382
|
}
|
|
405
383
|
},
|
|
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
384
|
{
|
|
414
385
|
"name": "open-user-settings-request",
|
|
415
386
|
"description": "Event fired when the micro frontend requests to open the user settings.",
|
|
@@ -439,22 +410,22 @@
|
|
|
439
410
|
}
|
|
440
411
|
},
|
|
441
412
|
{
|
|
442
|
-
"name": "
|
|
443
|
-
"description": "Event fired when the micro frontend requests to
|
|
413
|
+
"name": "go-back-request",
|
|
414
|
+
"description": "Event fired when the micro frontend requests to navigate back.",
|
|
444
415
|
"type": {
|
|
445
416
|
"text": "Event"
|
|
446
417
|
}
|
|
447
418
|
},
|
|
448
419
|
{
|
|
449
|
-
"name": "
|
|
450
|
-
"description": "Event fired when the micro frontend requests to
|
|
420
|
+
"name": "has-back-request",
|
|
421
|
+
"description": "Event fired when the micro frontend requests to check if there are any preserved views.",
|
|
451
422
|
"type": {
|
|
452
423
|
"text": "Event"
|
|
453
424
|
}
|
|
454
425
|
},
|
|
455
426
|
{
|
|
456
|
-
"name": "
|
|
457
|
-
"description": "Event fired when the micro frontend requests to
|
|
427
|
+
"name": "add-backdrop-request",
|
|
428
|
+
"description": "Event fired when the micro frontend requests to display the backdrop.",
|
|
458
429
|
"type": {
|
|
459
430
|
"text": "Event"
|
|
460
431
|
}
|
|
@@ -503,12 +474,7 @@
|
|
|
503
474
|
"kind": "field",
|
|
504
475
|
"name": "activeFeatureToggleList",
|
|
505
476
|
"type": {
|
|
506
|
-
"text": "Array<string>"
|
|
507
|
-
"references": [
|
|
508
|
-
{
|
|
509
|
-
"name": "string"
|
|
510
|
-
}
|
|
511
|
-
]
|
|
477
|
+
"text": "Array<string>"
|
|
512
478
|
},
|
|
513
479
|
"default": "undefined"
|
|
514
480
|
},
|
|
@@ -702,13 +668,6 @@
|
|
|
702
668
|
"text": "Event"
|
|
703
669
|
}
|
|
704
670
|
},
|
|
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
671
|
{
|
|
713
672
|
"name": "initialized",
|
|
714
673
|
"description": "Event fired when the micro frontend has been initialized.",
|
|
@@ -786,13 +745,6 @@
|
|
|
786
745
|
"text": "Event"
|
|
787
746
|
}
|
|
788
747
|
},
|
|
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
748
|
{
|
|
797
749
|
"name": "get-current-route-request",
|
|
798
750
|
"description": "Event fired when the micro frontend requests the current app route.",
|
|
@@ -814,6 +766,13 @@
|
|
|
814
766
|
"text": "Event"
|
|
815
767
|
}
|
|
816
768
|
},
|
|
769
|
+
{
|
|
770
|
+
"name": "update-modal-settings-request",
|
|
771
|
+
"description": "Event fired when the micro frontend requests to update the modal settings.",
|
|
772
|
+
"type": {
|
|
773
|
+
"text": "Event"
|
|
774
|
+
}
|
|
775
|
+
},
|
|
817
776
|
{
|
|
818
777
|
"name": "check-path-exists-request",
|
|
819
778
|
"description": "Event fired when the micro frontend requests to check the validity of a path.",
|
|
@@ -835,13 +794,6 @@
|
|
|
835
794
|
"text": "Event"
|
|
836
795
|
}
|
|
837
796
|
},
|
|
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
797
|
{
|
|
846
798
|
"name": "open-user-settings-request",
|
|
847
799
|
"description": "Event fired when the micro frontend requests to open the user settings.",
|
|
@@ -871,22 +823,22 @@
|
|
|
871
823
|
}
|
|
872
824
|
},
|
|
873
825
|
{
|
|
874
|
-
"name": "
|
|
875
|
-
"description": "Event fired when the micro frontend requests to
|
|
826
|
+
"name": "go-back-request",
|
|
827
|
+
"description": "Event fired when the micro frontend requests to navigate back.",
|
|
876
828
|
"type": {
|
|
877
829
|
"text": "Event"
|
|
878
830
|
}
|
|
879
831
|
},
|
|
880
832
|
{
|
|
881
|
-
"name": "
|
|
882
|
-
"description": "Event fired when the micro frontend requests to
|
|
833
|
+
"name": "has-back-request",
|
|
834
|
+
"description": "Event fired when the micro frontend requests to check if there are any preserved views.",
|
|
883
835
|
"type": {
|
|
884
836
|
"text": "Event"
|
|
885
837
|
}
|
|
886
838
|
},
|
|
887
839
|
{
|
|
888
|
-
"name": "
|
|
889
|
-
"description": "Event fired when the micro frontend requests to
|
|
840
|
+
"name": "add-backdrop-request",
|
|
841
|
+
"description": "Event fired when the micro frontend requests to display the backdrop.",
|
|
890
842
|
"type": {
|
|
891
843
|
"text": "Event"
|
|
892
844
|
}
|
package/package.json
CHANGED