@progress/kendo-react-layout 5.6.0-dev.202208291418 → 5.6.0-dev.202209021051
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/LICENSE.md +2 -2
- package/README.md +4 -4
- package/about.md +1 -1
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/dist/es/breadcrumb/BreadcrumbDelimiter.js +9 -6
- package/dist/es/expansionpanel/ExpansionPanel.js +13 -13
- package/dist/es/menu/components/MenuItemArrow.d.ts +4 -4
- package/dist/es/menu/components/MenuItemArrow.js +16 -13
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/panelbar/PanelBarItem.js +11 -15
- package/dist/es/splitter/SplitterBar.d.ts +0 -2
- package/dist/es/splitter/SplitterBar.js +21 -36
- package/dist/es/stepper/Step.js +5 -4
- package/dist/es/tabstrip/TabStrip.js +1 -1
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +8 -5
- package/dist/npm/expansionpanel/ExpansionPanel.js +12 -12
- package/dist/npm/menu/components/MenuItemArrow.d.ts +4 -4
- package/dist/npm/menu/components/MenuItemArrow.js +16 -13
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/panelbar/PanelBarItem.js +10 -14
- package/dist/npm/splitter/SplitterBar.d.ts +0 -2
- package/dist/npm/splitter/SplitterBar.js +20 -35
- package/dist/npm/stepper/Step.js +5 -4
- package/dist/npm/tabstrip/TabStrip.js +1 -1
- package/dist/systemjs/kendo-react-layout.js +1 -1
- package/package.json +14 -14
|
@@ -30,9 +30,6 @@ var SplitterBar = /** @class */ (function (_super) {
|
|
|
30
30
|
var event = data.event;
|
|
31
31
|
var _a = _this.props, onDrag = _a.onDrag, index = _a.index;
|
|
32
32
|
var element = _this.draggable && _this.draggable.element;
|
|
33
|
-
if (!isLast && event) {
|
|
34
|
-
event.originalEvent.preventDefault();
|
|
35
|
-
}
|
|
36
33
|
if (element && !_this.isStatic && _this.isDraggable) {
|
|
37
34
|
onDrag(event, element, index, isFirst, isLast);
|
|
38
35
|
}
|
|
@@ -96,34 +93,6 @@ var SplitterBar = /** @class */ (function (_super) {
|
|
|
96
93
|
}
|
|
97
94
|
}
|
|
98
95
|
};
|
|
99
|
-
_this.previousArrowClass = function (isHorizontal) {
|
|
100
|
-
var _a;
|
|
101
|
-
var prev = _this.props.prev;
|
|
102
|
-
var isCollapsible = prev.collapsible;
|
|
103
|
-
var isCollapsed = prev.collapsed;
|
|
104
|
-
return (0, kendo_react_common_1.classNames)('k-icon', (_a = {},
|
|
105
|
-
_a['k-hidden'] = !isCollapsible,
|
|
106
|
-
_a['k-collapse-prev'] = isCollapsible,
|
|
107
|
-
_a['k-i-arrow-60-left'] = isCollapsible && isHorizontal && !isCollapsed,
|
|
108
|
-
_a['k-i-arrow-60-right'] = isCollapsible && isHorizontal && isCollapsed,
|
|
109
|
-
_a['k-i-arrow-60-up'] = isCollapsible && !isHorizontal && !isCollapsed,
|
|
110
|
-
_a['k-i-arrow-60-down'] = isCollapsible && !isHorizontal && isCollapsed,
|
|
111
|
-
_a));
|
|
112
|
-
};
|
|
113
|
-
_this.nextArrowClass = function (isHorizontal) {
|
|
114
|
-
var _a;
|
|
115
|
-
var next = _this.props.next;
|
|
116
|
-
var isCollapsible = next.collapsible;
|
|
117
|
-
var isCollapsed = next.collapsed;
|
|
118
|
-
return (0, kendo_react_common_1.classNames)('k-icon', (_a = {},
|
|
119
|
-
_a['k-hidden'] = !isCollapsible,
|
|
120
|
-
_a['k-collapse-next'] = isCollapsible,
|
|
121
|
-
_a['k-i-arrow-60-right'] = isCollapsible && isHorizontal && !isCollapsed,
|
|
122
|
-
_a['k-i-arrow-60-left'] = isCollapsible && isHorizontal && isCollapsed,
|
|
123
|
-
_a['k-i-arrow-60-down'] = isCollapsible && !isHorizontal && !isCollapsed,
|
|
124
|
-
_a['k-i-arrow-60-up'] = isCollapsible && !isHorizontal && isCollapsed,
|
|
125
|
-
_a));
|
|
126
|
-
};
|
|
127
96
|
_this.state = {
|
|
128
97
|
focused: false
|
|
129
98
|
};
|
|
@@ -171,13 +140,29 @@ var SplitterBar = /** @class */ (function (_super) {
|
|
|
171
140
|
_a['k-splitbar-static-horizontal'] = isHorizontal && isStatic,
|
|
172
141
|
_a['k-splitbar-static-vertical'] = !isHorizontal && isStatic,
|
|
173
142
|
_a));
|
|
174
|
-
var previousArrowClass = this.previousArrowClass(isHorizontal);
|
|
175
|
-
var nextArrowClass = this.nextArrowClass(isHorizontal);
|
|
176
143
|
return (React.createElement(kendo_react_common_1.Draggable, { onPress: function (event) { return _this.onDrag(event, true, false); }, onDrag: function (event) { return _this.onDrag(event, false, false); }, onRelease: function (event) { return _this.onDrag(event, false, true); }, ref: function (component) { _this.draggable = component; } },
|
|
177
144
|
React.createElement("div", { tabIndex: isStatic ? -1 : 0, role: 'separator', className: barClasses, style: { touchAction: 'none' }, onFocus: this.onFocus, onBlur: this.onBlur, onDoubleClick: this.onToggle, onKeyDown: this.onKeyDown },
|
|
178
|
-
React.createElement("div", { className:
|
|
145
|
+
this.props.prev.collapsible && React.createElement("div", { className: 'k-collapse-prev', onClick: this.onPrevToggle },
|
|
146
|
+
React.createElement(kendo_react_common_1.Icon, { name: this.props.prev.collapsible
|
|
147
|
+
? isHorizontal
|
|
148
|
+
? this.props.prev.collapsed
|
|
149
|
+
? 'caret-alt-right'
|
|
150
|
+
: 'caret-alt-left'
|
|
151
|
+
: this.props.prev.collapsed
|
|
152
|
+
? 'caret-alt-down'
|
|
153
|
+
: 'caret-alt-up'
|
|
154
|
+
: undefined })),
|
|
179
155
|
React.createElement("div", { className: 'k-resize-handle' }),
|
|
180
|
-
React.createElement("div", { className:
|
|
156
|
+
this.props.next.collapsible && React.createElement("div", { className: 'k-collapse-next', onClick: this.onNextToggle },
|
|
157
|
+
React.createElement(kendo_react_common_1.Icon, { name: this.props.next.collapsible
|
|
158
|
+
? isHorizontal
|
|
159
|
+
? this.props.next.collapsed
|
|
160
|
+
? 'caret-alt-left'
|
|
161
|
+
: 'caret-alt-right'
|
|
162
|
+
: this.props.next.collapsed
|
|
163
|
+
? 'caret-alt-up'
|
|
164
|
+
: 'caret-alt-down'
|
|
165
|
+
: undefined })))));
|
|
181
166
|
};
|
|
182
167
|
return SplitterBar;
|
|
183
168
|
}(React.Component));
|
package/dist/npm/stepper/Step.js
CHANGED
|
@@ -93,15 +93,16 @@ exports.Step = React.forwardRef(function (props, target) {
|
|
|
93
93
|
'k-step-done': index < value,
|
|
94
94
|
'k-step-current': current,
|
|
95
95
|
'k-step-optional': optional,
|
|
96
|
-
'k-step-disabled': disabled,
|
|
97
|
-
'k-step-focus': focused,
|
|
98
96
|
'k-step-error': isValid !== undefined && !isValid,
|
|
99
97
|
'k-step-success': isValid
|
|
98
|
+
}, {
|
|
99
|
+
'k-disabled': disabled,
|
|
100
|
+
'k-focus': focused
|
|
100
101
|
}, className); }, [index, numOfSteps, value, current, optional, disabled, focused, isValid, className]);
|
|
101
102
|
var itemStyles = React.useMemo(function () { return (__assign({ maxWidth: !isVertical ? "calc(100% / ".concat(numOfSteps, ")") : undefined, maxHeight: isVertical ? "calc(100% / ".concat(numOfSteps, ")") : undefined, pointerEvents: !allowClick ? 'none' : undefined }, style)); }, [isVertical, numOfSteps, style, allowClick]);
|
|
102
103
|
var validationIconClasses = (isValid
|
|
103
|
-
? successIcon ? "".concat(successIcon) : 'k-icon k-i-check'
|
|
104
|
-
: errorIcon ? "".concat(errorIcon) : 'k-icon k-i-
|
|
104
|
+
? successIcon ? "".concat(successIcon) : 'k-icon k-i-check-circle'
|
|
105
|
+
: errorIcon ? "".concat(errorIcon) : 'k-icon k-i-exclamation-circle');
|
|
105
106
|
var validationIcons = (React.createElement("span", { className: 'k-step-indicator-icon ' + validationIconClasses, "aria-hidden": "true" }));
|
|
106
107
|
var stepIndicator = (React.createElement(React.Fragment, null, mode !== 'labels' ?
|
|
107
108
|
React.createElement("span", { className: "k-step-indicator", "aria-hidden": true, style: { transitionDuration: progressAnimation + 'ms' } }, icon
|
|
@@ -170,7 +170,7 @@ var TabStrip = /** @class */ (function (_super) {
|
|
|
170
170
|
var tabProps = __assign(__assign({}, this.props), { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
|
|
171
171
|
var tabPosition = tabProps.tabPosition, _a = tabProps.tabIndex, tabIndex = _a === void 0 ? 0 : _a;
|
|
172
172
|
var bottom = tabPosition === 'bottom';
|
|
173
|
-
var componentClasses = (0, kendo_react_common_1.classNames)('k-tabstrip',
|
|
173
|
+
var componentClasses = (0, kendo_react_common_1.classNames)('k-tabstrip', {
|
|
174
174
|
'k-tabstrip-left': tabPosition === 'left',
|
|
175
175
|
'k-tabstrip-right': tabPosition === 'right',
|
|
176
176
|
'k-tabstrip-bottom': tabPosition === 'bottom',
|