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/cjs.js
CHANGED
|
@@ -2466,6 +2466,7 @@ const initialState$3 = {
|
|
|
2466
2466
|
widgetObject: {},
|
|
2467
2467
|
widgetObjectRights: {},
|
|
2468
2468
|
widgetAuthor: {},
|
|
2469
|
+
flushedWidgets: [],
|
|
2469
2470
|
rtObjectStack: [],
|
|
2470
2471
|
};
|
|
2471
2472
|
const IS_EMPTY = [
|
|
@@ -2526,8 +2527,10 @@ const widgetsSlice = toolkit.createSlice({
|
|
|
2526
2527
|
const { uniqid } = action.payload;
|
|
2527
2528
|
delete state.ids[uniqid];
|
|
2528
2529
|
delete state.states[uniqid];
|
|
2530
|
+
state.flushedWidgets.push(uniqid);
|
|
2529
2531
|
},
|
|
2530
2532
|
flushAllWidget: (state) => {
|
|
2533
|
+
state.flushedWidgets = [...state.flushedWidgets, ...Object.keys(state.ids)];
|
|
2531
2534
|
state.ids = {};
|
|
2532
2535
|
state.states = {};
|
|
2533
2536
|
},
|
|
@@ -2647,6 +2650,7 @@ const getWidgetRTHandlers = function (dispatch, uniqid) {
|
|
|
2647
2650
|
const selectToken = (state) => state.widgets.token;
|
|
2648
2651
|
const selectModal = (state) => state.widgets.modal;
|
|
2649
2652
|
const selectWidgets = (state) => state.widgets.ids;
|
|
2653
|
+
const selectFlushedWidgets = (state) => state.widgets.flushedWidgets;
|
|
2650
2654
|
const selectWidgetState = (state, uniqid) => { var _a; return (_a = state.widgets.states[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
2651
2655
|
const selectWidget = (state, uniqid) => { var _a; return (_a = state.widgets.ids[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
2652
2656
|
const selectWidgetObject = (state, uniqid) => { var _a; return (_a = state.widgets.widgetObject[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
@@ -2675,6 +2679,7 @@ const Widget = {
|
|
|
2675
2679
|
selectWidgetAuthor,
|
|
2676
2680
|
selectWidgetObjectRights,
|
|
2677
2681
|
selectAllWidgetRTObject,
|
|
2682
|
+
selectFlushedWidgets,
|
|
2678
2683
|
},
|
|
2679
2684
|
};
|
|
2680
2685
|
|
|
@@ -4023,7 +4028,9 @@ function renderAppView(viewSolr, listView) {
|
|
|
4023
4028
|
if (viewSolr === STUDIO_VIEW.SOLR) {
|
|
4024
4029
|
let xml = '<AppView>solr</AppView>';
|
|
4025
4030
|
const formItemIdInList = [];
|
|
4026
|
-
Object.entries(listView)
|
|
4031
|
+
Object.entries(listView)
|
|
4032
|
+
.sort((a, b) => a[1].pos - b[1].pos)
|
|
4033
|
+
.forEach(([fieldId, field]) => {
|
|
4027
4034
|
if (!field.isUsed) {
|
|
4028
4035
|
return;
|
|
4029
4036
|
}
|
|
@@ -4039,7 +4046,9 @@ function renderAppView(viewSolr, listView) {
|
|
|
4039
4046
|
}
|
|
4040
4047
|
function renderAppSearch(searchView) {
|
|
4041
4048
|
const formItemIdInFilter = [];
|
|
4042
|
-
Object.entries(searchView)
|
|
4049
|
+
Object.entries(searchView)
|
|
4050
|
+
.sort((a, b) => a[1].pos - b[1].pos)
|
|
4051
|
+
.forEach(([fieldId, field]) => {
|
|
4043
4052
|
if (!field.isUsed) {
|
|
4044
4053
|
return;
|
|
4045
4054
|
}
|
|
@@ -4116,7 +4125,11 @@ function formItem2xml(field) {
|
|
|
4116
4125
|
solr.indexed="true"
|
|
4117
4126
|
solr.stored="true"
|
|
4118
4127
|
solr.searchable="true"
|
|
4119
|
-
solr.multiValued="${field.type === AppFormItemTypes.TAGS ||
|
|
4128
|
+
solr.multiValued="${field.type === AppFormItemTypes.TAGS ||
|
|
4129
|
+
field.type === AppFormItemTypes.CHECKBOX ||
|
|
4130
|
+
field.type === AppFormItemTypes.SELECT
|
|
4131
|
+
? true
|
|
4132
|
+
: false}"
|
|
4120
4133
|
teaser="true"
|
|
4121
4134
|
display="true"
|
|
4122
4135
|
>
|