@archbase/components 3.0.21 → 3.0.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archbase/components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.23",
|
|
4
4
|
"description": "UI Components for Archbase React v3 - Form editors, data visualization, and business components",
|
|
5
5
|
"author": "Edson Martins <edsonmartins2005@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,6 +38,9 @@
|
|
|
38
38
|
"react-dom": "^18.3.0 || ^19.2.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@archbase/core": "3.0.23",
|
|
42
|
+
"@archbase/data": "3.0.23",
|
|
43
|
+
"@archbase/layout": "3.0.23",
|
|
41
44
|
"@gfazioli/mantine-list-view-table": "^1.1.9",
|
|
42
45
|
"@gfazioli/mantine-onboarding-tour": "^2.6.5",
|
|
43
46
|
"@mui/x-data-grid": "^7.28.3",
|
|
@@ -99,10 +102,7 @@
|
|
|
99
102
|
"uuid": "^9.0.1",
|
|
100
103
|
"validator": "^13.12.0",
|
|
101
104
|
"vis-timeline": "^7.7.3",
|
|
102
|
-
"xlsx": "^0.18.5"
|
|
103
|
-
"@archbase/core": "3.0.21",
|
|
104
|
-
"@archbase/data": "3.0.21",
|
|
105
|
-
"@archbase/layout": "3.0.21"
|
|
105
|
+
"xlsx": "^0.18.5"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@types/d3": "^7.4.3",
|
|
@@ -377,9 +377,7 @@ export function ArchbaseDatePickerEdit<T, ID>(props: ArchbaseDatePickerEditProps
|
|
|
377
377
|
onChange: onDateChange,
|
|
378
378
|
});
|
|
379
379
|
const formatValue = (val: DateValue) => (val ? dateFormats[dateFormat!].format(val) : '');
|
|
380
|
-
const [inputValue, setInputValue] =
|
|
381
|
-
value: formatValue(_value),
|
|
382
|
-
});
|
|
380
|
+
const [inputValue, setInputValue] = useState(formatValue(_value));
|
|
383
381
|
|
|
384
382
|
const defaultDateParser = (val: string) => {
|
|
385
383
|
const parsedDate = dateFormats[dateFormat!].parse(val);
|
|
@@ -539,7 +537,7 @@ export function ArchbaseDatePickerEdit<T, ID>(props: ArchbaseDatePickerEditProps
|
|
|
539
537
|
|
|
540
538
|
useEffect(() => {
|
|
541
539
|
setInputValue(formatValue(_value));
|
|
542
|
-
}, [ctx.locale]);
|
|
540
|
+
}, [ctx.locale, _value]);
|
|
543
541
|
|
|
544
542
|
const [dropdownOpened, setDropdownOpened] = useState(false);
|
|
545
543
|
|
|
@@ -176,7 +176,9 @@ export const ArchbaseTimeRangeSelector: FC<ArchbaseTimeRangeSelectorProps> = (pr
|
|
|
176
176
|
|
|
177
177
|
// Atualizar o estado quando o defaultRangeValue muda
|
|
178
178
|
useEffect(() => {
|
|
179
|
+
console.log('[TimeRangeSelector] useEffect defaultRangeValue=%s, selectedRange=%s', defaultRangeValue, selectedRange);
|
|
179
180
|
if (defaultRangeValue !== undefined) {
|
|
181
|
+
console.log('[TimeRangeSelector] setSelectedRange(%s)', defaultRangeValue);
|
|
180
182
|
// Atualizar o selectedRange
|
|
181
183
|
setSelectedRange(defaultRangeValue);
|
|
182
184
|
|
|
@@ -234,6 +236,7 @@ export const ArchbaseTimeRangeSelector: FC<ArchbaseTimeRangeSelectorProps> = (pr
|
|
|
234
236
|
|
|
235
237
|
// Manipular a mudança de range (predefinido ou customizado)
|
|
236
238
|
const handleRangeChange = (value: string | null) => {
|
|
239
|
+
console.log('[TimeRangeSelector] handleRangeChange value=%s', value);
|
|
237
240
|
setSelectedRange(value);
|
|
238
241
|
|
|
239
242
|
// Se não for range customizado, aplicar imediatamente
|
|
Binary file
|