dynamic-mui 2.1.0 → 2.3.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/README.md +355 -37
- package/dist/accordion-DqBdGRim.mjs +23 -0
- package/dist/accordion-lvbD_BpX.js +1 -0
- package/dist/addressfield-CGX3UppE.mjs +152 -0
- package/dist/addressfield-DDG15fqJ.js +1 -0
- package/dist/asyncautocomplete-BAfBR9P7.mjs +89 -0
- package/dist/asyncautocomplete-w9q_1DWt.js +1 -0
- package/dist/bar-BzO7tvYJ.mjs +20 -0
- package/dist/bar-DEVxyUVS.js +1 -0
- package/dist/cascadeselect-C3QVfoig.mjs +64 -0
- package/dist/cascadeselect-DzbhK9en.js +1 -0
- package/dist/colorpicker-5qmEq7ZI.js +1 -0
- package/dist/colorpicker-DhNZulJY.mjs +98 -0
- package/dist/components/DynamicComponent.d.ts +2 -0
- package/dist/components/FormGenerator.d.ts +123 -2
- package/dist/components/controls/AsyncAutocomplete/asyncautocomplete.d.ts +9 -0
- package/dist/components/controls/CheckBox/checkbox.d.ts +1 -1
- package/dist/components/controls/ChipSelect/chipselect.d.ts +1 -1
- package/dist/components/controls/EditableTable/editabletable.d.ts +2 -0
- package/dist/components/controls/IntlPhone/intlphone.d.ts +2 -0
- package/dist/components/controls/LocationField/locationfield.d.ts +1 -1
- package/dist/components/controls/MultiTextbox/multitextbox.d.ts +1 -1
- package/dist/components/controls/NpsScale/npsscale.d.ts +3 -0
- package/dist/components/controls/NumberField/numberfield.d.ts +1 -1
- package/dist/components/controls/PasswordField/passwordfield.d.ts +1 -1
- package/dist/components/controls/Radio/radio.d.ts +1 -1
- package/dist/components/controls/RichTextEditor/richtexteditor.d.ts +3 -0
- package/dist/components/controls/Select/select.d.ts +1 -1
- package/dist/components/controls/Switch/switch.d.ts +1 -1
- package/dist/components/controls/TextField/textfield.d.ts +1 -1
- package/dist/components/controls/index.d.ts +45 -69
- package/dist/consentfield-B7Rm8d3U.js +1 -0
- package/dist/consentfield-CBQUR4J5.mjs +78 -0
- package/dist/datatable-BIQznwQe.mjs +20 -0
- package/dist/datatable-BWlcUP0M.js +1 -0
- package/dist/dynamic-mui.cjs +1 -0
- package/dist/dynamic-mui.mjs +32 -0
- package/dist/editabletable-DCoRmsEO.js +1 -0
- package/dist/editabletable-DRlBV8lk.mjs +126 -0
- package/dist/fileupload-ByBv1UjT.mjs +172 -0
- package/dist/fileupload-Cze3Oc_2.js +1 -0
- package/dist/formrepeater-BBkKGLFJ.mjs +71 -0
- package/dist/formrepeater-BxJzXoHx.js +1 -0
- package/dist/formwizard-BDZE1UDD.js +1 -0
- package/dist/formwizard-D2u1bMvK.mjs +83 -0
- package/dist/geofield-8WTeZk0Z.mjs +104 -0
- package/dist/geofield-Bw3p4NLJ.js +1 -0
- package/dist/group-B2mSylHd.mjs +23 -0
- package/dist/group-BlfO3ZZf.js +1 -0
- package/dist/imagelist-Bn9QhIv7.js +1 -0
- package/dist/imagelist-rqmJajHt.mjs +18 -0
- package/dist/index-CddjLTWF.mjs +12499 -0
- package/dist/index-D08GIfqF.js +43 -0
- package/dist/index.d.ts +11 -1
- package/dist/intlphone-B_Xn98pU.js +1 -0
- package/dist/intlphone-DtQZ12xk.mjs +140 -0
- package/dist/keyvaluefield-B_1NeGuP.mjs +125 -0
- package/dist/keyvaluefield-DyKCGd32.js +1 -0
- package/dist/line-B-DwR1hm.mjs +20 -0
- package/dist/line-BkymZu31.js +1 -0
- package/dist/lineitemlist-DGo8UOZC.js +1 -0
- package/dist/lineitemlist-vGKzJlQx.mjs +166 -0
- package/dist/list-7uNWrepS.mjs +20 -0
- package/dist/list-C0FgmtQw.js +1 -0
- package/dist/locationfield-CeUgxLkQ.mjs +119 -0
- package/dist/locationfield-Duyw1ZEz.js +1 -0
- package/dist/markdowneditor-B1y-hfny.mjs +90 -0
- package/dist/markdowneditor-Db0Un1_Z.js +2 -0
- package/dist/matrixfield-C7Sc-YpI.mjs +117 -0
- package/dist/matrixfield-CckODuPn.js +1 -0
- package/dist/mixChart-C3o184UT.js +1 -0
- package/dist/mixChart-ISf3Kbr-.mjs +75 -0
- package/dist/multitextbox-BYazIAeG.js +1 -0
- package/dist/multitextbox-ide2lvJ6.mjs +78 -0
- package/dist/npsscale-C2e88qk_.js +1 -0
- package/dist/npsscale-lndz7GEq.mjs +87 -0
- package/dist/numberstepper-DitbcvV9.mjs +128 -0
- package/dist/numberstepper-DyRjQM_K.js +1 -0
- package/dist/pie-CJSL8Sv5.js +1 -0
- package/dist/pie-CL29dlh5.mjs +20 -0
- package/dist/richtexteditor-CVg-MnKp.js +1 -0
- package/dist/richtexteditor-DsC1XC7h.mjs +141 -0
- package/dist/s3Upload-B0JeoLkS.js +1 -0
- package/dist/s3Upload-dpioZ2c8.mjs +51 -0
- package/dist/schema.d.ts +404 -0
- package/dist/signature-14OrZriO.mjs +1225 -0
- package/dist/signature-D582X6tB.js +2 -0
- package/dist/stepper-B-FpcZvT.js +1 -0
- package/dist/stepper-CDfEy_C6.mjs +140 -0
- package/dist/summaryfield-B08ZmVHh.js +1 -0
- package/dist/summaryfield-CTpPlZBG.mjs +96 -0
- package/dist/tabs-BIliqFOs.js +1 -0
- package/dist/tabs-DDeJCFt8.mjs +39 -0
- package/dist/tagsinput-D-q6rRZS.mjs +58 -0
- package/dist/tagsinput-qh_lhdFb.js +1 -0
- package/dist/types.d.ts +16 -0
- package/dist/util/registry.d.ts +29 -0
- package/dist/util/resolvers.d.ts +45 -0
- package/dist/util/useFormEngine.d.ts +74 -0
- package/dist/util/validateSchema.d.ts +23 -0
- package/dist/v4-BysszJq8.mjs +30 -0
- package/dist/v4-CqdK_b8Y.js +1 -0
- package/package.json +36 -11
- package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +0 -237
- package/dist/XmlShapeDeserializer-XKJAoqLc.js +0 -1
- package/dist/date-utils-CFUUt6NL.js +0 -4
- package/dist/date-utils-pGzaKb0p.mjs +0 -477
- package/dist/dynamic-mui.cjs.js +0 -469
- package/dist/dynamic-mui.es.js +0 -102550
- package/dist/index-BW8_rRff.js +0 -7
- package/dist/index-BXFVK_GX.js +0 -1
- package/dist/index-CVqLvm8B.js +0 -1
- package/dist/index-Cr6Wp_S-.mjs +0 -3141
- package/dist/index-DA0XouZs.mjs +0 -153
- package/dist/index-DKS5Sz9e.js +0 -14
- package/dist/index-DcWfyXJp.mjs +0 -92
- package/dist/index-MllWgTJ5.mjs +0 -9372
- package/dist/index.browser-BSu11T_q.mjs +0 -363
- package/dist/index.browser-By7-GABP.js +0 -4
- package/dist/loadCognitoIdentity-DtYTy-DW.js +0 -1
- package/dist/loadCognitoIdentity-DzdR91GB.mjs +0 -872
- package/dist/loadSts-Cic6UToN.mjs +0 -593
- package/dist/loadSts-csbFP6zX.js +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/noAuth-B8ui2kBg.mjs +0 -71
- package/dist/noAuth-JPA2o4dt.js +0 -1
- package/dist/playground/AIContext.d.ts +0 -18
- package/dist/playground/AIPanel.d.ts +0 -10
- package/dist/playground/Builder.d.ts +0 -1
- package/dist/playground/Canvas.d.ts +0 -9
- package/dist/playground/PropertiesEditor.d.ts +0 -10
- package/dist/playground/Sidebar.d.ts +0 -1
- package/dist/playground/documentation.d.ts +0 -6
- package/dist/playground/templates.d.ts +0 -7
- package/dist/playground/testData.d.ts +0 -2
- package/dist/test/setup.d.ts +0 -0
- package/dist/theme/theme.d.ts +0 -1
package/dist/noAuth-B8ui2kBg.mjs
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { H as g, N as y, c as b } from "./index-Cr6Wp_S-.mjs";
|
|
2
|
-
import { H as z } from "./date-utils-pGzaKb0p.mjs";
|
|
3
|
-
class q extends g {
|
|
4
|
-
async serializeRequest(i, r, e) {
|
|
5
|
-
const s = this.serializer, n = {}, a = {}, d = await e.endpoint(), t = y.of(i?.input), m = t.getSchema();
|
|
6
|
-
let f;
|
|
7
|
-
const o = new z({
|
|
8
|
-
protocol: "",
|
|
9
|
-
hostname: "",
|
|
10
|
-
port: void 0,
|
|
11
|
-
path: "/",
|
|
12
|
-
fragment: void 0,
|
|
13
|
-
query: n,
|
|
14
|
-
headers: a,
|
|
15
|
-
body: void 0
|
|
16
|
-
});
|
|
17
|
-
d && (this.updateServiceEndpoint(o, d), this.setHostPrefix(o, i, r));
|
|
18
|
-
const c = {
|
|
19
|
-
...r
|
|
20
|
-
};
|
|
21
|
-
if (r) {
|
|
22
|
-
const h = t.getEventStreamMember();
|
|
23
|
-
if (h) {
|
|
24
|
-
if (c[h]) {
|
|
25
|
-
const u = {};
|
|
26
|
-
for (const [l, S] of t.structIterator())
|
|
27
|
-
l !== h && c[l] && (s.write(S, c[l]), u[l] = s.flush());
|
|
28
|
-
f = await this.serializeEventStream({
|
|
29
|
-
eventStream: c[h],
|
|
30
|
-
requestSchema: t,
|
|
31
|
-
initialRequest: u
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
} else
|
|
35
|
-
s.write(m, c), f = s.flush();
|
|
36
|
-
}
|
|
37
|
-
return o.headers = a, o.query = n, o.body = f, o.method = "POST", o;
|
|
38
|
-
}
|
|
39
|
-
async deserializeResponse(i, r, e) {
|
|
40
|
-
const s = this.deserializer, n = y.of(i.output), a = {};
|
|
41
|
-
if (e.statusCode >= 300) {
|
|
42
|
-
const t = await b(e.body, r);
|
|
43
|
-
throw t.byteLength > 0 && Object.assign(a, await s.read(15, t)), await this.handleError(i, r, e, a, this.deserializeMetadata(e)), new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
|
|
44
|
-
}
|
|
45
|
-
for (const t in e.headers) {
|
|
46
|
-
const m = e.headers[t];
|
|
47
|
-
delete e.headers[t], e.headers[t.toLowerCase()] = m;
|
|
48
|
-
}
|
|
49
|
-
const d = n.getEventStreamMember();
|
|
50
|
-
if (d)
|
|
51
|
-
a[d] = await this.deserializeEventStream({
|
|
52
|
-
response: e,
|
|
53
|
-
responseSchema: n,
|
|
54
|
-
initialResponseContainer: a
|
|
55
|
-
});
|
|
56
|
-
else {
|
|
57
|
-
const t = await b(e.body, r);
|
|
58
|
-
t.byteLength > 0 && Object.assign(a, await s.read(n, t));
|
|
59
|
-
}
|
|
60
|
-
return a.$metadata = this.deserializeMetadata(e), a;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
class R {
|
|
64
|
-
async sign(i, r, e) {
|
|
65
|
-
return i;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export {
|
|
69
|
-
R as N,
|
|
70
|
-
q as R
|
|
71
|
-
};
|
package/dist/noAuth-JPA2o4dt.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./index-DKS5Sz9e.js"),S=require("./date-utils-CFUUt6NL.js");class g extends l.HttpProtocol{async serializeRequest(r,i,e){const s=this.serializer,n={},a={},d=await e.endpoint(),t=l.NormalizedSchema.of(r?.input),u=t.getSchema();let f;const o=new S.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:n,headers:a,body:void 0});d&&(this.updateServiceEndpoint(o,d),this.setHostPrefix(o,r,i));const c={...i};if(i){const h=t.getEventStreamMember();if(h){if(c[h]){const y={};for(const[m,w]of t.structIterator())m!==h&&c[m]&&(s.write(w,c[m]),y[m]=s.flush());f=await this.serializeEventStream({eventStream:c[h],requestSchema:t,initialRequest:y})}}else s.write(u,c),f=s.flush()}return o.headers=a,o.query=n,o.body=f,o.method="POST",o}async deserializeResponse(r,i,e){const s=this.deserializer,n=l.NormalizedSchema.of(r.output),a={};if(e.statusCode>=300){const t=await l.collectBody(e.body,i);throw t.byteLength>0&&Object.assign(a,await s.read(15,t)),await this.handleError(r,i,e,a,this.deserializeMetadata(e)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const t in e.headers){const u=e.headers[t];delete e.headers[t],e.headers[t.toLowerCase()]=u}const d=n.getEventStreamMember();if(d)a[d]=await this.deserializeEventStream({response:e,responseSchema:n,initialResponseContainer:a});else{const t=await l.collectBody(e.body,i);t.byteLength>0&&Object.assign(a,await s.read(n,t))}return a.$metadata=this.deserializeMetadata(e),a}}class z{async sign(r,i,e){return r}}exports.NoAuthSigner=z;exports.RpcProtocol=g;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { AIClient } from '../ai';
|
|
3
|
-
interface AICtx {
|
|
4
|
-
endpoint: string;
|
|
5
|
-
apiKey: string;
|
|
6
|
-
setEndpoint: (v: string) => void;
|
|
7
|
-
setApiKey: (v: string) => void;
|
|
8
|
-
client: AIClient | null;
|
|
9
|
-
configured: boolean;
|
|
10
|
-
}
|
|
11
|
-
/** Holds the AI config (URL + key) once, shared by every AI feature in the builder. */
|
|
12
|
-
export declare const AIProvider: ({ children }: {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare const useAI: () => AICtx;
|
|
16
|
-
/** Reusable URL + key inputs bound to the shared config. */
|
|
17
|
-
export declare const AIConfigFields: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormField } from '../util/helper';
|
|
2
|
-
interface AIPanelProps {
|
|
3
|
-
open: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
currentFields: FormField[];
|
|
6
|
-
onApply: (fields: FormField[]) => void;
|
|
7
|
-
}
|
|
8
|
-
/** Playground-only panel: generate / digitize / review a form with AI. */
|
|
9
|
-
export declare const AIPanel: ({ open, onClose, currentFields, onApply }: AIPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Builder: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FormField } from '../util/helper';
|
|
2
|
-
interface CanvasProps {
|
|
3
|
-
fields: FormField[];
|
|
4
|
-
onSelectField: (id: string) => void;
|
|
5
|
-
selectedId: string | null;
|
|
6
|
-
onDeleteField: (id: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const Canvas: ({ fields, onSelectField, selectedId: _selectedId, onDeleteField: _onDeleteField }: CanvasProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormField } from '../util/helper';
|
|
2
|
-
interface PropertiesEditorProps {
|
|
3
|
-
field: FormField | null;
|
|
4
|
-
onUpdate: (field: FormField) => void;
|
|
5
|
-
onDelete: (id: string) => void;
|
|
6
|
-
allFields?: FormField[];
|
|
7
|
-
onAllFieldsChange?: (fields: FormField[]) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const PropertiesEditor: ({ field, onUpdate, onDelete, allFields, onAllFieldsChange }: PropertiesEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Sidebar: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/test/setup.d.ts
DELETED
|
File without changes
|
package/dist/theme/theme.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const theme: import('@mui/material').Theme;
|