@omnia/workplace 8.0.6-dev → 8.0.8-dev
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 +82 -1
- package/internal-do-not-import-from-here/core/loc/powerappLocalize.d.ts +1 -0
- package/internal-do-not-import-from-here/manifests/omnia.workplace.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/models/BusinessProfileSettingsSection.d.ts +3 -0
- package/internal-do-not-import-from-here/models/Constants.d.ts +11 -2
- package/internal-do-not-import-from-here/models/Constants.js +38 -29
- package/internal-do-not-import-from-here/models/EnterpriseGlossary.d.ts +16 -6
- package/internal-do-not-import-from-here/models/EnterpriseGlossaryInformation.d.ts +11 -0
- package/internal-do-not-import-from-here/models/EnterpriseGlossaryInformation.js +2 -0
- package/internal-do-not-import-from-here/models/GovernanceDashboards.d.ts +2 -2
- package/internal-do-not-import-from-here/models/ManifestIds.d.ts +16 -3
- package/internal-do-not-import-from-here/models/ManifestIds.js +16 -3
- package/internal-do-not-import-from-here/models/NotificationPanel.d.ts +3 -3
- package/internal-do-not-import-from-here/models/TaxonomyNavigation.d.ts +3 -3
- package/internal-do-not-import-from-here/models/Workspace.d.ts +2 -2
- package/internal-do-not-import-from-here/models/components/CreateTeamworkBlock.d.ts +2 -2
- package/internal-do-not-import-from-here/models/components/PostsFeedBlock.d.ts +3 -3
- package/internal-do-not-import-from-here/models/components/TeamNewsBlockStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/models/forms/Form.d.ts +48 -25
- package/internal-do-not-import-from-here/models/forms/Form.js +13 -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 +74 -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 +13 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupConstant.js +17 -0
- package/internal-do-not-import-from-here/models/forms/components/FormRollupStyle.d.ts +39 -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/FormViewComponentSettings.d.ts +11 -0
- package/internal-do-not-import-from-here/models/forms/components/FormViewComponentSettings.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 +7 -0
- package/internal-do-not-import-from-here/models/forms/components/index.js +10 -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/index.d.ts +1 -0
- package/internal-do-not-import-from-here/models/index.js +1 -0
- package/internal-do-not-import-from-here/models/myteamcollaboration/TeamCollabrationApp.js +6 -6
- package/internal-do-not-import-from-here/models/qrcode.d.ts +2 -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/SignOffRequestRollupBlockSettings.d.ts +2 -2
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestRollupBlockSettings.js +13 -13
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestTemplate.d.ts +5 -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/styles/AnnouncementStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/models/styles/GovernanceDashboardStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/models/styles/MyLinkStyles.d.ts +6 -6
- package/internal-do-not-import-from-here/models/styles/NotificationPanelStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/models/styles/QrCodeStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/models/styles/SearchStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/models/styles/TargetingPropertyStyles.d.ts +1 -8
- package/internal-do-not-import-from-here/models/styles/TaxonomyNavigationStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/models/teamcollaborationrollup/TeamCollaborationRollupBlock.d.ts +2 -2
- package/internal-do-not-import-from-here/models/teamcollaborationrollup/TeamCollaborationRollupBlockStyles.d.ts +3 -3
- package/internal-do-not-import-from-here/models/teamnewsrollup/TeamNewsRollupSettings.d.ts +2 -2
- package/internal-do-not-import-from-here/services/{FormService.d.ts → form/FormService.d.ts} +6 -3
- package/internal-do-not-import-from-here/services/form/FormTemplateService.d.ts +12 -0
- package/internal-do-not-import-from-here/services/form/FormTypeService.d.ts +11 -0
- package/internal-do-not-import-from-here/services/form/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/LinkHandlerDialogStore.d.ts +4 -4
- package/internal-do-not-import-from-here/stores/SignOffRequestStore.d.ts +1 -0
- package/internal-do-not-import-from-here/stores/{FormStore.d.ts → form/FormStore.d.ts} +8 -6
- package/internal-do-not-import-from-here/stores/form/FormTemplateStore.d.ts +24 -0
- package/internal-do-not-import-from-here/stores/form/FormTypeStore.d.ts +24 -0
- package/internal-do-not-import-from-here/stores/form/index.d.ts +3 -0
- package/internal-do-not-import-from-here/stores/index.d.ts +1 -1
- package/internal-do-not-import-from-here/tooling.output.json +1 -1
- package/internal-do-not-import-from-here/ux/MediaPickerProviderStorageWorkplaceContext.d.ts +3 -1
- package/internal-do-not-import-from-here/wctypings.d.ts +1027 -47
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
|
-
import { MultilingualString,
|
1
|
+
import { MultilingualString, Spacing } from "@omnia/fx-models";
|
2
2
|
export interface CreateTeamworkBlockSettings {
|
3
3
|
appTemplatesToShow?: string[];
|
4
4
|
title: MultilingualString;
|
5
|
-
spacing?:
|
5
|
+
spacing?: Spacing;
|
6
6
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { GuidValue, MultilingualString,
|
1
|
+
import { GuidValue, MultilingualString, Spacing, ThemeDefinitionV2 } from "@omnia/fx/models";
|
2
2
|
export declare enum PostsFeedScopeOption {
|
3
3
|
CurrentApp = 1,
|
4
4
|
CustomScope = 2
|
@@ -11,7 +11,7 @@ export interface PostsFeedAppTemplateScope {
|
|
11
11
|
appDefinitionId?: GuidValue;
|
12
12
|
}
|
13
13
|
export interface PostsFeedBlockSettings {
|
14
|
-
spacing?:
|
14
|
+
spacing?: Spacing;
|
15
15
|
scope: {
|
16
16
|
option: PostsFeedScopeOption;
|
17
17
|
selectedAppDefinitionId?: GuidValue;
|
@@ -24,5 +24,5 @@ export interface PostsFeedBlockSettings {
|
|
24
24
|
allowLikes?: boolean;
|
25
25
|
sortMode?: PostsFeedSortMode;
|
26
26
|
defaultRepliesNumber?: number;
|
27
|
-
cardStyle?:
|
27
|
+
cardStyle?: ThemeDefinitionV2;
|
28
28
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { types } from "typestyle";
|
2
|
-
import {
|
2
|
+
import { Spacing } from "@omnia/fx-models";
|
3
3
|
export declare const TeamNewsBlockStyles: {
|
4
|
-
padding?: (spacing:
|
4
|
+
padding?: (spacing: Spacing) => types.NestedCSSProperties;
|
5
5
|
linkTextDecoration?: types.NestedCSSProperties;
|
6
6
|
background?: types.NestedCSSProperties;
|
7
7
|
itemWrapper?: types.NestedCSSProperties;
|
@@ -1,9 +1,38 @@
|
|
1
|
-
import { BusinessProfileProperty,
|
2
|
-
|
3
|
-
|
1
|
+
import { BusinessProfileProperty, Guid, GuidValue, Identity, Layout, MediaPickerImage, MultilingualString, Spacing } from "@omnia/fx/models";
|
2
|
+
import { FormTemplateSettings } from "./FormTemplate";
|
3
|
+
import { FormQueryScopes } from "./components";
|
4
|
+
export interface FormActionHandlerSettings extends FormBuilderSettings {
|
5
|
+
selectedTypeId: number;
|
6
|
+
scopeType: FormScopeTypes;
|
7
|
+
scopeId: GuidValue;
|
8
|
+
businessProfileId: GuidValue;
|
9
|
+
}
|
10
|
+
export interface FormBuilderSettings {
|
11
|
+
isEditing?: boolean;
|
12
|
+
}
|
13
|
+
export declare const ScopeCurrentId: Guid;
|
14
|
+
export declare enum FormScopeTypes {
|
15
|
+
BusinessProfile = 1,
|
16
|
+
AppInstance = 2
|
17
|
+
}
|
18
|
+
declare const FormBuilderSteps: readonly ["templateSettings", "formQuestions", "formSettings"];
|
19
|
+
export type FormSteps = typeof FormBuilderSteps[number];
|
20
|
+
export interface FormBase {
|
4
21
|
definition: FormDefinition;
|
5
|
-
layout
|
22
|
+
layout?: Layout;
|
23
|
+
formTypeId?: number;
|
24
|
+
formTemplateId?: number;
|
25
|
+
enterpriseProperties?: {
|
26
|
+
[internalName: string]: any;
|
27
|
+
};
|
28
|
+
}
|
29
|
+
export interface CreateFormRequest extends Form {
|
30
|
+
generateLayoutIfEmpty?: boolean;
|
31
|
+
}
|
32
|
+
export interface Form extends FormBase {
|
33
|
+
id?: number;
|
6
34
|
profileId: GuidValue;
|
35
|
+
appInstanceId?: GuidValue;
|
7
36
|
createdAt: string;
|
8
37
|
createdBy: Identity;
|
9
38
|
modifiedAt: string;
|
@@ -24,30 +53,25 @@ export declare enum FormTypes {
|
|
24
53
|
Survey = 2,
|
25
54
|
Checkup = 3
|
26
55
|
}
|
27
|
-
export
|
56
|
+
export declare enum FormStatus {
|
57
|
+
Open = 1,
|
58
|
+
Closed = 2
|
59
|
+
}
|
60
|
+
export interface FormDefinition extends FormTemplateSettings {
|
28
61
|
type: FormTypes;
|
29
62
|
title: MultilingualString;
|
30
|
-
oneResponsePerPerson: boolean;
|
31
|
-
makeResponseAnonymous: boolean;
|
32
|
-
usePoint: boolean;
|
33
|
-
useCorrectAnswer: boolean;
|
34
|
-
enableCheckAnswer: boolean;
|
35
|
-
enableSubmission: boolean;
|
36
|
-
enableSaveForLater: boolean;
|
37
|
-
showMessage: boolean;
|
38
|
-
showUserResponse: boolean;
|
39
|
-
showAllResponses: boolean;
|
40
63
|
questions: Question[];
|
41
|
-
customSubmitLabel: MultilingualString;
|
42
|
-
submittedMessage: MultilingualString;
|
43
64
|
start?: string;
|
44
65
|
end?: string;
|
66
|
+
image?: MediaPickerImage;
|
45
67
|
}
|
46
68
|
export interface FormListing {
|
47
69
|
id: number;
|
48
70
|
title: MultilingualString;
|
49
71
|
start?: string;
|
50
72
|
end?: string;
|
73
|
+
profileId: GuidValue;
|
74
|
+
appInstanceId?: GuidValue;
|
51
75
|
numberOfSubmissions: number;
|
52
76
|
numberOfSubmittedUsers: number;
|
53
77
|
averagePointsBySubmission: number;
|
@@ -116,10 +140,6 @@ export interface UserDefinedOption extends Option {
|
|
116
140
|
type: OptionTypes.UserDefined;
|
117
141
|
value: string;
|
118
142
|
}
|
119
|
-
export interface CreateFormRequest {
|
120
|
-
layout: Layout;
|
121
|
-
definition: FormDefinition;
|
122
|
-
}
|
123
143
|
export interface QueryFormRequest {
|
124
144
|
type?: FormTypes;
|
125
145
|
filterOpenForRespondent?: boolean;
|
@@ -138,7 +158,7 @@ export declare enum LegendPosition {
|
|
138
158
|
export interface QuestionBlockSettings {
|
139
159
|
padding: {
|
140
160
|
inherit: boolean;
|
141
|
-
spacing?:
|
161
|
+
spacing?: Spacing;
|
142
162
|
};
|
143
163
|
}
|
144
164
|
export interface FormRendererBlockSettings {
|
@@ -149,13 +169,16 @@ export interface FormRendererBlockSettings {
|
|
149
169
|
legendAlignment: LegendAlignment;
|
150
170
|
legendPosition: LegendPosition;
|
151
171
|
customShowFormButton: MultilingualString;
|
152
|
-
spacing?:
|
172
|
+
spacing?: Spacing;
|
173
|
+
scopeType?: FormQueryScopes;
|
174
|
+
scopeId?: GuidValue;
|
153
175
|
}
|
154
176
|
export declare class FormGenericSetting extends BusinessProfileProperty {
|
155
177
|
chartColor: ChartColor[];
|
156
178
|
constructor();
|
157
179
|
}
|
158
180
|
export declare class ChartColor {
|
159
|
-
color:
|
160
|
-
textColor:
|
181
|
+
color: string;
|
182
|
+
textColor: string;
|
161
183
|
}
|
184
|
+
export {};
|
@@ -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.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 = 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 = FormTypes = {}));
|
19
|
+
var FormStatus;
|
20
|
+
(function (FormStatus) {
|
21
|
+
FormStatus[FormStatus["Open"] = 1] = "Open";
|
22
|
+
FormStatus[FormStatus["Closed"] = 2] = "Closed";
|
23
|
+
})(FormStatus || (exports.FormStatus = FormStatus = {}));
|
12
24
|
var QuestionTypes;
|
13
25
|
(function (QuestionTypes) {
|
14
26
|
QuestionTypes[QuestionTypes["Text"] = 1] = "Text";
|
@@ -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,74 @@
|
|
1
|
+
import { BaseFilterEngineProperty, FilterEngineSettings, GuidValue, MultilingualString, OrderBy, PropertyIndexedType, RollupEnums, RollupFilter, RollupFilterValue, RollupOtherTypes, Spacing, TypedFilterEnginePropertyOutput } from "@omnia/fx-models";
|
2
|
+
import { FormScopeTypes, 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?: Spacing;
|
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: FormStatus;
|
56
|
+
}
|
57
|
+
export interface FormScopeFilterEngineProperty extends BaseFilterEngineProperty {
|
58
|
+
value: Array<GuidValue>;
|
59
|
+
type: PropertyIndexedType.Text;
|
60
|
+
showSearchValueBox: boolean;
|
61
|
+
scopeType?: FormScopeTypes;
|
62
|
+
}
|
63
|
+
export interface FormScopeFilterEnginePropertyOutput extends TypedFilterEnginePropertyOutput {
|
64
|
+
value: Array<GuidValue>;
|
65
|
+
scopeType?: FormScopeTypes;
|
66
|
+
type: PropertyIndexedType.Text;
|
67
|
+
}
|
68
|
+
export interface FormScopePropFilterValue extends RollupFilterValue {
|
69
|
+
value: Array<GuidValue>;
|
70
|
+
scopeType: FormScopeTypes;
|
71
|
+
}
|
72
|
+
export interface FormTypePropFilterValue extends RollupFilterValue {
|
73
|
+
value: Array<number>;
|
74
|
+
}
|
@@ -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 = 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,13 @@
|
|
1
|
+
export declare class FormRollupConstants {
|
2
|
+
static CustomProperties: {
|
3
|
+
TitleAndLink: string;
|
4
|
+
Status: string;
|
5
|
+
StartDate: string;
|
6
|
+
EndDate: string;
|
7
|
+
Type: string;
|
8
|
+
};
|
9
|
+
static ViewRegistration: {
|
10
|
+
listView: string;
|
11
|
+
formView: string;
|
12
|
+
};
|
13
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FormRollupConstants = void 0;
|
4
|
+
class FormRollupConstants {
|
5
|
+
static { this.CustomProperties = {
|
6
|
+
TitleAndLink: "titleandlink_c180e07a-0362-4de4-a418-128c3b2b75f5",
|
7
|
+
Status: "status_6fcde526-501b-4a6e-aea1-b08022dba59b",
|
8
|
+
StartDate: "startdate_469895bb-54b4-434e-b96a-90a0dd7eaa10",
|
9
|
+
EndDate: "enddate_44a47f32-6248-4025-9b8c-0df518ec8550",
|
10
|
+
Type: "type_63b3e788-f544-4563-bc7a-0793ae5b9d21",
|
11
|
+
}; }
|
12
|
+
static { this.ViewRegistration = {
|
13
|
+
listView: "d91762c6-f646-408a-b628-7ef4f2bb2e17",
|
14
|
+
formView: "81c3f3f3-f8a9-4c91-8af4-465b9a733d51"
|
15
|
+
}; }
|
16
|
+
}
|
17
|
+
exports.FormRollupConstants = FormRollupConstants;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { ITheming } from "@omnia/fx/ux";
|
2
|
+
import { types } from "typestyle";
|
3
|
+
export declare const FormRollupBlockGeneralTabStyles: {
|
4
|
+
filterItemWrapper: types.NestedCSSProperties;
|
5
|
+
alignSelfCenter: types.NestedCSSProperties;
|
6
|
+
limitWidthInputWrapper: types.NestedCSSProperties;
|
7
|
+
resourceHeaderWrapper: types.NestedCSSProperties;
|
8
|
+
resourceRemoveAction: types.NestedCSSProperties;
|
9
|
+
wordBreak: types.NestedCSSProperties;
|
10
|
+
expansionPanel: types.NestedCSSProperties;
|
11
|
+
expansionHeader: types.NestedCSSProperties;
|
12
|
+
checkboxFilter: types.NestedCSSProperties;
|
13
|
+
filterSettings: types.NestedCSSProperties;
|
14
|
+
};
|
15
|
+
export declare const FormRollupMainRendererStyles: {
|
16
|
+
iconStyle?: types.NestedCSSProperties;
|
17
|
+
footerWrapper?: (numberOfActionButton: number) => types.NestedCSSProperties;
|
18
|
+
label?: types.NestedCSSProperties;
|
19
|
+
cardFabIcon?: (theming: ITheming) => types.NestedCSSProperties;
|
20
|
+
detail?: types.NestedCSSProperties;
|
21
|
+
getPaddingStyle?: (skip?: {
|
22
|
+
top?: boolean;
|
23
|
+
right?: boolean;
|
24
|
+
left?: boolean;
|
25
|
+
bottom?: boolean;
|
26
|
+
}) => types.NestedCSSProperties;
|
27
|
+
queryFailMsgWrapper?: types.NestedCSSProperties;
|
28
|
+
transparent?: types.NestedCSSProperties;
|
29
|
+
paging?: types.NestedCSSProperties;
|
30
|
+
tableWrapper?: types.NestedCSSProperties;
|
31
|
+
hideHeaders?: types.NestedCSSProperties;
|
32
|
+
fullHeight?: types.NestedCSSProperties;
|
33
|
+
};
|
34
|
+
export declare const FormDialogStyles: {
|
35
|
+
overlayImageEditButton?: types.NestedCSSProperties;
|
36
|
+
flexCenterAligned?: types.NestedCSSProperties;
|
37
|
+
};
|
38
|
+
export declare const formDialogHeaderHeight = 80;
|
39
|
+
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/FormViewComponentSettings.d.ts
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
import { MultilingualString, Spacing } from "@omnia/fx-models";
|
2
|
+
import { LegendAlignment, LegendPosition } from "../Form";
|
3
|
+
import { FormRollupViewComponentSettings } from "./FormRollupBlockViewSettings";
|
4
|
+
export interface FormViewComponentSettings extends FormRollupViewComponentSettings {
|
5
|
+
useDialog: boolean;
|
6
|
+
showFormTitle: boolean;
|
7
|
+
legendAlignment: LegendAlignment;
|
8
|
+
legendPosition: LegendPosition;
|
9
|
+
customShowFormButton: MultilingualString;
|
10
|
+
spacing?: Spacing;
|
11
|
+
}
|
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,7 @@
|
|
1
|
+
export * from "./FormRollupBlockSettings";
|
2
|
+
export * from "./FormRollupStyle";
|
3
|
+
export * from "./FormRollupBlockViewSettings";
|
4
|
+
export * from "./FormRollupViewRendererComponent";
|
5
|
+
export * from "./FormRollupConstant";
|
6
|
+
export * from "./FormViewComponentSettings";
|
7
|
+
export * from "./ListViewComponentSettings";
|
@@ -0,0 +1,10 @@
|
|
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("./FormRollupStyle"), exports);
|
6
|
+
tslib_1.__exportStar(require("./FormRollupBlockViewSettings"), exports);
|
7
|
+
tslib_1.__exportStar(require("./FormRollupViewRendererComponent"), exports);
|
8
|
+
tslib_1.__exportStar(require("./FormRollupConstant"), exports);
|
9
|
+
tslib_1.__exportStar(require("./FormViewComponentSettings"), exports);
|
10
|
+
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);
|
@@ -40,6 +40,7 @@ export * from "./BusinessProfileAppProvisioning";
|
|
40
40
|
export * from "./FollowedsitesUpdatedAtUserPropertyBag";
|
41
41
|
export * from "./AppAuthenticationOptions";
|
42
42
|
export * from "./CompactHeaderRegistration";
|
43
|
+
export * from "./EnterpriseGlossaryInformation";
|
43
44
|
export * from "./apps";
|
44
45
|
export * from "./teamnewsrollup";
|
45
46
|
export * from "./siteproperties";
|
@@ -44,6 +44,7 @@ tslib_1.__exportStar(require("./BusinessProfileAppProvisioning"), exports);
|
|
44
44
|
tslib_1.__exportStar(require("./FollowedsitesUpdatedAtUserPropertyBag"), exports);
|
45
45
|
tslib_1.__exportStar(require("./AppAuthenticationOptions"), exports);
|
46
46
|
tslib_1.__exportStar(require("./CompactHeaderRegistration"), exports);
|
47
|
+
tslib_1.__exportStar(require("./EnterpriseGlossaryInformation"), exports);
|
47
48
|
tslib_1.__exportStar(require("./apps"), exports);
|
48
49
|
tslib_1.__exportStar(require("./teamnewsrollup"), exports);
|
49
50
|
tslib_1.__exportStar(require("./siteproperties"), exports);
|