@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
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2019 Hitachi Vantara Corporation
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @hitachivantara/uikit-react-lab
|
|
2
|
+
|
|
3
|
+
This package hosts the contributed components that are not yet ready to move to core.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install the package in your project directory with:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @hitachivantara/uikit-react-lab
|
|
11
|
+
```
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
|
|
4
|
+
export interface HvAppSwitcherPanelActionApplication {
|
|
5
|
+
/**
|
|
6
|
+
* Id of the application.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the application, this is the value that will be displayed on the component.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* URL with the icon location to be used to represent the application.
|
|
15
|
+
* iconUrl will only be used if no iconElement is provided.
|
|
16
|
+
*/
|
|
17
|
+
iconUrl?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Element to be added as the icon representing the application.
|
|
20
|
+
* The iconElement will be the primary option to be displayed.
|
|
21
|
+
*/
|
|
22
|
+
iconElement?: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Small description of the application.
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* URL where the application is accesible.
|
|
29
|
+
*/
|
|
30
|
+
url: string;
|
|
31
|
+
/**
|
|
32
|
+
* Defines if the application should be opened in the same tab or in a new one.
|
|
33
|
+
*/
|
|
34
|
+
target?: "_top" | "_blank";
|
|
35
|
+
/**
|
|
36
|
+
* True when the application is selected, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
isSelected?: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type HvAppSwitcherPanelActionClassKey =
|
|
42
|
+
| "iconUrl"
|
|
43
|
+
| "dummyImage"
|
|
44
|
+
| "link"
|
|
45
|
+
| "typography"
|
|
46
|
+
| "selected"
|
|
47
|
+
| "iconInfo";
|
|
48
|
+
|
|
49
|
+
export interface HvAppSwitcherPanelActionProps
|
|
50
|
+
extends StandardProps<React.HTMLAttributes<HTMLElement>, HvAppSwitcherPanelActionClassKey> {
|
|
51
|
+
/**
|
|
52
|
+
* The application data to be used to render the Action object.
|
|
53
|
+
*/
|
|
54
|
+
application: HvAppSwitcherPanelActionApplication;
|
|
55
|
+
/**
|
|
56
|
+
* Callback triggered when the action is clicked.
|
|
57
|
+
*/
|
|
58
|
+
onClickCallback?: (event: MouseEvent, application?: HvAppSwitcherPanelActionApplication) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
61
|
+
*/
|
|
62
|
+
isSelectedCallback?: (application?: HvAppSwitcherPanelActionApplication) => boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export default function HvAppSwitcherPanelAction(
|
|
66
|
+
props: HvAppSwitcherPanelActionProps
|
|
67
|
+
): JSX.Element | null;
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.to-string.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.object.keys.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.array.filter.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.array.iterator.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.string.iterator.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.weak-map.js");
|
|
22
|
+
|
|
23
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
24
|
+
|
|
25
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
26
|
+
|
|
27
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
28
|
+
|
|
29
|
+
Object.defineProperty(exports, "__esModule", {
|
|
30
|
+
value: true
|
|
31
|
+
});
|
|
32
|
+
exports.default = void 0;
|
|
33
|
+
|
|
34
|
+
require("core-js/modules/es.array.concat.js");
|
|
35
|
+
|
|
36
|
+
require("core-js/modules/es.function.name.js");
|
|
37
|
+
|
|
38
|
+
require("core-js/modules/es.symbol.js");
|
|
39
|
+
|
|
40
|
+
require("core-js/modules/es.symbol.description.js");
|
|
41
|
+
|
|
42
|
+
require("core-js/modules/es.string.link.js");
|
|
43
|
+
|
|
44
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
45
|
+
|
|
46
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
47
|
+
|
|
48
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
49
|
+
|
|
50
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
51
|
+
|
|
52
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
53
|
+
|
|
54
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
55
|
+
|
|
56
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
57
|
+
|
|
58
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
59
|
+
|
|
60
|
+
var _uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
61
|
+
|
|
62
|
+
var _uikitReactIcons = require("@hitachivantara/uikit-react-icons");
|
|
63
|
+
|
|
64
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
65
|
+
|
|
66
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
67
|
+
|
|
68
|
+
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; }
|
|
69
|
+
|
|
70
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
71
|
+
|
|
72
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
73
|
+
|
|
74
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
75
|
+
|
|
76
|
+
var Action = /*#__PURE__*/function (_Component) {
|
|
77
|
+
(0, _inherits2.default)(Action, _Component);
|
|
78
|
+
|
|
79
|
+
var _super = _createSuper(Action);
|
|
80
|
+
|
|
81
|
+
function Action(props) {
|
|
82
|
+
var _this;
|
|
83
|
+
|
|
84
|
+
(0, _classCallCheck2.default)(this, Action);
|
|
85
|
+
_this = _super.call(this, props);
|
|
86
|
+
_this.state = {
|
|
87
|
+
validIconUrl: true
|
|
88
|
+
};
|
|
89
|
+
return _this;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
(0, _createClass2.default)(Action, [{
|
|
93
|
+
key: "render",
|
|
94
|
+
value: function render() {
|
|
95
|
+
var _this2 = this;
|
|
96
|
+
|
|
97
|
+
var _this$props = this.props,
|
|
98
|
+
classes = _this$props.classes,
|
|
99
|
+
application = _this$props.application,
|
|
100
|
+
isSelectedCallback = _this$props.isSelectedCallback;
|
|
101
|
+
|
|
102
|
+
var renderApplicationIcon = function renderApplicationIcon() {
|
|
103
|
+
if (application.iconElement) {
|
|
104
|
+
return application.iconElement;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
var validIconUrl = _this2.state.validIconUrl;
|
|
108
|
+
|
|
109
|
+
if (application.iconUrl && validIconUrl) {
|
|
110
|
+
return (
|
|
111
|
+
/*#__PURE__*/
|
|
112
|
+
// eslint-disable-next-line jsx-a11y/alt-text
|
|
113
|
+
_react.default.createElement("img", {
|
|
114
|
+
className: classes.iconUrl,
|
|
115
|
+
src: application.iconUrl,
|
|
116
|
+
onError: function onError(element) {
|
|
117
|
+
// eslint-disable-next-line no-param-reassign
|
|
118
|
+
element.target.style.display = "none";
|
|
119
|
+
|
|
120
|
+
_this2.setState({
|
|
121
|
+
validIconUrl: false
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
129
|
+
className: classes.dummyImage
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
var isSelected = isSelectedCallback(application);
|
|
134
|
+
/**
|
|
135
|
+
* Handles the onClick event and triggers the appropriate callback if it exists.
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
var handleOnClick = function handleOnClick(event) {
|
|
139
|
+
var onClickCallback = _this2.props.onClickCallback;
|
|
140
|
+
|
|
141
|
+
if (onClickCallback) {
|
|
142
|
+
onClickCallback(event, _objectSpread(_objectSpread({}, application), {}, {
|
|
143
|
+
isSelected: isSelected
|
|
144
|
+
}));
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
var renderElement = function renderElement() {
|
|
149
|
+
return /*#__PURE__*/_react.default.createElement(_uikitReactCore.HvTypography, {
|
|
150
|
+
component: "div",
|
|
151
|
+
variant: isSelected ? "selectedText" : "normalText",
|
|
152
|
+
role: "button",
|
|
153
|
+
className: "".concat(classes.typography, " ").concat(isSelected ? classes.selected : ""),
|
|
154
|
+
tabIndex: 0,
|
|
155
|
+
onClick: handleOnClick
|
|
156
|
+
}, renderApplicationIcon(), /*#__PURE__*/_react.default.createElement("span", {
|
|
157
|
+
title: application.name
|
|
158
|
+
}, application.name), application.description && /*#__PURE__*/_react.default.createElement(_uikitReactIcons.Info, {
|
|
159
|
+
className: classes.iconInfo,
|
|
160
|
+
title: application.description
|
|
161
|
+
}));
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
var renderElementWithLink = function renderElementWithLink() {
|
|
165
|
+
return /*#__PURE__*/_react.default.createElement("a", {
|
|
166
|
+
href: application.url,
|
|
167
|
+
target: application.target || "_top",
|
|
168
|
+
className: classes.link
|
|
169
|
+
}, renderElement());
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
return isSelected ? renderElement() : renderElementWithLink();
|
|
173
|
+
}
|
|
174
|
+
}]);
|
|
175
|
+
return Action;
|
|
176
|
+
}(_react.Component);
|
|
177
|
+
|
|
178
|
+
exports.default = Action;
|
|
179
|
+
process.env.NODE_ENV !== "production" ? Action.propTypes = {
|
|
180
|
+
/**
|
|
181
|
+
* The application data to be used to render the Action object.
|
|
182
|
+
*/
|
|
183
|
+
application: _propTypes.default.shape({
|
|
184
|
+
/**
|
|
185
|
+
* Id of the application.
|
|
186
|
+
*/
|
|
187
|
+
id: _propTypes.default.string.isRequired,
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Name of the application, this is the value that will be displayed on the component.
|
|
191
|
+
*/
|
|
192
|
+
name: _propTypes.default.string.isRequired,
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* URL with the icon location to be used to represent the application.
|
|
196
|
+
* iconUrl will only be used if no iconElement is provided.
|
|
197
|
+
*/
|
|
198
|
+
iconUrl: _propTypes.default.string,
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Element to be added as the icon representing the application.
|
|
202
|
+
* The iconElement will be the primary option to be displayed.
|
|
203
|
+
*/
|
|
204
|
+
iconElement: _propTypes.default.element,
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Small description of the application.
|
|
208
|
+
*/
|
|
209
|
+
description: _propTypes.default.string,
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* URL where the application is accesible.
|
|
213
|
+
*/
|
|
214
|
+
url: _propTypes.default.string.isRequired,
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Defines if the application should be opened in the same tab or in a new one.
|
|
218
|
+
*/
|
|
219
|
+
target: _propTypes.default.oneOf(["_top", "_blank"]),
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* True when the application is selected, false otherwise.
|
|
223
|
+
*/
|
|
224
|
+
isSelected: _propTypes.default.bool
|
|
225
|
+
}).isRequired,
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* A Jss object used to override or extend the component styles.
|
|
229
|
+
*/
|
|
230
|
+
classes: _propTypes.default.shape({
|
|
231
|
+
iconUrl: _propTypes.default.string,
|
|
232
|
+
dummyImage: _propTypes.default.string,
|
|
233
|
+
link: _propTypes.default.string,
|
|
234
|
+
typography: _propTypes.default.string,
|
|
235
|
+
selected: _propTypes.default.string,
|
|
236
|
+
iconInfo: _propTypes.default.string
|
|
237
|
+
}).isRequired,
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Callback triggered when the action is clicked.
|
|
241
|
+
*/
|
|
242
|
+
onClickCallback: _propTypes.default.func,
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
246
|
+
*/
|
|
247
|
+
isSelectedCallback: _propTypes.default.func
|
|
248
|
+
} : void 0;
|
|
249
|
+
Action.defaultProps = {
|
|
250
|
+
onClickCallback: function onClickCallback() {},
|
|
251
|
+
isSelectedCallback: function isSelectedCallback() {
|
|
252
|
+
return false;
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
//# sourceMappingURL=Action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.js","names":["Action","props","state","validIconUrl","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","Component","propTypes","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":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _withStyles = _interopRequireDefault(require("@material-ui/core/styles/withStyles"));
|
|
11
|
+
|
|
12
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
|
+
|
|
14
|
+
var _Action = _interopRequireDefault(require("./Action"));
|
|
15
|
+
|
|
16
|
+
var _default = (0, _withStyles.default)(_styles.default, {
|
|
17
|
+
withTheme: true
|
|
18
|
+
})(_Action.default);
|
|
19
|
+
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["withStyles","styles","withTheme","Action"],"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;;AACA;;AACA;;eAEe,IAAAA,mBAAA,EAAWC,eAAX,EAAmB;EAAEC,SAAS,EAAE;AAAb,CAAnB,EAAwCC,eAAxC,C"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var selected = function selected(theme) {
|
|
9
|
+
return {
|
|
10
|
+
background: theme.hv.palette.accent.acce1,
|
|
11
|
+
color: theme.hv.palette.atmosphere.atmo1,
|
|
12
|
+
cursor: "default",
|
|
13
|
+
"& *": {
|
|
14
|
+
background: theme.hv.palette.accent.acce1,
|
|
15
|
+
color: theme.hv.palette.atmosphere.atmo1,
|
|
16
|
+
cursor: "default"
|
|
17
|
+
},
|
|
18
|
+
"& svg *.color0": {
|
|
19
|
+
fill: theme.hv.palette.atmosphere.atmo1
|
|
20
|
+
},
|
|
21
|
+
// hover
|
|
22
|
+
"&:hover": {
|
|
23
|
+
background: theme.hv.palette.accent.acce1,
|
|
24
|
+
color: theme.hv.palette.atmosphere.atmo1,
|
|
25
|
+
"& *": {
|
|
26
|
+
background: theme.hv.palette.accent.acce1,
|
|
27
|
+
color: theme.hv.palette.atmosphere.atmo1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var hover = function hover(theme) {
|
|
34
|
+
return {
|
|
35
|
+
background: theme.hv.palette.atmosphere.atmo4,
|
|
36
|
+
"& *": {
|
|
37
|
+
background: theme.hv.palette.atmosphere.atmo4
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var styles = function styles(theme) {
|
|
43
|
+
return {
|
|
44
|
+
typography: {
|
|
45
|
+
display: "flex",
|
|
46
|
+
background: theme.hv.palette.atmosphere.atmo1,
|
|
47
|
+
width: "100%",
|
|
48
|
+
justifyContent: "flex-start",
|
|
49
|
+
alignItems: "center",
|
|
50
|
+
height: "32px",
|
|
51
|
+
color: theme.hv.palette.atmosphere.acce1,
|
|
52
|
+
marginBottom: "8px",
|
|
53
|
+
// hover
|
|
54
|
+
"&:hover": hover(theme),
|
|
55
|
+
// cursor
|
|
56
|
+
cursor: "pointer",
|
|
57
|
+
"& *": {
|
|
58
|
+
cursor: "pointer"
|
|
59
|
+
},
|
|
60
|
+
"& span": {
|
|
61
|
+
overflow: "hidden",
|
|
62
|
+
whiteSpace: "nowrap",
|
|
63
|
+
textOverflow: "ellipsis",
|
|
64
|
+
width: "calc(100% - 64px)" // The with of both icons, 32px each.
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
selected: selected(theme),
|
|
69
|
+
dummyImage: {
|
|
70
|
+
width: "8px"
|
|
71
|
+
},
|
|
72
|
+
link: {
|
|
73
|
+
color: "inherit",
|
|
74
|
+
textDecoration: "inherit"
|
|
75
|
+
},
|
|
76
|
+
iconInfo: {
|
|
77
|
+
width: "32px",
|
|
78
|
+
height: "32px",
|
|
79
|
+
marginLeft: "auto"
|
|
80
|
+
},
|
|
81
|
+
iconUrl: {
|
|
82
|
+
width: "16px",
|
|
83
|
+
height: "16px",
|
|
84
|
+
margin: "8px"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
var _default = styles;
|
|
90
|
+
exports.default = _default;
|
|
91
|
+
//# sourceMappingURL=styles.js.map
|