@umbraco-forms/backoffice 16.3.0 → 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 +7 -2
- package/types/umbraco-forms-public.d.ts +86 -69
package/package.json
CHANGED
|
@@ -9,8 +9,13 @@
|
|
|
9
9
|
"url": "https://umbraco.com"
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
|
-
"version": "16.
|
|
12
|
+
"version": "16.4.0-rc",
|
|
13
13
|
"types": "./types/umbraco-forms-public.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./types/umbraco-forms-public.d.ts"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
14
19
|
"files": [
|
|
15
20
|
"README.md",
|
|
16
21
|
"types/umbraco-forms-public.d.ts"
|
|
@@ -20,7 +25,7 @@
|
|
|
20
25
|
"npm": ">=10.9"
|
|
21
26
|
},
|
|
22
27
|
"peerDependencies": {
|
|
23
|
-
"@umbraco-cms/backoffice": ">= 16.
|
|
28
|
+
"@umbraco-cms/backoffice": ">= 16.4.0 < 17",
|
|
24
29
|
"aspnet-client-validation": "^0.11.1",
|
|
25
30
|
"json-logic-js": "^2.0.5",
|
|
26
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
|
|
21
|
-
import
|
|
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
|
|
100
|
-
SHOW
|
|
101
|
-
HIDE
|
|
102
|
-
}
|
|
98
|
+
export declare const FieldConditionActionType: {
|
|
99
|
+
readonly SHOW: "Show";
|
|
100
|
+
readonly HIDE: "Hide";
|
|
101
|
+
};
|
|
103
102
|
|
|
104
|
-
export declare
|
|
105
|
-
|
|
106
|
-
|
|
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
|
|
117
|
-
IS
|
|
118
|
-
IS_NOT
|
|
119
|
-
GREATER_THEN
|
|
120
|
-
LESS_THEN
|
|
121
|
-
CONTAINS
|
|
122
|
-
CONTAINS_IGNORE_CASE
|
|
123
|
-
STARTS_WITH
|
|
124
|
-
STARTS_WITH_IGNORE_CASE
|
|
125
|
-
ENDS_WITH
|
|
126
|
-
ENDS_WITH_IGNORE_CASE
|
|
127
|
-
NOT_CONTAINS
|
|
128
|
-
NOT_CONTAINS_IGNORE_CASE
|
|
129
|
-
NOT_STARTS_WITH
|
|
130
|
-
NOT_STARTS_WITH_IGNORE_CASE
|
|
131
|
-
NOT_ENDS_WITH
|
|
132
|
-
NOT_ENDS_WITH_IGNORE_CASE
|
|
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
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
|
286
|
-
NO_INDICATOR
|
|
287
|
-
MARK_MANDATORY_FIELDS
|
|
288
|
-
MARK_OPTIONAL_FIELDS
|
|
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
|
|
327
|
-
FULL
|
|
328
|
-
READ_ONLY_VIEW_AND_EXPORT_ENTRIES
|
|
329
|
-
READ_ONLY_VIEW_ENTRIES
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
537
|
-
FALSE
|
|
538
|
-
TRUE
|
|
539
|
-
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
|
|
559
|
-
NONE
|
|
560
|
-
SHOW_AT_TOP
|
|
561
|
-
SHOW_AT_BOTTOM
|
|
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
|
|
585
|
-
SINGLE
|
|
586
|
-
MULTIPLE
|
|
587
|
-
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;
|