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