@turquoisehealth/pit-viper 2.94.0 → 2.94.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/package.json +4 -4
- package/pv-components/dist/vue/base/pv-components-base.js +2 -2
- package/pv-components/dist/vue/base/pv-components-base.mjs +250 -248
- package/pv-components/dist/vue/base/pv-components-base.umd.js +3 -3
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +2 -2
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +638 -636
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.pv-scatter-overlay[data-v-9abf45ab]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:2;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.pv-scatter-quadrant[data-v-9abf45ab]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-9abf45ab]{background:#8080801a;padding:8px;border-radius:4px;font-size:12px;font-weight:600;color:#666;pointer-events:all;max-width:calc(100% - 10px);max-height:calc(100% - 10px);overflow:auto}.pv-scatter-quadrant-top-left[data-v-9abf45ab]{grid-column:1;grid-row:1;align-items:flex-start;justify-content:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-9abf45ab]{grid-column:2;grid-row:1;align-items:flex-start;justify-content:flex-end;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-9abf45ab]{grid-column:1;grid-row:2;align-items:flex-end;justify-content:flex-start;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-9abf45ab]{grid-column:2;grid-row:2;align-items:flex-end;justify-content:flex-end;padding:5px}.pv-chart-loading[data-v-9abf45ab]{position:absolute;text-align:center;justify-content:center;align-items:center;top:0;left:0;width:100%;height:100%;opacity:1;background-color:#fff;z-index:4}.pv-chart-loading-icon[data-v-9abf45ab]{color:#16696d;animation:pulse-9abf45ab 1.5s infinite ease-in-out}@keyframes pulse-9abf45ab{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-cda1af8c]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}.pv-menu-item-disabled[data-v-c2ce0e65]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-c2ce0e65]{cursor:pointer}.pv-table-row-count{position:absolute;right:12px;top:6px;opacity:1;background-color:#f7f8f8;transition:opacity .3s ease}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{padding:8px 12px 8px 0;text-align:center;color:#89989b}.focus-button{opacity:0;transition:opacity .2s ease;position:absolute;right:0;top:50%;transform:translateY(-50%)}.option-label:hover .focus-button{opacity:1;background-color:#e8f2f4}.suggested-label[data-v-30eb6078]:hover{color:#16696d}.ag-custom-header-cell[data-v-58d16af9]{height:100%;align-items:center}.ag-header-actions .ag-header-cell-menu-button[data-v-58d16af9]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-58d16af9]{opacity:1}.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-58d16af9]{opacity:1}.pv-table-row-number[data-v-686928ce]{padding:8px 12px 8px 0;text-align:center;color:#89989b}.pv-text-tertiary[data-v-cf726c87]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-137ec25e]{display:flex;align-items:center;position:relative;width:100%;background:#f7f8f8;padding:.25rem;border-radius:.5rem;border:2px solid transparent;font-size:.75rem;min-height:2.25rem;cursor:text}.pv-query-builder-input[data-v-137ec25e]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-137ec25e]{border:none;background:transparent;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-137ec25e]:focus-within{border:2px solid #36c5ba}.pv-table-overlay{position:absolute;z-index:2;background:#fff;width:100%;height:calc(100% - 40px);top:80px;pointer-events:none}.ag-header-cell-resize{border:none!important}.ag-row-group-leaf-indent{padding-left:7px;margin-left:0}.ag-custom-loading-cell{width:100%;height:40%;margin:15px;background-color:#ccc;border-radius:4px}.ag-group-value{width:100%}.ag-menu-option:hover{background-color:#f7f8f8}.ag-menu-option:active{background-color:#e8f2f4}.ag-menu-option-text{font-family:Inter,sans-serif}.pv-text-tertiary[data-v-08e3ce8f]{color:#89989b}.pv-button-placeholder[data-v-08e3ce8f]{height:24px;width:24px}.pv-sort-option[data-v-08e3ce8f]{--flex-gap: 4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-08e3ce8f]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-08e3ce8f]{transition:background-color .2s ease}.pv-placeholder-dropzone[data-v-08e3ce8f]{padding:8px 4px;border-style:dashed!important;border-color:#e3e7ea!important;justify-content:center;align-items:center;transition:all .2s ease}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-08e3ce8f]{border-color:#16696d!important;background:#f0f9f9}.sort-divider-container[data-v-08e3ce8f]{display:flex}.sort-divider[data-v-08e3ce8f]{position:relative;border-top:1px solid #e3e7ea;margin:1rem 0;flex:1}.sort-divider[data-v-08e3ce8f]:after{content:attr(data-label);display:inline-block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;padding:0 .5em;font-size:inherit;white-space:nowrap}.pv-menu-nested[data-v-b4235e90]:after{content:"›"}.pv-tooltip a[data-v-b4235e90]{color:inherit}.pv-chart-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.ag-charts-tooltip{background-color:#fffffff2}.ag-charts-floating-toolbar{display:none!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { defineComponent as se, createElementBlock as F, openBlock as h, normalizeStyle as ut, normalizeClass as we, ref as G, onMounted as vt, onUnmounted as Co, computed as O, createVNode as te, createCommentVNode as U, unref as J, Fragment as ve, createElementVNode as V, createBlock as ee, resolveDynamicComponent as Mt, isRef as oa, shallowRef as wr, toRef as Rl, readonly as xo, customRef as Il, nextTick as Lt, getCurrentScope as Al, onScopeDispose as Ll, toValue as Be, watch as Ce, getCurrentInstance as fn, useTemplateRef as St, renderSlot as Ke, withDirectives as Ct, createTextVNode as pt, Teleport as la, withCtx as Pe, toDisplayString as ae, withModifiers as Sr, mergeModels as et, useModel as We, renderList as Je, vModelText as ia, mergeProps as Ut, normalizeProps as pn, vShow as ko, vModelDynamic as Vl, vModelCheckbox as Bl, inject as Ee, onBeforeUnmount as Nl, createSlots as Kr, guardReactiveProps as
|
|
2
|
+
import { defineComponent as se, createElementBlock as F, openBlock as h, normalizeStyle as ut, normalizeClass as we, ref as G, onMounted as vt, onUnmounted as Co, computed as O, createVNode as te, createCommentVNode as U, unref as J, Fragment as ve, createElementVNode as V, createBlock as ee, resolveDynamicComponent as Mt, isRef as oa, shallowRef as wr, toRef as Rl, readonly as xo, customRef as Il, nextTick as Lt, getCurrentScope as Al, onScopeDispose as Ll, toValue as Be, watch as Ce, getCurrentInstance as fn, useTemplateRef as St, renderSlot as Ke, withDirectives as Ct, createTextVNode as pt, Teleport as la, withCtx as Pe, toDisplayString as ae, withModifiers as Sr, mergeModels as et, useModel as We, renderList as Je, vModelText as ia, mergeProps as Ut, normalizeProps as pn, vShow as ko, vModelDynamic as Vl, vModelCheckbox as Bl, inject as Ee, onBeforeUnmount as Nl, createSlots as Kr, guardReactiveProps as _a, onBeforeMount as sa, provide as Ie } from "vue";
|
|
3
3
|
import { AgCharts as zl } from "ag-charts-vue3";
|
|
4
4
|
import { LicenseManager as Gl } from "ag-charts-enterprise";
|
|
5
5
|
import { AgGridVue as jl } from "ag-grid-vue3";
|
|
@@ -162,7 +162,7 @@ function bi(e, t) {
|
|
|
162
162
|
stroke: "#b4b5b9"
|
|
163
163
|
}), e.crossLines = n;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function _o(e, t, n, r) {
|
|
166
166
|
(e.axes || []).filter(
|
|
167
167
|
(o) => n.includes((o.type === "number" || o.type === "log") && o.position || "")
|
|
168
168
|
).forEach((o) => {
|
|
@@ -176,18 +176,18 @@ function wi(e, t) {
|
|
|
176
176
|
if (e.axes === void 0)
|
|
177
177
|
return;
|
|
178
178
|
const n = e, r = n.series?.find((i) => i.type === "scatter"), a = r && "yKey" in r ? r.xKey : "", o = n.data || [], l = Oo(o, a, t);
|
|
179
|
-
|
|
179
|
+
_o(n, t, ["bottom", "top"], l);
|
|
180
180
|
}
|
|
181
181
|
function Si(e, t) {
|
|
182
182
|
if (e.axes === void 0)
|
|
183
183
|
return;
|
|
184
184
|
const n = e, r = n.series?.find((i) => i.type === "scatter"), a = r && "yKey" in r ? r.yKey : "", o = n.data || [], l = Oo(o, a, t);
|
|
185
|
-
|
|
185
|
+
_o(n, t, ["left", "right"], l);
|
|
186
186
|
}
|
|
187
187
|
const Ci = { style: { position: "relative" } }, xi = {
|
|
188
188
|
key: 0,
|
|
189
189
|
class: "pv-flex pv-chart-loading"
|
|
190
|
-
}, ki = { class: "pv-scatter-quadrant pv-scatter-quadrant-top-left" }, Ti = { class: "pv-scatter-quadrant-box" }, Fi = { class: "pv-scatter-quadrant pv-scatter-quadrant-top-right" }, $i = { class: "pv-scatter-quadrant-box" }, Oi = { class: "pv-scatter-quadrant pv-scatter-quadrant-bottom-left" },
|
|
190
|
+
}, ki = { class: "pv-scatter-quadrant pv-scatter-quadrant-top-left" }, Ti = { class: "pv-scatter-quadrant-box" }, Fi = { class: "pv-scatter-quadrant pv-scatter-quadrant-top-right" }, $i = { class: "pv-scatter-quadrant-box" }, Oi = { class: "pv-scatter-quadrant pv-scatter-quadrant-bottom-left" }, _i = { class: "pv-scatter-quadrant-box" }, Di = { class: "pv-scatter-quadrant pv-scatter-quadrant-bottom-right" }, Pi = { class: "pv-scatter-quadrant-box" }, Mi = "Using_this_{AG_Charts}_Enterprise_key_{AG-087886}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Charts}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{9_May_2026}____[v3]_[02]_MTc3ODI4MTIwMDAwMA==b240799c3daa50107bb7f3adff911d8f", Ei = /* @__PURE__ */ se({
|
|
191
191
|
__name: "PvChart",
|
|
192
192
|
props: {
|
|
193
193
|
options: {},
|
|
@@ -241,9 +241,9 @@ const Ci = { style: { position: "relative" } }, xi = {
|
|
|
241
241
|
data: []
|
|
242
242
|
};
|
|
243
243
|
let d = String($) || "";
|
|
244
|
-
const
|
|
245
|
-
if (
|
|
246
|
-
const j =
|
|
244
|
+
const _ = C.value?.series?.find((j) => j.yKey === E);
|
|
245
|
+
if (_ && _?.label?.formatter) {
|
|
246
|
+
const j = _.label.formatter;
|
|
247
247
|
d = j({ value: $, datum: y.datum }) || formattedValue;
|
|
248
248
|
}
|
|
249
249
|
return {
|
|
@@ -337,11 +337,11 @@ const Ci = { style: { position: "relative" } }, xi = {
|
|
|
337
337
|
])
|
|
338
338
|
]),
|
|
339
339
|
V("div", Oi, [
|
|
340
|
-
V("div",
|
|
340
|
+
V("div", _i, [
|
|
341
341
|
(h(), ee(Mt(e.customChartProps.scatter.quadrantRenderer), { quadrant: "bottomLeft" }))
|
|
342
342
|
])
|
|
343
343
|
]),
|
|
344
|
-
V("div",
|
|
344
|
+
V("div", Di, [
|
|
345
345
|
V("div", Pi, [
|
|
346
346
|
(h(), ee(Mt(e.customChartProps.scatter.quadrantRenderer), { quadrant: "bottomRight" }))
|
|
347
347
|
])
|
|
@@ -355,7 +355,7 @@ const Ci = { style: { position: "relative" } }, xi = {
|
|
|
355
355
|
for (const [r, a] of t)
|
|
356
356
|
n[r] = a;
|
|
357
357
|
return n;
|
|
358
|
-
},
|
|
358
|
+
}, Do = /* @__PURE__ */ ht(Ei, [["__scopeId", "data-v-9abf45ab"]]);
|
|
359
359
|
function Bn(e) {
|
|
360
360
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
361
361
|
}
|
|
@@ -366,9 +366,9 @@ v5.5.3
|
|
|
366
366
|
https://github.com/mholt/PapaParse
|
|
367
367
|
License: MIT
|
|
368
368
|
*/
|
|
369
|
-
var Ri = Qn.exports,
|
|
369
|
+
var Ri = Qn.exports, Da;
|
|
370
370
|
function Ii() {
|
|
371
|
-
return
|
|
371
|
+
return Da || (Da = 1, (function(e, t) {
|
|
372
372
|
((n, r) => {
|
|
373
373
|
e.exports = r();
|
|
374
374
|
})(Ri, function n() {
|
|
@@ -378,20 +378,20 @@ function Ii() {
|
|
|
378
378
|
var b = $(d);
|
|
379
379
|
b.chunkSize = parseInt(b.chunkSize), d.step || d.chunk || (b.chunkSize = null), this._handle = new S(b), (this._handle.streamer = this)._config = b;
|
|
380
380
|
}.call(this, c), this.parseChunk = function(d, b) {
|
|
381
|
-
var
|
|
382
|
-
if (this.isFirstChunk && 0 <
|
|
381
|
+
var _ = parseInt(this._config.skipFirstNLines) || 0;
|
|
382
|
+
if (this.isFirstChunk && 0 < _) {
|
|
383
383
|
let L = this._config.newline;
|
|
384
|
-
L || (j = this._config.quoteChar || '"', L = this._handle.guessLineEndings(d, j)), d = [...d.split(L).slice(
|
|
384
|
+
L || (j = this._config.quoteChar || '"', L = this._handle.guessLineEndings(d, j)), d = [...d.split(L).slice(_)].join(L);
|
|
385
385
|
}
|
|
386
386
|
this.isFirstChunk && k(this._config.beforeFirstChunk) && (j = this._config.beforeFirstChunk(d)) !== void 0 && (d = j), this.isFirstChunk = !1, this._halted = !1;
|
|
387
|
-
var
|
|
387
|
+
var _ = this._partialLine + d, j = (this._partialLine = "", this._handle.parse(_, this._baseIndex, !this._finished));
|
|
388
388
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
389
|
-
if (d = j.meta.cursor,
|
|
389
|
+
if (d = j.meta.cursor, _ = (this._finished || (this._partialLine = _.substring(d - this._baseIndex), this._baseIndex = d), j && j.data && (this._rowCount += j.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview), l) r.postMessage({ results: j, workerId: u.WORKER_ID, finished: _ });
|
|
390
390
|
else if (k(this._config.chunk) && !b) {
|
|
391
391
|
if (this._config.chunk(j, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
392
392
|
this._completeResults = j = void 0;
|
|
393
393
|
}
|
|
394
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(j.data), this._completeResults.errors = this._completeResults.errors.concat(j.errors), this._completeResults.meta = j.meta), this._completed || !
|
|
394
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(j.data), this._completeResults.errors = this._completeResults.errors.concat(j.errors), this._completeResults.meta = j.meta), this._completed || !_ || !k(this._config.complete) || j && j.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), _ || j && j.meta.paused || this._nextChunk(), j;
|
|
395
395
|
}
|
|
396
396
|
this._halted = !0;
|
|
397
397
|
}, this._sendError = function(d) {
|
|
@@ -410,8 +410,8 @@ function Ii() {
|
|
|
410
410
|
if (this._finished) this._chunkLoaded();
|
|
411
411
|
else {
|
|
412
412
|
if (d = new XMLHttpRequest(), this._config.withCredentials && (d.withCredentials = this._config.withCredentials), o || (d.onload = T(this._chunkLoaded, this), d.onerror = T(this._chunkError, this)), d.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !o), this._config.downloadRequestHeaders) {
|
|
413
|
-
var b,
|
|
414
|
-
for (b in
|
|
413
|
+
var b, _ = this._config.downloadRequestHeaders;
|
|
414
|
+
for (b in _) d.setRequestHeader(b, _[b]);
|
|
415
415
|
}
|
|
416
416
|
var j;
|
|
417
417
|
this._config.chunkSize && (j = this._start + this._config.chunkSize - 1, d.setRequestHeader("Range", "bytes=" + this._start + "-" + j));
|
|
@@ -430,14 +430,14 @@ function Ii() {
|
|
|
430
430
|
}
|
|
431
431
|
function v(c) {
|
|
432
432
|
(c = c || {}).chunkSize || (c.chunkSize = u.LocalChunkSize), f.call(this, c);
|
|
433
|
-
var d, b,
|
|
433
|
+
var d, b, _ = typeof FileReader < "u";
|
|
434
434
|
this.stream = function(j) {
|
|
435
|
-
this._input = j, b = j.slice || j.webkitSlice || j.mozSlice,
|
|
435
|
+
this._input = j, b = j.slice || j.webkitSlice || j.mozSlice, _ ? ((d = new FileReader()).onload = T(this._chunkLoaded, this), d.onerror = T(this._chunkError, this)) : d = new FileReaderSync(), this._nextChunk();
|
|
436
436
|
}, this._nextChunk = function() {
|
|
437
437
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
438
438
|
}, this._readChunk = function() {
|
|
439
439
|
var j = this._input, L = (this._config.chunkSize && (L = Math.min(this._start + this._config.chunkSize, this._input.size), j = b.call(j, this._start, L)), d.readAsText(j, this._config.encoding));
|
|
440
|
-
|
|
440
|
+
_ || this._chunkLoaded({ target: { result: L } });
|
|
441
441
|
}, this._chunkLoaded = function(j) {
|
|
442
442
|
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(j.target.result);
|
|
443
443
|
}, this._chunkError = function() {
|
|
@@ -449,13 +449,13 @@ function Ii() {
|
|
|
449
449
|
f.call(this, c = c || {}), this.stream = function(b) {
|
|
450
450
|
return d = b, this._nextChunk();
|
|
451
451
|
}, this._nextChunk = function() {
|
|
452
|
-
var b,
|
|
453
|
-
if (!this._finished) return b = this._config.chunkSize, d = b ? (
|
|
452
|
+
var b, _;
|
|
453
|
+
if (!this._finished) return b = this._config.chunkSize, d = b ? (_ = d.substring(0, b), d.substring(b)) : (_ = d, ""), this._finished = !d, this.parseChunk(_);
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
456
|
function m(c) {
|
|
457
457
|
f.call(this, c = c || {});
|
|
458
|
-
var d = [], b = !0,
|
|
458
|
+
var d = [], b = !0, _ = !1;
|
|
459
459
|
this.pause = function() {
|
|
460
460
|
f.prototype.pause.apply(this, arguments), this._input.pause();
|
|
461
461
|
}, this.resume = function() {
|
|
@@ -463,7 +463,7 @@ function Ii() {
|
|
|
463
463
|
}, this.stream = function(j) {
|
|
464
464
|
this._input = j, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
465
465
|
}, this._checkIsFinished = function() {
|
|
466
|
-
|
|
466
|
+
_ && d.length === 1 && (this._finished = !0);
|
|
467
467
|
}, this._nextChunk = function() {
|
|
468
468
|
this._checkIsFinished(), d.length ? this.parseChunk(d.shift()) : b = !0;
|
|
469
469
|
}, this._streamData = T(function(j) {
|
|
@@ -475,18 +475,18 @@ function Ii() {
|
|
|
475
475
|
}, this), this._streamError = T(function(j) {
|
|
476
476
|
this._streamCleanUp(), this._sendError(j);
|
|
477
477
|
}, this), this._streamEnd = T(function() {
|
|
478
|
-
this._streamCleanUp(),
|
|
478
|
+
this._streamCleanUp(), _ = !0, this._streamData("");
|
|
479
479
|
}, this), this._streamCleanUp = T(function() {
|
|
480
480
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
481
481
|
}, this);
|
|
482
482
|
}
|
|
483
483
|
function S(c) {
|
|
484
|
-
var d, b,
|
|
484
|
+
var d, b, _, j, L = Math.pow(2, 53), R = -L, D = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, N = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, A = this, I = 0, B = 0, K = !1, H = !1, Y = [], W = { data: [], errors: [], meta: {} };
|
|
485
485
|
function le(oe) {
|
|
486
486
|
return c.skipEmptyLines === "greedy" ? oe.join("").trim() === "" : oe.length === 1 && oe[0].length === 0;
|
|
487
487
|
}
|
|
488
488
|
function he() {
|
|
489
|
-
if (W &&
|
|
489
|
+
if (W && _ && (Me("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + u.DefaultDelimiter + "'"), _ = !1), c.skipEmptyLines && (W.data = W.data.filter(function(ne) {
|
|
490
490
|
return !le(ne);
|
|
491
491
|
})), ge()) {
|
|
492
492
|
let ne = function(xe, $e) {
|
|
@@ -499,8 +499,8 @@ function Ii() {
|
|
|
499
499
|
}
|
|
500
500
|
function ue(ne, xe) {
|
|
501
501
|
for (var $e = c.header ? {} : [], ke = 0; ke < ne.length; ke++) {
|
|
502
|
-
var be = ke, ye = ne[ke], ye = ((Ae, ce) => ((
|
|
503
|
-
if (
|
|
502
|
+
var be = ke, ye = ne[ke], ye = ((Ae, ce) => ((De) => (c.dynamicTypingFunction && c.dynamicTyping[De] === void 0 && (c.dynamicTyping[De] = c.dynamicTypingFunction(De)), (c.dynamicTyping[De] || c.dynamicTyping) === !0))(Ae) ? ce === "true" || ce === "TRUE" || ce !== "false" && ce !== "FALSE" && (((De) => {
|
|
503
|
+
if (D.test(De) && (De = parseFloat(De), R < De && De < L))
|
|
504
504
|
return 1;
|
|
505
505
|
})(ce) ? parseFloat(ce) : N.test(ce) ? new Date(ce) : ce === "" ? null : ce) : ce)(be = c.header ? ke >= Y.length ? "__parsed_extra" : Y[ke] : be, ye = c.transform ? c.transform(ye, be) : ye);
|
|
506
506
|
be === "__parsed_extra" ? ($e[be] = $e[be] || [], $e[be].push(ye)) : $e[be] = ye;
|
|
@@ -519,15 +519,15 @@ function Ii() {
|
|
|
519
519
|
k(c.step) && (j = c.step, c.step = function(oe) {
|
|
520
520
|
W = oe, ge() ? he() : (he(), W.data.length !== 0 && (I += oe.data.length, c.preview && I > c.preview ? b.abort() : (W.data = W.data[0], j(W, A))));
|
|
521
521
|
}), this.parse = function(oe, ue, pe) {
|
|
522
|
-
var ne = c.quoteChar || '"', ne = (c.newline || (c.newline = this.guessLineEndings(oe, ne)),
|
|
523
|
-
var Ae, ce,
|
|
522
|
+
var ne = c.quoteChar || '"', ne = (c.newline || (c.newline = this.guessLineEndings(oe, ne)), _ = !1, c.delimiter ? k(c.delimiter) && (c.delimiter = c.delimiter(oe), W.meta.delimiter = c.delimiter) : ((ne = ((xe, $e, ke, be, ye) => {
|
|
523
|
+
var Ae, ce, De, Z;
|
|
524
524
|
ye = ye || [",", " ", "|", ";", u.RECORD_SEP, u.UNIT_SEP];
|
|
525
525
|
for (var re = 0; re < ye.length; re++) {
|
|
526
|
-
for (var ie, Qe = ye[re], Re = 0, tt = 0, je = 0, Le = (
|
|
526
|
+
for (var ie, Qe = ye[re], Re = 0, tt = 0, je = 0, Le = (De = void 0, new y({ comments: be, delimiter: Qe, newline: $e, preview: 10 }).parse(xe)), nt = 0; nt < Le.data.length; nt++) ke && le(Le.data[nt]) ? je++ : (ie = Le.data[nt].length, tt += ie, De === void 0 ? De = ie : 0 < ie && (Re += Math.abs(ie - De), De = ie));
|
|
527
527
|
0 < Le.data.length && (tt /= Le.data.length - je), (ce === void 0 || Re <= ce) && (Z === void 0 || Z < tt) && 1.99 < tt && (ce = Re, Ae = Qe, Z = tt);
|
|
528
528
|
}
|
|
529
529
|
return { successful: !!(c.delimiter = Ae), bestDelimiter: Ae };
|
|
530
|
-
})(oe, c.newline, c.skipEmptyLines, c.comments, c.delimitersToGuess)).successful ? c.delimiter = ne.bestDelimiter : (
|
|
530
|
+
})(oe, c.newline, c.skipEmptyLines, c.comments, c.delimitersToGuess)).successful ? c.delimiter = ne.bestDelimiter : (_ = !0, c.delimiter = u.DefaultDelimiter), W.meta.delimiter = c.delimiter), $(c));
|
|
531
531
|
return c.preview && c.header && ne.preview++, d = oe, b = new y(ne), W = b.parse(d, ue, pe), he(), K ? { meta: { paused: !0 } } : W || { meta: { paused: !1 } };
|
|
532
532
|
}, this.paused = function() {
|
|
533
533
|
return K;
|
|
@@ -555,22 +555,22 @@ function Ii() {
|
|
|
555
555
|
return c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
556
556
|
}
|
|
557
557
|
function y(c) {
|
|
558
|
-
var d = (c = c || {}).delimiter, b = c.newline,
|
|
559
|
-
if (c.escapeChar !== void 0 && (I = c.escapeChar), (typeof d != "string" || -1 < u.BAD_DELIMITERS.indexOf(d)) && (d = ","),
|
|
560
|
-
|
|
558
|
+
var d = (c = c || {}).delimiter, b = c.newline, _ = c.comments, j = c.step, L = c.preview, R = c.fastMode, D = null, N = !1, A = c.quoteChar == null ? '"' : c.quoteChar, I = A;
|
|
559
|
+
if (c.escapeChar !== void 0 && (I = c.escapeChar), (typeof d != "string" || -1 < u.BAD_DELIMITERS.indexOf(d)) && (d = ","), _ === d) throw new Error("Comment character same as delimiter");
|
|
560
|
+
_ === !0 ? _ = "#" : (typeof _ != "string" || -1 < u.BAD_DELIMITERS.indexOf(_)) && (_ = !1), b !== `
|
|
561
561
|
` && b !== "\r" && b !== `\r
|
|
562
562
|
` && (b = `
|
|
563
563
|
`);
|
|
564
564
|
var B = 0, K = !1;
|
|
565
565
|
this.parse = function(H, Y, W) {
|
|
566
566
|
if (typeof H != "string") throw new Error("Input must be a string");
|
|
567
|
-
var le = H.length, he = d.length, ge = b.length, Me =
|
|
567
|
+
var le = H.length, he = d.length, ge = b.length, Me = _.length, oe = k(j), ue = [], pe = [], ne = [], xe = B = 0;
|
|
568
568
|
if (!H) return Re();
|
|
569
569
|
if (R || R !== !1 && H.indexOf(A) === -1) {
|
|
570
570
|
for (var $e = H.split(b), ke = 0; ke < $e.length; ke++) {
|
|
571
571
|
if (ne = $e[ke], B += ne.length, ke !== $e.length - 1) B += b.length;
|
|
572
572
|
else if (W) return Re();
|
|
573
|
-
if (!
|
|
573
|
+
if (!_ || ne.substring(0, Me) !== _) {
|
|
574
574
|
if (oe) {
|
|
575
575
|
if (ue = [], Z(ne.split(d)), tt(), K) return Re();
|
|
576
576
|
} else Z(ne.split(d));
|
|
@@ -585,20 +585,20 @@ function Ii() {
|
|
|
585
585
|
if (A === I && H[ce + 1] === I) ce++;
|
|
586
586
|
else if (A === I || ce === 0 || H[ce - 1] !== I) {
|
|
587
587
|
be !== -1 && be < ce + 1 && (be = H.indexOf(d, ce + 1));
|
|
588
|
-
var
|
|
589
|
-
if (H.substr(ce + 1 +
|
|
590
|
-
ne.push(H.substring(B, ce).replace(Ae, A)), H[B = ce + 1 +
|
|
588
|
+
var De = re((ye = ye !== -1 && ye < ce + 1 ? H.indexOf(b, ce + 1) : ye) === -1 ? be : Math.min(be, ye));
|
|
589
|
+
if (H.substr(ce + 1 + De, he) === d) {
|
|
590
|
+
ne.push(H.substring(B, ce).replace(Ae, A)), H[B = ce + 1 + De + he] !== A && (ce = H.indexOf(A, B)), be = H.indexOf(d, B), ye = H.indexOf(b, B);
|
|
591
591
|
break;
|
|
592
592
|
}
|
|
593
|
-
if (
|
|
594
|
-
if (ne.push(H.substring(B, ce).replace(Ae, A)), Qe(ce + 1 +
|
|
593
|
+
if (De = re(ye), H.substring(ce + 1 + De, ce + 1 + De + ge) === b) {
|
|
594
|
+
if (ne.push(H.substring(B, ce).replace(Ae, A)), Qe(ce + 1 + De + ge), be = H.indexOf(d, B), ce = H.indexOf(A, B), oe && (tt(), K)) return Re();
|
|
595
595
|
if (L && ue.length >= L) return Re(!0);
|
|
596
596
|
break;
|
|
597
597
|
}
|
|
598
598
|
pe.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: ue.length, index: B }), ce++;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
else if (
|
|
601
|
+
else if (_ && ne.length === 0 && H.substring(B, B + Me) === _) {
|
|
602
602
|
if (ye === -1) return Re();
|
|
603
603
|
B = ye + ge, ye = H.indexOf(b, B), be = H.indexOf(d, B);
|
|
604
604
|
} else if (be !== -1 && (be < ye || ye === -1)) ne.push(H.substring(B, be)), B = be + he, be = H.indexOf(d, B);
|
|
@@ -625,18 +625,18 @@ function Ii() {
|
|
|
625
625
|
if (c.header && !Y && ue.length && !N) {
|
|
626
626
|
var Le = ue[0], nt = /* @__PURE__ */ Object.create(null), Nt = new Set(Le);
|
|
627
627
|
let Kt = !1;
|
|
628
|
-
for (let
|
|
629
|
-
let ct = Le[
|
|
630
|
-
if (nt[ct = k(c.transformHeader) ? c.transformHeader(ct,
|
|
631
|
-
let
|
|
632
|
-
for (;
|
|
633
|
-
Nt.add(
|
|
634
|
-
} else nt[ct] = 1, Le[
|
|
628
|
+
for (let _t = 0; _t < Le.length; _t++) {
|
|
629
|
+
let ct = Le[_t];
|
|
630
|
+
if (nt[ct = k(c.transformHeader) ? c.transformHeader(ct, _t) : ct]) {
|
|
631
|
+
let Dt, z = nt[ct];
|
|
632
|
+
for (; Dt = ct + "_" + z, z++, Nt.has(Dt); ) ;
|
|
633
|
+
Nt.add(Dt), Le[_t] = Dt, nt[ct]++, Kt = !0, (D = D === null ? {} : D)[Dt] = ct;
|
|
634
|
+
} else nt[ct] = 1, Le[_t] = ct;
|
|
635
635
|
Nt.add(ct);
|
|
636
636
|
}
|
|
637
637
|
Kt && console.warn("Duplicate headers found and renamed."), N = !0;
|
|
638
638
|
}
|
|
639
|
-
return { data: ue, errors: pe, meta: { delimiter: d, linebreak: b, aborted: K, truncated: !!je, cursor: xe + (Y || 0), renamedHeaders:
|
|
639
|
+
return { data: ue, errors: pe, meta: { delimiter: d, linebreak: b, aborted: K, truncated: !!je, cursor: xe + (Y || 0), renamedHeaders: D } };
|
|
640
640
|
}
|
|
641
641
|
function tt() {
|
|
642
642
|
j(Re()), ue = [], pe = [];
|
|
@@ -648,18 +648,18 @@ function Ii() {
|
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
function x(c) {
|
|
651
|
-
var d = c.data, b = i[d.workerId],
|
|
651
|
+
var d = c.data, b = i[d.workerId], _ = !1;
|
|
652
652
|
if (d.error) b.userError(d.error, d.file);
|
|
653
653
|
else if (d.results && d.results.data) {
|
|
654
654
|
var j = { abort: function() {
|
|
655
|
-
|
|
655
|
+
_ = !0, M(d.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
656
656
|
}, pause: E, resume: E };
|
|
657
657
|
if (k(b.userStep)) {
|
|
658
|
-
for (var L = 0; L < d.results.data.length && (b.userStep({ data: d.results.data[L], errors: d.results.errors, meta: d.results.meta }, j), !
|
|
658
|
+
for (var L = 0; L < d.results.data.length && (b.userStep({ data: d.results.data[L], errors: d.results.errors, meta: d.results.meta }, j), !_); L++) ;
|
|
659
659
|
delete d.results;
|
|
660
660
|
} else k(b.userChunk) && (b.userChunk(d.results, j, d.file), delete d.results);
|
|
661
661
|
}
|
|
662
|
-
d.finished && !
|
|
662
|
+
d.finished && !_ && M(d.workerId, d.results);
|
|
663
663
|
}
|
|
664
664
|
function M(c, d) {
|
|
665
665
|
var b = i[c];
|
|
@@ -684,25 +684,25 @@ function Ii() {
|
|
|
684
684
|
}
|
|
685
685
|
return u.parse = function(c, d) {
|
|
686
686
|
var b = (d = d || {}).dynamicTyping || !1;
|
|
687
|
-
if (k(b) && (d.dynamicTypingFunction = b, b = {}), d.dynamicTyping = b, d.transform = !!k(d.transform) && d.transform, !d.worker || !u.WORKERS_SUPPORTED) return b = null, u.NODE_STREAM_INPUT, typeof c == "string" ? (c = ((
|
|
687
|
+
if (k(b) && (d.dynamicTypingFunction = b, b = {}), d.dynamicTyping = b, d.transform = !!k(d.transform) && d.transform, !d.worker || !u.WORKERS_SUPPORTED) return b = null, u.NODE_STREAM_INPUT, typeof c == "string" ? (c = ((_) => _.charCodeAt(0) !== 65279 ? _ : _.slice(1))(c), b = new (d.download ? p : g)(d)) : c.readable === !0 && k(c.read) && k(c.on) ? b = new m(d) : (r.File && c instanceof File || c instanceof Object) && (b = new v(d)), b.stream(c);
|
|
688
688
|
(b = (() => {
|
|
689
|
-
var
|
|
690
|
-
return !!u.WORKERS_SUPPORTED && (
|
|
689
|
+
var _;
|
|
690
|
+
return !!u.WORKERS_SUPPORTED && (_ = (() => {
|
|
691
691
|
var j = r.URL || r.webkitURL || null, L = n.toString();
|
|
692
692
|
return u.BLOB_URL || (u.BLOB_URL = j.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", L, ")();"], { type: "text/javascript" })));
|
|
693
|
-
})(), (
|
|
693
|
+
})(), (_ = new r.Worker(_)).onmessage = x, _.id = s++, i[_.id] = _);
|
|
694
694
|
})()).userStep = d.step, b.userChunk = d.chunk, b.userComplete = d.complete, b.userError = d.error, d.step = k(d.step), d.chunk = k(d.chunk), d.complete = k(d.complete), d.error = k(d.error), delete d.worker, b.postMessage({ input: c, config: d, workerId: b.id });
|
|
695
695
|
}, u.unparse = function(c, d) {
|
|
696
|
-
var b = !1,
|
|
697
|
-
`, R = '"',
|
|
696
|
+
var b = !1, _ = !0, j = ",", L = `\r
|
|
697
|
+
`, R = '"', D = R + R, N = !1, A = null, I = !1, B = ((() => {
|
|
698
698
|
if (typeof d == "object") {
|
|
699
699
|
if (typeof d.delimiter != "string" || u.BAD_DELIMITERS.filter(function(Y) {
|
|
700
700
|
return d.delimiter.indexOf(Y) !== -1;
|
|
701
|
-
}).length || (j = d.delimiter), typeof d.quotes != "boolean" && typeof d.quotes != "function" && !Array.isArray(d.quotes) || (b = d.quotes), typeof d.skipEmptyLines != "boolean" && typeof d.skipEmptyLines != "string" || (N = d.skipEmptyLines), typeof d.newline == "string" && (L = d.newline), typeof d.quoteChar == "string" && (R = d.quoteChar), typeof d.header == "boolean" && (
|
|
701
|
+
}).length || (j = d.delimiter), typeof d.quotes != "boolean" && typeof d.quotes != "function" && !Array.isArray(d.quotes) || (b = d.quotes), typeof d.skipEmptyLines != "boolean" && typeof d.skipEmptyLines != "string" || (N = d.skipEmptyLines), typeof d.newline == "string" && (L = d.newline), typeof d.quoteChar == "string" && (R = d.quoteChar), typeof d.header == "boolean" && (_ = d.header), Array.isArray(d.columns)) {
|
|
702
702
|
if (d.columns.length === 0) throw new Error("Option columns is empty");
|
|
703
703
|
A = d.columns;
|
|
704
704
|
}
|
|
705
|
-
d.escapeChar !== void 0 && (
|
|
705
|
+
d.escapeChar !== void 0 && (D = d.escapeChar + R), d.escapeFormulae instanceof RegExp ? I = d.escapeFormulae : typeof d.escapeFormulae == "boolean" && d.escapeFormulae && (I = /^[=+\-@\t\r].*$/);
|
|
706
706
|
}
|
|
707
707
|
})(), new RegExp(C(R), "g"));
|
|
708
708
|
if (typeof c == "string" && (c = JSON.parse(c)), Array.isArray(c)) {
|
|
@@ -712,7 +712,7 @@ function Ii() {
|
|
|
712
712
|
throw new Error("Unable to serialize unrecognized input");
|
|
713
713
|
function K(Y, W, le) {
|
|
714
714
|
var he = "", ge = (typeof Y == "string" && (Y = JSON.parse(Y)), typeof W == "string" && (W = JSON.parse(W)), Array.isArray(Y) && 0 < Y.length), Me = !Array.isArray(W[0]);
|
|
715
|
-
if (ge &&
|
|
715
|
+
if (ge && _) {
|
|
716
716
|
for (var oe = 0; oe < Y.length; oe++) 0 < oe && (he += j), he += H(Y[oe], oe);
|
|
717
717
|
0 < W.length && (he += L);
|
|
718
718
|
}
|
|
@@ -738,7 +738,7 @@ function Ii() {
|
|
|
738
738
|
}
|
|
739
739
|
function H(Y, W) {
|
|
740
740
|
var le, he;
|
|
741
|
-
return Y == null ? "" : Y.constructor === Date ? JSON.stringify(Y).slice(1, 25) : (he = !1, I && typeof Y == "string" && I.test(Y) && (Y = "'" + Y, he = !0), le = Y.toString().replace(B,
|
|
741
|
+
return Y == null ? "" : Y.constructor === Date ? JSON.stringify(Y).slice(1, 25) : (he = !1, I && typeof Y == "string" && I.test(Y) && (Y = "'" + Y, he = !0), le = Y.toString().replace(B, D), (he = he || b === !0 || typeof b == "function" && b(Y, W) || Array.isArray(b) && b[W] || ((ge, Me) => {
|
|
742
742
|
for (var oe = 0; oe < Me.length; oe++) if (-1 < ge.indexOf(Me[oe])) return !0;
|
|
743
743
|
return !1;
|
|
744
744
|
})(le, u.BAD_DELIMITERS) || -1 < le.indexOf(j) || le.charAt(0) === " " || le.charAt(le.length - 1) === " ") ? R + le + R : le);
|
|
@@ -749,15 +749,15 @@ function Ii() {
|
|
|
749
749
|
return this.each(function(L) {
|
|
750
750
|
if (!(a(this).prop("tagName").toUpperCase() === "INPUT" && a(this).attr("type").toLowerCase() === "file" && r.FileReader) || !this.files || this.files.length === 0) return !0;
|
|
751
751
|
for (var R = 0; R < this.files.length; R++) b.push({ file: this.files[R], inputElem: this, instanceConfig: a.extend({}, d) });
|
|
752
|
-
}),
|
|
753
|
-
function
|
|
752
|
+
}), _(), this;
|
|
753
|
+
function _() {
|
|
754
754
|
if (b.length === 0) k(c.complete) && c.complete();
|
|
755
755
|
else {
|
|
756
|
-
var L, R,
|
|
756
|
+
var L, R, D, N, A = b[0];
|
|
757
757
|
if (k(c.before)) {
|
|
758
758
|
var I = c.before(A.file, A.inputElem);
|
|
759
759
|
if (typeof I == "object") {
|
|
760
|
-
if (I.action === "abort") return L = "AbortError", R = A.file,
|
|
760
|
+
if (I.action === "abort") return L = "AbortError", R = A.file, D = A.inputElem, N = I.reason, void (k(c.error) && c.error({ name: L }, R, D, N));
|
|
761
761
|
if (I.action === "skip") return void j();
|
|
762
762
|
typeof I.config == "object" && (A.instanceConfig = a.extend(A.instanceConfig, I.config));
|
|
763
763
|
} else if (I === "skip") return void j();
|
|
@@ -769,7 +769,7 @@ function Ii() {
|
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
771
|
function j() {
|
|
772
|
-
b.splice(0, 1),
|
|
772
|
+
b.splice(0, 1), _();
|
|
773
773
|
}
|
|
774
774
|
}), l && (r.onmessage = function(c) {
|
|
775
775
|
c = c.data, u.WORKER_ID === void 0 && c && (u.WORKER_ID = c.workerId), typeof c.input == "string" ? r.postMessage({ workerId: u.WORKER_ID, results: u.parse(c.input, c.config), finished: !0 }) : (r.File && c.input instanceof File || c.input instanceof Object) && (c = u.parse(c.input, c.config)) && r.postMessage({ workerId: u.WORKER_ID, results: c, finished: !0 });
|
|
@@ -1477,7 +1477,7 @@ function it(e) {
|
|
|
1477
1477
|
newDraggableIndex: Gt
|
|
1478
1478
|
}, e));
|
|
1479
1479
|
}
|
|
1480
|
-
var X, He, me, Ve, Qt, er, Ge, jt, un, gt, $n, Gt, Hn, Ze, on = !1, fr = !1, pr = [], Wt, xt, Er, Rr, La, Va, bn, an, On,
|
|
1480
|
+
var X, He, me, Ve, Qt, er, Ge, jt, un, gt, $n, Gt, Hn, Ze, on = !1, fr = !1, pr = [], Wt, xt, Er, Rr, La, Va, bn, an, On, _n = !1, qn = !1, tr, at, Ir = [], Wr = !1, vr = [], Fr = typeof document < "u", Un = fa, Ba = Nn || Bt ? "cssFloat" : "float", is = Fr && !Io && !fa && "draggable" in document.createElement("div"), jo = (function() {
|
|
1481
1481
|
if (Fr) {
|
|
1482
1482
|
if (Bt)
|
|
1483
1483
|
return !1;
|
|
@@ -1858,8 +1858,8 @@ de.prototype = /** @lends Sortable.prototype */
|
|
|
1858
1858
|
return y(), n.insertBefore(X, $), He = n, M(), x(!0);
|
|
1859
1859
|
} else if (r.parentNode === n) {
|
|
1860
1860
|
o = Xe(r);
|
|
1861
|
-
var T = 0, k, c = X.parentNode !== n, d = !ss(X.animated && X.toRect || a, r.animated && r.toRect || o, g), b = g ? "top" : "left",
|
|
1862
|
-
an !== r && (k = o[b],
|
|
1861
|
+
var T = 0, k, c = X.parentNode !== n, d = !ss(X.animated && X.toRect || a, r.animated && r.toRect || o, g), b = g ? "top" : "left", _ = Ia(r, "top", "top") || Ia(X, "top", "top"), j = _ ? _.scrollTop : void 0;
|
|
1862
|
+
an !== r && (k = o[b], _n = !1, qn = !d && i.invertSwap || c), T = hs(t, r, o, g, d ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, qn, an === r);
|
|
1863
1863
|
var L;
|
|
1864
1864
|
if (T !== 0) {
|
|
1865
1865
|
var R = wt(X);
|
|
@@ -1870,11 +1870,11 @@ de.prototype = /** @lends Sortable.prototype */
|
|
|
1870
1870
|
if (T === 0 || L === r)
|
|
1871
1871
|
return x(!1);
|
|
1872
1872
|
an = r, On = T;
|
|
1873
|
-
var
|
|
1873
|
+
var D = r.nextElementSibling, N = !1;
|
|
1874
1874
|
N = T === 1;
|
|
1875
1875
|
var A = Kn(Ve, n, X, a, r, o, t, N);
|
|
1876
1876
|
if (A !== !1)
|
|
1877
|
-
return (A === 1 || A === -1) && (N = A === 1), Wr = !0, setTimeout(fs, 30), y(), N && !
|
|
1877
|
+
return (A === 1 || A === -1) && (N = A === 1), Wr = !0, setTimeout(fs, 30), y(), N && !D ? n.appendChild(X) : r.parentNode.insertBefore(X, N ? D : r), _ && No(_, 0, j - _.scrollTop), He = X.parentNode, k !== void 0 && !qn && (tr = Math.abs(k - Xe(r)[b])), M(), x(!0);
|
|
1878
1878
|
}
|
|
1879
1879
|
if (n.contains(X))
|
|
1880
1880
|
return x(!1);
|
|
@@ -1897,7 +1897,7 @@ de.prototype = /** @lends Sortable.prototype */
|
|
|
1897
1897
|
this._nulling();
|
|
1898
1898
|
return;
|
|
1899
1899
|
}
|
|
1900
|
-
on = !1, qn = !1,
|
|
1900
|
+
on = !1, qn = !1, _n = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yr(this.cloneId), Yr(this._dragStartId), this.nativeDraggable && (Te(document, "drop", this), Te(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Tn && fe(document.body, "user-select", ""), fe(X, "transform", ""), t && (bn && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), me && me.parentNode && me.parentNode.removeChild(me), (Ve === He || Ze && Ze.lastPutMode !== "clone") && Ge && Ge.parentNode && Ge.parentNode.removeChild(Ge), X && (this.nativeDraggable && Te(X, "dragend", this), Ar(X), X.style["will-change"] = "", bn && !on && mt(X, Ze ? Ze.options.ghostClass : this.options.ghostClass, !1), mt(X, this.options.chosenClass, !1), it({
|
|
1901
1901
|
sortable: this,
|
|
1902
1902
|
name: "unchoose",
|
|
1903
1903
|
toEl: He,
|
|
@@ -2069,7 +2069,7 @@ function hs(e, t, n, r, a, o, l, i) {
|
|
|
2069
2069
|
var s = r ? e.clientY : e.clientX, u = r ? n.height : n.width, f = r ? n.top : n.left, p = r ? n.bottom : n.right, v = !1;
|
|
2070
2070
|
if (!l) {
|
|
2071
2071
|
if (i && tr < u * a) {
|
|
2072
|
-
if (!
|
|
2072
|
+
if (!_n && (On === 1 ? s > f + u * o / 2 : s < p - u * o / 2) && (_n = !0), _n)
|
|
2073
2073
|
v = !0;
|
|
2074
2074
|
else if (On === 1 ? s < f + tr : s > p - tr)
|
|
2075
2075
|
return -On;
|
|
@@ -2205,16 +2205,16 @@ var Br = Bo(function(e, t, n, r) {
|
|
|
2205
2205
|
Xr !== n && (Xr = n, rr(), wn = t.scroll, f = t.scrollFn, wn === !0 && (wn = Ht(n, !0)));
|
|
2206
2206
|
var p = 0, v = wn;
|
|
2207
2207
|
do {
|
|
2208
|
-
var g = v, m = Xe(g), S = m.top, C = m.bottom, y = m.left, x = m.right, M = m.width, E = m.height, $ = void 0, T = void 0, k = g.scrollWidth, c = g.scrollHeight, d = fe(g), b = g.scrollLeft,
|
|
2208
|
+
var g = v, m = Xe(g), S = m.top, C = m.bottom, y = m.left, x = m.right, M = m.width, E = m.height, $ = void 0, T = void 0, k = g.scrollWidth, c = g.scrollHeight, d = fe(g), b = g.scrollLeft, _ = g.scrollTop;
|
|
2209
2209
|
g === s ? ($ = M < k && (d.overflowX === "auto" || d.overflowX === "scroll" || d.overflowX === "visible"), T = E < c && (d.overflowY === "auto" || d.overflowY === "scroll" || d.overflowY === "visible")) : ($ = M < k && (d.overflowX === "auto" || d.overflowX === "scroll"), T = E < c && (d.overflowY === "auto" || d.overflowY === "scroll"));
|
|
2210
|
-
var j = $ && (Math.abs(x - a) <= l && b + M < k) - (Math.abs(y - a) <= l && !!b), L = T && (Math.abs(C - o) <= l &&
|
|
2210
|
+
var j = $ && (Math.abs(x - a) <= l && b + M < k) - (Math.abs(y - a) <= l && !!b), L = T && (Math.abs(C - o) <= l && _ + E < c) - (Math.abs(S - o) <= l && !!_);
|
|
2211
2211
|
if (!Ye[p])
|
|
2212
2212
|
for (var R = 0; R <= p; R++)
|
|
2213
2213
|
Ye[R] || (Ye[R] = {});
|
|
2214
2214
|
(Ye[p].vx != j || Ye[p].vy != L || Ye[p].el !== g) && (Ye[p].el = g, Ye[p].vx = j, Ye[p].vy = L, clearInterval(Ye[p].pid), (j != 0 || L != 0) && (u = !0, Ye[p].pid = setInterval(function() {
|
|
2215
2215
|
r && this.layer === 0 && de.active._onTouchMove(hr);
|
|
2216
|
-
var
|
|
2217
|
-
typeof f == "function" && f.call(de.dragged.parentNode[ft], N,
|
|
2216
|
+
var D = Ye[this.layer].vy ? Ye[this.layer].vy * i : 0, N = Ye[this.layer].vx ? Ye[this.layer].vx * i : 0;
|
|
2217
|
+
typeof f == "function" && f.call(de.dragged.parentNode[ft], N, D, e, hr, Ye[this.layer].el) !== "continue" || No(Ye[this.layer].el, N, D);
|
|
2218
2218
|
}.bind({
|
|
2219
2219
|
layer: p
|
|
2220
2220
|
}), 24))), p++;
|
|
@@ -2536,10 +2536,10 @@ function Os() {
|
|
|
2536
2536
|
};
|
|
2537
2537
|
}
|
|
2538
2538
|
Os();
|
|
2539
|
-
const
|
|
2539
|
+
const _s = {
|
|
2540
2540
|
class: "pv-relative",
|
|
2541
2541
|
style: { width: "fit-content" }
|
|
2542
|
-
},
|
|
2542
|
+
}, Ds = ["disabled"], Ps = {
|
|
2543
2543
|
key: 0,
|
|
2544
2544
|
class: "pv-shimmer"
|
|
2545
2545
|
}, Ms = /* @__PURE__ */ se({
|
|
@@ -2583,7 +2583,7 @@ const Ds = {
|
|
|
2583
2583
|
},
|
|
2584
2584
|
...r.popoverCssProperties
|
|
2585
2585
|
} : r.popoverCssProperties);
|
|
2586
|
-
return (y, x) => Ct((h(), F("div",
|
|
2586
|
+
return (y, x) => Ct((h(), F("div", _s, [
|
|
2587
2587
|
V("button", {
|
|
2588
2588
|
ref_key: "triggerRef",
|
|
2589
2589
|
ref: l,
|
|
@@ -2595,7 +2595,7 @@ const Ds = {
|
|
|
2595
2595
|
Ke(y.$slots, "trigger", {}, () => [
|
|
2596
2596
|
x[1] || (x[1] = pt("Open", -1))
|
|
2597
2597
|
], !0)
|
|
2598
|
-
], 10,
|
|
2598
|
+
], 10, Ds),
|
|
2599
2599
|
(h(), ee(la, {
|
|
2600
2600
|
to: e.teleportLocation,
|
|
2601
2601
|
disabled: !e.useTeleport
|
|
@@ -3124,7 +3124,7 @@ function bu(e) {
|
|
|
3124
3124
|
function Ue(e) {
|
|
3125
3125
|
return !ma(e);
|
|
3126
3126
|
}
|
|
3127
|
-
function
|
|
3127
|
+
function Dn(e, t = !0) {
|
|
3128
3128
|
return e instanceof Object && e.constructor === Object && (t || Object.keys(e).length !== 0);
|
|
3129
3129
|
}
|
|
3130
3130
|
function qt(e, ...t) {
|
|
@@ -3163,7 +3163,7 @@ function qa(e) {
|
|
|
3163
3163
|
return mn(e) ? e.replace(/[A-Z]/g, (t, n) => n === 0 ? t : "." + t.toLowerCase()).toLowerCase() : e;
|
|
3164
3164
|
}
|
|
3165
3165
|
function Tu(e) {
|
|
3166
|
-
return
|
|
3166
|
+
return Dn(e) && e.hasOwnProperty("$value") && e.hasOwnProperty("$type") ? e.$value : e;
|
|
3167
3167
|
}
|
|
3168
3168
|
function Fu(e) {
|
|
3169
3169
|
return e.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
@@ -3232,7 +3232,7 @@ function il(e, t) {
|
|
|
3232
3232
|
}
|
|
3233
3233
|
return e;
|
|
3234
3234
|
}
|
|
3235
|
-
var Jt = (...e) =>
|
|
3235
|
+
var Jt = (...e) => _u(yt.getTheme(), ...e), _u = (e = {}, t, n, r) => {
|
|
3236
3236
|
if (t) {
|
|
3237
3237
|
let { variable: a, options: o } = yt.defaults || {}, { prefix: l, transform: i } = e?.options || o || {}, s = Zt(t, In) ? t : `{${t}}`;
|
|
3238
3238
|
return r === "value" || ma(r) && i === "strict" ? yt.getTokenValue(t) : ll(s, void 0, l, [a.excludedKeyRegex], n);
|
|
@@ -3249,13 +3249,13 @@ function Wn(e, ...t) {
|
|
|
3249
3249
|
}
|
|
3250
3250
|
return qt(e, { dt: Jt });
|
|
3251
3251
|
}
|
|
3252
|
-
function
|
|
3252
|
+
function Du(e, t = {}) {
|
|
3253
3253
|
let n = yt.defaults.variable, { prefix: r = n.prefix, selector: a = n.selector, excludedKeyRegex: o = n.excludedKeyRegex } = t, l = [], i = [], s = [{ node: e, path: r }];
|
|
3254
3254
|
for (; s.length; ) {
|
|
3255
3255
|
let { node: f, path: p } = s.pop();
|
|
3256
3256
|
for (let v in f) {
|
|
3257
3257
|
let g = f[v], m = Tu(g), S = Zt(v, o) ? ea(p) : ea(p, el(v));
|
|
3258
|
-
if (
|
|
3258
|
+
if (Dn(m)) s.push({ node: m, path: S });
|
|
3259
3259
|
else {
|
|
3260
3260
|
let C = ol(S), y = ll(m, S, r, [o]);
|
|
3261
3261
|
Ou(i, C, y);
|
|
@@ -3284,16 +3284,16 @@ var kt = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
3284
3284
|
return (r = t.map((a) => a.resolve(n)).find((a) => a.matched)) != null ? r : this.rules.custom.resolve(n);
|
|
3285
3285
|
});
|
|
3286
3286
|
} }, _toVariables(e, t) {
|
|
3287
|
-
return
|
|
3287
|
+
return Du(e, { prefix: t?.prefix });
|
|
3288
3288
|
}, getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: a }) {
|
|
3289
3289
|
var o, l, i, s, u, f, p;
|
|
3290
3290
|
let { preset: v, options: g } = t, m, S, C, y, x, M, E;
|
|
3291
3291
|
if (Ue(v) && g.transform !== "strict") {
|
|
3292
|
-
let { primitive: $, semantic: T, extend: k } = v, c = T || {}, { colorScheme: d } = c, b = It(c, ["colorScheme"]),
|
|
3292
|
+
let { primitive: $, semantic: T, extend: k } = v, c = T || {}, { colorScheme: d } = c, b = It(c, ["colorScheme"]), _ = k || {}, { colorScheme: j } = _, L = It(_, ["colorScheme"]), R = d || {}, { dark: D } = R, N = It(R, ["dark"]), A = j || {}, { dark: I } = A, B = It(A, ["dark"]), K = Ue($) ? this._toVariables({ primitive: $ }, g) : {}, H = Ue(b) ? this._toVariables({ semantic: b }, g) : {}, Y = Ue(N) ? this._toVariables({ light: N }, g) : {}, W = Ue(D) ? this._toVariables({ dark: D }, g) : {}, le = Ue(L) ? this._toVariables({ semantic: L }, g) : {}, he = Ue(B) ? this._toVariables({ light: B }, g) : {}, ge = Ue(I) ? this._toVariables({ dark: I }, g) : {}, [Me, oe] = [(o = K.declarations) != null ? o : "", K.tokens], [ue, pe] = [(l = H.declarations) != null ? l : "", H.tokens || []], [ne, xe] = [(i = Y.declarations) != null ? i : "", Y.tokens || []], [$e, ke] = [(s = W.declarations) != null ? s : "", W.tokens || []], [be, ye] = [(u = le.declarations) != null ? u : "", le.tokens || []], [Ae, ce] = [(f = he.declarations) != null ? f : "", he.tokens || []], [De, Z] = [(p = ge.declarations) != null ? p : "", ge.tokens || []];
|
|
3293
3293
|
m = this.transformCSS(e, Me, "light", "variable", g, r, a), S = oe;
|
|
3294
3294
|
let re = this.transformCSS(e, `${ue}${ne}`, "light", "variable", g, r, a), ie = this.transformCSS(e, `${$e}`, "dark", "variable", g, r, a);
|
|
3295
3295
|
C = `${re}${ie}`, y = [.../* @__PURE__ */ new Set([...pe, ...xe, ...ke])];
|
|
3296
|
-
let Qe = this.transformCSS(e, `${be}${Ae}color-scheme:light`, "light", "variable", g, r, a), Re = this.transformCSS(e, `${
|
|
3296
|
+
let Qe = this.transformCSS(e, `${be}${Ae}color-scheme:light`, "light", "variable", g, r, a), Re = this.transformCSS(e, `${De}color-scheme:dark`, "dark", "variable", g, r, a);
|
|
3297
3297
|
x = `${Qe}${Re}`, M = [.../* @__PURE__ */ new Set([...ye, ...ce, ...Z])], E = qt(v.css, { dt: Jt });
|
|
3298
3298
|
}
|
|
3299
3299
|
return { primitive: { css: m, tokens: S }, semantic: { css: C, tokens: y }, global: { css: x, tokens: M }, style: E };
|
|
@@ -3301,7 +3301,7 @@ var kt = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
3301
3301
|
var i, s, u;
|
|
3302
3302
|
let f, p, v;
|
|
3303
3303
|
if (Ue(t) && n.transform !== "strict") {
|
|
3304
|
-
let g = e.replace("-directive", ""), m = t, { colorScheme: S, extend: C, css: y } = m, x = It(m, ["colorScheme", "extend", "css"]), M = C || {}, { colorScheme: E } = M, $ = It(M, ["colorScheme"]), T = S || {}, { dark: k } = T, c = It(T, ["dark"]), d = E || {}, { dark: b } = d,
|
|
3304
|
+
let g = e.replace("-directive", ""), m = t, { colorScheme: S, extend: C, css: y } = m, x = It(m, ["colorScheme", "extend", "css"]), M = C || {}, { colorScheme: E } = M, $ = It(M, ["colorScheme"]), T = S || {}, { dark: k } = T, c = It(T, ["dark"]), d = E || {}, { dark: b } = d, _ = It(d, ["dark"]), j = Ue(x) ? this._toVariables({ [g]: Ft(Ft({}, x), $) }, n) : {}, L = Ue(c) ? this._toVariables({ [g]: Ft(Ft({}, c), _) }, n) : {}, R = Ue(k) ? this._toVariables({ [g]: Ft(Ft({}, k), b) }, n) : {}, [D, N] = [(i = j.declarations) != null ? i : "", j.tokens || []], [A, I] = [(s = L.declarations) != null ? s : "", L.tokens || []], [B, K] = [(u = R.declarations) != null ? u : "", R.tokens || []], H = this.transformCSS(g, `${D}${A}`, "light", "variable", n, a, o, l), Y = this.transformCSS(g, B, "dark", "variable", n, a, o, l);
|
|
3305
3305
|
f = `${H}${Y}`, p = [.../* @__PURE__ */ new Set([...N, ...I, ...K])], v = qt(y, { dt: Jt });
|
|
3306
3306
|
}
|
|
3307
3307
|
return { css: f, tokens: p, style: v };
|
|
@@ -3324,7 +3324,7 @@ var kt = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
3324
3324
|
}, getCommonStyleSheet({ name: e = "", theme: t = {}, params: n, props: r = {}, set: a, defaults: o }) {
|
|
3325
3325
|
let l = this.getCommon({ name: e, theme: t, params: n, set: a, defaults: o }), i = Object.entries(r).reduce((s, [u, f]) => s.push(`${u}="${f}"`) && s, []).join(" ");
|
|
3326
3326
|
return Object.entries(l || {}).reduce((s, [u, f]) => {
|
|
3327
|
-
if (
|
|
3327
|
+
if (Dn(f) && Object.hasOwn(f, "css")) {
|
|
3328
3328
|
let p = Pn(f.css), v = `${u}-variables`;
|
|
3329
3329
|
s.push(`<style type="text/css" data-primevue-style-id="${v}" ${i}>${p}</style>`);
|
|
3330
3330
|
}
|
|
@@ -3353,7 +3353,7 @@ var kt = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
3353
3353
|
}, l = (i, s, u) => {
|
|
3354
3354
|
Object.entries(i).forEach(([f, p]) => {
|
|
3355
3355
|
let v = Zt(f, t.variable.excludedKeyRegex) ? s : s ? `${s}.${qa(f)}` : qa(f), g = u ? `${u}.${f}` : f;
|
|
3356
|
-
|
|
3356
|
+
Dn(p) ? l(p, v, g) : (a[v] || (a[v] = { paths: [], computed: (m, S = {}, C = []) => {
|
|
3357
3357
|
if (a[v].paths.length === 1) return a[v].paths[0].computed(a[v].paths[0].scheme, S.binding, C);
|
|
3358
3358
|
if (m && m !== "none") for (let y = 0; y < a[v].paths.length; y++) {
|
|
3359
3359
|
let x = a[v].paths[y];
|
|
@@ -3382,7 +3382,7 @@ var kt = { regex: { rules: { class: { pattern: /^\.([a-zA-Z][\w-]*)$/, resolve(e
|
|
|
3382
3382
|
}
|
|
3383
3383
|
if (s) {
|
|
3384
3384
|
let u = { name: "primeui" };
|
|
3385
|
-
|
|
3385
|
+
Dn(s) && (u.name = qt(s.name, { name: e, type: r })), Ue(u.name) && (t = ln(`@layer ${u.name}`, t), o?.layerNames(u.name));
|
|
3386
3386
|
}
|
|
3387
3387
|
return t;
|
|
3388
3388
|
}
|
|
@@ -3629,8 +3629,8 @@ function Iu(e) {
|
|
|
3629
3629
|
}
|
|
3630
3630
|
var Au = 0;
|
|
3631
3631
|
function Lu(e) {
|
|
3632
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = G(!1), r = G(e), a = G(null), o = mu() ? window.document : void 0, l = t.document, i = l === void 0 ? o : l, s = t.immediate, u = s === void 0 ? !0 : s, f = t.manual, p = f === void 0 ? !1 : f, v = t.name, g = v === void 0 ? "style_".concat(++Au) : v, m = t.id, S = m === void 0 ? void 0 : m, C = t.media, y = C === void 0 ? void 0 : C, x = t.nonce, M = x === void 0 ? void 0 : x, E = t.first, $ = E === void 0 ? !1 : E, T = t.onMounted, k = T === void 0 ? void 0 : T, c = t.onUpdated, d = c === void 0 ? void 0 : c, b = t.onLoad,
|
|
3633
|
-
},
|
|
3632
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = G(!1), r = G(e), a = G(null), o = mu() ? window.document : void 0, l = t.document, i = l === void 0 ? o : l, s = t.immediate, u = s === void 0 ? !0 : s, f = t.manual, p = f === void 0 ? !1 : f, v = t.name, g = v === void 0 ? "style_".concat(++Au) : v, m = t.id, S = m === void 0 ? void 0 : m, C = t.media, y = C === void 0 ? void 0 : C, x = t.nonce, M = x === void 0 ? void 0 : x, E = t.first, $ = E === void 0 ? !1 : E, T = t.onMounted, k = T === void 0 ? void 0 : T, c = t.onUpdated, d = c === void 0 ? void 0 : c, b = t.onLoad, _ = b === void 0 ? void 0 : b, j = t.props, L = j === void 0 ? {} : j, R = function() {
|
|
3633
|
+
}, D = function(I) {
|
|
3634
3634
|
var B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3635
3635
|
if (i) {
|
|
3636
3636
|
var K = Ka(Ka({}, L), B), H = K.name || g, Y = K.id || S, W = K.nonce || M;
|
|
@@ -3640,7 +3640,7 @@ function Lu(e) {
|
|
|
3640
3640
|
media: y,
|
|
3641
3641
|
nonce: W
|
|
3642
3642
|
}), $ ? i.head.prepend(a.value) : i.head.appendChild(a.value), gu(a.value, "data-primevue-style-id", H), Jr(a.value, K), a.value.onload = function(le) {
|
|
3643
|
-
return
|
|
3643
|
+
return _?.(le, {
|
|
3644
3644
|
name: H
|
|
3645
3645
|
});
|
|
3646
3646
|
}, k?.(H)), !n.value && (R = Ce(r, function(le) {
|
|
@@ -3652,13 +3652,13 @@ function Lu(e) {
|
|
|
3652
3652
|
}, N = function() {
|
|
3653
3653
|
!i || !n.value || (R(), hu(a.value) && i.head.removeChild(a.value), n.value = !1, a.value = null);
|
|
3654
3654
|
};
|
|
3655
|
-
return u && !p && Iu(
|
|
3655
|
+
return u && !p && Iu(D), {
|
|
3656
3656
|
id: S,
|
|
3657
3657
|
name: g,
|
|
3658
3658
|
el: a,
|
|
3659
3659
|
css: r,
|
|
3660
3660
|
unload: N,
|
|
3661
|
-
load:
|
|
3661
|
+
load: D,
|
|
3662
3662
|
isLoaded: xo(n)
|
|
3663
3663
|
};
|
|
3664
3664
|
}
|
|
@@ -3861,17 +3861,17 @@ function Yu() {
|
|
|
3861
3861
|
e.exports = r();
|
|
3862
3862
|
})(Wu, (function() {
|
|
3863
3863
|
var n = 1e3, r = 6e4, a = 36e5, o = "millisecond", l = "second", i = "minute", s = "hour", u = "day", f = "week", p = "month", v = "quarter", g = "year", m = "date", S = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, x = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
3864
|
-
var
|
|
3865
|
-
return "[" + R + (
|
|
3866
|
-
} }, M = function(R,
|
|
3864
|
+
var D = ["th", "st", "nd", "rd"], N = R % 100;
|
|
3865
|
+
return "[" + R + (D[(N - 20) % 10] || D[N] || D[0]) + "]";
|
|
3866
|
+
} }, M = function(R, D, N) {
|
|
3867
3867
|
var A = String(R);
|
|
3868
|
-
return !A || A.length >=
|
|
3868
|
+
return !A || A.length >= D ? R : "" + Array(D + 1 - A.length).join(N) + R;
|
|
3869
3869
|
}, E = { s: M, z: function(R) {
|
|
3870
|
-
var
|
|
3871
|
-
return (
|
|
3872
|
-
}, m: function R(
|
|
3873
|
-
if (
|
|
3874
|
-
var A = 12 * (N.year() -
|
|
3870
|
+
var D = -R.utcOffset(), N = Math.abs(D), A = Math.floor(N / 60), I = N % 60;
|
|
3871
|
+
return (D <= 0 ? "+" : "-") + M(A, 2, "0") + ":" + M(I, 2, "0");
|
|
3872
|
+
}, m: function R(D, N) {
|
|
3873
|
+
if (D.date() < N.date()) return -R(N, D);
|
|
3874
|
+
var A = 12 * (N.year() - D.year()) + (N.month() - D.month()), I = D.clone().add(A, p), B = N - I < 0, K = D.clone().add(A + (B ? -1 : 1), p);
|
|
3875
3875
|
return +(-(A + (N - I) / (B ? I - K : K - I)) || 0);
|
|
3876
3876
|
}, a: function(R) {
|
|
3877
3877
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
@@ -3883,37 +3883,37 @@ function Yu() {
|
|
|
3883
3883
|
T[$] = x;
|
|
3884
3884
|
var k = "$isDayjsObject", c = function(R) {
|
|
3885
3885
|
return R instanceof j || !(!R || !R[k]);
|
|
3886
|
-
}, d = function R(
|
|
3886
|
+
}, d = function R(D, N, A) {
|
|
3887
3887
|
var I;
|
|
3888
|
-
if (!
|
|
3889
|
-
if (typeof
|
|
3890
|
-
var B =
|
|
3888
|
+
if (!D) return $;
|
|
3889
|
+
if (typeof D == "string") {
|
|
3890
|
+
var B = D.toLowerCase();
|
|
3891
3891
|
T[B] && (I = B), N && (T[B] = N, I = B);
|
|
3892
|
-
var K =
|
|
3892
|
+
var K = D.split("-");
|
|
3893
3893
|
if (!I && K.length > 1) return R(K[0]);
|
|
3894
3894
|
} else {
|
|
3895
|
-
var H =
|
|
3896
|
-
T[H] =
|
|
3895
|
+
var H = D.name;
|
|
3896
|
+
T[H] = D, I = H;
|
|
3897
3897
|
}
|
|
3898
3898
|
return !A && I && ($ = I), I || !A && $;
|
|
3899
|
-
}, b = function(R,
|
|
3899
|
+
}, b = function(R, D) {
|
|
3900
3900
|
if (c(R)) return R.clone();
|
|
3901
|
-
var N = typeof
|
|
3901
|
+
var N = typeof D == "object" ? D : {};
|
|
3902
3902
|
return N.date = R, N.args = arguments, new j(N);
|
|
3903
|
-
},
|
|
3904
|
-
|
|
3905
|
-
return b(R, { locale:
|
|
3903
|
+
}, _ = E;
|
|
3904
|
+
_.l = d, _.i = c, _.w = function(R, D) {
|
|
3905
|
+
return b(R, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
3906
3906
|
};
|
|
3907
3907
|
var j = (function() {
|
|
3908
3908
|
function R(N) {
|
|
3909
3909
|
this.$L = d(N.locale, null, !0), this.parse(N), this.$x = this.$x || N.x || {}, this[k] = !0;
|
|
3910
3910
|
}
|
|
3911
|
-
var
|
|
3912
|
-
return
|
|
3911
|
+
var D = R.prototype;
|
|
3912
|
+
return D.parse = function(N) {
|
|
3913
3913
|
this.$d = (function(A) {
|
|
3914
3914
|
var I = A.date, B = A.utc;
|
|
3915
3915
|
if (I === null) return /* @__PURE__ */ new Date(NaN);
|
|
3916
|
-
if (
|
|
3916
|
+
if (_.u(I)) return /* @__PURE__ */ new Date();
|
|
3917
3917
|
if (I instanceof Date) return new Date(I);
|
|
3918
3918
|
if (typeof I == "string" && !/Z$/i.test(I)) {
|
|
3919
3919
|
var K = I.match(C);
|
|
@@ -3924,32 +3924,32 @@ function Yu() {
|
|
|
3924
3924
|
}
|
|
3925
3925
|
return new Date(I);
|
|
3926
3926
|
})(N), this.init();
|
|
3927
|
-
},
|
|
3927
|
+
}, D.init = function() {
|
|
3928
3928
|
var N = this.$d;
|
|
3929
3929
|
this.$y = N.getFullYear(), this.$M = N.getMonth(), this.$D = N.getDate(), this.$W = N.getDay(), this.$H = N.getHours(), this.$m = N.getMinutes(), this.$s = N.getSeconds(), this.$ms = N.getMilliseconds();
|
|
3930
|
-
},
|
|
3931
|
-
return
|
|
3932
|
-
},
|
|
3930
|
+
}, D.$utils = function() {
|
|
3931
|
+
return _;
|
|
3932
|
+
}, D.isValid = function() {
|
|
3933
3933
|
return this.$d.toString() !== S;
|
|
3934
|
-
},
|
|
3934
|
+
}, D.isSame = function(N, A) {
|
|
3935
3935
|
var I = b(N);
|
|
3936
3936
|
return this.startOf(A) <= I && I <= this.endOf(A);
|
|
3937
|
-
},
|
|
3937
|
+
}, D.isAfter = function(N, A) {
|
|
3938
3938
|
return b(N) < this.startOf(A);
|
|
3939
|
-
},
|
|
3939
|
+
}, D.isBefore = function(N, A) {
|
|
3940
3940
|
return this.endOf(A) < b(N);
|
|
3941
|
-
},
|
|
3942
|
-
return
|
|
3943
|
-
},
|
|
3941
|
+
}, D.$g = function(N, A, I) {
|
|
3942
|
+
return _.u(N) ? this[A] : this.set(I, N);
|
|
3943
|
+
}, D.unix = function() {
|
|
3944
3944
|
return Math.floor(this.valueOf() / 1e3);
|
|
3945
|
-
},
|
|
3945
|
+
}, D.valueOf = function() {
|
|
3946
3946
|
return this.$d.getTime();
|
|
3947
|
-
},
|
|
3948
|
-
var I = this, B = !!
|
|
3949
|
-
var ne =
|
|
3947
|
+
}, D.startOf = function(N, A) {
|
|
3948
|
+
var I = this, B = !!_.u(A) || A, K = _.p(N), H = function(ue, pe) {
|
|
3949
|
+
var ne = _.w(I.$u ? Date.UTC(I.$y, pe, ue) : new Date(I.$y, pe, ue), I);
|
|
3950
3950
|
return B ? ne : ne.endOf(u);
|
|
3951
3951
|
}, Y = function(ue, pe) {
|
|
3952
|
-
return
|
|
3952
|
+
return _.w(I.toDate()[ue].apply(I.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(pe)), I);
|
|
3953
3953
|
}, W = this.$W, le = this.$M, he = this.$D, ge = "set" + (this.$u ? "UTC" : "");
|
|
3954
3954
|
switch (K) {
|
|
3955
3955
|
case g:
|
|
@@ -3971,41 +3971,41 @@ function Yu() {
|
|
|
3971
3971
|
default:
|
|
3972
3972
|
return this.clone();
|
|
3973
3973
|
}
|
|
3974
|
-
},
|
|
3974
|
+
}, D.endOf = function(N) {
|
|
3975
3975
|
return this.startOf(N, !1);
|
|
3976
|
-
},
|
|
3977
|
-
var I, B =
|
|
3976
|
+
}, D.$set = function(N, A) {
|
|
3977
|
+
var I, B = _.p(N), K = "set" + (this.$u ? "UTC" : ""), H = (I = {}, I[u] = K + "Date", I[m] = K + "Date", I[p] = K + "Month", I[g] = K + "FullYear", I[s] = K + "Hours", I[i] = K + "Minutes", I[l] = K + "Seconds", I[o] = K + "Milliseconds", I)[B], Y = B === u ? this.$D + (A - this.$W) : A;
|
|
3978
3978
|
if (B === p || B === g) {
|
|
3979
3979
|
var W = this.clone().set(m, 1);
|
|
3980
3980
|
W.$d[H](Y), W.init(), this.$d = W.set(m, Math.min(this.$D, W.daysInMonth())).$d;
|
|
3981
3981
|
} else H && this.$d[H](Y);
|
|
3982
3982
|
return this.init(), this;
|
|
3983
|
-
},
|
|
3983
|
+
}, D.set = function(N, A) {
|
|
3984
3984
|
return this.clone().$set(N, A);
|
|
3985
|
-
},
|
|
3986
|
-
return this[
|
|
3987
|
-
},
|
|
3985
|
+
}, D.get = function(N) {
|
|
3986
|
+
return this[_.p(N)]();
|
|
3987
|
+
}, D.add = function(N, A) {
|
|
3988
3988
|
var I, B = this;
|
|
3989
3989
|
N = Number(N);
|
|
3990
|
-
var K =
|
|
3990
|
+
var K = _.p(A), H = function(le) {
|
|
3991
3991
|
var he = b(B);
|
|
3992
|
-
return
|
|
3992
|
+
return _.w(he.date(he.date() + Math.round(le * N)), B);
|
|
3993
3993
|
};
|
|
3994
3994
|
if (K === p) return this.set(p, this.$M + N);
|
|
3995
3995
|
if (K === g) return this.set(g, this.$y + N);
|
|
3996
3996
|
if (K === u) return H(1);
|
|
3997
3997
|
if (K === f) return H(7);
|
|
3998
3998
|
var Y = (I = {}, I[i] = r, I[s] = a, I[l] = n, I)[K] || 1, W = this.$d.getTime() + N * Y;
|
|
3999
|
-
return
|
|
4000
|
-
},
|
|
3999
|
+
return _.w(W, this);
|
|
4000
|
+
}, D.subtract = function(N, A) {
|
|
4001
4001
|
return this.add(-1 * N, A);
|
|
4002
|
-
},
|
|
4002
|
+
}, D.format = function(N) {
|
|
4003
4003
|
var A = this, I = this.$locale();
|
|
4004
4004
|
if (!this.isValid()) return I.invalidDate || S;
|
|
4005
|
-
var B = N || "YYYY-MM-DDTHH:mm:ssZ", K =
|
|
4005
|
+
var B = N || "YYYY-MM-DDTHH:mm:ssZ", K = _.z(this), H = this.$H, Y = this.$m, W = this.$M, le = I.weekdays, he = I.months, ge = I.meridiem, Me = function(pe, ne, xe, $e) {
|
|
4006
4006
|
return pe && (pe[ne] || pe(A, B)) || xe[ne].slice(0, $e);
|
|
4007
4007
|
}, oe = function(pe) {
|
|
4008
|
-
return
|
|
4008
|
+
return _.s(H % 12 || 12, pe, "0");
|
|
4009
4009
|
}, ue = ge || function(pe, ne, xe) {
|
|
4010
4010
|
var $e = pe < 12 ? "AM" : "PM";
|
|
4011
4011
|
return xe ? $e.toLowerCase() : $e;
|
|
@@ -4016,11 +4016,11 @@ function Yu() {
|
|
|
4016
4016
|
case "YY":
|
|
4017
4017
|
return String(A.$y).slice(-2);
|
|
4018
4018
|
case "YYYY":
|
|
4019
|
-
return
|
|
4019
|
+
return _.s(A.$y, 4, "0");
|
|
4020
4020
|
case "M":
|
|
4021
4021
|
return W + 1;
|
|
4022
4022
|
case "MM":
|
|
4023
|
-
return
|
|
4023
|
+
return _.s(W + 1, 2, "0");
|
|
4024
4024
|
case "MMM":
|
|
4025
4025
|
return Me(I.monthsShort, W, he, 3);
|
|
4026
4026
|
case "MMMM":
|
|
@@ -4028,7 +4028,7 @@ function Yu() {
|
|
|
4028
4028
|
case "D":
|
|
4029
4029
|
return A.$D;
|
|
4030
4030
|
case "DD":
|
|
4031
|
-
return
|
|
4031
|
+
return _.s(A.$D, 2, "0");
|
|
4032
4032
|
case "d":
|
|
4033
4033
|
return String(A.$W);
|
|
4034
4034
|
case "dd":
|
|
@@ -4040,7 +4040,7 @@ function Yu() {
|
|
|
4040
4040
|
case "H":
|
|
4041
4041
|
return String(H);
|
|
4042
4042
|
case "HH":
|
|
4043
|
-
return
|
|
4043
|
+
return _.s(H, 2, "0");
|
|
4044
4044
|
case "h":
|
|
4045
4045
|
return oe(1);
|
|
4046
4046
|
case "hh":
|
|
@@ -4052,24 +4052,24 @@ function Yu() {
|
|
|
4052
4052
|
case "m":
|
|
4053
4053
|
return String(Y);
|
|
4054
4054
|
case "mm":
|
|
4055
|
-
return
|
|
4055
|
+
return _.s(Y, 2, "0");
|
|
4056
4056
|
case "s":
|
|
4057
4057
|
return String(A.$s);
|
|
4058
4058
|
case "ss":
|
|
4059
|
-
return
|
|
4059
|
+
return _.s(A.$s, 2, "0");
|
|
4060
4060
|
case "SSS":
|
|
4061
|
-
return
|
|
4061
|
+
return _.s(A.$ms, 3, "0");
|
|
4062
4062
|
case "Z":
|
|
4063
4063
|
return K;
|
|
4064
4064
|
}
|
|
4065
4065
|
return null;
|
|
4066
4066
|
})(pe) || K.replace(":", "");
|
|
4067
4067
|
}));
|
|
4068
|
-
},
|
|
4068
|
+
}, D.utcOffset = function() {
|
|
4069
4069
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4070
|
-
},
|
|
4071
|
-
var B, K = this, H =
|
|
4072
|
-
return
|
|
4070
|
+
}, D.diff = function(N, A, I) {
|
|
4071
|
+
var B, K = this, H = _.p(A), Y = b(N), W = (Y.utcOffset() - this.utcOffset()) * r, le = this - Y, he = function() {
|
|
4072
|
+
return _.m(K, Y);
|
|
4073
4073
|
};
|
|
4074
4074
|
switch (H) {
|
|
4075
4075
|
case g:
|
|
@@ -4099,33 +4099,33 @@ function Yu() {
|
|
|
4099
4099
|
default:
|
|
4100
4100
|
B = le;
|
|
4101
4101
|
}
|
|
4102
|
-
return I ? B :
|
|
4103
|
-
},
|
|
4102
|
+
return I ? B : _.a(B);
|
|
4103
|
+
}, D.daysInMonth = function() {
|
|
4104
4104
|
return this.endOf(p).$D;
|
|
4105
|
-
},
|
|
4105
|
+
}, D.$locale = function() {
|
|
4106
4106
|
return T[this.$L];
|
|
4107
|
-
},
|
|
4107
|
+
}, D.locale = function(N, A) {
|
|
4108
4108
|
if (!N) return this.$L;
|
|
4109
4109
|
var I = this.clone(), B = d(N, A, !0);
|
|
4110
4110
|
return B && (I.$L = B), I;
|
|
4111
|
-
},
|
|
4112
|
-
return
|
|
4113
|
-
},
|
|
4111
|
+
}, D.clone = function() {
|
|
4112
|
+
return _.w(this.$d, this);
|
|
4113
|
+
}, D.toDate = function() {
|
|
4114
4114
|
return new Date(this.valueOf());
|
|
4115
|
-
},
|
|
4115
|
+
}, D.toJSON = function() {
|
|
4116
4116
|
return this.isValid() ? this.toISOString() : null;
|
|
4117
|
-
},
|
|
4117
|
+
}, D.toISOString = function() {
|
|
4118
4118
|
return this.$d.toISOString();
|
|
4119
|
-
},
|
|
4119
|
+
}, D.toString = function() {
|
|
4120
4120
|
return this.$d.toUTCString();
|
|
4121
4121
|
}, R;
|
|
4122
4122
|
})(), L = j.prototype;
|
|
4123
4123
|
return b.prototype = L, [["$ms", o], ["$s", l], ["$m", i], ["$H", s], ["$W", u], ["$M", p], ["$y", g], ["$D", m]].forEach((function(R) {
|
|
4124
|
-
L[R[1]] = function(
|
|
4125
|
-
return this.$g(
|
|
4124
|
+
L[R[1]] = function(D) {
|
|
4125
|
+
return this.$g(D, R[0], R[1]);
|
|
4126
4126
|
};
|
|
4127
|
-
})), b.extend = function(R,
|
|
4128
|
-
return R.$i || (R(
|
|
4127
|
+
})), b.extend = function(R, D) {
|
|
4128
|
+
return R.$i || (R(D, j, b), R.$i = !0), b;
|
|
4129
4129
|
}, b.locale = d, b.isDayjs = c, b.unix = function(R) {
|
|
4130
4130
|
return b(1e3 * R);
|
|
4131
4131
|
}, b.en = T[$], b.Ls = T, b.p = {}, b;
|
|
@@ -4261,8 +4261,8 @@ function nc() {
|
|
|
4261
4261
|
var x = (function(T, k, c) {
|
|
4262
4262
|
var d = T - 60 * k * 1e3, b = u(d, c);
|
|
4263
4263
|
if (k === b) return [d, k];
|
|
4264
|
-
var
|
|
4265
|
-
return b ===
|
|
4264
|
+
var _ = u(d -= 60 * (b - k) * 1e3, c);
|
|
4265
|
+
return b === _ ? [d, b] : [T - 60 * Math.min(b, _) * 1e3, Math.max(b, _)];
|
|
4266
4266
|
})(l.utc(v, S).valueOf(), y, C), M = x[0], E = x[1], $ = l(M).utcOffset(E);
|
|
4267
4267
|
return $.$x.$timezone = C, $;
|
|
4268
4268
|
}, l.tz.guess = function() {
|
|
@@ -4490,12 +4490,12 @@ const uc = {
|
|
|
4490
4490
|
}, 8, ["class", "css-custom-list-properties", "css-custom-properties"])
|
|
4491
4491
|
], 8, ["to", "disabled"]));
|
|
4492
4492
|
}
|
|
4493
|
-
}), wc = ["disabled"], Sc = {
|
|
4493
|
+
}), wc = ["disabled"], Sc = { class: "pv-flex" }, Cc = {
|
|
4494
4494
|
key: 0,
|
|
4495
4495
|
"data-testid": "pv-select-prefix-label",
|
|
4496
4496
|
class: "pv-border-right",
|
|
4497
4497
|
style: { color: "#89989b", "padding-right": "4px" }
|
|
4498
|
-
},
|
|
4498
|
+
}, xc = { key: 4 }, ya = /* @__PURE__ */ se({
|
|
4499
4499
|
__name: "PvSelectButtonTrigger",
|
|
4500
4500
|
props: {
|
|
4501
4501
|
variant: { default: "secondary" },
|
|
@@ -4537,38 +4537,40 @@ const uc = {
|
|
|
4537
4537
|
disabled: e.disabled || e.isLoading,
|
|
4538
4538
|
onClick: o[1] || (o[1] = (l) => a.$emit("handle-toggle-dropdown"))
|
|
4539
4539
|
}, [
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4540
|
+
V("div", Sc, [
|
|
4541
|
+
e.prefixLabel ? (h(), F("p", Cc, ae(e.prefixLabel), 1)) : U("", !0),
|
|
4542
|
+
e.counterPosition === "left" && e.counterValue ? (h(), ee(en, {
|
|
4543
|
+
key: 1,
|
|
4544
|
+
"data-testid": "pv-multi-select-left-counter-badge",
|
|
4545
|
+
value: e.counterValue,
|
|
4546
|
+
variant: e.counterBadgeVariant,
|
|
4547
|
+
size: "sm"
|
|
4548
|
+
}, null, 8, ["value", "variant"])) : U("", !0),
|
|
4549
|
+
e.icon ? (h(), ee(Ne, {
|
|
4550
|
+
key: 2,
|
|
4551
|
+
"data-testid": "pv-multi-select-button-icon",
|
|
4552
|
+
name: e.icon
|
|
4553
|
+
}, null, 8, ["name"])) : U("", !0),
|
|
4554
|
+
e.companyLogo ? (h(), ee(Zo, {
|
|
4555
|
+
key: 3,
|
|
4556
|
+
name: e.companyLogo,
|
|
4557
|
+
size: "sm"
|
|
4558
|
+
}, null, 8, ["name"])) : U("", !0),
|
|
4559
|
+
e.isLoading || e.label ? (h(), F("span", xc, ae(e.isLoading ? "Loading..." : e.label), 1)) : U("", !0),
|
|
4560
|
+
e.counterPosition === "right" && e.counterValue ? (h(), ee(en, {
|
|
4561
|
+
key: 5,
|
|
4562
|
+
"data-testid": "pv-multi-select-right-counter-badge",
|
|
4563
|
+
value: e.counterValue,
|
|
4564
|
+
variant: e.counterBadgeVariant,
|
|
4565
|
+
size: "sm"
|
|
4566
|
+
}, null, 8, ["value", "variant"])) : U("", !0)
|
|
4567
|
+
]),
|
|
4566
4568
|
e.showDropdown ? (h(), ee(Ne, {
|
|
4567
|
-
key:
|
|
4569
|
+
key: 0,
|
|
4568
4570
|
name: e.open ? "chevron-up" : "chevron-down"
|
|
4569
4571
|
}, null, 8, ["name"])) : U("", !0),
|
|
4570
4572
|
e.showClear ? (h(), ee(hn, {
|
|
4571
|
-
key:
|
|
4573
|
+
key: 1,
|
|
4572
4574
|
size: "sm",
|
|
4573
4575
|
variant: "dark",
|
|
4574
4576
|
"tooltip-position": "top-left"
|
|
@@ -4586,11 +4588,11 @@ const uc = {
|
|
|
4586
4588
|
})) : U("", !0)
|
|
4587
4589
|
], 10, wc));
|
|
4588
4590
|
}
|
|
4589
|
-
}),
|
|
4590
|
-
function
|
|
4591
|
-
return h(), F("div",
|
|
4591
|
+
}), kc = {}, Tc = { class: "pv-text-subdued pv-text-center pv-text-body-md" };
|
|
4592
|
+
function Fc(e, t) {
|
|
4593
|
+
return h(), F("div", Tc, "No Results Found");
|
|
4592
4594
|
}
|
|
4593
|
-
const ul = /* @__PURE__ */ ht(
|
|
4595
|
+
const ul = /* @__PURE__ */ ht(kc, [["render", Fc]]), $c = ["src"], Oc = /* @__PURE__ */ se({
|
|
4594
4596
|
__name: "PvAvatar",
|
|
4595
4597
|
props: {
|
|
4596
4598
|
size: { default: "lg" },
|
|
@@ -4614,16 +4616,16 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4614
4616
|
], 64)) : e.image ? (h(), F("img", {
|
|
4615
4617
|
key: 1,
|
|
4616
4618
|
src: e.image
|
|
4617
|
-
}, null, 8,
|
|
4619
|
+
}, null, 8, $c)) : U("", !0)
|
|
4618
4620
|
], 2));
|
|
4619
4621
|
}
|
|
4620
|
-
}),
|
|
4622
|
+
}), _c = {
|
|
4621
4623
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
4622
4624
|
style: { "align-items": "flex-start", "--flex-gap": "0" }
|
|
4623
|
-
}, Dc = ["title"],
|
|
4625
|
+
}, Dc = ["title"], Pc = ["title"], Mc = {
|
|
4624
4626
|
key: 4,
|
|
4625
4627
|
class: "pv-text-subdued pv-text-body-md"
|
|
4626
|
-
},
|
|
4628
|
+
}, Ec = /* @__PURE__ */ se({
|
|
4627
4629
|
__name: "PvMenuItem",
|
|
4628
4630
|
props: {
|
|
4629
4631
|
id: {},
|
|
@@ -4654,7 +4656,7 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4654
4656
|
onClick: a[0] || (a[0] = (o) => e.disabled ? null : r.$emit("handle-selected"))
|
|
4655
4657
|
}, [
|
|
4656
4658
|
e.renderer ? (h(), ee(Mt(e.renderer), pn(Ut({ key: 0 }, r.$props)), null, 16)) : (h(), F(ve, { key: 1 }, [
|
|
4657
|
-
e.avatar ? (h(), ee(
|
|
4659
|
+
e.avatar ? (h(), ee(Oc, {
|
|
4658
4660
|
key: 0,
|
|
4659
4661
|
initials: e.avatar.initials,
|
|
4660
4662
|
image: e.avatar.image,
|
|
@@ -4670,7 +4672,7 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4670
4672
|
name: e.companyName,
|
|
4671
4673
|
size: "sm"
|
|
4672
4674
|
}, null, 8, ["name"])) : U("", !0),
|
|
4673
|
-
V("div",
|
|
4675
|
+
V("div", _c, [
|
|
4674
4676
|
V("span", {
|
|
4675
4677
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
4676
4678
|
title: e.text
|
|
@@ -4679,23 +4681,23 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4679
4681
|
key: 0,
|
|
4680
4682
|
class: "pv-text-body-xs pv-text-subdued pv-full-width pv-truncate",
|
|
4681
4683
|
title: e.subText
|
|
4682
|
-
}, ae(e.subText), 9,
|
|
4684
|
+
}, ae(e.subText), 9, Pc)) : U("", !0)
|
|
4683
4685
|
]),
|
|
4684
4686
|
e.secondaryText && typeof e.secondaryText == "number" ? (h(), ee(en, {
|
|
4685
4687
|
key: 3,
|
|
4686
4688
|
value: e.secondaryText,
|
|
4687
4689
|
variant: e.counterBadgeVariant
|
|
4688
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (h(), F("span",
|
|
4690
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (h(), F("span", Mc, ae(e.secondaryText), 1)) : U("", !0)
|
|
4689
4691
|
], 64))
|
|
4690
4692
|
], 6));
|
|
4691
4693
|
}
|
|
4692
|
-
}), Ot = /* @__PURE__ */ ht(
|
|
4694
|
+
}), Ot = /* @__PURE__ */ ht(Ec, [["__scopeId", "data-v-c2ce0e65"]]), Rc = ["checked", "disabled"], Ic = {
|
|
4693
4695
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
4694
4696
|
style: { "align-items": "flex-start", "--flex-gap": "0" }
|
|
4695
|
-
},
|
|
4697
|
+
}, Ac = ["title"], Lc = ["title"], Vc = {
|
|
4696
4698
|
key: 1,
|
|
4697
4699
|
class: "pv-text-subdued pv-text-body-md"
|
|
4698
|
-
},
|
|
4700
|
+
}, Bc = /* @__PURE__ */ se({
|
|
4699
4701
|
__name: "PvMenuCheckboxItem",
|
|
4700
4702
|
props: {
|
|
4701
4703
|
id: {},
|
|
@@ -4723,24 +4725,24 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4723
4725
|
class: "pv-checkbox",
|
|
4724
4726
|
onChange: n[0] || (n[0] = (r) => t.$emit("handle-selected")),
|
|
4725
4727
|
disabled: e.disabled
|
|
4726
|
-
}, null, 40,
|
|
4728
|
+
}, null, 40, Rc),
|
|
4727
4729
|
e.renderer ? (h(), ee(Mt(e.renderer), pn(Ut({ key: 0 }, t.$props)), null, 16)) : (h(), F(ve, { key: 1 }, [
|
|
4728
|
-
V("div",
|
|
4730
|
+
V("div", Ic, [
|
|
4729
4731
|
V("span", {
|
|
4730
4732
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
4731
4733
|
title: e.text
|
|
4732
|
-
}, ae(e.text), 9,
|
|
4734
|
+
}, ae(e.text), 9, Ac),
|
|
4733
4735
|
e.subText ? (h(), F("span", {
|
|
4734
4736
|
key: 0,
|
|
4735
4737
|
class: "pv-text-body-xs pv-text-subdued pv-full-width pv-truncate",
|
|
4736
4738
|
title: e.subText
|
|
4737
|
-
}, ae(e.subText), 9,
|
|
4739
|
+
}, ae(e.subText), 9, Lc)) : U("", !0)
|
|
4738
4740
|
]),
|
|
4739
4741
|
e.secondaryText && typeof e.secondaryText == "number" ? (h(), ee(en, {
|
|
4740
4742
|
key: 0,
|
|
4741
4743
|
value: e.secondaryText,
|
|
4742
4744
|
variant: e.counterBadgeVariant
|
|
4743
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (h(), F("span",
|
|
4745
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (h(), F("span", Vc, ae(e.secondaryText), 1)) : U("", !0)
|
|
4744
4746
|
], 64))
|
|
4745
4747
|
], 2));
|
|
4746
4748
|
}
|
|
@@ -4757,7 +4759,7 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4757
4759
|
simple: Ot,
|
|
4758
4760
|
icon: Ot,
|
|
4759
4761
|
company: Ot,
|
|
4760
|
-
checkbox:
|
|
4762
|
+
checkbox: Bc,
|
|
4761
4763
|
avatar: Ot
|
|
4762
4764
|
};
|
|
4763
4765
|
return (n, r) => (h(), ee(Mt(t[e.optionsVariant]), {
|
|
@@ -4833,28 +4835,28 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4833
4835
|
o.value && (r.value = o.value.getBoundingClientRect()), l.value?.popoverRoot && (a.value = l.value.popoverRoot.getBoundingClientRect());
|
|
4834
4836
|
}
|
|
4835
4837
|
};
|
|
4836
|
-
},
|
|
4838
|
+
}, Nc = {
|
|
4837
4839
|
class: "pv-relative",
|
|
4838
4840
|
style: { width: "fit-content" }
|
|
4839
|
-
},
|
|
4841
|
+
}, zc = {
|
|
4840
4842
|
key: 1,
|
|
4841
4843
|
class: "pv-text-body-sm",
|
|
4842
4844
|
style: { color: "#89989b" }
|
|
4843
|
-
},
|
|
4845
|
+
}, Gc = { role: "list" }, jc = ["data-active"], Hc = {
|
|
4844
4846
|
key: 2,
|
|
4845
4847
|
class: "pv-border-top",
|
|
4846
4848
|
style: { margin: "8px 0" }
|
|
4847
|
-
},
|
|
4849
|
+
}, qc = {
|
|
4848
4850
|
key: 1,
|
|
4849
4851
|
role: "list"
|
|
4850
|
-
},
|
|
4852
|
+
}, Uc = ["data-active"], Kc = {
|
|
4851
4853
|
key: 2,
|
|
4852
4854
|
class: "pv-flex pv-inset-block-8",
|
|
4853
4855
|
style: { "justify-content": "center" }
|
|
4854
|
-
},
|
|
4856
|
+
}, Wc = {
|
|
4855
4857
|
class: "pv-sticky pv-surface pv-border-top",
|
|
4856
4858
|
style: { "--flex-justify": "space-between", "--bottom": "0", "padding-top": "0.75rem", "padding-bottom": "0.5rem" }
|
|
4857
|
-
},
|
|
4859
|
+
}, Yc = /* @__PURE__ */ se({
|
|
4858
4860
|
__name: "PvMultiSelectButton",
|
|
4859
4861
|
props: /* @__PURE__ */ et({
|
|
4860
4862
|
groupings: {},
|
|
@@ -4915,8 +4917,8 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4915
4917
|
(c) => c.text.toLocaleLowerCase().includes(S.value.toLocaleLowerCase())
|
|
4916
4918
|
)), x = (c) => {
|
|
4917
4919
|
const d = m.value, b = d.findIndex((j) => j.id === c.id);
|
|
4918
|
-
let
|
|
4919
|
-
b > -1 ?
|
|
4920
|
+
let _;
|
|
4921
|
+
b > -1 ? _ = [...d.slice(0, b), ...d.slice(b + 1)] : _ = [...d, { ...c }], m.value = _;
|
|
4920
4922
|
}, M = () => {
|
|
4921
4923
|
m.value = y.value.map((c) => ({
|
|
4922
4924
|
id: c.id,
|
|
@@ -4931,8 +4933,8 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4931
4933
|
c.set(d, []);
|
|
4932
4934
|
}), c.set("other", []);
|
|
4933
4935
|
for (const d of n.options) {
|
|
4934
|
-
const b = d.groupingLabel,
|
|
4935
|
-
c.get(
|
|
4936
|
+
const b = d.groupingLabel, _ = b && c.has(b) ? b : "other";
|
|
4937
|
+
c.get(_).push(d);
|
|
4936
4938
|
}
|
|
4937
4939
|
for (const [d, b] of c)
|
|
4938
4940
|
b.length === 0 && c.delete(d);
|
|
@@ -4940,7 +4942,7 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4940
4942
|
}), T = O(() => n.groupings && S.value === ""), k = (c) => m.value.some((d) => d.id === c.id) ? !0 : null;
|
|
4941
4943
|
return Tr("Escape", () => {
|
|
4942
4944
|
v.value && C();
|
|
4943
|
-
}), (c, d) => Ct((h(), F("div",
|
|
4945
|
+
}), (c, d) => Ct((h(), F("div", Nc, [
|
|
4944
4946
|
te(ya, {
|
|
4945
4947
|
ref: "select-button-trigger-ref",
|
|
4946
4948
|
variant: e.variant,
|
|
@@ -4979,10 +4981,10 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4979
4981
|
d[2] || (d[2] = V("div", { class: "pv-border-top pv-stack-12" }, null, -1))
|
|
4980
4982
|
], 64)) : U("", !0),
|
|
4981
4983
|
y.value.length > 0 ? (h(), F(ve, { key: 1 }, [
|
|
4982
|
-
T.value ? (h(!0), F(ve, { key: 0 }, Je($.value, ([b,
|
|
4983
|
-
c.$slots[b] ? Ke(c.$slots, b, { key: 0 }) : b !== "other" ? (h(), F("span",
|
|
4984
|
-
V("ul",
|
|
4985
|
-
(h(!0), F(ve, null, Je(
|
|
4984
|
+
T.value ? (h(!0), F(ve, { key: 0 }, Je($.value, ([b, _], j) => (h(), F("div", { key: b }, [
|
|
4985
|
+
c.$slots[b] ? Ke(c.$slots, b, { key: 0 }) : b !== "other" ? (h(), F("span", zc, ae(b), 1)) : U("", !0),
|
|
4986
|
+
V("ul", Gc, [
|
|
4987
|
+
(h(!0), F(ve, null, Je(_, (L) => Ct((h(), F("li", {
|
|
4986
4988
|
key: L.id,
|
|
4987
4989
|
"data-active": k(L),
|
|
4988
4990
|
class: "pv-stack-4"
|
|
@@ -4994,32 +4996,32 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
4994
4996
|
option: L,
|
|
4995
4997
|
onHandleSelectItem: x
|
|
4996
4998
|
}, null, 8, ["data-testid", "options-variant", "selected", "option"])
|
|
4997
|
-
], 8,
|
|
4999
|
+
], 8, jc)), [
|
|
4998
5000
|
[ko, k(L) || !e.isLoading]
|
|
4999
5001
|
])), 128))
|
|
5000
5002
|
]),
|
|
5001
|
-
$.value && j !== $.value.length - 1 ? (h(), F("div",
|
|
5002
|
-
]))), 128)) : (h(), F("ul",
|
|
5003
|
+
$.value && j !== $.value.length - 1 ? (h(), F("div", Hc)) : U("", !0)
|
|
5004
|
+
]))), 128)) : (h(), F("ul", qc, [
|
|
5003
5005
|
(h(!0), F(ve, null, Je(y.value, (b) => (h(), F("li", {
|
|
5004
5006
|
key: b.id,
|
|
5005
|
-
"data-active": m.value.some((
|
|
5007
|
+
"data-active": m.value.some((_) => _.id === b.id) ? !0 : null,
|
|
5006
5008
|
class: "pv-stack-4"
|
|
5007
5009
|
}, [
|
|
5008
5010
|
te(oo, {
|
|
5009
5011
|
"options-variant": e.optionsVariant,
|
|
5010
|
-
selected: m.value.some((
|
|
5012
|
+
selected: m.value.some((_) => _.id === b.id),
|
|
5011
5013
|
option: b,
|
|
5012
5014
|
onHandleSelectItem: x
|
|
5013
5015
|
}, null, 8, ["options-variant", "selected", "option"])
|
|
5014
|
-
], 8,
|
|
5016
|
+
], 8, Uc))), 128))
|
|
5015
5017
|
]))
|
|
5016
5018
|
], 64)) : U("", !0),
|
|
5017
|
-
e.isLoading ? (h(), F("div",
|
|
5019
|
+
e.isLoading ? (h(), F("div", Kc, [
|
|
5018
5020
|
te(Cr, { variant: "dark" })
|
|
5019
5021
|
])) : y.value.length === 0 ? (h(), F(ve, { key: 3 }, [
|
|
5020
5022
|
c.$slots["no-results"] ? Ke(c.$slots, "no-results", pn(Ut({ key: 0 }, c.$props))) : (h(), ee(ul, { key: 1 }))
|
|
5021
5023
|
], 64)) : U("", !0),
|
|
5022
|
-
V("div",
|
|
5024
|
+
V("div", Wc, [
|
|
5023
5025
|
c.$slots.footer ? Ke(c.$slots, "footer", pn(Ut({ key: 0 }, c.$props))) : U("", !0),
|
|
5024
5026
|
e.showMenuAction ? (h(), ee(bc, {
|
|
5025
5027
|
key: 1,
|
|
@@ -5040,17 +5042,17 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
5040
5042
|
]]
|
|
5041
5043
|
]);
|
|
5042
5044
|
}
|
|
5043
|
-
}),
|
|
5045
|
+
}), Xc = {
|
|
5044
5046
|
"data-testid": "pv-menu-radio-item",
|
|
5045
5047
|
class: "pv-label pv-label-hover pv-flex",
|
|
5046
5048
|
style: { cursor: "pointer" }
|
|
5047
|
-
},
|
|
5049
|
+
}, Qc = ["checked"], Zc = {
|
|
5048
5050
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
5049
5051
|
style: { "align-items": "flex-start", "--flex-gap": "0" }
|
|
5050
|
-
},
|
|
5052
|
+
}, Jc = ["title"], ed = ["title"], td = {
|
|
5051
5053
|
key: 1,
|
|
5052
5054
|
class: "pv-text-subdued pv-text-body-md"
|
|
5053
|
-
},
|
|
5055
|
+
}, nd = /* @__PURE__ */ se({
|
|
5054
5056
|
__name: "PvMenuRadioItem",
|
|
5055
5057
|
props: {
|
|
5056
5058
|
text: {},
|
|
@@ -5062,36 +5064,36 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
5062
5064
|
emits: ["handle-selected"],
|
|
5063
5065
|
setup(e) {
|
|
5064
5066
|
const t = `radio-${fn()?.uid}`;
|
|
5065
|
-
return (n, r) => (h(), F("label",
|
|
5067
|
+
return (n, r) => (h(), F("label", Xc, [
|
|
5066
5068
|
V("input", {
|
|
5067
5069
|
type: "radio",
|
|
5068
5070
|
name: t,
|
|
5069
5071
|
checked: e.value,
|
|
5070
5072
|
class: "pv-radio",
|
|
5071
5073
|
onChange: r[0] || (r[0] = (a) => n.$emit("handle-selected"))
|
|
5072
|
-
}, null, 40,
|
|
5073
|
-
V("span",
|
|
5074
|
+
}, null, 40, Qc),
|
|
5075
|
+
V("span", Zc, [
|
|
5074
5076
|
V("span", {
|
|
5075
5077
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
5076
5078
|
title: e.text
|
|
5077
|
-
}, ae(e.text), 9,
|
|
5079
|
+
}, ae(e.text), 9, Jc),
|
|
5078
5080
|
e.subText ? (h(), F("span", {
|
|
5079
5081
|
key: 0,
|
|
5080
5082
|
class: "pv-text-body-xs pv-text-subdued pv-full-width pv-truncate",
|
|
5081
5083
|
title: e.subText
|
|
5082
|
-
}, ae(e.subText), 9,
|
|
5084
|
+
}, ae(e.subText), 9, ed)) : U("", !0)
|
|
5083
5085
|
]),
|
|
5084
5086
|
e.secondaryText && typeof e.secondaryText == "number" ? (h(), ee(en, {
|
|
5085
5087
|
key: 0,
|
|
5086
5088
|
value: e.secondaryText,
|
|
5087
5089
|
variant: e.counterBadgeVariant
|
|
5088
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (h(), F("span",
|
|
5090
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (h(), F("span", td, ae(e.secondaryText), 1)) : U("", !0)
|
|
5089
5091
|
]));
|
|
5090
5092
|
}
|
|
5091
|
-
}),
|
|
5093
|
+
}), rd = {
|
|
5092
5094
|
class: "pv-relative",
|
|
5093
5095
|
style: { width: "fit-content" }
|
|
5094
|
-
},
|
|
5096
|
+
}, ad = ["data-active"], cl = /* @__PURE__ */ se({
|
|
5095
5097
|
__name: "PvSelectButton",
|
|
5096
5098
|
props: /* @__PURE__ */ et({
|
|
5097
5099
|
defaultOpen: { type: Boolean },
|
|
@@ -5128,7 +5130,7 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
5128
5130
|
simple: Ot,
|
|
5129
5131
|
icon: Ot,
|
|
5130
5132
|
company: Ot,
|
|
5131
|
-
radio:
|
|
5133
|
+
radio: nd,
|
|
5132
5134
|
avatar: Ot
|
|
5133
5135
|
}, { popoverPositionStyle: o, updateRects: l, triggerRef: i, popoverRef: s } = ba({
|
|
5134
5136
|
alignment: n.alignment,
|
|
@@ -5163,7 +5165,7 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
5163
5165
|
};
|
|
5164
5166
|
return Tr("Escape", () => {
|
|
5165
5167
|
p.value && $();
|
|
5166
|
-
}), (T, k) => Ct((h(), F("div",
|
|
5168
|
+
}), (T, k) => Ct((h(), F("div", rd, [
|
|
5167
5169
|
te(ya, {
|
|
5168
5170
|
class: "pv-full-width",
|
|
5169
5171
|
ref: "select-button-trigger-ref",
|
|
@@ -5223,7 +5225,7 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
5223
5225
|
classList: c.classList,
|
|
5224
5226
|
onHandleSelected: () => M(c)
|
|
5225
5227
|
}, null, 40, ["id", "value", "secondaryText", "icon", "avatar", "companyName", "counter-badge-variant", "text", "subText", "renderer", "renderer-props", "classList", "onHandleSelected"]))
|
|
5226
|
-
], 8,
|
|
5228
|
+
], 8, ad))), 128)) : (h(), ee(ul, { key: 2 }))
|
|
5227
5229
|
]),
|
|
5228
5230
|
_: 1
|
|
5229
5231
|
}, 8, ["open", "teleportLocation", "use-teleport", "popoverPositionStyle"])
|
|
@@ -5236,27 +5238,27 @@ const ul = /* @__PURE__ */ ht(xc, [["render", Tc]]), Fc = ["src"], $c = /* @__PU
|
|
|
5236
5238
|
]]
|
|
5237
5239
|
]);
|
|
5238
5240
|
}
|
|
5239
|
-
}),
|
|
5241
|
+
}), od = ["for"], ld = ["disabled", "type", "placeholder", "id", "data-invalid"];
|
|
5240
5242
|
Math.random().toString();
|
|
5241
|
-
const
|
|
5243
|
+
const id = ["for"], sd = { key: 0 }, ud = ["disabled", "id"];
|
|
5242
5244
|
Math.random().toString();
|
|
5243
|
-
const
|
|
5245
|
+
const cd = ["for"], dd = ["rows", "disabled", "placeholder", "id", "data-invalid"];
|
|
5244
5246
|
Math.random().toString();
|
|
5245
5247
|
sl.extend({
|
|
5246
5248
|
name: "common"
|
|
5247
5249
|
});
|
|
5248
|
-
const wa = Symbol("FilterStoreKey"), gr = Symbol("FocusStoreKey"), dl = Symbol("SortStateKey"), nn = Symbol("GridApiKey"),
|
|
5250
|
+
const wa = Symbol("FilterStoreKey"), gr = Symbol("FocusStoreKey"), dl = Symbol("SortStateKey"), nn = Symbol("GridApiKey"), fd = Symbol("ColumnDisplayOrderKey"), fl = Symbol("currentlyActiveFilterKey"), pl = Symbol("AvailableFilterColumnsKey"), $r = Symbol("AvailableRowGroupColumnsKey"), Sa = Symbol("RowGroupColumnFieldsKey"), vl = Symbol(
|
|
5249
5251
|
"GroupColumnCellValueColumnKey"
|
|
5250
|
-
), Ca = Symbol("ExpandedRowsKey"), hl = Symbol("FirstDataRenderedKey"), ml = Symbol("CurrentPageKey"), gl = Symbol("TotalPageKey"), yl = Symbol("ActiveChartFilterOptionKey"), bl = Symbol("RowGroupColumnsKey"), wl = Symbol("ChartTypeKey"), Sl = Symbol("SortTypesKey"), Cl = Symbol("ActiveChartKey"), xl = Symbol("ActiveSortKey"), kl = Symbol("ActiveSeriesKey"), Tl = Symbol("AvailableSeriesKey"),
|
|
5252
|
+
), Ca = Symbol("ExpandedRowsKey"), hl = Symbol("FirstDataRenderedKey"), ml = Symbol("CurrentPageKey"), gl = Symbol("TotalPageKey"), yl = Symbol("ActiveChartFilterOptionKey"), bl = Symbol("RowGroupColumnsKey"), wl = Symbol("ChartTypeKey"), Sl = Symbol("SortTypesKey"), Cl = Symbol("ActiveChartKey"), xl = Symbol("ActiveSortKey"), kl = Symbol("ActiveSeriesKey"), Tl = Symbol("AvailableSeriesKey"), pd = {
|
|
5251
5253
|
class: "pv-flex",
|
|
5252
5254
|
style: { "--flex-wrap": "nowrap" }
|
|
5253
|
-
},
|
|
5255
|
+
}, vd = ["id"], hd = {
|
|
5254
5256
|
key: 1,
|
|
5255
5257
|
style: { "padding-left": "16px" }
|
|
5256
|
-
},
|
|
5258
|
+
}, md = ["checked", "disabled", "onChange"], gd = { class: "pv-text-body-md" }, yd = { key: 2 }, bd = {
|
|
5257
5259
|
key: 0,
|
|
5258
5260
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
5259
|
-
},
|
|
5261
|
+
}, wd = /* @__PURE__ */ se({
|
|
5260
5262
|
__name: "GroupBySelector",
|
|
5261
5263
|
props: {
|
|
5262
5264
|
rowGroupLimit: {},
|
|
@@ -5311,7 +5313,7 @@ const wa = Symbol("FilterStoreKey"), gr = Symbol("FocusStoreKey"), dl = Symbol("
|
|
|
5311
5313
|
onListOrderUpdated: g
|
|
5312
5314
|
}, {
|
|
5313
5315
|
trigger: Pe(() => [
|
|
5314
|
-
V("div",
|
|
5316
|
+
V("div", pd, [
|
|
5315
5317
|
S[0] || (S[0] = V("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1)),
|
|
5316
5318
|
J(r).length > 0 ? (h(), ee(J(en), {
|
|
5317
5319
|
key: 0,
|
|
@@ -5337,7 +5339,7 @@ const wa = Symbol("FilterStoreKey"), gr = Symbol("FocusStoreKey"), dl = Symbol("
|
|
|
5337
5339
|
key: 0,
|
|
5338
5340
|
name: "reorder",
|
|
5339
5341
|
class: "pv-text-subdued"
|
|
5340
|
-
})) : (h(), F("span",
|
|
5342
|
+
})) : (h(), F("span", hd)),
|
|
5341
5343
|
V("input", {
|
|
5342
5344
|
type: "checkbox",
|
|
5343
5345
|
class: "pv-checkbox",
|
|
@@ -5347,22 +5349,22 @@ const wa = Symbol("FilterStoreKey"), gr = Symbol("FocusStoreKey"), dl = Symbol("
|
|
|
5347
5349
|
C.value,
|
|
5348
5350
|
x.target.checked
|
|
5349
5351
|
)
|
|
5350
|
-
}, null, 40,
|
|
5351
|
-
V("span",
|
|
5352
|
-
o(C.value) ? (h(), F("sup",
|
|
5352
|
+
}, null, 40, md),
|
|
5353
|
+
V("span", gd, ae(C.label), 1),
|
|
5354
|
+
o(C.value) ? (h(), F("sup", yd, ae(y + 1), 1)) : U("", !0)
|
|
5353
5355
|
], 2)
|
|
5354
|
-
], 8,
|
|
5356
|
+
], 8, vd)) : U("", !0)
|
|
5355
5357
|
], 64))), 128)),
|
|
5356
|
-
s.value ? (h(), F("p",
|
|
5358
|
+
s.value ? (h(), F("p", bd, " Supports " + ae(e.rowGroupLimit) + " compare levels ", 1)) : U("", !0)
|
|
5357
5359
|
]),
|
|
5358
5360
|
_: 1
|
|
5359
5361
|
}, 8, ["class"]));
|
|
5360
5362
|
}
|
|
5361
|
-
}),
|
|
5362
|
-
function
|
|
5363
|
-
return h(), F("div",
|
|
5363
|
+
}), Sd = {}, Cd = { class: "ag-custom-loading-cell pv-shimmer" };
|
|
5364
|
+
function xd(e, t) {
|
|
5365
|
+
return h(), F("div", Cd);
|
|
5364
5366
|
}
|
|
5365
|
-
const
|
|
5367
|
+
const kd = /* @__PURE__ */ ht(Sd, [["render", xd]]), xa = (e = null) => {
|
|
5366
5368
|
const t = G(e?.focuses || []), n = G(e?.focusType || null), r = O(() => t.value), a = O(() => n.value), o = (p) => {
|
|
5367
5369
|
p !== n.value && (n.value = p || null, t.value = []);
|
|
5368
5370
|
}, l = (p) => n.value !== null && n.value === p, i = (p, v) => !p || !v ? !1 : t.value.includes(p) && n.value === v, s = (p) => {
|
|
@@ -5385,14 +5387,14 @@ const xd = /* @__PURE__ */ ht(wd, [["render", Cd]]), xa = (e = null) => {
|
|
|
5385
5387
|
}, Or = () => {
|
|
5386
5388
|
const e = Ee(gr, null);
|
|
5387
5389
|
return e || xa();
|
|
5388
|
-
},
|
|
5390
|
+
}, Td = { class: "pv-table-group-cell" }, Fd = { class: "pv-text-body-xxs pv-text-subdued" }, $d = { key: 0 }, Od = { style: { "line-height": "20px" } }, _d = { class: "pv-text-title-md" }, Dd = {
|
|
5389
5391
|
key: 0,
|
|
5390
5392
|
class: "pv-flex",
|
|
5391
5393
|
style: { flex: "1", "--flex-justify": "flex-end" }
|
|
5392
|
-
},
|
|
5394
|
+
}, Pd = {
|
|
5393
5395
|
key: 0,
|
|
5394
5396
|
class: "pv-table-row-number"
|
|
5395
|
-
},
|
|
5397
|
+
}, Md = /* @__PURE__ */ se({
|
|
5396
5398
|
__name: "GroupedCellRenderer",
|
|
5397
5399
|
props: {
|
|
5398
5400
|
params: {}
|
|
@@ -5430,13 +5432,13 @@ const xd = /* @__PURE__ */ ht(wd, [["render", Cd]]), xa = (e = null) => {
|
|
|
5430
5432
|
key: 0,
|
|
5431
5433
|
class: we(C.value)
|
|
5432
5434
|
}, [
|
|
5433
|
-
V("div",
|
|
5434
|
-
V("p",
|
|
5435
|
+
V("div", Td, [
|
|
5436
|
+
V("p", Fd, [
|
|
5435
5437
|
pt(ae(J(o).rowGroupColumn?.getColDef().headerName) + " ", 1),
|
|
5436
|
-
e.params.displayCount && l.value && f.value > 0 ? (h(), F("span",
|
|
5438
|
+
e.params.displayCount && l.value && f.value > 0 ? (h(), F("span", $d, " (" + ae(f.value.toLocaleString()) + ") ", 1)) : U("", !0)
|
|
5437
5439
|
]),
|
|
5438
|
-
V("div",
|
|
5439
|
-
V("p",
|
|
5440
|
+
V("div", Od, [
|
|
5441
|
+
V("p", _d, ae(e.params.formattedValue || e.params.rowNode.key), 1)
|
|
5440
5442
|
])
|
|
5441
5443
|
]),
|
|
5442
5444
|
y.value ? (h(), F("div", Dd, [
|
|
@@ -5462,7 +5464,7 @@ const xd = /* @__PURE__ */ ht(wd, [["render", Cd]]), xa = (e = null) => {
|
|
|
5462
5464
|
], 2)) : U("", !0),
|
|
5463
5465
|
V("div", null, [
|
|
5464
5466
|
V("p", null, [
|
|
5465
|
-
e.params.displayRowNumber && p.value ? (h(), F("span",
|
|
5467
|
+
e.params.displayRowNumber && p.value ? (h(), F("span", Pd, ae(p.value), 1)) : U("", !0),
|
|
5466
5468
|
pt(" " + ae(u.value), 1)
|
|
5467
5469
|
])
|
|
5468
5470
|
])
|
|
@@ -5515,7 +5517,7 @@ const ka = (e) => {
|
|
|
5515
5517
|
default:
|
|
5516
5518
|
return null;
|
|
5517
5519
|
}
|
|
5518
|
-
},
|
|
5520
|
+
}, Ed = (e, t) => {
|
|
5519
5521
|
if (!e) return e;
|
|
5520
5522
|
switch (t) {
|
|
5521
5523
|
case "percent":
|
|
@@ -5523,7 +5525,7 @@ const ka = (e) => {
|
|
|
5523
5525
|
default:
|
|
5524
5526
|
return e;
|
|
5525
5527
|
}
|
|
5526
|
-
}, io = (e) => e.includes(".") ? e.replace(/\.?0+$/, "") : e,
|
|
5528
|
+
}, io = (e) => e.includes(".") ? e.replace(/\.?0+$/, "") : e, Rd = (e, t = !1, n = 0) => {
|
|
5527
5529
|
const r = ["", "K", "M", "B", "T"], a = Math.abs(e), o = Math.abs(n);
|
|
5528
5530
|
let l = t ? 2 : 0;
|
|
5529
5531
|
const i = Math.floor(Math.log10(a) / 3);
|
|
@@ -5535,7 +5537,7 @@ const ka = (e) => {
|
|
|
5535
5537
|
const u = r[i] || `e${i * 3}`, f = e / Math.pow(10, i * 3);
|
|
5536
5538
|
return { newValue: io(f.toFixed(l)), newSuffix: u };
|
|
5537
5539
|
};
|
|
5538
|
-
function
|
|
5540
|
+
function Id() {
|
|
5539
5541
|
}
|
|
5540
5542
|
function so(e) {
|
|
5541
5543
|
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
@@ -5543,17 +5545,17 @@ function so(e) {
|
|
|
5543
5545
|
function uo(e) {
|
|
5544
5546
|
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
5545
5547
|
}
|
|
5546
|
-
const
|
|
5548
|
+
const Ad = "[object RegExp]", Ld = "[object String]", Vd = "[object Number]", Bd = "[object Boolean]", co = "[object Arguments]", Nd = "[object Symbol]", zd = "[object Date]", Gd = "[object Map]", jd = "[object Set]", Hd = "[object Array]", qd = "[object Function]", Ud = "[object ArrayBuffer]", qr = "[object Object]", Kd = "[object Error]", Wd = "[object DataView]", Yd = "[object Uint8Array]", Xd = "[object Uint8ClampedArray]", Qd = "[object Uint16Array]", Zd = "[object Uint32Array]", Jd = "[object BigUint64Array]", e1 = "[object Int8Array]", t1 = "[object Int16Array]", n1 = "[object Int32Array]", r1 = "[object BigInt64Array]", a1 = "[object Float32Array]", o1 = "[object Float64Array]";
|
|
5547
5549
|
function fo(e) {
|
|
5548
5550
|
if (!e || typeof e != "object")
|
|
5549
5551
|
return !1;
|
|
5550
5552
|
const t = Object.getPrototypeOf(e);
|
|
5551
5553
|
return t === null || t === Object.prototype || Object.getPrototypeOf(t) === null ? Object.prototype.toString.call(e) === "[object Object]" : !1;
|
|
5552
5554
|
}
|
|
5553
|
-
function
|
|
5555
|
+
function l1(e, t) {
|
|
5554
5556
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
5555
5557
|
}
|
|
5556
|
-
function
|
|
5558
|
+
function i1(e, t, n) {
|
|
5557
5559
|
return kn(e, t, void 0, void 0, void 0, void 0, n);
|
|
5558
5560
|
}
|
|
5559
5561
|
function kn(e, t, n, r, a, o, l) {
|
|
@@ -5584,19 +5586,19 @@ function Mn(e, t, n, r) {
|
|
|
5584
5586
|
if (a === co && (a = qr), o === co && (o = qr), a !== o)
|
|
5585
5587
|
return !1;
|
|
5586
5588
|
switch (a) {
|
|
5587
|
-
case
|
|
5589
|
+
case Ld:
|
|
5588
5590
|
return e.toString() === t.toString();
|
|
5589
|
-
case
|
|
5591
|
+
case Vd: {
|
|
5590
5592
|
const s = e.valueOf(), u = t.valueOf();
|
|
5591
|
-
return
|
|
5593
|
+
return l1(s, u);
|
|
5592
5594
|
}
|
|
5593
|
-
case Vd:
|
|
5594
|
-
case Nd:
|
|
5595
5595
|
case Bd:
|
|
5596
|
+
case zd:
|
|
5597
|
+
case Nd:
|
|
5596
5598
|
return Object.is(e.valueOf(), t.valueOf());
|
|
5597
|
-
case
|
|
5599
|
+
case Ad:
|
|
5598
5600
|
return e.source === t.source && e.flags === t.flags;
|
|
5599
|
-
case
|
|
5601
|
+
case qd:
|
|
5600
5602
|
return e === t;
|
|
5601
5603
|
}
|
|
5602
5604
|
n = n ?? /* @__PURE__ */ new Map();
|
|
@@ -5606,7 +5608,7 @@ function Mn(e, t, n, r) {
|
|
|
5606
5608
|
n.set(e, t), n.set(t, e);
|
|
5607
5609
|
try {
|
|
5608
5610
|
switch (a) {
|
|
5609
|
-
case
|
|
5611
|
+
case Gd: {
|
|
5610
5612
|
if (e.size !== t.size)
|
|
5611
5613
|
return !1;
|
|
5612
5614
|
for (const [s, u] of e.entries())
|
|
@@ -5614,7 +5616,7 @@ function Mn(e, t, n, r) {
|
|
|
5614
5616
|
return !1;
|
|
5615
5617
|
return !0;
|
|
5616
5618
|
}
|
|
5617
|
-
case
|
|
5619
|
+
case jd: {
|
|
5618
5620
|
if (e.size !== t.size)
|
|
5619
5621
|
return !1;
|
|
5620
5622
|
const s = Array.from(e.values()), u = Array.from(t.values());
|
|
@@ -5626,8 +5628,7 @@ function Mn(e, t, n, r) {
|
|
|
5626
5628
|
}
|
|
5627
5629
|
return !0;
|
|
5628
5630
|
}
|
|
5629
|
-
case
|
|
5630
|
-
case Wd:
|
|
5631
|
+
case Hd:
|
|
5631
5632
|
case Yd:
|
|
5632
5633
|
case Xd:
|
|
5633
5634
|
case Qd:
|
|
@@ -5637,7 +5638,8 @@ function Mn(e, t, n, r) {
|
|
|
5637
5638
|
case t1:
|
|
5638
5639
|
case n1:
|
|
5639
5640
|
case r1:
|
|
5640
|
-
case a1:
|
|
5641
|
+
case a1:
|
|
5642
|
+
case o1: {
|
|
5641
5643
|
if (typeof Buffer < "u" && Buffer.isBuffer(e) !== Buffer.isBuffer(t) || e.length !== t.length)
|
|
5642
5644
|
return !1;
|
|
5643
5645
|
for (let s = 0; s < e.length; s++)
|
|
@@ -5645,11 +5647,11 @@ function Mn(e, t, n, r) {
|
|
|
5645
5647
|
return !1;
|
|
5646
5648
|
return !0;
|
|
5647
5649
|
}
|
|
5648
|
-
case
|
|
5650
|
+
case Ud:
|
|
5649
5651
|
return e.byteLength !== t.byteLength ? !1 : Mn(new Uint8Array(e), new Uint8Array(t), n, r);
|
|
5650
|
-
case
|
|
5652
|
+
case Wd:
|
|
5651
5653
|
return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : Mn(new Uint8Array(e), new Uint8Array(t), n, r);
|
|
5652
|
-
case
|
|
5654
|
+
case Kd:
|
|
5653
5655
|
return e.name === t.name && e.message === t.message;
|
|
5654
5656
|
case qr: {
|
|
5655
5657
|
if (!(Mn(e.constructor, t.constructor, n, r) || fo(e) && fo(t)))
|
|
@@ -5675,15 +5677,15 @@ function Mn(e, t, n, r) {
|
|
|
5675
5677
|
}
|
|
5676
5678
|
}
|
|
5677
5679
|
function Fl(e, t) {
|
|
5678
|
-
return
|
|
5680
|
+
return i1(e, t, Id);
|
|
5679
5681
|
}
|
|
5680
5682
|
const po = {
|
|
5681
5683
|
agSetColumnFilter: "set",
|
|
5682
5684
|
agMultiColumnFilter: "multi",
|
|
5683
5685
|
agTextColumnFilter: "text"
|
|
5684
|
-
},
|
|
5686
|
+
}, s1 = (e) => !e || !e.filter ? null : e.filter in po ? po[e.filter] : null, $l = (e, t) => {
|
|
5685
5687
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
5686
|
-
const n = e?.filterType || null, r =
|
|
5688
|
+
const n = e?.filterType || null, r = s1(t);
|
|
5687
5689
|
if (!r || r === n)
|
|
5688
5690
|
return e;
|
|
5689
5691
|
if (r !== "multi")
|
|
@@ -5715,7 +5717,7 @@ const po = {
|
|
|
5715
5717
|
}, vo = (e, t, n) => !e || e.length === 0 ? e : e.slice().sort((r, a) => {
|
|
5716
5718
|
const o = n.includes(r[t]) ? 0 : 1, l = n.includes(a[t]) ? 0 : 1;
|
|
5717
5719
|
return o - l;
|
|
5718
|
-
}), bt = (e) => e ? e.context || {} : {},
|
|
5720
|
+
}), bt = (e) => e ? e.context || {} : {}, u1 = (e) => {
|
|
5719
5721
|
const t = bt(e);
|
|
5720
5722
|
return t.filterValueFormatter && typeof t.filterValueFormatter == "function" ? t.filterValueFormatter : typeof e.valueFormatter == "function" ? e.valueFormatter : null;
|
|
5721
5723
|
}, na = (e) => bt(e).filterSelectMax || null, ho = (e) => {
|
|
@@ -5734,7 +5736,7 @@ const po = {
|
|
|
5734
5736
|
$t.Integer,
|
|
5735
5737
|
$t.Formula
|
|
5736
5738
|
].includes(t) : !1;
|
|
5737
|
-
},
|
|
5739
|
+
}, c1 = (e) => {
|
|
5738
5740
|
if (!e || e.queryTerms.length === 0)
|
|
5739
5741
|
return {};
|
|
5740
5742
|
const t = {};
|
|
@@ -5774,7 +5776,7 @@ const po = {
|
|
|
5774
5776
|
};
|
|
5775
5777
|
}
|
|
5776
5778
|
}), t;
|
|
5777
|
-
},
|
|
5779
|
+
}, d1 = (e, t) => {
|
|
5778
5780
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi")
|
|
5779
5781
|
return t;
|
|
5780
5782
|
if (e.filter != "agMultiColumnFilter")
|
|
@@ -5784,7 +5786,7 @@ const po = {
|
|
|
5784
5786
|
filterType: "multi",
|
|
5785
5787
|
filterModels: a
|
|
5786
5788
|
};
|
|
5787
|
-
},
|
|
5789
|
+
}, f1 = (e, t) => {
|
|
5788
5790
|
if (!e || Object.keys(e).length === 0) return t;
|
|
5789
5791
|
if (e.filterType != t.filterType || e.filterType != "multi")
|
|
5790
5792
|
return e;
|
|
@@ -5792,13 +5794,13 @@ const po = {
|
|
|
5792
5794
|
return t.filterModels?.forEach((a, o) => {
|
|
5793
5795
|
n.filterModels || (n.filterModels = []), n.filterModels[o] || (n.filterModels[o] = a);
|
|
5794
5796
|
}), n;
|
|
5795
|
-
},
|
|
5797
|
+
}, p1 = (e, t, n) => {
|
|
5796
5798
|
const r = { ...t };
|
|
5797
5799
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((a) => {
|
|
5798
|
-
const o = e.find((s) => s.field === a), l =
|
|
5799
|
-
r[a] =
|
|
5800
|
+
const o = e.find((s) => s.field === a), l = d1(o, n[a]), i = r[a];
|
|
5801
|
+
r[a] = f1(i, l);
|
|
5800
5802
|
}), r);
|
|
5801
|
-
}, tn = (e) => e.filterParams?.filters?.findIndex((t) => t.filter === "agSetColumnFilter"), ra = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? tn(e) !== void 0 && tn(e) > -1 : !1,
|
|
5803
|
+
}, tn = (e) => e.filterParams?.filters?.findIndex((t) => t.filter === "agSetColumnFilter"), ra = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? tn(e) !== void 0 && tn(e) > -1 : !1, v1 = (e, t) => {
|
|
5802
5804
|
const n = { ...e };
|
|
5803
5805
|
if (n.filter == "agSetColumnFilter") {
|
|
5804
5806
|
const a = n.filterParams;
|
|
@@ -5845,7 +5847,7 @@ const po = {
|
|
|
5845
5847
|
values: n
|
|
5846
5848
|
};
|
|
5847
5849
|
return l !== void 0 && l > -1 && o && o.filterModels && (o.filterModels[l] = i), o;
|
|
5848
|
-
},
|
|
5850
|
+
}, _l = (e, t) => {
|
|
5849
5851
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
5850
5852
|
const n = t[e.field];
|
|
5851
5853
|
if (!n) return [];
|
|
@@ -5874,7 +5876,7 @@ const po = {
|
|
|
5874
5876
|
displayName: t.getColDef().headerName || "",
|
|
5875
5877
|
field: t.getColDef().field || "",
|
|
5876
5878
|
aggFunc: t.getAggFunc() || void 0
|
|
5877
|
-
})),
|
|
5879
|
+
})), h1 = { style: { "line-height": "20px" } }, m1 = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, g1 = /* @__PURE__ */ se({
|
|
5878
5880
|
__name: "GroupAggCellRenderer",
|
|
5879
5881
|
props: {
|
|
5880
5882
|
params: {}
|
|
@@ -5906,9 +5908,9 @@ const po = {
|
|
|
5906
5908
|
class: "pv-flex",
|
|
5907
5909
|
ondblclick: a
|
|
5908
5910
|
}, [
|
|
5909
|
-
V("div",
|
|
5911
|
+
V("div", h1, [
|
|
5910
5912
|
V("p", null, ae(u.value), 1),
|
|
5911
|
-
V("p",
|
|
5913
|
+
V("p", m1, ae(r.value), 1)
|
|
5912
5914
|
]),
|
|
5913
5915
|
te(qe, {
|
|
5914
5916
|
size: "xl",
|
|
@@ -5918,7 +5920,7 @@ const po = {
|
|
|
5918
5920
|
}, null, 8, ["left-icon"])
|
|
5919
5921
|
], 4));
|
|
5920
5922
|
}
|
|
5921
|
-
}),
|
|
5923
|
+
}), Dl = () => {
|
|
5922
5924
|
const e = G({}), t = G(null), n = G(null), r = G({}), a = G({}), o = G({}), l = G(0), i = G({}), s = G(void 0), u = G(void 0), f = O(() => s.value != null), p = G({}), v = G({}), g = G({}), m = G({}), S = () => {
|
|
5923
5925
|
const T = {};
|
|
5924
5926
|
return Object.entries(v.value).forEach(([k, c]) => {
|
|
@@ -5929,7 +5931,7 @@ const po = {
|
|
|
5929
5931
|
});
|
|
5930
5932
|
}), T;
|
|
5931
5933
|
}, C = async (T, k, c, d) => {
|
|
5932
|
-
const b = m.value[k.field] || void 0,
|
|
5934
|
+
const b = m.value[k.field] || void 0, _ = v.value[k.field] || [];
|
|
5933
5935
|
let j = d;
|
|
5934
5936
|
t.value != null && (j = S());
|
|
5935
5937
|
const L = {
|
|
@@ -5938,12 +5940,12 @@ const po = {
|
|
|
5938
5940
|
column: c,
|
|
5939
5941
|
filterModel: j,
|
|
5940
5942
|
query: b,
|
|
5941
|
-
selectedValues:
|
|
5943
|
+
selectedValues: _
|
|
5942
5944
|
}, R = k.field;
|
|
5943
5945
|
i.value[R] = !0;
|
|
5944
|
-
const
|
|
5945
|
-
o.value[R] =
|
|
5946
|
-
const N =
|
|
5946
|
+
const D = (o.value[R] || 0) + 1;
|
|
5947
|
+
o.value[R] = D;
|
|
5948
|
+
const N = _.map((I) => {
|
|
5947
5949
|
const B = y(R, I);
|
|
5948
5950
|
return {
|
|
5949
5951
|
value: B?.value || I,
|
|
@@ -5953,7 +5955,7 @@ const po = {
|
|
|
5953
5955
|
metadata: B?.metadata || {}
|
|
5954
5956
|
};
|
|
5955
5957
|
}), A = await s.value?.(L);
|
|
5956
|
-
if (
|
|
5958
|
+
if (D === o.value[R]) {
|
|
5957
5959
|
N.forEach((B) => {
|
|
5958
5960
|
A?.some((K) => K?.value === B?.value) || A?.push(B);
|
|
5959
5961
|
}), A && (p.value[R] = A);
|
|
@@ -5977,15 +5979,15 @@ const po = {
|
|
|
5977
5979
|
c.push(...k);
|
|
5978
5980
|
const d = [];
|
|
5979
5981
|
return k.forEach((b) => {
|
|
5980
|
-
const
|
|
5981
|
-
|
|
5982
|
-
}), g.value[T] = d, c.filter((b,
|
|
5982
|
+
const _ = y(T, b);
|
|
5983
|
+
_ && d.push(_);
|
|
5984
|
+
}), g.value[T] = d, c.filter((b, _) => c.indexOf(b) === _);
|
|
5983
5985
|
}, M = (T) => v.value[T] || [], E = (T, k) => {
|
|
5984
5986
|
m.value[T] = k;
|
|
5985
5987
|
}, $ = (T, k) => {
|
|
5986
|
-
const c = /* @__PURE__ */ new Set(), d = T ? Object.keys(T) : [], b = k ? Object.keys(k) : [],
|
|
5987
|
-
[...d, ...b].filter((R) => !
|
|
5988
|
-
for (const R of
|
|
5988
|
+
const c = /* @__PURE__ */ new Set(), d = T ? Object.keys(T) : [], b = k ? Object.keys(k) : [], _ = d.filter((R) => b.includes(R));
|
|
5989
|
+
[...d, ...b].filter((R) => !_.includes(R)).forEach((R) => c.add(R));
|
|
5990
|
+
for (const R of _)
|
|
5989
5991
|
JSON.stringify(T?.[R]) !== JSON.stringify(k?.[R]) && c.add(R);
|
|
5990
5992
|
const L = Date.now();
|
|
5991
5993
|
for (const R of Array.from(c))
|
|
@@ -6025,10 +6027,10 @@ const po = {
|
|
|
6025
6027
|
tableSearchFilterModel: n,
|
|
6026
6028
|
tableSearchHandler: u
|
|
6027
6029
|
};
|
|
6028
|
-
},
|
|
6030
|
+
}, _r = () => {
|
|
6029
6031
|
const e = Ee(wa, null);
|
|
6030
|
-
return e ||
|
|
6031
|
-
},
|
|
6032
|
+
return e || Dl();
|
|
6033
|
+
}, y1 = ["title"], b1 = { class: "pv-truncate" }, w1 = { key: 0 }, S1 = { key: 1 }, C1 = /* @__PURE__ */ se({
|
|
6032
6034
|
__name: "FocusItemRenderer",
|
|
6033
6035
|
props: {
|
|
6034
6036
|
id: {},
|
|
@@ -6054,7 +6056,7 @@ const po = {
|
|
|
6054
6056
|
style: { "max-height": "16px", "max-width": "calc(100% - 24px)" },
|
|
6055
6057
|
title: e.text
|
|
6056
6058
|
}, [
|
|
6057
|
-
V("span",
|
|
6059
|
+
V("span", b1, ae(e.text), 1),
|
|
6058
6060
|
te(hn, {
|
|
6059
6061
|
variant: "dark",
|
|
6060
6062
|
tooltipPosition: "top-right",
|
|
@@ -6069,29 +6071,29 @@ const po = {
|
|
|
6069
6071
|
}, null, 8, ["class"])
|
|
6070
6072
|
]),
|
|
6071
6073
|
"tooltip-content": Pe(() => [
|
|
6072
|
-
J(n)(e.id, t.rendererProps?.filterField) ? (h(), F("span",
|
|
6074
|
+
J(n)(e.id, t.rendererProps?.filterField) ? (h(), F("span", w1, " Remove Focus ")) : (h(), F("span", S1, " Select as Focus "))
|
|
6073
6075
|
]),
|
|
6074
6076
|
_: 1
|
|
6075
6077
|
})
|
|
6076
|
-
], 8,
|
|
6078
|
+
], 8, y1));
|
|
6077
6079
|
}
|
|
6078
|
-
}),
|
|
6080
|
+
}), x1 = {
|
|
6079
6081
|
key: 0,
|
|
6080
6082
|
role: "list",
|
|
6081
6083
|
class: "pv-flex pv-stack-4",
|
|
6082
6084
|
style: { "--flex-wrap": "wrap", "max-width": "100%" }
|
|
6083
|
-
},
|
|
6085
|
+
}, k1 = { class: "pv-full-width pv-flex pv-space-between" }, T1 = { class: "pv-flex" }, F1 = { class: "pv-text-subdued pv-text-body-xxs" }, $1 = {
|
|
6084
6086
|
key: 0,
|
|
6085
6087
|
class: "pv-full-width"
|
|
6086
|
-
},
|
|
6088
|
+
}, O1 = {
|
|
6087
6089
|
key: 0,
|
|
6088
6090
|
class: "pv-flex-inline",
|
|
6089
6091
|
style: { "max-width": "100%" }
|
|
6090
|
-
},
|
|
6092
|
+
}, _1 = {
|
|
6091
6093
|
role: "list",
|
|
6092
6094
|
class: "pv-flex",
|
|
6093
6095
|
style: { "--flex-wrap": "wrap", "max-width": "100%" }
|
|
6094
|
-
}, D1 = 4,
|
|
6096
|
+
}, D1 = 4, P1 = /* @__PURE__ */ se({
|
|
6095
6097
|
__name: "SetFilter",
|
|
6096
6098
|
props: {
|
|
6097
6099
|
enableFocusView: { type: Boolean, default: !1 },
|
|
@@ -6114,8 +6116,8 @@ const po = {
|
|
|
6114
6116
|
isServerSideFilter: g,
|
|
6115
6117
|
setFilterValueSearchText: m,
|
|
6116
6118
|
setFilterSelectedValues: S
|
|
6117
|
-
} =
|
|
6118
|
-
const Z =
|
|
6119
|
+
} = _r(), { computedFocuses: C, handleFocusUpdate: y, isFocused: x, removeFocus: M, computedFocusType: E, shouldShowFocusButton: $ } = Or(), T = Ee(hl, G(!1)), k = G([]), c = G([]), d = O(() => n.filterColDef.field || ""), b = O(() => n.filterColDef.filter || ""), _ = O(() => n.filterColDef.headerName || ""), j = G(!1), L = O(() => n.filterStyle == "vertical"), R = O(() => u1(n.filterColDef)), D = G(""), N = () => Object.entries(s.value).filter(([Z, re]) => Z !== d.value).reduce((Z, [re, ie]) => Math.max(Z, ie), 0), A = () => {
|
|
6120
|
+
const Z = _l(n.filterColDef, o.value);
|
|
6119
6121
|
k.value = Array.from(/* @__PURE__ */ new Set([...v(d.value), ...Z]));
|
|
6120
6122
|
}, I = async (Z = !1, re = !1) => {
|
|
6121
6123
|
if (!a.value) return;
|
|
@@ -6139,7 +6141,7 @@ const po = {
|
|
|
6139
6141
|
text: K(re),
|
|
6140
6142
|
groupingLabel: ie,
|
|
6141
6143
|
disabled: xe(re),
|
|
6142
|
-
renderer: $(d.value) ?
|
|
6144
|
+
renderer: $(d.value) ? C1 : Me.value,
|
|
6143
6145
|
rendererProps: {
|
|
6144
6146
|
filterField: d.value,
|
|
6145
6147
|
onFocusUpdate: ce
|
|
@@ -6207,7 +6209,7 @@ const po = {
|
|
|
6207
6209
|
S(d.value, Z);
|
|
6208
6210
|
}
|
|
6209
6211
|
), Rn(
|
|
6210
|
-
() =>
|
|
6212
|
+
() => D.value,
|
|
6211
6213
|
async (Z) => {
|
|
6212
6214
|
m(d.value, Z), await I(!0, !0);
|
|
6213
6215
|
},
|
|
@@ -6234,16 +6236,16 @@ const po = {
|
|
|
6234
6236
|
});
|
|
6235
6237
|
}, ce = (Z) => {
|
|
6236
6238
|
Z && !k.value.includes(Z) && be(Z), y(Z);
|
|
6237
|
-
},
|
|
6239
|
+
}, De = () => {
|
|
6238
6240
|
r("filter-closed");
|
|
6239
6241
|
};
|
|
6240
6242
|
return vt(() => {
|
|
6241
6243
|
A();
|
|
6242
6244
|
}), (Z, re) => (h(), F(ve, null, [
|
|
6243
6245
|
V("div", null, [
|
|
6244
|
-
L.value ? (h(), F("ul",
|
|
6246
|
+
L.value ? (h(), F("ul", x1, [
|
|
6245
6247
|
(h(!0), F(ve, null, Je(k.value, (ie) => (h(), F("li", {
|
|
6246
|
-
key: `${
|
|
6248
|
+
key: `${_.value}-${ie}`,
|
|
6247
6249
|
style: { "max-width": "100%", "line-height": "1rem" }
|
|
6248
6250
|
}, [
|
|
6249
6251
|
te(Zr, {
|
|
@@ -6253,13 +6255,13 @@ const po = {
|
|
|
6253
6255
|
}, null, 8, ["label", "onHandleClose"])
|
|
6254
6256
|
]))), 128))
|
|
6255
6257
|
])) : U("", !0),
|
|
6256
|
-
te(J(
|
|
6258
|
+
te(J(Yc), {
|
|
6257
6259
|
modelValue: ke.value,
|
|
6258
6260
|
"onUpdate:modelValue": re[1] || (re[1] = (ie) => ke.value = ie),
|
|
6259
|
-
searchInput:
|
|
6260
|
-
"onUpdate:searchInput": re[2] || (re[2] = (ie) =>
|
|
6261
|
+
searchInput: D.value,
|
|
6262
|
+
"onUpdate:searchInput": re[2] || (re[2] = (ie) => D.value = ie),
|
|
6261
6263
|
"data-horizontal-filter-field": L.value ? void 0 : d.value,
|
|
6262
|
-
label: L.value ? "" :
|
|
6264
|
+
label: L.value ? "" : _.value,
|
|
6263
6265
|
icon: L.value ? "add-circle" : void 0,
|
|
6264
6266
|
variant: L.value ? "ghost" : "secondary",
|
|
6265
6267
|
counterPosition: !L.value && k.value.length > 0 ? void 0 : "none",
|
|
@@ -6277,10 +6279,10 @@ const po = {
|
|
|
6277
6279
|
groupings: ["preferences", "suggestions"],
|
|
6278
6280
|
isLoading: j.value,
|
|
6279
6281
|
onDropdownOpen: re[3] || (re[3] = (ie) => I(!0)),
|
|
6280
|
-
onDropdownClosed:
|
|
6282
|
+
onDropdownClosed: De
|
|
6281
6283
|
}, Kr({
|
|
6282
6284
|
preferences: Pe(() => [
|
|
6283
|
-
V("div",
|
|
6285
|
+
V("div", k1, [
|
|
6284
6286
|
re[5] || (re[5] = V("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1)),
|
|
6285
6287
|
te(J(hn), {
|
|
6286
6288
|
variant: "dark",
|
|
@@ -6290,7 +6292,7 @@ const po = {
|
|
|
6290
6292
|
te(qe, {
|
|
6291
6293
|
size: "md",
|
|
6292
6294
|
variant: "ghost",
|
|
6293
|
-
onClick: re[0] || (re[0] = (ie) => Z.$emit("handle-settings-icon",
|
|
6295
|
+
onClick: re[0] || (re[0] = (ie) => Z.$emit("handle-settings-icon", _.value)),
|
|
6294
6296
|
"right-icon": "sliders-horizontal"
|
|
6295
6297
|
})
|
|
6296
6298
|
]),
|
|
@@ -6309,12 +6311,12 @@ const po = {
|
|
|
6309
6311
|
size: "sm"
|
|
6310
6312
|
}, Kr({
|
|
6311
6313
|
label: Pe(() => [
|
|
6312
|
-
V("div",
|
|
6314
|
+
V("div", T1, [
|
|
6313
6315
|
te(Ne, {
|
|
6314
6316
|
name: "ai",
|
|
6315
6317
|
size: 12
|
|
6316
6318
|
}),
|
|
6317
|
-
V("p",
|
|
6319
|
+
V("p", F1, ae(W.value), 1)
|
|
6318
6320
|
])
|
|
6319
6321
|
]),
|
|
6320
6322
|
_: 2
|
|
@@ -6333,27 +6335,27 @@ const po = {
|
|
|
6333
6335
|
ge.value ? {
|
|
6334
6336
|
name: "no-results",
|
|
6335
6337
|
fn: Pe((ie) => [
|
|
6336
|
-
(h(), ee(Mt(ge.value), pn(
|
|
6338
|
+
(h(), ee(Mt(ge.value), pn(_a(ie)), null, 16))
|
|
6337
6339
|
]),
|
|
6338
6340
|
key: "0"
|
|
6339
6341
|
} : void 0,
|
|
6340
6342
|
oe.value ? {
|
|
6341
6343
|
name: "footer",
|
|
6342
6344
|
fn: Pe((ie) => [
|
|
6343
|
-
(h(), ee(Mt(oe.value), pn(
|
|
6345
|
+
(h(), ee(Mt(oe.value), pn(_a(ie)), null, 16))
|
|
6344
6346
|
]),
|
|
6345
6347
|
key: "1"
|
|
6346
6348
|
} : void 0
|
|
6347
6349
|
]), 1032, ["modelValue", "searchInput", "data-horizontal-filter-field", "label", "icon", "variant", "counterPosition", "showClear", "showSearchInput", "showDropdown", "overlayTrigger", "options", "popoverCssProperties", "isLoading"])
|
|
6348
6350
|
]),
|
|
6349
|
-
L.value ? (h(), F("div",
|
|
6350
|
-
pe.value.length > 0 ? (h(), F("div",
|
|
6351
|
-
V("ul",
|
|
6351
|
+
L.value ? (h(), F("div", $1, [
|
|
6352
|
+
pe.value.length > 0 ? (h(), F("div", O1, [
|
|
6353
|
+
V("ul", _1, [
|
|
6352
6354
|
re[6] || (re[6] = V("li", null, [
|
|
6353
6355
|
V("p", { class: "pv-text-subdued pv-text-body-md" }, "Suggested:")
|
|
6354
6356
|
], -1)),
|
|
6355
6357
|
(h(!0), F(ve, null, Je(pe.value.filter((ie) => ie !== "" && ie != null).slice(0, D1), (ie) => (h(), F("li", {
|
|
6356
|
-
key: `${
|
|
6358
|
+
key: `${_.value}-${ie}-suggest`,
|
|
6357
6359
|
class: we(j.value ? "pv-shimmer" : ""),
|
|
6358
6360
|
style: { "max-width": "100%", "line-height": "1rem" }
|
|
6359
6361
|
}, [
|
|
@@ -6368,17 +6370,17 @@ const po = {
|
|
|
6368
6370
|
])) : U("", !0)
|
|
6369
6371
|
], 64));
|
|
6370
6372
|
}
|
|
6371
|
-
}), bo = /* @__PURE__ */ ht(
|
|
6373
|
+
}), bo = /* @__PURE__ */ ht(P1, [["__scopeId", "data-v-30eb6078"]]), M1 = { class: "pv-flex" }, E1 = { class: "pv-flex" }, R1 = { class: "pv-flex pv-space-between pv-stack-8" }, I1 = { class: "pv-text-title-lg" }, A1 = {
|
|
6372
6374
|
id: "filter-vertical-drawer",
|
|
6373
6375
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
6374
6376
|
style: { height: "100%" }
|
|
6375
|
-
},
|
|
6377
|
+
}, L1 = { class: "pv-full-width" }, V1 = {
|
|
6376
6378
|
class: "pv-details pv-stack-12",
|
|
6377
6379
|
open: ""
|
|
6378
|
-
},
|
|
6380
|
+
}, B1 = { class: "pv-flex pv-full-width" }, N1 = { class: "pv-text-title-lg" }, z1 = { class: "pv-flex pv-space-between" }, G1 = { class: "pv-flex" }, j1 = {
|
|
6379
6381
|
class: "pv-flex",
|
|
6380
6382
|
style: { "--flex-justify": "end", "--flex-gap": "8px", "margin-top": "auto" }
|
|
6381
|
-
},
|
|
6383
|
+
}, H1 = /* @__PURE__ */ se({
|
|
6382
6384
|
__name: "FilterPanel",
|
|
6383
6385
|
props: {
|
|
6384
6386
|
enableFocusView: { type: Boolean, default: !1 },
|
|
@@ -6389,7 +6391,7 @@ const po = {
|
|
|
6389
6391
|
},
|
|
6390
6392
|
emits: ["handle-settings-icon"],
|
|
6391
6393
|
setup(e) {
|
|
6392
|
-
const t = Ee(nn, G(null)), n = Ee(pl, G([])), r = Ee(fl, G(null)), a = e, { filterModelCleared: o, stagedFilterModel: l, filterModel: i } =
|
|
6394
|
+
const t = Ee(nn, G(null)), n = Ee(pl, G([])), r = Ee(fl, G(null)), a = e, { filterModelCleared: o, stagedFilterModel: l, filterModel: i } = _r(), s = G(!1), u = G(!1), f = G(""), p = O(() => n.value.filter((k) => ra(k))), v = O(() => {
|
|
6393
6395
|
const k = f.value?.trim().toLowerCase() || "";
|
|
6394
6396
|
return !k || k === "" ? p.value : n.value.filter((c) => {
|
|
6395
6397
|
const d = c.headerName?.toLowerCase() || c.field?.toLowerCase();
|
|
@@ -6415,7 +6417,7 @@ const po = {
|
|
|
6415
6417
|
S.value && t.value && (t.value.setFilterModel(l.value), t.value.onFilterChanged()), E();
|
|
6416
6418
|
};
|
|
6417
6419
|
return (k, c) => (h(), F(ve, null, [
|
|
6418
|
-
V("div",
|
|
6420
|
+
V("div", M1, [
|
|
6419
6421
|
(h(!0), F(ve, null, Je(g.value, (d) => (h(), F(ve, {
|
|
6420
6422
|
key: d.field
|
|
6421
6423
|
}, [
|
|
@@ -6428,7 +6430,7 @@ const po = {
|
|
|
6428
6430
|
onHandleSettingsIcon: c[0] || (c[0] = (b) => k.$emit("handle-settings-icon", b))
|
|
6429
6431
|
}, null, 8, ["enable-focus-view", "display-preferences-icon", "focusable-columns", "filterColDef"])) : U("", !0)
|
|
6430
6432
|
], 64))), 128)),
|
|
6431
|
-
V("div",
|
|
6433
|
+
V("div", E1, [
|
|
6432
6434
|
a.enableVerticalPanel ? (h(), ee(J(qe), {
|
|
6433
6435
|
key: 0,
|
|
6434
6436
|
label: "All Filters",
|
|
@@ -6460,8 +6462,8 @@ const po = {
|
|
|
6460
6462
|
style: { "max-width": "450px", "z-index": "10" }
|
|
6461
6463
|
}, {
|
|
6462
6464
|
header: Pe(() => [
|
|
6463
|
-
V("div",
|
|
6464
|
-
V("p",
|
|
6465
|
+
V("div", R1, [
|
|
6466
|
+
V("p", I1, "All Filters (" + ae(p.value.length) + ")", 1),
|
|
6465
6467
|
V("button", {
|
|
6466
6468
|
class: "pv-button-ghost",
|
|
6467
6469
|
onClick: c[2] || (c[2] = (d) => $())
|
|
@@ -6476,12 +6478,12 @@ const po = {
|
|
|
6476
6478
|
}, null, 8, ["modelValue"])
|
|
6477
6479
|
]),
|
|
6478
6480
|
footer: Pe(() => [
|
|
6479
|
-
V("div",
|
|
6481
|
+
V("div", z1, [
|
|
6480
6482
|
V("button", {
|
|
6481
6483
|
class: "pv-button-ghost",
|
|
6482
6484
|
onClick: c[5] || (c[5] = (d) => M())
|
|
6483
6485
|
}, "Clear All"),
|
|
6484
|
-
V("div",
|
|
6486
|
+
V("div", G1, [
|
|
6485
6487
|
te(J(qe), {
|
|
6486
6488
|
variant: "ghost",
|
|
6487
6489
|
label: "Cancel",
|
|
@@ -6502,17 +6504,17 @@ const po = {
|
|
|
6502
6504
|
])
|
|
6503
6505
|
]),
|
|
6504
6506
|
default: Pe(() => [
|
|
6505
|
-
V("div",
|
|
6506
|
-
V("div",
|
|
6507
|
+
V("div", A1, [
|
|
6508
|
+
V("div", L1, [
|
|
6507
6509
|
(h(!0), F(ve, null, Je(v.value, (d, b) => (h(), F("div", {
|
|
6508
6510
|
key: d.field,
|
|
6509
6511
|
class: we([{
|
|
6510
6512
|
"pv-border-bottom": b < v.value.length - 1
|
|
6511
6513
|
}, "pv-stack-12"])
|
|
6512
6514
|
}, [
|
|
6513
|
-
V("details",
|
|
6514
|
-
V("summary",
|
|
6515
|
-
V("span",
|
|
6515
|
+
V("details", V1, [
|
|
6516
|
+
V("summary", B1, [
|
|
6517
|
+
V("span", N1, ae(d.headerName), 1)
|
|
6516
6518
|
]),
|
|
6517
6519
|
V("div", null, [
|
|
6518
6520
|
J(t) ? (h(), ee(bo, {
|
|
@@ -6523,7 +6525,7 @@ const po = {
|
|
|
6523
6525
|
"display-preferences-icon": a.displayPreferencesIcon,
|
|
6524
6526
|
"focusable-columns": a.focusableColumns,
|
|
6525
6527
|
onFilterSelectionChanged: C,
|
|
6526
|
-
onHandleSettingsIcon: c[4] || (c[4] = (
|
|
6528
|
+
onHandleSettingsIcon: c[4] || (c[4] = (_) => k.$emit("handle-settings-icon", _))
|
|
6527
6529
|
}, null, 8, ["enable-focus-view", "filterColDef", "display-preferences-icon", "focusable-columns"])) : U("", !0)
|
|
6528
6530
|
])
|
|
6529
6531
|
])
|
|
@@ -6544,7 +6546,7 @@ const po = {
|
|
|
6544
6546
|
V("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)
|
|
6545
6547
|
])]),
|
|
6546
6548
|
footer: Pe(() => [
|
|
6547
|
-
V("div",
|
|
6549
|
+
V("div", j1, [
|
|
6548
6550
|
te(J(qe), {
|
|
6549
6551
|
label: "Cancel",
|
|
6550
6552
|
variant: "secondary",
|
|
@@ -6563,10 +6565,10 @@ const po = {
|
|
|
6563
6565
|
}, 8, ["modelValue"])
|
|
6564
6566
|
], 64));
|
|
6565
6567
|
}
|
|
6566
|
-
}),
|
|
6568
|
+
}), q1 = {
|
|
6567
6569
|
key: 0,
|
|
6568
6570
|
class: "pv-flex ag-header-actions"
|
|
6569
|
-
},
|
|
6571
|
+
}, U1 = /* @__PURE__ */ se({
|
|
6570
6572
|
__name: "HeaderCellRenderer",
|
|
6571
6573
|
props: {
|
|
6572
6574
|
params: {}
|
|
@@ -6588,7 +6590,7 @@ const po = {
|
|
|
6588
6590
|
}, C = () => {
|
|
6589
6591
|
u.value = !0, s.value && r.params.showColumnMenu(s.value, S);
|
|
6590
6592
|
}, y = (E) => {
|
|
6591
|
-
a.value = E.enableFilterButton, o.value = E.enableSorting || !1, l.value = E.displayName, i.value = ka(E.column.getColDef().context?.dataType), l.value =
|
|
6593
|
+
a.value = E.enableFilterButton, o.value = E.enableSorting || !1, l.value = E.displayName, i.value = ka(E.column.getColDef().context?.dataType), l.value = Ed(l.value, E.column.getColDef().context?.dataType);
|
|
6592
6594
|
}, x = () => {
|
|
6593
6595
|
o.value && r.params.progressSort(!1);
|
|
6594
6596
|
};
|
|
@@ -6617,7 +6619,7 @@ const po = {
|
|
|
6617
6619
|
name: p.value
|
|
6618
6620
|
}, null, 8, ["name"])) : U("", !0)
|
|
6619
6621
|
], 2),
|
|
6620
|
-
f.value ? (h(), F("div",
|
|
6622
|
+
f.value ? (h(), F("div", q1, [
|
|
6621
6623
|
V("div", {
|
|
6622
6624
|
ref_key: "menuButton",
|
|
6623
6625
|
ref: s,
|
|
@@ -6634,7 +6636,7 @@ const po = {
|
|
|
6634
6636
|
])) : U("", !0)
|
|
6635
6637
|
], 4));
|
|
6636
6638
|
}
|
|
6637
|
-
}), wo = /* @__PURE__ */ ht(
|
|
6639
|
+
}), wo = /* @__PURE__ */ ht(U1, [["__scopeId", "data-v-58d16af9"]]), K1 = To.withParams({
|
|
6638
6640
|
headerHeight: "30px",
|
|
6639
6641
|
headerBackgroundColor: "#F7F8F8",
|
|
6640
6642
|
headerCellHoverBackgroundColor: "#F7F8F8",
|
|
@@ -6653,7 +6655,7 @@ const po = {
|
|
|
6653
6655
|
wrapperBorderRadius: "0px",
|
|
6654
6656
|
menuBackgroundColor: "white",
|
|
6655
6657
|
accentColor: "#36C5BA"
|
|
6656
|
-
}),
|
|
6658
|
+
}), W1 = To.withParams({
|
|
6657
6659
|
headerHeight: "30px",
|
|
6658
6660
|
headerBackgroundColor: "white",
|
|
6659
6661
|
headerCellHoverBackgroundColor: "#F7F8F8",
|
|
@@ -6672,10 +6674,10 @@ const po = {
|
|
|
6672
6674
|
wrapperBorderRadius: "0px",
|
|
6673
6675
|
menuBackgroundColor: "white",
|
|
6674
6676
|
accentColor: "#36C5BA"
|
|
6675
|
-
}),
|
|
6677
|
+
}), Y1 = { class: "pv-popover-menu" }, X1 = {
|
|
6676
6678
|
class: "pv-popover",
|
|
6677
6679
|
style: { "--height": "auto" }
|
|
6678
|
-
},
|
|
6680
|
+
}, Q1 = ["disabled"], Z1 = /* @__PURE__ */ se({
|
|
6679
6681
|
__name: "ExportMenu",
|
|
6680
6682
|
props: {
|
|
6681
6683
|
getCsvData: { type: Function }
|
|
@@ -6692,7 +6694,7 @@ const po = {
|
|
|
6692
6694
|
const o = new Blob([a], { type: "text/csv;charset=utf-8;" }), l = document.createElement("a");
|
|
6693
6695
|
l.href = URL.createObjectURL(o), l.setAttribute("download", "datatable_export.csv"), l.click(), n.value = !1;
|
|
6694
6696
|
}
|
|
6695
|
-
return (a, o) => (h(), F("nav",
|
|
6697
|
+
return (a, o) => (h(), F("nav", Y1, [
|
|
6696
6698
|
o[0] || (o[0] = V("button", {
|
|
6697
6699
|
type: "button",
|
|
6698
6700
|
class: "pv-button-icon"
|
|
@@ -6705,7 +6707,7 @@ const po = {
|
|
|
6705
6707
|
V("use", { "xlink:href": "#ellipsis" })
|
|
6706
6708
|
])
|
|
6707
6709
|
], -1)),
|
|
6708
|
-
V("div",
|
|
6710
|
+
V("div", X1, [
|
|
6709
6711
|
V("button", {
|
|
6710
6712
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
6711
6713
|
onClick: Sr(r, ["prevent"]),
|
|
@@ -6716,14 +6718,14 @@ const po = {
|
|
|
6716
6718
|
], 64)) : (h(), F(ve, { key: 1 }, [
|
|
6717
6719
|
pt("Download CSV")
|
|
6718
6720
|
], 64))
|
|
6719
|
-
], 8,
|
|
6721
|
+
], 8, Q1)
|
|
6720
6722
|
])
|
|
6721
6723
|
]));
|
|
6722
6724
|
}
|
|
6723
|
-
}),
|
|
6725
|
+
}), J1 = {
|
|
6724
6726
|
key: 1,
|
|
6725
6727
|
class: ""
|
|
6726
|
-
},
|
|
6728
|
+
}, ef = /* @__PURE__ */ se({
|
|
6727
6729
|
__name: "PaginationPanel",
|
|
6728
6730
|
props: {
|
|
6729
6731
|
panelSize: { default: "xl" }
|
|
@@ -6760,7 +6762,7 @@ const po = {
|
|
|
6760
6762
|
size: a.panelSize === "l" ? "md" : "lg",
|
|
6761
6763
|
onClick: (v) => s(p),
|
|
6762
6764
|
label: p.toString()
|
|
6763
|
-
}, null, 8, ["variant", "size", "onClick", "label"])) : (h(), F("span",
|
|
6765
|
+
}, null, 8, ["variant", "size", "onClick", "label"])) : (h(), F("span", J1, "..."))
|
|
6764
6766
|
], 64))), 128)),
|
|
6765
6767
|
te(qe, {
|
|
6766
6768
|
variant: "ghost",
|
|
@@ -6771,10 +6773,10 @@ const po = {
|
|
|
6771
6773
|
}, null, 8, ["disabled", "size"])
|
|
6772
6774
|
], 2));
|
|
6773
6775
|
}
|
|
6774
|
-
}),
|
|
6776
|
+
}), tf = {
|
|
6775
6777
|
key: 0,
|
|
6776
6778
|
class: "pv-tag"
|
|
6777
|
-
},
|
|
6779
|
+
}, nf = /* @__PURE__ */ se({
|
|
6778
6780
|
__name: "TagCellRenderer",
|
|
6779
6781
|
props: {
|
|
6780
6782
|
params: {}
|
|
@@ -6784,12 +6786,12 @@ const po = {
|
|
|
6784
6786
|
const r = t.params.valueFormatted || t.params.value || "";
|
|
6785
6787
|
return r.trim() === "" ? null : r;
|
|
6786
6788
|
});
|
|
6787
|
-
return (r, a) => n.value ? (h(), F("div",
|
|
6789
|
+
return (r, a) => n.value ? (h(), F("div", tf, ae(n.value), 1)) : U("", !0);
|
|
6788
6790
|
}
|
|
6789
|
-
}),
|
|
6791
|
+
}), rf = {
|
|
6790
6792
|
key: 0,
|
|
6791
6793
|
class: "pv-table-row-number"
|
|
6792
|
-
},
|
|
6794
|
+
}, af = /* @__PURE__ */ se({
|
|
6793
6795
|
__name: "RowCountCellRenderer",
|
|
6794
6796
|
props: {
|
|
6795
6797
|
params: {}
|
|
@@ -6801,12 +6803,12 @@ const po = {
|
|
|
6801
6803
|
});
|
|
6802
6804
|
return (a, o) => (h(), F("div", null, [
|
|
6803
6805
|
V("p", null, [
|
|
6804
|
-
n.value ? (h(), F("span",
|
|
6806
|
+
n.value ? (h(), F("span", rf, ae(n.value), 1)) : U("", !0),
|
|
6805
6807
|
pt(" " + ae(r.value), 1)
|
|
6806
6808
|
])
|
|
6807
6809
|
]));
|
|
6808
6810
|
}
|
|
6809
|
-
}),
|
|
6811
|
+
}), of = /* @__PURE__ */ ht(af, [["__scopeId", "data-v-686928ce"]]), Pl = () => {
|
|
6810
6812
|
const e = (o, l) => {
|
|
6811
6813
|
const i = o || { queryTerms: [] }, s = l.queryTerm || {};
|
|
6812
6814
|
return t(l) && !r(o, l) && i.queryTerms.push(s), i;
|
|
@@ -6820,13 +6822,13 @@ const po = {
|
|
|
6820
6822
|
return i !== -1 && o.queryTerms.splice(i, 1), o;
|
|
6821
6823
|
}
|
|
6822
6824
|
};
|
|
6823
|
-
},
|
|
6825
|
+
}, lf = { class: "pv-flex" }, sf = {
|
|
6824
6826
|
key: 0,
|
|
6825
6827
|
class: "pv-text-body-xs"
|
|
6826
|
-
},
|
|
6828
|
+
}, uf = { key: 0 }, cf = {
|
|
6827
6829
|
class: "pv-text-subdued pv-text-body-xs",
|
|
6828
6830
|
style: { "font-weight": "500" }
|
|
6829
|
-
},
|
|
6831
|
+
}, df = /* @__PURE__ */ se({
|
|
6830
6832
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
6831
6833
|
props: {
|
|
6832
6834
|
id: {},
|
|
@@ -6854,7 +6856,7 @@ const po = {
|
|
|
6854
6856
|
r.value.innerHTML = o.value.replace(u, '<span style="font-weight: bold;">$1</span>');
|
|
6855
6857
|
}
|
|
6856
6858
|
}), (u, f) => (h(), F("div", null, [
|
|
6857
|
-
V("div",
|
|
6859
|
+
V("div", lf, [
|
|
6858
6860
|
te(Ne, { name: s.value }, null, 8, ["name"]),
|
|
6859
6861
|
V("div", null, [
|
|
6860
6862
|
V("p", {
|
|
@@ -6862,15 +6864,15 @@ const po = {
|
|
|
6862
6864
|
ref: r,
|
|
6863
6865
|
class: "pv-text-body-md"
|
|
6864
6866
|
}, ae(o.value), 513),
|
|
6865
|
-
i.value ? (h(), F("p",
|
|
6866
|
-
a.value ? U("", !0) : (h(), F("span",
|
|
6867
|
-
V("span",
|
|
6867
|
+
i.value ? (h(), F("p", sf, [
|
|
6868
|
+
a.value ? U("", !0) : (h(), F("span", uf, "Search in ")),
|
|
6869
|
+
V("span", cf, ae(i.value), 1)
|
|
6868
6870
|
])) : U("", !0)
|
|
6869
6871
|
])
|
|
6870
6872
|
])
|
|
6871
6873
|
]));
|
|
6872
6874
|
}
|
|
6873
|
-
}),
|
|
6875
|
+
}), ff = /* @__PURE__ */ ht(df, [["__scopeId", "data-v-cf726c87"]]), pf = /* @__PURE__ */ se({
|
|
6874
6876
|
__name: "QueryFormatter",
|
|
6875
6877
|
props: {
|
|
6876
6878
|
modelValue: { required: !0 },
|
|
@@ -6914,13 +6916,13 @@ const po = {
|
|
|
6914
6916
|
}, null, 8, ["label"])) : U("", !0)
|
|
6915
6917
|
], 64));
|
|
6916
6918
|
}
|
|
6917
|
-
}),
|
|
6919
|
+
}), vf = ["disabled", "placeholder", "data-invalid"], hf = {
|
|
6918
6920
|
key: 1,
|
|
6919
6921
|
class: "pv-text-red pv-text-body-xs"
|
|
6920
|
-
},
|
|
6922
|
+
}, mf = {
|
|
6921
6923
|
key: 1,
|
|
6922
6924
|
class: "pv-text-center"
|
|
6923
|
-
},
|
|
6925
|
+
}, gf = /* @__PURE__ */ se({
|
|
6924
6926
|
__name: "PvQueryBuilderInput",
|
|
6925
6927
|
props: /* @__PURE__ */ et({
|
|
6926
6928
|
placeholder: { default: "Search" },
|
|
@@ -6979,7 +6981,7 @@ const po = {
|
|
|
6979
6981
|
class: "pv-flex pv-full-width pv-inset-inline pv-query-builder-input",
|
|
6980
6982
|
style: ut([{ "--inset-size": "4px" }, f.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
6981
6983
|
}, [
|
|
6982
|
-
te(
|
|
6984
|
+
te(pf, {
|
|
6983
6985
|
modelValue: a.value,
|
|
6984
6986
|
"onUpdate:modelValue": $[0] || ($[0] = (T) => a.value = T),
|
|
6985
6987
|
"wrap-content": f.value,
|
|
@@ -6995,7 +6997,7 @@ const po = {
|
|
|
6995
6997
|
"data-invalid": g.value ? "true" : void 0,
|
|
6996
6998
|
onFocus: M,
|
|
6997
6999
|
onBlur: M
|
|
6998
|
-
}, null, 40,
|
|
7000
|
+
}, null, 40, vf), [
|
|
6999
7001
|
[ia, r.value]
|
|
7000
7002
|
])
|
|
7001
7003
|
], 4),
|
|
@@ -7006,14 +7008,14 @@ const po = {
|
|
|
7006
7008
|
size: "md",
|
|
7007
7009
|
onClick: m
|
|
7008
7010
|
})) : U("", !0),
|
|
7009
|
-
g.value ? (h(), F("p",
|
|
7011
|
+
g.value ? (h(), F("p", hf, ae(v.value), 1)) : U("", !0),
|
|
7010
7012
|
S.value.length > 0 || e.optionsLoading ? (h(), ee(Vn, {
|
|
7011
7013
|
key: 2,
|
|
7012
7014
|
open: s.value,
|
|
7013
7015
|
popoverPositionStyle: { maxWidth: "100%", width: "100%" }
|
|
7014
7016
|
}, {
|
|
7015
7017
|
default: Pe(() => [
|
|
7016
|
-
e.optionsLoading ? (h(), F("div",
|
|
7018
|
+
e.optionsLoading ? (h(), F("div", mf, [
|
|
7017
7019
|
te(J(Cr), { variant: "dark" })
|
|
7018
7020
|
])) : (h(!0), F(ve, { key: 0 }, Je(S.value, (T, k) => (h(), ee(Ot, {
|
|
7019
7021
|
key: `${k}-${T.searchText}`,
|
|
@@ -7021,7 +7023,7 @@ const po = {
|
|
|
7021
7023
|
text: T.text,
|
|
7022
7024
|
icon: T.icon,
|
|
7023
7025
|
disabled: T.disabled,
|
|
7024
|
-
renderer:
|
|
7026
|
+
renderer: ff,
|
|
7025
7027
|
"renderer-props": T.queryTerm,
|
|
7026
7028
|
"search-text": T.searchText,
|
|
7027
7029
|
onHandleSelected: (c) => y(T)
|
|
@@ -7033,14 +7035,14 @@ const po = {
|
|
|
7033
7035
|
[J(Gn), C]
|
|
7034
7036
|
]);
|
|
7035
7037
|
}
|
|
7036
|
-
}),
|
|
7038
|
+
}), yf = /* @__PURE__ */ ht(gf, [["__scopeId", "data-v-137ec25e"]]), bf = /* @__PURE__ */ se({
|
|
7037
7039
|
__name: "TableSearch",
|
|
7038
7040
|
props: {
|
|
7039
7041
|
placeholder: {},
|
|
7040
7042
|
searchStyle: {}
|
|
7041
7043
|
},
|
|
7042
7044
|
setup(e) {
|
|
7043
|
-
const t = e, n = G(null), r = G(""), a = G([]), o = G(!1), l = Ee(nn, G(null)), { isServerSideFilter: i, filterModel: s, tableSearchFilterModel: u, tableSearchHandler: f } =
|
|
7045
|
+
const t = e, n = G(null), r = G(""), a = G([]), o = G(!1), l = Ee(nn, G(null)), { isServerSideFilter: i, filterModel: s, tableSearchFilterModel: u, tableSearchHandler: f } = _r(), p = (m) => {
|
|
7044
7046
|
l?.value && (i.value ? console.error("Server-side filtering with table free text search is not yet supported.") : l.value.setGridOption("quickFilterText", m));
|
|
7045
7047
|
}, v = (m) => {
|
|
7046
7048
|
if (l?.value) {
|
|
@@ -7048,7 +7050,7 @@ const po = {
|
|
|
7048
7050
|
console.error("Client-side filtering with query builder is not yet supported");
|
|
7049
7051
|
return;
|
|
7050
7052
|
}
|
|
7051
|
-
u.value =
|
|
7053
|
+
u.value = c1(m), l.value?.onFilterChanged(), l.value?.refreshServerSide({ purge: !0 });
|
|
7052
7054
|
}
|
|
7053
7055
|
}, g = async (m) => {
|
|
7054
7056
|
if (!m || m.length < 2) {
|
|
@@ -7093,7 +7095,7 @@ const po = {
|
|
|
7093
7095
|
immediate: !0,
|
|
7094
7096
|
deep: !0
|
|
7095
7097
|
}
|
|
7096
|
-
), (m, S) => e.searchStyle === "query-builder" ? (h(), ee(
|
|
7098
|
+
), (m, S) => e.searchStyle === "query-builder" ? (h(), ee(yf, {
|
|
7097
7099
|
key: 0,
|
|
7098
7100
|
placeholder: e.placeholder,
|
|
7099
7101
|
"search-text": r.value,
|
|
@@ -7110,26 +7112,26 @@ const po = {
|
|
|
7110
7112
|
"onUpdate:modelValue": S[3] || (S[3] = (C) => r.value = C)
|
|
7111
7113
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
7112
7114
|
}
|
|
7113
|
-
}),
|
|
7115
|
+
}), wf = {
|
|
7114
7116
|
style: { "background-color": "white" },
|
|
7115
7117
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
7116
|
-
},
|
|
7118
|
+
}, Sf = { style: { color: "black" } }, Cf = /* @__PURE__ */ se({
|
|
7117
7119
|
__name: "TableTooltip",
|
|
7118
7120
|
props: {
|
|
7119
7121
|
params: {}
|
|
7120
7122
|
},
|
|
7121
7123
|
setup(e) {
|
|
7122
|
-
return (t, n) => (h(), F("div",
|
|
7123
|
-
V("p",
|
|
7124
|
+
return (t, n) => (h(), F("div", wf, [
|
|
7125
|
+
V("p", Sf, ae(e.params.value), 1)
|
|
7124
7126
|
]));
|
|
7125
7127
|
}
|
|
7126
|
-
}),
|
|
7128
|
+
}), xf = { class: "pv-stack-16" }, kf = { class: "pv-flex pv-space-between" }, Tf = { class: "pv-flex" }, Ff = {
|
|
7127
7129
|
key: 0,
|
|
7128
7130
|
class: "pv-stack-8 pv-flex pv-space-between"
|
|
7129
|
-
},
|
|
7131
|
+
}, $f = { style: { width: "30%", "max-width": "50%" } }, Of = {
|
|
7130
7132
|
key: 1,
|
|
7131
7133
|
class: "pv-table-overlay"
|
|
7132
|
-
},
|
|
7134
|
+
}, _f = {
|
|
7133
7135
|
class: "pv-text-body-xs pv-text-center",
|
|
7134
7136
|
style: { "padding-top": "16px" }
|
|
7135
7137
|
}, Df = /* @__PURE__ */ se({
|
|
@@ -7209,7 +7211,7 @@ const po = {
|
|
|
7209
7211
|
const l = O(() => ({
|
|
7210
7212
|
height: `${o.containerHeight}px`,
|
|
7211
7213
|
minHeight: `${o.containerMinHeight}px`
|
|
7212
|
-
})), i = O(() => o.theme ? o.theme : M.value.length > 0 ?
|
|
7214
|
+
})), i = O(() => o.theme ? o.theme : M.value.length > 0 ? W1 : K1), s = n, u = "serverSideRowHandler" in o && o.serverSideRowHandler ? {
|
|
7213
7215
|
getRows: (z) => {
|
|
7214
7216
|
if (!T.value) {
|
|
7215
7217
|
z.success({ rowData: [] }), E.value = !0;
|
|
@@ -7217,7 +7219,7 @@ const po = {
|
|
|
7217
7219
|
}
|
|
7218
7220
|
const w = z.success, P = z.request.groupKeys?.length || 0, q = z.request.rowGroupCols?.length || 0, Q = I.value || {}, Se = P === q;
|
|
7219
7221
|
let Oe = !1;
|
|
7220
|
-
q > 0 && P === 0 && (Oe = z.request.rowGroupCols[0].id in Q), (Se || Oe) && Object.keys(Q).length > 0 && (z.request.filterModel =
|
|
7222
|
+
q > 0 && P === 0 && (Oe = z.request.rowGroupCols[0].id in Q), (Se || Oe) && Object.keys(Q).length > 0 && (z.request.filterModel = p1(C, z.request.filterModel, Q)), z.success = (ze) => {
|
|
7221
7223
|
if (o.enableFocusView && Y.value.length > 0 && H.value && ze.rowData) {
|
|
7222
7224
|
const rt = vo(ze.rowData, H.value, Y.value);
|
|
7223
7225
|
if (rt) {
|
|
@@ -7231,7 +7233,7 @@ const po = {
|
|
|
7231
7233
|
} : null, f = "filterValuesSetHandler" in o && o.filterValuesSetHandler ? async (z) => {
|
|
7232
7234
|
let w = [];
|
|
7233
7235
|
const P = { ...L.value };
|
|
7234
|
-
!E.value && y ? w =
|
|
7236
|
+
!E.value && y ? w = _l(z.colDef, P) : w = await N(z.api, z.colDef, z.column, P), z.success([...w, ""]);
|
|
7235
7237
|
} : null, p = (z) => {
|
|
7236
7238
|
const w = z.node, P = z.column?.getColId();
|
|
7237
7239
|
return !w.group || !P ? !1 : he.value.some((q) => {
|
|
@@ -7248,19 +7250,19 @@ const po = {
|
|
|
7248
7250
|
flex: 1,
|
|
7249
7251
|
headerComponent: wo,
|
|
7250
7252
|
cellDataType: !1,
|
|
7251
|
-
tooltipComponent:
|
|
7253
|
+
tooltipComponent: Cf,
|
|
7252
7254
|
cellClass: (w) => gn(w.column?.getColDef()) ? "pv-text-right" : "",
|
|
7253
7255
|
cellRendererSelector: (w) => {
|
|
7254
7256
|
if (p(w))
|
|
7255
7257
|
return {
|
|
7256
|
-
component:
|
|
7258
|
+
component: g1,
|
|
7257
7259
|
params: w
|
|
7258
7260
|
};
|
|
7259
7261
|
if (!w.column?.getColDef().cellRenderer && o.displayRowNumber && M.value.length === 0) {
|
|
7260
7262
|
const P = w.api.getAllDisplayedColumns() || [], q = w.column;
|
|
7261
7263
|
if (P.findIndex((Se) => Se === q) === 0)
|
|
7262
7264
|
return {
|
|
7263
|
-
component:
|
|
7265
|
+
component: of,
|
|
7264
7266
|
params: w
|
|
7265
7267
|
};
|
|
7266
7268
|
}
|
|
@@ -7279,10 +7281,10 @@ const po = {
|
|
|
7279
7281
|
}
|
|
7280
7282
|
}, S = (z, w) => {
|
|
7281
7283
|
const P = { ...z };
|
|
7282
|
-
return w.isArrayField && !z.valueFormatter ? P.valueFormatter = (q) => gi(q, w.dataType) : w.dataType === $t.Percent && !z.valueFormatter ? P.valueFormatter = (q) => hi(q, w.valueDecimals || 0) : w.dataType === $t.Currency && !z.valueFormatter ? P.valueFormatter = (q) => $o(q, w.valueDecimals || 0) : w.dataType === $t.Integer && !z.valueFormatter ? P.valueFormatter = mi : w.dataType === $t.Tag && !z.cellRenderer && (P.cellRenderer =
|
|
7284
|
+
return w.isArrayField && !z.valueFormatter ? P.valueFormatter = (q) => gi(q, w.dataType) : w.dataType === $t.Percent && !z.valueFormatter ? P.valueFormatter = (q) => hi(q, w.valueDecimals || 0) : w.dataType === $t.Currency && !z.valueFormatter ? P.valueFormatter = (q) => $o(q, w.valueDecimals || 0) : w.dataType === $t.Integer && !z.valueFormatter ? P.valueFormatter = mi : w.dataType === $t.Tag && !z.cellRenderer && (P.cellRenderer = nf), P;
|
|
7283
7285
|
}, C = o.colDefs?.map((z) => {
|
|
7284
7286
|
let w = { ...z };
|
|
7285
|
-
u && f && ra(z) && (w =
|
|
7287
|
+
u && f && ra(z) && (w = v1(z, f));
|
|
7286
7288
|
const P = z.context;
|
|
7287
7289
|
return P && (w = S(w, P)), w;
|
|
7288
7290
|
}) || [], y = ta(o.initialGridState, C), x = G(null), M = G([]), E = G(!1), $ = O(() => {
|
|
@@ -7292,10 +7294,10 @@ const po = {
|
|
|
7292
7294
|
return w.headerName;
|
|
7293
7295
|
}
|
|
7294
7296
|
return null;
|
|
7295
|
-
}), T = O(() => (!L.value || Object.keys(L.value).length === 0) && o.requireFiltersToShowData ? !1 : $.value === null), k = O(() => $.value ? `Select at least one value for "${$.value}" to view data.` : "Select a filter to view data."), c = wr(null), d = G([]), b =
|
|
7297
|
+
}), T = O(() => (!L.value || Object.keys(L.value).length === 0) && o.requireFiltersToShowData ? !1 : $.value === null), k = O(() => $.value ? `Select at least one value for "${$.value}" to view data.` : "Select a filter to view data."), c = wr(null), d = G([]), b = _r(), _ = Ee(gr, null), j = _ || xa(), L = b.filterModel, R = b.filterValueMap, D = b.filterValueSelectedMetadataMap, N = b.fetchFilterValues, A = b.filterStoreHandler, I = b.tableSearchFilterModel, B = b.tableSearchHandler;
|
|
7296
7298
|
A.value = o.filterValuesSetHandler, B.value = o.tableSearchHandler, R.value = o.initialFilterValueMap || {};
|
|
7297
7299
|
const K = G(null), H = O(() => j?.computedFocusType.value || null), Y = O(() => j?.computedFocuses.value || []), W = O(() => C.filter((z) => z.filter)), le = O(() => C.filter((z) => z.enableRowGroup)), he = O(() => C.filter((z) => z.aggFunc)), ge = G(null), Me = G({}), oe = G(1), ue = G(0);
|
|
7298
|
-
Ie(wa, b), Ie(gr, j), Ie(dl, d), Ie(nn, c), Ie(
|
|
7300
|
+
Ie(wa, b), Ie(gr, j), Ie(dl, d), Ie(nn, c), Ie(fd, K), Ie(fl, x), Ie(pl, W), Ie($r, le), Ie(Sa, M), Ie(vl, ge), Ie(Ca, Me), Ie(hl, E), Ie(ml, oe), Ie(gl, ue);
|
|
7299
7301
|
const pe = O(() => !o.enableFocusView && !o.rowData || o.enableFocusView && !Y.value.length && !H.value ? o.rowData : vo(o.rowData, H.value, Y.value));
|
|
7300
7302
|
Ce(
|
|
7301
7303
|
() => Y.value,
|
|
@@ -7323,7 +7325,7 @@ const po = {
|
|
|
7323
7325
|
return;
|
|
7324
7326
|
const w = z || { route: [], purge: !0 };
|
|
7325
7327
|
c.value.refreshServerSide(w);
|
|
7326
|
-
}, Ae = () =>
|
|
7328
|
+
}, Ae = () => D.value, ce = async () => {
|
|
7327
7329
|
if (be.value = !0, !c.value)
|
|
7328
7330
|
return console.error("Grid API not available"), be.value = !1, null;
|
|
7329
7331
|
try {
|
|
@@ -7358,26 +7360,26 @@ const po = {
|
|
|
7358
7360
|
}
|
|
7359
7361
|
const q = o.serverSideRowHandler;
|
|
7360
7362
|
return q ? await new Promise((Q, Se) => {
|
|
7361
|
-
const Oe = c.value?.getState(),
|
|
7363
|
+
const Oe = c.value?.getState(), _e = {
|
|
7362
7364
|
request: P,
|
|
7363
7365
|
parentNode: {},
|
|
7364
7366
|
api: c.value,
|
|
7365
7367
|
context: void 0,
|
|
7366
7368
|
success: (ze) => {
|
|
7367
|
-
const rt = c.value?.getRowGroupColumns().map((lt) => lt.getColDef().field).filter((lt) => !!lt) || [], Pt = c.value?.getAllDisplayedColumns().map((lt) => lt.getColDef().field).filter((lt) => !!lt) || [], zt = c.value?.getValueColumns().map((lt) => lt.getColDef().field).filter((lt) => !!lt) || [], ot = Array.from(/* @__PURE__ */ new Set([...rt, ...Pt, ...zt])),
|
|
7369
|
+
const rt = c.value?.getRowGroupColumns().map((lt) => lt.getColDef().field).filter((lt) => !!lt) || [], Pt = c.value?.getAllDisplayedColumns().map((lt) => lt.getColDef().field).filter((lt) => !!lt) || [], zt = c.value?.getValueColumns().map((lt) => lt.getColDef().field).filter((lt) => !!lt) || [], ot = Array.from(/* @__PURE__ */ new Set([...rt, ...Pt, ...zt])), Dr = ze.rowData.map((lt) => {
|
|
7368
7370
|
const Fa = {};
|
|
7369
7371
|
return ot.forEach(($a) => {
|
|
7370
7372
|
const Oa = lt[$a];
|
|
7371
7373
|
Fa[$a] = Oa != null ? String(Oa) : null;
|
|
7372
7374
|
}), Fa;
|
|
7373
|
-
}), Ta = Li.unparse(
|
|
7375
|
+
}), Ta = Li.unparse(Dr);
|
|
7374
7376
|
be.value = !1, Q(Ta);
|
|
7375
7377
|
},
|
|
7376
7378
|
fail: () => {
|
|
7377
7379
|
be.value = !1, Se("CSV export failed.");
|
|
7378
7380
|
}
|
|
7379
7381
|
};
|
|
7380
|
-
q(
|
|
7382
|
+
q(_e, !0);
|
|
7381
7383
|
}) : (console.warn("Client-side export does not return CSV string"), be.value = !1, c.value.exportDataAsCsv(), null);
|
|
7382
7384
|
} catch (z) {
|
|
7383
7385
|
return console.error("CSV export failed", z), be.value = !1, null;
|
|
@@ -7391,7 +7393,7 @@ const po = {
|
|
|
7391
7393
|
availableAggFuncColumns: he,
|
|
7392
7394
|
rowGroupColumnFields: M
|
|
7393
7395
|
});
|
|
7394
|
-
const
|
|
7396
|
+
const De = (z) => {
|
|
7395
7397
|
Lt(() => {
|
|
7396
7398
|
const w = ge.value, P = z.api.getRowGroupColumns(), q = P.length > 0;
|
|
7397
7399
|
let Q;
|
|
@@ -7399,7 +7401,7 @@ const po = {
|
|
|
7399
7401
|
dataType: ge.value?.getColDef().context?.dataType || null
|
|
7400
7402
|
}, z.api.setColumnsVisible([Q.getColId()], !1)) : (ge.value = null, Le.value.headerName = "", Le.value.headerComponent = void 0, Le.value.context = null);
|
|
7401
7403
|
const Se = w?.getColId();
|
|
7402
|
-
if ((!Q || Se !== Q.getColId()) && z.api.setColumnsVisible([Se || ""], !0), M.value = [...P].map((Oe) => Oe.getColId()), o.enableFocusView && !
|
|
7404
|
+
if ((!Q || Se !== Q.getColId()) && z.api.setColumnsVisible([Se || ""], !0), M.value = [...P].map((Oe) => Oe.getColId()), o.enableFocusView && !_) {
|
|
7403
7405
|
const Oe = M.value.length > 0 ? M.value[0] : null;
|
|
7404
7406
|
j.setFocusType(Oe);
|
|
7405
7407
|
}
|
|
@@ -7423,7 +7425,7 @@ const po = {
|
|
|
7423
7425
|
return P.click(), !0;
|
|
7424
7426
|
}
|
|
7425
7427
|
return !1;
|
|
7426
|
-
}, tt = G(
|
|
7428
|
+
}, tt = G(kd), je = G({
|
|
7427
7429
|
loadingMessage: "One moment please..."
|
|
7428
7430
|
}), Le = G({
|
|
7429
7431
|
headerName: "",
|
|
@@ -7434,7 +7436,7 @@ const po = {
|
|
|
7434
7436
|
headerComponent: void 0,
|
|
7435
7437
|
cellRendererParams: {
|
|
7436
7438
|
suppressCount: !0,
|
|
7437
|
-
innerRenderer:
|
|
7439
|
+
innerRenderer: Md,
|
|
7438
7440
|
innerRendererParams: (z) => ({
|
|
7439
7441
|
displayBaseAggregationsOnly: o.displayBaseAggregationsOnly,
|
|
7440
7442
|
displayRowNumber: o.displayRowNumber,
|
|
@@ -7496,9 +7498,9 @@ const po = {
|
|
|
7496
7498
|
},
|
|
7497
7499
|
{ deep: !0 }
|
|
7498
7500
|
);
|
|
7499
|
-
const
|
|
7501
|
+
const _t = (z) => {
|
|
7500
7502
|
E.value = !0, s("first-data-rendered", z);
|
|
7501
|
-
}, ct = (z) => u ? o.isServerSideGroupOpenByDefault ? o.isServerSideGroupOpenByDefault(z) : z.rowNode.level === M.value.length - 2 : !1,
|
|
7503
|
+
}, ct = (z) => u ? o.isServerSideGroupOpenByDefault ? o.isServerSideGroupOpenByDefault(z) : z.rowNode.level === M.value.length - 2 : !1, Dt = O(() => {
|
|
7502
7504
|
if (!u)
|
|
7503
7505
|
return o.groupDefaultExpanded;
|
|
7504
7506
|
});
|
|
@@ -7506,13 +7508,13 @@ const po = {
|
|
|
7506
7508
|
class: "pv-full-width",
|
|
7507
7509
|
style: ut(l.value)
|
|
7508
7510
|
}, [
|
|
7509
|
-
Ct(V("div",
|
|
7510
|
-
V("div",
|
|
7511
|
+
Ct(V("div", xf, [
|
|
7512
|
+
V("div", kf, [
|
|
7511
7513
|
(h(), ee(la, {
|
|
7512
7514
|
to: e.filterTeleportLocation,
|
|
7513
7515
|
disabled: !e.filterTeleportLocation
|
|
7514
7516
|
}, [
|
|
7515
|
-
W.value.length > 0 ? (h(), ee(
|
|
7517
|
+
W.value.length > 0 ? (h(), ee(H1, {
|
|
7516
7518
|
key: 0,
|
|
7517
7519
|
"enable-focus-view": e.enableFocusView,
|
|
7518
7520
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -7522,13 +7524,13 @@ const po = {
|
|
|
7522
7524
|
"max-horizontal-filters": o.maxHorizontalFilters
|
|
7523
7525
|
}, null, 8, ["enable-focus-view", "enable-vertical-panel", "display-preferences-icon", "focusable-columns", "max-horizontal-filters"])) : U("", !0)
|
|
7524
7526
|
], 8, ["to", "disabled"])),
|
|
7525
|
-
V("div",
|
|
7526
|
-
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (h(), ee(
|
|
7527
|
+
V("div", Tf, [
|
|
7528
|
+
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (h(), ee(wd, {
|
|
7527
7529
|
key: 0,
|
|
7528
7530
|
rowGroupLimit: e.rowGroupLimit,
|
|
7529
7531
|
enableFocusView: e.enableFocusView
|
|
7530
7532
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : U("", !0),
|
|
7531
|
-
e.enableCsvExport ? (h(), ee(
|
|
7533
|
+
e.enableCsvExport ? (h(), ee(Z1, {
|
|
7532
7534
|
key: 1,
|
|
7533
7535
|
getCsvData: ce
|
|
7534
7536
|
})) : U("", !0)
|
|
@@ -7541,9 +7543,9 @@ const po = {
|
|
|
7541
7543
|
class: we(["pv-relative pv-stack-8", e.hideTable ? "pv-hide" : ""]),
|
|
7542
7544
|
style: { width: "100%", height: "calc(100% - 20px)", "border-bottom": "1px solid #d2d7db" }
|
|
7543
7545
|
}, [
|
|
7544
|
-
e.enableTableSearch || e.enableTopSlot ? (h(), F("div",
|
|
7545
|
-
V("div",
|
|
7546
|
-
e.enableTableSearch ? (h(), ee(
|
|
7546
|
+
e.enableTableSearch || e.enableTopSlot ? (h(), F("div", Ff, [
|
|
7547
|
+
V("div", $f, [
|
|
7548
|
+
e.enableTableSearch ? (h(), ee(bf, {
|
|
7547
7549
|
key: 0,
|
|
7548
7550
|
placeholder: e.tableSearchPlaceholder,
|
|
7549
7551
|
disabled: !T.value,
|
|
@@ -7557,11 +7559,11 @@ const po = {
|
|
|
7557
7559
|
style: [{ width: "100%", height: "calc(100% - 44px)" }, e.customCssProperties?.agGridWrapper]
|
|
7558
7560
|
}, J(u) ? { serverSideDatasource: J(u) } : {}, {
|
|
7559
7561
|
onColumnMoved: re,
|
|
7560
|
-
onColumnRowGroupChanged:
|
|
7562
|
+
onColumnRowGroupChanged: De,
|
|
7561
7563
|
onColumnVisible: Z,
|
|
7562
7564
|
onFilterChanged: xe,
|
|
7563
7565
|
onFilterOpened: w[1] || (w[1] = (P) => s("filter-opened", P)),
|
|
7564
|
-
onFirstDataRendered:
|
|
7566
|
+
onFirstDataRendered: _t,
|
|
7565
7567
|
onGridReady: ne,
|
|
7566
7568
|
onPaginationChanged: ie,
|
|
7567
7569
|
onSortChanged: $e,
|
|
@@ -7573,7 +7575,7 @@ const po = {
|
|
|
7573
7575
|
getChildCount: Qe,
|
|
7574
7576
|
getMainMenuItems: g.value,
|
|
7575
7577
|
getRowStyle: nt,
|
|
7576
|
-
groupDefaultExpanded:
|
|
7578
|
+
groupDefaultExpanded: Dt.value,
|
|
7577
7579
|
groupDisplayType: "singleColumn",
|
|
7578
7580
|
initialState: J(y) || void 0,
|
|
7579
7581
|
isGroupOpenByDefault: J(u) ? void 0 : o.isClientSideGroupOpenByDefault,
|
|
@@ -7602,20 +7604,20 @@ const po = {
|
|
|
7602
7604
|
"tooltip-show-delay": e.tooltipShowDelay,
|
|
7603
7605
|
"tooltip-hide-delay": e.tooltipHideDelay
|
|
7604
7606
|
}), null, 16, ["style", "autoGroupColumnDef", "columnDefs", "debug", "defaultColDef", "getMainMenuItems", "groupDefaultExpanded", "initialState", "isGroupOpenByDefault", "loading", "loadingCellRenderer", "loadingCellRendererParams", "maxConcurrentDatasourceRequests", "maintainColumnOrder", "rowData", "rowHeight", "rowModelType", "serverSideInitialRowCount", "theme", "pagination", "paginationPageSize", "tooltip-show-delay", "tooltip-hide-delay"]),
|
|
7605
|
-
!e.isLoading && !T.value ? (h(), F("div",
|
|
7606
|
-
V("p",
|
|
7607
|
+
!e.isLoading && !T.value ? (h(), F("div", Of, [
|
|
7608
|
+
V("p", _f, ae(k.value), 1)
|
|
7607
7609
|
])) : U("", !0)
|
|
7608
7610
|
], 2),
|
|
7609
|
-
e.pagination ? (h(), ee(
|
|
7611
|
+
e.pagination ? (h(), ee(ef, { key: 0 })) : U("", !0)
|
|
7610
7612
|
], 4));
|
|
7611
7613
|
}
|
|
7612
|
-
}),
|
|
7614
|
+
}), Pf = ["id"], Mf = {
|
|
7613
7615
|
key: 0,
|
|
7614
7616
|
class: "sort-divider-container"
|
|
7615
|
-
},
|
|
7617
|
+
}, Ef = ["data-label"], Rf = ["onDrop"], If = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, Af = { class: "pv-text-body-sm pv-text-tertiary" }, Lf = { class: "pv-flex pv-full-width pv-sort-option" }, Vf = { class: "pv-text-body-sm" }, Bf = {
|
|
7616
7618
|
key: 1,
|
|
7617
7619
|
class: "pv-button-placeholder"
|
|
7618
|
-
}, yn = "--divider--", So = "placeholder-",
|
|
7620
|
+
}, yn = "--divider--", So = "placeholder-", Nf = /* @__PURE__ */ se({
|
|
7619
7621
|
__name: "PvSortableList",
|
|
7620
7622
|
props: /* @__PURE__ */ et({
|
|
7621
7623
|
options: { default: () => [] },
|
|
@@ -7724,11 +7726,11 @@ const po = {
|
|
|
7724
7726
|
id: k.id,
|
|
7725
7727
|
class: "pv-stack-4"
|
|
7726
7728
|
}, [
|
|
7727
|
-
k.id === yn ? (h(), F("div",
|
|
7729
|
+
k.id === yn ? (h(), F("div", Mf, [
|
|
7728
7730
|
V("div", {
|
|
7729
7731
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
7730
7732
|
"data-label": C.value ? `Maximum of ${t.activeOptionLimit}` : ""
|
|
7731
|
-
}, null, 8,
|
|
7733
|
+
}, null, 8, Ef)
|
|
7732
7734
|
])) : k.id.includes(So) ? (h(), F("div", {
|
|
7733
7735
|
key: 1,
|
|
7734
7736
|
class: "placeholder-zone",
|
|
@@ -7736,15 +7738,15 @@ const po = {
|
|
|
7736
7738
|
onDragleave: T[1] || (T[1] = (c) => g(c)),
|
|
7737
7739
|
onDrop: (c) => m(c, parseInt(k.id.split("-")[1]) + 1)
|
|
7738
7740
|
}, [
|
|
7739
|
-
V("div",
|
|
7740
|
-
V("span",
|
|
7741
|
+
V("div", If, [
|
|
7742
|
+
V("span", Af, ae(t.placeholderText), 1)
|
|
7741
7743
|
])
|
|
7742
|
-
], 40,
|
|
7744
|
+
], 40, Rf)) : (h(), F("div", {
|
|
7743
7745
|
key: 2,
|
|
7744
7746
|
class: we(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !S(k) && C.value ? "pv-menu-item-disabled" : ""]),
|
|
7745
7747
|
style: ut(M(k))
|
|
7746
7748
|
}, [
|
|
7747
|
-
V("div",
|
|
7749
|
+
V("div", Lf, [
|
|
7748
7750
|
te(Ne, {
|
|
7749
7751
|
class: we(S(k) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7750
7752
|
name: "reorder"
|
|
@@ -7754,9 +7756,9 @@ const po = {
|
|
|
7754
7756
|
class: we(S(k) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7755
7757
|
name: k.icon
|
|
7756
7758
|
}, null, 8, ["class", "name"])) : U("", !0),
|
|
7757
|
-
V("span",
|
|
7759
|
+
V("span", Vf, ae(k.text), 1)
|
|
7758
7760
|
]),
|
|
7759
|
-
x(k) ? (h(), F("div",
|
|
7761
|
+
x(k) ? (h(), F("div", Bf)) : (h(), ee(J(qe), {
|
|
7760
7762
|
key: 0,
|
|
7761
7763
|
"left-icon": S(k) ? "remove-circle" : "add-circle",
|
|
7762
7764
|
variant: "ghost",
|
|
@@ -7764,20 +7766,20 @@ const po = {
|
|
|
7764
7766
|
onClick: (c) => y(k)
|
|
7765
7767
|
}, null, 8, ["left-icon", "style", "onClick"]))
|
|
7766
7768
|
], 6))
|
|
7767
|
-
], 8,
|
|
7769
|
+
], 8, Pf))), 128))
|
|
7768
7770
|
], 512)
|
|
7769
7771
|
], 512));
|
|
7770
7772
|
}
|
|
7771
|
-
}),
|
|
7773
|
+
}), zf = /* @__PURE__ */ ht(Nf, [["__scopeId", "data-v-08e3ce8f"]]), Gf = { class: "pv-stack-16 pv-chart-options-panel" }, jf = { class: "pv-flex pv-relative" }, Hf = {
|
|
7772
7774
|
role: "list",
|
|
7773
7775
|
class: "pv-relative"
|
|
7774
|
-
},
|
|
7776
|
+
}, qf = ["id", "data-active", "onMouseenter", "onClick"], Uf = { style: { "max-width": "100px" } }, Kf = {
|
|
7775
7777
|
key: 1,
|
|
7776
7778
|
class: "pv-flex"
|
|
7777
|
-
},
|
|
7779
|
+
}, Wf = {
|
|
7778
7780
|
key: 1,
|
|
7779
7781
|
role: "list"
|
|
7780
|
-
},
|
|
7782
|
+
}, Yf = ["data-active"], Xf = /* @__PURE__ */ se({
|
|
7781
7783
|
__name: "PvChartOptionsPanel",
|
|
7782
7784
|
props: {
|
|
7783
7785
|
enablePanel: { type: Boolean },
|
|
@@ -7803,12 +7805,12 @@ const po = {
|
|
|
7803
7805
|
}), M = O(() => u.value ? (g.value.length > 1 ? ["bar_stacked", "line", "column_stacked", "area"] : ["bar", "line", "column", "area"]).includes(u.value?.id) : void 0);
|
|
7804
7806
|
Ce(f, (L) => {
|
|
7805
7807
|
if (!u.value) return;
|
|
7806
|
-
const R = u.value,
|
|
7808
|
+
const R = u.value, D = R?.id.endsWith("_stacked"), N = L.find((A) => A.id === R.id);
|
|
7807
7809
|
if (N) {
|
|
7808
7810
|
u.value = N;
|
|
7809
7811
|
return;
|
|
7810
7812
|
}
|
|
7811
|
-
if (
|
|
7813
|
+
if (D) {
|
|
7812
7814
|
const A = R?.id.replace("_stacked", ""), I = L.find((B) => B.id === A);
|
|
7813
7815
|
if (I) {
|
|
7814
7816
|
u.value = I;
|
|
@@ -7825,8 +7827,8 @@ const po = {
|
|
|
7825
7827
|
text: L.headerName || L.field || "",
|
|
7826
7828
|
icon: ka(L.context?.dataType || null) || "circle-chevron-down"
|
|
7827
7829
|
}))), T = G([]), k = (L) => {
|
|
7828
|
-
const R = T.value.map((
|
|
7829
|
-
(L.length !== R.length || !L.every((
|
|
7830
|
+
const R = T.value.map((D) => D.id);
|
|
7831
|
+
(L.length !== R.length || !L.every((D) => R.includes(D))) && (T.value = L.map((D) => $.value.find((N) => N.id === D)).filter(Boolean));
|
|
7830
7832
|
};
|
|
7831
7833
|
Ce(
|
|
7832
7834
|
g,
|
|
@@ -7855,7 +7857,7 @@ const po = {
|
|
|
7855
7857
|
updateSelectedOption: (I) => {
|
|
7856
7858
|
S && I !== S.value && (S.value = I);
|
|
7857
7859
|
}
|
|
7858
|
-
},
|
|
7860
|
+
}, D = {
|
|
7859
7861
|
isSortableList: !0,
|
|
7860
7862
|
value: "x-axis",
|
|
7861
7863
|
label: "X Axis",
|
|
@@ -7893,31 +7895,31 @@ const po = {
|
|
|
7893
7895
|
B && u && (u.value = B);
|
|
7894
7896
|
}
|
|
7895
7897
|
};
|
|
7896
|
-
return E.value.length > 1 && L.push(R), $.value.length > 1 && L.push(
|
|
7898
|
+
return E.value.length > 1 && L.push(R), $.value.length > 1 && L.push(D), f.value.length > 1 && L.push(A), v.value.length > 0 && L.push(N), L.filter((I) => t.chartConfigOptions ? t.chartConfigOptions.includes(I.value) : !0);
|
|
7897
7899
|
});
|
|
7898
7900
|
Ce(s, (L) => {
|
|
7899
7901
|
L?.popoverRef && (o.value = L?.popoverRef);
|
|
7900
7902
|
});
|
|
7901
7903
|
const d = O(() => i.value && c.value.find((L) => L.value === i.value) || null), b = (L) => {
|
|
7902
7904
|
i.value = L, a.value = document.getElementById(`pv-chart-config-${L}`), r();
|
|
7903
|
-
},
|
|
7905
|
+
}, _ = () => {
|
|
7904
7906
|
l.value = !1, i.value = void 0;
|
|
7905
7907
|
}, j = () => {
|
|
7906
7908
|
i.value = void 0;
|
|
7907
7909
|
};
|
|
7908
7910
|
return (L, R) => (h(), F(ve, null, [
|
|
7909
|
-
V("div",
|
|
7911
|
+
V("div", Gf, [
|
|
7910
7912
|
V("div", null, [
|
|
7911
7913
|
Ct((h(), F("div", {
|
|
7912
7914
|
class: we(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""])
|
|
7913
7915
|
}, [
|
|
7914
|
-
V("div",
|
|
7916
|
+
V("div", jf, [
|
|
7915
7917
|
e.useCombinedButton ? (h(), F(ve, { key: 0 }, [
|
|
7916
7918
|
te(ya, {
|
|
7917
7919
|
open: l.value,
|
|
7918
7920
|
label: "Chart Configuration",
|
|
7919
7921
|
icon: "chart-area",
|
|
7920
|
-
onClick: R[0] || (R[0] = (
|
|
7922
|
+
onClick: R[0] || (R[0] = (D) => l.value = !l.value),
|
|
7921
7923
|
onHandleToggleDropdown: j
|
|
7922
7924
|
}, null, 8, ["open"]),
|
|
7923
7925
|
te(Vn, {
|
|
@@ -7931,13 +7933,13 @@ const po = {
|
|
|
7931
7933
|
style: { "padding-top": "4px", "padding-bottom": "12px" }
|
|
7932
7934
|
}, " Chart Configuration ")
|
|
7933
7935
|
], -1)),
|
|
7934
|
-
V("ul",
|
|
7935
|
-
(h(!0), F(ve, null, Je(c.value, (
|
|
7936
|
-
id: `pv-chart-config-${
|
|
7937
|
-
key:
|
|
7938
|
-
"data-active": i.value ===
|
|
7939
|
-
onMouseenter: (N) =>
|
|
7940
|
-
onClick: (N) =>
|
|
7936
|
+
V("ul", Hf, [
|
|
7937
|
+
(h(!0), F(ve, null, Je(c.value, (D) => (h(), F("li", {
|
|
7938
|
+
id: `pv-chart-config-${D.value}`,
|
|
7939
|
+
key: D.value,
|
|
7940
|
+
"data-active": i.value === D.value ? !0 : null,
|
|
7941
|
+
onMouseenter: (N) => D.disabled ? null : b(D.value),
|
|
7942
|
+
onClick: (N) => D.disabled ? null : b(D.value)
|
|
7941
7943
|
}, [
|
|
7942
7944
|
te(J(hn), {
|
|
7943
7945
|
interactive: !1,
|
|
@@ -7946,24 +7948,24 @@ const po = {
|
|
|
7946
7948
|
}, Kr({
|
|
7947
7949
|
label: Pe(() => [
|
|
7948
7950
|
te(Ot, {
|
|
7949
|
-
disabled:
|
|
7950
|
-
id:
|
|
7951
|
-
text:
|
|
7952
|
-
icon:
|
|
7951
|
+
disabled: D.disabled,
|
|
7952
|
+
id: D.value,
|
|
7953
|
+
text: D.label,
|
|
7954
|
+
icon: D.icon,
|
|
7953
7955
|
"class-list": ["pv-menu-nested"]
|
|
7954
7956
|
}, null, 8, ["disabled", "id", "text", "icon"])
|
|
7955
7957
|
]),
|
|
7956
7958
|
_: 2
|
|
7957
7959
|
}, [
|
|
7958
|
-
|
|
7960
|
+
D.disabled && D.disabledReason ? {
|
|
7959
7961
|
name: "tooltip-content",
|
|
7960
7962
|
fn: Pe(() => [
|
|
7961
|
-
V("div",
|
|
7963
|
+
V("div", Uf, ae(D.disabledReason), 1)
|
|
7962
7964
|
]),
|
|
7963
7965
|
key: "0"
|
|
7964
7966
|
} : void 0
|
|
7965
7967
|
]), 1024)
|
|
7966
|
-
], 40,
|
|
7968
|
+
], 40, qf))), 128))
|
|
7967
7969
|
])
|
|
7968
7970
|
]),
|
|
7969
7971
|
_: 1
|
|
@@ -7972,7 +7974,7 @@ const po = {
|
|
|
7972
7974
|
])
|
|
7973
7975
|
], 2)), [
|
|
7974
7976
|
[J(Gn), [
|
|
7975
|
-
|
|
7977
|
+
_,
|
|
7976
7978
|
{
|
|
7977
7979
|
ignore: [".pv-popover"]
|
|
7978
7980
|
}
|
|
@@ -7986,21 +7988,21 @@ const po = {
|
|
|
7986
7988
|
key: 0,
|
|
7987
7989
|
options: x.value,
|
|
7988
7990
|
modelValue: J(y),
|
|
7989
|
-
"onUpdate:modelValue": R[1] || (R[1] = (
|
|
7991
|
+
"onUpdate:modelValue": R[1] || (R[1] = (D) => oa(y) ? y.value = D : null)
|
|
7990
7992
|
}, null, 8, ["options", "modelValue"])) : U("", !0),
|
|
7991
|
-
e.useCombinedButton ? U("", !0) : (h(), F("div",
|
|
7992
|
-
(h(!0), F(ve, null, Je(c.value, (
|
|
7993
|
-
key:
|
|
7993
|
+
e.useCombinedButton ? U("", !0) : (h(), F("div", Kf, [
|
|
7994
|
+
(h(!0), F(ve, null, Je(c.value, (D) => (h(), F(ve, {
|
|
7995
|
+
key: D.value
|
|
7994
7996
|
}, [
|
|
7995
|
-
|
|
7997
|
+
D.isSortableList ? U("", !0) : (h(), ee(cl, {
|
|
7996
7998
|
key: 0,
|
|
7997
|
-
label:
|
|
7998
|
-
prefixLabel:
|
|
7999
|
-
modelValue:
|
|
8000
|
-
"onUpdate:modelValue": [(N) =>
|
|
8001
|
-
options:
|
|
7999
|
+
label: D.label,
|
|
8000
|
+
prefixLabel: D.prefixLabel,
|
|
8001
|
+
modelValue: D.currentOption,
|
|
8002
|
+
"onUpdate:modelValue": [(N) => D.currentOption = N, (N) => D.updateSelectedOption?.(N?.id || "")],
|
|
8003
|
+
options: D.availableOptions,
|
|
8002
8004
|
showSearchInput: !1,
|
|
8003
|
-
allowDeselect:
|
|
8005
|
+
allowDeselect: D.allowDeselect,
|
|
8004
8006
|
optionsVariant: "icon"
|
|
8005
8007
|
}, null, 8, ["label", "prefixLabel", "modelValue", "onUpdate:modelValue", "options", "allowDeselect"]))
|
|
8006
8008
|
], 64))), 128))
|
|
@@ -8023,25 +8025,25 @@ const po = {
|
|
|
8023
8025
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
8024
8026
|
style: { "padding-left": "2px", "padding-bottom": "6px" }
|
|
8025
8027
|
}, " Viewing ", -1)),
|
|
8026
|
-
te(
|
|
8028
|
+
te(zf, {
|
|
8027
8029
|
modelValue: d.value.activeOptions.value,
|
|
8028
|
-
"onUpdate:modelValue": R[2] || (R[2] = (
|
|
8030
|
+
"onUpdate:modelValue": R[2] || (R[2] = (D) => d.value.activeOptions.value = D),
|
|
8029
8031
|
options: d.value.availableOptions || [],
|
|
8030
8032
|
activeOptionLimit: d.value.activeOptionLimit,
|
|
8031
8033
|
placeholderText: "Add to X Axis"
|
|
8032
8034
|
}, null, 8, ["modelValue", "options", "activeOptionLimit"])
|
|
8033
|
-
], 64)) : (h(), F("ul",
|
|
8034
|
-
(h(!0), F(ve, null, Je(d.value.availableOptions, (
|
|
8035
|
-
key:
|
|
8036
|
-
"data-active": d.value.currentOption?.id ===
|
|
8035
|
+
], 64)) : (h(), F("ul", Wf, [
|
|
8036
|
+
(h(!0), F(ve, null, Je(d.value.availableOptions, (D) => (h(), F("li", {
|
|
8037
|
+
key: D.id,
|
|
8038
|
+
"data-active": d.value.currentOption?.id === D.id ? !0 : null
|
|
8037
8039
|
}, [
|
|
8038
8040
|
te(Ot, {
|
|
8039
8041
|
id: "chartType.id",
|
|
8040
|
-
text:
|
|
8041
|
-
icon:
|
|
8042
|
-
onClick: (N) => d.value.updateSelectedOption?.(
|
|
8042
|
+
text: D.text,
|
|
8043
|
+
icon: D.icon,
|
|
8044
|
+
onClick: (N) => d.value.updateSelectedOption?.(D.id)
|
|
8043
8045
|
}, null, 8, ["text", "icon", "onClick"])
|
|
8044
|
-
], 8,
|
|
8046
|
+
], 8, Yf))), 128))
|
|
8045
8047
|
]))
|
|
8046
8048
|
], 64)) : U("", !0)
|
|
8047
8049
|
]),
|
|
@@ -8049,7 +8051,7 @@ const po = {
|
|
|
8049
8051
|
}, 8, ["open", "popover-position-style"])
|
|
8050
8052
|
], 64));
|
|
8051
8053
|
}
|
|
8052
|
-
}),
|
|
8054
|
+
}), Qf = /* @__PURE__ */ ht(Xf, [["__scopeId", "data-v-b4235e90"]]), Zf = [
|
|
8053
8055
|
{
|
|
8054
8056
|
text: "Column",
|
|
8055
8057
|
id: "column",
|
|
@@ -8075,7 +8077,7 @@ const po = {
|
|
|
8075
8077
|
id: "pie",
|
|
8076
8078
|
icon: "chart-pie"
|
|
8077
8079
|
}
|
|
8078
|
-
],
|
|
8080
|
+
], Jf = [
|
|
8079
8081
|
{
|
|
8080
8082
|
text: "Grouped Column",
|
|
8081
8083
|
id: "column",
|
|
@@ -8096,7 +8098,7 @@ const po = {
|
|
|
8096
8098
|
id: "bar_stacked",
|
|
8097
8099
|
icon: "chart-bar-stacked"
|
|
8098
8100
|
}
|
|
8099
|
-
], Ur = "--SEPARATOR--", En = "_sort_total", aa = (e, t) => `${e}_${t}`,
|
|
8101
|
+
], Ur = "--SEPARATOR--", En = "_sort_total", aa = (e, t) => `${e}_${t}`, ep = (e, t, n, r) => {
|
|
8100
8102
|
if (!e || e.length === 0)
|
|
8101
8103
|
return {
|
|
8102
8104
|
data: [],
|
|
@@ -8134,7 +8136,7 @@ const po = {
|
|
|
8134
8136
|
})),
|
|
8135
8137
|
uniqueFieldValues: Array.from(a)
|
|
8136
8138
|
};
|
|
8137
|
-
},
|
|
8139
|
+
}, tp = (e, t, n) => {
|
|
8138
8140
|
let r = 0;
|
|
8139
8141
|
return !e || e.length === 0 || (n ? e.forEach((a) => {
|
|
8140
8142
|
const o = t + En, l = a[o];
|
|
@@ -8143,13 +8145,13 @@ const po = {
|
|
|
8143
8145
|
const o = a[t];
|
|
8144
8146
|
typeof o == "number" && o > r && (r = o);
|
|
8145
8147
|
})), r;
|
|
8146
|
-
},
|
|
8148
|
+
}, np = { style: { height: "100%", width: "100%" } }, rp = {
|
|
8147
8149
|
key: 0,
|
|
8148
8150
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
8149
|
-
},
|
|
8151
|
+
}, ap = { class: "pv-flex" }, op = { class: "pv-relative pv-margin-auto" }, lp = {
|
|
8150
8152
|
key: 0,
|
|
8151
8153
|
class: "pv-chart-overlay pv-text-body-xs pv-flex pv-align-center"
|
|
8152
|
-
},
|
|
8154
|
+
}, Op = /* @__PURE__ */ se({
|
|
8153
8155
|
__name: "PvDataTableWithChart",
|
|
8154
8156
|
props: {
|
|
8155
8157
|
enabledChartTypes: { default: () => ["column", "bar", "column_stacked", "bar_stacked", "line", "area"] },
|
|
@@ -8227,7 +8229,7 @@ const po = {
|
|
|
8227
8229
|
formatter: Q.valueFormatter,
|
|
8228
8230
|
dataType: Q.context?.dataType
|
|
8229
8231
|
};
|
|
8230
|
-
})), x =
|
|
8232
|
+
})), x = Dl();
|
|
8231
8233
|
Ie(wa, x);
|
|
8232
8234
|
const M = xa({
|
|
8233
8235
|
focusType: r.initialFocusData?.focusType,
|
|
@@ -8238,12 +8240,12 @@ const po = {
|
|
|
8238
8240
|
o.value = w.api, T.value || o.value?.setRowGroupColumns([]), Ae(w.api), a("grid-ready", w);
|
|
8239
8241
|
}, b = (w) => {
|
|
8240
8242
|
$.value = !0, a("first-data-rendered", w);
|
|
8241
|
-
},
|
|
8243
|
+
}, _ = (w) => {
|
|
8242
8244
|
const P = m.value, q = w.api.getRowGroupColumns().map((Q) => Q.getColId());
|
|
8243
8245
|
T.value && JSON.stringify(P) !== JSON.stringify(q) && (m.value = q), a("column-row-group-changed", w);
|
|
8244
8246
|
}, j = async (w) => {
|
|
8245
8247
|
if (r.chartFilter) {
|
|
8246
|
-
const P =
|
|
8248
|
+
const P = D(r.chartFilter.colId);
|
|
8247
8249
|
if (!P) return;
|
|
8248
8250
|
const Q = (await Ol(w.api, P))?.getModel()?.values || null;
|
|
8249
8251
|
le.value = Q?.[0] || "";
|
|
@@ -8268,14 +8270,14 @@ const po = {
|
|
|
8268
8270
|
if (Q.data = B.value?.find((rt) => rt[w] === Q.value), Q.value === Xn)
|
|
8269
8271
|
return "";
|
|
8270
8272
|
let Se = "";
|
|
8271
|
-
const Oe =
|
|
8273
|
+
const Oe = D(w);
|
|
8272
8274
|
if (r.truncateLabelValues && q && Oe && gn(Oe) && !isNaN(Number(Q.value))) {
|
|
8273
8275
|
if (xe.value) {
|
|
8274
|
-
const zt = Q.datum?.[S.value],
|
|
8275
|
-
if (Q.value /
|
|
8276
|
+
const zt = Q.datum?.[S.value], Dr = K.value?.find((lt) => lt[S.value] === zt)?.[`${H.value}${En}`] || 1 / 0;
|
|
8277
|
+
if (Q.value / Dr < 0.05)
|
|
8276
8278
|
return "";
|
|
8277
8279
|
}
|
|
8278
|
-
const { newValue: rt, newSuffix: Pt } =
|
|
8280
|
+
const { newValue: rt, newSuffix: Pt } = Rd(
|
|
8279
8281
|
Q.value,
|
|
8280
8282
|
$t.Percent === bt(Oe).dataType,
|
|
8281
8283
|
ie.value
|
|
@@ -8288,9 +8290,9 @@ const po = {
|
|
|
8288
8290
|
}
|
|
8289
8291
|
const R = (w, P = !1) => {
|
|
8290
8292
|
if (!w) return;
|
|
8291
|
-
const q =
|
|
8293
|
+
const q = D(w);
|
|
8292
8294
|
return q && typeof q.valueFormatter == "function" ? L(w, q.valueFormatter, P) : L(w, null, P);
|
|
8293
|
-
},
|
|
8295
|
+
}, D = (w) => !w || !o.value ? null : o.value?.getColumnDef(w), N = O(() => (m.value.length > 1 ? Jf : Zf).filter((P) => r.enabledChartTypes?.includes(P.id))), A = G(void 0), I = G([
|
|
8294
8296
|
{
|
|
8295
8297
|
text: "Ascending",
|
|
8296
8298
|
id: "asc",
|
|
@@ -8326,7 +8328,7 @@ const po = {
|
|
|
8326
8328
|
const Se = $l({
|
|
8327
8329
|
filterType: "set",
|
|
8328
8330
|
values: q
|
|
8329
|
-
},
|
|
8331
|
+
}, D(P));
|
|
8330
8332
|
o.value.setColumnFilterModel(P, Se).then(() => {
|
|
8331
8333
|
o.value?.onFilterChanged();
|
|
8332
8334
|
});
|
|
@@ -8367,7 +8369,7 @@ const po = {
|
|
|
8367
8369
|
q.push(rt);
|
|
8368
8370
|
});
|
|
8369
8371
|
else {
|
|
8370
|
-
const
|
|
8372
|
+
const _e = {
|
|
8371
8373
|
type: P,
|
|
8372
8374
|
xKey: S.value,
|
|
8373
8375
|
yKey: H.value,
|
|
@@ -8382,18 +8384,18 @@ const po = {
|
|
|
8382
8384
|
formatter: Q
|
|
8383
8385
|
}
|
|
8384
8386
|
};
|
|
8385
|
-
q.push(
|
|
8387
|
+
q.push(_e);
|
|
8386
8388
|
}
|
|
8387
8389
|
let Oe = {};
|
|
8388
8390
|
if (P === "column" || P === "bar") {
|
|
8389
|
-
const
|
|
8390
|
-
|
|
8391
|
+
const _e = Oe;
|
|
8392
|
+
_e.direction = Me.value ? "horizontal" : "vertical", Oe = _e;
|
|
8391
8393
|
} else if (P === "line" || P === "area") {
|
|
8392
|
-
const
|
|
8393
|
-
|
|
8394
|
+
const _e = Oe;
|
|
8395
|
+
_e.connectMissingData = !0, Oe = _e;
|
|
8394
8396
|
}
|
|
8395
|
-
return q = q.map((
|
|
8396
|
-
...
|
|
8397
|
+
return q = q.map((_e) => ({
|
|
8398
|
+
..._e,
|
|
8397
8399
|
...Oe
|
|
8398
8400
|
})), q;
|
|
8399
8401
|
}), ke = O(() => y.value.length === 0 ? [] : [{
|
|
@@ -8465,7 +8467,7 @@ const po = {
|
|
|
8465
8467
|
return;
|
|
8466
8468
|
}
|
|
8467
8469
|
if (P) {
|
|
8468
|
-
const { stackedData: q, uniqueFieldValues: Q } =
|
|
8470
|
+
const { stackedData: q, uniqueFieldValues: Q } = ep(
|
|
8469
8471
|
w,
|
|
8470
8472
|
S.value,
|
|
8471
8473
|
P,
|
|
@@ -8486,13 +8488,13 @@ const po = {
|
|
|
8486
8488
|
if (r.requireFiltersToShowData && Object.keys(q).length === 0)
|
|
8487
8489
|
return;
|
|
8488
8490
|
if (r.serverSideChartHandler) {
|
|
8489
|
-
let
|
|
8491
|
+
let _e = { ...o.value?.getFilterModel() || {} };
|
|
8490
8492
|
const ze = o.value?.getColumnDefs() || [];
|
|
8491
|
-
!$.value && r.initialGridState && Object.keys(
|
|
8493
|
+
!$.value && r.initialGridState && Object.keys(_e).length === 0 && (_e = ta(r.initialGridState, ze)?.filter?.filterModel || {});
|
|
8492
8494
|
const rt = m.value.map((ot) => o.value?.getColumn(ot)).filter((ot) => ot !== void 0), Pt = {
|
|
8493
8495
|
rowGroupCols: yo(rt || []),
|
|
8494
8496
|
valueCols: yo(o.value?.getValueColumns() || []),
|
|
8495
|
-
filterModel:
|
|
8497
|
+
filterModel: _e
|
|
8496
8498
|
};
|
|
8497
8499
|
p.value = !0;
|
|
8498
8500
|
const zt = ++v.value;
|
|
@@ -8506,19 +8508,19 @@ const po = {
|
|
|
8506
8508
|
if (r.serverSideRowHandler) return;
|
|
8507
8509
|
const Q = [], Se = [];
|
|
8508
8510
|
let Oe = /* @__PURE__ */ new Set();
|
|
8509
|
-
if (w.forEachNodeAfterFilterAndSort((
|
|
8510
|
-
if (
|
|
8511
|
+
if (w.forEachNodeAfterFilterAndSort((_e) => {
|
|
8512
|
+
if (_e.group && _e.level === 0) {
|
|
8511
8513
|
if (m.value.length > 1) {
|
|
8512
|
-
const rt =
|
|
8514
|
+
const rt = _e.childrenAfterFilter?.filter((ot) => ot.level === 1 && ot.aggData) || [], { rowData: Pt, fieldValues: zt } = De(_e, rt);
|
|
8513
8515
|
Oe = Oe.union(zt), Se?.push(Pt);
|
|
8514
8516
|
}
|
|
8515
|
-
const ze = ce(
|
|
8517
|
+
const ze = ce(_e);
|
|
8516
8518
|
Q?.push(ze);
|
|
8517
8519
|
}
|
|
8518
8520
|
}), B.value = Q, m.value.length > 1 && Se && Se.length > 0) {
|
|
8519
|
-
const
|
|
8521
|
+
const _e = m.value[1] || "";
|
|
8520
8522
|
K.value = Se, Y.value = {
|
|
8521
|
-
fieldName:
|
|
8523
|
+
fieldName: _e,
|
|
8522
8524
|
fieldValues: Array.from(Oe)
|
|
8523
8525
|
};
|
|
8524
8526
|
} else
|
|
@@ -8530,18 +8532,18 @@ const po = {
|
|
|
8530
8532
|
for (const q of y.value)
|
|
8531
8533
|
!w.aggData || !w.aggData[q.value] || (P[q.value] = w.aggData[q.value]?.value ?? w.aggData[q.value]);
|
|
8532
8534
|
return P;
|
|
8533
|
-
},
|
|
8535
|
+
}, De = (w, P) => {
|
|
8534
8536
|
const q = /* @__PURE__ */ new Set(), Q = {
|
|
8535
8537
|
[w.field]: w.key
|
|
8536
8538
|
};
|
|
8537
8539
|
let Se = 0;
|
|
8538
8540
|
for (const Oe of y.value)
|
|
8539
|
-
P.forEach((
|
|
8540
|
-
const ze =
|
|
8541
|
+
P.forEach((_e) => {
|
|
8542
|
+
const ze = _e.key;
|
|
8541
8543
|
q.add(ze);
|
|
8542
|
-
const rt =
|
|
8544
|
+
const rt = _e.aggData;
|
|
8543
8545
|
if (ze && rt) {
|
|
8544
|
-
const Pt =
|
|
8546
|
+
const Pt = _e.aggData[Oe.value]?.value ?? _e.aggData[Oe.value];
|
|
8545
8547
|
Q[aa(Oe.value, ze)] = Pt, Se = Se + Pt;
|
|
8546
8548
|
}
|
|
8547
8549
|
}), Q[`${Oe.value}${En}`] = Se;
|
|
@@ -8554,8 +8556,8 @@ const po = {
|
|
|
8554
8556
|
if (W.value && (P = oe.value ? `${H.value}${En}` : H.value), P && w && W.value) {
|
|
8555
8557
|
const q = W.value?.id.includes("desc") ? -1 : 1;
|
|
8556
8558
|
w = [...w].sort((Q, Se) => {
|
|
8557
|
-
const Oe = Q[P] || 0,
|
|
8558
|
-
return (Oe -
|
|
8559
|
+
const Oe = Q[P] || 0, _e = Se[P] || 0;
|
|
8560
|
+
return (Oe - _e) * q;
|
|
8559
8561
|
});
|
|
8560
8562
|
}
|
|
8561
8563
|
if (w && w.length === 1 && (w = [
|
|
@@ -8569,7 +8571,7 @@ const po = {
|
|
|
8569
8571
|
return w;
|
|
8570
8572
|
}), re = O(() => Z.value?.length || 0), ie = O(() => {
|
|
8571
8573
|
const w = oe.value ? K.value : Z.value;
|
|
8572
|
-
return
|
|
8574
|
+
return tp(w, H.value, oe.value);
|
|
8573
8575
|
}), Qe = O(() => Y.value?.fieldValues?.length || 0), Re = O(() => {
|
|
8574
8576
|
const Se = 0.25 * Math.exp(-0.12 * re.value);
|
|
8575
8577
|
return Math.min(Math.max(Se, 0.05), 0.75);
|
|
@@ -8577,7 +8579,7 @@ const po = {
|
|
|
8577
8579
|
if (m.value.length === 0)
|
|
8578
8580
|
return "No groups selected. Select at least one group to display data.";
|
|
8579
8581
|
if (nt.value) {
|
|
8580
|
-
const w =
|
|
8582
|
+
const w = D(k.value || ""), P = w?.headerName || w?.field || "Compare Field";
|
|
8581
8583
|
return (r.focusableColumns || []).includes(S.value) ? `Focus ${P} to view Visualization` : `Cannot focus on ${P}`;
|
|
8582
8584
|
} else if (Le.value)
|
|
8583
8585
|
return "No data available to chart.";
|
|
@@ -8636,7 +8638,7 @@ const po = {
|
|
|
8636
8638
|
}
|
|
8637
8639
|
}
|
|
8638
8640
|
], w.series = ue.value, w;
|
|
8639
|
-
}),
|
|
8641
|
+
}), _t = O(() => p.value || r.isLoading && (!Z.value || Z.value.length === 0)), ct = O(() => nt.value || !r.isLoading && Nt.value !== ""), Dt = (w) => {
|
|
8640
8642
|
s.value = w, a("chart-collapsed", w);
|
|
8641
8643
|
}, z = (w) => {
|
|
8642
8644
|
o.value && (o.value.setRowGroupColumns(w ? m.value : []), T.value = w);
|
|
@@ -8653,24 +8655,24 @@ const po = {
|
|
|
8653
8655
|
}
|
|
8654
8656
|
}), vt(async () => {
|
|
8655
8657
|
await Lt(), f.value = r.filterPanelAboveChart;
|
|
8656
|
-
}), (w, P) => (h(), F("div",
|
|
8658
|
+
}), (w, P) => (h(), F("div", np, [
|
|
8657
8659
|
V("div", {
|
|
8658
8660
|
class: "pv-stack-16",
|
|
8659
8661
|
id: u
|
|
8660
8662
|
}),
|
|
8661
|
-
e.hideChart ? U("", !0) : (h(), F("div",
|
|
8663
|
+
e.hideChart ? U("", !0) : (h(), F("div", rp, [
|
|
8662
8664
|
te(qe, {
|
|
8663
8665
|
rightIcon: "chevrons-down-up",
|
|
8664
8666
|
label: "Collapse",
|
|
8665
8667
|
style: { float: "right", "margin-left": "0.5rem" },
|
|
8666
8668
|
variant: "secondary",
|
|
8667
|
-
onClick: P[0] || (P[0] = (q) =>
|
|
8669
|
+
onClick: P[0] || (P[0] = (q) => Dt(!s.value)),
|
|
8668
8670
|
class: we(e.hideChart || s.value ? "pv-hide" : "")
|
|
8669
8671
|
}, null, 8, ["class"]),
|
|
8670
8672
|
V("div", {
|
|
8671
8673
|
class: we(e.hideChart || !s.value ? "pv-hide" : "pv-space-between")
|
|
8672
8674
|
}, [
|
|
8673
|
-
V("div",
|
|
8675
|
+
V("div", ap, [
|
|
8674
8676
|
te(Ne, {
|
|
8675
8677
|
name: "chart-line",
|
|
8676
8678
|
size: 20,
|
|
@@ -8685,28 +8687,28 @@ const po = {
|
|
|
8685
8687
|
rightIcon: "chevron-selector",
|
|
8686
8688
|
label: "Expand",
|
|
8687
8689
|
variant: "secondary",
|
|
8688
|
-
onClick: P[1] || (P[1] = (q) =>
|
|
8690
|
+
onClick: P[1] || (P[1] = (q) => Dt(!s.value))
|
|
8689
8691
|
})
|
|
8690
8692
|
], 2),
|
|
8691
8693
|
V("div", {
|
|
8692
8694
|
class: we(e.hideChart || s.value ? "pv-hide" : "")
|
|
8693
8695
|
}, [
|
|
8694
|
-
te(
|
|
8696
|
+
te(Qf, {
|
|
8695
8697
|
enablePanel: Z.value != null && Z.value.length > 0,
|
|
8696
8698
|
chartFilter: e.chartFilter,
|
|
8697
8699
|
rowGroupLimit: e.rowGroupLimit,
|
|
8698
8700
|
"use-combined-button": r.enableCombinedChartConfigPanel,
|
|
8699
8701
|
"chart-config-options": r.chartConfigPanelOptions
|
|
8700
8702
|
}, null, 8, ["enablePanel", "chartFilter", "rowGroupLimit", "use-combined-button", "chart-config-options"]),
|
|
8701
|
-
V("div",
|
|
8702
|
-
te(
|
|
8703
|
+
V("div", op, [
|
|
8704
|
+
te(Do, {
|
|
8703
8705
|
ref_key: "pvChartRef",
|
|
8704
8706
|
ref: i,
|
|
8705
|
-
isLoading:
|
|
8707
|
+
isLoading: _t.value,
|
|
8706
8708
|
options: Kt.value,
|
|
8707
8709
|
enableFocusView: e.enableFocusView
|
|
8708
8710
|
}, null, 8, ["isLoading", "options", "enableFocusView"]),
|
|
8709
|
-
ct.value ? (h(), F("p",
|
|
8711
|
+
ct.value ? (h(), F("p", lp, [
|
|
8710
8712
|
nt.value ? (h(), F(ve, { key: 0 }, [
|
|
8711
8713
|
P[10] || (P[10] = pt(" Select ", -1)),
|
|
8712
8714
|
te(Ne, { name: "focus" })
|
|
@@ -8722,7 +8724,7 @@ const po = {
|
|
|
8722
8724
|
}, w.$props, {
|
|
8723
8725
|
filterTeleportLocation: f.value ? `#${u}` : void 0,
|
|
8724
8726
|
pagination: e.pagination || !T.value,
|
|
8725
|
-
onColumnRowGroupChanged:
|
|
8727
|
+
onColumnRowGroupChanged: _,
|
|
8726
8728
|
onGridReady: d,
|
|
8727
8729
|
onFilterChanged: j,
|
|
8728
8730
|
onSortChanged: P[3] || (P[3] = (q) => a("sort-changed", q)),
|
|
@@ -8747,7 +8749,7 @@ const po = {
|
|
|
8747
8749
|
}, 16, ["filterTeleportLocation", "pagination"])
|
|
8748
8750
|
]));
|
|
8749
8751
|
}
|
|
8750
|
-
}),
|
|
8752
|
+
}), ip = {
|
|
8751
8753
|
type: "Feature",
|
|
8752
8754
|
properties: {
|
|
8753
8755
|
name: "Hawaii"
|
|
@@ -8939,7 +8941,7 @@ const po = {
|
|
|
8939
8941
|
]
|
|
8940
8942
|
]
|
|
8941
8943
|
}
|
|
8942
|
-
},
|
|
8944
|
+
}, sp = {
|
|
8943
8945
|
type: "Feature",
|
|
8944
8946
|
properties: {
|
|
8945
8947
|
name: "Alaska"
|
|
@@ -9448,7 +9450,7 @@ const po = {
|
|
|
9448
9450
|
]
|
|
9449
9451
|
]
|
|
9450
9452
|
}
|
|
9451
|
-
}, yr = "_FeatureMin", br = "_FeatureMax", Ml = (e) => El[e] || e,
|
|
9453
|
+
}, yr = "_FeatureMin", br = "_FeatureMax", Ml = (e) => El[e] || e, up = sp, cp = ip, El = {
|
|
9452
9454
|
AL: "Alabama",
|
|
9453
9455
|
AK: "Alaska",
|
|
9454
9456
|
AZ: "Arizona",
|
|
@@ -9499,7 +9501,7 @@ const po = {
|
|
|
9499
9501
|
WV: "West Virginia",
|
|
9500
9502
|
WI: "Wisconsin",
|
|
9501
9503
|
WY: "Wyoming"
|
|
9502
|
-
},
|
|
9504
|
+
}, dp = {
|
|
9503
9505
|
type: "FeatureCollection",
|
|
9504
9506
|
features: [
|
|
9505
9507
|
{
|
|
@@ -10775,7 +10777,7 @@ const po = {
|
|
|
10775
10777
|
},
|
|
10776
10778
|
properties: { name: "Michigan" }
|
|
10777
10779
|
},
|
|
10778
|
-
|
|
10780
|
+
cp,
|
|
10779
10781
|
{
|
|
10780
10782
|
type: "Feature",
|
|
10781
10783
|
geometry: {
|
|
@@ -11772,7 +11774,7 @@ const po = {
|
|
|
11772
11774
|
},
|
|
11773
11775
|
properties: { name: "New Hampshire" }
|
|
11774
11776
|
},
|
|
11775
|
-
|
|
11777
|
+
up,
|
|
11776
11778
|
{
|
|
11777
11779
|
type: "Feature",
|
|
11778
11780
|
geometry: {
|
|
@@ -11840,9 +11842,9 @@ const po = {
|
|
|
11840
11842
|
properties: { name: "Rhode Island" }
|
|
11841
11843
|
}
|
|
11842
11844
|
]
|
|
11843
|
-
},
|
|
11844
|
-
state:
|
|
11845
|
-
},
|
|
11845
|
+
}, fp = {
|
|
11846
|
+
state: dp
|
|
11847
|
+
}, pp = (e, t, n, r, a) => {
|
|
11846
11848
|
if (e.length === 0)
|
|
11847
11849
|
return [];
|
|
11848
11850
|
if (t !== "state")
|
|
@@ -11866,15 +11868,15 @@ const po = {
|
|
|
11866
11868
|
[n]: a,
|
|
11867
11869
|
name: br
|
|
11868
11870
|
}), l;
|
|
11869
|
-
},
|
|
11870
|
-
const t =
|
|
11871
|
+
}, vp = (e) => {
|
|
11872
|
+
const t = fp[e];
|
|
11871
11873
|
if (!t)
|
|
11872
11874
|
throw new Error(`No topology object found for type: ${e}`);
|
|
11873
11875
|
return t;
|
|
11874
|
-
},
|
|
11875
|
-
getTopologyObject:
|
|
11876
|
-
buildMapData:
|
|
11877
|
-
}),
|
|
11876
|
+
}, hp = () => ({
|
|
11877
|
+
getTopologyObject: vp,
|
|
11878
|
+
buildMapData: pp
|
|
11879
|
+
}), mp = { style: { width: "30%" } }, gp = ["min", "max"], yp = { class: "pv-flex pv-space-between pv-text-body-xxs pv-text-subdued" }, bp = /* @__PURE__ */ se({
|
|
11878
11880
|
__name: "MapGradient",
|
|
11879
11881
|
props: {
|
|
11880
11882
|
min: { default: 0 },
|
|
@@ -11883,7 +11885,7 @@ const po = {
|
|
|
11883
11885
|
},
|
|
11884
11886
|
setup(e) {
|
|
11885
11887
|
const t = e, n = (r) => t.valueFormatter ? t.valueFormatter(r) : r.toLocaleString("en-US");
|
|
11886
|
-
return (r, a) => (h(), F("div",
|
|
11888
|
+
return (r, a) => (h(), F("div", mp, [
|
|
11887
11889
|
V("div", {
|
|
11888
11890
|
min: e.min,
|
|
11889
11891
|
max: e.max,
|
|
@@ -11902,14 +11904,14 @@ const po = {
|
|
|
11902
11904
|
rgba(2, 54, 61, 1) 80%,
|
|
11903
11905
|
rgba(1, 18, 20, 1) 90%
|
|
11904
11906
|
)`, border: "0", "border-radius": "1rem", height: "0.5rem" }
|
|
11905
|
-
}, null, 8,
|
|
11906
|
-
V("div",
|
|
11907
|
+
}, null, 8, gp),
|
|
11908
|
+
V("div", yp, [
|
|
11907
11909
|
V("p", null, ae(n(e.min)), 1),
|
|
11908
11910
|
V("p", null, ae(n(e.max)), 1)
|
|
11909
11911
|
])
|
|
11910
11912
|
]));
|
|
11911
11913
|
}
|
|
11912
|
-
}),
|
|
11914
|
+
}), wp = /* @__PURE__ */ se({
|
|
11913
11915
|
__name: "MapRegionSelector",
|
|
11914
11916
|
props: /* @__PURE__ */ et({
|
|
11915
11917
|
topologyType: {},
|
|
@@ -11945,10 +11947,10 @@ const po = {
|
|
|
11945
11947
|
options: a.value
|
|
11946
11948
|
}, null, 8, ["disabled", "modelValue", "options"]));
|
|
11947
11949
|
}
|
|
11948
|
-
}),
|
|
11950
|
+
}), Sp = {
|
|
11949
11951
|
class: "pv-flex pv-space-between pv-stack-20",
|
|
11950
11952
|
style: { width: "100%" }
|
|
11951
|
-
},
|
|
11953
|
+
}, _p = /* @__PURE__ */ se({
|
|
11952
11954
|
__name: "PvMapChart",
|
|
11953
11955
|
props: /* @__PURE__ */ et({
|
|
11954
11956
|
seriesKey: {},
|
|
@@ -11977,7 +11979,7 @@ const po = {
|
|
|
11977
11979
|
}),
|
|
11978
11980
|
emits: /* @__PURE__ */ et(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
11979
11981
|
setup(e, { emit: t }) {
|
|
11980
|
-
const n = e, r = We(e, "chartData"), a = We(e, "selectedRegion"), o = t, { getTopologyObject: l, buildMapData: i } =
|
|
11982
|
+
const n = e, r = We(e, "chartData"), a = We(e, "selectedRegion"), o = t, { getTopologyObject: l, buildMapData: i } = hp(), s = O(() => l(n.mapType)), u = O(() => i(
|
|
11981
11983
|
r.value,
|
|
11982
11984
|
n.mapType,
|
|
11983
11985
|
n.seriesKey,
|
|
@@ -12030,20 +12032,20 @@ const po = {
|
|
|
12030
12032
|
}
|
|
12031
12033
|
}));
|
|
12032
12034
|
return (v, g) => (h(), F(ve, null, [
|
|
12033
|
-
V("div",
|
|
12034
|
-
te(
|
|
12035
|
+
V("div", Sp, [
|
|
12036
|
+
te(wp, {
|
|
12035
12037
|
modelValue: a.value,
|
|
12036
12038
|
"onUpdate:modelValue": g[0] || (g[0] = (m) => a.value = m),
|
|
12037
12039
|
"selectable-regions": f.value,
|
|
12038
12040
|
"topology-type": e.mapType
|
|
12039
12041
|
}, null, 8, ["modelValue", "selectable-regions", "topology-type"]),
|
|
12040
|
-
te(
|
|
12042
|
+
te(bp, {
|
|
12041
12043
|
min: e.gradientLegendMin,
|
|
12042
12044
|
max: e.gradientLegendMax,
|
|
12043
12045
|
"value-formatter": e.seriesValueFormatter
|
|
12044
12046
|
}, null, 8, ["min", "max", "value-formatter"])
|
|
12045
12047
|
]),
|
|
12046
|
-
te(
|
|
12048
|
+
te(Do, {
|
|
12047
12049
|
style: { height: "90%" },
|
|
12048
12050
|
options: p.value,
|
|
12049
12051
|
isLoading: e.isLoading
|
|
@@ -12052,8 +12054,8 @@ const po = {
|
|
|
12052
12054
|
}
|
|
12053
12055
|
});
|
|
12054
12056
|
export {
|
|
12055
|
-
|
|
12057
|
+
Do as PvChart,
|
|
12056
12058
|
Df as PvDataTable,
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
+
Op as PvDataTableWithChart,
|
|
12060
|
+
_p as PvMapChart
|
|
12059
12061
|
};
|