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.
Files changed (137) hide show
  1. package/README.md +355 -37
  2. package/dist/accordion-DqBdGRim.mjs +23 -0
  3. package/dist/accordion-lvbD_BpX.js +1 -0
  4. package/dist/addressfield-CGX3UppE.mjs +152 -0
  5. package/dist/addressfield-DDG15fqJ.js +1 -0
  6. package/dist/asyncautocomplete-BAfBR9P7.mjs +89 -0
  7. package/dist/asyncautocomplete-w9q_1DWt.js +1 -0
  8. package/dist/bar-BzO7tvYJ.mjs +20 -0
  9. package/dist/bar-DEVxyUVS.js +1 -0
  10. package/dist/cascadeselect-C3QVfoig.mjs +64 -0
  11. package/dist/cascadeselect-DzbhK9en.js +1 -0
  12. package/dist/colorpicker-5qmEq7ZI.js +1 -0
  13. package/dist/colorpicker-DhNZulJY.mjs +98 -0
  14. package/dist/components/DynamicComponent.d.ts +2 -0
  15. package/dist/components/FormGenerator.d.ts +123 -2
  16. package/dist/components/controls/AsyncAutocomplete/asyncautocomplete.d.ts +9 -0
  17. package/dist/components/controls/CheckBox/checkbox.d.ts +1 -1
  18. package/dist/components/controls/ChipSelect/chipselect.d.ts +1 -1
  19. package/dist/components/controls/EditableTable/editabletable.d.ts +2 -0
  20. package/dist/components/controls/IntlPhone/intlphone.d.ts +2 -0
  21. package/dist/components/controls/LocationField/locationfield.d.ts +1 -1
  22. package/dist/components/controls/MultiTextbox/multitextbox.d.ts +1 -1
  23. package/dist/components/controls/NpsScale/npsscale.d.ts +3 -0
  24. package/dist/components/controls/NumberField/numberfield.d.ts +1 -1
  25. package/dist/components/controls/PasswordField/passwordfield.d.ts +1 -1
  26. package/dist/components/controls/Radio/radio.d.ts +1 -1
  27. package/dist/components/controls/RichTextEditor/richtexteditor.d.ts +3 -0
  28. package/dist/components/controls/Select/select.d.ts +1 -1
  29. package/dist/components/controls/Switch/switch.d.ts +1 -1
  30. package/dist/components/controls/TextField/textfield.d.ts +1 -1
  31. package/dist/components/controls/index.d.ts +45 -69
  32. package/dist/consentfield-B7Rm8d3U.js +1 -0
  33. package/dist/consentfield-CBQUR4J5.mjs +78 -0
  34. package/dist/datatable-BIQznwQe.mjs +20 -0
  35. package/dist/datatable-BWlcUP0M.js +1 -0
  36. package/dist/dynamic-mui.cjs +1 -0
  37. package/dist/dynamic-mui.mjs +32 -0
  38. package/dist/editabletable-DCoRmsEO.js +1 -0
  39. package/dist/editabletable-DRlBV8lk.mjs +126 -0
  40. package/dist/fileupload-ByBv1UjT.mjs +172 -0
  41. package/dist/fileupload-Cze3Oc_2.js +1 -0
  42. package/dist/formrepeater-BBkKGLFJ.mjs +71 -0
  43. package/dist/formrepeater-BxJzXoHx.js +1 -0
  44. package/dist/formwizard-BDZE1UDD.js +1 -0
  45. package/dist/formwizard-D2u1bMvK.mjs +83 -0
  46. package/dist/geofield-8WTeZk0Z.mjs +104 -0
  47. package/dist/geofield-Bw3p4NLJ.js +1 -0
  48. package/dist/group-B2mSylHd.mjs +23 -0
  49. package/dist/group-BlfO3ZZf.js +1 -0
  50. package/dist/imagelist-Bn9QhIv7.js +1 -0
  51. package/dist/imagelist-rqmJajHt.mjs +18 -0
  52. package/dist/index-CddjLTWF.mjs +12499 -0
  53. package/dist/index-D08GIfqF.js +43 -0
  54. package/dist/index.d.ts +11 -1
  55. package/dist/intlphone-B_Xn98pU.js +1 -0
  56. package/dist/intlphone-DtQZ12xk.mjs +140 -0
  57. package/dist/keyvaluefield-B_1NeGuP.mjs +125 -0
  58. package/dist/keyvaluefield-DyKCGd32.js +1 -0
  59. package/dist/line-B-DwR1hm.mjs +20 -0
  60. package/dist/line-BkymZu31.js +1 -0
  61. package/dist/lineitemlist-DGo8UOZC.js +1 -0
  62. package/dist/lineitemlist-vGKzJlQx.mjs +166 -0
  63. package/dist/list-7uNWrepS.mjs +20 -0
  64. package/dist/list-C0FgmtQw.js +1 -0
  65. package/dist/locationfield-CeUgxLkQ.mjs +119 -0
  66. package/dist/locationfield-Duyw1ZEz.js +1 -0
  67. package/dist/markdowneditor-B1y-hfny.mjs +90 -0
  68. package/dist/markdowneditor-Db0Un1_Z.js +2 -0
  69. package/dist/matrixfield-C7Sc-YpI.mjs +117 -0
  70. package/dist/matrixfield-CckODuPn.js +1 -0
  71. package/dist/mixChart-C3o184UT.js +1 -0
  72. package/dist/mixChart-ISf3Kbr-.mjs +75 -0
  73. package/dist/multitextbox-BYazIAeG.js +1 -0
  74. package/dist/multitextbox-ide2lvJ6.mjs +78 -0
  75. package/dist/npsscale-C2e88qk_.js +1 -0
  76. package/dist/npsscale-lndz7GEq.mjs +87 -0
  77. package/dist/numberstepper-DitbcvV9.mjs +128 -0
  78. package/dist/numberstepper-DyRjQM_K.js +1 -0
  79. package/dist/pie-CJSL8Sv5.js +1 -0
  80. package/dist/pie-CL29dlh5.mjs +20 -0
  81. package/dist/richtexteditor-CVg-MnKp.js +1 -0
  82. package/dist/richtexteditor-DsC1XC7h.mjs +141 -0
  83. package/dist/s3Upload-B0JeoLkS.js +1 -0
  84. package/dist/s3Upload-dpioZ2c8.mjs +51 -0
  85. package/dist/schema.d.ts +404 -0
  86. package/dist/signature-14OrZriO.mjs +1225 -0
  87. package/dist/signature-D582X6tB.js +2 -0
  88. package/dist/stepper-B-FpcZvT.js +1 -0
  89. package/dist/stepper-CDfEy_C6.mjs +140 -0
  90. package/dist/summaryfield-B08ZmVHh.js +1 -0
  91. package/dist/summaryfield-CTpPlZBG.mjs +96 -0
  92. package/dist/tabs-BIliqFOs.js +1 -0
  93. package/dist/tabs-DDeJCFt8.mjs +39 -0
  94. package/dist/tagsinput-D-q6rRZS.mjs +58 -0
  95. package/dist/tagsinput-qh_lhdFb.js +1 -0
  96. package/dist/types.d.ts +16 -0
  97. package/dist/util/registry.d.ts +29 -0
  98. package/dist/util/resolvers.d.ts +45 -0
  99. package/dist/util/useFormEngine.d.ts +74 -0
  100. package/dist/util/validateSchema.d.ts +23 -0
  101. package/dist/v4-BysszJq8.mjs +30 -0
  102. package/dist/v4-CqdK_b8Y.js +1 -0
  103. package/package.json +36 -11
  104. package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +0 -237
  105. package/dist/XmlShapeDeserializer-XKJAoqLc.js +0 -1
  106. package/dist/date-utils-CFUUt6NL.js +0 -4
  107. package/dist/date-utils-pGzaKb0p.mjs +0 -477
  108. package/dist/dynamic-mui.cjs.js +0 -469
  109. package/dist/dynamic-mui.es.js +0 -102550
  110. package/dist/index-BW8_rRff.js +0 -7
  111. package/dist/index-BXFVK_GX.js +0 -1
  112. package/dist/index-CVqLvm8B.js +0 -1
  113. package/dist/index-Cr6Wp_S-.mjs +0 -3141
  114. package/dist/index-DA0XouZs.mjs +0 -153
  115. package/dist/index-DKS5Sz9e.js +0 -14
  116. package/dist/index-DcWfyXJp.mjs +0 -92
  117. package/dist/index-MllWgTJ5.mjs +0 -9372
  118. package/dist/index.browser-BSu11T_q.mjs +0 -363
  119. package/dist/index.browser-By7-GABP.js +0 -4
  120. package/dist/loadCognitoIdentity-DtYTy-DW.js +0 -1
  121. package/dist/loadCognitoIdentity-DzdR91GB.mjs +0 -872
  122. package/dist/loadSts-Cic6UToN.mjs +0 -593
  123. package/dist/loadSts-csbFP6zX.js +0 -1
  124. package/dist/main.d.ts +0 -1
  125. package/dist/noAuth-B8ui2kBg.mjs +0 -71
  126. package/dist/noAuth-JPA2o4dt.js +0 -1
  127. package/dist/playground/AIContext.d.ts +0 -18
  128. package/dist/playground/AIPanel.d.ts +0 -10
  129. package/dist/playground/Builder.d.ts +0 -1
  130. package/dist/playground/Canvas.d.ts +0 -9
  131. package/dist/playground/PropertiesEditor.d.ts +0 -10
  132. package/dist/playground/Sidebar.d.ts +0 -1
  133. package/dist/playground/documentation.d.ts +0 -6
  134. package/dist/playground/templates.d.ts +0 -7
  135. package/dist/playground/testData.d.ts +0 -2
  136. package/dist/test/setup.d.ts +0 -0
  137. package/dist/theme/theme.d.ts +0 -1
@@ -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
- };
@@ -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;
@@ -1,6 +0,0 @@
1
- export declare const COMPONENT_DOCS: Record<string, {
2
- title: string;
3
- description: string;
4
- usage: string;
5
- props: Record<string, string>;
6
- }>;
@@ -1,7 +0,0 @@
1
- import { FormField } from '../util/helper';
2
- export declare const TEMPLATES: Record<string, FormField[]>;
3
- export declare const TOOLBOX_ITEMS: {
4
- type: string;
5
- label: string;
6
- icon: string;
7
- }[];
@@ -1,2 +0,0 @@
1
- import { FormField } from '../util/helper';
2
- export declare const ALL_CONTROLS_TEST_DATA: FormField[];
File without changes
@@ -1 +0,0 @@
1
- export declare const theme: import('@mui/material').Theme;