bm-core-ui 2.12.0-beta.4 → 2.12.0-beta.5
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
CHANGED
|
@@ -6313,7 +6313,7 @@ export interface BMDropDelegate {
|
|
|
6313
6313
|
* if the current action should be retained.
|
|
6314
6314
|
*
|
|
6315
6315
|
*/
|
|
6316
|
-
dropSessionDidUpdate?(session: BMDropSession):
|
|
6316
|
+
dropSessionDidUpdate?(session: BMDropSession): BMDropSessionAction | null | undefined;
|
|
6317
6317
|
|
|
6318
6318
|
|
|
6319
6319
|
/**
|
|
@@ -6326,7 +6326,7 @@ export interface BMDropDelegate {
|
|
|
6326
6326
|
|
|
6327
6327
|
|
|
6328
6328
|
/**
|
|
6329
|
-
* Invoked to notify the delegate that the specified drop session is about to finish. This is invoked for drop
|
|
6329
|
+
* Invoked to notify the delegate that the specified drop session is about to finish. This is invoked for a drop
|
|
6330
6330
|
* delegate that has returned `YES` from `dropSessionCanBegin` regardless of whether the drop finished
|
|
6331
6331
|
* in the target view's frame or not.
|
|
6332
6332
|
* @param session The drop session that ended.
|
|
@@ -6336,7 +6336,7 @@ export interface BMDropDelegate {
|
|
|
6336
6336
|
|
|
6337
6337
|
|
|
6338
6338
|
/**
|
|
6339
|
-
* Invoked to notify the delegate that the specified drop session has finished. This is invoked for drop
|
|
6339
|
+
* Invoked to notify the delegate that the specified drop session has finished. This is invoked for a drop
|
|
6340
6340
|
* delegate that has returned `YES` from `dropSessionCanBegin` regardless of whether the drop finished
|
|
6341
6341
|
* in the target view's frame or not.
|
|
6342
6342
|
* @param session The drop session that ended.
|
|
@@ -13039,7 +13039,7 @@ export class BMCollectionViewScrollingDirection {
|
|
|
13039
13039
|
}
|
|
13040
13040
|
|
|
13041
13041
|
/**
|
|
13042
|
-
* Controls the final horizontal scrolling position of a
|
|
13042
|
+
* Controls the final horizontal scrolling position of a programmatic scroll.
|
|
13043
13043
|
*
|
|
13044
13044
|
*/
|
|
13045
13045
|
export class BMCollectionViewScrollingGravityHorizontal {
|
|
@@ -13065,7 +13065,7 @@ export class BMCollectionViewScrollingGravityHorizontal {
|
|
|
13065
13065
|
}
|
|
13066
13066
|
|
|
13067
13067
|
/**
|
|
13068
|
-
* Controls the final vertical scrolling position of a
|
|
13068
|
+
* Controls the final vertical scrolling position of a programmatic scroll.
|
|
13069
13069
|
*
|
|
13070
13070
|
*/
|
|
13071
13071
|
export class BMCollectionViewScrollingGravityVertical {
|
|
@@ -13116,7 +13116,7 @@ export class BMCollectionViewScrollingGravityVertical {
|
|
|
13116
13116
|
*
|
|
13117
13117
|
*
|
|
13118
13118
|
*/
|
|
13119
|
-
export class BMCollectionView<T = any> extends BMView {
|
|
13119
|
+
export class BMCollectionView<T = any> extends BMView implements BMDragDelegate, BMDropDelegate {
|
|
13120
13120
|
|
|
13121
13121
|
/**
|
|
13122
13122
|
* The last measured intrinsic size for this collection view.
|
|
@@ -217,7 +217,7 @@ export var BMCollectionViewScrollingDirection = Object.freeze({ // <enum>
|
|
|
217
217
|
// @type BMCollectionViewScrollingGravityHorizontal
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
* Controls the final horizontal scrolling position of a
|
|
220
|
+
* Controls the final horizontal scrolling position of a programmatic scroll.
|
|
221
221
|
*/
|
|
222
222
|
export var BMCollectionViewScrollingGravityHorizontal = Object.freeze({ // <enum>
|
|
223
223
|
/**
|
|
@@ -241,7 +241,7 @@ export var BMCollectionViewScrollingGravityHorizontal = Object.freeze({ // <enum
|
|
|
241
241
|
// @type BMCollectionViewScrollingGravityVertical
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
* Controls the final vertical scrolling position of a
|
|
244
|
+
* Controls the final vertical scrolling position of a programmatic scroll.
|
|
245
245
|
*/
|
|
246
246
|
export var BMCollectionViewScrollingGravityVertical = Object.freeze({ // <enum>
|
|
247
247
|
/**
|
|
@@ -262,7 +262,7 @@ export var BMCollectionViewScrollingGravityVertical = Object.freeze({ // <enum>
|
|
|
262
262
|
|
|
263
263
|
// @endtype
|
|
264
264
|
|
|
265
|
-
// @type BMCollectionView<T = any> extends BMView
|
|
265
|
+
// @type BMCollectionView<T = any> extends BMView implements BMDragDelegate, BMDropDelegate
|
|
266
266
|
|
|
267
267
|
// Contains all active collection view instances
|
|
268
268
|
var _BMCollectionViews = new Map;
|
|
@@ -666,6 +666,11 @@ BMDragSession.prototype = {
|
|
|
666
666
|
const requiresDropPreviews = this._delegate.dragSessionRequiresCustomDropAnimationForItems?.(this, items.slice());
|
|
667
667
|
|
|
668
668
|
if (requiresDropPreviews) {
|
|
669
|
+
this._dropPreviews = this._previewSet._dragPreviews.entries().map(([i, dragPreview]) => {
|
|
670
|
+
dragPreview._dropHandled = YES;
|
|
671
|
+
return new BMDropPreview()._initWithDragPreview(dragPreview, {forItem: i});
|
|
672
|
+
});
|
|
673
|
+
|
|
669
674
|
this._delegate.dragSessionAnimateDropWithPreviews?.(this, this._dropPreviews);
|
|
670
675
|
}
|
|
671
676
|
}
|
|
@@ -830,6 +830,7 @@ BMDropPreview.prototype = {
|
|
|
830
830
|
translateX: `${-transformRect.origin.x + (this.transform.translateX ?? 0)}px`,
|
|
831
831
|
translateY: `${-transformRect.origin.y + (this.transform.translateY ?? 0)}px`,
|
|
832
832
|
rotateZ: `${this.transform.rotateZ ?? 0}deg`,
|
|
833
|
+
opacity: 0,
|
|
833
834
|
});
|
|
834
835
|
targetController.registerBuiltInPropertiesWithDictionary({
|
|
835
836
|
scaleX: [1, 1 / transformRect.size.width],
|
|
@@ -842,6 +843,7 @@ BMDropPreview.prototype = {
|
|
|
842
843
|
|
|
843
844
|
BMAnimationContextAddCompletionHandler(() => {
|
|
844
845
|
nodeCopy.remove();
|
|
846
|
+
this.previewNode.remove();
|
|
845
847
|
});
|
|
846
848
|
},
|
|
847
849
|
|
|
@@ -6313,7 +6313,7 @@ declare interface BMDropDelegate {
|
|
|
6313
6313
|
* if the current action should be retained.
|
|
6314
6314
|
*
|
|
6315
6315
|
*/
|
|
6316
|
-
dropSessionDidUpdate?(session: BMDropSession):
|
|
6316
|
+
dropSessionDidUpdate?(session: BMDropSession): BMDropSessionAction | null | undefined;
|
|
6317
6317
|
|
|
6318
6318
|
|
|
6319
6319
|
/**
|
|
@@ -6326,7 +6326,7 @@ declare interface BMDropDelegate {
|
|
|
6326
6326
|
|
|
6327
6327
|
|
|
6328
6328
|
/**
|
|
6329
|
-
* Invoked to notify the delegate that the specified drop session is about to finish. This is invoked for drop
|
|
6329
|
+
* Invoked to notify the delegate that the specified drop session is about to finish. This is invoked for a drop
|
|
6330
6330
|
* delegate that has returned `YES` from `dropSessionCanBegin` regardless of whether the drop finished
|
|
6331
6331
|
* in the target view's frame or not.
|
|
6332
6332
|
* @param session The drop session that ended.
|
|
@@ -6336,7 +6336,7 @@ declare interface BMDropDelegate {
|
|
|
6336
6336
|
|
|
6337
6337
|
|
|
6338
6338
|
/**
|
|
6339
|
-
* Invoked to notify the delegate that the specified drop session has finished. This is invoked for drop
|
|
6339
|
+
* Invoked to notify the delegate that the specified drop session has finished. This is invoked for a drop
|
|
6340
6340
|
* delegate that has returned `YES` from `dropSessionCanBegin` regardless of whether the drop finished
|
|
6341
6341
|
* in the target view's frame or not.
|
|
6342
6342
|
* @param session The drop session that ended.
|
|
@@ -13039,7 +13039,7 @@ declare class BMCollectionViewScrollingDirection {
|
|
|
13039
13039
|
}
|
|
13040
13040
|
|
|
13041
13041
|
/**
|
|
13042
|
-
* Controls the final horizontal scrolling position of a
|
|
13042
|
+
* Controls the final horizontal scrolling position of a programmatic scroll.
|
|
13043
13043
|
*
|
|
13044
13044
|
*/
|
|
13045
13045
|
declare class BMCollectionViewScrollingGravityHorizontal {
|
|
@@ -13065,7 +13065,7 @@ declare class BMCollectionViewScrollingGravityHorizontal {
|
|
|
13065
13065
|
}
|
|
13066
13066
|
|
|
13067
13067
|
/**
|
|
13068
|
-
* Controls the final vertical scrolling position of a
|
|
13068
|
+
* Controls the final vertical scrolling position of a programmatic scroll.
|
|
13069
13069
|
*
|
|
13070
13070
|
*/
|
|
13071
13071
|
declare class BMCollectionViewScrollingGravityVertical {
|
|
@@ -13116,7 +13116,7 @@ declare class BMCollectionViewScrollingGravityVertical {
|
|
|
13116
13116
|
*
|
|
13117
13117
|
*
|
|
13118
13118
|
*/
|
|
13119
|
-
declare class BMCollectionView<T = any> extends BMView {
|
|
13119
|
+
declare class BMCollectionView<T = any> extends BMView implements BMDragDelegate, BMDropDelegate {
|
|
13120
13120
|
|
|
13121
13121
|
/**
|
|
13122
13122
|
* The last measured intrinsic size for this collection view.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "bm-core-ui",
|
|
3
3
|
"packageName": "BMCoreUI",
|
|
4
4
|
"moduleName": "BMCoreUI",
|
|
5
|
-
"version": "2.12.0-beta.
|
|
5
|
+
"version": "2.12.0-beta.5",
|
|
6
6
|
"description": "A collection of reusable UI classes.",
|
|
7
7
|
"thingworxServer": "http://localhost:8915",
|
|
8
8
|
"thingworxUser": "Administrator",
|