@enablerr-ui/task 0.2.12 → 0.2.13
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/index.min.js +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@enablerr-ui/form","@enablerr-ui/detail"],(function(t){"use strict";var e,n;return{setters:[function(t){e=t.default},function(t){n=t.getForm}],execute:function(){t("version","0.2.12");function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r,c,s=(r=function(t,e){function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function o(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("object"!==c(t))throw new Error("single-spa-svelte requires a configuration object");var e=o(o({},s),t);if(!e.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:u.bind(null,e,n),mount:a.bind(null,e,n),unmount:i.bind(null,e,n),update:l.bind(null,e,n)}};var s={component:null,domElementGetter:null,props:{}};function u(t){return Promise.resolve()}function a(t,e,n){var r=Object.keys(s),c=Object.keys(t).reduce((function(e,n){return r.includes(n)||(e[n]=t[n]),e}),{});return Promise.resolve().then((function(){var r=function(t,e){return(e=e&&e.customProps?e.customProps:e).domElement?function(){return e.domElement}:e.domElementGetter?function(){return e.domElementGetter(e)}:t.domElementGetter?function(){return t.domElementGetter(e)}:function(t){var e=t.appName||t.name;if(!e)throw Error("single-spa-svelte was not given an application name as a prop, so it can't make a unique dom element container for the svelte application");var n="single-spa-application:".concat(e);return function(){var t=document.getElementById(n);return t||((t=document.createElement("div")).id=n,document.body.appendChild(t)),t}}(e)}(t,n),s=r();e.instance=new t.component(o(o({},c),{},{target:s,props:Object.assign({},n,t.props)}))}))}function i(t,e){return Promise.resolve().then((function(){e.instance.$destroy?e.instance.$destroy():e.instance.destroy()}))}function l(t,e,n){return Promise.resolve().then((function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)}))}},r(c={exports:{}},c.exports),c.exports),u=o(s);function a(){}function i(t){return t()}function l(){return Object.create(null)}function f(t){t.forEach(i)}function p(t){return"function"==typeof t}function m(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function d(t){t.parentNode.removeChild(t)}let g;function $(t){g=t}const b=[],y=[],h=[],v=[],O=Promise.resolve();let E=!1;function w(t){h.push(t)}let P=!1;const _=new Set;function j(){if(!P){P=!0;do{for(let t=0;t<b.length;t+=1){const e=b[t];$(e),k(e.$$)}for($(null),b.length=0;y.length;)y.pop()();for(let t=0;t<h.length;t+=1){const e=h[t];_.has(e)||(_.add(e),e())}h.length=0}while(b.length);for(;v.length;)v.pop()();E=!1,P=!1,_.clear()}}function k(t){if(null!==t.fragment){t.update(),f(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(w)}}const x=new Set;function S(t,e){t&&t.i&&(x.delete(t),t.i(e))}function D(t,e,n,o){if(t&&t.o){if(x.has(t))return;x.add(t),t.o(e)}}function I(t){t&&t.c()}function G(t,e,n,o){const{fragment:r,on_mount:c,on_destroy:s,after_update:u}=t.$$;r&&r.m(e,n),o||w((()=>{const e=c.map(i).filter(p);s?s.push(...e):f(e),t.$$.on_mount=[]})),u.forEach(w)}function q(t,e){const n=t.$$;null!==n.fragment&&(f(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function N(t,e){-1===t.$$.dirty[0]&&(b.push(t),E||(E=!0,O.then(j)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function B(t,e,n,o,r,c,s=[-1]){const u=g;$(t);const i=t.$$={fragment:null,ctx:null,props:c,update:a,not_equal:r,bound:l(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:e.context||[]),callbacks:l(),dirty:s,skip_bound:!1};let p=!1;if(i.ctx=n?n(t,e.props||{},((e,n,...o)=>{const c=o.length?o[0]:n;return i.ctx&&r(i.ctx[e],i.ctx[e]=c)&&(!i.skip_bound&&i.bound[e]&&i.bound[e](c),p&&N(t,e)),n})):[],i.update(),p=!0,f(i.before_update),i.fragment=!!o&&o(i.ctx),e.target){if(e.hydrate){const t=(m=e.target,Array.from(m.childNodes));i.fragment&&i.fragment.l(t),t.forEach(d)}else i.fragment&&i.fragment.c();e.intro&&S(t.$$.fragment),G(t,e.target,e.anchor,e.customElement),j()}var m;$(u)}function M(t){let e,n;return e=new t[1]({props:{schema:t[8],prevEventID:t[9],prev:t[10],taskID:t[11]}}),e.$on("back",t[3]),{c(){I(e.$$.fragment)},m(t,o){G(e,t,o),n=!0},p(t,n){const o={};256&n&&(o.schema=t[8]),512&n&&(o.prevEventID=t[9]),1024&n&&(o.prev=t[10]),2048&n&&(o.taskID=t[11]),e.$set(o)},i(t){n||(S(e.$$.fragment,t),n=!0)},o(t){D(e.$$.fragment,t),n=!1},d(t){q(e,t)}}}function C(t){let e,n;return e=new t[0]({props:{update:t[2],$$slots:{default:[M,({prop:{schema:t,prevEventID:e,prev:n,taskID:o}})=>({8:t,9:e,10:n,11:o}),({prop:t})=>(t?256:0)|(t?512:0)|(t?1024:0)|(t?2048:0)]},$$scope:{ctx:t}}}),{c(){I(e.$$.fragment)},m(t,o){G(e,t,o),n=!0},p(t,[n]){const o={};7936&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(S(e.$$.fragment,t),n=!0)},o(t){D(e.$$.fragment,t),n=!1},d(t){q(e,t)}}}function T(t,o,r){const{Page:c,Request:s}=e,u=n();let{name:a=!1}=o,{singleSpa:i=!1}=o,{mountParcel:l=!1}=o;return t.$$set=t=>{"name"in t&&r(4,a=t.name),"singleSpa"in t&&r(5,i=t.singleSpa),"mountParcel"in t&&r(6,l=t.mountParcel)},[c,u,(t,e)=>s.getTasksList(t).then((t=>({schema:t.schema,prev:t.data[0],title:t.schema.identity.designation}))).then((t=>s.getTaskById(e).then((n=>({...t,prevEventID:n.event,taskID:e}))))),()=>window.singleSpaNavigate("/"),a,i,l]}const A=u({component:class extends class{$destroy(){q(this,1),this.$destroy=a}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}{constructor(t){super(),B(this,t,T,C,m,{name:4,singleSpa:5,mountParcel:6})}},domElementGetter:()=>document.getElementById("detail-app")}),{bootstrap:F,mount:L,unmount:R}=A;t({bootstrap:F,mount:L,unmount:R})}}}));
|
|
1
|
+
System.register(["@enablerr-ui/layout","@enablerr-ui/form","@enablerr-ui/workflow","@enablerr-ui/report","@enablerr-ui/collab"],(function(t){"use strict";var e,n,o,r,s,i;return{setters:[function(t){e=t.getAttractions},function(t){n=t.Page,o=t.Request},function(t){r=t.Workflow},function(t){s=t.Report},function(t){i=t.Collaboration}],execute:function(){t("version","0.2.13");function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var l,a,u=(l=function(t,e){function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function o(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("object"!==s(t))throw new Error("single-spa-svelte requires a configuration object");var e=o(o({},i),t);if(!e.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:c.bind(null,e,n),mount:l.bind(null,e,n),unmount:a.bind(null,e,n),update:u.bind(null,e,n)}};var i={component:null,domElementGetter:null,props:{}};function c(t){return Promise.resolve()}function l(t,e,n){var r=Object.keys(i),s=Object.keys(t).reduce((function(e,n){return r.includes(n)||(e[n]=t[n]),e}),{});return Promise.resolve().then((function(){var r=function(t,e){return(e=e&&e.customProps?e.customProps:e).domElement?function(){return e.domElement}:e.domElementGetter?function(){return e.domElementGetter(e)}:t.domElementGetter?function(){return t.domElementGetter(e)}:function(t){var e=t.appName||t.name;if(!e)throw Error("single-spa-svelte was not given an application name as a prop, so it can't make a unique dom element container for the svelte application");var n="single-spa-application:".concat(e);return function(){var t=document.getElementById(n);return t||((t=document.createElement("div")).id=n,document.body.appendChild(t)),t}}(e)}(t,n),i=r();e.instance=new t.component(o(o({},s),{},{target:i,props:Object.assign({},n,t.props)}))}))}function a(t,e){return Promise.resolve().then((function(){e.instance.$destroy?e.instance.$destroy():e.instance.destroy()}))}function u(t,e,n){return Promise.resolve().then((function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)}))}},l(a={exports:{}},a.exports),a.exports),f=c(u);function d(){}function m(t){return t()}function p(){return Object.create(null)}function $(t){t.forEach(m)}function h(t){return"function"==typeof t}function g(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function y(t,e){t.appendChild(e)}function v(t,e,n){t.insertBefore(e,n||null)}function k(t){t.parentNode.removeChild(t)}function b(t){return document.createElement(t)}function w(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function x(t){return document.createTextNode(t)}function _(){return x(" ")}function C(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function E(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}let I;function z(t){I=t}function j(){if(!I)throw new Error("Function called outside component initialization");return I}const O=[],B=[],W=[],P=[],S=Promise.resolve();let T=!1;function N(t){W.push(t)}let A=!1;const D=new Set;function M(){if(!A){A=!0;do{for(let t=0;t<O.length;t+=1){const e=O[t];z(e),F(e.$$)}for(z(null),O.length=0;B.length;)B.pop()();for(let t=0;t<W.length;t+=1){const e=W[t];D.has(e)||(D.add(e),e())}W.length=0}while(O.length);for(;P.length;)P.pop()();T=!1,A=!1,D.clear()}}function F(t){if(null!==t.fragment){t.update(),$(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(N)}}const G=new Set;let q;function H(){q={r:0,c:[],p:q}}function R(){q.r||$(q.c),q=q.p}function K(t,e){t&&t.i&&(G.delete(t),t.i(e))}function L(t,e,n,o){if(t&&t.o){if(G.has(t))return;G.add(t),q&&q.c.push((()=>{G.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function V(t,e){const n=e.token={};function o(t,o,r,s){if(e.token!==n)return;e.resolved=s;let i=e.ctx;void 0!==r&&(i=i.slice(),i[r]=s);const c=t&&(e.current=t)(i);let l=!1;e.block&&(e.blocks?e.blocks.forEach(((t,n)=>{n!==o&&t&&(H(),L(t,1,1,(()=>{e.blocks[n]===t&&(e.blocks[n]=null)})),R())})):e.block.d(1),c.c(),K(c,1),c.m(e.mount(),e.anchor),l=!0),e.block=c,e.blocks&&(e.blocks[o]=c),l&&M()}if((r=t)&&"object"==typeof r&&"function"==typeof r.then){const n=j();if(t.then((t=>{z(n),o(e.then,1,e.value,t),z(null)}),(t=>{if(z(n),o(e.catch,2,e.error,t),z(null),!e.hasCatch)throw t})),e.current!==e.pending)return o(e.pending,0),!0}else{if(e.current!==e.then)return o(e.then,1,e.value,t),!0;e.resolved=t}var r}function J(t,e,n){const o=e.slice(),{resolved:r}=t;t.current===t.then&&(o[t.value]=r),t.current===t.catch&&(o[t.error]=r),t.block.p(o,n)}function Q(t){t&&t.c()}function U(t,e,n,o){const{fragment:r,on_mount:s,on_destroy:i,after_update:c}=t.$$;r&&r.m(e,n),o||N((()=>{const e=s.map(m).filter(h);i?i.push(...e):$(e),t.$$.on_mount=[]})),c.forEach(N)}function X(t,e){const n=t.$$;null!==n.fragment&&($(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Y(t,e){-1===t.$$.dirty[0]&&(O.push(t),T||(T=!0,S.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Z(t,e,n,o,r,s,i=[-1]){const c=I;z(t);const l=t.$$={fragment:null,ctx:null,props:s,update:d,not_equal:r,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:e.context||[]),callbacks:p(),dirty:i,skip_bound:!1};let a=!1;if(l.ctx=n?n(t,e.props||{},((e,n,...o)=>{const s=o.length?o[0]:n;return l.ctx&&r(l.ctx[e],l.ctx[e]=s)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](s),a&&Y(t,e)),n})):[],l.update(),a=!0,$(l.before_update),l.fragment=!!o&&o(l.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);l.fragment&&l.fragment.l(t),t.forEach(k)}else l.fragment&&l.fragment.c();e.intro&&K(t.$$.fragment),U(t,e.target,e.anchor,e.customElement),M()}z(c)}class tt{$destroy(){X(this,1),this.$destroy=d}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function et(t){let e,n,o,r;return{c(){e=w("svg"),n=w("line"),o=w("polyline"),C(n,"x1","7"),C(n,"y1","17"),C(n,"x2","17"),C(n,"y2","7"),C(o,"points","7 7 17 7 17 17"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"width",t[0]),C(e,"height",t[0]),C(e,"fill","none"),C(e,"viewBox","0 0 24 24"),C(e,"stroke","currentColor"),C(e,"stroke-width",t[1]),C(e,"stroke-linecap","round"),C(e,"stroke-linejoin","round"),C(e,"class",r="feather feather-arrow-up-right "+t[2])},m(t,r){v(t,e,r),y(e,n),y(e,o)},p(t,[n]){1&n&&C(e,"width",t[0]),1&n&&C(e,"height",t[0]),2&n&&C(e,"stroke-width",t[1]),4&n&&r!==(r="feather feather-arrow-up-right "+t[2])&&C(e,"class",r)},i:d,o:d,d(t){t&&k(e)}}}function nt(t,e,n){let{size:o="100%"}=e,{strokeWidth:r=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,r=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,r,s]}class ot extends tt{constructor(t){super(),Z(this,t,nt,et,g,{size:0,strokeWidth:1,class:2})}}function rt(t){let e,n,o,r,s,i;return{c(){e=w("svg"),n=w("rect"),o=w("line"),r=w("line"),s=w("line"),C(n,"x","3"),C(n,"y","4"),C(n,"width","18"),C(n,"height","18"),C(n,"rx","2"),C(n,"ry","2"),C(o,"x1","16"),C(o,"y1","2"),C(o,"x2","16"),C(o,"y2","6"),C(r,"x1","8"),C(r,"y1","2"),C(r,"x2","8"),C(r,"y2","6"),C(s,"x1","3"),C(s,"y1","10"),C(s,"x2","21"),C(s,"y2","10"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"width",t[0]),C(e,"height",t[0]),C(e,"fill","none"),C(e,"viewBox","0 0 24 24"),C(e,"stroke","currentColor"),C(e,"stroke-width",t[1]),C(e,"stroke-linecap","round"),C(e,"stroke-linejoin","round"),C(e,"class",i="feather feather-calendar "+t[2])},m(t,i){v(t,e,i),y(e,n),y(e,o),y(e,r),y(e,s)},p(t,[n]){1&n&&C(e,"width",t[0]),1&n&&C(e,"height",t[0]),2&n&&C(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-calendar "+t[2])&&C(e,"class",i)},i:d,o:d,d(t){t&&k(e)}}}function st(t,e,n){let{size:o="100%"}=e,{strokeWidth:r=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,r=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,r,s]}class it extends tt{constructor(t){super(),Z(this,t,st,rt,g,{size:0,strokeWidth:1,class:2})}}function ct(t){let e,n,o,r,s;return{c(){e=w("svg"),n=w("circle"),o=w("line"),r=w("line"),C(n,"cx","12"),C(n,"cy","12"),C(n,"r","10"),C(o,"x1","12"),C(o,"y1","16"),C(o,"x2","12"),C(o,"y2","12"),C(r,"x1","12"),C(r,"y1","8"),C(r,"x2","12.01"),C(r,"y2","8"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"width",t[0]),C(e,"height",t[0]),C(e,"fill","none"),C(e,"viewBox","0 0 24 24"),C(e,"stroke","currentColor"),C(e,"stroke-width",t[1]),C(e,"stroke-linecap","round"),C(e,"stroke-linejoin","round"),C(e,"class",s="feather feather-info "+t[2])},m(t,s){v(t,e,s),y(e,n),y(e,o),y(e,r)},p(t,[n]){1&n&&C(e,"width",t[0]),1&n&&C(e,"height",t[0]),2&n&&C(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-info "+t[2])&&C(e,"class",s)},i:d,o:d,d(t){t&&k(e)}}}function lt(t,e,n){let{size:o="100%"}=e,{strokeWidth:r=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,r=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,r,s]}class at extends tt{constructor(t){super(),Z(this,t,lt,ct,g,{size:0,strokeWidth:1,class:2})}}function ut(t){let e,n,o;return{c(){e=w("svg"),n=w("polygon"),C(n,"points","12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"width",t[0]),C(e,"height",t[0]),C(e,"fill","none"),C(e,"viewBox","0 0 24 24"),C(e,"stroke","currentColor"),C(e,"stroke-width",t[1]),C(e,"stroke-linecap","round"),C(e,"stroke-linejoin","round"),C(e,"class",o="feather feather-star "+t[2])},m(t,o){v(t,e,o),y(e,n)},p(t,[n]){1&n&&C(e,"width",t[0]),1&n&&C(e,"height",t[0]),2&n&&C(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-star "+t[2])&&C(e,"class",o)},i:d,o:d,d(t){t&&k(e)}}}function ft(t,e,n){let{size:o="100%"}=e,{strokeWidth:r=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,r=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,r,s]}class dt extends tt{constructor(t){super(),Z(this,t,ft,ut,g,{size:0,strokeWidth:1,class:2})}}function mt(t){let e,n,o,r;return{c(){e=w("svg"),n=w("path"),o=w("circle"),C(n,"d","M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"),C(o,"cx","12"),C(o,"cy","7"),C(o,"r","4"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"width",t[0]),C(e,"height",t[0]),C(e,"fill","none"),C(e,"viewBox","0 0 24 24"),C(e,"stroke","currentColor"),C(e,"stroke-width",t[1]),C(e,"stroke-linecap","round"),C(e,"stroke-linejoin","round"),C(e,"class",r="feather feather-user "+t[2])},m(t,r){v(t,e,r),y(e,n),y(e,o)},p(t,[n]){1&n&&C(e,"width",t[0]),1&n&&C(e,"height",t[0]),2&n&&C(e,"stroke-width",t[1]),4&n&&r!==(r="feather feather-user "+t[2])&&C(e,"class",r)},i:d,o:d,d(t){t&&k(e)}}}function pt(t,e,n){let{size:o="100%"}=e,{strokeWidth:r=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,r=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,r,s]}class $t extends tt{constructor(t){super(),Z(this,t,pt,mt,g,{size:0,strokeWidth:1,class:2})}}function ht(t){let e,n;return e=new $t({props:{size:"20"}}),{c(){Q(e.$$.fragment)},m(t,o){U(e,t,o),n=!0},p:d,i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){L(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function gt(t){let e,n;return e=new it({props:{size:"20"}}),{c(){Q(e.$$.fragment)},m(t,o){U(e,t,o),n=!0},p:d,i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){L(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function yt(t){let e,n;return e=new dt({props:{size:"20"}}),{c(){Q(e.$$.fragment)},m(t,o){U(e,t,o),n=!0},p:d,i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){L(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function vt(t){let e,n;return e=new ot({props:{size:"20"}}),{c(){Q(e.$$.fragment)},m(t,o){U(e,t,o),n=!0},p:d,i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){L(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function kt(t){let e,n;return e=new at({props:{size:"20"}}),{c(){Q(e.$$.fragment)},m(t,o){U(e,t,o),n=!0},p:d,i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){L(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function bt(t){let e,n,o,r,s,i,c,l,a,u,f,d,m,p,$,h,g,w,x,E;return o=new t[0]({props:{outline:!0,small:!0,$$slots:{default:[ht]},$$scope:{ctx:t}}}),l=new t[0]({props:{outline:!0,small:!0,$$slots:{default:[gt]},$$scope:{ctx:t}}}),m=new t[0]({props:{outline:!0,small:!0,$$slots:{default:[yt]},$$scope:{ctx:t}}}),h=new t[0]({props:{outline:!0,small:!0,$$slots:{default:[vt]},$$scope:{ctx:t}}}),x=new t[0]({props:{outline:!0,small:!0,$$slots:{default:[kt]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),Q(o.$$.fragment),r=_(),s=b("div"),s.innerHTML="<b>Name Vorname</b>",i=_(),c=b("div"),Q(l.$$.fragment),a=_(),u=b("div"),u.innerHTML="<b>00.00.0000</b>",f=_(),d=b("div"),Q(m.$$.fragment),p=_(),$=b("div"),Q(h.$$.fragment),g=_(),w=b("div"),Q(x.$$.fragment),C(n,"class","option svelte-94f2cy"),C(s,"class","option-text svelte-94f2cy"),C(c,"class","option svelte-94f2cy"),C(u,"class","option-text svelte-94f2cy"),C(d,"class","option svelte-94f2cy"),C($,"class","option svelte-94f2cy"),C(w,"class","option svelte-94f2cy"),C(e,"id","header"),C(e,"class","svelte-94f2cy")},m(t,k){v(t,e,k),y(e,n),U(o,n,null),y(e,r),y(e,s),y(e,i),y(e,c),U(l,c,null),y(e,a),y(e,u),y(e,f),y(e,d),U(m,d,null),y(e,p),y(e,$),U(h,$,null),y(e,g),y(e,w),U(x,w,null),E=!0},p(t,[e]){const n={};64&e&&(n.$$scope={dirty:e,ctx:t}),o.$set(n);const r={};64&e&&(r.$$scope={dirty:e,ctx:t}),l.$set(r);const s={};64&e&&(s.$$scope={dirty:e,ctx:t}),m.$set(s);const i={};64&e&&(i.$$scope={dirty:e,ctx:t}),h.$set(i);const c={};64&e&&(c.$$scope={dirty:e,ctx:t}),x.$set(c)},i(t){E||(K(o.$$.fragment,t),K(l.$$.fragment,t),K(m.$$.fragment,t),K(h.$$.fragment,t),K(x.$$.fragment,t),E=!0)},o(t){L(o.$$.fragment,t),L(l.$$.fragment,t),L(m.$$.fragment,t),L(h.$$.fragment,t),L(x.$$.fragment,t),E=!1},d(t){t&&k(e),X(o),X(l),X(m),X(h),X(x)}}}function wt(t){const{Card:n,Button:o,Divider:r,Chip:s,RadioChipGroup:i}=e;return[o]}class xt extends tt{constructor(t){var e;super(),document.getElementById("svelte-94f2cy-style")||((e=b("style")).id="svelte-94f2cy-style",e.textContent="#header.svelte-94f2cy{white-space:nowrap;margin-bottom:2em}.option.svelte-94f2cy{display:inline-block}.option-text.svelte-94f2cy{margin-right:2em;display:inline-block}",y(document.head,e)),Z(this,t,wt,bt,g,{})}}function _t(t,e,n){const o=t.slice();return o[13]=e[n],o}function Ct(t){return{c:d,m:d,p:d,i:d,o:d,d:d}}function Et(t){let e,n,o,r={ctx:t,current:null,token:null,hasCatch:!1,pending:Pt,then:zt,catch:It,value:12,blocks:[,,,]};return V(n=t[1],r),{c(){e=x(""),r.block.c()},m(t,n){v(t,e,n),r.block.m(t,r.anchor=n),r.mount=()=>e.parentNode,r.anchor=e,o=!0},p(e,o){t=e,r.ctx=t,2&o&&n!==(n=t[1])&&V(n,r)||J(r,t,o)},i(t){o||(K(r.block),o=!0)},o(t){for(let t=0;t<3;t+=1){L(r.blocks[t])}o=!1},d(t){t&&k(e),r.block.d(t),r.token=null,r=null}}}function It(t){return{c:d,m:d,p:d,i:d,o:d,d:d}}function zt(t){let e,n,o,r,s,i,c,l,a,u,f,d,m,p,$,h,g,w,I,z,j,O,B,W,P,S,T,N,A,D,M,F,G,q,V,J,Y,Z,tt,et,nt,ot,rt,st=t[12].identity.description+"",it=t[12].hierarchy.domain+"",ct=t[12].hierarchy.circle+"";e=new t[3]({props:{class:"task_divider",text:"Alle Infos zum Task "}}),S=new t[3]({props:{class:"divider",text:"Aufgabe "}});let lt=t[12].target.class[0].item,at=[];for(let e=0;e<lt.length;e+=1)at[e]=Ot(_t(t,lt,e));const ut=t=>L(at[t],1,1,(()=>{at[t]=null}));return F=new t[2]({props:{filled:!0,style:"margin-right:0; margin-left: auto;",$$slots:{default:[Bt]},$$scope:{ctx:t}}}),F.$on("click",t[6]),q=new t[3]({props:{class:"divider",text:"Kommunikation "}}),tt=new t[5]({}),ot=new t[2]({props:{filled:!0,style:"margin-right:0; margin-left: auto;",$$slots:{default:[Wt]},$$scope:{ctx:t}}}),{c(){Q(e.$$.fragment),n=_(),o=b("div"),r=b("div"),s=b("p"),i=_(),c=b("table"),l=b("tr"),a=b("td"),a.textContent="Beschreibung:",u=_(),f=b("td"),d=x(st),m=_(),p=b("tr"),$=b("td"),$.textContent="Domain:",h=_(),g=b("td"),w=x(it),I=_(),z=b("tr"),j=b("td"),j.textContent="Circle",O=_(),B=b("td"),W=x(ct),P=_(),Q(S.$$.fragment),T=_(),N=b("div"),A=b("p"),A.textContent="Folgende Felder sind auszufüllen um die Aufgabe zu erledigen",D=_();for(let t=0;t<at.length;t+=1)at[t].c();M=_(),Q(F.$$.fragment),G=_(),Q(q.$$.fragment),V=_(),J=b("div"),Y=b("p"),Y.textContent="Hast du eine Frage?",Z=_(),Q(tt.$$.fragment),et=_(),nt=b("p"),Q(ot.$$.fragment),C(r,"class","subcat svelte-17bdg7e"),C(J,"class","subcat svelte-17bdg7e")},m(t,k){U(e,t,k),v(t,n,k),v(t,o,k),y(o,r),y(r,s),y(r,i),y(r,c),y(c,l),y(l,a),y(l,u),y(l,f),y(f,d),y(c,m),y(c,p),y(p,$),y(p,h),y(p,g),y(g,w),y(c,I),y(c,z),y(z,j),y(z,O),y(z,B),y(B,W),y(o,P),U(S,o,null),y(o,T),y(o,N),y(N,A),y(N,D);for(let t=0;t<at.length;t+=1)at[t].m(N,null);y(N,M),U(F,N,null),y(o,G),U(q,o,null),y(o,V),y(o,J),y(J,Y),y(J,Z),U(tt,J,null),y(J,et),y(J,nt),U(ot,nt,null),rt=!0},p(t,e){if((!rt||2&e)&&st!==(st=t[12].identity.description+"")&&E(d,st),(!rt||2&e)&&it!==(it=t[12].hierarchy.domain+"")&&E(w,it),(!rt||2&e)&&ct!==(ct=t[12].hierarchy.circle+"")&&E(W,ct),2&e){let n;for(lt=t[12].target.class[0].item,n=0;n<lt.length;n+=1){const o=_t(t,lt,n);at[n]?(at[n].p(o,e),K(at[n],1)):(at[n]=Ot(o),at[n].c(),K(at[n],1),at[n].m(N,M))}for(H(),n=lt.length;n<at.length;n+=1)ut(n);R()}const n={};65536&e&&(n.$$scope={dirty:e,ctx:t}),F.$set(n);const o={};65536&e&&(o.$$scope={dirty:e,ctx:t}),ot.$set(o)},i(t){if(!rt){K(e.$$.fragment,t),K(S.$$.fragment,t);for(let t=0;t<lt.length;t+=1)K(at[t]);K(F.$$.fragment,t),K(q.$$.fragment,t),K(tt.$$.fragment,t),K(ot.$$.fragment,t),rt=!0}},o(t){L(e.$$.fragment,t),L(S.$$.fragment,t),at=at.filter(Boolean);for(let t=0;t<at.length;t+=1)L(at[t]);L(F.$$.fragment,t),L(q.$$.fragment,t),L(tt.$$.fragment,t),L(ot.$$.fragment,t),rt=!1},d(t){X(e,t),t&&k(n),t&&k(o),X(S),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(at,t),X(F),X(q),X(tt),X(ot)}}}function jt(t){let e,n;return e=new t[5]({}),{c(){Q(e.$$.fragment)},m(t,o){U(e,t,o),n=!0},i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){L(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function Ot(t){let e,n;return e=new t[4]({props:{name:t[13].designation,$$slots:{default:[jt]},$$scope:{ctx:t}}}),{c(){Q(e.$$.fragment)},m(t,o){U(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.name=t[13].designation),65536&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){L(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function Bt(t){let e;return{c(){e=x("Speichern")},m(t,n){v(t,e,n)},d(t){t&&k(e)}}}function Wt(t){let e;return{c(){e=x("Senden")},m(t,n){v(t,e,n)},d(t){t&&k(e)}}}function Pt(t){return{c:d,m:d,p:d,i:d,o:d,d:d}}function St(t){return{c:d,m:d,p:d,i:d,o:d,d:d}}function Tt(t){let e,n,o,r={ctx:t,current:null,token:null,hasCatch:!1,pending:St,then:Et,catch:Ct,value:11,blocks:[,,,]};return V(n=t[0],r),{c(){e=b("div"),r.block.c(),C(e,"class","content svelte-17bdg7e")},m(t,n){v(t,e,n),r.block.m(e,r.anchor=null),r.mount=()=>e,r.anchor=null,o=!0},p(e,[o]){t=e,r.ctx=t,1&o&&n!==(n=t[0])&&V(n,r)||J(r,t,o)},i(t){o||(K(r.block),o=!0)},o(t){for(let t=0;t<3;t+=1){L(r.blocks[t])}o=!1},d(t){t&&k(e),r.block.d(),r.token=null,r=null}}}function Nt(t,n,o){const{Card:r,Table:s,Button:i,Modal:c,Tabs:l,Divider:a,FormField:u,TextField:f}=e;let{task:d}=n,{eventItem:m}=n;console.log("task",d),console.log("event",m);return t.$$set=t=>{"task"in t&&o(0,d=t.task),"eventItem"in t&&o(1,m=t.eventItem)},[d,m,i,a,u,f,async()=>{console.log("Saved")}]}class At extends tt{constructor(t){var e;super(),document.getElementById("svelte-17bdg7e-style")||((e=b("style")).id="svelte-17bdg7e-style",e.textContent=".subcat.svelte-17bdg7e{margin-bottom:4em}.task_divider{background:#326173;color:#326173}.content.svelte-17bdg7e{height:100%;overflow-y:scroll}",y(document.head,e)),Z(this,t,Nt,Tt,g,{task:0,eventItem:1})}}function Dt(t){let e,n,o,r,s,i,c,l;n=new t[2]({props:{name:"menu",items:t[12],value:t[13].name,class:"task_tabs"}}),n.$on("change",(function(){h(t[4](t[16],t[10],t[9]))&&t[4](t[16],t[10],t[9]).apply(this,arguments)})),r=new xt({});var a=t[13].component;function u(t){return{props:{taskID:t[10],task:t[15],eventItem:t[14]}}}return a&&(c=new a(u(t))),{c(){e=b("div"),Q(n.$$.fragment),o=_(),Q(r.$$.fragment),s=_(),i=b("div"),c&&Q(c.$$.fragment),C(e,"class","header"),C(i,"class","task_content")},m(t,a){v(t,e,a),U(n,e,null),y(e,o),U(r,e,null),v(t,s,a),v(t,i,a),c&&U(c,i,null),l=!0},p(e,o){t=e;const r={};4096&o&&(r.items=t[12]),8192&o&&(r.value=t[13].name),n.$set(r);const s={};if(1024&o&&(s.taskID=t[10]),32768&o&&(s.task=t[15]),16384&o&&(s.eventItem=t[14]),a!==(a=t[13].component)){if(c){H();const t=c;L(t.$$.fragment,1,0,(()=>{X(t,1)})),R()}a?(c=new a(u(t)),Q(c.$$.fragment),K(c.$$.fragment,1),U(c,i,null)):c=null}else a&&c.$set(s)},i(t){l||(K(n.$$.fragment,t),K(r.$$.fragment,t),c&&K(c.$$.fragment,t),l=!0)},o(t){L(n.$$.fragment,t),L(r.$$.fragment,t),c&&L(c.$$.fragment,t),l=!1},d(t){t&&k(e),X(n),X(r),t&&k(s),t&&k(i),c&&X(c)}}}function Mt(t){let e,n,o;return n=new t[1]({props:{constrainWidth:!0,title:"Task: "+t[10],titleClass:"task_title",closeCallback:function(){return t[5](t[17])},class:"modal_class",$$slots:{default:[Dt]},$$scope:{ctx:t}}}),{c(){e=b("div"),Q(n.$$.fragment)},m(t,r){v(t,e,r),U(n,e,null),o=!0},p(e,o){t=e;const r={};1024&o&&(r.title="Task: "+t[10]),390656&o&&(r.$$scope={dirty:o,ctx:t}),n.$set(r)},i(t){o||(K(n.$$.fragment,t),o=!0)},o(t){L(n.$$.fragment,t),o=!1},d(t){t&&k(e),X(n)}}}function Ft(t){let e,n;return e=new t[0]({props:{open:"true",noClickaway:"true",$$slots:{default:[Mt,({closeCallback:t})=>({17:t}),({closeCallback:t})=>t?131072:0]},$$scope:{ctx:t}}}),{c(){Q(e.$$.fragment)},m(t,o){U(e,t,o),n=!0},p(t,n){const o={};390656&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){L(e.$$.fragment,t),n=!1},d(t){X(e,t)}}}function Gt(t){let e,o,r;return o=new n({props:{update:t[3],$$slots:{default:[Ft,({prop:{eventId:t,taskId:e,tabId:n,items:o,item:r,eventItem:s,task:i,findMenu:c}})=>({9:t,10:e,11:n,12:o,13:r,14:s,15:i,16:c}),({prop:t})=>(t?512:0)|(t?1024:0)|(t?2048:0)|(t?4096:0)|(t?8192:0)|(t?16384:0)|(t?32768:0)|(t?65536:0)]},$$scope:{ctx:t}}}),{c(){e=_(),Q(o.$$.fragment),document.title="enablerr - Task"},m(t,n){v(t,e,n),U(o,t,n),r=!0},p(t,[e]){const n={};390656&e&&(n.$$scope={dirty:e,ctx:t}),o.$set(n)},i(t){r||(K(o.$$.fragment,t),r=!0)},o(t){L(o.$$.fragment,t),r=!1},d(t){t&&k(e),X(o,t)}}}function qt(t){const{Modal:n,Dialog:c,Tabs:l,Card:a}=e,u=(t,e,n)=>window.singleSpaNavigate(`/task/${t}/${e}/${n.id}`);return[n,c,l,(t,e,n)=>{const c={items:[{id:"task",name:"Aufgabe",component:At},{id:"collab",name:"Kommunikation",component:i},{id:"workflow",name:"Abhängigkeiten",component:r},{id:"report",name:"Reporting",component:s}],findBy(t,e){return this.items.find((n=>n[t]===e))},findByName(t){return this.findBy("name",t)},findById(t){return this.findBy("id",t)},deflt(){return this.items[0]},map(){return this.items.map((t=>t.name))}},l=c.findById(n);if(!l)return u(t,e,c.deflt());return{eventId:t,taskId:e,tabId:n,item:l,eventItem:o.getEvent(t).then((function(t){return console.log("Event: ",t),t})),task:o.getTaskById(e).then((function(t){return console.log("Task ",t),t})),items:c.map(),findMenu:t=>c.findByName(t)}},(t,e,n)=>({detail:{value:o}})=>u(n,e,t(o)),t=>(window.singleSpaNavigate("/"),t())]}class Ht extends tt{constructor(t){var e;super(),document.getElementById("svelte-1lkrwk9-style")||((e=b("style")).id="svelte-1lkrwk9-style",e.textContent=".task_tabs{padding-bottom:1em;max-width:20em}.header{position:absolute}.task_content{min-height:40vh;min-width:80vh;margin-top:8em;overflow:hidden;height:80%}.modal_class{min-width:100vh;height:60vh;overflow:hidden}",y(document.head,e)),Z(this,t,qt,Gt,g,{})}}const Rt=f({component:Ht,domElementGetter:()=>document.getElementById("detail-app")}),{bootstrap:Kt,mount:Lt,unmount:Vt}=Rt;t({bootstrap:Kt,mount:Lt,unmount:Vt});t("Task",Ht)}}}));
|