@uxland/primary-shell 3.5.0 → 3.5.1
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const initializeShell: (hostAppElement: HTMLElement) => void;
|
package/package.json
CHANGED
package/src/bootstrapper.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { bootstrapFeatures } from "./features/bootstrapper";
|
|
|
6
6
|
import { registerInternalViews } from "./handle-views";
|
|
7
7
|
import { initializeLocalization } from "./locales";
|
|
8
8
|
|
|
9
|
-
export const
|
|
9
|
+
export const initializeShell = (hostAppElement: HTMLElement) => {
|
|
10
10
|
initializeLocalization(shellApi);
|
|
11
11
|
regionAdapterRegistry.registerAdapterFactory("primaria-content-switcher", factory);
|
|
12
12
|
const shell = new PrimariaShell();
|
package/src/handle-views.ts
CHANGED
|
@@ -225,12 +225,7 @@ const registerUpperNavMenuViews = () => {
|
|
|
225
225
|
const menuItem = new PrimariaNavItem({
|
|
226
226
|
icon: "add_box",
|
|
227
227
|
label: "Pàgina inici",
|
|
228
|
-
callbackFn: () => {
|
|
229
|
-
shellApi.broker.publish("window_close");
|
|
230
|
-
shellApi.broker.publish(shellEvents.appCrashed, {
|
|
231
|
-
message: "S'ha tancat la finestra",
|
|
232
|
-
});
|
|
233
|
-
},
|
|
228
|
+
callbackFn: () => {},
|
|
234
229
|
});
|
|
235
230
|
return Promise.resolve(menuItem);
|
|
236
231
|
},
|