@uxland/primary-shell 8.3.7 → 8.3.9

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.
Files changed (128) hide show
  1. package/dist/{component-Wt_4mM7R.js → component-CmFV8M1Q.js} +2 -2
  2. package/dist/{component-Wt_4mM7R.js.map → component-CmFV8M1Q.js.map} +1 -1
  3. package/dist/{index-DaNMWg0x.js → index-H08WCISI.js} +6 -6
  4. package/dist/index-H08WCISI.js.map +1 -0
  5. package/dist/index.d.ts +926 -2
  6. package/dist/index.js +1 -1
  7. package/dist/{plugin-Brk1Td1H.js → plugin-DfBRRJ_H.js} +4 -3
  8. package/dist/plugin-DfBRRJ_H.js.map +1 -0
  9. package/package.json +1 -1
  10. package/dist/index-DaNMWg0x.js.map +0 -1
  11. package/dist/plugin-Brk1Td1H.js.map +0 -1
  12. package/dist/primary/shell/src/UI/bootstrapper.d.ts +0 -1
  13. package/dist/primary/shell/src/UI/components/bootstrapper.d.ts +0 -1
  14. package/dist/primary/shell/src/UI/components/clinical-pathways-action-menu/clinical-pathways-action-menu.d.ts +0 -7
  15. package/dist/primary/shell/src/UI/components/communication-action-menu/communication-action-menu.d.ts +0 -7
  16. package/dist/primary/shell/src/UI/components/error-view/component.d.ts +0 -8
  17. package/dist/primary/shell/src/UI/components/error-view/template.d.ts +0 -2
  18. package/dist/primary/shell/src/UI/components/nav-divider/template.d.ts +0 -2
  19. package/dist/primary/shell/src/UI/components/petitioner-action-menu/petitioner-action-menu.d.ts +0 -7
  20. package/dist/primary/shell/src/UI/components/primaria-accordion/primaria-accordion.d.ts +0 -7
  21. package/dist/primary/shell/src/UI/components/primaria-shell/constants.d.ts +0 -4
  22. package/dist/primary/shell/src/UI/components/primaria-shell/primaria-shell.d.ts +0 -28
  23. package/dist/primary/shell/src/UI/components/primaria-shell/shell-header/header-divider/header-divider.d.ts +0 -5
  24. package/dist/primary/shell/src/UI/components/primaria-shell/shell-header/header-divider/template.d.ts +0 -2
  25. package/dist/primary/shell/src/UI/components/primaria-shell/shell-header/shell-header.d.ts +0 -16
  26. package/dist/primary/shell/src/UI/components/primaria-shell/shell-header/template.d.ts +0 -2
  27. package/dist/primary/shell/src/UI/components/primaria-shell/template.d.ts +0 -2
  28. package/dist/primary/shell/src/UI/components/sidenav-action-menu/sidenav-action-menu.d.ts +0 -27
  29. package/dist/primary/shell/src/UI/components/sidenav-action-menu/template.d.ts +0 -2
  30. package/dist/primary/shell/src/UI/index.d.ts +0 -1
  31. package/dist/primary/shell/src/UI/internal-views/administrative-nav-menu.d.ts +0 -2
  32. package/dist/primary/shell/src/UI/internal-views/common-nav-menu.d.ts +0 -36
  33. package/dist/primary/shell/src/UI/internal-views/doctor-nav-menu.d.ts +0 -6
  34. package/dist/primary/shell/src/UI/internal-views/doctor-quick-action-menu.d.ts +0 -1
  35. package/dist/primary/shell/src/UI/internal-views/handle-views.d.ts +0 -1
  36. package/dist/primary/shell/src/UI/shared-components/bootstrapper.d.ts +0 -1
  37. package/dist/primary/shell/src/UI/shared-components/index.d.ts +0 -1
  38. package/dist/primary/shell/src/UI/shared-components/primaria-character-limit-badge/primaria-character-limit-badge.d.ts +0 -8
  39. package/dist/primary/shell/src/UI/shared-components/primaria-content-switcher/primaria-content-switcher.d.ts +0 -13
  40. package/dist/primary/shell/src/UI/shared-components/primaria-nav-item/template.d.ts +0 -2
  41. package/dist/primary/shell/src/UI/shared-components/primaria-nav-tree-menu/primaria-nav-tree-menu.d.ts +0 -12
  42. package/dist/primary/shell/src/UI/shared-components/primaria-nav-tree-menu/template.d.ts +0 -2
  43. package/dist/primary/shell/src/UI/shared-components/primaria-region/index.d.ts +0 -1
  44. package/dist/primary/shell/src/UI/shared-components/primaria-region/primaria-region.d.ts +0 -99
  45. package/dist/primary/shell/src/UI/shared-components/primaria-text-editor/primaria-rich-text-editor.d.ts +0 -65
  46. package/dist/primary/shell/src/UI/shared-components/primaria-text-editor/template.d.ts +0 -1
  47. package/dist/primary/shell/src/UI/shared-components/primaria-text-editor/utils.d.ts +0 -1
  48. package/dist/primary/shell/src/UI/shared-components/quick-action-item/quick-action-item.d.ts +0 -8
  49. package/dist/primary/shell/src/UI/shared-components/quick-action-item/template.d.ts +0 -2
  50. package/dist/primary/shell/src/UI/shared-components/typings.d.ts +0 -18
  51. package/dist/primary/shell/src/api/activity-monitor/activity-monitor.d.ts +0 -13
  52. package/dist/primary/shell/src/api/activity-monitor/activity-monitor.test.d.ts +0 -1
  53. package/dist/primary/shell/src/api/api.d.ts +0 -56
  54. package/dist/primary/shell/src/api/api.test.d.ts +0 -1
  55. package/dist/primary/shell/src/api/broker/broker-events.d.ts +0 -44
  56. package/dist/primary/shell/src/api/broker/broker-requests.d.ts +0 -20
  57. package/dist/primary/shell/src/api/broker/factory.d.ts +0 -12
  58. package/dist/primary/shell/src/api/broker/factory.test.d.ts +0 -1
  59. package/dist/primary/shell/src/api/broker/primaria-broker.d.ts +0 -11
  60. package/dist/primary/shell/src/api/context-manager/context-manager.d.ts +0 -28
  61. package/dist/primary/shell/src/api/context-manager/context-manager.test.d.ts +0 -1
  62. package/dist/primary/shell/src/api/ecap-event-manager/ecap-event-manager.d.ts +0 -20
  63. package/dist/primary/shell/src/api/ecap-event-manager/ecap-event-manager.test.d.ts +0 -1
  64. package/dist/primary/shell/src/api/ecap-event-manager/typings.d.ts +0 -6
  65. package/dist/primary/shell/src/api/exit-guard-manager/exit-guard-manager.d.ts +0 -12
  66. package/dist/primary/shell/src/api/exit-guard-manager/exit-guard-manager.test.d.ts +0 -1
  67. package/dist/primary/shell/src/api/global-state/global-state.d.ts +0 -27
  68. package/dist/primary/shell/src/api/global-state/global-state.test.d.ts +0 -1
  69. package/dist/primary/shell/src/api/http-client/http-client.d.ts +0 -14
  70. package/dist/primary/shell/src/api/http-client/http-client.test.d.ts +0 -1
  71. package/dist/primary/shell/src/api/import-data-manager/component/component.d.ts +0 -13
  72. package/dist/primary/shell/src/api/import-data-manager/component/template.d.ts +0 -2
  73. package/dist/primary/shell/src/api/import-data-manager/import-data-manager-impl.d.ts +0 -42
  74. package/dist/primary/shell/src/api/import-data-manager/import-data-manager-impl.test.d.ts +0 -1
  75. package/dist/primary/shell/src/api/import-data-manager/import-data-manager.d.ts +0 -42
  76. package/dist/primary/shell/src/api/import-data-manager/index.d.ts +0 -2
  77. package/dist/primary/shell/src/api/interaction-service/confirmation-message.d.ts +0 -2
  78. package/dist/primary/shell/src/api/interaction-service/index.d.ts +0 -1
  79. package/dist/primary/shell/src/api/interaction-service/interaction-service-impl.d.ts +0 -11
  80. package/dist/primary/shell/src/api/interaction-service/interaction-service.d.ts +0 -40
  81. package/dist/primary/shell/src/api/localization/localization.test.d.ts +0 -1
  82. package/dist/primary/shell/src/api/notification-service/notification-service-impl.test.d.ts +0 -1
  83. package/dist/primary/shell/src/api/notification-service/notification-service.d.ts +0 -6
  84. package/dist/primary/shell/src/api/notification-service/notification.service-impl.d.ts +0 -10
  85. package/dist/primary/shell/src/api/pdf-viewer-manager/constants.d.ts +0 -1
  86. package/dist/primary/shell/src/api/pdf-viewer-manager/events.d.ts +0 -5
  87. package/dist/primary/shell/src/api/pdf-viewer-manager/handle-views.d.ts +0 -2
  88. package/dist/primary/shell/src/api/pdf-viewer-manager/pdf-viewer-manager.d.ts +0 -28
  89. package/dist/primary/shell/src/api/pdf-viewer-manager/pdf-viewer-manager.test.d.ts +0 -1
  90. package/dist/primary/shell/src/api/pdf-viewer-manager/pdf-visor/pdf-selector/pdf-selector.d.ts +0 -11
  91. package/dist/primary/shell/src/api/pdf-viewer-manager/pdf-visor/pdf-selector/template.d.ts +0 -2
  92. package/dist/primary/shell/src/api/pdf-viewer-manager/pdf-visor/pdf-visor.d.ts +0 -21
  93. package/dist/primary/shell/src/api/pdf-viewer-manager/pdf-visor/utils.d.ts +0 -1
  94. package/dist/primary/shell/src/api/quick-action-busy-manager/quick-action-busy-manager.d.ts +0 -18
  95. package/dist/primary/shell/src/api/quick-action-busy-manager/quick-action-busy-manager.test.d.ts +0 -1
  96. package/dist/primary/shell/src/api/region-manager/region-manager.d.ts +0 -49
  97. package/dist/primary/shell/src/api/region-manager/region-manager.test.d.ts +0 -1
  98. package/dist/primary/shell/src/api/region-manager/regions.d.ts +0 -27
  99. package/dist/primary/shell/src/api/region-manager/remove-view-idempotency.test.d.ts +0 -1
  100. package/dist/primary/shell/src/api/session-refresh-timer/session-refresh-timer.d.ts +0 -18
  101. package/dist/primary/shell/src/api/session-refresh-timer/session-refresh-timer.test.d.ts +0 -1
  102. package/dist/primary/shell/src/api/token-manager/token-manager.d.ts +0 -21
  103. package/dist/primary/shell/src/api/token-manager/token-manager.test.d.ts +0 -1
  104. package/dist/primary/shell/src/api/user-manager/user-manager.d.ts +0 -19
  105. package/dist/primary/shell/src/bootstrapper.d.ts +0 -14
  106. package/dist/primary/shell/src/constants.d.ts +0 -1
  107. package/dist/primary/shell/src/disposer.d.ts +0 -4
  108. package/dist/primary/shell/src/features/bootstrapper.d.ts +0 -3
  109. package/dist/primary/shell/src/features/exit/bootstrapper.d.ts +0 -3
  110. package/dist/primary/shell/src/features/exit/handler.d.ts +0 -21
  111. package/dist/primary/shell/src/features/exit/handler.test.d.ts +0 -1
  112. package/dist/primary/shell/src/features/exit/request.d.ts +0 -10
  113. package/dist/primary/shell/src/features/get-patient-cip/action.d.ts +0 -2
  114. package/dist/primary/shell/src/features/get-user-info/backend-adapter.d.ts +0 -13
  115. package/dist/primary/shell/src/features/get-user-info/bootstrapper.d.ts +0 -3
  116. package/dist/primary/shell/src/features/get-user-info/handler.d.ts +0 -10
  117. package/dist/primary/shell/src/features/get-user-info/handler.test.d.ts +0 -1
  118. package/dist/primary/shell/src/features/get-user-info/model.d.ts +0 -10
  119. package/dist/primary/shell/src/features/get-user-info/pds-token.d.ts +0 -26
  120. package/dist/primary/shell/src/features/get-user-info/request.d.ts +0 -4
  121. package/dist/primary/shell/src/features/get-visi-id/action.d.ts +0 -2
  122. package/dist/primary/shell/src/features/navigate-to-ecap/navigate-to-ecap.d.ts +0 -1
  123. package/dist/primary/shell/src/features/utils.d.ts +0 -6
  124. package/dist/primary/shell/src/handle-plugins.d.ts +0 -19
  125. package/dist/primary/shell/src/index.d.ts +0 -24
  126. package/dist/primary/shell/src/infrastructure/ioc/container.d.ts +0 -6
  127. package/dist/primary/shell/src/infrastructure/ioc/types.d.ts +0 -5
  128. package/dist/primary/shell/src/locales.d.ts +0 -52
@@ -1 +0,0 @@
1
- export declare const useUI: () => void;
@@ -1 +0,0 @@
1
- export declare const useComponents: () => void;
@@ -1,7 +0,0 @@
1
- import { IRegion } from '@uxland/regions';
2
- import { SidenavActionMenu } from '../sidenav-action-menu/sidenav-action-menu';
3
- /** Menú "Vies clíniques" del menú de navegació: aporta la regió `clinicalPathwaysSidenav`. */
4
- export declare class ClinicalPathwaysActionMenu extends SidenavActionMenu {
5
- constructor(icon: string, label: string);
6
- sidenavRegion: IRegion | undefined;
7
- }
@@ -1,7 +0,0 @@
1
- import { IRegion } from '@uxland/regions';
2
- import { SidenavActionMenu } from '../sidenav-action-menu/sidenav-action-menu';
3
- /** Menú "Comunicació" del menú de navegació: aporta la regió `communicationSidenav`. */
4
- export declare class CommunicationActionMenu extends SidenavActionMenu {
5
- constructor(icon: string, label: string);
6
- sidenavRegion: IRegion | undefined;
7
- }
@@ -1,8 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class PrimariaErrorView extends LitElement {
3
- render(): import('lit').TemplateResult<1>;
4
- static styles: import('lit').CSSResult;
5
- error: {
6
- message: string;
7
- };
8
- }
@@ -1,2 +0,0 @@
1
- import { PrimariaErrorView } from './component';
2
- export declare const template: (props: PrimariaErrorView) => import('lit').TemplateResult<1>;
@@ -1,2 +0,0 @@
1
- import { NavDivider } from './nav-divider';
2
- export declare const template: (props: NavDivider) => import('lit').TemplateResult<1>;
@@ -1,7 +0,0 @@
1
- import { IRegion } from '@uxland/regions';
2
- import { SidenavActionMenu } from '../sidenav-action-menu/sidenav-action-menu';
3
- /** Menú "Peticionari" del menú de navegació: aporta la regió `petitionerSidenav`. */
4
- export declare class PetitionerActionMenu extends SidenavActionMenu {
5
- constructor(icon: string, label: string);
6
- sidenavRegion: IRegion | undefined;
7
- }
@@ -1,7 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class PrimariaAccordion extends LitElement {
3
- isOpen: any;
4
- static styles: import('lit').CSSResult;
5
- toggle(): void;
6
- render(): import('lit').TemplateResult<1>;
7
- }
@@ -1,4 +0,0 @@
1
- export declare enum shellViews {
2
- shell = "primaria-shell",
3
- error = "primaria-error-view"
4
- }
@@ -1,28 +0,0 @@
1
- import { IRegion } from '@uxland/regions';
2
- import { shellViews } from './constants';
3
- declare const PrimariaShell_base: any;
4
- export declare class PrimariaShell extends PrimariaShell_base {
5
- render(): import('lit').TemplateResult<1>;
6
- static styles: import('lit').CSSResult;
7
- connectedCallback(): void;
8
- disconnectedCallback(): void;
9
- navigationMenuRegion: IRegion | undefined;
10
- mainRegion: IRegion | undefined;
11
- quickActionsRegion: IRegion | undefined;
12
- floatingRegion: IRegion | undefined;
13
- navLowerLeftMenu: IRegion | undefined;
14
- sidebarExpanded: boolean;
15
- viewSelected: shellViews;
16
- error: {
17
- message: string;
18
- };
19
- quickActionBusy: boolean;
20
- _toggleSidebar(): void;
21
- private subscriptions;
22
- _subscribeEvents(): void;
23
- _handleError(error: {
24
- message: string;
25
- }): void;
26
- _unsubscribeEvents(): void;
27
- }
28
- export {};
@@ -1,5 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class HeaderDivider extends LitElement {
3
- render(): import('lit').TemplateResult<1>;
4
- static styles: import('lit').CSSResult;
5
- }
@@ -1,2 +0,0 @@
1
- import { HeaderDivider } from './header-divider';
2
- export declare const template: (props: HeaderDivider) => import('lit').TemplateResult<1>;
@@ -1,16 +0,0 @@
1
- import { IRegion } from '@uxland/regions';
2
- import { IUserInfo } from '../../../../features/get-user-info/model';
3
- declare const PrimariaShellHeader_base: any;
4
- export declare class PrimariaShellHeader extends PrimariaShellHeader_base {
5
- render(): import('lit').TemplateResult<1>;
6
- static styles: import('lit').CSSResult;
7
- headerRegion: IRegion | undefined;
8
- headerRightActionsRegion: IRegion | undefined;
9
- professional: IUserInfo;
10
- menuOpened: boolean;
11
- toggleMenu(): void;
12
- logout(): void;
13
- connectedCallback(): void;
14
- firstUpdated(): void;
15
- }
16
- export {};
@@ -1,2 +0,0 @@
1
- import { PrimariaShellHeader } from './shell-header';
2
- export declare const template: (props: PrimariaShellHeader) => import('lit').TemplateResult<1>;
@@ -1,2 +0,0 @@
1
- import { PrimariaShell } from './primaria-shell';
2
- export declare const template: (props: PrimariaShell) => import('lit').TemplateResult<1>;
@@ -1,27 +0,0 @@
1
- import { PropertyValues } from 'lit';
2
- /** Id del contenidor de la regió, derivat del seu nom. */
3
- export declare const regionContainerId: (regionName: string) => string;
4
- declare const SidenavActionMenu_base: any;
5
- /**
6
- * Base dels menús del menú de navegació que despleguen un `dss-action-menu` amb una regió a
7
- * dins: "Comunicació", "Vies clíniques" i "Peticionari".
8
- *
9
- * Els tres eren el mateix component copiat tres vegades (styles.css idèntics i templates que
10
- * només diferien en l'id del contenidor). Cada subclasse només aporta el seu `@region`, que no
11
- * es pot parametritzar: el decorador escriu la metadada al constructor de la classe, així que
12
- * una sola classe compartida tindria una única regió per a totes les instàncies.
13
- */
14
- export declare class SidenavActionMenu extends SidenavActionMenu_base {
15
- constructor(icon: string, label: string, regionName: string);
16
- showText: boolean;
17
- icon: string;
18
- label: string;
19
- regionName: string;
20
- get containerId(): string;
21
- static styles: import('lit').CSSResult;
22
- firstUpdated(_changedProps: PropertyValues<SidenavActionMenu>): void;
23
- /** Amaga el text quan el menú es col·lapsa. */
24
- observeHostResize(): void;
25
- render(): import('lit').TemplateResult<1>;
26
- }
27
- export {};
@@ -1,2 +0,0 @@
1
- import { SidenavActionMenu } from './sidenav-action-menu';
2
- export declare const template: (props: SidenavActionMenu) => import('lit').TemplateResult<1>;
@@ -1 +0,0 @@
1
- export * from './shared-components';
@@ -1,2 +0,0 @@
1
- export declare const registerAdministrativeCommunicationMenuActions: () => void;
2
- export declare const registerAdministrativeNavMenuViews: () => void;
@@ -1,36 +0,0 @@
1
- export type MenuItemConfig = {
2
- id: string;
3
- sortHint?: string;
4
- icon: string;
5
- label: string;
6
- type: "item";
7
- callbackFn: () => void | Promise<void>;
8
- } | {
9
- id: string;
10
- sortHint?: string;
11
- icon: string;
12
- label: string;
13
- type: "tree";
14
- actionMenuItems: {
15
- icon: string;
16
- label: string;
17
- callbackFn?: () => void | Promise<void>;
18
- hasNestedMenu?: boolean;
19
- nestedMenuItems?: {
20
- icon: string;
21
- label: string;
22
- callbackFn: () => void | Promise<void>;
23
- }[];
24
- }[];
25
- };
26
- export declare const commonNavMenuItems: {
27
- id: string;
28
- icon: string;
29
- label: string;
30
- type: string;
31
- sortHint: string;
32
- callbackFn: () => Promise<unknown>;
33
- }[];
34
- export declare const registerNavMenuViews: (views: MenuItemConfig[]) => void;
35
- export declare const registerCommunicationNavMenu: () => void;
36
- export declare const registerNavMenuDivider: () => void;
@@ -1,6 +0,0 @@
1
- export declare const registerClinicalPathwaysNavMenu: () => void;
2
- export declare const registerDoctorCommunicationMenuActions: () => void;
3
- export declare const registerDoctorClinicalPathwaysMenuActions: () => void;
4
- export declare const registerPetitionerNavMenu: () => void;
5
- export declare const registerDoctorPetitionerMenuActions: () => void;
6
- export declare const registerDoctorNavMenuViews: () => void;
@@ -1 +0,0 @@
1
- export declare const registerDoctorQuickActionViews: () => void;
@@ -1 +0,0 @@
1
- export declare const useInternalViews: () => void;
@@ -1 +0,0 @@
1
- export declare const useSharedUI: () => void;
@@ -1 +0,0 @@
1
- export { PrimariaContentSwitcher } from './primaria-content-switcher/primaria-content-switcher';
@@ -1,8 +0,0 @@
1
- import { LitElement, nothing } from 'lit';
2
- export declare class PrimariaCharacterLimitBadge extends LitElement {
3
- characterCount: number;
4
- characterLimit: number;
5
- label: string;
6
- static styles: import('lit').CSSResult;
7
- render(): import('lit').TemplateResult<1> | typeof nothing;
8
- }
@@ -1,13 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class PrimariaContentSwitcher extends LitElement {
3
- render(): import('lit').TemplateResult<1>;
4
- static styles: import('lit').CSSResult;
5
- selected: any;
6
- attrForSelected: string;
7
- animation: string;
8
- updated(props: any): any;
9
- get items(): HTMLCollection;
10
- selectIndex(): number;
11
- select(): void;
12
- doAnimation(item: any): any;
13
- }
@@ -1,2 +0,0 @@
1
- import { PrimariaNavItem } from './primaria-nav-item';
2
- export declare const template: (props: PrimariaNavItem) => import('lit').TemplateResult<1>;
@@ -1,12 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import { PrimariaNavItemConfig, PrimariaNavTreeMenuConfig } from '../typings';
3
- export declare class PrimariaNavTreeMenu extends LitElement {
4
- static styles: import('lit').CSSResult;
5
- config: PrimariaNavTreeMenuConfig;
6
- showActionMenu: boolean;
7
- constructor(config: PrimariaNavTreeMenuConfig);
8
- get primariaNavItemConfig(): PrimariaNavItemConfig;
9
- handleItemClick: () => void;
10
- handleCloseMenu: () => void;
11
- render(): import('lit').TemplateResult<1>;
12
- }
@@ -1,2 +0,0 @@
1
- import { PrimariaNavTreeMenu } from './primaria-nav-tree-menu';
2
- export declare const template: (props: PrimariaNavTreeMenu) => import('lit').TemplateResult<1>;
@@ -1 +0,0 @@
1
- export { PrimariaRegion } from './primaria-region';
@@ -1,99 +0,0 @@
1
- import { IRegion } from '@uxland/regions';
2
- declare const PrimariaRegion_base: any;
3
- /**
4
- * PrimariaRegion Web Component
5
- *
6
- * A plug-and-play region component that allows dynamic region creation without
7
- * needing to extend PrimariaRegionHost or use the @region decorator manually.
8
- *
9
- * Renders in light DOM (no shadow-root) to allow region content to be properly
10
- * displayed in the parent's DOM tree.
11
- *
12
- * @example
13
- * ```html
14
- * <primaria-region name="diagnostics-region"></primaria-region>
15
- * ```
16
- *
17
- * This component internally handles:
18
- * - Creating a container with the appropriate ID
19
- * - Setting up the region definition
20
- * - Managing the region lifecycle
21
- */
22
- export declare class PrimariaRegion extends PrimariaRegion_base {
23
- /**
24
- * The name of the region to create.
25
- * This will be used both as the region name in the region manager
26
- * and to generate the container ID.
27
- */
28
- name: string;
29
- /**
30
- * Rendering mode for the region.
31
- * - "multi" (default): all registered views are shown simultaneously (MultipleActiveAdapter).
32
- * - "single": only one view is shown at a time (SelectableAdapter via primaria-content-switcher).
33
- * Each plugin activates its own view; the adapter deactivates the rest automatically.
34
- */
35
- mode: "multi" | "single";
36
- /**
37
- * Render in light DOM instead of shadow DOM.
38
- * This allows the region content to be visible in the parent's DOM tree.
39
- */
40
- createRenderRoot(): this;
41
- /**
42
- * Override shadowRoot getter to return this (light DOM) instead of null.
43
- * The region mixin tries to find elements using shadowRoot.querySelector(),
44
- * so we need to make it work with light DOM.
45
- */
46
- get shadowRoot(): ShadowRoot | null;
47
- /**
48
- * The region instance created by the region host mixin.
49
- * Plugins can inject content into this region using the region manager.
50
- */
51
- region: IRegion | undefined;
52
- /**
53
- * Virtual constructor for this instance to hold its own region definition.
54
- * This prevents conflicts when multiple primaria-region instances exist.
55
- */
56
- private _instanceConstructor;
57
- constructor();
58
- /**
59
- * Called when the component is connected to the DOM.
60
- * Sets up the region definition before the parent connectedCallback runs.
61
- */
62
- connectedCallback(): void;
63
- /**
64
- * Mixin hook fired after `createRegions` finishes.
65
- *
66
- * Hydrates the freshly-created region with every view that has already been
67
- * registered for this region name via `regionManager.registerViewWithRegion`.
68
- * `registerViewWithRegion` only forwards to regions that exist at the moment
69
- * of the call, so a plugin that registers once at `initialize` would lose
70
- * its view every time the region is destroyed and re-created (e.g. when a
71
- * drawer that hosts the region is closed and reopened). Pulling from the
72
- * registry here makes injection transparent: any plugin can register once
73
- * and any region with that name auto-populates.
74
- */
75
- regionsCreated(_regions: unknown): void;
76
- /**
77
- * Called when the component is removed from the DOM.
78
- *
79
- * The base mixin's `disconnectedCallback` removes the region from the manager
80
- * but does NOT clear `this.region`, so on a later reconnect the mixin's
81
- * `createRegions` sees `isNil(this.region) === false` and skips re-creating
82
- * the region. That breaks the "drawer opens, closes, opens again" flow:
83
- * the second open would render the host but never receive the plugin's
84
- * view. Clear the reference (and drop the orphan container) so the next
85
- * connect rebuilds everything from scratch.
86
- */
87
- disconnectedCallback(): void;
88
- /**
89
- * Called before the component updates.
90
- * Updates the region definition if the name changes.
91
- */
92
- protected willUpdate(changedProperties: Map<PropertyKey, unknown>): void;
93
- /**
94
- * Renders nothing because we create the container div manually in connectedCallback.
95
- * This is necessary because the mixin needs the div to exist before it tries to create the region.
96
- */
97
- render(): import('lit').TemplateResult<1>;
98
- }
99
- export {};
@@ -1,65 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import { default as Quill } from 'uxl-quill/dist/quill';
3
- /**
4
- * Una opció de la barra d'eines de Quill: el nom solt (`"bold"`), un objecte de configuració
5
- * (`{ header: 1 }`) o un grup d'opcions, que és com Quill separa els blocs de la barra.
6
- */
7
- type ToolbarOption = string | Record<string, unknown> | (string | Record<string, unknown>)[];
8
- export declare class PrimariaRichTextEditor extends LitElement {
9
- private textChangeTimeout;
10
- render(): import('lit').TemplateResult<1>;
11
- static styles: import('lit').CSSResult;
12
- firstUpdated(): void;
13
- _debouncedEmitTextChangeEvent(): void;
14
- _emitTextChangeEvent(): void;
15
- quill: Quill | null;
16
- options: string;
17
- range: {
18
- index: number;
19
- length: number;
20
- };
21
- availableOptions: string[];
22
- availableFormats: string[];
23
- formats: string;
24
- _getOptions(): {
25
- modules: {
26
- toolbar: {
27
- container: ToolbarOption[];
28
- handlers: {
29
- redo(): void;
30
- undo(): void;
31
- };
32
- };
33
- history: {
34
- delay: number;
35
- maxStack: number;
36
- userOnly: boolean;
37
- };
38
- keyboard: {
39
- bindings: {
40
- indent: {
41
- key: string;
42
- format: string[];
43
- handler(range: any, context: any): boolean;
44
- };
45
- "list autofill": {
46
- key: string;
47
- shiftKey: null;
48
- collapsed: boolean;
49
- format: {
50
- "code-block": boolean;
51
- blockquote: boolean;
52
- table: boolean;
53
- };
54
- prefix: RegExp;
55
- handler(range: any, context: any): boolean;
56
- };
57
- };
58
- };
59
- };
60
- theme: string;
61
- formats: string[];
62
- };
63
- getCursorPosition(): any;
64
- }
65
- export {};
@@ -1 +0,0 @@
1
- export declare const template: (props: any) => import('lit').TemplateResult<1>;
@@ -1 +0,0 @@
1
- export declare const fixSpellCheckerIssue: (Quill: any) => void;
@@ -1,8 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class QuickActionItem extends LitElement {
3
- constructor(icon: string, label: string, callbackFn: () => void);
4
- render(): import('lit').TemplateResult<1>;
5
- icon: string;
6
- label: string;
7
- callbackFn: () => void;
8
- }
@@ -1,2 +0,0 @@
1
- import { QuickActionItem } from './quick-action-item';
2
- export declare const template: (props: QuickActionItem) => import('lit').TemplateResult<1>;
@@ -1,18 +0,0 @@
1
- interface MenuItem {
2
- icon: string;
3
- label: string;
4
- }
5
- export interface PrimariaNavItemConfig extends MenuItem {
6
- callbackFn?: () => void;
7
- showArrow?: boolean;
8
- fill?: boolean;
9
- rotateIcon?: boolean;
10
- hasNestedMenu?: boolean;
11
- nestedMenuItems?: PrimariaNavItemConfig[];
12
- }
13
- export interface PrimariaNavTreeMenuConfig {
14
- icon: string;
15
- label: string;
16
- actionMenuItems: PrimariaNavItemConfig[];
17
- }
18
- export {};
@@ -1,13 +0,0 @@
1
- export interface ActivityMonitor {
2
- start: () => void;
3
- stop: () => void;
4
- getLastActivityTimestamp: () => number;
5
- }
6
- export declare class ActivityMonitorImpl implements ActivityMonitor {
7
- private lastActivityTimestamp;
8
- private readonly activityHandler;
9
- start: () => void;
10
- stop: () => void;
11
- getLastActivityTimestamp: () => number;
12
- }
13
- export declare const createActivityMonitor: () => ActivityMonitor;
@@ -1,56 +0,0 @@
1
- import { ApiFactory, HarmonixApi } from '@uxland/harmonix';
2
- import { PrimariaBroker } from './broker/primaria-broker';
3
- import { EcapEventManager } from './ecap-event-manager/ecap-event-manager';
4
- import { ExitGuardManager } from './exit-guard-manager/exit-guard-manager';
5
- import { PrimariaGlobalStateManager } from './global-state/global-state';
6
- import { HttpClient } from './http-client/http-client';
7
- import { PrimariaInteractionService } from './interaction-service';
8
- import { PrimariaNotificationService } from './notification-service/notification-service';
9
- import { PdfViewerManager } from './pdf-viewer-manager/pdf-viewer-manager';
10
- import { QuickActionBusyManager } from './quick-action-busy-manager/quick-action-busy-manager';
11
- import { PrimariaRegionManager } from './region-manager/region-manager';
12
- import { TokenManager } from './token-manager/token-manager';
13
- import { UserManager } from './user-manager/user-manager';
14
- import { PrimariaImportDataManager } from './import-data-manager';
15
- import { EcapContext, PrimariaContextManager } from './context-manager/context-manager';
16
- export interface PrimariaApi extends HarmonixApi {
17
- httpClient: HttpClient;
18
- interactionService: PrimariaInteractionService;
19
- notificationService: PrimariaNotificationService;
20
- broker: PrimariaBroker;
21
- regionManager: PrimariaRegionManager;
22
- globalStateManager: PrimariaGlobalStateManager;
23
- contextManager: PrimariaContextManager;
24
- tokenManager: TokenManager;
25
- userManager: UserManager;
26
- ecapEventManager: EcapEventManager;
27
- exitGuardManager: ExitGuardManager;
28
- quickActionBusyManager: QuickActionBusyManager;
29
- pdfViewerManager: PdfViewerManager;
30
- importDataManager: PrimariaImportDataManager;
31
- }
32
- export declare const PrimariaRegionHost: any;
33
- export declare const activityMonitor: import('./activity-monitor/activity-monitor').ActivityMonitor;
34
- export declare const sessionRefreshTimer: import('./session-refresh-timer/session-refresh-timer').SessionRefreshTimer;
35
- /**
36
- * Operacions destructives o d'arrencada que només pot fer el shell. No surten de `index.ts` i cap
37
- * no és a la `PrimariaApi`, així que cap plugin no les pot cridar.
38
- */
39
- export declare const shellInternals: {
40
- /** Fixa els tokens inicials. Només funciona una vegada (`Token already initialized`). */
41
- setInitialTokens: (accessToken: string, refreshToken: string) => void;
42
- initializeContext: (context: EcapContext) => void;
43
- /** Desmunta totes les vistes de totes les regions i espera que acabin. */
44
- removeAllViews: () => Promise<void>;
45
- destroyRegions: () => Promise<import('@uxland/harmonix').IRegionManager>;
46
- clearBroker: () => void;
47
- closeAllDialogs: () => void;
48
- };
49
- /**
50
- * Factory function that creates a Primaria API instance.
51
- *
52
- * @param {PluginInfo} pluginInfo - Information about the plugin
53
- * @return {PrimariaApi} The created Primaria API instance
54
- */
55
- export declare const primariaApiFactory: ApiFactory<PrimariaApi>;
56
- export declare const shellApi: PrimariaApi;
@@ -1 +0,0 @@
1
- export {};
@@ -1,44 +0,0 @@
1
- /**
2
- * Diccionari centralitzat d'events del broker.
3
- * Events agrupats per plugin/iniciativa per facilitar l'organització i escalabilitat.
4
- *
5
- * Els grups que hi ha aquí escrits són els que el shell publica o consumeix. Els
6
- * contractes entre iniciatives, en què el shell no és part, es declaren a
7
- * `@primaria/plugins-core` i s'hi escampen a sota: el shell només fa de canal de
8
- * distribució, perquè és l'únic paquet que instal·len les iniciatives externes.
9
- * Els que porten resposta no són aquí, sinó a `BROKER_REQUESTS`.
10
- */
11
- export declare const BROKER_EVENTS: {
12
- readonly activityHistory: {
13
- readonly refreshDataRequested: "refresh_history_data_requested";
14
- readonly errorLoadingData: "error_loading_activity_history_data";
15
- readonly searched: "activity_history_searched";
16
- readonly filtersCleaned: "activity_history_filters_cleaned";
17
- readonly diagnosticFilterDeactivated: "activity_history_diagnostic_filter_deactivated";
18
- readonly injectAsyncHistoryItemsRequest: "inject_async_history_items_request";
19
- readonly addHistoryItemRequest: "add_history_item_request";
20
- readonly addHistoryItemsRequest: "add_history_items_request";
21
- readonly updateHistoryItemRequest: "update_history_item_request";
22
- readonly removeHistoryItemRequest: "remove_history_item_request";
23
- };
24
- readonly shell: {
25
- readonly appCrashed: "appCrashed";
26
- readonly mainViewChanged: "mainViewChanged";
27
- readonly refreshTokenFailed: "refreshTokenFailed";
28
- readonly mpidHeaderInvalid: "mpidHeaderInvalid";
29
- readonly quickActionBusyChanged: "quickActionBusyChanged";
30
- };
31
- readonly administrativeManagement: {
32
- readonly tabSelected: "administrative_management_tab_selected";
33
- };
34
- readonly cipds: {
35
- readonly filterHistoricRequested: "cipds_diagnostic_filter_historic_requested";
36
- };
37
- readonly clinicalCourse: {
38
- readonly draftAppendRequested: "clinical_course_draft_append_requested";
39
- };
40
- readonly helpCenter: {
41
- readonly helpRequested: "help_requested";
42
- };
43
- };
44
- export type BrokerEvents = typeof BROKER_EVENTS;
@@ -1,20 +0,0 @@
1
- /**
2
- * Diccionari centralitzat de requests del broker: els missatges que porten
3
- * resposta i es criden amb `send` / `registerRequest`.
4
- *
5
- * Separat de `BROKER_EVENTS` a propòsit. Un event (`publish`/`subscribe`) i una
6
- * request (`send`/`registerRequest`) són mecanismes diferents, i barrejar-los
7
- * en una constant que es diu "events" deixa qui l'autocompleta sense saber quin
8
- * dels dos ha de cridar.
9
- *
10
- * Ara mateix només conté contractes entre iniciatives, declarats a
11
- * `@primaria/plugins-core`. Si algun dia el shell exposa requests pròpies,
12
- * s'escriuen aquí al costat, igual que a `BROKER_EVENTS`.
13
- */
14
- export declare const BROKER_REQUESTS: {
15
- readonly cipds: {
16
- readonly diagnosticsSelectorRequested: "request_diagnostics_selector";
17
- readonly selectionRequested: "cipds_selection_request";
18
- };
19
- };
20
- export type BrokerRequests = typeof BROKER_REQUESTS;