@omnia/workplace 7.5.91-preview → 7.6.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/internal-do-not-import-from-here/core/loc/formLocalize.d.ts +93 -3
- package/internal-do-not-import-from-here/core/utils/Utils.d.ts +4 -4
- package/internal-do-not-import-from-here/manifests/omnia.workplace.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/models/Constants.d.ts +19 -1
- package/internal-do-not-import-from-here/models/Constants.js +22 -4
- package/internal-do-not-import-from-here/models/ManifestIds.d.ts +43 -0
- package/internal-do-not-import-from-here/models/ManifestIds.js +43 -0
- package/internal-do-not-import-from-here/models/analytics/analyticsdimensionmappings.d.ts +5 -0
- package/internal-do-not-import-from-here/models/forms/Form.d.ts +56 -25
- package/internal-do-not-import-from-here/models/forms/Form.js +19 -1
- package/internal-do-not-import-from-here/models/forms/FormApi.d.ts +20 -0
- package/internal-do-not-import-from-here/models/forms/FormApi.js +2 -0
- package/internal-do-not-import-from-here/models/forms/FormDialogModel.d.ts +4 -0
- package/internal-do-not-import-from-here/models/forms/FormDialogModel.js +2 -0
- package/internal-do-not-import-from-here/models/forms/FormQuery.d.ts +32 -0
- package/internal-do-not-import-from-here/models/forms/FormQuery.js +2 -0
- package/internal-do-not-import-from-here/models/forms/FormTemplate.d.ts +36 -0
- package/internal-do-not-import-from-here/models/forms/FormTemplate.js +2 -0
- package/internal-do-not-import-from-here/models/forms/FormType.d.ts +21 -0
- package/internal-do-not-import-from-here/models/forms/FormType.js +2 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupBlockSettings.d.ts +80 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupBlockSettings.js +9 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupBlockViewSettings.d.ts +24 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupBlockViewSettings.js +2 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupConstant.d.ts +15 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupConstant.js +19 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupStyle.d.ts +41 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupStyle.js +8 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupViewRendererComponent.d.ts +7 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupViewRendererComponent.js +2 -0
- package/internal-do-not-import-from-here/models/forms/components/ListViewComponentSettings.d.ts +18 -0
- package/internal-do-not-import-from-here/models/forms/components/ListViewComponentSettings.js +2 -0
- package/internal-do-not-import-from-here/models/forms/components/index.d.ts +6 -0
- package/internal-do-not-import-from-here/models/forms/components/index.js +9 -0
- package/internal-do-not-import-from-here/models/forms/index.d.ts +6 -0
- package/internal-do-not-import-from-here/models/forms/index.js +6 -0
- package/internal-do-not-import-from-here/models/mediapicker/MediaPickerProviderContext.d.ts +5 -3
- package/internal-do-not-import-from-here/models/mediapicker/MediaPickerProviderContext.js +7 -2
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequest.d.ts +11 -12
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestEnum.d.ts +2 -1
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestEnum.js +1 -0
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestProvider.d.ts +1 -0
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRecurrence.d.ts +38 -0
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRecurrence.js +7 -0
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRecurrenceQuery.d.ts +10 -0
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRecurrenceQuery.js +2 -0
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestResource.d.ts +6 -0
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestTemplate.d.ts +10 -1
- package/internal-do-not-import-from-here/models/signoffrequest/index.d.ts +1 -0
- package/internal-do-not-import-from-here/models/signoffrequest/index.js +1 -0
- package/internal-do-not-import-from-here/models/signoffrequest/request/SignOffRequestCreateModel.d.ts +3 -14
- package/internal-do-not-import-from-here/models/signoffrequest/request/SignOffRequestTemplateCreateModel.d.ts +2 -1
- package/internal-do-not-import-from-here/services/AnalyticsStoreService.d.ts +2 -1
- package/internal-do-not-import-from-here/services/{FormService.d.ts → forms/FormService.d.ts} +8 -4
- package/internal-do-not-import-from-here/services/forms/FormTemplateService.d.ts +12 -0
- package/internal-do-not-import-from-here/services/forms/FormTypeService.d.ts +11 -0
- package/internal-do-not-import-from-here/services/forms/index.d.ts +3 -0
- package/internal-do-not-import-from-here/services/index.d.ts +1 -1
- package/internal-do-not-import-from-here/stores/AnalyticsStore.d.ts +6 -1
- package/internal-do-not-import-from-here/stores/SignOffRequestStore.d.ts +1 -0
- package/internal-do-not-import-from-here/stores/{FormStore.d.ts → forms/FormStore.d.ts} +7 -4
- package/internal-do-not-import-from-here/stores/forms/FormTemplateStore.d.ts +24 -0
- package/internal-do-not-import-from-here/stores/forms/FormTypeStore.d.ts +24 -0
- package/internal-do-not-import-from-here/stores/forms/index.d.ts +3 -0
- package/internal-do-not-import-from-here/stores/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChartColor = exports.FormGenericSetting = exports.LegendPosition = exports.LegendAlignment = exports.OptionTypes = exports.QuestionTypes = exports.FormTypes = void 0;
|
|
3
|
+
exports.FormDisplayStatus = exports.ChartColor = exports.FormGenericSetting = exports.LegendPosition = exports.LegendAlignment = exports.OptionTypes = exports.QuestionTypes = exports.FormStatus = exports.FormTypes = exports.FormScopeTypes = exports.ScopeCurrentId = void 0;
|
|
4
4
|
const models_1 = require("@omnia/fx/models");
|
|
5
5
|
const ManifestIds_1 = require("../ManifestIds");
|
|
6
|
+
exports.ScopeCurrentId = new models_1.Guid("acb52a9b-b0c7-465a-8acc-98c4a47b464c");
|
|
7
|
+
var FormScopeTypes;
|
|
8
|
+
(function (FormScopeTypes) {
|
|
9
|
+
FormScopeTypes[FormScopeTypes["BusinessProfile"] = 1] = "BusinessProfile";
|
|
10
|
+
FormScopeTypes[FormScopeTypes["AppInstance"] = 2] = "AppInstance";
|
|
11
|
+
})(FormScopeTypes = exports.FormScopeTypes || (exports.FormScopeTypes = {}));
|
|
12
|
+
const FormBuilderSteps = ["templateSettings", "formQuestions", "formSettings"];
|
|
6
13
|
var FormTypes;
|
|
7
14
|
(function (FormTypes) {
|
|
8
15
|
FormTypes[FormTypes["Poll"] = 1] = "Poll";
|
|
9
16
|
FormTypes[FormTypes["Survey"] = 2] = "Survey";
|
|
10
17
|
FormTypes[FormTypes["Checkup"] = 3] = "Checkup";
|
|
11
18
|
})(FormTypes = exports.FormTypes || (exports.FormTypes = {}));
|
|
19
|
+
var FormStatus;
|
|
20
|
+
(function (FormStatus) {
|
|
21
|
+
FormStatus[FormStatus["Open"] = 1] = "Open";
|
|
22
|
+
FormStatus[FormStatus["Closed"] = 2] = "Closed";
|
|
23
|
+
})(FormStatus = exports.FormStatus || (exports.FormStatus = {}));
|
|
12
24
|
var QuestionTypes;
|
|
13
25
|
(function (QuestionTypes) {
|
|
14
26
|
QuestionTypes[QuestionTypes["Text"] = 1] = "Text";
|
|
@@ -42,3 +54,9 @@ exports.FormGenericSetting = FormGenericSetting;
|
|
|
42
54
|
class ChartColor {
|
|
43
55
|
}
|
|
44
56
|
exports.ChartColor = ChartColor;
|
|
57
|
+
var FormDisplayStatus;
|
|
58
|
+
(function (FormDisplayStatus) {
|
|
59
|
+
FormDisplayStatus[FormDisplayStatus["NotOpen"] = 0] = "NotOpen";
|
|
60
|
+
FormDisplayStatus[FormDisplayStatus["Opening"] = 1] = "Opening";
|
|
61
|
+
FormDisplayStatus[FormDisplayStatus["Closed"] = 2] = "Closed";
|
|
62
|
+
})(FormDisplayStatus = exports.FormDisplayStatus || (exports.FormDisplayStatus = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApiPath } from "@omnia/fx/models";
|
|
2
|
+
import { FormRollupViewRegistration } from "./components";
|
|
3
|
+
export interface IFormRollupApi {
|
|
4
|
+
viewRegistration: Promise<IFormRollupViewRegistrationApi>;
|
|
5
|
+
}
|
|
6
|
+
export interface IFormRollupViewRegistrationApi {
|
|
7
|
+
registerViews: (providers: FormRollupViewRegistration | FormRollupViewRegistration[]) => void;
|
|
8
|
+
}
|
|
9
|
+
declare module "../WorkplaceApi" {
|
|
10
|
+
interface IWorkplaceApi {
|
|
11
|
+
form: {
|
|
12
|
+
rollup: IFormRollupApi;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
interface IWorkplaceExtendApiManifest {
|
|
16
|
+
form: {
|
|
17
|
+
rollup: ApiPath;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { GuidValue, IPagingable, OrderBy } from "@omnia/fx-models";
|
|
2
|
+
import { FormQueryScopes, FormRollupFilter } from "./components";
|
|
3
|
+
import { Form } from "./Form";
|
|
4
|
+
export interface FormQuery extends IPagingable {
|
|
5
|
+
scope: FormQueryScopes;
|
|
6
|
+
keyWord?: string;
|
|
7
|
+
orderBy?: OrderBy;
|
|
8
|
+
formFilter?: FormFilter;
|
|
9
|
+
scopedFilters: ScopedFormFilter[];
|
|
10
|
+
keywordFilterOnProperties?: string[];
|
|
11
|
+
selectEnterpriseProperties?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface FormFilter {
|
|
14
|
+
filters: FormRollupFilter[];
|
|
15
|
+
enableWildcardSearch: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface ScopedFormFilter extends FormFilter {
|
|
18
|
+
scope: FormQueryScopes;
|
|
19
|
+
filters: FormRollupFilter[];
|
|
20
|
+
}
|
|
21
|
+
export interface TenantScopedFormFilter extends ScopedFormFilter {
|
|
22
|
+
}
|
|
23
|
+
export interface BusinessProfileScopedFormFilter extends ScopedFormFilter {
|
|
24
|
+
businessProfileId: GuidValue;
|
|
25
|
+
}
|
|
26
|
+
export interface AppInstanceScopedFormFilter extends ScopedFormFilter {
|
|
27
|
+
appInstanceId: GuidValue;
|
|
28
|
+
}
|
|
29
|
+
export interface FormQueryResult {
|
|
30
|
+
total: number;
|
|
31
|
+
items: Form[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { GuidValue, Identity, MultilingualString } from "@omnia/fx-models";
|
|
2
|
+
import { FormTypes } from "./Form";
|
|
3
|
+
export interface FormTemplateSettings {
|
|
4
|
+
oneResponsePerPerson: boolean;
|
|
5
|
+
makeResponseAnonymous: boolean;
|
|
6
|
+
usePoint: boolean;
|
|
7
|
+
useCorrectAnswer: boolean;
|
|
8
|
+
enableCheckAnswer: boolean;
|
|
9
|
+
enableSubmission: boolean;
|
|
10
|
+
enableSaveForLater: boolean;
|
|
11
|
+
showMessage: boolean;
|
|
12
|
+
showUserResponse: boolean;
|
|
13
|
+
showAllResponses: boolean;
|
|
14
|
+
customSubmitLabel: MultilingualString;
|
|
15
|
+
submittedMessage: MultilingualString;
|
|
16
|
+
closedSettings: FormClosedSettings;
|
|
17
|
+
}
|
|
18
|
+
export interface FormClosedSettings {
|
|
19
|
+
showMessage: boolean;
|
|
20
|
+
showUserResponse: boolean;
|
|
21
|
+
showAllResponses: boolean;
|
|
22
|
+
message: MultilingualString;
|
|
23
|
+
}
|
|
24
|
+
export interface FormTemplateRequest {
|
|
25
|
+
baseType: FormTypes;
|
|
26
|
+
title: MultilingualString;
|
|
27
|
+
settings: FormTemplateSettings;
|
|
28
|
+
}
|
|
29
|
+
export interface FormTemplate extends FormTemplateRequest {
|
|
30
|
+
id: number;
|
|
31
|
+
businessProfileId: GuidValue;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
createdBy: Identity;
|
|
34
|
+
modifiedAt: Date;
|
|
35
|
+
modifiedBy: Identity;
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GuidValue, Identity, MultilingualString } from "@omnia/fx-models";
|
|
2
|
+
import { FormTypes } from "./Form";
|
|
3
|
+
export interface FormTypeRequest {
|
|
4
|
+
baseType: FormTypes;
|
|
5
|
+
title: MultilingualString;
|
|
6
|
+
enterprisePropertySetId?: GuidValue;
|
|
7
|
+
formTemplateIds: number[];
|
|
8
|
+
settings: FormTypeSettings;
|
|
9
|
+
}
|
|
10
|
+
export interface FormTypeSettings {
|
|
11
|
+
showFormTemplateSettings: boolean;
|
|
12
|
+
allowMultipleQuestions: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface FormType extends FormTypeRequest {
|
|
15
|
+
id: number;
|
|
16
|
+
businessProfileId: GuidValue;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
createdBy: Identity;
|
|
19
|
+
modifiedAt: Date;
|
|
20
|
+
modifiedBy: Identity;
|
|
21
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { BaseFilterEngineProperty, FilterEngineSettings, GuidValue, MultilingualString, OrderBy, PropertyIndexedType, RollupEnums, RollupFilter, RollupFilterValue, RollupOtherTypes, SpacingSettings, TypedFilterEnginePropertyOutput } from "@omnia/fx-models";
|
|
2
|
+
import { FormStatus } from "../Form";
|
|
3
|
+
import { FormRollupViewComponentSettings } from "./FormRollupBlockViewSettings";
|
|
4
|
+
export declare enum FormQueryScopes {
|
|
5
|
+
Tenant = 1,
|
|
6
|
+
BusinessProfile = 2,
|
|
7
|
+
AppInstance = 3
|
|
8
|
+
}
|
|
9
|
+
export interface FormRollupBlockSettings {
|
|
10
|
+
blockTitle: MultilingualString;
|
|
11
|
+
querySettings: FormRollupBlockQuerySettings;
|
|
12
|
+
displaySettings: FormRollupBlockDisplaySettings;
|
|
13
|
+
pagingSettings: FormRollupPagingSettings;
|
|
14
|
+
filterEngine: FilterEngineSettings;
|
|
15
|
+
}
|
|
16
|
+
export interface FormRollupBlockQuerySettings {
|
|
17
|
+
queryScope: FormQueryScopes;
|
|
18
|
+
sources: Array<FormRollupQuerySource>;
|
|
19
|
+
}
|
|
20
|
+
export type FormRollupFilter = Omit<RollupFilter, "type"> & {
|
|
21
|
+
type: PropertyIndexedType | RollupOtherTypes.TextSearches;
|
|
22
|
+
};
|
|
23
|
+
export interface FormRollupQuerySource {
|
|
24
|
+
filters: Array<FormRollupFilter>;
|
|
25
|
+
}
|
|
26
|
+
export interface TenantScopedQuery extends FormRollupQuerySource {
|
|
27
|
+
}
|
|
28
|
+
export interface BusinessProfileQuery extends FormRollupQuerySource {
|
|
29
|
+
businessProfileId: GuidValue;
|
|
30
|
+
}
|
|
31
|
+
export interface AppInstanceQuery extends FormRollupQuerySource {
|
|
32
|
+
appInstanceId: GuidValue;
|
|
33
|
+
}
|
|
34
|
+
export interface FormRollupBlockDisplaySettings {
|
|
35
|
+
selectedDisplayView: FormRollupViewRegistrationSettings;
|
|
36
|
+
orderBy: OrderBy;
|
|
37
|
+
noResultText?: MultilingualString;
|
|
38
|
+
spacing?: SpacingSettings;
|
|
39
|
+
}
|
|
40
|
+
export interface FormRollupBlockFilterSettings {
|
|
41
|
+
filters: Array<FormRollupFilter>;
|
|
42
|
+
enableWildcardSearch: boolean;
|
|
43
|
+
hideFilterByDefault: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface FormRollupPagingSettings {
|
|
46
|
+
pagingType: RollupEnums.PagingType;
|
|
47
|
+
itemLimit: number;
|
|
48
|
+
}
|
|
49
|
+
export interface FormRollupViewRegistrationSettings {
|
|
50
|
+
viewRegistrationId: GuidValue;
|
|
51
|
+
resultRendererComponentId: GuidValue;
|
|
52
|
+
viewSettings: FormRollupViewComponentSettings;
|
|
53
|
+
}
|
|
54
|
+
export interface FormStatusExtendedPropFilterValue extends RollupFilterValue {
|
|
55
|
+
value: Array<FormStatus>;
|
|
56
|
+
}
|
|
57
|
+
export interface FormScopeFilterEngineProperty extends BaseFilterEngineProperty {
|
|
58
|
+
value: Array<GuidValue>;
|
|
59
|
+
type: PropertyIndexedType.Text;
|
|
60
|
+
showSearchValueBox: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface FormScopeFilterEnginePropertyOutput extends TypedFilterEnginePropertyOutput {
|
|
63
|
+
value: Array<GuidValue>;
|
|
64
|
+
type: PropertyIndexedType.Text;
|
|
65
|
+
}
|
|
66
|
+
export interface FormScopePropFilterValue extends RollupFilterValue {
|
|
67
|
+
value: Array<GuidValue>;
|
|
68
|
+
}
|
|
69
|
+
export interface FormTypePropFilterValue extends RollupFilterValue {
|
|
70
|
+
value: Array<number>;
|
|
71
|
+
}
|
|
72
|
+
export interface FormStatusFilterEngineProperty extends BaseFilterEngineProperty {
|
|
73
|
+
value: Array<FormStatus>;
|
|
74
|
+
type: PropertyIndexedType.Number;
|
|
75
|
+
}
|
|
76
|
+
export interface FormStatusEnginePropertyOutput extends TypedFilterEnginePropertyOutput {
|
|
77
|
+
type: PropertyIndexedType.Number;
|
|
78
|
+
value: Array<FormStatus>;
|
|
79
|
+
sub: FormStatusEnginePropertyOutput[];
|
|
80
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormQueryScopes = void 0;
|
|
4
|
+
var FormQueryScopes;
|
|
5
|
+
(function (FormQueryScopes) {
|
|
6
|
+
FormQueryScopes[FormQueryScopes["Tenant"] = 1] = "Tenant";
|
|
7
|
+
FormQueryScopes[FormQueryScopes["BusinessProfile"] = 2] = "BusinessProfile";
|
|
8
|
+
FormQueryScopes[FormQueryScopes["AppInstance"] = 3] = "AppInstance";
|
|
9
|
+
})(FormQueryScopes = exports.FormQueryScopes || (exports.FormQueryScopes = {}));
|
package/internal-do-not-import-from-here/models/forms/components/FormRollupBlockViewSettings.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EnterprisePropertyDefinition, GuidValue, MultilingualString, PropertyIndexedType, RollupEnums } from "@omnia/fx-models";
|
|
2
|
+
export interface FormRollupViewRegistration {
|
|
3
|
+
id: GuidValue;
|
|
4
|
+
title: string;
|
|
5
|
+
resultRendererComponentId: GuidValue;
|
|
6
|
+
viewSettingsComponentId: GuidValue;
|
|
7
|
+
pagingTypes: Array<RollupEnums.PagingType>;
|
|
8
|
+
}
|
|
9
|
+
export interface IFormRollupViewSettingsComponent<T extends FormRollupViewComponentSettings> {
|
|
10
|
+
viewSettings: T;
|
|
11
|
+
selectableProperties: EnterprisePropertyDefinition[];
|
|
12
|
+
onUpdatedViewSettings?: (viewSettings: T) => void;
|
|
13
|
+
}
|
|
14
|
+
export interface FormRollupViewComponentSettings {
|
|
15
|
+
selectEnterpriseProperties: Array<string>;
|
|
16
|
+
}
|
|
17
|
+
export interface FormRollupViewPropertySettings {
|
|
18
|
+
propertyInternalName: string;
|
|
19
|
+
propertyType?: PropertyIndexedType;
|
|
20
|
+
width?: string;
|
|
21
|
+
isShowHeading?: boolean;
|
|
22
|
+
showCustomLabel?: boolean;
|
|
23
|
+
customLabel?: MultilingualString;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class FormRollupConstants {
|
|
2
|
+
static CustomProperties: {
|
|
3
|
+
TitleAndLink: string;
|
|
4
|
+
Status: string;
|
|
5
|
+
StartDate: string;
|
|
6
|
+
EndDate: string;
|
|
7
|
+
Type: string;
|
|
8
|
+
BusinessProfileScope: string;
|
|
9
|
+
AppInstanceScope: string;
|
|
10
|
+
};
|
|
11
|
+
static ViewRegistration: {
|
|
12
|
+
listView: string;
|
|
13
|
+
formView: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormRollupConstants = void 0;
|
|
4
|
+
class FormRollupConstants {
|
|
5
|
+
}
|
|
6
|
+
exports.FormRollupConstants = FormRollupConstants;
|
|
7
|
+
FormRollupConstants.CustomProperties = {
|
|
8
|
+
TitleAndLink: "titleandlink_c180e07a-0362-4de4-a418-128c3b2b75f5",
|
|
9
|
+
Status: "status_6fcde526-501b-4a6e-aea1-b08022dba59b",
|
|
10
|
+
StartDate: "startdate_469895bb-54b4-434e-b96a-90a0dd7eaa10",
|
|
11
|
+
EndDate: "enddate_44a47f32-6248-4025-9b8c-0df518ec8550",
|
|
12
|
+
Type: "type_63b3e788-f544-4563-bc7a-0793ae5b9d21",
|
|
13
|
+
BusinessProfileScope: "scope_a44b6b5a-534b-4b84-9998-28b227e57ea5",
|
|
14
|
+
AppInstanceScope: "scope_64ef1fa5-c495-44e2-b608-677c5f1a99b1",
|
|
15
|
+
};
|
|
16
|
+
FormRollupConstants.ViewRegistration = {
|
|
17
|
+
listView: "d91762c6-f646-408a-b628-7ef4f2bb2e17",
|
|
18
|
+
formView: "81c3f3f3-f8a9-4c91-8af4-465b9a733d51"
|
|
19
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SpacingSettings } from "@omnia/fx-models";
|
|
2
|
+
import { ITheming } from "@omnia/fx/ux";
|
|
3
|
+
import { types } from "typestyle";
|
|
4
|
+
export declare const FormRollupBlockGeneralTabStyles: {
|
|
5
|
+
filterItemWrapper: types.NestedCSSProperties;
|
|
6
|
+
alignSelfCenter: types.NestedCSSProperties;
|
|
7
|
+
limitWidthInputWrapper: types.NestedCSSProperties;
|
|
8
|
+
resourceHeaderWrapper: types.NestedCSSProperties;
|
|
9
|
+
resourceRemoveAction: types.NestedCSSProperties;
|
|
10
|
+
wordBreak: types.NestedCSSProperties;
|
|
11
|
+
expansionPanel: types.NestedCSSProperties;
|
|
12
|
+
expansionHeader: types.NestedCSSProperties;
|
|
13
|
+
checkboxFilter: types.NestedCSSProperties;
|
|
14
|
+
filterSettings: types.NestedCSSProperties;
|
|
15
|
+
};
|
|
16
|
+
export declare const FormRollupMainRendererStyles: {
|
|
17
|
+
iconStyle?: types.NestedCSSProperties;
|
|
18
|
+
footerWrapper?: (numberOfActionButton: number) => types.NestedCSSProperties;
|
|
19
|
+
label?: types.NestedCSSProperties;
|
|
20
|
+
cardFabIcon?: (theming: ITheming) => types.NestedCSSProperties;
|
|
21
|
+
detail?: types.NestedCSSProperties;
|
|
22
|
+
getPaddingStyle?: (spacing: SpacingSettings, skip?: {
|
|
23
|
+
top?: boolean;
|
|
24
|
+
right?: boolean;
|
|
25
|
+
left?: boolean;
|
|
26
|
+
bottom?: boolean;
|
|
27
|
+
}) => types.NestedCSSProperties;
|
|
28
|
+
queryFailMsgWrapper?: types.NestedCSSProperties;
|
|
29
|
+
transparent?: types.NestedCSSProperties;
|
|
30
|
+
paging?: types.NestedCSSProperties;
|
|
31
|
+
tableWrapper?: types.NestedCSSProperties;
|
|
32
|
+
hideHeaders?: types.NestedCSSProperties;
|
|
33
|
+
fullHeight?: types.NestedCSSProperties;
|
|
34
|
+
};
|
|
35
|
+
export declare const FormDialogStyles: {
|
|
36
|
+
footerWrapper?: types.NestedCSSProperties;
|
|
37
|
+
dialogWrapper?: types.NestedCSSProperties;
|
|
38
|
+
dialogContentWrapper?: types.NestedCSSProperties;
|
|
39
|
+
};
|
|
40
|
+
export declare const formDialogHeaderHeight = 80;
|
|
41
|
+
export declare const formDialogFooterHeight = 46;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formDialogFooterHeight = exports.formDialogHeaderHeight = exports.FormDialogStyles = exports.FormRollupMainRendererStyles = exports.FormRollupBlockGeneralTabStyles = void 0;
|
|
4
|
+
exports.FormRollupBlockGeneralTabStyles = {};
|
|
5
|
+
exports.FormRollupMainRendererStyles = {};
|
|
6
|
+
exports.FormDialogStyles = {};
|
|
7
|
+
exports.formDialogHeaderHeight = 80;
|
|
8
|
+
exports.formDialogFooterHeight = 46;
|
package/internal-do-not-import-from-here/models/forms/components/ListViewComponentSettings.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MultilingualString, PropertyIndexedType, RollupEnums } from "@omnia/fx-models";
|
|
2
|
+
import { FormRollupViewComponentSettings } from "./FormRollupBlockViewSettings";
|
|
3
|
+
export interface ListViewPropertySettings {
|
|
4
|
+
propertyInternalName: string;
|
|
5
|
+
propertyType?: PropertyIndexedType;
|
|
6
|
+
width?: string;
|
|
7
|
+
isShowHeading?: boolean;
|
|
8
|
+
showCustomLabel?: boolean;
|
|
9
|
+
customLabel?: MultilingualString;
|
|
10
|
+
}
|
|
11
|
+
export interface ListViewDateTimePropertySettings extends ListViewPropertySettings {
|
|
12
|
+
dateTimeMode: RollupEnums.DateTimeMode;
|
|
13
|
+
format: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ListViewComponentSettings extends FormRollupViewComponentSettings {
|
|
16
|
+
columns: Array<ListViewPropertySettings>;
|
|
17
|
+
fixedHeader: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./FormRollupBlockSettings"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./FormRollupBlockViewSettings"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./FormRollupConstant"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./FormRollupStyle"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./FormRollupViewRendererComponent"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListViewComponentSettings"), exports);
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export * from "./Form";
|
|
2
2
|
export * from "./FormLayout";
|
|
3
3
|
export * from "./Statistic";
|
|
4
|
+
export * from "./FormTemplate";
|
|
5
|
+
export * from "./FormType";
|
|
6
|
+
export * from "./components";
|
|
7
|
+
export * from "./FormQuery";
|
|
8
|
+
export * from "./FormApi";
|
|
9
|
+
export * from "./FormDialogModel";
|
|
@@ -4,3 +4,9 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./Form"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./FormLayout"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./Statistic"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./FormTemplate"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./FormType"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./components"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./FormQuery"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./FormApi"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./FormDialogModel"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GuidValue, MediaPickerStorageProviderContext } from "@omnia/fx-models";
|
|
2
2
|
declare abstract class MediaPickerProviderStorageWorkplaceContext extends MediaPickerStorageProviderContext {
|
|
3
3
|
readonly omniaServiceId: GuidValue;
|
|
4
4
|
}
|
|
@@ -36,8 +36,10 @@ export declare class MediaPickerStorageProviderWorkplaceTutorialContext extends
|
|
|
36
36
|
}
|
|
37
37
|
export declare class MediaPickerStorageProviderWorkplaceFormContext extends MediaPickerProviderStorageWorkplaceContext {
|
|
38
38
|
readonly storageProviderContextId: GuidValue;
|
|
39
|
-
readonly
|
|
40
|
-
|
|
39
|
+
readonly profileId?: GuidValue;
|
|
40
|
+
readonly appInstanceId?: GuidValue;
|
|
41
|
+
readonly formId?: number;
|
|
42
|
+
constructor(profileId?: GuidValue, appInstanceId?: GuidValue, formId?: number);
|
|
41
43
|
}
|
|
42
44
|
export declare class MediaPickerStorageProviderWorkplacePromotedSearchResultContext extends MediaPickerProviderStorageWorkplaceContext {
|
|
43
45
|
readonly storageProviderContextId: GuidValue;
|
|
@@ -54,10 +54,15 @@ class MediaPickerStorageProviderWorkplaceTutorialContext extends MediaPickerProv
|
|
|
54
54
|
}
|
|
55
55
|
exports.MediaPickerStorageProviderWorkplaceTutorialContext = MediaPickerStorageProviderWorkplaceTutorialContext;
|
|
56
56
|
class MediaPickerStorageProviderWorkplaceFormContext extends MediaPickerProviderStorageWorkplaceContext {
|
|
57
|
-
constructor(formId) {
|
|
57
|
+
constructor(profileId, appInstanceId, formId) {
|
|
58
58
|
super();
|
|
59
59
|
this.storageProviderContextId = new fx_models_1.Guid("9e075b81-cb49-4d9a-ad9b-85edb83f4d4d");
|
|
60
|
-
|
|
60
|
+
if (profileId)
|
|
61
|
+
this.profileId = profileId;
|
|
62
|
+
if (appInstanceId)
|
|
63
|
+
this.appInstanceId = appInstanceId;
|
|
64
|
+
if (formId)
|
|
65
|
+
this.formId = formId;
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
exports.MediaPickerStorageProviderWorkplaceFormContext = MediaPickerStorageProviderWorkplaceFormContext;
|
|
@@ -2,35 +2,34 @@ import { GuidValue, Identity, MultilingualString } from "@omnia/fx/models";
|
|
|
2
2
|
import { SignOffRequestEnums } from "./SignOffRequestEnum";
|
|
3
3
|
import { ISignOffRequestResourceDataSettings } from "./SignOffRequestResource";
|
|
4
4
|
export interface ISignOffRequestUpdatableProperties {
|
|
5
|
-
status: SignOffRequestEnums.SignOffRequestStatus;
|
|
6
|
-
reminderEmails?: Array<string>;
|
|
7
5
|
enterpriseProperties?: {
|
|
8
6
|
[internalName: string]: any;
|
|
9
7
|
};
|
|
8
|
+
title?: MultilingualString;
|
|
9
|
+
description?: MultilingualString;
|
|
10
|
+
signOffType?: SignOffRequestEnums.SignOffType;
|
|
11
|
+
requestedBy?: Array<Identity>;
|
|
12
|
+
requestTo?: Array<Identity>;
|
|
13
|
+
requestToEmails?: Array<string>;
|
|
14
|
+
resources?: Array<ISignOffRequestResourceDataSettings>;
|
|
15
|
+
scheduledAt?: Date;
|
|
16
|
+
scheduledTimeZone?: string;
|
|
10
17
|
}
|
|
11
18
|
export interface SignOffRequest extends ISignOffRequestUpdatableProperties {
|
|
12
19
|
id: GuidValue;
|
|
13
|
-
|
|
20
|
+
status: SignOffRequestEnums.SignOffRequestStatus;
|
|
14
21
|
typeId: GuidValue;
|
|
15
|
-
description: MultilingualString;
|
|
16
|
-
signOffType: SignOffRequestEnums.SignOffType;
|
|
17
|
-
requestTo: Array<Identity>;
|
|
18
22
|
requestToUsers: Array<Identity>;
|
|
19
|
-
resources: Array<ISignOffRequestResourceDataSettings>;
|
|
20
|
-
requestToEmails: Array<string>;
|
|
21
23
|
expectedResponsesCount?: number;
|
|
22
24
|
responsesCount: number;
|
|
23
25
|
requestToRecipientCount: number;
|
|
24
26
|
signedOffRecipientCount: number;
|
|
25
|
-
requestedBy: Array<Identity>;
|
|
26
27
|
createdAt: Date;
|
|
27
28
|
modifiedAt: Date;
|
|
28
29
|
modifiedBy: string;
|
|
29
30
|
progress: SignOffRequestEnums.SignOffRequestProgress;
|
|
30
|
-
enterpriseProperties: {
|
|
31
|
-
[internalName: string]: any;
|
|
32
|
-
};
|
|
33
31
|
resourceCount: number;
|
|
34
32
|
recipientId: Identity;
|
|
35
33
|
isOwner: boolean;
|
|
34
|
+
reminderEmails?: Array<string>;
|
|
36
35
|
}
|
|
@@ -9,6 +9,7 @@ var SignOffRequestEnums;
|
|
|
9
9
|
SignOffRequestStatus[SignOffRequestStatus["Open"] = 1] = "Open";
|
|
10
10
|
SignOffRequestStatus[SignOffRequestStatus["Closed"] = 2] = "Closed";
|
|
11
11
|
SignOffRequestStatus[SignOffRequestStatus["Error"] = 3] = "Error";
|
|
12
|
+
SignOffRequestStatus[SignOffRequestStatus["Scheduled"] = 4] = "Scheduled";
|
|
12
13
|
})(SignOffRequestStatus = SignOffRequestEnums.SignOffRequestStatus || (SignOffRequestEnums.SignOffRequestStatus = {}));
|
|
13
14
|
let SignOffRequestProgress;
|
|
14
15
|
(function (SignOffRequestProgress) {
|
|
@@ -9,6 +9,7 @@ export declare abstract class SignOffRequestProvider<T extends SignOffResource =
|
|
|
9
9
|
resolveResourceData: (itemId: string) => Promise<SignOffRequestResourceDetail>;
|
|
10
10
|
resolveToken: (tokenField: string, itemId: string) => string;
|
|
11
11
|
ensureItemsLoaded: (itemIds: string[]) => Promise<void>;
|
|
12
|
+
ensureResourcesLoaded: (resources: Array<ISignOffRequestResource>) => Promise<Array<ISignOffRequestResource>>;
|
|
12
13
|
onSelectResource?: (resource: Array<ISignOffRequestResource>) => void;
|
|
13
14
|
getDefaultResources(): Array<ISignOffRequestResource>;
|
|
14
15
|
isEnabled(settings: ActionButtonSignOffRequestSettings): Promise<boolean>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { GuidValue, Identity, MultilingualString } from "@omnia/fx/models";
|
|
2
|
+
import { RecurrenceSettings } from "../../../models/shared";
|
|
3
|
+
import { SignOffRequestEnums } from "./SignOffRequestEnum";
|
|
4
|
+
import { ISignOffRequestResourceDataSettings } from "./SignOffRequestResource";
|
|
5
|
+
export interface SignOffRequestRecurrence extends SignOffRequestRecurrenceCreation {
|
|
6
|
+
id: GuidValue;
|
|
7
|
+
nextRequestDate?: Date;
|
|
8
|
+
createdAt?: Date;
|
|
9
|
+
modifiedAt?: Date;
|
|
10
|
+
modifiedBy?: Identity;
|
|
11
|
+
}
|
|
12
|
+
export interface SignOffRequestRecurrenceUpdatableProperties {
|
|
13
|
+
requestTitle?: MultilingualString;
|
|
14
|
+
requestDescription?: MultilingualString;
|
|
15
|
+
signOffType?: SignOffRequestEnums.SignOffType;
|
|
16
|
+
requestedBy?: Array<Identity>;
|
|
17
|
+
requestTo?: Array<Identity>;
|
|
18
|
+
requestToEmails?: Array<string>;
|
|
19
|
+
resources?: Array<ISignOffRequestResourceDataSettings>;
|
|
20
|
+
enterpriseProperties?: {
|
|
21
|
+
[internalName: string]: any;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface SignOffRequestRecurrenceCreation extends SignOffRequestRecurrenceUpdatableProperties {
|
|
25
|
+
name: MultilingualString;
|
|
26
|
+
templateId: GuidValue;
|
|
27
|
+
typeId: GuidValue;
|
|
28
|
+
recurrenceSetting: RecurrenceTimeZoneSetting;
|
|
29
|
+
}
|
|
30
|
+
export interface RecurrenceTimeZoneSetting extends RecurrenceSettings {
|
|
31
|
+
hour: number;
|
|
32
|
+
minute: number;
|
|
33
|
+
timeZoneId: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const RecurringRequestProgressStatus: {
|
|
36
|
+
Success: number;
|
|
37
|
+
Failed: number;
|
|
38
|
+
};
|