@rjsf/primereact 6.5.2 → 6.6.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/index.cjs +276 -276
- package/dist/index.cjs.map +4 -4
- package/dist/primereact.esm.js +279 -279
- package/dist/primereact.esm.js.map +4 -4
- package/dist/primereact.umd.js +180 -180
- package/lib/AddButton/AddButton.js +1 -1
- package/lib/AddButton/AddButton.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/DescriptionField/DescriptionField.js.map +1 -1
- package/lib/ErrorList/ErrorList.js +2 -2
- package/lib/ErrorList/ErrorList.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/IconButton/IconButton.d.ts +1 -1
- package/lib/IconButton/IconButton.js +1 -1
- package/lib/IconButton/IconButton.js.map +1 -1
- package/lib/RangeWidget/RangeWidget.js +1 -1
- package/lib/RangeWidget/RangeWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.js +1 -1
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/SubmitButton/SubmitButton.js +1 -1
- package/lib/SubmitButton/SubmitButton.js.map +1 -1
- package/lib/Templates/Templates.js +3 -3
- package/lib/Templates/Templates.js.map +1 -1
- package/lib/TextareaWidget/TextareaWidget.js.map +1 -1
- package/lib/Theme/Theme.d.ts +1 -1
- package/lib/TitleField/TitleField.js +1 -1
- package/lib/TitleField/TitleField.js.map +1 -1
- package/lib/Widgets/Widgets.js +1 -1
- package/lib/Widgets/Widgets.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -14
- package/src/AddButton/AddButton.tsx +1 -1
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +1 -0
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +1 -1
- package/src/DescriptionField/DescriptionField.tsx +1 -1
- package/src/ErrorList/ErrorList.tsx +2 -2
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +1 -1
- package/src/IconButton/IconButton.tsx +1 -1
- package/src/RangeWidget/RangeWidget.tsx +1 -1
- package/src/SelectWidget/SelectWidget.tsx +1 -1
- package/src/SubmitButton/SubmitButton.tsx +1 -1
- package/src/Templates/Templates.ts +3 -3
- package/src/TextareaWidget/TextareaWidget.tsx +1 -1
- package/src/Theme/Theme.ts +1 -1
- package/src/TitleField/TitleField.tsx +1 -1
- package/src/Widgets/Widgets.tsx +1 -1
- package/src/tsconfig.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/primereact",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "PrimeReact theme, fields and widgets for react-jsonschema-form",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -39,16 +39,17 @@
|
|
|
39
39
|
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/primereact.esm.js --sourcemap --packages=external --format=esm",
|
|
40
40
|
"build:umd": "rollup dist/primereact.esm.js --format=umd --file=dist/primereact.umd.js --name=@rjsf/primereact",
|
|
41
41
|
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
|
|
42
|
-
"cs-check": "
|
|
43
|
-
"cs-format": "
|
|
44
|
-
"lint": "
|
|
42
|
+
"cs-check": "oxfmt --check \"{src,test}/**/*.{ts,tsx}\"",
|
|
43
|
+
"cs-format": "oxfmt \"{src,test}/**/*.{ts,tsx}\"",
|
|
44
|
+
"lint": "oxlint src test",
|
|
45
45
|
"precommit": "lint-staged",
|
|
46
|
-
"test": "
|
|
47
|
-
"test:update": "
|
|
46
|
+
"test": "vitest run",
|
|
47
|
+
"test:update": "vitest run --update-snapshots"
|
|
48
48
|
},
|
|
49
49
|
"lint-staged": {
|
|
50
|
-
"{src,test}/**/*.ts
|
|
51
|
-
"
|
|
50
|
+
"{src,test}/**/*.{ts,tsx}": [
|
|
51
|
+
"oxlint --fix",
|
|
52
|
+
"oxfmt"
|
|
52
53
|
]
|
|
53
54
|
},
|
|
54
55
|
"files": [
|
|
@@ -68,15 +69,14 @@
|
|
|
68
69
|
"react": ">=18"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
|
-
"@rjsf/core": "6.
|
|
72
|
-
"@rjsf/snapshot-tests": "6.
|
|
73
|
-
"@rjsf/utils": "6.
|
|
74
|
-
"@rjsf/validator-ajv8": "6.
|
|
72
|
+
"@rjsf/core": "6.6.0",
|
|
73
|
+
"@rjsf/snapshot-tests": "6.6.0",
|
|
74
|
+
"@rjsf/utils": "6.6.0",
|
|
75
|
+
"@rjsf/validator-ajv8": "6.6.0",
|
|
75
76
|
"@rollup/plugin-replace": "^6.0.3",
|
|
76
|
-
"eslint": "^8.57.1",
|
|
77
77
|
"primeflex": "^4.0.0",
|
|
78
78
|
"primeicons": "^7.0.0",
|
|
79
|
-
"primereact": "^10.9.
|
|
79
|
+
"primereact": "^10.9.8"
|
|
80
80
|
},
|
|
81
81
|
"repository": {
|
|
82
82
|
"type": "git",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from 'primereact/button';
|
|
2
1
|
import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';
|
|
2
|
+
import { Button } from 'primereact/button';
|
|
3
3
|
|
|
4
4
|
/** The `AddButton` renders a button that represents the `Add` action on a form
|
|
5
5
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Checkbox, CheckboxChangeEvent } from 'primereact/checkbox';
|
|
2
1
|
import {
|
|
3
2
|
ariaDescribedByIds,
|
|
4
3
|
enumOptionsDeselectValue,
|
|
@@ -12,6 +11,7 @@ import {
|
|
|
12
11
|
descriptionId,
|
|
13
12
|
getTemplate,
|
|
14
13
|
} from '@rjsf/utils';
|
|
14
|
+
import { Checkbox, CheckboxChangeEvent } from 'primereact/checkbox';
|
|
15
15
|
|
|
16
16
|
import { Label } from '../util';
|
|
17
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
1
|
import { RichDescription } from '@rjsf/core';
|
|
2
|
+
import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
3
3
|
|
|
4
4
|
/** The `DescriptionField` is the template to use to render the description of a field
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Message } from 'primereact/message';
|
|
2
|
-
import { TimesCircleIcon } from 'primereact/icons/timescircle';
|
|
3
1
|
import { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';
|
|
2
|
+
import { TimesCircleIcon } from 'primereact/icons/timescircle';
|
|
3
|
+
import { Message } from 'primereact/message';
|
|
4
4
|
|
|
5
5
|
/** The `ErrorList` component is the template that renders all the errors associated with the fields in the `Form`
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';
|
|
2
1
|
import { RichHelp } from '@rjsf/core';
|
|
2
|
+
import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';
|
|
3
3
|
|
|
4
4
|
/** The `FieldHelpTemplate` component renders any help desired for a field
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button, ButtonProps } from 'primereact/button';
|
|
2
1
|
import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';
|
|
2
|
+
import { Button, ButtonProps } from 'primereact/button';
|
|
3
3
|
|
|
4
4
|
export type PrimeIconButtonProps<
|
|
5
5
|
T = any,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FocusEvent } from 'react';
|
|
2
|
-
import { Slider, SliderChangeEvent } from 'primereact/slider';
|
|
3
2
|
import { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps, rangeSpec } from '@rjsf/utils';
|
|
3
|
+
import { Slider, SliderChangeEvent } from 'primereact/slider';
|
|
4
4
|
|
|
5
5
|
/** The `RangeWidget` component uses the `Slider` from PrimeReact, wrapping the result
|
|
6
6
|
* in a div, with the value alongside it.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FocusEvent } from 'react';
|
|
2
|
-
import { Dropdown } from 'primereact/dropdown';
|
|
3
2
|
import {
|
|
4
3
|
ariaDescribedByIds,
|
|
5
4
|
enumOptionSelectedValue,
|
|
@@ -11,6 +10,7 @@ import {
|
|
|
11
10
|
StrictRJSFSchema,
|
|
12
11
|
WidgetProps,
|
|
13
12
|
} from '@rjsf/utils';
|
|
13
|
+
import { Dropdown } from 'primereact/dropdown';
|
|
14
14
|
import { MultiSelect } from 'primereact/multiselect';
|
|
15
15
|
|
|
16
16
|
/** The `SelectWidget` is a widget for rendering dropdowns.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from 'primereact/button';
|
|
2
1
|
import { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';
|
|
2
|
+
import { Button } from 'primereact/button';
|
|
3
3
|
|
|
4
4
|
/** The `SubmitButton` renders a button that represents the `Submit` action on a form
|
|
5
5
|
*/
|
|
@@ -3,21 +3,21 @@ import { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@r
|
|
|
3
3
|
import AddButton from '../AddButton';
|
|
4
4
|
import ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';
|
|
5
5
|
import ArrayFieldTemplate from '../ArrayFieldTemplate';
|
|
6
|
+
import ArrayFieldTitleTemplate from '../ArrayFieldTitleTemplate';
|
|
6
7
|
import BaseInputTemplate from '../BaseInputTemplate';
|
|
7
8
|
import DescriptionField from '../DescriptionField';
|
|
8
9
|
import ErrorList from '../ErrorList';
|
|
9
|
-
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';
|
|
10
10
|
import FieldErrorTemplate from '../FieldErrorTemplate';
|
|
11
11
|
import FieldHelpTemplate from '../FieldHelpTemplate';
|
|
12
12
|
import FieldTemplate from '../FieldTemplate';
|
|
13
|
+
import GridTemplate from '../GridTemplate';
|
|
14
|
+
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';
|
|
13
15
|
import MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';
|
|
14
16
|
import ObjectFieldTemplate from '../ObjectFieldTemplate';
|
|
15
17
|
import OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';
|
|
16
18
|
import SubmitButton from '../SubmitButton';
|
|
17
19
|
import TitleField from '../TitleField';
|
|
18
20
|
import WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';
|
|
19
|
-
import ArrayFieldTitleTemplate from '../ArrayFieldTitleTemplate';
|
|
20
|
-
import GridTemplate from '../GridTemplate';
|
|
21
21
|
|
|
22
22
|
export function generateTemplates<
|
|
23
23
|
T = any,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
|
-
import { InputTextarea } from 'primereact/inputtextarea';
|
|
3
2
|
import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
|
|
3
|
+
import { InputTextarea } from 'primereact/inputtextarea';
|
|
4
4
|
|
|
5
5
|
/** The `TextareaWidget` is a widget for rendering input fields as textarea using PrimeReact.
|
|
6
6
|
*
|
package/src/Theme/Theme.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
1
|
import { ThemeProps } from '@rjsf/core';
|
|
2
|
+
import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
3
3
|
|
|
4
4
|
import { generateTemplates } from '../Templates';
|
|
5
5
|
import { generateWidgets } from '../Widgets';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Divider } from 'primereact/divider';
|
|
2
1
|
import { FormContextType, getUiOptions, RJSFSchema, StrictRJSFSchema, TitleFieldProps, titleId } from '@rjsf/utils';
|
|
2
|
+
import { Divider } from 'primereact/divider';
|
|
3
3
|
|
|
4
4
|
/** The `TitleField` is the template to use to render the title of a field
|
|
5
5
|
*
|
package/src/Widgets/Widgets.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
|
|
3
3
|
import AutoCompleteWidget from '../AutoCompleteWidget/AutoCompleteWidget';
|
|
4
|
-
import CheckboxWidget from '../CheckboxWidget/CheckboxWidget';
|
|
5
4
|
import CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';
|
|
5
|
+
import CheckboxWidget from '../CheckboxWidget/CheckboxWidget';
|
|
6
6
|
import ColorWidget from '../ColorWidget/ColorWidget';
|
|
7
7
|
import PasswordWidget from '../PasswordWidget/PasswordWidget';
|
|
8
8
|
import RadioWidget from '../RadioWidget/RadioWidget';
|