@auronui/vue 1.2.0 → 1.2.1
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/cjs/index.cjs +13 -741
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/alert-dialog/AlertDialogBody.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/alert-dialog/AlertDialogContent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/alert-dialog/AlertDialogFooter.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/alert-dialog/AlertDialogHeader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/alert-dialog/AlertDialogIcon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/alert-dialog/AlertDialogOverlay.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/alert-dialog/AlertDialogTitle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/calendar/Calendar.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/calendar/Calendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/date-time-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +6 -8
- package/dist/components/date-time-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/date-time-picker/DateTimePickerTimeScroller.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/components/date-time-picker/DateTimePickerTimeScroller.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/drawer/Drawer.vue_vue_type_script_lang.js +1 -1
- package/dist/components/drawer/DrawerBody.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/drawer/DrawerClose.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/drawer/DrawerContent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/drawer/DrawerFooter.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/drawer/DrawerHeader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/drawer/DrawerMain.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/drawer/DrawerOverlay.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/drawer/DrawerTitle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/modal/ModalBody.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/modal/ModalClose.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/modal/ModalContent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/modal/ModalFooter.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/modal/ModalHeader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/modal/ModalOverlay.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/modal/ModalTitle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/popover/PopoverContent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/range-calendar/RangeCalendar.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/range-calendar/RangeCalendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tooltip/TooltipArrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/tooltip/TooltipContent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/index.d.ts +161 -161
- package/dist/packages/styles/{src → dist}/components/alert-dialog/alert-dialog.styles.js +1 -1
- package/dist/packages/styles/dist/components/alert-dialog/alert-dialog.styles.js.map +1 -0
- package/dist/packages/styles/{src → dist}/components/drawer/drawer.styles.js +1 -1
- package/dist/packages/styles/dist/components/drawer/drawer.styles.js.map +1 -0
- package/dist/packages/styles/{src → dist}/components/modal/modal.styles.js +1 -1
- package/dist/packages/styles/dist/components/modal/modal.styles.js.map +1 -0
- package/dist/packages/styles/{src → dist}/components/popover/popover.styles.js +1 -1
- package/dist/packages/styles/dist/components/popover/popover.styles.js.map +1 -0
- package/dist/packages/styles/{src → dist}/components/tooltip/tooltip.styles.js +1 -1
- package/dist/packages/styles/dist/components/tooltip/tooltip.styles.js.map +1 -0
- package/package.json +3 -2
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -172
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/CalendarDate.js.map +0 -1
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -116
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js.map +0 -1
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/conversion.js +0 -142
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/conversion.js.map +0 -1
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/manipulation.js +0 -264
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/manipulation.js.map +0 -1
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/queries.js +0 -33
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/queries.js.map +0 -1
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/string.js +0 -32
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/string.js.map +0 -1
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/utils.js +0 -8
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.1/node_modules/@internationalized/date/dist/private/utils.js.map +0 -1
- package/dist/packages/styles/src/components/alert-dialog/alert-dialog.styles.js.map +0 -1
- package/dist/packages/styles/src/components/drawer/drawer.styles.js.map +0 -1
- package/dist/packages/styles/src/components/modal/modal.styles.js.map +0 -1
- package/dist/packages/styles/src/components/popover/popover.styles.js.map +0 -1
- package/dist/packages/styles/src/components/tooltip/tooltip.styles.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog.styles.js","names":[],"sources":["../../../../../../../styles/dist/components/alert-dialog/alert-dialog.styles.js"],"sourcesContent":["import { tv } from \"tailwind-variants\";\n//#region src/components/alert-dialog/alert-dialog.styles.ts\nvar alertDialogVariants = tv({\n\tdefaultVariants: {\n\t\tsize: \"md\",\n\t\tstatus: \"danger\",\n\t\tvariant: \"opaque\"\n\t},\n\tslots: {\n\t\tbackdrop: \"alert-dialog__backdrop\",\n\t\tbody: \"alert-dialog__body\",\n\t\tcloseTrigger: \"alert-dialog__close-trigger\",\n\t\tcontainer: \"alert-dialog__container\",\n\t\tdialog: \"alert-dialog__dialog\",\n\t\tfooter: \"alert-dialog__footer\",\n\t\theader: \"alert-dialog__header\",\n\t\theading: \"alert-dialog__heading\",\n\t\ticon: \"alert-dialog__icon\",\n\t\ttrigger: \"alert-dialog__trigger\"\n\t},\n\tvariants: {\n\t\tsize: {\n\t\t\tcover: { dialog: \"alert-dialog__dialog--cover\" },\n\t\t\tlg: { dialog: \"alert-dialog__dialog--lg\" },\n\t\t\tmd: { dialog: \"alert-dialog__dialog--md\" },\n\t\t\tsm: { dialog: \"alert-dialog__dialog--sm\" },\n\t\t\txs: { dialog: \"alert-dialog__dialog--xs\" }\n\t\t},\n\t\tstatus: {\n\t\t\taccent: { icon: \"alert-dialog__icon--accent\" },\n\t\t\tdanger: { icon: \"alert-dialog__icon--danger\" },\n\t\t\tdefault: { icon: \"alert-dialog__icon--default\" },\n\t\t\tsuccess: { icon: \"alert-dialog__icon--success\" },\n\t\t\twarning: { icon: \"alert-dialog__icon--warning\" }\n\t\t},\n\t\tvariant: {\n\t\t\tblur: { backdrop: \"alert-dialog__backdrop--blur\" },\n\t\t\topaque: { backdrop: \"alert-dialog__backdrop--opaque\" },\n\t\t\ttransparent: { backdrop: \"alert-dialog__backdrop--transparent\" }\n\t\t}\n\t}\n});\n//#endregion\nexport { alertDialogVariants };\n\n//# sourceMappingURL=alert-dialog.styles.js.map"],"mappings":";;AAEA,IAAI,sBAAsB,GAAG;CAC5B,iBAAiB;EAChB,MAAM;EACN,QAAQ;EACR,SAAS;EACT;CACD,OAAO;EACN,UAAU;EACV,MAAM;EACN,cAAc;EACd,WAAW;EACX,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,MAAM;EACN,SAAS;EACT;CACD,UAAU;EACT,MAAM;GACL,OAAO,EAAE,QAAQ,+BAA+B;GAChD,IAAI,EAAE,QAAQ,4BAA4B;GAC1C,IAAI,EAAE,QAAQ,4BAA4B;GAC1C,IAAI,EAAE,QAAQ,4BAA4B;GAC1C,IAAI,EAAE,QAAQ,4BAA4B;GAC1C;EACD,QAAQ;GACP,QAAQ,EAAE,MAAM,8BAA8B;GAC9C,QAAQ,EAAE,MAAM,8BAA8B;GAC9C,SAAS,EAAE,MAAM,+BAA+B;GAChD,SAAS,EAAE,MAAM,+BAA+B;GAChD,SAAS,EAAE,MAAM,+BAA+B;GAChD;EACD,SAAS;GACR,MAAM,EAAE,UAAU,gCAAgC;GAClD,QAAQ,EAAE,UAAU,kCAAkC;GACtD,aAAa,EAAE,UAAU,uCAAuC;GAChE;EACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.styles.js","names":[],"sources":["../../../../../../../styles/dist/components/drawer/drawer.styles.js"],"sourcesContent":["import { tv } from \"tailwind-variants\";\n//#region src/components/drawer/drawer.styles.ts\nvar drawerVariants = tv({\n\tdefaultVariants: {\n\t\tplacement: \"bottom\",\n\t\tvariant: \"opaque\"\n\t},\n\tslots: {\n\t\tbackdrop: \"drawer__backdrop\",\n\t\tbody: \"drawer__body\",\n\t\tcloseTrigger: \"drawer__close-trigger\",\n\t\tcontent: \"drawer__content\",\n\t\tdialog: \"drawer__dialog\",\n\t\tfooter: \"drawer__footer\",\n\t\thandle: \"drawer__handle\",\n\t\theader: \"drawer__header\",\n\t\theading: \"drawer__heading\",\n\t\ttrigger: \"drawer__trigger\",\n\t\tdockContainer: \"drawer__dock-container\",\n\t\tmain: \"drawer__main\"\n\t},\n\tvariants: {\n\t\tinline: { true: { dialog: \"drawer__dialog--inline\" } },\n\t\tdock: { true: { dialog: \"drawer__dialog--dock\" } },\n\t\tplacement: {\n\t\t\tbottom: {\n\t\t\t\tcontent: \"drawer__content--bottom\",\n\t\t\t\tdialog: \"drawer__dialog--bottom\",\n\t\t\t\tdockContainer: \"drawer__dock-container--bottom\"\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\tcontent: \"drawer__content--left\",\n\t\t\t\tdialog: \"drawer__dialog--left\",\n\t\t\t\tdockContainer: \"drawer__dock-container--left\"\n\t\t\t},\n\t\t\tright: {\n\t\t\t\tcontent: \"drawer__content--right\",\n\t\t\t\tdialog: \"drawer__dialog--right\",\n\t\t\t\tdockContainer: \"drawer__dock-container--right\"\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\tcontent: \"drawer__content--top\",\n\t\t\t\tdialog: \"drawer__dialog--top\",\n\t\t\t\tdockContainer: \"drawer__dock-container--top\"\n\t\t\t}\n\t\t},\n\t\tvariant: {\n\t\t\tblur: { backdrop: \"drawer__backdrop--blur\" },\n\t\t\topaque: { backdrop: \"drawer__backdrop--opaque\" },\n\t\t\ttransparent: { backdrop: \"drawer__backdrop--transparent\" }\n\t\t}\n\t}\n});\n//#endregion\nexport { drawerVariants };\n\n//# sourceMappingURL=drawer.styles.js.map"],"mappings":";;AAEA,IAAI,iBAAiB,GAAG;CACvB,iBAAiB;EAChB,WAAW;EACX,SAAS;EACT;CACD,OAAO;EACN,UAAU;EACV,MAAM;EACN,cAAc;EACd,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,SAAS;EACT,eAAe;EACf,MAAM;EACN;CACD,UAAU;EACT,QAAQ,EAAE,MAAM,EAAE,QAAQ,0BAA0B,EAAE;EACtD,MAAM,EAAE,MAAM,EAAE,QAAQ,wBAAwB,EAAE;EAClD,WAAW;GACV,QAAQ;IACP,SAAS;IACT,QAAQ;IACR,eAAe;IACf;GACD,MAAM;IACL,SAAS;IACT,QAAQ;IACR,eAAe;IACf;GACD,OAAO;IACN,SAAS;IACT,QAAQ;IACR,eAAe;IACf;GACD,KAAK;IACJ,SAAS;IACT,QAAQ;IACR,eAAe;IACf;GACD;EACD,SAAS;GACR,MAAM,EAAE,UAAU,0BAA0B;GAC5C,QAAQ,EAAE,UAAU,4BAA4B;GAChD,aAAa,EAAE,UAAU,iCAAiC;GAC1D;EACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.styles.js","names":[],"sources":["../../../../../../../styles/dist/components/modal/modal.styles.js"],"sourcesContent":["import { tv } from \"tailwind-variants\";\n//#region src/components/modal/modal.styles.ts\nvar modalVariants = tv({\n\tdefaultVariants: {\n\t\tscroll: \"inside\",\n\t\tsize: \"md\",\n\t\tvariant: \"opaque\"\n\t},\n\tslots: {\n\t\tbackdrop: \"modal__backdrop\",\n\t\tbody: \"modal__body\",\n\t\tcloseTrigger: \"modal__close-trigger\",\n\t\tcontainer: \"modal__container\",\n\t\tdialog: \"modal__dialog\",\n\t\tfooter: \"modal__footer\",\n\t\theader: \"modal__header\",\n\t\theading: \"modal__heading\",\n\t\ticon: \"modal__icon\",\n\t\ttrigger: \"modal__trigger\"\n\t},\n\tvariants: {\n\t\tscroll: {\n\t\t\tinside: {\n\t\t\t\tbody: \"modal__body--scroll-inside\",\n\t\t\t\tdialog: \"modal__dialog--scroll-inside\"\n\t\t\t},\n\t\t\toutside: {\n\t\t\t\tbody: \"modal__body--scroll-outside\",\n\t\t\t\tcontainer: \"modal__container--scroll-outside\",\n\t\t\t\tdialog: \"modal__dialog--scroll-outside\"\n\t\t\t}\n\t\t},\n\t\tsize: {\n\t\t\tcover: { dialog: \"modal__dialog--cover\" },\n\t\t\tfull: {\n\t\t\t\tcontainer: \"modal__container--full\",\n\t\t\t\tdialog: \"modal__dialog--full\"\n\t\t\t},\n\t\t\tlg: { dialog: \"modal__dialog--lg\" },\n\t\t\tmd: { dialog: \"modal__dialog--md\" },\n\t\t\tsm: { dialog: \"modal__dialog--sm\" },\n\t\t\txs: { dialog: \"modal__dialog--xs\" }\n\t\t},\n\t\tvariant: {\n\t\t\tblur: { backdrop: \"modal__backdrop--blur\" },\n\t\t\topaque: { backdrop: \"modal__backdrop--opaque\" },\n\t\t\ttransparent: { backdrop: \"modal__backdrop--transparent\" }\n\t\t}\n\t}\n});\n//#endregion\nexport { modalVariants };\n\n//# sourceMappingURL=modal.styles.js.map"],"mappings":";;AAEA,IAAI,gBAAgB,GAAG;CACtB,iBAAiB;EAChB,QAAQ;EACR,MAAM;EACN,SAAS;EACT;CACD,OAAO;EACN,UAAU;EACV,MAAM;EACN,cAAc;EACd,WAAW;EACX,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,MAAM;EACN,SAAS;EACT;CACD,UAAU;EACT,QAAQ;GACP,QAAQ;IACP,MAAM;IACN,QAAQ;IACR;GACD,SAAS;IACR,MAAM;IACN,WAAW;IACX,QAAQ;IACR;GACD;EACD,MAAM;GACL,OAAO,EAAE,QAAQ,wBAAwB;GACzC,MAAM;IACL,WAAW;IACX,QAAQ;IACR;GACD,IAAI,EAAE,QAAQ,qBAAqB;GACnC,IAAI,EAAE,QAAQ,qBAAqB;GACnC,IAAI,EAAE,QAAQ,qBAAqB;GACnC,IAAI,EAAE,QAAQ,qBAAqB;GACnC;EACD,SAAS;GACR,MAAM,EAAE,UAAU,yBAAyB;GAC3C,QAAQ,EAAE,UAAU,2BAA2B;GAC/C,aAAa,EAAE,UAAU,gCAAgC;GACzD;EACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.styles.js","names":[],"sources":["../../../../../../../styles/dist/components/popover/popover.styles.js"],"sourcesContent":["import { tv } from \"tailwind-variants\";\n//#region src/components/popover/popover.styles.ts\nvar popoverVariants = tv({ slots: {\n\tbase: \"popover\",\n\tdialog: \"popover__dialog\",\n\theading: \"popover__heading\",\n\ttrigger: \"popover__trigger\"\n} });\n//#endregion\nexport { popoverVariants };\n\n//# sourceMappingURL=popover.styles.js.map"],"mappings":";;AAEA,IAAI,kBAAkB,GAAG,EAAE,OAAO;CACjC,MAAM;CACN,QAAQ;CACR,SAAS;CACT,SAAS;CACT,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.styles.js","names":[],"sources":["../../../../../../../styles/dist/components/tooltip/tooltip.styles.js"],"sourcesContent":["import { tv } from \"tailwind-variants\";\n//#region src/components/tooltip/tooltip.styles.ts\nvar tooltipVariants = tv({ slots: {\n\tbase: \"tooltip\",\n\ttrigger: \"tooltip__trigger\"\n} });\n//#endregion\nexport { tooltipVariants };\n\n//# sourceMappingURL=tooltip.styles.js.map"],"mappings":";;AAEA,IAAI,kBAAkB,GAAG,EAAE,OAAO;CACjC,MAAM;CACN,SAAS;CACT,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auronui/vue",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Vue 3 85 components with full visual and functional parity",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"setup-ai": "bin/setup-ai.mjs"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
+
"@internationalized/date": ">=3.0.0",
|
|
59
60
|
"@vueuse/core": ">=14.0.0",
|
|
60
61
|
"reka-ui": ">=2.9.0",
|
|
61
62
|
"tailwindcss": ">=4.0.0",
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
"tailwind-merge": "3.5.0",
|
|
75
76
|
"tailwind-variants": "3.2.2",
|
|
76
77
|
"vee-validate": "^4.15.1",
|
|
77
|
-
"@auronui/styles": "1.2.
|
|
78
|
+
"@auronui/styles": "1.2.1"
|
|
78
79
|
},
|
|
79
80
|
"devDependencies": {
|
|
80
81
|
"@chialab/vitest-axe": "0.19.1",
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { $93635573935797de$export$80ee6245ec4f29ec } from "./calendars/GregorianCalendar.js";
|
|
2
|
-
import { $ad063034c8620db8$export$68781ddf31c0090f, $ad063034c8620db8$export$c19a80a9721b80f6 } from "./queries.js";
|
|
3
|
-
import { $d07e34cce18680fd$export$83aac07b4c37b25, $d07e34cce18680fd$export$84c95a83c799e074, $d07e34cce18680fd$export$b21e0b124e224484, $d07e34cce18680fd$export$e67a095c620b86fe } from "./conversion.js";
|
|
4
|
-
import { $435a2ceaa8778ed8$export$31b5430eb18be4f8, $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3, $435a2ceaa8778ed8$export$6814caac34ca03c7, $435a2ceaa8778ed8$export$96b1d28349274637, $435a2ceaa8778ed8$export$9a297d111fc86b79, $435a2ceaa8778ed8$export$adaa4cf7ef1b65be, $435a2ceaa8778ed8$export$c4e2ecac49351ef2, $435a2ceaa8778ed8$export$d52ced6badfb9a4c, $435a2ceaa8778ed8$export$dd02b3e0007dfe28, $435a2ceaa8778ed8$export$e16d8520af44a096, $435a2ceaa8778ed8$export$e5d5e1c1822b6e56 } from "./manipulation.js";
|
|
5
|
-
import { $58246871e4652552$export$4223de14708adc63, $58246871e4652552$export$60dfd74aa96791bd, $58246871e4652552$export$bf79f1ebf4b18792 } from "./string.js";
|
|
6
|
-
//#region ../../node_modules/.pnpm/@internationalized+date@3.12.1/node_modules/@internationalized/date/dist/private/CalendarDate.mjs
|
|
7
|
-
function $2aaf608024c21ca1$var$shiftArgs(args) {
|
|
8
|
-
let calendar = typeof args[0] === "object" ? args.shift() : new $93635573935797de$export$80ee6245ec4f29ec();
|
|
9
|
-
let era;
|
|
10
|
-
if (typeof args[0] === "string") era = args.shift();
|
|
11
|
-
else {
|
|
12
|
-
let eras = calendar.getEras();
|
|
13
|
-
era = eras[eras.length - 1];
|
|
14
|
-
}
|
|
15
|
-
let year = args.shift();
|
|
16
|
-
let month = args.shift();
|
|
17
|
-
let day = args.shift();
|
|
18
|
-
return [
|
|
19
|
-
calendar,
|
|
20
|
-
era,
|
|
21
|
-
year,
|
|
22
|
-
month,
|
|
23
|
-
day
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
var $2aaf608024c21ca1$export$99faa760c7908e4f = class $2aaf608024c21ca1$export$99faa760c7908e4f {
|
|
27
|
-
#type;
|
|
28
|
-
constructor(...args) {
|
|
29
|
-
let [calendar, era, year, month, day] = $2aaf608024c21ca1$var$shiftArgs(args);
|
|
30
|
-
this.calendar = calendar;
|
|
31
|
-
this.era = era;
|
|
32
|
-
this.year = year;
|
|
33
|
-
this.month = month;
|
|
34
|
-
this.day = day;
|
|
35
|
-
$435a2ceaa8778ed8$export$c4e2ecac49351ef2(this);
|
|
36
|
-
}
|
|
37
|
-
/** Returns a copy of this date. */ copy() {
|
|
38
|
-
if (this.era) return new $2aaf608024c21ca1$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
|
|
39
|
-
else return new $2aaf608024c21ca1$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
40
|
-
}
|
|
41
|
-
/** Returns a new `CalendarDate` with the given duration added to it. */ add(duration) {
|
|
42
|
-
return $435a2ceaa8778ed8$export$e16d8520af44a096(this, duration);
|
|
43
|
-
}
|
|
44
|
-
/** Returns a new `CalendarDate` with the given duration subtracted from it. */ subtract(duration) {
|
|
45
|
-
return $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3(this, duration);
|
|
46
|
-
}
|
|
47
|
-
/** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
|
|
48
|
-
return $435a2ceaa8778ed8$export$adaa4cf7ef1b65be(this, fields);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Returns a new `CalendarDate` with the given field adjusted by a specified amount.
|
|
52
|
-
* When the resulting value reaches the limits of the field, it wraps around.
|
|
53
|
-
*/ cycle(field, amount, options) {
|
|
54
|
-
return $435a2ceaa8778ed8$export$d52ced6badfb9a4c(this, field, amount, options);
|
|
55
|
-
}
|
|
56
|
-
/** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */ toDate(timeZone) {
|
|
57
|
-
return $d07e34cce18680fd$export$e67a095c620b86fe(this, timeZone);
|
|
58
|
-
}
|
|
59
|
-
/** Converts the date to an ISO 8601 formatted string. */ toString() {
|
|
60
|
-
return $58246871e4652552$export$60dfd74aa96791bd(this);
|
|
61
|
-
}
|
|
62
|
-
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
|
|
63
|
-
return $ad063034c8620db8$export$68781ddf31c0090f(this, b);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
var $2aaf608024c21ca1$export$ca871e8dbb80966f = class $2aaf608024c21ca1$export$ca871e8dbb80966f {
|
|
67
|
-
#type;
|
|
68
|
-
constructor(...args) {
|
|
69
|
-
let [calendar, era, year, month, day] = $2aaf608024c21ca1$var$shiftArgs(args);
|
|
70
|
-
this.calendar = calendar;
|
|
71
|
-
this.era = era;
|
|
72
|
-
this.year = year;
|
|
73
|
-
this.month = month;
|
|
74
|
-
this.day = day;
|
|
75
|
-
this.hour = args.shift() || 0;
|
|
76
|
-
this.minute = args.shift() || 0;
|
|
77
|
-
this.second = args.shift() || 0;
|
|
78
|
-
this.millisecond = args.shift() || 0;
|
|
79
|
-
$435a2ceaa8778ed8$export$c4e2ecac49351ef2(this);
|
|
80
|
-
}
|
|
81
|
-
/** Returns a copy of this date. */ copy() {
|
|
82
|
-
if (this.era) return new $2aaf608024c21ca1$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
83
|
-
else return new $2aaf608024c21ca1$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
84
|
-
}
|
|
85
|
-
/** Returns a new `CalendarDateTime` with the given duration added to it. */ add(duration) {
|
|
86
|
-
return $435a2ceaa8778ed8$export$e16d8520af44a096(this, duration);
|
|
87
|
-
}
|
|
88
|
-
/** Returns a new `CalendarDateTime` with the given duration subtracted from it. */ subtract(duration) {
|
|
89
|
-
return $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3(this, duration);
|
|
90
|
-
}
|
|
91
|
-
/** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
|
|
92
|
-
return $435a2ceaa8778ed8$export$adaa4cf7ef1b65be($435a2ceaa8778ed8$export$e5d5e1c1822b6e56(this, fields), fields);
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
|
|
96
|
-
* When the resulting value reaches the limits of the field, it wraps around.
|
|
97
|
-
*/ cycle(field, amount, options) {
|
|
98
|
-
switch (field) {
|
|
99
|
-
case "era":
|
|
100
|
-
case "year":
|
|
101
|
-
case "month":
|
|
102
|
-
case "day": return $435a2ceaa8778ed8$export$d52ced6badfb9a4c(this, field, amount, options);
|
|
103
|
-
default: return $435a2ceaa8778ed8$export$dd02b3e0007dfe28(this, field, amount, options);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
/** Converts the date to a native JavaScript Date object in the given time zone. */ toDate(timeZone, disambiguation) {
|
|
107
|
-
return $d07e34cce18680fd$export$e67a095c620b86fe(this, timeZone, disambiguation);
|
|
108
|
-
}
|
|
109
|
-
/** Converts the date to an ISO 8601 formatted string. */ toString() {
|
|
110
|
-
return $58246871e4652552$export$4223de14708adc63(this);
|
|
111
|
-
}
|
|
112
|
-
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
|
|
113
|
-
let res = $ad063034c8620db8$export$68781ddf31c0090f(this, b);
|
|
114
|
-
if (res === 0) return $ad063034c8620db8$export$c19a80a9721b80f6(this, $d07e34cce18680fd$export$b21e0b124e224484(b));
|
|
115
|
-
return res;
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
var $2aaf608024c21ca1$export$d3b7288e7994edea = class $2aaf608024c21ca1$export$d3b7288e7994edea {
|
|
119
|
-
#type;
|
|
120
|
-
constructor(...args) {
|
|
121
|
-
let [calendar, era, year, month, day] = $2aaf608024c21ca1$var$shiftArgs(args);
|
|
122
|
-
let timeZone = args.shift();
|
|
123
|
-
let offset = args.shift();
|
|
124
|
-
this.calendar = calendar;
|
|
125
|
-
this.era = era;
|
|
126
|
-
this.year = year;
|
|
127
|
-
this.month = month;
|
|
128
|
-
this.day = day;
|
|
129
|
-
this.timeZone = timeZone;
|
|
130
|
-
this.offset = offset;
|
|
131
|
-
this.hour = args.shift() || 0;
|
|
132
|
-
this.minute = args.shift() || 0;
|
|
133
|
-
this.second = args.shift() || 0;
|
|
134
|
-
this.millisecond = args.shift() || 0;
|
|
135
|
-
$435a2ceaa8778ed8$export$c4e2ecac49351ef2(this);
|
|
136
|
-
}
|
|
137
|
-
/** Returns a copy of this date. */ copy() {
|
|
138
|
-
if (this.era) return new $2aaf608024c21ca1$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
139
|
-
else return new $2aaf608024c21ca1$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
140
|
-
}
|
|
141
|
-
/** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {
|
|
142
|
-
return $435a2ceaa8778ed8$export$96b1d28349274637(this, duration);
|
|
143
|
-
}
|
|
144
|
-
/** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {
|
|
145
|
-
return $435a2ceaa8778ed8$export$6814caac34ca03c7(this, duration);
|
|
146
|
-
}
|
|
147
|
-
/** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {
|
|
148
|
-
return $435a2ceaa8778ed8$export$31b5430eb18be4f8(this, fields, disambiguation);
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
|
|
152
|
-
* When the resulting value reaches the limits of the field, it wraps around.
|
|
153
|
-
*/ cycle(field, amount, options) {
|
|
154
|
-
return $435a2ceaa8778ed8$export$9a297d111fc86b79(this, field, amount, options);
|
|
155
|
-
}
|
|
156
|
-
/** Converts the date to a native JavaScript Date object. */ toDate() {
|
|
157
|
-
return $d07e34cce18680fd$export$83aac07b4c37b25(this);
|
|
158
|
-
}
|
|
159
|
-
/** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {
|
|
160
|
-
return $58246871e4652552$export$bf79f1ebf4b18792(this);
|
|
161
|
-
}
|
|
162
|
-
/** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {
|
|
163
|
-
return this.toDate().toISOString();
|
|
164
|
-
}
|
|
165
|
-
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
|
|
166
|
-
return this.toDate().getTime() - $d07e34cce18680fd$export$84c95a83c799e074(b, this.timeZone).toDate().getTime();
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
//#endregion
|
|
170
|
-
export { $2aaf608024c21ca1$export$99faa760c7908e4f, $2aaf608024c21ca1$export$ca871e8dbb80966f, $2aaf608024c21ca1$export$d3b7288e7994edea };
|
|
171
|
-
|
|
172
|
-
//# sourceMappingURL=CalendarDate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarDate.js","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@internationalized+date@3.12.1/node_modules/@internationalized/date/dist/private/CalendarDate.mjs"],"sourcesContent":["import {add as $435a2ceaa8778ed8$export$e16d8520af44a096, addTime as $435a2ceaa8778ed8$export$7ed87b6bc2506470, addZoned as $435a2ceaa8778ed8$export$96b1d28349274637, constrain as $435a2ceaa8778ed8$export$c4e2ecac49351ef2, constrainTime as $435a2ceaa8778ed8$export$7555de1e070510cb, cycleDate as $435a2ceaa8778ed8$export$d52ced6badfb9a4c, cycleTime as $435a2ceaa8778ed8$export$dd02b3e0007dfe28, cycleZoned as $435a2ceaa8778ed8$export$9a297d111fc86b79, set as $435a2ceaa8778ed8$export$adaa4cf7ef1b65be, setTime as $435a2ceaa8778ed8$export$e5d5e1c1822b6e56, setZoned as $435a2ceaa8778ed8$export$31b5430eb18be4f8, subtract as $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3, subtractTime as $435a2ceaa8778ed8$export$fe34d3a381cd7501, subtractZoned as $435a2ceaa8778ed8$export$6814caac34ca03c7} from \"./manipulation.mjs\";\nimport {compareDate as $ad063034c8620db8$export$68781ddf31c0090f, compareTime as $ad063034c8620db8$export$c19a80a9721b80f6} from \"./queries.mjs\";\nimport {dateTimeToString as $58246871e4652552$export$4223de14708adc63, dateToString as $58246871e4652552$export$60dfd74aa96791bd, timeToString as $58246871e4652552$export$f59dee82248f5ad4, zonedDateTimeToString as $58246871e4652552$export$bf79f1ebf4b18792} from \"./string.mjs\";\nimport {GregorianCalendar as $93635573935797de$export$80ee6245ec4f29ec} from \"./calendars/GregorianCalendar.mjs\";\nimport {toCalendarDateTime as $d07e34cce18680fd$export$b21e0b124e224484, toDate as $d07e34cce18680fd$export$e67a095c620b86fe, toZoned as $d07e34cce18680fd$export$84c95a83c799e074, zonedToDate as $d07e34cce18680fd$export$83aac07b4c37b25} from \"./conversion.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $2aaf608024c21ca1$var$shiftArgs(args) {\n let calendar = typeof args[0] === 'object' ? args.shift() : new (0, $93635573935797de$export$80ee6245ec4f29ec)();\n let era;\n if (typeof args[0] === 'string') era = args.shift();\n else {\n let eras = calendar.getEras();\n era = eras[eras.length - 1];\n }\n let year = args.shift();\n let month = args.shift();\n let day = args.shift();\n return [\n calendar,\n era,\n year,\n month,\n day\n ];\n}\nclass $2aaf608024c21ca1$export$99faa760c7908e4f {\n // This prevents TypeScript from allowing other types with the same fields to match.\n // i.e. a ZonedDateTime should not be be passable to a parameter that expects CalendarDate.\n // If that behavior is desired, use the AnyCalendarDate interface instead.\n // @ts-ignore\n #type;\n constructor(...args){\n let [calendar, era, year, month, day] = $2aaf608024c21ca1$var$shiftArgs(args);\n this.calendar = calendar;\n this.era = era;\n this.year = year;\n this.month = month;\n this.day = day;\n (0, $435a2ceaa8778ed8$export$c4e2ecac49351ef2)(this);\n }\n /** Returns a copy of this date. */ copy() {\n if (this.era) return new $2aaf608024c21ca1$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);\n else return new $2aaf608024c21ca1$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);\n }\n /** Returns a new `CalendarDate` with the given duration added to it. */ add(duration) {\n return (0, $435a2ceaa8778ed8$export$e16d8520af44a096)(this, duration);\n }\n /** Returns a new `CalendarDate` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3)(this, duration);\n }\n /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n return (0, $435a2ceaa8778ed8$export$adaa4cf7ef1b65be)(this, fields);\n }\n /**\n * Returns a new `CalendarDate` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n return (0, $435a2ceaa8778ed8$export$d52ced6badfb9a4c)(this, field, amount, options);\n }\n /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */ toDate(timeZone) {\n return (0, $d07e34cce18680fd$export$e67a095c620b86fe)(this, timeZone);\n }\n /** Converts the date to an ISO 8601 formatted string. */ toString() {\n return (0, $58246871e4652552$export$60dfd74aa96791bd)(this);\n }\n /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n return (0, $ad063034c8620db8$export$68781ddf31c0090f)(this, b);\n }\n}\nclass $2aaf608024c21ca1$export$680ea196effce5f {\n // This prevents TypeScript from allowing other types with the same fields to match.\n // @ts-ignore\n #type;\n constructor(hour = 0, minute = 0, second = 0, millisecond = 0){\n this.hour = hour;\n this.minute = minute;\n this.second = second;\n this.millisecond = millisecond;\n (0, $435a2ceaa8778ed8$export$7555de1e070510cb)(this);\n }\n /** Returns a copy of this time. */ copy() {\n return new $2aaf608024c21ca1$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);\n }\n /** Returns a new `Time` with the given duration added to it. */ add(duration) {\n return (0, $435a2ceaa8778ed8$export$7ed87b6bc2506470)(this, duration);\n }\n /** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $435a2ceaa8778ed8$export$fe34d3a381cd7501)(this, duration);\n }\n /** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n return (0, $435a2ceaa8778ed8$export$e5d5e1c1822b6e56)(this, fields);\n }\n /**\n * Returns a new `Time` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n return (0, $435a2ceaa8778ed8$export$dd02b3e0007dfe28)(this, field, amount, options);\n }\n /** Converts the time to an ISO 8601 formatted string. */ toString() {\n return (0, $58246871e4652552$export$f59dee82248f5ad4)(this);\n }\n /** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {\n return (0, $ad063034c8620db8$export$c19a80a9721b80f6)(this, b);\n }\n}\nclass $2aaf608024c21ca1$export$ca871e8dbb80966f {\n // This prevents TypeScript from allowing other types with the same fields to match.\n // @ts-ignore\n #type;\n constructor(...args){\n let [calendar, era, year, month, day] = $2aaf608024c21ca1$var$shiftArgs(args);\n this.calendar = calendar;\n this.era = era;\n this.year = year;\n this.month = month;\n this.day = day;\n this.hour = args.shift() || 0;\n this.minute = args.shift() || 0;\n this.second = args.shift() || 0;\n this.millisecond = args.shift() || 0;\n (0, $435a2ceaa8778ed8$export$c4e2ecac49351ef2)(this);\n }\n /** Returns a copy of this date. */ copy() {\n if (this.era) return new $2aaf608024c21ca1$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);\n else return new $2aaf608024c21ca1$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);\n }\n /** Returns a new `CalendarDateTime` with the given duration added to it. */ add(duration) {\n return (0, $435a2ceaa8778ed8$export$e16d8520af44a096)(this, duration);\n }\n /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3)(this, duration);\n }\n /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n return (0, $435a2ceaa8778ed8$export$adaa4cf7ef1b65be)((0, $435a2ceaa8778ed8$export$e5d5e1c1822b6e56)(this, fields), fields);\n }\n /**\n * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n switch(field){\n case 'era':\n case 'year':\n case 'month':\n case 'day':\n return (0, $435a2ceaa8778ed8$export$d52ced6badfb9a4c)(this, field, amount, options);\n default:\n return (0, $435a2ceaa8778ed8$export$dd02b3e0007dfe28)(this, field, amount, options);\n }\n }\n /** Converts the date to a native JavaScript Date object in the given time zone. */ toDate(timeZone, disambiguation) {\n return (0, $d07e34cce18680fd$export$e67a095c620b86fe)(this, timeZone, disambiguation);\n }\n /** Converts the date to an ISO 8601 formatted string. */ toString() {\n return (0, $58246871e4652552$export$4223de14708adc63)(this);\n }\n /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n let res = (0, $ad063034c8620db8$export$68781ddf31c0090f)(this, b);\n if (res === 0) return (0, $ad063034c8620db8$export$c19a80a9721b80f6)(this, (0, $d07e34cce18680fd$export$b21e0b124e224484)(b));\n return res;\n }\n}\nclass $2aaf608024c21ca1$export$d3b7288e7994edea {\n // This prevents TypeScript from allowing other types with the same fields to match.\n // @ts-ignore\n #type;\n constructor(...args){\n let [calendar, era, year, month, day] = $2aaf608024c21ca1$var$shiftArgs(args);\n let timeZone = args.shift();\n let offset = args.shift();\n this.calendar = calendar;\n this.era = era;\n this.year = year;\n this.month = month;\n this.day = day;\n this.timeZone = timeZone;\n this.offset = offset;\n this.hour = args.shift() || 0;\n this.minute = args.shift() || 0;\n this.second = args.shift() || 0;\n this.millisecond = args.shift() || 0;\n (0, $435a2ceaa8778ed8$export$c4e2ecac49351ef2)(this);\n }\n /** Returns a copy of this date. */ copy() {\n if (this.era) return new $2aaf608024c21ca1$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);\n else return new $2aaf608024c21ca1$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);\n }\n /** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {\n return (0, $435a2ceaa8778ed8$export$96b1d28349274637)(this, duration);\n }\n /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $435a2ceaa8778ed8$export$6814caac34ca03c7)(this, duration);\n }\n /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {\n return (0, $435a2ceaa8778ed8$export$31b5430eb18be4f8)(this, fields, disambiguation);\n }\n /**\n * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n return (0, $435a2ceaa8778ed8$export$9a297d111fc86b79)(this, field, amount, options);\n }\n /** Converts the date to a native JavaScript Date object. */ toDate() {\n return (0, $d07e34cce18680fd$export$83aac07b4c37b25)(this);\n }\n /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {\n return (0, $58246871e4652552$export$bf79f1ebf4b18792)(this);\n }\n /** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {\n return this.toDate().toISOString();\n }\n /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n // TODO: Is this a bad idea??\n return this.toDate().getTime() - (0, $d07e34cce18680fd$export$84c95a83c799e074)(b, this.timeZone).toDate().getTime();\n }\n}\n\n\nexport {$2aaf608024c21ca1$export$99faa760c7908e4f as CalendarDate, $2aaf608024c21ca1$export$680ea196effce5f as Time, $2aaf608024c21ca1$export$ca871e8dbb80966f as CalendarDateTime, $2aaf608024c21ca1$export$d3b7288e7994edea as ZonedDateTime};\n//# sourceMappingURL=CalendarDate.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAqBA,SAAS,gCAAgC,MAAM;CAC3C,IAAI,WAAW,OAAO,KAAK,OAAO,WAAW,KAAK,OAAO,GAAG,IAAQ,2CAA4C;CAChH,IAAI;AACJ,KAAI,OAAO,KAAK,OAAO,SAAU,OAAM,KAAK,OAAO;MAC9C;EACD,IAAI,OAAO,SAAS,SAAS;AAC7B,QAAM,KAAK,KAAK,SAAS;;CA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export$842a2cf37af977e1 } from "../utils.js";
|
|
2
|
-
import { $2aaf608024c21ca1$export$99faa760c7908e4f } from "../CalendarDate.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@internationalized+date@3.12.1/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.mjs
|
|
4
|
-
var $93635573935797de$var$EPOCH = 1721426;
|
|
5
|
-
function $93635573935797de$export$f297eb839006d339(era, year, month, day) {
|
|
6
|
-
year = $93635573935797de$export$c36e0ecb2d4fa69d(era, year);
|
|
7
|
-
let y1 = year - 1;
|
|
8
|
-
let monthOffset = -2;
|
|
9
|
-
if (month <= 2) monthOffset = 0;
|
|
10
|
-
else if ($93635573935797de$export$553d7fa8e3805fc0(year)) monthOffset = -1;
|
|
11
|
-
return $93635573935797de$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
|
|
12
|
-
}
|
|
13
|
-
function $93635573935797de$export$553d7fa8e3805fc0(year) {
|
|
14
|
-
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
15
|
-
}
|
|
16
|
-
function $93635573935797de$export$c36e0ecb2d4fa69d(era, year) {
|
|
17
|
-
return era === "BC" ? 1 - year : year;
|
|
18
|
-
}
|
|
19
|
-
function $93635573935797de$export$4475b7e617eb123c(year) {
|
|
20
|
-
let era = "AD";
|
|
21
|
-
if (year <= 0) {
|
|
22
|
-
era = "BC";
|
|
23
|
-
year = 1 - year;
|
|
24
|
-
}
|
|
25
|
-
return [era, year];
|
|
26
|
-
}
|
|
27
|
-
var $93635573935797de$var$daysInMonth = {
|
|
28
|
-
standard: [
|
|
29
|
-
31,
|
|
30
|
-
28,
|
|
31
|
-
31,
|
|
32
|
-
30,
|
|
33
|
-
31,
|
|
34
|
-
30,
|
|
35
|
-
31,
|
|
36
|
-
31,
|
|
37
|
-
30,
|
|
38
|
-
31,
|
|
39
|
-
30,
|
|
40
|
-
31
|
|
41
|
-
],
|
|
42
|
-
leapyear: [
|
|
43
|
-
31,
|
|
44
|
-
29,
|
|
45
|
-
31,
|
|
46
|
-
30,
|
|
47
|
-
31,
|
|
48
|
-
30,
|
|
49
|
-
31,
|
|
50
|
-
31,
|
|
51
|
-
30,
|
|
52
|
-
31,
|
|
53
|
-
30,
|
|
54
|
-
31
|
|
55
|
-
]
|
|
56
|
-
};
|
|
57
|
-
var $93635573935797de$export$80ee6245ec4f29ec = class {
|
|
58
|
-
fromJulianDay(jd) {
|
|
59
|
-
let jd0 = jd;
|
|
60
|
-
let depoch = jd0 - $93635573935797de$var$EPOCH;
|
|
61
|
-
let quadricent = Math.floor(depoch / 146097);
|
|
62
|
-
let dqc = $09ec6a572d60460f$export$842a2cf37af977e1(depoch, 146097);
|
|
63
|
-
let cent = Math.floor(dqc / 36524);
|
|
64
|
-
let dcent = $09ec6a572d60460f$export$842a2cf37af977e1(dqc, 36524);
|
|
65
|
-
let quad = Math.floor(dcent / 1461);
|
|
66
|
-
let dquad = $09ec6a572d60460f$export$842a2cf37af977e1(dcent, 1461);
|
|
67
|
-
let yindex = Math.floor(dquad / 365);
|
|
68
|
-
let [era, year] = $93635573935797de$export$4475b7e617eb123c(quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0));
|
|
69
|
-
let yearDay = jd0 - $93635573935797de$export$f297eb839006d339(era, year, 1, 1);
|
|
70
|
-
let leapAdj = 2;
|
|
71
|
-
if (jd0 < $93635573935797de$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
|
|
72
|
-
else if ($93635573935797de$export$553d7fa8e3805fc0(year)) leapAdj = 1;
|
|
73
|
-
let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
|
|
74
|
-
return new $2aaf608024c21ca1$export$99faa760c7908e4f(era, year, month, jd0 - $93635573935797de$export$f297eb839006d339(era, year, month, 1) + 1);
|
|
75
|
-
}
|
|
76
|
-
toJulianDay(date) {
|
|
77
|
-
return $93635573935797de$export$f297eb839006d339(date.era, date.year, date.month, date.day);
|
|
78
|
-
}
|
|
79
|
-
getDaysInMonth(date) {
|
|
80
|
-
return $93635573935797de$var$daysInMonth[$93635573935797de$export$553d7fa8e3805fc0(date.year) ? "leapyear" : "standard"][date.month - 1];
|
|
81
|
-
}
|
|
82
|
-
getMonthsInYear(date) {
|
|
83
|
-
return 12;
|
|
84
|
-
}
|
|
85
|
-
getDaysInYear(date) {
|
|
86
|
-
return $93635573935797de$export$553d7fa8e3805fc0(date.year) ? 366 : 365;
|
|
87
|
-
}
|
|
88
|
-
getMaximumMonthsInYear() {
|
|
89
|
-
return 12;
|
|
90
|
-
}
|
|
91
|
-
getMaximumDaysInMonth() {
|
|
92
|
-
return 31;
|
|
93
|
-
}
|
|
94
|
-
getYearsInEra(date) {
|
|
95
|
-
return 9999;
|
|
96
|
-
}
|
|
97
|
-
getEras() {
|
|
98
|
-
return ["BC", "AD"];
|
|
99
|
-
}
|
|
100
|
-
isInverseEra(date) {
|
|
101
|
-
return date.era === "BC";
|
|
102
|
-
}
|
|
103
|
-
balanceDate(date) {
|
|
104
|
-
if (date.year <= 0) {
|
|
105
|
-
date.era = date.era === "BC" ? "AD" : "BC";
|
|
106
|
-
date.year = 1 - date.year;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
constructor() {
|
|
110
|
-
this.identifier = "gregory";
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
//#endregion
|
|
114
|
-
export { $93635573935797de$export$80ee6245ec4f29ec, $93635573935797de$export$c36e0ecb2d4fa69d };
|
|
115
|
-
|
|
116
|
-
//# sourceMappingURL=GregorianCalendar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GregorianCalendar.js","names":[],"sources":["../../../../../../../../../../../../node_modules/.pnpm/@internationalized+date@3.12.1/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.mjs"],"sourcesContent":["import {CalendarDate as $2aaf608024c21ca1$export$99faa760c7908e4f} from \"../CalendarDate.mjs\";\nimport {mod as $09ec6a572d60460f$export$842a2cf37af977e1} from \"../utils.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\nconst $93635573935797de$var$EPOCH = 1721426; // 001/01/03 Julian C.E.\nfunction $93635573935797de$export$f297eb839006d339(era, year, month, day) {\n year = $93635573935797de$export$c36e0ecb2d4fa69d(era, year);\n let y1 = year - 1;\n let monthOffset = -2;\n if (month <= 2) monthOffset = 0;\n else if ($93635573935797de$export$553d7fa8e3805fc0(year)) monthOffset = -1;\n return $93635573935797de$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);\n}\nfunction $93635573935797de$export$553d7fa8e3805fc0(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\nfunction $93635573935797de$export$c36e0ecb2d4fa69d(era, year) {\n return era === 'BC' ? 1 - year : year;\n}\nfunction $93635573935797de$export$4475b7e617eb123c(year) {\n let era = 'AD';\n if (year <= 0) {\n era = 'BC';\n year = 1 - year;\n }\n return [\n era,\n year\n ];\n}\nconst $93635573935797de$var$daysInMonth = {\n standard: [\n 31,\n 28,\n 31,\n 30,\n 31,\n 30,\n 31,\n 31,\n 30,\n 31,\n 30,\n 31\n ],\n leapyear: [\n 31,\n 29,\n 31,\n 30,\n 31,\n 30,\n 31,\n 31,\n 30,\n 31,\n 30,\n 31\n ]\n};\nclass $93635573935797de$export$80ee6245ec4f29ec {\n fromJulianDay(jd) {\n let jd0 = jd;\n let depoch = jd0 - $93635573935797de$var$EPOCH;\n let quadricent = Math.floor(depoch / 146097);\n let dqc = (0, $09ec6a572d60460f$export$842a2cf37af977e1)(depoch, 146097);\n let cent = Math.floor(dqc / 36524);\n let dcent = (0, $09ec6a572d60460f$export$842a2cf37af977e1)(dqc, 36524);\n let quad = Math.floor(dcent / 1461);\n let dquad = (0, $09ec6a572d60460f$export$842a2cf37af977e1)(dcent, 1461);\n let yindex = Math.floor(dquad / 365);\n let extendedYear = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);\n let [era, year] = $93635573935797de$export$4475b7e617eb123c(extendedYear);\n let yearDay = jd0 - $93635573935797de$export$f297eb839006d339(era, year, 1, 1);\n let leapAdj = 2;\n if (jd0 < $93635573935797de$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;\n else if ($93635573935797de$export$553d7fa8e3805fc0(year)) leapAdj = 1;\n let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);\n let day = jd0 - $93635573935797de$export$f297eb839006d339(era, year, month, 1) + 1;\n return new (0, $2aaf608024c21ca1$export$99faa760c7908e4f)(era, year, month, day);\n }\n toJulianDay(date) {\n return $93635573935797de$export$f297eb839006d339(date.era, date.year, date.month, date.day);\n }\n getDaysInMonth(date) {\n return $93635573935797de$var$daysInMonth[$93635573935797de$export$553d7fa8e3805fc0(date.year) ? 'leapyear' : 'standard'][date.month - 1];\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getMonthsInYear(date) {\n return 12;\n }\n getDaysInYear(date) {\n return $93635573935797de$export$553d7fa8e3805fc0(date.year) ? 366 : 365;\n }\n getMaximumMonthsInYear() {\n return 12;\n }\n getMaximumDaysInMonth() {\n return 31;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getYearsInEra(date) {\n return 9999;\n }\n getEras() {\n return [\n 'BC',\n 'AD'\n ];\n }\n isInverseEra(date) {\n return date.era === 'BC';\n }\n balanceDate(date) {\n if (date.year <= 0) {\n date.era = date.era === 'BC' ? 'AD' : 'BC';\n date.year = 1 - date.year;\n }\n }\n constructor(){\n this.identifier = 'gregory';\n }\n}\n\n\nexport {$93635573935797de$export$f297eb839006d339 as gregorianToJulianDay, $93635573935797de$export$c36e0ecb2d4fa69d as getExtendedYear, $93635573935797de$export$553d7fa8e3805fc0 as isLeapYear, $93635573935797de$export$4475b7e617eb123c as fromExtendedYear, $93635573935797de$export$80ee6245ec4f29ec as GregorianCalendar};\n//# sourceMappingURL=GregorianCalendar.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAiBA,IAAM,8BAA8B;AACpC,SAAS,0CAA0C,KAAK,MAAM,OAAO,KAAK;AACtE,QAAO,0CAA0C,KAAK,KAAK;CAC3D,IAAI,KAAK,OAAO;CAChB,IAAI,cAAc;AAClB,KAAI,SAAS,EAAG,eAAc;UACrB,0CAA0C,KAAK,CAAE,eAAc;AACxE,QAAO,8BAA8B,IAAI,MAAM,KAAK,KAAK,MAAM,KAAK,EAAE,GAAG,KAAK,MAAM,KAAK,IAAI,GAAG,KAAK,MAAM,KAAK,IAAI,GAAG,KAAK,OAAO,MAAM,QAAQ,OAAO,KAAK,cAAc,IAAI;;AAEnL,SAAS,0CAA0C,MAAM;AACrD,QAAO,OAAO,MAAM,MAAM,OAAO,QAAQ,KAAK,OAAO,QAAQ;;AAEjE,SAAS,0CAA0C,KAAK,MAAM;AAC1D,QAAO,QAAQ,OAAO,IAAI,OAAO;;AAErC,SAAS,0CAA0C,MAAM;CACrD,IAAI,MAAM;AACV,KAAI,QAAQ,GAAG;AACX,QAAM;AACN,SAAO,IAAI;;AAEf,QAAO,CACH,KACA,KACH;;AAEL,IAAM,oCAAoC;CACtC,UAAU;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACH;CACD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AGX,cAAc,MAAM;AAChB,SAAO;;CAEX,UAAU;AACN,SAAO,CACH,MACA,KACH;;CAEL,aAAa,MAAM;AACf,SAAO,KAAK,QAAQ;;CAExB,YAAY,MAAM;AACd,MAAI,KAAK,QAAQ,GAAG;AAChB,QAAK,MAAM,KAAK,QAAQ,OAAO,OAAO;AACtC,QAAK,OAAO,IAAI,KAAK;;;CAG7B,cAAa;AACT,OAAK,aAAa"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { $93635573935797de$export$80ee6245ec4f29ec, $93635573935797de$export$c36e0ecb2d4fa69d } from "./calendars/GregorianCalendar.js";
|
|
2
|
-
import { $ad063034c8620db8$export$6ab69b273755230b, $ad063034c8620db8$export$aa8b41735afcabd2, $ad063034c8620db8$export$dbc69fd56b53d5e } from "./queries.js";
|
|
3
|
-
import { $435a2ceaa8778ed8$export$c4e2ecac49351ef2 } from "./manipulation.js";
|
|
4
|
-
import { $2aaf608024c21ca1$export$99faa760c7908e4f, $2aaf608024c21ca1$export$ca871e8dbb80966f, $2aaf608024c21ca1$export$d3b7288e7994edea } from "./CalendarDate.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/@internationalized+date@3.12.1/node_modules/@internationalized/date/dist/private/conversion.mjs
|
|
6
|
-
function $d07e34cce18680fd$export$bd4fb2bc8bb06fb(date) {
|
|
7
|
-
date = $d07e34cce18680fd$export$b4a036af3fc0b032(date, new $93635573935797de$export$80ee6245ec4f29ec());
|
|
8
|
-
return $d07e34cce18680fd$var$epochFromParts($93635573935797de$export$c36e0ecb2d4fa69d(date.era, date.year), date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
|
|
9
|
-
}
|
|
10
|
-
function $d07e34cce18680fd$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {
|
|
11
|
-
let date = /* @__PURE__ */ new Date();
|
|
12
|
-
date.setUTCHours(hour, minute, second, millisecond);
|
|
13
|
-
date.setUTCFullYear(year, month - 1, day);
|
|
14
|
-
return date.getTime();
|
|
15
|
-
}
|
|
16
|
-
function $d07e34cce18680fd$export$59c99f3515d3493f(ms, timeZone) {
|
|
17
|
-
if (timeZone === "UTC") return 0;
|
|
18
|
-
if (ms > 0 && timeZone === $ad063034c8620db8$export$aa8b41735afcabd2() && !$ad063034c8620db8$export$6ab69b273755230b()) return new Date(ms).getTimezoneOffset() * -6e4;
|
|
19
|
-
let { year, month, day, hour, minute, second } = $d07e34cce18680fd$var$getTimeZoneParts(ms, timeZone);
|
|
20
|
-
return $d07e34cce18680fd$var$epochFromParts(year, month, day, hour, minute, second, 0) - Math.floor(ms / 1e3) * 1e3;
|
|
21
|
-
}
|
|
22
|
-
var $d07e34cce18680fd$var$formattersByTimeZone = /* @__PURE__ */ new Map();
|
|
23
|
-
function $d07e34cce18680fd$var$getTimeZoneParts(ms, timeZone) {
|
|
24
|
-
let formatter = $d07e34cce18680fd$var$formattersByTimeZone.get(timeZone);
|
|
25
|
-
if (!formatter) {
|
|
26
|
-
formatter = new Intl.DateTimeFormat("en-US", {
|
|
27
|
-
timeZone,
|
|
28
|
-
hour12: false,
|
|
29
|
-
era: "short",
|
|
30
|
-
year: "numeric",
|
|
31
|
-
month: "numeric",
|
|
32
|
-
day: "numeric",
|
|
33
|
-
hour: "numeric",
|
|
34
|
-
minute: "numeric",
|
|
35
|
-
second: "numeric"
|
|
36
|
-
});
|
|
37
|
-
$d07e34cce18680fd$var$formattersByTimeZone.set(timeZone, formatter);
|
|
38
|
-
}
|
|
39
|
-
let parts = formatter.formatToParts(new Date(ms));
|
|
40
|
-
let namedParts = {};
|
|
41
|
-
for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
|
|
42
|
-
return {
|
|
43
|
-
year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
|
|
44
|
-
month: +namedParts.month,
|
|
45
|
-
day: +namedParts.day,
|
|
46
|
-
hour: namedParts.hour === "24" ? 0 : +namedParts.hour,
|
|
47
|
-
minute: +namedParts.minute,
|
|
48
|
-
second: +namedParts.second
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
var $d07e34cce18680fd$var$DAYMILLIS = 864e5;
|
|
52
|
-
function $d07e34cce18680fd$var$getValidWallTimes(date, timeZone, earlier, later) {
|
|
53
|
-
return (earlier === later ? [earlier] : [earlier, later]).filter((absolute) => $d07e34cce18680fd$var$isValidWallTime(date, timeZone, absolute));
|
|
54
|
-
}
|
|
55
|
-
function $d07e34cce18680fd$var$isValidWallTime(date, timeZone, absolute) {
|
|
56
|
-
let parts = $d07e34cce18680fd$var$getTimeZoneParts(absolute, timeZone);
|
|
57
|
-
return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;
|
|
58
|
-
}
|
|
59
|
-
function $d07e34cce18680fd$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
|
|
60
|
-
let dateTime = $d07e34cce18680fd$export$b21e0b124e224484(date);
|
|
61
|
-
if (timeZone === "UTC") return $d07e34cce18680fd$export$bd4fb2bc8bb06fb(dateTime);
|
|
62
|
-
if (timeZone === $ad063034c8620db8$export$aa8b41735afcabd2() && disambiguation === "compatible" && !$ad063034c8620db8$export$6ab69b273755230b()) {
|
|
63
|
-
dateTime = $d07e34cce18680fd$export$b4a036af3fc0b032(dateTime, new $93635573935797de$export$80ee6245ec4f29ec());
|
|
64
|
-
let date = /* @__PURE__ */ new Date();
|
|
65
|
-
let year = $93635573935797de$export$c36e0ecb2d4fa69d(dateTime.era, dateTime.year);
|
|
66
|
-
date.setFullYear(year, dateTime.month - 1, dateTime.day);
|
|
67
|
-
date.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
|
|
68
|
-
return date.getTime();
|
|
69
|
-
}
|
|
70
|
-
let ms = $d07e34cce18680fd$export$bd4fb2bc8bb06fb(dateTime);
|
|
71
|
-
let offsetBefore = $d07e34cce18680fd$export$59c99f3515d3493f(ms - $d07e34cce18680fd$var$DAYMILLIS, timeZone);
|
|
72
|
-
let offsetAfter = $d07e34cce18680fd$export$59c99f3515d3493f(ms + $d07e34cce18680fd$var$DAYMILLIS, timeZone);
|
|
73
|
-
let valid = $d07e34cce18680fd$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
|
|
74
|
-
if (valid.length === 1) return valid[0];
|
|
75
|
-
if (valid.length > 1) switch (disambiguation) {
|
|
76
|
-
case "compatible":
|
|
77
|
-
case "earlier": return valid[0];
|
|
78
|
-
case "later": return valid[valid.length - 1];
|
|
79
|
-
case "reject": throw new RangeError("Multiple possible absolute times found");
|
|
80
|
-
}
|
|
81
|
-
switch (disambiguation) {
|
|
82
|
-
case "earlier": return Math.min(ms - offsetBefore, ms - offsetAfter);
|
|
83
|
-
case "compatible":
|
|
84
|
-
case "later": return Math.max(ms - offsetBefore, ms - offsetAfter);
|
|
85
|
-
case "reject": throw new RangeError("No such absolute time found");
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function $d07e34cce18680fd$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = "compatible") {
|
|
89
|
-
return new Date($d07e34cce18680fd$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
|
|
90
|
-
}
|
|
91
|
-
function $d07e34cce18680fd$export$1b96692a1ba042ac(ms, timeZone) {
|
|
92
|
-
let offset = $d07e34cce18680fd$export$59c99f3515d3493f(ms, timeZone);
|
|
93
|
-
let date = new Date(ms + offset);
|
|
94
|
-
let year = date.getUTCFullYear();
|
|
95
|
-
let month = date.getUTCMonth() + 1;
|
|
96
|
-
let day = date.getUTCDate();
|
|
97
|
-
let hour = date.getUTCHours();
|
|
98
|
-
let minute = date.getUTCMinutes();
|
|
99
|
-
let second = date.getUTCSeconds();
|
|
100
|
-
let millisecond = date.getUTCMilliseconds();
|
|
101
|
-
return new $2aaf608024c21ca1$export$d3b7288e7994edea(year < 1 ? "BC" : "AD", year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);
|
|
102
|
-
}
|
|
103
|
-
function $d07e34cce18680fd$export$93522d1a439f3617(dateTime) {
|
|
104
|
-
return new $2aaf608024c21ca1$export$99faa760c7908e4f(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
|
|
105
|
-
}
|
|
106
|
-
function $d07e34cce18680fd$export$b21e0b124e224484(date, time) {
|
|
107
|
-
let hour = 0, minute = 0, second = 0, millisecond = 0;
|
|
108
|
-
if ("timeZone" in date) ({hour: hour, minute: minute, second: second, millisecond: millisecond} = date);
|
|
109
|
-
else if ("hour" in date && !time) return date;
|
|
110
|
-
if (time) ({hour: hour, minute: minute, second: second, millisecond: millisecond} = time);
|
|
111
|
-
return new $2aaf608024c21ca1$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
|
|
112
|
-
}
|
|
113
|
-
function $d07e34cce18680fd$export$b4a036af3fc0b032(date, calendar) {
|
|
114
|
-
if ($ad063034c8620db8$export$dbc69fd56b53d5e(date.calendar, calendar)) return date;
|
|
115
|
-
let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
|
|
116
|
-
let copy = date.copy();
|
|
117
|
-
copy.calendar = calendar;
|
|
118
|
-
copy.era = calendarDate.era;
|
|
119
|
-
copy.year = calendarDate.year;
|
|
120
|
-
copy.month = calendarDate.month;
|
|
121
|
-
copy.day = calendarDate.day;
|
|
122
|
-
$435a2ceaa8778ed8$export$c4e2ecac49351ef2(copy);
|
|
123
|
-
return copy;
|
|
124
|
-
}
|
|
125
|
-
function $d07e34cce18680fd$export$84c95a83c799e074(date, timeZone, disambiguation) {
|
|
126
|
-
if (date instanceof $2aaf608024c21ca1$export$d3b7288e7994edea) {
|
|
127
|
-
if (date.timeZone === timeZone) return date;
|
|
128
|
-
return $d07e34cce18680fd$export$538b00033cc11c75(date, timeZone);
|
|
129
|
-
}
|
|
130
|
-
return $d07e34cce18680fd$export$1b96692a1ba042ac($d07e34cce18680fd$export$5107c82f94518f5c(date, timeZone, disambiguation), timeZone);
|
|
131
|
-
}
|
|
132
|
-
function $d07e34cce18680fd$export$83aac07b4c37b25(date) {
|
|
133
|
-
let ms = $d07e34cce18680fd$export$bd4fb2bc8bb06fb(date) - date.offset;
|
|
134
|
-
return new Date(ms);
|
|
135
|
-
}
|
|
136
|
-
function $d07e34cce18680fd$export$538b00033cc11c75(date, timeZone) {
|
|
137
|
-
return $d07e34cce18680fd$export$b4a036af3fc0b032($d07e34cce18680fd$export$1b96692a1ba042ac($d07e34cce18680fd$export$bd4fb2bc8bb06fb(date) - date.offset, timeZone), date.calendar);
|
|
138
|
-
}
|
|
139
|
-
//#endregion
|
|
140
|
-
export { $d07e34cce18680fd$export$1b96692a1ba042ac, $d07e34cce18680fd$export$5107c82f94518f5c, $d07e34cce18680fd$export$83aac07b4c37b25, $d07e34cce18680fd$export$84c95a83c799e074, $d07e34cce18680fd$export$93522d1a439f3617, $d07e34cce18680fd$export$b21e0b124e224484, $d07e34cce18680fd$export$b4a036af3fc0b032, $d07e34cce18680fd$export$bd4fb2bc8bb06fb, $d07e34cce18680fd$export$e67a095c620b86fe };
|
|
141
|
-
|
|
142
|
-
//# sourceMappingURL=conversion.js.map
|