@umbraco-forms/backoffice 16.3.1 → 16.4.0-rc

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/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "url": "https://umbraco.com"
10
10
  },
11
11
  "type": "module",
12
- "version": "16.3.1",
12
+ "version": "16.4.0-rc",
13
13
  "types": "./types/umbraco-forms-public.d.ts",
14
14
  "exports": {
15
15
  ".": {
@@ -25,7 +25,7 @@
25
25
  "npm": ">=10.9"
26
26
  },
27
27
  "peerDependencies": {
28
- "@umbraco-cms/backoffice": ">= 16.3.0 < 17",
28
+ "@umbraco-cms/backoffice": ">= 16.4.0 < 17",
29
29
  "aspnet-client-validation": "^0.11.1",
30
30
  "json-logic-js": "^2.0.5",
31
31
  "moment": "^2.30.1"
@@ -11,14 +11,13 @@ import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
11
11
  import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
12
12
  import { UmbDataSourceResponse } from '@umbraco-cms/backoffice/repository';
13
13
  import { UmbDetailRepositoryBase } from '@umbraco-cms/backoffice/repository';
14
- import { UmbError } from '@umbraco-cms/backoffice/resources';
15
14
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
16
15
  import { UmbPagedModel } from '@umbraco-cms/backoffice/repository';
17
16
  import type { UmbPropertyEditorConfig } from '@umbraco-cms/backoffice/property-editor';
18
17
  import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
19
18
  import type { UmbPropertyValueData } from '@umbraco-cms/backoffice/property';
20
- import type { UmbRoutableWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
21
- import type { UmbSaveableWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
19
+ import { UmbRoutableWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
20
+ import { UmbSaveableWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
22
21
  import { UmbSubmittableWorkspaceContextBase } from '@umbraco-cms/backoffice/workspace';
23
22
  import type { UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
24
23
 
@@ -96,15 +95,19 @@ export declare type FieldCondition = {
96
95
  rules: Array<FieldConditionRule>;
97
96
  };
98
97
 
99
- export declare enum FieldConditionActionType {
100
- SHOW = "Show",
101
- HIDE = "Hide"
102
- }
98
+ export declare const FieldConditionActionType: {
99
+ readonly SHOW: "Show";
100
+ readonly HIDE: "Hide";
101
+ };
103
102
 
104
- export declare enum FieldConditionLogicType {
105
- ALL = "All",
106
- ANY = "Any"
107
- }
103
+ export declare type FieldConditionActionType = (typeof FieldConditionActionType)[keyof typeof FieldConditionActionType];
104
+
105
+ export declare const FieldConditionLogicType: {
106
+ readonly ALL: "All";
107
+ readonly ANY: "Any";
108
+ };
109
+
110
+ export declare type FieldConditionLogicType = (typeof FieldConditionLogicType)[keyof typeof FieldConditionLogicType];
108
111
 
109
112
  export declare type FieldConditionRule = {
110
113
  id: string;
@@ -113,32 +116,36 @@ export declare type FieldConditionRule = {
113
116
  value: string;
114
117
  };
115
118
 
116
- export declare enum FieldConditionRuleOperator {
117
- IS = "Is",
118
- IS_NOT = "IsNot",
119
- GREATER_THEN = "GreaterThen",
120
- LESS_THEN = "LessThen",
121
- CONTAINS = "Contains",
122
- CONTAINS_IGNORE_CASE = "ContainsIgnoreCase",
123
- STARTS_WITH = "StartsWith",
124
- STARTS_WITH_IGNORE_CASE = "StartsWithIgnoreCase",
125
- ENDS_WITH = "EndsWith",
126
- ENDS_WITH_IGNORE_CASE = "EndsWithIgnoreCase",
127
- NOT_CONTAINS = "NotContains",
128
- NOT_CONTAINS_IGNORE_CASE = "NotContainsIgnoreCase",
129
- NOT_STARTS_WITH = "NotStartsWith",
130
- NOT_STARTS_WITH_IGNORE_CASE = "NotStartsWithIgnoreCase",
131
- NOT_ENDS_WITH = "NotEndsWith",
132
- NOT_ENDS_WITH_IGNORE_CASE = "NotEndsWithIgnoreCase"
133
- }
119
+ export declare const FieldConditionRuleOperator: {
120
+ readonly IS: "Is";
121
+ readonly IS_NOT: "IsNot";
122
+ readonly GREATER_THEN: "GreaterThen";
123
+ readonly LESS_THEN: "LessThen";
124
+ readonly CONTAINS: "Contains";
125
+ readonly CONTAINS_IGNORE_CASE: "ContainsIgnoreCase";
126
+ readonly STARTS_WITH: "StartsWith";
127
+ readonly STARTS_WITH_IGNORE_CASE: "StartsWithIgnoreCase";
128
+ readonly ENDS_WITH: "EndsWith";
129
+ readonly ENDS_WITH_IGNORE_CASE: "EndsWithIgnoreCase";
130
+ readonly NOT_CONTAINS: "NotContains";
131
+ readonly NOT_CONTAINS_IGNORE_CASE: "NotContainsIgnoreCase";
132
+ readonly NOT_STARTS_WITH: "NotStartsWith";
133
+ readonly NOT_STARTS_WITH_IGNORE_CASE: "NotStartsWithIgnoreCase";
134
+ readonly NOT_ENDS_WITH: "NotEndsWith";
135
+ readonly NOT_ENDS_WITH_IGNORE_CASE: "NotEndsWithIgnoreCase";
136
+ };
134
137
 
135
- export declare enum FieldDataType {
136
- STRING = "String",
137
- LONG_STRING = "LongString",
138
- INTEGER = "Integer",
139
- DATE_TIME = "DateTime",
140
- BIT = "Bit"
141
- }
138
+ export declare type FieldConditionRuleOperator = (typeof FieldConditionRuleOperator)[keyof typeof FieldConditionRuleOperator];
139
+
140
+ export declare const FieldDataType: {
141
+ readonly STRING: "String";
142
+ readonly LONG_STRING: "LongString";
143
+ readonly INTEGER: "Integer";
144
+ readonly DATE_TIME: "DateTime";
145
+ readonly BIT: "Bit";
146
+ };
147
+
148
+ export declare type FieldDataType = (typeof FieldDataType)[keyof typeof FieldDataType];
142
149
 
143
150
  export declare type FieldPrevalue = {
144
151
  value: string;
@@ -282,11 +289,13 @@ export declare type FormEntityType = typeof FORMS_FORM_ENTITY_TYPE;
282
289
 
283
290
  export declare type FormEntryEntityType = typeof FORMS_FORM_ENTRY_ENTITY_TYPE;
284
291
 
285
- export declare enum FormFieldIndication {
286
- NO_INDICATOR = "NoIndicator",
287
- MARK_MANDATORY_FIELDS = "MarkMandatoryFields",
288
- MARK_OPTIONAL_FIELDS = "MarkOptionalFields"
289
- }
292
+ export declare const FormFieldIndication: {
293
+ readonly NO_INDICATOR: "NoIndicator";
294
+ readonly MARK_MANDATORY_FIELDS: "MarkMandatoryFields";
295
+ readonly MARK_OPTIONAL_FIELDS: "MarkOptionalFields";
296
+ };
297
+
298
+ export declare type FormFieldIndication = (typeof FormFieldIndication)[keyof typeof FormFieldIndication];
290
299
 
291
300
  export declare type FormFolderEntityType = typeof FORMS_FORM_FOLDER_ENTITY_TYPE;
292
301
 
@@ -323,11 +332,13 @@ export declare type FormSecurityForUser = {
323
332
  formsSecurity: Array<UserFormSecurity>;
324
333
  };
325
334
 
326
- export declare enum FormSecurityType {
327
- FULL = "Full",
328
- READ_ONLY_VIEW_AND_EXPORT_ENTRIES = "ReadOnlyViewAndExportEntries",
329
- READ_ONLY_VIEW_ENTRIES = "ReadOnlyViewEntries"
330
- }
335
+ export declare const FormSecurityType: {
336
+ readonly FULL: "Full";
337
+ readonly READ_ONLY_VIEW_AND_EXPORT_ENTRIES: "ReadOnlyViewAndExportEntries";
338
+ readonly READ_ONLY_VIEW_ENTRIES: "ReadOnlyViewEntries";
339
+ };
340
+
341
+ export declare type FormSecurityType = (typeof FormSecurityType)[keyof typeof FormSecurityType];
331
342
 
332
343
  export declare interface FormsFieldPreviewApi extends UmbApi {
333
344
  getSettingValue(alias: string): string;
@@ -344,7 +355,7 @@ export declare class FormsFieldPreviewBaseElement extends UmbLitElement {
344
355
  export declare class FormsFieldTypeDetailRepository extends UmbDetailRepositoryBase<FieldTypeWithSettings> {
345
356
  constructor(host: UmbControllerHost);
346
357
  requestValidationPatterns(): Promise<{
347
- error: UmbError | UmbApiError | UmbCancelError | Error;
358
+ error: UmbApiError | UmbCancelError;
348
359
  data?: undefined;
349
360
  } | {
350
361
  data: ValidationPattern[];
@@ -355,49 +366,49 @@ export declare class FormsFieldTypeDetailRepository extends UmbDetailRepositoryB
355
366
  export declare class FormsFormDetailRepository extends UmbDetailRepositoryBase<FormDesign> {
356
367
  constructor(host: UmbControllerHost);
357
368
  requestRecordsMetaData(unique: string): Promise<{
358
- error: UmbError | UmbApiError | UmbCancelError | Error;
369
+ error: UmbApiError | UmbCancelError;
359
370
  data?: undefined;
360
371
  } | {
361
372
  data: EntrySearchResultMetadata;
362
373
  error?: undefined;
363
374
  }>;
364
375
  requestHasRelations(unique: string): Promise<{
365
- error: UmbError | UmbApiError | UmbCancelError | Error;
376
+ error: UmbApiError | UmbCancelError;
366
377
  data?: undefined;
367
378
  } | {
368
379
  data: boolean;
369
380
  error?: undefined;
370
381
  }>;
371
382
  requestTemplates(): Promise<{
372
- error: UmbError | UmbApiError | UmbCancelError | Error;
383
+ error: UmbApiError | UmbCancelError;
373
384
  data?: undefined;
374
385
  } | {
375
386
  data: FormTemplateBase[];
376
387
  error?: undefined;
377
388
  }>;
378
389
  requestFormScaffold(template: string): Promise<{
379
- error: UmbError | UmbApiError | UmbCancelError | Error;
390
+ error: UmbApiError | UmbCancelError;
380
391
  data?: undefined;
381
392
  } | {
382
393
  data: FormDesign;
383
394
  error?: undefined;
384
395
  }>;
385
396
  copyForm(unique: string, copyWorkflows: boolean, newName?: string, copyToFolderId?: string): Promise<{
386
- error: UmbError | UmbApiError | UmbCancelError | Error;
397
+ error: UmbApiError | UmbCancelError;
387
398
  data?: undefined;
388
399
  } | {
389
400
  data: unknown;
390
401
  error?: undefined;
391
402
  }>;
392
403
  copyFormWorkflows(sourceId: string, destinationId: string, workflowIds: Array<string>): Promise<{
393
- error: UmbError | UmbApiError | UmbCancelError | Error;
404
+ error: UmbApiError | UmbCancelError;
394
405
  data?: undefined;
395
406
  } | {
396
407
  data: unknown;
397
408
  error?: undefined;
398
409
  }>;
399
410
  moveForm(unique: string, newParentId: string): Promise<{
400
- error: UmbError | UmbApiError | UmbCancelError | Error;
411
+ error: UmbApiError | UmbCancelError;
401
412
  data?: undefined;
402
413
  } | {
403
414
  data: unknown;
@@ -533,11 +544,13 @@ export declare type GetFormTemplateResponses = {
533
544
 
534
545
  export declare const GUID_EMPTY: string;
535
546
 
536
- export declare enum IncludeSensitiveData {
537
- FALSE = "False",
538
- TRUE = "True",
539
- UNDEFINED = "Undefined"
540
- }
547
+ export declare const IncludeSensitiveData: {
548
+ readonly FALSE: "False";
549
+ readonly TRUE: "True";
550
+ readonly UNDEFINED: "Undefined";
551
+ };
552
+
553
+ export declare type IncludeSensitiveData = (typeof IncludeSensitiveData)[keyof typeof IncludeSensitiveData];
541
554
 
542
555
  export declare interface LogicType {
543
556
  name: string;
@@ -555,11 +568,13 @@ export declare interface ManifestFormsSettingValueConverterPreview extends Manif
555
568
  api: ApiLoaderProperty<FormsSettingValueConverterApi>;
556
569
  }
557
570
 
558
- export declare enum MultiPageNavigationOption {
559
- NONE = "None",
560
- SHOW_AT_TOP = "ShowAtTop",
561
- SHOW_AT_BOTTOM = "ShowAtBottom"
562
- }
571
+ export declare const MultiPageNavigationOption: {
572
+ readonly NONE: "None";
573
+ readonly SHOW_AT_TOP: "ShowAtTop";
574
+ readonly SHOW_AT_BOTTOM: "ShowAtBottom";
575
+ };
576
+
577
+ export declare type MultiPageNavigationOption = (typeof MultiPageNavigationOption)[keyof typeof MultiPageNavigationOption];
563
578
 
564
579
  export declare interface OperatorType {
565
580
  name: string;
@@ -581,11 +596,13 @@ export declare type RecordFieldDisplay = {
581
596
  isSystem: boolean;
582
597
  };
583
598
 
584
- export declare enum RenderInputType {
585
- SINGLE = "Single",
586
- MULTIPLE = "Multiple",
587
- CUSTOM = "Custom"
588
- }
599
+ export declare const RenderInputType: {
600
+ readonly SINGLE: "Single";
601
+ readonly MULTIPLE: "Multiple";
602
+ readonly CUSTOM: "Custom";
603
+ };
604
+
605
+ export declare type RenderInputType = (typeof RenderInputType)[keyof typeof RenderInputType];
589
606
 
590
607
  export declare type Setting = {
591
608
  name: string;