pixel-react 1.14.42 → 1.14.43
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/lib/assets/icons/beautify_icon.svg.js +1 -1
- package/lib/assets/icons/beautify_icon.svg.js.map +1 -1
- package/lib/components/Charts/BarChart/BarChart.js +6 -2
- package/lib/components/Charts/BarChart/BarChart.js.map +1 -1
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +5 -1
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js.map +1 -1
- package/lib/components/Charts/DashboardDonutChart/types.d.ts +1 -0
- package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js +3 -3
- package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +5 -3
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/Excel/Data.js +14 -14
- package/lib/components/Excel/Data.js.map +1 -1
- package/lib/components/Excel/Data2.js +2 -2
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js +3 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +2 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js +117 -40
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +3 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js +7 -7
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js.map +1 -1
- package/lib/components/SessionDropdown/SessionDropdown.js +0 -2
- package/lib/components/SessionDropdown/SessionDropdown.js.map +1 -1
- package/lib/index.cjs +688 -567
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +39 -0
- package/lib/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js.map +1 -0
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
@@ -2815,6 +2815,7 @@ type DashboardDonutChartProps = {
|
|
2815
2815
|
selectedStatusKey?: string;
|
2816
2816
|
setSelectedStatusKey?: (_selectedStatusKey: string) => void;
|
2817
2817
|
isOnClick?: boolean;
|
2818
|
+
zIndex?: number;
|
2818
2819
|
};
|
2819
2820
|
|
2820
2821
|
declare const DashboardDonutChart: React__default.FC<DashboardDonutChartProps>;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { tzParseTimezone } from '../_lib/tzParseTimezone/index.js';
|
2
|
+
import { toDate } from '../toDate/index.js';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @name toZonedTime
|
6
|
+
* @category Time Zone Helpers
|
7
|
+
* @summary Get a date/time representing local time in a given time zone from the UTC date
|
8
|
+
*
|
9
|
+
* @description
|
10
|
+
* Returns a date instance with values representing the local time in the time zone
|
11
|
+
* specified of the UTC time from the date provided. In other words, when the new date
|
12
|
+
* is formatted it will show the equivalent hours in the target time zone regardless
|
13
|
+
* of the current system time zone.
|
14
|
+
*
|
15
|
+
* @param date the date with the relevant UTC time
|
16
|
+
* @param timeZone the time zone to get local time for, can be an offset or IANA time zone
|
17
|
+
* @param options the object with options. See [Options]{@link https://date-fns.org/docs/Options}
|
18
|
+
* @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
|
19
|
+
*
|
20
|
+
* @throws {TypeError} 2 arguments required
|
21
|
+
* @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
|
22
|
+
*
|
23
|
+
* @example
|
24
|
+
* // In June 10am UTC is 6am in New York (-04:00)
|
25
|
+
* const result = toZonedTime('2014-06-25T10:00:00.000Z', 'America/New_York')
|
26
|
+
* //=> Jun 25 2014 06:00:00
|
27
|
+
*/
|
28
|
+
function toZonedTime(date, timeZone, options) {
|
29
|
+
date = toDate(date, options);
|
30
|
+
const offsetMilliseconds = tzParseTimezone(timeZone, date, true);
|
31
|
+
const d = new Date(date.getTime() - offsetMilliseconds);
|
32
|
+
const resultDate = new Date(0);
|
33
|
+
resultDate.setFullYear(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate());
|
34
|
+
resultDate.setHours(d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds());
|
35
|
+
return resultDate;
|
36
|
+
}
|
37
|
+
|
38
|
+
export { toZonedTime };
|
39
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/date-fns-tz/dist/esm/toZonedTime/index.js"],"sourcesContent":["import { tzParseTimezone } from '../_lib/tzParseTimezone/index.js';\nimport { toDate } from '../toDate/index.js';\n/**\n * @name toZonedTime\n * @category Time Zone Helpers\n * @summary Get a date/time representing local time in a given time zone from the UTC date\n *\n * @description\n * Returns a date instance with values representing the local time in the time zone\n * specified of the UTC time from the date provided. In other words, when the new date\n * is formatted it will show the equivalent hours in the target time zone regardless\n * of the current system time zone.\n *\n * @param date the date with the relevant UTC time\n * @param timeZone the time zone to get local time for, can be an offset or IANA time zone\n * @param options the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n *\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // In June 10am UTC is 6am in New York (-04:00)\n * const result = toZonedTime('2014-06-25T10:00:00.000Z', 'America/New_York')\n * //=> Jun 25 2014 06:00:00\n */\nexport function toZonedTime(date, timeZone, options) {\n date = toDate(date, options);\n const offsetMilliseconds = tzParseTimezone(timeZone, date, true);\n const d = new Date(date.getTime() - offsetMilliseconds);\n const resultDate = new Date(0);\n resultDate.setFullYear(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate());\n resultDate.setHours(d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds());\n return resultDate;\n}\n"],"names":["toZonedTime","date","timeZone","options","toDate","offsetMilliseconds","tzParseTimezone","d","Date","getTime","resultDate","setFullYear","getUTCFullYear","getUTCMonth","getUTCDate","setHours","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds"],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,WAAWA,CAACC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAE;AACjDF,EAAAA,IAAI,GAAGG,MAAM,CAACH,IAAI,EAAEE,OAAO,CAAC;EAC5B,MAAME,kBAAkB,GAAGC,eAAe,CAACJ,QAAQ,EAAED,IAAI,EAAE,IAAI,CAAC;AAChE,EAAA,MAAMM,CAAC,GAAG,IAAIC,IAAI,CAACP,IAAI,CAACQ,OAAO,EAAE,GAAGJ,kBAAkB,CAAC;AACvD,EAAA,MAAMK,UAAU,GAAG,IAAIF,IAAI,CAAC,CAAC,CAAC;EAC9BE,UAAU,CAACC,WAAW,CAACJ,CAAC,CAACK,cAAc,EAAE,EAAEL,CAAC,CAACM,WAAW,EAAE,EAAEN,CAAC,CAACO,UAAU,EAAE,CAAC;EAC3EJ,UAAU,CAACK,QAAQ,CAACR,CAAC,CAACS,WAAW,EAAE,EAAET,CAAC,CAACU,aAAa,EAAE,EAAEV,CAAC,CAACW,aAAa,EAAE,EAAEX,CAAC,CAACY,kBAAkB,EAAE,CAAC;AAClG,EAAA,OAAOT,UAAU;AACrB;;;;","x_google_ignoreList":[0]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as tokenizer } from '../../../../../_virtual/
|
1
|
+
import { __exports as tokenizer } from '../../../../../_virtual/tokenizer.js';
|
2
2
|
import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
|
3
3
|
import { __require as requireDirectives } from '../core/directives.js';
|
4
4
|
import { __require as requireTemplatablepattern } from '../core/templatablepattern.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as tokenizer } from '../../../../../_virtual/
|
1
|
+
import { __exports as tokenizer } from '../../../../../_virtual/tokenizer2.js';
|
2
2
|
import { __require as requireInputscanner } from '../core/inputscanner.js';
|
3
3
|
import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
|
4
4
|
import { __require as requireDirectives } from '../core/directives.js';
|