@luigi-project/container 1.6.0-dev.20250361236 → 1.6.0-dev.20250371109
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 +0 -13
- package/package.json +1 -1
- package/constants/events.js +0 -140
package/constants/events.d.ts
CHANGED
|
@@ -159,16 +159,3 @@ export namespace Events {
|
|
|
159
159
|
*/
|
|
160
160
|
export const REMOVE_BACKDROP_REQUEST = 'remove-backdrop-request';
|
|
161
161
|
}
|
|
162
|
-
|
|
163
|
-
export class LuigiEvent extends Event {
|
|
164
|
-
payload?: unknown;
|
|
165
|
-
detail: unknown;
|
|
166
|
-
|
|
167
|
-
constructor(type: string, data: unknown, payload?: unknown) {
|
|
168
|
-
super(type);
|
|
169
|
-
this.detail = data;
|
|
170
|
-
this.payload = payload || data;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export { Events as LuigiEvents };
|
package/package.json
CHANGED
package/constants/events.js
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
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 fired when the micro frontend requests to close an alert.
|
|
21
|
-
*/
|
|
22
|
-
Events.ALERT_CLOSED = 'close-alert-request';
|
|
23
|
-
/**
|
|
24
|
-
* Event fired when the micro frontend has been initialized.
|
|
25
|
-
*/
|
|
26
|
-
Events.INITIALIZED = 'initialized';
|
|
27
|
-
/**
|
|
28
|
-
* Event fired when the micro frontend requests the addition of search parameters to the URL.
|
|
29
|
-
*/
|
|
30
|
-
Events.ADD_SEARCH_PARAMS_REQUEST = 'add-search-params-request';
|
|
31
|
-
/**
|
|
32
|
-
* Event fired when the micro frontend requests the addition of node parameters to the URL.
|
|
33
|
-
*/
|
|
34
|
-
Events.ADD_NODE_PARAMS_REQUEST = 'add-node-params-request';
|
|
35
|
-
/**
|
|
36
|
-
* Event fired when the micro frontend requests to show a confirmation modal.
|
|
37
|
-
*/
|
|
38
|
-
Events.SHOW_CONFIRMATION_MODAL_REQUEST = 'show-confirmation-modal-request';
|
|
39
|
-
/**
|
|
40
|
-
* Event fired when the micro frontend requests to show a loading indicator.
|
|
41
|
-
*/
|
|
42
|
-
Events.SHOW_LOADING_INDICATOR_REQUEST = 'show-loading-indicator-request';
|
|
43
|
-
/**
|
|
44
|
-
* Event fired when the micro frontend requests to hide the loading indicator.
|
|
45
|
-
*/
|
|
46
|
-
Events.HIDE_LOADING_INDICATOR_REQUEST = 'hide-loading-indicator-request';
|
|
47
|
-
/**
|
|
48
|
-
* Event fired when the micro frontend requests to set the current locale.
|
|
49
|
-
*/
|
|
50
|
-
Events.SET_CURRENT_LOCALE_REQUEST = 'set-current-locale-request';
|
|
51
|
-
/**
|
|
52
|
-
* Event fired when the micro frontend requests to modify the local storage.
|
|
53
|
-
*/
|
|
54
|
-
Events.LOCAL_STORAGE_SET_REQUEST = 'set-storage-request';
|
|
55
|
-
/**
|
|
56
|
-
* Event fired when the micro frontend requests to handle errors that might happen during the runtime of the micro frontend.
|
|
57
|
-
*/
|
|
58
|
-
Events.RUNTIME_ERROR_HANDLING_REQUEST = 'runtime-error-handling-request';
|
|
59
|
-
/**
|
|
60
|
-
* Event fired when the micro frontend requests to set the anchor of the URL.
|
|
61
|
-
*/
|
|
62
|
-
Events.SET_ANCHOR_LINK_REQUEST = 'set-anchor-request';
|
|
63
|
-
/**
|
|
64
|
-
* Event fired when the micro frontend requests to set third-party cookies.
|
|
65
|
-
*/
|
|
66
|
-
Events.SET_THIRD_PARTY_COOKIES_REQUEST = 'set-third-party-cookies-request';
|
|
67
|
-
/**
|
|
68
|
-
* Event fired when the micro frontend requests to navigate back.
|
|
69
|
-
*/
|
|
70
|
-
Events.BACK_NAVIGATION_REQUEST = 'navigate-back-request';
|
|
71
|
-
/**
|
|
72
|
-
* Event fired when the micro frontend requests the current app route.
|
|
73
|
-
*/
|
|
74
|
-
Events.GET_CURRENT_ROUTE_REQUEST = 'get-current-route-request';
|
|
75
|
-
/**
|
|
76
|
-
* Event fired to report that the micro frontend's navigation has completed.
|
|
77
|
-
*/
|
|
78
|
-
Events.NAVIGATION_COMPLETED_REPORT = 'report-navigation-completed-request';
|
|
79
|
-
/**
|
|
80
|
-
* Event fired when the micro frontend requests to update the modal path parameters.
|
|
81
|
-
*/
|
|
82
|
-
Events.UPDATE_MODAL_PATH_DATA_REQUEST = 'update-modal-path-data-request';
|
|
83
|
-
/**
|
|
84
|
-
* Event fired when the micro frontend requests to check the validity of a path.
|
|
85
|
-
*/
|
|
86
|
-
Events.CHECK_PATH_EXISTS_REQUEST = 'check-path-exists-request';
|
|
87
|
-
/**
|
|
88
|
-
* Event fired when the micro frontend requests to set the 'dirty status' which, for example, avoids closing when there are any unsaved changes.
|
|
89
|
-
*/
|
|
90
|
-
Events.SET_DIRTY_STATUS_REQUEST = 'set-dirty-status-request';
|
|
91
|
-
/**
|
|
92
|
-
* Event fired when the micro frontend requests to set the view group data.
|
|
93
|
-
*/
|
|
94
|
-
Events.SET_VIEW_GROUP_DATA_REQUEST = 'set-viewgroup-data-request';
|
|
95
|
-
/**
|
|
96
|
-
* Event fired when the micro frontend requests to set the document title.
|
|
97
|
-
*/
|
|
98
|
-
Events.SET_DOCUMENT_TITLE_REQUEST = 'set-document-title-request';
|
|
99
|
-
/**
|
|
100
|
-
* Event fired when the micro frontend requests to open the user settings.
|
|
101
|
-
*/
|
|
102
|
-
Events.OPEN_USER_SETTINGS_REQUEST = 'open-user-settings-request';
|
|
103
|
-
/**
|
|
104
|
-
* Event fired when the micro frontend requests to close the user settings.
|
|
105
|
-
*/
|
|
106
|
-
Events.CLOSE_USER_SETTINGS_REQUEST = 'close-user-settings-request';
|
|
107
|
-
/**
|
|
108
|
-
* Event fired when the micro frontend requests to collapse left side navigation.
|
|
109
|
-
*/
|
|
110
|
-
Events.COLLAPSE_LEFT_NAV_REQUEST = 'collapse-leftnav-request';
|
|
111
|
-
/**
|
|
112
|
-
* Event fired when the micro frontend requests to update the top navigation.
|
|
113
|
-
*/
|
|
114
|
-
Events.UPDATE_TOP_NAVIGATION_REQUEST = 'update-top-navigation-request';
|
|
115
|
-
/**
|
|
116
|
-
* Event fired when the micro frontend requests to check if the path exists.
|
|
117
|
-
*/
|
|
118
|
-
Events.PATH_EXISTS_REQUEST = 'path-exists-request';
|
|
119
|
-
/**
|
|
120
|
-
* Event fired when the micro frontend requests to navigate back.
|
|
121
|
-
*/
|
|
122
|
-
Events.GO_BACK_REQUEST = 'go-back-request';
|
|
123
|
-
/**
|
|
124
|
-
* Event fired when the micro frontend requests to check if there are any preserved views.
|
|
125
|
-
*/
|
|
126
|
-
Events.HAS_BACK_REQUEST = 'has-back-request';
|
|
127
|
-
/**
|
|
128
|
-
* Event fired when the micro frontend requests to remove the backdrop.
|
|
129
|
-
*/
|
|
130
|
-
Events.REMOVE_BACKDROP_REQUEST = 'remove-backdrop-request';
|
|
131
|
-
})(Events || (Events = {}));
|
|
132
|
-
class LuigiEvent extends Event {
|
|
133
|
-
constructor(type, data, payload) {
|
|
134
|
-
super(type);
|
|
135
|
-
this.detail = data;
|
|
136
|
-
this.payload = payload || data;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export { LuigiEvent, Events as LuigiEvents };
|