@enablerr-ui/reporting 0.2.0
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 -0
- package/package.json +31 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["@enablerr-ui/detail","@enablerr-ui/form","@enablerr-ui/layout"],(function(t){"use strict";var e,n,o,r;return{setters:[function(t){e=t.Form},function(t){n=t.Page,o=t.Request},function(t){r=t.getAttractions}],execute:function(){t("version","0.2.0");function s(){}function i(t){return t()}function c(){return Object.create(null)}function l(t){t.forEach(i)}function a(t){return"function"==typeof t}function u(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function d(t,e){t.appendChild(e)}function f(t,e,n){t.insertBefore(e,n||null)}function p(t){t.parentNode.removeChild(t)}function m(t){return document.createElement(t)}function $(){return t=" ",document.createTextNode(t);var t}function y(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function b(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:y(t,e,n)}let g;function w(t){g=t}const h=[],v=[],x=[],k=[],O=Promise.resolve();let E=!1;function _(t){x.push(t)}let j=!1;const P=new Set;function S(){if(!j){j=!0;do{for(let t=0;t<h.length;t+=1){const e=h[t];w(e),C(e.$$)}for(w(null),h.length=0;v.length;)v.pop()();for(let t=0;t<x.length;t+=1){const e=x[t];P.has(e)||(P.add(e),e())}x.length=0}while(h.length);for(;k.length;)k.pop()();E=!1,j=!1,P.clear()}}function C(t){if(null!==t.fragment){t.update(),l(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(_)}}const D=new Set;function I(t,e){t&&t.i&&(D.delete(t),t.i(e))}function G(t,e,n,o){if(t&&t.o){if(D.has(t))return;D.add(t),t.o(e)}}const N="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function T(t){t&&t.c()}function A(t,e,n,o){const{fragment:r,on_mount:s,on_destroy:c,after_update:u}=t.$$;r&&r.m(e,n),o||_((()=>{const e=s.map(i).filter(a);c?c.push(...e):l(e),t.$$.on_mount=[]})),u.forEach(_)}function B(t,e){const n=t.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function q(t,e){-1===t.$$.dirty[0]&&(h.push(t),E||(E=!0,O.then(S)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function M(t,e,n,o,r,i,a=[-1]){const u=g;w(t);const d=t.$$={fragment:null,ctx:null,props:i,update:s,not_equal:r,bound:c(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:e.context||[]),callbacks:c(),dirty:a,skip_bound:!1};let f=!1;if(d.ctx=n?n(t,e.props||{},((e,n,...o)=>{const s=o.length?o[0]:n;return d.ctx&&r(d.ctx[e],d.ctx[e]=s)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](s),f&&q(t,e)),n})):[],d.update(),f=!0,l(d.before_update),d.fragment=!!o&&o(d.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);d.fragment&&d.fragment.l(t),t.forEach(p)}else d.fragment&&d.fragment.c();e.intro&&I(t.$$.fragment),A(t,e.target,e.anchor,e.customElement),S()}w(u)}class Y{$destroy(){B(this,1),this.$destroy=s}$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)}}const{document:R}=N;function F(t){let n,o,r,s;return n=new t[2]({props:{class:"reportTask"}}),r=new e({props:{schema:t[19],recID:t[3],prevEventID:t[4],taskId:t[5],prev:t[6],readonly:t[7],isStandalone:t[8],root:t[9]}}),r.$on("back",t[12]),{c(){T(n.$$.fragment),o=$(),T(r.$$.fragment)},m(t,e){A(n,t,e),f(t,o,e),A(r,t,e),s=!0},p(t,e){const n={};524288&e&&(n.schema=t[19]),r.$set(n)},i(t){s||(I(n.$$.fragment,t),I(r.$$.fragment,t),s=!0)},o(t){G(n.$$.fragment,t),G(r.$$.fragment,t),s=!1},d(t){B(n,t),t&&p(o),B(r,t)}}}function W(t){let e,n,o;return n=new t[1]({props:{constrainWidth:!0,title:t[20],titleClass:"task_title",closeCallback:t[13],class:"task--area",$$slots:{default:[F]},$$scope:{ctx:t}}}),{c(){e=m("div"),T(n.$$.fragment),y(e,"class","task svelte-wobxwu")},m(t,r){f(t,e,r),A(n,e,null),o=!0},p(t,e){const o={};1048576&e&&(o.title=t[20]),4718592&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(I(n.$$.fragment,t),o=!0)},o(t){G(n.$$.fragment,t),o=!1},d(t){t&&p(e),B(n)}}}function z(t){let e,n,o;return n=new t[0]({props:{open:"true",noClickaway:"true",class:"task--modal",$$slots:{default:[W,({closeCallback:t})=>({21:t}),({closeCallback:t})=>t?2097152:0]},$$scope:{ctx:t}}}),n.$on("change",t[11]),{c(){e=m("div"),T(n.$$.fragment),y(e,"class","task--page svelte-wobxwu")},m(t,r){f(t,e,r),A(n,e,null),o=!0},p(t,e){const o={};5767168&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(I(n.$$.fragment,t),o=!0)},o(t){G(n.$$.fragment,t),o=!1},d(t){t&&p(e),B(n)}}}function H(t){let e,o;return e=new n({props:{update:t[10],$$slots:{default:[z,({prop:{schema:t,title:e}})=>({19:t,20:e}),({prop:t})=>(t?524288:0)|(t?1048576:0)]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment)},m(t,n){A(e,t,n),o=!0},p(t,[n]){const o={};5767168&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(I(e.$$.fragment,t),o=!0)},o(t){G(e.$$.fragment,t),o=!1},d(t){B(e,t)}}}function J(t){const{Modal:e,Dialog:n,Divider:s}=r;let i,c,l;const a=()=>{scrollY=window.scrollY,i=document.body.style.position,c=document.body.style.overflow,l=document.body.style.width,document.body.style.position="fixed",document.body.style.top=`-${scrollY}px`,document.body.style.overflow="hidden",document.body.style.width="100%"};a();return[e,n,s,undefined,undefined,undefined,undefined,!1,false,!1,async t=>{const e=await o.getSchema(t);return{schema:e,title:e.identity.description}},function(t){t.detail.value?a():(document.body.style.position=i||"",document.body.style.top="",document.body.style.overflow=c||"",document.body.style.width=l||"",window.scrollTo(0,scrollY))},()=>window.singleSpaNavigate("/reporting"),()=>window.singleSpaNavigate("/reporting")]}class K extends Y{constructor(t){var e;super(),R.getElementById("svelte-wobxwu-style")||((e=m("style")).id="svelte-wobxwu-style",e.textContent='.task--page.svelte-wobxwu .task--modal{align-items:flex-start !important;overflow:auto !important}.task.svelte-wobxwu{margin-top:4em}@media(max-height: 900px){.task.svelte-wobxwu{margin-top:0}}.task.svelte-wobxwu .task--area{overflow-x:hidden;overflow-y:auto;min-width:50vw}.task.svelte-wobxwu .dialog nav[role="group"]{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:nowrap;gap:1em}hr.reportTask{margin-bottom:1.5em}',d(R.head,e)),M(this,t,J,H,u,{})}}function L(t){let e,n,o,r,i;return r=new K({}),{c(){e=$(),n=m("section"),o=m("l-container"),T(r.$$.fragment),document.title="enablerr - Reporting",b(o,"class","shadow"),b(o,"maxwidth","ld"),y(n,"class","svelte-i05i0l")},m(t,s){f(t,e,s),f(t,n,s),d(n,o),A(r,o,null),i=!0},p:s,i(t){i||(I(r.$$.fragment,t),i=!0)},o(t){G(r.$$.fragment,t),i=!1},d(t){t&&p(e),t&&p(n),B(r)}}}function Q(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var U,V,X=(U=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)}))}},U(V={exports:{}},V.exports),V.exports);const Z=Q(X)({component:class extends Y{constructor(t){var e;super(),document.getElementById("svelte-i05i0l-style")||((e=m("style")).id="svelte-i05i0l-style",e.textContent="section.svelte-i05i0l{margin-left:1.5em}",d(document.head,e)),M(this,t,null,L,u,{})}},domElementGetter:()=>document.getElementById("detail-app")}),{bootstrap:tt,mount:et,unmount:nt}=Z;t({bootstrap:tt,mount:et,unmount:nt})}}}));
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@enablerr-ui/reporting",
|
|
3
|
+
"description": "enablerr - the Next Enterprise Solution",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"os": [
|
|
6
|
+
"darwin",
|
|
7
|
+
"linux"
|
|
8
|
+
],
|
|
9
|
+
"svelte": "src/index.js",
|
|
10
|
+
"files": ["dist/index.min.js"],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"browser": "dist/index.min.js",
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=14.5.0"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "rm -f ./dist/index.* && rollup -c ../../ci/rollup.prod.config.js",
|
|
20
|
+
"start": "rollup -w -c ../../ci/rollup.config.js",
|
|
21
|
+
"start2": "rollup -w -c ../../ci/rollup.config.js",
|
|
22
|
+
"pub": "npm run build && npm publish --access public"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"enablerr",
|
|
26
|
+
"enterprise",
|
|
27
|
+
"reporting"
|
|
28
|
+
],
|
|
29
|
+
"author": "pier4all-jcs",
|
|
30
|
+
"license": "ISC"
|
|
31
|
+
}
|