pixel-priya 0.0.61 → 0.0.62
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/lib/ThirdPartyPackages/Adapter.js +3 -6
- package/lib/ThirdPartyPackages/Adapter.js.map +1 -1
- package/lib/ThirdPartyPackages/JanusGateway.js +3 -6
- package/lib/ThirdPartyPackages/JanusGateway.js.map +1 -1
- package/lib/assets/utils/functionUtils.js +63 -61
- package/lib/assets/utils/functionUtils.js.map +1 -1
- package/lib/components/Accordion/Accordion.js +25 -76
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/AddContentButton/AddContentButton.js +10 -53
- package/lib/components/AddContentButton/AddContentButton.js.map +1 -1
- package/lib/components/AddResourceButton/AddResourceButton.js +70 -116
- package/lib/components/AddResourceButton/AddResourceButton.js.map +1 -1
- package/lib/components/AddResourceButton/ArrowsButton/ArrowsButton.js +13 -41
- package/lib/components/AddResourceButton/ArrowsButton/ArrowsButton.js.map +1 -1
- package/lib/components/AddResourceButton/type.js +19 -18
- package/lib/components/AddResourceButton/type.js.map +1 -1
- package/lib/components/AiToggle/AiToggle.js +20 -56
- package/lib/components/AiToggle/AiToggle.js.map +1 -1
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.js +92 -189
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.js.map +1 -1
- package/lib/components/AnimatedSetting/AnimatedSetting.js +32 -55
- package/lib/components/AnimatedSetting/AnimatedSetting.js.map +1 -1
- package/lib/components/AppHeader/AppHeader.js +184 -298
- package/lib/components/AppHeader/AppHeader.js.map +1 -1
- package/lib/components/AttachMedia/AttachMedia.js +14 -92
- package/lib/components/AttachMedia/AttachMedia.js.map +1 -1
- package/lib/components/AttachmentButton/AttachmentButton.js +96 -169
- package/lib/components/AttachmentButton/AttachmentButton.js.map +1 -1
- package/lib/components/Avatar/Avatar.js +8 -38
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Box/Box.js +19 -50
- package/lib/components/Box/Box.js.map +1 -1
- package/lib/components/BrowserTabs/BrowserTabs.js +59 -120
- package/lib/components/BrowserTabs/BrowserTabs.js.map +1 -1
- package/lib/components/Button/Button.js +31 -80
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Charts/BarChart/BarChart.js +158 -321
- package/lib/components/Charts/BarChart/BarChart.js.map +1 -1
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +462 -811
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js.map +1 -1
- package/lib/components/Charts/DonutChart/DonutChart.js +88 -169
- package/lib/components/Charts/DonutChart/DonutChart.js.map +1 -1
- package/lib/components/Charts/IconRadialChart/IconRadialChart.js +67 -165
- package/lib/components/Charts/IconRadialChart/IconRadialChart.js.map +1 -1
- package/lib/components/Charts/LineChart/LineChart.js +203 -464
- package/lib/components/Charts/LineChart/LineChart.js.map +1 -1
- package/lib/components/Charts/MultiRadialChart/MultiRadialChart.js +176 -344
- package/lib/components/Charts/MultiRadialChart/MultiRadialChart.js.map +1 -1
- package/lib/components/Charts/PieChart/PieChart.js +123 -253
- package/lib/components/Charts/PieChart/PieChart.js.map +1 -1
- package/lib/components/Charts/RadialChart/RadialChart.js +74 -138
- package/lib/components/Charts/RadialChart/RadialChart.js.map +1 -1
- package/lib/components/ChatModal/ChatModal.js +41 -148
- package/lib/components/ChatModal/ChatModal.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +21 -55
- package/lib/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/Chip/Chip.js +23 -48
- package/lib/components/Chip/Chip.js.map +1 -1
- package/lib/components/ChipWithCount/ChipWithCount.js +11 -45
- package/lib/components/ChipWithCount/ChipWithCount.js.map +1 -1
- package/lib/components/ChooseFile/ChooseFile.js +6 -41
- package/lib/components/ChooseFile/ChooseFile.js.map +1 -1
- package/lib/components/Comments/Comments.js +246 -309
- package/lib/components/Comments/Comments.js.map +1 -1
- package/lib/components/Comments/childComment/ChildComment.js +249 -442
- package/lib/components/Comments/childComment/ChildComment.js.map +1 -1
- package/lib/components/Comments/childComment/useNode.js +47 -48
- package/lib/components/Comments/childComment/useNode.js.map +1 -1
- package/lib/components/Comments/commentCommonUtils.js +13 -17
- package/lib/components/Comments/commentCommonUtils.js.map +1 -1
- package/lib/components/Comments/mentionUser/MentionUser.js +56 -79
- package/lib/components/Comments/mentionUser/MentionUser.js.map +1 -1
- package/lib/components/ConditionalDropdown/ConditionalDropdown.js +194 -255
- package/lib/components/ConditionalDropdown/ConditionalDropdown.js.map +1 -1
- package/lib/components/ConditionalDropdown/OptionsDropdown.js +17 -38
- package/lib/components/ConditionalDropdown/OptionsDropdown.js.map +1 -1
- package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js +36 -128
- package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js.map +1 -1
- package/lib/components/ConnectingBranch/ConnectingBranch.js +101 -165
- package/lib/components/ConnectingBranch/ConnectingBranch.js.map +1 -1
- package/lib/components/CreateVariable/CreateVariableSlider.js +62 -156
- package/lib/components/CreateVariable/CreateVariableSlider.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +279 -428
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/DatePicker/Timepicker.js +224 -290
- package/lib/components/DatePicker/Timepicker.js.map +1 -1
- package/lib/components/DownloadClient/DownloadClient.js +22 -83
- package/lib/components/DownloadClient/DownloadClient.js.map +1 -1
- package/lib/components/DragAndDrop/DragAndDrop.js +6 -12
- package/lib/components/DragAndDrop/DragAndDrop.js.map +1 -1
- package/lib/components/Drawer/Drawer.js +88 -237
- package/lib/components/Drawer/Drawer.js.map +1 -1
- package/lib/components/EditLabel/EditLabel.js +161 -294
- package/lib/components/EditLabel/EditLabel.js.map +1 -1
- package/lib/components/EditTextField/EditTextField.js +79 -176
- package/lib/components/EditTextField/EditTextField.js.map +1 -1
- package/lib/components/Editor/Editor.js +297 -316
- package/lib/components/Editor/Editor.js.map +1 -1
- package/lib/components/Editor/VariableDropdown.js +42 -71
- package/lib/components/Editor/VariableDropdown.js.map +1 -1
- package/lib/components/ErrorBoundary/ErrorBoundary.js +18 -24
- package/lib/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/components/Excel/ColorBarSelector/ColorBarSelector.js +21 -39
- package/lib/components/Excel/ColorBarSelector/ColorBarSelector.js.map +1 -1
- package/lib/components/Excel/ExcelContextMenu/ExcelContextMenu.js +24 -47
- package/lib/components/Excel/ExcelContextMenu/ExcelContextMenu.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js +427 -518
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +199 -249
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js +66 -114
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js +96 -141
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.js +11 -17
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/CornerIndicator.js +23 -44
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/CornerIndicator.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.js +21 -41
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataViewer.js +30 -59
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataViewer.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.js +36 -48
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/HeaderRow.js +4 -9
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/HeaderRow.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Row.js +4 -8
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Row.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js +88 -133
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js +12 -18
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +281 -374
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Table.js +15 -30
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Table.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.js +266 -353
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/context.js +5 -7
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/context.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.js +79 -92
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.js +20 -8
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.js +112 -114
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-hash.js +6 -11
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-hash.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-set.js +54 -57
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-set.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/index.js +10 -10
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/index.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/matrix.js +233 -197
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/matrix.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/point-range.js +54 -51
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/point-range.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/point.js +4 -9
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/point.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +605 -812
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js +659 -771
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/selection.js +169 -179
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/selection.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/use-dispatch.js +5 -7
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/use-dispatch.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/use-selector.js +5 -7
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/use-selector.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js +189 -173
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js.map +1 -1
- package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js +105 -346
- package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js.map +1 -1
- package/lib/components/Excel/dataConversion.js +130 -108
- package/lib/components/Excel/dataConversion.js.map +1 -1
- package/lib/components/ExpandableMenu/ExpandableMenu.js +40 -74
- package/lib/components/ExpandableMenu/ExpandableMenu.js.map +1 -1
- package/lib/components/FF_Captcha/Recaptcha.js +22 -43
- package/lib/components/FF_Captcha/Recaptcha.js.map +1 -1
- package/lib/components/FieldSet/FieldSet.js +7 -34
- package/lib/components/FieldSet/FieldSet.js.map +1 -1
- package/lib/components/FileDropzone/Dropzone.js +21 -100
- package/lib/components/FileDropzone/Dropzone.js.map +1 -1
- package/lib/components/FileDropzone/FileDropzone.js +52 -151
- package/lib/components/FileDropzone/FileDropzone.js.map +1 -1
- package/lib/components/FileDropzone/FilePreview.js +11 -96
- package/lib/components/FileDropzone/FilePreview.js.map +1 -1
- package/lib/components/FileDropzone/RadioFilePreview.js +38 -90
- package/lib/components/FileDropzone/RadioFilePreview.js.map +1 -1
- package/lib/components/Form/Form.js +3 -6
- package/lib/components/Form/Form.js.map +1 -1
- package/lib/components/Form/Forms.js +17 -30
- package/lib/components/Form/Forms.js.map +1 -1
- package/lib/components/GridLayout/GridLayout.js +12 -42
- package/lib/components/GridLayout/GridLayout.js.map +1 -1
- package/lib/components/HighlightText/HighlightText.js +17 -31
- package/lib/components/HighlightText/HighlightText.js.map +1 -1
- package/lib/components/HistoryCard/HistoryCard.js +8 -49
- package/lib/components/HistoryCard/HistoryCard.js.map +1 -1
- package/lib/components/Icon/Icon.js +43 -81
- package/lib/components/Icon/Icon.js.map +1 -1
- package/lib/components/Icon/iconList.js +807 -807
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/IconButton/IconButton.js +12 -41
- package/lib/components/IconButton/IconButton.js.map +1 -1
- package/lib/components/IconRadioGroup/IconRadioGroup.js +32 -55
- package/lib/components/IconRadioGroup/IconRadioGroup.js.map +1 -1
- package/lib/components/Input/Input.js +133 -233
- package/lib/components/Input/Input.js.map +1 -1
- package/lib/components/InputWithDropdown/InputWithDropdown.js +35 -124
- package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
- package/lib/components/LabelEditTextField/LabelEditTextField.js +156 -249
- package/lib/components/LabelEditTextField/LabelEditTextField.js.map +1 -1
- package/lib/components/LazyLoad/LazyLoad.js +3 -6
- package/lib/components/LazyLoad/LazyLoad.js.map +1 -1
- package/lib/components/LineLoader/LineLoader.js +6 -18
- package/lib/components/LineLoader/LineLoader.js.map +1 -1
- package/lib/components/Link/Link.js +36 -114
- package/lib/components/Link/Link.js.map +1 -1
- package/lib/components/MachineInputField/MachineInputField.js +41 -86
- package/lib/components/MachineInputField/MachineInputField.js.map +1 -1
- package/lib/components/MediaPreview/MediaPreview.js +28 -93
- package/lib/components/MediaPreview/MediaPreview.js.map +1 -1
- package/lib/components/MenuOption/MenuOption.js +177 -275
- package/lib/components/MenuOption/MenuOption.js.map +1 -1
- package/lib/components/MessageBox/MessageBox.js +18 -36
- package/lib/components/MessageBox/MessageBox.js.map +1 -1
- package/lib/components/MiniModal/MiniModal.js +245 -325
- package/lib/components/MiniModal/MiniModal.js.map +1 -1
- package/lib/components/MobileSkin/MobileSkin.js +25 -66
- package/lib/components/MobileSkin/MobileSkin.js.map +1 -1
- package/lib/components/Modal/Modal.js +40 -79
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/types.d.ts +1 -0
- package/lib/components/ModulesChip/ModuleChip.js +13 -27
- package/lib/components/ModulesChip/ModuleChip.js.map +1 -1
- package/lib/components/MultiSelect/Dropdown.js +142 -204
- package/lib/components/MultiSelect/Dropdown.js.map +1 -1
- package/lib/components/MultiSelect/MultiSelect.js +281 -430
- package/lib/components/MultiSelect/MultiSelect.js.map +1 -1
- package/lib/components/MultiSelect/dropdownTypes.js +5 -7
- package/lib/components/MultiSelect/dropdownTypes.js.map +1 -1
- package/lib/components/NLPInput/NlpInput.js +208 -345
- package/lib/components/NLPInput/NlpInput.js.map +1 -1
- package/lib/components/NLPInput/components/ChipsFolder/ChipsAccordion.js +50 -98
- package/lib/components/NLPInput/components/ChipsFolder/ChipsAccordion.js.map +1 -1
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.js +6 -8
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.js.map +1 -1
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js +162 -350
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js.map +1 -1
- package/lib/components/NoDataContent/NoDataContent.js +8 -28
- package/lib/components/NoDataContent/NoDataContent.js.map +1 -1
- package/lib/components/OsTree/OsTree.d.ts +5 -0
- package/lib/components/OsTree/OsTree.js +11 -0
- package/lib/components/OsTree/OsTree.js.map +1 -0
- package/lib/components/OsTree/index.d.ts +1 -0
- package/lib/components/OsTree/index.js +2 -0
- package/lib/components/OsTree/index.js.map +1 -0
- package/lib/components/OsTree/type.d.ts +26 -0
- package/lib/components/OsTree/type.js +2 -0
- package/lib/components/OsTree/type.js.map +1 -0
- package/lib/components/OtpVerification/OtpVerification.js +71 -125
- package/lib/components/OtpVerification/OtpVerification.js.map +1 -1
- package/lib/components/OverviewModal/overviewModal.js +44 -120
- package/lib/components/OverviewModal/overviewModal.js.map +1 -1
- package/lib/components/Paper/Paper.js +8 -18
- package/lib/components/Paper/Paper.js.map +1 -1
- package/lib/components/PhoneInput/PhoneInput.js +51 -80
- package/lib/components/PhoneInput/PhoneInput.js.map +1 -1
- package/lib/components/PopUpModal/PopUpModal.js +10 -90
- package/lib/components/PopUpModal/PopUpModal.js.map +1 -1
- package/lib/components/PrePostTable/PrePostTable.js +127 -244
- package/lib/components/PrePostTable/PrePostTable.js.map +1 -1
- package/lib/components/PrePostTable/components/DraggableTableRow.js +38 -121
- package/lib/components/PrePostTable/components/DraggableTableRow.js.map +1 -1
- package/lib/components/PrePostTable/components/PrePostStepAccordions.js +17 -87
- package/lib/components/PrePostTable/components/PrePostStepAccordions.js.map +1 -1
- package/lib/components/ProgressBar/ProgressBar.js +54 -84
- package/lib/components/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/components/Prompt/Prompt.js +27 -74
- package/lib/components/Prompt/Prompt.js.map +1 -1
- package/lib/components/PromptContainer/PromptContainer.js +68 -151
- package/lib/components/PromptContainer/PromptContainer.js.map +1 -1
- package/lib/components/RadioButton/RadioButton.js +8 -49
- package/lib/components/RadioButton/RadioButton.js.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.js +9 -56
- package/lib/components/RadioGroup/RadioGroup.js.map +1 -1
- package/lib/components/ScriptSwitchButton/ScriptSwitchButton.js +15 -40
- package/lib/components/ScriptSwitchButton/ScriptSwitchButton.js.map +1 -1
- package/lib/components/Search/Search.js +117 -200
- package/lib/components/Search/Search.js.map +1 -1
- package/lib/components/Select/Select.js +182 -315
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Select/components/Dropdown.js +103 -171
- package/lib/components/Select/components/Dropdown.js.map +1 -1
- package/lib/components/Select/components/types.js +6 -8
- package/lib/components/Select/components/types.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.js +62 -188
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +163 -283
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.js +22 -58
- package/lib/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/components/DatasetTooltip/DataSetTooltip.js +12 -38
- package/lib/components/SequentialConnectingBranch/components/DatasetTooltip/DataSetTooltip.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/context/EnvironmentVariableMapsContext.js +3 -6
- package/lib/components/SequentialConnectingBranch/context/EnvironmentVariableMapsContext.js.map +1 -1
- package/lib/components/StateDropdown/StateDropdown.js +75 -114
- package/lib/components/StateDropdown/StateDropdown.js.map +1 -1
- package/lib/components/StatusButton/StatusButton.js +8 -31
- package/lib/components/StatusButton/StatusButton.js.map +1 -1
- package/lib/components/StatusCard/StatusCard.js +40 -104
- package/lib/components/StatusCard/StatusCard.js.map +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +4 -0
- package/lib/components/StatusIndicator/StatusIndicator.js +26 -0
- package/lib/components/StatusIndicator/StatusIndicator.js.map +1 -0
- package/lib/components/StatusIndicator/index.d.ts +1 -0
- package/lib/components/StatusIndicator/index.js +2 -0
- package/lib/components/StatusIndicator/index.js.map +1 -0
- package/lib/components/StatusIndicator/types.d.ts +9 -0
- package/lib/components/StatusIndicator/types.js +2 -0
- package/lib/components/StatusIndicator/types.js.map +1 -0
- package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js +25 -96
- package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepInnerTable.js +79 -187
- package/lib/components/StepsLandingTable/Components/StepInnerTable.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepResultStats.js +48 -53
- package/lib/components/StepsLandingTable/Components/StepResultStats.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepTableMainRow.js +61 -150
- package/lib/components/StepsLandingTable/Components/StepTableMainRow.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepsTitle.js +20 -113
- package/lib/components/StepsLandingTable/Components/StepsTitle.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js +267 -270
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js.map +1 -1
- package/lib/components/StepsLandingTable/StepLandingTable.js +163 -266
- package/lib/components/StepsLandingTable/StepLandingTable.js.map +1 -1
- package/lib/components/SwitchButton/SwitchButton.js +10 -27
- package/lib/components/SwitchButton/SwitchButton.js.map +1 -1
- package/lib/components/Table/Table.js +130 -313
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/TableTree/Components/TableBody.js +11 -65
- package/lib/components/TableTree/Components/TableBody.js.map +1 -1
- package/lib/components/TableTree/Components/TableCell.js +79 -152
- package/lib/components/TableTree/Components/TableCell.js.map +1 -1
- package/lib/components/TableTree/Components/TableHead.js +26 -79
- package/lib/components/TableTree/Components/TableHead.js.map +1 -1
- package/lib/components/TableTree/Components/TableRow.js +8 -51
- package/lib/components/TableTree/Components/TableRow.js.map +1 -1
- package/lib/components/TableTree/TableTree.js +153 -197
- package/lib/components/TableTree/TableTree.js.map +1 -1
- package/lib/components/TableTree/Utils/addLastChild.js +19 -23
- package/lib/components/TableTree/Utils/addLastChild.js.map +1 -1
- package/lib/components/TableTree/Utils/addNewRow.js +56 -67
- package/lib/components/TableTree/Utils/addNewRow.js.map +1 -1
- package/lib/components/TableTree/Utils/formatDataCell.js +14 -17
- package/lib/components/TableTree/Utils/formatDataCell.js.map +1 -1
- package/lib/components/TableWithAccordion/TableWithAccordion.js +54 -153
- package/lib/components/TableWithAccordion/TableWithAccordion.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +27 -60
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/TabsWithSilder/TabsWithSilder.js +50 -100
- package/lib/components/TabsWithSilder/TabsWithSilder.js.map +1 -1
- package/lib/components/TextArea/Textarea.js +79 -146
- package/lib/components/TextArea/Textarea.js.map +1 -1
- package/lib/components/TextEditor/TextEditor.js +120 -130
- package/lib/components/TextEditor/TextEditor.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +16 -26
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/components/Toast/Toast.js +51 -115
- package/lib/components/Toast/Toast.js.map +1 -1
- package/lib/components/Toastify/Toastify.js +66 -78
- package/lib/components/Toastify/Toastify.js.map +1 -1
- package/lib/components/Toggle/Toggle.js +39 -81
- package/lib/components/Toggle/Toggle.js.map +1 -1
- package/lib/components/ToggleSwitch/ToggleSwitch.js +6 -23
- package/lib/components/ToggleSwitch/ToggleSwitch.js.map +1 -1
- package/lib/components/Tooltip/Tooltip.js +133 -156
- package/lib/components/Tooltip/Tooltip.js.map +1 -1
- package/lib/components/Typography/Typography.js +15 -44
- package/lib/components/Typography/Typography.js.map +1 -1
- package/lib/components/VariableInput/VariableInput.js +234 -279
- package/lib/components/VariableInput/VariableInput.js.map +1 -1
- package/lib/components/variableSuggestionInputDropDown/OptionsDropdown.js +19 -48
- package/lib/components/variableSuggestionInputDropDown/OptionsDropdown.js.map +1 -1
- package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js +144 -241
- package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js.map +1 -1
- package/lib/hooks/keyboardevents/useEscKeyEvent.js +14 -16
- package/lib/hooks/keyboardevents/useEscKeyEvent.js.map +1 -1
- package/lib/hooks/useClickOutside.js +16 -15
- package/lib/hooks/useClickOutside.js.map +1 -1
- package/lib/hooks/useFileDropzone.js +176 -160
- package/lib/hooks/useFileDropzone.js.map +1 -1
- package/lib/hooks/useIntersectionObserver.js +24 -34
- package/lib/hooks/useIntersectionObserver.js.map +1 -1
- package/lib/hooks/useMergeRefs.js +14 -15
- package/lib/hooks/useMergeRefs.js.map +1 -1
- package/lib/hooks/usePortalPosition.js +32 -34
- package/lib/hooks/usePortalPosition.js.map +1 -1
- package/lib/hooks/useTheme.js +8 -10
- package/lib/hooks/useTheme.js.map +1 -1
- package/lib/index.d.ts +151 -5071
- package/lib/index.js +157 -150
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/AddStepGroup/AddStepGroup.js +32 -38
- package/lib/utils/AddStepGroup/AddStepGroup.js.map +1 -1
- package/lib/utils/AppendNewRow/AppendNewRow.js +33 -41
- package/lib/utils/AppendNewRow/AppendNewRow.js.map +1 -1
- package/lib/utils/FormatString/FormatString.js +28 -25
- package/lib/utils/FormatString/FormatString.js.map +1 -1
- package/lib/utils/ScrollToview/ScrollToView.js +7 -12
- package/lib/utils/ScrollToview/ScrollToView.js.map +1 -1
- package/lib/utils/TableCell/TableCell.js +23 -24
- package/lib/utils/TableCell/TableCell.js.map +1 -1
- package/lib/utils/autoScrollToTableLastRow/autoScrollToTableLastRow.js +17 -22
- package/lib/utils/autoScrollToTableLastRow/autoScrollToTableLastRow.js.map +1 -1
- package/lib/utils/capitalize/capitalize.js +5 -6
- package/lib/utils/capitalize/capitalize.js.map +1 -1
- package/lib/utils/checkDuplicates/checkDuplicates.js +10 -12
- package/lib/utils/checkDuplicates/checkDuplicates.js.map +1 -1
- package/lib/utils/checkEmpty/checkEmpty.js +21 -19
- package/lib/utils/checkEmpty/checkEmpty.js.map +1 -1
- package/lib/utils/compareArrays/compareArrays.js +15 -16
- package/lib/utils/compareArrays/compareArrays.js.map +1 -1
- package/lib/utils/compareObjects/compareObjects.js +40 -34
- package/lib/utils/compareObjects/compareObjects.js.map +1 -1
- package/lib/utils/convertToBytes/convertToBytes.js +17 -19
- package/lib/utils/convertToBytes/convertToBytes.js.map +1 -1
- package/lib/utils/convertToGB/convertToGB.js +17 -19
- package/lib/utils/convertToGB/convertToGB.js.map +1 -1
- package/lib/utils/convertToISO/convertToISO.js +17 -18
- package/lib/utils/convertToISO/convertToISO.js.map +1 -1
- package/lib/utils/dateFormatter/dateFormatUtils.js +33 -21
- package/lib/utils/dateFormatter/dateFormatUtils.js.map +1 -1
- package/lib/utils/debounce/debounce.js +19 -19
- package/lib/utils/debounce/debounce.js.map +1 -1
- package/lib/utils/downloadFile/saveFileFromBlob.js +25 -26
- package/lib/utils/downloadFile/saveFileFromBlob.js.map +1 -1
- package/lib/utils/ffID/ffid.js +3 -4
- package/lib/utils/ffID/ffid.js.map +1 -1
- package/lib/utils/findAndInsert/findAndInsert.js +28 -34
- package/lib/utils/findAndInsert/findAndInsert.js.map +1 -1
- package/lib/utils/formData/ConvertFormDataToObject.js +15 -14
- package/lib/utils/formData/ConvertFormDataToObject.js.map +1 -1
- package/lib/utils/formatDate/formatDate.js +6 -8
- package/lib/utils/formatDate/formatDate.js.map +1 -1
- package/lib/utils/getAnchorElement/getAnchorElement.js +6 -8
- package/lib/utils/getAnchorElement/getAnchorElement.js.map +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.js +7 -10
- package/lib/utils/getEncryptedData/getEncryptedData.js.map +1 -1
- package/lib/utils/getExtension/getExtension.js +20 -22
- package/lib/utils/getExtension/getExtension.js.map +1 -1
- package/lib/utils/getSelectOptionValue/getSelectOptionValue.js +13 -15
- package/lib/utils/getSelectOptionValue/getSelectOptionValue.js.map +1 -1
- package/lib/utils/getSequentialPayload/getSequentialPayload.js +10 -15
- package/lib/utils/getSequentialPayload/getSequentialPayload.js.map +1 -1
- package/lib/utils/getStatusColor/getStatusColor.js +48 -50
- package/lib/utils/getStatusColor/getStatusColor.js.map +1 -1
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.d.ts +2 -0
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.js +26 -0
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.js.map +1 -0
- package/lib/utils/getTreeDetails/getTreeDetails.js +107 -101
- package/lib/utils/getTreeDetails/getTreeDetails.js.map +1 -1
- package/lib/utils/handleBeforeUnload/UseBeforeUnload.js +13 -16
- package/lib/utils/handleBeforeUnload/UseBeforeUnload.js.map +1 -1
- package/lib/utils/handleTreeExpandAllCollapseAll/handleTreeExpandAllCollapseAll.js +72 -75
- package/lib/utils/handleTreeExpandAllCollapseAll/handleTreeExpandAllCollapseAll.js.map +1 -1
- package/lib/utils/handleTreeNodeExpandCollapse/handleTreeNodeExpandCollapse.js +56 -60
- package/lib/utils/handleTreeNodeExpandCollapse/handleTreeNodeExpandCollapse.js.map +1 -1
- package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.js +91 -92
- package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.js.map +1 -1
- package/lib/utils/indexDBStore/indexDB.js +67 -62
- package/lib/utils/indexDBStore/indexDB.js.map +1 -1
- package/lib/utils/isEmptyObject/isEmptyObject.js +2 -4
- package/lib/utils/isEmptyObject/isEmptyObject.js.map +1 -1
- package/lib/utils/keyBoardActionUtil/UseKeyboardActions.js +20 -26
- package/lib/utils/keyBoardActionUtil/UseKeyboardActions.js.map +1 -1
- package/lib/utils/swapArrayItem/dragAndDropUtils.js +32 -27
- package/lib/utils/swapArrayItem/dragAndDropUtils.js.map +1 -1
- package/lib/utils/throttle/throttle.js +27 -26
- package/lib/utils/throttle/throttle.js.map +1 -1
- package/lib/utils/toCamelCase/toCamelCase.js +11 -10
- package/lib/utils/toCamelCase/toCamelCase.js.map +1 -1
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.js +6 -11
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.js.map +1 -1
- package/lib/utils/truncateText/truncateText.js +5 -6
- package/lib/utils/truncateText/truncateText.js.map +1 -1
- package/lib/validations/regex.js +8 -3
- package/lib/validations/regex.js.map +1 -1
- package/package.json +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Adapter.js","
|
|
1
|
+
{"version":3,"file":"Adapter.js","sourceRoot":"","sources":["../../src/ThirdPartyPackages/Adapter.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JanusGateway.js","
|
|
1
|
+
{"version":3,"file":"JanusGateway.js","sourceRoot":"","sources":["../../src/ThirdPartyPackages/JanusGateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC,eAAe,KAAK,CAAC"}
|
|
@@ -1,72 +1,74 @@
|
|
|
1
|
-
const isFunction = functionToCheck => {
|
|
2
|
-
|
|
1
|
+
export const isFunction = (functionToCheck) => {
|
|
2
|
+
return (functionToCheck && {}.toString.call(functionToCheck) === '[object Function]');
|
|
3
3
|
};
|
|
4
|
-
const convertTo24Hour = time12h => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
export const convertTo24Hour = (time12h) => {
|
|
5
|
+
const [time, modifier] = time12h.split(' ');
|
|
6
|
+
if (!time || !modifier)
|
|
7
|
+
return '00:00';
|
|
8
|
+
let [hours, minutes] = time.split(':');
|
|
9
|
+
if (!hours || !minutes)
|
|
10
|
+
return '00:00';
|
|
11
|
+
if (hours === '12') {
|
|
12
|
+
hours = '00';
|
|
13
|
+
}
|
|
14
|
+
if (modifier.toUpperCase() === 'PM') {
|
|
15
|
+
hours = (parseInt(hours, 10) + 12).toString();
|
|
16
|
+
}
|
|
17
|
+
return `${hours.padStart(2, '0')}:${minutes.padStart(2, '0')}`;
|
|
16
18
|
};
|
|
17
|
-
const convertTo12Hour = time24 => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
export const convertTo12Hour = (time24) => {
|
|
20
|
+
const [hoursStr, minutesStr] = time24.split(':');
|
|
21
|
+
const hours = parseInt(hoursStr ?? '0', 10);
|
|
22
|
+
const minutes = parseInt(minutesStr ?? '0', 10);
|
|
23
|
+
const ampm = hours >= 12 ? 'PM' : 'AM';
|
|
24
|
+
const hours12 = hours % 12 || 12;
|
|
25
|
+
return `${hours12.toString().padStart(2, '0')}:${minutes
|
|
26
|
+
.toString()
|
|
27
|
+
.padStart(2, '0')} ${ampm}`;
|
|
24
28
|
};
|
|
25
|
-
const isValid12HourTime = timeString => {
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
export const isValid12HourTime = (timeString) => {
|
|
30
|
+
const regex = /^(0[1-9]|1[0-2]):([0-5][0-9])(?:\s?(AM|PM))?$/i;
|
|
31
|
+
return regex.test(timeString);
|
|
28
32
|
};
|
|
29
33
|
// Utility to normalize memory values to bytes
|
|
30
|
-
const UNIT_MULTIPLIERS = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
export const UNIT_MULTIPLIERS = {
|
|
35
|
+
B: 1,
|
|
36
|
+
KB: 1024,
|
|
37
|
+
MB: 1024 * 1024,
|
|
38
|
+
GB: 1024 * 1024 * 1024,
|
|
35
39
|
};
|
|
36
40
|
// Parses a storage value string and converts it into a normalized value in bytes along with its unit.
|
|
37
|
-
function normalizeStorageValue(value) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
export function normalizeStorageValue(value) {
|
|
42
|
+
const match = value.match(/^(\d+(?:\.\d+)?)\s*(B|KB|MB|GB)$/i);
|
|
43
|
+
if (!match) {
|
|
44
|
+
throw new Error(`Invalid storage value format: ${value}`);
|
|
45
|
+
}
|
|
46
|
+
const [, numericPart, unit] = match;
|
|
47
|
+
// Ensure numericPart and unit are defined
|
|
48
|
+
if (!numericPart || !unit) {
|
|
49
|
+
throw new Error(`Invalid storage value format: ${value}`);
|
|
50
|
+
}
|
|
51
|
+
const normalizedValue = parseFloat(numericPart) * (UNIT_MULTIPLIERS[unit.toUpperCase()] || 1);
|
|
52
|
+
return {
|
|
53
|
+
normalizedValue,
|
|
54
|
+
unit: unit.toUpperCase(),
|
|
55
|
+
value: parseFloat(numericPart),
|
|
56
|
+
};
|
|
53
57
|
}
|
|
54
58
|
// Converts a byte value into a readable string with the largest appropriate unit (GB, MB, KB, B).
|
|
55
|
-
function formatMemoryValue(valueInBytes) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
export function formatMemoryValue(valueInBytes) {
|
|
60
|
+
const units = ['GB', 'MB', 'KB', 'B'];
|
|
61
|
+
for (const unit of units) {
|
|
62
|
+
const factor = UNIT_MULTIPLIERS[unit];
|
|
63
|
+
if (factor === undefined) {
|
|
64
|
+
throw new Error(`Missing factor for unit: ${unit}`);
|
|
65
|
+
}
|
|
66
|
+
if (valueInBytes >= factor || unit === 'B') {
|
|
67
|
+
const normalizedValue = valueInBytes / factor;
|
|
68
|
+
const formattedValue = normalizedValue % 1 === 0 ? `${normalizedValue.toFixed(0)}` : `${normalizedValue.toFixed(2)}`;
|
|
69
|
+
return `${formattedValue} ${unit}`;
|
|
70
|
+
}
|
|
66
71
|
}
|
|
67
|
-
|
|
68
|
-
return `${valueInBytes} B`;
|
|
72
|
+
return `${valueInBytes} B`;
|
|
69
73
|
}
|
|
70
|
-
|
|
71
|
-
export { UNIT_MULTIPLIERS, convertTo12Hour, convertTo24Hour, formatMemoryValue, isFunction, isValid12HourTime, normalizeStorageValue };
|
|
72
|
-
//# sourceMappingURL=functionUtils.js.map
|
|
74
|
+
//# sourceMappingURL=functionUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functionUtils.js","sources":["../../../src/assets/utils/functionUtils.ts"],"
|
|
1
|
+
{"version":3,"file":"functionUtils.js","sourceRoot":"","sources":["../../../src/assets/utils/functionUtils.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,81 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
3
|
+
import './Accordion.scss';
|
|
4
|
+
import Icon from '../Icon';
|
|
5
|
+
import '../../../index.scss';
|
|
6
|
+
import Tooltip from '../Tooltip';
|
|
7
|
+
import Typography from '../Typography';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import HighlightText from '../HighlightText';
|
|
9
10
|
/**
|
|
10
11
|
* Accordion UI component
|
|
11
12
|
*/
|
|
12
|
-
const Accordion = ({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
onClick,
|
|
28
|
-
className = '',
|
|
29
|
-
iconColor = 'var(--brand-color)'
|
|
30
|
-
}) => {
|
|
31
|
-
const [isAccordionExpanded, setIsAccordionExpanded] = useState(isExpand ?? true);
|
|
32
|
-
const onAccordionClick = () => {
|
|
33
|
-
if (onClick) {
|
|
34
|
-
onClick();
|
|
35
|
-
}
|
|
36
|
-
if (!disable) {
|
|
37
|
-
setIsAccordionExpanded(!isAccordionExpanded);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
return jsxs("div", {
|
|
41
|
-
className: `ff-accordion ${className}`,
|
|
42
|
-
children: [jsxs("div", {
|
|
43
|
-
className: `accordion-header ${disable && 'ff-disabled'} ${isAccordionExpanded && 'expanded'} `,
|
|
44
|
-
style: {
|
|
45
|
-
color: color || '--tooltip-bg-color'
|
|
46
|
-
},
|
|
47
|
-
onClick: onAccordionClick,
|
|
48
|
-
children: [jsx(Tooltip, {
|
|
49
|
-
title: disableInfoMessage,
|
|
50
|
-
children: jsx(Typography, {
|
|
51
|
-
as: "div",
|
|
52
|
-
className: "header-title",
|
|
53
|
-
fontWeight: "semi-bold",
|
|
54
|
-
lineHeight: "18px",
|
|
55
|
-
children: typeof headerTitle === "string" ? jsx(HighlightText, {
|
|
56
|
-
text: headerTitle,
|
|
57
|
-
highlight: highlightText
|
|
58
|
-
}) : headerTitle
|
|
59
|
-
})
|
|
60
|
-
}), jsx(Icon, {
|
|
61
|
-
name: accordionStateIconName,
|
|
62
|
-
hoverEffect: false,
|
|
63
|
-
className: classNames('accordion-arrow', {
|
|
64
|
-
expanded: isAccordionExpanded
|
|
65
|
-
}),
|
|
66
|
-
width: AccordionStateIconWidth,
|
|
67
|
-
height: AccordionStateIconHeight,
|
|
68
|
-
color: iconColor
|
|
69
|
-
})]
|
|
70
|
-
}), !disable && isAccordionExpanded && jsx("div", {
|
|
71
|
-
style: {
|
|
72
|
-
minHeight
|
|
73
|
-
},
|
|
74
|
-
className: "accordion-content",
|
|
75
|
-
children: accordionContent
|
|
76
|
-
})]
|
|
77
|
-
});
|
|
13
|
+
const Accordion = ({ highlightText = '', headerTitle = '', color, minHeight = '32px', // Default min-height for accordion content
|
|
14
|
+
accordionContent = _jsx(_Fragment, { children: "This is accordion content" }), disable = false, disableInfoMessage = '', accordionStateIconName = 'arrow_down', AccordionStateIconWidth = 12, AccordionStateIconHeight = 8, isExpand, onClick, className = '', iconColor = 'var(--brand-color)', }) => {
|
|
15
|
+
const [isAccordionExpanded, setIsAccordionExpanded] = useState(isExpand ?? true);
|
|
16
|
+
const onAccordionClick = () => {
|
|
17
|
+
if (onClick) {
|
|
18
|
+
onClick();
|
|
19
|
+
}
|
|
20
|
+
if (!disable) {
|
|
21
|
+
setIsAccordionExpanded(!isAccordionExpanded);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
return (_jsxs("div", { className: `ff-accordion ${className}`, children: [_jsxs("div", { className: `accordion-header ${disable && 'ff-disabled'} ${isAccordionExpanded && 'expanded'} `, style: { color: color || '--tooltip-bg-color' }, onClick: onAccordionClick, children: [_jsx(Tooltip, { title: disableInfoMessage, children: _jsx(Typography, { as: "div", className: "header-title", fontWeight: "semi-bold", lineHeight: "18px", children: typeof headerTitle === "string" ?
|
|
25
|
+
_jsx(HighlightText, { text: headerTitle, highlight: highlightText }) : headerTitle }) }), _jsx(Icon, { name: accordionStateIconName, hoverEffect: false, className: classNames('accordion-arrow', {
|
|
26
|
+
expanded: isAccordionExpanded,
|
|
27
|
+
}), width: AccordionStateIconWidth, height: AccordionStateIconHeight, color: iconColor })] }), !disable && isAccordionExpanded && (_jsx("div", { style: { minHeight }, className: "accordion-content", children: accordionContent }))] }));
|
|
78
28
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
//# sourceMappingURL=Accordion.js.map
|
|
29
|
+
export default Accordion;
|
|
30
|
+
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sources":["../../../src/components/Accordion/Accordion.tsx"],"
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,qBAAqB,CAAC;AAE7B,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C;;GAEG;AACH,MAAM,SAAS,GAAG,CAAC,EACjB,aAAa,GAAG,EAAE,EAClB,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,SAAS,GAAG,MAAM,EAAE,2CAA2C;AAC/D,gBAAgB,GAAG,0DAA8B,EACjD,OAAO,GAAG,KAAK,EACf,kBAAkB,GAAG,EAAE,EACvB,sBAAsB,GAAG,YAAY,EACrC,uBAAuB,GAAG,EAAE,EAC5B,wBAAwB,GAAG,CAAC,EAC5B,QAAQ,EACR,OAAO,EACP,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,oBAAoB,GACjB,EAAE,EAAE;IACnB,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAC5D,QAAQ,IAAI,IAAI,CACjB,CAAC;IAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC5B,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,sBAAsB,CAAC,CAAC,mBAAmB,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,aACzC,eACE,SAAS,EAAE,oBAAoB,OAAO,IAAI,aAAa,IACrD,mBAAmB,IAAI,UACzB,GAAG,EACH,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,IAAI,oBAAoB,EAAE,EAC/C,OAAO,EAAE,gBAAgB,aAEzB,KAAC,OAAO,IAAC,KAAK,EAAE,kBAAkB,YAChC,KAAC,UAAU,IACT,EAAE,EAAC,KAAK,EACR,SAAS,EAAC,cAAc,EACxB,UAAU,EAAC,WAAW,EACtB,UAAU,EAAC,MAAM,YAEhB,OAAO,WAAW,KAAK,QAAQ,CAAA,CAAC;gCACjC,KAAC,aAAa,IAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,GAAI,CAAC,CAAC,CAAC,WAAW,GACjE,GACL,EAEV,KAAC,IAAI,IACH,IAAI,EAAE,sBAAsB,EAC5B,WAAW,EAAE,KAAK,EAClB,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE;4BACvC,QAAQ,EAAE,mBAAmB;yBAC9B,CAAC,EACF,KAAK,EAAE,uBAAuB,EAC9B,MAAM,EAAE,wBAAwB,EAChC,KAAK,EAAE,SAAS,GAChB,IACE,EACL,CAAC,OAAO,IAAI,mBAAmB,IAAI,CAClC,cAAK,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,EAAC,mBAAmB,YACrD,gBAAgB,GACb,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,54 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
const AddContentButton = ({
|
|
8
|
-
|
|
9
|
-
onButtonClick,
|
|
10
|
-
buttonLabel = 'Label',
|
|
11
|
-
buttonText = 'To Add Group',
|
|
12
|
-
disableButton = false,
|
|
13
|
-
stepCount = 1,
|
|
14
|
-
iconWidth = 120,
|
|
15
|
-
iconHeight = 120
|
|
16
|
-
}) => {
|
|
17
|
-
return jsxs("div", {
|
|
18
|
-
className: `add-content-button ${disableButton ? 'disabled' : ''}`,
|
|
19
|
-
children: [!checkEmpty(iconName) && jsx("div", {
|
|
20
|
-
className: "icon-container",
|
|
21
|
-
children: jsx(Icon, {
|
|
22
|
-
name: iconName,
|
|
23
|
-
width: iconWidth,
|
|
24
|
-
height: iconHeight
|
|
25
|
-
})
|
|
26
|
-
}), jsxs("div", {
|
|
27
|
-
className: "typography-label-button",
|
|
28
|
-
children: [jsxs(Typography, {
|
|
29
|
-
fontSize: "12px",
|
|
30
|
-
fontWeight: "regular",
|
|
31
|
-
lineHeight: "18px",
|
|
32
|
-
children: ["step ", stepCount, " :"]
|
|
33
|
-
}), jsx(Typography, {
|
|
34
|
-
fontSize: "12px",
|
|
35
|
-
fontWeight: "semi-bold",
|
|
36
|
-
lineHeight: "18px",
|
|
37
|
-
children: "Click"
|
|
38
|
-
}), jsx(IconButton, {
|
|
39
|
-
label: buttonLabel,
|
|
40
|
-
onClick: onButtonClick,
|
|
41
|
-
iconName: "plus_user_icon",
|
|
42
|
-
isDisable: disableButton
|
|
43
|
-
}), jsx(Typography, {
|
|
44
|
-
fontSize: "12px",
|
|
45
|
-
fontWeight: "semi-bold",
|
|
46
|
-
lineHeight: "18px",
|
|
47
|
-
children: buttonText
|
|
48
|
-
})]
|
|
49
|
-
})]
|
|
50
|
-
});
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './AddContentButton.scss';
|
|
3
|
+
import Icon from '../Icon';
|
|
4
|
+
import Typography from '../Typography';
|
|
5
|
+
import IconButton from '../IconButton';
|
|
6
|
+
import { checkEmpty } from '../../utils/checkEmpty/checkEmpty';
|
|
7
|
+
const AddContentButton = ({ iconName = '', onButtonClick, buttonLabel = 'Label', buttonText = 'To Add Group', disableButton = false, stepCount = 1, iconWidth = 120, iconHeight = 120, }) => {
|
|
8
|
+
return (_jsxs("div", { className: `add-content-button ${disableButton ? 'disabled' : ''}`, children: [!checkEmpty(iconName) && (_jsx("div", { className: "icon-container", children: _jsx(Icon, { name: iconName, width: iconWidth, height: iconHeight }) })), _jsxs("div", { className: "typography-label-button", children: [_jsxs(Typography, { fontSize: "12px", fontWeight: "regular", lineHeight: "18px", children: ["step ", stepCount, " :"] }), _jsx(Typography, { fontSize: "12px", fontWeight: "semi-bold", lineHeight: "18px", children: "Click" }), _jsx(IconButton, { label: buttonLabel, onClick: onButtonClick, iconName: "plus_user_icon", isDisable: disableButton }), _jsx(Typography, { fontSize: "12px", fontWeight: "semi-bold", lineHeight: "18px", children: buttonText })] })] }));
|
|
51
9
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
//# sourceMappingURL=AddContentButton.js.map
|
|
10
|
+
export default AddContentButton;
|
|
11
|
+
//# sourceMappingURL=AddContentButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddContentButton.js","sources":["../../../src/components/AddContentButton/AddContentButton.tsx"],"
|
|
1
|
+
{"version":3,"file":"AddContentButton.js","sourceRoot":"","sources":["../../../src/components/AddContentButton/AddContentButton.tsx"],"names":[],"mappings":";AACA,OAAO,yBAAyB,CAAC;AACjC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAG/D,MAAM,gBAAgB,GAAoC,CAAC,EACzD,QAAQ,GAAG,EAAE,EACb,aAAa,EACb,WAAW,GAAG,OAAO,EACrB,UAAU,GAAG,cAAc,EAC3B,aAAa,GAAG,KAAK,EACrB,SAAS,GAAG,CAAC,EACb,SAAS,GAAG,GAAG,EACf,UAAU,GAAG,GAAG,GACjB,EAAE,EAAE;IACH,OAAO,CACL,eAAK,SAAS,EAAE,sBAAsB,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,aACpE,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CACxB,cAAK,SAAS,EAAC,gBAAgB,YAC7B,KAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,GAAI,GAC1D,CACP,EACD,eAAK,SAAS,EAAC,yBAAyB,aACtC,MAAC,UAAU,IAAC,QAAQ,EAAC,MAAM,EAAC,UAAU,EAAC,SAAS,EAAC,UAAU,EAAC,MAAM,sBAC1D,SAAS,UACJ,EACb,KAAC,UAAU,IAAC,QAAQ,EAAC,MAAM,EAAC,UAAU,EAAC,WAAW,EAAC,UAAU,EAAC,MAAM,sBAEvD,EACb,KAAC,UAAU,IACT,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAC,gBAAgB,EACzB,SAAS,EAAE,aAAa,GACxB,EACF,KAAC,UAAU,IAAC,QAAQ,EAAC,MAAM,EAAC,UAAU,EAAC,WAAW,EAAC,UAAU,EAAC,MAAM,YACjE,UAAU,GACA,IACT,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,118 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './AddResourceButton.scss';
|
|
3
|
+
import ArrowsButton from './ArrowsButton/ArrowsButton';
|
|
4
|
+
import Icon from '../Icon';
|
|
5
|
+
import { useRef, useState } from 'react';
|
|
5
6
|
import { createPortal } from 'react-dom';
|
|
6
|
-
import { validateArrows } from './type
|
|
7
|
-
import usePortalPosition from '../../hooks/usePortalPosition
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
const getArrowButtonClass = () => {
|
|
72
|
-
const directions = validArrows.map(arrow => arrow.direction).sort().join('-');
|
|
73
|
-
const arrowCountClass = validArrows.length === 2 ? 'ff-two-arrows' : '';
|
|
74
|
-
return `ff-${directions} ${arrowCountClass}`;
|
|
75
|
-
};
|
|
76
|
-
return jsxs("div", {
|
|
77
|
-
className: `ff-add-button-container ${isHovered && !activeArrow ? `ff-hovered-add-button--${variant}` : ''}`,
|
|
78
|
-
id: id,
|
|
79
|
-
onMouseEnter: handleHover,
|
|
80
|
-
onMouseLeave: handleLeave,
|
|
81
|
-
ref: arrowContainerRef,
|
|
82
|
-
children: [jsx("span", {
|
|
83
|
-
className: "ff-add-button",
|
|
84
|
-
children: jsx(Icon, {
|
|
85
|
-
name: "plus_icon",
|
|
86
|
-
width: 16,
|
|
87
|
-
height: 16,
|
|
88
|
-
className: isHovered ? `ff-hovered-add-icon--${variant}` : `ff-add-icon--${variant}`
|
|
89
|
-
})
|
|
90
|
-
}), isHovered && /*#__PURE__*/createPortal(jsx("div", {
|
|
91
|
-
id: `portal-123`,
|
|
92
|
-
className: `ff-arrow-buttons-container ${getArrowButtonClass()}`,
|
|
93
|
-
onMouseEnter: handleHover,
|
|
94
|
-
onMouseLeave: handleLeave,
|
|
95
|
-
style: {
|
|
96
|
-
left: positionArrowContainer.left,
|
|
97
|
-
top: positionArrowContainer.top,
|
|
98
|
-
zIndex: zIndex
|
|
99
|
-
},
|
|
100
|
-
children: directionalArrow.map(({
|
|
101
|
-
direction,
|
|
102
|
-
menuOptions
|
|
103
|
-
}, index) => jsx(ArrowsButton, {
|
|
104
|
-
direction: direction,
|
|
105
|
-
onArrowClick: () => handleArrowClick(direction),
|
|
106
|
-
menuOptions: menuOptions,
|
|
107
|
-
isActive: activeArrow === direction,
|
|
108
|
-
variant: variant,
|
|
109
|
-
treeRowRef: treeRowRef,
|
|
110
|
-
onMenuOptionClick: onMenuOptionClick,
|
|
111
|
-
menuOptionZIndex: menuOptionZIndex
|
|
112
|
-
}, index))
|
|
113
|
-
}), document.body)]
|
|
114
|
-
});
|
|
7
|
+
import { validateArrows, } from './type';
|
|
8
|
+
import usePortalPosition from '../../hooks/usePortalPosition';
|
|
9
|
+
const AddResourceButton = ({ id = 'AddModule', variant = 'primary', directionalArrow = [
|
|
10
|
+
{
|
|
11
|
+
direction: 'right',
|
|
12
|
+
menuOptions: [
|
|
13
|
+
{ label: 'Sub Module', value: 'sub_module', icon: '', disable: false },
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
], zIndex = 1400, menuOptionZIndex = 1400, treeRowRef, onMenuOptionClick, }) => {
|
|
17
|
+
const [isHovered, setIsHovered] = useState(false);
|
|
18
|
+
const [positionArrowContainer, setPositionArrowContainer] = useState({ left: 0, top: 0 });
|
|
19
|
+
const [activeArrow, setActiveArrow] = useState('');
|
|
20
|
+
const arrowContainerRef = useRef(null);
|
|
21
|
+
const validArrows = validateArrows(directionalArrow);
|
|
22
|
+
const portalPosition = usePortalPosition(arrowContainerRef, isHovered);
|
|
23
|
+
const handleHover = () => {
|
|
24
|
+
if (!activeArrow) {
|
|
25
|
+
setIsHovered(true);
|
|
26
|
+
}
|
|
27
|
+
const { positionX, positionY } = portalPosition(arrowContainerRef);
|
|
28
|
+
setPositionArrowContainer({ left: positionX, top: positionY });
|
|
29
|
+
const parentNode = arrowContainerRef.current?.parentNode;
|
|
30
|
+
if (treeRowRef !== null && parentNode) {
|
|
31
|
+
const actionContainer = treeRowRef?.current?.querySelector('.table-tree-row-action');
|
|
32
|
+
actionContainer?.classList.add('table-row-add-button');
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const handleLeave = () => {
|
|
36
|
+
setIsHovered(false);
|
|
37
|
+
setActiveArrow('');
|
|
38
|
+
const parentNode = arrowContainerRef.current?.parentNode;
|
|
39
|
+
if (treeRowRef !== null && parentNode) {
|
|
40
|
+
const actionContainer = treeRowRef?.current?.querySelector('.table-tree-row-action');
|
|
41
|
+
actionContainer?.classList.remove('table-row-add-button');
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const handleArrowClick = (direction) => {
|
|
45
|
+
if (activeArrow === direction) {
|
|
46
|
+
setActiveArrow('');
|
|
47
|
+
setIsHovered(false);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
setActiveArrow(direction);
|
|
51
|
+
setIsHovered(true);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const getArrowButtonClass = () => {
|
|
55
|
+
const directions = validArrows
|
|
56
|
+
.map((arrow) => arrow.direction)
|
|
57
|
+
.sort()
|
|
58
|
+
.join('-');
|
|
59
|
+
const arrowCountClass = validArrows.length === 2 ? 'ff-two-arrows' : '';
|
|
60
|
+
return `ff-${directions} ${arrowCountClass}`;
|
|
61
|
+
};
|
|
62
|
+
return (_jsxs("div", { className: `ff-add-button-container ${isHovered && !activeArrow ? `ff-hovered-add-button--${variant}` : ''}`, id: id, onMouseEnter: handleHover, onMouseLeave: handleLeave, ref: arrowContainerRef, children: [_jsx("span", { className: "ff-add-button", children: _jsx(Icon, { name: "plus_icon", width: 16, height: 16, className: isHovered
|
|
63
|
+
? `ff-hovered-add-icon--${variant}`
|
|
64
|
+
: `ff-add-icon--${variant}` }) }), isHovered &&
|
|
65
|
+
createPortal(_jsx("div", { id: `portal-123`, className: `ff-arrow-buttons-container ${getArrowButtonClass()}`, onMouseEnter: handleHover, onMouseLeave: handleLeave, style: {
|
|
66
|
+
left: positionArrowContainer.left,
|
|
67
|
+
top: positionArrowContainer.top,
|
|
68
|
+
zIndex: zIndex,
|
|
69
|
+
}, children: directionalArrow.map(({ direction, menuOptions }, index) => (_jsx(ArrowsButton, { direction: direction, onArrowClick: () => handleArrowClick(direction), menuOptions: menuOptions, isActive: activeArrow === direction, variant: variant, treeRowRef: treeRowRef, onMenuOptionClick: onMenuOptionClick, menuOptionZIndex: menuOptionZIndex }, index))) }), document.body)] }));
|
|
115
70
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
//# sourceMappingURL=AddResourceButton.js.map
|
|
71
|
+
export default AddResourceButton;
|
|
72
|
+
//# sourceMappingURL=AddResourceButton.js.map
|