@foxy.io/elements 1.27.0-beta.4 → 1.27.0-beta.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/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +1 -1
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-api-browser.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +1 -1
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -1
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-api.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings-form.js +1 -0
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +2 -2
- package/dist/cdn/foxy-customer.js +4 -4
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +7 -7
- package/dist/cdn/foxy-email-template-card.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n-editor.js +2 -2
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +1 -1
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-nucleon-element.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-payments-api.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +1 -1
- package/dist/cdn/foxy-reports-table.js +1 -1
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-fd0a4026.js → shared-039de1fd.js} +1 -1
- package/dist/cdn/{shared-f1e743df.js → shared-03ccfd62.js} +1 -1
- package/dist/cdn/{shared-5ba87b6d.js → shared-0e5ea9cf.js} +1 -1
- package/dist/cdn/shared-0f49d9c3.js +1 -0
- package/dist/cdn/shared-11014aad.js +15 -0
- package/dist/cdn/{shared-febda61c.js → shared-1122a125.js} +1 -1
- package/dist/cdn/shared-18d109f5.js +1 -0
- package/dist/cdn/{shared-d9f65ee0.js → shared-1b0992cc.js} +5 -5
- package/dist/cdn/{shared-8b80db13.js → shared-1d257548.js} +1 -1
- package/dist/cdn/{shared-655e7c5f.js → shared-205721a3.js} +1 -1
- package/dist/cdn/{shared-f0269599.js → shared-20c4310b.js} +1 -1
- package/dist/cdn/{shared-c6707264.js → shared-20f65e73.js} +1 -1
- package/dist/cdn/shared-250e652f.js +1 -0
- package/dist/cdn/shared-27c7514d.js +1 -0
- package/dist/cdn/{shared-f94fa366.js → shared-2c70f0b6.js} +1 -1
- package/dist/cdn/{shared-150f5214.js → shared-3277bbf5.js} +1 -1
- package/dist/cdn/{shared-405a290e.js → shared-3cbcd9cb.js} +1 -1
- package/dist/cdn/{shared-f588b5c2.js → shared-4329ffa1.js} +1 -1
- package/dist/cdn/{shared-ae459232.js → shared-46454866.js} +1 -1
- package/dist/cdn/{shared-cfed658c.js → shared-4877ed05.js} +2 -2
- package/dist/cdn/{shared-bf695fe7.js → shared-48b76c74.js} +1 -1
- package/dist/cdn/shared-4fb9d21f.js +1 -0
- package/dist/cdn/{shared-30cbf0a6.js → shared-4fd17baf.js} +1 -1
- package/dist/cdn/{shared-d7892f27.js → shared-51ac503d.js} +1 -1
- package/dist/cdn/{shared-331a223c.js → shared-56addb06.js} +2 -2
- package/dist/cdn/{shared-e4543605.js → shared-59a5edee.js} +1 -1
- package/dist/cdn/{shared-a3c5a30c.js → shared-5c542149.js} +1 -1
- package/dist/cdn/{shared-44d207fb.js → shared-6350f7d9.js} +1 -1
- package/dist/cdn/{shared-f5d4dda0.js → shared-669decee.js} +1 -1
- package/dist/cdn/{shared-8ab2ba91.js → shared-6a998243.js} +1 -1
- package/dist/cdn/{shared-9f570db0.js → shared-6af480b8.js} +1 -1
- package/dist/cdn/{shared-5df32007.js → shared-6be0a096.js} +1 -1
- package/dist/cdn/{shared-4482e7b9.js → shared-6e977271.js} +1 -1
- package/dist/cdn/{shared-9de9f905.js → shared-6ef4ce19.js} +1 -1
- package/dist/cdn/{shared-6ed07856.js → shared-724e9a20.js} +1 -1
- package/dist/cdn/{shared-e40937c5.js → shared-7e201abd.js} +1 -1
- package/dist/cdn/shared-7ff496f6.js +1 -0
- package/dist/cdn/{shared-97d63da6.js → shared-82435697.js} +1 -1
- package/dist/cdn/{shared-db98729a.js → shared-845f8bf1.js} +1 -1
- package/dist/cdn/{shared-0cbb19f4.js → shared-872151f5.js} +1 -1
- package/dist/cdn/{shared-d244dd07.js → shared-8778d784.js} +1 -1
- package/dist/cdn/{shared-83fc5dca.js → shared-89b42eef.js} +1 -1
- package/dist/cdn/shared-8a04bea3.js +1 -0
- package/dist/cdn/{shared-597737ce.js → shared-8cd0f36d.js} +1 -1
- package/dist/cdn/{shared-a19e1dff.js → shared-8dd03329.js} +1 -1
- package/dist/cdn/{shared-030f561a.js → shared-92cdd504.js} +1 -1
- package/dist/cdn/{shared-37e1a834.js → shared-931db653.js} +1 -1
- package/dist/cdn/{shared-882e7191.js → shared-97793410.js} +1 -1
- package/dist/cdn/{shared-2376abfc.js → shared-9db9528b.js} +1 -1
- package/dist/cdn/{shared-44bb85d8.js → shared-a0cbfb2f.js} +1 -1
- package/dist/cdn/{shared-65283d36.js → shared-a73e7be4.js} +1 -1
- package/dist/cdn/{shared-12390d6f.js → shared-abf72e2f.js} +1 -1
- package/dist/cdn/{shared-9adc47da.js → shared-afefe2ac.js} +1 -1
- package/dist/cdn/shared-b33fd700.js +1 -0
- package/dist/cdn/{shared-12ad8924.js → shared-b51b9df7.js} +1 -1
- package/dist/cdn/{shared-293771ba.js → shared-b81aa01c.js} +1 -1
- package/dist/cdn/{shared-6e9adc43.js → shared-b914895b.js} +1 -1
- package/dist/cdn/{shared-cd8c3429.js → shared-bc95d87e.js} +1 -1
- package/dist/cdn/{shared-2062c274.js → shared-bf132324.js} +1 -1
- package/dist/cdn/shared-bfeff3bb.js +1 -0
- package/dist/cdn/shared-cce18690.js +1 -0
- package/dist/cdn/{shared-3f19b914.js → shared-d04dd602.js} +3 -3
- package/dist/cdn/{shared-2920b595.js → shared-d15c3e2d.js} +1 -1
- package/dist/cdn/{shared-99f0fee6.js → shared-d4322854.js} +1 -1
- package/dist/cdn/{shared-250a399a.js → shared-dccfe5e7.js} +1 -1
- package/dist/cdn/{shared-966feb65.js → shared-df58b901.js} +1 -1
- package/dist/cdn/shared-e07b24ca.js +1 -0
- package/dist/cdn/{shared-7ea4cb27.js → shared-e4e0dc11.js} +1 -1
- package/dist/cdn/{shared-a9f76cae.js → shared-e52280d9.js} +1 -1
- package/dist/cdn/{shared-26f4b6bf.js → shared-f03dacf5.js} +1 -1
- package/dist/cdn/{shared-7039733e.js → shared-f2a8fb36.js} +1 -1
- package/dist/cdn/{shared-a5ecd56e.js → shared-f7a5b12a.js} +1 -1
- package/dist/cdn/shared-fcaf15e5.js +1 -0
- package/dist/cdn/translations/customer-portal-settings-form/en.json +300 -0
- package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.js +18 -0
- package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.js.map +1 -1
- package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.d.ts +6 -2
- package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js +165 -27
- package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js.map +1 -1
- package/dist/elements/internal/InternalEditableListControl/types.d.ts +5 -0
- package/dist/elements/internal/InternalEditableListControl/types.js.map +1 -1
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.d.ts +1 -0
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js +4 -1
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js.map +1 -1
- package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.d.ts +4 -0
- package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.js +4 -1
- package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.js.map +1 -1
- package/dist/elements/internal/InternalPasswordControl/generateRandomPassword.d.ts +4 -1
- package/dist/elements/internal/InternalPasswordControl/generateRandomPassword.js +5 -3
- package/dist/elements/internal/InternalPasswordControl/generateRandomPassword.js.map +1 -1
- package/dist/elements/public/CollectionPage/CollectionPage.js +2 -0
- package/dist/elements/public/CollectionPage/CollectionPage.js.map +1 -1
- package/dist/elements/public/CollectionPage/types.d.ts +1 -0
- package/dist/elements/public/CollectionPage/types.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/CustomerPortalSettings.d.ts +1 -0
- package/dist/elements/public/CustomerPortalSettings/CustomerPortalSettings.js +1 -0
- package/dist/elements/public/CustomerPortalSettings/CustomerPortalSettings.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettingsForm/CustomerPortalSettingsForm.d.ts +36 -0
- package/dist/elements/public/CustomerPortalSettingsForm/CustomerPortalSettingsForm.js +287 -0
- package/dist/elements/public/CustomerPortalSettingsForm/CustomerPortalSettingsForm.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/index.d.ts +12 -0
- package/dist/elements/public/CustomerPortalSettingsForm/index.js +14 -0
- package/dist/elements/public/CustomerPortalSettingsForm/index.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard.d.ts +10 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard.js +40 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/index.d.ts +4 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/index.js +6 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/index.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/types.d.ts +10 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/types.js +2 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/types.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm.d.ts +17 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm.js +62 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/index.d.ts +5 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/index.js +7 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/index.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/types.d.ts +10 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/types.js +2 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/types.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard.d.ts +10 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard.js +49 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/index.d.ts +4 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/index.js +6 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/index.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/types.d.ts +12 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/types.js +2 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/types.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm.d.ts +29 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm.js +165 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/index.d.ts +8 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/index.js +10 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/index.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/types.d.ts +13 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/types.js +2 -0
- package/dist/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/types.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/isOrigin.d.ts +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/isOrigin.js +9 -0
- package/dist/elements/public/CustomerPortalSettingsForm/isOrigin.js.map +1 -0
- package/dist/elements/public/CustomerPortalSettingsForm/types.d.ts +3 -0
- package/dist/elements/public/CustomerPortalSettingsForm/types.js +2 -0
- package/dist/elements/public/CustomerPortalSettingsForm/types.js.map +1 -0
- package/dist/elements/public/NucleonElement/NucleonElement.d.ts +10 -0
- package/dist/elements/public/NucleonElement/NucleonElement.js +33 -9
- package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
- package/dist/elements/public/NucleonElement/internalServer.d.ts +2 -0
- package/dist/elements/public/NucleonElement/internalServer.js +95 -0
- package/dist/elements/public/NucleonElement/internalServer.js.map +1 -0
- package/dist/elements/public/index.d.ts +1 -0
- package/dist/elements/public/index.defined.d.ts +1 -0
- package/dist/elements/public/index.defined.js +1 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +1 -0
- package/dist/elements/public/index.js.map +1 -1
- package/dist/events/request.d.ts +1 -0
- package/dist/events/request.js +1 -0
- package/dist/events/request.js.map +1 -1
- package/dist/mixins/themeable.js +16 -0
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-0037b9e6.js +0 -1
- package/dist/cdn/shared-07e9d1fb.js +0 -1
- package/dist/cdn/shared-1024766f.js +0 -1
- package/dist/cdn/shared-1522d76f.js +0 -15
- package/dist/cdn/shared-33d8cbfb.js +0 -1
- package/dist/cdn/shared-3d251e6f.js +0 -1
- package/dist/cdn/shared-510a9e1b.js +0 -1
- package/dist/cdn/shared-5c0e3fee.js +0 -1
- package/dist/cdn/shared-6d41c9a9.js +0 -1
- package/dist/cdn/shared-a0435ec6.js +0 -1
- package/dist/cdn/shared-c0c7225c.js +0 -1
- package/dist/cdn/shared-d0374d0c.js +0 -1
- package/dist/cdn/shared-db306674.js +0 -1
- package/dist/cdn/shared-eb116b3e.js +0 -1
- package/dist/cdn/shared-ff18b2d1.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/index.ts"],"names":[],"mappings":"AAAA,oDAAiD;AACjD,gCAA6B;AAE7B,OAAO,EAAE,iFAAiF,EAAE,+FAA4F;AAExL,cAAc,CAAC,MAAM,CACnB,kGAAkG,EAClG,iFAAiF,CAClF,CAAC;AAEF,OAAO,EAAE,iFAAiF,EAAE,CAAC","sourcesContent":["import '../../../../internal/InternalCard/index';\nimport '../../../I18n/index';\n\nimport { InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard } from './InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard';\n\ncustomElements.define(\n 'foxy-internal-customer-portal-settings-form-subscriptions-allow-frequency-modification-rule-card',\n InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard\n);\n\nexport { InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard };\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Resource } from '@foxy.io/sdk/core';
|
|
2
|
+
import type { Rels } from '@foxy.io/sdk/backend';
|
|
3
|
+
interface FrequencyModificationRule {
|
|
4
|
+
links: {
|
|
5
|
+
self: FrequencyModificationRule;
|
|
6
|
+
};
|
|
7
|
+
props: Rels.CustomerPortalSettings['props']['subscriptions']['allowFrequencyModification'][number];
|
|
8
|
+
}
|
|
9
|
+
export declare type Data = Resource<FrequencyModificationRule>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleCard/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\ninterface FrequencyModificationRule {\n links: { self: FrequencyModificationRule };\n props: Rels.CustomerPortalSettings['props']['subscriptions']['allowFrequencyModification'][number];\n}\n\nexport type Data = Resource<FrequencyModificationRule>;\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TemplateResult } from 'lit-html';
|
|
2
|
+
import type { NucleonV8N } from '../../../NucleonElement/types';
|
|
3
|
+
import type { Data } from './types';
|
|
4
|
+
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
5
|
+
import { InternalForm } from '../../../../internal/InternalForm/InternalForm';
|
|
6
|
+
declare const Base: typeof InternalForm & import("lit-element").Constructor<import("../../../../../mixins/translatable").TranslatableMixinHost> & {
|
|
7
|
+
defaultNS: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm extends Base<Data> {
|
|
10
|
+
static get v8n(): NucleonV8N<Data>;
|
|
11
|
+
private readonly __valuesInputParams;
|
|
12
|
+
private readonly __valuesGetValue;
|
|
13
|
+
private readonly __valuesSetValue;
|
|
14
|
+
get hiddenSelector(): BooleanSelector;
|
|
15
|
+
renderBody(): TemplateResult;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { TranslatableMixin } from "../../../../../mixins/translatable.js";
|
|
2
|
+
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
3
|
+
import { parseFrequency } from "../../../../../utils/parse-frequency.js";
|
|
4
|
+
import { InternalForm } from "../../../../internal/InternalForm/InternalForm.js";
|
|
5
|
+
import { html } from 'lit-html';
|
|
6
|
+
const Base = TranslatableMixin(InternalForm);
|
|
7
|
+
export class InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm extends Base {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.__valuesInputParams = { type: 'number', step: '1', min: '1', max: '999' };
|
|
11
|
+
this.__valuesGetValue = () => {
|
|
12
|
+
var _a;
|
|
13
|
+
return (_a = this.form.values) === null || _a === void 0 ? void 0 : _a.map(value => {
|
|
14
|
+
if (value === '.5m')
|
|
15
|
+
return { value, label: this.t('values.twice_a_week') };
|
|
16
|
+
const { units, count } = parseFrequency(value);
|
|
17
|
+
return { value, label: this.t(`values.${units}`, { count }) };
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
this.__valuesSetValue = (newValue) => {
|
|
21
|
+
const newValues = newValue
|
|
22
|
+
.filter(({ value }) => parseFloat(value) <= 999)
|
|
23
|
+
.map(({ unit, value }) => (unit ? `${value}${unit}` : value))
|
|
24
|
+
.filter((v, i, a) => a.indexOf(v) === i);
|
|
25
|
+
this.edit({ values: newValues });
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get v8n() {
|
|
29
|
+
return [
|
|
30
|
+
({ jsonataQuery: v }) => !!v || 'jsonata-query:v8n_required',
|
|
31
|
+
({ jsonataQuery: v }) => !v || v.length <= 200 || 'jsonata-query:v8n_too_long',
|
|
32
|
+
({ values: v }) => (!!v && v.length > 0) || 'values:v8n_required',
|
|
33
|
+
({ values: v }) => !v || v.length <= 20 || 'values:v8n_too_long',
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
get hiddenSelector() {
|
|
37
|
+
return new BooleanSelector(`timestamps ${super.hiddenSelector}`.trim());
|
|
38
|
+
}
|
|
39
|
+
renderBody() {
|
|
40
|
+
return html `
|
|
41
|
+
<foxy-internal-source-control infer="jsonata-query" property="jsonataQuery">
|
|
42
|
+
</foxy-internal-source-control>
|
|
43
|
+
|
|
44
|
+
<foxy-internal-editable-list-control
|
|
45
|
+
infer="values"
|
|
46
|
+
.inputParams=${this.__valuesInputParams}
|
|
47
|
+
.getValue=${this.__valuesGetValue}
|
|
48
|
+
.setValue=${this.__valuesSetValue}
|
|
49
|
+
.units=${[
|
|
50
|
+
{ label: this.t('values.unit_years'), value: 'y' },
|
|
51
|
+
{ label: this.t('values.unit_months'), value: 'm' },
|
|
52
|
+
{ label: this.t('values.unit_weeks'), value: 'w' },
|
|
53
|
+
{ label: this.t('values.unit_days'), value: 'd' },
|
|
54
|
+
]}
|
|
55
|
+
>
|
|
56
|
+
</foxy-internal-editable-list-control>
|
|
57
|
+
|
|
58
|
+
${super.renderBody()}
|
|
59
|
+
`;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,8CAA2C;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,gDAA6C;AACtE,OAAO,EAAE,YAAY,EAAE,0DAAuD;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,MAAM,IAAI,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAC;AAE7C,MAAM,OAAO,iFAAkF,SAAQ,IAAU;IAAjH;;QAUmB,wBAAmB,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAE1E,qBAAgB,GAAG,GAAG,EAAE;;YACvC,aAAO,IAAI,CAAC,IAAI,CAAC,MA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I,GAAG,IAAI,4BAA4B;YAC9E,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,qBAAqB;YACjE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,EAAE,IAAI,qBAAqB;SACjE,CAAC;IACJ,CAAC;IAqBD,IAAI,cAAc;QAChB,OAAO,IAAI,eAAe,CAAC,cAAc,KAAK,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAA;;;;;;uBAMQ,IAAI,CAAC,mBAAmB;oBAC3B,IAAI,CAAC,gBAAgB;oBACrB,IAAI,CAAC,gBAAgB;iBACxB;YACP,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE;YAClD,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE;YACnD,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE;YAClD,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE;SAClD;;;;QAID,KAAK,CAAC,UAAU,EAAE;KACrB,CAAC;IACJ,CAAC;CACF","sourcesContent":["import type { TemplateResult } from 'lit-html';\nimport type { NucleonV8N } from '../../../NucleonElement/types';\nimport type { Item } from '../../../../internal/InternalEditableListControl/types';\nimport type { Data } from './types';\n\nimport { TranslatableMixin } from '../../../../../mixins/translatable';\nimport { BooleanSelector } from '@foxy.io/sdk/core';\nimport { parseFrequency } from '../../../../../utils/parse-frequency';\nimport { InternalForm } from '../../../../internal/InternalForm/InternalForm';\nimport { html } from 'lit-html';\n\nconst Base = TranslatableMixin(InternalForm);\n\nexport class InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm extends Base<Data> {\n static get v8n(): NucleonV8N<Data> {\n return [\n ({ jsonataQuery: v }) => !!v || 'jsonata-query:v8n_required',\n ({ jsonataQuery: v }) => !v || v.length <= 200 || 'jsonata-query:v8n_too_long',\n ({ values: v }) => (!!v && v.length > 0) || 'values:v8n_required',\n ({ values: v }) => !v || v.length <= 20 || 'values:v8n_too_long',\n ];\n }\n\n private readonly __valuesInputParams = { type: 'number', step: '1', min: '1', max: '999' };\n\n private readonly __valuesGetValue = () => {\n return this.form.values?.map(value => {\n if (value === '.5m') return { value, label: this.t('values.twice_a_week') };\n const { units, count } = parseFrequency(value);\n return { value, label: this.t(`values.${units}`, { count }) };\n });\n };\n\n private readonly __valuesSetValue = (newValue: Item[]) => {\n const newValues = newValue\n .filter(({ value }) => parseFloat(value) <= 999)\n .map(({ unit, value }) => (unit ? `${value}${unit}` : value))\n .filter((v, i, a) => a.indexOf(v) === i);\n\n this.edit({ values: newValues });\n };\n\n get hiddenSelector(): BooleanSelector {\n return new BooleanSelector(`timestamps ${super.hiddenSelector}`.trim());\n }\n\n renderBody(): TemplateResult {\n return html`\n <foxy-internal-source-control infer=\"jsonata-query\" property=\"jsonataQuery\">\n </foxy-internal-source-control>\n\n <foxy-internal-editable-list-control\n infer=\"values\"\n .inputParams=${this.__valuesInputParams}\n .getValue=${this.__valuesGetValue}\n .setValue=${this.__valuesSetValue}\n .units=${[\n { label: this.t('values.unit_years'), value: 'y' },\n { label: this.t('values.unit_months'), value: 'm' },\n { label: this.t('values.unit_weeks'), value: 'w' },\n { label: this.t('values.unit_days'), value: 'd' },\n ]}\n >\n </foxy-internal-editable-list-control>\n\n ${super.renderBody()}\n `;\n }\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import '../../../../internal/InternalEditableListControl/index';
|
|
2
|
+
import '../../../../internal/InternalSourceControl/index';
|
|
3
|
+
import '../../../../internal/InternalForm/index';
|
|
4
|
+
import { InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm } from './InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm';
|
|
5
|
+
export { InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../../../../internal/InternalEditableListControl/index.js";
|
|
2
|
+
import "../../../../internal/InternalSourceControl/index.js";
|
|
3
|
+
import "../../../../internal/InternalForm/index.js";
|
|
4
|
+
import { InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm } from "./InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm.js";
|
|
5
|
+
customElements.define('foxy-internal-customer-portal-settings-form-subscriptions-allow-frequency-modification-rule-form', InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm);
|
|
6
|
+
export { InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm };
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/index.ts"],"names":[],"mappings":"AAAA,mEAAgE;AAChE,6DAA0D;AAC1D,oDAAiD;AAEjD,OAAO,EAAE,iFAAiF,EAAE,+FAA4F;AAExL,cAAc,CAAC,MAAM,CACnB,kGAAkG,EAClG,iFAAiF,CAClF,CAAC;AAEF,OAAO,EAAE,iFAAiF,EAAE,CAAC","sourcesContent":["import '../../../../internal/InternalEditableListControl/index';\nimport '../../../../internal/InternalSourceControl/index';\nimport '../../../../internal/InternalForm/index';\n\nimport { InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm } from './InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm';\n\ncustomElements.define(\n 'foxy-internal-customer-portal-settings-form-subscriptions-allow-frequency-modification-rule-form',\n InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm\n);\n\nexport { InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm };\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Resource } from '@foxy.io/sdk/core';
|
|
2
|
+
import type { Rels } from '@foxy.io/sdk/backend';
|
|
3
|
+
interface FrequencyModificationRule {
|
|
4
|
+
links: {
|
|
5
|
+
self: FrequencyModificationRule;
|
|
6
|
+
};
|
|
7
|
+
props: Rels.CustomerPortalSettings['props']['subscriptions']['allowFrequencyModification'][number];
|
|
8
|
+
}
|
|
9
|
+
export declare type Data = Resource<FrequencyModificationRule>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowFrequencyModificationRuleForm/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\ninterface FrequencyModificationRule {\n links: { self: FrequencyModificationRule };\n props: Rels.CustomerPortalSettings['props']['subscriptions']['allowFrequencyModification'][number];\n}\n\nexport type Data = Resource<FrequencyModificationRule>;\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TemplateResult } from 'lit-html';
|
|
2
|
+
import type { Data } from './types';
|
|
3
|
+
import { InternalCard } from '../../../../internal/InternalCard/InternalCard';
|
|
4
|
+
declare const Base: typeof InternalCard & import("lit-element").Constructor<import("../../../../../mixins/translatable").TranslatableMixinHost> & {
|
|
5
|
+
defaultNS: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard extends Base<Data> {
|
|
8
|
+
renderBody(): TemplateResult;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { TranslatableMixin } from "../../../../../mixins/translatable.js";
|
|
2
|
+
import { parseDuration } from "../../../../../utils/parse-duration.js";
|
|
3
|
+
import { InternalCard } from "../../../../internal/InternalCard/InternalCard.js";
|
|
4
|
+
import { html } from 'lit-html';
|
|
5
|
+
const Base = TranslatableMixin(InternalCard);
|
|
6
|
+
export class InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard extends Base {
|
|
7
|
+
renderBody() {
|
|
8
|
+
var _a;
|
|
9
|
+
const { min, max, allowedDays, jsonataQuery, disallowedDates } = (_a = this.data) !== null && _a !== void 0 ? _a : {};
|
|
10
|
+
const minD = min ? parseDuration(min) : undefined;
|
|
11
|
+
const maxD = max ? parseDuration(max) : undefined;
|
|
12
|
+
const line1Key = jsonataQuery === '*' ? 'line_1_all' : 'line_1_matching';
|
|
13
|
+
const line1Options = { query: jsonataQuery };
|
|
14
|
+
const line2Options = {
|
|
15
|
+
from: minD ? this.t(`unit_${minD.units}`, { count: minD.count }) : this.t('any'),
|
|
16
|
+
to: maxD ? this.t(`unit_${maxD.units}`, { count: maxD.count }) : this.t('any'),
|
|
17
|
+
};
|
|
18
|
+
const line3Key = `line_3_${allowedDays ? allowedDays.type : 'any'}`;
|
|
19
|
+
const line3Options = {
|
|
20
|
+
list: (allowedDays === null || allowedDays === void 0 ? void 0 : allowedDays.type) === 'month'
|
|
21
|
+
? allowedDays === null || allowedDays === void 0 ? void 0 : allowedDays.days.join(', ') : allowedDays === null || allowedDays === void 0 ? void 0 : allowedDays.days.map(day => this.t(`day_${day}`)).join(', '),
|
|
22
|
+
};
|
|
23
|
+
const line4Key = disallowedDates ? 'line_4_some' : 'line_4_none';
|
|
24
|
+
const line4Options = {
|
|
25
|
+
list: disallowedDates === null || disallowedDates === void 0 ? void 0 : disallowedDates.map(date => {
|
|
26
|
+
const [from, to] = date.split('..');
|
|
27
|
+
return from && to
|
|
28
|
+
? this.t('date_range', { from, to })
|
|
29
|
+
: this.t('single_date', { value: date });
|
|
30
|
+
}).join(', '),
|
|
31
|
+
};
|
|
32
|
+
return html `
|
|
33
|
+
<section class="leading-xs" style="margin: -0.25ch 0">
|
|
34
|
+
<p class="text-m font-medium truncate">
|
|
35
|
+
<foxy-i18n infer="" key=${line1Key} .options=${line1Options}></foxy-i18n>
|
|
36
|
+
</p>
|
|
37
|
+
<p class="text-s text-secondary">
|
|
38
|
+
<foxy-i18n infer="" class="block truncate" key="line_2" .options=${line2Options}>
|
|
39
|
+
</foxy-i18n>
|
|
40
|
+
<foxy-i18n infer="" class="block truncate" key=${line3Key} .options=${line3Options}>
|
|
41
|
+
</foxy-i18n>
|
|
42
|
+
<foxy-i18n infer="" class="block truncate" key=${line4Key} .options=${line4Options}>
|
|
43
|
+
</foxy-i18n>
|
|
44
|
+
</p>
|
|
45
|
+
</section>
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,8CAA2C;AACvE,OAAO,EAAE,aAAa,EAAE,+CAA4C;AACpE,OAAO,EAAE,YAAY,EAAE,0DAAuD;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,MAAM,IAAI,GAAG,iBAAiB,CAAC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AAC,CAAC,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAC7B,CAAC,CAAC,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;SACpE,CAAC;QAEF,MAAM,QAAQ,GAAG,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC;QACjE,MAAM,YAAY,GAAG;YACnB,IAAI,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CACjB,GAAG,CAAC,IAAI,CAAC,EAAE;gBACX,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBACpC,OAAO,IAAI,IAAI,EAAE;oBACf,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;oBACpC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YAC7C,CAAC,EACA,IAAI,CAAC,IAAI,CAAC;SACd,CAAC;QAEF,OAAO,IAAI,CAAA;;;oCAGqB,QAAQ,aAAa,YAAY;;;6EAGQ,YAAY;;2DAE9B,QAAQ,aAAa,YAAY;;2DAEjC,QAAQ,aAAa,YAAY;;;;KAIvF,CAAC;IACJ,CAAC;CACF","sourcesContent":["import type { TemplateResult } from 'lit-html';\nimport type { Data } from './types';\n\nimport { TranslatableMixin } from '../../../../../mixins/translatable';\nimport { parseDuration } from '../../../../../utils/parse-duration';\nimport { InternalCard } from '../../../../internal/InternalCard/InternalCard';\nimport { html } from 'lit-html';\n\nconst Base = TranslatableMixin(InternalCard);\n\nexport class InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard extends Base<Data> {\n renderBody(): TemplateResult {\n const { min, max, allowedDays, jsonataQuery, disallowedDates } = this.data ?? {};\n\n const minD = min ? parseDuration(min) : undefined;\n const maxD = max ? parseDuration(max) : undefined;\n\n const line1Key = jsonataQuery === '*' ? 'line_1_all' : 'line_1_matching';\n const line1Options = { query: jsonataQuery };\n\n const line2Options = {\n from: minD ? this.t(`unit_${minD.units}`, { count: minD.count }) : this.t('any'),\n to: maxD ? this.t(`unit_${maxD.units}`, { count: maxD.count }) : this.t('any'),\n };\n\n const line3Key = `line_3_${allowedDays ? allowedDays.type : 'any'}`;\n const line3Options = {\n list:\n allowedDays?.type === 'month'\n ? allowedDays?.days.join(', ')\n : allowedDays?.days.map(day => this.t(`day_${day}`)).join(', '),\n };\n\n const line4Key = disallowedDates ? 'line_4_some' : 'line_4_none';\n const line4Options = {\n list: disallowedDates\n ?.map(date => {\n const [from, to] = date.split('..');\n return from && to\n ? this.t('date_range', { from, to })\n : this.t('single_date', { value: date });\n })\n .join(', '),\n };\n\n return html`\n <section class=\"leading-xs\" style=\"margin: -0.25ch 0\">\n <p class=\"text-m font-medium truncate\">\n <foxy-i18n infer=\"\" key=${line1Key} .options=${line1Options}></foxy-i18n>\n </p>\n <p class=\"text-s text-secondary\">\n <foxy-i18n infer=\"\" class=\"block truncate\" key=\"line_2\" .options=${line2Options}>\n </foxy-i18n>\n <foxy-i18n infer=\"\" class=\"block truncate\" key=${line3Key} .options=${line3Options}>\n </foxy-i18n>\n <foxy-i18n infer=\"\" class=\"block truncate\" key=${line4Key} .options=${line4Options}>\n </foxy-i18n>\n </p>\n </section>\n `;\n }\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../../../../internal/InternalCard/index';
|
|
2
|
+
import '../../../I18n/index';
|
|
3
|
+
import { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard } from './InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard';
|
|
4
|
+
export { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../../../../internal/InternalCard/index.js";
|
|
2
|
+
import "../../../I18n/index.js";
|
|
3
|
+
import { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard } from "./InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard.js";
|
|
4
|
+
customElements.define('foxy-internal-customer-portal-settings-form-subscriptions-allow-next-date-modification-rule-card', InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard);
|
|
5
|
+
export { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard };
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/index.ts"],"names":[],"mappings":"AAAA,oDAAiD;AACjD,gCAA6B;AAE7B,OAAO,EAAE,gFAAgF,EAAE,8FAA2F;AAEtL,cAAc,CAAC,MAAM,CACnB,kGAAkG,EAClG,gFAAgF,CACjF,CAAC;AAEF,OAAO,EAAE,gFAAgF,EAAE,CAAC","sourcesContent":["import '../../../../internal/InternalCard/index';\nimport '../../../I18n/index';\n\nimport { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard } from './InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard';\n\ncustomElements.define(\n 'foxy-internal-customer-portal-settings-form-subscriptions-allow-next-date-modification-rule-card',\n InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard\n);\n\nexport { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard };\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Resource } from '@foxy.io/sdk/core';
|
|
2
|
+
import type { Rels } from '@foxy.io/sdk/backend';
|
|
3
|
+
declare type NonBoolean<T> = T extends boolean ? never : T;
|
|
4
|
+
declare type Entry = Rels.CustomerPortalSettings['props']['subscriptions']['allowNextDateModification'];
|
|
5
|
+
interface NextDateModificationRule {
|
|
6
|
+
links: {
|
|
7
|
+
self: NextDateModificationRule;
|
|
8
|
+
};
|
|
9
|
+
props: NonBoolean<Entry>[number];
|
|
10
|
+
}
|
|
11
|
+
export declare type Data = Resource<NextDateModificationRule>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleCard/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\ntype NonBoolean<T> = T extends boolean ? never : T;\ntype Entry = Rels.CustomerPortalSettings['props']['subscriptions']['allowNextDateModification'];\n\ninterface NextDateModificationRule {\n links: { self: NextDateModificationRule };\n props: NonBoolean<Entry>[number];\n}\n\nexport type Data = Resource<NextDateModificationRule>;\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TemplateResult } from 'lit-html';
|
|
2
|
+
import type { NucleonV8N } from '../../../NucleonElement/types';
|
|
3
|
+
import type { Data } from './types';
|
|
4
|
+
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
5
|
+
import { InternalForm } from '../../../../internal/InternalForm/InternalForm';
|
|
6
|
+
declare const Base: typeof InternalForm & import("lit-element").Constructor<import("../../../../../mixins/translatable").TranslatableMixinHost> & {
|
|
7
|
+
defaultNS: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm extends Base<Data> {
|
|
10
|
+
static get v8n(): NucleonV8N<Data>;
|
|
11
|
+
private readonly __minmaxRestrictionsGetValue;
|
|
12
|
+
private readonly __minmaxRestrictionsSetValue;
|
|
13
|
+
private readonly __minmaxRestrictionsOptions;
|
|
14
|
+
private readonly __dayAndDateRestrictionsGetValue;
|
|
15
|
+
private readonly __dayAndDateRestrictionsSetValue;
|
|
16
|
+
private readonly __dayAndDateRestrictionsOptions;
|
|
17
|
+
private readonly __daysOfWeekGetValue;
|
|
18
|
+
private readonly __daysOfWeekSetValue;
|
|
19
|
+
private readonly __daysOfWeekOptions;
|
|
20
|
+
private readonly __datesOfMonthInputParams;
|
|
21
|
+
private readonly __datesOfMonthGetValue;
|
|
22
|
+
private readonly __datesOfMonthSetValue;
|
|
23
|
+
private readonly __disallowedDatesInputParams;
|
|
24
|
+
private readonly __disallowedDatesGetValue;
|
|
25
|
+
private readonly __disallowedDatesSetValue;
|
|
26
|
+
get hiddenSelector(): BooleanSelector;
|
|
27
|
+
renderBody(): TemplateResult;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { TranslatableMixin } from "../../../../../mixins/translatable.js";
|
|
2
|
+
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
3
|
+
import { InternalForm } from "../../../../internal/InternalForm/InternalForm.js";
|
|
4
|
+
import { html } from 'lit-html';
|
|
5
|
+
const Base = TranslatableMixin(InternalForm);
|
|
6
|
+
export class InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm extends Base {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.__minmaxRestrictionsGetValue = () => {
|
|
10
|
+
const value = [];
|
|
11
|
+
const form = this.form;
|
|
12
|
+
if (form.min)
|
|
13
|
+
value.push('min');
|
|
14
|
+
if (form.max)
|
|
15
|
+
value.push('max');
|
|
16
|
+
return value;
|
|
17
|
+
};
|
|
18
|
+
this.__minmaxRestrictionsSetValue = (newValue) => {
|
|
19
|
+
const form = this.form;
|
|
20
|
+
this.edit({
|
|
21
|
+
min: newValue.includes('min') ? form.min || '1m' : null,
|
|
22
|
+
max: newValue.includes('max') ? form.max || '1y' : null,
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
this.__minmaxRestrictionsOptions = [
|
|
26
|
+
{ label: 'option_min', value: 'min' },
|
|
27
|
+
{ label: 'option_max', value: 'max' },
|
|
28
|
+
];
|
|
29
|
+
this.__dayAndDateRestrictionsGetValue = () => {
|
|
30
|
+
var _a;
|
|
31
|
+
const type = (_a = this.form.allowedDays) === null || _a === void 0 ? void 0 : _a.type;
|
|
32
|
+
return type === 'day' ? 'days' : type === 'month' ? 'dates' : 'none';
|
|
33
|
+
};
|
|
34
|
+
this.__dayAndDateRestrictionsSetValue = (newValue) => {
|
|
35
|
+
if (newValue === 'dates') {
|
|
36
|
+
this.edit({ allowedDays: { type: 'month', days: [] } });
|
|
37
|
+
}
|
|
38
|
+
else if (newValue === 'days') {
|
|
39
|
+
this.edit({ allowedDays: { type: 'day', days: [] } });
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this.edit({ allowedDays: null });
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
this.__dayAndDateRestrictionsOptions = [
|
|
46
|
+
{ label: 'option_none', value: 'none' },
|
|
47
|
+
{ label: 'option_dates', value: 'dates' },
|
|
48
|
+
{ label: 'option_days', value: 'days' },
|
|
49
|
+
];
|
|
50
|
+
this.__daysOfWeekGetValue = () => {
|
|
51
|
+
var _a, _b;
|
|
52
|
+
return (_b = (_a = this.form.allowedDays) === null || _a === void 0 ? void 0 : _a.days.map(v => String(v))) !== null && _b !== void 0 ? _b : [];
|
|
53
|
+
};
|
|
54
|
+
this.__daysOfWeekSetValue = (newValue) => {
|
|
55
|
+
this.edit({ allowedDays: { type: 'day', days: newValue.map(Number) } });
|
|
56
|
+
};
|
|
57
|
+
this.__daysOfWeekOptions = [
|
|
58
|
+
{ label: 'option_1', value: '1' },
|
|
59
|
+
{ label: 'option_2', value: '2' },
|
|
60
|
+
{ label: 'option_3', value: '3' },
|
|
61
|
+
{ label: 'option_4', value: '4' },
|
|
62
|
+
{ label: 'option_5', value: '5' },
|
|
63
|
+
{ label: 'option_6', value: '6' },
|
|
64
|
+
{ label: 'option_7', value: '7' },
|
|
65
|
+
];
|
|
66
|
+
this.__datesOfMonthInputParams = { type: 'number', min: '1', max: '31', step: '1' };
|
|
67
|
+
this.__datesOfMonthGetValue = () => {
|
|
68
|
+
var _a, _b;
|
|
69
|
+
return (_b = (_a = this.form.allowedDays) === null || _a === void 0 ? void 0 : _a.days.map(v => ({ value: String(v) }))) !== null && _b !== void 0 ? _b : [];
|
|
70
|
+
};
|
|
71
|
+
this.__datesOfMonthSetValue = (newValue) => {
|
|
72
|
+
this.edit({
|
|
73
|
+
allowedDays: {
|
|
74
|
+
type: 'month',
|
|
75
|
+
days: newValue
|
|
76
|
+
.map(v => parseInt(v.value))
|
|
77
|
+
.filter(v => Number.isInteger(v) && v >= 1 && v <= 31),
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
this.__disallowedDatesInputParams = { type: 'date' };
|
|
82
|
+
this.__disallowedDatesGetValue = () => {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
return (_b = (_a = this.form.disallowedDates) === null || _a === void 0 ? void 0 : _a.map(v => ({ value: v }))) !== null && _b !== void 0 ? _b : [];
|
|
85
|
+
};
|
|
86
|
+
this.__disallowedDatesSetValue = (newValue) => {
|
|
87
|
+
this.edit({ disallowedDates: newValue.map(v => v.value) });
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
static get v8n() {
|
|
91
|
+
return [
|
|
92
|
+
({ jsonataQuery: v }) => !!v || 'jsonata-query:v8n_required',
|
|
93
|
+
({ jsonataQuery: v }) => !v || v.length <= 200 || 'jsonata-query:v8n_too_long',
|
|
94
|
+
({ disallowedDates: v }) => !v || v.length <= 10 || 'disallowed-dates:v8n_too_long',
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
get hiddenSelector() {
|
|
98
|
+
var _a, _b;
|
|
99
|
+
const alwaysMatch = ['timestamps', super.hiddenSelector.toString()];
|
|
100
|
+
const form = this.form;
|
|
101
|
+
if (!form.min)
|
|
102
|
+
alwaysMatch.unshift('min');
|
|
103
|
+
if (!form.max)
|
|
104
|
+
alwaysMatch.unshift('max');
|
|
105
|
+
if (((_a = form.allowedDays) === null || _a === void 0 ? void 0 : _a.type) !== 'day')
|
|
106
|
+
alwaysMatch.unshift('days-of-week');
|
|
107
|
+
if (((_b = form.allowedDays) === null || _b === void 0 ? void 0 : _b.type) !== 'month')
|
|
108
|
+
alwaysMatch.unshift('dates-of-month');
|
|
109
|
+
return new BooleanSelector(alwaysMatch.join(' ').trim());
|
|
110
|
+
}
|
|
111
|
+
renderBody() {
|
|
112
|
+
return html `
|
|
113
|
+
<foxy-internal-source-control infer="jsonata-query" property="jsonataQuery">
|
|
114
|
+
</foxy-internal-source-control>
|
|
115
|
+
|
|
116
|
+
<foxy-internal-checkbox-group-control
|
|
117
|
+
infer="minmax-restrictions"
|
|
118
|
+
.getValue=${this.__minmaxRestrictionsGetValue}
|
|
119
|
+
.setValue=${this.__minmaxRestrictionsSetValue}
|
|
120
|
+
.options=${this.__minmaxRestrictionsOptions}
|
|
121
|
+
>
|
|
122
|
+
</foxy-internal-checkbox-group-control>
|
|
123
|
+
|
|
124
|
+
<foxy-internal-frequency-control infer="min"></foxy-internal-frequency-control>
|
|
125
|
+
<foxy-internal-frequency-control infer="max"></foxy-internal-frequency-control>
|
|
126
|
+
|
|
127
|
+
<foxy-internal-radio-group-control
|
|
128
|
+
infer="day-and-date-restrictions"
|
|
129
|
+
.getValue=${this.__dayAndDateRestrictionsGetValue}
|
|
130
|
+
.setValue=${this.__dayAndDateRestrictionsSetValue}
|
|
131
|
+
.options=${this.__dayAndDateRestrictionsOptions}
|
|
132
|
+
>
|
|
133
|
+
</foxy-internal-radio-group-control>
|
|
134
|
+
|
|
135
|
+
<foxy-internal-checkbox-group-control
|
|
136
|
+
infer="days-of-week"
|
|
137
|
+
theme="vertical"
|
|
138
|
+
.getValue=${this.__daysOfWeekGetValue}
|
|
139
|
+
.setValue=${this.__daysOfWeekSetValue}
|
|
140
|
+
.options=${this.__daysOfWeekOptions}
|
|
141
|
+
>
|
|
142
|
+
</foxy-internal-checkbox-group-control>
|
|
143
|
+
|
|
144
|
+
<foxy-internal-editable-list-control
|
|
145
|
+
infer="dates-of-month"
|
|
146
|
+
.inputParams=${this.__datesOfMonthInputParams}
|
|
147
|
+
.getValue=${this.__datesOfMonthGetValue}
|
|
148
|
+
.setValue=${this.__datesOfMonthSetValue}
|
|
149
|
+
>
|
|
150
|
+
</foxy-internal-editable-list-control>
|
|
151
|
+
|
|
152
|
+
<foxy-internal-editable-list-control
|
|
153
|
+
infer="disallowed-dates"
|
|
154
|
+
range="optional"
|
|
155
|
+
.inputParams=${this.__disallowedDatesInputParams}
|
|
156
|
+
.getValue=${this.__disallowedDatesGetValue}
|
|
157
|
+
.setValue=${this.__disallowedDatesSetValue}
|
|
158
|
+
>
|
|
159
|
+
</foxy-internal-editable-list-control>
|
|
160
|
+
|
|
161
|
+
${super.renderBody()}
|
|
162
|
+
`;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,8CAA2C;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,0DAAuD;AAC9E,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,OAAO,CAAC,cAAc,CAAC,CAAC;QAC1E,IAAI,OAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,MAAK,OAAO;YAAE,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAE9E,OAAO,IAAI,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAA;;;;;;oBAMK,IAAI,CAAC,4BAA4B;oBACjC,IAAI,CAAC,4BAA4B;mBAClC,IAAI,CAAC,2BAA2B;;;;;;;;;oBAS/B,IAAI,CAAC,gCAAgC;oBACrC,IAAI,CAAC,gCAAgC;mBACtC,IAAI,CAAC,+BAA+B;;;;;;;oBAOnC,IAAI,CAAC,oBAAoB;oBACzB,IAAI,CAAC,oBAAoB;mBAC1B,IAAI,CAAC,mBAAmB;;;;;;uBAMpB,IAAI,CAAC,yBAAyB;oBACjC,IAAI,CAAC,sBAAsB;oBAC3B,IAAI,CAAC,sBAAsB;;;;;;;uBAOxB,IAAI,CAAC,4BAA4B;oBACpC,IAAI,CAAC,yBAAyB;oBAC9B,IAAI,CAAC,yBAAyB;;;;QAI1C,KAAK,CAAC,UAAU,EAAE;KACrB,CAAC;IACJ,CAAC;CACF","sourcesContent":["import type { TemplateResult } from 'lit-html';\nimport type { NucleonV8N } from '../../../NucleonElement/types';\nimport type { Data } from './types';\n\nimport { TranslatableMixin } from '../../../../../mixins/translatable';\nimport { BooleanSelector } from '@foxy.io/sdk/core';\nimport { InternalForm } from '../../../../internal/InternalForm/InternalForm';\nimport { html } from 'lit-html';\n\nconst Base = TranslatableMixin(InternalForm);\n\nexport class InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm extends Base<Data> {\n static get v8n(): NucleonV8N<Data> {\n return [\n ({ jsonataQuery: v }) => !!v || 'jsonata-query:v8n_required',\n ({ jsonataQuery: v }) => !v || v.length <= 200 || 'jsonata-query:v8n_too_long',\n ({ disallowedDates: v }) => !v || v.length <= 10 || 'disallowed-dates:v8n_too_long',\n ];\n }\n\n private readonly __minmaxRestrictionsGetValue = () => {\n const value: string[] = [];\n const form = this.form;\n\n if (form.min) value.push('min');\n if (form.max) value.push('max');\n\n return value;\n };\n\n private readonly __minmaxRestrictionsSetValue = (newValue: string[]) => {\n const form = this.form;\n this.edit({\n min: newValue.includes('min') ? form.min || '1m' : null,\n max: newValue.includes('max') ? form.max || '1y' : null,\n });\n };\n\n private readonly __minmaxRestrictionsOptions = [\n { label: 'option_min', value: 'min' },\n { label: 'option_max', value: 'max' },\n ];\n\n private readonly __dayAndDateRestrictionsGetValue = () => {\n const type = this.form.allowedDays?.type;\n return type === 'day' ? 'days' : type === 'month' ? 'dates' : 'none';\n };\n\n private readonly __dayAndDateRestrictionsSetValue = (newValue: string) => {\n if (newValue === 'dates') {\n this.edit({ allowedDays: { type: 'month', days: [] } });\n } else if (newValue === 'days') {\n this.edit({ allowedDays: { type: 'day', days: [] } });\n } else {\n this.edit({ allowedDays: null });\n }\n };\n\n private readonly __dayAndDateRestrictionsOptions = [\n { label: 'option_none', value: 'none' },\n { label: 'option_dates', value: 'dates' },\n { label: 'option_days', value: 'days' },\n ];\n\n private readonly __daysOfWeekGetValue = () => {\n return this.form.allowedDays?.days.map(v => String(v)) ?? [];\n };\n\n private readonly __daysOfWeekSetValue = (newValue: string[]) => {\n this.edit({ allowedDays: { type: 'day', days: newValue.map(Number) } });\n };\n\n private readonly __daysOfWeekOptions = [\n { label: 'option_1', value: '1' },\n { label: 'option_2', value: '2' },\n { label: 'option_3', value: '3' },\n { label: 'option_4', value: '4' },\n { label: 'option_5', value: '5' },\n { label: 'option_6', value: '6' },\n { label: 'option_7', value: '7' },\n ];\n\n private readonly __datesOfMonthInputParams = { type: 'number', min: '1', max: '31', step: '1' };\n\n private readonly __datesOfMonthGetValue = () => {\n return this.form.allowedDays?.days.map(v => ({ value: String(v) })) ?? [];\n };\n\n private readonly __datesOfMonthSetValue = (newValue: { value: string }[]) => {\n this.edit({\n allowedDays: {\n type: 'month',\n days: newValue\n .map(v => parseInt(v.value))\n .filter(v => Number.isInteger(v) && v >= 1 && v <= 31),\n },\n });\n };\n\n private readonly __disallowedDatesInputParams = { type: 'date' };\n\n private readonly __disallowedDatesGetValue = () => {\n return this.form.disallowedDates?.map(v => ({ value: v })) ?? [];\n };\n\n private readonly __disallowedDatesSetValue = (newValue: { value: string }[]) => {\n this.edit({ disallowedDates: newValue.map(v => v.value) });\n };\n\n get hiddenSelector(): BooleanSelector {\n const alwaysMatch = ['timestamps', super.hiddenSelector.toString()];\n const form = this.form;\n\n if (!form.min) alwaysMatch.unshift('min');\n if (!form.max) alwaysMatch.unshift('max');\n if (form.allowedDays?.type !== 'day') alwaysMatch.unshift('days-of-week');\n if (form.allowedDays?.type !== 'month') alwaysMatch.unshift('dates-of-month');\n\n return new BooleanSelector(alwaysMatch.join(' ').trim());\n }\n\n renderBody(): TemplateResult {\n return html`\n <foxy-internal-source-control infer=\"jsonata-query\" property=\"jsonataQuery\">\n </foxy-internal-source-control>\n\n <foxy-internal-checkbox-group-control\n infer=\"minmax-restrictions\"\n .getValue=${this.__minmaxRestrictionsGetValue}\n .setValue=${this.__minmaxRestrictionsSetValue}\n .options=${this.__minmaxRestrictionsOptions}\n >\n </foxy-internal-checkbox-group-control>\n\n <foxy-internal-frequency-control infer=\"min\"></foxy-internal-frequency-control>\n <foxy-internal-frequency-control infer=\"max\"></foxy-internal-frequency-control>\n\n <foxy-internal-radio-group-control\n infer=\"day-and-date-restrictions\"\n .getValue=${this.__dayAndDateRestrictionsGetValue}\n .setValue=${this.__dayAndDateRestrictionsSetValue}\n .options=${this.__dayAndDateRestrictionsOptions}\n >\n </foxy-internal-radio-group-control>\n\n <foxy-internal-checkbox-group-control\n infer=\"days-of-week\"\n theme=\"vertical\"\n .getValue=${this.__daysOfWeekGetValue}\n .setValue=${this.__daysOfWeekSetValue}\n .options=${this.__daysOfWeekOptions}\n >\n </foxy-internal-checkbox-group-control>\n\n <foxy-internal-editable-list-control\n infer=\"dates-of-month\"\n .inputParams=${this.__datesOfMonthInputParams}\n .getValue=${this.__datesOfMonthGetValue}\n .setValue=${this.__datesOfMonthSetValue}\n >\n </foxy-internal-editable-list-control>\n\n <foxy-internal-editable-list-control\n infer=\"disallowed-dates\"\n range=\"optional\"\n .inputParams=${this.__disallowedDatesInputParams}\n .getValue=${this.__disallowedDatesGetValue}\n .setValue=${this.__disallowedDatesSetValue}\n >\n </foxy-internal-editable-list-control>\n\n ${super.renderBody()}\n `;\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '../../../../internal/InternalCheckboxGroupControl/index';
|
|
2
|
+
import '../../../../internal/InternalEditableListControl/index';
|
|
3
|
+
import '../../../../internal/InternalFrequencyControl/index';
|
|
4
|
+
import '../../../../internal/InternalRadioGroupControl/index';
|
|
5
|
+
import '../../../../internal/InternalSourceControl/index';
|
|
6
|
+
import '../../../../internal/InternalForm/index';
|
|
7
|
+
import { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm } from './InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm';
|
|
8
|
+
export { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../../../../internal/InternalCheckboxGroupControl/index.js";
|
|
2
|
+
import "../../../../internal/InternalEditableListControl/index.js";
|
|
3
|
+
import "../../../../internal/InternalFrequencyControl/index.js";
|
|
4
|
+
import "../../../../internal/InternalRadioGroupControl/index.js";
|
|
5
|
+
import "../../../../internal/InternalSourceControl/index.js";
|
|
6
|
+
import "../../../../internal/InternalForm/index.js";
|
|
7
|
+
import { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm } from "./InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm.js";
|
|
8
|
+
customElements.define('foxy-internal-customer-portal-settings-form-subscriptions-allow-next-date-modification-rule-form', InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm);
|
|
9
|
+
export { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm };
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/index.ts"],"names":[],"mappings":"AAAA,oEAAiE;AACjE,mEAAgE;AAChE,gEAA6D;AAC7D,iEAA8D;AAC9D,6DAA0D;AAC1D,oDAAiD;AAEjD,OAAO,EAAE,gFAAgF,EAAE,8FAA2F;AAEtL,cAAc,CAAC,MAAM,CACnB,kGAAkG,EAClG,gFAAgF,CACjF,CAAC;AAEF,OAAO,EAAE,gFAAgF,EAAE,CAAC","sourcesContent":["import '../../../../internal/InternalCheckboxGroupControl/index';\nimport '../../../../internal/InternalEditableListControl/index';\nimport '../../../../internal/InternalFrequencyControl/index';\nimport '../../../../internal/InternalRadioGroupControl/index';\nimport '../../../../internal/InternalSourceControl/index';\nimport '../../../../internal/InternalForm/index';\n\nimport { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm } from './InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm';\n\ncustomElements.define(\n 'foxy-internal-customer-portal-settings-form-subscriptions-allow-next-date-modification-rule-form',\n InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm\n);\n\nexport { InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm };\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Resource } from '@foxy.io/sdk/core';
|
|
2
|
+
import type { Rels } from '@foxy.io/sdk/backend';
|
|
3
|
+
declare type Nullable<T> = {
|
|
4
|
+
[K in keyof T]: T[K] | null;
|
|
5
|
+
};
|
|
6
|
+
interface NextDateModificationRule {
|
|
7
|
+
links: {
|
|
8
|
+
self: NextDateModificationRule;
|
|
9
|
+
};
|
|
10
|
+
props: Nullable<Exclude<Rels.CustomerPortalSettings['props']['subscriptions']['allowNextDateModification'], boolean | undefined>[number]>;
|
|
11
|
+
}
|
|
12
|
+
export declare type Data = Resource<NextDateModificationRule>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/elements/public/CustomerPortalSettingsForm/internal/InternalCustomerPortalSettingsFormSubscriptionsAllowNextDateModificationRuleForm/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\ntype Nullable<T> = { [K in keyof T]: T[K] | null };\n\ninterface NextDateModificationRule {\n links: { self: NextDateModificationRule };\n props: Nullable<\n Exclude<\n Rels.CustomerPortalSettings['props']['subscriptions']['allowNextDateModification'],\n boolean | undefined\n >[number]\n >;\n}\n\nexport type Data = Resource<NextDateModificationRule>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isOrigin(value: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isOrigin.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomerPortalSettingsForm/isOrigin.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,KAAa;IACpC,IAAI;QACF,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,KAAK,CAAC,WAAW,EAAE,CAAC;KACtD;IAAC,WAAM;QACN,OAAO,KAAK,CAAC;KACd;AACH,CAAC","sourcesContent":["export function isOrigin(value: string): boolean {\n try {\n return new URL(value).origin === value.toLowerCase();\n } catch {\n return false;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomerPortalSettingsForm/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\nexport type Data = Resource<Rels.CustomerPortalSettings>;\n"]}
|