jamespot-front-business 1.1.83 → 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 CHANGED
@@ -2465,6 +2465,7 @@ const widgetArticleAttachmentDefinition = {
2465
2465
  panel: {
2466
2466
  useWrapper: true,
2467
2467
  useEditor: true,
2468
+ useSelection: false,
2468
2469
  useWidgets: false,
2469
2470
  },
2470
2471
  };
@@ -2481,6 +2482,7 @@ const widgetArticleButtonDefinition = {
2481
2482
  panel: {
2482
2483
  useWrapper: false,
2483
2484
  useEditor: true,
2485
+ useSelection: false,
2484
2486
  useWidgets: false,
2485
2487
  },
2486
2488
  };
@@ -2508,6 +2510,7 @@ const widgetArticleGalleryDefinition = {
2508
2510
  panel: {
2509
2511
  useWrapper: false,
2510
2512
  useEditor: true,
2513
+ useSelection: false,
2511
2514
  useWidgets: false,
2512
2515
  },
2513
2516
  };
@@ -2526,6 +2529,7 @@ const widgetArticleImageDefinition = {
2526
2529
  panel: {
2527
2530
  useWrapper: false,
2528
2531
  useEditor: true,
2532
+ useSelection: false,
2529
2533
  useWidgets: false,
2530
2534
  },
2531
2535
  };
@@ -2540,6 +2544,7 @@ const widgetArticleSliderDefinition = {
2540
2544
  panel: {
2541
2545
  useWrapper: false,
2542
2546
  useEditor: true,
2547
+ useSelection: false,
2543
2548
  useWidgets: false,
2544
2549
  },
2545
2550
  };
@@ -2560,6 +2565,7 @@ const widgetArticleTextDefinition = {
2560
2565
  panel: {
2561
2566
  useWrapper: false,
2562
2567
  useEditor: true,
2568
+ useSelection: false,
2563
2569
  useWidgets: false,
2564
2570
  },
2565
2571
  };
@@ -2576,6 +2582,7 @@ const widgetArticleTitleDefinition = {
2576
2582
  panel: {
2577
2583
  useWrapper: false,
2578
2584
  useEditor: true,
2585
+ useSelection: false,
2579
2586
  useWidgets: false,
2580
2587
  },
2581
2588
  };
@@ -2594,6 +2601,7 @@ const widgetCheckListDefinition = {
2594
2601
  panel: {
2595
2602
  useWrapper: true,
2596
2603
  useEditor: true,
2604
+ useSelection: false,
2597
2605
  useWidgets: false,
2598
2606
  },
2599
2607
  };
@@ -2611,6 +2619,7 @@ const widgetDatasourceTableDefinition = {
2611
2619
  panel: {
2612
2620
  useWrapper: true,
2613
2621
  useEditor: true,
2622
+ useSelection: true,
2614
2623
  useWidgets: false,
2615
2624
  },
2616
2625
  };
@@ -2632,6 +2641,7 @@ const widgetExcelDatasourceTableDefinition = {
2632
2641
  panel: {
2633
2642
  useWrapper: true,
2634
2643
  useEditor: true,
2644
+ useSelection: true,
2635
2645
  useWidgets: false,
2636
2646
  },
2637
2647
  };
@@ -2653,6 +2663,7 @@ const widgetPresenceDefinition = {
2653
2663
  panel: {
2654
2664
  useWrapper: true,
2655
2665
  useEditor: true,
2666
+ useSelection: false,
2656
2667
  useWidgets: false,
2657
2668
  },
2658
2669
  };
@@ -2671,6 +2682,7 @@ const widgetQuickSurveyDefinition = {
2671
2682
  panel: {
2672
2683
  useWrapper: true,
2673
2684
  useEditor: true,
2685
+ useSelection: false,
2674
2686
  useWidgets: false,
2675
2687
  },
2676
2688
  };
@@ -2684,6 +2696,66 @@ const widgetQuickSurveyContent = {
2684
2696
  isNotDisabled: false,
2685
2697
  };
2686
2698
 
2699
+ const widgetCalendarCalDavDefinition = {
2700
+ label: 'WIDGET_Calendar_CalDav',
2701
+ description: 'WIDGET_Calendar_CalDav_Text',
2702
+ name: jamespot.WidgetsName.CalendarCalDav,
2703
+ img: '/img/fast-intranet/widget-calendar-calDav.png',
2704
+ available: true,
2705
+ displayLevel: [1, 3],
2706
+ panel: {
2707
+ useWrapper: true,
2708
+ useEditor: true,
2709
+ useSelection: true,
2710
+ useWidgets: false,
2711
+ },
2712
+ };
2713
+ const widgetCalendarCalDavContent = {
2714
+ calEventsLimit: false,
2715
+ calEventsLimitValue: 10,
2716
+ calEventsPromptStatus: 'shared',
2717
+ };
2718
+
2719
+ const widgetContactCardDavDefinition = {
2720
+ label: 'WIDGET_Contact_CardDav',
2721
+ description: 'WIDGET_Contact_CardDav_Text',
2722
+ name: jamespot.WidgetsName.ContactCardDav,
2723
+ img: '/img/fast-intranet/widget-contact-cardDav.png',
2724
+ available: true,
2725
+ displayLevel: [1, 3],
2726
+ panel: {
2727
+ useWrapper: true,
2728
+ useEditor: true,
2729
+ useSelection: true,
2730
+ useWidgets: false,
2731
+ },
2732
+ };
2733
+ const widgetContactCardDavContent = {
2734
+ contactLimit: false,
2735
+ contactLimitValue: 10,
2736
+ contactPromptStatus: 'shared',
2737
+ };
2738
+
2739
+ const widgetEmailsImapDefinition = {
2740
+ label: 'WIDGET_Email_IMAP',
2741
+ description: 'WIDGET_Email_IMAP_Text',
2742
+ name: jamespot.WidgetsName.EmailsImap,
2743
+ img: '/img/fast-intranet/widget-emails-imap.png',
2744
+ available: true,
2745
+ displayLevel: [1, 2, 3],
2746
+ panel: {
2747
+ useWrapper: true,
2748
+ useEditor: true,
2749
+ useSelection: true,
2750
+ useWidgets: false,
2751
+ },
2752
+ };
2753
+ const widgetEmailsImapContent = {
2754
+ emailsLimit: false,
2755
+ emailsLimitValue: 10,
2756
+ emailsPromptStatus: 'shared',
2757
+ };
2758
+
2687
2759
  function widgetDefinition(name) {
2688
2760
  switch (name) {
2689
2761
  default:
@@ -2712,12 +2784,19 @@ function widgetDefinition(name) {
2712
2784
  return widgetCheckListDefinition;
2713
2785
  case 'widget-quick-survey':
2714
2786
  return widgetQuickSurveyDefinition;
2787
+ case 'widget-calendar-calDav':
2788
+ return widgetCalendarCalDavDefinition;
2789
+ case 'widget-contact-cardDav':
2790
+ return widgetContactCardDavDefinition;
2791
+ case 'widget-emails-imap':
2792
+ return widgetEmailsImapDefinition;
2715
2793
  }
2716
2794
  }
2717
2795
 
2718
2796
  function widgetFactory(name) {
2719
2797
  return {
2720
2798
  title: '',
2799
+ level: 3,
2721
2800
  widget: widget(name),
2722
2801
  };
2723
2802
  }
@@ -2755,6 +2834,12 @@ function content(name) {
2755
2834
  return Object.assign({}, widgetCheckListContent);
2756
2835
  case 'widget-quick-survey':
2757
2836
  return Object.assign({}, widgetQuickSurveyContent);
2837
+ case 'widget-calendar-calDav':
2838
+ return Object.assign({}, widgetCalendarCalDavContent);
2839
+ case 'widget-contact-cardDav':
2840
+ return Object.assign({}, widgetContactCardDavContent);
2841
+ case 'widget-emails-imap':
2842
+ return Object.assign({}, widgetEmailsImapContent);
2758
2843
  }
2759
2844
  }
2760
2845
 
@@ -2770,6 +2855,9 @@ const initialState$3 = {
2770
2855
  widgetObject: {},
2771
2856
  widgetObjectRights: {},
2772
2857
  widgetAuthor: {},
2858
+ widgetWrapperStyle: {},
2859
+ widgetTitleStyle: {},
2860
+ widgetChipCount: {},
2773
2861
  flushedWidgets: [],
2774
2862
  rtObjectStack: [],
2775
2863
  };
@@ -2810,6 +2898,18 @@ const widgetsSlice = toolkit.createSlice({
2810
2898
  const { uniqid, author } = action.payload;
2811
2899
  state.widgetAuthor[uniqid] = author;
2812
2900
  },
2901
+ setWidgetChipCount: (state, action) => {
2902
+ const { uniqid, count } = action.payload;
2903
+ state.widgetChipCount[uniqid] = count;
2904
+ },
2905
+ setWidgetWrapperStyle: (state, action) => {
2906
+ const { uniqid, styles } = action.payload;
2907
+ state.widgetWrapperStyle[uniqid] = Object.assign(Object.assign({}, state.widgetWrapperStyle[uniqid]), styles);
2908
+ },
2909
+ setWidgetTitleStyle: (state, action) => {
2910
+ const { uniqid, styles } = action.payload;
2911
+ state.widgetTitleStyle[uniqid] = Object.assign(Object.assign({}, state.widgetTitleStyle[uniqid]), styles);
2912
+ },
2813
2913
  updateWidget: (state, action) => {
2814
2914
  const { uniqid } = action.payload;
2815
2915
  const wrapper = Object.assign({}, state.ids[uniqid]);
@@ -3006,6 +3106,7 @@ const selectWidgets = (state) => state.widgets.ids;
3006
3106
  const selectFlushedWidgets = (state) => state.widgets.flushedWidgets;
3007
3107
  const selectWidgetState = (state, uniqid) => { var _a; return (_a = state.widgets.states[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
3008
3108
  const selectWidget = (state, uniqid) => { var _a; return (_a = state.widgets.ids[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
3109
+ 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; };
3009
3110
  const selectWidgetObject = (state, uniqid) => { var _a; return (_a = state.widgets.widgetObject[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
3010
3111
  const selectWidgetObjectUri = (state, uniqid) => {
3011
3112
  const o = state.widgets.widgetObject[uniqid];
@@ -3016,6 +3117,9 @@ const selectWidgetObjectUri = (state, uniqid) => {
3016
3117
  };
3017
3118
  const selectWidgetObjectRights = (state, uniqid) => { var _a; return (_a = state.widgets.widgetObjectRights[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
3018
3119
  const selectWidgetAuthor = (state, uniqid) => { var _a; return (_a = state.widgets.widgetAuthor[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
3120
+ const selectWidgetChipCount = (state, uniqid) => { var _a; return (_a = state.widgets.widgetChipCount[uniqid]) !== null && _a !== void 0 ? _a : 0; };
3121
+ const selectWidgetWrapperStyle = (state, uniqid) => { var _a; return (_a = state.widgets.widgetWrapperStyle[uniqid]) !== null && _a !== void 0 ? _a : {}; };
3122
+ const selectWidgetTitleStyle = (state, uniqid) => { var _a; return (_a = state.widgets.widgetTitleStyle[uniqid]) !== null && _a !== void 0 ? _a : {}; };
3019
3123
  const isActive = (state, uniqid) => state.widgets.currentEditableWidgetId === uniqid;
3020
3124
  const selectAllWidgetRTObject = (state, uniqid) => state.widgets.rtObjectStack.filter((el) => el.uniqid === uniqid);
3021
3125
  const updateWidgetContent = (uniqid, content, override) => Widget.slice.actions.updateWidget({ uniqid, content, override: override !== null && override !== void 0 ? override : false });
@@ -3041,6 +3145,10 @@ const Widget = {
3041
3145
  selectWidgetObjectRights,
3042
3146
  selectAllWidgetRTObject,
3043
3147
  selectFlushedWidgets,
3148
+ selectWidgetLevel,
3149
+ selectWidgetWrapperStyle,
3150
+ selectWidgetTitleStyle,
3151
+ selectWidgetChipCount,
3044
3152
  },
3045
3153
  };
3046
3154