@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.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import themes, { plurid } from "@plurid/plurid-themes";
|
|
|
4
4
|
|
|
5
5
|
import styled, { createGlobalStyle, css, keyframes } from "styled-components";
|
|
6
6
|
|
|
7
|
-
import { PluridIconReset, PluridIconObliterate, PluridIconDelete, PluridIconCopy, PluridIconInfo, PluridIconPlay, PluridIconBranch, PluridIconNewStateline, PluridIconStateShareImage, PluridIconCopyCurrentState, PluridIconCopyStateHistory, PluridIconSittings, PluridIconSpeak } from "@plurid/plurid-icons-react";
|
|
7
|
+
import { PluridIconReset, PluridIconObliterate, PluridIconDelete, PluridIconCopy, PluridIconInfo, PluridIconSpace, PluridIconArrowRight, PluridIconDocuments, PluridIconExternalLink, PluridIconExit, PluridIconPlay, PluridIconBranch, PluridIconNewStateline, PluridIconStateShareImage, PluridIconCopyCurrentState, PluridIconCopyStateHistory, PluridIconSittings, PluridIconSpeak } from "@plurid/plurid-icons-react";
|
|
8
8
|
|
|
9
9
|
import { mergeReferences, useMounted, useFalseAfterTimedTrue, useThrottledCallback, createMarkup } from "@plurid/plurid-functions-react";
|
|
10
10
|
|
|
@@ -2567,6 +2567,306 @@ const universal = {
|
|
|
2567
2567
|
varia: varia
|
|
2568
2568
|
};
|
|
2569
2569
|
|
|
2570
|
+
const StyledDashboardsRenderer = styled.div`
|
|
2571
|
+
display: grid;
|
|
2572
|
+
grid-template-columns: ${({fullRenderArea: fullRenderArea, compactSelectors: compactSelectors}) => {
|
|
2573
|
+
if (fullRenderArea) {
|
|
2574
|
+
return "1fr";
|
|
2575
|
+
}
|
|
2576
|
+
return compactSelectors ? "60px auto" : "1fr 4fr";
|
|
2577
|
+
}};
|
|
2578
|
+
min-height: 700px;
|
|
2579
|
+
`;
|
|
2580
|
+
|
|
2581
|
+
const StyledNoDashboardRender = styled.div`
|
|
2582
|
+
display: grid;
|
|
2583
|
+
place-content: center;
|
|
2584
|
+
`;
|
|
2585
|
+
|
|
2586
|
+
const StyledSidebar = styled.div`
|
|
2587
|
+
`;
|
|
2588
|
+
|
|
2589
|
+
const StyledSelectors = styled.div`
|
|
2590
|
+
height: 100%;
|
|
2591
|
+
display: grid;
|
|
2592
|
+
justify-content: space-between;
|
|
2593
|
+
grid-template-columns: 1fr;
|
|
2594
|
+
grid-template-rows: ${({helpItemsCount: helpItemsCount}) => `120px auto ${45 * helpItemsCount}px`};
|
|
2595
|
+
|
|
2596
|
+
background-color: ${({theme: theme}) => theme.backgroundColorTertiary};
|
|
2597
|
+
box-shadow: inset -3px 0px 3px 0px ${({theme: theme}) => theme.boxShadowUmbraColor};
|
|
2598
|
+
|
|
2599
|
+
ul {
|
|
2600
|
+
list-style: none;
|
|
2601
|
+
padding: 0;
|
|
2602
|
+
margin: 0;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
li {
|
|
2606
|
+
cursor: pointer;
|
|
2607
|
+
padding: 0.7rem 1.4rem;
|
|
2608
|
+
user-select: none;
|
|
2609
|
+
}
|
|
2610
|
+
`;
|
|
2611
|
+
|
|
2612
|
+
const StyledBranding = styled.div`
|
|
2613
|
+
display: grid;
|
|
2614
|
+
place-content: center;
|
|
2615
|
+
grid-gap: 0.5rem;
|
|
2616
|
+
height: 100%;
|
|
2617
|
+
font-size: 0.9rem;
|
|
2618
|
+
text-align: center;
|
|
2619
|
+
user-select: none;
|
|
2620
|
+
|
|
2621
|
+
img {
|
|
2622
|
+
cursor: pointer;
|
|
2623
|
+
}
|
|
2624
|
+
`;
|
|
2625
|
+
|
|
2626
|
+
const StyledHelp = styled.div`
|
|
2627
|
+
li {
|
|
2628
|
+
font-size: 0.9rem;
|
|
2629
|
+
}
|
|
2630
|
+
`;
|
|
2631
|
+
|
|
2632
|
+
const StyledHelpItem = styled.li`
|
|
2633
|
+
display: grid;
|
|
2634
|
+
align-items: center;
|
|
2635
|
+
grid-gap: 0.5rem;
|
|
2636
|
+
grid-template-columns: ${({compactSelectors: compactSelectors}) => compactSelectors ? "16px" : "16px auto 16px"};
|
|
2637
|
+
min-height: 45px;
|
|
2638
|
+
`;
|
|
2639
|
+
|
|
2640
|
+
const StyledSelector = styled.li`
|
|
2641
|
+
background-color: ${({theme: theme, selected: selected}) => selected ? theme.backgroundColorPrimary : "initial"};
|
|
2642
|
+
|
|
2643
|
+
:hover {
|
|
2644
|
+
background-color: ${({theme: theme}) => theme.backgroundColorPrimary};
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
display: grid;
|
|
2648
|
+
grid-template-columns: ${({compactSelectors: compactSelectors}) => compactSelectors ? "16px" : "16px auto"};
|
|
2649
|
+
grid-gap: 0.7rem;
|
|
2650
|
+
min-height: 45px;
|
|
2651
|
+
align-items: center;
|
|
2652
|
+
position: relative;
|
|
2653
|
+
`;
|
|
2654
|
+
|
|
2655
|
+
const StyledSelectorRelativeLabel = styled.div`
|
|
2656
|
+
position: absolute;
|
|
2657
|
+
left: 50px;
|
|
2658
|
+
z-index: 9999;
|
|
2659
|
+
min-height: 45px;
|
|
2660
|
+
display: grid;
|
|
2661
|
+
align-items: center;
|
|
2662
|
+
padding-right: 0.5rem;
|
|
2663
|
+
background-color: ${({theme: theme}) => theme.backgroundColorPrimaryAlpha};
|
|
2664
|
+
`;
|
|
2665
|
+
|
|
2666
|
+
const Selector = properties => {
|
|
2667
|
+
const {data: data, selectedDashboard: selectedDashboard, compactSelectors: compactSelectors, theme: theme, setSelectedDashboard: setSelectedDashboard, rendererID: rendererID} = properties;
|
|
2668
|
+
const {id: id, icon: icon, label: label} = data;
|
|
2669
|
+
const Icon = icon;
|
|
2670
|
+
const selected = id === selectedDashboard;
|
|
2671
|
+
const [mouseOver, setMouseOver] = useState(false);
|
|
2672
|
+
useEffect((() => {
|
|
2673
|
+
let mounted = true;
|
|
2674
|
+
if (mouseOver) {
|
|
2675
|
+
setTimeout((() => {
|
|
2676
|
+
if (!mounted) {
|
|
2677
|
+
return;
|
|
2678
|
+
}
|
|
2679
|
+
setMouseOver(false);
|
|
2680
|
+
}), 2e3);
|
|
2681
|
+
}
|
|
2682
|
+
return () => {
|
|
2683
|
+
mounted = false;
|
|
2684
|
+
};
|
|
2685
|
+
}), [ mouseOver ]);
|
|
2686
|
+
const selectorIcon = !icon ? React.createElement(PluridIconSpace, {
|
|
2687
|
+
theme: theme
|
|
2688
|
+
}) : typeof icon === "function" ? React.createElement(Icon, {
|
|
2689
|
+
theme: theme
|
|
2690
|
+
}) : React.createElement(React.Fragment, null, icon);
|
|
2691
|
+
return React.createElement(StyledSelector, {
|
|
2692
|
+
key: (rendererID || "") + id,
|
|
2693
|
+
onClick: () => setSelectedDashboard(id),
|
|
2694
|
+
onMouseEnter: () => setMouseOver(true),
|
|
2695
|
+
onMouseLeave: () => setMouseOver(false),
|
|
2696
|
+
theme: theme,
|
|
2697
|
+
selected: selected,
|
|
2698
|
+
compactSelectors: compactSelectors
|
|
2699
|
+
}, selectorIcon, !compactSelectors && React.createElement("div", null, label), compactSelectors && mouseOver && React.createElement(StyledSelectorRelativeLabel, {
|
|
2700
|
+
theme: theme
|
|
2701
|
+
}, label));
|
|
2702
|
+
};
|
|
2703
|
+
|
|
2704
|
+
const Sidebar = properties => {
|
|
2705
|
+
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;
|
|
2706
|
+
const openManualCount = openManual ? 1 : 0;
|
|
2707
|
+
const usageTypeCount = usageType === "PRIVATE_USAGE" ? 1 : 0;
|
|
2708
|
+
const helpItemsCount = openManualCount + usageTypeCount;
|
|
2709
|
+
const [mouseOverSelectors, setMouseOverSelectors] = useState(false);
|
|
2710
|
+
const branding = React.createElement(StyledBranding, {
|
|
2711
|
+
compactSelectors: compactSelectors
|
|
2712
|
+
}, !compactSelectors && React.createElement(React.Fragment, null, React.createElement("div", null, brandingLogo && React.createElement("img", {
|
|
2713
|
+
src: brandingLogo,
|
|
2714
|
+
alt: "icon",
|
|
2715
|
+
height: 40,
|
|
2716
|
+
onClick: () => {
|
|
2717
|
+
setCompactSelectors(true);
|
|
2718
|
+
setMouseOverSelectors(false);
|
|
2719
|
+
}
|
|
2720
|
+
})), brandingName && React.createElement("div", {
|
|
2721
|
+
style: brandingNameStyle
|
|
2722
|
+
}, brandingName)), compactSelectors && mouseOverSelectors && React.createElement(React.Fragment, null, React.createElement(PluridIconArrowRight, {
|
|
2723
|
+
atClick: () => setCompactSelectors(false)
|
|
2724
|
+
}), React.createElement("div", null, "ㅤ")));
|
|
2725
|
+
const selectors = React.createElement("ul", null, dashboards.map((dashboard => React.createElement(Selector, {
|
|
2726
|
+
key: dashboard.id,
|
|
2727
|
+
data: dashboard,
|
|
2728
|
+
compactSelectors: compactSelectors,
|
|
2729
|
+
theme: theme,
|
|
2730
|
+
selectedDashboard: selectedDashboard,
|
|
2731
|
+
setSelectedDashboard: setSelectedDashboard,
|
|
2732
|
+
rendererID: rendererID
|
|
2733
|
+
}))));
|
|
2734
|
+
const help = React.createElement(StyledHelp, null, mouseOverSelectors && React.createElement("ul", null, openManual && React.createElement(StyledHelpItem, {
|
|
2735
|
+
onClick: () => openManual(),
|
|
2736
|
+
compactSelectors: compactSelectors
|
|
2737
|
+
}, React.createElement(PluridIconDocuments, null), !compactSelectors && React.createElement(React.Fragment, null, React.createElement("div", null, "manual"), React.createElement(PluridIconExternalLink, null))), usageType === "PRIVATE_USAGE" && logout && React.createElement(StyledHelpItem, {
|
|
2738
|
+
onClick: () => logout(),
|
|
2739
|
+
compactSelectors: compactSelectors
|
|
2740
|
+
}, React.createElement(PluridIconExit, null), !compactSelectors && React.createElement(React.Fragment, null, React.createElement("div", null, "logout (", identonym, ")"), React.createElement("div", null)))));
|
|
2741
|
+
return React.createElement(StyledSidebar, {
|
|
2742
|
+
theme: theme
|
|
2743
|
+
}, React.createElement(StyledSelectors, {
|
|
2744
|
+
onMouseEnter: () => setMouseOverSelectors(true),
|
|
2745
|
+
onMouseLeave: () => setMouseOverSelectors(false),
|
|
2746
|
+
theme: theme,
|
|
2747
|
+
compactSelectors: compactSelectors,
|
|
2748
|
+
helpItemsCount: helpItemsCount
|
|
2749
|
+
}, branding, selectors, help));
|
|
2750
|
+
};
|
|
2751
|
+
|
|
2752
|
+
const StyledRenderArea = styled.div`
|
|
2753
|
+
`;
|
|
2754
|
+
|
|
2755
|
+
const RenderArea = properties => {
|
|
2756
|
+
const {dashboards: dashboards, selectedDashboard: selectedDashboard, renderView: renderView, fullRenderArea: fullRenderArea, theme: theme, setSelectedDashboard: setSelectedDashboard, setRenderView: setRenderView, setFullRenderArea: setFullRenderArea} = properties;
|
|
2757
|
+
const dashboard = dashboards.find((dashboard => dashboard.id === selectedDashboard));
|
|
2758
|
+
if (!dashboard) {
|
|
2759
|
+
return React.createElement(React.Fragment, null);
|
|
2760
|
+
}
|
|
2761
|
+
const resolveView = () => {
|
|
2762
|
+
const dashboard = dashboards.find((dashboard => dashboard.id === selectedDashboard));
|
|
2763
|
+
if (!dashboard) {
|
|
2764
|
+
return;
|
|
2765
|
+
}
|
|
2766
|
+
const renderViewInDashboard = dashboard.renderers[renderView];
|
|
2767
|
+
if (renderViewInDashboard) {
|
|
2768
|
+
return renderView;
|
|
2769
|
+
}
|
|
2770
|
+
if (dashboard.defaultRender) {
|
|
2771
|
+
return dashboard.defaultRender;
|
|
2772
|
+
}
|
|
2773
|
+
return Object.keys(dashboard.renderers)[0];
|
|
2774
|
+
};
|
|
2775
|
+
const renderID = resolveView();
|
|
2776
|
+
useEffect((() => {
|
|
2777
|
+
if (renderID && renderID !== renderView) {
|
|
2778
|
+
setRenderView(renderID);
|
|
2779
|
+
}
|
|
2780
|
+
}), [ renderID ]);
|
|
2781
|
+
if (!renderID) {
|
|
2782
|
+
return React.createElement(React.Fragment, null);
|
|
2783
|
+
}
|
|
2784
|
+
const DashboardRender = dashboard.renderers[renderID];
|
|
2785
|
+
if (!DashboardRender) {
|
|
2786
|
+
return React.createElement(React.Fragment, null);
|
|
2787
|
+
}
|
|
2788
|
+
return React.createElement(StyledRenderArea, {
|
|
2789
|
+
theme: theme
|
|
2790
|
+
}, React.createElement(DashboardRender, {
|
|
2791
|
+
theme: theme,
|
|
2792
|
+
selectedDashboard: selectedDashboard,
|
|
2793
|
+
setSelectedDashboard: setSelectedDashboard,
|
|
2794
|
+
renderView: renderView,
|
|
2795
|
+
setRenderView: setRenderView,
|
|
2796
|
+
fullRenderArea: fullRenderArea,
|
|
2797
|
+
setFullRenderArea: setFullRenderArea
|
|
2798
|
+
}));
|
|
2799
|
+
};
|
|
2800
|
+
|
|
2801
|
+
const DashboardsRenderer$1 = properties => {
|
|
2802
|
+
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;
|
|
2803
|
+
const [compactSelectors, setCompactSelectors] = useState(compactSelectorsProperty !== null && compactSelectorsProperty !== void 0 ? compactSelectorsProperty : false);
|
|
2804
|
+
const [fullRenderArea, setFullRenderArea] = useState(fullRenderAreaProperty !== null && fullRenderAreaProperty !== void 0 ? fullRenderAreaProperty : false);
|
|
2805
|
+
const [selectedDashboard, setSelectedDashboard] = useState(activeDashboard || "");
|
|
2806
|
+
const [renderView, setRenderView] = useState(activeRender || "");
|
|
2807
|
+
useEffect((() => {
|
|
2808
|
+
if (!activeDashboard) {
|
|
2809
|
+
return;
|
|
2810
|
+
}
|
|
2811
|
+
if (selectedDashboard === activeDashboard) {
|
|
2812
|
+
return;
|
|
2813
|
+
}
|
|
2814
|
+
setSelectedDashboard(activeDashboard);
|
|
2815
|
+
}), [ activeDashboard ]);
|
|
2816
|
+
useEffect((() => {
|
|
2817
|
+
if (atDashboardChange) {
|
|
2818
|
+
atDashboardChange(renderView);
|
|
2819
|
+
}
|
|
2820
|
+
}), [ renderView ]);
|
|
2821
|
+
useEffect((() => {
|
|
2822
|
+
if (typeof compactSelectorsProperty === "boolean") {
|
|
2823
|
+
setCompactSelectors(compactSelectorsProperty);
|
|
2824
|
+
}
|
|
2825
|
+
if (typeof fullRenderAreaProperty === "boolean") {
|
|
2826
|
+
setFullRenderArea(fullRenderAreaProperty);
|
|
2827
|
+
}
|
|
2828
|
+
}), [ compactSelectorsProperty, fullRenderAreaProperty ]);
|
|
2829
|
+
useEffect((() => {
|
|
2830
|
+
if (atUIChange) {
|
|
2831
|
+
atUIChange("compactSelectors", compactSelectors);
|
|
2832
|
+
}
|
|
2833
|
+
}), [ compactSelectors ]);
|
|
2834
|
+
useEffect((() => {
|
|
2835
|
+
if (atUIChange) {
|
|
2836
|
+
atUIChange("fullRenderArea", fullRenderArea);
|
|
2837
|
+
}
|
|
2838
|
+
}), [ fullRenderArea ]);
|
|
2839
|
+
return React.createElement(StyledDashboardsRenderer, {
|
|
2840
|
+
theme: theme,
|
|
2841
|
+
compactSelectors: compactSelectors,
|
|
2842
|
+
fullRenderArea: fullRenderArea
|
|
2843
|
+
}, !fullRenderArea && React.createElement(Sidebar, {
|
|
2844
|
+
dashboards: dashboards,
|
|
2845
|
+
theme: theme,
|
|
2846
|
+
compactSelectors: compactSelectors,
|
|
2847
|
+
setCompactSelectors: setCompactSelectors,
|
|
2848
|
+
selectedDashboard: selectedDashboard,
|
|
2849
|
+
setSelectedDashboard: setSelectedDashboard,
|
|
2850
|
+
identonym: identonym,
|
|
2851
|
+
usageType: usageType,
|
|
2852
|
+
openManual: openManual,
|
|
2853
|
+
logout: logout,
|
|
2854
|
+
rendererID: rendererID,
|
|
2855
|
+
brandingName: brandingName,
|
|
2856
|
+
brandingNameStyle: brandingNameStyle,
|
|
2857
|
+
brandingLogo: brandingLogo
|
|
2858
|
+
}), selectedDashboard && React.createElement(RenderArea, {
|
|
2859
|
+
dashboards: dashboards,
|
|
2860
|
+
selectedDashboard: selectedDashboard,
|
|
2861
|
+
setSelectedDashboard: setSelectedDashboard,
|
|
2862
|
+
renderView: renderView,
|
|
2863
|
+
setRenderView: setRenderView,
|
|
2864
|
+
fullRenderArea: fullRenderArea,
|
|
2865
|
+
setFullRenderArea: setFullRenderArea,
|
|
2866
|
+
theme: theme
|
|
2867
|
+
}), !selectedDashboard && noDashboardRender && React.createElement(StyledNoDashboardRender, null, noDashboardRender));
|
|
2868
|
+
};
|
|
2869
|
+
|
|
2570
2870
|
const StyledEntityView = styled.div`
|
|
2571
2871
|
position: relative;
|
|
2572
2872
|
height: 100%;
|
|
@@ -2677,7 +2977,7 @@ const createSearchTerms = (rows, fields) => rows.map((entity => {
|
|
|
2677
2977
|
|
|
2678
2978
|
const {buttons: {PureButton: PluridPureButton}, inputs: {Textline: PluridTextline}, markers: {Spinner: PluridSpinner}} = universal;
|
|
2679
2979
|
|
|
2680
|
-
const EntityView = forwardRef(((properties, reference) => {
|
|
2980
|
+
const EntityView$1 = forwardRef(((properties, reference) => {
|
|
2681
2981
|
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;
|
|
2682
2982
|
const placeholder = placeholderText || "search";
|
|
2683
2983
|
const scrollThrottleTime = scrollThrottleTimeProperty !== null && scrollThrottleTimeProperty !== void 0 ? scrollThrottleTimeProperty : 1e3;
|
|
@@ -2814,10 +3114,11 @@ const EntityView = forwardRef(((properties, reference) => {
|
|
|
2814
3114
|
}));
|
|
2815
3115
|
|
|
2816
3116
|
const containers = {
|
|
2817
|
-
|
|
3117
|
+
DashboardsRenderer: DashboardsRenderer$1,
|
|
3118
|
+
EntityView: EntityView$1
|
|
2818
3119
|
};
|
|
2819
3120
|
|
|
2820
|
-
const Head = properties => {
|
|
3121
|
+
const Head$1 = properties => {
|
|
2821
3122
|
var _a, _b, _c, _d;
|
|
2822
3123
|
const {Helmet: Helmet, defaults: defaults, children: children, stateHead: stateHead} = properties;
|
|
2823
3124
|
const robots = (defaults === null || defaults === void 0 ? void 0 : defaults.robots) || "index,follow";
|
|
@@ -2951,7 +3252,7 @@ const mapStateToProperties$7 = (state, ownProperties) => ({
|
|
|
2951
3252
|
|
|
2952
3253
|
const mapDispatchToProperties$7 = dispatch => ({});
|
|
2953
3254
|
|
|
2954
|
-
const ConnectedHead = connect(mapStateToProperties$7, mapDispatchToProperties$7)(Head);
|
|
3255
|
+
const ConnectedHead = connect(mapStateToProperties$7, mapDispatchToProperties$7)(Head$1);
|
|
2955
3256
|
|
|
2956
3257
|
const head = {
|
|
2957
3258
|
Head: ConnectedHead
|
|
@@ -3005,7 +3306,7 @@ const StyledNotificationClose = styled.div`
|
|
|
3005
3306
|
place-content: center;
|
|
3006
3307
|
`;
|
|
3007
3308
|
|
|
3008
|
-
const Notification = properties => {
|
|
3309
|
+
const Notification$1 = properties => {
|
|
3009
3310
|
const {data: data, theme: theme, remove: remove, elements: elements, style: style, className: className} = properties;
|
|
3010
3311
|
const {id: id, text: text, html: html, react: react, timeout: timeout, wordBreak: wordBreak} = data;
|
|
3011
3312
|
const resolvedWordBreak = wordBreak === true ? "break-all" : "normal";
|
|
@@ -3064,9 +3365,9 @@ const StyledNotifications = styled.div`
|
|
|
3064
3365
|
pointer-events: none;
|
|
3065
3366
|
`;
|
|
3066
3367
|
|
|
3067
|
-
const Notifications = properties => {
|
|
3368
|
+
const Notifications$1 = properties => {
|
|
3068
3369
|
const {elements: elements, stateGeneralTheme: stateGeneralTheme, stateNotifications: stateNotifications, dispatchRemoveNotification: dispatchRemoveNotification} = properties;
|
|
3069
|
-
return React.createElement(StyledNotifications, null, stateNotifications.map((notification => React.createElement(Notification, {
|
|
3370
|
+
return React.createElement(StyledNotifications, null, stateNotifications.map((notification => React.createElement(Notification$1, {
|
|
3070
3371
|
key: notification.id,
|
|
3071
3372
|
data: notification,
|
|
3072
3373
|
theme: stateGeneralTheme,
|
|
@@ -3084,10 +3385,10 @@ const mapDispatchToProperties$6 = dispatch => ({
|
|
|
3084
3385
|
dispatchRemoveNotification: payload => dispatch(notifications$1.actions.remove(payload))
|
|
3085
3386
|
});
|
|
3086
3387
|
|
|
3087
|
-
const ConnectedNotifications = connect(mapStateToProperties$6, mapDispatchToProperties$6)(Notifications);
|
|
3388
|
+
const ConnectedNotifications = connect(mapStateToProperties$6, mapDispatchToProperties$6)(Notifications$1);
|
|
3088
3389
|
|
|
3089
3390
|
const notifications = {
|
|
3090
|
-
Notification: Notification,
|
|
3391
|
+
Notification: Notification$1,
|
|
3091
3392
|
Notifications: ConnectedNotifications
|
|
3092
3393
|
};
|
|
3093
3394
|
|
|
@@ -3476,7 +3777,7 @@ const mapDispatchToProperties$2 = dispatch => ({});
|
|
|
3476
3777
|
|
|
3477
3778
|
const ConnectedSittings = connect(mapStateToProperties$2, mapDispatchToProperties$2)(Sittings);
|
|
3478
3779
|
|
|
3479
|
-
const SittingTray = properties => {
|
|
3780
|
+
const SittingTray$1 = properties => {
|
|
3480
3781
|
const {selectors: selectors, context: context, stateInteractionTheme: stateInteractionTheme} = properties;
|
|
3481
3782
|
return React.createElement(StyledSittingTray, {
|
|
3482
3783
|
theme: stateInteractionTheme
|
|
@@ -3501,7 +3802,7 @@ const mapStatedToProperties = (state, ownProperties) => ({
|
|
|
3501
3802
|
|
|
3502
3803
|
const mapDispatchdToProperties = dispatch => ({});
|
|
3503
3804
|
|
|
3504
|
-
const ConnectedSittingTray = connect(mapStatedToProperties, mapDispatchdToProperties)(SittingTray);
|
|
3805
|
+
const ConnectedSittingTray = connect(mapStatedToProperties, mapDispatchdToProperties)(SittingTray$1);
|
|
3505
3806
|
|
|
3506
3807
|
const sitting = {
|
|
3507
3808
|
SittingTray: ConnectedSittingTray
|
|
@@ -3566,7 +3867,7 @@ const StyledHorizontalToolbarButtonIcon = styled.div`
|
|
|
3566
3867
|
}};
|
|
3567
3868
|
`;
|
|
3568
3869
|
|
|
3569
|
-
const HorizontalToolbarButton = properties => {
|
|
3870
|
+
const HorizontalToolbarButton$1 = properties => {
|
|
3570
3871
|
const {text: text, atClick: atClick, active: active, scaleIcon: scaleIcon, icon: Icon, theme: themeProperty, style: style, className: className} = properties;
|
|
3571
3872
|
const theme = themeProperty || themes.plurid;
|
|
3572
3873
|
return React.createElement(StyledHorizontalToolbarButton, {
|
|
@@ -3639,7 +3940,7 @@ const StyledToolbarControlsButtons = styled.div`
|
|
|
3639
3940
|
height: 100%;
|
|
3640
3941
|
`;
|
|
3641
3942
|
|
|
3642
|
-
const ToolbarControls = properties => {
|
|
3943
|
+
const ToolbarControls$1 = properties => {
|
|
3643
3944
|
const {position: positionProperty, theme: themeProperty, style: style, className: className, children: children} = properties;
|
|
3644
3945
|
const position = positionProperty || VerticalPositions.top;
|
|
3645
3946
|
const theme = themeProperty || plurid;
|
|
@@ -3757,7 +4058,7 @@ const StyledVerticalToolbarButtonText = styled.div`
|
|
|
3757
4058
|
align-items: center;
|
|
3758
4059
|
`;
|
|
3759
4060
|
|
|
3760
|
-
const VerticalToolbarButton = properties => {
|
|
4061
|
+
const VerticalToolbarButton$1 = properties => {
|
|
3761
4062
|
const {atClick: atClick, icon: Icon, active: active, text: text, textLeft: textLeft, showText: showText, scaleIcon: scaleIcon, first: first, last: last, theme: theme} = properties;
|
|
3762
4063
|
const [mouseOver, setMouseOver] = useState(false);
|
|
3763
4064
|
return React.createElement(StyledVerticalToolbarButton, {
|
|
@@ -3818,7 +4119,7 @@ const StyledToolbarButtons = styled.div`
|
|
|
3818
4119
|
user-select: none;
|
|
3819
4120
|
`;
|
|
3820
4121
|
|
|
3821
|
-
const ToolbarSpecific = properties => {
|
|
4122
|
+
const ToolbarSpecific$1 = properties => {
|
|
3822
4123
|
const {buttons: buttons, handleClick: handleClick, activeType: activeType, position: position, children: children, stateToolbars: stateToolbars, stateIdentonym: stateIdentonym, stateInteractionTheme: stateInteractionTheme} = properties;
|
|
3823
4124
|
const {alwaysShow: alwaysShow, location: location, scaleIcons: scaleIcons, showNames: showNames} = stateToolbars;
|
|
3824
4125
|
const toolbarPosition = position ? position : HorizontalPositions.right;
|
|
@@ -3863,7 +4164,7 @@ const ToolbarSpecific = properties => {
|
|
|
3863
4164
|
return true;
|
|
3864
4165
|
})).map(((button, index) => {
|
|
3865
4166
|
const {type: type, text: text, icon: Icon, first: first, last: last} = button;
|
|
3866
|
-
return React.createElement(VerticalToolbarButton, {
|
|
4167
|
+
return React.createElement(VerticalToolbarButton$1, {
|
|
3867
4168
|
key: type,
|
|
3868
4169
|
atClick: () => handleClick(type, index),
|
|
3869
4170
|
icon: Icon,
|
|
@@ -3887,9 +4188,9 @@ const mapStateToProperties$1 = (state, ownProperties) => ({
|
|
|
3887
4188
|
|
|
3888
4189
|
const mapDispatchToProperties$1 = dispatch => ({});
|
|
3889
4190
|
|
|
3890
|
-
const ConnectedToolbarSpecific = connect(mapStateToProperties$1, mapDispatchToProperties$1)(ToolbarSpecific);
|
|
4191
|
+
const ConnectedToolbarSpecific = connect(mapStateToProperties$1, mapDispatchToProperties$1)(ToolbarSpecific$1);
|
|
3891
4192
|
|
|
3892
|
-
const ToolbarGeneral = properties => {
|
|
4193
|
+
const ToolbarGeneral$1 = properties => {
|
|
3893
4194
|
const {buttons: buttons, selectors: selectors, context: context, handleClick: handleClick, speakButton: speakButton, sittingButton: sittingButtonProperty, stateView: stateView, stateSittingTray: stateSittingTray, stateToolbars: stateToolbars, stateInteractionTheme: stateInteractionTheme, dispatchToggleSittingTray: dispatchToggleSittingTray} = properties;
|
|
3894
4195
|
const {scaleIcons: scaleIcons, showNames: showNames} = stateToolbars;
|
|
3895
4196
|
const iconTextLeft = false;
|
|
@@ -3901,7 +4202,7 @@ const ToolbarGeneral = properties => {
|
|
|
3901
4202
|
position: HorizontalPositions.left,
|
|
3902
4203
|
selectors: selectors,
|
|
3903
4204
|
context: context
|
|
3904
|
-
}, speakButton && React.createElement(VerticalToolbarButton, {
|
|
4205
|
+
}, speakButton && React.createElement(VerticalToolbarButton$1, {
|
|
3905
4206
|
atClick: () => {},
|
|
3906
4207
|
icon: PluridIconSpeak,
|
|
3907
4208
|
active: false,
|
|
@@ -3910,7 +4211,7 @@ const ToolbarGeneral = properties => {
|
|
|
3910
4211
|
showText: showNames,
|
|
3911
4212
|
scaleIcon: scaleIcons,
|
|
3912
4213
|
theme: stateInteractionTheme
|
|
3913
|
-
}), sittingButton && React.createElement(React.Fragment, null, React.createElement(VerticalToolbarButton, {
|
|
4214
|
+
}), sittingButton && React.createElement(React.Fragment, null, React.createElement(VerticalToolbarButton$1, {
|
|
3914
4215
|
atClick: () => dispatchToggleSittingTray(),
|
|
3915
4216
|
icon: PluridIconStateShareImage,
|
|
3916
4217
|
active: stateSittingTray,
|
|
@@ -3940,14 +4241,14 @@ const mapDispatchToProperties = dispatch => ({
|
|
|
3940
4241
|
dispatchToggleSittingTray: () => dispatch(sitting$1.actions.toggleSittingTray())
|
|
3941
4242
|
});
|
|
3942
4243
|
|
|
3943
|
-
const ConnectedToolbarGeneral = connect(mapStateToProperties, mapDispatchToProperties)(ToolbarGeneral);
|
|
4244
|
+
const ConnectedToolbarGeneral = connect(mapStateToProperties, mapDispatchToProperties)(ToolbarGeneral$1);
|
|
3944
4245
|
|
|
3945
4246
|
const toolbars = {
|
|
3946
|
-
HorizontalToolbarButton: HorizontalToolbarButton,
|
|
3947
|
-
ToolbarControls: ToolbarControls,
|
|
4247
|
+
HorizontalToolbarButton: HorizontalToolbarButton$1,
|
|
4248
|
+
ToolbarControls: ToolbarControls$1,
|
|
3948
4249
|
ToolbarGeneral: ConnectedToolbarGeneral,
|
|
3949
4250
|
ToolbarSpecific: ConnectedToolbarSpecific,
|
|
3950
|
-
VerticalToolbarButton: VerticalToolbarButton
|
|
4251
|
+
VerticalToolbarButton: VerticalToolbarButton$1
|
|
3951
4252
|
};
|
|
3952
4253
|
|
|
3953
4254
|
const pluridal = {
|
|
@@ -3962,5 +4263,7 @@ var index = Object.assign(Object.assign(Object.assign(Object.assign(Object.assig
|
|
|
3962
4263
|
|
|
3963
4264
|
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;
|
|
3964
4265
|
|
|
3965
|
-
|
|
4266
|
+
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;
|
|
4267
|
+
|
|
4268
|
+
export { CopyableLine, DashboardsRenderer, Dropdown, EntityPill, EntityPillGroup, EntityView, FormLeftRight, FormObliterate, Formbutton, Formitem, Formline, GlobalStyles, HR, Head, Heading, HorizontalPositions, HorizontalToolbarButton, InputBox, InputDescriptor, InputLine, InputSwitch, Itemsline, LinkButton, NewPageLink, Notification, Notifications, Paragraph, ProgressCircle, PureButton, RefreshButton, ScrollableLine, Select, SittingTray, SizeTypes, Slider, Spinner, Switch, TextItem, Textline, ToolbarControls, ToolbarGeneral, ToolbarSpecific, Tooltip, VerticalPositions, VerticalToolbarButton, index as default, pluridal, universal };
|
|
3966
4269
|
//# sourceMappingURL=index.es.js.map
|