@docsvision/webclient 5.17.6 → 5.17.8-beta.1
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/Account/LoginLogic.d.ts +2 -0
- package/BackOffice/Address.stories.d.ts +66 -0
- package/BackOffice/AddressLabel.stories.d.ts +30 -0
- package/BackOffice/AddressOldStyles.stories.d.ts +19 -0
- package/BackOffice/AddressStoriesData.d.ts +21 -0
- package/BackOffice/CardKind.stories.d.ts +46 -0
- package/BackOffice/CardKindImpl.d.ts +1 -1
- package/BackOffice/CardKindLabel.stories.d.ts +28 -0
- package/BackOffice/CardKindStoriesData.d.ts +44 -0
- package/BackOffice/CardKindTree.d.ts +1 -1
- package/BackOffice/CommandMenuComponent.d.ts +1 -1
- package/BackOffice/Comments.d.ts +2 -0
- package/BackOffice/Comments.stories.d.ts +20 -0
- package/BackOffice/CommentsImpl.d.ts +0 -1
- package/BackOffice/CommentsOldStyle.stories.d.ts +5 -0
- package/BackOffice/CommentsStoriesData.d.ts +8 -0
- package/BackOffice/CreateRelatedCardButton.stories.d.ts +165 -0
- package/BackOffice/CreateRelatedCardButtonOldStyles.stories.d.ts +21 -0
- package/BackOffice/CreateRelatedCardButtonStoriesData.d.ts +22 -0
- package/BackOffice/DelegateBatchOperation.stories.d.ts +58 -0
- package/BackOffice/DelegateBatchOperationStoriesData.d.ts +15 -0
- package/BackOffice/DeleteShortcutBatchOperation.stories.d.ts +48 -0
- package/BackOffice/DeleteShortcutBatchOperationStoriesData.d.ts +12 -0
- package/BackOffice/Department.stories.d.ts +117 -0
- package/BackOffice/DepartmentLabel.stories.d.ts +32 -0
- package/BackOffice/DepartmentOldStyles.stories.d.ts +24 -0
- package/BackOffice/DepartmentStoriesData.d.ts +88 -0
- package/BackOffice/DirectoryDesignerRow.stories.d.ts +92 -0
- package/BackOffice/DirectoryDesignerRowImpl.d.ts +3 -2
- package/BackOffice/DirectoryDesignerRowLabel.stories.d.ts +21 -0
- package/BackOffice/DirectoryDesignerRowOldStyles.stories.d.ts +18 -0
- package/BackOffice/DirectoryDesignerRowStoriesData.d.ts +14 -0
- package/BackOffice/DisplayInitiator.stories.d.ts +31 -0
- package/BackOffice/DisplayInitiatorLabel.stories.d.ts +44 -0
- package/BackOffice/DisplayInitiatorStoriesData.d.ts +34 -0
- package/BackOffice/DisplayPerformers.stories.d.ts +132 -0
- package/BackOffice/DisplayPerformersImpl.d.ts +1 -1
- package/BackOffice/DisplayPerformersLabel.stories.d.ts +48 -0
- package/BackOffice/DisplayPerformersStoriesData.d.ts +71 -0
- package/BackOffice/Employee.stories.d.ts +34 -0
- package/BackOffice/EmployeeLegacy.stories.d.ts +27 -0
- package/BackOffice/EmployeeStoriesData.d.ts +16 -0
- package/BackOffice/FileListControl.stories.d.ts +443 -0
- package/BackOffice/FileListControlOldStyles.stories.d.ts +214 -0
- package/BackOffice/FileListControlStoriesData.d.ts +161 -0
- package/BackOffice/FileSignListDialog.d.ts +2 -2
- package/BackOffice/GroupTaskCardSelectPerformers.stories.d.ts +55 -0
- package/BackOffice/GroupTaskCardSelectPerformersOldStyles.stories.d.ts +19 -0
- package/BackOffice/GroupTaskCardSelectPerformersStoriesData.d.ts +13 -0
- package/BackOffice/History.stories.d.ts +35 -0
- package/BackOffice/HistoryOldStyle.stories.d.ts +8 -0
- package/BackOffice/HistoryStoriesData.d.ts +45 -0
- package/BackOffice/HistoryStoriesHelpers.d.ts +4 -0
- package/BackOffice/Links.stories.d.ts +137 -0
- package/BackOffice/LinksOldStyles.stories.d.ts +59 -0
- package/BackOffice/LinksStoriesData.d.ts +60 -0
- package/BackOffice/MultipleEmployees.stories.d.ts +78 -0
- package/BackOffice/MultipleEmployeesLabel.stories.d.ts +30 -0
- package/BackOffice/MultipleEmployeesOldStyles.stories.d.ts +28 -0
- package/BackOffice/MultipleEmployeesStoriesData.d.ts +31 -0
- package/BackOffice/Numerator.stories.d.ts +93 -2
- package/BackOffice/NumeratorImpl.d.ts +1 -1
- package/BackOffice/NumeratorLabel.stories.d.ts +31 -0
- package/BackOffice/NumeratorOldStyles.stories.d.ts +27 -0
- package/BackOffice/NumeratorStoriesData.d.ts +23 -0
- package/BackOffice/PartnerBaseImpl.d.ts +5 -1
- package/BackOffice/PartnerImpl.d.ts +2 -1
- package/BackOffice/PowersImpl.d.ts +1 -1
- package/BackOffice/PrintButton.d.ts +1 -1
- package/BackOffice/StaffDirectoryDataVisualiser.d.ts +1 -0
- package/BackOffice/StaffDirectoryItems.stories.d.ts +358 -0
- package/BackOffice/StaffDirectoryItemsImpl.d.ts +1 -1
- package/BackOffice/StaffDirectoryItemsLabel.stories.d.ts +19 -0
- package/BackOffice/StaffDirectoryItemsStoriesData.d.ts +10 -0
- package/BackOffice/StaffDirectorySelectDialog.d.ts +1 -0
- package/BackOffice/StateButtons.stories.d.ts +24 -0
- package/BackOffice/StateButtonsOldStyle.stories.d.ts +7 -0
- package/BackOffice/StateButtonsStoriesData.d.ts +22 -0
- package/BackOffice/StateLabel.stories.d.ts +20 -0
- package/BackOffice/TaskListItemComponent.d.ts +1 -1
- package/BackOffice/Tasks.stories.d.ts +105 -0
- package/BackOffice/TasksStoriesData.d.ts +36 -0
- package/BackOffice/UniquenessCheck.stories.d.ts +40 -0
- package/BackOffice/UniquenessCheckStoriesData.d.ts +24 -0
- package/Generated/DocsVision.WebClient.Models.d.ts +8 -0
- package/Helpers/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/Helpers/Breadcrumbs/BreadcrumbsView.d.ts +1 -0
- package/Helpers/Breadcrumbs/LinkView/LinkItemViewWithSeparator.d.ts +3 -1
- package/Helpers/ComboBox/ComboBoxElement.d.ts +1 -1
- package/Helpers/ComboBox/ComboBoxTitle.d.ts +1 -1
- package/Helpers/CustomTree/CustomTreeNode.d.ts +1 -1
- package/Helpers/DirectorySearchInput.d.ts +4 -1
- package/Helpers/InputMask/InputMaskView.d.ts +1 -1
- package/Helpers/InputMask/components/InputMaskField.d.ts +1 -1
- package/Helpers/LoadingIcon/LoadingIcon.d.ts +1 -0
- package/Helpers/SliderCheckBox/SliderCheckBox.d.ts +1 -1
- package/MainBundle.d.ts +2 -0
- package/Platform/ButtonPositionsSelection.d.ts +1 -1
- package/Platform/CardLinkImpl.d.ts +1 -1
- package/Platform/CommentFileImpl.d.ts +1 -1
- package/Platform/DeleteBatchOperation.stories.d.ts +49 -0
- package/Platform/DeleteBatchOperationStoriesData.d.ts +13 -0
- package/Platform/DownloadFilesBatchOperation.stories.d.ts +50 -0
- package/Platform/DownloadFilesBatchOperationStoriesData.d.ts +16 -0
- package/Platform/FilePreviewImpl.d.ts +1 -1
- package/Platform/FolderViewItemsImpl.d.ts +8 -8
- package/Platform/ListCheckbox.d.ts +1 -1
- package/Platform/MoveShortcutBatchOperation.stories.d.ts +57 -0
- package/Platform/MoveShortcutBatchOperationStoriesData.d.ts +12 -0
- package/Platform/ReadBatchBatchOperation.stories.d.ts +40 -0
- package/Platform/ReadBatchBatchOperationStoriesData.d.ts +13 -0
- package/Platform/ScanDialogService.d.ts +1 -1
- package/Platform/SearchTextInput.d.ts +1 -1
- package/Platform/SettingsPopupLogic.d.ts +1 -1
- package/Platform/TextListInputView.d.ts +2 -2
- package/System/BaseControlImpl.d.ts +1 -1
- package/System/DirectoryBaseImpl.d.ts +1 -0
- package/System/InputBasedControlImpl.d.ts +3 -2
- package/System/LocationContainerControl.d.ts +2 -1
- package/System/LocationContainerControl.stories.d.ts +18 -0
- package/System/LocationContainerControlRealoadLayoutApi.stories.d.ts +20 -0
- package/System/LocationContainerControlStoriesData.d.ts +15 -0
- package/System/ResourcesStub.d.ts +10 -0
- package/System/StringUtils.d.ts +1 -1
- package/package.json +1 -1
- package/Account/AddBackgroundMovementEffect.d.ts +0 -2
package/Account/LoginLogic.d.ts
CHANGED
|
@@ -55,6 +55,8 @@ import("effector").Event<number>;
|
|
|
55
55
|
import("effector").Event<void>;
|
|
56
56
|
$hasLicenseProblem:
|
|
57
57
|
import("effector").Store<boolean>;
|
|
58
|
+
clearUserData:
|
|
59
|
+
import("effector").Event<void>;
|
|
58
60
|
constructor();
|
|
59
61
|
submitForm:
|
|
60
62
|
import("effector").Effect<unknown, any, Error>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Address } from "@docsvision/webclient/BackOffice/Address";
|
|
3
|
+
import { EditMode } from "@docsvision/webclient/System/EditMode";
|
|
4
|
+
import { WithNewStyleLayout } from "Storybook/StorybookUtils/Decorators/LayoutStory";
|
|
5
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
6
|
+
declare const _default: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: typeof Address;
|
|
9
|
+
decorators: (typeof WithNewStyleLayout)[];
|
|
10
|
+
args: {
|
|
11
|
+
placeHolder: string;
|
|
12
|
+
value: {
|
|
13
|
+
addressType: number;
|
|
14
|
+
zipCode: string;
|
|
15
|
+
city: string;
|
|
16
|
+
address: string;
|
|
17
|
+
country: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
render: (args: any) => JSX.Element;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
23
|
+
export declare const Empty: {
|
|
24
|
+
parameters: {
|
|
25
|
+
title: string;
|
|
26
|
+
};
|
|
27
|
+
args: {
|
|
28
|
+
value: any;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const Modal: {
|
|
32
|
+
parameters: {
|
|
33
|
+
title: string;
|
|
34
|
+
};
|
|
35
|
+
args: {
|
|
36
|
+
value: any;
|
|
37
|
+
};
|
|
38
|
+
play: ({ canvasElement }: {
|
|
39
|
+
canvasElement: any;
|
|
40
|
+
}) => Promise<void>;
|
|
41
|
+
};
|
|
42
|
+
export declare const PostAddressMode: {
|
|
43
|
+
parameters: {
|
|
44
|
+
title: string;
|
|
45
|
+
};
|
|
46
|
+
args: {
|
|
47
|
+
addressType: GenModels.AddressTypeModeItems;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const ContactAddressMode: {
|
|
51
|
+
parameters: {
|
|
52
|
+
title: string;
|
|
53
|
+
};
|
|
54
|
+
args: {
|
|
55
|
+
addressType: GenModels.AddressTypeModeItems;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const LegalAddressMode: {
|
|
59
|
+
parameters: {
|
|
60
|
+
title: string;
|
|
61
|
+
};
|
|
62
|
+
args: {
|
|
63
|
+
editMode: EditMode;
|
|
64
|
+
addressType: GenModels.AddressTypeModeItems;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Address } from "@docsvision/webclient/BackOffice/Address";
|
|
2
|
+
import { WithMainStoryLayout } from "Storybook/StorybookUtils/Decorators/CommonStory";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Address;
|
|
6
|
+
args: {
|
|
7
|
+
labelText: string;
|
|
8
|
+
getValue: ({ single }: {
|
|
9
|
+
single: any;
|
|
10
|
+
}) => {
|
|
11
|
+
addressType: number;
|
|
12
|
+
zipCode: string;
|
|
13
|
+
city: string;
|
|
14
|
+
address: string;
|
|
15
|
+
country: string;
|
|
16
|
+
};
|
|
17
|
+
component: typeof Address;
|
|
18
|
+
placeHolder: string;
|
|
19
|
+
value: {
|
|
20
|
+
addressType: number;
|
|
21
|
+
zipCode: string;
|
|
22
|
+
city: string;
|
|
23
|
+
address: string;
|
|
24
|
+
country: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
decorators: (typeof WithMainStoryLayout)[];
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
30
|
+
export * from "../../../../../Storybook/StorybookUtils/LabeledTextUtils/Template/LabeledSingleValueTemplate";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Address } from "@docsvision/webclient/BackOffice/Address";
|
|
2
|
+
import { WithMainStoryLayout } from "Storybook/StorybookUtils/Decorators/CommonStory";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Address;
|
|
6
|
+
decorators: (typeof WithMainStoryLayout)[];
|
|
7
|
+
args: {
|
|
8
|
+
value: {
|
|
9
|
+
addressType: number;
|
|
10
|
+
zipCode: string;
|
|
11
|
+
city: string;
|
|
12
|
+
address: string;
|
|
13
|
+
country: string;
|
|
14
|
+
};
|
|
15
|
+
placeHolder: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
export * from "App/BackOffice/Controls/Address/Stories/Address.stories";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { $DeviceType } from "@docsvision/webclient/StandardServices";
|
|
2
|
+
import { $Layout } from "@docsvision/webclient/System/$Layout";
|
|
3
|
+
import { $EditOperationStore, $LayoutInfo, $CardId } from "@docsvision/webclient/System/LayoutServices";
|
|
4
|
+
export declare function getAddressMockServices(): $LayoutInfo & $CardId & $Layout & $EditOperationStore & $DeviceType;
|
|
5
|
+
export declare function getAddressMockProps(): {
|
|
6
|
+
placeHolder: string;
|
|
7
|
+
value: {
|
|
8
|
+
addressType: number;
|
|
9
|
+
zipCode: string;
|
|
10
|
+
city: string;
|
|
11
|
+
address: string;
|
|
12
|
+
country: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare function getAddressMockValue(): {
|
|
16
|
+
addressType: number;
|
|
17
|
+
zipCode: string;
|
|
18
|
+
city: string;
|
|
19
|
+
address: string;
|
|
20
|
+
country: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WithNewStyleLayout } from "Storybook/StorybookUtils/Decorators/LayoutStory";
|
|
3
|
+
import { CardKind } from "@docsvision/webclient/BackOffice/CardKind";
|
|
4
|
+
import { EditMode } from "@docsvision/webclient/System/EditMode";
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: typeof CardKind;
|
|
8
|
+
decorators: (typeof WithNewStyleLayout)[];
|
|
9
|
+
args: {
|
|
10
|
+
value: {
|
|
11
|
+
cardKindName: string;
|
|
12
|
+
cardKindFullName: string;
|
|
13
|
+
cardKindId: string;
|
|
14
|
+
loadingError: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
render: (args: any) => JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
export declare const Edit: {
|
|
21
|
+
parameters: {
|
|
22
|
+
title: string;
|
|
23
|
+
};
|
|
24
|
+
args: {
|
|
25
|
+
editMode: EditMode;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const View: {
|
|
29
|
+
parameters: {
|
|
30
|
+
title: string;
|
|
31
|
+
};
|
|
32
|
+
args: {
|
|
33
|
+
editMode: EditMode;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const Modal: {
|
|
37
|
+
parameters: {
|
|
38
|
+
title: string;
|
|
39
|
+
};
|
|
40
|
+
args: {
|
|
41
|
+
editMode: EditMode;
|
|
42
|
+
};
|
|
43
|
+
play: ({ canvasElement }: {
|
|
44
|
+
canvasElement: any;
|
|
45
|
+
}) => Promise<void>;
|
|
46
|
+
};
|
|
@@ -49,7 +49,7 @@ export declare class CardKindImpl extends InputBasedControlImpl<GenModels.CardKi
|
|
|
49
49
|
/**
|
|
50
50
|
* Доступен ли вид карточки
|
|
51
51
|
*/
|
|
52
|
-
protected isCardKindAvailable: (cardKind: CardKindTreeNodeModel) => boolean;
|
|
52
|
+
protected isCardKindAvailable: (cardKind: CardKindTreeNodeModel, notAvailableProperty?: "notAvailable" | "notSelectable") => boolean;
|
|
53
53
|
/**
|
|
54
54
|
* При выборе вида в списке с автодополнением
|
|
55
55
|
*/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CardKind } from "@docsvision/webclient/BackOffice/CardKind";
|
|
2
|
+
import { WithMainStoryLayout } from "Storybook/StorybookUtils/Decorators/CommonStory";
|
|
3
|
+
import { AlignmentRight_ViewMode, CutValue_ViewMode, EmptyValue_EditMode_Clicked, EmptyValue_EditMode_Unclicked, LabelWidthBlock_AlignmentRight_ViewMode, LabelWidthBlock_CutValue_ViewMode, LabelWidthBlock_WideBlock_ViewMode, LabelWidthBlock_WrapUnderLabelProperty_ViewMode, NarrowBlock_EditMode, NarrowBlock_ViewMode, WideBlock_EditMode_Clicked, WideBlock_ViewMode, WrapUnderLabelProperty_ViewMode } from "Storybook/StorybookUtils/LabeledTextUtils/Template/LabeledSingleValueTemplate";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof CardKind;
|
|
7
|
+
args: {
|
|
8
|
+
labelText: string;
|
|
9
|
+
getValue: ({ single }: {
|
|
10
|
+
single: any;
|
|
11
|
+
}) => {
|
|
12
|
+
cardKindName: string;
|
|
13
|
+
cardKindFullName: string;
|
|
14
|
+
cardKindId: string;
|
|
15
|
+
loadingError: boolean;
|
|
16
|
+
};
|
|
17
|
+
component: typeof CardKind;
|
|
18
|
+
value: {
|
|
19
|
+
cardKindName: string;
|
|
20
|
+
cardKindFullName: string;
|
|
21
|
+
cardKindId: string;
|
|
22
|
+
loadingError: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
decorators: (typeof WithMainStoryLayout)[];
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
export { WideBlock_EditMode_Clicked, NarrowBlock_EditMode, EmptyValue_EditMode_Unclicked, EmptyValue_EditMode_Clicked, WideBlock_ViewMode, NarrowBlock_ViewMode, CutValue_ViewMode, WrapUnderLabelProperty_ViewMode, AlignmentRight_ViewMode, LabelWidthBlock_WideBlock_ViewMode, LabelWidthBlock_CutValue_ViewMode, LabelWidthBlock_WrapUnderLabelProperty_ViewMode, LabelWidthBlock_AlignmentRight_ViewMode };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { $LayoutCardKindController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
|
+
import { $DeviceType } from "@docsvision/webclient/StandardServices";
|
|
3
|
+
import { $LayoutInfo, $EditOperationStore } from "@docsvision/webclient/System/LayoutServices";
|
|
4
|
+
import { $LabelWidth } from "@docsvision/webclient/System/$LabelWidth";
|
|
5
|
+
export declare function getCardKindMockServices(): $LayoutCardKindController & $LayoutInfo & $EditOperationStore & $LabelWidth & $DeviceType;
|
|
6
|
+
export declare function getCardKindMockProps(): {
|
|
7
|
+
value: {
|
|
8
|
+
cardKindName: string;
|
|
9
|
+
cardKindFullName: string;
|
|
10
|
+
cardKindId: string;
|
|
11
|
+
loadingError: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare function getCardKindMockValue(): {
|
|
15
|
+
cardKindName: string;
|
|
16
|
+
cardKindFullName: string;
|
|
17
|
+
cardKindId: string;
|
|
18
|
+
loadingError: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare function getCardKindMockTree(): {
|
|
21
|
+
cardTypeId: string;
|
|
22
|
+
kindId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
isDefault: boolean;
|
|
25
|
+
notAvailable: boolean;
|
|
26
|
+
notSelectable: boolean;
|
|
27
|
+
kinds: {
|
|
28
|
+
cardTypeId: string;
|
|
29
|
+
kindId: string;
|
|
30
|
+
name: string;
|
|
31
|
+
isDefault: boolean;
|
|
32
|
+
notAvailable: boolean;
|
|
33
|
+
notSelectable: boolean;
|
|
34
|
+
kinds: {
|
|
35
|
+
cardTypeId: string;
|
|
36
|
+
kindId: string;
|
|
37
|
+
name: string;
|
|
38
|
+
isDefault: boolean;
|
|
39
|
+
notAvailable: boolean;
|
|
40
|
+
notSelectable: boolean;
|
|
41
|
+
kinds: any[];
|
|
42
|
+
}[];
|
|
43
|
+
}[];
|
|
44
|
+
}[];
|
|
@@ -11,7 +11,7 @@ export interface ICardKindTreeProps {
|
|
|
11
11
|
activeKindId?: string;
|
|
12
12
|
emptyMessage?: string;
|
|
13
13
|
onCardKindSelected?: (kind: CardKindTreeNodeModel) => void;
|
|
14
|
-
isCardKindAvailable?: (kind: CardKindTreeNodeModel) => boolean;
|
|
14
|
+
isCardKindAvailable?: (kind: CardKindTreeNodeModel, notAvailbaleProperty?: "notAvailable" | "notSelectable") => boolean;
|
|
15
15
|
notAvailableProperty: "notSelectable" | "notAvailable";
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -13,7 +13,7 @@ export declare class CommandMenuComponent extends React.Component<ICommandMenuPr
|
|
|
13
13
|
protected onMenuItemClick(item: GenModels.CreateKindDataModel, ev: React.MouseEvent): void;
|
|
14
14
|
protected getCommandMenuItems(filter: (ICommandMenuItem: any) => boolean): JSX.Element[];
|
|
15
15
|
protected getKindItems(): JSX.Element[];
|
|
16
|
-
protected getTabIndex():
|
|
16
|
+
protected getTabIndex(): 0 | -1;
|
|
17
17
|
protected getTemplates(): JSX.Element[];
|
|
18
18
|
protected attachCommandBarButton(elem: HTMLElement): void;
|
|
19
19
|
render(): JSX.Element;
|
package/BackOffice/Comments.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ export declare class CommentsParams extends BaseControlParams {
|
|
|
52
52
|
useHtml?: boolean;
|
|
53
53
|
/** Редактируется ли комментарий в данный момент. */
|
|
54
54
|
isCommentEditing?: boolean;
|
|
55
|
+
/** Максимальный размер изображения в килобайтах для режима редактирования через HTML. */
|
|
56
|
+
maxImageSize?: number;
|
|
55
57
|
services?: $CommentsController & $CurrentEmployeeId & $CardInfo & $LayoutInfo & $EditOperationStore & $DeviceType & $Locale & $IsIE & $ExperimentalFeature & $LayoutStaffController;
|
|
56
58
|
}
|
|
57
59
|
/** @internal */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { CommentsParams } from "@docsvision/webclient/BackOffice/Comments";
|
|
3
|
+
declare const metaStory: Meta<CommentsParams & {
|
|
4
|
+
customServices?: unknown;
|
|
5
|
+
}>;
|
|
6
|
+
export default metaStory;
|
|
7
|
+
declare type Story = StoryObj<CommentsParams & {
|
|
8
|
+
customServices?: unknown;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const defaultStory: Story;
|
|
11
|
+
export declare const CanComment: Story;
|
|
12
|
+
export declare const CanEditSelf: Story;
|
|
13
|
+
export declare const CanEditAll: Story;
|
|
14
|
+
export declare const SelfCommentEditing: Story;
|
|
15
|
+
export declare const OtherCommentEditing: Story;
|
|
16
|
+
export declare const WithUnvisibleComments: Story;
|
|
17
|
+
export declare const WithotComments: Story;
|
|
18
|
+
export declare const WithPlaceholder: Story;
|
|
19
|
+
export declare const WithPlaceholderAndInputTaping: Story;
|
|
20
|
+
export declare const Hidden: Story;
|
|
@@ -15,7 +15,6 @@ export declare class CommentsImpl extends BaseControlImpl<CommentsParams, Commen
|
|
|
15
15
|
private editInput;
|
|
16
16
|
private htmlEditorHeight;
|
|
17
17
|
private commentBlockWidth;
|
|
18
|
-
private maxImageSize;
|
|
19
18
|
private popoverImageDisplay;
|
|
20
19
|
constructor(props: CommentsParams, state: CommentsState);
|
|
21
20
|
componentDidMount(): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { CommentsParams } from "@docsvision/webclient/BackOffice/Comments";
|
|
3
|
+
declare const metaStory: Meta<CommentsParams>;
|
|
4
|
+
export default metaStory;
|
|
5
|
+
export * from "App/BackOffice/Controls/Comments/Stories/Comments.stories";
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CreateRelatedCardButton } from "@docsvision/webclient/BackOffice/CreateRelatedCardButton";
|
|
3
|
+
import { WithMainStoryLayout } from "Storybook/StorybookUtils/Decorators/CommonStory";
|
|
4
|
+
import { WithExtremelyNarrowBlock, WithMiddleBlock, WithNarrowBlock } from "Storybook/StorybookUtils/Decorators/BlockStory";
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: typeof CreateRelatedCardButton;
|
|
8
|
+
decorators: (typeof WithMainStoryLayout)[];
|
|
9
|
+
args: {
|
|
10
|
+
buttonsLimit: number;
|
|
11
|
+
binding: {
|
|
12
|
+
value: {
|
|
13
|
+
id: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
cardKindId: string;
|
|
16
|
+
cardTypeId: string;
|
|
17
|
+
location: number;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
render: (args: any) => JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
export declare const SingleDefaultButton: {
|
|
25
|
+
parameters: {
|
|
26
|
+
title: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const TextButton: {
|
|
30
|
+
parameters: {
|
|
31
|
+
title: string;
|
|
32
|
+
};
|
|
33
|
+
args: {
|
|
34
|
+
text: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const ButtonGroup: {
|
|
38
|
+
parameters: {
|
|
39
|
+
title: string;
|
|
40
|
+
};
|
|
41
|
+
args: {
|
|
42
|
+
binding: {
|
|
43
|
+
value: {
|
|
44
|
+
id: string;
|
|
45
|
+
displayName: string;
|
|
46
|
+
cardKindId: string;
|
|
47
|
+
cardTypeId: string;
|
|
48
|
+
location: number;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
buttonsLimit: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export declare const ButtonMore: {
|
|
55
|
+
parameters: {
|
|
56
|
+
title: string;
|
|
57
|
+
};
|
|
58
|
+
args: {
|
|
59
|
+
buttonsLimit: number;
|
|
60
|
+
binding: {
|
|
61
|
+
value: {
|
|
62
|
+
id: string;
|
|
63
|
+
displayName: string;
|
|
64
|
+
cardKindId: string;
|
|
65
|
+
cardTypeId: string;
|
|
66
|
+
location: number;
|
|
67
|
+
}[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export declare const ButtonMorePanel: {
|
|
72
|
+
parameters: {
|
|
73
|
+
title: string;
|
|
74
|
+
};
|
|
75
|
+
args: {
|
|
76
|
+
buttonsLimit: number;
|
|
77
|
+
binding: {
|
|
78
|
+
value: {
|
|
79
|
+
id: string;
|
|
80
|
+
displayName: string;
|
|
81
|
+
cardKindId: string;
|
|
82
|
+
cardTypeId: string;
|
|
83
|
+
location: number;
|
|
84
|
+
}[];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
play: ({ canvasElement }: {
|
|
88
|
+
canvasElement: any;
|
|
89
|
+
}) => Promise<void>;
|
|
90
|
+
};
|
|
91
|
+
export declare const HorizontalOrientation: {
|
|
92
|
+
parameters: {
|
|
93
|
+
title: string;
|
|
94
|
+
};
|
|
95
|
+
args: {
|
|
96
|
+
verticalOrientation: boolean;
|
|
97
|
+
binding: {
|
|
98
|
+
value: {
|
|
99
|
+
id: string;
|
|
100
|
+
displayName: string;
|
|
101
|
+
cardKindId: string;
|
|
102
|
+
cardTypeId: string;
|
|
103
|
+
location: number;
|
|
104
|
+
}[];
|
|
105
|
+
};
|
|
106
|
+
buttonsLimit: number;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export declare const HorizontalOrientationMiddleBlock: {
|
|
110
|
+
parameters: {
|
|
111
|
+
title: string;
|
|
112
|
+
};
|
|
113
|
+
decorators: (typeof WithMiddleBlock)[];
|
|
114
|
+
args: {
|
|
115
|
+
verticalOrientation: boolean;
|
|
116
|
+
binding: {
|
|
117
|
+
value: {
|
|
118
|
+
id: string;
|
|
119
|
+
displayName: string;
|
|
120
|
+
cardKindId: string;
|
|
121
|
+
cardTypeId: string;
|
|
122
|
+
location: number;
|
|
123
|
+
}[];
|
|
124
|
+
};
|
|
125
|
+
buttonsLimit: number;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export declare const HorizontalOrientationNarrowBlock: {
|
|
129
|
+
parameters: {
|
|
130
|
+
title: string;
|
|
131
|
+
};
|
|
132
|
+
decorators: (typeof WithNarrowBlock)[];
|
|
133
|
+
args: {
|
|
134
|
+
verticalOrientation: boolean;
|
|
135
|
+
binding: {
|
|
136
|
+
value: {
|
|
137
|
+
id: string;
|
|
138
|
+
displayName: string;
|
|
139
|
+
cardKindId: string;
|
|
140
|
+
cardTypeId: string;
|
|
141
|
+
location: number;
|
|
142
|
+
}[];
|
|
143
|
+
};
|
|
144
|
+
buttonsLimit: number;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export declare const HorizontalOrientationExtremelyNarrowBlock: {
|
|
148
|
+
parameters: {
|
|
149
|
+
title: string;
|
|
150
|
+
};
|
|
151
|
+
decorators: (typeof WithExtremelyNarrowBlock)[];
|
|
152
|
+
args: {
|
|
153
|
+
verticalOrientation: boolean;
|
|
154
|
+
binding: {
|
|
155
|
+
value: {
|
|
156
|
+
id: string;
|
|
157
|
+
displayName: string;
|
|
158
|
+
cardKindId: string;
|
|
159
|
+
cardTypeId: string;
|
|
160
|
+
location: number;
|
|
161
|
+
}[];
|
|
162
|
+
};
|
|
163
|
+
buttonsLimit: number;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CreateRelatedCardButton } from "@docsvision/webclient/BackOffice/CreateRelatedCardButton";
|
|
2
|
+
import { WithMainStoryLayout } from "Storybook/StorybookUtils/Decorators/CommonStory";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CreateRelatedCardButton;
|
|
6
|
+
decorators: (typeof WithMainStoryLayout)[];
|
|
7
|
+
args: {
|
|
8
|
+
buttonsLimit: number;
|
|
9
|
+
binding: {
|
|
10
|
+
value: {
|
|
11
|
+
id: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
cardKindId: string;
|
|
14
|
+
cardTypeId: string;
|
|
15
|
+
location: number;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
export * from "App/BackOffice/Controls/CreateRelatedCardButton/Stories/CreateRelatedCardButton.stories";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { $Layout } from "@docsvision/webclient/System/$Layout";
|
|
2
|
+
import { $Router } from "@docsvision/web/core/routing";
|
|
3
|
+
export declare function getCreateRelatedCardButtonMockServices(): $Router & $Layout;
|
|
4
|
+
export declare function getCreateRelatedCardButtonMockProps(): {
|
|
5
|
+
buttonsLimit: number;
|
|
6
|
+
binding: {
|
|
7
|
+
value: {
|
|
8
|
+
id: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
cardKindId: string;
|
|
11
|
+
cardTypeId: string;
|
|
12
|
+
location: number;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare function getCreateRelatedCardButtonMockModel(): {
|
|
17
|
+
id: string;
|
|
18
|
+
displayName: string;
|
|
19
|
+
cardKindId: string;
|
|
20
|
+
cardTypeId: string;
|
|
21
|
+
location: number;
|
|
22
|
+
}[];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WithNewStyleLayout } from "Storybook/StorybookUtils/Decorators/LayoutStory";
|
|
3
|
+
import { DelegateBatchOperation } from "@docsvision/webclient/BackOffice/DelegateBatchOperation";
|
|
4
|
+
import { WithCancelModalDialogOnUnmount, WithCloseModalSidebarOnUnmount } from "Storybook/StorybookUtils/Decorators/WithCloseModalDialog";
|
|
5
|
+
import { WithTaskFolder } from "Storybook/StorybookUtils/Decorators/WithFolder";
|
|
6
|
+
declare const _default: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: typeof DelegateBatchOperation;
|
|
9
|
+
decorators: (typeof WithNewStyleLayout | typeof WithTaskFolder)[];
|
|
10
|
+
args: {};
|
|
11
|
+
render: (args: any) => JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const Button: {
|
|
15
|
+
parameters: {
|
|
16
|
+
title: string;
|
|
17
|
+
};
|
|
18
|
+
args: {
|
|
19
|
+
buttonText: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const ButtonDisabled: {
|
|
23
|
+
parameters: {
|
|
24
|
+
title: string;
|
|
25
|
+
};
|
|
26
|
+
render: (args: any) => JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
export declare const ChoiceDelegateDialog: {
|
|
29
|
+
parameters: {
|
|
30
|
+
title: string;
|
|
31
|
+
};
|
|
32
|
+
decorators: (typeof WithCloseModalSidebarOnUnmount)[];
|
|
33
|
+
play: ({ canvasElement }: {
|
|
34
|
+
canvasElement: any;
|
|
35
|
+
}) => Promise<void>;
|
|
36
|
+
};
|
|
37
|
+
export declare const ProgressDialog: {
|
|
38
|
+
parameters: {
|
|
39
|
+
title: string;
|
|
40
|
+
};
|
|
41
|
+
decorators: (typeof WithCancelModalDialogOnUnmount)[];
|
|
42
|
+
play: ({ canvasElement }: {
|
|
43
|
+
canvasElement: any;
|
|
44
|
+
}) => Promise<void>;
|
|
45
|
+
afterEach: ({ canvasElement }: {
|
|
46
|
+
canvasElement: any;
|
|
47
|
+
}) => Promise<void>;
|
|
48
|
+
};
|
|
49
|
+
export declare const ProgressDialogWithError: {
|
|
50
|
+
parameters: {
|
|
51
|
+
title: string;
|
|
52
|
+
};
|
|
53
|
+
decorators: (typeof WithCancelModalDialogOnUnmount)[];
|
|
54
|
+
play: ({ canvasElement }: {
|
|
55
|
+
canvasElement: any;
|
|
56
|
+
}) => Promise<void>;
|
|
57
|
+
render: (args: any) => JSX.Element;
|
|
58
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { $EmployeeController, $LayoutStaffController, $LayoutTasksController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
|
+
import { $FolderDataLoading } from "@docsvision/webclient/Platform/$FolderDataLoading";
|
|
3
|
+
import { $FolderGrid } from "@docsvision/webclient/Platform/$FolderGrid";
|
|
4
|
+
import { $BatchOperations } from "@docsvision/webclient/Platform/$BatchOperations";
|
|
5
|
+
import { $BatchOperationsPerformer } from "@docsvision/webclient/Platform/$BatchOperationsPerformer";
|
|
6
|
+
import { $BatchOperationsProgressDialog } from "@docsvision/webclient/Platform/$BatchOperationsProgressDialog";
|
|
7
|
+
import { $TableManagement } from "@docsvision/webclient/Platform/$TableManagement";
|
|
8
|
+
import { $TableMode } from "@docsvision/webclient/Platform/$TableMode";
|
|
9
|
+
import { $TableRowSelection } from "@docsvision/webclient/Platform/$TableRowSelection";
|
|
10
|
+
import { $ApplicationSettings } from "@docsvision/webclient/StandardServices";
|
|
11
|
+
import { $EditOperationStore, $LayoutInfo } from "@docsvision/webclient/System/LayoutServices";
|
|
12
|
+
import { $LocalStorage } from "@docsvision/webclient/System/$LocalStorage";
|
|
13
|
+
import { $Domain } from "@docsvision/web/core/state-management";
|
|
14
|
+
export declare function getDelegateBatchOperationMockServices(): $TableRowSelection & $BatchOperationsPerformer & $TableManagement & $TableMode & $BatchOperations & $ApplicationSettings & $Domain & $LayoutTasksController & $FolderGrid & $FolderDataLoading & $BatchOperationsProgressDialog & $LayoutStaffController & $EditOperationStore & $LayoutInfo & $LocalStorage & $EmployeeController;
|
|
15
|
+
export declare function getDelegateBatchOperationMockProps(): {};
|