@3t-transform/threeteeui 0.0.4 → 0.0.6
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/{index-eb8fc323.js → index-8a7479e4.js} +22 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-icon.cjs.entry.js +21 -0
- package/dist/cjs/tttx-page.cjs.entry.js +1 -1
- package/dist/cjs/tttx-worksheet.cjs.entry.js +1 -1
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/components/tttx-icon/tttx-icon.css +89 -0
- package/dist/collection/components/components/tttx-icon/tttx-icon.js +59 -0
- package/dist/collection/components/components/tttx-icon/tttx-icon.stories.js +40 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/tttx-icon.d.ts +11 -0
- package/dist/components/tttx-icon.js +37 -0
- package/dist/esm/{index-4c11a593.js → index-854ff56f.js} +22 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/tttx-icon.entry.js +17 -0
- package/dist/esm/tttx-page.entry.js +1 -1
- package/dist/esm/tttx-worksheet.entry.js +1 -1
- package/dist/esm/tttx.js +2 -2
- package/dist/tttx/{p-997a8339.entry.js → p-4b57de2e.entry.js} +1 -1
- package/dist/tttx/{p-285977b3.entry.js → p-61f78304.entry.js} +1 -1
- package/dist/tttx/p-7244abd4.entry.js +1 -0
- package/dist/tttx/p-ddfeb0ba.js +2 -0
- package/dist/tttx/tttx.css +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/components/tttx-icon/tttx-icon.d.ts +5 -0
- package/dist/types/components/components/tttx-icon/tttx-icon.stories.d.ts +24 -0
- package/dist/types/components.d.ts +17 -0
- package/package.json +1 -1
- package/dist/tttx/p-2681b874.js +0 -2
package/dist/tttx/tttx.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-
|
|
1
|
+
import{p as e,b as a}from"./p-ddfeb0ba.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((e=>a([["p-4b57de2e",[[4,"tttx-worksheet",{pageSize:[1,"page-size"]}]]],["p-61f78304",[[4,"tttx-page",{appName:[1,"app-name"],pageTitle:[1,"page-title"],lastUpdated:[1,"last-updated"],manageAccountsUrl:[1,"manage-accounts-url"],logoutUrl:[1,"logout-url"],pageSize:[1,"page-size"],helpUrl:[1,"help-url"]}]]],["p-7244abd4",[[0,"tttx-icon",{name:[1],color:[1]}]]]],e)));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import './icon-button.css';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
name: {
|
|
6
|
+
options: string[];
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
defaultValue: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
control: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
export declare const Default: any;
|
|
23
|
+
export declare const WithElements: (args: any) => string;
|
|
24
|
+
export declare const Button: (args: any) => string;
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
export namespace Components {
|
|
9
|
+
interface TttxIcon {
|
|
10
|
+
"color"?: string;
|
|
11
|
+
"name": string;
|
|
12
|
+
}
|
|
9
13
|
interface TttxPage {
|
|
10
14
|
"appName": string;
|
|
11
15
|
"helpUrl": string;
|
|
@@ -20,6 +24,12 @@ export namespace Components {
|
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
declare global {
|
|
27
|
+
interface HTMLTttxIconElement extends Components.TttxIcon, HTMLStencilElement {
|
|
28
|
+
}
|
|
29
|
+
var HTMLTttxIconElement: {
|
|
30
|
+
prototype: HTMLTttxIconElement;
|
|
31
|
+
new (): HTMLTttxIconElement;
|
|
32
|
+
};
|
|
23
33
|
interface HTMLTttxPageElement extends Components.TttxPage, HTMLStencilElement {
|
|
24
34
|
}
|
|
25
35
|
var HTMLTttxPageElement: {
|
|
@@ -33,11 +43,16 @@ declare global {
|
|
|
33
43
|
new (): HTMLTttxWorksheetElement;
|
|
34
44
|
};
|
|
35
45
|
interface HTMLElementTagNameMap {
|
|
46
|
+
"tttx-icon": HTMLTttxIconElement;
|
|
36
47
|
"tttx-page": HTMLTttxPageElement;
|
|
37
48
|
"tttx-worksheet": HTMLTttxWorksheetElement;
|
|
38
49
|
}
|
|
39
50
|
}
|
|
40
51
|
declare namespace LocalJSX {
|
|
52
|
+
interface TttxIcon {
|
|
53
|
+
"color"?: string;
|
|
54
|
+
"name"?: string;
|
|
55
|
+
}
|
|
41
56
|
interface TttxPage {
|
|
42
57
|
"appName"?: string;
|
|
43
58
|
"helpUrl"?: string;
|
|
@@ -51,6 +66,7 @@ declare namespace LocalJSX {
|
|
|
51
66
|
"pageSize"?: 'large' | 'medium' | 'small' | string;
|
|
52
67
|
}
|
|
53
68
|
interface IntrinsicElements {
|
|
69
|
+
"tttx-icon": TttxIcon;
|
|
54
70
|
"tttx-page": TttxPage;
|
|
55
71
|
"tttx-worksheet": TttxWorksheet;
|
|
56
72
|
}
|
|
@@ -59,6 +75,7 @@ export { LocalJSX as JSX };
|
|
|
59
75
|
declare module "@stencil/core" {
|
|
60
76
|
export namespace JSX {
|
|
61
77
|
interface IntrinsicElements {
|
|
78
|
+
"tttx-icon": LocalJSX.TttxIcon & JSXBase.HTMLAttributes<HTMLTttxIconElement>;
|
|
62
79
|
"tttx-page": LocalJSX.TttxPage & JSXBase.HTMLAttributes<HTMLTttxPageElement>;
|
|
63
80
|
"tttx-worksheet": LocalJSX.TttxWorksheet & JSXBase.HTMLAttributes<HTMLTttxWorksheetElement>;
|
|
64
81
|
}
|
package/package.json
CHANGED
package/dist/tttx/p-2681b874.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let t,e,n=!1,l=!1,o=!1,s=!1;const r={},i=t=>"object"==(t=typeof t)||"function"===t,c=(t,e,...n)=>{let l=null,o=null,s=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!i(l))&&(l+=""),s&&r?c[c.length-1].t+=l:c.push(s?f(null,l):l),r=s)};if(u(n),e){e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const a=f(t,null);return a.l=e,c.length>0&&(a.o=c),a.i=o,a},f=(t,e)=>({u:0,$:t,t:e,h:null,o:null,l:null,i:null}),u={},a=new WeakMap,$=t=>"sc-"+t.m,d=(t,e,n,l,o,s)=>{if(n!==l){let r=G(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,o=h(n),s=h(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("ref"===e)l&&l(t);else{const c=i(l);if((r||c&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||o)&&!c&&t.setAttribute(e,l=!0===l?"":l)}}},y=/\s/,h=t=>t?t.split(y):[],m=(t,e,n,l)=>{const o=11===e.h.nodeType&&e.h.host?e.h.host:e.h,s=t&&t.l||r,i=e.l||r;for(l in s)l in i||d(o,l,s[l],void 0,n,e.u);for(l in i)d(o,l,s[l],i[l],n,e.u)},p=(l,s,r)=>{const i=s.o[r];let c,f,u,a=0;if(n||(o=!0,"slot"===i.$&&(i.u|=i.o?2:1)),1&i.u)c=i.h=Y.createTextNode("");else if(c=i.h=Y.createElement(2&i.u?"slot-fb":i.$),m(null,i,!1),i.o)for(a=0;a<i.o.length;++a)f=p(l,i,a),f&&c.appendChild(f);return c["s-hn"]=e,3&i.u&&(c["s-sr"]=!0,c["s-cr"]=t,c["s-sn"]=i.i||"",u=l&&l.o&&l.o[r],u&&u.$===i.$&&l.h&&b(l.h,!1)),c},b=(t,n)=>{Z.u|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const s=l[t];s["s-hn"]!==e&&s["s-ol"]&&(k(s).insertBefore(s,j(s)),s["s-ol"].remove(),s["s-ol"]=void 0,o=!0),n&&b(s,n)}Z.u&=-2},w=(t,e,n,l,o,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(;o<=s;++o)l[o]&&(r=p(null,n,o),r&&(l[o].h=r,i.insertBefore(r,j(e))))},S=(t,e,n,o,s)=>{for(;e<=n;++e)(o=t[e])&&(s=o.h,T(o),l=!0,s["s-ol"]?s["s-ol"].remove():b(s,!0),s.remove())},g=(t,e)=>t.$===e.$&&("slot"!==t.$||t.i===e.i),j=t=>t&&t["s-ol"]||t,k=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,v=(t,e)=>{const n=e.h=t.h,l=t.o,o=e.o;"slot"===e.$||m(t,e,!1),null!==l&&null!==o?((t,e,n,l)=>{let o,s=0,r=0,i=e.length-1,c=e[0],f=e[i],u=l.length-1,a=l[0],$=l[u];for(;s<=i&&r<=u;)null==c?c=e[++s]:null==f?f=e[--i]:null==a?a=l[++r]:null==$?$=l[--u]:g(c,a)?(v(c,a),c=e[++s],a=l[++r]):g(f,$)?(v(f,$),f=e[--i],$=l[--u]):g(c,$)?("slot"!==c.$&&"slot"!==$.$||b(c.h.parentNode,!1),v(c,$),t.insertBefore(c.h,f.h.nextSibling),c=e[++s],$=l[--u]):g(f,a)?("slot"!==c.$&&"slot"!==$.$||b(f.h.parentNode,!1),v(f,a),t.insertBefore(f.h,c.h),f=e[--i],a=l[++r]):(o=p(e&&e[r],n,r),a=l[++r],o&&k(c.h).insertBefore(o,j(c.h)));s>i?w(t,null==l[u+1]?null:l[u+1].h,n,l,r,u):r>u&&S(e,s,i)})(n,l,e,o):null!==o?w(n,null,e,o,0,o.length-1):null!==l&&S(l,0,l.length-1)},M=t=>{const e=t.childNodes;let n,l,o,s,r,i;for(l=0,o=e.length;l<o;l++)if(n=e[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(i=e[s].nodeType,e[s]["s-hn"]!==n["s-hn"]||""!==r){if(1===i&&r===e[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===i||3===i&&""!==e[s].textContent.trim()){n.hidden=!0;break}M(n)}},C=[],O=t=>{let e,n,o,s,r,i,c=0;const f=t.childNodes,u=f.length;for(;c<u;c++){if(e=f[c],e["s-sr"]&&(n=e["s-cr"])&&n.parentNode)for(o=n.parentNode.childNodes,s=e["s-sn"],i=o.length-1;i>=0;i--)n=o[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(R(n,s)?(r=C.find((t=>t.p===n)),l=!0,n["s-sn"]=n["s-sn"]||s,r?r.S=e:C.push({S:e,p:n}),n["s-sr"]&&C.map((t=>{R(t.p,n["s-sn"])&&(r=C.find((t=>t.p===n)),r&&!t.S&&(t.S=r.S))}))):C.some((t=>t.p===n))||C.push({p:n}));1===e.nodeType&&O(e)}},R=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,T=t=>{t.l&&t.l.ref&&t.l.ref(null),t.o&&t.o.map(T)},x=(t,e)=>{e&&!t.g&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.g=e)))},N=(t,e)=>{if(t.u|=16,!(4&t.u))return x(t,t.j),ct((()=>P(t,e)));t.u|=512},P=(t,e)=>{const n=t.k;return W(void 0,(()=>E(t,n,e)))},E=async(t,e,n)=>{const l=t.v,o=l["s-rc"];n&&(t=>{const e=t.M;((t,e)=>{let n=$(e);const l=Q.get(n);if(t=11===t.nodeType?t:Y,l)if("string"==typeof l){let e,o=a.get(t=t.head||t);o||a.set(t,o=new Set),o.has(n)||(e=Y.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.v.getRootNode(),e)})(t);L(t,e),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>A(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},L=(s,r)=>{try{r=r.render(),s.u&=-17,s.u|=2,((s,r)=>{const i=s.v,a=s.M,$=s.C||f(null,null),d=(t=>t&&t.$===u)(r)?r:c(null,null,r);if(e=i.tagName,d.$=null,d.u|=4,s.C=d,d.h=$.h=i,t=i["s-cr"],n=0!=(1&a.u),l=!1,v($,d),Z.u|=1,o){let t,e,n,l,o,s;O(d.h);let r=0;for(;r<C.length;r++)t=C[r],e=t.p,e["s-ol"]||(n=Y.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<C.length;r++)if(t=C[r],e=t.p,t.S){for(l=t.S.parentNode,o=t.S.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===e["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==e.parentNode||e.nextSibling!==o)&&e!==o&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,o))}else 1===e.nodeType&&(e.hidden=!0)}l&&M(d.h),Z.u&=-2,C.length=0})(s,r)}catch(t){I(t,s.v)}return null},A=t=>{const e=t.v,n=t.k,l=t.j;64&t.u||(t.u|=64,q(e),U(n,"componentDidLoad"),t.O(e),l||H()),t.g&&(t.g(),t.g=void 0),512&t.u&&it((()=>N(t,!1))),t.u&=-517},H=()=>{q(Y.documentElement),it((()=>(t=>{const e=Z.ce("appload",{detail:{namespace:"tttx"}});return t.dispatchEvent(e),e})(X)))},U=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){I(t)}},W=(t,e)=>t&&t.then?t.then(e):e(),q=t=>t.classList.add("hydrated"),D=(t,e,n)=>{if(e.R){const l=Object.entries(e.R),o=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>_(this).T.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=_(t),s=o.T.get(e),r=o.u,c=o.k;n=((t,e)=>null==t||i(t)?t:1&e?t+"":t)(n,l.R[e][0]),8&r&&void 0!==s||n===s||Number.isNaN(s)&&Number.isNaN(n)||(o.T.set(e,n),c&&2==(18&r)&&N(o,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){Z.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},F=(t,e={})=>{const n=[],l=e.exclude||[],o=X.customElements,s=Y.head,r=s.querySelector("meta[charset]"),i=Y.createElement("style"),c=[];let f,u=!0;Object.assign(Z,e),Z.N=new URL(e.resourcesUrl||"./",Y.baseURI).href,t.map((t=>{t[1].map((e=>{const s={u:e[0],m:e[1],R:e[2],P:e[3]};s.R=e[2];const r=s.m,i=class extends HTMLElement{constructor(t){super(t),B(t=this,s)}connectedCallback(){f&&(clearTimeout(f),f=null),u?c.push(this):Z.jmp((()=>(t=>{if(0==(1&Z.u)){const e=_(t),n=e.M,l=()=>{};if(!(1&e.u)){e.u|=1,12&n.u&&(t=>{const e=t["s-cr"]=Y.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){x(e,e.j=n);break}}n.R&&Object.entries(n.R).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,o)=>{if(0==(32&e.u)){{if(e.u|=32,(o=K(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(D(o,n,2),o.isProxied=!0);const t=()=>{};e.u|=8;try{new o(e)}catch(t){I(t)}e.u&=-9,t()}if(o.style){let t=o.style;const e=$(n);if(!Q.has(e)){const l=()=>{};((t,e,n)=>{let l=Q.get(t);et&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,Q.set(t,l)})(e,t,!!(1&n.u)),l()}}}const s=e.j,r=()=>N(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){Z.jmp((()=>{}))}componentOnReady(){return _(this).L}};s.A=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,D(i,s,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),s.insertBefore(i,r?r.nextSibling:s.firstChild),u=!1,c.length?c.map((t=>t.connectedCallback())):Z.jmp((()=>f=setTimeout(H,30)))},V=new WeakMap,_=t=>V.get(t),z=(t,e)=>V.set(e.k=t,e),B=(t,e)=>{const n={u:0,v:t,M:e,T:new Map};return n.L=new Promise((t=>n.O=t)),t["s-p"]=[],t["s-rc"]=[],V.set(t,n)},G=(t,e)=>e in t,I=(t,e)=>(0,console.error)(t,e),J=new Map,K=t=>{const e=t.m.replace(/-/g,"_"),n=t.A,l=J.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(J.set(n,t),t[e])),I)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Q=new Map,X="undefined"!=typeof window?window:{},Y=X.document||{head:{}},Z={u:0,N:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},tt=t=>Promise.resolve(t),et=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),nt=[],lt=[],ot=(t,e)=>n=>{t.push(n),s||(s=!0,e&&4&Z.u?it(rt):Z.raf(rt))},st=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){I(t)}t.length=0},rt=()=>{st(nt),st(lt),(s=nt.length>0)&&Z.raf(rt)},it=t=>tt().then(t),ct=ot(lt,!0);export{u as H,F as b,c as h,tt as p,z as r}
|