@equinor/echo-components 0.5.19-rc1 → 0.5.19
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/LICENSE +21 -21
- package/README.md +62 -62
- package/dist/components/buttonWithPopover/ButtonWithPopover.d.ts +21 -21
- package/dist/components/contextMenu/ContextMenu.d.ts +35 -35
- package/dist/components/contextMenuPopover/DataInfoButton.d.ts +19 -19
- package/dist/components/contextMenuPopover/DataInfoPopover.d.ts +18 -18
- package/dist/components/datePicker/PopupHeader.d.ts +19 -19
- package/dist/components/datePicker/ReactDatePicker.d.ts +19 -19
- package/dist/components/dialogGenerator/DialogGenerator.d.ts +26 -26
- package/dist/components/dropdown/Dropdown.d.ts +37 -37
- package/dist/components/echoBottomBar/EchoBottomBar.d.ts +7 -7
- package/dist/components/echoCard/Body.d.ts +7 -7
- package/dist/components/echoCard/DateSection.d.ts +8 -8
- package/dist/components/echoCard/EchoCard.d.ts +7 -7
- package/dist/components/echoCard/LinkSection.d.ts +8 -8
- package/dist/components/echoCard/Title.d.ts +13 -13
- package/dist/components/echoCard/index.d.ts +14 -14
- package/dist/components/echoHeader/EchoHeader.d.ts +20 -20
- package/dist/components/echoTooltip/Tooltip/Tooltip.d.ts +10 -10
- package/dist/components/echoTooltip/Tooltip/useTooltip.d.ts +51 -51
- package/dist/components/echoTooltip/index.d.ts +10 -10
- package/dist/components/floatingActionButton/FloatingActionButton.d.ts +33 -33
- package/dist/components/floatingSearchBar/FloatingSearchBar.d.ts +31 -31
- package/dist/components/index.d.ts +22 -22
- package/dist/components/inlineTagIconLink/InlineTagIconLink.d.ts +12 -12
- package/dist/components/listItem/ListItem.d.ts +50 -50
- package/dist/components/listItem/index.d.ts +1 -1
- package/dist/components/listRow/ListRow.d.ts +29 -29
- package/dist/components/rightPanel/PanelStore.d.ts +9 -9
- package/dist/components/rightPanel/index.d.ts +5 -5
- package/dist/components/rightPanel/menuButton/MenuButton.d.ts +24 -24
- package/dist/components/rightPanel/panel/Panel.d.ts +18 -18
- package/dist/components/rightPanel/panelContent/PanelContent.d.ts +23 -23
- package/dist/components/rightPanel/panelWrapper/PanelWrapper.d.ts +21 -21
- package/dist/components/sidebarButton/SidebarButton.d.ts +61 -61
- package/dist/components/sidesheet/enums.d.ts +5 -5
- package/dist/components/sidesheet/index.d.ts +11 -11
- package/dist/components/sidesheet/sheet/Sheet.d.ts +19 -19
- package/dist/components/sidesheet/sheet/index.d.ts +1 -1
- package/dist/components/sidesheet/sheet/utils.d.ts +2 -2
- package/dist/components/sidesheet/sheetTopArea/SheetTopArea.d.ts +16 -16
- package/dist/components/sidesheet/sheetTopArea/index.d.ts +1 -1
- package/dist/components/splitView/SplitView.d.ts +14 -14
- package/dist/components/splitView/index.d.ts +8 -8
- package/dist/components/splitView/left/SplitViewLeft.d.ts +9 -9
- package/dist/components/tagContextMenu/TagContextMenu.d.ts +30 -30
- package/dist/components/timePicker/TimePicker.d.ts +12 -12
- package/dist/components/workOrderListItem/WorkOrderStatusLabel.d.ts +11 -11
- package/dist/components/workOrderListItem/WorkOrdertListItem.d.ts +10 -10
- package/dist/elements/draggableItemsWrapper/DraggableItemsWrapper.d.ts +18 -18
- package/dist/elements/icon/Icon.d.ts +20 -20
- package/dist/elements/index.d.ts +8 -8
- package/dist/elements/radioButtonGroup/RadioButtonGroup.d.ts +20 -20
- package/dist/elements/roundIconButton/RoundIconButton.d.ts +13 -13
- package/dist/elements/sliderField/SliderField.d.ts +25 -25
- package/dist/elements/tagIcon/TagIcon.d.ts +16 -16
- package/dist/elements/tagIcon/TagIconShadow.d.ts +13 -13
- package/dist/elements/textIconButton/TextIconButton.d.ts +19 -19
- package/dist/helpers/classnames.d.ts +5 -5
- package/dist/helpers/getIcon.d.ts +2 -2
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/tagCategoryIcon.d.ts +38 -38
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/useEventListener.d.ts +3 -3
- package/dist/hooks/useIsMobile.d.ts +5 -5
- package/dist/hooks/useKeyboardNavigation.d.ts +21 -21
- package/dist/icons/echoAssets/external.d.ts +5 -5
- package/dist/icons/echoAssets/index.d.ts +4 -4
- package/dist/icons/echoAssets/notifications.d.ts +9 -9
- package/dist/icons/echoAssets/punches.d.ts +4 -4
- package/dist/icons/echoAssets/workOrders.d.ts +11 -11
- package/dist/icons/index.d.ts +3 -3
- package/dist/index.d.ts +9 -9
- package/dist/index.js +349 -349
- package/dist/index.js.map +1 -1
- package/dist/setupTests.d.ts +1 -1
- package/dist/structure/iconList/IconList.d.ts +32 -32
- package/dist/structure/iconList/createListRow.d.ts +14 -14
- package/dist/structure/index.d.ts +3 -3
- package/dist/structure/linkCard/LinkCard.d.ts +26 -26
- package/dist/structure/optionsList/OptionsList.d.ts +24 -24
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/themeConst.d.ts +66 -66
- package/dist/types/actionButton.d.ts +6 -6
- package/dist/types/dataInformation.d.ts +8 -8
- package/dist/types/draggableItem.d.ts +5 -5
- package/dist/types/expandableRowProps.d.ts +6 -6
- package/dist/types/iconItem.d.ts +4 -4
- package/dist/types/iconListItem.d.ts +6 -6
- package/dist/types/index.d.ts +11 -11
- package/dist/types/linkCardItem.d.ts +5 -5
- package/dist/types/menuItem.d.ts +11 -11
- package/dist/types/optionsItem.d.ts +6 -6
- package/dist/types/radioButtonItem.d.ts +4 -4
- package/dist/types/workOrderItem.d.ts +9 -9
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/workorder.d.ts +3 -3
- package/package.json +125 -125
package/dist/index.js
CHANGED
|
@@ -37,16 +37,16 @@ function styleInject(css, ref) {
|
|
|
37
37
|
var css_248z$B = ":root{--xSmall:0.25rem;--small:0.5rem;--medium:1rem;--large:1.5rem;--xLarge:2rem;--black:#000;--white:#fff;--equiBlue1:#233746;--equiBlue2:#d7e1ed;--equiBlue3:#d5eaf4;--equiGray1:#87929a;--equiGray2:#b4bbc0;--equiGray3:#d1d5d8;--equiGray4:#e3e6e8;--equiGray5:#f7f7f7;--equiRed1:#ff1243;--darkEquiRed:#ce183e;--equiGreen1:#006f79;--equiGreen2:#deedee;--equiGreen3:#e6faec;--equiGreen4:#c3f3d2;--echoText:#3d3d3d;--disabledBackgroundColor:#eaeaea;--disabledColor:#6f6f6f;--pm01:#0f0;--pm02:#ff1493;--pm03:#0ff;--pm04:#9400d3;--pm05:#1e90ff;--pm06:#ffdead;--pm010:#ff4500;--pm015:#228b22;--pm020:#00008b;--onGoing:#fbca36;--done:#4bb748;--asBuilt:#007079;--planned:#4bb748;--future:#52c0ff;--historic:#ff7d98;--outOfService:#ff9200;--reserved:#243746;--voided:#eb0000;--default:#dcdcdc;--ok:#23ef2a;--os:#adaead;--pa:#f94693;--pb:#fd0;--unknown:#525252;--rfccSent:#bcf316;--rfccPartly:#c7f316;--rfcc:#60f316;--rfocSent:#0dccf2;--rfocPartly:#1accf2;--rfoc:#0d59f2;--rfccRejected:#ff1243;--rfocRejected:#ff1243;--handoverError:#eb0000;--priorityHigh:#ff1243;--priorityMedium:#fbca36;--systems:#d5eaf4;--locations:#3eb54a;--ofpDark:#f4d6a2;--ofpLight:#faebce;--warningText:#ad6200;--warningIcon:#ff9200;--warningBackground:#ffe7d6;--dropDownButtonBackground:#f0f0f0;--dropDownTextColor:grey;--searchBarBackground:#f7f7f7;--highSeverity:#ffc1c1;--mediumSeverity:#ffe7d6;--lowSeverity:#dce6ee;--defaultSeverity:#d5eaf4;--highSeverityText:#eb0000;--mediumSeverityText:#52c0ff;--lowSeverityText:#4bb748;--defaultSeverityText:#3d3d3d;--toggleActive:#4bb748;--toggleInactive:#b30d2f;--hoverIcon:#004f55;--hoverIconWithNotification:#b30d2f;--tertiaryText:#6f6f6f}#root,body,html{height:100%;overflow:hidden;width:100%}html[data-theme=dark]{--equiGreen1:#006f79}body,h1,h2,h3,h4,h5,h6,label,p{color:var(--echoText)}body,html,span{font-family:Equinor!important}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:#f7f7f7;border-radius:5px}::-webkit-scrollbar-thumb{background:#007079;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#004f55}button,input{appearance:none;background:transparent;border:inherit;color:inherit;font:inherit;outline:0}input,input:after,input:before{-webkit-user-select:initial;-khtml-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:auto}";
|
|
38
38
|
styleInject(css_248z$B);
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
* Component that work's as a eds icon wrapper, it imports all eds possible icons
|
|
42
|
-
*
|
|
43
|
-
* @param {IconProps} {
|
|
44
|
-
* name: The name of the icon to be displayed
|
|
45
|
-
* title: The html title to use
|
|
46
|
-
* color:The color to icon should have
|
|
47
|
-
* size: The wanted size of the icon. Possible values are 16, 24, 32, 40 and 48
|
|
48
|
-
* }
|
|
49
|
-
* @return {*} {JSX.Element} A icon for the provided information
|
|
40
|
+
/**
|
|
41
|
+
* Component that work's as a eds icon wrapper, it imports all eds possible icons
|
|
42
|
+
*
|
|
43
|
+
* @param {IconProps} {
|
|
44
|
+
* name: The name of the icon to be displayed
|
|
45
|
+
* title: The html title to use
|
|
46
|
+
* color:The color to icon should have
|
|
47
|
+
* size: The wanted size of the icon. Possible values are 16, 24, 32, 40 and 48
|
|
48
|
+
* }
|
|
49
|
+
* @return {*} {JSX.Element} A icon for the provided information
|
|
50
50
|
*/
|
|
51
51
|
var Icon = function Icon(_ref) {
|
|
52
52
|
var name = _ref.name,
|
|
@@ -358,17 +358,17 @@ var css_248z$A = ".dataInfoButton-module_button__N4F5j{background-color:var(--wh
|
|
|
358
358
|
var style$a = {"button":"dataInfoButton-module_button__N4F5j","buttonWithBadge":"dataInfoButton-module_buttonWithBadge__Qjm3a"};
|
|
359
359
|
styleInject(css_248z$A);
|
|
360
360
|
|
|
361
|
-
/**
|
|
362
|
-
* Component that renders a data information button with a badge to indicate the number of items under that scoped type
|
|
363
|
-
*
|
|
364
|
-
* @param {DataInfoButtonProps} { data } Contains data information related to how the button should be rendered
|
|
365
|
-
* numberOfItems: If number is 1 or less no badge will be displayed on the button. If number is over 99,
|
|
366
|
-
* then the text 99+ will be displayed. Otherwise the provided number will be displayed
|
|
367
|
-
* label: The name of the data type, will be displayed on the button
|
|
368
|
-
* ariaLabel: The aria label set on the button, if empty the label will be used
|
|
369
|
-
* onTagInfoClicked: The method to be called when button is pressed
|
|
370
|
-
* itemButtonClassName: Used to style button if default styling is not wanted. class name might need higher precedence for overriding existing styling e.g. "div.itemButtonClassName { background-color: blue !important}"
|
|
371
|
-
* @return {*} {JSX.Element} Data information button with or without a badge based on the provided data object
|
|
361
|
+
/**
|
|
362
|
+
* Component that renders a data information button with a badge to indicate the number of items under that scoped type
|
|
363
|
+
*
|
|
364
|
+
* @param {DataInfoButtonProps} { data } Contains data information related to how the button should be rendered
|
|
365
|
+
* numberOfItems: If number is 1 or less no badge will be displayed on the button. If number is over 99,
|
|
366
|
+
* then the text 99+ will be displayed. Otherwise the provided number will be displayed
|
|
367
|
+
* label: The name of the data type, will be displayed on the button
|
|
368
|
+
* ariaLabel: The aria label set on the button, if empty the label will be used
|
|
369
|
+
* onTagInfoClicked: The method to be called when button is pressed
|
|
370
|
+
* itemButtonClassName: Used to style button if default styling is not wanted. class name might need higher precedence for overriding existing styling e.g. "div.itemButtonClassName { background-color: blue !important}"
|
|
371
|
+
* @return {*} {JSX.Element} Data information button with or without a badge based on the provided data object
|
|
372
372
|
*/
|
|
373
373
|
var DataInfoButton = function DataInfoButton(_ref) {
|
|
374
374
|
var data = _ref.data;
|
|
@@ -386,15 +386,15 @@ var css_248z$z = ".dataInfoPopover-module_wrapper__l8JCd{display:flex;flex-direc
|
|
|
386
386
|
var style$9 = {"wrapper":"dataInfoPopover-module_wrapper__l8JCd","arrow":"dataInfoPopover-module_arrow__KXQ5a","optionsPopover":"dataInfoPopover-module_optionsPopover__ZPXbv","groupWrapper":"dataInfoPopover-module_groupWrapper__InWuY","banner":"dataInfoPopover-module_banner__QtiKf","infoMessage":"dataInfoPopover-module_infoMessage__lqzTe"};
|
|
387
387
|
styleInject(css_248z$z);
|
|
388
388
|
|
|
389
|
-
/**
|
|
390
|
-
* Component that renders a popover with data information buttons
|
|
391
|
-
*
|
|
392
|
-
* @param {DataInfoPopoverProps} {
|
|
393
|
-
* dataToShow: list of DataInformation objects to be displayed.
|
|
394
|
-
* The itemType in these objects are used to group them together in the popover
|
|
395
|
-
* isLoading: loading flag that tells if a dot progress should be displayed if data is being fetched
|
|
396
|
-
* }
|
|
397
|
-
* @return {*} {JSX.Element} Popover with data information buttons based on the provided DataInformation objects
|
|
389
|
+
/**
|
|
390
|
+
* Component that renders a popover with data information buttons
|
|
391
|
+
*
|
|
392
|
+
* @param {DataInfoPopoverProps} {
|
|
393
|
+
* dataToShow: list of DataInformation objects to be displayed.
|
|
394
|
+
* The itemType in these objects are used to group them together in the popover
|
|
395
|
+
* isLoading: loading flag that tells if a dot progress should be displayed if data is being fetched
|
|
396
|
+
* }
|
|
397
|
+
* @return {*} {JSX.Element} Popover with data information buttons based on the provided DataInformation objects
|
|
398
398
|
*/
|
|
399
399
|
var DataInfoPopover = function DataInfoPopover(_ref) {
|
|
400
400
|
var dataToShow = _ref.dataToShow,
|
|
@@ -455,16 +455,16 @@ var css_248z$y = ".buttonWithPopover-module_button__FDyTt{background-color:var(-
|
|
|
455
455
|
var style$8 = {"button":"buttonWithPopover-module_button__FDyTt","wrapper":"buttonWithPopover-module_wrapper__-pQfB","spinner":"buttonWithPopover-module_spinner__LMbqe"};
|
|
456
456
|
styleInject(css_248z$y);
|
|
457
457
|
|
|
458
|
-
/**
|
|
459
|
-
* Component that renders a round button, that opens a popover upon being clicked
|
|
460
|
-
*
|
|
461
|
-
* @param {ButtonWithPopoverProps} {
|
|
462
|
-
* onShowMoreClicked: method called upon button clicked
|
|
463
|
-
* fetchedData: array of DataInformation that popover should be displayed when button is clicked.
|
|
464
|
-
* Meant to be the return value of the fetchDataToShow method
|
|
465
|
-
* isLoading: flag to show loading state if data fetch takes some time
|
|
466
|
-
* expanded: flag to determine if popover should be expanded or not
|
|
467
|
-
* @return {*} {JSX.Element} Round button with belonging popover to display data information buttons
|
|
458
|
+
/**
|
|
459
|
+
* Component that renders a round button, that opens a popover upon being clicked
|
|
460
|
+
*
|
|
461
|
+
* @param {ButtonWithPopoverProps} {
|
|
462
|
+
* onShowMoreClicked: method called upon button clicked
|
|
463
|
+
* fetchedData: array of DataInformation that popover should be displayed when button is clicked.
|
|
464
|
+
* Meant to be the return value of the fetchDataToShow method
|
|
465
|
+
* isLoading: flag to show loading state if data fetch takes some time
|
|
466
|
+
* expanded: flag to determine if popover should be expanded or not
|
|
467
|
+
* @return {*} {JSX.Element} Round button with belonging popover to display data information buttons
|
|
468
468
|
*/
|
|
469
469
|
var ButtonWithPopover = function ButtonWithPopover(_ref) {
|
|
470
470
|
var onShowMoreClicked = _ref.onShowMoreClicked,
|
|
@@ -507,14 +507,14 @@ var css_248z$x = ".tagIcon-module_icon__FVhlT{border:3px solid var(--white);bord
|
|
|
507
507
|
var styles$n = {"icon":"tagIcon-module_icon__FVhlT","shadow":"tagIcon-module_shadow__dAk0l"};
|
|
508
508
|
styleInject(css_248z$x);
|
|
509
509
|
|
|
510
|
-
/**
|
|
511
|
-
* Component that will wrap the provided icon with a background color (usually the legend color)
|
|
512
|
-
*
|
|
513
|
-
* @param {TagIconProps} {
|
|
514
|
-
* icon: Icon to be wrapped
|
|
515
|
-
* legendColor: background color to apply. Need to be valid css color
|
|
516
|
-
* }
|
|
517
|
-
* @return {*} {JSX.Element} Wrapped icon with provided color
|
|
510
|
+
/**
|
|
511
|
+
* Component that will wrap the provided icon with a background color (usually the legend color)
|
|
512
|
+
*
|
|
513
|
+
* @param {TagIconProps} {
|
|
514
|
+
* icon: Icon to be wrapped
|
|
515
|
+
* legendColor: background color to apply. Need to be valid css color
|
|
516
|
+
* }
|
|
517
|
+
* @return {*} {JSX.Element} Wrapped icon with provided color
|
|
518
518
|
*/
|
|
519
519
|
var TagIcon = function TagIcon(_ref) {
|
|
520
520
|
var icon = _ref.icon,
|
|
@@ -527,12 +527,12 @@ var TagIcon = function TagIcon(_ref) {
|
|
|
527
527
|
}, icon);
|
|
528
528
|
};
|
|
529
529
|
|
|
530
|
-
/**
|
|
531
|
-
* Component that will wrap the provided child element in a shadow.
|
|
532
|
-
* Should be used to add shadow to the tagIcon component
|
|
533
|
-
*
|
|
534
|
-
* @param {TagIconShadowWrapperProps} { children } Child element to wrap
|
|
535
|
-
* @return {*} {JSX.Element} wrapped child element in a shadow
|
|
530
|
+
/**
|
|
531
|
+
* Component that will wrap the provided child element in a shadow.
|
|
532
|
+
* Should be used to add shadow to the tagIcon component
|
|
533
|
+
*
|
|
534
|
+
* @param {TagIconShadowWrapperProps} { children } Child element to wrap
|
|
535
|
+
* @return {*} {JSX.Element} wrapped child element in a shadow
|
|
536
536
|
*/
|
|
537
537
|
var TagIconShadowWrapper = function TagIconShadowWrapper(_ref) {
|
|
538
538
|
var children = _ref.children;
|
|
@@ -545,22 +545,22 @@ var css_248z$w = ".tagContextMenu-module_contextWrapper__o8wWz{border-radius:10r
|
|
|
545
545
|
var styles$m = {"contextWrapper":"tagContextMenu-module_contextWrapper__o8wWz","contextWrapperExpanded":"tagContextMenu-module_contextWrapperExpanded__FJI8c","selected":"tagContextMenu-module_selected__4L6WK","tagInfoWrapper":"tagContextMenu-module_tagInfoWrapper__y4LBf","tagText":"tagContextMenu-module_tagText__8GaFk","tagHeader":"tagContextMenu-module_tagHeader__NW1El","tagDescription":"tagContextMenu-module_tagDescription__lrT1D","tagInfoIcon":"tagContextMenu-module_tagInfoIcon__AMpqu"};
|
|
546
546
|
styleInject(css_248z$w);
|
|
547
547
|
|
|
548
|
-
/**
|
|
549
|
-
* Component that renders a tag context menu that can be expanded and closed upon click
|
|
550
|
-
* The condensed variant will only display the the relevant tag icon
|
|
551
|
-
* The expanded variant will display relevant tag icon, tag number and tag description
|
|
552
|
-
*
|
|
553
|
-
* @param {TagContextMenuProps} {
|
|
554
|
-
* expanded: flag that state if the context menu should be expanded or not
|
|
555
|
-
* setExpanded: method to update the expanded flag
|
|
556
|
-
* tagNo: the tag no to display
|
|
557
|
-
* description: the tag description
|
|
558
|
-
* openTagInformation: method called when expanded context menu is called
|
|
559
|
-
* selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
|
|
560
|
-
* selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
|
|
561
|
-
* children: Meant to be used to pass TagIcon component to this component
|
|
562
|
-
* }
|
|
563
|
-
* @return {*} {JSX.Element} a tag context menu for the provided properties
|
|
548
|
+
/**
|
|
549
|
+
* Component that renders a tag context menu that can be expanded and closed upon click
|
|
550
|
+
* The condensed variant will only display the the relevant tag icon
|
|
551
|
+
* The expanded variant will display relevant tag icon, tag number and tag description
|
|
552
|
+
*
|
|
553
|
+
* @param {TagContextMenuProps} {
|
|
554
|
+
* expanded: flag that state if the context menu should be expanded or not
|
|
555
|
+
* setExpanded: method to update the expanded flag
|
|
556
|
+
* tagNo: the tag no to display
|
|
557
|
+
* description: the tag description
|
|
558
|
+
* openTagInformation: method called when expanded context menu is called
|
|
559
|
+
* selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
|
|
560
|
+
* selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
|
|
561
|
+
* children: Meant to be used to pass TagIcon component to this component
|
|
562
|
+
* }
|
|
563
|
+
* @return {*} {JSX.Element} a tag context menu for the provided properties
|
|
564
564
|
*/
|
|
565
565
|
var TagContextMenu = function TagContextMenu(_ref) {
|
|
566
566
|
var expanded = _ref.expanded,
|
|
@@ -609,24 +609,24 @@ var css_248z$v = ".contextMenu-module_wrapper__p-0Zc{display:flex;flex-wrap:wrap
|
|
|
609
609
|
var style$7 = {"wrapper":"contextMenu-module_wrapper__p-0Zc"};
|
|
610
610
|
styleInject(css_248z$v);
|
|
611
611
|
|
|
612
|
-
/**
|
|
613
|
-
* Component that renders full context menu functionality, meant for displaying tag context menu.
|
|
614
|
-
* With the ability to provide more information button and related popover that should be wrapped with the context menu
|
|
615
|
-
*
|
|
616
|
-
* @param {ContextMenuProps} {
|
|
617
|
-
* icon: icon to be displayed
|
|
618
|
-
* expanded: flag to determine if context menu should be expanded or not
|
|
619
|
-
* legendColor: color used for the tag icon
|
|
620
|
-
* setExpanded: method to update expanded flag
|
|
621
|
-
* tagNo: The tag number to display
|
|
622
|
-
* description: The tag description to display
|
|
623
|
-
* positionStyle: The position styling element used to position the context menu
|
|
624
|
-
* openTagInformation: Method that will be called when expanded context menu is clicked
|
|
625
|
-
* selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
|
|
626
|
-
* selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
|
|
627
|
-
* children: Related elements to display, e.g. more information button
|
|
628
|
-
* }
|
|
629
|
-
* @return {*} {JSX.Element} Context menu with relevant children wrapped
|
|
612
|
+
/**
|
|
613
|
+
* Component that renders full context menu functionality, meant for displaying tag context menu.
|
|
614
|
+
* With the ability to provide more information button and related popover that should be wrapped with the context menu
|
|
615
|
+
*
|
|
616
|
+
* @param {ContextMenuProps} {
|
|
617
|
+
* icon: icon to be displayed
|
|
618
|
+
* expanded: flag to determine if context menu should be expanded or not
|
|
619
|
+
* legendColor: color used for the tag icon
|
|
620
|
+
* setExpanded: method to update expanded flag
|
|
621
|
+
* tagNo: The tag number to display
|
|
622
|
+
* description: The tag description to display
|
|
623
|
+
* positionStyle: The position styling element used to position the context menu
|
|
624
|
+
* openTagInformation: Method that will be called when expanded context menu is clicked
|
|
625
|
+
* selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
|
|
626
|
+
* selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
|
|
627
|
+
* children: Related elements to display, e.g. more information button
|
|
628
|
+
* }
|
|
629
|
+
* @return {*} {JSX.Element} Context menu with relevant children wrapped
|
|
630
630
|
*/
|
|
631
631
|
var ContextMenu = function ContextMenu(_ref) {
|
|
632
632
|
var icon = _ref.icon,
|
|
@@ -13527,19 +13527,19 @@ var css_248z$q = ".dialogGenerator-module_footer__h-ido{box-sizing:border-box;di
|
|
|
13527
13527
|
var styles$l = {"footer":"dialogGenerator-module_footer__h-ido"};
|
|
13528
13528
|
styleInject(css_248z$q);
|
|
13529
13529
|
|
|
13530
|
-
/**
|
|
13531
|
-
* Component that renders a dialog box based on input properties
|
|
13532
|
-
*
|
|
13533
|
-
* @param {DialogGeneratorProps} {
|
|
13534
|
-
* dialogStyle: style property to override existing styling on the dialog wrapper
|
|
13535
|
-
* title: the title of the dialog
|
|
13536
|
-
* children: The main content of the dialog
|
|
13537
|
-
* actionButtons: the buttons to show in the dialog
|
|
13538
|
-
* open: if the dialog should be open
|
|
13539
|
-
* isDismissable: if the modal is closable by clicking aside or by hitting ESC key
|
|
13540
|
-
* onClose: callback to be called when the dialog is closed
|
|
13541
|
-
* }
|
|
13542
|
-
* @return {*} {JSX.Element} Dialog component
|
|
13530
|
+
/**
|
|
13531
|
+
* Component that renders a dialog box based on input properties
|
|
13532
|
+
*
|
|
13533
|
+
* @param {DialogGeneratorProps} {
|
|
13534
|
+
* dialogStyle: style property to override existing styling on the dialog wrapper
|
|
13535
|
+
* title: the title of the dialog
|
|
13536
|
+
* children: The main content of the dialog
|
|
13537
|
+
* actionButtons: the buttons to show in the dialog
|
|
13538
|
+
* open: if the dialog should be open
|
|
13539
|
+
* isDismissable: if the modal is closable by clicking aside or by hitting ESC key
|
|
13540
|
+
* onClose: callback to be called when the dialog is closed
|
|
13541
|
+
* }
|
|
13542
|
+
* @return {*} {JSX.Element} Dialog component
|
|
13543
13543
|
*/
|
|
13544
13544
|
var DialogGenerator = function DialogGenerator(_ref) {
|
|
13545
13545
|
var dialogStyle = _ref.dialogStyle,
|
|
@@ -14498,24 +14498,24 @@ var _EchoUtils$Hooks = EchoUtils.Hooks,
|
|
|
14498
14498
|
useFocus$1 = _EchoUtils$Hooks.useFocus,
|
|
14499
14499
|
useOnOutsideClick = _EchoUtils$Hooks.useOnOutsideClick;
|
|
14500
14500
|
var generateRandomId = EchoUtils.Utils.generateRandomId;
|
|
14501
|
-
/**
|
|
14502
|
-
* Component that renders a dropdown menu, e.g., for a plant selector.
|
|
14503
|
-
* Additional possibility to make the list searchable by adding a search field.
|
|
14504
|
-
* @param {DropdownItemProps} {
|
|
14505
|
-
* selected: The item that is currently selected from the list.
|
|
14506
|
-
* data: The list of data items to be displayed in the dropdown.
|
|
14507
|
-
* placeholder: Placeholder text to be displayed when no item is selected.
|
|
14508
|
-
* openDownWards: Flag which decides if the menu is opened downwards or upwards.
|
|
14509
|
-
* filterFunc: Function which filters the list of data based on the value of the search field.
|
|
14510
|
-
* setSelected: Function for setting the selected item.
|
|
14511
|
-
* isDisabled: Flag which disables the dropdown.
|
|
14512
|
-
* disabledText: The title text that displays when the dropdown is disabled.
|
|
14513
|
-
* variant: Decides which style the dropdown should have. Either default or compact.
|
|
14514
|
-
* showSearch: Flag which decides whether we should include the search field or not.
|
|
14515
|
-
* position: Determines if the dropdown position should be relative or absolute.
|
|
14516
|
-
* triggerOpen: Callback to trigger when the dropdown is opened.
|
|
14517
|
-
* }
|
|
14518
|
-
* @return {*} {JSX.Element} The dropdown component.
|
|
14501
|
+
/**
|
|
14502
|
+
* Component that renders a dropdown menu, e.g., for a plant selector.
|
|
14503
|
+
* Additional possibility to make the list searchable by adding a search field.
|
|
14504
|
+
* @param {DropdownItemProps} {
|
|
14505
|
+
* selected: The item that is currently selected from the list.
|
|
14506
|
+
* data: The list of data items to be displayed in the dropdown.
|
|
14507
|
+
* placeholder: Placeholder text to be displayed when no item is selected.
|
|
14508
|
+
* openDownWards: Flag which decides if the menu is opened downwards or upwards.
|
|
14509
|
+
* filterFunc: Function which filters the list of data based on the value of the search field.
|
|
14510
|
+
* setSelected: Function for setting the selected item.
|
|
14511
|
+
* isDisabled: Flag which disables the dropdown.
|
|
14512
|
+
* disabledText: The title text that displays when the dropdown is disabled.
|
|
14513
|
+
* variant: Decides which style the dropdown should have. Either default or compact.
|
|
14514
|
+
* showSearch: Flag which decides whether we should include the search field or not.
|
|
14515
|
+
* position: Determines if the dropdown position should be relative or absolute.
|
|
14516
|
+
* triggerOpen: Callback to trigger when the dropdown is opened.
|
|
14517
|
+
* }
|
|
14518
|
+
* @return {*} {JSX.Element} The dropdown component.
|
|
14519
14519
|
*/
|
|
14520
14520
|
var Dropdown = function Dropdown(_ref) {
|
|
14521
14521
|
var selected = _ref.selected,
|
|
@@ -14916,16 +14916,16 @@ var css_248z$m = ".echoHeader-module_headerWrapper__1aaPR{background-color:#fff;
|
|
|
14916
14916
|
var styles$i = {"headerWrapper":"echoHeader-module_headerWrapper__1aaPR","headerContainer":"echoHeader-module_headerContainer__jHC0e","moduleIcon":"echoHeader-module_moduleIcon__-U7mU","titleSection":"echoHeader-module_titleSection__macuj","moduleTextTitle":"echoHeader-module_moduleTextTitle__CiJzX","plantName":"echoHeader-module_plantName__eNNEy","customSection":"echoHeader-module_customSection__gGG2C"};
|
|
14917
14917
|
styleInject(css_248z$m);
|
|
14918
14918
|
|
|
14919
|
-
/**
|
|
14920
|
-
* Component that renders the Echo header
|
|
14921
|
-
*
|
|
14922
|
-
* @param {EchoHeaderProps} {
|
|
14923
|
-
* moduleTitle: the title of the module
|
|
14924
|
-
* moduleIcon: the module Icon
|
|
14925
|
-
* plantName: show the plant name next to the module title
|
|
14926
|
-
* customSection: a section in the header where there can be custom components
|
|
14927
|
-
* }
|
|
14928
|
-
* @returns {*} {JSX.Element} Echo header with custom section
|
|
14919
|
+
/**
|
|
14920
|
+
* Component that renders the Echo header
|
|
14921
|
+
*
|
|
14922
|
+
* @param {EchoHeaderProps} {
|
|
14923
|
+
* moduleTitle: the title of the module
|
|
14924
|
+
* moduleIcon: the module Icon
|
|
14925
|
+
* plantName: show the plant name next to the module title
|
|
14926
|
+
* customSection: a section in the header where there can be custom components
|
|
14927
|
+
* }
|
|
14928
|
+
* @returns {*} {JSX.Element} Echo header with custom section
|
|
14929
14929
|
*/
|
|
14930
14930
|
var EchoHeader = function EchoHeader(_ref) {
|
|
14931
14931
|
var _ref$moduleTitle = _ref.moduleTitle,
|
|
@@ -16970,10 +16970,10 @@ var getEchoVariantStyle = function getEchoVariantStyle(echoVariant) {
|
|
|
16970
16970
|
return '';
|
|
16971
16971
|
}
|
|
16972
16972
|
};
|
|
16973
|
-
/**
|
|
16974
|
-
* Floating actions buttons exists within the viewport, seperated from any sheet, dialog or menu
|
|
16975
|
-
* and are typically used for special actions pertaining to the module they are used in.
|
|
16976
|
-
* @return {*} {JSX.Element} Floating actions button
|
|
16973
|
+
/**
|
|
16974
|
+
* Floating actions buttons exists within the viewport, seperated from any sheet, dialog or menu
|
|
16975
|
+
* and are typically used for special actions pertaining to the module they are used in.
|
|
16976
|
+
* @return {*} {JSX.Element} Floating actions button
|
|
16977
16977
|
*/
|
|
16978
16978
|
var FloatingActionButton = function FloatingActionButton(_ref) {
|
|
16979
16979
|
var label = _ref.label,
|
|
@@ -17020,9 +17020,9 @@ var useEventListener = function useEventListener(eventName, handler, options) {
|
|
|
17020
17020
|
};
|
|
17021
17021
|
|
|
17022
17022
|
var useInitial = EchoUtils.Hooks.useInitial;
|
|
17023
|
-
/**
|
|
17024
|
-
* Hook for checking if page is loaded from mobile device.
|
|
17025
|
-
* @returns boolean true if on mobile.
|
|
17023
|
+
/**
|
|
17024
|
+
* Hook for checking if page is loaded from mobile device.
|
|
17025
|
+
* @returns boolean true if on mobile.
|
|
17026
17026
|
*/
|
|
17027
17027
|
function useIsMobile() {
|
|
17028
17028
|
var _useState = useState(false),
|
|
@@ -17082,11 +17082,11 @@ var useListNavigator = function useListNavigator(listLength) {
|
|
|
17082
17082
|
}, listenerTarget);
|
|
17083
17083
|
return currIndex;
|
|
17084
17084
|
};
|
|
17085
|
-
/**
|
|
17086
|
-
* 1. On open: focus should be undefined/inactive. (list should scroll/show selected item if any).
|
|
17087
|
-
* 2. user presses a key (usually down) - scroll list to focused element, which should be first item
|
|
17088
|
-
* in the first section. Also set focused section.
|
|
17089
|
-
* 3. Potentially jump to last in list if user goes up?
|
|
17085
|
+
/**
|
|
17086
|
+
* 1. On open: focus should be undefined/inactive. (list should scroll/show selected item if any).
|
|
17087
|
+
* 2. user presses a key (usually down) - scroll list to focused element, which should be first item
|
|
17088
|
+
* in the first section. Also set focused section.
|
|
17089
|
+
* 3. Potentially jump to last in list if user goes up?
|
|
17090
17090
|
*/
|
|
17091
17091
|
var useSectionNavigator = function useSectionNavigator(sections, initialSelected, keyboardEvents) {
|
|
17092
17092
|
var listenerTarget = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : document;
|
|
@@ -17457,23 +17457,23 @@ var TagCategoryType;
|
|
|
17457
17457
|
TagCategoryType["JunctionBox"] = "junction box";
|
|
17458
17458
|
TagCategoryType["Administrative"] = "administrative";
|
|
17459
17459
|
})(TagCategoryType || (TagCategoryType = {}));
|
|
17460
|
-
/**
|
|
17461
|
-
* Method that returns the relevant Icon for the tagCategoryDescription provided
|
|
17462
|
-
* Tag icon is the default JSX.Element Icon returned
|
|
17463
|
-
* @export
|
|
17464
|
-
* @param {('electrical'
|
|
17465
|
-
* | 'main equipment'
|
|
17466
|
-
* | 'line'
|
|
17467
|
-
* | 'manual valve'
|
|
17468
|
-
* | 'circuit/starter'
|
|
17469
|
-
* | 'instrument'
|
|
17470
|
-
* | 'cable'
|
|
17471
|
-
* | 'function'
|
|
17472
|
-
* | 'signal'
|
|
17473
|
-
* | 'telecom'
|
|
17474
|
-
* | 'junction box'
|
|
17475
|
-
* | 'administrative'
|
|
17476
|
-
* @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
|
|
17460
|
+
/**
|
|
17461
|
+
* Method that returns the relevant Icon for the tagCategoryDescription provided
|
|
17462
|
+
* Tag icon is the default JSX.Element Icon returned
|
|
17463
|
+
* @export
|
|
17464
|
+
* @param {('electrical'
|
|
17465
|
+
* | 'main equipment'
|
|
17466
|
+
* | 'line'
|
|
17467
|
+
* | 'manual valve'
|
|
17468
|
+
* | 'circuit/starter'
|
|
17469
|
+
* | 'instrument'
|
|
17470
|
+
* | 'cable'
|
|
17471
|
+
* | 'function'
|
|
17472
|
+
* | 'signal'
|
|
17473
|
+
* | 'telecom'
|
|
17474
|
+
* | 'junction box'
|
|
17475
|
+
* | 'administrative'
|
|
17476
|
+
* @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
|
|
17477
17477
|
*/
|
|
17478
17478
|
var TagCategoryIcon = function TagCategoryIcon(_ref) {
|
|
17479
17479
|
var tagCategoryDescription = _ref.tagCategoryDescription;
|
|
@@ -17540,12 +17540,12 @@ function getIcon(tagCategoryDescription) {
|
|
|
17540
17540
|
});
|
|
17541
17541
|
}
|
|
17542
17542
|
|
|
17543
|
-
/**
|
|
17544
|
-
* Floating search bar
|
|
17545
|
-
*
|
|
17546
|
-
* @param {FloatingSearchBarProps} {
|
|
17547
|
-
* }
|
|
17548
|
-
* @return {*} {JSX.Element}
|
|
17543
|
+
/**
|
|
17544
|
+
* Floating search bar
|
|
17545
|
+
*
|
|
17546
|
+
* @param {FloatingSearchBarProps} {
|
|
17547
|
+
* }
|
|
17548
|
+
* @return {*} {JSX.Element}
|
|
17549
17549
|
*/
|
|
17550
17550
|
var FloatingSearchBar = function FloatingSearchBar(_ref) {
|
|
17551
17551
|
var ariaLabel = _ref.ariaLabel,
|
|
@@ -22038,15 +22038,15 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
22038
22038
|
} (dist));
|
|
22039
22039
|
|
|
22040
22040
|
var DraggableHandleSelector = 'globalDraggableHandle';
|
|
22041
|
-
/**
|
|
22042
|
-
* Component that renders a wrapper for items that are draggable
|
|
22043
|
-
*
|
|
22044
|
-
* @param {DraggableItemsWrapperProps} {
|
|
22045
|
-
* style: style element to override wrapper style
|
|
22046
|
-
* onChange: method that will be called when elements have be reordered inside the wrapper
|
|
22047
|
-
* children: list of elements that can be reordered
|
|
22048
|
-
* }
|
|
22049
|
-
* @return {*} {JSX.Element}
|
|
22041
|
+
/**
|
|
22042
|
+
* Component that renders a wrapper for items that are draggable
|
|
22043
|
+
*
|
|
22044
|
+
* @param {DraggableItemsWrapperProps} {
|
|
22045
|
+
* style: style element to override wrapper style
|
|
22046
|
+
* onChange: method that will be called when elements have be reordered inside the wrapper
|
|
22047
|
+
* children: list of elements that can be reordered
|
|
22048
|
+
* }
|
|
22049
|
+
* @return {*} {JSX.Element}
|
|
22050
22050
|
*/
|
|
22051
22051
|
var DraggableItemsWrapper = function DraggableItemsWrapper(_ref) {
|
|
22052
22052
|
var style = _ref.style,
|
|
@@ -22091,16 +22091,16 @@ var css_248z$h = ".radioButton-module_buttonWrapper__gzYAz span,.radioButton-mod
|
|
|
22091
22091
|
var styles$f = {"header":"radioButton-module_header__f6AoN","buttonWrapper":"radioButton-module_buttonWrapper__gzYAz"};
|
|
22092
22092
|
styleInject(css_248z$h);
|
|
22093
22093
|
|
|
22094
|
-
/**
|
|
22095
|
-
* Component that renders a Radio Button Group with a set of options to choose from
|
|
22096
|
-
*
|
|
22097
|
-
* @param {RadioButtonGroupProps} {
|
|
22098
|
-
* title: The title of the radio button group,
|
|
22099
|
-
* options: List of items to be displayed as options,
|
|
22100
|
-
* style: Style element to override wrapper style,
|
|
22101
|
-
* onSelected: Method to be called when the selected value is changed
|
|
22102
|
-
* }
|
|
22103
|
-
* @return {*} {JSX.Element}
|
|
22094
|
+
/**
|
|
22095
|
+
* Component that renders a Radio Button Group with a set of options to choose from
|
|
22096
|
+
*
|
|
22097
|
+
* @param {RadioButtonGroupProps} {
|
|
22098
|
+
* title: The title of the radio button group,
|
|
22099
|
+
* options: List of items to be displayed as options,
|
|
22100
|
+
* style: Style element to override wrapper style,
|
|
22101
|
+
* onSelected: Method to be called when the selected value is changed
|
|
22102
|
+
* }
|
|
22103
|
+
* @return {*} {JSX.Element}
|
|
22104
22104
|
*/
|
|
22105
22105
|
var RadioButtonGroup = function RadioButtonGroup(_ref) {
|
|
22106
22106
|
var title = _ref.title,
|
|
@@ -22164,19 +22164,19 @@ var css_248z$f = ".sliderField-module_sliderField__gp6ce{display:flex;flex-direc
|
|
|
22164
22164
|
var styles$e = {"sliderField":"sliderField-module_sliderField__gp6ce","sliderWrapper":"sliderField-module_sliderWrapper__pAwLd"};
|
|
22165
22165
|
styleInject(css_248z$f);
|
|
22166
22166
|
|
|
22167
|
-
/**
|
|
22168
|
-
* Component that renders a slider with numeric or custom values
|
|
22169
|
-
*
|
|
22170
|
-
* @param {SliderFieldProps} {
|
|
22171
|
-
* value: Current value of the slider,
|
|
22172
|
-
* min: Minimum value of the slider,
|
|
22173
|
-
* max: Maximum value of the slider,
|
|
22174
|
-
* labels: List of labels to use if the slider should not display numeric values,
|
|
22175
|
-
* title: Text shown as title of the slider,
|
|
22176
|
-
* onChange: Method that will be called if the slider value is changed,
|
|
22177
|
-
* style: style element to override wrapper style
|
|
22178
|
-
* }
|
|
22179
|
-
* @return {*} {JSX.Element}
|
|
22167
|
+
/**
|
|
22168
|
+
* Component that renders a slider with numeric or custom values
|
|
22169
|
+
*
|
|
22170
|
+
* @param {SliderFieldProps} {
|
|
22171
|
+
* value: Current value of the slider,
|
|
22172
|
+
* min: Minimum value of the slider,
|
|
22173
|
+
* max: Maximum value of the slider,
|
|
22174
|
+
* labels: List of labels to use if the slider should not display numeric values,
|
|
22175
|
+
* title: Text shown as title of the slider,
|
|
22176
|
+
* onChange: Method that will be called if the slider value is changed,
|
|
22177
|
+
* style: style element to override wrapper style
|
|
22178
|
+
* }
|
|
22179
|
+
* @return {*} {JSX.Element}
|
|
22180
22180
|
*/
|
|
22181
22181
|
var SliderField = function SliderField(_ref) {
|
|
22182
22182
|
var value = _ref.value,
|
|
@@ -22222,16 +22222,16 @@ var css_248z$e = ".textIconButton-module_button__9s6rE{align-items:center;border
|
|
|
22222
22222
|
var styles$d = {"button":"textIconButton-module_button__9s6rE","text":"textIconButton-module_text__hw0bg"};
|
|
22223
22223
|
styleInject(css_248z$e);
|
|
22224
22224
|
|
|
22225
|
-
/**
|
|
22226
|
-
* Component that renders a button with the icon and the text provided
|
|
22227
|
-
*
|
|
22228
|
-
* @param {TextIconButtonProps} {
|
|
22229
|
-
* icon: the name of the icon to display
|
|
22230
|
-
* title: the title text that the button should display
|
|
22231
|
-
* onClick: the function that will be called when user clicks the button
|
|
22232
|
-
* style: Optional parameter that will override the button style
|
|
22233
|
-
* }
|
|
22234
|
-
* @return {*} {JSX.Element} A button with the provided icon and text
|
|
22225
|
+
/**
|
|
22226
|
+
* Component that renders a button with the icon and the text provided
|
|
22227
|
+
*
|
|
22228
|
+
* @param {TextIconButtonProps} {
|
|
22229
|
+
* icon: the name of the icon to display
|
|
22230
|
+
* title: the title text that the button should display
|
|
22231
|
+
* onClick: the function that will be called when user clicks the button
|
|
22232
|
+
* style: Optional parameter that will override the button style
|
|
22233
|
+
* }
|
|
22234
|
+
* @return {*} {JSX.Element} A button with the provided icon and text
|
|
22235
22235
|
*/
|
|
22236
22236
|
var TextIconButton = function TextIconButton(_ref) {
|
|
22237
22237
|
var icon = _ref.icon,
|
|
@@ -22258,24 +22258,24 @@ var css_248z$d = ".listRow-module_wrapper__j5Czq{border-bottom:1px solid #dcdcdc
|
|
|
22258
22258
|
var styles$c = {"wrapper":"listRow-module_wrapper__j5Czq","row":"listRow-module_row__5taKB","infoCol":"listRow-module_infoCol__fSiO5","draggable":"listRow-module_draggable__WoQYD","info":"listRow-module_info__fX3UU","iconCol":"listRow-module_iconCol__A4oE0","activeIconButton":"listRow-module_activeIconButton__GdFjq","iconButton":"listRow-module_iconButton__j9G0z","expandedRow":"listRow-module_expandedRow__DdJu5","close":"listRow-module_close__gdtqH"};
|
|
22259
22259
|
styleInject(css_248z$d);
|
|
22260
22260
|
|
|
22261
|
-
/**
|
|
22262
|
-
* Component that renders one row in a list. The row can be marked as draggable and expandable
|
|
22263
|
-
*
|
|
22264
|
-
* @param {ListRowProps} {
|
|
22265
|
-
* isDraggable: flag to indicate that the row can be rearranged in a list
|
|
22266
|
-
* item: { The item to be rendered in the row
|
|
22267
|
-
* title: the title of the item in the row
|
|
22268
|
-
* subtitle: the subtitle of the item in the row
|
|
22269
|
-
* icons: the icons that will be displayed on the same row, and their respective actions
|
|
22270
|
-
* }
|
|
22271
|
-
* expandable: { object with properties to handle if the row is expandable. If undefined the row cannot be expanded
|
|
22272
|
-
* iconItems: the items that will be displayed if row is expanded, and their respective actions
|
|
22273
|
-
* expanded: flag to indicate if the row is expanded or not
|
|
22274
|
-
* setExpanded: method that updates the expanded flag
|
|
22275
|
-
* }
|
|
22276
|
-
* style: style element to override wrapper style
|
|
22277
|
-
* }
|
|
22278
|
-
* @return {*} {JSX.Element} a row element to be used in a list
|
|
22261
|
+
/**
|
|
22262
|
+
* Component that renders one row in a list. The row can be marked as draggable and expandable
|
|
22263
|
+
*
|
|
22264
|
+
* @param {ListRowProps} {
|
|
22265
|
+
* isDraggable: flag to indicate that the row can be rearranged in a list
|
|
22266
|
+
* item: { The item to be rendered in the row
|
|
22267
|
+
* title: the title of the item in the row
|
|
22268
|
+
* subtitle: the subtitle of the item in the row
|
|
22269
|
+
* icons: the icons that will be displayed on the same row, and their respective actions
|
|
22270
|
+
* }
|
|
22271
|
+
* expandable: { object with properties to handle if the row is expandable. If undefined the row cannot be expanded
|
|
22272
|
+
* iconItems: the items that will be displayed if row is expanded, and their respective actions
|
|
22273
|
+
* expanded: flag to indicate if the row is expanded or not
|
|
22274
|
+
* setExpanded: method that updates the expanded flag
|
|
22275
|
+
* }
|
|
22276
|
+
* style: style element to override wrapper style
|
|
22277
|
+
* }
|
|
22278
|
+
* @return {*} {JSX.Element} a row element to be used in a list
|
|
22279
22279
|
*/
|
|
22280
22280
|
var ListRow = function ListRow(_ref) {
|
|
22281
22281
|
var isDraggable = _ref.isDraggable,
|
|
@@ -22351,19 +22351,19 @@ var css_248z$c = ".menuButton-module_button__qpHsn{align-items:center;border-lef
|
|
|
22351
22351
|
var styles$b = {"button":"menuButton-module_button__qpHsn","text":"menuButton-module_text__MiZeF","active":"menuButton-module_active__1Dznq"};
|
|
22352
22352
|
styleInject(css_248z$c);
|
|
22353
22353
|
|
|
22354
|
-
/**
|
|
22355
|
-
* The menu bottom items
|
|
22356
|
-
* On desktop it will have an active border on the left,
|
|
22357
|
-
* and on mobile the active border will be on the bottom
|
|
22358
|
-
* Contains an icon and a descriptive text
|
|
22359
|
-
* @param {*} {
|
|
22360
|
-
* text, the text below the icon, also displayed on hover
|
|
22361
|
-
* active, boolean describing the buttons active state
|
|
22362
|
-
* children, the icon to be displayed
|
|
22363
|
-
* onClick, the on click event
|
|
22364
|
-
* id: the id of the button in case its needed
|
|
22365
|
-
* }
|
|
22366
|
-
* @return {*} {JSX.Element}
|
|
22354
|
+
/**
|
|
22355
|
+
* The menu bottom items
|
|
22356
|
+
* On desktop it will have an active border on the left,
|
|
22357
|
+
* and on mobile the active border will be on the bottom
|
|
22358
|
+
* Contains an icon and a descriptive text
|
|
22359
|
+
* @param {*} {
|
|
22360
|
+
* text, the text below the icon, also displayed on hover
|
|
22361
|
+
* active, boolean describing the buttons active state
|
|
22362
|
+
* children, the icon to be displayed
|
|
22363
|
+
* onClick, the on click event
|
|
22364
|
+
* id: the id of the button in case its needed
|
|
22365
|
+
* }
|
|
22366
|
+
* @return {*} {JSX.Element}
|
|
22367
22367
|
*/
|
|
22368
22368
|
var MenuButton = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
22369
22369
|
var text = props.text,
|
|
@@ -23406,18 +23406,18 @@ var css_248z$b = ".panelWrapper-module_wrapper__asJxL{position:fixed;right:0;z-i
|
|
|
23406
23406
|
var styles$a = {"wrapper":"panelWrapper-module_wrapper__asJxL","topBarWrapper":"panelWrapper-module_topBarWrapper__Nt84G","narrowPanel":"panelWrapper-module_narrowPanel__zW0DI","contentPanel":"panelWrapper-module_contentPanel__JWij5","activeContentPanel":"panelWrapper-module_activeContentPanel__1nAhR","buttonWrapperMobile":"panelWrapper-module_buttonWrapperMobile__pcR1V","buttonWrapper":"panelWrapper-module_buttonWrapper__xbmQI","buttonAtBottomWrapper":"panelWrapper-module_buttonAtBottomWrapper__jLd-d","moduleTitle":"panelWrapper-module_moduleTitle__4Wloo"};
|
|
23407
23407
|
styleInject(css_248z$b);
|
|
23408
23408
|
|
|
23409
|
-
/**
|
|
23410
|
-
* Component that display's the buttons in a panel. It will automatically try to calculate how many buttons to display
|
|
23411
|
-
* and how many buttons to hide behind the more menu.
|
|
23412
|
-
* It controls which panel to display when a button is clicked
|
|
23413
|
-
* On desktop this component will render on the right side, and on the top in mobile view
|
|
23414
|
-
*
|
|
23415
|
-
* @param {*} {
|
|
23416
|
-
* menuItems, the items to be displayed in the menu and its belonging panels
|
|
23417
|
-
* header, the header that will be displayed on mobile.
|
|
23418
|
-
* If its a string then it will only display a header text. But it can also be a component with self defined html
|
|
23419
|
-
* }
|
|
23420
|
-
* @return {*} {JSX.Element}
|
|
23409
|
+
/**
|
|
23410
|
+
* Component that display's the buttons in a panel. It will automatically try to calculate how many buttons to display
|
|
23411
|
+
* and how many buttons to hide behind the more menu.
|
|
23412
|
+
* It controls which panel to display when a button is clicked
|
|
23413
|
+
* On desktop this component will render on the right side, and on the top in mobile view
|
|
23414
|
+
*
|
|
23415
|
+
* @param {*} {
|
|
23416
|
+
* menuItems, the items to be displayed in the menu and its belonging panels
|
|
23417
|
+
* header, the header that will be displayed on mobile.
|
|
23418
|
+
* If its a string then it will only display a header text. But it can also be a component with self defined html
|
|
23419
|
+
* }
|
|
23420
|
+
* @return {*} {JSX.Element}
|
|
23421
23421
|
*/
|
|
23422
23422
|
var PanelWrapper = function PanelWrapper(_ref) {
|
|
23423
23423
|
var _classnames;
|
|
@@ -23646,15 +23646,15 @@ var PanelWrapper = function PanelWrapper(_ref) {
|
|
|
23646
23646
|
}, getPanelComponentForActivePanel(activePanel)));
|
|
23647
23647
|
};
|
|
23648
23648
|
|
|
23649
|
-
/**
|
|
23650
|
-
* The actual right side panel. This component wraps the panel with a panel state
|
|
23651
|
-
*
|
|
23652
|
-
* @param {PanelProps} {
|
|
23653
|
-
* menuItems, the items to be displayed in the menu and its belonging panels
|
|
23654
|
-
* header, the header that will be displayed on mobile.
|
|
23655
|
-
* If its a string then it will only display a header text. But it can also be a component with self defined html
|
|
23656
|
-
* }
|
|
23657
|
-
* @return {*} {JSX.Element}
|
|
23649
|
+
/**
|
|
23650
|
+
* The actual right side panel. This component wraps the panel with a panel state
|
|
23651
|
+
*
|
|
23652
|
+
* @param {PanelProps} {
|
|
23653
|
+
* menuItems, the items to be displayed in the menu and its belonging panels
|
|
23654
|
+
* header, the header that will be displayed on mobile.
|
|
23655
|
+
* If its a string then it will only display a header text. But it can also be a component with self defined html
|
|
23656
|
+
* }
|
|
23657
|
+
* @return {*} {JSX.Element}
|
|
23658
23658
|
*/
|
|
23659
23659
|
var Panel = function Panel(_ref) {
|
|
23660
23660
|
var menuItems = _ref.menuItems,
|
|
@@ -23669,19 +23669,19 @@ var css_248z$a = ".panelContent-module_headerWrapper__BAc2H{display:flex;justify
|
|
|
23669
23669
|
var styles$9 = {"headerWrapper":"panelContent-module_headerWrapper__BAc2H","panelTitle":"panelContent-module_panelTitle__jqqJT","bodyWrapper":"panelContent-module_bodyWrapper__EHsg5","bodyWrapperWithFooter":"panelContent-module_bodyWrapperWithFooter__uoMyR","footer":"panelContent-module_footer__P1Nr8","contentWrapper":"panelContent-module_contentWrapper__1re5K"};
|
|
23670
23670
|
styleInject(css_248z$a);
|
|
23671
23671
|
|
|
23672
|
-
/**
|
|
23673
|
-
* The component that wraps the panel drawer content
|
|
23674
|
-
* This components displays a header with close and possible back button
|
|
23675
|
-
* It also displays the content wrapped with some css
|
|
23676
|
-
*
|
|
23677
|
-
* @param {PanelContentProps} {
|
|
23678
|
-
* header, the header text to display
|
|
23679
|
-
* children, the panels content
|
|
23680
|
-
* backToMainPanel: optional parameter that controls whether the panel should have a back button or not
|
|
23681
|
-
* to be used in cases where there are panels within panels,
|
|
23682
|
-
* footer: optional param, if used a footer will be shown in the panel content
|
|
23683
|
-
* }
|
|
23684
|
-
* @return {*} {JSX.Element}
|
|
23672
|
+
/**
|
|
23673
|
+
* The component that wraps the panel drawer content
|
|
23674
|
+
* This components displays a header with close and possible back button
|
|
23675
|
+
* It also displays the content wrapped with some css
|
|
23676
|
+
*
|
|
23677
|
+
* @param {PanelContentProps} {
|
|
23678
|
+
* header, the header text to display
|
|
23679
|
+
* children, the panels content
|
|
23680
|
+
* backToMainPanel: optional parameter that controls whether the panel should have a back button or not
|
|
23681
|
+
* to be used in cases where there are panels within panels,
|
|
23682
|
+
* footer: optional param, if used a footer will be shown in the panel content
|
|
23683
|
+
* }
|
|
23684
|
+
* @return {*} {JSX.Element}
|
|
23685
23685
|
*/
|
|
23686
23686
|
var PanelContent = function PanelContent(_ref) {
|
|
23687
23687
|
var header = _ref.header,
|
|
@@ -23723,28 +23723,28 @@ var css_248z$9 = ".sidebarButton-module_button__37sG4{align-items:center;box-siz
|
|
|
23723
23723
|
var styles$8 = {"button":"sidebarButton-module_button__37sG4","activeButton":"sidebarButton-module_activeButton__WkS2p","text":"sidebarButton-module_text__S0hrv","rightBarButton":"sidebarButton-module_rightBarButton__nh2hd","leftBarButton":"sidebarButton-module_leftBarButton__C5g1N","bottomBarButton":"sidebarButton-module_bottomBarButton__UJRT3","tabButton":"sidebarButton-module_tabButton__eQISU","tabItemCount":"sidebarButton-module_tabItemCount__nQc-M"};
|
|
23724
23724
|
styleInject(css_248z$9);
|
|
23725
23725
|
|
|
23726
|
-
/**
|
|
23727
|
-
* The reusable button component that is used in the sidebars/bottom bar.
|
|
23728
|
-
*
|
|
23729
|
-
* On desktop it will have an active border on the left/right/top,
|
|
23730
|
-
* depending if the ButtonPosition is set to: "right"/"left"/"bottom".
|
|
23731
|
-
* The active border will be on the right if it's a tab button and ButtonPosition is set to: "tab".
|
|
23732
|
-
*
|
|
23733
|
-
* On mobile with the right sidebar, the active border will be on the bottom.
|
|
23734
|
-
* In landscape mode with the bottom bar, the active border will be on the right.
|
|
23735
|
-
*
|
|
23736
|
-
* The button contains an icon and a descriptive text.
|
|
23737
|
-
* @param {*} {
|
|
23738
|
-
* text: the text below the icon.
|
|
23739
|
-
* active: boolean describing the button's active state.
|
|
23740
|
-
* onClick: the onClick event.
|
|
23741
|
-
* count: will display a count on the button.
|
|
23742
|
-
* buttonPosition: decides the active border, depending if the button is placed in the right bar/left bar/bottom bar.
|
|
23743
|
-
* refValue: a reference value, in case it's needed.
|
|
23744
|
-
* id: the id of the button, in case it's needed.
|
|
23745
|
-
* children: the icon to be displayed.
|
|
23746
|
-
* }
|
|
23747
|
-
* @return {*} {JSX.Element}
|
|
23726
|
+
/**
|
|
23727
|
+
* The reusable button component that is used in the sidebars/bottom bar.
|
|
23728
|
+
*
|
|
23729
|
+
* On desktop it will have an active border on the left/right/top,
|
|
23730
|
+
* depending if the ButtonPosition is set to: "right"/"left"/"bottom".
|
|
23731
|
+
* The active border will be on the right if it's a tab button and ButtonPosition is set to: "tab".
|
|
23732
|
+
*
|
|
23733
|
+
* On mobile with the right sidebar, the active border will be on the bottom.
|
|
23734
|
+
* In landscape mode with the bottom bar, the active border will be on the right.
|
|
23735
|
+
*
|
|
23736
|
+
* The button contains an icon and a descriptive text.
|
|
23737
|
+
* @param {*} {
|
|
23738
|
+
* text: the text below the icon.
|
|
23739
|
+
* active: boolean describing the button's active state.
|
|
23740
|
+
* onClick: the onClick event.
|
|
23741
|
+
* count: will display a count on the button.
|
|
23742
|
+
* buttonPosition: decides the active border, depending if the button is placed in the right bar/left bar/bottom bar.
|
|
23743
|
+
* refValue: a reference value, in case it's needed.
|
|
23744
|
+
* id: the id of the button, in case it's needed.
|
|
23745
|
+
* children: the icon to be displayed.
|
|
23746
|
+
* }
|
|
23747
|
+
* @return {*} {JSX.Element}
|
|
23748
23748
|
*/
|
|
23749
23749
|
var SidebarButton = function SidebarButton(_ref) {
|
|
23750
23750
|
var _classnames;
|
|
@@ -24185,8 +24185,8 @@ var staticData$3 = {
|
|
|
24185
24185
|
prefix: 'echo',
|
|
24186
24186
|
group: 'robim_external'
|
|
24187
24187
|
};
|
|
24188
|
-
/*
|
|
24189
|
-
* ROBIM EXTERNAL ICONS
|
|
24188
|
+
/*
|
|
24189
|
+
* ROBIM EXTERNAL ICONS
|
|
24190
24190
|
*/
|
|
24191
24191
|
var robim_external_ald = Object.assign(Object.assign({}, staticData$3), {
|
|
24192
24192
|
name: 'robim_external_ald',
|
|
@@ -24341,15 +24341,15 @@ var echoIcons = /*#__PURE__*/Object.freeze({
|
|
|
24341
24341
|
|
|
24342
24342
|
Icon$1.add(Object.assign(Object.assign({}, edsIcons), echoIcons));
|
|
24343
24343
|
|
|
24344
|
-
/**
|
|
24345
|
-
* Helper method that will return a list row given some input values. Used in IconList component for rendering rows
|
|
24346
|
-
*
|
|
24347
|
-
* @param {boolean} isDraggable flag to indicate that the row is draggable
|
|
24348
|
-
* @param {number} index the index of the list
|
|
24349
|
-
* @param {IconListState} iconListState the state from the IconList component used to create the row and its interactions
|
|
24350
|
-
* @param {(value: React.SetStateAction<IconListState>) => void} setIconListState the action to update the state from the IconList component
|
|
24351
|
-
* @param {IconItem[]} expandedIcons the icons to be displayed if the row is expandable. Is undefined if the row should not be expandable
|
|
24352
|
-
* @return {*} {React.ReactNode} A list row component created from the input parameters
|
|
24344
|
+
/**
|
|
24345
|
+
* Helper method that will return a list row given some input values. Used in IconList component for rendering rows
|
|
24346
|
+
*
|
|
24347
|
+
* @param {boolean} isDraggable flag to indicate that the row is draggable
|
|
24348
|
+
* @param {number} index the index of the list
|
|
24349
|
+
* @param {IconListState} iconListState the state from the IconList component used to create the row and its interactions
|
|
24350
|
+
* @param {(value: React.SetStateAction<IconListState>) => void} setIconListState the action to update the state from the IconList component
|
|
24351
|
+
* @param {IconItem[]} expandedIcons the icons to be displayed if the row is expandable. Is undefined if the row should not be expandable
|
|
24352
|
+
* @return {*} {React.ReactNode} A list row component created from the input parameters
|
|
24353
24353
|
*/
|
|
24354
24354
|
var createListRow = function createListRow(isDraggable, index, iconListState, setIconListState, expandedIcons) {
|
|
24355
24355
|
return /*#__PURE__*/React__default.createElement(ListRow, {
|
|
@@ -24381,22 +24381,22 @@ var css_248z$2 = ".iconList-module_wrapper__AMjAK{display:flex;flex-direction:co
|
|
|
24381
24381
|
var styles$2 = {"wrapper":"iconList-module_wrapper__AMjAK","header":"iconList-module_header__g2suM"};
|
|
24382
24382
|
styleInject(css_248z$2);
|
|
24383
24383
|
|
|
24384
|
-
/**
|
|
24385
|
-
* Component that renders an IconList of rows, that can be draggable and/or expandable
|
|
24386
|
-
*
|
|
24387
|
-
* @param {IconListProps} {
|
|
24388
|
-
* style: the style to override the IconList wrapper
|
|
24389
|
-
* title: The title of the list
|
|
24390
|
-
* items: { The items to be rendered in the row
|
|
24391
|
-
* title: the title of the item in the row
|
|
24392
|
-
* subtitle: the subtitle of the item in the row
|
|
24393
|
-
* icons: the icons that will be displayed on the same row, and their respective actions
|
|
24394
|
-
* }[]
|
|
24395
|
-
* isDraggable: flag to indicate if the elements in the list should be draggable
|
|
24396
|
-
* expandedIcons: list of icons that should be displayed if a row is expanded. If undefined no row can be expanded
|
|
24397
|
-
* onUpdatedOrder: method that will be called when the order of the list has changed
|
|
24398
|
-
* }
|
|
24399
|
-
* @return {*} {JSX.Element} a list of items that can be draggable and/or expandable
|
|
24384
|
+
/**
|
|
24385
|
+
* Component that renders an IconList of rows, that can be draggable and/or expandable
|
|
24386
|
+
*
|
|
24387
|
+
* @param {IconListProps} {
|
|
24388
|
+
* style: the style to override the IconList wrapper
|
|
24389
|
+
* title: The title of the list
|
|
24390
|
+
* items: { The items to be rendered in the row
|
|
24391
|
+
* title: the title of the item in the row
|
|
24392
|
+
* subtitle: the subtitle of the item in the row
|
|
24393
|
+
* icons: the icons that will be displayed on the same row, and their respective actions
|
|
24394
|
+
* }[]
|
|
24395
|
+
* isDraggable: flag to indicate if the elements in the list should be draggable
|
|
24396
|
+
* expandedIcons: list of icons that should be displayed if a row is expanded. If undefined no row can be expanded
|
|
24397
|
+
* onUpdatedOrder: method that will be called when the order of the list has changed
|
|
24398
|
+
* }
|
|
24399
|
+
* @return {*} {JSX.Element} a list of items that can be draggable and/or expandable
|
|
24400
24400
|
*/
|
|
24401
24401
|
var IconList = function IconList(_ref) {
|
|
24402
24402
|
var style = _ref.style,
|
|
@@ -24474,21 +24474,21 @@ var css_248z$1 = ".linkCard-module_wrapper__eoD5r{background-color:var(--white);
|
|
|
24474
24474
|
var styles$1 = {"wrapper":"linkCard-module_wrapper__eoD5r","image":"linkCard-module_image__EUhQK","header":"linkCard-module_header__P5GTe","title":"linkCard-module_title__WGglA","subTitle":"linkCard-module_subTitle__0j2D5","links":"linkCard-module_links__LkokT","link":"linkCard-module_link__uaQqQ"};
|
|
24475
24475
|
styleInject(css_248z$1);
|
|
24476
24476
|
|
|
24477
|
-
/**
|
|
24478
|
-
* Component that renders a card with an image and a list of links
|
|
24479
|
-
*
|
|
24480
|
-
* @param {LinkCardProps} {
|
|
24481
|
-
* style: style element to override wrapper style
|
|
24482
|
-
* image: the image scr of the image to be displayed
|
|
24483
|
-
* title: the title of the card
|
|
24484
|
-
* subTitle: the subtitle of the cars
|
|
24485
|
-
* links { A list of links to display
|
|
24486
|
-
* title: the text of the link
|
|
24487
|
-
* url: the url to the link
|
|
24488
|
-
* target: how the link should be opened. Possible values are '_blank' | '_self', default is '_self'
|
|
24489
|
-
* }
|
|
24490
|
-
* }
|
|
24491
|
-
* @return {*} {JSX.Element} a card element with an image and some provided links
|
|
24477
|
+
/**
|
|
24478
|
+
* Component that renders a card with an image and a list of links
|
|
24479
|
+
*
|
|
24480
|
+
* @param {LinkCardProps} {
|
|
24481
|
+
* style: style element to override wrapper style
|
|
24482
|
+
* image: the image scr of the image to be displayed
|
|
24483
|
+
* title: the title of the card
|
|
24484
|
+
* subTitle: the subtitle of the cars
|
|
24485
|
+
* links { A list of links to display
|
|
24486
|
+
* title: the text of the link
|
|
24487
|
+
* url: the url to the link
|
|
24488
|
+
* target: how the link should be opened. Possible values are '_blank' | '_self', default is '_self'
|
|
24489
|
+
* }
|
|
24490
|
+
* }
|
|
24491
|
+
* @return {*} {JSX.Element} a card element with an image and some provided links
|
|
24492
24492
|
*/
|
|
24493
24493
|
var LinkCard = function LinkCard(_ref) {
|
|
24494
24494
|
var style = _ref.style,
|
|
@@ -24567,20 +24567,20 @@ var css_248z = ".optionsList-module_wrapper__r6i4r{display:table;width:100%}.opt
|
|
|
24567
24567
|
var styles = {"wrapper":"optionsList-module_wrapper__r6i4r","head":"optionsList-module_head__W2pf7","row":"optionsList-module_row__hkSEt","item":"optionsList-module_item__uXdrQ","itemTitle":"optionsList-module_itemTitle__tQcdj","columnTitle":"optionsList-module_columnTitle__ciUTO","radio":"optionsList-module_radio__Ll5Fr","circle":"optionsList-module_circle__5Ub8n"};
|
|
24568
24568
|
styleInject(css_248z);
|
|
24569
24569
|
|
|
24570
|
-
/**
|
|
24571
|
-
* Component that renders a list with a set number of radio buttons for each row in the list
|
|
24572
|
-
*
|
|
24573
|
-
* @param {OptionsListProps} {
|
|
24574
|
-
* items:{ the items that should be shown in the list
|
|
24575
|
-
* title: the text displayed for a row in the list
|
|
24576
|
-
* color: the background color used in the badge in front of the title of the item
|
|
24577
|
-
* selectedColumnIndex: specifies witch radio button should have selected state. Should not be larger than the columns input property
|
|
24578
|
-
* }
|
|
24579
|
-
* style: Optional parameter that can override the wrapper style
|
|
24580
|
-
* titles: list of title that should be shown for the different columns in the list
|
|
24581
|
-
* columns: the number of columns the list should have
|
|
24582
|
-
* }
|
|
24583
|
-
* @return {*} {JSX.Element} a list of rows with a set of radio buttons
|
|
24570
|
+
/**
|
|
24571
|
+
* Component that renders a list with a set number of radio buttons for each row in the list
|
|
24572
|
+
*
|
|
24573
|
+
* @param {OptionsListProps} {
|
|
24574
|
+
* items:{ the items that should be shown in the list
|
|
24575
|
+
* title: the text displayed for a row in the list
|
|
24576
|
+
* color: the background color used in the badge in front of the title of the item
|
|
24577
|
+
* selectedColumnIndex: specifies witch radio button should have selected state. Should not be larger than the columns input property
|
|
24578
|
+
* }
|
|
24579
|
+
* style: Optional parameter that can override the wrapper style
|
|
24580
|
+
* titles: list of title that should be shown for the different columns in the list
|
|
24581
|
+
* columns: the number of columns the list should have
|
|
24582
|
+
* }
|
|
24583
|
+
* @return {*} {JSX.Element} a list of rows with a set of radio buttons
|
|
24584
24584
|
*/
|
|
24585
24585
|
var OptionsList = function OptionsList(_ref) {
|
|
24586
24586
|
var items = _ref.items,
|