@saasquatch/mint-components 2.5.5-2 → 2.5.5
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/AsYouType-5f15a922.js +4764 -0
- package/dist/cjs/{ErrorView-17578c10.js → ErrorView-8f6cf1cb.js} +1 -1
- package/dist/cjs/{GenericTableView-4c48c630.js → GenericTableView-12d35117.js} +17 -15
- package/dist/cjs/{JSS-8503a151.js → JSS-bf8078e9.js} +342 -338
- package/dist/cjs/{ShadowViewAddon-f57cb460.js → ShadowViewAddon-ee16ec1d.js} +312 -292
- package/dist/cjs/{copy-text-view-bb2c0ea7.js → copy-text-view-49517b2a.js} +2 -2
- package/dist/cjs/{data-ae38fa86.js → data-77273531.js} +5 -5
- package/dist/cjs/demoMerge-6f125494.js +203 -0
- package/dist/cjs/{dom-context-hooks.module-e7b6727c.js → dom-context-hooks.module-735c3942.js} +133 -76
- package/dist/cjs/{email-registration-view-306c8878.js → email-registration-view-36a74293.js} +10 -9
- package/dist/cjs/{global-3ba30270.js → global-973bc63c.js} +587 -583
- package/dist/cjs/{index.module-3221a469.js → index-8530c62f.js} +2911 -511
- package/dist/cjs/{index-8277cbb3.js → index-d41c2c94.js} +766 -340
- package/dist/cjs/{index-8c6255f5.js → index-f1dd6136.js} +47 -29
- package/dist/cjs/{jsonpointer-11327262.js → jsonpointer-0db21316.js} +8 -4
- package/dist/cjs/loader.cjs.js +6 -5
- package/dist/cjs/{luxon-c1ad356a.js → luxon-d3612a3d.js} +486 -299
- package/dist/cjs/mint-components.cjs.js +11 -7
- package/dist/cjs/{mockRewardData-ed603fca.js → mockRewardData-e6a0a048.js} +5 -3
- package/dist/cjs/{parseStates-d1effc19.js → parseStates-35013ba4.js} +3 -0
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-34b36aca.js → re-render-51c48d7c.js} +5 -5
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +399 -1395
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +813 -2891
- package/dist/cjs/{sqm-close-button-view-e9f2a454.js → sqm-close-button-view-74e5e1e9.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -11
- package/dist/cjs/sqm-code-verification.cjs.entry.js +20 -47
- package/dist/cjs/sqm-context-router.cjs.entry.js +9 -8
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +71 -182
- package/dist/cjs/sqm-empty_4.cjs.entry.js +21 -58
- package/dist/cjs/sqm-form-message_2.cjs.entry.js +7 -19
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +10 -9
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +11 -10
- package/dist/cjs/sqm-header-logo.cjs.entry.js +4 -19
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +14 -89
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +6 -8
- package/dist/cjs/{sqm-lead-checkbox-field-view-d6df81c7.js → sqm-lead-checkbox-field-view-24ac7358.js} +12 -11
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +14 -30
- package/dist/cjs/sqm-lead-input-field-view-7dfbc714.js +52 -0
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +15 -31
- package/dist/cjs/{sqm-leaderboard-rank-view-67fd7934.js → sqm-leaderboard-rank-view-e992762c.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +25 -22
- package/dist/cjs/{sqm-logout-current-user-view-f330d641.js → sqm-logout-current-user-view-ebee238e.js} +2 -2
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +17 -28
- package/dist/cjs/{sqm-navigation-sidebar-item-view-9134e64e.js → sqm-navigation-sidebar-item-view-a2cab80e.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +23 -18
- package/dist/cjs/{sqm-navigation-sidebar-view-6616e3e0.js → sqm-navigation-sidebar-view-873e0c44.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +12 -17
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +40 -102
- package/dist/cjs/{sqm-partner-info-modal-view-6173c618.js → sqm-partner-info-modal-view-c8972001.js} +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +186 -86
- package/dist/cjs/sqm-popup-container.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-portal-container-view-757f921b.js → sqm-portal-container-view-c0cf9af9.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-38d8344c.js → sqm-portal-email-verification-view-92866725.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +22 -52
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +101 -429
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +7 -13
- package/dist/cjs/{sqm-portal-profile-view-062eda68.js → sqm-portal-profile-view-60e78cdb.js} +20 -17
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +20 -56
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -24
- package/dist/cjs/{sqm-portal-registration-form-view-a45f7a52.js → sqm-portal-registration-form-view-5473e24d.js} +26 -21
- package/dist/cjs/{sqm-portal-reset-password-view-b2c546bd.js → sqm-portal-reset-password-view-7a6f55c5.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +21 -89
- package/dist/cjs/{sqm-portal-verify-email-view-2a120d0a.js → sqm-portal-verify-email-view-7efa70c9.js} +48 -45
- package/dist/cjs/{sqm-qr-code-view-0d43424e.js → sqm-qr-code-view-70da70f9.js} +3 -3
- package/dist/cjs/sqm-qr-code.cjs.entry.js +22 -48
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +37 -140
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +5 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -7
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +98 -217
- package/dist/cjs/sqm-route.cjs.entry.js +2 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +12 -8
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2892 -2264
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +9 -8
- package/dist/cjs/{sqm-text-span-view-b9e10f5d.js → sqm-text-span-view-c6938acd.js} +2 -2
- package/dist/cjs/sqm-text-span.cjs.entry.js +8 -4
- package/dist/cjs/{sqm-user-info-form-view-aedca5fe.js → sqm-user-info-form-view-e878a9a3.js} +173 -163
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +6 -11
- package/dist/cjs/subregions-3dbacb18.js +1467 -0
- package/dist/cjs/{useChildElements-36f7e4bb.js → useChildElements-e5e26816.js} +3 -3
- package/dist/cjs/{useIndirectTaxForm-7656fc63.js → useIndirectTaxForm-691691c2.js} +42 -38
- package/dist/cjs/{useInstantAccessRegistration-43514e50.js → useInstantAccessRegistration-9201777d.js} +6 -6
- package/dist/cjs/{useLeadFormState-34f9834b.js → useLeadFormState-f5b768b9.js} +20 -20
- package/dist/cjs/{usePortalRegistrationForm-b18a1f6b.js → usePortalRegistrationForm-b3c0451b.js} +16 -13
- package/dist/cjs/{useReferralCodes-25d5320a.js → useReferralCodes-5794a177.js} +11 -11
- package/dist/cjs/{useReferralTable-ad86986b.js → useReferralTable-32b3541b.js} +19 -19
- package/dist/cjs/{useRegistrationFormState-ea81d55a.js → useRegistrationFormState-feccd2c8.js} +3 -3
- package/dist/cjs/{useVerificationEmail-70aad5f1.js → useVerificationEmail-f0807562.js} +17 -15
- package/dist/cjs/{utilities-dfc34bea.js → utilities-04345466.js} +3 -3
- package/dist/collection/ShadowViewAddon.js +1 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/raisins-plop-target/raisins-plop-target.js +36 -34
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +3 -7
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +11 -23
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +11 -27
- package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +2 -16
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +1 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +294 -298
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +3 -3
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +4 -72
- package/dist/collection/components/sqm-brand/sqm-brand.js +61 -58
- package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +43 -120
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -5
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +55 -59
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +17 -22
- package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +5 -19
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +18 -21
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +167 -179
- package/dist/collection/components/sqm-close-button/CloseButton.stories.js +3 -5
- package/dist/collection/components/sqm-close-button/sqm-close-button-view.js +1 -5
- package/dist/collection/components/sqm-close-button/sqm-close-button.js +32 -35
- package/dist/collection/components/sqm-context-router/ContextRouter.js +4 -33
- package/dist/collection/components/sqm-context-router/sqm-context-router.js +39 -33
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +13 -13
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +1 -7
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +601 -695
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +10 -5
- package/dist/collection/components/sqm-divided-layout/DividedLayout.stories.js +19 -36
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +1 -5
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +129 -135
- package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +7 -7
- package/dist/collection/components/sqm-dropdown-field/UseDropdownField.stories.js +3 -15
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +13 -15
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +128 -133
- package/dist/collection/components/sqm-edit-profile/EditProfileForm.stories.js +2 -2
- package/dist/collection/components/sqm-edit-profile/UseEditProfile.stories.js +9 -9
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +27 -45
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +272 -264
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +4 -3
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +4 -7
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +6 -12
- package/dist/collection/components/sqm-empty/sqm-empty.js +102 -95
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +9 -27
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +102 -108
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +61 -56
- package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +32 -28
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +147 -161
- package/dist/collection/components/sqm-hero/Hero.stories.js +20 -54
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +5 -11
- package/dist/collection/components/sqm-hero/sqm-hero.js +177 -202
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +9 -26
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +533 -590
- package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +28 -23
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -6
- package/dist/collection/components/sqm-image/sqm-image.js +131 -131
- package/dist/collection/components/sqm-input-field/InputField.stories.js +17 -17
- package/dist/collection/components/sqm-input-field/UseInputField.stories.js +7 -22
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +14 -15
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +156 -162
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +410 -481
- package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +2 -18
- package/dist/collection/components/sqm-invoice-table/UseInvoiceTable.stories.js +2 -14
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-data-cell.js +27 -23
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-date-cell.js +44 -40
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +29 -29
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +85 -80
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +68 -64
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +40 -39
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -8
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +287 -310
- package/dist/collection/components/sqm-invoice-table/useInvoiceTable.js +1 -3
- package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +7 -7
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +6 -10
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +10 -10
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +7 -7
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +20 -24
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +167 -179
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +13 -17
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +174 -189
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +22 -48
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +365 -420
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +13 -16
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +179 -191
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +3 -1
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +23 -29
- package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +3 -15
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +11 -35
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +553 -563
- package/dist/collection/components/sqm-leaderboard-rank/LeaderboardRank.stories.js +3 -12
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +200 -192
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +4 -3
- package/dist/collection/components/sqm-link-button/LinkButton.stories.js +2 -2
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +1 -6
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +73 -77
- package/dist/collection/components/sqm-logout-current-user/LogoutCurrentUser.stories.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user-view.js +1 -9
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +106 -115
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +104 -109
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +21 -20
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +104 -109
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu-view.js +6 -9
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +92 -82
- package/dist/collection/components/sqm-navigation-sidebar/NavigationSidebar.stories.js +1 -3
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +1 -8
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +71 -73
- package/dist/collection/components/sqm-navigation-sidebar-item/SidebarItem.stories.js +2 -2
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +1 -4
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +315 -308
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +1 -9
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +94 -100
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +13 -13
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +22 -54
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +515 -603
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +3 -3
- package/dist/collection/components/sqm-password-field/passwordValidation.js +8 -20
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +16 -18
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +197 -219
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -7
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -4
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +82 -84
- package/dist/collection/components/sqm-popup-container/PopupContainer.stories.js +1 -2
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -5
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +161 -155
- package/dist/collection/components/sqm-portal-change-marketing/ChangeMarketing.stories.js +5 -5
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +8 -17
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +142 -154
- package/dist/collection/components/sqm-portal-change-password/ChangePassword.stories.js +6 -6
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -24
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +380 -436
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +5 -2
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +16 -119
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -5
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +280 -299
- package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js +5 -5
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +13 -25
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +216 -243
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +6 -6
- package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +1 -12
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -16
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +317 -351
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -14
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +279 -316
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -1
- package/dist/collection/components/sqm-portal-frame/PortalFrame.stories.js +14 -55
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +1 -7
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +141 -158
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +295 -342
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +19 -26
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +645 -749
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -5
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -17
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +255 -292
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +33 -36
- package/dist/collection/components/sqm-portal-profile/PortalProfile.stories.js +6 -6
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +15 -26
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +282 -314
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +72 -82
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +8 -13
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +15 -28
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +525 -610
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -1
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +10 -15
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +20 -33
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +573 -663
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +5 -2
- package/dist/collection/components/sqm-portal-reset-password/PortalResetPassword.stories.js +6 -6
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -29
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +449 -514
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +2 -1
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +2 -2
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -14
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +196 -222
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +4 -2
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +20 -32
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -7
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +84 -78
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -10
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +231 -220
- package/dist/collection/components/sqm-program-menu/ProgramMenu.stories.js +8 -25
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +8 -9
- package/dist/collection/components/sqm-qr-code/QRCode.stories.js +8 -8
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -11
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +206 -230
- package/dist/collection/components/sqm-radio-card/RadioCard.stories.js +2 -2
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +1 -9
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +29 -86
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +3 -11
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +304 -335
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +14 -14
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +369 -410
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +3 -3
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +9 -36
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +3 -14
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +167 -175
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +2 -4
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -3
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +125 -132
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +9 -24
- package/dist/collection/components/sqm-referral-table/ReferralTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +5 -8
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +30 -30
- package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +8 -30
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-cell.js +28 -23
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +44 -40
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +219 -278
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +81 -76
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +24 -20
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +65 -61
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +120 -139
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +260 -300
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +208 -225
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +124 -133
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +229 -253
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -3
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +479 -557
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -26
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +8 -18
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +26 -28
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +96 -174
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +618 -726
- package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +16 -31
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +12 -15
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +11 -11
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +8 -30
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js +45 -40
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +44 -40
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +97 -103
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +160 -156
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +336 -332
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +96 -105
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +67 -66
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +127 -135
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +173 -197
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +390 -463
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +4 -2
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +206 -219
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -3
- package/dist/collection/components/sqm-route/sqm-route.js +31 -26
- package/dist/collection/components/sqm-router/Router.stories.js +4 -33
- package/dist/collection/components/sqm-router/sqm-router.js +17 -14
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +6 -89
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +259 -255
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +12 -46
- package/dist/collection/components/sqm-share-button/UseShareButton.stories.js +2 -7
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -6
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +509 -521
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +13 -13
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +329 -360
- package/dist/collection/components/sqm-share-code/useShareCode.js +3 -3
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +85 -86
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +17 -20
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +21 -49
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +987 -1192
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -3
- package/dist/collection/components/sqm-skeleton/sqm-skeleton.js +55 -59
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +1 -5
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +162 -185
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +12 -15
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -5
- package/dist/collection/components/sqm-stencilbook/HookStoryAddon.js +1 -2
- package/dist/collection/components/sqm-stencilbook/Matrix.js +4 -13
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -13
- package/dist/collection/components/sqm-tab/sqm-tab.js +27 -25
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +47 -49
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +27 -30
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +10 -17
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +62 -59
- package/dist/collection/components/sqm-tabs/useTabs.js +1 -2
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -7
- package/dist/collection/components/sqm-task-card/SVGs.js +3 -7
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +31 -277
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -17
- package/dist/collection/components/sqm-task-card/progress-bar/ProgressBar.stories.js +1 -1
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +2 -10
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +10 -13
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +56 -83
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +780 -860
- package/dist/collection/components/sqm-text/Text.stories.js +2 -4
- package/dist/collection/components/sqm-text/sqm-text.js +61 -57
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -5
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +109 -101
- package/dist/collection/components/sqm-timeline/SVGs.js +3 -9
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +5 -57
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +1 -16
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +178 -166
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +41 -45
- package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +5 -206
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +1 -4
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +129 -148
- package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +4 -7
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +1 -3
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +146 -137
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +82 -84
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +6 -26
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +215 -240
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +12 -22
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +12 -30
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +177 -195
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +33 -41
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +771 -921
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +4 -2
- package/dist/collection/components/tax-and-cash/SVGs.js +1 -4
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -3
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +188 -198
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +34 -83
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1864 -2210
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -7
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +13 -31
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +26 -53
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +565 -660
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -3
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +24 -63
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +699 -816
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +1 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +5 -20
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +130 -147
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +12 -33
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +910 -1035
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +1 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/LoadingView.js +2 -19
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +4760 -5686
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +89 -176
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +1857 -2159
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +27 -27
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +5 -9
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +24 -44
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/SlotViews.stories.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +120 -157
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +713 -823
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -7
- package/dist/collection/components/views/EmailRegistration.stories.js +60 -60
- package/dist/collection/components/views/copy-text-view.js +6 -17
- package/dist/collection/components/views/email-registration-view.js +14 -28
- package/dist/collection/global/styles.js +8 -4
- package/dist/collection/stories/NewPortal.stories.js +106 -178
- package/dist/collection/tables/GenericTableView.js +19 -27
- package/dist/collection/tables/TableSlots.js +5 -19
- package/dist/collection/utils/DefaultTemplateView.js +6 -24
- package/dist/collection/utils/RequiredPropsError.js +10 -24
- package/dist/collection/utils/TemplateView.js +1 -3
- package/dist/collection/utils/demoMerge.js +10 -0
- package/dist/esm/AsYouType-cc09fa68.js +4746 -0
- package/dist/esm/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
- package/dist/esm/{GenericTableView-471a9386.js → GenericTableView-4f7ac63d.js} +17 -15
- package/dist/esm/{JSS-67b5cff8.js → JSS-e97b34f4.js} +341 -337
- package/dist/esm/{ShadowViewAddon-e1375e0d.js → ShadowViewAddon-0c8005bd.js} +284 -264
- package/dist/esm/{copy-text-view-87259b11.js → copy-text-view-e1c3f2cd.js} +2 -2
- package/dist/esm/{data-04d2da44.js → data-510cc9b7.js} +1 -1
- package/dist/esm/demoMerge-a0320a8e.js +201 -0
- package/dist/esm/{dom-context-hooks.module-50442785.js → dom-context-hooks.module-f88a3e54.js} +129 -72
- package/dist/esm/{email-registration-view-4cdb4129.js → email-registration-view-7a63a912.js} +10 -9
- package/dist/esm/{global-f019575d.js → global-cf0cc6b1.js} +586 -582
- package/dist/esm/{index-38ad4957.js → index-7a8b0c0b.js} +766 -341
- package/dist/esm/{index.module-cc08450c.js → index-b04013cc.js} +2873 -473
- package/dist/esm/{index-ffa26b43.js → index-e6f5153e.js} +47 -29
- package/dist/esm/{jsonpointer-388a7082.js → jsonpointer-c5423376.js} +8 -4
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{luxon-1be92a8e.js → luxon-40b943cb.js} +486 -299
- package/dist/esm/mint-components.js +8 -7
- package/dist/esm/{mockRewardData-9b27d6f1.js → mockRewardData-2cceba7a.js} +5 -3
- package/dist/esm/{parseStates-ed75e224.js → parseStates-0c27f2de.js} +3 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-380499f8.js → re-render-e911a0f7.js} +5 -5
- package/dist/esm/sqm-banking-info-form_10.entry.js +381 -1377
- package/dist/esm/sqm-big-stat_47.entry.js +762 -2840
- package/dist/esm/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -10
- package/dist/esm/sqm-code-verification.entry.js +19 -46
- package/dist/esm/sqm-context-router.entry.js +6 -5
- package/dist/esm/sqm-email-verification_2.entry.js +43 -154
- package/dist/esm/sqm-empty_4.entry.js +21 -58
- package/dist/esm/sqm-form-message_2.entry.js +7 -19
- package/dist/esm/sqm-google-sign-in.entry.js +4 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +9 -8
- package/dist/esm/sqm-header-logo.entry.js +4 -19
- package/dist/esm/sqm-instant-access-registration.entry.js +12 -87
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +6 -8
- package/dist/esm/{sqm-lead-checkbox-field-view-04aa32a7.js → sqm-lead-checkbox-field-view-d055e7bd.js} +12 -11
- package/dist/esm/sqm-lead-checkbox-field.entry.js +12 -28
- package/dist/esm/sqm-lead-input-field-view-b0d62f1c.js +50 -0
- package/dist/esm/sqm-lead-input-field.entry.js +13 -29
- package/dist/esm/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +22 -19
- package/dist/esm/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +12 -23
- package/dist/esm/{sqm-navigation-sidebar-item-view-40837457.js → sqm-navigation-sidebar-item-view-754b2484.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +21 -16
- package/dist/esm/{sqm-navigation-sidebar-view-2b66457a.js → sqm-navigation-sidebar-view-e2094399.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +11 -16
- package/dist/esm/sqm-pagination_3.entry.js +35 -97
- package/dist/esm/{sqm-partner-info-modal-view-e02fb63a.js → sqm-partner-info-modal-view-3b59be37.js} +4 -4
- package/dist/esm/sqm-password-field.entry.js +185 -85
- package/dist/esm/sqm-popup-container.entry.js +12 -12
- package/dist/esm/{sqm-portal-container-view-200c9df8.js → sqm-portal-container-view-fcd53673.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +18 -48
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +73 -401
- package/dist/esm/sqm-portal-logout.entry.js +5 -11
- package/dist/esm/{sqm-portal-profile-view-41894261.js → sqm-portal-profile-view-f27adfba.js} +20 -17
- package/dist/esm/sqm-portal-profile.entry.js +16 -52
- package/dist/esm/sqm-portal-protected-route.entry.js +8 -21
- package/dist/esm/{sqm-portal-registration-form-view-79265df5.js → sqm-portal-registration-form-view-113e1969.js} +26 -21
- package/dist/esm/{sqm-portal-reset-password-view-c7dd1c01.js → sqm-portal-reset-password-view-f9fb6355.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +18 -86
- package/dist/esm/{sqm-portal-verify-email-view-c102aa7c.js → sqm-portal-verify-email-view-ee40e3f2.js} +48 -45
- package/dist/esm/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +3 -3
- package/dist/esm/sqm-qr-code.entry.js +18 -44
- package/dist/esm/sqm-referral-table_11.entry.js +36 -139
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +5 -4
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -7
- package/dist/esm/sqm-rewards-table_9.entry.js +55 -174
- package/dist/esm/sqm-route.entry.js +2 -1
- package/dist/esm/sqm-scroll.entry.js +12 -8
- package/dist/esm/sqm-stencilbook.entry.js +4808 -4180
- package/dist/esm/sqm-tab.entry.js +5 -4
- package/dist/esm/sqm-tabs.entry.js +9 -8
- package/dist/esm/{sqm-text-span-view-72f43dff.js → sqm-text-span-view-ed92b3c6.js} +2 -2
- package/dist/esm/sqm-text-span.entry.js +8 -4
- package/dist/esm/{sqm-user-info-form-view-8a95c5eb.js → sqm-user-info-form-view-c044a385.js} +173 -163
- package/dist/esm/sqm-widget-verification-controller.entry.js +4 -9
- package/dist/esm/subregions-d9f177f6.js +1452 -0
- package/dist/esm/{useChildElements-aa9eb7c9.js → useChildElements-a69f208f.js} +3 -3
- package/dist/esm/{useIndirectTaxForm-8d2e873d.js → useIndirectTaxForm-64a3ca69.js} +32 -28
- package/dist/esm/{useInstantAccessRegistration-7b11eb02.js → useInstantAccessRegistration-8c678a5a.js} +6 -6
- package/dist/esm/{useLeadFormState-b67018f2.js → useLeadFormState-34e05463.js} +7 -7
- package/dist/esm/{usePortalRegistrationForm-91e5786d.js → usePortalRegistrationForm-c6519939.js} +14 -11
- package/dist/esm/{useReferralCodes-a0a271ca.js → useReferralCodes-d0a384e4.js} +9 -9
- package/dist/esm/{useReferralTable-670580ff.js → useReferralTable-214dff06.js} +11 -11
- package/dist/esm/{useRegistrationFormState-95a75c57.js → useRegistrationFormState-72b4786d.js} +3 -3
- package/dist/esm/{useVerificationEmail-99d9f705.js → useVerificationEmail-b2c349a3.js} +12 -10
- package/dist/esm/{utilities-23a276e0.js → utilities-ceab25cd.js} +2 -2
- package/dist/esm-es5/AsYouType-cc09fa68.js +1 -0
- package/dist/esm-es5/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
- package/dist/esm-es5/GenericTableView-4f7ac63d.js +1 -0
- package/dist/esm-es5/JSS-e97b34f4.js +8 -0
- package/dist/esm-es5/ShadowViewAddon-0c8005bd.js +1 -0
- package/dist/esm-es5/copy-text-view-e1c3f2cd.js +1 -0
- package/dist/esm-es5/data-510cc9b7.js +1 -0
- package/dist/esm-es5/demoMerge-a0320a8e.js +1 -0
- package/dist/esm-es5/dom-context-hooks.module-f88a3e54.js +53 -0
- package/dist/esm-es5/email-registration-view-7a63a912.js +1 -0
- package/dist/esm-es5/global-cf0cc6b1.js +271 -0
- package/dist/esm-es5/imageUrl-4775f17b.js +1 -1
- package/dist/esm-es5/index-7a8b0c0b.js +2 -0
- package/dist/esm-es5/index-b04013cc.js +1 -0
- package/dist/esm-es5/index-e6f5153e.js +1 -0
- package/dist/esm-es5/jsonpointer-c5423376.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-40b943cb.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mockRewardData-2cceba7a.js +1 -0
- package/dist/esm-es5/parseStates-0c27f2de.js +1 -0
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-e911a0f7.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message_2.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field-view-d055e7bd.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-input-field-view-b0d62f1c.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-754b2484.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-e2094399.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-3b59be37.js +1 -0
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-fcd53673.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-profile-view-f27adfba.js +1 -0
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form-view-113e1969.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password-view-f9fb6355.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-ee40e3f2.js +1 -0
- package/dist/esm-es5/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span-view-ed92b3c6.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-c044a385.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/subregions-d9f177f6.js +1 -0
- package/dist/esm-es5/useChildElements-a69f208f.js +1 -0
- package/dist/esm-es5/useIndirectTaxForm-64a3ca69.js +6 -0
- package/dist/esm-es5/useInstantAccessRegistration-8c678a5a.js +1 -0
- package/dist/esm-es5/useLeadFormState-34e05463.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-c6519939.js +1 -0
- package/dist/esm-es5/useReferralCodes-d0a384e4.js +1 -0
- package/dist/esm-es5/useReferralTable-214dff06.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-72b4786d.js +1 -0
- package/dist/esm-es5/useVerificationEmail-b2c349a3.js +1 -0
- package/dist/esm-es5/utilities-ceab25cd.js +1 -0
- package/dist/esm-es5/utils-334c1e34.js +1 -1
- package/dist/loader/index.d.ts +9 -1
- package/dist/loader/package.json +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +2 -1
- package/dist/mint-components/p-029ee766.system.js +1 -0
- package/dist/mint-components/p-04eaa3bb.system.js +1 -0
- package/dist/mint-components/p-056845fb.js +56 -0
- package/dist/mint-components/p-05715d8c.system.entry.js +1 -0
- package/dist/mint-components/p-0650e0f1.system.js +1 -0
- package/dist/mint-components/p-09a6ab1f.entry.js +1 -0
- package/dist/mint-components/p-0a8c9f35.system.entry.js +1 -0
- package/dist/mint-components/{p-11c127f5.js → p-0b77b3fe.js} +1 -1
- package/dist/mint-components/p-0bc61e27.system.entry.js +1 -0
- package/dist/mint-components/p-0bdacc2d.system.js +1 -0
- package/dist/mint-components/p-0c81f11f.system.entry.js +1 -0
- package/dist/mint-components/p-0c97293e.entry.js +1 -0
- package/dist/mint-components/p-0d69fc17.system.entry.js +1 -0
- package/dist/mint-components/p-0daa339e.entry.js +1 -0
- package/dist/mint-components/p-0f65e4ad.system.js +1 -0
- package/dist/mint-components/p-11028f98.system.js +1 -0
- package/dist/mint-components/p-119b9680.system.js +1 -0
- package/dist/mint-components/{p-ed741b3b.js → p-125c5bec.js} +6 -6
- package/dist/mint-components/p-12ae9c97.entry.js +1 -0
- package/dist/mint-components/p-139825b2.entry.js +1 -0
- package/dist/mint-components/p-14f0af4c.system.entry.js +1 -0
- package/dist/mint-components/{p-1a3a57c0.js → p-159a9368.js} +1 -1
- package/dist/mint-components/{p-78e98761.js → p-15f170d4.js} +4 -4
- package/dist/mint-components/p-162e5426.system.js +1 -0
- package/dist/mint-components/p-1933e4cc.system.entry.js +1 -0
- package/dist/mint-components/p-1aa5cdff.entry.js +1 -0
- package/dist/mint-components/p-1b673705.system.js +1 -0
- package/dist/mint-components/p-1e1543c7.entry.js +1 -0
- package/dist/mint-components/p-201ae45a.js +1 -0
- package/dist/mint-components/p-20b90db3.system.entry.js +1 -0
- package/dist/mint-components/p-2380b28e.system.entry.js +1 -0
- package/dist/mint-components/p-258152c8.system.entry.js +1 -0
- package/dist/mint-components/p-29be0454.system.entry.js +1 -0
- package/dist/mint-components/p-2af001d4.system.js +1 -0
- package/dist/mint-components/{p-88e16945.js → p-2b052eed.js} +1 -1
- package/dist/mint-components/p-2b5c577a.system.js +1 -0
- package/dist/mint-components/p-2ff39583.entry.js +33 -0
- package/dist/mint-components/p-3104b4ba.entry.js +1 -0
- package/dist/mint-components/p-324dd9c9.system.entry.js +1 -0
- package/dist/mint-components/p-32b3c92e.system.entry.js +1 -0
- package/dist/mint-components/{p-c813ec64.js → p-3595dbe3.js} +1 -1
- package/dist/mint-components/p-384d4366.system.entry.js +1 -0
- package/dist/mint-components/{p-a417a4c7.js → p-388fdcdc.js} +1 -1
- package/dist/mint-components/{p-acaf505d.entry.js → p-39e59497.entry.js} +1 -1
- package/dist/mint-components/p-3a8fa8df.system.entry.js +1 -0
- package/dist/mint-components/{p-456ccda6.system.js → p-3aab5e80.system.js} +1 -1
- package/dist/mint-components/p-3b7eac48.js +1 -0
- package/dist/mint-components/p-3f9d4025.js +254 -0
- package/dist/mint-components/p-4639a9ed.entry.js +1 -0
- package/dist/mint-components/p-483c2ce0.system.entry.js +1 -0
- package/dist/mint-components/p-487dac4b.system.js +271 -0
- package/dist/mint-components/p-49ca1533.system.entry.js +1 -0
- package/dist/mint-components/p-49d4188a.system.js +1 -0
- package/dist/mint-components/p-4be3689e.system.entry.js +1 -0
- package/dist/mint-components/p-4d690bf1.system.js +1 -0
- package/dist/mint-components/p-4ea630ba.system.js +1 -0
- package/dist/mint-components/p-5a1be3aa.entry.js +83 -0
- package/dist/mint-components/p-5a2c495f.js +1 -0
- package/dist/mint-components/p-5b043988.system.entry.js +1 -0
- package/dist/mint-components/p-5bacacba.entry.js +13 -0
- package/dist/mint-components/p-5e7e4e54.system.entry.js +1 -0
- package/dist/mint-components/p-6333265f.system.js +1 -1
- package/dist/mint-components/p-643a756b.system.js +53 -0
- package/dist/mint-components/p-647ca265.entry.js +1 -0
- package/dist/mint-components/p-647ffff2.entry.js +1 -0
- package/dist/mint-components/p-64c93b03.system.js +1 -0
- package/dist/mint-components/p-6708043c.entry.js +1 -0
- package/dist/mint-components/p-6a7c9ae4.system.entry.js +1 -0
- package/dist/mint-components/p-6a7cd966.system.js +1 -0
- package/dist/mint-components/p-6b9ff091.system.js +1 -0
- package/dist/mint-components/p-6be0e0a7.system.entry.js +1 -0
- package/dist/mint-components/p-6ccdf33a.js +1 -0
- package/dist/mint-components/p-6cdde5e8.system.js +1 -0
- package/dist/mint-components/p-6cfca206.js +1 -0
- package/dist/mint-components/{p-d276468c.js → p-6e00edce.js} +1 -1
- package/dist/mint-components/p-6eb14db9.system.entry.js +1 -0
- package/dist/mint-components/p-6f3ba1ad.system.js +1 -0
- package/dist/mint-components/p-6f66bb97.system.js +1 -0
- package/dist/mint-components/p-7127e360.system.entry.js +1 -0
- package/dist/mint-components/{p-d0559e66.js → p-71759064.js} +1 -1
- package/dist/mint-components/p-72f11f03.js +1 -0
- package/dist/mint-components/p-732ac03d.js +1 -0
- package/dist/mint-components/p-74f50554.js +1 -0
- package/dist/mint-components/p-7558fe46.js +499 -0
- package/dist/mint-components/{p-c43e1d3b.js → p-75b7496e.js} +1 -1
- package/dist/mint-components/p-76d36b05.js +1 -0
- package/dist/mint-components/p-7a8ed2f3.system.entry.js +1 -0
- package/dist/mint-components/{p-3390f1f2.system.js → p-7d992af1.system.js} +2 -2
- package/dist/mint-components/p-7f71b56b.system.entry.js +1 -0
- package/dist/mint-components/p-81b63e83.system.entry.js +1 -0
- package/dist/mint-components/p-83330731.system.js +1 -0
- package/dist/mint-components/p-834cd992.js +2 -0
- package/dist/mint-components/p-843c9997.system.js +1 -0
- package/dist/mint-components/{p-956f9479.system.js → p-8680e52b.system.js} +1 -1
- package/dist/mint-components/p-8740794e.system.js +2 -0
- package/dist/mint-components/p-885630e6.entry.js +1 -0
- package/dist/mint-components/p-8886a874.system.js +1 -0
- package/dist/mint-components/p-88b65807.system.js +1 -0
- package/dist/mint-components/p-89b410d5.system.entry.js +1 -0
- package/dist/mint-components/p-89eef397.entry.js +1 -0
- package/dist/mint-components/p-8aae5dba.system.entry.js +1 -0
- package/dist/mint-components/p-8ba39302.entry.js +1 -0
- package/dist/mint-components/{p-c2254b88.js → p-8d85f34c.js} +1 -1
- package/dist/mint-components/p-8f67c580.js +1 -0
- package/dist/mint-components/p-8fa1f8e3.entry.js +1 -0
- package/dist/mint-components/p-930cc94f.system.js +1 -0
- package/dist/mint-components/p-94f3e0a2.js +1 -0
- package/dist/mint-components/p-96e332db.entry.js +17 -0
- package/dist/mint-components/p-9755e82a.system.entry.js +1 -0
- package/dist/mint-components/p-9a7f186b.entry.js +1 -0
- package/dist/mint-components/p-9c2e286c.entry.js +11 -0
- package/dist/mint-components/{p-e30abc44.js → p-9cabd2d1.js} +1 -1
- package/dist/mint-components/p-9d06abb3.entry.js +13 -0
- package/dist/mint-components/p-9d1659c4.entry.js +308 -0
- package/dist/mint-components/p-9d6ef5ca.entry.js +11 -0
- package/dist/mint-components/p-a0e6ccbc.system.js +1 -0
- package/dist/mint-components/p-a35191ca.system.js +1 -0
- package/dist/mint-components/p-a3d1c665.system.entry.js +1 -0
- package/dist/mint-components/p-a43a9fa9.system.js +1 -1
- package/dist/mint-components/{p-04da3964.system.js → p-a6c96b8a.system.js} +1 -1
- package/dist/mint-components/p-a75748c4.js +13 -0
- package/dist/mint-components/{p-f9fcc772.js → p-a7a74002.js} +1 -1
- package/dist/mint-components/{p-3484f1c1.js → p-a8e2f45b.js} +1 -1
- package/dist/mint-components/p-a976d930.system.entry.js +1 -0
- package/dist/mint-components/p-aadbe44d.js +1 -0
- package/dist/mint-components/p-aaf15612.entry.js +1 -0
- package/dist/mint-components/p-ab1e96ea.system.js +1 -0
- package/dist/mint-components/p-abd9e52b.system.entry.js +1 -0
- package/dist/mint-components/{p-19aebd7d.js → p-ac32d96a.js} +1 -1
- package/dist/mint-components/{p-381af581.js → p-acd3e9e3.js} +1 -1
- package/dist/mint-components/{p-9a69f781.system.js → p-ae5f7df6.system.js} +1 -1
- package/dist/mint-components/p-af9d3491.js +1 -0
- package/dist/mint-components/p-b1f880ee.entry.js +1 -0
- package/dist/mint-components/p-b492fd4b.system.entry.js +1 -0
- package/dist/mint-components/p-b652d3b3.js +1 -0
- package/dist/mint-components/p-b6f5ab75.system.entry.js +1 -0
- package/dist/mint-components/p-b907384d.entry.js +1 -0
- package/dist/mint-components/p-bbb494a8.system.js +1 -0
- package/dist/mint-components/p-bd1a14ba.js +1 -0
- package/dist/mint-components/p-bd66c171.js +1 -0
- package/dist/mint-components/p-be38ae67.js +1 -0
- package/dist/mint-components/p-c30dfd5d.entry.js +92 -0
- package/dist/mint-components/p-c380988f.system.js +1 -0
- package/dist/mint-components/{p-104f6ced.entry.js → p-c3a07f51.entry.js} +1 -1
- package/dist/mint-components/p-c50c206e.system.js +1 -0
- package/dist/mint-components/p-c6d2a452.js +1 -0
- package/dist/mint-components/p-c7dd2eaa.system.entry.js +1 -0
- package/dist/mint-components/p-c8f697e4.system.js +1 -0
- package/dist/mint-components/p-c980e369.entry.js +1 -0
- package/dist/mint-components/p-cb714df1.system.js +1 -0
- package/dist/mint-components/p-cdf099fe.js +108 -0
- package/dist/mint-components/p-ce06d498.js +52 -0
- package/dist/mint-components/p-d08ebaa9.js +1 -0
- package/dist/mint-components/p-d8fac546.entry.js +1 -0
- package/dist/mint-components/p-d91a97d2.js +1 -0
- package/dist/mint-components/p-da6cb2c3.system.entry.js +1 -0
- package/dist/mint-components/p-dd7e8c95.system.js +8 -0
- package/dist/mint-components/p-dd82a675.system.entry.js +1 -0
- package/dist/mint-components/p-df1206f0.entry.js +1 -0
- package/dist/mint-components/p-df45273e.js +1 -0
- package/dist/mint-components/p-df531a5d.entry.js +1 -0
- package/dist/mint-components/p-e1c55f04.system.entry.js +1 -0
- package/dist/mint-components/p-e33839b3.system.js +1 -0
- package/dist/mint-components/p-e389aded.entry.js +1 -0
- package/dist/mint-components/p-e73e0fc4.system.js +1 -0
- package/dist/mint-components/p-e7f7b9c6.entry.js +1 -0
- package/dist/mint-components/{p-b47e3740.system.js → p-e9942aae.system.js} +1 -1
- package/dist/mint-components/p-eac100d1.system.js +1 -0
- package/dist/mint-components/p-eb47b174.entry.js +1 -0
- package/dist/mint-components/p-eba82926.js +1 -0
- package/dist/mint-components/p-ec00bb5f.js +1 -0
- package/dist/mint-components/p-edc8d9bc.system.js +1 -0
- package/dist/mint-components/p-f0e1d538.entry.js +147 -0
- package/dist/mint-components/{p-ff75998a.system.entry.js → p-f53c7a87.system.entry.js} +1 -1
- package/dist/mint-components/p-f686c142.system.js +1 -0
- package/dist/mint-components/{p-5b0de730.js → p-fa2edc58.js} +152 -152
- package/dist/mint-components/p-fab41ea8.system.entry.js +1 -0
- package/dist/mint-components/p-fd14377b.entry.js +1 -0
- package/dist/mint-components/p-ff1336b3.entry.js +148 -0
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -1
- package/dist/types/components/sqm-context-router/useContextRouter.d.ts +1 -1
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -1
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -1
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +2 -2
- package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +3 -3
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +2 -2
- package/dist/types/components/sqm-pagination/usePagination.d.ts +1 -1
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +3 -3
- package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +1 -1
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
- package/dist/types/components/sqm-portal-footer/PoweredByImg.d.ts +1 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +1 -1
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +3 -3
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +2 -2
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +1 -1
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +2 -2
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +5 -5
- package/dist/types/components/sqm-router/useRouter.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +1 -1
- package/dist/types/components/sqm-stencilbook/Matrix.d.ts +1 -1
- package/dist/types/components/sqm-tab/sqm-tab-view.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/getVerificationStep.d.ts +2 -2
- package/dist/types/components/tax-and-cash/data.d.ts +13 -13
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/mockData.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -5
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +6 -6
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +5 -5
- package/dist/types/components/tax-and-cash/subregions.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +3771 -3
- package/dist/types/global/mixins.d.ts +5 -5
- package/dist/types/stencil-public-runtime.d.ts +275 -193
- package/dist/types/utils/RequiredPropsError.d.ts +1 -1
- package/dist/types/utils/demoMerge.d.ts +8 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/stats.json +120116 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +34 -45
- package/dist/cjs/AsYouType-d15caac8.js +0 -4128
- package/dist/cjs/cjs-1066ec21.js +0 -135
- package/dist/cjs/eventKeys-7af4df4d.js +0 -5
- package/dist/cjs/sqm-lead-input-field-view-cd3f8076.js +0 -51
- package/dist/cjs/subregions-36662566.js +0 -1101
- package/dist/esm/AsYouType-2d56519e.js +0 -4108
- package/dist/esm/cjs-bdfb4486.js +0 -133
- package/dist/esm/eventKeys-f76b6a03.js +0 -3
- package/dist/esm/sqm-lead-input-field-view-919dc0a9.js +0 -49
- package/dist/esm/subregions-16dc47a9.js +0 -1086
- package/dist/esm-es5/AsYouType-2d56519e.js +0 -1
- package/dist/esm-es5/GenericTableView-471a9386.js +0 -1
- package/dist/esm-es5/JSS-67b5cff8.js +0 -8
- package/dist/esm-es5/ShadowViewAddon-e1375e0d.js +0 -1
- package/dist/esm-es5/cjs-bdfb4486.js +0 -1
- package/dist/esm-es5/copy-text-view-87259b11.js +0 -1
- package/dist/esm-es5/data-04d2da44.js +0 -1
- package/dist/esm-es5/dom-context-hooks.module-50442785.js +0 -53
- package/dist/esm-es5/email-registration-view-4cdb4129.js +0 -1
- package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
- package/dist/esm-es5/global-f019575d.js +0 -271
- package/dist/esm-es5/index-38ad4957.js +0 -1
- package/dist/esm-es5/index-ffa26b43.js +0 -1
- package/dist/esm-es5/index.module-cc08450c.js +0 -1
- package/dist/esm-es5/jsonpointer-388a7082.js +0 -1
- package/dist/esm-es5/luxon-1be92a8e.js +0 -1
- package/dist/esm-es5/mockRewardData-9b27d6f1.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/re-render-380499f8.js +0 -1
- package/dist/esm-es5/sqm-lead-checkbox-field-view-04aa32a7.js +0 -1
- package/dist/esm-es5/sqm-lead-input-field-view-919dc0a9.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-40837457.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-2b66457a.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-e02fb63a.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-41894261.js +0 -1
- package/dist/esm-es5/sqm-portal-registration-form-view-79265df5.js +0 -1
- package/dist/esm-es5/sqm-portal-reset-password-view-c7dd1c01.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-c102aa7c.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-72f43dff.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-8a95c5eb.js +0 -1
- package/dist/esm-es5/subregions-16dc47a9.js +0 -1
- package/dist/esm-es5/useChildElements-aa9eb7c9.js +0 -1
- package/dist/esm-es5/useIndirectTaxForm-8d2e873d.js +0 -6
- package/dist/esm-es5/useInstantAccessRegistration-7b11eb02.js +0 -1
- package/dist/esm-es5/useLeadFormState-b67018f2.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-91e5786d.js +0 -1
- package/dist/esm-es5/useReferralCodes-a0a271ca.js +0 -1
- package/dist/esm-es5/useReferralTable-670580ff.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-95a75c57.js +0 -1
- package/dist/esm-es5/useVerificationEmail-99d9f705.js +0 -1
- package/dist/esm-es5/utilities-23a276e0.js +0 -1
- package/dist/mint-components/p-0306ce68.js +0 -1
- package/dist/mint-components/p-03361685.system.entry.js +0 -1
- package/dist/mint-components/p-036b876f.system.js +0 -1
- package/dist/mint-components/p-083180bf.js +0 -1
- package/dist/mint-components/p-08f36275.entry.js +0 -92
- package/dist/mint-components/p-08f82f9e.system.entry.js +0 -1
- package/dist/mint-components/p-092305db.entry.js +0 -1
- package/dist/mint-components/p-0ac8d8f4.system.js +0 -1
- package/dist/mint-components/p-0b1e90fe.system.js +0 -1
- package/dist/mint-components/p-0dca7884.entry.js +0 -148
- package/dist/mint-components/p-0ec9eb9b.entry.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-128610fb.system.js +0 -1
- package/dist/mint-components/p-13d1b10d.entry.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-16bd4751.system.entry.js +0 -1
- package/dist/mint-components/p-1a673057.system.js +0 -8
- package/dist/mint-components/p-1cf59d96.system.js +0 -1
- package/dist/mint-components/p-1ee1dd9c.system.entry.js +0 -1
- package/dist/mint-components/p-1f292473.entry.js +0 -1
- package/dist/mint-components/p-220cd813.system.entry.js +0 -1
- package/dist/mint-components/p-2392aabe.entry.js +0 -1
- package/dist/mint-components/p-263ca1be.system.js +0 -1
- package/dist/mint-components/p-274816ae.entry.js +0 -1
- package/dist/mint-components/p-2786819c.js +0 -1
- package/dist/mint-components/p-28ed2ae9.js +0 -1
- package/dist/mint-components/p-28fa5159.entry.js +0 -1
- package/dist/mint-components/p-290314a6.js +0 -52
- package/dist/mint-components/p-2cc01e0a.system.js +0 -1
- package/dist/mint-components/p-319bf866.system.entry.js +0 -1
- package/dist/mint-components/p-31b7d861.entry.js +0 -1
- package/dist/mint-components/p-31c5f477.entry.js +0 -1
- package/dist/mint-components/p-31cfa118.system.entry.js +0 -1
- package/dist/mint-components/p-3268c98c.system.entry.js +0 -1
- package/dist/mint-components/p-34917ee4.system.js +0 -1
- package/dist/mint-components/p-34bea1be.system.js +0 -1
- package/dist/mint-components/p-3db7a3c0.system.entry.js +0 -1
- package/dist/mint-components/p-429fa431.js +0 -1
- package/dist/mint-components/p-44ce74b6.js +0 -1
- package/dist/mint-components/p-45be99ae.system.js +0 -1
- package/dist/mint-components/p-47dc2362.system.entry.js +0 -1
- package/dist/mint-components/p-48b25874.system.js +0 -1
- package/dist/mint-components/p-4bd679a7.system.js +0 -1
- package/dist/mint-components/p-4ca6cc3c.system.entry.js +0 -1
- package/dist/mint-components/p-51d06654.system.js +0 -1
- package/dist/mint-components/p-5218d9dd.system.entry.js +0 -1
- package/dist/mint-components/p-5264ea68.js +0 -1
- package/dist/mint-components/p-5300edb5.js +0 -1
- package/dist/mint-components/p-556338c3.system.js +0 -1
- package/dist/mint-components/p-573ea3fd.system.entry.js +0 -1
- package/dist/mint-components/p-57c693ef.system.entry.js +0 -1
- package/dist/mint-components/p-59d5f239.system.entry.js +0 -1
- package/dist/mint-components/p-5c3cdefe.entry.js +0 -1
- package/dist/mint-components/p-5cda271c.system.entry.js +0 -1
- package/dist/mint-components/p-5d99dbc9.js +0 -1
- package/dist/mint-components/p-6196e0f6.entry.js +0 -308
- package/dist/mint-components/p-641f968d.system.js +0 -1
- package/dist/mint-components/p-686dd5eb.system.js +0 -1
- package/dist/mint-components/p-6b5528b1.entry.js +0 -33
- package/dist/mint-components/p-6c3a1d86.js +0 -1
- package/dist/mint-components/p-6c8758ac.entry.js +0 -1
- package/dist/mint-components/p-6dffb326.entry.js +0 -13
- package/dist/mint-components/p-6e9738a4.js +0 -1
- package/dist/mint-components/p-6f8dde97.system.js +0 -1
- package/dist/mint-components/p-7010498f.js +0 -1
- package/dist/mint-components/p-7062154c.system.js +0 -1
- package/dist/mint-components/p-717fa601.js +0 -1
- package/dist/mint-components/p-732907b1.system.entry.js +0 -1
- package/dist/mint-components/p-7562cd98.system.js +0 -1
- package/dist/mint-components/p-7ae8fb53.system.js +0 -1
- package/dist/mint-components/p-808f7f22.entry.js +0 -1
- package/dist/mint-components/p-80cee817.system.js +0 -1
- package/dist/mint-components/p-8452837a.system.js +0 -1
- package/dist/mint-components/p-85996c52.system.entry.js +0 -1
- package/dist/mint-components/p-8629d0be.system.entry.js +0 -1
- package/dist/mint-components/p-86c430f8.system.entry.js +0 -1
- package/dist/mint-components/p-8707c7fb.entry.js +0 -1
- package/dist/mint-components/p-8899ff38.system.entry.js +0 -1
- package/dist/mint-components/p-88a5350b.entry.js +0 -11
- package/dist/mint-components/p-8d363802.js +0 -1
- package/dist/mint-components/p-952eefec.system.js +0 -1
- package/dist/mint-components/p-95f82a6f.entry.js +0 -9
- package/dist/mint-components/p-9715be5b.entry.js +0 -1
- package/dist/mint-components/p-97b8073f.system.js +0 -1
- package/dist/mint-components/p-99f7e6f1.js +0 -1
- package/dist/mint-components/p-9f517f81.entry.js +0 -1
- package/dist/mint-components/p-9f7d1197.system.entry.js +0 -1
- package/dist/mint-components/p-a04be06d.system.entry.js +0 -1
- package/dist/mint-components/p-a08157c4.js +0 -1
- package/dist/mint-components/p-a495e3a5.entry.js +0 -1
- package/dist/mint-components/p-a52a961e.entry.js +0 -1
- package/dist/mint-components/p-a6920cc9.system.entry.js +0 -1
- package/dist/mint-components/p-a7fc1e02.js +0 -42
- package/dist/mint-components/p-ab8a551f.system.entry.js +0 -1
- package/dist/mint-components/p-ac65d2c1.entry.js +0 -1
- package/dist/mint-components/p-ad9ea625.system.entry.js +0 -1
- package/dist/mint-components/p-b0aa9348.entry.js +0 -1
- package/dist/mint-components/p-b2295bc5.system.js +0 -1
- package/dist/mint-components/p-b56f3e55.js +0 -1
- package/dist/mint-components/p-b61be711.entry.js +0 -1
- package/dist/mint-components/p-b6504987.system.js +0 -53
- package/dist/mint-components/p-b69dbed8.system.js +0 -1
- package/dist/mint-components/p-b6b5fa4f.system.entry.js +0 -1
- package/dist/mint-components/p-bc625793.system.js +0 -1
- package/dist/mint-components/p-bee4af5d.js +0 -1
- package/dist/mint-components/p-c03131dd.js +0 -1
- package/dist/mint-components/p-c09ae087.system.js +0 -1
- package/dist/mint-components/p-c1086930.js +0 -1
- package/dist/mint-components/p-c50e77ad.entry.js +0 -1
- package/dist/mint-components/p-c5698ef9.system.js +0 -1
- package/dist/mint-components/p-ca872769.system.entry.js +0 -1
- package/dist/mint-components/p-ca90ea64.js +0 -499
- package/dist/mint-components/p-cdf5354f.entry.js +0 -1
- package/dist/mint-components/p-cef45012.js +0 -1
- package/dist/mint-components/p-d0318b41.entry.js +0 -13
- package/dist/mint-components/p-d0ce74bd.system.js +0 -1
- package/dist/mint-components/p-d267f4bb.system.js +0 -1
- package/dist/mint-components/p-d26df2da.entry.js +0 -1
- package/dist/mint-components/p-d3b1ab20.system.entry.js +0 -1
- package/dist/mint-components/p-d463fa82.system.js +0 -1
- package/dist/mint-components/p-d46a048d.system.entry.js +0 -1
- package/dist/mint-components/p-d533ff7b.system.js +0 -271
- package/dist/mint-components/p-d6a7f402.entry.js +0 -1
- package/dist/mint-components/p-d6fd8f37.system.entry.js +0 -1
- package/dist/mint-components/p-d9dbbf22.system.entry.js +0 -1
- package/dist/mint-components/p-db30fbd1.js +0 -13
- package/dist/mint-components/p-de8d7e90.entry.js +0 -17
- package/dist/mint-components/p-df28013f.system.entry.js +0 -1
- package/dist/mint-components/p-dffad4a8.entry.js +0 -1
- package/dist/mint-components/p-e006b6ad.entry.js +0 -1
- package/dist/mint-components/p-e0578030.system.js +0 -1
- package/dist/mint-components/p-e31c7242.system.entry.js +0 -1
- package/dist/mint-components/p-e4eac70d.js +0 -108
- package/dist/mint-components/p-e506bf7f.entry.js +0 -1
- package/dist/mint-components/p-e66187b6.system.entry.js +0 -1
- package/dist/mint-components/p-e7cf6632.js +0 -1
- package/dist/mint-components/p-e7d6e1e0.entry.js +0 -11
- package/dist/mint-components/p-e7e129ac.js +0 -1
- package/dist/mint-components/p-eb992f94.js +0 -1
- package/dist/mint-components/p-ec3e44c8.system.js +0 -1
- package/dist/mint-components/p-ec58040a.system.js +0 -1
- package/dist/mint-components/p-eedda43c.system.js +0 -1
- package/dist/mint-components/p-f0b63c48.entry.js +0 -83
- package/dist/mint-components/p-f1584abb.system.entry.js +0 -1
- package/dist/mint-components/p-f381533a.js +0 -1
- package/dist/mint-components/p-f45e076d.system.js +0 -1
- package/dist/mint-components/p-f507b364.system.entry.js +0 -1
- package/dist/mint-components/p-f69a4eb1.system.entry.js +0 -1
- package/dist/mint-components/p-f89c6a57.system.js +0 -1
- package/dist/mint-components/p-f982278b.entry.js +0 -1
- package/dist/mint-components/p-fbdd8c2a.system.entry.js +0 -1
- package/dist/mint-components/p-fdc4f293.system.entry.js +0 -1
- package/dist/mint-components/p-ff1a5481.system.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const domContextHooks_module = require('./dom-context-hooks.module-
|
|
3
|
+
const domContextHooks_module = require('./dom-context-hooks.module-735c3942.js');
|
|
4
4
|
|
|
5
5
|
var luxon = domContextHooks_module.createCommonjsModule(function (module, exports) {
|
|
6
6
|
|
|
@@ -19,11 +19,14 @@ function _defineProperties(target, props) {
|
|
|
19
19
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
20
20
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
21
21
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
22
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
23
|
+
writable: false
|
|
24
|
+
});
|
|
22
25
|
return Constructor;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
function _extends() {
|
|
26
|
-
_extends = Object.assign
|
|
29
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
27
30
|
for (var i = 1; i < arguments.length; i++) {
|
|
28
31
|
var source = arguments[i];
|
|
29
32
|
|
|
@@ -36,7 +39,6 @@ function _extends() {
|
|
|
36
39
|
|
|
37
40
|
return target;
|
|
38
41
|
};
|
|
39
|
-
|
|
40
42
|
return _extends.apply(this, arguments);
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -48,18 +50,17 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
function _getPrototypeOf(o) {
|
|
51
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
53
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
52
54
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
53
55
|
};
|
|
54
56
|
return _getPrototypeOf(o);
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
function _setPrototypeOf(o, p) {
|
|
58
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
60
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
59
61
|
o.__proto__ = p;
|
|
60
62
|
return o;
|
|
61
63
|
};
|
|
62
|
-
|
|
63
64
|
return _setPrototypeOf(o, p);
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -78,7 +79,7 @@ function _isNativeReflectConstruct() {
|
|
|
78
79
|
|
|
79
80
|
function _construct(Parent, args, Class) {
|
|
80
81
|
if (_isNativeReflectConstruct()) {
|
|
81
|
-
_construct = Reflect.construct;
|
|
82
|
+
_construct = Reflect.construct.bind();
|
|
82
83
|
} else {
|
|
83
84
|
_construct = function _construct(Parent, args, Class) {
|
|
84
85
|
var a = [null];
|
|
@@ -516,17 +517,16 @@ function padStart(input, n) {
|
|
|
516
517
|
n = 2;
|
|
517
518
|
}
|
|
518
519
|
|
|
519
|
-
var
|
|
520
|
-
var
|
|
521
|
-
var result;
|
|
520
|
+
var isNeg = input < 0;
|
|
521
|
+
var padded;
|
|
522
522
|
|
|
523
|
-
if (
|
|
524
|
-
|
|
523
|
+
if (isNeg) {
|
|
524
|
+
padded = "-" + ("" + -input).padStart(n, "0");
|
|
525
525
|
} else {
|
|
526
|
-
|
|
526
|
+
padded = ("" + input).padStart(n, "0");
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
return
|
|
529
|
+
return padded;
|
|
530
530
|
}
|
|
531
531
|
function parseInteger(string) {
|
|
532
532
|
if (isUndefined(string) || string === null || string === "") {
|
|
@@ -535,6 +535,13 @@ function parseInteger(string) {
|
|
|
535
535
|
return parseInt(string, 10);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
+
function parseFloating(string) {
|
|
539
|
+
if (isUndefined(string) || string === null || string === "") {
|
|
540
|
+
return undefined;
|
|
541
|
+
} else {
|
|
542
|
+
return parseFloat(string);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
538
545
|
function parseMillis(fraction) {
|
|
539
546
|
// Return undefined (instead of 0) in these cases, where fraction is not set
|
|
540
547
|
if (isUndefined(fraction) || fraction === null || fraction === "") {
|
|
@@ -674,7 +681,7 @@ function formatOffset(offset, format) {
|
|
|
674
681
|
function timeObject(obj) {
|
|
675
682
|
return pick(obj, ["hour", "minute", "second", "millisecond"]);
|
|
676
683
|
}
|
|
677
|
-
var ianaRegex = /[A-Za-z_+-]{1,256}(
|
|
684
|
+
var ianaRegex = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
|
|
678
685
|
|
|
679
686
|
/**
|
|
680
687
|
* @private
|
|
@@ -1037,6 +1044,13 @@ var Formatter = /*#__PURE__*/function () {
|
|
|
1037
1044
|
|
|
1038
1045
|
case "ss":
|
|
1039
1046
|
return _this.num(dt.second, 2);
|
|
1047
|
+
// fractional seconds
|
|
1048
|
+
|
|
1049
|
+
case "uu":
|
|
1050
|
+
return _this.num(Math.floor(dt.millisecond / 10), 2);
|
|
1051
|
+
|
|
1052
|
+
case "uuu":
|
|
1053
|
+
return _this.num(Math.floor(dt.millisecond / 100));
|
|
1040
1054
|
// minutes
|
|
1041
1055
|
|
|
1042
1056
|
case "m":
|
|
@@ -1297,6 +1311,9 @@ var Formatter = /*#__PURE__*/function () {
|
|
|
1297
1311
|
case "d":
|
|
1298
1312
|
return "day";
|
|
1299
1313
|
|
|
1314
|
+
case "w":
|
|
1315
|
+
return "week";
|
|
1316
|
+
|
|
1300
1317
|
case "M":
|
|
1301
1318
|
return "month";
|
|
1302
1319
|
|
|
@@ -1438,6 +1455,11 @@ var Zone = /*#__PURE__*/function () {
|
|
|
1438
1455
|
get: function get() {
|
|
1439
1456
|
throw new ZoneIsAbstractError();
|
|
1440
1457
|
}
|
|
1458
|
+
}, {
|
|
1459
|
+
key: "ianaName",
|
|
1460
|
+
get: function get() {
|
|
1461
|
+
return this.name;
|
|
1462
|
+
}
|
|
1441
1463
|
/**
|
|
1442
1464
|
* Returns whether the offset is known to be fixed for the whole year.
|
|
1443
1465
|
* @abstract
|
|
@@ -1546,20 +1568,20 @@ var SystemZone = /*#__PURE__*/function (_Zone) {
|
|
|
1546
1568
|
return SystemZone;
|
|
1547
1569
|
}(Zone);
|
|
1548
1570
|
|
|
1549
|
-
var matchingRegex = RegExp("^" + ianaRegex.source + "$");
|
|
1550
1571
|
var dtfCache = {};
|
|
1551
1572
|
|
|
1552
1573
|
function makeDTF(zone) {
|
|
1553
1574
|
if (!dtfCache[zone]) {
|
|
1554
1575
|
dtfCache[zone] = new Intl.DateTimeFormat("en-US", {
|
|
1555
|
-
|
|
1576
|
+
hour12: false,
|
|
1556
1577
|
timeZone: zone,
|
|
1557
1578
|
year: "numeric",
|
|
1558
1579
|
month: "2-digit",
|
|
1559
1580
|
day: "2-digit",
|
|
1560
1581
|
hour: "2-digit",
|
|
1561
1582
|
minute: "2-digit",
|
|
1562
|
-
second: "2-digit"
|
|
1583
|
+
second: "2-digit",
|
|
1584
|
+
era: "short"
|
|
1563
1585
|
});
|
|
1564
1586
|
}
|
|
1565
1587
|
|
|
@@ -1570,34 +1592,38 @@ var typeToPos = {
|
|
|
1570
1592
|
year: 0,
|
|
1571
1593
|
month: 1,
|
|
1572
1594
|
day: 2,
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1595
|
+
era: 3,
|
|
1596
|
+
hour: 4,
|
|
1597
|
+
minute: 5,
|
|
1598
|
+
second: 6
|
|
1576
1599
|
};
|
|
1577
1600
|
|
|
1578
1601
|
function hackyOffset(dtf, date) {
|
|
1579
1602
|
var formatted = dtf.format(date).replace(/\u200E/g, ""),
|
|
1580
|
-
parsed = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(formatted),
|
|
1603
|
+
parsed = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted),
|
|
1581
1604
|
fMonth = parsed[1],
|
|
1582
1605
|
fDay = parsed[2],
|
|
1583
1606
|
fYear = parsed[3],
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1607
|
+
fadOrBc = parsed[4],
|
|
1608
|
+
fHour = parsed[5],
|
|
1609
|
+
fMinute = parsed[6],
|
|
1610
|
+
fSecond = parsed[7];
|
|
1611
|
+
return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];
|
|
1588
1612
|
}
|
|
1589
1613
|
|
|
1590
1614
|
function partsOffset(dtf, date) {
|
|
1591
|
-
var formatted = dtf.formatToParts(date)
|
|
1592
|
-
|
|
1615
|
+
var formatted = dtf.formatToParts(date);
|
|
1616
|
+
var filled = [];
|
|
1593
1617
|
|
|
1594
1618
|
for (var i = 0; i < formatted.length; i++) {
|
|
1595
1619
|
var _formatted$i = formatted[i],
|
|
1596
1620
|
type = _formatted$i.type,
|
|
1597
|
-
value = _formatted$i.value
|
|
1598
|
-
|
|
1621
|
+
value = _formatted$i.value;
|
|
1622
|
+
var pos = typeToPos[type];
|
|
1599
1623
|
|
|
1600
|
-
if (
|
|
1624
|
+
if (type === "era") {
|
|
1625
|
+
filled[pos] = value;
|
|
1626
|
+
} else if (!isUndefined(pos)) {
|
|
1601
1627
|
filled[pos] = parseInt(value, 10);
|
|
1602
1628
|
}
|
|
1603
1629
|
}
|
|
@@ -1639,14 +1665,14 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
1639
1665
|
* Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
|
|
1640
1666
|
* @param {string} s - The string to check validity on
|
|
1641
1667
|
* @example IANAZone.isValidSpecifier("America/New_York") //=> true
|
|
1642
|
-
* @example IANAZone.isValidSpecifier("Fantasia/Castle") //=> true
|
|
1643
1668
|
* @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false
|
|
1669
|
+
* @deprecated This method returns false for some valid IANA names. Use isValidZone instead.
|
|
1644
1670
|
* @return {boolean}
|
|
1645
1671
|
*/
|
|
1646
1672
|
;
|
|
1647
1673
|
|
|
1648
1674
|
IANAZone.isValidSpecifier = function isValidSpecifier(s) {
|
|
1649
|
-
return
|
|
1675
|
+
return this.isValidZone(s);
|
|
1650
1676
|
}
|
|
1651
1677
|
/**
|
|
1652
1678
|
* Returns whether the provided string identifies a real zone
|
|
@@ -1659,6 +1685,10 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
1659
1685
|
;
|
|
1660
1686
|
|
|
1661
1687
|
IANAZone.isValidZone = function isValidZone(zone) {
|
|
1688
|
+
if (!zone) {
|
|
1689
|
+
return false;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1662
1692
|
try {
|
|
1663
1693
|
new Intl.DateTimeFormat("en-US", {
|
|
1664
1694
|
timeZone: zone
|
|
@@ -1667,21 +1697,6 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
1667
1697
|
} catch (e) {
|
|
1668
1698
|
return false;
|
|
1669
1699
|
}
|
|
1670
|
-
} // Etc/GMT+8 -> -480
|
|
1671
|
-
|
|
1672
|
-
/** @ignore */
|
|
1673
|
-
;
|
|
1674
|
-
|
|
1675
|
-
IANAZone.parseGMTOffset = function parseGMTOffset(specifier) {
|
|
1676
|
-
if (specifier) {
|
|
1677
|
-
var match = specifier.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);
|
|
1678
|
-
|
|
1679
|
-
if (match) {
|
|
1680
|
-
return -60 * parseInt(match[1]);
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
return null;
|
|
1685
1700
|
};
|
|
1686
1701
|
|
|
1687
1702
|
function IANAZone(name) {
|
|
@@ -1719,21 +1734,28 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
1719
1734
|
_proto.offset = function offset(ts) {
|
|
1720
1735
|
var date = new Date(ts);
|
|
1721
1736
|
if (isNaN(date)) return NaN;
|
|
1737
|
+
var dtf = makeDTF(this.name);
|
|
1722
1738
|
|
|
1723
|
-
var
|
|
1724
|
-
_ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date),
|
|
1739
|
+
var _ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date),
|
|
1725
1740
|
year = _ref2[0],
|
|
1726
1741
|
month = _ref2[1],
|
|
1727
1742
|
day = _ref2[2],
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1743
|
+
adOrBc = _ref2[3],
|
|
1744
|
+
hour = _ref2[4],
|
|
1745
|
+
minute = _ref2[5],
|
|
1746
|
+
second = _ref2[6];
|
|
1731
1747
|
|
|
1748
|
+
if (adOrBc === "BC") {
|
|
1749
|
+
year = -Math.abs(year) + 1;
|
|
1750
|
+
} // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
var adjustedHour = hour === 24 ? 0 : hour;
|
|
1732
1754
|
var asUTC = objToLocalTS({
|
|
1733
1755
|
year: year,
|
|
1734
1756
|
month: month,
|
|
1735
1757
|
day: day,
|
|
1736
|
-
hour:
|
|
1758
|
+
hour: adjustedHour,
|
|
1737
1759
|
minute: minute,
|
|
1738
1760
|
second: second,
|
|
1739
1761
|
millisecond: 0
|
|
@@ -1872,6 +1894,15 @@ var FixedOffsetZone = /*#__PURE__*/function (_Zone) {
|
|
|
1872
1894
|
get: function get() {
|
|
1873
1895
|
return this.fixed === 0 ? "UTC" : "UTC" + formatOffset(this.fixed, "narrow");
|
|
1874
1896
|
}
|
|
1897
|
+
}, {
|
|
1898
|
+
key: "ianaName",
|
|
1899
|
+
get: function get() {
|
|
1900
|
+
if (this.fixed === 0) {
|
|
1901
|
+
return "Etc/UTC";
|
|
1902
|
+
} else {
|
|
1903
|
+
return "Etc/GMT" + formatOffset(-this.fixed, "narrow");
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1875
1906
|
}, {
|
|
1876
1907
|
key: "isUniversal",
|
|
1877
1908
|
get: function get() {
|
|
@@ -1981,7 +2012,6 @@ var InvalidZone = /*#__PURE__*/function (_Zone) {
|
|
|
1981
2012
|
* @private
|
|
1982
2013
|
*/
|
|
1983
2014
|
function normalizeZone(input, defaultZone) {
|
|
1984
|
-
var offset;
|
|
1985
2015
|
|
|
1986
2016
|
if (isUndefined(input) || input === null) {
|
|
1987
2017
|
return defaultZone;
|
|
@@ -1989,10 +2019,7 @@ function normalizeZone(input, defaultZone) {
|
|
|
1989
2019
|
return input;
|
|
1990
2020
|
} else if (isString(input)) {
|
|
1991
2021
|
var lowered = input.toLowerCase();
|
|
1992
|
-
if (lowered === "local" || lowered === "system") return defaultZone;else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;else
|
|
1993
|
-
// handle Etc/GMT-4, which V8 chokes on
|
|
1994
|
-
return FixedOffsetZone.instance(offset);
|
|
1995
|
-
} else if (IANAZone.isValidSpecifier(lowered)) return IANAZone.create(input);else return FixedOffsetZone.parseSpecifier(lowered) || new InvalidZone(input);
|
|
2022
|
+
if (lowered === "local" || lowered === "system") return defaultZone;else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);
|
|
1996
2023
|
} else if (isNumber(input)) {
|
|
1997
2024
|
return FixedOffsetZone.instance(input);
|
|
1998
2025
|
} else if (typeof input === "object" && input.offset && typeof input.offset === "number") {
|
|
@@ -2147,7 +2174,27 @@ var Settings = /*#__PURE__*/function () {
|
|
|
2147
2174
|
return Settings;
|
|
2148
2175
|
}();
|
|
2149
2176
|
|
|
2150
|
-
var _excluded = ["base"]
|
|
2177
|
+
var _excluded = ["base"],
|
|
2178
|
+
_excluded2 = ["padTo", "floor"];
|
|
2179
|
+
|
|
2180
|
+
var intlLFCache = {};
|
|
2181
|
+
|
|
2182
|
+
function getCachedLF(locString, opts) {
|
|
2183
|
+
if (opts === void 0) {
|
|
2184
|
+
opts = {};
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
var key = JSON.stringify([locString, opts]);
|
|
2188
|
+
var dtf = intlLFCache[key];
|
|
2189
|
+
|
|
2190
|
+
if (!dtf) {
|
|
2191
|
+
dtf = new Intl.ListFormat(locString, opts);
|
|
2192
|
+
intlLFCache[key] = dtf;
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
return dtf;
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2151
2198
|
var intlDTCache = {};
|
|
2152
2199
|
|
|
2153
2200
|
function getCachedDTF(locString, opts) {
|
|
@@ -2212,7 +2259,7 @@ function systemLocale() {
|
|
|
2212
2259
|
if (sysLocaleCache) {
|
|
2213
2260
|
return sysLocaleCache;
|
|
2214
2261
|
} else {
|
|
2215
|
-
sysLocaleCache =
|
|
2262
|
+
sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;
|
|
2216
2263
|
return sysLocaleCache;
|
|
2217
2264
|
}
|
|
2218
2265
|
}
|
|
@@ -2314,11 +2361,13 @@ var PolyNumberFormatter = /*#__PURE__*/function () {
|
|
|
2314
2361
|
function PolyNumberFormatter(intl, forceSimple, opts) {
|
|
2315
2362
|
this.padTo = opts.padTo || 0;
|
|
2316
2363
|
this.floor = opts.floor || false;
|
|
2364
|
+
var otherOpts = _objectWithoutPropertiesLoose(opts, _excluded2);
|
|
2317
2365
|
|
|
2318
|
-
if (!forceSimple) {
|
|
2319
|
-
var intlOpts = {
|
|
2366
|
+
if (!forceSimple || Object.keys(otherOpts).length > 0) {
|
|
2367
|
+
var intlOpts = _extends({
|
|
2320
2368
|
useGrouping: false
|
|
2321
|
-
};
|
|
2369
|
+
}, opts);
|
|
2370
|
+
|
|
2322
2371
|
if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
|
|
2323
2372
|
this.inf = getCachedINF(intl, intlOpts);
|
|
2324
2373
|
}
|
|
@@ -2359,9 +2408,8 @@ var PolyDateFormatter = /*#__PURE__*/function () {
|
|
|
2359
2408
|
// - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata
|
|
2360
2409
|
var gmtOffset = -1 * (dt.offset / 60);
|
|
2361
2410
|
var offsetZ = gmtOffset >= 0 ? "Etc/GMT+" + gmtOffset : "Etc/GMT" + gmtOffset;
|
|
2362
|
-
var isOffsetZoneSupported = IANAZone.isValidZone(offsetZ);
|
|
2363
2411
|
|
|
2364
|
-
if (dt.offset !== 0 &&
|
|
2412
|
+
if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {
|
|
2365
2413
|
z = offsetZ;
|
|
2366
2414
|
this.dt = dt;
|
|
2367
2415
|
} else {
|
|
@@ -2463,11 +2511,11 @@ var Locale = /*#__PURE__*/function () {
|
|
|
2463
2511
|
defaultToEN = false;
|
|
2464
2512
|
}
|
|
2465
2513
|
|
|
2466
|
-
var specifiedLocale = locale || Settings.defaultLocale
|
|
2467
|
-
|
|
2468
|
-
localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale())
|
|
2469
|
-
|
|
2470
|
-
|
|
2514
|
+
var specifiedLocale = locale || Settings.defaultLocale; // the system locale is useful for human readable strings but annoying for parsing/formatting known formats
|
|
2515
|
+
|
|
2516
|
+
var localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale());
|
|
2517
|
+
var numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;
|
|
2518
|
+
var outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;
|
|
2471
2519
|
return new Locale(localeR, numberingSystemR, outputCalendarR, specifiedLocale);
|
|
2472
2520
|
};
|
|
2473
2521
|
|
|
@@ -2513,8 +2561,7 @@ var Locale = /*#__PURE__*/function () {
|
|
|
2513
2561
|
|
|
2514
2562
|
var _proto4 = Locale.prototype;
|
|
2515
2563
|
|
|
2516
|
-
_proto4.listingMode = function listingMode(
|
|
2517
|
-
|
|
2564
|
+
_proto4.listingMode = function listingMode() {
|
|
2518
2565
|
var isActuallyEn = this.isEnglish();
|
|
2519
2566
|
var hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
|
|
2520
2567
|
return isActuallyEn && hasNoWeirdness ? "en" : "intl";
|
|
@@ -2694,6 +2741,14 @@ var Locale = /*#__PURE__*/function () {
|
|
|
2694
2741
|
return new PolyRelFormatter(this.intl, this.isEnglish(), opts);
|
|
2695
2742
|
};
|
|
2696
2743
|
|
|
2744
|
+
_proto4.listFormatter = function listFormatter(opts) {
|
|
2745
|
+
if (opts === void 0) {
|
|
2746
|
+
opts = {};
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
return getCachedLF(this.intl, opts);
|
|
2750
|
+
};
|
|
2751
|
+
|
|
2697
2752
|
_proto4.isEnglish = function isEnglish() {
|
|
2698
2753
|
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us");
|
|
2699
2754
|
};
|
|
@@ -2753,7 +2808,7 @@ function combineExtractors() {
|
|
|
2753
2808
|
zone = _ex[1],
|
|
2754
2809
|
next = _ex[2];
|
|
2755
2810
|
|
|
2756
|
-
return [_extends({}, mergedVals, val),
|
|
2811
|
+
return [_extends({}, mergedVals, val), zone || mergedZone, next];
|
|
2757
2812
|
}, [{}, null, 1]).slice(0, 2);
|
|
2758
2813
|
};
|
|
2759
2814
|
}
|
|
@@ -2799,19 +2854,20 @@ function simpleParse() {
|
|
|
2799
2854
|
} // ISO and SQL parsing
|
|
2800
2855
|
|
|
2801
2856
|
|
|
2802
|
-
var offsetRegex = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2857
|
+
var offsetRegex = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/;
|
|
2858
|
+
var isoExtendedZone = "(?:" + offsetRegex.source + "?(?:\\[(" + ianaRegex.source + ")\\])?)?";
|
|
2859
|
+
var isoTimeBaseRegex = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/;
|
|
2860
|
+
var isoTimeRegex = RegExp("" + isoTimeBaseRegex.source + isoExtendedZone);
|
|
2861
|
+
var isoTimeExtensionRegex = RegExp("(?:T" + isoTimeRegex.source + ")?");
|
|
2862
|
+
var isoYmdRegex = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/;
|
|
2863
|
+
var isoWeekRegex = /(\d{4})-?W(\d\d)(?:-?(\d))?/;
|
|
2864
|
+
var isoOrdinalRegex = /(\d{4})-?(\d{3})/;
|
|
2865
|
+
var extractISOWeekData = simpleParse("weekYear", "weekNumber", "weekDay");
|
|
2866
|
+
var extractISOOrdinalData = simpleParse("year", "ordinal");
|
|
2867
|
+
var sqlYmdRegex = /(\d{4})-(\d\d)-(\d\d)/; // dumbed-down version of the ISO one
|
|
2868
|
+
|
|
2869
|
+
var sqlTimeRegex = RegExp(isoTimeBaseRegex.source + " ?(?:" + offsetRegex.source + "|(" + ianaRegex.source + "))?");
|
|
2870
|
+
var sqlTimeExtensionRegex = RegExp("(?: " + sqlTimeRegex.source + ")?");
|
|
2815
2871
|
|
|
2816
2872
|
function int(match, pos, fallback) {
|
|
2817
2873
|
var m = match[pos];
|
|
@@ -2852,7 +2908,7 @@ function extractIANAZone(match, cursor) {
|
|
|
2852
2908
|
|
|
2853
2909
|
var isoTimeOnly = RegExp("^T?" + isoTimeBaseRegex.source + "$"); // ISO duration parsing
|
|
2854
2910
|
|
|
2855
|
-
var isoDuration = /^-?P(?:(?:(-?\d{1,
|
|
2911
|
+
var isoDuration = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
2856
2912
|
|
|
2857
2913
|
function extractISODuration(match) {
|
|
2858
2914
|
var s = match[0],
|
|
@@ -2876,13 +2932,13 @@ function extractISODuration(match) {
|
|
|
2876
2932
|
};
|
|
2877
2933
|
|
|
2878
2934
|
return [{
|
|
2879
|
-
years: maybeNegate(
|
|
2880
|
-
months: maybeNegate(
|
|
2881
|
-
weeks: maybeNegate(
|
|
2882
|
-
days: maybeNegate(
|
|
2883
|
-
hours: maybeNegate(
|
|
2884
|
-
minutes: maybeNegate(
|
|
2885
|
-
seconds: maybeNegate(
|
|
2935
|
+
years: maybeNegate(parseFloating(yearStr)),
|
|
2936
|
+
months: maybeNegate(parseFloating(monthStr)),
|
|
2937
|
+
weeks: maybeNegate(parseFloating(weekStr)),
|
|
2938
|
+
days: maybeNegate(parseFloating(dayStr)),
|
|
2939
|
+
hours: maybeNegate(parseFloating(hourStr)),
|
|
2940
|
+
minutes: maybeNegate(parseFloating(minuteStr)),
|
|
2941
|
+
seconds: maybeNegate(parseFloating(secondStr), secondStr === "-0"),
|
|
2886
2942
|
milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds)
|
|
2887
2943
|
}];
|
|
2888
2944
|
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
|
@@ -2950,12 +3006,12 @@ function extractRFC2822(match) {
|
|
|
2950
3006
|
|
|
2951
3007
|
function preprocessRFC2822(s) {
|
|
2952
3008
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
2953
|
-
return s.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
3009
|
+
return s.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
2954
3010
|
} // http date
|
|
2955
3011
|
|
|
2956
3012
|
|
|
2957
3013
|
var rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,
|
|
2958
|
-
rfc850 = /^(Monday|Tuesday|
|
|
3014
|
+
rfc850 = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,
|
|
2959
3015
|
ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
|
2960
3016
|
|
|
2961
3017
|
function extractRFC1123Or850(match) {
|
|
@@ -2986,11 +3042,11 @@ var isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionR
|
|
|
2986
3042
|
var isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);
|
|
2987
3043
|
var isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);
|
|
2988
3044
|
var isoTimeCombinedRegex = combineRegexes(isoTimeRegex);
|
|
2989
|
-
var extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset);
|
|
2990
|
-
var extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset);
|
|
2991
|
-
var extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset);
|
|
2992
|
-
var extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset);
|
|
2993
|
-
|
|
3045
|
+
var extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone);
|
|
3046
|
+
var extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset, extractIANAZone);
|
|
3047
|
+
var extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset, extractIANAZone);
|
|
3048
|
+
var extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone);
|
|
3049
|
+
/*
|
|
2994
3050
|
* @private
|
|
2995
3051
|
*/
|
|
2996
3052
|
|
|
@@ -3012,10 +3068,9 @@ function parseISOTimeOnly(s) {
|
|
|
3012
3068
|
}
|
|
3013
3069
|
var sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);
|
|
3014
3070
|
var sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);
|
|
3015
|
-
var extractISOYmdTimeOffsetAndIANAZone = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone);
|
|
3016
3071
|
var extractISOTimeOffsetAndIANAZone = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone);
|
|
3017
3072
|
function parseSQL(s) {
|
|
3018
|
-
return parse(s, [sqlYmdWithTimeExtensionRegex,
|
|
3073
|
+
return parse(s, [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]);
|
|
3019
3074
|
}
|
|
3020
3075
|
|
|
3021
3076
|
var INVALID$2 = "Invalid Duration"; // unit conversion constants
|
|
@@ -3108,7 +3163,6 @@ var lowOrderMatrix = {
|
|
|
3108
3163
|
}
|
|
3109
3164
|
}, lowOrderMatrix); // units ordered by size
|
|
3110
3165
|
|
|
3111
|
-
|
|
3112
3166
|
var orderedUnits$1 = ["years", "quarters", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds"];
|
|
3113
3167
|
var reverseUnits = orderedUnits$1.slice(0).reverse(); // clone really means "create another instance just like this one, but with these changes"
|
|
3114
3168
|
|
|
@@ -3156,12 +3210,12 @@ function normalizeValues(matrix, vals) {
|
|
|
3156
3210
|
}, null);
|
|
3157
3211
|
}
|
|
3158
3212
|
/**
|
|
3159
|
-
* A Duration object represents a period of time, like "2 months" or "1 day, 1 hour". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime
|
|
3213
|
+
* A Duration object represents a period of time, like "2 months" or "1 day, 1 hour". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.
|
|
3160
3214
|
*
|
|
3161
3215
|
* Here is a brief overview of commonly used methods and getters in Duration:
|
|
3162
3216
|
*
|
|
3163
|
-
* * **Creation** To create a Duration, use {@link Duration
|
|
3164
|
-
* * **Unit values** See the {@link Duration#years}, {@link Duration
|
|
3217
|
+
* * **Creation** To create a Duration, use {@link Duration#fromMillis}, {@link Duration#fromObject}, or {@link Duration#fromISO}.
|
|
3218
|
+
* * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.
|
|
3165
3219
|
* * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.
|
|
3166
3220
|
* * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.
|
|
3167
3221
|
* * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}
|
|
@@ -3259,6 +3313,29 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3259
3313
|
conversionAccuracy: opts.conversionAccuracy
|
|
3260
3314
|
});
|
|
3261
3315
|
}
|
|
3316
|
+
/**
|
|
3317
|
+
* Create a Duration from DurationLike.
|
|
3318
|
+
*
|
|
3319
|
+
* @param {Object | number | Duration} durationLike
|
|
3320
|
+
* One of:
|
|
3321
|
+
* - object with keys like 'years' and 'hours'.
|
|
3322
|
+
* - number representing milliseconds
|
|
3323
|
+
* - Duration instance
|
|
3324
|
+
* @return {Duration}
|
|
3325
|
+
*/
|
|
3326
|
+
;
|
|
3327
|
+
|
|
3328
|
+
Duration.fromDurationLike = function fromDurationLike(durationLike) {
|
|
3329
|
+
if (isNumber(durationLike)) {
|
|
3330
|
+
return Duration.fromMillis(durationLike);
|
|
3331
|
+
} else if (Duration.isDuration(durationLike)) {
|
|
3332
|
+
return durationLike;
|
|
3333
|
+
} else if (typeof durationLike === "object") {
|
|
3334
|
+
return Duration.fromObject(durationLike);
|
|
3335
|
+
} else {
|
|
3336
|
+
throw new InvalidArgumentError("Unknown duration argument " + durationLike + " of type " + typeof durationLike);
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3262
3339
|
/**
|
|
3263
3340
|
* Create a Duration from an ISO 8601 duration string.
|
|
3264
3341
|
* @param {string} text - text to parse
|
|
@@ -3392,11 +3469,13 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3392
3469
|
* * `m` for minutes
|
|
3393
3470
|
* * `h` for hours
|
|
3394
3471
|
* * `d` for days
|
|
3472
|
+
* * `w` for weeks
|
|
3395
3473
|
* * `M` for months
|
|
3396
3474
|
* * `y` for years
|
|
3397
3475
|
* Notes:
|
|
3398
3476
|
* * Add padding by repeating the token, e.g. "yy" pads the years to two digits, "hhhh" pads the hours out to four digits
|
|
3399
|
-
* *
|
|
3477
|
+
* * Tokens can be escaped by wrapping with single quotes.
|
|
3478
|
+
* * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.
|
|
3400
3479
|
* @param {string} fmt - the format string
|
|
3401
3480
|
* @param {Object} opts - options
|
|
3402
3481
|
* @param {boolean} [opts.floor=true] - floor numerical values
|
|
@@ -3417,6 +3496,49 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3417
3496
|
|
|
3418
3497
|
return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
|
|
3419
3498
|
}
|
|
3499
|
+
/**
|
|
3500
|
+
* Returns a string representation of a Duration with all units included.
|
|
3501
|
+
* To modify its behavior use the `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.
|
|
3502
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
3503
|
+
* @param opts - On option object to override the formatting. Accepts the same keys as the options parameter of the native `Int.NumberFormat` constructor, as well as `listStyle`.
|
|
3504
|
+
* @example
|
|
3505
|
+
* ```js
|
|
3506
|
+
* var dur = Duration.fromObject({ days: 1, hours: 5, minutes: 6 })
|
|
3507
|
+
* dur.toHuman() //=> '1 day, 5 hours, 6 minutes'
|
|
3508
|
+
* dur.toHuman({ listStyle: "long" }) //=> '1 day, 5 hours, and 6 minutes'
|
|
3509
|
+
* dur.toHuman({ unitDisplay: "short" }) //=> '1 day, 5 hr, 6 min'
|
|
3510
|
+
* ```
|
|
3511
|
+
*/
|
|
3512
|
+
;
|
|
3513
|
+
|
|
3514
|
+
_proto.toHuman = function toHuman(opts) {
|
|
3515
|
+
var _this = this;
|
|
3516
|
+
|
|
3517
|
+
if (opts === void 0) {
|
|
3518
|
+
opts = {};
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
var l = orderedUnits$1.map(function (unit) {
|
|
3522
|
+
var val = _this.values[unit];
|
|
3523
|
+
|
|
3524
|
+
if (isUndefined(val)) {
|
|
3525
|
+
return null;
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
return _this.loc.numberFormatter(_extends({
|
|
3529
|
+
style: "unit",
|
|
3530
|
+
unitDisplay: "long"
|
|
3531
|
+
}, opts, {
|
|
3532
|
+
unit: unit.slice(0, -1)
|
|
3533
|
+
})).format(val);
|
|
3534
|
+
}).filter(function (n) {
|
|
3535
|
+
return n;
|
|
3536
|
+
});
|
|
3537
|
+
return this.loc.listFormatter(_extends({
|
|
3538
|
+
type: "conjunction",
|
|
3539
|
+
style: opts.listStyle || "narrow"
|
|
3540
|
+
}, opts)).format(l);
|
|
3541
|
+
}
|
|
3420
3542
|
/**
|
|
3421
3543
|
* Returns a JavaScript object with this Duration's values.
|
|
3422
3544
|
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }
|
|
@@ -3553,7 +3675,7 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3553
3675
|
|
|
3554
3676
|
_proto.plus = function plus(duration) {
|
|
3555
3677
|
if (!this.isValid) return this;
|
|
3556
|
-
var dur =
|
|
3678
|
+
var dur = Duration.fromDurationLike(duration),
|
|
3557
3679
|
result = {};
|
|
3558
3680
|
|
|
3559
3681
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits$1), _step; !(_step = _iterator()).done;) {
|
|
@@ -3577,14 +3699,14 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3577
3699
|
|
|
3578
3700
|
_proto.minus = function minus(duration) {
|
|
3579
3701
|
if (!this.isValid) return this;
|
|
3580
|
-
var dur =
|
|
3702
|
+
var dur = Duration.fromDurationLike(duration);
|
|
3581
3703
|
return this.plus(dur.negate());
|
|
3582
3704
|
}
|
|
3583
3705
|
/**
|
|
3584
3706
|
* Scale this Duration by the specified amount. Return a newly-constructed Duration.
|
|
3585
3707
|
* @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.
|
|
3586
|
-
* @example Duration.fromObject({ hours: 1, minutes: 30 }).
|
|
3587
|
-
* @example Duration.fromObject({ hours: 1, minutes: 30 }).
|
|
3708
|
+
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }
|
|
3709
|
+
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === "hour" ? x * 2 : x) //=> { hours: 2, minutes: 30 }
|
|
3588
3710
|
* @return {Duration}
|
|
3589
3711
|
*/
|
|
3590
3712
|
;
|
|
@@ -3734,8 +3856,7 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3734
3856
|
|
|
3735
3857
|
var i = Math.trunc(own);
|
|
3736
3858
|
built[k] = i;
|
|
3737
|
-
accumulated[k] = own - i; //
|
|
3738
|
-
// plus anything further down the chain that should be rolled up in to this
|
|
3859
|
+
accumulated[k] = (own * 1000 - i * 1000) / 1000; // plus anything further down the chain that should be rolled up in to this
|
|
3739
3860
|
|
|
3740
3861
|
for (var down in vals) {
|
|
3741
3862
|
if (orderedUnits$1.indexOf(down) > orderedUnits$1.indexOf(k)) {
|
|
@@ -3773,7 +3894,7 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3773
3894
|
|
|
3774
3895
|
for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) {
|
|
3775
3896
|
var k = _Object$keys2[_i2];
|
|
3776
|
-
negated[k] = -this.values[k];
|
|
3897
|
+
negated[k] = this.values[k] === 0 ? 0 : -this.values[k];
|
|
3777
3898
|
}
|
|
3778
3899
|
|
|
3779
3900
|
return clone$1(this, {
|
|
@@ -3954,17 +4075,6 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3954
4075
|
|
|
3955
4076
|
return Duration;
|
|
3956
4077
|
}();
|
|
3957
|
-
function friendlyDuration(durationish) {
|
|
3958
|
-
if (isNumber(durationish)) {
|
|
3959
|
-
return Duration.fromMillis(durationish);
|
|
3960
|
-
} else if (Duration.isDuration(durationish)) {
|
|
3961
|
-
return durationish;
|
|
3962
|
-
} else if (typeof durationish === "object") {
|
|
3963
|
-
return Duration.fromObject(durationish);
|
|
3964
|
-
} else {
|
|
3965
|
-
throw new InvalidArgumentError("Unknown duration argument " + durationish + " of type " + typeof durationish);
|
|
3966
|
-
}
|
|
3967
|
-
}
|
|
3968
4078
|
|
|
3969
4079
|
var INVALID$1 = "Invalid Interval"; // checks if the start is equal to or before the end
|
|
3970
4080
|
|
|
@@ -3984,7 +4094,7 @@ function validateStartEnd(start, end) {
|
|
|
3984
4094
|
*
|
|
3985
4095
|
* Here is a brief overview of the most commonly used methods and getters in Interval:
|
|
3986
4096
|
*
|
|
3987
|
-
* * **Creation** To create an Interval, use {@link Interval
|
|
4097
|
+
* * **Creation** To create an Interval, use {@link Interval#fromDateTimes}, {@link Interval#after}, {@link Interval#before}, or {@link Interval#fromISO}.
|
|
3988
4098
|
* * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.
|
|
3989
4099
|
* * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.
|
|
3990
4100
|
* * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval#merge}, {@link Interval#xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.
|
|
@@ -4076,7 +4186,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4076
4186
|
;
|
|
4077
4187
|
|
|
4078
4188
|
Interval.after = function after(start, duration) {
|
|
4079
|
-
var dur =
|
|
4189
|
+
var dur = Duration.fromDurationLike(duration),
|
|
4080
4190
|
dt = friendlyDateTime(start);
|
|
4081
4191
|
return Interval.fromDateTimes(dt, dt.plus(dur));
|
|
4082
4192
|
}
|
|
@@ -4089,7 +4199,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4089
4199
|
;
|
|
4090
4200
|
|
|
4091
4201
|
Interval.before = function before(end, duration) {
|
|
4092
|
-
var dur =
|
|
4202
|
+
var dur = Duration.fromDurationLike(duration),
|
|
4093
4203
|
dt = friendlyDateTime(end);
|
|
4094
4204
|
return Interval.fromDateTimes(dt.minus(dur), dt);
|
|
4095
4205
|
}
|
|
@@ -4097,7 +4207,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4097
4207
|
* Create an Interval from an ISO 8601 string.
|
|
4098
4208
|
* Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.
|
|
4099
4209
|
* @param {string} text - the ISO string to parse
|
|
4100
|
-
* @param {Object} [opts] - options to pass {@link DateTime
|
|
4210
|
+
* @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}
|
|
4101
4211
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
|
4102
4212
|
* @return {Interval}
|
|
4103
4213
|
*/
|
|
@@ -4308,7 +4418,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4308
4418
|
;
|
|
4309
4419
|
|
|
4310
4420
|
_proto.splitBy = function splitBy(duration) {
|
|
4311
|
-
var dur =
|
|
4421
|
+
var dur = Duration.fromDurationLike(duration);
|
|
4312
4422
|
|
|
4313
4423
|
if (!this.isValid || !dur.isValid || dur.as("milliseconds") === 0) {
|
|
4314
4424
|
return [];
|
|
@@ -4568,7 +4678,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4568
4678
|
* Returns an ISO 8601-compliant string representation of time of this Interval.
|
|
4569
4679
|
* The date components are ignored.
|
|
4570
4680
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
|
4571
|
-
* @param {Object} opts - The same options as {@link DateTime
|
|
4681
|
+
* @param {Object} opts - The same options as {@link DateTime#toISO}
|
|
4572
4682
|
* @return {string}
|
|
4573
4683
|
*/
|
|
4574
4684
|
;
|
|
@@ -4579,7 +4689,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4579
4689
|
}
|
|
4580
4690
|
/**
|
|
4581
4691
|
* Returns a string representation of this Interval formatted according to the specified format string.
|
|
4582
|
-
* @param {string} dateFormat - the format string. This string formats the start and end time. See {@link DateTime
|
|
4692
|
+
* @param {string} dateFormat - the format string. This string formats the start and end time. See {@link DateTime#toFormat} for details.
|
|
4583
4693
|
* @param {Object} opts - options
|
|
4584
4694
|
* @param {string} [opts.separator = ' – '] - a separator to place between the start and end representations
|
|
4585
4695
|
* @return {string}
|
|
@@ -4710,7 +4820,7 @@ var Info = /*#__PURE__*/function () {
|
|
|
4710
4820
|
;
|
|
4711
4821
|
|
|
4712
4822
|
Info.isValidIANAZone = function isValidIANAZone(zone) {
|
|
4713
|
-
return IANAZone.
|
|
4823
|
+
return IANAZone.isValidZone(zone);
|
|
4714
4824
|
}
|
|
4715
4825
|
/**
|
|
4716
4826
|
* Converts the input into a {@link Zone} instance.
|
|
@@ -4719,7 +4829,7 @@ var Info = /*#__PURE__*/function () {
|
|
|
4719
4829
|
* * If `input` is a string containing a valid time zone name, a Zone instance
|
|
4720
4830
|
* with that name is returned.
|
|
4721
4831
|
* * If `input` is a string that doesn't refer to a known time zone, a Zone
|
|
4722
|
-
* instance with {@link Zone
|
|
4832
|
+
* instance with {@link Zone#isValid} == false is returned.
|
|
4723
4833
|
* * If `input is a number, a Zone instance with the specified fixed offset
|
|
4724
4834
|
* in minutes is returned.
|
|
4725
4835
|
* * If `input` is `null` or `undefined`, the default zone is returned.
|
|
@@ -4901,13 +5011,10 @@ var Info = /*#__PURE__*/function () {
|
|
|
4901
5011
|
}
|
|
4902
5012
|
/**
|
|
4903
5013
|
* Return the set of available features in this environment.
|
|
4904
|
-
* Some features of Luxon are not available in all environments. For example, on older browsers,
|
|
5014
|
+
* Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.
|
|
4905
5015
|
* Keys:
|
|
4906
|
-
* * `zones`: whether this environment supports IANA timezones
|
|
4907
|
-
* * `intlTokens`: whether this environment supports internationalized token-based formatting/parsing
|
|
4908
|
-
* * `intl`: whether this environment supports general internationalization
|
|
4909
5016
|
* * `relative`: whether this environment supports relative time formatting
|
|
4910
|
-
* @example Info.features() //=> {
|
|
5017
|
+
* @example Info.features() //=> { relative: false }
|
|
4911
5018
|
* @return {Object}
|
|
4912
5019
|
*/
|
|
4913
5020
|
;
|
|
@@ -5112,7 +5219,7 @@ function intUnit(regex, post) {
|
|
|
5112
5219
|
}
|
|
5113
5220
|
|
|
5114
5221
|
var NBSP = String.fromCharCode(160);
|
|
5115
|
-
var spaceOrNBSP = "
|
|
5222
|
+
var spaceOrNBSP = "[ " + NBSP + "]";
|
|
5116
5223
|
var spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, "g");
|
|
5117
5224
|
|
|
5118
5225
|
function fixListRegex(s) {
|
|
@@ -5298,6 +5405,12 @@ function unitForToken(token, loc) {
|
|
|
5298
5405
|
|
|
5299
5406
|
case "u":
|
|
5300
5407
|
return simple(oneToNine);
|
|
5408
|
+
|
|
5409
|
+
case "uu":
|
|
5410
|
+
return simple(oneOrTwo);
|
|
5411
|
+
|
|
5412
|
+
case "uuu":
|
|
5413
|
+
return intUnit(one);
|
|
5301
5414
|
// meridiem
|
|
5302
5415
|
|
|
5303
5416
|
case "a":
|
|
@@ -5504,14 +5617,19 @@ function dateTimeFromMatches(matches) {
|
|
|
5504
5617
|
}
|
|
5505
5618
|
};
|
|
5506
5619
|
|
|
5507
|
-
var zone;
|
|
5620
|
+
var zone = null;
|
|
5621
|
+
var specificOffset;
|
|
5508
5622
|
|
|
5509
|
-
if (!isUndefined(matches.
|
|
5510
|
-
zone = new FixedOffsetZone(matches.Z);
|
|
5511
|
-
} else if (!isUndefined(matches.z)) {
|
|
5623
|
+
if (!isUndefined(matches.z)) {
|
|
5512
5624
|
zone = IANAZone.create(matches.z);
|
|
5513
|
-
}
|
|
5514
|
-
|
|
5625
|
+
}
|
|
5626
|
+
|
|
5627
|
+
if (!isUndefined(matches.Z)) {
|
|
5628
|
+
if (!zone) {
|
|
5629
|
+
zone = new FixedOffsetZone(matches.Z);
|
|
5630
|
+
}
|
|
5631
|
+
|
|
5632
|
+
specificOffset = matches.Z;
|
|
5515
5633
|
}
|
|
5516
5634
|
|
|
5517
5635
|
if (!isUndefined(matches.q)) {
|
|
@@ -5543,7 +5661,7 @@ function dateTimeFromMatches(matches) {
|
|
|
5543
5661
|
|
|
5544
5662
|
return r;
|
|
5545
5663
|
}, {});
|
|
5546
|
-
return [vals, zone];
|
|
5664
|
+
return [vals, zone, specificOffset];
|
|
5547
5665
|
}
|
|
5548
5666
|
|
|
5549
5667
|
var dummyDateTimeCache = null;
|
|
@@ -5615,9 +5733,10 @@ function explainFromTokens(locale, input, format) {
|
|
|
5615
5733
|
_match = match(input, regex, handlers),
|
|
5616
5734
|
rawMatches = _match[0],
|
|
5617
5735
|
matches = _match[1],
|
|
5618
|
-
_ref6 = matches ? dateTimeFromMatches(matches) : [null, null],
|
|
5736
|
+
_ref6 = matches ? dateTimeFromMatches(matches) : [null, null, undefined],
|
|
5619
5737
|
result = _ref6[0],
|
|
5620
|
-
zone = _ref6[1]
|
|
5738
|
+
zone = _ref6[1],
|
|
5739
|
+
specificOffset = _ref6[2];
|
|
5621
5740
|
|
|
5622
5741
|
if (hasOwnProperty(matches, "a") && hasOwnProperty(matches, "H")) {
|
|
5623
5742
|
throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");
|
|
@@ -5630,7 +5749,8 @@ function explainFromTokens(locale, input, format) {
|
|
|
5630
5749
|
rawMatches: rawMatches,
|
|
5631
5750
|
matches: matches,
|
|
5632
5751
|
result: result,
|
|
5633
|
-
zone: zone
|
|
5752
|
+
zone: zone,
|
|
5753
|
+
specificOffset: specificOffset
|
|
5634
5754
|
};
|
|
5635
5755
|
}
|
|
5636
5756
|
}
|
|
@@ -5638,9 +5758,10 @@ function parseFromTokens(locale, input, format) {
|
|
|
5638
5758
|
var _explainFromTokens = explainFromTokens(locale, input, format),
|
|
5639
5759
|
result = _explainFromTokens.result,
|
|
5640
5760
|
zone = _explainFromTokens.zone,
|
|
5761
|
+
specificOffset = _explainFromTokens.specificOffset,
|
|
5641
5762
|
invalidReason = _explainFromTokens.invalidReason;
|
|
5642
5763
|
|
|
5643
|
-
return [result, zone, invalidReason];
|
|
5764
|
+
return [result, zone, specificOffset, invalidReason];
|
|
5644
5765
|
}
|
|
5645
5766
|
|
|
5646
5767
|
var nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],
|
|
@@ -5651,7 +5772,13 @@ function unitOutOfRange(unit, value) {
|
|
|
5651
5772
|
}
|
|
5652
5773
|
|
|
5653
5774
|
function dayOfWeek(year, month, day) {
|
|
5654
|
-
var
|
|
5775
|
+
var d = new Date(Date.UTC(year, month - 1, day));
|
|
5776
|
+
|
|
5777
|
+
if (year < 100 && year >= 0) {
|
|
5778
|
+
d.setUTCFullYear(d.getUTCFullYear() - 1900);
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5781
|
+
var js = d.getUTCDay();
|
|
5655
5782
|
return js === 0 ? 7 : js;
|
|
5656
5783
|
}
|
|
5657
5784
|
|
|
@@ -5928,7 +6055,7 @@ function adjustTime(inst, dur) {
|
|
|
5928
6055
|
// by handling the zone options
|
|
5929
6056
|
|
|
5930
6057
|
|
|
5931
|
-
function parseDataToDateTime(parsed, parsedZone, opts, format, text) {
|
|
6058
|
+
function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
|
|
5932
6059
|
var setZone = opts.setZone,
|
|
5933
6060
|
zone = opts.zone;
|
|
5934
6061
|
|
|
@@ -5936,8 +6063,7 @@ function parseDataToDateTime(parsed, parsedZone, opts, format, text) {
|
|
|
5936
6063
|
var interpretationZone = parsedZone || zone,
|
|
5937
6064
|
inst = DateTime.fromObject(parsed, _extends({}, opts, {
|
|
5938
6065
|
zone: interpretationZone,
|
|
5939
|
-
|
|
5940
|
-
setZone: undefined
|
|
6066
|
+
specificOffset: specificOffset
|
|
5941
6067
|
}));
|
|
5942
6068
|
return setZone ? inst : inst.setZone(zone);
|
|
5943
6069
|
} else {
|
|
@@ -5956,51 +6082,71 @@ function toTechFormat(dt, format, allowZ) {
|
|
|
5956
6082
|
allowZ: allowZ,
|
|
5957
6083
|
forceSimple: true
|
|
5958
6084
|
}).formatDateTimeFromString(dt, format) : null;
|
|
5959
|
-
}
|
|
5960
|
-
// and this commonizes their handling
|
|
6085
|
+
}
|
|
5961
6086
|
|
|
6087
|
+
function _toISODate(o, extended) {
|
|
6088
|
+
var longFormat = o.c.year > 9999 || o.c.year < 0;
|
|
6089
|
+
var c = "";
|
|
6090
|
+
if (longFormat && o.c.year >= 0) c += "+";
|
|
6091
|
+
c += padStart(o.c.year, longFormat ? 6 : 4);
|
|
6092
|
+
|
|
6093
|
+
if (extended) {
|
|
6094
|
+
c += "-";
|
|
6095
|
+
c += padStart(o.c.month);
|
|
6096
|
+
c += "-";
|
|
6097
|
+
c += padStart(o.c.day);
|
|
6098
|
+
} else {
|
|
6099
|
+
c += padStart(o.c.month);
|
|
6100
|
+
c += padStart(o.c.day);
|
|
6101
|
+
}
|
|
6102
|
+
|
|
6103
|
+
return c;
|
|
6104
|
+
}
|
|
5962
6105
|
|
|
5963
|
-
function
|
|
5964
|
-
var
|
|
5965
|
-
suppressSeconds = _ref$suppressSeconds === void 0 ? false : _ref$suppressSeconds,
|
|
5966
|
-
_ref$suppressMillisec = _ref.suppressMilliseconds,
|
|
5967
|
-
suppressMilliseconds = _ref$suppressMillisec === void 0 ? false : _ref$suppressMillisec,
|
|
5968
|
-
includeOffset = _ref.includeOffset,
|
|
5969
|
-
_ref$includePrefix = _ref.includePrefix,
|
|
5970
|
-
includePrefix = _ref$includePrefix === void 0 ? false : _ref$includePrefix,
|
|
5971
|
-
_ref$includeZone = _ref.includeZone,
|
|
5972
|
-
includeZone = _ref$includeZone === void 0 ? false : _ref$includeZone,
|
|
5973
|
-
_ref$spaceZone = _ref.spaceZone,
|
|
5974
|
-
spaceZone = _ref$spaceZone === void 0 ? false : _ref$spaceZone,
|
|
5975
|
-
_ref$format = _ref.format,
|
|
5976
|
-
format = _ref$format === void 0 ? "extended" : _ref$format;
|
|
5977
|
-
var fmt = format === "basic" ? "HHmm" : "HH:mm";
|
|
6106
|
+
function _toISOTime(o, extended, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone) {
|
|
6107
|
+
var c = padStart(o.c.hour);
|
|
5978
6108
|
|
|
5979
|
-
if (
|
|
5980
|
-
|
|
6109
|
+
if (extended) {
|
|
6110
|
+
c += ":";
|
|
6111
|
+
c += padStart(o.c.minute);
|
|
5981
6112
|
|
|
5982
|
-
if (
|
|
5983
|
-
|
|
6113
|
+
if (o.c.second !== 0 || !suppressSeconds) {
|
|
6114
|
+
c += ":";
|
|
5984
6115
|
}
|
|
6116
|
+
} else {
|
|
6117
|
+
c += padStart(o.c.minute);
|
|
5985
6118
|
}
|
|
5986
6119
|
|
|
5987
|
-
if (
|
|
5988
|
-
|
|
5989
|
-
}
|
|
6120
|
+
if (o.c.second !== 0 || !suppressSeconds) {
|
|
6121
|
+
c += padStart(o.c.second);
|
|
5990
6122
|
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
6123
|
+
if (o.c.millisecond !== 0 || !suppressMilliseconds) {
|
|
6124
|
+
c += ".";
|
|
6125
|
+
c += padStart(o.c.millisecond, 3);
|
|
6126
|
+
}
|
|
5995
6127
|
}
|
|
5996
6128
|
|
|
5997
|
-
|
|
6129
|
+
if (includeOffset) {
|
|
6130
|
+
if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {
|
|
6131
|
+
c += "Z";
|
|
6132
|
+
} else if (o.o < 0) {
|
|
6133
|
+
c += "-";
|
|
6134
|
+
c += padStart(Math.trunc(-o.o / 60));
|
|
6135
|
+
c += ":";
|
|
6136
|
+
c += padStart(Math.trunc(-o.o % 60));
|
|
6137
|
+
} else {
|
|
6138
|
+
c += "+";
|
|
6139
|
+
c += padStart(Math.trunc(o.o / 60));
|
|
6140
|
+
c += ":";
|
|
6141
|
+
c += padStart(Math.trunc(o.o % 60));
|
|
6142
|
+
}
|
|
6143
|
+
}
|
|
5998
6144
|
|
|
5999
|
-
if (
|
|
6000
|
-
|
|
6145
|
+
if (extendedZone) {
|
|
6146
|
+
c += "[" + o.zone.ianaName + "]";
|
|
6001
6147
|
}
|
|
6002
6148
|
|
|
6003
|
-
return
|
|
6149
|
+
return c;
|
|
6004
6150
|
} // defaults for unspecified units in the supported calendars
|
|
6005
6151
|
|
|
6006
6152
|
|
|
@@ -6064,9 +6210,6 @@ function normalizeUnit(unit) {
|
|
|
6064
6210
|
} // this is a dumbed down version of fromObject() that runs about 60% faster
|
|
6065
6211
|
// but doesn't do any validation, makes a bunch of assumptions about what units
|
|
6066
6212
|
// are present, and so on.
|
|
6067
|
-
// this is a dumbed down version of fromObject() that runs about 60% faster
|
|
6068
|
-
// but doesn't do any validation, makes a bunch of assumptions about what units
|
|
6069
|
-
// are present, and so on.
|
|
6070
6213
|
|
|
6071
6214
|
|
|
6072
6215
|
function quickDT(obj, opts) {
|
|
@@ -6164,13 +6307,13 @@ function lastOpts(argList) {
|
|
|
6164
6307
|
*
|
|
6165
6308
|
* Here is a brief overview of the most commonly used functionality it provides:
|
|
6166
6309
|
*
|
|
6167
|
-
* * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link local}, {@link utc}, and (most flexibly) {@link fromObject}. To create one from a standard string format, use {@link fromISO}, {@link fromHTTP}, and {@link fromRFC2822}. To create one from a custom string format, use {@link fromFormat}. To create one from a native JS date, use {@link fromJSDate}.
|
|
6168
|
-
* * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link toObject}), use the {@link year}, {@link month},
|
|
6169
|
-
* {@link day}, {@link hour}, {@link minute}, {@link second}, {@link millisecond} accessors.
|
|
6170
|
-
* * **Week calendar**: For ISO week calendar attributes, see the {@link weekYear}, {@link weekNumber}, and {@link weekday} accessors.
|
|
6171
|
-
* * **Configuration** See the {@link locale} and {@link numberingSystem} accessors.
|
|
6172
|
-
* * **Transformation**: To transform the DateTime into other DateTimes, use {@link set}, {@link reconfigure}, {@link setZone}, {@link setLocale}, {@link plus}, {@link minus}, {@link endOf}, {@link startOf}, {@link toUTC}, and {@link toLocal}.
|
|
6173
|
-
* * **Output**: To convert the DateTime to other representations, use the {@link toRelative}, {@link toRelativeCalendar}, {@link toJSON}, {@link toISO}, {@link toHTTP}, {@link toObject}, {@link toRFC2822}, {@link toString}, {@link toLocaleString}, {@link toFormat}, {@link toMillis} and {@link toJSDate}.
|
|
6310
|
+
* * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime#local}, {@link DateTime#utc}, and (most flexibly) {@link DateTime#fromObject}. To create one from a standard string format, use {@link DateTime#fromISO}, {@link DateTime#fromHTTP}, and {@link DateTime#fromRFC2822}. To create one from a custom string format, use {@link DateTime#fromFormat}. To create one from a native JS date, use {@link DateTime#fromJSDate}.
|
|
6311
|
+
* * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},
|
|
6312
|
+
* {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.
|
|
6313
|
+
* * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.
|
|
6314
|
+
* * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.
|
|
6315
|
+
* * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.
|
|
6316
|
+
* * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.
|
|
6174
6317
|
*
|
|
6175
6318
|
* There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.
|
|
6176
6319
|
*/
|
|
@@ -6195,9 +6338,9 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6195
6338
|
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
|
6196
6339
|
|
|
6197
6340
|
if (unchanged) {
|
|
6198
|
-
var
|
|
6199
|
-
c =
|
|
6200
|
-
o =
|
|
6341
|
+
var _ref = [config.old.c, config.old.o];
|
|
6342
|
+
c = _ref[0];
|
|
6343
|
+
o = _ref[1];
|
|
6201
6344
|
} else {
|
|
6202
6345
|
var ot = zone.offset(this.ts);
|
|
6203
6346
|
c = tsToObj(this.ts, ot);
|
|
@@ -6269,7 +6412,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6269
6412
|
* @example DateTime.local({ zone: "America/New_York" }) //~> now, in US east coast time
|
|
6270
6413
|
* @example DateTime.local(2017) //~> 2017-01-01T00:00:00
|
|
6271
6414
|
* @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00
|
|
6272
|
-
* @example DateTime.local(2017, 3, 12, { locale: "fr")
|
|
6415
|
+
* @example DateTime.local(2017, 3, 12, { locale: "fr" }) //~> 2017-03-12T00:00:00, with a French locale
|
|
6273
6416
|
* @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00
|
|
6274
6417
|
* @example DateTime.local(2017, 3, 12, 5, { zone: "utc" }) //~> 2017-03-12T05:00:00, in UTC
|
|
6275
6418
|
* @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00
|
|
@@ -6314,15 +6457,15 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6314
6457
|
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
|
6315
6458
|
* @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance
|
|
6316
6459
|
* @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance
|
|
6317
|
-
* @example DateTime.utc()
|
|
6318
|
-
* @example DateTime.utc(2017)
|
|
6319
|
-
* @example DateTime.utc(2017, 3)
|
|
6320
|
-
* @example DateTime.utc(2017, 3, 12)
|
|
6321
|
-
* @example DateTime.utc(2017, 3, 12, 5)
|
|
6322
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45)
|
|
6323
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }
|
|
6324
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45, 10)
|
|
6325
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr") //~> 2017-03-12T05:45:10.765Z with a French locale
|
|
6460
|
+
* @example DateTime.utc() //~> now
|
|
6461
|
+
* @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z
|
|
6462
|
+
* @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z
|
|
6463
|
+
* @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z
|
|
6464
|
+
* @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z
|
|
6465
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z
|
|
6466
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }) //~> 2017-03-12T05:45:00Z with a French locale
|
|
6467
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z
|
|
6468
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr" }) //~> 2017-03-12T05:45:10.765Z with a French locale
|
|
6326
6469
|
* @return {DateTime}
|
|
6327
6470
|
*/
|
|
6328
6471
|
;
|
|
@@ -6463,7 +6606,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6463
6606
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06
|
|
6464
6607
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),
|
|
6465
6608
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })
|
|
6466
|
-
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, {
|
|
6609
|
+
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })
|
|
6467
6610
|
* @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'
|
|
6468
6611
|
* @return {DateTime}
|
|
6469
6612
|
*/
|
|
@@ -6482,7 +6625,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6482
6625
|
}
|
|
6483
6626
|
|
|
6484
6627
|
var tsNow = Settings.now(),
|
|
6485
|
-
offsetProvis = zoneToUse.offset(tsNow),
|
|
6628
|
+
offsetProvis = !isUndefined(opts.specificOffset) ? opts.specificOffset : zoneToUse.offset(tsNow),
|
|
6486
6629
|
normalized = normalizeObject(obj, normalizeUnit),
|
|
6487
6630
|
containsOrdinal = !isUndefined(normalized.ordinal),
|
|
6488
6631
|
containsGregorYear = !isUndefined(normalized.year),
|
|
@@ -6651,7 +6794,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6651
6794
|
}
|
|
6652
6795
|
/**
|
|
6653
6796
|
* Create a DateTime from an input string and format string.
|
|
6654
|
-
* Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](/#/parsing?id=table-of-tokens).
|
|
6797
|
+
* Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).
|
|
6655
6798
|
* @param {string} text - the string to parse
|
|
6656
6799
|
* @param {string} fmt - the format the string is expected to be in (see the link below for the formats)
|
|
6657
6800
|
* @param {Object} opts - options to affect the creation
|
|
@@ -6686,12 +6829,13 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6686
6829
|
_parseFromTokens = parseFromTokens(localeToUse, text, fmt),
|
|
6687
6830
|
vals = _parseFromTokens[0],
|
|
6688
6831
|
parsedZone = _parseFromTokens[1],
|
|
6689
|
-
|
|
6832
|
+
specificOffset = _parseFromTokens[2],
|
|
6833
|
+
invalid = _parseFromTokens[3];
|
|
6690
6834
|
|
|
6691
6835
|
if (invalid) {
|
|
6692
6836
|
return DateTime.invalid(invalid);
|
|
6693
6837
|
} else {
|
|
6694
|
-
return parseDataToDateTime(vals, parsedZone, opts, "format " + fmt, text);
|
|
6838
|
+
return parseDataToDateTime(vals, parsedZone, opts, "format " + fmt, text, specificOffset);
|
|
6695
6839
|
}
|
|
6696
6840
|
}
|
|
6697
6841
|
/**
|
|
@@ -6767,7 +6911,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6767
6911
|
}
|
|
6768
6912
|
}
|
|
6769
6913
|
/**
|
|
6770
|
-
* Check if an object is
|
|
6914
|
+
* Check if an object is an instance of DateTime. Works across context boundaries
|
|
6771
6915
|
* @param {object} o
|
|
6772
6916
|
* @return {boolean}
|
|
6773
6917
|
*/
|
|
@@ -6825,7 +6969,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6825
6969
|
/**
|
|
6826
6970
|
* "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime.
|
|
6827
6971
|
*
|
|
6828
|
-
* Equivalent to {@link setZone}('utc')
|
|
6972
|
+
* Equivalent to {@link DateTime#setZone}('utc')
|
|
6829
6973
|
* @param {number} [offset=0] - optionally, an offset from UTC in minutes
|
|
6830
6974
|
* @param {Object} [opts={}] - options to pass to `setZone()`
|
|
6831
6975
|
* @return {DateTime}
|
|
@@ -6857,8 +7001,8 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6857
7001
|
/**
|
|
6858
7002
|
* "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
|
|
6859
7003
|
*
|
|
6860
|
-
* By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link plus}. You may wish to use {@link toLocal} and {@link toUTC} which provide simple convenience wrappers for commonly used zones.
|
|
6861
|
-
* @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link Zone} class.
|
|
7004
|
+
* By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.
|
|
7005
|
+
* @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.
|
|
6862
7006
|
* @param {Object} opts - options
|
|
6863
7007
|
* @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.
|
|
6864
7008
|
* @return {DateTime}
|
|
@@ -6866,11 +7010,11 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6866
7010
|
;
|
|
6867
7011
|
|
|
6868
7012
|
_proto.setZone = function setZone(zone, _temp) {
|
|
6869
|
-
var
|
|
6870
|
-
|
|
6871
|
-
keepLocalTime =
|
|
6872
|
-
|
|
6873
|
-
keepCalendarTime =
|
|
7013
|
+
var _ref2 = _temp === void 0 ? {} : _temp,
|
|
7014
|
+
_ref2$keepLocalTime = _ref2.keepLocalTime,
|
|
7015
|
+
keepLocalTime = _ref2$keepLocalTime === void 0 ? false : _ref2$keepLocalTime,
|
|
7016
|
+
_ref2$keepCalendarTim = _ref2.keepCalendarTime,
|
|
7017
|
+
keepCalendarTime = _ref2$keepCalendarTim === void 0 ? false : _ref2$keepCalendarTim;
|
|
6874
7018
|
|
|
6875
7019
|
zone = normalizeZone(zone, Settings.defaultZone);
|
|
6876
7020
|
|
|
@@ -6905,10 +7049,10 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6905
7049
|
;
|
|
6906
7050
|
|
|
6907
7051
|
_proto.reconfigure = function reconfigure(_temp2) {
|
|
6908
|
-
var
|
|
6909
|
-
locale =
|
|
6910
|
-
numberingSystem =
|
|
6911
|
-
outputCalendar =
|
|
7052
|
+
var _ref3 = _temp2 === void 0 ? {} : _temp2,
|
|
7053
|
+
locale = _ref3.locale,
|
|
7054
|
+
numberingSystem = _ref3.numberingSystem,
|
|
7055
|
+
outputCalendar = _ref3.outputCalendar;
|
|
6912
7056
|
|
|
6913
7057
|
var loc = this.loc.clone({
|
|
6914
7058
|
locale: locale,
|
|
@@ -6934,7 +7078,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6934
7078
|
}
|
|
6935
7079
|
/**
|
|
6936
7080
|
* "Set" the values of specified units. Returns a newly-constructed DateTime.
|
|
6937
|
-
* You can only set units with this method; for "setting" metadata, see {@link reconfigure} and {@link setZone}.
|
|
7081
|
+
* You can only set units with this method; for "setting" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.
|
|
6938
7082
|
* @param {Object} values - a mapping of units to numbers
|
|
6939
7083
|
* @example dt.set({ year: 2017 })
|
|
6940
7084
|
* @example dt.set({ hour: 8, minute: 30 })
|
|
@@ -7003,20 +7147,20 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7003
7147
|
|
|
7004
7148
|
_proto.plus = function plus(duration) {
|
|
7005
7149
|
if (!this.isValid) return this;
|
|
7006
|
-
var dur =
|
|
7150
|
+
var dur = Duration.fromDurationLike(duration);
|
|
7007
7151
|
return clone(this, adjustTime(this, dur));
|
|
7008
7152
|
}
|
|
7009
7153
|
/**
|
|
7010
7154
|
* Subtract a period of time to this DateTime and return the resulting DateTime
|
|
7011
|
-
* See {@link plus}
|
|
7155
|
+
* See {@link DateTime#plus}
|
|
7012
7156
|
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
7013
7157
|
@return {DateTime}
|
|
7014
|
-
|
|
7158
|
+
*/
|
|
7015
7159
|
;
|
|
7016
7160
|
|
|
7017
7161
|
_proto.minus = function minus(duration) {
|
|
7018
7162
|
if (!this.isValid) return this;
|
|
7019
|
-
var dur =
|
|
7163
|
+
var dur = Duration.fromDurationLike(duration).negate();
|
|
7020
7164
|
return clone(this, adjustTime(this, dur));
|
|
7021
7165
|
}
|
|
7022
7166
|
/**
|
|
@@ -7096,7 +7240,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7096
7240
|
|
|
7097
7241
|
/**
|
|
7098
7242
|
* Returns a string representation of this DateTime formatted according to the specified format string.
|
|
7099
|
-
* **You may not want this.** See {@link toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](/#/formatting?id=table-of-tokens).
|
|
7243
|
+
* **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).
|
|
7100
7244
|
* Defaults to en-US if no locale has been specified, regardless of the system's locale.
|
|
7101
7245
|
* @param {string} fmt - the format string
|
|
7102
7246
|
* @param {Object} opts - opts to override the configuration options on this DateTime
|
|
@@ -7175,8 +7319,9 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7175
7319
|
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
|
7176
7320
|
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
|
7177
7321
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
7322
|
+
* @param {boolean} [opts.extendedZone=true] - add the time zone format extension
|
|
7178
7323
|
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
|
7179
|
-
* @example DateTime.utc(
|
|
7324
|
+
* @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'
|
|
7180
7325
|
* @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
|
|
7181
7326
|
* @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'
|
|
7182
7327
|
* @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'
|
|
@@ -7184,16 +7329,30 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7184
7329
|
*/
|
|
7185
7330
|
;
|
|
7186
7331
|
|
|
7187
|
-
_proto.toISO = function toISO(
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7332
|
+
_proto.toISO = function toISO(_temp3) {
|
|
7333
|
+
var _ref4 = _temp3 === void 0 ? {} : _temp3,
|
|
7334
|
+
_ref4$format = _ref4.format,
|
|
7335
|
+
format = _ref4$format === void 0 ? "extended" : _ref4$format,
|
|
7336
|
+
_ref4$suppressSeconds = _ref4.suppressSeconds,
|
|
7337
|
+
suppressSeconds = _ref4$suppressSeconds === void 0 ? false : _ref4$suppressSeconds,
|
|
7338
|
+
_ref4$suppressMillise = _ref4.suppressMilliseconds,
|
|
7339
|
+
suppressMilliseconds = _ref4$suppressMillise === void 0 ? false : _ref4$suppressMillise,
|
|
7340
|
+
_ref4$includeOffset = _ref4.includeOffset,
|
|
7341
|
+
includeOffset = _ref4$includeOffset === void 0 ? true : _ref4$includeOffset,
|
|
7342
|
+
_ref4$extendedZone = _ref4.extendedZone,
|
|
7343
|
+
extendedZone = _ref4$extendedZone === void 0 ? false : _ref4$extendedZone;
|
|
7191
7344
|
|
|
7192
7345
|
if (!this.isValid) {
|
|
7193
7346
|
return null;
|
|
7194
7347
|
}
|
|
7195
7348
|
|
|
7196
|
-
|
|
7349
|
+
var ext = format === "extended";
|
|
7350
|
+
|
|
7351
|
+
var c = _toISODate(this, ext);
|
|
7352
|
+
|
|
7353
|
+
c += "T";
|
|
7354
|
+
c += _toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);
|
|
7355
|
+
return c;
|
|
7197
7356
|
}
|
|
7198
7357
|
/**
|
|
7199
7358
|
* Returns an ISO 8601-compliant string representation of this DateTime's date component
|
|
@@ -7205,18 +7364,16 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7205
7364
|
*/
|
|
7206
7365
|
;
|
|
7207
7366
|
|
|
7208
|
-
_proto.toISODate = function toISODate(
|
|
7209
|
-
var _ref5 =
|
|
7367
|
+
_proto.toISODate = function toISODate(_temp4) {
|
|
7368
|
+
var _ref5 = _temp4 === void 0 ? {} : _temp4,
|
|
7210
7369
|
_ref5$format = _ref5.format,
|
|
7211
7370
|
format = _ref5$format === void 0 ? "extended" : _ref5$format;
|
|
7212
7371
|
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
if (this.year > 9999) {
|
|
7216
|
-
fmt = "+" + fmt;
|
|
7372
|
+
if (!this.isValid) {
|
|
7373
|
+
return null;
|
|
7217
7374
|
}
|
|
7218
7375
|
|
|
7219
|
-
return
|
|
7376
|
+
return _toISODate(this, format === "extended");
|
|
7220
7377
|
}
|
|
7221
7378
|
/**
|
|
7222
7379
|
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
|
@@ -7234,6 +7391,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7234
7391
|
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
|
7235
7392
|
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
|
7236
7393
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
7394
|
+
* @param {boolean} [opts.extendedZone=true] - add the time zone format extension
|
|
7237
7395
|
* @param {boolean} [opts.includePrefix=false] - include the `T` prefix
|
|
7238
7396
|
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
|
7239
7397
|
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'
|
|
@@ -7244,8 +7402,8 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7244
7402
|
*/
|
|
7245
7403
|
;
|
|
7246
7404
|
|
|
7247
|
-
_proto.toISOTime = function toISOTime(
|
|
7248
|
-
var _ref6 =
|
|
7405
|
+
_proto.toISOTime = function toISOTime(_temp5) {
|
|
7406
|
+
var _ref6 = _temp5 === void 0 ? {} : _temp5,
|
|
7249
7407
|
_ref6$suppressMillise = _ref6.suppressMilliseconds,
|
|
7250
7408
|
suppressMilliseconds = _ref6$suppressMillise === void 0 ? false : _ref6$suppressMillise,
|
|
7251
7409
|
_ref6$suppressSeconds = _ref6.suppressSeconds,
|
|
@@ -7254,19 +7412,20 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7254
7412
|
includeOffset = _ref6$includeOffset === void 0 ? true : _ref6$includeOffset,
|
|
7255
7413
|
_ref6$includePrefix = _ref6.includePrefix,
|
|
7256
7414
|
includePrefix = _ref6$includePrefix === void 0 ? false : _ref6$includePrefix,
|
|
7415
|
+
_ref6$extendedZone = _ref6.extendedZone,
|
|
7416
|
+
extendedZone = _ref6$extendedZone === void 0 ? false : _ref6$extendedZone,
|
|
7257
7417
|
_ref6$format = _ref6.format,
|
|
7258
7418
|
format = _ref6$format === void 0 ? "extended" : _ref6$format;
|
|
7259
7419
|
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
});
|
|
7420
|
+
if (!this.isValid) {
|
|
7421
|
+
return null;
|
|
7422
|
+
}
|
|
7423
|
+
|
|
7424
|
+
var c = includePrefix ? "T" : "";
|
|
7425
|
+
return c + _toISOTime(this, format === "extended", suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);
|
|
7267
7426
|
}
|
|
7268
7427
|
/**
|
|
7269
|
-
* Returns an RFC 2822-compatible string representation of this DateTime
|
|
7428
|
+
* Returns an RFC 2822-compatible string representation of this DateTime
|
|
7270
7429
|
* @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'
|
|
7271
7430
|
* @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'
|
|
7272
7431
|
* @return {string}
|
|
@@ -7277,7 +7436,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7277
7436
|
return toTechFormat(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", false);
|
|
7278
7437
|
}
|
|
7279
7438
|
/**
|
|
7280
|
-
* Returns a string representation of this DateTime appropriate for use in HTTP headers.
|
|
7439
|
+
* Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.
|
|
7281
7440
|
* Specifically, the string conforms to RFC 1123.
|
|
7282
7441
|
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
|
|
7283
7442
|
* @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'
|
|
@@ -7297,13 +7456,18 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7297
7456
|
;
|
|
7298
7457
|
|
|
7299
7458
|
_proto.toSQLDate = function toSQLDate() {
|
|
7300
|
-
|
|
7459
|
+
if (!this.isValid) {
|
|
7460
|
+
return null;
|
|
7461
|
+
}
|
|
7462
|
+
|
|
7463
|
+
return _toISODate(this, true);
|
|
7301
7464
|
}
|
|
7302
7465
|
/**
|
|
7303
7466
|
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
|
7304
7467
|
* @param {Object} opts - options
|
|
7305
7468
|
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
|
7306
7469
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
7470
|
+
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
|
7307
7471
|
* @example DateTime.utc().toSQL() //=> '05:15:16.345'
|
|
7308
7472
|
* @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'
|
|
7309
7473
|
* @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'
|
|
@@ -7312,24 +7476,37 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7312
7476
|
*/
|
|
7313
7477
|
;
|
|
7314
7478
|
|
|
7315
|
-
_proto.toSQLTime = function toSQLTime(
|
|
7316
|
-
var _ref7 =
|
|
7479
|
+
_proto.toSQLTime = function toSQLTime(_temp6) {
|
|
7480
|
+
var _ref7 = _temp6 === void 0 ? {} : _temp6,
|
|
7317
7481
|
_ref7$includeOffset = _ref7.includeOffset,
|
|
7318
7482
|
includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset,
|
|
7319
7483
|
_ref7$includeZone = _ref7.includeZone,
|
|
7320
|
-
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone
|
|
7484
|
+
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone,
|
|
7485
|
+
_ref7$includeOffsetSp = _ref7.includeOffsetSpace,
|
|
7486
|
+
includeOffsetSpace = _ref7$includeOffsetSp === void 0 ? true : _ref7$includeOffsetSp;
|
|
7321
7487
|
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7488
|
+
var fmt = "HH:mm:ss.SSS";
|
|
7489
|
+
|
|
7490
|
+
if (includeZone || includeOffset) {
|
|
7491
|
+
if (includeOffsetSpace) {
|
|
7492
|
+
fmt += " ";
|
|
7493
|
+
}
|
|
7494
|
+
|
|
7495
|
+
if (includeZone) {
|
|
7496
|
+
fmt += "z";
|
|
7497
|
+
} else if (includeOffset) {
|
|
7498
|
+
fmt += "ZZ";
|
|
7499
|
+
}
|
|
7500
|
+
}
|
|
7501
|
+
|
|
7502
|
+
return toTechFormat(this, fmt, true);
|
|
7327
7503
|
}
|
|
7328
7504
|
/**
|
|
7329
7505
|
* Returns a string representation of this DateTime appropriate for use in SQL DateTime
|
|
7330
7506
|
* @param {Object} opts - options
|
|
7331
7507
|
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
|
7332
7508
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
7509
|
+
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
|
7333
7510
|
* @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'
|
|
7334
7511
|
* @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'
|
|
7335
7512
|
* @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'
|
|
@@ -7359,7 +7536,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7359
7536
|
return this.isValid ? this.toISO() : INVALID;
|
|
7360
7537
|
}
|
|
7361
7538
|
/**
|
|
7362
|
-
* Returns the epoch milliseconds of this DateTime. Alias of {@link toMillis}
|
|
7539
|
+
* Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}
|
|
7363
7540
|
* @return {number}
|
|
7364
7541
|
*/
|
|
7365
7542
|
;
|
|
@@ -7385,6 +7562,15 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7385
7562
|
_proto.toSeconds = function toSeconds() {
|
|
7386
7563
|
return this.isValid ? this.ts / 1000 : NaN;
|
|
7387
7564
|
}
|
|
7565
|
+
/**
|
|
7566
|
+
* Returns the epoch seconds (as a whole number) of this DateTime.
|
|
7567
|
+
* @return {number}
|
|
7568
|
+
*/
|
|
7569
|
+
;
|
|
7570
|
+
|
|
7571
|
+
_proto.toUnixInteger = function toUnixInteger() {
|
|
7572
|
+
return this.isValid ? Math.floor(this.ts / 1000) : NaN;
|
|
7573
|
+
}
|
|
7388
7574
|
/**
|
|
7389
7575
|
* Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.
|
|
7390
7576
|
* @return {string}
|
|
@@ -7484,7 +7670,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7484
7670
|
}
|
|
7485
7671
|
/**
|
|
7486
7672
|
* Return the difference between this DateTime and right now.
|
|
7487
|
-
* See {@link diff}
|
|
7673
|
+
* See {@link DateTime#diff}
|
|
7488
7674
|
* @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration
|
|
7489
7675
|
* @param {Object} opts - options that affect the creation of the Duration
|
|
7490
7676
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
@@ -7516,7 +7702,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7516
7702
|
/**
|
|
7517
7703
|
* Return whether this DateTime is in the same unit of time as another DateTime.
|
|
7518
7704
|
* Higher-order units must also be identical for this function to return `true`.
|
|
7519
|
-
* Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link setZone} to convert one of the dates if needed.
|
|
7705
|
+
* Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.
|
|
7520
7706
|
* @param {DateTime} otherDateTime - the other DateTime
|
|
7521
7707
|
* @param {string} unit - the unit of time to check sameness on
|
|
7522
7708
|
* @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day
|
|
@@ -7527,10 +7713,10 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7527
7713
|
_proto.hasSame = function hasSame(otherDateTime, unit) {
|
|
7528
7714
|
if (!this.isValid) return false;
|
|
7529
7715
|
var inputMs = otherDateTime.valueOf();
|
|
7530
|
-
var
|
|
7716
|
+
var adjustedToZone = this.setZone(otherDateTime.zone, {
|
|
7531
7717
|
keepLocalTime: true
|
|
7532
7718
|
});
|
|
7533
|
-
return
|
|
7719
|
+
return adjustedToZone.startOf(unit) <= inputMs && inputMs <= adjustedToZone.endOf(unit);
|
|
7534
7720
|
}
|
|
7535
7721
|
/**
|
|
7536
7722
|
* Equality check
|
|
@@ -7698,7 +7884,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7698
7884
|
} // FORMAT PRESETS
|
|
7699
7885
|
|
|
7700
7886
|
/**
|
|
7701
|
-
* {@link toLocaleString} format like 10/14/1983
|
|
7887
|
+
* {@link DateTime#toLocaleString} format like 10/14/1983
|
|
7702
7888
|
* @type {Object}
|
|
7703
7889
|
*/
|
|
7704
7890
|
;
|
|
@@ -8043,7 +8229,8 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8043
8229
|
return false;
|
|
8044
8230
|
} else {
|
|
8045
8231
|
return this.offset > this.set({
|
|
8046
|
-
month: 1
|
|
8232
|
+
month: 1,
|
|
8233
|
+
day: 1
|
|
8047
8234
|
}).offset || this.offset > this.set({
|
|
8048
8235
|
month: 5
|
|
8049
8236
|
}).offset;
|
|
@@ -8104,7 +8291,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8104
8291
|
return DATE_SHORT;
|
|
8105
8292
|
}
|
|
8106
8293
|
/**
|
|
8107
|
-
* {@link toLocaleString} format like 'Oct 14, 1983'
|
|
8294
|
+
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
|
|
8108
8295
|
* @type {Object}
|
|
8109
8296
|
*/
|
|
8110
8297
|
|
|
@@ -8114,7 +8301,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8114
8301
|
return DATE_MED;
|
|
8115
8302
|
}
|
|
8116
8303
|
/**
|
|
8117
|
-
* {@link toLocaleString} format like 'Fri, Oct 14, 1983'
|
|
8304
|
+
* {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'
|
|
8118
8305
|
* @type {Object}
|
|
8119
8306
|
*/
|
|
8120
8307
|
|
|
@@ -8124,7 +8311,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8124
8311
|
return DATE_MED_WITH_WEEKDAY;
|
|
8125
8312
|
}
|
|
8126
8313
|
/**
|
|
8127
|
-
* {@link toLocaleString} format like 'October 14, 1983'
|
|
8314
|
+
* {@link DateTime#toLocaleString} format like 'October 14, 1983'
|
|
8128
8315
|
* @type {Object}
|
|
8129
8316
|
*/
|
|
8130
8317
|
|
|
@@ -8134,7 +8321,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8134
8321
|
return DATE_FULL;
|
|
8135
8322
|
}
|
|
8136
8323
|
/**
|
|
8137
|
-
* {@link toLocaleString} format like 'Tuesday, October 14, 1983'
|
|
8324
|
+
* {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'
|
|
8138
8325
|
* @type {Object}
|
|
8139
8326
|
*/
|
|
8140
8327
|
|
|
@@ -8144,7 +8331,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8144
8331
|
return DATE_HUGE;
|
|
8145
8332
|
}
|
|
8146
8333
|
/**
|
|
8147
|
-
* {@link toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
|
|
8334
|
+
* {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
|
|
8148
8335
|
* @type {Object}
|
|
8149
8336
|
*/
|
|
8150
8337
|
|
|
@@ -8154,7 +8341,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8154
8341
|
return TIME_SIMPLE;
|
|
8155
8342
|
}
|
|
8156
8343
|
/**
|
|
8157
|
-
* {@link toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
|
8344
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
|
8158
8345
|
* @type {Object}
|
|
8159
8346
|
*/
|
|
8160
8347
|
|
|
@@ -8164,7 +8351,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8164
8351
|
return TIME_WITH_SECONDS;
|
|
8165
8352
|
}
|
|
8166
8353
|
/**
|
|
8167
|
-
* {@link toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
|
8354
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
|
8168
8355
|
* @type {Object}
|
|
8169
8356
|
*/
|
|
8170
8357
|
|
|
@@ -8174,7 +8361,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8174
8361
|
return TIME_WITH_SHORT_OFFSET;
|
|
8175
8362
|
}
|
|
8176
8363
|
/**
|
|
8177
|
-
* {@link toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8364
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8178
8365
|
* @type {Object}
|
|
8179
8366
|
*/
|
|
8180
8367
|
|
|
@@ -8184,7 +8371,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8184
8371
|
return TIME_WITH_LONG_OFFSET;
|
|
8185
8372
|
}
|
|
8186
8373
|
/**
|
|
8187
|
-
* {@link toLocaleString} format like '09:30', always 24-hour.
|
|
8374
|
+
* {@link DateTime#toLocaleString} format like '09:30', always 24-hour.
|
|
8188
8375
|
* @type {Object}
|
|
8189
8376
|
*/
|
|
8190
8377
|
|
|
@@ -8194,7 +8381,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8194
8381
|
return TIME_24_SIMPLE;
|
|
8195
8382
|
}
|
|
8196
8383
|
/**
|
|
8197
|
-
* {@link toLocaleString} format like '09:30:23', always 24-hour.
|
|
8384
|
+
* {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.
|
|
8198
8385
|
* @type {Object}
|
|
8199
8386
|
*/
|
|
8200
8387
|
|
|
@@ -8204,7 +8391,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8204
8391
|
return TIME_24_WITH_SECONDS;
|
|
8205
8392
|
}
|
|
8206
8393
|
/**
|
|
8207
|
-
* {@link toLocaleString} format like '09:30:23 EDT', always 24-hour.
|
|
8394
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.
|
|
8208
8395
|
* @type {Object}
|
|
8209
8396
|
*/
|
|
8210
8397
|
|
|
@@ -8214,7 +8401,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8214
8401
|
return TIME_24_WITH_SHORT_OFFSET;
|
|
8215
8402
|
}
|
|
8216
8403
|
/**
|
|
8217
|
-
* {@link toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
|
8404
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
|
8218
8405
|
* @type {Object}
|
|
8219
8406
|
*/
|
|
8220
8407
|
|
|
@@ -8224,7 +8411,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8224
8411
|
return TIME_24_WITH_LONG_OFFSET;
|
|
8225
8412
|
}
|
|
8226
8413
|
/**
|
|
8227
|
-
* {@link toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8414
|
+
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8228
8415
|
* @type {Object}
|
|
8229
8416
|
*/
|
|
8230
8417
|
|
|
@@ -8234,7 +8421,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8234
8421
|
return DATETIME_SHORT;
|
|
8235
8422
|
}
|
|
8236
8423
|
/**
|
|
8237
|
-
* {@link toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
8424
|
+
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
8238
8425
|
* @type {Object}
|
|
8239
8426
|
*/
|
|
8240
8427
|
|
|
@@ -8244,7 +8431,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8244
8431
|
return DATETIME_SHORT_WITH_SECONDS;
|
|
8245
8432
|
}
|
|
8246
8433
|
/**
|
|
8247
|
-
* {@link toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8434
|
+
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8248
8435
|
* @type {Object}
|
|
8249
8436
|
*/
|
|
8250
8437
|
|
|
@@ -8254,7 +8441,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8254
8441
|
return DATETIME_MED;
|
|
8255
8442
|
}
|
|
8256
8443
|
/**
|
|
8257
|
-
* {@link toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
8444
|
+
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
8258
8445
|
* @type {Object}
|
|
8259
8446
|
*/
|
|
8260
8447
|
|
|
@@ -8264,7 +8451,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8264
8451
|
return DATETIME_MED_WITH_SECONDS;
|
|
8265
8452
|
}
|
|
8266
8453
|
/**
|
|
8267
|
-
* {@link toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8454
|
+
* {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8268
8455
|
* @type {Object}
|
|
8269
8456
|
*/
|
|
8270
8457
|
|
|
@@ -8274,7 +8461,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8274
8461
|
return DATETIME_MED_WITH_WEEKDAY;
|
|
8275
8462
|
}
|
|
8276
8463
|
/**
|
|
8277
|
-
* {@link toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
|
8464
|
+
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
|
8278
8465
|
* @type {Object}
|
|
8279
8466
|
*/
|
|
8280
8467
|
|
|
@@ -8284,7 +8471,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8284
8471
|
return DATETIME_FULL;
|
|
8285
8472
|
}
|
|
8286
8473
|
/**
|
|
8287
|
-
* {@link toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
|
8474
|
+
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
|
8288
8475
|
* @type {Object}
|
|
8289
8476
|
*/
|
|
8290
8477
|
|
|
@@ -8294,7 +8481,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8294
8481
|
return DATETIME_FULL_WITH_SECONDS;
|
|
8295
8482
|
}
|
|
8296
8483
|
/**
|
|
8297
|
-
* {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8484
|
+
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8298
8485
|
* @type {Object}
|
|
8299
8486
|
*/
|
|
8300
8487
|
|
|
@@ -8304,7 +8491,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8304
8491
|
return DATETIME_HUGE;
|
|
8305
8492
|
}
|
|
8306
8493
|
/**
|
|
8307
|
-
* {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8494
|
+
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8308
8495
|
* @type {Object}
|
|
8309
8496
|
*/
|
|
8310
8497
|
|
|
@@ -8329,7 +8516,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
8329
8516
|
}
|
|
8330
8517
|
}
|
|
8331
8518
|
|
|
8332
|
-
var VERSION = "2.
|
|
8519
|
+
var VERSION = "2.5.2";
|
|
8333
8520
|
|
|
8334
8521
|
exports.DateTime = DateTime;
|
|
8335
8522
|
exports.Duration = Duration;
|
|
@@ -8342,7 +8529,7 @@ exports.Settings = Settings;
|
|
|
8342
8529
|
exports.SystemZone = SystemZone;
|
|
8343
8530
|
exports.VERSION = VERSION;
|
|
8344
8531
|
exports.Zone = Zone;
|
|
8345
|
-
|
|
8532
|
+
//# sourceMappingURL=luxon.js.map
|
|
8346
8533
|
});
|
|
8347
8534
|
|
|
8348
8535
|
exports.luxon = luxon;
|