smoothly 0.3.31 → 0.3.33

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.
Files changed (120) hide show
  1. package/dist/cjs/{Trigger-3443997e.js → Listenable-c8d2f8ef.js} +55 -0
  2. package/dist/cjs/{getLanguage-aa9af88b.js → getLanguage-430ecf04.js} +7 -0
  3. package/dist/cjs/{index-7b75b331.js → index-879bbabb.js} +19 -19
  4. package/dist/cjs/{index-3fb97927.js → index-de46f836.js} +7 -1
  5. package/dist/cjs/index.cjs.js +7 -6
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/smoothly-accordion_53.cjs.entry.js +136 -13
  8. package/dist/cjs/smoothly-country.cjs.entry.js +4 -2
  9. package/dist/cjs/smoothly-google-font.cjs.entry.js +2 -1
  10. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  11. package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
  12. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +7 -4
  13. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +5 -4
  14. package/dist/cjs/smoothly.cjs.js +2 -2
  15. package/dist/collection/collection-manifest.json +2 -2
  16. package/dist/collection/components/accordion/index.js +1 -0
  17. package/dist/collection/components/accordion-item/index.js +5 -0
  18. package/dist/collection/components/app/index.js +3 -0
  19. package/dist/collection/components/app-demo/index.js +3 -0
  20. package/dist/collection/components/backtotop/index.js +1 -0
  21. package/dist/collection/components/button/index.js +5 -0
  22. package/dist/collection/components/calendar/index.js +8 -1
  23. package/dist/collection/components/checkbox/index.js +4 -0
  24. package/dist/collection/components/country/index.js +2 -0
  25. package/dist/collection/components/dialog/index.js +2 -0
  26. package/dist/collection/components/display/index.js +7 -0
  27. package/dist/collection/components/display-amount/index.js +2 -0
  28. package/dist/collection/components/display-date-time/index.js +3 -0
  29. package/dist/collection/components/frame/index.js +5 -0
  30. package/dist/collection/components/google-font/index.js +3 -0
  31. package/dist/collection/components/icon/index.js +4 -0
  32. package/dist/collection/components/input/index.js +6 -0
  33. package/dist/collection/components/input-date/index.js +8 -0
  34. package/dist/collection/components/input-date-range/index.js +6 -0
  35. package/dist/collection/components/input-month/index.js +3 -0
  36. package/dist/collection/components/item/index.js +5 -0
  37. package/dist/collection/components/menu-options/index.js +3 -0
  38. package/dist/collection/components/notification/index.js +2 -1
  39. package/dist/collection/components/option/index.js +5 -0
  40. package/dist/collection/components/picker/index.js +6 -0
  41. package/dist/collection/components/quiet/index.js +3 -0
  42. package/dist/collection/components/radio/index.js +6 -0
  43. package/dist/collection/components/radio-button/index.js +3 -0
  44. package/dist/collection/components/radio-button/item/index.js +5 -0
  45. package/dist/collection/components/room/index.js +6 -0
  46. package/dist/collection/components/select/index.js +5 -0
  47. package/dist/collection/components/selector/index.js +3 -1
  48. package/dist/collection/components/skeleton/index.js +4 -0
  49. package/dist/collection/components/spinner/index.js +1 -0
  50. package/dist/collection/components/submit/index.js +5 -0
  51. package/dist/collection/components/svg/index.js +3 -0
  52. package/dist/collection/components/tab/index.js +4 -0
  53. package/dist/collection/components/tab-switch/index.js +3 -0
  54. package/dist/collection/components/table/expandable/cell/index.js +1 -0
  55. package/dist/collection/components/table/expandable/row/index.js +1 -0
  56. package/dist/collection/components/table/header/index.js +3 -0
  57. package/dist/collection/components/trigger/index.js +5 -0
  58. package/dist/collection/components/trigger-sink/index.js +5 -0
  59. package/dist/collection/components/trigger-source/index.js +3 -0
  60. package/dist/collection/components/tuple/index.js +3 -0
  61. package/dist/collection/components/urlencoded/index.js +3 -0
  62. package/dist/collection/index.js +1 -1
  63. package/dist/collection/model/Listenable.js +29 -16
  64. package/dist/collection/model/Notice.js +18 -18
  65. package/dist/collection/model/index.js +1 -0
  66. package/dist/custom-elements/index.js +213 -22
  67. package/dist/esm/{Trigger-327e506e.js → Listenable-55a1f6af.js} +55 -1
  68. package/dist/esm/{getLanguage-3dbe8ccd.js → getLanguage-cccb8418.js} +7 -0
  69. package/dist/esm/{index-fcf8bdd3.js → index-d3421c35.js} +7 -1
  70. package/dist/esm/{index-3b463176.js → index-d7a4e405.js} +19 -19
  71. package/dist/esm/index.js +4 -4
  72. package/dist/esm/loader.js +2 -2
  73. package/dist/esm/polyfills/css-shim.js +1 -1
  74. package/dist/esm/smoothly-accordion_53.entry.js +130 -7
  75. package/dist/esm/smoothly-country.entry.js +4 -2
  76. package/dist/esm/smoothly-google-font.entry.js +2 -1
  77. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  78. package/dist/esm/smoothly-reorder.entry.js +1 -1
  79. package/dist/esm/smoothly-trigger-sink.entry.js +5 -2
  80. package/dist/esm/smoothly-trigger-source.entry.js +3 -2
  81. package/dist/esm/smoothly.js +2 -2
  82. package/dist/smoothly/index.esm.js +1 -1
  83. package/dist/smoothly/p-156763cd.js +1 -0
  84. package/dist/smoothly/{p-af90d05a.js → p-4a0b35b7.js} +0 -0
  85. package/dist/smoothly/p-4a78c705.entry.js +1 -0
  86. package/dist/smoothly/p-4fecfc5d.entry.js +1 -0
  87. package/dist/smoothly/p-5b6351f6.js +1 -0
  88. package/dist/smoothly/{p-f67259c5.entry.js → p-5d41e3ca.entry.js} +1 -1
  89. package/dist/smoothly/{p-6acd7162.entry.js → p-6630d923.entry.js} +1 -1
  90. package/dist/smoothly/{p-a1c137fc.entry.js → p-7db49a38.entry.js} +1 -1
  91. package/dist/smoothly/{p-e5191036.js → p-94e08cee.js} +1 -1
  92. package/dist/smoothly/p-96e8781a.entry.js +1 -0
  93. package/dist/smoothly/p-e0f4957d.entry.js +1 -0
  94. package/dist/smoothly/smoothly.esm.js +1 -1
  95. package/dist/types/components/submit/Data.d.ts +1 -1
  96. package/dist/types/components.d.ts +12 -0
  97. package/dist/types/index.d.ts +1 -1
  98. package/dist/types/model/Autocomplete.d.ts +1 -1
  99. package/dist/types/model/Color.d.ts +1 -1
  100. package/dist/types/model/Expand.d.ts +1 -1
  101. package/dist/types/model/Fill.d.ts +1 -1
  102. package/dist/types/model/GoogleFont.d.ts +1 -1
  103. package/dist/types/model/Listenable.d.ts +9 -5
  104. package/dist/types/model/Option.d.ts +1 -1
  105. package/dist/types/model/index.d.ts +1 -0
  106. package/dist/types/stencil-public-runtime.d.ts +44 -3
  107. package/dist/types/utilities/Cosmetic/Color/CommaRgb.d.ts +1 -1
  108. package/dist/types/utilities/Cosmetic/Color/Hex.d.ts +1 -1
  109. package/dist/types/utilities/Cosmetic/Color/Hsl.d.ts +1 -1
  110. package/dist/types/utilities/Cosmetic/Color/Name.d.ts +1 -1
  111. package/dist/types/utilities/Cosmetic/Color/Rgb.d.ts +1 -1
  112. package/dist/types/utilities/Cosmetic/Color/index.d.ts +1 -1
  113. package/dist/types/utilities/Cosmetic/index.d.ts +1 -1
  114. package/package.json +93 -66
  115. package/dist/smoothly/p-0833f25c.entry.js +0 -1
  116. package/dist/smoothly/p-2bf8c660.entry.js +0 -1
  117. package/dist/smoothly/p-3bd18eea.entry.js +0 -1
  118. package/dist/smoothly/p-41e29ef7.js +0 -1
  119. package/dist/smoothly/p-9fd866e2.entry.js +0 -1
  120. package/dist/smoothly/p-b1c579b3.js +0 -1
@@ -1 +0,0 @@
1
- class t{constructor(){this.encoding="utf-8"}encode(t){return Uint8Array.from(unescape(encodeURIComponent(t)).split(""),(t=>t.charCodeAt(0)))}}const n={standard:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",url:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function r(r,e="standard",i=""){"string"==typeof r&&(r=(new t).encode(r));const s=n[e],a=[];for(let t=0;t<r.length;t+=3){const n=r[t],e=t+1<r.length?r[t+1]:0,i=t+2<r.length?r[t+2]:0;a.push(s[n>>>2]),a.push(s[(3&n)<<4|e>>>4]),a.push(s[(15&e)<<2|i>>>6]),a.push(s[63&i])}const c=Math.ceil(r.length/3*4);return a.join("").substr(0,c)+i.repeat(a.length-c)}function e(t,r="standard"){for(;t.endsWith("=")&&t.length>0;)t=t.substr(0,t.length-1);const e=n[r],i=t.split("").map((t=>e.indexOf(t))),s=new Uint8Array(Math.floor(i.length/4*3));for(let t=0;t<s.length;t+=3){const n=i.shift()||0,r=i.shift()||0,e=i.shift()||0,a=i.shift()||0;s[t]=n<<2|r>>>4,s[t+1]=(15&r)<<4|e>>>2,s[t+2]=(3&e)<<6|a}return s}const i="undefined"!=typeof window?window.crypto||window.msCrypto:self.crypto||self.msCrypto;var s,a,c,o,u,f,S,y,A,p,w,h,l,b,g,H;!function(t){t.create=function(t,n,...r){const[e,...i]=(s=r,Array.isArray(s)&&s.length>0&&"string"==typeof s[0]?r.map((t=>Object.fromEntries(t.split(",").map((t=>t.split(":",2).map((t=>t.trim()))))))):r);var s;const a=Object.assign({},...Object.entries(e).map((([t,n])=>[t,[n,...i.map((n=>n[t])).filter((t=>t))]])).map((([n,r])=>({get[n](){return Object.assign(t(r),{name:n})}}))));return{current:a[n],...a}}}(s||(s={})),function(t){t.is=function(t){return"object"==typeof t&&(null==t.key||"string"==typeof t.key)&&"string"==typeof t.value&&"string"==typeof t.salt},t.stringify=function(t){return t.key=t.key&&4!=t.key.length?t.key.slice(-2):t.key,[t.key,t.salt,t.value].join(".")},t.parse=function(n){const r=n.split("."),e={key:r[0],salt:r[1],value:r[2]};return t.is(e)?e:void 0}}(a||(a={})),function(t){function n(t){return r(t,"url")}function s(t){t.length%2==1&&(t+="0");const r=new Uint8Array(t.length/2);for(let n=0;n<r.length;n++)r[n]=16*Number.parseInt(t[2*n],16)+Number.parseInt(t[2*n+1],16);return n(r)}function a(t,n){const r=e(t,"url");let i=[];for(const t of r)i.push(Math.floor(t/16).toString(16),(t%16).toString(16));return n&&(i=i.slice(0,n)),i.join("")}t.is=function(t,n){return"string"==typeof t&&(null==n||t.length==n)&&Array.from(t).every((t=>t>="0"&&t<="9"||t>="A"&&t<="Z"||t>="a"&&t<="z"||"-"==t||"_"==t))},t.fromUint24=function(t){return s(t.toString(16).padStart(6,"0"))},t.toUint24=function(t){return Number.parseInt(a(t,6),16)},t.fromUint48=function(t){return s(t.toString(16).padStart(12,"0"))},t.toUint48=function(t){return Number.parseInt(a(t,12),16)},t.fromBinary=n,t.toBinary=function(t){return e(t,"url")},t.generate=function(t){return n(i.getRandomValues(new Uint8Array(t/4*3)))},t.fromHexadecimal=s,t.toHexadecimal=a,t.length=[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128],(t.Length||(t.Length={})).is=function(t){return"number"==typeof t&&t>=4&&t<=128&&(252&t)==t}}(c||(c={})),function(t){t.is=function(t){return"string"==typeof t||"object"==typeof t&&"string"==typeof t.hash&&"string"==typeof t.salt},t.hash=async function(t,n,e){return e||(e=r(i.getRandomValues(new Uint8Array(64)))),{hash:await t.sign(e+n),salt:e}},t.verify=async function(n,r,e){return(await t.hash(n,e,r.salt)).hash==r.hash},(t.Hashed||(t.Hashed={})).is=function(t){return"object"==typeof t&&"string"==typeof t.hash&&"string"==typeof t.salt}}(o||(o={})),function(t){t.generate=function(t){return i.getRandomValues(t)}}(u||(u={})),(f||(f={})).is=function(t){return"HMAC"==t||"RSA"==t||"ECDSA"==t||"RSA-PSS"==t};class d{async sign(n){return"string"==typeof n?r(await this.signBinary((new t).encode(n)),"url"):this.signBinary(n)}verify(n,r){return"string"==typeof r&&(r=e(r,"url")),this.verifyBinary("string"==typeof n?(new t).encode(n):n,r)}}class P extends d{constructor(t,n,r){super(),this.hash=t,n&&("string"==typeof n&&(n=e(n)),this.publicKey=i.subtle.importKey("spki",n,{name:"ECDSA",namedCurve:"P-512"==t.replace("SHA","P")?"P-521":t.replace("SHA","P")},!1,["verify"])),r&&("string"==typeof r&&(r=e(r)),this.privateKey=i.subtle.importKey("pkcs8",r,{name:"ECDSA",namedCurve:"P-512"==t.replace("SHA","P")?"P-521":t.replace("SHA","P")},!0,["sign","verify"]))}async signBinary(t){return new Uint8Array(await i.subtle.sign({name:"ECDSA",hash:{name:this.hash}},await this.privateKey,t))}async verifyBinary(t,n){return i.subtle.verify({name:"ECDSA",hash:{name:this.hash}},await this.publicKey,n,t)}}!function(t){t.is=function(t){return"SHA-1"==t||"SHA-256"==t||"SHA-384"==t||"SHA-512"==t}}(S||(S={}));class m extends d{async verifyBinary(t,n){return r(await this.signBinary(t),"url")==r(n,"url")}}class v extends m{constructor(t,n){super(),this.hash=t,"string"==typeof n&&(n=e(n,"url")),this.key=i.subtle.importKey("raw",n,{name:"HMAC",hash:{name:t}},!1,["sign","verify"])}async signBinary(t){return new Uint8Array(await i.subtle.sign("HMAC",await this.key,t))}}class E extends m{signBinary(t){return Promise.resolve(new Uint8Array(0))}}class k extends d{constructor(t,n,r){super(),this.variant=t,this.publicKey=n,this.privateKey=r}get parameters(){return C(this.variant)}async signBinary(t){return this.privateKey?new Uint8Array(await i.subtle.sign(this.parameters,await this.privateKey,t)):new Uint8Array(0)}async verifyBinary(t,n){return!!this.publicKey&&i.subtle.verify(this.parameters,await this.publicKey,n,t)}async export(t,n="base64"){const e=await("private"==t?this.privateKey:this.publicKey);let s;if(e)switch(n){case"jwk":s=await i.subtle.exportKey("jwk",e);break;case"buffer":s=await i.subtle.exportKey("private"==t?"pkcs8":"spki",e);break;case"base64":{const n=await this.export(t,"buffer");s=n&&r(new Uint8Array(n),"standard","=")}break;case"pem":{const n=await this.export(t,"base64");s=n&&[`-----BEGIN ${t.toUpperCase()} KEY-----`,...R(n,64),`-----END ${t.toUpperCase()} KEY-----`].join("\n")}}return s}static import(t,n,r,e){return new k(t,k.importHelper(t,n,"public",r),k.importHelper(t,n,"private",e))}static importHelper(t,n,r,s){return"string"==typeof s&&(s=e(s)),s&&i.subtle.importKey("private"==r?"pkcs8":"spki",s,{name:C(t).name,hash:{name:n}},!0,["private"==r?"sign":"verify"])}static generate(t,n,r){const e=i.subtle.generateKey({name:C(t).name,modulusLength:r,publicExponent:new Uint8Array([1,0,1]),hash:n},!0,["sign","verify"]);return new k(t,e.then((t=>t.publicKey)),e.then((t=>t.privateKey)))}}function*R(t,n){let r=0;for(;r<t.length;)yield t.slice(r,r+=n)}function C(t){return"PSS"==t?{name:"RSA-PSS",saltLength:128}:{name:"RSASSA-PKCS1-v1_5"}}!function(t){!function(t){t.is=f.is}(t.Algorithm||(t.Algorithm={})),(t.Hash||(t.Hash={})).is=S.is,t.generate=function(t,n,r){let e;switch(t){case"RSA":e=k.generate("SSA",n,r);break;case"RSA-PSS":e=k.generate("PSS",n,r)}return e},t.create=function(t,n,...r){let e;if(null!=n)switch(t){case"HMAC":e=new v(n,r[0]);break;case"RSA":e=k.import("SSA",n,r[0],r[1]);break;case"RSA-PSS":e=k.import("PSS",n,r[0],r[1]);break;case"ECDSA":e=new P(n,r[0],r[1])}else"None"==t&&(e=new E);return e}}(y||(y={})),Uint8Array.__proto__.from||(Uint8Array.__proto__.from=function(t,n,r){const e=Uint8Array.__proto__;if("function"!=typeof this)throw new TypeError("# is not a constructor");if(this.__proto__!==e)throw new TypeError("this is not a typed array.");if("function"!=typeof(n=n||(t=>t)))throw new TypeError("specified argument is not a function");if(!(t=Object(t)).length)return new this(0);let i=[];for(const t of i)i.push(t);i=i.map(n,r);const s=new this(i.length);for(let t=0;t<s.length;t++)s[t]=i[t];return s}),function(t){t.is=function(t){return"object"==typeof t&&Object.entries(t).every((t=>"function"==typeof t))}}(A||(A={})),function(t){t.is=function(t){return Array.isArray(t)&&t.every((t=>"string"==typeof t))}}(p||(p={})),function(t){t.is=function(t){return"object"==typeof t&&Object.entries(t).every((t=>"string"==typeof t[1]))}}(w||(w={})),function(t){t.is=function(t){return p.is(t)||A.is(t)||w.is(t)},(t.Converter||(t.Converter={})).is=A.is,(t.Crypto||(t.Crypto={})).is=p.is,(t.Renamer||(t.Renamer={})).is=w.is}(h||(h={})),function(t){t.is=function(t){return"object"==typeof t&&"function"==typeof t.apply&&"function"==typeof t.reverse},t.create=function(t){return{apply:t.apply?t.apply:t=>t,reverse:t.reverse?t.reverse:t=>t}}}(l||(l={})),function(t){t.is=function(t){return"RS256"==t||"RS384"==t||"RS512"==t||"ES256"==t||"ES384"==t||"ES512"==t||"PS256"==t||"PS384"==t||"PS512"==t}}(b||(b={})),function(t){t.is=function(t){return"HS256"==t||"HS384"==t||"HS512"==t}}(g||(g={})),function(t){t.is=function(t){return"none"==t||g.is(t)||b.is(t)},function(t){t.is=g.is}(t.Symmetric||(t.Symmetric={})),(t.Asymmetric||(t.Asymmetric={})).is=b.is}(H||(H={}));var j;class U{constructor(t,n){this.name=t,this.signer=n}sign(t){return n=this,r=void 0,i=function*(){return this.signer.sign(t)},new((e=void 0)||(e=Promise))((function(t,s){function a(t){try{o(i.next(t))}catch(t){s(t)}}function c(t){try{o(i.throw(t))}catch(t){s(t)}}function o(n){var r;n.done?t(n.value):(r=n.value,r instanceof e?r:new e((function(t){t(r)}))).then(a,c)}o((i=i.apply(n,r||[])).next())}));var n,r,e,i}verify(t,n){return this.signer.verify(t,n)}static create(t,...n){let r;switch(t){case"ES256":r=y.create("ECDSA","SHA-256",n[0],n[1]);break;case"ES384":r=y.create("ECDSA","SHA-384",n[0],n[1]);break;case"ES512":r=y.create("ECDSA","SHA-512",n[0],n[1]);break;case"PS256":r=y.create("RSA-PSS","SHA-256",n[0],n[1]);break;case"PS384":r=y.create("RSA-PSS","SHA-384",n[0],n[1]);break;case"PS512":r=y.create("RSA-PSS","SHA-512",n[0],n[1]);break;case"HS256":r=y.create("HMAC","SHA-256",n[0]);break;case"HS384":r=y.create("HMAC","SHA-384",n[0]);break;case"HS512":r=y.create("HMAC","SHA-512",n[0]);break;case"RS256":r=y.create("RSA","SHA-256",n[0],n[1]);break;case"RS384":r=y.create("RSA","SHA-384",n[0],n[1]);break;case"RS512":r=y.create("RSA","SHA-512",n[0],n[1]);break;case"none":r=y.create("None")}return r&&new U(t,r)}static none(){return U.create("none")}static HS256(t){return U.create("HS256",t)}static HS384(t){return U.create("HS384",t)}static HS512(t){return U.create("HS512",t)}static RS256(t,n){return U.create("RS256",t,n)}static RS384(t,n){return U.create("RS384",t,n)}static RS512(t,n){return U.create("RS512",t,n)}static ES256(t,n){return U.create("ES256",t,n)}static ES384(t,n){return U.create("ES384",t,n)}static ES512(t,n){return U.create("ES512",t,n)}static PS256(t,n){return U.create("PS256",t,n)}static PS384(t,n){return U.create("PS384",t,n)}static PS512(t,n){return U.create("PS512",t,n)}}!function(t){var n;(n=t.Name||(t.Name={})).is=H.is,function(t){t.is=H.Symmetric.is}(n.Symmetric||(n.Symmetric={})),function(t){t.is=H.Asymmetric.is}(n.Asymmetric||(n.Asymmetric={}))}(U||(U={})),function(t){t.is=function(t){return"string"==typeof t&&/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(t)}}(j||(j={}));class M{static is(t){return"object"==typeof t&&"string"==typeof t.destination&&null!=t.content}static send(t,n,r){if(M.is(t)&&null==r){(r=n)||(r=window);const e=t.destination.split("#",2);r.postMessage(t={destination:e[1],content:t.content},e[0])}else"string"!=typeof r&&(r||(r=window),"string"==typeof t&&M.send({destination:t,content:n},r))}static listen(t,n,r){const e=t.split("#",2);let i="";2==e.length&&(t=e[0],i=e[1]),(r||window).addEventListener("message",(r=>{const e=r.data;!M.is(e)||"*"!=t&&r.origin!=t||""!=i&&e.destination!=i||n(e.destination,e.content)}))}}class D{static is(t){return"object"==typeof t&&"string"==typeof t.name}}export{c as I,M,D as T}