bm-core-ui 2.10.5 → 2.11.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/build/@types/index.d.ts +312 -12
- package/build/BMCodeEditor/BMCodeEditor.js +2 -2
- package/build/BMCollectionView/BMCollectionView.js +302 -56
- package/build/BMCollectionView/BMCollectionViewCell.js +54 -27
- package/build/BMCollectionView/BMCollectionViewFlowLayout.js +2 -1
- package/build/BMCollectionView/BMCollectionViewMasonryLayout.js +1 -1
- package/build/BMCollectionView/BMCollectionViewStackLayout.js +1 -1
- package/build/BMCollectionView/BMCollectionViewTileLayout.js +1 -1
- package/build/BMWindow/BMWindow.js +141 -0
- package/build/Core/BMAnimationContext.js +93 -5
- package/lib/@types/BMCoreUI.min.d.ts +312 -12
- package/lib/BMCoreUI.min.js +1 -1
- package/package.json +1 -1
package/build/@types/index.d.ts
CHANGED
|
@@ -1524,6 +1524,24 @@ export class BMAnimationContext {
|
|
|
1524
1524
|
*/
|
|
1525
1525
|
registerAnimationForTarget(target: $ | DOMNode, {properties, options}: {properties: Dictionary< any>, options?: Dictionary< any> | null | undefined}): void;
|
|
1526
1526
|
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* A map having DOM nodes as keys which contains delayed animations that have yet to start.
|
|
1530
|
+
*
|
|
1531
|
+
*/
|
|
1532
|
+
private static _pendingAnimations (): void;
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* Stops all current animations for the specified node on the properties that
|
|
1537
|
+
* are specified in an animation that is about to start.
|
|
1538
|
+
* @param node The DOM node on which the animation is about to start.
|
|
1539
|
+
* @param withProperties The properties that are about to be animated.
|
|
1540
|
+
* @param options The options of the animation that is about to start.
|
|
1541
|
+
*
|
|
1542
|
+
*/
|
|
1543
|
+
private static _prepareAnimationForNode (node: DOMNode, {withProperties, options}: {withProperties: Dictionary<unknown>, options: Dictionary<unknown>}): void;
|
|
1544
|
+
|
|
1527
1545
|
}
|
|
1528
1546
|
|
|
1529
1547
|
|
|
@@ -8943,6 +8961,37 @@ export class BMJQueryShim {
|
|
|
8943
8961
|
}
|
|
8944
8962
|
|
|
8945
8963
|
|
|
8964
|
+
export class BMCollectionViewCellReuseState {
|
|
8965
|
+
/**
|
|
8966
|
+
* Indicates that this cell is currently bound to a data source object and retained
|
|
8967
|
+
* or managed by the collection view.
|
|
8968
|
+
*
|
|
8969
|
+
*/
|
|
8970
|
+
static InUse: BMCollectionViewCellReuseState;
|
|
8971
|
+
|
|
8972
|
+
/**
|
|
8973
|
+
* Indicates that this cell is not currently in use, but may be reused in the future.
|
|
8974
|
+
*
|
|
8975
|
+
*/
|
|
8976
|
+
static InQueue: BMCollectionViewCellReuseState;
|
|
8977
|
+
|
|
8978
|
+
/**
|
|
8979
|
+
* Indicates that this cell is in the process of being deleted and is bound to a data
|
|
8980
|
+
* source object that no longer has a valid index path.
|
|
8981
|
+
*
|
|
8982
|
+
*/
|
|
8983
|
+
static Deleting: BMCollectionViewCellReuseState;
|
|
8984
|
+
|
|
8985
|
+
/**
|
|
8986
|
+
* Indicates that this cell is not currently in use and cannot be reused in the future.
|
|
8987
|
+
* References to cells in this state should be cleared as they are no longer valid.
|
|
8988
|
+
*
|
|
8989
|
+
*/
|
|
8990
|
+
static Discarded: BMCollectionViewCellReuseState;
|
|
8991
|
+
|
|
8992
|
+
private constructor();
|
|
8993
|
+
}
|
|
8994
|
+
|
|
8946
8995
|
/**
|
|
8947
8996
|
* A controller object that manages a cell view instance and its associated retain count.
|
|
8948
8997
|
* The cell is used as a controller for both regular cells, supplementary views and decoration views.
|
|
@@ -8990,12 +9039,6 @@ export class BMCollectionViewCell extends BMView {
|
|
|
8990
9039
|
*/
|
|
8991
9040
|
readonly element: BMJQueryShim;
|
|
8992
9041
|
|
|
8993
|
-
/**
|
|
8994
|
-
* The DOM node managed by this cell.
|
|
8995
|
-
*
|
|
8996
|
-
*/
|
|
8997
|
-
//node: DOMNode;
|
|
8998
|
-
|
|
8999
9042
|
/**
|
|
9000
9043
|
* The type of item this cell represents.
|
|
9001
9044
|
* Subclasses should not override this property.
|
|
@@ -9004,7 +9047,8 @@ export class BMCollectionViewCell extends BMView {
|
|
|
9004
9047
|
itemType: BMCollectionViewLayoutAttributesType;
|
|
9005
9048
|
|
|
9006
9049
|
/**
|
|
9007
|
-
* The cell's reuse identifier which
|
|
9050
|
+
* The cell's reuse identifier which controls when this cell is reused when data source objects
|
|
9051
|
+
* request cell instances from the associated collection view.
|
|
9008
9052
|
*
|
|
9009
9053
|
*/
|
|
9010
9054
|
reuseIdentifier: string;
|
|
@@ -9119,6 +9163,12 @@ export class BMCollectionViewCell extends BMView {
|
|
|
9119
9163
|
releaseRecycledCell(): void;
|
|
9120
9164
|
|
|
9121
9165
|
|
|
9166
|
+
/**
|
|
9167
|
+
* The cell's current reuse state.
|
|
9168
|
+
*
|
|
9169
|
+
*/
|
|
9170
|
+
readonly reuseState: BMCollectionViewCellReuseState;
|
|
9171
|
+
|
|
9122
9172
|
/**
|
|
9123
9173
|
* Should be set to YES to hide the cell, or NO to reveal it.
|
|
9124
9174
|
*
|
|
@@ -9145,7 +9195,7 @@ export class BMCollectionViewCell extends BMView {
|
|
|
9145
9195
|
* Temporarily set to `YES` while this cell is being measured.
|
|
9146
9196
|
*
|
|
9147
9197
|
*/
|
|
9148
|
-
|
|
9198
|
+
protected readonly _isMeasuring: any;
|
|
9149
9199
|
|
|
9150
9200
|
/**
|
|
9151
9201
|
* Invoked prior to this cell being updated as part of an animated data update.
|
|
@@ -9161,7 +9211,7 @@ export class BMCollectionViewCell extends BMView {
|
|
|
9161
9211
|
/**
|
|
9162
9212
|
* Invoked prior to this cell being collected for reuse by the collection view.
|
|
9163
9213
|
* Subclasses can override this method to perform any changes necessary for reusing this cell.
|
|
9164
|
-
* Subclasses
|
|
9214
|
+
* Subclasses must invoke the superclass method at some point in their implementation.
|
|
9165
9215
|
*
|
|
9166
9216
|
*/
|
|
9167
9217
|
prepareForReuse(): void;
|
|
@@ -9169,8 +9219,8 @@ export class BMCollectionViewCell extends BMView {
|
|
|
9169
9219
|
|
|
9170
9220
|
/**
|
|
9171
9221
|
* Invoked prior to this cell being shown on the screen either after being initialized or after having been previously collected.
|
|
9172
|
-
* Subclasses can override this method to perform any changes
|
|
9173
|
-
* Subclasses
|
|
9222
|
+
* Subclasses can override this method to perform any changes necessary for displaying this cell.
|
|
9223
|
+
* Subclasses must invoke the superclass method at some point in their implementation.
|
|
9174
9224
|
*
|
|
9175
9225
|
*/
|
|
9176
9226
|
prepareForDisplay(): void;
|
|
@@ -10051,6 +10101,7 @@ export class BMCollectionViewTableLayoutSupplementaryView {
|
|
|
10051
10101
|
|
|
10052
10102
|
/**
|
|
10053
10103
|
* @deprecated Use `BMCollectionViewFlowLayout` with the `maximumCellsPerRow` property set to `1`.
|
|
10104
|
+
*
|
|
10054
10105
|
* --------------------------------------
|
|
10055
10106
|
* A basic layout implementation, the BMCollectionViewTableLayout will lay out its elements as a list where each row can have
|
|
10056
10107
|
* either a fixed height or a variable height.
|
|
@@ -11354,11 +11405,26 @@ export class BMCollectionView<T = any> extends BMView {
|
|
|
11354
11405
|
delegate?: BMCollectionViewDelegate | null | undefined;
|
|
11355
11406
|
|
|
11356
11407
|
/**
|
|
11357
|
-
*
|
|
11408
|
+
* Set to `YES` if a legacy data set is being used. When a legacy
|
|
11409
|
+
*
|
|
11410
|
+
*/
|
|
11411
|
+
private readonly _usesLegacyDataSet: any;
|
|
11412
|
+
|
|
11413
|
+
/**
|
|
11414
|
+
* @deprecated Use the `dataSource` property instead.
|
|
11415
|
+
*
|
|
11416
|
+
* ---
|
|
11417
|
+
* A data set object that specifies how many objects are in this collection view and configures their contents.
|
|
11358
11418
|
*
|
|
11359
11419
|
*/
|
|
11360
11420
|
dataSet: BMCollectionViewDataSet;
|
|
11361
11421
|
|
|
11422
|
+
/**
|
|
11423
|
+
* A required data source object that specifies how many objects are in this collection view and configures their contents.
|
|
11424
|
+
*
|
|
11425
|
+
*/
|
|
11426
|
+
dataSource: BMCollectionViewDataSource;
|
|
11427
|
+
|
|
11362
11428
|
/**
|
|
11363
11429
|
* The collection view's container element.
|
|
11364
11430
|
*
|
|
@@ -12357,6 +12423,13 @@ export class BMCollectionView<T = any> extends BMView {
|
|
|
12357
12423
|
*/
|
|
12358
12424
|
private _dataUpdatePromise?: Promise<void> | null | undefined;
|
|
12359
12425
|
|
|
12426
|
+
/**
|
|
12427
|
+
* A promise initialized during data updates or similar operations such as animated layout updates.
|
|
12428
|
+
* This promise resolves resolves when the operation and its associated animations complete.
|
|
12429
|
+
*
|
|
12430
|
+
*/
|
|
12431
|
+
readonly dataUpdated?: Promise<void> | null | undefined;
|
|
12432
|
+
|
|
12360
12433
|
/**
|
|
12361
12434
|
* Should be invoked when the entire data set is updated in bulk.
|
|
12362
12435
|
* This method should be invoked when the data set object has access to the new data;
|
|
@@ -12575,6 +12648,9 @@ export function BMCollectionViewMakeWithContainer(container: BMJQueryShim, {cust
|
|
|
12575
12648
|
|
|
12576
12649
|
|
|
12577
12650
|
/**
|
|
12651
|
+
* @deprecated Use `BMCollectionViewDataSource` instead.
|
|
12652
|
+
*
|
|
12653
|
+
* ------
|
|
12578
12654
|
* The specification for a BMCollectionViewDataSet object, which is used to provide information to the collection view regarding the number
|
|
12579
12655
|
* of sections and objects that it should display, as well as their contents and the contents of any supplementary views defined by the current layout.
|
|
12580
12656
|
*
|
|
@@ -12791,6 +12867,185 @@ export interface BMCollectionViewDataSet<T = any> {
|
|
|
12791
12867
|
}
|
|
12792
12868
|
|
|
12793
12869
|
|
|
12870
|
+
/**
|
|
12871
|
+
* Describes a `BMCollectionViewDataSource` object, which is used to provide information to the collection view regarding the number
|
|
12872
|
+
* of sections and objects that it should display, as well as their contents and the contents of any supplementary views defined by the current layout.
|
|
12873
|
+
*
|
|
12874
|
+
* There is no built-in concrete implementation for this interface; all objects implementing this interface must define their own methods.
|
|
12875
|
+
*
|
|
12876
|
+
*/
|
|
12877
|
+
export interface BMCollectionViewDataSource<T = any> {
|
|
12878
|
+
|
|
12879
|
+
/**
|
|
12880
|
+
* Returns the number of sections in the data set.
|
|
12881
|
+
* @param collectionView The collection view for which the number of sections should be returned.
|
|
12882
|
+
* @return The number of sections.
|
|
12883
|
+
*
|
|
12884
|
+
*/
|
|
12885
|
+
collectionViewNumberOfSections(collectionView: BMCollectionView): Int;
|
|
12886
|
+
|
|
12887
|
+
|
|
12888
|
+
/**
|
|
12889
|
+
* Returns the number of cells in the given section.
|
|
12890
|
+
* @param collectionView The collection view for which the number of objects should be returned.
|
|
12891
|
+
* @param index The section's index.
|
|
12892
|
+
* @return The number of cells.
|
|
12893
|
+
*
|
|
12894
|
+
*/
|
|
12895
|
+
collectionViewNumberOfObjectsInSectionAtIndex(collectionView: BMCollectionView, index: Int): Int;
|
|
12896
|
+
|
|
12897
|
+
|
|
12898
|
+
/**
|
|
12899
|
+
* Returns the index path for the object with the specified section and row indexes.
|
|
12900
|
+
* @param collectionView The collection view for which the number of objects should be returned.
|
|
12901
|
+
* @param row The object's index within the section.
|
|
12902
|
+
* @param inSectionAtIndex The section's index.
|
|
12903
|
+
* @return The index path if these indexes are part of the data set,
|
|
12904
|
+
* `undefined` otherwise. `undefined` may only be returned during
|
|
12905
|
+
* animated data updates while `isUsingOldData` returns `YES`.
|
|
12906
|
+
*
|
|
12907
|
+
*/
|
|
12908
|
+
collectionViewIndexPathForObjectAtRow(collectionView: BMCollectionView, row: Int, {inSectionAtIndex}: {inSectionAtIndex: Int}): BMIndexPath<T> | null | undefined;
|
|
12909
|
+
|
|
12910
|
+
|
|
12911
|
+
/**
|
|
12912
|
+
* Returns the index path for the specified object.
|
|
12913
|
+
* @param collectionView The collection view for which the index path should be returned.
|
|
12914
|
+
* @param object The object.
|
|
12915
|
+
* @return The index path, if the object is part of the data set,
|
|
12916
|
+
* `undefined` otherwise. `undefined` may only be returned during
|
|
12917
|
+
* animated data updates while `isUsingOldData` returns `YES`.
|
|
12918
|
+
*
|
|
12919
|
+
*/
|
|
12920
|
+
collectionViewIndexPathForObject(collectionView: BMCollectionView, object: any): BMIndexPath<T> | null | undefined;
|
|
12921
|
+
|
|
12922
|
+
|
|
12923
|
+
/**
|
|
12924
|
+
* Returns the cell for the object at the specified index path.
|
|
12925
|
+
* To retrieve a cell, use the collection view's `dequeueCellForReuseIdentifier` method,
|
|
12926
|
+
* passing in the appropriate identifier for your cell depending on the item at the specified index path.
|
|
12927
|
+
* The data source object defines the reuse identifiers that the cells have.
|
|
12928
|
+
* @param collectionView The collection view for which the cell should be returned.
|
|
12929
|
+
* @param indexPath The index path.
|
|
12930
|
+
* @return The cell.
|
|
12931
|
+
*
|
|
12932
|
+
*/
|
|
12933
|
+
collectionViewCellForItemAtIndexPath(collectionView: BMCollectionView, indexPath: BMIndexPath<T>): BMCollectionViewCell;
|
|
12934
|
+
|
|
12935
|
+
|
|
12936
|
+
/**
|
|
12937
|
+
* Returns the cell for the supplementary view of the specified type at the specified index path.
|
|
12938
|
+
* To retrieve a cell, use the collection view's `dequeueCellForSupplementaryViewWithIdentifier`,
|
|
12939
|
+
* passing in the supplementary view's type as the parameter.
|
|
12940
|
+
* Both the supplementary's view kind and its index path are defined entirely by the layout object
|
|
12941
|
+
* and the data source must not return a supplementary view of a different kind from this method.
|
|
12942
|
+
* @param collectionView The collection view for which the cell should be returned.
|
|
12943
|
+
* @param identifier The supplementary view's type identifier.
|
|
12944
|
+
* @param atIndexPath The supplementary view's index path.
|
|
12945
|
+
* @return The cell.
|
|
12946
|
+
*
|
|
12947
|
+
*/
|
|
12948
|
+
collectionViewCellForSupplementaryViewWithIdentifier(collectionView: BMCollectionView, identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath<T>}): BMCollectionViewCell;
|
|
12949
|
+
|
|
12950
|
+
|
|
12951
|
+
/**
|
|
12952
|
+
* If this data set performs full data updates, this function is required. For data sets that never update, or those that
|
|
12953
|
+
* can perform delta updates, this method is optional.
|
|
12954
|
+
* This function may be invoked by the collection view during a full data update to access the old data set.
|
|
12955
|
+
* When this function is invoked with the parameter set to `YES`, the data set object should return values from the old data set
|
|
12956
|
+
* for all data and index path queries.
|
|
12957
|
+
* When this function is invoked with the parameter set to `NO`, the data set object should return values from the new data set.
|
|
12958
|
+
* Before the update is finished, the collection view will always invoke this method with the parameter set to `NO`.
|
|
12959
|
+
* @param collectionView The collection view that is switching the data set.
|
|
12960
|
+
* @param use `YES` if the data set should switch to the old data, `NO` if it should switch to the new data.
|
|
12961
|
+
*
|
|
12962
|
+
*/
|
|
12963
|
+
collectionViewUseOldData?(collectionView: BMCollectionView, use: boolean): void;
|
|
12964
|
+
|
|
12965
|
+
|
|
12966
|
+
/**
|
|
12967
|
+
* If this data set performs full data updates, this function is required. For data sets that never update, or those that
|
|
12968
|
+
* can perform delta updates, this method is optional.
|
|
12969
|
+
* This function may be invoked by the collection view during a full data update to determine if this data set is currently serving the previous data.
|
|
12970
|
+
* The data set must return YES if it is serving up the old data, NO otherwise.
|
|
12971
|
+
* @param collectionView The collection view whose old data set should be retrieved.
|
|
12972
|
+
* @return YES if this data source is currently serving the old data, NO otherwise.
|
|
12973
|
+
*
|
|
12974
|
+
*/
|
|
12975
|
+
collectionViewIsUsingOldData(collectionView: BMCollectionView): boolean;
|
|
12976
|
+
|
|
12977
|
+
|
|
12978
|
+
/**
|
|
12979
|
+
* This method must be implemented by data set objects that support moving items for interactive drag gestures.
|
|
12980
|
+
* Data set objects implementing this method are expected to update their internal data structures to match
|
|
12981
|
+
* the item's new position, then trigger a data update to run on the collection view.
|
|
12982
|
+
* Optionally, data sets may reject the change and not perform any action.
|
|
12983
|
+
*
|
|
12984
|
+
* ---
|
|
12985
|
+
* For collection views that support moving items, this method must be implemented by the data sets these collection views
|
|
12986
|
+
* use. In this case, data sets that don't support moving items may simply return `NO` from this method.
|
|
12987
|
+
* @param collectionView The collection view that is moving the item.
|
|
12988
|
+
* @param indexPath The item's current index path.
|
|
12989
|
+
* @param toIndexPath The index path to which the item should move.
|
|
12990
|
+
* @return `YES` if the data set has performed the requested change, `NO` otherwise.
|
|
12991
|
+
*
|
|
12992
|
+
*/
|
|
12993
|
+
collectionViewMoveItemFromIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath<T>, {toIndexPath}: {toIndexPath: BMIndexPath<T>}): boolean;
|
|
12994
|
+
|
|
12995
|
+
|
|
12996
|
+
/**
|
|
12997
|
+
* This method may be implemented by data set objects that support moving items for interactive drag gestures.
|
|
12998
|
+
* Data set objects implementing this method are expected to update their internal data structures to match
|
|
12999
|
+
* the items' new positions, then trigger a data update to run on the collection view.
|
|
13000
|
+
* Optionally, data sets may reject the change and not perform any action or only partially accept the update
|
|
13001
|
+
* and move just some of the items.
|
|
13002
|
+
* The order of the items in the array is guaranteed to be such that the target index paths are in ascending order.
|
|
13003
|
+
* Implementing this method is optional and if it is not implemented, collection view will repeatedly invoke
|
|
13004
|
+
* `moveItemFromIndexPath(_, {toIndexPath})` passing in each of the items that need to be moved.
|
|
13005
|
+
* @param collectionView The collection view that is moving the items.
|
|
13006
|
+
* @param indexPaths An array of index paths identifying which items have to be moved.
|
|
13007
|
+
* @param toIndexPath The starting index path to which the items should move. This represents the index path of the current layout
|
|
13008
|
+
* before any items may have moved. It is the data source's responsibility to adjust this index path as the items shift
|
|
13009
|
+
* within its data structure.
|
|
13010
|
+
* @return An array of index paths specifying the positions of the items after they have been moved.
|
|
13011
|
+
* The index paths in this array are not required to match either of the lists supplied by
|
|
13012
|
+
* collection view.
|
|
13013
|
+
*
|
|
13014
|
+
*/
|
|
13015
|
+
collectionViewMoveItemsFromIndexPaths?(collectionView: BMCollectionView, indexPaths: BMIndexPath<T>[], {toIndexPath}: {toIndexPath: BMIndexPath<T>}): BMIndexPath<T>[];
|
|
13016
|
+
|
|
13017
|
+
|
|
13018
|
+
/**
|
|
13019
|
+
* This method may be implemented by data source objects that support removing items for interactive drag gestures.
|
|
13020
|
+
* Data source objects implementing this method are expected to update their internal data structures to remove
|
|
13021
|
+
* the items, then trigger a data update to run on the collection view.
|
|
13022
|
+
* Optionally, data sources may reject the change and not perform any action or only partially accept the update
|
|
13023
|
+
* and remove just some of the items, by changing their internal data structures appropriately.
|
|
13024
|
+
* The order of the items in the array is guaranteed to be such that the target index paths are in ascending order.
|
|
13025
|
+
* @param collectionView The collection view that is removing the items.
|
|
13026
|
+
* @param indexPaths An array of index paths identifying which items have to be removed.
|
|
13027
|
+
*
|
|
13028
|
+
*/
|
|
13029
|
+
collectionViewRemoveItemsAtIndexPaths?(collectionView: BMCollectionView, indexPaths: BMIndexPath<T>[]): void;
|
|
13030
|
+
|
|
13031
|
+
|
|
13032
|
+
/**
|
|
13033
|
+
* This method may be implemented by data source objects that support transferring items from another collection view.
|
|
13034
|
+
* Data source objects implementing this method are expected to update their internal data structures to add
|
|
13035
|
+
* the items, then trigger a data update to run on the collection view. This data update must be triggered before
|
|
13036
|
+
* this method returns for the appropriate animation to play on the items being transferred.
|
|
13037
|
+
* Optionally, data sources may reject the change and not perform any action or only partially accept the update
|
|
13038
|
+
* and add just some of the items, by changing their internal data structures appropriately.
|
|
13039
|
+
* @param collectionView The collection view into which items are being inserted.
|
|
13040
|
+
* @param items An array of objects to add to the collection view.
|
|
13041
|
+
* @param toIndexPath The starting index path to which the items should be inserted.
|
|
13042
|
+
*
|
|
13043
|
+
*/
|
|
13044
|
+
collectionViewInsertItems?(collectionView: BMCollectionView, items: any[], {toIndexPath}: {toIndexPath: BMIndexPath<T>}): void;
|
|
13045
|
+
|
|
13046
|
+
}
|
|
13047
|
+
|
|
13048
|
+
|
|
12794
13049
|
/**
|
|
12795
13050
|
* The specification for a `BMCollectionViewDelegate` object.
|
|
12796
13051
|
*
|
|
@@ -13665,6 +13920,51 @@ export class BMWindow extends BMView {
|
|
|
13665
13920
|
initWithFrame(frame: BMRect, {toolbar, modal}?: {toolbar?: boolean | null | undefined, modal?: boolean | null | undefined}): BMWindow;
|
|
13666
13921
|
|
|
13667
13922
|
|
|
13923
|
+
/**
|
|
13924
|
+
* Starts a drag event from the specified `mousedown` or `touchstart` event that moves this window.
|
|
13925
|
+
* When this method is invoked, further mouse and touch events will be blocked until the drag finishes.
|
|
13926
|
+
*
|
|
13927
|
+
* If there is already a drag operation in progress or if this window is full screen or a modal window,
|
|
13928
|
+
* this method has no effect.
|
|
13929
|
+
* @param event The `mousedown` or `touchstart` event from which to begin
|
|
13930
|
+
* the window movement.
|
|
13931
|
+
*
|
|
13932
|
+
*/
|
|
13933
|
+
performDragWithEvent(event: MouseEvent | TouchEvent): void;
|
|
13934
|
+
|
|
13935
|
+
|
|
13936
|
+
/**
|
|
13937
|
+
* Starts a drag event from the specified `mousedown` event that will move this window.
|
|
13938
|
+
* When this method is invoked, further mouse events will be blocked until the drag finishes.
|
|
13939
|
+
*
|
|
13940
|
+
* If there is already a drag operation in progress or if this window is full screen or a modal window,
|
|
13941
|
+
* this method has no effect.
|
|
13942
|
+
* @param event The `mousedown` event from which to begin the window movement.
|
|
13943
|
+
*
|
|
13944
|
+
*/
|
|
13945
|
+
performDragWithMouseEvent(event: MouseEvent | TouchEvent): void;
|
|
13946
|
+
|
|
13947
|
+
|
|
13948
|
+
/**
|
|
13949
|
+
* The identifier of the touch point that is tracked during a drag operation. `undefined`
|
|
13950
|
+
* when not tracking a drag.
|
|
13951
|
+
*
|
|
13952
|
+
*/
|
|
13953
|
+
private _touchDragPoint: string;
|
|
13954
|
+
|
|
13955
|
+
/**
|
|
13956
|
+
* Starts a drag event from the specified `touchstart` event that will move this window.
|
|
13957
|
+
* When this method is invoked, further touch events will be blocked until the drag finishes.
|
|
13958
|
+
*
|
|
13959
|
+
*
|
|
13960
|
+
* If there is already a drag operation in progress or if this window is full screen or a modal window,
|
|
13961
|
+
* this method has no effect.
|
|
13962
|
+
* @param event The `touchstart` event from which to begin the window movement.
|
|
13963
|
+
*
|
|
13964
|
+
*/
|
|
13965
|
+
performDragWithTouchEvent(event: MouseEvent | TouchEvent): void;
|
|
13966
|
+
|
|
13967
|
+
|
|
13668
13968
|
/**
|
|
13669
13969
|
* Invoked on non-modal windows when the viewport resizes.
|
|
13670
13970
|
* @param event The event that triggered this action.
|
|
@@ -474,7 +474,7 @@ BMExtend(BMMonacoCodeEditor.prototype, BMCodeEditor.prototype, {
|
|
|
474
474
|
experimentalDecorators: YES,
|
|
475
475
|
strict: YES,
|
|
476
476
|
inlineSourceMap: YES,
|
|
477
|
-
module: monaco.languages.typescript.ModuleKind.
|
|
477
|
+
module: monaco.languages.typescript.ModuleKind.ES2015,
|
|
478
478
|
noImplicitUseStrict: YES
|
|
479
479
|
});
|
|
480
480
|
|
|
@@ -487,7 +487,7 @@ BMExtend(BMMonacoCodeEditor.prototype, BMCodeEditor.prototype, {
|
|
|
487
487
|
inlineSources: YES,
|
|
488
488
|
noImplicitUseStrict: YES,
|
|
489
489
|
alwaysStrict: NO,
|
|
490
|
-
module: monaco.languages.typescript.ModuleKind.
|
|
490
|
+
module: monaco.languages.typescript.ModuleKind.ES2015,
|
|
491
491
|
useDefineForClassFields: NO,
|
|
492
492
|
});
|
|
493
493
|
|