@streamline-pulse/formkrafter-wc 0.2.0 → 0.4.0
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/README.md +10 -8
- package/dist/components/fk-brick-actions.js +1 -1
- package/dist/components/fk-brick-list.js +1 -1
- package/dist/components/fk-brick-mold-item.js +1 -1
- package/dist/components/fk-brick-not-found.js +1 -1
- package/dist/components/fk-brick-render.js +1 -1
- package/dist/components/fk-code-editor.js +1 -1
- package/dist/components/fk-data-grid.js +1 -1
- package/dist/components/fk-drop-area.js +1 -1
- package/dist/components/fk-empty-form.js +1 -1
- package/dist/components/fk-file-input.js +1 -1
- package/dist/components/fk-form-builder.js +1 -1
- package/dist/components/fk-form-render.js +1 -1
- package/dist/components/fk-property-panel.js +1 -1
- package/dist/components/fk-rules-editor.js +1 -1
- package/dist/components/fk-select-input.js +1 -1
- package/dist/components/fk-signature-input.js +1 -1
- package/dist/components/fk-stepper.js +1 -1
- package/dist/components/fk-tabs.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-LXnm2ogM.js → p-28GBFlUX.js} +4 -4
- package/dist/components/p-BB4Llg42.js +1 -0
- package/dist/components/p-BGxmFcpL.js +1 -0
- package/dist/components/{p-BVBfbMl_.js → p-BInUBjyw.js} +1 -1
- package/dist/components/p-BietHxaT.js +1 -0
- package/dist/components/{p-C85zhhpr.js → p-BnzSarwW.js} +1 -1
- package/dist/components/p-BpkKcCCr.js +1 -0
- package/dist/components/p-C0Y8qh8R.js +1 -0
- package/dist/components/p-C5OWoRhO.js +1 -0
- package/dist/components/p-CKs1CWVz.js +1 -0
- package/dist/components/{p-BSPTuA1p.js → p-CZHykCYD.js} +1 -1
- package/dist/components/p-CehxuHtl.js +1 -0
- package/dist/components/p-CqVSd56Z.js +1 -0
- package/dist/components/p-CyZA17qf.js +1 -0
- package/dist/components/p-D4HhZxQ-.js +1 -0
- package/dist/components/p-DC6Wxbnz.js +1 -0
- package/dist/components/p-DRNycSdI.js +1 -0
- package/dist/components/{p-B0YjIsVn.js → p-Dh5Z49YD.js} +1 -1
- package/dist/components/p-DiOstAi9.js +1 -0
- package/dist/components/p-DlqnIm46.js +1 -0
- package/dist/components/{p-BDvqHJih.js → p-DshUS8Zm.js} +1 -1
- package/dist/components/p-DtcM1yw5.js +1 -0
- package/dist/components/p-NDbmiiYk.js +1 -0
- package/dist/components/p-RzeBwfwG.js +1 -0
- package/dist/components/p-ajy8ZcBX.js +1 -0
- package/dist/components/p-kYG3E0GQ.js +1 -0
- package/dist/components/p-tTJg_I4V.js +1 -0
- package/dist/formkrafter-wc/formkrafter-wc.css +1 -1
- package/dist/formkrafter-wc/formkrafter-wc.esm.js +1 -1
- package/dist/formkrafter-wc/index.esm.js +1 -1
- package/dist/formkrafter-wc/p-3579150a.entry.js +1 -0
- package/dist/formkrafter-wc/p-8b0ff66e.entry.js +1 -0
- package/dist/formkrafter-wc/p-BHZMDq2e.js +1 -0
- package/dist/formkrafter-wc/p-BietHxaT.js +1 -0
- package/dist/formkrafter-wc/p-C0Y8qh8R.js +1 -0
- package/dist/formkrafter-wc/p-CehxuHtl.js +1 -0
- package/dist/formkrafter-wc/p-DlqnIm46.js +1 -0
- package/dist/formkrafter-wc/p-DtcM1yw5.js +1 -0
- package/dist/formkrafter-wc/p-RzeBwfwG.js +1 -0
- package/dist/formkrafter-wc/p-WWmY5Z05.js +1 -0
- package/dist/formkrafter-wc/p-hcT25XX4.js +12 -0
- package/dist/formkrafter-wc/p-qLZlXROB.js +2 -0
- package/dist/types/components/fk-code-editor/fk-code-editor.d.ts +3 -1
- package/dist/types/components/fk-data-grid/fk-data-grid.d.ts +1 -0
- package/dist/types/components/fk-drop-area/fk-drop-area.d.ts +1 -0
- package/dist/types/components/fk-file-input/fk-file-input.d.ts +7 -3
- package/dist/types/components/fk-form-render/fk-form-render.d.ts +7 -1
- package/dist/types/components/fk-select-input/fk-select-input.d.ts +9 -0
- package/dist/types/components.d.ts +39 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/registry/default-bricks.d.ts +36 -0
- package/dist/types/utils/mask.d.ts +1 -0
- package/package.json +10 -15
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/fk-brick-actions_18.cjs.entry.js +0 -26443
- package/dist/cjs/formkrafter-wc.cjs.js +0 -25
- package/dist/cjs/index-Can2MpG5.js +0 -17538
- package/dist/cjs/index-CbyFxLc_.js +0 -2114
- package/dist/cjs/index.cjs.js +0 -48
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/collection/collection-manifest.json +0 -30
- package/dist/collection/components/fk-brick-actions/fk-brick-actions.css +0 -78
- package/dist/collection/components/fk-brick-actions/fk-brick-actions.js +0 -215
- package/dist/collection/components/fk-brick-list/fk-brick-list.css +0 -71
- package/dist/collection/components/fk-brick-list/fk-brick-list.js +0 -55
- package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.css +0 -33
- package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.js +0 -73
- package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.css +0 -8
- package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.js +0 -18
- package/dist/collection/components/fk-brick-render/fk-brick-render.js +0 -447
- package/dist/collection/components/fk-code-editor/fk-code-editor.css +0 -26
- package/dist/collection/components/fk-code-editor/fk-code-editor.js +0 -136
- package/dist/collection/components/fk-data-grid/fk-data-grid.css +0 -75
- package/dist/collection/components/fk-data-grid/fk-data-grid.js +0 -300
- package/dist/collection/components/fk-drop-area/fk-drop-area.css +0 -18
- package/dist/collection/components/fk-drop-area/fk-drop-area.js +0 -98
- package/dist/collection/components/fk-empty-form/fk-empty-form.css +0 -22
- package/dist/collection/components/fk-empty-form/fk-empty-form.js +0 -19
- package/dist/collection/components/fk-file-input/fk-file-input.css +0 -95
- package/dist/collection/components/fk-file-input/fk-file-input.js +0 -196
- package/dist/collection/components/fk-form-builder/fk-form-builder.css +0 -112
- package/dist/collection/components/fk-form-builder/fk-form-builder.js +0 -431
- package/dist/collection/components/fk-form-render/fk-form-render.css +0 -7
- package/dist/collection/components/fk-form-render/fk-form-render.js +0 -352
- package/dist/collection/components/fk-property-panel/fk-property-panel.css +0 -153
- package/dist/collection/components/fk-property-panel/fk-property-panel.js +0 -384
- package/dist/collection/components/fk-rules-editor/fk-rules-editor.css +0 -166
- package/dist/collection/components/fk-rules-editor/fk-rules-editor.js +0 -250
- package/dist/collection/components/fk-select-input/fk-select-input.css +0 -144
- package/dist/collection/components/fk-select-input/fk-select-input.js +0 -356
- package/dist/collection/components/fk-signature-input/fk-signature-input.css +0 -42
- package/dist/collection/components/fk-signature-input/fk-signature-input.js +0 -158
- package/dist/collection/components/fk-stepper/fk-stepper.css +0 -85
- package/dist/collection/components/fk-stepper/fk-stepper.js +0 -282
- package/dist/collection/components/fk-tabs/fk-tabs.css +0 -38
- package/dist/collection/components/fk-tabs/fk-tabs.js +0 -236
- package/dist/collection/i18n/i18n.js +0 -257
- package/dist/collection/index.js +0 -5
- package/dist/collection/registry/create-brick.js +0 -34
- package/dist/collection/registry/default-bricks.js +0 -562
- package/dist/collection/registry/registry.js +0 -44
- package/dist/collection/utils/brick-data.js +0 -16
- package/dist/collection/utils/drop.js +0 -14
- package/dist/collection/utils/events.js +0 -1
- package/dist/collection/utils/options.js +0 -21
- package/dist/collection/utils/remote.js +0 -27
- package/dist/collection/utils/rule-condition.js +0 -72
- package/dist/collection/utils/style.js +0 -11
- package/dist/components/p-B1t0M_hN.js +0 -1
- package/dist/components/p-B21cOFRx.js +0 -1
- package/dist/components/p-B7ED8qMb.js +0 -1
- package/dist/components/p-BrOXMyOG.js +0 -1
- package/dist/components/p-CMQ_4Zfv.js +0 -1
- package/dist/components/p-CWQX0sXS.js +0 -1
- package/dist/components/p-CXEvsomA.js +0 -1
- package/dist/components/p-Cq9HSEn8.js +0 -1
- package/dist/components/p-D7bf2ztq.js +0 -1
- package/dist/components/p-DIPoAaGe.js +0 -1
- package/dist/components/p-DYBirEew.js +0 -1
- package/dist/components/p-DluDp8V5.js +0 -1
- package/dist/components/p-Do6-yRva.js +0 -1
- package/dist/components/p-GjmAhT2E.js +0 -1
- package/dist/components/p-y0xDvzJR.js +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/fk-brick-actions_18.entry.js +0 -26424
- package/dist/esm/formkrafter-wc.js +0 -21
- package/dist/esm/index-BB2OOj__.js +0 -17478
- package/dist/esm/index-DMDO6w5-.js +0 -2105
- package/dist/esm/index.js +0 -2
- package/dist/esm/loader.js +0 -11
- package/dist/formkrafter-wc/p-0de7cbe1.entry.js +0 -1
- package/dist/formkrafter-wc/p-Bp_A8oL5.js +0 -12
- package/dist/formkrafter-wc/p-DMDO6w5-.js +0 -2
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -34
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function t(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var n=(n,e)=>{var o;Object.entries(null!=(o=e.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=n[o],s=t(Object.getPrototypeOf(n),o,!0)||Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(n,o,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),e.l.has(o)?n[o]=e.l.get(o):void 0!==l&&(n[o]=l)}}))},e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&n(t,e))},l=(t,n)=>n in t,s=(t,n)=>(0,console.error)(t,n),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},d=t=>Promise.resolve(t),p=(()=>{try{return!!f.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),v=!!p&&(()=>!!f.document&&Object.getOwnPropertyDescriptor(f.document.adoptedStyleSheets,"length").writable)(),h=!1,m=[],y=[],b=(t,n)=>e=>{t.push(e),h||(h=!0,n&&4&a.u?g(w):a.raf(w))},$=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){s(t)}t.length=0},w=()=>{$(m),$(y),(h=m.length>0)&&a.raf(w)},g=t=>d().then(t),j=b(y,!0),O=t=>{const n=E(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&S(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!k(t,C(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&E(t,"childNodes").length&&O(t)}};function S(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||C(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...S(o.childNodes,n,e)]}return s}var k=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)C(l)!==n||!e&&l["s-sr"]||o.push(l);return o},N=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,C=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function E(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function M(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var T,L,R,x=new WeakMap,A=t=>"sc-"+t.v,P=t=>"object"==(t=typeof t)||"function"===t,D=(t,n,...e)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!P(o))&&(o+=""),i&&r?c[c.length-1].h+=o:c.push(i?F(null,o):o),r=i)};if(u(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const f=F(t,null);return f.m=n,c.length>0&&(f.$=c),f.j=l,f.O=s,f},F=(t,n)=>({u:0,S:t,h:null!=n?n:null,k:null,$:null,m:null,j:null,O:null}),H={},_=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},U=(t,n)=>null==t||P(t)?t:4&n?"false"!==t&&(""===t||!!t):1&n?t+"":t,W=t=>{var n;return null==(n=e(t))?void 0:n.$hostElement$},z=(t,n)=>{const e=W(t);return{emit:t=>B(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},B=(t,n,e)=>{const o=a.ce(n,e);return t.dispatchEvent(o),o},V=(t,n,o,s,i,r)=>{if(o===s)return;let c=l(t,n),d=n.toLowerCase();if("class"===n){const n=t.classList,e=Y(o);let l=Y(s);n.remove(...e.filter((t=>t&&!l.includes(t)))),n.add(...l.filter((t=>t&&!e.includes(t))))}else if("style"===n){for(const n in o)s&&null!=s[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in s)o&&s[n]===o[n]||(n.includes("-")?t.style.setProperty(n,s[n]):t.style[n]=s[n])}else if("key"===n);else if("ref"===n)s&&vt(s,t);else if(c||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const o=n.slice(5);let l;{const n=e(t);if(n&&n.o&&n.o.t){const t=n.o.t[o];t&&t[1]&&(l=t[1])}}return l||(l=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==s||!1===s?!1===s&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===s?"":s))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=s}catch(t){}return}{const e=P(s);if((c||e&&null!==s)&&!i)try{if(t.tagName.includes("-"))t[n]!==s&&(t[n]=s);else{const e=null==s?"":s;"list"===n?c=!1:null!=o&&t[n]===e||("function"==typeof t.__lookupSetter__(n)?t[n]=e:t.setAttribute(n,e))}}catch(t){}let l=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(n=d,l=!0),null==s||!1===s?!1===s&&""!==t.getAttribute(n)||(l?t.removeAttributeNS(u,n):t.removeAttribute(n)):(!c||4&r||i)&&!e&&1===t.nodeType&&(s=!0===s?"":s,l?t.setAttributeNS(u,n,s):t.setAttribute(n,s))}}else if(n="-"===n[2]?n.slice(3):l(f,d)?d.slice(2):d[2]+n.slice(3),o||s){const e=n.endsWith(G);n=n.replace(I,""),o&&a.rel(t,n,o,e),s&&a.ael(t,n,s,e)}},q=/\s/,Y=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(q):[]),G="Capture",I=RegExp(G+"$"),Z=(t,n,e)=>{const o=11===n.k.nodeType&&n.k.host?n.k.host:n.k,l=t&&t.m||{},s=n.m||{};for(const t of J(Object.keys(l)))t in s||V(o,t,l[t],void 0,e,n.u);for(const t of J(Object.keys(s)))V(o,t,l[t],s[t],e,n.u)};function J(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var K=!1,Q=!1,X=!1,tt=!1,nt=[],et=[],ot=(t,n,e)=>{var o;const l=n.$[e];let s,i,r,c=0;if(K||(X=!0,"slot"===l.S&&(l.u|=l.$?2:1)),null!=l.h)s=l.k=f.document.createTextNode(l.h);else if(1&l.u)s=l.k=f.document.createTextNode(""),Z(null,l,tt);else{if(tt||(tt="svg"===l.S),!f.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.k=f.document.createElementNS(tt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!K&&2&l.u?"slot-fb":l.S),tt&&"foreignObject"===l.S&&(tt=!1),Z(null,l,tt),null!=T&&void 0!==T&&s["s-si"]!==T&&s.classList.add(s["s-si"]=T),l.$){const n="template"===l.S?s.content:s;for(c=0;c<l.$.length;++c)i=ot(t,l,c),i&&n.appendChild(i)}"svg"===l.S?tt=!1:"foreignObject"===s.tagName&&(tt=!0)}return s["s-hn"]=R,3&l.u&&(s["s-sr"]=!0,s["s-cr"]=L,s["s-sn"]=l.O||"",s["s-rf"]=null==(o=l.m)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===C(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(s),r=t&&t.$&&t.$[e],r&&r.S===l.S&&t.k&<(t.k),mt(L,s,n.k,null==t?void 0:t.k)),s},lt=t=>{a.u|=1;const n=t.closest(R.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(ht(n,t,null!=e?e:null),t["s-sh"]=void 0,X=!0)}a.u&=-2},st=(t,n)=>{a.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===R&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==R&&o["s-ol"]&&(ht(ut(o).parentNode,o,ut(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,X=!0),n&&st(o,n)}a.u&=-2},it=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===e.S&&(r=r.content);l<=s;++l)o[l]&&(i=ot(null,e,l),i&&(o[l].k=i,ht(r,i,ut(n))))},rt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;pt(n),t&&(Q=!0,t["s-ol"]?t["s-ol"].remove():st(t,!0),t.remove())}}},ct=(t,n,e=!1)=>t.S===n.S&&("slot"===t.S?t.O===n.O:e?(e&&!t.j&&n.j&&(t.j=n.j),!0):t.j===n.j),ut=t=>t&&t["s-ol"]||t,ft=(t,n,e=!1)=>{const o=n.k=t.k,l=t.$,s=n.$,i=n.S,r=n.h;let c;null==r?(tt="svg"===i||"foreignObject"!==i&&tt,"slot"!==i||K||t.O!==n.O&&(n.k["s-sn"]=n.O||"",lt(n.k.parentElement)),Z(t,n,tt),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],p=n[a],v=o.length-1,h=o[0],m=o[v];const y="template"===e.S?t.content:t;for(;r<=a&&c<=v;)if(null==d)d=n[++r];else if(null==p)p=n[--a];else if(null==h)h=o[++c];else if(null==m)m=o[--v];else if(ct(d,h,l))ft(d,h,l),d=n[++r],h=o[++c];else if(ct(p,m,l))ft(p,m,l),p=n[--a],m=o[--v];else if(ct(d,m,l))"slot"!==d.S&&"slot"!==m.S||st(d.k.parentNode,!1),ft(d,m,l),ht(y,d.k,p.k.nextSibling),d=n[++r],m=o[--v];else if(ct(p,h,l))"slot"!==d.S&&"slot"!==m.S||st(p.k.parentNode,!1),ft(p,h,l),ht(y,p.k,d.k),p=n[--a],h=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].j&&n[f].j===h.j){u=f;break}u>=0?(i=n[u],i.S!==h.S?s=ot(n&&n[c],e,u):(ft(i,h,l),n[u]=void 0,s=i.k),h=o[++c]):(s=ot(n&&n[c],e,c),h=o[++c]),s&&ht(ut(d.k).parentNode,s,ut(d.k))}r>a?it(t,null==o[v+1]?null:o[v+1].k,e,o,c,v):c>v&&rt(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.h&&(o.textContent=""),it(o,null,n,s,0,s.length-1)):!e&&null!==l&&rt(l,0,l.length-1),tt&&"svg"===i&&(tt=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.h!==r&&(o.data=r)},at=[],dt=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(N(n,l)){let e=at.find((t=>t.N===n));Q=!0,n["s-sn"]=n["s-sn"]||l,e?(e.N["s-sh"]=t["s-hn"],e.C=t):(n["s-sh"]=t["s-hn"],at.push({C:t,N:n})),n["s-sr"]&&at.map((t=>{N(t.N,n["s-sn"])&&(e=at.find((t=>t.N===n)),e&&!t.C&&(t.C=e.C))}))}else at.some((t=>t.N===n))||at.push({N:n})}1===t.nodeType&&dt(t)}},pt=t=>{t.m&&t.m.ref&&nt.push((()=>t.m.ref(null))),t.$&&t.$.map(pt)},vt=(t,n)=>{et.push((()=>t(n)))},ht=(t,n,e,o)=>{if("string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])mt(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=C(t)||"";return{slotNode:S(E(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(l),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)};function mt(t,n,e,o){var l,s;let i;if(t&&"string"==typeof n["s-sn"]&&n["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=n["s-si"]||t.parentNode["s-sc"])){const t=n["s-sn"],r=n["s-hn"];if(null==(l=e.classList)||l.add(i+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(i+"-s"))){let n=(o.__childNodes||o.childNodes)[0],e=!1;for(;n;){if(n["s-sn"]!==t&&n["s-hn"]===r&&n["s-sr"]){e=!0;break}n=n.nextSibling}e||o.classList.remove(i+"-s")}}}var yt=(t,n)=>{if(n&&!t.M&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.M=()=>{n["s-p"].splice(e-1,1),o()})))}},bt=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);yt(t,t.T);const e=()=>$t(t,n);if(!n)return j(e);queueMicrotask((()=>{e()}))},$t=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.L&&(t.L=!1,Nt(o,"connectedCallback",void 0,e)),t.u|=256,t.R&&(t.R.map((([t,n])=>Nt(o,t,n,e))),t.R=void 0),t.A.length&&t.A.forEach((t=>t(e))),l=Nt(o,"componentWillLoad",void 0,e)):l=Nt(o,"componentWillUpdate",void 0,e),l=wt(l,(()=>Nt(o,"componentWillRender",void 0,e))),wt(l,(()=>jt(t,o,n)))},wt=(t,n)=>gt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),gt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,jt=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.u,l=((t,n)=>{var e,o,l;const s=A(n),i=r.get(s);if(!f.document)return s;if(t=11===t.nodeType?t:f.document,i)if("string"==typeof i){let l,r=x.get(t=t.head||t);if(r||x.set(t,r=new Set),!r.has(s)){l=f.document.createElement("style"),l.textContent=i;const u=null!=(e=a.P)?e:M(f.document);if(null!=u&&l.setAttribute("nonce",u),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(p){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(i),v?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=i+n.textContent:t.prepend(l)}else t.append(l);1&n.u&&t.insertBefore(l,null),4&n.u&&(l.textContent+=c),r&&r.add(s)}}else{let n=x.get(t);if(n||x.set(t,n=new Set),!n.has(s)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(i.constructor===e.CSSStyleSheet)o=i;else{o=new e.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)o.insertRule(i.cssRules[t].cssText,t)}v?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(s)}}return s})(e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);Ot(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>St(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.u|=4,n.length=0)}},Ot=(t,n,e,o)=>{try{n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,s,i,r;const c=t.$hostElement$,u=t.o,d=t.D||F(null,null),p=(t=>t&&t.S===H)(n)?n:D(null,null,n);if(R=c.tagName,e&&p.m)for(const t of Object.keys(p.m))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(p.m[t]=c[t]);if(p.S=null,p.u|=4,t.D=p,p.k=d.k=c,T=c["s-sc"],K=!1,L=c["s-cr"],Q=!1,ft(d,p,e),a.u|=1,X){dt(p.k);for(const t of at){const n=t.N;if(!n["s-ol"]&&f.document){const t=f.document.createTextNode("");t["s-nr"]=n,ht(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of at){const n=t.N,r=t.C;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(ht(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=f.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,ht(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(i=n["s-ih"])&&i)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(Q&&O(p.k),a.u&=-2,at.length=0,!K&&!(1&u.u)&&c["s-cr"]){const t=p.k.__childNodes||p.k.childNodes;for(const n of t)if(n["s-hn"]!==R&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(r=n.hidden)&&r),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=f.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],ht(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}L=void 0,nt.forEach((t=>t())),nt.length=0,et.forEach((t=>t())),et.length=0})(t,n,o)}catch(n){s(n,t.$hostElement$)}return null},St=t=>{const n=t.$hostElement$,e=t.i,o=t.T;Nt(e,"componentDidRender",void 0,n),64&t.u?Nt(e,"componentDidUpdate",void 0,n):(t.u|=64,Ct(n),Nt(e,"componentDidLoad",void 0,n),t.F(n),o||kt()),t.H(n),t.M&&(t.M(),t.M=void 0),512&t.u&&g((()=>bt(t,!1))),t.u&=-517},kt=()=>{g((()=>B(f,"appload",{detail:{namespace:"formkrafter-wc"}})))},Nt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){s(t,o)}},Ct=t=>t.classList.add("hydrated"),Et=(t,n,o,l)=>{const i=e(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.l.get(n),u=i.u,f=i.i;if(o=U(o,l.t[n][0]),!(8&u&&void 0!==c||o===c||Number.isNaN(c)&&Number.isNaN(o))){if(i.l.set(n,o),l._){const t=l._[n];t&&t.map((t=>{try{const[[e,l]]=Object.entries(t);(128&u||1&l)&&(f?f[e](o,c,n):i.A.push((()=>{i.i[e](o,c,n)})))}catch(t){s(t,r)}}))}if(2&u){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(o,c,n)&&!(16&u))return;16&u||bt(i,!1)}}},Mt=(n,o,l)=>{var s,i;const r=n.prototype;{n.watchers&&!o._&&(o._=_(n.watchers)),n.deserializers&&!o.U&&(o.U=n.deserializers),n.serializers&&!o.W&&(o.W=n.serializers);const c=Object.entries(null!=(s=o.t)?s:{});if(c.map((([n,[s]])=>{if(31&s||2&l&&32&s){const{get:i,set:c}=t(r,n)||{};i&&(o.t[n][0]|=2048),c&&(o.t[n][0]|=4096),(1&l||!i)&&Object.defineProperty(r,n,{get(){{if(!(2048&o.t[n][0]))return((t,n)=>e(this).l.get(n))(0,n);const t=e(this),l=t?t.i:r;if(!l)return;return l[n]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,n,{set(t){const i=e(this);if(i){if(c)return void 0===(32&s?this[n]:i.$hostElement$[n])&&i.l.get(n)&&(t=i.l.get(n)),c.call(this,U(t,s)),void Et(this,n,t=32&s?this[n]:i.$hostElement$[n],o);{if(!(1&l&&4096&o.t[n][0]))return Et(this,n,t,o),void(1&l&&!i.i&&i.A.push((()=>{4096&o.t[n][0]&&i.i[n]!==i.l.get(n)&&(i.i[n]=t)})));const e=()=>{const e=i.i[n];!i.l.get(n)&&e&&i.l.set(n,e),i.i[n]=U(t,s),Et(this,n,i.i[n],o)};i.i?e():i.A.push((()=>{e()}))}}}})}else 1&l&&64&s&&Object.defineProperty(r,n,{value(...t){var o;const l=e(this);return null==(o=null==l?void 0:l.B)?void 0:o.then((()=>{var e;return null==(e=l.i)?void 0:e[n](...t)}))}})})),1&l){const t=new Map;r.attributeChangedCallback=function(n,l,s){a.jmp((()=>{var i;const u=t.get(n),f=e(this);if(this.hasOwnProperty(u)&&(s=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&s!==l){const e=f.i,r=null==(i=o._)?void 0:i[n];null==r||r.forEach((o=>{const[[i,r]]=Object.entries(o);null!=e[i]&&(128&t||1&r)&&e[i].call(e,s,l,n)}))}return}const a=c.find((([t])=>t===u)),d=a&&4&a[1][0],p=d&&null===s&&void 0===this[u];d&&(s=null!==s&&"false"!==s);const v=Object.getOwnPropertyDescriptor(r,u);p||s==this[u]||v.get&&!v.set||(this[u]=s)}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=o._)?i:{}),...c.filter((([t,n])=>31&n[0])).map((([n,e])=>{const o=e[1]||n;return t.set(o,n),o}))]))}}return n},Tt=(t,n)=>{Nt(t,"connectedCallback",void 0,n)},Lt=(t,n)=>{Nt(t,"disconnectedCallback",void 0,n||t)},Rt=(t,n={})=>{var o;if(!f.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],u=n.exclude||[],d=f.customElements,v=f.document.head,h=v.querySelector("meta[charset]"),m=f.document.createElement("style"),y=[];let b,$=!0;Object.assign(a,n),a.p=new URL(n.resourcesUrl||"./",f.document.baseURI).href;let w=!1;if(t.map((t=>{t[1].map((n=>{var o,c;const v={u:n[0],v:n[1],t:n[2],V:n[3]};4&v.u&&(w=!0),v.t=n[2],v.V=n[3],v._=_(n[4]),v.W=null!=(o=n[5])?o:{},v.U=null!=(c=n[6])?c:{};const h=v.v,m=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,q:new Map};e.B=new Promise((t=>e.H=t)),e.Y=new Promise((t=>e.F=t)),t["s-p"]=[],t["s-rc"]=[],e.A=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,v)}connectedCallback(){const t=e(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,xt(this,t,v.V)),b&&(clearTimeout(b),b=null),$?y.push(this):a.jmp((()=>(t=>{if(!(1&a.u)){const n=e(t);if(!n)return;const o=n.o,l=()=>{};if(1&n.u)xt(t,n,o.V),(null==n?void 0:n.i)?Tt(n.i,t):(null==n?void 0:n.Y)&&n.Y.then((()=>Tt(n.i,t)));else{n.u|=1,12&o.u&&(t=>{if(!f.document)return;const n=t["s-cr"]=f.document.createComment("");n["s-cn"]=!0,ht(t,n,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){yt(n,n.T=e);break}}o.t&&Object.entries(o.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;try{if(!(32&n.u)){if(n.u|=32,e.G){const l=((t,n)=>{const e=t.v.replace(/-/g,"_"),o=t.G;if(!o)return;const l=i.get(o);return l?l[e]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[e])),(t=>{s(t,n.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${e.v}#${n.I}" was not found`);o.isProxied||(e._=_(o.watchers),e.W=o.serializers,e.U=o.deserializers,Mt(o,e,2),o.isProxied=!0);const r=()=>{};n.u|=8;try{new o(n)}catch(n){s(n,t)}n.u&=-9,n.u|=128,r(),4&e.u?n.L=!0:Tt(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const n=A(e);if(!r.has(n)){const o=()=>{};((t,n,e)=>{let o=r.get(t);p&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,r.set(t,o)})(n,t,!!(1&e.u)),o()}}}const l=n.T,c=()=>bt(n,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()}catch(e){s(e,t),n.M&&(n.M(),n.M=void 0),n.F&&n.F(t)}})(t,n,o)}l()}})(this))))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.u)){const n=e(t);(null==n?void 0:n.Z)&&(n.Z.map((t=>t())),n.Z=void 0),(null==n?void 0:n.i)?Lt(n.i,t):(null==n?void 0:n.Y)&&n.Y.then((()=>Lt(n.i,t)))}x.has(t)&&x.delete(t),t.shadowRoot&&x.has(t.shadowRoot)&&x.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const n=e(this);if(!n)return;const o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.D)?void 0:t.k)instanceof Node&&!n.D.k.isConnected&&delete n.D.k}))}componentOnReady(){var t;return null==(t=e(this))?void 0:t.Y}};v.G=t[0],u.includes(h)||d.get(h)||(l.push(h),d.define(h,Mt(m,v,1)))}))})),l.length>0&&(w&&(m.textContent+=c),m.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(o=a.P)?o:M(f.document);null!=t&&m.setAttribute("nonce",t),v.insertBefore(m,h?h.nextSibling:v.firstChild)}$=!1,y.length?y.map((t=>t.connectedCallback())):a.jmp((()=>b=setTimeout(kt,30)))},xt=(t,n,e)=>{e&&f.document&&e.map((([e,o,l])=>{const s=Pt(f.document,t,e),i=At(n,l),r=Dt(e);a.ael(s,o,i,r),(n.Z=n.Z||[]).push((()=>a.rel(s,o,i,r)))}))},At=(t,n)=>e=>{var o;try{256&t.u?null==(o=t.i)||o[n](e):(t.R=t.R||[]).push([n,e])}catch(n){s(n,t.$hostElement$)}},Pt=(t,n,e)=>4&e?t:n,Dt=t=>({passive:!!(1&t),capture:!!(2&t)}),Ft=t=>a.P=t;export{H,Rt as b,z as c,W as g,D as h,d as p,o as r,Ft as s}
|
|
@@ -3,9 +3,11 @@ export declare class FkCodeEditor {
|
|
|
3
3
|
host: HTMLElement;
|
|
4
4
|
value: string;
|
|
5
5
|
placeholder: string;
|
|
6
|
+
completions: string[];
|
|
6
7
|
codeChange: EventEmitter<string>;
|
|
7
8
|
private view?;
|
|
8
|
-
|
|
9
|
+
private disconnected;
|
|
10
|
+
componentDidLoad(): Promise<void>;
|
|
9
11
|
syncValue(next: string): void;
|
|
10
12
|
private emitIfChanged;
|
|
11
13
|
disconnectedCallback(): void;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import type { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import type { UploadedFile } from '@streamline-pulse/formkrafter-core';
|
|
3
3
|
export declare class FkFileInput {
|
|
4
|
-
value?: UploadedFile;
|
|
4
|
+
value?: UploadedFile | UploadedFile[];
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
accept?: string;
|
|
7
7
|
uploadUrl?: string;
|
|
8
|
-
|
|
8
|
+
multiple: boolean;
|
|
9
|
+
fileValueChange: EventEmitter<UploadedFile | UploadedFile[] | undefined>;
|
|
9
10
|
uploading: boolean;
|
|
10
|
-
|
|
11
|
+
removingUrl?: string;
|
|
11
12
|
uploadError?: string;
|
|
12
13
|
private inputEl?;
|
|
14
|
+
private get files();
|
|
15
|
+
private emitFiles;
|
|
13
16
|
private formatSize;
|
|
14
17
|
private handleFile;
|
|
15
18
|
private handleRemove;
|
|
19
|
+
private renderFile;
|
|
16
20
|
render(): any;
|
|
17
21
|
}
|
|
@@ -12,8 +12,14 @@ export declare class FkFormRender {
|
|
|
12
12
|
formSubmit: EventEmitter<DataChangeDetail>;
|
|
13
13
|
currentData: Record<string, unknown>;
|
|
14
14
|
touched: Record<string, boolean>;
|
|
15
|
-
|
|
15
|
+
expandedSpec?: BrickSpec;
|
|
16
|
+
expanding: boolean;
|
|
17
|
+
expandError?: string;
|
|
18
|
+
componentWillLoad(): Promise<void>;
|
|
16
19
|
syncData(next?: Record<string, unknown>): void;
|
|
20
|
+
onSpecChange(): void;
|
|
21
|
+
private effectiveSpec;
|
|
22
|
+
private runExpansion;
|
|
17
23
|
private publicData;
|
|
18
24
|
handleBrickDataChange(event: CustomEvent<Record<string, unknown>>): void;
|
|
19
25
|
private applyValueEffects;
|
|
@@ -5,10 +5,14 @@ export declare class FkSelectInput {
|
|
|
5
5
|
value?: string | string[];
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
multiple: boolean;
|
|
8
|
+
invalid: boolean;
|
|
8
9
|
dataMap?: Record<string, unknown>;
|
|
9
10
|
selectValueChange: EventEmitter<string | string[] | undefined>;
|
|
10
11
|
open: boolean;
|
|
11
12
|
query: string;
|
|
13
|
+
activeIndex: number;
|
|
14
|
+
private instanceId;
|
|
15
|
+
private triggerEl?;
|
|
12
16
|
private lastRemoteSignature?;
|
|
13
17
|
private searchTimer?;
|
|
14
18
|
remoteOptions: unknown[];
|
|
@@ -23,7 +27,12 @@ export declare class FkSelectInput {
|
|
|
23
27
|
private bindOutsideClick;
|
|
24
28
|
private unbindOutsideClick;
|
|
25
29
|
private toggleOpen;
|
|
30
|
+
private openDropdown;
|
|
26
31
|
private close;
|
|
32
|
+
private moveActive;
|
|
33
|
+
private scrollActiveIntoView;
|
|
34
|
+
private onTriggerKeyDown;
|
|
35
|
+
private onSearchKeyDown;
|
|
27
36
|
private source;
|
|
28
37
|
private resolveRemote;
|
|
29
38
|
private onSearchInput;
|
|
@@ -46,6 +46,10 @@ export namespace Components {
|
|
|
46
46
|
"utils": Utils;
|
|
47
47
|
}
|
|
48
48
|
interface FkCodeEditor {
|
|
49
|
+
/**
|
|
50
|
+
* @default []
|
|
51
|
+
*/
|
|
52
|
+
"completions": string[];
|
|
49
53
|
/**
|
|
50
54
|
* @default ''
|
|
51
55
|
*/
|
|
@@ -67,6 +71,10 @@ export namespace Components {
|
|
|
67
71
|
"value"?: unknown;
|
|
68
72
|
}
|
|
69
73
|
interface FkDropArea {
|
|
74
|
+
/**
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
"empty": boolean;
|
|
70
78
|
"path": string;
|
|
71
79
|
}
|
|
72
80
|
interface FkEmptyForm {
|
|
@@ -77,8 +85,12 @@ export namespace Components {
|
|
|
77
85
|
* @default false
|
|
78
86
|
*/
|
|
79
87
|
"disabled": boolean;
|
|
88
|
+
/**
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
"multiple": boolean;
|
|
80
92
|
"uploadUrl"?: string;
|
|
81
|
-
"value"?: UploadedFile;
|
|
93
|
+
"value"?: UploadedFile | UploadedFile[];
|
|
82
94
|
}
|
|
83
95
|
interface FkFormBuilder {
|
|
84
96
|
"data"?: Record<string, unknown>;
|
|
@@ -125,6 +137,10 @@ export namespace Components {
|
|
|
125
137
|
* @default false
|
|
126
138
|
*/
|
|
127
139
|
"disabled": boolean;
|
|
140
|
+
/**
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
"invalid": boolean;
|
|
128
144
|
/**
|
|
129
145
|
* @default false
|
|
130
146
|
*/
|
|
@@ -341,7 +357,7 @@ declare global {
|
|
|
341
357
|
new (): HTMLFkEmptyFormElement;
|
|
342
358
|
};
|
|
343
359
|
interface HTMLFkFileInputElementEventMap {
|
|
344
|
-
"fileValueChange": UploadedFile | undefined;
|
|
360
|
+
"fileValueChange": UploadedFile | UploadedFile[] | undefined;
|
|
345
361
|
}
|
|
346
362
|
interface HTMLFkFileInputElement extends Components.FkFileInput, HTMLStencilElement {
|
|
347
363
|
addEventListener<K extends keyof HTMLFkFileInputElementEventMap>(type: K, listener: (this: HTMLFkFileInputElement, ev: FkFileInputCustomEvent<HTMLFkFileInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -568,6 +584,10 @@ declare namespace LocalJSX {
|
|
|
568
584
|
"utils": Utils;
|
|
569
585
|
}
|
|
570
586
|
interface FkCodeEditor {
|
|
587
|
+
/**
|
|
588
|
+
* @default []
|
|
589
|
+
*/
|
|
590
|
+
"completions"?: string[];
|
|
571
591
|
"onCodeChange"?: (event: FkCodeEditorCustomEvent<string>) => void;
|
|
572
592
|
/**
|
|
573
593
|
* @default ''
|
|
@@ -590,6 +610,10 @@ declare namespace LocalJSX {
|
|
|
590
610
|
"value"?: unknown;
|
|
591
611
|
}
|
|
592
612
|
interface FkDropArea {
|
|
613
|
+
/**
|
|
614
|
+
* @default false
|
|
615
|
+
*/
|
|
616
|
+
"empty"?: boolean;
|
|
593
617
|
"onBrickDrop"?: (event: FkDropAreaCustomEvent<BrickDropDetail>) => void;
|
|
594
618
|
"path": string;
|
|
595
619
|
}
|
|
@@ -601,9 +625,13 @@ declare namespace LocalJSX {
|
|
|
601
625
|
* @default false
|
|
602
626
|
*/
|
|
603
627
|
"disabled"?: boolean;
|
|
604
|
-
|
|
628
|
+
/**
|
|
629
|
+
* @default false
|
|
630
|
+
*/
|
|
631
|
+
"multiple"?: boolean;
|
|
632
|
+
"onFileValueChange"?: (event: FkFileInputCustomEvent<UploadedFile | UploadedFile[] | undefined>) => void;
|
|
605
633
|
"uploadUrl"?: string;
|
|
606
|
-
"value"?: UploadedFile;
|
|
634
|
+
"value"?: UploadedFile | UploadedFile[];
|
|
607
635
|
}
|
|
608
636
|
interface FkFormBuilder {
|
|
609
637
|
"data"?: Record<string, unknown>;
|
|
@@ -656,6 +684,10 @@ declare namespace LocalJSX {
|
|
|
656
684
|
* @default false
|
|
657
685
|
*/
|
|
658
686
|
"disabled"?: boolean;
|
|
687
|
+
/**
|
|
688
|
+
* @default false
|
|
689
|
+
*/
|
|
690
|
+
"invalid"?: boolean;
|
|
659
691
|
/**
|
|
660
692
|
* @default false
|
|
661
693
|
*/
|
|
@@ -721,11 +753,13 @@ declare namespace LocalJSX {
|
|
|
721
753
|
}
|
|
722
754
|
interface FkDropAreaAttributes {
|
|
723
755
|
"path": string;
|
|
756
|
+
"empty": boolean;
|
|
724
757
|
}
|
|
725
758
|
interface FkFileInputAttributes {
|
|
726
759
|
"disabled": boolean;
|
|
727
760
|
"accept": string;
|
|
728
761
|
"uploadUrl": string;
|
|
762
|
+
"multiple": boolean;
|
|
729
763
|
}
|
|
730
764
|
interface FkFormRenderAttributes {
|
|
731
765
|
"editable": boolean;
|
|
@@ -739,6 +773,7 @@ declare namespace LocalJSX {
|
|
|
739
773
|
"value": string | string[];
|
|
740
774
|
"disabled": boolean;
|
|
741
775
|
"multiple": boolean;
|
|
776
|
+
"invalid": boolean;
|
|
742
777
|
}
|
|
743
778
|
interface FkSignatureInputAttributes {
|
|
744
779
|
"value": string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { registerBrick, registerBricks, getBrick, getBrickMolds, getBrickMoldsGr
|
|
|
5
5
|
export type { AnyBrick } from './registry/registry';
|
|
6
6
|
export { createBrick } from './registry/create-brick';
|
|
7
7
|
export type { WcBrickConfigs, WcBrickProps, BrickRenderFn } from './registry/create-brick';
|
|
8
|
-
export { registerDefaultBricks, textInputBrick, emailBrick, passwordBrick, urlBrick, phoneBrick, textareaBrick, numberBrick, dateBrick, timeBrick, datetimeBrick, selectBrick, multiSelectBrick, radioBrick, selectBoxesBrick, checkboxBrick, tagsBrick, signatureBrick, addressBrick, fileBrick, dataGridBrick, hiddenBrick, contentBrick, recapBrick, groupBrick, rowBrick, columnBrick, stepperBrick, tabsBrick, } from './registry/default-bricks';
|
|
8
|
+
export { registerDefaultBricks, textInputBrick, emailBrick, passwordBrick, urlBrick, phoneBrick, textareaBrick, numberBrick, dateBrick, timeBrick, datetimeBrick, selectBrick, multiSelectBrick, radioBrick, selectBoxesBrick, checkboxBrick, tagsBrick, signatureBrick, addressBrick, codeBrick, fileBrick, dataGridBrick, hiddenBrick, contentBrick, recapBrick, nestedFormBrick, groupBrick, rowBrick, columnBrick, stepperBrick, tabsBrick, } from './registry/default-bricks';
|
|
9
9
|
export type { BrickDropDetail, BrickConfigsChangeDetail, BrickStylesChangeDetail, BrickValidationsChangeDetail, BrickRulesChangeDetail, BrickPathDetail, SpecChangeDetail, DataChangeDetail, } from './utils/events';
|
|
10
10
|
export { setFkTranslations, fkT, fkTOr, frFkTranslations } from './i18n/i18n';
|
|
11
11
|
export type { FkTranslations } from './i18n/i18n';
|
|
@@ -505,4 +505,40 @@ export declare const recapBrick: {
|
|
|
505
505
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
506
506
|
getBrickEmptySpec(): BrickSpec;
|
|
507
507
|
};
|
|
508
|
+
export declare const codeBrick: {
|
|
509
|
+
render(props: WcBrickProps): VNode;
|
|
510
|
+
renderBuilder(props: WcBrickProps): VNode;
|
|
511
|
+
getComponent(props: WcBrickProps): VNode;
|
|
512
|
+
getComponentWithActions(props: WcBrickProps): VNode;
|
|
513
|
+
readonly type: import("@streamline-pulse/formkrafter-core").BrickType;
|
|
514
|
+
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
515
|
+
readonly id: string;
|
|
516
|
+
readonly name: string;
|
|
517
|
+
readonly configsForm?: BrickSpec;
|
|
518
|
+
readonly category?: string;
|
|
519
|
+
readonly styles?: Record<string, unknown>;
|
|
520
|
+
readonly unWrapData: boolean;
|
|
521
|
+
readonly isPrivate: boolean;
|
|
522
|
+
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
523
|
+
readonly defaultConfigs?: Record<string, unknown>;
|
|
524
|
+
getBrickEmptySpec(): BrickSpec;
|
|
525
|
+
};
|
|
526
|
+
export declare const nestedFormBrick: {
|
|
527
|
+
render(props: WcBrickProps): VNode;
|
|
528
|
+
renderBuilder(props: WcBrickProps): VNode;
|
|
529
|
+
getComponent(props: WcBrickProps): VNode;
|
|
530
|
+
getComponentWithActions(props: WcBrickProps): VNode;
|
|
531
|
+
readonly type: import("@streamline-pulse/formkrafter-core").BrickType;
|
|
532
|
+
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
533
|
+
readonly id: string;
|
|
534
|
+
readonly name: string;
|
|
535
|
+
readonly configsForm?: BrickSpec;
|
|
536
|
+
readonly category?: string;
|
|
537
|
+
readonly styles?: Record<string, unknown>;
|
|
538
|
+
readonly unWrapData: boolean;
|
|
539
|
+
readonly isPrivate: boolean;
|
|
540
|
+
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
541
|
+
readonly defaultConfigs?: Record<string, unknown>;
|
|
542
|
+
getBrickEmptySpec(): BrickSpec;
|
|
543
|
+
};
|
|
508
544
|
export declare function registerDefaultBricks(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const applyMask: (raw: string, mask?: string) => string;
|
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamline-pulse/formkrafter-wc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "FormKrafter web components (Stencil)",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"module": "dist/index.js",
|
|
5
|
+
"main": "dist/components/index.js",
|
|
6
|
+
"module": "dist/components/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
|
-
"collection": "dist/collection/collection-manifest.json",
|
|
9
|
-
"collection:main": "dist/collection/index.js",
|
|
10
8
|
"unpkg": "dist/formkrafter-wc/formkrafter-wc.esm.js",
|
|
11
9
|
"exports": {
|
|
12
10
|
".": {
|
|
13
11
|
"types": "./dist/types/index.d.ts",
|
|
14
|
-
"import": "./dist/components/index.js"
|
|
15
|
-
"require": "./dist/index.cjs.js"
|
|
12
|
+
"import": "./dist/components/index.js"
|
|
16
13
|
},
|
|
17
14
|
"./styles.css": "./dist/formkrafter-wc/formkrafter-wc.css",
|
|
18
15
|
"./dist/components": {
|
|
@@ -30,11 +27,6 @@
|
|
|
30
27
|
"./components/*": {
|
|
31
28
|
"import": "./dist/components/*.js",
|
|
32
29
|
"types": "./dist/components/*.d.ts"
|
|
33
|
-
},
|
|
34
|
-
"./loader": {
|
|
35
|
-
"import": "./loader/index.js",
|
|
36
|
-
"require": "./loader/index.cjs.js",
|
|
37
|
-
"types": "./loader/index.d.ts"
|
|
38
30
|
}
|
|
39
31
|
},
|
|
40
32
|
"license": "MIT",
|
|
@@ -47,8 +39,9 @@
|
|
|
47
39
|
"formkrafter"
|
|
48
40
|
],
|
|
49
41
|
"files": [
|
|
50
|
-
"dist/",
|
|
51
|
-
"
|
|
42
|
+
"dist/components/",
|
|
43
|
+
"dist/formkrafter-wc/",
|
|
44
|
+
"dist/types/",
|
|
52
45
|
"LICENSE"
|
|
53
46
|
],
|
|
54
47
|
"scripts": {
|
|
@@ -60,12 +53,14 @@
|
|
|
60
53
|
},
|
|
61
54
|
"dependencies": {
|
|
62
55
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.1",
|
|
56
|
+
"@codemirror/autocomplete": "^6.20.3",
|
|
63
57
|
"@codemirror/commands": "^6.10.4",
|
|
64
58
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
65
59
|
"@codemirror/language": "^6.12.4",
|
|
66
60
|
"@codemirror/state": "^6.7.1",
|
|
61
|
+
"@codemirror/theme-one-dark": "^6.1.3",
|
|
67
62
|
"@codemirror/view": "^6.43.6",
|
|
68
|
-
"@streamline-pulse/formkrafter-core": "0.
|
|
63
|
+
"@streamline-pulse/formkrafter-core": "0.4.0"
|
|
69
64
|
},
|
|
70
65
|
"devDependencies": {
|
|
71
66
|
"@stencil/core": "^4.43.5",
|