@rio-cloud/rio-uikit 0.15.0-beta-46 → 0.15.0

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.
Files changed (184) hide show
  1. package/README.md +197 -192
  2. package/lib/components/actionBarItem/ActionBarItem.js +9 -0
  3. package/lib/components/actionBarItem/ActionBarItemList.js +38 -0
  4. package/lib/components/actionBarItem/ActionBarItemListItem.js +51 -0
  5. package/lib/components/actionBarItem/ActionBarItemListSeparator.js +37 -0
  6. package/lib/components/actionBarItem/ActionBarOverlay.js +2 -2
  7. package/lib/components/animatedNumber/AnimatedNumber.js +81 -0
  8. package/lib/components/applicationHeader/ApplicationHeader.js +4 -1
  9. package/lib/components/applicationLayout/ApplicationLayoutBody.js +3 -1
  10. package/lib/components/assetTree/AssetTree.less +3 -2
  11. package/lib/components/assetTree/Tree.js +3 -3
  12. package/lib/components/autosuggest/AutoSuggest.js +5 -3
  13. package/lib/components/bottomSheet/BottomSheet.js +157 -0
  14. package/lib/components/browserWarning/BrowserWarningMessageDE.js +1 -1
  15. package/lib/components/browserWarning/BrowserWarningMessageEN.js +1 -1
  16. package/lib/components/button/Button.js +127 -7
  17. package/lib/components/button/ToggleButton.js +11 -108
  18. package/lib/components/charts/BarChart.js +4 -3
  19. package/lib/components/charts/ChartNeedle.js +2 -2
  20. package/lib/components/charts/PieChart.js +11 -6
  21. package/lib/components/charts/RadialBarChart.js +4 -1
  22. package/lib/components/charts/chartHelper.js +3 -3
  23. package/lib/components/checkbox/Checkbox.js +127 -171
  24. package/lib/components/checkbox/Checkbox.less +4 -2
  25. package/lib/components/clearableInput/ClearableInput.js +2 -2
  26. package/lib/components/clearableInput/ClearableInput.less +2 -1
  27. package/lib/components/dataTabs/DataTabs.js +78 -120
  28. package/lib/components/datepicker/DatePicker.js +41 -72
  29. package/lib/components/datepicker/DatePicker.less +35 -5
  30. package/lib/components/datepicker/DateRangePicker.js +3 -3
  31. package/lib/components/dialog/Dialog.js +2 -2
  32. package/lib/components/dialog/InfoDialog.js +2 -2
  33. package/lib/components/dialog/MediaDialog.js +2 -2
  34. package/lib/components/dialog/SaveDialog.js +2 -2
  35. package/lib/components/dialog/SimpleDialog.js +2 -2
  36. package/lib/components/dialog/SplitDialog.js +2 -2
  37. package/lib/components/driverName/DriverName.js +1 -1
  38. package/lib/components/dropdown/ButtonDropdown.js +2 -2
  39. package/lib/components/dropdown/DropdownSubmenu.less +2 -2
  40. package/lib/components/fade/Fade.js +2 -2
  41. package/lib/components/filepicker/FilePicker.js +2 -2
  42. package/lib/components/listMenu/ListMenu.js +2 -2
  43. package/lib/components/loadMore/LoadMoreButton.js +1 -1
  44. package/lib/components/map/components/Map.js +2 -2
  45. package/lib/components/map/components/constants.js +1 -1
  46. package/lib/components/map/components/features/Route.js +2 -2
  47. package/lib/components/map/components/features/basics/MapLayerGroup.js +2 -2
  48. package/lib/components/map/components/features/basics/marker/Marker.js +2 -1
  49. package/lib/components/map/components/features/basics/marker/TextMarker.js +1 -1
  50. package/lib/components/map/components/features/layers/MarkerLayer.js +2 -2
  51. package/lib/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -2
  52. package/lib/components/map/utils/eventHandling.js +5 -4
  53. package/lib/components/map/utils/hooks.js +1 -1
  54. package/lib/components/map/utils/validation.js +1 -1
  55. package/lib/components/numberControl/NumberControl.js +165 -145
  56. package/lib/components/numberInput/NumberInput.js +152 -233
  57. package/lib/components/onboarding/OnboardingTip.js +1 -1
  58. package/lib/components/overlay/OverlayTrigger.js +2 -1
  59. package/lib/components/radiobutton/RadioButton.js +116 -148
  60. package/lib/components/radiobutton/RadioButton.less +10 -6
  61. package/lib/components/resizer/Resizer.less +2 -2
  62. package/lib/components/selects/BaseDropdownMenu.js +2 -2
  63. package/lib/components/selects/DropdownHeader.js +2 -6
  64. package/lib/components/spinner/Spinner.js +1 -1
  65. package/lib/components/spinner/Spinner.less +2 -2
  66. package/lib/components/states/MaintenanceState.js +25 -0
  67. package/lib/components/states/baseStatePropTypes.js +1 -1
  68. package/lib/components/supportMarker/toggleSupportMarker.js +1 -1
  69. package/lib/components/table/SortArrows.js +1 -1
  70. package/lib/components/table/TableCardsSorting.js +7 -7
  71. package/lib/components/table/TableSettingsDialog.js +2 -2
  72. package/lib/components/table/TableSettingsListItem.js +1 -1
  73. package/lib/components/teaser/Teaser.js +1 -1
  74. package/lib/components/timepicker/TimePicker.js +10 -2
  75. package/lib/components/tooltip/Tooltip.js +4 -4
  76. package/lib/components/tooltip/Tooltip.less +0 -10
  77. package/lib/es/ActionBarItem.d.ts +6 -0
  78. package/lib/es/ActionBarItemList.d.ts +5 -0
  79. package/lib/es/ActionBarItemList.js +15 -0
  80. package/lib/es/ActionBarItemListItem.d.ts +5 -0
  81. package/lib/es/ActionBarItemListItem.js +15 -0
  82. package/lib/es/ActionBarItemListSeparator.d.ts +5 -0
  83. package/lib/es/ActionBarItemListSeparator.js +15 -0
  84. package/lib/es/AnimatedNumber.d.ts +5 -0
  85. package/lib/es/AnimatedNumber.js +15 -0
  86. package/lib/es/BottomSheet.d.ts +5 -0
  87. package/lib/es/BottomSheet.js +15 -0
  88. package/lib/es/DeviceUtils.d.ts +5 -0
  89. package/lib/es/MaintenanceState.d.ts +5 -0
  90. package/lib/es/MaintenanceState.js +15 -0
  91. package/lib/es/SortDirection.d.ts +6 -0
  92. package/lib/es/SortDirection.js +13 -0
  93. package/lib/es/SortUtils.d.ts +6 -0
  94. package/lib/es/SortUtils.js +19 -0
  95. package/lib/es/SupportMarker.js +15 -0
  96. package/lib/es/deviceUtils.js +14 -2
  97. package/lib/es/routeUtils.js +6 -6
  98. package/lib/es/useAfterMount.d.ts +4 -0
  99. package/lib/es/useAfterMount.js +15 -0
  100. package/lib/es/useClickOutside.d.ts +4 -0
  101. package/lib/es/useClickOutside.js +15 -0
  102. package/lib/es/useClipboard.d.ts +4 -0
  103. package/lib/es/useClipboard.js +15 -0
  104. package/lib/es/useDebugInfo.d.ts +4 -0
  105. package/lib/es/useDebugInfo.js +15 -0
  106. package/lib/es/useEffectOnce.d.ts +4 -0
  107. package/lib/es/useEffectOnce.js +15 -0
  108. package/lib/es/useElementSize.d.ts +4 -0
  109. package/lib/es/useElementSize.js +15 -0
  110. package/lib/es/useEsc.d.ts +4 -0
  111. package/lib/es/useEsc.js +15 -0
  112. package/lib/es/useEvent.d.ts +4 -0
  113. package/lib/es/useEvent.js +15 -0
  114. package/lib/es/useInterval.d.ts +4 -0
  115. package/lib/es/useInterval.js +15 -0
  116. package/lib/es/useKey.d.ts +4 -0
  117. package/lib/es/useKey.js +15 -0
  118. package/lib/es/useLocalStorage.d.ts +4 -0
  119. package/lib/es/useLocalStorage.js +13 -0
  120. package/lib/es/useOnMount.js +15 -0
  121. package/lib/es/useOnScreen.d.ts +4 -0
  122. package/lib/es/useOnScreen.js +15 -0
  123. package/lib/es/useOnlineStatus.d.ts +4 -0
  124. package/lib/es/useOnlineStatus.js +15 -0
  125. package/lib/es/useRenderCount.d.ts +4 -0
  126. package/lib/es/useRenderCount.js +15 -0
  127. package/lib/es/useSessionStorage.d.ts +4 -0
  128. package/lib/es/useSessionStorage.js +13 -0
  129. package/lib/es/useStateWithValidation.d.ts +4 -0
  130. package/lib/es/useStateWithValidation.js +15 -0
  131. package/lib/es/useTimeout.d.ts +4 -0
  132. package/lib/es/useTimeout.js +15 -0
  133. package/lib/es/useWindowResize.d.ts +4 -0
  134. package/lib/es/useWindowResize.js +15 -0
  135. package/lib/hooks/useDebugInfo.js +55 -0
  136. package/lib/hooks/useInterval.js +30 -0
  137. package/lib/hooks/useOnScreen.js +46 -0
  138. package/lib/hooks/useOnlineStatus.js +30 -0
  139. package/lib/hooks/useRenderCount.js +17 -0
  140. package/lib/hooks/useStateWithValidation.js +33 -0
  141. package/lib/hooks/useStorage.js +53 -0
  142. package/lib/hooks/useTimeout.js +9 -6
  143. package/lib/index.js +274 -266
  144. package/lib/mapIndex.js +72 -72
  145. package/lib/style/css/_exports/man-uikit.less +1 -0
  146. package/lib/style/css/_exports/rio-buyButton.less +5 -0
  147. package/lib/style/css/_exports/rio-uikit-core.less +2 -2
  148. package/lib/style/css/_exports/rio-uikit-print-utilities.less +21 -0
  149. package/lib/style/css/_exports/rio-uikit-responsive-utilities.less +2 -1
  150. package/lib/style/css/_exports/rio-uikit.less +1 -0
  151. package/lib/style/css/_exports/rio-website.less +131 -0
  152. package/lib/style/css/_exports/vw-uikit.less +2 -1
  153. package/lib/style/css/bootstrap/badges.less +0 -12
  154. package/lib/style/css/bootstrap/dropdowns.less +13 -13
  155. package/lib/style/css/bootstrap/type.less +11 -4
  156. package/lib/style/css/rio-theme/badges.less +48 -1
  157. package/lib/style/css/rio-theme/button-groups.less +1 -1
  158. package/lib/style/css/rio-theme/buttons.less +58 -16
  159. package/lib/style/css/rio-theme/carousel.less +1 -1
  160. package/lib/style/css/rio-theme/dropdowns.less +6 -26
  161. package/lib/style/css/rio-theme/navbar.less +46 -3
  162. package/lib/style/css/rio-theme/navs.less +19 -0
  163. package/lib/style/css/rio-theme/pagination.less +1 -1
  164. package/lib/style/css/utils/_imports.less +82 -0
  165. package/lib/style/css/utils/animations/translate.less +4 -1
  166. package/lib/style/css/utils/responsive/border.less +27 -19
  167. package/lib/style/css/utils/responsive/display.less +2 -0
  168. package/lib/style/css/utils/responsive/grid.less +6 -0
  169. package/lib/style/css/utils/responsive/sizing.less +1 -1
  170. package/lib/style/css/utils/text.less +3 -0
  171. package/lib/style/fonts/rioglyph/rioglyph.less +74 -14
  172. package/lib/style/fonts/rioglyph/rioglyph.svg +106 -34
  173. package/lib/style/fonts/rioglyph/rioglyph.ttf +0 -0
  174. package/lib/style/fonts/rioglyph/rioglyph.woff +0 -0
  175. package/lib/types.ts +139 -22
  176. package/lib/utils/SortUtils.js +54 -0
  177. package/lib/utils/buttonEffect.js +68 -0
  178. package/lib/utils/deviceUtils.js +1 -5
  179. package/lib/utils/logDeprecatedWarnings.js +1 -1
  180. package/lib/utils/logPropError.js +1 -1
  181. package/lib/utils/routeUtils.js +7 -6
  182. package/lib/utils/scrollItemIntoView.js +1 -1
  183. package/lib/version.json +1 -1
  184. package/package.json +73 -75
package/README.md CHANGED
@@ -1,203 +1,208 @@
1
1
  # RIO UIKIT
2
2
 
3
- ## Run
3
+ ## Documentation
4
4
 
5
- ```bash
6
- $ npm install && cd uikit-demo/ && npm i && npm start
7
- ```
8
- The UIKIT is accessable at http://localhost:8090.
5
+ The documentation and how to integrate the UIKIT in your project can be found here: https://uikit.developers.rio.cloud/
9
6
 
10
7
  ## Release
11
-
12
- The demo site will be available under https://uikit.developers.rio.cloud/. Starting with version 0.12.8, all
13
- versions of the uikit will be available under https://uikit.developers.rio.cloud/${VERSION}.
8
+
9
+ Starting with version 0.12.8, all versions of the uikit will be available under https://uikit.developers.rio.cloud/${VERSION}.
14
10
 
15
11
  Changes made without incrementing the version number will not be published under the new version number, but the latest
16
12
  "in development" state will be available under https://uikit.developers.rio.cloud/latest
17
13
 
14
+ ## Development
15
+
16
+ To run the UIKIT and the UIKIT Demo locally for development, use:
17
+
18
+ ```bash
19
+ $ npm install && cd uikit-demo/ && npm i && npm start
20
+ ```
21
+
22
+ The UIKIT demo is accessable at http://localhost:8090.
23
+
18
24
  ## License
19
25
 
20
26
  RIO UIKIT is licensed under the Apache 2.0 license.
21
27
 
22
-
23
28
  Apache License
24
29
  Version 2.0, January 2004
25
30
  http://www.apache.org/licenses/
26
31
 
27
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
28
-
29
- 1. Definitions.
30
-
31
- "License" shall mean the terms and conditions for use, reproduction,
32
- and distribution as defined by Sections 1 through 9 of this document.
33
-
34
- "Licensor" shall mean the copyright owner or entity authorized by
35
- the copyright owner that is granting the License.
36
-
37
- "Legal Entity" shall mean the union of the acting entity and all
38
- other entities that control, are controlled by, or are under common
39
- control with that entity. For the purposes of this definition,
40
- "control" means (i) the power, direct or indirect, to cause the
41
- direction or management of such entity, whether by contract or
42
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
43
- outstanding shares, or (iii) beneficial ownership of such entity.
44
-
45
- "You" (or "Your") shall mean an individual or Legal Entity
46
- exercising permissions granted by this License.
47
-
48
- "Source" form shall mean the preferred form for making modifications,
49
- including but not limited to software source code, documentation
50
- source, and configuration files.
51
-
52
- "Object" form shall mean any form resulting from mechanical
53
- transformation or translation of a Source form, including but
54
- not limited to compiled object code, generated documentation,
55
- and conversions to other media types.
56
-
57
- "Work" shall mean the work of authorship, whether in Source or
58
- Object form, made available under the License, as indicated by a
59
- copyright notice that is included in or attached to the work
60
- (an example is provided in the Appendix below).
61
-
62
- "Derivative Works" shall mean any work, whether in Source or Object
63
- form, that is based on (or derived from) the Work and for which the
64
- editorial revisions, annotations, elaborations, or other modifications
65
- represent, as a whole, an original work of authorship. For the purposes
66
- of this License, Derivative Works shall not include works that remain
67
- separable from, or merely link (or bind by name) to the interfaces of,
68
- the Work and Derivative Works thereof.
69
-
70
- "Contribution" shall mean any work of authorship, including
71
- the original version of the Work and any modifications or additions
72
- to that Work or Derivative Works thereof, that is intentionally
73
- submitted to Licensor for inclusion in the Work by the copyright owner
74
- or by an individual or Legal Entity authorized to submit on behalf of
75
- the copyright owner. For the purposes of this definition, "submitted"
76
- means any form of electronic, verbal, or written communication sent
77
- to the Licensor or its representatives, including but not limited to
78
- communication on electronic mailing lists, source code control systems,
79
- and issue tracking systems that are managed by, or on behalf of, the
80
- Licensor for the purpose of discussing and improving the Work, but
81
- excluding communication that is conspicuously marked or otherwise
82
- designated in writing by the copyright owner as "Not a Contribution."
83
-
84
- "Contributor" shall mean Licensor and any individual or Legal Entity
85
- on behalf of whom a Contribution has been received by Licensor and
86
- subsequently incorporated within the Work.
87
-
88
- 2. Grant of Copyright License. Subject to the terms and conditions of
89
- this License, each Contributor hereby grants to You a perpetual,
90
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
91
- copyright license to reproduce, prepare Derivative Works of,
92
- publicly display, publicly perform, sublicense, and distribute the
93
- Work and such Derivative Works in Source or Object form.
94
-
95
- 3. Grant of Patent License. Subject to the terms and conditions of
96
- this License, each Contributor hereby grants to You a perpetual,
97
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
98
- (except as stated in this section) patent license to make, have made,
99
- use, offer to sell, sell, import, and otherwise transfer the Work,
100
- where such license applies only to those patent claims licensable
101
- by such Contributor that are necessarily infringed by their
102
- Contribution(s) alone or by combination of their Contribution(s)
103
- with the Work to which such Contribution(s) was submitted. If You
104
- institute patent litigation against any entity (including a
105
- cross-claim or counterclaim in a lawsuit) alleging that the Work
106
- or a Contribution incorporated within the Work constitutes direct
107
- or contributory patent infringement, then any patent licenses
108
- granted to You under this License for that Work shall terminate
109
- as of the date such litigation is filed.
110
-
111
- 4. Redistribution. You may reproduce and distribute copies of the
112
- Work or Derivative Works thereof in any medium, with or without
113
- modifications, and in Source or Object form, provided that You
114
- meet the following conditions:
115
-
116
- (a) You must give any other recipients of the Work or
117
- Derivative Works a copy of this License; and
118
-
119
- (b) You must cause any modified files to carry prominent notices
120
- stating that You changed the files; and
121
-
122
- (c) You must retain, in the Source form of any Derivative Works
123
- that You distribute, all copyright, patent, trademark, and
124
- attribution notices from the Source form of the Work,
125
- excluding those notices that do not pertain to any part of
126
- the Derivative Works; and
127
-
128
- (d) If the Work includes a "NOTICE" text file as part of its
129
- distribution, then any Derivative Works that You distribute must
130
- include a readable copy of the attribution notices contained
131
- within such NOTICE file, excluding those notices that do not
132
- pertain to any part of the Derivative Works, in at least one
133
- of the following places: within a NOTICE text file distributed
134
- as part of the Derivative Works; within the Source form or
135
- documentation, if provided along with the Derivative Works; or,
136
- within a display generated by the Derivative Works, if and
137
- wherever such third-party notices normally appear. The contents
138
- of the NOTICE file are for informational purposes only and
139
- do not modify the License. You may add Your own attribution
140
- notices within Derivative Works that You distribute, alongside
141
- or as an addendum to the NOTICE text from the Work, provided
142
- that such additional attribution notices cannot be construed
143
- as modifying the License.
144
-
145
- You may add Your own copyright statement to Your modifications and
146
- may provide additional or different license terms and conditions
147
- for use, reproduction, or distribution of Your modifications, or
148
- for any such Derivative Works as a whole, provided Your use,
149
- reproduction, and distribution of the Work otherwise complies with
150
- the conditions stated in this License.
151
-
152
- 5. Submission of Contributions. Unless You explicitly state otherwise,
153
- any Contribution intentionally submitted for inclusion in the Work
154
- by You to the Licensor shall be under the terms and conditions of
155
- this License, without any additional terms or conditions.
156
- Notwithstanding the above, nothing herein shall supersede or modify
157
- the terms of any separate license agreement you may have executed
158
- with Licensor regarding such Contributions.
159
-
160
- 6. Trademarks. This License does not grant permission to use the trade
161
- names, trademarks, service marks, or product names of the Licensor,
162
- except as required for reasonable and customary use in describing the
163
- origin of the Work and reproducing the content of the NOTICE file.
164
-
165
- 7. Disclaimer of Warranty. Unless required by applicable law or
166
- agreed to in writing, Licensor provides the Work (and each
167
- Contributor provides its Contributions) on an "AS IS" BASIS,
168
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
169
- implied, including, without limitation, any warranties or conditions
170
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
171
- PARTICULAR PURPOSE. You are solely responsible for determining the
172
- appropriateness of using or redistributing the Work and assume any
173
- risks associated with Your exercise of permissions under this License.
174
-
175
- 8. Limitation of Liability. In no event and under no legal theory,
176
- whether in tort (including negligence), contract, or otherwise,
177
- unless required by applicable law (such as deliberate and grossly
178
- negligent acts) or agreed to in writing, shall any Contributor be
179
- liable to You for damages, including any direct, indirect, special,
180
- incidental, or consequential damages of any character arising as a
181
- result of this License or out of the use or inability to use the
182
- Work (including but not limited to damages for loss of goodwill,
183
- work stoppage, computer failure or malfunction, or any and all
184
- other commercial damages or losses), even if such Contributor
185
- has been advised of the possibility of such damages.
186
-
187
- 9. Accepting Warranty or Additional Liability. While redistributing
188
- the Work or Derivative Works thereof, You may choose to offer,
189
- and charge a fee for, acceptance of support, warranty, indemnity,
190
- or other liability obligations and/or rights consistent with this
191
- License. However, in accepting such obligations, You may act only
192
- on Your own behalf and on Your sole responsibility, not on behalf
193
- of any other Contributor, and only if You agree to indemnify,
194
- defend, and hold each Contributor harmless for any liability
195
- incurred by, or claims asserted against, such Contributor by reason
196
- of your accepting any such warranty or additional liability.
197
-
198
- END OF TERMS AND CONDITIONS
199
-
200
- APPENDIX: How to apply the Apache License to your work.
32
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
33
+
34
+ 1. Definitions.
35
+
36
+ "License" shall mean the terms and conditions for use, reproduction,
37
+ and distribution as defined by Sections 1 through 9 of this document.
38
+
39
+ "Licensor" shall mean the copyright owner or entity authorized by
40
+ the copyright owner that is granting the License.
41
+
42
+ "Legal Entity" shall mean the union of the acting entity and all
43
+ other entities that control, are controlled by, or are under common
44
+ control with that entity. For the purposes of this definition,
45
+ "control" means (i) the power, direct or indirect, to cause the
46
+ direction or management of such entity, whether by contract or
47
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
48
+ outstanding shares, or (iii) beneficial ownership of such entity.
49
+
50
+ "You" (or "Your") shall mean an individual or Legal Entity
51
+ exercising permissions granted by this License.
52
+
53
+ "Source" form shall mean the preferred form for making modifications,
54
+ including but not limited to software source code, documentation
55
+ source, and configuration files.
56
+
57
+ "Object" form shall mean any form resulting from mechanical
58
+ transformation or translation of a Source form, including but
59
+ not limited to compiled object code, generated documentation,
60
+ and conversions to other media types.
61
+
62
+ "Work" shall mean the work of authorship, whether in Source or
63
+ Object form, made available under the License, as indicated by a
64
+ copyright notice that is included in or attached to the work
65
+ (an example is provided in the Appendix below).
66
+
67
+ "Derivative Works" shall mean any work, whether in Source or Object
68
+ form, that is based on (or derived from) the Work and for which the
69
+ editorial revisions, annotations, elaborations, or other modifications
70
+ represent, as a whole, an original work of authorship. For the purposes
71
+ of this License, Derivative Works shall not include works that remain
72
+ separable from, or merely link (or bind by name) to the interfaces of,
73
+ the Work and Derivative Works thereof.
74
+
75
+ "Contribution" shall mean any work of authorship, including
76
+ the original version of the Work and any modifications or additions
77
+ to that Work or Derivative Works thereof, that is intentionally
78
+ submitted to Licensor for inclusion in the Work by the copyright owner
79
+ or by an individual or Legal Entity authorized to submit on behalf of
80
+ the copyright owner. For the purposes of this definition, "submitted"
81
+ means any form of electronic, verbal, or written communication sent
82
+ to the Licensor or its representatives, including but not limited to
83
+ communication on electronic mailing lists, source code control systems,
84
+ and issue tracking systems that are managed by, or on behalf of, the
85
+ Licensor for the purpose of discussing and improving the Work, but
86
+ excluding communication that is conspicuously marked or otherwise
87
+ designated in writing by the copyright owner as "Not a Contribution."
88
+
89
+ "Contributor" shall mean Licensor and any individual or Legal Entity
90
+ on behalf of whom a Contribution has been received by Licensor and
91
+ subsequently incorporated within the Work.
92
+
93
+ 2. Grant of Copyright License. Subject to the terms and conditions of
94
+ this License, each Contributor hereby grants to You a perpetual,
95
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
96
+ copyright license to reproduce, prepare Derivative Works of,
97
+ publicly display, publicly perform, sublicense, and distribute the
98
+ Work and such Derivative Works in Source or Object form.
99
+
100
+ 3. Grant of Patent License. Subject to the terms and conditions of
101
+ this License, each Contributor hereby grants to You a perpetual,
102
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
103
+ (except as stated in this section) patent license to make, have made,
104
+ use, offer to sell, sell, import, and otherwise transfer the Work,
105
+ where such license applies only to those patent claims licensable
106
+ by such Contributor that are necessarily infringed by their
107
+ Contribution(s) alone or by combination of their Contribution(s)
108
+ with the Work to which such Contribution(s) was submitted. If You
109
+ institute patent litigation against any entity (including a
110
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
111
+ or a Contribution incorporated within the Work constitutes direct
112
+ or contributory patent infringement, then any patent licenses
113
+ granted to You under this License for that Work shall terminate
114
+ as of the date such litigation is filed.
115
+
116
+ 4. Redistribution. You may reproduce and distribute copies of the
117
+ Work or Derivative Works thereof in any medium, with or without
118
+ modifications, and in Source or Object form, provided that You
119
+ meet the following conditions:
120
+
121
+ (a) You must give any other recipients of the Work or
122
+ Derivative Works a copy of this License; and
123
+
124
+ (b) You must cause any modified files to carry prominent notices
125
+ stating that You changed the files; and
126
+
127
+ (c) You must retain, in the Source form of any Derivative Works
128
+ that You distribute, all copyright, patent, trademark, and
129
+ attribution notices from the Source form of the Work,
130
+ excluding those notices that do not pertain to any part of
131
+ the Derivative Works; and
132
+
133
+ (d) If the Work includes a "NOTICE" text file as part of its
134
+ distribution, then any Derivative Works that You distribute must
135
+ include a readable copy of the attribution notices contained
136
+ within such NOTICE file, excluding those notices that do not
137
+ pertain to any part of the Derivative Works, in at least one
138
+ of the following places: within a NOTICE text file distributed
139
+ as part of the Derivative Works; within the Source form or
140
+ documentation, if provided along with the Derivative Works; or,
141
+ within a display generated by the Derivative Works, if and
142
+ wherever such third-party notices normally appear. The contents
143
+ of the NOTICE file are for informational purposes only and
144
+ do not modify the License. You may add Your own attribution
145
+ notices within Derivative Works that You distribute, alongside
146
+ or as an addendum to the NOTICE text from the Work, provided
147
+ that such additional attribution notices cannot be construed
148
+ as modifying the License.
149
+
150
+ You may add Your own copyright statement to Your modifications and
151
+ may provide additional or different license terms and conditions
152
+ for use, reproduction, or distribution of Your modifications, or
153
+ for any such Derivative Works as a whole, provided Your use,
154
+ reproduction, and distribution of the Work otherwise complies with
155
+ the conditions stated in this License.
156
+
157
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
158
+ any Contribution intentionally submitted for inclusion in the Work
159
+ by You to the Licensor shall be under the terms and conditions of
160
+ this License, without any additional terms or conditions.
161
+ Notwithstanding the above, nothing herein shall supersede or modify
162
+ the terms of any separate license agreement you may have executed
163
+ with Licensor regarding such Contributions.
164
+
165
+ 6. Trademarks. This License does not grant permission to use the trade
166
+ names, trademarks, service marks, or product names of the Licensor,
167
+ except as required for reasonable and customary use in describing the
168
+ origin of the Work and reproducing the content of the NOTICE file.
169
+
170
+ 7. Disclaimer of Warranty. Unless required by applicable law or
171
+ agreed to in writing, Licensor provides the Work (and each
172
+ Contributor provides its Contributions) on an "AS IS" BASIS,
173
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
174
+ implied, including, without limitation, any warranties or conditions
175
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
176
+ PARTICULAR PURPOSE. You are solely responsible for determining the
177
+ appropriateness of using or redistributing the Work and assume any
178
+ risks associated with Your exercise of permissions under this License.
179
+
180
+ 8. Limitation of Liability. In no event and under no legal theory,
181
+ whether in tort (including negligence), contract, or otherwise,
182
+ unless required by applicable law (such as deliberate and grossly
183
+ negligent acts) or agreed to in writing, shall any Contributor be
184
+ liable to You for damages, including any direct, indirect, special,
185
+ incidental, or consequential damages of any character arising as a
186
+ result of this License or out of the use or inability to use the
187
+ Work (including but not limited to damages for loss of goodwill,
188
+ work stoppage, computer failure or malfunction, or any and all
189
+ other commercial damages or losses), even if such Contributor
190
+ has been advised of the possibility of such damages.
191
+
192
+ 9. Accepting Warranty or Additional Liability. While redistributing
193
+ the Work or Derivative Works thereof, You may choose to offer,
194
+ and charge a fee for, acceptance of support, warranty, indemnity,
195
+ or other liability obligations and/or rights consistent with this
196
+ License. However, in accepting such obligations, You may act only
197
+ on Your own behalf and on Your sole responsibility, not on behalf
198
+ of any other Contributor, and only if You agree to indemnify,
199
+ defend, and hold each Contributor harmless for any liability
200
+ incurred by, or claims asserted against, such Contributor by reason
201
+ of your accepting any such warranty or additional liability.
202
+
203
+ END OF TERMS AND CONDITIONS
204
+
205
+ APPENDIX: How to apply the Apache License to your work.
201
206
 
202
207
  To apply the Apache License to your work, attach the following
203
208
  boilerplate notice, with the fields enclosed by brackets "[]"
@@ -208,16 +213,16 @@ RIO UIKIT is licensed under the Apache 2.0 license.
208
213
  same "printed page" as the copyright notice for easier
209
214
  identification within third-party archives.
210
215
 
211
- Copyright 2021 TB Digital Services GmbH
216
+ Copyright 2021 TB Digital Services GmbH
212
217
 
213
- Licensed under the Apache License, Version 2.0 (the "License");
214
- you may not use this file except in compliance with the License.
215
- You may obtain a copy of the License at
218
+ Licensed under the Apache License, Version 2.0 (the "License");
219
+ you may not use this file except in compliance with the License.
220
+ You may obtain a copy of the License at
216
221
 
217
222
  http://www.apache.org/licenses/LICENSE-2.0
218
223
 
219
- Unless required by applicable law or agreed to in writing, software
220
- distributed under the License is distributed on an "AS IS" BASIS,
221
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
222
- See the License for the specific language governing permissions and
223
- limitations under the License.
224
+ Unless required by applicable law or agreed to in writing, software
225
+ distributed under the License is distributed on an "AS IS" BASIS,
226
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
227
+ See the License for the specific language governing permissions and
228
+ limitations under the License.
@@ -29,6 +29,12 @@ var _ActionBarItemPopover = require("./ActionBarItemPopover");
29
29
 
30
30
  var _ActionBarItemIcon = require("./ActionBarItemIcon");
31
31
 
32
+ var _ActionBarItemList = require("./ActionBarItemList");
33
+
34
+ var _ActionBarItemListItem = require("./ActionBarItemListItem");
35
+
36
+ var _ActionBarItemListSeparator = require("./ActionBarItemListSeparator");
37
+
32
38
  var _OverlayTrigger = _interopRequireDefault(require("../overlay/OverlayTrigger"));
33
39
 
34
40
  var _Dialog = _interopRequireDefault(require("../dialog/Dialog"));
@@ -225,6 +231,9 @@ var ActionBarItem = /*#__PURE__*/_react.default.memo(function (props) {
225
231
  exports.ActionBarItem = ActionBarItem;
226
232
  ActionBarItem.Icon = _ActionBarItemIcon.ActionBarItemIcon;
227
233
  ActionBarItem.Popover = _ActionBarItemPopover.ActionBarItemPopover;
234
+ ActionBarItem.List = _ActionBarItemList.ActionBarItemList;
235
+ ActionBarItem.ListItem = _ActionBarItemListItem.ActionBarItemListItem;
236
+ ActionBarItem.ListSeparator = _ActionBarItemListSeparator.ActionBarItemListSeparator;
228
237
  ActionBarItem.defaultProps = {
229
238
  hidePopoverOnClick: true,
230
239
  popoverWidth: 250
@@ -0,0 +1,38 @@
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 = exports.ActionBarItemList = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
14
+ var _react = _interopRequireDefault(require("react"));
15
+
16
+ var _propTypes = _interopRequireDefault(require("prop-types"));
17
+
18
+ var _classnames = _interopRequireDefault(require("classnames"));
19
+
20
+ var _excluded = ["className", "children"];
21
+
22
+ var ActionBarItemList = function ActionBarItemList(_ref) {
23
+ var className = _ref.className,
24
+ children = _ref.children,
25
+ remainingProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
26
+ var classes = (0, _classnames.default)('ActionBarItemList', className);
27
+ return /*#__PURE__*/_react.default.createElement("ul", (0, _extends2.default)({}, remainingProps, {
28
+ className: classes
29
+ }), children);
30
+ };
31
+
32
+ exports.ActionBarItemList = ActionBarItemList;
33
+ ActionBarItemList.displayName = 'ActionBarItemList';
34
+ ActionBarItemList.propTypes = {
35
+ className: _propTypes.default.string
36
+ };
37
+ var _default = ActionBarItemList;
38
+ exports.default = _default;
@@ -0,0 +1,51 @@
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 = exports.ActionBarItemListItem = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
14
+ var _react = _interopRequireDefault(require("react"));
15
+
16
+ var _propTypes = _interopRequireDefault(require("prop-types"));
17
+
18
+ var _classnames = _interopRequireDefault(require("classnames"));
19
+
20
+ var _excluded = ["hasLink", "icon", "onClick", "className", "children"];
21
+
22
+ var ActionBarItemListItem = function ActionBarItemListItem(props) {
23
+ var hasLink = props.hasLink,
24
+ icon = props.icon,
25
+ onClick = props.onClick,
26
+ className = props.className,
27
+ children = props.children,
28
+ remainingProps = (0, _objectWithoutProperties2.default)(props, _excluded);
29
+ var classes = (0, _classnames.default)('ActionBarItemListItem', className);
30
+ var iconClasses = (0, _classnames.default)('ActionBarItemListItemIcon', 'rioglyph', icon);
31
+ var btnClasses = (0, _classnames.default)('ActionBarItemListItemButton');
32
+ return /*#__PURE__*/_react.default.createElement("li", (0, _extends2.default)({}, remainingProps, {
33
+ className: classes
34
+ }), icon && /*#__PURE__*/_react.default.createElement("span", {
35
+ className: iconClasses
36
+ }), hasLink && !onClick && /*#__PURE__*/_react.default.createElement("span", null, children), onClick && /*#__PURE__*/_react.default.createElement("div", {
37
+ className: btnClasses,
38
+ onClick: onClick
39
+ }, children), !hasLink && !onClick && children);
40
+ };
41
+
42
+ exports.ActionBarItemListItem = ActionBarItemListItem;
43
+ ActionBarItemListItem.displayName = 'ActionBarItemListItem';
44
+ ActionBarItemListItem.propTypes = {
45
+ hasLink: _propTypes.default.bool,
46
+ icon: _propTypes.default.string,
47
+ onClick: _propTypes.default.func,
48
+ className: _propTypes.default.string
49
+ };
50
+ var _default = ActionBarItemListItem;
51
+ exports.default = _default;
@@ -0,0 +1,37 @@
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 = exports.ActionBarItemListSeparator = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
14
+ var _react = _interopRequireDefault(require("react"));
15
+
16
+ var _propTypes = _interopRequireDefault(require("prop-types"));
17
+
18
+ var _classnames = _interopRequireDefault(require("classnames"));
19
+
20
+ var _excluded = ["className"];
21
+
22
+ var ActionBarItemListSeparator = function ActionBarItemListSeparator(_ref) {
23
+ var className = _ref.className,
24
+ remainingProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
25
+ var classes = (0, _classnames.default)('ActionBarItemListSeparator', className);
26
+ return /*#__PURE__*/_react.default.createElement("hr", (0, _extends2.default)({}, remainingProps, {
27
+ className: classes
28
+ }));
29
+ };
30
+
31
+ exports.ActionBarItemListSeparator = ActionBarItemListSeparator;
32
+ ActionBarItemListSeparator.displayName = 'ActionBarItemListSeparator';
33
+ ActionBarItemListSeparator.propTypes = {
34
+ className: _propTypes.default.string
35
+ };
36
+ var _default = ActionBarItemListSeparator;
37
+ exports.default = _default;
@@ -23,9 +23,9 @@ var _Popover = _interopRequireDefault(require("react-bootstrap/Popover"));
23
23
 
24
24
  var _excluded = ["children", "show", "preRender", "id", "title", "onClick", "width", "style", "className"];
25
25
 
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
26
+ 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; }
27
27
 
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
28
+ 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; }
29
29
 
30
30
  var ActionBarOverlay = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
31
31
  var children = props.children,