mirror of
https://github.com/esiur/iui.git
synced 2025-06-27 09:23:12 +00:00
1.2.1
This commit is contained in:
151
build/iui.js
151
build/iui.js
@ -1200,19 +1200,19 @@ var IUI = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
case 23:
|
case 23:
|
||||||
if (!(i < element.children.length)) {
|
if (!(i < element.children.length)) {
|
||||||
_context4.next = 49;
|
_context4.next = 47;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
el = element.children[i];
|
el = element.children[i];
|
||||||
|
|
||||||
if (!(el instanceof _IUIElement["default"])) {
|
if (!(el instanceof _IUIElement["default"])) {
|
||||||
_context4.next = 38;
|
_context4.next = 36;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(el.dataMap != null)) {
|
if (!(el.dataMap != null)) {
|
||||||
_context4.next = 34;
|
_context4.next = 32;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1221,51 +1221,48 @@ var IUI = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
case 29:
|
case 29:
|
||||||
if (_context4.sent) {
|
if (_context4.sent) {
|
||||||
_context4.next = 32;
|
_context4.next = 30;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_context4.next = 32;
|
case 30:
|
||||||
return el.render();
|
_context4.next = 34;
|
||||||
|
break;
|
||||||
|
|
||||||
case 32:
|
case 32:
|
||||||
_context4.next = 36;
|
_context4.next = 34;
|
||||||
break;
|
|
||||||
|
|
||||||
case 34:
|
|
||||||
_context4.next = 36;
|
|
||||||
return el.setData(data);
|
return el.setData(data);
|
||||||
|
|
||||||
case 36:
|
case 34:
|
||||||
_context4.next = 46;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 38:
|
|
||||||
if (!(el.dataMap != null)) {
|
|
||||||
_context4.next = 43;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
_context4.next = 41;
|
|
||||||
return el.dataMap.render(data);
|
|
||||||
|
|
||||||
case 41:
|
|
||||||
_context4.next = 44;
|
_context4.next = 44;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 43:
|
case 36:
|
||||||
|
if (!(el.dataMap != null)) {
|
||||||
|
_context4.next = 41;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
_context4.next = 39;
|
||||||
|
return el.dataMap.render(data);
|
||||||
|
|
||||||
|
case 39:
|
||||||
|
_context4.next = 42;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 41:
|
||||||
el.data = data;
|
el.data = data;
|
||||||
|
|
||||||
case 44:
|
case 42:
|
||||||
_context4.next = 46;
|
_context4.next = 44;
|
||||||
return IUI.render(el, el.data);
|
return IUI.render(el, el.data);
|
||||||
|
|
||||||
case 46:
|
case 44:
|
||||||
i++;
|
i++;
|
||||||
_context4.next = 23;
|
_context4.next = 23;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 49:
|
case 47:
|
||||||
case "end":
|
case "end":
|
||||||
return _context4.stop();
|
return _context4.stop();
|
||||||
}
|
}
|
||||||
@ -2938,7 +2935,7 @@ var _default = _IUI.IUI.module( /*#__PURE__*/function (_IUIElement) {
|
|||||||
|
|
||||||
case 9:
|
case 9:
|
||||||
if (!(i < value.length)) {
|
if (!(i < value.length)) {
|
||||||
_context.next = 49;
|
_context.next = 47;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2972,12 +2969,12 @@ var _default = _IUI.IUI.module( /*#__PURE__*/function (_IUIElement) {
|
|||||||
|
|
||||||
case 25:
|
case 25:
|
||||||
if (!(el instanceof _IUIElement2["default"])) {
|
if (!(el instanceof _IUIElement2["default"])) {
|
||||||
_context.next = 38;
|
_context.next = 36;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(el.dataMap != null)) {
|
if (!(el.dataMap != null)) {
|
||||||
_context.next = 34;
|
_context.next = 32;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2986,51 +2983,48 @@ var _default = _IUI.IUI.module( /*#__PURE__*/function (_IUIElement) {
|
|||||||
|
|
||||||
case 29:
|
case 29:
|
||||||
if (_context.sent) {
|
if (_context.sent) {
|
||||||
_context.next = 32;
|
_context.next = 30;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_context.next = 32;
|
case 30:
|
||||||
return el.render();
|
_context.next = 34;
|
||||||
|
break;
|
||||||
|
|
||||||
case 32:
|
case 32:
|
||||||
_context.next = 36;
|
_context.next = 34;
|
||||||
break;
|
|
||||||
|
|
||||||
case 34:
|
|
||||||
_context.next = 36;
|
|
||||||
return el.setData(value[i]);
|
return el.setData(value[i]);
|
||||||
|
|
||||||
case 36:
|
case 34:
|
||||||
_context.next = 46;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 38:
|
|
||||||
if (!(el.dataMap != null)) {
|
|
||||||
_context.next = 43;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
_context.next = 41;
|
|
||||||
return el.dataMap.render(value[i]);
|
|
||||||
|
|
||||||
case 41:
|
|
||||||
_context.next = 44;
|
_context.next = 44;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 43:
|
case 36:
|
||||||
|
if (!(el.dataMap != null)) {
|
||||||
|
_context.next = 41;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
_context.next = 39;
|
||||||
|
return el.dataMap.render(value[i]);
|
||||||
|
|
||||||
|
case 39:
|
||||||
|
_context.next = 42;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 41:
|
||||||
el.data = value[i];
|
el.data = value[i];
|
||||||
|
|
||||||
case 44:
|
case 42:
|
||||||
_context.next = 46;
|
_context.next = 44;
|
||||||
return _IUI.IUI.render(el, el.data, false);
|
return _IUI.IUI.render(el, el.data, false);
|
||||||
|
|
||||||
case 46:
|
case 44:
|
||||||
i++;
|
i++;
|
||||||
_context.next = 9;
|
_context.next = 9;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 49:
|
case 47:
|
||||||
// @TODO: check if this works for event names starting with ":"
|
// @TODO: check if this works for event names starting with ":"
|
||||||
this._emit(":data", {
|
this._emit(":data", {
|
||||||
data: value
|
data: value
|
||||||
@ -3039,7 +3033,7 @@ var _default = _IUI.IUI.module( /*#__PURE__*/function (_IUIElement) {
|
|||||||
|
|
||||||
this._busy = false;
|
this._busy = false;
|
||||||
|
|
||||||
case 51:
|
case 49:
|
||||||
case "end":
|
case "end":
|
||||||
return _context.stop();
|
return _context.stop();
|
||||||
}
|
}
|
||||||
@ -3845,7 +3839,7 @@ var _default = _IUI.IUI.module( /*#__PURE__*/function (_Target) {
|
|||||||
_context.prev = 24;
|
_context.prev = 24;
|
||||||
|
|
||||||
if (!(stateRoute.dataMap != null)) {
|
if (!(stateRoute.dataMap != null)) {
|
||||||
_context.next = 36;
|
_context.next = 34;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3854,48 +3848,45 @@ var _default = _IUI.IUI.module( /*#__PURE__*/function (_Target) {
|
|||||||
|
|
||||||
case 28:
|
case 28:
|
||||||
if (_context.sent) {
|
if (_context.sent) {
|
||||||
_context.next = 31;
|
_context.next = 29;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_context.next = 31;
|
case 29:
|
||||||
return stateRoute.render();
|
|
||||||
|
|
||||||
case 31:
|
|
||||||
if (!(viewRoute != stateRoute)) {
|
if (!(viewRoute != stateRoute)) {
|
||||||
_context.next = 34;
|
_context.next = 32;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_context.next = 34;
|
_context.next = 32;
|
||||||
return viewRoute.setData(stateRoute.data);
|
return viewRoute.setData(stateRoute.data);
|
||||||
|
|
||||||
case 34:
|
case 32:
|
||||||
_context.next = 38;
|
_context.next = 36;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 36:
|
case 34:
|
||||||
_context.next = 38;
|
_context.next = 36;
|
||||||
return viewRoute.setData(data);
|
return viewRoute.setData(data);
|
||||||
|
|
||||||
case 38:
|
case 36:
|
||||||
_context.next = 43;
|
_context.next = 41;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 40:
|
case 38:
|
||||||
_context.prev = 40;
|
_context.prev = 38;
|
||||||
_context.t0 = _context["catch"](24);
|
_context.t0 = _context["catch"](24);
|
||||||
console.log("EXXXXXXXXXX", _context.t0);
|
console.log("EXXXXXXXXXX", _context.t0);
|
||||||
|
|
||||||
case 43:
|
case 41:
|
||||||
target.setLoading(false);
|
target.setLoading(false);
|
||||||
|
|
||||||
case 44:
|
case 42:
|
||||||
case "end":
|
case "end":
|
||||||
return _context.stop();
|
return _context.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, _callee, this, [[24, 40]]);
|
}, _callee, this, [[24, 38]]);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
function navigate(_x, _x2, _x3, _x4) {
|
function navigate(_x, _x2, _x3, _x4) {
|
||||||
|
@ -2926,6 +2926,8 @@ html[dir='rtl'] .navbar-item[level='3'] > .link {
|
|||||||
.sitebar {
|
.sitebar {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
flex-flow: row-reverse;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitebar-container {
|
.sitebar-container {
|
||||||
@ -2938,11 +2940,11 @@ html[dir='rtl'] .navbar-item[level='3'] > .link {
|
|||||||
|
|
||||||
.sitebar-item > i-link {
|
.sitebar-item > i-link {
|
||||||
display: flex;
|
display: flex;
|
||||||
background: #e9e9e9;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitebar-item > i-link:hover {
|
.sitebar-item > i-link:hover {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
color:var(--menu-item-hover-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitebar-menu {
|
.sitebar-menu {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@esiur/iui",
|
"name": "@esiur/iui",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"description": "Interactive User Interface",
|
"description": "Interactive User Interface",
|
||||||
"main": "iui.js",
|
"main": "iui.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
Reference in New Issue
Block a user