@gen-epix/ui-core-components 4.0.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/LICENSE +287 -0
- package/README.md +32 -0
- package/dist/@types/ui-form.d.ts +2 -0
- package/dist/@types/vite-env.d.ts +2 -0
- package/dist/@types/yup.d.ts +30 -0
- package/dist/_chunks/Autocomplete.js +229 -0
- package/dist/_chunks/Autocomplete.js.map +1 -0
- package/dist/_chunks/DatePicker.js +126 -0
- package/dist/_chunks/DatePicker.js.map +1 -0
- package/dist/_chunks/FormUtil.js +1350 -0
- package/dist/_chunks/FormUtil.js.map +1 -0
- package/dist/_chunks/RichTextEditor.js +22721 -0
- package/dist/_chunks/RichTextEditor.js.map +1 -0
- package/dist/_chunks/TransferList.js +453 -0
- package/dist/_chunks/TransferList.js.map +1 -0
- package/dist/_chunks/UploadButton.js +91 -0
- package/dist/_chunks/UploadButton.js.map +1 -0
- package/dist/_chunks/classnames.js +33 -0
- package/dist/_chunks/classnames.js.map +1 -0
- package/dist/_chunks/index.esm.js +348 -0
- package/dist/_chunks/index.esm.js.map +1 -0
- package/dist/_chunks/isEqual.js +348 -0
- package/dist/_chunks/isEqual.js.map +1 -0
- package/dist/_chunks/isObjectLike.js +304 -0
- package/dist/_chunks/isObjectLike.js.map +1 -0
- package/dist/_chunks/isValid.js +28 -0
- package/dist/_chunks/isValid.js.map +1 -0
- package/dist/_chunks/rolldown-runtime.js +13 -0
- package/dist/_chunks/sv.js +434 -0
- package/dist/_chunks/sv.js.map +1 -0
- package/dist/components/fields/Autocomplete/Autocomplete.d.ts +19 -0
- package/dist/components/fields/Autocomplete/AutocompleteSelectAllContext.d.ts +2 -0
- package/dist/components/fields/Autocomplete/AutocompleteSelectAllPaper.d.ts +2 -0
- package/dist/components/fields/Autocomplete/index.d.ts +1 -0
- package/dist/components/fields/Autocomplete/index.js +2 -0
- package/dist/components/fields/CheckboxGroup/CheckboxGroup.d.ts +18 -0
- package/dist/components/fields/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/fields/CheckboxGroup/index.js +114 -0
- package/dist/components/fields/CheckboxGroup/index.js.map +1 -0
- package/dist/components/fields/DatePicker/DatePicker.d.ts +15 -0
- package/dist/components/fields/DatePicker/DatePickerInputAdornment.d.ts +8 -0
- package/dist/components/fields/DatePicker/index.d.ts +1 -0
- package/dist/components/fields/DatePicker/index.js +2 -0
- package/dist/components/fields/DateRangePicker/DateRangePicker.d.ts +17 -0
- package/dist/components/fields/DateRangePicker/index.d.ts +1 -0
- package/dist/components/fields/DateRangePicker/index.js +1648 -0
- package/dist/components/fields/DateRangePicker/index.js.map +1 -0
- package/dist/components/fields/NumberField/NumberField.d.ts +19 -0
- package/dist/components/fields/NumberField/index.d.ts +1 -0
- package/dist/components/fields/NumberField/index.js +180 -0
- package/dist/components/fields/NumberField/index.js.map +1 -0
- package/dist/components/fields/NumberRangeInput/NumberRangeInput.d.ts +15 -0
- package/dist/components/fields/NumberRangeInput/index.d.ts +1 -0
- package/dist/components/fields/NumberRangeInput/index.js +192 -0
- package/dist/components/fields/NumberRangeInput/index.js.map +1 -0
- package/dist/components/fields/RadioGroup/RadioGroup.d.ts +16 -0
- package/dist/components/fields/RadioGroup/index.d.ts +1 -0
- package/dist/components/fields/RadioGroup/index.js +72 -0
- package/dist/components/fields/RadioGroup/index.js.map +1 -0
- package/dist/components/fields/RichTextEditor/RichTextEditor.d.ts +13 -0
- package/dist/components/fields/RichTextEditor/RichTextEditorContent.d.ts +4 -0
- package/dist/components/fields/RichTextEditor/index.d.ts +2 -0
- package/dist/components/fields/RichTextEditor/index.js +2 -0
- package/dist/components/fields/RichTextEditor/useRichTextEditorExtensions.d.ts +10 -0
- package/dist/components/fields/Select/Select.d.ts +16 -0
- package/dist/components/fields/Select/index.d.ts +1 -0
- package/dist/components/fields/Select/index.js +129 -0
- package/dist/components/fields/Select/index.js.map +1 -0
- package/dist/components/fields/Switch/Switch.d.ts +13 -0
- package/dist/components/fields/Switch/index.d.ts +1 -0
- package/dist/components/fields/Switch/index.js +68 -0
- package/dist/components/fields/Switch/index.js.map +1 -0
- package/dist/components/fields/TextField/TextField.d.ts +18 -0
- package/dist/components/fields/TextField/index.d.ts +1 -0
- package/dist/components/fields/TextField/index.js +108 -0
- package/dist/components/fields/TextField/index.js.map +1 -0
- package/dist/components/fields/ToggleButtonGroup/ToggleButtonGroup.d.ts +14 -0
- package/dist/components/fields/ToggleButtonGroup/index.d.ts +1 -0
- package/dist/components/fields/ToggleButtonGroup/index.js +57 -0
- package/dist/components/fields/ToggleButtonGroup/index.js.map +1 -0
- package/dist/components/fields/TransferList/TransferList.d.ts +16 -0
- package/dist/components/fields/TransferList/index.d.ts +1 -0
- package/dist/components/fields/TransferList/index.js +2 -0
- package/dist/components/fields/UploadButton/UploadButton.d.ts +15 -0
- package/dist/components/fields/UploadButton/index.d.ts +1 -0
- package/dist/components/fields/UploadButton/index.js +2 -0
- package/dist/components/helpers/FormFieldHelperText/FormFieldHelperText.d.ts +8 -0
- package/dist/components/helpers/FormFieldHelperText/index.d.ts +1 -0
- package/dist/components/helpers/FormFieldHelperText/index.js +50 -0
- package/dist/components/helpers/FormFieldHelperText/index.js.map +1 -0
- package/dist/components/helpers/FormFieldLoadingIndicator/FormFieldLoadingIndicator.d.ts +4 -0
- package/dist/components/helpers/FormFieldLoadingIndicator/index.d.ts +1 -0
- package/dist/components/helpers/FormFieldLoadingIndicator/index.js +16 -0
- package/dist/components/helpers/FormFieldLoadingIndicator/index.js.map +1 -0
- package/dist/components/helpers/GenericForm/GenericForm.d.ts +18 -0
- package/dist/components/helpers/GenericForm/index.d.ts +1 -0
- package/dist/components/helpers/GenericForm/index.js +156 -0
- package/dist/components/helpers/GenericForm/index.js.map +1 -0
- package/dist/hooks/useIsFormFieldRequiredFromSchema/index.d.ts +1 -0
- package/dist/hooks/useIsFormFieldRequiredFromSchema/index.js +18 -0
- package/dist/hooks/useIsFormFieldRequiredFromSchema/index.js.map +1 -0
- package/dist/hooks/useIsFormFieldRequiredFromSchema/useIsFormFieldRequiredFromSchema.d.ts +4 -0
- package/dist/locale/en.json +97 -0
- package/dist/locale/nl.json +97 -0
- package/dist/models/form.d.ts +112 -0
- package/dist/models/form.js +8 -0
- package/dist/models/form.js.map +1 -0
- package/dist/setup/setup.d.ts +1 -0
- package/dist/setup/setup.js +166 -0
- package/dist/setup/setup.js.map +1 -0
- package/dist/utils/FormUtil/FormUtil.d.ts +19 -0
- package/dist/utils/FormUtil/index.d.ts +1 -0
- package/dist/utils/FormUtil/index.js +2 -0
- package/dist/utils/SchemaUtil/SchemaUtil.d.ts +9 -0
- package/dist/utils/SchemaUtil/index.d.ts +1 -0
- package/dist/utils/SchemaUtil/index.js +30 -0
- package/dist/utils/SchemaUtil/index.js.map +1 -0
- package/package.json +122 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class SchemaUtil {
|
|
2
|
+
static get code(): import('yup').StringSchema<string, import('yup').AnyObject, undefined, "">;
|
|
3
|
+
static get description(): import('yup').StringSchema<string, import('yup').AnyObject, undefined, "">;
|
|
4
|
+
static get isoString(): import('yup').StringSchema<string, import('yup').AnyObject, undefined, "">;
|
|
5
|
+
static get label(): import('yup').StringSchema<string, import('yup').AnyObject, undefined, "">;
|
|
6
|
+
static get name(): import('yup').StringSchema<string, import('yup').AnyObject, undefined, "">;
|
|
7
|
+
static get number(): import('yup').NumberSchema<number, import('yup').AnyObject, undefined, "">;
|
|
8
|
+
static get rank(): import('yup').NumberSchema<number, import('yup').AnyObject, undefined, "">;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SchemaUtil';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as e } from "../../_chunks/isValid.js";
|
|
2
|
+
import { number as t, string as n } from "yup";
|
|
3
|
+
//#region src/utils/SchemaUtil/SchemaUtil.ts
|
|
4
|
+
var r = class r {
|
|
5
|
+
static get code() {
|
|
6
|
+
return n().extendedAlphaNumeric().required().max(100);
|
|
7
|
+
}
|
|
8
|
+
static get description() {
|
|
9
|
+
return n().freeFormText().max(1e3);
|
|
10
|
+
}
|
|
11
|
+
static get isoString() {
|
|
12
|
+
return n().transform((t, n) => e(n) ? n.toISOString() : void 0);
|
|
13
|
+
}
|
|
14
|
+
static get label() {
|
|
15
|
+
return n().extendedAlphaNumeric().required().max(100);
|
|
16
|
+
}
|
|
17
|
+
static get name() {
|
|
18
|
+
return n().extendedAlphaNumeric().required().max(100);
|
|
19
|
+
}
|
|
20
|
+
static get number() {
|
|
21
|
+
return t().nullable();
|
|
22
|
+
}
|
|
23
|
+
static get rank() {
|
|
24
|
+
return r.number.required().min(0).integer();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { r as SchemaUtil };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/utils/SchemaUtil/SchemaUtil.ts"],"sourcesContent":["import { isValid } from 'date-fns/isValid';\nimport {\n number,\n string,\n} from 'yup';\n\nexport class SchemaUtil {\n public static get code() {\n return string().extendedAlphaNumeric().required().max(100);\n }\n\n public static get description() {\n return string().freeFormText().max(1000);\n }\n\n public static get isoString() {\n return string().transform((_val: unknown, orig: Date) => isValid(orig) ? orig.toISOString() : undefined);\n }\n\n public static get label() {\n return string().extendedAlphaNumeric().required().max(100);\n }\n\n public static get name() {\n return string().extendedAlphaNumeric().required().max(100);\n }\n\n public static get number() {\n return number().nullable();\n }\n\n public static get rank() {\n return SchemaUtil.number.required().min(0).integer();\n }\n}\n"],"mappings":";;;AAMA,IAAa,IAAb,MAAa,EAAW;CACtB,WAAkB,OAAO;EACvB,OAAO,EAAO,CAAC,CAAC,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,GAAG;CAC3D;CAEA,WAAkB,cAAc;EAC9B,OAAO,EAAO,CAAC,CAAC,aAAa,CAAC,CAAC,IAAI,GAAI;CACzC;CAEA,WAAkB,YAAY;EAC5B,OAAO,EAAO,CAAC,CAAC,WAAW,GAAe,MAAe,EAAQ,CAAI,IAAI,EAAK,YAAY,IAAI,KAAA,CAAS;CACzG;CAEA,WAAkB,QAAQ;EACxB,OAAO,EAAO,CAAC,CAAC,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,GAAG;CAC3D;CAEA,WAAkB,OAAO;EACvB,OAAO,EAAO,CAAC,CAAC,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,GAAG;CAC3D;CAEA,WAAkB,SAAS;EACzB,OAAO,EAAO,CAAC,CAAC,SAAS;CAC3B;CAEA,WAAkB,OAAO;EACvB,OAAO,EAAW,OAAO,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ;CACrD;AACF"}
|
package/package.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gen-epix/ui-core-components",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"license": "EUPL-1.2",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/RIVM-bioinformatics/gen-epix-ui.git"
|
|
8
|
+
},
|
|
9
|
+
"author": "RIVM-bioinformatics <ids-bioinformatics@rivm.nl>",
|
|
10
|
+
"homepage": "https://github.com/RIVM-bioinformatics/gen-epix",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
"./components/BackdropSpinner": {
|
|
23
|
+
"types": "./dist/components/BackdropSpinner/index.d.ts",
|
|
24
|
+
"import": "./dist/components/BackdropSpinner/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./components/Confirmation": {
|
|
27
|
+
"types": "./dist/components/Confirmation/index.d.ts",
|
|
28
|
+
"import": "./dist/components/Confirmation/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./components/CopyToClipboardButton": {
|
|
31
|
+
"types": "./dist/components/CopyToClipboardButton/index.d.ts",
|
|
32
|
+
"import": "./dist/components/CopyToClipboardButton/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./components/Dialog": {
|
|
35
|
+
"types": "./dist/components/Dialog/index.d.ts",
|
|
36
|
+
"import": "./dist/components/Dialog/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./components/LinearProgressWithLabel": {
|
|
39
|
+
"types": "./dist/components/LinearProgressWithLabel/index.d.ts",
|
|
40
|
+
"import": "./dist/components/LinearProgressWithLabel/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./components/LoadingIndicator": {
|
|
43
|
+
"types": "./dist/components/LoadingIndicator/index.d.ts",
|
|
44
|
+
"import": "./dist/components/LoadingIndicator/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./components/NestedMenu": {
|
|
47
|
+
"types": "./dist/components/NestedMenu/index.d.ts",
|
|
48
|
+
"import": "./dist/components/NestedMenu/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./components/Spinner": {
|
|
51
|
+
"types": "./dist/components/Spinner/index.d.ts",
|
|
52
|
+
"import": "./dist/components/Spinner/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./components/Stepper": {
|
|
55
|
+
"types": "./dist/components/Stepper/index.d.ts",
|
|
56
|
+
"import": "./dist/components/Stepper/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./context/uiCoreComponentsConfigContext": {
|
|
59
|
+
"types": "./dist/context/uiCoreComponentsConfigContext/index.d.ts",
|
|
60
|
+
"import": "./dist/context/uiCoreComponentsConfigContext/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./hoc/withDialog": {
|
|
63
|
+
"types": "./dist/hoc/withDialog/index.d.ts",
|
|
64
|
+
"import": "./dist/hoc/withDialog/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./models/nestedMenu": {
|
|
67
|
+
"types": "./dist/models/nestedMenu.d.ts",
|
|
68
|
+
"import": "./dist/models/nestedMenu.js"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"@gen-epix/ui-core": "^3.0.0",
|
|
73
|
+
"@mui/icons-material": "*",
|
|
74
|
+
"@mui/material": "*",
|
|
75
|
+
"@mui/utils": "*",
|
|
76
|
+
"i18next": "*",
|
|
77
|
+
"react": "*",
|
|
78
|
+
"react-i18next": "*"
|
|
79
|
+
},
|
|
80
|
+
"dependencies": {
|
|
81
|
+
"lodash": "4.18.1",
|
|
82
|
+
"react-hook-form": "7.87.0",
|
|
83
|
+
"use-cleanup-callback": "1.3.0",
|
|
84
|
+
"use-debounce": "10.1.1",
|
|
85
|
+
"uuid": "14.0.2"
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@gen-epix/eslint-config": "0.5.0",
|
|
89
|
+
"@gen-epix/ui-core": "^3.0.0",
|
|
90
|
+
"@gen-epix/translation-util": "0.2.0",
|
|
91
|
+
"@mui/icons-material": "9.4.0",
|
|
92
|
+
"@mui/material": "9.4.0",
|
|
93
|
+
"@mui/utils": "9.4.0",
|
|
94
|
+
"@types/lodash": "4.17.25",
|
|
95
|
+
"@types/react": "19.2.18",
|
|
96
|
+
"eslint": "10.9.1",
|
|
97
|
+
"i18next": "26.4.1",
|
|
98
|
+
"react": "19.2.8",
|
|
99
|
+
"react-i18next": "17.0.13",
|
|
100
|
+
"typescript": "6.0.3",
|
|
101
|
+
"vite-plugin-dts": "5.1.0",
|
|
102
|
+
"vite-plugin-static-copy": "4.1.1",
|
|
103
|
+
"vite": "8.2.2",
|
|
104
|
+
"vitest": "4.1.11"
|
|
105
|
+
},
|
|
106
|
+
"browserslist": [
|
|
107
|
+
"last 2 Chrome versions"
|
|
108
|
+
],
|
|
109
|
+
"scripts": {
|
|
110
|
+
"test-missing-translations": "translation-util ./ --dry-run --fail-on-missing --fail-on-stale",
|
|
111
|
+
"add-missing-translations": "translation-util ./",
|
|
112
|
+
"update-exports": "node scripts/update-exports.js",
|
|
113
|
+
"build": "vite build",
|
|
114
|
+
"build-publish": "pnpm build && pnpm publish --access=public",
|
|
115
|
+
"validate": "pnpm run lint && pnpm run check-types && pnpm run test-run",
|
|
116
|
+
"test": "vitest --coverage",
|
|
117
|
+
"test-run": "vitest run --passWithNoTests --coverage",
|
|
118
|
+
"lint": "eslint ./src --report-unused-disable-directives --max-warnings 0",
|
|
119
|
+
"lint-fix": "eslint ./src --report-unused-disable-directives --max-warnings 0 --fix",
|
|
120
|
+
"check-types": "tsc --noemit"
|
|
121
|
+
}
|
|
122
|
+
}
|