@crystaldesign/diva-backoffice 24.8.0-beta.14 → 24.8.0-beta.16
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/build/esm/index.js +914 -336
- package/build/types/backoffice/src/layout/MainLayout.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Navigation/types.d.ts +8 -0
- package/build/types/backoffice/src/layout/Navigation/types.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Spinner/index.d.ts +6 -0
- package/build/types/backoffice/src/layout/Toolbar/Spinner/index.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG/ArticleSelection/index.d.ts +9 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG/ArticleSelection/index.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG/index.d.ts +8 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG/index.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG/useWysiwyg.d.ts +29 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG/useWysiwyg.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/index.d.ts +6 -0
- package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -0
- package/build/types/backoffice/src/store/ContentStore.d.ts +16 -1
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.d.ts.map +1 -1
- package/package.json +3 -3
package/build/esm/index.js
CHANGED
|
@@ -71,7 +71,7 @@ import DeleteOutlined from '@ant-design/icons/DeleteOutlined';
|
|
|
71
71
|
import JSONEditor from 'jsoneditor';
|
|
72
72
|
import 'jsoneditor/dist/jsoneditor.css';
|
|
73
73
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
74
|
-
import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, FileUnknownOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined } from '@ant-design/icons';
|
|
74
|
+
import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, FileUnknownOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, PushpinOutlined, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
|
|
75
75
|
import { Editor } from '@tinymce/tinymce-react';
|
|
76
76
|
import { stringify } from 'csv';
|
|
77
77
|
import InfiniteScroll from 'react-infinite-scroll-component';
|
|
@@ -117,6 +117,8 @@ import Switch$1 from 'antd/es/switch';
|
|
|
117
117
|
import Layout$1 from 'antd/es/layout';
|
|
118
118
|
import Menu from 'antd/es/menu';
|
|
119
119
|
import { DoubleLeftOutlined } from '@ant-design/icons/lib/icons';
|
|
120
|
+
import { WebPlannerReact } from '@crystaldesign/diva-web-planner-react';
|
|
121
|
+
import Select$2 from 'react-select';
|
|
120
122
|
|
|
121
123
|
(function() {
|
|
122
124
|
const env = {"STAGE":"production"};
|
|
@@ -133,8 +135,8 @@ import { DoubleLeftOutlined } from '@ant-design/icons/lib/icons';
|
|
|
133
135
|
function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
134
136
|
function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
|
|
135
137
|
function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
136
|
-
function ownKeys$
|
|
137
|
-
function _objectSpread$
|
|
138
|
+
function ownKeys$K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
139
|
+
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
138
140
|
var LOG$b = getLogger('Backoffice', 'AplyMapping');
|
|
139
141
|
function aplyMapping (_ref) {
|
|
140
142
|
var mapable = _ref.mapable,
|
|
@@ -155,10 +157,10 @@ function aplyMapping (_ref) {
|
|
|
155
157
|
var newValue = {};
|
|
156
158
|
newValue[newKey] = valueToAdd;
|
|
157
159
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
|
158
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$
|
|
160
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$K(_objectSpread$K({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
|
159
161
|
return startValue;
|
|
160
162
|
}
|
|
161
|
-
if (newIdx == 1) return _objectSpread$
|
|
163
|
+
if (newIdx == 1) return _objectSpread$K(_objectSpread$K({}, startValue), newValue);
|
|
162
164
|
return getTarget(idx + 1, keys, startValue, newValue);
|
|
163
165
|
};
|
|
164
166
|
returnValue = getTarget(0, key.split('.'), returnValue, value);
|
|
@@ -439,8 +441,8 @@ function getLeafColumns(columns) {
|
|
|
439
441
|
});
|
|
440
442
|
}
|
|
441
443
|
|
|
442
|
-
function ownKeys$
|
|
443
|
-
function _objectSpread$
|
|
444
|
+
function ownKeys$J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
445
|
+
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
444
446
|
var LOG$a = getLogger('Backoffice', 'ApiHandler');
|
|
445
447
|
var jp = require('jsonpath');
|
|
446
448
|
var _default$d = /*#__PURE__*/function () {
|
|
@@ -619,7 +621,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
619
621
|
_context2.next = 20;
|
|
620
622
|
return fetch(finalUrl, {
|
|
621
623
|
method: this._updateMethod,
|
|
622
|
-
headers: _objectSpread$
|
|
624
|
+
headers: _objectSpread$J(_objectSpread$J({}, jwt ? {
|
|
623
625
|
Authorization: 'Bearer ' + jwt
|
|
624
626
|
} : {}), {}, {
|
|
625
627
|
'Content-Type': 'application/json'
|
|
@@ -712,7 +714,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
712
714
|
rootStore: this._rootStore,
|
|
713
715
|
fallBackToParams: true
|
|
714
716
|
});
|
|
715
|
-
if (data) createData = _objectSpread$
|
|
717
|
+
if (data) createData = _objectSpread$J({}, data);
|
|
716
718
|
} else if (data !== undefined) {
|
|
717
719
|
createData = aplyMapping({
|
|
718
720
|
mapable: data,
|
|
@@ -855,7 +857,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
855
857
|
_context6.next = 7;
|
|
856
858
|
return fetch((_url = url) === null || _url === void 0 ? void 0 : _url.toString(), {
|
|
857
859
|
method: isApi2 ? 'POST' : 'DELETE',
|
|
858
|
-
headers: _objectSpread$
|
|
860
|
+
headers: _objectSpread$J({}, jwt ? {
|
|
859
861
|
Authorization: 'Bearer ' + jwt
|
|
860
862
|
} : {})
|
|
861
863
|
}).then( /*#__PURE__*/function () {
|
|
@@ -973,7 +975,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
973
975
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
974
976
|
case 2:
|
|
975
977
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
|
976
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
978
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$J(_objectSpread$J({}, filterServerSide), {}, {
|
|
977
979
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
978
980
|
baseUrl: this._readListUrl,
|
|
979
981
|
prefilter: prefilter
|
|
@@ -993,7 +995,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
993
995
|
});
|
|
994
996
|
case 6:
|
|
995
997
|
response = _context8.sent;
|
|
996
|
-
return _context8.abrupt("return", _objectSpread$
|
|
998
|
+
return _context8.abrupt("return", _objectSpread$J(_objectSpread$J({}, response), {}, {
|
|
997
999
|
data: response.data.map(function (d) {
|
|
998
1000
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
|
999
1001
|
})
|
|
@@ -1017,7 +1019,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1017
1019
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1018
1020
|
}
|
|
1019
1021
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
|
1020
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1022
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$J(_objectSpread$J({}, filterServerSide), {}, {
|
|
1021
1023
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1022
1024
|
baseUrl: this._readListUrl,
|
|
1023
1025
|
prefilter: prefilter
|
|
@@ -1223,8 +1225,8 @@ var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1223
1225
|
}]);
|
|
1224
1226
|
}(_default$d);
|
|
1225
1227
|
|
|
1226
|
-
function ownKeys$
|
|
1227
|
-
function _objectSpread$
|
|
1228
|
+
function ownKeys$I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1229
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1228
1230
|
function _callSuper$6(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$6() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1229
1231
|
function _isNativeReflectConstruct$6() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$6 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1230
1232
|
var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
@@ -1323,7 +1325,7 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1323
1325
|
_context2.next = 5;
|
|
1324
1326
|
return fetch(this._createUrl + '?ref=true', {
|
|
1325
1327
|
method: this._createMethod,
|
|
1326
|
-
headers: _objectSpread$
|
|
1328
|
+
headers: _objectSpread$I({}, jwt ? {
|
|
1327
1329
|
Authorization: 'Bearer ' + jwt
|
|
1328
1330
|
} : {}),
|
|
1329
1331
|
body: data
|
|
@@ -1699,8 +1701,8 @@ var _default$8 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1699
1701
|
}]);
|
|
1700
1702
|
}(_default$d);
|
|
1701
1703
|
|
|
1702
|
-
function ownKeys$
|
|
1703
|
-
function _objectSpread$
|
|
1704
|
+
function ownKeys$H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1705
|
+
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1704
1706
|
var _default$7 = /*#__PURE__*/function () {
|
|
1705
1707
|
function _default(root) {
|
|
1706
1708
|
_classCallCheck(this, _default);
|
|
@@ -1736,7 +1738,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
|
1736
1738
|
var _i$permission;
|
|
1737
1739
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
|
1738
1740
|
});
|
|
1739
|
-
config = _objectSpread$
|
|
1741
|
+
config = _objectSpread$H(_objectSpread$H({}, config), {}, {
|
|
1740
1742
|
items: filteredItems
|
|
1741
1743
|
});
|
|
1742
1744
|
}
|
|
@@ -10936,8 +10938,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
|
10936
10938
|
var navOverlay = "nav-overlay-rKJNC";
|
|
10937
10939
|
var navSettings = "nav-settings-82cjv";
|
|
10938
10940
|
var menuLabel = "menu-label-4dXQk";
|
|
10939
|
-
var css_248z$
|
|
10940
|
-
styleInject(css_248z$
|
|
10941
|
+
var css_248z$n = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline;\n display: initial;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
|
|
10942
|
+
styleInject(css_248z$n);
|
|
10941
10943
|
|
|
10942
10944
|
function MenuLabel (_ref) {
|
|
10943
10945
|
var disabled = _ref.disabled,
|
|
@@ -11126,8 +11128,8 @@ function getIcon(icon) {
|
|
|
11126
11128
|
return undefined;
|
|
11127
11129
|
}
|
|
11128
11130
|
|
|
11129
|
-
function ownKeys$
|
|
11130
|
-
function _objectSpread$
|
|
11131
|
+
function ownKeys$G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11132
|
+
function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11131
11133
|
var _default$6 = /*#__PURE__*/function () {
|
|
11132
11134
|
function _default(root) {
|
|
11133
11135
|
_classCallCheck(this, _default);
|
|
@@ -11138,6 +11140,11 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
11138
11140
|
_defineProperty(this, "_menuElement1", void 0);
|
|
11139
11141
|
_defineProperty(this, "_menuElement2", void 0);
|
|
11140
11142
|
_defineProperty(this, "_additionalMenuElements", []);
|
|
11143
|
+
_defineProperty(this, "_tools", []);
|
|
11144
|
+
_defineProperty(this, "_openedToolId", undefined);
|
|
11145
|
+
_defineProperty(this, "_hideTools", true);
|
|
11146
|
+
_defineProperty(this, "_toolLoading", new Map());
|
|
11147
|
+
_defineProperty(this, "_toolPinned", false);
|
|
11141
11148
|
makeAutoObservable(this, {
|
|
11142
11149
|
root: false
|
|
11143
11150
|
});
|
|
@@ -11182,6 +11189,52 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
11182
11189
|
get: function get() {
|
|
11183
11190
|
return this._menuElement2;
|
|
11184
11191
|
}
|
|
11192
|
+
}, {
|
|
11193
|
+
key: "tools",
|
|
11194
|
+
get: function get() {
|
|
11195
|
+
return this._tools;
|
|
11196
|
+
},
|
|
11197
|
+
set: function set(tools) {
|
|
11198
|
+
this._tools = tools;
|
|
11199
|
+
}
|
|
11200
|
+
}, {
|
|
11201
|
+
key: "hideTools",
|
|
11202
|
+
get: function get() {
|
|
11203
|
+
return this._hideTools;
|
|
11204
|
+
},
|
|
11205
|
+
set: function set(hidden) {
|
|
11206
|
+
this._hideTools = hidden;
|
|
11207
|
+
}
|
|
11208
|
+
}, {
|
|
11209
|
+
key: "openedToolId",
|
|
11210
|
+
get: function get() {
|
|
11211
|
+
return this._openedToolId;
|
|
11212
|
+
},
|
|
11213
|
+
set: function set(id) {
|
|
11214
|
+
this._openedToolId = id;
|
|
11215
|
+
}
|
|
11216
|
+
}, {
|
|
11217
|
+
key: "toolPinned",
|
|
11218
|
+
get: function get() {
|
|
11219
|
+
return this._toolPinned;
|
|
11220
|
+
},
|
|
11221
|
+
set: function set(val) {
|
|
11222
|
+
this._toolPinned = val;
|
|
11223
|
+
}
|
|
11224
|
+
}, {
|
|
11225
|
+
key: "isToolLoading",
|
|
11226
|
+
get: function get() {
|
|
11227
|
+
return this._toolLoading.size != 0;
|
|
11228
|
+
}
|
|
11229
|
+
}, {
|
|
11230
|
+
key: "toggleToolLoading",
|
|
11231
|
+
value: function toggleToolLoading(id, hidden, toggle) {
|
|
11232
|
+
if (this._toolLoading.has(id) && toggle !== true) {
|
|
11233
|
+
this._toolLoading["delete"](id);
|
|
11234
|
+
} else if (!this._toolLoading.has(id) && toggle !== false) {
|
|
11235
|
+
this._toolLoading.set(id, hidden == undefined ? false : hidden);
|
|
11236
|
+
}
|
|
11237
|
+
}
|
|
11185
11238
|
}, {
|
|
11186
11239
|
key: "updateAdditionalElement",
|
|
11187
11240
|
value: function updateAdditionalElement(key, items, selected) {
|
|
@@ -11191,7 +11244,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
11191
11244
|
if (index >= 0) {
|
|
11192
11245
|
this._additionalMenuElements[index] = {
|
|
11193
11246
|
key: key,
|
|
11194
|
-
element: _objectSpread$
|
|
11247
|
+
element: _objectSpread$G(_objectSpread$G({}, this._additionalMenuElements[index].element), {}, {
|
|
11195
11248
|
items: items,
|
|
11196
11249
|
selected: selected
|
|
11197
11250
|
})
|
|
@@ -11240,7 +11293,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
11240
11293
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
|
11241
11294
|
this.root.navigate('/' + path);
|
|
11242
11295
|
}
|
|
11243
|
-
this._menuElement1 = _objectSpread$
|
|
11296
|
+
this._menuElement1 = _objectSpread$G(_objectSpread$G({}, this.menuElement1), {}, {
|
|
11244
11297
|
selected: this._selectedMenuKeys[0]
|
|
11245
11298
|
});
|
|
11246
11299
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
|
@@ -11483,7 +11536,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
11483
11536
|
return items.filter(function (item) {
|
|
11484
11537
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
|
11485
11538
|
}).map(function (item) {
|
|
11486
|
-
return _objectSpread$
|
|
11539
|
+
return _objectSpread$G(_objectSpread$G({}, item), {}, {
|
|
11487
11540
|
items: item.items ? _this4.filterMenuByPermission(hasPermission, item.items) : undefined,
|
|
11488
11541
|
subMenu: item.subMenu ? _this4.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
|
11489
11542
|
});
|
|
@@ -12744,8 +12797,8 @@ function removeEmpty(data) {
|
|
|
12744
12797
|
return undefined;
|
|
12745
12798
|
}
|
|
12746
12799
|
|
|
12747
|
-
function ownKeys$
|
|
12748
|
-
function _objectSpread$
|
|
12800
|
+
function ownKeys$F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12801
|
+
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12749
12802
|
function _createForOfIteratorHelper$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12750
12803
|
function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
|
|
12751
12804
|
function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -12842,7 +12895,7 @@ function useFormData (_ref) {
|
|
|
12842
12895
|
multipleEditingData = inboundData;
|
|
12843
12896
|
}
|
|
12844
12897
|
return {
|
|
12845
|
-
loadedData: onLoadFields(_objectSpread$
|
|
12898
|
+
loadedData: onLoadFields(_objectSpread$F({}, dt)),
|
|
12846
12899
|
multipleEditingData: multipleEditingData
|
|
12847
12900
|
};
|
|
12848
12901
|
}, [inboundData, selectedItemsIndex]),
|
|
@@ -12879,7 +12932,7 @@ function useFormData (_ref) {
|
|
|
12879
12932
|
setFieldErrors = _useState14[1];
|
|
12880
12933
|
useEffect(function () {
|
|
12881
12934
|
var _loadedData$_id2;
|
|
12882
|
-
setState(_objectSpread$
|
|
12935
|
+
setState(_objectSpread$F(_objectSpread$F({}, state), {}, {
|
|
12883
12936
|
data: loadedData,
|
|
12884
12937
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
|
12885
12938
|
update: !!((_loadedData$_id2 = loadedData === null || loadedData === void 0 ? void 0 : loadedData._id) !== null && _loadedData$_id2 !== void 0 ? _loadedData$_id2 : loadedData === null || loadedData === void 0 ? void 0 : loadedData.ID),
|
|
@@ -12974,7 +13027,7 @@ function useFormData (_ref) {
|
|
|
12974
13027
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
12975
13028
|
while (1) switch (_context2.prev = _context2.next) {
|
|
12976
13029
|
case 0:
|
|
12977
|
-
newData = _objectSpread$
|
|
13030
|
+
newData = _objectSpread$F({}, state.data);
|
|
12978
13031
|
Object.keys(values).forEach(function (k) {
|
|
12979
13032
|
var _values$k$value, _values$k;
|
|
12980
13033
|
return newData[k] = (_values$k$value = (_values$k = values[k]) === null || _values$k === void 0 ? void 0 : _values$k.value) !== null && _values$k$value !== void 0 ? _values$k$value : values[k];
|
|
@@ -12986,12 +13039,12 @@ function useFormData (_ref) {
|
|
|
12986
13039
|
return _context2.abrupt("return", newData);
|
|
12987
13040
|
case 4:
|
|
12988
13041
|
_context2.next = 6;
|
|
12989
|
-
return setDynamicFields(_objectSpread$
|
|
13042
|
+
return setDynamicFields(_objectSpread$F({}, state.data), newData);
|
|
12990
13043
|
case 6:
|
|
12991
13044
|
newData = _context2.sent;
|
|
12992
|
-
newData = onSaveFields(_objectSpread$
|
|
13045
|
+
newData = onSaveFields(_objectSpread$F({}, state.data), newData);
|
|
12993
13046
|
newData = removeEmpty(newData);
|
|
12994
|
-
setState(_objectSpread$
|
|
13047
|
+
setState(_objectSpread$F(_objectSpread$F({}, state), {}, {
|
|
12995
13048
|
loading: true
|
|
12996
13049
|
}));
|
|
12997
13050
|
finalData = state.data;
|
|
@@ -13040,13 +13093,13 @@ function useFormData (_ref) {
|
|
|
13040
13093
|
_context2.next = 38;
|
|
13041
13094
|
break;
|
|
13042
13095
|
}
|
|
13043
|
-
setFieldErrors(_objectSpread$
|
|
13096
|
+
setFieldErrors(_objectSpread$F(_objectSpread$F({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
|
13044
13097
|
return _context2.abrupt("return", undefined);
|
|
13045
13098
|
case 38:
|
|
13046
13099
|
throw _context2.t0;
|
|
13047
13100
|
case 39:
|
|
13048
13101
|
_context2.prev = 39;
|
|
13049
|
-
setState(_objectSpread$
|
|
13102
|
+
setState(_objectSpread$F(_objectSpread$F({}, state), {}, {
|
|
13050
13103
|
data: finalData,
|
|
13051
13104
|
loading: false
|
|
13052
13105
|
}));
|
|
@@ -13076,7 +13129,7 @@ function useFormData (_ref) {
|
|
|
13076
13129
|
}
|
|
13077
13130
|
var updateHiddenRequiredDisabled = function updateHiddenRequiredDisabled(data, changedFields) {
|
|
13078
13131
|
if (!(selectedItems !== null && selectedItems !== void 0 && selectedItems.length)) return;
|
|
13079
|
-
var wholeData = Object.assign(_objectSpread$
|
|
13132
|
+
var wholeData = Object.assign(_objectSpread$F({}, state.data), _objectSpread$F({}, changedFields !== null && changedFields !== void 0 ? changedFields : data));
|
|
13080
13133
|
var newState = getHiddenRequredDisabled(wholeData, selectedItems);
|
|
13081
13134
|
if (JSON.stringify(newState) !== JSON.stringify(hiddenRequiredDisabled)) {
|
|
13082
13135
|
setHiddenRequiredDisabled(newState);
|
|
@@ -13089,12 +13142,12 @@ function useFormData (_ref) {
|
|
|
13089
13142
|
}
|
|
13090
13143
|
};
|
|
13091
13144
|
var onInputChanged = function onInputChanged(id, value, d) {
|
|
13092
|
-
var data = d !== null && d !== void 0 ? d : Object.assign(_objectSpread$
|
|
13145
|
+
var data = d !== null && d !== void 0 ? d : Object.assign(_objectSpread$F({}, state.data), _objectSpread$F({}, state.form.getFieldsValue()));
|
|
13093
13146
|
setFieldInObject(id, data, value);
|
|
13094
|
-
var newFieldErrors = _objectSpread$
|
|
13147
|
+
var newFieldErrors = _objectSpread$F({}, fieldErrors);
|
|
13095
13148
|
delete newFieldErrors[id.toString()];
|
|
13096
13149
|
setFieldErrors(newFieldErrors);
|
|
13097
|
-
setState(_objectSpread$
|
|
13150
|
+
setState(_objectSpread$F(_objectSpread$F({}, state), {}, {
|
|
13098
13151
|
data: data
|
|
13099
13152
|
}));
|
|
13100
13153
|
return data;
|
|
@@ -13120,12 +13173,12 @@ function useFormData (_ref) {
|
|
|
13120
13173
|
var _value$value;
|
|
13121
13174
|
if (((_value$value = value === null || value === void 0 ? void 0 : value.value) !== null && _value$value !== void 0 ? _value$value : value) === val) {
|
|
13122
13175
|
if (configuration.itemSelectorReset) {
|
|
13123
|
-
setState(_objectSpread$
|
|
13176
|
+
setState(_objectSpread$F(_objectSpread$F({}, state), {}, {
|
|
13124
13177
|
data: _defineProperty({}, name, val)
|
|
13125
13178
|
}));
|
|
13126
13179
|
} else {
|
|
13127
|
-
setState(_objectSpread$
|
|
13128
|
-
data: _objectSpread$
|
|
13180
|
+
setState(_objectSpread$F(_objectSpread$F({}, state), {}, {
|
|
13181
|
+
data: _objectSpread$F(_objectSpread$F({}, state.data), {}, _defineProperty({}, name, val))
|
|
13129
13182
|
}));
|
|
13130
13183
|
}
|
|
13131
13184
|
setSelectedItemsIndex(idx);
|
|
@@ -13135,12 +13188,12 @@ function useFormData (_ref) {
|
|
|
13135
13188
|
var val = _ref6.value;
|
|
13136
13189
|
if (value === val) {
|
|
13137
13190
|
if (configuration.itemSelectorReset) {
|
|
13138
|
-
setState(_objectSpread$
|
|
13191
|
+
setState(_objectSpread$F(_objectSpread$F({}, state), {}, {
|
|
13139
13192
|
data: _defineProperty({}, name, val)
|
|
13140
13193
|
}));
|
|
13141
13194
|
} else {
|
|
13142
|
-
setState(_objectSpread$
|
|
13143
|
-
data: _objectSpread$
|
|
13195
|
+
setState(_objectSpread$F(_objectSpread$F({}, state), {}, {
|
|
13196
|
+
data: _objectSpread$F(_objectSpread$F({}, state.data), {}, _defineProperty({}, name, val))
|
|
13144
13197
|
}));
|
|
13145
13198
|
}
|
|
13146
13199
|
setSelectedItemsIndex(idx);
|
|
@@ -13254,7 +13307,7 @@ function useFormData (_ref) {
|
|
|
13254
13307
|
}));
|
|
13255
13308
|
return _setDynamicFields.apply(this, arguments);
|
|
13256
13309
|
}
|
|
13257
|
-
return _objectSpread$
|
|
13310
|
+
return _objectSpread$F(_objectSpread$F({}, state), {}, {
|
|
13258
13311
|
setUsedPreset: setUsedPreset,
|
|
13259
13312
|
configuration: configuration,
|
|
13260
13313
|
changedFields: changedFields,
|
|
@@ -13339,8 +13392,8 @@ function getCombinedValues(data, pattern) {
|
|
|
13339
13392
|
function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13340
13393
|
function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
|
|
13341
13394
|
function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13342
|
-
function ownKeys$
|
|
13343
|
-
function _objectSpread$
|
|
13395
|
+
function ownKeys$E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13396
|
+
function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13344
13397
|
function useSelectData (_ref) {
|
|
13345
13398
|
var data = _ref.data,
|
|
13346
13399
|
onChange = _ref.onChange,
|
|
@@ -13521,7 +13574,7 @@ function useSelectData (_ref) {
|
|
|
13521
13574
|
setFetching(true);
|
|
13522
13575
|
serverSideParams = {
|
|
13523
13576
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.searchField.reduce(function (filter, field) {
|
|
13524
|
-
return _objectSpread$
|
|
13577
|
+
return _objectSpread$E(_objectSpread$E({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
|
13525
13578
|
}, {}) : {
|
|
13526
13579
|
_id: [value, 'contains']
|
|
13527
13580
|
},
|
|
@@ -13727,8 +13780,8 @@ function useSelectData (_ref) {
|
|
|
13727
13780
|
};
|
|
13728
13781
|
}
|
|
13729
13782
|
|
|
13730
|
-
var css_248z$
|
|
13731
|
-
styleInject(css_248z$
|
|
13783
|
+
var css_248z$m = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
|
13784
|
+
styleInject(css_248z$m);
|
|
13732
13785
|
|
|
13733
13786
|
var SelectWrapper$1 = function SelectWrapper(_ref) {
|
|
13734
13787
|
var onChange = _ref.onChange,
|
|
@@ -13809,8 +13862,8 @@ var Select = observer(SelectWrapper$1, {
|
|
|
13809
13862
|
forwardRef: true
|
|
13810
13863
|
});
|
|
13811
13864
|
|
|
13812
|
-
function ownKeys$
|
|
13813
|
-
function _objectSpread$
|
|
13865
|
+
function ownKeys$D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13866
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13814
13867
|
function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13815
13868
|
function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
|
|
13816
13869
|
function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -13860,13 +13913,13 @@ var Presets = function Presets(_ref) {
|
|
|
13860
13913
|
} finally {
|
|
13861
13914
|
_iterator.f();
|
|
13862
13915
|
}
|
|
13863
|
-
var data = _objectSpread$
|
|
13916
|
+
var data = _objectSpread$D(_objectSpread$D({}, form.getFieldsValue(names)), {}, {
|
|
13864
13917
|
newPresetName: newPresetName
|
|
13865
13918
|
});
|
|
13866
13919
|
data.dpi = parseInt(data.dpi);
|
|
13867
13920
|
data.organization = root.getGlobalValue('organizationId');
|
|
13868
13921
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
|
13869
|
-
var dt = _objectSpread$
|
|
13922
|
+
var dt = _objectSpread$D(_objectSpread$D({}, form.getFieldsValue(names)), {}, {
|
|
13870
13923
|
name: newPresetName
|
|
13871
13924
|
});
|
|
13872
13925
|
setPresets({
|
|
@@ -14179,8 +14232,8 @@ var Result = function Result(_ref) {
|
|
|
14179
14232
|
|
|
14180
14233
|
var success = "success-tRJ7j";
|
|
14181
14234
|
var error = "error-MtAFB";
|
|
14182
|
-
var css_248z$
|
|
14183
|
-
styleInject(css_248z$
|
|
14235
|
+
var css_248z$l = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
|
|
14236
|
+
styleInject(css_248z$l);
|
|
14184
14237
|
|
|
14185
14238
|
var azureIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6a%22%20x1%3D%22-1254.397%22%20x2%3D%22-1261.911%22%20y1%3D%22877.268%22%20y2%3D%22899.466%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23114a8b%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230669bc%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6a%29%22%20d%3D%22M17.634%2C6h11.305L17.203%2C40.773c-0.247%2C0.733-0.934%2C1.226-1.708%2C1.226H6.697%20c-0.994%2C0-1.8-0.806-1.8-1.8c0-0.196%2C0.032-0.39%2C0.094-0.576L15.926%2C7.227C16.173%2C6.494%2C16.86%2C6%2C17.634%2C6L17.634%2C6z%22%2F%3E%20%3Cpath%20fill%3D%22%230078d4%22%20d%3D%22M34.062%2C29.324H16.135c-0.458-0.001-0.83%2C0.371-0.831%2C0.829c0%2C0.231%2C0.095%2C0.451%2C0.264%2C0.608%20l11.52%2C10.752C27.423%2C41.826%2C27.865%2C42%2C28.324%2C42h10.151L34.062%2C29.324z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6b%22%20x1%3D%22-1252.05%22%20x2%3D%22-1253.788%22%20y1%3D%22887.612%22%20y2%3D%22888.2%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-opacity%3D%22.3%22%2F%3E%20%20%3Cstop%20offset%3D%22.071%22%20stop-opacity%3D%22.2%22%2F%3E%20%20%3Cstop%20offset%3D%22.321%22%20stop-opacity%3D%22.1%22%2F%3E%20%20%3Cstop%20offset%3D%22.623%22%20stop-opacity%3D%22.05%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6b%29%22%20d%3D%22M17.634%2C6c-0.783-0.003-1.476%2C0.504-1.712%2C1.25L5.005%2C39.595%20c-0.335%2C0.934%2C0.151%2C1.964%2C1.085%2C2.299C6.286%2C41.964%2C6.493%2C42%2C6.702%2C42h9.026c0.684-0.122%2C1.25-0.603%2C1.481-1.259l2.177-6.416%20l7.776%2C7.253c0.326%2C0.27%2C0.735%2C0.419%2C1.158%2C0.422h10.114l-4.436-12.676l-12.931%2C0.003L28.98%2C6H17.634z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6c%22%20x1%3D%22-1252.952%22%20x2%3D%22-1244.704%22%20y1%3D%22876.6%22%20y2%3D%22898.575%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233ccbf4%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%232892df%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6c%29%22%20d%3D%22M32.074%2C7.225C31.827%2C6.493%2C31.141%2C6%2C30.368%2C6h-12.6c0.772%2C0%2C1.459%2C0.493%2C1.705%2C1.224%20l10.935%2C32.399c0.318%2C0.942-0.188%2C1.963-1.13%2C2.281C29.093%2C41.968%2C28.899%2C42%2C28.703%2C42h12.6c0.994%2C0%2C1.8-0.806%2C1.8-1.801%20c0-0.196-0.032-0.39-0.095-0.575L32.074%2C7.225z%22%2F%3E%3C%2Fsvg%3E";
|
|
14186
14239
|
|
|
@@ -14244,13 +14297,13 @@ var CustomButton$1 = observer(CustomButton, {
|
|
|
14244
14297
|
forwardRef: true
|
|
14245
14298
|
});
|
|
14246
14299
|
|
|
14247
|
-
var wrapper$
|
|
14300
|
+
var wrapper$3 = "wrapper-GVe2h";
|
|
14248
14301
|
var buttonGroup = "button-group-GYt-T";
|
|
14249
|
-
var css_248z$
|
|
14250
|
-
styleInject(css_248z$
|
|
14302
|
+
var css_248z$k = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
|
|
14303
|
+
styleInject(css_248z$k);
|
|
14251
14304
|
|
|
14252
|
-
function ownKeys$
|
|
14253
|
-
function _objectSpread$
|
|
14305
|
+
function ownKeys$C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14306
|
+
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14254
14307
|
var SubTitle = function SubTitle(_ref) {
|
|
14255
14308
|
var _item$orientation, _item$buttonIds;
|
|
14256
14309
|
var item = _ref.item,
|
|
@@ -14259,9 +14312,9 @@ var SubTitle = function SubTitle(_ref) {
|
|
|
14259
14312
|
t = _useTranslation.t;
|
|
14260
14313
|
return /*#__PURE__*/jsx(Divider, {
|
|
14261
14314
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
|
14262
|
-
style: _objectSpread$
|
|
14315
|
+
style: _objectSpread$C({}, item.style),
|
|
14263
14316
|
children: /*#__PURE__*/jsxs("div", {
|
|
14264
|
-
className: wrapper$
|
|
14317
|
+
className: wrapper$3,
|
|
14265
14318
|
children: [Array.isArray(item.name) ? t(item.name[0].toString()) : t(item.name), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
|
|
14266
14319
|
return /*#__PURE__*/jsx("div", {
|
|
14267
14320
|
className: buttonGroup,
|
|
@@ -14936,8 +14989,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
|
14936
14989
|
}]);
|
|
14937
14990
|
}(_default$d);
|
|
14938
14991
|
|
|
14939
|
-
function ownKeys$
|
|
14940
|
-
function _objectSpread$
|
|
14992
|
+
function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14993
|
+
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14941
14994
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
|
14942
14995
|
function useSelectClientRelationCatalog (_ref) {
|
|
14943
14996
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
|
@@ -15106,7 +15159,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
|
15106
15159
|
case 22:
|
|
15107
15160
|
supplierData = _context2.sent;
|
|
15108
15161
|
case 23:
|
|
15109
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
|
15162
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$B(_objectSpread$B({}, _selectedSupplier), {}, {
|
|
15110
15163
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
|
15111
15164
|
}), supplierData);
|
|
15112
15165
|
if (catalogId && catalogList.find(function (c) {
|
|
@@ -15172,8 +15225,8 @@ var customSelect = "custom-select-ESUJX";
|
|
|
15172
15225
|
var customSelectOption = "custom-select-option-dUA7N";
|
|
15173
15226
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
|
15174
15227
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
|
15175
|
-
var css_248z$
|
|
15176
|
-
styleInject(css_248z$
|
|
15228
|
+
var css_248z$j = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N {\n margin: 0px 12px;\n padding: 5px 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 100%;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
|
|
15229
|
+
styleInject(css_248z$j);
|
|
15177
15230
|
|
|
15178
15231
|
var Selector = function Selector(_ref) {
|
|
15179
15232
|
var items = _ref.items,
|
|
@@ -15452,8 +15505,8 @@ function parseReturnData(options, selectMapping) {
|
|
|
15452
15505
|
}
|
|
15453
15506
|
|
|
15454
15507
|
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options"];
|
|
15455
|
-
function ownKeys$
|
|
15456
|
-
function _objectSpread$
|
|
15508
|
+
function ownKeys$A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15509
|
+
function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15457
15510
|
var SelectWrapper = function SelectWrapper(_ref) {
|
|
15458
15511
|
var apiInterface = _ref.apiInterface,
|
|
15459
15512
|
selectMapping = _ref.selectMapping,
|
|
@@ -15472,7 +15525,7 @@ var SelectWrapper = function SelectWrapper(_ref) {
|
|
|
15472
15525
|
type: 'SelectSimple',
|
|
15473
15526
|
options: options
|
|
15474
15527
|
});
|
|
15475
|
-
return /*#__PURE__*/jsx(Select$1, _objectSpread$
|
|
15528
|
+
return /*#__PURE__*/jsx(Select$1, _objectSpread$A(_objectSpread$A({}, selectProps), {}, {
|
|
15476
15529
|
showSearch: search,
|
|
15477
15530
|
loading: state.loading,
|
|
15478
15531
|
options: state.options,
|
|
@@ -15518,8 +15571,8 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
15518
15571
|
function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
15519
15572
|
function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
|
|
15520
15573
|
function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15521
|
-
function ownKeys$
|
|
15522
|
-
function _objectSpread$
|
|
15574
|
+
function ownKeys$z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15575
|
+
function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15523
15576
|
var LOG$7 = getLogger('Backoffice', 'Form');
|
|
15524
15577
|
var FormWrapper$1 = function FormWrapper(_ref, ref) {
|
|
15525
15578
|
var _state$selectedItems2;
|
|
@@ -15635,7 +15688,7 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
|
|
|
15635
15688
|
};
|
|
15636
15689
|
}();
|
|
15637
15690
|
var updateFormData = function updateFormData(data) {
|
|
15638
|
-
form.setFieldsValue(_objectSpread$
|
|
15691
|
+
form.setFieldsValue(_objectSpread$z(_objectSpread$z({}, state.data), data));
|
|
15639
15692
|
};
|
|
15640
15693
|
var onErrorInternal = function onErrorInternal(err, errorText) {
|
|
15641
15694
|
if (err instanceof DivaError && err.name) {
|
|
@@ -15726,7 +15779,7 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
|
|
|
15726
15779
|
}
|
|
15727
15780
|
}, state.selectedItemsIndex);
|
|
15728
15781
|
case 'selectSimple':
|
|
15729
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
15782
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$z(_objectSpread$z({}, item), {}, {
|
|
15730
15783
|
disabled: disabled,
|
|
15731
15784
|
onChange: function onChange(value) {
|
|
15732
15785
|
_onChange(name, value);
|
|
@@ -15896,7 +15949,7 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
|
|
|
15896
15949
|
value: item.value,
|
|
15897
15950
|
options: item.options.map(function (o) {
|
|
15898
15951
|
var _o$disabled;
|
|
15899
|
-
return _objectSpread$
|
|
15952
|
+
return _objectSpread$z(_objectSpread$z({}, o), {}, {
|
|
15900
15953
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, data)
|
|
15901
15954
|
});
|
|
15902
15955
|
}),
|
|
@@ -16053,7 +16106,7 @@ var Form = observer(FormWrapper$1, {
|
|
|
16053
16106
|
function DisplayInput(props) {
|
|
16054
16107
|
var _useTranslation2 = useTranslation$1(),
|
|
16055
16108
|
t = _useTranslation2.t;
|
|
16056
|
-
return /*#__PURE__*/jsx(Input, _objectSpread$
|
|
16109
|
+
return /*#__PURE__*/jsx(Input, _objectSpread$z(_objectSpread$z({}, props), {}, {
|
|
16057
16110
|
disabled: true,
|
|
16058
16111
|
value: t(props.translationPrefix + '.' + props.value)
|
|
16059
16112
|
}));
|
|
@@ -16071,8 +16124,8 @@ function isReadonly(item, data) {
|
|
|
16071
16124
|
return false;
|
|
16072
16125
|
}
|
|
16073
16126
|
|
|
16074
|
-
function ownKeys$
|
|
16075
|
-
function _objectSpread$
|
|
16127
|
+
function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16128
|
+
function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16076
16129
|
function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
16077
16130
|
function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
|
|
16078
16131
|
function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -16274,7 +16327,7 @@ function useRoleSelectorData (_ref) {
|
|
|
16274
16327
|
roles.forEach(function (r) {
|
|
16275
16328
|
//check if after the changes the role is selected
|
|
16276
16329
|
if (value.includes(r._id)) {
|
|
16277
|
-
var newValue = _objectSpread$
|
|
16330
|
+
var newValue = _objectSpread$y(_objectSpread$y({}, r), {}, {
|
|
16278
16331
|
selected: true
|
|
16279
16332
|
});
|
|
16280
16333
|
//add it to the new list as selected role
|
|
@@ -16310,7 +16363,7 @@ function useRoleSelectorData (_ref) {
|
|
|
16310
16363
|
}
|
|
16311
16364
|
}
|
|
16312
16365
|
} else {
|
|
16313
|
-
var _newValue = _objectSpread$
|
|
16366
|
+
var _newValue = _objectSpread$y(_objectSpread$y({}, r), {}, {
|
|
16314
16367
|
selected: false
|
|
16315
16368
|
});
|
|
16316
16369
|
//add it to the new list as unselected role
|
|
@@ -16514,7 +16567,7 @@ function _updateRoles() {
|
|
|
16514
16567
|
userRole = userRoles.find(function (r) {
|
|
16515
16568
|
return r._id == role._id;
|
|
16516
16569
|
});
|
|
16517
|
-
newRole = _objectSpread$
|
|
16570
|
+
newRole = _objectSpread$y({}, role);
|
|
16518
16571
|
if (userRole) {
|
|
16519
16572
|
newRole.selected = true;
|
|
16520
16573
|
newRole.inherited = userRole.inherited;
|
|
@@ -16734,7 +16787,7 @@ function _fetchOptions() {
|
|
|
16734
16787
|
case 4:
|
|
16735
16788
|
result = _context11.sent;
|
|
16736
16789
|
options = result.data.map(function (d) {
|
|
16737
|
-
return _objectSpread$
|
|
16790
|
+
return _objectSpread$y(_objectSpread$y({}, d), {}, {
|
|
16738
16791
|
label: d.displayName,
|
|
16739
16792
|
value: d._id,
|
|
16740
16793
|
isLeaf: !d.hasChildren
|
|
@@ -16828,18 +16881,18 @@ var RoleSelector$1 = observer(RoleSelector, {
|
|
|
16828
16881
|
});
|
|
16829
16882
|
|
|
16830
16883
|
var permissionButton = "permission-Button-XctsZ";
|
|
16831
|
-
var select = "select-lzft-";
|
|
16884
|
+
var select$1 = "select-lzft-";
|
|
16832
16885
|
var loadingOption = "loadingOption-qCkRw";
|
|
16833
16886
|
var scroller = "scroller-lrdk9";
|
|
16834
16887
|
var skeleton = "skeleton--xCI0";
|
|
16835
16888
|
var filterField = "filterField-1kU1O";
|
|
16836
16889
|
var parentScroll = "parent-scroll-GmaL9";
|
|
16837
16890
|
var parent = "parent-NZJ3S";
|
|
16838
|
-
var css_248z$
|
|
16839
|
-
styleInject(css_248z$
|
|
16891
|
+
var css_248z$i = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n height: 100%;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: auto;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.parent-scroll-GmaL9 .ant-spin-container {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component__outerdiv {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component {\n height: 100% !important;\n}\n";
|
|
16892
|
+
styleInject(css_248z$i);
|
|
16840
16893
|
|
|
16841
|
-
function ownKeys$
|
|
16842
|
-
function _objectSpread$
|
|
16894
|
+
function ownKeys$x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16895
|
+
function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16843
16896
|
function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
16844
16897
|
function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
|
|
16845
16898
|
function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -16899,8 +16952,8 @@ function _generateCSV() {
|
|
|
16899
16952
|
break;
|
|
16900
16953
|
}
|
|
16901
16954
|
_context2.next = 21;
|
|
16902
|
-
return generateCSV(_objectSpread$
|
|
16903
|
-
mappingData: _objectSpread$
|
|
16955
|
+
return generateCSV(_objectSpread$x(_objectSpread$x({}, exportParams.children), {}, {
|
|
16956
|
+
mappingData: _objectSpread$x(_objectSpread$x({}, parent), {}, {
|
|
16904
16957
|
parentId: exportParams.mappingData._id
|
|
16905
16958
|
})
|
|
16906
16959
|
}), csvData);
|
|
@@ -16962,8 +17015,8 @@ var generateCSVData = /*#__PURE__*/function () {
|
|
|
16962
17015
|
};
|
|
16963
17016
|
}();
|
|
16964
17017
|
|
|
16965
|
-
function ownKeys$
|
|
16966
|
-
function _objectSpread$
|
|
17018
|
+
function ownKeys$w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17019
|
+
function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16967
17020
|
function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
16968
17021
|
function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
|
|
16969
17022
|
function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -17382,7 +17435,7 @@ function useRelationSelectorData (_ref) {
|
|
|
17382
17435
|
var activeItem = _step.value;
|
|
17383
17436
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
|
17384
17437
|
addedObjects.push(addedData);
|
|
17385
|
-
getSplittedItems(_objectSpread$
|
|
17438
|
+
getSplittedItems(_objectSpread$w(_objectSpread$w({}, activeItem), {}, {
|
|
17386
17439
|
userId: data === null || data === void 0 ? void 0 : data._id
|
|
17387
17440
|
}));
|
|
17388
17441
|
ret = true;
|
|
@@ -17587,8 +17640,8 @@ function useRelationSelectorData (_ref) {
|
|
|
17587
17640
|
};
|
|
17588
17641
|
}
|
|
17589
17642
|
|
|
17590
|
-
function ownKeys$
|
|
17591
|
-
function _objectSpread$
|
|
17643
|
+
function ownKeys$v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17644
|
+
function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17592
17645
|
function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
17593
17646
|
function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0; } }
|
|
17594
17647
|
function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -17721,7 +17774,7 @@ function ActionButton (_ref) {
|
|
|
17721
17774
|
_iterator2.f();
|
|
17722
17775
|
}
|
|
17723
17776
|
_context.next = 19;
|
|
17724
|
-
return apiInterface.update(_objectSpread$
|
|
17777
|
+
return apiInterface.update(_objectSpread$v(_objectSpread$v({}, data), {}, {
|
|
17725
17778
|
state: toSwitch
|
|
17726
17779
|
}), data);
|
|
17727
17780
|
case 19:
|
|
@@ -17878,14 +17931,14 @@ function _simpleChangeValue() {
|
|
|
17878
17931
|
break;
|
|
17879
17932
|
}
|
|
17880
17933
|
for (i = 0; i < action.newValues.length; i++) {
|
|
17881
|
-
fieldsToUpdate = _objectSpread$
|
|
17934
|
+
fieldsToUpdate = _objectSpread$v(_objectSpread$v({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
|
17882
17935
|
}
|
|
17883
17936
|
if (!apiInterface.canUpdate) {
|
|
17884
17937
|
_context2.next = 9;
|
|
17885
17938
|
break;
|
|
17886
17939
|
}
|
|
17887
17940
|
_context2.next = 7;
|
|
17888
|
-
return apiInterface.update(_objectSpread$
|
|
17941
|
+
return apiInterface.update(_objectSpread$v({}, fieldsToUpdate), data);
|
|
17889
17942
|
case 7:
|
|
17890
17943
|
response = _context2.sent;
|
|
17891
17944
|
return _context2.abrupt("return", response);
|
|
@@ -17900,7 +17953,7 @@ function _simpleChangeValue() {
|
|
|
17900
17953
|
return _simpleChangeValue.apply(this, arguments);
|
|
17901
17954
|
}
|
|
17902
17955
|
function A(props) {
|
|
17903
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
|
17956
|
+
return /*#__PURE__*/jsx("a", _objectSpread$v({}, props));
|
|
17904
17957
|
}
|
|
17905
17958
|
|
|
17906
17959
|
function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -18035,11 +18088,11 @@ var newscroller = "newscroller-INKeD";
|
|
|
18035
18088
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
|
18036
18089
|
var itemTitle = "item-title--BTvC";
|
|
18037
18090
|
var itemDesc = "item-desc-DBiiF";
|
|
18038
|
-
var css_248z$
|
|
18039
|
-
styleInject(css_248z$
|
|
18091
|
+
var css_248z$h = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
|
|
18092
|
+
styleInject(css_248z$h);
|
|
18040
18093
|
|
|
18041
|
-
function ownKeys$
|
|
18042
|
-
function _objectSpread$
|
|
18094
|
+
function ownKeys$u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18095
|
+
function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18043
18096
|
var DropDown = function DropDown(_ref) {
|
|
18044
18097
|
var _curItem$data$length;
|
|
18045
18098
|
var split = _ref.split,
|
|
@@ -18071,7 +18124,7 @@ var DropDown = function DropDown(_ref) {
|
|
|
18071
18124
|
});
|
|
18072
18125
|
return /*#__PURE__*/jsx(Collapse, {
|
|
18073
18126
|
onChange: function onChange() {
|
|
18074
|
-
return getSplittedItems(_objectSpread$
|
|
18127
|
+
return getSplittedItems(_objectSpread$u(_objectSpread$u({}, item.item), {}, {
|
|
18075
18128
|
parentId: item.parentId
|
|
18076
18129
|
}), 0);
|
|
18077
18130
|
},
|
|
@@ -18176,7 +18229,7 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
|
18176
18229
|
}, []);
|
|
18177
18230
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
18178
18231
|
children: [relationState.configuration.search != undefined && (((_relationState$config = relationState.configuration.filter) === null || _relationState$config === void 0 ? void 0 : _relationState$config.type) === 'default' ? /*#__PURE__*/jsxs(Select$1, {
|
|
18179
|
-
className: select,
|
|
18232
|
+
className: select$1,
|
|
18180
18233
|
showSearch: true,
|
|
18181
18234
|
suffixIcon: /*#__PURE__*/jsx(PlusSquareOutlined, {}),
|
|
18182
18235
|
placeholder: (_relationState$config2 = (_relationState$config3 = relationState.configuration.filter) === null || _relationState$config3 === void 0 ? void 0 : _relationState$config3.searchPlaceholder) !== null && _relationState$config2 !== void 0 ? _relationState$config2 : t('backoffice.relationselector.add'),
|
|
@@ -18331,8 +18384,8 @@ var RelationSelector$1 = observer(RelationSelector, {
|
|
|
18331
18384
|
forwardRef: true
|
|
18332
18385
|
});
|
|
18333
18386
|
|
|
18334
|
-
function ownKeys$
|
|
18335
|
-
function _objectSpread$
|
|
18387
|
+
function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18388
|
+
function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18336
18389
|
function useFormListData (_ref) {
|
|
18337
18390
|
var _configuration$defaul;
|
|
18338
18391
|
var id = _ref.id,
|
|
@@ -18412,7 +18465,7 @@ function useFormListData (_ref) {
|
|
|
18412
18465
|
if (updated.length == state.length) {
|
|
18413
18466
|
newState = state.map(function (s, i) {
|
|
18414
18467
|
var _updated$find;
|
|
18415
|
-
return _objectSpread$
|
|
18468
|
+
return _objectSpread$t(_objectSpread$t({}, s), {}, {
|
|
18416
18469
|
data: (_updated$find = updated.find(function (u) {
|
|
18417
18470
|
return u.index == i;
|
|
18418
18471
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
|
@@ -18551,8 +18604,8 @@ var FormList$1 = observer(FormList, {
|
|
|
18551
18604
|
forwardRef: true
|
|
18552
18605
|
});
|
|
18553
18606
|
|
|
18554
|
-
function ownKeys$
|
|
18555
|
-
function _objectSpread$
|
|
18607
|
+
function ownKeys$s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18608
|
+
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18556
18609
|
var LOG$6 = getLogger('Backoffice', 'SelectOrCreate');
|
|
18557
18610
|
function useSelectOrCreateData (_ref) {
|
|
18558
18611
|
var id = _ref.id,
|
|
@@ -18649,7 +18702,7 @@ function useSelectOrCreateData (_ref) {
|
|
|
18649
18702
|
_context.next = 7;
|
|
18650
18703
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
|
18651
18704
|
filters: (_configuration$select3 = configuration.selectMapping) !== null && _configuration$select3 !== void 0 && _configuration$select3.searchField ? (_configuration$select4 = configuration.selectMapping) === null || _configuration$select4 === void 0 ? void 0 : _configuration$select4.searchField.reduce(function (filter, field) {
|
|
18652
|
-
return _objectSpread$
|
|
18705
|
+
return _objectSpread$s(_objectSpread$s({}, filter), {}, _defineProperty({}, field.field, [value, field.filter, true]));
|
|
18653
18706
|
}, {}) : {
|
|
18654
18707
|
_id: [value, 'contains']
|
|
18655
18708
|
},
|
|
@@ -18962,8 +19015,8 @@ var Multiple = function Multiple(_ref3) {
|
|
|
18962
19015
|
});
|
|
18963
19016
|
};
|
|
18964
19017
|
|
|
18965
|
-
function ownKeys$
|
|
18966
|
-
function _objectSpread$
|
|
19018
|
+
function ownKeys$r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19019
|
+
function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18967
19020
|
function useListData (_ref) {
|
|
18968
19021
|
var id = _ref.id,
|
|
18969
19022
|
data = _ref.data;
|
|
@@ -19006,7 +19059,7 @@ function useListData (_ref) {
|
|
|
19006
19059
|
case 3:
|
|
19007
19060
|
result = _context.sent;
|
|
19008
19061
|
setListData(result.data.map(parseField));
|
|
19009
|
-
initData = _objectSpread$
|
|
19062
|
+
initData = _objectSpread$r({}, data);
|
|
19010
19063
|
setUpdatedObject(initData);
|
|
19011
19064
|
setLoading(false);
|
|
19012
19065
|
case 8:
|
|
@@ -19047,7 +19100,7 @@ function useListData (_ref) {
|
|
|
19047
19100
|
});
|
|
19048
19101
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
|
19049
19102
|
var parsedField = field.field.split('.');
|
|
19050
|
-
item.itemUpdate = _objectSpread$
|
|
19103
|
+
item.itemUpdate = _objectSpread$r(_objectSpread$r({}, field), {}, {
|
|
19051
19104
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
|
19052
19105
|
});
|
|
19053
19106
|
});
|
|
@@ -19078,16 +19131,16 @@ function useListData (_ref) {
|
|
|
19078
19131
|
console.error('field with more than 2 parts not allowed');
|
|
19079
19132
|
return;
|
|
19080
19133
|
}
|
|
19081
|
-
var updObj = _objectSpread$
|
|
19134
|
+
var updObj = _objectSpread$r({}, updatedObject);
|
|
19082
19135
|
if (fields.length === 1) {
|
|
19083
|
-
updObj = _objectSpread$
|
|
19136
|
+
updObj = _objectSpread$r(_objectSpread$r({}, updObj), {}, _defineProperty({}, fields[0], value));
|
|
19084
19137
|
} else if (fields.length === 2) {
|
|
19085
19138
|
var updatedField = updObj[fields[0]].find(function (v) {
|
|
19086
19139
|
return v.id === item.id.trim();
|
|
19087
19140
|
});
|
|
19088
19141
|
if (updatedField) {
|
|
19089
|
-
var updatedFieldCopy = _objectSpread$
|
|
19090
|
-
updObj = _objectSpread$
|
|
19142
|
+
var updatedFieldCopy = _objectSpread$r(_objectSpread$r({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
|
19143
|
+
updObj = _objectSpread$r(_objectSpread$r({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
|
19091
19144
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
|
19092
19145
|
})));
|
|
19093
19146
|
}
|
|
@@ -19096,11 +19149,11 @@ function useListData (_ref) {
|
|
|
19096
19149
|
var acItems = listData;
|
|
19097
19150
|
for (var i = 0; i < acItems.length; i++) {
|
|
19098
19151
|
if (i == index) {
|
|
19099
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
19152
|
+
acItems[i].itemUpdate = _objectSpread$r(_objectSpread$r({}, acItems[i].itemUpdate), {}, {
|
|
19100
19153
|
value: value
|
|
19101
19154
|
});
|
|
19102
19155
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
|
19103
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
19156
|
+
acItems[i].itemUpdate = _objectSpread$r(_objectSpread$r({}, acItems[i].itemUpdate), {}, {
|
|
19104
19157
|
value: !value
|
|
19105
19158
|
});
|
|
19106
19159
|
}
|
|
@@ -19456,8 +19509,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
|
19456
19509
|
var preview = "preview-9wK81";
|
|
19457
19510
|
var previewButton = "preview-button-vupuG";
|
|
19458
19511
|
var editButton = "edit-button-m6r3M";
|
|
19459
|
-
var css_248z$
|
|
19460
|
-
styleInject(css_248z$
|
|
19512
|
+
var css_248z$g = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
|
|
19513
|
+
styleInject(css_248z$g);
|
|
19461
19514
|
|
|
19462
19515
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
|
19463
19516
|
var id = _ref.id,
|
|
@@ -19618,8 +19671,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
|
19618
19671
|
};
|
|
19619
19672
|
}
|
|
19620
19673
|
|
|
19621
|
-
function ownKeys$
|
|
19622
|
-
function _objectSpread$
|
|
19674
|
+
function ownKeys$q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19675
|
+
function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19623
19676
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
|
19624
19677
|
var id = _ref.id,
|
|
19625
19678
|
data = _ref.data,
|
|
@@ -19727,12 +19780,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
19727
19780
|
}
|
|
19728
19781
|
function onEnter(e) {
|
|
19729
19782
|
if (e.key != 'Enter') return;
|
|
19730
|
-
setCrop(_objectSpread$
|
|
19783
|
+
setCrop(_objectSpread$q(_objectSpread$q({}, crop), {}, {
|
|
19731
19784
|
unit: 'px',
|
|
19732
19785
|
width: Number(widthInputElement.current.value),
|
|
19733
19786
|
height: Number(heightInputElement.current.value)
|
|
19734
19787
|
}));
|
|
19735
|
-
setCompletedCrop(_objectSpread$
|
|
19788
|
+
setCompletedCrop(_objectSpread$q(_objectSpread$q({}, crop), {}, {
|
|
19736
19789
|
unit: 'px',
|
|
19737
19790
|
width: Number(widthInputElement.current.value),
|
|
19738
19791
|
height: Number(heightInputElement.current.value)
|
|
@@ -19812,8 +19865,8 @@ var ImageCropper$1 = observer(ImageCropper, {
|
|
|
19812
19865
|
function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
19813
19866
|
function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
|
|
19814
19867
|
function _arrayLikeToArray$9(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
19815
|
-
function ownKeys$
|
|
19816
|
-
function _objectSpread$
|
|
19868
|
+
function ownKeys$p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19869
|
+
function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19817
19870
|
function useDescriptions (_ref) {
|
|
19818
19871
|
var id = _ref.id;
|
|
19819
19872
|
var root = useStore();
|
|
@@ -19906,7 +19959,7 @@ function _getDisplayData() {
|
|
|
19906
19959
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
19907
19960
|
while (1) switch (_context4.prev = _context4.next) {
|
|
19908
19961
|
case 0:
|
|
19909
|
-
displayData = _objectSpread$
|
|
19962
|
+
displayData = _objectSpread$p({}, data);
|
|
19910
19963
|
_iterator = _createForOfIteratorHelper$9(items);
|
|
19911
19964
|
_context4.prev = 2;
|
|
19912
19965
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
@@ -20182,8 +20235,8 @@ var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
|
20182
20235
|
};
|
|
20183
20236
|
var FileUploadBeta = observer(FileUploadWrapper);
|
|
20184
20237
|
|
|
20185
|
-
function ownKeys$
|
|
20186
|
-
function _objectSpread$
|
|
20238
|
+
function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20239
|
+
function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20187
20240
|
function useGridData (_ref) {
|
|
20188
20241
|
var id = _ref.id,
|
|
20189
20242
|
data = _ref.data;
|
|
@@ -20226,11 +20279,11 @@ function useGridData (_ref) {
|
|
|
20226
20279
|
function reducer(state, action) {
|
|
20227
20280
|
switch (action.type) {
|
|
20228
20281
|
case 'update':
|
|
20229
|
-
return _objectSpread$
|
|
20282
|
+
return _objectSpread$o(_objectSpread$o({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$o(_objectSpread$o({}, action.data), {}, {
|
|
20230
20283
|
buffer: Buffer.from(action.data.buffer)
|
|
20231
20284
|
})));
|
|
20232
20285
|
case 'delete':
|
|
20233
|
-
var newState = _objectSpread$
|
|
20286
|
+
var newState = _objectSpread$o({}, state);
|
|
20234
20287
|
delete newState[action.data.divaNr];
|
|
20235
20288
|
return newState;
|
|
20236
20289
|
default:
|
|
@@ -20240,19 +20293,19 @@ function reducer(state, action) {
|
|
|
20240
20293
|
|
|
20241
20294
|
var grid = "grid-sGemi";
|
|
20242
20295
|
var textWrapper = "text-wrapper-xsPXE";
|
|
20243
|
-
var css_248z$
|
|
20244
|
-
styleInject(css_248z$
|
|
20296
|
+
var css_248z$f = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
|
|
20297
|
+
styleInject(css_248z$f);
|
|
20245
20298
|
|
|
20246
|
-
var wrapper = "wrapper-p-gR3";
|
|
20247
|
-
var container$
|
|
20248
|
-
var css_248z$
|
|
20249
|
-
styleInject(css_248z$
|
|
20299
|
+
var wrapper$2 = "wrapper-p-gR3";
|
|
20300
|
+
var container$2 = "container-DoZqe";
|
|
20301
|
+
var css_248z$e = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
|
20302
|
+
styleInject(css_248z$e);
|
|
20250
20303
|
|
|
20251
20304
|
var ToolTipInfo = function ToolTipInfo(props) {
|
|
20252
20305
|
var _useTranslation = useTranslation$1(),
|
|
20253
20306
|
t = _useTranslation.t;
|
|
20254
20307
|
return /*#__PURE__*/jsx("div", {
|
|
20255
|
-
className: wrapper,
|
|
20308
|
+
className: wrapper$2,
|
|
20256
20309
|
children: /*#__PURE__*/jsx(Card, {
|
|
20257
20310
|
title: t('backoffice.tooltipinfo.useroverview'),
|
|
20258
20311
|
bodyStyle: {
|
|
@@ -20263,7 +20316,7 @@ var ToolTipInfo = function ToolTipInfo(props) {
|
|
|
20263
20316
|
width: 230
|
|
20264
20317
|
},
|
|
20265
20318
|
children: /*#__PURE__*/jsx("div", {
|
|
20266
|
-
className: container$
|
|
20319
|
+
className: container$2
|
|
20267
20320
|
})
|
|
20268
20321
|
})
|
|
20269
20322
|
});
|
|
@@ -20315,8 +20368,8 @@ var Grid = function Grid(_ref) {
|
|
|
20315
20368
|
});
|
|
20316
20369
|
};
|
|
20317
20370
|
|
|
20318
|
-
function ownKeys$
|
|
20319
|
-
function _objectSpread$
|
|
20371
|
+
function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20372
|
+
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20320
20373
|
var useMediaUpload = function useMediaUpload(_ref) {
|
|
20321
20374
|
var id = _ref.id;
|
|
20322
20375
|
var root = useStore();
|
|
@@ -20435,7 +20488,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
20435
20488
|
onRemove: onRemove,
|
|
20436
20489
|
customRequest: customRequest,
|
|
20437
20490
|
fileList: fileList.map(function (f) {
|
|
20438
|
-
return _objectSpread$
|
|
20491
|
+
return _objectSpread$n(_objectSpread$n({}, f), {}, {
|
|
20439
20492
|
url: f.url
|
|
20440
20493
|
});
|
|
20441
20494
|
}),
|
|
@@ -20447,8 +20500,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
20447
20500
|
var small = "small-NY1-k";
|
|
20448
20501
|
var medium = "medium---QcO";
|
|
20449
20502
|
var big = "big--E39S";
|
|
20450
|
-
var css_248z$
|
|
20451
|
-
styleInject(css_248z$
|
|
20503
|
+
var css_248z$d = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 85%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
|
|
20504
|
+
styleInject(css_248z$d);
|
|
20452
20505
|
|
|
20453
20506
|
var MediaUpload = observer(function (_ref) {
|
|
20454
20507
|
var id = _ref.id;
|
|
@@ -20507,8 +20560,8 @@ function getExpandedRowRenderer (config, root) {
|
|
|
20507
20560
|
var editableRow = "editable-row-9BEHi";
|
|
20508
20561
|
var checkbox = "checkbox-H7R-w";
|
|
20509
20562
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
|
20510
|
-
var css_248z$
|
|
20511
|
-
styleInject(css_248z$
|
|
20563
|
+
var css_248z$c = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n";
|
|
20564
|
+
styleInject(css_248z$c);
|
|
20512
20565
|
|
|
20513
20566
|
function BooleanCell (_ref) {
|
|
20514
20567
|
var children = _ref.children,
|
|
@@ -21149,8 +21202,8 @@ function IconCell (_ref) {
|
|
|
21149
21202
|
|
|
21150
21203
|
var _excluded$1 = ["index"],
|
|
21151
21204
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
|
21152
|
-
function ownKeys$
|
|
21153
|
-
function _objectSpread$
|
|
21205
|
+
function ownKeys$m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21206
|
+
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21154
21207
|
var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
|
21155
21208
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
|
21156
21209
|
var CustomRow = function CustomRow(_ref) {
|
|
@@ -21164,7 +21217,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
|
21164
21217
|
component: false,
|
|
21165
21218
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
|
21166
21219
|
value: form,
|
|
21167
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
|
21220
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$m({}, props))
|
|
21168
21221
|
})
|
|
21169
21222
|
});
|
|
21170
21223
|
};
|
|
@@ -21217,7 +21270,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
21217
21270
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
|
21218
21271
|
longDescriptionType = 'text';
|
|
21219
21272
|
}
|
|
21220
|
-
var modifiedColumn = _objectSpread$
|
|
21273
|
+
var modifiedColumn = _objectSpread$m(_objectSpread$m({}, column), {}, {
|
|
21221
21274
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
|
21222
21275
|
});
|
|
21223
21276
|
if (column) {
|
|
@@ -21230,34 +21283,34 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
21230
21283
|
};
|
|
21231
21284
|
switch (modifiedColumn.type) {
|
|
21232
21285
|
case 'boolean':
|
|
21233
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
|
21286
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$m({}, cellProps));
|
|
21234
21287
|
break;
|
|
21235
21288
|
case 'text':
|
|
21236
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
|
21289
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$m({}, cellProps));
|
|
21237
21290
|
break;
|
|
21238
21291
|
case 'select':
|
|
21239
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
|
21292
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$m({}, cellProps));
|
|
21240
21293
|
case 'media':
|
|
21241
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
|
21294
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$m({}, cellProps));
|
|
21242
21295
|
break;
|
|
21243
21296
|
case 'mediaItem':
|
|
21244
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
|
21297
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$m({}, cellProps));
|
|
21245
21298
|
break;
|
|
21246
21299
|
case 'unixTimeStamp':
|
|
21247
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
|
21300
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$m({}, cellProps));
|
|
21248
21301
|
break;
|
|
21249
21302
|
case 'unixTimeStampCheck':
|
|
21250
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
|
21303
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$m({}, cellProps));
|
|
21251
21304
|
break;
|
|
21252
21305
|
case 'icon':
|
|
21253
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
|
21306
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$m({}, cellProps));
|
|
21254
21307
|
break;
|
|
21255
21308
|
default:
|
|
21256
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
|
21309
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$m({}, cellProps));
|
|
21257
21310
|
break;
|
|
21258
21311
|
}
|
|
21259
21312
|
}
|
|
21260
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
|
21313
|
+
return /*#__PURE__*/jsx("td", _objectSpread$m(_objectSpread$m({}, restProps), {}, {
|
|
21261
21314
|
children: childNode
|
|
21262
21315
|
}));
|
|
21263
21316
|
};
|
|
@@ -21446,11 +21499,11 @@ function useAGHistogram (_ref) {
|
|
|
21446
21499
|
};
|
|
21447
21500
|
}
|
|
21448
21501
|
|
|
21449
|
-
var container = "container-2r-OJ";
|
|
21502
|
+
var container$1 = "container-2r-OJ";
|
|
21450
21503
|
var column1 = "column1-9viTK";
|
|
21451
21504
|
var spinner = "spinner-00VcK";
|
|
21452
|
-
var css_248z$
|
|
21453
|
-
styleInject(css_248z$
|
|
21505
|
+
var css_248z$b = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
|
|
21506
|
+
styleInject(css_248z$b);
|
|
21454
21507
|
|
|
21455
21508
|
var Panel = Collapse.Panel;
|
|
21456
21509
|
function AGHistogram (_ref) {
|
|
@@ -21564,7 +21617,7 @@ function AGHistogram (_ref) {
|
|
|
21564
21617
|
children: /*#__PURE__*/jsx(Panel, {
|
|
21565
21618
|
header: headerText,
|
|
21566
21619
|
children: /*#__PURE__*/jsxs("div", {
|
|
21567
|
-
className: container,
|
|
21620
|
+
className: container$1,
|
|
21568
21621
|
children: [!loadingHistogram && /*#__PURE__*/jsx("div", {
|
|
21569
21622
|
className: classnames(column1, 'ag-theme-alpine'),
|
|
21570
21623
|
style: {
|
|
@@ -21609,8 +21662,8 @@ var SMChart = function SMChart(props) {
|
|
|
21609
21662
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
|
21610
21663
|
};
|
|
21611
21664
|
|
|
21612
|
-
function ownKeys$
|
|
21613
|
-
function _objectSpread$
|
|
21665
|
+
function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21666
|
+
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21614
21667
|
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
21615
21668
|
function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0; } }
|
|
21616
21669
|
function _arrayLikeToArray$4(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -21771,7 +21824,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
21771
21824
|
// Convert to Dayjs
|
|
21772
21825
|
(_state$globalFilter3 = state.globalFilter) !== null && _state$globalFilter3 !== void 0 && (_state$globalFilter3 = _state$globalFilter3.timeStamp) !== null && _state$globalFilter3 !== void 0 && (_state$globalFilter3 = _state$globalFilter3['toTimeStamp']) !== null && _state$globalFilter3 !== void 0 && _state$globalFilter3[0] ? dayjs((_state$globalFilter4 = state.globalFilter) === null || _state$globalFilter4 === void 0 || (_state$globalFilter4 = _state$globalFilter4.timeStamp) === null || _state$globalFilter4 === void 0 || (_state$globalFilter4 = _state$globalFilter4['toTimeStamp']) === null || _state$globalFilter4 === void 0 ? void 0 : _state$globalFilter4[0]) : dayjs(new Date()) // Convert to Dayjs
|
|
21773
21826
|
]
|
|
21774
|
-
}), ((_state$configuration$7 = state.configuration.filter) === null || _state$configuration$7 === void 0 ? void 0 : _state$configuration$7.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
21827
|
+
}), ((_state$configuration$7 = state.configuration.filter) === null || _state$configuration$7 === void 0 ? void 0 : _state$configuration$7.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$l(_objectSpread$l({}, (_state$configuration$8 = state.configuration.filter) === null || _state$configuration$8 === void 0 ? void 0 : _state$configuration$8.select.settings), {}, {
|
|
21775
21828
|
style: {
|
|
21776
21829
|
minWidth: '200px'
|
|
21777
21830
|
},
|
|
@@ -21868,7 +21921,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
21868
21921
|
},
|
|
21869
21922
|
dataSource: data,
|
|
21870
21923
|
loading: state.loading,
|
|
21871
|
-
pagination: _objectSpread$
|
|
21924
|
+
pagination: _objectSpread$l(_objectSpread$l({}, state.pagination), {}, {
|
|
21872
21925
|
showTotal: function showTotal(total, range) {
|
|
21873
21926
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
|
21874
21927
|
},
|
|
@@ -22168,7 +22221,7 @@ function BulkAction(_ref6) {
|
|
|
22168
22221
|
}
|
|
22169
22222
|
_context4.t0 = data;
|
|
22170
22223
|
_context4.next = 10;
|
|
22171
|
-
return apiInterface.update(_objectSpread$
|
|
22224
|
+
return apiInterface.update(_objectSpread$l(_objectSpread$l({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
|
22172
22225
|
case 10:
|
|
22173
22226
|
_context4.t1 = _context4.sent;
|
|
22174
22227
|
_context4.t0.push.call(_context4.t0, _context4.t1);
|
|
@@ -22268,8 +22321,8 @@ function SelectionText(_ref8) {
|
|
|
22268
22321
|
});
|
|
22269
22322
|
}
|
|
22270
22323
|
|
|
22271
|
-
function ownKeys$
|
|
22272
|
-
function _objectSpread$
|
|
22324
|
+
function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22325
|
+
function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22273
22326
|
function getColumnFilterProps (_ref) {
|
|
22274
22327
|
var filter = _ref.filter,
|
|
22275
22328
|
title = _ref.title;
|
|
@@ -22632,7 +22685,7 @@ var selectProps = function selectProps(title, filter) {
|
|
|
22632
22685
|
});
|
|
22633
22686
|
},
|
|
22634
22687
|
options: filter.map(function (f) {
|
|
22635
|
-
return _objectSpread$
|
|
22688
|
+
return _objectSpread$k(_objectSpread$k({}, f), {}, {
|
|
22636
22689
|
label: t(f.label)
|
|
22637
22690
|
});
|
|
22638
22691
|
})
|
|
@@ -22681,7 +22734,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
22681
22734
|
setDisplaySelectedvalues = _useState4[1];
|
|
22682
22735
|
var options = [];
|
|
22683
22736
|
options = filter.map(function (f) {
|
|
22684
|
-
return _objectSpread$
|
|
22737
|
+
return _objectSpread$k(_objectSpread$k({}, f), {}, {
|
|
22685
22738
|
label: t(f.label)
|
|
22686
22739
|
});
|
|
22687
22740
|
});
|
|
@@ -22755,8 +22808,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
22755
22808
|
};
|
|
22756
22809
|
};
|
|
22757
22810
|
|
|
22758
|
-
function ownKeys$
|
|
22759
|
-
function _objectSpread$
|
|
22811
|
+
function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22812
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22760
22813
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
|
|
22761
22814
|
var columns = configuration.columns.filter(function (c) {
|
|
22762
22815
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
|
@@ -22807,7 +22860,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
|
22807
22860
|
}
|
|
22808
22861
|
function mapColumn(column, onUpdate) {
|
|
22809
22862
|
var _column$field, _column$children;
|
|
22810
|
-
return _objectSpread$
|
|
22863
|
+
return _objectSpread$j(_objectSpread$j(_objectSpread$j({}, column), {}, {
|
|
22811
22864
|
width: column.width || 100,
|
|
22812
22865
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
|
22813
22866
|
key: column.field || column.title,
|
|
@@ -22856,8 +22909,8 @@ function updateData (_ref) {
|
|
|
22856
22909
|
};
|
|
22857
22910
|
}
|
|
22858
22911
|
|
|
22859
|
-
function ownKeys$
|
|
22860
|
-
function _objectSpread$
|
|
22912
|
+
function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22913
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22861
22914
|
function aplyFilterAndSortation (_ref) {
|
|
22862
22915
|
var data = _ref.data,
|
|
22863
22916
|
filters = _ref.filters,
|
|
@@ -22872,7 +22925,7 @@ function aplyFilterAndSortation (_ref) {
|
|
|
22872
22925
|
processedData = sort(sorter || [], processedData);
|
|
22873
22926
|
return {
|
|
22874
22927
|
data: processedData,
|
|
22875
|
-
pagination: _objectSpread$
|
|
22928
|
+
pagination: _objectSpread$i(_objectSpread$i({}, pagination), {}, {
|
|
22876
22929
|
total: processedData.length
|
|
22877
22930
|
})
|
|
22878
22931
|
};
|
|
@@ -22957,8 +23010,8 @@ function filter(f, data) {
|
|
|
22957
23010
|
}
|
|
22958
23011
|
|
|
22959
23012
|
var _excluded = ["_id"];
|
|
22960
|
-
function ownKeys$
|
|
22961
|
-
function _objectSpread$
|
|
23013
|
+
function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23014
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22962
23015
|
function useTableData$1 (_ref) {
|
|
22963
23016
|
var _configuration$apiInt;
|
|
22964
23017
|
var id = _ref.id;
|
|
@@ -23013,7 +23066,7 @@ function useTableData$1 (_ref) {
|
|
|
23013
23066
|
var _configuration$create;
|
|
23014
23067
|
if (!dataRow) return;
|
|
23015
23068
|
var id = v4();
|
|
23016
|
-
var processedDataRow = flat.unflatten(_objectSpread$
|
|
23069
|
+
var processedDataRow = flat.unflatten(_objectSpread$h({
|
|
23017
23070
|
_id: id,
|
|
23018
23071
|
ID: id
|
|
23019
23072
|
}, dataRow));
|
|
@@ -23025,11 +23078,11 @@ function useTableData$1 (_ref) {
|
|
|
23025
23078
|
newData = _updateData.data;
|
|
23026
23079
|
_updateData.prevDataRow;
|
|
23027
23080
|
_updateData.index;
|
|
23028
|
-
var newState = _objectSpread$
|
|
23081
|
+
var newState = _objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23029
23082
|
data: newData
|
|
23030
23083
|
});
|
|
23031
23084
|
if (!filterServerSide) {
|
|
23032
|
-
var res = aplyFilterAndSortation(_objectSpread$
|
|
23085
|
+
var res = aplyFilterAndSortation(_objectSpread$h(_objectSpread$h({}, filterData), {}, {
|
|
23033
23086
|
data: newData
|
|
23034
23087
|
}));
|
|
23035
23088
|
newState.data = res.data;
|
|
@@ -23041,33 +23094,33 @@ function useTableData$1 (_ref) {
|
|
|
23041
23094
|
var formData = new FormData();
|
|
23042
23095
|
processedDataRow._id;
|
|
23043
23096
|
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
|
23044
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
|
23097
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$h(_objectSpread$h({}, catalogItem), {}, {
|
|
23045
23098
|
filterContex: filterContex,
|
|
23046
23099
|
value: JSON.stringify([value])
|
|
23047
23100
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
|
23048
23101
|
if (d && d.Result && d.Result == 'Success') return;
|
|
23049
|
-
setState(_objectSpread$
|
|
23102
|
+
setState(_objectSpread$h({}, oldState));
|
|
23050
23103
|
});
|
|
23051
23104
|
}, [state, catalogItem, filterData]);
|
|
23052
23105
|
useEffect(function () {
|
|
23053
23106
|
if (!catalogItem) return;
|
|
23054
|
-
setState(_objectSpread$
|
|
23107
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23055
23108
|
loading: true,
|
|
23056
|
-
mappingData: _objectSpread$
|
|
23109
|
+
mappingData: _objectSpread$h(_objectSpread$h({}, catalogItem), {}, {
|
|
23057
23110
|
filterContex: filterContex
|
|
23058
23111
|
})
|
|
23059
23112
|
}));
|
|
23060
23113
|
if (!filterServerSide) {
|
|
23061
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
23114
|
+
apiHandler.readList(configuration.mapping, _objectSpread$h(_objectSpread$h({}, catalogItem), {}, {
|
|
23062
23115
|
filterContex: filterContex
|
|
23063
23116
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
|
23064
23117
|
var newData = data.data.map(function (d) {
|
|
23065
|
-
return _objectSpread$
|
|
23118
|
+
return _objectSpread$h(_objectSpread$h({}, d), {}, {
|
|
23066
23119
|
_id: d._id || d.ID || nanoid()
|
|
23067
23120
|
});
|
|
23068
23121
|
});
|
|
23069
23122
|
onChange({
|
|
23070
|
-
pagination: _objectSpread$
|
|
23123
|
+
pagination: _objectSpread$h({}, state.pagination),
|
|
23071
23124
|
filters: {},
|
|
23072
23125
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
23073
23126
|
return c.defaultSortOrder;
|
|
@@ -23084,7 +23137,7 @@ function useTableData$1 (_ref) {
|
|
|
23084
23137
|
});
|
|
23085
23138
|
} else {
|
|
23086
23139
|
onChange({
|
|
23087
|
-
pagination: _objectSpread$
|
|
23140
|
+
pagination: _objectSpread$h({}, state.pagination),
|
|
23088
23141
|
filters: {},
|
|
23089
23142
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
23090
23143
|
return c.defaultSortOrder;
|
|
@@ -23101,17 +23154,17 @@ function useTableData$1 (_ref) {
|
|
|
23101
23154
|
}
|
|
23102
23155
|
}, [filterContex, catalogItem]);
|
|
23103
23156
|
var onChange = function onChange(p, dataParam) {
|
|
23104
|
-
setState(_objectSpread$
|
|
23157
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23105
23158
|
loading: true
|
|
23106
23159
|
}));
|
|
23107
23160
|
if (!filterServerSide) {
|
|
23108
23161
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
|
23109
|
-
var _aplyFilterAndSortati = aplyFilterAndSortation(_objectSpread$
|
|
23162
|
+
var _aplyFilterAndSortati = aplyFilterAndSortation(_objectSpread$h(_objectSpread$h({}, p), {}, {
|
|
23110
23163
|
data: unfilteredData
|
|
23111
23164
|
})),
|
|
23112
23165
|
data = _aplyFilterAndSortati.data,
|
|
23113
23166
|
pagination = _aplyFilterAndSortati.pagination;
|
|
23114
|
-
setState(_objectSpread$
|
|
23167
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23115
23168
|
data: data,
|
|
23116
23169
|
pagination: pagination,
|
|
23117
23170
|
loading: false,
|
|
@@ -23122,20 +23175,20 @@ function useTableData$1 (_ref) {
|
|
|
23122
23175
|
sorter: p.sorter
|
|
23123
23176
|
});
|
|
23124
23177
|
} else {
|
|
23125
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
23178
|
+
apiHandler.readList(configuration.mapping, _objectSpread$h(_objectSpread$h({}, catalogItem), {}, {
|
|
23126
23179
|
filterContex: filterContex
|
|
23127
23180
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
|
23128
|
-
setState(_objectSpread$
|
|
23181
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23129
23182
|
data: data.data.map(function (dt) {
|
|
23130
|
-
return _objectSpread$
|
|
23183
|
+
return _objectSpread$h(_objectSpread$h({}, dt), {}, {
|
|
23131
23184
|
_id: dt._id || dt.ID || nanoid()
|
|
23132
23185
|
});
|
|
23133
23186
|
}),
|
|
23134
|
-
pagination: _objectSpread$
|
|
23187
|
+
pagination: _objectSpread$h(_objectSpread$h({}, p.pagination), {}, {
|
|
23135
23188
|
total: data.total
|
|
23136
23189
|
}),
|
|
23137
23190
|
loading: false,
|
|
23138
|
-
mappingData: _objectSpread$
|
|
23191
|
+
mappingData: _objectSpread$h(_objectSpread$h({}, catalogItem), {}, {
|
|
23139
23192
|
filterContex: filterContex
|
|
23140
23193
|
})
|
|
23141
23194
|
}));
|
|
@@ -23147,7 +23200,7 @@ function useTableData$1 (_ref) {
|
|
|
23147
23200
|
}
|
|
23148
23201
|
};
|
|
23149
23202
|
var onSelect = function onSelect(keys) {
|
|
23150
|
-
setState(_objectSpread$
|
|
23203
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23151
23204
|
selected: keys
|
|
23152
23205
|
}));
|
|
23153
23206
|
};
|
|
@@ -23157,7 +23210,7 @@ function useTableData$1 (_ref) {
|
|
|
23157
23210
|
return _regeneratorRuntime.wrap(function _callee$(_context2) {
|
|
23158
23211
|
while (1) switch (_context2.prev = _context2.next) {
|
|
23159
23212
|
case 0:
|
|
23160
|
-
setState(_objectSpread$
|
|
23213
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23161
23214
|
deleting: true
|
|
23162
23215
|
}));
|
|
23163
23216
|
newData = _toConsumableArray(state.data);
|
|
@@ -23172,7 +23225,7 @@ function useTableData$1 (_ref) {
|
|
|
23172
23225
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
|
23173
23226
|
return nd._id === state.selected[index];
|
|
23174
23227
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
|
23175
|
-
mappingData = _objectSpread$
|
|
23228
|
+
mappingData = _objectSpread$h(_objectSpread$h({}, mappingData), state.mappingData);
|
|
23176
23229
|
_context.next = 5;
|
|
23177
23230
|
return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true);
|
|
23178
23231
|
case 5:
|
|
@@ -23222,7 +23275,7 @@ function useTableData$1 (_ref) {
|
|
|
23222
23275
|
}
|
|
23223
23276
|
_context2.next = 18;
|
|
23224
23277
|
return apiHandler.readList(configuration.mapping, {
|
|
23225
|
-
pagination: _objectSpread$
|
|
23278
|
+
pagination: _objectSpread$h(_objectSpread$h({}, state.pagination), {}, {
|
|
23226
23279
|
current: current
|
|
23227
23280
|
}),
|
|
23228
23281
|
columns: configuration.columns,
|
|
@@ -23234,11 +23287,11 @@ function useTableData$1 (_ref) {
|
|
|
23234
23287
|
newData = data.data;
|
|
23235
23288
|
total = data.total;
|
|
23236
23289
|
case 21:
|
|
23237
|
-
setState(_objectSpread$
|
|
23290
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23238
23291
|
selected: [],
|
|
23239
23292
|
deleting: false,
|
|
23240
23293
|
data: newData,
|
|
23241
|
-
pagination: _objectSpread$
|
|
23294
|
+
pagination: _objectSpread$h(_objectSpread$h({}, state.pagination), {}, {
|
|
23242
23295
|
current: current,
|
|
23243
23296
|
total: total
|
|
23244
23297
|
})
|
|
@@ -23254,12 +23307,12 @@ function useTableData$1 (_ref) {
|
|
|
23254
23307
|
};
|
|
23255
23308
|
}();
|
|
23256
23309
|
function setLoading() {
|
|
23257
|
-
setState(_objectSpread$
|
|
23310
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23258
23311
|
loading: true
|
|
23259
23312
|
}));
|
|
23260
23313
|
}
|
|
23261
|
-
return _objectSpread$
|
|
23262
|
-
configuration: _objectSpread$
|
|
23314
|
+
return _objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
23315
|
+
configuration: _objectSpread$h(_objectSpread$h({}, configuration), {}, {
|
|
23263
23316
|
title: undefined
|
|
23264
23317
|
}),
|
|
23265
23318
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
|
@@ -23364,8 +23417,8 @@ function objectHash (obj) {
|
|
|
23364
23417
|
function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
23365
23418
|
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0; } }
|
|
23366
23419
|
function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23367
|
-
function ownKeys$
|
|
23368
|
-
function _objectSpread$
|
|
23420
|
+
function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23421
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23369
23422
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
|
23370
23423
|
function useTableData (_ref) {
|
|
23371
23424
|
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$bulkAc, _configuration$apiInt;
|
|
@@ -23432,7 +23485,7 @@ function useTableData (_ref) {
|
|
|
23432
23485
|
selected: [],
|
|
23433
23486
|
canDelete: !!apiHandler.canDelete,
|
|
23434
23487
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
|
23435
|
-
mappingData: _objectSpread$
|
|
23488
|
+
mappingData: _objectSpread$g(_objectSpread$g({}, parentData), {}, {
|
|
23436
23489
|
prefilter: {
|
|
23437
23490
|
select: globalFilter.select
|
|
23438
23491
|
}
|
|
@@ -23441,7 +23494,7 @@ function useTableData (_ref) {
|
|
|
23441
23494
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
23442
23495
|
state = _useState14[0],
|
|
23443
23496
|
setState = _useState14[1];
|
|
23444
|
-
var mapping = _objectSpread$
|
|
23497
|
+
var mapping = _objectSpread$g(_objectSpread$g({}, parentData), {}, {
|
|
23445
23498
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
|
23446
23499
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
|
23447
23500
|
});
|
|
@@ -23480,14 +23533,14 @@ function useTableData (_ref) {
|
|
|
23480
23533
|
}
|
|
23481
23534
|
var dataArray = Array.isArray(data) ? data : [data];
|
|
23482
23535
|
var newInitData = initData;
|
|
23483
|
-
var newState = _objectSpread$
|
|
23536
|
+
var newState = _objectSpread$g({}, state);
|
|
23484
23537
|
var selected = [];
|
|
23485
23538
|
if (configuration.deselectOnUpdate == false) {
|
|
23486
23539
|
selected = state.selected;
|
|
23487
23540
|
}
|
|
23488
23541
|
var pagination = undefined;
|
|
23489
23542
|
if (state.pagination.total !== state.data.length + dataArray.length) {
|
|
23490
|
-
pagination = _objectSpread$
|
|
23543
|
+
pagination = _objectSpread$g(_objectSpread$g({}, state.pagination), {}, {
|
|
23491
23544
|
total: state.data.length + dataArray.length
|
|
23492
23545
|
});
|
|
23493
23546
|
}
|
|
@@ -23504,7 +23557,7 @@ function useTableData (_ref) {
|
|
|
23504
23557
|
dataRow: dataRow
|
|
23505
23558
|
}),
|
|
23506
23559
|
_data = _updateData.data;
|
|
23507
|
-
newState = _objectSpread$
|
|
23560
|
+
newState = _objectSpread$g(_objectSpread$g({}, newState), {}, {
|
|
23508
23561
|
pagination: (_pagination = pagination) !== null && _pagination !== void 0 ? _pagination : newState.pagination,
|
|
23509
23562
|
data: _data,
|
|
23510
23563
|
selected: selected
|
|
@@ -23517,8 +23570,8 @@ function useTableData (_ref) {
|
|
|
23517
23570
|
dataRow: dataRow
|
|
23518
23571
|
}),
|
|
23519
23572
|
nextInitData = _updateData2.data;
|
|
23520
|
-
var _aplyFilterAndSortati = aplyFilterAndSortation(_objectSpread$
|
|
23521
|
-
filters: _objectSpread$
|
|
23573
|
+
var _aplyFilterAndSortati = aplyFilterAndSortation(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, filterData), {}, {
|
|
23574
|
+
filters: _objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter5 = configuration.filter) !== null && _configuration$filter5 !== void 0 && (_configuration$filter5 = _configuration$filter5.toggle) !== null && _configuration$filter5 !== void 0 && _configuration$filter5.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
|
|
23522
23575
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter6 = configuration.filter) !== null && _configuration$filter6 !== void 0 && (_configuration$filter6 = _configuration$filter6.toggle) !== null && _configuration$filter6 !== void 0 && _configuration$filter6.inQuery ? {
|
|
23523
23576
|
genericProps: globalFilter.toggle
|
|
23524
23577
|
} : undefined), {}, {
|
|
@@ -23528,7 +23581,7 @@ function useTableData (_ref) {
|
|
|
23528
23581
|
_data2 = _aplyFilterAndSortati.data,
|
|
23529
23582
|
_pagination2 = _aplyFilterAndSortati.pagination;
|
|
23530
23583
|
newInitData = nextInitData;
|
|
23531
|
-
newState = _objectSpread$
|
|
23584
|
+
newState = _objectSpread$g(_objectSpread$g({}, newState), {}, {
|
|
23532
23585
|
pagination: _pagination2,
|
|
23533
23586
|
data: _data2,
|
|
23534
23587
|
selected: selected
|
|
@@ -23538,8 +23591,8 @@ function useTableData (_ref) {
|
|
|
23538
23591
|
if (apiHandler.canCreate) {
|
|
23539
23592
|
apiCreate(data).then(function (res) {
|
|
23540
23593
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
|
23541
|
-
initData && setInitData(_objectSpread$
|
|
23542
|
-
setState(_objectSpread$
|
|
23594
|
+
initData && setInitData(_objectSpread$g({}, initData));
|
|
23595
|
+
setState(_objectSpread$g({}, state));
|
|
23543
23596
|
}
|
|
23544
23597
|
});
|
|
23545
23598
|
}
|
|
@@ -23552,7 +23605,7 @@ function useTableData (_ref) {
|
|
|
23552
23605
|
var triggerRefresh = function triggerRefresh() {
|
|
23553
23606
|
var _configuration$filter7;
|
|
23554
23607
|
setError(undefined);
|
|
23555
|
-
var newGlobalFilter = _objectSpread$
|
|
23608
|
+
var newGlobalFilter = _objectSpread$g({}, globalFilter);
|
|
23556
23609
|
//on refresh update default filter, since global value can change
|
|
23557
23610
|
if ((_configuration$filter7 = configuration.filter) !== null && _configuration$filter7 !== void 0 && _configuration$filter7["default"]) {
|
|
23558
23611
|
var _configuration$filter8;
|
|
@@ -23563,7 +23616,7 @@ function useTableData (_ref) {
|
|
|
23563
23616
|
newGlobalFilter["default"] = _defaultFilter;
|
|
23564
23617
|
setGlobaFilter(newGlobalFilter);
|
|
23565
23618
|
}
|
|
23566
|
-
onChange(_objectSpread$
|
|
23619
|
+
onChange(_objectSpread$g({
|
|
23567
23620
|
pagination: state.pagination
|
|
23568
23621
|
}, filterData), newGlobalFilter, true);
|
|
23569
23622
|
};
|
|
@@ -23582,7 +23635,7 @@ function useTableData (_ref) {
|
|
|
23582
23635
|
order: c.defaultSortOrder
|
|
23583
23636
|
};
|
|
23584
23637
|
});
|
|
23585
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
|
23638
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$g(_objectSpread$g({}, state), {}, {
|
|
23586
23639
|
loading: false
|
|
23587
23640
|
}));else {
|
|
23588
23641
|
onChange({
|
|
@@ -23639,11 +23692,11 @@ function useTableData (_ref) {
|
|
|
23639
23692
|
case 0:
|
|
23640
23693
|
prefilter = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : globalFilter;
|
|
23641
23694
|
refresh = _args2.length > 2 ? _args2[2] : undefined;
|
|
23642
|
-
setState(_objectSpread$
|
|
23695
|
+
setState(_objectSpread$g(_objectSpread$g({}, state), {}, {
|
|
23643
23696
|
loading: true
|
|
23644
23697
|
}));
|
|
23645
23698
|
currentData = initData;
|
|
23646
|
-
filterData = _objectSpread$
|
|
23699
|
+
filterData = _objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, p.filters), prefilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter9 = configuration.filter) !== null && _configuration$filter9 !== void 0 && (_configuration$filter9 = _configuration$filter9.toggle) !== null && _configuration$filter9 !== void 0 && _configuration$filter9.inQuery) ? prefilter.toggle : undefined), ((_configuration$filter10 = configuration.filter) === null || _configuration$filter10 === void 0 || (_configuration$filter10 = _configuration$filter10.select) === null || _configuration$filter10 === void 0 ? void 0 : _configuration$filter10.applyDefaultValue) !== false || ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter12 = (_configuration$filter13 = configuration.filter) === null || _configuration$filter13 === void 0 || (_configuration$filter13 = _configuration$filter13.select) === null || _configuration$filter13 === void 0 ? void 0 : _configuration$filter13.filterField) !== null && _configuration$filter12 !== void 0 ? _configuration$filter12 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
|
|
23647
23700
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref5) {
|
|
23648
23701
|
var _ref6 = _slicedToArray(_ref5, 2);
|
|
23649
23702
|
_ref6[0];
|
|
@@ -23651,7 +23704,7 @@ function useTableData (_ref) {
|
|
|
23651
23704
|
return v != null;
|
|
23652
23705
|
}));
|
|
23653
23706
|
currentFilterHash = objectHash(filterData);
|
|
23654
|
-
currentPagination = _objectSpread$
|
|
23707
|
+
currentPagination = _objectSpread$g(_objectSpread$g({}, p.pagination), {}, {
|
|
23655
23708
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
|
23656
23709
|
});
|
|
23657
23710
|
filterHash.current = currentFilterHash;
|
|
@@ -23659,7 +23712,7 @@ function useTableData (_ref) {
|
|
|
23659
23712
|
_context2.next = 19;
|
|
23660
23713
|
break;
|
|
23661
23714
|
}
|
|
23662
|
-
ssf = _objectSpread$
|
|
23715
|
+
ssf = _objectSpread$g({
|
|
23663
23716
|
pagination: currentPagination,
|
|
23664
23717
|
columns: configuration.columns,
|
|
23665
23718
|
filters: filterData,
|
|
@@ -23673,7 +23726,7 @@ function useTableData (_ref) {
|
|
|
23673
23726
|
data = _context2.sent;
|
|
23674
23727
|
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, mapping, ssf);
|
|
23675
23728
|
currentData = data.data;
|
|
23676
|
-
currentPagination = _objectSpread$
|
|
23729
|
+
currentPagination = _objectSpread$g(_objectSpread$g({}, currentPagination), {}, {
|
|
23677
23730
|
total: data.total
|
|
23678
23731
|
});
|
|
23679
23732
|
_context2.next = 28;
|
|
@@ -23690,7 +23743,7 @@ function useTableData (_ref) {
|
|
|
23690
23743
|
currentData = _data3.data;
|
|
23691
23744
|
setInitData(currentData);
|
|
23692
23745
|
case 25:
|
|
23693
|
-
_aplyFilterAndSortati2 = aplyFilterAndSortation(_objectSpread$
|
|
23746
|
+
_aplyFilterAndSortati2 = aplyFilterAndSortation(_objectSpread$g(_objectSpread$g({}, p), {}, {
|
|
23694
23747
|
pagination: currentPagination,
|
|
23695
23748
|
filters: filterData,
|
|
23696
23749
|
data: currentData,
|
|
@@ -23699,11 +23752,11 @@ function useTableData (_ref) {
|
|
|
23699
23752
|
currentData = _data4;
|
|
23700
23753
|
currentPagination = pagination;
|
|
23701
23754
|
case 28:
|
|
23702
|
-
setState(_objectSpread$
|
|
23755
|
+
setState(_objectSpread$g(_objectSpread$g({}, state), {}, {
|
|
23703
23756
|
loading: false,
|
|
23704
23757
|
data: currentData,
|
|
23705
23758
|
pagination: currentPagination,
|
|
23706
|
-
mappingData: _objectSpread$
|
|
23759
|
+
mappingData: _objectSpread$g(_objectSpread$g({}, parentData), {}, {
|
|
23707
23760
|
prefilter: prefilter
|
|
23708
23761
|
}),
|
|
23709
23762
|
currentFetchUrl: currentUrl
|
|
@@ -23723,7 +23776,7 @@ function useTableData (_ref) {
|
|
|
23723
23776
|
};
|
|
23724
23777
|
}();
|
|
23725
23778
|
var onSelect = function onSelect(keys) {
|
|
23726
|
-
setState(_objectSpread$
|
|
23779
|
+
setState(_objectSpread$g(_objectSpread$g({}, state), {}, {
|
|
23727
23780
|
selected: keys
|
|
23728
23781
|
}));
|
|
23729
23782
|
};
|
|
@@ -23734,7 +23787,7 @@ function useTableData (_ref) {
|
|
|
23734
23787
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
23735
23788
|
while (1) switch (_context4.prev = _context4.next) {
|
|
23736
23789
|
case 0:
|
|
23737
|
-
setState(_objectSpread$
|
|
23790
|
+
setState(_objectSpread$g(_objectSpread$g({}, state), {}, {
|
|
23738
23791
|
deleting: true
|
|
23739
23792
|
}));
|
|
23740
23793
|
newData = _toConsumableArray(state.data);
|
|
@@ -23774,7 +23827,7 @@ function useTableData (_ref) {
|
|
|
23774
23827
|
} finally {
|
|
23775
23828
|
_iterator.f();
|
|
23776
23829
|
}
|
|
23777
|
-
mappingData = _objectSpread$
|
|
23830
|
+
mappingData = _objectSpread$g(_objectSpread$g(_objectSpread$g({}, mappingData), state.mappingData), mapToggle);
|
|
23778
23831
|
deleteResult = undefined;
|
|
23779
23832
|
_context3.prev = 7;
|
|
23780
23833
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
|
@@ -23865,12 +23918,12 @@ function useTableData (_ref) {
|
|
|
23865
23918
|
break;
|
|
23866
23919
|
}
|
|
23867
23920
|
_context4.next = 25;
|
|
23868
|
-
return apiHandler.readList(parentMapping || configuration.mapping, mapping, _objectSpread$
|
|
23869
|
-
pagination: _objectSpread$
|
|
23921
|
+
return apiHandler.readList(parentMapping || configuration.mapping, mapping, _objectSpread$g({
|
|
23922
|
+
pagination: _objectSpread$g(_objectSpread$g({}, state.pagination), {}, {
|
|
23870
23923
|
current: current
|
|
23871
23924
|
}),
|
|
23872
23925
|
columns: configuration.columns,
|
|
23873
|
-
filters: _objectSpread$
|
|
23926
|
+
filters: _objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter15 = configuration.filter) !== null && _configuration$filter15 !== void 0 && (_configuration$filter15 = _configuration$filter15.toggle) !== null && _configuration$filter15 !== void 0 && _configuration$filter15.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
|
|
23874
23927
|
sorter: filterData.sorter
|
|
23875
23928
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter16 = configuration.filter) !== null && _configuration$filter16 !== void 0 && (_configuration$filter16 = _configuration$filter16.toggle) !== null && _configuration$filter16 !== void 0 && _configuration$filter16.inQuery ? {
|
|
23876
23929
|
genericProps: globalFilter.toggle
|
|
@@ -23881,11 +23934,11 @@ function useTableData (_ref) {
|
|
|
23881
23934
|
total = data.total;
|
|
23882
23935
|
case 28:
|
|
23883
23936
|
setInitData(newInitData);
|
|
23884
|
-
setState(_objectSpread$
|
|
23937
|
+
setState(_objectSpread$g(_objectSpread$g({}, state), {}, {
|
|
23885
23938
|
selected: [],
|
|
23886
23939
|
deleting: false,
|
|
23887
23940
|
data: newData,
|
|
23888
|
-
pagination: _objectSpread$
|
|
23941
|
+
pagination: _objectSpread$g(_objectSpread$g({}, state.pagination), {}, {
|
|
23889
23942
|
current: current === 0 ? 1 : current,
|
|
23890
23943
|
total: total
|
|
23891
23944
|
})
|
|
@@ -23906,14 +23959,14 @@ function useTableData (_ref) {
|
|
|
23906
23959
|
LOG$2.error(new DivaError('No global select filter defiend'));
|
|
23907
23960
|
return;
|
|
23908
23961
|
}
|
|
23909
|
-
var newGlobalFilter = _objectSpread$
|
|
23962
|
+
var newGlobalFilter = _objectSpread$g({}, globalFilter);
|
|
23910
23963
|
if (value !== null && value !== void 0 && value.length) {
|
|
23911
23964
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
|
|
23912
23965
|
} else {
|
|
23913
23966
|
newGlobalFilter.select = {};
|
|
23914
23967
|
}
|
|
23915
23968
|
setGlobaFilter(newGlobalFilter);
|
|
23916
|
-
onChange(_objectSpread$
|
|
23969
|
+
onChange(_objectSpread$g({
|
|
23917
23970
|
pagination: state.pagination
|
|
23918
23971
|
}, filterData), newGlobalFilter);
|
|
23919
23972
|
};
|
|
@@ -23927,11 +23980,11 @@ function useTableData (_ref) {
|
|
|
23927
23980
|
configuration.filter.toggle.fields.forEach(function (f) {
|
|
23928
23981
|
return toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', 1];
|
|
23929
23982
|
});
|
|
23930
|
-
var newGlobalFilter = _objectSpread$
|
|
23983
|
+
var newGlobalFilter = _objectSpread$g(_objectSpread$g({}, globalFilter), {}, {
|
|
23931
23984
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
|
23932
23985
|
});
|
|
23933
23986
|
setGlobaFilter(newGlobalFilter);
|
|
23934
|
-
onChange(_objectSpread$
|
|
23987
|
+
onChange(_objectSpread$g({
|
|
23935
23988
|
pagination: state.pagination
|
|
23936
23989
|
}, filterData), newGlobalFilter);
|
|
23937
23990
|
};
|
|
@@ -23941,7 +23994,7 @@ function useTableData (_ref) {
|
|
|
23941
23994
|
LOG$2.error(new DivaError('No global search filter defiend'));
|
|
23942
23995
|
return;
|
|
23943
23996
|
}
|
|
23944
|
-
var newGlobalFilter = _objectSpread$
|
|
23997
|
+
var newGlobalFilter = _objectSpread$g(_objectSpread$g({}, globalFilter), {}, {
|
|
23945
23998
|
search: {}
|
|
23946
23999
|
});
|
|
23947
24000
|
if (value) {
|
|
@@ -23955,7 +24008,7 @@ function useTableData (_ref) {
|
|
|
23955
24008
|
});
|
|
23956
24009
|
}
|
|
23957
24010
|
setGlobaFilter(newGlobalFilter);
|
|
23958
|
-
onChange(_objectSpread$
|
|
24011
|
+
onChange(_objectSpread$g({
|
|
23959
24012
|
pagination: state.pagination
|
|
23960
24013
|
}, filterData), newGlobalFilter);
|
|
23961
24014
|
};
|
|
@@ -23965,17 +24018,17 @@ function useTableData (_ref) {
|
|
|
23965
24018
|
LOG$2.error(new DivaError('No global period filter defiend'));
|
|
23966
24019
|
return;
|
|
23967
24020
|
}
|
|
23968
|
-
var newGlobalFilter = _objectSpread$
|
|
24021
|
+
var newGlobalFilter = _objectSpread$g({}, globalFilter);
|
|
23969
24022
|
newGlobalFilter.timeStamp = {
|
|
23970
24023
|
fromTimeStamp: [from],
|
|
23971
24024
|
toTimeStamp: [to]
|
|
23972
24025
|
};
|
|
23973
24026
|
setGlobaFilter(newGlobalFilter);
|
|
23974
|
-
onChange(_objectSpread$
|
|
24027
|
+
onChange(_objectSpread$g({
|
|
23975
24028
|
pagination: state.pagination
|
|
23976
24029
|
}, filterData), newGlobalFilter);
|
|
23977
24030
|
};
|
|
23978
|
-
return _objectSpread$
|
|
24031
|
+
return _objectSpread$g(_objectSpread$g({}, state), {}, {
|
|
23979
24032
|
title: title,
|
|
23980
24033
|
configuration: configuration,
|
|
23981
24034
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
|
|
@@ -24015,8 +24068,8 @@ function StandardTable (_ref) {
|
|
|
24015
24068
|
});
|
|
24016
24069
|
}
|
|
24017
24070
|
|
|
24018
|
-
function ownKeys$
|
|
24019
|
-
function _objectSpread$
|
|
24071
|
+
function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24072
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24020
24073
|
function Table (props) {
|
|
24021
24074
|
var root = useStore();
|
|
24022
24075
|
var variant = useMemo(function () {
|
|
@@ -24024,15 +24077,15 @@ function Table (props) {
|
|
|
24024
24077
|
return config.variant;
|
|
24025
24078
|
}, [props.id]);
|
|
24026
24079
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
24027
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
|
24080
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$f({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$f({}, props))]
|
|
24028
24081
|
});
|
|
24029
24082
|
}
|
|
24030
24083
|
|
|
24031
24084
|
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24032
24085
|
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
|
|
24033
24086
|
function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24034
|
-
function ownKeys$
|
|
24035
|
-
function _objectSpread$
|
|
24087
|
+
function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24088
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24036
24089
|
function useAGGrid (_ref) {
|
|
24037
24090
|
var id = _ref.id,
|
|
24038
24091
|
filter = _ref.filter,
|
|
@@ -24126,7 +24179,7 @@ function useAGGrid (_ref) {
|
|
|
24126
24179
|
value = _ref3[1];
|
|
24127
24180
|
if (_idx == 0) {
|
|
24128
24181
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
|
24129
|
-
rdat.push(_objectSpread$
|
|
24182
|
+
rdat.push(_objectSpread$e(_objectSpread$e({}, rd), {}, {
|
|
24130
24183
|
grouping: [idx.toString()]
|
|
24131
24184
|
}));
|
|
24132
24185
|
var sp = key.split(':');
|
|
@@ -24261,16 +24314,16 @@ function useAGGrid (_ref) {
|
|
|
24261
24314
|
};
|
|
24262
24315
|
}
|
|
24263
24316
|
|
|
24264
|
-
var overlay = "overlay-lm0tm";
|
|
24317
|
+
var overlay$1 = "overlay-lm0tm";
|
|
24265
24318
|
var loader = "loader-LaXZy";
|
|
24266
24319
|
var flex = "flex-yQdda";
|
|
24267
24320
|
var bar = "bar-Y663f";
|
|
24268
24321
|
var value = "value-FCA-6";
|
|
24269
|
-
var css_248z$
|
|
24270
|
-
styleInject(css_248z$
|
|
24322
|
+
var css_248z$a = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
|
|
24323
|
+
styleInject(css_248z$a);
|
|
24271
24324
|
|
|
24272
|
-
function ownKeys$
|
|
24273
|
-
function _objectSpread$
|
|
24325
|
+
function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24326
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24274
24327
|
var AGChart = function AGChart(_ref) {
|
|
24275
24328
|
var data = _ref.data;
|
|
24276
24329
|
var groupedData = [];
|
|
@@ -24278,11 +24331,11 @@ var AGChart = function AGChart(_ref) {
|
|
|
24278
24331
|
data.forEach(function (dt) {
|
|
24279
24332
|
if (dt.count == 0) return;
|
|
24280
24333
|
if (groupedData.length > dt.grouping[0]) {
|
|
24281
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
|
24334
|
+
groupedData[dt.grouping[0]].push(_objectSpread$d(_objectSpread$d({}, dt), {}, {
|
|
24282
24335
|
count: Number(dt.count)
|
|
24283
24336
|
}));
|
|
24284
24337
|
} else {
|
|
24285
|
-
groupedData.push([_objectSpread$
|
|
24338
|
+
groupedData.push([_objectSpread$d(_objectSpread$d({}, dt), {}, {
|
|
24286
24339
|
count: Number(dt.count)
|
|
24287
24340
|
})]);
|
|
24288
24341
|
}
|
|
@@ -24323,8 +24376,8 @@ var AGChart = function AGChart(_ref) {
|
|
|
24323
24376
|
});
|
|
24324
24377
|
};
|
|
24325
24378
|
|
|
24326
|
-
function ownKeys$
|
|
24327
|
-
function _objectSpread$
|
|
24379
|
+
function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24380
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24328
24381
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
24329
24382
|
var id = _ref.id,
|
|
24330
24383
|
filter = _ref.filter,
|
|
@@ -24417,7 +24470,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
24417
24470
|
});
|
|
24418
24471
|
});
|
|
24419
24472
|
}
|
|
24420
|
-
return _objectSpread$
|
|
24473
|
+
return _objectSpread$c(_objectSpread$c({}, column), {}, {
|
|
24421
24474
|
cellRenderer: renderer
|
|
24422
24475
|
});
|
|
24423
24476
|
});
|
|
@@ -24544,7 +24597,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
24544
24597
|
checkedChildren: "Chart",
|
|
24545
24598
|
unCheckedChildren: "Grid"
|
|
24546
24599
|
}), /*#__PURE__*/jsx("div", {
|
|
24547
|
-
className: loading || state.loading ? overlay : undefined,
|
|
24600
|
+
className: loading || state.loading ? overlay$1 : undefined,
|
|
24548
24601
|
children: /*#__PURE__*/jsx("div", {
|
|
24549
24602
|
className: loading || state.loading ? loader : undefined
|
|
24550
24603
|
})
|
|
@@ -24691,8 +24744,8 @@ var CustomText$1 = observer(CustomText, {
|
|
|
24691
24744
|
forwardRef: true
|
|
24692
24745
|
});
|
|
24693
24746
|
|
|
24694
|
-
function ownKeys$
|
|
24695
|
-
function _objectSpread$
|
|
24747
|
+
function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24748
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24696
24749
|
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24697
24750
|
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
24698
24751
|
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -24755,7 +24808,7 @@ function useFilterBoxData (id) {
|
|
|
24755
24808
|
} finally {
|
|
24756
24809
|
_iterator.f();
|
|
24757
24810
|
}
|
|
24758
|
-
return _objectSpread$
|
|
24811
|
+
return _objectSpread$b(_objectSpread$b({}, state), ob);
|
|
24759
24812
|
}
|
|
24760
24813
|
return {
|
|
24761
24814
|
configuration: configuration,
|
|
@@ -24769,8 +24822,8 @@ function useFilterBoxData (id) {
|
|
|
24769
24822
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24770
24823
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
24771
24824
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24772
|
-
function ownKeys$
|
|
24773
|
-
function _objectSpread$
|
|
24825
|
+
function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24826
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24774
24827
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
24775
24828
|
var id = _ref.id,
|
|
24776
24829
|
onChangeFilter = _ref.onChangeFilter,
|
|
@@ -24798,7 +24851,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
24798
24851
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
|
|
24799
24852
|
mode: "single",
|
|
24800
24853
|
apiInterface: filter.requestOptions,
|
|
24801
|
-
wholeData: _objectSpread$
|
|
24854
|
+
wholeData: _objectSpread$a(_objectSpread$a({}, state.filter), {}, {
|
|
24802
24855
|
tab: tab
|
|
24803
24856
|
}),
|
|
24804
24857
|
mapping: filter.requestMapping,
|
|
@@ -25030,8 +25083,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
25030
25083
|
return false;
|
|
25031
25084
|
});
|
|
25032
25085
|
|
|
25033
|
-
function ownKeys$
|
|
25034
|
-
function _objectSpread$
|
|
25086
|
+
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25087
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25035
25088
|
function useUIBuilderData (id) {
|
|
25036
25089
|
var save = undefined;
|
|
25037
25090
|
var root = useStore();
|
|
@@ -25063,7 +25116,7 @@ function useUIBuilderData (id) {
|
|
|
25063
25116
|
var configuration = _useMemo.configuration;
|
|
25064
25117
|
useEffect(function () {
|
|
25065
25118
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
|
25066
|
-
return setFilter(_objectSpread$
|
|
25119
|
+
return setFilter(_objectSpread$9(_objectSpread$9({}, filter), {}, {
|
|
25067
25120
|
sessionGuid: res
|
|
25068
25121
|
}));
|
|
25069
25122
|
});
|
|
@@ -25086,8 +25139,8 @@ function useUIBuilderData (id) {
|
|
|
25086
25139
|
};
|
|
25087
25140
|
}
|
|
25088
25141
|
|
|
25089
|
-
function ownKeys$
|
|
25090
|
-
function _objectSpread$
|
|
25142
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25143
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25091
25144
|
function UIBuilder(_ref) {
|
|
25092
25145
|
var id = _ref.id;
|
|
25093
25146
|
var state = useUIBuilderData(id);
|
|
@@ -25114,7 +25167,7 @@ function UIBuilder(_ref) {
|
|
|
25114
25167
|
override = {
|
|
25115
25168
|
value: newFilter[item.field],
|
|
25116
25169
|
setValue: function setValue(newVal) {
|
|
25117
|
-
var newFilter = _objectSpread$
|
|
25170
|
+
var newFilter = _objectSpread$8({}, state.filter);
|
|
25118
25171
|
newFilter[item.field] = newVal;
|
|
25119
25172
|
state.setFilter(newFilter);
|
|
25120
25173
|
}
|
|
@@ -25162,7 +25215,7 @@ function UIBuilder(_ref) {
|
|
|
25162
25215
|
case 'AGGrid':
|
|
25163
25216
|
return /*#__PURE__*/jsx(AGGrid, {
|
|
25164
25217
|
id: item.id,
|
|
25165
|
-
filter: _objectSpread$
|
|
25218
|
+
filter: _objectSpread$8({
|
|
25166
25219
|
optionCodices: JSON.stringify(state.data)
|
|
25167
25220
|
}, state.filter),
|
|
25168
25221
|
override: item.id == 'AGGridTopOptionValues' ? {
|
|
@@ -25216,8 +25269,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
|
25216
25269
|
var supplier = "supplier-8sm0I";
|
|
25217
25270
|
var dealer = "dealer-xgnku";
|
|
25218
25271
|
var association = "association-b8uVW";
|
|
25219
|
-
var css_248z$
|
|
25220
|
-
styleInject(css_248z$
|
|
25272
|
+
var css_248z$9 = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n";
|
|
25273
|
+
styleInject(css_248z$9);
|
|
25221
25274
|
|
|
25222
25275
|
function getColorClass(data) {
|
|
25223
25276
|
switch (data.type) {
|
|
@@ -25322,8 +25375,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
|
25322
25375
|
};
|
|
25323
25376
|
var OrgItem$1 = observer(OrgItem);
|
|
25324
25377
|
|
|
25325
|
-
function ownKeys$
|
|
25326
|
-
function _objectSpread$
|
|
25378
|
+
function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25379
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25327
25380
|
function useTransformJson (_ref) {
|
|
25328
25381
|
var id = _ref.id;
|
|
25329
25382
|
var _useState = useState(),
|
|
@@ -25389,7 +25442,7 @@ function useTransformJson (_ref) {
|
|
|
25389
25442
|
}();
|
|
25390
25443
|
var transformData = function transformData(data, itemChain, parentOrgId) {
|
|
25391
25444
|
var _data$children;
|
|
25392
|
-
return _objectSpread$
|
|
25445
|
+
return _objectSpread$7(_objectSpread$7({}, data), {}, {
|
|
25393
25446
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
|
25394
25447
|
data: data,
|
|
25395
25448
|
configuration: configuration,
|
|
@@ -25450,8 +25503,8 @@ var openClass = "open-class--gGXs";
|
|
|
25450
25503
|
var breadcrumb = "breadcrumb-Z0VvH";
|
|
25451
25504
|
var selected = "selected-w-sfW";
|
|
25452
25505
|
var disabled = "disabled-0nado";
|
|
25453
|
-
var css_248z$
|
|
25454
|
-
styleInject(css_248z$
|
|
25506
|
+
var css_248z$8 = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
|
|
25507
|
+
styleInject(css_248z$8);
|
|
25455
25508
|
|
|
25456
25509
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
25457
25510
|
var open = _ref.open,
|
|
@@ -25483,8 +25536,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
|
25483
25536
|
|
|
25484
25537
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
|
25485
25538
|
var toolbarLeft = "toolbar-left-X9WRo";
|
|
25486
|
-
var css_248z$
|
|
25487
|
-
styleInject(css_248z$
|
|
25539
|
+
var css_248z$7 = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
|
|
25540
|
+
styleInject(css_248z$7);
|
|
25488
25541
|
|
|
25489
25542
|
var Legend = function Legend(props) {
|
|
25490
25543
|
return /*#__PURE__*/jsx(List$1, {
|
|
@@ -25538,8 +25591,8 @@ var Legend = function Legend(props) {
|
|
|
25538
25591
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
|
25539
25592
|
var mask = "mask-ssagp";
|
|
25540
25593
|
var transformWrapper = "transform-wrapper--8t0v";
|
|
25541
|
-
var css_248z$
|
|
25542
|
-
styleInject(css_248z$
|
|
25594
|
+
var css_248z$6 = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
|
|
25595
|
+
styleInject(css_248z$6);
|
|
25543
25596
|
|
|
25544
25597
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
|
25545
25598
|
var _children = _ref.children,
|
|
@@ -26048,8 +26101,8 @@ function useCatalogEditor (id) {
|
|
|
26048
26101
|
};
|
|
26049
26102
|
}
|
|
26050
26103
|
|
|
26051
|
-
function ownKeys$
|
|
26052
|
-
function _objectSpread$
|
|
26104
|
+
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26105
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26053
26106
|
function DragDropUpload(_ref) {
|
|
26054
26107
|
var api2Params = _ref.api2Params,
|
|
26055
26108
|
catalogId = _ref.catalogId,
|
|
@@ -26154,7 +26207,7 @@ function DragDropUpload(_ref) {
|
|
|
26154
26207
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
|
26155
26208
|
children: t('backoffice.catalogeditor.classimportstarted')
|
|
26156
26209
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
|
26157
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
|
26210
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$6(_objectSpread$6({}, props), {}, {
|
|
26158
26211
|
children: [/*#__PURE__*/jsx("p", {
|
|
26159
26212
|
className: "ant-upload-drag-icon",
|
|
26160
26213
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
|
@@ -26885,6 +26938,25 @@ function useModule (currentModule) {
|
|
|
26885
26938
|
//update the navigation supmenu for the packages module to include the current package id
|
|
26886
26939
|
root.contentStore.updateAdditionalElement('packages', menuItems, [(_location$pathname$sp = location.pathname.split('/').pop()) !== null && _location$pathname$sp !== void 0 ? _location$pathname$sp : '']);
|
|
26887
26940
|
}, [menuItems, location.pathname]);
|
|
26941
|
+
|
|
26942
|
+
//updating tools
|
|
26943
|
+
|
|
26944
|
+
useEffect(function () {
|
|
26945
|
+
var tools = [];
|
|
26946
|
+
if (packageId) tools.push({
|
|
26947
|
+
name: 'Konfigurator',
|
|
26948
|
+
parameters: {
|
|
26949
|
+
packageId: packageId
|
|
26950
|
+
},
|
|
26951
|
+
type: 'Configurator',
|
|
26952
|
+
id: 'WYSIWYG',
|
|
26953
|
+
startWidth: 600
|
|
26954
|
+
});
|
|
26955
|
+
root.contentStore.tools = tools;
|
|
26956
|
+
return function () {
|
|
26957
|
+
root.contentStore.tools = [];
|
|
26958
|
+
};
|
|
26959
|
+
}, [packageId]);
|
|
26888
26960
|
return {
|
|
26889
26961
|
updateNavigation: updateNavigationModule,
|
|
26890
26962
|
jwt: jwt,
|
|
@@ -26894,35 +26966,35 @@ function useModule (currentModule) {
|
|
|
26894
26966
|
};
|
|
26895
26967
|
}
|
|
26896
26968
|
|
|
26897
|
-
function ownKeys$
|
|
26898
|
-
function _objectSpread$
|
|
26969
|
+
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26970
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26899
26971
|
var exclusivityTypes = [{
|
|
26900
26972
|
label: 'series',
|
|
26901
|
-
data: _objectSpread$
|
|
26973
|
+
data: _objectSpread$5(_objectSpread$5({}, config$1['series']), {}, {
|
|
26902
26974
|
value: 'series'
|
|
26903
26975
|
}),
|
|
26904
26976
|
value: 'series'
|
|
26905
26977
|
}, {
|
|
26906
26978
|
label: 'features',
|
|
26907
|
-
data: _objectSpread$
|
|
26979
|
+
data: _objectSpread$5(_objectSpread$5({}, config$1['features']), {}, {
|
|
26908
26980
|
value: 'features'
|
|
26909
26981
|
}),
|
|
26910
26982
|
value: 'features'
|
|
26911
26983
|
}, {
|
|
26912
26984
|
label: 'detailInfos',
|
|
26913
|
-
data: _objectSpread$
|
|
26985
|
+
data: _objectSpread$5(_objectSpread$5({}, config$1['detailInfos']), {}, {
|
|
26914
26986
|
value: 'detailInfos'
|
|
26915
26987
|
}),
|
|
26916
26988
|
value: 'detailInfos'
|
|
26917
26989
|
}, {
|
|
26918
26990
|
label: 'serieItems',
|
|
26919
|
-
data: _objectSpread$
|
|
26991
|
+
data: _objectSpread$5(_objectSpread$5({}, config$1['serieItems']), {}, {
|
|
26920
26992
|
value: 'serieItems'
|
|
26921
26993
|
}),
|
|
26922
26994
|
value: 'serieItems'
|
|
26923
26995
|
}, {
|
|
26924
26996
|
label: 'featureOptions',
|
|
26925
|
-
data: _objectSpread$
|
|
26997
|
+
data: _objectSpread$5(_objectSpread$5({}, config$1['featureOptions']), {}, {
|
|
26926
26998
|
value: 'featureOptions'
|
|
26927
26999
|
}),
|
|
26928
27000
|
value: 'featureOptions'
|
|
@@ -26948,6 +27020,15 @@ function TableExclusivity () {
|
|
|
26948
27020
|
updateNavigation = _useModule.updateNavigation,
|
|
26949
27021
|
jwt = _useModule.jwt,
|
|
26950
27022
|
apiConfig = _useModule.apiConfig;
|
|
27023
|
+
var applicationData = useMemo(function () {
|
|
27024
|
+
return {
|
|
27025
|
+
type: selectedType.value,
|
|
27026
|
+
packageId: packageId,
|
|
27027
|
+
subType: selectedType.value === 'serieItems' ? 'series' : 'features',
|
|
27028
|
+
listType: selectedType.value === 'serieItems' ? 'items' : 'options',
|
|
27029
|
+
subTypeId: selectedType.value === 'serieItems' ? selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id : selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption._id
|
|
27030
|
+
};
|
|
27031
|
+
}, [selectedType, selectedSerie, selectedOption, packageId]);
|
|
26951
27032
|
var onChangeType = function onChangeType(value) {
|
|
26952
27033
|
if (value.value !== 'serieItems') {
|
|
26953
27034
|
setSelectedSerie(undefined);
|
|
@@ -27037,13 +27118,7 @@ function TableExclusivity () {
|
|
|
27037
27118
|
}), showTable() && /*#__PURE__*/jsx(Spreadsheet, {
|
|
27038
27119
|
gridId: (_ref = 'crud-grid_exclusivity_' + selectedType.value + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.seriesName.de)) !== null && _ref !== void 0 ? _ref : '',
|
|
27039
27120
|
jwt: jwt,
|
|
27040
|
-
applicationData:
|
|
27041
|
-
type: selectedType.value,
|
|
27042
|
-
packageId: packageId,
|
|
27043
|
-
subType: selectedType.value === 'serieItems' ? 'series' : 'features',
|
|
27044
|
-
listType: selectedType.value === 'serieItems' ? 'items' : 'options',
|
|
27045
|
-
subTypeId: selectedType.value === 'serieItems' ? selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id : selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption._id
|
|
27046
|
-
},
|
|
27121
|
+
applicationData: applicationData,
|
|
27047
27122
|
configuration: {
|
|
27048
27123
|
type: 'dotnetSSM',
|
|
27049
27124
|
apiInterface: {
|
|
@@ -27098,6 +27173,11 @@ function TablePackages () {
|
|
|
27098
27173
|
organizationId = _useNavigation.organizationId,
|
|
27099
27174
|
apiConfig = _useNavigation.apiConfig,
|
|
27100
27175
|
updateNavigation = _useNavigation.updateNavigation;
|
|
27176
|
+
var applicationData = useMemo(function () {
|
|
27177
|
+
return {
|
|
27178
|
+
organizationId: organizationId
|
|
27179
|
+
};
|
|
27180
|
+
}, [organizationId]);
|
|
27101
27181
|
useEffect(function () {
|
|
27102
27182
|
//remove the packages submenu when opening this module
|
|
27103
27183
|
root.contentStore.removeAdditionalElement('packages');
|
|
@@ -27108,9 +27188,7 @@ function TablePackages () {
|
|
|
27108
27188
|
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
27109
27189
|
gridId: 'packages-grid',
|
|
27110
27190
|
jwt: jwt,
|
|
27111
|
-
applicationData:
|
|
27112
|
-
organizationId: organizationId
|
|
27113
|
-
},
|
|
27191
|
+
applicationData: applicationData,
|
|
27114
27192
|
rowActions: [{
|
|
27115
27193
|
icon: /*#__PURE__*/jsx(EditOutlined, {}),
|
|
27116
27194
|
action: function action(_ref) {
|
|
@@ -27181,6 +27259,11 @@ function TableProperties () {
|
|
|
27181
27259
|
updateNavigation = _useModule.updateNavigation,
|
|
27182
27260
|
jwt = _useModule.jwt,
|
|
27183
27261
|
apiConfig = _useModule.apiConfig;
|
|
27262
|
+
var applicationData = useMemo(function () {
|
|
27263
|
+
return {
|
|
27264
|
+
packageId: packageId
|
|
27265
|
+
};
|
|
27266
|
+
}, [packageId]);
|
|
27184
27267
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
27185
27268
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
27186
27269
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -27200,9 +27283,7 @@ function TableProperties () {
|
|
|
27200
27283
|
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
27201
27284
|
gridId: 'crud-grid_tabgroups',
|
|
27202
27285
|
jwt: jwt,
|
|
27203
|
-
applicationData:
|
|
27204
|
-
packageId: packageId
|
|
27205
|
-
},
|
|
27286
|
+
applicationData: applicationData,
|
|
27206
27287
|
configuration: {
|
|
27207
27288
|
type: 'dotnetSSM',
|
|
27208
27289
|
apiInterface: {
|
|
@@ -27850,41 +27931,41 @@ var config = {
|
|
|
27850
27931
|
}
|
|
27851
27932
|
};
|
|
27852
27933
|
|
|
27853
|
-
function ownKeys$
|
|
27854
|
-
function _objectSpread$
|
|
27934
|
+
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27935
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27855
27936
|
var renamingTypes = [{
|
|
27856
27937
|
label: 'catalog',
|
|
27857
|
-
data: _objectSpread$
|
|
27938
|
+
data: _objectSpread$4(_objectSpread$4({}, config['catalog']), {}, {
|
|
27858
27939
|
value: 'catalog'
|
|
27859
27940
|
}),
|
|
27860
27941
|
value: 'catalog'
|
|
27861
27942
|
}, {
|
|
27862
27943
|
label: 'detailInfo',
|
|
27863
|
-
data: _objectSpread$
|
|
27944
|
+
data: _objectSpread$4(_objectSpread$4({}, config['detailInfo']), {}, {
|
|
27864
27945
|
value: 'detailInfo'
|
|
27865
27946
|
}),
|
|
27866
27947
|
value: 'detailInfo'
|
|
27867
27948
|
}, {
|
|
27868
27949
|
label: 'feature',
|
|
27869
|
-
data: _objectSpread$
|
|
27950
|
+
data: _objectSpread$4(_objectSpread$4({}, config['feature']), {}, {
|
|
27870
27951
|
value: 'feature'
|
|
27871
27952
|
}),
|
|
27872
27953
|
value: 'feature'
|
|
27873
27954
|
}, {
|
|
27874
27955
|
label: 'item',
|
|
27875
|
-
data: _objectSpread$
|
|
27956
|
+
data: _objectSpread$4(_objectSpread$4({}, config['item']), {}, {
|
|
27876
27957
|
value: 'item'
|
|
27877
27958
|
}),
|
|
27878
27959
|
value: 'item'
|
|
27879
27960
|
}, {
|
|
27880
27961
|
label: 'option',
|
|
27881
|
-
data: _objectSpread$
|
|
27962
|
+
data: _objectSpread$4(_objectSpread$4({}, config['option']), {}, {
|
|
27882
27963
|
value: 'option'
|
|
27883
27964
|
}),
|
|
27884
27965
|
value: 'option'
|
|
27885
27966
|
}, {
|
|
27886
27967
|
label: 'serie',
|
|
27887
|
-
data: _objectSpread$
|
|
27968
|
+
data: _objectSpread$4(_objectSpread$4({}, config['serie']), {}, {
|
|
27888
27969
|
value: 'serie'
|
|
27889
27970
|
}),
|
|
27890
27971
|
value: 'serie'
|
|
@@ -27901,6 +27982,12 @@ function TableRenaming () {
|
|
|
27901
27982
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
27902
27983
|
selectedType = _React$useState2[0],
|
|
27903
27984
|
setSelectedType = _React$useState2[1];
|
|
27985
|
+
var applicationData = useMemo(function () {
|
|
27986
|
+
return {
|
|
27987
|
+
type: selectedType.value,
|
|
27988
|
+
packageId: packageId
|
|
27989
|
+
};
|
|
27990
|
+
}, [packageId, selectedType]);
|
|
27904
27991
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
27905
27992
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
27906
27993
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -27931,10 +28018,7 @@ function TableRenaming () {
|
|
|
27931
28018
|
}), selectedType && /*#__PURE__*/jsx(Spreadsheet, {
|
|
27932
28019
|
gridId: 'renaming-grid_' + selectedType.value,
|
|
27933
28020
|
jwt: jwt,
|
|
27934
|
-
applicationData:
|
|
27935
|
-
type: selectedType.value,
|
|
27936
|
-
packageId: packageId
|
|
27937
|
-
},
|
|
28021
|
+
applicationData: applicationData,
|
|
27938
28022
|
configuration: {
|
|
27939
28023
|
type: 'dotnetSSM',
|
|
27940
28024
|
apiInterface: {
|
|
@@ -28224,8 +28308,8 @@ var Content = observer(ContentWrapper);
|
|
|
28224
28308
|
var layout = "layout-gqKsp";
|
|
28225
28309
|
var contentWrapper = "content-wrapper-mQSc0";
|
|
28226
28310
|
var detail = "detail-WeK8Q";
|
|
28227
|
-
var css_248z$
|
|
28228
|
-
styleInject(css_248z$
|
|
28311
|
+
var css_248z$5 = ".layout-gqKsp {\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n\n.content-wrapper-mQSc0 {\n overflow: auto;\n}\n\n.detail-WeK8Q .ant-drawer-content-wrapper {\n max-width: 100%;\n}\n\n.darkmode .layout-gqKsp {\n background-color: rgb(20, 20, 20);\n}\n\n.lightmode .layout-gqKsp {\n background-color: rgb(255, 255, 255);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode {\n background-color: #001529 !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode .arrows {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%2225%22 height%3D%2224%22 viewBox%3D%220 0 25 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M10.5 7L15.5 12L10.5 17%22 stroke%3D%22%23fff%22 stroke-width%3D%221.5%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"), linear-gradient(270deg, rgba(0, 21, 41, 1) 0%, rgba(0, 21, 41, 1) 72%, rgba(0, 21, 41, 0) 100%) !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #Profile > div {\n border-left: 1px solid black;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #welcomeText {\n border-right: 1px solid black;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #Profile {\n background-color: #001529 !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.lightmode {\n background-color: #fff !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode * {\n color: rgb(255, 255, 255);\n}\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.lightmode * {\n color: rgb(0, 0, 0);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW ::-webkit-scrollbar {\n width: 10px;\n height: 10px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode ::-webkit-scrollbar-track {\n box-shadow: inset 0 0 10px 10px #021129;\n border: solid 3px transparent;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px rgb(130, 130, 130);\n border: solid 3px transparent;\n border-radius: 10px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .lightmode ::-webkit-scrollbar-track {\n box-shadow: inset 0 0 10px 10px #ffffff;\n border: solid 3px transparent;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .lightmode ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px #bdbdbd;\n border: solid 3px transparent;\n border-radius: 10px;\n}\n";
|
|
28312
|
+
styleInject(css_248z$5);
|
|
28229
28313
|
|
|
28230
28314
|
function Detail(_ref) {
|
|
28231
28315
|
var _info$description, _container$current, _info$width, _info$submitButtonTex, _info$data;
|
|
@@ -28606,8 +28690,8 @@ var Modal$1 = observer(Modal);
|
|
|
28606
28690
|
|
|
28607
28691
|
var snow = "snow-14T01";
|
|
28608
28692
|
var sun = "sun-ijIPS";
|
|
28609
|
-
var css_248z = ".snow-14T01 {\n display: none;\n position: fixed;\n font-size: 1.5rem;\n top: -1vh;\n transform: translateY(0);\n animation: fall-XG-Wo 3s linear forwards;\n background: center / contain no-repeat url(\"data:image/svg+xml,%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 512 512%22 style%3D%22enable-background%3Anew 0 0 512 512%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cpath style%3D%22fill%3A%2399DDFF%3B%22 d%3D%22M512%2C256c0-9.217-7.479-16.696-16.696-16.696h-26.478l32.718-32.718%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-56.327%2C56.327h-83.813c-2.168-10.642-6.39-20.536-12.197-29.295%09l59.303-59.303h79.663c9.217%2C0%2C16.696-7.479%2C16.696-16.696s-7.479-16.696-16.696-16.696h-46.271l18.728-18.728%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-18.727%2C18.728V47.435c0-9.217-7.479-16.696-16.696-16.696%09c-9.217%2C0-16.696%2C7.479-16.696%2C16.696v79.663L301.991%2C186.4c-8.759-5.807-18.652-10.027-29.295-12.197V90.391l56.326-56.326%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-32.717%2C32.717V16.696C272.696%2C7.479%2C265.217%2C0%2C256%2C0%09s-16.696%2C7.479-16.696%2C16.696v26.478l-32.718-32.717c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609l56.327%2C56.326%09v83.813c-10.642%2C2.168-20.536%2C6.39-29.295%2C12.197l-59.303-59.303V47.435c0-9.217-7.479-16.696-16.696-16.696%09s-16.696%2C7.479-16.696%2C16.696v46.271L98.587%2C74.978c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609l18.728%2C18.728%09H47.435c-9.217%2C0-16.696%2C7.479-16.696%2C16.696c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696h79.663l59.303%2C59.303%09c-5.807%2C8.759-10.027%2C18.652-12.197%2C29.295H90.391l-56.326-56.326c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609%09l32.717%2C32.717H16.696C7.479%2C239.304%2C0%2C246.783%2C0%2C256s7.479%2C16.696%2C16.696%2C16.696h26.478l-32.717%2C32.718%09c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609c3.26%2C3.26%2C7.532%2C4.891%2C11.804%2C4.891s8.544-1.631%2C11.804-4.892l56.327-56.326h83.813%09c2.168%2C10.642%2C6.39%2C20.536%2C12.197%2C29.295l-59.303%2C59.303H47.435c-9.217%2C0-16.696%2C7.479-16.696%2C16.696%09c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696h46.271l-18.728%2C18.728c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609%09c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892l18.728-18.728v46.271c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09s16.696-7.479%2C16.696-16.696v-79.663l59.303-59.303c8.759%2C5.807%2C18.652%2C10.027%2C29.295%2C12.197v83.813l-56.326%2C56.326%09c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609s17.087%2C6.521%2C23.609%2C0l32.718-32.718v26.478c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09s16.696-7.479%2C16.696-16.696v-26.478l32.718%2C32.718c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-56.326-56.327v-83.813c10.642-2.168%2C20.536-6.39%2C29.295-12.197l59.303%2C59.303v79.663%09c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-46.271l18.728%2C18.728%09c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-18.727-18.727h46.271%09c9.217%2C0%2C16.696-7.479%2C16.696-16.696c0-9.217-7.479-16.696-16.696-16.696h-79.663L325.6%2C301.991%09c5.807-8.759%2C10.027-18.652%2C12.197-29.295h83.813l56.326%2C56.326c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-32.717-32.717h26.478C504.521%2C272.696%2C512%2C265.217%2C512%2C256z M256%2C306.087%09c-27.619%2C0-50.087-22.468-50.087-50.087s22.468-50.087%2C50.087-50.087s50.087%2C22.468%2C50.087%2C50.087S283.619%2C306.087%2C256%2C306.087z%22%2F%3E%3Cpath style%3D%22fill%3A%2373C0E6%3B%22 d%3D%22M306.087%2C256c0%2C27.619-22.468%2C50.087-50.087%2C50.087V512c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-26.478%09l32.718%2C32.718c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-56.326-56.327%09v-83.813c10.642-2.168%2C20.536-6.39%2C29.295-12.197l59.303%2C59.303v79.663c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-46.271l18.728%2C18.728c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-18.727-18.727h46.271c9.217%2C0%2C16.696-7.479%2C16.696-16.696c0-9.217-7.479-16.696-16.696-16.696%09h-79.663L325.6%2C301.991c5.807-8.759%2C10.027-18.652%2C12.197-29.295h83.813l56.326%2C56.326c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892%09s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-32.717-32.717h26.478c9.217%2C0%2C16.696-7.479%2C16.696-16.696%09s-7.479-16.696-16.696-16.696h-26.478l32.718-32.718c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-56.327%2C56.327%09h-83.813c-2.168-10.642-6.39-20.536-12.197-29.295l59.303-59.303h79.663c9.217%2C0%2C16.696-7.479%2C16.696-16.696%09s-7.479-16.696-16.696-16.696h-46.271l18.728-18.728c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-18.727%2C18.728%09V47.435c0-9.217-7.479-16.696-16.696-16.696c-9.217%2C0-16.696%2C7.479-16.696%2C16.696v79.663L301.991%2C186.4%09c-8.759-5.807-18.652-10.027-29.295-12.197V90.391l56.326-56.326c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0%09l-32.717%2C32.717V16.696C272.696%2C7.479%2C265.217%2C0%2C256%2C0v205.913C283.619%2C205.913%2C306.087%2C228.381%2C306.087%2C256z%22%2F%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n width: 20px;\n height: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .snow-14T01 {\n display: block;\n}\n\n@keyframes fall-XG-Wo {\n from {\n transform: translateY(0vh) translateX(-10vw);\n }\n to {\n transform: translateY(105vh) translateX(10vw);\n }\n}\n\n.sun-ijIPS {\n color: rgba(255, 255, 255, 0.65);\n line-height: 40px;\n margin-left: 10px;\n cursor: pointer;\n}\n";
|
|
28610
|
-
styleInject(css_248z);
|
|
28693
|
+
var css_248z$4 = ".snow-14T01 {\n display: none;\n position: fixed;\n font-size: 1.5rem;\n top: -1vh;\n transform: translateY(0);\n animation: fall-XG-Wo 3s linear forwards;\n background: center / contain no-repeat url(\"data:image/svg+xml,%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 512 512%22 style%3D%22enable-background%3Anew 0 0 512 512%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cpath style%3D%22fill%3A%2399DDFF%3B%22 d%3D%22M512%2C256c0-9.217-7.479-16.696-16.696-16.696h-26.478l32.718-32.718%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-56.327%2C56.327h-83.813c-2.168-10.642-6.39-20.536-12.197-29.295%09l59.303-59.303h79.663c9.217%2C0%2C16.696-7.479%2C16.696-16.696s-7.479-16.696-16.696-16.696h-46.271l18.728-18.728%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-18.727%2C18.728V47.435c0-9.217-7.479-16.696-16.696-16.696%09c-9.217%2C0-16.696%2C7.479-16.696%2C16.696v79.663L301.991%2C186.4c-8.759-5.807-18.652-10.027-29.295-12.197V90.391l56.326-56.326%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-32.717%2C32.717V16.696C272.696%2C7.479%2C265.217%2C0%2C256%2C0%09s-16.696%2C7.479-16.696%2C16.696v26.478l-32.718-32.717c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609l56.327%2C56.326%09v83.813c-10.642%2C2.168-20.536%2C6.39-29.295%2C12.197l-59.303-59.303V47.435c0-9.217-7.479-16.696-16.696-16.696%09s-16.696%2C7.479-16.696%2C16.696v46.271L98.587%2C74.978c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609l18.728%2C18.728%09H47.435c-9.217%2C0-16.696%2C7.479-16.696%2C16.696c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696h79.663l59.303%2C59.303%09c-5.807%2C8.759-10.027%2C18.652-12.197%2C29.295H90.391l-56.326-56.326c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609%09l32.717%2C32.717H16.696C7.479%2C239.304%2C0%2C246.783%2C0%2C256s7.479%2C16.696%2C16.696%2C16.696h26.478l-32.717%2C32.718%09c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609c3.26%2C3.26%2C7.532%2C4.891%2C11.804%2C4.891s8.544-1.631%2C11.804-4.892l56.327-56.326h83.813%09c2.168%2C10.642%2C6.39%2C20.536%2C12.197%2C29.295l-59.303%2C59.303H47.435c-9.217%2C0-16.696%2C7.479-16.696%2C16.696%09c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696h46.271l-18.728%2C18.728c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609%09c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892l18.728-18.728v46.271c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09s16.696-7.479%2C16.696-16.696v-79.663l59.303-59.303c8.759%2C5.807%2C18.652%2C10.027%2C29.295%2C12.197v83.813l-56.326%2C56.326%09c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609s17.087%2C6.521%2C23.609%2C0l32.718-32.718v26.478c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09s16.696-7.479%2C16.696-16.696v-26.478l32.718%2C32.718c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-56.326-56.327v-83.813c10.642-2.168%2C20.536-6.39%2C29.295-12.197l59.303%2C59.303v79.663%09c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-46.271l18.728%2C18.728%09c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-18.727-18.727h46.271%09c9.217%2C0%2C16.696-7.479%2C16.696-16.696c0-9.217-7.479-16.696-16.696-16.696h-79.663L325.6%2C301.991%09c5.807-8.759%2C10.027-18.652%2C12.197-29.295h83.813l56.326%2C56.326c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-32.717-32.717h26.478C504.521%2C272.696%2C512%2C265.217%2C512%2C256z M256%2C306.087%09c-27.619%2C0-50.087-22.468-50.087-50.087s22.468-50.087%2C50.087-50.087s50.087%2C22.468%2C50.087%2C50.087S283.619%2C306.087%2C256%2C306.087z%22%2F%3E%3Cpath style%3D%22fill%3A%2373C0E6%3B%22 d%3D%22M306.087%2C256c0%2C27.619-22.468%2C50.087-50.087%2C50.087V512c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-26.478%09l32.718%2C32.718c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-56.326-56.327%09v-83.813c10.642-2.168%2C20.536-6.39%2C29.295-12.197l59.303%2C59.303v79.663c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-46.271l18.728%2C18.728c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-18.727-18.727h46.271c9.217%2C0%2C16.696-7.479%2C16.696-16.696c0-9.217-7.479-16.696-16.696-16.696%09h-79.663L325.6%2C301.991c5.807-8.759%2C10.027-18.652%2C12.197-29.295h83.813l56.326%2C56.326c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892%09s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-32.717-32.717h26.478c9.217%2C0%2C16.696-7.479%2C16.696-16.696%09s-7.479-16.696-16.696-16.696h-26.478l32.718-32.718c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-56.327%2C56.327%09h-83.813c-2.168-10.642-6.39-20.536-12.197-29.295l59.303-59.303h79.663c9.217%2C0%2C16.696-7.479%2C16.696-16.696%09s-7.479-16.696-16.696-16.696h-46.271l18.728-18.728c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-18.727%2C18.728%09V47.435c0-9.217-7.479-16.696-16.696-16.696c-9.217%2C0-16.696%2C7.479-16.696%2C16.696v79.663L301.991%2C186.4%09c-8.759-5.807-18.652-10.027-29.295-12.197V90.391l56.326-56.326c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0%09l-32.717%2C32.717V16.696C272.696%2C7.479%2C265.217%2C0%2C256%2C0v205.913C283.619%2C205.913%2C306.087%2C228.381%2C306.087%2C256z%22%2F%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n width: 20px;\n height: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .snow-14T01 {\n display: block;\n}\n\n@keyframes fall-XG-Wo {\n from {\n transform: translateY(0vh) translateX(-10vw);\n }\n to {\n transform: translateY(105vh) translateX(10vw);\n }\n}\n\n.sun-ijIPS {\n color: rgba(255, 255, 255, 0.65);\n line-height: 40px;\n margin-left: 10px;\n cursor: pointer;\n}\n";
|
|
28694
|
+
styleInject(css_248z$4);
|
|
28611
28695
|
|
|
28612
28696
|
var SnowAnimation = function SnowAnimation(props) {
|
|
28613
28697
|
var _useState = useState(),
|
|
@@ -28759,6 +28843,500 @@ var MenuWrapper = function MenuWrapper() {
|
|
|
28759
28843
|
};
|
|
28760
28844
|
var Navigation = observer(MenuWrapper);
|
|
28761
28845
|
|
|
28846
|
+
var wrapper$1 = "wrapper-nouGZ";
|
|
28847
|
+
var css_248z$3 = ".wrapper-nouGZ {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n";
|
|
28848
|
+
styleInject(css_248z$3);
|
|
28849
|
+
|
|
28850
|
+
var wrapper = "wrapper-wuBie";
|
|
28851
|
+
var select = "select-w181d";
|
|
28852
|
+
var css_248z$2 = ".wrapper-wuBie {\n display: flex;\n gap: 16px;\n margin: 8px;\n justify-content: space-evenly;\n}\n\n.select-w181d {\n z-index: 10000;\n margin: 8px;\n flex-grow: 0.8;\n}\n.select-w181d div {\n border-color: grey !important;\n}\n.select-w181d div {\n box-shadow: none;\n box-shadow: initial;\n}\n";
|
|
28853
|
+
styleInject(css_248z$2);
|
|
28854
|
+
|
|
28855
|
+
var ArticleSelection = function ArticleSelection(_ref) {
|
|
28856
|
+
var _ref$state = _ref.state,
|
|
28857
|
+
articleList = _ref$state.articleList,
|
|
28858
|
+
articleCodex = _ref$state.articleCodex,
|
|
28859
|
+
setArticleCodex = _ref$state.setArticleCodex,
|
|
28860
|
+
setDoReset = _ref$state.setDoReset;
|
|
28861
|
+
var onChange = function onChange(action) {
|
|
28862
|
+
setArticleCodex(action.value);
|
|
28863
|
+
};
|
|
28864
|
+
var _useState = useState([]),
|
|
28865
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28866
|
+
groupedArticles = _useState2[0],
|
|
28867
|
+
setGroupedArticles = _useState2[1];
|
|
28868
|
+
var root = useStore();
|
|
28869
|
+
var formatGroupLabel = function formatGroupLabel(data) {
|
|
28870
|
+
return /*#__PURE__*/jsxs("div", {
|
|
28871
|
+
style: groupStyles,
|
|
28872
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
28873
|
+
children: data.label
|
|
28874
|
+
}), /*#__PURE__*/jsx("span", {
|
|
28875
|
+
style: groupBadgeStyles,
|
|
28876
|
+
children: data.options.length
|
|
28877
|
+
})]
|
|
28878
|
+
});
|
|
28879
|
+
};
|
|
28880
|
+
useEffect(function () {
|
|
28881
|
+
var groups = [];
|
|
28882
|
+
var _loop = function _loop() {
|
|
28883
|
+
var article = articleList[i];
|
|
28884
|
+
if (!article.groupName) article.groupName = 'NONE';
|
|
28885
|
+
var group = groups.find(function (g) {
|
|
28886
|
+
return g.label == article.groupName;
|
|
28887
|
+
});
|
|
28888
|
+
if (group) {
|
|
28889
|
+
group.options.push(article);
|
|
28890
|
+
} else {
|
|
28891
|
+
groups.push({
|
|
28892
|
+
label: article.groupName,
|
|
28893
|
+
options: [article]
|
|
28894
|
+
});
|
|
28895
|
+
}
|
|
28896
|
+
};
|
|
28897
|
+
for (var i = 0; i < articleList.length; i++) {
|
|
28898
|
+
_loop();
|
|
28899
|
+
}
|
|
28900
|
+
setGroupedArticles(groups);
|
|
28901
|
+
}, [articleList]);
|
|
28902
|
+
return /*#__PURE__*/jsxs("div", {
|
|
28903
|
+
className: wrapper,
|
|
28904
|
+
children: [/*#__PURE__*/jsx(PushpinOutlined, {
|
|
28905
|
+
onClick: function onClick() {
|
|
28906
|
+
return root.contentStore.toolPinned = !root.contentStore.toolPinned;
|
|
28907
|
+
}
|
|
28908
|
+
}), /*#__PURE__*/jsx(Select$2, {
|
|
28909
|
+
value: articleList.find(function (a) {
|
|
28910
|
+
return a.value == articleCodex;
|
|
28911
|
+
}),
|
|
28912
|
+
options: groupedArticles,
|
|
28913
|
+
formatGroupLabel: formatGroupLabel,
|
|
28914
|
+
onChange: onChange,
|
|
28915
|
+
className: select
|
|
28916
|
+
}), /*#__PURE__*/jsx(ReloadOutlined$1, {
|
|
28917
|
+
onClick: function onClick() {
|
|
28918
|
+
return setDoReset(true);
|
|
28919
|
+
}
|
|
28920
|
+
})]
|
|
28921
|
+
});
|
|
28922
|
+
};
|
|
28923
|
+
var groupStyles = {
|
|
28924
|
+
display: 'flex',
|
|
28925
|
+
alignItems: 'center',
|
|
28926
|
+
justifyContent: 'space-between'
|
|
28927
|
+
};
|
|
28928
|
+
var groupBadgeStyles = {
|
|
28929
|
+
backgroundColor: '#EBECF0',
|
|
28930
|
+
borderRadius: '2em',
|
|
28931
|
+
color: '#172B4D',
|
|
28932
|
+
display: 'inline-block',
|
|
28933
|
+
fontSize: 12,
|
|
28934
|
+
fontWeight: 'normal',
|
|
28935
|
+
lineHeight: '1',
|
|
28936
|
+
minWidth: 1,
|
|
28937
|
+
padding: '0.16em 0.5em',
|
|
28938
|
+
textAlign: 'center'
|
|
28939
|
+
};
|
|
28940
|
+
var ArticleSelection$1 = observer(ArticleSelection);
|
|
28941
|
+
|
|
28942
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28943
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28944
|
+
function useWysiwyg(_ref) {
|
|
28945
|
+
var tool = _ref.tool,
|
|
28946
|
+
visible = _ref.visible;
|
|
28947
|
+
var _useDivaCore = useDivaCore(),
|
|
28948
|
+
_useDivaCore$actions = _useDivaCore.actions,
|
|
28949
|
+
subscribeEvents = _useDivaCore$actions.subscribeEvents,
|
|
28950
|
+
unSubscribeEvents = _useDivaCore$actions.unSubscribeEvents;
|
|
28951
|
+
var root = useStore();
|
|
28952
|
+
var _useState = useState(false),
|
|
28953
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28954
|
+
doReset = _useState2[0],
|
|
28955
|
+
setDoReset = _useState2[1];
|
|
28956
|
+
var _useState3 = useState(),
|
|
28957
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
28958
|
+
pack = _useState4[0],
|
|
28959
|
+
setPackage = _useState4[1];
|
|
28960
|
+
var _useState5 = useState(),
|
|
28961
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
28962
|
+
articleCodex = _useState6[0],
|
|
28963
|
+
setArticleCodex = _useState6[1];
|
|
28964
|
+
var _useState7 = useState([]),
|
|
28965
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
28966
|
+
articleList = _useState8[0],
|
|
28967
|
+
setArticleList = _useState8[1];
|
|
28968
|
+
var _useState9 = useState(),
|
|
28969
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
28970
|
+
currentNav = _useState10[0],
|
|
28971
|
+
setCurrentNav = _useState10[1];
|
|
28972
|
+
var _useState11 = useState(),
|
|
28973
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
28974
|
+
doNavigate = _useState12[0],
|
|
28975
|
+
setDoNavigate = _useState12[1];
|
|
28976
|
+
useEffect(function () {
|
|
28977
|
+
if (visible) setDoReset(true);
|
|
28978
|
+
}, [visible]);
|
|
28979
|
+
var loadMask = /*#__PURE__*/function () {
|
|
28980
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(id) {
|
|
28981
|
+
var jwt, d;
|
|
28982
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
28983
|
+
while (1) switch (_context.prev = _context.next) {
|
|
28984
|
+
case 0:
|
|
28985
|
+
jwt = root.dataStore.jwt;
|
|
28986
|
+
_context.next = 3;
|
|
28987
|
+
return fetch(root.configurationStore.apiConfig.enricherService + '/packages/' + id + '/mask', {
|
|
28988
|
+
method: 'GET',
|
|
28989
|
+
headers: _objectSpread$3({}, jwt ? {
|
|
28990
|
+
Authorization: 'Bearer ' + jwt
|
|
28991
|
+
} : {})
|
|
28992
|
+
}).then(function (r) {
|
|
28993
|
+
return r.text();
|
|
28994
|
+
}).then(function (r) {
|
|
28995
|
+
try {
|
|
28996
|
+
return JSON.parse(r);
|
|
28997
|
+
} catch (_unused) {
|
|
28998
|
+
return undefined;
|
|
28999
|
+
}
|
|
29000
|
+
});
|
|
29001
|
+
case 3:
|
|
29002
|
+
d = _context.sent;
|
|
29003
|
+
setPackage(d);
|
|
29004
|
+
case 5:
|
|
29005
|
+
case "end":
|
|
29006
|
+
return _context.stop();
|
|
29007
|
+
}
|
|
29008
|
+
}, _callee);
|
|
29009
|
+
}));
|
|
29010
|
+
return function loadMask(_x) {
|
|
29011
|
+
return _ref2.apply(this, arguments);
|
|
29012
|
+
};
|
|
29013
|
+
}();
|
|
29014
|
+
useEffect(function () {
|
|
29015
|
+
if (doReset) {
|
|
29016
|
+
if (currentNav) setDoNavigate(currentNav);
|
|
29017
|
+
loadMask(tool.parameters.packageId).then(function () {
|
|
29018
|
+
return setDoReset(false);
|
|
29019
|
+
});
|
|
29020
|
+
}
|
|
29021
|
+
}, [doReset]);
|
|
29022
|
+
var onEventCalled = /*#__PURE__*/function () {
|
|
29023
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(e) {
|
|
29024
|
+
var catalogData, articles, key, article;
|
|
29025
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
29026
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
29027
|
+
case 0:
|
|
29028
|
+
if (e.type === 'onArticlesLoaded') {
|
|
29029
|
+
catalogData = e.data.catalogData;
|
|
29030
|
+
articles = [];
|
|
29031
|
+
for (key in catalogData.allCatalogArticles) {
|
|
29032
|
+
article = catalogData.allCatalogArticles[key];
|
|
29033
|
+
articles.push({
|
|
29034
|
+
value: article.articleCodex,
|
|
29035
|
+
label: article.name + ' (' + article.articleCodex + ')',
|
|
29036
|
+
groupName: article.groupName
|
|
29037
|
+
});
|
|
29038
|
+
}
|
|
29039
|
+
setArticleList(articles);
|
|
29040
|
+
}
|
|
29041
|
+
if (e.type === 'navigatedToOption') {
|
|
29042
|
+
setCurrentNav(e.data.optionCodex);
|
|
29043
|
+
}
|
|
29044
|
+
case 2:
|
|
29045
|
+
case "end":
|
|
29046
|
+
return _context2.stop();
|
|
29047
|
+
}
|
|
29048
|
+
}, _callee2);
|
|
29049
|
+
}));
|
|
29050
|
+
return function onEventCalled(_x2) {
|
|
29051
|
+
return _ref3.apply(this, arguments);
|
|
29052
|
+
};
|
|
29053
|
+
}();
|
|
29054
|
+
useEffect(function () {
|
|
29055
|
+
subscribeEvents(onEventCalled);
|
|
29056
|
+
return function () {
|
|
29057
|
+
return unSubscribeEvents(onEventCalled);
|
|
29058
|
+
};
|
|
29059
|
+
}, []);
|
|
29060
|
+
var settigns = {
|
|
29061
|
+
language: 'DE',
|
|
29062
|
+
showSelectionModeZero: true,
|
|
29063
|
+
viewConfig: {
|
|
29064
|
+
allowComma: true,
|
|
29065
|
+
tabOrientation: 'horizontal',
|
|
29066
|
+
tabOrientationMobile: 'horizontal',
|
|
29067
|
+
doShowConfSettingsExpander: false,
|
|
29068
|
+
showSingleOPVOnly: true,
|
|
29069
|
+
hideFirstStepWhenSingleOPVOnly: false,
|
|
29070
|
+
hideMeasureUnit: true,
|
|
29071
|
+
dontShowOrbitInMobile: false,
|
|
29072
|
+
hideSingleOPVOnlyAlways: true,
|
|
29073
|
+
hideElementInfo: true,
|
|
29074
|
+
hideConfigSingle: true,
|
|
29075
|
+
plannerType: 'NONE',
|
|
29076
|
+
hideCloseButton: true,
|
|
29077
|
+
hideMobileFolder: true,
|
|
29078
|
+
showSettingsFolder: true,
|
|
29079
|
+
hideRalColorFilter: false,
|
|
29080
|
+
hideSearchBar: false,
|
|
29081
|
+
alwaysShowSearchBar: true,
|
|
29082
|
+
displayMetaDatas: ['codex'],
|
|
29083
|
+
headerInConfigPalette: 'NameOfTabGroup',
|
|
29084
|
+
selectAccessoiresWithToggle: false,
|
|
29085
|
+
doShowConfSettingsMaxMinExpander: false,
|
|
29086
|
+
forceSettingsHeaderInScrollContainer: false,
|
|
29087
|
+
hideSummary: false,
|
|
29088
|
+
LoadSummaryType: 'SUMMARY_OPTIONTREE',
|
|
29089
|
+
useArticleNameAsTitle: false,
|
|
29090
|
+
doShowFunctions: false,
|
|
29091
|
+
tabGroupsDoShowIcons: false,
|
|
29092
|
+
useIsOptionDefinedWarning: true,
|
|
29093
|
+
languagesForInput: ['DE', 'FR', 'IT'],
|
|
29094
|
+
autoFocusForInput: true,
|
|
29095
|
+
hideWarningDuringUserInput: false,
|
|
29096
|
+
cssVariables: {
|
|
29097
|
+
primaryColor: '#db3433',
|
|
29098
|
+
secondaryColor: '#4a4543',
|
|
29099
|
+
thirdColor: '#F3F3F3'
|
|
29100
|
+
},
|
|
29101
|
+
disableLandscape: true,
|
|
29102
|
+
settingsSizes: {
|
|
29103
|
+
sizeGallery: '50px',
|
|
29104
|
+
sizeDefault: '100%'
|
|
29105
|
+
},
|
|
29106
|
+
hideConfigFoldArrow: true,
|
|
29107
|
+
tooltipPosition: 'left-center',
|
|
29108
|
+
clientEvents: ['onWebPlanerConfigChange', 'onArticlesLoaded']
|
|
29109
|
+
},
|
|
29110
|
+
useMask: true,
|
|
29111
|
+
templateConfig: {
|
|
29112
|
+
Layout: 'wysiwyg',
|
|
29113
|
+
BasketButton: 'standard',
|
|
29114
|
+
NavigationButton: 'standard',
|
|
29115
|
+
PlannerUIVariants: 'hidden',
|
|
29116
|
+
PlannerMsg: 'standard',
|
|
29117
|
+
NavBar3D: 'standard',
|
|
29118
|
+
SettingsHeader: 'standard',
|
|
29119
|
+
PaletteGroup: 'standard',
|
|
29120
|
+
TabGroupHorizontal: 'gold',
|
|
29121
|
+
DropDownText: 'standard',
|
|
29122
|
+
ItemGallery: 'serious',
|
|
29123
|
+
ItemDefault: 'standard',
|
|
29124
|
+
ItemAccessoire: 'standard',
|
|
29125
|
+
ItemRoom: 'standard',
|
|
29126
|
+
RoomListSelection: 'standard',
|
|
29127
|
+
SummaryOptionTree: 'standard',
|
|
29128
|
+
IsActive: 'standard',
|
|
29129
|
+
BarrierActions: 'standard',
|
|
29130
|
+
ProductHeaderFunction: 'standard'
|
|
29131
|
+
}
|
|
29132
|
+
};
|
|
29133
|
+
return {
|
|
29134
|
+
articleList: articleList,
|
|
29135
|
+
setArticleList: setArticleList,
|
|
29136
|
+
articleCodex: articleCodex,
|
|
29137
|
+
setArticleCodex: setArticleCodex,
|
|
29138
|
+
settigns: settigns,
|
|
29139
|
+
pack: pack,
|
|
29140
|
+
doReset: doReset,
|
|
29141
|
+
setDoReset: setDoReset,
|
|
29142
|
+
doNavigate: doNavigate
|
|
29143
|
+
};
|
|
29144
|
+
}
|
|
29145
|
+
|
|
29146
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29147
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29148
|
+
var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
29149
|
+
var _state$articleCodex;
|
|
29150
|
+
var tool = _ref.tool,
|
|
29151
|
+
visible = _ref.visible;
|
|
29152
|
+
var _useDivaCore = useDivaCore(),
|
|
29153
|
+
organizationId = _useDivaCore.state.organization._id;
|
|
29154
|
+
var root = useStore();
|
|
29155
|
+
var state = useWysiwyg({
|
|
29156
|
+
tool: tool,
|
|
29157
|
+
visible: visible
|
|
29158
|
+
});
|
|
29159
|
+
return /*#__PURE__*/jsxs("div", {
|
|
29160
|
+
className: wrapper$1,
|
|
29161
|
+
children: [/*#__PURE__*/jsx(ArticleSelection$1, {
|
|
29162
|
+
state: state
|
|
29163
|
+
}), state.pack && !state.doReset && /*#__PURE__*/jsx("div", {
|
|
29164
|
+
hidden: !state.articleCodex,
|
|
29165
|
+
style: {
|
|
29166
|
+
height: 'calc(100% - 71px)'
|
|
29167
|
+
},
|
|
29168
|
+
children: /*#__PURE__*/jsx(WebPlannerReact, {
|
|
29169
|
+
settings: state.settigns,
|
|
29170
|
+
parameters: _objectSpread$2(_objectSpread$2({
|
|
29171
|
+
articleCodexes: (_state$articleCodex = state.articleCodex) !== null && _state$articleCodex !== void 0 ? _state$articleCodex : '',
|
|
29172
|
+
variantValues: '',
|
|
29173
|
+
resetArticle: '',
|
|
29174
|
+
disableToggle: '1',
|
|
29175
|
+
startDivaNr: 'DIVA-1234567890'
|
|
29176
|
+
}, !!state.doNavigate ? {
|
|
29177
|
+
initMode: 'OPENCONFIGTABGROUP',
|
|
29178
|
+
opt: state.doNavigate
|
|
29179
|
+
} : {}), {}, {
|
|
29180
|
+
catalogCodex: state.pack.catalogCodex,
|
|
29181
|
+
accountGuid: state.pack.accountId,
|
|
29182
|
+
returnTo: 'DONT_SAVE_BASKET',
|
|
29183
|
+
organizationId: organizationId,
|
|
29184
|
+
no3DConnection: 'true'
|
|
29185
|
+
}),
|
|
29186
|
+
internal: {
|
|
29187
|
+
catalogMask: state.pack,
|
|
29188
|
+
actions: {
|
|
29189
|
+
toggleLoading: root.contentStore.toggleToolLoading.bind(root.contentStore)
|
|
29190
|
+
}
|
|
29191
|
+
},
|
|
29192
|
+
isVisible: !!state.articleCodex
|
|
29193
|
+
}, state.articleCodex)
|
|
29194
|
+
})]
|
|
29195
|
+
});
|
|
29196
|
+
};
|
|
29197
|
+
|
|
29198
|
+
var toolsSelector = "tools-selector-BHV3Z";
|
|
29199
|
+
var container = "container-BucHG";
|
|
29200
|
+
var pinned = "pinned-vk2AT";
|
|
29201
|
+
var draghandle = "draghandle-f5b0N";
|
|
29202
|
+
var midHandle = "mid-handle--qh50";
|
|
29203
|
+
var toolItem = "tool-item-KyKgQ";
|
|
29204
|
+
var sel = "sel-iUm8X";
|
|
29205
|
+
var css_248z$1 = ".wrapper-njnwX {\n position: absolute;\n top: 0px;\n}\n.tools-selector-BHV3Z {\n width: 36px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: 16px;\n align-items: center;\n background-color: #001529;\n color: rgba(255, 255, 255, 0.85);\n padding-top: 16px;\n height: 100%;\n}\n\n.container-BucHG {\n right: 37px;\n height: 100%;\n width: 100%;\n position: absolute;\n background-color: #fff;\n z-index: 100;\n}\n\n.pinned-vk2AT.container-BucHG {\n position: relative;\n right: auto;\n right: initial;\n}\n\n.draghandle-f5b0N {\n position: absolute;\n height: 100%;\n top: 0px;\n left: 0;\n width: 2px;\n cursor: ew-resize;\n background-color: gray;\n}\n\n.mid-handle--qh50 {\n position: absolute;\n width: 5px;\n height: 32px;\n background-color: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-left: 2px solid grey;\n border-right: 2px solid grey;\n}\n\n.tool-item-KyKgQ {\n writing-mode: vertical-lr;\n padding: 10px;\n text-orientation: mixed;\n cursor: pointer;\n position: relative;\n}\n\n.tool-item-KyKgQ::after {\n content: '';\n position: absolute;\n width: 3px;\n height: 0px;\n left: 0;\n bottom: 50%;\n background-color: rgba(255, 255, 255, 0.85);\n transition: all ease-in-out 0.2s;\n}\n.tool-item-KyKgQ:hover::after,\n.sel-iUm8X::after {\n height: 100%;\n bottom: 0;\n}\n";
|
|
29206
|
+
styleInject(css_248z$1);
|
|
29207
|
+
|
|
29208
|
+
var overlay = "overlay-Dr5pn";
|
|
29209
|
+
var loading = "loading-Ed3rZ";
|
|
29210
|
+
var css_248z = ".overlay-Dr5pn {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: rgba(255, 255, 255, 0.6);\n z-index: 10000;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n\n.loading-Ed3rZ {\n margin: 0 auto;\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n.loading-Ed3rZ div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 64px;\n height: 64px;\n margin: 8px;\n border: 8px solid #b6b6b6;\n border-radius: 50%;\n animation: loading-Ed3rZ 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #b6b6b6 transparent transparent transparent;\n}\n.loading-Ed3rZ div:nth-child(1) {\n animation-delay: -0.45s;\n}\n.loading-Ed3rZ div:nth-child(2) {\n animation-delay: -0.3s;\n}\n.loading-Ed3rZ div:nth-child(3) {\n animation-delay: -0.15s;\n}\n@keyframes loading-Ed3rZ {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n";
|
|
29211
|
+
styleInject(css_248z);
|
|
29212
|
+
|
|
29213
|
+
function Spinner() {
|
|
29214
|
+
var _useState = useState(false),
|
|
29215
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29216
|
+
showSpinner = _useState2[0],
|
|
29217
|
+
setShowSpinner = _useState2[1];
|
|
29218
|
+
var root = useStore();
|
|
29219
|
+
useEffect(function () {
|
|
29220
|
+
if (root.contentStore.isToolLoading) {
|
|
29221
|
+
setShowSpinner(true);
|
|
29222
|
+
} else if (!root.contentStore.isToolLoading) {
|
|
29223
|
+
setShowSpinner(false);
|
|
29224
|
+
}
|
|
29225
|
+
}, [root.contentStore.isToolLoading]);
|
|
29226
|
+
if (!showSpinner) {
|
|
29227
|
+
return /*#__PURE__*/jsx(Fragment, {});
|
|
29228
|
+
}
|
|
29229
|
+
return /*#__PURE__*/jsx("div", {
|
|
29230
|
+
className: overlay,
|
|
29231
|
+
id: "diva-loader",
|
|
29232
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
29233
|
+
className: loading,
|
|
29234
|
+
children: [/*#__PURE__*/jsx("div", {}), /*#__PURE__*/jsx("div", {}), /*#__PURE__*/jsx("div", {}), /*#__PURE__*/jsx("div", {})]
|
|
29235
|
+
})
|
|
29236
|
+
});
|
|
29237
|
+
}
|
|
29238
|
+
var Spinner$1 = observer(Spinner);
|
|
29239
|
+
|
|
29240
|
+
var Toolbar = function Toolbar(_ref) {
|
|
29241
|
+
_objectDestructuringEmpty(_ref);
|
|
29242
|
+
var root = useStore();
|
|
29243
|
+
var _useState = useState(0),
|
|
29244
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29245
|
+
width = _useState2[0],
|
|
29246
|
+
setWidth = _useState2[1];
|
|
29247
|
+
var _useState3 = useState(false),
|
|
29248
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
29249
|
+
mouseDown = _useState4[0],
|
|
29250
|
+
setMouseDown = _useState4[1];
|
|
29251
|
+
var handler = function handler(mouseDownEvent) {
|
|
29252
|
+
var startWidth = width;
|
|
29253
|
+
var startPosition = {
|
|
29254
|
+
x: mouseDownEvent.pageX,
|
|
29255
|
+
y: mouseDownEvent.pageY
|
|
29256
|
+
};
|
|
29257
|
+
setMouseDown(true);
|
|
29258
|
+
function onMouseMove(mouseMoveEvent) {
|
|
29259
|
+
setWidth(startWidth + startPosition.x - mouseMoveEvent.pageX);
|
|
29260
|
+
}
|
|
29261
|
+
function onMouseUp() {
|
|
29262
|
+
setMouseDown(false);
|
|
29263
|
+
document.body.removeEventListener('mousemove', onMouseMove);
|
|
29264
|
+
}
|
|
29265
|
+
document.body.addEventListener('mousemove', onMouseMove);
|
|
29266
|
+
document.body.addEventListener('mouseup', onMouseUp, {
|
|
29267
|
+
once: true
|
|
29268
|
+
});
|
|
29269
|
+
};
|
|
29270
|
+
useEffect(function () {
|
|
29271
|
+
var tool = root.contentStore.tools.find(function (t) {
|
|
29272
|
+
return t.id === root.contentStore.openedToolId;
|
|
29273
|
+
});
|
|
29274
|
+
setWidth(tool ? tool.startWidth : 0);
|
|
29275
|
+
}, [root.contentStore.openedToolId]);
|
|
29276
|
+
useEffect(function () {
|
|
29277
|
+
if (width < 300 && !mouseDown) {
|
|
29278
|
+
root.contentStore.hideTools = true;
|
|
29279
|
+
setWidth(0);
|
|
29280
|
+
}
|
|
29281
|
+
}, [width, mouseDown]);
|
|
29282
|
+
var tool = root.contentStore.tools.find(function (t) {
|
|
29283
|
+
return t.id === root.contentStore.openedToolId;
|
|
29284
|
+
});
|
|
29285
|
+
var ToolElement = undefined;
|
|
29286
|
+
switch (tool === null || tool === void 0 ? void 0 : tool.type) {
|
|
29287
|
+
case 'Configurator':
|
|
29288
|
+
ToolElement = /*#__PURE__*/jsx(Wsyiwyg, {
|
|
29289
|
+
tool: tool,
|
|
29290
|
+
visible: !root.contentStore.hideTools
|
|
29291
|
+
});
|
|
29292
|
+
break;
|
|
29293
|
+
case 'Tabel':
|
|
29294
|
+
ToolElement = /*#__PURE__*/jsx(Fragment, {
|
|
29295
|
+
children: "TO DO"
|
|
29296
|
+
});
|
|
29297
|
+
break;
|
|
29298
|
+
}
|
|
29299
|
+
useEffect(function () {
|
|
29300
|
+
if (!root.contentStore.hideTools) {
|
|
29301
|
+
if (tool) setWidth(tool === null || tool === void 0 ? void 0 : tool.startWidth);
|
|
29302
|
+
}
|
|
29303
|
+
}, [root.contentStore.hideTools]);
|
|
29304
|
+
if (root.contentStore.tools.length === 0) return /*#__PURE__*/jsx(Fragment, {});
|
|
29305
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
29306
|
+
children: [ToolElement && /*#__PURE__*/jsxs("div", {
|
|
29307
|
+
className: classnames(container, root.contentStore.toolPinned ? pinned : undefined),
|
|
29308
|
+
hidden: root.contentStore.hideTools,
|
|
29309
|
+
style: {
|
|
29310
|
+
width: width
|
|
29311
|
+
},
|
|
29312
|
+
children: [/*#__PURE__*/jsx(Spinner$1, {}), ToolElement, /*#__PURE__*/jsx("div", {
|
|
29313
|
+
className: draghandle,
|
|
29314
|
+
onMouseDown: handler,
|
|
29315
|
+
children: /*#__PURE__*/jsx("div", {
|
|
29316
|
+
className: midHandle
|
|
29317
|
+
})
|
|
29318
|
+
})]
|
|
29319
|
+
}), /*#__PURE__*/jsx("div", {
|
|
29320
|
+
className: toolsSelector,
|
|
29321
|
+
children: root.contentStore.tools.map(function (t) {
|
|
29322
|
+
return /*#__PURE__*/jsx("div", {
|
|
29323
|
+
className: classnames(toolItem, t.id === root.contentStore.openedToolId ? sel : undefined),
|
|
29324
|
+
onClick: function onClick() {
|
|
29325
|
+
if (root.contentStore.openedToolId != t.id) {
|
|
29326
|
+
root.contentStore.openedToolId = t.id;
|
|
29327
|
+
root.contentStore.hideTools = false;
|
|
29328
|
+
} else {
|
|
29329
|
+
root.contentStore.hideTools = !root.contentStore.hideTools;
|
|
29330
|
+
}
|
|
29331
|
+
},
|
|
29332
|
+
children: t.name
|
|
29333
|
+
});
|
|
29334
|
+
})
|
|
29335
|
+
})]
|
|
29336
|
+
});
|
|
29337
|
+
};
|
|
29338
|
+
var Toolbar$1 = observer(Toolbar);
|
|
29339
|
+
|
|
28762
29340
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28763
29341
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28764
29342
|
function Router() {
|
|
@@ -28784,7 +29362,7 @@ function Router() {
|
|
|
28784
29362
|
return flat(menu, '');
|
|
28785
29363
|
}, [root.configurationStore.hasConfig]);
|
|
28786
29364
|
return /*#__PURE__*/jsx(Fragment, {
|
|
28787
|
-
children: routes.length && /*#__PURE__*/jsx(Routes, {
|
|
29365
|
+
children: !!routes.length && /*#__PURE__*/jsx(Routes, {
|
|
28788
29366
|
children: routes.map(function (route) {
|
|
28789
29367
|
return /*#__PURE__*/jsx(Route, {
|
|
28790
29368
|
path: route.path + (route.haSubRoutes ? '/*' : ''),
|
|
@@ -28837,7 +29415,7 @@ var MainLayout = function MainLayout() {
|
|
|
28837
29415
|
left: true
|
|
28838
29416
|
})]
|
|
28839
29417
|
})
|
|
28840
|
-
}), /*#__PURE__*/jsx(Modal$1, {})]
|
|
29418
|
+
}), /*#__PURE__*/jsx(Toolbar$1, {}), /*#__PURE__*/jsx(Modal$1, {})]
|
|
28841
29419
|
})
|
|
28842
29420
|
});
|
|
28843
29421
|
};
|