@scvzerng/element-ui-ag-grid-vue2 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ElementPlusAgGrid.es.js +129 -114
- package/dist/ElementPlusAgGrid.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/model/row/ActualRow.d.ts +1 -0
- package/dist/types/model/row/EditableRow.d.ts +1 -0
- package/dist/types/model/row/GridRow.d.ts +2 -0
- package/dist/types/model/row/ProjectionRow.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isFunction as Ac, isArray as de, get as
|
|
1
|
+
import { isFunction as Ac, isArray as de, get as so, isNumber as Pl, cloneDeep as no, isString as kc, isEmpty as Ti, debounce as Lc, sumBy as Gc, set as Tl, isEqual as Hc, isPlainObject as Oc, omit as Bc } from "lodash-unified";
|
|
2
2
|
import Nt, { defineComponent as z, toRaw as en, isRef as _c, isReactive as Vc, isProxy as Nc, mergeDefaults as Wc, ref as G, toRefs as It, watch as mt, getCurrentInstance as zt, onMounted as Mt, markRaw as zc, onUnmounted as Il, reactive as Fo, inject as oe, h as tn, provide as ye, onBeforeUnmount as is, nextTick as ot, useSlots as Ml, computed as le, onActivated as $c, onBeforeMount as Uc } from "vue";
|
|
3
3
|
import on from "md5";
|
|
4
4
|
import { Message as Kc } from "element-ui";
|
|
@@ -452,7 +452,7 @@ function Vl() {
|
|
|
452
452
|
function Nl() {
|
|
453
453
|
return ys === void 0 && (ys = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)), ys;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Ut() {
|
|
456
456
|
return Rs === void 0 && (Rs = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1), Rs;
|
|
457
457
|
}
|
|
458
458
|
function cn(e) {
|
|
@@ -508,7 +508,7 @@ function Ul(e, t) {
|
|
|
508
508
|
for (const n of s)
|
|
509
509
|
i(n);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Kt(e, t, o) {
|
|
512
512
|
let i = 0;
|
|
513
513
|
for (; e; ) {
|
|
514
514
|
if (e.classList.contains(t))
|
|
@@ -696,7 +696,7 @@ function _o(e, t, ...o) {
|
|
|
696
696
|
function To(e, ...t) {
|
|
697
697
|
Nn(() => console.warn("AG Grid: " + e, ...t), e + (t == null ? void 0 : t.join("")));
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function jt(e, ...t) {
|
|
700
700
|
Nn(() => console.error("AG Grid: " + e, ...t), e + (t == null ? void 0 : t.join("")));
|
|
701
701
|
}
|
|
702
702
|
var bu = {
|
|
@@ -742,12 +742,12 @@ function yu(e, t, o = 100, i) {
|
|
|
742
742
|
};
|
|
743
743
|
l(), r || (n = window.setInterval(l, 10));
|
|
744
744
|
}
|
|
745
|
-
var Jl = "https://www.ag-grid.com", H = "34.1.1", xr = 2e3, Er = 100, ea = "_version_", Si = null,
|
|
745
|
+
var Jl = "https://www.ag-grid.com", H = "34.1.1", xr = 2e3, Er = 100, ea = "_version_", Si = null, qt = `${Jl}/javascript-data-grid`;
|
|
746
746
|
function Ru(e) {
|
|
747
747
|
Si = e;
|
|
748
748
|
}
|
|
749
749
|
function xu(e) {
|
|
750
|
-
|
|
750
|
+
qt = e;
|
|
751
751
|
}
|
|
752
752
|
function ta(e, t, o) {
|
|
753
753
|
return (Si == null ? void 0 : Si.getConsoleMessage(e, t)) ?? [Pu(e, t, o)];
|
|
@@ -792,7 +792,7 @@ function oa(e, t) {
|
|
|
792
792
|
if (o.append(ea, H), t)
|
|
793
793
|
for (const n of Object.keys(t))
|
|
794
794
|
o.append(n, Du(t[n]));
|
|
795
|
-
const i = `${
|
|
795
|
+
const i = `${qt}/errors/${e}`, s = gn(i, o);
|
|
796
796
|
return s.length <= xr ? s : Fu(i, o, xr);
|
|
797
797
|
}
|
|
798
798
|
var Pu = (e, t, o) => {
|
|
@@ -805,10 +805,10 @@ function k(...e) {
|
|
|
805
805
|
Wn(To, e[0], e[1]);
|
|
806
806
|
}
|
|
807
807
|
function j(...e) {
|
|
808
|
-
Wn(
|
|
808
|
+
Wn(jt, e[0], e[1]);
|
|
809
809
|
}
|
|
810
810
|
function xo(e, t, o) {
|
|
811
|
-
Wn(
|
|
811
|
+
Wn(jt, e, t, o);
|
|
812
812
|
}
|
|
813
813
|
function Tu(e, t) {
|
|
814
814
|
const o = t[0];
|
|
@@ -928,7 +928,7 @@ function la(e) {
|
|
|
928
928
|
const t = J(e);
|
|
929
929
|
return t === null || t === re(e).body;
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Yt(e) {
|
|
932
932
|
return e.get("ensureDomOrder") ? !1 : e.get("animateRows");
|
|
933
933
|
}
|
|
934
934
|
function aa(e) {
|
|
@@ -954,7 +954,7 @@ function Gi(e) {
|
|
|
954
954
|
return typeof i != "string" && (Nn(() => k(25, { id: i }), "getRowIdString"), i = String(i)), i;
|
|
955
955
|
};
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Zt(e) {
|
|
958
958
|
return (e == null ? void 0 : e.checkboxes) ?? !0;
|
|
959
959
|
}
|
|
960
960
|
function yi(e) {
|
|
@@ -1899,7 +1899,7 @@ function oh(e, t) {
|
|
|
1899
1899
|
function ih(e) {
|
|
1900
1900
|
e.map = {}, e.list.forEach((t) => e.map[t.getId()] = t);
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function Xt(e) {
|
|
1903
1903
|
return e === "gridOptionsUpdated" ? "gridOptionsChanged" : e;
|
|
1904
1904
|
}
|
|
1905
1905
|
function ba(e, t) {
|
|
@@ -2434,13 +2434,13 @@ var Tr = (e, t, o, i) => {
|
|
|
2434
2434
|
"rowNumbers",
|
|
2435
2435
|
"hidePaddedHeaderRows"
|
|
2436
2436
|
],
|
|
2437
|
-
(e) => this.refreshAll(
|
|
2437
|
+
(e) => this.refreshAll(Xt(e.source))
|
|
2438
2438
|
), this.addManagedPropertyListeners(
|
|
2439
2439
|
["defaultColDef", "defaultColGroupDef", "columnTypes", "suppressFieldDotNotation"],
|
|
2440
2440
|
this.recreateColumnDefs.bind(this)
|
|
2441
2441
|
), this.addManagedPropertyListener(
|
|
2442
2442
|
"pivotMode",
|
|
2443
|
-
(e) => this.setPivotMode(this.gos.get("pivotMode"),
|
|
2443
|
+
(e) => this.setPivotMode(this.gos.get("pivotMode"), Xt(e.source))
|
|
2444
2444
|
);
|
|
2445
2445
|
}
|
|
2446
2446
|
// called from SyncService, when grid has finished initialising
|
|
@@ -2667,7 +2667,7 @@ var Tr = (e, t, o, i) => {
|
|
|
2667
2667
|
if (!this.cols)
|
|
2668
2668
|
return;
|
|
2669
2669
|
(o = this.beans.autoColSvc) == null || o.updateColumns(e);
|
|
2670
|
-
const t =
|
|
2670
|
+
const t = Xt(e.source);
|
|
2671
2671
|
this.createColsFromColDefs(t);
|
|
2672
2672
|
}
|
|
2673
2673
|
setColumnDefs(e, t) {
|
|
@@ -3128,7 +3128,7 @@ function mn(e) {
|
|
|
3128
3128
|
const t = e;
|
|
3129
3129
|
return t != null && t.getFrameworkComponentInstance != null ? t.getFrameworkComponentInstance() : e;
|
|
3130
3130
|
}
|
|
3131
|
-
var Ma = /* @__PURE__ */ new Set(), zi = {},
|
|
3131
|
+
var Ma = /* @__PURE__ */ new Set(), zi = {}, Qt = {}, Ei, Aa = !1, ka = !1, Qh = !1;
|
|
3132
3132
|
function Jh(e) {
|
|
3133
3133
|
const [t, o] = e.version.split(".") || [], [i, s] = Ei.split(".") || [];
|
|
3134
3134
|
return t === i && o === s;
|
|
@@ -3136,13 +3136,13 @@ function Jh(e) {
|
|
|
3136
3136
|
function eg(e) {
|
|
3137
3137
|
Ei || (Ei = e.version);
|
|
3138
3138
|
const t = (o) => `You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${o} Please update all modules to the same version.`;
|
|
3139
|
-
if (e.version ? Jh(e) ||
|
|
3139
|
+
if (e.version ? Jh(e) || jt(
|
|
3140
3140
|
t(
|
|
3141
3141
|
`'${e.moduleName}' is version ${e.version} but the other modules are version ${Ei}.`
|
|
3142
3142
|
)
|
|
3143
|
-
) :
|
|
3143
|
+
) : jt(t(`'${e.moduleName}' is incompatible.`)), e.validate) {
|
|
3144
3144
|
const o = e.validate();
|
|
3145
|
-
o.isValid ||
|
|
3145
|
+
o.isValid || jt(`${o.message}`);
|
|
3146
3146
|
}
|
|
3147
3147
|
}
|
|
3148
3148
|
function ao(e, t, o = !1) {
|
|
@@ -3150,17 +3150,17 @@ function ao(e, t, o = !1) {
|
|
|
3150
3150
|
const i = e.rowModels ?? ["all"];
|
|
3151
3151
|
Ma.add(e);
|
|
3152
3152
|
let s;
|
|
3153
|
-
t !== void 0 ? (ka = !0,
|
|
3153
|
+
t !== void 0 ? (ka = !0, Qt[t] === void 0 && (Qt[t] = {}), s = Qt[t]) : s = zi, i.forEach((n) => {
|
|
3154
3154
|
s[n] === void 0 && (s[n] = {}), s[n][e.moduleName] = e;
|
|
3155
3155
|
}), e.dependsOn && e.dependsOn.forEach((n) => ao(n, t, o));
|
|
3156
3156
|
}
|
|
3157
3157
|
function tg(e) {
|
|
3158
|
-
delete
|
|
3158
|
+
delete Qt[e];
|
|
3159
3159
|
}
|
|
3160
3160
|
function vn(e, t, o) {
|
|
3161
3161
|
const i = (s) => {
|
|
3162
3162
|
var n, r, l;
|
|
3163
|
-
return !!((n = zi[s]) != null && n[e]) || !!((l = (r =
|
|
3163
|
+
return !!((n = zi[s]) != null && n[e]) || !!((l = (r = Qt[t]) == null ? void 0 : r[s]) != null && l[e]);
|
|
3164
3164
|
};
|
|
3165
3165
|
return i(o) || i("all");
|
|
3166
3166
|
}
|
|
@@ -3168,7 +3168,7 @@ function Un() {
|
|
|
3168
3168
|
return ka;
|
|
3169
3169
|
}
|
|
3170
3170
|
function og(e, t) {
|
|
3171
|
-
const o =
|
|
3171
|
+
const o = Qt[e] ?? {};
|
|
3172
3172
|
return [
|
|
3173
3173
|
...Object.values(zi.all ?? {}),
|
|
3174
3174
|
...Object.values(o.all ?? {}),
|
|
@@ -3597,7 +3597,7 @@ function Y(e, t = {}) {
|
|
|
3597
3597
|
}
|
|
3598
3598
|
function kr(e) {
|
|
3599
3599
|
const { editSvc: t } = e;
|
|
3600
|
-
t != null && t.isBatchEditing() ?
|
|
3600
|
+
t != null && t.isBatchEditing() ? Jt(e) : t == null || t.stopEditing(void 0, { source: "api" });
|
|
3601
3601
|
}
|
|
3602
3602
|
function vg(e, t, o) {
|
|
3603
3603
|
const { gos: i, popupSvc: s } = t;
|
|
@@ -3775,7 +3775,7 @@ function yg(e, t) {
|
|
|
3775
3775
|
pendingValue: i == null ? void 0 : i.editorValue
|
|
3776
3776
|
});
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function Jt(e, t, o) {
|
|
3779
3779
|
var i;
|
|
3780
3780
|
t || (t = (i = e.editModelSvc) == null ? void 0 : i.getEditPositions()), t.forEach((s) => Ui(e, s, o));
|
|
3781
3781
|
}
|
|
@@ -3959,7 +3959,7 @@ function Ag(e) {
|
|
|
3959
3959
|
function kg() {
|
|
3960
3960
|
return Sn;
|
|
3961
3961
|
}
|
|
3962
|
-
function
|
|
3962
|
+
function eo(e, t, o = !1) {
|
|
3963
3963
|
const i = Cu;
|
|
3964
3964
|
let s = $l;
|
|
3965
3965
|
t && (s += ", " + t), o && (s += ', [tabindex="-1"]');
|
|
@@ -3967,7 +3967,7 @@ function to(e, t, o = !1) {
|
|
|
3967
3967
|
return r.length ? ((a, d) => a.filter((c) => d.indexOf(c) === -1))(n, r) : n;
|
|
3968
3968
|
}
|
|
3969
3969
|
function qi(e, t = !1, o = !1, i = !1) {
|
|
3970
|
-
const s =
|
|
3970
|
+
const s = eo(
|
|
3971
3971
|
e,
|
|
3972
3972
|
i ? ".ag-tab-guard" : null,
|
|
3973
3973
|
o
|
|
@@ -3975,7 +3975,7 @@ function qi(e, t = !1, o = !1, i = !1) {
|
|
|
3975
3975
|
return n ? (n.focus({ preventScroll: !0 }), !0) : !1;
|
|
3976
3976
|
}
|
|
3977
3977
|
function ls(e, t, o, i) {
|
|
3978
|
-
const s =
|
|
3978
|
+
const s = eo(t, null), n = J(e);
|
|
3979
3979
|
let r;
|
|
3980
3980
|
r = s.indexOf(n);
|
|
3981
3981
|
const l = r + (i ? -1 : 1);
|
|
@@ -4277,7 +4277,7 @@ var Bg = class extends D {
|
|
|
4277
4277
|
return !1;
|
|
4278
4278
|
}
|
|
4279
4279
|
containsWidget(e) {
|
|
4280
|
-
return
|
|
4280
|
+
return Kt(e, "ag-selection-checkbox", 3) || Kt(e, "ag-drag-handle", 3);
|
|
4281
4281
|
}
|
|
4282
4282
|
onMouseOut(e) {
|
|
4283
4283
|
if (this.mouseStayingInsideCell(e))
|
|
@@ -4394,7 +4394,7 @@ var Bg = class extends D {
|
|
|
4394
4394
|
function $a(e, t) {
|
|
4395
4395
|
return ga(e, t, Yi);
|
|
4396
4396
|
}
|
|
4397
|
-
var qg = 0,
|
|
4397
|
+
var qg = 0, to = class extends D {
|
|
4398
4398
|
constructor(e, t, o, i) {
|
|
4399
4399
|
super(), this.column = e, this.rowNode = t, this.rowCtrl = i, this.rangeFeature = void 0, this.rowResizeFeature = void 0, this.positionFeature = void 0, this.customStyleFeature = void 0, this.editStyleFeature = void 0, this.mouseListener = void 0, this.keyboardListener = void 0, this.suppressRefreshCell = !1, this.onCompAttachedFuncs = [], this.onEditorAttachedFuncs = [], this.focusEventWhileNotReady = null, this.hasBeenFocused = !1, this.hasEdit = !1, this.tooltipFeature = void 0, this.editorTooltipFeature = void 0, this.beans = o, this.gos = o.gos, this.editSvc = o.editSvc, this.hasEdit = !!o.editSvc;
|
|
4400
4400
|
const { colId: s } = e;
|
|
@@ -4506,7 +4506,7 @@ var qg = 0, oo = class extends D {
|
|
|
4506
4506
|
}
|
|
4507
4507
|
isCheckboxSelection(e) {
|
|
4508
4508
|
const { rowSelection: t, groupDisplayType: o } = this.beans.gridOptions, i = Hi(t), s = Lt(this.column);
|
|
4509
|
-
return o === "custom" && i !== "selectionColumn" && s ? !1 : e.checkboxSelection || s && typeof t == "object" &&
|
|
4509
|
+
return o === "custom" && i !== "selectionColumn" && s ? !1 : e.checkboxSelection || s && typeof t == "object" && Zt(t);
|
|
4510
4510
|
}
|
|
4511
4511
|
refreshShouldDestroy() {
|
|
4512
4512
|
const e = this.column.getColDef(), t = this.includeSelection != this.isIncludeControl(this.isCheckboxSelection(e), !0), o = this.includeRowDrag != this.isIncludeControl(e.rowDrag), i = this.includeDndSource != this.isIncludeControl(e.dndSource), s = this.isAutoHeight != this.column.isAutoHeight();
|
|
@@ -4739,7 +4739,7 @@ var qg = 0, oo = class extends D {
|
|
|
4739
4739
|
if (this.comp.toggleCss(zg, o), o && e && e.forceBrowserFocus) {
|
|
4740
4740
|
let n = this.comp.getFocusableElement();
|
|
4741
4741
|
if (i) {
|
|
4742
|
-
const r =
|
|
4742
|
+
const r = eo(n, null, !0);
|
|
4743
4743
|
r.length && (n = r[0]);
|
|
4744
4744
|
}
|
|
4745
4745
|
n.focus({ preventScroll: !!e.preventScrollOnBrowserFocus });
|
|
@@ -6019,7 +6019,7 @@ var np = "ag-focus-managed", ds = class extends D {
|
|
|
6019
6019
|
}, Ts);
|
|
6020
6020
|
}
|
|
6021
6021
|
shouldBlockScrollUpdate(e, t, o = !1) {
|
|
6022
|
-
return o && !
|
|
6022
|
+
return o && !Ut() ? !1 : e === 0 ? this.shouldBlockVerticalScroll(t) : this.shouldBlockHorizontalScroll(t);
|
|
6023
6023
|
}
|
|
6024
6024
|
shouldBlockVerticalScroll(e) {
|
|
6025
6025
|
const t = On(this.eBodyViewport), { scrollHeight: o } = this.eBodyViewport;
|
|
@@ -6535,7 +6535,7 @@ var ap = class extends D {
|
|
|
6535
6535
|
getNewCellCtrl(e) {
|
|
6536
6536
|
var o;
|
|
6537
6537
|
if (!((o = this.beans.rowSpanSvc) != null && o.isCellSpanning(e, this.rowNode)))
|
|
6538
|
-
return new
|
|
6538
|
+
return new to(e, this.rowNode, this.beans, this);
|
|
6539
6539
|
}
|
|
6540
6540
|
/**
|
|
6541
6541
|
* Overridden by SpannedRowCtrl, if span context changes cell needs rebuilt
|
|
@@ -6895,7 +6895,7 @@ var ap = class extends D {
|
|
|
6895
6895
|
}
|
|
6896
6896
|
}
|
|
6897
6897
|
onRowMouseDown(e) {
|
|
6898
|
-
if (this.lastMouseDownOnDragger =
|
|
6898
|
+
if (this.lastMouseDownOnDragger = Kt(e.target, "ag-row-drag", 3), !this.isFullWidth())
|
|
6899
6899
|
return;
|
|
6900
6900
|
const t = this.rowNode, { rangeSvc: o, focusSvc: i } = this.beans;
|
|
6901
6901
|
o == null || o.removeAllCellRanges();
|
|
@@ -7107,7 +7107,7 @@ var ap = class extends D {
|
|
|
7107
7107
|
var i;
|
|
7108
7108
|
this.active = !1;
|
|
7109
7109
|
const { rowNode: t } = this;
|
|
7110
|
-
if (!e &&
|
|
7110
|
+
if (!e && Yt(this.gos) && !t.sticky)
|
|
7111
7111
|
if (t.rowTop != null) {
|
|
7112
7112
|
const n = this.roundRowTopToBounds(t.rowTop);
|
|
7113
7113
|
this.setRowTop(n);
|
|
@@ -7779,16 +7779,16 @@ var Sp = ["topCenter", "topLeft", "topRight"], yp = ["bottomCenter", "bottomLeft
|
|
|
7779
7779
|
e.forEach((t) => {
|
|
7780
7780
|
this.addManagedElementListeners(t, {
|
|
7781
7781
|
focusin: (o) => {
|
|
7782
|
-
const { target: i } = o, s =
|
|
7782
|
+
const { target: i } = o, s = Kt(i, "ag-root", t);
|
|
7783
7783
|
t.classList.toggle("ag-has-focus", !s);
|
|
7784
7784
|
},
|
|
7785
7785
|
focusout: (o) => {
|
|
7786
|
-
const { target: i, relatedTarget: s } = o, n = t.contains(s), r =
|
|
7786
|
+
const { target: i, relatedTarget: s } = o, n = t.contains(s), r = Kt(
|
|
7787
7787
|
s,
|
|
7788
7788
|
"ag-root",
|
|
7789
7789
|
t
|
|
7790
7790
|
);
|
|
7791
|
-
|
|
7791
|
+
Kt(i, "ag-root", t) || (!n || r) && t.classList.remove("ag-has-focus");
|
|
7792
7792
|
}
|
|
7793
7793
|
});
|
|
7794
7794
|
});
|
|
@@ -7847,7 +7847,7 @@ var Sp = ["topCenter", "topLeft", "topRight"], yp = ["bottomCenter", "bottomLeft
|
|
|
7847
7847
|
const { rowContainerHeight: e, environment: t } = this.beans;
|
|
7848
7848
|
let o = t.sizesMeasured;
|
|
7849
7849
|
const i = () => {
|
|
7850
|
-
const s = o &&
|
|
7850
|
+
const s = o && Yt(this.gos) && !e.stretching, n = s ? "ag-row-animation" : "ag-row-no-animation";
|
|
7851
7851
|
this.comp.setRowAnimationCssOnBodyViewport(n, s);
|
|
7852
7852
|
};
|
|
7853
7853
|
i(), this.addManagedEventListeners({ heightScaleChanged: i }), this.addManagedPropertyListener("animateRows", i), this.addManagedEventListeners({
|
|
@@ -7959,7 +7959,7 @@ var Sp = ["topCenter", "topLeft", "topRight"], yp = ["bottomCenter", "bottomLeft
|
|
|
7959
7959
|
postConstruct() {
|
|
7960
7960
|
this.addManagedEventListeners({
|
|
7961
7961
|
scrollVisibilityChanged: this.onScrollVisibilityChanged.bind(this)
|
|
7962
|
-
}), this.onScrollVisibilityChanged(), this.toggleCss("ag-apple-scrollbar", Nl() ||
|
|
7962
|
+
}), this.onScrollVisibilityChanged(), this.toggleCss("ag-apple-scrollbar", Nl() || Ut());
|
|
7963
7963
|
}
|
|
7964
7964
|
destroy() {
|
|
7965
7965
|
super.destroy(), window.clearTimeout(this.hideTimeout);
|
|
@@ -10997,7 +10997,7 @@ var Rf = class extends D {
|
|
|
10997
10997
|
this.skipTabGuardFocus = !1;
|
|
10998
10998
|
return;
|
|
10999
10999
|
}
|
|
11000
|
-
if (this.forceFocusOutWhenTabGuardsAreEmpty && (this.providedIsEmpty ? this.providedIsEmpty() :
|
|
11000
|
+
if (this.forceFocusOutWhenTabGuardsAreEmpty && (this.providedIsEmpty ? this.providedIsEmpty() : eo(this.eFocusableElement, ".ag-tab-guard").length === 0)) {
|
|
11001
11001
|
this.findNextElementOutsideAndFocus(e.target === this.eBottomGuard);
|
|
11002
11002
|
return;
|
|
11003
11003
|
}
|
|
@@ -11008,7 +11008,7 @@ var Rf = class extends D {
|
|
|
11008
11008
|
}
|
|
11009
11009
|
findNextElementOutsideAndFocus(e) {
|
|
11010
11010
|
var a;
|
|
11011
|
-
const t = re(this.beans), o =
|
|
11011
|
+
const t = re(this.beans), o = eo(t.body, null, !0), i = o.indexOf(e ? this.eTopGuard : this.eBottomGuard);
|
|
11012
11012
|
if (i === -1)
|
|
11013
11013
|
return;
|
|
11014
11014
|
let s, n;
|
|
@@ -11038,7 +11038,7 @@ var Rf = class extends D {
|
|
|
11038
11038
|
t && setTimeout(() => this.activateTabGuards(), 0), o && (o.focus(), e.preventDefault());
|
|
11039
11039
|
}
|
|
11040
11040
|
focusInnerElement(e = !1) {
|
|
11041
|
-
const t =
|
|
11041
|
+
const t = eo(this.eFocusableElement);
|
|
11042
11042
|
return this.tabGuardsAreActive() && (t.splice(0, 1), t.splice(t.length - 1, 1)), t.length ? (t[e ? t.length - 1 : 0].focus({ preventScroll: !0 }), !0) : !1;
|
|
11043
11043
|
}
|
|
11044
11044
|
getNextFocusableElement(e) {
|
|
@@ -15818,8 +15818,8 @@ var Ym = class extends D {
|
|
|
15818
15818
|
if (rr)
|
|
15819
15819
|
return;
|
|
15820
15820
|
i && (e = `@layer ${CSS.escape(i)} { ${e} }`);
|
|
15821
|
-
let r =
|
|
15822
|
-
if (r || (r = [],
|
|
15821
|
+
let r = oo.map.get(t);
|
|
15822
|
+
if (r || (r = [], oo.map.set(t, r)), r.find((c) => c.css === e))
|
|
15823
15823
|
return;
|
|
15824
15824
|
const l = document.createElement("style");
|
|
15825
15825
|
n && l.setAttribute("nonce", n), l.dataset.agGlobalCss = o, l.textContent = e;
|
|
@@ -15846,14 +15846,14 @@ var Ym = class extends D {
|
|
|
15846
15846
|
}
|
|
15847
15847
|
);
|
|
15848
15848
|
}, tv = (e) => {
|
|
15849
|
-
|
|
15849
|
+
oo.grids.add(e);
|
|
15850
15850
|
}, ov = (e) => {
|
|
15851
|
-
if (
|
|
15852
|
-
|
|
15851
|
+
if (oo.grids.delete(e), oo.grids.size === 0) {
|
|
15852
|
+
oo.map = /* @__PURE__ */ new WeakMap();
|
|
15853
15853
|
for (const t of document.head.querySelectorAll("style[data-ag-global-css]"))
|
|
15854
15854
|
t.remove();
|
|
15855
15855
|
}
|
|
15856
|
-
}, Jr,
|
|
15856
|
+
}, Jr, oo = (Jr = typeof window == "object" ? window : {}).agStyleInjectionState ?? (Jr.agStyleInjectionState = {
|
|
15857
15857
|
map: /* @__PURE__ */ new WeakMap(),
|
|
15858
15858
|
grids: /* @__PURE__ */ new Set()
|
|
15859
15859
|
}), Ne = (e) => new Sd(e), tt = "$default", iv = 0, Sd = class {
|
|
@@ -17949,7 +17949,7 @@ var cw = class extends D {
|
|
|
17949
17949
|
getSortIndicatorSelector() {
|
|
17950
17950
|
return fw;
|
|
17951
17951
|
}
|
|
17952
|
-
},
|
|
17952
|
+
}, io = {
|
|
17953
17953
|
agSetColumnFilter: "SetFilter",
|
|
17954
17954
|
agSetColumnFloatingFilter: "SetFilter",
|
|
17955
17955
|
agMultiColumnFilter: "MultiFilter",
|
|
@@ -18023,8 +18023,8 @@ var cw = class extends D {
|
|
|
18023
18023
|
autoHeight: "RowAutoHeight",
|
|
18024
18024
|
cellClass: "CellStyle",
|
|
18025
18025
|
cellClassRules: "CellStyle",
|
|
18026
|
-
cellEditor: ({ cellEditor: e, editable: t }) => t ? typeof e == "string" ?
|
|
18027
|
-
cellRenderer: ({ cellRenderer: e }) => typeof e != "string" ? null :
|
|
18026
|
+
cellEditor: ({ cellEditor: e, editable: t }) => t ? typeof e == "string" ? io[e] ?? "CustomEditor" : "CustomEditor" : null,
|
|
18027
|
+
cellRenderer: ({ cellRenderer: e }) => typeof e != "string" ? null : io[e],
|
|
18028
18028
|
cellStyle: "CellStyle",
|
|
18029
18029
|
columnChooserParams: "ColumnMenu",
|
|
18030
18030
|
contextMenuItems: "ContextMenu",
|
|
@@ -18035,7 +18035,7 @@ var cw = class extends D {
|
|
|
18035
18035
|
enablePivot: "SharedPivot",
|
|
18036
18036
|
enableRowGroup: "SharedRowGrouping",
|
|
18037
18037
|
enableValue: "SharedAggregation",
|
|
18038
|
-
filter: ({ filter: e }) => e && typeof e != "string" && typeof e != "boolean" ? "CustomFilter" : typeof e == "string" ?
|
|
18038
|
+
filter: ({ filter: e }) => e && typeof e != "string" && typeof e != "boolean" ? "CustomFilter" : typeof e == "string" ? io[e] ?? "ColumnFilter" : "ColumnFilter",
|
|
18039
18039
|
floatingFilter: "ColumnFilter",
|
|
18040
18040
|
getQuickFilterText: "QuickFilter",
|
|
18041
18041
|
headerTooltip: "Tooltip",
|
|
@@ -19557,7 +19557,7 @@ var Ow = Hd(!0), Bw = Hd(!1), _w = class extends X {
|
|
|
19557
19557
|
this.mockContextMenu(e, e.eGui, t);
|
|
19558
19558
|
}
|
|
19559
19559
|
mockRowContextMenu(e) {
|
|
19560
|
-
if (!
|
|
19560
|
+
if (!Ut())
|
|
19561
19561
|
return;
|
|
19562
19562
|
const t = (o, i, s) => {
|
|
19563
19563
|
var l;
|
|
@@ -19568,7 +19568,7 @@ var Ow = Hd(!0), Bw = Hd(!1), _w = class extends X {
|
|
|
19568
19568
|
}
|
|
19569
19569
|
handleCellDoubleClick(e, t) {
|
|
19570
19570
|
return (() => {
|
|
19571
|
-
if (!
|
|
19571
|
+
if (!Ut() || ha("dblclick"))
|
|
19572
19572
|
return !1;
|
|
19573
19573
|
const i = Date.now(), s = i - e.lastIPadMouseClickEvent < 200;
|
|
19574
19574
|
return e.lastIPadMouseClickEvent = i, s;
|
|
@@ -19613,7 +19613,7 @@ var Ow = Hd(!0), Bw = Hd(!1), _w = class extends X {
|
|
|
19613
19613
|
e.addManagedListeners(i, { tap: o }), e.addDestroyFunc(() => i.destroy());
|
|
19614
19614
|
}
|
|
19615
19615
|
mockContextMenu(e, t, o) {
|
|
19616
|
-
if (!
|
|
19616
|
+
if (!Ut())
|
|
19617
19617
|
return;
|
|
19618
19618
|
const i = new ft(t), s = (n) => {
|
|
19619
19619
|
Uo(this.gos, n.touchEvent) && o(void 0, n.touchStart, n.touchEvent);
|
|
@@ -19970,7 +19970,7 @@ var tb = class extends D {
|
|
|
19970
19970
|
const { rowIndex: d, rowPinned: c } = e.getRowPosition();
|
|
19971
19971
|
(c ? d === 0 : d === r.getFirstRow()) && (a.get("headerHeight") === 0 || St(s) ? $o(s, !0, !0) : (t.preventDefault(), l.focusPreviousFromFirstCell(t)));
|
|
19972
19972
|
} else
|
|
19973
|
-
e instanceof
|
|
19973
|
+
e instanceof to && e.focusCell(!0), (!o && l.focusOverlay(!1) || $o(s, o)) && t.preventDefault();
|
|
19974
19974
|
}
|
|
19975
19975
|
// comes from API
|
|
19976
19976
|
tabToNextCell(e, t) {
|
|
@@ -19984,7 +19984,7 @@ var tb = class extends D {
|
|
|
19984
19984
|
var a;
|
|
19985
19985
|
const { editSvc: s, focusSvc: n } = this.beans;
|
|
19986
19986
|
let r;
|
|
19987
|
-
const l = e instanceof
|
|
19987
|
+
const l = e instanceof to ? e : (a = e.getAllCellCtrls()) == null ? void 0 : a[0];
|
|
19988
19988
|
return s != null && s.isEditing() ? r = s == null ? void 0 : s.moveToNextCell(l, t, o, i) : r = this.moveToNextCellNotEditing(e, t, o), r === null ? r : r || !!n.focusedHeader;
|
|
19989
19989
|
}
|
|
19990
19990
|
// returns null if no navigation should be performed
|
|
@@ -20004,7 +20004,7 @@ var tb = class extends D {
|
|
|
20004
20004
|
const n = this.findNextCellToFocusOn(s, { backwards: t, startEditing: !1 });
|
|
20005
20005
|
if (n === !1)
|
|
20006
20006
|
return null;
|
|
20007
|
-
if (n instanceof
|
|
20007
|
+
if (n instanceof to)
|
|
20008
20008
|
n.focusCell(!0);
|
|
20009
20009
|
else if (n)
|
|
20010
20010
|
return this.tryToFocusFullWidthRow(n, t);
|
|
@@ -21000,7 +21000,7 @@ var pb = (
|
|
|
21000
21000
|
this.getLockOnRefresh();
|
|
21001
21001
|
const t = (l = this.beans.focusSvc) == null ? void 0 : l.getFocusCellToUseAfterRefresh();
|
|
21002
21002
|
this.updateContainerHeights(), this.scrollToTopIfNewData(e);
|
|
21003
|
-
const o = !e.domLayoutChanged && !!e.recycleRows, i = e.animate &&
|
|
21003
|
+
const o = !e.domLayoutChanged && !!e.recycleRows, i = e.animate && Yt(this.gos), s = o ? this.getRowsToRecycle() : null;
|
|
21004
21004
|
o || this.removeAllRowComps(), this.workOutFirstAndLastRowsToRender();
|
|
21005
21005
|
const { stickyRowFeature: n, gos: r } = this;
|
|
21006
21006
|
if (n) {
|
|
@@ -21613,7 +21613,7 @@ var Bd = {
|
|
|
21613
21613
|
this.waitingForColumns = !1, this.setColumnsAndData(t);
|
|
21614
21614
|
return;
|
|
21615
21615
|
}
|
|
21616
|
-
this.beans.colModel.setColumnDefs(t,
|
|
21616
|
+
this.beans.colModel.setColumnDefs(t, Xt(e.source));
|
|
21617
21617
|
}
|
|
21618
21618
|
}
|
|
21619
21619
|
};
|
|
@@ -22235,7 +22235,7 @@ ${t.join(`
|
|
|
22235
22235
|
|
|
22236
22236
|
ModuleRegistry.registerModules([ ${e.map((i) => Ao(i, !0)).join(", ")} ]);
|
|
22237
22237
|
|
|
22238
|
-
For more info see: ${
|
|
22238
|
+
For more info see: ${qt}/modules/`;
|
|
22239
22239
|
};
|
|
22240
22240
|
function Ao(e, t = !1) {
|
|
22241
22241
|
return t && (e === "IntegratedCharts" || e === "Sparklines") ? `${e}Module.with(AgChartsEnterpriseModule)` : `${e}Module`;
|
|
@@ -22446,7 +22446,7 @@ ${$b(t)}`,
|
|
|
22446
22446
|
103: () => "Invalid selection state. When using client-side row model, the state must conform to `string[]`.",
|
|
22447
22447
|
104: ({ value: e, param: t }) => `Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,
|
|
22448
22448
|
105: ({ e }) => ["chart rendering failed", e],
|
|
22449
|
-
106: () => `Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${
|
|
22449
|
+
106: () => `Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${qt}/theming-migration/`,
|
|
22450
22450
|
107: ({ key: e, value: t }) => `Invalid value for theme param ${e} - ${t}`,
|
|
22451
22451
|
108: ({ e }) => ["chart update failed", e],
|
|
22452
22452
|
109: ({ inputValue: e, allSuggestions: t }) => {
|
|
@@ -22585,7 +22585,7 @@ ${$b(t)}`,
|
|
|
22585
22585
|
206: () => "getRowId callback must be implemented for transactions to work. Transaction was ignored.",
|
|
22586
22586
|
207: () => 'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',
|
|
22587
22587
|
208: () => "Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",
|
|
22588
|
-
209: () => `Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${
|
|
22588
|
+
209: () => `Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${qt}/filter-set-filter-list/#filter-value-types`,
|
|
22589
22589
|
210: () => "Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",
|
|
22590
22590
|
211: () => "property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",
|
|
22591
22591
|
212: () => "please review all your toolPanel components, it seems like at least one of them doesn't have an id",
|
|
@@ -22649,7 +22649,7 @@ To see what part of your code that caused the refresh check this stacktrace.`,
|
|
|
22649
22649
|
rowModelType: s
|
|
22650
22650
|
}) => ll({
|
|
22651
22651
|
reasonOrId: `AG Grid '${e}' component: ${t}`,
|
|
22652
|
-
moduleName:
|
|
22652
|
+
moduleName: io[t],
|
|
22653
22653
|
gridId: i,
|
|
22654
22654
|
gridScoped: o,
|
|
22655
22655
|
rowModelType: s
|
|
@@ -22658,7 +22658,7 @@ To see what part of your code that caused the refresh check this stacktrace.`,
|
|
|
22658
22658
|
262: () => 'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',
|
|
22659
22659
|
263: () => 'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',
|
|
22660
22660
|
264: () => 'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',
|
|
22661
|
-
265: ({ colId: e }) => `Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${
|
|
22661
|
+
265: ({ colId: e }) => `Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${qt}/integrated-charts-range-chart#coldefchartdatatype .`,
|
|
22662
22662
|
266: () => 'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',
|
|
22663
22663
|
267: () => "Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",
|
|
22664
22664
|
268: () => "Transactions aren't supported with tree data when using treeDataChildrenField",
|
|
@@ -22970,7 +22970,7 @@ var tS = class {
|
|
|
22970
22970
|
return !e || e === "hover" ? 0 : 1;
|
|
22971
22971
|
}
|
|
22972
22972
|
onMouseEnter(e) {
|
|
22973
|
-
this.interactionEnabled && this.interactiveTooltipTimeoutId && (this.unlockService(), this.startHideTimeout()), !
|
|
22973
|
+
this.interactionEnabled && this.interactiveTooltipTimeoutId && (this.unlockService(), this.startHideTimeout()), !Ut() && (hi ? this.showTooltipTimeoutId = window.setTimeout(() => {
|
|
22974
22974
|
this.prepareToShowTooltip(e);
|
|
22975
22975
|
}, hl) : this.prepareToShowTooltip(e));
|
|
22976
22976
|
}
|
|
@@ -23351,7 +23351,7 @@ function uS(e, t, o) {
|
|
|
23351
23351
|
return s ? (...n) => {
|
|
23352
23352
|
const r = o.rowModel.getType();
|
|
23353
23353
|
if (!s.includes(r)) {
|
|
23354
|
-
|
|
23354
|
+
jt(
|
|
23355
23355
|
`api.${e} can only be called when gridOptions.rowModelType is ${s.join(" or ")}`
|
|
23356
23356
|
);
|
|
23357
23357
|
return;
|
|
@@ -23582,7 +23582,7 @@ var hS = {
|
|
|
23582
23582
|
return uS(e, t, this.beans);
|
|
23583
23583
|
}
|
|
23584
23584
|
missingUserComponent(e, t, o, i) {
|
|
23585
|
-
const s =
|
|
23585
|
+
const s = io[t];
|
|
23586
23586
|
s ? this.gos.assertModuleRegistered(
|
|
23587
23587
|
s,
|
|
23588
23588
|
`AG Grid '${e}' component: ${t}`
|
|
@@ -23622,7 +23622,7 @@ var hS = {
|
|
|
23622
23622
|
k(134, { iconName: e });
|
|
23623
23623
|
}
|
|
23624
23624
|
isProvidedUserComp(e) {
|
|
23625
|
-
return !!
|
|
23625
|
+
return !!io[e];
|
|
23626
23626
|
}
|
|
23627
23627
|
/** Should only be called via the GridOptionsService */
|
|
23628
23628
|
validateColDef(e) {
|
|
@@ -24735,7 +24735,7 @@ function KS(e, t = !1) {
|
|
|
24735
24735
|
const { editSvc: o } = e;
|
|
24736
24736
|
o != null && o.isBatchEditing() ? (t ? (i = e.editModelSvc) == null || i.getEditPositions().forEach((s) => {
|
|
24737
24737
|
s.state === "editing" && o.revertSingleCellEdit(s);
|
|
24738
|
-
}) : Ct(e, !0),
|
|
24738
|
+
}) : Ct(e, !0), Jt(e)) : o == null || o.stopEditing(void 0, { cancel: t, source: "api" });
|
|
24739
24739
|
}
|
|
24740
24740
|
function jS(e, t) {
|
|
24741
24741
|
var i;
|
|
@@ -24898,7 +24898,7 @@ var QS = class extends D {
|
|
|
24898
24898
|
});
|
|
24899
24899
|
const t = oy(e), o = () => {
|
|
24900
24900
|
const i = this.model.getCellValidationModel().getCellValidationMap().size > 0, s = this.model.getRowValidationModel().getRowValidationMap().size > 0;
|
|
24901
|
-
return i || s ? this.stopEditing(void 0, pi) : this.isEditing() && (this.isBatchEditing() ?
|
|
24901
|
+
return i || s ? this.stopEditing(void 0, pi) : this.isEditing() && (this.isBatchEditing() ? Jt(e, this.model.getEditPositions()) : this.stopEditing(void 0, ry)), !1;
|
|
24902
24902
|
};
|
|
24903
24903
|
this.addManagedEventListeners({
|
|
24904
24904
|
columnPinned: t,
|
|
@@ -24988,7 +24988,7 @@ var QS = class extends D {
|
|
|
24988
24988
|
this.processEdits(m, i), (p = this.strategy) == null || p.stop(i, o), this.bulkRefresh(void 0, c), c = m, u || (u = h);
|
|
24989
24989
|
} else if (o instanceof KeyboardEvent && this.batch && ((f = this.strategy) != null && f.midBatchInputsAllowed(e)) && this.isEditing(e, { withOpenEditor: !0 })) {
|
|
24990
24990
|
const m = o.key, w = m === R.ENTER, b = m === R.ESCAPE, v = m === R.TAB;
|
|
24991
|
-
(w || v || b) && (w || v ? Ct(r, !0) : b && this.revertSingleCellEdit(d), this.isBatchEditing() ? (C = this.strategy) == null || C.cleanupEditors() :
|
|
24991
|
+
(w || v || b) && (w || v ? Ct(r, !0) : b && this.revertSingleCellEdit(d), this.isBatchEditing() ? (C = this.strategy) == null || C.cleanupEditors() : Jt(r, l.getEditPositions(), { event: o }), o.preventDefault(), this.bulkRefresh(e, c, { suppressFlash: !0 }), c = l.getEditMap());
|
|
24992
24992
|
} else
|
|
24993
24993
|
Ct(r, !0), c = l.getEditMap();
|
|
24994
24994
|
return u && e && this.model.removeEdits(e), !n && d && this.navigateAfterEdit(o instanceof KeyboardEvent && o.shiftKey, d.cellPosition), bn(r), this.model.hasEdits() || (this.model.getCellValidationModel().clearCellValidationMap(), this.model.getRowValidationModel().clearRowValidationMap()), this.bulkRefresh(), g && this.beans.rowRenderer.refreshRows({ rowNodes: Array.from(c.keys()) }), this.isBatchEditing() && (this.beans.rowRenderer.refreshRows({ suppressFlash: !0, force: !0 }), u && h && this.dispatchBatchEvent("batchEditingStopped", c)), u;
|
|
@@ -25096,7 +25096,7 @@ var QS = class extends D {
|
|
|
25096
25096
|
revertSingleCellEdit(e, t = !1) {
|
|
25097
25097
|
var i, s, n, r, l;
|
|
25098
25098
|
const o = Y(this.beans, e);
|
|
25099
|
-
(i = o == null ? void 0 : o.comp) != null && i.getCellEditor() && (
|
|
25099
|
+
(i = o == null ? void 0 : o.comp) != null && i.getCellEditor() && (Jt(this.beans, [e], { silent: !0 }), this.model.clearEditValue(e), co(this.beans, e, { silent: !0 }), Tt(this.beans), o == null || o.refreshCell(yo), (s = o.rowCtrl.rowEditStyleFeature) == null || s.applyRowStyles(), t && (o == null || o.focusCell(), (l = (r = (n = o == null ? void 0 : o.comp) == null ? void 0 : n.getCellEditor()) == null ? void 0 : r.focusIn) == null || l.call(r)));
|
|
25100
25100
|
}
|
|
25101
25101
|
hasValidationErrors(e) {
|
|
25102
25102
|
var i;
|
|
@@ -25110,7 +25110,7 @@ var QS = class extends D {
|
|
|
25110
25110
|
var l;
|
|
25111
25111
|
let s;
|
|
25112
25112
|
const n = this.isEditing(), r = n && this.checkNavWithValidation(void 0, o) === "block-stop";
|
|
25113
|
-
return e instanceof
|
|
25113
|
+
return e instanceof to && n && (s = (l = this.strategy) == null ? void 0 : l.moveToNextEditingCell(e, t, o, i, r)), s === null || (s = s || !!this.beans.focusSvc.focusedHeader, s === !1 && !r && this.stopEditing()), s;
|
|
25114
25114
|
}
|
|
25115
25115
|
getCellDataValue({ rowNode: e, column: t }, o = !0) {
|
|
25116
25116
|
if (!e || !t)
|
|
@@ -25352,7 +25352,7 @@ var QS = class extends D {
|
|
|
25352
25352
|
!e || s.rowNode === e || i.push(s);
|
|
25353
25353
|
}) : o.forEach((s) => {
|
|
25354
25354
|
i.push(s);
|
|
25355
|
-
}),
|
|
25355
|
+
}), Jt(this.beans, i), bn(this.beans, t);
|
|
25356
25356
|
}
|
|
25357
25357
|
setFocusOutOnEditor(e) {
|
|
25358
25358
|
var t, o, i;
|
|
@@ -26971,7 +26971,7 @@ var pR = {
|
|
|
26971
26971
|
rowPinBottom: "pinned-bottom",
|
|
26972
26972
|
rowUnpin: "un-pin"
|
|
26973
26973
|
}
|
|
26974
|
-
}, fR = class extends
|
|
26974
|
+
}, fR = class extends to {
|
|
26975
26975
|
constructor(e, t, o) {
|
|
26976
26976
|
super(e.col, e.firstNode, o, t), this.cellSpan = e, this.SPANNED_CELL_CSS_CLASS = "ag-spanned-cell";
|
|
26977
26977
|
}
|
|
@@ -27751,7 +27751,7 @@ class WR extends D {
|
|
|
27751
27751
|
this.onSelectionOptionsChanged(
|
|
27752
27752
|
t.currentValue,
|
|
27753
27753
|
t.previousValue,
|
|
27754
|
-
|
|
27754
|
+
Xt(t.source)
|
|
27755
27755
|
);
|
|
27756
27756
|
}), this.addManagedPropertyListener("selectionColumnDef", this.updateColumns.bind(this));
|
|
27757
27757
|
}
|
|
@@ -27783,7 +27783,7 @@ class WR extends D {
|
|
|
27783
27783
|
}
|
|
27784
27784
|
updateColumns(t) {
|
|
27785
27785
|
var o;
|
|
27786
|
-
const i =
|
|
27786
|
+
const i = Xt(t.source);
|
|
27787
27787
|
(o = this.columns) == null || o.list.forEach((s) => {
|
|
27788
27788
|
const n = this.createSelectionColDef(t.currentValue);
|
|
27789
27789
|
s.setColDef(n, null, i), Ie(this.beans, { state: [{ ...n, colId: s.getColId() }] }, i);
|
|
@@ -27805,7 +27805,7 @@ class WR extends D {
|
|
|
27805
27805
|
const l = ((i = (o = (t = n.autoColSvc) == null ? void 0 : t.getColumns()) == null ? void 0 : o.length) != null ? i : 0) > 0;
|
|
27806
27806
|
if (r.checkboxLocation === "autoGroupColumn" && l)
|
|
27807
27807
|
return !1;
|
|
27808
|
-
const a = !!
|
|
27808
|
+
const a = !!Zt(r), d = yi(r);
|
|
27809
27809
|
return a || d;
|
|
27810
27810
|
}
|
|
27811
27811
|
createSelectionColDef(t) {
|
|
@@ -27842,7 +27842,7 @@ class WR extends D {
|
|
|
27842
27842
|
return this.createBean(i), [i];
|
|
27843
27843
|
}
|
|
27844
27844
|
onSelectionOptionsChanged(t, o, i) {
|
|
27845
|
-
const s = o && typeof o != "string" ?
|
|
27845
|
+
const s = o && typeof o != "string" ? Zt(o) : void 0, n = t && typeof t != "string" ? Zt(t) : void 0, r = s !== n, l = o && typeof o != "string" ? yi(o) : void 0, a = t && typeof t != "string" ? yi(t) : void 0, d = l !== a, c = Hi(t), u = Hi(o);
|
|
27846
27846
|
(r || d || c !== u) && this.beans.colModel.refreshAll(i);
|
|
27847
27847
|
}
|
|
27848
27848
|
destroy() {
|
|
@@ -28067,7 +28067,7 @@ class t0 extends X {
|
|
|
28067
28067
|
if (i)
|
|
28068
28068
|
return i.isVisible;
|
|
28069
28069
|
const s = this.gos.get("rowSelection");
|
|
28070
|
-
return s && typeof s != "string" ?
|
|
28070
|
+
return s && typeof s != "string" ? Zt(s) : (o = (t = this.column) == null ? void 0 : t.getColDef()) == null ? void 0 : o.checkboxSelection;
|
|
28071
28071
|
}
|
|
28072
28072
|
}
|
|
28073
28073
|
var o0 = Object.defineProperty, i0 = (e, t, o) => t in e ? o0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Ci = (e, t, o) => i0(e, typeof t != "symbol" ? t + "" : t, o);
|
|
@@ -28409,7 +28409,7 @@ class c0 extends D {
|
|
|
28409
28409
|
isCellCheckboxSelection(t, o) {
|
|
28410
28410
|
const i = this.gos.get("rowSelection");
|
|
28411
28411
|
if (i && typeof i != "string") {
|
|
28412
|
-
const s = Lt(t) &&
|
|
28412
|
+
const s = Lt(t) && Zt(i);
|
|
28413
28413
|
return t.isColumnFunc(o, s);
|
|
28414
28414
|
} else
|
|
28415
28415
|
return t.isColumnFunc(o, t.colDef.checkboxSelection);
|
|
@@ -29469,17 +29469,17 @@ class O0 extends D {
|
|
|
29469
29469
|
} : null;
|
|
29470
29470
|
}
|
|
29471
29471
|
onRowGroupOpened() {
|
|
29472
|
-
const t =
|
|
29472
|
+
const t = Yt(this.gos);
|
|
29473
29473
|
this.refreshModel({ step: "map", keepRenderedRows: !0, animate: t });
|
|
29474
29474
|
}
|
|
29475
29475
|
onFilterChanged(t) {
|
|
29476
29476
|
if (t.afterDataChange)
|
|
29477
29477
|
return;
|
|
29478
|
-
const o =
|
|
29478
|
+
const o = Yt(this.gos), s = t.columns.length === 0 || t.columns.some((n) => n.isPrimary()) ? "filter" : "filter_aggregates";
|
|
29479
29479
|
this.refreshModel({ step: s, keepRenderedRows: !0, animate: o });
|
|
29480
29480
|
}
|
|
29481
29481
|
onSortChanged() {
|
|
29482
|
-
const t =
|
|
29482
|
+
const t = Yt(this.gos);
|
|
29483
29483
|
this.refreshModel({
|
|
29484
29484
|
step: "sort",
|
|
29485
29485
|
keepRenderedRows: !1,
|
|
@@ -31165,7 +31165,7 @@ class ts {
|
|
|
31165
31165
|
const s = this.properties.get(t);
|
|
31166
31166
|
if (s)
|
|
31167
31167
|
return s;
|
|
31168
|
-
const n =
|
|
31168
|
+
const n = so(this.value, t);
|
|
31169
31169
|
let r;
|
|
31170
31170
|
if (de(n) && i.getColDef().cellDataType !== "native") {
|
|
31171
31171
|
r = new Array(n.length);
|
|
@@ -31305,6 +31305,9 @@ class dr {
|
|
|
31305
31305
|
getRowSpan(t) {
|
|
31306
31306
|
return this.actualRow.getRowSpans().get(this.id, t);
|
|
31307
31307
|
}
|
|
31308
|
+
isProjection() {
|
|
31309
|
+
return !0;
|
|
31310
|
+
}
|
|
31308
31311
|
getData() {
|
|
31309
31312
|
return this.actualRow.getData();
|
|
31310
31313
|
}
|
|
@@ -31338,6 +31341,20 @@ class dr {
|
|
|
31338
31341
|
match(t) {
|
|
31339
31342
|
return t.data.getId() === this.actualRow.getId();
|
|
31340
31343
|
}
|
|
31344
|
+
getHostObject(t) {
|
|
31345
|
+
var o;
|
|
31346
|
+
let i, s;
|
|
31347
|
+
const n = this.getCell(t.column);
|
|
31348
|
+
if (n.parent && (n == null ? void 0 : n.parent.field) !== "$") {
|
|
31349
|
+
let r = n.isArrayElement() ? n.path : n.parent.path;
|
|
31350
|
+
((o = t.colDef) == null ? void 0 : o.cellDataType) === "array" && (r = n.path), i = so(this.getData(), r), r.endsWith("]") && (s = so(this.getData(), r.substring(0, r.lastIndexOf("["))));
|
|
31351
|
+
} else
|
|
31352
|
+
i = this.getData();
|
|
31353
|
+
return {
|
|
31354
|
+
hostObject: i,
|
|
31355
|
+
hostArray: s
|
|
31356
|
+
};
|
|
31357
|
+
}
|
|
31341
31358
|
}
|
|
31342
31359
|
var Dx = Object.defineProperty, Fx = (e, t, o) => t in e ? Dx(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, vi = (e, t, o) => Fx(e, typeof t != "symbol" ? t + "" : t, o);
|
|
31343
31360
|
class uc {
|
|
@@ -31363,6 +31380,9 @@ class uc {
|
|
|
31363
31380
|
getData() {
|
|
31364
31381
|
return this.draft;
|
|
31365
31382
|
}
|
|
31383
|
+
isProjection() {
|
|
31384
|
+
return !1;
|
|
31385
|
+
}
|
|
31366
31386
|
isTransient() {
|
|
31367
31387
|
return this.transient;
|
|
31368
31388
|
}
|
|
@@ -31472,6 +31492,9 @@ class hc {
|
|
|
31472
31492
|
update(t, o) {
|
|
31473
31493
|
this.id = t, this.data = o, this.signature = on(JSON.stringify(o)), this.buildSpan();
|
|
31474
31494
|
}
|
|
31495
|
+
isProjection() {
|
|
31496
|
+
return !1;
|
|
31497
|
+
}
|
|
31475
31498
|
isTransient() {
|
|
31476
31499
|
return !1;
|
|
31477
31500
|
}
|
|
@@ -31537,7 +31560,7 @@ class hc {
|
|
|
31537
31560
|
getValue(t, o) {
|
|
31538
31561
|
const i = this.getCell(t, o);
|
|
31539
31562
|
if (i)
|
|
31540
|
-
return
|
|
31563
|
+
return so(this.data, i.path);
|
|
31541
31564
|
}
|
|
31542
31565
|
setData(t) {
|
|
31543
31566
|
this.update(this.idMapper(t), t);
|
|
@@ -33453,36 +33476,30 @@ const WE = {
|
|
|
33453
33476
|
},
|
|
33454
33477
|
setup(e) {
|
|
33455
33478
|
const t = e, o = le(() => {
|
|
33456
|
-
|
|
33457
|
-
const l = t.params.data, a = t.params.data.isEditing() && t.params.editeRender ? t.params.editeRender : t.params.render, d = {
|
|
33479
|
+
const r = t.params.data, l = t.params.data.isEditing() && t.params.editeRender ? t.params.editeRender : t.params.render, a = {
|
|
33458
33480
|
...t.params,
|
|
33459
|
-
render:
|
|
33481
|
+
render: l
|
|
33460
33482
|
};
|
|
33461
|
-
if (
|
|
33462
|
-
const
|
|
33463
|
-
if (!
|
|
33464
|
-
return
|
|
33465
|
-
|
|
33466
|
-
|
|
33467
|
-
|
|
33468
|
-
|
|
33469
|
-
|
|
33470
|
-
|
|
33471
|
-
d.hostObject = u, d.hostArrayHook = (g) => {
|
|
33472
|
-
var p;
|
|
33473
|
-
let f = h;
|
|
33474
|
-
((p = d.colDef) == null ? void 0 : p.cellDataType) === "array" && !h && (f = [], Tl(l.getData(), c.path, f)), f && (g(f), l.buildSpan(), d.context.reload(), d.api.redrawRows({
|
|
33475
|
-
rowNodes: d.api.getRenderedNodes().filter((C) => l.match(C))
|
|
33483
|
+
if (r instanceof dr) {
|
|
33484
|
+
const d = r.getCell(a.column);
|
|
33485
|
+
if (!d)
|
|
33486
|
+
return a.render = t.params.render, a;
|
|
33487
|
+
const { hostArray: c, hostObject: u } = r.getHostObject(a);
|
|
33488
|
+
a.hostObject = u, a.hostArrayHook = (h) => {
|
|
33489
|
+
var g;
|
|
33490
|
+
let p = c;
|
|
33491
|
+
((g = a.colDef) == null ? void 0 : g.cellDataType) === "array" && !c && (p = [], Tl(r.getData(), d.path, p)), p && (h(p), r.buildSpan(), a.context.reload(), a.api.redrawRows({
|
|
33492
|
+
rowNodes: a.api.getRenderedNodes().filter((f) => r.match(f))
|
|
33476
33493
|
}));
|
|
33477
33494
|
};
|
|
33478
33495
|
}
|
|
33479
|
-
return
|
|
33496
|
+
return a;
|
|
33480
33497
|
}), i = le(() => {
|
|
33481
33498
|
var r;
|
|
33482
33499
|
const l = t.params.data;
|
|
33483
33500
|
if ((r = t.params.data) != null && r.isEditing() && t.params.editeRender) {
|
|
33484
33501
|
const a = l.getData(), d = l.getCell(t.params.column);
|
|
33485
|
-
return d ? !Hc(
|
|
33502
|
+
return d ? !Hc(so(a, d.getReadPath()), t.params.value) : !1;
|
|
33486
33503
|
}
|
|
33487
33504
|
return !1;
|
|
33488
33505
|
}), s = le(() => t.params.data.isTransient()), n = le(() => t.params.data.getRowSpan(t.params.column));
|
|
@@ -33955,9 +33972,7 @@ const Dc = ZD.exports, XD = z({
|
|
|
33955
33972
|
params: null
|
|
33956
33973
|
},
|
|
33957
33974
|
setup(e) {
|
|
33958
|
-
const t = e, o = G(), i = G(-1), s = zt()
|
|
33959
|
-
console.log(s);
|
|
33960
|
-
const n = oe(fo), r = () => {
|
|
33975
|
+
const t = e, o = G(), i = G(-1), s = zt(), n = oe(fo), r = () => {
|
|
33961
33976
|
o.value = t.params.column.getSort(), i.value = Q0(t.params.api, t.params.column.getColId());
|
|
33962
33977
|
}, l = async (a, d) => {
|
|
33963
33978
|
try {
|
|
@@ -33981,7 +33996,7 @@ var JD = function() {
|
|
|
33981
33996
|
eF,
|
|
33982
33997
|
!1,
|
|
33983
33998
|
null,
|
|
33984
|
-
"
|
|
33999
|
+
"4883f6ef"
|
|
33985
34000
|
);
|
|
33986
34001
|
const oF = tF.exports, iF = z({
|
|
33987
34002
|
name: "GridEmptyDataOverlay"
|
|
@@ -34280,7 +34295,7 @@ class EF {
|
|
|
34280
34295
|
}
|
|
34281
34296
|
const GF = (e, t) => ({
|
|
34282
34297
|
model: {
|
|
34283
|
-
value:
|
|
34298
|
+
value: so(e, t),
|
|
34284
34299
|
callback: (o) => {
|
|
34285
34300
|
Tl(e, t, o);
|
|
34286
34301
|
}
|