slick-table 1.1.79 → 1.1.81
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/README.md +5 -3
- package/dist/index.cjs.js +65 -32
- package/dist/index.es.js +222 -168
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/DefaultPrinter.d.ts +5 -4
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/DefaultPrinter.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/lib/applyHtmlToDocument.d.ts +3 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/lib/applyHtmlToDocument.d.ts.map +1 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/lib/index.d.ts +2 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/lib/index.d.ts.map +1 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/model/consts/cssStyles.d.ts +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/printer/model/consts/cssStyles.d.ts.map +1 -1
- package/dist/types/shared/model/types/IHtmlDocElements.d.ts +8 -0
- package/dist/types/shared/model/types/IHtmlDocElements.d.ts.map +1 -0
- package/dist/types/shared/model/types/IPrinter.d.ts +6 -4
- package/dist/types/shared/model/types/IPrinter.d.ts.map +1 -1
- package/dist/types/shared/model/types/index.d.ts +1 -0
- package/dist/types/shared/model/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/lib/slickgrid/model/SlickTable/printer/DefaultPrinter.ts +76 -33
- package/src/shared/lib/slickgrid/model/SlickTable/printer/lib/applyHtmlToDocument.ts +7 -0
- package/src/shared/lib/slickgrid/model/SlickTable/printer/lib/index.ts +1 -0
- package/src/shared/lib/slickgrid/model/SlickTable/printer/model/consts/cssStyles.ts +28 -23
- package/src/shared/model/types/IHtmlDocElements.ts +7 -0
- package/src/shared/model/types/IPrinter.ts +6 -4
- package/src/shared/model/types/index.ts +1 -0
package/dist/index.es.js
CHANGED
|
@@ -21191,7 +21191,7 @@ const _D = ie(oh)({
|
|
|
21191
21191
|
borderRadius: "10px"
|
|
21192
21192
|
}), xD = {
|
|
21193
21193
|
Skeleton: _D
|
|
21194
|
-
},
|
|
21194
|
+
}, IB = ({ height: e = "calc(100% - 1em)" }) => /* @__PURE__ */ k.jsx(xD.Skeleton, { variant: "rectangular", height: e });
|
|
21195
21195
|
var Be = /* @__PURE__ */ ((e) => (e[e.Boolean = 1] = "Boolean", e[e.DateBetween = 2] = "DateBetween", e[e.DateEqual = 3] = "DateEqual", e[e.DateFrom = 4] = "DateFrom", e[e.DateTo = 5] = "DateTo", e[e.MultipleSelect = 6] = "MultipleSelect", e[e.NumberBetween = 7] = "NumberBetween", e[e.NumberEqual = 8] = "NumberEqual", e[e.NumberFrom = 9] = "NumberFrom", e[e.NumberTo = 10] = "NumberTo", e[e.TextContain = 11] = "TextContain", e[e.TextEqual = 12] = "TextEqual", e[e.TextNotContain = 13] = "TextNotContain", e[e.TextNotEqual = 14] = "TextNotEqual", e))(Be || {}), gn = /* @__PURE__ */ ((e) => (e.Boolean = "Boolean", e.Date = "Date", e.MultipleSelect = "MultipleSelect", e.Number = "Number", e.NumberFormatted = "NumberFormatted", e.Text = "Text", e))(gn || {}), Zr = /* @__PURE__ */ ((e) => (e.db = "YYYY-MM-DD", e.ui = "MM/DD/YY", e))(Zr || {}), Wr = /* @__PURE__ */ ((e) => (e.ArrowDown = "ArrowDown", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.ArrowUp = "ArrowUp", e.Control = "Control", e.Enter = "Enter", e.Tab = "Tab", e))(Wr || {}), ns = /* @__PURE__ */ ((e) => (e[e.KeyB = 66] = "KeyB", e[e.KeyDel = 46] = "KeyDel", e[e.KeyEnter = 13] = "KeyEnter", e[e.KeyR = 82] = "KeyR", e[e.KeyS = 83] = "KeyS", e[e.KeyY = 89] = "KeyY", e[e.KeyZ = 90] = "KeyZ", e))(ns || {}), Zo = /* @__PURE__ */ ((e) => (e[e.DATE = 1] = "DATE", e[e.NUMBER = 2] = "NUMBER", e[e.NUMBER_FORMATTED = 3] = "NUMBER_FORMATTED", e[e.TEXT_NUMERIC = 4] = "TEXT_NUMERIC", e[e.TEXT = 5] = "TEXT", e))(Zo || {});
|
|
21196
21196
|
const mm = (e) => (t) => {
|
|
21197
21197
|
t.keyCode === ns.KeyEnter && (t.stopImmediatePropagation(), e.navigateNext());
|
|
@@ -21272,7 +21272,7 @@ class MD {
|
|
|
21272
21272
|
}
|
|
21273
21273
|
}
|
|
21274
21274
|
const yo = new MD();
|
|
21275
|
-
class
|
|
21275
|
+
class AB {
|
|
21276
21276
|
constructor() {
|
|
21277
21277
|
this._initialColumns = [], this._hiddenColumnIds = [], this._tableId = "";
|
|
21278
21278
|
}
|
|
@@ -21326,7 +21326,7 @@ class ND {
|
|
|
21326
21326
|
}
|
|
21327
21327
|
getCSVBody(t) {
|
|
21328
21328
|
const n = t.getData(), r = t.getColumns().filter((i) => i.forPrint);
|
|
21329
|
-
return
|
|
21329
|
+
return RB(t).reduce((i, a) => {
|
|
21330
21330
|
const l = n.getItemMetadata(a), d = n.getItem(a), u = d.__group, f = d.__groupTotals;
|
|
21331
21331
|
let p = "";
|
|
21332
21332
|
if (u) {
|
|
@@ -21356,7 +21356,7 @@ class ND {
|
|
|
21356
21356
|
`;
|
|
21357
21357
|
}
|
|
21358
21358
|
}
|
|
21359
|
-
class
|
|
21359
|
+
class FB {
|
|
21360
21360
|
constructor() {
|
|
21361
21361
|
this.externalVariables = {}, this.commandQueue = [], this.queueIndex = -1;
|
|
21362
21362
|
}
|
|
@@ -21372,9 +21372,9 @@ class AB {
|
|
|
21372
21372
|
if (!o || !o.getOptions().editable) return;
|
|
21373
21373
|
const r = o.getData();
|
|
21374
21374
|
if (Ob(t)) {
|
|
21375
|
-
if (t.preventDefault(), t.stopImmediatePropagation(),
|
|
21376
|
-
|
|
21377
|
-
} else if (
|
|
21375
|
+
if (t.preventDefault(), t.stopImmediatePropagation(), oB(o)) return;
|
|
21376
|
+
rB(o), o.invalidate(), this.pushToCommandQueue(o), n.isEdited = !0;
|
|
21377
|
+
} else if (tB(t)) {
|
|
21378
21378
|
t.preventDefault(), t.stopImmediatePropagation();
|
|
21379
21379
|
const i = o.getSelectedRows();
|
|
21380
21380
|
if (!i.length) return;
|
|
@@ -21448,17 +21448,17 @@ class rh {
|
|
|
21448
21448
|
return this.hotKeysBehaviour.getExternalVariables();
|
|
21449
21449
|
}
|
|
21450
21450
|
}
|
|
21451
|
-
class
|
|
21451
|
+
class LB extends rh {
|
|
21452
21452
|
handleKeyboardEvent(t, n) {
|
|
21453
21453
|
n.isActive && (Ob(t) || super.handleKeyboardEvent.call(this, t, n));
|
|
21454
21454
|
}
|
|
21455
21455
|
}
|
|
21456
|
-
class
|
|
21456
|
+
class $B extends rh {
|
|
21457
21457
|
handleKeyboardEvent(t, n) {
|
|
21458
21458
|
n.isActive && (Mb(t) || Ib(t)) && super.handleKeyboardEvent.call(this, t, n);
|
|
21459
21459
|
}
|
|
21460
21460
|
}
|
|
21461
|
-
const du = "checkboxSelector",
|
|
21461
|
+
const du = "checkboxSelector", VB = "wink", jB = "bold";
|
|
21462
21462
|
//! moment.js
|
|
21463
21463
|
//! version : 2.30.1
|
|
21464
21464
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -24058,10 +24058,10 @@ ie(oy)({
|
|
|
24058
24058
|
fill: "white"
|
|
24059
24059
|
}
|
|
24060
24060
|
});
|
|
24061
|
-
class
|
|
24061
|
+
class WB extends rh {
|
|
24062
24062
|
handleKeyboardEvent(t, n) {
|
|
24063
24063
|
if (n.isActive)
|
|
24064
|
-
if (
|
|
24064
|
+
if (nB(t)) {
|
|
24065
24065
|
if (!n.summaryColumnIds.length) return;
|
|
24066
24066
|
const o = n.grid;
|
|
24067
24067
|
if (!o || o.getSelectedRows().length < 2) return;
|
|
@@ -24112,7 +24112,7 @@ let $N = class {
|
|
|
24112
24112
|
return this._tableId;
|
|
24113
24113
|
}
|
|
24114
24114
|
};
|
|
24115
|
-
class
|
|
24115
|
+
class HB extends $N {
|
|
24116
24116
|
getFilterFn() {
|
|
24117
24117
|
return (t) => !t?.isDeleted;
|
|
24118
24118
|
}
|
|
@@ -24188,7 +24188,7 @@ class jN {
|
|
|
24188
24188
|
return this.filter.tableId;
|
|
24189
24189
|
}
|
|
24190
24190
|
}
|
|
24191
|
-
function
|
|
24191
|
+
function zB(e) {
|
|
24192
24192
|
return {
|
|
24193
24193
|
tooltip: "Apply column filter",
|
|
24194
24194
|
command: e
|
|
@@ -41100,7 +41100,7 @@ const OW = (e) => (t, { grid: n, item: o }) => {
|
|
|
41100
41100
|
MW(n, o), n.updateRowCount(), n.invalidate(), e.isEdited = !0, e.hotKeysBehavior.pushToCommandQueue(n);
|
|
41101
41101
|
}, MW = (e, t) => {
|
|
41102
41102
|
const n = e.getData(), o = n.getIdPropertyName(), i = {
|
|
41103
|
-
...
|
|
41103
|
+
...eB(n),
|
|
41104
41104
|
...t,
|
|
41105
41105
|
[o]: Uh(e),
|
|
41106
41106
|
isEdited: !0,
|
|
@@ -41112,7 +41112,7 @@ function IW({
|
|
|
41112
41112
|
SlickDataView: e = _W,
|
|
41113
41113
|
applyCellCssStyles: t,
|
|
41114
41114
|
assignIds: n = !1,
|
|
41115
|
-
columnSorter: o =
|
|
41115
|
+
columnSorter: o = DB,
|
|
41116
41116
|
columns: r,
|
|
41117
41117
|
getItemMetadata: i,
|
|
41118
41118
|
groups: a,
|
|
@@ -41140,7 +41140,7 @@ function IW({
|
|
|
41140
41140
|
), W.registerPlugin(O), W.registerPlugin(C), i && (F.getItemMetadata = i(W)), F.setItems(
|
|
41141
41141
|
n ? d.map(($, K) => ({ ...$, [l]: ++K })) : d.map(($) => ({ ...$ })),
|
|
41142
41142
|
l
|
|
41143
|
-
), W.invalidate(), F.onRowCountChanged.subscribe(P(S)), F.onRowsChanged.subscribe(TD(W)), W.onAddNewRow.subscribe(u), W.onCellChange.subscribe(p), m && W.onMouseEnter.subscribe(m), v && W.onMouseLeave.subscribe(v), D && W.onSelectedRowsChanged.subscribe(D), f && W.onBeforeEditCell.subscribe(f), y && W.onClick.subscribe(y), w && W.onDblClick.subscribe(w), W.onSort.subscribe(o.getSortFunction(S.id)), W.onColumnsResized.subscribe(DW(S.id)), W.onContextMenu.subscribe(
|
|
41143
|
+
), W.invalidate(), F.onRowCountChanged.subscribe(P(S)), F.onRowsChanged.subscribe(TD(W)), W.onAddNewRow.subscribe(u), W.onCellChange.subscribe(p), m && W.onMouseEnter.subscribe(m), v && W.onMouseLeave.subscribe(v), D && W.onSelectedRowsChanged.subscribe(D), f && W.onBeforeEditCell.subscribe(f), y && W.onClick.subscribe(y), w && W.onDblClick.subscribe(w), W.onSort.subscribe(o.getSortFunction(S.id)), W.onColumnsResized.subscribe(DW(S.id)), W.onContextMenu.subscribe(iB(S)), S.columnPicker && W.onHeaderContextMenu.subscribe(aB(S));
|
|
41144
41144
|
const R = HN(S);
|
|
41145
41145
|
return O.onCommand.subscribe(R), b && (A.onCommand.subscribe(b), W.registerPlugin(A)), a && (S.grouping = {
|
|
41146
41146
|
groups: a,
|
|
@@ -41351,7 +41351,7 @@ const Zm = Ks`
|
|
|
41351
41351
|
onSelectedRowsChanged: D,
|
|
41352
41352
|
options: x,
|
|
41353
41353
|
table: S
|
|
41354
|
-
}),
|
|
41354
|
+
}), cB(S), hB(S), uB(S), /* @__PURE__ */ k.jsx(
|
|
41355
41355
|
FW.Container,
|
|
41356
41356
|
{
|
|
41357
41357
|
id: S.id,
|
|
@@ -41364,7 +41364,7 @@ const Zm = Ks`
|
|
|
41364
41364
|
borderRadius: "10px",
|
|
41365
41365
|
height: "100%",
|
|
41366
41366
|
width: "100%"
|
|
41367
|
-
}), Qm = { Skeleton: VW, Wrapper: $W },
|
|
41367
|
+
}), Qm = { Skeleton: VW, Wrapper: $W }, YB = ({
|
|
41368
41368
|
SlickDataView: e,
|
|
41369
41369
|
applyCellCssStyles: t,
|
|
41370
41370
|
assignIds: n,
|
|
@@ -41418,7 +41418,7 @@ const Zm = Ks`
|
|
|
41418
41418
|
/* @__PURE__ */ k.jsx(ij, { tableId: C.id }),
|
|
41419
41419
|
/* @__PURE__ */ k.jsx(_j, { tableId: C.id }),
|
|
41420
41420
|
/* @__PURE__ */ k.jsx(lA, { tableId: C.id })
|
|
41421
|
-
] }),
|
|
41421
|
+
] }), UB = {
|
|
41422
41422
|
cssClass: "text-center",
|
|
41423
41423
|
id: du,
|
|
41424
41424
|
field: du
|
|
@@ -41426,7 +41426,7 @@ const Zm = Ks`
|
|
|
41426
41426
|
function jW(e, t, n) {
|
|
41427
41427
|
return n ? "<span>✎</span>" : "";
|
|
41428
41428
|
}
|
|
41429
|
-
const
|
|
41429
|
+
const qB = {
|
|
41430
41430
|
id: "isEdited",
|
|
41431
41431
|
name: "✎",
|
|
41432
41432
|
field: "isEdited",
|
|
@@ -41516,7 +41516,7 @@ const BW = new WW(), HW = [
|
|
|
41516
41516
|
gn.Boolean,
|
|
41517
41517
|
gn.Number
|
|
41518
41518
|
];
|
|
41519
|
-
class
|
|
41519
|
+
class GB extends jN {
|
|
41520
41520
|
filterFn(t, n) {
|
|
41521
41521
|
if (!n.columnFilters) return !0;
|
|
41522
41522
|
const o = this.grid;
|
|
@@ -43820,9 +43820,15 @@ Arguments: ` + Array.prototype.slice.call(_).join("") + `
|
|
|
43820
43820
|
}(xl)), xl.exports;
|
|
43821
43821
|
}
|
|
43822
43822
|
UW();
|
|
43823
|
-
|
|
43823
|
+
function qW(e, t) {
|
|
43824
|
+
const n = new DOMParser().parseFromString(t, "text/html");
|
|
43825
|
+
e.documentElement.replaceWith(
|
|
43826
|
+
e.importNode(n.documentElement, !0)
|
|
43827
|
+
);
|
|
43828
|
+
}
|
|
43829
|
+
const GW = `
|
|
43824
43830
|
html body {
|
|
43825
|
-
font-family:
|
|
43831
|
+
font-family: Carlito, Calibri, Arial, Helvetica, sans-serif;
|
|
43826
43832
|
font-size: 12px;
|
|
43827
43833
|
}
|
|
43828
43834
|
body table {
|
|
@@ -43830,72 +43836,111 @@ const qW = `
|
|
|
43830
43836
|
border-collapse: collapse;
|
|
43831
43837
|
font-size: 12px;
|
|
43832
43838
|
}
|
|
43833
|
-
table thead {
|
|
43834
|
-
border-bottom: 2px solid gray;
|
|
43835
|
-
}
|
|
43836
43839
|
table th,
|
|
43837
43840
|
table td {
|
|
43838
|
-
padding: 0
|
|
43841
|
+
padding: 0 4px;
|
|
43839
43842
|
font-weight: normal;
|
|
43840
43843
|
}
|
|
43841
|
-
|
|
43842
|
-
|
|
43843
|
-
}
|
|
43844
|
-
table td.text-right {
|
|
43845
|
-
text-align: right;
|
|
43846
|
-
}
|
|
43847
|
-
.heading {
|
|
43848
|
-
height: 30px;
|
|
43844
|
+
.main-table > thead {
|
|
43845
|
+
border-bottom: 1px solid gray;
|
|
43849
43846
|
}
|
|
43850
|
-
.
|
|
43847
|
+
.client-name {
|
|
43848
|
+
font-size: 16px;
|
|
43849
|
+
font-weight: bold;
|
|
43850
|
+
padding: 6px 4px;
|
|
43851
43851
|
text-align: left;
|
|
43852
|
-
padding-bottom: 20px;
|
|
43853
43852
|
}
|
|
43854
|
-
.
|
|
43855
|
-
|
|
43856
|
-
padding-bottom: 20px;
|
|
43853
|
+
.empty-row {
|
|
43854
|
+
height: 15px
|
|
43857
43855
|
}
|
|
43858
|
-
.
|
|
43859
|
-
padding-top: 1em;
|
|
43856
|
+
.font-bold {
|
|
43860
43857
|
font-weight: bold;
|
|
43861
43858
|
}
|
|
43862
|
-
.
|
|
43863
|
-
|
|
43859
|
+
.row-column-names {
|
|
43860
|
+
border-bottom: 1px solid gray;
|
|
43861
|
+
border-top: 1px solid gray;
|
|
43862
|
+
line-height: 2.5;
|
|
43863
|
+
}
|
|
43864
|
+
.slick-table {
|
|
43865
|
+
border-bottom: double gray;
|
|
43864
43866
|
}
|
|
43865
|
-
.
|
|
43867
|
+
.text-center {
|
|
43868
|
+
text-align: center;
|
|
43869
|
+
}
|
|
43870
|
+
.text-left {
|
|
43866
43871
|
text-align: left;
|
|
43867
43872
|
}
|
|
43873
|
+
.text-right {
|
|
43874
|
+
text-align: right;
|
|
43875
|
+
}
|
|
43876
|
+
.w-full {
|
|
43877
|
+
width: 100%;
|
|
43878
|
+
}
|
|
43868
43879
|
`;
|
|
43869
|
-
class
|
|
43880
|
+
class KW {
|
|
43870
43881
|
constructor() {
|
|
43871
|
-
this.clientId = 0, this.clientName = "", this.cssStyles =
|
|
43882
|
+
this.clientId = 0, this.clientName = "", this.cssStyles = GW;
|
|
43872
43883
|
}
|
|
43873
43884
|
getClientName() {
|
|
43874
43885
|
const t = document.createElement("tr"), n = document.createElement("th");
|
|
43875
|
-
return n.classList.add("
|
|
43886
|
+
return n.classList.add("client-name"), n.setAttribute("colspan", "100%"), n.innerText = `${this.clientName} [${this.clientId}]`, t.append(n), t;
|
|
43887
|
+
}
|
|
43888
|
+
getHtmlTemplate(t) {
|
|
43889
|
+
const {
|
|
43890
|
+
body: n = "",
|
|
43891
|
+
footer: o = "",
|
|
43892
|
+
header: r = "",
|
|
43893
|
+
styles: i = "",
|
|
43894
|
+
title: a = ""
|
|
43895
|
+
} = t;
|
|
43896
|
+
return `
|
|
43897
|
+
<!doctype html>
|
|
43898
|
+
<html lang="en">
|
|
43899
|
+
<head>
|
|
43900
|
+
<meta charset="UTF-8">
|
|
43901
|
+
<meta name="viewport"
|
|
43902
|
+
content="width=device-width, initial-scale=1.0">
|
|
43903
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
43904
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
43905
|
+
<link href="https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap"
|
|
43906
|
+
rel="stylesheet">
|
|
43907
|
+
<title>${a}</title>
|
|
43908
|
+
<style>${i}</style>
|
|
43909
|
+
</head>
|
|
43910
|
+
<body>
|
|
43911
|
+
<table class="main-table w-full">
|
|
43912
|
+
${r}
|
|
43913
|
+
<tbody>
|
|
43914
|
+
<tr>
|
|
43915
|
+
<td colspan="100%">
|
|
43916
|
+
${n}
|
|
43917
|
+
</td>
|
|
43918
|
+
</tr>
|
|
43919
|
+
</tbody>
|
|
43920
|
+
${o}
|
|
43921
|
+
</table>
|
|
43922
|
+
</body>
|
|
43923
|
+
</html>
|
|
43924
|
+
`;
|
|
43876
43925
|
}
|
|
43877
43926
|
columnNames(t) {
|
|
43878
|
-
const n = document.createElement("tr");
|
|
43879
|
-
|
|
43880
|
-
|
|
43881
|
-
|
|
43882
|
-
|
|
43927
|
+
const n = document.createElement("thead"), o = document.createElement("tr");
|
|
43928
|
+
o.classList.add("empty-row");
|
|
43929
|
+
const r = document.createElement("tr");
|
|
43930
|
+
return r.classList.add("row-column-names"), (t.grid?.getColumns() || []).filter((d) => d.forPrint).forEach(({ name: d }) => {
|
|
43931
|
+
const u = document.createElement("th");
|
|
43932
|
+
u.classList.add("text-left"), typeof d == "string" ? u.innerText = d : u.innerText = " ", r.append(u);
|
|
43933
|
+
}), n.append(o), n.append(r), n;
|
|
43883
43934
|
}
|
|
43884
43935
|
tableNameAndTime(t) {
|
|
43885
|
-
const n = document.createElement("tr");
|
|
43886
|
-
|
|
43887
|
-
const o = document.createElement("th");
|
|
43888
|
-
o.setAttribute("colspan", "2"), o.classList.add("table_name"), o.innerText = t.name || t.id, n.append(o);
|
|
43936
|
+
const n = document.createElement("tr"), o = document.createElement("th");
|
|
43937
|
+
o.classList.add("text-left"), o.innerText = t.name || t.id, n.append(o);
|
|
43889
43938
|
const r = document.createElement("th");
|
|
43890
|
-
return r.
|
|
43891
|
-
}
|
|
43892
|
-
createStyleElement() {
|
|
43893
|
-
const t = document.createElement("style");
|
|
43894
|
-
return t.innerHTML = this.cssStyles, t;
|
|
43939
|
+
return r.classList.add("text-right"), r.innerText = xe().format("MM/DD/YYYY h:mm A"), n.append(r), n;
|
|
43895
43940
|
}
|
|
43896
43941
|
createTableElement(t) {
|
|
43897
43942
|
const n = document.createElement("table");
|
|
43898
|
-
return n.append(this.
|
|
43943
|
+
return n.classList.add("slick-table"), n.style.width = "100%", n.append(this.columnNames(t)), n.append(this.createTbody(t)), n;
|
|
43899
43944
|
}
|
|
43900
43945
|
createTbody(t) {
|
|
43901
43946
|
const n = document.createElement("tbody"), o = t.grid;
|
|
@@ -43912,7 +43957,7 @@ class GW {
|
|
|
43912
43957
|
const o = t.filter.print(t);
|
|
43913
43958
|
if (o.length) {
|
|
43914
43959
|
const r = document.createElement("tr"), i = document.createElement("th");
|
|
43915
|
-
i.setAttribute("colspan", "100%"), i.classList.add("
|
|
43960
|
+
i.setAttribute("colspan", "100%"), i.classList.add("text-left"), i.innerText = "Applied filters", r.append(i), n.push(r);
|
|
43916
43961
|
}
|
|
43917
43962
|
o.forEach((r) => {
|
|
43918
43963
|
n.push(r);
|
|
@@ -43924,9 +43969,9 @@ class GW {
|
|
|
43924
43969
|
totals(t) {
|
|
43925
43970
|
return [];
|
|
43926
43971
|
}
|
|
43927
|
-
|
|
43972
|
+
createHeader(t) {
|
|
43928
43973
|
const n = document.createElement("thead");
|
|
43929
|
-
return n.append(this.getClientName()), n.append(this.tableNameAndTime(t)), n.append(...this.filters(t)), n
|
|
43974
|
+
return n.append(this.getClientName()), n.append(this.tableNameAndTime(t)), n.append(...this.filters(t)), n;
|
|
43930
43975
|
}
|
|
43931
43976
|
createTr(t, n, o) {
|
|
43932
43977
|
const r = document.createElement("tr"), i = o.getData(), a = i.getItem(n), l = a.__group, d = a.__groupTotals;
|
|
@@ -43948,22 +43993,31 @@ class GW {
|
|
|
43948
43993
|
return r;
|
|
43949
43994
|
}
|
|
43950
43995
|
print(t, n, o) {
|
|
43951
|
-
|
|
43952
|
-
|
|
43953
|
-
|
|
43954
|
-
|
|
43955
|
-
|
|
43996
|
+
const r = window.open();
|
|
43997
|
+
r && (this.clientId = n, this.clientName = o, qW(
|
|
43998
|
+
r.document,
|
|
43999
|
+
this.getHtmlTemplate({
|
|
44000
|
+
title: t.name || t.id,
|
|
44001
|
+
styles: this.cssStyles,
|
|
44002
|
+
header: this.createHeader(t).outerHTML,
|
|
44003
|
+
body: this.createTableElement(t).outerHTML,
|
|
44004
|
+
footer: this.createFooter().outerHTML
|
|
44005
|
+
})
|
|
44006
|
+
), r.print());
|
|
44007
|
+
}
|
|
44008
|
+
createFooter() {
|
|
44009
|
+
return document.createElement("tfoot");
|
|
43956
44010
|
}
|
|
43957
44011
|
}
|
|
43958
|
-
function
|
|
44012
|
+
function XW(e) {
|
|
43959
44013
|
const t = document.querySelector(e);
|
|
43960
44014
|
if (!t) return !0;
|
|
43961
44015
|
const { scrollHeight: n, scrollWidth: o } = document.documentElement, { bottom: r, left: i, right: a, top: l } = t.getBoundingClientRect();
|
|
43962
44016
|
return r <= 0 || i >= o || a <= 0 || l >= n;
|
|
43963
44017
|
}
|
|
43964
|
-
class
|
|
44018
|
+
class KB {
|
|
43965
44019
|
constructor(t) {
|
|
43966
|
-
this.columnPicker = null, this.copiedRows = [], this.downloadManager = new ND(), this.filter = new VN(), this.hotKeysBehavior = new AD(), this.summaryColumnIds = [], this._grid = null, this._grouping = {}, this._isActive = !1, this._isEdited = !1, this._lastActiveCell = { row: 0, cell: 0 }, this._observers = [], this._printer = new
|
|
44020
|
+
this.columnPicker = null, this.copiedRows = [], this.downloadManager = new ND(), this.filter = new VN(), this.hotKeysBehavior = new AD(), this.summaryColumnIds = [], this._grid = null, this._grouping = {}, this._isActive = !1, this._isEdited = !1, this._lastActiveCell = { row: 0, cell: 0 }, this._observers = [], this._printer = new KW();
|
|
43967
44021
|
const {
|
|
43968
44022
|
columnPicker: n,
|
|
43969
44023
|
downloadManager: o,
|
|
@@ -43985,7 +44039,7 @@ class GB {
|
|
|
43985
44039
|
return this.grid = r, r.onKeyDown.subscribe(mm(r)), this.filter.register(r, this.id), this.grid;
|
|
43986
44040
|
}
|
|
43987
44041
|
handleKeyboardEvent(t) {
|
|
43988
|
-
|
|
44042
|
+
XW(`#${this.id}`) || this.hotKeysBehavior.handleKeyboardEvent(t, this);
|
|
43989
44043
|
}
|
|
43990
44044
|
get grid() {
|
|
43991
44045
|
return this._grid;
|
|
@@ -44043,19 +44097,19 @@ class GB {
|
|
|
44043
44097
|
this.grid?.onKeyDown.unsubscribe(mm(this.grid)), this.grid?.getSelectionModel() && this.grid.setSelectedRows([]), this.hotKeysBehavior.resetQueue(), this.isEdited = !1, this.isActive = !1, this.grid = null;
|
|
44044
44098
|
}
|
|
44045
44099
|
}
|
|
44046
|
-
class
|
|
44100
|
+
class ZW extends ka {
|
|
44047
44101
|
constructor() {
|
|
44048
44102
|
super(...arguments), this.clientId = 0, this.clientName = "", this.x = 0, this.y = 0;
|
|
44049
44103
|
}
|
|
44050
44104
|
}
|
|
44051
|
-
const sn = new
|
|
44052
|
-
class
|
|
44105
|
+
const sn = new ZW();
|
|
44106
|
+
class QW extends ka {
|
|
44053
44107
|
constructor() {
|
|
44054
44108
|
super(...arguments), this.x = 0, this.y = 0;
|
|
44055
44109
|
}
|
|
44056
44110
|
}
|
|
44057
|
-
const po = new
|
|
44058
|
-
class
|
|
44111
|
+
const po = new QW();
|
|
44112
|
+
class JW extends ka {
|
|
44059
44113
|
constructor() {
|
|
44060
44114
|
super(...arguments), this._open = !1, this.x = 0, this.y = 0;
|
|
44061
44115
|
}
|
|
@@ -44072,7 +44126,7 @@ class QW extends ka {
|
|
|
44072
44126
|
this._table = t;
|
|
44073
44127
|
}
|
|
44074
44128
|
}
|
|
44075
|
-
const Wn = new
|
|
44129
|
+
const Wn = new JW(), eB = (e) => {
|
|
44076
44130
|
const t = e.getLength() - 1;
|
|
44077
44131
|
return e.getItem(t);
|
|
44078
44132
|
}, Uh = (e) => {
|
|
@@ -44090,10 +44144,10 @@ function qh(e) {
|
|
|
44090
44144
|
function Ob(e) {
|
|
44091
44145
|
return qh(e) && e.keyCode === ns.KeyB;
|
|
44092
44146
|
}
|
|
44093
|
-
function
|
|
44147
|
+
function tB(e) {
|
|
44094
44148
|
return e.shiftKey && e.keyCode === ns.KeyDel;
|
|
44095
44149
|
}
|
|
44096
|
-
function
|
|
44150
|
+
function nB(e) {
|
|
44097
44151
|
return e.altKey && e.keyCode === ns.KeyS;
|
|
44098
44152
|
}
|
|
44099
44153
|
function Mb(e) {
|
|
@@ -44102,12 +44156,12 @@ function Mb(e) {
|
|
|
44102
44156
|
function Ib(e) {
|
|
44103
44157
|
return qh(e) && e.keyCode === ns.KeyZ;
|
|
44104
44158
|
}
|
|
44105
|
-
function
|
|
44159
|
+
function oB(e) {
|
|
44106
44160
|
const t = e.getActiveCell();
|
|
44107
44161
|
return !e.getSelectedRows().length && !t;
|
|
44108
44162
|
}
|
|
44109
44163
|
function Nb(e) {
|
|
44110
|
-
const t =
|
|
44164
|
+
const t = sB(e), o = e.getData().getItems(), r = o.findIndex((a) => a.id === t) + 1, i = o.length;
|
|
44111
44165
|
return r || i;
|
|
44112
44166
|
}
|
|
44113
44167
|
const Gh = (e) => {
|
|
@@ -44115,7 +44169,7 @@ const Gh = (e) => {
|
|
|
44115
44169
|
for (let n = 0; n < e.getLength(); n++)
|
|
44116
44170
|
t.push(e.getItem(n));
|
|
44117
44171
|
return t;
|
|
44118
|
-
},
|
|
44172
|
+
}, rB = (e) => {
|
|
44119
44173
|
const t = e.getSelectedRows(), n = e.getData(), o = Gh(n), r = n.getItems(), i = [], a = n.getIdPropertyName();
|
|
44120
44174
|
let l = Uh(e);
|
|
44121
44175
|
t.length ? t.forEach((d) => {
|
|
@@ -44130,21 +44184,21 @@ const Gh = (e) => {
|
|
|
44130
44184
|
isEdited: !0,
|
|
44131
44185
|
isNew: !0
|
|
44132
44186
|
}), r.splice(Nb(e), 0, ...i), n.setItems(r), e.setSelectedRows([]), e.invalidate();
|
|
44133
|
-
},
|
|
44187
|
+
}, sB = (e) => {
|
|
44134
44188
|
const t = e.getData(), n = Gh(t), o = e.getActiveCell()?.row;
|
|
44135
44189
|
return o !== void 0 ? (n[o] || n[n.length - 1])?.id : 0;
|
|
44136
44190
|
};
|
|
44137
|
-
function
|
|
44191
|
+
function iB(e) {
|
|
44138
44192
|
return function(t) {
|
|
44139
44193
|
t.preventDefault(), Db(), sn.table = e, sn.x = t.pageX || 0, sn.y = t.pageY || 0, sn.notify();
|
|
44140
44194
|
};
|
|
44141
44195
|
}
|
|
44142
|
-
function
|
|
44196
|
+
function aB(e) {
|
|
44143
44197
|
return function(t) {
|
|
44144
44198
|
t.preventDefault(), Db(), po.table = e, po.x = t.pageX || 0, po.y = t.pageY || 0, po.notify();
|
|
44145
44199
|
};
|
|
44146
44200
|
}
|
|
44147
|
-
class
|
|
44201
|
+
class lB extends ka {
|
|
44148
44202
|
constructor() {
|
|
44149
44203
|
super(...arguments), this._activeTable = null;
|
|
44150
44204
|
}
|
|
@@ -44155,7 +44209,7 @@ class aB extends ka {
|
|
|
44155
44209
|
this._activeTable = t;
|
|
44156
44210
|
}
|
|
44157
44211
|
}
|
|
44158
|
-
const Oi = new
|
|
44212
|
+
const Oi = new lB(), cB = (e) => {
|
|
44159
44213
|
function t() {
|
|
44160
44214
|
if (e.id !== Oi.activeTable?.id) {
|
|
44161
44215
|
e.isActive = !1;
|
|
@@ -44178,9 +44232,9 @@ const Oi = new aB(), lB = (e) => {
|
|
|
44178
44232
|
), o.removeEventListener("click", n, !0);
|
|
44179
44233
|
};
|
|
44180
44234
|
}, []);
|
|
44181
|
-
},
|
|
44235
|
+
}, XB = (e) => {
|
|
44182
44236
|
const [t, n] = mo(
|
|
44183
|
-
|
|
44237
|
+
dB(e)
|
|
44184
44238
|
);
|
|
44185
44239
|
return On(() => {
|
|
44186
44240
|
const o = (r) => {
|
|
@@ -44198,13 +44252,13 @@ const Oi = new aB(), lB = (e) => {
|
|
|
44198
44252
|
};
|
|
44199
44253
|
}, []), Object.values(t).some((o) => o);
|
|
44200
44254
|
};
|
|
44201
|
-
function
|
|
44255
|
+
function dB(e) {
|
|
44202
44256
|
const t = {};
|
|
44203
44257
|
for (const n of e)
|
|
44204
44258
|
t[n.id] = n.isEdited;
|
|
44205
44259
|
return t;
|
|
44206
44260
|
}
|
|
44207
|
-
function
|
|
44261
|
+
function uB(e) {
|
|
44208
44262
|
On(() => {
|
|
44209
44263
|
function t() {
|
|
44210
44264
|
e.grid?.resizeCanvas();
|
|
@@ -44215,7 +44269,7 @@ function dB(e) {
|
|
|
44215
44269
|
};
|
|
44216
44270
|
}, []);
|
|
44217
44271
|
}
|
|
44218
|
-
const
|
|
44272
|
+
const hB = (e) => {
|
|
44219
44273
|
On(() => {
|
|
44220
44274
|
function t(n) {
|
|
44221
44275
|
const o = n.grid;
|
|
@@ -44225,7 +44279,7 @@ const uB = (e) => {
|
|
|
44225
44279
|
e.deleteObserver(t);
|
|
44226
44280
|
};
|
|
44227
44281
|
}, []);
|
|
44228
|
-
},
|
|
44282
|
+
}, fB = (e) => {
|
|
44229
44283
|
if (!e) return 0;
|
|
44230
44284
|
if (typeof e == "number") return e;
|
|
44231
44285
|
const t = e.replace(/\$|,|\s/g, ""), n = t.replace(/\(|\)/g, "");
|
|
@@ -44708,9 +44762,9 @@ typeof require < "u" && typeof exports < "u" && (exports.parser = zr, exports.Pa
|
|
|
44708
44762
|
return zr.parse.apply(zr, arguments);
|
|
44709
44763
|
});
|
|
44710
44764
|
const Ab = 2;
|
|
44711
|
-
class
|
|
44765
|
+
class pB extends Ym {
|
|
44712
44766
|
isValueChanged() {
|
|
44713
|
-
const t =
|
|
44767
|
+
const t = fB(this.defaultValue);
|
|
44714
44768
|
let n = 0;
|
|
44715
44769
|
try {
|
|
44716
44770
|
n = zr.parse(this.input.value || "0");
|
|
@@ -44752,8 +44806,8 @@ class fB extends Ym {
|
|
|
44752
44806
|
};
|
|
44753
44807
|
}
|
|
44754
44808
|
}
|
|
44755
|
-
|
|
44756
|
-
class
|
|
44809
|
+
pB.DefaultDecimalPlaces = Ab;
|
|
44810
|
+
class mB {
|
|
44757
44811
|
constructor() {
|
|
44758
44812
|
this.currentFocus = -1, this.defaultValue = "", this.id = "slick-table-autocomplete", this.input = document.createElement("input"), this.keyCaptureList = [Ao.UP, Ao.DOWN, Ao.ENTER];
|
|
44759
44813
|
}
|
|
@@ -44851,10 +44905,10 @@ class pB {
|
|
|
44851
44905
|
};
|
|
44852
44906
|
}
|
|
44853
44907
|
}
|
|
44854
|
-
function
|
|
44908
|
+
function gB(e) {
|
|
44855
44909
|
return e.replace(/[.*+?^${}()|[\]\\]/g, (t) => `\\${t}`);
|
|
44856
44910
|
}
|
|
44857
|
-
class
|
|
44911
|
+
class ZB extends mB {
|
|
44858
44912
|
constructor(t) {
|
|
44859
44913
|
super(), this.args = t;
|
|
44860
44914
|
const n = this.args.column, o = n.optionsList;
|
|
@@ -44878,7 +44932,7 @@ class XB extends pB {
|
|
|
44878
44932
|
}
|
|
44879
44933
|
showOptions(t) {
|
|
44880
44934
|
this.createList(), this.suggestionsList.forEach((n) => {
|
|
44881
|
-
const o = n.match(new RegExp(
|
|
44935
|
+
const o = n.match(new RegExp(gB(t), "i"));
|
|
44882
44936
|
if (o) {
|
|
44883
44937
|
const r = o[0], i = document.createElement("div");
|
|
44884
44938
|
i.innerHTML = `${n.replaceAll(r, `<strong>${r}</strong>`)}`, i.innerHTML += `<input type="hidden" value="${n}">`, i.addEventListener("click", this.onClick.bind(this)), this.list?.appendChild(i);
|
|
@@ -44887,25 +44941,25 @@ class XB extends pB {
|
|
|
44887
44941
|
}
|
|
44888
44942
|
}
|
|
44889
44943
|
var Rl = { exports: {} };
|
|
44890
|
-
const
|
|
44944
|
+
const yB = /* @__PURE__ */ p0(FN);
|
|
44891
44945
|
/*!
|
|
44892
44946
|
* Pikaday
|
|
44893
44947
|
*
|
|
44894
44948
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
44895
44949
|
*/
|
|
44896
|
-
var
|
|
44897
|
-
function
|
|
44950
|
+
var vB = Rl.exports, eg;
|
|
44951
|
+
function bB() {
|
|
44898
44952
|
return eg || (eg = 1, function(e, t) {
|
|
44899
44953
|
(function(n, o) {
|
|
44900
44954
|
var r;
|
|
44901
44955
|
{
|
|
44902
44956
|
try {
|
|
44903
|
-
r =
|
|
44957
|
+
r = yB;
|
|
44904
44958
|
} catch {
|
|
44905
44959
|
}
|
|
44906
44960
|
e.exports = o(r);
|
|
44907
44961
|
}
|
|
44908
|
-
})(
|
|
44962
|
+
})(vB, function(n) {
|
|
44909
44963
|
var o = typeof n == "function", r = !!window.addEventListener, i = window.document, a = window.setTimeout, l = function(N, M, L, B) {
|
|
44910
44964
|
r ? N.addEventListener(M, L, !!B) : N.attachEvent("on" + M, L);
|
|
44911
44965
|
}, d = function(N, M, L, B) {
|
|
@@ -45353,13 +45407,13 @@ function vB() {
|
|
|
45353
45407
|
});
|
|
45354
45408
|
}(Rl)), Rl.exports;
|
|
45355
45409
|
}
|
|
45356
|
-
|
|
45357
|
-
class
|
|
45410
|
+
bB();
|
|
45411
|
+
class wB {
|
|
45358
45412
|
constructor(t) {
|
|
45359
45413
|
this.args = t, this.defaultOptions = { Yes: "Yes", No: "No" }, this.defaultValue = "", this.keyCaptureList = [Ao.UP, Ao.DOWN, Ao.ENTER], this.select = document.createElement("select"), this.init();
|
|
45360
45414
|
}
|
|
45361
45415
|
init() {
|
|
45362
|
-
this.select.classList.add("editor-yesno"), this.select.setAttribute("tabIndex", "0"), this.select.append(...
|
|
45416
|
+
this.select.classList.add("editor-yesno"), this.select.setAttribute("tabIndex", "0"), this.select.append(...CB(this.htmlOptionElements())), this.args.container.append(this.select), this.select.focus();
|
|
45363
45417
|
}
|
|
45364
45418
|
htmlOptionElements() {
|
|
45365
45419
|
const n = this.args.column.selectOptions || this.defaultOptions, o = [];
|
|
@@ -45391,24 +45445,24 @@ class bB {
|
|
|
45391
45445
|
return this.args.column.validator ? this.args.column.validator(this.select.value, this.args) : { valid: !0 };
|
|
45392
45446
|
}
|
|
45393
45447
|
}
|
|
45394
|
-
function
|
|
45448
|
+
function CB(e) {
|
|
45395
45449
|
return e.sort((t, n) => t.innerText.toLowerCase() > n.innerText.toLowerCase() ? 1 : t.innerText.toLowerCase() < n.innerText.toLowerCase() ? -1 : 0);
|
|
45396
45450
|
}
|
|
45397
|
-
class
|
|
45451
|
+
class QB extends wB {
|
|
45398
45452
|
applyValue(t, n) {
|
|
45399
45453
|
t[this.args.column.field] = Number(n);
|
|
45400
45454
|
}
|
|
45401
45455
|
}
|
|
45402
|
-
const
|
|
45403
|
-
function
|
|
45456
|
+
const JB = (e, t, n) => n === "0" ? "" : n ? "<span class='sgi sgi-check green'></span>" : "";
|
|
45457
|
+
function SB(e) {
|
|
45404
45458
|
return function(n, o, r) {
|
|
45405
45459
|
return Eh(r, e);
|
|
45406
45460
|
};
|
|
45407
45461
|
}
|
|
45408
|
-
const
|
|
45462
|
+
const e2 = SB().name, t2 = (e, t) => {
|
|
45409
45463
|
const n = e.sum && e.sum[t.field];
|
|
45410
45464
|
return n !== null ? `${e.group.level ? "total" : "TOTAL"}: ${Eh(n)}` : "";
|
|
45411
|
-
},
|
|
45465
|
+
}, n2 = (e, t, n) => {
|
|
45412
45466
|
const r = e.getData().getRowById(t);
|
|
45413
45467
|
if (r === void 0) return;
|
|
45414
45468
|
const i = e.getColumnIndex(n);
|
|
@@ -45420,26 +45474,26 @@ const JB = CB().name, e2 = (e, t) => {
|
|
|
45420
45474
|
e.removeCellCssStyles(`${r}`);
|
|
45421
45475
|
}, 1500);
|
|
45422
45476
|
};
|
|
45423
|
-
function
|
|
45477
|
+
function _B(e) {
|
|
45424
45478
|
return e.reduce((t, n) => (t[n] = "wink", t), {});
|
|
45425
45479
|
}
|
|
45426
|
-
function
|
|
45427
|
-
const o = e.getData().getLength(), r =
|
|
45480
|
+
function o2(e, t) {
|
|
45481
|
+
const o = e.getData().getLength(), r = xB(o, t);
|
|
45428
45482
|
e.setCellCssStyles("wink", r), setTimeout(() => {
|
|
45429
45483
|
e.removeCellCssStyles("wink");
|
|
45430
45484
|
}, 1500);
|
|
45431
45485
|
}
|
|
45432
|
-
function
|
|
45433
|
-
const n =
|
|
45486
|
+
function xB(e, t) {
|
|
45487
|
+
const n = _B(t), o = {};
|
|
45434
45488
|
let r = 0;
|
|
45435
45489
|
for (; r < e; )
|
|
45436
45490
|
o[r] = n, r++;
|
|
45437
45491
|
return o;
|
|
45438
45492
|
}
|
|
45439
|
-
function
|
|
45493
|
+
function r2(e, t, n) {
|
|
45440
45494
|
return n === "0" ? "" : n ? "Yes" : "";
|
|
45441
45495
|
}
|
|
45442
|
-
function
|
|
45496
|
+
function RB(e) {
|
|
45443
45497
|
if (!e.getSelectionModel()) return tg(e);
|
|
45444
45498
|
let t = e.getSelectedRows();
|
|
45445
45499
|
return t.sort((n, o) => n - o), t.length === 0 && (t = tg(e)), t;
|
|
@@ -45459,19 +45513,19 @@ function Lb(e, t, n) {
|
|
|
45459
45513
|
n === ql ? i[t.id] = i[t.field] : i[n] = i[t.field], delete i[t.field];
|
|
45460
45514
|
});
|
|
45461
45515
|
}
|
|
45462
|
-
function
|
|
45516
|
+
function TB(e, t, n, o) {
|
|
45463
45517
|
const i = e.getColumns().find(
|
|
45464
45518
|
(a) => a.field === n && a.id !== t.id
|
|
45465
45519
|
);
|
|
45466
45520
|
i && (Lb(e, i, ql), Fb(e, i, ql, o));
|
|
45467
45521
|
}
|
|
45468
|
-
function
|
|
45522
|
+
function s2(e, t) {
|
|
45469
45523
|
return function(o, r) {
|
|
45470
45524
|
const i = r.grid, a = r.column, l = r.command;
|
|
45471
|
-
|
|
45525
|
+
TB(i, a, l, e), Lb(i, a, l), Fb(i, a, l, e), i.invalidate(), t.hotKeysBehavior.resetQueue(), t.hotKeysBehavior.pushToCommandQueue(i);
|
|
45472
45526
|
};
|
|
45473
45527
|
}
|
|
45474
|
-
class
|
|
45528
|
+
class kB {
|
|
45475
45529
|
constructor() {
|
|
45476
45530
|
this.emptyValue = "1/1/1970";
|
|
45477
45531
|
}
|
|
@@ -45493,10 +45547,10 @@ class TB {
|
|
|
45493
45547
|
return Number((n || "0").match(/^\d+/g)?.[0] || 0) - o;
|
|
45494
45548
|
}
|
|
45495
45549
|
}
|
|
45496
|
-
const
|
|
45497
|
-
class
|
|
45550
|
+
const EB = new kB();
|
|
45551
|
+
class PB {
|
|
45498
45552
|
constructor() {
|
|
45499
|
-
this.sort =
|
|
45553
|
+
this.sort = EB, this.withFormatter = [Zo.TEXT, Zo.NUMBER_FORMATTED];
|
|
45500
45554
|
}
|
|
45501
45555
|
getSortFunction(t) {
|
|
45502
45556
|
let n = "", o = !1, r;
|
|
@@ -45582,8 +45636,8 @@ class EB {
|
|
|
45582
45636
|
}
|
|
45583
45637
|
}
|
|
45584
45638
|
}
|
|
45585
|
-
const
|
|
45586
|
-
class
|
|
45639
|
+
const DB = new PB();
|
|
45640
|
+
class i2 {
|
|
45587
45641
|
constructor(t, n) {
|
|
45588
45642
|
this.columnsWithTitle = t, this.columnsWithValue = n;
|
|
45589
45643
|
}
|
|
@@ -45616,55 +45670,55 @@ class s2 {
|
|
|
45616
45670
|
}
|
|
45617
45671
|
}
|
|
45618
45672
|
export {
|
|
45619
|
-
|
|
45620
|
-
|
|
45621
|
-
|
|
45622
|
-
|
|
45623
|
-
|
|
45673
|
+
mB as Autocomplete,
|
|
45674
|
+
jB as BOLD,
|
|
45675
|
+
AB as ColumnPicker,
|
|
45676
|
+
PB as ColumnSorter,
|
|
45677
|
+
GB as DecoratorColumnFilter,
|
|
45624
45678
|
jN as DecoratorFilter,
|
|
45625
|
-
|
|
45626
|
-
|
|
45627
|
-
|
|
45679
|
+
FB as DefaultHotKeys,
|
|
45680
|
+
KW as DefaultPrinter,
|
|
45681
|
+
HB as DeletedRowsFilter,
|
|
45628
45682
|
Be as EColumnFilter,
|
|
45629
45683
|
gn as EColumnFiltersGroup,
|
|
45630
45684
|
Zo as ESortType,
|
|
45631
|
-
|
|
45632
|
-
|
|
45633
|
-
|
|
45634
|
-
|
|
45685
|
+
ZB as EditorAutocomplete,
|
|
45686
|
+
QB as EditorSelectNumber,
|
|
45687
|
+
wB as EditorSelectString,
|
|
45688
|
+
e2 as FORMATTER_NUMBER,
|
|
45635
45689
|
$N as Filter,
|
|
45636
45690
|
rh as HotKeysDecorator,
|
|
45637
45691
|
ql as IGNORE,
|
|
45638
|
-
|
|
45639
|
-
|
|
45640
|
-
|
|
45641
|
-
|
|
45642
|
-
|
|
45643
|
-
|
|
45644
|
-
|
|
45645
|
-
|
|
45692
|
+
LB as PreventCopying,
|
|
45693
|
+
$B as RedoUndoOnly,
|
|
45694
|
+
IB as Skeleton,
|
|
45695
|
+
KB as SlickTable,
|
|
45696
|
+
YB as SlickgridTable,
|
|
45697
|
+
i2 as TotalCalculator,
|
|
45698
|
+
VB as WINK,
|
|
45699
|
+
WB as WithSummary,
|
|
45646
45700
|
AD as WithoutHotKeys,
|
|
45647
|
-
|
|
45648
|
-
|
|
45701
|
+
UB as columnCheckboxSelector,
|
|
45702
|
+
qB as columnIsEdited,
|
|
45649
45703
|
Db as commitCurrentEdit,
|
|
45650
|
-
|
|
45704
|
+
rB as copySelectedRows,
|
|
45651
45705
|
sn as eventContextMenu,
|
|
45652
45706
|
Eh as formatNumber,
|
|
45653
|
-
|
|
45654
|
-
|
|
45707
|
+
JB as formatterCheckMark,
|
|
45708
|
+
t2 as formatterGroupTotals,
|
|
45655
45709
|
Gh as getDisplayedRows,
|
|
45656
|
-
|
|
45710
|
+
SB as getFormatterNumber,
|
|
45657
45711
|
Uh as getNextId,
|
|
45658
|
-
|
|
45712
|
+
s2 as getOnHeaderMenuCommand,
|
|
45659
45713
|
HN as handleHeaderButtons,
|
|
45660
45714
|
cr as headerButtons,
|
|
45661
|
-
|
|
45662
|
-
|
|
45715
|
+
n2 as highlightCell,
|
|
45716
|
+
o2 as highlightColumns,
|
|
45663
45717
|
Ob as hotKeysCopy,
|
|
45664
|
-
|
|
45718
|
+
tB as hotKeysDelete,
|
|
45665
45719
|
Mb as hotKeysRedo,
|
|
45666
45720
|
Ib as hotKeysUndo,
|
|
45667
|
-
|
|
45668
|
-
|
|
45669
|
-
|
|
45721
|
+
zB as openColumnFilter,
|
|
45722
|
+
r2 as printerCheckMark,
|
|
45723
|
+
XB as useListenIfTablesWereEdited
|
|
45670
45724
|
};
|