@vritti/quantum-ui 0.6.5 → 0.6.7
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/CurrencyFieldFilter.js +1 -1
- package/dist/CurrencySelector.js.map +1 -1
- package/dist/DateRangePicker.js +1 -1
- package/dist/DateTimePicker.js +1 -1
- package/dist/DropdownMenu.js +64 -33
- package/dist/DropdownMenu.js.map +1 -1
- package/dist/ISOCountrySelect.js.map +1 -1
- package/dist/LocaleSelector.js.map +1 -1
- package/dist/QuantityField.js +190 -0
- package/dist/QuantityField.js.map +1 -0
- package/dist/Select.js.map +1 -1
- package/dist/SelectFilter.js +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SingleSelect.js +3 -2
- package/dist/SingleSelect.js.map +1 -1
- package/dist/Spinner.js +1 -7
- package/dist/Spinner.js.map +1 -1
- package/dist/Spinner2.js +10 -0
- package/dist/Spinner2.js.map +1 -0
- package/dist/SwitchFilter.js +80 -0
- package/dist/SwitchFilter.js.map +1 -0
- package/dist/TimezoneSelector.js.map +1 -1
- package/dist/ValueFilter.js +1 -1
- package/dist/assets/quantum-ui.css +49 -0
- package/dist/calendar2.js +1 -1
- package/dist/components/DateFilter.js +1 -1
- package/dist/components/FormattedDate.js +1 -1
- package/dist/components/QuantityField.js +2 -0
- package/dist/components/QuantityField.js.map +1 -0
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Switch.js +1 -0
- package/dist/components/Switch.js.map +1 -1
- package/dist/contextAnchor.js +3 -2
- package/dist/contextAnchor.js.map +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index6.js +90 -382
- package/dist/index6.js.map +1 -1
- package/dist/index7.js +382 -90
- package/dist/index7.js.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/lib/components/DropdownMenu/types.d.ts +1 -0
- package/dist/lib/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/lib/components/QuantityField/QuantityField.d.ts +22 -0
- package/dist/lib/components/QuantityField/QuantityField.d.ts.map +1 -0
- package/dist/lib/components/QuantityField/index.d.ts +3 -0
- package/dist/lib/components/QuantityField/index.d.ts.map +1 -0
- package/dist/lib/components/QuantityField/quantity.d.ts +13 -0
- package/dist/lib/components/QuantityField/quantity.d.ts.map +1 -0
- package/dist/lib/components/Select/Select.d.ts +11 -3
- package/dist/lib/components/Select/Select.d.ts.map +1 -1
- package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts +10 -3
- package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/contextAnchor.d.ts +3 -0
- package/dist/lib/components/Select/contextAnchor.d.ts.map +1 -1
- package/dist/lib/components/Select/index.d.ts +1 -1
- package/dist/lib/components/Select/index.d.ts.map +1 -1
- package/dist/lib/components/Switch/SwitchFilter.d.ts +21 -0
- package/dist/lib/components/Switch/SwitchFilter.d.ts.map +1 -0
- package/dist/lib/components/Switch/index.d.ts +2 -0
- package/dist/lib/components/Switch/index.d.ts.map +1 -1
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/hooks/useFormatters.d.ts +2 -1
- package/dist/lib/hooks/useFormatters.d.ts.map +1 -1
- package/dist/lib/selects/currency/CurrencySelector.d.ts +3 -4
- package/dist/lib/selects/currency/CurrencySelector.d.ts.map +1 -1
- package/dist/lib/selects/iso-country/ISOCountrySelect.d.ts +1 -1
- package/dist/lib/selects/iso-country/ISOCountrySelect.d.ts.map +1 -1
- package/dist/lib/selects/locale/LocaleSelector.d.ts +2 -1
- package/dist/lib/selects/locale/LocaleSelector.d.ts.map +1 -1
- package/dist/lib/selects/timezone/TimezoneSelector.d.ts +2 -1
- package/dist/lib/selects/timezone/TimezoneSelector.d.ts.map +1 -1
- package/dist/lib/types/catalog-resolver.d.ts +3 -7
- package/dist/lib/types/catalog-resolver.d.ts.map +1 -1
- package/dist/lib/utils/format.d.ts +13 -0
- package/dist/lib/utils/format.d.ts.map +1 -1
- package/dist/timezone.js +2 -2
- package/dist/types/catalog-resolver.js.map +1 -1
- package/dist/useContextState.js +1 -1
- package/dist/useDataTable.js +1 -1
- package/dist/useFormatters.js +2 -1
- package/dist/useFormatters.js.map +1 -1
- package/dist/useWorkspaceCurrency.js +1 -1
- package/dist/utils/axios.js +1 -1
- package/dist/utils/currency.js +1 -1
- package/dist/utils/format.js +17 -2
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/timezone.js +2 -2
- package/package.json +5 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MultiSelectProps } from './components/MultiSelect/MultiSelect';
|
|
3
|
-
import { SingleSelectProps } from './components/SingleSelect/SingleSelect';
|
|
4
|
-
import { SelectFieldKeys } from './types';
|
|
3
|
+
import { SingleSelectClearableProps, SingleSelectProps } from './components/SingleSelect/SingleSelect';
|
|
4
|
+
import { SelectFieldKeys, SelectOption } from './types';
|
|
5
5
|
interface SelectBaseProps {
|
|
6
6
|
optionsEndpoint?: string;
|
|
7
7
|
searchDebounceMs?: number;
|
|
@@ -9,11 +9,19 @@ interface SelectBaseProps {
|
|
|
9
9
|
fieldKeys?: SelectFieldKeys;
|
|
10
10
|
params?: Record<string, string | number | boolean>;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
interface SelectCommonProps extends Omit<SingleSelectProps & MultiSelectProps, 'value' | 'onChange' | 'clearable' | 'onOptionSelect'>, SelectBaseProps {
|
|
13
13
|
multiple?: boolean;
|
|
14
14
|
value?: SingleSelectProps['value'] | MultiSelectProps['value'];
|
|
15
15
|
onChange?: SingleSelectProps['onChange'] | MultiSelectProps['onChange'];
|
|
16
16
|
}
|
|
17
|
+
export type SelectProps = SelectCommonProps & SingleSelectClearableProps;
|
|
18
|
+
export type ClearableSelectProps = SelectCommonProps & ({
|
|
19
|
+
clearable?: true;
|
|
20
|
+
onOptionSelect?: (option: SelectOption | null) => void;
|
|
21
|
+
} | {
|
|
22
|
+
clearable: false;
|
|
23
|
+
onOptionSelect?: (option: SelectOption) => void;
|
|
24
|
+
});
|
|
17
25
|
export type SelectSingleProps = SelectProps;
|
|
18
26
|
export type SelectMultiProps = SelectProps;
|
|
19
27
|
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../lib/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../lib/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACvB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,KAAK,EAAoB,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,UAAU,eAAe;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CACpD;AAED,UAAU,iBACR,SAAQ,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,EAAE,OAAO,GAAG,UAAU,GAAG,WAAW,GAAG,gBAAgB,CAAC,EACvG,eAAe;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/D,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACzE;AAGD,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG,0BAA0B,CAAC;AAIzE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAClD,CACI;IAAE,SAAS,CAAC,EAAE,IAAI,CAAC;IAAC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,KAAK,IAAI,CAAA;CAAE,GAC5E;IAAE,SAAS,EAAE,KAAK,CAAC;IAAC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAA;CAAE,CACxE,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAC5C,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAG3C,eAAO,MAAM,MAAM,EAqDb,KAAK,CAAC,yBAAyB,CAAC,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ export interface SingleSelectOptionRenderProps {
|
|
|
11
11
|
onSelect: () => void;
|
|
12
12
|
}
|
|
13
13
|
export type SingleSelectLabelTransformContext = 'trigger' | 'option';
|
|
14
|
-
|
|
14
|
+
interface SingleSelectBaseProps {
|
|
15
15
|
label?: string;
|
|
16
16
|
description?: React.ReactNode;
|
|
17
17
|
error?: string;
|
|
@@ -20,7 +20,6 @@ export interface SingleSelectProps {
|
|
|
20
20
|
groups?: SelectGroup[];
|
|
21
21
|
value?: SelectValue;
|
|
22
22
|
onChange?: (value: SelectValue) => void;
|
|
23
|
-
onOptionSelect?: (option: SelectOption | null) => void;
|
|
24
23
|
onBlur?: () => void;
|
|
25
24
|
name?: string;
|
|
26
25
|
disabled?: boolean;
|
|
@@ -30,7 +29,6 @@ export interface SingleSelectProps {
|
|
|
30
29
|
defaultValue?: SelectValue;
|
|
31
30
|
searchable?: boolean;
|
|
32
31
|
searchPlaceholder?: string;
|
|
33
|
-
clearable?: boolean;
|
|
34
32
|
asyncState?: AsyncSelectState;
|
|
35
33
|
anchor?: (props: SingleSelectAnchorProps) => React.ReactElement;
|
|
36
34
|
renderOption?: (props: SingleSelectOptionRenderProps) => React.ReactNode;
|
|
@@ -43,5 +41,14 @@ export interface SingleSelectProps {
|
|
|
43
41
|
disabledTip?: string;
|
|
44
42
|
permission?: string;
|
|
45
43
|
}
|
|
44
|
+
export type SingleSelectClearableProps = {
|
|
45
|
+
clearable: true;
|
|
46
|
+
onOptionSelect?: (option: SelectOption | null) => void;
|
|
47
|
+
} | {
|
|
48
|
+
clearable?: false;
|
|
49
|
+
onOptionSelect?: (option: SelectOption) => void;
|
|
50
|
+
};
|
|
51
|
+
export type SingleSelectProps = SingleSelectBaseProps & SingleSelectClearableProps;
|
|
46
52
|
export declare const SingleSelect: React.ForwardRefExoticComponent<SingleSelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
53
|
+
export {};
|
|
47
54
|
//# sourceMappingURL=SingleSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleSelect.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/Select/components/SingleSelect/SingleSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoB/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE5F,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,YAAY,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,MAAM,iCAAiC,GAAG,SAAS,GAAG,QAAQ,CAAC;AAErE,
|
|
1
|
+
{"version":3,"file":"SingleSelect.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/Select/components/SingleSelect/SingleSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoB/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE5F,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,YAAY,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,MAAM,iCAAiC,GAAG,SAAS,GAAG,QAAQ,CAAC;AAErE,UAAU,qBAAqB;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,O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,MAAM,YAAY,6FA4PxB,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export type FilterMode = 'filter' | 'context';
|
|
3
3
|
export declare const CONTEXT_ANCHOR_CLASS = "inline-flex h-9 items-center gap-2 rounded-md border border-input bg-background px-3 text-sm whitespace-nowrap shadow-xs outline-none transition-[color,box-shadow,border-color] hover:bg-accent/40 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-expanded:border-ring disabled:cursor-not-allowed disabled:opacity-50";
|
|
4
|
+
export declare const ContextAnchorLabel: React.FC<{
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}>;
|
|
4
7
|
interface ContextAnchorTextProps {
|
|
5
8
|
label?: string;
|
|
6
9
|
value?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextAnchor.d.ts","sourceRoot":"","sources":["../../../../lib/components/Select/contextAnchor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAI9C,eAAO,MAAM,oBAAoB,gWAC8T,CAAC;
|
|
1
|
+
{"version":3,"file":"contextAnchor.d.ts","sourceRoot":"","sources":["../../../../lib/components/Select/contextAnchor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAI9C,eAAO,MAAM,oBAAoB,gWAC8T,CAAC;AAGhW,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAEtE,CAAC;AAEF,UAAU,sBAAsB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAGD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAW9D,CAAC"}
|
|
@@ -10,7 +10,7 @@ export type { SingleSelectFilterProps } from './components/SingleSelect/SingleSe
|
|
|
10
10
|
export { SingleSelectFilter } from './components/SingleSelect/SingleSelectFilter';
|
|
11
11
|
export type { UseSelectProps, UseSelectReturn } from './hooks/useSelect';
|
|
12
12
|
export { useSelect } from './hooks/useSelect';
|
|
13
|
-
export type { SelectProps } from './Select';
|
|
13
|
+
export type { ClearableSelectProps, SelectProps } from './Select';
|
|
14
14
|
export { Select } from './Select';
|
|
15
15
|
export type { SelectFilterProps } from './SelectFilter';
|
|
16
16
|
export { SelectFilter } from './SelectFilter';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Select/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,YAAY,EACV,uBAAuB,EACvB,6BAA6B,EAC7B,iBAAiB,GAClB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,YAAY,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,YAAY,EAAE,WAAW,EAAE,MAAM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B,+BAAyB,CAAC;AACvD,eAAO,MAAM,eAAe,wEAAwB,CAAC;AACrD,eAAO,MAAM,iBAAiB,gCAA0B,CAAC;AAEzD,YAAY,EACV,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FilterCondition } from '../../types/conditions';
|
|
3
|
+
import { FilterMode } from '../Select/contextAnchor';
|
|
4
|
+
export type SwitchFilterCondition = FilterCondition & {
|
|
5
|
+
operator: 'equals';
|
|
6
|
+
value: 'true';
|
|
7
|
+
};
|
|
8
|
+
export interface SwitchFilterProps {
|
|
9
|
+
name: string;
|
|
10
|
+
label: string;
|
|
11
|
+
mode?: FilterMode;
|
|
12
|
+
value?: FilterCondition | null;
|
|
13
|
+
onChange?: (value: SwitchFilterCondition | null) => void;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
disabledTip?: string;
|
|
17
|
+
permission?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const SwitchFilter: React.FC<SwitchFilterProps>;
|
|
21
|
+
//# sourceMappingURL=SwitchFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwitchFilter.d.ts","sourceRoot":"","sources":["../../../../lib/components/Switch/SwitchFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAA4C,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIpG,MAAM,MAAM,qBAAqB,GAAG,eAAe,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5F,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI,KAAK,IAAI,CAAC;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyEpD,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export type { CompactSwitchProps, SwitchProps } from './Switch';
|
|
2
2
|
export { CompactSwitch, Switch } from './Switch';
|
|
3
|
+
export type { SwitchFilterCondition, SwitchFilterProps } from './SwitchFilter';
|
|
4
|
+
export { SwitchFilter } from './SwitchFilter';
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Switch/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Switch/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACjD,YAAY,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -38,6 +38,7 @@ export * from './PermissionGate';
|
|
|
38
38
|
export * from './PhoneField';
|
|
39
39
|
export * from './PieChart';
|
|
40
40
|
export * from './Progress';
|
|
41
|
+
export * from './QuantityField';
|
|
41
42
|
export * from './RadarChart';
|
|
42
43
|
export * from './RadialChart';
|
|
43
44
|
export * from './RadioGroup';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,C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C;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CurrencyAmount, FormattedValue } from '../utils/format';
|
|
1
|
+
import { CurrencyAmount, DisplayQuantity, FormattedValue } from '../utils/format';
|
|
2
2
|
export interface Formatters {
|
|
3
3
|
string: (value: React.ReactNode) => FormattedValue;
|
|
4
4
|
number: (value: number | string | null | undefined, options?: {
|
|
@@ -10,6 +10,7 @@ export interface Formatters {
|
|
|
10
10
|
currency: (value: CurrencyAmount | null | undefined, options?: {
|
|
11
11
|
exchangeRate?: number | null;
|
|
12
12
|
}) => FormattedValue;
|
|
13
|
+
quantity: (value: DisplayQuantity | null | undefined) => FormattedValue;
|
|
13
14
|
date: (value: string | null | undefined) => FormattedValue;
|
|
14
15
|
dateTime: (value: string | null | undefined, options?: {
|
|
15
16
|
timeZone?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormatters.d.ts","sourceRoot":"","sources":["../../../lib/hooks/useFormatters.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"useFormatters.d.ts","sourceRoot":"","sources":["../../../lib/hooks/useFormatters.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,EAQpB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,KAAK,cAAc,CAAC;IACnD,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,cAAc,CAAC;IAC7G,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE;QAAE,qBAAqB,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,cAAc,CAAC;IACrH,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,KAAK,cAAc,CAAC;IACnH,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,KAAK,cAAc,CAAC;IACxE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,KAAK,cAAc,CAAC;IAC3D,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,cAAc,CAAC;CACjG;AAED,MAAM,WAAW,oBAAoB;IAEnC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,UAAU,CAqBxE"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SelectProps } from '../../components/Select/Select';
|
|
2
|
-
|
|
2
|
+
import { DistributiveOmit } from '../../types/utility';
|
|
3
|
+
export type CurrencySelectorProps = DistributiveOmit<SelectProps, 'optionsEndpoint'> & {
|
|
3
4
|
excludeCodes?: string[];
|
|
4
5
|
};
|
|
5
|
-
export declare const CurrencySelector: import('react').ForwardRefExoticComponent<
|
|
6
|
-
excludeCodes?: string[];
|
|
7
|
-
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export declare const CurrencySelector: import('react').ForwardRefExoticComponent<CurrencySelectorProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
7
|
//# sourceMappingURL=CurrencySelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencySelector.d.ts","sourceRoot":"","sources":["../../../../lib/selects/currency/CurrencySelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"CurrencySelector.d.ts","sourceRoot":"","sources":["../../../../lib/selects/currency/CurrencySelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG;IACrF,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAGF,eAAO,MAAM,gBAAgB,qHAe5B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectProps } from '../../components/Select/Select';
|
|
2
2
|
import { SelectFilterProps } from '../../components/Select/SelectFilter';
|
|
3
3
|
import { DistributiveOmit } from '../../types/utility';
|
|
4
|
-
export type ISOCountrySelectProps =
|
|
4
|
+
export type ISOCountrySelectProps = DistributiveOmit<SelectProps, 'optionsEndpoint' | 'options'>;
|
|
5
5
|
export declare const ISOCountrySelect: import('react').ForwardRefExoticComponent<ISOCountrySelectProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
export type ISOCountryFilterProps = DistributiveOmit<SelectFilterProps, 'optionsEndpoint' | 'options' | 'name'> & {
|
|
7
7
|
name?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISOCountrySelect.d.ts","sourceRoot":"","sources":["../../../../lib/selects/iso-country/ISOCountrySelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAS5D,MAAM,MAAM,qBAAqB,GAAG,
|
|
1
|
+
{"version":3,"file":"ISOCountrySelect.d.ts","sourceRoot":"","sources":["../../../../lib/selects/iso-country/ISOCountrySelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAS5D,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC,CAAC;AAGjG,eAAO,MAAM,gBAAgB,qHAE3B,CAAC;AAGH,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAAC,GAAG;IAChH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;;CAY5B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SelectProps } from '../../components/Select/Select';
|
|
2
|
-
|
|
2
|
+
import { DistributiveOmit } from '../../types/utility';
|
|
3
|
+
export type LocaleSelectorProps = DistributiveOmit<SelectProps, 'optionsEndpoint'>;
|
|
3
4
|
export declare const LocaleSelector: import('react').ForwardRefExoticComponent<LocaleSelectorProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
4
5
|
//# sourceMappingURL=LocaleSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocaleSelector.d.ts","sourceRoot":"","sources":["../../../../lib/selects/locale/LocaleSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"LocaleSelector.d.ts","sourceRoot":"","sources":["../../../../lib/selects/locale/LocaleSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;AAGnF,eAAO,MAAM,cAAc,mHAEzB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SelectProps } from '../../components/Select/Select';
|
|
2
|
-
|
|
2
|
+
import { DistributiveOmit } from '../../types/utility';
|
|
3
|
+
export type TimezoneSelectorProps = DistributiveOmit<SelectProps, 'optionsEndpoint'>;
|
|
3
4
|
export declare const TimezoneSelector: import('react').ForwardRefExoticComponent<TimezoneSelectorProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
4
5
|
//# sourceMappingURL=TimezoneSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimezoneSelector.d.ts","sourceRoot":"","sources":["../../../../lib/selects/timezone/TimezoneSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"TimezoneSelector.d.ts","sourceRoot":"","sources":["../../../../lib/selects/timezone/TimezoneSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;AAGrF,eAAO,MAAM,gBAAgB,qHAE3B,CAAC"}
|
|
@@ -41,15 +41,12 @@ export interface SnapshotPermission {
|
|
|
41
41
|
export interface SnapshotMicrofrontendWeb {
|
|
42
42
|
code: string;
|
|
43
43
|
name: string;
|
|
44
|
-
remoteEntry: string;
|
|
45
44
|
exposedModule: string;
|
|
46
45
|
routePrefix: string;
|
|
47
46
|
}
|
|
48
47
|
export interface SnapshotMicrofrontendMobile {
|
|
49
48
|
code: string;
|
|
50
49
|
name: string;
|
|
51
|
-
remoteEntryAndroid: string;
|
|
52
|
-
remoteEntryIos: string;
|
|
53
50
|
exposedModule: string;
|
|
54
51
|
routePrefix: string;
|
|
55
52
|
}
|
|
@@ -140,13 +137,12 @@ export interface FeatureCatalogEntry {
|
|
|
140
137
|
sfSymbol: string;
|
|
141
138
|
materialSymbol: string;
|
|
142
139
|
web: {
|
|
143
|
-
|
|
140
|
+
microfrontendCode: string;
|
|
144
141
|
exposedModule: string;
|
|
145
142
|
routePrefix: string;
|
|
146
143
|
} | null;
|
|
147
144
|
mobile: {
|
|
148
|
-
|
|
149
|
-
remoteEntryIos: string;
|
|
145
|
+
microfrontendCode: string;
|
|
150
146
|
exposedModule: string;
|
|
151
147
|
routePrefix: string;
|
|
152
148
|
} | null;
|
|
@@ -233,7 +229,7 @@ export interface PermissionFeature {
|
|
|
233
229
|
lockedPermissions: LockedPermission[];
|
|
234
230
|
upsell: PlanUpsell[];
|
|
235
231
|
route: {
|
|
236
|
-
|
|
232
|
+
microfrontendCode: string;
|
|
237
233
|
exposedModule: string;
|
|
238
234
|
routePrefix: string;
|
|
239
235
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-resolver.d.ts","sourceRoot":"","sources":["../../../lib/types/catalog-resolver.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEnE,eAAO,MAAM,SAAS,EAAE,cAAc,EAAyC,CAAC;AAGhF,MAA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E,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAClD,YAAY,EAAE,cAAc,CAAC;IAC7B,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,cAAc,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,cAAc,CAAC;IAC1B,OAAO,EAAE,aAAa,GAAG,SAAS,CAAC;CACpC"}
|
|
@@ -19,6 +19,19 @@ export interface FormatPercentOptions {
|
|
|
19
19
|
maximumFractionDigits?: number;
|
|
20
20
|
}
|
|
21
21
|
export declare const formatPercent: (value: number | string | null | undefined, options: FormatPercentOptions) => FormattedValue;
|
|
22
|
+
export type DisplayQuantity = {
|
|
23
|
+
primaryUomQty: number;
|
|
24
|
+
displayUomQty: number;
|
|
25
|
+
wholeDisplayUomQty: number;
|
|
26
|
+
remainderPrimaryUomQty: number;
|
|
27
|
+
displayUomSymbol: string;
|
|
28
|
+
primaryUomSymbol: string;
|
|
29
|
+
isPack: boolean;
|
|
30
|
+
};
|
|
31
|
+
export interface FormatQuantityOptions {
|
|
32
|
+
localeTag: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const formatQuantity: (value: DisplayQuantity | null | undefined, options: FormatQuantityOptions) => FormattedValue;
|
|
22
35
|
export interface FormatCurrencyOptions {
|
|
23
36
|
workspaceCurrency?: string | null;
|
|
24
37
|
exchangeRate?: number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../lib/utils/format.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,MAAM,cAAc,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA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O,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,cAAc,GACzB,OAAO,eAAe,GAAG,IAAI,GAAG,SAAS,EACzC,SAAS,qBAAqB,KAC7B,cAcF,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,cAAc,GACzB,OAAO,cAAc,GAAG,IAAI,GAAG,SAAS,EACxC,UAAS,qBAA0B,KAClC,cAeF,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,UAAS,iBAAsB,KAAG,cAM9F,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,GACzB,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,UAAS,qBAA0B,KAClC,cAgBF,CAAC"}
|
package/dist/timezone.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-resolver.js","sources":["../../lib/types/catalog-resolver.ts"],"sourcesContent":["// Frontend mirror of @vritti/api-sdk/catalog-resolver types — keep field-for-field in sync\n\n/**\n * The surfaces a permission can be granted on.\n *\n * `web` and `mobile` are UI buckets, reached by loading a microfrontend. `graphql` and `http` are\n * API surfaces a credential signs its own requests against — no microfrontend and no route, so a\n * headless feature is grantable there and nowhere else, and each surface is entitled independently.\n */\nexport type PlatformBucket = 'web' | 'mobile' | 'graphql' | 'http';\n\nexport const PLATFORMS: PlatformBucket[] = ['web', 'mobile', 'graphql', 'http'];\n\n/** Buckets that reach their feature through a microfrontend, and so require one to resolve. */\nexport type UiPlatformBucket = 'web' | 'mobile';\n\nexport const UI_PLATFORMS: UiPlatformBucket[] = ['web', 'mobile'];\n\n// The API surfaces an app credential can present — the values of core's `app_type` enum\nexport const API_SURFACES = ['GRAPHQL', 'HTTP'] as const;\nexport type ApiSurface = (typeof API_SURFACES)[number];\n\n/** Buckets that admit an API credential rather than a person — exactly one per surface. */\nexport type ApiBucket = Exclude<PlatformBucket, UiPlatformBucket>;\n\nexport const API_BUCKETS: ApiBucket[] = ['graphql', 'http'];\n\nexport const SURFACE_BY_BUCKET: Record<ApiBucket, ApiSurface> = { graphql: 'GRAPHQL', http: 'HTTP' };\nexport const BUCKET_BY_SURFACE: Record<ApiSurface, ApiBucket> = { GRAPHQL: 'graphql', HTTP: 'http' };\n\nexport function isApiBucket(bucket: PlatformBucket): bucket is ApiBucket {\n return bucket === 'graphql' || bucket === 'http';\n}\n\nexport interface PlatformCodes {\n web?: string[];\n mobile?: string[];\n graphql?: string[];\n http?: string[];\n}\n\nexport interface PlatformDenyCodes {\n web?: string[] | null;\n mobile?: string[] | null;\n graphql?: string[] | null;\n http?: string[] | null;\n}\n\nexport type FeatureUnlocks = Record<string, PlatformCodes>;\n\nexport type FeatureLocks = Record<string, PlatformDenyCodes>;\nexport type WorkspaceFeatureLocks = FeatureLocks;\n\nexport interface PermissionGroupRef {\n code: string;\n label: string;\n sortOrder: number;\n}\n\nexport interface SnapshotPermission {\n code: string;\n label: string;\n isGlobal: boolean;\n businesses: string[];\n dependsOn: string[];\n platforms: PlatformBucket[];\n group?: string;\n}\n\nexport interface SnapshotMicrofrontendWeb {\n code: string;\n name: string;\n
|
|
1
|
+
{"version":3,"file":"catalog-resolver.js","sources":["../../lib/types/catalog-resolver.ts"],"sourcesContent":["// Frontend mirror of @vritti/api-sdk/catalog-resolver types — keep field-for-field in sync\n\n/**\n * The surfaces a permission can be granted on.\n *\n * `web` and `mobile` are UI buckets, reached by loading a microfrontend. `graphql` and `http` are\n * API surfaces a credential signs its own requests against — no microfrontend and no route, so a\n * headless feature is grantable there and nowhere else, and each surface is entitled independently.\n */\nexport type PlatformBucket = 'web' | 'mobile' | 'graphql' | 'http';\n\nexport const PLATFORMS: PlatformBucket[] = ['web', 'mobile', 'graphql', 'http'];\n\n/** Buckets that reach their feature through a microfrontend, and so require one to resolve. */\nexport type UiPlatformBucket = 'web' | 'mobile';\n\nexport const UI_PLATFORMS: UiPlatformBucket[] = ['web', 'mobile'];\n\n// The API surfaces an app credential can present — the values of core's `app_type` enum\nexport const API_SURFACES = ['GRAPHQL', 'HTTP'] as const;\nexport type ApiSurface = (typeof API_SURFACES)[number];\n\n/** Buckets that admit an API credential rather than a person — exactly one per surface. */\nexport type ApiBucket = Exclude<PlatformBucket, UiPlatformBucket>;\n\nexport const API_BUCKETS: ApiBucket[] = ['graphql', 'http'];\n\nexport const SURFACE_BY_BUCKET: Record<ApiBucket, ApiSurface> = { graphql: 'GRAPHQL', http: 'HTTP' };\nexport const BUCKET_BY_SURFACE: Record<ApiSurface, ApiBucket> = { GRAPHQL: 'graphql', HTTP: 'http' };\n\nexport function isApiBucket(bucket: PlatformBucket): bucket is ApiBucket {\n return bucket === 'graphql' || bucket === 'http';\n}\n\nexport interface PlatformCodes {\n web?: string[];\n mobile?: string[];\n graphql?: string[];\n http?: string[];\n}\n\nexport interface PlatformDenyCodes {\n web?: string[] | null;\n mobile?: string[] | null;\n graphql?: string[] | null;\n http?: string[] | null;\n}\n\nexport type FeatureUnlocks = Record<string, PlatformCodes>;\n\nexport type FeatureLocks = Record<string, PlatformDenyCodes>;\nexport type WorkspaceFeatureLocks = FeatureLocks;\n\nexport interface PermissionGroupRef {\n code: string;\n label: string;\n sortOrder: number;\n}\n\nexport interface SnapshotPermission {\n code: string;\n label: string;\n isGlobal: boolean;\n businesses: string[];\n dependsOn: string[];\n platforms: PlatformBucket[];\n group?: string;\n}\n\nexport interface SnapshotMicrofrontendWeb {\n code: string;\n name: string;\n exposedModule: string;\n routePrefix: string;\n}\n\nexport interface SnapshotMicrofrontendMobile {\n code: string;\n name: string;\n exposedModule: string;\n routePrefix: string;\n}\n\nexport interface SnapshotMicrofrontends {\n web?: SnapshotMicrofrontendWeb;\n mobile?: SnapshotMicrofrontendMobile;\n}\n\nexport type ScopeType = 'ORG' | 'LE' | 'SITE_GROUP' | 'SITE';\nexport type SiteType = 'OUTLET' | 'WAREHOUSE' | 'PRODUCTION';\nexport const SERVICE_CODES = ['GITEA'] as const;\nexport type ServiceCode = (typeof SERVICE_CODES)[number];\nexport interface SnapshotFeature {\n code: string;\n name: string;\n lucideIcon: string;\n sfSymbol: string;\n materialSymbol: string;\n scope: ScopeType;\n applicableSiteTypes: SiteType[];\n permissions: SnapshotPermission[];\n microfrontends: SnapshotMicrofrontends;\n requiredServices: ServiceCode[];\n permissionGroups: PermissionGroupRef[];\n // Strict — it decides which of the `graphql`/`http` buckets the feature offers at all\n apiSurfaces: ApiSurface[];\n}\n\nexport interface SnapshotAppFeatureRef {\n code: string;\n scope: ScopeType;\n}\n\nexport interface SnapshotApp {\n code: string;\n name: string;\n icon: string;\n sortOrder: number;\n features: SnapshotAppFeatureRef[];\n}\n\nexport interface SnapshotRoleTemplate {\n name: string;\n code: string;\n scope: ScopeType;\n siteType: SiteType;\n features: FeatureUnlocks;\n}\n\nexport interface SnapshotPlan {\n code: string;\n name: string;\n isCustom: boolean;\n maxSites: number | null;\n unlockedPermissions: FeatureUnlocks;\n}\n\nexport interface VocabularyEntry {\n singular: string;\n plural: string;\n}\nexport interface BusinessVocabulary {\n site?: VocabularyEntry;\n siteGroup?: VocabularyEntry;\n outlet?: VocabularyEntry;\n warehouse?: VocabularyEntry;\n production?: VocabularyEntry;\n}\nexport interface SnapshotBusiness {\n name: string;\n vocabulary?: BusinessVocabulary;\n roleTemplates: Record<string, SnapshotRoleTemplate>;\n plans: Record<string, SnapshotPlan>;\n}\n\nexport interface VersionSnapshot {\n schemaVersion?: number;\n // Flat feature dictionary keyed by `${scope}.${code}` (see snapshotFeatureKey) — same-code features at different scopes stay distinct\n features: Record<string, SnapshotFeature>;\n apps: SnapshotApp[];\n businesses: Record<string, SnapshotBusiness>;\n}\n\n// Composite key for the snapshot feature dictionary — feature identity is (scope, code)\nexport function snapshotFeatureKey(code: string, scope: ScopeType): string {\n return `${scope}.${code}`;\n}\n\nexport const SNAPSHOT_SCHEMA_VERSION = 6;\n\nexport type LockReason = 'PLAN' | 'WORKSPACE' | 'SERVICE';\n\nexport interface CatalogPermission {\n code: string;\n locked: boolean;\n lockReason: LockReason | null;\n unlockPlans: string[];\n missingServices: ServiceCode[];\n}\n\nexport interface FeatureCatalogEntry {\n code: string;\n name: string;\n lucideIcon: string | null;\n sfSymbol: string;\n materialSymbol: string;\n web: {\n microfrontendCode: string;\n exposedModule: string;\n routePrefix: string;\n } | null;\n mobile: {\n microfrontendCode: string;\n exposedModule: string;\n routePrefix: string;\n } | null;\n appCode: string;\n appName: string;\n appIcon: string | null;\n appSortOrder: number;\n locked: boolean;\n lockReason: LockReason | null;\n unlockPlans: string[];\n missingServices: ServiceCode[];\n permissions: CatalogPermission[];\n}\n\nexport type RoleItem = SnapshotRoleTemplate;\n\nexport interface SiteMatrixCell {\n inPlan: boolean;\n selected: boolean;\n availableIn: string[];\n}\n\nexport interface SiteMatrixPermission {\n code: string;\n label: string;\n dependsOn: string[];\n group?: PermissionGroupRef;\n web: SiteMatrixCell | null;\n mobile: SiteMatrixCell | null;\n graphql: SiteMatrixCell | null;\n http: SiteMatrixCell | null;\n}\n\nexport interface SiteMatrixFeature {\n code: string;\n name: string;\n icon: string | null;\n scope: ScopeType;\n applicableSiteTypes: SiteType[];\n platforms: PlatformBucket[];\n inPlan: boolean;\n availableIn: string[];\n // API surfaces the feature declares — lets the app-credential editor filter by credential type\n apiSurfaces: ApiSurface[];\n permissions: SiteMatrixPermission[];\n}\n\nexport interface MatrixCounts {\n unlocked: number;\n total: number;\n}\n\nexport interface SiteMatrixApp {\n code: string;\n name: string;\n icon: string | null;\n counts: Record<PlatformBucket, MatrixCounts>;\n features: SiteMatrixFeature[];\n}\n\nexport interface SiteMatrix {\n plan: { code: string; name: string };\n apps: SiteMatrixApp[];\n locks: WorkspaceFeatureLocks;\n}\n\nexport type RevokedGrants = Record<string, PlatformDenyCodes>;\n\nexport type ClientPlatform = 'web' | 'ios' | 'android' | 'graphql' | 'http';\n\nexport interface LockedPermission {\n code: string;\n reason: LockReason | null;\n unlockPlans: string[];\n missingServices: ServiceCode[];\n}\n\nexport interface PlanUpsell {\n plan: string;\n features: string[];\n}\n\nexport interface PermissionFeature {\n code: string;\n name: string;\n lucideIcon: string | null;\n sfSymbol: string;\n materialSymbol: string;\n permissions: string[];\n locked: boolean;\n lockReason: LockReason | null;\n unlockPlans: string[];\n // Which declared services the org has not provisioned — empty unless lockReason is 'SERVICE'\n missingServices: ServiceCode[];\n lockedPermissions: LockedPermission[];\n upsell: PlanUpsell[];\n route: {\n microfrontendCode: string;\n exposedModule: string;\n routePrefix: string;\n };\n appCode: string;\n appName: string;\n appIcon: string | null;\n appSortOrder: number;\n}\n\nexport interface ResolveUserFeaturesParams {\n snapshot: VersionSnapshot;\n businessCode: string;\n planCode: string | undefined;\n workspaceLocks: WorkspaceFeatureLocks | undefined;\n roleFeatures: FeatureUnlocks;\n platform: ClientPlatform;\n}\n\nexport interface ComposeRoleGrantsParams {\n baseFeatures: FeatureUnlocks | undefined;\n additions: FeatureUnlocks;\n revoked: RevokedGrants | undefined;\n}\n"],"names":[],"mappings":"AAWO,MAAM,SAAA,GAA8B,CAAC,KAAA,EAAO,QAAA,EAAU,WAAW,MAAM;AAKvE,MAAM,YAAA,GAAmC,CAAC,KAAA,EAAO,QAAQ;AAGzD,MAAM,YAAA,GAAe,CAAC,SAAA,EAAW,MAAM;AAMvC,MAAM,WAAA,GAA2B,CAAC,SAAA,EAAW,MAAM;AAEnD,MAAM,iBAAA,GAAmD,EAAE,OAAA,EAAS,SAAA,EAAW,MAAM,MAAA;AACrF,MAAM,iBAAA,GAAmD,EAAE,OAAA,EAAS,SAAA,EAAW,MAAM,MAAA;AAErF,SAAS,YAAY,MAAA,EAA6C;AACvE,EAAA,OAAO,MAAA,KAAW,aAAa,MAAA,KAAW,MAAA;AAC5C;AA0DO,MAAM,aAAA,GAAgB,CAAC,OAAO;AA0E9B,SAAS,kBAAA,CAAmB,MAAc,KAAA,EAA0B;AACzE,EAAA,OAAO,CAAA,EAAG,KAAK,CAAA,CAAA,EAAI,IAAI,CAAA,CAAA;AACzB;AAEO,MAAM,uBAAA,GAA0B;;;;"}
|
package/dist/useContextState.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useQueryClient, useQuery } from '@tanstack/react-query';
|
|
2
2
|
import { d as deepEqual, w as withDefaults, a as withChange, r as readValue, b as readValues } from './conditions.js';
|
|
3
3
|
import { useState, useRef, useCallback, useEffect, useMemo, useLayoutEffect } from 'react';
|
|
4
|
-
import { g as getConfig } from './
|
|
4
|
+
import { g as getConfig } from './index6.js';
|
|
5
5
|
import { axios } from './utils/axios.js';
|
|
6
6
|
import { t as toast } from './toast.js';
|
|
7
7
|
|
package/dist/useDataTable.js
CHANGED
|
@@ -47,7 +47,7 @@ import { S as Save, a as Share2 } from './share-2.js';
|
|
|
47
47
|
import { P as Pencil, a as Plus, T as Trash2 } from './trash-2.js';
|
|
48
48
|
import { S as Separator } from './separator2.js';
|
|
49
49
|
import { C as Checkbox } from './Checkbox.js';
|
|
50
|
-
import { g as getConfig } from './
|
|
50
|
+
import { g as getConfig } from './index6.js';
|
|
51
51
|
import { t as toast } from './toast.js';
|
|
52
52
|
|
|
53
53
|
function viewsUrl(path = "") {
|
package/dist/useFormatters.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { resolveCurrency } from './utils/currency.js';
|
|
3
|
-
import { formatString, formatDateTime, formatDate, formatCurrency, formatPercent, formatNumber } from './utils/format.js';
|
|
3
|
+
import { formatString, formatDateTime, formatDate, formatQuantity, formatCurrency, formatPercent, formatNumber } from './utils/format.js';
|
|
4
4
|
import { getLocale } from './utils/locale.js';
|
|
5
5
|
import { u as useLocale } from './useLocale.js';
|
|
6
6
|
import { u as useWorkspaceTimeZone } from './useWorkspaceTimeZone.js';
|
|
@@ -16,6 +16,7 @@ function useFormatters(options) {
|
|
|
16
16
|
number: (value, options2) => formatNumber(value, { localeTag, fractionDigits: options2?.fractionDigits }),
|
|
17
17
|
percent: (value, options2) => formatPercent(value, { localeTag, maximumFractionDigits: options2?.maximumFractionDigits }),
|
|
18
18
|
currency: (value, options2) => formatCurrency(value, { workspaceCurrency, exchangeRate: options2?.exchangeRate ?? null }),
|
|
19
|
+
quantity: (value) => formatQuantity(value, { localeTag }),
|
|
19
20
|
date: (value) => formatDate(value, { locale }),
|
|
20
21
|
dateTime: (value, options2) => formatDateTime(value, { locale, workspaceTimeZone, timeZoneOverride: options2?.timeZone })
|
|
21
22
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormatters.js","sources":["../lib/hooks/useFormatters.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { resolveCurrency } from '../utils/currency';\nimport {\n type CurrencyAmount,\n type FormattedValue,\n formatCurrency,\n formatDate,\n formatDateTime,\n formatNumber,\n formatPercent,\n formatString,\n} from '../utils/format';\nimport { getLocale } from '../utils/locale';\nimport { useLocale } from './useLocale';\nimport { useWorkspaceTimeZone } from './useWorkspaceTimeZone';\n\nexport interface Formatters {\n string: (value: React.ReactNode) => FormattedValue;\n number: (value: number | string | null | undefined, options?: { fractionDigits?: number }) => FormattedValue;\n percent: (value: number | string | null | undefined, options?: { maximumFractionDigits?: number }) => FormattedValue;\n currency: (value: CurrencyAmount | null | undefined, options?: { exchangeRate?: number | null }) => FormattedValue;\n date: (value: string | null | undefined) => FormattedValue;\n dateTime: (value: string | null | undefined, options?: { timeZone?: string }) => FormattedValue;\n}\n\nexport interface UseFormattersOptions {\n // Formats for one site inside an LE or site-group workspace — its timezone and currency instead of the workspace's\n siteId?: string | null;\n}\n\nexport function useFormatters(options?: UseFormattersOptions): Formatters {\n const locale = useLocale();\n const workspaceTimeZone = useWorkspaceTimeZone(options?.siteId);\n const workspaceCurrency = resolveCurrency(options?.siteId);\n const localeTag = getLocale() ?? 'en-US';\n\n return useMemo<Formatters>(\n () => ({\n string: formatString,\n number: (value, options) => formatNumber(value, { localeTag, fractionDigits: options?.fractionDigits }),\n percent: (value, options) =>\n formatPercent(value, { localeTag, maximumFractionDigits: options?.maximumFractionDigits }),\n currency: (value, options) =>\n formatCurrency(value, { workspaceCurrency, exchangeRate: options?.exchangeRate ?? null }),\n date: (value) => formatDate(value, { locale }),\n dateTime: (value, options) =>\n formatDateTime(value, { locale, workspaceTimeZone, timeZoneOverride: options?.timeZone }),\n }),\n [locale, workspaceTimeZone, workspaceCurrency, localeTag],\n );\n}\n"],"names":["options"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"useFormatters.js","sources":["../lib/hooks/useFormatters.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { resolveCurrency } from '../utils/currency';\nimport {\n type CurrencyAmount,\n type DisplayQuantity,\n type FormattedValue,\n formatCurrency,\n formatDate,\n formatDateTime,\n formatNumber,\n formatPercent,\n formatQuantity,\n formatString,\n} from '../utils/format';\nimport { getLocale } from '../utils/locale';\nimport { useLocale } from './useLocale';\nimport { useWorkspaceTimeZone } from './useWorkspaceTimeZone';\n\nexport interface Formatters {\n string: (value: React.ReactNode) => FormattedValue;\n number: (value: number | string | null | undefined, options?: { fractionDigits?: number }) => FormattedValue;\n percent: (value: number | string | null | undefined, options?: { maximumFractionDigits?: number }) => FormattedValue;\n currency: (value: CurrencyAmount | null | undefined, options?: { exchangeRate?: number | null }) => FormattedValue;\n quantity: (value: DisplayQuantity | null | undefined) => FormattedValue;\n date: (value: string | null | undefined) => FormattedValue;\n dateTime: (value: string | null | undefined, options?: { timeZone?: string }) => FormattedValue;\n}\n\nexport interface UseFormattersOptions {\n // Formats for one site inside an LE or site-group workspace — its timezone and currency instead of the workspace's\n siteId?: string | null;\n}\n\nexport function useFormatters(options?: UseFormattersOptions): Formatters {\n const locale = useLocale();\n const workspaceTimeZone = useWorkspaceTimeZone(options?.siteId);\n const workspaceCurrency = resolveCurrency(options?.siteId);\n const localeTag = getLocale() ?? 'en-US';\n\n return useMemo<Formatters>(\n () => ({\n string: formatString,\n number: (value, options) => formatNumber(value, { localeTag, fractionDigits: options?.fractionDigits }),\n percent: (value, options) =>\n formatPercent(value, { localeTag, maximumFractionDigits: options?.maximumFractionDigits }),\n currency: (value, options) =>\n formatCurrency(value, { workspaceCurrency, exchangeRate: options?.exchangeRate ?? null }),\n quantity: (value) => formatQuantity(value, { localeTag }),\n date: (value) => formatDate(value, { locale }),\n dateTime: (value, options) =>\n formatDateTime(value, { locale, workspaceTimeZone, timeZoneOverride: options?.timeZone }),\n }),\n [locale, workspaceTimeZone, workspaceCurrency, localeTag],\n );\n}\n"],"names":["options"],"mappings":";;;;;;;AAiCO,SAAS,cAAc,OAAA,EAA4C;AACxE,EAAA,MAAM,SAAS,SAAA,EAAU;AACzB,EAAA,MAAM,iBAAA,GAAoB,oBAAA,CAAqB,OAAA,EAAS,MAAM,CAAA;AAC9D,EAAA,MAAM,iBAAA,GAAoB,eAAA,CAAgB,OAAA,EAAS,MAAM,CAAA;AACzD,EAAA,MAAM,SAAA,GAAY,WAAU,IAAK,OAAA;AAEjC,EAAA,OAAO,OAAA;AAAA,IACL,OAAO;AAAA,MACL,MAAA,EAAQ,YAAA;AAAA,MACR,MAAA,EAAQ,CAAC,KAAA,EAAOA,QAAAA,KAAY,YAAA,CAAa,KAAA,EAAO,EAAE,SAAA,EAAW,cAAA,EAAgBA,QAAAA,EAAS,cAAA,EAAgB,CAAA;AAAA,MACtG,OAAA,EAAS,CAAC,KAAA,EAAOA,QAAAA,KACf,aAAA,CAAc,KAAA,EAAO,EAAE,SAAA,EAAW,qBAAA,EAAuBA,QAAAA,EAAS,qBAAA,EAAuB,CAAA;AAAA,MAC3F,QAAA,EAAU,CAAC,KAAA,EAAOA,QAAAA,KAChB,cAAA,CAAe,KAAA,EAAO,EAAE,iBAAA,EAAmB,YAAA,EAAcA,QAAAA,EAAS,YAAA,IAAgB,IAAA,EAAM,CAAA;AAAA,MAC1F,UAAU,CAAC,KAAA,KAAU,eAAe,KAAA,EAAO,EAAE,WAAW,CAAA;AAAA,MACxD,MAAM,CAAC,KAAA,KAAU,WAAW,KAAA,EAAO,EAAE,QAAQ,CAAA;AAAA,MAC7C,QAAA,EAAU,CAAC,KAAA,EAAOA,QAAAA,KAChB,cAAA,CAAe,KAAA,EAAO,EAAE,MAAA,EAAQ,iBAAA,EAAmB,gBAAA,EAAkBA,QAAAA,EAAS,QAAA,EAAU;AAAA,KAC5F,CAAA;AAAA,IACA,CAAC,MAAA,EAAQ,iBAAA,EAAmB,iBAAA,EAAmB,SAAS;AAAA,GAC1D;AACF;;;;"}
|
|
@@ -5,7 +5,7 @@ import { generateCategoricalColors } from './utils/colors.js';
|
|
|
5
5
|
import { getOrgCountryCode } from './utils/country.js';
|
|
6
6
|
import { useParams, useLocation } from 'react-router-dom';
|
|
7
7
|
import { parseSlug, unslugify } from './utils/slug.js';
|
|
8
|
-
import { g as getConfig } from './
|
|
8
|
+
import { g as getConfig } from './index6.js';
|
|
9
9
|
import { resolveCurrency } from './utils/currency.js';
|
|
10
10
|
|
|
11
11
|
const DEFAULT_MIN_LENGTH = 3;
|
package/dist/utils/axios.js
CHANGED
package/dist/utils/currency.js
CHANGED
package/dist/utils/format.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../
|
|
1
|
+
import '../index7.js';
|
|
2
2
|
import { g as getUserTimeZone, t as tz } from '../timezone.js';
|
|
3
3
|
import Decimal from './decimal.js';
|
|
4
4
|
import { formatCurrencyMajor } from './money.js';
|
|
@@ -42,6 +42,21 @@ const formatPercent = (value, options) => {
|
|
|
42
42
|
});
|
|
43
43
|
return { primary: formatter.format(new Decimal(num).div(100).toNumber()) };
|
|
44
44
|
};
|
|
45
|
+
const formatQuantity = (value, options) => {
|
|
46
|
+
if (value == null) return { primary: "—" };
|
|
47
|
+
const number = numberFormatter(options.localeTag);
|
|
48
|
+
const inPrimary = `${number.format(value.primaryUomQty)} ${value.primaryUomSymbol}`;
|
|
49
|
+
if (value.displayUomSymbol === value.primaryUomSymbol) return { primary: inPrimary };
|
|
50
|
+
if (!value.isPack) {
|
|
51
|
+
return { primary: `${number.format(value.displayUomQty)} ${value.displayUomSymbol}`, secondary: inPrimary };
|
|
52
|
+
}
|
|
53
|
+
if (value.wholeDisplayUomQty === 0) return { primary: inPrimary };
|
|
54
|
+
const packs = `${number.format(value.wholeDisplayUomQty)} ${value.displayUomSymbol}`;
|
|
55
|
+
if (value.remainderPrimaryUomQty === 0) return { primary: packs, secondary: inPrimary };
|
|
56
|
+
const sign = value.remainderPrimaryUomQty < 0 ? "−" : "+";
|
|
57
|
+
const remainder = `${number.format(Math.abs(value.remainderPrimaryUomQty))} ${value.primaryUomSymbol}`;
|
|
58
|
+
return { primary: `${packs} ${sign} ${remainder}`, secondary: inPrimary };
|
|
59
|
+
};
|
|
45
60
|
const formatCurrency = (value, options = {}) => {
|
|
46
61
|
if (value == null) return { primary: "—" };
|
|
47
62
|
const { currency, value: amountStr } = value;
|
|
@@ -80,5 +95,5 @@ const formatDateTime = (value, options = {}) => {
|
|
|
80
95
|
};
|
|
81
96
|
};
|
|
82
97
|
|
|
83
|
-
export { formatCurrency, formatDate, formatDateTime, formatNumber, formatPercent, formatString };
|
|
98
|
+
export { formatCurrency, formatDate, formatDateTime, formatNumber, formatPercent, formatQuantity, formatString };
|
|
84
99
|
//# sourceMappingURL=format.js.map
|