@mintplayer/ng-bootstrap 22.32.0 → 22.33.0
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/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -166
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -140
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +33 -63
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +23 -30
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +37 -22
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +25 -9
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +157 -219
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +6 -8
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +313 -212
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -15
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +12 -24
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +5 -9
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +9 -19
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +18 -32
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +52 -38
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +64 -119
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -38
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +44 -44
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +199 -16
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -261
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +30 -18
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +20 -90
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +52 -401
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +27 -50
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -10
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +26 -54
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +56 -267
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +47 -63
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +7 -15
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +232 -169
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +85 -47
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +14 -22
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -181
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +8 -8
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +35 -40
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -101
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +29 -23
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +9 -13
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +103 -152
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +50 -157
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +159 -234
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +2 -22
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -81
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
- package/types/mintplayer-ng-bootstrap-alert.d.ts +20 -28
- package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -12
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +29 -8
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
- package/types/mintplayer-ng-bootstrap-card.d.ts +93 -78
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +143 -91
- package/types/mintplayer-ng-bootstrap-close.d.ts +16 -5
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +2 -6
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +2 -4
- package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
- package/types/mintplayer-ng-bootstrap-form.d.ts +32 -11
- package/types/mintplayer-ng-bootstrap-grid.d.ts +38 -31
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +28 -14
- package/types/mintplayer-ng-bootstrap-machine.d.ts +95 -4
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
- package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -86
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-nav.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +21 -6
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +15 -42
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +4 -3
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -35
- package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +5 -6
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +17 -16
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
- package/types/mintplayer-ng-bootstrap-popover.d.ts +35 -61
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +34 -19
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
- package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
- package/types/mintplayer-ng-bootstrap-range.d.ts +35 -13
- package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -51
- package/types/mintplayer-ng-bootstrap-select.d.ts +8 -7
- package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -19
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
- package/types/mintplayer-ng-bootstrap-table.d.ts +21 -12
- package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +3 -7
- package/types/mintplayer-ng-bootstrap-toast.d.ts +92 -55
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
- package/calendar-month/package.json +0 -4
- package/dropdown-divider/package.json +0 -4
- package/dropdown-menu/package.json +0 -4
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -30
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -169
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
- package/has-overlay/package.json +0 -4
- package/no-noscript/package.json +0 -4
- package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -9
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
- package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
- package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
|
@@ -1,347 +1,50 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles, MpInstanceStyleDirective, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { resizableCore, resizableScopedStyles } from '@mintplayer/ui-core/resizable';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const DEFAULT_RESIZABLE_LABELS = {
|
|
8
|
-
top: 'Resize from top edge',
|
|
9
|
-
bottom: 'Resize from bottom edge',
|
|
10
|
-
left: 'Resize from left edge',
|
|
11
|
-
right: 'Resize from right edge',
|
|
12
|
-
topLeft: 'Resize from top-left corner',
|
|
13
|
-
topRight: 'Resize from top-right corner',
|
|
14
|
-
bottomLeft: 'Resize from bottom-left corner',
|
|
15
|
-
bottomRight: 'Resize from bottom-right corner',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/** Smallest size, in px, a drag or a key press can shrink the box to. */
|
|
19
|
-
const MIN_RESIZE_SIZE = 10;
|
|
20
|
-
/**
|
|
21
|
-
* Maps a glyph's logical positions onto the physical sides of the box. In a right-to-left
|
|
22
|
-
* document the start edge is the right one, so a `start` glyph sits on, drags and is
|
|
23
|
-
* announced as the right edge.
|
|
24
|
-
*/
|
|
25
|
-
function toPhysicalSides(positions, rtl) {
|
|
26
|
-
return positions.map((p) => {
|
|
27
|
-
switch (p) {
|
|
28
|
-
case 'start': return rtl ? 'right' : 'left';
|
|
29
|
-
case 'end': return rtl ? 'left' : 'right';
|
|
30
|
-
default: return p;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* The size and margin changes for a pointer at (x, y), given the geometry captured when the
|
|
36
|
-
* resize began. The captured values are used rather than the live rect: reading the rect on
|
|
37
|
-
* every move feeds back when content inside the box relayouts in response to its width.
|
|
38
|
-
*
|
|
39
|
-
* - Inline positioning keeps the surrounding layout still: the box grows horizontally by
|
|
40
|
-
* giving back margin, and vertically by trading height for margin.
|
|
41
|
-
* - Absolute positioning writes the box itself. `left`/`top` are in the containing block's
|
|
42
|
-
* coordinates, so the pointer delta is applied to the captured offset, never the viewport
|
|
43
|
-
* coordinate itself (which is off by the page scroll and the containing block's position).
|
|
44
|
-
*/
|
|
45
|
-
function dragResize(action, x, y) {
|
|
46
|
-
const { rect, offset, margin, sides, positioning } = action;
|
|
47
|
-
const right = rect.left + rect.width;
|
|
48
|
-
const bottom = rect.top + rect.height;
|
|
49
|
-
const inline = positioning === 'inline';
|
|
50
|
-
const horizontal = (() => {
|
|
51
|
-
if (sides.includes('right')) {
|
|
52
|
-
const px = Math.max(x, rect.left + MIN_RESIZE_SIZE);
|
|
53
|
-
return inline
|
|
54
|
-
? { marginRight: margin.right + (right - px) }
|
|
55
|
-
: { width: px - rect.left };
|
|
56
|
-
}
|
|
57
|
-
if (sides.includes('left')) {
|
|
58
|
-
const px = Math.min(x, right - MIN_RESIZE_SIZE);
|
|
59
|
-
return inline
|
|
60
|
-
? { marginLeft: margin.left + (px - rect.left) }
|
|
61
|
-
: { left: offset.left + (px - rect.left), width: right - px };
|
|
62
|
-
}
|
|
63
|
-
return {};
|
|
64
|
-
})();
|
|
65
|
-
const vertical = (() => {
|
|
66
|
-
if (sides.includes('bottom')) {
|
|
67
|
-
const py = Math.max(y, rect.top + MIN_RESIZE_SIZE);
|
|
68
|
-
return inline
|
|
69
|
-
? { height: py - rect.top, marginBottom: margin.bottom + (bottom - py) }
|
|
70
|
-
: { height: py - rect.top };
|
|
71
|
-
}
|
|
72
|
-
if (sides.includes('top')) {
|
|
73
|
-
const py = Math.min(y, bottom - MIN_RESIZE_SIZE);
|
|
74
|
-
return inline
|
|
75
|
-
? { height: bottom - py, marginTop: margin.top + (py - rect.top) }
|
|
76
|
-
: { top: offset.top + (py - rect.top), height: bottom - py };
|
|
77
|
-
}
|
|
78
|
-
return {};
|
|
79
|
-
})();
|
|
80
|
-
return { ...horizontal, ...vertical };
|
|
81
|
-
}
|
|
6
|
+
// GENERATED from the resizable manifest (resizable) by @mintplayer/nx-component-compiler. Do not edit.
|
|
82
7
|
/**
|
|
83
|
-
*
|
|
84
|
-
* arrow
|
|
85
|
-
*
|
|
86
|
-
* Returns null for a key the glyph does not handle.
|
|
8
|
+
* A box with draggable edges and corners around any content. Drag a glyph, or focus it and use
|
|
9
|
+
* the arrow keys (10px, Shift for 1px). Inline positioning grows the box by giving back margin, so
|
|
10
|
+
* the content around it stays put; absolute positioning writes its own size and offset.
|
|
87
11
|
*/
|
|
88
|
-
function keyboardResizePoint(action, key, step) {
|
|
89
|
-
const { rect, sides } = action;
|
|
90
|
-
const hEdge = sides.includes('right') ? rect.left + rect.width
|
|
91
|
-
: sides.includes('left') ? rect.left
|
|
92
|
-
: null;
|
|
93
|
-
const vEdge = sides.includes('bottom') ? rect.top + rect.height
|
|
94
|
-
: sides.includes('top') ? rect.top
|
|
95
|
-
: null;
|
|
96
|
-
// A coordinate on an axis the glyph does not resize is ignored by dragResize.
|
|
97
|
-
const x = hEdge ?? 0;
|
|
98
|
-
const y = vEdge ?? 0;
|
|
99
|
-
switch (key) {
|
|
100
|
-
case 'ArrowRight': return hEdge === null ? null : { x: x + step, y };
|
|
101
|
-
case 'ArrowLeft': return hEdge === null ? null : { x: x - step, y };
|
|
102
|
-
case 'ArrowDown': return vEdge === null ? null : { x, y: y + step };
|
|
103
|
-
case 'ArrowUp': return vEdge === null ? null : { x, y: y - step };
|
|
104
|
-
default: return null;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* One drag handle of `bs-resizable`. Its logical positions (`start`/`end`) are resolved to
|
|
110
|
-
* physical sides once, from the document direction, and that one value drives the glyph's
|
|
111
|
-
* placement class, its drag and keyboard math and its accessible name, so the three can never
|
|
112
|
-
* disagree.
|
|
113
|
-
*/
|
|
114
|
-
class BsResizeGlyphDirective {
|
|
115
|
-
constructor() {
|
|
116
|
-
// Can't use typed DI because of the `import type`
|
|
117
|
-
this.resizable = inject(RESIZABLE);
|
|
118
|
-
this.dir = inject(Directionality);
|
|
119
|
-
this.bsResizeGlyph = input([], /* @ts-ignore */
|
|
120
|
-
...(ngDevMode ? [{ debugName: "bsResizeGlyph" }] : /* istanbul ignore next */ []));
|
|
121
|
-
this.activeClass = signal(false, /* @ts-ignore */
|
|
122
|
-
...(ngDevMode ? [{ debugName: "activeClass" }] : /* istanbul ignore next */ []));
|
|
123
|
-
this.sides = computed(() => toPhysicalSides(this.bsResizeGlyph(), this.dir.valueSignal() === 'rtl'), /* @ts-ignore */
|
|
124
|
-
...(ngDevMode ? [{ debugName: "sides" }] : /* istanbul ignore next */ []));
|
|
125
|
-
this.sideClasses = computed(() => this.sides().join(' '), /* @ts-ignore */
|
|
126
|
-
...(ngDevMode ? [{ debugName: "sideClasses" }] : /* istanbul ignore next */ []));
|
|
127
|
-
this.ariaOrientation = computed(() => {
|
|
128
|
-
const s = this.sides();
|
|
129
|
-
if (s.length !== 1)
|
|
130
|
-
return null;
|
|
131
|
-
return (s[0] === 'top' || s[0] === 'bottom') ? 'horizontal' : 'vertical';
|
|
132
|
-
}, /* @ts-ignore */
|
|
133
|
-
...(ngDevMode ? [{ debugName: "ariaOrientation" }] : /* istanbul ignore next */ []));
|
|
134
|
-
this.ariaLabel = computed(() => {
|
|
135
|
-
const labels = { ...DEFAULT_RESIZABLE_LABELS, ...this.resizable.labels() };
|
|
136
|
-
const s = this.sides();
|
|
137
|
-
const v = s.find((side) => side === 'top' || side === 'bottom');
|
|
138
|
-
const h = s.find((side) => side === 'left' || side === 'right');
|
|
139
|
-
if (v && h) {
|
|
140
|
-
const key = `${v}${h === 'left' ? 'Left' : 'Right'}`;
|
|
141
|
-
return labels[key];
|
|
142
|
-
}
|
|
143
|
-
return (v ?? h) ? labels[(v ?? h)] : null;
|
|
144
|
-
}, /* @ts-ignore */
|
|
145
|
-
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
146
|
-
}
|
|
147
|
-
onMouseDown(ev) {
|
|
148
|
-
ev.preventDefault();
|
|
149
|
-
this.onPointerDown();
|
|
150
|
-
}
|
|
151
|
-
onTouchStart(ev) {
|
|
152
|
-
ev.preventDefault();
|
|
153
|
-
ev.stopPropagation();
|
|
154
|
-
this.onPointerDown();
|
|
155
|
-
}
|
|
156
|
-
onMouseMove(ev) {
|
|
157
|
-
// Registered on the document by every glyph: only the one that started the drag applies it.
|
|
158
|
-
if (!this.activeClass() || !this.resizable.resizeAction)
|
|
159
|
-
return;
|
|
160
|
-
ev.preventDefault();
|
|
161
|
-
this.apply(dragResize(this.resizable.resizeAction, ev.clientX, ev.clientY));
|
|
162
|
-
}
|
|
163
|
-
onTouchMove(ev) {
|
|
164
|
-
if (ev.touches.length !== 1 || !this.activeClass() || !this.resizable.resizeAction)
|
|
165
|
-
return;
|
|
166
|
-
ev.preventDefault();
|
|
167
|
-
ev.stopPropagation();
|
|
168
|
-
this.apply(dragResize(this.resizable.resizeAction, ev.touches[0].clientX, ev.touches[0].clientY));
|
|
169
|
-
}
|
|
170
|
-
onTouchEnd(ev) {
|
|
171
|
-
ev.preventDefault();
|
|
172
|
-
ev.stopPropagation();
|
|
173
|
-
this.onPointerUp();
|
|
174
|
-
}
|
|
175
|
-
onPointerDown() {
|
|
176
|
-
this.resizable.resizeAction = this.captureAction();
|
|
177
|
-
this.activeClass.set(true);
|
|
178
|
-
}
|
|
179
|
-
onPointerUp() {
|
|
180
|
-
if (!this.activeClass())
|
|
181
|
-
return;
|
|
182
|
-
this.resizable.resizeAction = undefined;
|
|
183
|
-
this.activeClass.set(false);
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Keyboard alternative to drag: an arrow key moves the glyph's own edge by 10px (1px with
|
|
187
|
-
* Shift). It is computed as a one-step drag, so it moves the same edge and writes the same
|
|
188
|
-
* signals as dragging would, in both positioning modes.
|
|
189
|
-
*/
|
|
190
|
-
onKeydown(event) {
|
|
191
|
-
const action = this.captureAction();
|
|
192
|
-
const point = keyboardResizePoint(action, event.key, event.shiftKey ? 1 : 10);
|
|
193
|
-
if (!point)
|
|
194
|
-
return;
|
|
195
|
-
event.preventDefault();
|
|
196
|
-
this.apply(dragResize(action, point.x, point.y));
|
|
197
|
-
}
|
|
198
|
-
captureAction() {
|
|
199
|
-
const el = this.resizable.element.nativeElement;
|
|
200
|
-
const rect = el.getBoundingClientRect();
|
|
201
|
-
const styles = window.getComputedStyle(el);
|
|
202
|
-
// An unset margin computes to '' in some engines: treat it as 0, never NaN.
|
|
203
|
-
const px = (value) => parseFloat(value) || 0;
|
|
204
|
-
return {
|
|
205
|
-
positioning: this.resizable.positioning(),
|
|
206
|
-
sides: this.sides(),
|
|
207
|
-
rect: { left: rect.left, top: rect.top, width: rect.width, height: rect.height },
|
|
208
|
-
offset: { left: el.offsetLeft, top: el.offsetTop },
|
|
209
|
-
margin: {
|
|
210
|
-
left: px(styles.marginLeft),
|
|
211
|
-
right: px(styles.marginRight),
|
|
212
|
-
top: px(styles.marginTop),
|
|
213
|
-
bottom: px(styles.marginBottom),
|
|
214
|
-
},
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
apply(update) {
|
|
218
|
-
const r = this.resizable;
|
|
219
|
-
const targets = {
|
|
220
|
-
width: r.width, height: r.height, left: r.left, top: r.top,
|
|
221
|
-
marginLeft: r.marginLeft, marginRight: r.marginRight, marginTop: r.marginTop, marginBottom: r.marginBottom,
|
|
222
|
-
};
|
|
223
|
-
Object.keys(update).map((key) => targets[key].set(update[key]));
|
|
224
|
-
}
|
|
225
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsResizeGlyphDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
226
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsResizeGlyphDirective, isStandalone: true, selector: "[bsResizeGlyph]", inputs: { bsResizeGlyph: { classPropertyName: "bsResizeGlyph", publicName: "bsResizeGlyph", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mousedown": "onMouseDown($event)", "touchstart": "onTouchStart($event)", "document:mousemove": "onMouseMove($event)", "touchmove": "onTouchMove($event)", "document:mouseup": "onPointerUp()", "touchend": "onTouchEnd($event)", "keydown": "onKeydown($event)" }, properties: { "class": "sideClasses()", "class.glyph": "true", "class.active": "activeClass()", "attr.role": "\"separator\"", "attr.aria-label": "ariaLabel()", "attr.aria-orientation": "ariaOrientation()", "attr.tabindex": "\"0\"" } }, ngImport: i0 }); }
|
|
227
|
-
}
|
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsResizeGlyphDirective, decorators: [{
|
|
229
|
-
type: Directive,
|
|
230
|
-
args: [{
|
|
231
|
-
selector: '[bsResizeGlyph]',
|
|
232
|
-
host: {
|
|
233
|
-
'[class]': 'sideClasses()',
|
|
234
|
-
'[class.glyph]': 'true',
|
|
235
|
-
'[class.active]': 'activeClass()',
|
|
236
|
-
'[attr.role]': '"separator"',
|
|
237
|
-
'[attr.aria-label]': 'ariaLabel()',
|
|
238
|
-
'[attr.aria-orientation]': 'ariaOrientation()',
|
|
239
|
-
'[attr.tabindex]': '"0"',
|
|
240
|
-
'(mousedown)': 'onMouseDown($event)',
|
|
241
|
-
'(touchstart)': 'onTouchStart($event)',
|
|
242
|
-
'(document:mousemove)': 'onMouseMove($event)',
|
|
243
|
-
'(touchmove)': 'onTouchMove($event)',
|
|
244
|
-
'(document:mouseup)': 'onPointerUp()',
|
|
245
|
-
'(touchend)': 'onTouchEnd($event)',
|
|
246
|
-
'(keydown)': 'onKeydown($event)',
|
|
247
|
-
},
|
|
248
|
-
}]
|
|
249
|
-
}], propDecorators: { bsResizeGlyph: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsResizeGlyph", required: false }] }] } });
|
|
250
|
-
|
|
251
12
|
class BsResizableComponent {
|
|
13
|
+
#core;
|
|
252
14
|
constructor() {
|
|
253
|
-
|
|
15
|
+
/** The host element. */
|
|
16
|
+
this.elementRef = inject(ElementRef);
|
|
254
17
|
this.positioning = input('inline', /* @ts-ignore */
|
|
255
18
|
...(ngDevMode ? [{ debugName: "positioning" }] : /* istanbul ignore next */ []));
|
|
256
|
-
this.horizontal = input(true, /*
|
|
257
|
-
...(ngDevMode ?
|
|
258
|
-
this.
|
|
259
|
-
|
|
260
|
-
this.corners = input(true, /* @ts-ignore */
|
|
261
|
-
...(ngDevMode ? [{ debugName: "corners" }] : /* istanbul ignore next */ []));
|
|
262
|
-
/** Translations of the glyphs' accessible names; missing keys keep the English default. */
|
|
263
|
-
this.labels = input({}, /* @ts-ignore */
|
|
19
|
+
this.horizontal = input(true, { ...(ngDevMode ? { debugName: "horizontal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
20
|
+
this.vertical = input(true, { ...(ngDevMode ? { debugName: "vertical" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
21
|
+
this.corners = input(true, { ...(ngDevMode ? { debugName: "corners" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
22
|
+
this.labels = input(null, /* @ts-ignore */
|
|
264
23
|
...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
265
|
-
this.
|
|
266
|
-
...(ngDevMode ? [{ debugName: "showCorners" }] : /* istanbul ignore next */ []));
|
|
267
|
-
this.hostPosition = computed(() => {
|
|
268
|
-
const positioning = this.positioning();
|
|
269
|
-
switch (positioning) {
|
|
270
|
-
case 'absolute': return 'position-absolute';
|
|
271
|
-
case 'inline': return 'position-relative';
|
|
272
|
-
}
|
|
273
|
-
}, /* @ts-ignore */
|
|
274
|
-
...(ngDevMode ? [{ debugName: "hostPosition" }] : /* istanbul ignore next */ []));
|
|
275
|
-
this.wrapperPosition = computed(() => {
|
|
276
|
-
const positioning = this.positioning();
|
|
277
|
-
switch (positioning) {
|
|
278
|
-
case 'absolute': return ['position-relative', 'h-100'];
|
|
279
|
-
case 'inline': return [];
|
|
280
|
-
}
|
|
281
|
-
}, /* @ts-ignore */
|
|
282
|
-
...(ngDevMode ? [{ debugName: "wrapperPosition" }] : /* istanbul ignore next */ []));
|
|
283
|
-
this.presetPosition = input(undefined, /* @ts-ignore */
|
|
24
|
+
this.presetPosition = input(null, /* @ts-ignore */
|
|
284
25
|
...(ngDevMode ? [{ debugName: "presetPosition" }] : /* istanbul ignore next */ []));
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
this
|
|
288
|
-
|
|
289
|
-
this.
|
|
290
|
-
|
|
291
|
-
this.marginBottom = signal(undefined, /* @ts-ignore */
|
|
292
|
-
...(ngDevMode ? [{ debugName: "marginBottom" }] : /* istanbul ignore next */ []));
|
|
293
|
-
this.width = signal(undefined, /* @ts-ignore */
|
|
294
|
-
...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
295
|
-
this.height = signal(undefined, /* @ts-ignore */
|
|
296
|
-
...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
297
|
-
this.left = signal(undefined, /* @ts-ignore */
|
|
298
|
-
...(ngDevMode ? [{ debugName: "left" }] : /* istanbul ignore next */ []));
|
|
299
|
-
this.top = signal(undefined, /* @ts-ignore */
|
|
300
|
-
...(ngDevMode ? [{ debugName: "top" }] : /* istanbul ignore next */ []));
|
|
301
|
-
effect(() => {
|
|
302
|
-
const value = this.presetPosition();
|
|
303
|
-
if (value) {
|
|
304
|
-
if (this.positioning() === 'inline') {
|
|
305
|
-
throw 'presetPosition currently only supported in absolute positioning';
|
|
306
|
-
}
|
|
307
|
-
this.width.set(value.width);
|
|
308
|
-
this.height.set(value.height);
|
|
309
|
-
this.left.set(value.left);
|
|
310
|
-
this.top.set(value.top);
|
|
311
|
-
this.marginTop.set(undefined);
|
|
312
|
-
this.marginBottom.set(undefined);
|
|
313
|
-
this.marginLeft.set(undefined);
|
|
314
|
-
this.marginRight.set(undefined);
|
|
315
|
-
}
|
|
316
|
-
});
|
|
26
|
+
/** A drag ended or a key moved an edge, with the geometry written. */
|
|
27
|
+
this.resized = output();
|
|
28
|
+
this.#core = useCore(resizableCore, { inputs: () => ({ positioning: this.positioning(), horizontal: this.horizontal(), vertical: this.vertical(), corners: this.corners(), labels: this.labels(), presetPosition: this.presetPosition() }), idPrefix: 'bs-resizable', outputs: { resized: this.resized }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'resizable' }) });
|
|
29
|
+
/** The template's props. */
|
|
30
|
+
this.props = this.#core.props;
|
|
31
|
+
useScopedStyles('resizable', resizableScopedStyles);
|
|
317
32
|
}
|
|
318
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsResizableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
319
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsResizableComponent, isStandalone: true, selector: "bs-resizable", inputs: { positioning: { classPropertyName: "positioning", publicName: "positioning", isSignal: true, isRequired: false, transformFunction: null }, horizontal: { classPropertyName: "horizontal", publicName: "horizontal", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, corners: { classPropertyName: "corners", publicName: "corners", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, presetPosition: { classPropertyName: "presetPosition", publicName: "presetPosition", isSignal: true, isRequired: false, transformFunction: null } },
|
|
320
|
-
{ provide: RESIZABLE, useExisting: forwardRef(() => BsResizableComponent) }
|
|
321
|
-
], ngImport: i0, template: "<div [class]=\"wrapperPosition()\" class=\"h-100\">\n @if (showCorners()) {\n <div [bsResizeGlyph]=\"['top', 'start']\"></div>\n <div [bsResizeGlyph]=\"['top', 'end']\"></div>\n <div [bsResizeGlyph]=\"['bottom', 'end']\"></div>\n <div [bsResizeGlyph]=\"['bottom', 'start']\"></div>\n }\n @if (vertical()) {\n <div [bsResizeGlyph]=\"['top']\"></div>\n <div [bsResizeGlyph]=\"['bottom']\"></div>\n }\n @if (horizontal()) {\n <div [bsResizeGlyph]=\"['end']\"></div>\n <div [bsResizeGlyph]=\"['start']\"></div>\n }\n <ng-content></ng-content>\n</div>", styles: [".glyph:before{content:\"\";width:8px;height:8px;display:block;border-radius:4px;transition:background-color .2s ease-in-out}.glyph{position:absolute;width:14px;height:14px;z-index:20}.glyph.top{top:-7px}.glyph.left{left:-7px}.glyph.bottom{bottom:-7px}.glyph.right{right:-7px}.glyph.top,.glyph.bottom{cursor:ns-resize}.glyph.left,.glyph.right{cursor:ew-resize}.glyph.top.left,.glyph.bottom.right{cursor:nwse-resize}.glyph.top.right,.glyph.bottom.left{cursor:nesw-resize}.glyph:focus-visible{outline:2px solid var(--bs-primary);outline-offset:1px}.glyph.left:not(.top):not(.bottom),.glyph.right:not(.top):not(.bottom){top:4px;height:calc(100% - 8px)}.glyph.left:not(.top):not(.bottom):before,.glyph.right:not(.top):not(.bottom):before{display:block;height:100%}.glyph.left:before,.glyph.right:before{margin-left:3px;margin-right:3px}.glyph.top:not(.left):not(.right),.glyph.bottom:not(.left):not(.right){left:4px;width:calc(100% - 8px)}.glyph.top:not(.left):not(.right):before,.glyph.bottom:not(.left):not(.right):before{display:block;width:100%}.glyph.top:before,.glyph.bottom:before{margin-top:3px;margin-bottom:3px}.glyph:hover:before,.glyph.active:before{background-color:var(--bs-primary)}:host{min-width:2rem;min-height:2rem}\n"], dependencies: [{ kind: "directive", type: BsResizeGlyphDirective, selector: "[bsResizeGlyph]", inputs: ["bsResizeGlyph"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsResizableComponent, isStandalone: true, selector: "bs-resizable", inputs: { positioning: { classPropertyName: "positioning", publicName: "positioning", isSignal: true, isRequired: false, transformFunction: null }, horizontal: { classPropertyName: "horizontal", publicName: "horizontal", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, corners: { classPropertyName: "corners", publicName: "corners", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, presetPosition: { classPropertyName: "presetPosition", publicName: "presetPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resized: "resized" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/resizable/src/templates/resizable.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-container [mpInstanceStyle]=\"p_view.css\" [mpInstanceStyleName]=\"p_view.cssName\" />\n@for (glyph of p_view.glyphs; track glyph.key) {\n <div data-mps=\"resizable\" [mpProps]=\"glyph.attrs\"></div>\n}\n<ng-content />\n", dependencies: [{ kind: "directive", type: MpInstanceStyleDirective, selector: "ng-container[mpInstanceStyle]", inputs: ["mpInstanceStyle", "mpInstanceStyleName"] }, { kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
322
35
|
}
|
|
323
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsResizableComponent, decorators: [{
|
|
324
37
|
type: Component,
|
|
325
|
-
args: [{ selector: 'bs-resizable', imports: [
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
'[style.margin-bottom.px]': 'marginBottom()',
|
|
332
|
-
'[style.width.px]': 'width()',
|
|
333
|
-
'[style.height.px]': 'height()',
|
|
334
|
-
'[style.left.px]': 'left()',
|
|
335
|
-
'[style.top.px]': 'top()',
|
|
336
|
-
'[class.d-block]': 'true',
|
|
337
|
-
'[class.border]': 'true',
|
|
338
|
-
'[class]': 'hostPosition()',
|
|
339
|
-
}, template: "<div [class]=\"wrapperPosition()\" class=\"h-100\">\n @if (showCorners()) {\n <div [bsResizeGlyph]=\"['top', 'start']\"></div>\n <div [bsResizeGlyph]=\"['top', 'end']\"></div>\n <div [bsResizeGlyph]=\"['bottom', 'end']\"></div>\n <div [bsResizeGlyph]=\"['bottom', 'start']\"></div>\n }\n @if (vertical()) {\n <div [bsResizeGlyph]=\"['top']\"></div>\n <div [bsResizeGlyph]=\"['bottom']\"></div>\n }\n @if (horizontal()) {\n <div [bsResizeGlyph]=\"['end']\"></div>\n <div [bsResizeGlyph]=\"['start']\"></div>\n }\n <ng-content></ng-content>\n</div>", styles: [".glyph:before{content:\"\";width:8px;height:8px;display:block;border-radius:4px;transition:background-color .2s ease-in-out}.glyph{position:absolute;width:14px;height:14px;z-index:20}.glyph.top{top:-7px}.glyph.left{left:-7px}.glyph.bottom{bottom:-7px}.glyph.right{right:-7px}.glyph.top,.glyph.bottom{cursor:ns-resize}.glyph.left,.glyph.right{cursor:ew-resize}.glyph.top.left,.glyph.bottom.right{cursor:nwse-resize}.glyph.top.right,.glyph.bottom.left{cursor:nesw-resize}.glyph:focus-visible{outline:2px solid var(--bs-primary);outline-offset:1px}.glyph.left:not(.top):not(.bottom),.glyph.right:not(.top):not(.bottom){top:4px;height:calc(100% - 8px)}.glyph.left:not(.top):not(.bottom):before,.glyph.right:not(.top):not(.bottom):before{display:block;height:100%}.glyph.left:before,.glyph.right:before{margin-left:3px;margin-right:3px}.glyph.top:not(.left):not(.right),.glyph.bottom:not(.left):not(.right){left:4px;width:calc(100% - 8px)}.glyph.top:not(.left):not(.right):before,.glyph.bottom:not(.left):not(.right):before{display:block;width:100%}.glyph.top:before,.glyph.bottom:before{margin-top:3px;margin-bottom:3px}.glyph:hover:before,.glyph.active:before{background-color:var(--bs-primary)}:host{min-width:2rem;min-height:2rem}\n"] }]
|
|
340
|
-
}], ctorParameters: () => [], propDecorators: { positioning: [{ type: i0.Input, args: [{ isSignal: true, alias: "positioning", required: false }] }], horizontal: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontal", required: false }] }], vertical: [{ type: i0.Input, args: [{ isSignal: true, alias: "vertical", required: false }] }], corners: [{ type: i0.Input, args: [{ isSignal: true, alias: "corners", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], presetPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetPosition", required: false }] }] } });
|
|
38
|
+
args: [{ selector: 'bs-resizable', imports: [MpInstanceStyleDirective, MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/resizable/src/templates/resizable.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-container [mpInstanceStyle]=\"p_view.css\" [mpInstanceStyleName]=\"p_view.cssName\" />\n@for (glyph of p_view.glyphs; track glyph.key) {\n <div data-mps=\"resizable\" [mpProps]=\"glyph.attrs\"></div>\n}\n<ng-content />\n" }]
|
|
39
|
+
}], ctorParameters: () => [], propDecorators: { positioning: [{ type: i0.Input, args: [{ isSignal: true, alias: "positioning", required: false }] }], horizontal: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontal", required: false }] }], vertical: [{ type: i0.Input, args: [{ isSignal: true, alias: "vertical", required: false }] }], corners: [{ type: i0.Input, args: [{ isSignal: true, alias: "corners", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], presetPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "presetPosition", required: false }] }], resized: [{ type: i0.Output, args: ["resized"] }] } });
|
|
40
|
+
|
|
41
|
+
// GENERATED from the resizable manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
42
|
+
|
|
43
|
+
// Generated from @mintplayer/ui-core/resizable (#458 D10).
|
|
341
44
|
|
|
342
45
|
/**
|
|
343
46
|
* Generated bundle index. Do not edit.
|
|
344
47
|
*/
|
|
345
48
|
|
|
346
|
-
export { BsResizableComponent
|
|
49
|
+
export { BsResizableComponent };
|
|
347
50
|
//# sourceMappingURL=mintplayer-ng-bootstrap-resizable.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-resizable.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/resizable/src/providers/resizable.provider.ts","../../../../libs/mintplayer-ng-bootstrap/resizable/src/interfaces/resize-labels.ts","../../../../libs/mintplayer-ng-bootstrap/resizable/src/resize-glyph/resize-math.ts","../../../../libs/mintplayer-ng-bootstrap/resizable/src/resize-glyph/resize-glyph.directive.ts","../../../../libs/mintplayer-ng-bootstrap/resizable/src/resizable/resizable.component.ts","../../../../libs/mintplayer-ng-bootstrap/resizable/src/resizable/resizable.component.html","../../../../libs/mintplayer-ng-bootstrap/resizable/mintplayer-ng-bootstrap-resizable.ts"],"sourcesContent":["import { InjectionToken } from \"@angular/core\";\nimport type { BsResizableComponent } from \"../resizable/resizable.component\";\n\nexport const RESIZABLE = new InjectionToken<BsResizableComponent>('Resizable');","/**\n * Accessible names of the resize glyphs, keyed by the PHYSICAL edge or corner the glyph sits\n * on (a `start` glyph is on the right in a right-to-left document, and is named from this\n * table's right-hand entries). Pass a partial table to `bs-resizable`'s `[labels]` to\n * translate them.\n */\nexport interface BsResizableLabels {\n top: string;\n bottom: string;\n left: string;\n right: string;\n topLeft: string;\n topRight: string;\n bottomLeft: string;\n bottomRight: string;\n}\n\nexport const DEFAULT_RESIZABLE_LABELS: BsResizableLabels = {\n top: 'Resize from top edge',\n bottom: 'Resize from bottom edge',\n left: 'Resize from left edge',\n right: 'Resize from right edge',\n topLeft: 'Resize from top-left corner',\n topRight: 'Resize from top-right corner',\n bottomLeft: 'Resize from bottom-left corner',\n bottomRight: 'Resize from bottom-right corner',\n};\n","import { Position } from '@mintplayer/ng-bootstrap';\nimport { PhysicalSide, ResizeAction } from '../interfaces/resize-action';\n\n/** Smallest size, in px, a drag or a key press can shrink the box to. */\nexport const MIN_RESIZE_SIZE = 10;\n\n/** The signals of `bs-resizable` a resize writes. Absent keys are left unchanged. */\nexport interface ResizeUpdate {\n width?: number;\n height?: number;\n left?: number;\n top?: number;\n marginLeft?: number;\n marginRight?: number;\n marginTop?: number;\n marginBottom?: number;\n}\n\n/**\n * Maps a glyph's logical positions onto the physical sides of the box. In a right-to-left\n * document the start edge is the right one, so a `start` glyph sits on, drags and is\n * announced as the right edge.\n */\nexport function toPhysicalSides(positions: readonly Position[], rtl: boolean): PhysicalSide[] {\n return positions.map((p): PhysicalSide => {\n switch (p) {\n case 'start': return rtl ? 'right' : 'left';\n case 'end': return rtl ? 'left' : 'right';\n default: return p;\n }\n });\n}\n\n/**\n * The size and margin changes for a pointer at (x, y), given the geometry captured when the\n * resize began. The captured values are used rather than the live rect: reading the rect on\n * every move feeds back when content inside the box relayouts in response to its width.\n *\n * - Inline positioning keeps the surrounding layout still: the box grows horizontally by\n * giving back margin, and vertically by trading height for margin.\n * - Absolute positioning writes the box itself. `left`/`top` are in the containing block's\n * coordinates, so the pointer delta is applied to the captured offset, never the viewport\n * coordinate itself (which is off by the page scroll and the containing block's position).\n */\nexport function dragResize(action: ResizeAction, x: number, y: number): ResizeUpdate {\n const { rect, offset, margin, sides, positioning } = action;\n const right = rect.left + rect.width;\n const bottom = rect.top + rect.height;\n const inline = positioning === 'inline';\n\n const horizontal = ((): ResizeUpdate => {\n if (sides.includes('right')) {\n const px = Math.max(x, rect.left + MIN_RESIZE_SIZE);\n return inline\n ? { marginRight: margin.right + (right - px) }\n : { width: px - rect.left };\n }\n if (sides.includes('left')) {\n const px = Math.min(x, right - MIN_RESIZE_SIZE);\n return inline\n ? { marginLeft: margin.left + (px - rect.left) }\n : { left: offset.left + (px - rect.left), width: right - px };\n }\n return {};\n })();\n\n const vertical = ((): ResizeUpdate => {\n if (sides.includes('bottom')) {\n const py = Math.max(y, rect.top + MIN_RESIZE_SIZE);\n return inline\n ? { height: py - rect.top, marginBottom: margin.bottom + (bottom - py) }\n : { height: py - rect.top };\n }\n if (sides.includes('top')) {\n const py = Math.min(y, bottom - MIN_RESIZE_SIZE);\n return inline\n ? { height: bottom - py, marginTop: margin.top + (py - rect.top) }\n : { top: offset.top + (py - rect.top), height: bottom - py };\n }\n return {};\n })();\n\n return { ...horizontal, ...vertical };\n}\n\n/**\n * The pointer position a key press is equivalent to: the dragged edge moved by `step` in the\n * arrow's direction. A key press is then exactly a one-step drag, so it moves the same edge a\n * drag would (never the opposite one) and writes the same signals in both positioning modes.\n * Returns null for a key the glyph does not handle.\n */\nexport function keyboardResizePoint(action: ResizeAction, key: string, step: number): { x: number; y: number } | null {\n const { rect, sides } = action;\n const hEdge = sides.includes('right') ? rect.left + rect.width\n : sides.includes('left') ? rect.left\n : null;\n const vEdge = sides.includes('bottom') ? rect.top + rect.height\n : sides.includes('top') ? rect.top\n : null;\n // A coordinate on an axis the glyph does not resize is ignored by dragResize.\n const x = hEdge ?? 0;\n const y = vEdge ?? 0;\n switch (key) {\n case 'ArrowRight': return hEdge === null ? null : { x: x + step, y };\n case 'ArrowLeft': return hEdge === null ? null : { x: x - step, y };\n case 'ArrowDown': return vEdge === null ? null : { x, y: y + step };\n case 'ArrowUp': return vEdge === null ? null : { x, y: y - step };\n default: return null;\n }\n}\n","import { computed, Directive, inject, input, signal } from '@angular/core';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport type { BsResizableComponent } from '../resizable/resizable.component';\nimport { PhysicalSide, ResizeAction } from '../interfaces/resize-action';\nimport { BsResizableLabels, DEFAULT_RESIZABLE_LABELS } from '../interfaces/resize-labels';\nimport { RESIZABLE } from '../providers/resizable.provider';\nimport { dragResize, keyboardResizePoint, ResizeUpdate, toPhysicalSides } from './resize-math';\n\n/**\n * One drag handle of `bs-resizable`. Its logical positions (`start`/`end`) are resolved to\n * physical sides once, from the document direction, and that one value drives the glyph's\n * placement class, its drag and keyboard math and its accessible name, so the three can never\n * disagree.\n */\n@Directive({\n selector: '[bsResizeGlyph]',\n host: {\n '[class]': 'sideClasses()',\n '[class.glyph]': 'true',\n '[class.active]': 'activeClass()',\n '[attr.role]': '\"separator\"',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-orientation]': 'ariaOrientation()',\n '[attr.tabindex]': '\"0\"',\n '(mousedown)': 'onMouseDown($event)',\n '(touchstart)': 'onTouchStart($event)',\n '(document:mousemove)': 'onMouseMove($event)',\n '(touchmove)': 'onTouchMove($event)',\n '(document:mouseup)': 'onPointerUp()',\n '(touchend)': 'onTouchEnd($event)',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class BsResizeGlyphDirective {\n\n // Can't use typed DI because of the `import type`\n private readonly resizable: BsResizableComponent = inject(RESIZABLE);\n private readonly dir = inject(Directionality);\n\n readonly bsResizeGlyph = input<Position[]>([]);\n\n readonly activeClass = signal(false);\n\n readonly sides = computed(() => toPhysicalSides(this.bsResizeGlyph(), this.dir.valueSignal() === 'rtl'));\n\n readonly sideClasses = computed(() => this.sides().join(' '));\n\n readonly ariaOrientation = computed(() => {\n const s = this.sides();\n if (s.length !== 1) return null;\n return (s[0] === 'top' || s[0] === 'bottom') ? 'horizontal' : 'vertical';\n });\n\n readonly ariaLabel = computed(() => {\n const labels: BsResizableLabels = { ...DEFAULT_RESIZABLE_LABELS, ...this.resizable.labels() };\n const s = this.sides();\n const v = s.find((side) => side === 'top' || side === 'bottom');\n const h = s.find((side) => side === 'left' || side === 'right');\n if (v && h) {\n const key = `${v}${h === 'left' ? 'Left' : 'Right'}` as keyof BsResizableLabels;\n return labels[key];\n }\n return (v ?? h) ? labels[(v ?? h) as PhysicalSide] : null;\n });\n\n onMouseDown(ev: MouseEvent) {\n ev.preventDefault();\n this.onPointerDown();\n }\n\n onTouchStart(ev: TouchEvent) {\n ev.preventDefault();\n ev.stopPropagation();\n this.onPointerDown();\n }\n\n onMouseMove(ev: MouseEvent) {\n // Registered on the document by every glyph: only the one that started the drag applies it.\n if (!this.activeClass() || !this.resizable.resizeAction) return;\n ev.preventDefault();\n this.apply(dragResize(this.resizable.resizeAction, ev.clientX, ev.clientY));\n }\n\n onTouchMove(ev: TouchEvent) {\n if (ev.touches.length !== 1 || !this.activeClass() || !this.resizable.resizeAction) return;\n ev.preventDefault();\n ev.stopPropagation();\n this.apply(dragResize(this.resizable.resizeAction, ev.touches[0].clientX, ev.touches[0].clientY));\n }\n\n onTouchEnd(ev: TouchEvent) {\n ev.preventDefault();\n ev.stopPropagation();\n this.onPointerUp();\n }\n\n onPointerDown() {\n this.resizable.resizeAction = this.captureAction();\n this.activeClass.set(true);\n }\n\n onPointerUp() {\n if (!this.activeClass()) return;\n this.resizable.resizeAction = undefined;\n this.activeClass.set(false);\n }\n\n /**\n * Keyboard alternative to drag: an arrow key moves the glyph's own edge by 10px (1px with\n * Shift). It is computed as a one-step drag, so it moves the same edge and writes the same\n * signals as dragging would, in both positioning modes.\n */\n onKeydown(event: KeyboardEvent) {\n const action = this.captureAction();\n const point = keyboardResizePoint(action, event.key, event.shiftKey ? 1 : 10);\n if (!point) return;\n event.preventDefault();\n this.apply(dragResize(action, point.x, point.y));\n }\n\n private captureAction(): ResizeAction {\n const el: HTMLElement = this.resizable.element.nativeElement;\n const rect = el.getBoundingClientRect();\n const styles = window.getComputedStyle(el);\n // An unset margin computes to '' in some engines: treat it as 0, never NaN.\n const px = (value: string) => parseFloat(value) || 0;\n return {\n positioning: this.resizable.positioning(),\n sides: this.sides(),\n rect: { left: rect.left, top: rect.top, width: rect.width, height: rect.height },\n offset: { left: el.offsetLeft, top: el.offsetTop },\n margin: {\n left: px(styles.marginLeft),\n right: px(styles.marginRight),\n top: px(styles.marginTop),\n bottom: px(styles.marginBottom),\n },\n };\n }\n\n private apply(update: ResizeUpdate) {\n const r = this.resizable;\n const targets = {\n width: r.width, height: r.height, left: r.left, top: r.top,\n marginLeft: r.marginLeft, marginRight: r.marginRight, marginTop: r.marginTop, marginBottom: r.marginBottom,\n };\n (Object.keys(update) as (keyof ResizeUpdate)[]).map((key) => targets[key].set(update[key]));\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, forwardRef, signal } from '@angular/core';\nimport { ResizeAction } from '../interfaces/resize-action';\nimport { RESIZABLE } from '../providers/resizable.provider';\nimport { ResizablePositioning } from '../types/positioning';\nimport { PresetPosition } from '../interfaces/preset-position';\nimport { BsResizableLabels } from '../interfaces/resize-labels';\nimport { BsResizeGlyphDirective } from '../resize-glyph/resize-glyph.directive';\n\n@Component({\n selector: 'bs-resizable',\n templateUrl: './resizable.component.html',\n styleUrls: ['./resizable.component.scss'],\n imports: [BsResizeGlyphDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: RESIZABLE, useExisting: forwardRef(() => BsResizableComponent) }\n ],\n host: {\n '[style.margin-left.px]': 'marginLeft()',\n '[style.margin-right.px]': 'marginRight()',\n '[style.margin-top.px]': 'marginTop()',\n '[style.margin-bottom.px]': 'marginBottom()',\n '[style.width.px]': 'width()',\n '[style.height.px]': 'height()',\n '[style.left.px]': 'left()',\n '[style.top.px]': 'top()',\n '[class.d-block]': 'true',\n '[class.border]': 'true',\n '[class]': 'hostPosition()',\n },\n})\nexport class BsResizableComponent {\n element = inject(ElementRef<HTMLElement>);\n\n resizeAction?: ResizeAction;\n positioning = input<ResizablePositioning>('inline');\n horizontal = input(true);\n vertical = input(true);\n corners = input(true);\n /** Translations of the glyphs' accessible names; missing keys keep the English default. */\n labels = input<Partial<BsResizableLabels>>({});\n\n showCorners = computed(() => this.horizontal() && this.vertical() && this.corners());\n\n hostPosition = computed(() => {\n const positioning = this.positioning();\n switch (positioning) {\n case 'absolute': return 'position-absolute';\n case 'inline': return 'position-relative';\n }\n });\n\n wrapperPosition = computed(() => {\n const positioning = this.positioning();\n switch (positioning) {\n case 'absolute': return ['position-relative', 'h-100'];\n case 'inline': return [];\n }\n });\n\n readonly presetPosition = input<PresetPosition | undefined>(undefined);\n\n constructor() {\n effect(() => {\n const value = this.presetPosition();\n if (value) {\n if (this.positioning() === 'inline') {\n throw 'presetPosition currently only supported in absolute positioning';\n }\n this.width.set(value.width);\n this.height.set(value.height);\n this.left.set(value.left);\n this.top.set(value.top);\n this.marginTop.set(undefined);\n this.marginBottom.set(undefined);\n this.marginLeft.set(undefined);\n this.marginRight.set(undefined);\n }\n });\n }\n\n marginLeft = signal<number | undefined>(undefined);\n marginRight = signal<number | undefined>(undefined);\n marginTop = signal<number | undefined>(undefined);\n marginBottom = signal<number | undefined>(undefined);\n width = signal<number | undefined>(undefined);\n height = signal<number | undefined>(undefined);\n left = signal<number | undefined>(undefined);\n top = signal<number | undefined>(undefined);\n}\n","<div [class]=\"wrapperPosition()\" class=\"h-100\">\n @if (showCorners()) {\n <div [bsResizeGlyph]=\"['top', 'start']\"></div>\n <div [bsResizeGlyph]=\"['top', 'end']\"></div>\n <div [bsResizeGlyph]=\"['bottom', 'end']\"></div>\n <div [bsResizeGlyph]=\"['bottom', 'start']\"></div>\n }\n @if (vertical()) {\n <div [bsResizeGlyph]=\"['top']\"></div>\n <div [bsResizeGlyph]=\"['bottom']\"></div>\n }\n @if (horizontal()) {\n <div [bsResizeGlyph]=\"['end']\"></div>\n <div [bsResizeGlyph]=\"['start']\"></div>\n }\n <ng-content></ng-content>\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAGa,SAAS,GAAG,IAAI,cAAc,CAAuB,WAAW;;ACctE,MAAM,wBAAwB,GAAsB;AACzD,IAAA,GAAG,EAAE,sBAAsB;AAC3B,IAAA,MAAM,EAAE,yBAAyB;AACjC,IAAA,IAAI,EAAE,uBAAuB;AAC7B,IAAA,KAAK,EAAE,wBAAwB;AAC/B,IAAA,OAAO,EAAE,6BAA6B;AACtC,IAAA,QAAQ,EAAE,8BAA8B;AACxC,IAAA,UAAU,EAAE,gCAAgC;AAC5C,IAAA,WAAW,EAAE,iCAAiC;;;ACtBhD;AACO,MAAM,eAAe,GAAG,EAAE;AAcjC;;;;AAIG;AACG,SAAU,eAAe,CAAC,SAA8B,EAAE,GAAY,EAAA;AAC1E,IAAA,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,KAAkB;QACvC,QAAQ,CAAC;AACP,YAAA,KAAK,OAAO,EAAE,OAAO,GAAG,GAAG,OAAO,GAAG,MAAM;AAC3C,YAAA,KAAK,KAAK,EAAE,OAAO,GAAG,GAAG,MAAM,GAAG,OAAO;AACzC,YAAA,SAAS,OAAO,CAAC;;AAErB,IAAA,CAAC,CAAC;AACJ;AAEA;;;;;;;;;;AAUG;SACa,UAAU,CAAC,MAAoB,EAAE,CAAS,EAAE,CAAS,EAAA;AACnE,IAAA,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,MAAM;IAC3D,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK;IACpC,MAAM,MA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EAAA,EAAA,EAAA,QAAA,EChBH,inBAgBM,ywCDJM,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAmBrB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAvBhC,SAAS;+BACE,cAAc,EAAA,OAAA,EAGf,CAAC,sBAAsB,CAAC,mBAChB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;AACT,wBAAA,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,oBAAqB,CAAC;qBAC1E,EAAA,IAAA,EACK;AACJ,wBAAA,wBAAwB,EAAE,cAAc;AACxC,wBAAA,yBAAyB,EAAE,eAAe;AAC1C,wBAAA,uBAAuB,EAAE,aAAa;AACtC,wBAAA,0BAA0B,EAAE,gBAAgB;AAC5C,wBAAA,kBAAkB,EAAE,SAAS;AAC7B,wBAAA,mBAAmB,EAAE,UAAU;AAC/B,wBAAA,iBAAiB,EAAE,QAAQ;AAC3B,wBAAA,gBAAgB,EAAE,OAAO;AACzB,wBAAA,iBAAiB,EAAE,MAAM;AACzB,wBAAA,gBAAgB,EAAE,MAAM;AACxB,wBAAA,SAAS,EAAE,gBAAgB;AAC5B,qBAAA,EAAA,QAAA,EAAA,inBAAA,EAAA,MAAA,EAAA,CAAA,itCAAA,CAAA,EAAA;;;AE7BH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-resizable.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/resizable/src/generated/resizable.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/resizable/src/generated/resizable.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/resizable/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/resizable/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/resizable/mintplayer-ng-bootstrap-resizable.ts"],"sourcesContent":["// GENERATED from the resizable manifest (resizable) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, output } from '@angular/core';\nimport { MpInstanceStyleDirective, MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { resizableCore, type ResizableGeometry, type ResizableInputs, resizableScopedStyles } from '@mintplayer/ui-core/resizable';\n\n/**\n * A box with draggable edges and corners around any content. Drag a glyph, or focus it and use\n * the arrow keys (10px, Shift for 1px). Inline positioning grows the box by giving back margin, so\n * the content around it stays put; absolute positioning writes its own size and offset.\n */\n@Component({\n selector: 'bs-resizable',\n templateUrl: './resizable.view.generated.html',\n imports: [MpInstanceStyleDirective, MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsResizableComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly positioning = input<ResizableInputs['positioning']>('inline');\n readonly horizontal = input<ResizableInputs['horizontal'], unknown>(true, { transform: booleanAttribute });\n readonly vertical = input<ResizableInputs['vertical'], unknown>(true, { transform: booleanAttribute });\n readonly corners = input<ResizableInputs['corners'], unknown>(true, { transform: booleanAttribute });\n readonly labels = input<ResizableInputs['labels']>(null);\n readonly presetPosition = input<ResizableInputs['presetPosition']>(null);\n /** A drag ended or a key moved an edge, with the geometry written. */\n readonly resized = output<ResizableGeometry>();\n\n readonly #core = useCore(resizableCore, { inputs: () => ({ positioning: this.positioning(), horizontal: this.horizontal(), vertical: this.vertical(), corners: this.corners(), labels: this.labels(), presetPosition: this.presetPosition() }), idPrefix: 'bs-resizable', outputs: { resized: this.resized }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'resizable' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('resizable', resizableScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/resizable/src/templates/resizable.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-container [mpInstanceStyle]=\"p_view.css\" [mpInstanceStyleName]=\"p_view.cssName\" />\n@for (glyph of p_view.glyphs; track glyph.key) {\n <div data-mps=\"resizable\" [mpProps]=\"glyph.attrs\"></div>\n}\n<ng-content />\n","// GENERATED from the resizable manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsResizableComponent } from './resizable.component.generated';\n","// Generated from @mintplayer/ui-core/resizable (#458 D10).\nexport * from './generated';\nexport type {\n ResizableGeometry,\n ResizableLabels,\n ResizablePositioning,\n ResizablePreset,\n} from '@mintplayer/ui-core/resizable';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;;;;AAIG;MAOU,oBAAoB,CAAA;AAatB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAfS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,WAAW,GAAG,KAAK,CAAiC,QAAQ;wFAAC;QAC7D,IAAA,CAAA,UAAU,GAAG,KAAK,CAAyC,IAAI,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACjG,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAuC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC7F,IAAA,CAAA,OAAO,GAAG,KAAK,CAAsC,IAAI,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC3F,IAAA,CAAA,MAAM,GAAG,KAAK,CAA4B,IAAI;mFAAC;QAC/C,IAAA,CAAA,cAAc,GAAG,KAAK,CAAoC,IAAI;2FAAC;;QAE/D,IAAA,CAAA,OAAO,GAAG,MAAM,EAAqB;QAErC,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAA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