@dappworks/kit 0.4.122 → 0.4.123
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/{PromiseState-b0cc408e.d.ts → PromiseState-yojg0WLR.d.ts} +3 -3
- package/dist/aiem.d.mts +630 -1
- package/dist/aiem.mjs +8 -21
- package/dist/aiem.mjs.map +1 -1
- package/dist/{chunk-WYGQ3Y4R.mjs → chunk-AIZ7XDNV.mjs} +14 -14
- package/dist/chunk-AIZ7XDNV.mjs.map +1 -0
- package/dist/{chunk-WT2ARRCR.mjs → chunk-HRYH37UI.mjs} +2 -2
- package/dist/{chunk-PPYYRQDD.mjs → chunk-QWHU3HBK.mjs} +2 -2
- package/dist/{chunk-6F7H4PAA.mjs → chunk-R4SQKVDQ.mjs} +1 -1
- package/dist/{chunk-7FF4BCFW.mjs → chunk-SVPD6PC6.mjs} +4 -4
- package/dist/{chunk-DZMNL4BZ.mjs → chunk-WS43BV7Y.mjs} +2 -2
- package/dist/{chunk-HRWHDF2F.mjs → chunk-XJMRAPHI.mjs} +7 -7
- package/dist/{chunk-HRWHDF2F.mjs.map → chunk-XJMRAPHI.mjs.map} +1 -1
- package/dist/dev.d.mts +1 -1
- package/dist/dev.mjs +2 -2
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.mjs +3 -3
- package/dist/form.d.mts +4 -4
- package/dist/form.mjs +5 -20
- package/dist/form.mjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +5 -5
- package/dist/inspector.d.mts +1 -1
- package/dist/inspector.mjs +1 -1
- package/dist/jsontable.d.mts +2 -2
- package/dist/jsontable.mjs +4 -4
- package/dist/metrics.d.mts +1 -1
- package/dist/metrics.mjs +4 -4
- package/dist/plugins.d.mts +2 -2
- package/dist/plugins.mjs +4 -4
- package/dist/{root-766ae985.d.ts → root-C3lZnoCI.d.ts} +1 -1
- package/dist/ui.mjs +3 -3
- package/dist/utils.d.mts +8 -3
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-WYGQ3Y4R.mjs.map +0 -1
- /package/dist/{PaginationState-c19e621a.d.ts → PaginationState-Bmrrw0ky.d.ts} +0 -0
- /package/dist/{chunk-WT2ARRCR.mjs.map → chunk-HRYH37UI.mjs.map} +0 -0
- /package/dist/{chunk-PPYYRQDD.mjs.map → chunk-QWHU3HBK.mjs.map} +0 -0
- /package/dist/{chunk-6F7H4PAA.mjs.map → chunk-R4SQKVDQ.mjs.map} +0 -0
- /package/dist/{chunk-7FF4BCFW.mjs.map → chunk-SVPD6PC6.mjs.map} +0 -0
- /package/dist/{chunk-DZMNL4BZ.mjs.map → chunk-WS43BV7Y.mjs.map} +0 -0
package/dist/experimental.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PromiseState } from './chunk-
|
|
1
|
+
import { PromiseState } from './chunk-QWHU3HBK.mjs';
|
|
2
2
|
import './chunk-4YCP5CJ4.mjs';
|
|
3
|
-
import { RootStore } from './chunk-
|
|
3
|
+
import { RootStore } from './chunk-XJMRAPHI.mjs';
|
|
4
4
|
import { _ } from './chunk-MGU3KYGC.mjs';
|
|
5
|
-
import { __objRest, __spreadValues, __spreadProps } from './chunk-
|
|
5
|
+
import { __objRest, __spreadValues, __spreadProps } from './chunk-R4SQKVDQ.mjs';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { makeAutoObservable, toJS, observable } from 'mobx';
|
|
8
8
|
import axios from 'axios';
|
package/dist/form.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { UiSchema, RJSFSchema, WidgetProps, Widget } from '@rjsf/utils';
|
|
|
4
4
|
import * as _rjsf_validator_ajv8_lib_validator from '@rjsf/validator-ajv8/lib/validator';
|
|
5
5
|
import Form, { IChangeEvent } from '@rjsf/core';
|
|
6
6
|
import { EditorProps } from '@monaco-editor/react';
|
|
7
|
-
import { S as Store, R as RootStore } from './root-
|
|
7
|
+
import { S as Store, R as RootStore } from './root-C3lZnoCI.js';
|
|
8
8
|
import EventEmitter from 'events';
|
|
9
9
|
import 'typed-emitter';
|
|
10
10
|
|
|
@@ -306,7 +306,7 @@ declare class ComplexFormModalStore<T extends FormDataType> implements Store {
|
|
|
306
306
|
modalSize: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full' | 'xs' | '3xl' | '4xl' | '5xl';
|
|
307
307
|
scrollBehavior?: 'normal' | 'inside' | 'outside';
|
|
308
308
|
isDismissable: boolean;
|
|
309
|
-
event: EventEmitter
|
|
309
|
+
event: EventEmitter<[never]>;
|
|
310
310
|
onBatchSubmit?: (data: T, setLoading?: Dispatch<SetStateAction<boolean>>) => void;
|
|
311
311
|
onSet?: (v: FormDataOfKey<T>, form: JSONSchemaFormState<FormDataOfKey<T>, UiSchema>) => FormDataOfKey<T>;
|
|
312
312
|
onChange?: (data: Partial<T>) => void;
|
|
@@ -335,7 +335,7 @@ declare class FormModalStore<T = {
|
|
|
335
335
|
modalSize: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full' | 'xs' | '3xl' | '4xl' | '5xl';
|
|
336
336
|
scrollBehavior?: 'normal' | 'inside' | 'outside';
|
|
337
337
|
closeOnOverlayClick: boolean;
|
|
338
|
-
event: EventEmitter
|
|
338
|
+
event: EventEmitter<[never]>;
|
|
339
339
|
onAfterSubmit?: (data: T) => void;
|
|
340
340
|
constructor(args?: Partial<FormModalStore>);
|
|
341
341
|
setData(v: Partial<FormModalStore>): void;
|
|
@@ -407,4 +407,4 @@ declare class JSONViewPlugin implements Store {
|
|
|
407
407
|
static JSONView: (props: JSONViewType) => React.JSX.Element;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
-
export { CheckboxWidget, CheckboxWidgetProps, CheckboxWidgetUIOptions, ComplexFormModalStore, DatePickerWidget, DatePickerWidgetProps, DatePickerWidgetUIOptions, EditorWidget, EditorWidgetProps, EditorWidgetUIOptions, FieldLayoutType, FormConfigType, FormDataOfKey, FormDataType, FormKey, FormLayoutType, FormModalStore, InputWidget, InputWidgetProps, InputWidgetUIOptions, JSONDataType, JSONForm, JSONFormProps, JSONSchemaForm, JSONViewPlugin, JSONViewType, LayoutConfigType, LayoutType, MultipleSelectWidget, MultipleSelectWidgetProps, MultipleSelectWidgetUIOptions, SelectWidget, SelectWidgetProps, SelectWidgetUIOptions, TextareaWidget, TextareaWidgetProps, TextareaWidgetUIOptions, getComplexFormData, getFormData, getFormState, getSimpleFormData };
|
|
410
|
+
export { CheckboxWidget, type CheckboxWidgetProps, type CheckboxWidgetUIOptions, ComplexFormModalStore, DatePickerWidget, type DatePickerWidgetProps, type DatePickerWidgetUIOptions, EditorWidget, type EditorWidgetProps, type EditorWidgetUIOptions, type FieldLayoutType, type FormConfigType, type FormDataOfKey, type FormDataType, type FormKey, type FormLayoutType, FormModalStore, InputWidget, type InputWidgetProps, type InputWidgetUIOptions, type JSONDataType, JSONForm, type JSONFormProps, JSONSchemaForm, JSONViewPlugin, type JSONViewType, type LayoutConfigType, type LayoutType, MultipleSelectWidget, type MultipleSelectWidgetProps, type MultipleSelectWidgetUIOptions, SelectWidget, type SelectWidgetProps, type SelectWidgetUIOptions, TextareaWidget, type TextareaWidgetProps, type TextareaWidgetUIOptions, getComplexFormData, getFormData, getFormState, getSimpleFormData };
|
package/dist/form.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useStore } from './chunk-
|
|
2
|
-
import { RootStore } from './chunk-
|
|
1
|
+
import { useStore } from './chunk-WS43BV7Y.mjs';
|
|
2
|
+
import { RootStore } from './chunk-XJMRAPHI.mjs';
|
|
3
3
|
import { helper } from './chunk-Q3AD5RHQ.mjs';
|
|
4
4
|
import { _ } from './chunk-MGU3KYGC.mjs';
|
|
5
|
-
import { cn } from './chunk-
|
|
6
|
-
import { __objRest, __spreadValues, __spreadProps } from './chunk-
|
|
7
|
-
import React7, { useEffect, useMemo, useState,
|
|
5
|
+
import { cn } from './chunk-AIZ7XDNV.mjs';
|
|
6
|
+
import { __objRest, __spreadValues, __spreadProps } from './chunk-R4SQKVDQ.mjs';
|
|
7
|
+
import React7, { useEffect, useMemo, useState, useCallback, useRef, createRef } from 'react';
|
|
8
8
|
import { Modal, ModalContent, ModalHeader, ModalBody, Checkbox, Input, Select, SelectItem, Button, Textarea, DatePicker, Chip, Card, Tabs, Tab } from '@nextui-org/react';
|
|
9
9
|
import { Check, ChevronUp, ChevronDown } from 'lucide-react';
|
|
10
10
|
import MonacoEditor from '@monaco-editor/react';
|
|
@@ -63,7 +63,6 @@ function InputWidget(props) {
|
|
|
63
63
|
const { className, nextuiClassNames, labelPlacement = "inside", size = "sm", inputType = "text", color, variant, radius, startContent, endContent, description } = options;
|
|
64
64
|
const { requiredErrMsg, validate } = uiSchema;
|
|
65
65
|
const placeholder = (_a = uiSchema["ui:options"]) == null ? void 0 : _a.placeholder;
|
|
66
|
-
const isFirstChecked = useRef(true);
|
|
67
66
|
return /* @__PURE__ */ React7.createElement(
|
|
68
67
|
Input,
|
|
69
68
|
{
|
|
@@ -85,10 +84,6 @@ function InputWidget(props) {
|
|
|
85
84
|
endContent,
|
|
86
85
|
onChange: (e) => onChange(e.target.value),
|
|
87
86
|
validate: () => {
|
|
88
|
-
if (isFirstChecked.current) {
|
|
89
|
-
isFirstChecked.current = false;
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
87
|
if (value === "" && required) {
|
|
93
88
|
return requiredErrMsg || "This field is required";
|
|
94
89
|
}
|
|
@@ -1014,7 +1009,6 @@ function TextareaWidget(props) {
|
|
|
1014
1009
|
const { className, nextuiClassNames, labelPlacement = "inside", size = "md", minRows = 3, maxRows = 8, color, variant, radius, startContent, endContent, description } = options;
|
|
1015
1010
|
const { requiredErrMsg, validate } = uiSchema;
|
|
1016
1011
|
const placeholder = (_a = uiSchema["ui:options"]) == null ? void 0 : _a.placeholder;
|
|
1017
|
-
const isFirstChecked = useRef(true);
|
|
1018
1012
|
return /* @__PURE__ */ React7.createElement(
|
|
1019
1013
|
Textarea,
|
|
1020
1014
|
{
|
|
@@ -1037,10 +1031,6 @@ function TextareaWidget(props) {
|
|
|
1037
1031
|
endContent,
|
|
1038
1032
|
onChange: (e) => onChange(e.target.value),
|
|
1039
1033
|
validate: () => {
|
|
1040
|
-
if (isFirstChecked.current) {
|
|
1041
|
-
isFirstChecked.current = false;
|
|
1042
|
-
return true;
|
|
1043
|
-
}
|
|
1044
1034
|
if (value === "" && required) {
|
|
1045
1035
|
return requiredErrMsg || "This field is required";
|
|
1046
1036
|
}
|
|
@@ -1057,7 +1047,6 @@ function DatePickerWidget({ label, options, value, required, disabled, uiSchema,
|
|
|
1057
1047
|
const { className, nextuiClassNames = { calendarContent: "min-w-fit" }, dateInputClassNames, labelPlacement = "inside", size = "sm", granularity = "day", color = "default", description } = options;
|
|
1058
1048
|
const [date, setDate] = useState();
|
|
1059
1049
|
const { requiredErrMsg, validate } = uiSchema;
|
|
1060
|
-
const isFirstChecked = useRef(true);
|
|
1061
1050
|
useEffect(() => {
|
|
1062
1051
|
if (value) {
|
|
1063
1052
|
try {
|
|
@@ -1092,10 +1081,6 @@ function DatePickerWidget({ label, options, value, required, disabled, uiSchema,
|
|
|
1092
1081
|
}
|
|
1093
1082
|
},
|
|
1094
1083
|
validate: () => {
|
|
1095
|
-
if (isFirstChecked.current) {
|
|
1096
|
-
isFirstChecked.current = false;
|
|
1097
|
-
return true;
|
|
1098
|
-
}
|
|
1099
1084
|
if (value === "" && required) {
|
|
1100
1085
|
return requiredErrMsg || "This field is required";
|
|
1101
1086
|
}
|