smoothly 0.2.8 → 0.2.11
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/cjs/{Trigger-cf376531.js → Trigger-3443997e.js} +92 -55
- package/dist/cjs/{Notice-839702d8.js → index-2a011313.js} +381 -5
- package/dist/cjs/{index-1c61bdd3.js → index-3efe2a41.js} +18 -11
- package/dist/cjs/index.cjs.js +11 -374
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{smoothly-accordion_51.cjs.entry.js → smoothly-accordion_50.cjs.entry.js} +522 -13123
- package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-svg.cjs.entry.js +41 -0
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -2
- package/dist/cjs/smoothly.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/App.js +9 -4
- package/dist/collection/components/app-demo/index.js +10 -0
- package/dist/collection/components/display/index.js +27 -2
- package/dist/collection/components/display-date-time/index.js +3 -0
- package/dist/collection/components/display-demo/index.js +16 -12
- package/dist/collection/components/input-date/index.js +18 -1
- package/dist/collection/components/input-demo/index.js +3 -1
- package/dist/collection/components/room/index.js +7 -3
- package/dist/collection/components/submit/Data.js +12 -0
- package/dist/collection/components/submit/index.js +10 -4
- package/dist/collection/index.js +1 -1
- package/dist/collection/{demo → model}/Listenable.js +11 -6
- package/dist/custom-elements/index.js +566 -13090
- package/dist/esm/{Trigger-365408f0.js → Trigger-327e506e.js} +92 -55
- package/dist/esm/{Notice-608b552c.js → index-1d438ba2.js} +381 -6
- package/dist/esm/{index-a3737440.js → index-4d9efff8.js} +18 -11
- package/dist/esm/index.js +5 -375
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{smoothly-accordion_51.entry.js → smoothly-accordion_50.entry.js} +522 -13122
- package/dist/esm/smoothly-google-font.entry.js +1 -1
- package/dist/esm/smoothly-radio-group.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +1 -1
- package/dist/esm/smoothly-svg.entry.js +37 -0
- package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
- package/dist/esm/smoothly-trigger-source.entry.js +2 -2
- package/dist/esm/smoothly.js +3 -3
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/p-191ee4b8.js +2 -0
- package/dist/smoothly/p-76e88859.js +1 -0
- package/dist/smoothly/{p-0215b4da.entry.js → p-7a5eda51.entry.js} +1 -1
- package/dist/smoothly/p-8aefcb54.entry.js +1 -0
- package/dist/smoothly/{p-eec1c703.entry.js → p-8e4e941e.entry.js} +1 -1
- package/dist/smoothly/{p-993534fa.entry.js → p-919ae3e8.entry.js} +1 -1
- package/dist/smoothly/p-956089d5.entry.js +1 -0
- package/dist/smoothly/{p-6f009ac9.entry.js → p-9bc77fba.entry.js} +1 -1
- package/dist/smoothly/p-b1c579b3.js +1 -0
- package/dist/smoothly/{p-8ae38136.entry.js → p-d5d4832d.entry.js} +1 -1
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/App.d.ts +1 -0
- package/dist/types/components/display/index.d.ts +2 -1
- package/dist/types/components/display-date-time/index.d.ts +3 -1
- package/dist/types/components/input-date/index.d.ts +1 -0
- package/dist/types/components/room/index.d.ts +1 -1
- package/dist/types/components/submit/Data.d.ts +7 -0
- package/dist/types/components/submit/index.d.ts +2 -3
- package/dist/types/components.d.ts +153 -44
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/Listenable.d.ts +10 -0
- package/package.json +14 -37
- package/dist/collection/demo/State.js +0 -40
- package/dist/smoothly/p-0cba3e3d.js +0 -1
- package/dist/smoothly/p-6ca0d36c.js +0 -1
- package/dist/smoothly/p-7a30d9b8.js +0 -1
- package/dist/smoothly/p-9d825b5a.entry.js +0 -1
- package/dist/types/demo/Listenable.d.ts +0 -6
- package/dist/types/demo/State.d.ts +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t}from"./p-
|
|
1
|
+
import{r as o,h as t}from"./p-191ee4b8.js";const r=class{constructor(t){o(this,t),this.orientation="horizontal"}render(){return t("slot",null)}};r.style="smoothly-radio-group{display:flex;position:relative;color:none !important;background:none !important;margin:0.5em 0}smoothly-radio-group[hidden]{display:none}smoothly-radio-group[orientation=vertical] *:not(:first-of-type)>input[type=radio]~label{border-top:none}smoothly-radio-group:not([orientation=vertical]) *:not(:first-of-type)>input[type=radio]~label{border-left:none}smoothly-radio-group[orientation=vertical]{flex-direction:column}smoothly-radio-group[orientation=vertical] :first-of-type>input[type=radio]~label{border-radius:4px 4px 0 0}smoothly-radio-group[orientation=vertical] :last-of-type>input[type=radio]~label{border-radius:0 0 4px 4px}smoothly-radio-group:not([orientation=vertical]){flex-direction:row}smoothly-radio-group:not([orientation=vertical]) :first-of-type>input[type=radio]~label{border-radius:4px 0 0 4px}smoothly-radio-group:not([orientation=vertical]) :last-of-type>input[type=radio]~label{border-radius:0 4px 4px 0}";export{r as smoothly_radio_group}
|
|
@@ -0,0 +1 @@
|
|
|
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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-
|
|
1
|
+
import{r as s,h as t}from"./p-191ee4b8.js";import{T as i,M as r}from"./p-b1c579b3.js";import"./p-bd478a53.js";const o=class{constructor(t){s(this,t)}get filters(){return this.filtersValue||(this.filtersValue=this.filter?this.filter.split(" "):[]),this.filtersValue}TriggerListener(s){i.is(s.detail)&&this.filters.some((t=>t==s.detail.name))&&(r.send(this.destination,s.detail,this.context||window),s.preventDefault(),s.stopPropagation())}render(){return t("slot",null)}};o.style=".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";export{o as smoothly_trigger_sink}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-
|
|
1
|
+
import{p as e,b as o}from"./p-191ee4b8.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-8e4e941e",[[2,"smoothly-google-font",{value:[1]}]]],["p-9bc77fba",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-7a5eda51",[[0,"smoothly-reorder"]]],["p-8aefcb54",[[2,"smoothly-svg",{url:[513],size:[513],color:[1]}]]],["p-d5d4832d",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-919ae3e8",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-956089d5",[[0,"smoothly-app-demo",{baseUrl:[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{color:[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],link:[1],download:[4]}],[4,"smoothly-room",{label:[1],icon:[1],path:[1],to:[1]}],[2,"smoothly-input-date-range",{value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],open:[1028],showLabel:[516,"show-label"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{notices:[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{disabled:[516],readonly:[516],maxMenuHeight:[1,"max-menu-height"],maxHeight:[1,"max-height"],emptyMenuLabel:[1025,"empty-menu-label"],multiple:[516],mutable:[4],optionStyle:[8,"option-style"],options:[16],labelSetting:[513,"label-setting"],label:[513],selections:[1040],selectNoneName:[1025,"select-none-name"],selectAllName:[1025,"select-all-name"],selectionName:[1025,"selection-name"],newOptionLabel:[1025,"new-option-label"],valueValidator:[16],isOpen:[32],empty:[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{opacity:[1],bottom:[1],right:[1],visible:[32]}],[2,"smoothly-checkbox",{selectAll:[4,"select-all"],size:[1],intermediate:[1540],selected:[1540],disabled:[1540],t:[32]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-expandable-cell",{align:[1],open:[1540]},[[0,"click","onClick"]]],[6,"smoothly-table-expandable-row",{align:[1],open:[1540]},[[0,"click","onClick"]]],[0,"smoothly-urlencoded",{data:[1]}],[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}],[2,"smoothly-display",{type:[1],value:[8],currency:[1],country:[1],format:[16]}],[2,"smoothly-display-amount",{amount:[8],currency:[1]}],[2,"smoothly-frame",{url:[1],name:[1],origin:[1],send:[64]}],[6,"smoothly-popup",{visible:[1540],direction:[1537],cssVariables:[32]}],[6,"smoothly-quiet",{color:[1]}],[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}],[6,"smoothly-select",{identifier:[1],background:[513],value:[1025]}],[2,"smoothly-skeleton",{widths:[16],width:[1],color:[1],period:[2],distance:[1],align:[513]}],[6,"smoothly-table",null,[[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-header",{name:[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{name:[513],value:[1025],open:[1028],max:[1025],min:[1025],disabled:[1028]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{emptyMenuLabel:[1025,"empty-menu-label"],newOptionLabel:[1,"new-option-label"],maxMenuHeight:[1,"max-menu-height"],order:[4],optionStyle:[8,"option-style"],options:[1040],resetHighlightOnOptionsChange:[1028,"reset-highlight-on-options-change"],mutable:[4],filteredOptions:[32],highlightIndex:[32],keyword:[32],moveHighlight:[64],setHighlight:[64],getHighlighted:[64],filterOptions:[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{notice:[16],tick:[32]},[[0,"trigger","onTrigger"]]],[2,"smoothly-display-date-time",{datetime:[1]}],[2,"smoothly-spinner",{active:[516],size:[513]}],[6,"smoothly-tab",{label:[1],open:[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{selectedElement:[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{tuple:[16]}],[1,"smoothly-option",{aliases:[513],dataHighlight:[1540,"data-highlight"],name:[1537],value:[1537],divider:[1540],new:[4]}],[2,"smoothly-calendar",{month:[1025],value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],doubleInput:[516,"double-input"],firstSelected:[32]}],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],showLabel:[516,"show-label"],maxLength:[1026,"max-length"],autocomplete:[1028],pattern:[1040],placeholder:[1025],disabled:[1028],readonly:[1028],currency:[513],initialValue:[32],getFormData:[64],setKeepFocusOnReRender:[64],setSelectionRange:[64]}],[2,"smoothly-input-month",{value:[1025]}],[6,"smoothly-selector",{opened:[32],selectedElement:[32],missing:[32],filter:[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{value:[8],selected:[1540],filter:[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],name:[1],value:[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],toolTip:[1,"tool-tip"],document:[32]}]]]],e)));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { CountryCode, Currency } from "isoly";
|
|
1
|
+
import { CountryCode, Currency, DateTime } from "isoly";
|
|
2
2
|
import { Type } from "tidily";
|
|
3
3
|
export declare class SmoothlyDisplay {
|
|
4
4
|
type: Type;
|
|
5
5
|
value?: any;
|
|
6
6
|
currency?: Currency;
|
|
7
7
|
country?: CountryCode.Alpha2;
|
|
8
|
+
format?: DateTime.Format;
|
|
8
9
|
render(): string | HTMLElement | undefined;
|
|
9
10
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ComponentWillLoad } from "../../stencil-public-runtime";
|
|
1
2
|
import { DateTime } from "isoly";
|
|
2
|
-
export declare class SmoothlyDisplayDateTime {
|
|
3
|
+
export declare class SmoothlyDisplayDateTime implements ComponentWillLoad {
|
|
3
4
|
datetime: DateTime;
|
|
5
|
+
componentWillLoad(): void | Promise<void>;
|
|
4
6
|
render(): string[];
|
|
5
7
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { Color, Expand, Fill } from "../../model";
|
|
3
|
+
import { Data } from "./Data";
|
|
3
4
|
export declare class SmoothlySubmit {
|
|
4
5
|
private button?;
|
|
5
6
|
get form(): HTMLFormElement | undefined;
|
|
@@ -9,9 +10,7 @@ export declare class SmoothlySubmit {
|
|
|
9
10
|
fill?: Fill;
|
|
10
11
|
disabled: boolean;
|
|
11
12
|
prevent?: boolean;
|
|
12
|
-
submitEvent: EventEmitter<
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
}>;
|
|
13
|
+
submitEvent: EventEmitter<Data>;
|
|
15
14
|
handleSubmit(event: UIEvent): Promise<void>;
|
|
16
15
|
submit(): Promise<boolean>;
|
|
17
16
|
render(): any[];
|
|
@@ -9,6 +9,7 @@ import { Color, Expand, Fill, Message, Notice, OptionType, Trigger } from "./mod
|
|
|
9
9
|
import { CountryCode, Currency, Date, DateRange, DateTime } from "isoly";
|
|
10
10
|
import { Direction, Type } from "tidily";
|
|
11
11
|
import { GoogleFont } from "./model/GoogleFont";
|
|
12
|
+
import { Data } from "./components/submit/Data";
|
|
12
13
|
export namespace Components {
|
|
13
14
|
interface SmoothlyAccordion {
|
|
14
15
|
"value"?: string;
|
|
@@ -65,6 +66,7 @@ export namespace Components {
|
|
|
65
66
|
interface SmoothlyDisplay {
|
|
66
67
|
"country"?: CountryCode.Alpha2;
|
|
67
68
|
"currency"?: Currency;
|
|
69
|
+
"format"?: DateTime.Format;
|
|
68
70
|
"type": Type;
|
|
69
71
|
"value"?: any;
|
|
70
72
|
}
|
|
@@ -117,6 +119,7 @@ export namespace Components {
|
|
|
117
119
|
"disabled": boolean;
|
|
118
120
|
"max": Date;
|
|
119
121
|
"min": Date;
|
|
122
|
+
"name": string;
|
|
120
123
|
"open": boolean;
|
|
121
124
|
"value"?: Date;
|
|
122
125
|
}
|
|
@@ -206,7 +209,7 @@ export namespace Components {
|
|
|
206
209
|
interface SmoothlyRoom {
|
|
207
210
|
"icon"?: string;
|
|
208
211
|
"label"?: string;
|
|
209
|
-
"path": string;
|
|
212
|
+
"path": string | RegExp;
|
|
210
213
|
"to"?: string;
|
|
211
214
|
}
|
|
212
215
|
interface SmoothlySelect {
|
|
@@ -293,6 +296,110 @@ export namespace Components {
|
|
|
293
296
|
"data": string;
|
|
294
297
|
}
|
|
295
298
|
}
|
|
299
|
+
export interface SmoothlyAccordionItemCustomEvent<T> extends CustomEvent<T> {
|
|
300
|
+
detail: T;
|
|
301
|
+
target: HTMLSmoothlyAccordionItemElement;
|
|
302
|
+
}
|
|
303
|
+
export interface SmoothlyCalendarCustomEvent<T> extends CustomEvent<T> {
|
|
304
|
+
detail: T;
|
|
305
|
+
target: HTMLSmoothlyCalendarElement;
|
|
306
|
+
}
|
|
307
|
+
export interface SmoothlyCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
308
|
+
detail: T;
|
|
309
|
+
target: HTMLSmoothlyCheckboxElement;
|
|
310
|
+
}
|
|
311
|
+
export interface SmoothlyDisplayDemoCustomEvent<T> extends CustomEvent<T> {
|
|
312
|
+
detail: T;
|
|
313
|
+
target: HTMLSmoothlyDisplayDemoElement;
|
|
314
|
+
}
|
|
315
|
+
export interface SmoothlyFrameCustomEvent<T> extends CustomEvent<T> {
|
|
316
|
+
detail: T;
|
|
317
|
+
target: HTMLSmoothlyFrameElement;
|
|
318
|
+
}
|
|
319
|
+
export interface SmoothlyInputCustomEvent<T> extends CustomEvent<T> {
|
|
320
|
+
detail: T;
|
|
321
|
+
target: HTMLSmoothlyInputElement;
|
|
322
|
+
}
|
|
323
|
+
export interface SmoothlyInputDateCustomEvent<T> extends CustomEvent<T> {
|
|
324
|
+
detail: T;
|
|
325
|
+
target: HTMLSmoothlyInputDateElement;
|
|
326
|
+
}
|
|
327
|
+
export interface SmoothlyInputDateRangeCustomEvent<T> extends CustomEvent<T> {
|
|
328
|
+
detail: T;
|
|
329
|
+
target: HTMLSmoothlyInputDateRangeElement;
|
|
330
|
+
}
|
|
331
|
+
export interface SmoothlyInputMonthCustomEvent<T> extends CustomEvent<T> {
|
|
332
|
+
detail: T;
|
|
333
|
+
target: HTMLSmoothlyInputMonthElement;
|
|
334
|
+
}
|
|
335
|
+
export interface SmoothlyItemCustomEvent<T> extends CustomEvent<T> {
|
|
336
|
+
detail: T;
|
|
337
|
+
target: HTMLSmoothlyItemElement;
|
|
338
|
+
}
|
|
339
|
+
export interface SmoothlyMenuOptionsCustomEvent<T> extends CustomEvent<T> {
|
|
340
|
+
detail: T;
|
|
341
|
+
target: HTMLSmoothlyMenuOptionsElement;
|
|
342
|
+
}
|
|
343
|
+
export interface SmoothlyNotificationCustomEvent<T> extends CustomEvent<T> {
|
|
344
|
+
detail: T;
|
|
345
|
+
target: HTMLSmoothlyNotificationElement;
|
|
346
|
+
}
|
|
347
|
+
export interface SmoothlyOptionCustomEvent<T> extends CustomEvent<T> {
|
|
348
|
+
detail: T;
|
|
349
|
+
target: HTMLSmoothlyOptionElement;
|
|
350
|
+
}
|
|
351
|
+
export interface SmoothlyPickerCustomEvent<T> extends CustomEvent<T> {
|
|
352
|
+
detail: T;
|
|
353
|
+
target: HTMLSmoothlyPickerElement;
|
|
354
|
+
}
|
|
355
|
+
export interface SmoothlyPopupCustomEvent<T> extends CustomEvent<T> {
|
|
356
|
+
detail: T;
|
|
357
|
+
target: HTMLSmoothlyPopupElement;
|
|
358
|
+
}
|
|
359
|
+
export interface SmoothlyRadioCustomEvent<T> extends CustomEvent<T> {
|
|
360
|
+
detail: T;
|
|
361
|
+
target: HTMLSmoothlyRadioElement;
|
|
362
|
+
}
|
|
363
|
+
export interface SmoothlyReorderCustomEvent<T> extends CustomEvent<T> {
|
|
364
|
+
detail: T;
|
|
365
|
+
target: HTMLSmoothlyReorderElement;
|
|
366
|
+
}
|
|
367
|
+
export interface SmoothlySelectCustomEvent<T> extends CustomEvent<T> {
|
|
368
|
+
detail: T;
|
|
369
|
+
target: HTMLSmoothlySelectElement;
|
|
370
|
+
}
|
|
371
|
+
export interface SmoothlySelectorCustomEvent<T> extends CustomEvent<T> {
|
|
372
|
+
detail: T;
|
|
373
|
+
target: HTMLSmoothlySelectorElement;
|
|
374
|
+
}
|
|
375
|
+
export interface SmoothlySubmitCustomEvent<T> extends CustomEvent<T> {
|
|
376
|
+
detail: T;
|
|
377
|
+
target: HTMLSmoothlySubmitElement;
|
|
378
|
+
}
|
|
379
|
+
export interface SmoothlyTabCustomEvent<T> extends CustomEvent<T> {
|
|
380
|
+
detail: T;
|
|
381
|
+
target: HTMLSmoothlyTabElement;
|
|
382
|
+
}
|
|
383
|
+
export interface SmoothlyTableCustomEvent<T> extends CustomEvent<T> {
|
|
384
|
+
detail: T;
|
|
385
|
+
target: HTMLSmoothlyTableElement;
|
|
386
|
+
}
|
|
387
|
+
export interface SmoothlyTableExpandableCellCustomEvent<T> extends CustomEvent<T> {
|
|
388
|
+
detail: T;
|
|
389
|
+
target: HTMLSmoothlyTableExpandableCellElement;
|
|
390
|
+
}
|
|
391
|
+
export interface SmoothlyTableExpandableRowCustomEvent<T> extends CustomEvent<T> {
|
|
392
|
+
detail: T;
|
|
393
|
+
target: HTMLSmoothlyTableExpandableRowElement;
|
|
394
|
+
}
|
|
395
|
+
export interface SmoothlyTriggerCustomEvent<T> extends CustomEvent<T> {
|
|
396
|
+
detail: T;
|
|
397
|
+
target: HTMLSmoothlyTriggerElement;
|
|
398
|
+
}
|
|
399
|
+
export interface SmoothlyTriggerSourceCustomEvent<T> extends CustomEvent<T> {
|
|
400
|
+
detail: T;
|
|
401
|
+
target: HTMLSmoothlyTriggerSourceElement;
|
|
402
|
+
}
|
|
296
403
|
declare global {
|
|
297
404
|
interface HTMLSmoothlyAccordionElement extends Components.SmoothlyAccordion, HTMLStencilElement {
|
|
298
405
|
}
|
|
@@ -696,10 +803,10 @@ declare namespace LocalJSX {
|
|
|
696
803
|
interface SmoothlyAccordionItem {
|
|
697
804
|
"brand"?: string | string[];
|
|
698
805
|
"name"?: string;
|
|
699
|
-
"onSmoothlyAccordionItemDidLoad"?: (event:
|
|
700
|
-
"onSmoothlyAccordionItemDidUnload"?: (event:
|
|
701
|
-
"onSmoothlyClose"?: (event:
|
|
702
|
-
"onSmoothlyOpen"?: (event:
|
|
806
|
+
"onSmoothlyAccordionItemDidLoad"?: (event: SmoothlyAccordionItemCustomEvent<void>) => void;
|
|
807
|
+
"onSmoothlyAccordionItemDidUnload"?: (event: SmoothlyAccordionItemCustomEvent<void>) => void;
|
|
808
|
+
"onSmoothlyClose"?: (event: SmoothlyAccordionItemCustomEvent<{ name: string; open: boolean }>) => void;
|
|
809
|
+
"onSmoothlyOpen"?: (event: SmoothlyAccordionItemCustomEvent<{ name: string; open: boolean }>) => void;
|
|
703
810
|
"open"?: boolean;
|
|
704
811
|
}
|
|
705
812
|
interface SmoothlyApp {
|
|
@@ -728,18 +835,18 @@ declare namespace LocalJSX {
|
|
|
728
835
|
"max"?: Date;
|
|
729
836
|
"min"?: Date;
|
|
730
837
|
"month"?: Date;
|
|
731
|
-
"onDateRangeSet"?: (event:
|
|
732
|
-
"onDateSet"?: (event:
|
|
733
|
-
"onEndChanged"?: (event:
|
|
734
|
-
"onStartChanged"?: (event:
|
|
735
|
-
"onValueChanged"?: (event:
|
|
838
|
+
"onDateRangeSet"?: (event: SmoothlyCalendarCustomEvent<DateRange>) => void;
|
|
839
|
+
"onDateSet"?: (event: SmoothlyCalendarCustomEvent<Date>) => void;
|
|
840
|
+
"onEndChanged"?: (event: SmoothlyCalendarCustomEvent<Date>) => void;
|
|
841
|
+
"onStartChanged"?: (event: SmoothlyCalendarCustomEvent<Date>) => void;
|
|
842
|
+
"onValueChanged"?: (event: SmoothlyCalendarCustomEvent<Date>) => void;
|
|
736
843
|
"start"?: Date;
|
|
737
844
|
"value"?: Date;
|
|
738
845
|
}
|
|
739
846
|
interface SmoothlyCheckbox {
|
|
740
847
|
"disabled"?: boolean;
|
|
741
848
|
"intermediate"?: boolean;
|
|
742
|
-
"onChecked"?: (event:
|
|
849
|
+
"onChecked"?: (event: SmoothlyCheckboxCustomEvent<{ selected: boolean }>) => void;
|
|
743
850
|
"selectAll"?: boolean;
|
|
744
851
|
"selected"?: boolean;
|
|
745
852
|
"size"?: "tiny" | "small" | "medium" | "large";
|
|
@@ -755,6 +862,7 @@ declare namespace LocalJSX {
|
|
|
755
862
|
interface SmoothlyDisplay {
|
|
756
863
|
"country"?: CountryCode.Alpha2;
|
|
757
864
|
"currency"?: Currency;
|
|
865
|
+
"format"?: DateTime.Format;
|
|
758
866
|
"type"?: Type;
|
|
759
867
|
"value"?: any;
|
|
760
868
|
}
|
|
@@ -766,12 +874,12 @@ declare namespace LocalJSX {
|
|
|
766
874
|
"datetime"?: DateTime;
|
|
767
875
|
}
|
|
768
876
|
interface SmoothlyDisplayDemo {
|
|
769
|
-
"onNotice"?: (event:
|
|
877
|
+
"onNotice"?: (event: SmoothlyDisplayDemoCustomEvent<Notice>) => void;
|
|
770
878
|
}
|
|
771
879
|
interface SmoothlyFrame {
|
|
772
880
|
"name"?: string;
|
|
773
|
-
"onMessage"?: (event:
|
|
774
|
-
"onTrigger"?: (event:
|
|
881
|
+
"onMessage"?: (event: SmoothlyFrameCustomEvent<Message<any>>) => void;
|
|
882
|
+
"onTrigger"?: (event: SmoothlyFrameCustomEvent<Trigger>) => void;
|
|
775
883
|
"origin"?: string | undefined;
|
|
776
884
|
"url"?: string;
|
|
777
885
|
}
|
|
@@ -794,9 +902,9 @@ declare namespace LocalJSX {
|
|
|
794
902
|
"maxLength"?: number;
|
|
795
903
|
"minLength"?: number;
|
|
796
904
|
"name"?: string;
|
|
797
|
-
"onSmoothlyBlur"?: (event:
|
|
798
|
-
"onSmoothlyChange"?: (event:
|
|
799
|
-
"onSmoothlyInput"?: (event:
|
|
905
|
+
"onSmoothlyBlur"?: (event: SmoothlyInputCustomEvent<void>) => void;
|
|
906
|
+
"onSmoothlyChange"?: (event: SmoothlyInputCustomEvent<{ name: string; value: any }>) => void;
|
|
907
|
+
"onSmoothlyInput"?: (event: SmoothlyInputCustomEvent<{ name: string; value: any }>) => void;
|
|
800
908
|
"pattern"?: RegExp | undefined;
|
|
801
909
|
"placeholder"?: string | undefined;
|
|
802
910
|
"readonly"?: boolean;
|
|
@@ -809,7 +917,8 @@ declare namespace LocalJSX {
|
|
|
809
917
|
"disabled"?: boolean;
|
|
810
918
|
"max"?: Date;
|
|
811
919
|
"min"?: Date;
|
|
812
|
-
"
|
|
920
|
+
"name"?: string;
|
|
921
|
+
"onValueChanged"?: (event: SmoothlyInputDateCustomEvent<Date>) => void;
|
|
813
922
|
"open"?: boolean;
|
|
814
923
|
"value"?: Date;
|
|
815
924
|
}
|
|
@@ -817,8 +926,8 @@ declare namespace LocalJSX {
|
|
|
817
926
|
"end"?: Date;
|
|
818
927
|
"max"?: Date;
|
|
819
928
|
"min"?: Date;
|
|
820
|
-
"onDateRangeSelected"?: (event:
|
|
821
|
-
"onValueChanged"?: (event:
|
|
929
|
+
"onDateRangeSelected"?: (event: SmoothlyInputDateRangeCustomEvent<{ start: Date; end: Date }>) => void;
|
|
930
|
+
"onValueChanged"?: (event: SmoothlyInputDateRangeCustomEvent<Date>) => void;
|
|
822
931
|
"open"?: boolean;
|
|
823
932
|
"showLabel"?: boolean;
|
|
824
933
|
"start"?: Date;
|
|
@@ -827,11 +936,11 @@ declare namespace LocalJSX {
|
|
|
827
936
|
interface SmoothlyInputDemo {
|
|
828
937
|
}
|
|
829
938
|
interface SmoothlyInputMonth {
|
|
830
|
-
"onValueChanged"?: (event:
|
|
939
|
+
"onValueChanged"?: (event: SmoothlyInputMonthCustomEvent<Date>) => void;
|
|
831
940
|
"value"?: Date;
|
|
832
941
|
}
|
|
833
942
|
interface SmoothlyItem {
|
|
834
|
-
"onItemSelected"?: (event:
|
|
943
|
+
"onItemSelected"?: (event: SmoothlyItemCustomEvent<void>) => void;
|
|
835
944
|
"selected"?: boolean;
|
|
836
945
|
"value"?: any;
|
|
837
946
|
}
|
|
@@ -840,7 +949,7 @@ declare namespace LocalJSX {
|
|
|
840
949
|
"maxMenuHeight"?: "inherit";
|
|
841
950
|
"mutable"?: boolean;
|
|
842
951
|
"newOptionLabel"?: string;
|
|
843
|
-
"onMenuEmpty"?: (event:
|
|
952
|
+
"onMenuEmpty"?: (event: SmoothlyMenuOptionsCustomEvent<boolean>) => void;
|
|
844
953
|
"optionStyle"?: any;
|
|
845
954
|
"options"?: OptionType[];
|
|
846
955
|
"order"?: boolean;
|
|
@@ -848,7 +957,7 @@ declare namespace LocalJSX {
|
|
|
848
957
|
}
|
|
849
958
|
interface SmoothlyNotification {
|
|
850
959
|
"notice"?: Notice;
|
|
851
|
-
"onRemove"?: (event:
|
|
960
|
+
"onRemove"?: (event: SmoothlyNotificationCustomEvent<Notice>) => void;
|
|
852
961
|
}
|
|
853
962
|
interface SmoothlyNotifier {
|
|
854
963
|
}
|
|
@@ -858,9 +967,9 @@ declare namespace LocalJSX {
|
|
|
858
967
|
"divider"?: boolean;
|
|
859
968
|
"name"?: string;
|
|
860
969
|
"new"?: boolean;
|
|
861
|
-
"onOptionAdd"?: (event:
|
|
862
|
-
"onOptionHover"?: (event:
|
|
863
|
-
"onOptionSelect"?: (event:
|
|
970
|
+
"onOptionAdd"?: (event: SmoothlyOptionCustomEvent<{ name: string; value: string }>) => void;
|
|
971
|
+
"onOptionHover"?: (event: SmoothlyOptionCustomEvent<{ value: any; name: string }>) => void;
|
|
972
|
+
"onOptionSelect"?: (event: SmoothlyOptionCustomEvent<{ value: any; name: string }>) => void;
|
|
864
973
|
"value"?: string;
|
|
865
974
|
}
|
|
866
975
|
interface SmoothlyPicker {
|
|
@@ -873,8 +982,8 @@ declare namespace LocalJSX {
|
|
|
873
982
|
"multiple"?: boolean;
|
|
874
983
|
"mutable"?: boolean;
|
|
875
984
|
"newOptionLabel"?: string;
|
|
876
|
-
"onMenuClose"?: (event:
|
|
877
|
-
"onNotice"?: (event:
|
|
985
|
+
"onMenuClose"?: (event: SmoothlyPickerCustomEvent<OptionType[]>) => void;
|
|
986
|
+
"onNotice"?: (event: SmoothlyPickerCustomEvent<Notice>) => void;
|
|
878
987
|
"optionStyle"?: any;
|
|
879
988
|
"options"?: OptionType[];
|
|
880
989
|
"readonly"?: boolean;
|
|
@@ -886,7 +995,7 @@ declare namespace LocalJSX {
|
|
|
886
995
|
}
|
|
887
996
|
interface SmoothlyPopup {
|
|
888
997
|
"direction"?: "up" | "down";
|
|
889
|
-
"onPopup"?: (event:
|
|
998
|
+
"onPopup"?: (event: SmoothlyPopupCustomEvent<boolean>) => void;
|
|
890
999
|
"visible"?: boolean;
|
|
891
1000
|
}
|
|
892
1001
|
interface SmoothlyQuiet {
|
|
@@ -895,7 +1004,7 @@ declare namespace LocalJSX {
|
|
|
895
1004
|
interface SmoothlyRadio {
|
|
896
1005
|
"checked"?: boolean;
|
|
897
1006
|
"name"?: string;
|
|
898
|
-
"onSmoothlySelected"?: (event:
|
|
1007
|
+
"onSmoothlySelected"?: (event: SmoothlyRadioCustomEvent<{ name: string; value: string }>) => void;
|
|
899
1008
|
"tabIndex"?: number;
|
|
900
1009
|
"value"?: string;
|
|
901
1010
|
}
|
|
@@ -903,24 +1012,24 @@ declare namespace LocalJSX {
|
|
|
903
1012
|
"orientation"?: "horizontal" | "vertical";
|
|
904
1013
|
}
|
|
905
1014
|
interface SmoothlyReorder {
|
|
906
|
-
"onReorder"?: (event:
|
|
1015
|
+
"onReorder"?: (event: SmoothlyReorderCustomEvent<[number, number]>) => void;
|
|
907
1016
|
}
|
|
908
1017
|
interface SmoothlyRoom {
|
|
909
1018
|
"icon"?: string;
|
|
910
1019
|
"label"?: string;
|
|
911
|
-
"path"?: string;
|
|
1020
|
+
"path"?: string | RegExp;
|
|
912
1021
|
"to"?: string;
|
|
913
1022
|
}
|
|
914
1023
|
interface SmoothlySelect {
|
|
915
1024
|
"background"?: string;
|
|
916
1025
|
"identifier"?: string;
|
|
917
|
-
"onSelectionChanged"?: (event:
|
|
1026
|
+
"onSelectionChanged"?: (event: SmoothlySelectCustomEvent<{ identifier: string; value: string }>) => void;
|
|
918
1027
|
"value"?: string;
|
|
919
1028
|
}
|
|
920
1029
|
interface SmoothlySelectDemo {
|
|
921
1030
|
}
|
|
922
1031
|
interface SmoothlySelector {
|
|
923
|
-
"onSelected"?: (event:
|
|
1032
|
+
"onSelected"?: (event: SmoothlySelectorCustomEvent<any>) => void;
|
|
924
1033
|
}
|
|
925
1034
|
interface SmoothlySkeleton {
|
|
926
1035
|
"align"?: "left" | "center" | "right";
|
|
@@ -939,7 +1048,7 @@ declare namespace LocalJSX {
|
|
|
939
1048
|
"disabled"?: boolean;
|
|
940
1049
|
"expand"?: Expand;
|
|
941
1050
|
"fill"?: Fill;
|
|
942
|
-
"onSubmit"?: (event:
|
|
1051
|
+
"onSubmit"?: (event: SmoothlySubmitCustomEvent<Data>) => void;
|
|
943
1052
|
"prevent"?: boolean;
|
|
944
1053
|
"processing"?: boolean;
|
|
945
1054
|
}
|
|
@@ -950,13 +1059,13 @@ declare namespace LocalJSX {
|
|
|
950
1059
|
}
|
|
951
1060
|
interface SmoothlyTab {
|
|
952
1061
|
"label"?: string;
|
|
953
|
-
"onExpansionOpen"?: (event:
|
|
1062
|
+
"onExpansionOpen"?: (event: SmoothlyTabCustomEvent<HTMLElement>) => void;
|
|
954
1063
|
"open"?: boolean;
|
|
955
1064
|
}
|
|
956
1065
|
interface SmoothlyTabSwitch {
|
|
957
1066
|
}
|
|
958
1067
|
interface SmoothlyTable {
|
|
959
|
-
"onLoadMore"?: (event:
|
|
1068
|
+
"onLoadMore"?: (event: SmoothlyTableCustomEvent<void>) => void;
|
|
960
1069
|
}
|
|
961
1070
|
interface SmoothlyTableCell {
|
|
962
1071
|
}
|
|
@@ -964,13 +1073,13 @@ declare namespace LocalJSX {
|
|
|
964
1073
|
}
|
|
965
1074
|
interface SmoothlyTableExpandableCell {
|
|
966
1075
|
"align"?: "left" | "center" | "right";
|
|
967
|
-
"onExpansionLoad"?: (event:
|
|
968
|
-
"onExpansionOpen"?: (event:
|
|
1076
|
+
"onExpansionLoad"?: (event: SmoothlyTableExpandableCellCustomEvent<void>) => void;
|
|
1077
|
+
"onExpansionOpen"?: (event: SmoothlyTableExpandableCellCustomEvent<HTMLElement>) => void;
|
|
969
1078
|
"open"?: boolean;
|
|
970
1079
|
}
|
|
971
1080
|
interface SmoothlyTableExpandableRow {
|
|
972
1081
|
"align"?: "left" | "center" | "right";
|
|
973
|
-
"onExpansionOpen"?: (event:
|
|
1082
|
+
"onExpansionOpen"?: (event: SmoothlyTableExpandableRowCustomEvent<HTMLElement>) => void;
|
|
974
1083
|
"open"?: boolean;
|
|
975
1084
|
}
|
|
976
1085
|
interface SmoothlyTableHeader {
|
|
@@ -984,7 +1093,7 @@ declare namespace LocalJSX {
|
|
|
984
1093
|
"expand"?: Expand;
|
|
985
1094
|
"fill"?: Fill;
|
|
986
1095
|
"name"?: string;
|
|
987
|
-
"onTrigger"?: (event:
|
|
1096
|
+
"onTrigger"?: (event: SmoothlyTriggerCustomEvent<Trigger>) => void;
|
|
988
1097
|
"type"?: "link" | "button";
|
|
989
1098
|
"value"?: any;
|
|
990
1099
|
}
|
|
@@ -995,8 +1104,8 @@ declare namespace LocalJSX {
|
|
|
995
1104
|
}
|
|
996
1105
|
interface SmoothlyTriggerSource {
|
|
997
1106
|
"listen"?: string;
|
|
998
|
-
"onMessage"?: (event:
|
|
999
|
-
"onTrigger"?: (event:
|
|
1107
|
+
"onMessage"?: (event: SmoothlyTriggerSourceCustomEvent<Message<any>>) => void;
|
|
1108
|
+
"onTrigger"?: (event: SmoothlyTriggerSourceCustomEvent<Trigger>) => void;
|
|
1000
1109
|
}
|
|
1001
1110
|
interface SmoothlyTuple {
|
|
1002
1111
|
"tuple"?: [string, string];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Components, JSX } from "./components";
|
|
2
|
-
export { App } from "./components/App";
|
|
2
|
+
export { App, redirect } from "./components/App";
|
|
3
3
|
export { Autocomplete, ClientIdentifier, Color, Expand, Fill, GoogleFont, Message, Notice, Trigger, OptionType, } from "./model";
|
|
4
4
|
export { Cosmetic } from "./utilities";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class Listenable<T extends Record<string, any>> {
|
|
2
|
+
#private;
|
|
3
|
+
listen<K extends keyof T>(this: T & Listenable<T>, property: K, listener: Listener<T[K]>): void;
|
|
4
|
+
unlisten<K extends keyof T>(property: K, listener: Listener<T[K]>): void;
|
|
5
|
+
static load<T>(backend: T): T & Listenable<T>;
|
|
6
|
+
}
|
|
7
|
+
export declare type Listener<V> = (value: V) => void;
|
|
8
|
+
export declare type Listeners<T> = {
|
|
9
|
+
[K in keyof T]?: Listener<T[K]>[];
|
|
10
|
+
};
|