@htmlbricks/hb-form-composer 0.18.5 → 0.18.7
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/package.json +3 -3
- package/release/manifest.json +1 -1
- package/release/release.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-form-composer",
|
|
3
3
|
"displayName": "Svelte-Bootstrap form-composer",
|
|
4
4
|
"description": "Svelte-Bootstrap form-composer",
|
|
5
|
-
"version": "0.18.
|
|
5
|
+
"version": "0.18.7",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"webcomponents"
|
|
76
76
|
],
|
|
77
77
|
"contributors": [],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "b3a95cf947070d7ea73f112e4cd02f8728a9724f",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@htmlbricks/hb-form": "^0.18.
|
|
80
|
+
"@htmlbricks/hb-form": "^0.18.7",
|
|
81
81
|
"style-to-object": "^0.3.0"
|
|
82
82
|
}
|
|
83
83
|
}
|
package/release/manifest.json
CHANGED
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function o(e){e.forEach(t)}function l(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function r(e,t,n){e.insertBefore(t,n||null)}function s(e){e.parentNode.removeChild(e)}function c(e){return document.createElement(e)}function d(e){return document.createTextNode(e)}function u(){return d(" ")}function p(){return d("")}function f(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function h(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:function(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}(e,t,n)}function b(e,t,n,o){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,o?"important":"")}function m(e){const t={};for(const n of e)t[n.name]=n.value;return t}let g;function y(e){g=e}function v(){if(!g)throw new Error("Function called outside component initialization");return g}function $(){const e=v();return(t,n,{cancelable:o=!1}={})=>{const l=e.$$.callbacks[t];if(l){const i=function(e,t,{bubbles:n=!1,cancelable:o=!1}={}){const l=document.createEvent("CustomEvent");return l.initCustomEvent(e,n,o,t),l}(t,n,{cancelable:o});return l.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const L=[],x=[],V=[],O=[],w=Promise.resolve();let E=!1;function _(e){V.push(e)}const k=new Set;let C=0;function T(){const e=g;do{for(;C<L.length;){const e=L[C];C++,y(e),N(e.$$)}for(y(null),L.length=0,C=0;x.length;)x.pop()();for(let e=0;e<V.length;e+=1){const t=V[e];k.has(t)||(k.add(t),t())}V.length=0}while(L.length);for(;O.length;)O.pop()();E=!1,k.clear(),y(e)}function N(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(_)}}const S=new Set;function M(e,t){e&&e.i&&(S.delete(e),e.i(t))}function A(e,t){e.d(1),t.delete(e.key)}function D(e,t,n,o,l,i,a,r,s,c,d,u){let p=e.length,f=i.length,h=p;const b={};for(;h--;)b[e[h].key]=h;const m=[],g=new Map,y=new Map;for(h=f;h--;){const e=u(l,i,h),r=n(e);let s=a.get(r);s?o&&s.p(e,t):(s=c(r,e),s.c()),g.set(r,m[h]=s),r in b&&y.set(r,Math.abs(h-b[r]))}const v=new Set,$=new Set;function L(e){M(e,1),e.m(r,d),a.set(e.key,e),d=e.first,f--}for(;p&&f;){const t=m[f-1],n=e[p-1],o=t.key,l=n.key;t===n?(d=t.first,p--,f--):g.has(l)?!a.has(o)||v.has(o)?L(t):$.has(l)?p--:y.get(o)>y.get(l)?($.add(o),L(t)):(v.add(l),p--):(s(n,a),p--)}for(;p--;){const t=e[p];g.has(t.key)||s(t,a)}for(;f;)L(m[f-1]);return m}function q(e,t){-1===e.$$.dirty[0]&&(L.push(e),E||(E=!0,w.then(T)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function P(i,a,r,c,d,u,p,f=[-1]){const h=g;y(i);const b=i.$$={fragment:null,ctx:null,props:u,update:e,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(h?h.$$.context:[])),callbacks:n(),dirty:f,skip_bound:!1,root:a.target||h.$$.root};p&&p(b.root);let m=!1;if(b.ctx=r?r(i,a.props||{},((e,t,...n)=>{const o=n.length?n[0]:t;return b.ctx&&d(b.ctx[e],b.ctx[e]=o)&&(!b.skip_bound&&b.bound[e]&&b.bound[e](o),m&&q(i,e)),t})):[],b.update(),m=!0,o(b.before_update),b.fragment=!!c&&c(b.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);b.fragment&&b.fragment.l(e),e.forEach(s)}else b.fragment&&b.fragment.c();a.intro&&M(i.$$.fragment),function(e,n,i,a){const{fragment:r,on_mount:s,on_destroy:c,after_update:d}=e.$$;r&&r.m(n,i),a||_((()=>{const n=s.map(t).filter(l);c?c.push(...n):o(n),e.$$.on_mount=[]})),d.forEach(_)}(i,a.target,a.anchor,a.customElement),T()}y(h)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(l);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var I="0.18.5",R=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,B=/\n/g,J=/^\s*/,F=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,H=/^:\s*/,W=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,z=/^[;\s]*/,K=/^\s+|\s+$/g,G="";function Q(e){return e?e.replace(K,G):G}var U=function(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var l,i,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,o=1;function l(e){var t=e.match(B);t&&(n+=t.length);var l=e.lastIndexOf("\n");o=~l?e.length-l:o+e.length}function i(){var e={line:n,column:o};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:o},this.source=t.source}function r(l){var i=new Error(t.source+":"+n+":"+o+": "+l);if(i.reason=l,i.filename=t.source,i.line=n,i.column=o,i.source=e,!t.silent)throw i}function s(t){var n=t.exec(e);if(n){var o=n[0];return l(o),e=e.slice(o.length),n}}function c(){s(J)}function d(e){var t;for(e=e||[];t=u();)!1!==t&&e.push(t);return e}function u(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;G!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,G===e.charAt(n-1))return r("End of comment missing");var a=e.slice(2,n-2);return o+=2,l(a),e=e.slice(n),o+=2,t({type:"comment",comment:a})}}function p(){var e=i(),t=s(F);if(t){if(u(),!s(H))return r("property missing ':'");var n=s(W),o=e({type:"declaration",property:Q(t[0].replace(R,G)),value:n?Q(n[0].replace(R,G)):G});return s(z),o}}return a.prototype.content=e,c(),function(){var e,t=[];for(d(t);e=p();)!1!==e&&(t.push(e),d(t));return t}()}(e),r="function"==typeof t,s=0,c=a.length;s<c;s++)l=(n=a[s]).property,i=n.value,r?t(l,i,n):i&&(o||(o={}),o[l]=i);return o};var X,Y=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,o,l="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(o=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===o?void 0:o.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(l+="".concat(n,":").concat(e[n],";"))},a=0,r=Object.keys(e);a<r.length;a++)i(r[a]);return l},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var o=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var l=document.createElement("script");l.id=n+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(o),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(l.src="".concat(e.local)),document.head.appendChild(l)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,o){return e.formatDate(t,n,o||this.lang)},e.getDefaultLang=function(){var e,t,n,o,l,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(l=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===l?void 0:l.toLowerCase()),i},e.getDictionaryWord=function(t,n,o){var l;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(l=n[o])||void 0===l?void 0:l[t]))return n[o][t];var i="",a=e.getDefaultLang();if(!o||a!==o){var r=null==n?void 0:n[a];(null==r?void 0:r[t])&&(i=r[t])}return i},e.formatDate=function(t,n,o){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(X={exports:{}},X.exports),X.exports),Z={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}],parts:[{name:"invalid-feedback",description:""},{name:"main_button",description:""},{name:"button_container",description:""}]};function ee(e,t,n){const o=e.slice();return o[19]=t[n],o}function te(e,t,n){const o=e.slice();return o[22]=t[n],o}function ne(e,t){let n,o,l,i,u,p,h=t[22].label+"";function b(){return t[10](t[22])}return{key:e,first:null,c(){n=c("div"),o=d(h),l=d(" added\n\n\t\t"),i=c("button"),i.textContent="remove",this.first=n},m(e,t){r(e,n,t),a(n,o),a(n,l),a(n,i),u||(p=f(i,"click",b),u=!0)},p(e,n){t=e,4&n&&h!==(h=t[22].label+"")&&function(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}(o,h)},d(e){e&&s(n),u=!1,p()}}}function oe(e){let t,n,l,i;return{c(){t=c("hb-form"),h(t,"id","schema"),h(t,"schema",n=e[19].schema)},m(n,o){r(n,t,o),l||(i=[f(t,"submit",e[11]),f(t,"change",e[12])],l=!0)},p(e,o){2&o&&n!==(n=e[19].schema)&&h(t,"schema",n)},d(e){e&&s(t),l=!1,o(i)}}}function le(e,t){let n,o,l=t[19].counter===t[1].length-1&&oe(t);return{key:e,first:null,c(){n=p(),l&&l.c(),o=p(),this.first=n},m(e,t){r(e,n,t),l&&l.m(e,t),r(e,o,t)},p(e,n){(t=e)[19].counter===t[1].length-1?l?l.p(t,n):(l=oe(t),l.c(),l.m(o.parentNode,o)):l&&(l.d(1),l=null)},d(e){e&&s(n),l&&l.d(e),e&&s(o)}}}function ie(e){let t,n,o;function l(e,t){return e[2]?.length?re:ae}let i=l(e),a=i(e);return{c(){t=c("h2"),t.textContent="output",n=u(),a.c(),o=p(),b(t,"margin","60px"),b(t,"text-align","center"),b(t,"color","blue")},m(e,l){r(e,t,l),r(e,n,l),a.m(e,l),r(e,o,l)},p(e,t){i===(i=l(e))&&a?a.p(e,t):(a.d(1),a=i(e),a&&(a.c(),a.m(o.parentNode,o)))},d(e){e&&s(t),e&&s(n),a.d(e),e&&s(o)}}}function ae(t){let n;return{c(){n=d("...no output")},m(e,t){r(e,n,t)},p:e,d(e){e&&s(n)}}}function re(e){let t,n;return{c(){t=c("hb-form"),h(t,"schema",n=JSON.stringify(e[2])),h(t,"style",e[3])},m(e,n){r(e,t,n)},p(e,o){4&o&&n!==(n=JSON.stringify(e[2]))&&h(t,"schema",n),8&o&&h(t,"style",e[3])},d(e){e&&s(t)}}}function se(t){let n,o,l,i,a,f,h,b,m=[],g=new Map,y=[],v=new Map,$=t[2];const L=e=>e[22].id;for(let e=0;e<$.length;e+=1){let n=te(t,$,e),o=L(n);g.set(o,m[e]=ne(o,n))}let x=t[1];const V=e=>e[19].counter;for(let e=0;e<x.length;e+=1){let n=ee(t,x,e),o=V(n);v.set(o,y[e]=le(o,n))}let O=t[0]&&ie(t);return{c(){n=d("TO BE DONE\n"),o=c("br"),l=u(),i=c("br"),a=u();for(let e=0;e<m.length;e+=1)m[e].c();f=u();for(let e=0;e<y.length;e+=1)y[e].c();h=u(),O&&O.c(),b=p(),this.c=e},m(e,t){r(e,n,t),r(e,o,t),r(e,l,t),r(e,i,t),r(e,a,t);for(let n=0;n<m.length;n+=1)m[n].m(e,t);r(e,f,t);for(let n=0;n<y.length;n+=1)y[n].m(e,t);r(e,h,t),O&&O.m(e,t),r(e,b,t)},p(e,[t]){36&t&&($=e[2],m=D(m,t,L,1,e,$,g,f.parentNode,A,ne,f,te)),18&t&&(x=e[1],y=D(y,t,V,1,e,x,v,h.parentNode,A,le,h,ee)),e[0]?O?O.p(e,t):(O=ie(e),O.c(),O.m(b.parentNode,b)):O&&(O.d(1),O=null)},i:e,o:e,d(e){e&&s(n),e&&s(o),e&&s(l),e&&s(i),e&&s(a);for(let t=0;t<m.length;t+=1)m[t].d(e);e&&s(f);for(let t=0;t<y.length;t+=1)y[t].d(e);e&&s(h),O&&O.d(e),e&&s(b)}}}function ce(e,t,n){const o=v();$();let{id:l}=t,{style:i}=t,{debug:a}=t,r=[];const s=[{type:"text",placeholder:"Label...",id:"label",required:!0,label:"Property Label",validationTip:"This field cannot be empty."},{type:"select",placeholder:"Select something here...",id:"type",required:!0,label:"Selection of something",validationTip:"This field cannot be empty.",params:{options:[{label:"",value:""},{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"select",value:"select"},{label:"radio",value:"radio"}]}},{type:"checkbox",placeholder:"Required...",id:"required",label:"Is Required?"},{type:"checkbox",placeholder:"Conditional...",id:"conditional",label:"Is Conditional?"},{type:"number",placeholder:"Min Length...",id:"minLength",label:"Min Length",dependencies:[{id:"type",values:["text","textarea"]}]},{type:"number",placeholder:"Max Length...",id:"maxLength",label:"Max Length",dependencies:[{id:"type",values:["text","textarea"]}]},{type:"text",placeholder:"Option Label...",id:"optionLabel1",label:"Option Label",dependencies:[{id:"type",values:["select","radio"]}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues1",label:"Option Values",dependencies:[{id:"type",values:["select","radio"]}]},{type:"text",placeholder:"Option Label...",id:"optionLabel2",label:"Option Label",dependencies:[{id:"optionLabel1"},{id:"optionValues1"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues2",label:"Option Values",dependencies:[{id:"optionLabel1"},{id:"optionValues1"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel3",label:"Option Label",dependencies:[{id:"optionLabel2"},{id:"optionValues2"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues3",label:"Option Values",dependencies:[{id:"optionLabel2"},{id:"optionValues2"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel4",label:"Option Label",dependencies:[{id:"optionLabel3"},{id:"optionValues3"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues4",label:"Option Values",dependencies:[{id:"optionLabel3"},{id:"optionValues3"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel5",label:"Option Label",dependencies:[{id:"optionLabel4"},{id:"optionValues4"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues5",label:"Option Values",dependencies:[{id:"optionLabel4"},{id:"optionValues4"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel6",label:"Option Label",dependencies:[{id:"optionLabel5"},{id:"optionValues5"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues6",label:"Option Values",dependencies:[{id:"optionLabel5"},{id:"optionValues5"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel7",label:"Option Label",dependencies:[{id:"optionLabel6"},{id:"optionValues6"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues7",label:"Option Values",dependencies:[{id:"optionLabel6"},{id:"optionValues6"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel8",label:"Option Label",dependencies:[{id:"optionLabel7"},{id:"optionValues7"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues8",label:"Option Values",dependencies:[{id:"optionLabel7"},{id:"optionValues7"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel9",label:"Option Label",dependencies:[{id:"optionLabel8"},{id:"optionValues8"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues9",label:"Option Values",dependencies:[{id:"optionLabel8"},{id:"optionValues8"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel10",label:"Option Label",dependencies:[{id:"optionLabel9"},{id:"optionValues9"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues10",label:"Option Values",dependencies:[{id:"optionLabel9"},{id:"optionValues9"}]}];let c,d,u,p,f="";function h(e){console.log("addSchema",e);let t=!1;switch(e.type){case"textarea":case"number":case"text":r.find((t=>t.label===e.label))?n(2,r=r.map((t=>t.label===e.label?{id:t.id,type:e.type,label:e.label,required:e.required,placeholder:e.placeholder,params:e.params}:t))):n(2,r=[...r,{id:r.length.toString(),type:e.type,label:e.label,required:e.required,placeholder:e.placeholder,params:e.params}]),t=!0}t&&(n(1,c=[...c,{counter:c.length,schema:JSON.stringify(s)}]),console.info("schema4selectorS",c))}function b(e){n(2,r=r.filter((t=>t.id!==e))),n(1,c=c.filter((e=>e.counter!==c.length-1)))}!function(e){v().$$.on_mount.push(e)}((()=>{Y.addComponent({repoName:"@htmlbricks/hb-form",version:I}),u=o.shadowRoot.getElementById("schema"),console.log("formComponent",u)}));return e.$$set=e=>{"id"in e&&n(6,l=e.id),"style"in e&&n(7,i=e.style),"debug"in e&&n(0,a=e.debug)},e.$$.update=()=>{963&e.$$.dirty&&(l||n(6,l=""),i&&(n(8,d=U(i)),n(3,f=Y.getChildStyleToPass(d,null==Z?void 0:Z.vars))),n(0,a="string"==typeof a&&("true"===a||"yes"===a||""===a)),c||n(1,c=[{counter:0,schema:JSON.stringify(s)}]),p||n(9,p=[]))},[a,c,r,f,h,b,l,i,d,p,e=>{b(e.id)},e=>{h(e.detail)},e=>{return t=e.detail,console.log("changeItemSchema",t),void("type"===t._id&&("select"===t.type||t.value));var t}]}class de extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{font-family:"Roboto", sans-serif}</style>',P(this,{target:this.shadowRoot,props:m(this.attributes),customElement:!0},ce,se,i,{id:6,style:7,debug:0},null),e&&(e.target&&r(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["id","style","debug"]}get id(){return this.$$.ctx[6]}set id(e){this.$$set({id:e}),T()}get style(){return this.$$.ctx[7]}set style(e){this.$$set({style:e}),T()}get debug(){return this.$$.ctx[0]}set debug(e){this.$$set({debug:e}),T()}}return customElements.define("hb-form-composer",de),de}();
|
|
1
|
+
var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function o(e){e.forEach(t)}function l(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function r(e,t,n){e.insertBefore(t,n||null)}function s(e){e.parentNode.removeChild(e)}function c(e){return document.createElement(e)}function d(e){return document.createTextNode(e)}function u(){return d(" ")}function p(){return d("")}function f(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function h(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:function(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}(e,t,n)}function b(e,t,n,o){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,o?"important":"")}function m(e){const t={};for(const n of e)t[n.name]=n.value;return t}let g;function y(e){g=e}function v(){if(!g)throw new Error("Function called outside component initialization");return g}function $(){const e=v();return(t,n,{cancelable:o=!1}={})=>{const l=e.$$.callbacks[t];if(l){const i=function(e,t,{bubbles:n=!1,cancelable:o=!1}={}){const l=document.createEvent("CustomEvent");return l.initCustomEvent(e,n,o,t),l}(t,n,{cancelable:o});return l.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const L=[],x=[],V=[],O=[],w=Promise.resolve();let E=!1;function _(e){V.push(e)}const k=new Set;let C=0;function T(){const e=g;do{for(;C<L.length;){const e=L[C];C++,y(e),N(e.$$)}for(y(null),L.length=0,C=0;x.length;)x.pop()();for(let e=0;e<V.length;e+=1){const t=V[e];k.has(t)||(k.add(t),t())}V.length=0}while(L.length);for(;O.length;)O.pop()();E=!1,k.clear(),y(e)}function N(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(_)}}const S=new Set;function M(e,t){e&&e.i&&(S.delete(e),e.i(t))}function A(e,t){e.d(1),t.delete(e.key)}function D(e,t,n,o,l,i,a,r,s,c,d,u){let p=e.length,f=i.length,h=p;const b={};for(;h--;)b[e[h].key]=h;const m=[],g=new Map,y=new Map;for(h=f;h--;){const e=u(l,i,h),r=n(e);let s=a.get(r);s?o&&s.p(e,t):(s=c(r,e),s.c()),g.set(r,m[h]=s),r in b&&y.set(r,Math.abs(h-b[r]))}const v=new Set,$=new Set;function L(e){M(e,1),e.m(r,d),a.set(e.key,e),d=e.first,f--}for(;p&&f;){const t=m[f-1],n=e[p-1],o=t.key,l=n.key;t===n?(d=t.first,p--,f--):g.has(l)?!a.has(o)||v.has(o)?L(t):$.has(l)?p--:y.get(o)>y.get(l)?($.add(o),L(t)):(v.add(l),p--):(s(n,a),p--)}for(;p--;){const t=e[p];g.has(t.key)||s(t,a)}for(;f;)L(m[f-1]);return m}function q(e,t){-1===e.$$.dirty[0]&&(L.push(e),E||(E=!0,w.then(T)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function P(i,a,r,c,d,u,p,f=[-1]){const h=g;y(i);const b=i.$$={fragment:null,ctx:null,props:u,update:e,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(h?h.$$.context:[])),callbacks:n(),dirty:f,skip_bound:!1,root:a.target||h.$$.root};p&&p(b.root);let m=!1;if(b.ctx=r?r(i,a.props||{},((e,t,...n)=>{const o=n.length?n[0]:t;return b.ctx&&d(b.ctx[e],b.ctx[e]=o)&&(!b.skip_bound&&b.bound[e]&&b.bound[e](o),m&&q(i,e)),t})):[],b.update(),m=!0,o(b.before_update),b.fragment=!!c&&c(b.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);b.fragment&&b.fragment.l(e),e.forEach(s)}else b.fragment&&b.fragment.c();a.intro&&M(i.$$.fragment),function(e,n,i,a){const{fragment:r,on_mount:s,on_destroy:c,after_update:d}=e.$$;r&&r.m(n,i),a||_((()=>{const n=s.map(t).filter(l);c?c.push(...n):o(n),e.$$.on_mount=[]})),d.forEach(_)}(i,a.target,a.anchor,a.customElement),T()}y(h)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(l);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var I="0.18.7",R=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,B=/\n/g,J=/^\s*/,F=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,H=/^:\s*/,W=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,z=/^[;\s]*/,K=/^\s+|\s+$/g,G="";function Q(e){return e?e.replace(K,G):G}var U=function(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var l,i,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,o=1;function l(e){var t=e.match(B);t&&(n+=t.length);var l=e.lastIndexOf("\n");o=~l?e.length-l:o+e.length}function i(){var e={line:n,column:o};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:o},this.source=t.source}function r(l){var i=new Error(t.source+":"+n+":"+o+": "+l);if(i.reason=l,i.filename=t.source,i.line=n,i.column=o,i.source=e,!t.silent)throw i}function s(t){var n=t.exec(e);if(n){var o=n[0];return l(o),e=e.slice(o.length),n}}function c(){s(J)}function d(e){var t;for(e=e||[];t=u();)!1!==t&&e.push(t);return e}function u(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;G!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,G===e.charAt(n-1))return r("End of comment missing");var a=e.slice(2,n-2);return o+=2,l(a),e=e.slice(n),o+=2,t({type:"comment",comment:a})}}function p(){var e=i(),t=s(F);if(t){if(u(),!s(H))return r("property missing ':'");var n=s(W),o=e({type:"declaration",property:Q(t[0].replace(R,G)),value:n?Q(n[0].replace(R,G)):G});return s(z),o}}return a.prototype.content=e,c(),function(){var e,t=[];for(d(t);e=p();)!1!==e&&(t.push(e),d(t));return t}()}(e),r="function"==typeof t,s=0,c=a.length;s<c;s++)l=(n=a[s]).property,i=n.value,r?t(l,i,n):i&&(o||(o={}),o[l]=i);return o};var X,Y=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,o,l="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(o=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===o?void 0:o.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(l+="".concat(n,":").concat(e[n],";"))},a=0,r=Object.keys(e);a<r.length;a++)i(r[a]);return l},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var o=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var l=document.createElement("script");l.id=n+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(o),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(l.src="".concat(e.local)),document.head.appendChild(l)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,o){return e.formatDate(t,n,o||this.lang)},e.getDefaultLang=function(){var e,t,n,o,l,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(l=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===l?void 0:l.toLowerCase()),i},e.getDictionaryWord=function(t,n,o){var l;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(l=n[o])||void 0===l?void 0:l[t]))return n[o][t];var i="",a=e.getDefaultLang();if(!o||a!==o){var r=null==n?void 0:n[a];(null==r?void 0:r[t])&&(i=r[t])}return i},e.formatDate=function(t,n,o){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(X={exports:{}},X.exports),X.exports),Z={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}],parts:[{name:"invalid-feedback",description:""},{name:"main_button",description:""},{name:"button_container",description:""}]};function ee(e,t,n){const o=e.slice();return o[19]=t[n],o}function te(e,t,n){const o=e.slice();return o[22]=t[n],o}function ne(e,t){let n,o,l,i,u,p,h=t[22].label+"";function b(){return t[10](t[22])}return{key:e,first:null,c(){n=c("div"),o=d(h),l=d(" added\n\n\t\t"),i=c("button"),i.textContent="remove",this.first=n},m(e,t){r(e,n,t),a(n,o),a(n,l),a(n,i),u||(p=f(i,"click",b),u=!0)},p(e,n){t=e,4&n&&h!==(h=t[22].label+"")&&function(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}(o,h)},d(e){e&&s(n),u=!1,p()}}}function oe(e){let t,n,l,i;return{c(){t=c("hb-form"),h(t,"id","schema"),h(t,"schema",n=e[19].schema)},m(n,o){r(n,t,o),l||(i=[f(t,"submit",e[11]),f(t,"change",e[12])],l=!0)},p(e,o){2&o&&n!==(n=e[19].schema)&&h(t,"schema",n)},d(e){e&&s(t),l=!1,o(i)}}}function le(e,t){let n,o,l=t[19].counter===t[1].length-1&&oe(t);return{key:e,first:null,c(){n=p(),l&&l.c(),o=p(),this.first=n},m(e,t){r(e,n,t),l&&l.m(e,t),r(e,o,t)},p(e,n){(t=e)[19].counter===t[1].length-1?l?l.p(t,n):(l=oe(t),l.c(),l.m(o.parentNode,o)):l&&(l.d(1),l=null)},d(e){e&&s(n),l&&l.d(e),e&&s(o)}}}function ie(e){let t,n,o;function l(e,t){return e[2]?.length?re:ae}let i=l(e),a=i(e);return{c(){t=c("h2"),t.textContent="output",n=u(),a.c(),o=p(),b(t,"margin","60px"),b(t,"text-align","center"),b(t,"color","blue")},m(e,l){r(e,t,l),r(e,n,l),a.m(e,l),r(e,o,l)},p(e,t){i===(i=l(e))&&a?a.p(e,t):(a.d(1),a=i(e),a&&(a.c(),a.m(o.parentNode,o)))},d(e){e&&s(t),e&&s(n),a.d(e),e&&s(o)}}}function ae(t){let n;return{c(){n=d("...no output")},m(e,t){r(e,n,t)},p:e,d(e){e&&s(n)}}}function re(e){let t,n;return{c(){t=c("hb-form"),h(t,"schema",n=JSON.stringify(e[2])),h(t,"style",e[3])},m(e,n){r(e,t,n)},p(e,o){4&o&&n!==(n=JSON.stringify(e[2]))&&h(t,"schema",n),8&o&&h(t,"style",e[3])},d(e){e&&s(t)}}}function se(t){let n,o,l,i,a,f,h,b,m=[],g=new Map,y=[],v=new Map,$=t[2];const L=e=>e[22].id;for(let e=0;e<$.length;e+=1){let n=te(t,$,e),o=L(n);g.set(o,m[e]=ne(o,n))}let x=t[1];const V=e=>e[19].counter;for(let e=0;e<x.length;e+=1){let n=ee(t,x,e),o=V(n);v.set(o,y[e]=le(o,n))}let O=t[0]&&ie(t);return{c(){n=d("TO BE DONE\n"),o=c("br"),l=u(),i=c("br"),a=u();for(let e=0;e<m.length;e+=1)m[e].c();f=u();for(let e=0;e<y.length;e+=1)y[e].c();h=u(),O&&O.c(),b=p(),this.c=e},m(e,t){r(e,n,t),r(e,o,t),r(e,l,t),r(e,i,t),r(e,a,t);for(let n=0;n<m.length;n+=1)m[n].m(e,t);r(e,f,t);for(let n=0;n<y.length;n+=1)y[n].m(e,t);r(e,h,t),O&&O.m(e,t),r(e,b,t)},p(e,[t]){36&t&&($=e[2],m=D(m,t,L,1,e,$,g,f.parentNode,A,ne,f,te)),18&t&&(x=e[1],y=D(y,t,V,1,e,x,v,h.parentNode,A,le,h,ee)),e[0]?O?O.p(e,t):(O=ie(e),O.c(),O.m(b.parentNode,b)):O&&(O.d(1),O=null)},i:e,o:e,d(e){e&&s(n),e&&s(o),e&&s(l),e&&s(i),e&&s(a);for(let t=0;t<m.length;t+=1)m[t].d(e);e&&s(f);for(let t=0;t<y.length;t+=1)y[t].d(e);e&&s(h),O&&O.d(e),e&&s(b)}}}function ce(e,t,n){const o=v();$();let{id:l}=t,{style:i}=t,{debug:a}=t,r=[];const s=[{type:"text",placeholder:"Label...",id:"label",required:!0,label:"Property Label",validationTip:"This field cannot be empty."},{type:"select",placeholder:"Select something here...",id:"type",required:!0,label:"Selection of something",validationTip:"This field cannot be empty.",params:{options:[{label:"",value:""},{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"select",value:"select"},{label:"radio",value:"radio"}]}},{type:"checkbox",placeholder:"Required...",id:"required",label:"Is Required?"},{type:"checkbox",placeholder:"Conditional...",id:"conditional",label:"Is Conditional?"},{type:"number",placeholder:"Min Length...",id:"minLength",label:"Min Length",dependencies:[{id:"type",values:["text","textarea"]}]},{type:"number",placeholder:"Max Length...",id:"maxLength",label:"Max Length",dependencies:[{id:"type",values:["text","textarea"]}]},{type:"text",placeholder:"Option Label...",id:"optionLabel1",label:"Option Label",dependencies:[{id:"type",values:["select","radio"]}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues1",label:"Option Values",dependencies:[{id:"type",values:["select","radio"]}]},{type:"text",placeholder:"Option Label...",id:"optionLabel2",label:"Option Label",dependencies:[{id:"optionLabel1"},{id:"optionValues1"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues2",label:"Option Values",dependencies:[{id:"optionLabel1"},{id:"optionValues1"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel3",label:"Option Label",dependencies:[{id:"optionLabel2"},{id:"optionValues2"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues3",label:"Option Values",dependencies:[{id:"optionLabel2"},{id:"optionValues2"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel4",label:"Option Label",dependencies:[{id:"optionLabel3"},{id:"optionValues3"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues4",label:"Option Values",dependencies:[{id:"optionLabel3"},{id:"optionValues3"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel5",label:"Option Label",dependencies:[{id:"optionLabel4"},{id:"optionValues4"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues5",label:"Option Values",dependencies:[{id:"optionLabel4"},{id:"optionValues4"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel6",label:"Option Label",dependencies:[{id:"optionLabel5"},{id:"optionValues5"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues6",label:"Option Values",dependencies:[{id:"optionLabel5"},{id:"optionValues5"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel7",label:"Option Label",dependencies:[{id:"optionLabel6"},{id:"optionValues6"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues7",label:"Option Values",dependencies:[{id:"optionLabel6"},{id:"optionValues6"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel8",label:"Option Label",dependencies:[{id:"optionLabel7"},{id:"optionValues7"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues8",label:"Option Values",dependencies:[{id:"optionLabel7"},{id:"optionValues7"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel9",label:"Option Label",dependencies:[{id:"optionLabel8"},{id:"optionValues8"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues9",label:"Option Values",dependencies:[{id:"optionLabel8"},{id:"optionValues8"}]},{type:"text",placeholder:"Option Label...",id:"optionLabel10",label:"Option Label",dependencies:[{id:"optionLabel9"},{id:"optionValues9"}]},{type:"text",placeholder:"Option Values (separated by comma)...",id:"optionValues10",label:"Option Values",dependencies:[{id:"optionLabel9"},{id:"optionValues9"}]}];let c,d,u,p,f="";function h(e){console.log("addSchema",e);let t=!1;switch(e.type){case"textarea":case"number":case"text":r.find((t=>t.label===e.label))?n(2,r=r.map((t=>t.label===e.label?{id:t.id,type:e.type,label:e.label,required:e.required,placeholder:e.placeholder,params:e.params}:t))):n(2,r=[...r,{id:r.length.toString(),type:e.type,label:e.label,required:e.required,placeholder:e.placeholder,params:e.params}]),t=!0}t&&(n(1,c=[...c,{counter:c.length,schema:JSON.stringify(s)}]),console.info("schema4selectorS",c))}function b(e){n(2,r=r.filter((t=>t.id!==e))),n(1,c=c.filter((e=>e.counter!==c.length-1)))}!function(e){v().$$.on_mount.push(e)}((()=>{Y.addComponent({repoName:"@htmlbricks/hb-form",version:I}),u=o.shadowRoot.getElementById("schema"),console.log("formComponent",u)}));return e.$$set=e=>{"id"in e&&n(6,l=e.id),"style"in e&&n(7,i=e.style),"debug"in e&&n(0,a=e.debug)},e.$$.update=()=>{963&e.$$.dirty&&(l||n(6,l=""),i&&(n(8,d=U(i)),n(3,f=Y.getChildStyleToPass(d,null==Z?void 0:Z.vars))),n(0,a="string"==typeof a&&("true"===a||"yes"===a||""===a)),c||n(1,c=[{counter:0,schema:JSON.stringify(s)}]),p||n(9,p=[]))},[a,c,r,f,h,b,l,i,d,p,e=>{b(e.id)},e=>{h(e.detail)},e=>{return t=e.detail,console.log("changeItemSchema",t),void("type"===t._id&&("select"===t.type||t.value));var t}]}class de extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{font-family:"Roboto", sans-serif}</style>',P(this,{target:this.shadowRoot,props:m(this.attributes),customElement:!0},ce,se,i,{id:6,style:7,debug:0},null),e&&(e.target&&r(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["id","style","debug"]}get id(){return this.$$.ctx[6]}set id(e){this.$$set({id:e}),T()}get style(){return this.$$.ctx[7]}set style(e){this.$$set({style:e}),T()}get debug(){return this.$$.ctx[0]}set debug(e){this.$$set({debug:e}),T()}}return customElements.define("hb-form-composer",de),de}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|