@breadstone/mosaik-elements-foundation 0.0.211 → 0.0.214
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/Controls/Components/Abstracts/CustomElement.js.map +1 -1
- package/Controls/Components/Overlays/Dialog/DialogService.d.ts +0 -22
- package/Controls/Components/Overlays/Dialog/DialogService.d.ts.map +1 -1
- package/Controls/Components/Overlays/Dialog/DialogService.js +2 -12
- package/Controls/Components/Overlays/Dialog/DialogService.js.map +1 -1
- package/Controls/Components/Overlays/Dialog/Themes/DialogElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Overlays/Dialog/Themes/DialogElement.Cosmopolitan.js +13 -0
- package/Controls/Components/Overlays/Dialog/Themes/DialogElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Overlays/Dialog/Themes/DialogElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Overlays/Dialog/Themes/DialogElement.Joy.js +13 -0
- package/Controls/Components/Overlays/Dialog/Themes/DialogElement.Joy.js.map +1 -1
- package/Controls/Components/Overlays/Dialog/Themes/DialogElement.Memphis.d.ts.map +1 -1
- package/Controls/Components/Overlays/Dialog/Themes/DialogElement.Memphis.js +13 -0
- package/Controls/Components/Overlays/Dialog/Themes/DialogElement.Memphis.js.map +1 -1
- package/Controls/Components/Overlays/Dialog/behaviors/DialogStackBehavior.d.ts +119 -0
- package/Controls/Components/Overlays/Dialog/behaviors/DialogStackBehavior.d.ts.map +1 -0
- package/Controls/Components/Overlays/Dialog/behaviors/DialogStackBehavior.js +246 -0
- package/Controls/Components/Overlays/Dialog/behaviors/DialogStackBehavior.js.map +1 -0
- package/Controls/Components/Overlays/Dialog/behaviors/IDialogStackBehaviorConfig.d.ts +64 -0
- package/Controls/Components/Overlays/Dialog/behaviors/IDialogStackBehaviorConfig.d.ts.map +1 -0
- package/Controls/Components/Overlays/Dialog/behaviors/IDialogStackBehaviorConfig.js +15 -0
- package/Controls/Components/Overlays/Dialog/behaviors/IDialogStackBehaviorConfig.js.map +1 -0
- package/Controls/Components/Overlays/Dialog/behaviors/withDialogStackBehavior.d.ts +11 -0
- package/Controls/Components/Overlays/Dialog/behaviors/withDialogStackBehavior.d.ts.map +1 -0
- package/Controls/Components/Overlays/Dialog/behaviors/withDialogStackBehavior.js +14 -0
- package/Controls/Components/Overlays/Dialog/behaviors/withDialogStackBehavior.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerActionsElement.d.ts +44 -0
- package/Controls/Components/Overlays/Drawer/DrawerActionsElement.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerActionsElement.js +71 -0
- package/Controls/Components/Overlays/Drawer/DrawerActionsElement.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerActionsElementTemplate.d.ts +9 -0
- package/Controls/Components/Overlays/Drawer/DrawerActionsElementTemplate.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerActionsElementTemplate.js +36 -0
- package/Controls/Components/Overlays/Drawer/DrawerActionsElementTemplate.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/DrawerElement.d.ts +4 -2
- package/Controls/Components/Overlays/Drawer/DrawerElement.d.ts.map +1 -1
- package/Controls/Components/Overlays/Drawer/DrawerElement.js +4 -2
- package/Controls/Components/Overlays/Drawer/DrawerElement.js.map +1 -1
- package/Controls/Components/Overlays/Drawer/DrawerElementTemplate.d.ts.map +1 -1
- package/Controls/Components/Overlays/Drawer/DrawerElementTemplate.js +6 -1
- package/Controls/Components/Overlays/Drawer/DrawerElementTemplate.js.map +1 -1
- package/Controls/Components/Overlays/Drawer/DrawerService.d.ts +0 -17
- package/Controls/Components/Overlays/Drawer/DrawerService.d.ts.map +1 -1
- package/Controls/Components/Overlays/Drawer/DrawerService.js +4 -16
- package/Controls/Components/Overlays/Drawer/DrawerService.js.map +1 -1
- package/Controls/Components/Overlays/Drawer/IDrawerActionsElementProps.d.ts +9 -0
- package/Controls/Components/Overlays/Drawer/IDrawerActionsElementProps.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/IDrawerActionsElementProps.js +3 -0
- package/Controls/Components/Overlays/Drawer/IDrawerActionsElementProps.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Cosmopolitan.d.ts +6 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Cosmopolitan.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Cosmopolitan.js +76 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Cosmopolitan.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Joy.d.ts +6 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Joy.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Joy.js +76 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Joy.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Memphis.d.ts +6 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Memphis.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Memphis.js +76 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerActionsElement.Memphis.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/Themes/DrawerElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerElement.Cosmopolitan.js +48 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerElement.Joy.js +48 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerElement.Joy.js.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerElement.Memphis.d.ts.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerElement.Memphis.js +48 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerElement.Memphis.js.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerFooterElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerFooterElement.Cosmopolitan.js +0 -6
- package/Controls/Components/Overlays/Drawer/Themes/DrawerFooterElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerFooterElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerFooterElement.Joy.js +0 -6
- package/Controls/Components/Overlays/Drawer/Themes/DrawerFooterElement.Joy.js.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerFooterElement.Memphis.d.ts.map +1 -1
- package/Controls/Components/Overlays/Drawer/Themes/DrawerFooterElement.Memphis.js +0 -6
- package/Controls/Components/Overlays/Drawer/Themes/DrawerFooterElement.Memphis.js.map +1 -1
- package/Controls/Components/Overlays/Drawer/behaviors/DrawerStackBehavior.d.ts +136 -0
- package/Controls/Components/Overlays/Drawer/behaviors/DrawerStackBehavior.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/behaviors/DrawerStackBehavior.js +309 -0
- package/Controls/Components/Overlays/Drawer/behaviors/DrawerStackBehavior.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/behaviors/IDrawerStackBehaviorConfig.d.ts +57 -0
- package/Controls/Components/Overlays/Drawer/behaviors/IDrawerStackBehaviorConfig.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/behaviors/IDrawerStackBehaviorConfig.js +14 -0
- package/Controls/Components/Overlays/Drawer/behaviors/IDrawerStackBehaviorConfig.js.map +1 -0
- package/Controls/Components/Overlays/Drawer/behaviors/withDrawerStackBehavior.d.ts +11 -0
- package/Controls/Components/Overlays/Drawer/behaviors/withDrawerStackBehavior.d.ts.map +1 -0
- package/Controls/Components/Overlays/Drawer/behaviors/withDrawerStackBehavior.js +14 -0
- package/Controls/Components/Overlays/Drawer/behaviors/withDrawerStackBehavior.js.map +1 -0
- package/Controls/Components/Overlays/MessageBox/MessageBoxService.d.ts +0 -1
- package/Controls/Components/Overlays/MessageBox/MessageBoxService.d.ts.map +1 -1
- package/Controls/Components/Overlays/MessageBox/MessageBoxService.js +0 -5
- package/Controls/Components/Overlays/MessageBox/MessageBoxService.js.map +1 -1
- package/Controls/Components/Overlays/Sheet/SheetService.d.ts +0 -1
- package/Controls/Components/Overlays/Sheet/SheetService.d.ts.map +1 -1
- package/Controls/Components/Overlays/Sheet/SheetService.js +0 -5
- package/Controls/Components/Overlays/Sheet/SheetService.js.map +1 -1
- package/Controls/Components/Overlays/Toast/ToastElement.d.ts.map +1 -1
- package/Controls/Components/Overlays/Toast/ToastElement.js +8 -3
- package/Controls/Components/Overlays/Toast/ToastElement.js.map +1 -1
- package/Controls/Components/Overlays/Toast/ToastElementTemplate.js +1 -1
- package/Controls/Components/Overlays/Toast/ToastElementTemplate.js.map +1 -1
- package/Controls/Components/Overlays/Toast/ToastService.d.ts +0 -1
- package/Controls/Components/Overlays/Toast/ToastService.d.ts.map +1 -1
- package/Controls/Components/Overlays/Toast/ToastService.js +0 -5
- package/Controls/Components/Overlays/Toast/ToastService.js.map +1 -1
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizeEndEvent.d.ts +42 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizeEndEvent.d.ts.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizeEndEvent.js +3 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizeEndEvent.js.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizeStartEvent.d.ts +32 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizeStartEvent.d.ts.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizeStartEvent.js +3 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizeStartEvent.js.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizingEvent.d.ts +50 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizingEvent.d.ts.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizingEvent.js +3 -0
- package/Controls/Components/Primitives/ResizeThumb/Events/ResizeThumbResizingEvent.js.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/IResizeThumbElementProps.d.ts +40 -0
- package/Controls/Components/Primitives/ResizeThumb/IResizeThumbElementProps.d.ts.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/IResizeThumbElementProps.js +3 -0
- package/Controls/Components/Primitives/ResizeThumb/IResizeThumbElementProps.js.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/ResizeThumbElement.d.ts +251 -0
- package/Controls/Components/Primitives/ResizeThumb/ResizeThumbElement.d.ts.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/ResizeThumbElement.js +474 -0
- package/Controls/Components/Primitives/ResizeThumb/ResizeThumbElement.js.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/ResizeThumbElementTemplate.d.ts +9 -0
- package/Controls/Components/Primitives/ResizeThumb/ResizeThumbElementTemplate.d.ts.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/ResizeThumbElementTemplate.js +14 -0
- package/Controls/Components/Primitives/ResizeThumb/ResizeThumbElementTemplate.js.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Cosmopolitan.d.ts +6 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Cosmopolitan.d.ts.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Cosmopolitan.js +104 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Cosmopolitan.js.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Joy.d.ts +6 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Joy.d.ts.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Joy.js +142 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Joy.js.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Memphis.d.ts +6 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Memphis.d.ts.map +1 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Memphis.js +104 -0
- package/Controls/Components/Primitives/ResizeThumb/Themes/ResizeThumbElement.Memphis.js.map +1 -0
- package/Controls/Components/Ranges/MeterBar/MeterBarElement.d.ts +4 -1
- package/Controls/Components/Ranges/MeterBar/MeterBarElement.d.ts.map +1 -1
- package/Controls/Components/Ranges/MeterBar/MeterBarElement.js +4 -1
- package/Controls/Components/Ranges/MeterBar/MeterBarElement.js.map +1 -1
- package/Controls/Components/Ranges/MeterBar/Themes/MeterBarElement.Cosmopolitan.js +2 -2
- package/Controls/Components/Ranges/MeterBar/Themes/MeterBarElement.Joy.js +2 -2
- package/Controls/Components/Ranges/MeterBar/Themes/MeterBarElement.Memphis.js +2 -2
- package/Controls/Components/Selectors/Abstracts/Selector/SelectorElement.d.ts.map +1 -1
- package/Controls/Controllers/ResizeThumbController.d.ts +349 -0
- package/Controls/Controllers/ResizeThumbController.d.ts.map +1 -0
- package/Controls/Controllers/ResizeThumbController.js +520 -0
- package/Controls/Controllers/ResizeThumbController.js.map +1 -0
- package/Controls/Types/ResizeDirection.d.ts +54 -0
- package/Controls/Types/ResizeDirection.d.ts.map +1 -0
- package/Controls/Types/ResizeDirection.js +60 -0
- package/Controls/Types/ResizeDirection.js.map +1 -0
- package/Dom/Interval.d.ts +16 -1
- package/Dom/Interval.d.ts.map +1 -1
- package/Dom/Interval.js +25 -2
- package/Dom/Interval.js.map +1 -1
- package/Index.d.ts +15 -6
- package/Index.d.ts.map +1 -1
- package/Index.js +10 -4
- package/Index.js.map +1 -1
- package/Routing/PathToRegexp.d.ts +1 -1
- package/custom-elements.json +2088 -1155
- package/package.json +3 -3
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { type IEventEmitter } from '@breadstone/mosaik-elements';
|
|
2
|
+
import { type IAttachable } from '../../../Behaviors/Attachable';
|
|
3
|
+
import { ResizeDirection } from '../../../Types/ResizeDirection';
|
|
4
|
+
import { CustomElement } from '../../Abstracts/CustomElement';
|
|
5
|
+
import type { IResizeThumbResizeEndEvent, IResizeThumbResizeEndEventDetail } from './Events/ResizeThumbResizeEndEvent';
|
|
6
|
+
import type { IResizeThumbResizeStartEvent, IResizeThumbResizeStartEventDetail } from './Events/ResizeThumbResizeStartEvent';
|
|
7
|
+
import type { IResizeThumbResizingEvent, IResizeThumbResizingEventDetail } from './Events/ResizeThumbResizingEvent';
|
|
8
|
+
import type { IResizeThumbElementProps } from './IResizeThumbElementProps';
|
|
9
|
+
declare const ResizeThumbElement_base: (abstract new (...args: Array<any>) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array<any>) => import("../../../Behaviors/Disableable").IDisableableProps) & (abstract new (...args: Array<any>) => IAttachable) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor;
|
|
10
|
+
/**
|
|
11
|
+
* ResizeThumb - A primitive element that provides resize handle functionality.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* The ResizeThumb element is a low-level primitive that signals resizing capability
|
|
15
|
+
* in a specific direction. It handles user interactions (mouse/touch) and automatically
|
|
16
|
+
* resizes the attached control element.
|
|
17
|
+
*
|
|
18
|
+
* The element uses the Attachable behavior to connect to its target element, either
|
|
19
|
+
* through the `for` attribute referencing an element ID, or by automatically attaching
|
|
20
|
+
* to its parent element.
|
|
21
|
+
*
|
|
22
|
+
* Internally, this element uses a {@link ResizeThumbController} for all resize logic.
|
|
23
|
+
* For programmatic usage without a visual thumb, use the controller directly.
|
|
24
|
+
*
|
|
25
|
+
* This element has minimal visual appearance by design - parent components like Dialog,
|
|
26
|
+
* Sheet, or Panel are expected to style the thumb appropriately for their context.
|
|
27
|
+
*
|
|
28
|
+
* @name ResizeThumb
|
|
29
|
+
* @element mosaik-resize-thumb
|
|
30
|
+
* @category Primitive
|
|
31
|
+
*
|
|
32
|
+
* @slot - Default slot for custom thumb content.
|
|
33
|
+
*
|
|
34
|
+
* @csspart thumb - The main thumb element.
|
|
35
|
+
*
|
|
36
|
+
* @fires resizestart - Fired when a resize operation begins.
|
|
37
|
+
* @fires resizing - Fired continuously during a resize operation.
|
|
38
|
+
* @fires resizeend - Fired when a resize operation ends.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```html
|
|
42
|
+
* <!-- Inside a parent element (attaches to parent) -->
|
|
43
|
+
* <mosaik-dialog>
|
|
44
|
+
* <mosaik-resize-thumb direction="south-east"></mosaik-resize-thumb>
|
|
45
|
+
* </mosaik-dialog>
|
|
46
|
+
*
|
|
47
|
+
* <!-- Attached to specific element via for attribute -->
|
|
48
|
+
* <div id="resizable-box" style="width: 200px; height: 150px;">
|
|
49
|
+
* Content
|
|
50
|
+
* </div>
|
|
51
|
+
* <mosaik-resize-thumb for="resizable-box" direction="south-east"></mosaik-resize-thumb>
|
|
52
|
+
*
|
|
53
|
+
* <!-- With constraints -->
|
|
54
|
+
* <mosaik-resize-thumb
|
|
55
|
+
* direction="south-east"
|
|
56
|
+
* min-width="100"
|
|
57
|
+
* min-height="80"
|
|
58
|
+
* max-width="500"
|
|
59
|
+
* max-height="400">
|
|
60
|
+
* </mosaik-resize-thumb>
|
|
61
|
+
*
|
|
62
|
+
* <!-- Auto-apply disabled (manual handling via events) -->
|
|
63
|
+
* <mosaik-resize-thumb direction="east" auto-apply="false"></mosaik-resize-thumb>
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @see {@link ResizeThumbController} for programmatic usage without visual element.
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class ResizeThumbElement extends ResizeThumbElement_base implements IResizeThumbElementProps, IAttachable {
|
|
71
|
+
private readonly _resizeStart;
|
|
72
|
+
private readonly _resizing;
|
|
73
|
+
private readonly _resizeEnd;
|
|
74
|
+
private _direction;
|
|
75
|
+
private _allowedDirections;
|
|
76
|
+
private _minWidth;
|
|
77
|
+
private _minHeight;
|
|
78
|
+
private _maxWidth;
|
|
79
|
+
private _maxHeight;
|
|
80
|
+
private _autoApply;
|
|
81
|
+
private _controller;
|
|
82
|
+
private _mouseDownSubscription;
|
|
83
|
+
private _touchStartSubscription;
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
constructor();
|
|
88
|
+
/**
|
|
89
|
+
* Returns the `{@link is}` property.
|
|
90
|
+
* The `{@link is}` property represents natural name of this element.
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
* @static
|
|
94
|
+
* @readonly
|
|
95
|
+
*/
|
|
96
|
+
static get is(): string;
|
|
97
|
+
/**
|
|
98
|
+
* Gets or sets the resize `direction`.
|
|
99
|
+
*
|
|
100
|
+
* Determines which direction this resize thumb represents.
|
|
101
|
+
* The cursor style is automatically updated based on this direction.
|
|
102
|
+
*
|
|
103
|
+
* @attr
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
get direction(): ResizeDirection;
|
|
107
|
+
set direction(value: ResizeDirection);
|
|
108
|
+
/**
|
|
109
|
+
* Gets or sets the `allowedDirections` array.
|
|
110
|
+
*
|
|
111
|
+
* When set, only the specified directions are permitted for resizing.
|
|
112
|
+
* If the current direction is not in the allowed list, resize operations
|
|
113
|
+
* will be blocked.
|
|
114
|
+
*
|
|
115
|
+
* @attr
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
get allowedDirections(): ReadonlyArray<ResizeDirection>;
|
|
119
|
+
set allowedDirections(value: ReadonlyArray<ResizeDirection>);
|
|
120
|
+
/**
|
|
121
|
+
* Gets or sets the minimum width the control can be resized to.
|
|
122
|
+
*
|
|
123
|
+
* @attr min-width
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
get minWidth(): number;
|
|
127
|
+
set minWidth(value: number);
|
|
128
|
+
/**
|
|
129
|
+
* Gets or sets the minimum height the control can be resized to.
|
|
130
|
+
*
|
|
131
|
+
* @attr min-height
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
get minHeight(): number;
|
|
135
|
+
set minHeight(value: number);
|
|
136
|
+
/**
|
|
137
|
+
* Gets or sets the maximum width the control can be resized to.
|
|
138
|
+
*
|
|
139
|
+
* @attr max-width
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
get maxWidth(): number;
|
|
143
|
+
set maxWidth(value: number);
|
|
144
|
+
/**
|
|
145
|
+
* Gets or sets the maximum height the control can be resized to.
|
|
146
|
+
*
|
|
147
|
+
* @attr max-height
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
get maxHeight(): number;
|
|
151
|
+
set maxHeight(value: number);
|
|
152
|
+
/**
|
|
153
|
+
* Gets or sets whether resize changes are automatically applied to the control element.
|
|
154
|
+
* If false, only events are emitted and the control is responsible for applying changes.
|
|
155
|
+
* Defaults to true.
|
|
156
|
+
*
|
|
157
|
+
* @attr auto-apply
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
get autoApply(): boolean;
|
|
161
|
+
set autoApply(value: boolean);
|
|
162
|
+
/**
|
|
163
|
+
* Gets whether a resize operation is currently in progress.
|
|
164
|
+
*
|
|
165
|
+
* @public
|
|
166
|
+
* @readonly
|
|
167
|
+
*/
|
|
168
|
+
get isResizing(): boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Called when a resize operation starts.
|
|
171
|
+
* Provides reference to `{@link IResizeThumbResizeStartEventDetail}` as event detail.
|
|
172
|
+
*
|
|
173
|
+
* @public
|
|
174
|
+
* @readonly
|
|
175
|
+
* @eventProperty
|
|
176
|
+
*/
|
|
177
|
+
get resizeStart(): IEventEmitter<IResizeThumbResizeStartEventDetail>;
|
|
178
|
+
/**
|
|
179
|
+
* Called during a resize operation.
|
|
180
|
+
* Provides reference to `{@link IResizeThumbResizingEventDetail}` as event detail.
|
|
181
|
+
*
|
|
182
|
+
* @public
|
|
183
|
+
* @readonly
|
|
184
|
+
* @eventProperty
|
|
185
|
+
*/
|
|
186
|
+
get resizing(): IEventEmitter<IResizeThumbResizingEventDetail>;
|
|
187
|
+
/**
|
|
188
|
+
* Called when a resize operation ends.
|
|
189
|
+
* Provides reference to `{@link IResizeThumbResizeEndEventDetail}` as event detail.
|
|
190
|
+
*
|
|
191
|
+
* @public
|
|
192
|
+
* @readonly
|
|
193
|
+
* @eventProperty
|
|
194
|
+
*/
|
|
195
|
+
get resizeEnd(): IEventEmitter<IResizeThumbResizeEndEventDetail>;
|
|
196
|
+
/**
|
|
197
|
+
* @public
|
|
198
|
+
* @override
|
|
199
|
+
*/
|
|
200
|
+
connectedCallback(): void;
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
* @override
|
|
204
|
+
*/
|
|
205
|
+
disconnectedCallback(): void;
|
|
206
|
+
/**
|
|
207
|
+
* @protected
|
|
208
|
+
* @override
|
|
209
|
+
*/
|
|
210
|
+
protected onApplyTemplate(): void;
|
|
211
|
+
/**
|
|
212
|
+
* Checks if the current direction is allowed.
|
|
213
|
+
*
|
|
214
|
+
* @protected
|
|
215
|
+
* @returns True if the direction is in the allowed list, false otherwise.
|
|
216
|
+
*/
|
|
217
|
+
protected isDirectionAllowed(): boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Handles the start of a pointer (mouse or touch) interaction.
|
|
220
|
+
*
|
|
221
|
+
* @protected
|
|
222
|
+
*/
|
|
223
|
+
protected onPointerStart(clientX: number, clientY: number, event: MouseEvent | TouchEvent): void;
|
|
224
|
+
/**
|
|
225
|
+
* Initializes or re-initializes the controller with the current control element.
|
|
226
|
+
*
|
|
227
|
+
* @private
|
|
228
|
+
*/
|
|
229
|
+
private initializeController;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* @public
|
|
233
|
+
*/
|
|
234
|
+
export declare namespace ResizeThumbElement {
|
|
235
|
+
type Props = IResizeThumbElementProps;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
declare global {
|
|
241
|
+
interface HTMLElementTagNameMap {
|
|
242
|
+
'mosaik-resize-thumb': ResizeThumbElement;
|
|
243
|
+
}
|
|
244
|
+
interface HTMLElementEventMap {
|
|
245
|
+
resizestart: IResizeThumbResizeStartEvent;
|
|
246
|
+
resizing: IResizeThumbResizingEvent;
|
|
247
|
+
resizeend: IResizeThumbResizeEndEvent;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
export {};
|
|
251
|
+
//# sourceMappingURL=ResizeThumbElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizeThumbElement.d.ts","sourceRoot":"","sources":["../../../../../src/Controls/Components/Primitives/ResizeThumb/ResizeThumbElement.ts"],"names":[],"mappings":"AAEA,OAAO,EAAM,KAAK,aAAa,EAAmC,MAAM,6BAA6B,CAAC;AACtG,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAO7E,OAAO,EAAyB,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,0BAA0B,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACvH,OAAO,KAAK,EAAE,4BAA4B,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC7H,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpH,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