@msbci/form-server 1.3.4 → 1.4.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.d.mts CHANGED
@@ -196,6 +196,8 @@ declare class FormService {
196
196
  isRequired: boolean;
197
197
  isReadonly: boolean;
198
198
  isHidden: boolean;
199
+ startWithNewLine: boolean | null;
200
+ colSpan: number | null;
199
201
  defaultValue: string | null;
200
202
  placeholder: string | null;
201
203
  options: string | null;
@@ -224,6 +226,8 @@ declare class FormService {
224
226
  isRequired: boolean;
225
227
  isReadonly: boolean;
226
228
  isHidden: boolean;
229
+ startWithNewLine: boolean | null;
230
+ colSpan: number | null;
227
231
  defaultValue: string | null;
228
232
  placeholder: string | null;
229
233
  options: string | null;
@@ -348,6 +352,13 @@ declare class FormService {
348
352
  * {@link getFormDefinition}.
349
353
  */
350
354
  getResolvedFormDefinition(id: string): Promise<IFormDefinition>;
355
+ /**
356
+ * Editable domain form (scopeIds, parsed JSON, localized labels) WITHOUT
357
+ * resolving templates: variables keep their `templateId`/`templateOverrides`
358
+ * so the visual editor can round-trip them. This is the shape the editor
359
+ * adapter expects from a `loadForm` call.
360
+ */
361
+ getEditableFormDefinition(id: string): Promise<IFormDefinition>;
351
362
  deleteFormDefinition(id: string): Promise<{
352
363
  id: string;
353
364
  code: string;
@@ -503,6 +514,8 @@ declare class FormService {
503
514
  isRequired?: boolean;
504
515
  isReadonly?: boolean;
505
516
  isHidden?: boolean;
517
+ startWithNewLine?: boolean;
518
+ colSpan?: number;
506
519
  defaultValue?: unknown;
507
520
  placeholder?: string;
508
521
  description?: string;
@@ -530,6 +543,8 @@ declare class FormService {
530
543
  isRequired: boolean;
531
544
  isReadonly: boolean;
532
545
  isHidden: boolean;
546
+ startWithNewLine: boolean | null;
547
+ colSpan: number | null;
533
548
  defaultValue: string | null;
534
549
  placeholder: string | null;
535
550
  options: string | null;
@@ -551,6 +566,8 @@ declare class FormService {
551
566
  isRequired: boolean;
552
567
  isReadonly: boolean;
553
568
  isHidden: boolean;
569
+ startWithNewLine: boolean;
570
+ colSpan: number;
554
571
  defaultValue: unknown;
555
572
  placeholder: string;
556
573
  description: string;
@@ -578,6 +595,8 @@ declare class FormService {
578
595
  isRequired: boolean;
579
596
  isReadonly: boolean;
580
597
  isHidden: boolean;
598
+ startWithNewLine: boolean | null;
599
+ colSpan: number | null;
581
600
  defaultValue: string | null;
582
601
  placeholder: string | null;
583
602
  options: string | null;
@@ -605,6 +624,8 @@ declare class FormService {
605
624
  isRequired: boolean;
606
625
  isReadonly: boolean;
607
626
  isHidden: boolean;
627
+ startWithNewLine: boolean | null;
628
+ colSpan: number | null;
608
629
  defaultValue: string | null;
609
630
  placeholder: string | null;
610
631
  options: string | null;
@@ -1017,6 +1038,8 @@ declare const createFormVariableSchema: z.ZodObject<{
1017
1038
  isRequired: z.ZodDefault<z.ZodBoolean>;
1018
1039
  isReadonly: z.ZodDefault<z.ZodBoolean>;
1019
1040
  isHidden: z.ZodDefault<z.ZodBoolean>;
1041
+ startWithNewLine: z.ZodOptional<z.ZodBoolean>;
1042
+ colSpan: z.ZodOptional<z.ZodNumber>;
1020
1043
  defaultValue: z.ZodOptional<z.ZodUnknown>;
1021
1044
  placeholder: z.ZodOptional<z.ZodString>;
1022
1045
  description: z.ZodOptional<z.ZodString>;
@@ -1065,6 +1088,8 @@ declare const createFormVariableSchema: z.ZodObject<{
1065
1088
  description?: string | undefined;
1066
1089
  metadata?: Record<string, unknown> | undefined;
1067
1090
  conditions?: unknown[] | undefined;
1091
+ startWithNewLine?: boolean | undefined;
1092
+ colSpan?: number | undefined;
1068
1093
  defaultValue?: unknown;
1069
1094
  placeholder?: string | undefined;
1070
1095
  options?: {
@@ -1094,6 +1119,8 @@ declare const createFormVariableSchema: z.ZodObject<{
1094
1119
  isRequired?: boolean | undefined;
1095
1120
  isReadonly?: boolean | undefined;
1096
1121
  isHidden?: boolean | undefined;
1122
+ startWithNewLine?: boolean | undefined;
1123
+ colSpan?: number | undefined;
1097
1124
  defaultValue?: unknown;
1098
1125
  placeholder?: string | undefined;
1099
1126
  options?: {
@@ -1121,6 +1148,8 @@ declare const updateFormVariableSchema: z.ZodObject<{
1121
1148
  isRequired: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1122
1149
  isReadonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1123
1150
  isHidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1151
+ startWithNewLine: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1152
+ colSpan: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1124
1153
  defaultValue: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
1125
1154
  placeholder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1126
1155
  description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1169,6 +1198,8 @@ declare const updateFormVariableSchema: z.ZodObject<{
1169
1198
  isRequired?: boolean | undefined;
1170
1199
  isReadonly?: boolean | undefined;
1171
1200
  isHidden?: boolean | undefined;
1201
+ startWithNewLine?: boolean | undefined;
1202
+ colSpan?: number | undefined;
1172
1203
  defaultValue?: unknown;
1173
1204
  placeholder?: string | undefined;
1174
1205
  options?: {
@@ -1198,6 +1229,8 @@ declare const updateFormVariableSchema: z.ZodObject<{
1198
1229
  isRequired?: boolean | undefined;
1199
1230
  isReadonly?: boolean | undefined;
1200
1231
  isHidden?: boolean | undefined;
1232
+ startWithNewLine?: boolean | undefined;
1233
+ colSpan?: number | undefined;
1201
1234
  defaultValue?: unknown;
1202
1235
  placeholder?: string | undefined;
1203
1236
  options?: {
package/dist/index.d.ts CHANGED
@@ -196,6 +196,8 @@ declare class FormService {
196
196
  isRequired: boolean;
197
197
  isReadonly: boolean;
198
198
  isHidden: boolean;
199
+ startWithNewLine: boolean | null;
200
+ colSpan: number | null;
199
201
  defaultValue: string | null;
200
202
  placeholder: string | null;
201
203
  options: string | null;
@@ -224,6 +226,8 @@ declare class FormService {
224
226
  isRequired: boolean;
225
227
  isReadonly: boolean;
226
228
  isHidden: boolean;
229
+ startWithNewLine: boolean | null;
230
+ colSpan: number | null;
227
231
  defaultValue: string | null;
228
232
  placeholder: string | null;
229
233
  options: string | null;
@@ -348,6 +352,13 @@ declare class FormService {
348
352
  * {@link getFormDefinition}.
349
353
  */
350
354
  getResolvedFormDefinition(id: string): Promise<IFormDefinition>;
355
+ /**
356
+ * Editable domain form (scopeIds, parsed JSON, localized labels) WITHOUT
357
+ * resolving templates: variables keep their `templateId`/`templateOverrides`
358
+ * so the visual editor can round-trip them. This is the shape the editor
359
+ * adapter expects from a `loadForm` call.
360
+ */
361
+ getEditableFormDefinition(id: string): Promise<IFormDefinition>;
351
362
  deleteFormDefinition(id: string): Promise<{
352
363
  id: string;
353
364
  code: string;
@@ -503,6 +514,8 @@ declare class FormService {
503
514
  isRequired?: boolean;
504
515
  isReadonly?: boolean;
505
516
  isHidden?: boolean;
517
+ startWithNewLine?: boolean;
518
+ colSpan?: number;
506
519
  defaultValue?: unknown;
507
520
  placeholder?: string;
508
521
  description?: string;
@@ -530,6 +543,8 @@ declare class FormService {
530
543
  isRequired: boolean;
531
544
  isReadonly: boolean;
532
545
  isHidden: boolean;
546
+ startWithNewLine: boolean | null;
547
+ colSpan: number | null;
533
548
  defaultValue: string | null;
534
549
  placeholder: string | null;
535
550
  options: string | null;
@@ -551,6 +566,8 @@ declare class FormService {
551
566
  isRequired: boolean;
552
567
  isReadonly: boolean;
553
568
  isHidden: boolean;
569
+ startWithNewLine: boolean;
570
+ colSpan: number;
554
571
  defaultValue: unknown;
555
572
  placeholder: string;
556
573
  description: string;
@@ -578,6 +595,8 @@ declare class FormService {
578
595
  isRequired: boolean;
579
596
  isReadonly: boolean;
580
597
  isHidden: boolean;
598
+ startWithNewLine: boolean | null;
599
+ colSpan: number | null;
581
600
  defaultValue: string | null;
582
601
  placeholder: string | null;
583
602
  options: string | null;
@@ -605,6 +624,8 @@ declare class FormService {
605
624
  isRequired: boolean;
606
625
  isReadonly: boolean;
607
626
  isHidden: boolean;
627
+ startWithNewLine: boolean | null;
628
+ colSpan: number | null;
608
629
  defaultValue: string | null;
609
630
  placeholder: string | null;
610
631
  options: string | null;
@@ -1017,6 +1038,8 @@ declare const createFormVariableSchema: z.ZodObject<{
1017
1038
  isRequired: z.ZodDefault<z.ZodBoolean>;
1018
1039
  isReadonly: z.ZodDefault<z.ZodBoolean>;
1019
1040
  isHidden: z.ZodDefault<z.ZodBoolean>;
1041
+ startWithNewLine: z.ZodOptional<z.ZodBoolean>;
1042
+ colSpan: z.ZodOptional<z.ZodNumber>;
1020
1043
  defaultValue: z.ZodOptional<z.ZodUnknown>;
1021
1044
  placeholder: z.ZodOptional<z.ZodString>;
1022
1045
  description: z.ZodOptional<z.ZodString>;
@@ -1065,6 +1088,8 @@ declare const createFormVariableSchema: z.ZodObject<{
1065
1088
  description?: string | undefined;
1066
1089
  metadata?: Record<string, unknown> | undefined;
1067
1090
  conditions?: unknown[] | undefined;
1091
+ startWithNewLine?: boolean | undefined;
1092
+ colSpan?: number | undefined;
1068
1093
  defaultValue?: unknown;
1069
1094
  placeholder?: string | undefined;
1070
1095
  options?: {
@@ -1094,6 +1119,8 @@ declare const createFormVariableSchema: z.ZodObject<{
1094
1119
  isRequired?: boolean | undefined;
1095
1120
  isReadonly?: boolean | undefined;
1096
1121
  isHidden?: boolean | undefined;
1122
+ startWithNewLine?: boolean | undefined;
1123
+ colSpan?: number | undefined;
1097
1124
  defaultValue?: unknown;
1098
1125
  placeholder?: string | undefined;
1099
1126
  options?: {
@@ -1121,6 +1148,8 @@ declare const updateFormVariableSchema: z.ZodObject<{
1121
1148
  isRequired: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1122
1149
  isReadonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1123
1150
  isHidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1151
+ startWithNewLine: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1152
+ colSpan: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1124
1153
  defaultValue: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
1125
1154
  placeholder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1126
1155
  description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1169,6 +1198,8 @@ declare const updateFormVariableSchema: z.ZodObject<{
1169
1198
  isRequired?: boolean | undefined;
1170
1199
  isReadonly?: boolean | undefined;
1171
1200
  isHidden?: boolean | undefined;
1201
+ startWithNewLine?: boolean | undefined;
1202
+ colSpan?: number | undefined;
1172
1203
  defaultValue?: unknown;
1173
1204
  placeholder?: string | undefined;
1174
1205
  options?: {
@@ -1198,6 +1229,8 @@ declare const updateFormVariableSchema: z.ZodObject<{
1198
1229
  isRequired?: boolean | undefined;
1199
1230
  isReadonly?: boolean | undefined;
1200
1231
  isHidden?: boolean | undefined;
1232
+ startWithNewLine?: boolean | undefined;
1233
+ colSpan?: number | undefined;
1201
1234
  defaultValue?: unknown;
1202
1235
  placeholder?: string | undefined;
1203
1236
  options?: {