@uxland/primary-shell 5.6.4 → 5.6.5
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/index.js +109 -65
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +43 -30
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/is-grouping-busy/component.d.ts +6 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/is-grouping-busy/template.d.ts +3 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +5 -0
- package/package.json +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/add/add-history-item/handler.ts +2 -2
- package/src/internal-plugins/activity-history/activity-history-item/add/add-history-items/handler.ts +2 -2
- package/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/is-grouping-busy/component.ts +15 -0
- package/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/is-grouping-busy/styles.css +8 -0
- package/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/is-grouping-busy/template.ts +10 -0
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/activity-history-timeline.ts +12 -5
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/template.ts +20 -13
- package/src/internal-plugins/activity-history/localization.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -8950,7 +8950,7 @@ const useLocalization = async (te) => {
|
|
|
8950
8950
|
}
|
|
8951
8951
|
}
|
|
8952
8952
|
}
|
|
8953
|
-
}, styles$
|
|
8953
|
+
}, styles$o = ".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}";
|
|
8954
8954
|
/**
|
|
8955
8955
|
* @license
|
|
8956
8956
|
* Copyright 2017 Google LLC
|
|
@@ -9001,7 +9001,7 @@ const Rt = e$L(class extends i$v {
|
|
|
9001
9001
|
}
|
|
9002
9002
|
return R$3;
|
|
9003
9003
|
}
|
|
9004
|
-
}), template$
|
|
9004
|
+
}), template$p = (te) => ke$1`
|
|
9005
9005
|
<div
|
|
9006
9006
|
class=${Rt({ item: !0, active: te.isActive })}
|
|
9007
9007
|
@click=${te.config.callbackFn}
|
|
@@ -9018,10 +9018,10 @@ const Rt = e$L(class extends i$v {
|
|
|
9018
9018
|
</dss-tooltip>`}
|
|
9019
9019
|
</div>
|
|
9020
9020
|
`;
|
|
9021
|
-
var __defProp$
|
|
9021
|
+
var __defProp$x = Object.defineProperty, __decorateClass$x = (te, J, X, re) => {
|
|
9022
9022
|
for (var ne = void 0, oe = te.length - 1, de; oe >= 0; oe--)
|
|
9023
9023
|
(de = te[oe]) && (ne = de(J, X, ne) || ne);
|
|
9024
|
-
return ne && __defProp$
|
|
9024
|
+
return ne && __defProp$x(J, X, ne), ne;
|
|
9025
9025
|
};
|
|
9026
9026
|
const Ji = class Ji extends k$7(h$q) {
|
|
9027
9027
|
constructor(J) {
|
|
@@ -9059,23 +9059,23 @@ const Ji = class Ji extends k$7(h$q) {
|
|
|
9059
9059
|
this.subscriptions.forEach((J) => J.dispose());
|
|
9060
9060
|
}
|
|
9061
9061
|
render() {
|
|
9062
|
-
return ke$1`${template$
|
|
9062
|
+
return ke$1`${template$p(this)}`;
|
|
9063
9063
|
}
|
|
9064
9064
|
};
|
|
9065
9065
|
Ji.styles = i$y`
|
|
9066
|
-
${r$H(styles$
|
|
9066
|
+
${r$H(styles$o)}
|
|
9067
9067
|
`;
|
|
9068
9068
|
let PrimariaNavItem = Ji;
|
|
9069
|
-
__decorateClass$
|
|
9069
|
+
__decorateClass$x([
|
|
9070
9070
|
n$x({ type: Number })
|
|
9071
9071
|
], PrimariaNavItem.prototype, "containerWidth");
|
|
9072
|
-
__decorateClass$
|
|
9072
|
+
__decorateClass$x([
|
|
9073
9073
|
r$E()
|
|
9074
9074
|
], PrimariaNavItem.prototype, "showText");
|
|
9075
|
-
__decorateClass$
|
|
9075
|
+
__decorateClass$x([
|
|
9076
9076
|
r$E()
|
|
9077
9077
|
], PrimariaNavItem.prototype, "isActive");
|
|
9078
|
-
__decorateClass$
|
|
9078
|
+
__decorateClass$x([
|
|
9079
9079
|
n$x({ type: Object })
|
|
9080
9080
|
], PrimariaNavItem.prototype, "config");
|
|
9081
9081
|
const shellRegions = {
|
|
@@ -9168,7 +9168,7 @@ const container$1 = new Container(), { lazyInject: lazyInject$1 } = getDecorator
|
|
|
9168
9168
|
primaryApi: Symbol.for("primaryApi"),
|
|
9169
9169
|
store: Symbol.for("store"),
|
|
9170
9170
|
localeManager: Symbol.for("localeManager")
|
|
9171
|
-
}, styles$
|
|
9171
|
+
}, styles$n = ":host{min-height:1px;height:100%;width:100%;display:flex}iframe{border:none;flex:1;height:100%}.pdf-container{display:flex;justify-content:center;align-items:center;height:100%;flex:1;border:1px solid #ccc}.no-pdf{text-align:center;color:#666;font-size:1.2rem;font-weight:700}";
|
|
9172
9172
|
function base64ToBlob(te, J = "application/octet-stream") {
|
|
9173
9173
|
const X = window.atob(te), re = X.length, ne = new Uint8Array(re);
|
|
9174
9174
|
for (let oe = 0; oe < re; oe++)
|
|
@@ -9181,10 +9181,10 @@ const createUrlFromBase64 = (te, J) => {
|
|
|
9181
9181
|
return URL.createObjectURL(X);
|
|
9182
9182
|
}
|
|
9183
9183
|
};
|
|
9184
|
-
var __defProp$
|
|
9184
|
+
var __defProp$w = Object.defineProperty, __decorateClass$w = (te, J, X, re) => {
|
|
9185
9185
|
for (var ne = void 0, oe = te.length - 1, de; oe >= 0; oe--)
|
|
9186
9186
|
(de = te[oe]) && (ne = de(J, X, ne) || ne);
|
|
9187
|
-
return ne && __defProp$
|
|
9187
|
+
return ne && __defProp$w(J, X, ne), ne;
|
|
9188
9188
|
};
|
|
9189
9189
|
const Yi = class Yi extends h$q {
|
|
9190
9190
|
constructor() {
|
|
@@ -9252,15 +9252,15 @@ const Yi = class Yi extends h$q {
|
|
|
9252
9252
|
`;
|
|
9253
9253
|
}
|
|
9254
9254
|
};
|
|
9255
|
-
Yi.styles = i$y`${r$H(styles$
|
|
9255
|
+
Yi.styles = i$y`${r$H(styles$n)}`;
|
|
9256
9256
|
let PdfVisor = Yi;
|
|
9257
|
-
__decorateClass$
|
|
9257
|
+
__decorateClass$w([
|
|
9258
9258
|
lazyInject$1(TYPES$1.primaryApi)
|
|
9259
9259
|
], PdfVisor.prototype, "api");
|
|
9260
|
-
__decorateClass$
|
|
9260
|
+
__decorateClass$w([
|
|
9261
9261
|
n$x({ type: Array })
|
|
9262
9262
|
], PdfVisor.prototype, "pdfList");
|
|
9263
|
-
__decorateClass$
|
|
9263
|
+
__decorateClass$w([
|
|
9264
9264
|
n$x({ type: Array })
|
|
9265
9265
|
], PdfVisor.prototype, "activePdfs");
|
|
9266
9266
|
const registerPdfViewerNavItem = () => {
|
|
@@ -9285,7 +9285,7 @@ const registerPdfViewerNavItem = () => {
|
|
|
9285
9285
|
return Promise.resolve(te);
|
|
9286
9286
|
}
|
|
9287
9287
|
});
|
|
9288
|
-
}, styles$
|
|
9288
|
+
}, styles$m = ":host{width:250px;gap:8px}.pdf-item{display:flex;align-items:flex-start;padding:8px;gap:8px;color:#000;border-bottom:1px solid var(--color-neutral-100)}.header-icons{display:flex;gap:8px}.container{gap:8px;display:flex;flex-direction:column}";
|
|
9289
9289
|
/**
|
|
9290
9290
|
* @license
|
|
9291
9291
|
* Copyright 2020 Google LLC
|
|
@@ -9376,7 +9376,7 @@ const Jt = (te, J, X) => {
|
|
|
9376
9376
|
}
|
|
9377
9377
|
return this.ut = de, dt(te, he), R$3;
|
|
9378
9378
|
}
|
|
9379
|
-
}), template$
|
|
9379
|
+
}), template$o = (te) => {
|
|
9380
9380
|
const J = (X) => ke$1`
|
|
9381
9381
|
<div class="pdf-item">
|
|
9382
9382
|
<dss-checkbox @onChange=${() => te.setActivePdf(X.id)}>
|
|
@@ -9405,17 +9405,17 @@ const Jt = (te, J, X) => {
|
|
|
9405
9405
|
</div>
|
|
9406
9406
|
`;
|
|
9407
9407
|
};
|
|
9408
|
-
var __defProp$
|
|
9408
|
+
var __defProp$v = Object.defineProperty, __decorateClass$v = (te, J, X, re) => {
|
|
9409
9409
|
for (var ne = void 0, oe = te.length - 1, de; oe >= 0; oe--)
|
|
9410
9410
|
(de = te[oe]) && (ne = de(J, X, ne) || ne);
|
|
9411
|
-
return ne && __defProp$
|
|
9411
|
+
return ne && __defProp$v(J, X, ne), ne;
|
|
9412
9412
|
};
|
|
9413
9413
|
const Ki = class Ki extends h$q {
|
|
9414
9414
|
constructor() {
|
|
9415
9415
|
super(...arguments), this.activePdfs = [];
|
|
9416
9416
|
}
|
|
9417
9417
|
render() {
|
|
9418
|
-
return template$
|
|
9418
|
+
return template$o(this);
|
|
9419
9419
|
}
|
|
9420
9420
|
removePdf(J) {
|
|
9421
9421
|
this.dispatchEvent(
|
|
@@ -9433,13 +9433,13 @@ const Ki = class Ki extends h$q {
|
|
|
9433
9433
|
}
|
|
9434
9434
|
};
|
|
9435
9435
|
Ki.styles = i$y`
|
|
9436
|
-
${r$H(styles$
|
|
9436
|
+
${r$H(styles$m)}
|
|
9437
9437
|
`;
|
|
9438
9438
|
let PdfSelector = Ki;
|
|
9439
|
-
__decorateClass$
|
|
9439
|
+
__decorateClass$v([
|
|
9440
9440
|
n$x({ type: Array })
|
|
9441
9441
|
], PdfSelector.prototype, "pdfList");
|
|
9442
|
-
__decorateClass$
|
|
9442
|
+
__decorateClass$v([
|
|
9443
9443
|
n$x({ type: Array })
|
|
9444
9444
|
], PdfSelector.prototype, "activePdfs");
|
|
9445
9445
|
class PdfViewerManager {
|
|
@@ -9469,7 +9469,7 @@ class PdfViewerManager {
|
|
|
9469
9469
|
registerPdfViewerNavItem();
|
|
9470
9470
|
}
|
|
9471
9471
|
}
|
|
9472
|
-
const createPdfViewerManager = (te, J) => new PdfViewerManager(te, J), styles$
|
|
9472
|
+
const createPdfViewerManager = (te, J) => new PdfViewerManager(te, J), styles$l = ".container{display:flex;flex-direction:column;gap:4px;align-items:center}.title{font-size:15px;line-height:24px;font-weight:600;color:var(--color-red-600)}.list{display:flex;flex-direction:column;gap:8px}", template$n = (te) => {
|
|
9473
9473
|
var J, X;
|
|
9474
9474
|
return ke$1`
|
|
9475
9475
|
<div class="container">
|
|
@@ -9481,11 +9481,11 @@ const createPdfViewerManager = (te, J) => new PdfViewerManager(te, J), styles$k
|
|
|
9481
9481
|
`;
|
|
9482
9482
|
}, Zi = class Zi extends h$q {
|
|
9483
9483
|
render() {
|
|
9484
|
-
return ke$1`${template$
|
|
9484
|
+
return ke$1`${template$n(this)}`;
|
|
9485
9485
|
}
|
|
9486
9486
|
};
|
|
9487
9487
|
Zi.styles = i$y`
|
|
9488
|
-
${r$H(styles$
|
|
9488
|
+
${r$H(styles$l)}
|
|
9489
9489
|
`;
|
|
9490
9490
|
let PluginBusyList = Zi;
|
|
9491
9491
|
class PluginBusyManagerImpl {
|
|
@@ -11115,17 +11115,17 @@ const container = new Container(), { lazyInject } = getDecorators(container), bi
|
|
|
11115
11115
|
}, unbindDeps = () => {
|
|
11116
11116
|
container.unbind(TYPES.primaryApi), container.unbind(TYPES.store);
|
|
11117
11117
|
}, addAsyncHistoryItemsCommand = "inject_async_history_items_request";
|
|
11118
|
-
var __defProp$
|
|
11119
|
-
for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$
|
|
11118
|
+
var __defProp$u = Object.defineProperty, __getOwnPropDesc$j = Object.getOwnPropertyDescriptor, __decorateClass$u = (te, J, X, re) => {
|
|
11119
|
+
for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$j(J, X) : J, oe = te.length - 1, de; oe >= 0; oe--)
|
|
11120
11120
|
(de = te[oe]) && (ne = (re ? de(J, X, ne) : de(ne)) || ne);
|
|
11121
|
-
return re && ne && __defProp$
|
|
11121
|
+
return re && ne && __defProp$u(J, X, ne), ne;
|
|
11122
11122
|
}, __decorateParam$5 = (te, J) => (X, re) => J(X, re, te);
|
|
11123
11123
|
let StoreBaseHandler = class {
|
|
11124
11124
|
constructor(te) {
|
|
11125
11125
|
this.store = te;
|
|
11126
11126
|
}
|
|
11127
11127
|
};
|
|
11128
|
-
StoreBaseHandler = __decorateClass$
|
|
11128
|
+
StoreBaseHandler = __decorateClass$u([
|
|
11129
11129
|
injectable(),
|
|
11130
11130
|
__decorateParam$5(0, inject(TYPES.store))
|
|
11131
11131
|
], StoreBaseHandler);
|
|
@@ -11134,7 +11134,7 @@ let ApiBaseHandler = class {
|
|
|
11134
11134
|
this.api = te;
|
|
11135
11135
|
}
|
|
11136
11136
|
};
|
|
11137
|
-
ApiBaseHandler = __decorateClass$
|
|
11137
|
+
ApiBaseHandler = __decorateClass$u([
|
|
11138
11138
|
injectable(),
|
|
11139
11139
|
__decorateParam$5(0, inject(TYPES.primaryApi))
|
|
11140
11140
|
], ApiBaseHandler);
|
|
@@ -11143,7 +11143,7 @@ let BaseHandler = class {
|
|
|
11143
11143
|
this.store = te, this.api = J;
|
|
11144
11144
|
}
|
|
11145
11145
|
};
|
|
11146
|
-
BaseHandler = __decorateClass$
|
|
11146
|
+
BaseHandler = __decorateClass$u([
|
|
11147
11147
|
injectable(),
|
|
11148
11148
|
__decorateParam$5(0, inject(TYPES.store)),
|
|
11149
11149
|
__decorateParam$5(1, inject(TYPES.primaryApi))
|
|
@@ -11233,12 +11233,12 @@ isValidDateString(te.date), ensureAreValidBasicActivityHistoryItems = (te) => {
|
|
|
11233
11233
|
class AddHistoryItemHandler extends StoreBaseHandler {
|
|
11234
11234
|
async handle(J) {
|
|
11235
11235
|
try {
|
|
11236
|
-
ensureAreValidBasicActivityHistoryItems([J.item]), this.store.dispatch(
|
|
11236
|
+
ensureAreValidBasicActivityHistoryItems([J.item]), handleAddDiagnosticsFilter([J.item], this.store), handleAddUpFilter([J.item], this.store), this.store.dispatch(
|
|
11237
11237
|
addActivityHistoryItem({
|
|
11238
11238
|
id: J.entityId,
|
|
11239
11239
|
item: J.item
|
|
11240
11240
|
})
|
|
11241
|
-
)
|
|
11241
|
+
);
|
|
11242
11242
|
} catch (X) {
|
|
11243
11243
|
console.log(X.message);
|
|
11244
11244
|
}
|
|
@@ -11265,6 +11265,11 @@ const initializeLocalization = async (te) => {
|
|
|
11265
11265
|
goToDate: "Anar a data",
|
|
11266
11266
|
busyEntriesLoading: "Carregant totes les entrades",
|
|
11267
11267
|
noResults: "Sense resultats. Modifica la cerca",
|
|
11268
|
+
noData: {
|
|
11269
|
+
title: "Sense dades",
|
|
11270
|
+
description: "No existeix informació per a mostrar"
|
|
11271
|
+
},
|
|
11272
|
+
isGrouping: "Creant agrupacions i preparant les dades...",
|
|
11268
11273
|
searchBarResults: "Resultats per",
|
|
11269
11274
|
actions: {
|
|
11270
11275
|
cronogram: "Cronograma",
|
|
@@ -11331,7 +11336,7 @@ const initializeLocalization = async (te) => {
|
|
|
11331
11336
|
}
|
|
11332
11337
|
}
|
|
11333
11338
|
}
|
|
11334
|
-
}, styles$
|
|
11339
|
+
}, styles$k = ".wrapper{display:flex;flex-direction:column;align-items:center;gap:24px;width:484px;height:auto}.wrapper .content-options{display:flex;flex-direction:column;align-items:center;gap:16px}.wrapper .selector-options{display:flex;flex-direction:row;gap:16px}.wrapper .content-date{display:flex;flex-direction:column;align-items:center;gap:16px;height:124px}.wrapper .datepicker-canvas{display:flex;flex-direction:row;justify-content:center;align-content:center;gap:16px}.wrapper .actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px}dss-datepicker{width:234px;height:48px;border-radius:var(--dss-radius-sm);border:var(--dss-border-width-sm);padding:var(--dss-spacing-sm);gap:var(--dss-spacing-xs);color:var(--color-neutral-100)}", template$m = (te) => {
|
|
11335
11340
|
const { arrayElements: J, text: X } = te;
|
|
11336
11341
|
return ke$1`
|
|
11337
11342
|
<div class="wrapper">
|
|
@@ -11373,10 +11378,10 @@ const initializeLocalization = async (te) => {
|
|
|
11373
11378
|
</div>` : D$1}
|
|
11374
11379
|
</div>`;
|
|
11375
11380
|
};
|
|
11376
|
-
var __defProp$
|
|
11377
|
-
for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$
|
|
11381
|
+
var __defProp$t = Object.defineProperty, __getOwnPropDesc$i = Object.getOwnPropertyDescriptor, __decorateClass$t = (te, J, X, re) => {
|
|
11382
|
+
for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$i(J, X) : J, oe = te.length - 1, de; oe >= 0; oe--)
|
|
11378
11383
|
(de = te[oe]) && (ne = (re ? de(J, X, ne) : de(ne)) || ne);
|
|
11379
|
-
return re && ne && __defProp$
|
|
11384
|
+
return re && ne && __defProp$t(J, X, ne), ne;
|
|
11380
11385
|
};
|
|
11381
11386
|
let ExportPdfModal = class extends h$q {
|
|
11382
11387
|
constructor() {
|
|
@@ -11389,12 +11394,12 @@ let ExportPdfModal = class extends h$q {
|
|
|
11389
11394
|
}
|
|
11390
11395
|
render() {
|
|
11391
11396
|
return ke$1`
|
|
11392
|
-
${template$
|
|
11397
|
+
${template$m(this)}
|
|
11393
11398
|
`;
|
|
11394
11399
|
}
|
|
11395
11400
|
static get styles() {
|
|
11396
11401
|
return i$y`
|
|
11397
|
-
${r$H(styles$
|
|
11402
|
+
${r$H(styles$k)}
|
|
11398
11403
|
`;
|
|
11399
11404
|
}
|
|
11400
11405
|
handleTest() {
|
|
@@ -11404,22 +11409,22 @@ let ExportPdfModal = class extends h$q {
|
|
|
11404
11409
|
);
|
|
11405
11410
|
}
|
|
11406
11411
|
};
|
|
11407
|
-
__decorateClass$
|
|
11412
|
+
__decorateClass$t([
|
|
11408
11413
|
n$x()
|
|
11409
11414
|
], ExportPdfModal.prototype, "selectedRadioOption", 2);
|
|
11410
|
-
__decorateClass$
|
|
11415
|
+
__decorateClass$t([
|
|
11411
11416
|
n$x()
|
|
11412
11417
|
], ExportPdfModal.prototype, "text", 2);
|
|
11413
|
-
__decorateClass$
|
|
11418
|
+
__decorateClass$t([
|
|
11414
11419
|
n$x()
|
|
11415
11420
|
], ExportPdfModal.prototype, "selectedVisibilityLevelElement", 2);
|
|
11416
|
-
__decorateClass$
|
|
11421
|
+
__decorateClass$t([
|
|
11417
11422
|
n$x()
|
|
11418
11423
|
], ExportPdfModal.prototype, "selectedPeriodDate", 2);
|
|
11419
|
-
__decorateClass$
|
|
11424
|
+
__decorateClass$t([
|
|
11420
11425
|
n$x({ type: Array })
|
|
11421
11426
|
], ExportPdfModal.prototype, "arrayElements", 2);
|
|
11422
|
-
ExportPdfModal = __decorateClass$
|
|
11427
|
+
ExportPdfModal = __decorateClass$t([
|
|
11423
11428
|
t$k("export-pdf-modal")
|
|
11424
11429
|
], ExportPdfModal);
|
|
11425
11430
|
class ExportToPdfHandler extends ApiBaseHandler {
|
|
@@ -11452,14 +11457,14 @@ class AddHistoryItemsHandler extends StoreBaseHandler {
|
|
|
11452
11457
|
async handle(J) {
|
|
11453
11458
|
try {
|
|
11454
11459
|
const X = validateAndFilterBasicItems(J.items);
|
|
11455
|
-
this.store.dispatch(
|
|
11460
|
+
handleAddDiagnosticsFilter(X, this.store), handleAddUpFilter(X, this.store), this.store.dispatch(
|
|
11456
11461
|
addActivityHistoryItems({
|
|
11457
11462
|
id: J.entityId,
|
|
11458
11463
|
items: X,
|
|
11459
11464
|
componentFactory: J.componentFactory,
|
|
11460
11465
|
searchPredicate: J.searchPredicate
|
|
11461
11466
|
})
|
|
11462
|
-
)
|
|
11467
|
+
);
|
|
11463
11468
|
} catch (X) {
|
|
11464
11469
|
console.log(X.message);
|
|
11465
11470
|
}
|
|
@@ -11768,7 +11773,7 @@ const activityHistoryCollectionsSelector = (te) => te.activityHistoryCollections
|
|
|
11768
11773
|
), ce = groupActivityHistoryItems(de);
|
|
11769
11774
|
return sortGroupsByMostRecentDate(ce);
|
|
11770
11775
|
}
|
|
11771
|
-
), styles$
|
|
11776
|
+
), styles$j = ":host{min-height:1px;height:100%}.virtualizer{height:100%;padding-inline:16px}.container{min-height:1px;height:100%}.visit:first-child{margin-top:var(--dss-spacing-md)}.visit{width:calc(100% - var(--dss-spacing-md) - var(--dss-spacing-md));display:flex;flex-direction:column;gap:var(--dss-spacing-sm);background-color:#fff;border-radius:var(--dss-radius-sm);padding:var(--dss-spacing-sm);margin-bottom:var(--dss-spacing-md)}.visit .visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.visit .visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.visit .visit__header .title-date{font-weight:700}.visit .visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.visit .visit__header .highlight{background-color:#ff0;font-weight:700}.visit .visit__items{display:flex;flex-direction:column;gap:var(--dss-spacing-sm)}.visit .visit__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .visit__items .item[has-divider]:last-of-type{border:none}.visit .diagnostics{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics:last-of-type{border:none}.visit .diagnostics .diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.visit .diagnostics .diagnostics__items{display:flex;flex-direction:column}.visit .diagnostics .diagnostics__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics .diagnostics__items .item[has-divider]:last-of-type{border:none}.feedback{width:100%;height:100%;display:flex;align-items:center;justify-content:center}";
|
|
11772
11777
|
function toDate(te) {
|
|
11773
11778
|
const J = Object.prototype.toString.call(te);
|
|
11774
11779
|
return te instanceof Date || typeof te == "object" && J === "[object Date]" ? new te.constructor(+te) : typeof te == "number" || J === "[object Number]" || typeof te == "string" || J === "[object String]" ? new Date(te) : /* @__PURE__ */ new Date(NaN);
|
|
@@ -14561,9 +14566,31 @@ const hasItemDivider = (te, J) => {
|
|
|
14561
14566
|
subGroup: re
|
|
14562
14567
|
}));
|
|
14563
14568
|
return [...J, ...X].sort((re, ne) => ne.date.getTime() - re.date.getTime());
|
|
14564
|
-
}, template$
|
|
14569
|
+
}, styles$i = ".grouping-busy-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}", template$l = (te) => ke$1`
|
|
14570
|
+
<div class="grouping-busy-container">
|
|
14571
|
+
<dss-spinner size="sm"></dss-spinner>
|
|
14572
|
+
<div>${translate("isGrouping")}</div>
|
|
14573
|
+
</div>
|
|
14574
|
+
`;
|
|
14575
|
+
var __defProp$s = Object.defineProperty, __getOwnPropDesc$h = Object.getOwnPropertyDescriptor, __decorateClass$s = (te, J, X, re) => {
|
|
14576
|
+
for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$h(J, X) : J, oe = te.length - 1, de; oe >= 0; oe--)
|
|
14577
|
+
(de = te[oe]) && (ne = (re ? de(J, X, ne) : de(ne)) || ne);
|
|
14578
|
+
return re && ne && __defProp$s(J, X, ne), ne;
|
|
14579
|
+
};
|
|
14580
|
+
let ActivityHistoryIsGroupingBusy = class extends h$q {
|
|
14581
|
+
render() {
|
|
14582
|
+
return template$l();
|
|
14583
|
+
}
|
|
14584
|
+
};
|
|
14585
|
+
ActivityHistoryIsGroupingBusy.styles = i$y`
|
|
14586
|
+
${r$H(styles$i)}
|
|
14587
|
+
`;
|
|
14588
|
+
ActivityHistoryIsGroupingBusy = __decorateClass$s([
|
|
14589
|
+
t$k("activity-history-is-grouping-busy")
|
|
14590
|
+
], ActivityHistoryIsGroupingBusy);
|
|
14591
|
+
const template$k = (te) => {
|
|
14565
14592
|
var J;
|
|
14566
|
-
return
|
|
14593
|
+
return ke$1`
|
|
14567
14594
|
<div class="container">
|
|
14568
14595
|
<activity-history-full-data-error></activity-history-full-data-error>
|
|
14569
14596
|
<activity-history-partial-data-error></activity-history-partial-data-error>
|
|
@@ -14619,15 +14646,24 @@ const hasItemDivider = (te, J) => {
|
|
|
14619
14646
|
`;
|
|
14620
14647
|
}}
|
|
14621
14648
|
></lit-virtualizer>
|
|
14622
|
-
` :
|
|
14623
|
-
<dss-user-feedback
|
|
14624
|
-
class="feedback"
|
|
14625
|
-
imagesrc=${notFound}
|
|
14626
|
-
title=${translate("noResults")}>
|
|
14627
|
-
</dss-user-feedback>
|
|
14628
|
-
` : D$1}
|
|
14649
|
+
` : noGroupsTemplate(te)}
|
|
14629
14650
|
</div>
|
|
14630
|
-
|
|
14651
|
+
`;
|
|
14652
|
+
}, noGroupsTemplate = (te) => {
|
|
14653
|
+
var J;
|
|
14654
|
+
return ke$1`
|
|
14655
|
+
${((J = te.searchString) == null ? void 0 : J.length) > 1 ? ke$1`
|
|
14656
|
+
<dss-user-feedback
|
|
14657
|
+
class="feedback"
|
|
14658
|
+
imagesrc=${notFound}
|
|
14659
|
+
title=${translate("noResults")}>
|
|
14660
|
+
</dss-user-feedback>
|
|
14661
|
+
` : te.renderGroupsControlTimeExpired ? ke$1`<dss-user-feedback
|
|
14662
|
+
class="feedback"
|
|
14663
|
+
imagesrc=${notFound}
|
|
14664
|
+
title=${translate("noData.title")}
|
|
14665
|
+
description=${translate("noData.description")}>
|
|
14666
|
+
</dss-user-feedback>` : ke$1`<activity-history-is-grouping-busy></activity-history-is-grouping-busy>`}`;
|
|
14631
14667
|
}, visitHeaderTemplate = (te, J) => J ? ke$1`
|
|
14632
14668
|
<div class="visit__header">
|
|
14633
14669
|
<div class="title">
|
|
@@ -15332,7 +15368,7 @@ const createZIndexStyles = (te) => {
|
|
|
15332
15368
|
};
|
|
15333
15369
|
let ActivityHistoryTimeline = class extends h$q {
|
|
15334
15370
|
constructor() {
|
|
15335
|
-
super(...arguments), this.
|
|
15371
|
+
super(...arguments), this.renderGroupsControlTimeExpired = !1;
|
|
15336
15372
|
}
|
|
15337
15373
|
render() {
|
|
15338
15374
|
var X;
|
|
@@ -15344,8 +15380,13 @@ let ActivityHistoryTimeline = class extends h$q {
|
|
|
15344
15380
|
${template$k(this)}
|
|
15345
15381
|
`;
|
|
15346
15382
|
}
|
|
15347
|
-
|
|
15348
|
-
super.
|
|
15383
|
+
connectedCallback() {
|
|
15384
|
+
super.connectedCallback(), setTimeout(() => {
|
|
15385
|
+
this.renderGroupsControlTimeExpired = !0;
|
|
15386
|
+
}, 8e3);
|
|
15387
|
+
}
|
|
15388
|
+
disconnectedCallback() {
|
|
15389
|
+
super.disconnectedCallback();
|
|
15349
15390
|
}
|
|
15350
15391
|
async updated(te) {
|
|
15351
15392
|
var J;
|
|
@@ -15389,7 +15430,7 @@ let ActivityHistoryTimeline = class extends h$q {
|
|
|
15389
15430
|
}
|
|
15390
15431
|
};
|
|
15391
15432
|
ActivityHistoryTimeline.styles = i$y`
|
|
15392
|
-
${r$H(styles$
|
|
15433
|
+
${r$H(styles$j)}
|
|
15393
15434
|
`;
|
|
15394
15435
|
__decorateClass$r([
|
|
15395
15436
|
connectedProperty(activityHistoryGroupedItems)
|
|
@@ -15406,6 +15447,9 @@ __decorateClass$r([
|
|
|
15406
15447
|
__decorateClass$r([
|
|
15407
15448
|
e$O(".virtualizer")
|
|
15408
15449
|
], ActivityHistoryTimeline.prototype, "_virtualizer", 2);
|
|
15450
|
+
__decorateClass$r([
|
|
15451
|
+
r$E()
|
|
15452
|
+
], ActivityHistoryTimeline.prototype, "renderGroupsControlTimeExpired", 2);
|
|
15409
15453
|
ActivityHistoryTimeline = __decorateClass$r([
|
|
15410
15454
|
t$k("activity-history-timeline")
|
|
15411
15455
|
], ActivityHistoryTimeline);
|