web-component-wrapper 0.0.503 → 0.0.505
Sign up to get free protection for your applications and to get access to all the features.
- package/WebNext.js +1 -1
- package/package.json +11 -11
package/WebNext.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/dist/property-types"),require("@babel/runtime/helpers/extends"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper","clientnode","clientnode/dist/property-types","@babel/runtime/helpers/extends"],t);else{var r="object"==typeof exports?t(require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/dist/property-types"),require("@babel/runtime/helpers/extends")):t(e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"],e.clientnode,e["clientnode/dist/property-types"],e["@babel/runtime/helpers/extends"]);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,((__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__2__)=>(()=>{var __webpack_modules__=[e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__0__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__1__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__2__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__3__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__4__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__5__},,,,,,,,,function(module,__unused_webpack_exports,__webpack_require__){var __dirname="/",e,t,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(2),t=__webpack_require__(0),r=__webpack_require__(1),function(){var i=[function(t){t.exports=e},function(e){e.exports=t},function(e){e.exports=r}],s={};function n(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return i[e](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{property:function(){return c}});var _=n(0),a=n.n(_),l=n(1),p=n(2);function c(e){return void 0===e&&(e={}),e=a()({readAttribute:!0,type:p.string},e),function(t,r){if("string"==typeof r){var i,s=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(s,"observedAttributes")||(s.observedAttributes=s.observedAttributes?[].concat(s.observedAttributes):[]);var n=(0,l.camelCaseToDelimited)(r);s.observedAttributes&&!s.observedAttributes.includes(n)&&s.observedAttributes.push(n)}e.type&&(Object.prototype.hasOwnProperty.call(s,"propertyTypes")||(s.propertyTypes=s.propertyTypes?a()({},s.propertyTypes):{}),!s.propertyTypes||!e.update&&Object.prototype.hasOwnProperty.call(s,r)||(s.propertyTypes[r]=e.type)),e.writeAttribute&&(Object.prototype.hasOwnProperty.call(s,"propertiesToReflectAsAttributes")||(s.propertiesToReflectAsAttributes=s.propertiesToReflectAsAttributes?(0,l.copy)(s.propertiesToReflectAsAttributes):[]),(e.update||s.propertiesToReflectAsAttributes instanceof Map&&!s.propertiesToReflectAsAttributes.has(r)||Array.isArray(s.propertiesToReflectAsAttributes)&&!s.propertiesToReflectAsAttributes.includes(r)||"object"==typeof s.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(s.propertiesToReflectAsAttributes,r))&&("boolean"==typeof e.writeAttribute?e.writeAttribute&&s.propertyTypes&&Object.prototype.hasOwnProperty.call(s.propertyTypes,r)&&(i=s.propertyTypes[r]):i=e.writeAttribute,void 0!==i&&(Array.isArray(s.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?s.propertiesToReflectAsAttributes.push(r):s.normalizePropertyTypeList&&(s.propertiesToReflectAsAttributes=s.normalizePropertyTypeList(s.propertiesToReflectAsAttributes))),s.propertiesToReflectAsAttributes instanceof Map&&s.propertiesToReflectAsAttributes.set(r,i),"object"==typeof s.propertiesToReflectAsAttributes&&(s.propertiesToReflectAsAttributes[r]=i)))),e.alias&&(Object.prototype.hasOwnProperty.call(s,"propertyAliases")||(s.propertyAliases=s.propertyAliases?a()({},s.propertyAliases):{}),!s.propertyAliases||!e.update&&Object.prototype.hasOwnProperty.call(s,r)||(s.propertyAliases[r]=e.alias))}}}return o.default=c,o}())}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{GenericHTMLElement:()=>Web_GenericHTMLElement,Web:()=>Web_Web_0,api:()=>Web_api,default:()=>Web_0});var Web_babel_runtime_helpers_initializerDefineProperty_WEBPACK_IMPORTED_MODULE_0_=__webpack_require__(3),Web_babel_runtime_helpers_initializerDefineProperty_WEBPACK_IMPORTED_MODULE_0_default=__webpack_require__.n(Web_babel_runtime_helpers_initializerDefineProperty_WEBPACK_IMPORTED_MODULE_0_),Web_babel_runtime_helpers_applyDecoratedDescriptor_WEBPACK_IMPORTED_MODULE_1_=__webpack_require__(4),Web_babel_runtime_helpers_applyDecoratedDescriptor_WEBPACK_IMPORTED_MODULE_1_default=__webpack_require__.n(Web_babel_runtime_helpers_applyDecoratedDescriptor_WEBPACK_IMPORTED_MODULE_1_),Web_babel_runtime_helpers_initializerWarningHelper_WEBPACK_IMPORTED_MODULE_2_=__webpack_require__(5),Web_babel_runtime_helpers_initializerWarningHelper_WEBPACK_IMPORTED_MODULE_2_default=__webpack_require__.n(Web_babel_runtime_helpers_initializerWarningHelper_WEBPACK_IMPORTED_MODULE_2_),Web_clientnode_WEBPACK_IMPORTED_MODULE_3_=__webpack_require__(0),Web_clientnode_WEBPACK_IMPORTED_MODULE_3_default=__webpack_require__.n(Web_clientnode_WEBPACK_IMPORTED_MODULE_3_),Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_=__webpack_require__(1),Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_default=__webpack_require__.n(Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_),Web_decorator_WEBPACK_IMPORTED_MODULE_5_=__webpack_require__(14),Web_decorator_WEBPACK_IMPORTED_MODULE_5_default=__webpack_require__.n(Web_decorator_WEBPACK_IMPORTED_MODULE_5_),Web_dec,Web_class,Web_descriptor,Web_Web;const Web_GenericHTMLElement="undefined"==typeof HTMLElement?class{}:HTMLElement;let Web_Web_0=(Web_dec=Web_decorator_WEBPACK_IMPORTED_MODULE_5_default()({type:Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.boolean,writeAttribute:!0}),Web_Web=class e extends Web_GenericHTMLElement{constructor(){super(),this.batchAttributeUpdates=!0,this.batchPropertyUpdates=!0,this.batchUpdates=!0,this.batchedAttributeUpdateRunning=!0,this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,this.parent=null,this.rootInstance=null,this.scope={...Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.UTILITY_SCOPE},this.domNodeEventBindings=new Map,this.domNodeTemplateCache=new Map,this.externalProperties={},this.ignoreAttributeUpdateObservations=!1,this.internalProperties={},this.outputEventNames=new Set,this.instance=null,Web_babel_runtime_helpers_initializerDefineProperty_WEBPACK_IMPORTED_MODULE_0_default()(this,"isRoot",Web_descriptor,this),this.root=void 0,this.runDomConnectionAndRenderingInSameEventQueue=!1,this.self=e,this.slots={},this.self=this.constructor,this.self._propertiesToReflectAsAttributes||(this.self._propertiesToReflectAsAttributes=this.self.normalizePropertyTypeList(this.self.propertiesToReflectAsAttributes)),this.generateAliasIndex(),this.root=this,this.defineGetterAndSetterInterface()}attributeChangedCallback(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.onUpdateAttribute(e,r)}onUpdateAttribute(e,t){this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{this.batchedAttributeUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("attributeChanged")}))):this.render("attributeChanged")}connectedCallback(){try{this.isConnected=!0}catch(e){}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{this.render("connected")}))}disconnectedCallback(){try{this.isConnected=!1}catch(e){}for(const e of this.domNodeEventBindings.values())for(const t of e.values())t();this.slots={}}defineGetterAndSetterInterface(){const e=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.unique)(Object.keys(this.self.propertyTypes).concat(this.self._propertyAliasIndex?Object.keys(this.self._propertyAliasIndex):[]));for(const t of e)Object.prototype.hasOwnProperty.call(this,t)&&this.setPropertyValue(t,this[t]),Object.defineProperty(this,t,{configurable:!0,get:()=>this.getPropertyValue(t),set:e=>{this.setPropertyValue(t,e),this.triggerPropertySpecificRendering(t,e)}})}getPropertyAlias(e){return this.self._propertyAliasIndex&&Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null}getPropertyValue(t){const r=this.instance?.current?.properties&&(Object.prototype.hasOwnProperty.call(!e.propertyTypes,t)||Object.prototype.hasOwnProperty.call(this.instance.current.properties,t))?this.instance.current.properties[t]:this.externalProperties[t];return this.instance?.current?.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,t)?this.instance.current.state[t]:r}setExternalPropertyValue(e,t){this.externalProperties[e]=t;const r=this.getPropertyAlias(e);r&&(this.externalProperties[r]=t)}setInternalPropertyValue(e,t){this.internalProperties[e]=t;const r=this.getPropertyAlias(e);r&&(this.internalProperties[r]=t)}setPropertyValue(e,t){this.reflectProperties({[e]:t}),this.setInternalPropertyValue(e,t)}triggerPropertySpecificRendering(e,t){if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{void 0!==t&&this.isStateProperty(e)?(this.render("preStatePropertyChanged"),(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{this.setInternalPropertyValue(e,void 0),this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("postStatePropertyChanged"),this.triggerOutputEvents()}))):(this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("propertyChanged"),this.triggerOutputEvents())})));else{const r=this.isStateProperty(e);this.render(r?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&r&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOutputEvents()}}applyBinding(e,t){if(e.getAttributeNames)for(const r of e.getAttributeNames()){let i="";if(r.startsWith("data-bind-")?i=r.substring(10):r.startsWith("bind-")&&(i=r.substring(5)),i){const s=e.getAttribute(r);if(null===s)continue;if(i.startsWith("attribute-")||i.startsWith("property-")){const n=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.evaluate)(s,t,!1,!0,e);if(n.error){console.warn(`Error occurred during processing given attribute binding "${r}" on node:`,e,n.error);continue}i.startsWith("attribute-")?e.setAttribute(i.substring(10),n.result):e[(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.delimitedToCamelCase)(i.substring(9))]=n.result}else if(i.startsWith("on-")){this.domNodeEventBindings.has(e)||this.domNodeEventBindings.set(e,new Map);const n=this.domNodeEventBindings.get(e);if(i=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.delimitedToCamelCase)(i.substring(3)),n?.has(i)){const e=n.get(i);e&&e()}t={console,event:void 0,parameters:void 0,...t};const o=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.compile)(s,t,!0,!0,e);if(o.error)console.warn(`Error occurred during compiling given event binding "${r}" on node:`,e,o.error);else{const _=function(){for(var i=arguments.length,n=new Array(i),_=0;_<i;_++)n[_]=arguments[_];t.event=n[0],t.parameters=n;try{o.templateFunction(...o.originalScopeNames.map((e=>t[e])))}catch(t){console.warn(`Error occurred during processing given event binding "${r}" on node:`,e,`Given expression "${s}" could not be evaluated with given scope names "${o.scopeNames.join('", "')}": ${(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.represent)(t)}`)}};e.addEventListener(i,_),n?.set(i,(()=>{e.removeEventListener(i,_),n.delete(i),0===n.size&&this.domNodeEventBindings.delete(e)}))}}}}}applyBindings(e,t,r){for(void 0===r&&(r=!0);e;)!e.attributes?.length||!r&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}compileDomNodeTemplate(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r={}),(r={ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe,...r}).ignoreComponents&&e.nodeName.toLowerCase().includes("-"))return r.map;if(r.unsafe){let i=e.innerHTML;if(!i&&e.template&&(i=e.template),this.self.hasCode(i)){const s=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.compile)(`\`${i}\``,t);r.map?.set(e,{children:[],error:s.error,scopeNames:s.scopeNames,template:i,templateFunction:s.templateFunction})}}else{const i=e.nodeName.toLowerCase();let s;if(["a","#text"].includes(i)){const t="a"===i?e.getAttribute("href"):e.textContent;t&&this.self.hasCode(t)&&(s=t.replace(/ /g," ").trim())}const n=[];if(s){const i=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.compile)(`\`${s}\``,t);r.map?.set(e,{children:n,error:i.error,scopeNames:i.scopeNames,template:s,templateFunction:i.templateFunction})}let o=e.firstChild;for(;o;)r.filter&&!r.filter(o)||n.push(this.compileDomNodeTemplate(o,t,{...r,ignoreComponents:r.ignoreNestedComponents})),o=o.nextSibling}return r.map}evaluateDomNodeTemplate(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),r={applyBindings:!0,ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe,...r},r.map?.has(e)||this.compileDomNodeTemplate(e,t,r),r.map?.has(e)){const{error:i,scopeNames:s,templateFunction:n}=r.map.get(e);if(i)console.warn(`Error occurred during compiling node content: ${i}`);else{let i=null;try{i=n(...s.map((e=>t[e])))}catch(t){console.warn(`Error occurred when "${this.self._name}" is running "${n}": with bound names "${s.join('", "')}": "${t}". Rendering node:`,e)}null!==i&&(r.unsafe?e.innerHTML=i:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",i):e.textContent=i)}}if(!(r.unsafe||r.ignoreComponents&&e.nodeName.toLowerCase().includes("-"))){let i=e.firstChild;for(;i;)r.filter&&!r.filter(i)||this.evaluateDomNodeTemplate(i,t,{...r,applyBindings:!1,ignoreComponents:r.ignoreNestedComponents}),i=i.nextSibling}return r.applyBindings&&this.applyBindings(e,t),r.map}static replaceDomNodes(t,r){for(const i of[].concat(r).reverse())e.trimSlots&&i.nodeType===Node.TEXT_NODE&&""===i.nodeValue?.trim()||t.after(i);t.remove()}static unwrapDomNode(e){const t=e.parentNode,r=[];for(;e.firstChild;)r.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),r}determineRootBinding(){let t=this.parentNode;for(;t;){(t instanceof e||t.nodeName.includes("-")||null===t.parentNode&&"[object ShadowRoot]"===t.toString())&&(this.rootInstance===this?(this.parent=t,this.rootInstance=t,this.setPropertyValue("isRoot",!1)):this.rootInstance=t),t=t.parentNode}}static hasCode(e){return"string"==typeof e&&e.includes("${")&&e.includes("}")&&/\${[\s\S]+}/.test(e)}static normalizePropertyTypeList(t){if("string"==typeof t&&(t=[t]),Array.isArray(t)){const r=t,i=new Map;for(const t of r)Object.prototype.hasOwnProperty.call(e.propertyTypes,t)&&i.set(t,e.propertyTypes[t]);return i}return(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.convertPlainObjectToMap)(t)}attachEventHandler(){if(null===this.self.eventToPropertyMapping)return;const e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}attachExplicitDefinedOutputEventHandler(){var e=this;if(!this.self.eventToPropertyMapping)return!1;let t=!1;for(const r of Object.keys(this.self.eventToPropertyMapping))Object.prototype.hasOwnProperty.call(this.internalProperties,r)||(t=!0,this.outputEventNames.add(r),this.setInternalPropertyValue(r,(async function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const n=await e.reflectEventToProperties(r,i);n&&(i[0]=n),e.forwardEvent(r,i)})));return t}attachImplicitDefinedOutputEventHandler(e){var t=this;void 0===e&&(e=!0);for(const[r,i]of Object.entries(this.self.propertyTypes))Object.prototype.hasOwnProperty.call(this.internalProperties,r)||![Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.func,"function"].includes(i)||this.self.renderProperties.includes(r)||(this.outputEventNames.add(r),this.setInternalPropertyValue(r,(function(){for(var i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];e&&t.reflectEventToProperties(r,s),t.forwardEvent(r,s)})))}triggerOutputEvents(){for(const e of this.outputEventNames)this.forwardEvent(e,[this.externalProperties])}forwardEvent(e,t){return e.length>3&&e.startsWith("on")&&(e=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.lowerCase)(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))}applySlots(e,t){for(const r of Array.from(e.querySelectorAll("slot"))){const e=r.getAttribute("name");if(null===e||"default"===e)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(const e of this.slots.default)this.evaluateDomNodeTemplate(e,t);this.self.replaceDomNodes(r,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(r).map((e=>this.grabSlotContent(e)));else this.slots[e]?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[e],t),this.self.replaceDomNodes(r,this.slots[e])):this.slots[e]=this.grabSlotContent(this.self.unwrapDomNode(r).filter((e=>"#text"!==e.nodeName.toLowerCase()))[0])}}grabSlotContent(e){if("textarea"===e.firstElementChild?.nodeName.toLowerCase()&&(!e.firstElementChild?.hasAttribute("data-no-template")||"false"===e.firstElementChild?.getAttribute("data-no-template"))){const t=e.firstElementChild.value;e.classList?.remove("web-component-template");const r=e.cloneNode();return e.classList?.add("web-component-template"),r.innerHTML="",r.template=t,r}return this.self.cloneSlots?e.cloneNode(!0):e}grabGivenSlots(){this.slots={};for(const e of Array.from(this.querySelectorAll("[slot]"))){let t=e.parentNode,r=!0;for(;t;){if(t.nodeName.includes("-")){t===this&&(r=!1);break}t=t.parentNode}if(r)continue;const i=e.getAttribute("slot")?.trim();this.slots[null!=i?i:e.nodeName.toLowerCase()]=this.grabSlotContent(e)}this.slots.default?this.slots.default=[this.slots.default]:this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map((e=>this.grabSlotContent(e))):this.slots.default=[]}isStateProperty(e){return Boolean(this.instance?.current?.state&&(Object.prototype.hasOwnProperty.call(this.instance.current.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))}generateAliasIndex(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex={...this.self.propertyAliases};for(const[e,t]of Object.entries(this.self._propertyAliasIndex))Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,t)||(this.self._propertyAliasIndex[t]=e)}}reflectExternalProperties(e){this.ignoreAttributeUpdateObservations=!0;for(const[t,r]of Object.entries(e)){if(this.setExternalPropertyValue(t,r),!this.isConnected)continue;const e=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.camelCaseToDelimited)(t);if(this.self._propertiesToReflectAsAttributes?.has(t))switch(this.self._propertiesToReflectAsAttributes.get(t)){case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.boolean:case"boolean":r?""!==this.getAttribute(e)&&this.setAttribute(e,""):this.hasAttribute(e)&&this.removeAttribute(e);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.func:case"function":break;case"json":if(r){const t=JSON.stringify(r);if(t&&this.getAttribute(e)!==t){this.setAttribute(e,t);break}}this.hasAttribute(e)&&this.removeAttribute(e);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.number:case"number":if("number"!=typeof r||isNaN(r))this.hasAttribute(e)&&this.removeAttribute(e);else{const t=String(r);this.getAttribute(e)!==t&&this.setAttribute(e,t)}break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.string:case"string":r?this.getAttribute(e)!==r&&this.setAttribute(e,r):this.hasAttribute(e)&&this.removeAttribute(e);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.any:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.array:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.arrayOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.element:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.elementType:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.instanceOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.node:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.object:case"object":case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.objectOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.shape:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.exact:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.symbol:default:if(r){const t=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.represent)(r);if(t&&this.getAttribute(e)!==t){this.setAttribute(e,t);break}}this.hasAttribute(e)&&this.removeAttribute(e)}}this.ignoreAttributeUpdateObservations=!1}reflectProperties(e){if(this.reflectExternalProperties(e),this.instance?.current?.state&&"object"==typeof this.instance.current.state)for(const e of Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]))Object.prototype.hasOwnProperty.call(this.internalProperties,e)&&this.setInternalPropertyValue(e,void 0);this.internalProperties.model?.state&&(delete this.internalProperties.model.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(const t of this.self.controllableProperties)Object.prototype.hasOwnProperty.call(e,t)&&this.setInternalPropertyValue(t,e[t])}async reflectEventToProperties(e,t){const r=this.batchUpdates;this.batchUpdates=!1;let i=null,s=!1;if(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,e)&&(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isFunction)(this.self.eventToPropertyMapping[e])){const r=this.self.eventToPropertyMapping[e](...t,this),n=r&&"then"in r&&(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isFunction)(r.then)?await r:r;s=!0,Array.isArray(n)?(i=n[0],this.reflectProperties(i),(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.extend)(!0,this.internalProperties,n[1])):null===n?s=!1:"object"==typeof n&&(i=n,this.reflectProperties(n))}if(!s&&t.length>0&&(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isObject)(t[0])){let e=t[0];if("persist"in t[0]&&(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isFunction)(t[0].persist)){e={};for(const r of Object.keys(this.self.propertyTypes))for(const i of[r].concat(null!==(n=this.getPropertyAlias(r))&&void 0!==n?n:[])){var n;const r=t[0].currentTarget&&Object.prototype.hasOwnProperty.call(t[0].currentTarget,i)?t[0].currentTarget[i]:this.getPropertyValue(i);r!==this.externalProperties[i]&&(e[i]=r)}}else[null,void 0].includes(e.detail?.value)||(e={...e.detail});i=e,this.reflectProperties(e)}return this.triggerRender("propertyReflected"),this.batchUpdates=r,i}evaluateStringOrNullAndSetAsProperty(e,t){var r=this;const i=e.startsWith("-"),s=i?e.substring(1):e;let n=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.delimitedToCamelCase)(s);const o=this.getPropertyAlias(n);if(o&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)&&(n=o),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,n)){const s=this.self.propertyTypes[n];if(i){if(t){const r=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.evaluate)(t,{...Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.UTILITY_SCOPE},!1,!0,this);r.error?(console.warn(`Failed to process pre-evaluation attribute "${e}": ${r.error}. Will be set to "undefined".`),this.setInternalPropertyValue(n,void 0)):(this.setInternalPropertyValue(n,r.result),this.setExternalPropertyValue(n,r.result))}}else switch(s){case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.boolean:case"boolean":{const e=![null,"false"].includes(t);this.setInternalPropertyValue(n,e),this.setExternalPropertyValue(n,e);break}case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.func:case"function":{let i,s=null;const o=["data","event","firstArgument","firstParameter","options","scope","parameters",...Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.UTILITY_SCOPE_NAMES];if(t){const r=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.compile)(t,o);s=r.error,i=r.templateFunction,s&&console.warn(`Failed to compile given handler "${e}": ${s}.`)}this.setInternalPropertyValue(n,(function(){for(var _=arguments.length,a=new Array(_),l=0;l<_;l++)a[l]=arguments[l];let p;if(r.outputEventNames.has(n)&&r.reflectEventToProperties(n,a),!s)try{p=i?.call(r,a[0],a[0],a[0],a[0],a[0],a[0],a,...Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.UTILITY_SCOPE_VALUES)}catch(r){console.warn(`Failed to evaluate function "${e}" with expression "${t}" and scope variables "${o.join('", "')}" set to "${(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.represent)(a)}": ${r}. Set property to "undefined".`)}return r.self.renderProperties.includes(n)||r.forwardEvent(n,a),p})),s||this.setExternalPropertyValue(n,i);break}case"json":if(t){let r;try{r=JSON.parse(t)}catch(t){console.warn(`Error occurred during parsing given json attribute "${e}": `+(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.represent)(t));break}this.setInternalPropertyValue(n,r),this.setExternalPropertyValue(n,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.copy)(r,1))}else this.setInternalPropertyValue(n,null),this.setExternalPropertyValue(n,null);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.number:case"number":{if(null===t){this.setInternalPropertyValue(n,t),this.setExternalPropertyValue(n,t);break}let e=parseFloat(t);isNaN(e)&&(e=void 0),this.setInternalPropertyValue(n,e),this.setExternalPropertyValue(n,e);break}case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.string:case"string":this.setInternalPropertyValue(n,t),this.setExternalPropertyValue(n,t);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.any:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.array:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.arrayOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.element:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.elementType:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.instanceOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.node:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.object:case"object":case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.objectOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.oneOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.oneOfType:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.shape:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.exact:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.symbol:default:if(t){const r=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.evaluate)(t,{},!1,!0,this);if(r.error){console.warn(`Error occurred during processing given attribute configuration "${e}":`,r.error);break}this.setInternalPropertyValue(n,r.result),this.setExternalPropertyValue(n,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.copy)(r.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(n,!0),this.setExternalPropertyValue(n,!0)):(this.setInternalPropertyValue(n,null),this.setExternalPropertyValue(n,null))}}}triggerRender(e){this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{this.batchedUpdateRunning=!1,this.render(e)}))):this.render(e)}applyShadowRootIfNotExisting(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow((0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isObject)(this.self.shadowDOM)?this.self.shadowDOM:{mode:"open"}))}determineRenderScope(e){void 0===e&&(e={}),this.scope={...this.parent?.scope||{},...this.scope,...this.internalProperties,parent:this.parent,root:this.rootInstance,self:this,[(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.lowerCase)(this.self._name)||"instance"]:this,...e},this.scope.scope=this.scope}render(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),!this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}})))return Promise.resolve();const t=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.evaluate)(`\`${this.self.content}\``,this.scope);if(t.error)return console.warn(`Failed to process template: ${t.error}`),Promise.resolve();this.applyShadowRootIfNotExisting();const r=document.createElement("div");return r.innerHTML=t.result,this.applySlots(r,{...this.scope,parent:this}),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots),Promise.resolve()}},Web_Web.applyRootBinding=!0,Web_Web.content="<slot>Please provide a template to transclude.</slot>",Web_Web.determineRootBinding=!0,Web_Web.shadowDOM=null,Web_Web.observedAttributes=[],Web_Web.controllableProperties=[],Web_Web.eventToPropertyMapping={},Web_Web.propertyAliases={},Web_Web.propertyTypes={onClick:Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.func},Web_Web.propertiesToReflectAsAttributes=[],Web_Web.renderProperties=["children"],Web_Web.cloneSlots=!1,Web_Web.evaluateSlots=!1,Web_Web.renderSlots=!0,Web_Web.trimSlots=!0,Web_Web.renderUnsafe=!1,Web_Web._name="BaseWeb",Web_Web._propertyAliasIndex=void 0,Web_Web._propertiesToReflectAsAttributes=void 0,Web_class=Web_Web,Web_descriptor=Web_babel_runtime_helpers_applyDecoratedDescriptor_WEBPACK_IMPORTED_MODULE_1_default()(Web_class.prototype,"isRoot",[Web_dec],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Web_class);const Web_api={component:Web_Web_0,register:function(e){void 0===e&&(e=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.camelCaseToDelimited)(Web_Web_0._name)),customElements.define(e,Web_Web_0)}},Web_0=Web_Web_0;return __webpack_exports__})()));
|
1
|
+
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/dist/property-types"),require("@babel/runtime/helpers/extends"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/initializerWarningHelper","clientnode","clientnode/dist/property-types","@babel/runtime/helpers/extends"],t);else{var r="object"==typeof exports?t(require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/initializerWarningHelper"),require("clientnode"),require("clientnode/dist/property-types"),require("@babel/runtime/helpers/extends")):t(e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/initializerWarningHelper"],e.clientnode,e["clientnode/dist/property-types"],e["@babel/runtime/helpers/extends"]);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,((__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__2__)=>(()=>{var __webpack_modules__=[e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__0__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__1__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__2__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__3__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__4__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__5__},,,,,,,,,function(module,__unused_webpack_exports,__webpack_require__){var __dirname="/",e,t,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(2),t=__webpack_require__(0),r=__webpack_require__(1),function(){var i=[function(t){t.exports=e},function(e){e.exports=t},function(e){e.exports=r}],s={};function n(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return i[e](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{property:function(){return c}});var _=n(0),a=n.n(_),l=n(1),p=n(2);function c(e){return void 0===e&&(e={}),e=a()({readAttribute:!0,type:p.string},e),function(t,r){if("string"==typeof r){var i,s=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(s,"observedAttributes")||(s.observedAttributes=s.observedAttributes?[].concat(s.observedAttributes):[]);var n=(0,l.camelCaseToDelimited)(r);s.observedAttributes&&!s.observedAttributes.includes(n)&&s.observedAttributes.push(n)}e.type&&(Object.prototype.hasOwnProperty.call(s,"propertyTypes")||(s.propertyTypes=s.propertyTypes?a()({},s.propertyTypes):{}),!s.propertyTypes||!e.update&&Object.prototype.hasOwnProperty.call(s,r)||(s.propertyTypes[r]=e.type)),e.writeAttribute&&(Object.prototype.hasOwnProperty.call(s,"propertiesToReflectAsAttributes")||(s.propertiesToReflectAsAttributes=s.propertiesToReflectAsAttributes?(0,l.copy)(s.propertiesToReflectAsAttributes):[]),(e.update||s.propertiesToReflectAsAttributes instanceof Map&&!s.propertiesToReflectAsAttributes.has(r)||Array.isArray(s.propertiesToReflectAsAttributes)&&!s.propertiesToReflectAsAttributes.includes(r)||"object"==typeof s.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(s.propertiesToReflectAsAttributes,r))&&("boolean"==typeof e.writeAttribute?e.writeAttribute&&s.propertyTypes&&Object.prototype.hasOwnProperty.call(s.propertyTypes,r)&&(i=s.propertyTypes[r]):i=e.writeAttribute,void 0!==i&&(Array.isArray(s.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?s.propertiesToReflectAsAttributes.push(r):s.normalizePropertyTypeList&&(s.propertiesToReflectAsAttributes=s.normalizePropertyTypeList(s.propertiesToReflectAsAttributes))),s.propertiesToReflectAsAttributes instanceof Map&&s.propertiesToReflectAsAttributes.set(r,i),"object"==typeof s.propertiesToReflectAsAttributes&&(s.propertiesToReflectAsAttributes[r]=i)))),e.alias&&(Object.prototype.hasOwnProperty.call(s,"propertyAliases")||(s.propertyAliases=s.propertyAliases?a()({},s.propertyAliases):{}),!s.propertyAliases||!e.update&&Object.prototype.hasOwnProperty.call(s,r)||(s.propertyAliases[r]=e.alias))}}}return o.default=c,o}())}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{GenericHTMLElement:()=>Web_GenericHTMLElement,Web:()=>Web_Web_0,api:()=>Web_api,default:()=>Web_0});var Web_babel_runtime_helpers_initializerDefineProperty_WEBPACK_IMPORTED_MODULE_0_=__webpack_require__(3),Web_babel_runtime_helpers_initializerDefineProperty_WEBPACK_IMPORTED_MODULE_0_default=__webpack_require__.n(Web_babel_runtime_helpers_initializerDefineProperty_WEBPACK_IMPORTED_MODULE_0_),Web_babel_runtime_helpers_applyDecoratedDescriptor_WEBPACK_IMPORTED_MODULE_1_=__webpack_require__(4),Web_babel_runtime_helpers_applyDecoratedDescriptor_WEBPACK_IMPORTED_MODULE_1_default=__webpack_require__.n(Web_babel_runtime_helpers_applyDecoratedDescriptor_WEBPACK_IMPORTED_MODULE_1_),Web_babel_runtime_helpers_initializerWarningHelper_WEBPACK_IMPORTED_MODULE_2_=__webpack_require__(5),Web_babel_runtime_helpers_initializerWarningHelper_WEBPACK_IMPORTED_MODULE_2_default=__webpack_require__.n(Web_babel_runtime_helpers_initializerWarningHelper_WEBPACK_IMPORTED_MODULE_2_),Web_clientnode_WEBPACK_IMPORTED_MODULE_3_=__webpack_require__(0),Web_clientnode_WEBPACK_IMPORTED_MODULE_3_default=__webpack_require__.n(Web_clientnode_WEBPACK_IMPORTED_MODULE_3_),Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_=__webpack_require__(1),Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_default=__webpack_require__.n(Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_),Web_decorator_WEBPACK_IMPORTED_MODULE_5_=__webpack_require__(14),Web_decorator_WEBPACK_IMPORTED_MODULE_5_default=__webpack_require__.n(Web_decorator_WEBPACK_IMPORTED_MODULE_5_),Web_dec,Web_class,Web_descriptor,Web_Web;const Web_GenericHTMLElement="undefined"==typeof HTMLElement?class{}:HTMLElement;let Web_Web_0=(Web_dec=Web_decorator_WEBPACK_IMPORTED_MODULE_5_default()({type:Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.boolean,writeAttribute:!0}),Web_Web=class e extends Web_GenericHTMLElement{constructor(){super(),this.batchAttributeUpdates=!0,this.batchPropertyUpdates=!0,this.batchUpdates=!0,this.batchedAttributeUpdateRunning=!0,this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,this.parent=null,this.rootInstance=null,this.scope={...Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.UTILITY_SCOPE},this.domNodeEventBindings=new Map,this.domNodeTemplateCache=new Map,this.externalProperties={},this.ignoreAttributeUpdateObservations=!1,this.internalProperties={},this.outputEventNames=new Set,this.instance=null,Web_babel_runtime_helpers_initializerDefineProperty_WEBPACK_IMPORTED_MODULE_0_default()(this,"isRoot",Web_descriptor,this),this.root=void 0,this.runDomConnectionAndRenderingInSameEventQueue=!1,this.self=e,this.slots={},this.self=this.constructor,this.self._propertiesToReflectAsAttributes||(this.self._propertiesToReflectAsAttributes=this.self.normalizePropertyTypeList(this.self.propertiesToReflectAsAttributes)),this.generateAliasIndex(),this.root=this,this.defineGetterAndSetterInterface()}attributeChangedCallback(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.onUpdateAttribute(e,r)}onUpdateAttribute(e,t){this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{this.batchedAttributeUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("attributeChanged")}))):this.render("attributeChanged")}connectedCallback(){try{this.isConnected=!0}catch{}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{this.render("connected")}))}disconnectedCallback(){try{this.isConnected=!1}catch{}for(const e of this.domNodeEventBindings.values())for(const t of e.values())t();this.slots={}}defineGetterAndSetterInterface(){const e=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.unique)(Object.keys(this.self.propertyTypes).concat(this.self._propertyAliasIndex?Object.keys(this.self._propertyAliasIndex):[]));for(const t of e)Object.prototype.hasOwnProperty.call(this,t)&&this.setPropertyValue(t,this[t]),Object.defineProperty(this,t,{configurable:!0,get:()=>this.getPropertyValue(t),set:e=>{this.setPropertyValue(t,e),this.triggerPropertySpecificRendering(t,e)}})}getPropertyAlias(e){return this.self._propertyAliasIndex&&Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null}getPropertyValue(t){const r=this.instance?.current?.properties&&(Object.prototype.hasOwnProperty.call(!e.propertyTypes,t)||Object.prototype.hasOwnProperty.call(this.instance.current.properties,t))?this.instance.current.properties[t]:this.externalProperties[t];return this.instance?.current?.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,t)?this.instance.current.state[t]:r}setExternalPropertyValue(e,t){this.externalProperties[e]=t;const r=this.getPropertyAlias(e);r&&(this.externalProperties[r]=t)}setInternalPropertyValue(e,t){this.internalProperties[e]=t;const r=this.getPropertyAlias(e);r&&(this.internalProperties[r]=t)}setPropertyValue(e,t){this.reflectProperties({[e]:t}),this.setInternalPropertyValue(e,t)}triggerPropertySpecificRendering(e,t){if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{void 0!==t&&this.isStateProperty(e)?(this.render("preStatePropertyChanged"),(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{this.setInternalPropertyValue(e,void 0),this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("postStatePropertyChanged"),this.triggerOutputEvents()}))):(this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.render("propertyChanged"),this.triggerOutputEvents())})));else{const r=this.isStateProperty(e);this.render(r?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&r&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOutputEvents()}}applyBinding(e,t){if(e.getAttributeNames)for(const r of e.getAttributeNames()){let i="";if(r.startsWith("data-bind-")?i=r.substring(10):r.startsWith("bind-")&&(i=r.substring(5)),i){const s=e.getAttribute(r);if(null===s)continue;if(i.startsWith("attribute-")||i.startsWith("property-")){const n=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.evaluate)(s,t,!1,!0,e);if(n.error){console.warn(`Error occurred during processing given attribute binding "${r}" on node:`,e,n.error);continue}i.startsWith("attribute-")?e.setAttribute(i.substring(10),n.result):e[(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.delimitedToCamelCase)(i.substring(9))]=n.result}else if(i.startsWith("on-")){this.domNodeEventBindings.has(e)||this.domNodeEventBindings.set(e,new Map);const n=this.domNodeEventBindings.get(e);if(i=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.delimitedToCamelCase)(i.substring(3)),n?.has(i)){const e=n.get(i);e&&e()}t={console,event:void 0,parameters:void 0,...t};const o=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.compile)(s,t,!0,!0,e);if(o.error)console.warn(`Error occurred during compiling given event binding "${r}" on node:`,e,o.error);else{const _=function(){for(var i=arguments.length,n=new Array(i),_=0;_<i;_++)n[_]=arguments[_];t.event=n[0],t.parameters=n;try{o.templateFunction(...o.originalScopeNames.map((e=>t[e])))}catch(t){console.warn(`Error occurred during processing given event binding "${r}" on node:`,e,`Given expression "${s}" could not be evaluated with given scope names "${o.scopeNames.join('", "')}": ${(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.represent)(t)}`)}};e.addEventListener(i,_),n?.set(i,(()=>{e.removeEventListener(i,_),n.delete(i),0===n.size&&this.domNodeEventBindings.delete(e)}))}}}}}applyBindings(e,t,r){for(void 0===r&&(r=!0);e;)!e.attributes?.length||!r&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}compileDomNodeTemplate(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r={}),(r={ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe,...r}).ignoreComponents&&e.nodeName.toLowerCase().includes("-"))return r.map;if(r.unsafe){let i=e.innerHTML;if(!i&&e.template&&(i=e.template),this.self.hasCode(i)){const s=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.compile)(`\`${i}\``,t);r.map?.set(e,{children:[],error:s.error,scopeNames:s.scopeNames,template:i,templateFunction:s.templateFunction})}}else{const i=e.nodeName.toLowerCase();let s;if(["a","#text"].includes(i)){const t="a"===i?e.getAttribute("href"):e.textContent;t&&this.self.hasCode(t)&&(s=t.replace(/ /g," ").trim())}const n=[];if(s){const i=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.compile)(`\`${s}\``,t);r.map?.set(e,{children:n,error:i.error,scopeNames:i.scopeNames,template:s,templateFunction:i.templateFunction})}let o=e.firstChild;for(;o;)r.filter&&!r.filter(o)||n.push(this.compileDomNodeTemplate(o,t,{...r,ignoreComponents:r.ignoreNestedComponents})),o=o.nextSibling}return r.map}evaluateDomNodeTemplate(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),r={applyBindings:!0,ignoreComponents:!0,ignoreNestedComponents:!0,map:this.domNodeTemplateCache,unsafe:this.self.renderUnsafe,...r},r.map?.has(e)||this.compileDomNodeTemplate(e,t,r),r.map?.has(e)){const{error:i,scopeNames:s,templateFunction:n}=r.map.get(e);if(i)console.warn(`Error occurred during compiling node content: ${i}`);else{let i=null;try{i=n(...s.map((e=>t[e])))}catch(t){console.warn(`Error occurred when "${this.self._name}" is running "${n}": with bound names "${s.join('", "')}": "${t}". Rendering node:`,e)}null!==i&&(r.unsafe?e.innerHTML=i:"a"===e.nodeName.toLowerCase()?e.setAttribute("href",i):e.textContent=i)}}if(!(r.unsafe||r.ignoreComponents&&e.nodeName.toLowerCase().includes("-"))){let i=e.firstChild;for(;i;)r.filter&&!r.filter(i)||this.evaluateDomNodeTemplate(i,t,{...r,applyBindings:!1,ignoreComponents:r.ignoreNestedComponents}),i=i.nextSibling}return r.applyBindings&&this.applyBindings(e,t),r.map}static replaceDomNodes(t,r){for(const i of[].concat(r).reverse())e.trimSlots&&i.nodeType===Node.TEXT_NODE&&""===i.nodeValue?.trim()||t.after(i);t.remove()}static unwrapDomNode(e){const t=e.parentNode,r=[];for(;e.firstChild;)r.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),r}determineRootBinding(){let t=this.parentNode;for(;t;){(t instanceof e||t.nodeName.includes("-")||null===t.parentNode&&"[object ShadowRoot]"===t.toString())&&(this.rootInstance===this?(this.parent=t,this.rootInstance=t,this.setPropertyValue("isRoot",!1)):this.rootInstance=t),t=t.parentNode}}static hasCode(e){return"string"==typeof e&&e.includes("${")&&e.includes("}")&&/\${[\s\S]+}/.test(e)}static normalizePropertyTypeList(t){if("string"==typeof t&&(t=[t]),Array.isArray(t)){const r=t,i=new Map;for(const t of r)Object.prototype.hasOwnProperty.call(e.propertyTypes,t)&&i.set(t,e.propertyTypes[t]);return i}return(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.convertPlainObjectToMap)(t)}attachEventHandler(){if(null===this.self.eventToPropertyMapping)return;const e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}attachExplicitDefinedOutputEventHandler(){var e=this;if(!this.self.eventToPropertyMapping)return!1;let t=!1;for(const r of Object.keys(this.self.eventToPropertyMapping))Object.prototype.hasOwnProperty.call(this.internalProperties,r)||(t=!0,this.outputEventNames.add(r),this.setInternalPropertyValue(r,(async function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const n=await e.reflectEventToProperties(r,i);n&&(i[0]=n),e.forwardEvent(r,i)})));return t}attachImplicitDefinedOutputEventHandler(e){var t=this;void 0===e&&(e=!0);for(const[r,i]of Object.entries(this.self.propertyTypes))Object.prototype.hasOwnProperty.call(this.internalProperties,r)||![Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.func,"function"].includes(i)||this.self.renderProperties.includes(r)||(this.outputEventNames.add(r),this.setInternalPropertyValue(r,(function(){for(var i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];e&&t.reflectEventToProperties(r,s),t.forwardEvent(r,s)})))}triggerOutputEvents(){for(const e of this.outputEventNames)this.forwardEvent(e,[this.externalProperties])}forwardEvent(e,t){return e.length>3&&e.startsWith("on")&&(e=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.lowerCase)(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))}applySlots(e,t){for(const r of Array.from(e.querySelectorAll("slot"))){const e=r.getAttribute("name");if(null===e||"default"===e)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(const e of this.slots.default)this.evaluateDomNodeTemplate(e,t);this.self.replaceDomNodes(r,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(r).map((e=>this.grabSlotContent(e)));else this.slots[e]?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[e],t),this.self.replaceDomNodes(r,this.slots[e])):this.slots[e]=this.grabSlotContent(this.self.unwrapDomNode(r).filter((e=>"#text"!==e.nodeName.toLowerCase()))[0])}}grabSlotContent(e){if("textarea"===e.firstElementChild?.nodeName.toLowerCase()&&(!e.firstElementChild?.hasAttribute("data-no-template")||"false"===e.firstElementChild?.getAttribute("data-no-template"))){const t=e.firstElementChild.value;e.classList?.remove("web-component-template");const r=e.cloneNode();return e.classList?.add("web-component-template"),r.innerHTML="",r.template=t,r}return this.self.cloneSlots?e.cloneNode(!0):e}grabGivenSlots(){this.slots={};for(const e of Array.from(this.querySelectorAll("[slot]"))){let t=e.parentNode,r=!0;for(;t;){if(t.nodeName.includes("-")){t===this&&(r=!1);break}t=t.parentNode}if(r)continue;const i=e.getAttribute("slot")?.trim();this.slots[null!=i?i:e.nodeName.toLowerCase()]=this.grabSlotContent(e)}this.slots.default?this.slots.default=[this.slots.default]:this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map((e=>this.grabSlotContent(e))):this.slots.default=[]}isStateProperty(e){return Boolean(this.instance?.current?.state&&(Object.prototype.hasOwnProperty.call(this.instance.current.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))}generateAliasIndex(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex={...this.self.propertyAliases};for(const[e,t]of Object.entries(this.self._propertyAliasIndex))Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,t)||(this.self._propertyAliasIndex[t]=e)}}reflectExternalProperties(e){this.ignoreAttributeUpdateObservations=!0;for(const[t,r]of Object.entries(e)){if(this.setExternalPropertyValue(t,r),!this.isConnected)continue;const e=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.camelCaseToDelimited)(t);if(this.self._propertiesToReflectAsAttributes?.has(t))switch(this.self._propertiesToReflectAsAttributes.get(t)){case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.boolean:case"boolean":r?""!==this.getAttribute(e)&&this.setAttribute(e,""):this.hasAttribute(e)&&this.removeAttribute(e);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.func:case"function":break;case"json":if(r){const t=JSON.stringify(r);if(t&&this.getAttribute(e)!==t){this.setAttribute(e,t);break}}this.hasAttribute(e)&&this.removeAttribute(e);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.number:case"number":if("number"!=typeof r||isNaN(r))this.hasAttribute(e)&&this.removeAttribute(e);else{const t=String(r);this.getAttribute(e)!==t&&this.setAttribute(e,t)}break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.string:case"string":r?this.getAttribute(e)!==r&&this.setAttribute(e,r):this.hasAttribute(e)&&this.removeAttribute(e);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.any:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.array:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.arrayOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.element:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.elementType:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.instanceOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.node:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.object:case"object":case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.objectOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.shape:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.exact:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.symbol:default:if(r){const t=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.represent)(r);if(t&&this.getAttribute(e)!==t){this.setAttribute(e,t);break}}this.hasAttribute(e)&&this.removeAttribute(e)}}this.ignoreAttributeUpdateObservations=!1}reflectProperties(e){if(this.reflectExternalProperties(e),this.instance?.current?.state&&"object"==typeof this.instance.current.state)for(const e of Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]))Object.prototype.hasOwnProperty.call(this.internalProperties,e)&&this.setInternalPropertyValue(e,void 0);this.internalProperties.model?.state&&(delete this.internalProperties.model.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(const t of this.self.controllableProperties)Object.prototype.hasOwnProperty.call(e,t)&&this.setInternalPropertyValue(t,e[t])}async reflectEventToProperties(e,t){const r=this.batchUpdates;this.batchUpdates=!1;let i=null,s=!1;if(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,e)&&(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isFunction)(this.self.eventToPropertyMapping[e])){const r=this.self.eventToPropertyMapping[e](...t,this),n=r&&"then"in r&&(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isFunction)(r.then)?await r:r;s=!0,Array.isArray(n)?(i=n[0],this.reflectProperties(i),(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.extend)(!0,this.internalProperties,n[1])):null===n?s=!1:"object"==typeof n&&(i=n,this.reflectProperties(n))}if(!s&&t.length>0&&(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isObject)(t[0])){let e=t[0];if("persist"in t[0]&&(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isFunction)(t[0].persist)){e={};for(const r of Object.keys(this.self.propertyTypes))for(const i of[r].concat(null!==(n=this.getPropertyAlias(r))&&void 0!==n?n:[])){var n;const r=t[0].currentTarget&&Object.prototype.hasOwnProperty.call(t[0].currentTarget,i)?t[0].currentTarget[i]:this.getPropertyValue(i);r!==this.externalProperties[i]&&(e[i]=r)}}else[null,void 0].includes(e.detail?.value)||(e={...e.detail});i=e,this.reflectProperties(e)}return this.triggerRender("propertyReflected"),this.batchUpdates=r,i}evaluateStringOrNullAndSetAsProperty(e,t){var r=this;const i=e.startsWith("-"),s=i?e.substring(1):e;let n=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.delimitedToCamelCase)(s);const o=this.getPropertyAlias(n);if(o&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,o)&&(n=o),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,n)){const s=this.self.propertyTypes[n];if(i){if(t){const r=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.evaluate)(t,{...Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.UTILITY_SCOPE},!1,!0,this);r.error?(console.warn(`Failed to process pre-evaluation attribute "${e}": ${r.error}. Will be set to "undefined".`),this.setInternalPropertyValue(n,void 0)):(this.setInternalPropertyValue(n,r.result),this.setExternalPropertyValue(n,r.result))}}else switch(s){case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.boolean:case"boolean":{const e=![null,"false"].includes(t);this.setInternalPropertyValue(n,e),this.setExternalPropertyValue(n,e);break}case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.func:case"function":{let i,s=null;const o=["data","event","firstArgument","firstParameter","options","scope","parameters",...Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.UTILITY_SCOPE_NAMES];if(t){const r=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.compile)(t,o);s=r.error,i=r.templateFunction,s&&console.warn(`Failed to compile given handler "${e}": ${s}.`)}this.setInternalPropertyValue(n,(function(){for(var _=arguments.length,a=new Array(_),l=0;l<_;l++)a[l]=arguments[l];let p;if(r.outputEventNames.has(n)&&r.reflectEventToProperties(n,a),!s)try{p=i?.call(r,a[0],a[0],a[0],a[0],a[0],a[0],a,...Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.UTILITY_SCOPE_VALUES)}catch(r){console.warn(`Failed to evaluate function "${e}" with expression "${t}" and scope variables "${o.join('", "')}" set to "${(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.represent)(a)}": ${r}. Set property to "undefined".`)}return r.self.renderProperties.includes(n)||r.forwardEvent(n,a),p})),s||this.setExternalPropertyValue(n,i);break}case"json":if(t){let r;try{r=JSON.parse(t)}catch(t){console.warn(`Error occurred during parsing given json attribute "${e}": `+(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.represent)(t));break}this.setInternalPropertyValue(n,r),this.setExternalPropertyValue(n,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.copy)(r,1))}else this.setInternalPropertyValue(n,null),this.setExternalPropertyValue(n,null);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.number:case"number":{if(null===t){this.setInternalPropertyValue(n,t),this.setExternalPropertyValue(n,t);break}let e=parseFloat(t);isNaN(e)&&(e=void 0),this.setInternalPropertyValue(n,e),this.setExternalPropertyValue(n,e);break}case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.string:case"string":this.setInternalPropertyValue(n,t),this.setExternalPropertyValue(n,t);break;case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.any:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.array:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.arrayOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.element:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.elementType:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.instanceOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.node:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.object:case"object":case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.objectOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.oneOf:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.oneOfType:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.shape:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.exact:case Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.symbol:default:if(t){const r=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.evaluate)(t,{},!1,!0,this);if(r.error){console.warn(`Error occurred during processing given attribute configuration "${e}":`,r.error);break}this.setInternalPropertyValue(n,r.result),this.setExternalPropertyValue(n,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.copy)(r.result,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(n,!0),this.setExternalPropertyValue(n,!0)):(this.setInternalPropertyValue(n,null),this.setExternalPropertyValue(n,null))}}}triggerRender(e){this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.timeout)((()=>{this.batchedUpdateRunning=!1,this.render(e)}))):this.render(e)}applyShadowRootIfNotExisting(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow((0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.isObject)(this.self.shadowDOM)?this.self.shadowDOM:{mode:"open"}))}determineRenderScope(e){void 0===e&&(e={}),this.scope={...this.parent?.scope||{},...this.scope,...this.internalProperties,parent:this.parent,root:this.rootInstance,self:this,[(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.lowerCase)(this.self._name)||"instance"]:this,...e},this.scope.scope=this.scope}render(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),!this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}})))return Promise.resolve();const t=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.evaluate)(`\`${this.self.content}\``,this.scope);if(t.error)return console.warn(`Failed to process template: ${t.error}`),Promise.resolve();this.applyShadowRootIfNotExisting();const r=document.createElement("div");return r.innerHTML=t.result,this.applySlots(r,{...this.scope,parent:this}),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots),Promise.resolve()}},Web_Web.applyRootBinding=!0,Web_Web.content="<slot>Please provide a template to transclude.</slot>",Web_Web.determineRootBinding=!0,Web_Web.shadowDOM=null,Web_Web.observedAttributes=[],Web_Web.controllableProperties=[],Web_Web.eventToPropertyMapping={},Web_Web.propertyAliases={},Web_Web.propertyTypes={onClick:Web_clientnode_dist_property_types_WEBPACK_IMPORTED_MODULE_4_.func},Web_Web.propertiesToReflectAsAttributes=[],Web_Web.renderProperties=["children"],Web_Web.cloneSlots=!1,Web_Web.evaluateSlots=!1,Web_Web.renderSlots=!0,Web_Web.trimSlots=!0,Web_Web.renderUnsafe=!1,Web_Web._name="BaseWeb",Web_Web._propertyAliasIndex=void 0,Web_Web._propertiesToReflectAsAttributes=void 0,Web_class=Web_Web,Web_descriptor=Web_babel_runtime_helpers_applyDecoratedDescriptor_WEBPACK_IMPORTED_MODULE_1_default()(Web_class.prototype,"isRoot",[Web_dec],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Web_class);const Web_api={component:Web_Web_0,register:function(e){void 0===e&&(e=(0,Web_clientnode_WEBPACK_IMPORTED_MODULE_3_.camelCaseToDelimited)(Web_Web_0._name)),customElements.define(e,Web_Web_0)}},Web_0=Web_Web_0;return __webpack_exports__})()));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-component-wrapper",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.505",
|
4
4
|
"description": "Generic web-component base class and framework specific wrapper.",
|
5
5
|
"keywords": [
|
6
6
|
"component",
|
@@ -70,29 +70,29 @@
|
|
70
70
|
"devDependencies": {
|
71
71
|
"@babel/eslint-parser": "^7.25.9",
|
72
72
|
"@babel/runtime": "^7.26.0",
|
73
|
-
"@stylistic/eslint-plugin-ts": "^2.
|
73
|
+
"@stylistic/eslint-plugin-ts": "^2.11.0",
|
74
74
|
"@types/ejs": "^3.1.5",
|
75
75
|
"@types/html-minifier": "^4.0.5",
|
76
76
|
"@types/jsdom": "^21.1.7",
|
77
|
-
"@types/node": "^22.
|
77
|
+
"@types/node": "^22.9.0",
|
78
78
|
"@types/react": "^18.3.12",
|
79
79
|
"@types/react-dom": "^18.3.1",
|
80
80
|
"@types/webpack-env": "^1.18.5",
|
81
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
82
|
-
"@typescript-eslint/parser": "^8.
|
81
|
+
"@typescript-eslint/eslint-plugin": "^8.15.0",
|
82
|
+
"@typescript-eslint/parser": "^8.15.0",
|
83
83
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
84
|
-
"clientnode": "^3.0.
|
85
|
-
"documentation-website": "^1.0.
|
86
|
-
"eslint": "^9.
|
84
|
+
"clientnode": "^3.0.1229",
|
85
|
+
"documentation-website": "^1.0.339",
|
86
|
+
"eslint": "^9.15.0",
|
87
87
|
"eslint-config-google": "^0.14.0",
|
88
|
-
"eslint-plugin-jsdoc": "^50.
|
88
|
+
"eslint-plugin-jsdoc": "^50.5.0",
|
89
89
|
"jest": "^29.7.0",
|
90
90
|
"jsdoc": "^4.0.4",
|
91
91
|
"prop-types": "^15.8.1",
|
92
92
|
"react": "^18.3.1",
|
93
93
|
"react-dom": "^18.3.1",
|
94
|
-
"typescript-eslint": "^8.
|
95
|
-
"weboptimizer": "^2.0.
|
94
|
+
"typescript-eslint": "^8.15.0",
|
95
|
+
"weboptimizer": "^2.0.1538",
|
96
96
|
"webpack-dev-server": "^5.1.0"
|
97
97
|
},
|
98
98
|
"peerDependencies": {
|