@plurid/plurid-ui-components-react 0.0.0-20 → 0.0.0-22
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/distribution/components/pluridal/containers/DashboardsRenderer/components/RenderArea/index.d.ts +15 -0
- package/distribution/components/pluridal/containers/DashboardsRenderer/components/RenderArea/styled.d.ts +5 -0
- package/distribution/components/pluridal/containers/DashboardsRenderer/components/Sidebar/components/Selector/index.d.ts +13 -0
- package/distribution/components/pluridal/containers/DashboardsRenderer/components/Sidebar/components/Selector/styled.d.ts +11 -0
- package/distribution/components/pluridal/containers/DashboardsRenderer/components/Sidebar/index.d.ts +21 -0
- package/distribution/components/pluridal/containers/DashboardsRenderer/components/Sidebar/styled.d.ts +20 -0
- package/distribution/components/pluridal/containers/DashboardsRenderer/data.d.ts +18 -0
- package/distribution/components/pluridal/containers/DashboardsRenderer/index.d.ts +24 -0
- package/distribution/components/pluridal/containers/DashboardsRenderer/styled.d.ts +8 -0
- package/distribution/components/pluridal/containers/EntityView/index.d.ts +1 -5
- package/distribution/components/pluridal/containers/EntityView/logic.d.ts +0 -4
- package/distribution/components/pluridal/containers/index.d.ts +1 -0
- package/distribution/components/pluridal/index.d.ts +1 -0
- package/distribution/data/interfaces/index.d.ts +8 -0
- package/distribution/index.d.ts +34 -1
- package/distribution/index.es.js +329 -26
- package/distribution/index.es.js.map +1 -1
- package/distribution/index.js +362 -37
- package/distribution/index.js.map +1 -1
- package/package.json +1 -1
package/distribution/index.js
CHANGED
|
@@ -2585,6 +2585,306 @@ const universal = {
|
|
|
2585
2585
|
varia: varia
|
|
2586
2586
|
};
|
|
2587
2587
|
|
|
2588
|
+
const StyledDashboardsRenderer = styled__default.default.div`
|
|
2589
|
+
display: grid;
|
|
2590
|
+
grid-template-columns: ${({fullRenderArea: fullRenderArea, compactSelectors: compactSelectors}) => {
|
|
2591
|
+
if (fullRenderArea) {
|
|
2592
|
+
return "1fr";
|
|
2593
|
+
}
|
|
2594
|
+
return compactSelectors ? "60px auto" : "1fr 4fr";
|
|
2595
|
+
}};
|
|
2596
|
+
min-height: 700px;
|
|
2597
|
+
`;
|
|
2598
|
+
|
|
2599
|
+
const StyledNoDashboardRender = styled__default.default.div`
|
|
2600
|
+
display: grid;
|
|
2601
|
+
place-content: center;
|
|
2602
|
+
`;
|
|
2603
|
+
|
|
2604
|
+
const StyledSidebar = styled__default.default.div`
|
|
2605
|
+
`;
|
|
2606
|
+
|
|
2607
|
+
const StyledSelectors = styled__default.default.div`
|
|
2608
|
+
height: 100%;
|
|
2609
|
+
display: grid;
|
|
2610
|
+
justify-content: space-between;
|
|
2611
|
+
grid-template-columns: 1fr;
|
|
2612
|
+
grid-template-rows: ${({helpItemsCount: helpItemsCount}) => `120px auto ${45 * helpItemsCount}px`};
|
|
2613
|
+
|
|
2614
|
+
background-color: ${({theme: theme}) => theme.backgroundColorTertiary};
|
|
2615
|
+
box-shadow: inset -3px 0px 3px 0px ${({theme: theme}) => theme.boxShadowUmbraColor};
|
|
2616
|
+
|
|
2617
|
+
ul {
|
|
2618
|
+
list-style: none;
|
|
2619
|
+
padding: 0;
|
|
2620
|
+
margin: 0;
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
li {
|
|
2624
|
+
cursor: pointer;
|
|
2625
|
+
padding: 0.7rem 1.4rem;
|
|
2626
|
+
user-select: none;
|
|
2627
|
+
}
|
|
2628
|
+
`;
|
|
2629
|
+
|
|
2630
|
+
const StyledBranding = styled__default.default.div`
|
|
2631
|
+
display: grid;
|
|
2632
|
+
place-content: center;
|
|
2633
|
+
grid-gap: 0.5rem;
|
|
2634
|
+
height: 100%;
|
|
2635
|
+
font-size: 0.9rem;
|
|
2636
|
+
text-align: center;
|
|
2637
|
+
user-select: none;
|
|
2638
|
+
|
|
2639
|
+
img {
|
|
2640
|
+
cursor: pointer;
|
|
2641
|
+
}
|
|
2642
|
+
`;
|
|
2643
|
+
|
|
2644
|
+
const StyledHelp = styled__default.default.div`
|
|
2645
|
+
li {
|
|
2646
|
+
font-size: 0.9rem;
|
|
2647
|
+
}
|
|
2648
|
+
`;
|
|
2649
|
+
|
|
2650
|
+
const StyledHelpItem = styled__default.default.li`
|
|
2651
|
+
display: grid;
|
|
2652
|
+
align-items: center;
|
|
2653
|
+
grid-gap: 0.5rem;
|
|
2654
|
+
grid-template-columns: ${({compactSelectors: compactSelectors}) => compactSelectors ? "16px" : "16px auto 16px"};
|
|
2655
|
+
min-height: 45px;
|
|
2656
|
+
`;
|
|
2657
|
+
|
|
2658
|
+
const StyledSelector = styled__default.default.li`
|
|
2659
|
+
background-color: ${({theme: theme, selected: selected}) => selected ? theme.backgroundColorPrimary : "initial"};
|
|
2660
|
+
|
|
2661
|
+
:hover {
|
|
2662
|
+
background-color: ${({theme: theme}) => theme.backgroundColorPrimary};
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
display: grid;
|
|
2666
|
+
grid-template-columns: ${({compactSelectors: compactSelectors}) => compactSelectors ? "16px" : "16px auto"};
|
|
2667
|
+
grid-gap: 0.7rem;
|
|
2668
|
+
min-height: 45px;
|
|
2669
|
+
align-items: center;
|
|
2670
|
+
position: relative;
|
|
2671
|
+
`;
|
|
2672
|
+
|
|
2673
|
+
const StyledSelectorRelativeLabel = styled__default.default.div`
|
|
2674
|
+
position: absolute;
|
|
2675
|
+
left: 50px;
|
|
2676
|
+
z-index: 9999;
|
|
2677
|
+
min-height: 45px;
|
|
2678
|
+
display: grid;
|
|
2679
|
+
align-items: center;
|
|
2680
|
+
padding-right: 0.5rem;
|
|
2681
|
+
background-color: ${({theme: theme}) => theme.backgroundColorPrimaryAlpha};
|
|
2682
|
+
`;
|
|
2683
|
+
|
|
2684
|
+
const Selector = properties => {
|
|
2685
|
+
const {data: data, selectedDashboard: selectedDashboard, compactSelectors: compactSelectors, theme: theme, setSelectedDashboard: setSelectedDashboard, rendererID: rendererID} = properties;
|
|
2686
|
+
const {id: id, icon: icon, label: label} = data;
|
|
2687
|
+
const Icon = icon;
|
|
2688
|
+
const selected = id === selectedDashboard;
|
|
2689
|
+
const [mouseOver, setMouseOver] = React.useState(false);
|
|
2690
|
+
React.useEffect((() => {
|
|
2691
|
+
let mounted = true;
|
|
2692
|
+
if (mouseOver) {
|
|
2693
|
+
setTimeout((() => {
|
|
2694
|
+
if (!mounted) {
|
|
2695
|
+
return;
|
|
2696
|
+
}
|
|
2697
|
+
setMouseOver(false);
|
|
2698
|
+
}), 2e3);
|
|
2699
|
+
}
|
|
2700
|
+
return () => {
|
|
2701
|
+
mounted = false;
|
|
2702
|
+
};
|
|
2703
|
+
}), [ mouseOver ]);
|
|
2704
|
+
const selectorIcon = !icon ? React__default.default.createElement(pluridIconsReact.PluridIconSpace, {
|
|
2705
|
+
theme: theme
|
|
2706
|
+
}) : typeof icon === "function" ? React__default.default.createElement(Icon, {
|
|
2707
|
+
theme: theme
|
|
2708
|
+
}) : React__default.default.createElement(React__default.default.Fragment, null, icon);
|
|
2709
|
+
return React__default.default.createElement(StyledSelector, {
|
|
2710
|
+
key: (rendererID || "") + id,
|
|
2711
|
+
onClick: () => setSelectedDashboard(id),
|
|
2712
|
+
onMouseEnter: () => setMouseOver(true),
|
|
2713
|
+
onMouseLeave: () => setMouseOver(false),
|
|
2714
|
+
theme: theme,
|
|
2715
|
+
selected: selected,
|
|
2716
|
+
compactSelectors: compactSelectors
|
|
2717
|
+
}, selectorIcon, !compactSelectors && React__default.default.createElement("div", null, label), compactSelectors && mouseOver && React__default.default.createElement(StyledSelectorRelativeLabel, {
|
|
2718
|
+
theme: theme
|
|
2719
|
+
}, label));
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
const Sidebar = properties => {
|
|
2723
|
+
const {dashboards: dashboards, theme: theme, compactSelectors: compactSelectors, setCompactSelectors: setCompactSelectors, selectedDashboard: selectedDashboard, setSelectedDashboard: setSelectedDashboard, identonym: identonym, usageType: usageType, openManual: openManual, logout: logout, rendererID: rendererID, brandingName: brandingName, brandingNameStyle: brandingNameStyle, brandingLogo: brandingLogo} = properties;
|
|
2724
|
+
const openManualCount = openManual ? 1 : 0;
|
|
2725
|
+
const usageTypeCount = usageType === "PRIVATE_USAGE" ? 1 : 0;
|
|
2726
|
+
const helpItemsCount = openManualCount + usageTypeCount;
|
|
2727
|
+
const [mouseOverSelectors, setMouseOverSelectors] = React.useState(false);
|
|
2728
|
+
const branding = React__default.default.createElement(StyledBranding, {
|
|
2729
|
+
compactSelectors: compactSelectors
|
|
2730
|
+
}, !compactSelectors && React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement("div", null, brandingLogo && React__default.default.createElement("img", {
|
|
2731
|
+
src: brandingLogo,
|
|
2732
|
+
alt: "icon",
|
|
2733
|
+
height: 40,
|
|
2734
|
+
onClick: () => {
|
|
2735
|
+
setCompactSelectors(true);
|
|
2736
|
+
setMouseOverSelectors(false);
|
|
2737
|
+
}
|
|
2738
|
+
})), brandingName && React__default.default.createElement("div", {
|
|
2739
|
+
style: brandingNameStyle
|
|
2740
|
+
}, brandingName)), compactSelectors && mouseOverSelectors && React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(pluridIconsReact.PluridIconArrowRight, {
|
|
2741
|
+
atClick: () => setCompactSelectors(false)
|
|
2742
|
+
}), React__default.default.createElement("div", null, "ㅤ")));
|
|
2743
|
+
const selectors = React__default.default.createElement("ul", null, dashboards.map((dashboard => React__default.default.createElement(Selector, {
|
|
2744
|
+
key: dashboard.id,
|
|
2745
|
+
data: dashboard,
|
|
2746
|
+
compactSelectors: compactSelectors,
|
|
2747
|
+
theme: theme,
|
|
2748
|
+
selectedDashboard: selectedDashboard,
|
|
2749
|
+
setSelectedDashboard: setSelectedDashboard,
|
|
2750
|
+
rendererID: rendererID
|
|
2751
|
+
}))));
|
|
2752
|
+
const help = React__default.default.createElement(StyledHelp, null, mouseOverSelectors && React__default.default.createElement("ul", null, openManual && React__default.default.createElement(StyledHelpItem, {
|
|
2753
|
+
onClick: () => openManual(),
|
|
2754
|
+
compactSelectors: compactSelectors
|
|
2755
|
+
}, React__default.default.createElement(pluridIconsReact.PluridIconDocuments, null), !compactSelectors && React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement("div", null, "manual"), React__default.default.createElement(pluridIconsReact.PluridIconExternalLink, null))), usageType === "PRIVATE_USAGE" && logout && React__default.default.createElement(StyledHelpItem, {
|
|
2756
|
+
onClick: () => logout(),
|
|
2757
|
+
compactSelectors: compactSelectors
|
|
2758
|
+
}, React__default.default.createElement(pluridIconsReact.PluridIconExit, null), !compactSelectors && React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement("div", null, "logout (", identonym, ")"), React__default.default.createElement("div", null)))));
|
|
2759
|
+
return React__default.default.createElement(StyledSidebar, {
|
|
2760
|
+
theme: theme
|
|
2761
|
+
}, React__default.default.createElement(StyledSelectors, {
|
|
2762
|
+
onMouseEnter: () => setMouseOverSelectors(true),
|
|
2763
|
+
onMouseLeave: () => setMouseOverSelectors(false),
|
|
2764
|
+
theme: theme,
|
|
2765
|
+
compactSelectors: compactSelectors,
|
|
2766
|
+
helpItemsCount: helpItemsCount
|
|
2767
|
+
}, branding, selectors, help));
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
const StyledRenderArea = styled__default.default.div`
|
|
2771
|
+
`;
|
|
2772
|
+
|
|
2773
|
+
const RenderArea = properties => {
|
|
2774
|
+
const {dashboards: dashboards, selectedDashboard: selectedDashboard, renderView: renderView, fullRenderArea: fullRenderArea, theme: theme, setSelectedDashboard: setSelectedDashboard, setRenderView: setRenderView, setFullRenderArea: setFullRenderArea} = properties;
|
|
2775
|
+
const dashboard = dashboards.find((dashboard => dashboard.id === selectedDashboard));
|
|
2776
|
+
if (!dashboard) {
|
|
2777
|
+
return React__default.default.createElement(React__default.default.Fragment, null);
|
|
2778
|
+
}
|
|
2779
|
+
const resolveView = () => {
|
|
2780
|
+
const dashboard = dashboards.find((dashboard => dashboard.id === selectedDashboard));
|
|
2781
|
+
if (!dashboard) {
|
|
2782
|
+
return;
|
|
2783
|
+
}
|
|
2784
|
+
const renderViewInDashboard = dashboard.renderers[renderView];
|
|
2785
|
+
if (renderViewInDashboard) {
|
|
2786
|
+
return renderView;
|
|
2787
|
+
}
|
|
2788
|
+
if (dashboard.defaultRender) {
|
|
2789
|
+
return dashboard.defaultRender;
|
|
2790
|
+
}
|
|
2791
|
+
return Object.keys(dashboard.renderers)[0];
|
|
2792
|
+
};
|
|
2793
|
+
const renderID = resolveView();
|
|
2794
|
+
React.useEffect((() => {
|
|
2795
|
+
if (renderID && renderID !== renderView) {
|
|
2796
|
+
setRenderView(renderID);
|
|
2797
|
+
}
|
|
2798
|
+
}), [ renderID ]);
|
|
2799
|
+
if (!renderID) {
|
|
2800
|
+
return React__default.default.createElement(React__default.default.Fragment, null);
|
|
2801
|
+
}
|
|
2802
|
+
const DashboardRender = dashboard.renderers[renderID];
|
|
2803
|
+
if (!DashboardRender) {
|
|
2804
|
+
return React__default.default.createElement(React__default.default.Fragment, null);
|
|
2805
|
+
}
|
|
2806
|
+
return React__default.default.createElement(StyledRenderArea, {
|
|
2807
|
+
theme: theme
|
|
2808
|
+
}, React__default.default.createElement(DashboardRender, {
|
|
2809
|
+
theme: theme,
|
|
2810
|
+
selectedDashboard: selectedDashboard,
|
|
2811
|
+
setSelectedDashboard: setSelectedDashboard,
|
|
2812
|
+
renderView: renderView,
|
|
2813
|
+
setRenderView: setRenderView,
|
|
2814
|
+
fullRenderArea: fullRenderArea,
|
|
2815
|
+
setFullRenderArea: setFullRenderArea
|
|
2816
|
+
}));
|
|
2817
|
+
};
|
|
2818
|
+
|
|
2819
|
+
const DashboardsRenderer$1 = properties => {
|
|
2820
|
+
const {dashboards: dashboards, theme: theme, rendererID: rendererID, identonym: identonym, usageType: usageType, brandingName: brandingName, brandingNameStyle: brandingNameStyle, brandingLogo: brandingLogo, activeDashboard: activeDashboard, activeRender: activeRender, compactSelectors: compactSelectorsProperty, fullRenderArea: fullRenderAreaProperty, noDashboardRender: noDashboardRender, atDashboardChange: atDashboardChange, atUIChange: atUIChange, openManual: openManual, logout: logout} = properties;
|
|
2821
|
+
const [compactSelectors, setCompactSelectors] = React.useState(compactSelectorsProperty !== null && compactSelectorsProperty !== void 0 ? compactSelectorsProperty : false);
|
|
2822
|
+
const [fullRenderArea, setFullRenderArea] = React.useState(fullRenderAreaProperty !== null && fullRenderAreaProperty !== void 0 ? fullRenderAreaProperty : false);
|
|
2823
|
+
const [selectedDashboard, setSelectedDashboard] = React.useState(activeDashboard || "");
|
|
2824
|
+
const [renderView, setRenderView] = React.useState(activeRender || "");
|
|
2825
|
+
React.useEffect((() => {
|
|
2826
|
+
if (!activeDashboard) {
|
|
2827
|
+
return;
|
|
2828
|
+
}
|
|
2829
|
+
if (selectedDashboard === activeDashboard) {
|
|
2830
|
+
return;
|
|
2831
|
+
}
|
|
2832
|
+
setSelectedDashboard(activeDashboard);
|
|
2833
|
+
}), [ activeDashboard ]);
|
|
2834
|
+
React.useEffect((() => {
|
|
2835
|
+
if (atDashboardChange) {
|
|
2836
|
+
atDashboardChange(renderView);
|
|
2837
|
+
}
|
|
2838
|
+
}), [ renderView ]);
|
|
2839
|
+
React.useEffect((() => {
|
|
2840
|
+
if (typeof compactSelectorsProperty === "boolean") {
|
|
2841
|
+
setCompactSelectors(compactSelectorsProperty);
|
|
2842
|
+
}
|
|
2843
|
+
if (typeof fullRenderAreaProperty === "boolean") {
|
|
2844
|
+
setFullRenderArea(fullRenderAreaProperty);
|
|
2845
|
+
}
|
|
2846
|
+
}), [ compactSelectorsProperty, fullRenderAreaProperty ]);
|
|
2847
|
+
React.useEffect((() => {
|
|
2848
|
+
if (atUIChange) {
|
|
2849
|
+
atUIChange("compactSelectors", compactSelectors);
|
|
2850
|
+
}
|
|
2851
|
+
}), [ compactSelectors ]);
|
|
2852
|
+
React.useEffect((() => {
|
|
2853
|
+
if (atUIChange) {
|
|
2854
|
+
atUIChange("fullRenderArea", fullRenderArea);
|
|
2855
|
+
}
|
|
2856
|
+
}), [ fullRenderArea ]);
|
|
2857
|
+
return React__default.default.createElement(StyledDashboardsRenderer, {
|
|
2858
|
+
theme: theme,
|
|
2859
|
+
compactSelectors: compactSelectors,
|
|
2860
|
+
fullRenderArea: fullRenderArea
|
|
2861
|
+
}, !fullRenderArea && React__default.default.createElement(Sidebar, {
|
|
2862
|
+
dashboards: dashboards,
|
|
2863
|
+
theme: theme,
|
|
2864
|
+
compactSelectors: compactSelectors,
|
|
2865
|
+
setCompactSelectors: setCompactSelectors,
|
|
2866
|
+
selectedDashboard: selectedDashboard,
|
|
2867
|
+
setSelectedDashboard: setSelectedDashboard,
|
|
2868
|
+
identonym: identonym,
|
|
2869
|
+
usageType: usageType,
|
|
2870
|
+
openManual: openManual,
|
|
2871
|
+
logout: logout,
|
|
2872
|
+
rendererID: rendererID,
|
|
2873
|
+
brandingName: brandingName,
|
|
2874
|
+
brandingNameStyle: brandingNameStyle,
|
|
2875
|
+
brandingLogo: brandingLogo
|
|
2876
|
+
}), selectedDashboard && React__default.default.createElement(RenderArea, {
|
|
2877
|
+
dashboards: dashboards,
|
|
2878
|
+
selectedDashboard: selectedDashboard,
|
|
2879
|
+
setSelectedDashboard: setSelectedDashboard,
|
|
2880
|
+
renderView: renderView,
|
|
2881
|
+
setRenderView: setRenderView,
|
|
2882
|
+
fullRenderArea: fullRenderArea,
|
|
2883
|
+
setFullRenderArea: setFullRenderArea,
|
|
2884
|
+
theme: theme
|
|
2885
|
+
}), !selectedDashboard && noDashboardRender && React__default.default.createElement(StyledNoDashboardRender, null, noDashboardRender));
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2588
2888
|
const StyledEntityView = styled__default.default.div`
|
|
2589
2889
|
position: relative;
|
|
2590
2890
|
height: 100%;
|
|
@@ -2695,7 +2995,7 @@ const createSearchTerms = (rows, fields) => rows.map((entity => {
|
|
|
2695
2995
|
|
|
2696
2996
|
const {buttons: {PureButton: PluridPureButton}, inputs: {Textline: PluridTextline}, markers: {Spinner: PluridSpinner}} = universal;
|
|
2697
2997
|
|
|
2698
|
-
const EntityView = React.forwardRef(((properties, reference) => {
|
|
2998
|
+
const EntityView$1 = React.forwardRef(((properties, reference) => {
|
|
2699
2999
|
const {entities: entities, searchFields: searchFields, generalTheme: generalTheme, interactionTheme: interactionTheme, rowsHeader: rowsHeader, rowTemplate: rowTemplate, noRows: noRows, abstractRowRenderer: abstractRowRenderer, actionButtonText: actionButtonText, placeholderText: placeholderText, scrollThrottleTime: scrollThrottleTimeProperty, loading: loading, rowRenderFields: rowRenderFields, rowRenderMethods: rowRenderMethods, actionButtonClick: actionButtonClick, filterUpdate: filterUpdate, refresh: refresh, actionScrollBottom: actionScrollBottom} = properties;
|
|
2700
3000
|
const placeholder = placeholderText || "search";
|
|
2701
3001
|
const scrollThrottleTime = scrollThrottleTimeProperty !== null && scrollThrottleTimeProperty !== void 0 ? scrollThrottleTimeProperty : 1e3;
|
|
@@ -2832,10 +3132,11 @@ const EntityView = React.forwardRef(((properties, reference) => {
|
|
|
2832
3132
|
}));
|
|
2833
3133
|
|
|
2834
3134
|
const containers = {
|
|
2835
|
-
|
|
3135
|
+
DashboardsRenderer: DashboardsRenderer$1,
|
|
3136
|
+
EntityView: EntityView$1
|
|
2836
3137
|
};
|
|
2837
3138
|
|
|
2838
|
-
const Head = properties => {
|
|
3139
|
+
const Head$1 = properties => {
|
|
2839
3140
|
var _a, _b, _c, _d;
|
|
2840
3141
|
const {Helmet: Helmet, defaults: defaults, children: children, stateHead: stateHead} = properties;
|
|
2841
3142
|
const robots = (defaults === null || defaults === void 0 ? void 0 : defaults.robots) || "index,follow";
|
|
@@ -2969,7 +3270,7 @@ const mapStateToProperties$7 = (state, ownProperties) => ({
|
|
|
2969
3270
|
|
|
2970
3271
|
const mapDispatchToProperties$7 = dispatch => ({});
|
|
2971
3272
|
|
|
2972
|
-
const ConnectedHead = reactRedux.connect(mapStateToProperties$7, mapDispatchToProperties$7)(Head);
|
|
3273
|
+
const ConnectedHead = reactRedux.connect(mapStateToProperties$7, mapDispatchToProperties$7)(Head$1);
|
|
2973
3274
|
|
|
2974
3275
|
const head = {
|
|
2975
3276
|
Head: ConnectedHead
|
|
@@ -3023,7 +3324,7 @@ const StyledNotificationClose = styled__default.default.div`
|
|
|
3023
3324
|
place-content: center;
|
|
3024
3325
|
`;
|
|
3025
3326
|
|
|
3026
|
-
const Notification = properties => {
|
|
3327
|
+
const Notification$1 = properties => {
|
|
3027
3328
|
const {data: data, theme: theme, remove: remove, elements: elements, style: style, className: className} = properties;
|
|
3028
3329
|
const {id: id, text: text, html: html, react: react, timeout: timeout, wordBreak: wordBreak} = data;
|
|
3029
3330
|
const resolvedWordBreak = wordBreak === true ? "break-all" : "normal";
|
|
@@ -3082,9 +3383,9 @@ const StyledNotifications = styled__default.default.div`
|
|
|
3082
3383
|
pointer-events: none;
|
|
3083
3384
|
`;
|
|
3084
3385
|
|
|
3085
|
-
const Notifications = properties => {
|
|
3386
|
+
const Notifications$1 = properties => {
|
|
3086
3387
|
const {elements: elements, stateGeneralTheme: stateGeneralTheme, stateNotifications: stateNotifications, dispatchRemoveNotification: dispatchRemoveNotification} = properties;
|
|
3087
|
-
return React__default.default.createElement(StyledNotifications, null, stateNotifications.map((notification => React__default.default.createElement(Notification, {
|
|
3388
|
+
return React__default.default.createElement(StyledNotifications, null, stateNotifications.map((notification => React__default.default.createElement(Notification$1, {
|
|
3088
3389
|
key: notification.id,
|
|
3089
3390
|
data: notification,
|
|
3090
3391
|
theme: stateGeneralTheme,
|
|
@@ -3102,10 +3403,10 @@ const mapDispatchToProperties$6 = dispatch => ({
|
|
|
3102
3403
|
dispatchRemoveNotification: payload => dispatch(pluridUiStateReact.notifications.actions.remove(payload))
|
|
3103
3404
|
});
|
|
3104
3405
|
|
|
3105
|
-
const ConnectedNotifications = reactRedux.connect(mapStateToProperties$6, mapDispatchToProperties$6)(Notifications);
|
|
3406
|
+
const ConnectedNotifications = reactRedux.connect(mapStateToProperties$6, mapDispatchToProperties$6)(Notifications$1);
|
|
3106
3407
|
|
|
3107
3408
|
const notifications = {
|
|
3108
|
-
Notification: Notification,
|
|
3409
|
+
Notification: Notification$1,
|
|
3109
3410
|
Notifications: ConnectedNotifications
|
|
3110
3411
|
};
|
|
3111
3412
|
|
|
@@ -3494,7 +3795,7 @@ const mapDispatchToProperties$2 = dispatch => ({});
|
|
|
3494
3795
|
|
|
3495
3796
|
const ConnectedSittings = reactRedux.connect(mapStateToProperties$2, mapDispatchToProperties$2)(Sittings);
|
|
3496
3797
|
|
|
3497
|
-
const SittingTray = properties => {
|
|
3798
|
+
const SittingTray$1 = properties => {
|
|
3498
3799
|
const {selectors: selectors, context: context, stateInteractionTheme: stateInteractionTheme} = properties;
|
|
3499
3800
|
return React__default.default.createElement(StyledSittingTray, {
|
|
3500
3801
|
theme: stateInteractionTheme
|
|
@@ -3519,7 +3820,7 @@ const mapStatedToProperties = (state, ownProperties) => ({
|
|
|
3519
3820
|
|
|
3520
3821
|
const mapDispatchdToProperties = dispatch => ({});
|
|
3521
3822
|
|
|
3522
|
-
const ConnectedSittingTray = reactRedux.connect(mapStatedToProperties, mapDispatchdToProperties)(SittingTray);
|
|
3823
|
+
const ConnectedSittingTray = reactRedux.connect(mapStatedToProperties, mapDispatchdToProperties)(SittingTray$1);
|
|
3523
3824
|
|
|
3524
3825
|
const sitting = {
|
|
3525
3826
|
SittingTray: ConnectedSittingTray
|
|
@@ -3584,7 +3885,7 @@ const StyledHorizontalToolbarButtonIcon = styled__default.default.div`
|
|
|
3584
3885
|
}};
|
|
3585
3886
|
`;
|
|
3586
3887
|
|
|
3587
|
-
const HorizontalToolbarButton = properties => {
|
|
3888
|
+
const HorizontalToolbarButton$1 = properties => {
|
|
3588
3889
|
const {text: text, atClick: atClick, active: active, scaleIcon: scaleIcon, icon: Icon, theme: themeProperty, style: style, className: className} = properties;
|
|
3589
3890
|
const theme = themeProperty || themes__default.default.plurid;
|
|
3590
3891
|
return React__default.default.createElement(StyledHorizontalToolbarButton, {
|
|
@@ -3599,37 +3900,37 @@ const HorizontalToolbarButton = properties => {
|
|
|
3599
3900
|
}, React__default.default.createElement(Icon, null)), text);
|
|
3600
3901
|
};
|
|
3601
3902
|
|
|
3602
|
-
|
|
3903
|
+
exports.SizeTypes = void 0;
|
|
3603
3904
|
|
|
3604
3905
|
(function(SizeTypes) {
|
|
3605
3906
|
SizeTypes["small"] = "small";
|
|
3606
3907
|
SizeTypes["normal"] = "normal";
|
|
3607
3908
|
SizeTypes["large"] = "large";
|
|
3608
|
-
})(SizeTypes || (SizeTypes = {}));
|
|
3909
|
+
})(exports.SizeTypes || (exports.SizeTypes = {}));
|
|
3609
3910
|
|
|
3610
|
-
|
|
3911
|
+
exports.HorizontalPositions = void 0;
|
|
3611
3912
|
|
|
3612
3913
|
(function(HorizontalPositions) {
|
|
3613
3914
|
HorizontalPositions["left"] = "left";
|
|
3614
3915
|
HorizontalPositions["right"] = "right";
|
|
3615
|
-
})(HorizontalPositions || (HorizontalPositions = {}));
|
|
3916
|
+
})(exports.HorizontalPositions || (exports.HorizontalPositions = {}));
|
|
3616
3917
|
|
|
3617
|
-
|
|
3918
|
+
exports.VerticalPositions = void 0;
|
|
3618
3919
|
|
|
3619
3920
|
(function(VerticalPositions) {
|
|
3620
3921
|
VerticalPositions["top"] = "top";
|
|
3621
3922
|
VerticalPositions["bottom"] = "bottom";
|
|
3622
|
-
})(VerticalPositions || (VerticalPositions = {}));
|
|
3923
|
+
})(exports.VerticalPositions || (exports.VerticalPositions = {}));
|
|
3623
3924
|
|
|
3624
3925
|
const StyledToolbarControls = styled__default.default.div`
|
|
3625
3926
|
top: ${({position: position}) => {
|
|
3626
|
-
if (position === VerticalPositions.top) {
|
|
3927
|
+
if (position === exports.VerticalPositions.top) {
|
|
3627
3928
|
return "15px";
|
|
3628
3929
|
}
|
|
3629
3930
|
return "initial";
|
|
3630
3931
|
}};
|
|
3631
3932
|
bottom: ${({position: position}) => {
|
|
3632
|
-
if (position === VerticalPositions.bottom) {
|
|
3933
|
+
if (position === exports.VerticalPositions.bottom) {
|
|
3633
3934
|
return "15px";
|
|
3634
3935
|
}
|
|
3635
3936
|
return "initial";
|
|
@@ -3657,9 +3958,9 @@ const StyledToolbarControlsButtons = styled__default.default.div`
|
|
|
3657
3958
|
height: 100%;
|
|
3658
3959
|
`;
|
|
3659
3960
|
|
|
3660
|
-
const ToolbarControls = properties => {
|
|
3961
|
+
const ToolbarControls$1 = properties => {
|
|
3661
3962
|
const {position: positionProperty, theme: themeProperty, style: style, className: className, children: children} = properties;
|
|
3662
|
-
const position = positionProperty || VerticalPositions.top;
|
|
3963
|
+
const position = positionProperty || exports.VerticalPositions.top;
|
|
3663
3964
|
const theme = themeProperty || themes.plurid;
|
|
3664
3965
|
return React__default.default.createElement(StyledToolbarControls, {
|
|
3665
3966
|
position: position,
|
|
@@ -3775,7 +4076,7 @@ const StyledVerticalToolbarButtonText = styled__default.default.div`
|
|
|
3775
4076
|
align-items: center;
|
|
3776
4077
|
`;
|
|
3777
4078
|
|
|
3778
|
-
const VerticalToolbarButton = properties => {
|
|
4079
|
+
const VerticalToolbarButton$1 = properties => {
|
|
3779
4080
|
const {atClick: atClick, icon: Icon, active: active, text: text, textLeft: textLeft, showText: showText, scaleIcon: scaleIcon, first: first, last: last, theme: theme} = properties;
|
|
3780
4081
|
const [mouseOver, setMouseOver] = React.useState(false);
|
|
3781
4082
|
return React__default.default.createElement(StyledVerticalToolbarButton, {
|
|
@@ -3794,13 +4095,13 @@ const VerticalToolbarButton = properties => {
|
|
|
3794
4095
|
|
|
3795
4096
|
const StyledToolbar = styled__default.default.div`
|
|
3796
4097
|
left: ${props => {
|
|
3797
|
-
if (props.position === HorizontalPositions.left) {
|
|
4098
|
+
if (props.position === exports.HorizontalPositions.left) {
|
|
3798
4099
|
return "0";
|
|
3799
4100
|
}
|
|
3800
4101
|
return "initial";
|
|
3801
4102
|
}};
|
|
3802
4103
|
right: ${props => {
|
|
3803
|
-
if (props.position === HorizontalPositions.right) {
|
|
4104
|
+
if (props.position === exports.HorizontalPositions.right) {
|
|
3804
4105
|
return "0";
|
|
3805
4106
|
}
|
|
3806
4107
|
return "initial";
|
|
@@ -3836,10 +4137,10 @@ const StyledToolbarButtons = styled__default.default.div`
|
|
|
3836
4137
|
user-select: none;
|
|
3837
4138
|
`;
|
|
3838
4139
|
|
|
3839
|
-
const ToolbarSpecific = properties => {
|
|
4140
|
+
const ToolbarSpecific$1 = properties => {
|
|
3840
4141
|
const {buttons: buttons, handleClick: handleClick, activeType: activeType, position: position, children: children, stateToolbars: stateToolbars, stateIdentonym: stateIdentonym, stateInteractionTheme: stateInteractionTheme} = properties;
|
|
3841
4142
|
const {alwaysShow: alwaysShow, location: location, scaleIcons: scaleIcons, showNames: showNames} = stateToolbars;
|
|
3842
|
-
const toolbarPosition = position ? position : HorizontalPositions.right;
|
|
4143
|
+
const toolbarPosition = position ? position : exports.HorizontalPositions.right;
|
|
3843
4144
|
const [showToolbar, setShowToolbar] = React.useState(alwaysShow);
|
|
3844
4145
|
const [mouseIn, setMouseIn] = React.useState(false);
|
|
3845
4146
|
const handleMouseMove = event => {
|
|
@@ -3881,7 +4182,7 @@ const ToolbarSpecific = properties => {
|
|
|
3881
4182
|
return true;
|
|
3882
4183
|
})).map(((button, index) => {
|
|
3883
4184
|
const {type: type, text: text, icon: Icon, first: first, last: last} = button;
|
|
3884
|
-
return React__default.default.createElement(VerticalToolbarButton, {
|
|
4185
|
+
return React__default.default.createElement(VerticalToolbarButton$1, {
|
|
3885
4186
|
key: type,
|
|
3886
4187
|
atClick: () => handleClick(type, index),
|
|
3887
4188
|
icon: Icon,
|
|
@@ -3905,9 +4206,9 @@ const mapStateToProperties$1 = (state, ownProperties) => ({
|
|
|
3905
4206
|
|
|
3906
4207
|
const mapDispatchToProperties$1 = dispatch => ({});
|
|
3907
4208
|
|
|
3908
|
-
const ConnectedToolbarSpecific = reactRedux.connect(mapStateToProperties$1, mapDispatchToProperties$1)(ToolbarSpecific);
|
|
4209
|
+
const ConnectedToolbarSpecific = reactRedux.connect(mapStateToProperties$1, mapDispatchToProperties$1)(ToolbarSpecific$1);
|
|
3909
4210
|
|
|
3910
|
-
const ToolbarGeneral = properties => {
|
|
4211
|
+
const ToolbarGeneral$1 = properties => {
|
|
3911
4212
|
const {buttons: buttons, selectors: selectors, context: context, handleClick: handleClick, speakButton: speakButton, sittingButton: sittingButtonProperty, stateView: stateView, stateSittingTray: stateSittingTray, stateToolbars: stateToolbars, stateInteractionTheme: stateInteractionTheme, dispatchToggleSittingTray: dispatchToggleSittingTray} = properties;
|
|
3912
4213
|
const {scaleIcons: scaleIcons, showNames: showNames} = stateToolbars;
|
|
3913
4214
|
const iconTextLeft = false;
|
|
@@ -3916,10 +4217,10 @@ const ToolbarGeneral = properties => {
|
|
|
3916
4217
|
buttons: buttons,
|
|
3917
4218
|
handleClick: handleClick,
|
|
3918
4219
|
activeType: stateView,
|
|
3919
|
-
position: HorizontalPositions.left,
|
|
4220
|
+
position: exports.HorizontalPositions.left,
|
|
3920
4221
|
selectors: selectors,
|
|
3921
4222
|
context: context
|
|
3922
|
-
}, speakButton && React__default.default.createElement(VerticalToolbarButton, {
|
|
4223
|
+
}, speakButton && React__default.default.createElement(VerticalToolbarButton$1, {
|
|
3923
4224
|
atClick: () => {},
|
|
3924
4225
|
icon: pluridIconsReact.PluridIconSpeak,
|
|
3925
4226
|
active: false,
|
|
@@ -3928,7 +4229,7 @@ const ToolbarGeneral = properties => {
|
|
|
3928
4229
|
showText: showNames,
|
|
3929
4230
|
scaleIcon: scaleIcons,
|
|
3930
4231
|
theme: stateInteractionTheme
|
|
3931
|
-
}), sittingButton && React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(VerticalToolbarButton, {
|
|
4232
|
+
}), sittingButton && React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(VerticalToolbarButton$1, {
|
|
3932
4233
|
atClick: () => dispatchToggleSittingTray(),
|
|
3933
4234
|
icon: pluridIconsReact.PluridIconStateShareImage,
|
|
3934
4235
|
active: stateSittingTray,
|
|
@@ -3958,14 +4259,14 @@ const mapDispatchToProperties = dispatch => ({
|
|
|
3958
4259
|
dispatchToggleSittingTray: () => dispatch(pluridUiStateReact.sitting.actions.toggleSittingTray())
|
|
3959
4260
|
});
|
|
3960
4261
|
|
|
3961
|
-
const ConnectedToolbarGeneral = reactRedux.connect(mapStateToProperties, mapDispatchToProperties)(ToolbarGeneral);
|
|
4262
|
+
const ConnectedToolbarGeneral = reactRedux.connect(mapStateToProperties, mapDispatchToProperties)(ToolbarGeneral$1);
|
|
3962
4263
|
|
|
3963
4264
|
const toolbars = {
|
|
3964
|
-
HorizontalToolbarButton: HorizontalToolbarButton,
|
|
3965
|
-
ToolbarControls: ToolbarControls,
|
|
4265
|
+
HorizontalToolbarButton: HorizontalToolbarButton$1,
|
|
4266
|
+
ToolbarControls: ToolbarControls$1,
|
|
3966
4267
|
ToolbarGeneral: ConnectedToolbarGeneral,
|
|
3967
4268
|
ToolbarSpecific: ConnectedToolbarSpecific,
|
|
3968
|
-
VerticalToolbarButton: VerticalToolbarButton
|
|
4269
|
+
VerticalToolbarButton: VerticalToolbarButton$1
|
|
3969
4270
|
};
|
|
3970
4271
|
|
|
3971
4272
|
const pluridal = {
|
|
@@ -3980,14 +4281,20 @@ var index = Object.assign(Object.assign(Object.assign(Object.assign(Object.assig
|
|
|
3980
4281
|
|
|
3981
4282
|
const {buttons: {LinkButton: LinkButton, PureButton: PureButton, RefreshButton: RefreshButton}, form: {FormLeftRight: FormLeftRight, FormObliterate: FormObliterate, Formbutton: Formbutton, Formitem: Formitem, Formline: Formline}, general: {GlobalStyles: GlobalStyles}, inputs: {Dropdown: Dropdown, EntityPill: EntityPill, EntityPillGroup: EntityPillGroup, InputBox: InputBox, InputDescriptor: InputDescriptor, InputLine: InputLine, InputSwitch: InputSwitch, Itemsline: Itemsline, Select: Select, Slider: Slider, Switch: Switch, Textline: Textline}, markers: {HR: HR, ProgressCircle: ProgressCircle, Spinner: Spinner, Tooltip: Tooltip}, typography: {Heading: Heading, Paragraph: Paragraph}, varia: {CopyableLine: CopyableLine, NewPageLink: NewPageLink, ScrollableLine: ScrollableLine, TextItem: TextItem}} = universal;
|
|
3982
4283
|
|
|
4284
|
+
const {containers: {DashboardsRenderer: DashboardsRenderer, EntityView: EntityView}, head: {Head: Head}, notifications: {Notification: Notification, Notifications: Notifications}, sitting: {SittingTray: SittingTray}, toolbars: {HorizontalToolbarButton: HorizontalToolbarButton, ToolbarControls: ToolbarControls, ToolbarGeneral: ToolbarGeneral, ToolbarSpecific: ToolbarSpecific, VerticalToolbarButton: VerticalToolbarButton}} = pluridal;
|
|
4285
|
+
|
|
3983
4286
|
exports.CopyableLine = CopyableLine;
|
|
3984
4287
|
|
|
4288
|
+
exports.DashboardsRenderer = DashboardsRenderer;
|
|
4289
|
+
|
|
3985
4290
|
exports.Dropdown = Dropdown;
|
|
3986
4291
|
|
|
3987
4292
|
exports.EntityPill = EntityPill;
|
|
3988
4293
|
|
|
3989
4294
|
exports.EntityPillGroup = EntityPillGroup;
|
|
3990
4295
|
|
|
4296
|
+
exports.EntityView = EntityView;
|
|
4297
|
+
|
|
3991
4298
|
exports.FormLeftRight = FormLeftRight;
|
|
3992
4299
|
|
|
3993
4300
|
exports.FormObliterate = FormObliterate;
|
|
@@ -4002,8 +4309,12 @@ exports.GlobalStyles = GlobalStyles;
|
|
|
4002
4309
|
|
|
4003
4310
|
exports.HR = HR;
|
|
4004
4311
|
|
|
4312
|
+
exports.Head = Head;
|
|
4313
|
+
|
|
4005
4314
|
exports.Heading = Heading;
|
|
4006
4315
|
|
|
4316
|
+
exports.HorizontalToolbarButton = HorizontalToolbarButton;
|
|
4317
|
+
|
|
4007
4318
|
exports.InputBox = InputBox;
|
|
4008
4319
|
|
|
4009
4320
|
exports.InputDescriptor = InputDescriptor;
|
|
@@ -4018,6 +4329,10 @@ exports.LinkButton = LinkButton;
|
|
|
4018
4329
|
|
|
4019
4330
|
exports.NewPageLink = NewPageLink;
|
|
4020
4331
|
|
|
4332
|
+
exports.Notification = Notification;
|
|
4333
|
+
|
|
4334
|
+
exports.Notifications = Notifications;
|
|
4335
|
+
|
|
4021
4336
|
exports.Paragraph = Paragraph;
|
|
4022
4337
|
|
|
4023
4338
|
exports.ProgressCircle = ProgressCircle;
|
|
@@ -4030,6 +4345,8 @@ exports.ScrollableLine = ScrollableLine;
|
|
|
4030
4345
|
|
|
4031
4346
|
exports.Select = Select;
|
|
4032
4347
|
|
|
4348
|
+
exports.SittingTray = SittingTray;
|
|
4349
|
+
|
|
4033
4350
|
exports.Slider = Slider;
|
|
4034
4351
|
|
|
4035
4352
|
exports.Spinner = Spinner;
|
|
@@ -4040,8 +4357,16 @@ exports.TextItem = TextItem;
|
|
|
4040
4357
|
|
|
4041
4358
|
exports.Textline = Textline;
|
|
4042
4359
|
|
|
4360
|
+
exports.ToolbarControls = ToolbarControls;
|
|
4361
|
+
|
|
4362
|
+
exports.ToolbarGeneral = ToolbarGeneral;
|
|
4363
|
+
|
|
4364
|
+
exports.ToolbarSpecific = ToolbarSpecific;
|
|
4365
|
+
|
|
4043
4366
|
exports.Tooltip = Tooltip;
|
|
4044
4367
|
|
|
4368
|
+
exports.VerticalToolbarButton = VerticalToolbarButton;
|
|
4369
|
+
|
|
4045
4370
|
exports.default = index;
|
|
4046
4371
|
|
|
4047
4372
|
exports.pluridal = pluridal;
|