pge-front-common 14.1.43 → 14.2.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/lib/components/DropDown/Dropdown.d.ts +1 -1
- package/lib/components/MultiSelect/components.d.ts +6 -6
- package/lib/components/Upload/index.d.ts +18 -4
- package/lib/index.d.ts +24 -10
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const Option: (props: any) =>
|
|
3
|
-
declare const MenuList: (props: any) =>
|
|
4
|
-
declare const Menu: (props: JSX.IntrinsicElements["div"]) =>
|
|
5
|
-
declare const Blanket: (props: JSX.IntrinsicElements["div"]) =>
|
|
1
|
+
import { ReactNode, JSX } from "react";
|
|
2
|
+
declare const Option: (props: any) => JSX.Element;
|
|
3
|
+
declare const MenuList: (props: any) => JSX.Element;
|
|
4
|
+
declare const Menu: (props: JSX.IntrinsicElements["div"]) => JSX.Element;
|
|
5
|
+
declare const Blanket: (props: JSX.IntrinsicElements["div"]) => JSX.Element;
|
|
6
6
|
declare const Dropdown: ({ children, isOpen, target, onClose, }: {
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
readonly isOpen: boolean;
|
|
9
9
|
readonly target: ReactNode;
|
|
10
10
|
readonly onClose: () => void;
|
|
11
11
|
readonly selecionados: any[];
|
|
12
|
-
}) =>
|
|
12
|
+
}) => JSX.Element;
|
|
13
13
|
export { Option, MenuList, Menu, Blanket, Dropdown };
|
|
@@ -14,7 +14,7 @@ export declare const FileUpload: React.ForwardRefExoticComponent<{
|
|
|
14
14
|
} & {
|
|
15
15
|
disabled?: boolean | undefined;
|
|
16
16
|
form?: string | undefined;
|
|
17
|
-
formAction?: string | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
17
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
18
18
|
formEncType?: string | undefined;
|
|
19
19
|
formMethod?: string | undefined;
|
|
20
20
|
formNoValidate?: boolean | undefined;
|
|
@@ -68,8 +68,14 @@ export declare const FileUpload: React.ForwardRefExoticComponent<{
|
|
|
68
68
|
results?: number | undefined;
|
|
69
69
|
security?: string | undefined;
|
|
70
70
|
unselectable?: "on" | "off" | undefined;
|
|
71
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
72
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
73
|
+
popoverTarget?: string | undefined;
|
|
74
|
+
inert?: boolean | undefined;
|
|
71
75
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
72
76
|
is?: string | undefined;
|
|
77
|
+
exportparts?: string | undefined;
|
|
78
|
+
part?: string | undefined;
|
|
73
79
|
"aria-activedescendant"?: string | undefined;
|
|
74
80
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
75
81
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -145,7 +151,7 @@ export declare const FileUpload: React.ForwardRefExoticComponent<{
|
|
|
145
151
|
onBlurCapture?: React.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
146
152
|
onChange?: React.FormEventHandler<HTMLButtonElement> | undefined;
|
|
147
153
|
onChangeCapture?: React.FormEventHandler<HTMLButtonElement> | undefined;
|
|
148
|
-
onBeforeInput?: React.
|
|
154
|
+
onBeforeInput?: React.InputEventHandler<HTMLButtonElement> | undefined;
|
|
149
155
|
onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement> | undefined;
|
|
150
156
|
onInput?: React.FormEventHandler<HTMLButtonElement> | undefined;
|
|
151
157
|
onInputCapture?: React.FormEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -195,8 +201,6 @@ export declare const FileUpload: React.ForwardRefExoticComponent<{
|
|
|
195
201
|
onProgressCapture?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
196
202
|
onRateChange?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
197
203
|
onRateChangeCapture?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
198
|
-
onResize?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
199
|
-
onResizeCapture?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
200
204
|
onSeeked?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
201
205
|
onSeekedCapture?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
202
206
|
onSeeking?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -277,6 +281,8 @@ export declare const FileUpload: React.ForwardRefExoticComponent<{
|
|
|
277
281
|
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
278
282
|
onScroll?: React.UIEventHandler<HTMLButtonElement> | undefined;
|
|
279
283
|
onScrollCapture?: React.UIEventHandler<HTMLButtonElement> | undefined;
|
|
284
|
+
onScrollEnd?: React.UIEventHandler<HTMLButtonElement> | undefined;
|
|
285
|
+
onScrollEndCapture?: React.UIEventHandler<HTMLButtonElement> | undefined;
|
|
280
286
|
onWheel?: React.WheelEventHandler<HTMLButtonElement> | undefined;
|
|
281
287
|
onWheelCapture?: React.WheelEventHandler<HTMLButtonElement> | undefined;
|
|
282
288
|
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -285,8 +291,16 @@ export declare const FileUpload: React.ForwardRefExoticComponent<{
|
|
|
285
291
|
onAnimationEndCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
286
292
|
onAnimationIteration?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
287
293
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
294
|
+
onToggle?: React.ToggleEventHandler<HTMLButtonElement> | undefined;
|
|
295
|
+
onBeforeToggle?: React.ToggleEventHandler<HTMLButtonElement> | undefined;
|
|
296
|
+
onTransitionCancel?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
297
|
+
onTransitionCancelCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
288
298
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
289
299
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
300
|
+
onTransitionRun?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
301
|
+
onTransitionRunCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
302
|
+
onTransitionStart?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
303
|
+
onTransitionStartCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
290
304
|
'data-pr-tooltip'?: string | undefined;
|
|
291
305
|
'data-pr-disabled'?: boolean | undefined;
|
|
292
306
|
'data-pr-classname'?: string | undefined;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { InputHTMLAttributes, ReactNode, HtmlHTMLAttributes, ChangeEvent, HTMLAttributes, SVGProps } from 'react';
|
|
2
|
+
import React__default, { InputHTMLAttributes, ReactNode, HtmlHTMLAttributes, ChangeEvent, JSX, HTMLAttributes, SVGProps } from 'react';
|
|
3
3
|
import { Control } from 'react-hook-form';
|
|
4
4
|
import { FormatOptionLabelMeta } from 'react-select';
|
|
5
5
|
import { TreeSelectSelectionKeysType, TreeSelectChangeEvent } from 'primereact/treeselect';
|
|
@@ -93,7 +93,7 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
|
|
|
93
93
|
} & {
|
|
94
94
|
disabled?: boolean | undefined;
|
|
95
95
|
form?: string | undefined;
|
|
96
|
-
formAction?: string | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
96
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
97
97
|
formEncType?: string | undefined;
|
|
98
98
|
formMethod?: string | undefined;
|
|
99
99
|
formNoValidate?: boolean | undefined;
|
|
@@ -147,8 +147,14 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
|
|
|
147
147
|
results?: number | undefined;
|
|
148
148
|
security?: string | undefined;
|
|
149
149
|
unselectable?: "on" | "off" | undefined;
|
|
150
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
151
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
152
|
+
popoverTarget?: string | undefined;
|
|
153
|
+
inert?: boolean | undefined;
|
|
150
154
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
151
155
|
is?: string | undefined;
|
|
156
|
+
exportparts?: string | undefined;
|
|
157
|
+
part?: string | undefined;
|
|
152
158
|
"aria-activedescendant"?: string | undefined;
|
|
153
159
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
154
160
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -224,7 +230,7 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
|
|
|
224
230
|
onBlurCapture?: React__default.FocusEventHandler<HTMLButtonElement> | undefined;
|
|
225
231
|
onChange?: React__default.FormEventHandler<HTMLButtonElement> | undefined;
|
|
226
232
|
onChangeCapture?: React__default.FormEventHandler<HTMLButtonElement> | undefined;
|
|
227
|
-
onBeforeInput?: React__default.
|
|
233
|
+
onBeforeInput?: React__default.InputEventHandler<HTMLButtonElement> | undefined;
|
|
228
234
|
onBeforeInputCapture?: React__default.FormEventHandler<HTMLButtonElement> | undefined;
|
|
229
235
|
onInput?: React__default.FormEventHandler<HTMLButtonElement> | undefined;
|
|
230
236
|
onInputCapture?: React__default.FormEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -274,8 +280,6 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
|
|
|
274
280
|
onProgressCapture?: React__default.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
275
281
|
onRateChange?: React__default.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
276
282
|
onRateChangeCapture?: React__default.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
277
|
-
onResize?: React__default.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
278
|
-
onResizeCapture?: React__default.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
279
283
|
onSeeked?: React__default.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
280
284
|
onSeekedCapture?: React__default.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
281
285
|
onSeeking?: React__default.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -356,6 +360,8 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
|
|
|
356
360
|
onLostPointerCaptureCapture?: React__default.PointerEventHandler<HTMLButtonElement> | undefined;
|
|
357
361
|
onScroll?: React__default.UIEventHandler<HTMLButtonElement> | undefined;
|
|
358
362
|
onScrollCapture?: React__default.UIEventHandler<HTMLButtonElement> | undefined;
|
|
363
|
+
onScrollEnd?: React__default.UIEventHandler<HTMLButtonElement> | undefined;
|
|
364
|
+
onScrollEndCapture?: React__default.UIEventHandler<HTMLButtonElement> | undefined;
|
|
359
365
|
onWheel?: React__default.WheelEventHandler<HTMLButtonElement> | undefined;
|
|
360
366
|
onWheelCapture?: React__default.WheelEventHandler<HTMLButtonElement> | undefined;
|
|
361
367
|
onAnimationStart?: React__default.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -364,8 +370,16 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
|
|
|
364
370
|
onAnimationEndCapture?: React__default.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
365
371
|
onAnimationIteration?: React__default.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
366
372
|
onAnimationIterationCapture?: React__default.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
373
|
+
onToggle?: React__default.ToggleEventHandler<HTMLButtonElement> | undefined;
|
|
374
|
+
onBeforeToggle?: React__default.ToggleEventHandler<HTMLButtonElement> | undefined;
|
|
375
|
+
onTransitionCancel?: React__default.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
376
|
+
onTransitionCancelCapture?: React__default.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
367
377
|
onTransitionEnd?: React__default.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
368
378
|
onTransitionEndCapture?: React__default.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
379
|
+
onTransitionRun?: React__default.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
380
|
+
onTransitionRunCapture?: React__default.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
381
|
+
onTransitionStart?: React__default.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
382
|
+
onTransitionStartCapture?: React__default.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
369
383
|
'data-pr-tooltip'?: string | undefined;
|
|
370
384
|
'data-pr-disabled'?: boolean | undefined;
|
|
371
385
|
'data-pr-classname'?: string | undefined;
|
|
@@ -578,17 +592,17 @@ interface Props$1 {
|
|
|
578
592
|
}
|
|
579
593
|
declare function OverlayLoadingSpinner({ isOpen, text, mini, }: Readonly<Props$1>): React$1.JSX.Element;
|
|
580
594
|
|
|
581
|
-
declare const Option: (props: any) =>
|
|
582
|
-
declare const MenuList: (props: any) =>
|
|
583
|
-
declare const Menu: (props: JSX.IntrinsicElements["div"]) =>
|
|
584
|
-
declare const Blanket: (props: JSX.IntrinsicElements["div"]) =>
|
|
595
|
+
declare const Option: (props: any) => JSX.Element;
|
|
596
|
+
declare const MenuList: (props: any) => JSX.Element;
|
|
597
|
+
declare const Menu: (props: JSX.IntrinsicElements["div"]) => JSX.Element;
|
|
598
|
+
declare const Blanket: (props: JSX.IntrinsicElements["div"]) => JSX.Element;
|
|
585
599
|
declare const Dropdown: ({ children, isOpen, target, onClose, }: {
|
|
586
600
|
children?: ReactNode;
|
|
587
601
|
readonly isOpen: boolean;
|
|
588
602
|
readonly target: ReactNode;
|
|
589
603
|
readonly onClose: () => void;
|
|
590
604
|
readonly selecionados: any[];
|
|
591
|
-
}) =>
|
|
605
|
+
}) => JSX.Element;
|
|
592
606
|
|
|
593
607
|
interface IFuncionalidade {
|
|
594
608
|
id: number;
|
package/lib/index.esm.js
CHANGED
|
@@ -911,7 +911,7 @@ var DropDown = function (_a) {
|
|
|
911
911
|
return (React__default.createElement("div", { key: item.id, className: styles$u.menuItem },
|
|
912
912
|
React__default.createElement("button", { className: "".concat(styles$u.primaryDropdown, " ").concat(item.checked
|
|
913
913
|
? styles$u.primaryDropdown__menu
|
|
914
|
-
: styles$u.primaryDropdown__disabled), onClick: function (ev) { return handleMenuClick(item, ev); }, ref: function (el) {
|
|
914
|
+
: styles$u.primaryDropdown__disabled), onClick: function (ev) { return handleMenuClick(item, ev); }, ref: function (el) { itemRefs.current[index] = el; }, onKeyDown: function (e) {
|
|
915
915
|
var _a, _b;
|
|
916
916
|
if (e.key === "ArrowDown") {
|
|
917
917
|
e.preventDefault();
|