@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
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
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
.header__title {
|
|
23
|
+
grid-column: 2;
|
|
24
|
+
text-align: center;
|
|
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
|
-
grid-template-columns:
|
|
33
|
-
gap: 16px;
|
|
36
|
+
grid-template-columns: 50% 50%;
|
|
34
37
|
padding: 16px;
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -43,42 +46,32 @@
|
|
|
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 multiple views with a gap. The last view
|
|
58
|
-
takes the remaining space and handles its own scroll; preceding views
|
|
59
|
-
keep their natural height. */
|
|
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
|
-
overflow:
|
|
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
|
|
|
71
|
-
.content > primaria-region[name="import-data-activity-history-region"] > div > *:last-child {
|
|
72
|
-
flex: 1;
|
|
73
|
-
min-height: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
69
|
.footer {
|
|
77
70
|
display: flex;
|
|
78
71
|
flex-direction: row;
|
|
79
72
|
align-items: center;
|
|
80
73
|
background: white;
|
|
81
|
-
justify-content:
|
|
74
|
+
justify-content: center;
|
|
82
75
|
gap: 12px;
|
|
83
76
|
height: 56px;
|
|
84
77
|
border-top: 1px solid var(--color-neutral-100);
|
|
@@ -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>
|
|
@@ -20,6 +35,7 @@ export const template = (props: ImportDataManagerModal) => {
|
|
|
20
35
|
variant="secondary"
|
|
21
36
|
></dss-button>
|
|
22
37
|
<dss-button
|
|
38
|
+
icon="add_circle"
|
|
23
39
|
label="${translate("importDataManager.actions.import")}"
|
|
24
40
|
@click="${() => {
|
|
25
41
|
props._accept();
|
package/src/locales.ts
CHANGED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { s, u as d, k as l, h as p, r as m, b as g, t as h } from "./index-DSO8ViDu.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:1fr 1fr;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:hidden}.content>primaria-region[name=import-data-activity-history-region]>div>*{flex-shrink:0}.content>primaria-region[name=import-data-activity-history-region]>div>*:last-child{flex:1;min-height:0}.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)}", f = (i) => l`
|
|
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
|
-
i.cancel();
|
|
13
|
-
}}"
|
|
14
|
-
size="md"
|
|
15
|
-
variant="secondary"
|
|
16
|
-
></dss-button>
|
|
17
|
-
<dss-button
|
|
18
|
-
label="${d("importDataManager.actions.import")}"
|
|
19
|
-
@click="${() => {
|
|
20
|
-
i._accept();
|
|
21
|
-
}}"
|
|
22
|
-
size="md"
|
|
23
|
-
variant="primary"
|
|
24
|
-
></dss-button>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
`;
|
|
28
|
-
var u = Object.getOwnPropertyDescriptor, x = (i, e, c, n) => {
|
|
29
|
-
for (var r = n > 1 ? void 0 : n ? u(e, c) : e, a = i.length - 1, o; a >= 0; a--)
|
|
30
|
-
(o = i[a]) && (r = o(r) || r);
|
|
31
|
-
return r;
|
|
32
|
-
};
|
|
33
|
-
let t = class extends p {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(...arguments), this._accept = () => {
|
|
36
|
-
this.confirm();
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
return l`${f(this)}`;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
t.styles = g`
|
|
44
|
-
${m(v)}
|
|
45
|
-
`;
|
|
46
|
-
t = x([
|
|
47
|
-
h("import-data-manager-modal")
|
|
48
|
-
], t);
|
|
49
|
-
export {
|
|
50
|
-
t as ImportDataManagerModal
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=component-CQxI1o5p.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-CQxI1o5p.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 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":";kiCAKaA,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,mBAKQG,EAAU,kCAAkC,CAAC;AAAA,oBAC5C,MAAM;AACd,EAAAH,EAAM,QAAA;AACR,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;AClBJ,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;"}
|