@uxland/primary-shell 7.47.6 → 7.48.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-CQxI1o5p.js → component-DvhXFXbi.js} +13 -12
- package/dist/component-DvhXFXbi.js.map +1 -0
- package/dist/{index-DSO8ViDu.js → index-Pwqfd9a_.js} +3 -3
- package/dist/{index-DSO8ViDu.js.map → index-Pwqfd9a_.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +35 -44
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{plugin-DohFiwSH.js → plugin-GzwtrpSe.js} +517 -537
- package/dist/{plugin-DohFiwSH.js.map → plugin-GzwtrpSe.js.map} +1 -1
- package/package.json +1 -1
- package/src/api/import-data-manager/component/styles.css +6 -11
- package/src/api/import-data-manager/component/template.ts +1 -0
- package/dist/component-CQxI1o5p.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s, u as d, k as
|
|
2
|
-
const v = ".container{background-color:#fff;display:flex;flex-direction:column;min-width:500px;width:95vw;height:95vh;border-radius:var(--dss-radius-sm);overflow:hidden}.content{display:grid;flex:1;min-height:0;grid-template-columns:
|
|
1
|
+
import { s, u as d, k as c, h as p, r as g, b as m, t as h } from "./index-Pwqfd9a_.js";
|
|
2
|
+
const v = ".container{background-color:#fff;display:flex;flex-direction:column;min-width:500px;width:95vw;height:95vh;border-radius:var(--dss-radius-sm);overflow:hidden}.content{display:grid;flex:1;min-height:0;grid-template-columns:50% 50%;gap:16px;padding:16px}.content>primaria-region{width:100%;height:100%;min-height:0}.content primaria-region>div{width:100%;height:100%;border:1px solid var(--color-neutral-200);border-radius:8px;padding:16px;box-sizing:border-box}.content>primaria-region[name=import-data-region]>div{overflow-y:auto}.content>primaria-region[name=import-data-activity-history-region]>div{display:flex;flex-direction:column;gap:16px;overflow-y:auto}.content>primaria-region[name=import-data-activity-history-region]>div>*{flex-shrink:0}.footer{display:flex;flex-direction:row;align-items:center;background:#fff;justify-content:center;gap:12px;height:56px;border-top:1px solid var(--color-neutral-100);padding:var(--dss-spacing-sm)}", u = (r) => c`
|
|
3
3
|
<div class="container">
|
|
4
4
|
<div class="content">
|
|
5
5
|
<primaria-region name="${s.regionManager.regions.shell.importDataActivityHistory}"></primaria-region>
|
|
@@ -9,15 +9,16 @@ const v = ".container{background-color:#fff;display:flex;flex-direction:column;m
|
|
|
9
9
|
<dss-button
|
|
10
10
|
label="${d("importDataManager.actions.cancel")}"
|
|
11
11
|
@click="${() => {
|
|
12
|
-
|
|
12
|
+
r.cancel();
|
|
13
13
|
}}"
|
|
14
14
|
size="md"
|
|
15
15
|
variant="secondary"
|
|
16
16
|
></dss-button>
|
|
17
17
|
<dss-button
|
|
18
|
+
icon="add_circle"
|
|
18
19
|
label="${d("importDataManager.actions.import")}"
|
|
19
20
|
@click="${() => {
|
|
20
|
-
|
|
21
|
+
r._accept();
|
|
21
22
|
}}"
|
|
22
23
|
size="md"
|
|
23
24
|
variant="primary"
|
|
@@ -25,10 +26,10 @@ const v = ".container{background-color:#fff;display:flex;flex-direction:column;m
|
|
|
25
26
|
</div>
|
|
26
27
|
</div>
|
|
27
28
|
`;
|
|
28
|
-
var
|
|
29
|
-
for (var
|
|
30
|
-
(o =
|
|
31
|
-
return
|
|
29
|
+
var f = Object.getOwnPropertyDescriptor, x = (r, e, l, n) => {
|
|
30
|
+
for (var i = n > 1 ? void 0 : n ? f(e, l) : e, a = r.length - 1, o; a >= 0; a--)
|
|
31
|
+
(o = r[a]) && (i = o(i) || i);
|
|
32
|
+
return i;
|
|
32
33
|
};
|
|
33
34
|
let t = class extends p {
|
|
34
35
|
constructor() {
|
|
@@ -37,11 +38,11 @@ let t = class extends p {
|
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
|
-
return
|
|
41
|
+
return c`${u(this)}`;
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
|
-
t.styles =
|
|
44
|
-
${
|
|
44
|
+
t.styles = m`
|
|
45
|
+
${g(v)}
|
|
45
46
|
`;
|
|
46
47
|
t = x([
|
|
47
48
|
h("import-data-manager-modal")
|
|
@@ -49,4 +50,4 @@ t = x([
|
|
|
49
50
|
export {
|
|
50
51
|
t as ImportDataManagerModal
|
|
51
52
|
};
|
|
52
|
-
//# sourceMappingURL=component-
|
|
53
|
+
//# sourceMappingURL=component-DvhXFXbi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-DvhXFXbi.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 { shellApi } from \"../../api\";\nimport { ImportDataManagerModal } from \"./component\";\n\nexport const template = (props: ImportDataManagerModal) => {\n return html`\n <div class=\"container\">\n <div class=\"content\">\n <primaria-region name=\"${shellApi.regionManager.regions.shell.importDataActivityHistory}\"></primaria-region>\n <primaria-region name=\"${shellApi.regionManager.regions.shell.importData}\"></primaria-region>\n </div>\n <div class=\"footer\">\n <dss-button\n label=\"${translate(\"importDataManager.actions.cancel\")}\"\n @click=\"${() => {\n props.cancel();\n }}\"\n size=\"md\"\n variant=\"secondary\"\n ></dss-button>\n <dss-button\n icon=\"add_circle\"\n label=\"${translate(\"importDataManager.actions.import\")}\"\n @click=\"${() => {\n props._accept();\n }}\"\n size=\"md\"\n variant=\"primary\"\n ></dss-button>\n </div>\n </div>\n `;\n};\n","import { LitElement, css, html, unsafeCSS } from \"lit\";\nimport { customElement } from \"lit/decorators.js\";\nimport { ConfirmationContentProps } from \"../../interaction-service\";\nimport styles from \"./styles.css?inline\";\nimport { template } from \"./template\";\n\n@customElement(\"import-data-manager-modal\")\nexport class ImportDataManagerModal extends LitElement implements ConfirmationContentProps<undefined, undefined> {\n data: undefined;\n setResult: (result: undefined) => void;\n setIsValid: (isValid: boolean) => void;\n confirm: () => void;\n // Injectat pel servei d'interacció igual que la resta; faltava des que es va afegir a la\n // interfície.\n confirmResult: (result: undefined) => void;\n cancel: () => void;\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","shellApi","translate","ImportDataManagerModal","LitElement","css","unsafeCSS","styles","__decorateClass","customElement"],"mappings":";67BAKaA,IAAW,CAACC,MAChBC;AAAAA;AAAAA;AAAAA,iCAGwBC,EAAS,cAAc,QAAQ,MAAM,yBAAyB;AAAA,iCAC9DA,EAAS,cAAc,QAAQ,MAAM,UAAU;AAAA;AAAA;AAAA;AAAA,mBAI7DC,EAAU,kCAAkC,CAAC;AAAA,oBAC5C,MAAM;AACd,EAAAH,EAAM,OAAA;AACR,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAMQG,EAAU,kCAAkC,CAAC;AAAA,oBAC5C,MAAM;AACd,EAAAH,EAAM,QAAA;AACR,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;ACnBJ,IAAMI,IAAN,cAAqCC,EAAqE;AAAA,EAA1G,cAAA;AAAA,UAAA,GAAA,SAAA,GAkBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AArBaK,EAcJ,SAASE;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAfVJ,IAANK,EAAA;AAAA,EADNC,EAAc,2BAA2B;AAAA,GAC7BN,CAAA;"}
|
|
@@ -8978,7 +8978,7 @@ class ImportDataManagerImpl {
|
|
|
8978
8978
|
async import(W, te) {
|
|
8979
8979
|
this.currentImporterId = W, this.currentImportParams = te, this.selectedItems = {}, this.pluginTexts = {};
|
|
8980
8980
|
try {
|
|
8981
|
-
const { ImportDataManagerModal: oe } = await import("./component-
|
|
8981
|
+
const { ImportDataManagerModal: oe } = await import("./component-DvhXFXbi.js"), { confirmed: ne } = await this.interactionService.confirm(
|
|
8982
8982
|
void 0,
|
|
8983
8983
|
{ component: oe },
|
|
8984
8984
|
{
|
|
@@ -9081,7 +9081,7 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
|
|
|
9081
9081
|
let bootstrappedPlugins = [];
|
|
9082
9082
|
const CORE_FIRST_ID = "activity-history", bundledActivityHistory = {
|
|
9083
9083
|
pluginId: CORE_FIRST_ID,
|
|
9084
|
-
importer: () => import("./plugin-
|
|
9084
|
+
importer: () => import("./plugin-GzwtrpSe.js")
|
|
9085
9085
|
}, bootstrapPlugins = async (X, W) => {
|
|
9086
9086
|
const te = X ?? [], oe = te.filter((ue) => ue.pluginId === CORE_FIRST_ID), ne = te.filter((ue) => ue.pluginId !== CORE_FIRST_ID), re = oe.length ? oe : [bundledActivityHistory], de = await p$d(
|
|
9087
9087
|
re,
|
|
@@ -45599,4 +45599,4 @@ export {
|
|
|
45599
45599
|
createEcapEventManager as y,
|
|
45600
45600
|
ExitShell as z
|
|
45601
45601
|
};
|
|
45602
|
-
//# sourceMappingURL=index-
|
|
45602
|
+
//# sourceMappingURL=index-Pwqfd9a_.js.map
|