@genesislcap/foundation-login 10.3.1-alpha-08364b6.0 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1.0.0.remoteEntry.js +1 -1
- package/dist/{419.419.e6519a04803bb48e2278.js → 419.419.25c54d30d5ef03de4733.js} +2 -2
- package/dist/419.500ae8ac8e1ffc781af411dd2ad588cd.js.map +1 -0
- package/dist/{foundationLogin.9085c19966d730d558f8dfe1c60e5b6e.js.map → foundationLogin.dd27ce925c9e142951f9e650fb3f9b7e.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.8013d2e4912ee5d5d8426d73d26a4ca1.js.map → main.49b5ccad79942a173c5044389ff4b88b.js.map} +1 -1
- package/dist/{main.23cd82d6d21f31941ebe.js → main.cf8907a8eac5d741ac98.js} +2 -2
- package/dist/remoteEntry.js +2 -2
- package/package.json +6 -6
- package/dist/419.ae75c026ce84c68e6a0c0bb5cac3cc7c.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var foundationLogin;(()=>{"use strict";var e,t,r,n,o,a,i,f={8451:(e,t,r)=>{var n={"./index":()=>r.e(185).then((()=>()=>r(2185)))},o=(e,t)=>(r.R=t,t=r.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),r.R=void 0,t),a=(e,t)=>{if(r.S){var n=r.S.default,o="default";if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S[o]=e,r.I(o,t)}};r.d(t,{get:()=>o,init:()=>a})},8973:(e,t,r)=>{var n=new Error;e.exports=new Promise(((e,t)=>{if("undefined"!=typeof foundationZero)return e();r.l("http://localhost:4020/remoteEntry.js",(r=>{if("undefined"!=typeof foundationZero)return e();var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;n.message="Loading script failed.\n("+o+": "+a+")",n.name="ScriptExternalLoadError",n.type=o,n.request=a,t(n)}),"foundationZero")})).then((()=>foundationZero))}},s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}},n=!0;try{f[e].call(r.exports,r,r.exports,l),n=!1}finally{n&&delete s[e]}return r.exports}l.m=f,l.c=s,e=[],l.O=(t,r,n,o)=>{if(!r){var a=1/0;for(d=0;d<e.length;d++){for(var[r,n,o]=e[d],i=!0,f=0;f<r.length;f++)(!1&o||a>=o)&&Object.keys(l.O).every((e=>l.O[e](r[f])))?r.splice(f--,1):(i=!1,o<a&&(a=o));if(i){e.splice(d--,1);var s=n();void 0!==s&&(t=s)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[r,n,o]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);l.r(o);var a={};t=t||[null,r({}),r([]),r(r)];for(var i=2&n&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,l.d(o,a),o},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,r)=>(l.f[r](e,t),t)),[])),l.u=e=>(({47:"npm.dialog-polyfill",104:"npm.fortawesome",127:"npm.microsoft",271:"npm.rxjs",343:"npm.analytics",591:"npm.popperjs",690:"npm.finos",713:"npm.consola"}[e]||e)+"."+e+"."+{15:"7a2c23dfae8db4e093ae",47:"34b0c0d52e6712cf91bb",104:"f45009da0a55a389999c",127:"7781d48b93413319f199",170:"6ccfc6db6319d932ea16",176:"bfbfc60ffad852c406c4",185:"6c3ef3df3fe6f4879dab",261:"adbf236bbf30271ea23c",271:"210fdd198235c86ce4cd",273:"6d0d6d9689148d23e657",324:"2619ca091ddbab803f20",338:"e399ff6c11eb8175de4c",343:"1691cbc7d8a5badd3734",373:"960895be4ba9b85f6c55",397:"1de89f70cc9876b09be8",398:"47e0eb31700ff12e050f",419:"e6519a04803bb48e2278",453:"14247e88aa4df78dca2c",525:"618730490e4f4c94f362",591:"6ab52bc8e177edef695a",617:"56805ebf6a4d3483cfa1",690:"d012d887fab1a50fd3fd",691:"7d59d1da3a0f5a40c383",711:"4baf5d15121e7a43019c",713:"661cb6ae3806c228029d",726:"e09fed9a1e3b529acd46",741:"d84fc7e9236cae1acc99",981:"188bc276e628c20d1b4a",993:"cd3c9bdbc302e26a3ad6"}[e]+".js"),l.miniCssF=e=>{},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},o="@genesislcap/foundation-login:",l.l=(e,t,r,a)=>{if(n[e])n[e].push(t);else{var i,f;if(void 0!==r)for(var s=document.getElementsByTagName("script"),d=0;d<s.length;d++){var u=s[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==o+r){i=u;break}}i||(f=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",o+r),i.src=e),n[e]=[t];var c=(t,r)=>{i.onerror=i.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),f&&document.head.appendChild(i)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a={993:[2993]},i={2993:["default","./ZeroDesignSystem",8973]},l.f.remotes=(e,t)=>{l.o(a,e)&&a[e].forEach((e=>{var r=l.R;r||(r=[]);var n=i[e];if(!(r.indexOf(n)>=0)){if(r.push(n),n.p)return t.push(n.p);var o=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+='\nwhile loading "'+n[1]+'" from '+n[2]),f[e]=()=>{throw t},n.p=0},a=(e,r,a,i,f,s)=>{try{var l=e(r,a);if(!l||!l.then)return f(l,i,s);var d=l.then((e=>f(e,i)),o);if(!s)return d;t.push(n.p=d)}catch(e){o(e)}},s=(e,t,o)=>a(t.get,n[1],r,0,d,o),d=t=>{n.p=1,f[e]=e=>{e.exports=t()}};a(l,n[2],0,0,((e,t,r)=>e?a(l.I,n[0],0,e,s,r):o()),1)}}))},(()=>{l.S={};var e={},t={};l.I=(r,n)=>{n||(n=[]);var o=t[r];if(o||(o=t[r]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[r])return e[r];l.o(l.S,r)||(l.S[r]={});var a=l.S[r],i="@genesislcap/foundation-login",f=(e,t,r,n)=>{var o=a[e]=a[e]||{},f=o[t];(!f||!f.loaded&&(!n!=!f.eager?n:i>f.from))&&(o[t]={get:r,from:i,eager:!!n})},s=[];return"default"===r&&(f("@genesislcap/foundation-comms","10.3.0",(()=>Promise.all([l.e(271),l.e(690),l.e(343),l.e(273),l.e(373),l.e(398),l.e(981),l.e(397)]).then((()=>()=>l(4255))))),f("@genesislcap/foundation-ui","10.3.0",(()=>Promise.all([l.e(127),l.e(271),l.e(104),l.e(591),l.e(47),l.e(273),l.e(691),l.e(373),l.e(398),l.e(617),l.e(981),l.e(525),l.e(419)]).then((()=>()=>l(6419))))),f("@genesislcap/foundation-utils","10.3.0",(()=>Promise.all([l.e(713),l.e(273),l.e(373),l.e(398),l.e(617),l.e(453)]).then((()=>()=>l(2453))))),f("@genesislcap/foundation-zero","10.3.0",(()=>Promise.all([l.e(127),l.e(273),l.e(691),l.e(373),l.e(398),l.e(617),l.e(981),l.e(15),l.e(261)]).then((()=>()=>l(6015))))),f("@microsoft/fast-components","2.30.6",(()=>Promise.all([l.e(127),l.e(273),l.e(691),l.e(398),l.e(324)]).then((()=>()=>l(5043))))),f("@microsoft/fast-element","1.11.0",(()=>l.e(127).then((()=>()=>l(4179))))),f("@microsoft/fast-foundation","2.47.0",(()=>Promise.all([l.e(127),l.e(273),l.e(691),l.e(711),l.e(726)]).then((()=>()=>l(3963))))),f("@microsoft/fast-router","0.4.6",(()=>Promise.all([l.e(127),l.e(273),l.e(373)]).then((()=>()=>l(1879))))),f("@microsoft/fast-web-utilities","5.4.1",(()=>Promise.all([l.e(127),l.e(176)]).then((()=>()=>l(5514))))),f("tslib","1.14.1",(()=>l.e(127).then((()=>()=>l(7651))))),f("tslib","1.14.1",(()=>l.e(127).then((()=>()=>l(9040))))),f("tslib","2.5.0",(()=>l.e(338).then((()=>()=>l(8338))))),(e=>{var t=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var o=l(8973);if(!o)return;var a=e=>e&&e.init&&e.init(l.S[r],n);if(o.then)return s.push(o.then(a,t));var i=a(o);if(i&&i.then)return s.push(i.catch(t))}catch(e){t(e)}})(8973)),s.length?e[r]=Promise.all(s).then((()=>e[r]=1)):e[r]=1}}})(),l.p="/",(()=>{var e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},t=(t,r)=>{t=e(t),r=e(r);for(var n=0;;){if(n>=t.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=t[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],f=(typeof i)[0];if(a!=f)return"o"==a&&"n"==f||"s"==f||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},r=(t,n)=>{if(0 in t){n=e(n);var o=t[0],a=o<0;a&&(o=-o-1);for(var i=0,f=1,s=!0;;f++,i++){var l,d,u=f<t.length?(typeof t[f])[0]:"";if(i>=n.length||"o"==(d=(typeof(l=n[i]))[0]))return!s||("u"==u?f>o&&!a:""==u!=a);if("u"==d){if(!s||"u"!=u)return!1}else if(s)if(u==d)if(f<=o){if(l!=t[f])return!1}else{if(a?l>t[f]:l<t[f])return!1;l!=t[f]&&(s=!1)}else if("s"!=u&&"n"!=u){if(a||f<=o)return!1;s=!1,f--}else{if(f<=o||d<u!=a)return!1;s=!1}else"s"!=u&&"n"!=u&&(s=!1,f--)}}var c=[],p=c.pop.bind(c);for(i=1;i<t.length;i++){var h=t[i];c.push(1==h?p()|p():2==h?p()&p():h?r(h,n):!p())}return!!p()},n=(e,n,o)=>{var a=e[n];return(n=Object.keys(a).reduce(((e,n)=>!r(o,n)||e&&!t(e,n)?e:n),0))&&a[n]},o=(e=>function(t,r,n,o){var a=l.I(t);return a&&a.then?a.then(e.bind(e,t,l.S[t],r,n,o)):e(t,l.S[t],r,n,o)})(((e,t,r,o,a)=>{var i=t&&l.o(t,r)&&n(t,r,o);return i?(e=>(e.loaded=1,e.get()))(i):a()})),a={},i={1273:()=>o("default","@microsoft/fast-element",[1,1,7,0],(()=>l.e(127).then((()=>()=>l(4179))))),5373:()=>o("default","tslib",[1,2,3,1],(()=>l.e(338).then((()=>()=>l(8338))))),9398:()=>o("default","@microsoft/fast-foundation",[1,2,33,2],(()=>Promise.all([l.e(127),l.e(691),l.e(711),l.e(741)]).then((()=>()=>l(3963))))),7981:()=>o("default","@genesislcap/foundation-utils",[1,10,3,0],(()=>Promise.all([l.e(713),l.e(617),l.e(453)]).then((()=>()=>l(2453))))),9691:()=>o("default","@microsoft/fast-web-utilities",[1,5,0,2],(()=>Promise.all([l.e(127),l.e(176)]).then((()=>()=>l(5514))))),2617:()=>o("default","@microsoft/fast-components",[1,2,21,3],(()=>Promise.all([l.e(127),l.e(691),l.e(324)]).then((()=>()=>l(5043))))),2140:()=>o("default","@genesislcap/foundation-comms",[1,10,3,0],(()=>Promise.all([l.e(271),l.e(690),l.e(343),l.e(397)]).then((()=>()=>l(4255))))),1242:()=>o("default","@microsoft/fast-router",[2,0,4,2],(()=>l.e(127).then((()=>()=>l(1879))))),7261:()=>o("default","@genesislcap/foundation-ui",[1,10,3,0],(()=>Promise.all([l.e(127),l.e(271),l.e(104),l.e(591),l.e(47),l.e(525),l.e(419)]).then((()=>()=>l(6419))))),6324:()=>o("default","tslib",[1,2,3,1],(()=>l.e(127).then((()=>()=>l(7651))))),9711:()=>o("default","tslib",[1,2,3,1],(()=>l.e(127).then((()=>()=>l(9040))))),3671:()=>o("default","@genesislcap/foundation-zero",[1,10,3,0],(()=>Promise.all([l.e(127),l.e(15)]).then((()=>()=>l(6015)))))},f={170:[3671],261:[7261],273:[1273],324:[6324],373:[5373],398:[9398],525:[2140,1242],617:[2617],691:[9691],711:[9711],981:[7981]};l.f.consumes=(e,t)=>{l.o(f,e)&&f[e].forEach((e=>{if(l.o(a,e))return t.push(a[e]);var r=t=>{a[e]=0,l.m[e]=r=>{delete l.c[e],r.exports=t()}},n=t=>{delete a[e],l.m[e]=r=>{throw delete l.c[e],t}};try{var o=i[e]();o.then?t.push(a[e]=o.then(r).catch(n)):r(o)}catch(e){n(e)}}))}})(),(()=>{var e={770:0,703:0};l.f.j=(t,r)=>{var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(3(24|73|98)|(26|69|71|98)1|(27|70|99)3|525|617)$/.test(t))e[t]=0;else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var a=l.p+l.u(t),i=new Error;l.l(a,(r=>{if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+t,t)}},l.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[a,i,f]=r,s=0;for(n in i)l.o(i,n)&&(l.m[n]=i[n]);if(f)var d=f(l);for(t&&t(r);s<a.length;s++)o=a[s],l.o(e,o)&&e[o]&&e[o][0](),e[a[s]]=0;return l.O(d)},r=self.webpackChunk_genesislcap_foundation_login=self.webpackChunk_genesislcap_foundation_login||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var d=l.O(void 0,[703],(()=>l(8451)));d=l.O(d),foundationLogin=d})();
|
|
1
|
+
var foundationLogin;(()=>{"use strict";var e,t,r,n,o,a,i,f={8451:(e,t,r)=>{var n={"./index":()=>r.e(185).then((()=>()=>r(2185)))},o=(e,t)=>(r.R=t,t=r.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),r.R=void 0,t),a=(e,t)=>{if(r.S){var n=r.S.default,o="default";if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S[o]=e,r.I(o,t)}};r.d(t,{get:()=>o,init:()=>a})},8973:(e,t,r)=>{var n=new Error;e.exports=new Promise(((e,t)=>{if("undefined"!=typeof foundationZero)return e();r.l("http://localhost:4020/remoteEntry.js",(r=>{if("undefined"!=typeof foundationZero)return e();var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;n.message="Loading script failed.\n("+o+": "+a+")",n.name="ScriptExternalLoadError",n.type=o,n.request=a,t(n)}),"foundationZero")})).then((()=>foundationZero))}},s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}},n=!0;try{f[e].call(r.exports,r,r.exports,l),n=!1}finally{n&&delete s[e]}return r.exports}l.m=f,l.c=s,e=[],l.O=(t,r,n,o)=>{if(!r){var a=1/0;for(d=0;d<e.length;d++){for(var[r,n,o]=e[d],i=!0,f=0;f<r.length;f++)(!1&o||a>=o)&&Object.keys(l.O).every((e=>l.O[e](r[f])))?r.splice(f--,1):(i=!1,o<a&&(a=o));if(i){e.splice(d--,1);var s=n();void 0!==s&&(t=s)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[r,n,o]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);l.r(o);var a={};t=t||[null,r({}),r([]),r(r)];for(var i=2&n&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,l.d(o,a),o},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,r)=>(l.f[r](e,t),t)),[])),l.u=e=>(({47:"npm.dialog-polyfill",104:"npm.fortawesome",127:"npm.microsoft",271:"npm.rxjs",343:"npm.analytics",591:"npm.popperjs",690:"npm.finos",713:"npm.consola"}[e]||e)+"."+e+"."+{15:"7a2c23dfae8db4e093ae",47:"34b0c0d52e6712cf91bb",104:"f45009da0a55a389999c",127:"7781d48b93413319f199",170:"6ccfc6db6319d932ea16",176:"bfbfc60ffad852c406c4",185:"6c3ef3df3fe6f4879dab",261:"adbf236bbf30271ea23c",271:"210fdd198235c86ce4cd",273:"6d0d6d9689148d23e657",324:"2619ca091ddbab803f20",338:"e399ff6c11eb8175de4c",343:"1691cbc7d8a5badd3734",373:"960895be4ba9b85f6c55",397:"1de89f70cc9876b09be8",398:"47e0eb31700ff12e050f",419:"25c54d30d5ef03de4733",453:"14247e88aa4df78dca2c",525:"618730490e4f4c94f362",591:"6ab52bc8e177edef695a",617:"56805ebf6a4d3483cfa1",690:"d012d887fab1a50fd3fd",691:"7d59d1da3a0f5a40c383",711:"4baf5d15121e7a43019c",713:"661cb6ae3806c228029d",726:"e09fed9a1e3b529acd46",741:"d84fc7e9236cae1acc99",981:"188bc276e628c20d1b4a",993:"cd3c9bdbc302e26a3ad6"}[e]+".js"),l.miniCssF=e=>{},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},o="@genesislcap/foundation-login:",l.l=(e,t,r,a)=>{if(n[e])n[e].push(t);else{var i,f;if(void 0!==r)for(var s=document.getElementsByTagName("script"),d=0;d<s.length;d++){var u=s[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==o+r){i=u;break}}i||(f=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",o+r),i.src=e),n[e]=[t];var c=(t,r)=>{i.onerror=i.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),f&&document.head.appendChild(i)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a={993:[2993]},i={2993:["default","./ZeroDesignSystem",8973]},l.f.remotes=(e,t)=>{l.o(a,e)&&a[e].forEach((e=>{var r=l.R;r||(r=[]);var n=i[e];if(!(r.indexOf(n)>=0)){if(r.push(n),n.p)return t.push(n.p);var o=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+='\nwhile loading "'+n[1]+'" from '+n[2]),f[e]=()=>{throw t},n.p=0},a=(e,r,a,i,f,s)=>{try{var l=e(r,a);if(!l||!l.then)return f(l,i,s);var d=l.then((e=>f(e,i)),o);if(!s)return d;t.push(n.p=d)}catch(e){o(e)}},s=(e,t,o)=>a(t.get,n[1],r,0,d,o),d=t=>{n.p=1,f[e]=e=>{e.exports=t()}};a(l,n[2],0,0,((e,t,r)=>e?a(l.I,n[0],0,e,s,r):o()),1)}}))},(()=>{l.S={};var e={},t={};l.I=(r,n)=>{n||(n=[]);var o=t[r];if(o||(o=t[r]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[r])return e[r];l.o(l.S,r)||(l.S[r]={});var a=l.S[r],i="@genesislcap/foundation-login",f=(e,t,r,n)=>{var o=a[e]=a[e]||{},f=o[t];(!f||!f.loaded&&(!n!=!f.eager?n:i>f.from))&&(o[t]={get:r,from:i,eager:!!n})},s=[];return"default"===r&&(f("@genesislcap/foundation-comms","10.3.0",(()=>Promise.all([l.e(271),l.e(690),l.e(343),l.e(273),l.e(373),l.e(398),l.e(981),l.e(397)]).then((()=>()=>l(4255))))),f("@genesislcap/foundation-ui","10.3.0",(()=>Promise.all([l.e(127),l.e(271),l.e(104),l.e(591),l.e(47),l.e(273),l.e(691),l.e(373),l.e(398),l.e(617),l.e(981),l.e(525),l.e(419)]).then((()=>()=>l(6419))))),f("@genesislcap/foundation-utils","10.3.0",(()=>Promise.all([l.e(713),l.e(273),l.e(373),l.e(398),l.e(617),l.e(453)]).then((()=>()=>l(2453))))),f("@genesislcap/foundation-zero","10.3.0",(()=>Promise.all([l.e(127),l.e(273),l.e(691),l.e(373),l.e(398),l.e(617),l.e(981),l.e(15),l.e(261)]).then((()=>()=>l(6015))))),f("@microsoft/fast-components","2.30.6",(()=>Promise.all([l.e(127),l.e(273),l.e(691),l.e(398),l.e(324)]).then((()=>()=>l(5043))))),f("@microsoft/fast-element","1.11.0",(()=>l.e(127).then((()=>()=>l(4179))))),f("@microsoft/fast-foundation","2.47.0",(()=>Promise.all([l.e(127),l.e(273),l.e(691),l.e(711),l.e(726)]).then((()=>()=>l(3963))))),f("@microsoft/fast-router","0.4.6",(()=>Promise.all([l.e(127),l.e(273),l.e(373)]).then((()=>()=>l(1879))))),f("@microsoft/fast-web-utilities","5.4.1",(()=>Promise.all([l.e(127),l.e(176)]).then((()=>()=>l(5514))))),f("tslib","1.14.1",(()=>l.e(127).then((()=>()=>l(7651))))),f("tslib","1.14.1",(()=>l.e(127).then((()=>()=>l(9040))))),f("tslib","2.5.0",(()=>l.e(338).then((()=>()=>l(8338))))),(e=>{var t=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var o=l(8973);if(!o)return;var a=e=>e&&e.init&&e.init(l.S[r],n);if(o.then)return s.push(o.then(a,t));var i=a(o);if(i&&i.then)return s.push(i.catch(t))}catch(e){t(e)}})(8973)),s.length?e[r]=Promise.all(s).then((()=>e[r]=1)):e[r]=1}}})(),l.p="/",(()=>{var e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},t=(t,r)=>{t=e(t),r=e(r);for(var n=0;;){if(n>=t.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=t[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],f=(typeof i)[0];if(a!=f)return"o"==a&&"n"==f||"s"==f||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},r=(t,n)=>{if(0 in t){n=e(n);var o=t[0],a=o<0;a&&(o=-o-1);for(var i=0,f=1,s=!0;;f++,i++){var l,d,u=f<t.length?(typeof t[f])[0]:"";if(i>=n.length||"o"==(d=(typeof(l=n[i]))[0]))return!s||("u"==u?f>o&&!a:""==u!=a);if("u"==d){if(!s||"u"!=u)return!1}else if(s)if(u==d)if(f<=o){if(l!=t[f])return!1}else{if(a?l>t[f]:l<t[f])return!1;l!=t[f]&&(s=!1)}else if("s"!=u&&"n"!=u){if(a||f<=o)return!1;s=!1,f--}else{if(f<=o||d<u!=a)return!1;s=!1}else"s"!=u&&"n"!=u&&(s=!1,f--)}}var c=[],p=c.pop.bind(c);for(i=1;i<t.length;i++){var h=t[i];c.push(1==h?p()|p():2==h?p()&p():h?r(h,n):!p())}return!!p()},n=(e,n,o)=>{var a=e[n];return(n=Object.keys(a).reduce(((e,n)=>!r(o,n)||e&&!t(e,n)?e:n),0))&&a[n]},o=(e=>function(t,r,n,o){var a=l.I(t);return a&&a.then?a.then(e.bind(e,t,l.S[t],r,n,o)):e(t,l.S[t],r,n,o)})(((e,t,r,o,a)=>{var i=t&&l.o(t,r)&&n(t,r,o);return i?(e=>(e.loaded=1,e.get()))(i):a()})),a={},i={1273:()=>o("default","@microsoft/fast-element",[1,1,7,0],(()=>l.e(127).then((()=>()=>l(4179))))),5373:()=>o("default","tslib",[1,2,3,1],(()=>l.e(338).then((()=>()=>l(8338))))),9398:()=>o("default","@microsoft/fast-foundation",[1,2,33,2],(()=>Promise.all([l.e(127),l.e(691),l.e(711),l.e(741)]).then((()=>()=>l(3963))))),7981:()=>o("default","@genesislcap/foundation-utils",[1,10,3,0],(()=>Promise.all([l.e(713),l.e(617),l.e(453)]).then((()=>()=>l(2453))))),9691:()=>o("default","@microsoft/fast-web-utilities",[1,5,0,2],(()=>Promise.all([l.e(127),l.e(176)]).then((()=>()=>l(5514))))),2617:()=>o("default","@microsoft/fast-components",[1,2,21,3],(()=>Promise.all([l.e(127),l.e(691),l.e(324)]).then((()=>()=>l(5043))))),2140:()=>o("default","@genesislcap/foundation-comms",[1,10,3,0],(()=>Promise.all([l.e(271),l.e(690),l.e(343),l.e(397)]).then((()=>()=>l(4255))))),1242:()=>o("default","@microsoft/fast-router",[2,0,4,2],(()=>l.e(127).then((()=>()=>l(1879))))),7261:()=>o("default","@genesislcap/foundation-ui",[1,10,3,0],(()=>Promise.all([l.e(127),l.e(271),l.e(104),l.e(591),l.e(47),l.e(525),l.e(419)]).then((()=>()=>l(6419))))),6324:()=>o("default","tslib",[1,2,3,1],(()=>l.e(127).then((()=>()=>l(7651))))),9711:()=>o("default","tslib",[1,2,3,1],(()=>l.e(127).then((()=>()=>l(9040))))),3671:()=>o("default","@genesislcap/foundation-zero",[1,10,3,0],(()=>Promise.all([l.e(127),l.e(15)]).then((()=>()=>l(6015)))))},f={170:[3671],261:[7261],273:[1273],324:[6324],373:[5373],398:[9398],525:[2140,1242],617:[2617],691:[9691],711:[9711],981:[7981]};l.f.consumes=(e,t)=>{l.o(f,e)&&f[e].forEach((e=>{if(l.o(a,e))return t.push(a[e]);var r=t=>{a[e]=0,l.m[e]=r=>{delete l.c[e],r.exports=t()}},n=t=>{delete a[e],l.m[e]=r=>{throw delete l.c[e],t}};try{var o=i[e]();o.then?t.push(a[e]=o.then(r).catch(n)):r(o)}catch(e){n(e)}}))}})(),(()=>{var e={770:0,703:0};l.f.j=(t,r)=>{var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(3(24|73|98)|(26|69|71|98)1|(27|70|99)3|525|617)$/.test(t))e[t]=0;else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var a=l.p+l.u(t),i=new Error;l.l(a,(r=>{if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+t,t)}},l.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[a,i,f]=r,s=0;for(n in i)l.o(i,n)&&(l.m[n]=i[n]);if(f)var d=f(l);for(t&&t(r);s<a.length;s++)o=a[s],l.o(e,o)&&e[o]&&e[o][0](),e[a[s]]=0;return l.O(d)},r=self.webpackChunk_genesislcap_foundation_login=self.webpackChunk_genesislcap_foundation_login||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var d=l.O(void 0,[703],(()=>l(8451)));d=l.O(d),foundationLogin=d})();
|
|
@@ -818,7 +818,7 @@
|
|
|
818
818
|
${(0,s.when)((e=>e.rowData),s.html`
|
|
819
819
|
${e=>"DATETIME"===e.columnDefinition.type?(0,ho.formatDateTimeTimestamp)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
820
820
|
`)}
|
|
821
|
-
`;class Xo extends r.FoundationElement{constructor(){super(...arguments),this.acceptedFormats=[],this.accept="",this.fileSizeLimitBytes=104857600,this.uploadedFilesResourceName="ALL_FILE_ATTACHMENTS",this.uploadEventName="attachment-handler/upload",this.gridFields="",this.fileName="",this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(",").forEach((t=>{"image/*"===t?e=[...e,...Uo]:"office/*"===t?e=[...e,...Wo]:"text/*"===t?e=[...e,...Yo]:e.push(t)})),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),(null===(t=this.filesGridColumnDefinitions)||void 0===t?void 0:t.length)||this.setColumnDefs()}))}setupGrid(){void 0!==this.entityId&&void 0!==this.fieldName&&(this.gridCriteria=(new Go).withExpression((new Vo).withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(const o of e.ROW)if(o.DETAILS)switch(o.DETAILS.OPERATION){case"INSERT":this.uploadedFilesList.unshift(o);break;case"MODIFY":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1,o);break;case"DELETE":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1);break;default:me.logger.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){yield this.connect.stream(this.uploadedFilesResourceName,(e=>{var t;1===e.SEQUENCE_ID?this.uploadedFilesList=null!==(t=e.ROW)&&void 0!==t?t:[]:this.handleStreamRowOperation(e)}),(e=>{me.logger.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,n.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=(this.gridFields.length>0&&t.FIELD?t.FIELD.filter((e=>this.gridFields.split(" ").includes(e.NAME))):null!==(e=t.FIELD)&&void 0!==e?e:[]).map((e=>({columnDataKey:e.NAME,title:e.NAME.toLowerCase().split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),type:e.TYPE,cellTemplate:qo})));this.filesGridColumnDefinitions=o}))}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t,o;const i=Array.from(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.files)&&void 0!==o?o:[]);this.onFilesSelected(i)}onFilesSelected(e){if(e.length>0){if(this.acceptedFormats.length>0)for(const t of e){if(!this.acceptedFormats.includes(t.type))return void alert(`Not a valid file type. Accepted Formats are ${this.accept}`);if(t.size>this.fileSizeLimitBytes)return void alert(`File size exceeds the file size limit of ${this.fileSizeLimitBytes} bytes`)}this.selectedFiles=e,this.fileName=this.selectedFiles.map((e=>e.name.trim())).join()}}handleFileUpload(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){try{const e=(e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t})(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=(e=>{let
|
|
821
|
+
`;class Xo extends r.FoundationElement{constructor(){super(...arguments),this.acceptedFormats=[],this.accept="",this.fileSizeLimitBytes=104857600,this.uploadedFilesResourceName="ALL_FILE_ATTACHMENTS",this.uploadEventName="attachment-handler/upload",this.gridFields="",this.fileName="",this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(",").forEach((t=>{"image/*"===t?e=[...e,...Uo]:"office/*"===t?e=[...e,...Wo]:"text/*"===t?e=[...e,...Yo]:e.push(t)})),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),(null===(t=this.filesGridColumnDefinitions)||void 0===t?void 0:t.length)||this.setColumnDefs()}))}setupGrid(){void 0!==this.entityId&&void 0!==this.fieldName&&(this.gridCriteria=(new Go).withExpression((new Vo).withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(const o of e.ROW)if(o.DETAILS)switch(o.DETAILS.OPERATION){case"INSERT":this.uploadedFilesList.unshift(o);break;case"MODIFY":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1,o);break;case"DELETE":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1);break;default:me.logger.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){yield this.connect.stream(this.uploadedFilesResourceName,(e=>{var t;1===e.SEQUENCE_ID?this.uploadedFilesList=null!==(t=e.ROW)&&void 0!==t?t:[]:this.handleStreamRowOperation(e)}),(e=>{me.logger.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,n.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=(this.gridFields.length>0&&t.FIELD?t.FIELD.filter((e=>this.gridFields.split(" ").includes(e.NAME))):null!==(e=t.FIELD)&&void 0!==e?e:[]).map((e=>({columnDataKey:e.NAME,title:e.NAME.toLowerCase().split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),type:e.TYPE,cellTemplate:qo})));this.filesGridColumnDefinitions=o}))}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t,o;const i=Array.from(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.files)&&void 0!==o?o:[]);this.onFilesSelected(i)}onFilesSelected(e){if(e.length>0){if(this.acceptedFormats.length>0)for(const t of e){if(!this.acceptedFormats.includes(t.type))return void alert(`Not a valid file type. Accepted Formats are ${this.accept}`);if(t.size>this.fileSizeLimitBytes)return void alert(`File size exceeds the file size limit of ${this.fileSizeLimitBytes} bytes`)}this.selectedFiles=e,this.fileName=this.selectedFiles.map((e=>e.name.trim())).join()}}handleFileUpload(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){try{const e=(e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t})(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=((e,t="/gwf/")=>{let o;return o="https://"+location.hostname+t+e,o})(this.uploadEventName),o=yield((e,t,o)=>{const i=new Headers;return i.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:"POST",body:t,headers:i}).then((e=>e.json().then((e=>e))))})(t,e,this.session.getItem("authToken","session"));if(o.ERROR)return me.logger.error(o.ERROR),void this.$emit("errorOut",o.ERROR);me.logger.info(o),this.clearSelection()}catch(e){me.logger.error(e)}}))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,n.__decorate)([s.observable],Xo.prototype,"gridCriteria",void 0),(0,n.__decorate)([me.Connect],Xo.prototype,"connect",void 0),(0,n.__decorate)([me.Session],Xo.prototype,"session",void 0),(0,n.__decorate)([s.attr],Xo.prototype,"label",void 0),(0,n.__decorate)([s.attr],Xo.prototype,"accept",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"file-size-limit-bytes"})],Xo.prototype,"fileSizeLimitBytes",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"uploaded-files-resource-name"})],Xo.prototype,"uploadedFilesResourceName",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"upload-event-name"})],Xo.prototype,"uploadEventName",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"field-name"})],Xo.prototype,"fieldName",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"entity-id"})],Xo.prototype,"entityId",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"upload-key"})],Xo.prototype,"uploadKey",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"grid-fields"})],Xo.prototype,"gridFields",void 0),(0,n.__decorate)([s.observable],Xo.prototype,"fileName",void 0),(0,n.__decorate)([s.observable],Xo.prototype,"uploadedFilesList",void 0),(0,n.__decorate)([s.observable],Xo.prototype,"filesGridColumnDefinitions",void 0);const Zo=void 0,Ko={},Jo=Xo.compose(Object.assign({baseName:"file-upload",styles:No,template:Mo,shadowOptions:Zo},Ko)),Qo=s.css`
|
|
822
822
|
.filter-wrapper {
|
|
823
823
|
border: 1px solid gray;
|
|
824
824
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -2137,4 +2137,4 @@
|
|
|
2137
2137
|
text-overflow: ellipsis;
|
|
2138
2138
|
}
|
|
2139
2139
|
`,Dr=void 0,Cr={};class _r extends m.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,n.__decorate)([s.observable],_r.prototype,"value",void 0),(0,n.__decorate)([s.observable],_r.prototype,"focused",void 0);const kr=_r.compose(Object.assign({baseName:"url-input",template:$r,styles:Sr,shadowOptions:Dr},Cr)),Or={foundationActionsMenu:h,foundationAnchor:w,foundationBadge:C,foundationBanner:L,foundationBreadcrumbItem:I,foundationBreadcrumb:j,foundationButton:X,foundationCard:te,foundationCheckbox:re,foundationCombobox:he,foundationConnectionIndicator:be,foundationDataGrid:Se,foundationDataGridCell:Oe,foundationDataGridRow:Me,foundationDatePicker:We,foundationDesignSystemProvider:Nt,foundationDialog:Vt,foundationDisclosure:Zt,foundationDivider:oo,foundationDropdownMenu:uo,foundationErrorBoundary:Co,foundationErrorBanner:vo,foundationErrorDialog:Ro,foundationFileUpload:Jo,foundationFilter:ui,foundationFilterBar:wi,foundationFlexLayout:ki,foundationFlipper:Mi,foundationFlyout:Bi,foundationGridLayout:Zi,foundationGridLayoutItem:ta,foundationIcon:ha,foundationListboxOption:ya,foundationMenu:Da,foundationMenuItem:La,foundationModal:Ia,foundationMultiselect:Ya,foundationNumberField:Ja,foundationProgress:nn,foundationPopper:un,foundationProgressRing:vn,foundationRadio:$n,foundationRadioGroup:On,foundationSegmentedControl:Nn,foundationSegmentedItem:Bn,foundationSelect:Wn,foundationSkeleton:Qn,foundationSlider:cs,foundationSnackbar:as,foundationSwitch:gs,foundationTab:Fs,foundationTabPanel:ks,foundationTabs:Ms,foundationTextArea:Gs,foundationTextField:Ys,foundationToast:Js,foundationToolbar:ar,foundationTooltip:cr,foundationTreeItem:gr,foundationTreeView:Fr,foundationUrlInput:kr,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function Tr(e){return new Proxy(e,{get:(e,t,...o)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...o)}})}const Lr=(e,t="foundation")=>{e&&yt(i,a,e);return Tr(r.DesignSystem.getOrCreate(e).withPrefix(t))};class Rr extends s.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return s.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,o]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,o).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}var Ar=o(1857);class Mr extends r.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=me.DatasourceDefaults.MAX_ROWS_250,this.maxView=me.DatasourceDefaults.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new Ar.X(new Map)}disconnectedCallback(){super.disconnectedCallback(),this.clearData()}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,n.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else mo.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===me.MessageType.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=this.filterRows(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else mo.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}filterRows(e){const t=e=>{const t=Object.assign(Object.assign({},e),{[this.rowId]:e.DETAILS[this.rowId]});return delete t.DETAILS,t},o=[],i=[],a=[];for(const n of e.ROW)if(n.DETAILS)switch(n.DETAILS.OPERATION){case"INSERT":o.push(t(n));break;case"MODIFY":a.push(t(n));break;case"DELETE":i.push(t(n));break;default:mo.error(`Unsupported operation type: ${n.DETAILS.OPERATION}`)}return{inserts:o,deletes:i,updates:a,SOURCE_REF:e.SOURCE_REF}}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void mo.error("received invalid RequestServerResult",e);if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return this.normalizeCriteria(t.join(" && "))}criteriaChanged(e,t){const o=!e&&t,i=e!==this.normalizeCriteria(t);(o||i)&&s.DOM.queueUpdate((()=>this.fetchGenesisData(null)))}normalizeCriteria(e){return e?e.split(";").map((e=>e.trim())).sort(((e,t)=>e.localeCompare(t))).join(";"):e}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}}(0,n.__decorate)([me.Connect],Mr.prototype,"connect",void 0),(0,n.__decorate)([me.Datasource],Mr.prototype,"datasource",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Mr.prototype,"withGridInit",void 0),(0,n.__decorate)([s.attr],Mr.prototype,"criteria",void 0),(0,n.__decorate)([s.observable],Mr.prototype,"data",void 0),(0,n.__decorate)([s.attr],Mr.prototype,"fields",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Mr.prototype,"isSnapshot",void 0),(0,n.__decorate)([s.attr],Mr.prototype,"maxRows",void 0),(0,n.__decorate)([s.attr],Mr.prototype,"maxView",void 0),(0,n.__decorate)([s.attr],Mr.prototype,"orderBy",void 0),(0,n.__decorate)([s.observable],Mr.prototype,"request",void 0),(0,n.__decorate)([s.attr],Mr.prototype,"resourceName",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],Mr.prototype,"reverse",void 0),(0,n.__decorate)([s.attr],Mr.prototype,"rowId",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],Mr.prototype,"withTimestampFormatting",void 0);let Nr=class extends Mr{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()}))}getColumnDefs(e){return null==e?void 0:e.flatMap((e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name}))}clearData(){mo.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),o=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=o,this.dataGrid.rowsData=t}handleStreamInserts(e){mo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){mo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){mo.debug("handleStreamUpdates - Method not implemented.")}};var Er;Nr=(0,n.__decorate)([(0,s.customElement)({name:"data-grid-datasource"})],Nr);let Ir=Er=class extends Mr{constructor(){super(...arguments),this.optionElement="fast-option",this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select.addEventListener("change",(e=>{const t=this.options.find((t=>t.label===e.target.value));this.select.$emit("value-change",t)})),this.select&&this.valueField&&(this.resourceName||this.data)&&this.connect.isConnected&&this.fetchGenesisData(),this.valueField||mo.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Er||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());this.options=o.map((e=>({value:e[this.valueField],label:e[this.labelField]})));this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)}));const i=null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label;s.DOM.queueUpdate((()=>{this.select.value=i}))}handleStreamInserts(e){mo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){mo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){mo.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,s.attr)({attribute:"label-field"})],Ir.prototype,"labelField",void 0),(0,n.__decorate)([(0,s.attr)({attribute:"value-field"})],Ir.prototype,"valueField",void 0),(0,n.__decorate)([s.observable],Ir.prototype,"initialSelectedValue",void 0),Ir=Er=(0,n.__decorate)([(0,s.customElement)({name:"options-datasource"})],Ir);let Pr=class extends Mr{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,n.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName||this.data)&&this.connect.isConnected&&this.fetchGenesisData(),this.valueField||mo.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){const t=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>({value:e[this.valueField]})));this.select.options=t.map((({value:e})=>e))}handleStreamInserts(e){mo.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){mo.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){mo.debug("handleStreamUpdates - Method not implemented.")}};(0,n.__decorate)([(0,s.attr)({attribute:"value-field"})],Pr.prototype,"valueField",void 0),Pr=(0,n.__decorate)([(0,s.customElement)({name:"multiselect-datasource"})],Pr);const Hr=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return s.FASTElement.define(class extends e{},i(o))};function Gr(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=s.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var Br=o(1242);let zr=class extends(Br.Router.from(s.FASTElement)){connectedCallback(){super.connectedCallback(),s.DOM.queueUpdate((()=>(0,n.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};zr=(0,n.__decorate)([(0,s.customElement)({name:"foundation-router"})],zr);const jr=()=>Lr().register(Or)}}]);
|
|
2140
|
-
//# sourceMappingURL=419.
|
|
2140
|
+
//# sourceMappingURL=419.500ae8ac8e1ffc781af411dd2ad588cd.js.map
|