intergalactic 15.127.0 → 15.128.0-prerelease.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/CHANGELOG.md +29 -0
- package/add-filter/package.json +1 -1
- package/bulk-textarea/BulkTextarea.d.ts +1 -1
- package/bulk-textarea/BulkTextarea.types.d.ts +23 -21
- package/bulk-textarea/components/InputField/InputField.d.ts +4 -4
- package/bulk-textarea/components/InputField/InputField.types.d.ts +4 -4
- package/bulk-textarea/lib/cjs/BulkTextarea.js +10 -8
- package/bulk-textarea/lib/cjs/BulkTextarea.js.map +1 -1
- package/bulk-textarea/lib/cjs/BulkTextarea.types.js.map +1 -1
- package/bulk-textarea/lib/cjs/components/InputField/InputField.js +39 -26
- package/bulk-textarea/lib/cjs/components/InputField/InputField.js.map +1 -1
- package/bulk-textarea/lib/cjs/components/InputField/InputField.types.js.map +1 -1
- package/bulk-textarea/lib/cjs/components/InputField/inputField.shadow.css +17 -7
- package/bulk-textarea/lib/es6/BulkTextarea.js +10 -8
- package/bulk-textarea/lib/es6/BulkTextarea.js.map +1 -1
- package/bulk-textarea/lib/es6/BulkTextarea.types.js.map +1 -1
- package/bulk-textarea/lib/es6/components/InputField/InputField.js +39 -26
- package/bulk-textarea/lib/es6/components/InputField/InputField.js.map +1 -1
- package/bulk-textarea/lib/es6/components/InputField/InputField.types.js.map +1 -1
- package/bulk-textarea/lib/es6/components/InputField/inputField.shadow.css +17 -7
- package/bulk-textarea/lib/esm/BulkTextarea.mjs +53 -50
- package/bulk-textarea/lib/esm/components/InputField/InputField.mjs +273 -259
- package/bulk-textarea/lib/types/BulkTextarea.d.ts +1 -1
- package/bulk-textarea/lib/types/BulkTextarea.types.d.ts +23 -21
- package/bulk-textarea/lib/types/components/InputField/InputField.d.ts +4 -4
- package/bulk-textarea/lib/types/components/InputField/InputField.types.d.ts +4 -4
- package/bulk-textarea/package.json +1 -1
- package/components.json +14 -14
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/errors/lib/esm/Error.mjs +40 -40
- package/errors/package.json +1 -1
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +10 -4
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +18 -14
- package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js.map +1 -1
- package/feedback-form/lib/cjs/style/slider-rating.shadow.css +1 -3
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +10 -4
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +18 -14
- package/feedback-form/lib/es6/component/slider-rating/SliderRating.js.map +1 -1
- package/feedback-form/lib/es6/style/slider-rating.shadow.css +1 -3
- package/feedback-form/lib/esm/FeedbackForm.mjs +39 -39
- package/feedback-form/lib/esm/component/checkbox-button/CheckboxButton.mjs +13 -13
- package/feedback-form/lib/esm/component/feedback-rating/FeedbackRating.mjs +85 -81
- package/feedback-form/lib/esm/component/slider-rating/SliderRating.mjs +83 -79
- package/feedback-form/package.json +1 -1
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/illustration/package.json +1 -1
- package/modal/lib/cjs/Modal.js +8 -8
- package/modal/lib/es6/Modal.js +8 -8
- package/modal/lib/esm/Modal.mjs +73 -73
- package/modal/package.json +1 -1
- package/outside-click/lib/cjs/OutsideClick.js +14 -7
- package/outside-click/lib/cjs/OutsideClick.js.map +1 -1
- package/outside-click/lib/es6/OutsideClick.js +14 -7
- package/outside-click/lib/es6/OutsideClick.js.map +1 -1
- package/outside-click/lib/esm/OutsideClick.mjs +39 -35
- package/outside-click/package.json +1 -1
- package/package.json +1 -1
- package/popper/lib/cjs/Popper.js +6 -6
- package/popper/lib/es6/Popper.js +6 -6
- package/popper/lib/esm/Popper.mjs +25 -25
- package/popper/package.json +1 -1
- package/select/lib/cjs/InputSearch.js +15 -19
- package/select/lib/cjs/InputSearch.js.map +1 -1
- package/select/lib/cjs/Select.js +8 -8
- package/select/lib/es6/InputSearch.js +15 -19
- package/select/lib/es6/InputSearch.js.map +1 -1
- package/select/lib/es6/Select.js +8 -8
- package/select/lib/esm/InputSearch.mjs +63 -65
- package/select/lib/esm/Select.mjs +122 -122
- package/select/package.json +1 -1
- package/side-panel/lib/cjs/SidePanel.js +16 -16
- package/side-panel/lib/es6/SidePanel.js +16 -16
- package/side-panel/lib/esm/SidePanel.mjs +77 -77
- package/side-panel/package.json +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/time-picker/lib/esm/TimePicker.mjs +38 -38
- package/time-picker/package.json +1 -1
- package/tooltip/lib/cjs/Tooltip.js +9 -9
- package/tooltip/lib/es6/Tooltip.js +9 -9
- package/tooltip/lib/esm/Tooltip.mjs +103 -103
- package/tooltip/package.json +1 -1
- package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
- package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
- package/widget-empty/lib/esm/WidgetEmpty.mjs +32 -32
- package/widget-empty/package.json +1 -1
- package/wizard/lib/cjs/Wizard.js +12 -12
- package/wizard/lib/es6/Wizard.js +12 -12
- package/wizard/lib/esm/Wizard.mjs +103 -103
- package/wizard/package.json +1 -1
@@ -1,29 +1,29 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import D from "@babel/runtime/helpers/esm/classCallCheck";
|
2
|
+
import O from "@babel/runtime/helpers/esm/createClass";
|
3
3
|
import d from "@babel/runtime/helpers/esm/assertThisInitialized";
|
4
|
-
import
|
5
|
-
import
|
4
|
+
import V from "@babel/runtime/helpers/esm/inherits";
|
5
|
+
import q from "@babel/runtime/helpers/esm/createSuper";
|
6
6
|
import i from "@babel/runtime/helpers/esm/defineProperty";
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import { Box as
|
10
|
-
import { InputField as
|
11
|
-
import { Counter as
|
12
|
-
import { ClearAll as
|
13
|
-
import { ErrorsNavigation as
|
14
|
-
import { localizedMessages as
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import
|
18
|
-
var
|
19
|
-
|
20
|
-
var R =
|
21
|
-
function
|
7
|
+
import H, { assignProps as M, Component as j } from 'intergalactic/core';
|
8
|
+
import x from "react";
|
9
|
+
import { Box as G } from 'intergalactic/flex-box';
|
10
|
+
import { InputField as J } from "./components/InputField/InputField.mjs";
|
11
|
+
import { Counter as K } from "./components/Counter.mjs";
|
12
|
+
import { ClearAll as Q } from "./components/ClearAll.mjs";
|
13
|
+
import { ErrorsNavigation as U } from "./components/ErrorsNavigation.mjs";
|
14
|
+
import { localizedMessages as W } from "./translations/__intergalactic-dynamic-locales.mjs";
|
15
|
+
import X from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
16
|
+
import Y from 'intergalactic/utils/lib/enhances/focusSourceEnhance';
|
17
|
+
import Z from 'intergalactic/utils/lib/uniqueID';
|
18
|
+
var I = /* @__PURE__ */ function(_) {
|
19
|
+
V(g, _);
|
20
|
+
var R = q(g);
|
21
|
+
function g() {
|
22
22
|
var r;
|
23
|
-
|
23
|
+
D(this, g);
|
24
24
|
for (var e = arguments.length, t = new Array(e), l = 0; l < e; l++)
|
25
25
|
t[l] = arguments[l];
|
26
|
-
return r = R.call.apply(R, [this].concat(t)), i(d(r), "inputFieldRef", /* @__PURE__ */
|
26
|
+
return r = R.call.apply(R, [this].concat(t)), i(d(r), "inputFieldRef", /* @__PURE__ */ x.createRef()), i(d(r), "clearAllButtonRef", /* @__PURE__ */ x.createRef()), i(d(r), "nextButtonRef", /* @__PURE__ */ x.createRef()), i(d(r), "prevButtonRef", /* @__PURE__ */ x.createRef()), i(d(r), "counterRef", /* @__PURE__ */ x.createRef()), i(d(r), "state", {
|
27
27
|
linesCount: 0,
|
28
28
|
isEmptyText: !0,
|
29
29
|
errorIndex: -1,
|
@@ -55,7 +55,7 @@ var E = /* @__PURE__ */ function(_) {
|
|
55
55
|
};
|
56
56
|
}), r;
|
57
57
|
}
|
58
|
-
return
|
58
|
+
return O(g, [{
|
59
59
|
key: "uncontrolledProps",
|
60
60
|
value: function() {
|
61
61
|
return {
|
@@ -73,16 +73,16 @@ var E = /* @__PURE__ */ function(_) {
|
|
73
73
|
}, {
|
74
74
|
key: "getInputFieldProps",
|
75
75
|
value: function() {
|
76
|
-
var e = this, t = this.asProps, l = t.value, n = t.size, s = t.minRows, a = t.maxRows, h = t.lineValidation, u = t.placeholder, o = t.validateOn,
|
76
|
+
var e = this, t = this.asProps, l = t.value, n = t.size, s = t.minRows, a = t.maxRows, h = t.lineValidation, u = t.placeholder, o = t.validateOn, B = t.linesDelimiters, $ = t.maxLines, b = t.disabled, k = t.readonly, L = t.pasteProps, S = t.lineProcessing, w = t.errors, v = w === void 0 ? [] : w, y = t.showErrors, E = this.state, T = E.errorIndex, z = E.prevError, A = E.linesCount, F = E.highlightErrorIndex;
|
77
77
|
return i({
|
78
78
|
value: l,
|
79
79
|
size: n,
|
80
|
-
state: y && (
|
81
|
-
disabled:
|
80
|
+
state: y && (v == null ? void 0 : v.length) > 0 ? "invalid" : "normal",
|
81
|
+
disabled: b,
|
82
82
|
readonly: k,
|
83
83
|
minRows: s,
|
84
84
|
maxRows: a,
|
85
|
-
maxLines:
|
85
|
+
maxLines: $,
|
86
86
|
placeholder: u,
|
87
87
|
prevError: z,
|
88
88
|
pasteProps: L,
|
@@ -93,26 +93,27 @@ var E = /* @__PURE__ */ function(_) {
|
|
93
93
|
o != null && o.includes("blurLine") && e.handlers.showErrors(!0);
|
94
94
|
},
|
95
95
|
onBlur: function(f, p) {
|
96
|
+
var m, C;
|
96
97
|
o != null && o.includes("blur") && (e.asProps.focusSourceRef.current === "keyboard" || p instanceof FocusEvent && p.relatedTarget !== e.clearAllButtonRef.current) && e.handlers.showErrors(!0), e.asProps.showErrors === !1 && (o != null && o.includes("blur") || o != null && o.includes("blurLine")) && setTimeout(function() {
|
97
|
-
var
|
98
|
-
(
|
99
|
-
}, 250), C
|
98
|
+
var c;
|
99
|
+
(c = e.nextButtonRef.current) === null || c === void 0 || c.focus();
|
100
|
+
}, 250), (m = (C = e.props).onChange) === null || m === void 0 || m.call(C, f, p);
|
100
101
|
},
|
101
102
|
showErrors: y,
|
102
103
|
validateOn: o,
|
103
104
|
lineValidation: h,
|
104
|
-
errors:
|
105
|
+
errors: v,
|
105
106
|
onErrorsChange: function(f) {
|
106
|
-
var p = f.length === 0 ?
|
107
|
+
var p = f.length === 0 ? v[0] : void 0;
|
107
108
|
e.handlers.errors(f), e.setState({
|
108
109
|
prevError: p
|
109
110
|
}), setTimeout(function() {
|
110
|
-
var
|
111
|
-
if (
|
112
|
-
var
|
113
|
-
e.handlers.state(
|
111
|
+
var m = e.asProps, C = m.showErrors, c = m.errors;
|
112
|
+
if (C) {
|
113
|
+
var N = f.length === 0 ? "normal" : "invalid";
|
114
|
+
e.handlers.state(N);
|
114
115
|
}
|
115
|
-
(
|
116
|
+
(c == null ? void 0 : c.length) === 0 && (e.handlers.showErrors(!1), setTimeout(function() {
|
116
117
|
e.setState({
|
117
118
|
prevError: void 0
|
118
119
|
});
|
@@ -122,7 +123,7 @@ var E = /* @__PURE__ */ function(_) {
|
|
122
123
|
highlightErrorIndex: F,
|
123
124
|
errorIndex: T,
|
124
125
|
onErrorIndexChange: function(f) {
|
125
|
-
var p =
|
126
|
+
var p = v[T];
|
126
127
|
e.setState({
|
127
128
|
errorIndex: f,
|
128
129
|
prevError: p,
|
@@ -181,14 +182,14 @@ var E = /* @__PURE__ */ function(_) {
|
|
181
182
|
key: "render",
|
182
183
|
value: function() {
|
183
184
|
var e = this.asProps;
|
184
|
-
return /* @__PURE__ */
|
185
|
+
return /* @__PURE__ */ x.createElement(G, M({
|
185
186
|
__excludeProps: ["onBlur", "value", "placeholder"]
|
186
187
|
}, e));
|
187
188
|
}
|
188
|
-
}]),
|
189
|
-
}(
|
190
|
-
i(
|
191
|
-
i(
|
189
|
+
}]), g;
|
190
|
+
}(j);
|
191
|
+
i(I, "displayName", "BulkTextarea");
|
192
|
+
i(I, "defaultProps", {
|
192
193
|
defaultValue: "",
|
193
194
|
size: "m",
|
194
195
|
defaultState: "normal",
|
@@ -200,13 +201,15 @@ i(E, "defaultProps", {
|
|
200
201
|
defaultErrors: [],
|
201
202
|
defaultShowErrors: !1
|
202
203
|
});
|
203
|
-
i(
|
204
|
-
var
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
204
|
+
i(I, "enhance", [X(W), Y(), Z()]);
|
205
|
+
var xr = function() {
|
206
|
+
return H(I, {
|
207
|
+
InputField: J,
|
208
|
+
Counter: K,
|
209
|
+
ClearAll: Q,
|
210
|
+
ErrorsNavigation: U
|
211
|
+
});
|
212
|
+
}();
|
210
213
|
export {
|
211
|
-
|
214
|
+
xr as default
|
212
215
|
};
|