bm-core-ui 2.11.9-beta.2 → 2.12.0-beta.4

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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/build/@types/index.d.ts +2194 -94
  3. package/build/BMCollectionView/BMCollectionView.js +977 -196
  4. package/build/BMCollectionView/BMCollectionViewFlowLayout.js +11 -4
  5. package/build/BMCoreUI.css +133 -2
  6. package/build/BMView/BMDragSession.js +1150 -0
  7. package/build/BMView/BMDragSessionActions.js +121 -0
  8. package/build/BMView/BMDragSessionPreview.js +1631 -0
  9. package/build/BMView/BMLayoutConstraint_v2.5.js +14 -59
  10. package/build/BMView/BMView_v2.5.js +34 -3
  11. package/build/BMWindow/BMPopover/BMPopover.js +35 -20
  12. package/build/BMWindow/BMToolWindow.js +29 -1
  13. package/build/BMWindow/BMWindow.js +128 -65
  14. package/build/images/AlignBottom.png +0 -0
  15. package/build/images/AlignCenterX.png +0 -0
  16. package/build/images/AlignCenterY.png +0 -0
  17. package/build/images/AlignLeading.png +0 -0
  18. package/build/images/AlignTop.png +0 -0
  19. package/build/images/AlignTrailing.png +0 -0
  20. package/build/images/AllConstraints.png +0 -0
  21. package/build/images/BottomConstraint.png +0 -0
  22. package/build/images/CenterXConstraint.png +0 -0
  23. package/build/images/CenterYConstraint.png +0 -0
  24. package/build/images/CoreUI2.png +0 -0
  25. package/build/images/CoreUI2@2x.png +0 -0
  26. package/build/images/Desktop.png +0 -0
  27. package/build/images/DesktopMini.png +0 -0
  28. package/build/images/EqualHeight.png +0 -0
  29. package/build/images/EqualHorizontalSpacing.png +0 -0
  30. package/build/images/EqualHorizontalSpacingInSuperview.png +0 -0
  31. package/build/images/EqualVerticalSpacing.png +0 -0
  32. package/build/images/EqualVerticalSpacingInSuperview.png +0 -0
  33. package/build/images/EqualWidth.png +0 -0
  34. package/build/images/HeightConstraint.png +0 -0
  35. package/build/images/InactiveConstraints.png +0 -0
  36. package/build/images/Layout.png +0 -0
  37. package/build/images/LayoutVariables.png +0 -0
  38. package/build/images/LeftConstraint.png +0 -0
  39. package/build/images/OwnConstraints.png +0 -0
  40. package/build/images/Phone.png +0 -0
  41. package/build/images/PhoneLandscape.png +0 -0
  42. package/build/images/PhoneLandscapeMini.png +0 -0
  43. package/build/images/PhoneMini.png +0 -0
  44. package/build/images/PhonePortrait.png +0 -0
  45. package/build/images/PhonePortraitMini.png +0 -0
  46. package/build/images/Properties.png +0 -0
  47. package/build/images/RightConstraint.png +0 -0
  48. package/build/images/SubviewConstraints.png +0 -0
  49. package/build/images/Tablet.png +0 -0
  50. package/build/images/TabletLandscape.png +0 -0
  51. package/build/images/TabletLandscapeMini.png +0 -0
  52. package/build/images/TabletMini.png +0 -0
  53. package/build/images/TabletPortrait.png +0 -0
  54. package/build/images/TabletPortraitMini.png +0 -0
  55. package/build/images/TopConstraint.png +0 -0
  56. package/build/images/WidthConstraint.png +0 -0
  57. package/build/index.js +4 -0
  58. package/lib/@types/BMCoreUI.min.d.ts +2194 -94
  59. package/lib/BMCoreUI.min.js +1 -1
  60. package/package.json +2 -2
@@ -0,0 +1,121 @@
1
+ // @ts-check
2
+
3
+ // @type BMDropSessionActionKind
4
+
5
+ export const BMDropSessionActionKind = Object.freeze({ // <enum>
6
+
7
+ /**
8
+ * Indicates that this drag session is ignored by the drop target and should be treated
9
+ * as if the items are simply dragged out of the source view.
10
+ */
11
+ Ignore: 'Ignore', // <enum>
12
+
13
+ /**
14
+ * Indicates that the drop target can normally accept items from the source view but none
15
+ * of the items in the current session are acceptable. Finishing the gesture over the
16
+ * current drop target should cancel the gesture.
17
+ */
18
+ Reject: 'Reject', // <enum>
19
+
20
+ /**
21
+ * Indicates that the drop target can accept the items in the drag session, but dropping them
22
+ * will cause the items to be deleted. Requires the source view to specify a `.Move` transfer
23
+ * for this drag session, otherwise the action reverts to `.Reject`.
24
+ */
25
+ Delete: 'Delete', // <enum>
26
+
27
+ /**
28
+ * Indicates that the drop target can accept all the items in the drag session.
29
+ */
30
+ Accept: 'Accept', // <enum>
31
+
32
+ /**
33
+ * Indicates that the drop target can accept only some of the items in the drag session.
34
+ * Finishing the gesture will cause the unacceptable items to be discarded.
35
+ */
36
+ AcceptPartially: 'AcceptPartially', // <enum>
37
+
38
+ });
39
+
40
+ // @endtype
41
+
42
+ // @type BMDragSessionActionKind
43
+
44
+ export const BMDragSessionActionKind = Object.freeze({ // <enum>
45
+
46
+ /**
47
+ * Indicates that dropping the items at the current location will have no additional effect.
48
+ */
49
+ Ignore: 'Ignore', // <enum>
50
+
51
+ /**
52
+ * Indicates that ending the drag session at the current location will cause the items to be
53
+ * deleted.
54
+ */
55
+ Delete: 'Delete', // <enum>
56
+
57
+ /**
58
+ * Indicates that dropping the items at the current location would normally cause an effect,
59
+ * but that action cannot currently be performed.
60
+ * Finishing the gesture over the current drop target should cancel the gesture.
61
+ */
62
+ Reject: 'Reject', // <enum>
63
+
64
+ });
65
+
66
+ // Controls the association between drop actions and the classes to apply to the drag indicator
67
+ export const _BMDragSessionDropActionMap = {
68
+ [BMDragSessionActionKind.Ignore]: 'BMDragSessionIndicatorBlue',
69
+ [BMDragSessionActionKind.Delete]: 'BMDragSessionIndicatorRed',
70
+ [BMDragSessionActionKind.Reject]: 'BMDragSessionIndicatorGray',
71
+ [BMDropSessionActionKind.Accept]: 'BMDragSessionIndicatorGreen',
72
+ [BMDropSessionActionKind.AcceptPartially]: 'BMDragSessionIndicatorYellow',
73
+ };
74
+
75
+ /**
76
+ * A dictionary having drag and drop action kinds as keys and the associated icon URLs as values.
77
+ */
78
+ export const _BMDragSessionIconMap = Object.freeze({
79
+ [BMDragSessionActionKind.Reject]: 'data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2220px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2220px%22%20fill%3D%22%23FFFFFF%22%3E%3Cpath%20d%3D%22M480-96q-79%200-149-30t-122.5-82.5Q156-261%20126-331T96-480q0-80%2030-149.5t82.5-122Q261-804%20331-834t149-30q80%200%20149.5%2030t122%2082.5Q804-699%20834-629.5T864-480q0%2079-30%20149t-82.5%20122.5Q699-156%20629.5-126T480-96Zm0-72q55%200%20104-18t89-50L236-673q-32%2040-50%2089t-18%20104q0%20130%2091%20221t221%2091Zm244-119q32-40%2050-89t18-104q0-130-91-221t-221-91q-55%200-104%2018t-89%2050l437%20437Z%22%2F%3E%3C%2Fsvg%3E',
80
+ [BMDragSessionActionKind.Ignore]: '',
81
+ [BMDragSessionActionKind.Delete]: 'data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2220px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2220px%22%20fill%3D%22%23FFFFFF%22%3E%3Cpath%20d%3D%22M312-144q-29.7%200-50.85-21.15Q240-186.3%20240-216v-480h-48v-72h192v-48h192v48h192v72h-48v479.57Q720-186%20698.85-165T648-144H312Zm336-552H312v480h336v-480ZM384-288h72v-336h-72v336Zm120%200h72v-336h-72v336ZM312-696v480-480Z%22%2F%3E%3C%2Fsvg%3E',
82
+ [BMDropSessionActionKind.Accept]: 'data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2220px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2220px%22%20fill%3D%22%23FFFFFF%22%3E%3Cpath%20d%3D%22M192-96v-72h576v72H192Zm288-144L219-576h141v-288h240v288h141L480-240Zm0-117%20114-147h-66v-288h-96v288h-66l114%20147Zm0-147Z%22%2F%3E%3C%2Fsvg%3E',
83
+ [BMDropSessionActionKind.AcceptPartially]: 'data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2220px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2220px%22%20fill%3D%22%23FFFFFF%22%3E%3Cpath%20d%3D%22M480-96%20216-360l51-51%20177%20177v-630h72v630l177-177%2051%2051L480-96Z%22%2F%3E%3C%2Fsvg%3E',
84
+ });
85
+
86
+ // @endtype
87
+
88
+ // @type _BMDragDropSessionAction
89
+
90
+ /**
91
+ * An object that describes the action that should be performed for a drag or drop
92
+ * session when it ends.
93
+ */
94
+ export function _BMDragDropSessionAction() {} // <constructor>
95
+
96
+ _BMDragDropSessionAction.prototype = {
97
+
98
+ /**
99
+ * The action to perform at the end of the drag session.
100
+ */
101
+ _action: BMDropSessionActionKind.Ignore, // <BMDragSessionActionKind or BMDropSessionActionKind>
102
+
103
+ /**
104
+ * If specified, the message text to display for this outcome.
105
+ */
106
+ _message: undefined, // <String, nullable>
107
+
108
+ /**
109
+ * If specified, the message markup to display for this outcome.
110
+ */
111
+ _messageHTML: undefined, // <String, nullable>
112
+
113
+ /**
114
+ * If specified when the action is `.AcceptPartially`, the drag items that are actually acceptable.
115
+ * If omitted, the UI will not indicate which items are acceptable.
116
+ */
117
+ _acceptableItems: undefined, // <[BMDragItem], nullable>
118
+
119
+ }
120
+
121
+ // @endtype