@umbraco-forms/backoffice 16.4.0-rc → 16.4.0-rc2
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 +1 -1
- package/types/umbraco-forms-public.d.ts +10 -19
package/package.json
CHANGED
|
@@ -11,6 +11,8 @@ 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 { UmbEntityDetailWorkspaceContextCreateArgs } from '@umbraco-cms/backoffice/workspace';
|
|
15
|
+
import { UmbEntityNamedDetailWorkspaceContextBase } from '@umbraco-cms/backoffice/workspace';
|
|
14
16
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
15
17
|
import { UmbPagedModel } from '@umbraco-cms/backoffice/repository';
|
|
16
18
|
import type { UmbPropertyEditorConfig } from '@umbraco-cms/backoffice/property-editor';
|
|
@@ -18,7 +20,6 @@ import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/prope
|
|
|
18
20
|
import type { UmbPropertyValueData } from '@umbraco-cms/backoffice/property';
|
|
19
21
|
import { UmbRoutableWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
|
20
22
|
import { UmbSaveableWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
|
21
|
-
import { UmbSubmittableWorkspaceContextBase } from '@umbraco-cms/backoffice/workspace';
|
|
22
23
|
import type { UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
|
23
24
|
|
|
24
25
|
export declare interface ActionType {
|
|
@@ -416,35 +417,22 @@ export declare class FormsFormDetailRepository extends UmbDetailRepositoryBase<F
|
|
|
416
417
|
}>;
|
|
417
418
|
}
|
|
418
419
|
|
|
419
|
-
export declare class FormsFormWorkspaceContext extends
|
|
420
|
+
export declare class FormsFormWorkspaceContext extends UmbEntityNamedDetailWorkspaceContextBase<FormDesign, FormsFormDetailRepository, FormsFormWorkspaceCreateArgs> implements UmbSaveableWorkspaceContext, UmbRoutableWorkspaceContext {
|
|
420
421
|
#private;
|
|
421
|
-
readonly formRepository: FormsFormDetailRepository;
|
|
422
422
|
readonly fieldTypeRepository: FormsFieldTypeDetailRepository;
|
|
423
423
|
readonly workflowTypeRepository: FormsWorkflowTypeDetailRepository;
|
|
424
424
|
readonly prevalueSourceCollectionRepository: FormsPrevalueSourceCollectionRepository;
|
|
425
|
-
|
|
426
|
-
readonly unique: Observable<string | undefined>;
|
|
427
|
-
readonly name: Observable<string | undefined>;
|
|
425
|
+
get formRepository(): FormsFormDetailRepository;
|
|
428
426
|
readonly id: Observable<string | undefined>;
|
|
427
|
+
getUnique(): string;
|
|
429
428
|
constructor(host: UmbControllerHostElement);
|
|
430
|
-
|
|
431
|
-
create(parent: {
|
|
432
|
-
entityType: string;
|
|
433
|
-
unique: string | null;
|
|
434
|
-
}, template: string | null): Promise<{
|
|
435
|
-
data: FormDesign;
|
|
436
|
-
}>;
|
|
429
|
+
createScaffold(args: FormsFormWorkspaceCreateArgs): Promise<FormDesign | undefined>;
|
|
437
430
|
requestSave(): Promise<void>;
|
|
438
431
|
submit(): Promise<void>;
|
|
439
432
|
loadFieldType(id: string): Promise<FieldTypeWithSettings | undefined>;
|
|
440
433
|
loadWorkflowType(id: string): Promise<WorkflowTypeWithSettings | undefined>;
|
|
441
434
|
loadValidationPatterns(): Promise<ValidationPattern[] | undefined>;
|
|
442
435
|
loadPrevalueSources(): Promise<FieldPreValueSource[] | undefined>;
|
|
443
|
-
getData(): FormDesign | undefined;
|
|
444
|
-
getUnique(): string;
|
|
445
|
-
getEntityType(): string;
|
|
446
|
-
getName(): string | undefined;
|
|
447
|
-
setName(name: string): void;
|
|
448
436
|
setFormProperty(alias: string, value: unknown): void;
|
|
449
437
|
getFormProperty(alias: string): any;
|
|
450
438
|
setPageProperty(pageIndex: number, alias: string, value: unknown): void;
|
|
@@ -465,7 +453,10 @@ export declare class FormsFormWorkspaceContext extends UmbSubmittableWorkspaceCo
|
|
|
465
453
|
getConditionLogicTypes: Array<LogicType>;
|
|
466
454
|
getConditionOperators: Array<OperatorType>;
|
|
467
455
|
getRichTextConfiguration(): Promise<UmbPropertyEditorConfigCollection>;
|
|
468
|
-
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export declare interface FormsFormWorkspaceCreateArgs extends UmbEntityDetailWorkspaceContextCreateArgs<FormDesign> {
|
|
459
|
+
template?: string;
|
|
469
460
|
}
|
|
470
461
|
|
|
471
462
|
export declare interface FormsPrevalueSourceCollectionFilterModel {
|