@rio-cloud/rio-uikit 0.15.0-beta-49 → 0.16.0-beta-1
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/README.md +231 -187
- package/lib/components/actionBarItem/ActionBarItem.js +4 -4
- package/lib/components/actionBarItem/ActionBarItemPopoverContent.js +43 -0
- package/lib/components/actionBarItem/ActionBarOverlay.js +8 -3
- package/lib/components/applicationHeader/AppMenuDropdown.js +9 -13
- package/lib/components/applicationLayout/ApplicationLayout.js +7 -9
- package/lib/components/applicationLayout/ApplicationLayoutBody.js +5 -3
- package/lib/components/assetTree/AssetTree.js +1 -1
- package/lib/components/assetTree/AssetTree.less +2 -2
- package/lib/components/assetTree/Tree.js +2 -2
- package/lib/components/assetTree/TreeLeaf.js +9 -9
- package/lib/components/bottomSheet/BottomSheet.js +11 -7
- package/lib/components/browserWarning/BrowserWarningMessageDE.js +1 -1
- package/lib/components/browserWarning/BrowserWarningMessageEN.js +1 -1
- package/lib/components/carousel/Carousel.js +7 -426
- package/lib/components/checkbox/Checkbox.js +4 -4
- package/lib/components/clearableInput/ClearableInput.less +1 -1
- package/lib/components/datepicker/DatePicker.js +51 -73
- package/lib/components/datepicker/DatePicker.less +31 -5
- package/lib/components/dropdown/ButtonDropdown.js +149 -181
- package/lib/components/listMenu/ListMenu.js +40 -23
- package/lib/components/numberControl/NumberControl.js +4 -0
- package/lib/components/numberInput/NumberInput.js +21 -20
- package/lib/components/onboarding/OnboardingTip.js +9 -9
- package/lib/components/states/NotBookedState.js +2 -2
- package/lib/components/table/TableSettingsDialogFooter.js +1 -1
- package/lib/components/teaser/Teaser.js +1 -1
- package/lib/components/teaser/TeaserContainer.js +8 -8
- package/lib/components/tooltip/Tooltip.js +4 -4
- package/lib/components/tooltip/Tooltip.less +0 -10
- package/lib/es/DeviceUtils.d.ts +4 -2
- package/lib/es/SortDirection.d.ts +5 -0
- package/lib/es/deviceUtils.js +12 -0
- package/lib/hooks/useClipboard.js +2 -2
- package/lib/style/css/_exports/man-uikit.less +7 -5
- package/lib/style/css/_exports/rio-buyButton.less +30 -41
- package/lib/style/css/_exports/rio-uikit-core.less +105 -127
- package/lib/style/css/_exports/rio-uikit-print-utilities.less +6 -11
- package/lib/style/css/_exports/rio-uikit-responsive-utilities.less +6 -11
- package/lib/style/css/_exports/rio-uikit.less +5 -4
- package/lib/style/css/_exports/rio-website.less +110 -13
- package/lib/style/css/_exports/vw-uikit.less +10 -8
- package/lib/style/css/animations/_imports.less +9 -0
- package/lib/style/css/animations/collapse.less +16 -0
- package/lib/style/css/animations/fade.less +28 -0
- package/lib/style/css/animations/pinging.less +7 -0
- package/lib/style/css/animations/rotate.less +52 -0
- package/lib/style/css/animations/scale.less +35 -0
- package/lib/style/css/animations/slide.less +39 -0
- package/lib/style/css/animations/spinning.less +4 -0
- package/lib/style/css/animations/transition.less +129 -0
- package/lib/style/css/animations/translate.less +28 -0
- package/lib/style/css/bootstrap/badges.less +0 -12
- package/lib/style/css/bootstrap/dropdowns.less +10 -3
- package/lib/style/css/bootstrap/forms.less +38 -36
- package/lib/style/css/bootstrap/input-groups.less +4 -0
- package/lib/style/css/bootstrap/mixins/forms.less +1 -1
- package/lib/style/css/bootstrap/type.less +11 -4
- package/lib/style/css/components/Activity.less +93 -0
- package/lib/style/css/components/ApplicationHeader.less +438 -0
- package/lib/style/css/components/ApplicationLayout.less +236 -0
- package/lib/style/css/components/AssetTree.less +443 -0
- package/lib/style/css/components/AutoSuggest.less +22 -0
- package/lib/style/css/components/BottomSheet.less +14 -0
- package/lib/style/css/components/Carousel.less +212 -0
- package/lib/style/css/components/Checkbox.less +224 -0
- package/lib/style/css/components/ClearableInput.less +115 -0
- package/lib/style/css/components/Counter.less +142 -0
- package/lib/style/css/components/DataTabs.less +100 -0
- package/lib/style/css/components/DatePicker.less +391 -0
- package/lib/style/css/components/Dialog.less +482 -0
- package/lib/style/css/components/Dropdown.less +186 -0
- package/lib/style/css/components/Expander.less +196 -0
- package/lib/style/css/components/FilePicker.less +8 -0
- package/lib/style/css/components/ListMenu.less +77 -0
- package/lib/style/css/components/MapHere.less +91 -0
- package/lib/style/css/components/MapMarker.less +347 -0
- package/lib/style/css/components/MapSettings.less +140 -0
- package/lib/style/css/components/NoData.less +8 -0
- package/lib/style/css/components/Notification.less +234 -0
- package/lib/style/css/components/RadioButton.less +173 -0
- package/lib/style/css/components/Resizer.less +43 -0
- package/lib/style/css/components/Select.less +274 -0
- package/lib/style/css/components/Sidebar.less +157 -0
- package/lib/style/css/components/Slider.less +278 -0
- package/lib/style/css/components/Spinner.less +49 -0
- package/lib/style/css/components/StatsWidget.less +111 -0
- package/lib/style/css/components/SteppedProgressBar.less +323 -0
- package/lib/style/css/components/SupportMarker.less +34 -0
- package/lib/style/css/components/Switch.less +145 -0
- package/lib/style/css/components/TableSettingsDialog.less +96 -0
- package/lib/style/css/components/TableSortArrows.less +54 -0
- package/lib/style/css/components/Tag.less +246 -0
- package/lib/style/css/components/TagManager.less +4 -0
- package/lib/style/css/components/Teaser.less +12 -0
- package/lib/style/css/components/Timeline.less +69 -0
- package/lib/style/css/components/Tooltip.less +230 -0
- package/lib/style/css/design/alerts.less +55 -0
- package/lib/style/css/design/aspect-ratio.less +23 -0
- package/lib/style/css/design/badges.less +120 -0
- package/lib/style/css/design/blockquote.less +49 -0
- package/lib/style/css/design/border.less +192 -0
- package/lib/style/css/design/breadcrumbs.less +20 -0
- package/lib/style/css/design/button-groups.less +194 -0
- package/lib/style/css/design/buttons.less +540 -0
- package/lib/style/css/design/callouts.less +27 -0
- package/lib/style/css/design/caret.less +28 -0
- package/lib/style/css/design/close.less +12 -0
- package/lib/style/css/design/code.less +45 -0
- package/lib/style/css/design/colors.less +202 -0
- package/lib/style/css/design/cols.less +56 -0
- package/lib/style/css/design/container.less +29 -0
- package/lib/style/css/design/cursors.less +19 -0
- package/lib/style/css/design/custom.less +20 -0
- package/lib/style/css/design/ellipsis.less +46 -0
- package/lib/style/css/design/flexgrid.less +7 -0
- package/lib/style/css/design/fonts.less +318 -0
- package/lib/style/css/design/form-input-groups.less +245 -0
- package/lib/style/css/design/form-inputs.less +655 -0
- package/lib/style/css/design/iframe.less +80 -0
- package/lib/style/css/design/images.less +47 -0
- package/lib/style/css/design/labels.less +66 -0
- package/lib/style/css/design/list-group.less +95 -0
- package/lib/style/css/design/navs.less +254 -0
- package/lib/style/css/design/normalize.less +436 -0
- package/lib/style/css/design/opacity.less +26 -0
- package/lib/style/css/design/overflow.less +1 -0
- package/lib/style/css/design/pagination.less +161 -0
- package/lib/style/css/design/panels.less +105 -0
- package/lib/style/css/design/popovers.less +117 -0
- package/lib/style/css/design/position.less +16 -0
- package/lib/style/css/design/progress-bars.less +131 -0
- package/lib/style/css/design/responsive/_imports.less +68 -0
- package/lib/style/css/design/responsive/backgrounds.less +32 -0
- package/lib/style/css/design/responsive/display.less +9 -0
- package/lib/style/css/design/responsive/flexgrid.less +75 -0
- package/lib/style/css/design/responsive/floating.less +4 -0
- package/lib/style/css/design/responsive/gap.less +41 -0
- package/lib/style/css/design/responsive/hyphens.less +14 -0
- package/lib/style/css/design/responsive/margin.less +127 -0
- package/lib/style/css/design/responsive/overflow.less +16 -0
- package/lib/style/css/design/responsive/padding.less +71 -0
- package/lib/style/css/design/responsive/position.less +102 -0
- package/lib/style/css/design/responsive/sizing.less +115 -0
- package/lib/style/css/design/responsive/text.less +71 -0
- package/lib/style/css/design/responsive/visibility.less +115 -0
- package/lib/style/css/design/responsive-embed.less +31 -0
- package/lib/style/css/design/responsive-video.less +22 -0
- package/lib/style/css/design/rioglyph.less +24 -0
- package/lib/style/css/design/rounded.less +44 -0
- package/lib/style/css/design/shadows.less +65 -0
- package/lib/style/css/design/tables.less +976 -0
- package/lib/style/css/design/text.less +201 -0
- package/lib/style/css/design/theme.less +200 -0
- package/lib/style/css/design/thumbnails.less +29 -0
- package/lib/style/css/design/transition.less +33 -0
- package/lib/style/css/design/type.less +159 -0
- package/lib/style/css/design/utilities.less +75 -0
- package/lib/style/css/design/visibilty.less +38 -0
- package/lib/style/css/design/wells.less +17 -0
- package/lib/style/css/design/z-index.less +21 -0
- package/lib/style/css/mapping/breakpoint-map.less +44 -0
- package/lib/style/css/mapping/color-map.less +200 -0
- package/lib/style/css/mapping/cols-map.less +15 -0
- package/lib/style/css/mapping/numbers-map.less +16 -0
- package/lib/style/css/mapping/positions-map.less +21 -0
- package/lib/style/css/mapping/sizes-map.less +129 -0
- package/lib/style/css/mapping/spacings-map.less +28 -0
- package/lib/style/css/mixins/_mixins.less +13 -0
- package/lib/style/css/mixins/alerts.less +13 -0
- package/lib/style/css/mixins/border-radius.less +16 -0
- package/lib/style/css/mixins/buttons.less +117 -0
- package/lib/style/css/mixins/clearfix.less +9 -0
- package/lib/style/css/mixins/cols.less +59 -0
- package/lib/style/css/mixins/forms.less +61 -0
- package/lib/style/css/mixins/panels.less +27 -0
- package/lib/style/css/mixins/placeholder.less +17 -0
- package/lib/style/css/mixins/reset.less +27 -0
- package/lib/style/css/mixins/sizings.less +21 -0
- package/lib/style/css/mixins/spinner.less +30 -0
- package/lib/style/css/mixins/table.less +26 -0
- package/lib/style/css/mixins/tabs.less +4 -0
- package/lib/style/css/mixins/text.less +5 -0
- package/lib/style/css/print/print.less +1 -4
- package/lib/style/css/rio-theme/alerts.less +23 -61
- package/lib/style/css/rio-theme/badges.less +47 -12
- package/lib/style/css/rio-theme/blockquote.less +14 -97
- package/lib/style/css/rio-theme/buttons.less +32 -46
- package/lib/style/css/rio-theme/dropdowns.less +2 -2
- package/lib/style/css/rio-theme/forms.less +49 -20
- package/lib/style/css/rio-theme/input-groups.less +44 -25
- package/lib/style/css/rio-theme/mixins/alerts.less +13 -1
- package/lib/style/css/rio-theme/navbar.less +1 -1
- package/lib/style/css/rio-theme/variables.less +1 -0
- package/lib/style/css/shared/colors.json +1 -1
- package/lib/style/css/shared/colors.less +11 -8
- package/lib/style/css/shared/text.less +6 -5
- package/lib/style/css/utils/responsive/grid.less +15 -6
- package/lib/style/css/utils/rounded.less +1 -0
- package/lib/style/css/variables.less +179 -0
- package/lib/style/fonts/rioglyph/rioglyph.less +1 -11
- package/lib/types.ts +45 -59
- package/lib/utils/buttonEffect.js +11 -4
- package/lib/utils/deviceUtils.js +28 -37
- package/lib/utils/init.js +174 -0
- package/lib/version.json +1 -1
- package/package.json +79 -50
package/README.md
CHANGED
|
@@ -6,202 +6,246 @@ The documentation and how to integrate the UIKIT in your project can be found he
|
|
|
6
6
|
|
|
7
7
|
## Release
|
|
8
8
|
|
|
9
|
-
Starting with version 0.12.8
|
|
9
|
+
Starting with version `0.12.8`, all versions of the uikit will be available under https://uikit.developers.rio.cloud/${VERSION}/.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Starting with verion `0.14.6`, even the corresponding uikit-demo will be published under https://uikit.developers.rio.cloud/${VERSION}/.
|
|
12
|
+
|
|
13
|
+
All changes made on `master` will be deployed to https://uikit.developers.rio.cloud/latest/.
|
|
14
|
+
|
|
15
|
+
When releasing a new version:
|
|
16
|
+
|
|
17
|
+
1. Create new `release/${VERSION}` branch and trigger pipeline with a commit
|
|
18
|
+
2. After the new uikit-demo is published, update `versionsList.json` in `master` branch.
|
|
13
19
|
|
|
14
20
|
## Development
|
|
21
|
+
|
|
15
22
|
To run the UIKIT and the UIKIT Demo locally for development, use:
|
|
16
23
|
|
|
17
24
|
```bash
|
|
18
25
|
$ npm install && cd uikit-demo/ && npm i && npm start
|
|
19
26
|
```
|
|
27
|
+
|
|
20
28
|
The UIKIT demo is accessable at http://localhost:8090.
|
|
21
29
|
|
|
30
|
+
## Versions List
|
|
31
|
+
|
|
32
|
+
We introduced a versions list containing all the versions for which a uikit-demo exists. It looks as follows.
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"latest_release": "0.15.1",
|
|
37
|
+
"versions": [
|
|
38
|
+
{
|
|
39
|
+
"id": "0.16.0",
|
|
40
|
+
"label": "v0.16.0",
|
|
41
|
+
"path": "latest/",
|
|
42
|
+
"url": "https://uikit.developers.rio.cloud/latest/",
|
|
43
|
+
"tag": "Beta"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "0.15.1",
|
|
47
|
+
"label": "v0.15.1",
|
|
48
|
+
"path": "0.15.1/",
|
|
49
|
+
"url": "https://uikit.developers.rio.cloud/0.15.1/"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "0.15.0",
|
|
53
|
+
"label": "v0.15.0",
|
|
54
|
+
"path": "0.15.0/",
|
|
55
|
+
"url": "https://uikit.developers.rio.cloud/0.15.0/"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "0.14.6",
|
|
59
|
+
"label": "v0.14.6",
|
|
60
|
+
"path": "0.14.6/",
|
|
61
|
+
"url": "https://uikit.developers.rio.cloud/0.14.6/"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
22
67
|
## License
|
|
23
68
|
|
|
24
69
|
RIO UIKIT is licensed under the Apache 2.0 license.
|
|
25
70
|
|
|
26
|
-
|
|
27
71
|
Apache License
|
|
28
72
|
Version 2.0, January 2004
|
|
29
73
|
http://www.apache.org/licenses/
|
|
30
74
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
75
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
76
|
+
|
|
77
|
+
1. Definitions.
|
|
78
|
+
|
|
79
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
80
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
81
|
+
|
|
82
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
83
|
+
the copyright owner that is granting the License.
|
|
84
|
+
|
|
85
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
86
|
+
other entities that control, are controlled by, or are under common
|
|
87
|
+
control with that entity. For the purposes of this definition,
|
|
88
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
89
|
+
direction or management of such entity, whether by contract or
|
|
90
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
91
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
92
|
+
|
|
93
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
94
|
+
exercising permissions granted by this License.
|
|
95
|
+
|
|
96
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
97
|
+
including but not limited to software source code, documentation
|
|
98
|
+
source, and configuration files.
|
|
99
|
+
|
|
100
|
+
"Object" form shall mean any form resulting from mechanical
|
|
101
|
+
transformation or translation of a Source form, including but
|
|
102
|
+
not limited to compiled object code, generated documentation,
|
|
103
|
+
and conversions to other media types.
|
|
104
|
+
|
|
105
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
106
|
+
Object form, made available under the License, as indicated by a
|
|
107
|
+
copyright notice that is included in or attached to the work
|
|
108
|
+
(an example is provided in the Appendix below).
|
|
109
|
+
|
|
110
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
111
|
+
form, that is based on (or derived from) the Work and for which the
|
|
112
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
113
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
114
|
+
of this License, Derivative Works shall not include works that remain
|
|
115
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
116
|
+
the Work and Derivative Works thereof.
|
|
117
|
+
|
|
118
|
+
"Contribution" shall mean any work of authorship, including
|
|
119
|
+
the original version of the Work and any modifications or additions
|
|
120
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
121
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
122
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
123
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
124
|
+
means any form of electronic, verbal, or written communication sent
|
|
125
|
+
to the Licensor or its representatives, including but not limited to
|
|
126
|
+
communication on electronic mailing lists, source code control systems,
|
|
127
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
128
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
129
|
+
excluding communication that is conspicuously marked or otherwise
|
|
130
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
131
|
+
|
|
132
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
133
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
134
|
+
subsequently incorporated within the Work.
|
|
135
|
+
|
|
136
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
137
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
138
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
139
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
140
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
141
|
+
Work and such Derivative Works in Source or Object form.
|
|
142
|
+
|
|
143
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
144
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
145
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
146
|
+
(except as stated in this section) patent license to make, have made,
|
|
147
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
148
|
+
where such license applies only to those patent claims licensable
|
|
149
|
+
by such Contributor that are necessarily infringed by their
|
|
150
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
151
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
152
|
+
institute patent litigation against any entity (including a
|
|
153
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
154
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
155
|
+
or contributory patent infringement, then any patent licenses
|
|
156
|
+
granted to You under this License for that Work shall terminate
|
|
157
|
+
as of the date such litigation is filed.
|
|
158
|
+
|
|
159
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
160
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
161
|
+
modifications, and in Source or Object form, provided that You
|
|
162
|
+
meet the following conditions:
|
|
163
|
+
|
|
164
|
+
(a) You must give any other recipients of the Work or
|
|
165
|
+
Derivative Works a copy of this License; and
|
|
166
|
+
|
|
167
|
+
(b) You must cause any modified files to carry prominent notices
|
|
168
|
+
stating that You changed the files; and
|
|
169
|
+
|
|
170
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
171
|
+
that You distribute, all copyright, patent, trademark, and
|
|
172
|
+
attribution notices from the Source form of the Work,
|
|
173
|
+
excluding those notices that do not pertain to any part of
|
|
174
|
+
the Derivative Works; and
|
|
175
|
+
|
|
176
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
177
|
+
distribution, then any Derivative Works that You distribute must
|
|
178
|
+
include a readable copy of the attribution notices contained
|
|
179
|
+
within such NOTICE file, excluding those notices that do not
|
|
180
|
+
pertain to any part of the Derivative Works, in at least one
|
|
181
|
+
of the following places: within a NOTICE text file distributed
|
|
182
|
+
as part of the Derivative Works; within the Source form or
|
|
183
|
+
documentation, if provided along with the Derivative Works; or,
|
|
184
|
+
within a display generated by the Derivative Works, if and
|
|
185
|
+
wherever such third-party notices normally appear. The contents
|
|
186
|
+
of the NOTICE file are for informational purposes only and
|
|
187
|
+
do not modify the License. You may add Your own attribution
|
|
188
|
+
notices within Derivative Works that You distribute, alongside
|
|
189
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
190
|
+
that such additional attribution notices cannot be construed
|
|
191
|
+
as modifying the License.
|
|
192
|
+
|
|
193
|
+
You may add Your own copyright statement to Your modifications and
|
|
194
|
+
may provide additional or different license terms and conditions
|
|
195
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
196
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
197
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
198
|
+
the conditions stated in this License.
|
|
199
|
+
|
|
200
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
201
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
202
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
203
|
+
this License, without any additional terms or conditions.
|
|
204
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
205
|
+
the terms of any separate license agreement you may have executed
|
|
206
|
+
with Licensor regarding such Contributions.
|
|
207
|
+
|
|
208
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
209
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
210
|
+
except as required for reasonable and customary use in describing the
|
|
211
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
212
|
+
|
|
213
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
214
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
215
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
216
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
217
|
+
implied, including, without limitation, any warranties or conditions
|
|
218
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
219
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
220
|
+
appropriateness of using or redistributing the Work and assume any
|
|
221
|
+
risks associated with Your exercise of permissions under this License.
|
|
222
|
+
|
|
223
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
224
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
225
|
+
unless required by applicable law (such as deliberate and grossly
|
|
226
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
227
|
+
liable to You for damages, including any direct, indirect, special,
|
|
228
|
+
incidental, or consequential damages of any character arising as a
|
|
229
|
+
result of this License or out of the use or inability to use the
|
|
230
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
231
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
232
|
+
other commercial damages or losses), even if such Contributor
|
|
233
|
+
has been advised of the possibility of such damages.
|
|
234
|
+
|
|
235
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
236
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
237
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
238
|
+
or other liability obligations and/or rights consistent with this
|
|
239
|
+
License. However, in accepting such obligations, You may act only
|
|
240
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
241
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
242
|
+
defend, and hold each Contributor harmless for any liability
|
|
243
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
244
|
+
of your accepting any such warranty or additional liability.
|
|
245
|
+
|
|
246
|
+
END OF TERMS AND CONDITIONS
|
|
247
|
+
|
|
248
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
205
249
|
|
|
206
250
|
To apply the Apache License to your work, attach the following
|
|
207
251
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
@@ -212,16 +256,16 @@ RIO UIKIT is licensed under the Apache 2.0 license.
|
|
|
212
256
|
same "printed page" as the copyright notice for easier
|
|
213
257
|
identification within third-party archives.
|
|
214
258
|
|
|
215
|
-
|
|
259
|
+
Copyright 2021 TB Digital Services GmbH
|
|
216
260
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
261
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
262
|
+
you may not use this file except in compliance with the License.
|
|
263
|
+
You may obtain a copy of the License at
|
|
220
264
|
|
|
221
265
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
222
266
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
267
|
+
Unless required by applicable law or agreed to in writing, software
|
|
268
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
269
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
270
|
+
See the License for the specific language governing permissions and
|
|
271
|
+
limitations under the License.
|
|
@@ -25,7 +25,7 @@ var _delay = _interopRequireDefault(require("lodash/fp/delay"));
|
|
|
25
25
|
|
|
26
26
|
var _ActionBarOverlay = require("./ActionBarOverlay");
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _ActionBarItemPopoverContent = require("./ActionBarItemPopoverContent");
|
|
29
29
|
|
|
30
30
|
var _ActionBarItemIcon = require("./ActionBarItemIcon");
|
|
31
31
|
|
|
@@ -78,7 +78,7 @@ var checkIfSmallResolution = function checkIfSmallResolution() {
|
|
|
78
78
|
var isActionBarItemPopover = function isActionBarItemPopover(child) {
|
|
79
79
|
var _child$type;
|
|
80
80
|
|
|
81
|
-
return ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) ===
|
|
81
|
+
return ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === _ActionBarItemPopoverContent.ActionBarItemPopoverContent.displayName;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
var isActionBarItemIcon = function isActionBarItemIcon(child) {
|
|
@@ -215,7 +215,7 @@ var ActionBarItem = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
215
215
|
show: isShown || useOffscreen,
|
|
216
216
|
placement: _OverlayTrigger.default.BOTTOM_END,
|
|
217
217
|
overlay: overlay,
|
|
218
|
-
trigger:
|
|
218
|
+
trigger: "click",
|
|
219
219
|
rootClose: false,
|
|
220
220
|
popperConfig: {
|
|
221
221
|
modifiers: [{
|
|
@@ -230,7 +230,7 @@ var ActionBarItem = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
230
230
|
|
|
231
231
|
exports.ActionBarItem = ActionBarItem;
|
|
232
232
|
ActionBarItem.Icon = _ActionBarItemIcon.ActionBarItemIcon;
|
|
233
|
-
ActionBarItem.Popover =
|
|
233
|
+
ActionBarItem.Popover = _ActionBarItemPopoverContent.ActionBarItemPopoverContent;
|
|
234
234
|
ActionBarItem.List = _ActionBarItemList.ActionBarItemList;
|
|
235
235
|
ActionBarItem.ListItem = _ActionBarItemListItem.ActionBarItemListItem;
|
|
236
236
|
ActionBarItem.ListSeparator = _ActionBarItemListSeparator.ActionBarItemListSeparator;
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ActionBarItemPopoverContent = 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 _omit = _interopRequireDefault(require("lodash/fp/omit"));
|
|
21
|
+
|
|
22
|
+
var _excluded = ["className", "children"];
|
|
23
|
+
|
|
24
|
+
var ActionBarItemPopoverContent = function ActionBarItemPopoverContent(_ref) {
|
|
25
|
+
var className = _ref.className,
|
|
26
|
+
children = _ref.children,
|
|
27
|
+
remainingProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
var classes = (0, _classnames.default)('ActionBarItemPopoverContent', className);
|
|
29
|
+
var filterProps = (0, _omit.default)(['title', 'useOffscreen']);
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, filterProps(remainingProps), {
|
|
31
|
+
className: classes
|
|
32
|
+
}), children);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.ActionBarItemPopoverContent = ActionBarItemPopoverContent;
|
|
36
|
+
ActionBarItemPopoverContent.displayName = 'ActionBarItemPopoverContent';
|
|
37
|
+
ActionBarItemPopoverContent.propTypes = {
|
|
38
|
+
title: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.string]),
|
|
39
|
+
className: _propTypes.default.string,
|
|
40
|
+
useOffscreen: _propTypes.default.bool
|
|
41
|
+
};
|
|
42
|
+
var _default = ActionBarItemPopoverContent;
|
|
43
|
+
exports.default = _default;
|
|
@@ -44,6 +44,8 @@ var ActionBarOverlay = /*#__PURE__*/_react.default.forwardRef(function (props, r
|
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
var adjustedClassName = preRender && !show ? (0, _classnames.default)(className, 'position-offscreen') : className;
|
|
47
|
+
var popoverTitleClasses = (0, _classnames.default)('ActionBarItemPopover popover-title text-color-dark', className);
|
|
48
|
+
var popoverContentClasses = (0, _classnames.default)('ActionBarItemPopover popover-content', className);
|
|
47
49
|
return /*#__PURE__*/_react.default.createElement(_Popover.default, (0, _extends2.default)({
|
|
48
50
|
ref: ref,
|
|
49
51
|
id: id,
|
|
@@ -52,9 +54,9 @@ var ActionBarOverlay = /*#__PURE__*/_react.default.forwardRef(function (props, r
|
|
|
52
54
|
style: adjustedStyles,
|
|
53
55
|
className: adjustedClassName
|
|
54
56
|
}), title && /*#__PURE__*/_react.default.createElement(_Popover.default.Title, {
|
|
55
|
-
className:
|
|
57
|
+
className: popoverTitleClasses
|
|
56
58
|
}, title), /*#__PURE__*/_react.default.createElement(_Popover.default.Content, {
|
|
57
|
-
className:
|
|
59
|
+
className: popoverContentClasses
|
|
58
60
|
}, children));
|
|
59
61
|
});
|
|
60
62
|
|
|
@@ -68,7 +70,10 @@ ActionBarOverlay.propTypes = {
|
|
|
68
70
|
title: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.string]),
|
|
69
71
|
preRender: _propTypes.default.bool,
|
|
70
72
|
show: _propTypes.default.bool,
|
|
71
|
-
width: _propTypes.default.oneOf([100, 150, 200, 250, 300, 350, 400, 450, 500])
|
|
73
|
+
width: _propTypes.default.oneOf([100, 150, 200, 250, 300, 350, 400, 450, 500]),
|
|
74
|
+
onClick: _propTypes.default.func,
|
|
75
|
+
style: _propTypes.default.object,
|
|
76
|
+
className: _propTypes.default.string
|
|
72
77
|
};
|
|
73
78
|
var _default = ActionBarOverlay;
|
|
74
79
|
exports.default = _default;
|
|
@@ -15,10 +15,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
-
var _reactOnclickoutside = _interopRequireDefault(require("react-onclickoutside"));
|
|
19
|
-
|
|
20
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
19
|
|
|
20
|
+
var _useClickOutside = _interopRequireDefault(require("../../hooks/useClickOutside"));
|
|
21
|
+
|
|
22
22
|
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); }
|
|
23
23
|
|
|
24
24
|
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; }
|
|
@@ -49,17 +49,13 @@ var DropdownMenu = function DropdownMenu(props) {
|
|
|
49
49
|
className: "dropdown-menu"
|
|
50
50
|
}, children);
|
|
51
51
|
};
|
|
52
|
-
/*
|
|
53
|
-
* The onClickOutside HOC cannot be on the top level anymore as we have to provide
|
|
54
|
-
* handleClickOutside as prop.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
52
|
|
|
58
|
-
var AppMenuDropdownOpener =
|
|
53
|
+
var AppMenuDropdownOpener = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
59
54
|
var showAsOpen = props.showAsOpen,
|
|
60
55
|
children = props.children,
|
|
61
56
|
onDropdownClick = props.onDropdownClick;
|
|
62
57
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
58
|
+
ref: ref,
|
|
63
59
|
className: (0, _classnames.default)('dropdown', {
|
|
64
60
|
open: showAsOpen
|
|
65
61
|
}),
|
|
@@ -77,19 +73,19 @@ var AppMenuDropdown = function AppMenuDropdown(props) {
|
|
|
77
73
|
isOpen = _useState2[0],
|
|
78
74
|
setIsOpen = _useState2[1];
|
|
79
75
|
|
|
76
|
+
var wrapperRef = (0, _useClickOutside.default)(function () {
|
|
77
|
+
return setIsOpen(false);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
80
|
var handleDropdownClick = function handleDropdownClick() {
|
|
81
81
|
return setIsOpen(!isOpen);
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
var handleClickOutside = function handleClickOutside() {
|
|
85
|
-
setIsOpen(false);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
84
|
var openWithChildren = children && children.length && isOpen;
|
|
89
85
|
return /*#__PURE__*/_react.default.createElement(AppMenuDropdownOpener, {
|
|
90
86
|
showAsOpen: openWithChildren,
|
|
91
87
|
onDropdownClick: handleDropdownClick,
|
|
92
|
-
|
|
88
|
+
ref: wrapperRef
|
|
93
89
|
}, /*#__PURE__*/_react.default.createElement(ToggleButton, {
|
|
94
90
|
title: title,
|
|
95
91
|
caret: caret
|