jamespot-front-business 1.1.47 → 1.1.49

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
@@ -251,7 +251,11 @@ const initialState$l = {
251
251
  nbResults: 0,
252
252
  };
253
253
  const fetchBookableAsset = toolkit.createAsyncThunk('BookableAsset/fetchBookableAsset', (_, { extra }) => __awaiter(void 0, void 0, void 0, function* () {
254
- const filterSpec = { type: 'bookableAsset', format: 'raw-list', limit: 50 };
254
+ const filterSpec = {
255
+ type: 'bookableAsset',
256
+ format: 'raw-list',
257
+ limit: 50,
258
+ };
255
259
  return yield extra.jApi.article.list(filterSpec);
256
260
  }));
257
261
  const BookableAssetSlice = toolkit.createSlice({
@@ -959,7 +963,8 @@ const fetchJLandMaps = toolkit.createAsyncThunk('/fetchMaps', ({ jlandUrlBase, r
959
963
  return yield new Promise((resolve, reject) => {
960
964
  const config = {
961
965
  type: 'jlandmap',
962
- format: 'raw-list,licenses',
966
+ format: 'raw-list',
967
+ formatExtend: ['licenses'],
963
968
  };
964
969
  const mapsPromise = retrieveAllMaps ? jApi.jland.getAllMapsAsAdmin() : jApi.article.list(config);
965
970
  mapsPromise
@@ -1449,7 +1454,11 @@ const mediaLibrarySlice = toolkit.createSlice({
1449
1454
  },
1450
1455
  });
1451
1456
  const fetchMediaLibraryFolders = toolkit.createAsyncThunk('MediaLibrary/fetchMediaLibraryFolders', (_, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
1452
- const args = { type: MediaLibraryAppConst.typeMediaLibraryFolder, format: 'raw-little', limit: 10 };
1457
+ const args = {
1458
+ type: MediaLibraryAppConst.typeMediaLibraryFolder,
1459
+ format: 'raw-little',
1460
+ limit: 10,
1461
+ };
1453
1462
  try {
1454
1463
  return yield extra.jApi.article.list(args);
1455
1464
  }
@@ -1485,7 +1494,7 @@ const mediaLibraryReducer = mediaLibrarySlice.reducer;
1485
1494
  const MediaLibrary = {
1486
1495
  slice: mediaLibrarySlice,
1487
1496
  actions: { fetchMediaLibraryFolders, fetchMediaLibraryUnclassifiedFiles, fetchMediaLibraryConfig },
1488
- selectors: { selectMediaLibrary }
1497
+ selectors: { selectMediaLibrary },
1489
1498
  };
1490
1499
 
1491
1500
  const adapter = toolkit.createEntityAdapter({
@@ -1930,6 +1939,22 @@ const UserCurrent = {
1930
1939
  utils: { isAdmin, isLogged },
1931
1940
  };
1932
1941
 
1942
+ const widgetApiDefinition = {
1943
+ label: 'WIDGET_Api',
1944
+ description: 'WIDGET_Api_Description',
1945
+ name: 'widget-api',
1946
+ img: '/img/fast-intranet/widget-text.png',
1947
+ available: true,
1948
+ panel: {
1949
+ useWrapper: false,
1950
+ useEditor: true,
1951
+ useWidgets: false,
1952
+ },
1953
+ };
1954
+ const widgetApiContent = {
1955
+ url: '',
1956
+ };
1957
+
1933
1958
  const widgetArticleAttachmentDefinition = {
1934
1959
  label: 'WIDGET_Article_Attachment',
1935
1960
  description: 'WIDGET_Article_Attachment_Description',
@@ -1946,6 +1971,33 @@ const widgetArticleAttachmentContent = {
1946
1971
  files: [],
1947
1972
  };
1948
1973
 
1974
+ const widgetArticleButtonDefinition = {
1975
+ label: 'WIDGET_Button',
1976
+ description: 'WIDGET_Button_Description',
1977
+ name: 'widget-article-button',
1978
+ img: '/img/article-widget-thumbnail/widget_thumbnail_button.png',
1979
+ available: true,
1980
+ panel: {
1981
+ useWrapper: false,
1982
+ useEditor: true,
1983
+ useWidgets: false,
1984
+ },
1985
+ };
1986
+ const widgetArticleButtonContent = {
1987
+ text: '',
1988
+ openingType: 'link',
1989
+ openingTypeLink: {
1990
+ url: '',
1991
+ target: '_blank',
1992
+ },
1993
+ variant: 'contained',
1994
+ fontSize: '14',
1995
+ color: '#fff',
1996
+ backgroundColor: '#4dbf96',
1997
+ buttonSize: 'lg',
1998
+ borderRadius: '4',
1999
+ };
2000
+
1949
2001
  const widgetArticleGalleryDefinition = {
1950
2002
  label: 'WIDGET_Article_Gallery',
1951
2003
  description: 'WIDGET_Article_Gallery_Description',
@@ -1978,11 +2030,11 @@ const widgetArticleImageDefinition = {
1978
2030
  };
1979
2031
  const widgetArticleImageContent = {};
1980
2032
 
1981
- const widgetArticleButtonDefinition = {
1982
- label: 'WIDGET_Button',
1983
- description: 'WIDGET_Button_Description',
1984
- name: 'widget-article-button',
1985
- img: '/img/article-widget-thumbnail/widget_thumbnail_button.png',
2033
+ const widgetArticleSliderDefinition = {
2034
+ label: 'WIDGET_Slider',
2035
+ description: 'WIDGET_Slider_Description',
2036
+ name: 'widget-article-slider',
2037
+ img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
1986
2038
  available: true,
1987
2039
  panel: {
1988
2040
  useWrapper: false,
@@ -1990,19 +2042,12 @@ const widgetArticleButtonDefinition = {
1990
2042
  useWidgets: false,
1991
2043
  },
1992
2044
  };
1993
- const widgetArticleButtonContent = {
1994
- text: '',
1995
- openingType: 'link',
1996
- openingTypeLink: {
1997
- url: '',
1998
- target: '_blank',
1999
- },
2000
- variant: 'contained',
2001
- fontSize: '14',
2002
- color: '#fff',
2003
- backgroundColor: '#4dbf96',
2004
- buttonSize: 'lg',
2005
- borderRadius: '4',
2045
+ const widgetArticleSliderContent = {
2046
+ slides: [],
2047
+ maxWidth: 800,
2048
+ loop: false,
2049
+ useDots: true,
2050
+ startAt: 0,
2006
2051
  };
2007
2052
 
2008
2053
  const widgetArticleTextDefinition = {
@@ -2041,27 +2086,34 @@ const widgetArticleTitleContent = {
2041
2086
  backgroundColor: 'transparent',
2042
2087
  };
2043
2088
 
2044
- const widgetApiDefinition = {
2045
- label: 'WIDGET_Api',
2046
- description: 'WIDGET_Api_Description',
2047
- name: 'widget-api',
2048
- img: '/img/fast-intranet/widget-text.png',
2049
- available: true,
2050
- panel: {
2051
- useWrapper: false,
2052
- useEditor: true,
2053
- useWidgets: false,
2054
- },
2055
- };
2056
- const widgetApiContent = {
2057
- url: '',
2058
- };
2089
+ const WIDGET_ARTICLE_TITLE = 'widget-article-title';
2090
+ const WIDGET_ARTICLE_TEXT = 'widget-article-text';
2091
+ const WIDGET_ARTICLE_IMAGE = 'widget-article-image';
2092
+ const WIDGET_ARTICLE_BUTTON = 'widget-article-button';
2093
+ const WIDGET_ARTICLE_GALLERY = 'widget-article-gallery';
2094
+ const WIDGET_ARTICLE_ATTACHMENT = 'widget-article-attachment';
2095
+ const WIDGET_CHECK_LIST = 'widget-check-list';
2096
+ const WIDGET_CHECK_LIST_LABEL = 'WIDGET_Check_List';
2097
+ const WIDGET_CHECK_LIST_DESCRIPTION = 'WIDGET_Check_List_Description';
2059
2098
 
2060
- const widgetArticleSliderDefinition = {
2061
- label: 'WIDGET_Slider',
2062
- description: 'WIDGET_Slider_Description',
2063
- name: 'widget-article-slider',
2064
- img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
2099
+ var WIDGETS = /*#__PURE__*/Object.freeze({
2100
+ __proto__: null,
2101
+ WIDGET_ARTICLE_TITLE: WIDGET_ARTICLE_TITLE,
2102
+ WIDGET_ARTICLE_TEXT: WIDGET_ARTICLE_TEXT,
2103
+ WIDGET_ARTICLE_IMAGE: WIDGET_ARTICLE_IMAGE,
2104
+ WIDGET_ARTICLE_BUTTON: WIDGET_ARTICLE_BUTTON,
2105
+ WIDGET_ARTICLE_GALLERY: WIDGET_ARTICLE_GALLERY,
2106
+ WIDGET_ARTICLE_ATTACHMENT: WIDGET_ARTICLE_ATTACHMENT,
2107
+ WIDGET_CHECK_LIST: WIDGET_CHECK_LIST,
2108
+ WIDGET_CHECK_LIST_LABEL: WIDGET_CHECK_LIST_LABEL,
2109
+ WIDGET_CHECK_LIST_DESCRIPTION: WIDGET_CHECK_LIST_DESCRIPTION
2110
+ });
2111
+
2112
+ const widgetCheckListDefinition = {
2113
+ label: WIDGET_CHECK_LIST_LABEL,
2114
+ description: WIDGET_CHECK_LIST_DESCRIPTION,
2115
+ name: WIDGET_CHECK_LIST,
2116
+ img: '/img/fast-intranet/widget-check-list.png',
2065
2117
  available: true,
2066
2118
  panel: {
2067
2119
  useWrapper: false,
@@ -2069,12 +2121,8 @@ const widgetArticleSliderDefinition = {
2069
2121
  useWidgets: false,
2070
2122
  },
2071
2123
  };
2072
- const widgetArticleSliderContent = {
2073
- slides: [],
2074
- maxWidth: 800,
2075
- loop: false,
2076
- useDots: true,
2077
- startAt: 0,
2124
+ const widgetCheckListContent = {
2125
+ arr: [],
2078
2126
  };
2079
2127
 
2080
2128
  function uniqid() {
@@ -2117,26 +2165,11 @@ function content(name) {
2117
2165
  return Object.assign({}, widgetArticleImageContent);
2118
2166
  case 'widget-article-text':
2119
2167
  return Object.assign({}, widgetArticleTextContent);
2168
+ case 'widget-check-list':
2169
+ return Object.assign({}, widgetCheckListContent);
2120
2170
  }
2121
2171
  }
2122
2172
 
2123
- const WIDGET_ARTICLE_TITLE = 'widget-article-title';
2124
- const WIDGET_ARTICLE_TEXT = 'widget-article-text';
2125
- const WIDGET_ARTICLE_IMAGE = 'widget-article-image';
2126
- const WIDGET_ARTICLE_BUTTON = 'widget-article-button';
2127
- const WIDGET_ARTICLE_GALLERY = 'widget-article-gallery';
2128
- const WIDGET_ARTICLE_ATTACHMENT = 'widget-article-attachment';
2129
-
2130
- var WIDGETS = /*#__PURE__*/Object.freeze({
2131
- __proto__: null,
2132
- WIDGET_ARTICLE_TITLE: WIDGET_ARTICLE_TITLE,
2133
- WIDGET_ARTICLE_TEXT: WIDGET_ARTICLE_TEXT,
2134
- WIDGET_ARTICLE_IMAGE: WIDGET_ARTICLE_IMAGE,
2135
- WIDGET_ARTICLE_BUTTON: WIDGET_ARTICLE_BUTTON,
2136
- WIDGET_ARTICLE_GALLERY: WIDGET_ARTICLE_GALLERY,
2137
- WIDGET_ARTICLE_ATTACHMENT: WIDGET_ARTICLE_ATTACHMENT
2138
- });
2139
-
2140
2173
  function widgetDefinition(name) {
2141
2174
  switch (name) {
2142
2175
  default:
@@ -2157,6 +2190,8 @@ function widgetDefinition(name) {
2157
2190
  return widgetApiDefinition;
2158
2191
  case 'widget-article-button':
2159
2192
  return widgetArticleButtonDefinition;
2193
+ case 'widget-check-list':
2194
+ return widgetCheckListDefinition;
2160
2195
  }
2161
2196
  }
2162
2197
 
@@ -2179,7 +2214,7 @@ const widgetsSlice = toolkit.createSlice({
2179
2214
  registerWidget: (state, action) => {
2180
2215
  const { uniqid, widget } = action.payload;
2181
2216
  state.ids[uniqid] = widget;
2182
- state.states[uniqid] = { busy: false, initialized: false, loading: false, mounted: false, hover: false };
2217
+ state.states[uniqid] = { busy: false, initialized: false, loading: false, mounted: false, hover: false, empty: true };
2183
2218
  },
2184
2219
  updateWidget: (state, action) => {
2185
2220
  const { uniqid } = action.payload;
@@ -2222,6 +2257,7 @@ const widgetsSlice = toolkit.createSlice({
2222
2257
  loading: false,
2223
2258
  mounted: false,
2224
2259
  hover: false,
2260
+ empty: true,
2225
2261
  };
2226
2262
  state.layers[layerId] = {
2227
2263
  uniqid: layerId,