@uxland/primary-shell 7.47.6 → 7.49.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-DZoGhnlq.js +68 -0
- package/dist/component-DZoGhnlq.js.map +1 -0
- package/dist/{index-DSO8ViDu.js → index-hcyyv0bc.js} +6 -5
- package/dist/index-hcyyv0bc.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.umd.cjs +51 -47
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{plugin-DohFiwSH.js → plugin-CEAhs2O3.js} +1144 -1164
- package/dist/plugin-CEAhs2O3.js.map +1 -0
- package/dist/primary/shell/src/locales.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/import-data-manager/component/styles.css +25 -32
- package/src/api/import-data-manager/component/template.ts +16 -0
- package/src/locales.ts +1 -0
- package/dist/component-CQxI1o5p.js +0 -52
- package/dist/component-CQxI1o5p.js.map +0 -1
- package/dist/index-DSO8ViDu.js.map +0 -1
- package/dist/plugin-DohFiwSH.js.map +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { s as i, u as l, k as d, h as g, r as p, b as m, t as h } from "./index-hcyyv0bc.js";
|
|
2
|
+
const u = ".container{background-color:#fff;display:flex;flex-direction:column;min-width:500px;width:95vw;height:95vh;border-radius:var(--dss-radius-sm);overflow:hidden}.header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;color:#000;padding:var(--dss-spacing-sm)}.header__title{grid-column:2;text-align:center}.header__close{grid-column:3;justify-self:end}.content{display:grid;flex:1;min-height:0;grid-template-columns:50% 50%;padding:16px}.content>primaria-region{width:100%;height:100%;min-height:0}.content primaria-region>div{width:100%;height:100%;border-radius:8px;padding:0 16px;box-sizing:border-box}.content>primaria-region>div{display:flex;flex-direction:column;gap:16px;overflow-y:auto}.content>primaria-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)}", v = (a) => d`
|
|
3
|
+
<div class="container">
|
|
4
|
+
<div class="header">
|
|
5
|
+
<dss-typography class="header__title" tag="h2" variant="headline-4">
|
|
6
|
+
${i("importDataManager.title")}
|
|
7
|
+
</dss-typography>
|
|
8
|
+
<dss-icon-button
|
|
9
|
+
class="header__close"
|
|
10
|
+
icon="close"
|
|
11
|
+
size="lg"
|
|
12
|
+
variant="neutral"
|
|
13
|
+
label="${i("importDataManager.actions.close")}"
|
|
14
|
+
@onClick="${() => {
|
|
15
|
+
a.cancel();
|
|
16
|
+
}}"
|
|
17
|
+
></dss-icon-button>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="content">
|
|
20
|
+
<primaria-region name="${l.regionManager.regions.shell.importDataActivityHistory}"></primaria-region>
|
|
21
|
+
<primaria-region name="${l.regionManager.regions.shell.importData}"></primaria-region>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="footer">
|
|
24
|
+
<dss-button
|
|
25
|
+
label="${i("importDataManager.actions.cancel")}"
|
|
26
|
+
@click="${() => {
|
|
27
|
+
a.cancel();
|
|
28
|
+
}}"
|
|
29
|
+
size="md"
|
|
30
|
+
variant="secondary"
|
|
31
|
+
></dss-button>
|
|
32
|
+
<dss-button
|
|
33
|
+
icon="add_circle"
|
|
34
|
+
label="${i("importDataManager.actions.import")}"
|
|
35
|
+
@click="${() => {
|
|
36
|
+
a._accept();
|
|
37
|
+
}}"
|
|
38
|
+
size="md"
|
|
39
|
+
variant="primary"
|
|
40
|
+
></dss-button>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
`;
|
|
44
|
+
var f = Object.getOwnPropertyDescriptor, x = (a, n, c, s) => {
|
|
45
|
+
for (var e = s > 1 ? void 0 : s ? f(n, c) : n, r = a.length - 1, o; r >= 0; r--)
|
|
46
|
+
(o = a[r]) && (e = o(e) || e);
|
|
47
|
+
return e;
|
|
48
|
+
};
|
|
49
|
+
let t = class extends g {
|
|
50
|
+
constructor() {
|
|
51
|
+
super(...arguments), this._accept = () => {
|
|
52
|
+
this.confirm();
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
return d`${v(this)}`;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
t.styles = m`
|
|
60
|
+
${p(u)}
|
|
61
|
+
`;
|
|
62
|
+
t = x([
|
|
63
|
+
h("import-data-manager-modal")
|
|
64
|
+
], t);
|
|
65
|
+
export {
|
|
66
|
+
t as ImportDataManagerModal
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=component-DZoGhnlq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-DZoGhnlq.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=\"header\">\n <dss-typography class=\"header__title\" tag=\"h2\" variant=\"headline-4\">\n ${translate(\"importDataManager.title\")}\n </dss-typography>\n <dss-icon-button\n class=\"header__close\"\n icon=\"close\"\n size=\"lg\"\n variant=\"neutral\"\n label=\"${translate(\"importDataManager.actions.close\")}\"\n @onClick=\"${() => {\n props.cancel();\n }}\"\n ></dss-icon-button>\n </div>\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","translate","shellApi","ImportDataManagerModal","LitElement","css","unsafeCSS","styles","__decorateClass","customElement"],"mappings":";m8BAKaA,IAAW,CAACC,MAChBC;AAAAA;AAAAA;AAAAA;AAAAA,YAIGC,EAAU,yBAAyB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAO7BA,EAAU,iCAAiC,CAAC;AAAA,sBACzC,MAAM;AAChB,EAAAF,EAAM,OAAA;AACR,CAAC;AAAA;AAAA;AAAA;AAAA,iCAIsBG,EAAS,cAAc,QAAQ,MAAM,yBAAyB;AAAA,iCAC9DA,EAAS,cAAc,QAAQ,MAAM,UAAU;AAAA;AAAA;AAAA;AAAA,mBAI7DD,EAAU,kCAAkC,CAAC;AAAA,oBAC5C,MAAM;AACd,EAAAF,EAAM,OAAA;AACR,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAMQE,EAAU,kCAAkC,CAAC;AAAA,oBAC5C,MAAM;AACd,EAAAF,EAAM,QAAA;AACR,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;AClCJ,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;"}
|
|
@@ -6343,6 +6343,7 @@ const useLocalization = async (X) => {
|
|
|
6343
6343
|
title: "Importar dades",
|
|
6344
6344
|
actions: {
|
|
6345
6345
|
cancel: "Cancel·lar",
|
|
6346
|
+
close: "Tancar",
|
|
6346
6347
|
import: "Importar dades"
|
|
6347
6348
|
}
|
|
6348
6349
|
}
|
|
@@ -8978,7 +8979,7 @@ class ImportDataManagerImpl {
|
|
|
8978
8979
|
async import(W, te) {
|
|
8979
8980
|
this.currentImporterId = W, this.currentImportParams = te, this.selectedItems = {}, this.pluginTexts = {};
|
|
8980
8981
|
try {
|
|
8981
|
-
const { ImportDataManagerModal: oe } = await import("./component-
|
|
8982
|
+
const { ImportDataManagerModal: oe } = await import("./component-DZoGhnlq.js"), { confirmed: ne } = await this.interactionService.confirm(
|
|
8982
8983
|
void 0,
|
|
8983
8984
|
{ component: oe },
|
|
8984
8985
|
{
|
|
@@ -9081,7 +9082,7 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
|
|
|
9081
9082
|
let bootstrappedPlugins = [];
|
|
9082
9083
|
const CORE_FIRST_ID = "activity-history", bundledActivityHistory = {
|
|
9083
9084
|
pluginId: CORE_FIRST_ID,
|
|
9084
|
-
importer: () => import("./plugin-
|
|
9085
|
+
importer: () => import("./plugin-CEAhs2O3.js")
|
|
9085
9086
|
}, bootstrapPlugins = async (X, W) => {
|
|
9086
9087
|
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
9088
|
re,
|
|
@@ -45590,13 +45591,13 @@ export {
|
|
|
45590
45591
|
e$T as p,
|
|
45591
45592
|
ae as q,
|
|
45592
45593
|
r$L as r,
|
|
45593
|
-
|
|
45594
|
+
translate as s,
|
|
45594
45595
|
t$z as t,
|
|
45595
|
-
|
|
45596
|
+
shellApi as u,
|
|
45596
45597
|
PrimariaNavItem as v,
|
|
45597
45598
|
QuickActionItem as w,
|
|
45598
45599
|
PrimariaRegion as x,
|
|
45599
45600
|
createEcapEventManager as y,
|
|
45600
45601
|
ExitShell as z
|
|
45601
45602
|
};
|
|
45602
|
-
//# sourceMappingURL=index-
|
|
45603
|
+
//# sourceMappingURL=index-hcyyv0bc.js.map
|