polymatica-widget-component-legacy 2.1.13 → 2.1.15
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/esm/tools/connector.js +3 -0
- package/esm/tools/connector.js.map +1 -1
- package/package.json +1 -1
- package/polymatica-widget-component-legacy.js +328 -1
- package/toolkit/esm/load-widget-config.js +6 -0
- package/toolkit/esm/load-widget-config.js.map +1 -1
- package/toolkit/load-widget-config.js +6 -0
- package/toolkit/load-widget-config.js.map +1 -1
package/esm/tools/connector.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../../../src/tools/connector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EACH,KAAK,EAEL,MAAM,GAGT,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,OAAO,SAAS;IAOlB,IAAY,OAAO;QACf,OAAO,SAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAE,CAAC;IACxD,CAAC;IAED,YAA6B,MAA8B;QAA9B,WAAM,GAAN,MAAM,CAAwB;QARlD,UAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAE5B,YAAO,GAAG,KAAK,CAAC;QAOpB,MAAM,CAAC,gBAAgB,CACnB,SAAS,EACT,CAAC,EAAE,IAAI,EAA4B,EAAE,EAAE;YACnC,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK;gBAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC,CACJ,CAAC;IACN,CAAC;IAED,IAAI,CAAkB,IAAO,EAAE,OAA0B;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E,CAAC,EAAE;wBACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE;wBAC1B,QAAQ;qBACX,CAAC;oBAEF,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;iBACzD;gBAED,MAAM;aACT;YAED,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAClB,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;aAC9D;SACJ;IACL,CAAC;IAEO,WAAW;QACf,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC/C,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1 +1,328 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.PolymaticaWidgetComponentLegacy=t():e.PolymaticaWidgetComponentLegacy=t()}(self,(()=>(()=>{var e={10:e=>{function t(e){return!e}e.exports=Object.defineProperties(t,{default:{value:t},not:{value:t},__esModule:{value:!0}})},279:e=>{var t;self,t=()=>(()=>{var e={10:e=>{function t(e){return!e}e.exports=Object.defineProperties(t,{default:{value:t},not:{value:t},__esModule:{value:!0}})},107:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.JsxElementType=void 0,(n=t.JsxElementType||(t.JsxElementType={})).Component="component",n.Primitive="primitive"},517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listeners=t.elementBindings=void 0,t.elementBindings="⇠ element bindings",t.listeners="⇠ listeners"},292:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,a)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(671),t)},671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;const o=n(10),a=n(107),r=n(517);var i;function s(e,t){switch(e.type){case a.JsxElementType.Component:return c(e,t);case a.JsxElementType.Primitive:return e.value}}function c(e,t){const{tagName:n}=e;if((0,o.not)(n))return d(e.children,t);switch(n){case"link":if(t.target!==i.Head)return"";l(e.attributes,"href",t.baseUrl);case"script":if(t.target!==i.Head)return"";l(e.attributes,"src",t.baseUrl)}const a=(r=e.attributes,Object.entries(r).map((([e,t])=>"data"===e?function(e){return Object.entries(e).map((([e,t])=>`data-${e}="${t}"`)).join(" ")}(t):("style"===e&&t instanceof Object&&(t=function(e){const t=Object.entries(e).map((([e,t])=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}(e)}: ${t};`));return t.join("")}(t)),`${e}="${t}"`))).join(""));var r;return"input"===n?`<${n} ${a} />`:`<${n} ${a}>${d(e.children,t)}</${n}>`}function l(e,t,n){if(!(0,o.not)(t in e))try{const o=new URL(e[t],n);e[t]=o.toString()}catch(n){delete e[t]}}function d(e,t){return e.map((e=>{switch(e.type){case a.JsxElementType.Component:return c(e,t);case a.JsxElementType.Primitive:return e.value}})).join("")}t.Renderer=class{#e;#t;#n;constructor(e,t,n){e.innerHTML='<div style="display: contents;"></div>',this.#e=e.querySelector("div"),this.#t=t,this.#n=n,this.#o(t)}renderHead(e){const t=s(e,{target:i.Head,baseUrl:this.#n});this.#e.insertAdjacentHTML("beforebegin",t)}render(e){this.#e.innerHTML=s(e,{target:i.Body,baseUrl:this.#n}),this.#a()}#o(e){const t=e.constructor?.[r.listeners];if(Array.isArray(t)){const n=this.#e;t.forEach((({eventName:t,selector:a,callbackName:r})=>{const i=e[r];"function"==typeof i&&n.addEventListener(t,(t=>{if((0,o.not)(a)&&i.call(e,t),(0,o.not)(t.target))return;let r=t.target;for(;r&&r!==n;){if(r instanceof HTMLElement&&r.matches(a)){i.call(e,r,t);break}if(!r.parentElement)break;r=r.parentElement}}))}))}}#a(){const e=this.#t,t=e.constructor?.[r.elementBindings];if(Array.isArray(t)){const n=this.#e;t.forEach((({propertyName:t,selector:o,multi:a})=>{e[t]=a?n.querySelectorAll(o):n.querySelector(o)||void 0}))}}},function(e){e[e.Head=0]="Head",e[e.Body=1]="Body"}(i||(i={}))}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";var e;function t(e){for(const t of e){const e=t.target,{attributeName:n}=t;switch(n){case"render-env":e.renderEnv=a(e,"render-env");break;case"widget-base-path":e.widgetBasePath=a(e,"widget-base-path");break;case"locale":e.locale=a(e,"locale")}}}function a(e,t){return e.getAttribute(t)||""}n.r(o),n.d(o,{EventType:()=>e,PolymaticaWidget:()=>b}),function(e){e.Ready="plmt-ready",e.Interact="plmt-interact"}(e||(e={}));class r{constructor(e){this.component=e}dispatch(e,t){const n=new CustomEvent(e,{detail:t,bubbles:!0});this.component.dispatchEvent(n)}}var i=n(10),s=n(292);class c{constructor(){this.cache=Object.create(null)}load(e,t){const n=`${e}/assets/i18n/${t}.json`;return this.cache[n]?Promise.resolve(this.cache[n]):fetch(n).then((e=>e.json())).then((e=>(this.cache[n]=e,e)))}}class l{constructor(e){this.events=e,this.datasetsByRef=Object.create(null)}apply(e,t){var n;t.dataset?e.dataset=this.createWidgetDataset(t.dataset,{key:"default",index:0}):d(t)?e.datasets=t.datasets.map(((e,t)=>this.createWidgetDataset(e,{key:"default",index:t}))):(n=t).datasets&&(0,i.not)(d(n))&&(e.datasets={},Object.entries(t.datasets).forEach((([t,n])=>{const o=Array.isArray(n)?n.map(((e,n)=>this.createWidgetDataset(e,{key:t,index:n}))):this.createWidgetDataset(n,{key:t,index:0});e.datasets[t]=o}))),t.options&&(e.options=t.options)}getDatasetByRef({key:e,index:t}){return this.datasetsByRef[e]?.[t]}reset(){this.datasetsByRef=Object.create(null)}createWidgetDataset(e,t){const{events:n}=this,{name:o,rows:a}=e,r={},s=e.columns.map((e=>{const o=e.id,a={...u(e,"id"),interact(e){n.onInteract({datasetRef:t,columnId:o,rowIndex:e})}};return r[o]=a,a})),c={};Object.entries(e.columnsByBlock).forEach((([e,t])=>{c[e]=[],t.forEach((t=>{const n=r[t];n&&c[e].push(n)}))}));const l={name:o,columns:s,columnsByBlock:c,rows:a,heatmap:{},events:{onHighlight(){}}};{const{datasetsByRef:e}=this,{key:n,index:o}=t;(0,i.not)(e[n])&&(e[n]=[]),e[n][o]=l}return l}}function d(e){return Array.isArray(e.datasets)}function u(e,t){const n={};return Object.entries(e).forEach((([e,o])=>{e!==t&&(n[e]=o)})),n}var h=function(e,t,n,o){var a,r=arguments.length,i=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(r<3?a(i):r>3?a(t,n,i):a(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i};class p{set renderEnv(e){}set theme(e){this.instance.theme=e,this.instance.onThemeChange()}set locale(e){this.loadTranslations(e)}set state(e){this.clearState(),this.stateManager.apply(this.instance,e),this.instance.onChange()}constructor(e,t){this.shadowRoot=e,this.events=t,this.context={translations:{loading:!1,first:!0}},this.stateManager=new l({onInteract:this.events.onInteract}),this.asyncCallbackMap={state:!1,theme:!1},this.translationsLoader=new c}provideWidgetEntity(e,t){this.context.entity=e,this.context.widgetBasePath=t,this.instantiate()}highlight(e,t){this.stateManager.getDatasetByRef(e)?.events.onHighlight(t)}async instantiate(){const{entity:e,renderEnv:t,theme:n,locale:o,state:a,widgetBasePath:r}=this.context;if((0,i.not)(e))return;if((0,i.not)(t))return;if((0,i.not)(n))return;if((0,i.not)(o))return;const c=new e.Widget;this.disposePrevious(),this.instance=c,c.renderEnv=t,c.theme=n,c.ready=()=>{this.events.onReady()};const l=new s.Renderer(this.shadowRoot,c,r),d=c.renderHead();d&&l.renderHead(d);const u=c.render;c.render=()=>{const e=u.call(c);return l.render(e),e},c.init(),e.config.useTranslations&&this.loadTranslations(o),a&&(this.state=a)}async loadTranslations(e){const{widgetBasePath:t}=this.context;if((0,i.not)(t))return;const{instance:n}=this;this.context.translations.loading=!0;const o=await this.translationsLoader.load(t,e);this.context.locale===e&&this.instance===n&&(this.instance&&(this.instance.translate=(e,t)=>{const n=o[e];return"string"!=typeof n?"":(0,i.not)(t)?n:n.replace(/\{\{(.+?)\}\}/g,((e,n)=>0===t[n]?"0":t[n]||""))}),this.context.translations.loading=!1,(0,i.not)(this.context.translations.first)&&this.instance?.onLangChange(),this.context.translations.first=!1,this.runAsyncCallback())}runAsyncCallback(){if((0,i.not)(this.instance))return;const{state:e,theme:t}=this.asyncCallbackMap;this.clearAsyncCallbackMap(),t&&this.context.theme&&(this.theme=this.context.theme),e&&this.context.state&&(this.state=this.context.state)}disposePrevious(){this.instance&&this.delete("render"),this.context.entity=void 0,this.context.state=void 0,this.context.translations={loading:!1,first:!0},this.clearAsyncCallbackMap()}delete(e){delete this.instance[e]}clearState(){const e=this.instance;delete e.dataset,delete e.datasets,delete e.options}clearAsyncCallbackMap(){this.asyncCallbackMap.state=!1,this.asyncCallbackMap.theme=!1}}function f(){return(e,t)=>{const{set:n}=Object.getOwnPropertyDescriptor(e,t),o=t;return{set(e){if(this.context[o]=e,this.context.translations.loading)switch(o){case"state":return void(this.asyncCallbackMap.state=!0);case"theme":return void(this.asyncCallbackMap.theme=!0)}(0,i.not)(this.instance)?this.instantiate():n.call(this,e)}}}}h([f()],p.prototype,"renderEnv",null),h([f()],p.prototype,"theme",null),h([f()],p.prototype,"locale",null),h([f()],p.prototype,"state",null);var g,m,y,v=function(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)};class b extends HTMLElement{set renderEnv(e){v(this,y,"f").renderEnv=e}set widgetBasePath(e){}set locale(e){v(this,y,"f").locale=e}constructor(){super(),g.set(this,this.attachShadow({mode:"open"})),m.set(this,new r(this)),y.set(this,new p(v(this,g,"f"),{onReady:()=>{v(this,m,"f").dispatch(e.Ready,null)},onInteract:t=>{v(this,m,"f").dispatch(e.Interact,t)}})),new MutationObserver(t).observe(this,{attributes:!0})}provide(e,t){(e||t)&&(v(this,y,"f").state={...e,options:t})}provideTheme(e){v(this,y,"f").theme=e}highlight(e,t){v(this,y,"f").highlight(e,t)}}g=new WeakMap,m=new WeakMap,y=new WeakMap,customElements.define("polymatica-widget",b)})(),o})(),e.exports=t()},649:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDrilldownData=t.decodeDrilldownData=t.blockColorizeKey=t.blockSortKey=t.blockFilterKey=t.configDataBlock_Server=t.ConfigDataBlockType_Server=void 0,(n=t.ConfigDataBlockType_Server||(t.ConfigDataBlockType_Server={})).Column="column",n.Filter="filter",n.Sort="sort",n.Colorizer="colorizer",n.Drilldown="drilldown",t.configDataBlock_Server="8316067a-d04b-4b21-bd4d-35529846617b",t.blockFilterKey="34642664-dbd1-4e35-b0ea-2eaabe796b48",t.blockSortKey="2c849ed6-6105-4aa2-a961-9f95135dfe3b",t.blockColorizeKey="badd51f7-82ce-45b2-a67e-37d52df88c5c",t.decodeDrilldownData=function(e,t){const n=[o(e.length),e];return t.forEach((e=>n.push(o(e.length),e))),n.join("");function o(e){if(e>255)throw new RangeError;return e>15?`0x${e.toString(16)}`:`0x0${e.toString(16)}`}},t.encodeDrilldownData=function(e){const t=[];!function n(o=0){const a=o+4,r=a+parseInt(e.slice(o,a));t.push(e.slice(a,r)),r<e.length&&n(r)}();const[n,...o]=t;return{source:n,additionalFilterSources:o}}},661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetColumnType_Server=t.ColumnFieldType_Server=void 0;var o,a=n(764);Object.defineProperty(t,"ColumnFieldType_Server",{enumerable:!0,get:function(){return a.ColumnType}}),(o=t.DatasetColumnType_Server||(t.DatasetColumnType_Server={})).Dimension="dimension",o.Fact="fact",o.Any="any"},539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createColorizeColors=t.colorizeClassName=t.provideCssVariables=t.themeProjectKeys=t.themeKeys=void 0;const o=n(10);t.themeKeys=["background","backgroundBright","backgroundTint","text","textTint"],t.themeProjectKeys=["colors"];const a=document.querySelector("head"),r=document.querySelector("body"),i={};let s="",c="";function l(e,t){return`ptnl-colorize-${e}-${t}`}t.provideCssVariables=function({theme:e,themeKey:n,themeProjectKey:a}){const r=`ptnl-theme-${g(n)}`;if((0,o.not)(r in i)){const n=[];Object.entries(e).forEach((([e,o])=>{if(t.themeKeys.includes(e)){const t=g(e);Array.isArray(o)?o.forEach(((e,o)=>n.push({name:`--${t}-${o}`,value:e}))):n.push({name:`--${t}`,value:o})}})),p(r,[{className:r,cssProperties:n}])}s=f(s,r);const d=`ptnl-project-${a}`;if((0,o.not)(d in i)&&p(d,[{className:d,cssProperties:e.colors.map(((e,t)=>({name:`--ptnl-color-${t}`,value:e})))}]),c=f(c,d),(0,o.not)("colorize"in i)){const t=[];e.colorize.forEach(((e,n)=>{e.forEach(((e,o)=>t.push({className:l(n,o),cssProperties:[{name:"background-color",value:e}]})))})),p("colorize",t)}},t.colorizeClassName=l;const d=[...Array(10)].map(((e,t)=>t));t.createColorizeColors=function(e){return e.map((e=>{const[t,n,o]=function(e){const[,t,n,o]=e.match(u)||e.match(h)||[,"0","0","0"];return[parseInt(t,16),parseInt(n,16),parseInt(o,16)]}(e);return d.map((e=>`rgba(${t},${n},${o},${++e>9?"1":`0.${e}`})`))}))};const u=/([0-9abcdef]{2})([0-9abcdef]{2})([0-9abcdef]{2})/i,h=/([0-9abcdef])([0-9abcdef])([0-9abcdef])/i;function p(e,t){const n=document.createElement("style");i[e]=n;const o=[];t.forEach((({className:e,cssProperties:t})=>{o.push(".",e,"{\n"),t.forEach((({name:e,value:t})=>o.push(" ",e,": ",t,";\n"))),o.push("}\n")})),n.innerHTML=o.join(""),a.append(n)}function f(e,t){return e&&r.classList.remove(e),r.classList.add(t),t}function g(e){const t=Array(e.length);for(let n=0,o=e.length;n<o;n++){const o=e.charAt(n),a=o.toLowerCase();t[n]=o===a?o:"-"+a}return t.join("")}},386:(e,t)=>{"use strict";var n;function o(e,t){switch(e){case n.Input:case n.Radio:case n.Select:case n.ColorPicker:case n.TextArea:return t?String(t):"";case n.Checkbox:return Boolean(t);default:return""}}Object.defineProperty(t,"__esModule",{value:!0}),t.valueConversion=t.viewSettingsExtract=t.viewSettingsItemValue=t.ViewSettingsItemType=void 0,function(e){e.Input="text",e.Checkbox="checkbox",e.Radio="radio",e.Select="select",e.ColorPicker="color-picker",e.Title="title",e.TextArea="textArea"}(n=t.ViewSettingsItemType||(t.ViewSettingsItemType={})),t.viewSettingsItemValue="418d9556-a046-4623-be0b-4f4f69ccb783",t.viewSettingsExtract=function(e){return e.map((e=>e[t.viewSettingsItemValue])).map((e=>{return{type:e.type,key:e.key,label:e.label,defaultValue:o(e.type,e.defaultValue),options:e.options||[],span:(t=e.span,(t|=0)>24?24:t<0?0:t)};var t}))},t.valueConversion=o},897:(e,t)=>{"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Output=t.Input=void 0,(o=t.Input||(t.Input={})).Change="ptnl.input.change",o.ChangeLang="ptnl.input.changeLang",o.ChangeTheme="ptnl.input.changeTheme",o.ChangeOtherFilters="ptnl.input.ChangeOtherFilters",o.ChangeWidgetRenderEnv="ptnl.input.changeWidgetRenderEnv",(n=t.Output||(t.Output={})).Init="ptnl.output.init",n.Ready="ptnl.output.ready",n.SetFilter="ptnl.output.setFilter",n.RemoveFilterAt="ptnl.output.RemoveFilterAt",n.SetSort="ptnl.output.setSort",n.RemoveSortAt="ptnl.output.RemoveSortAt",n.Interact="ptnl.output.interact"},300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.provideDataTo=void 0;const o=n(649),a=n(757),r={setFilter(){},removeFilterAt(){},setSort(){},removeSortAt(){},interact(){}};function i(e,t){const n=t===a.widgetDefaultKey?e.dataSettings:e.dataSettings[t];return n?{events:n.events}:{events:{}}}t.provideDataTo=function(e,{dataOptionsMap:t,viewOptions:n},s=r){const c={},l={},d=window.parent.format?.[e.uid]||{};e.viewSettings={},Object.values(t).forEach((({data_option:t,rows:n,total:r})=>{c[t.key]=n;const u=t.dataset.columns_id.map((e=>({type:e.base_type,id:e.id,path:e.path,format:d[e.path]||(e=>e),name:e.name}))),h={},p=[],f=[],g=[];t.blocks.forEach((t=>{if(t.block_type!==o.ConfigDataBlockType_Server.Drilldown)switch(t.key){case o.blockFilterKey:t.columns.forEach((({column_id:e,action:t,value:n})=>{const o=u.find((({id:t})=>e===t));p.push({column:o,method:t,value:n})}));break;case o.blockSortKey:t.columns.forEach((({column_id:e,value:t})=>{const n=u.find((({id:t})=>e===t));f.push({column:n,direction:t})}));break;case o.blockColorizeKey:t.columns.forEach((({value:t})=>{const n=t,o=u.find((({id:e})=>n.columnId===e));g.push((0,a.createColorizeItem)(e,o,n))}));break;default:h[t.key]=t.columns.map((({column_id:e})=>u.find((t=>t.id===e))))}}));const m={columns:u,columnsByBlock:h,filters:p,sort:f,colorize:g,total:r,limit:t.limit_rows,offset:t.offset,...{...s,interact:s.interact.bind(t)},...i(e,t.key)};l[t.key]=m})),a.widgetDefaultKey in l?Object.assign(e,{data:c[a.widgetDefaultKey],dataSettings:l[a.widgetDefaultKey]}):Object.assign(e,{data:c,dataSettings:l}),e.viewSettings={},n.forEach((({key:t,value:n})=>e.viewSettings[t]=n))}},757:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatchChangeOtherFilters=t.createColorizeItem=t.widgetDefaultKey=void 0;const o=n(764);function a(e){return e||"transparent"}t.widgetDefaultKey="ffed0a4d-4a9d-417f-b502-eb50142c6956",t.createColorizeItem=function(e,t,n){const o=+n.max||0,r=+n.min||0,i=+n.threshold||0,s=n.colorAbove,c=n.colorBelow,l=o-i,d=i-r;return{column:t,getColor(t){if((t=+t||0)>o||t<r)return a();if(t>=i){const n=e.theme.colorize[s]||[];return a(t===o?n[n.length-1]:n[Math.floor((t-i)/l*n.length)])}{const n=e.theme.colorize[c]||[];return a(t===r?n[n.length-1]:n[Math.floor((i-t)/d*n.length)])}}}},t.dispatchChangeOtherFilters=function(e,t){t.forEach((({column_id:t,value:n})=>{const a=function(e,t){if(Array.isArray(e.data))return e.dataSettings;for(let n of Object.values(e.dataSettings))if(n.columns.find((({id:e})=>e===t)))return n;return null}(e,t);if(a&&"function"==typeof a.events.onOtherFilterChange){const e=a.columns.find((({id:e})=>e===t));e&&a.events.onOtherFilterChange({column:e,method:o.FilterMethod.InList,value:n})}}))}},836:(e,t,n)=>{"use strict";t.wD=t.y8=t.JG=void 0;n(764),n(649),n(661),n(386);var o,a;(a=t.JG||(t.JG={})).Table="table",a.Aggregate="aggregate",(o=t.y8||(t.y8={})).Group="group",o.Sum="sum",o.Average="avg",o.Min="min",o.Max="max",o.First="first",o.Last="last",function(e){e.AxisX="sys:axis-x",e.AxisY="sys:axis-y",e.Value="sys:value-column"}(t.wD||(t.wD={}));Symbol()},764:(e,t)=>{"use strict";var n,o,a,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Target=t.SortDirection=t.FilterMethod=t.ColumnType=void 0,(r=t.ColumnType||(t.ColumnType={})).String="string",r.Number="number",r.Boolean="boolean",r.Date="date",r.Array="array",r.Object="object",(a=t.FilterMethod||(t.FilterMethod={})).Equal="equally",a.NotEqual="not_equal",a.GreaterThen="gt",a.LessThen="lt",a.GreaterThenOrEqual="gte",a.LessThenOrEqual="lte",a.Period="period",a.DateList="date_list",a.InList="in_list",a.NotInList="nin_list",a.StartsOnIndex="starts_on_i",a.StartsOn="starts_on",a.EndsOnIndex="ends_on_i",a.EndsOn="ends_on",a.ContainsIndex="contains_i",a.Contains="contains",a.NotContainIndex="not_contain_i",a.NotContain="not_contain",(o=t.SortDirection||(t.SortDirection={})).Asc="ASC",o.Desc="DESC",(n=t.Target||(t.Target={})).Self="self",n.Other="other",n.All="all"},362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Declare=void 0;const o=n(10),a=n(764),r=n(897),i=n(300),s=n(539),c=n(757);function l(e,t){window.addEventListener("message",(({data:n})=>{n.type===e&&t(n.payload)}))}function d(e,t,n){const o={type:t,token:e,payload:n};window.parent.postMessage(o,"*")}function u(e){const t=e+"=",n=window.location.search.split(/[?&]/).find((e=>e.startsWith(t)));return n?n.slice(t.length):""}t.Declare=function(e){return(0,o.not)(e)&&(e={provideCssVariables:!1}),t=>{const n=new t,h=u("token"),p=u("uid");p&&(n.uid=p),Object.assign(n,{viewSettings:{},ready(){d(h,r.Output.Ready)}});const f={setFilter(e,t,n=a.Target.Self){(e={...e}).column={...e.column},delete e.column.format,d(h,r.Output.SetFilter,{filter:e,target:n,rowIndex:t})},removeFilterAt(e){d(h,r.Output.RemoveFilterAt,{index:e})},setSort(e,t=a.Target.Self){e&&((e={...e}).column={...e.column},delete e.column.format),d(h,r.Output.SetSort,{sort:e,target:t})},removeSortAt(e){d(h,r.Output.RemoveSortAt,{index:e})},interact(e){d(h,r.Output.Interact,{dataOptionId:this.id,dataIndex:e})}};let g=!1;return l(r.Input.Change,(e=>{(0,i.provideDataTo)(n,e,f),(0,o.not)(g)&&(g=!0,"function"==typeof n.onInit&&n.onInit()),"function"==typeof n.onChange&&n.onChange()})),l(r.Input.ChangeLang,(e=>{n.lang=e,n.onLangChange&&g&&n.onLangChange()})),l(r.Input.ChangeTheme,(t=>{n.theme=t.theme,e.provideCssVariables&&(0,s.provideCssVariables)(t),n.onThemeChange&&g&&n.onThemeChange()})),l(r.Input.ChangeOtherFilters,(e=>(0,c.dispatchChangeOtherFilters)(n,e))),l(r.Input.ChangeWidgetRenderEnv,(e=>{n.renderEnv=e})),d(h,r.Output.Init),t}}},391:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,a)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(362),t),a(n(830),t)},830:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetRenderEnv=t.Widget=void 0,t.Widget=class{constructor(){this.renderEnv=n.Default}ready(){}onInit(){}onThemeChange(){}onLangChange(){}},function(e){e.Default="default",e.Print="print"}(n=t.WidgetRenderEnv||(t.WidgetRenderEnv={}))}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{PolymaticaWidgetLegacy:()=>f});var e=n(10),t=n(391),a=n(836),r=n(764),i=n(649),s=n(757),c=n(897);function l(e){for(const t of e){const e=t.target;switch(t.attributeName){case"render-env":e.renderEnv=e.getAttribute("render-env");break;case"widget-base-path":e.widgetBasePath=e.getAttribute("widget-base-path");break;case"locale":e.locale=e.getAttribute("locale")}}}var d=n(279);const u=(e,t,n)=>{const o=new CustomEvent(t,{detail:n,bubbles:!0});e.dispatchEvent(o)};class h{get context(){return h.widgetContextMap.get(this.widget)}constructor(e){this.widget=e,this.token=this.createToken(),this.isReady=!1,window.addEventListener("message",(({data:e})=>{e.token===this.token&&this.process(e)}))}send(e,t){this.context.iframe.contentWindow?.postMessage({type:e,payload:t},"*")}process(e){switch(e.type){case c.Output.Init:{if(this.isReady)break;this.isReady=!0;const{context:e}=this;this.send(c.Input.ChangeWidgetRenderEnv,e.widgetRenderEnv||t.WidgetRenderEnv.Default),this.send(c.Input.ChangeTheme,e.theme),this.send(c.Input.ChangeLang,e.locale),this.send(c.Input.Change,e.widgetRepresent);break}case c.Output.Ready:u(this.widget,d.EventType.Ready,{});break;case c.Output.SetFilter:{const{filter:t,target:n,rowIndex:o}=e.payload;if(n===r.Target.Other){this.context.otherFilterColumnId=t.column.id;const e={datasetRef:{key:"default",index:0},columnId:t.column.id,rowIndex:o};u(this.widget,d.EventType.Interact,e)}break}}}createToken(){return Math.random().toString(16).slice(2)}}const p=new WeakMap;h.widgetContextMap=p;class f extends HTMLElement{set renderEnv(e){e===t.WidgetRenderEnv.Print&&m(this,{widgetRenderEnv:e})}set widgetBasePath(e){m(this,{widgetBasePath:e})}set locale(e){m(this,{locale:e})}set uid(e){this._uid=e}get uid(){return this._uid}constructor(){super();const e=this.attachShadow({mode:"closed"}),t=document.createElement("iframe"),n=document.createElement("style");n.textContent="\n:host {\n display: block;\n}\n\niframe {\n border: none;\n width: 100%;\n height: 100%;\n}\n",e.append(n);const o={iframe:t,inited:!1,shadowRoot:e,connector:new h(this),otherFilterColumnId:0};p.set(this,o),function(e){new MutationObserver(l).observe(e,{attributes:!0})}(this)}initFormatterToWindow(e,t){const n=window.format||{};n[t]=n[t]||{},e.columns.forEach((e=>{n[t][e.path]=e.format})),window.format=n}setDataConfig(e){m(this,{dataConfig:e})}provide(e,t){const{dataset:n}=e;this.uid&&this.initFormatterToWindow(n,this.uid);const o=Object.entries(n.columnsByBlock).map((([e,t])=>({key:e,block_type:i.ConfigDataBlockType_Server.Column,function:a.y8.Group,columns:t.map((e=>({column_id:e})))})));if(t?.sort?.length){const e={key:i.blockSortKey,block_type:i.ConfigDataBlockType_Server.Sort,function:null,columns:t.sort.map((({column_id:e,direction:t})=>({column_id:e,value:t})))};o.push(e)}if(t?.filters){const e={key:i.blockFilterKey,block_type:i.ConfigDataBlockType_Server.Filter,function:null,columns:t.filters.map((({column_id:e,action:t,value:n})=>({column_id:e,action:t,value:n})))};o.push(e)}const r=n.columns.map((e=>({id:e.id,name:e.name,path:e.path,base_type:e.type})));m(this,{uid:this.uid,widgetRepresent:{dataOptionsMap:{[s.widgetDefaultKey]:{data_option:{key:s.widgetDefaultKey,id:0,dataset:{id:0,name:"",columns_id:r},method:a.JG.Aggregate,limit_rows:-1,offset:0,blocks:o},rows:n.rows,total:n.rows.length}},viewOptions:Object.entries(t||{}).map((([e,t])=>({key:e,value:t})))}})}provideTheme(e){m(this,{theme:{theme:{background:"rgb(241, 241, 242)",backgroundBright:"rgb(32, 33, 39)",backgroundTint:["rgb(230, 230, 234)","rgb(208, 208, 213)","rgb(163, 163, 172)","rgb(118, 118, 133)","rgb(64, 64, 83)","rgb(32, 33, 39)"],text:"rgb(0, 175, 215)",textTint:["#0d131e","#111827","#1f2937","#374151","#4b5563"],colors:e.palette,colorize:e.heatmap??[]},themeKey:"polymatica",themeProjectKey:"polymatica"}})}highlight(e,t){const{connector:n,otherFilterColumnId:o,widgetRepresent:a}=g(this),i=[],l=a?.dataOptionsMap[s.widgetDefaultKey];if(l){const e=l.data_option.dataset.columns_id.find((({id:e})=>e===o));e&&t.forEach((t=>{t in l.rows&&i.push(l.rows[t][e.path])}))}n.send(c.Input.ChangeOtherFilters,[{column_id:o,value:i,action:r.FilterMethod.InList}])}setInteractColumnId(e){g(this).otherFilterColumnId=e}}function g(e){return p.get(e)}function m(t,n){const o=g(t);Object.assign(o,n);const{iframe:a,inited:r,widgetRepresent:i,locale:s,theme:l,widgetBasePath:d}=o;if(!((0,e.not)(i)||(0,e.not)(s)||(0,e.not)(l)||(0,e.not)(d)))if((0,e.not)(r)){o.inited=!0;let t=d;(0,e.not)(t.endsWith("/"))&&(t+="/"),t+=`index.html?token=${o.connector.token}`,o.uid&&(t+=`&uid=${o.uid}`),a.src=t,o.shadowRoot.append(a)}else{const{connector:e}=o;n.theme&&e.send(c.Input.ChangeTheme,l),n.locale&&e.send(c.Input.ChangeLang,s),n.widgetRepresent&&e.send(c.Input.Change,i)}}customElements.define("polymatica-widget-legacy",f)})(),o})()));
|
|
1
|
+
/*
|
|
2
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
+
* This devtool is neither made for production nor for readable output files.
|
|
4
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
+
* or disable the default devtool with "devtool: false".
|
|
7
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
+
*/
|
|
9
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
+
module.exports = factory();
|
|
12
|
+
else if(typeof define === 'function' && define.amd)
|
|
13
|
+
define([], factory);
|
|
14
|
+
else if(typeof exports === 'object')
|
|
15
|
+
exports["PolymaticaWidgetComponentLegacy"] = factory();
|
|
16
|
+
else
|
|
17
|
+
root["PolymaticaWidgetComponentLegacy"] = factory();
|
|
18
|
+
})(self, () => {
|
|
19
|
+
return /******/ (() => { // webpackBootstrap
|
|
20
|
+
/******/ var __webpack_modules__ = ({
|
|
21
|
+
|
|
22
|
+
/***/ "./node_modules/logical-not/index.js":
|
|
23
|
+
/*!*******************************************!*\
|
|
24
|
+
!*** ./node_modules/logical-not/index.js ***!
|
|
25
|
+
\*******************************************/
|
|
26
|
+
/***/ ((module) => {
|
|
27
|
+
|
|
28
|
+
eval("/**\n * @param {any} value\n * @returns {boolean}\n */\nfunction not(value) {\n return !value;\n}\n\nmodule.exports = Object.defineProperties(not, {\n default: { value: not },\n not: { value: not },\n __esModule: { value: true },\n});\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/logical-not/index.js?");
|
|
29
|
+
|
|
30
|
+
/***/ }),
|
|
31
|
+
|
|
32
|
+
/***/ "./node_modules/polymatica-widget-component/polymatica-widget-component.js":
|
|
33
|
+
/*!*********************************************************************************!*\
|
|
34
|
+
!*** ./node_modules/polymatica-widget-component/polymatica-widget-component.js ***!
|
|
35
|
+
\*********************************************************************************/
|
|
36
|
+
/***/ ((module) => {
|
|
37
|
+
|
|
38
|
+
eval("/*\n * ATTENTION: The \"eval\" devtool has been used (maybe by default in mode: \"development\").\n * This devtool is neither made for production nor for readable output files.\n * It uses \"eval()\" calls to create a separate source file in the browser devtools.\n * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)\n * or disable the default devtool with \"devtool: false\".\n * If you are looking for production-ready output files, see mode: \"production\" (https://webpack.js.org/configuration/mode/).\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\t\tmodule.exports = factory();\n\telse {}\n})(self, () => {\nreturn /******/ (() => { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ \"./node_modules/logical-not/index.js\":\n/*!*******************************************!*\\\n !*** ./node_modules/logical-not/index.js ***!\n \\*******************************************/\n/***/ ((module) => {\n\neval(\"/**\\n * @param {any} value\\n * @returns {boolean}\\n */\\nfunction not(value) {\\n return !value;\\n}\\n\\nmodule.exports = Object.defineProperties(not, {\\n default: { value: not },\\n not: { value: not },\\n __esModule: { value: true },\\n});\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./node_modules/logical-not/index.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/polymatica-jsx/core/jsx-element-type.js\":\n/*!**************************************************************!*\\\n !*** ./node_modules/polymatica-jsx/core/jsx-element-type.js ***!\n \\**************************************************************/\n/***/ ((__unused_webpack_module, exports) => {\n\n\"use strict\";\neval(\"\\nObject.defineProperty(exports, \\\"__esModule\\\", ({ value: true }));\\nexports.JsxElementType = void 0;\\nvar JsxElementType;\\n(function (JsxElementType) {\\n JsxElementType[\\\"Component\\\"] = \\\"component\\\";\\n JsxElementType[\\\"Primitive\\\"] = \\\"primitive\\\";\\n})(JsxElementType = exports.JsxElementType || (exports.JsxElementType = {}));\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./node_modules/polymatica-jsx/core/jsx-element-type.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/polymatica-jsx/internal/tokens.js\":\n/*!********************************************************!*\\\n !*** ./node_modules/polymatica-jsx/internal/tokens.js ***!\n \\********************************************************/\n/***/ ((__unused_webpack_module, exports) => {\n\n\"use strict\";\neval(\"\\nObject.defineProperty(exports, \\\"__esModule\\\", ({ value: true }));\\nexports.listeners = exports.elementBindings = void 0;\\nexports.elementBindings = \\\"⇠ element bindings\\\";\\nexports.listeners = \\\"⇠ listeners\\\";\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./node_modules/polymatica-jsx/internal/tokens.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/polymatica-jsx/renderer/index.js\":\n/*!*******************************************************!*\\\n !*** ./node_modules/polymatica-jsx/renderer/index.js ***!\n \\*******************************************************/\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n var desc = Object.getOwnPropertyDescriptor(m, k);\\n if (!desc || (\\\"get\\\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\\n desc = { enumerable: true, get: function() { return m[k]; } };\\n }\\n Object.defineProperty(o, k2, desc);\\n}) : (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n o[k2] = m[k];\\n}));\\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\\n for (var p in m) if (p !== \\\"default\\\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\\n};\\nObject.defineProperty(exports, \\\"__esModule\\\", ({ value: true }));\\n__exportStar(__webpack_require__(/*! ./renderer */ \\\"./node_modules/polymatica-jsx/renderer/renderer.js\\\"), exports);\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./node_modules/polymatica-jsx/renderer/index.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/polymatica-jsx/renderer/renderer.js\":\n/*!**********************************************************!*\\\n !*** ./node_modules/polymatica-jsx/renderer/renderer.js ***!\n \\**********************************************************/\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\neval(\"\\nObject.defineProperty(exports, \\\"__esModule\\\", ({ value: true }));\\nexports.Renderer = void 0;\\nconst logical_not_1 = __webpack_require__(/*! logical-not */ \\\"./node_modules/logical-not/index.js\\\");\\nconst jsx_element_type_1 = __webpack_require__(/*! ../core/jsx-element-type */ \\\"./node_modules/polymatica-jsx/core/jsx-element-type.js\\\");\\nconst tokens_1 = __webpack_require__(/*! ../internal/tokens */ \\\"./node_modules/polymatica-jsx/internal/tokens.js\\\");\\nclass Renderer {\\n #renderTarget;\\n #component;\\n #baseUrl;\\n constructor(renderRoot, component, baseUrl) {\\n renderRoot.innerHTML = `<div style=\\\"display: contents;\\\"></div>`;\\n this.#renderTarget = renderRoot.querySelector(\\\"div\\\");\\n this.#component = component;\\n this.#baseUrl = baseUrl;\\n this.#addListeners(component);\\n }\\n renderHead(element) {\\n const html = render(element, {\\n target: RenderTarget.Head,\\n baseUrl: this.#baseUrl,\\n });\\n this.#renderTarget.insertAdjacentHTML(\\\"beforebegin\\\", html);\\n }\\n render(element) {\\n this.#renderTarget.innerHTML = render(element, {\\n target: RenderTarget.Body,\\n baseUrl: this.#baseUrl,\\n });\\n this.#updateBindingElements();\\n }\\n #addListeners(component) {\\n const source = component.constructor?.[tokens_1.listeners];\\n if (Array.isArray(source)) {\\n const root = this.#renderTarget;\\n source.forEach(({ eventName, selector, callbackName }) => {\\n const callback = component[callbackName];\\n if (typeof callback !== \\\"function\\\")\\n return;\\n root.addEventListener(eventName, (event) => {\\n if ((0, logical_not_1.not)(selector))\\n callback.call(component, event);\\n if ((0, logical_not_1.not)(event.target))\\n return;\\n let node = event.target;\\n while (node) {\\n if (node === root)\\n break;\\n const matched = node instanceof HTMLElement &&\\n node.matches(selector);\\n if (matched) {\\n callback.call(component, node, event);\\n break;\\n }\\n if (node.parentElement)\\n node = node.parentElement;\\n else\\n break;\\n }\\n });\\n });\\n }\\n }\\n #updateBindingElements() {\\n const component = this.#component;\\n const source = component.constructor?.[tokens_1.elementBindings];\\n if (Array.isArray(source)) {\\n const renderTarget = this.#renderTarget;\\n source.forEach(({ propertyName, selector, multi }) => {\\n component[propertyName] = multi\\n ? renderTarget.querySelectorAll(selector)\\n : renderTarget.querySelector(selector) || void 0;\\n });\\n }\\n }\\n}\\nexports.Renderer = Renderer;\\nvar RenderTarget;\\n(function (RenderTarget) {\\n RenderTarget[RenderTarget[\\\"Head\\\"] = 0] = \\\"Head\\\";\\n RenderTarget[RenderTarget[\\\"Body\\\"] = 1] = \\\"Body\\\";\\n})(RenderTarget || (RenderTarget = {}));\\nfunction render(element, env) {\\n switch (element.type) {\\n case jsx_element_type_1.JsxElementType.Component:\\n return renderJsxElement(element, env);\\n case jsx_element_type_1.JsxElementType.Primitive:\\n return element.value;\\n }\\n}\\nfunction renderJsxElement(element, env) {\\n const { tagName: tag } = element;\\n if ((0, logical_not_1.not)(tag))\\n return renderChildren(element.children, env);\\n switch (tag) {\\n case \\\"link\\\":\\n if (env.target !== RenderTarget.Head)\\n return \\\"\\\";\\n fixLink(element.attributes, \\\"href\\\", env.baseUrl);\\n case \\\"script\\\":\\n if (env.target !== RenderTarget.Head)\\n return \\\"\\\";\\n fixLink(element.attributes, \\\"src\\\", env.baseUrl);\\n }\\n const attrubutes = renderAttributes(element.attributes);\\n switch (tag) {\\n case \\\"input\\\":\\n return `<${tag} ${attrubutes} />`;\\n }\\n const children = renderChildren(element.children, env);\\n return `<${tag} ${attrubutes}>${children}</${tag}>`;\\n}\\nfunction fixLink(target, propertyName, baseUrl) {\\n if ((0, logical_not_1.not)(propertyName in target))\\n return;\\n try {\\n const url = new URL(target[propertyName], baseUrl);\\n target[propertyName] = url.toString();\\n }\\n catch (_) {\\n delete target[propertyName];\\n }\\n}\\nfunction renderAttributes(attributes) {\\n const strings = Object.entries(attributes).map(([name, value]) => {\\n if (name === \\\"data\\\")\\n return renderDataAttributes(value);\\n if (name === \\\"style\\\" && value instanceof Object)\\n value = renderCss(value);\\n return `${name}=\\\"${value}\\\"`;\\n });\\n return strings.join(\\\"\\\");\\n}\\nfunction renderChildren(children, env) {\\n const strings = children.map(child => {\\n switch (child.type) {\\n case jsx_element_type_1.JsxElementType.Component:\\n return renderJsxElement(child, env);\\n case jsx_element_type_1.JsxElementType.Primitive:\\n return child.value;\\n }\\n });\\n return strings.join(\\\"\\\");\\n}\\nfunction renderCss(source) {\\n const strings = Object.entries(source).map(([name, value]) => {\\n return `${toKebabCase(name)}: ${value};`;\\n });\\n return strings.join(\\\"\\\");\\n}\\nfunction toKebabCase(source) {\\n return source.replace(/[A-Z]/g, char => `-${char.toLowerCase()}`);\\n}\\nfunction renderDataAttributes(map) {\\n const strings = Object.entries(map).map(([name, value]) => `data-${name}=\\\"${value}\\\"`);\\n return strings.join(\\\" \\\");\\n}\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./node_modules/polymatica-jsx/renderer/renderer.js?\");\n\n/***/ }),\n\n/***/ \"./src/events.ts\":\n/*!***********************!*\\\n !*** ./src/events.ts ***!\n \\***********************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ \\\"EventType\\\": () => (/* binding */ EventType)\\n/* harmony export */ });\\nvar EventType;\\n(function (EventType) {\\n EventType[\\\"Ready\\\"] = \\\"plmt-ready\\\";\\n EventType[\\\"Interact\\\"] = \\\"plmt-interact\\\";\\n EventType[\\\"Effect\\\"] = \\\"plmt-effect\\\";\\n})(EventType || (EventType = {}));\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/events.ts?\");\n\n/***/ }),\n\n/***/ \"./src/index.ts\":\n/*!**********************!*\\\n !*** ./src/index.ts ***!\n \\**********************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ \\\"EventType\\\": () => (/* reexport safe */ _events__WEBPACK_IMPORTED_MODULE_0__.EventType),\\n/* harmony export */ \\\"PolymaticaWidget\\\": () => (/* reexport safe */ _polymatica_widget_component__WEBPACK_IMPORTED_MODULE_1__.PolymaticaWidget)\\n/* harmony export */ });\\n/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./events */ \\\"./src/events.ts\\\");\\n/* harmony import */ var _polymatica_widget_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./polymatica-widget-component */ \\\"./src/polymatica-widget-component.ts\\\");\\n/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./interfaces */ \\\"./src/interfaces/index.ts\\\");\\n\\n\\n\\n\\n\\ncustomElements.define(\\\"polymatica-widget\\\", _polymatica_widget_component__WEBPACK_IMPORTED_MODULE_1__.PolymaticaWidget);\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/index.ts?\");\n\n/***/ }),\n\n/***/ \"./src/interfaces/data.ts\":\n/*!********************************!*\\\n !*** ./src/interfaces/data.ts ***!\n \\********************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/interfaces/data.ts?\");\n\n/***/ }),\n\n/***/ \"./src/interfaces/index.ts\":\n/*!*********************************!*\\\n !*** ./src/interfaces/index.ts ***!\n \\*********************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data */ \\\"./src/interfaces/data.ts\\\");\\n\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/interfaces/index.ts?\");\n\n/***/ }),\n\n/***/ \"./src/polymatica-widget-component.ts\":\n/*!********************************************!*\\\n !*** ./src/polymatica-widget-component.ts ***!\n \\********************************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ \\\"PolymaticaWidget\\\": () => (/* binding */ PolymaticaWidget)\\n/* harmony export */ });\\n/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./events */ \\\"./src/events.ts\\\");\\n/* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tools */ \\\"./src/tools/index.ts\\\");\\nvar __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {\\n if (kind === \\\"a\\\" && !f) throw new TypeError(\\\"Private accessor was defined without a getter\\\");\\n if (typeof state === \\\"function\\\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\\\"Cannot read private member from an object whose class did not declare it\\\");\\n return kind === \\\"m\\\" ? f : kind === \\\"a\\\" ? f.call(receiver) : f ? f.value : state.get(receiver);\\n};\\nvar _PolymaticaWidget_shadowRoot, _PolymaticaWidget_eventEmitter, _PolymaticaWidget_widgetManager;\\n\\n\\nclass PolymaticaWidget extends HTMLElement {\\n set renderEnv(renderEnv) {\\n __classPrivateFieldGet(this, _PolymaticaWidget_widgetManager, \\\"f\\\").renderEnv = renderEnv;\\n }\\n set widgetBasePath(value) {\\n // TODO\\n }\\n set locale(value) {\\n __classPrivateFieldGet(this, _PolymaticaWidget_widgetManager, \\\"f\\\").locale = value;\\n }\\n constructor() {\\n super();\\n _PolymaticaWidget_shadowRoot.set(this, this.attachShadow({ mode: \\\"open\\\" }));\\n _PolymaticaWidget_eventEmitter.set(this, new _tools__WEBPACK_IMPORTED_MODULE_1__.EventEmitter(this));\\n _PolymaticaWidget_widgetManager.set(this, new _tools__WEBPACK_IMPORTED_MODULE_1__.WidgetManager(__classPrivateFieldGet(this, _PolymaticaWidget_shadowRoot, \\\"f\\\"), {\\n onReady: () => {\\n __classPrivateFieldGet(this, _PolymaticaWidget_eventEmitter, \\\"f\\\").dispatch(_events__WEBPACK_IMPORTED_MODULE_0__.EventType.Ready, null);\\n },\\n onInteract: event => {\\n __classPrivateFieldGet(this, _PolymaticaWidget_eventEmitter, \\\"f\\\").dispatch(_events__WEBPACK_IMPORTED_MODULE_0__.EventType.Interact, event);\\n },\\n }));\\n (0,_tools__WEBPACK_IMPORTED_MODULE_1__.attributesWatcher)(this);\\n }\\n provide(data, options) {\\n if (data || options)\\n __classPrivateFieldGet(this, _PolymaticaWidget_widgetManager, \\\"f\\\").state = { ...data, options };\\n }\\n provideTheme(theme) {\\n __classPrivateFieldGet(this, _PolymaticaWidget_widgetManager, \\\"f\\\").theme = theme;\\n }\\n highlight(datasetRef, rowIndexArray) {\\n __classPrivateFieldGet(this, _PolymaticaWidget_widgetManager, \\\"f\\\").highlight(datasetRef, rowIndexArray);\\n }\\n}\\n_PolymaticaWidget_shadowRoot = new WeakMap(), _PolymaticaWidget_eventEmitter = new WeakMap(), _PolymaticaWidget_widgetManager = new WeakMap();\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/polymatica-widget-component.ts?\");\n\n/***/ }),\n\n/***/ \"./src/tools/attributes-watcher.ts\":\n/*!*****************************************!*\\\n !*** ./src/tools/attributes-watcher.ts ***!\n \\*****************************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ \\\"attributesWatcher\\\": () => (/* binding */ attributesWatcher)\\n/* harmony export */ });\\nfunction attributesWatcher(widget) {\\n const observer = new MutationObserver(onAttributeChange);\\n observer.observe(widget, { attributes: true });\\n}\\nfunction onAttributeChange(mutations) {\\n for (const mutation of mutations) {\\n const component = mutation.target;\\n const { attributeName } = mutation;\\n switch (attributeName) {\\n case \\\"render-env\\\":\\n component.renderEnv = valueOf(component, \\\"render-env\\\");\\n break;\\n case \\\"widget-base-path\\\":\\n component.widgetBasePath = valueOf(component, \\\"widget-base-path\\\");\\n break;\\n case \\\"locale\\\":\\n component.locale = valueOf(component, \\\"locale\\\");\\n break;\\n }\\n }\\n}\\nfunction valueOf(component, name) {\\n return component.getAttribute(name) || \\\"\\\";\\n}\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/tools/attributes-watcher.ts?\");\n\n/***/ }),\n\n/***/ \"./src/tools/event-emitter.ts\":\n/*!************************************!*\\\n !*** ./src/tools/event-emitter.ts ***!\n \\************************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ \\\"EventEmitter\\\": () => (/* binding */ EventEmitter)\\n/* harmony export */ });\\nclass EventEmitter {\\n constructor(component) {\\n this.component = component;\\n }\\n dispatch(type, detail) {\\n const event = new CustomEvent(type, { detail, bubbles: true });\\n this.component.dispatchEvent(event);\\n }\\n}\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/tools/event-emitter.ts?\");\n\n/***/ }),\n\n/***/ \"./src/tools/index.ts\":\n/*!****************************!*\\\n !*** ./src/tools/index.ts ***!\n \\****************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ \\\"EventEmitter\\\": () => (/* reexport safe */ _event_emitter__WEBPACK_IMPORTED_MODULE_1__.EventEmitter),\\n/* harmony export */ \\\"WidgetManager\\\": () => (/* reexport safe */ _widget_manager__WEBPACK_IMPORTED_MODULE_2__.WidgetManager),\\n/* harmony export */ \\\"WidgetStateManager\\\": () => (/* reexport safe */ _widget_state_manager__WEBPACK_IMPORTED_MODULE_3__.WidgetStateManager),\\n/* harmony export */ \\\"attributesWatcher\\\": () => (/* reexport safe */ _attributes_watcher__WEBPACK_IMPORTED_MODULE_0__.attributesWatcher)\\n/* harmony export */ });\\n/* harmony import */ var _attributes_watcher__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./attributes-watcher */ \\\"./src/tools/attributes-watcher.ts\\\");\\n/* harmony import */ var _event_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./event-emitter */ \\\"./src/tools/event-emitter.ts\\\");\\n/* harmony import */ var _widget_manager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./widget-manager */ \\\"./src/tools/widget-manager.ts\\\");\\n/* harmony import */ var _widget_state_manager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./widget-state-manager */ \\\"./src/tools/widget-state-manager.ts\\\");\\n\\n\\n\\n\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/tools/index.ts?\");\n\n/***/ }),\n\n/***/ \"./src/tools/translations-loader.ts\":\n/*!******************************************!*\\\n !*** ./src/tools/translations-loader.ts ***!\n \\******************************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ \\\"TranslationsLoader\\\": () => (/* binding */ TranslationsLoader)\\n/* harmony export */ });\\nclass TranslationsLoader {\\n constructor() {\\n this.cache = Object.create(null);\\n }\\n load(widgetBasePath, locale) {\\n const url = `${widgetBasePath}/assets/i18n/${locale}.json`;\\n if (this.cache[url])\\n return Promise.resolve(this.cache[url]);\\n return fetch(url)\\n .then(response => {\\n return response.json();\\n })\\n .then(translations => {\\n this.cache[url] = translations;\\n return translations;\\n });\\n }\\n}\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/tools/translations-loader.ts?\");\n\n/***/ }),\n\n/***/ \"./src/tools/widget-manager.ts\":\n/*!*************************************!*\\\n !*** ./src/tools/widget-manager.ts ***!\n \\*************************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ \\\"WidgetManager\\\": () => (/* binding */ WidgetManager)\\n/* harmony export */ });\\n/* harmony import */ var logical_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! logical-not */ \\\"./node_modules/logical-not/index.js\\\");\\n/* harmony import */ var logical_not__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(logical_not__WEBPACK_IMPORTED_MODULE_0__);\\n/* harmony import */ var polymatica_jsx_renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! polymatica-jsx/renderer */ \\\"./node_modules/polymatica-jsx/renderer/index.js\\\");\\n/* harmony import */ var polymatica_jsx_renderer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(polymatica_jsx_renderer__WEBPACK_IMPORTED_MODULE_1__);\\n/* harmony import */ var _translations_loader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./translations-loader */ \\\"./src/tools/translations-loader.ts\\\");\\n/* harmony import */ var _widget_state_manager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./widget-state-manager */ \\\"./src/tools/widget-state-manager.ts\\\");\\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\\n if (typeof Reflect === \\\"object\\\" && typeof Reflect.decorate === \\\"function\\\") r = Reflect.decorate(decorators, target, key, desc);\\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\\n return c > 3 && r && Object.defineProperty(target, key, r), r;\\n};\\n\\n\\n\\n\\nclass WidgetManager {\\n set renderEnv(_) { }\\n set theme(theme) {\\n this.instance.theme = theme;\\n this.instance.onThemeChange();\\n }\\n set locale(locale) {\\n this.loadTranslations(locale);\\n }\\n set state(state) {\\n this.clearState();\\n this.stateManager.apply(this.instance, state);\\n this.instance.onChange();\\n }\\n constructor(shadowRoot, events) {\\n this.shadowRoot = shadowRoot;\\n this.events = events;\\n this.context = {\\n translations: createTranslations(),\\n };\\n this.stateManager = new _widget_state_manager__WEBPACK_IMPORTED_MODULE_3__.WidgetStateManager({\\n onInteract: this.events.onInteract,\\n });\\n this.asyncCallbackMap = {\\n state: false,\\n theme: false,\\n };\\n this.translationsLoader = new _translations_loader__WEBPACK_IMPORTED_MODULE_2__.TranslationsLoader();\\n }\\n provideWidgetEntity(entity, widgetBasePath) {\\n this.context.entity = entity;\\n this.context.widgetBasePath = widgetBasePath;\\n this.instantiate();\\n }\\n highlight(datasetRef, rowIndexArray) {\\n const dataset = this.stateManager.getDatasetByRef(datasetRef);\\n dataset?.events.onHighlight(rowIndexArray);\\n }\\n async instantiate() {\\n const { entity, renderEnv, theme, locale, state, widgetBasePath } = this.context;\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(entity))\\n return;\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(renderEnv))\\n return;\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(theme))\\n return;\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(locale))\\n return;\\n const instance = new entity.Widget();\\n this.disposePrevious();\\n this.instance = instance;\\n instance.renderEnv = renderEnv;\\n instance.theme = theme;\\n instance.ready = () => {\\n this.events.onReady();\\n };\\n const renderer = new polymatica_jsx_renderer__WEBPACK_IMPORTED_MODULE_1__.Renderer(this.shadowRoot, instance, widgetBasePath);\\n const headJsx = instance.renderHead();\\n if (headJsx)\\n renderer.renderHead(headJsx);\\n const render = instance.render;\\n instance.render = () => {\\n const element = render.call(instance);\\n renderer.render(element);\\n return element;\\n };\\n instance.init();\\n if (entity.config.useTranslations)\\n this.loadTranslations(locale);\\n if (state)\\n this.state = state;\\n }\\n async loadTranslations(locale) {\\n const { widgetBasePath } = this.context;\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(widgetBasePath))\\n return;\\n const { instance } = this;\\n this.context.translations.loading = true;\\n const translations = await this.translationsLoader.load(widgetBasePath, locale);\\n if (this.context.locale !== locale)\\n return;\\n if (this.instance !== instance)\\n return;\\n if (this.instance)\\n this.instance.translate = (key, interpolate) => {\\n const translation = translations[key];\\n if (typeof translation !== \\\"string\\\")\\n return \\\"\\\";\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(interpolate))\\n return translation;\\n return translation.replace(/\\\\{\\\\{(.+?)\\\\}\\\\}/g, (_, key) => {\\n if (interpolate[key] === 0)\\n return \\\"0\\\";\\n return interpolate[key] || \\\"\\\";\\n });\\n };\\n this.context.translations.loading = false;\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(this.context.translations.first))\\n this.instance?.onLangChange();\\n this.context.translations.first = false;\\n this.runAsyncCallback();\\n }\\n runAsyncCallback() {\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(this.instance))\\n return;\\n const { state, theme } = this.asyncCallbackMap;\\n this.clearAsyncCallbackMap();\\n if (theme && this.context.theme)\\n this.theme = this.context.theme;\\n if (state && this.context.state)\\n this.state = this.context.state;\\n }\\n disposePrevious() {\\n if (this.instance)\\n this.delete(\\\"render\\\");\\n this.context.entity = void 0;\\n this.context.state = void 0;\\n this.context.translations = createTranslations();\\n this.clearAsyncCallbackMap();\\n }\\n delete(key) {\\n delete this.instance[key];\\n }\\n clearState() {\\n const instance = this.instance;\\n delete instance.dataset;\\n delete instance.datasets;\\n delete instance.options;\\n }\\n clearAsyncCallbackMap() {\\n this.asyncCallbackMap.state = false;\\n this.asyncCallbackMap.theme = false;\\n }\\n}\\n__decorate([\\n InstanceSetter()\\n], WidgetManager.prototype, \\\"renderEnv\\\", null);\\n__decorate([\\n InstanceSetter()\\n], WidgetManager.prototype, \\\"theme\\\", null);\\n__decorate([\\n InstanceSetter()\\n], WidgetManager.prototype, \\\"locale\\\", null);\\n__decorate([\\n InstanceSetter()\\n], WidgetManager.prototype, \\\"state\\\", null);\\nfunction InstanceSetter() {\\n return (target, propertyName) => {\\n const { set } = Object.getOwnPropertyDescriptor(target, propertyName);\\n const key = propertyName;\\n return {\\n set(value) {\\n this.context[key] = value;\\n if (this.context.translations.loading)\\n switch (key) {\\n case \\\"state\\\":\\n this.asyncCallbackMap.state = true;\\n return;\\n case \\\"theme\\\":\\n this.asyncCallbackMap.theme = true;\\n return;\\n }\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(this.instance))\\n this.instantiate();\\n else\\n set.call(this, value);\\n },\\n };\\n };\\n}\\nfunction createTranslations() {\\n return {\\n loading: false,\\n first: true,\\n };\\n}\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/tools/widget-manager.ts?\");\n\n/***/ }),\n\n/***/ \"./src/tools/widget-state-manager.ts\":\n/*!*******************************************!*\\\n !*** ./src/tools/widget-state-manager.ts ***!\n \\*******************************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ \\\"WidgetStateManager\\\": () => (/* binding */ WidgetStateManager)\\n/* harmony export */ });\\n/* harmony import */ var logical_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! logical-not */ \\\"./node_modules/logical-not/index.js\\\");\\n/* harmony import */ var logical_not__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(logical_not__WEBPACK_IMPORTED_MODULE_0__);\\n\\nclass WidgetStateManager {\\n constructor(events) {\\n this.events = events;\\n this.datasetsByRef = Object.create(null);\\n }\\n apply(instance, state) {\\n if (isWidgetSingleData(state))\\n instance.dataset = this.createWidgetDataset(state.dataset, {\\n key: \\\"default\\\",\\n index: 0,\\n });\\n else if (isWidgetRepeatableData(state)) {\\n instance.datasets = state.datasets.map((source, index) => this.createWidgetDataset(source, {\\n key: \\\"default\\\",\\n index,\\n }));\\n }\\n else if (isWidgetMultiData(state)) {\\n instance.datasets = {};\\n Object.entries(state.datasets).forEach(([key, source]) => {\\n const value = Array.isArray(source)\\n ? source.map((source, index) => this.createWidgetDataset(source, { key, index }))\\n : this.createWidgetDataset(source, { key, index: 0 });\\n instance.datasets[key] = value;\\n });\\n }\\n if (state.options)\\n instance.options = state.options;\\n }\\n getDatasetByRef({ key, index }) {\\n return this.datasetsByRef[key]?.[index];\\n }\\n reset() {\\n this.datasetsByRef = Object.create(null);\\n }\\n createWidgetDataset(source, datasetRef) {\\n const { events } = this;\\n const { name, rows } = source;\\n const columnsById = {};\\n const columns = source.columns.map(source => {\\n const columnId = source.id;\\n const column = {\\n ...exclude(source, \\\"id\\\"),\\n interact(rowIndex) {\\n events.onInteract({\\n datasetRef,\\n columnId,\\n rowIndex,\\n });\\n },\\n };\\n columnsById[columnId] = column;\\n return column;\\n });\\n const columnsByBlock = {};\\n Object.entries(source.columnsByBlock).forEach(([blockName, columnIds]) => {\\n columnsByBlock[blockName] = [];\\n columnIds.forEach(columnId => {\\n const column = columnsById[columnId];\\n if (column)\\n columnsByBlock[blockName].push(column);\\n });\\n });\\n const dataset = {\\n name,\\n columns,\\n columnsByBlock,\\n rows,\\n heatmap: {},\\n events: {\\n onHighlight() { },\\n },\\n };\\n setDataset: {\\n const { datasetsByRef } = this;\\n const { key, index } = datasetRef;\\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(datasetsByRef[key]))\\n datasetsByRef[key] = [];\\n datasetsByRef[key][index] = dataset;\\n }\\n return dataset;\\n }\\n}\\nfunction isWidgetSingleData(source) {\\n return source.dataset;\\n}\\nfunction isWidgetRepeatableData(source) {\\n return Array.isArray(source.datasets);\\n}\\nfunction isWidgetMultiData(source) {\\n return source.datasets && (0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(isWidgetRepeatableData(source));\\n}\\nfunction exclude(source, key) {\\n const target = {};\\n Object.entries(source).forEach(([property, value]) => {\\n if (property !== key)\\n target[property] = value;\\n });\\n return target;\\n}\\n\\n\\n//# sourceURL=webpack://PolymaticaWidgetComponent/./src/tools/widget-state-manager.ts?\");\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __nested_webpack_require_35735__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \t\tif (cachedModule !== undefined) {\n/******/ \t\t\treturn cachedModule.exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_35735__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/compat get default export */\n/******/ \t(() => {\n/******/ \t\t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t\t__nested_webpack_require_35735__.n = (module) => {\n/******/ \t\t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t\t() => (module['default']) :\n/******/ \t\t\t\t() => (module);\n/******/ \t\t\t__nested_webpack_require_35735__.d(getter, { a: getter });\n/******/ \t\t\treturn getter;\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t(() => {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__nested_webpack_require_35735__.d = (exports, definition) => {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__nested_webpack_require_35735__.o(definition, key) && !__nested_webpack_require_35735__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t(() => {\n/******/ \t\t__nested_webpack_require_35735__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/make namespace object */\n/******/ \t(() => {\n/******/ \t\t// define __esModule on exports\n/******/ \t\t__nested_webpack_require_35735__.r = (exports) => {\n/******/ \t\t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t\t}\n/******/ \t\t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/************************************************************************/\n/******/ \t\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \t// This entry module can't be inlined because the eval devtool is used.\n/******/ \tvar __webpack_exports__ = __nested_webpack_require_35735__(\"./src/index.ts\");\n/******/ \t\n/******/ \treturn __webpack_exports__;\n/******/ })()\n;\n});\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/polymatica-widget-component/polymatica-widget-component.js?");
|
|
39
|
+
|
|
40
|
+
/***/ }),
|
|
41
|
+
|
|
42
|
+
/***/ "./node_modules/ptnl-constructor-sdk/__internal__/config.js":
|
|
43
|
+
/*!******************************************************************!*\
|
|
44
|
+
!*** ./node_modules/ptnl-constructor-sdk/__internal__/config.js ***!
|
|
45
|
+
\******************************************************************/
|
|
46
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
47
|
+
|
|
48
|
+
"use strict";
|
|
49
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.encodeDrilldownData = exports.decodeDrilldownData = exports.blockColorizeKey = exports.blockSortKey = exports.blockFilterKey = exports.configDataBlock_Server = exports.ConfigDataBlockType_Server = void 0;\n// enums\nvar ConfigDataBlockType_Server;\n(function (ConfigDataBlockType_Server) {\n ConfigDataBlockType_Server[\"Column\"] = \"column\";\n ConfigDataBlockType_Server[\"Filter\"] = \"filter\";\n ConfigDataBlockType_Server[\"Sort\"] = \"sort\";\n ConfigDataBlockType_Server[\"Colorizer\"] = \"colorizer\";\n ConfigDataBlockType_Server[\"Drilldown\"] = \"drilldown\";\n})(ConfigDataBlockType_Server = exports.ConfigDataBlockType_Server || (exports.ConfigDataBlockType_Server = {}));\nexports.configDataBlock_Server = '8316067a-d04b-4b21-bd4d-35529846617b';\nexports.blockFilterKey = '34642664-dbd1-4e35-b0ea-2eaabe796b48';\nexports.blockSortKey = '2c849ed6-6105-4aa2-a961-9f95135dfe3b';\nexports.blockColorizeKey = 'badd51f7-82ce-45b2-a67e-37d52df88c5c';\nfunction decodeDrilldownData(source, additionalFilterSources) {\n const keyParts = [length(source.length), source];\n additionalFilterSources.forEach((item) => keyParts.push(length(item.length), item));\n return keyParts.join('');\n function length(value) {\n if (value > 0xff)\n throw new RangeError();\n return value > 0xf\n ? `0x${value.toString(16)}`\n : `0x0${value.toString(16)}`;\n }\n}\nexports.decodeDrilldownData = decodeDrilldownData;\nfunction encodeDrilldownData(key) {\n const parts = [];\n parse();\n const [source, ...additionalFilterSources] = parts;\n return {\n source,\n additionalFilterSources,\n };\n function parse(offset = 0) {\n const start = offset + 4;\n const end = start + parseInt(key.slice(offset, start));\n parts.push(key.slice(start, end));\n if (end < key.length)\n parse(end);\n }\n}\nexports.encodeDrilldownData = encodeDrilldownData;\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/__internal__/config.js?");
|
|
50
|
+
|
|
51
|
+
/***/ }),
|
|
52
|
+
|
|
53
|
+
/***/ "./node_modules/ptnl-constructor-sdk/__internal__/dataset.js":
|
|
54
|
+
/*!*******************************************************************!*\
|
|
55
|
+
!*** ./node_modules/ptnl-constructor-sdk/__internal__/dataset.js ***!
|
|
56
|
+
\*******************************************************************/
|
|
57
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
58
|
+
|
|
59
|
+
"use strict";
|
|
60
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.DatasetColumnType_Server = exports.ColumnFieldType_Server = void 0;\n// enums\nvar data_1 = __webpack_require__(/*! ../data */ \"./node_modules/ptnl-constructor-sdk/data.js\");\nObject.defineProperty(exports, \"ColumnFieldType_Server\", ({ enumerable: true, get: function () { return data_1.ColumnType; } }));\nvar DatasetColumnType_Server;\n(function (DatasetColumnType_Server) {\n DatasetColumnType_Server[\"Dimension\"] = \"dimension\";\n DatasetColumnType_Server[\"Fact\"] = \"fact\";\n DatasetColumnType_Server[\"Any\"] = \"any\";\n})(DatasetColumnType_Server = exports.DatasetColumnType_Server || (exports.DatasetColumnType_Server = {}));\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/__internal__/dataset.js?");
|
|
61
|
+
|
|
62
|
+
/***/ }),
|
|
63
|
+
|
|
64
|
+
/***/ "./node_modules/ptnl-constructor-sdk/__internal__/theme.js":
|
|
65
|
+
/*!*****************************************************************!*\
|
|
66
|
+
!*** ./node_modules/ptnl-constructor-sdk/__internal__/theme.js ***!
|
|
67
|
+
\*****************************************************************/
|
|
68
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
69
|
+
|
|
70
|
+
"use strict";
|
|
71
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.createColorizeColors = exports.colorizeClassName = exports.provideCssVariables = exports.themeProjectKeys = exports.themeKeys = void 0;\nconst logical_not_1 = __webpack_require__(/*! logical-not */ \"./node_modules/logical-not/index.js\");\nexports.themeKeys = [\n 'background',\n 'backgroundBright',\n 'backgroundTint',\n 'text',\n 'textTint',\n];\nexports.themeProjectKeys = ['colors'];\nconst head = document.querySelector('head');\nconst body = document.querySelector('body');\nconst providedCssVariablesMap = {};\nlet prevThemeClassName = '';\nlet prevThemeProjectClassName = '';\nfunction provideCssVariables({ theme, themeKey, themeProjectKey, }) {\n const themeClassName = `ptnl-theme-${kebabCase(themeKey)}`;\n if ((0, logical_not_1.not)(themeClassName in providedCssVariablesMap)) {\n const cssVariables = [];\n Object.entries(theme).forEach(([key, source]) => {\n if (exports.themeKeys.includes(key)) {\n const name = kebabCase(key);\n if (Array.isArray(source))\n source.forEach((value, i) => cssVariables.push({\n name: `--${name}-${i}`,\n value,\n }));\n else\n cssVariables.push({ name: `--${name}`, value: source });\n }\n });\n addStyles(themeClassName, [\n { className: themeClassName, cssProperties: cssVariables },\n ]);\n }\n prevThemeClassName = switchClassName(prevThemeClassName, themeClassName);\n const themeProjectClassName = `ptnl-project-${themeProjectKey}`;\n if ((0, logical_not_1.not)(themeProjectClassName in providedCssVariablesMap)) {\n const cssVariables = theme.colors.map((value, i) => ({\n name: `--ptnl-color-${i}`,\n value,\n }));\n addStyles(themeProjectClassName, [\n { className: themeProjectClassName, cssProperties: cssVariables },\n ]);\n }\n prevThemeProjectClassName = switchClassName(prevThemeProjectClassName, themeProjectClassName);\n if ((0, logical_not_1.not)('colorize' in providedCssVariablesMap)) {\n const items = [];\n theme.colorize.forEach((colors, i) => {\n colors.forEach((value, j) => items.push({\n className: colorizeClassName(i, j),\n cssProperties: [\n {\n name: 'background-color',\n value,\n },\n ],\n }));\n });\n addStyles(`colorize`, items);\n }\n}\nexports.provideCssVariables = provideCssVariables;\nfunction colorizeClassName(i, j) {\n return `ptnl-colorize-${i}-${j}`;\n}\nexports.colorizeClassName = colorizeClassName;\nconst range10 = [...Array(10)].map((_, i) => i);\nfunction createColorizeColors(source) {\n return source.map((color) => {\n const [r, g, b] = parseColor(color);\n return range10.map((i) => `rgba(${r},${g},${b},${++i > 9 ? '1' : `0.${i}`})`);\n });\n}\nexports.createColorizeColors = createColorizeColors;\nconst color6hex = /([0-9abcdef]{2})([0-9abcdef]{2})([0-9abcdef]{2})/i;\nconst color3hex = /([0-9abcdef])([0-9abcdef])([0-9abcdef])/i;\nfunction parseColor(source) {\n const [, r, g, b] = source.match(color6hex) ||\n source.match(color3hex) || [, '0', '0', '0'];\n return [parseInt(r, 16), parseInt(g, 16), parseInt(b, 16)];\n}\nfunction addStyles(name, items) {\n const style = document.createElement('style');\n providedCssVariablesMap[name] = style;\n const styleParts = [];\n items.forEach(({ className, cssProperties }) => {\n styleParts.push('.', className, '{\\n');\n cssProperties.forEach(({ name, value }) => styleParts.push(' ', name, ': ', value, ';\\n'));\n styleParts.push('}\\n');\n });\n style.innerHTML = styleParts.join('');\n head.append(style);\n}\nfunction switchClassName(prev, next) {\n if (prev)\n body.classList.remove(prev);\n body.classList.add(next);\n return next;\n}\nfunction kebabCase(source) {\n const chars = Array(source.length);\n for (let i = 0, lim = source.length; i < lim; i++) {\n const char = source.charAt(i);\n const lowerCaseChar = char.toLowerCase();\n chars[i] = char === lowerCaseChar ? char : '-' + lowerCaseChar;\n }\n return chars.join('');\n}\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/__internal__/theme.js?");
|
|
72
|
+
|
|
73
|
+
/***/ }),
|
|
74
|
+
|
|
75
|
+
/***/ "./node_modules/ptnl-constructor-sdk/__internal__/view-settings.js":
|
|
76
|
+
/*!*************************************************************************!*\
|
|
77
|
+
!*** ./node_modules/ptnl-constructor-sdk/__internal__/view-settings.js ***!
|
|
78
|
+
\*************************************************************************/
|
|
79
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
80
|
+
|
|
81
|
+
"use strict";
|
|
82
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.valueConversion = exports.viewSettingsExtract = exports.viewSettingsItemValue = exports.ViewSettingsItemType = void 0;\nvar ViewSettingsItemType;\n(function (ViewSettingsItemType) {\n ViewSettingsItemType[\"Input\"] = \"text\";\n ViewSettingsItemType[\"Checkbox\"] = \"checkbox\";\n ViewSettingsItemType[\"Radio\"] = \"radio\";\n ViewSettingsItemType[\"Select\"] = \"select\";\n ViewSettingsItemType[\"ColorPicker\"] = \"color-picker\";\n ViewSettingsItemType[\"Title\"] = \"title\";\n ViewSettingsItemType[\"TextArea\"] = \"textArea\";\n})(ViewSettingsItemType = exports.ViewSettingsItemType || (exports.ViewSettingsItemType = {}));\nexports.viewSettingsItemValue = '418d9556-a046-4623-be0b-4f4f69ccb783';\nfunction viewSettingsExtract(viewSettings) {\n return viewSettings\n .map((item) => item[exports.viewSettingsItemValue])\n .map((item) => ({\n type: item.type,\n key: item.key,\n label: item.label,\n defaultValue: valueConversion(item.type, item.defaultValue),\n options: item.options || [],\n span: getSpan(item.span),\n }));\n}\nexports.viewSettingsExtract = viewSettingsExtract;\nfunction valueConversion(type, source) {\n switch (type) {\n case ViewSettingsItemType.Input:\n case ViewSettingsItemType.Radio:\n case ViewSettingsItemType.Select:\n case ViewSettingsItemType.ColorPicker:\n case ViewSettingsItemType.TextArea:\n return source ? String(source) : '';\n case ViewSettingsItemType.Checkbox:\n return Boolean(source);\n default:\n return '';\n }\n}\nexports.valueConversion = valueConversion;\nfunction getSpan(source) {\n source |= 0;\n if (source > 24)\n return 24;\n if (source < 0)\n return 0;\n return source;\n}\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/__internal__/view-settings.js?");
|
|
83
|
+
|
|
84
|
+
/***/ }),
|
|
85
|
+
|
|
86
|
+
/***/ "./node_modules/ptnl-constructor-sdk/__internal__/widget-io.js":
|
|
87
|
+
/*!*********************************************************************!*\
|
|
88
|
+
!*** ./node_modules/ptnl-constructor-sdk/__internal__/widget-io.js ***!
|
|
89
|
+
\*********************************************************************/
|
|
90
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
91
|
+
|
|
92
|
+
"use strict";
|
|
93
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Output = exports.Input = void 0;\nvar Input;\n(function (Input) {\n Input[\"Change\"] = \"ptnl.input.change\";\n Input[\"ChangeLang\"] = \"ptnl.input.changeLang\";\n Input[\"ChangeTheme\"] = \"ptnl.input.changeTheme\";\n Input[\"ChangeOtherFilters\"] = \"ptnl.input.ChangeOtherFilters\";\n Input[\"ChangeWidgetRenderEnv\"] = \"ptnl.input.changeWidgetRenderEnv\";\n})(Input = exports.Input || (exports.Input = {}));\nvar Output;\n(function (Output) {\n Output[\"Init\"] = \"ptnl.output.init\";\n Output[\"Ready\"] = \"ptnl.output.ready\";\n Output[\"SetFilter\"] = \"ptnl.output.setFilter\";\n Output[\"RemoveFilterAt\"] = \"ptnl.output.RemoveFilterAt\";\n Output[\"SetSort\"] = \"ptnl.output.setSort\";\n Output[\"RemoveSortAt\"] = \"ptnl.output.RemoveSortAt\";\n Output[\"Interact\"] = \"ptnl.output.interact\";\n})(Output = exports.Output || (exports.Output = {}));\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/__internal__/widget-io.js?");
|
|
94
|
+
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
97
|
+
/***/ "./node_modules/ptnl-constructor-sdk/__internal__/widget-provide-data.js":
|
|
98
|
+
/*!*******************************************************************************!*\
|
|
99
|
+
!*** ./node_modules/ptnl-constructor-sdk/__internal__/widget-provide-data.js ***!
|
|
100
|
+
\*******************************************************************************/
|
|
101
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
102
|
+
|
|
103
|
+
"use strict";
|
|
104
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.provideDataTo = void 0;\nconst config_1 = __webpack_require__(/*! ./config */ \"./node_modules/ptnl-constructor-sdk/__internal__/config.js\");\nconst widget_1 = __webpack_require__(/*! ./widget */ \"./node_modules/ptnl-constructor-sdk/__internal__/widget.js\");\nconst defaultDataSettingsMethods = {\n setFilter() { },\n removeFilterAt() { },\n setSort() { },\n removeSortAt() { },\n interact() { },\n};\nfunction provideDataTo(widget, { dataOptionsMap, viewOptions }, dataSettingsMethods = defaultDataSettingsMethods) {\n const widgetMultiData = {};\n const widgetDataSettingsMap = {};\n const formatters = window.parent['format']?.[widget.uid] || {};\n widget.viewSettings = {};\n Object.values(dataOptionsMap).forEach(({ data_option, rows, total }) => {\n widgetMultiData[data_option.key] = rows;\n const columns = data_option.dataset.columns_id.map((source) => ({\n type: source.base_type,\n id: source.id,\n path: source.path,\n format: formatters[source.path] || ((value) => value),\n name: source.name,\n }));\n const columnsByBlock = {};\n const filters = [];\n const sort = [];\n const colorize = [];\n data_option.blocks.forEach((block) => {\n if (block.block_type === config_1.ConfigDataBlockType_Server.Drilldown)\n return;\n switch (block.key) {\n case config_1.blockFilterKey:\n block.columns.forEach(({ column_id, action, value }) => {\n const column = columns.find(({ id }) => column_id === id);\n filters.push({\n column,\n method: action,\n value,\n });\n });\n break;\n case config_1.blockSortKey:\n block.columns.forEach(({ column_id, value: direction }) => {\n const column = columns.find(({ id }) => column_id === id);\n sort.push({\n column,\n direction,\n });\n });\n break;\n case config_1.blockColorizeKey:\n block.columns.forEach(({ value }) => {\n const source = value;\n const column = columns.find(({ id }) => source.columnId === id);\n colorize.push((0, widget_1.createColorizeItem)(widget, column, source));\n });\n break;\n default:\n columnsByBlock[block.key] = block.columns.map(({ column_id }) => {\n return columns.find((item) => item.id === column_id);\n });\n }\n });\n const dataSettingsItem = {\n columns,\n columnsByBlock,\n filters,\n sort,\n colorize,\n total,\n limit: data_option.limit_rows,\n offset: data_option.offset,\n ...{\n ...dataSettingsMethods,\n interact: dataSettingsMethods.interact.bind(data_option),\n },\n ...getDataSettingsEvents(widget, data_option.key),\n };\n widgetDataSettingsMap[data_option.key] = dataSettingsItem;\n });\n if (widget_1.widgetDefaultKey in widgetDataSettingsMap) {\n Object.assign(widget, {\n data: widgetMultiData[widget_1.widgetDefaultKey],\n dataSettings: widgetDataSettingsMap[widget_1.widgetDefaultKey],\n });\n }\n else {\n Object.assign(widget, {\n data: widgetMultiData,\n dataSettings: widgetDataSettingsMap,\n });\n }\n widget.viewSettings = {};\n viewOptions.forEach(({ key, value }) => (widget.viewSettings[key] = value));\n}\nexports.provideDataTo = provideDataTo;\nfunction getDataSettingsEvents(widget, key) {\n const dataSettings = key === widget_1.widgetDefaultKey\n ? widget.dataSettings\n : widget.dataSettings[key];\n if (dataSettings)\n return {\n events: dataSettings.events,\n };\n else\n return {\n events: {},\n };\n}\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/__internal__/widget-provide-data.js?");
|
|
105
|
+
|
|
106
|
+
/***/ }),
|
|
107
|
+
|
|
108
|
+
/***/ "./node_modules/ptnl-constructor-sdk/__internal__/widget.js":
|
|
109
|
+
/*!******************************************************************!*\
|
|
110
|
+
!*** ./node_modules/ptnl-constructor-sdk/__internal__/widget.js ***!
|
|
111
|
+
\******************************************************************/
|
|
112
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
113
|
+
|
|
114
|
+
"use strict";
|
|
115
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.dispatchChangeOtherFilters = exports.createColorizeItem = exports.widgetDefaultKey = void 0;\nconst data_1 = __webpack_require__(/*! ../data */ \"./node_modules/ptnl-constructor-sdk/data.js\");\nexports.widgetDefaultKey = 'ffed0a4d-4a9d-417f-b502-eb50142c6956';\nfunction createColorizeItem(widget, column, source) {\n const max = +source.max || 0;\n const min = +source.min || 0;\n const threshold = +source.threshold || 0;\n const colorAbove = source.colorAbove;\n const colorBelow = source.colorBelow;\n const deltaAbove = max - threshold;\n const deltaBelow = threshold - min;\n return {\n column,\n getColor(value) {\n value = +value || 0;\n if (value > max || value < min)\n return color();\n if (value >= threshold) {\n const colors = widget.theme.colorize[colorAbove] || [];\n if (value === max)\n return color(colors[colors.length - 1]);\n const i = Math.floor(((value - threshold) / deltaAbove) * colors.length);\n return color(colors[i]);\n }\n else {\n const colors = widget.theme.colorize[colorBelow] || [];\n if (value === min)\n return color(colors[colors.length - 1]);\n const i = Math.floor(((threshold - value) / deltaBelow) * colors.length);\n return color(colors[i]);\n }\n },\n };\n}\nexports.createColorizeItem = createColorizeItem;\nfunction color(source) {\n return source || 'transparent';\n}\nfunction dispatchChangeOtherFilters(widget, source) {\n source.forEach(({ column_id, value }) => {\n const dataSettings = getDataSettingsByColumnId(widget, column_id);\n if (dataSettings &&\n typeof dataSettings.events.onOtherFilterChange === 'function') {\n const column = dataSettings.columns.find(({ id }) => id === column_id);\n if (column)\n dataSettings.events.onOtherFilterChange({\n column,\n method: data_1.FilterMethod.InList,\n value,\n });\n }\n });\n}\nexports.dispatchChangeOtherFilters = dispatchChangeOtherFilters;\nfunction getDataSettingsByColumnId(widget, columnId) {\n if (Array.isArray(widget.data))\n return widget.dataSettings;\n for (let dataSettings of Object.values(widget.dataSettings))\n if (dataSettings.columns.find(({ id }) => id === columnId))\n return dataSettings;\n return null;\n}\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/__internal__/widget.js?");
|
|
116
|
+
|
|
117
|
+
/***/ }),
|
|
118
|
+
|
|
119
|
+
/***/ "./node_modules/ptnl-constructor-sdk/config.js":
|
|
120
|
+
/*!*****************************************************!*\
|
|
121
|
+
!*** ./node_modules/ptnl-constructor-sdk/config.js ***!
|
|
122
|
+
\*****************************************************/
|
|
123
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
124
|
+
|
|
125
|
+
"use strict";
|
|
126
|
+
eval("\n/**\n * К помощью конфигурация настраивается получение данных\n *\n * @packageDocumentation\n * @module Конфигурация\n */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.title = exports.colorPicker = exports.select = exports.radio = exports.checkbox = exports.textArea = exports.input = exports.ViewSettingsItem = exports.drilldown = exports.colorize = exports.sort = exports.filter = exports.block = exports.Block = exports.BlockIcon = exports.DataQueryFunction = exports.DataQueryMethod = void 0;\nconst data_1 = __webpack_require__(/*! ./data */ \"./node_modules/ptnl-constructor-sdk/data.js\");\nconst config_1 = __webpack_require__(/*! ./__internal__/config */ \"./node_modules/ptnl-constructor-sdk/__internal__/config.js\");\nconst dataset_1 = __webpack_require__(/*! ./__internal__/dataset */ \"./node_modules/ptnl-constructor-sdk/__internal__/dataset.js\");\nconst view_settings_1 = __webpack_require__(/*! ./__internal__/view-settings */ \"./node_modules/ptnl-constructor-sdk/__internal__/view-settings.js\");\n// enums\nvar DataQueryMethod;\n(function (DataQueryMethod) {\n DataQueryMethod[\"Table\"] = \"table\";\n DataQueryMethod[\"Aggregate\"] = \"aggregate\";\n})(DataQueryMethod = exports.DataQueryMethod || (exports.DataQueryMethod = {}));\nvar DataQueryFunction;\n(function (DataQueryFunction) {\n DataQueryFunction[\"Group\"] = \"group\";\n DataQueryFunction[\"Sum\"] = \"sum\";\n DataQueryFunction[\"Average\"] = \"avg\";\n DataQueryFunction[\"Min\"] = \"min\";\n DataQueryFunction[\"Max\"] = \"max\";\n DataQueryFunction[\"First\"] = \"first\";\n DataQueryFunction[\"Last\"] = \"last\";\n})(DataQueryFunction = exports.DataQueryFunction || (exports.DataQueryFunction = {}));\nvar BlockIcon;\n(function (BlockIcon) {\n BlockIcon[\"AxisX\"] = \"sys:axis-x\";\n BlockIcon[\"AxisY\"] = \"sys:axis-y\";\n BlockIcon[\"Value\"] = \"sys:value-column\";\n})(BlockIcon = exports.BlockIcon || (exports.BlockIcon = {}));\n// blocks\nconst token = Symbol();\nclass Block {\n constructor(_) {\n if (_ !== token)\n throw new Error('Illigal constructor');\n }\n}\nexports.Block = Block;\nfunction createBlock(source) {\n return Object.assign(new Block(token), {\n [config_1.configDataBlock_Server]: {\n type: source.type,\n key: source.key,\n label: source.label,\n icon: source.icon || '',\n data_type: source.data_type,\n max: source.max || 0,\n function: source.function || null,\n },\n });\n}\nfunction block(params) {\n const columnTypes = params.columnTypes || [];\n const hasNumberType = columnTypes.includes(data_1.ColumnType.Number);\n let columnType;\n switch (columnTypes.length) {\n case 0:\n columnType = dataset_1.DatasetColumnType_Server.Any;\n break;\n case 1:\n columnType = hasNumberType\n ? dataset_1.DatasetColumnType_Server.Fact\n : dataset_1.DatasetColumnType_Server.Dimension;\n break;\n default:\n columnType = hasNumberType\n ? dataset_1.DatasetColumnType_Server.Any\n : dataset_1.DatasetColumnType_Server.Dimension;\n }\n return createBlock({\n type: config_1.ConfigDataBlockType_Server.Column,\n key: params.key,\n label: params.label,\n icon: params.icon,\n max: params.max,\n function: params.dataQueryFunction,\n data_type: columnType,\n });\n}\nexports.block = block;\nfunction filter(params = {}) {\n return createBlock({\n type: config_1.ConfigDataBlockType_Server.Filter,\n key: config_1.blockFilterKey,\n label: params.label || {\n ru: 'Фильтры',\n en: 'Filters',\n },\n icon: params.icon || BlockIcon.Value,\n });\n}\nexports.filter = filter;\nfunction sort(params = {}) {\n return createBlock({\n type: config_1.ConfigDataBlockType_Server.Sort,\n key: config_1.blockSortKey,\n label: params.label || {\n ru: 'Сортировка',\n en: 'Sort',\n },\n icon: params.icon || BlockIcon.Value,\n });\n}\nexports.sort = sort;\nfunction colorize(params = {}) {\n return createBlock({\n type: config_1.ConfigDataBlockType_Server.Colorizer,\n key: config_1.blockColorizeKey,\n label: params.label || {\n ru: 'Цветовая дифференциация',\n en: 'Colors',\n },\n icon: params.icon || BlockIcon.Value,\n max: params.max || 0,\n });\n}\nexports.colorize = colorize;\nfunction drilldown(params) {\n return createBlock({\n type: config_1.ConfigDataBlockType_Server.Drilldown,\n key: (0, config_1.decodeDrilldownData)(params.source, params.additionalFilterSources || []),\n label: params.label || {\n ru: 'Drilldown',\n en: 'Drilldown',\n },\n icon: BlockIcon.Value,\n max: 4,\n });\n}\nexports.drilldown = drilldown;\nclass ViewSettingsItem {\n constructor(_) {\n if (_ !== token)\n throw new Error('Illigal constructor');\n }\n}\nexports.ViewSettingsItem = ViewSettingsItem;\nfunction createViewSettingsItem(value) {\n return Object.assign(new ViewSettingsItem(token), {\n [view_settings_1.viewSettingsItemValue]: value,\n });\n}\nfunction input(params) {\n return createViewSettingsItem({\n type: view_settings_1.ViewSettingsItemType.Input,\n ...params,\n });\n}\nexports.input = input;\nfunction textArea(params) {\n return createViewSettingsItem({\n type: view_settings_1.ViewSettingsItemType.TextArea,\n ...params,\n });\n}\nexports.textArea = textArea;\nfunction checkbox(params) {\n return createViewSettingsItem({\n type: view_settings_1.ViewSettingsItemType.Checkbox,\n ...params,\n });\n}\nexports.checkbox = checkbox;\nfunction radio(params) {\n return createViewSettingsItem({\n type: view_settings_1.ViewSettingsItemType.Radio,\n ...params,\n });\n}\nexports.radio = radio;\nfunction select(params) {\n return createViewSettingsItem({\n type: view_settings_1.ViewSettingsItemType.Select,\n ...params,\n });\n}\nexports.select = select;\nfunction colorPicker(params) {\n return createViewSettingsItem({\n type: view_settings_1.ViewSettingsItemType.ColorPicker,\n ...params,\n });\n}\nexports.colorPicker = colorPicker;\nfunction title(label) {\n return createViewSettingsItem({\n type: view_settings_1.ViewSettingsItemType.Title,\n key: '',\n label,\n });\n}\nexports.title = title;\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/config.js?");
|
|
127
|
+
|
|
128
|
+
/***/ }),
|
|
129
|
+
|
|
130
|
+
/***/ "./node_modules/ptnl-constructor-sdk/data.js":
|
|
131
|
+
/*!***************************************************!*\
|
|
132
|
+
!*** ./node_modules/ptnl-constructor-sdk/data.js ***!
|
|
133
|
+
\***************************************************/
|
|
134
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
135
|
+
|
|
136
|
+
"use strict";
|
|
137
|
+
eval("\n/**\n * Для выборки данных, а также управлением фильтрами и сортировкой...\n *\n * @packageDocumentation\n * @module Работа с данными\n */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Target = exports.SortDirection = exports.FilterMethod = exports.ColumnType = void 0;\n// enums\nvar ColumnType;\n(function (ColumnType) {\n ColumnType[\"String\"] = \"string\";\n ColumnType[\"Number\"] = \"number\";\n ColumnType[\"Boolean\"] = \"boolean\";\n ColumnType[\"Date\"] = \"date\";\n ColumnType[\"Array\"] = \"array\";\n ColumnType[\"Object\"] = \"object\";\n})(ColumnType = exports.ColumnType || (exports.ColumnType = {}));\nvar FilterMethod;\n(function (FilterMethod) {\n FilterMethod[\"Equal\"] = \"equally\";\n FilterMethod[\"NotEqual\"] = \"not_equal\";\n FilterMethod[\"GreaterThen\"] = \"gt\";\n FilterMethod[\"LessThen\"] = \"lt\";\n FilterMethod[\"GreaterThenOrEqual\"] = \"gte\";\n FilterMethod[\"LessThenOrEqual\"] = \"lte\";\n FilterMethod[\"Period\"] = \"period\";\n FilterMethod[\"DateList\"] = \"date_list\";\n FilterMethod[\"InList\"] = \"in_list\";\n FilterMethod[\"NotInList\"] = \"nin_list\";\n FilterMethod[\"StartsOnIndex\"] = \"starts_on_i\";\n FilterMethod[\"StartsOn\"] = \"starts_on\";\n FilterMethod[\"EndsOnIndex\"] = \"ends_on_i\";\n FilterMethod[\"EndsOn\"] = \"ends_on\";\n FilterMethod[\"ContainsIndex\"] = \"contains_i\";\n FilterMethod[\"Contains\"] = \"contains\";\n FilterMethod[\"NotContainIndex\"] = \"not_contain_i\";\n FilterMethod[\"NotContain\"] = \"not_contain\";\n})(FilterMethod = exports.FilterMethod || (exports.FilterMethod = {}));\nvar SortDirection;\n(function (SortDirection) {\n SortDirection[\"Asc\"] = \"ASC\";\n SortDirection[\"Desc\"] = \"DESC\";\n})(SortDirection = exports.SortDirection || (exports.SortDirection = {}));\nvar Target;\n(function (Target) {\n Target[\"Self\"] = \"self\";\n Target[\"Other\"] = \"other\";\n Target[\"All\"] = \"all\";\n})(Target = exports.Target || (exports.Target = {}));\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/data.js?");
|
|
138
|
+
|
|
139
|
+
/***/ }),
|
|
140
|
+
|
|
141
|
+
/***/ "./node_modules/ptnl-constructor-sdk/declare.js":
|
|
142
|
+
/*!******************************************************!*\
|
|
143
|
+
!*** ./node_modules/ptnl-constructor-sdk/declare.js ***!
|
|
144
|
+
\******************************************************/
|
|
145
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
146
|
+
|
|
147
|
+
"use strict";
|
|
148
|
+
eval("\n/**\n * Для того, чтобы виджет получал и управлял данными,\n * класс виджета необходимо декорировать функцией Declare:\n *\n * ```ts\n * import { Declare, Widget } from 'ptnl-constructor-sdk';\n *\n * @Declare()\n * class MyWidget extends Widget {}\n * ```\n *\n * @packageDocumentation\n * @module Регистрация виджета\n */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Declare = void 0;\nconst logical_not_1 = __webpack_require__(/*! logical-not */ \"./node_modules/logical-not/index.js\");\nconst data_1 = __webpack_require__(/*! ./data */ \"./node_modules/ptnl-constructor-sdk/data.js\");\nconst widget_io_1 = __webpack_require__(/*! ./__internal__/widget-io */ \"./node_modules/ptnl-constructor-sdk/__internal__/widget-io.js\");\nconst widget_provide_data_1 = __webpack_require__(/*! ./__internal__/widget-provide-data */ \"./node_modules/ptnl-constructor-sdk/__internal__/widget-provide-data.js\");\nconst theme_1 = __webpack_require__(/*! ./__internal__/theme */ \"./node_modules/ptnl-constructor-sdk/__internal__/theme.js\");\nconst widget_1 = __webpack_require__(/*! ./__internal__/widget */ \"./node_modules/ptnl-constructor-sdk/__internal__/widget.js\");\n/**\n * Функция-декоратор\n */\nfunction Declare(params) {\n if ((0, logical_not_1.not)(params))\n params = {\n provideCssVariables: false,\n };\n return (T) => {\n const instance = new T();\n const token = readFromUrl('token');\n const uid = readFromUrl('uid');\n if (uid) {\n instance.uid = uid;\n }\n Object.assign(instance, {\n viewSettings: {},\n ready() {\n output(token, widget_io_1.Output.Ready);\n },\n });\n const dataSettingsMethods = {\n setFilter(filter, rowIndex, target = data_1.Target.Self) {\n filter = { ...filter };\n filter.column = { ...filter.column };\n delete filter.column.format;\n output(token, widget_io_1.Output.SetFilter, {\n filter,\n target,\n rowIndex,\n });\n },\n removeFilterAt(index) {\n output(token, widget_io_1.Output.RemoveFilterAt, {\n index,\n });\n },\n setSort(sort, target = data_1.Target.Self) {\n if (sort) {\n sort = { ...sort };\n sort.column = { ...sort.column };\n delete sort.column.format;\n }\n output(token, widget_io_1.Output.SetSort, { sort, target });\n },\n removeSortAt(index) {\n output(token, widget_io_1.Output.RemoveSortAt, {\n index,\n });\n },\n interact(dataIndex) {\n output(token, widget_io_1.Output.Interact, {\n dataOptionId: this.id,\n dataIndex,\n });\n },\n };\n let inited = false;\n input(widget_io_1.Input.Change, (widgetRepresent) => {\n (0, widget_provide_data_1.provideDataTo)(instance, widgetRepresent, dataSettingsMethods);\n if ((0, logical_not_1.not)(inited)) {\n inited = true;\n if (typeof instance.onInit === 'function') {\n instance.onInit();\n }\n }\n if (typeof instance.onChange === 'function') {\n instance.onChange();\n }\n });\n input(widget_io_1.Input.ChangeLang, (lang) => {\n instance.lang = lang;\n if (instance.onLangChange && inited)\n instance.onLangChange();\n });\n input(widget_io_1.Input.ChangeTheme, (value) => {\n instance.theme = value.theme;\n if (params.provideCssVariables)\n (0, theme_1.provideCssVariables)(value);\n if (instance.onThemeChange && inited)\n instance.onThemeChange();\n });\n input(widget_io_1.Input.ChangeOtherFilters, (source) => (0, widget_1.dispatchChangeOtherFilters)(instance, source));\n input(widget_io_1.Input.ChangeWidgetRenderEnv, (value) => {\n instance.renderEnv = value;\n });\n output(token, widget_io_1.Output.Init);\n return T;\n };\n}\nexports.Declare = Declare;\nfunction input(type, callback) {\n window.addEventListener('message', ({ data }) => {\n if (data.type === type)\n callback(data.payload);\n });\n}\nfunction output(token, type, payload) {\n const message = { type, token, payload };\n window.parent.postMessage(message, '*');\n}\nfunction readFromUrl(key) {\n const startsWith = key + '=';\n const source = window.location.search\n .split(/[?&]/)\n .find((item) => item.startsWith(startsWith));\n return source ? source.slice(startsWith.length) : '';\n}\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/declare.js?");
|
|
149
|
+
|
|
150
|
+
/***/ }),
|
|
151
|
+
|
|
152
|
+
/***/ "./node_modules/ptnl-constructor-sdk/index.js":
|
|
153
|
+
/*!****************************************************!*\
|
|
154
|
+
!*** ./node_modules/ptnl-constructor-sdk/index.js ***!
|
|
155
|
+
\****************************************************/
|
|
156
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
157
|
+
|
|
158
|
+
"use strict";
|
|
159
|
+
eval("\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./declare */ \"./node_modules/ptnl-constructor-sdk/declare.js\"), exports);\n__exportStar(__webpack_require__(/*! ./widget */ \"./node_modules/ptnl-constructor-sdk/widget.js\"), exports);\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/index.js?");
|
|
160
|
+
|
|
161
|
+
/***/ }),
|
|
162
|
+
|
|
163
|
+
/***/ "./node_modules/ptnl-constructor-sdk/widget.js":
|
|
164
|
+
/*!*****************************************************!*\
|
|
165
|
+
!*** ./node_modules/ptnl-constructor-sdk/widget.js ***!
|
|
166
|
+
\*****************************************************/
|
|
167
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
168
|
+
|
|
169
|
+
"use strict";
|
|
170
|
+
eval("\n/**\n * xXxXx\n *\n * @packageDocumentation\n * @module Класс Widget\n */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.WidgetRenderEnv = exports.Widget = void 0;\nclass Widget {\n constructor() {\n this.renderEnv = WidgetRenderEnv.Default;\n }\n ready() { }\n onInit() { }\n onThemeChange() { }\n onLangChange() { }\n}\nexports.Widget = Widget;\nvar WidgetRenderEnv;\n(function (WidgetRenderEnv) {\n WidgetRenderEnv[\"Default\"] = \"default\";\n WidgetRenderEnv[\"Print\"] = \"print\";\n})(WidgetRenderEnv = exports.WidgetRenderEnv || (exports.WidgetRenderEnv = {}));\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./node_modules/ptnl-constructor-sdk/widget.js?");
|
|
171
|
+
|
|
172
|
+
/***/ }),
|
|
173
|
+
|
|
174
|
+
/***/ "./src/css.ts":
|
|
175
|
+
/*!********************!*\
|
|
176
|
+
!*** ./src/css.ts ***!
|
|
177
|
+
\********************/
|
|
178
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
179
|
+
|
|
180
|
+
"use strict";
|
|
181
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"css\": () => (/* binding */ css)\n/* harmony export */ });\nconst css = `\n:host {\n display: block;\n}\n\niframe {\n border: none;\n width: 100%;\n height: 100%;\n}\n`;\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./src/css.ts?");
|
|
182
|
+
|
|
183
|
+
/***/ }),
|
|
184
|
+
|
|
185
|
+
/***/ "./src/events.ts":
|
|
186
|
+
/*!***********************!*\
|
|
187
|
+
!*** ./src/events.ts ***!
|
|
188
|
+
\***********************/
|
|
189
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
190
|
+
|
|
191
|
+
"use strict";
|
|
192
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"EventType\": () => (/* reexport safe */ polymatica_widget_component__WEBPACK_IMPORTED_MODULE_0__.EventType)\n/* harmony export */ });\n/* harmony import */ var polymatica_widget_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! polymatica-widget-component */ \"./node_modules/polymatica-widget-component/polymatica-widget-component.js\");\n/* harmony import */ var polymatica_widget_component__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(polymatica_widget_component__WEBPACK_IMPORTED_MODULE_0__);\n\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./src/events.ts?");
|
|
193
|
+
|
|
194
|
+
/***/ }),
|
|
195
|
+
|
|
196
|
+
/***/ "./src/index.ts":
|
|
197
|
+
/*!**********************!*\
|
|
198
|
+
!*** ./src/index.ts ***!
|
|
199
|
+
\**********************/
|
|
200
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
201
|
+
|
|
202
|
+
"use strict";
|
|
203
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"PolymaticaWidgetLegacy\": () => (/* reexport safe */ _polymatica_widget_component_legacy__WEBPACK_IMPORTED_MODULE_0__.PolymaticaWidgetLegacy)\n/* harmony export */ });\n/* harmony import */ var _polymatica_widget_component_legacy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./polymatica-widget-component-legacy */ \"./src/polymatica-widget-component-legacy.ts\");\n\n\ncustomElements.define('polymatica-widget-legacy', _polymatica_widget_component_legacy__WEBPACK_IMPORTED_MODULE_0__.PolymaticaWidgetLegacy);\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./src/index.ts?");
|
|
204
|
+
|
|
205
|
+
/***/ }),
|
|
206
|
+
|
|
207
|
+
/***/ "./src/polymatica-widget-component-legacy.ts":
|
|
208
|
+
/*!***************************************************!*\
|
|
209
|
+
!*** ./src/polymatica-widget-component-legacy.ts ***!
|
|
210
|
+
\***************************************************/
|
|
211
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
212
|
+
|
|
213
|
+
"use strict";
|
|
214
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"PolymaticaWidgetLegacy\": () => (/* binding */ PolymaticaWidgetLegacy)\n/* harmony export */ });\n/* harmony import */ var logical_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! logical-not */ \"./node_modules/logical-not/index.js\");\n/* harmony import */ var logical_not__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(logical_not__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var ptnl_constructor_sdk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ptnl-constructor-sdk */ \"./node_modules/ptnl-constructor-sdk/index.js\");\n/* harmony import */ var ptnl_constructor_sdk__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ptnl_constructor_sdk__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ptnl_constructor_sdk_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ptnl-constructor-sdk/config */ \"./node_modules/ptnl-constructor-sdk/config.js\");\n/* harmony import */ var ptnl_constructor_sdk_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ptnl-constructor-sdk/data */ \"./node_modules/ptnl-constructor-sdk/data.js\");\n/* harmony import */ var ptnl_constructor_sdk_internal_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ptnl-constructor-sdk/__internal__/config */ \"./node_modules/ptnl-constructor-sdk/__internal__/config.js\");\n/* harmony import */ var ptnl_constructor_sdk_internal_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ptnl-constructor-sdk/__internal__/widget */ \"./node_modules/ptnl-constructor-sdk/__internal__/widget.js\");\n/* harmony import */ var ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ptnl-constructor-sdk/__internal__/widget-io */ \"./node_modules/ptnl-constructor-sdk/__internal__/widget-io.js\");\n/* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./css */ \"./src/css.ts\");\n/* harmony import */ var _tools_attributes_watcher__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tools/attributes-watcher */ \"./src/tools/attributes-watcher.ts\");\n/* harmony import */ var _tools_connector__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./tools/connector */ \"./src/tools/connector.ts\");\n\n\n\n\n\n\n\n\n\n\nconst map = new WeakMap();\n_tools_connector__WEBPACK_IMPORTED_MODULE_9__.Connector.widgetContextMap = map;\nclass PolymaticaWidgetLegacy extends HTMLElement {\n set renderEnv(value) {\n switch (value) {\n case ptnl_constructor_sdk__WEBPACK_IMPORTED_MODULE_1__.WidgetRenderEnv.Print:\n change(this, { widgetRenderEnv: value });\n break;\n }\n }\n set widgetBasePath(value) {\n change(this, { widgetBasePath: value });\n }\n set locale(value) {\n change(this, { locale: value });\n }\n set uid(value) {\n this._uid = value;\n }\n get uid() {\n return this._uid;\n }\n constructor() {\n super();\n const shadowRoot = this.attachShadow({ mode: 'closed' });\n const iframe = document.createElement('iframe');\n const style = document.createElement('style');\n style.textContent = _css__WEBPACK_IMPORTED_MODULE_7__.css;\n shadowRoot.append(style);\n const context = {\n iframe,\n inited: false,\n shadowRoot,\n connector: new _tools_connector__WEBPACK_IMPORTED_MODULE_9__.Connector(this),\n otherFilterColumnId: 0,\n };\n map.set(this, context);\n (0,_tools_attributes_watcher__WEBPACK_IMPORTED_MODULE_8__.attributesWatcher)(this);\n }\n initFormatterToWindow(dataset, uid) {\n const format = window['format'] || {};\n format[uid] = format[uid] || {};\n dataset.columns.forEach((column) => {\n format[uid][column.path] = column.format;\n });\n window.format = format;\n }\n setDataConfig(dataConfig) {\n change(this, { dataConfig });\n }\n provide(data, options) {\n const { dataset } = data;\n if (this.uid) {\n this.initFormatterToWindow(dataset, this.uid);\n }\n const blocks = Object.entries(dataset.columnsByBlock).map(([key, columnIds]) => ({\n key,\n block_type: ptnl_constructor_sdk_internal_config__WEBPACK_IMPORTED_MODULE_4__.ConfigDataBlockType_Server.Column,\n function: ptnl_constructor_sdk_config__WEBPACK_IMPORTED_MODULE_2__.DataQueryFunction.Group,\n columns: columnIds.map((column_id) => ({\n column_id,\n })),\n }));\n if (options?.sort?.length) {\n const sortBlock = {\n key: ptnl_constructor_sdk_internal_config__WEBPACK_IMPORTED_MODULE_4__.blockSortKey,\n block_type: ptnl_constructor_sdk_internal_config__WEBPACK_IMPORTED_MODULE_4__.ConfigDataBlockType_Server.Sort,\n function: null,\n columns: options.sort.map(({ column_id, direction }) => {\n return { column_id, value: direction };\n }),\n };\n blocks.push(sortBlock);\n }\n if (options?.filters) {\n const filterBlock = {\n key: ptnl_constructor_sdk_internal_config__WEBPACK_IMPORTED_MODULE_4__.blockFilterKey,\n block_type: ptnl_constructor_sdk_internal_config__WEBPACK_IMPORTED_MODULE_4__.ConfigDataBlockType_Server.Filter,\n function: null,\n columns: options.filters.map(({ column_id, action, value }) => {\n return { column_id, action, value };\n }),\n };\n blocks.push(filterBlock);\n }\n const columns = dataset.columns.map((column) => ({\n id: column.id,\n name: column.name,\n path: column.path,\n base_type: column.type,\n }));\n change(this, {\n uid: this.uid,\n widgetRepresent: {\n dataOptionsMap: {\n [ptnl_constructor_sdk_internal_widget__WEBPACK_IMPORTED_MODULE_5__.widgetDefaultKey]: {\n data_option: {\n key: ptnl_constructor_sdk_internal_widget__WEBPACK_IMPORTED_MODULE_5__.widgetDefaultKey,\n id: 0,\n dataset: {\n id: 0,\n name: '',\n columns_id: columns,\n },\n method: ptnl_constructor_sdk_config__WEBPACK_IMPORTED_MODULE_2__.DataQueryMethod.Aggregate,\n limit_rows: -1,\n offset: 0,\n blocks,\n },\n rows: dataset.rows,\n total: dataset.rows.length,\n },\n },\n viewOptions: Object.entries(options || {}).map(([key, value]) => ({\n key,\n value,\n })),\n },\n });\n }\n provideTheme(theme) {\n change(this, {\n theme: {\n theme: {\n background: 'rgb(241, 241, 242)',\n backgroundBright: 'rgb(32, 33, 39)',\n backgroundTint: [\n 'rgb(230, 230, 234)',\n 'rgb(208, 208, 213)',\n 'rgb(163, 163, 172)',\n 'rgb(118, 118, 133)',\n 'rgb(64, 64, 83)',\n 'rgb(32, 33, 39)',\n ],\n text: 'rgb(0, 175, 215)',\n textTint: [\n '#0d131e',\n '#111827',\n '#1f2937',\n '#374151',\n '#4b5563',\n ],\n colors: theme.palette,\n colorize: theme.heatmap ?? [],\n },\n themeKey: 'polymatica',\n themeProjectKey: 'polymatica',\n },\n });\n }\n highlight(_, rowIndexArray) {\n const { connector, otherFilterColumnId, widgetRepresent } = getContext(this);\n const value = [];\n const data = widgetRepresent?.dataOptionsMap[ptnl_constructor_sdk_internal_widget__WEBPACK_IMPORTED_MODULE_5__.widgetDefaultKey];\n if (data) {\n const column = data.data_option.dataset.columns_id.find(({ id }) => id === otherFilterColumnId);\n if (column) {\n rowIndexArray.forEach((i) => {\n if (i in data.rows)\n value.push(data.rows[i][column.path]);\n });\n }\n }\n connector.send(ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_6__.Input.ChangeOtherFilters, [\n {\n column_id: otherFilterColumnId,\n value,\n action: ptnl_constructor_sdk_data__WEBPACK_IMPORTED_MODULE_3__.FilterMethod.InList,\n },\n ]);\n }\n setInteractColumnId(id) {\n const context = getContext(this);\n context.otherFilterColumnId = id;\n }\n}\nfunction getContext(widget) {\n return map.get(widget);\n}\nfunction change(widget, slice) {\n const context = getContext(widget);\n Object.assign(context, slice);\n const { iframe, inited, widgetRepresent, locale, theme, widgetBasePath } = context;\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(widgetRepresent))\n return;\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(locale))\n return;\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(theme))\n return;\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(widgetBasePath))\n return;\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(inited)) {\n context.inited = true;\n let src = widgetBasePath;\n if ((0,logical_not__WEBPACK_IMPORTED_MODULE_0__.not)(src.endsWith('/')))\n src += '/';\n src += `index.html?token=${context.connector.token}`;\n if (context.uid) {\n src += `&uid=${context.uid}`;\n }\n iframe.src = src;\n context.shadowRoot.append(iframe);\n }\n else {\n const { connector } = context;\n if (slice.theme)\n connector.send(ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_6__.Input.ChangeTheme, theme);\n if (slice.locale)\n connector.send(ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_6__.Input.ChangeLang, locale);\n if (slice.widgetRepresent)\n connector.send(ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_6__.Input.Change, widgetRepresent);\n }\n}\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./src/polymatica-widget-component-legacy.ts?");
|
|
215
|
+
|
|
216
|
+
/***/ }),
|
|
217
|
+
|
|
218
|
+
/***/ "./src/tools/attributes-watcher.ts":
|
|
219
|
+
/*!*****************************************!*\
|
|
220
|
+
!*** ./src/tools/attributes-watcher.ts ***!
|
|
221
|
+
\*****************************************/
|
|
222
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
223
|
+
|
|
224
|
+
"use strict";
|
|
225
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"attributesWatcher\": () => (/* binding */ attributesWatcher)\n/* harmony export */ });\nfunction attributesWatcher(widget) {\n const observer = new MutationObserver(onAttributeChange);\n observer.observe(widget, { attributes: true });\n}\nfunction onAttributeChange(mutations) {\n for (const mutation of mutations) {\n const widget = mutation.target;\n switch (mutation.attributeName) {\n case 'render-env':\n widget.renderEnv = widget.getAttribute('render-env');\n break;\n case 'widget-base-path':\n widget.widgetBasePath =\n widget.getAttribute('widget-base-path');\n break;\n case 'locale':\n widget.locale = widget.getAttribute('locale');\n break;\n }\n }\n}\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./src/tools/attributes-watcher.ts?");
|
|
226
|
+
|
|
227
|
+
/***/ }),
|
|
228
|
+
|
|
229
|
+
/***/ "./src/tools/connector.ts":
|
|
230
|
+
/*!********************************!*\
|
|
231
|
+
!*** ./src/tools/connector.ts ***!
|
|
232
|
+
\********************************/
|
|
233
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
234
|
+
|
|
235
|
+
"use strict";
|
|
236
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Connector\": () => (/* binding */ Connector)\n/* harmony export */ });\n/* harmony import */ var ptnl_constructor_sdk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ptnl-constructor-sdk */ \"./node_modules/ptnl-constructor-sdk/index.js\");\n/* harmony import */ var ptnl_constructor_sdk__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ptnl_constructor_sdk__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var ptnl_constructor_sdk_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ptnl-constructor-sdk/data */ \"./node_modules/ptnl-constructor-sdk/data.js\");\n/* harmony import */ var ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ptnl-constructor-sdk/__internal__/widget-io */ \"./node_modules/ptnl-constructor-sdk/__internal__/widget-io.js\");\n/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../events */ \"./src/events.ts\");\n/* harmony import */ var _dispatch_event__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dispatch-event */ \"./src/tools/dispatch-event.ts\");\n\n\n\n\n\nclass Connector {\n get context() {\n return Connector.widgetContextMap.get(this.widget);\n }\n constructor(widget) {\n this.widget = widget;\n this.token = this.createToken();\n this.isReady = false;\n window.addEventListener('message', ({ data }) => {\n if (data.token === this.token)\n this.process(data);\n });\n }\n send(type, payload) {\n this.context.iframe.contentWindow?.postMessage({\n type,\n payload,\n }, '*');\n }\n process(data) {\n switch (data.type) {\n case ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_2__.Output.Init: {\n if (this.isReady)\n break;\n this.isReady = true;\n const { context } = this;\n this.send(ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_2__.Input.ChangeWidgetRenderEnv, context.widgetRenderEnv || ptnl_constructor_sdk__WEBPACK_IMPORTED_MODULE_0__.WidgetRenderEnv.Default);\n this.send(ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_2__.Input.ChangeTheme, context.theme);\n this.send(ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_2__.Input.ChangeLang, context.locale);\n this.send(ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_2__.Input.Change, context.widgetRepresent);\n break;\n }\n case ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_2__.Output.Ready:\n (0,_dispatch_event__WEBPACK_IMPORTED_MODULE_4__.dispatchEvent)(this.widget, _events__WEBPACK_IMPORTED_MODULE_3__.EventType.Ready, {});\n break;\n case ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_2__.Output.SetFilter: {\n const { filter, target, rowIndex } = data.payload;\n if (target === ptnl_constructor_sdk_data__WEBPACK_IMPORTED_MODULE_1__.Target.Other) {\n this.context.otherFilterColumnId = filter.column.id;\n const event = {\n datasetRef: { key: 'default', index: 0 },\n columnId: filter.column.id,\n rowIndex,\n };\n (0,_dispatch_event__WEBPACK_IMPORTED_MODULE_4__.dispatchEvent)(this.widget, _events__WEBPACK_IMPORTED_MODULE_3__.EventType.Interact, event);\n }\n break;\n }\n case ptnl_constructor_sdk_internal_widget_io__WEBPACK_IMPORTED_MODULE_2__.Output.Interact: {\n (0,_dispatch_event__WEBPACK_IMPORTED_MODULE_4__.dispatchEvent)(this.widget, _events__WEBPACK_IMPORTED_MODULE_3__.EventType.Effect, data.payload);\n }\n }\n }\n createToken() {\n return Math.random().toString(16).slice(2);\n }\n}\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./src/tools/connector.ts?");
|
|
237
|
+
|
|
238
|
+
/***/ }),
|
|
239
|
+
|
|
240
|
+
/***/ "./src/tools/dispatch-event.ts":
|
|
241
|
+
/*!*************************************!*\
|
|
242
|
+
!*** ./src/tools/dispatch-event.ts ***!
|
|
243
|
+
\*************************************/
|
|
244
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
245
|
+
|
|
246
|
+
"use strict";
|
|
247
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"dispatchEvent\": () => (/* binding */ dispatchEvent)\n/* harmony export */ });\nconst dispatchEvent = (target, type, detail) => {\n const event = new CustomEvent(type, { detail, bubbles: true });\n target.dispatchEvent(event);\n};\n\n\n//# sourceURL=webpack://PolymaticaWidgetComponentLegacy/./src/tools/dispatch-event.ts?");
|
|
248
|
+
|
|
249
|
+
/***/ })
|
|
250
|
+
|
|
251
|
+
/******/ });
|
|
252
|
+
/************************************************************************/
|
|
253
|
+
/******/ // The module cache
|
|
254
|
+
/******/ var __webpack_module_cache__ = {};
|
|
255
|
+
/******/
|
|
256
|
+
/******/ // The require function
|
|
257
|
+
/******/ function __webpack_require__(moduleId) {
|
|
258
|
+
/******/ // Check if module is in cache
|
|
259
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
260
|
+
/******/ if (cachedModule !== undefined) {
|
|
261
|
+
/******/ return cachedModule.exports;
|
|
262
|
+
/******/ }
|
|
263
|
+
/******/ // Create a new module (and put it into the cache)
|
|
264
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
265
|
+
/******/ // no module.id needed
|
|
266
|
+
/******/ // no module.loaded needed
|
|
267
|
+
/******/ exports: {}
|
|
268
|
+
/******/ };
|
|
269
|
+
/******/
|
|
270
|
+
/******/ // Execute the module function
|
|
271
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
272
|
+
/******/
|
|
273
|
+
/******/ // Return the exports of the module
|
|
274
|
+
/******/ return module.exports;
|
|
275
|
+
/******/ }
|
|
276
|
+
/******/
|
|
277
|
+
/************************************************************************/
|
|
278
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
279
|
+
/******/ (() => {
|
|
280
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
281
|
+
/******/ __webpack_require__.n = (module) => {
|
|
282
|
+
/******/ var getter = module && module.__esModule ?
|
|
283
|
+
/******/ () => (module['default']) :
|
|
284
|
+
/******/ () => (module);
|
|
285
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
286
|
+
/******/ return getter;
|
|
287
|
+
/******/ };
|
|
288
|
+
/******/ })();
|
|
289
|
+
/******/
|
|
290
|
+
/******/ /* webpack/runtime/define property getters */
|
|
291
|
+
/******/ (() => {
|
|
292
|
+
/******/ // define getter functions for harmony exports
|
|
293
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
294
|
+
/******/ for(var key in definition) {
|
|
295
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
296
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
297
|
+
/******/ }
|
|
298
|
+
/******/ }
|
|
299
|
+
/******/ };
|
|
300
|
+
/******/ })();
|
|
301
|
+
/******/
|
|
302
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
303
|
+
/******/ (() => {
|
|
304
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
305
|
+
/******/ })();
|
|
306
|
+
/******/
|
|
307
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
308
|
+
/******/ (() => {
|
|
309
|
+
/******/ // define __esModule on exports
|
|
310
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
311
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
312
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
313
|
+
/******/ }
|
|
314
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
315
|
+
/******/ };
|
|
316
|
+
/******/ })();
|
|
317
|
+
/******/
|
|
318
|
+
/************************************************************************/
|
|
319
|
+
/******/
|
|
320
|
+
/******/ // startup
|
|
321
|
+
/******/ // Load entry module and return exports
|
|
322
|
+
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
323
|
+
/******/ var __webpack_exports__ = __webpack_require__("./src/index.ts");
|
|
324
|
+
/******/
|
|
325
|
+
/******/ return __webpack_exports__;
|
|
326
|
+
/******/ })()
|
|
327
|
+
;
|
|
328
|
+
});
|
|
@@ -44,6 +44,12 @@ function createDataConfig(dataOptions) {
|
|
|
44
44
|
requiredSome: dataConfig.validation?.required_some,
|
|
45
45
|
requiredEvery: dataConfig.validation?.required_every,
|
|
46
46
|
};
|
|
47
|
+
if ('hideSort' in dataConfig) {
|
|
48
|
+
config.hideSort = dataConfig.hideSort;
|
|
49
|
+
}
|
|
50
|
+
if ('hideCounter' in dataConfig) {
|
|
51
|
+
config.hideCounter = dataConfig.hideCounter;
|
|
52
|
+
}
|
|
47
53
|
return { data: config };
|
|
48
54
|
}
|
|
49
55
|
export async function loadWidgetOptionsConfig(widgetBasePath, dataSettings) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-widget-config.js","sourceRoot":"","sources":["../../../src-toolkit/load-widget-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC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;YAAE,OAAO;QAE1B,IAAI,cAAc,IAAI,IAAI;YAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;IACtE,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACnB,CAAC"}
|
|
@@ -48,6 +48,12 @@ function createDataConfig(dataOptions) {
|
|
|
48
48
|
requiredSome: dataConfig.validation?.required_some,
|
|
49
49
|
requiredEvery: dataConfig.validation?.required_every,
|
|
50
50
|
};
|
|
51
|
+
if ('hideSort' in dataConfig) {
|
|
52
|
+
config.hideSort = dataConfig.hideSort;
|
|
53
|
+
}
|
|
54
|
+
if ('hideCounter' in dataConfig) {
|
|
55
|
+
config.hideCounter = dataConfig.hideCounter;
|
|
56
|
+
}
|
|
51
57
|
return { data: config };
|
|
52
58
|
}
|
|
53
59
|
async function loadWidgetOptionsConfig(widgetBasePath, dataSettings) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-widget-config.js","sourceRoot":"","sources":["../../src-toolkit/load-widget-config.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAElC,qDAUkC;AAClC,wDAIqC;AACrC,qEAIkD;AAClD,mFAGyD;AAGlD,KAAK,UAAU,oBAAoB,CACtC,QAAgB;IAEhB,MAAM,IAAI,GAAG,QAAQ,GAAG,cAAc,CAAC;IAEvC,MAAM,MAAM,GAAkB,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC9D,QAAQ,CAAC,IAAI,EAAE,CAClB,CAAC;IAEF,OAAO,gBAAgB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AACjD,CAAC;AAVD,oDAUC;AAED,SAAS,gBAAgB,CACrB,WAA0C;IAE1C,MAAM,UAAU,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;IAEpC,IAAI,IAAA,iBAAG,EAAC,UAAU,CAAC;QAAE,OAAO;IAE5B,MAAM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