jamespot-front-business 1.1.84 → 1.1.85
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 +108 -0
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +108 -0
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +2859 -139
- package/package.json +2 -2
package/dist/esm.js
CHANGED
|
@@ -2457,6 +2457,7 @@ const widgetArticleAttachmentDefinition = {
|
|
|
2457
2457
|
panel: {
|
|
2458
2458
|
useWrapper: true,
|
|
2459
2459
|
useEditor: true,
|
|
2460
|
+
useSelection: false,
|
|
2460
2461
|
useWidgets: false,
|
|
2461
2462
|
},
|
|
2462
2463
|
};
|
|
@@ -2473,6 +2474,7 @@ const widgetArticleButtonDefinition = {
|
|
|
2473
2474
|
panel: {
|
|
2474
2475
|
useWrapper: false,
|
|
2475
2476
|
useEditor: true,
|
|
2477
|
+
useSelection: false,
|
|
2476
2478
|
useWidgets: false,
|
|
2477
2479
|
},
|
|
2478
2480
|
};
|
|
@@ -2500,6 +2502,7 @@ const widgetArticleGalleryDefinition = {
|
|
|
2500
2502
|
panel: {
|
|
2501
2503
|
useWrapper: false,
|
|
2502
2504
|
useEditor: true,
|
|
2505
|
+
useSelection: false,
|
|
2503
2506
|
useWidgets: false,
|
|
2504
2507
|
},
|
|
2505
2508
|
};
|
|
@@ -2518,6 +2521,7 @@ const widgetArticleImageDefinition = {
|
|
|
2518
2521
|
panel: {
|
|
2519
2522
|
useWrapper: false,
|
|
2520
2523
|
useEditor: true,
|
|
2524
|
+
useSelection: false,
|
|
2521
2525
|
useWidgets: false,
|
|
2522
2526
|
},
|
|
2523
2527
|
};
|
|
@@ -2532,6 +2536,7 @@ const widgetArticleSliderDefinition = {
|
|
|
2532
2536
|
panel: {
|
|
2533
2537
|
useWrapper: false,
|
|
2534
2538
|
useEditor: true,
|
|
2539
|
+
useSelection: false,
|
|
2535
2540
|
useWidgets: false,
|
|
2536
2541
|
},
|
|
2537
2542
|
};
|
|
@@ -2552,6 +2557,7 @@ const widgetArticleTextDefinition = {
|
|
|
2552
2557
|
panel: {
|
|
2553
2558
|
useWrapper: false,
|
|
2554
2559
|
useEditor: true,
|
|
2560
|
+
useSelection: false,
|
|
2555
2561
|
useWidgets: false,
|
|
2556
2562
|
},
|
|
2557
2563
|
};
|
|
@@ -2568,6 +2574,7 @@ const widgetArticleTitleDefinition = {
|
|
|
2568
2574
|
panel: {
|
|
2569
2575
|
useWrapper: false,
|
|
2570
2576
|
useEditor: true,
|
|
2577
|
+
useSelection: false,
|
|
2571
2578
|
useWidgets: false,
|
|
2572
2579
|
},
|
|
2573
2580
|
};
|
|
@@ -2586,6 +2593,7 @@ const widgetCheckListDefinition = {
|
|
|
2586
2593
|
panel: {
|
|
2587
2594
|
useWrapper: true,
|
|
2588
2595
|
useEditor: true,
|
|
2596
|
+
useSelection: false,
|
|
2589
2597
|
useWidgets: false,
|
|
2590
2598
|
},
|
|
2591
2599
|
};
|
|
@@ -2603,6 +2611,7 @@ const widgetDatasourceTableDefinition = {
|
|
|
2603
2611
|
panel: {
|
|
2604
2612
|
useWrapper: true,
|
|
2605
2613
|
useEditor: true,
|
|
2614
|
+
useSelection: true,
|
|
2606
2615
|
useWidgets: false,
|
|
2607
2616
|
},
|
|
2608
2617
|
};
|
|
@@ -2624,6 +2633,7 @@ const widgetExcelDatasourceTableDefinition = {
|
|
|
2624
2633
|
panel: {
|
|
2625
2634
|
useWrapper: true,
|
|
2626
2635
|
useEditor: true,
|
|
2636
|
+
useSelection: true,
|
|
2627
2637
|
useWidgets: false,
|
|
2628
2638
|
},
|
|
2629
2639
|
};
|
|
@@ -2645,6 +2655,7 @@ const widgetPresenceDefinition = {
|
|
|
2645
2655
|
panel: {
|
|
2646
2656
|
useWrapper: true,
|
|
2647
2657
|
useEditor: true,
|
|
2658
|
+
useSelection: false,
|
|
2648
2659
|
useWidgets: false,
|
|
2649
2660
|
},
|
|
2650
2661
|
};
|
|
@@ -2663,6 +2674,7 @@ const widgetQuickSurveyDefinition = {
|
|
|
2663
2674
|
panel: {
|
|
2664
2675
|
useWrapper: true,
|
|
2665
2676
|
useEditor: true,
|
|
2677
|
+
useSelection: false,
|
|
2666
2678
|
useWidgets: false,
|
|
2667
2679
|
},
|
|
2668
2680
|
};
|
|
@@ -2676,6 +2688,66 @@ const widgetQuickSurveyContent = {
|
|
|
2676
2688
|
isNotDisabled: false,
|
|
2677
2689
|
};
|
|
2678
2690
|
|
|
2691
|
+
const widgetCalendarCalDavDefinition = {
|
|
2692
|
+
label: 'WIDGET_Calendar_CalDav',
|
|
2693
|
+
description: 'WIDGET_Calendar_CalDav_Text',
|
|
2694
|
+
name: WidgetsName.CalendarCalDav,
|
|
2695
|
+
img: '/img/fast-intranet/widget-calendar-calDav.png',
|
|
2696
|
+
available: true,
|
|
2697
|
+
displayLevel: [1, 3],
|
|
2698
|
+
panel: {
|
|
2699
|
+
useWrapper: true,
|
|
2700
|
+
useEditor: true,
|
|
2701
|
+
useSelection: true,
|
|
2702
|
+
useWidgets: false,
|
|
2703
|
+
},
|
|
2704
|
+
};
|
|
2705
|
+
const widgetCalendarCalDavContent = {
|
|
2706
|
+
calEventsLimit: false,
|
|
2707
|
+
calEventsLimitValue: 10,
|
|
2708
|
+
calEventsPromptStatus: 'shared',
|
|
2709
|
+
};
|
|
2710
|
+
|
|
2711
|
+
const widgetContactCardDavDefinition = {
|
|
2712
|
+
label: 'WIDGET_Contact_CardDav',
|
|
2713
|
+
description: 'WIDGET_Contact_CardDav_Text',
|
|
2714
|
+
name: WidgetsName.ContactCardDav,
|
|
2715
|
+
img: '/img/fast-intranet/widget-contact-cardDav.png',
|
|
2716
|
+
available: true,
|
|
2717
|
+
displayLevel: [1, 3],
|
|
2718
|
+
panel: {
|
|
2719
|
+
useWrapper: true,
|
|
2720
|
+
useEditor: true,
|
|
2721
|
+
useSelection: true,
|
|
2722
|
+
useWidgets: false,
|
|
2723
|
+
},
|
|
2724
|
+
};
|
|
2725
|
+
const widgetContactCardDavContent = {
|
|
2726
|
+
contactLimit: false,
|
|
2727
|
+
contactLimitValue: 10,
|
|
2728
|
+
contactPromptStatus: 'shared',
|
|
2729
|
+
};
|
|
2730
|
+
|
|
2731
|
+
const widgetEmailsImapDefinition = {
|
|
2732
|
+
label: 'WIDGET_Email_IMAP',
|
|
2733
|
+
description: 'WIDGET_Email_IMAP_Text',
|
|
2734
|
+
name: WidgetsName.EmailsImap,
|
|
2735
|
+
img: '/img/fast-intranet/widget-emails-imap.png',
|
|
2736
|
+
available: true,
|
|
2737
|
+
displayLevel: [1, 2, 3],
|
|
2738
|
+
panel: {
|
|
2739
|
+
useWrapper: true,
|
|
2740
|
+
useEditor: true,
|
|
2741
|
+
useSelection: true,
|
|
2742
|
+
useWidgets: false,
|
|
2743
|
+
},
|
|
2744
|
+
};
|
|
2745
|
+
const widgetEmailsImapContent = {
|
|
2746
|
+
emailsLimit: false,
|
|
2747
|
+
emailsLimitValue: 10,
|
|
2748
|
+
emailsPromptStatus: 'shared',
|
|
2749
|
+
};
|
|
2750
|
+
|
|
2679
2751
|
function widgetDefinition(name) {
|
|
2680
2752
|
switch (name) {
|
|
2681
2753
|
default:
|
|
@@ -2704,12 +2776,19 @@ function widgetDefinition(name) {
|
|
|
2704
2776
|
return widgetCheckListDefinition;
|
|
2705
2777
|
case 'widget-quick-survey':
|
|
2706
2778
|
return widgetQuickSurveyDefinition;
|
|
2779
|
+
case 'widget-calendar-calDav':
|
|
2780
|
+
return widgetCalendarCalDavDefinition;
|
|
2781
|
+
case 'widget-contact-cardDav':
|
|
2782
|
+
return widgetContactCardDavDefinition;
|
|
2783
|
+
case 'widget-emails-imap':
|
|
2784
|
+
return widgetEmailsImapDefinition;
|
|
2707
2785
|
}
|
|
2708
2786
|
}
|
|
2709
2787
|
|
|
2710
2788
|
function widgetFactory(name) {
|
|
2711
2789
|
return {
|
|
2712
2790
|
title: '',
|
|
2791
|
+
level: 3,
|
|
2713
2792
|
widget: widget(name),
|
|
2714
2793
|
};
|
|
2715
2794
|
}
|
|
@@ -2747,6 +2826,12 @@ function content(name) {
|
|
|
2747
2826
|
return Object.assign({}, widgetCheckListContent);
|
|
2748
2827
|
case 'widget-quick-survey':
|
|
2749
2828
|
return Object.assign({}, widgetQuickSurveyContent);
|
|
2829
|
+
case 'widget-calendar-calDav':
|
|
2830
|
+
return Object.assign({}, widgetCalendarCalDavContent);
|
|
2831
|
+
case 'widget-contact-cardDav':
|
|
2832
|
+
return Object.assign({}, widgetContactCardDavContent);
|
|
2833
|
+
case 'widget-emails-imap':
|
|
2834
|
+
return Object.assign({}, widgetEmailsImapContent);
|
|
2750
2835
|
}
|
|
2751
2836
|
}
|
|
2752
2837
|
|
|
@@ -2762,6 +2847,9 @@ const initialState$3 = {
|
|
|
2762
2847
|
widgetObject: {},
|
|
2763
2848
|
widgetObjectRights: {},
|
|
2764
2849
|
widgetAuthor: {},
|
|
2850
|
+
widgetWrapperStyle: {},
|
|
2851
|
+
widgetTitleStyle: {},
|
|
2852
|
+
widgetChipCount: {},
|
|
2765
2853
|
flushedWidgets: [],
|
|
2766
2854
|
rtObjectStack: [],
|
|
2767
2855
|
};
|
|
@@ -2802,6 +2890,18 @@ const widgetsSlice = createSlice({
|
|
|
2802
2890
|
const { uniqid, author } = action.payload;
|
|
2803
2891
|
state.widgetAuthor[uniqid] = author;
|
|
2804
2892
|
},
|
|
2893
|
+
setWidgetChipCount: (state, action) => {
|
|
2894
|
+
const { uniqid, count } = action.payload;
|
|
2895
|
+
state.widgetChipCount[uniqid] = count;
|
|
2896
|
+
},
|
|
2897
|
+
setWidgetWrapperStyle: (state, action) => {
|
|
2898
|
+
const { uniqid, styles } = action.payload;
|
|
2899
|
+
state.widgetWrapperStyle[uniqid] = Object.assign(Object.assign({}, state.widgetWrapperStyle[uniqid]), styles);
|
|
2900
|
+
},
|
|
2901
|
+
setWidgetTitleStyle: (state, action) => {
|
|
2902
|
+
const { uniqid, styles } = action.payload;
|
|
2903
|
+
state.widgetTitleStyle[uniqid] = Object.assign(Object.assign({}, state.widgetTitleStyle[uniqid]), styles);
|
|
2904
|
+
},
|
|
2805
2905
|
updateWidget: (state, action) => {
|
|
2806
2906
|
const { uniqid } = action.payload;
|
|
2807
2907
|
const wrapper = Object.assign({}, state.ids[uniqid]);
|
|
@@ -2998,6 +3098,7 @@ const selectWidgets = (state) => state.widgets.ids;
|
|
|
2998
3098
|
const selectFlushedWidgets = (state) => state.widgets.flushedWidgets;
|
|
2999
3099
|
const selectWidgetState = (state, uniqid) => { var _a; return (_a = state.widgets.states[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
3000
3100
|
const selectWidget = (state, uniqid) => { var _a; return (_a = state.widgets.ids[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
3101
|
+
const selectWidgetLevel = (state, uniqid) => { var _a, _b; return (_b = (_a = state.widgets.ids[uniqid]) === null || _a === void 0 ? void 0 : _a.level) !== null && _b !== void 0 ? _b : undefined; };
|
|
3001
3102
|
const selectWidgetObject = (state, uniqid) => { var _a; return (_a = state.widgets.widgetObject[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
3002
3103
|
const selectWidgetObjectUri = (state, uniqid) => {
|
|
3003
3104
|
const o = state.widgets.widgetObject[uniqid];
|
|
@@ -3008,6 +3109,9 @@ const selectWidgetObjectUri = (state, uniqid) => {
|
|
|
3008
3109
|
};
|
|
3009
3110
|
const selectWidgetObjectRights = (state, uniqid) => { var _a; return (_a = state.widgets.widgetObjectRights[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
3010
3111
|
const selectWidgetAuthor = (state, uniqid) => { var _a; return (_a = state.widgets.widgetAuthor[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
3112
|
+
const selectWidgetChipCount = (state, uniqid) => { var _a; return (_a = state.widgets.widgetChipCount[uniqid]) !== null && _a !== void 0 ? _a : 0; };
|
|
3113
|
+
const selectWidgetWrapperStyle = (state, uniqid) => { var _a; return (_a = state.widgets.widgetWrapperStyle[uniqid]) !== null && _a !== void 0 ? _a : {}; };
|
|
3114
|
+
const selectWidgetTitleStyle = (state, uniqid) => { var _a; return (_a = state.widgets.widgetTitleStyle[uniqid]) !== null && _a !== void 0 ? _a : {}; };
|
|
3011
3115
|
const isActive = (state, uniqid) => state.widgets.currentEditableWidgetId === uniqid;
|
|
3012
3116
|
const selectAllWidgetRTObject = (state, uniqid) => state.widgets.rtObjectStack.filter((el) => el.uniqid === uniqid);
|
|
3013
3117
|
const updateWidgetContent = (uniqid, content, override) => Widget.slice.actions.updateWidget({ uniqid, content, override: override !== null && override !== void 0 ? override : false });
|
|
@@ -3033,6 +3137,10 @@ const Widget = {
|
|
|
3033
3137
|
selectWidgetObjectRights,
|
|
3034
3138
|
selectAllWidgetRTObject,
|
|
3035
3139
|
selectFlushedWidgets,
|
|
3140
|
+
selectWidgetLevel,
|
|
3141
|
+
selectWidgetWrapperStyle,
|
|
3142
|
+
selectWidgetTitleStyle,
|
|
3143
|
+
selectWidgetChipCount,
|
|
3036
3144
|
},
|
|
3037
3145
|
};
|
|
3038
3146
|
|