@uxland/primary-shell 7.11.0 → 7.11.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.
- package/dist/{component-DnzxDlBH.js → component-Dpavkfpg.js} +15 -15
- package/dist/component-Dpavkfpg.js.map +1 -0
- package/dist/{index-OmsP_dgZ.js → index-Cv-b9XHD.js} +19 -18
- package/dist/index-Cv-b9XHD.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +3 -3
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/UI/internal-views/doctor-quick-action-menu.ts +1 -1
- package/src/api/import-data-manager/component/component.ts +4 -4
- package/src/api/region-manager/region-manager.ts +2 -1
- package/dist/component-DnzxDlBH.js.map +0 -1
- package/dist/index-OmsP_dgZ.js.map +0 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { navigateToEcapWithoutClosingWithCip } from "../../features/navigate-to-
|
|
|
5
5
|
export const registerDoctorQuickActionViews = () => {
|
|
6
6
|
shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.quickActions, {
|
|
7
7
|
id: "dates",
|
|
8
|
-
sortHint: "
|
|
8
|
+
sortHint: "0011",
|
|
9
9
|
factory: () => {
|
|
10
10
|
const quickActionItem = new QuickActionItem("", "Cita", () => {
|
|
11
11
|
navigateToEcapWithoutClosingWithCip("CREAR_VISITA");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
1
|
import { IRegion, region } from "@uxland/regions";
|
|
3
2
|
import { LitElement, css, html, unsafeCSS } from "lit";
|
|
4
3
|
import { customElement } from "lit/decorators.js";
|
|
5
4
|
import styles from "./styles.css?inline";
|
|
6
5
|
import { template } from "./template";
|
|
7
6
|
import { ConfirmationContentProps } from "../../interaction-service";
|
|
8
|
-
import { PrimariaRegionHost } from "../../api";
|
|
7
|
+
import { PrimariaRegionHost, shellApi } from "../../api";
|
|
9
8
|
|
|
10
9
|
@customElement("import-data-manager-modal")
|
|
11
10
|
export class ImportDataManagerModal
|
|
12
|
-
extends PrimariaRegionHost(LitElement)
|
|
11
|
+
extends PrimariaRegionHost(LitElement)
|
|
12
|
+
implements ConfirmationContentProps<undefined, undefined>
|
|
13
13
|
{
|
|
14
14
|
data: undefined;
|
|
15
15
|
setResult: (result: undefined) => void;
|
|
@@ -17,7 +17,7 @@ export class ImportDataManagerModal
|
|
|
17
17
|
confirm: () => void;
|
|
18
18
|
cancel: () => void;
|
|
19
19
|
|
|
20
|
-
@region({ targetId: "import-data-region", name:
|
|
20
|
+
@region({ targetId: "import-data-region", name: shellApi.regionManager.regions.shell.importData })
|
|
21
21
|
importDataRegion: IRegion | undefined;
|
|
22
22
|
|
|
23
23
|
render() {
|
|
@@ -48,7 +48,8 @@ class RegionManagerProxy implements PrimariaRegionManager {
|
|
|
48
48
|
* @return {Promise<void>} A promise that resolves when the view is successfully removed.
|
|
49
49
|
*/
|
|
50
50
|
removeView(regionName: string, viewId: string): Promise<void> {
|
|
51
|
-
this.regionManager.getRegion(regionName)
|
|
51
|
+
const region = this.regionManager.getRegion(regionName);
|
|
52
|
+
if (region) region.removeView(`${this.pluginInfo.pluginId}::${viewId}`);
|
|
52
53
|
return Promise.resolve();
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-DnzxDlBH.js","sources":["../src/api/import-data-manager/component/template.ts","../src/api/import-data-manager/component/component.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { translate } from \"../../../locales\";\nimport { ImportDataManagerModal } from \"./component\";\n\nexport const template = (props: ImportDataManagerModal) => {\n return html`\n <div class=\"container\">\n <!-- <div class=\"header\">\n <div class=\"title\">\n <div>${translate(\"importDataManager.title\")}</div>\n </div> \n </div> -->\n <div class=\"content\" id=\"import-data-region\"></div>\n <div class=\"footer\">\n <dss-button label=\"${translate(\"importDataManager.actions.cancel\")}\" @click=\"${() => {\n props.cancel();\n }}\" size=\"md\" variant=\"secondary\"></dss-button>\n <dss-button label=\"${translate(\"importDataManager.actions.import\")}\" @click=\"${() => {\n props._accept();\n }}\" size=\"md\" variant=\"primary\"></dss-button>\n </div>\n </div>\n `;\n};\n","\nimport { IRegion, region } from \"@uxland/regions\";\nimport { LitElement, css, html, unsafeCSS } from \"lit\";\nimport { customElement } from \"lit/decorators.js\";\nimport styles from \"./styles.css?inline\";\nimport { template } from \"./template\";\nimport { ConfirmationContentProps } from \"../../interaction-service\";\nimport { PrimariaRegionHost } from \"../../api\";\n\n@customElement(\"import-data-manager-modal\")\nexport class ImportDataManagerModal\n extends PrimariaRegionHost(LitElement) implements ConfirmationContentProps<undefined, undefined>\n{\n data: undefined;\n setResult: (result: undefined) => void;\n setIsValid: (isValid: boolean) => void;\n confirm: () => void;\n cancel: () => void;\n\n @region({ targetId: \"import-data-region\", name: \"import-data-region\" })\n importDataRegion: IRegion | undefined;\n\n render() {\n return html`${template(this)}`;\n }\n\n static styles = css`\n ${unsafeCSS(styles)}\n `;\n\n _accept = () => {\n this.confirm();\n };\n}\n"],"names":["template","props","html","translate","ImportDataManagerModal","PrimariaRegionHost","LitElement","css","unsafeCSS","styles","__decorateClass","region","customElement"],"mappings":";gqBAIaA,IAAW,CAACC,MAChBC;AAAAA;AAAAA;AAAAA;AAAAA,iBAIQC,EAAU,yBAAyB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,yBAK5BA,EAAU,kCAAkC,CAAC,aAAa,MAAM;AACjF,EAAAF,EAAM,OAAA;AACR,CAAC;AAAA,2BACoBE,EAAU,kCAAkC,CAAC,aAAa,MAAM;AACnF,EAAAF,EAAM,QAAA;AACR,CAAC;AAAA;AAAA;AAAA;;;;;;ACTA,IAAMG,IAAN,cACGC,EAAmBC,CAAU,EACvC;AAAA,EAFO,cAAA;AAAA,UAAA,GAAA,SAAA,GAoBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AAvBaI,EAgBJ,SAASG;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAPrBC,EAAA;AAAA,EADCC,EAAO,EAAE,UAAU,sBAAsB,MAAM,sBAAsB;AAAA,GAT3DP,EAUX,WAAA,oBAAA,CAAA;AAVWA,IAANM,EAAA;AAAA,EADNE,EAAc,2BAA2B;AAAA,GAC7BR,CAAA;"}
|