oolib 2.229.3 → 2.230.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.
|
@@ -71,9 +71,9 @@ var parseISOValue = function (value) {
|
|
|
71
71
|
return { date: d.toISOString(), time: "".concat(hours, ":").concat(minutes, ":").concat(seconds) };
|
|
72
72
|
};
|
|
73
73
|
var DateTimePicker = function (props) {
|
|
74
|
-
var parentOnChange = props.onChange, value = props.value, id = props.id, readOnly = props.readOnly, futureDateOnly = props.futureDateOnly, previousDateOnly = props.previousDateOnly, passChangeHandlerOps = props.passChangeHandlerOps, invert = props.invert, disabled = props.disabled;
|
|
74
|
+
var parentOnChange = props.onChange, value = props.value, id = props.id, readOnly = props.readOnly, futureDateOnly = props.futureDateOnly, previousDateOnly = props.previousDateOnly, passChangeHandlerOps = props.passChangeHandlerOps, invert = props.invert, disabled = props.disabled, _a = props.debug, debug = _a === void 0 ? false : _a;
|
|
75
75
|
var normalized = (0, react_1.useMemo)(function () { return parseISOValue(value); }, [value]);
|
|
76
|
-
var
|
|
76
|
+
var _b = (0, react_1.useState)({ date: normalized.date, time: normalized.time && (0, convertTo12Hour_1.convertTo12Hour)(normalized.time) }), _value = _b[0], _setValue = _b[1];
|
|
77
77
|
var handleOnChange = function (k, v) {
|
|
78
78
|
var _a;
|
|
79
79
|
var newVal = __assign(__assign({}, _value), (_a = {}, _a[k] = v, _a));
|
|
@@ -103,7 +103,7 @@ var DateTimePicker = function (props) {
|
|
|
103
103
|
react_1.default.createElement("div", { style: { display: 'flex', alignItems: 'center', gap: '2rem' } },
|
|
104
104
|
react_1.default.createElement(DatePicker_1.default, { value: _value.date, onChange: function (k, v) { return handleOnChange('date', v); }, readOnly: readOnly, futureDateOnly: futureDateOnly, previousDateOnly: previousDateOnly, invert: invert, disabled: disabled }),
|
|
105
105
|
react_1.default.createElement(TimePicker_1.TimePicker, { value: _value.time, onChange: function (k, v) { return handleOnChange('time', v); }, readOnly: readOnly, invert: invert, disabled: disabled }))),
|
|
106
|
-
react_1.default.createElement("pre", { style: { fontSize: 10, color: 'red', marginTop: 4 } },
|
|
106
|
+
debug && react_1.default.createElement("pre", { style: { fontSize: 10, color: 'red', marginTop: 4 } },
|
|
107
107
|
"DEBUG prop value: ",
|
|
108
108
|
JSON.stringify(value),
|
|
109
109
|
" | internal _value: ",
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -162,6 +162,9 @@ export namespace icons {
|
|
|
162
162
|
export { Cursor };
|
|
163
163
|
export { LockSimple };
|
|
164
164
|
export { FlowArrow };
|
|
165
|
+
export { ArrowCounterClockwise };
|
|
166
|
+
export { Selection };
|
|
167
|
+
export { Flask };
|
|
165
168
|
export { OkeGoogleIcon };
|
|
166
169
|
export { LetterH };
|
|
167
170
|
export { IndexIcon };
|
|
@@ -394,6 +397,9 @@ import { TextboxIcon as Textbox } from "@phosphor-icons/react";
|
|
|
394
397
|
import { CursorIcon as Cursor } from "@phosphor-icons/react";
|
|
395
398
|
import { LockSimpleIcon as LockSimple } from "@phosphor-icons/react";
|
|
396
399
|
import { FlowArrowIcon as FlowArrow } from "@phosphor-icons/react";
|
|
400
|
+
import { ArrowCounterClockwiseIcon as ArrowCounterClockwise } from "@phosphor-icons/react";
|
|
401
|
+
import { SelectionIcon as Selection } from "@phosphor-icons/react";
|
|
402
|
+
import { FlaskIcon as Flask } from "@phosphor-icons/react";
|
|
397
403
|
import { OkeGoogleIcon } from "./custom";
|
|
398
404
|
import { LetterH } from "./custom";
|
|
399
405
|
import { IndexIcon } from "./custom";
|
package/dist/icons/index.js
CHANGED
|
@@ -167,6 +167,9 @@ exports.icons = {
|
|
|
167
167
|
Cursor: react_1.CursorIcon,
|
|
168
168
|
LockSimple: react_1.LockSimpleIcon,
|
|
169
169
|
FlowArrow: react_1.FlowArrowIcon,
|
|
170
|
+
ArrowCounterClockwise: react_1.ArrowCounterClockwiseIcon,
|
|
171
|
+
Selection: react_1.SelectionIcon,
|
|
172
|
+
Flask: react_1.FlaskIcon,
|
|
170
173
|
//custom icons
|
|
171
174
|
OkeGoogleIcon: custom_1.OkeGoogleIcon,
|
|
172
175
|
LetterH: custom_1.LetterH,
|