jamespot-front-business 1.1.56 → 1.1.57
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 +26 -3
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +26 -3
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +14336 -90375
- package/package.json +2 -2
package/dist/cjs.js
CHANGED
|
@@ -2225,7 +2225,7 @@ const widgetDatasourceTableDefinition = {
|
|
|
2225
2225
|
label: 'WIDGET_Datasource_Table',
|
|
2226
2226
|
description: 'WIDGET_Datasource_Table_Description',
|
|
2227
2227
|
name: jamespot.WidgetsName.DatasourceTable,
|
|
2228
|
-
img: '/img/fast-intranet/widget-
|
|
2228
|
+
img: '/img/fast-intranet/widget-datasource-table.png',
|
|
2229
2229
|
available: true,
|
|
2230
2230
|
panel: {
|
|
2231
2231
|
useWrapper: false,
|
|
@@ -2242,6 +2242,27 @@ const widgetDatasourceTaleContent = {
|
|
|
2242
2242
|
limit: 20,
|
|
2243
2243
|
};
|
|
2244
2244
|
|
|
2245
|
+
const widgetExcelDatasourceTableDefinition = {
|
|
2246
|
+
label: 'WIDGET_Excel_Datasource_Table',
|
|
2247
|
+
description: 'WIDGET_Excel_Datasource_Table_Text',
|
|
2248
|
+
name: jamespot.WidgetsName.ExcelDatasourceTable,
|
|
2249
|
+
img: '/img/fast-intranet/widget-excel-datasource-table.png',
|
|
2250
|
+
available: true,
|
|
2251
|
+
panel: {
|
|
2252
|
+
useWrapper: false,
|
|
2253
|
+
useEditor: true,
|
|
2254
|
+
useWidgets: false,
|
|
2255
|
+
},
|
|
2256
|
+
};
|
|
2257
|
+
const widgetExcelDatasourceTaleContent = {
|
|
2258
|
+
tableHeadColor: '#f1f1f1',
|
|
2259
|
+
tableHeadTextColor: '#000',
|
|
2260
|
+
tableHeadIconColor: '#000',
|
|
2261
|
+
tableRowColor: '#f5f5f5',
|
|
2262
|
+
tableRowTextColor: '#000',
|
|
2263
|
+
limit: 20,
|
|
2264
|
+
};
|
|
2265
|
+
|
|
2245
2266
|
function widgetDefinition(name) {
|
|
2246
2267
|
switch (name) {
|
|
2247
2268
|
default:
|
|
@@ -2262,6 +2283,8 @@ function widgetDefinition(name) {
|
|
|
2262
2283
|
return widgetApiDefinition;
|
|
2263
2284
|
case 'widget-datasource-table':
|
|
2264
2285
|
return widgetDatasourceTableDefinition;
|
|
2286
|
+
case 'widget-excel-datasource-table':
|
|
2287
|
+
return widgetExcelDatasourceTableDefinition;
|
|
2265
2288
|
case 'widget-article-button':
|
|
2266
2289
|
return widgetArticleButtonDefinition;
|
|
2267
2290
|
case 'widget-check-list':
|
|
@@ -2291,6 +2314,8 @@ function content(name) {
|
|
|
2291
2314
|
return Object.assign({}, widgetApiContent);
|
|
2292
2315
|
case 'widget-datasource-table':
|
|
2293
2316
|
return Object.assign({}, widgetDatasourceTaleContent);
|
|
2317
|
+
case 'widget-excel-datasource-table':
|
|
2318
|
+
return Object.assign({}, widgetExcelDatasourceTaleContent);
|
|
2294
2319
|
case 'widget-article-slider':
|
|
2295
2320
|
return Object.assign({}, widgetArticleSliderContent);
|
|
2296
2321
|
case 'widget-article-gallery':
|
|
@@ -2454,7 +2479,6 @@ const widgetsSlice = toolkit.createSlice({
|
|
|
2454
2479
|
const selectToken = (state) => state.widgets.token;
|
|
2455
2480
|
const selectModal = (state) => state.widgets.modal;
|
|
2456
2481
|
const selectWidgets = (state) => state.widgets.ids;
|
|
2457
|
-
const selectWidgetContent = (state, uniqid) => { var _a; return (_a = state.widgets.ids[uniqid]) === null || _a === void 0 ? void 0 : _a.widget.content; };
|
|
2458
2482
|
const selectWidgetState = (state, uniqid) => { var _a; return (_a = state.widgets.states[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
2459
2483
|
const selectWidget = (state, uniqid) => { var _a; return (_a = state.widgets.ids[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
2460
2484
|
const selectWidgetObject = (state, uniqid) => { var _a; return (_a = state.widgets.widgetObject[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
@@ -2474,7 +2498,6 @@ const Widget = {
|
|
|
2474
2498
|
selectWidgets,
|
|
2475
2499
|
selectWidget,
|
|
2476
2500
|
selectWidgetState,
|
|
2477
|
-
selectWidgetContent,
|
|
2478
2501
|
selectModal,
|
|
2479
2502
|
selectWidgetObject,
|
|
2480
2503
|
},
|