@cal.macconnachie/web-components 2.6.13 → 2.6.14

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 (3) hide show
  1. package/dist/index.d.ts +36 -0
  2. package/dist/index.js +1571 -1458
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -216,9 +216,16 @@ export declare class BaseDrawer extends BaseElement {
216
216
  private lastDragEndTime;
217
217
  private currentDetentIndex;
218
218
  private dragCommitted;
219
+ private touchStartYForContent;
220
+ private touchStartXForContent;
221
+ private hasDeterminedDirection;
222
+ private isScrollableContentAtTop;
223
+ private contentDragTransferred;
219
224
  private modalContainer?;
220
225
  private drawerContent?;
221
226
  private transitionDuration;
227
+ private scrollEndTimeoutId;
228
+ private preventBackgroundScroll;
222
229
  private boundKeyHandler;
223
230
  connectedCallback(): void;
224
231
  disconnectedCallback(): void;
@@ -231,11 +238,40 @@ export declare class BaseDrawer extends BaseElement {
231
238
  private getActiveDetents;
232
239
  private isClosable;
233
240
  private getCurrentDetentHeight;
241
+ /**
242
+ * Check if all scrollable content is at the top position
243
+ * Must check slotted content (light DOM), not shadow DOM
244
+ */
245
+ private isContentScrolledToTop;
246
+ /**
247
+ * Handle scroll events on content with debouncing
248
+ */
249
+ private handleContentScroll;
250
+ /**
251
+ * Attach scroll listeners to slotted drawer content
252
+ */
253
+ private attachScrollListeners;
254
+ /**
255
+ * Remove scroll listeners from slotted drawer content
256
+ */
257
+ private removeScrollListeners;
234
258
  private handleClose;
235
259
  private handleOverlayClick;
236
260
  private handleDragStart;
237
261
  private handleDragMove;
238
262
  private handleDragEnd;
263
+ /**
264
+ * Handle touch start on drawer content for drag-from-anywhere
265
+ */
266
+ private handleContentTouchStart;
267
+ /**
268
+ * Handle touch move on drawer content with direction detection
269
+ */
270
+ private handleContentTouchMove;
271
+ /**
272
+ * Handle touch end on drawer content
273
+ */
274
+ private handleContentTouchEnd;
239
275
  private handleHandleClick;
240
276
  closeDrawer(): void;
241
277
  openDrawer(): void;