jamespot-front-business 1.1.53 → 1.1.55

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 CHANGED
@@ -1547,9 +1547,9 @@ const fetchMediaLibraryFilesStats = toolkit.createAsyncThunk('MediaLibrary/fetch
1547
1547
  return rejectWithValue({ error: 1, errorMsg: 'Cannot get MediaLibrary files stats' });
1548
1548
  }
1549
1549
  }));
1550
- const fetchMediaLibraryStats = toolkit.createAsyncThunk('MediaLibrary/fetchMediaLibraryStats', ({ filters }, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
1550
+ const fetchMediaLibraryStats = toolkit.createAsyncThunk('MediaLibrary/fetchMediaLibraryStats', (_, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
1551
1551
  try {
1552
- return yield extra.jApi.mediaLibrary.getStats(filters);
1552
+ return yield extra.jApi.mediaLibrary.getStats();
1553
1553
  }
1554
1554
  catch (error) {
1555
1555
  dispatch(Toast.actions.error({ label: error.errorMsg }));
@@ -2053,7 +2053,7 @@ var WIDGETS = /*#__PURE__*/Object.freeze({
2053
2053
  const widgetArticleTextDefinition = {
2054
2054
  label: 'WIDGET_Text',
2055
2055
  description: 'WIDGET_Text_Description',
2056
- name: 'widget-article-text',
2056
+ name: jamespot.WidgetsName.ArticleText,
2057
2057
  img: '/img/article-widget-thumbnail/widget_thumbnail_text.png',
2058
2058
  available: true,
2059
2059
  panel: {
@@ -2069,7 +2069,7 @@ const widgetArticleTextContent = {
2069
2069
  const widgetArticleTitleDefinition = {
2070
2070
  label: 'WIDGET_Title',
2071
2071
  description: 'WIDGET_Title_Description',
2072
- name: 'widget-article-title',
2072
+ name: jamespot.WidgetsName.ArticleTitle,
2073
2073
  img: '/img/article-widget-thumbnail/widget_thumbnail_title.png',
2074
2074
  available: true,
2075
2075
  panel: {
@@ -2087,7 +2087,7 @@ const widgetArticleTitleContent = {
2087
2087
  const widgetArticleAttachmentDefinition = {
2088
2088
  label: 'WIDGET_Article_Attachment',
2089
2089
  description: 'WIDGET_Article_Attachment_Description',
2090
- name: 'widget-article-attachment',
2090
+ name: jamespot.WidgetsName.ArticleAttachment,
2091
2091
  img: '/img/article-widget-thumbnail/widget_thumbnail_files.png',
2092
2092
  available: true,
2093
2093
  panel: {
@@ -2103,7 +2103,7 @@ const widgetArticleAttachmentContent = {
2103
2103
  const widgetArticleGalleryDefinition = {
2104
2104
  label: 'WIDGET_Article_Gallery',
2105
2105
  description: 'WIDGET_Article_Gallery_Description',
2106
- name: 'widget-article-gallery',
2106
+ name: jamespot.WidgetsName.ArticleGallery,
2107
2107
  img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
2108
2108
  available: true,
2109
2109
  panel: {
@@ -2121,7 +2121,7 @@ const widgetArticleGalleryContent = {
2121
2121
  const widgetArticleImageDefinition = {
2122
2122
  label: 'WIDGET_Article_Image',
2123
2123
  description: 'WIDGET_Article_Image_Description',
2124
- name: 'widget-article-image',
2124
+ name: jamespot.WidgetsName.ArticleImage,
2125
2125
  img: '/img/article-widget-thumbnail/widget_thumbnail_illustration.png',
2126
2126
  available: true,
2127
2127
  panel: {
@@ -2135,7 +2135,7 @@ const widgetArticleImageContent = {};
2135
2135
  const widgetArticleButtonDefinition = {
2136
2136
  label: 'WIDGET_Button',
2137
2137
  description: 'WIDGET_Button_Description',
2138
- name: 'widget-article-button',
2138
+ name: jamespot.WidgetsName.ArticleButton,
2139
2139
  img: '/img/article-widget-thumbnail/widget_thumbnail_button.png',
2140
2140
  available: true,
2141
2141
  panel: {
@@ -2162,7 +2162,7 @@ const widgetArticleButtonContent = {
2162
2162
  const widgetApiDefinition = {
2163
2163
  label: 'WIDGET_Api',
2164
2164
  description: 'WIDGET_Api_Description',
2165
- name: 'widget-api',
2165
+ name: jamespot.WidgetsName.Api,
2166
2166
  img: '/img/fast-intranet/widget-text.png',
2167
2167
  available: true,
2168
2168
  panel: {
@@ -2178,7 +2178,7 @@ const widgetApiContent = {
2178
2178
  const widgetArticleSliderDefinition = {
2179
2179
  label: 'WIDGET_Slider',
2180
2180
  description: 'WIDGET_Slider_Description',
2181
- name: 'widget-article-slider',
2181
+ name: jamespot.WidgetsName.ArticleSlider,
2182
2182
  img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
2183
2183
  available: true,
2184
2184
  panel: {
@@ -2198,7 +2198,7 @@ const widgetArticleSliderContent = {
2198
2198
  const widgetCheckListDefinition = {
2199
2199
  label: WIDGET_CHECK_LIST_LABEL,
2200
2200
  description: WIDGET_CHECK_LIST_DESCRIPTION,
2201
- name: WIDGET_CHECK_LIST,
2201
+ name: jamespot.WidgetsName.CheckList,
2202
2202
  img: '/img/fast-intranet/widget-check-list.png',
2203
2203
  available: true,
2204
2204
  panel: {
@@ -2211,6 +2211,27 @@ const widgetCheckListContent = {
2211
2211
  arr: [],
2212
2212
  };
2213
2213
 
2214
+ const widgetDatasourceTableDefinition = {
2215
+ label: 'WIDGET_Datasource_Table',
2216
+ description: 'WIDGET_Datasource_Table_Description',
2217
+ name: jamespot.WidgetsName.DatasourceTable,
2218
+ img: '/img/fast-intranet/widget-text.png',
2219
+ available: true,
2220
+ panel: {
2221
+ useWrapper: false,
2222
+ useEditor: true,
2223
+ useWidgets: false,
2224
+ },
2225
+ };
2226
+ const widgetDatasourceTaleContent = {
2227
+ tableHeadColor: '#f1f1f1',
2228
+ tableHeadTextColor: '#000',
2229
+ tableHeadIconColor: '#000',
2230
+ tableRowColor: '#f5f5f5',
2231
+ tableRowTextColor: '#000',
2232
+ limit: 20,
2233
+ };
2234
+
2214
2235
  function widgetDefinition(name) {
2215
2236
  switch (name) {
2216
2237
  default:
@@ -2229,6 +2250,8 @@ function widgetDefinition(name) {
2229
2250
  return widgetArticleImageDefinition;
2230
2251
  case 'widget-api':
2231
2252
  return widgetApiDefinition;
2253
+ case 'widget-datasource-table':
2254
+ return widgetDatasourceTableDefinition;
2232
2255
  case 'widget-article-button':
2233
2256
  return widgetArticleButtonDefinition;
2234
2257
  case 'widget-check-list':
@@ -2256,6 +2279,8 @@ function content(name) {
2256
2279
  return Object.assign({}, widgetArticleAttachmentContent);
2257
2280
  case 'widget-api':
2258
2281
  return Object.assign({}, widgetApiContent);
2282
+ case 'widget-datasource-table':
2283
+ return Object.assign({}, widgetDatasourceTaleContent);
2259
2284
  case 'widget-article-slider':
2260
2285
  return Object.assign({}, widgetArticleSliderContent);
2261
2286
  case 'widget-article-gallery':
@@ -2472,7 +2497,8 @@ const editorsSlice = toolkit.createSlice({
2472
2497
  flushEditorPopup: (state, action) => {
2473
2498
  const { uniqid } = action.payload;
2474
2499
  state.editors = [
2475
- ...state.editors.map((editor) => editor.uniqid === uniqid ? Object.assign(Object.assign({}, editor), { popup: false }) : editor),
2500
+ ...state.editors.map((editor) => editor.uniqid === uniqid
2501
+ ? Object.assign(Object.assign({}, editor), { popup: false }) : editor),
2476
2502
  ];
2477
2503
  },
2478
2504
  setEditorPosition: (state, action) => {