@paydock/client-sdk 1.103.1 → 1.104.1-beta
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/README.md +102 -104
- package/bundles/index.cjs +10674 -0
- package/bundles/index.cjs.d.ts +3163 -0
- package/bundles/index.cjs.map +1 -0
- package/bundles/index.mjs +10642 -0
- package/bundles/index.mjs.d.ts +3163 -0
- package/bundles/index.mjs.map +1 -0
- package/{lib → bundles/types}/api/api-base.d.ts +2 -1
- package/bundles/types/api/api-base.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge-internal.d.ts +1 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
- package/bundles/types/api/api-charge.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-internal.d.ts +1 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-service-internal.d.ts +1 -0
- package/bundles/types/api/api-service-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api.d.ts +1 -0
- package/bundles/types/api/api.d.ts.map +1 -0
- package/bundles/types/api/index.d.ts +2 -0
- package/bundles/types/api/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
- package/bundles/types/checkout-button/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
- package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
- package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
- package/bundles/types/components/ability-guard.d.ts.map +1 -0
- package/{lib → bundles/types}/components/background.d.ts +1 -0
- package/bundles/types/components/background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/container.d.ts +1 -0
- package/bundles/types/components/container.d.ts.map +1 -0
- package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
- package/bundles/types/components/dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/element-style.d.ts +2 -1
- package/bundles/types/components/element-style.d.ts.map +1 -0
- package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
- package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/form-Interceptor.d.ts +1 -0
- package/bundles/types/components/form-Interceptor.d.ts.map +1 -0
- package/{lib → bundles/types}/components/http-core.d.ts +1 -0
- package/bundles/types/components/http-core.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe-event.d.ts +2 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe.d.ts +1 -0
- package/bundles/types/components/iframe.d.ts.map +1 -0
- package/{lib → bundles/types}/components/link.d.ts +2 -1
- package/bundles/types/components/link.d.ts.map +1 -0
- package/{lib → bundles/types}/components/loader.d.ts +1 -0
- package/bundles/types/components/loader.d.ts.map +1 -0
- package/{lib → bundles/types}/components/param.d.ts +6 -5
- package/bundles/types/components/param.d.ts.map +1 -0
- package/{lib → bundles/types}/components/popup.d.ts +1 -0
- package/bundles/types/components/popup.d.ts.map +1 -0
- package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
- package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/trigger.d.ts +1 -0
- package/bundles/types/components/trigger.d.ts.map +1 -0
- package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-background.d.ts +1 -0
- package/bundles/types/components/wallet-background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
- package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.cba.d.ts +29 -0
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.interface.d.ts +12 -0
- package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
- package/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
- package/bundles/types/configs/env/index.d.ts +3 -0
- package/bundles/types/configs/env/index.d.ts.map +1 -0
- package/{lib → bundles/types}/configs/sdk.d.ts +3 -2
- package/bundles/types/configs/sdk.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
- package/bundles/types/external-checkout/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -0
- package/bundles/types/external-checkout/checker.d.ts.map +1 -0
- package/bundles/types/external-checkout/index.d.ts +3 -0
- package/bundles/types/external-checkout/index.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/access-token.d.ts +1 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/browser.d.ts +1 -0
- package/bundles/types/helper/browser.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/event-emitter.d.ts +1 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/event.d.ts +1 -0
- package/bundles/types/helper/event.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/ms.d.ts +1 -0
- package/bundles/types/helper/ms.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/object.d.ts +1 -0
- package/bundles/types/helper/object.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/url.d.ts +1 -0
- package/bundles/types/helper/url.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
- package/bundles/types/helper/uuid.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +13 -0
- package/bundles/types/index-cba.d.ts.map +1 -0
- package/bundles/types/index.d.ts +14 -0
- package/bundles/types/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
- package/bundles/types/payment-source/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
- package/bundles/types/payment-source/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
- package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/index.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/interfaces.d.ts +6 -5
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/helper.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/index.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/secure-remote-commerce.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
- package/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
- package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/afterpay.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/apple.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/flypay-v2.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/flypay.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/google.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/index.d.ts +1 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/mastercard.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/paypal.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/stripe.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/wallet-buttons.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
- package/bundles/types/widget/configuration.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-multi-widget.d.ts +1 -0
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
- package/bundles/types/widget/html-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/index.d.ts +2 -1
- package/bundles/types/widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/meta.d.ts +1 -0
- package/bundles/types/widget/meta.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
- package/bundles/types/widget/multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/style.d.ts +1 -0
- package/bundles/types/widget/style.d.ts.map +1 -0
- package/bundles/widget.umd.js +6813 -6963
- package/bundles/widget.umd.js.d.ts +3163 -0
- package/bundles/widget.umd.js.map +1 -0
- package/bundles/widget.umd.js.min.d.ts +3163 -0
- package/bundles/widget.umd.min.js +2 -1
- package/bundles/widget.umd.min.js.map +1 -0
- package/docs/api-canvas3ds.md +158 -0
- package/docs/api-checkout-button.md +912 -0
- package/docs/api-examples.md +65 -0
- package/docs/api-ps-widget.md +585 -0
- package/docs/api-vault-display.md +94 -0
- package/docs/api-widget.md +2444 -0
- package/docs/api-wrapper.md +78 -0
- package/docs/canvas3ds-examples.md +242 -0
- package/docs/cba-header.md +13 -0
- package/docs/cba-license.md +2 -0
- package/docs/checkout-examples.md +248 -0
- package/docs/header.md +15 -0
- package/docs/html/layout.html +78 -0
- package/docs/html/marked.js +23 -0
- package/docs/html/style.css +365 -0
- package/docs/install/npm.content.md +16 -0
- package/docs/install/npm.example.md +24 -0
- package/docs/install/umd.content.md +21 -0
- package/docs/install/umd.example.md +6 -0
- package/docs/install.md +53 -0
- package/docs/install.readme.t.md +17 -0
- package/docs/install.slate.t.md +17 -0
- package/docs/license.md +2 -0
- package/docs/partials/header.hbs +3 -0
- package/docs/ps-examples.md +129 -0
- package/docs/secure-remote-commerce-examples.md +258 -0
- package/docs/secure-remote-commerce.md +265 -0
- package/docs/vault-display-example.md +132 -0
- package/docs/wallet-buttons-examples.md +580 -0
- package/docs/wallet-buttons.md +424 -0
- package/docs/wallet-cba-buttons-examples.md +388 -0
- package/docs/widget-examples.md +134 -0
- package/package.json +164 -42
- package/slate.md +89 -88
- package/.nvmrc +0 -1
- package/api.d.ts +0 -1
- package/api.js +0 -1
- package/canvas3ds.d.ts +0 -1
- package/canvas3ds.js +0 -1
- package/checkout-button.d.ts +0 -1
- package/checkout-button.js +0 -1
- package/inicialization-guide.md +0 -7
- package/lib/api/api-base.js +0 -101
- package/lib/api/api-base.js.map +0 -1
- package/lib/api/api-charge-internal.js +0 -30
- package/lib/api/api-charge-internal.js.map +0 -1
- package/lib/api/api-charge.js +0 -49
- package/lib/api/api-charge.js.map +0 -1
- package/lib/api/api-internal.js +0 -13
- package/lib/api/api-internal.js.map +0 -1
- package/lib/api/api-service-internal.js +0 -18
- package/lib/api/api-service-internal.js.map +0 -1
- package/lib/api/api.js +0 -61
- package/lib/api/api.js.map +0 -1
- package/lib/api/index.d.ts +0 -1
- package/lib/api/index.js +0 -2
- package/lib/api/index.js.map +0 -1
- package/lib/canvas-3ds/canvas-3ds.js +0 -156
- package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
- package/lib/canvas-3ds/index.js +0 -2
- package/lib/canvas-3ds/index.js.map +0 -1
- package/lib/canvas-3ds/services/gpayments-service.js +0 -181
- package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
- package/lib/canvas-3ds/services/index.js +0 -2
- package/lib/canvas-3ds/services/index.js.map +0 -1
- package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
- package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -49
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
- package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
- package/lib/checkout-button/checkout-button.interface.js +0 -45
- package/lib/checkout-button/checkout-button.interface.js.map +0 -1
- package/lib/checkout-button/checkout-button.js +0 -265
- package/lib/checkout-button/checkout-button.js.map +0 -1
- package/lib/checkout-button/checkout-contextual-handler.js +0 -75
- package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
- package/lib/checkout-button/index.js +0 -85
- package/lib/checkout-button/index.js.map +0 -1
- package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -24
- package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
- package/lib/checkout-button/paypal/paypal.runner.js +0 -14
- package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
- package/lib/checkout-button/runner/base.runner.js +0 -13
- package/lib/checkout-button/runner/base.runner.js.map +0 -1
- package/lib/checkout-button/runner/contextual.runner.js +0 -40
- package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
- package/lib/checkout-button/runner/index.js +0 -11
- package/lib/checkout-button/runner/index.js.map +0 -1
- package/lib/checkout-button/runner/popup.runner.js +0 -68
- package/lib/checkout-button/runner/popup.runner.js.map +0 -1
- package/lib/checkout-button/runner/redirect.runner.js +0 -15
- package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -63
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
- package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
- package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
- package/lib/components/ability-guard.js +0 -44
- package/lib/components/ability-guard.js.map +0 -1
- package/lib/components/background.js +0 -193
- package/lib/components/background.js.map +0 -1
- package/lib/components/container.js +0 -60
- package/lib/components/container.js.map +0 -1
- package/lib/components/dispatcher.js +0 -39
- package/lib/components/dispatcher.js.map +0 -1
- package/lib/components/element-style.js +0 -52
- package/lib/components/element-style.js.map +0 -1
- package/lib/components/flypay-iframe-event.js +0 -28
- package/lib/components/flypay-iframe-event.js.map +0 -1
- package/lib/components/form-Interceptor.js +0 -38
- package/lib/components/form-Interceptor.js.map +0 -1
- package/lib/components/http-core.js +0 -57
- package/lib/components/http-core.js.map +0 -1
- package/lib/components/iframe-event.js +0 -84
- package/lib/components/iframe-event.js.map +0 -1
- package/lib/components/iframe.js +0 -62
- package/lib/components/iframe.js.map +0 -1
- package/lib/components/link.js +0 -59
- package/lib/components/link.js.map +0 -1
- package/lib/components/loader.js +0 -234
- package/lib/components/loader.js.map +0 -1
- package/lib/components/param.js +0 -147
- package/lib/components/param.js.map +0 -1
- package/lib/components/popup.js +0 -104
- package/lib/components/popup.js.map +0 -1
- package/lib/components/storage-dispatcher.js +0 -75
- package/lib/components/storage-dispatcher.js.map +0 -1
- package/lib/components/trigger.js +0 -49
- package/lib/components/trigger.js.map +0 -1
- package/lib/components/vault-display-iframe-event.js +0 -27
- package/lib/components/vault-display-iframe-event.js.map +0 -1
- package/lib/components/wallet-background.js +0 -60
- package/lib/components/wallet-background.js.map +0 -1
- package/lib/components/wallet-trigger.js +0 -27
- package/lib/components/wallet-trigger.js.map +0 -1
- package/lib/configs/env/env.js +0 -117
- package/lib/configs/env/env.js.map +0 -1
- package/lib/configs/sdk.js +0 -16
- package/lib/configs/sdk.js.map +0 -1
- package/lib/external-checkout/builder.js +0 -45
- package/lib/external-checkout/builder.js.map +0 -1
- package/lib/external-checkout/checker.js +0 -22
- package/lib/external-checkout/checker.js.map +0 -1
- package/lib/external-checkout/index.d.ts +0 -2
- package/lib/external-checkout/index.js +0 -3
- package/lib/external-checkout/index.js.map +0 -1
- package/lib/helper/access-token.js +0 -44
- package/lib/helper/access-token.js.map +0 -1
- package/lib/helper/browser.js +0 -79
- package/lib/helper/browser.js.map +0 -1
- package/lib/helper/event-emitter.js +0 -23
- package/lib/helper/event-emitter.js.map +0 -1
- package/lib/helper/event.js +0 -23
- package/lib/helper/event.js.map +0 -1
- package/lib/helper/ms.js +0 -32
- package/lib/helper/ms.js.map +0 -1
- package/lib/helper/object.js +0 -6
- package/lib/helper/object.js.map +0 -1
- package/lib/helper/url.js +0 -11
- package/lib/helper/url.js.map +0 -1
- package/lib/helper/uuid.js +0 -26
- package/lib/helper/uuid.js.map +0 -1
- package/lib/index.d.ts +0 -15
- package/lib/index.js +0 -15
- package/lib/index.js.map +0 -1
- package/lib/payment-source/builder.js +0 -49
- package/lib/payment-source/builder.js.map +0 -1
- package/lib/payment-source/index.js +0 -2
- package/lib/payment-source/index.js.map +0 -1
- package/lib/payment-source-widget/html-payment-source-widget.js +0 -167
- package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
- package/lib/payment-source-widget/index.js +0 -35
- package/lib/payment-source-widget/index.js.map +0 -1
- package/lib/payment-source-widget/interfaces.js +0 -2
- package/lib/payment-source-widget/interfaces.js.map +0 -1
- package/lib/payment-source-widget/payment-source-widget.js +0 -141
- package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
- package/lib/secure-remote-commerce/index.js +0 -2
- package/lib/secure-remote-commerce/index.js.map +0 -1
- package/lib/secure-remote-commerce/interfaces.js +0 -28
- package/lib/secure-remote-commerce/interfaces.js.map +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
- package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
- package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
- package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -238
- package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
- package/lib/vault-display-widget/index.js +0 -14
- package/lib/vault-display-widget/index.js.map +0 -1
- package/lib/vault-display-widget/vault-display-widget.js +0 -98
- package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
- package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
- package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/apple.wallet-service.js +0 -291
- package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -192
- package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
- package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/google.wallet-service.js +0 -268
- package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/index.js +0 -2
- package/lib/wallet-buttons/index.js.map +0 -1
- package/lib/wallet-buttons/interfaces.js +0 -1
- package/lib/wallet-buttons/interfaces.js.map +0 -1
- package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
- package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/paypal.wallet-service.js +0 -129
- package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
- package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/wallet-buttons.js +0 -454
- package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
- package/lib/wallet-buttons/wallet-service.js +0 -49
- package/lib/wallet-buttons/wallet-service.js.map +0 -1
- package/lib/widget/configuration.js +0 -259
- package/lib/widget/configuration.js.map +0 -1
- package/lib/widget/html-multi-widget.js +0 -380
- package/lib/widget/html-multi-widget.js.map +0 -1
- package/lib/widget/html-widget.js +0 -126
- package/lib/widget/html-widget.js.map +0 -1
- package/lib/widget/index.js +0 -132
- package/lib/widget/index.js.map +0 -1
- package/lib/widget/meta.js +0 -8
- package/lib/widget/meta.js.map +0 -1
- package/lib/widget/multi-widget.js +0 -436
- package/lib/widget/multi-widget.js.map +0 -1
- package/lib/widget/style.js +0 -204
- package/lib/widget/style.js.map +0 -1
- package/payment-source-widget.d.ts +0 -1
- package/payment-source-widget.js +0 -1
- package/tslint.json +0 -130
- package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
- package/typings/globals/jasmine/index.d.ts +0 -576
- package/typings/globals/jasmine-ajax/index.d.ts +0 -83
- package/typings/globals/jquery/index.d.ts +0 -3759
- package/typings/index.d.ts +0 -4
- package/vault-display-widget.d.ts +0 -1
- package/vault-display-widget.js +0 -1
- package/vendors/zipmoney.d.ts +0 -18
- package/vendors/zipmoney.js +0 -2
- package/widget.d.ts +0 -1
- package/widget.js +0 -1
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
import { AccessToken } from './../helper/access-token';
|
|
2
|
-
import { SDK } from '../configs/sdk';
|
|
3
|
-
import { Link, WIDGET_LINK } from '../components/link';
|
|
4
|
-
import { Configuration } from './configuration';
|
|
5
|
-
import { STYLE, TEXT, ELEMENT, SUPPORTED_CARD_TYPES, FORM_FIELD, } from '../components/param';
|
|
6
|
-
import { ObjectHelper } from '../helper/object';
|
|
7
|
-
import { stylableElements, } from "./style";
|
|
8
|
-
import { ElementStyle } from "../components/element-style";
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* Class MultiWidget include method for for creating iframe url
|
|
12
|
-
* @constructor
|
|
13
|
-
*
|
|
14
|
-
* @param {string} accessToken - PayDock users access token or public key
|
|
15
|
-
* @param {(Configuration | string | Configuration[] | string[])} conf - exemplar[s] Configuration class OR configuration token
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* var widget = new MultiWidget('accessToken','configurationToken'); // With a pre-created configuration token
|
|
19
|
-
*
|
|
20
|
-
* var widget = new MultiWidget('accessToken',['configurationToken', 'configurationToken2']); // With pre-created configuration tokens
|
|
21
|
-
*
|
|
22
|
-
* var widget = new MultiWidget('accessToken', new Configuration('gatewayId')); With Configuration
|
|
23
|
-
*
|
|
24
|
-
* var widget = new MultiWidget('accessToken',[ With Configurations
|
|
25
|
-
* Configuration('gatewayId'),
|
|
26
|
-
* Configuration('gatewayId', 'bank_account')
|
|
27
|
-
* ]);
|
|
28
|
-
*/
|
|
29
|
-
class MultiWidget {
|
|
30
|
-
constructor(accessToken, conf) {
|
|
31
|
-
this.configs = [];
|
|
32
|
-
this.configTokens = [];
|
|
33
|
-
this.link = new Link(WIDGET_LINK);
|
|
34
|
-
if (SDK.version) {
|
|
35
|
-
this.link.setParams({
|
|
36
|
-
sdk_version: SDK.version,
|
|
37
|
-
sdk_type: SDK.type,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
if (!!AccessToken.validateJWT(accessToken)) {
|
|
41
|
-
this.link.setParams({ token: accessToken });
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
this.link.setParams({ public_key: accessToken });
|
|
45
|
-
}
|
|
46
|
-
this.accessToken = accessToken;
|
|
47
|
-
if (!conf || (Array.isArray(conf) && !conf.length))
|
|
48
|
-
throw Error('configuration token is required');
|
|
49
|
-
if (typeof conf === 'string')
|
|
50
|
-
this.configTokens.push(conf);
|
|
51
|
-
else if (conf instanceof Configuration)
|
|
52
|
-
this.configs.push(conf);
|
|
53
|
-
else if (Array.isArray(conf) && typeof conf[0] === 'string')
|
|
54
|
-
this.configTokens = conf;
|
|
55
|
-
else if (Array.isArray(conf) && conf[0] instanceof Configuration)
|
|
56
|
-
this.configs = conf;
|
|
57
|
-
else
|
|
58
|
-
throw Error('Unsupported type of configuration token');
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Object contain styles for widget
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* widget.setStyles({
|
|
65
|
-
* background_color: 'rgb(0, 0, 0)',
|
|
66
|
-
* border_color: 'yellow',
|
|
67
|
-
* text_color: '#FFFFAA',
|
|
68
|
-
* button_color: 'rgba(255, 255, 255, 0.9)',
|
|
69
|
-
* font_size: '20px'
|
|
70
|
-
* fort_family: 'fantasy'
|
|
71
|
-
* });
|
|
72
|
-
* @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
|
|
73
|
-
*/
|
|
74
|
-
setStyles(styles) {
|
|
75
|
-
for (let index in styles) {
|
|
76
|
-
if (styles.hasOwnProperty(index))
|
|
77
|
-
this.setStyle(index, styles[index]);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Method to set a country code mask for the phone input.
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* widget.usePhoneCountryMask();
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* widget.usePhoneCountryMask({
|
|
88
|
-
* default_country: 'au',
|
|
89
|
-
* preferred_countries: ['au', 'gb'],
|
|
90
|
-
* only_countries: ['au', 'gb', 'us', 'ua']
|
|
91
|
-
* });
|
|
92
|
-
*
|
|
93
|
-
* @param {object} [options] - Options for configure the phone mask.
|
|
94
|
-
* @param {string} [options.default_country] - Set a default country for the mask.
|
|
95
|
-
* @param {Array.<string>} [options.preferred_countries] - Set list of preferred countries for the top of the select box .
|
|
96
|
-
* @param {Array.<string>} [options.only_countries] - Set list of countries to show in the select box.
|
|
97
|
-
*/
|
|
98
|
-
usePhoneCountryMask(options) {
|
|
99
|
-
if (!options)
|
|
100
|
-
return this.link.setParams({ use_country_phone_mask: true });
|
|
101
|
-
if (options.only_countries && (!/^[a-z]+$/.test(options.only_countries.join('')) || options.only_countries.length * 2 !== options.only_countries.join('').length))
|
|
102
|
-
return console.warn(`Widget::usePhoneCountryMask[s: only_countries - unsupported symbols or incorrect length of value`);
|
|
103
|
-
if (options.preferred_countries && (!/^[a-z]+$/.test(options.preferred_countries.join('')) || options.preferred_countries.length * 2 !== options.preferred_countries.join('').length))
|
|
104
|
-
return console.warn(`Widget::usePhoneCountryMask[s: preferred_countries - unsupported symbols or incorrect length of value`);
|
|
105
|
-
if (options.default_country && options.default_country.length !== 2)
|
|
106
|
-
return console.warn(`Widget::usePhoneCountryMask[s: default_country - incorrect value length`);
|
|
107
|
-
this.link.setParams({ use_country_phone_mask: true });
|
|
108
|
-
if (options.only_countries)
|
|
109
|
-
this.link.setParams({ phone_mask_only_countries: options.only_countries.join(',') });
|
|
110
|
-
if (options.preferred_countries)
|
|
111
|
-
this.link.setParams({ phone_mask_preferred_countries: options.preferred_countries.join(',') });
|
|
112
|
-
if (options.default_country)
|
|
113
|
-
this.link.setParams({ phone_mask_default_country: options.default_country });
|
|
114
|
-
}
|
|
115
|
-
setStyle(param, value) {
|
|
116
|
-
if (ObjectHelper.values(STYLE).indexOf(param) !== -1)
|
|
117
|
-
this.link.setParams({ [param]: value });
|
|
118
|
-
else
|
|
119
|
-
console.warn(`Widget::setStyle[s: unsupported style param ${param}`);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Method for set different texts inside the widget
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* widget.setTexts({
|
|
126
|
-
* title: 'Your card',
|
|
127
|
-
* finish_text: 'Payment resource was successfully accepted',
|
|
128
|
-
* title_description: '* indicates required field',
|
|
129
|
-
* submit_button: 'Save',
|
|
130
|
-
* submit_button_processing: 'Load...',
|
|
131
|
-
* });
|
|
132
|
-
*
|
|
133
|
-
* @param {ITexts} fields - name of text items which can be shown in widget [TEXT]{@link TEXT}
|
|
134
|
-
*/
|
|
135
|
-
setTexts(texts) {
|
|
136
|
-
for (let index in texts) {
|
|
137
|
-
if (texts.hasOwnProperty(index))
|
|
138
|
-
this.setText(index, texts[index]);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
setText(param, value) {
|
|
142
|
-
if (ObjectHelper.values(TEXT).indexOf(param) !== -1)
|
|
143
|
-
this.link.setParams({ [param]: value });
|
|
144
|
-
else
|
|
145
|
-
console.warn(`Widget::setText[s: unsupported text param ${param}`);
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Method for set styles for different elements and states
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* widget.setElementStyle('input', {
|
|
152
|
-
* border: 'green solid 1px'
|
|
153
|
-
* });
|
|
154
|
-
*
|
|
155
|
-
* widget.setElementStyle('input', 'focus', {
|
|
156
|
-
* border: 'blue solid 1px'
|
|
157
|
-
* });
|
|
158
|
-
*
|
|
159
|
-
* widget.setElementStyle('input', 'error', {
|
|
160
|
-
* border: 'red solid 1px'
|
|
161
|
-
* });
|
|
162
|
-
*
|
|
163
|
-
* @param {string} element - type of element for styling. These elements are available [STYLABLE_ELEMENT]{@link STYLABLE_ELEMENT}
|
|
164
|
-
* @param {string} [state] - state of element for styling. These states are available [STYLABLE_ELEMENT_STATE]{@link STYLABLE_ELEMENT_STATE}
|
|
165
|
-
* @param {IElementStyleInput | IElementStyleSubmitButton | IElementStyleLabel | IElementStyleTitle | IElementStyleTitleDescription} styles - styles list
|
|
166
|
-
*/
|
|
167
|
-
setElementStyle(element, a2, a3) {
|
|
168
|
-
let state = (arguments.length === 3)
|
|
169
|
-
? a2
|
|
170
|
-
: null;
|
|
171
|
-
let styles = (arguments.length === 3)
|
|
172
|
-
? a3
|
|
173
|
-
: a2;
|
|
174
|
-
if (!ElementStyle.check(stylableElements, element, state, styles))
|
|
175
|
-
return console.warn(`Styles for "${element}" element with "${state || 'default'}" state was ignored because some of the arguments are unacceptable`);
|
|
176
|
-
this.link.concatParams({ element_styles: ElementStyle.encode(element, state, styles) });
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* The method to set the predefined values for the form fields inside the widget
|
|
180
|
-
*
|
|
181
|
-
* @example
|
|
182
|
-
* widget.setFormValues({
|
|
183
|
-
* email: 'predefined@email.com',
|
|
184
|
-
* card_name: 'Houston'
|
|
185
|
-
* });
|
|
186
|
-
*
|
|
187
|
-
* @param { Object } fieldValues - Key of object is one of [FORM_FIELD]{@link FORM_FIELD}, The object value is what we are expecting
|
|
188
|
-
*/
|
|
189
|
-
setFormValues(fieldValues) {
|
|
190
|
-
for (let key in fieldValues) {
|
|
191
|
-
if (fieldValues.hasOwnProperty(key))
|
|
192
|
-
this.setFormValue(key, fieldValues[key]);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
setFormValue(key, value) {
|
|
196
|
-
if (ObjectHelper.values(FORM_FIELD).indexOf(key) === -1)
|
|
197
|
-
return console.warn(`Widget::setFormValues[s: unsupported field ${key}`);
|
|
198
|
-
if (/\,/.test(value) || /\:/.test(value))
|
|
199
|
-
return console.warn(`Widget::setFormValues[s: ${key} - unsupported symbols (: or ,) in value`);
|
|
200
|
-
if (typeof this.link.getParams().form_values === 'string' && this.link.getParams().form_values.length)
|
|
201
|
-
this.link.setParams({ form_values: `${this.link.getParams().form_values},${key}:${value}` });
|
|
202
|
-
else
|
|
203
|
-
this.link.setParams({ form_values: `${key}:${value}` });
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* The method to set custom form field labels
|
|
207
|
-
*
|
|
208
|
-
* @example
|
|
209
|
-
* widget.setFormPlaceholders({
|
|
210
|
-
* card_name: 'Card Holder Name',
|
|
211
|
-
* email: 'Email For Receipt'
|
|
212
|
-
* })
|
|
213
|
-
*
|
|
214
|
-
* @param { Object } fieldLabels - Key of object is one of [FORM_FIELD]{@link FORM_FIELD}, The object value is what we are expecting
|
|
215
|
-
*/
|
|
216
|
-
setFormLabels(fieldLabels) {
|
|
217
|
-
for (let key in fieldLabels) {
|
|
218
|
-
if (fieldLabels.hasOwnProperty(key))
|
|
219
|
-
this.setFormLabel(key, fieldLabels[key]);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
setFormLabel(key, label) {
|
|
223
|
-
if (ObjectHelper.values(FORM_FIELD).indexOf(key) === -1)
|
|
224
|
-
return console.warn(`Widget::setFormLabel[s: unsupported field ${key}`);
|
|
225
|
-
const modifiedLabel = (label === null || label === '')
|
|
226
|
-
? ' '
|
|
227
|
-
: label;
|
|
228
|
-
if (/\,/.test(modifiedLabel) || /\:/.test(modifiedLabel))
|
|
229
|
-
return console.warn(`Widget::setFormLabel[s: ${key} - unsupported symbols (: or ,) in value`);
|
|
230
|
-
this.link.concatParams({ form_labels: `${key}:${modifiedLabel}` });
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* The method to set custom form fields placeholders
|
|
234
|
-
*
|
|
235
|
-
* @example
|
|
236
|
-
* widget.setFormPlaceholders({
|
|
237
|
-
* card_name: 'Input your card holder name...',
|
|
238
|
-
* email: 'Input your email, like test@example.com'
|
|
239
|
-
* })
|
|
240
|
-
*
|
|
241
|
-
* @param { Object } fieldPlaceholders - Key of object is one of [FORM_FIELD]{@link FORM_FIELD}, Value of object is expected placeholder
|
|
242
|
-
*/
|
|
243
|
-
setFormPlaceholders(fieldPlaceholders) {
|
|
244
|
-
for (let key in fieldPlaceholders) {
|
|
245
|
-
if (fieldPlaceholders.hasOwnProperty(key))
|
|
246
|
-
this.setFormPlaceholder(key, fieldPlaceholders[key]);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
setFormPlaceholder(key, placeholder) {
|
|
250
|
-
if (ObjectHelper.values(FORM_FIELD).indexOf(key) === -1)
|
|
251
|
-
return console.warn(`Widget::setFormPlaceholder[s: unsupported field ${key}`);
|
|
252
|
-
const modifiedPlaceholder = (placeholder === null || placeholder === '')
|
|
253
|
-
? ' '
|
|
254
|
-
: placeholder;
|
|
255
|
-
if (/\,/.test(modifiedPlaceholder) || /\:/.test(modifiedPlaceholder))
|
|
256
|
-
return console.warn(`Widget::setFormPlaceholder[s: ${key} - unsupported symbols (: or ,) in value`);
|
|
257
|
-
this.link.concatParams({ form_placeholders: `${key}:${modifiedPlaceholder}` });
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* The method to set the full configuration for the all specific form elements (label, placeholder, value)
|
|
261
|
-
* You can also use the other method for the partial configuration like: setFormValues, setFormPlaceholder, setFormLabel
|
|
262
|
-
*
|
|
263
|
-
* @example
|
|
264
|
-
* widget.setFormElements([
|
|
265
|
-
* {
|
|
266
|
-
* field: 'card_name',
|
|
267
|
-
* placeholder: 'Input your card holder name...',
|
|
268
|
-
* label: 'Card Holder Name',
|
|
269
|
-
* value: 'Houston',
|
|
270
|
-
* },
|
|
271
|
-
* {
|
|
272
|
-
* field: 'email',
|
|
273
|
-
* placeholder: 'Input your email, like test@example.com',
|
|
274
|
-
* label: 'Email For Receipt',
|
|
275
|
-
* value: 'predefined@email.com',
|
|
276
|
-
* },
|
|
277
|
-
* ])
|
|
278
|
-
*
|
|
279
|
-
* @param { string } elements - The list of elements
|
|
280
|
-
* @param { string } elements[].field - Field name of the element [FORM_FIELD]{@link FORM_FIELD}
|
|
281
|
-
* @param { string } elements[].placeholder - Set custom form field placeholder
|
|
282
|
-
* @param { string } elements[].label - Set custom labels near form field
|
|
283
|
-
* @param { string } elements[].value - Set predefined values for the form field
|
|
284
|
-
*/
|
|
285
|
-
setFormElements(elements) {
|
|
286
|
-
elements.forEach((element) => this.setFormElement(element));
|
|
287
|
-
}
|
|
288
|
-
setFormElement(element) {
|
|
289
|
-
if (element.value)
|
|
290
|
-
this.setFormValue(element.field, element.value);
|
|
291
|
-
if (element.label)
|
|
292
|
-
this.setFormLabel(element.field, element.label);
|
|
293
|
-
if (element.placeholder)
|
|
294
|
-
this.setFormPlaceholder(element.field, element.placeholder);
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* The method to change the widget icons
|
|
298
|
-
*
|
|
299
|
-
* @TODO DEPRECATED
|
|
300
|
-
*/
|
|
301
|
-
setIcons(icons) {
|
|
302
|
-
for (let key in icons) {
|
|
303
|
-
if (icons.hasOwnProperty(key))
|
|
304
|
-
this.setIcon(key, icons[key]);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
setIcon(key, value) {
|
|
308
|
-
if (/\,/.test(value) || /\:/.test(value))
|
|
309
|
-
return console.warn(`Widget::setIcon[s: ${key} - unsupported symbols (: or ,) in value`);
|
|
310
|
-
if (typeof this.link.getParams().icons === 'string' && this.link.getParams().icons.length)
|
|
311
|
-
this.link.setParams({ icons: `${this.link.getParams().icons},${key}:${value}` });
|
|
312
|
-
else
|
|
313
|
-
this.link.setParams({ icons: `${key}:${value}` });
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* Using this method you can set hidden elements inside widget
|
|
317
|
-
*
|
|
318
|
-
* @example
|
|
319
|
-
* widget.setHiddenElements(['submit_button', 'email']);
|
|
320
|
-
*
|
|
321
|
-
* @param {string[]} elements - list of element which can be hidden [ELEMENT]{@link ELEMENT} || [FORM_FIELD]{@link FORM_FIELD}
|
|
322
|
-
*/
|
|
323
|
-
setHiddenElements(elements) {
|
|
324
|
-
let filteredElements = [];
|
|
325
|
-
let supportedElements = ObjectHelper.values(ELEMENT).concat(ObjectHelper.values(FORM_FIELD));
|
|
326
|
-
for (let index in elements) {
|
|
327
|
-
if (!elements.hasOwnProperty(index))
|
|
328
|
-
continue;
|
|
329
|
-
if (supportedElements.indexOf(elements[index]) !== -1)
|
|
330
|
-
filteredElements.push(elements[index]);
|
|
331
|
-
else
|
|
332
|
-
console.warn(`Widget::setHiddenElements: unsupported element ${elements[index]}`);
|
|
333
|
-
}
|
|
334
|
-
if (filteredElements.length)
|
|
335
|
-
this.link.concatParams({ hidden_elements: filteredElements.join(',') });
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Current method can set custom ID to identify the data in the future
|
|
339
|
-
*
|
|
340
|
-
* @example
|
|
341
|
-
* widget.setRefId('id');
|
|
342
|
-
*
|
|
343
|
-
* @param {string} refId - custom id
|
|
344
|
-
*/
|
|
345
|
-
setRefId(refId) {
|
|
346
|
-
this.link.setParams({ ref_id: refId });
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Current method can add visual validation from gateway to widget's form fields
|
|
350
|
-
*
|
|
351
|
-
* @example
|
|
352
|
-
* widget.useGatewayFieldValidation();
|
|
353
|
-
*/
|
|
354
|
-
useGatewayFieldValidation() {
|
|
355
|
-
this.link.setParams({ fields_validation: true });
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* Current method can set icons of supported card types
|
|
359
|
-
*
|
|
360
|
-
* @example
|
|
361
|
-
*
|
|
362
|
-
* widget.setSupportedCardIcons(['mastercard', 'visa'], validateCardNumberInput);
|
|
363
|
-
*
|
|
364
|
-
* @param {string[]} elements - [SUPPORTED_CARD_TYPES]{@link SUPPORTED_CARD_TYPES}
|
|
365
|
-
* @param {boolean} validateCardNumberInput - [validateCardNumberInput=false] - using this param you allow validation for card number input on supported card types
|
|
366
|
-
*/
|
|
367
|
-
setSupportedCardIcons(elements, validateCardNumberInput) {
|
|
368
|
-
let supportedCards = [];
|
|
369
|
-
for (let index in elements) {
|
|
370
|
-
if (!elements.hasOwnProperty(index))
|
|
371
|
-
continue;
|
|
372
|
-
if (ObjectHelper.values(SUPPORTED_CARD_TYPES).indexOf(elements[index]) !== -1)
|
|
373
|
-
supportedCards.push(elements[index]);
|
|
374
|
-
else
|
|
375
|
-
console.warn(`Widget::cardTypes: unsupported type of cards ${elements[index]}`);
|
|
376
|
-
}
|
|
377
|
-
if (supportedCards.length)
|
|
378
|
-
this.link.concatParams({ supported_card_types: supportedCards.join(',') });
|
|
379
|
-
if (validateCardNumberInput)
|
|
380
|
-
this.link.setParams({ validate_card_types: validateCardNumberInput });
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Current method can change environment. By default environment = sandbox.
|
|
384
|
-
* Also we can change domain alias for this environment. By default domain_alias = paydock.com
|
|
385
|
-
*
|
|
386
|
-
* @example
|
|
387
|
-
* widget.setEnv('production', 'paydock.com');
|
|
388
|
-
* @param {string} env - sandbox, production
|
|
389
|
-
* @param {string} [alias] - Own domain alias
|
|
390
|
-
*/
|
|
391
|
-
setEnv(env, alias) {
|
|
392
|
-
this.link.setEnv(env, alias);
|
|
393
|
-
for (let index in this.configs) {
|
|
394
|
-
if (this.configs.hasOwnProperty(index))
|
|
395
|
-
this.configs[index].setEnv(env, alias);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
getEnv() {
|
|
399
|
-
this.link.getEnv();
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* Method for creating iframe url
|
|
403
|
-
*
|
|
404
|
-
* @example
|
|
405
|
-
* widget.loadIFrameUrl(function (url) {
|
|
406
|
-
* console.log(url);
|
|
407
|
-
* }, function (errors) {
|
|
408
|
-
* console.log(errors);
|
|
409
|
-
* });
|
|
410
|
-
*/
|
|
411
|
-
loadIFrameUrl(cb, errorCb = (errors) => { }) {
|
|
412
|
-
this.link.setParams({ configuration_tokens: '' });
|
|
413
|
-
if (this.configTokens.length) {
|
|
414
|
-
this.link.setParams({ configuration_tokens: this.configTokens.join(',') });
|
|
415
|
-
return cb(this.link.getUrl());
|
|
416
|
-
}
|
|
417
|
-
Configuration.createEachToken(this.accessToken, this.configs, (tokens) => {
|
|
418
|
-
this.link.concatParams({ configuration_tokens: tokens.join(',') });
|
|
419
|
-
return cb(this.link.getUrl());
|
|
420
|
-
}, (errors) => {
|
|
421
|
-
errorCb(errors);
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* Method for setting a custom language code
|
|
426
|
-
*
|
|
427
|
-
* @example
|
|
428
|
-
* config.setLanguage('en');
|
|
429
|
-
* @param {string} code - ISO 639-1
|
|
430
|
-
*/
|
|
431
|
-
setLanguage(code) {
|
|
432
|
-
this.link.setParams({ language: code });
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
export { MultiWidget };
|
|
436
|
-
//# sourceMappingURL=../../src/lib/widget/multi-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multi-widget.js","sourceRoot":"","sources":["../../widget/multi-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAIL,KAAK,EACL,IAAI,EACJ,OAAO,EACP,oBAAoB,EAEpB,UAAU,GAGX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAMH,gBAAgB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW;IAWb,YAAY,WAAmB,EAAE,IAAS;QARhC,YAAO,GAAoB,EAAE,CAAC;QAC9B,iBAAY,GAAa,EAAE,CAAC;QAQlC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC;QAElC,IAAG,GAAG,CAAC,OAAO,EAAE;YACZ,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;gBAChB,WAAW,EAAE,GAAG,CAAC,OAAO;gBACxB,QAAQ,EAAE,GAAG,CAAC,IAAI;aACrB,CAAC,CAAC;SACN;QAED,IAAI,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE;YACxC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,KAAK,EAAE,WAAW,EAAC,CAAC,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G,CAAC,EAAC,CAAC,CAAC;YACjE,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAClC,CAAC,EACD,CAAC,MAAgB,EAAE,EAAE;YACjB,OAAO,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACX,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAAC,IAAI;QACnB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;IACzC,CAAC;CACJ;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/lib/widget/style.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Current constant include available type of element for styling
|
|
3
|
-
* @const STYLABLE_ELEMENT
|
|
4
|
-
* @type {object}
|
|
5
|
-
* @param {string} INPUT=input.
|
|
6
|
-
* These states are available: [STYLABLE_ELEMENT_STATE.ERROR]{@link STYLABLE_ELEMENT_STATE}, [STYLABLE_ELEMENT_STATE.FOCUS]{@link STYLABLE_ELEMENT_STATE}.
|
|
7
|
-
* These styles are available [IElementStyleInput]{@link IElementStyleInput}
|
|
8
|
-
* @param {string} SUBMIT_BUTTON=submit_button
|
|
9
|
-
* These states are available: [STYLABLE_ELEMENT_STATE.HOVER]{@link STYLABLE_ELEMENT_STATE}.
|
|
10
|
-
* These styles are available [IElementStyleSubmitButton]{@link IElementStyleSubmitButton}
|
|
11
|
-
* @param {string} LABEL=label.
|
|
12
|
-
* These styles are available [IElementStyleLabel]{@link IElementStyleLabel}
|
|
13
|
-
* @param {string} TITLE=title.
|
|
14
|
-
* These styles are available [IElementStyleTitle]{@link IElementStyleTitle}
|
|
15
|
-
* @param {string} TITLE_DESCRIPTION=title_description.
|
|
16
|
-
* These styles are available [IElementStyleTitleDescription]{@link IElementStyleTitleDescription}
|
|
17
|
-
* */
|
|
18
|
-
export const STYLABLE_ELEMENT = {
|
|
19
|
-
INPUT: 'input',
|
|
20
|
-
SUBMIT_BUTTON: 'submit_button',
|
|
21
|
-
LABEL: 'label',
|
|
22
|
-
TITLE: 'title',
|
|
23
|
-
TITLE_DESCRIPTION: 'title_description',
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Current constant include available states of element for styling
|
|
27
|
-
* @const STYLABLE_ELEMENT_STATE
|
|
28
|
-
* @type {object}
|
|
29
|
-
* @param {string} ERROR=error client|server validation. This state applies to: input
|
|
30
|
-
* @param {string} FOCUS=focus focus. This state applies to: input
|
|
31
|
-
* @param {string} HOVER=hover focus. This state applies to: submit_button
|
|
32
|
-
* */
|
|
33
|
-
export const STYLABLE_ELEMENT_STATE = {
|
|
34
|
-
ERROR: 'error',
|
|
35
|
-
FOCUS: 'focus',
|
|
36
|
-
HOVER: 'hover',
|
|
37
|
-
};
|
|
38
|
-
export const stylableElements = [
|
|
39
|
-
{
|
|
40
|
-
element: STYLABLE_ELEMENT.INPUT,
|
|
41
|
-
states: [
|
|
42
|
-
STYLABLE_ELEMENT_STATE.FOCUS,
|
|
43
|
-
STYLABLE_ELEMENT_STATE.ERROR,
|
|
44
|
-
],
|
|
45
|
-
styles: [
|
|
46
|
-
'color',
|
|
47
|
-
'border',
|
|
48
|
-
'border_radius',
|
|
49
|
-
'background_color',
|
|
50
|
-
'height',
|
|
51
|
-
'text_decoration',
|
|
52
|
-
'font_size',
|
|
53
|
-
'font_family',
|
|
54
|
-
'line_height',
|
|
55
|
-
'font_weight',
|
|
56
|
-
'padding',
|
|
57
|
-
'margin',
|
|
58
|
-
'transition',
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
element: STYLABLE_ELEMENT.SUBMIT_BUTTON,
|
|
63
|
-
states: [
|
|
64
|
-
STYLABLE_ELEMENT_STATE.HOVER,
|
|
65
|
-
],
|
|
66
|
-
styles: [
|
|
67
|
-
'color',
|
|
68
|
-
'border',
|
|
69
|
-
'border_radius',
|
|
70
|
-
'background_color',
|
|
71
|
-
'text_decoration',
|
|
72
|
-
'font_size',
|
|
73
|
-
'font_family',
|
|
74
|
-
'line_height',
|
|
75
|
-
'font_weight',
|
|
76
|
-
'padding',
|
|
77
|
-
'margin',
|
|
78
|
-
'transition',
|
|
79
|
-
'opacity',
|
|
80
|
-
],
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
element: STYLABLE_ELEMENT.LABEL,
|
|
84
|
-
states: [],
|
|
85
|
-
styles: [
|
|
86
|
-
'color',
|
|
87
|
-
'text_decoration',
|
|
88
|
-
'font_size',
|
|
89
|
-
'font_family',
|
|
90
|
-
'line_height',
|
|
91
|
-
'font_weight',
|
|
92
|
-
'padding',
|
|
93
|
-
'margin',
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
element: STYLABLE_ELEMENT.TITLE,
|
|
98
|
-
states: [],
|
|
99
|
-
styles: [
|
|
100
|
-
'color',
|
|
101
|
-
'text_decoration',
|
|
102
|
-
'font_size',
|
|
103
|
-
'font_family',
|
|
104
|
-
'line_height',
|
|
105
|
-
'font_weight',
|
|
106
|
-
'padding',
|
|
107
|
-
'margin',
|
|
108
|
-
'text_align',
|
|
109
|
-
],
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
element: STYLABLE_ELEMENT.TITLE_DESCRIPTION,
|
|
113
|
-
states: [],
|
|
114
|
-
styles: [
|
|
115
|
-
'color',
|
|
116
|
-
'text_decoration',
|
|
117
|
-
'font_size',
|
|
118
|
-
'font_family',
|
|
119
|
-
'line_height',
|
|
120
|
-
'font_weight',
|
|
121
|
-
'padding',
|
|
122
|
-
'margin',
|
|
123
|
-
'text_align',
|
|
124
|
-
],
|
|
125
|
-
},
|
|
126
|
-
];
|
|
127
|
-
/**
|
|
128
|
-
* Interface for styling input element.
|
|
129
|
-
* @interface IElementStyleInput
|
|
130
|
-
*
|
|
131
|
-
* @param {string} [color] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/color}
|
|
132
|
-
* @param {string} [border] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/border}
|
|
133
|
-
* @param {string} [border_radius] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius}
|
|
134
|
-
* @param {string} [background_color] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/background-color}
|
|
135
|
-
* @param {string} [height] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/height}
|
|
136
|
-
* @param {string} [text_decoration] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration}
|
|
137
|
-
* @param {string} [font_size] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}
|
|
138
|
-
* @param {string} [font_family] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-family}
|
|
139
|
-
* @param {string} [transition] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/transition}
|
|
140
|
-
* @param {string} [line_height] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/line-height}
|
|
141
|
-
* @param {string} [font_weight] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}
|
|
142
|
-
* @param {string} [padding] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding}
|
|
143
|
-
* @param {string} [margin] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin}
|
|
144
|
-
*/
|
|
145
|
-
/**
|
|
146
|
-
* Interface for styling submit_button element.
|
|
147
|
-
* @interface IElementStyleSubmitButton
|
|
148
|
-
*
|
|
149
|
-
* @param {string} [color] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/color}
|
|
150
|
-
* @param {string} [border] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/border}
|
|
151
|
-
* @param {string} [border_radius] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius}
|
|
152
|
-
* @param {string} [background_color] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/background-color}
|
|
153
|
-
* @param {string} [text_decoration] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration}
|
|
154
|
-
* @param {string} [font_size] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}
|
|
155
|
-
* @param {string} [font_family] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-family}
|
|
156
|
-
* @param {string} [padding] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding}
|
|
157
|
-
* @param {string} [margin] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin}
|
|
158
|
-
* @param {string} [transition] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/transition}
|
|
159
|
-
* @param {string} [line_height] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/line-height}
|
|
160
|
-
* @param {string} [font_weight] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}
|
|
161
|
-
* @param {string} [opacity] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/opacity}
|
|
162
|
-
*/
|
|
163
|
-
/**
|
|
164
|
-
* Interface for styling label element.
|
|
165
|
-
* @interface IElementStyleLabel
|
|
166
|
-
*
|
|
167
|
-
* @param {string} [color] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/color}
|
|
168
|
-
* @param {string} [text_decoration] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration}
|
|
169
|
-
* @param {string} [font_size] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}
|
|
170
|
-
* @param {string} [font_family] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-family}
|
|
171
|
-
* @param {string} [line_height] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/line-height}
|
|
172
|
-
* @param {string} [font_weight] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}
|
|
173
|
-
* @param {string} [padding] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding}
|
|
174
|
-
* @param {string} [margin] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin}
|
|
175
|
-
*/
|
|
176
|
-
/**
|
|
177
|
-
* Interface for styling title element.
|
|
178
|
-
* @interface IElementStyleTitle
|
|
179
|
-
*
|
|
180
|
-
* @param {string} [color] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/color}
|
|
181
|
-
* @param {string} [text_decoration] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration}
|
|
182
|
-
* @param {string} [font_size] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}
|
|
183
|
-
* @param {string} [font_family] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-family}
|
|
184
|
-
* @param {string} [line_height] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/line-height}
|
|
185
|
-
* @param {string} [font_weight] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}
|
|
186
|
-
* @param {string} [padding] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding}
|
|
187
|
-
* @param {string} [margin] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin}
|
|
188
|
-
* @param {string} ['text-align',] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-align}
|
|
189
|
-
*/
|
|
190
|
-
/**
|
|
191
|
-
* Interface for styling title_description element.
|
|
192
|
-
* @interface IElementStyleTitleDescription
|
|
193
|
-
*
|
|
194
|
-
* @param {string} [color] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/color}
|
|
195
|
-
* @param {string} [text_decoration] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration}
|
|
196
|
-
* @param {string} [font_size] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}
|
|
197
|
-
* @param {string} [font_family] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-family}
|
|
198
|
-
* @param {string} [line_height] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/line-height}
|
|
199
|
-
* @param {string} [font_weight] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}
|
|
200
|
-
* @param {string} [padding] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding}
|
|
201
|
-
* @param {string} [margin] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin}
|
|
202
|
-
* @param {string} ['text-align',] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-align}
|
|
203
|
-
*/
|
|
204
|
-
//# sourceMappingURL=../../src/lib/widget/style.js.map
|
package/lib/widget/style.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../widget/style.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;KAgBK;AACL,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,i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