@nocobase/plugin-data-visualization 1.4.0-alpha.20240910145333 → 1.4.0-alpha.20240914084300

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.
Files changed (37) hide show
  1. package/dist/client/filter/utils.d.ts +2 -1
  2. package/dist/client/index.js +24 -24
  3. package/dist/externalVersion.js +7 -7
  4. package/dist/node_modules/koa-compose/package.json +1 -1
  5. package/dist/node_modules/moment-timezone/LICENSE +20 -0
  6. package/dist/node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.js +1548 -0
  7. package/dist/node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.min.js +1 -0
  8. package/dist/node_modules/moment-timezone/builds/moment-timezone-with-data-1970-2030.js +1548 -0
  9. package/dist/node_modules/moment-timezone/builds/moment-timezone-with-data-1970-2030.min.js +1 -0
  10. package/dist/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.js +1560 -0
  11. package/dist/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.min.js +1 -0
  12. package/dist/node_modules/moment-timezone/builds/moment-timezone-with-data.js +1548 -0
  13. package/dist/node_modules/moment-timezone/builds/moment-timezone-with-data.min.js +1 -0
  14. package/dist/node_modules/moment-timezone/builds/moment-timezone.min.js +1 -0
  15. package/dist/node_modules/moment-timezone/composer.json +43 -0
  16. package/dist/node_modules/moment-timezone/data/meta/latest.json +5889 -0
  17. package/dist/node_modules/moment-timezone/data/packed/latest.json +852 -0
  18. package/dist/node_modules/moment-timezone/index.d.ts +78 -0
  19. package/dist/node_modules/moment-timezone/index.js +15 -0
  20. package/dist/node_modules/moment-timezone/moment-timezone-utils.d.ts +70 -0
  21. package/dist/node_modules/moment-timezone/moment-timezone-utils.js +339 -0
  22. package/dist/node_modules/moment-timezone/moment-timezone.js +696 -0
  23. package/dist/node_modules/moment-timezone/package.json +1 -0
  24. package/dist/server/actions/query.js +10 -6
  25. package/dist/server/formatter/formatter.d.ts +27 -0
  26. package/dist/server/formatter/formatter.js +85 -0
  27. package/dist/server/formatter/index.d.ts +13 -0
  28. package/dist/server/formatter/index.js +50 -0
  29. package/dist/server/formatter/mysql-formatter.d.ts +14 -0
  30. package/dist/server/formatter/mysql-formatter.js +86 -0
  31. package/dist/server/formatter/postgres-formatter.d.ts +14 -0
  32. package/dist/server/formatter/postgres-formatter.js +74 -0
  33. package/dist/server/formatter/sqlite-formatter.d.ts +15 -0
  34. package/dist/server/formatter/sqlite-formatter.js +83 -0
  35. package/package.json +2 -2
  36. package/dist/server/actions/formatter.d.ts +0 -12
  37. package/dist/server/actions/formatter.js +0 -101
@@ -0,0 +1 @@
1
+ !function(t,e){"use strict";"object"==typeof module&&module.exports?module.exports=e(require("moment")):"function"==typeof define&&define.amd?define(["moment"],e):e(t.moment)}(this,function(r){"use strict";void 0===r.version&&r.default&&(r=r.default);var e,a={},s={},i={},c={},l={},t=(r&&"string"==typeof r.version||D("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/"),r.version.split(".")),n=+t[0],o=+t[1];function f(t){return 96<t?t-87:64<t?t-29:t-48}function u(t){var e=0,n=t.split("."),o=n[0],r=n[1]||"",s=1,i=0,n=1;for(45===t.charCodeAt(0)&&(n=-(e=1));e<o.length;e++)i=60*i+f(o.charCodeAt(e));for(e=0;e<r.length;e++)s/=60,i+=f(r.charCodeAt(e))*s;return i*n}function h(t){for(var e=0;e<t.length;e++)t[e]=u(t[e])}function p(t,e){for(var n=[],o=0;o<e.length;o++)n[o]=t[e[o]];return n}function m(t){for(var t=t.split("|"),e=t[2].split(" "),n=t[3].split(""),o=t[4].split(" "),r=(h(e),h(n),h(o),o),s=n.length,i=0;i<s;i++)r[i]=Math.round((r[i-1]||0)+6e4*r[i]);return r[s-1]=1/0,{name:t[0],abbrs:p(t[1].split(" "),n),offsets:p(e,n),untils:o,population:0|t[5]}}function d(t){t&&this._set(m(t))}function z(t,e){this.name=t,this.zones=e}function v(t){var e=t.toTimeString(),n=e.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=e.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+t,this.abbr=n,this.offset=t.getTimezoneOffset()}function b(t){this.zone=t,this.offsetScore=0,this.abbrScore=0}function g(){for(var t,e,n=(new Date).getFullYear()-2,o=new v(new Date(n,0,1)),r=[o],s=1;s<48;s++)(e=new v(new Date(n,s,1))).offset!==o.offset&&(t=function(t,e){for(var n;n=6e4*((e.at-t.at)/12e4|0);)(n=new v(new Date(t.at+n))).offset===t.offset?t=n:e=n;return t}(o,e),r.push(t),r.push(new v(new Date(t.at+6e4)))),o=e;for(s=0;s<4;s++)r.push(new v(new Date(n+s,0,1))),r.push(new v(new Date(n+s,6,1)));return r}function _(t,e){return t.offsetScore!==e.offsetScore?t.offsetScore-e.offsetScore:t.abbrScore!==e.abbrScore?t.abbrScore-e.abbrScore:t.zone.population!==e.zone.population?e.zone.population-t.zone.population:e.zone.name.localeCompare(t.zone.name)}function w(){try{var t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(t&&3<t.length){var e=c[y(t)];if(e)return e;D("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(t){}for(var n,o,r=g(),s=r.length,i=function(t){for(var e,n,o=t.length,r={},s=[],i=0;i<o;i++)for(e in n=l[t[i].offset]||{})n.hasOwnProperty(e)&&(r[e]=!0);for(i in r)r.hasOwnProperty(i)&&s.push(c[i]);return s}(r),f=[],u=0;u<i.length;u++){for(n=new b(S(i[u])),o=0;o<s;o++)n.scoreOffsetAt(r[o]);f.push(n)}return f.sort(_),0<f.length?f[0].zone.name:void 0}function y(t){return(t||"").toLowerCase().replace(/\//g,"_")}function O(t){var e,n,o,r;for("string"==typeof t&&(t=[t]),e=0;e<t.length;e++){r=y(n=(o=t[e].split("|"))[0]),a[r]=t[e],c[r]=n,i=s=u=f=void 0;var s,i,f=r,u=o[2].split(" ");for(h(u),s=0;s<u.length;s++)i=u[s],l[i]=l[i]||{},l[i][f]=!0}}function S(t,e){t=y(t);var n=a[t];return n instanceof d?n:"string"==typeof n?(n=new d(n),a[t]=n):s[t]&&e!==S&&(e=S(s[t],S))?((n=a[t]=new d)._set(e),n.name=c[t],n):null}function M(t){var e,n,o,r;for("string"==typeof t&&(t=[t]),e=0;e<t.length;e++)o=y((n=t[e].split("|"))[0]),r=y(n[1]),s[o]=r,c[o]=n[0],s[r]=o,c[r]=n[1]}function j(t){return j.didShowError||(j.didShowError=!0,D("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!S(t)}function A(t){var e="X"===t._f||"x"===t._f;return!(!t._a||void 0!==t._tzm||e)}function D(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t)}function T(t){var e=Array.prototype.slice.call(arguments,0,-1),n=arguments[arguments.length-1],o=S(n),e=r.utc.apply(null,e);return o&&!r.isMoment(t)&&A(e)&&e.add(o.parse(e),"minutes"),e.tz(n),e}(n<2||2==n&&o<6)&&D("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+r.version+". See momentjs.com"),d.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){for(var e=+t,n=this.untils,o=0;o<n.length;o++)if(e<n[o])return o},countries:function(){var e=this.name;return Object.keys(i).filter(function(t){return-1!==i[t].zones.indexOf(e)})},parse:function(t){for(var e,n,o,r=+t,s=this.offsets,i=this.untils,f=i.length-1,u=0;u<f;u++)if(e=s[u],n=s[u+1],o=s[u&&u-1],e<n&&T.moveAmbiguousForward?e=n:o<e&&T.moveInvalidForward&&(e=o),r<i[u]-6e4*e)return s[u];return s[f]},abbr:function(t){return this.abbrs[this._index(t)]},offset:function(t){return D("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(t)]},utcOffset:function(t){return this.offsets[this._index(t)]}},b.prototype.scoreOffsetAt=function(t){this.offsetScore+=Math.abs(this.zone.utcOffset(t.at)-t.offset),this.zone.abbr(t.at).replace(/[^A-Z]/g,"")!==t.abbr&&this.abbrScore++},T.version="0.5.43",T.dataVersion="",T._zones=a,T._links=s,T._names=c,T._countries=i,T.add=O,T.link=M,T.load=function(t){O(t.zones),M(t.links);var e,n,o,r=t.countries;if(r&&r.length)for(e=0;e<r.length;e++)n=(o=r[e].split("|"))[0].toUpperCase(),o=o[1].split(" "),i[n]=new z(n,o);T.dataVersion=t.version},T.zone=S,T.zoneExists=j,T.guess=function(t){return e=e&&!t?e:w()},T.names=function(){var t,e=[];for(t in c)c.hasOwnProperty(t)&&(a[t]||a[s[t]])&&c[t]&&e.push(c[t]);return e.sort()},T.Zone=d,T.unpack=m,T.unpackBase60=u,T.needsOffset=A,T.moveInvalidForward=!0,T.moveAmbiguousForward=!1,T.countries=function(){return Object.keys(i)},T.zonesForCountry=function(t,e){var n;return n=(n=t).toUpperCase(),(t=i[n]||null)?(n=t.zones.sort(),e?n.map(function(t){return{name:t,offset:S(t).utcOffset(new Date)}}):n):null};var x,t=r.fn;function C(t){return function(){return this._z?this._z.abbr(this):t.call(this)}}function Z(t){return function(){return this._z=null,t.apply(this,arguments)}}r.tz=T,r.defaultZone=null,r.updateOffset=function(t,e){var n,o=r.defaultZone;void 0===t._z&&(o&&A(t)&&!t._isUTC&&(t._d=r.utc(t._a)._d,t.utc().add(o.parse(t),"minutes")),t._z=o),t._z&&(o=t._z.utcOffset(t),Math.abs(o)<16&&(o/=60),void 0!==t.utcOffset?(n=t._z,t.utcOffset(-o,e),t._z=n):t.zone(o,e))},t.tz=function(t,e){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=S(t),this._z?r.updateOffset(this,e):D("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},t.zoneName=C(t.zoneName),t.zoneAbbr=C(t.zoneAbbr),t.utc=Z(t.utc),t.local=Z(t.local),t.utcOffset=(x=t.utcOffset,function(){return 0<arguments.length&&(this._z=null),x.apply(this,arguments)}),r.tz.setDefault=function(t){return(n<2||2==n&&o<9)&&D("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+r.version+"."),r.defaultZone=t?S(t):null,r};t=r.momentProperties;return"[object Array]"===Object.prototype.toString.call(t)?(t.push("_z"),t.push("_a")):t&&(t._z=null),r});
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "moment/moment-timezone",
3
+ "description": "Parse and display dates in any timezone",
4
+ "version": "0.5.43",
5
+ "keywords": [
6
+ "moment",
7
+ "date",
8
+ "time",
9
+ "timezone",
10
+ "olson",
11
+ "iana",
12
+ "zone",
13
+ "tz"
14
+ ],
15
+ "homepage": "http://momentjs.com/timezone/",
16
+ "license": "MIT",
17
+ "support": {
18
+ "issues": "https://github.com/moment/moment-timezone/issues",
19
+ "source": "https://github.com/moment/moment-timezone"
20
+ },
21
+ "authors": [
22
+ {
23
+ "name": "Tim Wood",
24
+ "email": "washwithcare@gmail.com",
25
+ "homepage": "http://timwoodcreates.com/"
26
+ }
27
+ ],
28
+ "type": "component",
29
+ "require": {
30
+ "robloach/component-installer": "*",
31
+ "moment/moment": ">=2.9.0"
32
+ },
33
+ "extra": {
34
+ "component": {
35
+ "scripts": [
36
+ "moment-timezone.js"
37
+ ],
38
+ "files": [
39
+ "builds/*.js"
40
+ ]
41
+ }
42
+ }
43
+ }