@synerise/ds-factors 2.3.0 → 2.3.2
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 +20 -0
- package/CLAUDE.md +2 -1
- package/README.md +1 -0
- package/dist/FactorValue/Array/Array.utils.js +2 -2
- package/dist/FactorValue/Array/components/ArrayCollector.js +2 -2
- package/dist/FactorValue/Date/Date.d.ts +1 -1
- package/dist/FactorValue/Date/Date.js +8 -2
- package/dist/FactorValue/DateRange/DateRange.d.ts +1 -1
- package/dist/FactorValue/DateRange/DateRange.js +4 -5
- package/dist/FactorValue/FactorValue.d.ts +1 -1
- package/dist/FactorValue/FactorValue.js +3 -1
- package/dist/FactorValue/Parameter/ParameterDropdown.js +2 -3
- package/dist/Factors.d.ts +1 -1
- package/dist/Factors.js +2 -1
- package/dist/Factors.types.d.ts +3 -2
- package/package.json +34 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.3.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@2.3.1...@synerise/ds-factors@2.3.2) (2026-10-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* drop vitest peer dependency and bump vulnerable runtime deps ([2467d36](https://github.com/Synerise/synerise-design/commit/2467d3606aa97141a3a2d80c3ef396e78bee285c))
|
|
12
|
+
* remove per-render random keys and guard against them with a Biome plugin ([fcea7c5](https://github.com/Synerise/synerise-design/commit/fcea7c5d60b80c28cbbd191bfa2792379782a0e8))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [2.3.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@2.3.0...@synerise/ds-factors@2.3.1) (2026-10-22)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @synerise/ds-factors
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [2.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@2.2.2...@synerise/ds-factors@2.3.0) (2026-10-20)
|
|
7
27
|
|
|
8
28
|
|
package/CLAUDE.md
CHANGED
|
@@ -69,7 +69,8 @@ src/
|
|
|
69
69
|
| `formulaEditor` | `ReactNode` | — | Content rendered inside the formula editor modal |
|
|
70
70
|
| `texts` | `DeepPartial<FactorsTexts>` | — | Override any subset of i18n strings |
|
|
71
71
|
| `factorKey` | `ReactText` | — | Unique key for the factor instance; used to reset state on remount |
|
|
72
|
-
| `inputProps` | `Partial<Omit<InputProps, 'value' \| 'onChange' \|
|
|
72
|
+
| `inputProps` | `Partial<Omit<InputProps, 'value' \| 'onChange' \| ...>>` | — | Extra props forwarded to text inputs |
|
|
73
|
+
| `timeZone` | `true \| string` | — | Passed through to the `Date` **and** `DateRange` factor value inputs. Opts into timezone-aware values: the picker emits a `TZDate` carrying the resolved zone. When `true`, uses the provider's `timeZone`; when a string (e.g. `'Asia/Tokyo'`), uses that specific timezone. |
|
|
73
74
|
| `readOnly` | `boolean` | — | Disables all interaction |
|
|
74
75
|
|
|
75
76
|
#### `parameters` shape
|
package/README.md
CHANGED
|
@@ -131,6 +131,7 @@ import Factors from '@synerise/ds-factors'
|
|
|
131
131
|
| relativeDateProps | Customise relative date display and available units | { triggerValueFormatter?: (value) => string; availableUnits?: RelativeDateUnit[] } | - |
|
|
132
132
|
| autoResize | Auto-resize behaviour for text inputs | AutoResizeProp | - |
|
|
133
133
|
| inputProps | Extra props forwarded to text inputs | Partial<InputProps> | - |
|
|
134
|
+
| timeZone | Passed to the Date and DateRange factor inputs. Opts into timezone-aware values (picker emits a `TZDate`). `true` = provider TZ; string = specific IANA TZ | `true` / `string` | - |
|
|
134
135
|
| readOnly | Disables all interaction | boolean | - |
|
|
135
136
|
| factorKey | Unique key for the factor instance; used to reset state on remount | ReactText | - |
|
|
136
137
|
| texts | Translations object (deep partial — any subset can be overridden) | DeepPartial<FactorsTexts> | - |
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateUuid } from "@synerise/ds-utils";
|
|
2
2
|
const matchesSearchQuery = (item, searchQuery) => {
|
|
3
3
|
return String(item).toLocaleLowerCase().includes(searchQuery.toLocaleLowerCase());
|
|
4
4
|
};
|
|
5
5
|
const arrayWithUUID = (items) => {
|
|
6
6
|
return items.map((item) => ({
|
|
7
7
|
value: item,
|
|
8
|
-
id:
|
|
8
|
+
id: generateUuid()
|
|
9
9
|
}));
|
|
10
10
|
};
|
|
11
11
|
const sanitiseValues = (element) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { v4 } from "uuid";
|
|
4
3
|
import Collector from "@synerise/ds-collector";
|
|
4
|
+
import { generateUuid } from "@synerise/ds-utils";
|
|
5
5
|
import { COMMA } from "../Array.const.js";
|
|
6
6
|
import { CollectorWrapper } from "../Array.styles.js";
|
|
7
7
|
import { sanitiseValues, isArrayOfNumbersAsString, isNumberAsString } from "../Array.utils.js";
|
|
@@ -56,7 +56,7 @@ const ArrayCollector = ({
|
|
|
56
56
|
value: sanitiseValues(`${text}`),
|
|
57
57
|
type: itemType,
|
|
58
58
|
hasError: itemType === "number" && !isNumberAsString(`${text}`),
|
|
59
|
-
id:
|
|
59
|
+
id: generateUuid()
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
const handleItemSelect = (item) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FactorValueComponentProps } from '../../Factors.types';
|
|
3
|
-
declare const DateInput: ({ value, onChange, texts, opened, onDeactivate, onActivate, error, allowClear, readOnly, getPopupContainerOverride, uncontrolledComponent, }: FactorValueComponentProps) => React.JSX.Element;
|
|
3
|
+
declare const DateInput: ({ value, onChange, texts, opened, onDeactivate, onActivate, error, allowClear, readOnly, getPopupContainerOverride, timeZone, uncontrolledComponent, }: FactorValueComponentProps) => React.JSX.Element;
|
|
4
4
|
export default DateInput;
|
|
@@ -13,6 +13,7 @@ const DateInput = ({
|
|
|
13
13
|
allowClear,
|
|
14
14
|
readOnly = false,
|
|
15
15
|
getPopupContainerOverride,
|
|
16
|
+
timeZone,
|
|
16
17
|
uncontrolledComponent
|
|
17
18
|
}) => {
|
|
18
19
|
const [localValue, setLocalValue] = useState(value);
|
|
@@ -24,14 +25,19 @@ const DateInput = ({
|
|
|
24
25
|
const changeHandler = useCallback((date) => {
|
|
25
26
|
onChange(date);
|
|
26
27
|
}, [onChange]);
|
|
27
|
-
const localValueAsDate = useMemo(() =>
|
|
28
|
+
const localValueAsDate = useMemo(() => {
|
|
29
|
+
if (typeof localValue === "string" || localValue instanceof Date) {
|
|
30
|
+
return localValue;
|
|
31
|
+
}
|
|
32
|
+
return localValue ? new Date(String(localValue)) : void 0;
|
|
33
|
+
}, [localValue]);
|
|
28
34
|
const handleClear = useCallback(() => {
|
|
29
35
|
onChange(void 0);
|
|
30
36
|
}, [onChange]);
|
|
31
37
|
const handleOpenChange = useCallback((open) => {
|
|
32
38
|
open && onActivate && onActivate();
|
|
33
39
|
}, [onActivate]);
|
|
34
|
-
return /* @__PURE__ */ jsx(DatePicker, { onClear: handleClear, onApply: changeHandler, value: localValueAsDate, showTime: true, useStartOfDay: true, texts: texts.datePicker, error, readOnly, allowClear, autoFocus: opened, inputProps: {
|
|
40
|
+
return /* @__PURE__ */ jsx(DatePicker, { onClear: handleClear, onApply: changeHandler, value: localValueAsDate, showTime: true, useStartOfDay: true, texts: texts.datePicker, error, readOnly, allowClear, timeZone, autoFocus: opened, inputProps: {
|
|
35
41
|
autoResize: {
|
|
36
42
|
minWidth: "123px"
|
|
37
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FactorValueComponentProps } from '../../Factors.types';
|
|
3
|
-
declare const DateRangeInput: ({ getPopupContainerOverride, value, onChange, error, texts, onDeactivate, allowClear, readOnly, }: FactorValueComponentProps) => React.JSX.Element;
|
|
3
|
+
declare const DateRangeInput: ({ getPopupContainerOverride, value, onChange, error, texts, onDeactivate, allowClear, readOnly, timeZone, }: FactorValueComponentProps) => React.JSX.Element;
|
|
4
4
|
export default DateRangeInput;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import { useIntl } from "react-intl";
|
|
4
3
|
import DateRangePicker from "@synerise/ds-date-range-picker";
|
|
5
4
|
import { getPopupContainer } from "@synerise/ds-utils";
|
|
6
5
|
const DateRangeInput = ({
|
|
@@ -11,9 +10,9 @@ const DateRangeInput = ({
|
|
|
11
10
|
texts,
|
|
12
11
|
onDeactivate,
|
|
13
12
|
allowClear,
|
|
14
|
-
readOnly = false
|
|
13
|
+
readOnly = false,
|
|
14
|
+
timeZone
|
|
15
15
|
}) => {
|
|
16
|
-
const intl = useIntl();
|
|
17
16
|
const changeHandler = useCallback((date) => {
|
|
18
17
|
onChange(date);
|
|
19
18
|
}, [onChange]);
|
|
@@ -22,11 +21,11 @@ const DateRangeInput = ({
|
|
|
22
21
|
onDeactivate && onDeactivate();
|
|
23
22
|
}
|
|
24
23
|
}, [onDeactivate]);
|
|
25
|
-
return /* @__PURE__ */ jsx(DateRangePicker, {
|
|
24
|
+
return /* @__PURE__ */ jsx(DateRangePicker, { onApply: changeHandler, showTime: true, getPopupContainer: getPopupContainerOverride || getPopupContainer, showFilter: true, value, texts: texts.dateRangePicker, relativeFuture: false, relativeModes: ["PAST"], showRelativePicker: true, placement: "bottomLeft", onVisibleChange: handleVisibleChange, showNowButton: false, filterRangeDisplayMode: "slider", filterValueSelectionModes: ["Range"], rangePickerInputProps: {
|
|
26
25
|
readOnly,
|
|
27
26
|
error,
|
|
28
27
|
allowClear
|
|
29
|
-
}, readOnly });
|
|
28
|
+
}, readOnly, timeZone });
|
|
30
29
|
};
|
|
31
30
|
export {
|
|
32
31
|
DateRangeInput as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FactorValueProps } from '../Factors.types';
|
|
3
|
-
declare const FactorValue: ({ selectedFactorType, value, onChangeValue, onParamsClick, selectedFactor, textType, parameters, autocompleteText, withoutTypeSelector, texts, formulaEditor, opened, loading, factorKey, preventAutoloadData, getPopupContainerOverride, fluidMinWidth, onActivate, onDeactivate, error, inputProps, allowClear, readOnly, relativeDateProps, arrayProps, factorValueExtraProps, uncontrolledComponent, }: FactorValueProps) => React.JSX.Element;
|
|
3
|
+
declare const FactorValue: ({ selectedFactorType, value, onChangeValue, onParamsClick, selectedFactor, textType, parameters, autocompleteText, withoutTypeSelector, texts, formulaEditor, opened, loading, factorKey, preventAutoloadData, getPopupContainerOverride, fluidMinWidth, onActivate, onDeactivate, error, inputProps, allowClear, readOnly, timeZone, relativeDateProps, arrayProps, factorValueExtraProps, uncontrolledComponent, }: FactorValueProps) => React.JSX.Element;
|
|
4
4
|
export default FactorValue;
|
|
@@ -25,6 +25,7 @@ const FactorValue = ({
|
|
|
25
25
|
inputProps,
|
|
26
26
|
allowClear,
|
|
27
27
|
readOnly = false,
|
|
28
|
+
timeZone,
|
|
28
29
|
relativeDateProps,
|
|
29
30
|
arrayProps,
|
|
30
31
|
factorValueExtraProps,
|
|
@@ -58,6 +59,7 @@ const FactorValue = ({
|
|
|
58
59
|
error,
|
|
59
60
|
allowClear,
|
|
60
61
|
readOnly,
|
|
62
|
+
timeZone,
|
|
61
63
|
inputProps,
|
|
62
64
|
fluidMinWidth,
|
|
63
65
|
factorValueExtraProps,
|
|
@@ -66,7 +68,7 @@ const FactorValue = ({
|
|
|
66
68
|
},
|
|
67
69
|
`${factorKey}-${selectedFactor.name}`
|
|
68
70
|
);
|
|
69
|
-
}, [selectedFactor, factorKey, value, texts, onChangeValue, textType, selectedFactorType, autocompleteText, parameters, withoutTypeSelector, inputProps, fluidMinWidth, arrayProps, formulaEditor, opened, loading, onParamsClick, preventAutoloadData, getPopupContainerOverride, onActivate, onDeactivate, error, allowClear, readOnly, relativeDateProps, factorValueExtraProps, uncontrolledComponent]);
|
|
71
|
+
}, [selectedFactor, factorKey, value, texts, onChangeValue, textType, selectedFactorType, autocompleteText, parameters, withoutTypeSelector, inputProps, fluidMinWidth, arrayProps, formulaEditor, opened, loading, onParamsClick, preventAutoloadData, getPopupContainerOverride, onActivate, onDeactivate, error, allowClear, readOnly, timeZone, relativeDateProps, factorValueExtraProps, uncontrolledComponent]);
|
|
70
72
|
return /* @__PURE__ */ jsx(FactorInput, { inputType: selectedFactorType, inputTextType: textType, withoutTypeSelector, children: inputType });
|
|
71
73
|
};
|
|
72
74
|
export {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useRef, useState, useMemo, useCallback, useEffect } from "react";
|
|
3
|
-
import { v4 } from "uuid";
|
|
4
3
|
import { useTheme } from "@synerise/ds-core";
|
|
5
4
|
import Divider from "@synerise/ds-divider";
|
|
6
5
|
import Dropdown from "@synerise/ds-dropdown";
|
|
@@ -9,7 +8,7 @@ import { ListContextProvider, itemSizes } from "@synerise/ds-list-item";
|
|
|
9
8
|
import Result from "@synerise/ds-result";
|
|
10
9
|
import Scrollbar from "@synerise/ds-scrollbar";
|
|
11
10
|
import Tabs from "@synerise/ds-tabs";
|
|
12
|
-
import { useOnClickOutside, getClosest, getGroupName, useSearchResults, focusWithArrowKeys } from "@synerise/ds-utils";
|
|
11
|
+
import { generateUuid, useOnClickOutside, getClosest, getGroupName, useSearchResults, focusWithArrowKeys } from "@synerise/ds-utils";
|
|
13
12
|
import { NO_GROUP_NAME, DROPDOWN_HEIGHT, LIST_STYLE, SEARCH_HEGIHT, TABS_HEIGHT, SUBGROUP_HEADER_HEIGHT, ITEM_SIZE } from "./Parameter.constants.js";
|
|
14
13
|
import { ShowMoreItem, TabsWrapper, Skeleton, ItemsList, StyledList, Title } from "./Parameter.style.js";
|
|
15
14
|
import ParameterDropdownItem from "./ParameterDropdownItem.js";
|
|
@@ -44,7 +43,7 @@ const ParameterDropdown = ({
|
|
|
44
43
|
const [activeGroup, setActiveGroup] = useState(void 0);
|
|
45
44
|
const [searchInputCanBeFocused, setSearchInputFocus] = useState(true);
|
|
46
45
|
const classNames = useMemo(() => {
|
|
47
|
-
return `ds-parameter-item ds-parameter-item-${
|
|
46
|
+
return `ds-parameter-item ds-parameter-item-${generateUuid()}`;
|
|
48
47
|
}, []);
|
|
49
48
|
useOnClickOutside(overlayRef, (event) => {
|
|
50
49
|
if (getClosest(event.target, ".ds-info-card") === null) {
|
package/dist/Factors.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { DefinedFactorTypes, FactorsProps, SelectedFactorType } from './Factors.types';
|
|
3
3
|
export declare const DEFAULT_FACTOR_TYPE: DefinedFactorTypes;
|
|
4
4
|
export declare const FACTOR_TYPE_MAPPING: Record<DefinedFactorTypes, SelectedFactorType>;
|
|
5
|
-
declare const Factors: ({ selectedFactorType, setSelectedFactorType, onChangeValue, onParamsClick, value, defaultFactorType, textType, unavailableFactorTypes, availableFactorTypes, parameters, autocompleteText, allowClear, withoutTypeSelector, texts, formulaEditor, opened, loading, factorKey, preventAutoloadData, onActivate, onDeactivate, getPopupContainerOverride, fluidMinWidth, customFactorValueComponents, error, inputProps, arrayProps, readOnly, factorValueExtraProps, uncontrolledComponent, }: FactorsProps) => React.JSX.Element;
|
|
5
|
+
declare const Factors: ({ selectedFactorType, setSelectedFactorType, onChangeValue, onParamsClick, value, defaultFactorType, textType, unavailableFactorTypes, availableFactorTypes, parameters, autocompleteText, allowClear, withoutTypeSelector, texts, formulaEditor, opened, loading, factorKey, preventAutoloadData, onActivate, onDeactivate, getPopupContainerOverride, fluidMinWidth, customFactorValueComponents, error, inputProps, arrayProps, readOnly, factorValueExtraProps, timeZone, uncontrolledComponent, }: FactorsProps) => React.JSX.Element;
|
|
6
6
|
export default Factors;
|
package/dist/Factors.js
CHANGED
|
@@ -101,6 +101,7 @@ const Factors = ({
|
|
|
101
101
|
arrayProps,
|
|
102
102
|
readOnly,
|
|
103
103
|
factorValueExtraProps,
|
|
104
|
+
timeZone,
|
|
104
105
|
uncontrolledComponent = false
|
|
105
106
|
}) => {
|
|
106
107
|
const allTexts = useTexts(texts);
|
|
@@ -128,7 +129,7 @@ const Factors = ({
|
|
|
128
129
|
}, [mergedFactorData, factorType]);
|
|
129
130
|
return /* @__PURE__ */ jsxs(Group, { resetMargin: true, compact: true, withoutTypeSelector, className: `ds-factors ds-factors-${factorType}`, children: [
|
|
130
131
|
selectedFactorData && !withoutTypeSelector && setSelectedFactorType && /* @__PURE__ */ jsx(FactorTypeSelector, { texts: allTexts.factorTypes, factorTypeMapping: mergedFactorData, selectedFactorType: factorType, setSelectedFactorType, selectedFactor: selectedFactorData, availableFactorTypes, unavailableFactorTypes, readOnly, getPopupContainerOverride }),
|
|
131
|
-
/* @__PURE__ */ jsx(FactorValue, { value, onChangeValue, onParamsClick, selectedFactor: selectedFactorData, selectedFactorType: factorType, textType, parameters, autocompleteText, withoutTypeSelector, formulaEditor, texts: allTexts, opened, inputProps, fluidMinWidth, arrayProps, loading, factorKey, preventAutoloadData, getPopupContainerOverride, onActivate, onDeactivate, error, allowClear, readOnly, factorValueExtraProps, uncontrolledComponent })
|
|
132
|
+
/* @__PURE__ */ jsx(FactorValue, { value, onChangeValue, onParamsClick, selectedFactor: selectedFactorData, selectedFactorType: factorType, textType, parameters, autocompleteText, withoutTypeSelector, formulaEditor, texts: allTexts, opened, inputProps, fluidMinWidth, arrayProps, loading, factorKey, preventAutoloadData, getPopupContainerOverride, onActivate, onDeactivate, error, allowClear, readOnly, timeZone, factorValueExtraProps, uncontrolledComponent })
|
|
132
133
|
] });
|
|
133
134
|
};
|
|
134
135
|
export {
|
package/dist/Factors.types.d.ts
CHANGED
|
@@ -165,6 +165,7 @@ export type FactorsProps = {
|
|
|
165
165
|
arrayProps?: ArrayProps;
|
|
166
166
|
textType?: 'autocomplete' | 'expansible' | 'default';
|
|
167
167
|
autoResize?: AutoResizeProp;
|
|
168
|
+
timeZone?: true | string;
|
|
168
169
|
relativeDateProps?: {
|
|
169
170
|
triggerValueFormatter?: (value: RelativeDateValueType) => string;
|
|
170
171
|
availableUnits?: RelativeDateUnit[];
|
|
@@ -206,11 +207,11 @@ export type FactorTypeSelectorProps = Pick<FactorsProps, 'unavailableFactorTypes
|
|
|
206
207
|
[k in DefinedFactorTypes]: string;
|
|
207
208
|
};
|
|
208
209
|
};
|
|
209
|
-
export type FactorValueProps = Pick<FactorsProps, 'onChangeValue' | 'onParamsClick' | 'value' | 'selectedFactorType' | 'parameters' | 'autocompleteText' | 'withoutTypeSelector' | 'textType' | 'formulaEditor' | 'opened' | 'loading' | 'factorKey' | 'preventAutoloadData' | 'getPopupContainerOverride' | 'onActivate' | 'onDeactivate' | 'error' | 'allowClear' | 'inputProps' | 'autoResize' | 'readOnly' | 'relativeDateProps' | 'arrayProps' | 'factorValueExtraProps' | 'fluidMinWidth' | 'uncontrolledComponent'> & {
|
|
210
|
+
export type FactorValueProps = Pick<FactorsProps, 'onChangeValue' | 'onParamsClick' | 'value' | 'selectedFactorType' | 'parameters' | 'autocompleteText' | 'withoutTypeSelector' | 'textType' | 'formulaEditor' | 'opened' | 'loading' | 'factorKey' | 'preventAutoloadData' | 'getPopupContainerOverride' | 'onActivate' | 'onDeactivate' | 'error' | 'allowClear' | 'inputProps' | 'autoResize' | 'readOnly' | 'relativeDateProps' | 'arrayProps' | 'timeZone' | 'factorValueExtraProps' | 'fluidMinWidth' | 'uncontrolledComponent'> & {
|
|
210
211
|
texts: FactorsTexts;
|
|
211
212
|
selectedFactor: SelectedFactorType;
|
|
212
213
|
};
|
|
213
|
-
export type FactorValueComponentProps = Pick<FactorsProps, 'value' | 'parameters' | 'allowClear' | 'autocompleteText' | 'withoutTypeSelector' | 'textType' | 'opened' | 'getPopupContainerOverride' | 'onActivate' | 'onDeactivate' | 'error' | 'inputProps' | 'autoResize' | 'readOnly' | 'arrayProps' | 'factorValueExtraProps' | 'fluidMinWidth' | 'uncontrolledComponent'> & {
|
|
214
|
+
export type FactorValueComponentProps = Pick<FactorsProps, 'value' | 'parameters' | 'allowClear' | 'autocompleteText' | 'withoutTypeSelector' | 'textType' | 'opened' | 'getPopupContainerOverride' | 'onActivate' | 'onDeactivate' | 'error' | 'inputProps' | 'autoResize' | 'readOnly' | 'arrayProps' | 'timeZone' | 'factorValueExtraProps' | 'fluidMinWidth' | 'uncontrolledComponent'> & {
|
|
214
215
|
texts: FactorsTexts;
|
|
215
216
|
onChange: (value: FactorValueType) => void;
|
|
216
217
|
factorType: FactorType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-factors",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Factors UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -42,48 +42,47 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-autocomplete": "^2.0.
|
|
46
|
-
"@synerise/ds-badge": "^2.0.
|
|
47
|
-
"@synerise/ds-button": "^2.1.
|
|
48
|
-
"@synerise/ds-button-group": "^2.0.
|
|
49
|
-
"@synerise/ds-collector": "^2.0.
|
|
50
|
-
"@synerise/ds-date-picker": "^2.1.
|
|
51
|
-
"@synerise/ds-date-range-picker": "^2.1.
|
|
52
|
-
"@synerise/ds-divider": "^2.0.
|
|
53
|
-
"@synerise/ds-dropdown": "^2.1.
|
|
54
|
-
"@synerise/ds-empty-states": "^2.0.
|
|
55
|
-
"@synerise/ds-icon": "^2.2.
|
|
56
|
-
"@synerise/ds-information-card": "^2.0.
|
|
57
|
-
"@synerise/ds-inline-alert": "^2.0.
|
|
58
|
-
"@synerise/ds-inline-edit": "^2.0.
|
|
59
|
-
"@synerise/ds-input": "^2.0.
|
|
60
|
-
"@synerise/ds-input-number": "^2.0.
|
|
61
|
-
"@synerise/ds-list-item": "^2.2.
|
|
62
|
-
"@synerise/ds-modal": "^2.0
|
|
63
|
-
"@synerise/ds-result": "^2.0.
|
|
64
|
-
"@synerise/ds-scrollbar": "^2.0.
|
|
65
|
-
"@synerise/ds-search": "^2.0.
|
|
66
|
-
"@synerise/ds-select": "^2.1.
|
|
67
|
-
"@synerise/ds-short-cuts": "^2.0.
|
|
68
|
-
"@synerise/ds-skeleton": "^2.0.
|
|
69
|
-
"@synerise/ds-tabs": "^2.0.
|
|
70
|
-
"@synerise/ds-tag": "^2.0.
|
|
71
|
-
"@synerise/ds-tooltip": "^2.0.
|
|
72
|
-
"@synerise/ds-utils": "^2.2.
|
|
45
|
+
"@synerise/ds-autocomplete": "^2.0.11",
|
|
46
|
+
"@synerise/ds-badge": "^2.0.10",
|
|
47
|
+
"@synerise/ds-button": "^2.1.5",
|
|
48
|
+
"@synerise/ds-button-group": "^2.0.10",
|
|
49
|
+
"@synerise/ds-collector": "^2.0.11",
|
|
50
|
+
"@synerise/ds-date-picker": "^2.1.8",
|
|
51
|
+
"@synerise/ds-date-range-picker": "^2.1.8",
|
|
52
|
+
"@synerise/ds-divider": "^2.0.10",
|
|
53
|
+
"@synerise/ds-dropdown": "^2.1.7",
|
|
54
|
+
"@synerise/ds-empty-states": "^2.0.8",
|
|
55
|
+
"@synerise/ds-icon": "^2.2.3",
|
|
56
|
+
"@synerise/ds-information-card": "^2.0.13",
|
|
57
|
+
"@synerise/ds-inline-alert": "^2.0.8",
|
|
58
|
+
"@synerise/ds-inline-edit": "^2.0.11",
|
|
59
|
+
"@synerise/ds-input": "^2.0.11",
|
|
60
|
+
"@synerise/ds-input-number": "^2.0.11",
|
|
61
|
+
"@synerise/ds-list-item": "^2.2.3",
|
|
62
|
+
"@synerise/ds-modal": "^2.1.0",
|
|
63
|
+
"@synerise/ds-result": "^2.0.10",
|
|
64
|
+
"@synerise/ds-scrollbar": "^2.0.9",
|
|
65
|
+
"@synerise/ds-search": "^2.0.10",
|
|
66
|
+
"@synerise/ds-select": "^2.1.7",
|
|
67
|
+
"@synerise/ds-short-cuts": "^2.0.10",
|
|
68
|
+
"@synerise/ds-skeleton": "^2.0.10",
|
|
69
|
+
"@synerise/ds-tabs": "^2.0.11",
|
|
70
|
+
"@synerise/ds-tag": "^2.0.10",
|
|
71
|
+
"@synerise/ds-tooltip": "^2.0.10",
|
|
72
|
+
"@synerise/ds-utils": "^2.2.2",
|
|
73
73
|
"lodash.merge": "^4.6.2",
|
|
74
|
-
"react-window": "^1.8.11"
|
|
75
|
-
"uuid": "^8.3.2"
|
|
74
|
+
"react-window": "^1.8.11"
|
|
76
75
|
},
|
|
77
76
|
"devDependencies": {
|
|
78
|
-
"@types/lodash.merge": "^4.6.9"
|
|
77
|
+
"@types/lodash.merge": "^4.6.9",
|
|
78
|
+
"vitest": "4"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@synerise/ds-core": "*",
|
|
82
82
|
"copy-to-clipboard": "^3.3.1",
|
|
83
83
|
"react": ">=16.9.0 <= 18.3.1",
|
|
84
84
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
85
|
-
"styled-components": "^5.3.3"
|
|
86
|
-
"vitest": "4"
|
|
85
|
+
"styled-components": "^5.3.3"
|
|
87
86
|
},
|
|
88
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
|
|
89
88
|
}
|