You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
148 KiB
1 line
148 KiB
2 days ago
|
(()=>{var __webpack_modules__={"./node_modules/@riotjs/observable/dist/observable.js":module=>{eval(";(function(window, undefined) {const ALL_CALLBACKS = '*'\nconst define = Object.defineProperties\nconst entries = Object.entries\n\nconst on = (callbacks, el) => (event, fn) => {\n if (callbacks.has(event)) {\n callbacks.get(event).add(fn)\n } else {\n callbacks.set(event, new Set().add(fn))\n }\n\n return el\n}\n\nconst deleteCallback = (callbacks, el, event, fn) => {\n if (fn) {\n const fns = callbacks.get(event)\n\n if (fns) {\n fns.delete(fn)\n if (fns.size === 0) callbacks.delete(event)\n }\n } else callbacks.delete(event)\n}\n\nconst off = (callbacks, el) => (event, fn) => {\n if (event === ALL_CALLBACKS && !fn) {\n callbacks.clear()\n } else {\n deleteCallback(callbacks, el, event, fn)\n }\n\n return el\n}\n\nconst one = (callbacks, el) => (event, fn) => {\n function on(...args) {\n el.off(event, on)\n fn.apply(el, args)\n }\n return el.on(event, on)\n}\n\nconst trigger = (callbacks, el) => (event, ...args) => {\n const fns = callbacks.get(event)\n\n if (fns) fns.forEach(fn => fn.apply(el, args))\n\n if (callbacks.get(ALL_CALLBACKS) && event !== ALL_CALLBACKS) {\n el.trigger(ALL_CALLBACKS, event, ...args)\n }\n\n return el\n}\n\nconst observable = function(el) { // eslint-disable-line\n const callbacks = new Map()\n const methods = {on, off, one, trigger}\n\n el = el || {}\n\n define(el,\n entries(methods).reduce((acc, [key, method]) => {\n acc[key] = {\n value: method(callbacks, el),\n enumerable: false,\n writable: false,\n configurable: false\n }\n\n return acc\n }, {})\n )\n\n return el\n}\n /* istanbul ignore next */\n // support CommonJS, AMD & browser\n if (true)\n module.exports = observable\n else {}\n\n})(typeof window != 'undefined' ? window : undefined);\n\n//# sourceURL=webpack://@tiny-components/sidebar-form/./node_modules/@riotjs/observable/dist/observable.js?")},"./node_modules/@tiny-components/loading/src/loading.riot":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n css: null,\n exports: null,\n\n template: (\n template,\n expressionTypes,\n bindingTypes,\n getComponent\n ) => template(\n '<div expr9=\"expr9\" class=\"loading-wrapper\"></div>',\n [\n {\n type: bindingTypes.IF,\n evaluate: _scope => _scope.props.active,\n redundantAttribute: 'expr9',\n selector: '[expr9]',\n\n template: template(\n '<div class=\"loading\"><span></span><span></span><span></span></div>',\n []\n )\n }\n ]\n ),\n\n name: 'tiny-loading'\n});\n\n//# sourceURL=webpack://@tiny-components/sidebar-form/./node_modules/@tiny-components/loading/src/loading.riot?")},"./src/example/exampleButton.riot":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _sidebarFormStore_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../sidebarFormStore.js */ \"./src/sidebarFormStore.js\");\n// store for sidebar\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n css: null,\n\n exports: {\n handleClick() {\n _sidebarFormStore_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].open(this.props.name)\n }\n },\n\n template: (\n template,\n expressionTypes,\n bindingTypes,\n getComponent\n ) => template(\n '<button expr5=\"expr5\" class=\"button\">\\n Open\\n </button>',\n [\n {\n
|