@enablerr-ui/settings 0.2.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/index.min.js +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(t){"use strict";var e,n;return{setters:[function(t){e=t.getAttractions},function(t){n=t.Request}],execute:function(){t("version","0.2.1");function o(){}function r(t){return t()}function c(){return Object.create(null)}function u(t){t.forEach(r)}function i(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function f(t){return document.createTextNode(t)}let p;function m(t){p=t}const d=[],b=[],y=[],g=[],$=Promise.resolve();let h=!1;function v(t){y.push(t)}let O=!1;const _=new Set;function j(){if(!O){O=!0;do{for(let t=0;t<d.length;t+=1){const e=d[t];m(e),E(e.$$)}for(m(null),d.length=0;b.length;)b.pop()();for(let t=0;t<y.length;t+=1){const e=y[t];_.has(e)||(_.add(e),e())}y.length=0}while(d.length);for(;g.length;)g.pop()();h=!1,O=!1,_.clear()}}function E(t){if(null!==t.fragment){t.update(),u(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(v)}}const w=new Set;function x(t,e){t&&t.i&&(w.delete(t),t.i(e))}function P(t,e,n,o){const{fragment:c,on_mount:s,on_destroy:a,after_update:l}=t.$$;c&&c.m(e,n),o||v((()=>{const e=s.map(r).filter(i);a?a.push(...e):u(e),t.$$.on_mount=[]})),l.forEach(v)}function k(t,e){const n=t.$$;null!==n.fragment&&(u(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function S(t,e){-1===t.$$.dirty[0]&&(d.push(t),h||(h=!0,$.then(j)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function G(t,e,n,r,i,s,a=[-1]){const f=p;m(t);const d=t.$$={fragment:null,ctx:null,props:s,update:o,not_equal:i,bound:c(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:e.context||[]),callbacks:c(),dirty:a,skip_bound:!1};let b=!1;if(d.ctx=n?n(t,e.props||{},((e,n,...o)=>{const r=o.length?o[0]:n;return d.ctx&&i(d.ctx[e],d.ctx[e]=r)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](r),b&&S(t,e)),n})):[],d.update(),b=!0,u(d.before_update),d.fragment=!!r&&r(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(l)}else d.fragment&&d.fragment.c();e.intro&&x(t.$$.fragment),P(t,e.target,e.anchor,e.customElement),j()}m(f)}function q(t){let e;return{c(){e=f("Get settings")},m(t,n){a(t,e,n)},d(t){t&&l(e)}}}function B(t){let e,n,o,r;return o=new t[0]({props:{$$slots:{default:[q]},$$scope:{ctx:t}}}),o.$on("click",t[1]),{c(){var t,r;t="h1",e=document.createElement(t),e.textContent="Settings",n=f(" "),(r=o.$$.fragment)&&r.c()},m(t,c){a(t,e,c),a(t,n,c),P(o,t,c),r=!0},p(t,[e]){const n={};4&e&&(n.$$scope={dirty:e,ctx:t}),o.$set(n)},i(t){r||(x(o.$$.fragment,t),r=!0)},o(t){!function(t,e,n,o){if(t&&t.o){if(w.has(t))return;w.add(t),t.o(e)}}(o.$$.fragment,t),r=!1},d(t){t&&l(e),t&&l(n),k(o,t)}}}function D(t){const{Button:o}=e;return[o,function(){let t=n.getUserSettings();console.log(t)}]}function N(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var C,M,A=(C=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({},u),t);if(!e.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:i.bind(null,e,n),mount:s.bind(null,e,n),unmount:a.bind(null,e,n),update:l.bind(null,e,n)}};var u={component:null,domElementGetter:null,props:{}};function i(t){return Promise.resolve()}function s(t,e,n){var r=Object.keys(u),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),u=r();e.instance=new t.component(o(o({},c),{},{target:u,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 l(t,e,n){return Promise.resolve().then((function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)}))}},C(M={exports:{}},M.exports),M.exports);const I=N(A)({component:class extends class{$destroy(){k(this,1),this.$destroy=o}$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(),G(this,t,D,B,s,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:R,mount:T,unmount:U}=I;t({bootstrap:R,mount:T,unmount:U})}}}));
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@enablerr-ui/settings",
|
|
3
|
+
"description": "enablerr - the Next Enterprise Solution",
|
|
4
|
+
"version": "0.2.1",
|
|
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
|
+
"settings"
|
|
28
|
+
],
|
|
29
|
+
"author": "pier4all-jcs",
|
|
30
|
+
"license": "ISC"
|
|
31
|
+
}
|