@crystaldesign/diva-backoffice 25.1.0-beta.3 → 25.1.0-beta.4
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 +1440 -1147
- package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/MainLayout.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Navigation/types.d.ts +9 -4
- package/build/types/backoffice/src/layout/Navigation/types.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts +8 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts +2 -6
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts +2 -11
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts +2 -6
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/useWysiwygContentItem.d.ts +2 -7
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/useWysiwygContentItem.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/index.d.ts +3 -2
- package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ContentStore.d.ts +4 -19
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ToolBarStore.d.ts +30 -0
- package/build/types/backoffice/src/store/ToolBarStore.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/Form/types.d.ts +2 -6
- package/build/types/backoffice/src/ui/Form/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts +11 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +9 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts +9 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/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/modules/TableTabGroups/index.d.ts.map +1 -1
- package/package.json +9 -9
- package/build/types/backoffice/src/layout/Toolbar/Spinner/index.d.ts +0 -7
- package/build/types/backoffice/src/layout/Toolbar/Spinner/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SpreadsheetWrapper/index.d.ts +0 -4
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SpreadsheetWrapper/index.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/SpreadsheetWrapper/index.d.ts +0 -4
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/SpreadsheetWrapper/index.d.ts.map +0 -1
package/build/esm/index.js
CHANGED
|
@@ -75,7 +75,7 @@ import DeleteOutlined from '@ant-design/icons/DeleteOutlined';
|
|
|
75
75
|
import JSONEditor from 'jsoneditor';
|
|
76
76
|
import 'jsoneditor/dist/jsoneditor.css';
|
|
77
77
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
78
|
-
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, UploadOutlined as UploadOutlined$1,
|
|
78
|
+
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, UploadOutlined as UploadOutlined$1, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
|
|
79
79
|
import classnames from 'classnames';
|
|
80
80
|
import RTFEditor from '@crystaldesign/rtf-editor';
|
|
81
81
|
import debounce from 'lodash/debounce';
|
|
@@ -119,18 +119,19 @@ import QuestionOutlined from '@ant-design/icons/QuestionOutlined';
|
|
|
119
119
|
import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch';
|
|
120
120
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
121
121
|
import Descriptions$1 from 'antd/es/descriptions';
|
|
122
|
-
import { Spreadsheet as Spreadsheet$
|
|
122
|
+
import { Spreadsheet as Spreadsheet$1 } from '@crystaldesign/spreadsheet';
|
|
123
123
|
import EditOutlined from '@ant-design/icons/lib/icons/EditOutlined';
|
|
124
124
|
import Checkbox$1 from 'antd/es/checkbox/Checkbox';
|
|
125
125
|
import Modal$3 from 'antd/es/modal';
|
|
126
126
|
import Switch$1 from 'antd/es/switch';
|
|
127
127
|
import Layout$1 from 'antd/es/layout';
|
|
128
128
|
import Menu from 'antd/es/menu';
|
|
129
|
-
import { DoubleLeftOutlined } from '@ant-design/icons/lib/icons';
|
|
129
|
+
import { DoubleLeftOutlined, PushpinFilled } from '@ant-design/icons/lib/icons';
|
|
130
130
|
import { WebPlannerReact } from '@crystaldesign/diva-web-planner-react';
|
|
131
|
-
import Select$2 from 'react-select';
|
|
132
131
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
133
132
|
import { ContentItemComponent } from '@crystaldesign/content-item';
|
|
133
|
+
import PushpinOutlined from '@ant-design/icons/lib/icons/PushpinOutlined';
|
|
134
|
+
import Spin$1 from 'antd/es/spin';
|
|
134
135
|
|
|
135
136
|
(function() {
|
|
136
137
|
const env = {"STAGE":"production"};
|
|
@@ -147,8 +148,8 @@ import { ContentItemComponent } from '@crystaldesign/content-item';
|
|
|
147
148
|
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; } } }; }
|
|
148
149
|
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; } }
|
|
149
150
|
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; }
|
|
150
|
-
function ownKeys$
|
|
151
|
-
function _objectSpread$
|
|
151
|
+
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; }
|
|
152
|
+
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; }
|
|
152
153
|
var LOG$e = getLogger('Backoffice', 'ApplyMapping');
|
|
153
154
|
function applyMapping (_ref) {
|
|
154
155
|
var mappable = _ref.mappable,
|
|
@@ -169,10 +170,10 @@ function applyMapping (_ref) {
|
|
|
169
170
|
var newValue = {};
|
|
170
171
|
newValue[newKey] = valueToAdd;
|
|
171
172
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
|
172
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$
|
|
173
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$O(_objectSpread$O({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
|
173
174
|
return startValue;
|
|
174
175
|
}
|
|
175
|
-
if (newIdx == 1) return _objectSpread$
|
|
176
|
+
if (newIdx == 1) return _objectSpread$O(_objectSpread$O({}, startValue), newValue);
|
|
176
177
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
|
177
178
|
};
|
|
178
179
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
|
@@ -473,8 +474,8 @@ function getLeafColumns(columns) {
|
|
|
473
474
|
});
|
|
474
475
|
}
|
|
475
476
|
|
|
476
|
-
function ownKeys$
|
|
477
|
-
function _objectSpread$
|
|
477
|
+
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; }
|
|
478
|
+
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; }
|
|
478
479
|
var LOG$d = getLogger('Backoffice', 'ApiHandler');
|
|
479
480
|
var jp = require('jsonpath');
|
|
480
481
|
var _default$d = /*#__PURE__*/function () {
|
|
@@ -653,7 +654,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
653
654
|
_context2.next = 20;
|
|
654
655
|
return fetch(finalUrl, {
|
|
655
656
|
method: this._updateMethod,
|
|
656
|
-
headers: _objectSpread$
|
|
657
|
+
headers: _objectSpread$N(_objectSpread$N({}, jwt ? {
|
|
657
658
|
Authorization: 'Bearer ' + jwt
|
|
658
659
|
} : {}), {}, {
|
|
659
660
|
'Content-Type': 'application/json'
|
|
@@ -746,7 +747,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
746
747
|
rootStore: this._rootStore,
|
|
747
748
|
fallBackToParams: true
|
|
748
749
|
});
|
|
749
|
-
if (data) createData = _objectSpread$
|
|
750
|
+
if (data) createData = _objectSpread$N({}, data);
|
|
750
751
|
} else if (data !== undefined) {
|
|
751
752
|
createData = applyMapping({
|
|
752
753
|
mappable: data,
|
|
@@ -1008,7 +1009,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1008
1009
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1009
1010
|
case 2:
|
|
1010
1011
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
|
1011
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1012
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$N(_objectSpread$N({}, filterServerSide), {}, {
|
|
1012
1013
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1013
1014
|
baseUrl: this._readListUrl,
|
|
1014
1015
|
prefilter: prefilter
|
|
@@ -1028,7 +1029,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1028
1029
|
});
|
|
1029
1030
|
case 6:
|
|
1030
1031
|
response = _context8.sent;
|
|
1031
|
-
return _context8.abrupt("return", _objectSpread$
|
|
1032
|
+
return _context8.abrupt("return", _objectSpread$N(_objectSpread$N({}, response), {}, {
|
|
1032
1033
|
data: response.data.map(function (d) {
|
|
1033
1034
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
|
1034
1035
|
})
|
|
@@ -1052,7 +1053,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1052
1053
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1053
1054
|
}
|
|
1054
1055
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
|
1055
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1056
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$N(_objectSpread$N({}, filterServerSide), {}, {
|
|
1056
1057
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1057
1058
|
baseUrl: this._readListUrl,
|
|
1058
1059
|
prefilter: prefilter
|
|
@@ -1259,8 +1260,8 @@ var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1259
1260
|
}]);
|
|
1260
1261
|
}(_default$d);
|
|
1261
1262
|
|
|
1262
|
-
function ownKeys$
|
|
1263
|
-
function _objectSpread$
|
|
1263
|
+
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; }
|
|
1264
|
+
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; }
|
|
1264
1265
|
function _callSuper$5(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1265
1266
|
function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1266
1267
|
var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
@@ -1359,7 +1360,7 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1359
1360
|
_context2.next = 5;
|
|
1360
1361
|
return fetch(this._createUrl + '?ref=true', {
|
|
1361
1362
|
method: this._createMethod,
|
|
1362
|
-
headers: _objectSpread$
|
|
1363
|
+
headers: _objectSpread$M({}, jwt ? {
|
|
1363
1364
|
Authorization: 'Bearer ' + jwt
|
|
1364
1365
|
} : {}),
|
|
1365
1366
|
body: data
|
|
@@ -1737,8 +1738,8 @@ var _default$8 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1737
1738
|
}]);
|
|
1738
1739
|
}(_default$d);
|
|
1739
1740
|
|
|
1740
|
-
function ownKeys$
|
|
1741
|
-
function _objectSpread$
|
|
1741
|
+
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; }
|
|
1742
|
+
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; }
|
|
1742
1743
|
var _default$7 = /*#__PURE__*/function () {
|
|
1743
1744
|
function _default(root) {
|
|
1744
1745
|
_classCallCheck(this, _default);
|
|
@@ -1774,7 +1775,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
|
1774
1775
|
var _i$permission;
|
|
1775
1776
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
|
1776
1777
|
});
|
|
1777
|
-
config = _objectSpread$
|
|
1778
|
+
config = _objectSpread$L(_objectSpread$L({}, config), {}, {
|
|
1778
1779
|
items: filteredItems
|
|
1779
1780
|
});
|
|
1780
1781
|
}
|
|
@@ -7829,6 +7830,22 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
7829
7830
|
hidden: function hidden(data) {
|
|
7830
7831
|
return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
|
|
7831
7832
|
}
|
|
7833
|
+
}, {
|
|
7834
|
+
name: ['settings', 'enable3DExport'],
|
|
7835
|
+
label: t('backoffice.form.organizationdetails.items.settings.enable3DExport'),
|
|
7836
|
+
type: 'radio',
|
|
7837
|
+
optionType: 'button',
|
|
7838
|
+
options: [{
|
|
7839
|
+
label: t('backoffice.form.organizationdetails.items.vererbt'),
|
|
7840
|
+
value: undefined
|
|
7841
|
+
}, {
|
|
7842
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
7843
|
+
value: true
|
|
7844
|
+
}, {
|
|
7845
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
7846
|
+
value: false
|
|
7847
|
+
}],
|
|
7848
|
+
permission: 'backoffice_sys_admin_organizations'
|
|
7832
7849
|
}, {
|
|
7833
7850
|
name: ['settings', 'enableAR'],
|
|
7834
7851
|
label: t('backoffice.form.organizationdetails.items.settings.enableAR'),
|
|
@@ -8307,7 +8324,9 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
8307
8324
|
tools: [{
|
|
8308
8325
|
id: 'WYSIWYG_ContentItem',
|
|
8309
8326
|
name: 'ContentItem Preview',
|
|
8310
|
-
type: 'ContentItem'
|
|
8327
|
+
type: 'ContentItem',
|
|
8328
|
+
defaultPinned: true,
|
|
8329
|
+
startWidth: 450
|
|
8311
8330
|
}],
|
|
8312
8331
|
itemsByData: function itemsByData(data, apiConfig) {
|
|
8313
8332
|
var result = [{
|
|
@@ -8792,7 +8811,9 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
8792
8811
|
tools: [{
|
|
8793
8812
|
id: 'WYSIWYG_ContentItem',
|
|
8794
8813
|
name: 'ContentItem Preview',
|
|
8795
|
-
type: 'ContentItem'
|
|
8814
|
+
type: 'ContentItem',
|
|
8815
|
+
defaultPinned: true,
|
|
8816
|
+
startWidth: 450
|
|
8796
8817
|
}]
|
|
8797
8818
|
},
|
|
8798
8819
|
FormApplicationTranslationsEdit: {
|
|
@@ -12934,8 +12955,187 @@ function getIcon(icon) {
|
|
|
12934
12955
|
return undefined;
|
|
12935
12956
|
}
|
|
12936
12957
|
|
|
12937
|
-
|
|
12938
|
-
|
|
12958
|
+
var DEFAULT_WIDTH = 500;
|
|
12959
|
+
var ToolBarStore = /*#__PURE__*/function () {
|
|
12960
|
+
function ToolBarStore(defaultLanguage) {
|
|
12961
|
+
_classCallCheck(this, ToolBarStore);
|
|
12962
|
+
this.defaultLanguage = defaultLanguage;
|
|
12963
|
+
_defineProperty(this, "_tools", []);
|
|
12964
|
+
_defineProperty(this, "_hidden", true);
|
|
12965
|
+
_defineProperty(this, "_pinned", false);
|
|
12966
|
+
_defineProperty(this, "_openedToolId", void 0);
|
|
12967
|
+
_defineProperty(this, "_loadingTools", new Map());
|
|
12968
|
+
_defineProperty(this, "_currentLanguage", void 0);
|
|
12969
|
+
_defineProperty(this, "_width", 0);
|
|
12970
|
+
_defineProperty(this, "_toolbarElement", null);
|
|
12971
|
+
this._currentLanguage = defaultLanguage;
|
|
12972
|
+
makeAutoObservable(this, {
|
|
12973
|
+
_toolbarElement: observable.ref
|
|
12974
|
+
});
|
|
12975
|
+
}
|
|
12976
|
+
return _createClass(ToolBarStore, [{
|
|
12977
|
+
key: "tools",
|
|
12978
|
+
get: function get() {
|
|
12979
|
+
return this._tools;
|
|
12980
|
+
},
|
|
12981
|
+
set: function set(tools) {
|
|
12982
|
+
var _this = this,
|
|
12983
|
+
_tools$,
|
|
12984
|
+
_tools$0$defaultPinne,
|
|
12985
|
+
_tools$2,
|
|
12986
|
+
_tools$3,
|
|
12987
|
+
_tools$0$startWidth,
|
|
12988
|
+
_tools$4;
|
|
12989
|
+
this._tools = tools;
|
|
12990
|
+
if (tools.find(function (t) {
|
|
12991
|
+
return t.id === _this._openedToolId;
|
|
12992
|
+
})) {
|
|
12993
|
+
//if current tool is in the new list, don't change the current state
|
|
12994
|
+
return;
|
|
12995
|
+
}
|
|
12996
|
+
this._openedToolId = (_tools$ = tools[0]) === null || _tools$ === void 0 ? void 0 : _tools$.id;
|
|
12997
|
+
this._pinned = (_tools$0$defaultPinne = (_tools$2 = tools[0]) === null || _tools$2 === void 0 ? void 0 : _tools$2.defaultPinned) !== null && _tools$0$defaultPinne !== void 0 ? _tools$0$defaultPinne : this._pinned;
|
|
12998
|
+
this._hidden = ((_tools$3 = tools[0]) === null || _tools$3 === void 0 ? void 0 : _tools$3.defaultOpen) !== undefined ? !tools[0].defaultOpen : this._hidden;
|
|
12999
|
+
this._width = (_tools$0$startWidth = (_tools$4 = tools[0]) === null || _tools$4 === void 0 ? void 0 : _tools$4.startWidth) !== null && _tools$0$startWidth !== void 0 ? _tools$0$startWidth : this._width;
|
|
13000
|
+
}
|
|
13001
|
+
}, {
|
|
13002
|
+
key: "hidden",
|
|
13003
|
+
get: function get() {
|
|
13004
|
+
return this._hidden;
|
|
13005
|
+
},
|
|
13006
|
+
set: function set(hidden) {
|
|
13007
|
+
this._hidden = hidden;
|
|
13008
|
+
if (!hidden && this._width === 0) {
|
|
13009
|
+
var _this$currentOpenTool, _this$currentOpenTool2;
|
|
13010
|
+
this._width = (_this$currentOpenTool = (_this$currentOpenTool2 = this.currentOpenTool) === null || _this$currentOpenTool2 === void 0 ? void 0 : _this$currentOpenTool2.startWidth) !== null && _this$currentOpenTool !== void 0 ? _this$currentOpenTool : DEFAULT_WIDTH;
|
|
13011
|
+
}
|
|
13012
|
+
}
|
|
13013
|
+
}, {
|
|
13014
|
+
key: "pinned",
|
|
13015
|
+
get: function get() {
|
|
13016
|
+
return this._pinned;
|
|
13017
|
+
},
|
|
13018
|
+
set: function set(pinned) {
|
|
13019
|
+
this._pinned = pinned;
|
|
13020
|
+
}
|
|
13021
|
+
}, {
|
|
13022
|
+
key: "currentLanguage",
|
|
13023
|
+
get: function get() {
|
|
13024
|
+
return this._currentLanguage;
|
|
13025
|
+
},
|
|
13026
|
+
set: function set(language) {
|
|
13027
|
+
this._currentLanguage = language;
|
|
13028
|
+
}
|
|
13029
|
+
}, {
|
|
13030
|
+
key: "currentOpenTool",
|
|
13031
|
+
get: function get() {
|
|
13032
|
+
var _this2 = this;
|
|
13033
|
+
return this._tools.find(function (t) {
|
|
13034
|
+
return t.id === _this2._openedToolId;
|
|
13035
|
+
});
|
|
13036
|
+
}
|
|
13037
|
+
}, {
|
|
13038
|
+
key: "width",
|
|
13039
|
+
get: function get() {
|
|
13040
|
+
return this._hidden ? 0 : this._width;
|
|
13041
|
+
},
|
|
13042
|
+
set: function set(width) {
|
|
13043
|
+
if (width > this._width) {
|
|
13044
|
+
this._hidden = false;
|
|
13045
|
+
}
|
|
13046
|
+
this._width = width;
|
|
13047
|
+
if (width < 50) {
|
|
13048
|
+
this._width = 0;
|
|
13049
|
+
this._hidden = true;
|
|
13050
|
+
}
|
|
13051
|
+
}
|
|
13052
|
+
}, {
|
|
13053
|
+
key: "toolbarElement",
|
|
13054
|
+
get: function get() {
|
|
13055
|
+
return this._toolbarElement;
|
|
13056
|
+
},
|
|
13057
|
+
set: function set(element) {
|
|
13058
|
+
this._toolbarElement = element;
|
|
13059
|
+
}
|
|
13060
|
+
}, {
|
|
13061
|
+
key: "openTool",
|
|
13062
|
+
value: function openTool(toolId) {
|
|
13063
|
+
this._openedToolId = toolId;
|
|
13064
|
+
this._currentLanguage = this.defaultLanguage;
|
|
13065
|
+
var tool = this._tools.find(function (t) {
|
|
13066
|
+
return t.id === toolId;
|
|
13067
|
+
});
|
|
13068
|
+
if (tool) {
|
|
13069
|
+
var _tool$startWidth;
|
|
13070
|
+
this._width = Math.max((_tool$startWidth = tool.startWidth) !== null && _tool$startWidth !== void 0 ? _tool$startWidth : DEFAULT_WIDTH, this._width);
|
|
13071
|
+
}
|
|
13072
|
+
}
|
|
13073
|
+
}, {
|
|
13074
|
+
key: "isLoading",
|
|
13075
|
+
value: function isLoading(toolId) {
|
|
13076
|
+
var loading = this._loadingTools.get(toolId);
|
|
13077
|
+
return loading !== undefined && loading.length > 0;
|
|
13078
|
+
}
|
|
13079
|
+
}, {
|
|
13080
|
+
key: "toggleLoading",
|
|
13081
|
+
value: function toggleLoading(toolId, subId, toggle) {
|
|
13082
|
+
// Get current loading state for tool
|
|
13083
|
+
var loadingState = this._loadingTools.get(toolId);
|
|
13084
|
+
if (!subId) {
|
|
13085
|
+
// Handle tool-level loading
|
|
13086
|
+
if (toggle === undefined) {
|
|
13087
|
+
// Toggle loading state
|
|
13088
|
+
if (loadingState) {
|
|
13089
|
+
this._loadingTools["delete"](toolId);
|
|
13090
|
+
} else {
|
|
13091
|
+
this._loadingTools.set(toolId, []);
|
|
13092
|
+
}
|
|
13093
|
+
} else {
|
|
13094
|
+
// Set explicit loading state
|
|
13095
|
+
if (toggle) {
|
|
13096
|
+
this._loadingTools.set(toolId, []);
|
|
13097
|
+
} else {
|
|
13098
|
+
this._loadingTools["delete"](toolId);
|
|
13099
|
+
}
|
|
13100
|
+
}
|
|
13101
|
+
} else {
|
|
13102
|
+
loadingState = loadingState || [];
|
|
13103
|
+
// Handle subId-level loading
|
|
13104
|
+
if (toggle === undefined) {
|
|
13105
|
+
// Toggle subId in loading state
|
|
13106
|
+
var subIdIndex = loadingState.indexOf(subId);
|
|
13107
|
+
if (subIdIndex > -1) {
|
|
13108
|
+
loadingState.splice(subIdIndex, 1);
|
|
13109
|
+
} else {
|
|
13110
|
+
loadingState.push(subId);
|
|
13111
|
+
}
|
|
13112
|
+
} else {
|
|
13113
|
+
// Set explicit subId loading state
|
|
13114
|
+
if (toggle) {
|
|
13115
|
+
if (!loadingState.includes(subId)) {
|
|
13116
|
+
loadingState.push(subId);
|
|
13117
|
+
}
|
|
13118
|
+
} else {
|
|
13119
|
+
var _subIdIndex = loadingState.indexOf(subId);
|
|
13120
|
+
if (_subIdIndex > -1) {
|
|
13121
|
+
loadingState.splice(_subIdIndex, 1);
|
|
13122
|
+
}
|
|
13123
|
+
}
|
|
13124
|
+
}
|
|
13125
|
+
|
|
13126
|
+
// If no subIds are loading, remove the tool loading state entirely
|
|
13127
|
+
if (loadingState.length === 0) {
|
|
13128
|
+
this._loadingTools["delete"](toolId);
|
|
13129
|
+
} else {
|
|
13130
|
+
this._loadingTools.set(toolId, loadingState);
|
|
13131
|
+
}
|
|
13132
|
+
}
|
|
13133
|
+
}
|
|
13134
|
+
}]);
|
|
13135
|
+
}();
|
|
13136
|
+
|
|
13137
|
+
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; }
|
|
13138
|
+
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; }
|
|
12939
13139
|
var _default$6 = /*#__PURE__*/function () {
|
|
12940
13140
|
function _default(root) {
|
|
12941
13141
|
_classCallCheck(this, _default);
|
|
@@ -12946,20 +13146,19 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
12946
13146
|
_defineProperty(this, "_menuElement1", void 0);
|
|
12947
13147
|
_defineProperty(this, "_menuElement2", void 0);
|
|
12948
13148
|
_defineProperty(this, "_additionalMenuElements", []);
|
|
12949
|
-
_defineProperty(this, "
|
|
12950
|
-
_defineProperty(this, "
|
|
12951
|
-
_defineProperty(this, "_openedToolId", undefined);
|
|
12952
|
-
_defineProperty(this, "_hideTools", true);
|
|
12953
|
-
_defineProperty(this, "_toolLoading", new Map());
|
|
12954
|
-
_defineProperty(this, "_toolPinned", false);
|
|
13149
|
+
_defineProperty(this, "rightToolBar", void 0);
|
|
13150
|
+
_defineProperty(this, "bottomToolBar", void 0);
|
|
12955
13151
|
makeAutoObservable(this, {
|
|
12956
|
-
root: false
|
|
13152
|
+
root: false,
|
|
13153
|
+
rightToolBar: false,
|
|
13154
|
+
bottomToolBar: false
|
|
12957
13155
|
});
|
|
12958
13156
|
var theme = localStorage.getItem('theme');
|
|
12959
13157
|
if (theme) {
|
|
12960
13158
|
this._theme = theme;
|
|
12961
13159
|
}
|
|
12962
|
-
this.
|
|
13160
|
+
this.rightToolBar = new ToolBarStore(this.root.i18n.language);
|
|
13161
|
+
this.bottomToolBar = new ToolBarStore(this.root.i18n.language);
|
|
12963
13162
|
}
|
|
12964
13163
|
return _createClass(_default, [{
|
|
12965
13164
|
key: "initMenu",
|
|
@@ -13004,60 +13203,6 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
13004
13203
|
get: function get() {
|
|
13005
13204
|
return this._menuElement2;
|
|
13006
13205
|
}
|
|
13007
|
-
}, {
|
|
13008
|
-
key: "tools",
|
|
13009
|
-
get: function get() {
|
|
13010
|
-
return this._tools;
|
|
13011
|
-
},
|
|
13012
|
-
set: function set(tools) {
|
|
13013
|
-
this._tools = tools;
|
|
13014
|
-
}
|
|
13015
|
-
}, {
|
|
13016
|
-
key: "hideTools",
|
|
13017
|
-
get: function get() {
|
|
13018
|
-
return this._hideTools;
|
|
13019
|
-
},
|
|
13020
|
-
set: function set(hidden) {
|
|
13021
|
-
this._hideTools = hidden;
|
|
13022
|
-
}
|
|
13023
|
-
}, {
|
|
13024
|
-
key: "openedToolId",
|
|
13025
|
-
get: function get() {
|
|
13026
|
-
return this._openedToolId;
|
|
13027
|
-
},
|
|
13028
|
-
set: function set(id) {
|
|
13029
|
-
this._openedToolId = id;
|
|
13030
|
-
}
|
|
13031
|
-
}, {
|
|
13032
|
-
key: "toolPinned",
|
|
13033
|
-
get: function get() {
|
|
13034
|
-
return this._toolPinned;
|
|
13035
|
-
},
|
|
13036
|
-
set: function set(val) {
|
|
13037
|
-
this._toolPinned = val;
|
|
13038
|
-
}
|
|
13039
|
-
}, {
|
|
13040
|
-
key: "toolsLanguage",
|
|
13041
|
-
get: function get() {
|
|
13042
|
-
return this._toolsLanguage;
|
|
13043
|
-
},
|
|
13044
|
-
set: function set(lang) {
|
|
13045
|
-
this._toolsLanguage = lang;
|
|
13046
|
-
}
|
|
13047
|
-
}, {
|
|
13048
|
-
key: "isToolLoading",
|
|
13049
|
-
get: function get() {
|
|
13050
|
-
return this._toolLoading.size != 0;
|
|
13051
|
-
}
|
|
13052
|
-
}, {
|
|
13053
|
-
key: "toggleToolLoading",
|
|
13054
|
-
value: function toggleToolLoading(id, hidden, toggle) {
|
|
13055
|
-
if (this._toolLoading.has(id) && toggle !== true) {
|
|
13056
|
-
this._toolLoading["delete"](id);
|
|
13057
|
-
} else if (!this._toolLoading.has(id) && toggle !== false) {
|
|
13058
|
-
this._toolLoading.set(id, hidden == undefined ? false : hidden);
|
|
13059
|
-
}
|
|
13060
|
-
}
|
|
13061
13206
|
}, {
|
|
13062
13207
|
key: "updateAdditionalElement",
|
|
13063
13208
|
value: function updateAdditionalElement(key, items, selected) {
|
|
@@ -13067,7 +13212,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
13067
13212
|
if (index >= 0) {
|
|
13068
13213
|
this._additionalMenuElements[index] = {
|
|
13069
13214
|
key: key,
|
|
13070
|
-
element: _objectSpread$
|
|
13215
|
+
element: _objectSpread$K(_objectSpread$K({}, this._additionalMenuElements[index].element), {}, {
|
|
13071
13216
|
items: items,
|
|
13072
13217
|
selected: selected
|
|
13073
13218
|
})
|
|
@@ -13118,7 +13263,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
13118
13263
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
|
13119
13264
|
this.root.navigate('/' + path);
|
|
13120
13265
|
}
|
|
13121
|
-
this._menuElement1 = _objectSpread$
|
|
13266
|
+
this._menuElement1 = _objectSpread$K(_objectSpread$K({}, this.menuElement1), {}, {
|
|
13122
13267
|
selected: this._selectedMenuKeys[0]
|
|
13123
13268
|
});
|
|
13124
13269
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
|
@@ -13362,7 +13507,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
13362
13507
|
return items.filter(function (item) {
|
|
13363
13508
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
|
13364
13509
|
}).map(function (item) {
|
|
13365
|
-
return _objectSpread$
|
|
13510
|
+
return _objectSpread$K(_objectSpread$K({}, item), {}, {
|
|
13366
13511
|
items: item.items ? _this4.filterMenuByPermission(hasPermission, item.items) : undefined,
|
|
13367
13512
|
subMenu: item.subMenu ? _this4.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
|
13368
13513
|
});
|
|
@@ -15101,8 +15246,8 @@ var MediaItem = /*#__PURE__*/function () {
|
|
|
15101
15246
|
}]);
|
|
15102
15247
|
}();
|
|
15103
15248
|
|
|
15104
|
-
function ownKeys$
|
|
15105
|
-
function _objectSpread$
|
|
15249
|
+
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; }
|
|
15250
|
+
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; }
|
|
15106
15251
|
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; } } }; }
|
|
15107
15252
|
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; } }
|
|
15108
15253
|
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; }
|
|
@@ -15224,7 +15369,7 @@ function useFormData (_ref) {
|
|
|
15224
15369
|
multipleEditingData = inboundData;
|
|
15225
15370
|
}
|
|
15226
15371
|
return {
|
|
15227
|
-
loadedData: _onLoadFields(_objectSpread$
|
|
15372
|
+
loadedData: _onLoadFields(_objectSpread$J({}, dt)),
|
|
15228
15373
|
multipleEditingData: multipleEditingData
|
|
15229
15374
|
};
|
|
15230
15375
|
}, [inboundData, selectedItemsIndex]),
|
|
@@ -15261,7 +15406,7 @@ function useFormData (_ref) {
|
|
|
15261
15406
|
setFieldErrors = _useState20[1];
|
|
15262
15407
|
useEffect(function () {
|
|
15263
15408
|
var _loadedData$_id2;
|
|
15264
|
-
setState(_objectSpread$
|
|
15409
|
+
setState(_objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
15265
15410
|
data: loadedData,
|
|
15266
15411
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
|
15267
15412
|
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),
|
|
@@ -15363,7 +15508,7 @@ function useFormData (_ref) {
|
|
|
15363
15508
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
15364
15509
|
while (1) switch (_context2.prev = _context2.next) {
|
|
15365
15510
|
case 0:
|
|
15366
|
-
newData = merge(_objectSpread$
|
|
15511
|
+
newData = merge(_objectSpread$J({}, state.data), values);
|
|
15367
15512
|
if (!skipApi) {
|
|
15368
15513
|
_context2.next = 3;
|
|
15369
15514
|
break;
|
|
@@ -15373,7 +15518,7 @@ function useFormData (_ref) {
|
|
|
15373
15518
|
root.actions.toggleLoading('saving_form');
|
|
15374
15519
|
_context2.prev = 4;
|
|
15375
15520
|
_context2.next = 7;
|
|
15376
|
-
return setDynamicFields(_objectSpread$
|
|
15521
|
+
return setDynamicFields(_objectSpread$J({}, state.data), newData);
|
|
15377
15522
|
case 7:
|
|
15378
15523
|
newData = _context2.sent;
|
|
15379
15524
|
_context2.next = 10;
|
|
@@ -15388,7 +15533,7 @@ function useFormData (_ref) {
|
|
|
15388
15533
|
root.actions.toggleLoading('saving_form');
|
|
15389
15534
|
throw _context2.t0;
|
|
15390
15535
|
case 17:
|
|
15391
|
-
setState(_objectSpread$
|
|
15536
|
+
setState(_objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
15392
15537
|
loading: true
|
|
15393
15538
|
}));
|
|
15394
15539
|
finalData = state.data;
|
|
@@ -15441,14 +15586,14 @@ function useFormData (_ref) {
|
|
|
15441
15586
|
_context2.next = 47;
|
|
15442
15587
|
break;
|
|
15443
15588
|
}
|
|
15444
|
-
setFieldErrors(_objectSpread$
|
|
15589
|
+
setFieldErrors(_objectSpread$J(_objectSpread$J({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
|
15445
15590
|
return _context2.abrupt("return", undefined);
|
|
15446
15591
|
case 47:
|
|
15447
15592
|
throw _context2.t1;
|
|
15448
15593
|
case 48:
|
|
15449
15594
|
_context2.prev = 48;
|
|
15450
15595
|
root.actions.toggleLoading('saving_form');
|
|
15451
|
-
setState(_objectSpread$
|
|
15596
|
+
setState(_objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
15452
15597
|
data: finalData,
|
|
15453
15598
|
loading: false
|
|
15454
15599
|
}));
|
|
@@ -15478,7 +15623,7 @@ function useFormData (_ref) {
|
|
|
15478
15623
|
}
|
|
15479
15624
|
var updateHiddenRequiredDisabled = function updateHiddenRequiredDisabled(data, changedFields) {
|
|
15480
15625
|
if (!(selectedItems !== null && selectedItems !== void 0 && selectedItems.length)) return;
|
|
15481
|
-
var wholeData = Object.assign(_objectSpread$
|
|
15626
|
+
var wholeData = Object.assign(_objectSpread$J({}, state.data), _objectSpread$J({}, changedFields !== null && changedFields !== void 0 ? changedFields : data));
|
|
15482
15627
|
var newState = getHiddenRequredDisabled(wholeData, selectedItems);
|
|
15483
15628
|
if (JSON.stringify(newState) !== JSON.stringify(hiddenRequiredDisabled)) {
|
|
15484
15629
|
setHiddenRequiredDisabled(newState);
|
|
@@ -15491,14 +15636,14 @@ function useFormData (_ref) {
|
|
|
15491
15636
|
}
|
|
15492
15637
|
};
|
|
15493
15638
|
var onInputChanged = function onInputChanged(id, value, d) {
|
|
15494
|
-
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$
|
|
15639
|
+
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$J({}, state.data), state.form.getFieldsValue(), mergeCustomizer);
|
|
15495
15640
|
if (id) {
|
|
15496
15641
|
setFieldInObject(id, data, value);
|
|
15497
|
-
var newFieldErrors = _objectSpread$
|
|
15642
|
+
var newFieldErrors = _objectSpread$J({}, fieldErrors);
|
|
15498
15643
|
delete newFieldErrors[id.toString()];
|
|
15499
15644
|
setFieldErrors(newFieldErrors);
|
|
15500
15645
|
}
|
|
15501
|
-
setState(_objectSpread$
|
|
15646
|
+
setState(_objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
15502
15647
|
data: data
|
|
15503
15648
|
}));
|
|
15504
15649
|
return data;
|
|
@@ -15530,12 +15675,12 @@ function useFormData (_ref) {
|
|
|
15530
15675
|
var _value$value;
|
|
15531
15676
|
if (((_value$value = value === null || value === void 0 ? void 0 : value.value) !== null && _value$value !== void 0 ? _value$value : value) === val) {
|
|
15532
15677
|
if (configuration.itemSelectorReset) {
|
|
15533
|
-
setState(_objectSpread$
|
|
15678
|
+
setState(_objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
15534
15679
|
data: _defineProperty({}, name, val)
|
|
15535
15680
|
}));
|
|
15536
15681
|
} else {
|
|
15537
|
-
setState(_objectSpread$
|
|
15538
|
-
data: _objectSpread$
|
|
15682
|
+
setState(_objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
15683
|
+
data: _objectSpread$J(_objectSpread$J({}, state.data), {}, _defineProperty({}, name, val))
|
|
15539
15684
|
}));
|
|
15540
15685
|
}
|
|
15541
15686
|
setSelectedItemsIndex(idx);
|
|
@@ -15545,12 +15690,12 @@ function useFormData (_ref) {
|
|
|
15545
15690
|
var val = _ref6.value;
|
|
15546
15691
|
if (value === val) {
|
|
15547
15692
|
if (configuration.itemSelectorReset) {
|
|
15548
|
-
setState(_objectSpread$
|
|
15693
|
+
setState(_objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
15549
15694
|
data: _defineProperty({}, name, val)
|
|
15550
15695
|
}));
|
|
15551
15696
|
} else {
|
|
15552
|
-
setState(_objectSpread$
|
|
15553
|
-
data: _objectSpread$
|
|
15697
|
+
setState(_objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
15698
|
+
data: _objectSpread$J(_objectSpread$J({}, state.data), {}, _defineProperty({}, name, val))
|
|
15554
15699
|
}));
|
|
15555
15700
|
}
|
|
15556
15701
|
setSelectedItemsIndex(idx);
|
|
@@ -15829,19 +15974,20 @@ function useFormData (_ref) {
|
|
|
15829
15974
|
if ((_configuration$tools = configuration.tools) !== null && _configuration$tools !== void 0 && _configuration$tools.length) {
|
|
15830
15975
|
var tools = [];
|
|
15831
15976
|
for (var i = 0; i < configuration.tools.length; i++) {
|
|
15977
|
+
var _tool$defaultOpen;
|
|
15832
15978
|
var tool = configuration.tools[i];
|
|
15833
|
-
tools.push(_objectSpread$
|
|
15979
|
+
tools.push(_objectSpread$J(_objectSpread$J({}, tool), {}, {
|
|
15834
15980
|
parameters: {
|
|
15835
15981
|
data: state.data
|
|
15836
15982
|
},
|
|
15837
|
-
startWidth:
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
}
|
|
15983
|
+
startWidth: tool.startWidth,
|
|
15984
|
+
defaultOpen: (_tool$defaultOpen = tool.defaultOpen) !== null && _tool$defaultOpen !== void 0 ? _tool$defaultOpen : true,
|
|
15985
|
+
defaultPinned: tool.defaultPinned
|
|
15986
|
+
}));
|
|
15841
15987
|
}
|
|
15842
|
-
root.contentStore.tools = tools;
|
|
15988
|
+
root.contentStore.rightToolBar.tools = tools;
|
|
15843
15989
|
return function () {
|
|
15844
|
-
root.contentStore.tools = [];
|
|
15990
|
+
root.contentStore.rightToolBar.tools = [];
|
|
15845
15991
|
};
|
|
15846
15992
|
}
|
|
15847
15993
|
return;
|
|
@@ -15932,7 +16078,7 @@ function useFormData (_ref) {
|
|
|
15932
16078
|
})) return;
|
|
15933
16079
|
setRemovedMedias([].concat(_toConsumableArray(removedMedias), [media]));
|
|
15934
16080
|
};
|
|
15935
|
-
return _objectSpread$
|
|
16081
|
+
return _objectSpread$J(_objectSpread$J({}, state), {}, {
|
|
15936
16082
|
getIsHidden: getIsHidden,
|
|
15937
16083
|
setUsedPreset: setUsedPreset,
|
|
15938
16084
|
configuration: configuration,
|
|
@@ -16049,8 +16195,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
|
16049
16195
|
};
|
|
16050
16196
|
|
|
16051
16197
|
var _excluded$3 = ["key", "name"];
|
|
16052
|
-
function ownKeys$
|
|
16053
|
-
function _objectSpread$
|
|
16198
|
+
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; }
|
|
16199
|
+
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; }
|
|
16054
16200
|
var FormList$2 = function FormList(_ref) {
|
|
16055
16201
|
var _item$initialValue;
|
|
16056
16202
|
var value = _ref.value,
|
|
@@ -16103,7 +16249,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
16103
16249
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
|
16104
16250
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
|
16105
16251
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
|
16106
|
-
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$
|
|
16252
|
+
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$I(_objectSpread$I({}, restField), {}, {
|
|
16107
16253
|
id: n.join(),
|
|
16108
16254
|
key: n.join(),
|
|
16109
16255
|
name: n,
|
|
@@ -16115,7 +16261,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
16115
16261
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
16116
16262
|
help: state.fieldErrors[n.toString()],
|
|
16117
16263
|
hidden: hidden
|
|
16118
|
-
}), getElement(_objectSpread$
|
|
16264
|
+
}), getElement(_objectSpread$I(_objectSpread$I({}, i), {}, {
|
|
16119
16265
|
name: n
|
|
16120
16266
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
|
16121
16267
|
})
|
|
@@ -16348,8 +16494,8 @@ var buttonGroup = "button-group-GYt-T";
|
|
|
16348
16494
|
var css_248z$n = ".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";
|
|
16349
16495
|
styleInject(css_248z$n);
|
|
16350
16496
|
|
|
16351
|
-
function ownKeys$
|
|
16352
|
-
function _objectSpread$
|
|
16497
|
+
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; }
|
|
16498
|
+
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; }
|
|
16353
16499
|
var SubTitle = function SubTitle(_ref) {
|
|
16354
16500
|
var _item$orientation, _item$buttonIds;
|
|
16355
16501
|
var item = _ref.item,
|
|
@@ -16358,7 +16504,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
|
16358
16504
|
t = _useTranslation.t;
|
|
16359
16505
|
return /*#__PURE__*/jsx(Divider, {
|
|
16360
16506
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
|
16361
|
-
style: _objectSpread$
|
|
16507
|
+
style: _objectSpread$H({}, item.style),
|
|
16362
16508
|
children: /*#__PURE__*/jsxs("div", {
|
|
16363
16509
|
className: wrapper$5,
|
|
16364
16510
|
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) {
|
|
@@ -16608,8 +16754,8 @@ var css_248z$m = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\
|
|
|
16608
16754
|
styleInject(css_248z$m);
|
|
16609
16755
|
|
|
16610
16756
|
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title"];
|
|
16611
|
-
function ownKeys$
|
|
16612
|
-
function _objectSpread$
|
|
16757
|
+
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; }
|
|
16758
|
+
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; }
|
|
16613
16759
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
16614
16760
|
var apiInterface = _ref.apiInterface,
|
|
16615
16761
|
selectMapping = _ref.selectMapping,
|
|
@@ -16634,7 +16780,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
|
16634
16780
|
return /*#__PURE__*/jsxs("div", {
|
|
16635
16781
|
ref: ref,
|
|
16636
16782
|
className: classnames(title ? wrapper$4 : undefined),
|
|
16637
|
-
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$
|
|
16783
|
+
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$G(_objectSpread$G({}, selectProps), {}, {
|
|
16638
16784
|
showSearch: search,
|
|
16639
16785
|
loading: state.loading,
|
|
16640
16786
|
options: state.options,
|
|
@@ -17251,8 +17397,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
|
17251
17397
|
}]);
|
|
17252
17398
|
}(_default$d);
|
|
17253
17399
|
|
|
17254
|
-
function ownKeys$
|
|
17255
|
-
function _objectSpread$
|
|
17400
|
+
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; }
|
|
17401
|
+
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; }
|
|
17256
17402
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
|
17257
17403
|
function useSelectClientRelationCatalog (_ref) {
|
|
17258
17404
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
|
@@ -17421,7 +17567,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
|
17421
17567
|
case 22:
|
|
17422
17568
|
supplierData = _context2.sent;
|
|
17423
17569
|
case 23:
|
|
17424
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
|
17570
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$F(_objectSpread$F({}, _selectedSupplier), {}, {
|
|
17425
17571
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
|
17426
17572
|
}), supplierData);
|
|
17427
17573
|
if (catalogId && catalogList.find(function (c) {
|
|
@@ -17642,8 +17788,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
|
17642
17788
|
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; } } }; }
|
|
17643
17789
|
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; } }
|
|
17644
17790
|
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; }
|
|
17645
|
-
function ownKeys$
|
|
17646
|
-
function _objectSpread$
|
|
17791
|
+
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; }
|
|
17792
|
+
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; }
|
|
17647
17793
|
function useSelectData (_ref) {
|
|
17648
17794
|
var data = _ref.data,
|
|
17649
17795
|
onChange = _ref.onChange,
|
|
@@ -17826,7 +17972,7 @@ function useSelectData (_ref) {
|
|
|
17826
17972
|
setFetching(true);
|
|
17827
17973
|
serverSideParams = {
|
|
17828
17974
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.searchField.reduce(function (filter, field) {
|
|
17829
|
-
return _objectSpread$
|
|
17975
|
+
return _objectSpread$E(_objectSpread$E({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
|
17830
17976
|
}, {}) : {
|
|
17831
17977
|
_id: [value, 'contains']
|
|
17832
17978
|
},
|
|
@@ -18118,8 +18264,8 @@ var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
|
|
18118
18264
|
var css_248z$j = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
|
|
18119
18265
|
styleInject(css_248z$j);
|
|
18120
18266
|
|
|
18121
|
-
function ownKeys$
|
|
18122
|
-
function _objectSpread$
|
|
18267
|
+
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; }
|
|
18268
|
+
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; }
|
|
18123
18269
|
var LOG$9 = getLogger('Backoffice', 'Translation Form');
|
|
18124
18270
|
function useTranslationHook (item, state) {
|
|
18125
18271
|
var root = useStore();
|
|
@@ -18252,7 +18398,7 @@ function useTranslationHook (item, state) {
|
|
|
18252
18398
|
case 0:
|
|
18253
18399
|
_context2.next = 2;
|
|
18254
18400
|
return apiHandler.create({
|
|
18255
|
-
locales: _objectSpread$
|
|
18401
|
+
locales: _objectSpread$D({
|
|
18256
18402
|
de: {},
|
|
18257
18403
|
it: {},
|
|
18258
18404
|
fr: {},
|
|
@@ -18290,7 +18436,7 @@ function useTranslationHook (item, state) {
|
|
|
18290
18436
|
};
|
|
18291
18437
|
var onChange = function onChange(value) {
|
|
18292
18438
|
state.onInputChanged();
|
|
18293
|
-
root.contentStore.
|
|
18439
|
+
root.contentStore.rightToolBar.currentLanguage = value;
|
|
18294
18440
|
setCurrentLang(value);
|
|
18295
18441
|
};
|
|
18296
18442
|
return {
|
|
@@ -18301,8 +18447,8 @@ function useTranslationHook (item, state) {
|
|
|
18301
18447
|
};
|
|
18302
18448
|
}
|
|
18303
18449
|
|
|
18304
|
-
function ownKeys$
|
|
18305
|
-
function _objectSpread$
|
|
18450
|
+
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; }
|
|
18451
|
+
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; }
|
|
18306
18452
|
var Translation = function Translation(_ref) {
|
|
18307
18453
|
var item = _ref.item,
|
|
18308
18454
|
state = _ref.state,
|
|
@@ -18352,7 +18498,7 @@ var Translation = function Translation(_ref) {
|
|
|
18352
18498
|
var hidden = state.getIsHidden(i, data);
|
|
18353
18499
|
var newAbsoluteName = absoluteName !== '' ? [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n)) : n;
|
|
18354
18500
|
return /*#__PURE__*/jsx(React.Fragment, {
|
|
18355
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
|
18501
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$C(_objectSpread$C({}, i), {}, {
|
|
18356
18502
|
name: n
|
|
18357
18503
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang) : /*#__PURE__*/jsx(Form$1.Item, {
|
|
18358
18504
|
id: idx.toString(),
|
|
@@ -18365,7 +18511,7 @@ var Translation = function Translation(_ref) {
|
|
|
18365
18511
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
18366
18512
|
help: state.fieldErrors[n.toString()],
|
|
18367
18513
|
hidden: hidden,
|
|
18368
|
-
children: getElement(_objectSpread$
|
|
18514
|
+
children: getElement(_objectSpread$C(_objectSpread$C({}, i), {}, {
|
|
18369
18515
|
name: n
|
|
18370
18516
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
|
18371
18517
|
})
|
|
@@ -18700,8 +18846,8 @@ var Text$1 = observer(Text);
|
|
|
18700
18846
|
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; } } }; }
|
|
18701
18847
|
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; } }
|
|
18702
18848
|
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; }
|
|
18703
|
-
function ownKeys$
|
|
18704
|
-
function _objectSpread$
|
|
18849
|
+
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; }
|
|
18850
|
+
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; }
|
|
18705
18851
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
|
18706
18852
|
var _isReadonly, _state$hiddenRequired;
|
|
18707
18853
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
|
@@ -18736,7 +18882,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
18736
18882
|
}
|
|
18737
18883
|
});
|
|
18738
18884
|
case 'selectSimple':
|
|
18739
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
18885
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$B(_objectSpread$B({}, item), {}, {
|
|
18740
18886
|
disabled: disabled,
|
|
18741
18887
|
onChange: function onChange(value) {
|
|
18742
18888
|
_onChange(absoluteName, value);
|
|
@@ -18940,7 +19086,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
18940
19086
|
value: item.value,
|
|
18941
19087
|
options: item.options.map(function (o) {
|
|
18942
19088
|
var _o$disabled;
|
|
18943
|
-
return _objectSpread$
|
|
19089
|
+
return _objectSpread$B(_objectSpread$B({}, o), {}, {
|
|
18944
19090
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
|
18945
19091
|
});
|
|
18946
19092
|
}),
|
|
@@ -18961,7 +19107,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
18961
19107
|
},
|
|
18962
19108
|
icon: item.icon,
|
|
18963
19109
|
callback: function callback(data) {
|
|
18964
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
|
19110
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$B(_objectSpread$B({}, state.data), data));
|
|
18965
19111
|
}
|
|
18966
19112
|
});
|
|
18967
19113
|
case 'media':
|
|
@@ -18982,7 +19128,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
18982
19128
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
18983
19129
|
var _useTranslation = useTranslation(),
|
|
18984
19130
|
t = _useTranslation.t;
|
|
18985
|
-
return /*#__PURE__*/jsx(Input, _objectSpread$
|
|
19131
|
+
return /*#__PURE__*/jsx(Input, _objectSpread$B(_objectSpread$B({}, props), {}, {
|
|
18986
19132
|
ref: ref,
|
|
18987
19133
|
disabled: true,
|
|
18988
19134
|
value: t(props.translationPrefix + '.' + props.value)
|
|
@@ -19001,8 +19147,8 @@ function isReadonly(item, data) {
|
|
|
19001
19147
|
return false;
|
|
19002
19148
|
}
|
|
19003
19149
|
|
|
19004
|
-
function ownKeys$
|
|
19005
|
-
function _objectSpread$
|
|
19150
|
+
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; }
|
|
19151
|
+
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; }
|
|
19006
19152
|
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; } } }; }
|
|
19007
19153
|
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; } }
|
|
19008
19154
|
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; }
|
|
@@ -19052,13 +19198,13 @@ var Presets = function Presets(_ref) {
|
|
|
19052
19198
|
} finally {
|
|
19053
19199
|
_iterator.f();
|
|
19054
19200
|
}
|
|
19055
|
-
var data = _objectSpread$
|
|
19201
|
+
var data = _objectSpread$A(_objectSpread$A({}, form.getFieldsValue(names)), {}, {
|
|
19056
19202
|
newPresetName: newPresetName
|
|
19057
19203
|
});
|
|
19058
19204
|
data.dpi = parseInt(data.dpi);
|
|
19059
19205
|
data.organization = root.getGlobalValue('organizationId');
|
|
19060
19206
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
|
19061
|
-
var dt = _objectSpread$
|
|
19207
|
+
var dt = _objectSpread$A(_objectSpread$A({}, form.getFieldsValue(names)), {}, {
|
|
19062
19208
|
name: newPresetName
|
|
19063
19209
|
});
|
|
19064
19210
|
setPresets({
|
|
@@ -19400,8 +19546,8 @@ function getLabel(item, t) {
|
|
|
19400
19546
|
}
|
|
19401
19547
|
var Form = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
|
19402
19548
|
|
|
19403
|
-
function ownKeys$
|
|
19404
|
-
function _objectSpread$
|
|
19549
|
+
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; }
|
|
19550
|
+
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; }
|
|
19405
19551
|
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; } } }; }
|
|
19406
19552
|
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; } }
|
|
19407
19553
|
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; }
|
|
@@ -19603,7 +19749,7 @@ function useRoleSelectorData (_ref) {
|
|
|
19603
19749
|
roles.forEach(function (r) {
|
|
19604
19750
|
//check if after the changes the role is selected
|
|
19605
19751
|
if (value.includes(r._id)) {
|
|
19606
|
-
var newValue = _objectSpread$
|
|
19752
|
+
var newValue = _objectSpread$z(_objectSpread$z({}, r), {}, {
|
|
19607
19753
|
selected: true
|
|
19608
19754
|
});
|
|
19609
19755
|
//add it to the new list as selected role
|
|
@@ -19639,7 +19785,7 @@ function useRoleSelectorData (_ref) {
|
|
|
19639
19785
|
}
|
|
19640
19786
|
}
|
|
19641
19787
|
} else {
|
|
19642
|
-
var _newValue = _objectSpread$
|
|
19788
|
+
var _newValue = _objectSpread$z(_objectSpread$z({}, r), {}, {
|
|
19643
19789
|
selected: false
|
|
19644
19790
|
});
|
|
19645
19791
|
//add it to the new list as unselected role
|
|
@@ -19843,7 +19989,7 @@ function _updateRoles() {
|
|
|
19843
19989
|
userRole = userRoles.find(function (r) {
|
|
19844
19990
|
return r._id == role._id;
|
|
19845
19991
|
});
|
|
19846
|
-
newRole = _objectSpread$
|
|
19992
|
+
newRole = _objectSpread$z({}, role);
|
|
19847
19993
|
if (userRole) {
|
|
19848
19994
|
newRole.selected = true;
|
|
19849
19995
|
newRole.inherited = userRole.inherited;
|
|
@@ -20063,7 +20209,7 @@ function _fetchOptions() {
|
|
|
20063
20209
|
case 4:
|
|
20064
20210
|
result = _context11.sent;
|
|
20065
20211
|
options = result.data.map(function (d) {
|
|
20066
|
-
return _objectSpread$
|
|
20212
|
+
return _objectSpread$z(_objectSpread$z({}, d), {}, {
|
|
20067
20213
|
label: d.displayName,
|
|
20068
20214
|
value: d._id,
|
|
20069
20215
|
isLeaf: !d.hasChildren
|
|
@@ -20165,8 +20311,8 @@ var parent = "parent-NZJ3S";
|
|
|
20165
20311
|
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";
|
|
20166
20312
|
styleInject(css_248z$i);
|
|
20167
20313
|
|
|
20168
|
-
function ownKeys$
|
|
20169
|
-
function _objectSpread$
|
|
20314
|
+
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; }
|
|
20315
|
+
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; }
|
|
20170
20316
|
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; } } }; }
|
|
20171
20317
|
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; } }
|
|
20172
20318
|
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; }
|
|
@@ -20226,8 +20372,8 @@ function _generateCSV() {
|
|
|
20226
20372
|
break;
|
|
20227
20373
|
}
|
|
20228
20374
|
_context2.next = 21;
|
|
20229
|
-
return generateCSV(_objectSpread$
|
|
20230
|
-
mappingData: _objectSpread$
|
|
20375
|
+
return generateCSV(_objectSpread$y(_objectSpread$y({}, exportParams.children), {}, {
|
|
20376
|
+
mappingData: _objectSpread$y(_objectSpread$y({}, parent), {}, {
|
|
20231
20377
|
parentId: exportParams.mappingData._id
|
|
20232
20378
|
})
|
|
20233
20379
|
}), csvData);
|
|
@@ -20335,8 +20481,8 @@ function _downloadFile() {
|
|
|
20335
20481
|
return _downloadFile.apply(this, arguments);
|
|
20336
20482
|
}
|
|
20337
20483
|
|
|
20338
|
-
function ownKeys$
|
|
20339
|
-
function _objectSpread$
|
|
20484
|
+
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; }
|
|
20485
|
+
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; }
|
|
20340
20486
|
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; } } }; }
|
|
20341
20487
|
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; } }
|
|
20342
20488
|
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; }
|
|
@@ -20755,7 +20901,7 @@ function useRelationSelectorData (_ref) {
|
|
|
20755
20901
|
var activeItem = _step.value;
|
|
20756
20902
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
|
20757
20903
|
addedObjects.push(addedData);
|
|
20758
|
-
getSplittedItems(_objectSpread$
|
|
20904
|
+
getSplittedItems(_objectSpread$x(_objectSpread$x({}, activeItem), {}, {
|
|
20759
20905
|
userId: data === null || data === void 0 ? void 0 : data._id
|
|
20760
20906
|
}));
|
|
20761
20907
|
ret = true;
|
|
@@ -20960,8 +21106,8 @@ function useRelationSelectorData (_ref) {
|
|
|
20960
21106
|
};
|
|
20961
21107
|
}
|
|
20962
21108
|
|
|
20963
|
-
function ownKeys$
|
|
20964
|
-
function _objectSpread$
|
|
21109
|
+
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; }
|
|
21110
|
+
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; }
|
|
20965
21111
|
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; } } }; }
|
|
20966
21112
|
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; } }
|
|
20967
21113
|
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; }
|
|
@@ -21094,7 +21240,7 @@ function ActionButton (_ref) {
|
|
|
21094
21240
|
_iterator2.f();
|
|
21095
21241
|
}
|
|
21096
21242
|
_context.next = 19;
|
|
21097
|
-
return apiInterface.update(_objectSpread$
|
|
21243
|
+
return apiInterface.update(_objectSpread$w(_objectSpread$w({}, data), {}, {
|
|
21098
21244
|
state: toSwitch
|
|
21099
21245
|
}), data);
|
|
21100
21246
|
case 19:
|
|
@@ -21251,14 +21397,14 @@ function _simpleChangeValue() {
|
|
|
21251
21397
|
break;
|
|
21252
21398
|
}
|
|
21253
21399
|
for (i = 0; i < action.newValues.length; i++) {
|
|
21254
|
-
fieldsToUpdate = _objectSpread$
|
|
21400
|
+
fieldsToUpdate = _objectSpread$w(_objectSpread$w({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
|
21255
21401
|
}
|
|
21256
21402
|
if (!apiInterface.canUpdate) {
|
|
21257
21403
|
_context2.next = 9;
|
|
21258
21404
|
break;
|
|
21259
21405
|
}
|
|
21260
21406
|
_context2.next = 7;
|
|
21261
|
-
return apiInterface.update(_objectSpread$
|
|
21407
|
+
return apiInterface.update(_objectSpread$w({}, fieldsToUpdate), data);
|
|
21262
21408
|
case 7:
|
|
21263
21409
|
response = _context2.sent;
|
|
21264
21410
|
return _context2.abrupt("return", response);
|
|
@@ -21273,7 +21419,7 @@ function _simpleChangeValue() {
|
|
|
21273
21419
|
return _simpleChangeValue.apply(this, arguments);
|
|
21274
21420
|
}
|
|
21275
21421
|
function A(props) {
|
|
21276
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
|
21422
|
+
return /*#__PURE__*/jsx("a", _objectSpread$w({}, props));
|
|
21277
21423
|
}
|
|
21278
21424
|
|
|
21279
21425
|
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; } } }; }
|
|
@@ -21411,8 +21557,8 @@ var itemDesc = "item-desc-DBiiF";
|
|
|
21411
21557
|
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";
|
|
21412
21558
|
styleInject(css_248z$h);
|
|
21413
21559
|
|
|
21414
|
-
function ownKeys$
|
|
21415
|
-
function _objectSpread$
|
|
21560
|
+
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; }
|
|
21561
|
+
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; }
|
|
21416
21562
|
var DropDown = function DropDown(_ref) {
|
|
21417
21563
|
var _curItem$data$length;
|
|
21418
21564
|
var split = _ref.split,
|
|
@@ -21444,7 +21590,7 @@ var DropDown = function DropDown(_ref) {
|
|
|
21444
21590
|
});
|
|
21445
21591
|
return /*#__PURE__*/jsx(Collapse, {
|
|
21446
21592
|
onChange: function onChange() {
|
|
21447
|
-
return getSplittedItems(_objectSpread$
|
|
21593
|
+
return getSplittedItems(_objectSpread$v(_objectSpread$v({}, item.item), {}, {
|
|
21448
21594
|
parentId: item.parentId
|
|
21449
21595
|
}), 0);
|
|
21450
21596
|
},
|
|
@@ -21702,8 +21848,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
|
21702
21848
|
};
|
|
21703
21849
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
|
21704
21850
|
|
|
21705
|
-
function ownKeys$
|
|
21706
|
-
function _objectSpread$
|
|
21851
|
+
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; }
|
|
21852
|
+
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; }
|
|
21707
21853
|
function useFormListData (_ref) {
|
|
21708
21854
|
var _configuration$defaul;
|
|
21709
21855
|
var id = _ref.id,
|
|
@@ -21783,7 +21929,7 @@ function useFormListData (_ref) {
|
|
|
21783
21929
|
if (updated.length == state.length) {
|
|
21784
21930
|
newState = state.map(function (s, i) {
|
|
21785
21931
|
var _updated$find;
|
|
21786
|
-
return _objectSpread$
|
|
21932
|
+
return _objectSpread$u(_objectSpread$u({}, s), {}, {
|
|
21787
21933
|
data: (_updated$find = updated.find(function (u) {
|
|
21788
21934
|
return u.index == i;
|
|
21789
21935
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
|
@@ -21920,8 +22066,8 @@ var FormList = function FormList(_ref, ref) {
|
|
|
21920
22066
|
};
|
|
21921
22067
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
|
21922
22068
|
|
|
21923
|
-
function ownKeys$
|
|
21924
|
-
function _objectSpread$
|
|
22069
|
+
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; }
|
|
22070
|
+
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; }
|
|
21925
22071
|
var LOG$6 = getLogger('Backoffice', 'SelectOrCreate');
|
|
21926
22072
|
function useSelectOrCreateData (_ref) {
|
|
21927
22073
|
var id = _ref.id,
|
|
@@ -22018,7 +22164,7 @@ function useSelectOrCreateData (_ref) {
|
|
|
22018
22164
|
_context.next = 7;
|
|
22019
22165
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
|
22020
22166
|
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) {
|
|
22021
|
-
return _objectSpread$
|
|
22167
|
+
return _objectSpread$t(_objectSpread$t({}, filter), {}, _defineProperty({}, field.field, [value, field.filter, true]));
|
|
22022
22168
|
}, {}) : {
|
|
22023
22169
|
_id: [value, 'contains']
|
|
22024
22170
|
},
|
|
@@ -22329,8 +22475,8 @@ var Multiple = function Multiple(_ref3) {
|
|
|
22329
22475
|
});
|
|
22330
22476
|
};
|
|
22331
22477
|
|
|
22332
|
-
function ownKeys$
|
|
22333
|
-
function _objectSpread$
|
|
22478
|
+
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; }
|
|
22479
|
+
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; }
|
|
22334
22480
|
function useListData (_ref) {
|
|
22335
22481
|
var id = _ref.id,
|
|
22336
22482
|
data = _ref.data;
|
|
@@ -22373,7 +22519,7 @@ function useListData (_ref) {
|
|
|
22373
22519
|
case 3:
|
|
22374
22520
|
result = _context.sent;
|
|
22375
22521
|
setListData(result.data.map(parseField));
|
|
22376
|
-
initData = _objectSpread$
|
|
22522
|
+
initData = _objectSpread$s({}, data);
|
|
22377
22523
|
setUpdatedObject(initData);
|
|
22378
22524
|
setLoading(false);
|
|
22379
22525
|
case 8:
|
|
@@ -22414,7 +22560,7 @@ function useListData (_ref) {
|
|
|
22414
22560
|
});
|
|
22415
22561
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
|
22416
22562
|
var parsedField = field.field.split('.');
|
|
22417
|
-
item.itemUpdate = _objectSpread$
|
|
22563
|
+
item.itemUpdate = _objectSpread$s(_objectSpread$s({}, field), {}, {
|
|
22418
22564
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
|
22419
22565
|
});
|
|
22420
22566
|
});
|
|
@@ -22445,16 +22591,16 @@ function useListData (_ref) {
|
|
|
22445
22591
|
console.error('field with more than 2 parts not allowed');
|
|
22446
22592
|
return;
|
|
22447
22593
|
}
|
|
22448
|
-
var updObj = _objectSpread$
|
|
22594
|
+
var updObj = _objectSpread$s({}, updatedObject);
|
|
22449
22595
|
if (fields.length === 1) {
|
|
22450
|
-
updObj = _objectSpread$
|
|
22596
|
+
updObj = _objectSpread$s(_objectSpread$s({}, updObj), {}, _defineProperty({}, fields[0], value));
|
|
22451
22597
|
} else if (fields.length === 2) {
|
|
22452
22598
|
var updatedField = updObj[fields[0]].find(function (v) {
|
|
22453
22599
|
return v.id === item.id.trim();
|
|
22454
22600
|
});
|
|
22455
22601
|
if (updatedField) {
|
|
22456
|
-
var updatedFieldCopy = _objectSpread$
|
|
22457
|
-
updObj = _objectSpread$
|
|
22602
|
+
var updatedFieldCopy = _objectSpread$s(_objectSpread$s({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
|
22603
|
+
updObj = _objectSpread$s(_objectSpread$s({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
|
22458
22604
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
|
22459
22605
|
})));
|
|
22460
22606
|
}
|
|
@@ -22463,11 +22609,11 @@ function useListData (_ref) {
|
|
|
22463
22609
|
var acItems = listData;
|
|
22464
22610
|
for (var i = 0; i < acItems.length; i++) {
|
|
22465
22611
|
if (i == index) {
|
|
22466
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
22612
|
+
acItems[i].itemUpdate = _objectSpread$s(_objectSpread$s({}, acItems[i].itemUpdate), {}, {
|
|
22467
22613
|
value: value
|
|
22468
22614
|
});
|
|
22469
22615
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
|
22470
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
22616
|
+
acItems[i].itemUpdate = _objectSpread$s(_objectSpread$s({}, acItems[i].itemUpdate), {}, {
|
|
22471
22617
|
value: !value
|
|
22472
22618
|
});
|
|
22473
22619
|
}
|
|
@@ -22981,8 +23127,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
|
22981
23127
|
};
|
|
22982
23128
|
}
|
|
22983
23129
|
|
|
22984
|
-
function ownKeys$
|
|
22985
|
-
function _objectSpread$
|
|
23130
|
+
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; }
|
|
23131
|
+
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; }
|
|
22986
23132
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
|
22987
23133
|
var id = _ref.id,
|
|
22988
23134
|
data = _ref.data,
|
|
@@ -23090,12 +23236,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
23090
23236
|
}
|
|
23091
23237
|
function onEnter(e) {
|
|
23092
23238
|
if (e.key != 'Enter') return;
|
|
23093
|
-
setCrop(_objectSpread$
|
|
23239
|
+
setCrop(_objectSpread$r(_objectSpread$r({}, crop), {}, {
|
|
23094
23240
|
unit: 'px',
|
|
23095
23241
|
width: Number(widthInputElement.current.value),
|
|
23096
23242
|
height: Number(heightInputElement.current.value)
|
|
23097
23243
|
}));
|
|
23098
|
-
setCompletedCrop(_objectSpread$
|
|
23244
|
+
setCompletedCrop(_objectSpread$r(_objectSpread$r({}, crop), {}, {
|
|
23099
23245
|
unit: 'px',
|
|
23100
23246
|
width: Number(widthInputElement.current.value),
|
|
23101
23247
|
height: Number(heightInputElement.current.value)
|
|
@@ -23173,8 +23319,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
|
23173
23319
|
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; } } }; }
|
|
23174
23320
|
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; } }
|
|
23175
23321
|
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; }
|
|
23176
|
-
function ownKeys$
|
|
23177
|
-
function _objectSpread$
|
|
23322
|
+
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; }
|
|
23323
|
+
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; }
|
|
23178
23324
|
function useDescriptions (_ref) {
|
|
23179
23325
|
var id = _ref.id;
|
|
23180
23326
|
var root = useStore();
|
|
@@ -23267,7 +23413,7 @@ function _getDisplayData() {
|
|
|
23267
23413
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
23268
23414
|
while (1) switch (_context4.prev = _context4.next) {
|
|
23269
23415
|
case 0:
|
|
23270
|
-
displayData = _objectSpread$
|
|
23416
|
+
displayData = _objectSpread$q({}, data);
|
|
23271
23417
|
_iterator = _createForOfIteratorHelper$9(items);
|
|
23272
23418
|
_context4.prev = 2;
|
|
23273
23419
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
@@ -23543,8 +23689,8 @@ var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
|
23543
23689
|
};
|
|
23544
23690
|
var FileUploadBeta = observer(FileUploadWrapper);
|
|
23545
23691
|
|
|
23546
|
-
function ownKeys$
|
|
23547
|
-
function _objectSpread$
|
|
23692
|
+
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; }
|
|
23693
|
+
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; }
|
|
23548
23694
|
function useGridData (_ref) {
|
|
23549
23695
|
var id = _ref.id,
|
|
23550
23696
|
data = _ref.data;
|
|
@@ -23587,11 +23733,11 @@ function useGridData (_ref) {
|
|
|
23587
23733
|
function reducer(state, action) {
|
|
23588
23734
|
switch (action.type) {
|
|
23589
23735
|
case 'update':
|
|
23590
|
-
return _objectSpread$
|
|
23736
|
+
return _objectSpread$p(_objectSpread$p({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$p(_objectSpread$p({}, action.data), {}, {
|
|
23591
23737
|
buffer: Buffer.from(action.data.buffer)
|
|
23592
23738
|
})));
|
|
23593
23739
|
case 'delete':
|
|
23594
|
-
var newState = _objectSpread$
|
|
23740
|
+
var newState = _objectSpread$p({}, state);
|
|
23595
23741
|
delete newState[action.data.divaNr];
|
|
23596
23742
|
return newState;
|
|
23597
23743
|
default:
|
|
@@ -23605,7 +23751,7 @@ var css_248z$f = ".grid-sGemi {\n display: grid;\n grid-template-columns: repe
|
|
|
23605
23751
|
styleInject(css_248z$f);
|
|
23606
23752
|
|
|
23607
23753
|
var wrapper$2 = "wrapper-p-gR3";
|
|
23608
|
-
var container$
|
|
23754
|
+
var container$3 = "container-DoZqe";
|
|
23609
23755
|
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";
|
|
23610
23756
|
styleInject(css_248z$e);
|
|
23611
23757
|
|
|
@@ -23626,7 +23772,7 @@ var ToolTipInfo = function ToolTipInfo(props) {
|
|
|
23626
23772
|
width: 230
|
|
23627
23773
|
},
|
|
23628
23774
|
children: /*#__PURE__*/jsx("div", {
|
|
23629
|
-
className: container$
|
|
23775
|
+
className: container$3
|
|
23630
23776
|
})
|
|
23631
23777
|
})
|
|
23632
23778
|
});
|
|
@@ -23678,8 +23824,8 @@ var Grid = function Grid(_ref) {
|
|
|
23678
23824
|
});
|
|
23679
23825
|
};
|
|
23680
23826
|
|
|
23681
|
-
function ownKeys$
|
|
23682
|
-
function _objectSpread$
|
|
23827
|
+
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; }
|
|
23828
|
+
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; }
|
|
23683
23829
|
var useMediaUpload = function useMediaUpload(_ref) {
|
|
23684
23830
|
var id = _ref.id;
|
|
23685
23831
|
var root = useStore();
|
|
@@ -23798,7 +23944,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
23798
23944
|
onRemove: onRemove,
|
|
23799
23945
|
customRequest: customRequest,
|
|
23800
23946
|
fileList: fileList.map(function (f) {
|
|
23801
|
-
return _objectSpread$
|
|
23947
|
+
return _objectSpread$o(_objectSpread$o({}, f), {}, {
|
|
23802
23948
|
url: f.url
|
|
23803
23949
|
});
|
|
23804
23950
|
}),
|
|
@@ -24555,8 +24701,8 @@ function LinkCell (_ref) {
|
|
|
24555
24701
|
|
|
24556
24702
|
var _excluded$1 = ["index"],
|
|
24557
24703
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
|
24558
|
-
function ownKeys$
|
|
24559
|
-
function _objectSpread$
|
|
24704
|
+
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; }
|
|
24705
|
+
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; }
|
|
24560
24706
|
var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
|
24561
24707
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
|
24562
24708
|
var CustomRow = function CustomRow(_ref) {
|
|
@@ -24570,7 +24716,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
|
24570
24716
|
component: false,
|
|
24571
24717
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
|
24572
24718
|
value: form,
|
|
24573
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
|
24719
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$n({}, props))
|
|
24574
24720
|
})
|
|
24575
24721
|
});
|
|
24576
24722
|
};
|
|
@@ -24623,7 +24769,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
24623
24769
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
|
24624
24770
|
longDescriptionType = 'text';
|
|
24625
24771
|
}
|
|
24626
|
-
var modifiedColumn = _objectSpread$
|
|
24772
|
+
var modifiedColumn = _objectSpread$n(_objectSpread$n({}, column), {}, {
|
|
24627
24773
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
|
24628
24774
|
});
|
|
24629
24775
|
if (column) {
|
|
@@ -24636,40 +24782,40 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
24636
24782
|
};
|
|
24637
24783
|
switch (modifiedColumn.type) {
|
|
24638
24784
|
case 'boolean':
|
|
24639
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
|
24785
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$n({}, cellProps));
|
|
24640
24786
|
break;
|
|
24641
24787
|
case 'text':
|
|
24642
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
|
24788
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$n({}, cellProps));
|
|
24643
24789
|
break;
|
|
24644
24790
|
case 'select':
|
|
24645
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
|
24791
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$n({}, cellProps));
|
|
24646
24792
|
case 'media':
|
|
24647
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
|
24793
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$n({}, cellProps));
|
|
24648
24794
|
break;
|
|
24649
24795
|
case 'mediaItem':
|
|
24650
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
|
24796
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$n({}, cellProps));
|
|
24651
24797
|
break;
|
|
24652
24798
|
case 'unixTimeStamp':
|
|
24653
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
|
24799
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$n({}, cellProps));
|
|
24654
24800
|
break;
|
|
24655
24801
|
case 'unixTimeStampCheck':
|
|
24656
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
|
24802
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$n({}, cellProps));
|
|
24657
24803
|
break;
|
|
24658
24804
|
case 'icon':
|
|
24659
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
|
24805
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$n({}, cellProps));
|
|
24660
24806
|
break;
|
|
24661
24807
|
case 'progress':
|
|
24662
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
|
24808
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$n({}, cellProps));
|
|
24663
24809
|
break;
|
|
24664
24810
|
case 'link':
|
|
24665
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
|
24811
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$n({}, cellProps));
|
|
24666
24812
|
break;
|
|
24667
24813
|
default:
|
|
24668
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
|
24814
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$n({}, cellProps));
|
|
24669
24815
|
break;
|
|
24670
24816
|
}
|
|
24671
24817
|
}
|
|
24672
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
|
24818
|
+
return /*#__PURE__*/jsx("td", _objectSpread$n(_objectSpread$n({}, restProps), {}, {
|
|
24673
24819
|
children: childNode
|
|
24674
24820
|
}));
|
|
24675
24821
|
};
|
|
@@ -24858,7 +25004,7 @@ function useAGHistogram (_ref) {
|
|
|
24858
25004
|
};
|
|
24859
25005
|
}
|
|
24860
25006
|
|
|
24861
|
-
var container$
|
|
25007
|
+
var container$2 = "container-2r-OJ";
|
|
24862
25008
|
var column1 = "column1-9viTK";
|
|
24863
25009
|
var spinner = "spinner-00VcK";
|
|
24864
25010
|
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";
|
|
@@ -24975,7 +25121,7 @@ function AGHistogram (_ref) {
|
|
|
24975
25121
|
children: /*#__PURE__*/jsx(Panel, {
|
|
24976
25122
|
header: headerText,
|
|
24977
25123
|
children: /*#__PURE__*/jsxs("div", {
|
|
24978
|
-
className: container$
|
|
25124
|
+
className: container$2,
|
|
24979
25125
|
children: [!loadingHistogram && /*#__PURE__*/jsx("div", {
|
|
24980
25126
|
className: classnames(column1, 'ag-theme-alpine'),
|
|
24981
25127
|
style: {
|
|
@@ -25021,8 +25167,8 @@ var SMChart = function SMChart(props) {
|
|
|
25021
25167
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
|
25022
25168
|
};
|
|
25023
25169
|
|
|
25024
|
-
function ownKeys$
|
|
25025
|
-
function _objectSpread$
|
|
25170
|
+
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; }
|
|
25171
|
+
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; }
|
|
25026
25172
|
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; } } }; }
|
|
25027
25173
|
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; } }
|
|
25028
25174
|
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; }
|
|
@@ -25217,7 +25363,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
25217
25363
|
// Convert to Dayjs
|
|
25218
25364
|
(_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 && _state$globalFilter4[0] ? dayjs((_state$globalFilter5 = state.globalFilter) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5.timeStamp) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5['toTimeStamp']) === null || _state$globalFilter5 === void 0 ? void 0 : _state$globalFilter5[0]) : dayjs(new Date()) // Convert to Dayjs
|
|
25219
25365
|
]
|
|
25220
|
-
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
25366
|
+
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$m(_objectSpread$m({}, (_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.select.settings), {}, {
|
|
25221
25367
|
style: {
|
|
25222
25368
|
minWidth: '200px'
|
|
25223
25369
|
},
|
|
@@ -25322,7 +25468,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
25322
25468
|
},
|
|
25323
25469
|
dataSource: data,
|
|
25324
25470
|
loading: state.loading,
|
|
25325
|
-
pagination: _objectSpread$
|
|
25471
|
+
pagination: _objectSpread$m(_objectSpread$m({}, state.pagination), {}, {
|
|
25326
25472
|
showTotal: function showTotal(total, range) {
|
|
25327
25473
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
|
25328
25474
|
},
|
|
@@ -25629,7 +25775,7 @@ function BulkAction(_ref6) {
|
|
|
25629
25775
|
}
|
|
25630
25776
|
_context4.t0 = data;
|
|
25631
25777
|
_context4.next = 11;
|
|
25632
|
-
return apiInterface.update(_objectSpread$
|
|
25778
|
+
return apiInterface.update(_objectSpread$m(_objectSpread$m({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
|
25633
25779
|
case 11:
|
|
25634
25780
|
_context4.t1 = _context4.sent;
|
|
25635
25781
|
_context4.t0.push.call(_context4.t0, _context4.t1);
|
|
@@ -25742,8 +25888,8 @@ function SelectionText(_ref8) {
|
|
|
25742
25888
|
});
|
|
25743
25889
|
}
|
|
25744
25890
|
|
|
25745
|
-
function ownKeys$
|
|
25746
|
-
function _objectSpread$
|
|
25891
|
+
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; }
|
|
25892
|
+
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; }
|
|
25747
25893
|
function getColumnFilterProps (_ref) {
|
|
25748
25894
|
var filter = _ref.filter,
|
|
25749
25895
|
title = _ref.title;
|
|
@@ -26106,7 +26252,7 @@ var selectProps = function selectProps(title, filter) {
|
|
|
26106
26252
|
});
|
|
26107
26253
|
},
|
|
26108
26254
|
options: filter.map(function (f) {
|
|
26109
|
-
return _objectSpread$
|
|
26255
|
+
return _objectSpread$l(_objectSpread$l({}, f), {}, {
|
|
26110
26256
|
label: t(f.label)
|
|
26111
26257
|
});
|
|
26112
26258
|
})
|
|
@@ -26155,7 +26301,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
26155
26301
|
setDisplaySelectedvalues = _useState4[1];
|
|
26156
26302
|
var options = [];
|
|
26157
26303
|
options = filter.map(function (f) {
|
|
26158
|
-
return _objectSpread$
|
|
26304
|
+
return _objectSpread$l(_objectSpread$l({}, f), {}, {
|
|
26159
26305
|
label: t(f.label)
|
|
26160
26306
|
});
|
|
26161
26307
|
});
|
|
@@ -26229,8 +26375,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
26229
26375
|
};
|
|
26230
26376
|
};
|
|
26231
26377
|
|
|
26232
|
-
function ownKeys$
|
|
26233
|
-
function _objectSpread$
|
|
26378
|
+
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; }
|
|
26379
|
+
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; }
|
|
26234
26380
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
|
|
26235
26381
|
var columns = configuration.columns.filter(function (c) {
|
|
26236
26382
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
|
@@ -26283,7 +26429,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
|
26283
26429
|
}
|
|
26284
26430
|
function mapColumn(column, onUpdate) {
|
|
26285
26431
|
var _column$field, _column$children;
|
|
26286
|
-
return _objectSpread$
|
|
26432
|
+
return _objectSpread$k(_objectSpread$k(_objectSpread$k({}, column), {}, {
|
|
26287
26433
|
hidden: false,
|
|
26288
26434
|
width: column.width || 100,
|
|
26289
26435
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
|
@@ -26333,8 +26479,8 @@ function updateData (_ref) {
|
|
|
26333
26479
|
};
|
|
26334
26480
|
}
|
|
26335
26481
|
|
|
26336
|
-
function ownKeys$
|
|
26337
|
-
function _objectSpread$
|
|
26482
|
+
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; }
|
|
26483
|
+
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; }
|
|
26338
26484
|
function applyFilterAndSortation (_ref) {
|
|
26339
26485
|
var data = _ref.data,
|
|
26340
26486
|
filters = _ref.filters,
|
|
@@ -26349,7 +26495,7 @@ function applyFilterAndSortation (_ref) {
|
|
|
26349
26495
|
processedData = sort(sorter || [], processedData);
|
|
26350
26496
|
return {
|
|
26351
26497
|
data: processedData,
|
|
26352
|
-
pagination: _objectSpread$
|
|
26498
|
+
pagination: _objectSpread$j(_objectSpread$j({}, pagination), {}, {
|
|
26353
26499
|
total: processedData.length
|
|
26354
26500
|
})
|
|
26355
26501
|
};
|
|
@@ -26434,8 +26580,8 @@ function filter(f, data) {
|
|
|
26434
26580
|
}
|
|
26435
26581
|
|
|
26436
26582
|
var _excluded = ["_id"];
|
|
26437
|
-
function ownKeys$
|
|
26438
|
-
function _objectSpread$
|
|
26583
|
+
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; }
|
|
26584
|
+
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; }
|
|
26439
26585
|
function useTableData$1 (_ref) {
|
|
26440
26586
|
var _configuration$apiInt;
|
|
26441
26587
|
var id = _ref.id;
|
|
@@ -26490,7 +26636,7 @@ function useTableData$1 (_ref) {
|
|
|
26490
26636
|
var _configuration$create;
|
|
26491
26637
|
if (!dataRow) return;
|
|
26492
26638
|
var id = v4();
|
|
26493
|
-
var processedDataRow = unflatten(_objectSpread$
|
|
26639
|
+
var processedDataRow = unflatten(_objectSpread$i({
|
|
26494
26640
|
_id: id,
|
|
26495
26641
|
ID: id
|
|
26496
26642
|
}, dataRow));
|
|
@@ -26502,11 +26648,11 @@ function useTableData$1 (_ref) {
|
|
|
26502
26648
|
newData = _updateData.data;
|
|
26503
26649
|
_updateData.prevDataRow;
|
|
26504
26650
|
_updateData.index;
|
|
26505
|
-
var newState = _objectSpread$
|
|
26651
|
+
var newState = _objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26506
26652
|
data: newData
|
|
26507
26653
|
});
|
|
26508
26654
|
if (!filterServerSide) {
|
|
26509
|
-
var res = applyFilterAndSortation(_objectSpread$
|
|
26655
|
+
var res = applyFilterAndSortation(_objectSpread$i(_objectSpread$i({}, filterData), {}, {
|
|
26510
26656
|
data: newData
|
|
26511
26657
|
}));
|
|
26512
26658
|
newState.data = res.data;
|
|
@@ -26518,33 +26664,33 @@ function useTableData$1 (_ref) {
|
|
|
26518
26664
|
var formData = new FormData();
|
|
26519
26665
|
processedDataRow._id;
|
|
26520
26666
|
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
|
26521
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
|
26667
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$i(_objectSpread$i({}, catalogItem), {}, {
|
|
26522
26668
|
filterContex: filterContex,
|
|
26523
26669
|
value: JSON.stringify([value])
|
|
26524
26670
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
|
26525
26671
|
if (d && d.Result && d.Result == 'Success') return;
|
|
26526
|
-
setState(_objectSpread$
|
|
26672
|
+
setState(_objectSpread$i({}, oldState));
|
|
26527
26673
|
});
|
|
26528
26674
|
}, [state, catalogItem, filterData]);
|
|
26529
26675
|
useEffect(function () {
|
|
26530
26676
|
if (!catalogItem) return;
|
|
26531
|
-
setState(_objectSpread$
|
|
26677
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26532
26678
|
loading: true,
|
|
26533
|
-
mappingData: _objectSpread$
|
|
26679
|
+
mappingData: _objectSpread$i(_objectSpread$i({}, catalogItem), {}, {
|
|
26534
26680
|
filterContex: filterContex
|
|
26535
26681
|
})
|
|
26536
26682
|
}));
|
|
26537
26683
|
if (!filterServerSide) {
|
|
26538
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
26684
|
+
apiHandler.readList(configuration.mapping, _objectSpread$i(_objectSpread$i({}, catalogItem), {}, {
|
|
26539
26685
|
filterContex: filterContex
|
|
26540
26686
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
|
26541
26687
|
var newData = data.data.map(function (d) {
|
|
26542
|
-
return _objectSpread$
|
|
26688
|
+
return _objectSpread$i(_objectSpread$i({}, d), {}, {
|
|
26543
26689
|
_id: d._id || d.ID || nanoid()
|
|
26544
26690
|
});
|
|
26545
26691
|
});
|
|
26546
26692
|
onChange({
|
|
26547
|
-
pagination: _objectSpread$
|
|
26693
|
+
pagination: _objectSpread$i({}, state.pagination),
|
|
26548
26694
|
filters: {},
|
|
26549
26695
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
26550
26696
|
return c.defaultSortOrder;
|
|
@@ -26560,7 +26706,7 @@ function useTableData$1 (_ref) {
|
|
|
26560
26706
|
});
|
|
26561
26707
|
} else {
|
|
26562
26708
|
onChange({
|
|
26563
|
-
pagination: _objectSpread$
|
|
26709
|
+
pagination: _objectSpread$i({}, state.pagination),
|
|
26564
26710
|
filters: {},
|
|
26565
26711
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
26566
26712
|
return c.defaultSortOrder;
|
|
@@ -26576,17 +26722,17 @@ function useTableData$1 (_ref) {
|
|
|
26576
26722
|
}
|
|
26577
26723
|
}, [filterContex, catalogItem]);
|
|
26578
26724
|
var onChange = function onChange(p, dataParam) {
|
|
26579
|
-
setState(_objectSpread$
|
|
26725
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26580
26726
|
loading: true
|
|
26581
26727
|
}));
|
|
26582
26728
|
if (!filterServerSide) {
|
|
26583
26729
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
|
26584
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
26730
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$i(_objectSpread$i({}, p), {}, {
|
|
26585
26731
|
data: unfilteredData
|
|
26586
26732
|
})),
|
|
26587
26733
|
data = _applyFilterAndSortat.data,
|
|
26588
26734
|
pagination = _applyFilterAndSortat.pagination;
|
|
26589
|
-
setState(_objectSpread$
|
|
26735
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26590
26736
|
data: data,
|
|
26591
26737
|
pagination: pagination,
|
|
26592
26738
|
loading: false,
|
|
@@ -26597,20 +26743,20 @@ function useTableData$1 (_ref) {
|
|
|
26597
26743
|
sorter: p.sorter
|
|
26598
26744
|
});
|
|
26599
26745
|
} else {
|
|
26600
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
26746
|
+
apiHandler.readList(configuration.mapping, _objectSpread$i(_objectSpread$i({}, catalogItem), {}, {
|
|
26601
26747
|
filterContex: filterContex
|
|
26602
26748
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
|
26603
|
-
setState(_objectSpread$
|
|
26749
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26604
26750
|
data: data.data.map(function (dt) {
|
|
26605
|
-
return _objectSpread$
|
|
26751
|
+
return _objectSpread$i(_objectSpread$i({}, dt), {}, {
|
|
26606
26752
|
_id: dt._id || dt.ID || nanoid()
|
|
26607
26753
|
});
|
|
26608
26754
|
}),
|
|
26609
|
-
pagination: _objectSpread$
|
|
26755
|
+
pagination: _objectSpread$i(_objectSpread$i({}, p.pagination), {}, {
|
|
26610
26756
|
total: data.total
|
|
26611
26757
|
}),
|
|
26612
26758
|
loading: false,
|
|
26613
|
-
mappingData: _objectSpread$
|
|
26759
|
+
mappingData: _objectSpread$i(_objectSpread$i({}, catalogItem), {}, {
|
|
26614
26760
|
filterContex: filterContex
|
|
26615
26761
|
})
|
|
26616
26762
|
}));
|
|
@@ -26631,7 +26777,7 @@ function useTableData$1 (_ref) {
|
|
|
26631
26777
|
filters['_id'] = [id, 'eq', false];
|
|
26632
26778
|
_context.next = 4;
|
|
26633
26779
|
return apiHandler.readList(configuration.mapping, {
|
|
26634
|
-
pagination: _objectSpread$
|
|
26780
|
+
pagination: _objectSpread$i({}, state.pagination),
|
|
26635
26781
|
columns: configuration.columns,
|
|
26636
26782
|
filters: filters,
|
|
26637
26783
|
sorter: filterData.sorter
|
|
@@ -26650,7 +26796,7 @@ function useTableData$1 (_ref) {
|
|
|
26650
26796
|
};
|
|
26651
26797
|
}();
|
|
26652
26798
|
var onSelect = function onSelect(keys) {
|
|
26653
|
-
setState(_objectSpread$
|
|
26799
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26654
26800
|
selected: keys
|
|
26655
26801
|
}));
|
|
26656
26802
|
};
|
|
@@ -26660,7 +26806,7 @@ function useTableData$1 (_ref) {
|
|
|
26660
26806
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
26661
26807
|
while (1) switch (_context3.prev = _context3.next) {
|
|
26662
26808
|
case 0:
|
|
26663
|
-
setState(_objectSpread$
|
|
26809
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26664
26810
|
deleting: true
|
|
26665
26811
|
}));
|
|
26666
26812
|
newData = _toConsumableArray(state.data);
|
|
@@ -26675,7 +26821,7 @@ function useTableData$1 (_ref) {
|
|
|
26675
26821
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
|
26676
26822
|
return nd._id === state.selected[index];
|
|
26677
26823
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
|
26678
|
-
mappingData = _objectSpread$
|
|
26824
|
+
mappingData = _objectSpread$i(_objectSpread$i({}, mappingData), state.mappingData);
|
|
26679
26825
|
_context2.next = 5;
|
|
26680
26826
|
return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid);
|
|
26681
26827
|
case 5:
|
|
@@ -26725,7 +26871,7 @@ function useTableData$1 (_ref) {
|
|
|
26725
26871
|
}
|
|
26726
26872
|
_context3.next = 18;
|
|
26727
26873
|
return apiHandler.readList(configuration.mapping, {
|
|
26728
|
-
pagination: _objectSpread$
|
|
26874
|
+
pagination: _objectSpread$i(_objectSpread$i({}, state.pagination), {}, {
|
|
26729
26875
|
current: current
|
|
26730
26876
|
}),
|
|
26731
26877
|
columns: configuration.columns,
|
|
@@ -26737,11 +26883,11 @@ function useTableData$1 (_ref) {
|
|
|
26737
26883
|
newData = data.data;
|
|
26738
26884
|
total = data.total;
|
|
26739
26885
|
case 21:
|
|
26740
|
-
setState(_objectSpread$
|
|
26886
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26741
26887
|
selected: [],
|
|
26742
26888
|
deleting: false,
|
|
26743
26889
|
data: newData,
|
|
26744
|
-
pagination: _objectSpread$
|
|
26890
|
+
pagination: _objectSpread$i(_objectSpread$i({}, state.pagination), {}, {
|
|
26745
26891
|
current: current,
|
|
26746
26892
|
total: total
|
|
26747
26893
|
})
|
|
@@ -26757,12 +26903,12 @@ function useTableData$1 (_ref) {
|
|
|
26757
26903
|
};
|
|
26758
26904
|
}();
|
|
26759
26905
|
function setLoading() {
|
|
26760
|
-
setState(_objectSpread$
|
|
26906
|
+
setState(_objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26761
26907
|
loading: true
|
|
26762
26908
|
}));
|
|
26763
26909
|
}
|
|
26764
|
-
return _objectSpread$
|
|
26765
|
-
configuration: _objectSpread$
|
|
26910
|
+
return _objectSpread$i(_objectSpread$i({}, state), {}, {
|
|
26911
|
+
configuration: _objectSpread$i(_objectSpread$i({}, configuration), {}, {
|
|
26766
26912
|
title: undefined
|
|
26767
26913
|
}),
|
|
26768
26914
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
|
@@ -26874,8 +27020,8 @@ function objectHash (obj) {
|
|
|
26874
27020
|
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; } } }; }
|
|
26875
27021
|
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; } }
|
|
26876
27022
|
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; }
|
|
26877
|
-
function ownKeys$
|
|
26878
|
-
function _objectSpread$
|
|
27023
|
+
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; }
|
|
27024
|
+
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; }
|
|
26879
27025
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
|
26880
27026
|
function useTableData (_ref) {
|
|
26881
27027
|
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$bulkAc, _configuration$apiInt;
|
|
@@ -26933,7 +27079,7 @@ function useTableData (_ref) {
|
|
|
26933
27079
|
var _useState13 = useState({
|
|
26934
27080
|
loading: true,
|
|
26935
27081
|
deleting: false,
|
|
26936
|
-
pagination: _objectSpread$
|
|
27082
|
+
pagination: _objectSpread$h({
|
|
26937
27083
|
current: 1,
|
|
26938
27084
|
pageSize: 20,
|
|
26939
27085
|
total: 0,
|
|
@@ -26942,7 +27088,7 @@ function useTableData (_ref) {
|
|
|
26942
27088
|
selected: [],
|
|
26943
27089
|
canDelete: !!apiHandler.canDelete,
|
|
26944
27090
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
|
26945
|
-
mappingData: _objectSpread$
|
|
27091
|
+
mappingData: _objectSpread$h(_objectSpread$h({}, parentData), {}, {
|
|
26946
27092
|
prefilter: {
|
|
26947
27093
|
select: globalFilter.select
|
|
26948
27094
|
}
|
|
@@ -26951,7 +27097,7 @@ function useTableData (_ref) {
|
|
|
26951
27097
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
26952
27098
|
state = _useState14[0],
|
|
26953
27099
|
setState = _useState14[1];
|
|
26954
|
-
var mapping = _objectSpread$
|
|
27100
|
+
var mapping = _objectSpread$h(_objectSpread$h({}, parentData), {}, {
|
|
26955
27101
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
|
26956
27102
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
|
26957
27103
|
});
|
|
@@ -26990,14 +27136,14 @@ function useTableData (_ref) {
|
|
|
26990
27136
|
}
|
|
26991
27137
|
var dataArray = Array.isArray(data) ? data : [data];
|
|
26992
27138
|
var newInitData = initData;
|
|
26993
|
-
var newState = _objectSpread$
|
|
27139
|
+
var newState = _objectSpread$h({}, state);
|
|
26994
27140
|
var selected = [];
|
|
26995
27141
|
if (configuration.deselectOnUpdate == false) {
|
|
26996
27142
|
selected = state.selected;
|
|
26997
27143
|
}
|
|
26998
27144
|
var pagination = undefined;
|
|
26999
27145
|
if (state.pagination.total !== state.data.length + dataArray.length) {
|
|
27000
|
-
pagination = _objectSpread$
|
|
27146
|
+
pagination = _objectSpread$h(_objectSpread$h({}, state.pagination), {}, {
|
|
27001
27147
|
total: state.data.length + dataArray.length
|
|
27002
27148
|
});
|
|
27003
27149
|
}
|
|
@@ -27014,7 +27160,7 @@ function useTableData (_ref) {
|
|
|
27014
27160
|
dataRow: dataRow
|
|
27015
27161
|
}),
|
|
27016
27162
|
_data = _updateData.data;
|
|
27017
|
-
newState = _objectSpread$
|
|
27163
|
+
newState = _objectSpread$h(_objectSpread$h({}, newState), {}, {
|
|
27018
27164
|
pagination: (_pagination = pagination) !== null && _pagination !== void 0 ? _pagination : newState.pagination,
|
|
27019
27165
|
data: _data,
|
|
27020
27166
|
selected: selected
|
|
@@ -27027,8 +27173,8 @@ function useTableData (_ref) {
|
|
|
27027
27173
|
dataRow: dataRow
|
|
27028
27174
|
}),
|
|
27029
27175
|
nextInitData = _updateData2.data;
|
|
27030
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
27031
|
-
filters: _objectSpread$
|
|
27176
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$h(_objectSpread$h(_objectSpread$h({}, filterData), {}, {
|
|
27177
|
+
filters: _objectSpread$h(_objectSpread$h(_objectSpread$h(_objectSpread$h(_objectSpread$h(_objectSpread$h({}, 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"])
|
|
27032
27178
|
}, 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 ? {
|
|
27033
27179
|
genericProps: globalFilter.toggle
|
|
27034
27180
|
} : undefined), {}, {
|
|
@@ -27038,7 +27184,7 @@ function useTableData (_ref) {
|
|
|
27038
27184
|
_data2 = _applyFilterAndSortat.data,
|
|
27039
27185
|
_pagination2 = _applyFilterAndSortat.pagination;
|
|
27040
27186
|
newInitData = nextInitData;
|
|
27041
|
-
newState = _objectSpread$
|
|
27187
|
+
newState = _objectSpread$h(_objectSpread$h({}, newState), {}, {
|
|
27042
27188
|
pagination: _pagination2,
|
|
27043
27189
|
data: _data2,
|
|
27044
27190
|
selected: selected
|
|
@@ -27048,8 +27194,8 @@ function useTableData (_ref) {
|
|
|
27048
27194
|
if (apiHandler.canCreate) {
|
|
27049
27195
|
apiCreate(data).then(function (res) {
|
|
27050
27196
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
|
27051
|
-
initData && setInitData(_objectSpread$
|
|
27052
|
-
setState(_objectSpread$
|
|
27197
|
+
initData && setInitData(_objectSpread$h({}, initData));
|
|
27198
|
+
setState(_objectSpread$h({}, state));
|
|
27053
27199
|
}
|
|
27054
27200
|
});
|
|
27055
27201
|
}
|
|
@@ -27062,7 +27208,7 @@ function useTableData (_ref) {
|
|
|
27062
27208
|
var triggerRefresh = function triggerRefresh() {
|
|
27063
27209
|
var _configuration$filter7;
|
|
27064
27210
|
setError(undefined);
|
|
27065
|
-
var newGlobalFilter = _objectSpread$
|
|
27211
|
+
var newGlobalFilter = _objectSpread$h({}, globalFilter);
|
|
27066
27212
|
//on refresh update default filter, since global value can change
|
|
27067
27213
|
if ((_configuration$filter7 = configuration.filter) !== null && _configuration$filter7 !== void 0 && _configuration$filter7["default"]) {
|
|
27068
27214
|
var _configuration$filter8;
|
|
@@ -27073,7 +27219,7 @@ function useTableData (_ref) {
|
|
|
27073
27219
|
newGlobalFilter["default"] = _defaultFilter;
|
|
27074
27220
|
setGlobaFilter(newGlobalFilter);
|
|
27075
27221
|
}
|
|
27076
|
-
onChange(_objectSpread$
|
|
27222
|
+
onChange(_objectSpread$h({
|
|
27077
27223
|
pagination: state.pagination
|
|
27078
27224
|
}, filterData), newGlobalFilter, true);
|
|
27079
27225
|
};
|
|
@@ -27091,7 +27237,7 @@ function useTableData (_ref) {
|
|
|
27091
27237
|
order: c.defaultSortOrder
|
|
27092
27238
|
};
|
|
27093
27239
|
});
|
|
27094
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
|
27240
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
27095
27241
|
loading: false
|
|
27096
27242
|
}));else {
|
|
27097
27243
|
onChange({
|
|
@@ -27134,7 +27280,7 @@ function useTableData (_ref) {
|
|
|
27134
27280
|
case 0:
|
|
27135
27281
|
filters = {};
|
|
27136
27282
|
filters['_id'] = [id, 'eq', false];
|
|
27137
|
-
ssf = _objectSpread$
|
|
27283
|
+
ssf = _objectSpread$h({
|
|
27138
27284
|
pagination: {
|
|
27139
27285
|
current: 1,
|
|
27140
27286
|
pageSize: 1
|
|
@@ -27187,11 +27333,11 @@ function useTableData (_ref) {
|
|
|
27187
27333
|
prefilter = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : globalFilter;
|
|
27188
27334
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
|
27189
27335
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
|
27190
|
-
setState(_objectSpread$
|
|
27336
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
27191
27337
|
loading: true
|
|
27192
27338
|
}));
|
|
27193
27339
|
currentData = initData;
|
|
27194
|
-
filterData = _objectSpread$
|
|
27340
|
+
filterData = _objectSpread$h(_objectSpread$h(_objectSpread$h(_objectSpread$h({}, prefilter.search), ((_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
|
|
27195
27341
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
|
|
27196
27342
|
var _ref7 = _slicedToArray(_ref6, 2);
|
|
27197
27343
|
_ref7[0];
|
|
@@ -27199,7 +27345,7 @@ function useTableData (_ref) {
|
|
|
27199
27345
|
return v != null;
|
|
27200
27346
|
}));
|
|
27201
27347
|
currentFilterHash = objectHash(filterData);
|
|
27202
|
-
currentPagination = _objectSpread$
|
|
27348
|
+
currentPagination = _objectSpread$h(_objectSpread$h({}, p.pagination), {}, {
|
|
27203
27349
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
|
27204
27350
|
});
|
|
27205
27351
|
filterHash.current = currentFilterHash;
|
|
@@ -27207,7 +27353,7 @@ function useTableData (_ref) {
|
|
|
27207
27353
|
_context3.next = 20;
|
|
27208
27354
|
break;
|
|
27209
27355
|
}
|
|
27210
|
-
ssf = _objectSpread$
|
|
27356
|
+
ssf = _objectSpread$h({
|
|
27211
27357
|
pagination: currentPagination,
|
|
27212
27358
|
columns: configuration.columns,
|
|
27213
27359
|
filters: filterData,
|
|
@@ -27221,7 +27367,7 @@ function useTableData (_ref) {
|
|
|
27221
27367
|
data = _context3.sent;
|
|
27222
27368
|
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, mapping, ssf);
|
|
27223
27369
|
currentData = data.data;
|
|
27224
|
-
currentPagination = _objectSpread$
|
|
27370
|
+
currentPagination = _objectSpread$h(_objectSpread$h({}, currentPagination), {}, {
|
|
27225
27371
|
total: data.total
|
|
27226
27372
|
});
|
|
27227
27373
|
_context3.next = 29;
|
|
@@ -27238,7 +27384,7 @@ function useTableData (_ref) {
|
|
|
27238
27384
|
currentData = _data3.data;
|
|
27239
27385
|
setInitData(currentData);
|
|
27240
27386
|
case 26:
|
|
27241
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
|
27387
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$h(_objectSpread$h({}, p), {}, {
|
|
27242
27388
|
pagination: currentPagination,
|
|
27243
27389
|
filters: filterData,
|
|
27244
27390
|
data: currentData,
|
|
@@ -27247,11 +27393,11 @@ function useTableData (_ref) {
|
|
|
27247
27393
|
currentData = _data4;
|
|
27248
27394
|
currentPagination = pagination;
|
|
27249
27395
|
case 29:
|
|
27250
|
-
setState(_objectSpread$
|
|
27396
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
27251
27397
|
loading: false,
|
|
27252
27398
|
data: currentData,
|
|
27253
27399
|
pagination: currentPagination,
|
|
27254
|
-
mappingData: _objectSpread$
|
|
27400
|
+
mappingData: _objectSpread$h(_objectSpread$h({}, parentData), {}, {
|
|
27255
27401
|
prefilter: prefilter
|
|
27256
27402
|
}),
|
|
27257
27403
|
currentFetchUrl: currentUrl
|
|
@@ -27273,7 +27419,7 @@ function useTableData (_ref) {
|
|
|
27273
27419
|
};
|
|
27274
27420
|
}();
|
|
27275
27421
|
var onSelect = function onSelect(keys) {
|
|
27276
|
-
setState(_objectSpread$
|
|
27422
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
27277
27423
|
selected: keys
|
|
27278
27424
|
}));
|
|
27279
27425
|
};
|
|
@@ -27284,7 +27430,7 @@ function useTableData (_ref) {
|
|
|
27284
27430
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
27285
27431
|
while (1) switch (_context5.prev = _context5.next) {
|
|
27286
27432
|
case 0:
|
|
27287
|
-
setState(_objectSpread$
|
|
27433
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
27288
27434
|
deleting: true
|
|
27289
27435
|
}));
|
|
27290
27436
|
newData = _toConsumableArray(state.data);
|
|
@@ -27324,7 +27470,7 @@ function useTableData (_ref) {
|
|
|
27324
27470
|
} finally {
|
|
27325
27471
|
_iterator.f();
|
|
27326
27472
|
}
|
|
27327
|
-
mappingData = _objectSpread$
|
|
27473
|
+
mappingData = _objectSpread$h(_objectSpread$h(_objectSpread$h({}, mappingData), state.mappingData), mapToggle);
|
|
27328
27474
|
deleteResult = undefined;
|
|
27329
27475
|
_context4.prev = 7;
|
|
27330
27476
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
|
@@ -27414,12 +27560,12 @@ function useTableData (_ref) {
|
|
|
27414
27560
|
break;
|
|
27415
27561
|
}
|
|
27416
27562
|
_context5.next = 25;
|
|
27417
|
-
return apiHandler.readList(parentMapping || configuration.mapping, mapping, _objectSpread$
|
|
27418
|
-
pagination: _objectSpread$
|
|
27563
|
+
return apiHandler.readList(parentMapping || configuration.mapping, mapping, _objectSpread$h({
|
|
27564
|
+
pagination: _objectSpread$h(_objectSpread$h({}, state.pagination), {}, {
|
|
27419
27565
|
current: current
|
|
27420
27566
|
}),
|
|
27421
27567
|
columns: configuration.columns,
|
|
27422
|
-
filters: _objectSpread$
|
|
27568
|
+
filters: _objectSpread$h(_objectSpread$h(_objectSpread$h(_objectSpread$h(_objectSpread$h(_objectSpread$h({}, filterData.filters), globalFilter.search), !(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) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
|
|
27423
27569
|
sorter: filterData.sorter
|
|
27424
27570
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter17 = configuration.filter) !== null && _configuration$filter17 !== void 0 && (_configuration$filter17 = _configuration$filter17.toggle) !== null && _configuration$filter17 !== void 0 && _configuration$filter17.inQuery ? {
|
|
27425
27571
|
genericProps: globalFilter.toggle
|
|
@@ -27430,11 +27576,11 @@ function useTableData (_ref) {
|
|
|
27430
27576
|
total = data.total;
|
|
27431
27577
|
case 28:
|
|
27432
27578
|
setInitData(newInitData);
|
|
27433
|
-
setState(_objectSpread$
|
|
27579
|
+
setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
27434
27580
|
selected: [],
|
|
27435
27581
|
deleting: false,
|
|
27436
27582
|
data: newData,
|
|
27437
|
-
pagination: _objectSpread$
|
|
27583
|
+
pagination: _objectSpread$h(_objectSpread$h({}, state.pagination), {}, {
|
|
27438
27584
|
current: current === 0 ? 1 : current,
|
|
27439
27585
|
total: total
|
|
27440
27586
|
})
|
|
@@ -27455,14 +27601,14 @@ function useTableData (_ref) {
|
|
|
27455
27601
|
LOG$2.error(new DivaError('No global select filter defiend'));
|
|
27456
27602
|
return;
|
|
27457
27603
|
}
|
|
27458
|
-
var newGlobalFilter = _objectSpread$
|
|
27604
|
+
var newGlobalFilter = _objectSpread$h({}, globalFilter);
|
|
27459
27605
|
if (value !== null && value !== void 0 && value.length) {
|
|
27460
27606
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
|
|
27461
27607
|
} else {
|
|
27462
27608
|
newGlobalFilter.select = {};
|
|
27463
27609
|
}
|
|
27464
27610
|
setGlobaFilter(newGlobalFilter);
|
|
27465
|
-
onChange(_objectSpread$
|
|
27611
|
+
onChange(_objectSpread$h({
|
|
27466
27612
|
pagination: state.pagination
|
|
27467
27613
|
}, filterData), newGlobalFilter);
|
|
27468
27614
|
};
|
|
@@ -27476,11 +27622,11 @@ function useTableData (_ref) {
|
|
|
27476
27622
|
configuration.filter.toggle.fields.forEach(function (f) {
|
|
27477
27623
|
return toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
|
27478
27624
|
});
|
|
27479
|
-
var newGlobalFilter = _objectSpread$
|
|
27625
|
+
var newGlobalFilter = _objectSpread$h(_objectSpread$h({}, globalFilter), {}, {
|
|
27480
27626
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
|
27481
27627
|
});
|
|
27482
27628
|
setGlobaFilter(newGlobalFilter);
|
|
27483
|
-
onChange(_objectSpread$
|
|
27629
|
+
onChange(_objectSpread$h({
|
|
27484
27630
|
pagination: state.pagination
|
|
27485
27631
|
}, filterData), newGlobalFilter, undefined, true);
|
|
27486
27632
|
};
|
|
@@ -27493,7 +27639,7 @@ function useTableData (_ref) {
|
|
|
27493
27639
|
LOG$2.error(new DivaError('No global search filter defiend'));
|
|
27494
27640
|
return;
|
|
27495
27641
|
}
|
|
27496
|
-
var newGlobalFilter = _objectSpread$
|
|
27642
|
+
var newGlobalFilter = _objectSpread$h(_objectSpread$h({}, globalFilter), {}, {
|
|
27497
27643
|
search: {}
|
|
27498
27644
|
});
|
|
27499
27645
|
if (value) {
|
|
@@ -27507,7 +27653,7 @@ function useTableData (_ref) {
|
|
|
27507
27653
|
});
|
|
27508
27654
|
}
|
|
27509
27655
|
setGlobaFilter(newGlobalFilter);
|
|
27510
|
-
onChange(_objectSpread$
|
|
27656
|
+
onChange(_objectSpread$h({
|
|
27511
27657
|
pagination: state.pagination
|
|
27512
27658
|
}, filterData), newGlobalFilter);
|
|
27513
27659
|
};
|
|
@@ -27517,17 +27663,17 @@ function useTableData (_ref) {
|
|
|
27517
27663
|
LOG$2.error(new DivaError('No global period filter defiend'));
|
|
27518
27664
|
return;
|
|
27519
27665
|
}
|
|
27520
|
-
var newGlobalFilter = _objectSpread$
|
|
27666
|
+
var newGlobalFilter = _objectSpread$h({}, globalFilter);
|
|
27521
27667
|
newGlobalFilter.timeStamp = {
|
|
27522
27668
|
fromTimeStamp: [from],
|
|
27523
27669
|
toTimeStamp: [to]
|
|
27524
27670
|
};
|
|
27525
27671
|
setGlobaFilter(newGlobalFilter);
|
|
27526
|
-
onChange(_objectSpread$
|
|
27672
|
+
onChange(_objectSpread$h({
|
|
27527
27673
|
pagination: state.pagination
|
|
27528
27674
|
}, filterData), newGlobalFilter);
|
|
27529
27675
|
};
|
|
27530
|
-
return _objectSpread$
|
|
27676
|
+
return _objectSpread$h(_objectSpread$h({}, state), {}, {
|
|
27531
27677
|
title: title,
|
|
27532
27678
|
configuration: configuration,
|
|
27533
27679
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
|
|
@@ -27569,8 +27715,8 @@ function StandardTable (_ref) {
|
|
|
27569
27715
|
});
|
|
27570
27716
|
}
|
|
27571
27717
|
|
|
27572
|
-
function ownKeys$
|
|
27573
|
-
function _objectSpread$
|
|
27718
|
+
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; }
|
|
27719
|
+
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; }
|
|
27574
27720
|
function Table (props) {
|
|
27575
27721
|
var root = useStore();
|
|
27576
27722
|
var variant = useMemo(function () {
|
|
@@ -27578,15 +27724,15 @@ function Table (props) {
|
|
|
27578
27724
|
return config.variant;
|
|
27579
27725
|
}, [props.id]);
|
|
27580
27726
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
27581
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
|
27727
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$g({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$g({}, props))]
|
|
27582
27728
|
});
|
|
27583
27729
|
}
|
|
27584
27730
|
|
|
27585
27731
|
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; } } }; }
|
|
27586
27732
|
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; } }
|
|
27587
27733
|
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; }
|
|
27588
|
-
function ownKeys$
|
|
27589
|
-
function _objectSpread$
|
|
27734
|
+
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; }
|
|
27735
|
+
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; }
|
|
27590
27736
|
function useAGGrid (_ref) {
|
|
27591
27737
|
var id = _ref.id,
|
|
27592
27738
|
filter = _ref.filter,
|
|
@@ -27680,7 +27826,7 @@ function useAGGrid (_ref) {
|
|
|
27680
27826
|
value = _ref3[1];
|
|
27681
27827
|
if (_idx == 0) {
|
|
27682
27828
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
|
27683
|
-
rdat.push(_objectSpread$
|
|
27829
|
+
rdat.push(_objectSpread$f(_objectSpread$f({}, rd), {}, {
|
|
27684
27830
|
grouping: [idx.toString()]
|
|
27685
27831
|
}));
|
|
27686
27832
|
var sp = key.split(':');
|
|
@@ -27815,7 +27961,7 @@ function useAGGrid (_ref) {
|
|
|
27815
27961
|
};
|
|
27816
27962
|
}
|
|
27817
27963
|
|
|
27818
|
-
var overlay
|
|
27964
|
+
var overlay = "overlay-lm0tm";
|
|
27819
27965
|
var loader = "loader-LaXZy";
|
|
27820
27966
|
var flex = "flex-yQdda";
|
|
27821
27967
|
var bar = "bar-Y663f";
|
|
@@ -27823,8 +27969,8 @@ var value = "value-FCA-6";
|
|
|
27823
27969
|
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";
|
|
27824
27970
|
styleInject(css_248z$a);
|
|
27825
27971
|
|
|
27826
|
-
function ownKeys$
|
|
27827
|
-
function _objectSpread$
|
|
27972
|
+
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; }
|
|
27973
|
+
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; }
|
|
27828
27974
|
var AGChart = function AGChart(_ref) {
|
|
27829
27975
|
var data = _ref.data;
|
|
27830
27976
|
var groupedData = [];
|
|
@@ -27832,11 +27978,11 @@ var AGChart = function AGChart(_ref) {
|
|
|
27832
27978
|
data.forEach(function (dt) {
|
|
27833
27979
|
if (dt.count == 0) return;
|
|
27834
27980
|
if (groupedData.length > dt.grouping[0]) {
|
|
27835
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
|
27981
|
+
groupedData[dt.grouping[0]].push(_objectSpread$e(_objectSpread$e({}, dt), {}, {
|
|
27836
27982
|
count: Number(dt.count)
|
|
27837
27983
|
}));
|
|
27838
27984
|
} else {
|
|
27839
|
-
groupedData.push([_objectSpread$
|
|
27985
|
+
groupedData.push([_objectSpread$e(_objectSpread$e({}, dt), {}, {
|
|
27840
27986
|
count: Number(dt.count)
|
|
27841
27987
|
})]);
|
|
27842
27988
|
}
|
|
@@ -27877,8 +28023,8 @@ var AGChart = function AGChart(_ref) {
|
|
|
27877
28023
|
});
|
|
27878
28024
|
};
|
|
27879
28025
|
|
|
27880
|
-
function ownKeys$
|
|
27881
|
-
function _objectSpread$
|
|
28026
|
+
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; }
|
|
28027
|
+
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; }
|
|
27882
28028
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
27883
28029
|
var id = _ref.id,
|
|
27884
28030
|
filter = _ref.filter,
|
|
@@ -27971,7 +28117,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
27971
28117
|
});
|
|
27972
28118
|
});
|
|
27973
28119
|
}
|
|
27974
|
-
return _objectSpread$
|
|
28120
|
+
return _objectSpread$d(_objectSpread$d({}, column), {}, {
|
|
27975
28121
|
cellRenderer: renderer
|
|
27976
28122
|
});
|
|
27977
28123
|
});
|
|
@@ -28098,7 +28244,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
28098
28244
|
checkedChildren: "Chart",
|
|
28099
28245
|
unCheckedChildren: "Grid"
|
|
28100
28246
|
}), /*#__PURE__*/jsx("div", {
|
|
28101
|
-
className: loading || state.loading ? overlay
|
|
28247
|
+
className: loading || state.loading ? overlay : undefined,
|
|
28102
28248
|
children: /*#__PURE__*/jsx("div", {
|
|
28103
28249
|
className: loading || state.loading ? loader : undefined
|
|
28104
28250
|
})
|
|
@@ -28241,8 +28387,8 @@ var CustomText = function CustomText(_ref) {
|
|
|
28241
28387
|
};
|
|
28242
28388
|
var CustomText$1 = observer(CustomText);
|
|
28243
28389
|
|
|
28244
|
-
function ownKeys$
|
|
28245
|
-
function _objectSpread$
|
|
28390
|
+
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; }
|
|
28391
|
+
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; }
|
|
28246
28392
|
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; } } }; }
|
|
28247
28393
|
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; } }
|
|
28248
28394
|
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; }
|
|
@@ -28305,7 +28451,7 @@ function useFilterBoxData (id) {
|
|
|
28305
28451
|
} finally {
|
|
28306
28452
|
_iterator.f();
|
|
28307
28453
|
}
|
|
28308
|
-
return _objectSpread$
|
|
28454
|
+
return _objectSpread$c(_objectSpread$c({}, state), ob);
|
|
28309
28455
|
}
|
|
28310
28456
|
return {
|
|
28311
28457
|
configuration: configuration,
|
|
@@ -28319,8 +28465,8 @@ function useFilterBoxData (id) {
|
|
|
28319
28465
|
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; } } }; }
|
|
28320
28466
|
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; } }
|
|
28321
28467
|
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; }
|
|
28322
|
-
function ownKeys$
|
|
28323
|
-
function _objectSpread$
|
|
28468
|
+
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; }
|
|
28469
|
+
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; }
|
|
28324
28470
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
28325
28471
|
var id = _ref.id,
|
|
28326
28472
|
onChangeFilter = _ref.onChangeFilter,
|
|
@@ -28348,7 +28494,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
28348
28494
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
|
|
28349
28495
|
mode: "single",
|
|
28350
28496
|
apiInterface: filter.requestOptions,
|
|
28351
|
-
wholeData: _objectSpread$
|
|
28497
|
+
wholeData: _objectSpread$b(_objectSpread$b({}, state.filter), {}, {
|
|
28352
28498
|
tab: tab
|
|
28353
28499
|
}),
|
|
28354
28500
|
mapping: filter.requestMapping,
|
|
@@ -28580,8 +28726,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
28580
28726
|
return false;
|
|
28581
28727
|
});
|
|
28582
28728
|
|
|
28583
|
-
function ownKeys$
|
|
28584
|
-
function _objectSpread$
|
|
28729
|
+
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; }
|
|
28730
|
+
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; }
|
|
28585
28731
|
function useUIBuilderData (id) {
|
|
28586
28732
|
var save = undefined;
|
|
28587
28733
|
var root = useStore();
|
|
@@ -28613,7 +28759,7 @@ function useUIBuilderData (id) {
|
|
|
28613
28759
|
var configuration = _useMemo.configuration;
|
|
28614
28760
|
useEffect(function () {
|
|
28615
28761
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
|
28616
|
-
return setFilter(_objectSpread$
|
|
28762
|
+
return setFilter(_objectSpread$a(_objectSpread$a({}, filter), {}, {
|
|
28617
28763
|
sessionGuid: res
|
|
28618
28764
|
}));
|
|
28619
28765
|
});
|
|
@@ -28636,8 +28782,8 @@ function useUIBuilderData (id) {
|
|
|
28636
28782
|
};
|
|
28637
28783
|
}
|
|
28638
28784
|
|
|
28639
|
-
function ownKeys$
|
|
28640
|
-
function _objectSpread$
|
|
28785
|
+
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; }
|
|
28786
|
+
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; }
|
|
28641
28787
|
function UIBuilder(_ref) {
|
|
28642
28788
|
var id = _ref.id;
|
|
28643
28789
|
var state = useUIBuilderData(id);
|
|
@@ -28664,7 +28810,7 @@ function UIBuilder(_ref) {
|
|
|
28664
28810
|
override = {
|
|
28665
28811
|
value: newFilter[item.field],
|
|
28666
28812
|
setValue: function setValue(newVal) {
|
|
28667
|
-
var newFilter = _objectSpread$
|
|
28813
|
+
var newFilter = _objectSpread$9({}, state.filter);
|
|
28668
28814
|
newFilter[item.field] = newVal;
|
|
28669
28815
|
state.setFilter(newFilter);
|
|
28670
28816
|
}
|
|
@@ -28712,7 +28858,7 @@ function UIBuilder(_ref) {
|
|
|
28712
28858
|
case 'AGGrid':
|
|
28713
28859
|
return /*#__PURE__*/jsx(AGGrid, {
|
|
28714
28860
|
id: item.id,
|
|
28715
|
-
filter: _objectSpread$
|
|
28861
|
+
filter: _objectSpread$9({
|
|
28716
28862
|
optionCodices: JSON.stringify(state.data)
|
|
28717
28863
|
}, state.filter),
|
|
28718
28864
|
override: item.id == 'AGGridTopOptionValues' ? {
|
|
@@ -28872,8 +29018,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
|
28872
29018
|
};
|
|
28873
29019
|
var OrgItem$1 = observer(OrgItem);
|
|
28874
29020
|
|
|
28875
|
-
function ownKeys$
|
|
28876
|
-
function _objectSpread$
|
|
29021
|
+
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; }
|
|
29022
|
+
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; }
|
|
28877
29023
|
function useTransformJson (_ref) {
|
|
28878
29024
|
var id = _ref.id;
|
|
28879
29025
|
var _useState = useState(),
|
|
@@ -28939,7 +29085,7 @@ function useTransformJson (_ref) {
|
|
|
28939
29085
|
}();
|
|
28940
29086
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
|
28941
29087
|
var _data$children;
|
|
28942
|
-
return _objectSpread$
|
|
29088
|
+
return _objectSpread$8(_objectSpread$8({}, data), {}, {
|
|
28943
29089
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
|
28944
29090
|
data: data,
|
|
28945
29091
|
configuration: configuration,
|
|
@@ -29600,8 +29746,8 @@ function useCatalogEditor (id) {
|
|
|
29600
29746
|
};
|
|
29601
29747
|
}
|
|
29602
29748
|
|
|
29603
|
-
function ownKeys$
|
|
29604
|
-
function _objectSpread$
|
|
29749
|
+
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; }
|
|
29750
|
+
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; }
|
|
29605
29751
|
function DragDropUpload(_ref) {
|
|
29606
29752
|
var api2Params = _ref.api2Params,
|
|
29607
29753
|
catalogId = _ref.catalogId,
|
|
@@ -29706,7 +29852,7 @@ function DragDropUpload(_ref) {
|
|
|
29706
29852
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
|
29707
29853
|
children: t('backoffice.catalogeditor.classimportstarted')
|
|
29708
29854
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
|
29709
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
|
29855
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$7(_objectSpread$7({}, props), {}, {
|
|
29710
29856
|
children: [/*#__PURE__*/jsx("p", {
|
|
29711
29857
|
className: "ant-upload-drag-icon",
|
|
29712
29858
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
|
@@ -29923,15 +30069,20 @@ function CatalogEditor(_ref) {
|
|
|
29923
30069
|
}
|
|
29924
30070
|
var CatalogEditor$1 = observer(CatalogEditor);
|
|
29925
30071
|
|
|
29926
|
-
function ownKeys$
|
|
29927
|
-
function _objectSpread$
|
|
29928
|
-
function
|
|
30072
|
+
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; }
|
|
30073
|
+
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; }
|
|
30074
|
+
function SpreadsheetWrapper(props) {
|
|
30075
|
+
var _root$contentStore$bo, _root$contentStore$ri;
|
|
29929
30076
|
var root = useStore();
|
|
29930
|
-
return /*#__PURE__*/jsx(Spreadsheet$
|
|
30077
|
+
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$6(_objectSpread$6({}, props), {}, {
|
|
29931
30078
|
darkMode: root.contentStore.theme == 'darkmode',
|
|
29932
|
-
jwt: root.dataStore.jwt
|
|
30079
|
+
jwt: root.dataStore.jwt,
|
|
30080
|
+
refSecondaryGrids: [(_root$contentStore$bo = root.contentStore.bottomToolBar.toolbarElement) !== null && _root$contentStore$bo !== void 0 ? _root$contentStore$bo : undefined, (_root$contentStore$ri = root.contentStore.rightToolBar.toolbarElement) !== null && _root$contentStore$ri !== void 0 ? _root$contentStore$ri : undefined].filter(function (element) {
|
|
30081
|
+
return element !== undefined;
|
|
30082
|
+
})
|
|
29933
30083
|
}));
|
|
29934
30084
|
}
|
|
30085
|
+
var Spreadsheet = observer(SpreadsheetWrapper);
|
|
29935
30086
|
|
|
29936
30087
|
function useNavigation$1 () {
|
|
29937
30088
|
var root = useStore();
|
|
@@ -30082,6 +30233,14 @@ function TablePackages () {
|
|
|
30082
30233
|
organizationId: organizationId
|
|
30083
30234
|
};
|
|
30084
30235
|
}, [organizationId]);
|
|
30236
|
+
var preFilter = useMemo(function () {
|
|
30237
|
+
return {
|
|
30238
|
+
colId: 'organizationId',
|
|
30239
|
+
filterType: 'text',
|
|
30240
|
+
type: 'equals',
|
|
30241
|
+
filter: organizationId
|
|
30242
|
+
};
|
|
30243
|
+
}, [organizationId]);
|
|
30085
30244
|
useEffect(function () {
|
|
30086
30245
|
//remove the packages submenu when opening this module
|
|
30087
30246
|
root.contentStore.removeAdditionalElement('idmenricher');
|
|
@@ -30089,7 +30248,7 @@ function TablePackages () {
|
|
|
30089
30248
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
30090
30249
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
30091
30250
|
title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
|
|
30092
|
-
}), /*#__PURE__*/jsx(Spreadsheet
|
|
30251
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
30093
30252
|
gridId: 'packages-grid',
|
|
30094
30253
|
applicationData: applicationData,
|
|
30095
30254
|
rowActions: [{
|
|
@@ -30126,12 +30285,7 @@ function TablePackages () {
|
|
|
30126
30285
|
return action;
|
|
30127
30286
|
}()
|
|
30128
30287
|
}],
|
|
30129
|
-
preFilter:
|
|
30130
|
-
colId: 'organizationId',
|
|
30131
|
-
filterType: 'text',
|
|
30132
|
-
type: 'equals',
|
|
30133
|
-
filter: organizationId
|
|
30134
|
-
},
|
|
30288
|
+
preFilter: preFilter,
|
|
30135
30289
|
configuration: {
|
|
30136
30290
|
type: 'dotnetSSM',
|
|
30137
30291
|
apiInterface: {
|
|
@@ -30482,9 +30636,9 @@ function useModule$1 (currentModules) {
|
|
|
30482
30636
|
startWidth: 600,
|
|
30483
30637
|
defaultPinned: true
|
|
30484
30638
|
});
|
|
30485
|
-
root.contentStore.tools = tools;
|
|
30639
|
+
root.contentStore.rightToolBar.tools = tools;
|
|
30486
30640
|
return function () {
|
|
30487
|
-
root.contentStore.tools = [];
|
|
30641
|
+
root.contentStore.rightToolBar.tools = [];
|
|
30488
30642
|
};
|
|
30489
30643
|
}, [packageId]);
|
|
30490
30644
|
return {
|
|
@@ -30526,7 +30680,7 @@ function TableProperties () {
|
|
|
30526
30680
|
})
|
|
30527
30681
|
})]
|
|
30528
30682
|
})
|
|
30529
|
-
}), /*#__PURE__*/jsx(Spreadsheet
|
|
30683
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
30530
30684
|
gridId: 'crud-grid_properties',
|
|
30531
30685
|
applicationData: applicationData,
|
|
30532
30686
|
configuration: {
|
|
@@ -31187,6 +31341,19 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31187
31341
|
packageId: packageId
|
|
31188
31342
|
};
|
|
31189
31343
|
}, [packageId]);
|
|
31344
|
+
var preFilter = useMemo(function () {
|
|
31345
|
+
return type === 'options' && selectedFeature ? {
|
|
31346
|
+
filterType: 'text',
|
|
31347
|
+
type: 'equals',
|
|
31348
|
+
colId: 'featureNo',
|
|
31349
|
+
filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
|
|
31350
|
+
} : type === 'items' && selectedSerie ? {
|
|
31351
|
+
filterType: 'number',
|
|
31352
|
+
type: 'equals',
|
|
31353
|
+
colId: 'serieNo',
|
|
31354
|
+
filter: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo
|
|
31355
|
+
} : undefined;
|
|
31356
|
+
}, [type, selectedSerie, selectedFeature]);
|
|
31190
31357
|
var showTable = function showTable() {
|
|
31191
31358
|
return !['items', 'options'].includes(type) || type === 'items' && selectedSerie || type === 'options' && selectedFeature;
|
|
31192
31359
|
};
|
|
@@ -31216,20 +31383,10 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31216
31383
|
})]
|
|
31217
31384
|
})]
|
|
31218
31385
|
})
|
|
31219
|
-
}), showTable() && /*#__PURE__*/jsx(Spreadsheet
|
|
31386
|
+
}), showTable() && /*#__PURE__*/jsx(Spreadsheet, {
|
|
31220
31387
|
gridId: 'renaming-grid_' + type + (type === 'options' ? '_' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo) : type === 'items' ? '_' + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo) : ''),
|
|
31221
31388
|
applicationData: applicationData,
|
|
31222
|
-
preFilter:
|
|
31223
|
-
filterType: 'text',
|
|
31224
|
-
type: 'equals',
|
|
31225
|
-
colId: 'featureNo',
|
|
31226
|
-
filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
|
|
31227
|
-
} : type === 'items' && selectedSerie ? {
|
|
31228
|
-
filterType: 'number',
|
|
31229
|
-
type: 'equals',
|
|
31230
|
-
colId: 'serieNo',
|
|
31231
|
-
filter: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo
|
|
31232
|
-
} : undefined,
|
|
31389
|
+
preFilter: preFilter,
|
|
31233
31390
|
configuration: {
|
|
31234
31391
|
type: 'dotnetSSM',
|
|
31235
31392
|
apiInterface: {
|
|
@@ -31693,7 +31850,7 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
|
31693
31850
|
})]
|
|
31694
31851
|
})]
|
|
31695
31852
|
})
|
|
31696
|
-
}), showTable() && /*#__PURE__*/jsx(Spreadsheet
|
|
31853
|
+
}), showTable() && /*#__PURE__*/jsx(Spreadsheet, {
|
|
31697
31854
|
gridId: 'crud-grid_exclusivity_' + type + ((_selectedSerie$series = selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.seriesName.DE) !== null && _selectedSerie$series !== void 0 ? _selectedSerie$series : ''),
|
|
31698
31855
|
applicationData: applicationData,
|
|
31699
31856
|
configuration: {
|
|
@@ -31739,6 +31896,12 @@ function TableTabGroups () {
|
|
|
31739
31896
|
organizationId = _useModule.organizationId,
|
|
31740
31897
|
updateNavigation = _useModule.updateNavigation,
|
|
31741
31898
|
apiConfig = _useModule.apiConfig;
|
|
31899
|
+
var applicationData = useMemo(function () {
|
|
31900
|
+
return {
|
|
31901
|
+
packageId: packageId,
|
|
31902
|
+
organizationId: organizationId
|
|
31903
|
+
};
|
|
31904
|
+
}, [packageId, organizationId]);
|
|
31742
31905
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
31743
31906
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
31744
31907
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -31756,12 +31919,9 @@ function TableTabGroups () {
|
|
|
31756
31919
|
})
|
|
31757
31920
|
})]
|
|
31758
31921
|
})
|
|
31759
|
-
}), /*#__PURE__*/jsx(Spreadsheet
|
|
31922
|
+
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
31760
31923
|
gridId: 'crud-grid_tabgroups',
|
|
31761
|
-
applicationData:
|
|
31762
|
-
organizationId: organizationId,
|
|
31763
|
-
packageId: packageId
|
|
31764
|
-
},
|
|
31924
|
+
applicationData: applicationData,
|
|
31765
31925
|
configuration: {
|
|
31766
31926
|
type: 'dotnetSSM',
|
|
31767
31927
|
apiInterface: {
|
|
@@ -31893,16 +32053,6 @@ function Content$2() {
|
|
|
31893
32053
|
});
|
|
31894
32054
|
}
|
|
31895
32055
|
|
|
31896
|
-
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; }
|
|
31897
|
-
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; }
|
|
31898
|
-
function Spreadsheet (props) {
|
|
31899
|
-
var root = useStore();
|
|
31900
|
-
return /*#__PURE__*/jsx(Spreadsheet$2, _objectSpread$7(_objectSpread$7({}, props), {}, {
|
|
31901
|
-
darkMode: root.contentStore.theme == 'darkmode',
|
|
31902
|
-
jwt: root.dataStore.jwt
|
|
31903
|
-
}));
|
|
31904
|
-
}
|
|
31905
|
-
|
|
31906
32056
|
function useNavigation () {
|
|
31907
32057
|
var root = useStore();
|
|
31908
32058
|
var _useSearchParams = useSearchParams(),
|
|
@@ -31930,8 +32080,8 @@ function useNavigation () {
|
|
|
31930
32080
|
};
|
|
31931
32081
|
}
|
|
31932
32082
|
|
|
31933
|
-
function ownKeys$
|
|
31934
|
-
function _objectSpread$
|
|
32083
|
+
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; }
|
|
32084
|
+
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; }
|
|
31935
32085
|
function UploadButton (_ref) {
|
|
31936
32086
|
var action = _ref.action,
|
|
31937
32087
|
title = _ref.title,
|
|
@@ -31974,7 +32124,7 @@ function UploadButton (_ref) {
|
|
|
31974
32124
|
fileList: fileList
|
|
31975
32125
|
};
|
|
31976
32126
|
return /*#__PURE__*/jsx(Fragment, {
|
|
31977
|
-
children: /*#__PURE__*/jsx(Upload$2, _objectSpread$
|
|
32127
|
+
children: /*#__PURE__*/jsx(Upload$2, _objectSpread$5(_objectSpread$5({}, props), {}, {
|
|
31978
32128
|
children: /*#__PURE__*/jsx(Button$1, {
|
|
31979
32129
|
icon: /*#__PURE__*/jsx(UploadOutlined$1, {}),
|
|
31980
32130
|
disabled: disabled,
|
|
@@ -32184,6 +32334,14 @@ function TableCatalogs () {
|
|
|
32184
32334
|
organizationId: organizationId
|
|
32185
32335
|
};
|
|
32186
32336
|
}, [organizationId]);
|
|
32337
|
+
var preFilter = useMemo(function () {
|
|
32338
|
+
return {
|
|
32339
|
+
colId: 'organizationId',
|
|
32340
|
+
filterType: 'text',
|
|
32341
|
+
type: 'equals',
|
|
32342
|
+
filter: organizationId
|
|
32343
|
+
};
|
|
32344
|
+
}, [organizationId]);
|
|
32187
32345
|
useEffect(function () {
|
|
32188
32346
|
//remove the packages submenu when opening this module
|
|
32189
32347
|
root.contentStore.removeAdditionalElement('idmenricher');
|
|
@@ -32238,12 +32396,7 @@ function TableCatalogs () {
|
|
|
32238
32396
|
return action;
|
|
32239
32397
|
}()
|
|
32240
32398
|
}],
|
|
32241
|
-
preFilter:
|
|
32242
|
-
colId: 'organizationId',
|
|
32243
|
-
filterType: 'text',
|
|
32244
|
-
type: 'equals',
|
|
32245
|
-
filter: organizationId
|
|
32246
|
-
},
|
|
32399
|
+
preFilter: preFilter,
|
|
32247
32400
|
configuration: {
|
|
32248
32401
|
type: 'dotnetSSM',
|
|
32249
32402
|
apiInterface: {
|
|
@@ -32903,9 +33056,9 @@ function useModule (currentModules) {
|
|
|
32903
33056
|
startWidth: 600,
|
|
32904
33057
|
defaultPinned: true
|
|
32905
33058
|
});
|
|
32906
|
-
root.contentStore.tools = tools;
|
|
33059
|
+
root.contentStore.rightToolBar.tools = tools;
|
|
32907
33060
|
return function () {
|
|
32908
|
-
root.contentStore.tools = [];
|
|
33061
|
+
root.contentStore.rightToolBar.tools = [];
|
|
32909
33062
|
};
|
|
32910
33063
|
}, [catalogId]);
|
|
32911
33064
|
return {
|
|
@@ -32916,18 +33069,14 @@ function useModule (currentModules) {
|
|
|
32916
33069
|
};
|
|
32917
33070
|
}
|
|
32918
33071
|
|
|
32919
|
-
function
|
|
33072
|
+
function Items(_ref) {
|
|
33073
|
+
var organizationId = _ref.organizationId,
|
|
33074
|
+
catalogId = _ref.catalogId,
|
|
33075
|
+
apiConfig = _ref.apiConfig,
|
|
33076
|
+
selectedSerie = _ref.selectedSerie;
|
|
33077
|
+
useStore();
|
|
32920
33078
|
var _useTranslation = useTranslation(),
|
|
32921
33079
|
t = _useTranslation.t;
|
|
32922
|
-
var _useModule = useModule(['items']),
|
|
32923
|
-
catalogId = _useModule.catalogId,
|
|
32924
|
-
updateNavigation = _useModule.updateNavigation,
|
|
32925
|
-
apiConfig = _useModule.apiConfig,
|
|
32926
|
-
organizationId = _useModule.organizationId;
|
|
32927
|
-
var _React$useState = React.useState(),
|
|
32928
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
32929
|
-
selectedSerie = _React$useState2[0],
|
|
32930
|
-
setSelectedSerie = _React$useState2[1];
|
|
32931
33080
|
var itemIdentification = [{
|
|
32932
33081
|
name: t('backoffice.idmCatalogEditor.items.label.catalogArticle'),
|
|
32933
33082
|
value: 'K'
|
|
@@ -33017,6 +33166,285 @@ function TableItems () {
|
|
|
33017
33166
|
name: t('backoffice.idmCatalogEditor.items.label.sonstiges'),
|
|
33018
33167
|
value: '26'
|
|
33019
33168
|
}];
|
|
33169
|
+
var applicationData = useMemo(function () {
|
|
33170
|
+
return {
|
|
33171
|
+
organizationId: organizationId,
|
|
33172
|
+
catalogId: catalogId,
|
|
33173
|
+
selectedSerie: selectedSerie
|
|
33174
|
+
};
|
|
33175
|
+
}, [organizationId, catalogId, selectedSerie]);
|
|
33176
|
+
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
33177
|
+
gridId: 'crud-grid_items',
|
|
33178
|
+
applicationData: applicationData,
|
|
33179
|
+
configuration: {
|
|
33180
|
+
type: 'dotnetSSM',
|
|
33181
|
+
idCol: 'typeNo',
|
|
33182
|
+
apiInterface: {
|
|
33183
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items',
|
|
33184
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items',
|
|
33185
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items/${typeNo}',
|
|
33186
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items/${typeNo}',
|
|
33187
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${selectedSerie}/items/${typeNo}'
|
|
33188
|
+
},
|
|
33189
|
+
dateFormat: 'LL',
|
|
33190
|
+
floatingFilter: true,
|
|
33191
|
+
colDef: [{
|
|
33192
|
+
field: 'typeNo',
|
|
33193
|
+
required: true,
|
|
33194
|
+
unique: true
|
|
33195
|
+
}, {
|
|
33196
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.priceTypeRef',
|
|
33197
|
+
field: 'priceTypeRef',
|
|
33198
|
+
cellDataType: 'number',
|
|
33199
|
+
required: true
|
|
33200
|
+
}, {
|
|
33201
|
+
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
33202
|
+
field: 'sequenceNo',
|
|
33203
|
+
cellDataType: 'number'
|
|
33204
|
+
}, {
|
|
33205
|
+
headerName: 'backoffice.idmCatalog.common.label.texts',
|
|
33206
|
+
children: [{
|
|
33207
|
+
headerName: 'backoffice.idmCatalog.general.label.shortText',
|
|
33208
|
+
marryChildren: true,
|
|
33209
|
+
children: [{
|
|
33210
|
+
field: 'shortText.DE',
|
|
33211
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33212
|
+
isDictionary: true,
|
|
33213
|
+
required: true
|
|
33214
|
+
}, {
|
|
33215
|
+
field: 'shortText.EN',
|
|
33216
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33217
|
+
isDictionary: true
|
|
33218
|
+
}, {
|
|
33219
|
+
field: 'shortText.FR',
|
|
33220
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33221
|
+
isDictionary: true
|
|
33222
|
+
}, {
|
|
33223
|
+
field: 'shortText.IT',
|
|
33224
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33225
|
+
isDictionary: true
|
|
33226
|
+
}]
|
|
33227
|
+
}, {
|
|
33228
|
+
headerName: 'backoffice.idmCatalog.general.label.planningAdvice',
|
|
33229
|
+
marryChildren: true,
|
|
33230
|
+
children: [{
|
|
33231
|
+
field: 'planningAdvice.DE',
|
|
33232
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33233
|
+
isDictionary: true
|
|
33234
|
+
}, {
|
|
33235
|
+
field: 'planningAdvice.EN',
|
|
33236
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33237
|
+
isDictionary: true
|
|
33238
|
+
}, {
|
|
33239
|
+
field: 'planningAdvice.FR',
|
|
33240
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33241
|
+
isDictionary: true
|
|
33242
|
+
}, {
|
|
33243
|
+
field: 'planningAdvice.IT',
|
|
33244
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33245
|
+
isDictionary: true
|
|
33246
|
+
}]
|
|
33247
|
+
}]
|
|
33248
|
+
}, {
|
|
33249
|
+
headerName: 'backoffice.idmCatalog.items.label.articleNumbers',
|
|
33250
|
+
children: [{
|
|
33251
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.edpNumber',
|
|
33252
|
+
field: 'edpNumber'
|
|
33253
|
+
}, {
|
|
33254
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.eanNumber',
|
|
33255
|
+
field: 'eanNumber'
|
|
33256
|
+
}, {
|
|
33257
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.salesNumber',
|
|
33258
|
+
field: 'salesNumber'
|
|
33259
|
+
}, {
|
|
33260
|
+
headerName: 'backoffice.idmCatalog.general.items.itemIdentification',
|
|
33261
|
+
field: 'itemIdentification',
|
|
33262
|
+
cellDataType: 'enum',
|
|
33263
|
+
customParams: {
|
|
33264
|
+
enumData: itemIdentification,
|
|
33265
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33266
|
+
},
|
|
33267
|
+
required: true
|
|
33268
|
+
}]
|
|
33269
|
+
}, {
|
|
33270
|
+
headerName: 'backoffice.idmCatalog.items.label.common',
|
|
33271
|
+
children: [{
|
|
33272
|
+
headerName: 'backoffice.idmCatalog.general.items.typeKey',
|
|
33273
|
+
field: 'typeKey',
|
|
33274
|
+
cellDataType: 'enum',
|
|
33275
|
+
customParams: {
|
|
33276
|
+
enumData: typeKey,
|
|
33277
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33278
|
+
},
|
|
33279
|
+
required: true
|
|
33280
|
+
}, {
|
|
33281
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.featureClassRefNo',
|
|
33282
|
+
field: 'featureClassRefNo',
|
|
33283
|
+
cellDataType: 'number',
|
|
33284
|
+
required: true
|
|
33285
|
+
}, {
|
|
33286
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.eClassNo',
|
|
33287
|
+
field: 'eClassNo',
|
|
33288
|
+
cellDataType: 'number'
|
|
33289
|
+
}, {
|
|
33290
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.catalogPage',
|
|
33291
|
+
field: 'catalogPage'
|
|
33292
|
+
}, {
|
|
33293
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.minimumDeliveryTime',
|
|
33294
|
+
field: 'minimumDeliveryTime',
|
|
33295
|
+
cellDataType: 'number'
|
|
33296
|
+
}]
|
|
33297
|
+
}, {
|
|
33298
|
+
headerName: 'backoffice.idmCatalog.items.label.configurator',
|
|
33299
|
+
children: [{
|
|
33300
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.partListExclusive',
|
|
33301
|
+
field: 'partListExclusive',
|
|
33302
|
+
cellDataType: 'boolean'
|
|
33303
|
+
}, {
|
|
33304
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.partlist',
|
|
33305
|
+
field: 'partListRef',
|
|
33306
|
+
cellDataType: 'lookup',
|
|
33307
|
+
customParams: {
|
|
33308
|
+
nameField: 'partListRef',
|
|
33309
|
+
apiInterface: {
|
|
33310
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists'
|
|
33311
|
+
},
|
|
33312
|
+
lookupValue: 'partlistKey',
|
|
33313
|
+
lookupKey: 'partlistKey'
|
|
33314
|
+
}
|
|
33315
|
+
}, {
|
|
33316
|
+
field: 'decisionRefs',
|
|
33317
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.decisionRefs',
|
|
33318
|
+
cellDataType: 'lookup',
|
|
33319
|
+
editable: true,
|
|
33320
|
+
customParams: {
|
|
33321
|
+
nameField: 'decisionRefsDisplayTexts',
|
|
33322
|
+
filterCellType: 'number',
|
|
33323
|
+
displayLabelTemplate: '${name} (${value})',
|
|
33324
|
+
apiInterface: {
|
|
33325
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions'
|
|
33326
|
+
},
|
|
33327
|
+
lookupValue: 'decisionText',
|
|
33328
|
+
lookupKey: 'decisionNo',
|
|
33329
|
+
lookupKeyFilterType: {
|
|
33330
|
+
type: 'equals',
|
|
33331
|
+
filterType: 'number'
|
|
33332
|
+
},
|
|
33333
|
+
multiple: true,
|
|
33334
|
+
translated: true
|
|
33335
|
+
},
|
|
33336
|
+
additionalFields: ['decisionRefsDisplayTexts'],
|
|
33337
|
+
isDictionary: true
|
|
33338
|
+
}]
|
|
33339
|
+
}, {
|
|
33340
|
+
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
33341
|
+
children: [{
|
|
33342
|
+
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
|
33343
|
+
field: 'validFromDate',
|
|
33344
|
+
cellDataType: 'dateString'
|
|
33345
|
+
}, {
|
|
33346
|
+
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
|
33347
|
+
field: 'validUntilDate',
|
|
33348
|
+
cellDataType: 'dateString'
|
|
33349
|
+
}]
|
|
33350
|
+
}, {
|
|
33351
|
+
headerName: 'backoffice.idmCatalog.items.label.measurements',
|
|
33352
|
+
children: [{
|
|
33353
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.weightBrutto',
|
|
33354
|
+
field: 'weightBrutto',
|
|
33355
|
+
cellDataType: 'number'
|
|
33356
|
+
}, {
|
|
33357
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.weightNetto',
|
|
33358
|
+
field: 'weightNetto',
|
|
33359
|
+
cellDataType: 'number'
|
|
33360
|
+
}, {
|
|
33361
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.volume',
|
|
33362
|
+
field: 'volume',
|
|
33363
|
+
cellDataType: 'number'
|
|
33364
|
+
}, {
|
|
33365
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.widthBasicShapeNominalValue',
|
|
33366
|
+
field: 'widthBasicShapeNominalValue',
|
|
33367
|
+
cellDataType: 'number'
|
|
33368
|
+
}, {
|
|
33369
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.widthBasicShapeFrom',
|
|
33370
|
+
field: 'widthBasicShapeFrom',
|
|
33371
|
+
cellDataType: 'number'
|
|
33372
|
+
}, {
|
|
33373
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.widthBasicShapeTo',
|
|
33374
|
+
field: 'widthBasicShapeTo',
|
|
33375
|
+
cellDataType: 'number'
|
|
33376
|
+
}, {
|
|
33377
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.widthBasicShapeStepSize',
|
|
33378
|
+
field: 'widthBasicShapeStepSize',
|
|
33379
|
+
cellDataType: 'number'
|
|
33380
|
+
}, {
|
|
33381
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.heightBasicShapeNominalValue',
|
|
33382
|
+
field: 'heightBasicShapeNominalValue',
|
|
33383
|
+
cellDataType: 'number'
|
|
33384
|
+
}, {
|
|
33385
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.heightBasicShapeFrom',
|
|
33386
|
+
field: 'heightBasicShapeFrom',
|
|
33387
|
+
cellDataType: 'number'
|
|
33388
|
+
}, {
|
|
33389
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.heightBasicShapeTo',
|
|
33390
|
+
field: 'heightBasicShapeTo',
|
|
33391
|
+
cellDataType: 'number'
|
|
33392
|
+
}, {
|
|
33393
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.heightBasicShapeStepSize',
|
|
33394
|
+
field: 'heightBasicShapeStepSize',
|
|
33395
|
+
cellDataType: 'number'
|
|
33396
|
+
}, {
|
|
33397
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.depthBasicShapeNominalValue',
|
|
33398
|
+
field: 'depthBasicShapeNominalValue',
|
|
33399
|
+
cellDataType: 'number'
|
|
33400
|
+
}, {
|
|
33401
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.depthBasicShapeFrom',
|
|
33402
|
+
field: 'depthBasicShapeFrom',
|
|
33403
|
+
cellDataType: 'number'
|
|
33404
|
+
}, {
|
|
33405
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.depthBasicShapeTo',
|
|
33406
|
+
field: 'depthBasicShapeTo',
|
|
33407
|
+
cellDataType: 'number'
|
|
33408
|
+
}, {
|
|
33409
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.depthBasicShapeStepSize',
|
|
33410
|
+
field: 'depthBasicShapeStepSize',
|
|
33411
|
+
cellDataType: 'number'
|
|
33412
|
+
}]
|
|
33413
|
+
}, {
|
|
33414
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33415
|
+
field: 'lastUpdatedDate',
|
|
33416
|
+
cellDataType: 'dateString',
|
|
33417
|
+
editable: false
|
|
33418
|
+
}, {
|
|
33419
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33420
|
+
field: 'createdDate',
|
|
33421
|
+
cellDataType: 'dateString',
|
|
33422
|
+
editable: false
|
|
33423
|
+
}, {
|
|
33424
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33425
|
+
field: 'createdByDisplayText',
|
|
33426
|
+
editable: false
|
|
33427
|
+
}, {
|
|
33428
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33429
|
+
field: 'lastUpdatedByDisplayText',
|
|
33430
|
+
editable: false
|
|
33431
|
+
}]
|
|
33432
|
+
}
|
|
33433
|
+
});
|
|
33434
|
+
}
|
|
33435
|
+
|
|
33436
|
+
function TableItems () {
|
|
33437
|
+
var _useTranslation = useTranslation(),
|
|
33438
|
+
t = _useTranslation.t;
|
|
33439
|
+
var _useModule = useModule(['items']),
|
|
33440
|
+
catalogId = _useModule.catalogId,
|
|
33441
|
+
updateNavigation = _useModule.updateNavigation,
|
|
33442
|
+
apiConfig = _useModule.apiConfig,
|
|
33443
|
+
organizationId = _useModule.organizationId;
|
|
33444
|
+
var _React$useState = React.useState(),
|
|
33445
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33446
|
+
selectedSerie = _React$useState2[0],
|
|
33447
|
+
setSelectedSerie = _React$useState2[1];
|
|
33020
33448
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
33021
33449
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33022
33450
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -33040,266 +33468,11 @@ function TableItems () {
|
|
|
33040
33468
|
})]
|
|
33041
33469
|
})]
|
|
33042
33470
|
})
|
|
33043
|
-
}), selectedSerie && /*#__PURE__*/jsx(
|
|
33044
|
-
|
|
33045
|
-
|
|
33046
|
-
|
|
33047
|
-
|
|
33048
|
-
},
|
|
33049
|
-
configuration: {
|
|
33050
|
-
type: 'dotnetSSM',
|
|
33051
|
-
idCol: 'typeNo',
|
|
33052
|
-
apiInterface: {
|
|
33053
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/' + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id) + '/items',
|
|
33054
|
-
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/' + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id) + '/items',
|
|
33055
|
-
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/' + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id) + '/items/${typeNo}',
|
|
33056
|
-
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/' + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id) + '/items/${typeNo}',
|
|
33057
|
-
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/' + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id) + '/items/${typeNo}'
|
|
33058
|
-
},
|
|
33059
|
-
dateFormat: 'LL',
|
|
33060
|
-
floatingFilter: true,
|
|
33061
|
-
colDef: [{
|
|
33062
|
-
field: 'typeNo',
|
|
33063
|
-
required: true,
|
|
33064
|
-
unique: true
|
|
33065
|
-
}, {
|
|
33066
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.priceTypeRef',
|
|
33067
|
-
field: 'priceTypeRef',
|
|
33068
|
-
cellDataType: 'number',
|
|
33069
|
-
required: true
|
|
33070
|
-
}, {
|
|
33071
|
-
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
33072
|
-
field: 'sequenceNo',
|
|
33073
|
-
cellDataType: 'number'
|
|
33074
|
-
}, {
|
|
33075
|
-
headerName: 'backoffice.idmCatalog.common.label.texts',
|
|
33076
|
-
children: [{
|
|
33077
|
-
headerName: 'backoffice.idmCatalog.general.label.shortText',
|
|
33078
|
-
marryChildren: true,
|
|
33079
|
-
children: [{
|
|
33080
|
-
field: 'shortText.DE',
|
|
33081
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33082
|
-
isDictionary: true,
|
|
33083
|
-
required: true
|
|
33084
|
-
}, {
|
|
33085
|
-
field: 'shortText.EN',
|
|
33086
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33087
|
-
isDictionary: true
|
|
33088
|
-
}, {
|
|
33089
|
-
field: 'shortText.FR',
|
|
33090
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33091
|
-
isDictionary: true
|
|
33092
|
-
}, {
|
|
33093
|
-
field: 'shortText.IT',
|
|
33094
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33095
|
-
isDictionary: true
|
|
33096
|
-
}]
|
|
33097
|
-
}, {
|
|
33098
|
-
headerName: 'backoffice.idmCatalog.general.label.planningAdvice',
|
|
33099
|
-
marryChildren: true,
|
|
33100
|
-
children: [{
|
|
33101
|
-
field: 'planningAdvice.DE',
|
|
33102
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33103
|
-
isDictionary: true
|
|
33104
|
-
}, {
|
|
33105
|
-
field: 'planningAdvice.EN',
|
|
33106
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33107
|
-
isDictionary: true
|
|
33108
|
-
}, {
|
|
33109
|
-
field: 'planningAdvice.FR',
|
|
33110
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33111
|
-
isDictionary: true
|
|
33112
|
-
}, {
|
|
33113
|
-
field: 'planningAdvice.IT',
|
|
33114
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33115
|
-
isDictionary: true
|
|
33116
|
-
}]
|
|
33117
|
-
}]
|
|
33118
|
-
}, {
|
|
33119
|
-
headerName: 'backoffice.idmCatalog.items.label.articleNumbers',
|
|
33120
|
-
children: [{
|
|
33121
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.edpNumber',
|
|
33122
|
-
field: 'edpNumber'
|
|
33123
|
-
}, {
|
|
33124
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.eanNumber',
|
|
33125
|
-
field: 'eanNumber'
|
|
33126
|
-
}, {
|
|
33127
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.salesNumber',
|
|
33128
|
-
field: 'salesNumber'
|
|
33129
|
-
}, {
|
|
33130
|
-
headerName: 'backoffice.idmCatalog.general.items.itemIdentification',
|
|
33131
|
-
field: 'itemIdentification',
|
|
33132
|
-
cellDataType: 'enum',
|
|
33133
|
-
customParams: {
|
|
33134
|
-
enumData: itemIdentification,
|
|
33135
|
-
displayLabelTemplate: '${name} (${value})'
|
|
33136
|
-
},
|
|
33137
|
-
required: true
|
|
33138
|
-
}]
|
|
33139
|
-
}, {
|
|
33140
|
-
headerName: 'backoffice.idmCatalog.items.label.common',
|
|
33141
|
-
children: [{
|
|
33142
|
-
headerName: 'backoffice.idmCatalog.general.items.typeKey',
|
|
33143
|
-
field: 'typeKey',
|
|
33144
|
-
cellDataType: 'enum',
|
|
33145
|
-
customParams: {
|
|
33146
|
-
enumData: typeKey,
|
|
33147
|
-
displayLabelTemplate: '${name} (${value})'
|
|
33148
|
-
},
|
|
33149
|
-
required: true
|
|
33150
|
-
}, {
|
|
33151
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.featureClassRefNo',
|
|
33152
|
-
field: 'featureClassRefNo',
|
|
33153
|
-
cellDataType: 'number',
|
|
33154
|
-
required: true
|
|
33155
|
-
}, {
|
|
33156
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.eClassNo',
|
|
33157
|
-
field: 'eClassNo',
|
|
33158
|
-
cellDataType: 'number'
|
|
33159
|
-
}, {
|
|
33160
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.catalogPage',
|
|
33161
|
-
field: 'catalogPage'
|
|
33162
|
-
}, {
|
|
33163
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.minimumDeliveryTime',
|
|
33164
|
-
field: 'minimumDeliveryTime',
|
|
33165
|
-
cellDataType: 'number'
|
|
33166
|
-
}]
|
|
33167
|
-
}, {
|
|
33168
|
-
headerName: 'backoffice.idmCatalog.items.label.configurator',
|
|
33169
|
-
children: [{
|
|
33170
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.partListExclusive',
|
|
33171
|
-
field: 'partListExclusive',
|
|
33172
|
-
cellDataType: 'boolean'
|
|
33173
|
-
}, {
|
|
33174
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.partlist',
|
|
33175
|
-
field: 'partListRef',
|
|
33176
|
-
cellDataType: 'lookup',
|
|
33177
|
-
customParams: {
|
|
33178
|
-
nameField: 'partListRef',
|
|
33179
|
-
apiInterface: {
|
|
33180
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists'
|
|
33181
|
-
},
|
|
33182
|
-
lookupValue: 'partlistKey',
|
|
33183
|
-
lookupKey: 'partlistKey'
|
|
33184
|
-
}
|
|
33185
|
-
}, {
|
|
33186
|
-
field: 'decisionRefs',
|
|
33187
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.decisionRefs',
|
|
33188
|
-
cellDataType: 'lookup',
|
|
33189
|
-
editable: true,
|
|
33190
|
-
customParams: {
|
|
33191
|
-
nameField: 'decisionRefsDisplayTexts',
|
|
33192
|
-
filterCellType: 'number',
|
|
33193
|
-
displayLabelTemplate: '${name} (${value})',
|
|
33194
|
-
apiInterface: {
|
|
33195
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions'
|
|
33196
|
-
},
|
|
33197
|
-
lookupValue: 'decisionText',
|
|
33198
|
-
lookupKey: 'decisionNo',
|
|
33199
|
-
lookupKeyFilterType: {
|
|
33200
|
-
type: 'equals',
|
|
33201
|
-
filterType: 'number'
|
|
33202
|
-
},
|
|
33203
|
-
multiple: true,
|
|
33204
|
-
translated: true
|
|
33205
|
-
},
|
|
33206
|
-
additionalFields: ['decisionRefsDisplayTexts'],
|
|
33207
|
-
isDictionary: true
|
|
33208
|
-
}]
|
|
33209
|
-
}, {
|
|
33210
|
-
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
33211
|
-
children: [{
|
|
33212
|
-
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
|
33213
|
-
field: 'validFromDate',
|
|
33214
|
-
cellDataType: 'dateString'
|
|
33215
|
-
}, {
|
|
33216
|
-
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
|
33217
|
-
field: 'validUntilDate',
|
|
33218
|
-
cellDataType: 'dateString'
|
|
33219
|
-
}]
|
|
33220
|
-
}, {
|
|
33221
|
-
headerName: 'backoffice.idmCatalog.items.label.measurements',
|
|
33222
|
-
children: [{
|
|
33223
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.weightBrutto',
|
|
33224
|
-
field: 'weightBrutto',
|
|
33225
|
-
cellDataType: 'number'
|
|
33226
|
-
}, {
|
|
33227
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.weightNetto',
|
|
33228
|
-
field: 'weightNetto',
|
|
33229
|
-
cellDataType: 'number'
|
|
33230
|
-
}, {
|
|
33231
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.volume',
|
|
33232
|
-
field: 'volume',
|
|
33233
|
-
cellDataType: 'number'
|
|
33234
|
-
}, {
|
|
33235
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.widthBasicShapeNominalValue',
|
|
33236
|
-
field: 'widthBasicShapeNominalValue',
|
|
33237
|
-
cellDataType: 'number'
|
|
33238
|
-
}, {
|
|
33239
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.widthBasicShapeFrom',
|
|
33240
|
-
field: 'widthBasicShapeFrom',
|
|
33241
|
-
cellDataType: 'number'
|
|
33242
|
-
}, {
|
|
33243
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.widthBasicShapeTo',
|
|
33244
|
-
field: 'widthBasicShapeTo',
|
|
33245
|
-
cellDataType: 'number'
|
|
33246
|
-
}, {
|
|
33247
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.widthBasicShapeStepSize',
|
|
33248
|
-
field: 'widthBasicShapeStepSize',
|
|
33249
|
-
cellDataType: 'number'
|
|
33250
|
-
}, {
|
|
33251
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.heightBasicShapeNominalValue',
|
|
33252
|
-
field: 'heightBasicShapeNominalValue',
|
|
33253
|
-
cellDataType: 'number'
|
|
33254
|
-
}, {
|
|
33255
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.heightBasicShapeFrom',
|
|
33256
|
-
field: 'heightBasicShapeFrom',
|
|
33257
|
-
cellDataType: 'number'
|
|
33258
|
-
}, {
|
|
33259
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.heightBasicShapeTo',
|
|
33260
|
-
field: 'heightBasicShapeTo',
|
|
33261
|
-
cellDataType: 'number'
|
|
33262
|
-
}, {
|
|
33263
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.heightBasicShapeStepSize',
|
|
33264
|
-
field: 'heightBasicShapeStepSize',
|
|
33265
|
-
cellDataType: 'number'
|
|
33266
|
-
}, {
|
|
33267
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.depthBasicShapeNominalValue',
|
|
33268
|
-
field: 'depthBasicShapeNominalValue',
|
|
33269
|
-
cellDataType: 'number'
|
|
33270
|
-
}, {
|
|
33271
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.depthBasicShapeFrom',
|
|
33272
|
-
field: 'depthBasicShapeFrom',
|
|
33273
|
-
cellDataType: 'number'
|
|
33274
|
-
}, {
|
|
33275
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.depthBasicShapeTo',
|
|
33276
|
-
field: 'depthBasicShapeTo',
|
|
33277
|
-
cellDataType: 'number'
|
|
33278
|
-
}, {
|
|
33279
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.depthBasicShapeStepSize',
|
|
33280
|
-
field: 'depthBasicShapeStepSize',
|
|
33281
|
-
cellDataType: 'number'
|
|
33282
|
-
}]
|
|
33283
|
-
}, {
|
|
33284
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33285
|
-
field: 'lastUpdatedDate',
|
|
33286
|
-
cellDataType: 'dateString',
|
|
33287
|
-
editable: false
|
|
33288
|
-
}, {
|
|
33289
|
-
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33290
|
-
field: 'createdDate',
|
|
33291
|
-
cellDataType: 'dateString',
|
|
33292
|
-
editable: false
|
|
33293
|
-
}, {
|
|
33294
|
-
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33295
|
-
field: 'createdByDisplayText',
|
|
33296
|
-
editable: false
|
|
33297
|
-
}, {
|
|
33298
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33299
|
-
field: 'lastUpdatedByDisplayText',
|
|
33300
|
-
editable: false
|
|
33301
|
-
}]
|
|
33302
|
-
}
|
|
33471
|
+
}), selectedSerie && /*#__PURE__*/jsx(Items, {
|
|
33472
|
+
organizationId: organizationId,
|
|
33473
|
+
catalogId: catalogId,
|
|
33474
|
+
selectedSerie: selectedSerie._id,
|
|
33475
|
+
apiConfig: apiConfig
|
|
33303
33476
|
})]
|
|
33304
33477
|
});
|
|
33305
33478
|
}
|
|
@@ -33307,6 +33480,7 @@ function TableItems () {
|
|
|
33307
33480
|
function TableSeries () {
|
|
33308
33481
|
var _useTranslation = useTranslation(),
|
|
33309
33482
|
t = _useTranslation.t;
|
|
33483
|
+
var root = useStore();
|
|
33310
33484
|
var _useModule = useModule(['series']),
|
|
33311
33485
|
catalogId = _useModule.catalogId,
|
|
33312
33486
|
organizationId = _useModule.organizationId,
|
|
@@ -33325,6 +33499,29 @@ function TableSeries () {
|
|
|
33325
33499
|
name: t('backoffice.idmCatalog.series.label.purchaseRetail.p3'),
|
|
33326
33500
|
value: 3
|
|
33327
33501
|
}];
|
|
33502
|
+
var _React$useState = React.useState(),
|
|
33503
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33504
|
+
selectedSerie = _React$useState2[0],
|
|
33505
|
+
setSelectedSerie = _React$useState2[1];
|
|
33506
|
+
useEffect(function () {
|
|
33507
|
+
if (selectedSerie) {
|
|
33508
|
+
root.contentStore.bottomToolBar.tools = [{
|
|
33509
|
+
id: 'options',
|
|
33510
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'),
|
|
33511
|
+
element: /*#__PURE__*/jsx(Items, {
|
|
33512
|
+
organizationId: organizationId,
|
|
33513
|
+
catalogId: catalogId,
|
|
33514
|
+
selectedSerie: selectedSerie._id,
|
|
33515
|
+
apiConfig: apiConfig
|
|
33516
|
+
}),
|
|
33517
|
+
startWidth: 300,
|
|
33518
|
+
defaultPinned: false,
|
|
33519
|
+
defaultOpen: false
|
|
33520
|
+
}];
|
|
33521
|
+
} else {
|
|
33522
|
+
root.contentStore.bottomToolBar.tools = [];
|
|
33523
|
+
}
|
|
33524
|
+
}, [selectedSerie]);
|
|
33328
33525
|
var applicationData = useMemo(function () {
|
|
33329
33526
|
return {
|
|
33330
33527
|
catalogId: catalogId,
|
|
@@ -33351,6 +33548,15 @@ function TableSeries () {
|
|
|
33351
33548
|
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33352
33549
|
gridId: 'crud-grid_series',
|
|
33353
33550
|
applicationData: applicationData,
|
|
33551
|
+
hooks: {
|
|
33552
|
+
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
33553
|
+
if (event.selection.length == 1) {
|
|
33554
|
+
setSelectedSerie(event.selection[0].node.data);
|
|
33555
|
+
} else {
|
|
33556
|
+
setSelectedSerie(null);
|
|
33557
|
+
}
|
|
33558
|
+
}
|
|
33559
|
+
},
|
|
33354
33560
|
configuration: {
|
|
33355
33561
|
type: 'dotnetSSM',
|
|
33356
33562
|
apiInterface: {
|
|
@@ -33494,14 +33700,162 @@ function TableSeries () {
|
|
|
33494
33700
|
});
|
|
33495
33701
|
}
|
|
33496
33702
|
|
|
33497
|
-
function
|
|
33703
|
+
function Options(_ref) {
|
|
33704
|
+
var organizationId = _ref.organizationId,
|
|
33705
|
+
catalogId = _ref.catalogId,
|
|
33706
|
+
selectedFeature = _ref.selectedFeature,
|
|
33707
|
+
apiConfig = _ref.apiConfig;
|
|
33708
|
+
var applicationData = useMemo(function () {
|
|
33709
|
+
return {
|
|
33710
|
+
organizationId: organizationId,
|
|
33711
|
+
catalogId: catalogId,
|
|
33712
|
+
selectedFeature: selectedFeature
|
|
33713
|
+
};
|
|
33714
|
+
}, [organizationId, catalogId, selectedFeature]);
|
|
33715
|
+
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
33716
|
+
gridId: 'crud-grid_options',
|
|
33717
|
+
applicationData: applicationData,
|
|
33718
|
+
configuration: {
|
|
33719
|
+
type: 'dotnetSSM',
|
|
33720
|
+
idCol: 'optionKey',
|
|
33721
|
+
apiInterface: {
|
|
33722
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
|
33723
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
|
33724
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
|
33725
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
|
33726
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}'
|
|
33727
|
+
},
|
|
33728
|
+
dateFormat: 'LL',
|
|
33729
|
+
floatingFilter: true,
|
|
33730
|
+
colDef: [{
|
|
33731
|
+
field: 'optionKey',
|
|
33732
|
+
required: true,
|
|
33733
|
+
unique: true
|
|
33734
|
+
}, {
|
|
33735
|
+
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
33736
|
+
field: 'sequenceNo',
|
|
33737
|
+
cellDataType: 'number'
|
|
33738
|
+
}, {
|
|
33739
|
+
headerName: 'backoffice.idmCatalog.common.label.texts',
|
|
33740
|
+
children: [{
|
|
33741
|
+
headerName: 'backoffice.idmCatalog.options.label.optionText',
|
|
33742
|
+
marryChildren: true,
|
|
33743
|
+
children: [{
|
|
33744
|
+
field: 'optionText.DE',
|
|
33745
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33746
|
+
isDictionary: true,
|
|
33747
|
+
required: true
|
|
33748
|
+
}, {
|
|
33749
|
+
field: 'optionText.EN',
|
|
33750
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33751
|
+
isDictionary: true
|
|
33752
|
+
}, {
|
|
33753
|
+
field: 'optionText.FR',
|
|
33754
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33755
|
+
isDictionary: true
|
|
33756
|
+
}, {
|
|
33757
|
+
field: 'optionText.IT',
|
|
33758
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33759
|
+
isDictionary: true
|
|
33760
|
+
}]
|
|
33761
|
+
}, {
|
|
33762
|
+
headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
|
|
33763
|
+
marryChildren: true,
|
|
33764
|
+
children: [{
|
|
33765
|
+
field: 'optionCommentText.DE',
|
|
33766
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33767
|
+
isDictionary: true
|
|
33768
|
+
}, {
|
|
33769
|
+
field: 'optionCommentText.EN',
|
|
33770
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33771
|
+
isDictionary: true
|
|
33772
|
+
}, {
|
|
33773
|
+
field: 'optionCommentText.FR',
|
|
33774
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33775
|
+
isDictionary: true
|
|
33776
|
+
}, {
|
|
33777
|
+
field: 'optionCommentText.IT',
|
|
33778
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33779
|
+
isDictionary: true
|
|
33780
|
+
}]
|
|
33781
|
+
}, {
|
|
33782
|
+
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
33783
|
+
field: 'optionFreeText',
|
|
33784
|
+
cellDataType: 'boolean'
|
|
33785
|
+
}]
|
|
33786
|
+
}, {
|
|
33787
|
+
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
33788
|
+
children: [{
|
|
33789
|
+
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
|
33790
|
+
field: 'validFromDate',
|
|
33791
|
+
cellDataType: 'dateString'
|
|
33792
|
+
}, {
|
|
33793
|
+
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
|
33794
|
+
field: 'validUntilDate',
|
|
33795
|
+
cellDataType: 'dateString'
|
|
33796
|
+
}]
|
|
33797
|
+
}, {
|
|
33798
|
+
headerName: 'backoffice.idmCatalog.options.label.material',
|
|
33799
|
+
children: [{
|
|
33800
|
+
headerName: 'backoffice.idmCatalog.options.label.materialNo',
|
|
33801
|
+
field: 'materialNo'
|
|
33802
|
+
}, {
|
|
33803
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorR',
|
|
33804
|
+
field: 'materialColorR',
|
|
33805
|
+
cellDataType: 'number'
|
|
33806
|
+
}, {
|
|
33807
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorG',
|
|
33808
|
+
field: 'materialColorG',
|
|
33809
|
+
cellDataType: 'number'
|
|
33810
|
+
}, {
|
|
33811
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorB',
|
|
33812
|
+
field: 'materialColorR',
|
|
33813
|
+
cellDataType: 'number'
|
|
33814
|
+
}]
|
|
33815
|
+
}, {
|
|
33816
|
+
headerName: 'backoffice.idmCatalog.options.label.measurement',
|
|
33817
|
+
children: [{
|
|
33818
|
+
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
|
33819
|
+
field: 'measureNo'
|
|
33820
|
+
}, {
|
|
33821
|
+
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
|
33822
|
+
field: 'measureValue',
|
|
33823
|
+
cellDataType: 'number'
|
|
33824
|
+
}, {
|
|
33825
|
+
headerName: 'backoffice.idmCatalog.options.label.measureUnit',
|
|
33826
|
+
field: 'measureUnit'
|
|
33827
|
+
}]
|
|
33828
|
+
}, {
|
|
33829
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33830
|
+
field: 'lastUpdatedDate',
|
|
33831
|
+
cellDataType: 'dateString',
|
|
33832
|
+
editable: false
|
|
33833
|
+
}, {
|
|
33834
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33835
|
+
field: 'lastUpdatedByDisplayText',
|
|
33836
|
+
editable: false
|
|
33837
|
+
}, {
|
|
33838
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33839
|
+
field: 'createdDate',
|
|
33840
|
+
cellDataType: 'dateString',
|
|
33841
|
+
editable: false
|
|
33842
|
+
}, {
|
|
33843
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33844
|
+
field: 'createdByDisplayText',
|
|
33845
|
+
editable: false
|
|
33846
|
+
}]
|
|
33847
|
+
}
|
|
33848
|
+
});
|
|
33849
|
+
}
|
|
33850
|
+
|
|
33851
|
+
function Features(_ref) {
|
|
33852
|
+
var organizationId = _ref.organizationId,
|
|
33853
|
+
catalogId = _ref.catalogId,
|
|
33854
|
+
featureClassId = _ref.featureClassId,
|
|
33855
|
+
apiConfig = _ref.apiConfig,
|
|
33856
|
+
hooks = _ref.hooks;
|
|
33498
33857
|
var _useTranslation = useTranslation(),
|
|
33499
33858
|
t = _useTranslation.t;
|
|
33500
|
-
var _useModule = useModule(['features']),
|
|
33501
|
-
catalogId = _useModule.catalogId,
|
|
33502
|
-
organizationId = _useModule.organizationId,
|
|
33503
|
-
updateNavigation = _useModule.updateNavigation,
|
|
33504
|
-
apiConfig = _useModule.apiConfig;
|
|
33505
33859
|
var headerPosVariationType = [{
|
|
33506
33860
|
name: t('backoffice.idmCatalog.features.label.vt.I'),
|
|
33507
33861
|
value: 'I'
|
|
@@ -33525,9 +33879,184 @@ function TableFeatures () {
|
|
|
33525
33879
|
var applicationData = useMemo(function () {
|
|
33526
33880
|
return {
|
|
33527
33881
|
catalogId: catalogId,
|
|
33528
|
-
organizationId: organizationId
|
|
33882
|
+
organizationId: organizationId,
|
|
33883
|
+
featureClassId: featureClassId
|
|
33529
33884
|
};
|
|
33530
|
-
}, [catalogId]);
|
|
33885
|
+
}, [catalogId, featureClassId, organizationId]);
|
|
33886
|
+
var apiInterface = featureClassId ? {
|
|
33887
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
33888
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
33889
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
33890
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features/${_id}',
|
|
33891
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features/${_id}'
|
|
33892
|
+
} : {
|
|
33893
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
|
|
33894
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
|
|
33895
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
|
|
33896
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
|
|
33897
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}'
|
|
33898
|
+
};
|
|
33899
|
+
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
33900
|
+
gridId: 'crud-grid_features' + (featureClassId ? '_featureClass' : ''),
|
|
33901
|
+
applicationData: applicationData,
|
|
33902
|
+
hooks: hooks,
|
|
33903
|
+
configuration: {
|
|
33904
|
+
type: 'dotnetSSM',
|
|
33905
|
+
apiInterface: apiInterface,
|
|
33906
|
+
dateFormat: 'LL',
|
|
33907
|
+
colDef: [].concat(_toConsumableArray(featureClassId ? [{
|
|
33908
|
+
field: 'visible',
|
|
33909
|
+
headerName: 'backoffice.idmCatalog.features.label.visible',
|
|
33910
|
+
cellDataType: 'boolean',
|
|
33911
|
+
required: true,
|
|
33912
|
+
pinned: true,
|
|
33913
|
+
lockPinned: true,
|
|
33914
|
+
defaultValue: false
|
|
33915
|
+
}, {
|
|
33916
|
+
field: 'featureNo',
|
|
33917
|
+
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
33918
|
+
required: true,
|
|
33919
|
+
cellDataType: 'lookup',
|
|
33920
|
+
doRefresh: true,
|
|
33921
|
+
unique: true,
|
|
33922
|
+
customParams: {
|
|
33923
|
+
apiInterface: {
|
|
33924
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
|
|
33925
|
+
},
|
|
33926
|
+
lookupValue: 'featureText',
|
|
33927
|
+
lookupKey: 'featureNo',
|
|
33928
|
+
translated: true,
|
|
33929
|
+
lookupLabelTemplate: '${name} (${value})',
|
|
33930
|
+
insertLookup: true,
|
|
33931
|
+
allowToAdd: true
|
|
33932
|
+
}
|
|
33933
|
+
}] : [{
|
|
33934
|
+
field: 'featureNo',
|
|
33935
|
+
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
33936
|
+
required: true,
|
|
33937
|
+
unique: true
|
|
33938
|
+
}]), [{
|
|
33939
|
+
headerName: 'backoffice.idmCatalog.features.label.featureText',
|
|
33940
|
+
marryChildren: true,
|
|
33941
|
+
children: [{
|
|
33942
|
+
field: 'featureText.DE',
|
|
33943
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33944
|
+
isDictionary: true,
|
|
33945
|
+
required: true
|
|
33946
|
+
}, {
|
|
33947
|
+
field: 'featureText.EN',
|
|
33948
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33949
|
+
isDictionary: true
|
|
33950
|
+
}, {
|
|
33951
|
+
field: 'featureText.FR',
|
|
33952
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33953
|
+
isDictionary: true
|
|
33954
|
+
}, {
|
|
33955
|
+
field: 'featureText.IT',
|
|
33956
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33957
|
+
isDictionary: true
|
|
33958
|
+
}]
|
|
33959
|
+
}, {
|
|
33960
|
+
field: 'sequenceNo',
|
|
33961
|
+
headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
|
|
33962
|
+
required: true,
|
|
33963
|
+
cellDataType: 'number'
|
|
33964
|
+
}, {
|
|
33965
|
+
field: 'headerPosVariationType',
|
|
33966
|
+
headerName: 'backoffice.idmCatalog.features.label.headerPosVariationType',
|
|
33967
|
+
required: true,
|
|
33968
|
+
cellDataType: 'enum',
|
|
33969
|
+
customParams: {
|
|
33970
|
+
enumData: headerPosVariationType,
|
|
33971
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33972
|
+
}
|
|
33973
|
+
}, {
|
|
33974
|
+
field: 'featureT',
|
|
33975
|
+
headerName: 'backoffice.idmCatalog.features.label.featureT',
|
|
33976
|
+
cellDataType: 'enum',
|
|
33977
|
+
customParams: {
|
|
33978
|
+
enumData: featureT,
|
|
33979
|
+
displayLabelTemplate: '${name} (${value})'
|
|
33980
|
+
}
|
|
33981
|
+
}, {
|
|
33982
|
+
field: 'measureUnit',
|
|
33983
|
+
headerName: 'backoffice.idmCatalog.features.label.measureUnit'
|
|
33984
|
+
}, {
|
|
33985
|
+
field: 'measureParameter',
|
|
33986
|
+
headerName: 'backoffice.idmCatalog.features.label.measureParameter'
|
|
33987
|
+
}, {
|
|
33988
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33989
|
+
field: 'lastUpdatedDate',
|
|
33990
|
+
cellDataType: 'dateString',
|
|
33991
|
+
editable: false
|
|
33992
|
+
}, {
|
|
33993
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33994
|
+
field: 'createdDate',
|
|
33995
|
+
cellDataType: 'dateString',
|
|
33996
|
+
editable: false
|
|
33997
|
+
}, {
|
|
33998
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33999
|
+
field: 'createdByDisplayText',
|
|
34000
|
+
editable: false
|
|
34001
|
+
}, {
|
|
34002
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
34003
|
+
field: 'lastUpdatedByDisplayText',
|
|
34004
|
+
editable: false
|
|
34005
|
+
}, {
|
|
34006
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
34007
|
+
field: '_id',
|
|
34008
|
+
editable: false
|
|
34009
|
+
}, {
|
|
34010
|
+
field: 'organizationId',
|
|
34011
|
+
editable: false,
|
|
34012
|
+
hide: true,
|
|
34013
|
+
lockVisible: true,
|
|
34014
|
+
suppressColumnsToolPanel: true,
|
|
34015
|
+
defaultValue: '${organizationId}'
|
|
34016
|
+
}, {
|
|
34017
|
+
field: 'catalogId',
|
|
34018
|
+
editable: false,
|
|
34019
|
+
hide: true,
|
|
34020
|
+
lockVisible: true,
|
|
34021
|
+
suppressColumnsToolPanel: true,
|
|
34022
|
+
defaultValue: '${catalogId}'
|
|
34023
|
+
}])
|
|
34024
|
+
}
|
|
34025
|
+
});
|
|
34026
|
+
}
|
|
34027
|
+
|
|
34028
|
+
function TableFeatures () {
|
|
34029
|
+
var _useTranslation = useTranslation(),
|
|
34030
|
+
t = _useTranslation.t;
|
|
34031
|
+
var root = useStore();
|
|
34032
|
+
var _useModule = useModule(['features']),
|
|
34033
|
+
catalogId = _useModule.catalogId,
|
|
34034
|
+
organizationId = _useModule.organizationId,
|
|
34035
|
+
updateNavigation = _useModule.updateNavigation,
|
|
34036
|
+
apiConfig = _useModule.apiConfig;
|
|
34037
|
+
var _React$useState = React.useState(),
|
|
34038
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
34039
|
+
selectedFeature = _React$useState2[0],
|
|
34040
|
+
setSelectedFeature = _React$useState2[1];
|
|
34041
|
+
useEffect(function () {
|
|
34042
|
+
if (selectedFeature) {
|
|
34043
|
+
root.contentStore.bottomToolBar.tools = [{
|
|
34044
|
+
id: 'options',
|
|
34045
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'),
|
|
34046
|
+
element: /*#__PURE__*/jsx(Options, {
|
|
34047
|
+
organizationId: organizationId,
|
|
34048
|
+
catalogId: catalogId,
|
|
34049
|
+
selectedFeature: selectedFeature._id,
|
|
34050
|
+
apiConfig: apiConfig
|
|
34051
|
+
}),
|
|
34052
|
+
startWidth: 300,
|
|
34053
|
+
defaultPinned: false,
|
|
34054
|
+
defaultOpen: false
|
|
34055
|
+
}];
|
|
34056
|
+
} else {
|
|
34057
|
+
root.contentStore.bottomToolBar.tools = [];
|
|
34058
|
+
}
|
|
34059
|
+
}, [selectedFeature]);
|
|
33531
34060
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
33532
34061
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33533
34062
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -33545,109 +34074,18 @@ function TableFeatures () {
|
|
|
33545
34074
|
})
|
|
33546
34075
|
})]
|
|
33547
34076
|
})
|
|
33548
|
-
}), /*#__PURE__*/jsx(
|
|
33549
|
-
|
|
33550
|
-
|
|
33551
|
-
|
|
33552
|
-
|
|
33553
|
-
|
|
33554
|
-
|
|
33555
|
-
|
|
33556
|
-
|
|
33557
|
-
|
|
33558
|
-
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}'
|
|
33559
|
-
},
|
|
33560
|
-
dateFormat: 'LL',
|
|
33561
|
-
colDef: [{
|
|
33562
|
-
field: 'featureNo',
|
|
33563
|
-
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
33564
|
-
required: true
|
|
33565
|
-
}, {
|
|
33566
|
-
headerName: 'backoffice.idmCatalog.features.label.featureText',
|
|
33567
|
-
marryChildren: true,
|
|
33568
|
-
children: [{
|
|
33569
|
-
field: 'featureText.DE',
|
|
33570
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33571
|
-
isDictionary: true,
|
|
33572
|
-
required: true
|
|
33573
|
-
}, {
|
|
33574
|
-
field: 'featureText.EN',
|
|
33575
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33576
|
-
isDictionary: true
|
|
33577
|
-
}, {
|
|
33578
|
-
field: 'featureText.FR',
|
|
33579
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33580
|
-
isDictionary: true
|
|
33581
|
-
}, {
|
|
33582
|
-
field: 'featureText.IT',
|
|
33583
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33584
|
-
isDictionary: true
|
|
33585
|
-
}]
|
|
33586
|
-
}, {
|
|
33587
|
-
field: 'sequenceNo',
|
|
33588
|
-
headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
|
|
33589
|
-
required: true,
|
|
33590
|
-
cellDataType: 'number'
|
|
33591
|
-
}, {
|
|
33592
|
-
field: 'headerPosVariationType',
|
|
33593
|
-
headerName: 'backoffice.idmCatalog.features.label.headerPosVariationType',
|
|
33594
|
-
required: true,
|
|
33595
|
-
cellDataType: 'enum',
|
|
33596
|
-
customParams: {
|
|
33597
|
-
enumData: headerPosVariationType,
|
|
33598
|
-
displayLabelTemplate: '${name} (${value})'
|
|
33599
|
-
}
|
|
33600
|
-
}, {
|
|
33601
|
-
field: 'featureT',
|
|
33602
|
-
headerName: 'backoffice.idmCatalog.features.label.featureT',
|
|
33603
|
-
cellDataType: 'enum',
|
|
33604
|
-
customParams: {
|
|
33605
|
-
enumData: featureT,
|
|
33606
|
-
displayLabelTemplate: '${name} (${value})'
|
|
34077
|
+
}), /*#__PURE__*/jsx(Features, {
|
|
34078
|
+
organizationId: organizationId,
|
|
34079
|
+
catalogId: catalogId,
|
|
34080
|
+
apiConfig: apiConfig,
|
|
34081
|
+
hooks: {
|
|
34082
|
+
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
34083
|
+
if (event.selection.length == 1) {
|
|
34084
|
+
setSelectedFeature(event.selection[0].node.data);
|
|
34085
|
+
} else {
|
|
34086
|
+
setSelectedFeature(null);
|
|
33607
34087
|
}
|
|
33608
|
-
}
|
|
33609
|
-
field: 'measureUnit',
|
|
33610
|
-
headerName: 'backoffice.idmCatalog.features.label.measureUnit'
|
|
33611
|
-
}, {
|
|
33612
|
-
field: 'measureParameter',
|
|
33613
|
-
headerName: 'backoffice.idmCatalog.features.label.measureParameter'
|
|
33614
|
-
}, {
|
|
33615
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33616
|
-
field: 'lastUpdatedDate',
|
|
33617
|
-
cellDataType: 'dateString',
|
|
33618
|
-
editable: false
|
|
33619
|
-
}, {
|
|
33620
|
-
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33621
|
-
field: 'createdDate',
|
|
33622
|
-
cellDataType: 'dateString',
|
|
33623
|
-
editable: false
|
|
33624
|
-
}, {
|
|
33625
|
-
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33626
|
-
field: 'createdByDisplayText',
|
|
33627
|
-
editable: false
|
|
33628
|
-
}, {
|
|
33629
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33630
|
-
field: 'lastUpdatedByDisplayText',
|
|
33631
|
-
editable: false
|
|
33632
|
-
}, {
|
|
33633
|
-
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
33634
|
-
field: '_id',
|
|
33635
|
-
editable: false
|
|
33636
|
-
}, {
|
|
33637
|
-
field: 'organizationId',
|
|
33638
|
-
editable: false,
|
|
33639
|
-
hide: true,
|
|
33640
|
-
lockVisible: true,
|
|
33641
|
-
suppressColumnsToolPanel: true,
|
|
33642
|
-
defaultValue: '${organizationId}'
|
|
33643
|
-
}, {
|
|
33644
|
-
field: 'catalogId',
|
|
33645
|
-
editable: false,
|
|
33646
|
-
hide: true,
|
|
33647
|
-
lockVisible: true,
|
|
33648
|
-
suppressColumnsToolPanel: true,
|
|
33649
|
-
defaultValue: '${catalogId}'
|
|
33650
|
-
}]
|
|
34088
|
+
}
|
|
33651
34089
|
}
|
|
33652
34090
|
})]
|
|
33653
34091
|
});
|
|
@@ -33688,154 +34126,48 @@ function TableOptions () {
|
|
|
33688
34126
|
})]
|
|
33689
34127
|
})]
|
|
33690
34128
|
})
|
|
33691
|
-
}), selectedFeature && /*#__PURE__*/jsx(
|
|
33692
|
-
|
|
33693
|
-
|
|
33694
|
-
|
|
33695
|
-
|
|
33696
|
-
},
|
|
33697
|
-
configuration: {
|
|
33698
|
-
type: 'dotnetSSM',
|
|
33699
|
-
idCol: 'optionKey',
|
|
33700
|
-
apiInterface: {
|
|
33701
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
|
|
33702
|
-
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
|
|
33703
|
-
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
|
|
33704
|
-
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
|
|
33705
|
-
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}'
|
|
33706
|
-
},
|
|
33707
|
-
dateFormat: 'LL',
|
|
33708
|
-
floatingFilter: true,
|
|
33709
|
-
colDef: [{
|
|
33710
|
-
field: 'optionKey',
|
|
33711
|
-
required: true,
|
|
33712
|
-
unique: true
|
|
33713
|
-
}, {
|
|
33714
|
-
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
33715
|
-
field: 'sequenceNo',
|
|
33716
|
-
cellDataType: 'number'
|
|
33717
|
-
}, {
|
|
33718
|
-
headerName: 'backoffice.idmCatalog.common.label.texts',
|
|
33719
|
-
children: [{
|
|
33720
|
-
headerName: 'backoffice.idmCatalog.options.label.optionText',
|
|
33721
|
-
marryChildren: true,
|
|
33722
|
-
children: [{
|
|
33723
|
-
field: 'optionText.DE',
|
|
33724
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33725
|
-
isDictionary: true,
|
|
33726
|
-
required: true
|
|
33727
|
-
}, {
|
|
33728
|
-
field: 'optionText.EN',
|
|
33729
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33730
|
-
isDictionary: true
|
|
33731
|
-
}, {
|
|
33732
|
-
field: 'optionText.FR',
|
|
33733
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33734
|
-
isDictionary: true
|
|
33735
|
-
}, {
|
|
33736
|
-
field: 'optionText.IT',
|
|
33737
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33738
|
-
isDictionary: true
|
|
33739
|
-
}]
|
|
33740
|
-
}, {
|
|
33741
|
-
headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
|
|
33742
|
-
marryChildren: true,
|
|
33743
|
-
children: [{
|
|
33744
|
-
field: 'optionCommentText.DE',
|
|
33745
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33746
|
-
isDictionary: true
|
|
33747
|
-
}, {
|
|
33748
|
-
field: 'optionCommentText.EN',
|
|
33749
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33750
|
-
isDictionary: true
|
|
33751
|
-
}, {
|
|
33752
|
-
field: 'optionCommentText.FR',
|
|
33753
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33754
|
-
isDictionary: true
|
|
33755
|
-
}, {
|
|
33756
|
-
field: 'optionCommentText.IT',
|
|
33757
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33758
|
-
isDictionary: true
|
|
33759
|
-
}]
|
|
33760
|
-
}, {
|
|
33761
|
-
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
33762
|
-
field: 'optionFreeText',
|
|
33763
|
-
cellDataType: 'boolean'
|
|
33764
|
-
}]
|
|
33765
|
-
}, {
|
|
33766
|
-
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
33767
|
-
children: [{
|
|
33768
|
-
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
|
33769
|
-
field: 'validFromDate',
|
|
33770
|
-
cellDataType: 'dateString'
|
|
33771
|
-
}, {
|
|
33772
|
-
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
|
33773
|
-
field: 'validUntilDate',
|
|
33774
|
-
cellDataType: 'dateString'
|
|
33775
|
-
}]
|
|
33776
|
-
}, {
|
|
33777
|
-
headerName: 'backoffice.idmCatalog.options.label.material',
|
|
33778
|
-
children: [{
|
|
33779
|
-
headerName: 'backoffice.idmCatalog.options.label.materialNo',
|
|
33780
|
-
field: 'materialNo'
|
|
33781
|
-
}, {
|
|
33782
|
-
headerName: 'backoffice.idmCatalog.options.label.materialColorR',
|
|
33783
|
-
field: 'materialColorR',
|
|
33784
|
-
cellDataType: 'number'
|
|
33785
|
-
}, {
|
|
33786
|
-
headerName: 'backoffice.idmCatalog.options.label.materialColorG',
|
|
33787
|
-
field: 'materialColorG',
|
|
33788
|
-
cellDataType: 'number'
|
|
33789
|
-
}, {
|
|
33790
|
-
headerName: 'backoffice.idmCatalog.options.label.materialColorB',
|
|
33791
|
-
field: 'materialColorR',
|
|
33792
|
-
cellDataType: 'number'
|
|
33793
|
-
}]
|
|
33794
|
-
}, {
|
|
33795
|
-
headerName: 'backoffice.idmCatalog.options.label.measurement',
|
|
33796
|
-
children: [{
|
|
33797
|
-
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
|
33798
|
-
field: 'measureNo'
|
|
33799
|
-
}, {
|
|
33800
|
-
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
|
33801
|
-
field: 'measureValue',
|
|
33802
|
-
cellDataType: 'number'
|
|
33803
|
-
}, {
|
|
33804
|
-
headerName: 'backoffice.idmCatalog.options.label.measureUnit',
|
|
33805
|
-
field: 'measureUnit'
|
|
33806
|
-
}]
|
|
33807
|
-
}, {
|
|
33808
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33809
|
-
field: 'lastUpdatedDate',
|
|
33810
|
-
cellDataType: 'dateString',
|
|
33811
|
-
editable: false
|
|
33812
|
-
}, {
|
|
33813
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33814
|
-
field: 'lastUpdatedByDisplayText',
|
|
33815
|
-
editable: false
|
|
33816
|
-
}, {
|
|
33817
|
-
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33818
|
-
field: 'createdDate',
|
|
33819
|
-
cellDataType: 'dateString',
|
|
33820
|
-
editable: false
|
|
33821
|
-
}, {
|
|
33822
|
-
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33823
|
-
field: 'createdByDisplayText',
|
|
33824
|
-
editable: false
|
|
33825
|
-
}]
|
|
33826
|
-
}
|
|
34129
|
+
}), selectedFeature && /*#__PURE__*/jsx(Options, {
|
|
34130
|
+
organizationId: organizationId,
|
|
34131
|
+
catalogId: catalogId,
|
|
34132
|
+
selectedFeature: selectedFeature._id,
|
|
34133
|
+
apiConfig: apiConfig
|
|
33827
34134
|
})]
|
|
33828
34135
|
});
|
|
33829
34136
|
}
|
|
33830
34137
|
|
|
33831
34138
|
function TableFeatureClasses () {
|
|
34139
|
+
var _root$contentStore$bo, _root$contentStore$ri;
|
|
33832
34140
|
var _useTranslation = useTranslation(),
|
|
33833
34141
|
t = _useTranslation.t;
|
|
34142
|
+
var root = useStore();
|
|
33834
34143
|
var _useModule = useModule(['featureclasses']),
|
|
33835
34144
|
catalogId = _useModule.catalogId,
|
|
33836
34145
|
organizationId = _useModule.organizationId,
|
|
33837
34146
|
updateNavigation = _useModule.updateNavigation,
|
|
33838
34147
|
apiConfig = _useModule.apiConfig;
|
|
34148
|
+
var _React$useState = React.useState(),
|
|
34149
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
34150
|
+
selectedFeatureClass = _React$useState2[0],
|
|
34151
|
+
setSelectedFeatureClass = _React$useState2[1];
|
|
34152
|
+
useEffect(function () {
|
|
34153
|
+
if (selectedFeatureClass) {
|
|
34154
|
+
root.contentStore.bottomToolBar.tools = [{
|
|
34155
|
+
id: 'options',
|
|
34156
|
+
name: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
|
34157
|
+
element: /*#__PURE__*/jsx(Features, {
|
|
34158
|
+
organizationId: organizationId,
|
|
34159
|
+
catalogId: catalogId,
|
|
34160
|
+
apiConfig: apiConfig,
|
|
34161
|
+
featureClassId: selectedFeatureClass._id
|
|
34162
|
+
}),
|
|
34163
|
+
startWidth: 300,
|
|
34164
|
+
defaultPinned: false,
|
|
34165
|
+
defaultOpen: false
|
|
34166
|
+
}];
|
|
34167
|
+
} else {
|
|
34168
|
+
root.contentStore.bottomToolBar.tools = [];
|
|
34169
|
+
}
|
|
34170
|
+
}, [selectedFeatureClass]);
|
|
33839
34171
|
var applicationData = useMemo(function () {
|
|
33840
34172
|
return {
|
|
33841
34173
|
catalogId: catalogId,
|
|
@@ -33862,6 +34194,15 @@ function TableFeatureClasses () {
|
|
|
33862
34194
|
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33863
34195
|
gridId: 'crud-grid_featureclasses',
|
|
33864
34196
|
applicationData: applicationData,
|
|
34197
|
+
hooks: {
|
|
34198
|
+
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
34199
|
+
if (event.selection.length == 1) {
|
|
34200
|
+
setSelectedFeatureClass(event.selection[0].node.data);
|
|
34201
|
+
} else {
|
|
34202
|
+
setSelectedFeatureClass(null);
|
|
34203
|
+
}
|
|
34204
|
+
}
|
|
34205
|
+
},
|
|
33865
34206
|
configuration: {
|
|
33866
34207
|
type: 'dotnetSSM',
|
|
33867
34208
|
apiInterface: {
|
|
@@ -33932,8 +34273,13 @@ function TableFeatureClasses () {
|
|
|
33932
34273
|
lockVisible: true,
|
|
33933
34274
|
suppressColumnsToolPanel: true,
|
|
33934
34275
|
defaultValue: '${catalogId}'
|
|
34276
|
+
}, {
|
|
34277
|
+
field: 'featureRefs'
|
|
33935
34278
|
}]
|
|
33936
|
-
}
|
|
34279
|
+
},
|
|
34280
|
+
refSecondaryGrids: [(_root$contentStore$bo = root.contentStore.bottomToolBar.toolbarElement) !== null && _root$contentStore$bo !== void 0 ? _root$contentStore$bo : undefined, (_root$contentStore$ri = root.contentStore.rightToolBar.toolbarElement) !== null && _root$contentStore$ri !== void 0 ? _root$contentStore$ri : undefined].filter(function (element) {
|
|
34281
|
+
return element !== undefined;
|
|
34282
|
+
})
|
|
33937
34283
|
})]
|
|
33938
34284
|
});
|
|
33939
34285
|
}
|
|
@@ -34140,8 +34486,8 @@ function Content$1() {
|
|
|
34140
34486
|
});
|
|
34141
34487
|
}
|
|
34142
34488
|
|
|
34143
|
-
function ownKeys$
|
|
34144
|
-
function _objectSpread$
|
|
34489
|
+
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; }
|
|
34490
|
+
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; }
|
|
34145
34491
|
var ContentWrapper = function ContentWrapper(_ref) {
|
|
34146
34492
|
var id = _ref.id;
|
|
34147
34493
|
var root = useStore();
|
|
@@ -34214,14 +34560,13 @@ var ContentCard = observer(function (_ref3) {
|
|
|
34214
34560
|
var root = useStore();
|
|
34215
34561
|
var configuration = root.configurationStore.getConfiguration(configId);
|
|
34216
34562
|
return /*#__PURE__*/jsxs("div", {
|
|
34217
|
-
style: _objectSpread$
|
|
34563
|
+
style: _objectSpread$4(_objectSpread$4({}, !inGroup ? {
|
|
34218
34564
|
height: '100%'
|
|
34219
34565
|
} : {
|
|
34220
34566
|
maxHeight: '60vh'
|
|
34221
34567
|
}), {}, {
|
|
34222
34568
|
maxWidth: '100%',
|
|
34223
34569
|
padding: direction == 'horizontal' ? 0 : 16,
|
|
34224
|
-
backgroundColor: root.contentStore.theme == 'lightmode' ? '#fff' : '#000',
|
|
34225
34570
|
display: 'flex',
|
|
34226
34571
|
flexDirection: 'column'
|
|
34227
34572
|
}),
|
|
@@ -34261,7 +34606,7 @@ var Content = observer(ContentWrapper);
|
|
|
34261
34606
|
var layout = "layout-gqKsp";
|
|
34262
34607
|
var contentWrapper = "content-wrapper-mQSc0";
|
|
34263
34608
|
var detail = "detail-WeK8Q";
|
|
34264
|
-
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 height: 100%;\n}\n\n.detail-WeK8Q .ant-drawer-content-wrapper {\n max-width: 100%;\n}\n\n.darkmode .layout
|
|
34609
|
+
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 height: 100%;\n}\n\n.detail-WeK8Q .ant-drawer-content-wrapper {\n max-width: 100%;\n}\n\n.darkmode .ant-layout {\n background-color: rgb(20, 20, 20);\n}\n\n.lightmode .ant-layout {\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";
|
|
34265
34610
|
styleInject(css_248z$5);
|
|
34266
34611
|
|
|
34267
34612
|
function Detail(_ref) {
|
|
@@ -34754,15 +35099,28 @@ var MenuWrapper = function MenuWrapper() {
|
|
|
34754
35099
|
};
|
|
34755
35100
|
var Navigation = observer(MenuWrapper);
|
|
34756
35101
|
|
|
34757
|
-
var
|
|
34758
|
-
var
|
|
35102
|
+
var container$1 = "container-BucHG";
|
|
35103
|
+
var right = "right--XETU";
|
|
35104
|
+
var unpinnedRight = "unpinned-right-tbnNb";
|
|
35105
|
+
var draghandle = "draghandle-f5b0N";
|
|
35106
|
+
var bottom = "bottom-cqyfS";
|
|
35107
|
+
var midHandle = "mid-handle--qh50";
|
|
35108
|
+
var toolsSelector = "tools-selector-BHV3Z";
|
|
35109
|
+
var toolItem = "tool-item-KyKgQ";
|
|
35110
|
+
var sel = "sel-iUm8X";
|
|
35111
|
+
var button = "button-K-0KR";
|
|
35112
|
+
var css_248z$3 = ".container-BucHG {\n height: 100%;\n width: 100%;\n position: relative;\n z-index: 1001;\n overflow: auto;\n}\n\n.right--XETU .container-BucHG {\n z-index: 1003;\n}\n\n.unpinned-right-tbnNb.container-BucHG {\n right: 37px;\n position: absolute;\n}\n\n.draghandle-f5b0N {\n position: absolute;\n top: 0px;\n background-color: rgba(128, 128, 128, 0.3);\n z-index: 1002;\n}\n\n.right--XETU .draghandle-f5b0N {\n height: 100%;\n width: 2px;\n left: -1px;\n cursor: ew-resize;\n z-index: 1004;\n}\n\n.bottom-cqyfS .draghandle-f5b0N {\n height: 2px;\n width: 100%;\n cursor: ns-resize;\n}\n\n.mid-handle--qh50 {\n position: absolute;\n background-color: rgba(128, 128, 128, 0.3);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.right--XETU .mid-handle--qh50 {\n width: 5px;\n height: 32px;\n border-left: 2px solid grey;\n border-right: 2px solid grey;\n}\n\n.bottom-cqyfS .mid-handle--qh50 {\n height: 5px;\n width: 32px;\n border-top: 2px solid gray;\n border-bottom: 2px solid gray;\n}\n\n.tools-selector-BHV3Z {\n z-index: 1000;\n display: flex;\n position: relative;\n gap: 16px;\n align-items: center;\n background-color: #f5f5f5;\n}\n\n.darkmode .tools-selector-BHV3Z {\n background-color: #001529;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.right--XETU .tools-selector-BHV3Z {\n width: 36px;\n height: 100%;\n padding-top: 16px;\n flex-direction: column;\n}\n\n.bottom-cqyfS .tools-selector-BHV3Z {\n width: 100%;\n height: 36px;\n padding-top: 0;\n flex-direction: row;\n}\n\n.tool-item-KyKgQ {\n padding: 10px;\n cursor: pointer;\n position: relative;\n}\n\n.right--XETU .tool-item-KyKgQ {\n writing-mode: vertical-lr;\n text-orientation: mixed;\n}\n\n.tool-item-KyKgQ::after {\n content: '';\n position: absolute;\n background-color: #0088ff;\n transition: all ease-in-out 0.2s;\n}\n\n.right--XETU .tool-item-KyKgQ::after {\n width: 3px;\n height: 0px;\n left: 1px;\n bottom: 50%;\n}\n\n.right--XETU .tool-item-KyKgQ:hover::after,\n.right--XETU .sel-iUm8X::after {\n height: 100%;\n bottom: 0;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ::after {\n width: 0px;\n height: 3px;\n bottom: 1px;\n left: 50%;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ:hover::after,\n.bottom-cqyfS .sel-iUm8X::after {\n width: 100%;\n left: 0;\n}\n\n.button-K-0KR {\n width: 40px;\n justify-content: center;\n}\n";
|
|
34759
35113
|
styleInject(css_248z$3);
|
|
34760
35114
|
|
|
35115
|
+
var wrapper$1 = "wrapper-Q13-g";
|
|
35116
|
+
var confContainer = "conf-container-Sm5LL";
|
|
35117
|
+
var css_248z$2 = ".wrapper-Q13-g {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.conf-container-Sm5LL {\n padding-top: 10px;\n background: white;\n color: black;\n height: calc(100% - 40px);\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n}\n\n.darkmode .conf-container-Sm5LL {\n border-color: #424242;\n}\n";
|
|
35118
|
+
styleInject(css_248z$2);
|
|
35119
|
+
|
|
34761
35120
|
var wrapper = "wrapper-IcNC5";
|
|
34762
35121
|
var select = "select-jVMz-";
|
|
34763
|
-
var
|
|
34764
|
-
|
|
34765
|
-
styleInject(css_248z$2);
|
|
35122
|
+
var css_248z$1 = ".wrapper-IcNC5 {\n display: flex;\n gap: 16px;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.select-jVMz- {\n z-index: 1000;\n flex: 1;\n}\n";
|
|
35123
|
+
styleInject(css_248z$1);
|
|
34766
35124
|
|
|
34767
35125
|
var ArticleSelection = function ArticleSelection(_ref) {
|
|
34768
35126
|
var _ref$state = _ref.state,
|
|
@@ -34770,26 +35128,9 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
|
34770
35128
|
articleCodex = _ref$state.articleCodex,
|
|
34771
35129
|
setArticleCodex = _ref$state.setArticleCodex,
|
|
34772
35130
|
setDoReset = _ref$state.setDoReset;
|
|
34773
|
-
var
|
|
34774
|
-
|
|
34775
|
-
|
|
34776
|
-
var _useState = useState([]),
|
|
34777
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
34778
|
-
groupedArticles = _useState2[0],
|
|
34779
|
-
setGroupedArticles = _useState2[1];
|
|
34780
|
-
var root = useStore();
|
|
34781
|
-
var formatGroupLabel = function formatGroupLabel(data) {
|
|
34782
|
-
return /*#__PURE__*/jsxs("div", {
|
|
34783
|
-
style: groupStyles,
|
|
34784
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
34785
|
-
children: data.label
|
|
34786
|
-
}), /*#__PURE__*/jsx("span", {
|
|
34787
|
-
style: groupBadgeStyles,
|
|
34788
|
-
children: data.options.length
|
|
34789
|
-
})]
|
|
34790
|
-
});
|
|
34791
|
-
};
|
|
34792
|
-
useEffect(function () {
|
|
35131
|
+
var _useTranslation = useTranslation(),
|
|
35132
|
+
t = _useTranslation.t;
|
|
35133
|
+
var groupedArticles = useMemo(function () {
|
|
34793
35134
|
var groups = [];
|
|
34794
35135
|
var _loop = function _loop() {
|
|
34795
35136
|
var article = articleList[i];
|
|
@@ -34801,6 +35142,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
|
34801
35142
|
group.options.push(article);
|
|
34802
35143
|
} else {
|
|
34803
35144
|
groups.push({
|
|
35145
|
+
title: article.groupName,
|
|
34804
35146
|
label: article.groupName,
|
|
34805
35147
|
options: [article]
|
|
34806
35148
|
});
|
|
@@ -34809,60 +35151,31 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
|
34809
35151
|
for (var i = 0; i < articleList.length; i++) {
|
|
34810
35152
|
_loop();
|
|
34811
35153
|
}
|
|
34812
|
-
|
|
35154
|
+
return groups;
|
|
34813
35155
|
}, [articleList]);
|
|
34814
35156
|
return /*#__PURE__*/jsxs("div", {
|
|
34815
35157
|
className: wrapper,
|
|
34816
|
-
children: [
|
|
34817
|
-
|
|
34818
|
-
|
|
34819
|
-
},
|
|
34820
|
-
className: button
|
|
34821
|
-
}), root.contentStore.toolPinned && /*#__PURE__*/jsx(PushpinFilled, {
|
|
34822
|
-
onClick: function onClick() {
|
|
34823
|
-
return root.contentStore.toolPinned = !root.contentStore.toolPinned;
|
|
34824
|
-
},
|
|
34825
|
-
className: button
|
|
34826
|
-
}), /*#__PURE__*/jsx(Select$2, {
|
|
34827
|
-
value: articleList.find(function (a) {
|
|
34828
|
-
return a.value == articleCodex;
|
|
34829
|
-
}),
|
|
35158
|
+
children: [/*#__PURE__*/jsx(Select$1, {
|
|
35159
|
+
placeholder: t('backoffice.configurator.article.placeholder'),
|
|
35160
|
+
value: articleCodex,
|
|
34830
35161
|
options: groupedArticles,
|
|
34831
|
-
|
|
34832
|
-
onChange: onChange,
|
|
35162
|
+
onChange: setArticleCodex,
|
|
34833
35163
|
className: select
|
|
34834
|
-
}), /*#__PURE__*/jsx(
|
|
35164
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
35165
|
+
icon: /*#__PURE__*/jsx(ReloadOutlined$1, {}),
|
|
34835
35166
|
onClick: function onClick() {
|
|
34836
35167
|
return setDoReset(true);
|
|
34837
|
-
}
|
|
34838
|
-
className: button
|
|
35168
|
+
}
|
|
34839
35169
|
})]
|
|
34840
35170
|
});
|
|
34841
35171
|
};
|
|
34842
|
-
var groupStyles = {
|
|
34843
|
-
display: 'flex',
|
|
34844
|
-
alignItems: 'center',
|
|
34845
|
-
justifyContent: 'space-between'
|
|
34846
|
-
};
|
|
34847
|
-
var groupBadgeStyles = {
|
|
34848
|
-
backgroundColor: '#EBECF0',
|
|
34849
|
-
borderRadius: '2em',
|
|
34850
|
-
color: '#172B4D',
|
|
34851
|
-
display: 'inline-block',
|
|
34852
|
-
fontSize: 12,
|
|
34853
|
-
fontWeight: 'normal',
|
|
34854
|
-
lineHeight: '1',
|
|
34855
|
-
minWidth: 1,
|
|
34856
|
-
padding: '0.16em 0.5em',
|
|
34857
|
-
textAlign: 'center'
|
|
34858
|
-
};
|
|
34859
35172
|
var ArticleSelection$1 = observer(ArticleSelection);
|
|
34860
35173
|
|
|
34861
|
-
function ownKeys$
|
|
34862
|
-
function _objectSpread$
|
|
35174
|
+
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; }
|
|
35175
|
+
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; }
|
|
34863
35176
|
function useWysiwyg$1(_ref) {
|
|
34864
35177
|
var tool = _ref.tool,
|
|
34865
|
-
|
|
35178
|
+
toolbar = _ref.toolbar;
|
|
34866
35179
|
var _useDivaCore = useDivaCore(),
|
|
34867
35180
|
_useDivaCore$actions = _useDivaCore.actions,
|
|
34868
35181
|
subscribeEvents = _useDivaCore$actions.subscribeEvents,
|
|
@@ -34893,8 +35206,8 @@ function useWysiwyg$1(_ref) {
|
|
|
34893
35206
|
doNavigate = _useState12[0],
|
|
34894
35207
|
setDoNavigate = _useState12[1];
|
|
34895
35208
|
useEffect(function () {
|
|
34896
|
-
if (
|
|
34897
|
-
}, [
|
|
35209
|
+
if (!toolbar.hidden) setDoReset(true);
|
|
35210
|
+
}, [toolbar.hidden]);
|
|
34898
35211
|
var loadMask = /*#__PURE__*/function () {
|
|
34899
35212
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(id) {
|
|
34900
35213
|
var jwt, d;
|
|
@@ -34905,7 +35218,7 @@ function useWysiwyg$1(_ref) {
|
|
|
34905
35218
|
_context.next = 3;
|
|
34906
35219
|
return fetch(root.configurationStore.apiConfig.enricherService + '/packages/' + id + '/mask', {
|
|
34907
35220
|
method: 'GET',
|
|
34908
|
-
headers: _objectSpread$
|
|
35221
|
+
headers: _objectSpread$3({}, jwt ? {
|
|
34909
35222
|
Authorization: 'Bearer ' + jwt
|
|
34910
35223
|
} : {})
|
|
34911
35224
|
}).then(function (r) {
|
|
@@ -35112,18 +35425,17 @@ var FallbackComponent = function FallbackComponent(_ref2) {
|
|
|
35112
35425
|
});
|
|
35113
35426
|
};
|
|
35114
35427
|
|
|
35115
|
-
function ownKeys$
|
|
35116
|
-
function _objectSpread$
|
|
35428
|
+
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; }
|
|
35429
|
+
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; }
|
|
35117
35430
|
var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
35118
35431
|
var _state$articleCodex;
|
|
35119
35432
|
var tool = _ref.tool,
|
|
35120
|
-
|
|
35433
|
+
toolbar = _ref.toolbar;
|
|
35121
35434
|
var _useDivaCore = useDivaCore(),
|
|
35122
35435
|
organizationId = _useDivaCore.state.organization._id;
|
|
35123
|
-
var root = useStore();
|
|
35124
35436
|
var state = useWysiwyg$1({
|
|
35125
35437
|
tool: tool,
|
|
35126
|
-
|
|
35438
|
+
toolbar: toolbar
|
|
35127
35439
|
});
|
|
35128
35440
|
var _useTranslation = useTranslation(),
|
|
35129
35441
|
t = _useTranslation.t;
|
|
@@ -35140,12 +35452,10 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
|
35140
35452
|
state: state
|
|
35141
35453
|
}), state.pack && !state.doReset && /*#__PURE__*/jsx("div", {
|
|
35142
35454
|
hidden: !state.articleCodex,
|
|
35143
|
-
|
|
35144
|
-
height: 'calc(100% - 71px)'
|
|
35145
|
-
},
|
|
35455
|
+
className: confContainer,
|
|
35146
35456
|
children: /*#__PURE__*/jsx(WebPlannerReact, {
|
|
35147
35457
|
settings: state.settings,
|
|
35148
|
-
parameters: _objectSpread$
|
|
35458
|
+
parameters: _objectSpread$2(_objectSpread$2({
|
|
35149
35459
|
articleCodexes: (_state$articleCodex = state.articleCodex) !== null && _state$articleCodex !== void 0 ? _state$articleCodex : '',
|
|
35150
35460
|
variantValues: '',
|
|
35151
35461
|
resetArticle: '',
|
|
@@ -35164,7 +35474,9 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
|
35164
35474
|
internal: {
|
|
35165
35475
|
catalogMask: state.pack,
|
|
35166
35476
|
actions: {
|
|
35167
|
-
toggleLoading:
|
|
35477
|
+
toggleLoading: function toggleLoading(subId, _, toggle) {
|
|
35478
|
+
return toolbar.toggleLoading(tool.id, subId, toggle);
|
|
35479
|
+
}
|
|
35168
35480
|
}
|
|
35169
35481
|
},
|
|
35170
35482
|
isVisible: !!state.articleCodex
|
|
@@ -35175,8 +35487,8 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
|
35175
35487
|
};
|
|
35176
35488
|
|
|
35177
35489
|
function useWysiwyg(_ref) {
|
|
35178
|
-
var tool = _ref.tool
|
|
35179
|
-
_ref.
|
|
35490
|
+
var tool = _ref.tool,
|
|
35491
|
+
toolbar = _ref.toolbar;
|
|
35180
35492
|
tool.parameters;
|
|
35181
35493
|
_objectDestructuringEmpty(useDivaCore());
|
|
35182
35494
|
var root = useStore();
|
|
@@ -35186,7 +35498,7 @@ function useWysiwyg(_ref) {
|
|
|
35186
35498
|
setData = _useState2[1];
|
|
35187
35499
|
useEffect(function () {
|
|
35188
35500
|
var _tool$parameters$data, _tool$parameters, _root$resetErrorBound;
|
|
35189
|
-
var newData = _resoveLanguage(toJS((_tool$parameters$data = (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 || (_tool$parameters = _tool$parameters.data) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.content) !== null && _tool$parameters$data !== void 0 ? _tool$parameters$data : []),
|
|
35501
|
+
var newData = _resoveLanguage(toJS((_tool$parameters$data = (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 || (_tool$parameters = _tool$parameters.data) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.content) !== null && _tool$parameters$data !== void 0 ? _tool$parameters$data : []), toolbar.currentLanguage);
|
|
35190
35502
|
setData(newData);
|
|
35191
35503
|
(_root$resetErrorBound = root.resetErrorBoundary) === null || _root$resetErrorBound === void 0 || _root$resetErrorBound.call(root);
|
|
35192
35504
|
}, [tool.parameters, tool.parameters.data]);
|
|
@@ -35227,99 +35539,52 @@ var getTranslation = function getTranslation(text, lang) {
|
|
|
35227
35539
|
}
|
|
35228
35540
|
};
|
|
35229
35541
|
|
|
35542
|
+
var container = "container-Xbv0B";
|
|
35543
|
+
var css_248z = ".container-Xbv0B {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.darkmode .container-Xbv0B {\n border-color: #424242;\n}\n";
|
|
35544
|
+
styleInject(css_248z);
|
|
35545
|
+
|
|
35230
35546
|
var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
|
35231
35547
|
var tool = _ref.tool,
|
|
35232
|
-
|
|
35548
|
+
toolbar = _ref.toolbar;
|
|
35233
35549
|
var _useWysiwygContentIte = useWysiwyg({
|
|
35234
35550
|
tool: tool,
|
|
35235
|
-
|
|
35551
|
+
toolbar: toolbar
|
|
35236
35552
|
}),
|
|
35237
35553
|
data = _useWysiwygContentIte.data;
|
|
35238
35554
|
return /*#__PURE__*/jsx(ErrorBoundary, {
|
|
35239
35555
|
errorCode: "BACKO_0004",
|
|
35240
35556
|
addToErrorLog: data,
|
|
35241
|
-
children: /*#__PURE__*/
|
|
35242
|
-
|
|
35243
|
-
|
|
35244
|
-
flexDirection: 'column',
|
|
35245
|
-
height: '100%'
|
|
35246
|
-
},
|
|
35247
|
-
children: [/*#__PURE__*/jsx(ContentItemComponent, {
|
|
35557
|
+
children: /*#__PURE__*/jsx("div", {
|
|
35558
|
+
className: container,
|
|
35559
|
+
children: /*#__PURE__*/jsx(ContentItemComponent, {
|
|
35248
35560
|
settings: {
|
|
35249
35561
|
contentItems: data !== null && data !== void 0 ? data : []
|
|
35250
35562
|
}
|
|
35251
|
-
})
|
|
35563
|
+
})
|
|
35252
35564
|
})
|
|
35253
35565
|
});
|
|
35254
35566
|
};
|
|
35255
35567
|
|
|
35256
|
-
var toolsSelector = "tools-selector-BHV3Z";
|
|
35257
|
-
var container = "container-BucHG";
|
|
35258
|
-
var pinned = "pinned-vk2AT";
|
|
35259
|
-
var draghandle = "draghandle-f5b0N";
|
|
35260
|
-
var midHandle = "mid-handle--qh50";
|
|
35261
|
-
var toolItem = "tool-item-KyKgQ";
|
|
35262
|
-
var sel = "sel-iUm8X";
|
|
35263
|
-
var css_248z$1 = ".wrapper-njnwX {\n position: absolute;\n top: 0px;\n}\n.tools-selector-BHV3Z {\n z-index: 2000;\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: 10001;\n overflow: auto;\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";
|
|
35264
|
-
styleInject(css_248z$1);
|
|
35265
|
-
|
|
35266
|
-
var overlay = "overlay-Dr5pn";
|
|
35267
|
-
var loading = "loading-Ed3rZ";
|
|
35268
|
-
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";
|
|
35269
|
-
styleInject(css_248z);
|
|
35270
|
-
|
|
35271
|
-
function Spinner() {
|
|
35272
|
-
var _useState = useState(false),
|
|
35273
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
35274
|
-
showSpinner = _useState2[0],
|
|
35275
|
-
setShowSpinner = _useState2[1];
|
|
35276
|
-
var root = useStore();
|
|
35277
|
-
useEffect(function () {
|
|
35278
|
-
if (root.contentStore.isToolLoading) {
|
|
35279
|
-
setShowSpinner(true);
|
|
35280
|
-
} else if (!root.contentStore.isToolLoading) {
|
|
35281
|
-
setShowSpinner(false);
|
|
35282
|
-
}
|
|
35283
|
-
}, [root.contentStore.isToolLoading]);
|
|
35284
|
-
if (!showSpinner) {
|
|
35285
|
-
return /*#__PURE__*/jsx(Fragment, {});
|
|
35286
|
-
}
|
|
35287
|
-
return /*#__PURE__*/jsx("div", {
|
|
35288
|
-
className: overlay,
|
|
35289
|
-
id: "diva-loader",
|
|
35290
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
35291
|
-
className: loading,
|
|
35292
|
-
children: [/*#__PURE__*/jsx("div", {}), /*#__PURE__*/jsx("div", {}), /*#__PURE__*/jsx("div", {}), /*#__PURE__*/jsx("div", {})]
|
|
35293
|
-
})
|
|
35294
|
-
});
|
|
35295
|
-
}
|
|
35296
|
-
var Spinner$1 = observer(Spinner);
|
|
35297
|
-
|
|
35298
|
-
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; }
|
|
35299
|
-
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; }
|
|
35300
35568
|
var Toolbar = function Toolbar(_ref) {
|
|
35301
|
-
|
|
35569
|
+
var position = _ref.position;
|
|
35302
35570
|
var root = useStore();
|
|
35303
|
-
var
|
|
35304
|
-
|
|
35305
|
-
|
|
35306
|
-
|
|
35307
|
-
var _useState3 = useState(false),
|
|
35308
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
35309
|
-
mouseDown = _useState4[0],
|
|
35310
|
-
setMouseDown = _useState4[1];
|
|
35311
|
-
var handler = function handler(mouseDownEvent) {
|
|
35312
|
-
var startWidth = width;
|
|
35571
|
+
var toolBar = position === 'bottom' ? root.contentStore.bottomToolBar : root.contentStore.rightToolBar;
|
|
35572
|
+
var onMouseDown = function onMouseDown(mouseDownEvent) {
|
|
35573
|
+
mouseDownEvent.preventDefault();
|
|
35574
|
+
var startWidth = toolBar.width;
|
|
35313
35575
|
var startPosition = {
|
|
35314
35576
|
x: mouseDownEvent.pageX,
|
|
35315
35577
|
y: mouseDownEvent.pageY
|
|
35316
35578
|
};
|
|
35317
|
-
setMouseDown(true);
|
|
35318
35579
|
function onMouseMove(mouseMoveEvent) {
|
|
35319
|
-
|
|
35580
|
+
mouseMoveEvent.preventDefault();
|
|
35581
|
+
if (position === 'bottom') {
|
|
35582
|
+
toolBar.width = startWidth + startPosition.y - mouseMoveEvent.pageY;
|
|
35583
|
+
} else {
|
|
35584
|
+
toolBar.width = startWidth + startPosition.x - mouseMoveEvent.pageX;
|
|
35585
|
+
}
|
|
35320
35586
|
}
|
|
35321
35587
|
function onMouseUp() {
|
|
35322
|
-
setMouseDown(false);
|
|
35323
35588
|
document.body.removeEventListener('mousemove', onMouseMove);
|
|
35324
35589
|
}
|
|
35325
35590
|
document.body.addEventListener('mousemove', onMouseMove);
|
|
@@ -35327,91 +35592,115 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
35327
35592
|
once: true
|
|
35328
35593
|
});
|
|
35329
35594
|
};
|
|
35330
|
-
|
|
35331
|
-
|
|
35332
|
-
return
|
|
35333
|
-
}
|
|
35334
|
-
|
|
35335
|
-
|
|
35336
|
-
|
|
35337
|
-
|
|
35338
|
-
|
|
35339
|
-
|
|
35340
|
-
}
|
|
35341
|
-
|
|
35342
|
-
|
|
35343
|
-
|
|
35595
|
+
return /*#__PURE__*/jsxs("div", {
|
|
35596
|
+
ref: function ref(el) {
|
|
35597
|
+
return toolBar.toolbarElement = el;
|
|
35598
|
+
},
|
|
35599
|
+
className: classnames(_defineProperty(_defineProperty({}, right, position === 'right'), bottom, position === 'bottom')),
|
|
35600
|
+
style: {
|
|
35601
|
+
position: 'relative',
|
|
35602
|
+
display: toolBar.tools.length === 0 ? 'none' : 'flex',
|
|
35603
|
+
flexDirection: position === 'right' ? 'row' : 'column-reverse',
|
|
35604
|
+
height: !toolBar.pinned && position === 'bottom' ? 5 : undefined
|
|
35605
|
+
},
|
|
35606
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
35607
|
+
className: draghandle,
|
|
35608
|
+
onMouseDown: onMouseDown,
|
|
35609
|
+
style: {
|
|
35610
|
+
left: position === 'right' && !toolBar.pinned ? toolBar.width * -1 - 1 : undefined,
|
|
35611
|
+
top: position === 'bottom' && !toolBar.pinned ? toolBar.width * -1 - 31 : undefined
|
|
35612
|
+
},
|
|
35613
|
+
children: /*#__PURE__*/jsx("div", {
|
|
35614
|
+
className: midHandle
|
|
35615
|
+
})
|
|
35616
|
+
}), !toolBar.hidden && toolBar.currentOpenTool && /*#__PURE__*/jsx("div", {
|
|
35617
|
+
className: classnames(container$1, _defineProperty({}, unpinnedRight, !toolBar.pinned && position === 'right')),
|
|
35618
|
+
hidden: toolBar.hidden,
|
|
35619
|
+
style: {
|
|
35620
|
+
width: position === 'right' ? toolBar.width : undefined,
|
|
35621
|
+
minWidth: position === 'right' ? toolBar.width : undefined,
|
|
35622
|
+
height: position === 'bottom' ? toolBar.width : undefined,
|
|
35623
|
+
minHeight: position === 'bottom' ? toolBar.width : undefined
|
|
35624
|
+
},
|
|
35625
|
+
children: /*#__PURE__*/jsx(ToolElement, {
|
|
35626
|
+
tool: toolBar.currentOpenTool,
|
|
35627
|
+
toolbar: toolBar,
|
|
35628
|
+
loading: toolBar.isLoading(toolBar.currentOpenTool.id)
|
|
35629
|
+
})
|
|
35630
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
35631
|
+
className: classnames(toolsSelector),
|
|
35632
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
35633
|
+
children: [!toolBar.pinned && /*#__PURE__*/jsx(PushpinOutlined, {
|
|
35634
|
+
onClick: function onClick() {
|
|
35635
|
+
return toolBar.pinned = !toolBar.pinned;
|
|
35636
|
+
},
|
|
35637
|
+
className: button
|
|
35638
|
+
}), toolBar.pinned && /*#__PURE__*/jsx(PushpinFilled, {
|
|
35639
|
+
onClick: function onClick() {
|
|
35640
|
+
return toolBar.pinned = !toolBar.pinned;
|
|
35641
|
+
},
|
|
35642
|
+
className: button,
|
|
35643
|
+
rotate: 315
|
|
35644
|
+
})]
|
|
35645
|
+
}), toolBar.tools.map(function (t) {
|
|
35646
|
+
var _toolBar$currentOpenT;
|
|
35647
|
+
return /*#__PURE__*/jsx("div", {
|
|
35648
|
+
className: classnames(toolItem, _defineProperty({}, sel, t.id === ((_toolBar$currentOpenT = toolBar.currentOpenTool) === null || _toolBar$currentOpenT === void 0 ? void 0 : _toolBar$currentOpenT.id))),
|
|
35649
|
+
onClick: function onClick() {
|
|
35650
|
+
var _toolBar$currentOpenT2;
|
|
35651
|
+
if (((_toolBar$currentOpenT2 = toolBar.currentOpenTool) === null || _toolBar$currentOpenT2 === void 0 ? void 0 : _toolBar$currentOpenT2.id) != t.id) {
|
|
35652
|
+
toolBar.openTool(t.id);
|
|
35653
|
+
toolBar.hidden = false;
|
|
35654
|
+
} else {
|
|
35655
|
+
toolBar.hidden = !toolBar.hidden;
|
|
35656
|
+
}
|
|
35657
|
+
},
|
|
35658
|
+
children: t.name
|
|
35659
|
+
}, t.id);
|
|
35660
|
+
})]
|
|
35661
|
+
})]
|
|
35344
35662
|
});
|
|
35345
|
-
|
|
35346
|
-
|
|
35663
|
+
};
|
|
35664
|
+
var Toolbar$1 = observer(Toolbar);
|
|
35665
|
+
function ToolElement(_ref2) {
|
|
35666
|
+
var _tool$element;
|
|
35667
|
+
var tool = _ref2.tool,
|
|
35668
|
+
toolbar = _ref2.toolbar,
|
|
35669
|
+
loading = _ref2.loading;
|
|
35670
|
+
var Tool = (_tool$element = tool.element) !== null && _tool$element !== void 0 ? _tool$element : /*#__PURE__*/jsx(Fragment, {});
|
|
35671
|
+
switch (tool.type) {
|
|
35347
35672
|
case 'Configurator':
|
|
35348
|
-
|
|
35673
|
+
Tool = /*#__PURE__*/jsx(Wsyiwyg, {
|
|
35349
35674
|
tool: tool,
|
|
35350
|
-
|
|
35675
|
+
toolbar: toolbar
|
|
35351
35676
|
});
|
|
35352
35677
|
break;
|
|
35353
35678
|
case 'ContentItem':
|
|
35354
|
-
|
|
35679
|
+
Tool = /*#__PURE__*/jsx(WsyiwygContentItem, {
|
|
35355
35680
|
tool: tool,
|
|
35356
|
-
|
|
35681
|
+
toolbar: toolbar
|
|
35357
35682
|
});
|
|
35358
35683
|
break;
|
|
35359
35684
|
}
|
|
35360
|
-
|
|
35361
|
-
|
|
35362
|
-
|
|
35363
|
-
|
|
35364
|
-
|
|
35365
|
-
|
|
35366
|
-
|
|
35367
|
-
|
|
35368
|
-
|
|
35369
|
-
|
|
35370
|
-
|
|
35371
|
-
|
|
35372
|
-
|
|
35373
|
-
|
|
35374
|
-
|
|
35375
|
-
}
|
|
35376
|
-
}, [root.contentStore.tools]);
|
|
35377
|
-
if (root.contentStore.tools.length === 0) return /*#__PURE__*/jsx(Fragment, {});
|
|
35378
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
35379
|
-
children: [ToolElement && /*#__PURE__*/jsxs("div", {
|
|
35380
|
-
className: classnames(container, root.contentStore.toolPinned ? pinned : undefined),
|
|
35381
|
-
hidden: root.contentStore.hideTools,
|
|
35382
|
-
style: _objectSpread$2({
|
|
35383
|
-
width: width
|
|
35384
|
-
}, tool !== null && tool !== void 0 && tool.offsetRight ? {
|
|
35385
|
-
right: tool.offsetRight
|
|
35386
|
-
} : {}),
|
|
35387
|
-
children: [/*#__PURE__*/jsx(Spinner$1, {}), ToolElement, /*#__PURE__*/jsx("div", {
|
|
35388
|
-
className: draghandle,
|
|
35389
|
-
onMouseDown: handler,
|
|
35390
|
-
children: /*#__PURE__*/jsx("div", {
|
|
35391
|
-
className: midHandle
|
|
35392
|
-
})
|
|
35393
|
-
})]
|
|
35394
|
-
}), /*#__PURE__*/jsx("div", {
|
|
35395
|
-
className: toolsSelector,
|
|
35396
|
-
children: root.contentStore.tools.map(function (t) {
|
|
35397
|
-
return /*#__PURE__*/jsx("div", {
|
|
35398
|
-
className: classnames(toolItem, t.id === root.contentStore.openedToolId ? sel : undefined),
|
|
35399
|
-
onClick: function onClick() {
|
|
35400
|
-
if (root.contentStore.openedToolId != t.id) {
|
|
35401
|
-
root.contentStore.openedToolId = t.id;
|
|
35402
|
-
root.contentStore.toolPinned = !!t.defaultPinned;
|
|
35403
|
-
root.contentStore.hideTools = false;
|
|
35404
|
-
} else {
|
|
35405
|
-
root.contentStore.hideTools = !root.contentStore.hideTools;
|
|
35406
|
-
}
|
|
35407
|
-
},
|
|
35408
|
-
children: t.name
|
|
35409
|
-
}, t.id);
|
|
35685
|
+
return /*#__PURE__*/jsx(Layout$1, {
|
|
35686
|
+
style: {
|
|
35687
|
+
height: '100%',
|
|
35688
|
+
width: '100%'
|
|
35689
|
+
},
|
|
35690
|
+
children: /*#__PURE__*/jsx(Spin$1, {
|
|
35691
|
+
spinning: loading,
|
|
35692
|
+
size: "large",
|
|
35693
|
+
children: /*#__PURE__*/jsx(Layout$1.Content, {
|
|
35694
|
+
style: {
|
|
35695
|
+
height: '100%',
|
|
35696
|
+
width: '100%',
|
|
35697
|
+
padding: 32
|
|
35698
|
+
},
|
|
35699
|
+
children: Tool
|
|
35410
35700
|
})
|
|
35411
|
-
})
|
|
35701
|
+
})
|
|
35412
35702
|
});
|
|
35413
|
-
}
|
|
35414
|
-
var Toolbar$1 = observer(Toolbar);
|
|
35703
|
+
}
|
|
35415
35704
|
|
|
35416
35705
|
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; }
|
|
35417
35706
|
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; }
|
|
@@ -35477,10 +35766,10 @@ var MainLayout = function MainLayout() {
|
|
|
35477
35766
|
position: 'relative',
|
|
35478
35767
|
overflowX: 'hidden'
|
|
35479
35768
|
},
|
|
35480
|
-
children: [/*#__PURE__*/jsx(Navigation, {}), /*#__PURE__*/
|
|
35769
|
+
children: [/*#__PURE__*/jsx(Navigation, {}), /*#__PURE__*/jsxs(Layout, {
|
|
35481
35770
|
className: layout,
|
|
35482
35771
|
ref: containerRef,
|
|
35483
|
-
children: /*#__PURE__*/jsxs(ErrorBoundary, {
|
|
35772
|
+
children: [/*#__PURE__*/jsxs(ErrorBoundary, {
|
|
35484
35773
|
children: [/*#__PURE__*/jsx("div", {
|
|
35485
35774
|
className: contentWrapper,
|
|
35486
35775
|
children: /*#__PURE__*/jsx(Router$1, {})
|
|
@@ -35490,8 +35779,12 @@ var MainLayout = function MainLayout() {
|
|
|
35490
35779
|
container: containerRef,
|
|
35491
35780
|
left: true
|
|
35492
35781
|
})]
|
|
35493
|
-
})
|
|
35494
|
-
|
|
35782
|
+
}), /*#__PURE__*/jsx(Toolbar$1, {
|
|
35783
|
+
position: "bottom"
|
|
35784
|
+
})]
|
|
35785
|
+
}), /*#__PURE__*/jsx(Toolbar$1, {
|
|
35786
|
+
position: "right"
|
|
35787
|
+
}), /*#__PURE__*/jsx(Modal$1, {})]
|
|
35495
35788
|
})
|
|
35496
35789
|
});
|
|
35497
35790
|
};
|