@ceed/ads 1.39.0 → 1.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/dist/index.cjs
CHANGED
|
@@ -3053,6 +3053,14 @@ var DatePicker = (0, import_react21.forwardRef)((inProps, ref) => {
|
|
|
3053
3053
|
},
|
|
3054
3054
|
[inputReadOnly, isAlphabeticDisplay, buttonRef]
|
|
3055
3055
|
);
|
|
3056
|
+
const handleInputClick = (0, import_react21.useCallback)(
|
|
3057
|
+
(event) => {
|
|
3058
|
+
if (inputReadOnly && !readOnly) {
|
|
3059
|
+
handleCalendarToggle(event);
|
|
3060
|
+
}
|
|
3061
|
+
},
|
|
3062
|
+
[inputReadOnly, readOnly, handleCalendarToggle]
|
|
3063
|
+
);
|
|
3056
3064
|
const handlePresetClick = (0, import_react21.useCallback)(
|
|
3057
3065
|
(presetValue) => {
|
|
3058
3066
|
handleChange({
|
|
@@ -3104,7 +3112,8 @@ var DatePicker = (0, import_react21.forwardRef)((inProps, ref) => {
|
|
|
3104
3112
|
cursor: isAlphabeticDisplay || inputReadOnly || readOnly ? "default" : "text"
|
|
3105
3113
|
}
|
|
3106
3114
|
},
|
|
3107
|
-
onMouseDown: handleInputMouseDown
|
|
3115
|
+
onMouseDown: handleInputMouseDown,
|
|
3116
|
+
onClick: handleInputClick
|
|
3108
3117
|
}
|
|
3109
3118
|
},
|
|
3110
3119
|
className,
|
|
@@ -5349,6 +5358,14 @@ var DateRangePicker = (0, import_react30.forwardRef)((inProps, ref) => {
|
|
|
5349
5358
|
},
|
|
5350
5359
|
[inputReadOnly, isAlphabeticDisplay, buttonRef]
|
|
5351
5360
|
);
|
|
5361
|
+
const handleInputClick = (0, import_react30.useCallback)(
|
|
5362
|
+
(event) => {
|
|
5363
|
+
if (inputReadOnly && !readOnly) {
|
|
5364
|
+
handleCalendarToggle(event);
|
|
5365
|
+
}
|
|
5366
|
+
},
|
|
5367
|
+
[inputReadOnly, readOnly, handleCalendarToggle]
|
|
5368
|
+
);
|
|
5352
5369
|
const handlePresetClick = (0, import_react30.useCallback)(
|
|
5353
5370
|
(presetValue) => {
|
|
5354
5371
|
if (props.value !== void 0) {
|
|
@@ -5402,7 +5419,8 @@ var DateRangePicker = (0, import_react30.forwardRef)((inProps, ref) => {
|
|
|
5402
5419
|
cursor: isAlphabeticDisplay || inputReadOnly || readOnly ? "default" : "text"
|
|
5403
5420
|
}
|
|
5404
5421
|
},
|
|
5405
|
-
onMouseDown: handleInputMouseDown
|
|
5422
|
+
onMouseDown: handleInputMouseDown,
|
|
5423
|
+
onClick: handleInputClick
|
|
5406
5424
|
}
|
|
5407
5425
|
},
|
|
5408
5426
|
error,
|
package/dist/index.js
CHANGED
|
@@ -2925,6 +2925,14 @@ var DatePicker = forwardRef6((inProps, ref) => {
|
|
|
2925
2925
|
},
|
|
2926
2926
|
[inputReadOnly, isAlphabeticDisplay, buttonRef]
|
|
2927
2927
|
);
|
|
2928
|
+
const handleInputClick = useCallback9(
|
|
2929
|
+
(event) => {
|
|
2930
|
+
if (inputReadOnly && !readOnly) {
|
|
2931
|
+
handleCalendarToggle(event);
|
|
2932
|
+
}
|
|
2933
|
+
},
|
|
2934
|
+
[inputReadOnly, readOnly, handleCalendarToggle]
|
|
2935
|
+
);
|
|
2928
2936
|
const handlePresetClick = useCallback9(
|
|
2929
2937
|
(presetValue) => {
|
|
2930
2938
|
handleChange({
|
|
@@ -2976,7 +2984,8 @@ var DatePicker = forwardRef6((inProps, ref) => {
|
|
|
2976
2984
|
cursor: isAlphabeticDisplay || inputReadOnly || readOnly ? "default" : "text"
|
|
2977
2985
|
}
|
|
2978
2986
|
},
|
|
2979
|
-
onMouseDown: handleInputMouseDown
|
|
2987
|
+
onMouseDown: handleInputMouseDown,
|
|
2988
|
+
onClick: handleInputClick
|
|
2980
2989
|
}
|
|
2981
2990
|
},
|
|
2982
2991
|
className,
|
|
@@ -5226,6 +5235,14 @@ var DateRangePicker = forwardRef8((inProps, ref) => {
|
|
|
5226
5235
|
},
|
|
5227
5236
|
[inputReadOnly, isAlphabeticDisplay, buttonRef]
|
|
5228
5237
|
);
|
|
5238
|
+
const handleInputClick = useCallback14(
|
|
5239
|
+
(event) => {
|
|
5240
|
+
if (inputReadOnly && !readOnly) {
|
|
5241
|
+
handleCalendarToggle(event);
|
|
5242
|
+
}
|
|
5243
|
+
},
|
|
5244
|
+
[inputReadOnly, readOnly, handleCalendarToggle]
|
|
5245
|
+
);
|
|
5229
5246
|
const handlePresetClick = useCallback14(
|
|
5230
5247
|
(presetValue) => {
|
|
5231
5248
|
if (props.value !== void 0) {
|
|
@@ -5279,7 +5296,8 @@ var DateRangePicker = forwardRef8((inProps, ref) => {
|
|
|
5279
5296
|
cursor: isAlphabeticDisplay || inputReadOnly || readOnly ? "default" : "text"
|
|
5280
5297
|
}
|
|
5281
5298
|
},
|
|
5282
|
-
onMouseDown: handleInputMouseDown
|
|
5299
|
+
onMouseDown: handleInputMouseDown,
|
|
5300
|
+
onClick: handleInputClick
|
|
5283
5301
|
}
|
|
5284
5302
|
},
|
|
5285
5303
|
error,
|