cx 25.6.2 → 25.7.0
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.css +250 -250
- package/dist/charts.js +109 -109
- package/dist/data.js +19 -19
- package/dist/hooks.js +1 -1
- package/dist/manifest.js +776 -776
- package/dist/svg.js +25 -25
- package/dist/ui.js +84 -84
- package/dist/util.js +6 -9
- package/dist/widgets.css +11 -6
- package/dist/widgets.js +591 -543
- package/package.json +1 -1
- package/src/charts/Marker.d.ts +1 -1
- package/src/charts/MarkerLine.d.ts +25 -27
- package/src/data/ExposedValueView.d.ts +2 -2
- package/src/util/isFunction.d.ts +1 -1
- package/src/widgets/Sandbox.d.ts +3 -1
- package/src/widgets/Sandbox.js +2 -0
- package/src/widgets/form/MonthPicker.d.ts +8 -0
- package/src/widgets/form/MonthPicker.js +65 -23
- package/src/widgets/form/MonthPicker.scss +4 -0
- package/src/widgets/grid/Grid.js +28 -23
package/dist/data.js
CHANGED
|
@@ -128,7 +128,7 @@ function _extends() {
|
|
|
128
128
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
129
129
|
}
|
|
130
130
|
return n;
|
|
131
|
-
|
|
131
|
+
}),
|
|
132
132
|
_extends.apply(null, arguments)
|
|
133
133
|
);
|
|
134
134
|
}
|
|
@@ -149,7 +149,7 @@ function _setPrototypeOf(t, e) {
|
|
|
149
149
|
? Object.setPrototypeOf.bind()
|
|
150
150
|
: function (t, e) {
|
|
151
151
|
return (t.__proto__ = e), t;
|
|
152
|
-
|
|
152
|
+
}),
|
|
153
153
|
_setPrototypeOf(t, e)
|
|
154
154
|
);
|
|
155
155
|
}
|
|
@@ -199,7 +199,7 @@ function computable() {
|
|
|
199
199
|
null,
|
|
200
200
|
inputs.map(function (s) {
|
|
201
201
|
return s(data);
|
|
202
|
-
})
|
|
202
|
+
})
|
|
203
203
|
);
|
|
204
204
|
};
|
|
205
205
|
selector.memoize = memoize;
|
|
@@ -368,8 +368,8 @@ function expression(str) {
|
|
|
368
368
|
}),
|
|
369
369
|
helperNames,
|
|
370
370
|
keys,
|
|
371
|
-
[body]
|
|
372
|
-
)
|
|
371
|
+
[body]
|
|
372
|
+
)
|
|
373
373
|
)).bind.apply(_Function, [Format, Format.value].concat(formats, helperValues));
|
|
374
374
|
var selector = computable.apply(
|
|
375
375
|
void 0,
|
|
@@ -377,7 +377,7 @@ function expression(str) {
|
|
|
377
377
|
.map(function (k) {
|
|
378
378
|
return args[k];
|
|
379
379
|
})
|
|
380
|
-
.concat([compute])
|
|
380
|
+
.concat([compute])
|
|
381
381
|
);
|
|
382
382
|
cache[str] = selector;
|
|
383
383
|
return selector;
|
|
@@ -767,7 +767,7 @@ View.prototype.sealed = false; //indicate that data should be copied before virt
|
|
|
767
767
|
//Immer integration point
|
|
768
768
|
View.prototype.mutate = function () {
|
|
769
769
|
throw new Error(
|
|
770
|
-
"Mutate requires Immer. Please install 'immer' and 'cx-immer' packages and enable store mutation by calling enableImmerMutate()."
|
|
770
|
+
"Mutate requires Immer. Please install 'immer' and 'cx-immer' packages and enable store mutation by calling enableImmerMutate()."
|
|
771
771
|
);
|
|
772
772
|
};
|
|
773
773
|
|
|
@@ -912,7 +912,7 @@ var ExposedRecordView = /*#__PURE__*/ (function (_View) {
|
|
|
912
912
|
var newCollection = [].concat(
|
|
913
913
|
collection.slice(0, this.itemIndex),
|
|
914
914
|
[record],
|
|
915
|
-
collection.slice(this.itemIndex + 1)
|
|
915
|
+
collection.slice(this.itemIndex + 1)
|
|
916
916
|
);
|
|
917
917
|
return this.store.setItem(this.collectionBinding.path, newCollection);
|
|
918
918
|
}
|
|
@@ -1646,7 +1646,7 @@ var Grouper = /*#__PURE__*/ (function () {
|
|
|
1646
1646
|
aggregates: resolveKeyPaths(
|
|
1647
1647
|
transformValues(g.aggregates, function (p) {
|
|
1648
1648
|
return p.processor.getResult();
|
|
1649
|
-
})
|
|
1649
|
+
})
|
|
1650
1650
|
),
|
|
1651
1651
|
});
|
|
1652
1652
|
} else {
|
|
@@ -1696,17 +1696,17 @@ function getComparer(sorters, dataAccessor, comparer) {
|
|
|
1696
1696
|
var selector = isDefined(s.value)
|
|
1697
1697
|
? getSelector(s.value)
|
|
1698
1698
|
: s.field
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1699
|
+
? function (x) {
|
|
1700
|
+
return x[s.field];
|
|
1701
|
+
}
|
|
1702
|
+
: function () {
|
|
1703
|
+
return null;
|
|
1704
|
+
};
|
|
1705
1705
|
return {
|
|
1706
1706
|
getter: dataAccessor
|
|
1707
1707
|
? function (x) {
|
|
1708
1708
|
return selector(dataAccessor(x));
|
|
1709
|
-
|
|
1709
|
+
}
|
|
1710
1710
|
: selector,
|
|
1711
1711
|
factor: s.direction && s.direction[0].toLowerCase() == "d" ? -1 : 1,
|
|
1712
1712
|
compare: s.comparer || s.compare || comparer || defaultCompare,
|
|
@@ -1741,7 +1741,7 @@ function indexSorter(sorters, dataAccessor, compare) {
|
|
|
1741
1741
|
},
|
|
1742
1742
|
function (v, k) {
|
|
1743
1743
|
return k;
|
|
1744
|
-
}
|
|
1744
|
+
}
|
|
1745
1745
|
);
|
|
1746
1746
|
result.sort(function (ia, ib) {
|
|
1747
1747
|
return cmp(data[ia], data[ib]);
|
|
@@ -1817,7 +1817,7 @@ function updateTree(array, updateCallback, itemFilter, childrenField, removeFilt
|
|
|
1817
1817
|
return item;
|
|
1818
1818
|
},
|
|
1819
1819
|
null,
|
|
1820
|
-
removeFilter
|
|
1820
|
+
removeFilter
|
|
1821
1821
|
);
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
@@ -1832,7 +1832,7 @@ function removeTreeNodes(array, criteria, childrenField) {
|
|
|
1832
1832
|
return false;
|
|
1833
1833
|
},
|
|
1834
1834
|
childrenField,
|
|
1835
|
-
criteria
|
|
1835
|
+
criteria
|
|
1836
1836
|
);
|
|
1837
1837
|
}
|
|
1838
1838
|
|
package/dist/hooks.js
CHANGED
|
@@ -85,7 +85,7 @@ function useState(defaultValue) {
|
|
|
85
85
|
set: function set(value) {
|
|
86
86
|
var _instance$setState2;
|
|
87
87
|
return instance.setState(
|
|
88
|
-
((_instance$setState2 = {}), (_instance$setState2[storeKey] = value), _instance$setState2)
|
|
88
|
+
((_instance$setState2 = {}), (_instance$setState2[storeKey] = value), _instance$setState2)
|
|
89
89
|
);
|
|
90
90
|
},
|
|
91
91
|
});
|