jamespot-front-business 1.1.70 → 1.1.71
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/dist/cjs.js +16 -3
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +16 -3
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +53 -0
- package/package.json +4 -4
package/dist/esm.js
CHANGED
|
@@ -2458,6 +2458,7 @@ const initialState$3 = {
|
|
|
2458
2458
|
widgetObject: {},
|
|
2459
2459
|
widgetObjectRights: {},
|
|
2460
2460
|
widgetAuthor: {},
|
|
2461
|
+
flushedWidgets: [],
|
|
2461
2462
|
rtObjectStack: [],
|
|
2462
2463
|
};
|
|
2463
2464
|
const IS_EMPTY = [
|
|
@@ -2518,8 +2519,10 @@ const widgetsSlice = createSlice({
|
|
|
2518
2519
|
const { uniqid } = action.payload;
|
|
2519
2520
|
delete state.ids[uniqid];
|
|
2520
2521
|
delete state.states[uniqid];
|
|
2522
|
+
state.flushedWidgets.push(uniqid);
|
|
2521
2523
|
},
|
|
2522
2524
|
flushAllWidget: (state) => {
|
|
2525
|
+
state.flushedWidgets = [...state.flushedWidgets, ...Object.keys(state.ids)];
|
|
2523
2526
|
state.ids = {};
|
|
2524
2527
|
state.states = {};
|
|
2525
2528
|
},
|
|
@@ -2639,6 +2642,7 @@ const getWidgetRTHandlers = function (dispatch, uniqid) {
|
|
|
2639
2642
|
const selectToken = (state) => state.widgets.token;
|
|
2640
2643
|
const selectModal = (state) => state.widgets.modal;
|
|
2641
2644
|
const selectWidgets = (state) => state.widgets.ids;
|
|
2645
|
+
const selectFlushedWidgets = (state) => state.widgets.flushedWidgets;
|
|
2642
2646
|
const selectWidgetState = (state, uniqid) => { var _a; return (_a = state.widgets.states[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
2643
2647
|
const selectWidget = (state, uniqid) => { var _a; return (_a = state.widgets.ids[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
2644
2648
|
const selectWidgetObject = (state, uniqid) => { var _a; return (_a = state.widgets.widgetObject[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
@@ -2667,6 +2671,7 @@ const Widget = {
|
|
|
2667
2671
|
selectWidgetAuthor,
|
|
2668
2672
|
selectWidgetObjectRights,
|
|
2669
2673
|
selectAllWidgetRTObject,
|
|
2674
|
+
selectFlushedWidgets,
|
|
2670
2675
|
},
|
|
2671
2676
|
};
|
|
2672
2677
|
|
|
@@ -4015,7 +4020,9 @@ function renderAppView(viewSolr, listView) {
|
|
|
4015
4020
|
if (viewSolr === STUDIO_VIEW.SOLR) {
|
|
4016
4021
|
let xml = '<AppView>solr</AppView>';
|
|
4017
4022
|
const formItemIdInList = [];
|
|
4018
|
-
Object.entries(listView)
|
|
4023
|
+
Object.entries(listView)
|
|
4024
|
+
.sort((a, b) => a[1].pos - b[1].pos)
|
|
4025
|
+
.forEach(([fieldId, field]) => {
|
|
4019
4026
|
if (!field.isUsed) {
|
|
4020
4027
|
return;
|
|
4021
4028
|
}
|
|
@@ -4031,7 +4038,9 @@ function renderAppView(viewSolr, listView) {
|
|
|
4031
4038
|
}
|
|
4032
4039
|
function renderAppSearch(searchView) {
|
|
4033
4040
|
const formItemIdInFilter = [];
|
|
4034
|
-
Object.entries(searchView)
|
|
4041
|
+
Object.entries(searchView)
|
|
4042
|
+
.sort((a, b) => a[1].pos - b[1].pos)
|
|
4043
|
+
.forEach(([fieldId, field]) => {
|
|
4035
4044
|
if (!field.isUsed) {
|
|
4036
4045
|
return;
|
|
4037
4046
|
}
|
|
@@ -4108,7 +4117,11 @@ function formItem2xml(field) {
|
|
|
4108
4117
|
solr.indexed="true"
|
|
4109
4118
|
solr.stored="true"
|
|
4110
4119
|
solr.searchable="true"
|
|
4111
|
-
solr.multiValued="${field.type === AppFormItemTypes.TAGS ||
|
|
4120
|
+
solr.multiValued="${field.type === AppFormItemTypes.TAGS ||
|
|
4121
|
+
field.type === AppFormItemTypes.CHECKBOX ||
|
|
4122
|
+
field.type === AppFormItemTypes.SELECT
|
|
4123
|
+
? true
|
|
4124
|
+
: false}"
|
|
4112
4125
|
teaser="true"
|
|
4113
4126
|
display="true"
|
|
4114
4127
|
>
|