New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cardfunc/element

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cardfunc/element - npm Package Compare versions

Comparing version 0.0.31 to 0.0.32

dist/cardfunc-element/p-00jidvrm.entry.js

2

dist/cardfunc-element/cardfunc-element.esm.js

@@ -1,1 +0,1 @@

import{p as e,b as o}from"./p-c87337b7.js";e().then(e=>o([["p-m2cztfcj",[[2,"smoothly-addresses",{allowed:[1],value:[1025],editable:[4]},[[0,"trigger","onTrigger"]]]]],["p-ixh3y4cd",[[6,"smoothly-notifier",{notice:[1]},[[0,"trigger","onTrigger"],[0,"notice","onNotice"]]]]],["p-j7qusayl",[[0,"smoothly-urlencoded",{data:[1]}]]],["p-srhb3et1",[[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["p-blb59noq",[[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}]]],["p-zi5clpkw",[[4,"smoothly-banner",{heading:[1]}]]],["p-pea1s2rv",[[2,"smoothly-checkbox",{name:[1],value:[1],label:[1],checked:[1540]}]]],["p-ab4hehzu",[[2,"smoothly-display-amount",{amount:[8],currency:[1]}]]],["p-4id1ubpe",[[2,"smoothly-display-date-time",{datetime:[1]}]]],["p-mzkekmaw",[[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}]]],["p-hvebildm",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-1777dbgd",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-wybaxz1j",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-xanay40t",[[0,"smoothly-tuple",{tuple:[16]}]]],["p-ndvyyzcd",[[2,"smoothly-spinner",{active:[516]}]]],["p-gyxcqyti",[[1,"cardfunc-element",{apiKey:[1,"api-key"],state:[1537],value:[1040],theme:[32],verify:[32],authorization:[32],payload:[32],submit:[64]},[[0,"trigger","handleTrigger"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[1]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-frame",{url:[1],name:[1],send:[64]}],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],document:[32]}],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],name:[1],value:[8]},[[0,"click","onClick"]]]]],["p-0qjeqwvk",[[2,"smoothly-address-edit",{value:[1]},[[0,"trigger","onTrigger"]]],[2,"smoothly-address-display",{value:[1]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],maxLength:[1026,"max-length"],autocomplete:[1025],pattern:[1040],placeholder:[1025],disabled:[1028],currency:[513],state:[32]}]]],["p-zyoltecy",[[2,"smoothly-address",{type:[1],value:[1],editable:[4],mode:[1025]}]]]],e));
import{p as e,b as o}from"./p-c87337b7.js";e().then(e=>o([["p-mrvosm4v",[[2,"smoothly-addresses",{allowed:[1],value:[1025],editable:[4]},[[0,"trigger","onTrigger"]]]]],["p-00jidvrm",[[2,"smoothly-notifier-test"]]],["p-tjoyiwf9",[[2,"smoothly-select-test",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["p-j7qusayl",[[0,"smoothly-urlencoded",{data:[1]}]]],["p-srhb3et1",[[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["p-blb59noq",[[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}]]],["p-zi5clpkw",[[4,"smoothly-banner",{heading:[1]}]]],["p-pea1s2rv",[[2,"smoothly-checkbox",{name:[1],value:[1],label:[1],checked:[1540]}]]],["p-ab4hehzu",[[2,"smoothly-display-amount",{amount:[8],currency:[1]}]]],["p-4id1ubpe",[[2,"smoothly-display-date-time",{datetime:[1]}]]],["p-mzkekmaw",[[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}]]],["p-hvebildm",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-wv75o8c0",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-x4rzs4vu",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-cjo7au7q",[[1,"cardfunc-element",{apiKey:[1,"api-key"],state:[1537],value:[1040],theme:[32],verify:[32],authorization:[32],payload:[32],submit:[64]},[[0,"trigger","handleTrigger"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[1]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-frame",{url:[1],name:[1],send:[64]}],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],toolTip:[1,"tool-tip"],document:[32]}],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],name:[1],value:[8]},[[0,"click","onClick"]]]]],["p-zyoltecy",[[2,"smoothly-address",{type:[1],value:[1],editable:[4],mode:[1025]}]]],["p-xwbfcivn",[[6,"smoothly-notifier",{notice:[1]},[[0,"trigger","onTrigger"],[0,"notice","onNotice"]]]]],["p-hxmg2axk",[[2,"smoothly-select",{options:[16],identifier:[1]}]]],["p-xanay40t",[[0,"smoothly-tuple",{tuple:[16]}]]],["p-ndvyyzcd",[[2,"smoothly-spinner",{active:[516]}]]],["p-arm7jv2f",[[2,"smoothly-address-edit",{value:[1]},[[0,"trigger","onTrigger"]]],[2,"smoothly-address-display",{value:[1]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],maxLength:[1026,"max-length"],autocomplete:[1025],pattern:[1040],placeholder:[1025],disabled:[1028],currency:[513],state:[32]}]]]],e));

@@ -1,1 +0,1 @@

System.register(["./p-84426aeb.system.js"],(function(){"use strict";var e,t;return{setters:[function(o){e=o.p;t=o.b}],execute:function(){e().then((function(e){return t([["p-v0fcar34.system",[[2,"smoothly-addresses",{allowed:[1],value:[1025],editable:[4]},[[0,"trigger","onTrigger"]]]]],["p-0zcjsugk.system",[[6,"smoothly-notifier",{notice:[1]},[[0,"trigger","onTrigger"],[0,"notice","onNotice"]]]]],["p-lta98isn.system",[[0,"smoothly-urlencoded",{data:[1]}]]],["p-ndv5xd9j.system",[[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["p-jtv75dhi.system",[[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}]]],["p-wqundvd5.system",[[4,"smoothly-banner",{heading:[1]}]]],["p-5ufzkqwa.system",[[2,"smoothly-checkbox",{name:[1],value:[1],label:[1],checked:[1540]}]]],["p-hfibumya.system",[[2,"smoothly-display-amount",{amount:[8],currency:[1]}]]],["p-kekhjf2x.system",[[2,"smoothly-display-date-time",{datetime:[1]}]]],["p-erxx4q3f.system",[[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}]]],["p-dnyphe6j.system",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-eunfwfsg.system",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-7ejgokyv.system",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-liw7yt71.system",[[0,"smoothly-tuple",{tuple:[16]}]]],["p-7tzotc0u.system",[[2,"smoothly-spinner",{active:[516]}]]],["p-zfxjvjmp.system",[[1,"cardfunc-element",{apiKey:[1,"api-key"],state:[1537],value:[1040],theme:[32],verify:[32],authorization:[32],payload:[32],submit:[64]},[[0,"trigger","handleTrigger"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[1]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-frame",{url:[1],name:[1],send:[64]}],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],document:[32]}],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],name:[1],value:[8]},[[0,"click","onClick"]]]]],["p-vvyfobxj.system",[[2,"smoothly-address-edit",{value:[1]},[[0,"trigger","onTrigger"]]],[2,"smoothly-address-display",{value:[1]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],maxLength:[1026,"max-length"],autocomplete:[1025],pattern:[1040],placeholder:[1025],disabled:[1028],currency:[513],state:[32]}]]],["p-sjxmwech.system",[[2,"smoothly-address",{type:[1],value:[1],editable:[4],mode:[1025]}]]]],e)}))}}}));
System.register(["./p-84426aeb.system.js"],(function(){"use strict";var e,t;return{setters:[function(o){e=o.p;t=o.b}],execute:function(){e().then((function(e){return t([["p-a6flhik7.system",[[2,"smoothly-addresses",{allowed:[1],value:[1025],editable:[4]},[[0,"trigger","onTrigger"]]]]],["p-flq8nkxk.system",[[2,"smoothly-notifier-test"]]],["p-tjpfvk09.system",[[2,"smoothly-select-test",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["p-lta98isn.system",[[0,"smoothly-urlencoded",{data:[1]}]]],["p-ndv5xd9j.system",[[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["p-jtv75dhi.system",[[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}]]],["p-wqundvd5.system",[[4,"smoothly-banner",{heading:[1]}]]],["p-5ufzkqwa.system",[[2,"smoothly-checkbox",{name:[1],value:[1],label:[1],checked:[1540]}]]],["p-hfibumya.system",[[2,"smoothly-display-amount",{amount:[8],currency:[1]}]]],["p-kekhjf2x.system",[[2,"smoothly-display-date-time",{datetime:[1]}]]],["p-erxx4q3f.system",[[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}]]],["p-dnyphe6j.system",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-3kzhuzcz.system",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-ywvsjleq.system",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-aebyagkc.system",[[1,"cardfunc-element",{apiKey:[1,"api-key"],state:[1537],value:[1040],theme:[32],verify:[32],authorization:[32],payload:[32],submit:[64]},[[0,"trigger","handleTrigger"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[1]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-frame",{url:[1],name:[1],send:[64]}],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],toolTip:[1,"tool-tip"],document:[32]}],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],name:[1],value:[8]},[[0,"click","onClick"]]]]],["p-sjxmwech.system",[[2,"smoothly-address",{type:[1],value:[1],editable:[4],mode:[1025]}]]],["p-krckgd5t.system",[[6,"smoothly-notifier",{notice:[1]},[[0,"trigger","onTrigger"],[0,"notice","onNotice"]]]]],["p-w5br11hl.system",[[2,"smoothly-select",{options:[16],identifier:[1]}]]],["p-liw7yt71.system",[[0,"smoothly-tuple",{tuple:[16]}]]],["p-7tzotc0u.system",[[2,"smoothly-spinner",{active:[516]}]]],["p-fgch8gcx.system",[[2,"smoothly-address-edit",{value:[1]},[[0,"trigger","onTrigger"]]],[2,"smoothly-address-display",{value:[1]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],maxLength:[1026,"max-length"],autocomplete:[1025],pattern:[1040],placeholder:[1025],disabled:[1028],currency:[513],state:[32]}]]]],e)}))}}}));

@@ -7,3 +7,3 @@ 'use strict';

const _commonjsHelpers = require('./_commonjsHelpers-72d386ba.js');
const index = require('./index-d83d7645.js');
const index = require('./index-da2f731d.js');

@@ -896,3 +896,3 @@ var crypto_browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {

const response = await fetch(url);
this.document = response.ok ? await response.text() : undefined;
this.document = response.ok ? (await response.text()).replace(/(<title>)[\w\d\s\-]*(<\/title>)/, `<title>${this.toolTip || ""}</title>`) : undefined;
}

@@ -899,0 +899,0 @@ }

@@ -6,3 +6,3 @@ 'use strict';

core.patchBrowser().then(options => {
return core.bootstrapLazy([["smoothly-addresses.cjs",[[2,"smoothly-addresses",{"allowed":[1],"value":[1025],"editable":[4]},[[0,"trigger","onTrigger"]]]]],["smoothly-notifier.cjs",[[6,"smoothly-notifier",{"notice":[1]},[[0,"trigger","onTrigger"],[0,"notice","onNotice"]]]]],["smoothly-urlencoded.cjs",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion.cjs",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item.cjs",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-banner.cjs",[[4,"smoothly-banner",{"heading":[1]}]]],["smoothly-checkbox.cjs",[[2,"smoothly-checkbox",{"name":[1],"value":[1],"label":[1],"checked":[1540]}]]],["smoothly-display-amount.cjs",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-display-date-time.cjs",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-radio.cjs",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-tuple.cjs",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-spinner.cjs",[[2,"smoothly-spinner",{"active":[516]}]]],["cardfunc-element_5.cjs",[[1,"cardfunc-element",{"apiKey":[1,"api-key"],"state":[1537],"value":[1040],"theme":[32],"verify":[32],"authorization":[32],"payload":[32],"submit":[64]},[[0,"trigger","handleTrigger"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[1]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-frame",{"url":[1],"name":[1],"send":[64]}],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"document":[32]}],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]]]],["smoothly-address-display_4.cjs",[[2,"smoothly-address-edit",{"value":[1]},[[0,"trigger","onTrigger"]]],[2,"smoothly-address-display",{"value":[1]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"maxLength":[1026,"max-length"],"autocomplete":[1025],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"state":[32]}]]],["smoothly-address.cjs",[[2,"smoothly-address",{"type":[1],"value":[1],"editable":[4],"mode":[1025]}]]]], options);
return core.bootstrapLazy([["smoothly-addresses.cjs",[[2,"smoothly-addresses",{"allowed":[1],"value":[1025],"editable":[4]},[[0,"trigger","onTrigger"]]]]],["smoothly-notifier-test.cjs",[[2,"smoothly-notifier-test"]]],["smoothly-select-test.cjs",[[2,"smoothly-select-test",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-urlencoded.cjs",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion.cjs",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item.cjs",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-banner.cjs",[[4,"smoothly-banner",{"heading":[1]}]]],["smoothly-checkbox.cjs",[[2,"smoothly-checkbox",{"name":[1],"value":[1],"label":[1],"checked":[1540]}]]],["smoothly-display-amount.cjs",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-display-date-time.cjs",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-radio.cjs",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["cardfunc-element_5.cjs",[[1,"cardfunc-element",{"apiKey":[1,"api-key"],"state":[1537],"value":[1040],"theme":[32],"verify":[32],"authorization":[32],"payload":[32],"submit":[64]},[[0,"trigger","handleTrigger"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[1]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-frame",{"url":[1],"name":[1],"send":[64]}],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]]]],["smoothly-address.cjs",[[2,"smoothly-address",{"type":[1],"value":[1],"editable":[4],"mode":[1025]}]]],["smoothly-notifier.cjs",[[6,"smoothly-notifier",{"notice":[1]},[[0,"trigger","onTrigger"],[0,"notice","onNotice"]]]]],["smoothly-select.cjs",[[2,"smoothly-select",{"options":[16],"identifier":[1]}]]],["smoothly-tuple.cjs",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-spinner.cjs",[[2,"smoothly-spinner",{"active":[516]}]]],["smoothly-address-display_4.cjs",[[2,"smoothly-address-edit",{"value":[1]},[[0,"trigger","onTrigger"]]],[2,"smoothly-address-display",{"value":[1]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"maxLength":[1026,"max-length"],"autocomplete":[1025],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"state":[32]}]]]], options);
});

@@ -9,3 +9,3 @@ 'use strict';

return core.patchEsm().then(() => {
core.bootstrapLazy([["smoothly-addresses.cjs",[[2,"smoothly-addresses",{"allowed":[1],"value":[1025],"editable":[4]},[[0,"trigger","onTrigger"]]]]],["smoothly-notifier.cjs",[[6,"smoothly-notifier",{"notice":[1]},[[0,"trigger","onTrigger"],[0,"notice","onNotice"]]]]],["smoothly-urlencoded.cjs",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion.cjs",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item.cjs",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-banner.cjs",[[4,"smoothly-banner",{"heading":[1]}]]],["smoothly-checkbox.cjs",[[2,"smoothly-checkbox",{"name":[1],"value":[1],"label":[1],"checked":[1540]}]]],["smoothly-display-amount.cjs",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-display-date-time.cjs",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-radio.cjs",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-tuple.cjs",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-spinner.cjs",[[2,"smoothly-spinner",{"active":[516]}]]],["cardfunc-element_5.cjs",[[1,"cardfunc-element",{"apiKey":[1,"api-key"],"state":[1537],"value":[1040],"theme":[32],"verify":[32],"authorization":[32],"payload":[32],"submit":[64]},[[0,"trigger","handleTrigger"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[1]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-frame",{"url":[1],"name":[1],"send":[64]}],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"document":[32]}],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]]]],["smoothly-address-display_4.cjs",[[2,"smoothly-address-edit",{"value":[1]},[[0,"trigger","onTrigger"]]],[2,"smoothly-address-display",{"value":[1]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"maxLength":[1026,"max-length"],"autocomplete":[1025],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"state":[32]}]]],["smoothly-address.cjs",[[2,"smoothly-address",{"type":[1],"value":[1],"editable":[4],"mode":[1025]}]]]], options);
core.bootstrapLazy([["smoothly-addresses.cjs",[[2,"smoothly-addresses",{"allowed":[1],"value":[1025],"editable":[4]},[[0,"trigger","onTrigger"]]]]],["smoothly-notifier-test.cjs",[[2,"smoothly-notifier-test"]]],["smoothly-select-test.cjs",[[2,"smoothly-select-test",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-urlencoded.cjs",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion.cjs",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item.cjs",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-banner.cjs",[[4,"smoothly-banner",{"heading":[1]}]]],["smoothly-checkbox.cjs",[[2,"smoothly-checkbox",{"name":[1],"value":[1],"label":[1],"checked":[1540]}]]],["smoothly-display-amount.cjs",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-display-date-time.cjs",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-radio.cjs",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["cardfunc-element_5.cjs",[[1,"cardfunc-element",{"apiKey":[1,"api-key"],"state":[1537],"value":[1040],"theme":[32],"verify":[32],"authorization":[32],"payload":[32],"submit":[64]},[[0,"trigger","handleTrigger"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[1]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-frame",{"url":[1],"name":[1],"send":[64]}],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]]]],["smoothly-address.cjs",[[2,"smoothly-address",{"type":[1],"value":[1],"editable":[4],"mode":[1025]}]]],["smoothly-notifier.cjs",[[6,"smoothly-notifier",{"notice":[1]},[[0,"trigger","onTrigger"],[0,"notice","onNotice"]]]]],["smoothly-select.cjs",[[2,"smoothly-select",{"options":[16],"identifier":[1]}]]],["smoothly-tuple.cjs",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-spinner.cjs",[[2,"smoothly-spinner",{"active":[516]}]]],["smoothly-address-display_4.cjs",[[2,"smoothly-address-edit",{"value":[1]},[[0,"trigger","onTrigger"]]],[2,"smoothly-address-display",{"value":[1]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"maxLength":[1026,"max-length"],"autocomplete":[1025],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"state":[32]}]]]], options);
});

@@ -12,0 +12,0 @@ };

@@ -7,3 +7,3 @@ 'use strict';

const _commonjsHelpers = require('./_commonjsHelpers-72d386ba.js');
const index = require('./index-d83d7645.js');
const index = require('./index-da2f731d.js');
const index$1 = require('./index-d7474993.js');

@@ -772,12 +772,14 @@

onKeyDown(event) {
const backend = event.target;
this.state = Object.assign(Object.assign({}, this.state), { value: backend.value, selection: {
start: backend.selectionStart != undefined ? backend.selectionStart : backend.value.length,
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
} });
if (!(event.ctrlKey && event.key == "v") &&
event.key.length == 1 || event.key == "ArrowLeft" || event.key == "ArrowRight" ||
event.key == "Delete" || event.key == "Backspace" || event.key == "Home" || event.key == "End") {
event.preventDefault();
this.processKey(event, backend);
if (event.key) {
const backend = event.target;
this.state = Object.assign(Object.assign({}, this.state), { value: backend.value, selection: {
start: backend.selectionStart != undefined ? backend.selectionStart : backend.value.length,
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
} });
if (!(event.ctrlKey && event.key == "v") &&
event.key.length == 1 || event.key == "ArrowLeft" || event.key == "ArrowRight" ||
event.key == "Delete" || event.key == "Backspace" || event.key == "Home" || event.key == "End") {
event.preventDefault();
this.processKey(event, backend);
}
}

@@ -789,4 +791,14 @@ }

const backend = event.target;
for (const letter of pasted) {
for (const letter of pasted)
this.processKey({ key: letter }, backend);
}
onInput(event) {
var _a;
const backend = event.target;
const data = (_a = event.data) !== null && _a !== void 0 ? _a : backend.value; // ff: event.data, chrome: backend.value
if (data) {
event.preventDefault();
this.processKey({ key: "a", ctrlKey: true }, backend);
for (const letter of data)
this.processKey({ key: letter }, backend);
}

@@ -816,3 +828,3 @@ }

return [
core.h("input", { name: this.name, type: this.state.type, placeholder: this.placeholder, required: this.required, autocomplete: this.state.autocomplete, disabled: this.disabled, pattern: this.state.pattern && this.state.pattern.source, value: this.state.value, onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), onPaste: e => this.onPaste(e) }),
core.h("input", { name: this.name, type: this.state.type, placeholder: this.placeholder, required: this.required, autocomplete: this.state.autocomplete, disabled: this.disabled, pattern: this.state.pattern && this.state.pattern.source, value: this.state.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), onPaste: e => this.onPaste(e) }),
core.h("label", { htmlFor: this.name }, core.h("slot", null)),

@@ -819,0 +831,0 @@ ];

@@ -7,3 +7,3 @@ 'use strict';

require('./_commonjsHelpers-72d386ba.js');
const index = require('./index-d83d7645.js');
const index = require('./index-da2f731d.js');

@@ -10,0 +10,0 @@ const SmoothlyAddresses = class {

@@ -6,2 +6,4 @@ 'use strict';

const core = require('./core-906e2cc9.js');
require('./_commonjsHelpers-72d386ba.js');
const index = require('./index-da2f731d.js');

@@ -23,7 +25,7 @@ const Notifier = class {

}
if (newValue != undefined) {
if (newValue != undefined && !(index.dist_10.is(newValue) && newValue.remain)) {
this.timer = window.setTimeout(() => {
this.notice = undefined;
this.timer = undefined;
}, 5000);
}, index.dist_10.is(newValue) && newValue.timeout ? newValue.timeout : 5000);
}

@@ -46,5 +48,5 @@ }

}; }
static get style() { return ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}smoothly-trigger.sc-smoothly-notifier{display:inline-block;vertical-align:middle;margin-left:1.5em}aside.sc-smoothly-notifier{text-align:center;vertical-align:middle;width:100%;height:2.8em}aside.warning.sc-smoothly-notifier{background-color:rgb(var(--smoothly-warning-tint));color:rgb(var(--smoothly-warning-contrast))}aside.success.sc-smoothly-notifier{background-color:rgb(var(--smoothly-success-tint));color:rgb(var(--smoothly-success-contrast))}aside.danger.sc-smoothly-notifier{background-color:rgb(var(--smoothly-danger-tint));color:rgb(var(--smoothly-danger-contrast))}aside.default.sc-smoothly-notifier{background-color:rgb(var(--smoothly-primary-tint));color:rgb(var(--smoothly-primary-contrast))}"; }
static get style() { return ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}smoothly-trigger.sc-smoothly-notifier{display:inline-block;vertical-align:middle}aside.sc-smoothly-notifier{text-align:center;vertical-align:middle;width:100%-2em;padding-left:1em;padding-right:1em;border-style:solid;border-width:1px;border-radius:5px}aside.warning.sc-smoothly-notifier{background-color:rgb(var(--smoothly-warning-tint));border-color:rgb(var(--smoothly-warning-shade));color:rgb(var(--smoothly-warning-contrast))}aside.success.sc-smoothly-notifier{background-color:rgb(var(--smoothly-success-color));border-color:rgb(var(--smoothly-success-shade));color:rgb(var(--smoothly-success-contrast))}aside.danger.sc-smoothly-notifier{background-color:rgb(var(--smoothly-danger-tint));border-color:rgb(var(--smoothly-danger-shade));color:rgb(var(--smoothly-danger-contrast))}aside.default.sc-smoothly-notifier{background-color:rgb(var(--smoothly-primary-tint));border-color:rgb(var(--smoothly-primary-shade));color:rgb(var(--smoothly-primary-contrast))}"; }
};
exports.smoothly_notifier = Notifier;

@@ -7,3 +7,3 @@ 'use strict';

require('./_commonjsHelpers-72d386ba.js');
const index = require('./index-d83d7645.js');
const index = require('./index-da2f731d.js');

@@ -10,0 +10,0 @@ const SmoothlyTriggerSink = class {

@@ -7,3 +7,3 @@ 'use strict';

require('./_commonjsHelpers-72d386ba.js');
const index = require('./index-d83d7645.js');
const index = require('./index-da2f731d.js');

@@ -10,0 +10,0 @@ const SmoothlyTriggerSource = class {

@@ -29,4 +29,7 @@ {

"smoothly-notifier",
"smoothly-notifier-test",
"smoothly-radio",
"smoothly-radio-group",
"smoothly-select",
"smoothly-select-test",
"smoothly-spinner",

@@ -33,0 +36,0 @@ "smoothly-submit",

@@ -59,3 +59,3 @@ var __extends = (this && this.__extends) || (function () {

import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-97e6d7b1.js';
import { d as dist_9, a as dist_6 } from './index-b6097e3d.js';
import { d as dist_9, a as dist_6 } from './index-b7fefe31.js';
var crypto_browser = createCommonjsModule(function (module, exports) {

@@ -1190,3 +1190,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

case 2:
_c = _d.sent();
_c = (_d.sent()).replace(/(<title>)[\w\d\s\-]*(<\/title>)/, "<title>" + (this.toolTip || "") + "</title>");
return [3 /*break*/, 4];

@@ -1193,0 +1193,0 @@ case 3:

@@ -39,3 +39,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-97e6d7b1.js';
import { b as dist_1$1 } from './index-b6097e3d.js';
import { b as dist_1$1 } from './index-b7fefe31.js';
import { a as dist_1$2, b as dist$1 } from './index-a7200f95.js';

@@ -786,12 +786,14 @@ var AddressDisplay = /** @class */ (function () {

SmoothlyInput.prototype.onKeyDown = function (event) {
var backend = event.target;
this.state = Object.assign(Object.assign({}, this.state), { value: backend.value, selection: {
start: backend.selectionStart != undefined ? backend.selectionStart : backend.value.length,
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
} });
if (!(event.ctrlKey && event.key == "v") &&
event.key.length == 1 || event.key == "ArrowLeft" || event.key == "ArrowRight" ||
event.key == "Delete" || event.key == "Backspace" || event.key == "Home" || event.key == "End") {
event.preventDefault();
this.processKey(event, backend);
if (event.key) {
var backend = event.target;
this.state = Object.assign(Object.assign({}, this.state), { value: backend.value, selection: {
start: backend.selectionStart != undefined ? backend.selectionStart : backend.value.length,
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
} });
if (!(event.ctrlKey && event.key == "v") &&
event.key.length == 1 || event.key == "ArrowLeft" || event.key == "ArrowRight" ||
event.key == "Delete" || event.key == "Backspace" || event.key == "Home" || event.key == "End") {
event.preventDefault();
this.processKey(event, backend);
}
}

@@ -808,2 +810,15 @@ };

};
SmoothlyInput.prototype.onInput = function (event) {
var _a;
var backend = event.target;
var data = (_a = event.data) !== null && _a !== void 0 ? _a : backend.value; // ff: event.data, chrome: backend.value
if (data) {
event.preventDefault();
this.processKey({ key: "a", ctrlKey: true }, backend);
for (var _i = 0, data_1 = data; _i < data_1.length; _i++) {
var letter = data_1[_i];
this.processKey({ key: letter }, backend);
}
}
};
SmoothlyInput.prototype.processKey = function (event, backend) {

@@ -832,3 +847,3 @@ var after = dist_1.apply(this.formatter, this.state, event);

return [
h("input", { name: this.name, type: this.state.type, placeholder: this.placeholder, required: this.required, autocomplete: this.state.autocomplete, disabled: this.disabled, pattern: this.state.pattern && this.state.pattern.source, value: this.state.value, onFocus: function (e) { return _this.onFocus(e); }, onClick: function (e) { return _this.onClick(e); }, onBlur: function (e) { return _this.onBlur(e); }, onKeyDown: function (e) { return _this.onKeyDown(e); }, onPaste: function (e) { return _this.onPaste(e); } }),
h("input", { name: this.name, type: this.state.type, placeholder: this.placeholder, required: this.required, autocomplete: this.state.autocomplete, disabled: this.disabled, pattern: this.state.pattern && this.state.pattern.source, value: this.state.value, onInput: function (e) { return _this.onInput(e); }, onFocus: function (e) { return _this.onFocus(e); }, onClick: function (e) { return _this.onClick(e); }, onBlur: function (e) { return _this.onBlur(e); }, onKeyDown: function (e) { return _this.onKeyDown(e); }, onPaste: function (e) { return _this.onPaste(e); } }),
h("label", { htmlFor: this.name }, h("slot", null)),

@@ -835,0 +850,0 @@ ];

import { r as registerInstance, c as createEvent, h } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { b as dist_1, c as dist_2 } from './index-b6097e3d.js';
import { b as dist_1, c as dist_2 } from './index-b7fefe31.js';
var SmoothlyAddresses = /** @class */ (function () {

@@ -5,0 +5,0 @@ function SmoothlyAddresses(hostRef) {

import { r as registerInstance, h } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { e as dist_10 } from './index-b7fefe31.js';
var Notifier = /** @class */ (function () {

@@ -18,7 +20,7 @@ function Notifier(hostRef) {

}
if (newValue != undefined) {
if (newValue != undefined && !(dist_10.is(newValue) && newValue.remain)) {
this.timer = window.setTimeout(function () {
_this.notice = undefined;
_this.timer = undefined;
}, 5000);
}, dist_10.is(newValue) && newValue.timeout ? newValue.timeout : 5000);
}

@@ -48,3 +50,3 @@ };

Object.defineProperty(Notifier, "style", {
get: function () { return ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}smoothly-trigger.sc-smoothly-notifier{display:inline-block;vertical-align:middle;margin-left:1.5em}aside.sc-smoothly-notifier{text-align:center;vertical-align:middle;width:100%;height:2.8em}aside.warning.sc-smoothly-notifier{background-color:rgb(var(--smoothly-warning-tint));color:rgb(var(--smoothly-warning-contrast))}aside.success.sc-smoothly-notifier{background-color:rgb(var(--smoothly-success-tint));color:rgb(var(--smoothly-success-contrast))}aside.danger.sc-smoothly-notifier{background-color:rgb(var(--smoothly-danger-tint));color:rgb(var(--smoothly-danger-contrast))}aside.default.sc-smoothly-notifier{background-color:rgb(var(--smoothly-primary-tint));color:rgb(var(--smoothly-primary-contrast))}"; },
get: function () { return ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}smoothly-trigger.sc-smoothly-notifier{display:inline-block;vertical-align:middle}aside.sc-smoothly-notifier{text-align:center;vertical-align:middle;width:100%-2em;padding-left:1em;padding-right:1em;border-style:solid;border-width:1px;border-radius:5px}aside.warning.sc-smoothly-notifier{background-color:rgb(var(--smoothly-warning-tint));border-color:rgb(var(--smoothly-warning-shade));color:rgb(var(--smoothly-warning-contrast))}aside.success.sc-smoothly-notifier{background-color:rgb(var(--smoothly-success-color));border-color:rgb(var(--smoothly-success-shade));color:rgb(var(--smoothly-success-contrast))}aside.danger.sc-smoothly-notifier{background-color:rgb(var(--smoothly-danger-tint));border-color:rgb(var(--smoothly-danger-shade));color:rgb(var(--smoothly-danger-contrast))}aside.default.sc-smoothly-notifier{background-color:rgb(var(--smoothly-primary-tint));border-color:rgb(var(--smoothly-primary-shade));color:rgb(var(--smoothly-primary-contrast))}"; },
enumerable: true,

@@ -51,0 +53,0 @@ configurable: true

import { r as registerInstance, h } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { d as dist_9, a as dist_6 } from './index-b6097e3d.js';
import { d as dist_9, a as dist_6 } from './index-b7fefe31.js';
var SmoothlyTriggerSink = /** @class */ (function () {

@@ -5,0 +5,0 @@ function SmoothlyTriggerSink(hostRef) {

import { r as registerInstance, c as createEvent, h, g as getElement } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { a as dist_6, d as dist_9 } from './index-b6097e3d.js';
import { a as dist_6, d as dist_9 } from './index-b7fefe31.js';
var SmoothlyTriggerSource = /** @class */ (function () {

@@ -5,0 +5,0 @@ function SmoothlyTriggerSource(hostRef) {

import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './core-8e73947d.js';
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-97e6d7b1.js';
import { d as dist_9, a as dist_6 } from './index-b6097e3d.js';
import { d as dist_9, a as dist_6 } from './index-b7fefe31.js';

@@ -891,3 +891,3 @@ var crypto_browser = createCommonjsModule(function (module, exports) {

const response = await fetch(url);
this.document = response.ok ? await response.text() : undefined;
this.document = response.ok ? (await response.text()).replace(/(<title>)[\w\d\s\-]*(<\/title>)/, `<title>${this.toolTip || ""}</title>`) : undefined;
}

@@ -894,0 +894,0 @@ }

import { r as registerInstance, h, c as createEvent, H as Host } from './core-8e73947d.js';
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-97e6d7b1.js';
import { b as dist_1$1 } from './index-b6097e3d.js';
import { b as dist_1$1 } from './index-b7fefe31.js';
import { a as dist_1$2, b as dist$1 } from './index-a7200f95.js';

@@ -767,12 +767,14 @@

onKeyDown(event) {
const backend = event.target;
this.state = Object.assign(Object.assign({}, this.state), { value: backend.value, selection: {
start: backend.selectionStart != undefined ? backend.selectionStart : backend.value.length,
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
} });
if (!(event.ctrlKey && event.key == "v") &&
event.key.length == 1 || event.key == "ArrowLeft" || event.key == "ArrowRight" ||
event.key == "Delete" || event.key == "Backspace" || event.key == "Home" || event.key == "End") {
event.preventDefault();
this.processKey(event, backend);
if (event.key) {
const backend = event.target;
this.state = Object.assign(Object.assign({}, this.state), { value: backend.value, selection: {
start: backend.selectionStart != undefined ? backend.selectionStart : backend.value.length,
end: backend.selectionEnd != undefined ? backend.selectionEnd : backend.value.length,
} });
if (!(event.ctrlKey && event.key == "v") &&
event.key.length == 1 || event.key == "ArrowLeft" || event.key == "ArrowRight" ||
event.key == "Delete" || event.key == "Backspace" || event.key == "Home" || event.key == "End") {
event.preventDefault();
this.processKey(event, backend);
}
}

@@ -784,4 +786,14 @@ }

const backend = event.target;
for (const letter of pasted) {
for (const letter of pasted)
this.processKey({ key: letter }, backend);
}
onInput(event) {
var _a;
const backend = event.target;
const data = (_a = event.data) !== null && _a !== void 0 ? _a : backend.value; // ff: event.data, chrome: backend.value
if (data) {
event.preventDefault();
this.processKey({ key: "a", ctrlKey: true }, backend);
for (const letter of data)
this.processKey({ key: letter }, backend);
}

@@ -811,3 +823,3 @@ }

return [
h("input", { name: this.name, type: this.state.type, placeholder: this.placeholder, required: this.required, autocomplete: this.state.autocomplete, disabled: this.disabled, pattern: this.state.pattern && this.state.pattern.source, value: this.state.value, onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), onPaste: e => this.onPaste(e) }),
h("input", { name: this.name, type: this.state.type, placeholder: this.placeholder, required: this.required, autocomplete: this.state.autocomplete, disabled: this.disabled, pattern: this.state.pattern && this.state.pattern.source, value: this.state.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), onPaste: e => this.onPaste(e) }),
h("label", { htmlFor: this.name }, h("slot", null)),

@@ -814,0 +826,0 @@ ];

import { r as registerInstance, c as createEvent, h } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { b as dist_1, c as dist_2 } from './index-b6097e3d.js';
import { b as dist_1, c as dist_2 } from './index-b7fefe31.js';

@@ -5,0 +5,0 @@ const SmoothlyAddresses = class {

import { r as registerInstance, h } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { e as dist_10 } from './index-b7fefe31.js';

@@ -18,7 +20,7 @@ const Notifier = class {

}
if (newValue != undefined) {
if (newValue != undefined && !(dist_10.is(newValue) && newValue.remain)) {
this.timer = window.setTimeout(() => {
this.notice = undefined;
this.timer = undefined;
}, 5000);
}, dist_10.is(newValue) && newValue.timeout ? newValue.timeout : 5000);
}

@@ -41,5 +43,5 @@ }

}; }
static get style() { return ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}smoothly-trigger.sc-smoothly-notifier{display:inline-block;vertical-align:middle;margin-left:1.5em}aside.sc-smoothly-notifier{text-align:center;vertical-align:middle;width:100%;height:2.8em}aside.warning.sc-smoothly-notifier{background-color:rgb(var(--smoothly-warning-tint));color:rgb(var(--smoothly-warning-contrast))}aside.success.sc-smoothly-notifier{background-color:rgb(var(--smoothly-success-tint));color:rgb(var(--smoothly-success-contrast))}aside.danger.sc-smoothly-notifier{background-color:rgb(var(--smoothly-danger-tint));color:rgb(var(--smoothly-danger-contrast))}aside.default.sc-smoothly-notifier{background-color:rgb(var(--smoothly-primary-tint));color:rgb(var(--smoothly-primary-contrast))}"; }
static get style() { return ".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}smoothly-trigger.sc-smoothly-notifier{display:inline-block;vertical-align:middle}aside.sc-smoothly-notifier{text-align:center;vertical-align:middle;width:100%-2em;padding-left:1em;padding-right:1em;border-style:solid;border-width:1px;border-radius:5px}aside.warning.sc-smoothly-notifier{background-color:rgb(var(--smoothly-warning-tint));border-color:rgb(var(--smoothly-warning-shade));color:rgb(var(--smoothly-warning-contrast))}aside.success.sc-smoothly-notifier{background-color:rgb(var(--smoothly-success-color));border-color:rgb(var(--smoothly-success-shade));color:rgb(var(--smoothly-success-contrast))}aside.danger.sc-smoothly-notifier{background-color:rgb(var(--smoothly-danger-tint));border-color:rgb(var(--smoothly-danger-shade));color:rgb(var(--smoothly-danger-contrast))}aside.default.sc-smoothly-notifier{background-color:rgb(var(--smoothly-primary-tint));border-color:rgb(var(--smoothly-primary-shade));color:rgb(var(--smoothly-primary-contrast))}"; }
};
export { Notifier as smoothly_notifier };
import { r as registerInstance, h } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { d as dist_9, a as dist_6 } from './index-b6097e3d.js';
import { d as dist_9, a as dist_6 } from './index-b7fefe31.js';

@@ -5,0 +5,0 @@ const SmoothlyTriggerSink = class {

import { r as registerInstance, c as createEvent, h, g as getElement } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { a as dist_6, d as dist_9 } from './index-b6097e3d.js';
import { a as dist_6, d as dist_9 } from './index-b7fefe31.js';

@@ -5,0 +5,0 @@ const SmoothlyTriggerSource = class {

{
"name": "@cardfunc/element",
"version": "0.0.31",
"version": "0.0.32",
"description": "HTML custom element providing PCI-compliant card details form.",

@@ -29,4 +29,4 @@ "main": "dist/index.js",

"isoly": "^0.0.12",
"smoothly": "^0.0.100",
"smoothly-model": "^0.0.11"
"smoothly": "^0.0.114",
"smoothly-model": "^0.0.12"
},

@@ -33,0 +33,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc