@jspreadsheet/pivot 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +108 -109
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26,18 +26,19 @@ if (! jSuites) {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
(function(a,B){const
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
value:b(
|
|
35
|
-
|
|
29
|
+
function a0_0x2e92(){const a='calendar;onevent;reverse;Show as;value;updateSortableField;symbol;isArray;coords;cardThatFollowsTheMouse;updateModal;Pivot table settings;removeFilter;values;showOptions;getSortingOptions;call;Existing worksheet;div;equal to;3XzNiIo;MAX;removeThisItem;create;target;526988EGCvwg;visibility;on or before;removeColumn;toFixed;collapsed;The source must be a range;bigger than or equal to;children;different to;cascade;exists symbol;notification;before;date;default;Filter by value;object;tokenIdentifier;defineProperty;Method;getColumnName;pivot-table-position-marker-card;move;closed;start;helpers;yCoordOfTheCenter;createAnchorPicker;getWorksheetInstanceByName;rows;showAs;deletedColumns;license;dateToNum;total-%;Value;License required;row-%;pivot-table-config-list;Total ;getBoundingClientRect;Ascending;moveItem;push;filterByValue;setOptions;mousemove;AVERAGE;createPicker;remove;updateFilter;exists;cancel;updateRows;The source must be a range, not a single cell;COUNT;has;none;getCell;Order by;get;begins with;onclick;some;validation;pivot-table-movement-card;conditionDropdownOptions;endDate;on or after;sourceWorksheet;STDEV;data-control;is-last-row;ignoreEvents;documentElement;top;height;Values;columns;card;appendChild;Criteria;message;filters;entries;ignore;STDEVP;dictionary;difference;new;Source;parentElement;updateColumn;between;Cell where the table should be inserted; of;name;forEach;updateColumns;mousedown;fields;[data-control];cut;openCreateModal;is a valid url;map;Cell is not empty;all;jss_pivot_table;innerHTML;status;parent;open;source;clipboard;lastIndexOf;getCoordsFromCellName;querySelectorAll;text;sourceAnchor;updateRow;refresh;jtoolbar-disabled;openEditModal;tools;sort;valid;onload;destinationAnchor;columnIndex;Number;exports;marginTop;anchor;is-highlighted-row;isLoaded;getRange;2457889muQrQf;pivotTableId;locationOption;classList;undefined;valid url;last column;endTime;pivotTable;length;getHighlighted;instance;isSelected;VAR.S;criteria;getCellNameFromCoords;pivot-table-card-background;close;Column ;set;slice;1899-12-31 ;grab;addEventListener;material-icons;268452vxhRfQ;sourcePicker;setComponents;isCollapsed;findIndex;method;setChain;createSourcePicker;concat;includes;less than;oldValue;blur;Date;boolean;data-visible;userSelect;oldSource;is-header;not between; must contain no content other than the table itself.;edit;createElement;options;less than or equal to;VAR;Create pivot table;allowEmptyCriteria;removeField;createColumnPicker;contains;Something went wrong;highlighted;existing;left;removeRow;createWorksheet;is not between;Descending;formula;selection;modal;number;Invalid sorting option;getCellObject;is-highlighted-column;MEDIAN;removeCell;<i class="material-icons">pivot_table_chart</i>;toolbar;destinationWorksheet;The pivot tables extension is not included on the scope of this license;Total;oninit;undoChanges;editButtons;insertBefore;loadModalLists;ascendingOrder;row;% of the total;clientY;Time;innerText;getDataFromRange;Columns;3232eeKEjD;Grand Total;filter;setProperty;end;title; of ;121330AnLprf;validationElement;cursor;12384tDFlXD;onchange;element;base;createFilterPicker;updateCells;fill;replaceWith;<div>\n <div><Create :ref="self.create" /></div>\n <div><Edit :ref="self.edit" /></div>\n </div>;append;% of the row total;style;setValue;pivotTables;guid;insert;MIN;unshift;parse;error;Cell is empty;% of the column total;scope;type;Default;filter1;#SPILL;setAttribute;removeEventListener;column;splice;picker;applyValidation;Type;startDate;visible;getCoordsFromRange;size;trunc;delete;criterias;insertedColumns;updateFilters;find;key;pivot;newValue;range;controls;plugins;onDragStart;width;function;max;positionMarkerCard;SUM;valid date;2250995IVcvwa;add;updateField;getRangeFromCoords;sortBy;from;possibleValues;ends with;cells;not contains;time;moveFilter;highlightedRows;Cancel;indexOf;bigger than;createCellPicker;columnName;current;update;history;display;pivot-table-group-cell;Text;startTime;VARP;559920RmGKam;Delete;worksheet;pivot_table_chart;textLength;styleInfo'.split(";");
|
|
30
|
+
a0_0x2e92=function(){return a};return a0_0x2e92()}function a0_0x2294(a,B){const x=a0_0x2e92();return a0_0x2294=function(G,J){return x[G-202]},a0_0x2294(a,B)}(function(a,B){const x=a0_0x2294;for(a=a();;)try{if(-parseInt(x(323))+parseInt(x(396))/2*(parseInt(x(508))/3)+parseInt(x(513))/4+parseInt(x(456))/5+parseInt(x(482))/6+parseInt(x(298))/7+-parseInt(x(389))/8*(parseInt(x(399))/9)===B)break;else a.push(a.shift())}catch(G){a.push(a.shift())}})(a0_0x2e92,262702);
|
|
31
|
+
(function(a,B){const x=a0_0x2294;"object"===typeof exports&&typeof module!==x(302)?module[x(292)]=B():typeof define===x(451)&&define.amd?define(B):a[x(444)]=B()})(this,function(){const a=a0_0x2294;let B=null;const x=function(b){const c=a0_0x2294;return"undefined"!==typeof document&&document[c(248)]?document[c(248)][b]||b:b},G=function(b){return JSON[a0_0x2294(417)](JSON.stringify(b))},J=b=>{const c=a0_0x2294,d=b[c(276)]("!");return[b[c(318)](0,d),b.slice(d+1)]};class K extends Error{}const na=b=>
|
|
32
|
+
{const c=a0_0x2294;try{if(!B[c(539)].tokenIdentifier(b))throw new K(c(519));let d=b[c(276)]("!");0>d&&(d=void 0);if(0>b[c(470)](":",d))throw new K("The source must be a range, not a single cell");const f=B.helpers[c(435)](b);if(f[0]===f[2]&&f[1]===f[3])throw new K(c(215));}catch(d){if(d instanceof K)throw d;throw new K(c(354));}},ya=function(){const b=a0_0x2294;let c=this;c.createSourcePicker=function(f){B.picker(f,{worksheetName:!0,onchange:function(e){c[a0_0x2294(274)]=e}})};c[b(541)]=function(f){B[b(430)](f,
|
|
33
|
+
{worksheetName:!0,onchange:function(e){c[b(294)]=e}})};c[b(273)]=function(){c[b(300)]=b(250);c[b(294)]="";c[b(324)][b(386)]=c[b(274)];c[b(364)][b(273)]()};c[b(213)]=function(){c[b(364)][b(315)]()};c[b(414)]=function(){var f=c[b(274)];try{na(f)}catch(h){jSuites[b(525)]({error:1,message:x(h.message)});return}f={id:jSuites[b(413)](),source:f};if(c[b(300)]===b(356)){var e=c[b(294)];try{const h=a0_0x2294;try{if(!B.helpers[h(531)](e))throw new K("The anchor must be a reference to a cell");var g=e[h(276)]("!");
|
|
34
|
+
0>g&&(g=void 0);if(-1<e[h(470)](":",g))throw new K("The anchor must be a single cell, not a range");}catch(n){if(n instanceof K)throw n;throw new K("Something went wrong");}}catch(h){jSuites[b(525)]({error:1,message:x(h[b(243)])});return}g=J(e);e=c[b(309)].getWorksheetInstanceByName(g[0]);f[b(294)]=g[1];H[b(504)](e,f)}else f[b(294)]="A1",c[b(309)][b(359)]({minDimensions:[20,20],pivotTables:[f]});c[b(364)].close()};const d=[{text:x("New worksheet"),value:b(250)},{text:x(b(505)),value:b(356)}];return f=>
|
|
35
|
+
f`
|
|
36
|
+
<lm-modal icon="pivot_table_chart" title="${x(b(349))}" :ref="self.modal" :closable="true" :draggable="true" :width="420" :height="370" :closed="true" :onclose="self.cancel">
|
|
36
37
|
<div class="jss_object jss_style_p20">
|
|
37
38
|
<div class='jss_style_row jss_style_p2'>
|
|
38
39
|
<div class='jss_style_column jss_style_f1'>
|
|
39
40
|
<div class="jss_style_form_group">
|
|
40
|
-
<label>${x(
|
|
41
|
+
<label>${x("Table data")}</label>
|
|
41
42
|
<div :ready="self.createSourcePicker" :ref="self.sourcePicker"></div>
|
|
42
43
|
</div>
|
|
43
44
|
</div>
|
|
@@ -50,10 +51,10 @@ value:b(489)}];return f=>f`
|
|
|
50
51
|
</div>
|
|
51
52
|
</div>
|
|
52
53
|
</div>
|
|
53
|
-
<div class='jss_style_row jss_style_p2 lm-row' lm-render="${this.locationOption===b(
|
|
54
|
+
<div class='jss_style_row jss_style_p2 lm-row' lm-render="${this.locationOption===b(356)}">
|
|
54
55
|
<div class='jss_style_column jss_style_f1'>
|
|
55
56
|
<div class="jss_style_form_group">
|
|
56
|
-
<label>${x(b(
|
|
57
|
+
<label>${x(b(255))}</label>
|
|
57
58
|
<div :ready="self.createAnchorPicker" data-single="true"></div>
|
|
58
59
|
</div>
|
|
59
60
|
</div>
|
|
@@ -61,97 +62,97 @@ value:b(489)}];return f=>f`
|
|
|
61
62
|
<div class='jss_style_row jss_style_p2'>
|
|
62
63
|
<div class='jss_style_column jss_style_f1'>
|
|
63
64
|
<div class="jss_style_form_group">
|
|
64
|
-
<button type="button" class="jss_style_button" onclick="self.insert">${x(
|
|
65
|
-
<button type="button" class="jss_style_button" onclick="self.cancel">${x(b(
|
|
65
|
+
<button type="button" class="jss_style_button" onclick="self.insert">${x("Create")}</button>
|
|
66
|
+
<button type="button" class="jss_style_button" onclick="self.cancel">${x(b(469))}</button>
|
|
66
67
|
</div>
|
|
67
68
|
</div>
|
|
68
69
|
</div>
|
|
69
70
|
</div>
|
|
70
71
|
</lm-modal>
|
|
71
|
-
`},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for(g=0;g<e;g++)for(r=g+
|
|
75
|
-
c
|
|
76
|
-
B[a(
|
|
77
|
-
this)}})},
|
|
78
|
-
e[a(
|
|
79
|
-
var
|
|
80
|
-
c);document[a(
|
|
81
|
-
f[a(
|
|
82
|
-
{text:x(
|
|
83
|
-
|
|
84
|
-
value:"="},{text:x(a
|
|
85
|
-
{text:x(a(
|
|
86
|
-
c)},c=>c`
|
|
72
|
+
`},za=[{text:x(a(202)),value:!0},{text:x(a(361)),value:!1}],oa=(b,c,d)=>{b[a(410)].left=c.left+"px";b.style[a(236)]=Math[a(437)](d[a(384)]-c[a(540)])+"px"},pa=(b,c,d)=>{B[a(476)][a(246)]=!0;d[a(272)][a(234)]=!0;d[a(392)](c);d[a(411)](b,null,!0);d.parent[a(234)]=!1;B[a(476)][a(246)]=!1},N=b=>{const c=new Set([a(269),"is-header",a(368),a(295),a(233)]);return b&&b[a(258)](d=>{c["delete"](d)}),{base:b,difference:[...c]}},aa=([b,c],d,f)=>{d=B[a(539)][a(277)](d[a(294)]);const [e,g]=d;d=N()[a(249)];
|
|
73
|
+
for(let h=0;h<c;h++){const n=h+g;for(let l=0;l<b;l++){const k=l+e;f[a(367)](k,n);f[a(219)](k,n)[a(301)][a(210)](...d)}}},Aa=(b,[c,d],[f,e],g,h)=>{g=B[a(539)].getCoordsFromCellName(g[a(294)]);const [n,l]=g,{headerHeight:k,hasHighlightedColumn:w,highlightedRows:p=new Set}=b;b=N(["jss_pivot_table",a(341)]);for(g=0;g<k;g++){var r=g+l;for(var m=0;m<f;m++){var q=m+n;h[a(367)](q,r);q=h[a(219)](q,r)[a(301)];q[a(210)](...b.difference);q.add(...b[a(402)])}}b=N([a(269),"is-highlighted-row"]);if(w)for(g=N([a(269),
|
|
74
|
+
a(368)]),r=k;r<e-1;r++)m=r+l,h[a(367)](n,m),m=h[a(219)](n,m).classList,q=p[a(217)](r)?b:g,m[a(210)](...q[a(249)]),m[a(457)](...q[a(402)]);g=w?1:0;r=N(["jss_pivot_table"]);for(m=k;m<e-1;m++){q=m+l;const v=p[a(217)](m)?b:r;for(let u=g;u<f;u++){var t=u+n;h[a(367)](t,q);t=h[a(219)](t,q);t.classList[a(210)](...v[a(249)]);t[a(301)][a(457)](...v.base)}}b=e-1+l;g=N([a(269),a(233)]);for(r=0;r<f;r++)m=r+n,h.getCellObject(m,b),m=h[a(219)](m,b),m.classList.remove(...g[a(249)]),m[a(301)][a(457)](...g[a(402)]);
|
|
75
|
+
b=N()[a(249)];for(g=0;g<e;g++)for(r=g+l,m=f;m<c;m++)q=m+n,h[a(367)](q,r),h[a(219)](q,r)[a(301)].remove(...b);for(f=e;f<d;f++)for(e=f+l,g=0;g<c;g++)r=g+n,h[a(367)](r,e),h[a(219)](r,e).classList.remove(...b)},W=function(b){var c=G(b);delete c[a(436)];!this[a(346)][a(412)]&&(this[a(346)][a(412)]=[]);const d=this.options[a(412)],f=V(c.id,d);b={newValue:G(c)};if(0>f)d[a(204)](c);else{const e=G(d[f]);c[a(436)]=e[a(436)];delete e[a(436)];b[a(334)]=e;d[f]=c}L(c,this);c=this[a(272)][a(448)][a(444)];return!c.edit[a(364)][a(537)]&&
|
|
76
|
+
c[a(344)].updateModal(),b},ba=function(b,c){const {anchor:d,size:f}=b;var e=B.helpers[a(277)](d);const [g,h]=e;e=[];const n=[],[l,k]=f,{records:w}=c;for(let r=0;r<k;r++){const m=h+r,q=w[m];for(let t=0;t<l;t++){var p=g+t;e.push({x:p,y:m,value:null});n.push({x:p,y:m,value:null});(p=q[p])&&delete p[a(444)]}}pa(e,n,c);aa(f,b,c)},ca=function(b){var c=this[a(346)][a(412)];b=V(b,c);c=c[a(429)](b,1)[0];b=G(c);return ba(c,this),b},qa=(b,c)=>{b=B[a(539)][a(277)](b[a(294)]);c.updateSelectionFromCoords(...b)},
|
|
77
|
+
da=(b,c)=>{const d=B[a(539)][a(277)](b[a(294)]);d[a(204)](d[0]+b[a(436)][0]-1,d[1]+b[a(436)][1]-1);c.updateSelectionFromCoords(...d)},V=(b,c)=>{if(!c)return-1;const d=c[a(307)];for(let f=0;f<d;f++)if(c[f].id===b)return f;return-1},ea=(b,c)=>{c=c[a(346)].pivotTables;b=V(b,c);return-1<b?c[b]:null},H=function(b){const c=W[a(504)](this,b);B.history[a(504)](this[a(272)],{worksheet:this,undo:()=>{c[a(334)]?W[a(504)](this,c[a(334)]):ca[a(504)](this,c.id);qa(c.newValue,this)},redo:()=>{W.call(this,c[a(445)]);
|
|
78
|
+
qa(c[a(445)],this)}})},Ba=function(b){const c=ca[a(504)](this,b);B[a(476)][a(504)](this.parent,{worksheet:this,undo:()=>{W[a(504)](this,c);da(c,this)},redo:()=>{ca[a(504)](this,c.id);da(c,this)}})},fa=function(b,c,d,f){{const h=b[a(346)][a(412)],n=V(d,h);if(0>n)b=void 0;else{var e=G(h[n]),g=e[a(294)];b===c&&g===f?b=void 0:(ba(e,b),h[a(429)](n,1),e[a(294)]=f,e.size=[0,0],!c[a(346)][a(412)]&&(c.options[a(412)]=[]),c[a(346)][a(412)][a(204)](e),L(e,c),e=b[a(272)][a(448)].pivot,b=(e&&e[a(344)]&&!e[a(344)][a(364)][a(537)]&&
|
|
79
|
+
e[a(344)][a(498)](),{sourceWorksheet:b,destinationWorksheet:c,sourceAnchor:g,destinationAnchor:f,pivotTableId:d}))}}(d=ea(d,c))&&da(d,c);return b},Ca=function(b,c,d,f){const e=fa(b,c,d,f);B[a(476)].call(b.parent,{worksheet:b,undo:()=>{fa(e[a(373)],e[a(230)],e[a(299)],e[a(280)])},redo:()=>{fa(e[a(230)],e[a(373)],e.pivotTableId,e[a(289)])}})},ha=b=>{b[a(449)]=function(f){var e=f[a(512)];if(e===b[a(240)]){document.documentElement[a(410)][a(339)]=a(218);document[a(235)][a(410)][a(398)]=a(320);var g=b[a(473)];
|
|
80
|
+
var h=document[a(345)](a(506));g=(h[a(301)][a(457)](a(314),a(535)),h[a(270)]="<div><h3>"+g+"</h3></div>",h);b[a(453)]=g;e[a(252)][a(406)](g);e=b[a(473)];h=document[a(345)](a(506));e=(h[a(301)][a(457)](a(226)),h.innerHTML="<h3>"+e+"</h3>",h);h=g.getBoundingClientRect();const n=getComputedStyle(g);g=g[a(521)][0];g=getComputedStyle(g);e[a(410)][a(450)]=g.width;b[a(497)]=e;document.body[a(241)](e);g={yCoordOfTheCenter:parseInt(n[a(293)])+h[a(237)]/2,left:h[a(357)]};b.coords=g;oa(e,g,f);document[a(321)]("mousemove",
|
|
81
|
+
c);document[a(321)]("mouseup",d,{once:!0})}};const c=function(f){let e=f[a(512)];for(oa(b[a(497)],b[a(496)],f);e!==document[a(235)]&&!e[a(301)][a(353)]("pivot-table-card-background")&&!e.classList[a(353)](a(552));)e=e[a(252)];if(e.classList[a(353)]("pivot-table-config-list"))e[a(241)](b[a(453)]);else if(e[a(301)][a(353)]("pivot-table-card-background")&&!e[a(301)][a(353)]("pivot-table-position-marker-card")){f=f[a(384)];var g=e[a(554)]();g=g.y+g[a(237)]/2;if(f<g)e[a(252)][a(379)](b[a(453)],e);else(f=
|
|
82
|
+
e.nextElementSibling)?f[a(252)][a(379)](b.positionMarkerCard,f):e[a(252)][a(241)](b[a(453)])}},d=function(){document[a(427)](a(207),c);document[a(235)][a(410)][a(339)]="";document[a(235)].style[a(398)]="";b[a(497)].remove();var f=b[a(453)][a(252)];const e=f.id[a(318)](12,-5);f=Array[a(461)](f[a(521)])[a(470)](b[a(453)]);b[a(536)](b.id||b[a(290)],e,f)}},Da=[{text:x("SUM"),value:a(454)},{text:x("COUNTA"),value:"COUNTA"},{text:x(a(216)),value:"COUNT"},{text:x("COUNTUNIQUE"),value:"COUNTUNIQUE"},{text:x(a(208)),
|
|
83
|
+
value:a(208)},{text:x("MAX"),value:a(509)},{text:x(a(415)),value:a(415)},{text:x("MEDIAN"),value:a(369)},{text:x("PRODUCT"),value:"PRODUCT"},{text:x("STDEV"),value:a(231)},{text:x(a(247)),value:"STDEVP"},{text:x(a(348)),value:a(311)},{text:x(a(481)),value:"VAR.P"}],ra=[{text:x(a(423)),value:a(528)},{text:x(a(409)),value:a(551)},{text:x(a(420)),value:"column-%"},{text:x(a(383)),value:a(548)}],Ea=[{value:a(365),text:x(a(291))},{value:"text",text:x(a(479))},{value:a(527),text:x(a(336))},{value:a(466),
|
|
84
|
+
text:x(a(385))},{value:a(486),text:x("Text length")},{value:"empty",text:x(a(419))},{value:"notEmpty",text:x(a(267))}],Fa={number:[{text:x(a(254)),value:"between"},{text:x(a(360)),value:a(342)},{text:x(a(333)),value:"<"},{text:x("less than or equal to"),value:"<="},{text:x("bigger than"),value:">"},{text:x(a(520)),value:">="},{text:x(a(507)),value:"="},{text:x(a(522)),value:"!="}],text:[{text:x("contains"),value:"contains"},{text:x("not contains"),value:a(465)},{text:x(a(222)),value:"begins with"},
|
|
85
|
+
{text:x(a(463)),value:a(463)},{text:x("equal to"),value:"="},{text:x("is a valid email"),value:"valid email"},{text:x(a(265)),value:a(303)}],date:[{text:x("is a valid date"),value:a(455)},{text:x(a(507)),value:"="},{text:x(a(526)),value:"<"},{text:x(a(515)),value:"<="},{text:x("after"),value:">"},{text:x(a(229)),value:">="},{text:x(a(254)),value:a(254)},{text:x(a(342)),value:a(342)}],time:[{text:x("between"),value:"between"},{text:x(a(360)),value:a(342)},{text:x("less than"),value:"<"},{text:x(a(347)),
|
|
86
|
+
value:"<="},{text:x(a(471)),value:">"},{text:x(a(520)),value:">="},{text:x(a(507)),value:"="},{text:x(a(522)),value:"!="}],textLength:[{text:x(a(254)),value:"between"},{text:x("is not between"),value:"not between"},{text:x("less than"),value:"<"},{text:x("less than or equal to"),value:"<="},{text:x(a(471)),value:">"},{text:x("bigger than or equal to"),value:">="},{text:x(a(507)),value:"="},{text:x(a(522)),value:"!="}]};lemonade[a(325)]({FieldCard:function(){const b=this;return ha(b),b[a(400)]=function(c){if(c===
|
|
87
|
+
a(460)||"ascendingOrder"===c)c={[c]:b[c]},b.update(b[a(290)],c)},c=>c`
|
|
87
88
|
<div class="pivot-table-card-background">
|
|
88
89
|
<div :ref="self.card" class="pivot-table-card" onmousedown="self.onDragStart">
|
|
89
90
|
<h3>{{self.columnName}}</h3>
|
|
90
91
|
<div class="lm-row">
|
|
91
92
|
<div class="lm-column lm-f1">
|
|
92
|
-
<label>${x(
|
|
93
|
+
<label>${x(a(220))}</label>
|
|
93
94
|
<Dropdown :data="self.sortingOptions" :bind="self.sortBy" :allowEmpty="false" width="230" />
|
|
94
95
|
</div>
|
|
95
96
|
<div class="lm-column lm-f1">
|
|
96
|
-
<label>${x(
|
|
97
|
-
<Dropdown :data="${
|
|
97
|
+
<label>${x("Order")}</label>
|
|
98
|
+
<Dropdown :data="${za}" :bind="self.ascendingOrder" :allowEmpty="false" width="230" />
|
|
98
99
|
</div>
|
|
99
100
|
</div>
|
|
100
101
|
<i class="material-icons pivot-table-card-close-button" onclick="self.remove(self.columnIndex)">close</div>
|
|
101
102
|
</div>
|
|
102
103
|
</div>
|
|
103
|
-
`},ValueCard:function(){const b=this;return
|
|
104
|
+
`},ValueCard:function(){const b=this;return ha(b),b[a(296)]=!1,b[a(288)]=function(){!b[a(544)]&&(b[a(544)]=ra[0][a(492)]);b.isLoaded=!0},b.onchange=function(c){"method"!==c&&c!==a(544)||!b.isLoaded||(c={[c]:b[c]},b[a(475)](b.id,c))},b[a(510)]=function(){b.remove(b.id)},c=>c`
|
|
104
105
|
<div class="pivot-table-card-background">
|
|
105
106
|
<div :ref="self.card" class="pivot-table-card" onmousedown="self.onDragStart">
|
|
106
107
|
<h3>{{self.columnName}}</h3>
|
|
107
108
|
<div class="lm-row">
|
|
108
109
|
<div class="lm-column lm-f1">
|
|
109
|
-
<label>${x(a(
|
|
110
|
-
<Dropdown :data="${
|
|
110
|
+
<label>${x(a(533))}</label>
|
|
111
|
+
<Dropdown :data="${Da}" :bind="self.method" :allowEmpty="false" width="230" />
|
|
111
112
|
</div>
|
|
112
113
|
<div class="lm-column lm-f1">
|
|
113
|
-
<label>${x(a(
|
|
114
|
-
<Dropdown :data="${
|
|
114
|
+
<label>${x(a(491))}</label>
|
|
115
|
+
<Dropdown :data="${ra}" :bind="self.showAs" :allowEmpty="false" width="230" />
|
|
115
116
|
</div>
|
|
116
117
|
</div>
|
|
117
118
|
<i class="material-icons pivot-table-card-close-button" onclick="self.removeThisItem">close</div>
|
|
118
119
|
</div>
|
|
119
120
|
</div>
|
|
120
|
-
`},FilterCard:function(b,{track:c}){const d=this;c(a(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
`},FilterCard:function(b,{track:c}){const d=this;c(a(424));ha(d);d.possibleValues=[];d[a(227)]=[{value:"empty",text:x(a(419))},{value:"notEmpty",text:x(a(267))}];const f=function(){var l=J(d[a(274)]),k=B[a(539)][a(435)](l[1]);k[0]+=d.columnIndex;k[2]=k[0];k[1]++;k=J(B[a(539)][a(459)](k))[1];l=d.worksheet[a(387)](l[0]+"!"+k);k=l.length;const w=new Set;for(let p=1;p<k;p++)w.add(l[p][0]);return[...w][a(286)]()};d.visible=function(){d.el[a(278)](a(262))[a(258)](function(l){let k=l.getAttribute(a(232)),
|
|
122
|
+
w;k===a(393)?w=d[a(312)]?.[a(332)](a(254)):k===a(287)&&(w=!d[a(312)]?.[a(332)](a(287)));l[a(426)](a(338),w)});d.criteriaInput[a(410)][a(514)]=d[a(439)]?"":"hidden"};d[a(502)]=function(){d[a(538)]="";d[a(393)]="";d[a(439)]=Fa[d.type]||null;let l=d[a(397)].children;for(let k=0;k<l[a(307)];k++)l[k][a(301)].contains(a(268))||l[k][a(301)][a(353)](d[a(422)])?l[k][a(410)].display="":l[k][a(410)][a(477)]=a(218);d[a(350)]=!d[a(439)];d.criteria=d[a(439)]?d[a(439)][0][a(492)]:"";d.visible()};d[a(377)]=function(){const l=
|
|
123
|
+
f();d[a(462)]=l[a(266)](k=>({value:k,text:k}));d[a(424)]?d[a(205)]=d[a(424)]:d[a(205)]=l;d[a(422)]=d[a(225)].type;d.criteria=d[a(225)][a(312)];d.validation[a(492)]&&("date"===d.type?(d[a(433)]=d[a(225)][a(492)][0],d[a(228)]=d.validation[a(492)][1]):d[a(422)]===a(466)?(d[a(480)]=d[a(225)][a(492)][0],d[a(305)]=d[a(225)][a(492)][1]):(d.start=d.validation.value[0],d[a(393)]=d.validation[a(492)][1]))};d.onload=function(){d.undoChanges()};const e=()=>{if(!d[a(205)])return[];const l=f();return d.filterByValue.length===
|
|
124
|
+
l.length?d.filterByValue.every(k=>l[a(332)](k))?void 0:[...d.filterByValue]:[...d[a(205)]]},g=()=>{const l=e();if(!d.type)return{validation:void 0,filter:l};const k={type:d[a(422)],criteria:d.criteria};d[a(422)]===a(527)?k.criteria?.[a(332)](a(254))?k.value=[d[a(433)],d[a(228)]]:k[a(492)]=[d[a(433)]]:d[a(422)]===a(466)?k.criteria&&k[a(312)][a(332)](a(254))?k.value=[jSuites[a(488)][a(547)](a(319)+d[a(480)]),jSuites[a(488)][a(547)](a(319)+d[a(305)])]:k[a(492)]=[jSuites[a(488)][a(547)](a(319)+d.startTime)]:
|
|
125
|
+
k[a(312)]?.[a(332)](a(254))?k[a(492)]=[d[a(538)],d.end]:k.value=[d[a(538)]];return{validation:k,filter:l}};d[a(431)]=function(){d.update(d[a(290)],g())};const h=[a(205),a(422),"criteria",a(433),a(228),a(480),a(305),a(538),a(393)],n=()=>{const {filter:l,validation:k}=g();if(Array.isArray(l)&&Array[a(495)](d[a(424)])){if(l[a(224)]((w,p)=>p>=d[a(424)][a(307)]||w!==d[a(424)][p]))return!1}else if(l||d[a(424)])return!1;if(!k)return!d.validation;if(!d[a(225)]||k[a(422)]!==d[a(225)][a(422)]||k[a(312)]!==
|
|
126
|
+
d[a(225)][a(312)])return!1;if(k[a(492)]&&d[a(225)][a(492)]){if(k.value[0]!=d.validation[a(492)][0]||k[a(492)][1]!=d.validation[a(492)][1])return!1}else if(k.value||d[a(225)][a(492)])return!1;return!0};return d.onchange=function(l){"type"===l?d.showOptions():l===a(312)&&d[a(434)]();h[a(332)](l)&&(l=!n(),d[a(378)][a(410)][a(477)]=l?"":a(218))},l=>l`
|
|
126
127
|
<div class="pivot-table-card-background">
|
|
127
128
|
<div :ref="self.card" class="pivot-table-card" onmousedown="self.onDragStart">
|
|
128
129
|
<h3>{{self.columnName}}</h3>
|
|
129
130
|
|
|
130
|
-
<h4>${x(a(
|
|
131
|
+
<h4>${x(a(529))}</h4>
|
|
131
132
|
|
|
132
133
|
<div class="lm-row">
|
|
133
134
|
<div class="lm-column lm-f1">
|
|
134
135
|
<label>${x("Values")}</label>
|
|
135
|
-
<Dropdown :data="self.possibleValues" :bind="self.filterByValue" :multiple="true" />
|
|
136
|
+
<Dropdown :data="self.possibleValues" :bind="self.filterByValue" :multiple="true" :width="512" />
|
|
136
137
|
</div>
|
|
137
138
|
</div>
|
|
138
139
|
|
|
139
140
|
<br>
|
|
140
141
|
|
|
141
|
-
<h4>${x(
|
|
142
|
+
<h4>${x("Filter by condition")}</h4>
|
|
142
143
|
|
|
143
144
|
<div :ref="self.validationElement">
|
|
144
145
|
<div class="all">
|
|
145
146
|
<div class="lm-row">
|
|
146
147
|
<div class="lm-column lm-f1">
|
|
147
148
|
<div class="lm-form-group">
|
|
148
|
-
<label class="label">${x(
|
|
149
|
-
<Dropdown :data="${
|
|
149
|
+
<label class="label">${x(a(432))}</label>
|
|
150
|
+
<Dropdown :data="${Ea}" :bind="self.type" />
|
|
150
151
|
</div>
|
|
151
152
|
</div>
|
|
152
153
|
<div class="lm-column lm-f1">
|
|
153
154
|
<div class="lm-form-group" :ref="self.criteriaInput">
|
|
154
|
-
<label class="label">${x(a(
|
|
155
|
+
<label class="label">${x(a(242))}</label>
|
|
155
156
|
<Dropdown :data="self.criterias" :bind="self.criteria" :allowEmpty="self.allowEmptyCriteria" />
|
|
156
157
|
</div>
|
|
157
158
|
</div>
|
|
@@ -163,7 +164,7 @@ if(!l)return!d[a(508)];if(!d[a(508)]||l[a(465)]!==d[a(508)].type||l[a(477)]!==d[
|
|
|
163
164
|
<div class="lm-row jss_style_middle">
|
|
164
165
|
<div class="lm-column lm-f1" data-control="valid">
|
|
165
166
|
<div class="lm-form-group">
|
|
166
|
-
<label class="label">${x(a(
|
|
167
|
+
<label class="label">${x(a(549))}</label>
|
|
167
168
|
<input type="text" :bind="self.start" class="lm-input" />
|
|
168
169
|
</div>
|
|
169
170
|
</div>
|
|
@@ -181,7 +182,7 @@ if(!l)return!d[a(508)];if(!d[a(508)]||l[a(465)]!==d[a(508)].type||l[a(477)]!==d[
|
|
|
181
182
|
<div class="lm-row">
|
|
182
183
|
<div class="lm-column lm-f1">
|
|
183
184
|
<div class="lm-form-group">
|
|
184
|
-
<label class="label">${x(a(
|
|
185
|
+
<label class="label">${x(a(549))}</label>
|
|
185
186
|
<input type="text" :bind="self.start" class="lm-input" />
|
|
186
187
|
</div>
|
|
187
188
|
</div>
|
|
@@ -209,7 +210,7 @@ if(!l)return!d[a(508)];if(!d[a(508)]||l[a(465)]!==d[a(508)].type||l[a(477)]!==d[
|
|
|
209
210
|
<div class="lm-row jss_style_middle">
|
|
210
211
|
<div class="lm-column lm-f1" data-control="valid">
|
|
211
212
|
<div class="lm-form-group">
|
|
212
|
-
<label class="label">${x(a(
|
|
213
|
+
<label class="label">${x(a(549))}</label>
|
|
213
214
|
<input type="text" :bind="self.startTime" data-mask='hh:mm:ss' class="lm-input" />
|
|
214
215
|
</div>
|
|
215
216
|
</div>
|
|
@@ -231,48 +232,48 @@ if(!l)return!d[a(508)];if(!d[a(508)]||l[a(465)]!==d[a(508)].type||l[a(477)]!==d[
|
|
|
231
232
|
<i class="material-icons pivot-table-card-close-button" onclick="self.remove(self.columnIndex)">close</div>
|
|
232
233
|
</div>
|
|
233
234
|
</div>
|
|
234
|
-
`}});const
|
|
235
|
-
u)=>{
|
|
236
|
-
y&&(!u
|
|
237
|
-
u
|
|
238
|
-
e
|
|
239
|
-
d[a(
|
|
240
|
-
const g=e+"-"+b[a(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
n,m.get(E))));return{obj:m,fieldsPossibleValues:q}},
|
|
245
|
-
|
|
246
|
-
a(
|
|
247
|
-
|
|
248
|
-
return!d&&b[a(
|
|
249
|
-
z&&(y=z+" "),y+=a(
|
|
250
|
-
a(
|
|
251
|
-
|
|
252
|
-
function({data:b,groups:c},[d,f],e,g){var h=g[a(
|
|
253
|
-
a(
|
|
254
|
-
propertyRecords:r,size:[h,e]}},
|
|
255
|
-
|
|
256
|
-
b,b=
|
|
257
|
-
var {obj:
|
|
258
|
-
styleInfo:
|
|
259
|
-
[];b.
|
|
260
|
-
function(){b.
|
|
261
|
-
b[a(
|
|
262
|
-
|
|
263
|
-
jSuites[a(
|
|
264
|
-
{var
|
|
265
|
-
b[a(
|
|
266
|
-
b[a(
|
|
267
|
-
r.id===e),p=
|
|
268
|
-
function(f){
|
|
235
|
+
`}});const O=Symbol("last row"),X=Symbol(a(304)),E=Symbol("internal properties"),M=Symbol("total symbol"),ia=Symbol(a(524)),P=(b,c)=>{b=B[a(362)][b]([c]);return b instanceof Error?b[a(243)]:b},Ga=function(b,c,d){const f=b[a(543)]||[],e=b.columns||[],g=b.cells||[],h=function(m,q){if(typeof m===a(302))return{exists:!1,values:[]};if(m.get(X)||0===e.length&&(0===f[a(307)]||m[a(221)](O)))return m=m.get(E)[a(221)](q[a(290)]),{exists:!0,values:Array[a(495)](m)?m:[]};const t={exists:!1,values:[]};
|
|
236
|
+
return m[a(258)]((v,u)=>{typeof u!==a(494)&&(v=h(v,q),t[a(212)]=t.exists||v[a(212)],t[a(501)][a(204)](...v[a(501)]))}),t},n=function(m,q){const t=c[f[m][a(290)]],v=m===f[a(307)]-1;for(let z=0;z<t[a(307)];z++){var u=t[z];if(u=q[a(221)](u)){if(v)l(0,u);else{n(m+1,u);var y=new Map;u[a(317)](M,y);w(u,y)}if(0!==g[a(307)])for(y=0;y<g[a(307)];y++){const C=g[y];var {values:A}=h(u,C);0<A[a(307)]&&(A=P(C.method,A),!u[a(217)](E)&&u[a(317)](E,new Map),u.get(E)[a(317)](C[a(328)]+"-"+C[a(290)],A))}else({exists:y}=
|
|
237
|
+
h(u,{columnIndex:void 0})),y&&(!u.has(E)&&u.set(E,new Map),u[a(221)](E).set(ia,!0))}}},l=function(m,q){if(0!==e[a(307)]){var t=c[e[m].columnIndex],v=m===e[a(307)]-1;for(let C=0;C<t[a(307)];C++){var u=t[C];u=q?q[a(221)](u):void 0;if(v)for(var y=0;y<g[a(307)];y++){var A=g[y],z=u?u[a(221)](E).get(A[a(290)]):void 0;typeof z!==a(302)&&(z=P(A[a(328)],z),u[a(221)](E).set(A[a(328)]+"-"+A[a(290)],z))}else for(l(m+1,u),y=0;y<g[a(307)];y++)A=g[y],{values:z}=h(u,A),0<z[a(307)]&&(z=P(A[a(328)],z),!u[a(217)](E)&&
|
|
238
|
+
u.set(E,new Map),u.get(E).set(A[a(328)]+"-"+A[a(290)],z))}}},k=function(m,q,t){if("undefined"===typeof m)return{exists:!1,values:[]};if(0===f[a(307)]||m[a(221)](O)){for(let u=0;u<t.length;u++)if(m=m[a(221)](t[u]),typeof m===a(302))return{exists:!1,values:[]};return h(m,q)}const v={exists:!1,values:[]};return m.forEach((u,y)=>{typeof y!==a(494)&&(u=k(u,q,t),v[a(212)]=v[a(212)]||u[a(212)],v[a(501)][a(204)](...u[a(501)]))}),v},w=function(m,q,t=[]){if(0!==e.length){var v=t[a(307)],u=c[e[v][a(290)]];v=
|
|
239
|
+
v===e[a(307)]-1;for(let z=0;z<u[a(307)];z++){const C=u[z];var y=[...t,C];const D=new Map;q[a(317)](C,D);!v&&w(m,D,y);if(0!==g[a(307)]){const F=new Map;for(let I=0;I<g[a(307)];I++){const Y=g[I];var {values:A}=k(m,Y,y);0<A[a(307)]&&(A=P(Y.method,A),F[a(317)](Y.method+"-"+Y[a(290)],A))}0!==F[a(436)]&&D[a(317)](E,F)}else({exists:y}=k(m,{columnIndex:void 0},y)),y&&D[a(317)](ia,!0);if(0===D[a(436)])q[a(438)](C);else v&&D[a(317)](X,!0)}}};0!==f.length&&n(0,d);!d[a(217)](E)&&d.set(E,new Map);b=d[a(221)](E);
|
|
240
|
+
var p=new Map;d[a(317)](M,p);w(d,p);for(p=0;p<g[a(307)];p++){const m=g[p];var {values:r}=h(d,m);0<r.length&&(r=P(m.method,r),b[a(317)](m[a(328)]+"-"+m.columnIndex,r))}},Q=function(b,c,d){const f=b[a(328)]+"-"+b[a(290)],e=f+"-"+b[a(544)];c instanceof Map?c[a(258)]((g,h)=>{h===f?(g=(g/d*100).toFixed(2)+"%",c[a(317)](e,g)):"object"===typeof g&&Q(b,g,d)}):Object[a(245)](c)[a(258)](([g,h])=>{g===f?(g=(h/d*100)[a(517)](2)+"%",c[e]=g):typeof h===a(530)&&Q(b,h,d)})},sa=(b,c,d)=>{const f=c.get(O);var e=b[a(328)]+
|
|
241
|
+
"-"+b[a(290)];const g=e+"-"+b[a(544)];if(f||!1===d){d=c.get(E);const h=d[a(221)](e);d.set(g,"100.00%");c[a(258)]((n,l)=>{typeof l!==a(494)&&Q(b,n,h)})}else c[a(258)]((h,n)=>{typeof n!==a(494)&&sa(b,h)});if(d=c[a(221)](M))c=c.get(E),e=c[a(221)](e),c[a(317)](g,"100.00%"),Q(b,d,e)},ja=(b,c,d)=>{if(c[a(217)](E)){var f=b[a(328)]+"-"+b[a(290)];const g=f+"-"+b[a(544)];var e=c.get(E)[a(221)](f);f=d[a(221)](E)[a(221)](f);e=(e/f*100)[a(517)](2)+"%";c[a(221)](E).set(g,e)}c.forEach((g,h)=>{typeof h!==a(494)&&
|
|
242
|
+
ja(b,g,d[a(221)](h))})},ta=(b,c,d,f)=>{if(c[a(221)](O))c[a(258)]((n,l)=>{"symbol"!==typeof l&&ja(b,n,d[a(221)](l))});else{c[a(258)]((n,l)=>{typeof l!==a(494)&&ta(b,n,d,f)});var e=c[a(221)](M);e&&ja(b,e,d)}if(c=c[a(221)](E)){var g=b[a(328)]+"-"+b[a(290)];e=g+"-"+b.showAs;var h=c[a(221)](g);g=f[a(221)](g);h=(h/g*100)[a(517)](2)+"%";c[a(317)](e,h)}},Ha=function(b,c){var d=c.length;const f=b[a(543)]||[];var e=b[a(239)]||[],g=f[a(331)](e);const h=g.map(z=>z[a(290)]);var n=h[a(307)];const l=b[a(464)]||
|
|
243
|
+
[],k=[...(new Set(l.map(z=>z[a(290)])))],w=k[a(307)],p=b[a(244)]||[],r=p[a(307)],m=new Map,q={};for(let z=1;z<d;z++){const C=c[z];if(0!==r){var t=void 0;for(t=0;t<r;t++){var v=p[t],u=C[v.columnIndex],y=v[a(391)];if(y){var A=y[a(307)];let D;for(D=0;D<A&&u!==y[D];D++);if(D===A)break}if((v=v.validation)&&!jSuites.validations(u,v))break}if(t!==r)continue}t=m;for(u=0;u<n;u++)v=h[u],y=C[v],t.has(y)||(A=new Map,u===f[a(307)]-1&&A[a(317)](O,!0),t.set(y,A)),t=t[a(221)](y),!q[v]&&(q[v]=new Set),q[v][a(457)](y);
|
|
244
|
+
0!==e.length&&!t[a(217)](X)&&t[a(317)](X,!0);!t[a(217)](E)&&t.set(E,new Map);t=t[a(221)](E);for(u=0;u<w;u++)v=k[u],y=C[v],!t[a(217)](v)&&t[a(317)](v,[]),t[a(221)](v)[a(204)](y)}for(c=0;c<n;c++)d=g[c],e=q[d[a(290)]]?[...q[d[a(290)]]]:[],e[a(286)](),!d.ascendingOrder&&e[a(490)](),q[d[a(290)]]=e;Ga(b,q,m);if(0!==l[a(307)])for(b=0;b<l[a(307)];b++)g=l[b],g[a(544)]&&g[a(544)]!==a(528)&&("total-%"===g.showAs?(n=m.get(E).get(g[a(328)]+"-"+g.columnIndex),Q(g,m,n)):g[a(544)]===a(551)?sa(g,m,0!==f[a(307)]):
|
|
245
|
+
"column-%"===g.showAs&&(n=m[a(221)](M),ta(g,m,n,m.get(E))));return{obj:m,fieldsPossibleValues:q}},R=b=>{const c=b.method+"-"+b[a(290)];return b[a(544)]&&b[a(544)]!==a(528)?c+"-"+b[a(544)]:c},Ia=function(b,c,d,f,e,g){const h=d[a(543)]||[],n=d[a(239)]||[],l=d[a(464)]||[],k=function(m,q,t,v){var u=h[q];const y=S(f[u.columnIndex],u,t,l,!0);({collapsed:u}=u);const A=q===h[a(307)]-1;for(let F=0;F<y[a(307)];F++){var z=y[F],C=t[a(221)](z);let I;A?I=w(m,0,C,v):((!u||!u[a(332)](z))&&k(m,q+1,C,v),I=p(m,C[a(221)](M),
|
|
246
|
+
v));z=C[a(221)](E);for(C=0;C<l.length;C++){var D=R(l[C]);D=z?.get(D);typeof D!==a(302)&&(e[c][I]=D);I++}c++}},w=function(m,q,t,v){if(0===n[a(307)])return m;var u=n[q];var y=f[u[a(290)]];y=S(y,u,v,l,!1);({collapsed:u}=u);const A=q===n[a(307)]-1;for(let F=0;F<y[a(307)];F++){var z=y[F],C=t?t[a(221)](z):void 0;if(A)for(z=0;z<l[a(307)];z++){var D=R(l[z]);D=C?.[a(221)](E)?.[a(221)](D);typeof D!==a(302)&&(e[c][m]=D);m++}else for(u&&u.includes(z)||(m=w(m,q+1,C,v[a(221)](z))),C=C?.[a(221)](E),z=0;z<l[a(307)];z++)D=
|
|
247
|
+
R(l[z]),D=C?.get(D),typeof D!==a(302)&&(e[c][m]=D),m++}return m},p=function(m,q,t,v=[]){if(0===n[a(307)])return m;var u=v[a(307)],y=n[u];var A=f[y[a(290)]];A=S(A,y,t,l,!1);u=u===n[a(307)]-1;({collapsed:y}=y);typeof e[c]===a(302)&&(e[c]=[]);for(let D=0;D<A.length;D++){var z=A[D],C=[...v,z];const F=q?.[a(221)](z);u||y&&y[a(332)](z)||(m=p(m,F,t[a(221)](z),C));for(z=0;z<l.length;z++)C=R(l[z]),C=F?.[a(221)](E)?.[a(221)](C),"undefined"!==typeof C&&(e[c][m]=C),m++}return m};d=g.get(M);0!==h.length&&k(b,
|
|
248
|
+
0,g,d);b=p(b,d,d);for(d=0;d<l[a(307)];d++){var r=R(l[d]);r=g[a(221)](E)[a(221)](r);typeof r!==a(302)&&(e[a(307)]<=c&&(e[c]=[]),e[c][b]=r);b++}},S=(b,{sortBy:c,ascendingOrder:d},f,e,g)=>{if(c&&c!==a(257)){e=e[a(442)](n=>n.id===c);if(!e)throw Error(a(366));const h=e[a(328)]+"-"+e[a(290)];b=b[a(266)](n=>{const l=f.get(n)?.get(E);return[n,l?l[a(221)](h):void 0]});b=b.filter(n=>typeof n[1]!==a(302));b[a(286)]((n,l)=>n[1]-l[1]);b=b.map(n=>n[0])}else b=b[a(391)](h=>{h=f[a(221)](h);return g&&(h=h?.[a(221)](E)),
|
|
249
|
+
h&&(0!==h[a(436)]||h[a(221)](ia))})[a(286)]();return!d&&b[a(490)](),b},Ja=function(b,c,d,f,e,g){const h=c[a(543)]||[],n=c[a(464)]||[],l=new Set,k=function(w,p,r,m){const q=h[r];var t=d[q[a(290)]];t=S(t,q,m,n,!0);const v=r===h.length-1,{collapsed:u}=q;for(let A=0;A<t[a(307)];A++){const z=t[A];f[a(307)]<=p&&(f[p]=[]);f[p][w]=z;if(!v){"object"!==typeof g[p]&&(g[p]={});var y=u&&u[a(332)](z);g[p][w]={columnIndex:q[a(290)],value:typeof z!==a(302)?z:"",isCollapsed:y};y||(p=k(w+1,p,r+1,m[a(221)](z)),f[a(307)]<=
|
|
250
|
+
p&&(f[p]=[]),y="",typeof z!==a(302)&&null!==z&&(y=z+" "),y+=a(375),f[p][w]=y,l.add(p))}p++}return p};b=k(0,b,0,e);return f[a(307)]<=b&&f[a(204)]([]),f[b][0]=a(390),l},Ka=function(b,c,d,f,e,g,h,n){const l=d[a(239)]||[],k=d[a(464)]||[],w=b[1]-1,p=function(r,m,q,t){const v=l[q];var u=f[v[a(290)]];u=S(u,v,t,k,!1);const y=q===l[a(307)]-1,{collapsed:A}=v;for(let I=0;I<u[a(307)];I++){var z=u[I];e[a(307)]<=m&&(e[m]=[]);e[m][r]=z;if(y)if(1<k.length)for(z=0;z<k[a(307)];z++){var C=k[z];e.length<=m+1&&(e[m+1]=
|
|
251
|
+
[]);var D=C[a(328)]+a(256);typeof g[0][C[a(290)]]!==a(302)&&(D+=" "+g[0][C[a(290)]]);e[m+1][r]=D;r++}else r++;else if("object"!==typeof n[m]&&(n[m]={}),C=A&&A[a(332)](z),n[m][r]={columnIndex:v[a(290)],value:typeof z!==a(302)?z:"",isCollapsed:C},C)if(0!==k[a(307)]){for(;w>=e[a(307)];)e[a(204)]([]);for(C=0;C<k[a(307)];C++){D=k[C];var F="";typeof z!==a(302)&&(F=z+" ");F+=D[a(328)];typeof g[0][D.columnIndex]!==a(302)&&(F+=a(395)+g[0][D[a(290)]]);e[w][r]=F;r++}}else r++;else if(C=r,r=p(r,m+1,q+1,t[a(221)](z)),
|
|
252
|
+
C!==r)if(0!==k[a(307)])for(C=0;C<k[a(307)];C++)D=k[C],F="","undefined"!==typeof z&&(F=z+" "),F+=D[a(328)],typeof g[0][D[a(290)]]!==a(302)&&(F+=a(395)+g[0][D[a(290)]]),e[m][r]=F,r++;else e[m][r]=z+" Total",r++}return r};b=0!==l[a(307)]?p(b[0],1,0,h[a(221)](M)):b[0];if(1>k[a(307)])e[a(307)]<=c&&(e[c]=[]),e[c][b]=a(375);else for(e[a(307)]<=c&&(e[c]=[]),d=0;d<k[a(307)];d++){h=k[d];let r=a(553)+h[a(328)];typeof g[0][h.columnIndex]!==a(302)&&(r+=a(395)+g[0][h.columnIndex]);e[c][b]=r;b++}};class T extends Error{constructor(b){super("SPILL");
|
|
253
|
+
this[a(496)]=b}}const Ma=function({data:b,groups:c},[d,f],e,g){var h=g[a(436)]||[0,0];const [n,l]=h,{records:k,options:{data:w}}=e;e=b[a(307)];h=Math[a(452)](...b.map(A=>A[a(307)]));if(h>n)for(var p=0;p<l;p++){var r=f+p,m=k[r],q=w[r];for(var t=n;t<h;t++){var v=d+t;if(m){var u=m[v];if(u&&null!==u.v&&typeof u.v!==a(302))throw new T({x:v,y:r});}if(q&&(u=q[v],null!==u&&""!==u&&typeof u!==a(302)))throw new T({x:v,y:r});}}for(p=l;p<e;p++)for(r=f+p,m=k[r],q=w[r],t=0;t<h;t++){v=d+t;if(m&&(u=m[v])&&null!==
|
|
254
|
+
u.v&&typeof u.v!==a(302))throw new T({x:v,y:r});if(q&&(u=q[v],null!==u&&""!==u&&"undefined"!==typeof u))throw new T({x:v,y:r});}p=[];r=[];for(m=0;m<e;m++){v=b[m];u=c[m];q=f+m;for(t=0;t<h;){const A=d+t;var y=v[t];p[a(204)]({x:A,y:q,value:"undefined"!==typeof y?y:null});if(u&&u[t])y=u[t],r[a(204)]({x:A,y:q,value:{type:La,readOnly:!0,options:{...y,pivotTableId:g.id}}});else r[a(204)]({x:A,y:q,value:{type:a(279),readOnly:!0}});t++}for(;t<n;)v=d+t,p.push({x:v,y:q,value:null}),r.push({x:v,y:q,value:null}),
|
|
255
|
+
t++}return{dataRecords:p,propertyRecords:r,size:[h,e]}},ua=function(b,[c,d],[f],e){b=[{x:c,y:d,value:e?a(425):null}];e=[{x:c,y:d,value:e?"text":{type:Na}}];for(let g=1;g<f;g++){const h=c+g;b[a(204)]({x:h,y:d,value:null});e[a(204)]({x:h,y:d,value:null})}return{dataRecords:b,propertyRecords:e,size:[1,1]}},ka=Symbol("coordinate of the cell that prevented the table from being drawn"),Oa=function(b,c,d){var f=B[a(539)][a(277)](c.anchor);const [e,g]=f;var h=c[a(436)]||[0,0];const [n,l]=h;var k=[];let w=
|
|
256
|
+
[];var p;let r=!1;try{b?(p=Ma(b,f,d,c),Aa(b[a(487)],h,p[a(436)],c,d)):(p=ua(c,f,h),aa(h,c,d)),delete c[ka]}catch(y){if(!(y instanceof T))throw y;c[ka]=y[a(496)];r=!0;p=ua(c,f,h,!0);aa(h,c,d)}({dataRecords:k,propertyRecords:w}=p);[h,f]=p.size;({records:p}=d);for(var m=0;m<f;m++){var q=g+m,t=p[q];for(var v=0;v<h;v++){var u=e+v;d[a(367)](u,q).pivot=!0}for(q=h;q<n;q++)(v=t[e+q])&&delete v.pivot}for(m=f;m<l;m++)for(t=g+m,q=p[t],v=0;v<n;v++)u=e+v,delete q[u].pivot,k[a(204)]({x:u,y:t,value:null}),w[a(204)]({x:u,
|
|
257
|
+
y:t,value:null});pa(k,w,d);r&&(d[a(367)](e,g),d=d[a(219)](e,g),{data:k}=b,b=k.length,k=Math[a(452)](...k.map(y=>y[a(307)])),b=c[a(294)]+":"+B[a(539)][a(313)](k-1,b-1),d[a(426)](a(394),"For the table to be displayed, the range "+b+a(343)));c.size=[h,f]},L=function(b,c){var d=b[a(543)]||[],f=b[a(239)]||[];var e=b[a(464)]||[];if(0===d[a(307)]&&0===f[a(307)]&&0===e[a(307)])e=null;else{var g=b[a(274)],h=c,n=J(g);h=h[a(542)](n[0]);g=h.records;n=B[a(539)][a(435)](n[1]);var l=[];for(var k=n[1];k<=n[3];k++){var w=
|
|
258
|
+
g[k],p=[];for(var r=n[0];r<=n[2];r++)h[a(219)](r,k),p.push(w[r].v);l[a(204)](p)}var {obj:m,fieldsPossibleValues:q}=Ha(b,l);g=d[a(307)];k=f[a(307)];w=Array(g)[a(405)](null);n=l[0];h=[];if(0<k){for(p=0;p<k;p++)r=f[p],w[a(204)](n[r[a(290)]]);1<e[a(307)]&&w[a(204)](a(238));h[a(204)](w)}f=[g,0<k?k+1+(0===k||1<e.length?1:0):1];k={};Ka(f,h[a(307)],b,q,h,l,m,k);for(l=f[1]-1;h.length<=l;)h[a(204)]([]);l=h[l];for(w=0;w<g;w++)l[w]=n[d[w][a(290)]];g={headerHeight:f[1]-1,hasHighlightedColumn:1<g};d[a(307)]&&(d=
|
|
259
|
+
Ja(f[1],b,q,h,m,k),g[a(468)]=d);e=(0!==e[a(307)]&&Ia(f[0],f[1],b,q,h,m),{data:h,groups:k,styleInfo:g})}Oa(e,b,c)},Z=[a(543),a(239)],U=[a(464),a(543),a(239),"filters"],la=U.length,va=(b,c)=>{const d={columnIndex:b[a(290)]};c===a(464)?(d.id=jSuites[a(413)](),d[a(328)]="SUM"):c!==a(543)&&c!==a(239)||(d[a(460)]=b.sortBy||a(257),d[a(381)]=typeof b.ascendingOrder===a(337)?b[a(381)]:!0,typeof b[a(518)]!==a(337)||(d[a(518)]=b[a(518)]));return d},Pa=function(){let b=this;b.rows=[];b[a(239)]=[];b[a(464)]=[];
|
|
260
|
+
b[a(244)]=[];b[a(261)]=[];const c=f=>f?f[a(266)](e=>({...e,columnName:b[a(261)][e.columnIndex]})):[];b[a(503)]=function(){const f={text:x("Name"),value:a(257)};if(!b[a(306)][a(464)])return[f];const e=b.pivotTable[a(464)].map(g=>({text:g[a(328)]+a(395)+b[a(261)][g[a(290)]],value:g.id}));return e[a(416)](f),e};b.updateSortableField=function(f){return function(){const e=a0_0x2294,g=b[e(503)]();b[f]=c(b.pivotTable[f])[e(266)](h=>(h.sortingOptions=G(g),h));b.refresh(f)}};b[a(214)]=b[a(493)](a(543));b[a(259)]=
|
|
261
|
+
b[a(493)]("columns");b[a(404)]=function(){b.cells=c(b[a(306)][a(464)]);b.refresh(a(464))};b.updateFilters=function(){b[a(244)]=c(b[a(306)][a(244)]).map(({filter:f,...e})=>(e.filter1=f,e));b[a(282)](a(244))};b[a(380)]=function(){var f=J(b[a(306)][a(274)]);const e=B[a(539)][a(435)](f[1]);e[3]=e[1];const g=J(B[a(539)][a(459)](e))[1];f=b[a(309)].getDataFromRange(f[0]+"!"+g);b[a(261)]=f[0][a(266)]((h,n)=>typeof h!==a(302)&&null!==h&&""!==h?h:a(316)+B[a(539)][a(534)](n+e[0]));b[a(404)]();b[a(214)]();b[a(259)]();
|
|
262
|
+
b[a(441)]()};b[a(498)]=function(){b[a(306)]=b[a(309)][a(346)][a(412)][b.tableIndex];b.source=b.pivotTable[a(274)];b.sourcePicker[a(386)]=b.source;b[a(380)]()};b[a(273)]=function(){b[a(498)]();b[a(340)]=b[a(306)][a(274)];b[a(364)].open()};b[a(209)]=f=>function(e){const g=jSuites[a(430)](e,{data:[],content:a(457),onchange:function(h,n,l,k,w){h={columnIndex:b[a(261)].indexOf(l),sortBy:"name",ascendingOrder:!0};n=G(b[a(306)]);!n[f]&&(n[f]=[]);n[f][a(204)](h);H[a(504)](b[a(309)],n)}});e[a(521)][0][a(321)](a(260),
|
|
263
|
+
function(){const h=[...b[a(543)],...b[a(239)]].map(l=>l[a(290)]),n=b.fields[a(391)]((l,k)=>!h[a(332)](k));g.setOptions({data:n});g[a(273)]()})};b.createRowPicker=b[a(209)](a(543));b[a(352)]=b[a(209)]("columns");b[a(472)]=function(f){const e=jSuites[a(430)](f,{data:[],content:a(457),onchange:function(g,h,n,l,k){g={id:jSuites[a(413)](),columnIndex:b[a(261)][a(470)](n),method:a(454)};h=G(b[a(306)]);!h[a(464)]&&(h[a(464)]=[]);h[a(464)][a(204)](g);H.call(b.instance,h)}});f[a(521)][0][a(321)](a(260),function(){e[a(206)]({data:b[a(261)]});
|
|
264
|
+
e[a(273)]()})};b[a(403)]=function(f){const e=jSuites[a(430)](f,{data:[],content:"add",onchange:function(g,h,n,l,k){g={columnIndex:b[a(261)][a(470)](n)};h=G(b[a(306)]);!h[a(244)]&&(h[a(244)]=[]);h[a(244)].push(g);H.call(b.instance,h)}});f[a(521)][0][a(321)]("mousedown",function(){const g=b[a(244)][a(266)](n=>n[a(290)]),h=b[a(261)].filter((n,l)=>!g[a(332)](l));e[a(206)]({data:h});e[a(273)]()})};const d=function(){var f=b.source;const e=G(b[a(306)]),g=e[a(274)];e[a(274)]=f;f=J(f);f=B[a(539)][a(435)](f[1]);
|
|
265
|
+
const h=f[2]-f[0]+1;U[a(258)](n=>{var l=e[n];l&&(l=l[a(391)](k=>k[a(290)]<h),Z.includes(n)&&l[a(258)](k=>{k[a(460)]!==a(257)&&0>e[a(464)][a(327)](w=>w.id===k.sortBy)&&(k[a(460)]=a(257),k.ascendingOrder=!0)}),e[n]=l)});H.call(b[a(309)],e);wa(e,b[a(309)],g)};return b[a(330)]=function(){B[a(430)](b[a(324)],{worksheetName:!0,onchange:function(f){b[a(274)]=f}});b[a(324)][a(321)](a(335),function(f){try{na(b.source)}catch(e){jSuites[a(525)]({error:1,message:x(e.message)});b[a(324)].innerText=b[a(340)];return}b[a(340)]=
|
|
266
|
+
b[a(274)];d()})},b.updateField=function(f){return function(e,g){const h=a0_0x2294,n=G(b[h(306)]),l=n[f][h(442)](k=>k[h(290)]===e);Object[h(245)](g)[h(258)](([k,w])=>{l[k]=w});H[h(504)](b.instance,n)}},b[a(281)]=b[a(458)](a(543)),b[a(253)]=b[a(458)](a(239)),b[a(211)]=b.updateField(a(244)),b[a(351)]=function(f){return function(e){const g=a0_0x2294,h=G(b[g(306)]),n=h[f],l=n[g(327)](k=>k.columnIndex===e);n[g(429)](l,1);H[g(504)](b[g(309)],h)}},b[a(358)]=b[a(351)](a(543)),b[a(516)]=b[a(351)](a(239)),b[a(500)]=
|
|
267
|
+
b[a(351)](a(244)),b.updateCell=function(f,e){const g=G(b[a(306)]),h=g[a(464)][a(442)](n=>n.id===f);Object[a(245)](e)[a(258)](([n,l])=>{h[n]=l});H[a(504)](b[a(309)],g)},b[a(370)]=function(f){const e=G(b[a(306)]),g=e.cells.findIndex(h=>h.id===f);e[a(464)].splice(g,1);[...e[a(543)],...e[a(239)]].forEach(h=>{h[a(460)]===f&&(h[a(460)]=a(257),h[a(381)]=!0)});H.call(b[a(309)],e)},b.moveItem=function(f){return function(e,g,h){const n=a0_0x2294,l=G(b[n(306)]);var k=l[f];const w="number"===typeof e?k[n(327)](r=>
|
|
268
|
+
r[n(290)]===e):k[n(327)](r=>r.id===e),p=k[n(429)](w,1)[0];k=l[g];if(f===g)k.splice(h,0,p);else if(g===n(464))g=va(p,g),k[n(429)](h,0,g);else{f===n(464)&&Z[n(258)](m=>{l[m].forEach(q=>{const t=a0_0x2294;q[t(460)]===p.id&&(q[t(460)]=t(257),q[t(381)]=!0)})});const r=p[n(290)];(g===n(244)?k:[...l[n(543)],...l[n(239)]])[n(224)](m=>m.columnIndex===r)||(g=va(p,g),k.splice(h,0,g))}H.call(b[n(309)],l)}},b.moveRow=b[a(203)](a(543)),b.moveColumn=b[a(203)](a(239)),b.moveCell=b.moveItem("cells"),b[a(467)]=b[a(203)](a(244)),
|
|
269
|
+
b.onchange=function(f){f===a(464)&&(b[a(214)](),b[a(259)]())},f=>f`
|
|
269
270
|
<div class="jss_object">
|
|
270
|
-
<lm-modal icon="pivot_table_chart" title="${x(a(
|
|
271
|
+
<lm-modal icon="pivot_table_chart" title="${x(a(499))}" position="right" overflow="true" :ref="self.modal" :closable="true" :width="600" :height="600" :closed="true" :onclose="self.cancel" :focus="false">
|
|
271
272
|
<div>
|
|
272
273
|
<div class="pivot-table-config">
|
|
273
274
|
<div>
|
|
274
275
|
<div class="pivot-table-title">
|
|
275
|
-
<h3>${x(a(
|
|
276
|
+
<h3>${x(a(251))}</h3>
|
|
276
277
|
</div>
|
|
277
278
|
<div class="pivot-table-title">
|
|
278
279
|
<div class="lm-form-group">
|
|
@@ -282,7 +283,7 @@ function(f){"cells"===f&&(b[a(345)](),b[a(364)]())},f=>f`
|
|
|
282
283
|
</div>
|
|
283
284
|
<div>
|
|
284
285
|
<div class="pivot-table-title">
|
|
285
|
-
<h3>${x(
|
|
286
|
+
<h3>${x("Rows")}</h3>
|
|
286
287
|
<div :ready="self.createRowPicker"></div>
|
|
287
288
|
</div>
|
|
288
289
|
<div :loop="self.rows" class="pivot-table-config-list" id="pivot-table-rows-list">
|
|
@@ -300,7 +301,7 @@ function(f){"cells"===f&&(b[a(345)](),b[a(364)]())},f=>f`
|
|
|
300
301
|
</div>
|
|
301
302
|
<div>
|
|
302
303
|
<div class="pivot-table-title">
|
|
303
|
-
<h3>${x(a(
|
|
304
|
+
<h3>${x(a(388))}</h3>
|
|
304
305
|
<div :ready="self.createColumnPicker"></div>
|
|
305
306
|
</div>
|
|
306
307
|
<div :loop="self.columns" class="pivot-table-config-list" id="pivot-table-columns-list">
|
|
@@ -318,7 +319,7 @@ function(f){"cells"===f&&(b[a(345)](),b[a(364)]())},f=>f`
|
|
|
318
319
|
</div>
|
|
319
320
|
<div>
|
|
320
321
|
<div class="pivot-table-title">
|
|
321
|
-
<h3>${x(a(
|
|
322
|
+
<h3>${x(a(238))}</h3>
|
|
322
323
|
<div :ready="self.createCellPicker"></div>
|
|
323
324
|
</div>
|
|
324
325
|
<div :loop="self.cells" class="pivot-table-config-list" id="pivot-table-cells-list">
|
|
@@ -335,7 +336,7 @@ function(f){"cells"===f&&(b[a(345)](),b[a(364)]())},f=>f`
|
|
|
335
336
|
</div>
|
|
336
337
|
<div>
|
|
337
338
|
<div class="pivot-table-title">
|
|
338
|
-
<h3>${x(
|
|
339
|
+
<h3>${x("Filters")}</h3>
|
|
339
340
|
<div :ready="self.createFilterPicker"></div>
|
|
340
341
|
</div>
|
|
341
342
|
<div :loop="self.filters" class="pivot-table-config-list" id="pivot-table-filters-list">
|
|
@@ -356,20 +357,18 @@ function(f){"cells"===f&&(b[a(345)](),b[a(364)]())},f=>f`
|
|
|
356
357
|
</div>
|
|
357
358
|
</lm-modal>
|
|
358
359
|
</div>
|
|
359
|
-
`},
|
|
360
|
-
w[h(
|
|
361
|
-
c.id===e.id);d[f]=
|
|
362
|
-
B[a(
|
|
363
|
-
u)=>u-v);
|
|
364
|
-
q
|
|
365
|
-
redo:()=>{
|
|
366
|
-
w,p,r){r
|
|
367
|
-
|
|
368
|
-
y&&r<y+A)return!1;p>r?p>y&&r<=y&&(y+=m):p<y&&r>y&&(y-=m);
|
|
369
|
-
|
|
370
|
-
q[a(
|
|
371
|
-
onbeforedeletecolumn:f(!1),onbeforemovecolumn:e(!1),onbeforeinsertrow:d(!0),onbeforedeleterow:f(!0),onbeforemoverow:e(!0),onbeforepaste:function(k,
|
|
372
|
-
l
|
|
373
|
-
c
|
|
374
|
-
function a0_0x4f68(){const a='applyValidation;textLength;Method;cardThatFollowsTheMouse;getCoordsFromCellName;Delete;mousedown;getSortingOptions;onchange;sortBy;Columns;Values;boolean;begins with;splice;findIndex;setPlugins;length;STDEVP;setProperty;lastIndexOf;Date;visible;100.00%;loadModalLists;1cayzwA;last column;bigger than;helpers;removeField;exists;7666335KKkZEX;replaceWith;entries;Create;The pivot tables extension is not included on the scope of this license;type;validationElement;Text length;history; of ;less than;Filters;cells;VAR;cascade;[data-control];open;criteria;createColumnPicker;getWorksheetInstanceByName;MAX;getRangeFromCoords;Name;pivot-table-group-cell;The source must be a range;move;message;some;AVERAGE;existing;has; must contain no content other than the table itself.;update;openCreateModal;isCollapsed;modal;worksheet;createPicker;is-highlighted-row;default;object;getCellObject;empty;COUNTA;filter1;anchor;not between;createAnchorPicker;validation;movedColumns;getCoordsFromRange;Time;1899-12-31 ;coordinate of the cell that prevented the table from being drawn;updateSelectionFromCoords;removeThisItem;Show as;element;column;COUNT;sourcePicker;scope;init;isEditable; of;oldSource;Something went wrong;columnIndex;getAttribute;COUNTUNIQUE;ends with;For the table to be displayed, the range ;updateFilter;source;left;<i class="material-icons">pivot_table_chart</i>;blur;method;collapsed;column-%;mouseup;Rows;material-icons;ascendingOrder;target;bigger than or equal to;toFixed;title;<div><h3>;oninit;Table data;defineProperty;showOptions;removeRow;number;sourceWorksheet;before;closed;dateToNum;pivot;removeCell;refresh;total-%;toolbar;jtoolbar-disabled;cancel;5785129ItyNcz;tableIndex;5UhdoLd;on or after;onclick;Ascending;insert;call;ignore;none;</h3></div>;getCellNameFromCoords;createElement;body;clientY;different to;Total;possibleValues;div;userSelect;getCell;tools;openEditModal;Column ;Descending;9lWKSSZ;mousemove;Cancel;forEach;</h3>;is-highlighted-column;sourceAnchor;querySelectorAll;styleInfo;undefined;pivot_table_chart;pivot-table-card-background;trunc;removeEventListener;moveRow;isSelected;getColumnName;Value;new;hidden;last row;% of the row total;text;apply;value;sort;plugins;less than or equal to;SUM;set;New worksheet;is a valid url;114716xfSuQv;valid email;validations;addEventListener;pivotTable;instance;updateColumn;stringify;Cell where the table should be inserted;innerHTML;Filter by value;parentElement;criterias;Source;style;11XKTlop;Invalid sorting option;remove;VARP;cursor;getBoundingClientRect;Total ;startDate;not contains;selection;is-last-row;5939976AGnCvI;end;updateModal;name;ignoreEvents;% of the total;license;sortingOptions;highlighted;MEDIAN;showAs;total symbol;moveFilter;indexOf;The source must be a range, not a single cell;formula;time;get;Default;exports;date;documentElement;card;createFilterPicker;contains;row;Cell is not empty;symbol;items;height;grab;close;newValue;pivotTableId;onDragStart;concat;VAR.P;PRODUCT;key;valid url;values;rows;function;filters;2774210nvAqJf;updateCells;Order;error;display;picker;updateSortableField;Insert pivot table;internal properties;onevent;positionMarkerCard;columnName;appendChild;getDataFromRange;The anchor must be a single cell, not a range;updateField;deletedColumns;filterByValue;8uehrRK;setValue;insertedColumns;size;render;fields;pivot-table-position-marker-card;calendar;endTime;updateRows;clipboard;reverse;endDate;STDEV;startTime;tokenIdentifier;Criteria;setOptions;jss_pivot_table;amd;parse;current;cut;status;children;isLoaded;filter;map;updateColumns;oldValue;1925452XUZCDf;records;1148076KxhSrc;editButtons;find;after;parent;onload;create;Pivot table settings;insertBefore;destinationAnchor;The anchor must be a reference to a cell;edit;classList;valid;all;slice;start;pivotTables;on or before;difference;coords;MIN;notEmpty;Grand Total;Cell is empty;notification;createSourcePicker;moveItem;getRange;width;Create pivot table;max;fill;push;allowEmptyCriteria;columns;setChain;is a valid email;innerText;equal to;setAttribute;undoChanges;is-header;between;updateRow;includes;Filter by condition;guid;row-%;removeColumn;destinationWorksheet;controls;is not between;dictionary;yCoordOfTheCenter;base;isArray;pivot-table-movement-card;add;updateCell;options'.split(";");a0_0x4f68=
|
|
375
|
-
function(){return a};return a0_0x4f68()};
|
|
360
|
+
`},Na={createCell:(b,c,d,f,e,g)=>{b.innerHTML=a(371)},updateCell:(b,c)=>!1,openEditor:(b,c,d,f,e)=>!1,closeEditor:()=>!1},La={createCell:(b,c,d,f,e,{options:g})=>{d=document[a(345)](a(506));d.classList[a(457)](a(478));f=document[a(345)]("i");f[a(386)]=g[a(326)]?a(457):a(210);f[a(301)][a(457)](a(322));f[a(223)]=()=>{const h=a0_0x2294,{columnIndex:n,pivotTableId:l}=g,k=G(e[h(346)][h(412)][h(442)](p=>l===p.id)),w=(k[h(543)]||[]).concat(k[h(239)]||[])[h(442)](p=>p[h(290)]===n);if(g[h(326)]){if(w[h(518)]){const p=
|
|
361
|
+
w[h(518)][h(470)](g[h(492)]);w[h(518)][h(429)](p,1)}}else!w[h(518)]&&(w[h(518)]=[]),0>w[h(518)][h(470)](g[h(492)])&&w[h(518)].push(g.value);H[h(504)](e,k)};d.appendChild(f);f=document[a(345)]("div");f.innerText=c||"";d.appendChild(f);b[a(270)]="";b[a(241)](d)},updateCell:(b,c)=>{b[a(521)][0][a(521)][1][a(386)]=c||""},openEditor:(b,c,d,f,e)=>!1,closeEditor:()=>!1},Qa=function(b,c){Object[a(532)](this,b,{get:c,configurable:!1,enumerable:!1,extensible:!1})},Ra=(b,c)=>{const d=c.w[a(346)][a(412)],f=d[a(327)](e=>
|
|
362
|
+
c.id===e.id);d[f]=G(b);L(d[f],c.w)},Sa=function(b,{from:c,to:d,quantity:f},e){if(b<c)return b>=d?b+f:b;if(b>c+f-1)return b<=d?b-f:b;b=d+b-c;return b<e[0]||b>e[2]?void 0:b},Ta=function(b,c){const d=c[a(307)];for(let f=0;f<d;f++)b>=c[f]&&b++;return b},Ua=function(b,c){const d=c[a(307)];let f=0;for(;f<d;){const e=c[f];if(b<e)break;else if(b===e)return;f++}return b-f},xa=(b,c)=>{const {value:d,updates:f}=b;b=c.w.options.pivotTables[a(442)](q=>c.id===q.id);d&&(b.source=d,c[a(446)]=d);var e=J(b.source);
|
|
363
|
+
const g=B[a(539)][a(435)](e[1]);if(f.movedColumns){let q,t;e=Object[a(245)](f.movedColumns);e[a(258)](v=>{v[0]=parseInt(v[0]);(typeof q===a(302)||v[0]<q)&&(q=v[0],t=v[1])});e=e[a(307)];e={from:q,to:t,quantity:e};var h=b[a(464)];for(var n=0;n<la;n++){var l=U[n],k=b[l];if(k){var w=[],p=k[a(307)];for(var r=0;r<p;r++){const v=k[r];var m=Sa(v[a(290)]+g[0],e,g);typeof m!==a(302)?v[a(290)]=m-g[0]:w[a(204)](r);Z.includes(l)&&"name"!==v[a(460)]&&!h.find(u=>u.id===v[a(460)])&&(v.sortBy=a(257),v.ascendingOrder=
|
|
364
|
+
!0)}w[a(286)]((v,u)=>u-v);l=w[a(307)];for(p=0;p<l;p++)k[a(429)](w[p],1)}}}else if(f[a(440)])for(e=f.insertedColumns[a(266)](q=>q-g[0]),h=0;h<la;h++){if(n=b[U[h]])for(k=n[a(307)],w=0;w<k;w++)l=n[w],l.columnIndex=Ta(l[a(290)],e)}else if(f[a(545)])for(e=[...(new Set(f[a(545)]))][a(286)]((q,t)=>q-t)[a(266)](q=>q-g[0]),h=b.cells,n=0;n<la;n++)if(l=U[n],k=b[l]){w=[];p=k.length;for(r=0;r<p;r++){const q=k[r];m=Ua(q[a(290)],e);typeof m!==a(302)?q[a(290)]=m:w.push(r);Z[a(332)](l)&&q[a(460)]!==a(257)&&!h[a(442)](t=>
|
|
365
|
+
t.id===q[a(460)])&&(q.sortBy=a(257),q[a(381)]=!0)}w.sort((q,t)=>t-q);l=w[a(307)];for(p=0;p<l;p++)k[a(429)](w[p],1)}L(b,c.w)},wa=(b,c,d)=>{!c[a(447)][a(444)]&&(c.controls.pivot=[]);const {id:f}=b;if(d){var e=c[a(447)][a(444)][a(327)](g=>g.id===f);-1<e&&(e=c[a(447)][a(444)].splice(e,1)[0],c.setChain(e,d))}d={type:a(444),id:f,range:b.source,handler:function(g,h){if(h){if(B[a(476)].progress)return!1;var n=ea(f,c);const l=G(n);B[a(476)].cascade=!0;B[a(476)][a(504)](c[a(272)],{worksheet:c,undo:()=>{Ra(l,
|
|
366
|
+
g)},redo:()=>{xa(h,g)}});B[a(476)][a(523)]=!1;xa(h,g)}else n=ea(f,c),L(n,c)}};Qa[a(504)](d,"w",()=>c);c[a(447)].pivot[a(204)](d);c[a(329)](d,b[a(274)],!0)},Va=function(b){let c={openCreateModal:function(l){const k=a0_0x2294;c[k(511)][k(309)]=l;c[k(511)][k(274)]=l[k(297)]();c[k(511)].open()},openEditModal:function(l,k){const w=a0_0x2294;c[w(344)][w(309)]=l;c.edit.tableIndex=k;c.edit[w(273)]()}};c[a(372)]=function(l){return l.items[a(204)]({content:a(485),type:"i",tooltip:x("Insert pivot table"),onclick:function(){c[a(264)](B[a(474)])},
|
|
367
|
+
updateState:function(k,w,p,r){r.isEditable()?p[a(301)].remove(a(283)):p.classList[a(457)](a(283))}}),l};var d=l=>function(k,w,p){if(k=w[a(346)].pivotTables){w=k[a(307)];p=p[a(266)](m=>m[l?a(382):a(428)]);const r=l?1:0;for(let m=0;m<w;m++){const q=k[m],t=B[a(539)][a(277)](q[a(294)]);let v=t[r];const u=q.size[r];for(let y=0;y<p[a(307)];y++){const A=p[y];if(A<=v)v++;else if(A<v+u)return!1}l?q[a(294)]=B.helpers[a(313)](t[0],v):q[a(294)]=B[a(539)][a(313)](v,t[1])}}};const f=l=>function(k,w,p){if(k=w.options[a(412)]){w=
|
|
368
|
+
k.length;const r=l?1:0;for(let m=0;m<w;m++){const q=k[m],t=B.helpers[a(277)](q[a(294)]);let v=t[r];const u=q[a(436)][r];for(let y=p[a(307)]-1;-1<y;y--){const A=p[y];if(A<v)v--;else if(A<v+u)return!1}l?q[a(294)]=B[a(539)][a(313)](t[0],v):q[a(294)]=B.helpers.getCellNameFromCoords(v,t[1])}}},e=l=>function(k,w,p,r,m){if(k=w.options[a(412)]){w=l?1:0;const q=k[a(307)];for(let t=0;t<q;t++){const v=k[t],u=B[a(539)][a(277)](v[a(294)]);let y=u[w];const A=v.size[w];if(p<y+A&&p+m-1>=y)return!1;p<r&&r++;if(r>
|
|
369
|
+
y&&r<y+A)return!1;p>r?p>y&&r<=y&&(y+=m):p<y&&r>y&&(y-=m);l?v[a(294)]=B.helpers.getCellNameFromCoords(u[0],y):v[a(294)]=B[a(539)].getCellNameFromCoords(y,u[1])}}},g=(l,k)=>{if(l=l[a(346)][a(412)]){const w=l[a(307)];for(let p=0;p<w;p++){const r=l[p];if(k[3]-k[1]+1!==r[a(436)][1]||k[2]-k[0]+1!==r.size[0])continue;const m=B.helpers.getCoordsFromCellName(r[a(294)]);if(k[0]===m[0]&&k[1]===m[1])return r}}return null},h=new Set,n={onselection:function(l,k,w,p,r,m){if(w===r&&p===m)if(l=k.options[a(412)])if(r=
|
|
370
|
+
l[a(307)],0!==r)for(let q=0;q<r;q++){m=l[q];const t=B[a(539)].getCoordsFromCellName(m[a(294)]);t[a(204)](t[0]+m[a(436)][0]-1,t[1]+m[a(436)][1]-1);if(w>=t[0]&&w<=t[2]&&p>=t[1]&&p<=t[3]){setTimeout(()=>{c[a(284)](k,q)},100);break}else!c[a(344)][a(364)][a(537)]&&c.edit.modal.close()}else c[a(344)][a(364)][a(315)]();else c[a(344)][a(364)][a(315)]();else c.edit[a(364)][a(315)]()},onbeforechanges:function(l,k,w){if(l=k[a(346)][a(412)]){const p=l[a(307)],r=w.length;for(let m=0;m<p;m++){const q=l[m],t=B[a(539)].getCoordsFromCellName(q.anchor);
|
|
371
|
+
t[a(204)](t[0]+q[a(436)][0]-1,t[1]+q[a(436)][1]-1);for(let v=0;v<r;v++){const u=w[v];if(k[a(310)](u.x,u.y,t)){ba(q,k);q[a(436)]=void 0;h[a(457)](q);break}}}}},onafterchanges:function(l,k,w){if(l=k[a(346)][a(412)]){const r=l.length;for(let m=0;m<r;m++){const q=l[m];if(h[a(217)](q)){L(q,k);h["delete"](q);continue}var p=q[ka];if(!p)continue;const {x:t,y:v}=p;p=w;const u=p[a(307)];for(let y=0;y<u;y++){const A=p[y];if(A.y===v&&A.x===t){typeof A.value!==a(302)&&null!==A[a(492)]&&""!==A.value||L(q,k);break}}}}},
|
|
372
|
+
onbeforeinsertcolumn:d(!1),onbeforedeletecolumn:f(!1),onbeforemovecolumn:e(!1),onbeforeinsertrow:d(!0),onbeforedeleterow:f(!0),onbeforemoverow:e(!0),onbeforepaste:function(l,k,w,p,r,m){if(m[a(355)]&&1===m[a(355)][a(307)]&&(l=m[a(484)],w=g(l,[m[a(363)][0],m[a(363)][1],m.selection[0]+w[0][a(307)]-1,m[a(363)][1]+w[a(307)]-1])))return p=B.helpers[a(313)](p,r),m[a(263)]?(Ca(l,k,w.id,p),B[a(275)].reset[a(504)](l,!0)):(k=G(w),k.id=jSuites[a(413)](),k.anchor=p,H.call(l,k)),!1},onkeydown:function(l,k,w){w[a(443)]===
|
|
373
|
+
a(483)&&(l=k[a(308)](),1===l[a(307)]&&(l=g(k,l[0]))&&Ba.call(k,l.id))}};c[a(489)]=function(l){const k=n[l];if(k)return k.apply(this,arguments)};c.init=function(l){const k=l[a(346)].pivotTables;if(k){const w=k.length;for(let p=0;p<w;p++){const r=k[p];L(r,l);wa(r,l)}}};d=document[a(345)](a(506));return b[a(285)][a(408)](d),lemonade.render(function(){let l=a(407);return lemonade[a(401)](l,c,{Create:ya,Edit:Pa})},d),c},ma=function(b){return!0};return ma[a(376)]=function(b){var c;const d=a0_0x2294;var f=
|
|
374
|
+
"";(c=(8==b[d(271)]?(!b[d(421)]||-1==b.scope[d(470)](d(444)))&&(f=d(374)):f=d(550),f))?console[a(418)](c):b.setPlugins({pivot:Va})},ma[a(546)]=function(){null===B&&(B=this)},ma});
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"main": "dist/index.js",
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
|
-
"version": "1.0.
|
|
34
|
+
"version": "1.0.5",
|
|
35
35
|
"bugs": "https://github.com/jspreadsheet/pro/issues",
|
|
36
36
|
"homepage": "https://github.com/jspreadsheet/pro",
|
|
37
37
|
"download": "https://github.com/jspreadsheet/pro/archive/master.zip"
|