@saasquatch/mint-components 2.5.5-1 → 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 +818 -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 +776 -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 +767 -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-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-93e4954e.entry.js +0 -308
- 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-d028db52.system.entry.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-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,4 +1,4 @@
|
|
|
1
|
-
import { c as createCommonjsModule } from './dom-context-hooks.module-
|
|
1
|
+
import { c as createCommonjsModule } from './dom-context-hooks.module-f88a3e54.js';
|
|
2
2
|
|
|
3
3
|
var luxon = createCommonjsModule(function (module, exports) {
|
|
4
4
|
|
|
@@ -17,11 +17,14 @@ function _defineProperties(target, props) {
|
|
|
17
17
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
18
18
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
19
19
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
20
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
21
|
+
writable: false
|
|
22
|
+
});
|
|
20
23
|
return Constructor;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
function _extends() {
|
|
24
|
-
_extends = Object.assign
|
|
27
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
25
28
|
for (var i = 1; i < arguments.length; i++) {
|
|
26
29
|
var source = arguments[i];
|
|
27
30
|
|
|
@@ -34,7 +37,6 @@ function _extends() {
|
|
|
34
37
|
|
|
35
38
|
return target;
|
|
36
39
|
};
|
|
37
|
-
|
|
38
40
|
return _extends.apply(this, arguments);
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -46,18 +48,17 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
function _getPrototypeOf(o) {
|
|
49
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
51
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
50
52
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
51
53
|
};
|
|
52
54
|
return _getPrototypeOf(o);
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
function _setPrototypeOf(o, p) {
|
|
56
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
58
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
57
59
|
o.__proto__ = p;
|
|
58
60
|
return o;
|
|
59
61
|
};
|
|
60
|
-
|
|
61
62
|
return _setPrototypeOf(o, p);
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -76,7 +77,7 @@ function _isNativeReflectConstruct() {
|
|
|
76
77
|
|
|
77
78
|
function _construct(Parent, args, Class) {
|
|
78
79
|
if (_isNativeReflectConstruct()) {
|
|
79
|
-
_construct = Reflect.construct;
|
|
80
|
+
_construct = Reflect.construct.bind();
|
|
80
81
|
} else {
|
|
81
82
|
_construct = function _construct(Parent, args, Class) {
|
|
82
83
|
var a = [null];
|
|
@@ -514,17 +515,16 @@ function padStart(input, n) {
|
|
|
514
515
|
n = 2;
|
|
515
516
|
}
|
|
516
517
|
|
|
517
|
-
var
|
|
518
|
-
var
|
|
519
|
-
var result;
|
|
518
|
+
var isNeg = input < 0;
|
|
519
|
+
var padded;
|
|
520
520
|
|
|
521
|
-
if (
|
|
522
|
-
|
|
521
|
+
if (isNeg) {
|
|
522
|
+
padded = "-" + ("" + -input).padStart(n, "0");
|
|
523
523
|
} else {
|
|
524
|
-
|
|
524
|
+
padded = ("" + input).padStart(n, "0");
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
-
return
|
|
527
|
+
return padded;
|
|
528
528
|
}
|
|
529
529
|
function parseInteger(string) {
|
|
530
530
|
if (isUndefined(string) || string === null || string === "") {
|
|
@@ -533,6 +533,13 @@ function parseInteger(string) {
|
|
|
533
533
|
return parseInt(string, 10);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
+
function parseFloating(string) {
|
|
537
|
+
if (isUndefined(string) || string === null || string === "") {
|
|
538
|
+
return undefined;
|
|
539
|
+
} else {
|
|
540
|
+
return parseFloat(string);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
536
543
|
function parseMillis(fraction) {
|
|
537
544
|
// Return undefined (instead of 0) in these cases, where fraction is not set
|
|
538
545
|
if (isUndefined(fraction) || fraction === null || fraction === "") {
|
|
@@ -672,7 +679,7 @@ function formatOffset(offset, format) {
|
|
|
672
679
|
function timeObject(obj) {
|
|
673
680
|
return pick(obj, ["hour", "minute", "second", "millisecond"]);
|
|
674
681
|
}
|
|
675
|
-
var ianaRegex = /[A-Za-z_+-]{1,256}(
|
|
682
|
+
var ianaRegex = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
|
|
676
683
|
|
|
677
684
|
/**
|
|
678
685
|
* @private
|
|
@@ -1035,6 +1042,13 @@ var Formatter = /*#__PURE__*/function () {
|
|
|
1035
1042
|
|
|
1036
1043
|
case "ss":
|
|
1037
1044
|
return _this.num(dt.second, 2);
|
|
1045
|
+
// fractional seconds
|
|
1046
|
+
|
|
1047
|
+
case "uu":
|
|
1048
|
+
return _this.num(Math.floor(dt.millisecond / 10), 2);
|
|
1049
|
+
|
|
1050
|
+
case "uuu":
|
|
1051
|
+
return _this.num(Math.floor(dt.millisecond / 100));
|
|
1038
1052
|
// minutes
|
|
1039
1053
|
|
|
1040
1054
|
case "m":
|
|
@@ -1295,6 +1309,9 @@ var Formatter = /*#__PURE__*/function () {
|
|
|
1295
1309
|
case "d":
|
|
1296
1310
|
return "day";
|
|
1297
1311
|
|
|
1312
|
+
case "w":
|
|
1313
|
+
return "week";
|
|
1314
|
+
|
|
1298
1315
|
case "M":
|
|
1299
1316
|
return "month";
|
|
1300
1317
|
|
|
@@ -1436,6 +1453,11 @@ var Zone = /*#__PURE__*/function () {
|
|
|
1436
1453
|
get: function get() {
|
|
1437
1454
|
throw new ZoneIsAbstractError();
|
|
1438
1455
|
}
|
|
1456
|
+
}, {
|
|
1457
|
+
key: "ianaName",
|
|
1458
|
+
get: function get() {
|
|
1459
|
+
return this.name;
|
|
1460
|
+
}
|
|
1439
1461
|
/**
|
|
1440
1462
|
* Returns whether the offset is known to be fixed for the whole year.
|
|
1441
1463
|
* @abstract
|
|
@@ -1544,20 +1566,20 @@ var SystemZone = /*#__PURE__*/function (_Zone) {
|
|
|
1544
1566
|
return SystemZone;
|
|
1545
1567
|
}(Zone);
|
|
1546
1568
|
|
|
1547
|
-
var matchingRegex = RegExp("^" + ianaRegex.source + "$");
|
|
1548
1569
|
var dtfCache = {};
|
|
1549
1570
|
|
|
1550
1571
|
function makeDTF(zone) {
|
|
1551
1572
|
if (!dtfCache[zone]) {
|
|
1552
1573
|
dtfCache[zone] = new Intl.DateTimeFormat("en-US", {
|
|
1553
|
-
|
|
1574
|
+
hour12: false,
|
|
1554
1575
|
timeZone: zone,
|
|
1555
1576
|
year: "numeric",
|
|
1556
1577
|
month: "2-digit",
|
|
1557
1578
|
day: "2-digit",
|
|
1558
1579
|
hour: "2-digit",
|
|
1559
1580
|
minute: "2-digit",
|
|
1560
|
-
second: "2-digit"
|
|
1581
|
+
second: "2-digit",
|
|
1582
|
+
era: "short"
|
|
1561
1583
|
});
|
|
1562
1584
|
}
|
|
1563
1585
|
|
|
@@ -1568,34 +1590,38 @@ var typeToPos = {
|
|
|
1568
1590
|
year: 0,
|
|
1569
1591
|
month: 1,
|
|
1570
1592
|
day: 2,
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1593
|
+
era: 3,
|
|
1594
|
+
hour: 4,
|
|
1595
|
+
minute: 5,
|
|
1596
|
+
second: 6
|
|
1574
1597
|
};
|
|
1575
1598
|
|
|
1576
1599
|
function hackyOffset(dtf, date) {
|
|
1577
1600
|
var formatted = dtf.format(date).replace(/\u200E/g, ""),
|
|
1578
|
-
parsed = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(formatted),
|
|
1601
|
+
parsed = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted),
|
|
1579
1602
|
fMonth = parsed[1],
|
|
1580
1603
|
fDay = parsed[2],
|
|
1581
1604
|
fYear = parsed[3],
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1605
|
+
fadOrBc = parsed[4],
|
|
1606
|
+
fHour = parsed[5],
|
|
1607
|
+
fMinute = parsed[6],
|
|
1608
|
+
fSecond = parsed[7];
|
|
1609
|
+
return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];
|
|
1586
1610
|
}
|
|
1587
1611
|
|
|
1588
1612
|
function partsOffset(dtf, date) {
|
|
1589
|
-
var formatted = dtf.formatToParts(date)
|
|
1590
|
-
|
|
1613
|
+
var formatted = dtf.formatToParts(date);
|
|
1614
|
+
var filled = [];
|
|
1591
1615
|
|
|
1592
1616
|
for (var i = 0; i < formatted.length; i++) {
|
|
1593
1617
|
var _formatted$i = formatted[i],
|
|
1594
1618
|
type = _formatted$i.type,
|
|
1595
|
-
value = _formatted$i.value
|
|
1596
|
-
|
|
1619
|
+
value = _formatted$i.value;
|
|
1620
|
+
var pos = typeToPos[type];
|
|
1597
1621
|
|
|
1598
|
-
if (
|
|
1622
|
+
if (type === "era") {
|
|
1623
|
+
filled[pos] = value;
|
|
1624
|
+
} else if (!isUndefined(pos)) {
|
|
1599
1625
|
filled[pos] = parseInt(value, 10);
|
|
1600
1626
|
}
|
|
1601
1627
|
}
|
|
@@ -1637,14 +1663,14 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
1637
1663
|
* 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.
|
|
1638
1664
|
* @param {string} s - The string to check validity on
|
|
1639
1665
|
* @example IANAZone.isValidSpecifier("America/New_York") //=> true
|
|
1640
|
-
* @example IANAZone.isValidSpecifier("Fantasia/Castle") //=> true
|
|
1641
1666
|
* @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false
|
|
1667
|
+
* @deprecated This method returns false for some valid IANA names. Use isValidZone instead.
|
|
1642
1668
|
* @return {boolean}
|
|
1643
1669
|
*/
|
|
1644
1670
|
;
|
|
1645
1671
|
|
|
1646
1672
|
IANAZone.isValidSpecifier = function isValidSpecifier(s) {
|
|
1647
|
-
return
|
|
1673
|
+
return this.isValidZone(s);
|
|
1648
1674
|
}
|
|
1649
1675
|
/**
|
|
1650
1676
|
* Returns whether the provided string identifies a real zone
|
|
@@ -1657,6 +1683,10 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
1657
1683
|
;
|
|
1658
1684
|
|
|
1659
1685
|
IANAZone.isValidZone = function isValidZone(zone) {
|
|
1686
|
+
if (!zone) {
|
|
1687
|
+
return false;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1660
1690
|
try {
|
|
1661
1691
|
new Intl.DateTimeFormat("en-US", {
|
|
1662
1692
|
timeZone: zone
|
|
@@ -1665,21 +1695,6 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
1665
1695
|
} catch (e) {
|
|
1666
1696
|
return false;
|
|
1667
1697
|
}
|
|
1668
|
-
} // Etc/GMT+8 -> -480
|
|
1669
|
-
|
|
1670
|
-
/** @ignore */
|
|
1671
|
-
;
|
|
1672
|
-
|
|
1673
|
-
IANAZone.parseGMTOffset = function parseGMTOffset(specifier) {
|
|
1674
|
-
if (specifier) {
|
|
1675
|
-
var match = specifier.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);
|
|
1676
|
-
|
|
1677
|
-
if (match) {
|
|
1678
|
-
return -60 * parseInt(match[1]);
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
return null;
|
|
1683
1698
|
};
|
|
1684
1699
|
|
|
1685
1700
|
function IANAZone(name) {
|
|
@@ -1717,21 +1732,28 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
1717
1732
|
_proto.offset = function offset(ts) {
|
|
1718
1733
|
var date = new Date(ts);
|
|
1719
1734
|
if (isNaN(date)) return NaN;
|
|
1735
|
+
var dtf = makeDTF(this.name);
|
|
1720
1736
|
|
|
1721
|
-
var
|
|
1722
|
-
_ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date),
|
|
1737
|
+
var _ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date),
|
|
1723
1738
|
year = _ref2[0],
|
|
1724
1739
|
month = _ref2[1],
|
|
1725
1740
|
day = _ref2[2],
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1741
|
+
adOrBc = _ref2[3],
|
|
1742
|
+
hour = _ref2[4],
|
|
1743
|
+
minute = _ref2[5],
|
|
1744
|
+
second = _ref2[6];
|
|
1729
1745
|
|
|
1746
|
+
if (adOrBc === "BC") {
|
|
1747
|
+
year = -Math.abs(year) + 1;
|
|
1748
|
+
} // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
var adjustedHour = hour === 24 ? 0 : hour;
|
|
1730
1752
|
var asUTC = objToLocalTS({
|
|
1731
1753
|
year: year,
|
|
1732
1754
|
month: month,
|
|
1733
1755
|
day: day,
|
|
1734
|
-
hour:
|
|
1756
|
+
hour: adjustedHour,
|
|
1735
1757
|
minute: minute,
|
|
1736
1758
|
second: second,
|
|
1737
1759
|
millisecond: 0
|
|
@@ -1870,6 +1892,15 @@ var FixedOffsetZone = /*#__PURE__*/function (_Zone) {
|
|
|
1870
1892
|
get: function get() {
|
|
1871
1893
|
return this.fixed === 0 ? "UTC" : "UTC" + formatOffset(this.fixed, "narrow");
|
|
1872
1894
|
}
|
|
1895
|
+
}, {
|
|
1896
|
+
key: "ianaName",
|
|
1897
|
+
get: function get() {
|
|
1898
|
+
if (this.fixed === 0) {
|
|
1899
|
+
return "Etc/UTC";
|
|
1900
|
+
} else {
|
|
1901
|
+
return "Etc/GMT" + formatOffset(-this.fixed, "narrow");
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1873
1904
|
}, {
|
|
1874
1905
|
key: "isUniversal",
|
|
1875
1906
|
get: function get() {
|
|
@@ -1979,7 +2010,6 @@ var InvalidZone = /*#__PURE__*/function (_Zone) {
|
|
|
1979
2010
|
* @private
|
|
1980
2011
|
*/
|
|
1981
2012
|
function normalizeZone(input, defaultZone) {
|
|
1982
|
-
var offset;
|
|
1983
2013
|
|
|
1984
2014
|
if (isUndefined(input) || input === null) {
|
|
1985
2015
|
return defaultZone;
|
|
@@ -1987,10 +2017,7 @@ function normalizeZone(input, defaultZone) {
|
|
|
1987
2017
|
return input;
|
|
1988
2018
|
} else if (isString(input)) {
|
|
1989
2019
|
var lowered = input.toLowerCase();
|
|
1990
|
-
if (lowered === "local" || lowered === "system") return defaultZone;else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;else
|
|
1991
|
-
// handle Etc/GMT-4, which V8 chokes on
|
|
1992
|
-
return FixedOffsetZone.instance(offset);
|
|
1993
|
-
} else if (IANAZone.isValidSpecifier(lowered)) return IANAZone.create(input);else return FixedOffsetZone.parseSpecifier(lowered) || new InvalidZone(input);
|
|
2020
|
+
if (lowered === "local" || lowered === "system") return defaultZone;else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);
|
|
1994
2021
|
} else if (isNumber(input)) {
|
|
1995
2022
|
return FixedOffsetZone.instance(input);
|
|
1996
2023
|
} else if (typeof input === "object" && input.offset && typeof input.offset === "number") {
|
|
@@ -2145,7 +2172,27 @@ var Settings = /*#__PURE__*/function () {
|
|
|
2145
2172
|
return Settings;
|
|
2146
2173
|
}();
|
|
2147
2174
|
|
|
2148
|
-
var _excluded = ["base"]
|
|
2175
|
+
var _excluded = ["base"],
|
|
2176
|
+
_excluded2 = ["padTo", "floor"];
|
|
2177
|
+
|
|
2178
|
+
var intlLFCache = {};
|
|
2179
|
+
|
|
2180
|
+
function getCachedLF(locString, opts) {
|
|
2181
|
+
if (opts === void 0) {
|
|
2182
|
+
opts = {};
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
var key = JSON.stringify([locString, opts]);
|
|
2186
|
+
var dtf = intlLFCache[key];
|
|
2187
|
+
|
|
2188
|
+
if (!dtf) {
|
|
2189
|
+
dtf = new Intl.ListFormat(locString, opts);
|
|
2190
|
+
intlLFCache[key] = dtf;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
return dtf;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2149
2196
|
var intlDTCache = {};
|
|
2150
2197
|
|
|
2151
2198
|
function getCachedDTF(locString, opts) {
|
|
@@ -2210,7 +2257,7 @@ function systemLocale() {
|
|
|
2210
2257
|
if (sysLocaleCache) {
|
|
2211
2258
|
return sysLocaleCache;
|
|
2212
2259
|
} else {
|
|
2213
|
-
sysLocaleCache =
|
|
2260
|
+
sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;
|
|
2214
2261
|
return sysLocaleCache;
|
|
2215
2262
|
}
|
|
2216
2263
|
}
|
|
@@ -2312,11 +2359,13 @@ var PolyNumberFormatter = /*#__PURE__*/function () {
|
|
|
2312
2359
|
function PolyNumberFormatter(intl, forceSimple, opts) {
|
|
2313
2360
|
this.padTo = opts.padTo || 0;
|
|
2314
2361
|
this.floor = opts.floor || false;
|
|
2362
|
+
var otherOpts = _objectWithoutPropertiesLoose(opts, _excluded2);
|
|
2315
2363
|
|
|
2316
|
-
if (!forceSimple) {
|
|
2317
|
-
var intlOpts = {
|
|
2364
|
+
if (!forceSimple || Object.keys(otherOpts).length > 0) {
|
|
2365
|
+
var intlOpts = _extends({
|
|
2318
2366
|
useGrouping: false
|
|
2319
|
-
};
|
|
2367
|
+
}, opts);
|
|
2368
|
+
|
|
2320
2369
|
if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
|
|
2321
2370
|
this.inf = getCachedINF(intl, intlOpts);
|
|
2322
2371
|
}
|
|
@@ -2357,9 +2406,8 @@ var PolyDateFormatter = /*#__PURE__*/function () {
|
|
|
2357
2406
|
// - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata
|
|
2358
2407
|
var gmtOffset = -1 * (dt.offset / 60);
|
|
2359
2408
|
var offsetZ = gmtOffset >= 0 ? "Etc/GMT+" + gmtOffset : "Etc/GMT" + gmtOffset;
|
|
2360
|
-
var isOffsetZoneSupported = IANAZone.isValidZone(offsetZ);
|
|
2361
2409
|
|
|
2362
|
-
if (dt.offset !== 0 &&
|
|
2410
|
+
if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {
|
|
2363
2411
|
z = offsetZ;
|
|
2364
2412
|
this.dt = dt;
|
|
2365
2413
|
} else {
|
|
@@ -2461,11 +2509,11 @@ var Locale = /*#__PURE__*/function () {
|
|
|
2461
2509
|
defaultToEN = false;
|
|
2462
2510
|
}
|
|
2463
2511
|
|
|
2464
|
-
var specifiedLocale = locale || Settings.defaultLocale
|
|
2465
|
-
|
|
2466
|
-
localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale())
|
|
2467
|
-
|
|
2468
|
-
|
|
2512
|
+
var specifiedLocale = locale || Settings.defaultLocale; // the system locale is useful for human readable strings but annoying for parsing/formatting known formats
|
|
2513
|
+
|
|
2514
|
+
var localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale());
|
|
2515
|
+
var numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;
|
|
2516
|
+
var outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;
|
|
2469
2517
|
return new Locale(localeR, numberingSystemR, outputCalendarR, specifiedLocale);
|
|
2470
2518
|
};
|
|
2471
2519
|
|
|
@@ -2511,8 +2559,7 @@ var Locale = /*#__PURE__*/function () {
|
|
|
2511
2559
|
|
|
2512
2560
|
var _proto4 = Locale.prototype;
|
|
2513
2561
|
|
|
2514
|
-
_proto4.listingMode = function listingMode(
|
|
2515
|
-
|
|
2562
|
+
_proto4.listingMode = function listingMode() {
|
|
2516
2563
|
var isActuallyEn = this.isEnglish();
|
|
2517
2564
|
var hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
|
|
2518
2565
|
return isActuallyEn && hasNoWeirdness ? "en" : "intl";
|
|
@@ -2692,6 +2739,14 @@ var Locale = /*#__PURE__*/function () {
|
|
|
2692
2739
|
return new PolyRelFormatter(this.intl, this.isEnglish(), opts);
|
|
2693
2740
|
};
|
|
2694
2741
|
|
|
2742
|
+
_proto4.listFormatter = function listFormatter(opts) {
|
|
2743
|
+
if (opts === void 0) {
|
|
2744
|
+
opts = {};
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
return getCachedLF(this.intl, opts);
|
|
2748
|
+
};
|
|
2749
|
+
|
|
2695
2750
|
_proto4.isEnglish = function isEnglish() {
|
|
2696
2751
|
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us");
|
|
2697
2752
|
};
|
|
@@ -2751,7 +2806,7 @@ function combineExtractors() {
|
|
|
2751
2806
|
zone = _ex[1],
|
|
2752
2807
|
next = _ex[2];
|
|
2753
2808
|
|
|
2754
|
-
return [_extends({}, mergedVals, val),
|
|
2809
|
+
return [_extends({}, mergedVals, val), zone || mergedZone, next];
|
|
2755
2810
|
}, [{}, null, 1]).slice(0, 2);
|
|
2756
2811
|
};
|
|
2757
2812
|
}
|
|
@@ -2797,19 +2852,20 @@ function simpleParse() {
|
|
|
2797
2852
|
} // ISO and SQL parsing
|
|
2798
2853
|
|
|
2799
2854
|
|
|
2800
|
-
var offsetRegex = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2855
|
+
var offsetRegex = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/;
|
|
2856
|
+
var isoExtendedZone = "(?:" + offsetRegex.source + "?(?:\\[(" + ianaRegex.source + ")\\])?)?";
|
|
2857
|
+
var isoTimeBaseRegex = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/;
|
|
2858
|
+
var isoTimeRegex = RegExp("" + isoTimeBaseRegex.source + isoExtendedZone);
|
|
2859
|
+
var isoTimeExtensionRegex = RegExp("(?:T" + isoTimeRegex.source + ")?");
|
|
2860
|
+
var isoYmdRegex = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/;
|
|
2861
|
+
var isoWeekRegex = /(\d{4})-?W(\d\d)(?:-?(\d))?/;
|
|
2862
|
+
var isoOrdinalRegex = /(\d{4})-?(\d{3})/;
|
|
2863
|
+
var extractISOWeekData = simpleParse("weekYear", "weekNumber", "weekDay");
|
|
2864
|
+
var extractISOOrdinalData = simpleParse("year", "ordinal");
|
|
2865
|
+
var sqlYmdRegex = /(\d{4})-(\d\d)-(\d\d)/; // dumbed-down version of the ISO one
|
|
2866
|
+
|
|
2867
|
+
var sqlTimeRegex = RegExp(isoTimeBaseRegex.source + " ?(?:" + offsetRegex.source + "|(" + ianaRegex.source + "))?");
|
|
2868
|
+
var sqlTimeExtensionRegex = RegExp("(?: " + sqlTimeRegex.source + ")?");
|
|
2813
2869
|
|
|
2814
2870
|
function int(match, pos, fallback) {
|
|
2815
2871
|
var m = match[pos];
|
|
@@ -2850,7 +2906,7 @@ function extractIANAZone(match, cursor) {
|
|
|
2850
2906
|
|
|
2851
2907
|
var isoTimeOnly = RegExp("^T?" + isoTimeBaseRegex.source + "$"); // ISO duration parsing
|
|
2852
2908
|
|
|
2853
|
-
var isoDuration = /^-?P(?:(?:(-?\d{1,
|
|
2909
|
+
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)?)?)$/;
|
|
2854
2910
|
|
|
2855
2911
|
function extractISODuration(match) {
|
|
2856
2912
|
var s = match[0],
|
|
@@ -2874,13 +2930,13 @@ function extractISODuration(match) {
|
|
|
2874
2930
|
};
|
|
2875
2931
|
|
|
2876
2932
|
return [{
|
|
2877
|
-
years: maybeNegate(
|
|
2878
|
-
months: maybeNegate(
|
|
2879
|
-
weeks: maybeNegate(
|
|
2880
|
-
days: maybeNegate(
|
|
2881
|
-
hours: maybeNegate(
|
|
2882
|
-
minutes: maybeNegate(
|
|
2883
|
-
seconds: maybeNegate(
|
|
2933
|
+
years: maybeNegate(parseFloating(yearStr)),
|
|
2934
|
+
months: maybeNegate(parseFloating(monthStr)),
|
|
2935
|
+
weeks: maybeNegate(parseFloating(weekStr)),
|
|
2936
|
+
days: maybeNegate(parseFloating(dayStr)),
|
|
2937
|
+
hours: maybeNegate(parseFloating(hourStr)),
|
|
2938
|
+
minutes: maybeNegate(parseFloating(minuteStr)),
|
|
2939
|
+
seconds: maybeNegate(parseFloating(secondStr), secondStr === "-0"),
|
|
2884
2940
|
milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds)
|
|
2885
2941
|
}];
|
|
2886
2942
|
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
|
@@ -2948,12 +3004,12 @@ function extractRFC2822(match) {
|
|
|
2948
3004
|
|
|
2949
3005
|
function preprocessRFC2822(s) {
|
|
2950
3006
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
2951
|
-
return s.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
3007
|
+
return s.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
2952
3008
|
} // http date
|
|
2953
3009
|
|
|
2954
3010
|
|
|
2955
3011
|
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$/,
|
|
2956
|
-
rfc850 = /^(Monday|Tuesday|
|
|
3012
|
+
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$/,
|
|
2957
3013
|
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})$/;
|
|
2958
3014
|
|
|
2959
3015
|
function extractRFC1123Or850(match) {
|
|
@@ -2984,11 +3040,11 @@ var isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionR
|
|
|
2984
3040
|
var isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);
|
|
2985
3041
|
var isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);
|
|
2986
3042
|
var isoTimeCombinedRegex = combineRegexes(isoTimeRegex);
|
|
2987
|
-
var extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset);
|
|
2988
|
-
var extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset);
|
|
2989
|
-
var extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset);
|
|
2990
|
-
var extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset);
|
|
2991
|
-
|
|
3043
|
+
var extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone);
|
|
3044
|
+
var extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset, extractIANAZone);
|
|
3045
|
+
var extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset, extractIANAZone);
|
|
3046
|
+
var extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone);
|
|
3047
|
+
/*
|
|
2992
3048
|
* @private
|
|
2993
3049
|
*/
|
|
2994
3050
|
|
|
@@ -3010,10 +3066,9 @@ function parseISOTimeOnly(s) {
|
|
|
3010
3066
|
}
|
|
3011
3067
|
var sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);
|
|
3012
3068
|
var sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);
|
|
3013
|
-
var extractISOYmdTimeOffsetAndIANAZone = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone);
|
|
3014
3069
|
var extractISOTimeOffsetAndIANAZone = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone);
|
|
3015
3070
|
function parseSQL(s) {
|
|
3016
|
-
return parse(s, [sqlYmdWithTimeExtensionRegex,
|
|
3071
|
+
return parse(s, [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]);
|
|
3017
3072
|
}
|
|
3018
3073
|
|
|
3019
3074
|
var INVALID$2 = "Invalid Duration"; // unit conversion constants
|
|
@@ -3106,7 +3161,6 @@ var lowOrderMatrix = {
|
|
|
3106
3161
|
}
|
|
3107
3162
|
}, lowOrderMatrix); // units ordered by size
|
|
3108
3163
|
|
|
3109
|
-
|
|
3110
3164
|
var orderedUnits$1 = ["years", "quarters", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds"];
|
|
3111
3165
|
var reverseUnits = orderedUnits$1.slice(0).reverse(); // clone really means "create another instance just like this one, but with these changes"
|
|
3112
3166
|
|
|
@@ -3154,12 +3208,12 @@ function normalizeValues(matrix, vals) {
|
|
|
3154
3208
|
}, null);
|
|
3155
3209
|
}
|
|
3156
3210
|
/**
|
|
3157
|
-
* 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
|
|
3211
|
+
* 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.
|
|
3158
3212
|
*
|
|
3159
3213
|
* Here is a brief overview of commonly used methods and getters in Duration:
|
|
3160
3214
|
*
|
|
3161
|
-
* * **Creation** To create a Duration, use {@link Duration
|
|
3162
|
-
* * **Unit values** See the {@link Duration#years}, {@link Duration
|
|
3215
|
+
* * **Creation** To create a Duration, use {@link Duration#fromMillis}, {@link Duration#fromObject}, or {@link Duration#fromISO}.
|
|
3216
|
+
* * **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.
|
|
3163
3217
|
* * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.
|
|
3164
3218
|
* * **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}.
|
|
3165
3219
|
* * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}
|
|
@@ -3257,6 +3311,29 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3257
3311
|
conversionAccuracy: opts.conversionAccuracy
|
|
3258
3312
|
});
|
|
3259
3313
|
}
|
|
3314
|
+
/**
|
|
3315
|
+
* Create a Duration from DurationLike.
|
|
3316
|
+
*
|
|
3317
|
+
* @param {Object | number | Duration} durationLike
|
|
3318
|
+
* One of:
|
|
3319
|
+
* - object with keys like 'years' and 'hours'.
|
|
3320
|
+
* - number representing milliseconds
|
|
3321
|
+
* - Duration instance
|
|
3322
|
+
* @return {Duration}
|
|
3323
|
+
*/
|
|
3324
|
+
;
|
|
3325
|
+
|
|
3326
|
+
Duration.fromDurationLike = function fromDurationLike(durationLike) {
|
|
3327
|
+
if (isNumber(durationLike)) {
|
|
3328
|
+
return Duration.fromMillis(durationLike);
|
|
3329
|
+
} else if (Duration.isDuration(durationLike)) {
|
|
3330
|
+
return durationLike;
|
|
3331
|
+
} else if (typeof durationLike === "object") {
|
|
3332
|
+
return Duration.fromObject(durationLike);
|
|
3333
|
+
} else {
|
|
3334
|
+
throw new InvalidArgumentError("Unknown duration argument " + durationLike + " of type " + typeof durationLike);
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3260
3337
|
/**
|
|
3261
3338
|
* Create a Duration from an ISO 8601 duration string.
|
|
3262
3339
|
* @param {string} text - text to parse
|
|
@@ -3390,11 +3467,13 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3390
3467
|
* * `m` for minutes
|
|
3391
3468
|
* * `h` for hours
|
|
3392
3469
|
* * `d` for days
|
|
3470
|
+
* * `w` for weeks
|
|
3393
3471
|
* * `M` for months
|
|
3394
3472
|
* * `y` for years
|
|
3395
3473
|
* Notes:
|
|
3396
3474
|
* * Add padding by repeating the token, e.g. "yy" pads the years to two digits, "hhhh" pads the hours out to four digits
|
|
3397
|
-
* *
|
|
3475
|
+
* * Tokens can be escaped by wrapping with single quotes.
|
|
3476
|
+
* * 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.
|
|
3398
3477
|
* @param {string} fmt - the format string
|
|
3399
3478
|
* @param {Object} opts - options
|
|
3400
3479
|
* @param {boolean} [opts.floor=true] - floor numerical values
|
|
@@ -3415,6 +3494,49 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3415
3494
|
|
|
3416
3495
|
return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
|
|
3417
3496
|
}
|
|
3497
|
+
/**
|
|
3498
|
+
* Returns a string representation of a Duration with all units included.
|
|
3499
|
+
* To modify its behavior use the `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.
|
|
3500
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
3501
|
+
* @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`.
|
|
3502
|
+
* @example
|
|
3503
|
+
* ```js
|
|
3504
|
+
* var dur = Duration.fromObject({ days: 1, hours: 5, minutes: 6 })
|
|
3505
|
+
* dur.toHuman() //=> '1 day, 5 hours, 6 minutes'
|
|
3506
|
+
* dur.toHuman({ listStyle: "long" }) //=> '1 day, 5 hours, and 6 minutes'
|
|
3507
|
+
* dur.toHuman({ unitDisplay: "short" }) //=> '1 day, 5 hr, 6 min'
|
|
3508
|
+
* ```
|
|
3509
|
+
*/
|
|
3510
|
+
;
|
|
3511
|
+
|
|
3512
|
+
_proto.toHuman = function toHuman(opts) {
|
|
3513
|
+
var _this = this;
|
|
3514
|
+
|
|
3515
|
+
if (opts === void 0) {
|
|
3516
|
+
opts = {};
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
var l = orderedUnits$1.map(function (unit) {
|
|
3520
|
+
var val = _this.values[unit];
|
|
3521
|
+
|
|
3522
|
+
if (isUndefined(val)) {
|
|
3523
|
+
return null;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
return _this.loc.numberFormatter(_extends({
|
|
3527
|
+
style: "unit",
|
|
3528
|
+
unitDisplay: "long"
|
|
3529
|
+
}, opts, {
|
|
3530
|
+
unit: unit.slice(0, -1)
|
|
3531
|
+
})).format(val);
|
|
3532
|
+
}).filter(function (n) {
|
|
3533
|
+
return n;
|
|
3534
|
+
});
|
|
3535
|
+
return this.loc.listFormatter(_extends({
|
|
3536
|
+
type: "conjunction",
|
|
3537
|
+
style: opts.listStyle || "narrow"
|
|
3538
|
+
}, opts)).format(l);
|
|
3539
|
+
}
|
|
3418
3540
|
/**
|
|
3419
3541
|
* Returns a JavaScript object with this Duration's values.
|
|
3420
3542
|
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }
|
|
@@ -3551,7 +3673,7 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3551
3673
|
|
|
3552
3674
|
_proto.plus = function plus(duration) {
|
|
3553
3675
|
if (!this.isValid) return this;
|
|
3554
|
-
var dur =
|
|
3676
|
+
var dur = Duration.fromDurationLike(duration),
|
|
3555
3677
|
result = {};
|
|
3556
3678
|
|
|
3557
3679
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits$1), _step; !(_step = _iterator()).done;) {
|
|
@@ -3575,14 +3697,14 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3575
3697
|
|
|
3576
3698
|
_proto.minus = function minus(duration) {
|
|
3577
3699
|
if (!this.isValid) return this;
|
|
3578
|
-
var dur =
|
|
3700
|
+
var dur = Duration.fromDurationLike(duration);
|
|
3579
3701
|
return this.plus(dur.negate());
|
|
3580
3702
|
}
|
|
3581
3703
|
/**
|
|
3582
3704
|
* Scale this Duration by the specified amount. Return a newly-constructed Duration.
|
|
3583
3705
|
* @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.
|
|
3584
|
-
* @example Duration.fromObject({ hours: 1, minutes: 30 }).
|
|
3585
|
-
* @example Duration.fromObject({ hours: 1, minutes: 30 }).
|
|
3706
|
+
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }
|
|
3707
|
+
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === "hour" ? x * 2 : x) //=> { hours: 2, minutes: 30 }
|
|
3586
3708
|
* @return {Duration}
|
|
3587
3709
|
*/
|
|
3588
3710
|
;
|
|
@@ -3732,8 +3854,7 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3732
3854
|
|
|
3733
3855
|
var i = Math.trunc(own);
|
|
3734
3856
|
built[k] = i;
|
|
3735
|
-
accumulated[k] = own - i; //
|
|
3736
|
-
// plus anything further down the chain that should be rolled up in to this
|
|
3857
|
+
accumulated[k] = (own * 1000 - i * 1000) / 1000; // plus anything further down the chain that should be rolled up in to this
|
|
3737
3858
|
|
|
3738
3859
|
for (var down in vals) {
|
|
3739
3860
|
if (orderedUnits$1.indexOf(down) > orderedUnits$1.indexOf(k)) {
|
|
@@ -3771,7 +3892,7 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3771
3892
|
|
|
3772
3893
|
for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) {
|
|
3773
3894
|
var k = _Object$keys2[_i2];
|
|
3774
|
-
negated[k] = -this.values[k];
|
|
3895
|
+
negated[k] = this.values[k] === 0 ? 0 : -this.values[k];
|
|
3775
3896
|
}
|
|
3776
3897
|
|
|
3777
3898
|
return clone$1(this, {
|
|
@@ -3952,17 +4073,6 @@ var Duration = /*#__PURE__*/function () {
|
|
|
3952
4073
|
|
|
3953
4074
|
return Duration;
|
|
3954
4075
|
}();
|
|
3955
|
-
function friendlyDuration(durationish) {
|
|
3956
|
-
if (isNumber(durationish)) {
|
|
3957
|
-
return Duration.fromMillis(durationish);
|
|
3958
|
-
} else if (Duration.isDuration(durationish)) {
|
|
3959
|
-
return durationish;
|
|
3960
|
-
} else if (typeof durationish === "object") {
|
|
3961
|
-
return Duration.fromObject(durationish);
|
|
3962
|
-
} else {
|
|
3963
|
-
throw new InvalidArgumentError("Unknown duration argument " + durationish + " of type " + typeof durationish);
|
|
3964
|
-
}
|
|
3965
|
-
}
|
|
3966
4076
|
|
|
3967
4077
|
var INVALID$1 = "Invalid Interval"; // checks if the start is equal to or before the end
|
|
3968
4078
|
|
|
@@ -3982,7 +4092,7 @@ function validateStartEnd(start, end) {
|
|
|
3982
4092
|
*
|
|
3983
4093
|
* Here is a brief overview of the most commonly used methods and getters in Interval:
|
|
3984
4094
|
*
|
|
3985
|
-
* * **Creation** To create an Interval, use {@link Interval
|
|
4095
|
+
* * **Creation** To create an Interval, use {@link Interval#fromDateTimes}, {@link Interval#after}, {@link Interval#before}, or {@link Interval#fromISO}.
|
|
3986
4096
|
* * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.
|
|
3987
4097
|
* * **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}.
|
|
3988
4098
|
* * **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}.
|
|
@@ -4074,7 +4184,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4074
4184
|
;
|
|
4075
4185
|
|
|
4076
4186
|
Interval.after = function after(start, duration) {
|
|
4077
|
-
var dur =
|
|
4187
|
+
var dur = Duration.fromDurationLike(duration),
|
|
4078
4188
|
dt = friendlyDateTime(start);
|
|
4079
4189
|
return Interval.fromDateTimes(dt, dt.plus(dur));
|
|
4080
4190
|
}
|
|
@@ -4087,7 +4197,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4087
4197
|
;
|
|
4088
4198
|
|
|
4089
4199
|
Interval.before = function before(end, duration) {
|
|
4090
|
-
var dur =
|
|
4200
|
+
var dur = Duration.fromDurationLike(duration),
|
|
4091
4201
|
dt = friendlyDateTime(end);
|
|
4092
4202
|
return Interval.fromDateTimes(dt.minus(dur), dt);
|
|
4093
4203
|
}
|
|
@@ -4095,7 +4205,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4095
4205
|
* Create an Interval from an ISO 8601 string.
|
|
4096
4206
|
* Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.
|
|
4097
4207
|
* @param {string} text - the ISO string to parse
|
|
4098
|
-
* @param {Object} [opts] - options to pass {@link DateTime
|
|
4208
|
+
* @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}
|
|
4099
4209
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
|
4100
4210
|
* @return {Interval}
|
|
4101
4211
|
*/
|
|
@@ -4306,7 +4416,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4306
4416
|
;
|
|
4307
4417
|
|
|
4308
4418
|
_proto.splitBy = function splitBy(duration) {
|
|
4309
|
-
var dur =
|
|
4419
|
+
var dur = Duration.fromDurationLike(duration);
|
|
4310
4420
|
|
|
4311
4421
|
if (!this.isValid || !dur.isValid || dur.as("milliseconds") === 0) {
|
|
4312
4422
|
return [];
|
|
@@ -4566,7 +4676,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4566
4676
|
* Returns an ISO 8601-compliant string representation of time of this Interval.
|
|
4567
4677
|
* The date components are ignored.
|
|
4568
4678
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
|
4569
|
-
* @param {Object} opts - The same options as {@link DateTime
|
|
4679
|
+
* @param {Object} opts - The same options as {@link DateTime#toISO}
|
|
4570
4680
|
* @return {string}
|
|
4571
4681
|
*/
|
|
4572
4682
|
;
|
|
@@ -4577,7 +4687,7 @@ var Interval = /*#__PURE__*/function () {
|
|
|
4577
4687
|
}
|
|
4578
4688
|
/**
|
|
4579
4689
|
* Returns a string representation of this Interval formatted according to the specified format string.
|
|
4580
|
-
* @param {string} dateFormat - the format string. This string formats the start and end time. See {@link DateTime
|
|
4690
|
+
* @param {string} dateFormat - the format string. This string formats the start and end time. See {@link DateTime#toFormat} for details.
|
|
4581
4691
|
* @param {Object} opts - options
|
|
4582
4692
|
* @param {string} [opts.separator = ' – '] - a separator to place between the start and end representations
|
|
4583
4693
|
* @return {string}
|
|
@@ -4708,7 +4818,7 @@ var Info = /*#__PURE__*/function () {
|
|
|
4708
4818
|
;
|
|
4709
4819
|
|
|
4710
4820
|
Info.isValidIANAZone = function isValidIANAZone(zone) {
|
|
4711
|
-
return IANAZone.
|
|
4821
|
+
return IANAZone.isValidZone(zone);
|
|
4712
4822
|
}
|
|
4713
4823
|
/**
|
|
4714
4824
|
* Converts the input into a {@link Zone} instance.
|
|
@@ -4717,7 +4827,7 @@ var Info = /*#__PURE__*/function () {
|
|
|
4717
4827
|
* * If `input` is a string containing a valid time zone name, a Zone instance
|
|
4718
4828
|
* with that name is returned.
|
|
4719
4829
|
* * If `input` is a string that doesn't refer to a known time zone, a Zone
|
|
4720
|
-
* instance with {@link Zone
|
|
4830
|
+
* instance with {@link Zone#isValid} == false is returned.
|
|
4721
4831
|
* * If `input is a number, a Zone instance with the specified fixed offset
|
|
4722
4832
|
* in minutes is returned.
|
|
4723
4833
|
* * If `input` is `null` or `undefined`, the default zone is returned.
|
|
@@ -4899,13 +5009,10 @@ var Info = /*#__PURE__*/function () {
|
|
|
4899
5009
|
}
|
|
4900
5010
|
/**
|
|
4901
5011
|
* Return the set of available features in this environment.
|
|
4902
|
-
* Some features of Luxon are not available in all environments. For example, on older browsers,
|
|
5012
|
+
* 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.
|
|
4903
5013
|
* Keys:
|
|
4904
|
-
* * `zones`: whether this environment supports IANA timezones
|
|
4905
|
-
* * `intlTokens`: whether this environment supports internationalized token-based formatting/parsing
|
|
4906
|
-
* * `intl`: whether this environment supports general internationalization
|
|
4907
5014
|
* * `relative`: whether this environment supports relative time formatting
|
|
4908
|
-
* @example Info.features() //=> {
|
|
5015
|
+
* @example Info.features() //=> { relative: false }
|
|
4909
5016
|
* @return {Object}
|
|
4910
5017
|
*/
|
|
4911
5018
|
;
|
|
@@ -5110,7 +5217,7 @@ function intUnit(regex, post) {
|
|
|
5110
5217
|
}
|
|
5111
5218
|
|
|
5112
5219
|
var NBSP = String.fromCharCode(160);
|
|
5113
|
-
var spaceOrNBSP = "
|
|
5220
|
+
var spaceOrNBSP = "[ " + NBSP + "]";
|
|
5114
5221
|
var spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, "g");
|
|
5115
5222
|
|
|
5116
5223
|
function fixListRegex(s) {
|
|
@@ -5296,6 +5403,12 @@ function unitForToken(token, loc) {
|
|
|
5296
5403
|
|
|
5297
5404
|
case "u":
|
|
5298
5405
|
return simple(oneToNine);
|
|
5406
|
+
|
|
5407
|
+
case "uu":
|
|
5408
|
+
return simple(oneOrTwo);
|
|
5409
|
+
|
|
5410
|
+
case "uuu":
|
|
5411
|
+
return intUnit(one);
|
|
5299
5412
|
// meridiem
|
|
5300
5413
|
|
|
5301
5414
|
case "a":
|
|
@@ -5502,14 +5615,19 @@ function dateTimeFromMatches(matches) {
|
|
|
5502
5615
|
}
|
|
5503
5616
|
};
|
|
5504
5617
|
|
|
5505
|
-
var zone;
|
|
5618
|
+
var zone = null;
|
|
5619
|
+
var specificOffset;
|
|
5506
5620
|
|
|
5507
|
-
if (!isUndefined(matches.
|
|
5508
|
-
zone = new FixedOffsetZone(matches.Z);
|
|
5509
|
-
} else if (!isUndefined(matches.z)) {
|
|
5621
|
+
if (!isUndefined(matches.z)) {
|
|
5510
5622
|
zone = IANAZone.create(matches.z);
|
|
5511
|
-
}
|
|
5512
|
-
|
|
5623
|
+
}
|
|
5624
|
+
|
|
5625
|
+
if (!isUndefined(matches.Z)) {
|
|
5626
|
+
if (!zone) {
|
|
5627
|
+
zone = new FixedOffsetZone(matches.Z);
|
|
5628
|
+
}
|
|
5629
|
+
|
|
5630
|
+
specificOffset = matches.Z;
|
|
5513
5631
|
}
|
|
5514
5632
|
|
|
5515
5633
|
if (!isUndefined(matches.q)) {
|
|
@@ -5541,7 +5659,7 @@ function dateTimeFromMatches(matches) {
|
|
|
5541
5659
|
|
|
5542
5660
|
return r;
|
|
5543
5661
|
}, {});
|
|
5544
|
-
return [vals, zone];
|
|
5662
|
+
return [vals, zone, specificOffset];
|
|
5545
5663
|
}
|
|
5546
5664
|
|
|
5547
5665
|
var dummyDateTimeCache = null;
|
|
@@ -5613,9 +5731,10 @@ function explainFromTokens(locale, input, format) {
|
|
|
5613
5731
|
_match = match(input, regex, handlers),
|
|
5614
5732
|
rawMatches = _match[0],
|
|
5615
5733
|
matches = _match[1],
|
|
5616
|
-
_ref6 = matches ? dateTimeFromMatches(matches) : [null, null],
|
|
5734
|
+
_ref6 = matches ? dateTimeFromMatches(matches) : [null, null, undefined],
|
|
5617
5735
|
result = _ref6[0],
|
|
5618
|
-
zone = _ref6[1]
|
|
5736
|
+
zone = _ref6[1],
|
|
5737
|
+
specificOffset = _ref6[2];
|
|
5619
5738
|
|
|
5620
5739
|
if (hasOwnProperty(matches, "a") && hasOwnProperty(matches, "H")) {
|
|
5621
5740
|
throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");
|
|
@@ -5628,7 +5747,8 @@ function explainFromTokens(locale, input, format) {
|
|
|
5628
5747
|
rawMatches: rawMatches,
|
|
5629
5748
|
matches: matches,
|
|
5630
5749
|
result: result,
|
|
5631
|
-
zone: zone
|
|
5750
|
+
zone: zone,
|
|
5751
|
+
specificOffset: specificOffset
|
|
5632
5752
|
};
|
|
5633
5753
|
}
|
|
5634
5754
|
}
|
|
@@ -5636,9 +5756,10 @@ function parseFromTokens(locale, input, format) {
|
|
|
5636
5756
|
var _explainFromTokens = explainFromTokens(locale, input, format),
|
|
5637
5757
|
result = _explainFromTokens.result,
|
|
5638
5758
|
zone = _explainFromTokens.zone,
|
|
5759
|
+
specificOffset = _explainFromTokens.specificOffset,
|
|
5639
5760
|
invalidReason = _explainFromTokens.invalidReason;
|
|
5640
5761
|
|
|
5641
|
-
return [result, zone, invalidReason];
|
|
5762
|
+
return [result, zone, specificOffset, invalidReason];
|
|
5642
5763
|
}
|
|
5643
5764
|
|
|
5644
5765
|
var nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],
|
|
@@ -5649,7 +5770,13 @@ function unitOutOfRange(unit, value) {
|
|
|
5649
5770
|
}
|
|
5650
5771
|
|
|
5651
5772
|
function dayOfWeek(year, month, day) {
|
|
5652
|
-
var
|
|
5773
|
+
var d = new Date(Date.UTC(year, month - 1, day));
|
|
5774
|
+
|
|
5775
|
+
if (year < 100 && year >= 0) {
|
|
5776
|
+
d.setUTCFullYear(d.getUTCFullYear() - 1900);
|
|
5777
|
+
}
|
|
5778
|
+
|
|
5779
|
+
var js = d.getUTCDay();
|
|
5653
5780
|
return js === 0 ? 7 : js;
|
|
5654
5781
|
}
|
|
5655
5782
|
|
|
@@ -5926,7 +6053,7 @@ function adjustTime(inst, dur) {
|
|
|
5926
6053
|
// by handling the zone options
|
|
5927
6054
|
|
|
5928
6055
|
|
|
5929
|
-
function parseDataToDateTime(parsed, parsedZone, opts, format, text) {
|
|
6056
|
+
function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
|
|
5930
6057
|
var setZone = opts.setZone,
|
|
5931
6058
|
zone = opts.zone;
|
|
5932
6059
|
|
|
@@ -5934,8 +6061,7 @@ function parseDataToDateTime(parsed, parsedZone, opts, format, text) {
|
|
|
5934
6061
|
var interpretationZone = parsedZone || zone,
|
|
5935
6062
|
inst = DateTime.fromObject(parsed, _extends({}, opts, {
|
|
5936
6063
|
zone: interpretationZone,
|
|
5937
|
-
|
|
5938
|
-
setZone: undefined
|
|
6064
|
+
specificOffset: specificOffset
|
|
5939
6065
|
}));
|
|
5940
6066
|
return setZone ? inst : inst.setZone(zone);
|
|
5941
6067
|
} else {
|
|
@@ -5954,51 +6080,71 @@ function toTechFormat(dt, format, allowZ) {
|
|
|
5954
6080
|
allowZ: allowZ,
|
|
5955
6081
|
forceSimple: true
|
|
5956
6082
|
}).formatDateTimeFromString(dt, format) : null;
|
|
5957
|
-
}
|
|
5958
|
-
// and this commonizes their handling
|
|
6083
|
+
}
|
|
5959
6084
|
|
|
6085
|
+
function _toISODate(o, extended) {
|
|
6086
|
+
var longFormat = o.c.year > 9999 || o.c.year < 0;
|
|
6087
|
+
var c = "";
|
|
6088
|
+
if (longFormat && o.c.year >= 0) c += "+";
|
|
6089
|
+
c += padStart(o.c.year, longFormat ? 6 : 4);
|
|
6090
|
+
|
|
6091
|
+
if (extended) {
|
|
6092
|
+
c += "-";
|
|
6093
|
+
c += padStart(o.c.month);
|
|
6094
|
+
c += "-";
|
|
6095
|
+
c += padStart(o.c.day);
|
|
6096
|
+
} else {
|
|
6097
|
+
c += padStart(o.c.month);
|
|
6098
|
+
c += padStart(o.c.day);
|
|
6099
|
+
}
|
|
6100
|
+
|
|
6101
|
+
return c;
|
|
6102
|
+
}
|
|
5960
6103
|
|
|
5961
|
-
function
|
|
5962
|
-
var
|
|
5963
|
-
suppressSeconds = _ref$suppressSeconds === void 0 ? false : _ref$suppressSeconds,
|
|
5964
|
-
_ref$suppressMillisec = _ref.suppressMilliseconds,
|
|
5965
|
-
suppressMilliseconds = _ref$suppressMillisec === void 0 ? false : _ref$suppressMillisec,
|
|
5966
|
-
includeOffset = _ref.includeOffset,
|
|
5967
|
-
_ref$includePrefix = _ref.includePrefix,
|
|
5968
|
-
includePrefix = _ref$includePrefix === void 0 ? false : _ref$includePrefix,
|
|
5969
|
-
_ref$includeZone = _ref.includeZone,
|
|
5970
|
-
includeZone = _ref$includeZone === void 0 ? false : _ref$includeZone,
|
|
5971
|
-
_ref$spaceZone = _ref.spaceZone,
|
|
5972
|
-
spaceZone = _ref$spaceZone === void 0 ? false : _ref$spaceZone,
|
|
5973
|
-
_ref$format = _ref.format,
|
|
5974
|
-
format = _ref$format === void 0 ? "extended" : _ref$format;
|
|
5975
|
-
var fmt = format === "basic" ? "HHmm" : "HH:mm";
|
|
6104
|
+
function _toISOTime(o, extended, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone) {
|
|
6105
|
+
var c = padStart(o.c.hour);
|
|
5976
6106
|
|
|
5977
|
-
if (
|
|
5978
|
-
|
|
6107
|
+
if (extended) {
|
|
6108
|
+
c += ":";
|
|
6109
|
+
c += padStart(o.c.minute);
|
|
5979
6110
|
|
|
5980
|
-
if (
|
|
5981
|
-
|
|
6111
|
+
if (o.c.second !== 0 || !suppressSeconds) {
|
|
6112
|
+
c += ":";
|
|
5982
6113
|
}
|
|
6114
|
+
} else {
|
|
6115
|
+
c += padStart(o.c.minute);
|
|
5983
6116
|
}
|
|
5984
6117
|
|
|
5985
|
-
if (
|
|
5986
|
-
|
|
5987
|
-
}
|
|
6118
|
+
if (o.c.second !== 0 || !suppressSeconds) {
|
|
6119
|
+
c += padStart(o.c.second);
|
|
5988
6120
|
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
6121
|
+
if (o.c.millisecond !== 0 || !suppressMilliseconds) {
|
|
6122
|
+
c += ".";
|
|
6123
|
+
c += padStart(o.c.millisecond, 3);
|
|
6124
|
+
}
|
|
5993
6125
|
}
|
|
5994
6126
|
|
|
5995
|
-
|
|
6127
|
+
if (includeOffset) {
|
|
6128
|
+
if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {
|
|
6129
|
+
c += "Z";
|
|
6130
|
+
} else if (o.o < 0) {
|
|
6131
|
+
c += "-";
|
|
6132
|
+
c += padStart(Math.trunc(-o.o / 60));
|
|
6133
|
+
c += ":";
|
|
6134
|
+
c += padStart(Math.trunc(-o.o % 60));
|
|
6135
|
+
} else {
|
|
6136
|
+
c += "+";
|
|
6137
|
+
c += padStart(Math.trunc(o.o / 60));
|
|
6138
|
+
c += ":";
|
|
6139
|
+
c += padStart(Math.trunc(o.o % 60));
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
5996
6142
|
|
|
5997
|
-
if (
|
|
5998
|
-
|
|
6143
|
+
if (extendedZone) {
|
|
6144
|
+
c += "[" + o.zone.ianaName + "]";
|
|
5999
6145
|
}
|
|
6000
6146
|
|
|
6001
|
-
return
|
|
6147
|
+
return c;
|
|
6002
6148
|
} // defaults for unspecified units in the supported calendars
|
|
6003
6149
|
|
|
6004
6150
|
|
|
@@ -6062,9 +6208,6 @@ function normalizeUnit(unit) {
|
|
|
6062
6208
|
} // this is a dumbed down version of fromObject() that runs about 60% faster
|
|
6063
6209
|
// but doesn't do any validation, makes a bunch of assumptions about what units
|
|
6064
6210
|
// are present, and so on.
|
|
6065
|
-
// this is a dumbed down version of fromObject() that runs about 60% faster
|
|
6066
|
-
// but doesn't do any validation, makes a bunch of assumptions about what units
|
|
6067
|
-
// are present, and so on.
|
|
6068
6211
|
|
|
6069
6212
|
|
|
6070
6213
|
function quickDT(obj, opts) {
|
|
@@ -6162,13 +6305,13 @@ function lastOpts(argList) {
|
|
|
6162
6305
|
*
|
|
6163
6306
|
* Here is a brief overview of the most commonly used functionality it provides:
|
|
6164
6307
|
*
|
|
6165
|
-
* * **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}.
|
|
6166
|
-
* * **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},
|
|
6167
|
-
* {@link day}, {@link hour}, {@link minute}, {@link second}, {@link millisecond} accessors.
|
|
6168
|
-
* * **Week calendar**: For ISO week calendar attributes, see the {@link weekYear}, {@link weekNumber}, and {@link weekday} accessors.
|
|
6169
|
-
* * **Configuration** See the {@link locale} and {@link numberingSystem} accessors.
|
|
6170
|
-
* * **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}.
|
|
6171
|
-
* * **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}.
|
|
6308
|
+
* * **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}.
|
|
6309
|
+
* * **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},
|
|
6310
|
+
* {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.
|
|
6311
|
+
* * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.
|
|
6312
|
+
* * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.
|
|
6313
|
+
* * **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}.
|
|
6314
|
+
* * **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}.
|
|
6172
6315
|
*
|
|
6173
6316
|
* 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.
|
|
6174
6317
|
*/
|
|
@@ -6193,9 +6336,9 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6193
6336
|
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
|
6194
6337
|
|
|
6195
6338
|
if (unchanged) {
|
|
6196
|
-
var
|
|
6197
|
-
c =
|
|
6198
|
-
o =
|
|
6339
|
+
var _ref = [config.old.c, config.old.o];
|
|
6340
|
+
c = _ref[0];
|
|
6341
|
+
o = _ref[1];
|
|
6199
6342
|
} else {
|
|
6200
6343
|
var ot = zone.offset(this.ts);
|
|
6201
6344
|
c = tsToObj(this.ts, ot);
|
|
@@ -6267,7 +6410,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6267
6410
|
* @example DateTime.local({ zone: "America/New_York" }) //~> now, in US east coast time
|
|
6268
6411
|
* @example DateTime.local(2017) //~> 2017-01-01T00:00:00
|
|
6269
6412
|
* @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00
|
|
6270
|
-
* @example DateTime.local(2017, 3, 12, { locale: "fr")
|
|
6413
|
+
* @example DateTime.local(2017, 3, 12, { locale: "fr" }) //~> 2017-03-12T00:00:00, with a French locale
|
|
6271
6414
|
* @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00
|
|
6272
6415
|
* @example DateTime.local(2017, 3, 12, 5, { zone: "utc" }) //~> 2017-03-12T05:00:00, in UTC
|
|
6273
6416
|
* @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00
|
|
@@ -6312,15 +6455,15 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6312
6455
|
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
|
6313
6456
|
* @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance
|
|
6314
6457
|
* @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance
|
|
6315
|
-
* @example DateTime.utc()
|
|
6316
|
-
* @example DateTime.utc(2017)
|
|
6317
|
-
* @example DateTime.utc(2017, 3)
|
|
6318
|
-
* @example DateTime.utc(2017, 3, 12)
|
|
6319
|
-
* @example DateTime.utc(2017, 3, 12, 5)
|
|
6320
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45)
|
|
6321
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }
|
|
6322
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45, 10)
|
|
6323
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr") //~> 2017-03-12T05:45:10.765Z with a French locale
|
|
6458
|
+
* @example DateTime.utc() //~> now
|
|
6459
|
+
* @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z
|
|
6460
|
+
* @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z
|
|
6461
|
+
* @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z
|
|
6462
|
+
* @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z
|
|
6463
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z
|
|
6464
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }) //~> 2017-03-12T05:45:00Z with a French locale
|
|
6465
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z
|
|
6466
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr" }) //~> 2017-03-12T05:45:10.765Z with a French locale
|
|
6324
6467
|
* @return {DateTime}
|
|
6325
6468
|
*/
|
|
6326
6469
|
;
|
|
@@ -6461,7 +6604,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6461
6604
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06
|
|
6462
6605
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),
|
|
6463
6606
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })
|
|
6464
|
-
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, {
|
|
6607
|
+
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })
|
|
6465
6608
|
* @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'
|
|
6466
6609
|
* @return {DateTime}
|
|
6467
6610
|
*/
|
|
@@ -6480,7 +6623,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6480
6623
|
}
|
|
6481
6624
|
|
|
6482
6625
|
var tsNow = Settings.now(),
|
|
6483
|
-
offsetProvis = zoneToUse.offset(tsNow),
|
|
6626
|
+
offsetProvis = !isUndefined(opts.specificOffset) ? opts.specificOffset : zoneToUse.offset(tsNow),
|
|
6484
6627
|
normalized = normalizeObject(obj, normalizeUnit),
|
|
6485
6628
|
containsOrdinal = !isUndefined(normalized.ordinal),
|
|
6486
6629
|
containsGregorYear = !isUndefined(normalized.year),
|
|
@@ -6649,7 +6792,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6649
6792
|
}
|
|
6650
6793
|
/**
|
|
6651
6794
|
* Create a DateTime from an input string and format string.
|
|
6652
|
-
* 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).
|
|
6795
|
+
* 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).
|
|
6653
6796
|
* @param {string} text - the string to parse
|
|
6654
6797
|
* @param {string} fmt - the format the string is expected to be in (see the link below for the formats)
|
|
6655
6798
|
* @param {Object} opts - options to affect the creation
|
|
@@ -6684,12 +6827,13 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6684
6827
|
_parseFromTokens = parseFromTokens(localeToUse, text, fmt),
|
|
6685
6828
|
vals = _parseFromTokens[0],
|
|
6686
6829
|
parsedZone = _parseFromTokens[1],
|
|
6687
|
-
|
|
6830
|
+
specificOffset = _parseFromTokens[2],
|
|
6831
|
+
invalid = _parseFromTokens[3];
|
|
6688
6832
|
|
|
6689
6833
|
if (invalid) {
|
|
6690
6834
|
return DateTime.invalid(invalid);
|
|
6691
6835
|
} else {
|
|
6692
|
-
return parseDataToDateTime(vals, parsedZone, opts, "format " + fmt, text);
|
|
6836
|
+
return parseDataToDateTime(vals, parsedZone, opts, "format " + fmt, text, specificOffset);
|
|
6693
6837
|
}
|
|
6694
6838
|
}
|
|
6695
6839
|
/**
|
|
@@ -6765,7 +6909,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6765
6909
|
}
|
|
6766
6910
|
}
|
|
6767
6911
|
/**
|
|
6768
|
-
* Check if an object is
|
|
6912
|
+
* Check if an object is an instance of DateTime. Works across context boundaries
|
|
6769
6913
|
* @param {object} o
|
|
6770
6914
|
* @return {boolean}
|
|
6771
6915
|
*/
|
|
@@ -6823,7 +6967,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6823
6967
|
/**
|
|
6824
6968
|
* "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime.
|
|
6825
6969
|
*
|
|
6826
|
-
* Equivalent to {@link setZone}('utc')
|
|
6970
|
+
* Equivalent to {@link DateTime#setZone}('utc')
|
|
6827
6971
|
* @param {number} [offset=0] - optionally, an offset from UTC in minutes
|
|
6828
6972
|
* @param {Object} [opts={}] - options to pass to `setZone()`
|
|
6829
6973
|
* @return {DateTime}
|
|
@@ -6855,8 +6999,8 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6855
6999
|
/**
|
|
6856
7000
|
* "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
|
|
6857
7001
|
*
|
|
6858
|
-
* 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.
|
|
6859
|
-
* @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.
|
|
7002
|
+
* 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.
|
|
7003
|
+
* @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.
|
|
6860
7004
|
* @param {Object} opts - options
|
|
6861
7005
|
* @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.
|
|
6862
7006
|
* @return {DateTime}
|
|
@@ -6864,11 +7008,11 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6864
7008
|
;
|
|
6865
7009
|
|
|
6866
7010
|
_proto.setZone = function setZone(zone, _temp) {
|
|
6867
|
-
var
|
|
6868
|
-
|
|
6869
|
-
keepLocalTime =
|
|
6870
|
-
|
|
6871
|
-
keepCalendarTime =
|
|
7011
|
+
var _ref2 = _temp === void 0 ? {} : _temp,
|
|
7012
|
+
_ref2$keepLocalTime = _ref2.keepLocalTime,
|
|
7013
|
+
keepLocalTime = _ref2$keepLocalTime === void 0 ? false : _ref2$keepLocalTime,
|
|
7014
|
+
_ref2$keepCalendarTim = _ref2.keepCalendarTime,
|
|
7015
|
+
keepCalendarTime = _ref2$keepCalendarTim === void 0 ? false : _ref2$keepCalendarTim;
|
|
6872
7016
|
|
|
6873
7017
|
zone = normalizeZone(zone, Settings.defaultZone);
|
|
6874
7018
|
|
|
@@ -6903,10 +7047,10 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6903
7047
|
;
|
|
6904
7048
|
|
|
6905
7049
|
_proto.reconfigure = function reconfigure(_temp2) {
|
|
6906
|
-
var
|
|
6907
|
-
locale =
|
|
6908
|
-
numberingSystem =
|
|
6909
|
-
outputCalendar =
|
|
7050
|
+
var _ref3 = _temp2 === void 0 ? {} : _temp2,
|
|
7051
|
+
locale = _ref3.locale,
|
|
7052
|
+
numberingSystem = _ref3.numberingSystem,
|
|
7053
|
+
outputCalendar = _ref3.outputCalendar;
|
|
6910
7054
|
|
|
6911
7055
|
var loc = this.loc.clone({
|
|
6912
7056
|
locale: locale,
|
|
@@ -6932,7 +7076,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
6932
7076
|
}
|
|
6933
7077
|
/**
|
|
6934
7078
|
* "Set" the values of specified units. Returns a newly-constructed DateTime.
|
|
6935
|
-
* You can only set units with this method; for "setting" metadata, see {@link reconfigure} and {@link setZone}.
|
|
7079
|
+
* You can only set units with this method; for "setting" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.
|
|
6936
7080
|
* @param {Object} values - a mapping of units to numbers
|
|
6937
7081
|
* @example dt.set({ year: 2017 })
|
|
6938
7082
|
* @example dt.set({ hour: 8, minute: 30 })
|
|
@@ -7001,20 +7145,20 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7001
7145
|
|
|
7002
7146
|
_proto.plus = function plus(duration) {
|
|
7003
7147
|
if (!this.isValid) return this;
|
|
7004
|
-
var dur =
|
|
7148
|
+
var dur = Duration.fromDurationLike(duration);
|
|
7005
7149
|
return clone(this, adjustTime(this, dur));
|
|
7006
7150
|
}
|
|
7007
7151
|
/**
|
|
7008
7152
|
* Subtract a period of time to this DateTime and return the resulting DateTime
|
|
7009
|
-
* See {@link plus}
|
|
7153
|
+
* See {@link DateTime#plus}
|
|
7010
7154
|
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
7011
7155
|
@return {DateTime}
|
|
7012
|
-
|
|
7156
|
+
*/
|
|
7013
7157
|
;
|
|
7014
7158
|
|
|
7015
7159
|
_proto.minus = function minus(duration) {
|
|
7016
7160
|
if (!this.isValid) return this;
|
|
7017
|
-
var dur =
|
|
7161
|
+
var dur = Duration.fromDurationLike(duration).negate();
|
|
7018
7162
|
return clone(this, adjustTime(this, dur));
|
|
7019
7163
|
}
|
|
7020
7164
|
/**
|
|
@@ -7094,7 +7238,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7094
7238
|
|
|
7095
7239
|
/**
|
|
7096
7240
|
* Returns a string representation of this DateTime formatted according to the specified format string.
|
|
7097
|
-
* **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).
|
|
7241
|
+
* **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).
|
|
7098
7242
|
* Defaults to en-US if no locale has been specified, regardless of the system's locale.
|
|
7099
7243
|
* @param {string} fmt - the format string
|
|
7100
7244
|
* @param {Object} opts - opts to override the configuration options on this DateTime
|
|
@@ -7173,8 +7317,9 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7173
7317
|
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
|
7174
7318
|
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
|
7175
7319
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
7320
|
+
* @param {boolean} [opts.extendedZone=true] - add the time zone format extension
|
|
7176
7321
|
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
|
7177
|
-
* @example DateTime.utc(
|
|
7322
|
+
* @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'
|
|
7178
7323
|
* @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
|
|
7179
7324
|
* @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'
|
|
7180
7325
|
* @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'
|
|
@@ -7182,16 +7327,30 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7182
7327
|
*/
|
|
7183
7328
|
;
|
|
7184
7329
|
|
|
7185
|
-
_proto.toISO = function toISO(
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7330
|
+
_proto.toISO = function toISO(_temp3) {
|
|
7331
|
+
var _ref4 = _temp3 === void 0 ? {} : _temp3,
|
|
7332
|
+
_ref4$format = _ref4.format,
|
|
7333
|
+
format = _ref4$format === void 0 ? "extended" : _ref4$format,
|
|
7334
|
+
_ref4$suppressSeconds = _ref4.suppressSeconds,
|
|
7335
|
+
suppressSeconds = _ref4$suppressSeconds === void 0 ? false : _ref4$suppressSeconds,
|
|
7336
|
+
_ref4$suppressMillise = _ref4.suppressMilliseconds,
|
|
7337
|
+
suppressMilliseconds = _ref4$suppressMillise === void 0 ? false : _ref4$suppressMillise,
|
|
7338
|
+
_ref4$includeOffset = _ref4.includeOffset,
|
|
7339
|
+
includeOffset = _ref4$includeOffset === void 0 ? true : _ref4$includeOffset,
|
|
7340
|
+
_ref4$extendedZone = _ref4.extendedZone,
|
|
7341
|
+
extendedZone = _ref4$extendedZone === void 0 ? false : _ref4$extendedZone;
|
|
7189
7342
|
|
|
7190
7343
|
if (!this.isValid) {
|
|
7191
7344
|
return null;
|
|
7192
7345
|
}
|
|
7193
7346
|
|
|
7194
|
-
|
|
7347
|
+
var ext = format === "extended";
|
|
7348
|
+
|
|
7349
|
+
var c = _toISODate(this, ext);
|
|
7350
|
+
|
|
7351
|
+
c += "T";
|
|
7352
|
+
c += _toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);
|
|
7353
|
+
return c;
|
|
7195
7354
|
}
|
|
7196
7355
|
/**
|
|
7197
7356
|
* Returns an ISO 8601-compliant string representation of this DateTime's date component
|
|
@@ -7203,18 +7362,16 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7203
7362
|
*/
|
|
7204
7363
|
;
|
|
7205
7364
|
|
|
7206
|
-
_proto.toISODate = function toISODate(
|
|
7207
|
-
var _ref5 =
|
|
7365
|
+
_proto.toISODate = function toISODate(_temp4) {
|
|
7366
|
+
var _ref5 = _temp4 === void 0 ? {} : _temp4,
|
|
7208
7367
|
_ref5$format = _ref5.format,
|
|
7209
7368
|
format = _ref5$format === void 0 ? "extended" : _ref5$format;
|
|
7210
7369
|
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
if (this.year > 9999) {
|
|
7214
|
-
fmt = "+" + fmt;
|
|
7370
|
+
if (!this.isValid) {
|
|
7371
|
+
return null;
|
|
7215
7372
|
}
|
|
7216
7373
|
|
|
7217
|
-
return
|
|
7374
|
+
return _toISODate(this, format === "extended");
|
|
7218
7375
|
}
|
|
7219
7376
|
/**
|
|
7220
7377
|
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
|
@@ -7232,6 +7389,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7232
7389
|
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
|
7233
7390
|
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
|
7234
7391
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
7392
|
+
* @param {boolean} [opts.extendedZone=true] - add the time zone format extension
|
|
7235
7393
|
* @param {boolean} [opts.includePrefix=false] - include the `T` prefix
|
|
7236
7394
|
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
|
7237
7395
|
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'
|
|
@@ -7242,8 +7400,8 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7242
7400
|
*/
|
|
7243
7401
|
;
|
|
7244
7402
|
|
|
7245
|
-
_proto.toISOTime = function toISOTime(
|
|
7246
|
-
var _ref6 =
|
|
7403
|
+
_proto.toISOTime = function toISOTime(_temp5) {
|
|
7404
|
+
var _ref6 = _temp5 === void 0 ? {} : _temp5,
|
|
7247
7405
|
_ref6$suppressMillise = _ref6.suppressMilliseconds,
|
|
7248
7406
|
suppressMilliseconds = _ref6$suppressMillise === void 0 ? false : _ref6$suppressMillise,
|
|
7249
7407
|
_ref6$suppressSeconds = _ref6.suppressSeconds,
|
|
@@ -7252,19 +7410,20 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7252
7410
|
includeOffset = _ref6$includeOffset === void 0 ? true : _ref6$includeOffset,
|
|
7253
7411
|
_ref6$includePrefix = _ref6.includePrefix,
|
|
7254
7412
|
includePrefix = _ref6$includePrefix === void 0 ? false : _ref6$includePrefix,
|
|
7413
|
+
_ref6$extendedZone = _ref6.extendedZone,
|
|
7414
|
+
extendedZone = _ref6$extendedZone === void 0 ? false : _ref6$extendedZone,
|
|
7255
7415
|
_ref6$format = _ref6.format,
|
|
7256
7416
|
format = _ref6$format === void 0 ? "extended" : _ref6$format;
|
|
7257
7417
|
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
});
|
|
7418
|
+
if (!this.isValid) {
|
|
7419
|
+
return null;
|
|
7420
|
+
}
|
|
7421
|
+
|
|
7422
|
+
var c = includePrefix ? "T" : "";
|
|
7423
|
+
return c + _toISOTime(this, format === "extended", suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);
|
|
7265
7424
|
}
|
|
7266
7425
|
/**
|
|
7267
|
-
* Returns an RFC 2822-compatible string representation of this DateTime
|
|
7426
|
+
* Returns an RFC 2822-compatible string representation of this DateTime
|
|
7268
7427
|
* @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'
|
|
7269
7428
|
* @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'
|
|
7270
7429
|
* @return {string}
|
|
@@ -7275,7 +7434,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7275
7434
|
return toTechFormat(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", false);
|
|
7276
7435
|
}
|
|
7277
7436
|
/**
|
|
7278
|
-
* Returns a string representation of this DateTime appropriate for use in HTTP headers.
|
|
7437
|
+
* Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.
|
|
7279
7438
|
* Specifically, the string conforms to RFC 1123.
|
|
7280
7439
|
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
|
|
7281
7440
|
* @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'
|
|
@@ -7295,13 +7454,18 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7295
7454
|
;
|
|
7296
7455
|
|
|
7297
7456
|
_proto.toSQLDate = function toSQLDate() {
|
|
7298
|
-
|
|
7457
|
+
if (!this.isValid) {
|
|
7458
|
+
return null;
|
|
7459
|
+
}
|
|
7460
|
+
|
|
7461
|
+
return _toISODate(this, true);
|
|
7299
7462
|
}
|
|
7300
7463
|
/**
|
|
7301
7464
|
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
|
7302
7465
|
* @param {Object} opts - options
|
|
7303
7466
|
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
|
7304
7467
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
7468
|
+
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
|
7305
7469
|
* @example DateTime.utc().toSQL() //=> '05:15:16.345'
|
|
7306
7470
|
* @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'
|
|
7307
7471
|
* @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'
|
|
@@ -7310,24 +7474,37 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7310
7474
|
*/
|
|
7311
7475
|
;
|
|
7312
7476
|
|
|
7313
|
-
_proto.toSQLTime = function toSQLTime(
|
|
7314
|
-
var _ref7 =
|
|
7477
|
+
_proto.toSQLTime = function toSQLTime(_temp6) {
|
|
7478
|
+
var _ref7 = _temp6 === void 0 ? {} : _temp6,
|
|
7315
7479
|
_ref7$includeOffset = _ref7.includeOffset,
|
|
7316
7480
|
includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset,
|
|
7317
7481
|
_ref7$includeZone = _ref7.includeZone,
|
|
7318
|
-
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone
|
|
7482
|
+
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone,
|
|
7483
|
+
_ref7$includeOffsetSp = _ref7.includeOffsetSpace,
|
|
7484
|
+
includeOffsetSpace = _ref7$includeOffsetSp === void 0 ? true : _ref7$includeOffsetSp;
|
|
7319
7485
|
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7486
|
+
var fmt = "HH:mm:ss.SSS";
|
|
7487
|
+
|
|
7488
|
+
if (includeZone || includeOffset) {
|
|
7489
|
+
if (includeOffsetSpace) {
|
|
7490
|
+
fmt += " ";
|
|
7491
|
+
}
|
|
7492
|
+
|
|
7493
|
+
if (includeZone) {
|
|
7494
|
+
fmt += "z";
|
|
7495
|
+
} else if (includeOffset) {
|
|
7496
|
+
fmt += "ZZ";
|
|
7497
|
+
}
|
|
7498
|
+
}
|
|
7499
|
+
|
|
7500
|
+
return toTechFormat(this, fmt, true);
|
|
7325
7501
|
}
|
|
7326
7502
|
/**
|
|
7327
7503
|
* Returns a string representation of this DateTime appropriate for use in SQL DateTime
|
|
7328
7504
|
* @param {Object} opts - options
|
|
7329
7505
|
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
|
7330
7506
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
7507
|
+
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
|
7331
7508
|
* @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'
|
|
7332
7509
|
* @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'
|
|
7333
7510
|
* @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'
|
|
@@ -7357,7 +7534,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7357
7534
|
return this.isValid ? this.toISO() : INVALID;
|
|
7358
7535
|
}
|
|
7359
7536
|
/**
|
|
7360
|
-
* Returns the epoch milliseconds of this DateTime. Alias of {@link toMillis}
|
|
7537
|
+
* Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}
|
|
7361
7538
|
* @return {number}
|
|
7362
7539
|
*/
|
|
7363
7540
|
;
|
|
@@ -7383,6 +7560,15 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7383
7560
|
_proto.toSeconds = function toSeconds() {
|
|
7384
7561
|
return this.isValid ? this.ts / 1000 : NaN;
|
|
7385
7562
|
}
|
|
7563
|
+
/**
|
|
7564
|
+
* Returns the epoch seconds (as a whole number) of this DateTime.
|
|
7565
|
+
* @return {number}
|
|
7566
|
+
*/
|
|
7567
|
+
;
|
|
7568
|
+
|
|
7569
|
+
_proto.toUnixInteger = function toUnixInteger() {
|
|
7570
|
+
return this.isValid ? Math.floor(this.ts / 1000) : NaN;
|
|
7571
|
+
}
|
|
7386
7572
|
/**
|
|
7387
7573
|
* Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.
|
|
7388
7574
|
* @return {string}
|
|
@@ -7482,7 +7668,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7482
7668
|
}
|
|
7483
7669
|
/**
|
|
7484
7670
|
* Return the difference between this DateTime and right now.
|
|
7485
|
-
* See {@link diff}
|
|
7671
|
+
* See {@link DateTime#diff}
|
|
7486
7672
|
* @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration
|
|
7487
7673
|
* @param {Object} opts - options that affect the creation of the Duration
|
|
7488
7674
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
@@ -7514,7 +7700,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7514
7700
|
/**
|
|
7515
7701
|
* Return whether this DateTime is in the same unit of time as another DateTime.
|
|
7516
7702
|
* Higher-order units must also be identical for this function to return `true`.
|
|
7517
|
-
* 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.
|
|
7703
|
+
* 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.
|
|
7518
7704
|
* @param {DateTime} otherDateTime - the other DateTime
|
|
7519
7705
|
* @param {string} unit - the unit of time to check sameness on
|
|
7520
7706
|
* @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day
|
|
@@ -7525,10 +7711,10 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7525
7711
|
_proto.hasSame = function hasSame(otherDateTime, unit) {
|
|
7526
7712
|
if (!this.isValid) return false;
|
|
7527
7713
|
var inputMs = otherDateTime.valueOf();
|
|
7528
|
-
var
|
|
7714
|
+
var adjustedToZone = this.setZone(otherDateTime.zone, {
|
|
7529
7715
|
keepLocalTime: true
|
|
7530
7716
|
});
|
|
7531
|
-
return
|
|
7717
|
+
return adjustedToZone.startOf(unit) <= inputMs && inputMs <= adjustedToZone.endOf(unit);
|
|
7532
7718
|
}
|
|
7533
7719
|
/**
|
|
7534
7720
|
* Equality check
|
|
@@ -7696,7 +7882,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
7696
7882
|
} // FORMAT PRESETS
|
|
7697
7883
|
|
|
7698
7884
|
/**
|
|
7699
|
-
* {@link toLocaleString} format like 10/14/1983
|
|
7885
|
+
* {@link DateTime#toLocaleString} format like 10/14/1983
|
|
7700
7886
|
* @type {Object}
|
|
7701
7887
|
*/
|
|
7702
7888
|
;
|
|
@@ -8041,7 +8227,8 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8041
8227
|
return false;
|
|
8042
8228
|
} else {
|
|
8043
8229
|
return this.offset > this.set({
|
|
8044
|
-
month: 1
|
|
8230
|
+
month: 1,
|
|
8231
|
+
day: 1
|
|
8045
8232
|
}).offset || this.offset > this.set({
|
|
8046
8233
|
month: 5
|
|
8047
8234
|
}).offset;
|
|
@@ -8102,7 +8289,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8102
8289
|
return DATE_SHORT;
|
|
8103
8290
|
}
|
|
8104
8291
|
/**
|
|
8105
|
-
* {@link toLocaleString} format like 'Oct 14, 1983'
|
|
8292
|
+
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
|
|
8106
8293
|
* @type {Object}
|
|
8107
8294
|
*/
|
|
8108
8295
|
|
|
@@ -8112,7 +8299,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8112
8299
|
return DATE_MED;
|
|
8113
8300
|
}
|
|
8114
8301
|
/**
|
|
8115
|
-
* {@link toLocaleString} format like 'Fri, Oct 14, 1983'
|
|
8302
|
+
* {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'
|
|
8116
8303
|
* @type {Object}
|
|
8117
8304
|
*/
|
|
8118
8305
|
|
|
@@ -8122,7 +8309,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8122
8309
|
return DATE_MED_WITH_WEEKDAY;
|
|
8123
8310
|
}
|
|
8124
8311
|
/**
|
|
8125
|
-
* {@link toLocaleString} format like 'October 14, 1983'
|
|
8312
|
+
* {@link DateTime#toLocaleString} format like 'October 14, 1983'
|
|
8126
8313
|
* @type {Object}
|
|
8127
8314
|
*/
|
|
8128
8315
|
|
|
@@ -8132,7 +8319,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8132
8319
|
return DATE_FULL;
|
|
8133
8320
|
}
|
|
8134
8321
|
/**
|
|
8135
|
-
* {@link toLocaleString} format like 'Tuesday, October 14, 1983'
|
|
8322
|
+
* {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'
|
|
8136
8323
|
* @type {Object}
|
|
8137
8324
|
*/
|
|
8138
8325
|
|
|
@@ -8142,7 +8329,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8142
8329
|
return DATE_HUGE;
|
|
8143
8330
|
}
|
|
8144
8331
|
/**
|
|
8145
|
-
* {@link toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
|
|
8332
|
+
* {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
|
|
8146
8333
|
* @type {Object}
|
|
8147
8334
|
*/
|
|
8148
8335
|
|
|
@@ -8152,7 +8339,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8152
8339
|
return TIME_SIMPLE;
|
|
8153
8340
|
}
|
|
8154
8341
|
/**
|
|
8155
|
-
* {@link toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
|
8342
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
|
8156
8343
|
* @type {Object}
|
|
8157
8344
|
*/
|
|
8158
8345
|
|
|
@@ -8162,7 +8349,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8162
8349
|
return TIME_WITH_SECONDS;
|
|
8163
8350
|
}
|
|
8164
8351
|
/**
|
|
8165
|
-
* {@link toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
|
8352
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
|
8166
8353
|
* @type {Object}
|
|
8167
8354
|
*/
|
|
8168
8355
|
|
|
@@ -8172,7 +8359,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8172
8359
|
return TIME_WITH_SHORT_OFFSET;
|
|
8173
8360
|
}
|
|
8174
8361
|
/**
|
|
8175
|
-
* {@link toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8362
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8176
8363
|
* @type {Object}
|
|
8177
8364
|
*/
|
|
8178
8365
|
|
|
@@ -8182,7 +8369,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8182
8369
|
return TIME_WITH_LONG_OFFSET;
|
|
8183
8370
|
}
|
|
8184
8371
|
/**
|
|
8185
|
-
* {@link toLocaleString} format like '09:30', always 24-hour.
|
|
8372
|
+
* {@link DateTime#toLocaleString} format like '09:30', always 24-hour.
|
|
8186
8373
|
* @type {Object}
|
|
8187
8374
|
*/
|
|
8188
8375
|
|
|
@@ -8192,7 +8379,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8192
8379
|
return TIME_24_SIMPLE;
|
|
8193
8380
|
}
|
|
8194
8381
|
/**
|
|
8195
|
-
* {@link toLocaleString} format like '09:30:23', always 24-hour.
|
|
8382
|
+
* {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.
|
|
8196
8383
|
* @type {Object}
|
|
8197
8384
|
*/
|
|
8198
8385
|
|
|
@@ -8202,7 +8389,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8202
8389
|
return TIME_24_WITH_SECONDS;
|
|
8203
8390
|
}
|
|
8204
8391
|
/**
|
|
8205
|
-
* {@link toLocaleString} format like '09:30:23 EDT', always 24-hour.
|
|
8392
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.
|
|
8206
8393
|
* @type {Object}
|
|
8207
8394
|
*/
|
|
8208
8395
|
|
|
@@ -8212,7 +8399,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8212
8399
|
return TIME_24_WITH_SHORT_OFFSET;
|
|
8213
8400
|
}
|
|
8214
8401
|
/**
|
|
8215
|
-
* {@link toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
|
8402
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
|
8216
8403
|
* @type {Object}
|
|
8217
8404
|
*/
|
|
8218
8405
|
|
|
@@ -8222,7 +8409,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8222
8409
|
return TIME_24_WITH_LONG_OFFSET;
|
|
8223
8410
|
}
|
|
8224
8411
|
/**
|
|
8225
|
-
* {@link toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8412
|
+
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8226
8413
|
* @type {Object}
|
|
8227
8414
|
*/
|
|
8228
8415
|
|
|
@@ -8232,7 +8419,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8232
8419
|
return DATETIME_SHORT;
|
|
8233
8420
|
}
|
|
8234
8421
|
/**
|
|
8235
|
-
* {@link toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
8422
|
+
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
8236
8423
|
* @type {Object}
|
|
8237
8424
|
*/
|
|
8238
8425
|
|
|
@@ -8242,7 +8429,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8242
8429
|
return DATETIME_SHORT_WITH_SECONDS;
|
|
8243
8430
|
}
|
|
8244
8431
|
/**
|
|
8245
|
-
* {@link toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8432
|
+
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8246
8433
|
* @type {Object}
|
|
8247
8434
|
*/
|
|
8248
8435
|
|
|
@@ -8252,7 +8439,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8252
8439
|
return DATETIME_MED;
|
|
8253
8440
|
}
|
|
8254
8441
|
/**
|
|
8255
|
-
* {@link toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
8442
|
+
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
8256
8443
|
* @type {Object}
|
|
8257
8444
|
*/
|
|
8258
8445
|
|
|
@@ -8262,7 +8449,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8262
8449
|
return DATETIME_MED_WITH_SECONDS;
|
|
8263
8450
|
}
|
|
8264
8451
|
/**
|
|
8265
|
-
* {@link toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8452
|
+
* {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
8266
8453
|
* @type {Object}
|
|
8267
8454
|
*/
|
|
8268
8455
|
|
|
@@ -8272,7 +8459,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8272
8459
|
return DATETIME_MED_WITH_WEEKDAY;
|
|
8273
8460
|
}
|
|
8274
8461
|
/**
|
|
8275
|
-
* {@link toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
|
8462
|
+
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
|
8276
8463
|
* @type {Object}
|
|
8277
8464
|
*/
|
|
8278
8465
|
|
|
@@ -8282,7 +8469,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8282
8469
|
return DATETIME_FULL;
|
|
8283
8470
|
}
|
|
8284
8471
|
/**
|
|
8285
|
-
* {@link toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
|
8472
|
+
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
|
8286
8473
|
* @type {Object}
|
|
8287
8474
|
*/
|
|
8288
8475
|
|
|
@@ -8292,7 +8479,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8292
8479
|
return DATETIME_FULL_WITH_SECONDS;
|
|
8293
8480
|
}
|
|
8294
8481
|
/**
|
|
8295
|
-
* {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8482
|
+
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8296
8483
|
* @type {Object}
|
|
8297
8484
|
*/
|
|
8298
8485
|
|
|
@@ -8302,7 +8489,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
8302
8489
|
return DATETIME_HUGE;
|
|
8303
8490
|
}
|
|
8304
8491
|
/**
|
|
8305
|
-
* {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8492
|
+
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
8306
8493
|
* @type {Object}
|
|
8307
8494
|
*/
|
|
8308
8495
|
|
|
@@ -8327,7 +8514,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
8327
8514
|
}
|
|
8328
8515
|
}
|
|
8329
8516
|
|
|
8330
|
-
var VERSION = "2.
|
|
8517
|
+
var VERSION = "2.5.2";
|
|
8331
8518
|
|
|
8332
8519
|
exports.DateTime = DateTime;
|
|
8333
8520
|
exports.Duration = Duration;
|
|
@@ -8340,7 +8527,7 @@ exports.Settings = Settings;
|
|
|
8340
8527
|
exports.SystemZone = SystemZone;
|
|
8341
8528
|
exports.VERSION = VERSION;
|
|
8342
8529
|
exports.Zone = Zone;
|
|
8343
|
-
|
|
8530
|
+
//# sourceMappingURL=luxon.js.map
|
|
8344
8531
|
});
|
|
8345
8532
|
|
|
8346
8533
|
export { luxon as l };
|