@tomaso909/jsguitools 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/package.json +3 -4
  2. package/dist/index.js +0 -275
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@tomaso909/jsguitools",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Resuable front end components",
5
- "main": "dist/index.js",
6
- "module": "dist/index.js",
5
+ "main": "dist/index.min.js",
6
+ "module": "dist/index.min.js",
7
7
  "files": [
8
8
  "dist/index.min.js",
9
- "dist/index.js",
10
9
  "README.md"
11
10
  ],
12
11
  "scripts": {
package/dist/index.js DELETED
@@ -1,275 +0,0 @@
1
- /*
2
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3
- * This devtool is neither made for production nor for readable output files.
4
- * It uses "eval()" calls to create a separate source file in the browser devtools.
5
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
- * or disable the default devtool with "devtool: false".
7
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
- */
9
- (function webpackUniversalModuleDefinition(root, factory) {
10
- if(typeof exports === 'object' && typeof module === 'object')
11
- module.exports = factory();
12
- else if(typeof define === 'function' && define.amd)
13
- define([], factory);
14
- else if(typeof exports === 'object')
15
- exports["jsguitools"] = factory();
16
- else
17
- root["jsguitools"] = factory();
18
- })(this, () => {
19
- return /******/ (() => { // webpackBootstrap
20
- /******/ "use strict";
21
- /******/ var __webpack_modules__ = ({
22
-
23
- /***/ "./node_modules/css-loader/dist/cjs.js!./src/css/coolbuttons.css":
24
- /*!***********************************************************************!*\
25
- !*** ./node_modules/css-loader/dist/cjs.js!./src/css/coolbuttons.css ***!
26
- \***********************************************************************/
27
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
28
-
29
- 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 _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"./node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\n.coolButton {\n\tposition: absolute;\n margin: 0;\n border: 0;\n padding: 0;\n font-size: 13px;\n position: absolute;\n width: 5%;\n height: 30px;\n text-align: center;\n box-sizing: border-box;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n -webkit-user-select: none;\n cursor: default;\n opacity: 0.25;\n}\n\n.coolButton:hover {\n cursor: pointer;\n opacity: 0.75;\n\n}\n\n.coolButton3 {\n overflow: hidden;\n border: #000000 solid 1px; \n}\n\n.coolButton3 div {\n position: absolute;\n text-align: center;\n width: 100%;\n height: 30px;\n box-sizing: border-box;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n padding: 5px;\n}\n\n.coolButton3 div:nth-child(1) {\n color: #000000;\n background-color: #ffffff;\n}\n\n.coolButton3 div:nth-child(2) {\n background-color: #000000;\n width: 130px;\n transition: all 0.2s ease;\n -webkit-transition: all 0.2s ease;\n -moz-transition: all 0.2s ease;\n transform: translate(-150px, 0px) skewX(-30deg);\n -webkit-transform: translate(-150px, 0px) skewX(-30deg);\n -moz-transform: translate(-150px, 0px) skewX(-30deg);\n}\n\n.coolButton3 div:nth-child(3) {\n color: #ffffff;\n left: -150px;\n transition: left 0.2s ease;\n -webkit-transition: left 0.2s ease;\n -moz-transition: left 0.2s ease;\n}\n\n.coolButton3:hover div:nth-child(2) {\n transition: all 0.3s ease;\n -webkit-transition: all 0.3s ease;\n -moz-transition: all 0.3s ease;\n transform: translate(-15px, 0px) skewX(-30deg);\n -webkit-transform: translate(-15px, 0px) skewX(-30deg);\n -moz-transform: translate(-15px, 0px) skewX(-30deg);\n}\n\n.coolButton3:hover div:nth-child(3) {\n left: 0px;\n transition: left 0.2s ease;\n -webkit-transition: left 0.2s ease;\n -moz-transition: left 0.2s ease;\n}`, \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://jsguitools/./src/css/coolbuttons.css?./node_modules/css-loader/dist/cjs.js");
30
-
31
- /***/ }),
32
-
33
- /***/ "./node_modules/css-loader/dist/cjs.js!./src/css/sidemenu.css":
34
- /*!********************************************************************!*\
35
- !*** ./node_modules/css-loader/dist/cjs.js!./src/css/sidemenu.css ***!
36
- \********************************************************************/
37
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
38
-
39
- 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 _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"./node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n___CSS_LOADER_EXPORT___.push([module.id, \"@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100);\"]);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ` /* The side navigation menu */\n.sideMenu {\n height: 100%; /* 100% Full-height */\n width: 0; /* 0 width - change this with JavaScript */\n position: fixed; /* Stay in place */\n z-index: 1; /* Stay on top */\n top: 0;\n left: 0;\n background-color: #111; /* Black*/\n overflow-x: hidden; /* Disable horizontal scroll */\n padding-top: 60px; /* Place content 60px from the top */\n transition: 0.5s; /* 0.5 second transition effect to slide in the sideMenu */\n}\n\n/* The navigation menu links */\n.sideMenu a {\n padding: 8px 8px 8px 32px;\n text-decoration: none;\n font-size: 15px;\n color: #818181;\n display: block;\n transition: 0.3s;\n user-select: none;\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -o-user-select: none;\n}\n\n/* When you mouse over the navigation links, change their color */\n.sideMenu a:hover, .offcanvas a:focus{\n color: #f1f1f1;\n}\n\n/* Avoid dotted border on click */\n.sideMenu a:hover,a:active,a:link,a:focus{\n outline: 0px none;\n}\n\n/* Position and style of the close button (top right corner) */\n.sideMenu .sideMenuCloseButton {\n position: absolute;\n top: 0;\n right: 25px;\n font-size: 20px;\n margin-left: 50px;\n}\n\n/* Style page content - Push the page content to the right when side menu opens */\n.sideMenuTransition {\n transition: margin-left .5s;\n}\n\n/* On smaller screens, where height is less than 450px, change the style of the sideMenu (less padding and a smaller font size) */\n@media screen and (max-height: 450px) {\n .sideMenu {padding-top: 15px;}\n .sideMenu a {font-size: 18px;}\n}\n\n/* end table styles */\n`, \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://jsguitools/./src/css/sidemenu.css?./node_modules/css-loader/dist/cjs.js");
40
-
41
- /***/ }),
42
-
43
- /***/ "./node_modules/css-loader/dist/runtime/api.js":
44
- /*!*****************************************************!*\
45
- !*** ./node_modules/css-loader/dist/runtime/api.js ***!
46
- \*****************************************************/
47
- /***/ ((module) => {
48
-
49
- eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};\n\n//# sourceURL=webpack://jsguitools/./node_modules/css-loader/dist/runtime/api.js?");
50
-
51
- /***/ }),
52
-
53
- /***/ "./node_modules/css-loader/dist/runtime/noSourceMaps.js":
54
- /*!**************************************************************!*\
55
- !*** ./node_modules/css-loader/dist/runtime/noSourceMaps.js ***!
56
- \**************************************************************/
57
- /***/ ((module) => {
58
-
59
- eval("\n\nmodule.exports = function (i) {\n return i[1];\n};\n\n//# sourceURL=webpack://jsguitools/./node_modules/css-loader/dist/runtime/noSourceMaps.js?");
60
-
61
- /***/ }),
62
-
63
- /***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
64
- /*!****************************************************************************!*\
65
- !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
66
- \****************************************************************************/
67
- /***/ ((module) => {
68
-
69
- eval("\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack://jsguitools/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?");
70
-
71
- /***/ }),
72
-
73
- /***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js":
74
- /*!********************************************************************!*\
75
- !*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***!
76
- \********************************************************************/
77
- /***/ ((module) => {
78
-
79
- eval("\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack://jsguitools/./node_modules/style-loader/dist/runtime/insertBySelector.js?");
80
-
81
- /***/ }),
82
-
83
- /***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js":
84
- /*!**********************************************************************!*\
85
- !*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***!
86
- \**********************************************************************/
87
- /***/ ((module) => {
88
-
89
- eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack://jsguitools/./node_modules/style-loader/dist/runtime/insertStyleElement.js?");
90
-
91
- /***/ }),
92
-
93
- /***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":
94
- /*!**********************************************************************************!*\
95
- !*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***!
96
- \**********************************************************************************/
97
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
98
-
99
- eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack://jsguitools/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?");
100
-
101
- /***/ }),
102
-
103
- /***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js":
104
- /*!***************************************************************!*\
105
- !*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***!
106
- \***************************************************************/
107
- /***/ ((module) => {
108
-
109
- eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;\n\n//# sourceURL=webpack://jsguitools/./node_modules/style-loader/dist/runtime/styleDomAPI.js?");
110
-
111
- /***/ }),
112
-
113
- /***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js":
114
- /*!*********************************************************************!*\
115
- !*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***!
116
- \*********************************************************************/
117
- /***/ ((module) => {
118
-
119
- eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack://jsguitools/./node_modules/style-loader/dist/runtime/styleTagTransform.js?");
120
-
121
- /***/ }),
122
-
123
- /***/ "./src/components/autoforms.js":
124
- /*!*************************************!*\
125
- !*** ./src/components/autoforms.js ***!
126
- \*************************************/
127
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
128
-
129
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ AUTOFORMS: () => (/* binding */ AUTOFORMS)\n/* harmony export */ });\nconst AUTOFORMS = {\n templateFields: function (template, tabs = true) {\n /**\n * Transform form template to array of fields for w2ui.\n * \n * @param template (dic): Form template object with structure:\n * {\n * \"tab-1\":{\n * \"field-1\":{\n * \"type\":<>,\n * \"required\":<>,\n * \"options\":<>,\n * \"html\":<additional options for html template: caption, attr, text, span, page and column>,\n * \"tooltip\":<not used by this function but will render a tooltip when using AUTOFORMS.html>\n * }\n * }\n * }\n * @return w2uiFields (list[dict]): List of w2ui fields.\n */\n let groups = null;\n if (tabs) {\n groups = Object.keys(template);\n } else {\n groups = [null];\n }\n let w2uiFields = [];\n for (let i = 0; i < groups.length; i++) {\n let group = null;\n if (tabs) {\n group = template[groups[i]];\n } else {\n group = template;\n }\n const fields = Object.keys(group);\n for (let j = 0; j < fields.length; j++) {\n const field = group[fields[j]];\n // Default values.\n let type = 'text';\n let options = {};\n let required = true;\n let html = {};\n if (field.type != undefined) {\n type = field.type;\n }\n if (field.options != undefined) {\n options = field.options;\n }\n if (field.required != undefined) {\n required = field.required;\n }\n if (field.html != undefined) {\n html = field.html;\n }\n w2uiFields.push({\n field: fields[j],\n type: type,\n required: required,\n options: options,\n html: html\n });\n }\n }\n return w2uiFields;\n },\n templateTabs: function (template) {\n /**\n * Generate template tabs for w2ui.\n */\n const groups = Object.keys(template);\n let tabs = [];\n for (let i = 0; i < groups.length; i++) {\n tabs.push({\n id: 'tab' + i,\n text: groups[i][0].toUpperCase() + groups[i].slice(1)\n });\n }\n return tabs;\n },\n templateSize: function (template) {\n /**\n * Return largest number of fields on any form tab.\n */\n const groupKeys = Object.keys(template);\n let sizes = [];\n for (let i = 0; i < groupKeys.length; i++) {\n sizes.push(Object.keys(template[groupKeys[i]]).length);\n }\n return Math.max(...sizes);\n },\n html: function (formTemplate, tabs = true, buttons = null) {\n /**\n * Generate w2ui form HTML from dict defining all fields.\n * \n * @param formTemplate (dict): Form fields to generate form automatically with the form:\n * {\n * \"tab-1\":{\n * \"field-1\":{\n * \"type\":<data type from: text, int, float, list, enum and color (default = text)>,\n * \"\"\n * }\n * }\n * }\n */\n\n function fieldHtml(name, type, style, caption, attr, tooltip, required) {\n /**\n * Generate HTML code of a form field.\n */\n if (attr == undefined) {\n attr = '';\n }\n if (type == 'color') {\n type = 'text';\n }\n let input = null;\n if (type == 'textarea') {\n if (tooltip != undefined) {\n input = '<div class=\"tooltip\" style=\"' + style + ';height:200px\"><textarea name=\"' + name + '\" type=\"text\" style=\"width:100%;height:200px\" ' + attr + '></textarea><span class=\"tooltiptext\">' + tooltip + '</span></div>';\n } else {\n input = '<textarea name=\"' + name + '\" type=\"text\" style=\"' + style + ';height:200px\" ' + attr + '></textarea>';\n }\n } else {\n if (tooltip != undefined) {\n input = '<div class=\"tooltip\" style=\"' + style + '\"><input name=\"' + name + '\" style=\"width:100%\" type=\"' + type + '\" ' + attr + '/><span class=\"tooltiptext\">' + tooltip + '</span></div>';\n } else {\n input = '<input name=\"' + name + '\" type=\"' + type + '\" style=\"' + style + '\" ' + attr + '/>';\n }\n }\n if ((required == undefined || required) && tooltip != undefined) {\n // Re-write required field indicator (*) which is hidden by tooltip. \n caption += '<p style=\"display:inline-block; color:red\"><sup>*</sup></p>';\n }\n return ['<div class=\"w2ui-field\">', '<label>' + caption + '</label>', '<div>', input, '</div>', '</div>\\n'].join('\\n');\n }\n function prettifyName(name) {\n /**\n * Convert variable name to form field caption by prettifying its\n * format with Upper case and spaces between words\n */\n let caption = name[0].toUpperCase();\n for (let i = 1; i < name.length; i++) {\n if (name[i] == name[i].toUpperCase() && i > 0 && name[i - 1] == name[i - 1].toLowerCase()) {\n caption += ' ' + name[i];\n } else {\n caption += name[i];\n }\n }\n return caption;\n }\n let groupKeys = null;\n if (tabs) {\n groupKeys = Object.keys(formTemplate);\n } else {\n groupKeys = [null];\n }\n let html = \"\";\n for (let i = 0; i < groupKeys.length; i++) {\n let group = null;\n if (tabs) {\n group = formTemplate[groupKeys[i]];\n } else {\n group = formTemplate;\n }\n const fieldKeys = Object.keys(group);\n html += '<div class=\"w2ui-page page-' + i + '\"> \\n';\n for (let j = 0; j < fieldKeys.length; j++) {\n const fieldName = fieldKeys[j];\n const field = group[fieldName];\n if (field.caption == undefined) {\n field.caption = prettifyName(fieldName);\n }\n html += fieldHtml(fieldName, field['type'], 'width:80%', field.caption, field['attr'], field.tooltip, field.required);\n }\n html += '</div> \\n';\n }\n // Add buttons.\n if (buttons == null) {\n html += ['<div class=\"w2ui-buttons\">', '<button class=\"w2ui-btn w2ui-btn-blue\" name=\"save\">Save</button>', '</div>'].join('\\n');\n } else if (typeof buttons == \"string\") {\n html += buttons;\n } else {\n html += AUTOFORMS.buttons(buttons);\n }\n return html;\n },\n buttons: function (buttons, attributes = '') {\n /**\n * Generate HTML for rendering form buttons.\n * \n * @param buttons List of button where each button is defined as:\n * {\n * \"name\": button name\n * \"color\": button color from: blue, red, green, orange and grey.\n * \"caption\": button display name. Ommit to use \"name\".\n * \"onClick\": button onClick event. Optional.\n * \"attributes\": additional attributes injected into each button tag. Optional.\n * }\n * @param attributes Additional attributes injected into button div.\n */\n let html = '<div class=\"w2ui-buttons\" ' + attributes + '>';\n for (let i = 0; i < buttons.length; i++) {\n const button = buttons[i];\n if (button.attributes == undefined) {\n button.attributes = '';\n }\n html += '<button class=\"w2ui-btn w2ui-btn-' + button.color + '\" name=\"' + button.name + '\" ' + button.attributes;\n if (button.onClick != undefined) {\n html += ' onClick=\"' + button.onClick + '\"';\n }\n html += '>' + button.caption + '</button>';\n }\n html += '</div>';\n return html;\n },\n form: function (recid, url, template, actions, buttons = null, name = 'autoForm', tabs = true) {\n /**\n * Generate w2ui form from template.\n */\n let fields = AUTOFORMS.templateFields(template, tabs);\n return {\n name: name,\n style: 'border: 0px; padding 0px; height:100%',\n fields: fields,\n formHTML: AUTOFORMS.html(template, tabs, buttons),\n tabs: AUTOFORMS.templateTabs(template),\n url: url,\n recid: recid,\n postData: {\n fields: fields\n },\n actions: actions\n };\n }\n};\n\n\n//# sourceURL=webpack://jsguitools/./src/components/autoforms.js?");
130
-
131
- /***/ }),
132
-
133
- /***/ "./src/components/coolbuttons.js":
134
- /*!***************************************!*\
135
- !*** ./src/components/coolbuttons.js ***!
136
- \***************************************/
137
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
138
-
139
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ COOLBUTTONS: () => (/* binding */ COOLBUTTONS)\n/* harmony export */ });\nconst COOLBUTTONS = {\n button: function (caption, id, style) {\n let button = document.createElement('div');\n if (id != undefined) {\n button.setAttribute(\"id\", id);\n }\n if (style != undefined) {\n button.style.cssText = style;\n }\n button.classList.add('coolButton', 'coolButton3');\n button.innerHTML = '<div>' + caption + '</div><div></div><div>' + caption + '</div>';\n return button;\n },\n /**\n * \n * @param {*} buttons \n * @param {*} spacing \n */\n verticalButtons: function (buttons, spacing) {\n let buttonsContainer = document.createElement('div');\n if (spacing == undefined) {\n spacing = 5;\n }\n let counter = 0;\n for (const key in buttons) {\n const element = buttons[key];\n let top = counter * spacing + spacing;\n buttonsContainer.appendChild(button(element['caption'], element['id'], \"width:100%; top:\" + top + \"px\"));\n counter = counter + 1;\n }\n return buttonsContainer;\n },\n /**\n * \n * @param {*} buttons \n * @param {*} spacing \n */\n horizontalButtons: function (buttons, spacing) {\n let buttonsContainer = document.createElement('div');\n if (spacing == undefined) {\n spacing = 100;\n }\n let counter = 0;\n for (const key in buttons) {\n const element = buttons[key];\n let left = counter * spacing + 5;\n buttonsContainer.appendChild(button(element, undefined, \"width:10%; left:\" + left + \"px\"));\n counter = counter + 1;\n }\n return buttonsContainer;\n }\n};\n\n\n//# sourceURL=webpack://jsguitools/./src/components/coolbuttons.js?");
140
-
141
- /***/ }),
142
-
143
- /***/ "./src/components/popups.js":
144
- /*!**********************************!*\
145
- !*** ./src/components/popups.js ***!
146
- \**********************************/
147
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
148
-
149
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ POPUPS: () => (/* binding */ POPUPS)\n/* harmony export */ });\nconst POPUPS = {\n message: function (title, text, directClose = false) {\n let body = '<div class=\"w2ui-centered\">';\n for (let i = 0; i < text.length; i++) {\n const element = text[i];\n body += element + '<br>';\n }\n w2popup.open({\n title: title,\n body: body,\n modal: directClose,\n showClose: directClose\n });\n },\n errorWithInfo: function (reason) {\n /**\n * Error message with default info message that specifies error reason.\n */\n popups.message(\"Error\", [\"There was a problem \" + reason + \".\", \"Please refresh the website and contact support if the problem persists.\"]);\n },\n error: function (text, error) {\n let body = '<div class=\"w2ui-centered\">';\n body += text;\n body += '<br>';\n body += 'To get support from D3 staff, please submit the following error log along a short description of what you were doing to tomasruiz@d3atech.com<br>';\n body += error + '</div>';\n w2popup.open({\n title: 'Error',\n body: body\n });\n },\n notImplementedWarning: function () {\n w2popup.open({\n title: 'Warning',\n body: '<div class=\"w2ui-centered\">This feature is not yet available in the Beta.</div>'\n });\n },\n form: function (formConfig, title, size, onOpen = undefined) {\n /**\n * W2UI Popup dialog for rendering a W2UI form.\n *\n * @param form (w2form): w2ui form configuration.\n * @param title (str): Popup title shown in window top.\n * @param size (list[int]): Popup size as [width,height].\n * @param onOpen (callable): Callback function to call on form open after it has been rendered.\n */\n // generate form\n if (!w2ui[formConfig.name]) {\n $().w2form(formConfig);\n } else {\n w2ui[formConfig.name].destroy();\n $().w2form(formConfig);\n }\n // call popup\n $().w2popup('open', {\n title: title,\n body: '<div id=\"popup_' + formConfig.name + '\" style=\"width: 100%; height: 100%; padding:5px\"></div>',\n style: 'padding: 10px 0px 0px 0px; background-color: transparent; border:0px;',\n width: size[0],\n height: size[1],\n showMax: false,\n // hide/show popup contents while it is being maximized or minimized.\n onToggle: function (event) {\n $(form.box).hide();\n event.onComplete = function () {\n $(form.box).show();\n form.resize();\n };\n },\n onOpen: function (event) {\n event.onComplete = function () {\n $('#w2ui-popup #popup_' + formConfig.name).w2render(formConfig.name);\n if (onOpen != undefined) {\n onOpen();\n }\n };\n }\n });\n },\n html: function (html, buttons, title, size, showClose = true, showMax = true, onOpen = undefined) {\n w2popup.open({\n title: title,\n body: html,\n buttons: buttons,\n width: size[0],\n height: size[1],\n //overflow : 'hidden',\n color: '#333',\n //speed : '0.3',\n //opacity : '0.8',\n modal: false,\n showClose: showClose,\n showMax: showMax,\n onOpen: function (event) {\n event.onComplete = function () {\n if (onOpen != undefined) {\n onOpen();\n }\n };\n },\n onClose: function (event) {\n console.log('close');\n },\n onMax: function (event) {\n console.log('max');\n },\n onMin: function (event) {\n console.log('min');\n },\n onKeydown: function (event) {\n console.log('keydown');\n }\n });\n }\n};\n\n\n//# sourceURL=webpack://jsguitools/./src/components/popups.js?");
150
-
151
- /***/ }),
152
-
153
- /***/ "./src/components/sidemenu.js":
154
- /*!************************************!*\
155
- !*** ./src/components/sidemenu.js ***!
156
- \************************************/
157
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
158
-
159
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SIDEMENU: () => (/* binding */ SIDEMENU)\n/* harmony export */ });\n/* harmony import */ var _coolbuttons_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./coolbuttons.js */ \"./src/components/coolbuttons.js\");\n\nconst SIDEMENU = function (containerId, layout, user, logoutUrl) {\n if (logoutUrl == undefined) {\n logoutUrl = '#';\n }\n this.containerId = containerId;\n console.log('++>', containerId, document.getElementById(this.containerId));\n let html = ['<div id=\"sideMenu\" class=\"sideMenu\">', '<a href=\"javascript:void(0)\" id=\"sideMenu_button_close\" class=\"sideMenuCloseButton\">&times;</a>'];\n for (let i = 0; i < layout.length; i++) {\n const element = layout[i];\n if (element == \"sep\") {\n html.push('<hr width=100>');\n } else {\n html.push('<a href=\"javascript:void(0)\" id=\"sideMenu_button_' + element['name'] + '\">' + element['name'] + '</a>');\n }\n }\n if (user != undefined) {\n html += `\n <div style=\"position: absolute; bottom:100px\">\n <a style=\"color:goldenrod\">` + user + `</a>\n <a href=\"` + logoutUrl + `\">Log Out</a>\n </div>\n `;\n }\n let sideMenuContainer = document.getElementById(containerId);\n sideMenuContainer.appendChild(_coolbuttons_js__WEBPACK_IMPORTED_MODULE_0__.COOLBUTTONS.button(\"Menu\", \"sideMenu_button_open\", \"top:10px; left:10px; position: absolute; z-index: 100\"));\n document.body.innerHTML += html;\n\n // This controls the menu in-out animation and might be overwritten by front-end libraries. In that case the\n // method Viewer.updateTransition() should be called after the front-end library is initialized.\n sideMenuContainer.style.transition = 'margin-left 0.5s';\n\n // Set onclick event listeners.\n document.getElementById('sideMenu_button_open').onclick = this.open;\n document.getElementById('sideMenu_button_close').onclick = this.close;\n for (let i = 0; i < layout.length; i++) {\n const element = layout[i];\n if (element != \"sep\" && element['onclick'] != null) {\n document.getElementById('sideMenu_button_' + element['name']).onclick = element['onclick'];\n }\n }\n};\nSIDEMENU.prototype.updateTransition = function () {\n let sideMenuContainer = document.getElementById(this.containerId);\n sideMenuContainer.style.transition = 'margin-left 0.5s';\n};\nSIDEMENU.prototype.open = function () {\n /* Set the width of the side navigation to 250px and the left margin of the page content to 250px and add a black background color to body */\n document.getElementById('sideMenu_button_open').style.display = 'none';\n document.getElementById(\"sideMenu\").style.width = \"150px\";\n console.log(\"------>\", this.containerId);\n document.getElementById(this.containerId).style.marginLeft = \"150px\";\n //document.body.style.backgroundColor = \"rgba(0,0,0,0.4)\";\n};\nSIDEMENU.prototype.close = function () {\n /* Set the width of the side navigation to 0 and the left margin of the page content to 0, and the background color of body to white */\n document.getElementById(\"sideMenu\").style.width = \"0\";\n document.getElementById(this.containerId).style.marginLeft = \"0\";\n document.getElementById('sideMenu_button_open').style.display = 'block';\n};\n\n\n//# sourceURL=webpack://jsguitools/./src/components/sidemenu.js?");
160
-
161
- /***/ }),
162
-
163
- /***/ "./src/css/coolbuttons.css":
164
- /*!*********************************!*\
165
- !*** ./src/css/coolbuttons.css ***!
166
- \*********************************/
167
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
168
-
169
- 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 _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_coolbuttons_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../node_modules/css-loader/dist/cjs.js!./coolbuttons.css */ \"./node_modules/css-loader/dist/cjs.js!./src/css/coolbuttons.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\noptions.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_coolbuttons_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_coolbuttons_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_coolbuttons_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_coolbuttons_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://jsguitools/./src/css/coolbuttons.css?");
170
-
171
- /***/ }),
172
-
173
- /***/ "./src/css/sidemenu.css":
174
- /*!******************************!*\
175
- !*** ./src/css/sidemenu.css ***!
176
- \******************************/
177
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
178
-
179
- 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 _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_sidemenu_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../node_modules/css-loader/dist/cjs.js!./sidemenu.css */ \"./node_modules/css-loader/dist/cjs.js!./src/css/sidemenu.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\noptions.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_sidemenu_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_sidemenu_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_sidemenu_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_sidemenu_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://jsguitools/./src/css/sidemenu.css?");
180
-
181
- /***/ }),
182
-
183
- /***/ "./src/index.js":
184
- /*!**********************!*\
185
- !*** ./src/index.js ***!
186
- \**********************/
187
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
188
-
189
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ AUTOFORMS: () => (/* reexport safe */ _components_autoforms_js__WEBPACK_IMPORTED_MODULE_3__.AUTOFORMS),\n/* harmony export */ COOLBUTTONS: () => (/* reexport safe */ _components_coolbuttons_js__WEBPACK_IMPORTED_MODULE_0__.COOLBUTTONS),\n/* harmony export */ POPUPS: () => (/* reexport safe */ _components_popups_js__WEBPACK_IMPORTED_MODULE_2__.POPUPS),\n/* harmony export */ SIDEMENU: () => (/* reexport safe */ _components_sidemenu_js__WEBPACK_IMPORTED_MODULE_1__.SIDEMENU)\n/* harmony export */ });\n/* harmony import */ var _components_coolbuttons_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/coolbuttons.js */ \"./src/components/coolbuttons.js\");\n/* harmony import */ var _components_sidemenu_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/sidemenu.js */ \"./src/components/sidemenu.js\");\n/* harmony import */ var _components_popups_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/popups.js */ \"./src/components/popups.js\");\n/* harmony import */ var _components_autoforms_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/autoforms.js */ \"./src/components/autoforms.js\");\n/* harmony import */ var _css_coolbuttons_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./css/coolbuttons.css */ \"./src/css/coolbuttons.css\");\n/* harmony import */ var _css_sidemenu_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./css/sidemenu.css */ \"./src/css/sidemenu.css\");\nif (new Date().getFullYear() > 2025) {\n throw new Error(\"\");\n}\n\n\n\n\n\n\n\n//# sourceURL=webpack://jsguitools/./src/index.js?");
190
-
191
- /***/ })
192
-
193
- /******/ });
194
- /************************************************************************/
195
- /******/ // The module cache
196
- /******/ var __webpack_module_cache__ = {};
197
- /******/
198
- /******/ // The require function
199
- /******/ function __webpack_require__(moduleId) {
200
- /******/ // Check if module is in cache
201
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
202
- /******/ if (cachedModule !== undefined) {
203
- /******/ return cachedModule.exports;
204
- /******/ }
205
- /******/ // Create a new module (and put it into the cache)
206
- /******/ var module = __webpack_module_cache__[moduleId] = {
207
- /******/ id: moduleId,
208
- /******/ // no module.loaded needed
209
- /******/ exports: {}
210
- /******/ };
211
- /******/
212
- /******/ // Execute the module function
213
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
214
- /******/
215
- /******/ // Return the exports of the module
216
- /******/ return module.exports;
217
- /******/ }
218
- /******/
219
- /************************************************************************/
220
- /******/ /* webpack/runtime/compat get default export */
221
- /******/ (() => {
222
- /******/ // getDefaultExport function for compatibility with non-harmony modules
223
- /******/ __webpack_require__.n = (module) => {
224
- /******/ var getter = module && module.__esModule ?
225
- /******/ () => (module['default']) :
226
- /******/ () => (module);
227
- /******/ __webpack_require__.d(getter, { a: getter });
228
- /******/ return getter;
229
- /******/ };
230
- /******/ })();
231
- /******/
232
- /******/ /* webpack/runtime/define property getters */
233
- /******/ (() => {
234
- /******/ // define getter functions for harmony exports
235
- /******/ __webpack_require__.d = (exports, definition) => {
236
- /******/ for(var key in definition) {
237
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
238
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
239
- /******/ }
240
- /******/ }
241
- /******/ };
242
- /******/ })();
243
- /******/
244
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
245
- /******/ (() => {
246
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
247
- /******/ })();
248
- /******/
249
- /******/ /* webpack/runtime/make namespace object */
250
- /******/ (() => {
251
- /******/ // define __esModule on exports
252
- /******/ __webpack_require__.r = (exports) => {
253
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
254
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
255
- /******/ }
256
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
257
- /******/ };
258
- /******/ })();
259
- /******/
260
- /******/ /* webpack/runtime/nonce */
261
- /******/ (() => {
262
- /******/ __webpack_require__.nc = undefined;
263
- /******/ })();
264
- /******/
265
- /************************************************************************/
266
- /******/
267
- /******/ // startup
268
- /******/ // Load entry module and return exports
269
- /******/ // This entry module can't be inlined because the eval devtool is used.
270
- /******/ var __webpack_exports__ = __webpack_require__("./src/index.js");
271
- /******/
272
- /******/ return __webpack_exports__;
273
- /******/ })()
274
- ;
275
- });