@hitachivantara/uikit-react-lab 2.6.18
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/CHANGELOG.md +2334 -0
- package/LICENSE.txt +201 -0
- package/README.md +11 -0
- package/dist/AppSwitcherPanel/Action/Action.d.ts +67 -0
- package/dist/AppSwitcherPanel/Action/Action.js +255 -0
- package/dist/AppSwitcherPanel/Action/Action.js.map +1 -0
- package/dist/AppSwitcherPanel/Action/index.d.ts +2 -0
- package/dist/AppSwitcherPanel/Action/index.js +21 -0
- package/dist/AppSwitcherPanel/Action/index.js.map +1 -0
- package/dist/AppSwitcherPanel/Action/styles.js +91 -0
- package/dist/AppSwitcherPanel/Action/styles.js.map +1 -0
- package/dist/AppSwitcherPanel/AppSwitcherPanel.d.ts +50 -0
- package/dist/AppSwitcherPanel/AppSwitcherPanel.js +230 -0
- package/dist/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -0
- package/dist/AppSwitcherPanel/index.d.ts +2 -0
- package/dist/AppSwitcherPanel/index.js +21 -0
- package/dist/AppSwitcherPanel/index.js.map +1 -0
- package/dist/AppSwitcherPanel/styles.js +83 -0
- package/dist/AppSwitcherPanel/styles.js.map +1 -0
- package/dist/CodeEditor/CodeEditor.d.ts +14 -0
- package/dist/CodeEditor/CodeEditor.js +144 -0
- package/dist/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/CodeEditor/index.d.ts +2 -0
- package/dist/CodeEditor/index.js +16 -0
- package/dist/CodeEditor/index.js.map +1 -0
- package/dist/CodeEditor/styles.js +53 -0
- package/dist/CodeEditor/styles.js.map +1 -0
- package/dist/Footer/Footer.d.ts +12 -0
- package/dist/Footer/Footer.js +67 -0
- package/dist/Footer/Footer.js.map +1 -0
- package/dist/Footer/index.d.ts +2 -0
- package/dist/Footer/index.js +16 -0
- package/dist/Footer/index.js.map +1 -0
- package/dist/Footer/styles.js +54 -0
- package/dist/Footer/styles.js.map +1 -0
- package/dist/FormComposer/FormComposer.d.ts +41 -0
- package/dist/FormComposer/FormComposer.js +258 -0
- package/dist/FormComposer/FormComposer.js.map +1 -0
- package/dist/FormComposer/index.d.ts +2 -0
- package/dist/FormComposer/index.js +16 -0
- package/dist/FormComposer/index.js.map +1 -0
- package/dist/FormComposer/styles.js +39 -0
- package/dist/FormComposer/styles.js.map +1 -0
- package/dist/Loading/Loading.d.ts +32 -0
- package/dist/Loading/Loading.js +89 -0
- package/dist/Loading/Loading.js.map +1 -0
- package/dist/Loading/LoadingWithDelay.d.ts +12 -0
- package/dist/Loading/LoadingWithDelay.js +135 -0
- package/dist/Loading/LoadingWithDelay.js.map +1 -0
- package/dist/Loading/index.d.ts +2 -0
- package/dist/Loading/index.js +16 -0
- package/dist/Loading/index.js.map +1 -0
- package/dist/Loading/styles.js +85 -0
- package/dist/Loading/styles.js.map +1 -0
- package/dist/NavigationAnchors/NavigationAnchors.d.ts +46 -0
- package/dist/NavigationAnchors/NavigationAnchors.js +297 -0
- package/dist/NavigationAnchors/NavigationAnchors.js.map +1 -0
- package/dist/NavigationAnchors/index.d.ts +2 -0
- package/dist/NavigationAnchors/index.js +16 -0
- package/dist/NavigationAnchors/index.js.map +1 -0
- package/dist/NavigationAnchors/styles.js +87 -0
- package/dist/NavigationAnchors/styles.js.map +1 -0
- package/dist/NotificationPanel/Notification/Notification.js +153 -0
- package/dist/NotificationPanel/Notification/Notification.js.map +1 -0
- package/dist/NotificationPanel/Notification/index.js +21 -0
- package/dist/NotificationPanel/Notification/index.js.map +1 -0
- package/dist/NotificationPanel/Notification/styles.js +73 -0
- package/dist/NotificationPanel/Notification/styles.js.map +1 -0
- package/dist/NotificationPanel/NotificationPanel.d.ts +49 -0
- package/dist/NotificationPanel/NotificationPanel.js +219 -0
- package/dist/NotificationPanel/NotificationPanel.js.map +1 -0
- package/dist/NotificationPanel/Panel/Panel.js +202 -0
- package/dist/NotificationPanel/Panel/Panel.js.map +1 -0
- package/dist/NotificationPanel/Panel/index.js +21 -0
- package/dist/NotificationPanel/Panel/index.js.map +1 -0
- package/dist/NotificationPanel/Panel/styles.js +84 -0
- package/dist/NotificationPanel/Panel/styles.js.map +1 -0
- package/dist/NotificationPanel/index.d.ts +2 -0
- package/dist/NotificationPanel/index.js +16 -0
- package/dist/NotificationPanel/index.js.map +1 -0
- package/dist/NotificationPanel/styles.js +16 -0
- package/dist/NotificationPanel/styles.js.map +1 -0
- package/dist/Slider/KnobRing/KnobRing.js +26 -0
- package/dist/Slider/KnobRing/KnobRing.js.map +1 -0
- package/dist/Slider/KnobRing/index.js +19 -0
- package/dist/Slider/KnobRing/index.js.map +1 -0
- package/dist/Slider/KnobRing/styles.js +40 -0
- package/dist/Slider/KnobRing/styles.js.map +1 -0
- package/dist/Slider/Slider.d.ts +133 -0
- package/dist/Slider/Slider.js +607 -0
- package/dist/Slider/Slider.js.map +1 -0
- package/dist/Slider/index.d.ts +2 -0
- package/dist/Slider/index.js +16 -0
- package/dist/Slider/index.js.map +1 -0
- package/dist/Slider/styles.js +125 -0
- package/dist/Slider/styles.js.map +1 -0
- package/dist/TimePicker/PeriodPicker/PeriodPicker.js +128 -0
- package/dist/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/TimePicker/PeriodPicker/index.js +21 -0
- package/dist/TimePicker/PeriodPicker/index.js.map +1 -0
- package/dist/TimePicker/PeriodPicker/styles.js +63 -0
- package/dist/TimePicker/PeriodPicker/styles.js.map +1 -0
- package/dist/TimePicker/TimePicker.d.ts +77 -0
- package/dist/TimePicker/TimePicker.js +425 -0
- package/dist/TimePicker/TimePicker.js.map +1 -0
- package/dist/TimePicker/UnitTimePicker/UnitTimePicker.js +225 -0
- package/dist/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
- package/dist/TimePicker/UnitTimePicker/index.js +21 -0
- package/dist/TimePicker/UnitTimePicker/index.js.map +1 -0
- package/dist/TimePicker/UnitTimePicker/styles.js +80 -0
- package/dist/TimePicker/UnitTimePicker/styles.js.map +1 -0
- package/dist/TimePicker/enums.js +40 -0
- package/dist/TimePicker/enums.js.map +1 -0
- package/dist/TimePicker/index.d.ts +2 -0
- package/dist/TimePicker/index.js +16 -0
- package/dist/TimePicker/index.js.map +1 -0
- package/dist/TimePicker/styles.js +113 -0
- package/dist/TimePicker/styles.js.map +1 -0
- package/dist/TimePicker/timePickerConverter.js +90 -0
- package/dist/TimePicker/timePickerConverter.js.map +1 -0
- package/dist/TimePicker/timePickerFormatter.js +77 -0
- package/dist/TimePicker/timePickerFormatter.js.map +1 -0
- package/dist/TimePicker/timePickerUtils.js +36 -0
- package/dist/TimePicker/timePickerUtils.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/Action/Action.d.ts +67 -0
- package/dist/legacy/AppSwitcherPanel/Action/Action.js +214 -0
- package/dist/legacy/AppSwitcherPanel/Action/Action.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/Action/index.d.ts +2 -0
- package/dist/legacy/AppSwitcherPanel/Action/index.js +7 -0
- package/dist/legacy/AppSwitcherPanel/Action/index.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/Action/styles.js +83 -0
- package/dist/legacy/AppSwitcherPanel/Action/styles.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/AppSwitcherPanel.d.ts +50 -0
- package/dist/legacy/AppSwitcherPanel/AppSwitcherPanel.js +195 -0
- package/dist/legacy/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/index.d.ts +2 -0
- package/dist/legacy/AppSwitcherPanel/index.js +7 -0
- package/dist/legacy/AppSwitcherPanel/index.js.map +1 -0
- package/dist/legacy/AppSwitcherPanel/styles.js +65 -0
- package/dist/legacy/AppSwitcherPanel/styles.js.map +1 -0
- package/dist/legacy/CodeEditor/CodeEditor.d.ts +14 -0
- package/dist/legacy/CodeEditor/CodeEditor.js +114 -0
- package/dist/legacy/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/legacy/CodeEditor/index.d.ts +2 -0
- package/dist/legacy/CodeEditor/index.js +2 -0
- package/dist/legacy/CodeEditor/index.js.map +1 -0
- package/dist/legacy/CodeEditor/styles.js +45 -0
- package/dist/legacy/CodeEditor/styles.js.map +1 -0
- package/dist/legacy/Footer/Footer.d.ts +12 -0
- package/dist/legacy/Footer/Footer.js +51 -0
- package/dist/legacy/Footer/Footer.js.map +1 -0
- package/dist/legacy/Footer/index.d.ts +2 -0
- package/dist/legacy/Footer/index.js +2 -0
- package/dist/legacy/Footer/index.js.map +1 -0
- package/dist/legacy/Footer/styles.js +44 -0
- package/dist/legacy/Footer/styles.js.map +1 -0
- package/dist/legacy/FormComposer/FormComposer.d.ts +41 -0
- package/dist/legacy/FormComposer/FormComposer.js +218 -0
- package/dist/legacy/FormComposer/FormComposer.js.map +1 -0
- package/dist/legacy/FormComposer/index.d.ts +2 -0
- package/dist/legacy/FormComposer/index.js +2 -0
- package/dist/legacy/FormComposer/index.js.map +1 -0
- package/dist/legacy/FormComposer/styles.js +31 -0
- package/dist/legacy/FormComposer/styles.js.map +1 -0
- package/dist/legacy/Loading/Loading.d.ts +32 -0
- package/dist/legacy/Loading/Loading.js +71 -0
- package/dist/legacy/Loading/Loading.js.map +1 -0
- package/dist/legacy/Loading/LoadingWithDelay.d.ts +12 -0
- package/dist/legacy/Loading/LoadingWithDelay.js +97 -0
- package/dist/legacy/Loading/LoadingWithDelay.js.map +1 -0
- package/dist/legacy/Loading/index.d.ts +2 -0
- package/dist/legacy/Loading/index.js +2 -0
- package/dist/legacy/Loading/index.js.map +1 -0
- package/dist/legacy/Loading/styles.js +78 -0
- package/dist/legacy/Loading/styles.js.map +1 -0
- package/dist/legacy/NavigationAnchors/NavigationAnchors.d.ts +46 -0
- package/dist/legacy/NavigationAnchors/NavigationAnchors.js +275 -0
- package/dist/legacy/NavigationAnchors/NavigationAnchors.js.map +1 -0
- package/dist/legacy/NavigationAnchors/index.d.ts +2 -0
- package/dist/legacy/NavigationAnchors/index.js +2 -0
- package/dist/legacy/NavigationAnchors/index.js.map +1 -0
- package/dist/legacy/NavigationAnchors/styles.js +70 -0
- package/dist/legacy/NavigationAnchors/styles.js.map +1 -0
- package/dist/legacy/NotificationPanel/Notification/Notification.js +119 -0
- package/dist/legacy/NotificationPanel/Notification/Notification.js.map +1 -0
- package/dist/legacy/NotificationPanel/Notification/index.js +7 -0
- package/dist/legacy/NotificationPanel/Notification/index.js.map +1 -0
- package/dist/legacy/NotificationPanel/Notification/styles.js +56 -0
- package/dist/legacy/NotificationPanel/Notification/styles.js.map +1 -0
- package/dist/legacy/NotificationPanel/NotificationPanel.d.ts +49 -0
- package/dist/legacy/NotificationPanel/NotificationPanel.js +182 -0
- package/dist/legacy/NotificationPanel/NotificationPanel.js.map +1 -0
- package/dist/legacy/NotificationPanel/Panel/Panel.js +166 -0
- package/dist/legacy/NotificationPanel/Panel/Panel.js.map +1 -0
- package/dist/legacy/NotificationPanel/Panel/index.js +7 -0
- package/dist/legacy/NotificationPanel/Panel/index.js.map +1 -0
- package/dist/legacy/NotificationPanel/Panel/styles.js +66 -0
- package/dist/legacy/NotificationPanel/Panel/styles.js.map +1 -0
- package/dist/legacy/NotificationPanel/index.d.ts +2 -0
- package/dist/legacy/NotificationPanel/index.js +2 -0
- package/dist/legacy/NotificationPanel/index.js.map +1 -0
- package/dist/legacy/NotificationPanel/styles.js +9 -0
- package/dist/legacy/NotificationPanel/styles.js.map +1 -0
- package/dist/legacy/Slider/KnobRing/KnobRing.js +15 -0
- package/dist/legacy/Slider/KnobRing/KnobRing.js.map +1 -0
- package/dist/legacy/Slider/KnobRing/index.js +5 -0
- package/dist/legacy/Slider/KnobRing/index.js.map +1 -0
- package/dist/legacy/Slider/KnobRing/styles.js +32 -0
- package/dist/legacy/Slider/KnobRing/styles.js.map +1 -0
- package/dist/legacy/Slider/Slider.d.ts +133 -0
- package/dist/legacy/Slider/Slider.js +583 -0
- package/dist/legacy/Slider/Slider.js.map +1 -0
- package/dist/legacy/Slider/index.d.ts +2 -0
- package/dist/legacy/Slider/index.js +2 -0
- package/dist/legacy/Slider/index.js.map +1 -0
- package/dist/legacy/Slider/styles.js +108 -0
- package/dist/legacy/Slider/styles.js.map +1 -0
- package/dist/legacy/TimePicker/PeriodPicker/PeriodPicker.js +110 -0
- package/dist/legacy/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/legacy/TimePicker/PeriodPicker/index.js +7 -0
- package/dist/legacy/TimePicker/PeriodPicker/index.js.map +1 -0
- package/dist/legacy/TimePicker/PeriodPicker/styles.js +46 -0
- package/dist/legacy/TimePicker/PeriodPicker/styles.js.map +1 -0
- package/dist/legacy/TimePicker/TimePicker.d.ts +77 -0
- package/dist/legacy/TimePicker/TimePicker.js +402 -0
- package/dist/legacy/TimePicker/TimePicker.js.map +1 -0
- package/dist/legacy/TimePicker/UnitTimePicker/UnitTimePicker.js +207 -0
- package/dist/legacy/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
- package/dist/legacy/TimePicker/UnitTimePicker/index.js +7 -0
- package/dist/legacy/TimePicker/UnitTimePicker/index.js.map +1 -0
- package/dist/legacy/TimePicker/UnitTimePicker/styles.js +63 -0
- package/dist/legacy/TimePicker/UnitTimePicker/styles.js.map +1 -0
- package/dist/legacy/TimePicker/enums.js +32 -0
- package/dist/legacy/TimePicker/enums.js.map +1 -0
- package/dist/legacy/TimePicker/index.d.ts +2 -0
- package/dist/legacy/TimePicker/index.js +2 -0
- package/dist/legacy/TimePicker/index.js.map +1 -0
- package/dist/legacy/TimePicker/styles.js +96 -0
- package/dist/legacy/TimePicker/styles.js.map +1 -0
- package/dist/legacy/TimePicker/timePickerConverter.js +71 -0
- package/dist/legacy/TimePicker/timePickerConverter.js.map +1 -0
- package/dist/legacy/TimePicker/timePickerFormatter.js +63 -0
- package/dist/legacy/TimePicker/timePickerFormatter.js.map +1 -0
- package/dist/legacy/TimePicker/timePickerUtils.js +27 -0
- package/dist/legacy/TimePicker/timePickerUtils.js.map +1 -0
- package/dist/legacy/index.d.ts +26 -0
- package/dist/legacy/index.js +11 -0
- package/dist/legacy/index.js.map +1 -0
- package/dist/legacy/withStyleProps/WithStyleProps.js +14 -0
- package/dist/legacy/withStyleProps/WithStyleProps.js.map +1 -0
- package/dist/legacy/withStyleProps/index.js +2 -0
- package/dist/legacy/withStyleProps/index.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/Action/Action.d.ts +67 -0
- package/dist/modern/AppSwitcherPanel/Action/Action.js +177 -0
- package/dist/modern/AppSwitcherPanel/Action/Action.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/Action/index.d.ts +2 -0
- package/dist/modern/AppSwitcherPanel/Action/index.js +7 -0
- package/dist/modern/AppSwitcherPanel/Action/index.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/Action/styles.js +77 -0
- package/dist/modern/AppSwitcherPanel/Action/styles.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/AppSwitcherPanel.d.ts +50 -0
- package/dist/modern/AppSwitcherPanel/AppSwitcherPanel.js +167 -0
- package/dist/modern/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/index.d.ts +2 -0
- package/dist/modern/AppSwitcherPanel/index.js +7 -0
- package/dist/modern/AppSwitcherPanel/index.js.map +1 -0
- package/dist/modern/AppSwitcherPanel/styles.js +55 -0
- package/dist/modern/AppSwitcherPanel/styles.js.map +1 -0
- package/dist/modern/CodeEditor/CodeEditor.d.ts +14 -0
- package/dist/modern/CodeEditor/CodeEditor.js +109 -0
- package/dist/modern/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/modern/CodeEditor/index.d.ts +2 -0
- package/dist/modern/CodeEditor/index.js +2 -0
- package/dist/modern/CodeEditor/index.js.map +1 -0
- package/dist/modern/CodeEditor/styles.js +43 -0
- package/dist/modern/CodeEditor/styles.js.map +1 -0
- package/dist/modern/Footer/Footer.d.ts +12 -0
- package/dist/modern/Footer/Footer.js +51 -0
- package/dist/modern/Footer/Footer.js.map +1 -0
- package/dist/modern/Footer/index.d.ts +2 -0
- package/dist/modern/Footer/index.js +2 -0
- package/dist/modern/Footer/index.js.map +1 -0
- package/dist/modern/Footer/styles.js +43 -0
- package/dist/modern/Footer/styles.js.map +1 -0
- package/dist/modern/FormComposer/FormComposer.d.ts +41 -0
- package/dist/modern/FormComposer/FormComposer.js +183 -0
- package/dist/modern/FormComposer/FormComposer.js.map +1 -0
- package/dist/modern/FormComposer/index.d.ts +2 -0
- package/dist/modern/FormComposer/index.js +2 -0
- package/dist/modern/FormComposer/index.js.map +1 -0
- package/dist/modern/FormComposer/styles.js +29 -0
- package/dist/modern/FormComposer/styles.js.map +1 -0
- package/dist/modern/Loading/Loading.d.ts +32 -0
- package/dist/modern/Loading/Loading.js +72 -0
- package/dist/modern/Loading/Loading.js.map +1 -0
- package/dist/modern/Loading/LoadingWithDelay.d.ts +12 -0
- package/dist/modern/Loading/LoadingWithDelay.js +92 -0
- package/dist/modern/Loading/LoadingWithDelay.js.map +1 -0
- package/dist/modern/Loading/index.d.ts +2 -0
- package/dist/modern/Loading/index.js +2 -0
- package/dist/modern/Loading/index.js.map +1 -0
- package/dist/modern/Loading/styles.js +76 -0
- package/dist/modern/Loading/styles.js.map +1 -0
- package/dist/modern/NavigationAnchors/NavigationAnchors.d.ts +46 -0
- package/dist/modern/NavigationAnchors/NavigationAnchors.js +243 -0
- package/dist/modern/NavigationAnchors/NavigationAnchors.js.map +1 -0
- package/dist/modern/NavigationAnchors/index.d.ts +2 -0
- package/dist/modern/NavigationAnchors/index.js +2 -0
- package/dist/modern/NavigationAnchors/index.js.map +1 -0
- package/dist/modern/NavigationAnchors/styles.js +61 -0
- package/dist/modern/NavigationAnchors/styles.js.map +1 -0
- package/dist/modern/NotificationPanel/Notification/Notification.js +90 -0
- package/dist/modern/NotificationPanel/Notification/Notification.js.map +1 -0
- package/dist/modern/NotificationPanel/Notification/index.js +7 -0
- package/dist/modern/NotificationPanel/Notification/index.js.map +1 -0
- package/dist/modern/NotificationPanel/Notification/styles.js +45 -0
- package/dist/modern/NotificationPanel/Notification/styles.js.map +1 -0
- package/dist/modern/NotificationPanel/NotificationPanel.d.ts +49 -0
- package/dist/modern/NotificationPanel/NotificationPanel.js +153 -0
- package/dist/modern/NotificationPanel/NotificationPanel.js.map +1 -0
- package/dist/modern/NotificationPanel/Panel/Panel.js +133 -0
- package/dist/modern/NotificationPanel/Panel/Panel.js.map +1 -0
- package/dist/modern/NotificationPanel/Panel/index.js +7 -0
- package/dist/modern/NotificationPanel/Panel/index.js.map +1 -0
- package/dist/modern/NotificationPanel/Panel/styles.js +56 -0
- package/dist/modern/NotificationPanel/Panel/styles.js.map +1 -0
- package/dist/modern/NotificationPanel/index.d.ts +2 -0
- package/dist/modern/NotificationPanel/index.js +2 -0
- package/dist/modern/NotificationPanel/index.js.map +1 -0
- package/dist/modern/NotificationPanel/styles.js +9 -0
- package/dist/modern/NotificationPanel/styles.js.map +1 -0
- package/dist/modern/Slider/KnobRing/KnobRing.js +17 -0
- package/dist/modern/Slider/KnobRing/KnobRing.js.map +1 -0
- package/dist/modern/Slider/KnobRing/index.js +5 -0
- package/dist/modern/Slider/KnobRing/index.js.map +1 -0
- package/dist/modern/Slider/KnobRing/styles.js +34 -0
- package/dist/modern/Slider/KnobRing/styles.js.map +1 -0
- package/dist/modern/Slider/Slider.d.ts +133 -0
- package/dist/modern/Slider/Slider.js +542 -0
- package/dist/modern/Slider/Slider.js.map +1 -0
- package/dist/modern/Slider/index.d.ts +2 -0
- package/dist/modern/Slider/index.js +2 -0
- package/dist/modern/Slider/index.js.map +1 -0
- package/dist/modern/Slider/styles.js +99 -0
- package/dist/modern/Slider/styles.js.map +1 -0
- package/dist/modern/TimePicker/PeriodPicker/PeriodPicker.js +88 -0
- package/dist/modern/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/modern/TimePicker/PeriodPicker/index.js +7 -0
- package/dist/modern/TimePicker/PeriodPicker/index.js.map +1 -0
- package/dist/modern/TimePicker/PeriodPicker/styles.js +37 -0
- package/dist/modern/TimePicker/PeriodPicker/styles.js.map +1 -0
- package/dist/modern/TimePicker/TimePicker.d.ts +77 -0
- package/dist/modern/TimePicker/TimePicker.js +394 -0
- package/dist/modern/TimePicker/TimePicker.js.map +1 -0
- package/dist/modern/TimePicker/UnitTimePicker/UnitTimePicker.js +186 -0
- package/dist/modern/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
- package/dist/modern/TimePicker/UnitTimePicker/index.js +7 -0
- package/dist/modern/TimePicker/UnitTimePicker/index.js.map +1 -0
- package/dist/modern/TimePicker/UnitTimePicker/styles.js +54 -0
- package/dist/modern/TimePicker/UnitTimePicker/styles.js.map +1 -0
- package/dist/modern/TimePicker/enums.js +32 -0
- package/dist/modern/TimePicker/enums.js.map +1 -0
- package/dist/modern/TimePicker/index.d.ts +2 -0
- package/dist/modern/TimePicker/index.js +2 -0
- package/dist/modern/TimePicker/index.js.map +1 -0
- package/dist/modern/TimePicker/styles.js +87 -0
- package/dist/modern/TimePicker/styles.js.map +1 -0
- package/dist/modern/TimePicker/timePickerConverter.js +66 -0
- package/dist/modern/TimePicker/timePickerConverter.js.map +1 -0
- package/dist/modern/TimePicker/timePickerFormatter.js +62 -0
- package/dist/modern/TimePicker/timePickerFormatter.js.map +1 -0
- package/dist/modern/TimePicker/timePickerUtils.js +26 -0
- package/dist/modern/TimePicker/timePickerUtils.js.map +1 -0
- package/dist/modern/index.d.ts +26 -0
- package/dist/modern/index.js +11 -0
- package/dist/modern/index.js.map +1 -0
- package/dist/modern/withStyleProps/WithStyleProps.js +10 -0
- package/dist/modern/withStyleProps/WithStyleProps.js.map +1 -0
- package/dist/modern/withStyleProps/index.js +2 -0
- package/dist/modern/withStyleProps/index.js.map +1 -0
- package/dist/withStyleProps/WithStyleProps.js +25 -0
- package/dist/withStyleProps/WithStyleProps.js.map +1 -0
- package/dist/withStyleProps/index.js +16 -0
- package/dist/withStyleProps/index.js.map +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
7
|
+
import React, { Component } from "react";
|
|
8
|
+
import PropTypes from "prop-types";
|
|
9
|
+
import { HvTypography } from "@hitachivantara/uikit-react-core";
|
|
10
|
+
import { Info } from "@hitachivantara/uikit-react-icons";
|
|
11
|
+
export default class Action extends Component {
|
|
12
|
+
constructor(props) {
|
|
13
|
+
super(props);
|
|
14
|
+
this.state = {
|
|
15
|
+
validIconUrl: true
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
const {
|
|
21
|
+
classes,
|
|
22
|
+
application,
|
|
23
|
+
isSelectedCallback
|
|
24
|
+
} = this.props;
|
|
25
|
+
|
|
26
|
+
const renderApplicationIcon = () => {
|
|
27
|
+
if (application.iconElement) {
|
|
28
|
+
return application.iconElement;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const {
|
|
32
|
+
validIconUrl
|
|
33
|
+
} = this.state;
|
|
34
|
+
|
|
35
|
+
if (application.iconUrl && validIconUrl) {
|
|
36
|
+
return (
|
|
37
|
+
/*#__PURE__*/
|
|
38
|
+
// eslint-disable-next-line jsx-a11y/alt-text
|
|
39
|
+
React.createElement("img", {
|
|
40
|
+
className: classes.iconUrl,
|
|
41
|
+
src: application.iconUrl,
|
|
42
|
+
onError: element => {
|
|
43
|
+
// eslint-disable-next-line no-param-reassign
|
|
44
|
+
element.target.style.display = "none";
|
|
45
|
+
this.setState({
|
|
46
|
+
validIconUrl: false
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: classes.dummyImage
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const isSelected = isSelectedCallback(application);
|
|
59
|
+
/**
|
|
60
|
+
* Handles the onClick event and triggers the appropriate callback if it exists.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
const handleOnClick = event => {
|
|
64
|
+
const {
|
|
65
|
+
onClickCallback
|
|
66
|
+
} = this.props;
|
|
67
|
+
|
|
68
|
+
if (onClickCallback) {
|
|
69
|
+
onClickCallback(event, _objectSpread(_objectSpread({}, application), {}, {
|
|
70
|
+
isSelected
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const renderElement = () => {
|
|
76
|
+
return /*#__PURE__*/React.createElement(HvTypography, {
|
|
77
|
+
component: "div",
|
|
78
|
+
variant: isSelected ? "selectedText" : "normalText",
|
|
79
|
+
role: "button",
|
|
80
|
+
className: `${classes.typography} ${isSelected ? classes.selected : ""}`,
|
|
81
|
+
tabIndex: 0,
|
|
82
|
+
onClick: handleOnClick
|
|
83
|
+
}, renderApplicationIcon(), /*#__PURE__*/React.createElement("span", {
|
|
84
|
+
title: application.name
|
|
85
|
+
}, application.name), application.description && /*#__PURE__*/React.createElement(Info, {
|
|
86
|
+
className: classes.iconInfo,
|
|
87
|
+
title: application.description
|
|
88
|
+
}));
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const renderElementWithLink = () => {
|
|
92
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
93
|
+
href: application.url,
|
|
94
|
+
target: application.target || "_top",
|
|
95
|
+
className: classes.link
|
|
96
|
+
}, renderElement());
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
return isSelected ? renderElement() : renderElementWithLink();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
process.env.NODE_ENV !== "production" ? Action.propTypes = {
|
|
104
|
+
/**
|
|
105
|
+
* The application data to be used to render the Action object.
|
|
106
|
+
*/
|
|
107
|
+
application: PropTypes.shape({
|
|
108
|
+
/**
|
|
109
|
+
* Id of the application.
|
|
110
|
+
*/
|
|
111
|
+
id: PropTypes.string.isRequired,
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Name of the application, this is the value that will be displayed on the component.
|
|
115
|
+
*/
|
|
116
|
+
name: PropTypes.string.isRequired,
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* URL with the icon location to be used to represent the application.
|
|
120
|
+
* iconUrl will only be used if no iconElement is provided.
|
|
121
|
+
*/
|
|
122
|
+
iconUrl: PropTypes.string,
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Element to be added as the icon representing the application.
|
|
126
|
+
* The iconElement will be the primary option to be displayed.
|
|
127
|
+
*/
|
|
128
|
+
iconElement: PropTypes.element,
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Small description of the application.
|
|
132
|
+
*/
|
|
133
|
+
description: PropTypes.string,
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* URL where the application is accesible.
|
|
137
|
+
*/
|
|
138
|
+
url: PropTypes.string.isRequired,
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Defines if the application should be opened in the same tab or in a new one.
|
|
142
|
+
*/
|
|
143
|
+
target: PropTypes.oneOf(["_top", "_blank"]),
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* True when the application is selected, false otherwise.
|
|
147
|
+
*/
|
|
148
|
+
isSelected: PropTypes.bool
|
|
149
|
+
}).isRequired,
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* A Jss object used to override or extend the component styles.
|
|
153
|
+
*/
|
|
154
|
+
classes: PropTypes.shape({
|
|
155
|
+
iconUrl: PropTypes.string,
|
|
156
|
+
dummyImage: PropTypes.string,
|
|
157
|
+
link: PropTypes.string,
|
|
158
|
+
typography: PropTypes.string,
|
|
159
|
+
selected: PropTypes.string,
|
|
160
|
+
iconInfo: PropTypes.string
|
|
161
|
+
}).isRequired,
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Callback triggered when the action is clicked.
|
|
165
|
+
*/
|
|
166
|
+
onClickCallback: PropTypes.func,
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
170
|
+
*/
|
|
171
|
+
isSelectedCallback: PropTypes.func
|
|
172
|
+
} : void 0;
|
|
173
|
+
Action.defaultProps = {
|
|
174
|
+
onClickCallback: () => {},
|
|
175
|
+
isSelectedCallback: () => false
|
|
176
|
+
};
|
|
177
|
+
//# sourceMappingURL=Action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.js","names":["React","Component","PropTypes","HvTypography","Info","Action","constructor","props","state","validIconUrl","render","classes","application","isSelectedCallback","renderApplicationIcon","iconElement","iconUrl","element","target","style","display","setState","dummyImage","isSelected","handleOnClick","event","onClickCallback","renderElement","typography","selected","name","description","iconInfo","renderElementWithLink","url","link","propTypes","shape","id","string","isRequired","oneOf","bool","func","defaultProps"],"sources":["../../../../src/AppSwitcherPanel/Action/Action.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { HvTypography } from \"@hitachivantara/uikit-react-core\";\nimport { Info } from \"@hitachivantara/uikit-react-icons\";\n\nexport default class Action extends Component {\n constructor(props) {\n super(props);\n this.state = { validIconUrl: true };\n }\n\n render() {\n const { classes, application, isSelectedCallback } = this.props;\n\n const renderApplicationIcon = () => {\n if (application.iconElement) {\n return application.iconElement;\n }\n\n const { validIconUrl } = this.state;\n\n if (application.iconUrl && validIconUrl) {\n return (\n // eslint-disable-next-line jsx-a11y/alt-text\n <img\n className={classes.iconUrl}\n src={application.iconUrl}\n onError={(element) => {\n // eslint-disable-next-line no-param-reassign\n element.target.style.display = \"none\";\n this.setState({ validIconUrl: false });\n }}\n />\n );\n }\n return <div className={classes.dummyImage} />;\n };\n\n const isSelected = isSelectedCallback(application);\n\n /**\n * Handles the onClick event and triggers the appropriate callback if it exists.\n */\n const handleOnClick = (event) => {\n const { onClickCallback } = this.props;\n\n if (onClickCallback) {\n onClickCallback(event, { ...application, isSelected });\n }\n };\n\n const renderElement = () => {\n return (\n <HvTypography\n component=\"div\"\n variant={isSelected ? \"selectedText\" : \"normalText\"}\n role=\"button\"\n className={`${classes.typography} ${isSelected ? classes.selected : \"\"}`}\n tabIndex={0}\n onClick={handleOnClick}\n >\n {renderApplicationIcon()}\n\n <span title={application.name}>{application.name}</span>\n\n {application.description && (\n <Info className={classes.iconInfo} title={application.description} />\n )}\n </HvTypography>\n );\n };\n\n const renderElementWithLink = () => {\n return (\n <a href={application.url} target={application.target || \"_top\"} className={classes.link}>\n {renderElement()}\n </a>\n );\n };\n\n return isSelected ? renderElement() : renderElementWithLink();\n }\n}\n\nAction.propTypes = {\n /**\n * The application data to be used to render the Action object.\n */\n application: PropTypes.shape({\n /**\n * Id of the application.\n */\n id: PropTypes.string.isRequired,\n /**\n * Name of the application, this is the value that will be displayed on the component.\n */\n name: PropTypes.string.isRequired,\n /**\n * URL with the icon location to be used to represent the application.\n * iconUrl will only be used if no iconElement is provided.\n */\n iconUrl: PropTypes.string,\n /**\n * Element to be added as the icon representing the application.\n * The iconElement will be the primary option to be displayed.\n */\n iconElement: PropTypes.element,\n /**\n * Small description of the application.\n */\n description: PropTypes.string,\n /**\n * URL where the application is accesible.\n */\n url: PropTypes.string.isRequired,\n /**\n * Defines if the application should be opened in the same tab or in a new one.\n */\n target: PropTypes.oneOf([\"_top\", \"_blank\"]),\n /**\n * True when the application is selected, false otherwise.\n */\n isSelected: PropTypes.bool,\n }).isRequired,\n /**\n * A Jss object used to override or extend the component styles.\n */\n classes: PropTypes.shape({\n iconUrl: PropTypes.string,\n dummyImage: PropTypes.string,\n link: PropTypes.string,\n typography: PropTypes.string,\n selected: PropTypes.string,\n iconInfo: PropTypes.string,\n }).isRequired,\n /**\n * Callback triggered when the action is clicked.\n */\n onClickCallback: PropTypes.func,\n /**\n * Must return a boolean stating if the action element is selected or not.\n */\n isSelectedCallback: PropTypes.func,\n};\n\nAction.defaultProps = {\n onClickCallback: () => {},\n isSelectedCallback: () => false,\n};\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAASC,YAAT,QAA6B,kCAA7B;AACA,SAASC,IAAT,QAAqB,mCAArB;AAEA,eAAe,MAAMC,MAAN,SAAqBJ,SAArB,CAA+B;EAC5CK,WAAW,CAACC,KAAD,EAAQ;IACjB,MAAMA,KAAN;IACA,KAAKC,KAAL,GAAa;MAAEC,YAAY,EAAE;IAAhB,CAAb;EACD;;EAEDC,MAAM,GAAG;IACP,MAAM;MAAEC,OAAF;MAAWC,WAAX;MAAwBC;IAAxB,IAA+C,KAAKN,KAA1D;;IAEA,MAAMO,qBAAqB,GAAG,MAAM;MAClC,IAAIF,WAAW,CAACG,WAAhB,EAA6B;QAC3B,OAAOH,WAAW,CAACG,WAAnB;MACD;;MAED,MAAM;QAAEN;MAAF,IAAmB,KAAKD,KAA9B;;MAEA,IAAII,WAAW,CAACI,OAAZ,IAAuBP,YAA3B,EAAyC;QACvC;UAAA;UACE;UACA;YACE,SAAS,EAAEE,OAAO,CAACK,OADrB;YAEE,GAA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;;EAmDjB;AACF;AACA;EACEd,eAAe,EAAExB,SAAS,CAACyC,IAtDV;;EAuDjB;AACF;AACA;EACE9B,kBAAkB,EAAEX,SAAS,CAACyC;AA1Db,CAAnB;AA6DAtC,MAAM,CAACuC,YAAP,GAAsB;EACpBlB,eAAe,EAAE,MAAM,CAAE,CADL;EAEpBb,kBAAkB,EAAE,MAAM;AAFN,CAAtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["withStyles","styles","Action","withTheme"],"sources":["../../../../src/AppSwitcherPanel/Action/index.js"],"sourcesContent":["import withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\nimport Action from \"./Action\";\n\nexport default withStyles(styles, { withTheme: true })(Action);\n"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,qCAAvB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEA,eAAeF,UAAU,CAACC,MAAD,EAAS;EAAEE,SAAS,EAAE;AAAb,CAAT,CAAV,CAAwCD,MAAxC,CAAf"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const selected = theme => ({
|
|
2
|
+
background: theme.hv.palette.accent.acce1,
|
|
3
|
+
color: theme.hv.palette.atmosphere.atmo1,
|
|
4
|
+
cursor: "default",
|
|
5
|
+
"& *": {
|
|
6
|
+
background: theme.hv.palette.accent.acce1,
|
|
7
|
+
color: theme.hv.palette.atmosphere.atmo1,
|
|
8
|
+
cursor: "default"
|
|
9
|
+
},
|
|
10
|
+
"& svg *.color0": {
|
|
11
|
+
fill: theme.hv.palette.atmosphere.atmo1
|
|
12
|
+
},
|
|
13
|
+
// hover
|
|
14
|
+
"&:hover": {
|
|
15
|
+
background: theme.hv.palette.accent.acce1,
|
|
16
|
+
color: theme.hv.palette.atmosphere.atmo1,
|
|
17
|
+
"& *": {
|
|
18
|
+
background: theme.hv.palette.accent.acce1,
|
|
19
|
+
color: theme.hv.palette.atmosphere.atmo1
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const hover = theme => ({
|
|
25
|
+
background: theme.hv.palette.atmosphere.atmo4,
|
|
26
|
+
"& *": {
|
|
27
|
+
background: theme.hv.palette.atmosphere.atmo4
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const styles = theme => ({
|
|
32
|
+
typography: {
|
|
33
|
+
display: "flex",
|
|
34
|
+
background: theme.hv.palette.atmosphere.atmo1,
|
|
35
|
+
width: "100%",
|
|
36
|
+
justifyContent: "flex-start",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
height: "32px",
|
|
39
|
+
color: theme.hv.palette.atmosphere.acce1,
|
|
40
|
+
marginBottom: "8px",
|
|
41
|
+
// hover
|
|
42
|
+
"&:hover": hover(theme),
|
|
43
|
+
// cursor
|
|
44
|
+
cursor: "pointer",
|
|
45
|
+
"& *": {
|
|
46
|
+
cursor: "pointer"
|
|
47
|
+
},
|
|
48
|
+
"& span": {
|
|
49
|
+
overflow: "hidden",
|
|
50
|
+
whiteSpace: "nowrap",
|
|
51
|
+
textOverflow: "ellipsis",
|
|
52
|
+
width: "calc(100% - 64px)" // The with of both icons, 32px each.
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
selected: selected(theme),
|
|
57
|
+
dummyImage: {
|
|
58
|
+
width: "8px"
|
|
59
|
+
},
|
|
60
|
+
link: {
|
|
61
|
+
color: "inherit",
|
|
62
|
+
textDecoration: "inherit"
|
|
63
|
+
},
|
|
64
|
+
iconInfo: {
|
|
65
|
+
width: "32px",
|
|
66
|
+
height: "32px",
|
|
67
|
+
marginLeft: "auto"
|
|
68
|
+
},
|
|
69
|
+
iconUrl: {
|
|
70
|
+
width: "16px",
|
|
71
|
+
height: "16px",
|
|
72
|
+
margin: "8px"
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export default styles;
|
|
77
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["selected","theme","background","hv","palette","accent","acce1","color","atmosphere","atmo1","cursor","fill","hover","atmo4","styles","typography","display","width","justifyContent","alignItems","height","marginBottom","overflow","whiteSpace","textOverflow","dummyImage","link","textDecoration","iconInfo","marginLeft","iconUrl","margin"],"sources":["../../../../src/AppSwitcherPanel/Action/styles.js"],"sourcesContent":["const selected = (theme) => ({\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n cursor: \"default\",\n \"& *\": {\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n cursor: \"default\",\n },\n \"& svg *.color0\": {\n fill: theme.hv.palette.atmosphere.atmo1,\n },\n // hover\n \"&:hover\": {\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n \"& *\": {\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n },\n },\n});\n\nconst hover = (theme) => ({\n background: theme.hv.palette.atmosphere.atmo4,\n \"& *\": {\n background: theme.hv.palette.atmosphere.atmo4,\n },\n});\n\nconst styles = (theme) => ({\n typography: {\n display: \"flex\",\n background: theme.hv.palette.atmosphere.atmo1,\n width: \"100%\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n height: \"32px\",\n color: theme.hv.palette.atmosphere.acce1,\n marginBottom: \"8px\",\n\n // hover\n \"&:hover\": hover(theme),\n\n // cursor\n cursor: \"pointer\",\n \"& *\": {\n cursor: \"pointer\",\n },\n\n \"& span\": {\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n width: \"calc(100% - 64px)\", // The with of both icons, 32px each.\n },\n },\n selected: selected(theme),\n\n dummyImage: {\n width: \"8px\",\n },\n\n link: {\n color: \"inherit\",\n textDecoration: \"inherit\",\n },\n\n iconInfo: {\n width: \"32px\",\n height: \"32px\",\n marginLeft: \"auto\",\n },\n\n iconUrl: {\n width: \"16px\",\n height: \"16px\",\n margin: \"8px\",\n },\n});\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,QAAQ,GAAIC,KAAD,KAAY;EAC3BC,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KADT;EAE3BC,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC,KAFR;EAG3BC,MAAM,EAAE,SAHmB;EAI3B,OAAO;IACLR,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAD/B;IAELC,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC,KAF9B;IAGLC,MAAM,EAAE;EAHH,CAJoB;EAS3B,kBAAkB;IAChBC,IAAI,EAAEV,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC;EADlB,CATS;EAY3B;EACA,WAAW;IACTP,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAD3B;IAETC,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC,KAF1B;IAGT,OAAO;MACLP,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAD/B;MAELC,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC;IAF9B;EAHE;AAbgB,CAAZ,CAAjB;;AAuBA,MAAMG,KAAK,GAAIX,KAAD,KAAY;EACxBC,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BK,KADhB;EAExB,OAAO;IACLX,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BK;EADnC;AAFiB,CAAZ,CAAd;;AAOA,MAAMC,MAAM,GAAIb,KAAD,KAAY;EACzBc,UAAU,EAAE;IACVC,OAAO,EAAE,MADC;IAEVd,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC,KAF9B;IAGVQ,KAAK,EAAE,MAHG;IAIVC,cAAc,EAAE,YAJN;IAKVC,UAAU,EAAE,QALF;IAMVC,MAAM,EAAE,MANE;IAOVb,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BF,KAPzB;IAQVe,YAAY,EAAE,KARJ;IAUV;IACA,WAAWT,KAAK,CAACX,KAAD,CAXN;IAaV;IACAS,MAAM,EAAE,SAdE;IAeV,OAAO;MACLA,MAAM,EAAE;IADH,CAfG;IAmBV,UAAU;MACRY,QAAQ,EAAE,QADF;MAERC,UAAU,EAAE,QAFJ;MAGRC,YAAY,EAAE,UAHN;MAIRP,KAAK,EAAE,mBAJC,CAIoB;;IAJpB;EAnBA,CADa;EA2BzBjB,QAAQ,EAAEA,QAAQ,CAACC,KAAD,CA3BO;EA6BzBwB,UAAU,EAAE;IACVR,KAAK,EAAE;EADG,CA7Ba;EAiCzBS,IAAI,EAAE;IACJnB,KAAK,EAAE,SADH;IAEJoB,cAAc,EAAE;EAFZ,CAjCmB;EAsCzBC,QAAQ,EAAE;IACRX,KAAK,EAAE,MADC;IAERG,MAAM,EAAE,MAFA;IAGRS,UAAU,EAAE;EAHJ,CAtCe;EA4CzBC,OAAO,EAAE;IACPb,KAAK,EAAE,MADA;IAEPG,MAAM,EAAE,MAFD;IAGPW,MAAM,EAAE;EAHD;AA5CgB,CAAZ,CAAf;;AAmDA,eAAejB,MAAf"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
|
|
4
|
+
import { HvAppSwitcherPanelActionApplication } from "./Action";
|
|
5
|
+
|
|
6
|
+
export type HvAppSwitcherPanelClassKey =
|
|
7
|
+
| "root"
|
|
8
|
+
| "open"
|
|
9
|
+
| "headerContainer"
|
|
10
|
+
| "titleContainer"
|
|
11
|
+
| "title"
|
|
12
|
+
| "actionsContainer"
|
|
13
|
+
| "footerContainer";
|
|
14
|
+
|
|
15
|
+
export interface HvAppSwitcherPanelProps
|
|
16
|
+
extends StandardProps<React.HTMLAttributes<HTMLElement>, HvAppSwitcherPanelClassKey> {
|
|
17
|
+
/**
|
|
18
|
+
* Flag stating if the panel is opened or closed.
|
|
19
|
+
*/
|
|
20
|
+
isOpen?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Title to be displayed on the header of the component.
|
|
23
|
+
*/
|
|
24
|
+
title?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The list of applications to be used to render the actions on the component.
|
|
27
|
+
*/
|
|
28
|
+
applications: HvAppSwitcherPanelActionApplication[];
|
|
29
|
+
/**
|
|
30
|
+
* Element to be added to the header container, if none is provided a label with the title will be added.
|
|
31
|
+
*/
|
|
32
|
+
header?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Element to be added to the footer container.
|
|
35
|
+
*/
|
|
36
|
+
footer?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Triggered when an action is clicked.
|
|
39
|
+
*/
|
|
40
|
+
onActionClickedCallback?: (
|
|
41
|
+
event: MouseEvent,
|
|
42
|
+
application?: HvAppSwitcherPanelActionApplication
|
|
43
|
+
) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
46
|
+
*/
|
|
47
|
+
isActionSelectedCallback?: (application?: HvAppSwitcherPanelActionApplication) => boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default function HvAppSwitcherPanel(props: HvAppSwitcherPanelProps): JSX.Element | null;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import uniqueId from "lodash/uniqueId";
|
|
4
|
+
import Action from "./Action";
|
|
5
|
+
export default class AppSwitcherPanel extends Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
const {
|
|
9
|
+
id
|
|
10
|
+
} = this.props;
|
|
11
|
+
this.state = {
|
|
12
|
+
internalId: id || uniqueId("hv-appswitcherpanel-")
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
render() {
|
|
17
|
+
const {
|
|
18
|
+
internalId
|
|
19
|
+
} = this.state;
|
|
20
|
+
const {
|
|
21
|
+
classes,
|
|
22
|
+
isOpen,
|
|
23
|
+
title,
|
|
24
|
+
applications,
|
|
25
|
+
header,
|
|
26
|
+
footer,
|
|
27
|
+
onActionClickedCallback,
|
|
28
|
+
isActionSelectedCallback
|
|
29
|
+
} = this.props;
|
|
30
|
+
|
|
31
|
+
const actionClicked = (event, application) => {
|
|
32
|
+
if (onActionClickedCallback) {
|
|
33
|
+
onActionClickedCallback(event, application);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const panelActions = applications.map(application => {
|
|
38
|
+
if (application.name && application.url) {
|
|
39
|
+
return /*#__PURE__*/React.createElement(Action, {
|
|
40
|
+
key: application.url,
|
|
41
|
+
application: application,
|
|
42
|
+
onClickCallback: actionClicked,
|
|
43
|
+
isSelectedCallback: isActionSelectedCallback
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return undefined;
|
|
48
|
+
});
|
|
49
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
id: internalId,
|
|
51
|
+
className: `${classes.root} ${isOpen ? classes.open : ""}`
|
|
52
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: classes.headerContainer
|
|
54
|
+
}, header || /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
className: classes.titleContainer
|
|
56
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: classes.title,
|
|
58
|
+
title: title
|
|
59
|
+
}, title))), /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: classes.actionsContainer
|
|
61
|
+
}, panelActions), footer && /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: classes.footerContainer
|
|
63
|
+
}, footer));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
process.env.NODE_ENV !== "production" ? AppSwitcherPanel.propTypes = {
|
|
68
|
+
id: PropTypes.string,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* A Jss Object used to override or extend the styles applied.
|
|
72
|
+
*/
|
|
73
|
+
classes: PropTypes.shape({
|
|
74
|
+
root: PropTypes.string,
|
|
75
|
+
open: PropTypes.string,
|
|
76
|
+
headerContainer: PropTypes.string,
|
|
77
|
+
titleContainer: PropTypes.string,
|
|
78
|
+
title: PropTypes.string,
|
|
79
|
+
actionsContainer: PropTypes.string,
|
|
80
|
+
footerContainer: PropTypes.string
|
|
81
|
+
}).isRequired,
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Flag stating if the panel is opened or closed.
|
|
85
|
+
*/
|
|
86
|
+
isOpen: PropTypes.bool,
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Title to be displayed on the header of the component.
|
|
90
|
+
*/
|
|
91
|
+
title: PropTypes.string,
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The list of applications to be used to render the actions on the component.
|
|
95
|
+
*/
|
|
96
|
+
applications: PropTypes.arrayOf(PropTypes.shape({
|
|
97
|
+
/**
|
|
98
|
+
* Id of the application.
|
|
99
|
+
*/
|
|
100
|
+
id: PropTypes.string.isRequired,
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Name of the application, this is the value that will be displayed on the component.
|
|
104
|
+
*/
|
|
105
|
+
name: PropTypes.string.isRequired,
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* URL with the icon location to be used to represent the application.
|
|
109
|
+
* iconUrl will only be used if no iconElement is provided.
|
|
110
|
+
*/
|
|
111
|
+
iconUrl: PropTypes.string,
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Element to be added as the icon representing the application.
|
|
115
|
+
* The iconElement will be the primary option to be displayed.
|
|
116
|
+
*/
|
|
117
|
+
iconElement: PropTypes.element,
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Small description of the application.
|
|
121
|
+
*/
|
|
122
|
+
description: PropTypes.string,
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* URL where the application is accesible.
|
|
126
|
+
*/
|
|
127
|
+
url: PropTypes.string.isRequired,
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Defines if the application should be opened in the same tab or in a new one.
|
|
131
|
+
*/
|
|
132
|
+
target: PropTypes.oneOf(["_top", "_blank"]),
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* True when the application is selected, false otherwise.
|
|
136
|
+
*/
|
|
137
|
+
isSelected: PropTypes.bool
|
|
138
|
+
})).isRequired,
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Element to be added to the header container, if none is provided a label with the title will be added.
|
|
142
|
+
*/
|
|
143
|
+
header: PropTypes.element,
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Element to be added to the footer container.
|
|
147
|
+
*/
|
|
148
|
+
footer: PropTypes.element,
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Triggered when an action is clicked.
|
|
152
|
+
*/
|
|
153
|
+
onActionClickedCallback: PropTypes.func,
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
157
|
+
*/
|
|
158
|
+
isActionSelectedCallback: PropTypes.func
|
|
159
|
+
} : void 0;
|
|
160
|
+
AppSwitcherPanel.defaultProps = {
|
|
161
|
+
isOpen: false,
|
|
162
|
+
title: "Apps",
|
|
163
|
+
footer: undefined,
|
|
164
|
+
onActionClickedCallback: () => {},
|
|
165
|
+
isActionSelectedCallback: () => false
|
|
166
|
+
};
|
|
167
|
+
//# sourceMappingURL=AppSwitcherPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppSwitcherPanel.js","names":["React","Component","PropTypes","uniqueId","Action","AppSwitcherPanel","constructor","props","id","state","internalId","render","classes","isOpen","title","applications","header","footer","onActionClickedCallback","isActionSelectedCallback","actionClicked","event","application","panelActions","map","name","url","undefined","root","open","headerContainer","titleContainer","actionsContainer","footerContainer","propTypes","string","shape","isRequired","bool","arrayOf","iconUrl","iconElement","element","description","target","oneOf","isSelected","func","defaultProps"],"sources":["../../../src/AppSwitcherPanel/AppSwitcherPanel.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport uniqueId from \"lodash/uniqueId\";\n\nimport Action from \"./Action\";\n\nexport default class AppSwitcherPanel extends Component {\n constructor(props) {\n super(props);\n\n const { id } = this.props;\n\n this.state = {\n internalId: id || uniqueId(\"hv-appswitcherpanel-\"),\n };\n }\n\n render() {\n const { internalId } = this.state;\n const {\n classes,\n isOpen,\n title,\n applications,\n header,\n footer,\n onActionClickedCallback,\n isActionSelectedCallback,\n } = this.props;\n\n const actionClicked = (event, application) => {\n if (onActionClickedCallback) {\n onActionClickedCallback(event, application);\n }\n };\n\n const panelActions = applications.map((application) => {\n if (application.name && application.url) {\n return (\n <Action\n key={application.url}\n application={application}\n onClickCallback={actionClicked}\n isSelectedCallback={isActionSelectedCallback}\n />\n );\n }\n\n return undefined;\n });\n\n return (\n <div id={internalId} className={`${classes.root} ${isOpen ? classes.open : \"\"}`}>\n <div className={classes.headerContainer}>\n {header || (\n <div className={classes.titleContainer}>\n <div className={classes.title} title={title}>\n {title}\n </div>\n </div>\n )}\n </div>\n <div className={classes.actionsContainer}>{panelActions}</div>\n {footer && <div className={classes.footerContainer}>{footer}</div>}\n </div>\n );\n }\n}\n\nAppSwitcherPanel.propTypes = {\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n root: PropTypes.string,\n open: PropTypes.string,\n headerContainer: PropTypes.string,\n titleContainer: PropTypes.string,\n title: PropTypes.string,\n actionsContainer: PropTypes.string,\n footerContainer: PropTypes.string,\n }).isRequired,\n /**\n * Flag stating if the panel is opened or closed.\n */\n isOpen: PropTypes.bool,\n /**\n * Title to be displayed on the header of the component.\n */\n title: PropTypes.string,\n /**\n * The list of applications to be used to render the actions on the component.\n */\n applications: PropTypes.arrayOf(\n PropTypes.shape({\n /**\n * Id of the application.\n */\n id: PropTypes.string.isRequired,\n /**\n * Name of the application, this is the value that will be displayed on the component.\n */\n name: PropTypes.string.isRequired,\n /**\n * URL with the icon location to be used to represent the application.\n * iconUrl will only be used if no iconElement is provided.\n */\n iconUrl: PropTypes.string,\n /**\n * Element to be added as the icon representing the application.\n * The iconElement will be the primary option to be displayed.\n */\n iconElement: PropTypes.element,\n /**\n * Small description of the application.\n */\n description: PropTypes.string,\n /**\n * URL where the application is accesible.\n */\n url: PropTypes.string.isRequired,\n /**\n * Defines if the application should be opened in the same tab or in a new one.\n */\n target: PropTypes.oneOf([\"_top\", \"_blank\"]),\n /**\n * True when the application is selected, false otherwise.\n */\n isSelected: PropTypes.bool,\n })\n ).isRequired,\n /**\n * Element to be added to the header container, if none is provided a label with the title will be added.\n */\n header: PropTypes.element,\n /**\n * Element to be added to the footer container.\n */\n footer: PropTypes.element,\n /**\n * Triggered when an action is clicked.\n */\n onActionClickedCallback: PropTypes.func,\n /**\n * Must return a boolean stating if the action element is selected or not.\n */\n isActionSelectedCallback: PropTypes.func,\n};\n\nAppSwitcherPanel.defaultProps = {\n isOpen: false,\n title: \"Apps\",\n footer: undefined,\n onActionClickedCallback: () => {},\n isActionSelectedCallback: () => false,\n};\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,QAAP,MAAqB,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SAAS,CAACiC,MAtBT;;IAuBd;AACN;AACA;IACMT,GAAG,EAAExB,SAAS,CAACiC,MAAV,CAAiBE,UA1BR;;IA2Bd;AACN;AACA;IACMO,MAAM,EAAE1C,SAAS,CAAC2C,KAAV,CAAgB,CAAC,MAAD,EAAS,QAAT,CAAhB,CA9BM;;IA+Bd;AACN;AACA;IACMC,UAAU,EAAE5C,SAAS,CAACoC;EAlCR,CAAhB,CADY,EAqCZD,UA9DyB;;EA+D3B;AACF;AACA;EACErB,MAAM,EAAEd,SAAS,CAACwC,OAlES;;EAmE3B;AACF;AACA;EACEzB,MAAM,EAAEf,SAAS,CAACwC,OAtES;;EAuE3B;AACF;AACA;EACExB,uBAAuB,EAAEhB,SAAS,CAAC6C,IA1ER;;EA2E3B;AACF;AACA;EACE5B,wBAAwB,EAAEjB,SAAS,CAAC6C;AA9ET,CAA7B;AAiFA1C,gBAAgB,CAAC2C,YAAjB,GAAgC;EAC9BnC,MAAM,EAAE,KADsB;EAE9BC,KAAK,EAAE,MAFuB;EAG9BG,MAAM,EAAEU,SAHsB;EAI9BT,uBAAuB,EAAE,MAAM,CAAE,CAJH;EAK9BC,wBAAwB,EAAE,MAAM;AALF,CAAhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["withStyles","styles","AppSwitcherPanel","withTheme"],"sources":["../../../src/AppSwitcherPanel/index.js"],"sourcesContent":["import withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\nimport AppSwitcherPanel from \"./AppSwitcherPanel\";\n\nexport default withStyles(styles, { withTheme: true })(AppSwitcherPanel);\n"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,qCAAvB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,gBAAP,MAA6B,oBAA7B;AAEA,eAAeF,UAAU,CAACC,MAAD,EAAS;EAAEE,SAAS,EAAE;AAAb,CAAT,CAAV,CAAwCD,gBAAxC,CAAf"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
7
|
+
const styles = theme => ({
|
|
8
|
+
root: {
|
|
9
|
+
display: "none",
|
|
10
|
+
width: "320px",
|
|
11
|
+
backgroundColor: theme.hv.palette.atmosphere.atmo1,
|
|
12
|
+
boxShadow: `0 2px 12px rgba(65, 65, 65, 0.12)` // rgb color corresponds to #414141;
|
|
13
|
+
|
|
14
|
+
},
|
|
15
|
+
open: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
zIndex: "1200",
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
position: "absolute",
|
|
20
|
+
top: "50px",
|
|
21
|
+
overflowX: "hidden"
|
|
22
|
+
},
|
|
23
|
+
headerContainer: _objectSpread(_objectSpread({}, theme.hv.typography.highlightText), {}, {
|
|
24
|
+
display: "flex",
|
|
25
|
+
justifyContent: "space-between",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
padding: `${theme.hv.spacing.sm}px`,
|
|
28
|
+
borderBottom: `3px solid ${theme.hv.palette.atmosphere.atmo2}`
|
|
29
|
+
}),
|
|
30
|
+
titleContainer: {
|
|
31
|
+
width: "100%",
|
|
32
|
+
display: "flex",
|
|
33
|
+
alignItems: "center"
|
|
34
|
+
},
|
|
35
|
+
title: {
|
|
36
|
+
overflow: "hidden",
|
|
37
|
+
whiteSpace: "nowrap",
|
|
38
|
+
textOverflow: "ellipsis"
|
|
39
|
+
},
|
|
40
|
+
actionsContainer: {
|
|
41
|
+
flex: 1,
|
|
42
|
+
padding: `${theme.hv.spacing.sm}px`,
|
|
43
|
+
overflowY: "auto"
|
|
44
|
+
},
|
|
45
|
+
footerContainer: _objectSpread(_objectSpread({}, theme.hv.typography.highlightText), {}, {
|
|
46
|
+
display: "flex",
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
height: "52px",
|
|
49
|
+
borderTop: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,
|
|
50
|
+
padding: `${theme.hv.spacing.xs}px ${theme.hv.spacing.sm}px`
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export default styles;
|
|
55
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","root","display","width","backgroundColor","hv","palette","atmosphere","atmo1","boxShadow","open","zIndex","flexDirection","position","top","overflowX","headerContainer","typography","highlightText","justifyContent","alignItems","padding","spacing","sm","borderBottom","atmo2","titleContainer","title","overflow","whiteSpace","textOverflow","actionsContainer","flex","overflowY","footerContainer","height","borderTop","xs"],"sources":["../../../src/AppSwitcherPanel/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n display: \"none\",\n width: \"320px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n boxShadow: `0 2px 12px rgba(65, 65, 65, 0.12)`, // rgb color corresponds to #414141;\n },\n open: {\n display: \"flex\",\n zIndex: \"1200\",\n flexDirection: \"column\",\n position: \"absolute\",\n top: \"50px\",\n overflowX: \"hidden\",\n },\n\n headerContainer: {\n ...theme.hv.typography.highlightText,\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n padding: `${theme.hv.spacing.sm}px`,\n borderBottom: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,\n },\n titleContainer: {\n width: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n },\n title: {\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n },\n\n actionsContainer: {\n flex: 1,\n padding: `${theme.hv.spacing.sm}px`,\n overflowY: \"auto\",\n },\n\n footerContainer: {\n ...theme.hv.typography.highlightText,\n display: \"flex\",\n alignItems: \"center\",\n height: \"52px\",\n borderTop: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,\n padding: `${theme.hv.spacing.xs}px ${theme.hv.spacing.sm}px`,\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;AAAA,MAAMA,MAAM,GAAIC,KAAD,KAAY;EACzBC,IAAI,EAAE;IACJC,OAAO,EAAE,MADL;IAEJC,KAAK,EAAE,OAFH;IAGJC,eAAe,EAAEJ,KAAK,CAACK,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC,KAHzC;IAIJC,SAAS,EAAG,mCAJR,CAI4C;;EAJ5C,CADmB;EAOzBC,IAAI,EAAE;IACJR,OAAO,EAAE,MADL;IAEJS,MAAM,EAAE,MAFJ;IAGJC,aAAa,EAAE,QAHX;IAIJC,QAAQ,EAAE,UAJN;IAKJC,GAAG,EAAE,MALD;IAMJC,SAAS,EAAE;EANP,CAPmB;EAgBzBC,eAAe,kCACVhB,KAAK,CAACK,EAAN,CAASY,UAAT,CAAoBC,aADV;IAEbhB,OAAO,EAAE,MAFI;IAGbiB,cAAc,EAAE,eAHH;IAIbC,UAAU,EAAE,QAJC;IAKbC,OAAO,EAAG,GAAErB,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBC,EAAG,IALnB;IAMbC,YAAY,EAAG,aAAYxB,KAAK,CAACK,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BkB,KAAM;EANhD,EAhBU;EAwBzBC,cAAc,EAAE;IACdvB,KAAK,EAAE,MADO;IAEdD,OAAO,EAAE,MAFK;IAGdkB,UAAU,EAAE;EAHE,CAxBS;EA6BzBO,KAAK,EAAE;IACLC,QAAQ,EAAE,QADL;IAELC,UAAU,EAAE,QAFP;IAGLC,YAAY,EAAE;EAHT,CA7BkB;EAmCzBC,gBAAgB,EAAE;IAChBC,IAAI,EAAE,CADU;IAEhBX,OAAO,EAAG,GAAErB,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBC,EAAG,IAFhB;IAGhBU,SAAS,EAAE;EAHK,CAnCO;EAyCzBC,eAAe,kCACVlC,KAAK,CAACK,EAAN,CAASY,UAAT,CAAoBC,aADV;IAEbhB,OAAO,EAAE,MAFI;IAGbkB,UAAU,EAAE,QAHC;IAIbe,MAAM,EAAE,MAJK;IAKbC,SAAS,EAAG,aAAYpC,KAAK,CAACK,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BkB,KAAM,EAL7C;IAMbJ,OAAO,EAAG,GAAErB,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBe,EAAG,MAAKrC,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBC,EAAG;EAN5C;AAzCU,CAAZ,CAAf;;AAmDA,eAAexB,MAAf"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MonacoEditorProps } from "react-monaco-editor";
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
|
+
import { editor } from "monaco-editor";
|
|
4
|
+
|
|
5
|
+
export type HvCodeEditorProps = {
|
|
6
|
+
editorProps: MonacoEditorProps;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
onChange?(value: string): void;
|
|
9
|
+
options?: editor.IEditorConstructionOptions;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type HvCodeEditorClassKey = "root";
|
|
13
|
+
|
|
14
|
+
export default function HvCodeEditor(props: HvCodeEditorProps): JSX.Element | null;
|