@docsvision/webclient 5.17.0-beta.14 → 5.17.0-beta.15
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/BackOffice/$CloudSignature.d.ts +34 -0
- package/BackOffice/$CryptoPro.d.ts +10 -0
- package/BackOffice/$DigitalSignature.d.ts +75 -0
- package/BackOffice/ActualizeProfileCertificateSource.d.ts +13 -0
- package/BackOffice/{BackOfficeLayoutContextContstants.d.ts → BackOfficeLayoutContextConstants.d.ts} +0 -0
- package/BackOffice/CardKindImpl.d.ts +1 -0
- package/BackOffice/CardKindTreeNode.d.ts +1 -1
- package/BackOffice/ChildTasksPerformingImpl.d.ts +3 -3
- package/BackOffice/ConvertCloudToSavedCertificate.d.ts +4 -0
- package/BackOffice/ConvertLocalToSavedCertificate.d.ts +4 -0
- package/BackOffice/ConvertSignLabelsToComboBoxItems.d.ts +15 -0
- package/BackOffice/CryptoProDssService.d.ts +65 -0
- package/BackOffice/CryptoProService.d.ts +10 -0
- package/BackOffice/{BatchDelegateOperation.d.ts → DelegateBatchOperation.d.ts} +5 -5
- package/BackOffice/{BatchDelegateOperationImpl.d.ts → DelegateBatchOperationImpl.d.ts} +3 -3
- package/BackOffice/DelegationParamsPanel.d.ts +1 -1
- package/BackOffice/DepartmentFilterViewComponents.d.ts +1 -1
- package/BackOffice/DigitalSignatureService.d.ts +38 -0
- package/BackOffice/DirectoryDesRowSelectDialog.d.ts +78 -0
- package/BackOffice/DirectoryDesignerActionButton.d.ts +7 -0
- package/BackOffice/DirectoryDesignerItemCreateWindow.d.ts +4 -0
- package/BackOffice/DirectoryDesignerItemEditWindow.d.ts +4 -0
- package/BackOffice/DirectoryDesignerItemViewWindow.d.ts +8 -0
- package/BackOffice/DirectoryDesignerRow.d.ts +29 -15
- package/BackOffice/DirectoryDesignerRowConstants.d.ts +3 -0
- package/BackOffice/DirectoryDesignerRowImpl.d.ts +42 -29
- package/BackOffice/DirectoryDesignerRowItemVisualiser.d.ts +9 -0
- package/BackOffice/DirectoryDesignerTypeaheadVariant.d.ts +6 -2
- package/BackOffice/DirectorySearchContent.d.ts +1 -1
- package/BackOffice/DirectorySearchResultView.d.ts +2 -2
- package/BackOffice/DssAuthorizationModels.d.ts +6 -0
- package/BackOffice/DssCertificateModels.d.ts +30 -0
- package/BackOffice/DssPolicyModels.d.ts +51 -0
- package/BackOffice/DssSignRequestModels.d.ts +133 -0
- package/BackOffice/EmailButtonView.d.ts +2 -2
- package/BackOffice/ExistingCardLinkDialog.d.ts +1 -1
- package/BackOffice/FileListControl.d.ts +10 -3
- package/BackOffice/FileListControlImpl.d.ts +5 -0
- package/BackOffice/FileListControlLogic.d.ts +2 -1
- package/BackOffice/FileListItemComponent.d.ts +1 -1
- package/BackOffice/FileListItemProps.d.ts +2 -1
- package/BackOffice/FileSign.d.ts +12 -39
- package/BackOffice/FileSignListDialog.d.ts +7 -2
- package/BackOffice/GetSignatureMethodName.d.ts +4 -0
- package/BackOffice/HistoryView.d.ts +1 -1
- package/BackOffice/ICertificateStatus.d.ts +6 -0
- package/BackOffice/IDocumentInfoAdditionalInfoResult.d.ts +4 -0
- package/BackOffice/IDssCertificateInfoEx.d.ts +4 -0
- package/BackOffice/IFileSignInteractionModel.d.ts +8 -3
- package/BackOffice/IGetCertificateResult.d.ts +33 -0
- package/BackOffice/IGetDocumentInfoResult.d.ts +14 -0
- package/BackOffice/ISignOptions.d.ts +8 -0
- package/BackOffice/ISignRequest.d.ts +9 -0
- package/BackOffice/ISignResult.d.ts +5 -0
- package/BackOffice/ISignatureVerificationResult.d.ts +4 -0
- package/BackOffice/LoadCertificatesThumberprints.d.ts +9 -0
- package/BackOffice/LoadCloudCertificates.d.ts +4 -0
- package/BackOffice/LoadSignatureMethods.d.ts +2 -0
- package/BackOffice/LoadSystemCertificates.d.ts +4 -0
- package/BackOffice/NumeratorImpl.d.ts +1 -0
- package/BackOffice/PartnerBase.d.ts +2 -2
- package/BackOffice/PartnerDirectoryBase.d.ts +3 -3
- package/BackOffice/PrepareSignatureMethodsComboBox.d.ts +7 -0
- package/BackOffice/PrintButtonView.d.ts +1 -1
- package/BackOffice/ProcessSettingsChanged.d.ts +11 -0
- package/BackOffice/SignatureButton.d.ts +36 -0
- package/BackOffice/SignatureButton.stories.d.ts +10 -0
- package/BackOffice/SignatureButtonComponent.d.ts +7 -0
- package/BackOffice/SignatureButtonContainer.d.ts +7 -0
- package/BackOffice/SignatureButtonLogic.d.ts +27 -0
- package/BackOffice/SignatureButtonMenu.d.ts +6 -0
- package/BackOffice/SignatureButtonMenuItem.d.ts +6 -0
- package/BackOffice/SignatureButtonOptions.d.ts +51 -0
- package/BackOffice/SignatureButtonView.d.ts +10 -0
- package/BackOffice/SignatureConstants.d.ts +1 -0
- package/BackOffice/SignatureDialog.d.ts +50 -0
- package/BackOffice/SignatureDialog.stories.d.ts +12 -0
- package/BackOffice/SignatureDialogFrame.d.ts +13 -0
- package/BackOffice/SignatureDialogLabels.d.ts +9 -0
- package/BackOffice/SignatureDialogLoader.d.ts +3 -0
- package/BackOffice/SignatureDialogLogic.d.ts +60 -0
- package/BackOffice/SignatureDialogMethods.d.ts +10 -0
- package/BackOffice/SignatureDialogNoPluginMessage.d.ts +6 -0
- package/BackOffice/SignatureDialogSettings.d.ts +20 -0
- package/BackOffice/SignatureMethodsSetup.d.ts +40 -0
- package/BackOffice/SignatureMethodsSetup.stories.d.ts +14 -0
- package/BackOffice/SignatureMethodsSetupCertificateRow.d.ts +14 -0
- package/BackOffice/SignatureMethodsSetupCertificateTable.d.ts +12 -0
- package/BackOffice/SignatureMethodsSetupCertificatesTableLoader.d.ts +3 -0
- package/BackOffice/SignatureMethodsSetupCloudLogin.d.ts +13 -0
- package/BackOffice/SignatureMethodsSetupFrame.d.ts +9 -0
- package/BackOffice/SignatureMethodsSetupLogic.d.ts +77 -0
- package/BackOffice/SignatureMethodsSetupNoPluginMessage.d.ts +7 -0
- package/BackOffice/SignatureMethodsSetupSelectedMethodsLoader.d.ts +3 -0
- package/BackOffice/SignatureMethodsSetupTabType.d.ts +4 -0
- package/BackOffice/StaffDirectoryItems.d.ts +1 -1
- package/BackOffice/StaffDirectoryItemsImpl.d.ts +7 -3
- package/BackOffice/SvsVerifyModels.d.ts +20 -0
- package/BackOffice/TasksTableView.d.ts +3 -3
- package/BackOffice/{TasksUtills.d.ts → TasksUtils.d.ts} +0 -0
- package/BackOffice/ToggleCertificateSelection.d.ts +2 -0
- package/BackOffice/UpdateMethodComment.d.ts +2 -0
- package/BackOffice/Utils.d.ts +3 -0
- package/BackOffice/WebFrameDirectorySearchPanelView.d.ts +1 -1
- package/Generated/DocsVision.WebClient.Controllers.d.ts +166 -2
- package/Generated/DocsVision.WebClient.Models.d.ts +1081 -217
- package/Helpers/ArtPlayer/ArtPlayer.d.ts +26 -0
- package/Helpers/ArtPlayer/ArtPlayer.stories.d.ts +10 -0
- package/Helpers/ArtPlayer/ArtPlayerLogic.d.ts +31 -0
- package/Helpers/ArtPlayer/ArtPlayerView.d.ts +13 -0
- package/Helpers/ArtPlayer/components/ArtPlayerContainer.d.ts +5 -0
- package/Helpers/ArtPlayer/components/ArtPlayerTimeCodes.d.ts +10 -0
- package/Helpers/ArtPlayer/components/ArtPlayerVideoPlayer.d.ts +7 -0
- package/Helpers/ArtPlayer/functions/LoadArtPlayer.d.ts +5 -0
- package/Helpers/ArtPlayer/functions/SetCurrentTimeCode.d.ts +7 -0
- package/Helpers/ArtPlayer/functions/SetPlayerLocalization.d.ts +7 -0
- package/Helpers/ArtPlayer/functions/SortingTimeCodes.d.ts +7 -0
- package/Helpers/ArtPlayer/functions/UpdatePlayerTime.d.ts +8 -0
- package/Helpers/ArtPlayer/models/IArtPlayer.d.ts +597 -0
- package/Helpers/ArtPlayer/models/IArtPlayerTImeCode.d.ts +6 -0
- package/Helpers/ModalDialog/CommonModalDialog.d.ts +2 -1
- package/Helpers/ModalDialog/CommonModalDialogHost.d.ts +3 -3
- package/Helpers/ReactList/ReactListDynamic.d.ts +1 -0
- package/Helpers/Sortable/Data/ClientModels/ISortableItem.d.ts +7 -1
- package/Helpers/Sortable/Sortable.d.ts +13 -3
- package/Helpers/TextInput.d.ts +2 -0
- package/Helpers/TextInputDialog/Components/TextInputDialogFrame.d.ts +8 -0
- package/Helpers/TextInputDialog/Components/TextInputDialogModal.d.ts +10 -0
- package/Helpers/TextInputDialog/TextInputDialog.d.ts +25 -0
- package/Helpers/TextInputDialog/TextInputDialog.stories.d.ts +8 -0
- package/Helpers/TextInputDialog/TextInputDialogHost.d.ts +14 -0
- package/Legacy/BasicGridHtmlBuilder.d.ts +1 -1
- package/Legacy/ILabelTextareaControl.d.ts +1 -1
- package/Legacy/ISignatureDataModel.d.ts +2 -0
- package/Legacy/ISignatureListDataModel.d.ts +1 -1
- package/Legacy/ISignatureListItemDataModel.d.ts +6 -15
- package/Legacy/ISignatureListItemDetailDataModel.d.ts +8 -19
- package/Legacy/ISignatureVerificationDataModel.d.ts +4 -4
- package/Legacy/{ITextareaConrtol.d.ts → ITextareaControl.d.ts} +0 -0
- package/Legacy/LabelTextareaControl.d.ts +1 -1
- package/Legacy/NativeFunctions.d.ts +1 -20
- package/Legacy/StandardControllers.d.ts +2 -2
- package/Legacy/TaskCardFilePanelRazorControl.d.ts +1 -0
- package/Legacy/TextareaControl.d.ts +1 -1
- package/Legacy/Utils.d.ts +7 -0
- package/MainBundle.d.ts +1 -0
- package/Platform/$AggregatesCheckbox.d.ts +1 -0
- package/Platform/$EmployeeStatus.d.ts +6 -2
- package/Platform/$FolderHelp.d.ts +13 -0
- package/Platform/{AcesssInheritanceButtons.d.ts → AccessInheritanceButtons.d.ts} +2 -2
- package/Platform/AggregatesApplyButtonPanel.d.ts +9 -0
- package/Platform/AggregatesCheckbox.d.ts +7 -3
- package/Platform/AggregatesCheckboxPlugins.d.ts +1 -0
- package/Platform/AggregatesCheckboxService.d.ts +17 -6
- package/Platform/BaseMainMenuItemImpl.d.ts +2 -2
- package/Platform/BatchOperationsPlugin.d.ts +1 -1
- package/Platform/BottomEdge.d.ts +10 -0
- package/Platform/BottomEdgeBody.d.ts +4 -0
- package/Platform/BottomEdgePlugin.d.ts +4 -0
- package/Platform/CardLink.d.ts +2 -1
- package/Platform/CardManagement.d.ts +5 -1
- package/Platform/CardManagementImpl.d.ts +5 -3
- package/Platform/CardQuotesDataStub.d.ts +19 -0
- package/Platform/CertificateSettings.d.ts +40 -0
- package/Platform/CertificateSettingsContainer.d.ts +10 -0
- package/Platform/CertificateSettingsLogic.d.ts +24 -0
- package/Platform/CertificateSettingsView.d.ts +5 -0
- package/Platform/DateTimePickerImpl.d.ts +1 -0
- package/Platform/DownloadFilesBatchOperation.d.ts +2 -1
- package/Platform/DropdownImpl.d.ts +3 -1
- package/Platform/EmployeeStatusService.d.ts +4 -4
- package/Platform/Favorite.d.ts +1 -0
- package/Platform/FilePicker.d.ts +2 -2
- package/Platform/FilePreview.d.ts +2 -2
- package/Platform/FilePreviewImpl.d.ts +1 -0
- package/Platform/FolderGrid.d.ts +1 -1
- package/Platform/FolderHelpButton.d.ts +7 -0
- package/Platform/FolderHelpDialog.d.ts +9 -0
- package/Platform/FolderHelpPaths.d.ts +2 -0
- package/Platform/FolderHelpPlugins.d.ts +9 -0
- package/Platform/FolderHelpService.d.ts +10 -0
- package/Platform/FolderHelpTimeCodes.d.ts +2 -0
- package/Platform/FolderMainMenuItemImpl.d.ts +1 -1
- package/Platform/FolderManagementAdaptiveMenu.d.ts +1 -1
- package/Platform/{FolderManagmentData.d.ts → FolderManagementData.d.ts} +0 -0
- package/Platform/FolderManagementDialog.d.ts +1 -1
- package/Platform/FolderName.d.ts +2 -1
- package/Platform/FolderNameImpl.d.ts +1 -0
- package/Platform/FolderOperationManager.d.ts +1 -1
- package/Platform/FolderViewItemsImpl.d.ts +5 -5
- package/Platform/IAggregates.d.ts +10 -4
- package/Platform/ListCheckbox.d.ts +1 -1
- package/Platform/ListInput.d.ts +1 -1
- package/Platform/LoaderDialog.d.ts +1 -1
- package/Platform/Number.d.ts +2 -0
- package/Platform/NumberImpl.d.ts +2 -1
- package/Platform/Quotes.d.ts +18 -0
- package/Platform/Quotes.stories.d.ts +8 -0
- package/Platform/QuotesButtonMore.d.ts +6 -0
- package/Platform/QuotesHighlight.d.ts +8 -0
- package/Platform/QuotesInner.d.ts +6 -0
- package/Platform/QuotesItem.d.ts +15 -0
- package/Platform/QuotesLogic.d.ts +40 -0
- package/Platform/QuotesModal.d.ts +14 -0
- package/Platform/QuotesModalButtonBlock.d.ts +6 -0
- package/Platform/QuotesModalQuote.d.ts +6 -0
- package/Platform/QuotesPlugins.d.ts +4 -0
- package/Platform/QuotesView.d.ts +16 -0
- package/Platform/QuotesWrapper.d.ts +6 -0
- package/Platform/ScrollTopBottomButtons.d.ts +1 -0
- package/Platform/ScrollTopBottomLogic.d.ts +2 -0
- package/Platform/SearchResultsFolderTablePluginFactory.d.ts +5 -5
- package/Platform/SearchTextInput.d.ts +1 -1
- package/Platform/SecurityDescriptorDialog.d.ts +3 -3
- package/Platform/SettingsPlugin.d.ts +7 -3
- package/Platform/SettingsPopupCheckBoxContainer.d.ts +1 -0
- package/Platform/SettingsPopupLogic.d.ts +13 -4
- package/Platform/SettingsPopupView.d.ts +2 -0
- package/Platform/Table.d.ts +1 -1
- package/Platform/TableColumnResponseResolver.d.ts +10 -0
- package/Platform/TablePresentationTogglePlugins.d.ts +1 -2
- package/Platform/TestUtils.d.ts +2 -1
- package/Platform/TextControlBaseImpl.d.ts +2 -0
- package/Platform/TextListInputView.d.ts +4 -4
- package/Platform/{ToggleRowAcess.d.ts → ToggleRowAccess.d.ts} +0 -0
- package/Platform/UserProfileDialog.d.ts +1 -1
- package/Platform/UtilsQuotes.d.ts +10 -0
- package/Platform/index.d.ts +1 -7
- package/Platform/toLocaleStringPolyfill.d.ts +2 -0
- package/StandardServices.d.ts +4 -1
- package/System/$FileService.d.ts +16 -9
- package/System/$Layout.d.ts +1 -1
- package/System/BlobToBase64.d.ts +1 -0
- package/System/DirectorySelectDialog.d.ts +2 -2
- package/System/FileService.d.ts +14 -15
- package/System/FilterLogic.d.ts +6 -0
- package/System/GenerateTestData.d.ts +2 -0
- package/System/IAsyncControlInfo.d.ts +1 -1
- package/System/ILayoutParams.d.ts +2 -0
- package/System/InputBasedControlImpl.d.ts +1 -0
- package/System/Layout.d.ts +1 -0
- package/System/LayoutManager.d.ts +1 -1
- package/System/LayoutUtils.d.ts +1 -0
- package/System/OperationUtils.d.ts +2 -0
- package/System/PageLeaveConfirmation.d.ts +1 -0
- package/System/{PreventPropogation.d.ts → PreventPropagation.d.ts} +0 -0
- package/System/StringUtils.d.ts +5 -1
- package/package.json +1 -1
- package/BackOffice/FileSignCreateDialog.d.ts +0 -83
- package/BackOffice/FileSignSelectCertificateDialog.d.ts +0 -57
- package/Globals/DVPromise.d.ts +0 -19
- package/Platform/FilterPlugin.d.ts +0 -3
- package/Platform/GropingPlugin.d.ts +0 -3
- package/Platform/ResetSettingsPlugin.d.ts +0 -18
- package/Platform/SearchPlugin.d.ts +0 -3
- package/Platform/toLocaleStringPolifill.d.ts +0 -1
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
declare type Selector = {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the default is selected
|
|
4
|
+
*/
|
|
5
|
+
default?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Html string of selector
|
|
8
|
+
*/
|
|
9
|
+
html: string;
|
|
10
|
+
};
|
|
11
|
+
declare type ComponentOption = {
|
|
12
|
+
/**
|
|
13
|
+
* Html string or html element of component
|
|
14
|
+
*/
|
|
15
|
+
html: string | HTMLElement;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to disable component
|
|
18
|
+
*/
|
|
19
|
+
disable?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Unique name for component
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Component sort index
|
|
26
|
+
*/
|
|
27
|
+
index?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Component style object
|
|
30
|
+
*/
|
|
31
|
+
style?: CSSStyleDeclaration;
|
|
32
|
+
/**
|
|
33
|
+
* Component click event
|
|
34
|
+
*/
|
|
35
|
+
click?(component: Component, event: Event): void;
|
|
36
|
+
/**
|
|
37
|
+
* Wnen the component was mounted
|
|
38
|
+
*/
|
|
39
|
+
mounted?(element: HTMLElement): void;
|
|
40
|
+
/**
|
|
41
|
+
* Component tooltip, use in controls
|
|
42
|
+
*/
|
|
43
|
+
tooltip?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Component position, use in controls
|
|
46
|
+
*/
|
|
47
|
+
position?: 'top' | 'left' | 'right';
|
|
48
|
+
/**
|
|
49
|
+
* Custom selector list, use in controls
|
|
50
|
+
*/
|
|
51
|
+
selector?: Selector[];
|
|
52
|
+
/**
|
|
53
|
+
* When selector item click, use in controls
|
|
54
|
+
*/
|
|
55
|
+
onSelect?(selector: Selector, element: HTMLElement, event: Event): void;
|
|
56
|
+
};
|
|
57
|
+
declare type SettingOption = {
|
|
58
|
+
/**
|
|
59
|
+
* Html string or html element of setting name
|
|
60
|
+
*/
|
|
61
|
+
html: string | HTMLElement;
|
|
62
|
+
/**
|
|
63
|
+
* Html string or html element of setting icon
|
|
64
|
+
*/
|
|
65
|
+
icon?: string | HTMLElement;
|
|
66
|
+
/**
|
|
67
|
+
* The width of setting
|
|
68
|
+
*/
|
|
69
|
+
width?: number;
|
|
70
|
+
/**
|
|
71
|
+
* The tooltip of setting
|
|
72
|
+
*/
|
|
73
|
+
tooltip?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Whether the default is selected
|
|
76
|
+
*/
|
|
77
|
+
default?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Custom selector list
|
|
80
|
+
*/
|
|
81
|
+
selector?: SettingOption[];
|
|
82
|
+
/**
|
|
83
|
+
* When selector item click
|
|
84
|
+
*/
|
|
85
|
+
onSelect?(selector: SettingOption, element: HTMLElement, event: Event): void;
|
|
86
|
+
};
|
|
87
|
+
declare type Component = {
|
|
88
|
+
/**
|
|
89
|
+
* Component self-increasing id
|
|
90
|
+
*/
|
|
91
|
+
readonly id: number;
|
|
92
|
+
/**
|
|
93
|
+
* Component parent name
|
|
94
|
+
*/
|
|
95
|
+
readonly name: string | void;
|
|
96
|
+
/**
|
|
97
|
+
* Component parent element
|
|
98
|
+
*/
|
|
99
|
+
readonly $parent: HTMLElement | void;
|
|
100
|
+
/**
|
|
101
|
+
* Whether to show component parent
|
|
102
|
+
*/
|
|
103
|
+
show: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Toggle the component parent
|
|
106
|
+
*/
|
|
107
|
+
toggle: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Dynamic add a component
|
|
110
|
+
*/
|
|
111
|
+
add(option: ComponentOption): HTMLElement;
|
|
112
|
+
};
|
|
113
|
+
declare type PluginFunction = (art: ArtPlayerT) => any;
|
|
114
|
+
declare type WhitelistFunction = (ua: string) => boolean;
|
|
115
|
+
declare type CustomType = (video: HTMLVideoElement, url: string, art: ArtPlayerT) => any;
|
|
116
|
+
declare type EventCallback = (event: Event) => any;
|
|
117
|
+
declare type SubtitleOption = {
|
|
118
|
+
/**
|
|
119
|
+
* The subtitle url
|
|
120
|
+
*/
|
|
121
|
+
url: string;
|
|
122
|
+
/**
|
|
123
|
+
* The subtitle type
|
|
124
|
+
*/
|
|
125
|
+
type?: 'vtt' | 'srt' | 'ass';
|
|
126
|
+
/**
|
|
127
|
+
* The subtitle style object
|
|
128
|
+
*/
|
|
129
|
+
style?: CSSStyleDeclaration;
|
|
130
|
+
/**
|
|
131
|
+
* The subtitle encoding, default utf-8
|
|
132
|
+
*/
|
|
133
|
+
encoding?: string;
|
|
134
|
+
};
|
|
135
|
+
declare type AdsOption = {
|
|
136
|
+
/**
|
|
137
|
+
* The ads video url
|
|
138
|
+
*/
|
|
139
|
+
url: string;
|
|
140
|
+
};
|
|
141
|
+
export declare type ArtPlayerOptionT = {
|
|
142
|
+
/**
|
|
143
|
+
* The container mounted by the player
|
|
144
|
+
*/
|
|
145
|
+
container: string | HTMLElement;
|
|
146
|
+
/**
|
|
147
|
+
* Video url
|
|
148
|
+
*/
|
|
149
|
+
url: string;
|
|
150
|
+
/**
|
|
151
|
+
* Player language
|
|
152
|
+
*/
|
|
153
|
+
lang: string;
|
|
154
|
+
/**
|
|
155
|
+
* Video poster image url
|
|
156
|
+
*/
|
|
157
|
+
poster?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Video title
|
|
160
|
+
*/
|
|
161
|
+
title?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Video url type
|
|
164
|
+
*/
|
|
165
|
+
type?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Player color theme
|
|
168
|
+
*/
|
|
169
|
+
theme?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Player default volume
|
|
172
|
+
*/
|
|
173
|
+
volume?: number;
|
|
174
|
+
/**
|
|
175
|
+
* Whether live broadcast mode
|
|
176
|
+
*/
|
|
177
|
+
isLive?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Whether video muted
|
|
180
|
+
*/
|
|
181
|
+
muted?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Whether video auto play
|
|
184
|
+
*/
|
|
185
|
+
autoplay?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Whether player auto resize
|
|
188
|
+
*/
|
|
189
|
+
autoSize?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Whether player auto run mini mode
|
|
192
|
+
*/
|
|
193
|
+
autoMini?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Whether video auto loop
|
|
196
|
+
*/
|
|
197
|
+
loop?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Whether show video flip button
|
|
200
|
+
*/
|
|
201
|
+
flip?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Whether show video playback rate button
|
|
204
|
+
*/
|
|
205
|
+
playbackRate?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Whether show video aspect ratio button
|
|
208
|
+
*/
|
|
209
|
+
aspectRatio?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Whether show video screenshot button
|
|
212
|
+
*/
|
|
213
|
+
screenshot?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Whether show video setting button
|
|
216
|
+
*/
|
|
217
|
+
setting?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Whether to enable player hotkey
|
|
220
|
+
*/
|
|
221
|
+
hotkey?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Whether show video pip button
|
|
224
|
+
*/
|
|
225
|
+
pip?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Do you want to run only one player at a time
|
|
228
|
+
*/
|
|
229
|
+
mutex?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Whether use backdrop in UI
|
|
232
|
+
*/
|
|
233
|
+
backdrop?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Whether show video window fullscreen button
|
|
236
|
+
*/
|
|
237
|
+
fullscreen?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Whether show video web fullscreen button
|
|
240
|
+
*/
|
|
241
|
+
fullscreenWeb?: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* Whether to enable player subtitle offset
|
|
244
|
+
*/
|
|
245
|
+
subtitleOffset?: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Whether to enable player mini progress bar
|
|
248
|
+
*/
|
|
249
|
+
miniProgressBar?: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* Whether use SSR function
|
|
252
|
+
*/
|
|
253
|
+
useSSR?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Whether use playsInline in mobile
|
|
256
|
+
*/
|
|
257
|
+
playsInline?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Custom plugin list
|
|
260
|
+
*/
|
|
261
|
+
plugins?: PluginFunction[];
|
|
262
|
+
/**
|
|
263
|
+
* Custom mobile whitelist
|
|
264
|
+
*/
|
|
265
|
+
whitelist?: (string | WhitelistFunction | RegExp)[];
|
|
266
|
+
/**
|
|
267
|
+
* Custom ads list
|
|
268
|
+
*/
|
|
269
|
+
ads?: AdsOption[];
|
|
270
|
+
/**
|
|
271
|
+
* Custom layer list
|
|
272
|
+
*/
|
|
273
|
+
layers?: ComponentOption[];
|
|
274
|
+
/**
|
|
275
|
+
* Custom contextmenu list
|
|
276
|
+
*/
|
|
277
|
+
contextmenu?: ComponentOption[];
|
|
278
|
+
/**
|
|
279
|
+
* Custom control list
|
|
280
|
+
*/
|
|
281
|
+
controls?: ComponentOption[];
|
|
282
|
+
/**
|
|
283
|
+
* Custom setting list
|
|
284
|
+
*/
|
|
285
|
+
settings?: SettingOption[];
|
|
286
|
+
/**
|
|
287
|
+
* Custom video quality list
|
|
288
|
+
*/
|
|
289
|
+
quality?: {
|
|
290
|
+
/**
|
|
291
|
+
* Whether the default is selected
|
|
292
|
+
*/
|
|
293
|
+
default?: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* Html string of quality
|
|
296
|
+
*/
|
|
297
|
+
html: string;
|
|
298
|
+
/**
|
|
299
|
+
* Video quality url
|
|
300
|
+
*/
|
|
301
|
+
url: string;
|
|
302
|
+
}[];
|
|
303
|
+
/**
|
|
304
|
+
* Custom highlight list
|
|
305
|
+
*/
|
|
306
|
+
highlight?: {
|
|
307
|
+
/**
|
|
308
|
+
* The highlight time
|
|
309
|
+
*/
|
|
310
|
+
time: number;
|
|
311
|
+
/**
|
|
312
|
+
* The highlight text
|
|
313
|
+
*/
|
|
314
|
+
text: string;
|
|
315
|
+
}[];
|
|
316
|
+
/**
|
|
317
|
+
* Custom thumbnail
|
|
318
|
+
*/
|
|
319
|
+
thumbnails?: {
|
|
320
|
+
/**
|
|
321
|
+
* The thumbnail image url
|
|
322
|
+
*/
|
|
323
|
+
url: string;
|
|
324
|
+
/**
|
|
325
|
+
* The thumbnail item number
|
|
326
|
+
*/
|
|
327
|
+
number?: number;
|
|
328
|
+
/**
|
|
329
|
+
* The thumbnail column size
|
|
330
|
+
*/
|
|
331
|
+
column?: number;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Custom subtitle option
|
|
335
|
+
*/
|
|
336
|
+
subtitle?: SubtitleOption;
|
|
337
|
+
/**
|
|
338
|
+
* Other video attribute
|
|
339
|
+
*/
|
|
340
|
+
moreVideoAttr?: HTMLVideoElement;
|
|
341
|
+
/**
|
|
342
|
+
* Custom default icons
|
|
343
|
+
*/
|
|
344
|
+
icons?: {
|
|
345
|
+
loading?: HTMLElement | string;
|
|
346
|
+
state?: HTMLElement | string;
|
|
347
|
+
play?: HTMLElement | string;
|
|
348
|
+
pause?: HTMLElement | string;
|
|
349
|
+
volume?: HTMLElement | string;
|
|
350
|
+
volumeClose?: HTMLElement | string;
|
|
351
|
+
subtitle?: HTMLElement | string;
|
|
352
|
+
screenshot?: HTMLElement | string;
|
|
353
|
+
setting?: HTMLElement | string;
|
|
354
|
+
fullscreen?: HTMLElement | string;
|
|
355
|
+
fullscreenWeb?: HTMLElement | string;
|
|
356
|
+
pip?: HTMLElement | string;
|
|
357
|
+
indicator?: HTMLElement | string;
|
|
358
|
+
arrowLeft?: HTMLElement | string;
|
|
359
|
+
arrowRight?: HTMLElement | string;
|
|
360
|
+
playbackRate?: HTMLElement | string;
|
|
361
|
+
aspectRatio?: HTMLElement | string;
|
|
362
|
+
config?: HTMLElement | string;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Custom video type function
|
|
366
|
+
*/
|
|
367
|
+
customType?: {
|
|
368
|
+
[key: string]: CustomType;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
declare type AspectRatio = 'default' | '4:3' | '16:9' | void;
|
|
372
|
+
declare type PlaybackRate = 0.5 | 0.75 | 1.0 | 1.25 | 1.5 | 1.75 | 2.0 | void;
|
|
373
|
+
declare type Flip = 'normal' | 'horizontal' | 'vertical' | void;
|
|
374
|
+
declare class Player {
|
|
375
|
+
get aspectRatio(): AspectRatio;
|
|
376
|
+
set aspectRatio(ratio: AspectRatio);
|
|
377
|
+
get playbackRate(): PlaybackRate;
|
|
378
|
+
set playbackRate(rate: PlaybackRate);
|
|
379
|
+
get autoSize(): boolean;
|
|
380
|
+
set autoSize(state: boolean);
|
|
381
|
+
get autoHeight(): boolean;
|
|
382
|
+
set autoHeight(state: boolean);
|
|
383
|
+
get currentTime(): number;
|
|
384
|
+
set currentTime(time: number);
|
|
385
|
+
get duration(): number;
|
|
386
|
+
get played(): number;
|
|
387
|
+
get playing(): boolean;
|
|
388
|
+
get flip(): Flip;
|
|
389
|
+
set flip(state: Flip);
|
|
390
|
+
get fullscreen(): boolean;
|
|
391
|
+
set fullscreen(state: boolean);
|
|
392
|
+
set fullscreenToggle(state: boolean);
|
|
393
|
+
get fullscreenWeb(): boolean;
|
|
394
|
+
set fullscreenWeb(state: boolean);
|
|
395
|
+
set fullscreenWebToggle(state: boolean);
|
|
396
|
+
get loaded(): number;
|
|
397
|
+
get loop(): number[];
|
|
398
|
+
set loop(value: number[]);
|
|
399
|
+
get mini(): boolean;
|
|
400
|
+
set mini(state: boolean);
|
|
401
|
+
get pip(): boolean;
|
|
402
|
+
set pip(state: boolean);
|
|
403
|
+
get poster(): string;
|
|
404
|
+
set poster(url: string);
|
|
405
|
+
get rect(): DOMRect;
|
|
406
|
+
get bottom(): number;
|
|
407
|
+
get height(): number;
|
|
408
|
+
get left(): number;
|
|
409
|
+
get right(): number;
|
|
410
|
+
get top(): number;
|
|
411
|
+
get width(): number;
|
|
412
|
+
get x(): number;
|
|
413
|
+
get y(): number;
|
|
414
|
+
set seek(time: number);
|
|
415
|
+
set forward(time: number);
|
|
416
|
+
set backward(time: number);
|
|
417
|
+
get url(): string;
|
|
418
|
+
set url(url: string);
|
|
419
|
+
get volume(): number;
|
|
420
|
+
set volume(percentage: number);
|
|
421
|
+
get muted(): boolean;
|
|
422
|
+
set muted(state: boolean);
|
|
423
|
+
get title(): string;
|
|
424
|
+
set title(title: string);
|
|
425
|
+
get theme(): string;
|
|
426
|
+
set theme(theme: string);
|
|
427
|
+
get subtitleOffset(): number;
|
|
428
|
+
set subtitleOffset(time: number);
|
|
429
|
+
pause(): any;
|
|
430
|
+
play(): any;
|
|
431
|
+
toggle(): any;
|
|
432
|
+
attr(key: string, value: any): void;
|
|
433
|
+
switchUrl(url: string): Promise<string>;
|
|
434
|
+
switchQuality(url: string): Promise<string>;
|
|
435
|
+
getDataURL(): Promise<string>;
|
|
436
|
+
getBlobUrl(): Promise<string>;
|
|
437
|
+
screenshot(): Promise<string>;
|
|
438
|
+
}
|
|
439
|
+
export declare class ArtPlayerT extends Player {
|
|
440
|
+
constructor(option: ArtPlayerOptionT);
|
|
441
|
+
static instances: ArtPlayerT[];
|
|
442
|
+
static version: string;
|
|
443
|
+
static env: string;
|
|
444
|
+
static build: string;
|
|
445
|
+
static config: {
|
|
446
|
+
propertys: {
|
|
447
|
+
[key: string]: string[];
|
|
448
|
+
};
|
|
449
|
+
methods: {
|
|
450
|
+
[key: string]: string[];
|
|
451
|
+
};
|
|
452
|
+
events: {
|
|
453
|
+
[key: string]: string[];
|
|
454
|
+
};
|
|
455
|
+
prototypes: {
|
|
456
|
+
[key: string]: string[];
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
static utils: {
|
|
460
|
+
[key: string]: string | Function;
|
|
461
|
+
};
|
|
462
|
+
static scheme: object;
|
|
463
|
+
static Emitter: Function;
|
|
464
|
+
static validator: Function;
|
|
465
|
+
static kindOf: Function;
|
|
466
|
+
static html: string;
|
|
467
|
+
static option: ArtPlayerT;
|
|
468
|
+
readonly id: number;
|
|
469
|
+
readonly option: ArtPlayerT;
|
|
470
|
+
readonly isFocus: boolean;
|
|
471
|
+
readonly isDestroy: boolean;
|
|
472
|
+
on(name: string, fn: Function, ctx?: object): void;
|
|
473
|
+
once(name: string, fn: Function, ctx?: object): void;
|
|
474
|
+
emit(name: string): void;
|
|
475
|
+
off(name: string, callback?: Function): void;
|
|
476
|
+
query(selector: string): HTMLElement;
|
|
477
|
+
proxy(target: HTMLElement, name: string, callback: EventCallback, option?: {
|
|
478
|
+
passive?: boolean;
|
|
479
|
+
once?: boolean;
|
|
480
|
+
capture?: boolean;
|
|
481
|
+
} | boolean): Function;
|
|
482
|
+
destroy(removeHtml?: boolean): void;
|
|
483
|
+
readonly template: {
|
|
484
|
+
query(str: string): HTMLElement;
|
|
485
|
+
readonly $container: HTMLElement;
|
|
486
|
+
readonly $original: HTMLElement;
|
|
487
|
+
readonly $player: HTMLElement;
|
|
488
|
+
readonly $video: HTMLElement;
|
|
489
|
+
readonly $poster: HTMLElement;
|
|
490
|
+
readonly $subtitle: HTMLElement;
|
|
491
|
+
readonly $danmuku: HTMLElement;
|
|
492
|
+
readonly $bottom: HTMLElement;
|
|
493
|
+
readonly $progress: HTMLElement;
|
|
494
|
+
readonly $controls: HTMLElement;
|
|
495
|
+
readonly $controlsLeft: HTMLElement;
|
|
496
|
+
readonly $controlsRight: HTMLElement;
|
|
497
|
+
readonly $layer: HTMLElement;
|
|
498
|
+
readonly $loading: HTMLElement;
|
|
499
|
+
readonly $notice: HTMLElement;
|
|
500
|
+
readonly $noticeInner: HTMLElement;
|
|
501
|
+
readonly $mask: HTMLElement;
|
|
502
|
+
readonly $state: HTMLElement;
|
|
503
|
+
readonly $setting: HTMLElement;
|
|
504
|
+
readonly $info: HTMLElement;
|
|
505
|
+
readonly $infoPanel: HTMLElement;
|
|
506
|
+
readonly $infoClose: HTMLElement;
|
|
507
|
+
readonly $miniHeader: HTMLElement;
|
|
508
|
+
readonly $miniTitle: HTMLElement;
|
|
509
|
+
readonly $miniClose: HTMLElement;
|
|
510
|
+
readonly $contextmenu: HTMLElement;
|
|
511
|
+
};
|
|
512
|
+
readonly events: {
|
|
513
|
+
proxy(target: HTMLElement, name: string, callback: EventCallback, option?: {
|
|
514
|
+
passive?: boolean;
|
|
515
|
+
once?: boolean;
|
|
516
|
+
capture?: boolean;
|
|
517
|
+
} | boolean): Function;
|
|
518
|
+
hover(target: HTMLElement, mouseenter?: EventCallback, mouseleave?: EventCallback): Function;
|
|
519
|
+
loadImg(target: HTMLImageElement | string): Promise<HTMLImageElement>;
|
|
520
|
+
};
|
|
521
|
+
readonly whitelist: {
|
|
522
|
+
readonly state: boolean;
|
|
523
|
+
};
|
|
524
|
+
readonly storage: {
|
|
525
|
+
readonly name: string;
|
|
526
|
+
readonly settings: object;
|
|
527
|
+
get(key: string): any;
|
|
528
|
+
set(key: string, value: any): void;
|
|
529
|
+
del(key: string): any;
|
|
530
|
+
clean(): any;
|
|
531
|
+
};
|
|
532
|
+
readonly icons: {
|
|
533
|
+
readonly loading: HTMLElement;
|
|
534
|
+
readonly state: HTMLElement;
|
|
535
|
+
readonly play: HTMLElement;
|
|
536
|
+
readonly pause: HTMLElement;
|
|
537
|
+
readonly check: HTMLElement;
|
|
538
|
+
readonly volume: HTMLElement;
|
|
539
|
+
readonly volumeClose: HTMLElement;
|
|
540
|
+
readonly subtitle: HTMLElement;
|
|
541
|
+
readonly screenshot: HTMLElement;
|
|
542
|
+
readonly setting: HTMLElement;
|
|
543
|
+
readonly fullscreen: HTMLElement;
|
|
544
|
+
readonly fullscreenWeb: HTMLElement;
|
|
545
|
+
readonly pip: HTMLElement;
|
|
546
|
+
readonly indicator: HTMLElement;
|
|
547
|
+
readonly arrowLeft: HTMLElement;
|
|
548
|
+
readonly arrowRight: HTMLElement;
|
|
549
|
+
readonly playbackRate: HTMLElement;
|
|
550
|
+
readonly aspectRatio: HTMLElement;
|
|
551
|
+
readonly config: HTMLElement;
|
|
552
|
+
};
|
|
553
|
+
readonly hotkey: {
|
|
554
|
+
add(key: number, callback: EventCallback): ArtPlayerT['hotkey'];
|
|
555
|
+
};
|
|
556
|
+
readonly plugins: {
|
|
557
|
+
readonly id: number;
|
|
558
|
+
add(plugin: PluginFunction): ArtPlayerT['plugins'];
|
|
559
|
+
};
|
|
560
|
+
readonly i18n: {
|
|
561
|
+
readonly languages: {
|
|
562
|
+
[key: string]: object;
|
|
563
|
+
};
|
|
564
|
+
get(key: string): string;
|
|
565
|
+
update(language: object): void;
|
|
566
|
+
};
|
|
567
|
+
readonly notice: {
|
|
568
|
+
time: number;
|
|
569
|
+
show: string;
|
|
570
|
+
};
|
|
571
|
+
readonly subtitle: {
|
|
572
|
+
show: boolean;
|
|
573
|
+
toggle: boolean;
|
|
574
|
+
url: string;
|
|
575
|
+
style(name: string | CSSStyleDeclaration, value?: string): HTMLElement;
|
|
576
|
+
switch(url: string, option?: SubtitleOption): Promise<string>;
|
|
577
|
+
};
|
|
578
|
+
readonly ads: {
|
|
579
|
+
index: number;
|
|
580
|
+
isEnd: boolean;
|
|
581
|
+
playing: boolean;
|
|
582
|
+
current: AdsOption;
|
|
583
|
+
prev: AdsOption;
|
|
584
|
+
next: AdsOption;
|
|
585
|
+
end(): void;
|
|
586
|
+
};
|
|
587
|
+
readonly mobile: object;
|
|
588
|
+
readonly player: Player;
|
|
589
|
+
readonly info: Component;
|
|
590
|
+
readonly loading: Component;
|
|
591
|
+
readonly mask: Component;
|
|
592
|
+
readonly layers: Record<string, HTMLElement> & Component;
|
|
593
|
+
readonly controls: Record<string, HTMLElement> & Component;
|
|
594
|
+
readonly contextmenu: Record<string, HTMLElement> & Component;
|
|
595
|
+
readonly setting: Record<string, HTMLElement> & Component;
|
|
596
|
+
}
|
|
597
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { $DeviceType } from '@docsvision/webclient/StandardServices';
|
|
3
3
|
/** Свойства {@link CommonModalDialog}. */
|
|
4
|
-
export interface
|
|
4
|
+
export interface CommonModalDialogProps {
|
|
5
5
|
/** Существует ли кнопка закрытия модального окна (крестик) */
|
|
6
6
|
closeButtonDisabled?: boolean;
|
|
7
7
|
/** Открыт диалог или нет. */
|
|
@@ -33,6 +33,7 @@ export interface Props {
|
|
|
33
33
|
maxHeight?: string;
|
|
34
34
|
services: $DeviceType;
|
|
35
35
|
}
|
|
36
|
+
export declare type Props = CommonModalDialogProps;
|
|
36
37
|
/**
|
|
37
38
|
* Обертка, использующая {@link StackingModal}, {@link ModalBackdrop}, {@link ModalDialog},
|
|
38
39
|
* {@link ModalDialogBox}, {@link ModalDialogHeader}, {@link ModalDialogCloseButton},{@link ModalDialogContent}, {@link ModalDialogButtonPanel}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $RootCssClass } from '@docsvision/webclient/Helpers/$RootCssClass';
|
|
2
2
|
import { $DialogManagement } from '@docsvision/webclient/Helpers/ModalDialog/$DialogManagement';
|
|
3
|
-
import {
|
|
3
|
+
import { CommonModalDialogProps } from '@docsvision/webclient/Helpers/ModalDialog/CommonModalDialog';
|
|
4
4
|
import { $DeviceType } from '@docsvision/webclient/StandardServices';
|
|
5
5
|
import { Optional } from '@docsvision/web/core/services';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
/** Вспомогательный класс для отрисовки {@link CommonModalDialog} в {@link ModalHost}. */
|
|
8
8
|
export declare class CommonModalDialogHost {
|
|
9
|
-
dialogProps: Partial<
|
|
9
|
+
dialogProps: Partial<CommonModalDialogProps> | (() => Partial<CommonModalDialogProps>);
|
|
10
10
|
renderCallback: () => React.ReactNode;
|
|
11
11
|
onAcceptCallback?: () => Promise<void>;
|
|
12
12
|
onCancelCallback?: () => Promise<void>;
|
|
@@ -16,7 +16,7 @@ export declare class CommonModalDialogHost {
|
|
|
16
16
|
private _service;
|
|
17
17
|
private contentDiv;
|
|
18
18
|
private isCancelled;
|
|
19
|
-
constructor(className: string, services: $DeviceType & Optional<$RootCssClass>, dialogProps?: Partial<
|
|
19
|
+
constructor(className: string, services: $DeviceType & Optional<$RootCssClass>, dialogProps?: Partial<CommonModalDialogProps> | (() => Partial<CommonModalDialogProps>), renderCallback?: () => React.ReactNode, onAcceptCallback?: () => Promise<void>, onCancelCallback?: () => Promise<void>);
|
|
20
20
|
forceUpdate(callback?: Function): Promise<void>;
|
|
21
21
|
isMounted(): boolean;
|
|
22
22
|
get service(): $DialogManagement & $DeviceType;
|
|
@@ -41,6 +41,7 @@ export interface IReactListDynamicProps {
|
|
|
41
41
|
items: any[];
|
|
42
42
|
/** {@see ReactListVirtualization}. */
|
|
43
43
|
virtualization?: 'simple' | 'uniform' | 'variable' | string;
|
|
44
|
+
useStaticSize?: boolean;
|
|
44
45
|
/** Функция, определяющая, загружен ли элемент списка или нет. */
|
|
45
46
|
checkItemLoaded?: (item: any, index?: number) => boolean;
|
|
46
47
|
/** Рендеринг отдельного элемента списка */
|
|
@@ -8,5 +8,11 @@ export interface ISortableItem<T> {
|
|
|
8
8
|
/** Данные элемента, который будет использоваться для рендеринга */
|
|
9
9
|
data: T;
|
|
10
10
|
/** Компонент, который нужно отрендерить */
|
|
11
|
-
render
|
|
11
|
+
render?: (data: T) => React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Рендеринг контейнера строки.
|
|
14
|
+
*
|
|
15
|
+
* Должен задавать атрибут data-sortable-id={item.id} и key={item.id}
|
|
16
|
+
*/
|
|
17
|
+
renderSortableRow?: (data: ISortableItem<T>) => React.ReactNode;
|
|
12
18
|
}
|