@plesk/ui-library 3.38.2 → 3.40.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.
- package/cjs/components/Button/Button.js +4 -22
- package/cjs/components/Card/CardButton.js +2 -3
- package/cjs/components/CardList/CardListToolbar.js +3 -8
- package/cjs/components/Dialog/Dialog.js +5 -27
- package/cjs/components/Drawer/Drawer.js +7 -20
- package/cjs/components/Dropdown/Dropdown.js +3 -11
- package/cjs/components/FormField/FormField.js +13 -26
- package/cjs/components/Icon/constants.js +2 -2
- package/cjs/components/Icon/images/symbols.svg +9 -1
- package/cjs/components/List/List.js +1 -14
- package/cjs/components/Progress/Progress.js +6 -5
- package/cjs/components/ProgressStep/ProgressStep.js +5 -14
- package/cjs/components/ProgressStep/index.js +6 -0
- package/cjs/components/Section/Section.js +11 -19
- package/cjs/components/SplitButton/SplitButton.js +2 -3
- package/cjs/components/TextArea/TextArea.js +49 -97
- package/cjs/components/TextArea/calculateNodeHeight.js +8 -8
- package/cjs/components/Toolbar/RegistryContextBeta.js +112 -0
- package/cjs/components/Toolbar/Toolbar.js +46 -2
- package/cjs/components/Toolbar/ToolbarBetaProvider.js +23 -0
- package/cjs/components/Toolbar/ToolbarGroup.js +66 -4
- package/cjs/components/Toolbar/ToolbarItem.js +27 -12
- package/cjs/components/Toolbar/ToolbarMenu.js +2 -1
- package/cjs/components/Toolbar/index.js +8 -1
- package/cjs/components/index.js +15 -1
- package/cjs/hooks/index.js +12 -0
- package/cjs/hooks/useResizeObserver.js +29 -0
- package/cjs/hooks/useSqueeze.js +48 -0
- package/cjs/index.js +1 -1
- package/dist/images/symbols.svg +9 -1
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +591 -309
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +5 -5
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Button/Button.js +3 -21
- package/esm/components/Card/CardButton.js +2 -3
- package/esm/components/CardList/CardListToolbar.js +3 -8
- package/esm/components/Dialog/Dialog.js +5 -27
- package/esm/components/Drawer/Drawer.js +7 -20
- package/esm/components/Dropdown/Dropdown.js +3 -11
- package/esm/components/FormField/FormField.js +13 -26
- package/esm/components/Icon/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +9 -1
- package/esm/components/List/List.js +1 -14
- package/esm/components/Progress/Progress.js +7 -6
- package/esm/components/ProgressStep/ProgressStep.js +4 -13
- package/esm/components/ProgressStep/index.js +1 -1
- package/esm/components/Section/Section.js +11 -19
- package/esm/components/SplitButton/SplitButton.js +2 -3
- package/esm/components/TextArea/TextArea.js +50 -98
- package/esm/components/TextArea/calculateNodeHeight.js +8 -8
- package/esm/components/Toolbar/RegistryContextBeta.js +103 -0
- package/esm/components/Toolbar/Toolbar.js +47 -3
- package/esm/components/Toolbar/ToolbarBetaProvider.js +16 -0
- package/esm/components/Toolbar/ToolbarGroup.js +67 -5
- package/esm/components/Toolbar/ToolbarItem.js +27 -12
- package/esm/components/Toolbar/ToolbarMenu.js +2 -1
- package/esm/components/Toolbar/index.js +2 -1
- package/esm/components/index.js +2 -2
- package/esm/hooks/index.js +3 -0
- package/esm/hooks/useResizeObserver.js +22 -0
- package/esm/hooks/useSqueeze.js +41 -0
- package/esm/index.js +1 -1
- package/package.json +13 -13
- package/styleguide/build/bundle.8f00c54c.js +2 -0
- package/styleguide/images/symbols.svg +9 -1
- package/styleguide/index.html +2 -2
- package/types/src/components/Button/Button.d.ts +1 -0
- package/types/src/components/Dialog/Dialog.d.ts +1 -25
- package/types/src/components/Drawer/Drawer.d.ts +1 -4
- package/types/src/components/FormField/FormField.d.ts +1 -23
- package/types/src/components/Icon/constants.d.ts +1 -1
- package/types/src/components/ProgressStep/ProgressStep.d.ts +2 -13
- package/types/src/components/ProgressStep/index.d.ts +1 -1
- package/types/src/components/Section/Section.d.ts +2 -32
- package/types/src/components/TextArea/TextArea.d.ts +5 -32
- package/types/src/components/TextArea/calculateNodeHeight.d.ts +2 -6
- package/types/src/components/Toolbar/RegistryContextBeta.d.ts +25 -0
- package/types/src/components/Toolbar/Toolbar.d.ts +2 -22
- package/types/src/components/Toolbar/ToolbarBetaProvider.d.ts +5 -0
- package/types/src/components/Toolbar/ToolbarGroup.d.ts +2 -5
- package/types/src/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/src/components/Toolbar/index.d.ts +1 -0
- package/types/src/components/index.d.ts +2 -2
- package/types/src/hooks/index.d.ts +1 -0
- package/types/src/hooks/useResizeObserver.d.ts +7 -0
- package/types/src/hooks/useSqueeze.d.ts +10 -0
- package/styleguide/build/bundle.42040fbd.js +0 -2
- /package/styleguide/build/{bundle.42040fbd.js.LICENSE.txt → bundle.8f00c54c.js.LICENSE.txt} +0 -0
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = void 0;
|
|
7
|
+
exports.default = exports.BUTTON_PROP_NAMES = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _constants = require("../../constants");
|
|
@@ -69,6 +69,9 @@ const renderCaret = _ref2 => {
|
|
|
69
69
|
}
|
|
70
70
|
return caretElement;
|
|
71
71
|
};
|
|
72
|
+
|
|
73
|
+
// For ToolbarMenu backward compatibility purposes
|
|
74
|
+
const BUTTON_PROP_NAMES = exports.BUTTON_PROP_NAMES = ['size', 'intent', 'ghost', 'selected', 'onToggle', 'state', 'disabled', 'tooltip', 'icon', 'caret', 'fill', 'children', 'component', 'className', 'baseClassName', 'arrow', 'onClick'];
|
|
72
75
|
const Button = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
73
76
|
let {
|
|
74
77
|
baseClassName = `${_constants.CLS_PREFIX}button`,
|
|
@@ -182,27 +185,6 @@ const Button = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
182
185
|
});
|
|
183
186
|
Button.displayName = 'Button';
|
|
184
187
|
|
|
185
|
-
// For ToolbarMenu backward compatibility purposes
|
|
186
|
-
Button.defaultProps = {
|
|
187
|
-
size: undefined,
|
|
188
|
-
intent: undefined,
|
|
189
|
-
ghost: false,
|
|
190
|
-
selected: undefined,
|
|
191
|
-
onToggle: undefined,
|
|
192
|
-
state: undefined,
|
|
193
|
-
disabled: false,
|
|
194
|
-
tooltip: undefined,
|
|
195
|
-
icon: undefined,
|
|
196
|
-
caret: undefined,
|
|
197
|
-
fill: false,
|
|
198
|
-
children: undefined,
|
|
199
|
-
component: 'button',
|
|
200
|
-
className: undefined,
|
|
201
|
-
baseClassName: `${_constants.CLS_PREFIX}button`,
|
|
202
|
-
arrow: undefined,
|
|
203
|
-
onClick: undefined
|
|
204
|
-
};
|
|
205
|
-
|
|
206
188
|
/**
|
|
207
189
|
* `Button` component is used for executing actions, changing the application state, opening forms or dialog windows, and submitting data.
|
|
208
190
|
* As a rule, you should not use buttons for navigation between individual pages (use `Link` instead).
|
|
@@ -16,10 +16,12 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
const CardButton = _ref => {
|
|
17
17
|
let {
|
|
18
18
|
icon,
|
|
19
|
+
baseClassName = `${_constants.CLS_PREFIX}card-button`,
|
|
19
20
|
...props
|
|
20
21
|
} = _ref;
|
|
21
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
22
23
|
icon: _Icon.default.create(icon),
|
|
24
|
+
baseClassName: baseClassName,
|
|
23
25
|
...props
|
|
24
26
|
});
|
|
25
27
|
};
|
|
@@ -30,7 +32,4 @@ CardButton.propTypes = {
|
|
|
30
32
|
baseClassName: _propTypes.default.string,
|
|
31
33
|
icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]).isRequired
|
|
32
34
|
};
|
|
33
|
-
CardButton.defaultProps = {
|
|
34
|
-
baseClassName: `${_constants.CLS_PREFIX}card-button`
|
|
35
|
-
};
|
|
36
35
|
var _default = exports.default = CardButton;
|
|
@@ -120,9 +120,9 @@ const renderView = (onViewChange, currentView) => {
|
|
|
120
120
|
const isToolbarExpander = element => /*#__PURE__*/(0, _react.isValidElement)(element) && element.type === _Toolbar.ToolbarExpander;
|
|
121
121
|
const CardListToolbar = _ref2 => {
|
|
122
122
|
let {
|
|
123
|
-
baseClassName
|
|
124
|
-
selection,
|
|
125
|
-
onViewChange,
|
|
123
|
+
baseClassName = `${_constants.CLS_PREFIX}card-list__toolbar`,
|
|
124
|
+
selection = null,
|
|
125
|
+
onViewChange = null,
|
|
126
126
|
currentView,
|
|
127
127
|
groups
|
|
128
128
|
} = _ref2;
|
|
@@ -153,9 +153,4 @@ CardListToolbar.propTypes = {
|
|
|
153
153
|
currentView: _propTypes.default.string.isRequired,
|
|
154
154
|
baseClassName: _propTypes.default.string
|
|
155
155
|
};
|
|
156
|
-
CardListToolbar.defaultProps = {
|
|
157
|
-
selection: null,
|
|
158
|
-
onViewChange: null,
|
|
159
|
-
baseClassName: `${_constants.CLS_PREFIX}card-list__toolbar`
|
|
160
|
-
};
|
|
161
156
|
var _default = exports.default = CardListToolbar;
|
|
@@ -29,11 +29,14 @@ const isProps = value => value && typeof value === 'object' && ! /*#__PURE__*/(0
|
|
|
29
29
|
*/
|
|
30
30
|
const Dialog = _ref => {
|
|
31
31
|
let {
|
|
32
|
-
baseClassName
|
|
32
|
+
baseClassName = `${_constants.CLS_PREFIX}dialog`,
|
|
33
|
+
isOpen = false,
|
|
34
|
+
size = 'md',
|
|
35
|
+
closable = true,
|
|
36
|
+
canClose = true,
|
|
33
37
|
className,
|
|
34
38
|
children,
|
|
35
39
|
actions,
|
|
36
|
-
isOpen,
|
|
37
40
|
banner,
|
|
38
41
|
image,
|
|
39
42
|
title,
|
|
@@ -42,11 +45,8 @@ const Dialog = _ref => {
|
|
|
42
45
|
cancelButton,
|
|
43
46
|
buttons,
|
|
44
47
|
form,
|
|
45
|
-
size,
|
|
46
|
-
closable,
|
|
47
48
|
onClose,
|
|
48
49
|
closingConfirmation,
|
|
49
|
-
canClose,
|
|
50
50
|
...props
|
|
51
51
|
} = _ref;
|
|
52
52
|
const [isVisible, setIsVisible] = (0, _react.useState)(isOpen);
|
|
@@ -206,26 +206,4 @@ const Dialog = _ref => {
|
|
|
206
206
|
}), closingConfirmationDialog]
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
|
-
Dialog.defaultProps = {
|
|
210
|
-
isOpen: false,
|
|
211
|
-
banner: undefined,
|
|
212
|
-
sideBanner: undefined,
|
|
213
|
-
sideBannerContainer: undefined,
|
|
214
|
-
image: undefined,
|
|
215
|
-
title: undefined,
|
|
216
|
-
subtitle: undefined,
|
|
217
|
-
cancelTitle: undefined,
|
|
218
|
-
cancelButton: undefined,
|
|
219
|
-
buttons: undefined,
|
|
220
|
-
actions: undefined,
|
|
221
|
-
form: undefined,
|
|
222
|
-
size: 'md',
|
|
223
|
-
closable: true,
|
|
224
|
-
canClose: true,
|
|
225
|
-
onClose: undefined,
|
|
226
|
-
closingConfirmation: undefined,
|
|
227
|
-
children: undefined,
|
|
228
|
-
className: undefined,
|
|
229
|
-
baseClassName: `${_constants.CLS_PREFIX}dialog`
|
|
230
|
-
};
|
|
231
209
|
var _default = exports.default = Dialog;
|
|
@@ -19,24 +19,6 @@ var _DrawerProgress = _interopRequireDefault(require("./DrawerProgress"));
|
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
21
21
|
|
|
22
|
-
const defaultProps = {
|
|
23
|
-
isOpen: false,
|
|
24
|
-
subtitle: undefined,
|
|
25
|
-
backButton: undefined,
|
|
26
|
-
hideButton: undefined,
|
|
27
|
-
tabs: undefined,
|
|
28
|
-
placement: 'left',
|
|
29
|
-
size: 'md',
|
|
30
|
-
onClose: undefined,
|
|
31
|
-
closingConfirmation: undefined,
|
|
32
|
-
form: undefined,
|
|
33
|
-
sideBanner: undefined,
|
|
34
|
-
sideBannerContainer: undefined,
|
|
35
|
-
progress: undefined,
|
|
36
|
-
children: null,
|
|
37
|
-
className: undefined,
|
|
38
|
-
baseClassName: `${_constants.CLS_PREFIX}drawer`
|
|
39
|
-
};
|
|
40
22
|
/**
|
|
41
23
|
* `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
|
|
42
24
|
* [Read more when to use Drawer](#!/Drawers%2C%20pages%2C%20popovers).
|
|
@@ -44,7 +26,10 @@ const defaultProps = {
|
|
|
44
26
|
*/
|
|
45
27
|
const Drawer = _ref => {
|
|
46
28
|
let {
|
|
47
|
-
baseClassName
|
|
29
|
+
baseClassName = `${_constants.CLS_PREFIX}drawer`,
|
|
30
|
+
isOpen = false,
|
|
31
|
+
placement = 'left',
|
|
32
|
+
size = 'md',
|
|
48
33
|
className,
|
|
49
34
|
children,
|
|
50
35
|
title,
|
|
@@ -146,6 +131,9 @@ const Drawer = _ref => {
|
|
|
146
131
|
}, className),
|
|
147
132
|
onClose: onCloseWithConfirmation,
|
|
148
133
|
canCloseOnBackdropClick: true,
|
|
134
|
+
isOpen: isOpen,
|
|
135
|
+
placement: placement,
|
|
136
|
+
size: size,
|
|
149
137
|
...props,
|
|
150
138
|
children: [takeApart(_ref5 => {
|
|
151
139
|
let {
|
|
@@ -187,5 +175,4 @@ const Drawer = _ref => {
|
|
|
187
175
|
}), closingConfirmationDialog]
|
|
188
176
|
});
|
|
189
177
|
};
|
|
190
|
-
Drawer.defaultProps = defaultProps;
|
|
191
178
|
var _default = exports.default = Drawer;
|
|
@@ -132,12 +132,12 @@ const useEnhancedMenu = (menu, _ref2) => {
|
|
|
132
132
|
*/
|
|
133
133
|
const Dropdown = _ref3 => {
|
|
134
134
|
let {
|
|
135
|
-
baseClassName
|
|
135
|
+
baseClassName = `${_constants.CLS_PREFIX}dropdown`,
|
|
136
136
|
className,
|
|
137
137
|
children,
|
|
138
138
|
menu,
|
|
139
|
-
menuPlacement,
|
|
140
|
-
overlay,
|
|
139
|
+
menuPlacement = 'bottom-start',
|
|
140
|
+
overlay = false,
|
|
141
141
|
locale,
|
|
142
142
|
...props
|
|
143
143
|
} = _ref3;
|
|
@@ -206,12 +206,4 @@ const Dropdown = _ref3 => {
|
|
|
206
206
|
})
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
|
-
Dropdown.defaultProps = {
|
|
210
|
-
menuPlacement: 'bottom-start',
|
|
211
|
-
children: undefined,
|
|
212
|
-
overlay: false,
|
|
213
|
-
className: undefined,
|
|
214
|
-
baseClassName: `${_constants.CLS_PREFIX}dropdown`,
|
|
215
|
-
locale: undefined
|
|
216
|
-
};
|
|
217
209
|
var _default = exports.default = Dropdown;
|
|
@@ -28,28 +28,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
28
28
|
|
|
29
29
|
const BASE_FORM_FIELD_CLASS_NAME = exports.BASE_FORM_FIELD_CLASS_NAME = `${_constants.CLS_PREFIX}form-field`;
|
|
30
30
|
const defaultValue = undefined;
|
|
31
|
-
const defaultProps = {
|
|
32
|
-
id: undefined,
|
|
33
|
-
name: undefined,
|
|
34
|
-
value: defaultValue,
|
|
35
|
-
onChange: null,
|
|
36
|
-
label: undefined,
|
|
37
|
-
description: undefined,
|
|
38
|
-
errors: {},
|
|
39
|
-
required: false,
|
|
40
|
-
children: undefined,
|
|
41
|
-
multi: undefined,
|
|
42
|
-
disabled: undefined,
|
|
43
|
-
locale: undefined,
|
|
44
|
-
addMoreValidator: undefined,
|
|
45
|
-
onRemoveRow: null,
|
|
46
|
-
fullDescription: undefined,
|
|
47
|
-
className: undefined,
|
|
48
|
-
baseClassName: BASE_FORM_FIELD_CLASS_NAME,
|
|
49
|
-
form: undefined,
|
|
50
|
-
vertical: undefined,
|
|
51
|
-
scrollableElement: undefined
|
|
52
|
-
};
|
|
53
31
|
|
|
54
32
|
/**
|
|
55
33
|
* Simple helper to handle situations when we're expecting only array
|
|
@@ -455,8 +433,14 @@ class FormField extends _react.Component {
|
|
|
455
433
|
* * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
|
|
456
434
|
* [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
|
|
457
435
|
*/
|
|
458
|
-
|
|
459
|
-
|
|
436
|
+
const FormFieldWrapper = _ref => {
|
|
437
|
+
let {
|
|
438
|
+
value = defaultValue,
|
|
439
|
+
errors = {},
|
|
440
|
+
required = false,
|
|
441
|
+
baseClassName = BASE_FORM_FIELD_CLASS_NAME,
|
|
442
|
+
...props
|
|
443
|
+
} = _ref;
|
|
460
444
|
const form = (0, _react.useContext)(_FormContext.default);
|
|
461
445
|
const verticalContext = (0, _react.useContext)(_VerticalContext.default);
|
|
462
446
|
const vertical = props.vertical === undefined ? verticalContext : props.vertical;
|
|
@@ -467,9 +451,12 @@ const FormFieldWrapper = props => {
|
|
|
467
451
|
form: form,
|
|
468
452
|
vertical: vertical,
|
|
469
453
|
scrollableElement: scrollableElement,
|
|
470
|
-
disabled: props.disabled || disabled
|
|
454
|
+
disabled: props.disabled || disabled,
|
|
455
|
+
value: value,
|
|
456
|
+
errors: errors,
|
|
457
|
+
required: required,
|
|
458
|
+
baseClassName: baseClassName
|
|
471
459
|
});
|
|
472
460
|
};
|
|
473
461
|
FormFieldWrapper.displayName = 'FormField';
|
|
474
|
-
FormFieldWrapper.defaultProps = defaultProps;
|
|
475
462
|
var _default = exports.default = FormFieldWrapper;
|
|
@@ -7,5 +7,5 @@ exports.NAMES_12 = exports.NAMES = void 0;
|
|
|
7
7
|
/* eslint-disable max-len */
|
|
8
8
|
// This file is generated by create-svg-sprite. Do not edit.
|
|
9
9
|
|
|
10
|
-
const NAMES_12 = exports.NAMES_12 = ['advisor', 'archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'dot-big', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'file', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'label', 'label-plus', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'ssl-it', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'wordpress-minus', 'zero-circle-filled'];
|
|
11
|
-
const NAMES = exports.NAMES = ['advisor', 'archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'dot-big', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'file', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'label', 'label-plus', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'ssl-it', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'wordpress-minus', 'zero-circle-filled'];
|
|
10
|
+
const NAMES_12 = exports.NAMES_12 = ['advisor', 'archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boost', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'dot-big', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'file', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'label', 'label-plus', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'ssl-it', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'wordpress-minus', 'zero-circle-filled'];
|
|
11
|
+
const NAMES = exports.NAMES = ['advisor', 'archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boost', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'dot-big', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'file', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'label', 'label-plus', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'ssl-it', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'wordpress-minus', 'zero-circle-filled'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="16" height="
|
|
1
|
+
<svg width="16" height="12480" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
2
|
<defs>
|
|
3
3
|
<symbol viewBox="0 0 12 12" id="advisor:12">
|
|
4
4
|
<path d="M4.5 6.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM8 7a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z" />
|
|
@@ -244,6 +244,14 @@
|
|
|
244
244
|
<path fill-rule="evenodd" d="M2 1a1 1 0 0 1 1-1h9a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a1 1 0 0 1-1-1V1zm1 12V1h9a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3zm10 .733V14a1 1 0 0 1-1 1H3v-1h9c.364 0 .706-.097 1-.267z" clip-rule="evenodd" />
|
|
245
245
|
<path fill-rule="evenodd" d="M8 10a3 3 0 0 0 .878-.13c.264-.081.564.015.688.262.123.247.024.55-.236.642A4 4 0 1 1 12 7a1.5 1.5 0 0 1-2.4 1.2A2 2 0 1 1 10 7a.5.5 0 0 0 1 0 3 3 0 1 0-3 3zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z" clip-rule="evenodd" />
|
|
246
246
|
</symbol>
|
|
247
|
+
<symbol viewBox="0 0 12 12" id="boost:12">
|
|
248
|
+
<path d="M10.5 2.1c-.1 0-.1 0-.1.1l-.6 7c-.5.2-.8.7-.8 1.3 0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5c0-.6-.3-1.1-.8-1.3l-.6-7c0-.1 0-.1-.1-.1zm0 8.9c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5z" />
|
|
249
|
+
<path d="M11.5 1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5h-.1C8.1.2 5.1 1.7 3 4 1.3 6 .2 8.5 0 11.3v.2c0 .3.2.5.5.5s.5-.2.5-.5v-.2c.2-2.5 1.2-4.9 2.8-6.7C5.7 2.5 8.4 1.2 11.5 1z" />
|
|
250
|
+
</symbol>
|
|
251
|
+
<symbol viewBox="0 0 16 16" id="boost:16">
|
|
252
|
+
<path d="M15.5 1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5C11.4.1 7.6 1.8 4.9 4.5 2 7.3.1 11.2 0 15.5c0 .3.2.5.5.5s.5-.2.5-.5c.1-4 1.9-7.7 4.6-10.3 2.6-2.5 6.1-4.1 9.9-4.2z" />
|
|
253
|
+
<path d="M14 2.8c-.1 0-.1 0-.2.1l-.8 9.3a2 2 0 0 0 .9 3.8 2 2 0 0 0 .9-3.8L14.2 3c-.1-.1-.1-.2-.2-.2zM14 15c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z" />
|
|
254
|
+
</symbol>
|
|
247
255
|
<symbol viewBox="0 0 12 12" id="boundary:12">
|
|
248
256
|
<path fill-rule="evenodd" d="M3 9V2.997a1 1 0 01.342-.753L5.835.062a.25.25 0 01.33 0l2.494 2.182A1.003 1.003 0 019 2.997V9h.666a1 1 0 01.6.2l1.332 1c.769.577.361 1.8-.6 1.8H1.002c-.961 0-1.369-1.223-.6-1.8l1.333-1a1 1 0 01.6-.2H3zm5-1.565V9H6.435L8 7.435zM5 9l3-3V3.435l-4 4V9h1zm2.469-6.469L6 1.247l-2 1.75V6L7.469 2.53zM1.002 11l1.333-1h7.33l1.333 1H1.002z" clip-rule="evenodd" />
|
|
249
257
|
</symbol>
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("react");
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
11
|
var _reactTransitionGroup = require("react-transition-group");
|
|
13
12
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
@@ -41,7 +40,7 @@ function getRowKey(row, props) {
|
|
|
41
40
|
}
|
|
42
41
|
const Tbody = _ref => {
|
|
43
42
|
let {
|
|
44
|
-
baseClassName
|
|
43
|
+
baseClassName = `${_constants.CLS_PREFIX}list__wrapper`,
|
|
45
44
|
className,
|
|
46
45
|
...props
|
|
47
46
|
} = _ref;
|
|
@@ -59,18 +58,6 @@ const Tbody = _ref => {
|
|
|
59
58
|
})
|
|
60
59
|
});
|
|
61
60
|
};
|
|
62
|
-
Tbody.propTypes = {
|
|
63
|
-
onFocus: _propTypes.default.func,
|
|
64
|
-
onBlur: _propTypes.default.func,
|
|
65
|
-
className: _propTypes.default.string,
|
|
66
|
-
baseClassName: _propTypes.default.string
|
|
67
|
-
};
|
|
68
|
-
Tbody.defaultProps = {
|
|
69
|
-
onFocus: undefined,
|
|
70
|
-
onBlur: undefined,
|
|
71
|
-
className: undefined,
|
|
72
|
-
baseClassName: `${_constants.CLS_PREFIX}list__wrapper`
|
|
73
|
-
};
|
|
74
61
|
const getHumanTotalRows = _ref2 => {
|
|
75
62
|
let {
|
|
76
63
|
selectedRows,
|
|
@@ -35,11 +35,12 @@ class Progress extends _react.Component {
|
|
|
35
35
|
let isFailed = false;
|
|
36
36
|
if (children) {
|
|
37
37
|
_react.Children.forEach(children, child => {
|
|
38
|
-
if ( /*#__PURE__*/(0, _react.isValidElement)(child)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
if ( /*#__PURE__*/(0, _react.isValidElement)(child)) {
|
|
39
|
+
const status = child.props.status ?? _ProgressStep.PROGRESS_STEP_DEFAULT_STATUS;
|
|
40
|
+
isNotStarted = isNotStarted && status === _ProgressStep.STATUS_NOT_STARTED;
|
|
41
|
+
isFinished = isFinished && status === _ProgressStep.STATUS_DONE;
|
|
42
|
+
isFinishedWithWarnings = isFinishedWithWarnings && [_ProgressStep.STATUS_DONE, _ProgressStep.STATUS_WARNING].includes(status);
|
|
43
|
+
isFailed = isFailed || status === _ProgressStep.STATUS_ERROR;
|
|
43
44
|
}
|
|
44
45
|
});
|
|
45
46
|
}
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = exports.STATUS_WARNING = exports.STATUS_RUNNING = exports.STATUS_NOT_STARTED = exports.STATUS_ERROR = exports.STATUS_DONE = exports.STATUS_CANCELED = void 0;
|
|
7
|
+
exports.default = exports.STATUS_WARNING = exports.STATUS_RUNNING = exports.STATUS_NOT_STARTED = exports.STATUS_ERROR = exports.STATUS_DONE = exports.STATUS_CANCELED = exports.PROGRESS_STEP_DEFAULT_STATUS = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _Icon = _interopRequireWildcard(require("../Icon"));
|
|
@@ -23,6 +23,7 @@ const STATUS_DONE = exports.STATUS_DONE = 'done';
|
|
|
23
23
|
const STATUS_WARNING = exports.STATUS_WARNING = 'warning';
|
|
24
24
|
const STATUS_ERROR = exports.STATUS_ERROR = 'error';
|
|
25
25
|
const STATUS_CANCELED = exports.STATUS_CANCELED = 'canceled';
|
|
26
|
+
const PROGRESS_STEP_DEFAULT_STATUS = exports.PROGRESS_STEP_DEFAULT_STATUS = STATUS_NOT_STARTED;
|
|
26
27
|
/**
|
|
27
28
|
* `ProgressStep` is a part of the [Progress](#!/Progress) component.
|
|
28
29
|
* @since 1.10.0
|
|
@@ -34,9 +35,9 @@ const ProgressStep = _ref => {
|
|
|
34
35
|
icon,
|
|
35
36
|
title,
|
|
36
37
|
statusText,
|
|
37
|
-
progress,
|
|
38
|
-
status,
|
|
39
|
-
baseClassName
|
|
38
|
+
progress = -1,
|
|
39
|
+
status = PROGRESS_STEP_DEFAULT_STATUS,
|
|
40
|
+
baseClassName = `${_constants.CLS_PREFIX}progress-step`,
|
|
40
41
|
...props
|
|
41
42
|
} = _ref;
|
|
42
43
|
let intent = null;
|
|
@@ -112,14 +113,4 @@ const ProgressStep = _ref => {
|
|
|
112
113
|
})]
|
|
113
114
|
});
|
|
114
115
|
};
|
|
115
|
-
ProgressStep.defaultProps = {
|
|
116
|
-
icon: null,
|
|
117
|
-
title: null,
|
|
118
|
-
status: STATUS_NOT_STARTED,
|
|
119
|
-
statusText: null,
|
|
120
|
-
progress: -1,
|
|
121
|
-
children: null,
|
|
122
|
-
className: null,
|
|
123
|
-
baseClassName: `${_constants.CLS_PREFIX}progress-step`
|
|
124
|
-
};
|
|
125
116
|
var _default = exports.default = ProgressStep;
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "PROGRESS_STEP_DEFAULT_STATUS", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ProgressStep.PROGRESS_STEP_DEFAULT_STATUS;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "STATUS_CANCELED", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function () {
|
|
@@ -42,21 +42,6 @@ const getErrorsForChildren = (form, children) => {
|
|
|
42
42
|
return errors;
|
|
43
43
|
};
|
|
44
44
|
const SECTION_BASE_CLASS_NAME = exports.SECTION_BASE_CLASS_NAME = `${_constants.CLS_PREFIX}section`;
|
|
45
|
-
const DEFAULT_PROPS = {
|
|
46
|
-
title: undefined,
|
|
47
|
-
intent: undefined,
|
|
48
|
-
collapsible: false,
|
|
49
|
-
collapsed: false,
|
|
50
|
-
onTitleChange: undefined,
|
|
51
|
-
onClose: undefined,
|
|
52
|
-
onToggle: undefined,
|
|
53
|
-
buttons: undefined,
|
|
54
|
-
vertical: undefined,
|
|
55
|
-
children: undefined,
|
|
56
|
-
className: undefined,
|
|
57
|
-
baseClassName: SECTION_BASE_CLASS_NAME,
|
|
58
|
-
form: undefined
|
|
59
|
-
};
|
|
60
45
|
class Section extends _react.Component {
|
|
61
46
|
constructor() {
|
|
62
47
|
super(...arguments);
|
|
@@ -244,18 +229,25 @@ class Section extends _react.Component {
|
|
|
244
229
|
* and comprehension of the presented information.
|
|
245
230
|
* @since 0.0.54
|
|
246
231
|
*/
|
|
247
|
-
|
|
248
|
-
|
|
232
|
+
const SectionWrapper = _ref8 => {
|
|
233
|
+
let {
|
|
234
|
+
collapsible = false,
|
|
235
|
+
collapsed = false,
|
|
236
|
+
baseClassName = SECTION_BASE_CLASS_NAME,
|
|
237
|
+
...props
|
|
238
|
+
} = _ref8;
|
|
249
239
|
const form = (0, _react.useContext)(_FormContext.default);
|
|
250
240
|
const verticalContext = (0, _react.useContext)(_VerticalContext.default);
|
|
251
241
|
const vertical = props.vertical === undefined ? verticalContext : props.vertical;
|
|
252
242
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Section, {
|
|
253
243
|
...props,
|
|
254
244
|
form: form,
|
|
255
|
-
vertical: vertical
|
|
245
|
+
vertical: vertical,
|
|
246
|
+
collapsible: collapsible,
|
|
247
|
+
collapsed: collapsed,
|
|
248
|
+
baseClassName: baseClassName
|
|
256
249
|
});
|
|
257
250
|
};
|
|
258
251
|
SectionWrapper.displayName = 'Section';
|
|
259
|
-
SectionWrapper.defaultProps = DEFAULT_PROPS;
|
|
260
252
|
SectionWrapper.WrappedComponent = Section;
|
|
261
253
|
var _default = exports.default = SectionWrapper;
|
|
@@ -13,7 +13,7 @@ var _ButtonGroup = _interopRequireDefault(require("../ButtonGroup"));
|
|
|
13
13
|
var _Dropdown = _interopRequireDefault(require("../Dropdown"));
|
|
14
14
|
var _utils = require("../utils");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
// Copyright 1999-
|
|
16
|
+
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
|
|
17
17
|
|
|
18
18
|
const focusStrategy = {
|
|
19
19
|
getNext(container, element) {
|
|
@@ -90,8 +90,7 @@ const SplitButton = _ref => {
|
|
|
90
90
|
menuPlacement: "bottom-end",
|
|
91
91
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
92
92
|
size: size,
|
|
93
|
-
caret: true
|
|
94
|
-
tabIndex: -1
|
|
93
|
+
caret: true
|
|
95
94
|
})
|
|
96
95
|
})]
|
|
97
96
|
});
|