cx 24.3.7 → 24.3.9
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 +35 -35
- package/dist/data.js +83 -42
- package/dist/manifest.js +799 -775
- package/dist/svg.js +11 -11
- package/dist/ui.js +224 -95
- package/dist/util.js +6 -1
- package/dist/widgets.js +151 -154
- package/package.json +1 -1
- package/src/data/Expression.d.ts +17 -16
- package/src/data/Expression.js +220 -212
- package/src/data/Grouper.js +144 -120
- package/src/data/Grouper.spec.js +57 -42
- package/src/data/StringTemplate.d.ts +15 -14
- package/src/data/StringTemplate.js +92 -85
- package/src/ui/Culture.d.ts +47 -23
- package/src/ui/Culture.js +132 -76
- package/src/ui/CultureScope.d.ts +10 -0
- package/src/ui/CultureScope.js +53 -0
- package/src/ui/Format.js +107 -87
- package/src/ui/adapter/GroupAdapter.js +141 -138
- package/src/ui/index.d.ts +43 -42
- package/src/ui/index.js +45 -44
- package/src/util/Format.d.ts +18 -14
- package/src/util/Format.js +234 -242
- package/src/widgets/grid/Grid.js +10 -6
package/dist/util.js
CHANGED
|
@@ -284,7 +284,7 @@ function buildFormatter(format) {
|
|
|
284
284
|
var format = {
|
|
285
285
|
cache: {},
|
|
286
286
|
};
|
|
287
|
-
function
|
|
287
|
+
function getDefaultFormatCache() {
|
|
288
288
|
if (format.cacheIdentifier != GlobalCacheIdentifier.get()) {
|
|
289
289
|
format = {
|
|
290
290
|
cache: {},
|
|
@@ -293,6 +293,10 @@ function getFormatCache() {
|
|
|
293
293
|
}
|
|
294
294
|
return format.cache;
|
|
295
295
|
}
|
|
296
|
+
var getFormatCache = getDefaultFormatCache;
|
|
297
|
+
function setGetFormatCacheCallback(callback) {
|
|
298
|
+
getFormatCache = callback;
|
|
299
|
+
}
|
|
296
300
|
function getFormatter(format) {
|
|
297
301
|
if (!format) format = "";
|
|
298
302
|
var formatCache = getFormatCache();
|
|
@@ -1529,6 +1533,7 @@ export {
|
|
|
1529
1533
|
routeAppend,
|
|
1530
1534
|
sameDate,
|
|
1531
1535
|
scrollElementIntoView,
|
|
1536
|
+
setGetFormatCacheCallback,
|
|
1532
1537
|
shallowEquals,
|
|
1533
1538
|
shouldUpdateFlag,
|
|
1534
1539
|
stopPropagation,
|