cx 24.0.1 → 24.0.2
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/charts.js +169 -235
- package/dist/data.js +42 -85
- package/dist/hooks.js +1 -1
- package/dist/manifest.js +705 -705
- package/dist/svg.js +47 -97
- package/dist/ui.js +180 -242
- package/dist/util.js +9 -7
- package/dist/widgets.js +1199 -1481
- package/package.json +1 -1
- package/src/widgets/grid/Grid.d.ts +3 -0
- package/src/widgets/grid/Grid.js +44 -43
package/dist/ui.js
CHANGED
|
@@ -68,32 +68,19 @@ import { VDOM as VDOM$2 } from "cx-react";
|
|
|
68
68
|
import { NumberCulture, DateTimeCulture } from "intl-io";
|
|
69
69
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
70
70
|
|
|
71
|
-
function
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
})),
|
|
79
|
-
keys.push.apply(keys, symbols);
|
|
71
|
+
function _toPrimitive(t, r) {
|
|
72
|
+
if ("object" != typeof t || !t) return t;
|
|
73
|
+
var e = t[Symbol.toPrimitive];
|
|
74
|
+
if (void 0 !== e) {
|
|
75
|
+
var i = e.call(t, r || "default");
|
|
76
|
+
if ("object" != typeof i) return i;
|
|
77
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
80
78
|
}
|
|
81
|
-
return
|
|
79
|
+
return ("string" === r ? String : Number)(t);
|
|
82
80
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
i % 2
|
|
87
|
-
? ownKeys(Object(source), !0).forEach(function (key) {
|
|
88
|
-
_defineProperty(target, key, source[key]);
|
|
89
|
-
})
|
|
90
|
-
: Object.getOwnPropertyDescriptors
|
|
91
|
-
? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source))
|
|
92
|
-
: ownKeys(Object(source)).forEach(function (key) {
|
|
93
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
return target;
|
|
81
|
+
function _toPropertyKey(t) {
|
|
82
|
+
var i = _toPrimitive(t, "string");
|
|
83
|
+
return "symbol" == typeof i ? i : String(i);
|
|
97
84
|
}
|
|
98
85
|
function _defineProperties(target, props) {
|
|
99
86
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -112,19 +99,21 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
112
99
|
});
|
|
113
100
|
return Constructor;
|
|
114
101
|
}
|
|
115
|
-
function
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
102
|
+
function _extends() {
|
|
103
|
+
_extends = Object.assign
|
|
104
|
+
? Object.assign.bind()
|
|
105
|
+
: function (target) {
|
|
106
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
107
|
+
var source = arguments[i];
|
|
108
|
+
for (var key in source) {
|
|
109
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
110
|
+
target[key] = source[key];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return target;
|
|
115
|
+
};
|
|
116
|
+
return _extends.apply(this, arguments);
|
|
128
117
|
}
|
|
129
118
|
function _inheritsLoose(subClass, superClass) {
|
|
130
119
|
subClass.prototype = Object.create(superClass.prototype);
|
|
@@ -137,7 +126,7 @@ function _setPrototypeOf(o, p) {
|
|
|
137
126
|
: function _setPrototypeOf(o, p) {
|
|
138
127
|
o.__proto__ = p;
|
|
139
128
|
return o;
|
|
140
|
-
|
|
129
|
+
};
|
|
141
130
|
return _setPrototypeOf(o, p);
|
|
142
131
|
}
|
|
143
132
|
function _assertThisInitialized(self) {
|
|
@@ -146,20 +135,6 @@ function _assertThisInitialized(self) {
|
|
|
146
135
|
}
|
|
147
136
|
return self;
|
|
148
137
|
}
|
|
149
|
-
function _toPrimitive(input, hint) {
|
|
150
|
-
if (typeof input !== "object" || input === null) return input;
|
|
151
|
-
var prim = input[Symbol.toPrimitive];
|
|
152
|
-
if (prim !== undefined) {
|
|
153
|
-
var res = prim.call(input, hint || "default");
|
|
154
|
-
if (typeof res !== "object") return res;
|
|
155
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
156
|
-
}
|
|
157
|
-
return (hint === "string" ? String : Number)(input);
|
|
158
|
-
}
|
|
159
|
-
function _toPropertyKey(arg) {
|
|
160
|
-
var key = _toPrimitive(arg, "string");
|
|
161
|
-
return typeof key === "symbol" ? key : String(key);
|
|
162
|
-
}
|
|
163
138
|
|
|
164
139
|
var computablePrefix = "computable-";
|
|
165
140
|
var triggerPrefix = "trigger-";
|
|
@@ -250,7 +225,7 @@ var Controller = /*#__PURE__*/ (function (_Component) {
|
|
|
250
225
|
Controller.namespace = "ui.controller.";
|
|
251
226
|
Controller.factory = function (alias, config, more) {
|
|
252
227
|
if (isFunction(alias)) {
|
|
253
|
-
var cfg =
|
|
228
|
+
var cfg = _extends({}, config, more);
|
|
254
229
|
if (cfg.instance) {
|
|
255
230
|
//in rare cases instance.store may change, so we cannot rely on the store passed through configuration
|
|
256
231
|
cfg.store = new StoreProxy(function () {
|
|
@@ -260,9 +235,9 @@ Controller.factory = function (alias, config, more) {
|
|
|
260
235
|
}
|
|
261
236
|
var result = alias(cfg);
|
|
262
237
|
if (result instanceof Controller) return result;
|
|
263
|
-
return Controller.create(
|
|
238
|
+
return Controller.create(_extends({}, config, more, result));
|
|
264
239
|
}
|
|
265
|
-
return Controller.create(
|
|
240
|
+
return Controller.create(_extends({}, config, more));
|
|
266
241
|
};
|
|
267
242
|
|
|
268
243
|
var cssHelperCache = {};
|
|
@@ -343,7 +318,7 @@ var CSS = /*#__PURE__*/ (function () {
|
|
|
343
318
|
return join(
|
|
344
319
|
pushMap(null, this.resolve(stateModifiers), function (m) {
|
|
345
320
|
return _this3.classPrefix + "s-" + m;
|
|
346
|
-
})
|
|
321
|
+
}),
|
|
347
322
|
);
|
|
348
323
|
};
|
|
349
324
|
CSS.mod = function mod(mods) {
|
|
@@ -351,7 +326,7 @@ var CSS = /*#__PURE__*/ (function () {
|
|
|
351
326
|
return join(
|
|
352
327
|
pushMap(null, this.resolve(mods), function (m) {
|
|
353
328
|
return _this4.classPrefix + "m-" + m;
|
|
354
|
-
})
|
|
329
|
+
}),
|
|
355
330
|
);
|
|
356
331
|
};
|
|
357
332
|
CSS.expand = function expand() {
|
|
@@ -392,7 +367,7 @@ var Widget = /*#__PURE__*/ (function (_Component) {
|
|
|
392
367
|
if (this.styled) this.style = parseStyle(this.style);
|
|
393
368
|
else if (this.style) {
|
|
394
369
|
Console.warn(
|
|
395
|
-
"Components that allow use of the style attribute should set styled = true on their prototype. This will be an error in future versions."
|
|
370
|
+
"Components that allow use of the style attribute should set styled = true on their prototype. This will be an error in future versions.",
|
|
396
371
|
);
|
|
397
372
|
this.style = parseStyle(this.style);
|
|
398
373
|
this.styled = true;
|
|
@@ -431,14 +406,14 @@ var Widget = /*#__PURE__*/ (function (_Component) {
|
|
|
431
406
|
{
|
|
432
407
|
structured: true,
|
|
433
408
|
};
|
|
434
|
-
var props =
|
|
409
|
+
var props = _extends(
|
|
435
410
|
{
|
|
436
411
|
visible: undefined,
|
|
437
412
|
mod: {
|
|
438
413
|
structured: true,
|
|
439
414
|
},
|
|
440
415
|
},
|
|
441
|
-
options
|
|
416
|
+
options,
|
|
442
417
|
);
|
|
443
418
|
Object.assign.apply(Object, [props].concat(Array.prototype.slice.call(arguments)));
|
|
444
419
|
this.selector = new StructuredSelector({
|
|
@@ -452,7 +427,7 @@ var Widget = /*#__PURE__*/ (function (_Component) {
|
|
|
452
427
|
data.classNames = this.CSS.expand(
|
|
453
428
|
this.CSS.block(this.baseClass, data.mod, data.stateMods),
|
|
454
429
|
data["class"],
|
|
455
|
-
data.className
|
|
430
|
+
data.className,
|
|
456
431
|
);
|
|
457
432
|
data.style = parseStyle(data.style);
|
|
458
433
|
};
|
|
@@ -476,7 +451,7 @@ var Widget = /*#__PURE__*/ (function (_Component) {
|
|
|
476
451
|
_proto.render = function render(context, instance, key) {
|
|
477
452
|
Console.log(this);
|
|
478
453
|
throw new Error(
|
|
479
|
-
'Widget\'s render method should be overridden. This error usually happens if with incorrect imports, i.e. import { TextField } from "cx/data". Please check the console for details about the component configuration.'
|
|
454
|
+
'Widget\'s render method should be overridden. This error usually happens if with incorrect imports, i.e. import { TextField } from "cx/data". Please check the console for details about the component configuration.',
|
|
480
455
|
);
|
|
481
456
|
};
|
|
482
457
|
_proto.update = function update() {
|
|
@@ -558,7 +533,7 @@ var Text = /*#__PURE__*/ (function (_Widget) {
|
|
|
558
533
|
{
|
|
559
534
|
value: undefined,
|
|
560
535
|
},
|
|
561
|
-
].concat(Array.prototype.slice.call(arguments))
|
|
536
|
+
].concat(Array.prototype.slice.call(arguments)),
|
|
562
537
|
);
|
|
563
538
|
};
|
|
564
539
|
_proto.render = function render(context, _ref, key) {
|
|
@@ -708,7 +683,7 @@ var Container = /*#__PURE__*/ (function (_Widget) {
|
|
|
708
683
|
this.add(
|
|
709
684
|
Widget.create(StaticText, {
|
|
710
685
|
text: text,
|
|
711
|
-
})
|
|
686
|
+
}),
|
|
712
687
|
);
|
|
713
688
|
else
|
|
714
689
|
this.add(
|
|
@@ -716,7 +691,7 @@ var Container = /*#__PURE__*/ (function (_Widget) {
|
|
|
716
691
|
text: {
|
|
717
692
|
tpl: text,
|
|
718
693
|
},
|
|
719
|
-
})
|
|
694
|
+
}),
|
|
720
695
|
);
|
|
721
696
|
};
|
|
722
697
|
_proto.find = function find(filter, options) {
|
|
@@ -746,13 +721,9 @@ var Container = /*#__PURE__*/ (function (_Widget) {
|
|
|
746
721
|
_proto.findFirst = function findFirst(filter, options) {
|
|
747
722
|
return this.find(
|
|
748
723
|
filter,
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
{
|
|
753
|
-
first: true,
|
|
754
|
-
}
|
|
755
|
-
)
|
|
724
|
+
_extends({}, options, {
|
|
725
|
+
first: true,
|
|
726
|
+
}),
|
|
756
727
|
)[0];
|
|
757
728
|
};
|
|
758
729
|
return Container;
|
|
@@ -832,7 +803,7 @@ var Localization = /*#__PURE__*/ (function () {
|
|
|
832
803
|
Localization.localize = function localize(culture, key, values) {
|
|
833
804
|
var l = localizations[culture];
|
|
834
805
|
if (!l) l = localizations[culture] = {};
|
|
835
|
-
l[key] =
|
|
806
|
+
l[key] = _extends({}, l[key], values);
|
|
836
807
|
};
|
|
837
808
|
Localization.setCulture = function setCulture(culture) {
|
|
838
809
|
var l = localizations[culture];
|
|
@@ -885,7 +856,7 @@ var Culture = /*#__PURE__*/ (function () {
|
|
|
885
856
|
var _numberCulture;
|
|
886
857
|
if (!cultureCache.numberCulture)
|
|
887
858
|
cultureCache.numberCulture = new NumberCulture(
|
|
888
|
-
(_numberCulture = numberCulture) != null ? _numberCulture : culture
|
|
859
|
+
(_numberCulture = numberCulture) != null ? _numberCulture : culture,
|
|
889
860
|
);
|
|
890
861
|
return cultureCache.numberCulture;
|
|
891
862
|
};
|
|
@@ -893,7 +864,7 @@ var Culture = /*#__PURE__*/ (function () {
|
|
|
893
864
|
var _dateTimeCulture;
|
|
894
865
|
if (!cultureCache.dateTimeCulture)
|
|
895
866
|
cultureCache.dateTimeCulture = new DateTimeCulture(
|
|
896
|
-
(_dateTimeCulture = dateTimeCulture) != null ? _dateTimeCulture : culture
|
|
867
|
+
(_dateTimeCulture = dateTimeCulture) != null ? _dateTimeCulture : culture,
|
|
897
868
|
);
|
|
898
869
|
return cultureCache.dateTimeCulture;
|
|
899
870
|
};
|
|
@@ -1045,7 +1016,7 @@ var ArrayAdapter = /*#__PURE__*/ (function (_DataAdapter) {
|
|
|
1045
1016
|
s.comparer = _this2.getComparer(isDefined(s.sortOptions) ? s.sortOptions : _this2.sortOptions);
|
|
1046
1017
|
return s;
|
|
1047
1018
|
}),
|
|
1048
|
-
dataAccessor
|
|
1019
|
+
dataAccessor,
|
|
1049
1020
|
);
|
|
1050
1021
|
} else {
|
|
1051
1022
|
this.sorter = null;
|
|
@@ -1091,7 +1062,7 @@ var Repeater = /*#__PURE__*/ (function (_Container) {
|
|
|
1091
1062
|
structured: true,
|
|
1092
1063
|
},
|
|
1093
1064
|
},
|
|
1094
|
-
].concat(Array.prototype.slice.call(arguments))
|
|
1065
|
+
].concat(Array.prototype.slice.call(arguments)),
|
|
1095
1066
|
);
|
|
1096
1067
|
};
|
|
1097
1068
|
_proto.init = function init() {
|
|
@@ -1099,19 +1070,15 @@ var Repeater = /*#__PURE__*/ (function (_Container) {
|
|
|
1099
1070
|
if (this.recordAlias) this.recordName = this.recordAlias;
|
|
1100
1071
|
if (this.indexAlias) this.indexName = this.indexAlias;
|
|
1101
1072
|
this.dataAdapter = ArrayAdapter.create(
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
recordsAccessor: this.recordsAccessor,
|
|
1112
|
-
sortOptions: this.sortOptions,
|
|
1113
|
-
}
|
|
1114
|
-
)
|
|
1073
|
+
_extends({}, this.dataAdapter, {
|
|
1074
|
+
recordName: this.recordName,
|
|
1075
|
+
indexName: this.indexName,
|
|
1076
|
+
keyField: this.keyField,
|
|
1077
|
+
immutable: this.immutable,
|
|
1078
|
+
sealed: this.sealed,
|
|
1079
|
+
recordsAccessor: this.recordsAccessor,
|
|
1080
|
+
sortOptions: this.sortOptions,
|
|
1081
|
+
}),
|
|
1115
1082
|
);
|
|
1116
1083
|
this.item = PureContainer.create({
|
|
1117
1084
|
children: this.items || this.children,
|
|
@@ -1220,7 +1187,7 @@ var Rescope = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
1220
1187
|
instance: instance,
|
|
1221
1188
|
data: this.data,
|
|
1222
1189
|
useParentStore: true,
|
|
1223
|
-
|
|
1190
|
+
})
|
|
1224
1191
|
: null,
|
|
1225
1192
|
});
|
|
1226
1193
|
instance.setStore = function (store) {
|
|
@@ -1499,10 +1466,11 @@ function enableCultureSensitiveFormatting() {
|
|
|
1499
1466
|
Format$1.registerFactory(["number", "n"], function (format, minimumFractionDigits, maximumFractionDigits, flags) {
|
|
1500
1467
|
var culture = Culture.getNumberCulture();
|
|
1501
1468
|
var formatter = culture.getFormatter(
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1469
|
+
_extends(
|
|
1470
|
+
{},
|
|
1471
|
+
resolveMinMaxFractionDigits(minimumFractionDigits, maximumFractionDigits),
|
|
1472
|
+
resolveNumberFormattingFlags(flags),
|
|
1473
|
+
),
|
|
1506
1474
|
);
|
|
1507
1475
|
return function (value) {
|
|
1508
1476
|
return formatter.format(value);
|
|
@@ -1514,61 +1482,55 @@ function enableCultureSensitiveFormatting() {
|
|
|
1514
1482
|
var culture = Culture.getNumberCulture();
|
|
1515
1483
|
currency = currency || Culture.defaultCurrency;
|
|
1516
1484
|
var formatter = culture.getFormatter(
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
resolveNumberFormattingFlags(flags)
|
|
1526
|
-
)
|
|
1485
|
+
_extends(
|
|
1486
|
+
{
|
|
1487
|
+
style: "currency",
|
|
1488
|
+
currency: currency,
|
|
1489
|
+
},
|
|
1490
|
+
resolveMinMaxFractionDigits(minimumFractionDigits, maximumFractionDigits),
|
|
1491
|
+
resolveNumberFormattingFlags(flags),
|
|
1492
|
+
),
|
|
1527
1493
|
);
|
|
1528
1494
|
return function (value) {
|
|
1529
1495
|
return formatter.format(value);
|
|
1530
1496
|
};
|
|
1531
|
-
}
|
|
1497
|
+
},
|
|
1532
1498
|
);
|
|
1533
1499
|
Format$1.registerFactory(
|
|
1534
1500
|
["percentage", "p", "%"],
|
|
1535
1501
|
function (format, minimumFractionDigits, maximumFractionDigits, flags) {
|
|
1536
1502
|
var culture = Culture.getNumberCulture();
|
|
1537
1503
|
var formatter = culture.getFormatter(
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
resolveNumberFormattingFlags(flags)
|
|
1546
|
-
)
|
|
1504
|
+
_extends(
|
|
1505
|
+
{
|
|
1506
|
+
style: "percent",
|
|
1507
|
+
},
|
|
1508
|
+
resolveMinMaxFractionDigits(minimumFractionDigits, maximumFractionDigits),
|
|
1509
|
+
resolveNumberFormattingFlags(flags),
|
|
1510
|
+
),
|
|
1547
1511
|
);
|
|
1548
1512
|
return function (value) {
|
|
1549
1513
|
return formatter.format(value);
|
|
1550
1514
|
};
|
|
1551
|
-
}
|
|
1515
|
+
},
|
|
1552
1516
|
);
|
|
1553
1517
|
Format$1.registerFactory(
|
|
1554
1518
|
["percentSign", "ps"],
|
|
1555
1519
|
function (format, minimumFractionDigits, maximumFractionDigits, flags) {
|
|
1556
1520
|
var culture = Culture.getNumberCulture();
|
|
1557
1521
|
var formatter = culture.getFormatter(
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
resolveNumberFormattingFlags(flags)
|
|
1566
|
-
)
|
|
1522
|
+
_extends(
|
|
1523
|
+
{
|
|
1524
|
+
style: "percent",
|
|
1525
|
+
},
|
|
1526
|
+
resolveMinMaxFractionDigits(minimumFractionDigits, maximumFractionDigits),
|
|
1527
|
+
resolveNumberFormattingFlags(flags),
|
|
1528
|
+
),
|
|
1567
1529
|
);
|
|
1568
1530
|
return function (value) {
|
|
1569
1531
|
return formatter.format(value / 100);
|
|
1570
1532
|
};
|
|
1571
|
-
}
|
|
1533
|
+
},
|
|
1572
1534
|
);
|
|
1573
1535
|
Format$1.registerFactory(["date", "d"], function (fmt, format) {
|
|
1574
1536
|
if (format === void 0) {
|
|
@@ -1692,8 +1654,8 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
1692
1654
|
ins = ins.widget.isContent
|
|
1693
1655
|
? ins.contentPlaceholder
|
|
1694
1656
|
: ins.parent.outerLayout === ins
|
|
1695
|
-
|
|
1696
|
-
|
|
1657
|
+
? ins.parent.parent
|
|
1658
|
+
: ins.parent;
|
|
1697
1659
|
}
|
|
1698
1660
|
renderList.reverse();
|
|
1699
1661
|
};
|
|
@@ -1738,7 +1700,7 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
1738
1700
|
this.widget.version !== this.cached.widgetVersion ||
|
|
1739
1701
|
this.cached.globalCacheIdentifier !== GlobalCacheIdentifier.get();
|
|
1740
1702
|
if (shouldUpdate) {
|
|
1741
|
-
this.data =
|
|
1703
|
+
this.data = _extends({}, this.rawData);
|
|
1742
1704
|
this.widget.prepareData(context, this);
|
|
1743
1705
|
debug(processDataFlag, this.widget);
|
|
1744
1706
|
}
|
|
@@ -1912,8 +1874,8 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
1912
1874
|
function () {
|
|
1913
1875
|
return _this3.dataSelector(_this3.store)[prop];
|
|
1914
1876
|
},
|
|
1915
|
-
p.debounce
|
|
1916
|
-
)
|
|
1877
|
+
p.debounce,
|
|
1878
|
+
),
|
|
1917
1879
|
);
|
|
1918
1880
|
this.set(prop, value, options);
|
|
1919
1881
|
return true;
|
|
@@ -1923,7 +1885,7 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
1923
1885
|
prop,
|
|
1924
1886
|
throttle(function (value) {
|
|
1925
1887
|
return _this3.doSet(prop, value);
|
|
1926
|
-
}, p.throttle)
|
|
1888
|
+
}, p.throttle),
|
|
1927
1889
|
);
|
|
1928
1890
|
this.set(prop, value, options);
|
|
1929
1891
|
return true;
|
|
@@ -1964,7 +1926,7 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
1964
1926
|
var config = dataConfig[key];
|
|
1965
1927
|
if (!config)
|
|
1966
1928
|
throw new Error(
|
|
1967
|
-
"Unknown nested data key " + key + ". Known keys are " + Object.keys(dataConfig).join(", ") + "."
|
|
1929
|
+
"Unknown nested data key " + key + ". Known keys are " + Object.keys(dataConfig).join(", ") + ".",
|
|
1968
1930
|
);
|
|
1969
1931
|
if (isAccessorChain(config))
|
|
1970
1932
|
config = {
|
|
@@ -1980,7 +1942,7 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
1980
1942
|
throw new Error(
|
|
1981
1943
|
"Cannot change nested data value for " +
|
|
1982
1944
|
key +
|
|
1983
|
-
" as it's read-only. Either define it as a binding or define a set function."
|
|
1945
|
+
" as it's read-only. Either define it as a binding or define a set function.",
|
|
1984
1946
|
);
|
|
1985
1947
|
if (isString(config.set)) this.getControllerMethod(config.set)(value, this);
|
|
1986
1948
|
else if (isFunction(config.set)) config.set(value, this);
|
|
@@ -1988,7 +1950,7 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
1988
1950
|
throw new Error(
|
|
1989
1951
|
"Cannot change nested data value for " +
|
|
1990
1952
|
key +
|
|
1991
|
-
" the defined setter is neither a function nor a controller method."
|
|
1953
|
+
" the defined setter is neither a function nor a controller method.",
|
|
1992
1954
|
);
|
|
1993
1955
|
return true;
|
|
1994
1956
|
};
|
|
@@ -2040,7 +2002,7 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
2040
2002
|
_proto.getControllerMethod = function getControllerMethod(methodName) {
|
|
2041
2003
|
if (!this.controller)
|
|
2042
2004
|
throw new Error(
|
|
2043
|
-
'Cannot invoke controller method "' + methodName + '" as controller is not assigned to the widget.'
|
|
2005
|
+
'Cannot invoke controller method "' + methodName + '" as controller is not assigned to the widget.',
|
|
2044
2006
|
);
|
|
2045
2007
|
var at = this;
|
|
2046
2008
|
while (at != null && at.controller && !at.controller[methodName]) at = at.parent;
|
|
@@ -2048,7 +2010,7 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
2048
2010
|
throw new Error(
|
|
2049
2011
|
'Cannot invoke controller method "' +
|
|
2050
2012
|
methodName +
|
|
2051
|
-
'". The method cannot be found in any of the assigned controllers.'
|
|
2013
|
+
'". The method cannot be found in any of the assigned controllers.',
|
|
2052
2014
|
);
|
|
2053
2015
|
return at.controller[methodName].bind(at.controller);
|
|
2054
2016
|
};
|
|
@@ -2071,7 +2033,7 @@ function renderResultFix(res) {
|
|
|
2071
2033
|
? res
|
|
2072
2034
|
: {
|
|
2073
2035
|
content: res,
|
|
2074
|
-
|
|
2036
|
+
};
|
|
2075
2037
|
}
|
|
2076
2038
|
var InstanceCache = /*#__PURE__*/ (function () {
|
|
2077
2039
|
function InstanceCache(parent, keyPrefix) {
|
|
@@ -2097,7 +2059,6 @@ var InstanceCache = /*#__PURE__*/ (function () {
|
|
|
2097
2059
|
instance.setStore(store);
|
|
2098
2060
|
if (instance.cached) delete instance.cached.rawData; // force prepareData to execute again
|
|
2099
2061
|
}
|
|
2100
|
-
|
|
2101
2062
|
return instance;
|
|
2102
2063
|
};
|
|
2103
2064
|
_proto2.addChild = function addChild(instance) {
|
|
@@ -2304,7 +2265,7 @@ var Cx = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
2304
2265
|
{
|
|
2305
2266
|
data: data,
|
|
2306
2267
|
},
|
|
2307
|
-
notifyBatchedUpdateCompleted
|
|
2268
|
+
notifyBatchedUpdateCompleted,
|
|
2308
2269
|
);
|
|
2309
2270
|
} else {
|
|
2310
2271
|
//in standard mode sequential store commands are batched
|
|
@@ -2316,7 +2277,7 @@ var Cx = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
2316
2277
|
{
|
|
2317
2278
|
data: data,
|
|
2318
2279
|
},
|
|
2319
|
-
notifyBatchedUpdateCompleted
|
|
2280
|
+
notifyBatchedUpdateCompleted,
|
|
2320
2281
|
);
|
|
2321
2282
|
}, 0);
|
|
2322
2283
|
}
|
|
@@ -2335,7 +2296,7 @@ var Cx = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
2335
2296
|
},
|
|
2336
2297
|
{
|
|
2337
2298
|
timeout: this.props.idleTimeout || 30000,
|
|
2338
|
-
}
|
|
2299
|
+
},
|
|
2339
2300
|
);
|
|
2340
2301
|
};
|
|
2341
2302
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
@@ -2464,7 +2425,7 @@ var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
|
2464
2425
|
"cx",
|
|
2465
2426
|
(beforeVDOMRender - start + afterCleanup - afterVDOMRender).toFixed(2) + "ms",
|
|
2466
2427
|
"vdom",
|
|
2467
|
-
(afterVDOMRender - beforeVDOMRender).toFixed(2) + "ms"
|
|
2428
|
+
(afterVDOMRender - beforeVDOMRender).toFixed(2) + "ms",
|
|
2468
2429
|
);
|
|
2469
2430
|
Timing.log(
|
|
2470
2431
|
appLoopFlag,
|
|
@@ -2481,7 +2442,7 @@ var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
|
2481
2442
|
"vdom",
|
|
2482
2443
|
(afterVDOMRender - beforeVDOMRender).toFixed(1),
|
|
2483
2444
|
"cleanup",
|
|
2484
|
-
(afterCleanup - afterVDOMRender).toFixed(1)
|
|
2445
|
+
(afterCleanup - afterVDOMRender).toFixed(1),
|
|
2485
2446
|
);
|
|
2486
2447
|
}
|
|
2487
2448
|
};
|
|
@@ -2509,7 +2470,7 @@ var ContentResolver = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
2509
2470
|
},
|
|
2510
2471
|
loading: undefined,
|
|
2511
2472
|
},
|
|
2512
|
-
])
|
|
2473
|
+
]),
|
|
2513
2474
|
);
|
|
2514
2475
|
};
|
|
2515
2476
|
_proto.init = function init() {
|
|
@@ -2586,7 +2547,7 @@ var IsolatedScope = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
2586
2547
|
structured: true,
|
|
2587
2548
|
},
|
|
2588
2549
|
},
|
|
2589
|
-
])
|
|
2550
|
+
]),
|
|
2590
2551
|
);
|
|
2591
2552
|
};
|
|
2592
2553
|
_proto.init = function init() {
|
|
@@ -2629,7 +2590,7 @@ var DetachedScope = /*#__PURE__*/ (function (_IsolatedScope) {
|
|
|
2629
2590
|
structured: true,
|
|
2630
2591
|
},
|
|
2631
2592
|
},
|
|
2632
|
-
])
|
|
2593
|
+
]),
|
|
2633
2594
|
);
|
|
2634
2595
|
};
|
|
2635
2596
|
_proto.init = function init() {
|
|
@@ -2653,13 +2614,9 @@ var DetachedScope = /*#__PURE__*/ (function (_IsolatedScope) {
|
|
|
2653
2614
|
delete this.items;
|
|
2654
2615
|
delete this.children;
|
|
2655
2616
|
if (this.name)
|
|
2656
|
-
this.options =
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
{
|
|
2660
|
-
name: this.name,
|
|
2661
|
-
}
|
|
2662
|
-
);
|
|
2617
|
+
this.options = _extends({}, this.options, {
|
|
2618
|
+
name: this.name,
|
|
2619
|
+
});
|
|
2663
2620
|
_IsolatedScope.prototype.init.call(this);
|
|
2664
2621
|
};
|
|
2665
2622
|
_proto.initInstance = function initInstance(context, instance) {
|
|
@@ -2679,7 +2636,7 @@ var DetachedScope = /*#__PURE__*/ (function (_IsolatedScope) {
|
|
|
2679
2636
|
options: this.options,
|
|
2680
2637
|
onError: this.onError,
|
|
2681
2638
|
},
|
|
2682
|
-
key
|
|
2639
|
+
key,
|
|
2683
2640
|
);
|
|
2684
2641
|
};
|
|
2685
2642
|
return DetachedScope;
|
|
@@ -2747,7 +2704,7 @@ var Restate = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
2747
2704
|
idleTimeout: undefined,
|
|
2748
2705
|
cacheKey: undefined,
|
|
2749
2706
|
},
|
|
2750
|
-
])
|
|
2707
|
+
]),
|
|
2751
2708
|
);
|
|
2752
2709
|
};
|
|
2753
2710
|
_proto.init = function init() {
|
|
@@ -2823,7 +2780,7 @@ var Restate = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
2823
2780
|
idleTimeout: instance.data.idleTimeout,
|
|
2824
2781
|
immediate: this.immediate,
|
|
2825
2782
|
},
|
|
2826
|
-
key
|
|
2783
|
+
key,
|
|
2827
2784
|
);
|
|
2828
2785
|
};
|
|
2829
2786
|
return Restate;
|
|
@@ -3055,7 +3012,7 @@ function withHoverSync(key, hoverSync, hoverChannel, hoverId, render) {
|
|
|
3055
3012
|
hoverId: hoverId,
|
|
3056
3013
|
render: render,
|
|
3057
3014
|
},
|
|
3058
|
-
key
|
|
3015
|
+
key,
|
|
3059
3016
|
);
|
|
3060
3017
|
}
|
|
3061
3018
|
var HoverSyncElement = /*#__PURE__*/ (function (_Container) {
|
|
@@ -3081,7 +3038,7 @@ var HoverSyncElement = /*#__PURE__*/ (function (_Container) {
|
|
|
3081
3038
|
structured: true,
|
|
3082
3039
|
},
|
|
3083
3040
|
},
|
|
3084
|
-
])
|
|
3041
|
+
]),
|
|
3085
3042
|
);
|
|
3086
3043
|
};
|
|
3087
3044
|
_proto3.prepareData = function prepareData(context, instance) {
|
|
@@ -3102,31 +3059,28 @@ var HoverSyncElement = /*#__PURE__*/ (function (_Container) {
|
|
|
3102
3059
|
onMouseMove = _ref.onMouseMove,
|
|
3103
3060
|
onMouseLeave = _ref.onMouseLeave,
|
|
3104
3061
|
key = _ref.key;
|
|
3105
|
-
var style =
|
|
3062
|
+
var style = _extends({}, data.style, hover && data.hoverStyle);
|
|
3106
3063
|
return VDOM$1.createElement(
|
|
3107
3064
|
inSvg ? "g" : "div",
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
eventHandlers
|
|
3122
|
-
),
|
|
3123
|
-
{},
|
|
3065
|
+
_extends(
|
|
3066
|
+
{
|
|
3067
|
+
key: key,
|
|
3068
|
+
className: CSS.expand(
|
|
3069
|
+
data.classNames,
|
|
3070
|
+
CSS.state({
|
|
3071
|
+
hover: hover,
|
|
3072
|
+
}),
|
|
3073
|
+
hover && data.hoverClass,
|
|
3074
|
+
),
|
|
3075
|
+
style: style,
|
|
3076
|
+
},
|
|
3077
|
+
eventHandlers,
|
|
3124
3078
|
{
|
|
3125
3079
|
onMouseLeave: onMouseLeave,
|
|
3126
3080
|
onMouseMove: onMouseMove,
|
|
3127
|
-
}
|
|
3081
|
+
},
|
|
3128
3082
|
),
|
|
3129
|
-
children
|
|
3083
|
+
children,
|
|
3130
3084
|
);
|
|
3131
3085
|
});
|
|
3132
3086
|
};
|
|
@@ -3139,24 +3093,21 @@ HoverSyncElement.prototype.hoverChannel = "default";
|
|
|
3139
3093
|
var flattenProps = function flattenProps(props) {
|
|
3140
3094
|
if (!props) return {};
|
|
3141
3095
|
if (props.jsxSpread) {
|
|
3142
|
-
props =
|
|
3143
|
-
|
|
3096
|
+
props = _extends(
|
|
3097
|
+
{},
|
|
3098
|
+
props,
|
|
3144
3099
|
props.jsxSpread.reduce(function (acc, prop) {
|
|
3145
3100
|
return Object.assign(acc, prop);
|
|
3146
|
-
}, {})
|
|
3101
|
+
}, {}),
|
|
3147
3102
|
);
|
|
3148
3103
|
}
|
|
3149
3104
|
if (props.$props !== undefined) {
|
|
3150
|
-
props =
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
jsxAttributes: props.jsxAttributes,
|
|
3155
|
-
children: props.children,
|
|
3156
|
-
}
|
|
3157
|
-
);
|
|
3105
|
+
props = _extends({}, props.$props, {
|
|
3106
|
+
jsxAttributes: props.jsxAttributes,
|
|
3107
|
+
children: props.children,
|
|
3108
|
+
});
|
|
3158
3109
|
}
|
|
3159
|
-
return
|
|
3110
|
+
return _extends({}, props);
|
|
3160
3111
|
};
|
|
3161
3112
|
|
|
3162
3113
|
var currentInstance = null;
|
|
@@ -3263,7 +3214,7 @@ var Selection = /*#__PURE__*/ (function (_Component) {
|
|
|
3263
3214
|
data = instance.data;
|
|
3264
3215
|
if (!data.$selection)
|
|
3265
3216
|
throw new Error(
|
|
3266
|
-
"Selection model not properly configured. Using the selectInstance method without specified record and index bindings."
|
|
3217
|
+
"Selection model not properly configured. Using the selectInstance method without specified record and index bindings.",
|
|
3267
3218
|
);
|
|
3268
3219
|
return this.select(store, data.$selection.record, data.$selection.index, options);
|
|
3269
3220
|
};
|
|
@@ -3411,7 +3362,7 @@ var KeySelection = /*#__PURE__*/ (function (_Selection) {
|
|
|
3411
3362
|
structured: true,
|
|
3412
3363
|
},
|
|
3413
3364
|
},
|
|
3414
|
-
].concat(Array.prototype.slice.call(arguments))
|
|
3365
|
+
].concat(Array.prototype.slice.call(arguments)),
|
|
3415
3366
|
);
|
|
3416
3367
|
};
|
|
3417
3368
|
_proto.configureWidget = function configureWidget(widget) {
|
|
@@ -3455,11 +3406,10 @@ var KeySelection = /*#__PURE__*/ (function (_Selection) {
|
|
|
3455
3406
|
return !_this.areKeysEqual(x, key);
|
|
3456
3407
|
}); //TODO: optimize
|
|
3457
3408
|
});
|
|
3458
|
-
|
|
3459
3409
|
this.updateSelectionWithShallowEqualsCheck(store, newSelection);
|
|
3460
3410
|
}
|
|
3461
3411
|
} else if (this.storage == "hash") {
|
|
3462
|
-
var _newSelection = toggle ?
|
|
3412
|
+
var _newSelection = toggle ? _extends({}, selection) : {};
|
|
3463
3413
|
keys.forEach(function (key) {
|
|
3464
3414
|
_newSelection[key] = !_newSelection[key];
|
|
3465
3415
|
});
|
|
@@ -3565,7 +3515,7 @@ var FirstVisibleChildLayout = /*#__PURE__*/ (function (_PureContainer2) {
|
|
|
3565
3515
|
? item
|
|
3566
3516
|
: FirstVisibleChildItem.create({
|
|
3567
3517
|
items: item,
|
|
3568
|
-
|
|
3518
|
+
});
|
|
3569
3519
|
};
|
|
3570
3520
|
return FirstVisibleChildLayout;
|
|
3571
3521
|
})(PureContainer);
|
|
@@ -3602,7 +3552,7 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
3602
3552
|
structured: true,
|
|
3603
3553
|
},
|
|
3604
3554
|
},
|
|
3605
|
-
])
|
|
3555
|
+
]),
|
|
3606
3556
|
);
|
|
3607
3557
|
};
|
|
3608
3558
|
_proto.render = function render(context, instance, key) {
|
|
@@ -3635,8 +3585,8 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
3635
3585
|
}),
|
|
3636
3586
|
],
|
|
3637
3587
|
},
|
|
3638
|
-
key
|
|
3639
|
-
)
|
|
3588
|
+
key,
|
|
3589
|
+
),
|
|
3640
3590
|
);
|
|
3641
3591
|
}
|
|
3642
3592
|
};
|
|
@@ -3652,7 +3602,7 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
3652
3602
|
children: result,
|
|
3653
3603
|
}),
|
|
3654
3604
|
},
|
|
3655
|
-
key
|
|
3605
|
+
key,
|
|
3656
3606
|
);
|
|
3657
3607
|
};
|
|
3658
3608
|
return LabelsLeftLayout;
|
|
@@ -3709,7 +3659,7 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
|
|
|
3709
3659
|
children: state.rows,
|
|
3710
3660
|
}),
|
|
3711
3661
|
},
|
|
3712
|
-
key
|
|
3662
|
+
key,
|
|
3713
3663
|
);
|
|
3714
3664
|
};
|
|
3715
3665
|
_proto.addRow = function addRow(state) {
|
|
@@ -3720,8 +3670,8 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
|
|
|
3720
3670
|
{
|
|
3721
3671
|
children: state.labelCells,
|
|
3722
3672
|
},
|
|
3723
|
-
state.rows.length
|
|
3724
|
-
)
|
|
3673
|
+
state.rows.length,
|
|
3674
|
+
),
|
|
3725
3675
|
);
|
|
3726
3676
|
if (state.fieldCells.length > 0)
|
|
3727
3677
|
state.rows.push(
|
|
@@ -3730,8 +3680,8 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
|
|
|
3730
3680
|
{
|
|
3731
3681
|
children: state.fieldCells,
|
|
3732
3682
|
},
|
|
3733
|
-
state.rows.length
|
|
3734
|
-
)
|
|
3683
|
+
state.rows.length,
|
|
3684
|
+
),
|
|
3735
3685
|
);
|
|
3736
3686
|
state.labelCells = [];
|
|
3737
3687
|
state.fieldCells = [];
|
|
@@ -3755,8 +3705,8 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
|
|
|
3755
3705
|
colSpan: data.colSpan,
|
|
3756
3706
|
children: getContent(item.label),
|
|
3757
3707
|
},
|
|
3758
|
-
state.labelCells.length
|
|
3759
|
-
)
|
|
3708
|
+
state.labelCells.length,
|
|
3709
|
+
),
|
|
3760
3710
|
);
|
|
3761
3711
|
state.fieldCells.push(
|
|
3762
3712
|
/*#__PURE__*/ jsx(
|
|
@@ -3768,8 +3718,8 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
|
|
|
3768
3718
|
style: data.style,
|
|
3769
3719
|
children: validContent(item),
|
|
3770
3720
|
},
|
|
3771
|
-
state.fieldCells.length
|
|
3772
|
-
)
|
|
3721
|
+
state.fieldCells.length,
|
|
3722
|
+
),
|
|
3773
3723
|
);
|
|
3774
3724
|
};
|
|
3775
3725
|
return LabelsTopLayout;
|
|
@@ -3796,7 +3746,7 @@ var LabelsTopLayoutCell = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
3796
3746
|
colSpan: undefined,
|
|
3797
3747
|
rowSpan: undefined,
|
|
3798
3748
|
},
|
|
3799
|
-
])
|
|
3749
|
+
]),
|
|
3800
3750
|
);
|
|
3801
3751
|
};
|
|
3802
3752
|
_proto2.render = function render(context, instance, key) {
|
|
@@ -3844,7 +3794,7 @@ var ContentPlaceholder = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
3844
3794
|
{
|
|
3845
3795
|
name: undefined,
|
|
3846
3796
|
},
|
|
3847
|
-
])
|
|
3797
|
+
]),
|
|
3848
3798
|
);
|
|
3849
3799
|
};
|
|
3850
3800
|
_proto.explore = function explore(context, instance) {
|
|
@@ -4115,7 +4065,7 @@ var History = /*#__PURE__*/ (function () {
|
|
|
4115
4065
|
window.history[op](tr.state, tr.title, tr.url);
|
|
4116
4066
|
if (subscribers) subscribers.notify(tr.url, op);
|
|
4117
4067
|
}
|
|
4118
|
-
}
|
|
4068
|
+
},
|
|
4119
4069
|
);
|
|
4120
4070
|
return changed;
|
|
4121
4071
|
};
|
|
@@ -4208,16 +4158,12 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
|
|
|
4208
4158
|
.join(":");
|
|
4209
4159
|
})
|
|
4210
4160
|
.join("|");
|
|
4211
|
-
var $group =
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
$records: gr.records || [],
|
|
4218
|
-
$key: key,
|
|
4219
|
-
}
|
|
4220
|
-
);
|
|
4161
|
+
var $group = _extends({}, gr.key, gr.aggregates, {
|
|
4162
|
+
$name: gr.name,
|
|
4163
|
+
$level: inverseLevel,
|
|
4164
|
+
$records: gr.records || [],
|
|
4165
|
+
$key: key,
|
|
4166
|
+
});
|
|
4221
4167
|
var data =
|
|
4222
4168
|
((_data = {}),
|
|
4223
4169
|
(_data[_this.recordName] = gr.records.length > 0 ? gr.records[0].data : null),
|
|
@@ -4238,26 +4184,18 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
|
|
|
4238
4184
|
};
|
|
4239
4185
|
if (grouping.includeHeader !== false)
|
|
4240
4186
|
result.push(
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
type: "group-header",
|
|
4246
|
-
key: "header:" + group.key,
|
|
4247
|
-
}
|
|
4248
|
-
)
|
|
4187
|
+
_extends({}, group, {
|
|
4188
|
+
type: "group-header",
|
|
4189
|
+
key: "header:" + group.key,
|
|
4190
|
+
}),
|
|
4249
4191
|
);
|
|
4250
4192
|
_this.processLevel(keys, gr.records, result, groupStore);
|
|
4251
4193
|
if (grouping.includeFooter !== false)
|
|
4252
4194
|
result.push(
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
type: "group-footer",
|
|
4258
|
-
key: "footer:" + group.key,
|
|
4259
|
-
}
|
|
4260
|
-
)
|
|
4195
|
+
_extends({}, group, {
|
|
4196
|
+
type: "group-footer",
|
|
4197
|
+
key: "footer:" + group.key,
|
|
4198
|
+
}),
|
|
4261
4199
|
);
|
|
4262
4200
|
keys.pop();
|
|
4263
4201
|
});
|
|
@@ -4284,11 +4222,11 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
|
|
|
4284
4222
|
}
|
|
4285
4223
|
g.grouper = new Grouper(
|
|
4286
4224
|
key,
|
|
4287
|
-
|
|
4225
|
+
_extends({}, _this2.aggregates, g.aggregates),
|
|
4288
4226
|
function (r) {
|
|
4289
4227
|
return r.store.getData();
|
|
4290
4228
|
},
|
|
4291
|
-
g.text
|
|
4229
|
+
g.text,
|
|
4292
4230
|
);
|
|
4293
4231
|
g.comparer = null;
|
|
4294
4232
|
if (groupSorters.length > 0)
|
|
@@ -4297,7 +4235,7 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
|
|
|
4297
4235
|
function (x) {
|
|
4298
4236
|
return x.key;
|
|
4299
4237
|
},
|
|
4300
|
-
_this2.sortOptions ? Culture.getComparer(_this2.sortOptions) : null
|
|
4238
|
+
_this2.sortOptions ? Culture.getComparer(_this2.sortOptions) : null,
|
|
4301
4239
|
);
|
|
4302
4240
|
});
|
|
4303
4241
|
} else throw new Error("Invalid grouping provided.");
|
|
@@ -4320,7 +4258,7 @@ var TreeAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
|
|
|
4320
4258
|
if (this.restoreExpandedNodesOnLoad) {
|
|
4321
4259
|
if (!this.keyField)
|
|
4322
4260
|
throw new Error(
|
|
4323
|
-
"Stateful tree adapter requires keyField property to be specified on either Grid or data adapter."
|
|
4261
|
+
"Stateful tree adapter requires keyField property to be specified on either Grid or data adapter.",
|
|
4324
4262
|
);
|
|
4325
4263
|
this.expandedState = {
|
|
4326
4264
|
next: new Set(),
|
|
@@ -4365,7 +4303,7 @@ var TreeAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
|
|
|
4365
4303
|
instance,
|
|
4366
4304
|
data[this.childrenField],
|
|
4367
4305
|
store,
|
|
4368
|
-
this.childrenAccessor
|
|
4306
|
+
this.childrenAccessor,
|
|
4369
4307
|
);
|
|
4370
4308
|
this.processList(context, instance, level + 1, record.key + ":", childNodes, result);
|
|
4371
4309
|
} else if (this.load && !data[this.loadedField] && !data[this.loadingField]) {
|