jamespot-front-business 1.1.65 → 1.1.67

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/esm.js CHANGED
@@ -48,7 +48,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
48
48
  const toastAdapter = createEntityAdapter({
49
49
  selectId: (toast) => toast.id,
50
50
  });
51
- const slice$4 = createSlice({
51
+ const slice$5 = createSlice({
52
52
  name: 'toasts',
53
53
  initialState: toastAdapter.getInitialState(),
54
54
  reducers: {
@@ -62,9 +62,9 @@ const addMessage = (_a, type, timeout) => {
62
62
  if (type === void 0) { type = 'success'; }
63
63
  if (timeout === void 0) { timeout = 3000; }
64
64
  return (dispatch) => {
65
- dispatch(slice$4.actions.addOne(Object.assign(Object.assign({ id }, toast), { timeout, type })));
65
+ dispatch(slice$5.actions.addOne(Object.assign(Object.assign({ id }, toast), { timeout, type })));
66
66
  setTimeout(() => {
67
- dispatch(slice$4.actions.removeOne(id));
67
+ dispatch(slice$5.actions.removeOne(id));
68
68
  }, timeout);
69
69
  return id;
70
70
  };
@@ -75,11 +75,11 @@ const actions = {
75
75
  warning: (toast, timeout) => addMessage(toast, 'warning', timeout),
76
76
  error: (toast, timeout) => addMessage(toast, 'error', timeout),
77
77
  };
78
- const selectors$2 = toastAdapter.getSelectors((state) => state.toasts);
78
+ const selectors$3 = toastAdapter.getSelectors((state) => state.toasts);
79
79
  const Toast = {
80
- slice: slice$4,
81
- actions: Object.assign(Object.assign({}, actions), slice$4.actions),
82
- selectors: selectors$2,
80
+ slice: slice$5,
81
+ actions: Object.assign(Object.assign({}, actions), slice$5.actions),
82
+ selectors: selectors$3,
83
83
  };
84
84
 
85
85
  const initialState$m = {
@@ -295,24 +295,24 @@ const Animations = {
295
295
  getAnimationsRTHandlers,
296
296
  };
297
297
 
298
- const adapter$1 = createEntityAdapter({
298
+ const adapter$2 = createEntityAdapter({
299
299
  selectId: (app) => app.name,
300
300
  sortComparer: (a, b) => a.label.localeCompare(b.label),
301
301
  });
302
- const slice$3 = createSlice({
302
+ const slice$4 = createSlice({
303
303
  name: 'applications',
304
- initialState: adapter$1.getInitialState(),
304
+ initialState: adapter$2.getInitialState(),
305
305
  reducers: {
306
- addOne: adapter$1.addOne,
307
- addMany: adapter$1.addMany,
308
- setAll: adapter$1.setAll,
306
+ addOne: adapter$2.addOne,
307
+ addMany: adapter$2.addMany,
308
+ setAll: adapter$2.setAll,
309
309
  },
310
310
  });
311
- const selectors$1 = adapter$1.getSelectors((state) => state.entities.applications);
311
+ const selectors$2 = adapter$2.getSelectors((state) => state.entities.applications);
312
312
  const Application = {
313
- slice: slice$3,
314
- actions: Object.assign({}, slice$3.actions),
315
- selectors: selectors$1,
313
+ slice: slice$4,
314
+ actions: Object.assign({}, slice$4.actions),
315
+ selectors: selectors$2,
316
316
  };
317
317
 
318
318
  const initialState$l = {
@@ -1000,7 +1000,7 @@ const buildDrivesArrayFromObject = (drives) => {
1000
1000
  return Object.keys(drives).filter((k) => drives[k]);
1001
1001
  };
1002
1002
 
1003
- const slice$2 = createSlice({
1003
+ const slice$3 = createSlice({
1004
1004
  name: 'hooks',
1005
1005
  initialState: {},
1006
1006
  reducers: {
@@ -1018,8 +1018,8 @@ const hasHookLicense = (state, hook) => {
1018
1018
  return !!((_a = state.hooks[hook]) === null || _a === void 0 ? void 0 : _a.hasLicense);
1019
1019
  };
1020
1020
  const Hook = {
1021
- slice: slice$2,
1022
- actions: slice$2.actions,
1021
+ slice: slice$3,
1022
+ actions: slice$3.actions,
1023
1023
  selectors: { selectHooks, selectHook, hasHookLicense },
1024
1024
  utils: { buildDrivesArrayFromObject },
1025
1025
  };
@@ -1665,7 +1665,7 @@ const MediaLibrary = {
1665
1665
  },
1666
1666
  };
1667
1667
 
1668
- const adapter = createEntityAdapter({
1668
+ const adapter$1 = createEntityAdapter({
1669
1669
  selectId: (model) => model.type,
1670
1670
  sortComparer: (a, b) => a.label.localeCompare(b.label),
1671
1671
  });
@@ -1677,25 +1677,25 @@ const getModelIconSrc = (model, size) => {
1677
1677
  };
1678
1678
  return formatImgUrl(imgProps);
1679
1679
  };
1680
- const slice$1 = createSlice({
1680
+ const slice$2 = createSlice({
1681
1681
  name: 'models',
1682
- initialState: adapter.getInitialState(),
1682
+ initialState: adapter$1.getInitialState(),
1683
1683
  reducers: {
1684
- addOne: adapter.addOne,
1685
- addMany: adapter.addMany,
1686
- setAll: adapter.setAll,
1684
+ addOne: adapter$1.addOne,
1685
+ addMany: adapter$1.addMany,
1686
+ setAll: adapter$1.setAll,
1687
1687
  },
1688
1688
  });
1689
- const selectors = adapter.getSelectors((state) => state.entities.models);
1689
+ const selectors$1 = adapter$1.getSelectors((state) => state.entities.models);
1690
1690
  const utils = {
1691
1691
  getModelIconSrc,
1692
1692
  };
1693
1693
  const selectByIds = (state, types) => types.map((type) => state.entities.models.entities[type]).filter((model) => !!model);
1694
1694
  const Model = {
1695
- slice: slice$1,
1696
- actions: Object.assign({}, slice$1.actions),
1695
+ slice: slice$2,
1696
+ actions: Object.assign({}, slice$2.actions),
1697
1697
  utils,
1698
- selectors: Object.assign(Object.assign({}, selectors), { selectByIds }),
1698
+ selectors: Object.assign(Object.assign({}, selectors$1), { selectByIds }),
1699
1699
  };
1700
1700
 
1701
1701
  const initialState$a = {};
@@ -2078,7 +2078,7 @@ const initialState$4 = {
2078
2078
  level: 0,
2079
2079
  active: 1,
2080
2080
  };
2081
- const slice = createSlice({
2081
+ const slice$1 = createSlice({
2082
2082
  name: 'userCurrent',
2083
2083
  initialState: initialState$4,
2084
2084
  reducers: {
@@ -2097,8 +2097,8 @@ const isLogged = (userCurrent) => {
2097
2097
  return userCurrent.id !== 0;
2098
2098
  };
2099
2099
  const UserCurrent = {
2100
- slice: slice,
2101
- actions: Object.assign({}, slice.actions),
2100
+ slice: slice$1,
2101
+ actions: Object.assign({}, slice$1.actions),
2102
2102
  selectors: {
2103
2103
  get,
2104
2104
  },
@@ -2279,6 +2279,7 @@ const widgetCheckListDefinition = {
2279
2279
  };
2280
2280
  const widgetCheckListContent = {
2281
2281
  arr: [],
2282
+ edit: false,
2282
2283
  };
2283
2284
 
2284
2285
  const widgetDatasourceTableDefinition = {
@@ -2701,6 +2702,27 @@ const WidgetEditor = {
2701
2702
  },
2702
2703
  };
2703
2704
 
2705
+ const adapter = createEntityAdapter({
2706
+ selectId: (socialAction) => `${socialAction.struct.targetId}-${socialAction.type}`,
2707
+ });
2708
+ const slice = createSlice({
2709
+ name: 'socialActions',
2710
+ initialState: adapter.getInitialState(),
2711
+ reducers: {
2712
+ addOne: adapter.addOne,
2713
+ addMany: adapter.addMany,
2714
+ setAll: adapter.setAll,
2715
+ clear: adapter.removeAll,
2716
+ updateOne: adapter.updateOne,
2717
+ },
2718
+ });
2719
+ const selectors = adapter.getSelectors((state) => state.entities.socialActions);
2720
+ const SocialActions = {
2721
+ slice: slice,
2722
+ actions: Object.assign({}, slice.actions),
2723
+ selectors,
2724
+ };
2725
+
2704
2726
  const AUDIENCE = {
2705
2727
  ALL: '1',
2706
2728
  CUSTOM: '0',
@@ -4096,5 +4118,5 @@ const studio = {
4096
4118
  },
4097
4119
  };
4098
4120
 
4099
- export { APP_STATUS_TYPE, AUDIENCE, Animations, AppColumnsDefaultTypes, AppFieldFormPropertyTypes, AppFormBannedFromViews$1 as AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList$1 as AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, AppFormUniqueList, Application, AssetReservation, Bookmark, Comment, ExtraAppFieldsItemViews, Faq, Hook, MODE_EDIT, MODE_VIEW, MagicPad, MapExtraFieldsWithView, MediaLibrary, Model, Network, Platform, STUDIO_VIEW, Share, StatusType$1 as StatusType, TVDisplay, TinyMCE, Toast, UserCurrent, WedocApp, Widget, WidgetEditor, actions, animationsReducer, animationsSlice, fetchMediaLibraryConfig, fetchMediaLibraryFilesStats, fetchMediaLibraryFolders, fetchMediaLibraryFoldersStats, fetchMediaLibraryStats, fetchMediaLibraryUnclassifiedFiles, fetchPads, jland, magicPadSlice, mediaLibraryReducer, mediaLibrarySlice, slice, studio, updateWidgetContent, viewsList };
4121
+ export { APP_STATUS_TYPE, AUDIENCE, Animations, AppColumnsDefaultTypes, AppFieldFormPropertyTypes, AppFormBannedFromViews$1 as AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList$1 as AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, AppFormUniqueList, Application, AssetReservation, Bookmark, Comment, ExtraAppFieldsItemViews, Faq, Hook, MODE_EDIT, MODE_VIEW, MagicPad, MapExtraFieldsWithView, MediaLibrary, Model, Network, Platform, STUDIO_VIEW, Share, SocialActions, StatusType$1 as StatusType, TVDisplay, TinyMCE, Toast, UserCurrent, WedocApp, Widget, WidgetEditor, actions, animationsReducer, animationsSlice, fetchMediaLibraryConfig, fetchMediaLibraryFilesStats, fetchMediaLibraryFolders, fetchMediaLibraryFoldersStats, fetchMediaLibraryStats, fetchMediaLibraryUnclassifiedFiles, fetchPads, jland, magicPadSlice, mediaLibraryReducer, mediaLibrarySlice, slice$1 as slice, studio, updateWidgetContent, viewsList };
4100
4122
  //# sourceMappingURL=esm.js.map