@uxland/primary-shell 7.19.0 → 7.20.0
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-Dntb8lDA.js → component-D0BI_Ste.js} +2 -2
- package/dist/{component-Dntb8lDA.js.map → component-D0BI_Ste.js.map} +1 -1
- package/dist/{index-Bh_v3jlk.js → index-BClgiJgh.js} +12 -8
- package/dist/index-BClgiJgh.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +10 -7
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/api/interaction-service/interaction-service.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/interaction-service/interaction-service-impl.tsx +1 -0
- package/src/api/interaction-service/interaction-service.ts +1 -0
- package/src/api/interaction-service/modal-styles.css +9 -6
- package/dist/index-Bh_v3jlk.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as d, k as l, P as p, h as g, r as m, i as v, s as h, a as f, b as u } from "./index-
|
|
1
|
+
import { t as d, k as l, P as p, h as g, r as m, i as v, s as h, a as f, b as u } from "./index-BClgiJgh.js";
|
|
2
2
|
const x = ".container{background-color:#fff;display:flex;flex-direction:column;min-width:500px;width:90vw;height:90vh;border-radius:var(--dss-radius-sm);overflow:hidden}.content{display:grid;height:100%;min-height:1px;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:16px;padding:16px;overflow-y:auto;max-height:calc(90vh - 120px)}.content>*{border:1px solid var(--color-neutral-200);border-radius:8px;padding:16px;background-color:var(--color-neutral-50);min-height:200px}.footer{display:flex;flex-direction:row;align-items:center;background:#fff;justify-content:end;gap:12px;height:56px;border-top:1px solid var(--color-neutral-100);padding:var(--dss-spacing-sm)}", b = (r) => l`
|
|
3
3
|
<div class="container">
|
|
4
4
|
<!-- <div class="header">
|
|
@@ -44,4 +44,4 @@ i = c([
|
|
|
44
44
|
export {
|
|
45
45
|
i as ImportDataManagerModal
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=component-
|
|
47
|
+
//# sourceMappingURL=component-D0BI_Ste.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-
|
|
1
|
+
{"version":3,"file":"component-D0BI_Ste.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","import { 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, shellApi } from \"../../api\";\n\n@customElement(\"import-data-manager-modal\")\nexport class ImportDataManagerModal\n extends PrimariaRegionHost(LitElement)\n 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: shellApi.regionManager.regions.shell.importData })\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","shellApi","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;;;;;;ACVA,IAAMG,IAAN,cACGC,EAAmBC,CAAU,EAEvC;AAAA,EAHO,cAAA;AAAA,UAAA,GAAA,SAAA,GAqBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AAxBaI,EAiBJ,SAASG;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAPrBC,EAAA;AAAA,EADCC,EAAO,EAAE,UAAU,sBAAsB,MAAMC,EAAS,cAAc,QAAQ,MAAM,WAAA,CAAY;AAAA,GAVtFR,EAWX,WAAA,oBAAA,CAAA;AAXWA,IAANM,EAAA;AAAA,EADNG,EAAc,2BAA2B;AAAA,GAC7BT,CAAA;"}
|
|
@@ -5407,7 +5407,9 @@ class PrimariaInteractionService {
|
|
|
5407
5407
|
}
|
|
5408
5408
|
const ConfirmationMessage = ({ data: te }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: te }), modalStyles = `.modal {
|
|
5409
5409
|
font-family: "Open Sans", sans-serif;
|
|
5410
|
-
display:
|
|
5410
|
+
display: flex;
|
|
5411
|
+
align-items: center;
|
|
5412
|
+
justify-content: center;
|
|
5411
5413
|
position: fixed;
|
|
5412
5414
|
z-index: 400;
|
|
5413
5415
|
left: 0;
|
|
@@ -5419,11 +5421,8 @@ const ConfirmationMessage = ({ data: te }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
5419
5421
|
.dialog {
|
|
5420
5422
|
display: flex;
|
|
5421
5423
|
flex-direction: column;
|
|
5422
|
-
position:
|
|
5423
|
-
|
|
5424
|
-
left: 50%;
|
|
5425
|
-
transform: translate(-50%, -50%);
|
|
5426
|
-
z-index: 21;
|
|
5424
|
+
position: relative;
|
|
5425
|
+
z-index: 401;
|
|
5427
5426
|
background: #fff;
|
|
5428
5427
|
border-radius: 16px;
|
|
5429
5428
|
width: auto;
|
|
@@ -5432,6 +5431,7 @@ const ConfirmationMessage = ({ data: te }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
5432
5431
|
min-width: 400px;
|
|
5433
5432
|
box-shadow: 0 8px 12px 6px rgba(0 0 0 / 5%), 0 4px 4px rgba(0 0 0 / 10%);
|
|
5434
5433
|
}
|
|
5434
|
+
|
|
5435
5435
|
.dss-dialog-header {
|
|
5436
5436
|
position: relative;
|
|
5437
5437
|
display: flex;
|
|
@@ -5461,9 +5461,12 @@ const ConfirmationMessage = ({ data: te }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
5461
5461
|
.modal-content {
|
|
5462
5462
|
flex: 1;
|
|
5463
5463
|
padding: 0 24px;
|
|
5464
|
+
overflow: visible;
|
|
5465
|
+
position: relative;
|
|
5464
5466
|
}
|
|
5465
5467
|
.modal-content.full-customization {
|
|
5466
5468
|
padding: 0;
|
|
5469
|
+
overflow: visible;
|
|
5467
5470
|
}
|
|
5468
5471
|
.dss-modal-footer {
|
|
5469
5472
|
display: flex;
|
|
@@ -5530,6 +5533,7 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5530
5533
|
setResult: ve,
|
|
5531
5534
|
setIsValid: _e,
|
|
5532
5535
|
confirm: () => me && qe(!0),
|
|
5536
|
+
confirmResult: (Ie) => me && Fe(Ie),
|
|
5533
5537
|
cancel: () => qe(!1)
|
|
5534
5538
|
}
|
|
5535
5539
|
);
|
|
@@ -9766,7 +9770,7 @@ class ImportDataManagerImpl {
|
|
|
9766
9770
|
async import(J) {
|
|
9767
9771
|
this.currentImporterId = J, this.selectedItems = {}, this.pluginTexts = {};
|
|
9768
9772
|
try {
|
|
9769
|
-
const { ImportDataManagerModal: X } = await import("./component-
|
|
9773
|
+
const { ImportDataManagerModal: X } = await import("./component-D0BI_Ste.js"), { confirmed: re } = await this.interactionService.confirm(
|
|
9770
9774
|
void 0,
|
|
9771
9775
|
{ component: X },
|
|
9772
9776
|
{
|
|
@@ -47767,4 +47771,4 @@ export {
|
|
|
47767
47771
|
h as w,
|
|
47768
47772
|
PrimariaInteractionService as x
|
|
47769
47773
|
};
|
|
47770
|
-
//# sourceMappingURL=index-
|
|
47774
|
+
//# sourceMappingURL=index-BClgiJgh.js.map
|