jamespot-front-business 1.1.34 → 1.1.36
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 +167 -131
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +165 -123
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +109 -235
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
|
2
2
|
import { EntityState, Action, Dispatch as Dispatch$1, PayloadAction } from '@reduxjs/toolkit';
|
|
3
3
|
import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
|
|
4
4
|
import * as jamespot_user_api from 'jamespot-user-api';
|
|
5
|
-
import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, Taxonomy,
|
|
5
|
+
import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, Taxonomy, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, JLandMap, AdminLicensesNotAssigned, Model as Model$1, NetworkType, WedocFileType, jUserLittle, PagingResults, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, CombinedWidgetContent, WidgetsState, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
|
|
6
6
|
import * as redux from 'redux';
|
|
7
7
|
import { Dispatch } from 'redux';
|
|
8
8
|
import React from 'react';
|
|
@@ -100,24 +100,10 @@ interface StudioApplication {
|
|
|
100
100
|
author?: string;
|
|
101
101
|
manifest: StudioAppManifest;
|
|
102
102
|
inWorkVersion?: StudioApplication;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
description: string;
|
|
108
|
-
author?: string;
|
|
109
|
-
typeLabel: string;
|
|
110
|
-
cssColor: string;
|
|
111
|
-
cssClass: {
|
|
112
|
-
label: string;
|
|
113
|
-
value: string;
|
|
114
|
-
};
|
|
115
|
-
version: number;
|
|
116
|
-
dateCreation: Date;
|
|
117
|
-
viewSolr: string;
|
|
118
|
-
checkAccess: boolean;
|
|
119
|
-
accessRightList?: string;
|
|
120
|
-
attrExposed: Array<string>;
|
|
103
|
+
fields: AppFieldsFormItem[];
|
|
104
|
+
views: AppViewsFields;
|
|
105
|
+
audience: StudioAudienceType;
|
|
106
|
+
installFor: AppInstallForType[];
|
|
121
107
|
}
|
|
122
108
|
interface StudioAppManifest {
|
|
123
109
|
appShortName: string;
|
|
@@ -138,21 +124,6 @@ interface StudioAppManifest {
|
|
|
138
124
|
attrExposed: Array<string>;
|
|
139
125
|
articlesCount?: number;
|
|
140
126
|
}
|
|
141
|
-
interface AppForm {
|
|
142
|
-
formItems: AppFormItem[];
|
|
143
|
-
}
|
|
144
|
-
interface AppFormItem {
|
|
145
|
-
id: string;
|
|
146
|
-
type: AppFormItemType;
|
|
147
|
-
name: string;
|
|
148
|
-
labels?: AppLabelsType;
|
|
149
|
-
mandatory?: boolean;
|
|
150
|
-
fixed: boolean;
|
|
151
|
-
views: AppViewsType;
|
|
152
|
-
table?: string;
|
|
153
|
-
properties?: AppFormProperties;
|
|
154
|
-
}
|
|
155
|
-
declare type AppFormProperties = AbstractAppFormProperties;
|
|
156
127
|
interface AppLabelsType {
|
|
157
128
|
label?: AppLabelContentType;
|
|
158
129
|
description?: AppLabelContentType;
|
|
@@ -163,7 +134,32 @@ interface AppLabelContentType {
|
|
|
163
134
|
display?: string;
|
|
164
135
|
}
|
|
165
136
|
declare type labelMode = 'SERVER' | 'GLOBAL' | 'RESOURCES' | 'APP';
|
|
166
|
-
|
|
137
|
+
declare const STUDIO_VIEW: {
|
|
138
|
+
SOLR: string;
|
|
139
|
+
NOT_SOLR: string;
|
|
140
|
+
};
|
|
141
|
+
declare type AppFieldsFormItem = {
|
|
142
|
+
id: string;
|
|
143
|
+
type: AppFormItemTypes;
|
|
144
|
+
properties?: AppFieldFormProperty[];
|
|
145
|
+
mandatory?: boolean;
|
|
146
|
+
views?: AppViews;
|
|
147
|
+
value?: any;
|
|
148
|
+
isActive?: boolean;
|
|
149
|
+
isFixed?: boolean;
|
|
150
|
+
isOptional?: boolean;
|
|
151
|
+
};
|
|
152
|
+
declare type AppViewFieldItem = {
|
|
153
|
+
type: AppFormItemTypes | ExtraAppFieldsItemViews;
|
|
154
|
+
properties: AppFieldFormProperty[];
|
|
155
|
+
isUsed: boolean;
|
|
156
|
+
isOptional: boolean;
|
|
157
|
+
isFixed: boolean;
|
|
158
|
+
isLockedValue: boolean;
|
|
159
|
+
value: any;
|
|
160
|
+
pos: number;
|
|
161
|
+
};
|
|
162
|
+
interface AppViews {
|
|
167
163
|
create: boolean;
|
|
168
164
|
popup: boolean;
|
|
169
165
|
edit: boolean;
|
|
@@ -171,174 +167,27 @@ interface AppViewsType {
|
|
|
171
167
|
filter: boolean;
|
|
172
168
|
view: boolean;
|
|
173
169
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
interface AppFormTextAreaProperties {
|
|
187
|
-
labels: AppLabelsType;
|
|
188
|
-
mandatory: boolean;
|
|
189
|
-
}
|
|
190
|
-
interface AppFormTextAreaHTMLProperties {
|
|
191
|
-
labels: AppLabelsType;
|
|
192
|
-
mandatory: boolean;
|
|
193
|
-
}
|
|
194
|
-
interface AppFormDateProperties {
|
|
195
|
-
labels: AppLabelsType;
|
|
196
|
-
mandatory: boolean;
|
|
197
|
-
}
|
|
198
|
-
interface AppFormDateTimeProperties {
|
|
199
|
-
labels: AppLabelsType;
|
|
200
|
-
mandatory: boolean;
|
|
201
|
-
}
|
|
202
|
-
interface AppFormURLProperties {
|
|
203
|
-
labels: AppLabelsType;
|
|
204
|
-
mandatory: boolean;
|
|
205
|
-
}
|
|
206
|
-
interface AppFormEmailProperties {
|
|
207
|
-
labels: AppLabelsType;
|
|
208
|
-
mandatory: boolean;
|
|
209
|
-
}
|
|
210
|
-
interface AppFormNumberProperties {
|
|
211
|
-
labels: AppLabelsType;
|
|
212
|
-
mandatory: boolean;
|
|
213
|
-
digits: boolean;
|
|
214
|
-
}
|
|
215
|
-
interface AppFormRangeProperties {
|
|
216
|
-
labels: AppLabelsType;
|
|
217
|
-
mandatory: boolean;
|
|
218
|
-
minMaxType: 'number';
|
|
219
|
-
min: string;
|
|
220
|
-
max: string;
|
|
221
|
-
}
|
|
222
|
-
interface AppFormCodeHTMLProperties {
|
|
223
|
-
code: HtmlValue;
|
|
224
|
-
}
|
|
225
|
-
declare type AppFormOptionsProperties = Array<AppFormOption>;
|
|
226
|
-
interface AppFormOption {
|
|
227
|
-
label: string;
|
|
228
|
-
mode?: labelMode;
|
|
229
|
-
value: string | number;
|
|
230
|
-
}
|
|
231
|
-
interface AppFormRadioProperties {
|
|
232
|
-
labels: AppLabelsType;
|
|
233
|
-
mandatory: boolean;
|
|
234
|
-
options: AppFormOptionsProperties;
|
|
235
|
-
}
|
|
236
|
-
interface AppFormSelectProperties {
|
|
237
|
-
labels: AppLabelsType;
|
|
238
|
-
mandatory: boolean;
|
|
239
|
-
multiple: boolean;
|
|
240
|
-
explain: boolean;
|
|
241
|
-
options: AppFormOptionsProperties;
|
|
242
|
-
hasDefaultValue: boolean;
|
|
243
|
-
defaultValue?: AppFormOption;
|
|
244
|
-
}
|
|
245
|
-
interface AppFormToggleProperties {
|
|
246
|
-
labels: AppLabelsType;
|
|
247
|
-
mandatory: boolean;
|
|
248
|
-
}
|
|
249
|
-
interface AppFormCheckboxProperties {
|
|
250
|
-
labels: AppLabelsType;
|
|
251
|
-
mandatory: boolean;
|
|
252
|
-
options: AppFormOptionsProperties;
|
|
253
|
-
}
|
|
254
|
-
interface AppFormTagsProperties {
|
|
255
|
-
labels: AppLabelsType;
|
|
256
|
-
mandatory: boolean;
|
|
257
|
-
taxonomy: Partial<Taxonomy> | false;
|
|
258
|
-
}
|
|
259
|
-
interface AppFormIdUserProperties {
|
|
260
|
-
labels: AppLabelsType;
|
|
261
|
-
mandatory: boolean;
|
|
262
|
-
}
|
|
263
|
-
interface AppFormUserLinkProperties {
|
|
264
|
-
labels: AppLabelsType;
|
|
265
|
-
mandatory: boolean;
|
|
266
|
-
}
|
|
267
|
-
interface AppFormContentLinkProperties {
|
|
268
|
-
labels: AppLabelsType;
|
|
269
|
-
mandatory: boolean;
|
|
270
|
-
contentType: {
|
|
271
|
-
label: string;
|
|
272
|
-
value: string;
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
interface AppFormAudienceProperties {
|
|
276
|
-
labels: AppLabelsType;
|
|
277
|
-
mandatory: boolean;
|
|
278
|
-
}
|
|
279
|
-
interface AbstractAppFormProperties {
|
|
280
|
-
labels?: AppLabelsType;
|
|
281
|
-
mandatory?: boolean;
|
|
282
|
-
explain?: boolean;
|
|
283
|
-
minMaxType?: 'number' | 'Date' | 'DateTime';
|
|
284
|
-
min?: string;
|
|
285
|
-
max?: string;
|
|
286
|
-
multiple?: boolean;
|
|
287
|
-
options?: AppFormOptionsProperties;
|
|
288
|
-
code?: HtmlValue;
|
|
289
|
-
hasDefaultValue?: boolean;
|
|
290
|
-
defaultValue?: AppFormFieldValueType;
|
|
291
|
-
taxonomy?: Partial<Taxonomy> | false;
|
|
292
|
-
digits?: boolean;
|
|
293
|
-
contentType?: {
|
|
294
|
-
label: string;
|
|
295
|
-
value: string;
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
interface HtmlValue {
|
|
299
|
-
html: string;
|
|
300
|
-
text: string;
|
|
301
|
-
}
|
|
302
|
-
interface AppFormItemsView {
|
|
303
|
-
view: ViewName;
|
|
304
|
-
orderChanged: boolean;
|
|
305
|
-
formItemRefs: AppFormItemRefInView[];
|
|
306
|
-
}
|
|
170
|
+
declare type AppViewsFields = {
|
|
171
|
+
create: AppViewFieldsItems;
|
|
172
|
+
popup: AppViewFieldsItems;
|
|
173
|
+
edit: AppViewFieldsItems;
|
|
174
|
+
list: AppViewFieldsItems;
|
|
175
|
+
filter: AppViewFieldsItems;
|
|
176
|
+
view: AppViewFieldsItems;
|
|
177
|
+
};
|
|
178
|
+
declare type AppViewFieldsItems = {
|
|
179
|
+
[id: string]: AppViewFieldItem;
|
|
180
|
+
};
|
|
307
181
|
declare type ViewName = 'create' | 'popup' | 'edit' | 'list' | 'filter' | 'view';
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
fixedPos?: boolean;
|
|
311
|
-
fixedValue?: AppFormFieldValueType;
|
|
312
|
-
}
|
|
313
|
-
declare type AppFormFieldValueType = string | boolean | string[] | HtmlValue | AppFormOption | AppFormOption[] | AppInstallForType[] | jObjectLittle[];
|
|
314
|
-
declare type AppInstallForType = Partial<{
|
|
315
|
-
id: string;
|
|
316
|
-
uri: string;
|
|
317
|
-
shortUri: string;
|
|
318
|
-
title: string;
|
|
319
|
-
name: string;
|
|
320
|
-
mainType: string;
|
|
321
|
-
type: string;
|
|
322
|
-
label: string;
|
|
323
|
-
cssClass: string;
|
|
324
|
-
cssColor: string;
|
|
325
|
-
class: string;
|
|
326
|
-
Pseudo: string;
|
|
327
|
-
}>;
|
|
328
|
-
declare enum AppFormItemType {
|
|
329
|
-
TITLE = "TITLE",
|
|
182
|
+
declare const viewsList: ViewName[];
|
|
183
|
+
declare enum AppFormItemTypes {
|
|
330
184
|
IMAGE = "IMAGE",
|
|
331
185
|
DESCRIPTION = "DESCRIPTION",
|
|
332
|
-
IDUSER = "IDUSER",
|
|
333
|
-
PUBLISHTO = "PUBLISHTO",
|
|
334
|
-
SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS",
|
|
335
|
-
RECEIVEACOPY = "RECEIVEACOPY",
|
|
336
186
|
TEXT = "TEXT",
|
|
337
187
|
TEXTAREA = "TEXTAREA",
|
|
338
188
|
TEXTAREAHTML = "TEXTAREAHTML",
|
|
339
189
|
DATE = "DATE",
|
|
340
190
|
DATETIME = "DATETIME",
|
|
341
|
-
RANGE = "RANGE",
|
|
342
191
|
NUMBER = "NUMBER",
|
|
343
192
|
URL = "URL",
|
|
344
193
|
EMAIL = "EMAIL",
|
|
@@ -348,44 +197,51 @@ declare enum AppFormItemType {
|
|
|
348
197
|
RADIO = "RADIO",
|
|
349
198
|
TAGS = "TAGS",
|
|
350
199
|
ADDFILEATTACHMENT = "ADDFILEATTACHMENT",
|
|
351
|
-
AUDIENCE = "AUDIENCE",
|
|
352
200
|
CODEHTML = "CODEHTML",
|
|
353
|
-
DATECREATION = "DATECREATION",
|
|
354
201
|
USERLINK = "USERLINK",
|
|
355
202
|
CONTENTLINK = "CONTENTLINK"
|
|
356
203
|
}
|
|
357
|
-
declare
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
declare
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
declare const
|
|
387
|
-
declare
|
|
388
|
-
|
|
204
|
+
declare enum ExtraAppFieldsItemViews {
|
|
205
|
+
TITLE = "TITLE",
|
|
206
|
+
USER = "USER",
|
|
207
|
+
PUBLISHTO = "PUBLISHTO",
|
|
208
|
+
SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS",
|
|
209
|
+
RECEIVEACOPY = "RECEIVEACOPY",
|
|
210
|
+
CREATIONDATE = "CREATIONDATE"
|
|
211
|
+
}
|
|
212
|
+
declare type CheckBoxOption = {
|
|
213
|
+
label: string;
|
|
214
|
+
value: any;
|
|
215
|
+
};
|
|
216
|
+
declare type AppFieldFormProperty = {
|
|
217
|
+
propertyType: AppFieldFormPropertyTypes;
|
|
218
|
+
isRequired?: boolean;
|
|
219
|
+
checkBoxOptions?: CheckBoxOption[];
|
|
220
|
+
value?: any;
|
|
221
|
+
isOptionsEditorEnhanced?: boolean;
|
|
222
|
+
};
|
|
223
|
+
declare enum AppFieldFormPropertyTypes {
|
|
224
|
+
LABEL = "label",
|
|
225
|
+
DESCRIPTION = "description",
|
|
226
|
+
RICHTEXT = "richtext",
|
|
227
|
+
CHECKBOX = "checkbox",
|
|
228
|
+
OPTIONS_EDITOR = "options_editor",
|
|
229
|
+
TAXONOMY = "taxonomy",
|
|
230
|
+
CONTENTTYPE = "contenttype"
|
|
231
|
+
}
|
|
232
|
+
declare const AppFormUniqueList: AppFormItemTypes[];
|
|
233
|
+
declare const AppFormBannedFromViews: Map<AppFormItemTypes, ViewName[]>;
|
|
234
|
+
declare type MappedExtraFieldsWithView = {
|
|
235
|
+
fixed: ExtraAppFieldsItemViews[];
|
|
236
|
+
optional: ExtraAppFieldsItemViews[];
|
|
237
|
+
};
|
|
238
|
+
declare const MapExtraFieldsWithView: {
|
|
239
|
+
[k: string]: MappedExtraFieldsWithView;
|
|
240
|
+
};
|
|
241
|
+
declare type AppFieldView = {
|
|
242
|
+
fieldIdRef: string;
|
|
243
|
+
value: any;
|
|
244
|
+
};
|
|
389
245
|
interface AppTypeServerModel {
|
|
390
246
|
typeName: string;
|
|
391
247
|
typeLabel: string;
|
|
@@ -476,10 +332,20 @@ interface AppServerViewModel {
|
|
|
476
332
|
format?: string;
|
|
477
333
|
html?: string;
|
|
478
334
|
}
|
|
479
|
-
declare
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
335
|
+
declare type AppInstallForType = Partial<{
|
|
336
|
+
id: string;
|
|
337
|
+
uri: string;
|
|
338
|
+
shortUri: string;
|
|
339
|
+
title: string;
|
|
340
|
+
name: string;
|
|
341
|
+
mainType: string;
|
|
342
|
+
type: string;
|
|
343
|
+
label: string;
|
|
344
|
+
cssClass: string;
|
|
345
|
+
cssColor: string;
|
|
346
|
+
class: string;
|
|
347
|
+
Pseudo: string;
|
|
348
|
+
}>;
|
|
483
349
|
|
|
484
350
|
declare type Loading = {
|
|
485
351
|
loading: 'idle' | 'pending';
|
|
@@ -1362,6 +1228,14 @@ declare type WidgetModalProps = {
|
|
|
1362
1228
|
title?: string;
|
|
1363
1229
|
view?: any;
|
|
1364
1230
|
};
|
|
1231
|
+
declare const updateWidgetContent: <T>(uniqid: string, content: Partial<T>, override?: boolean) => {
|
|
1232
|
+
payload: {
|
|
1233
|
+
uniqid: string;
|
|
1234
|
+
content: Partial<CombinedWidgetContent>;
|
|
1235
|
+
override?: boolean;
|
|
1236
|
+
};
|
|
1237
|
+
type: "widgets/updateWidget";
|
|
1238
|
+
};
|
|
1365
1239
|
declare const Widget: {
|
|
1366
1240
|
const: typeof WIDGETS;
|
|
1367
1241
|
factory: typeof widgetFactory;
|
|
@@ -1376,7 +1250,7 @@ declare const Widget: {
|
|
|
1376
1250
|
}>) => void;
|
|
1377
1251
|
updateWidget: (state: Draft<S>, action: PayloadAction<{
|
|
1378
1252
|
uniqid: string;
|
|
1379
|
-
content: CombinedWidgetContent
|
|
1253
|
+
content: Partial<CombinedWidgetContent>;
|
|
1380
1254
|
override?: boolean;
|
|
1381
1255
|
}>) => void;
|
|
1382
1256
|
flushWidget: (state: Draft<S>, action: PayloadAction<{
|
|
@@ -1637,4 +1511,4 @@ declare const studio: {
|
|
|
1637
1511
|
};
|
|
1638
1512
|
};
|
|
1639
1513
|
|
|
1640
|
-
export { APP_STATUS_TYPE, AUDIENCE,
|
|
1514
|
+
export { APP_STATUS_TYPE, AUDIENCE, AppAttrSolrModel, AppAttrWidgetModel, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldView, AppFieldsFormItem, AppFormBannedFromViews, AppFormItemTypes, AppFormUniqueList, AppInstallForType, AppLabelContentType, AppLabelsType, AppServerDisplayModel, AppServerDisplaysModel, AppServerViewModel, AppStatusKeys, AppStatusType, AppTableAttributesModel, AppTableModel, AppTypeServerModel, AppViewFieldItem, AppViewFieldsItems, AppViews, AppViewsFields, Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, CheckBoxOption, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, JLandMapFront, JLandRootState, MODE_EDIT, MODE_VIEW, MapCreationFront, MapExtraFieldsWithView, Model, ModelRootState, Network, NetworkRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, jland, slice, studio, updateWidgetContent, viewsList };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-front-business",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.36",
|
|
4
4
|
"description": "typescript utils",
|
|
5
5
|
"main": "dist/cjs.js",
|
|
6
6
|
"module": "dist/esm.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@reduxjs/toolkit": "1.9.0",
|
|
40
40
|
"@types/uuid": "^9.0.8",
|
|
41
|
-
"jamespot-user-api": "^1.0.
|
|
41
|
+
"jamespot-user-api": "^1.0.140",
|
|
42
42
|
"react-redux": "7.2.9",
|
|
43
43
|
"redux": "4.2.0",
|
|
44
44
|
"uuid": "^9.0.1"
|