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