pixel-react 1.14.42 → 1.14.44
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/StyleGuide/ColorPalette/colorPaletteList.js +10 -0
- package/lib/StyleGuide/ColorPalette/colorPaletteList.js.map +1 -1
- package/lib/assets/icons/beautify_icon.svg.js +1 -1
- package/lib/assets/icons/beautify_icon.svg.js.map +1 -1
- package/lib/assets/icons/fia_clear.svg.js +6 -0
- package/lib/assets/icons/fia_clear.svg.js.map +1 -0
- package/lib/assets/icons/fia_magic.svg.js +6 -0
- package/lib/assets/icons/fia_magic.svg.js.map +1 -0
- package/lib/assets/icons/fia_queries.svg.js +6 -0
- package/lib/assets/icons/fia_queries.svg.js.map +1 -0
- 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/ChatModalAi/ChatModalAi.d.ts +4 -0
- package/lib/components/ChatModalAi/ChatModalAi.js +122 -0
- package/lib/components/ChatModalAi/ChatModalAi.js.map +1 -0
- package/lib/components/ChatModalAi/index.d.ts +1 -0
- package/lib/components/ChatModalAi/index.js +2 -0
- package/lib/components/ChatModalAi/index.js.map +1 -0
- package/lib/components/ChatModalAi/types.d.ts +33 -0
- package/lib/components/ChatModalAi/types.js +2 -0
- package/lib/components/ChatModalAi/types.js.map +1 -0
- package/lib/components/ConditionalDropdown/ConditionalDropdown.js +1 -1
- package/lib/components/ConditionalDropdown/ConditionalDropdown.js.map +1 -1
- 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/ActiveCell.d.ts +4 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +6 -2
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
- 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/Selected.d.ts +7 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js +6 -2
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +8 -4
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +32 -25
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.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.d.ts +16 -3
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js +201 -33
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js.map +1 -1
- package/lib/components/Icon/iconList.js +6 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/MultiSelect/Dropdown.js +2 -0
- package/lib/components/MultiSelect/Dropdown.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 +1056 -624
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +37 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- 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/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.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/lib/tsconfig.tsbuildinfo +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>;
|
@@ -3929,6 +3930,41 @@ interface ChatModalProps {
|
|
3929
3930
|
|
3930
3931
|
declare const ChatModal: React__default.FC<ChatModalProps>;
|
3931
3932
|
|
3933
|
+
interface ChatModalRef {
|
3934
|
+
closeModal: () => void;
|
3935
|
+
}
|
3936
|
+
interface ChatModalAiProps {
|
3937
|
+
iconName: string;
|
3938
|
+
modalWidth: number;
|
3939
|
+
modalHeight: number;
|
3940
|
+
headerContent?: React.ReactNode;
|
3941
|
+
footerContent?: React.ReactNode;
|
3942
|
+
iconPosition: {
|
3943
|
+
top?: number;
|
3944
|
+
left?: number;
|
3945
|
+
bottom?: number;
|
3946
|
+
right?: number;
|
3947
|
+
};
|
3948
|
+
hoverIconPosition: {
|
3949
|
+
top?: number;
|
3950
|
+
left?: number;
|
3951
|
+
bottom?: number;
|
3952
|
+
right?: number;
|
3953
|
+
};
|
3954
|
+
modalPosition: {
|
3955
|
+
top?: number;
|
3956
|
+
left?: number;
|
3957
|
+
bottom?: number;
|
3958
|
+
right?: number;
|
3959
|
+
};
|
3960
|
+
children: ReactNode;
|
3961
|
+
iconHeight?: number;
|
3962
|
+
iconWidth?: number;
|
3963
|
+
hoverTitle?: string;
|
3964
|
+
}
|
3965
|
+
|
3966
|
+
declare const ChatModalAi: React$1.ForwardRefExoticComponent<ChatModalAiProps & React$1.RefAttributes<ChatModalRef>>;
|
3967
|
+
|
3932
3968
|
interface HistoryCardProps {
|
3933
3969
|
/**
|
3934
3970
|
* Is this the principal call to action on the page?
|
@@ -5517,5 +5553,5 @@ interface ScriptGenerationLoaderProps {
|
|
5517
5553
|
|
5518
5554
|
declare const ScriptGenerationLoader: React__default.FC<ScriptGenerationLoaderProps>;
|
5519
5555
|
|
5520
|
-
export { AADHAAR_REGEX, ALPHABET_ONLY_REGEX, ALPHABET_WITH_SPACES_ONLY_REGEX, ALPHANUMERIC_PARENTHESIS_REGEX, ALPHANUMERIC_REGEX, ALPHANUMERIC_WITH_DOT_REGEX, ALPHANUMERIC_WITH_ROUND_BRACES_REGEX, ALPHA_NUM_EXTENDED_REGEX, ALPHA_NUM_REGEX, Accordion, AddContentButton, AddResourceButton, AiToggle, AllProjectsDropdown, AnimatedSetting, AppHeader, AttachMedia, AttachmentButton, Avatar, BASE64_REGEX, BIG_END_WHITESPACE, BINARY_NUMBER_REGEX, BODY_TAG_TYPE_VALIDATION, BarChart, Card as Box, BrowserTabs, Button, CAMEL_CASE_REGEX, CERTIFICATES_NAME_REGEX, CHECK_CAMEL_CASE, CREDIT_CARD_REGEX, CURRENCY_GENERIC_REGEX, ChatModal, Checkbox, Chip, ChipWithCount, ChooseFile, Col, Comments, ConditionalDropdown, ConnectingBranch, Container, ContentCard, CreateVariableSlider, DATE_REGEX, DECIMAL_NUMBER_REGEX, DRIVING_LICENSE_REGEX, DYNAMIC_VALUE_PATTERN_REGEX, DYNAMIC_VALUE_TYPE_REGEX, DYNAMIC_VALUE_WITH_VALID_BRACKETS_REGEX, DYNAMIC_VALUE__PLACEHOLDER_REGEX, DashboardDonutChart, CustomDatePicker as DatePicker, DebugToolsPanel, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, ELEMENTS_TRAILING_SPACE_REGEX, ELEMENTS_WHITE_SPACE_REGEX, EMAIL_REGEX, EMAIL_VALIDATION_REGEX, EXCEL_SPACING_REGEX, EditLabel, EditTextField, Editor, ErrorBoundary, ExcelFile as Excel, ExpandableMenu, FILE_EXTENSION_REGEX, FILE_NAME_REGEX, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, formatString as FormatString, GSTIN_REGEX, HEXADECIMAL_NUMBER_REGEX, HEX_COLOR_REGEX, HSL_COLOR_REGEX, HTML_ATTRIBUTE_REGEX, HTML_FILE_TYPE_VALIDATION, HTML_TAG_REGEX, HighlightText, HistoryCard, INDIAN_CURRENCY_REGEX, INDIAN_PASSPORT_REGEX, INDIAN_PHONE_REGEX, INDIAN_PIN_CODE_REGEX, INTERNATIONAL_PHONE_REGEX, IPV4_REGEX, IPV6_REGEX, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, JAVASCRIPT_FILE_TYPE_VALIDATION, LINKEDIN_PROFILE_REGEX, LINK_VALIDATION_REGEX, LabelEditTextField, LineChart, LineLoader, Link, MAC_ADDRESS_REGEX, MEMORY_VALIDATION_REGEX, MachineInputField, MediaPreview, MediaViewerModal as MediaViewerModel, MenuOption, MessageBox, MiniModal, MobileSkin, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, NLP_DESCRIPTION_REGEX, NUMBERS_ONLY_REGEX, NUMBER_REGEX, NoDataContent, OsTree, OtpVerification, OverviewModal, PAN_CARD_REGEX, PARAMETER_ALPHANUMERIC_REGEX, PASSWORD_COMPLEX_REGEX, PASSWORD_SIMPLE_REGEX, PHONE_REGEX, POSTAL_CODE_REGEX, Paper, PhoneInputField, PieChart, PopUpModal, PrePostTable, ProgressBar, Prompt, PromptContainer, RGB_COLOR_REGEX, ROMAN_NUMERALS_REGEX, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, SCRIPT_REGEX, SSN_REGEX, START_END_WHITESPACE_REGEX, STEP_GROUP_NAME_REGEX, ScriptGenerationLoader, ScriptSwitchButton, Search, Select, SequentialConnectingBranch, SessionDropdown, SessionManager, StateDropdown, StatusButton, StatusCard, StatusIndicator, StepLandingTable, StepResultStats, SwitchButton, TIME_REGEX, TWITTER_HANDLE_REGEX, Table, TreeTable as TableTree, TableTreeFn, TableWithAccordion, Tabs, TabsWithSilder, Textarea as TextArea, TextEditor, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, TruncatedTooltip, Typography, UNIT_REGEX, URL_REGEX, USERNAME_REGEX, USERNAME_SPECIAL_REGEX, US_ZIP_CODE_REGEX, UUID_REGEX, VEHICLE_REGISTRATION_REGEX, VariableDropdown, VariableInput, VariableSuggestionInputDropDown, WHITESPACE_REGEX, XML_FILE_TYPE_VALIDATION, addPrePostStepGroup, addStepGroup, autoScrollToTableLastRow, capitalize, checkEmpty, checkMicrophoneAccess, clearStore, compareArrays, compareObjects, convertFormDataToObject, convertToBytes, convertToGB, convertToISO, debounce, deleteStoreValue, ffid, findAndInsert, formatDate, formatResponseDate, getEncryptedData, getExtension, getExtensionWithPeriod, getNavigateToKey, getSequentialPayload, getStoreValue, getTopVisibleNodeKey, getTreeDetails, handleTimeZoneChange, handleTreeExpandAllCollapseAll, handleTreeNodeExpandCollapse, handleTreeNodeSect, handleUnCheckAllTreeNodesWithUpdates, hasDuplicateFile, isEmptyObject, isTextTruncated, nlpInputDelay, rearrangeDragItem, saveFileFromBlob, scrollToView, setStoreValue, throttle, toCamelCase, toast, toggleShowHideEntity, truncateText, updateTreeState, useBeforeUnload, useClickOutside, useFileDropzone, useKeyboardActions, useTheme, useTriggerControl };
|
5556
|
+
export { AADHAAR_REGEX, ALPHABET_ONLY_REGEX, ALPHABET_WITH_SPACES_ONLY_REGEX, ALPHANUMERIC_PARENTHESIS_REGEX, ALPHANUMERIC_REGEX, ALPHANUMERIC_WITH_DOT_REGEX, ALPHANUMERIC_WITH_ROUND_BRACES_REGEX, ALPHA_NUM_EXTENDED_REGEX, ALPHA_NUM_REGEX, Accordion, AddContentButton, AddResourceButton, AiToggle, AllProjectsDropdown, AnimatedSetting, AppHeader, AttachMedia, AttachmentButton, Avatar, BASE64_REGEX, BIG_END_WHITESPACE, BINARY_NUMBER_REGEX, BODY_TAG_TYPE_VALIDATION, BarChart, Card as Box, BrowserTabs, Button, CAMEL_CASE_REGEX, CERTIFICATES_NAME_REGEX, CHECK_CAMEL_CASE, CREDIT_CARD_REGEX, CURRENCY_GENERIC_REGEX, ChatModal, ChatModalAi, Checkbox, Chip, ChipWithCount, ChooseFile, Col, Comments, ConditionalDropdown, ConnectingBranch, Container, ContentCard, CreateVariableSlider, DATE_REGEX, DECIMAL_NUMBER_REGEX, DRIVING_LICENSE_REGEX, DYNAMIC_VALUE_PATTERN_REGEX, DYNAMIC_VALUE_TYPE_REGEX, DYNAMIC_VALUE_WITH_VALID_BRACKETS_REGEX, DYNAMIC_VALUE__PLACEHOLDER_REGEX, DashboardDonutChart, CustomDatePicker as DatePicker, DebugToolsPanel, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, ELEMENTS_TRAILING_SPACE_REGEX, ELEMENTS_WHITE_SPACE_REGEX, EMAIL_REGEX, EMAIL_VALIDATION_REGEX, EXCEL_SPACING_REGEX, EditLabel, EditTextField, Editor, ErrorBoundary, ExcelFile as Excel, ExpandableMenu, FILE_EXTENSION_REGEX, FILE_NAME_REGEX, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, formatString as FormatString, GSTIN_REGEX, HEXADECIMAL_NUMBER_REGEX, HEX_COLOR_REGEX, HSL_COLOR_REGEX, HTML_ATTRIBUTE_REGEX, HTML_FILE_TYPE_VALIDATION, HTML_TAG_REGEX, HighlightText, HistoryCard, INDIAN_CURRENCY_REGEX, INDIAN_PASSPORT_REGEX, INDIAN_PHONE_REGEX, INDIAN_PIN_CODE_REGEX, INTERNATIONAL_PHONE_REGEX, IPV4_REGEX, IPV6_REGEX, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, JAVASCRIPT_FILE_TYPE_VALIDATION, LINKEDIN_PROFILE_REGEX, LINK_VALIDATION_REGEX, LabelEditTextField, LineChart, LineLoader, Link, MAC_ADDRESS_REGEX, MEMORY_VALIDATION_REGEX, MachineInputField, MediaPreview, MediaViewerModal as MediaViewerModel, MenuOption, MessageBox, MiniModal, MobileSkin, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, NLP_DESCRIPTION_REGEX, NUMBERS_ONLY_REGEX, NUMBER_REGEX, NoDataContent, OsTree, OtpVerification, OverviewModal, PAN_CARD_REGEX, PARAMETER_ALPHANUMERIC_REGEX, PASSWORD_COMPLEX_REGEX, PASSWORD_SIMPLE_REGEX, PHONE_REGEX, POSTAL_CODE_REGEX, Paper, PhoneInputField, PieChart, PopUpModal, PrePostTable, ProgressBar, Prompt, PromptContainer, RGB_COLOR_REGEX, ROMAN_NUMERALS_REGEX, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, SCRIPT_REGEX, SSN_REGEX, START_END_WHITESPACE_REGEX, STEP_GROUP_NAME_REGEX, ScriptGenerationLoader, ScriptSwitchButton, Search, Select, SequentialConnectingBranch, SessionDropdown, SessionManager, StateDropdown, StatusButton, StatusCard, StatusIndicator, StepLandingTable, StepResultStats, SwitchButton, TIME_REGEX, TWITTER_HANDLE_REGEX, Table, TreeTable as TableTree, TableTreeFn, TableWithAccordion, Tabs, TabsWithSilder, Textarea as TextArea, TextEditor, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, TruncatedTooltip, Typography, UNIT_REGEX, URL_REGEX, USERNAME_REGEX, USERNAME_SPECIAL_REGEX, US_ZIP_CODE_REGEX, UUID_REGEX, VEHICLE_REGISTRATION_REGEX, VariableDropdown, VariableInput, VariableSuggestionInputDropDown, WHITESPACE_REGEX, XML_FILE_TYPE_VALIDATION, addPrePostStepGroup, addStepGroup, autoScrollToTableLastRow, capitalize, checkEmpty, checkMicrophoneAccess, clearStore, compareArrays, compareObjects, convertFormDataToObject, convertToBytes, convertToGB, convertToISO, debounce, deleteStoreValue, ffid, findAndInsert, formatDate, formatResponseDate, getEncryptedData, getExtension, getExtensionWithPeriod, getNavigateToKey, getSequentialPayload, getStoreValue, getTopVisibleNodeKey, getTreeDetails, handleTimeZoneChange, handleTreeExpandAllCollapseAll, handleTreeNodeExpandCollapse, handleTreeNodeSect, handleUnCheckAllTreeNodesWithUpdates, hasDuplicateFile, isEmptyObject, isTextTruncated, nlpInputDelay, rearrangeDragItem, saveFileFromBlob, scrollToView, setStoreValue, throttle, toCamelCase, toast, toggleShowHideEntity, truncateText, updateTreeState, useBeforeUnload, useClickOutside, useFileDropzone, useKeyboardActions, useTheme, useTriggerControl };
|
5521
5557
|
export type { RootNode$1 as RootNode, TreeNodeProps };
|
package/lib/index.js
CHANGED
@@ -83,6 +83,7 @@ export { default as MobileSkin } from './components/MobileSkin/MobileSkin.js';
|
|
83
83
|
export { default as Prompt } from './components/Prompt/Prompt.js';
|
84
84
|
export { default as MessageBox } from './components/MessageBox/MessageBox.js';
|
85
85
|
export { default as ChatModal } from './components/ChatModal/ChatModal.js';
|
86
|
+
export { default as ChatModalAi } from './components/ChatModalAi/ChatModalAi.js';
|
86
87
|
export { default as HistoryCard } from './components/HistoryCard/HistoryCard.js';
|
87
88
|
export { default as AiToggle } from './components/AiToggle/AiToggle.js';
|
88
89
|
export { default as AnimatedSetting } from './components/AnimatedSetting/AnimatedSetting.js';
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -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 beautifier } from '../../../../../_virtual/
|
1
|
+
import { __exports as beautifier } from '../../../../../_virtual/beautifier2.js';
|
2
2
|
import { __require as requireOptions } from './options.js';
|
3
3
|
import { __require as requireOutput } from '../core/output.js';
|
4
4
|
import { __require as requireInputscanner } from '../core/inputscanner.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as beautifier } from '../../../../../_virtual/
|
1
|
+
import { __exports as beautifier } from '../../../../../_virtual/beautifier.js';
|
2
2
|
import { __require as requireOptions } from './options.js';
|
3
3
|
import { __require as requireOutput } from '../core/output.js';
|
4
4
|
import { __require as requireTokenizer } from './tokenizer.js';
|
@@ -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 beautifier } from '../../../../../_virtual/
|
1
|
+
import { __exports as beautifier } from '../../../../../_virtual/beautifier3.js';
|
2
2
|
import { __require as requireOutput } from '../core/output.js';
|
3
3
|
import { __require as requireToken } from '../core/token.js';
|
4
4
|
import { __require as requireAcorn } from './acorn.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';
|