@uxland/primary-shell 7.45.4 → 7.45.6
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-DFDYRu1A.js → component-YgE6f0y2.js} +2 -2
- package/dist/{component-DFDYRu1A.js.map → component-YgE6f0y2.js.map} +1 -1
- package/dist/{index-B9r6-Xmj.js → index-s4j8zpRH.js} +17 -3
- package/dist/{index-B9r6-Xmj.js.map → index-s4j8zpRH.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +4 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s, t as d, k as l, h as p, r as m, i as g, a as h } from "./index-
|
|
1
|
+
import { s, t as d, k as l, h as p, r as m, i as g, a as h } from "./index-s4j8zpRH.js";
|
|
2
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
3
|
<div class="container">
|
|
4
4
|
<div class="content">
|
|
@@ -49,4 +49,4 @@ t = x([
|
|
|
49
49
|
export {
|
|
50
50
|
t as ImportDataManagerModal
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=component-
|
|
52
|
+
//# sourceMappingURL=component-YgE6f0y2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-
|
|
1
|
+
{"version":3,"file":"component-YgE6f0y2.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 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,GAeL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AAlBaK,EAWJ,SAASE;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAZVJ,IAANK,EAAA;AAAA,EADNC,EAAc,2BAA2B;AAAA,GAC7BN,CAAA;"}
|
|
@@ -9842,7 +9842,7 @@ class ImportDataManagerImpl {
|
|
|
9842
9842
|
async import(W, X) {
|
|
9843
9843
|
this.currentImporterId = W, this.currentImportParams = X, this.selectedItems = {}, this.pluginTexts = {};
|
|
9844
9844
|
try {
|
|
9845
|
-
const { ImportDataManagerModal: te } = await import("./component-
|
|
9845
|
+
const { ImportDataManagerModal: te } = await import("./component-YgE6f0y2.js"), { confirmed: re } = await this.interactionService.confirm(
|
|
9846
9846
|
void 0,
|
|
9847
9847
|
{ component: te },
|
|
9848
9848
|
{
|
|
@@ -17067,6 +17067,7 @@ const isToday = (J) => {
|
|
|
17067
17067
|
type="default"
|
|
17068
17068
|
multiple
|
|
17069
17069
|
placeholder="${translate("importer.diagnostics")}"
|
|
17070
|
+
dropdownStyle="max-height: 300px; overflow-y: auto;"
|
|
17070
17071
|
.elements=${J.diagnosticsOptions()}
|
|
17071
17072
|
@value-changed=${(X) => J._onDiagnosticsChanged(X)}
|
|
17072
17073
|
></dss-form-select>
|
|
@@ -17163,6 +17164,19 @@ var __defProp$h = Object.defineProperty, __getOwnPropDesc$6 = Object.getOwnPrope
|
|
|
17163
17164
|
(ne = J[oe]) && (re = (te ? ne(W, X, re) : ne(re)) || re);
|
|
17164
17165
|
return te && re && __defProp$h(W, X, re), re;
|
|
17165
17166
|
};
|
|
17167
|
+
const escapeHtml = (J) => {
|
|
17168
|
+
const W = document.createElement("div");
|
|
17169
|
+
return W.textContent = J, W.innerHTML;
|
|
17170
|
+
}, buildSelectionText = (J) => {
|
|
17171
|
+
const W = [], X = [];
|
|
17172
|
+
for (const te of J) {
|
|
17173
|
+
const re = te.content?.plainText?.trim(), oe = te.content?.html?.trim();
|
|
17174
|
+
re && W.push(re), oe ? X.push(oe) : re && X.push(`<p>${escapeHtml(re)}</p>`);
|
|
17175
|
+
}
|
|
17176
|
+
return { raw: W.join(`
|
|
17177
|
+
|
|
17178
|
+
`), html: X.join("") };
|
|
17179
|
+
};
|
|
17166
17180
|
let ActivityHistoryImporter = class extends h$p {
|
|
17167
17181
|
constructor() {
|
|
17168
17182
|
super(...arguments), this.historyGroups = [], this.searchString = "", this.rulesByCollectionId = {}, this.todayOnly = !1, this.selectedDiagnosticCodes = [], this.availableDiagnostics = [], this.filteredGroups = [], this.totalCount = 0, this.selectedIds = [], this._virtualScrollerState = INITIAL_SCROLLER_STATE, this._scrollerController = new ScrollerController(), this._searchTimeout = null, this._didInitialPreselect = !1, this._measureElement = (J) => {
|
|
@@ -17334,7 +17348,7 @@ let ActivityHistoryImporter = class extends h$p {
|
|
|
17334
17348
|
this.api.importDataManager.selectItems({
|
|
17335
17349
|
pluginId: pluginName,
|
|
17336
17350
|
data: W,
|
|
17337
|
-
text:
|
|
17351
|
+
text: buildSelectionText(flattenGroupItems(W))
|
|
17338
17352
|
});
|
|
17339
17353
|
}
|
|
17340
17354
|
};
|
|
@@ -53700,4 +53714,4 @@ export {
|
|
|
53700
53714
|
primariaApiFactory as y,
|
|
53701
53715
|
PrimariaContentSwitcher as z
|
|
53702
53716
|
};
|
|
53703
|
-
//# sourceMappingURL=index-
|
|
53717
|
+
//# sourceMappingURL=index-s4j8zpRH.js.map
|