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/esm.js CHANGED
@@ -243,7 +243,11 @@ const initialState$l = {
243
243
  nbResults: 0,
244
244
  };
245
245
  const fetchBookableAsset = createAsyncThunk('BookableAsset/fetchBookableAsset', (_, { extra }) => __awaiter(void 0, void 0, void 0, function* () {
246
- const filterSpec = { type: 'bookableAsset', format: 'raw-list', limit: 50 };
246
+ const filterSpec = {
247
+ type: 'bookableAsset',
248
+ format: 'raw-list',
249
+ limit: 50,
250
+ };
247
251
  return yield extra.jApi.article.list(filterSpec);
248
252
  }));
249
253
  const BookableAssetSlice = createSlice({
@@ -951,7 +955,8 @@ const fetchJLandMaps = createAsyncThunk('/fetchMaps', ({ jlandUrlBase, retrieveA
951
955
  return yield new Promise((resolve, reject) => {
952
956
  const config = {
953
957
  type: 'jlandmap',
954
- format: 'raw-list,licenses',
958
+ format: 'raw-list',
959
+ formatExtend: ['licenses'],
955
960
  };
956
961
  const mapsPromise = retrieveAllMaps ? jApi.jland.getAllMapsAsAdmin() : jApi.article.list(config);
957
962
  mapsPromise
@@ -1441,7 +1446,11 @@ const mediaLibrarySlice = createSlice({
1441
1446
  },
1442
1447
  });
1443
1448
  const fetchMediaLibraryFolders = createAsyncThunk('MediaLibrary/fetchMediaLibraryFolders', (_, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
1444
- const args = { type: MediaLibraryAppConst.typeMediaLibraryFolder, format: 'raw-little', limit: 10 };
1449
+ const args = {
1450
+ type: MediaLibraryAppConst.typeMediaLibraryFolder,
1451
+ format: 'raw-little',
1452
+ limit: 10,
1453
+ };
1445
1454
  try {
1446
1455
  return yield extra.jApi.article.list(args);
1447
1456
  }
@@ -1477,7 +1486,7 @@ const mediaLibraryReducer = mediaLibrarySlice.reducer;
1477
1486
  const MediaLibrary = {
1478
1487
  slice: mediaLibrarySlice,
1479
1488
  actions: { fetchMediaLibraryFolders, fetchMediaLibraryUnclassifiedFiles, fetchMediaLibraryConfig },
1480
- selectors: { selectMediaLibrary }
1489
+ selectors: { selectMediaLibrary },
1481
1490
  };
1482
1491
 
1483
1492
  const adapter = createEntityAdapter({
@@ -1922,6 +1931,22 @@ const UserCurrent = {
1922
1931
  utils: { isAdmin, isLogged },
1923
1932
  };
1924
1933
 
1934
+ const widgetApiDefinition = {
1935
+ label: 'WIDGET_Api',
1936
+ description: 'WIDGET_Api_Description',
1937
+ name: 'widget-api',
1938
+ img: '/img/fast-intranet/widget-text.png',
1939
+ available: true,
1940
+ panel: {
1941
+ useWrapper: false,
1942
+ useEditor: true,
1943
+ useWidgets: false,
1944
+ },
1945
+ };
1946
+ const widgetApiContent = {
1947
+ url: '',
1948
+ };
1949
+
1925
1950
  const widgetArticleAttachmentDefinition = {
1926
1951
  label: 'WIDGET_Article_Attachment',
1927
1952
  description: 'WIDGET_Article_Attachment_Description',
@@ -1938,6 +1963,33 @@ const widgetArticleAttachmentContent = {
1938
1963
  files: [],
1939
1964
  };
1940
1965
 
1966
+ const widgetArticleButtonDefinition = {
1967
+ label: 'WIDGET_Button',
1968
+ description: 'WIDGET_Button_Description',
1969
+ name: 'widget-article-button',
1970
+ img: '/img/article-widget-thumbnail/widget_thumbnail_button.png',
1971
+ available: true,
1972
+ panel: {
1973
+ useWrapper: false,
1974
+ useEditor: true,
1975
+ useWidgets: false,
1976
+ },
1977
+ };
1978
+ const widgetArticleButtonContent = {
1979
+ text: '',
1980
+ openingType: 'link',
1981
+ openingTypeLink: {
1982
+ url: '',
1983
+ target: '_blank',
1984
+ },
1985
+ variant: 'contained',
1986
+ fontSize: '14',
1987
+ color: '#fff',
1988
+ backgroundColor: '#4dbf96',
1989
+ buttonSize: 'lg',
1990
+ borderRadius: '4',
1991
+ };
1992
+
1941
1993
  const widgetArticleGalleryDefinition = {
1942
1994
  label: 'WIDGET_Article_Gallery',
1943
1995
  description: 'WIDGET_Article_Gallery_Description',
@@ -1970,11 +2022,11 @@ const widgetArticleImageDefinition = {
1970
2022
  };
1971
2023
  const widgetArticleImageContent = {};
1972
2024
 
1973
- const widgetArticleButtonDefinition = {
1974
- label: 'WIDGET_Button',
1975
- description: 'WIDGET_Button_Description',
1976
- name: 'widget-article-button',
1977
- img: '/img/article-widget-thumbnail/widget_thumbnail_button.png',
2025
+ const widgetArticleSliderDefinition = {
2026
+ label: 'WIDGET_Slider',
2027
+ description: 'WIDGET_Slider_Description',
2028
+ name: 'widget-article-slider',
2029
+ img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
1978
2030
  available: true,
1979
2031
  panel: {
1980
2032
  useWrapper: false,
@@ -1982,19 +2034,12 @@ const widgetArticleButtonDefinition = {
1982
2034
  useWidgets: false,
1983
2035
  },
1984
2036
  };
1985
- const widgetArticleButtonContent = {
1986
- text: '',
1987
- openingType: 'link',
1988
- openingTypeLink: {
1989
- url: '',
1990
- target: '_blank',
1991
- },
1992
- variant: 'contained',
1993
- fontSize: '14',
1994
- color: '#fff',
1995
- backgroundColor: '#4dbf96',
1996
- buttonSize: 'lg',
1997
- borderRadius: '4',
2037
+ const widgetArticleSliderContent = {
2038
+ slides: [],
2039
+ maxWidth: 800,
2040
+ loop: false,
2041
+ useDots: true,
2042
+ startAt: 0,
1998
2043
  };
1999
2044
 
2000
2045
  const widgetArticleTextDefinition = {
@@ -2033,27 +2078,34 @@ const widgetArticleTitleContent = {
2033
2078
  backgroundColor: 'transparent',
2034
2079
  };
2035
2080
 
2036
- const widgetApiDefinition = {
2037
- label: 'WIDGET_Api',
2038
- description: 'WIDGET_Api_Description',
2039
- name: 'widget-api',
2040
- img: '/img/fast-intranet/widget-text.png',
2041
- available: true,
2042
- panel: {
2043
- useWrapper: false,
2044
- useEditor: true,
2045
- useWidgets: false,
2046
- },
2047
- };
2048
- const widgetApiContent = {
2049
- url: '',
2050
- };
2081
+ const WIDGET_ARTICLE_TITLE = 'widget-article-title';
2082
+ const WIDGET_ARTICLE_TEXT = 'widget-article-text';
2083
+ const WIDGET_ARTICLE_IMAGE = 'widget-article-image';
2084
+ const WIDGET_ARTICLE_BUTTON = 'widget-article-button';
2085
+ const WIDGET_ARTICLE_GALLERY = 'widget-article-gallery';
2086
+ const WIDGET_ARTICLE_ATTACHMENT = 'widget-article-attachment';
2087
+ const WIDGET_CHECK_LIST = 'widget-check-list';
2088
+ const WIDGET_CHECK_LIST_LABEL = 'WIDGET_Check_List';
2089
+ const WIDGET_CHECK_LIST_DESCRIPTION = 'WIDGET_Check_List_Description';
2051
2090
 
2052
- const widgetArticleSliderDefinition = {
2053
- label: 'WIDGET_Slider',
2054
- description: 'WIDGET_Slider_Description',
2055
- name: 'widget-article-slider',
2056
- img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
2091
+ var WIDGETS = /*#__PURE__*/Object.freeze({
2092
+ __proto__: null,
2093
+ WIDGET_ARTICLE_TITLE: WIDGET_ARTICLE_TITLE,
2094
+ WIDGET_ARTICLE_TEXT: WIDGET_ARTICLE_TEXT,
2095
+ WIDGET_ARTICLE_IMAGE: WIDGET_ARTICLE_IMAGE,
2096
+ WIDGET_ARTICLE_BUTTON: WIDGET_ARTICLE_BUTTON,
2097
+ WIDGET_ARTICLE_GALLERY: WIDGET_ARTICLE_GALLERY,
2098
+ WIDGET_ARTICLE_ATTACHMENT: WIDGET_ARTICLE_ATTACHMENT,
2099
+ WIDGET_CHECK_LIST: WIDGET_CHECK_LIST,
2100
+ WIDGET_CHECK_LIST_LABEL: WIDGET_CHECK_LIST_LABEL,
2101
+ WIDGET_CHECK_LIST_DESCRIPTION: WIDGET_CHECK_LIST_DESCRIPTION
2102
+ });
2103
+
2104
+ const widgetCheckListDefinition = {
2105
+ label: WIDGET_CHECK_LIST_LABEL,
2106
+ description: WIDGET_CHECK_LIST_DESCRIPTION,
2107
+ name: WIDGET_CHECK_LIST,
2108
+ img: '/img/fast-intranet/widget-check-list.png',
2057
2109
  available: true,
2058
2110
  panel: {
2059
2111
  useWrapper: false,
@@ -2061,12 +2113,8 @@ const widgetArticleSliderDefinition = {
2061
2113
  useWidgets: false,
2062
2114
  },
2063
2115
  };
2064
- const widgetArticleSliderContent = {
2065
- slides: [],
2066
- maxWidth: 800,
2067
- loop: false,
2068
- useDots: true,
2069
- startAt: 0,
2116
+ const widgetCheckListContent = {
2117
+ arr: [],
2070
2118
  };
2071
2119
 
2072
2120
  function uniqid() {
@@ -2109,26 +2157,11 @@ function content(name) {
2109
2157
  return Object.assign({}, widgetArticleImageContent);
2110
2158
  case 'widget-article-text':
2111
2159
  return Object.assign({}, widgetArticleTextContent);
2160
+ case 'widget-check-list':
2161
+ return Object.assign({}, widgetCheckListContent);
2112
2162
  }
2113
2163
  }
2114
2164
 
2115
- const WIDGET_ARTICLE_TITLE = 'widget-article-title';
2116
- const WIDGET_ARTICLE_TEXT = 'widget-article-text';
2117
- const WIDGET_ARTICLE_IMAGE = 'widget-article-image';
2118
- const WIDGET_ARTICLE_BUTTON = 'widget-article-button';
2119
- const WIDGET_ARTICLE_GALLERY = 'widget-article-gallery';
2120
- const WIDGET_ARTICLE_ATTACHMENT = 'widget-article-attachment';
2121
-
2122
- var WIDGETS = /*#__PURE__*/Object.freeze({
2123
- __proto__: null,
2124
- WIDGET_ARTICLE_TITLE: WIDGET_ARTICLE_TITLE,
2125
- WIDGET_ARTICLE_TEXT: WIDGET_ARTICLE_TEXT,
2126
- WIDGET_ARTICLE_IMAGE: WIDGET_ARTICLE_IMAGE,
2127
- WIDGET_ARTICLE_BUTTON: WIDGET_ARTICLE_BUTTON,
2128
- WIDGET_ARTICLE_GALLERY: WIDGET_ARTICLE_GALLERY,
2129
- WIDGET_ARTICLE_ATTACHMENT: WIDGET_ARTICLE_ATTACHMENT
2130
- });
2131
-
2132
2165
  function widgetDefinition(name) {
2133
2166
  switch (name) {
2134
2167
  default:
@@ -2149,6 +2182,8 @@ function widgetDefinition(name) {
2149
2182
  return widgetApiDefinition;
2150
2183
  case 'widget-article-button':
2151
2184
  return widgetArticleButtonDefinition;
2185
+ case 'widget-check-list':
2186
+ return widgetCheckListDefinition;
2152
2187
  }
2153
2188
  }
2154
2189
 
@@ -2171,7 +2206,7 @@ const widgetsSlice = createSlice({
2171
2206
  registerWidget: (state, action) => {
2172
2207
  const { uniqid, widget } = action.payload;
2173
2208
  state.ids[uniqid] = widget;
2174
- state.states[uniqid] = { busy: false, initialized: false, loading: false, mounted: false, hover: false };
2209
+ state.states[uniqid] = { busy: false, initialized: false, loading: false, mounted: false, hover: false, empty: true };
2175
2210
  },
2176
2211
  updateWidget: (state, action) => {
2177
2212
  const { uniqid } = action.payload;
@@ -2214,6 +2249,7 @@ const widgetsSlice = createSlice({
2214
2249
  loading: false,
2215
2250
  mounted: false,
2216
2251
  hover: false,
2252
+ empty: true,
2217
2253
  };
2218
2254
  state.layers[layerId] = {
2219
2255
  uniqid: layerId,