scu-web-components 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/components/manifest.json +30 -30
- package/dist/docs/config.json +5 -5
- package/dist/scw-components.js +1 -1
- package/dist/scw-components.js.gz +0 -0
- package/dist/scw.js +1 -1
- package/dist/scw.js.gz +0 -0
- package/dist/tokens/source/jsCss.js +1 -1
- package/dist/tokens/source/jsCss.js.gz +0 -0
- package/dist/tokens/source/jsCssGenerator.js +1 -1
- package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
- package/dist/tokens/source/jsCssGeneratorSansAssets.js +1 -1
- package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
- package/dist-node/scw-components.js +1 -1
- package/dist-node/scw.js +1 -1
- package/package.json +1 -1
- package/scripts/publish/releaseNotes.mjs +5 -0
|
Binary file
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
constructor (config) { // (version, extraCssPromise, assetsUrl, config ) {
|
|
5
5
|
this.tokens = {"COLORS|color":{"primary":{"01":["rgba(31,74,5,1)"],"02":["rgba(51,111,3,1)"],"03":["rgba(65,134,9,1)"],"04":["rgba(79,151,21,1)"],"05":["rgba(99,166,10,1)"],"":["rgba(99,166,10,1)"],"06":["rgba(132,201,41,1)"],"07":["rgba(165,228,85,1)"],"08":["rgba(187,234,128,1)"],"09":["rgba(214,244,174,1)"],"092":["rgba(231,250,200,1)"],"095":["rgba(243,252,230,1)"]},"grey":{"10":["rgba(255,255,255,1)"],"00":["rgba(0,0,0,1)"],"01":["rgba(29,31,32,1)"],"02":["rgba(73,77,79,1)"],"03":["rgba(96,100,102,1)"],"04":["rgba(114,118,121,1)"],"05":["rgba(146,147,150,1)"],"":["rgba(146,147,150,1)"],"06":["rgba(176,176,176,1)"],"07":["rgba(202,202,202,1)"],"08":["rgba(226,226,226,1)"],"09":["rgba(239,239,239,1)"],"092":["rgba(246,246,246,1)"],"095":["rgba(248,248,248,1)"]},"error":{"":["rgba(218,52,61,1)"],"light":["rgba(249,230,230,1)"],"dark":["rgba(158,0,0,1)"]},"warning":{"":["rgba(255,134,66,1)"],"light":["rgba(255,214,191,1)"],"dark":["rgba(128,46,0,1)"]},"success":{"":["rgba(123,209,8,1)"],"light":["rgba(213,233,187,1)"],"dark":["rgba(72,121,6,1)"]},"information":{"":["rgba(252,231,40,1)"],"light":["rgba(255,250,208,1)"],"dark":["rgba(170,153,0,1)"]},"icon":{"":["rgba(1,1,1,1)"]},"secondary":{"":["rgba(87,90,93,1)"]},"mortgage":{"01":["rgba(74,2,57,1)"],"02":["rgba(92,1,75,1)"],"03":["rgba(107,4,83,1)"],"04":["rgba(136,6,105,1)"],"05":["rgba(162,0,125,1)"],"":["rgba(162,0,125,1)"],"06":["rgba(193,64,164,1)"],"07":["rgba(214,121,192,1)"],"08":["rgba(235,169,220,1)"],"09":["rgba(247,220,242,1)"],"092":["rgba(204,218,222,1)"],"095":["rgba(253,240,250,1)"]},"investments":{"01":["rgba(15,14,88,1)"],"02":["rgba(37,37,124,1)"],"03":["rgba(52,52,145,1)"],"04":["rgba(65,64,157,1)"],"05":["rgba(85,84,177,1)"],"":["rgba(85,84,177,1)"],"06":["rgba(117,116,195,1)"],"07":["rgba(160,159,219,1)"],"08":["rgba(200,199,237,1)"],"09":["rgba(227,226,248,1)"],"092":["rgba(232,231,249,1)"],"095":["rgba(244,244,255,1)"]},"credit-cards":{"01":["rgba(1,51,77,1)"],"02":["rgba(1,70,106,1)"],"03":["rgba(1,88,132,1)"],"04":["rgba(1,104,157,1)"],"05":["rgba(0,122,185,1)"],"":["rgba(0,122,185,1)"],"06":["rgba(46,147,199,1)"],"07":["rgba(94,173,213,1)"],"08":["rgba(140,197,227,1)"],"09":["rgba(189,224,242,1)"],"092":["rgba(227,241,249,1)"],"095":["rgba(236,249,255,1)"]},"student":{"01":["rgba(1,56,49,1)"],"02":["rgba(0,75,67,1)"],"03":["rgba(0,94,83,1)"],"04":["rgba(0,113,100,1)"],"05":["rgba(0,131,116,1)"],"":["rgba(0,131,116,1)"],"06":["rgba(46,156,143,1)"],"07":["rgba(105,185,176,1)"],"08":["rgba(157,217,211,1)"],"09":["rgba(209,240,237,1)"],"092":["rgba(204,218,222,1)"],"095":["rgba(237,253,252,1)"]},"savings":{"01":["rgba(119,33,0,1)"],"02":["rgba(149,41,0,1)"],"03":["rgba(163,46,2,1)"],"04":["rgba(178,51,3,1)"],"05":["rgba(195,75,0,1)"],"":["rgba(195,75,0,1)"],"06":["rgba(230,118,47,1)"],"07":["rgba(242,165,109,1)"],"08":["rgba(250,209,167,1)"],"09":["rgba(255,235,211,1)"],"092":["rgba(204,218,222,1)"],"095":["rgba(253,247,239,1)"]},"checking":{"01":["rgba(49,6,67,1)"],"02":["rgba(64,21,83,1)"],"03":["rgba(92,40,114,1)"],"04":["rgba(119,57,145,1)"],"05":["rgba(148,77,178,1)"],"":["rgba(148,77,178,1)"],"06":["rgba(168,108,193,1)"],"07":["rgba(198,151,217,1)"],"08":["rgba(218,187,232,1)"],"09":["rgba(233,213,240,1)"],"092":["rgba(204,218,222,1)"],"095":["rgba(249,237,252,1)"]},"red-shoes":{"01":["rgba(90,7,9,1)"],"02":["rgba(117,15,18,1)"],"03":["rgba(143,23,27,1)"],"04":["rgba(171,31,36,1)"],"05":["rgba(201,40,45,1)"],"":["rgba(201,40,45,1)"],"06":["rgba(214,80,84,1)"],"07":["rgba(226,119,121,1)"],"08":["rgba(240,162,164,1)"],"09":["rgba(255,219,220,1)"],"092":["rgba(255,236,236,1)"],"095":["rgba(255,240,241,1)"]},"business":{"01":["rgba(83,72,1,1)"],"02":["rgba(111,96,1,1)"],"03":["rgba(141,122,1,1)"],"04":["rgba(168,145,1,1)"],"05":["rgba(199,172,0,1)"],"":["rgba(199,172,0,1)"],"06":["rgba(212,190,46,1)"],"07":["rgba(227,209,98,1)"],"08":["rgba(241,229,149,1)"],"09":["rgba(251,246,214,1)"],"092":["rgba(204,218,222,1)"],"095":["rgba(255,252,231,1)"]},"personal":{"01":["rgba(1,40,60,1)"],"02":["rgba(1,59,90,1)"],"03":["rgba(1,80,121,1)"],"04":["rgba(1,99,150,1)"],"05":["rgba(0,122,185,1)"],"":["rgba(0,122,185,1)"],"06":["rgba(48,149,202,1)"],"07":["rgba(100,179,220,1)"],"08":["rgba(154,210,238,1)"],"09":["rgba(202,237,255,1)"],"092":["rgba(204,218,222,1)"],"095":["rgba(226,245,255,1)"]},"heloc":{"01":["rgba(41,17,75,1)"],"02":["rgba(56,28,92,1)"],"03":["rgba(76,44,118,1)"],"04":["rgba(101,63,149,1)"],"05":["rgba(128,91,177,1)"],"":["rgba(128,91,177,1)"],"06":["rgba(159,126,201,1)"],"07":["rgba(189,164,221,1)"],"08":["rgba(207,191,229,1)"],"09":["rgba(229,219,244,1)"],"092":["rgba(204,218,222,1)"],"095":["rgba(243,239,252,1)"]}},"TYPOGRAPHY|type":{"text":{"10":["3.375rem","'Proxima Nova'","400","3.875rem","0rem","none"],"09":["2.5rem","'Proxima Nova'","400","3.045rem","0rem","none"],"08":["2rem","'Proxima Nova'","400","2.436rem","0rem","none"],"07":["1.5rem","'Proxima Nova'","400","1.827rem","0rem","none"],"06":["1.25rem","'Proxima Nova'","400","1.938rem","0rem","none"],"05":["1.125rem","'Proxima Nova'","400","1.688rem","0rem","none"],"":["1.125rem","'Proxima Nova'","400","1.688rem","0rem","none"],"04":["1rem","'Proxima Nova'","400","1.5rem","0rem","none"],"03":["0.9375rem","'Proxima Nova'","400","1.406rem","0rem","none"],"02":["0.8125rem","'Proxima Nova'","400","1.219rem","0rem","none"],"01":["0.6875rem","'Proxima Nova'","400","1.031rem","0rem","none"]},"text-semibold":{"10":["3.375rem","'Proxima Nova'","600","3.875rem","0rem","none"],"09":["3rem","'Proxima Nova'","600","3.654rem","0rem","none"],"08":["2rem","'Proxima Nova'","600","2.436rem","0rem","none"],"07":["1.5rem","'Proxima Nova'","600","1.827rem","0rem","none"],"06":["1.25rem","'Proxima Nova'","600","1.938rem","0rem","none"],"05":["1.125rem","'Proxima Nova'","600","1.688rem","0rem","none"],"":["1.125rem","'Proxima Nova'","600","1.688rem","0rem","none"],"04":["1rem","'Proxima Nova'","600","1.5rem","0rem","none"],"03":["0.9375rem","'Proxima Nova'","600","1.406rem","0rem","none"],"02":["0.8125rem","'Proxima Nova'","600","1.219rem","0rem","none"],"01":["0.6875rem","'Proxima Nova'","600","1.031rem","0rem","none"]},"text-extrabold":{"10":["3.375rem","'Proxima Nova'","800","3.875rem","0rem","none"],"09":["2.5rem","'Proxima Nova'","800","3.045rem","0rem","none"],"08":["1.875rem","'Proxima Nova'","800","2.284rem","0rem","none"],"07":["1.5rem","'Proxima Nova'","800","1.827rem","0rem","none"],"06":["1.25rem","'Proxima Nova'","800","1.875rem","0rem","none"],"05":["1.125rem","'Proxima Nova'","800","1.688rem","0rem","none"],"":["1.125rem","'Proxima Nova'","800","1.688rem","0rem","none"],"04":["1rem","'Proxima Nova'","800","1.5rem","0rem","none"],"03":["0.9375rem","'Proxima Nova'","800","1.406rem","0rem","none"],"02":["0.8125rem","'Proxima Nova'","800","1.219rem","0rem","none"],"01":["0.6875rem","'Proxima Nova'","800","1.031rem","0rem","none"]},"text-bold":{"10":["3.375rem","'Proxima Nova'","700","3.875rem","0rem","none"],"09":["2.5rem","'Proxima Nova'","700","3.045rem","0rem","none"],"08":["2rem","'Proxima Nova'","700","2.436rem","0rem","none"],"07":["1.5rem","'Proxima Nova'","700","1.827rem","0rem","none"],"06":["1.25rem","'Proxima Nova'","700","1.938rem","0rem","none"],"05":["1.125rem","'Proxima Nova'","700","1.688rem","0rem","none"],"":["1.125rem","'Proxima Nova'","700","1.688rem","0rem","none"],"04":["1rem","'Proxima Nova'","700","1.5rem","0rem","none"],"03":["0.9375rem","'Proxima Nova'","700","1.406rem","0rem","none"],"02":["0.8125rem","'Proxima Nova'","700","1.219rem","0rem","none"],"01":["0.6875rem","'Proxima Nova'","700","1.031rem","0rem","none"]},"text-mono":{"10":["3.375rem","'Proxima Nova'","400","4.111rem","0rem","none","\"lnum\", \"tnum\""],"09":["2.5rem","'Proxima Nova'","400","3.045rem","0rem","none","\"lnum\", \"tnum\""],"08":["1.875rem","'Proxima Nova'","400","2.284rem","0rem","none","\"lnum\", \"tnum\""],"07":["1.5rem","'Proxima Nova'","400","1.827rem","0rem","none","\"lnum\", \"tnum\""],"06":["1.25rem","'Proxima Nova'","400","1.875rem","0rem","none","\"lnum\", \"tnum\""],"05":["1.125rem","'Proxima Nova'","400","1.688rem","0rem","none","\"lnum\", \"tnum\""],"":["1.125rem","'Proxima Nova'","400","1.688rem","0rem","none","\"lnum\", \"tnum\""],"04":["1rem","'Proxima Nova'","400","1.5rem","0rem","none","\"lnum\", \"tnum\""],"03":["0.9375rem","'Proxima Nova'","400","1.172rem","0rem","none","\"lnum\", \"tnum\""],"02":["0.8125rem","'Proxima Nova'","400","1.016rem","0rem","none","\"lnum\", \"tnum\""],"01":["0.6875rem","'Proxima Nova'","400","0.859rem","0rem","none","\"lnum\", \"tnum\""]},"text-bold-condensed":{"10":["2.5rem","'Proxima Nova Condensed'","700","3.375rem","0rem","none"],"09":["1.875rem","'Proxima Nova Condensed'","700","2.531rem","0rem","none"],"08":["1.5rem","'Proxima Nova Condensed'","700","2.025rem","0rem","none"],"07":["1.25rem","'Proxima Nova Condensed'","700","1.688rem","0rem","none"],"06":["1.125rem","'Proxima Nova Condensed'","700","1.688rem","0rem","none"],"05":["1rem","'Proxima Nova Condensed'","700","1.5rem","0rem","none"],"":["1rem","'Proxima Nova Condensed'","700","1.5rem","0rem","none"],"04":["0.875rem","'Proxima Nova Condensed'","700","1.313rem","0rem","none"],"03":["0.75rem","'Proxima Nova Condensed'","700","0.938rem","0rem","none"],"02":["0.6875rem","'Proxima Nova Condensed'","700","0.859rem","0rem","none"],"01":["0.5625rem","'Proxima Nova Condensed'","700","0.703rem","0rem","none"]}},"EFFECTS|effect":{"shadow":{"":["0px 0px 8px 0px rgba(0,0,0,0.27)"]},"focus":{"":["0px 0px 0px 2px rgba(53,155,249,1)"]}},"ICONS|icon":{"placeholder":{"svg":[""]},"close":{"svg":[""]},"instagram":{"svg":[""]},"check":{"svg":[""]},"download":{"svg":[""]},"upload":{"svg":[""]},"menu":{"svg":[""]},"tester":{"svg":[""]},"loading-spinner":{"svg":[""]},"copy":{"svg":[""]},"quote-left":{"svg":[""]},"location-arrow":{"svg":[""]},"linkedin":{"svg":[""]},"facebook":{"svg":[""]},"tiktok":{"svg":[""]},"location":{"svg":[""]},"location-dot":{"svg":[""]},"search":{"svg":[""]},"visible":{"svg":[""]},"hidden":{"svg":[""]},"lock":{"svg":[""]},"edit":{"svg":[""]},"envelope":{"svg":[""]},"external-link":{"svg":[""]},"crosshairs":{"svg":[""]},"message":{"svg":[""]},"message-outline":{"svg":[""]},"minus":{"svg":[""]},"mobile":{"svg":[""]},"pdf":{"svg":[""]},"plus":{"svg":[""]},"chevron-up":{"svg":[""]},"chevron-down":{"svg":[""]},"chevron-left":{"svg":[""]},"chevron-right":{"svg":[""]},"clock":{"svg":[""]},"star":{"svg":[""]},"info":{"svg":[""]},"question-circle":{"svg":[""]},"user":{"svg":[""]},"circle":{"svg":[""]},"code":{"svg":[""]},"print":{"svg":[""]},"close-circle":{"svg":[""]},"exclamation-circle":{"svg":[""]},"phone":{"svg":[""]},"check-circle":{"svg":[""]},"envelope-solid":{"svg":[""]},"instant-issue":{"svg":[""]},"night-deposit":{"svg":[""]},"drive-through-video-teller":{"svg":[""]},"drive-through":{"svg":[""]},"safe-deposit-box":{"svg":[""]},"smart-locker":{"svg":[""]},"notary":{"svg":[""]},"video-teller":{"svg":[""]},"car":{"svg":[""]},"zelle-1":{"svg":[""]},"zelle-2":{"svg":[""]},"zelle-3":{"svg":[""]},"cash-stack-large":{"svg":[""]},"cash-stack-small":{"svg":[""]},"resource-checklist":{"svg":[""]},"resource-worksheet":{"svg":[""]},"check-book":{"svg":[""]},"no-check":{"svg":[""]},"checklist":{"svg":[""]},"computer-mortgage":{"svg":[""]},"connection":{"svg":[""]},"graph":{"svg":[""]},"credit-card":{"svg":[""]},"debit-card":{"svg":[""]},"debit-card-stars":{"svg":[""]},"debit-card-rate":{"svg":[""]},"card-group":{"svg":[""]},"mobile-money-chat":{"svg":[""]},"mobile-phone-diagonal":{"svg":[""]},"mobile-phone":{"svg":[""]},"mobile-wallet":{"svg":[""]},"heart-outlines":{"svg":[""]},"mobile-phone-location":{"svg":[""]},"mobile-transfer":{"svg":[""]},"contactless-payment-2":{"svg":[""]},"resource-calculator":{"svg":[""]},"resources":{"svg":[""]},"branch":{"svg":[""]},"chat-calculator":{"svg":[""]},"magnifying-glass-secure":{"svg":[""]},"mobile-deposit":{"svg":[""]},"testimonial":{"svg":[""]},"chat-house":{"svg":[""]},"hand-wave":{"svg":[""]},"heart-hand":{"svg":[""]},"handshake":{"svg":[""]},"women":{"svg":[""]},"contract":{"svg":[""]},"percentage":{"svg":[""]},"alert-thermometer":{"svg":[""]},"alert-sad-face":{"svg":[""]},"alert-light-bulb":{"svg":[""]},"alert-exclamation":{"svg":[""]},"alert-snowflake":{"svg":[""]},"alert-thumbs-up":{"svg":[""]},"atm-circle":{"svg":[""]},"24-hr-atm":{"svg":[""]},"coin-machine":{"svg":[""]},"drive-through-teller":{"svg":[""]},"slider":{"svg":[""]},"document":{"svg":[""]},"checkbox":{"svg":[""]},"radio":{"svg":[""]},"checkbox-selected":{"svg":[""]},"radio-selected":{"svg":[""]},"checkbox-hover":{"svg":[""]},"radio-hover":{"svg":[""]},"checkbox-selected-hover":{"svg":[""]},"radio-selected-hover":{"svg":[""]},"checkbox-disabled":{"svg":[""]},"radio-disabled":{"svg":[""]},"checkbox-selected-disabled":{"svg":[""]},"radio-selected-disabled":{"svg":[""]},"color-test":{"svg":[""]},"alert-warning":{"svg":[""]},"alert-success":{"svg":[""]},"alert-info":{"svg":[""]},"alert-fail":{"svg":[""]},"circle-plus":{"svg":[""]},"card-shopping":{"svg":[""]},"card-lock":{"svg":[""]},"card-heart":{"svg":[""]},"card-coins":{"svg":[""]},"card-money":{"svg":[""]},"card-security":{"svg":[""]},"card-transfers":{"svg":[""]},"card-hand":{"svg":[""]},"contactless-payment":{"svg":[""]},"card-contactless-hand":{"svg":[""]},"card-contactless-hand-summit":{"svg":[""]},"card-twenty-plus":{"svg":[""]},"atm-summit":{"svg":[""]},"atm":{"svg":[""]},"no-fee-vertical":{"svg":[""]},"no-fee-horizontal":{"svg":[""]},"globe-money":{"svg":[""]},"money-bills":{"svg":[""]},"money-bills-arrows":{"svg":[""]},"money-bag":{"svg":[""]},"money-bag-spending":{"svg":[""]},"money-income-2":{"svg":[""]},"money-click":{"svg":[""]},"money-decrease":{"svg":[""]},"money-transfer":{"svg":[""]},"money-zelle":{"svg":[""]},"money-arrow":{"svg":[""]},"money-income":{"svg":[""]},"money-budget":{"svg":[""]},"money-flower":{"svg":[""]},"money-equity":{"svg":[""]},"check-checkmark":{"svg":[""]},"money-growth":{"svg":[""]},"money-rocket":{"svg":[""]},"money-expense":{"svg":[""]},"money-bills-2":{"svg":[""]},"money-stack":{"svg":[""]},"money-clock":{"svg":[""]},"money-clock-arrow":{"svg":[""]},"money-bag-stack":{"svg":[""]},"money-garden":{"svg":[""]},"money-plant":{"svg":[""]},"money-increase":{"svg":[""]},"money-bill-cut":{"svg":[""]},"money-deposit":{"svg":[""]},"money-chart":{"svg":[""]},"money-trophy":{"svg":[""]},"money-withdraw":{"svg":[""]},"graph-search":{"svg":[""]},"graph-growth":{"svg":[""]},"graph-check":{"svg":[""]},"graph-growth-money":{"svg":[""]},"graph-growth-rocket":{"svg":[""]},"graph-growth-arrow-down":{"svg":[""]},"graph-growth-arrow-up":{"svg":[""]},"graph-growth-check":{"svg":[""]},"graph-shrink-arrow-up":{"svg":[""]},"graph-shrink-arrow-down":{"svg":[""]},"growth-woman-climb":{"svg":[""]},"list-money":{"svg":[""]},"list-check":{"svg":[""]},"document-check":{"svg":[""]},"clipboard-clock":{"svg":[""]},"clipboard-graph":{"svg":[""]},"clipboard-pencil":{"svg":[""]},"document-pencil-check":{"svg":[""]},"document-signature":{"svg":[""]},"statement-check":{"svg":[""]},"clipboard-calculator":{"svg":[""]},"list-check-pencil":{"svg":[""]},"list-stars-pencil":{"svg":[""]},"document-graph":{"svg":[""]},"signature":{"svg":[""]},"certificate-cd":{"svg":[""]},"certificate-deed":{"svg":[""]},"award-certificate":{"svg":[""]},"blog":{"svg":[""]},"note-star-reward":{"svg":[""]},"ribbon-award":{"svg":[""]},"ribbon-check":{"svg":[""]},"ribbon-star":{"svg":[""]},"star-circle":{"svg":[""]},"lightbulb-book":{"svg":[""]},"lightbulb-check":{"svg":[""]},"lightbulb":{"svg":[""]},"lightbulb-money":{"svg":[""]},"target":{"svg":[""]},"target-moneybag":{"svg":[""]},"target-star":{"svg":[""]},"calculator-pencil":{"svg":[""]},"calculator-chat":{"svg":[""]},"calculator-check":{"svg":[""]},"calculator":{"svg":[""]},"calculator-money":{"svg":[""]},"calculator-home":{"svg":[""]},"calculator-roof":{"svg":[""]},"horn-celebrate":{"svg":[""]},"firework":{"svg":[""]},"balloons":{"svg":[""]},"beers":{"svg":[""]},"chat-compact":{"svg":[""]},"chat":{"svg":[""]},"chat-summit-compact":{"svg":[""]},"chat-summit":{"svg":[""]},"checkmark":{"svg":[""]},"clock-check":{"svg":[""]},"clock-dials":{"svg":[""]},"clock-rocket":{"svg":[""]},"speedometer":{"svg":[""]},"stopwatch":{"svg":[""]},"compass":{"svg":[""]},"compass-2":{"svg":[""]},"map-path":{"svg":[""]},"map-pin":{"svg":[""]},"map-money":{"svg":[""]},"roadsign":{"svg":[""]},"email-check":{"svg":[""]},"email-newsletter":{"svg":[""]},"email-fraud-summit":{"svg":[""]},"auto-90":{"svg":[""]},"auto-coverage":{"svg":[""]},"auto-green":{"svg":[""]},"auto-loan":{"svg":[""]},"auto-wheel":{"svg":[""]},"graduation-money":{"svg":[""]},"graduation-cap-diploma":{"svg":[""]},"graduation-cap-globe":{"svg":[""]},"graduation-hat":{"svg":[""]},"graduation-money-circle":{"svg":[""]},"heart-cursor":{"svg":[""]},"charity-donation":{"svg":[""]},"hand-heart-select":{"svg":[""]},"hand-clap":{"svg":[""]},"handshake-check":{"svg":[""]},"high-five":{"svg":[""]},"hands-heart":{"svg":[""]},"hands":{"svg":[""]},"hand-deposit":{"svg":[""]},"hand-coins":{"svg":[""]},"hand-heart":{"svg":[""]},"hand-flower-money":{"svg":[""]},"hand-money":{"svg":[""]},"card-swipe":{"svg":[""]},"home-heart":{"svg":[""]},"home-laptop":{"svg":[""]},"home-lock":{"svg":[""]},"home-money":{"svg":[""]},"home-paint":{"svg":[""]},"home-play-button":{"svg":[""]},"home-calculator":{"svg":[""]},"home-tree":{"svg":[""]},"property-investment":{"svg":[""]},"school":{"svg":[""]},"university":{"svg":[""]},"keys":{"svg":[""]},"tools":{"svg":[""]},"rewards-box-star":{"svg":[""]},"shipping-box":{"svg":[""]},"paint-roller":{"svg":[""]},"paintbrush":{"svg":[""]},"bath":{"svg":[""]},"home-construction-plan":{"svg":[""]},"desktop-banking":{"svg":[""]},"desktop-checklist":{"svg":[""]},"desktop-download":{"svg":[""]},"desktop-check":{"svg":[""]},"desktop-shopping":{"svg":[""]},"laptop-budget-calculator":{"svg":[""]},"laptop-calculator":{"svg":[""]},"laptop-check":{"svg":[""]},"laptop-checklist":{"svg":[""]},"laptop-banking":{"svg":[""]},"laptop-card-pin":{"svg":[""]},"laptop-money":{"svg":[""]},"laptop-banking-summit":{"svg":[""]},"phone-transfer":{"svg":[""]},"phone-banking-select":{"svg":[""]},"phone-wallet":{"svg":[""]},"phone-deposit-check":{"svg":[""]},"phone-deposit":{"svg":[""]},"phone-contactless-payment":{"svg":[""]},"phone-money":{"svg":[""]},"phone-contactless-payment-2":{"svg":[""]},"phone-banking-summit":{"svg":[""]},"phone-summit":{"svg":[""]},"smartwatch":{"svg":[""]},"podcast":{"svg":[""]},"cash-register":{"svg":[""]},"people-celebrate":{"svg":[""]},"people-celebrate-star":{"svg":[""]},"people-chatting":{"svg":[""]},"people-community-chat":{"svg":[""]},"people-community-heart":{"svg":[""]},"people-pair":{"svg":[""]},"people-budget":{"svg":[""]},"people-chatting-2":{"svg":[""]},"people-summit-staff":{"svg":[""]},"people-pair-2":{"svg":[""]},"person-woman-help":{"svg":[""]},"people-community-heart-2":{"svg":[""]},"pie-chart":{"svg":[""]},"pie-chart-outline":{"svg":[""]},"pie-chart-money":{"svg":[""]},"ladder-cloud":{"svg":[""]},"cash-boomerang":{"svg":[""]},"umbrella":{"svg":[""]},"piggy-bank":{"svg":[""]},"premium-account":{"svg":[""]},"search-glass":{"svg":[""]},"search-check":{"svg":[""]},"search-graph":{"svg":[""]},"search-bar":{"svg":[""]},"thumbs-up":{"svg":[""]},"rating-review-thumbs":{"svg":[""]},"rating-hand-star":{"svg":[""]},"star-shooting":{"svg":[""]},"security-shield-money":{"svg":[""]},"security-shield-check":{"svg":[""]},"security-hand":{"svg":[""]},"security-locked-pin":{"svg":[""]},"security-unlocked-pin":{"svg":[""]},"security-ongoing":{"svg":[""]},"security-check":{"svg":[""]},"pin-pad":{"svg":[""]},"profile-security":{"svg":[""]},"vote-select":{"svg":[""]},"chart-percent":{"svg":[""]},"configure":{"svg":[""]},"mountain-check":{"svg":[""]},"mountain":{"svg":[""]},"traffic-light":{"svg":[""]},"travel-plane":{"svg":[""]},"travel-ship":{"svg":[""]},"travel-suitcase":{"svg":[""]},"travel-suitcase-multiple":{"svg":[""]},"wallet":{"svg":[""]},"shopping-cart":{"svg":[""]},"shopping-purse":{"svg":[""]},"gift-reward":{"svg":[""]},"reward-star":{"svg":[""]},"utensils":{"svg":[""]},"utensils-plate":{"svg":[""]},"meal-food":{"svg":[""]}},"GRAPHICS|graphic":{"apple-app-store":{"svg":[""],"":["159px","47px"]},"logo":{"svg":[""],"":["143px","64px"]},"ncua":{"svg":[""],"":["108px","50px"]},"ehl":{"svg":[""],"":["53px","53px"]},"google-play-store":{"svg":[""],"":["159px","47px"]}},"LAYOUTS|":{"spacing":{"1":["0.625rem"]},"col":{"1":["8.3333%"]},"colvw":{"1":["8.3333vw"]}},"FONTS|font":{"proxima_nova condensed-700-normal":{"":["Proxima Nova Condensed","font-proxima_nova condensed-700-normal.otf","700","normal"]},"proxima_nova-700-normal":{"":["Proxima Nova","font-proxima_nova-700-normal.otf","700","normal"]},"proxima_nova-600-normal":{"":["Proxima Nova","font-proxima_nova-600-normal.otf","600","normal"]},"proxima_nova-800-normal":{"":["Proxima Nova","font-proxima_nova-800-normal.otf","800","normal"]},"proxima_nova-300-normal":{"":["Proxima Nova","font-proxima_nova-300-normal.otf","300","normal"]}},"BREAKPOINTS|breakpoint":{"sm":{"":["sm","0px","576px","1"]},"md":{"":["md","0px","768px","2"]},"lg":{"":["lg","0px","992px","3"]},"xlg":{"":["xlg","0px","1200px","4"]}}};
|
|
6
6
|
this.prefix = 'scw';// dynamic
|
|
7
|
-
this.uuid = '
|
|
7
|
+
this.uuid = 'b1ff3411-7841-4826-9fcf-021cf86bf187';// dynamic
|
|
8
8
|
|
|
9
9
|
this.initialized = false;
|
|
10
10
|
this.lookup;
|
|
Binary file
|
|
@@ -533,7 +533,7 @@ var LZ=Object.create;var j6=Object.defineProperty;var nf=Object.getOwnPropertyDe
|
|
|
533
533
|
scw-tooltip {
|
|
534
534
|
padding-left: 5px;
|
|
535
535
|
display: inline-flex;
|
|
536
|
-
}`});var J1,M2,y2,A2,Q6=C(()=>{"use strict";J1=($=>($.button="button",$.color="color",$.datetimeLocal="datetimeLocal",$.file="file",$.hidden="hidden",$.image="image",$.month="month",$.number="number",$.range="range",$.reset="reset",$.search="search",$.select="select",$.submit="submit",$.tel="tel",$.time="time",$.url="url",$.week="week",$.fieldset="fieldset",$.date="date",$.checkbox="checkbox",$.email="email",$.password="password",$.radio="radio",$.text="text",$.telephone="telephone",$.currency="currency",$.ssn="ssn",$))(J1||{}),M2=(o=>(o.none="none",o.sentences="sentences",o.words="words",o.characters="characters",o.default="none",o))(M2||{}),y2=(r=>(r.off="off",r.on="on",r.default="on",r))(y2||{}),A2=(r=>(r.off="off",r.on="on",r.default="off",r))(A2||{})});function k(e,i,t={},r){let a=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:t,...r});return i.dispatchEvent(a),a}var T=C(()=>{"use strict"});function SZ(e){return isFinite(e.getTime())}function vf(e){if(/(\d{2})\/(\d{2})\/(\d{4})/.test(e)){let[i,t,r]=e.split("/");return`${r}-${i}-${t}`}return""}function bf(e){if(/(\d{4})-(\d{2})-(\d{2})/.test(e)){let[i,t,r]=e.split("-");return`${t}/${r}/${i}`}return""}function xf(e){if(SZ(e)){let i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),t=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e);return`${t}/${r}/${i}`}return""}var X5=C(()=>{"use strict"});function Hf(e,i,t){let r=t;if(e&&e.length>0){let a=e.replace(/[^\d]/g,""),o="";if(a.length>6){let c=a.substring(0,3),d=`${a.substring(3,6)}-${a.substring(6)}`;o=`(${c}) ${d}`}else a.length>3?o=`(${a.substring(0,3)}) ${a.substring(3)}`:a.length>0&&(o=`(${a.substring(0)}`);let s=e.length<i.length;return e.length===t?r=o?o.length:0:t===1?r=s?1:2:t===5||t===6?r=s?5:7:t===9&&(r=s?9:10),{value:a,display:o,selectionIndex:r}}else return{value:"",display:"",selectionIndex:r}}var Vf=C(()=>{"use strict"});function Mf(e,i){if(!e)return{value:"",display:"",selectionIndex:0};let t=e?e.replace(/[^\d]/g,""):"";return t.length<e.length&&i--,{value:t,display:t,selectionIndex:i||0}}var yf=C(()=>{"use strict"});function Q5(e,i,t=!1,r){if(!e||e==="$")return{value:"",display:"",selectionIndex:0};t5++;let a=new Date;if(t5>20)return J5=a,t5=0,{value:"error",display:"error",selectionIndex:0};a.getTime()-J5.getTime()>100&&(J5=a,t5=0);let o=e.replace(/[^\d|,|$|.]/g,"");o=o.replace(/^\$0+/g,"$");let s=o,c=s.split(".");if(c.length>2){let g=c.pop();s=`${c.join("")}.${g}`,c=s.split(".")}let d=c.length>1?c[c.length-1].length:0;d>2?(s=s.replace(/[^\d]/g,""),s=Af(s,s.length-2,".")):d>0&&(s=s.replace(/[^\d/.]/g,"")),t&&(d===0?s=`${s.replace(/\./g,"")}.00`:d===1&&(s=`${s}0`));let p=s.split("."),u=p[0];u=u.replace(/[^\d]/g,""),u=u?`${parseInt(u)}`:"0",u=BZ(u,",",3),p[0]=u;let m=`$${p.join(".")}`,x=m.replace(/,|\$/g,""),v=i;if(m!==o){let g=o.substr(0,i),M=m.substr(0,i),A=(g.match(/,|\$/g)||[]).length,Z=(M.match(/,|\$/g)||[]).length,F=m.substr(i);g===M&&F.indexOf(",")===0&&r===i?v++:v+=Z-A}else o!==e&&(v+=o.length-e.length);return{value:x,display:m,selectionIndex:v||0}}function Af(e,i,t){return e.substring(0,i)+t+e.substring(i)}function BZ(e,i,t){let r=0,a=e;for(let o=0;o<e.length;o++)o%t===0&&(r>0&&(a=Af(a,e.length-o,i)),r++);return a}var t5,J5,Zf=C(()=>{"use strict";t5=0,J5=new Date});function kf(e,i,t){let r=t;if(e&&e.length>0){let a=e.replace(/[^\d]/g,""),o="",s=a.substring(0,3);if(a.length>5){let d=`${a.substring(3,5)}-${a.substring(5)}`;o=`${s}-${d}`}else a.length>3?o=`${s}-${a.substring(3)}`:a.length>0&&(o=`${s}`);let c=e.length<i.length;return e.length===t?r=o?o.length:0:t===4?r=c?4:5:t===7&&(r=c?7:8),{value:a,display:o,selectionIndex:r}}else return{value:"",display:"",selectionIndex:r}}var Ef=C(()=>{"use strict"});var Q1,_f=C(()=>{"use strict";X5();Vf();yf();Zf();Ef();Q6();Q1=class{constructor(i){this.lastSelectionStart=0,this.inputBase=i}autoFormat(i){if(this.inputBase.type==="telephone"){let t=Hf(i,this.inputBase.valueDisplayed,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t)}else if(this.inputBase.type==="ssn"){let t=kf(i,this.inputBase.valueDisplayed,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t)}else if(this.inputBase.type==="date")i.includes("-")?(this.inputBase.value=bf(i),this.inputBase.valueDisplayed=i):i.includes("/")?(this.inputBase.value=i,this.inputBase.valueDisplayed=vf(i)):(this.inputBase.value=i,this.inputBase.valueDisplayed=i);else if(this.inputBase.type==="number"){let t=Mf(i,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t,!0,!1)}else if(this.inputBase.type==="currency"){let t=Q5(i,this.inputBase.input&&this.inputBase.input.selectionStart||0,!1,this.lastSelectionStart);this.applyValues(t)}else this.inputBase.value=i,this.inputBase.valueDisplayed=this.inputBase.value;this.updateSelection()}autoFormatFinish(i){if(this.inputBase.type==="currency"){let t=Q5(i,this.inputBase.input&&this.inputBase.input.selectionStart||0,!0,this.lastSelectionStart);this.applyValues(t,!1,!1)}this.updateSelection()}applyValues(i,t=!1,r=!0){this.inputBase.value=t?i.display:i.value?i.value:"",this.inputBase.valueDisplayed=i.display,this.inputBase.input&&(this.inputBase.input.value=i.display,r&&this.inputBase.input.setSelectionRange(i.selectionIndex,i.selectionIndex))}updateSelection(){this.lastSelectionStart=this.inputBase.input&&this.inputBase.input.selectionStart||0}}});function E(e,i){return(t,r)=>{let{update:a}=t;i=Object.assign({waitUntilFirstUpdate:!1},i),t.update=function(o){if(o.has(e)){let s=o.get(e),c=this[e];s!==c&&i&&(!i.waitUntilFirstUpdate||this.hasUpdated)&&this[r].call(this,s,c)}a.call(this,o)}}}var s3=C(()=>{"use strict"});import{html as x3}from"lit";import{property as J,state as OZ,query as $f}from"lit/decorators.js";import{classMap as IZ}from"lit/directives/class-map.js";import{live as NZ}from"lit/directives/live.js";import{ifDefined as DZ}from"lit-html/directives/if-defined.js";var B,Sf=C(()=>{"use strict";w1();H();Lf();Q6();T();T();_f();s3();B=class extends S{constructor(){super();this.type="text";this.autoCapitalize="none";this.autoComplete="on";this.autoCorrect="off";this.autoFocus=!1;this.inputmode="text";this.selectAllOnFocus=!1;this.hideFeedback=!1;this.defaultFeedback="";this.clearable=!1;this.dropdownText="";this.dropdownIcon="";this.inputSize="default";this.accept=null;this.valueDisplayed="";this.showPassword=!1;this.filePickerOpen=!1;this.hideDropdown=!0;this.showClear=!1;this.element="input-field",this.autoFormatter=new Q1(this),this.boundOutsideClickHandler=this.handleOutsideClick.bind(this)}static get styles(){return[super.styles,wf]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group"),this.autoFormatter=new Q1(this),this.autoFormatter.autoFormat(this.value),this.autoFormatter.autoFormatFinish(this.value),this.dropdownText&&window.addEventListener("mousedown",this.boundOutsideClickHandler,!1)}disconnectedCallback(){this.dropdownText&&window.removeEventListener("mousedown",this.boundOutsideClickHandler),super.disconnectedCallback()}firstUpdated(){this.value&&this.valueHandler()}handleOutsideClick(t){t.composedPath().includes(this)||(this.hideDropdown=!0)}formatValue(){this.value!==this.lastFormattedValue&&(this.lastFormattedValue=this.value,this.autoFormatter.autoFormat(this.value),this.focused||this.autoFormatter.autoFormatFinish(this.value))}handleChange(){this.value=this.input.value,this.filePickerOpen=!1}valueHandler(){this.formatValue(),this.value&&(this.type==="file"||this.clearable)?this.showClear=!0:this.showClear=!1,k("scw-value-change",this,{value:this.value,name:this.name,valueDisplayed:this.valueDisplayed})}handleShowPassword(){this.showPassword=!this.showPassword,this.requestUpdate()}handleInteraction(t){this.autoFormatter.updateSelection(),this.type==="file"&&t.type==="click"&&(this.filePickerOpen=!0)}handleKeydown(t){this.type==="currency"&&t.key==="Enter"&&this.autoFormatter.autoFormatFinish(this.value)}handleCancel(){this.filePickerOpen=!1}blurHandler(){this.autoFormatter.autoFormatFinish(this.value),k("scw-blur",this),this.focused=!1,this.filePickerOpen||this.validate()}handleClear(){this.value=""}focusHandler(){this.autoFormatter.updateSelection(),this.focused=!0,this.hideDropdown=!1,this.selectAllOnFocus&&this.input.setSelectionRange(0,this.input.value.length),k("scw-focus",this)}dropdownClick(){this.hideDropdown=!0,k("scw-dropdown",this),this.requestUpdate()}invalidHandler(t){t.preventDefault()}render(){let t={focused:this.focused,invalid:this.invalid,inputWrapper:!0,small:this.inputSize==="small",showFile:this.type==="file"&&this.value};return x3`<div class=${IZ(t)}>
|
|
536
|
+
}`});var J1,M2,y2,A2,Q6=C(()=>{"use strict";J1=($=>($.button="button",$.color="color",$.datetimeLocal="datetimeLocal",$.file="file",$.hidden="hidden",$.image="image",$.month="month",$.number="number",$.range="range",$.reset="reset",$.search="search",$.select="select",$.submit="submit",$.tel="tel",$.time="time",$.url="url",$.week="week",$.fieldset="fieldset",$.date="date",$.checkbox="checkbox",$.email="email",$.password="password",$.radio="radio",$.text="text",$.telephone="telephone",$.currency="currency",$.ssn="ssn",$))(J1||{}),M2=(o=>(o.none="none",o.sentences="sentences",o.words="words",o.characters="characters",o.default="none",o))(M2||{}),y2=(r=>(r.off="off",r.on="on",r.default="on",r))(y2||{}),A2=(r=>(r.off="off",r.on="on",r.default="off",r))(A2||{})});function k(e,i,t={},r){let a=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:t,...r});return i.dispatchEvent(a),a}var T=C(()=>{"use strict"});function SZ(e){return isFinite(e.getTime())}function vf(e){if(/(\d{2})\/(\d{2})\/(\d{4})/.test(e)){let[i,t,r]=e.split("/");return`${r}-${i}-${t}`}return""}function bf(e){if(/(\d{4})-(\d{2})-(\d{2})/.test(e)){let[i,t,r]=e.split("-");return`${t}/${r}/${i}`}return""}function xf(e){if(SZ(e)){let i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),t=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e);return`${t}/${r}/${i}`}return""}var X5=C(()=>{"use strict"});function Hf(e,i,t){let r=t;if(e&&e.length>0){let a=e.replace(/[^\d]/g,""),o="";if(a.length>6){let c=a.substring(0,3),d=`${a.substring(3,6)}-${a.substring(6)}`;o=`(${c}) ${d}`}else a.length>3?o=`(${a.substring(0,3)}) ${a.substring(3)}`:a.length>0&&(o=`(${a.substring(0)}`);let s=e.length<i.length;return e.length===t?r=o?o.length:0:t===1?r=s?1:2:t===5||t===6?r=s?5:7:t===9&&(r=s?9:10),{value:a,display:o,selectionIndex:r}}else return{value:"",display:"",selectionIndex:r}}var Vf=C(()=>{"use strict"});function Mf(e,i){if(!e)return{value:"",display:"",selectionIndex:0};let t=e?e.replace(/[^\d]/g,""):"";return t.length<e.length&&i--,{value:t,display:t,selectionIndex:i||0}}var yf=C(()=>{"use strict"});function Q5(e,i,t=!1,r){if(!e||e==="$")return{value:"",display:"",selectionIndex:0};t5++;let a=new Date;if(t5>20)return J5=a,t5=0,{value:"error",display:"error",selectionIndex:0};a.getTime()-J5.getTime()>100&&(J5=a,t5=0);let o=e.replace(/[^\d|,|$|.]/g,"");o=o.replace(/^\$0+/g,"$");let s=o,c=s.split(".");if(c.length>2){let g=c.pop();s=`${c.join("")}.${g}`,c=s.split(".")}let d=c.length>1?c[c.length-1].length:0;d>2?(s=s.replace(/[^\d]/g,""),s=Af(s,s.length-2,".")):d>0&&(s=s.replace(/[^\d/.]/g,"")),t&&(d===0?s=`${s.replace(/\./g,"")}.00`:d===1&&(s=`${s}0`));let p=s.split("."),u=p[0];u=u.replace(/[^\d]/g,""),u=u?`${parseInt(u)}`:"0",u=BZ(u,",",3),p[0]=u;let m=`$${p.join(".")}`,x=m.replace(/,|\$/g,""),v=i;if(m!==o){let g=o.substr(0,i),M=m.substr(0,i),A=(g.match(/,|\$/g)||[]).length,Z=(M.match(/,|\$/g)||[]).length,F=m.substr(i);g===M&&F.indexOf(",")===0&&r===i?v++:v+=Z-A}else o!==e&&(v+=o.length-e.length);return{value:x,display:m,selectionIndex:v||0}}function Af(e,i,t){return e.substring(0,i)+t+e.substring(i)}function BZ(e,i,t){let r=0,a=e;for(let o=0;o<e.length;o++)o%t===0&&(r>0&&(a=Af(a,e.length-o,i)),r++);return a}var t5,J5,Zf=C(()=>{"use strict";t5=0,J5=new Date});function kf(e,i,t){let r=t;if(e&&e.length>0){let a=e.replace(/[^\d]/g,""),o="",s=a.substring(0,3);if(a.length>5){let d=`${a.substring(3,5)}-${a.substring(5)}`;o=`${s}-${d}`}else a.length>3?o=`${s}-${a.substring(3)}`:a.length>0&&(o=`${s}`);let c=e.length<i.length;return e.length===t?r=o?o.length:0:t===4?r=c?4:5:t===7&&(r=c?7:8),{value:a,display:o,selectionIndex:r}}else return{value:"",display:"",selectionIndex:r}}var Ef=C(()=>{"use strict"});var Q1,_f=C(()=>{"use strict";X5();Vf();yf();Zf();Ef();Q6();Q1=class{constructor(i){this.lastSelectionStart=0,this.inputBase=i}autoFormat(i){if(this.inputBase.type==="telephone"){let t=Hf(i,this.inputBase.valueDisplayed,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t)}else if(this.inputBase.type==="ssn"){let t=kf(i,this.inputBase.valueDisplayed,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t)}else if(this.inputBase.type==="date")i.includes("-")?(this.inputBase.value=bf(i),this.inputBase.valueDisplayed=i):i.includes("/")?(this.inputBase.value=i,this.inputBase.valueDisplayed=vf(i)):(this.inputBase.value=i,this.inputBase.valueDisplayed=i);else if(this.inputBase.type==="number"){let t=Mf(i,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t,!0,!1)}else if(this.inputBase.type==="currency"){let t=Q5(i,this.inputBase.input&&this.inputBase.input.selectionStart||0,!1,this.lastSelectionStart);this.applyValues(t)}else this.inputBase.value=i,this.inputBase.valueDisplayed=this.inputBase.value;this.updateSelection()}autoFormatFinish(i){if(this.inputBase.type==="currency"){let t=Q5(i,this.inputBase.input&&this.inputBase.input.selectionStart||0,!0,this.lastSelectionStart);this.applyValues(t,!1,!1)}this.updateSelection()}applyValues(i,t=!1,r=!0){this.inputBase.value=t?i.display:i.value?i.value:"",this.inputBase.valueDisplayed=i.display,this.inputBase.input&&(this.inputBase.input.value=i.display,r&&this.inputBase.input.setSelectionRange(i.selectionIndex,i.selectionIndex))}updateSelection(){this.lastSelectionStart=this.inputBase.input&&this.inputBase.input.selectionStart||0}}});function E(e,i){return(t,r)=>{let{update:a}=t;i=Object.assign({waitUntilFirstUpdate:!1},i),t.update=function(o){if(o.has(e)){let s=o.get(e),c=this[e];s!==c&&i&&(!i.waitUntilFirstUpdate||this.hasUpdated)&&this[r].call(this,s,c)}a.call(this,o)}}}var s3=C(()=>{"use strict"});import{html as x3}from"lit";import{property as J,state as OZ,query as $f}from"lit/decorators.js";import{classMap as IZ}from"lit/directives/class-map.js";import{live as NZ}from"lit/directives/live.js";import{ifDefined as DZ}from"lit-html/directives/if-defined.js";var B,Sf=C(()=>{"use strict";w1();H();Lf();Q6();T();T();_f();s3();B=class extends S{constructor(){super();this.type="text";this.autoCapitalize="none";this.autoComplete="on";this.autoCorrect="off";this.autoFocus=!1;this.inputmode="text";this.selectAllOnFocus=!1;this.hideFeedback=!1;this.defaultFeedback="";this.clearable=!1;this.dropdownText="";this.dropdownIcon="";this.inputSize="default";this.accept=null;this.valueDisplayed="";this.showPassword=!1;this.filePickerOpen=!1;this.hideDropdown=!0;this.showClear=!1;this.element="input-field",this.autoFormatter=new Q1(this),this.boundOutsideClickHandler=this.handleOutsideClick.bind(this)}static get styles(){return[super.styles,wf]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group"),this.autoFormatter=new Q1(this),this.autoFormatter.autoFormat(this.value),this.autoFormatter.autoFormatFinish(this.value),this.dropdownText&&window.addEventListener("mousedown",this.boundOutsideClickHandler,!1)}disconnectedCallback(){this.dropdownText&&window.removeEventListener("mousedown",this.boundOutsideClickHandler),super.disconnectedCallback()}firstUpdated(){this.value&&this.valueHandler()}handleOutsideClick(t){t.composedPath().includes(this)||(this.hideDropdown=!0)}formatValue(){this.value!==this.lastFormattedValue&&(this.lastFormattedValue=this.value,this.autoFormatter.autoFormat(this.value),this.focused||this.autoFormatter.autoFormatFinish(this.value))}handleChange(){this.value=this.input.value,this.filePickerOpen=!1}valueHandler(){var t;this.formatValue(),this.value&&(this.type==="file"||this.clearable)?this.showClear=!0:this.showClear=!1,k("scw-value-change",this,{value:this.value,name:this.name,valueDisplayed:this.valueDisplayed,...this.type==="file"?{files:(t=this.input)==null?void 0:t.files}:{}})}handleShowPassword(){this.showPassword=!this.showPassword,this.requestUpdate()}handleInteraction(t){this.autoFormatter.updateSelection(),this.type==="file"&&t.type==="click"&&(this.filePickerOpen=!0)}handleKeydown(t){this.type==="currency"&&t.key==="Enter"&&this.autoFormatter.autoFormatFinish(this.value)}handleCancel(){this.filePickerOpen=!1}blurHandler(){this.autoFormatter.autoFormatFinish(this.value),k("scw-blur",this),this.focused=!1,this.filePickerOpen||this.validate()}handleClear(){this.value=""}focusHandler(){this.autoFormatter.updateSelection(),this.focused=!0,this.hideDropdown=!1,this.selectAllOnFocus&&this.input.setSelectionRange(0,this.input.value.length),k("scw-focus",this)}dropdownClick(){this.hideDropdown=!0,k("scw-dropdown",this),this.requestUpdate()}invalidHandler(t){t.preventDefault()}render(){let t={focused:this.focused,invalid:this.invalid,inputWrapper:!0,small:this.inputSize==="small",showFile:this.type==="file"&&this.value};return x3`<div class=${IZ(t)}>
|
|
537
537
|
${this.label?x3` <div class="input-label">
|
|
538
538
|
${this.label}${this.required?x3`<span class="required-label">
|
|
539
539
|
${this.requiredLabel}
|
package/dist-node/scw.js
CHANGED
|
@@ -533,7 +533,7 @@ var Mk=Object.create;var j6=Object.defineProperty;var df=Object.getOwnPropertyDe
|
|
|
533
533
|
scw-tooltip {
|
|
534
534
|
padding-left: 5px;
|
|
535
535
|
display: inline-flex;
|
|
536
|
-
}`});var W1,b2,x2,H2,J6=C(()=>{"use strict";W1=($=>($.button="button",$.color="color",$.datetimeLocal="datetimeLocal",$.file="file",$.hidden="hidden",$.image="image",$.month="month",$.number="number",$.range="range",$.reset="reset",$.search="search",$.select="select",$.submit="submit",$.tel="tel",$.time="time",$.url="url",$.week="week",$.fieldset="fieldset",$.date="date",$.checkbox="checkbox",$.email="email",$.password="password",$.radio="radio",$.text="text",$.telephone="telephone",$.currency="currency",$.ssn="ssn",$))(W1||{}),b2=(o=>(o.none="none",o.sentences="sentences",o.words="words",o.characters="characters",o.default="none",o))(b2||{}),x2=(r=>(r.off="off",r.on="on",r.default="on",r))(x2||{}),H2=(r=>(r.off="off",r.on="on",r.default="off",r))(H2||{})});function k(e,i,t={},r){let a=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:t,...r});return i.dispatchEvent(a),a}var F=C(()=>{"use strict"});function Rk(e){return isFinite(e.getTime())}function Mf(e){if(/(\d{2})\/(\d{2})\/(\d{4})/.test(e)){let[i,t,r]=e.split("/");return`${r}-${i}-${t}`}return""}function yf(e){if(/(\d{4})-(\d{2})-(\d{2})/.test(e)){let[i,t,r]=e.split("-");return`${t}/${r}/${i}`}return""}function Af(e){if(Rk(e)){let i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),t=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e);return`${t}/${r}/${i}`}return""}var Q5=C(()=>{"use strict"});function Zf(e,i,t){let r=t;if(e&&e.length>0){let a=e.replace(/[^\d]/g,""),o="";if(a.length>6){let c=a.substring(0,3),d=`${a.substring(3,6)}-${a.substring(6)}`;o=`(${c}) ${d}`}else a.length>3?o=`(${a.substring(0,3)}) ${a.substring(3)}`:a.length>0&&(o=`(${a.substring(0)}`);let n=e.length<i.length;return e.length===t?r=o?o.length:0:t===1?r=n?1:2:t===5||t===6?r=n?5:7:t===9&&(r=n?9:10),{value:a,display:o,selectionIndex:r}}else return{value:"",display:"",selectionIndex:r}}var kf=C(()=>{"use strict"});function Ef(e,i){if(!e)return{value:"",display:"",selectionIndex:0};let t=e?e.replace(/[^\d]/g,""):"";return t.length<e.length&&i--,{value:t,display:t,selectionIndex:i||0}}var _f=C(()=>{"use strict"});function e9(e,i,t=!1,r){if(!e||e==="$")return{value:"",display:"",selectionIndex:0};Q6++;let a=new Date;if(Q6>20)return t9=a,Q6=0,{value:"error",display:"error",selectionIndex:0};a.getTime()-t9.getTime()>100&&(t9=a,Q6=0);let o=e.replace(/[^\d|,|$|.]/g,"");o=o.replace(/^\$0+/g,"$");let n=o,c=n.split(".");if(c.length>2){let g=c.pop();n=`${c.join("")}.${g}`,c=n.split(".")}let d=c.length>1?c[c.length-1].length:0;d>2?(n=n.replace(/[^\d]/g,""),n=$f(n,n.length-2,".")):d>0&&(n=n.replace(/[^\d/.]/g,"")),t&&(d===0?n=`${n.replace(/\./g,"")}.00`:d===1&&(n=`${n}0`));let p=n.split("."),u=p[0];u=u.replace(/[^\d]/g,""),u=u?`${parseInt(u)}`:"0",u=Fk(u,",",3),p[0]=u;let m=`$${p.join(".")}`,x=m.replace(/,|\$/g,""),v=i;if(m!==o){let g=o.substr(0,i),M=m.substr(0,i),A=(g.match(/,|\$/g)||[]).length,Z=(M.match(/,|\$/g)||[]).length,R=m.substr(i);g===M&&R.indexOf(",")===0&&r===i?v++:v+=Z-A}else o!==e&&(v+=o.length-e.length);return{value:x,display:m,selectionIndex:v||0}}function $f(e,i,t){return e.substring(0,i)+t+e.substring(i)}function Fk(e,i,t){let r=0,a=e;for(let o=0;o<e.length;o++)o%t===0&&(r>0&&(a=$f(a,e.length-o,i)),r++);return a}var Q6,t9,Bf=C(()=>{"use strict";Q6=0,t9=new Date});function Sf(e,i,t){let r=t;if(e&&e.length>0){let a=e.replace(/[^\d]/g,""),o="",n=a.substring(0,3);if(a.length>5){let d=`${a.substring(3,5)}-${a.substring(5)}`;o=`${n}-${d}`}else a.length>3?o=`${n}-${a.substring(3)}`:a.length>0&&(o=`${n}`);let c=e.length<i.length;return e.length===t?r=o?o.length:0:t===4?r=c?4:5:t===7&&(r=c?7:8),{value:a,display:o,selectionIndex:r}}else return{value:"",display:"",selectionIndex:r}}var Of=C(()=>{"use strict"});var K1,If=C(()=>{"use strict";Q5();kf();_f();Bf();Of();J6();K1=class{constructor(i){this.lastSelectionStart=0,this.inputBase=i}autoFormat(i){if(this.inputBase.type==="telephone"){let t=Zf(i,this.inputBase.valueDisplayed,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t)}else if(this.inputBase.type==="ssn"){let t=Sf(i,this.inputBase.valueDisplayed,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t)}else if(this.inputBase.type==="date")i.includes("-")?(this.inputBase.value=yf(i),this.inputBase.valueDisplayed=i):i.includes("/")?(this.inputBase.value=i,this.inputBase.valueDisplayed=Mf(i)):(this.inputBase.value=i,this.inputBase.valueDisplayed=i);else if(this.inputBase.type==="number"){let t=Ef(i,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t,!0,!1)}else if(this.inputBase.type==="currency"){let t=e9(i,this.inputBase.input&&this.inputBase.input.selectionStart||0,!1,this.lastSelectionStart);this.applyValues(t)}else this.inputBase.value=i,this.inputBase.valueDisplayed=this.inputBase.value;this.updateSelection()}autoFormatFinish(i){if(this.inputBase.type==="currency"){let t=e9(i,this.inputBase.input&&this.inputBase.input.selectionStart||0,!0,this.lastSelectionStart);this.applyValues(t,!1,!1)}this.updateSelection()}applyValues(i,t=!1,r=!0){this.inputBase.value=t?i.display:i.value?i.value:"",this.inputBase.valueDisplayed=i.display,this.inputBase.input&&(this.inputBase.input.value=i.display,r&&this.inputBase.input.setSelectionRange(i.selectionIndex,i.selectionIndex))}updateSelection(){this.lastSelectionStart=this.inputBase.input&&this.inputBase.input.selectionStart||0}}});function E(e,i){return(t,r)=>{let{update:a}=t;i=Object.assign({waitUntilFirstUpdate:!1},i),t.update=function(o){if(o.has(e)){let n=o.get(e),c=this[e];n!==c&&i&&(!i.waitUntilFirstUpdate||this.hasUpdated)&&this[r].call(this,n,c)}a.call(this,o)}}}var n3=C(()=>{"use strict"});var Df={};l(Df,{default:()=>O});import{html as b3}from"lit";import{property as X,state as Tk,query as Nf}from"lit/decorators.js";import{classMap as Pk}from"lit/directives/class-map.js";import{live as qk}from"lit/directives/live.js";import{ifDefined as Gk}from"lit-html/directives/if-defined.js";var O,Rf=C(()=>{"use strict";h1();H();Vf();J6();F();F();If();n3();O=class extends B{constructor(){super();this.type="text";this.autoCapitalize="none";this.autoComplete="on";this.autoCorrect="off";this.autoFocus=!1;this.inputmode="text";this.selectAllOnFocus=!1;this.hideFeedback=!1;this.defaultFeedback="";this.clearable=!1;this.dropdownText="";this.dropdownIcon="";this.inputSize="default";this.accept=null;this.valueDisplayed="";this.showPassword=!1;this.filePickerOpen=!1;this.hideDropdown=!0;this.showClear=!1;this.element="input-field",this.autoFormatter=new K1(this),this.boundOutsideClickHandler=this.handleOutsideClick.bind(this)}static get styles(){return[super.styles,Hf]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group"),this.autoFormatter=new K1(this),this.autoFormatter.autoFormat(this.value),this.autoFormatter.autoFormatFinish(this.value),this.dropdownText&&window.addEventListener("mousedown",this.boundOutsideClickHandler,!1)}disconnectedCallback(){this.dropdownText&&window.removeEventListener("mousedown",this.boundOutsideClickHandler),super.disconnectedCallback()}firstUpdated(){this.value&&this.valueHandler()}handleOutsideClick(t){t.composedPath().includes(this)||(this.hideDropdown=!0)}formatValue(){this.value!==this.lastFormattedValue&&(this.lastFormattedValue=this.value,this.autoFormatter.autoFormat(this.value),this.focused||this.autoFormatter.autoFormatFinish(this.value))}handleChange(){this.value=this.input.value,this.filePickerOpen=!1}valueHandler(){this.formatValue(),this.value&&(this.type==="file"||this.clearable)?this.showClear=!0:this.showClear=!1,k("scw-value-change",this,{value:this.value,name:this.name,valueDisplayed:this.valueDisplayed})}handleShowPassword(){this.showPassword=!this.showPassword,this.requestUpdate()}handleInteraction(t){this.autoFormatter.updateSelection(),this.type==="file"&&t.type==="click"&&(this.filePickerOpen=!0)}handleKeydown(t){this.type==="currency"&&t.key==="Enter"&&this.autoFormatter.autoFormatFinish(this.value)}handleCancel(){this.filePickerOpen=!1}blurHandler(){this.autoFormatter.autoFormatFinish(this.value),k("scw-blur",this),this.focused=!1,this.filePickerOpen||this.validate()}handleClear(){this.value=""}focusHandler(){this.autoFormatter.updateSelection(),this.focused=!0,this.hideDropdown=!1,this.selectAllOnFocus&&this.input.setSelectionRange(0,this.input.value.length),k("scw-focus",this)}dropdownClick(){this.hideDropdown=!0,k("scw-dropdown",this),this.requestUpdate()}invalidHandler(t){t.preventDefault()}render(){let t={focused:this.focused,invalid:this.invalid,inputWrapper:!0,small:this.inputSize==="small",showFile:this.type==="file"&&this.value};return b3`<div class=${Pk(t)}>
|
|
536
|
+
}`});var W1,b2,x2,H2,J6=C(()=>{"use strict";W1=($=>($.button="button",$.color="color",$.datetimeLocal="datetimeLocal",$.file="file",$.hidden="hidden",$.image="image",$.month="month",$.number="number",$.range="range",$.reset="reset",$.search="search",$.select="select",$.submit="submit",$.tel="tel",$.time="time",$.url="url",$.week="week",$.fieldset="fieldset",$.date="date",$.checkbox="checkbox",$.email="email",$.password="password",$.radio="radio",$.text="text",$.telephone="telephone",$.currency="currency",$.ssn="ssn",$))(W1||{}),b2=(o=>(o.none="none",o.sentences="sentences",o.words="words",o.characters="characters",o.default="none",o))(b2||{}),x2=(r=>(r.off="off",r.on="on",r.default="on",r))(x2||{}),H2=(r=>(r.off="off",r.on="on",r.default="off",r))(H2||{})});function k(e,i,t={},r){let a=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:t,...r});return i.dispatchEvent(a),a}var F=C(()=>{"use strict"});function Rk(e){return isFinite(e.getTime())}function Mf(e){if(/(\d{2})\/(\d{2})\/(\d{4})/.test(e)){let[i,t,r]=e.split("/");return`${r}-${i}-${t}`}return""}function yf(e){if(/(\d{4})-(\d{2})-(\d{2})/.test(e)){let[i,t,r]=e.split("-");return`${t}/${r}/${i}`}return""}function Af(e){if(Rk(e)){let i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),t=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e);return`${t}/${r}/${i}`}return""}var Q5=C(()=>{"use strict"});function Zf(e,i,t){let r=t;if(e&&e.length>0){let a=e.replace(/[^\d]/g,""),o="";if(a.length>6){let c=a.substring(0,3),d=`${a.substring(3,6)}-${a.substring(6)}`;o=`(${c}) ${d}`}else a.length>3?o=`(${a.substring(0,3)}) ${a.substring(3)}`:a.length>0&&(o=`(${a.substring(0)}`);let n=e.length<i.length;return e.length===t?r=o?o.length:0:t===1?r=n?1:2:t===5||t===6?r=n?5:7:t===9&&(r=n?9:10),{value:a,display:o,selectionIndex:r}}else return{value:"",display:"",selectionIndex:r}}var kf=C(()=>{"use strict"});function Ef(e,i){if(!e)return{value:"",display:"",selectionIndex:0};let t=e?e.replace(/[^\d]/g,""):"";return t.length<e.length&&i--,{value:t,display:t,selectionIndex:i||0}}var _f=C(()=>{"use strict"});function e9(e,i,t=!1,r){if(!e||e==="$")return{value:"",display:"",selectionIndex:0};Q6++;let a=new Date;if(Q6>20)return t9=a,Q6=0,{value:"error",display:"error",selectionIndex:0};a.getTime()-t9.getTime()>100&&(t9=a,Q6=0);let o=e.replace(/[^\d|,|$|.]/g,"");o=o.replace(/^\$0+/g,"$");let n=o,c=n.split(".");if(c.length>2){let g=c.pop();n=`${c.join("")}.${g}`,c=n.split(".")}let d=c.length>1?c[c.length-1].length:0;d>2?(n=n.replace(/[^\d]/g,""),n=$f(n,n.length-2,".")):d>0&&(n=n.replace(/[^\d/.]/g,"")),t&&(d===0?n=`${n.replace(/\./g,"")}.00`:d===1&&(n=`${n}0`));let p=n.split("."),u=p[0];u=u.replace(/[^\d]/g,""),u=u?`${parseInt(u)}`:"0",u=Fk(u,",",3),p[0]=u;let m=`$${p.join(".")}`,x=m.replace(/,|\$/g,""),v=i;if(m!==o){let g=o.substr(0,i),M=m.substr(0,i),A=(g.match(/,|\$/g)||[]).length,Z=(M.match(/,|\$/g)||[]).length,R=m.substr(i);g===M&&R.indexOf(",")===0&&r===i?v++:v+=Z-A}else o!==e&&(v+=o.length-e.length);return{value:x,display:m,selectionIndex:v||0}}function $f(e,i,t){return e.substring(0,i)+t+e.substring(i)}function Fk(e,i,t){let r=0,a=e;for(let o=0;o<e.length;o++)o%t===0&&(r>0&&(a=$f(a,e.length-o,i)),r++);return a}var Q6,t9,Bf=C(()=>{"use strict";Q6=0,t9=new Date});function Sf(e,i,t){let r=t;if(e&&e.length>0){let a=e.replace(/[^\d]/g,""),o="",n=a.substring(0,3);if(a.length>5){let d=`${a.substring(3,5)}-${a.substring(5)}`;o=`${n}-${d}`}else a.length>3?o=`${n}-${a.substring(3)}`:a.length>0&&(o=`${n}`);let c=e.length<i.length;return e.length===t?r=o?o.length:0:t===4?r=c?4:5:t===7&&(r=c?7:8),{value:a,display:o,selectionIndex:r}}else return{value:"",display:"",selectionIndex:r}}var Of=C(()=>{"use strict"});var K1,If=C(()=>{"use strict";Q5();kf();_f();Bf();Of();J6();K1=class{constructor(i){this.lastSelectionStart=0,this.inputBase=i}autoFormat(i){if(this.inputBase.type==="telephone"){let t=Zf(i,this.inputBase.valueDisplayed,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t)}else if(this.inputBase.type==="ssn"){let t=Sf(i,this.inputBase.valueDisplayed,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t)}else if(this.inputBase.type==="date")i.includes("-")?(this.inputBase.value=yf(i),this.inputBase.valueDisplayed=i):i.includes("/")?(this.inputBase.value=i,this.inputBase.valueDisplayed=Mf(i)):(this.inputBase.value=i,this.inputBase.valueDisplayed=i);else if(this.inputBase.type==="number"){let t=Ef(i,this.inputBase.input&&this.inputBase.input.selectionStart||0);this.applyValues(t,!0,!1)}else if(this.inputBase.type==="currency"){let t=e9(i,this.inputBase.input&&this.inputBase.input.selectionStart||0,!1,this.lastSelectionStart);this.applyValues(t)}else this.inputBase.value=i,this.inputBase.valueDisplayed=this.inputBase.value;this.updateSelection()}autoFormatFinish(i){if(this.inputBase.type==="currency"){let t=e9(i,this.inputBase.input&&this.inputBase.input.selectionStart||0,!0,this.lastSelectionStart);this.applyValues(t,!1,!1)}this.updateSelection()}applyValues(i,t=!1,r=!0){this.inputBase.value=t?i.display:i.value?i.value:"",this.inputBase.valueDisplayed=i.display,this.inputBase.input&&(this.inputBase.input.value=i.display,r&&this.inputBase.input.setSelectionRange(i.selectionIndex,i.selectionIndex))}updateSelection(){this.lastSelectionStart=this.inputBase.input&&this.inputBase.input.selectionStart||0}}});function E(e,i){return(t,r)=>{let{update:a}=t;i=Object.assign({waitUntilFirstUpdate:!1},i),t.update=function(o){if(o.has(e)){let n=o.get(e),c=this[e];n!==c&&i&&(!i.waitUntilFirstUpdate||this.hasUpdated)&&this[r].call(this,n,c)}a.call(this,o)}}}var n3=C(()=>{"use strict"});var Df={};l(Df,{default:()=>O});import{html as b3}from"lit";import{property as X,state as Tk,query as Nf}from"lit/decorators.js";import{classMap as Pk}from"lit/directives/class-map.js";import{live as qk}from"lit/directives/live.js";import{ifDefined as Gk}from"lit-html/directives/if-defined.js";var O,Rf=C(()=>{"use strict";h1();H();Vf();J6();F();F();If();n3();O=class extends B{constructor(){super();this.type="text";this.autoCapitalize="none";this.autoComplete="on";this.autoCorrect="off";this.autoFocus=!1;this.inputmode="text";this.selectAllOnFocus=!1;this.hideFeedback=!1;this.defaultFeedback="";this.clearable=!1;this.dropdownText="";this.dropdownIcon="";this.inputSize="default";this.accept=null;this.valueDisplayed="";this.showPassword=!1;this.filePickerOpen=!1;this.hideDropdown=!0;this.showClear=!1;this.element="input-field",this.autoFormatter=new K1(this),this.boundOutsideClickHandler=this.handleOutsideClick.bind(this)}static get styles(){return[super.styles,Hf]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group"),this.autoFormatter=new K1(this),this.autoFormatter.autoFormat(this.value),this.autoFormatter.autoFormatFinish(this.value),this.dropdownText&&window.addEventListener("mousedown",this.boundOutsideClickHandler,!1)}disconnectedCallback(){this.dropdownText&&window.removeEventListener("mousedown",this.boundOutsideClickHandler),super.disconnectedCallback()}firstUpdated(){this.value&&this.valueHandler()}handleOutsideClick(t){t.composedPath().includes(this)||(this.hideDropdown=!0)}formatValue(){this.value!==this.lastFormattedValue&&(this.lastFormattedValue=this.value,this.autoFormatter.autoFormat(this.value),this.focused||this.autoFormatter.autoFormatFinish(this.value))}handleChange(){this.value=this.input.value,this.filePickerOpen=!1}valueHandler(){var t;this.formatValue(),this.value&&(this.type==="file"||this.clearable)?this.showClear=!0:this.showClear=!1,k("scw-value-change",this,{value:this.value,name:this.name,valueDisplayed:this.valueDisplayed,...this.type==="file"?{files:(t=this.input)==null?void 0:t.files}:{}})}handleShowPassword(){this.showPassword=!this.showPassword,this.requestUpdate()}handleInteraction(t){this.autoFormatter.updateSelection(),this.type==="file"&&t.type==="click"&&(this.filePickerOpen=!0)}handleKeydown(t){this.type==="currency"&&t.key==="Enter"&&this.autoFormatter.autoFormatFinish(this.value)}handleCancel(){this.filePickerOpen=!1}blurHandler(){this.autoFormatter.autoFormatFinish(this.value),k("scw-blur",this),this.focused=!1,this.filePickerOpen||this.validate()}handleClear(){this.value=""}focusHandler(){this.autoFormatter.updateSelection(),this.focused=!0,this.hideDropdown=!1,this.selectAllOnFocus&&this.input.setSelectionRange(0,this.input.value.length),k("scw-focus",this)}dropdownClick(){this.hideDropdown=!0,k("scw-dropdown",this),this.requestUpdate()}invalidHandler(t){t.preventDefault()}render(){let t={focused:this.focused,invalid:this.invalid,inputWrapper:!0,small:this.inputSize==="small",showFile:this.type==="file"&&this.value};return b3`<div class=${Pk(t)}>
|
|
537
537
|
${this.label?b3` <div class="input-label">
|
|
538
538
|
${this.label}${this.required?b3`<span class="required-label">
|
|
539
539
|
${this.requiredLabel}
|
package/package.json
CHANGED