@uxland/primary-shell 7.15.0 → 7.15.2

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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Diccionari centralitzat d'events del broker.
3
+ */
4
+ export declare const BROKER_EVENTS: {
5
+ readonly refreshHistoryDataRequested: "refresh_history_data_requested";
6
+ readonly errorLoadingActivityHistoryData: "error_loading_activity_history_data";
7
+ };
8
+ export type BrokerEvents = typeof BROKER_EVENTS;
@@ -1,5 +1,7 @@
1
1
  import { HarmonixBroker } from '@uxland/harmonix';
2
+ import { BrokerEvents } from './broker-events';
2
3
  export interface PrimariaBroker extends HarmonixBroker {
4
+ events: BrokerEvents;
3
5
  }
4
6
  export type { HarmonixBroker, IEvent, IEventClass, IRequest, IRequestClass, } from '@uxland/harmonix';
5
7
  export type { BrokerDisposableHandler } from '@uxland/harmonix';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "7.15.0",
3
+ "version": "7.15.2",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -1,6 +1,3 @@
1
- :host {
2
- z-index: 301;
3
- }
4
1
  .header {
5
2
  display: flex;
6
3
  flex-direction: row;
@@ -141,10 +141,6 @@
141
141
  flex-direction: column;
142
142
  gap: 4px;
143
143
  }
144
- #floating-region-container {
145
- position: fixed;
146
- z-index: 300;
147
- }
148
144
  }
149
145
  .footer {
150
146
  display: flex;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Diccionari centralitzat d'events del broker.
3
+ */
4
+ export const BROKER_EVENTS = {
5
+ refreshHistoryDataRequested: "refresh_history_data_requested",
6
+ errorLoadingActivityHistoryData: "error_loading_activity_history_data",
7
+ } as const;
8
+
9
+ export type BrokerEvents = typeof BROKER_EVENTS;
@@ -1,5 +1,6 @@
1
1
  import { IEvent, IEventClass, IRequest, IRequestClass } from "@uxland/harmonix";
2
2
  import { Mediator, mediatorSettings, notificationHandler, requestHandler } from "mediatr-ts";
3
+ import { BROKER_EVENTS } from "./broker-events";
3
4
  import { type PrimariaBroker, type BrokerDisposableHandler } from "./primaria-broker";
4
5
 
5
6
  type messageHandler = (payload: unknown) => unknown | Promise<unknown>;
@@ -17,6 +18,7 @@ const disposableFactory = (handler: any) => {
17
18
  };
18
19
  };
19
20
  class Broker implements PrimariaBroker {
21
+ public readonly events = BROKER_EVENTS;
20
22
  private mediator: Mediator;
21
23
  constructor() {
22
24
  this.mediator = new Mediator();
@@ -1,6 +1,9 @@
1
1
  import { HarmonixBroker } from "@uxland/harmonix";
2
+ import { type BrokerEvents } from "./broker-events";
2
3
 
3
- export interface PrimariaBroker extends HarmonixBroker {}
4
+ export interface PrimariaBroker extends HarmonixBroker {
5
+ events: BrokerEvents;
6
+ }
4
7
 
5
8
  export type {
6
9
  HarmonixBroker,