jamespot-front-business 1.2.58 → 1.2.60
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/README.md +1 -0
- package/dist/cjs.js +8 -97
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +7 -94
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +5694 -2599
- package/package.json +4 -4
package/dist/esm.js
CHANGED
|
@@ -3307,39 +3307,19 @@ function uniqid() {
|
|
|
3307
3307
|
return id;
|
|
3308
3308
|
}
|
|
3309
3309
|
|
|
3310
|
-
const WIDGET_ARTICLE_TITLE = 'widget-article-title';
|
|
3311
|
-
const WIDGET_ARTICLE_TEXT = 'widget-article-text';
|
|
3312
|
-
const WIDGET_ARTICLE_IMAGE = 'widget-article-image';
|
|
3313
|
-
const WIDGET_ARTICLE_BUTTON = 'widget-article-button';
|
|
3314
|
-
const WIDGET_ARTICLE_GALLERY = 'widget-article-gallery';
|
|
3315
|
-
const WIDGET_ARTICLE_ATTACHMENT = 'widget-article-attachment';
|
|
3316
|
-
const WIDGET_CHECK_LIST = 'widget-check-list';
|
|
3317
3310
|
const WIDGET_CHECK_LIST_LABEL = 'WIDGET_Check_List';
|
|
3318
3311
|
const WIDGET_CHECK_LIST_DESCRIPTION = 'WIDGET_Check_List_Description';
|
|
3319
|
-
const WIDGET_QUICK_SURVEY = 'widget-quick-survey';
|
|
3320
3312
|
const WIDGET_QUICK_SURVEY_LABEL = 'WIDGET_Quick_Survey';
|
|
3321
3313
|
const WIDGET_QUICK_SURVEY_DESCRIPTION = 'WIDGET_Quick_Survey_Text';
|
|
3322
3314
|
const WIDGET_USER_PROFILE = 'widget-user-profil';
|
|
3323
|
-
const WIDGET_USER_PROFILE_LABEL = 'WIDGET_User_Profil';
|
|
3324
|
-
const WIDGET_USER_PROFILE_DESCRIPTION = 'WIDGET_User_Profil_Text';
|
|
3325
3315
|
|
|
3326
3316
|
var WIDGETS = /*#__PURE__*/Object.freeze({
|
|
3327
3317
|
__proto__: null,
|
|
3328
|
-
WIDGET_ARTICLE_ATTACHMENT: WIDGET_ARTICLE_ATTACHMENT,
|
|
3329
|
-
WIDGET_ARTICLE_BUTTON: WIDGET_ARTICLE_BUTTON,
|
|
3330
|
-
WIDGET_ARTICLE_GALLERY: WIDGET_ARTICLE_GALLERY,
|
|
3331
|
-
WIDGET_ARTICLE_IMAGE: WIDGET_ARTICLE_IMAGE,
|
|
3332
|
-
WIDGET_ARTICLE_TEXT: WIDGET_ARTICLE_TEXT,
|
|
3333
|
-
WIDGET_ARTICLE_TITLE: WIDGET_ARTICLE_TITLE,
|
|
3334
|
-
WIDGET_CHECK_LIST: WIDGET_CHECK_LIST,
|
|
3335
3318
|
WIDGET_CHECK_LIST_DESCRIPTION: WIDGET_CHECK_LIST_DESCRIPTION,
|
|
3336
3319
|
WIDGET_CHECK_LIST_LABEL: WIDGET_CHECK_LIST_LABEL,
|
|
3337
|
-
WIDGET_QUICK_SURVEY: WIDGET_QUICK_SURVEY,
|
|
3338
3320
|
WIDGET_QUICK_SURVEY_DESCRIPTION: WIDGET_QUICK_SURVEY_DESCRIPTION,
|
|
3339
3321
|
WIDGET_QUICK_SURVEY_LABEL: WIDGET_QUICK_SURVEY_LABEL,
|
|
3340
|
-
WIDGET_USER_PROFILE: WIDGET_USER_PROFILE
|
|
3341
|
-
WIDGET_USER_PROFILE_DESCRIPTION: WIDGET_USER_PROFILE_DESCRIPTION,
|
|
3342
|
-
WIDGET_USER_PROFILE_LABEL: WIDGET_USER_PROFILE_LABEL
|
|
3322
|
+
WIDGET_USER_PROFILE: WIDGET_USER_PROFILE
|
|
3343
3323
|
});
|
|
3344
3324
|
|
|
3345
3325
|
const widgetArticleAttachmentDefinition = {
|
|
@@ -4320,9 +4300,9 @@ const AppFieldFormPropertyTypes = {
|
|
|
4320
4300
|
};
|
|
4321
4301
|
const AppFormUniqueList = [AppFormItemTypes.DESCRIPTION, AppFormItemTypes.IMAGE];
|
|
4322
4302
|
const AppFormUniqueListCheck = AppFormUniqueList;
|
|
4323
|
-
const AppFormBannedFromViews
|
|
4324
|
-
AppFormBannedFromViews
|
|
4325
|
-
AppFormBannedFromViews
|
|
4303
|
+
const AppFormBannedFromViews = new Map();
|
|
4304
|
+
AppFormBannedFromViews.set(AppFormItemTypes.IMAGE, ['list', 'filter', 'view']);
|
|
4305
|
+
AppFormBannedFromViews.set(AppFormItemTypes.CODEHTML, ['list', 'filter', 'view']);
|
|
4326
4306
|
const MapExtraFieldsWithView = {
|
|
4327
4307
|
create: {
|
|
4328
4308
|
fixed: [ExtraAppFieldsItemViews.TITLE],
|
|
@@ -4361,7 +4341,7 @@ const AppColumnsDefaultTypes = [
|
|
|
4361
4341
|
];
|
|
4362
4342
|
const AppFormPrimaryList = [AppFormItemTypes.DESCRIPTION];
|
|
4363
4343
|
const AppFormPrimaryListValues = AppFormPrimaryList;
|
|
4364
|
-
const AppFormFixedList
|
|
4344
|
+
const AppFormFixedList = [
|
|
4365
4345
|
ExtraAppFieldsItemViews.TITLE,
|
|
4366
4346
|
ExtraAppFieldsItemViews.PUBLISHTO,
|
|
4367
4347
|
ExtraAppFieldsItemViews.SENDALERTTOSUBSCRIBERS,
|
|
@@ -4394,11 +4374,6 @@ var StatusType;
|
|
|
4394
4374
|
StatusType["installed"] = "installed";
|
|
4395
4375
|
StatusType["suspended"] = "suspended";
|
|
4396
4376
|
})(StatusType || (StatusType = {}));
|
|
4397
|
-
({
|
|
4398
|
-
DRAFT: StatusType.draft,
|
|
4399
|
-
INSTALLED: StatusType.installed,
|
|
4400
|
-
SUSPENDED: StatusType.suspended,
|
|
4401
|
-
});
|
|
4402
4377
|
var AppFormItemType;
|
|
4403
4378
|
(function (AppFormItemType) {
|
|
4404
4379
|
AppFormItemType["TITLE"] = "TITLE";
|
|
@@ -4429,68 +4404,6 @@ var AppFormItemType;
|
|
|
4429
4404
|
AppFormItemType["USERLINK"] = "USERLINK";
|
|
4430
4405
|
AppFormItemType["CONTENTLINK"] = "CONTENTLINK";
|
|
4431
4406
|
})(AppFormItemType || (AppFormItemType = {}));
|
|
4432
|
-
[AppFormItemType.DESCRIPTION];
|
|
4433
|
-
const AppFormNotFields = [AppFormItemType.AUDIENCE, AppFormItemType.RANGE];
|
|
4434
|
-
({
|
|
4435
|
-
create: [AppFormItemType.TITLE],
|
|
4436
|
-
popup: [AppFormItemType.TITLE],
|
|
4437
|
-
edit: [AppFormItemType.TITLE],
|
|
4438
|
-
list: [AppFormItemType.TITLE, AppFormItemType.IDUSER],
|
|
4439
|
-
filter: [AppFormItemType.TITLE, AppFormItemType.IDUSER],
|
|
4440
|
-
view: [AppFormItemType.TITLE],
|
|
4441
|
-
});
|
|
4442
|
-
({
|
|
4443
|
-
create: [AppFormItemType.PUBLISHTO, AppFormItemType.SENDALERTTOSUBSCRIBERS, AppFormItemType.RECEIVEACOPY],
|
|
4444
|
-
popup: [AppFormItemType.PUBLISHTO],
|
|
4445
|
-
edit: [AppFormItemType.PUBLISHTO],
|
|
4446
|
-
list: [AppFormItemType.DATECREATION],
|
|
4447
|
-
filter: [AppFormItemType.DATECREATION]});
|
|
4448
|
-
const AppFormFixedList = [
|
|
4449
|
-
AppFormItemType.TITLE,
|
|
4450
|
-
AppFormItemType.PUBLISHTO,
|
|
4451
|
-
AppFormItemType.SENDALERTTOSUBSCRIBERS,
|
|
4452
|
-
AppFormItemType.RECEIVEACOPY,
|
|
4453
|
-
AppFormItemType.IDUSER,
|
|
4454
|
-
AppFormItemType.DATECREATION,
|
|
4455
|
-
];
|
|
4456
|
-
[AppFormItemType.DESCRIPTION, AppFormItemType.IMAGE];
|
|
4457
|
-
const AppFormBannedFromViews = new Map();
|
|
4458
|
-
AppFormBannedFromViews.set(AppFormItemType.IMAGE, ['list', 'filter', 'view']);
|
|
4459
|
-
[
|
|
4460
|
-
AppFormItemType.TITLE,
|
|
4461
|
-
AppFormItemType.DESCRIPTION,
|
|
4462
|
-
AppFormItemType.TEXT,
|
|
4463
|
-
AppFormItemType.TEXTAREA,
|
|
4464
|
-
AppFormItemType.TEXTAREAHTML,
|
|
4465
|
-
AppFormItemType.DATE,
|
|
4466
|
-
AppFormItemType.DATETIME,
|
|
4467
|
-
AppFormItemType.RANGE,
|
|
4468
|
-
AppFormItemType.NUMBER,
|
|
4469
|
-
AppFormItemType.URL,
|
|
4470
|
-
AppFormItemType.EMAIL,
|
|
4471
|
-
AppFormItemType.SELECT,
|
|
4472
|
-
AppFormItemType.TOGGLE,
|
|
4473
|
-
AppFormItemType.CHECKBOX,
|
|
4474
|
-
AppFormItemType.RADIO,
|
|
4475
|
-
AppFormItemType.TAGS,
|
|
4476
|
-
AppFormItemType.PUBLISHTO,
|
|
4477
|
-
AppFormItemType.SENDALERTTOSUBSCRIBERS,
|
|
4478
|
-
AppFormItemType.RECEIVEACOPY,
|
|
4479
|
-
AppFormItemType.ADDFILEATTACHMENT,
|
|
4480
|
-
AppFormItemType.CODEHTML,
|
|
4481
|
-
AppFormItemType.IDUSER,
|
|
4482
|
-
AppFormItemType.DATECREATION,
|
|
4483
|
-
AppFormItemType.USERLINK,
|
|
4484
|
-
AppFormItemType.CONTENTLINK,
|
|
4485
|
-
];
|
|
4486
|
-
({
|
|
4487
|
-
create: [AppFormItemType.IMAGE, AppFormItemType.ADDFILEATTACHMENT, AppFormItemType.CODEHTML],
|
|
4488
|
-
popup: [AppFormItemType.IMAGE, AppFormItemType.ADDFILEATTACHMENT, AppFormItemType.CODEHTML],
|
|
4489
|
-
edit: [AppFormItemType.IMAGE, AppFormItemType.ADDFILEATTACHMENT, AppFormItemType.CODEHTML]});
|
|
4490
|
-
AppFormFixedList.concat(AppFormNotFields)
|
|
4491
|
-
.concat(AppFormItemType.IDUSER)
|
|
4492
|
-
.concat(AppFormItemType.TITLE);
|
|
4493
|
-
[AppFormItemType.CODEHTML];
|
|
4494
4407
|
|
|
4495
4408
|
function migrateJson(v1Json) {
|
|
4496
4409
|
const v1 = v1Json;
|
|
@@ -5531,7 +5444,7 @@ function updateViewsFromFields(views, syncViewFieldOrder, appFields) {
|
|
|
5531
5444
|
const isFieldUsedInView = field.views[view];
|
|
5532
5445
|
const isExistingField = Object.keys(views[view]).includes(field.id);
|
|
5533
5446
|
const fieldType = field.type;
|
|
5534
|
-
if (AppFormBannedFromViews
|
|
5447
|
+
if (AppFormBannedFromViews.get(fieldType) && AppFormBannedFromViews.get(fieldType)?.includes(view)) {
|
|
5535
5448
|
return;
|
|
5536
5449
|
}
|
|
5537
5450
|
let fieldValue = undefined;
|
|
@@ -6727,5 +6640,5 @@ const studio = {
|
|
|
6727
6640
|
},
|
|
6728
6641
|
};
|
|
6729
6642
|
|
|
6730
|
-
export { APP_STATUS_TYPE, AUDIENCE, AdminLogs, Animations, AppColumnsDefaultTypes, AppFieldFormPropertyTypes, AppFormBannedFromViews
|
|
6643
|
+
export { APP_STATUS_TYPE, AUDIENCE, AdminLogs, Animations, AppColumnsDefaultTypes, AppFieldFormPropertyTypes, AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryListValues, AppFormUniqueListCheck, Application, Article, AssetReservation, Bookmark, Calendar, Comment, ContentReport, Description, Element, ExtraAppFieldsItemName, ExtraAppFieldsItemViews, ExtraBot, Faq, FileIntegrity, FileIntegritySlice, Hook, MagicPad, MapExtraFieldsWithView, MediaLibrary, Model, Network, Platform, STUDIO_VIEW, Share, SocialActions, StatusType$1 as StatusType, TVDisplay, TeamWork, TinyMCE, Toast, UserCurrent, WedocApp, Widget, WidgetEditor, actions, adminLogsReducer, adminLogsSlice, animationsReducer, animationsSlice, contentReportSlice, deleteQuarantine, extraBotSlice, fetchExtraBotListAll, fetchExtraBotListMines, fetchFileIntegrityList, fetchMediaLibraryConfig, fetchMediaLibraryFilesStats, fetchMediaLibraryFolders, fetchMediaLibraryFoldersStats, fetchMediaLibraryStats, fetchMediaLibraryUnclassifiedFiles, fetchPads, fetchReports, jland, magicPadSlice, mediaLibraryReducer, mediaLibrarySlice, releaseQuarantine, saveExtraBot, selectExtraBotListAll, selectExtraBotListMines, selectFileIntegrityAction, selectFileIntegrityList, slice$1 as slice, studio, teamWorkSlice, teamworkReducer, toggleExtraBotActivation, updateListBotProperty, updateStatus, updateWidgetContent, viewsList };
|
|
6731
6644
|
//# sourceMappingURL=esm.js.map
|