@uxland/primary-shell 7.48.0 → 7.49.1
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-ftY27Sve.js +68 -0
- package/dist/component-ftY27Sve.js.map +1 -0
- package/dist/{index-Pwqfd9a_.js → index-BjHmySvD.js} +6 -5
- package/dist/index-BjHmySvD.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.umd.cjs +117 -104
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{plugin-GzwtrpSe.js → plugin-DS8LOzZZ.js} +1537 -1486
- package/dist/plugin-DS8LOzZZ.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 +22 -24
- package/src/api/import-data-manager/component/template.ts +15 -0
- package/src/locales.ts +1 -0
- package/dist/component-DvhXFXbi.js +0 -53
- package/dist/component-DvhXFXbi.js.map +0 -1
- package/dist/index-Pwqfd9a_.js.map +0 -1
- package/dist/plugin-GzwtrpSe.js.map +0 -1
package/package.json
CHANGED
|
@@ -9,28 +9,31 @@
|
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
/*
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
/* Three columns so the title is centred on the modal, not on the space left
|
|
13
|
+
over by the close button. */
|
|
14
|
+
.header {
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-template-columns: 1fr auto 1fr;
|
|
15
17
|
align-items: center;
|
|
16
|
-
justify-content: space-between;
|
|
17
|
-
text-align: center;
|
|
18
18
|
color: black;
|
|
19
19
|
padding: var(--dss-spacing-sm);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.header__title {
|
|
23
|
+
grid-column: 2;
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
} */
|
|
27
|
+
.header__close {
|
|
28
|
+
grid-column: 3;
|
|
29
|
+
justify-self: end;
|
|
30
|
+
}
|
|
27
31
|
|
|
28
32
|
.content{
|
|
29
33
|
display: grid;
|
|
30
34
|
flex: 1;
|
|
31
35
|
min-height: 0;
|
|
32
36
|
grid-template-columns: 50% 50%;
|
|
33
|
-
gap: 16px;
|
|
34
37
|
padding: 16px;
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -43,28 +46,23 @@
|
|
|
43
46
|
.content primaria-region > div {
|
|
44
47
|
width: 100%;
|
|
45
48
|
height: 100%;
|
|
46
|
-
border: 1px solid var(--color-neutral-200);
|
|
47
49
|
border-radius: 8px;
|
|
48
|
-
padding: 16px;
|
|
50
|
+
padding: 0 16px;
|
|
49
51
|
box-sizing: border-box;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
/*
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/* Left column: vertical stack of accordion widgets. Each one keeps its natural
|
|
58
|
-
height and bounds its own inner scroll, so the column scrolls as a whole —
|
|
59
|
-
same as the right column. */
|
|
60
|
-
.content > primaria-region[name="import-data-activity-history-region"] > div {
|
|
54
|
+
/* Both columns are a vertical stack of injected views, 16px apart, that scrolls
|
|
55
|
+
as a whole. Each view keeps its natural height and bounds its own inner
|
|
56
|
+
scroll, and must not shrink — otherwise the column squeezes the views instead
|
|
57
|
+
of scrolling. */
|
|
58
|
+
.content > primaria-region > div {
|
|
61
59
|
display: flex;
|
|
62
60
|
flex-direction: column;
|
|
63
61
|
gap: 16px;
|
|
64
62
|
overflow-y: auto;
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
.content > primaria-region
|
|
65
|
+
.content > primaria-region > div > * {
|
|
68
66
|
flex-shrink: 0;
|
|
69
67
|
}
|
|
70
68
|
|
|
@@ -6,6 +6,21 @@ import { ImportDataManagerModal } from "./component";
|
|
|
6
6
|
export const template = (props: ImportDataManagerModal) => {
|
|
7
7
|
return html`
|
|
8
8
|
<div class="container">
|
|
9
|
+
<div class="header">
|
|
10
|
+
<dss-typography class="header__title" tag="h2" variant="headline-4">
|
|
11
|
+
${translate("importDataManager.title")}
|
|
12
|
+
</dss-typography>
|
|
13
|
+
<dss-icon-button
|
|
14
|
+
class="header__close"
|
|
15
|
+
icon="close"
|
|
16
|
+
size="lg"
|
|
17
|
+
variant="neutral"
|
|
18
|
+
label="${translate("importDataManager.actions.close")}"
|
|
19
|
+
@onClick="${() => {
|
|
20
|
+
props.cancel();
|
|
21
|
+
}}"
|
|
22
|
+
></dss-icon-button>
|
|
23
|
+
</div>
|
|
9
24
|
<div class="content">
|
|
10
25
|
<primaria-region name="${shellApi.regionManager.regions.shell.importDataActivityHistory}"></primaria-region>
|
|
11
26
|
<primaria-region name="${shellApi.regionManager.regions.shell.importData}"></primaria-region>
|
package/src/locales.ts
CHANGED
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
<div class="container">
|
|
4
|
-
<div class="content">
|
|
5
|
-
<primaria-region name="${s.regionManager.regions.shell.importDataActivityHistory}"></primaria-region>
|
|
6
|
-
<primaria-region name="${s.regionManager.regions.shell.importData}"></primaria-region>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="footer">
|
|
9
|
-
<dss-button
|
|
10
|
-
label="${d("importDataManager.actions.cancel")}"
|
|
11
|
-
@click="${() => {
|
|
12
|
-
r.cancel();
|
|
13
|
-
}}"
|
|
14
|
-
size="md"
|
|
15
|
-
variant="secondary"
|
|
16
|
-
></dss-button>
|
|
17
|
-
<dss-button
|
|
18
|
-
icon="add_circle"
|
|
19
|
-
label="${d("importDataManager.actions.import")}"
|
|
20
|
-
@click="${() => {
|
|
21
|
-
r._accept();
|
|
22
|
-
}}"
|
|
23
|
-
size="md"
|
|
24
|
-
variant="primary"
|
|
25
|
-
></dss-button>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
`;
|
|
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;
|
|
33
|
-
};
|
|
34
|
-
let t = class extends p {
|
|
35
|
-
constructor() {
|
|
36
|
-
super(...arguments), this._accept = () => {
|
|
37
|
-
this.confirm();
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
return c`${u(this)}`;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
t.styles = m`
|
|
45
|
-
${g(v)}
|
|
46
|
-
`;
|
|
47
|
-
t = x([
|
|
48
|
-
h("import-data-manager-modal")
|
|
49
|
-
], t);
|
|
50
|
-
export {
|
|
51
|
-
t as ImportDataManagerModal
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=component-DvhXFXbi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;"}
|