@emporix/component-library 2.10.4 → 2.11.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/components/chip/Chip.d.ts +62 -0
- package/dist/components/chip/Chip.d.ts.map +1 -0
- package/dist/components/chip/index.d.ts +3 -0
- package/dist/components/chip/index.d.ts.map +1 -0
- package/dist/components/inputnumber/InputNumber.d.ts +159 -0
- package/dist/components/inputnumber/InputNumber.d.ts.map +1 -0
- package/dist/components/inputnumber/index.d.ts +3 -0
- package/dist/components/inputnumber/index.d.ts.map +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +55 -0
- package/dist/components/skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +3 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +134 -1
- package/dist/index.umd.js +29 -29
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { CSSProperties, KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
export interface ChipRemoveEvent {
|
|
3
|
+
originalEvent: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>;
|
|
4
|
+
value: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface ChipProps {
|
|
7
|
+
/**
|
|
8
|
+
* Text shown in the chip. Long labels are truncated with an ellipsis;
|
|
9
|
+
* set `title` (or wrap the chip) to expose the full text.
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional leading icon (e.g. `<i className='pi pi-user' />`).
|
|
14
|
+
*/
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Custom content rendered instead of `icon` + `label`.
|
|
18
|
+
*/
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Shows a remove icon that fires `onRemove`.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
removable?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Fired when the remove icon is clicked or activated with Enter/Space.
|
|
27
|
+
*/
|
|
28
|
+
onRemove?: (event: ChipRemoveEvent) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Accessible label for the remove control (pass a translated string).
|
|
31
|
+
* @default 'Remove'
|
|
32
|
+
*/
|
|
33
|
+
removeAriaLabel?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Native tooltip for the chip.
|
|
36
|
+
*/
|
|
37
|
+
title?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Additional CSS class name.
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Inline styles (e.g. `maxWidth`).
|
|
44
|
+
*/
|
|
45
|
+
style?: CSSProperties;
|
|
46
|
+
/**
|
|
47
|
+
* Test ID for the chip root.
|
|
48
|
+
*/
|
|
49
|
+
'data-testid'?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Read-only token with an optional remove action. API mirrors
|
|
53
|
+
* [PrimeReact Chip](https://primereact.org/chip/) (`label`, `icon`,
|
|
54
|
+
* `removable`, `onRemove`). The remove glyph is primeicons
|
|
55
|
+
* `pi-times-circle` (font ships in `@emporix/component-library/styles`) to
|
|
56
|
+
* match MD exactly.
|
|
57
|
+
*/
|
|
58
|
+
export declare const Chip: {
|
|
59
|
+
({ label, icon, children, removable, onRemove, removeAriaLabel, title, className, style, "data-testid": testId, }: ChipProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
displayName: string;
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIhF,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAA;IACnE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B;AAED,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IAC3C;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,IAAI;uHAWd,SAAS;;CAwCX,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { CSSProperties, FocusEvent, KeyboardEvent, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
export type InputNumberButtonLayout = 'stacked' | 'horizontal' | 'vertical';
|
|
3
|
+
export type InputNumberMode = 'decimal' | 'currency';
|
|
4
|
+
export interface InputNumberChangeEvent {
|
|
5
|
+
originalEvent: SyntheticEvent;
|
|
6
|
+
value: number | null;
|
|
7
|
+
}
|
|
8
|
+
export interface InputNumberProps {
|
|
9
|
+
/**
|
|
10
|
+
* Current value (controlled). `null` renders an empty input.
|
|
11
|
+
*/
|
|
12
|
+
value?: number | null;
|
|
13
|
+
/**
|
|
14
|
+
* Fired on every user edit (typing, spinner buttons, arrow keys).
|
|
15
|
+
* Same shape as PrimeReact `InputNumberChangeParams`.
|
|
16
|
+
*/
|
|
17
|
+
onChange?: (event: InputNumberChangeEvent) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Fired on blur after the value was normalised (min/max clamp, rounding).
|
|
20
|
+
*/
|
|
21
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Fired on key down in the input.
|
|
24
|
+
*/
|
|
25
|
+
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Renders increment / decrement buttons.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
showButtons?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Position of the spinner buttons. `horizontal` matches the MD quantity
|
|
33
|
+
* stepper (`-` input `+`).
|
|
34
|
+
* @default 'stacked'
|
|
35
|
+
*/
|
|
36
|
+
buttonLayout?: InputNumberButtonLayout;
|
|
37
|
+
/**
|
|
38
|
+
* Minimum allowed value.
|
|
39
|
+
*/
|
|
40
|
+
min?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Maximum allowed value.
|
|
43
|
+
*/
|
|
44
|
+
max?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Step for buttons and arrow keys.
|
|
47
|
+
* @default 1
|
|
48
|
+
*/
|
|
49
|
+
step?: number;
|
|
50
|
+
/**
|
|
51
|
+
* `currency` formats with the `currency` code and locale symbols.
|
|
52
|
+
* @default 'decimal'
|
|
53
|
+
*/
|
|
54
|
+
mode?: InputNumberMode;
|
|
55
|
+
/**
|
|
56
|
+
* ISO 4217 code, required when `mode` is `currency` (e.g. `EUR`).
|
|
57
|
+
*/
|
|
58
|
+
currency?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Locale for grouping / decimal separators (e.g. `de`). Pass the app
|
|
61
|
+
* language — the component does no i18n itself.
|
|
62
|
+
*/
|
|
63
|
+
locale?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Text before the number (e.g. `'€ '`).
|
|
66
|
+
*/
|
|
67
|
+
prefix?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Text after the number (e.g. `' %'`).
|
|
70
|
+
*/
|
|
71
|
+
suffix?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Minimum fraction digits.
|
|
74
|
+
*/
|
|
75
|
+
minFractionDigits?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Maximum fraction digits.
|
|
78
|
+
*/
|
|
79
|
+
maxFractionDigits?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Whether to use grouping separators (thousands).
|
|
82
|
+
* @default true
|
|
83
|
+
*/
|
|
84
|
+
useGrouping?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* When false, clearing the input resets it to `min` (or 0) instead of null.
|
|
87
|
+
* @default true
|
|
88
|
+
*/
|
|
89
|
+
allowEmpty?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Label rendered above the input.
|
|
92
|
+
*/
|
|
93
|
+
label?: ReactNode;
|
|
94
|
+
/**
|
|
95
|
+
* When set, an info icon with this tooltip is shown next to the label.
|
|
96
|
+
*/
|
|
97
|
+
tooltip?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the field is required (shows an asterisk on the label).
|
|
100
|
+
* @default false
|
|
101
|
+
*/
|
|
102
|
+
required?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Error text rendered below the input.
|
|
105
|
+
*/
|
|
106
|
+
error?: ReactNode;
|
|
107
|
+
/**
|
|
108
|
+
* Placeholder shown while empty.
|
|
109
|
+
*/
|
|
110
|
+
placeholder?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Id for the inner input (for label association via htmlFor).
|
|
113
|
+
*/
|
|
114
|
+
inputId?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Name attribute forwarded to the inner input.
|
|
117
|
+
*/
|
|
118
|
+
name?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Disables the input and buttons.
|
|
121
|
+
* @default false
|
|
122
|
+
*/
|
|
123
|
+
disabled?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Prevents editing; buttons are disabled as well.
|
|
126
|
+
* @default false
|
|
127
|
+
*/
|
|
128
|
+
readOnly?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Inline styles on the PrimeReact `.p-inputnumber` root.
|
|
131
|
+
*/
|
|
132
|
+
style?: CSSProperties;
|
|
133
|
+
/**
|
|
134
|
+
* Inline styles on the inner input (e.g. `{ width: '6rem' }`).
|
|
135
|
+
*/
|
|
136
|
+
inputStyle?: CSSProperties;
|
|
137
|
+
/**
|
|
138
|
+
* Additional CSS class name on the field wrapper.
|
|
139
|
+
*/
|
|
140
|
+
className?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Test ID for the field wrapper.
|
|
143
|
+
*/
|
|
144
|
+
'data-testid'?: string;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Numeric input built on
|
|
148
|
+
* [PrimeReact InputNumber](https://primereact.org/inputnumber/).
|
|
149
|
+
*
|
|
150
|
+
* Supports spinner buttons (`showButtons` + `buttonLayout`), currency /
|
|
151
|
+
* decimal formatting, prefix/suffix and min/max clamping. Styles are scoped
|
|
152
|
+
* via CSS modules so host `.p-inputnumber` rules cannot restyle CL instances.
|
|
153
|
+
* Pass already-translated `label` / `placeholder` and the app `locale`.
|
|
154
|
+
*/
|
|
155
|
+
export declare const InputNumber: {
|
|
156
|
+
({ value, onChange, onBlur, onKeyDown, showButtons, buttonLayout, min, max, step, mode, currency, locale, prefix, suffix, minFractionDigits, maxFractionDigits, useGrouping, allowEmpty, label, tooltip, required, error, placeholder, inputId: inputIdProp, name, disabled, readOnly, style, inputStyle, className, "data-testid": testId, }: InputNumberProps): import("react/jsx-runtime").JSX.Element;
|
|
157
|
+
displayName: string;
|
|
158
|
+
};
|
|
159
|
+
//# sourceMappingURL=InputNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputNumber.d.ts","sourceRoot":"","sources":["../../../src/components/inputnumber/InputNumber.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,aAAa,EACb,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAA;AAOd,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,CAAA;AAE3E,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,CAAA;AAEpD,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,cAAc,CAAA;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAA;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IACtD;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC5D;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,uBAAuB,CAAA;IACtC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,IAA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index.d.ts","sourceRoot":"","sources":["../../../src/components/inputnumber/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,eAAe,GAChB,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type SkeletonShape = 'rectangle' | 'circle';
|
|
3
|
+
export type SkeletonAnimation = 'wave' | 'none';
|
|
4
|
+
export interface SkeletonProps {
|
|
5
|
+
/**
|
|
6
|
+
* Width as any CSS length (e.g. `5rem`, `150px`, `100%`).
|
|
7
|
+
* @default '100%'
|
|
8
|
+
*/
|
|
9
|
+
width?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Height as any CSS length.
|
|
12
|
+
* @default '1rem'
|
|
13
|
+
*/
|
|
14
|
+
height?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Shorthand that sets both width and height (wins over `width`/`height`).
|
|
17
|
+
*/
|
|
18
|
+
size?: string;
|
|
19
|
+
/**
|
|
20
|
+
* `circle` renders a fully rounded placeholder (avatars, icons).
|
|
21
|
+
* @default 'rectangle'
|
|
22
|
+
*/
|
|
23
|
+
shape?: SkeletonShape;
|
|
24
|
+
/**
|
|
25
|
+
* Custom border radius (ignored for `circle`).
|
|
26
|
+
*/
|
|
27
|
+
borderRadius?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Shimmer animation.
|
|
30
|
+
* @default 'wave'
|
|
31
|
+
*/
|
|
32
|
+
animation?: SkeletonAnimation;
|
|
33
|
+
/**
|
|
34
|
+
* Additional CSS class name.
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Inline styles merged after the size props.
|
|
39
|
+
*/
|
|
40
|
+
style?: CSSProperties;
|
|
41
|
+
/**
|
|
42
|
+
* Test ID for the placeholder element.
|
|
43
|
+
*/
|
|
44
|
+
'data-testid'?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Loading placeholder with an optional shimmer. API mirrors
|
|
48
|
+
* [PrimeReact Skeleton](https://primereact.org/skeleton/) (`width`, `height`,
|
|
49
|
+
* `size`, `shape`, `borderRadius`, `animation`) so MD call sites port as-is.
|
|
50
|
+
*/
|
|
51
|
+
export declare const Skeleton: {
|
|
52
|
+
({ width, height, size, shape, borderRadius, animation, className, style, "data-testid": testId, }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
displayName: string;
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI1C,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,QAAQ,CAAA;AAElD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAA;AAE/C,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ;wGAUlB,aAAa;;CA0Bf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,YAAY,EACV,aAAa,EACb,aAAa,EACb,iBAAiB,GAClB,MAAM,YAAY,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -73,4 +73,10 @@ export { ProgressSpinner } from './components/progressspinner';
|
|
|
73
73
|
export type { ProgressSpinnerProps } from './components/progressspinner';
|
|
74
74
|
export { PaginatedSelector } from './components/paginatedselector';
|
|
75
75
|
export type { PaginatedSelectorProps, PaginatedSelectorFilter, PaginatedSelectorPage, } from './components/paginatedselector';
|
|
76
|
+
export { InputNumber } from './components/inputnumber';
|
|
77
|
+
export type { InputNumberProps, InputNumberChangeEvent, InputNumberButtonLayout, InputNumberMode, } from './components/inputnumber';
|
|
78
|
+
export { Skeleton } from './components/skeleton';
|
|
79
|
+
export type { SkeletonProps, SkeletonShape, SkeletonAnimation, } from './components/skeleton';
|
|
80
|
+
export { Chip } from './components/chip';
|
|
81
|
+
export type { ChipProps, ChipRemoveEvent } from './components/chip';
|
|
76
82
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,YAAY,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAEhF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,wB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package/dist/index.es.js
CHANGED
|
@@ -16573,6 +16573,139 @@ var El = (e) => e ? Array.isArray(e) ? e.filter(Boolean) : [e] : [], Dl = (e, t)
|
|
|
16573
16573
|
className: t,
|
|
16574
16574
|
"data-testid": n
|
|
16575
16575
|
});
|
|
16576
|
+
}, Ml = { inputNumber: "_inputNumber_927cd_1" }, Nl = {
|
|
16577
|
+
inputNumberField: "_inputNumberField_ey6tc_1",
|
|
16578
|
+
compact: "_compact_ey6tc_8",
|
|
16579
|
+
error: "_error_ey6tc_13"
|
|
16580
|
+
}, Pl = ({ value: e, onChange: t, onBlur: n, onKeyDown: r, showButtons: i = !1, buttonLayout: a = "stacked", min: o, max: s, step: c = 1, mode: l = "decimal", currency: u, locale: d, prefix: p, suffix: m, minFractionDigits: h, maxFractionDigits: g, useGrouping: _ = !0, allowEmpty: v = !0, label: x, tooltip: S, required: C = !1, error: w, placeholder: T, inputId: E, name: D, disabled: O = !1, readOnly: k = !1, style: A, inputStyle: j, className: M = "", "data-testid": N }) => {
|
|
16581
|
+
let P = f(), F = E ?? `inputnumber-${P.replace(/[^a-zA-Z0-9_-]/g, "")}`, I = w == null ? void 0 : `${F}-error`, L = [
|
|
16582
|
+
Nl.inputNumberField,
|
|
16583
|
+
i && a === "horizontal" ? Nl.compact : "",
|
|
16584
|
+
M
|
|
16585
|
+
].filter(Boolean).join(" ");
|
|
16586
|
+
return /* @__PURE__ */ b("div", {
|
|
16587
|
+
className: L,
|
|
16588
|
+
"data-testid": N,
|
|
16589
|
+
children: [
|
|
16590
|
+
x == null ? null : /* @__PURE__ */ y(Ce, {
|
|
16591
|
+
htmlFor: F,
|
|
16592
|
+
required: C,
|
|
16593
|
+
tooltip: S,
|
|
16594
|
+
children: x
|
|
16595
|
+
}),
|
|
16596
|
+
/* @__PURE__ */ y(us, {
|
|
16597
|
+
value: e ?? null,
|
|
16598
|
+
onChange: (e) => t?.({
|
|
16599
|
+
originalEvent: e.originalEvent,
|
|
16600
|
+
value: e.value ?? null
|
|
16601
|
+
}),
|
|
16602
|
+
onBlur: n,
|
|
16603
|
+
onKeyDown: r,
|
|
16604
|
+
showButtons: i,
|
|
16605
|
+
buttonLayout: a,
|
|
16606
|
+
incrementButtonIcon: "pi pi-plus",
|
|
16607
|
+
decrementButtonIcon: "pi pi-minus",
|
|
16608
|
+
min: o,
|
|
16609
|
+
max: s,
|
|
16610
|
+
step: c,
|
|
16611
|
+
mode: l,
|
|
16612
|
+
currency: u,
|
|
16613
|
+
locale: d,
|
|
16614
|
+
prefix: p,
|
|
16615
|
+
suffix: m,
|
|
16616
|
+
minFractionDigits: h,
|
|
16617
|
+
maxFractionDigits: g,
|
|
16618
|
+
useGrouping: _,
|
|
16619
|
+
allowEmpty: v,
|
|
16620
|
+
placeholder: T,
|
|
16621
|
+
inputId: F,
|
|
16622
|
+
name: D,
|
|
16623
|
+
disabled: O,
|
|
16624
|
+
readOnly: k,
|
|
16625
|
+
required: C,
|
|
16626
|
+
"aria-invalid": w != null || void 0,
|
|
16627
|
+
"aria-describedby": I,
|
|
16628
|
+
style: A,
|
|
16629
|
+
inputStyle: j,
|
|
16630
|
+
className: Ml.inputNumber
|
|
16631
|
+
}),
|
|
16632
|
+
w == null ? null : /* @__PURE__ */ y("div", {
|
|
16633
|
+
id: I,
|
|
16634
|
+
className: Nl.error,
|
|
16635
|
+
role: "alert",
|
|
16636
|
+
children: w
|
|
16637
|
+
})
|
|
16638
|
+
]
|
|
16639
|
+
});
|
|
16640
|
+
};
|
|
16641
|
+
Pl.displayName = "InputNumber";
|
|
16642
|
+
var Fl = {
|
|
16643
|
+
skeleton: "_skeleton_ytkcq_1",
|
|
16644
|
+
"skeleton-wave": "_skeleton-wave_ytkcq_1",
|
|
16645
|
+
skeletonWave: "_skeleton-wave_ytkcq_1",
|
|
16646
|
+
circle: "_circle_ytkcq_18",
|
|
16647
|
+
noAnimation: "_noAnimation_ytkcq_22"
|
|
16648
|
+
}, Il = ({ width: e = "100%", height: t = "1rem", size: n, shape: r = "rectangle", borderRadius: i, animation: a = "wave", className: o = "", style: s, "data-testid": c }) => {
|
|
16649
|
+
let l = [
|
|
16650
|
+
Fl.skeleton,
|
|
16651
|
+
r === "circle" ? Fl.circle : "",
|
|
16652
|
+
a === "none" ? Fl.noAnimation : "",
|
|
16653
|
+
o
|
|
16654
|
+
].filter(Boolean).join(" ");
|
|
16655
|
+
return /* @__PURE__ */ y("div", {
|
|
16656
|
+
className: l,
|
|
16657
|
+
style: {
|
|
16658
|
+
...n ? {
|
|
16659
|
+
width: n,
|
|
16660
|
+
height: n
|
|
16661
|
+
} : {
|
|
16662
|
+
width: e,
|
|
16663
|
+
height: t
|
|
16664
|
+
},
|
|
16665
|
+
...i && r !== "circle" ? { borderRadius: i } : {},
|
|
16666
|
+
...s
|
|
16667
|
+
},
|
|
16668
|
+
"aria-hidden": "true",
|
|
16669
|
+
"data-testid": c
|
|
16670
|
+
});
|
|
16671
|
+
};
|
|
16672
|
+
Il.displayName = "Skeleton";
|
|
16673
|
+
var Ll = {
|
|
16674
|
+
chip: "_chip_1semn_1",
|
|
16675
|
+
icon: "_icon_1semn_17",
|
|
16676
|
+
text: "_text_1semn_22",
|
|
16677
|
+
remove: "_remove_1semn_29"
|
|
16678
|
+
}, Rl = ({ label: e, icon: t, children: n, removable: r = !1, onRemove: i, removeAriaLabel: a = "Remove", title: o, className: s = "", style: c, "data-testid": l }) => {
|
|
16679
|
+
let u = (t) => {
|
|
16680
|
+
i?.({
|
|
16681
|
+
originalEvent: t,
|
|
16682
|
+
value: e
|
|
16683
|
+
});
|
|
16684
|
+
};
|
|
16685
|
+
return /* @__PURE__ */ b("div", {
|
|
16686
|
+
className: [Ll.chip, s].filter(Boolean).join(" "),
|
|
16687
|
+
style: c,
|
|
16688
|
+
title: o,
|
|
16689
|
+
"data-testid": l,
|
|
16690
|
+
children: [n ?? /* @__PURE__ */ b(v, { children: [t ? /* @__PURE__ */ y("span", {
|
|
16691
|
+
className: Ll.icon,
|
|
16692
|
+
children: t
|
|
16693
|
+
}) : null, e == null ? null : /* @__PURE__ */ y("span", {
|
|
16694
|
+
className: Ll.text,
|
|
16695
|
+
children: e
|
|
16696
|
+
})] }), r ? /* @__PURE__ */ y("span", {
|
|
16697
|
+
role: "button",
|
|
16698
|
+
tabIndex: 0,
|
|
16699
|
+
"aria-label": a,
|
|
16700
|
+
className: `${Ll.remove} pi pi-times-circle`,
|
|
16701
|
+
onClick: u,
|
|
16702
|
+
onKeyDown: (e) => {
|
|
16703
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), u(e));
|
|
16704
|
+
},
|
|
16705
|
+
"data-testid": l ? `${l}-remove` : void 0
|
|
16706
|
+
}) : null]
|
|
16707
|
+
});
|
|
16576
16708
|
};
|
|
16709
|
+
Rl.displayName = "Chip";
|
|
16577
16710
|
//#endregion
|
|
16578
|
-
export { Ei as Accordion, Ci as AccordionTab, xi as AutoComplete, Be as BackButton, di as Calendar, Ye as Checkbox, Qi as ConfirmBox, gl as DEFAULT_DATA_TABLE_EMPTY_MESSAGE, ul as DEFAULT_DATA_TABLE_PAGINATION, xl as DataTable, _l as DataTableEmptyState, Re as DateValue, Xi as Dialog, Me as Dropdown, lo as Editor, Ce as FieldLabel, Ko as FileUpload, At as FilterMatchMode, Ze as InputSwitch, Pe as InputText, qe as LocalizedInput, Ua as Menu, qa as Message, hi as MoneyValue, jl as PaginatedSelector, z as PrimaryButton, mo as ProgressBar, Cl as ProgressSpinner, Ni as RadioButton, V as SecondaryButton, Za as SectionBox, Xa as SectionTitle, ji as SelectButton, _i as StatusBadge, oe as Tabs, ja as ToastProvider, Ea as ToastTemplate, xe as Tooltip, dl as useDataTablePagination, Aa as useToast };
|
|
16711
|
+
export { Ei as Accordion, Ci as AccordionTab, xi as AutoComplete, Be as BackButton, di as Calendar, Ye as Checkbox, Rl as Chip, Qi as ConfirmBox, gl as DEFAULT_DATA_TABLE_EMPTY_MESSAGE, ul as DEFAULT_DATA_TABLE_PAGINATION, xl as DataTable, _l as DataTableEmptyState, Re as DateValue, Xi as Dialog, Me as Dropdown, lo as Editor, Ce as FieldLabel, Ko as FileUpload, At as FilterMatchMode, Pl as InputNumber, Ze as InputSwitch, Pe as InputText, qe as LocalizedInput, Ua as Menu, qa as Message, hi as MoneyValue, jl as PaginatedSelector, z as PrimaryButton, mo as ProgressBar, Cl as ProgressSpinner, Ni as RadioButton, V as SecondaryButton, Za as SectionBox, Xa as SectionTitle, ji as SelectButton, Il as Skeleton, _i as StatusBadge, oe as Tabs, ja as ToastProvider, Ea as ToastTemplate, xe as Tooltip, dl as useDataTablePagination, Aa as useToast };
|