@vadem/ui 0.0.0-stage → 0.0.1
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/LICENSE-lucide.txt +43 -0
- package/README.md +19 -2
- package/fesm2022/vadem-ui-accordion.mjs +139 -0
- package/fesm2022/vadem-ui-accordion.mjs.map +1 -0
- package/fesm2022/vadem-ui-active-filters.mjs +355 -0
- package/fesm2022/vadem-ui-active-filters.mjs.map +1 -0
- package/fesm2022/vadem-ui-alert-dialog.mjs +433 -0
- package/fesm2022/vadem-ui-alert-dialog.mjs.map +1 -0
- package/fesm2022/vadem-ui-alert.mjs +266 -0
- package/fesm2022/vadem-ui-alert.mjs.map +1 -0
- package/fesm2022/vadem-ui-autocomplete.mjs +715 -0
- package/fesm2022/vadem-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/vadem-ui-avatar.mjs +219 -0
- package/fesm2022/vadem-ui-avatar.mjs.map +1 -0
- package/fesm2022/vadem-ui-badge.mjs +86 -0
- package/fesm2022/vadem-ui-badge.mjs.map +1 -0
- package/fesm2022/vadem-ui-breadcrumbs.mjs +61 -0
- package/fesm2022/vadem-ui-breadcrumbs.mjs.map +1 -0
- package/fesm2022/vadem-ui-button.mjs +220 -0
- package/fesm2022/vadem-ui-button.mjs.map +1 -0
- package/fesm2022/vadem-ui-calendar.mjs +1314 -0
- package/fesm2022/vadem-ui-calendar.mjs.map +1 -0
- package/fesm2022/vadem-ui-card.mjs +271 -0
- package/fesm2022/vadem-ui-card.mjs.map +1 -0
- package/fesm2022/vadem-ui-character-count.mjs +269 -0
- package/fesm2022/vadem-ui-character-count.mjs.map +1 -0
- package/fesm2022/vadem-ui-chart.mjs +1984 -0
- package/fesm2022/vadem-ui-chart.mjs.map +1 -0
- package/fesm2022/vadem-ui-checkbox.mjs +67 -0
- package/fesm2022/vadem-ui-checkbox.mjs.map +1 -0
- package/fesm2022/vadem-ui-color-picker.mjs +815 -0
- package/fesm2022/vadem-ui-color-picker.mjs.map +1 -0
- package/fesm2022/vadem-ui-command.mjs +735 -0
- package/fesm2022/vadem-ui-command.mjs.map +1 -0
- package/fesm2022/vadem-ui-copy-button.mjs +375 -0
- package/fesm2022/vadem-ui-copy-button.mjs.map +1 -0
- package/fesm2022/vadem-ui-date-range-picker.mjs +1011 -0
- package/fesm2022/vadem-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/vadem-ui-description-list.mjs +59 -0
- package/fesm2022/vadem-ui-description-list.mjs.map +1 -0
- package/fesm2022/vadem-ui-dialog.mjs +587 -0
- package/fesm2022/vadem-ui-dialog.mjs.map +1 -0
- package/fesm2022/vadem-ui-dropzone.mjs +176 -0
- package/fesm2022/vadem-ui-dropzone.mjs.map +1 -0
- package/fesm2022/vadem-ui-editable-text.mjs +641 -0
- package/fesm2022/vadem-ui-editable-text.mjs.map +1 -0
- package/fesm2022/vadem-ui-empty-state.mjs +175 -0
- package/fesm2022/vadem-ui-empty-state.mjs.map +1 -0
- package/fesm2022/vadem-ui-expandable-text.mjs +244 -0
- package/fesm2022/vadem-ui-expandable-text.mjs.map +1 -0
- package/fesm2022/vadem-ui-field.mjs +583 -0
- package/fesm2022/vadem-ui-field.mjs.map +1 -0
- package/fesm2022/vadem-ui-file-preview.mjs +532 -0
- package/fesm2022/vadem-ui-file-preview.mjs.map +1 -0
- package/fesm2022/vadem-ui-file-size.mjs +83 -0
- package/fesm2022/vadem-ui-file-size.mjs.map +1 -0
- package/fesm2022/vadem-ui-form-error-summary.mjs +201 -0
- package/fesm2022/vadem-ui-form-error-summary.mjs.map +1 -0
- package/fesm2022/vadem-ui-icon.mjs +303 -0
- package/fesm2022/vadem-ui-icon.mjs.map +1 -0
- package/fesm2022/vadem-ui-input.mjs +120 -0
- package/fesm2022/vadem-ui-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-kbd.mjs +286 -0
- package/fesm2022/vadem-ui-kbd.mjs.map +1 -0
- package/fesm2022/vadem-ui-keyboard.mjs +105 -0
- package/fesm2022/vadem-ui-keyboard.mjs.map +1 -0
- package/fesm2022/vadem-ui-locale.mjs +443 -0
- package/fesm2022/vadem-ui-locale.mjs.map +1 -0
- package/fesm2022/vadem-ui-menu.mjs +637 -0
- package/fesm2022/vadem-ui-menu.mjs.map +1 -0
- package/fesm2022/vadem-ui-navigation-list.mjs +130 -0
- package/fesm2022/vadem-ui-navigation-list.mjs.map +1 -0
- package/fesm2022/vadem-ui-number-input.mjs +264 -0
- package/fesm2022/vadem-ui-number-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-otp-input.mjs +86 -0
- package/fesm2022/vadem-ui-otp-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-pagination.mjs +353 -0
- package/fesm2022/vadem-ui-pagination.mjs.map +1 -0
- package/fesm2022/vadem-ui-password-input.mjs +213 -0
- package/fesm2022/vadem-ui-password-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-popover.mjs +178 -0
- package/fesm2022/vadem-ui-popover.mjs.map +1 -0
- package/fesm2022/vadem-ui-progress.mjs +331 -0
- package/fesm2022/vadem-ui-progress.mjs.map +1 -0
- package/fesm2022/vadem-ui-radio.mjs +39 -0
- package/fesm2022/vadem-ui-radio.mjs.map +1 -0
- package/fesm2022/vadem-ui-range-slider.mjs +561 -0
- package/fesm2022/vadem-ui-range-slider.mjs.map +1 -0
- package/fesm2022/vadem-ui-rating.mjs +404 -0
- package/fesm2022/vadem-ui-rating.mjs.map +1 -0
- package/fesm2022/vadem-ui-relative-time.mjs +217 -0
- package/fesm2022/vadem-ui-relative-time.mjs.map +1 -0
- package/fesm2022/vadem-ui-reorder-list.mjs +601 -0
- package/fesm2022/vadem-ui-reorder-list.mjs.map +1 -0
- package/fesm2022/vadem-ui-scroll-area.mjs +65 -0
- package/fesm2022/vadem-ui-scroll-area.mjs.map +1 -0
- package/fesm2022/vadem-ui-search-input.mjs +307 -0
- package/fesm2022/vadem-ui-search-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-segmented.mjs +297 -0
- package/fesm2022/vadem-ui-segmented.mjs.map +1 -0
- package/fesm2022/vadem-ui-select.mjs +1462 -0
- package/fesm2022/vadem-ui-select.mjs.map +1 -0
- package/fesm2022/vadem-ui-sidebar.mjs +493 -0
- package/fesm2022/vadem-ui-sidebar.mjs.map +1 -0
- package/fesm2022/vadem-ui-skeleton.mjs +106 -0
- package/fesm2022/vadem-ui-skeleton.mjs.map +1 -0
- package/fesm2022/vadem-ui-slider.mjs +60 -0
- package/fesm2022/vadem-ui-slider.mjs.map +1 -0
- package/fesm2022/vadem-ui-splitter.mjs +438 -0
- package/fesm2022/vadem-ui-splitter.mjs.map +1 -0
- package/fesm2022/vadem-ui-stat.mjs +369 -0
- package/fesm2022/vadem-ui-stat.mjs.map +1 -0
- package/fesm2022/vadem-ui-stepper.mjs +483 -0
- package/fesm2022/vadem-ui-stepper.mjs.map +1 -0
- package/fesm2022/vadem-ui-switch.mjs +45 -0
- package/fesm2022/vadem-ui-switch.mjs.map +1 -0
- package/fesm2022/vadem-ui-table.mjs +593 -0
- package/fesm2022/vadem-ui-table.mjs.map +1 -0
- package/fesm2022/vadem-ui-tabs.mjs +405 -0
- package/fesm2022/vadem-ui-tabs.mjs.map +1 -0
- package/fesm2022/vadem-ui-tag-input.mjs +685 -0
- package/fesm2022/vadem-ui-tag-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-text-highlight.mjs +126 -0
- package/fesm2022/vadem-ui-text-highlight.mjs.map +1 -0
- package/fesm2022/vadem-ui-time-input.mjs +430 -0
- package/fesm2022/vadem-ui-time-input.mjs.map +1 -0
- package/fesm2022/vadem-ui-timeline.mjs +313 -0
- package/fesm2022/vadem-ui-timeline.mjs.map +1 -0
- package/fesm2022/vadem-ui-toast.mjs +397 -0
- package/fesm2022/vadem-ui-toast.mjs.map +1 -0
- package/fesm2022/vadem-ui-toolbar.mjs +396 -0
- package/fesm2022/vadem-ui-toolbar.mjs.map +1 -0
- package/fesm2022/vadem-ui-tooltip.mjs +218 -0
- package/fesm2022/vadem-ui-tooltip.mjs.map +1 -0
- package/fesm2022/vadem-ui-tree.mjs +551 -0
- package/fesm2022/vadem-ui-tree.mjs.map +1 -0
- package/fesm2022/vadem-ui-upload-list.mjs +408 -0
- package/fesm2022/vadem-ui-upload-list.mjs.map +1 -0
- package/fesm2022/vadem-ui.mjs +4 -0
- package/fesm2022/vadem-ui.mjs.map +1 -0
- package/fonts/jetbrains-mono/OFL.txt +93 -0
- package/fonts/jetbrains-mono/jetbrains-mono-cyrillic.woff2 +0 -0
- package/fonts/jetbrains-mono/jetbrains-mono-latin.woff2 +0 -0
- package/fonts/manrope/OFL.txt +93 -0
- package/fonts/manrope/manrope-cyrillic.woff2 +0 -0
- package/fonts/manrope/manrope-latin.woff2 +0 -0
- package/package.json +306 -3
- package/styles/base.css +160 -0
- package/styles/components/accordion.css +130 -0
- package/styles/components/active-filters.css +42 -0
- package/styles/components/alert-dialog.css +34 -0
- package/styles/components/alert.css +159 -0
- package/styles/components/autocomplete.css +97 -0
- package/styles/components/avatar.css +90 -0
- package/styles/components/badge.css +91 -0
- package/styles/components/breadcrumbs.css +94 -0
- package/styles/components/button.css +174 -0
- package/styles/components/calendar.css +186 -0
- package/styles/components/card.css +206 -0
- package/styles/components/character-count.css +41 -0
- package/styles/components/chart.css +308 -0
- package/styles/components/checkbox.css +115 -0
- package/styles/components/color-picker.css +158 -0
- package/styles/components/command.css +175 -0
- package/styles/components/copy-button.css +58 -0
- package/styles/components/date-range-picker.css +153 -0
- package/styles/components/description-list.css +69 -0
- package/styles/components/dialog.css +334 -0
- package/styles/components/dropzone.css +89 -0
- package/styles/components/editable-text.css +58 -0
- package/styles/components/empty-state.css +72 -0
- package/styles/components/expandable-text.css +24 -0
- package/styles/components/field.css +148 -0
- package/styles/components/file-preview.css +65 -0
- package/styles/components/form-error-summary.css +71 -0
- package/styles/components/icon.css +38 -0
- package/styles/components/index.css +80 -0
- package/styles/components/input.css +171 -0
- package/styles/components/kbd.css +42 -0
- package/styles/components/menu.css +168 -0
- package/styles/components/multi-select.css +156 -0
- package/styles/components/navigation-list.css +147 -0
- package/styles/components/number-input.css +33 -0
- package/styles/components/otp-input.css +26 -0
- package/styles/components/pagination.css +127 -0
- package/styles/components/password-input.css +20 -0
- package/styles/components/popover.css +93 -0
- package/styles/components/progress-ring.css +112 -0
- package/styles/components/progress.css +162 -0
- package/styles/components/radio.css +117 -0
- package/styles/components/range-slider.css +158 -0
- package/styles/components/rating.css +100 -0
- package/styles/components/reorder-list.css +143 -0
- package/styles/components/scroll-area.css +39 -0
- package/styles/components/search-input.css +25 -0
- package/styles/components/segmented.css +136 -0
- package/styles/components/select.css +257 -0
- package/styles/components/sidebar.css +105 -0
- package/styles/components/skeleton.css +83 -0
- package/styles/components/slider.css +132 -0
- package/styles/components/splitter.css +83 -0
- package/styles/components/stat.css +62 -0
- package/styles/components/stepper.css +236 -0
- package/styles/components/switch.css +107 -0
- package/styles/components/table.css +195 -0
- package/styles/components/tabs.css +198 -0
- package/styles/components/tag-input.css +138 -0
- package/styles/components/text-highlight.css +22 -0
- package/styles/components/time-input.css +96 -0
- package/styles/components/timeline.css +182 -0
- package/styles/components/toast.css +146 -0
- package/styles/components/toolbar.css +72 -0
- package/styles/components/tooltip.css +93 -0
- package/styles/components/tree.css +88 -0
- package/styles/components/upload-list.css +113 -0
- package/styles/fonts.css +67 -0
- package/styles/index.css +14 -0
- package/styles/reset.css +57 -0
- package/styles/tokens/primitives.css +364 -0
- package/styles/tokens/semantic.css +233 -0
- package/types/vadem-ui-accordion.d.ts +43 -0
- package/types/vadem-ui-active-filters.d.ts +73 -0
- package/types/vadem-ui-alert-dialog.d.ts +87 -0
- package/types/vadem-ui-alert.d.ts +64 -0
- package/types/vadem-ui-autocomplete.d.ts +156 -0
- package/types/vadem-ui-avatar.d.ts +59 -0
- package/types/vadem-ui-badge.d.ts +25 -0
- package/types/vadem-ui-breadcrumbs.d.ts +22 -0
- package/types/vadem-ui-button.d.ts +52 -0
- package/types/vadem-ui-calendar.d.ts +327 -0
- package/types/vadem-ui-card.d.ts +58 -0
- package/types/vadem-ui-character-count.d.ts +71 -0
- package/types/vadem-ui-chart.d.ts +452 -0
- package/types/vadem-ui-checkbox.d.ts +20 -0
- package/types/vadem-ui-color-picker.d.ts +171 -0
- package/types/vadem-ui-command.d.ts +145 -0
- package/types/vadem-ui-copy-button.d.ts +90 -0
- package/types/vadem-ui-date-range-picker.d.ts +216 -0
- package/types/vadem-ui-description-list.d.ts +15 -0
- package/types/vadem-ui-dialog.d.ts +174 -0
- package/types/vadem-ui-dropzone.d.ts +73 -0
- package/types/vadem-ui-editable-text.d.ts +141 -0
- package/types/vadem-ui-empty-state.d.ts +34 -0
- package/types/vadem-ui-expandable-text.d.ts +52 -0
- package/types/vadem-ui-field.d.ts +180 -0
- package/types/vadem-ui-file-preview.d.ts +108 -0
- package/types/vadem-ui-file-size.d.ts +18 -0
- package/types/vadem-ui-form-error-summary.d.ts +46 -0
- package/types/vadem-ui-icon.d.ts +152 -0
- package/types/vadem-ui-input.d.ts +31 -0
- package/types/vadem-ui-kbd.d.ts +66 -0
- package/types/vadem-ui-keyboard.d.ts +61 -0
- package/types/vadem-ui-locale.d.ts +241 -0
- package/types/vadem-ui-menu.d.ts +132 -0
- package/types/vadem-ui-navigation-list.d.ts +28 -0
- package/types/vadem-ui-number-input.d.ts +39 -0
- package/types/vadem-ui-otp-input.d.ts +15 -0
- package/types/vadem-ui-pagination.d.ts +96 -0
- package/types/vadem-ui-password-input.d.ts +36 -0
- package/types/vadem-ui-popover.d.ts +48 -0
- package/types/vadem-ui-progress.d.ts +95 -0
- package/types/vadem-ui-radio.d.ts +11 -0
- package/types/vadem-ui-range-slider.d.ts +136 -0
- package/types/vadem-ui-rating.d.ts +95 -0
- package/types/vadem-ui-relative-time.d.ts +58 -0
- package/types/vadem-ui-reorder-list.d.ts +120 -0
- package/types/vadem-ui-scroll-area.d.ts +13 -0
- package/types/vadem-ui-search-input.d.ts +58 -0
- package/types/vadem-ui-segmented.d.ts +76 -0
- package/types/vadem-ui-select.d.ts +303 -0
- package/types/vadem-ui-sidebar.d.ts +70 -0
- package/types/vadem-ui-skeleton.d.ts +28 -0
- package/types/vadem-ui-slider.d.ts +17 -0
- package/types/vadem-ui-splitter.d.ts +99 -0
- package/types/vadem-ui-stat.d.ts +101 -0
- package/types/vadem-ui-stepper.d.ts +108 -0
- package/types/vadem-ui-switch.d.ts +10 -0
- package/types/vadem-ui-table.d.ts +172 -0
- package/types/vadem-ui-tabs.d.ts +101 -0
- package/types/vadem-ui-tag-input.d.ts +170 -0
- package/types/vadem-ui-text-highlight.d.ts +27 -0
- package/types/vadem-ui-time-input.d.ts +47 -0
- package/types/vadem-ui-timeline.d.ts +54 -0
- package/types/vadem-ui-toast.d.ts +104 -0
- package/types/vadem-ui-toolbar.d.ts +80 -0
- package/types/vadem-ui-tooltip.d.ts +71 -0
- package/types/vadem-ui-tree.d.ts +123 -0
- package/types/vadem-ui-upload-list.d.ts +70 -0
- package/types/vadem-ui.d.ts +1 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Directive, booleanAttribute, input } from "@angular/core";
|
|
3
|
+
var VdSkeleton = class VdSkeleton {
|
|
4
|
+
shape = input(null, ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
|
|
5
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
6
|
+
animated = input(true, {
|
|
7
|
+
...ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {},
|
|
8
|
+
transform: booleanAttribute
|
|
9
|
+
});
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
11
|
+
minVersion: "12.0.0",
|
|
12
|
+
version: "22.2.1",
|
|
13
|
+
ngImport: i0,
|
|
14
|
+
type: VdSkeleton,
|
|
15
|
+
deps: [],
|
|
16
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
17
|
+
});
|
|
18
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
19
|
+
minVersion: "17.1.0",
|
|
20
|
+
version: "22.2.1",
|
|
21
|
+
type: VdSkeleton,
|
|
22
|
+
isStandalone: true,
|
|
23
|
+
selector: "[vdSkeleton]",
|
|
24
|
+
inputs: {
|
|
25
|
+
shape: {
|
|
26
|
+
classPropertyName: "shape",
|
|
27
|
+
publicName: "shape",
|
|
28
|
+
isSignal: true,
|
|
29
|
+
isRequired: false,
|
|
30
|
+
transformFunction: null
|
|
31
|
+
},
|
|
32
|
+
size: {
|
|
33
|
+
classPropertyName: "size",
|
|
34
|
+
publicName: "size",
|
|
35
|
+
isSignal: true,
|
|
36
|
+
isRequired: false,
|
|
37
|
+
transformFunction: null
|
|
38
|
+
},
|
|
39
|
+
animated: {
|
|
40
|
+
classPropertyName: "animated",
|
|
41
|
+
publicName: "animated",
|
|
42
|
+
isSignal: true,
|
|
43
|
+
isRequired: false,
|
|
44
|
+
transformFunction: null
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
host: {
|
|
48
|
+
attributes: { "aria-hidden": "true" },
|
|
49
|
+
properties: {
|
|
50
|
+
"attr.data-shape": "shape()",
|
|
51
|
+
"attr.data-size": "size()",
|
|
52
|
+
"attr.data-animated": "animated() ? \"\" : null"
|
|
53
|
+
},
|
|
54
|
+
classAttribute: "vd-skeleton"
|
|
55
|
+
},
|
|
56
|
+
ngImport: i0
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
60
|
+
minVersion: "12.0.0",
|
|
61
|
+
version: "22.2.1",
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
type: VdSkeleton,
|
|
64
|
+
decorators: [{
|
|
65
|
+
type: Directive,
|
|
66
|
+
args: [{
|
|
67
|
+
selector: "[vdSkeleton]",
|
|
68
|
+
host: {
|
|
69
|
+
class: "vd-skeleton",
|
|
70
|
+
"aria-hidden": "true",
|
|
71
|
+
"[attr.data-shape]": "shape()",
|
|
72
|
+
"[attr.data-size]": "size()",
|
|
73
|
+
"[attr.data-animated]": "animated() ? \"\" : null"
|
|
74
|
+
}
|
|
75
|
+
}]
|
|
76
|
+
}],
|
|
77
|
+
propDecorators: {
|
|
78
|
+
shape: [{
|
|
79
|
+
type: i0.Input,
|
|
80
|
+
args: [{
|
|
81
|
+
isSignal: true,
|
|
82
|
+
alias: "shape",
|
|
83
|
+
required: false
|
|
84
|
+
}]
|
|
85
|
+
}],
|
|
86
|
+
size: [{
|
|
87
|
+
type: i0.Input,
|
|
88
|
+
args: [{
|
|
89
|
+
isSignal: true,
|
|
90
|
+
alias: "size",
|
|
91
|
+
required: false
|
|
92
|
+
}]
|
|
93
|
+
}],
|
|
94
|
+
animated: [{
|
|
95
|
+
type: i0.Input,
|
|
96
|
+
args: [{
|
|
97
|
+
isSignal: true,
|
|
98
|
+
alias: "animated",
|
|
99
|
+
required: false
|
|
100
|
+
}]
|
|
101
|
+
}]
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
export { VdSkeleton };
|
|
105
|
+
|
|
106
|
+
//# sourceMappingURL=vadem-ui-skeleton.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vadem-ui-skeleton.mjs","names":[],"sources":["../../../projects/ui/skeleton/src/skeleton.ts"],"sourcesContent":["import { booleanAttribute, Directive, input } from '@angular/core';\n\nexport type VdSkeletonShape = 'text' | 'circle' | 'rectangle';\nexport type VdSkeletonSize = 'sm' | 'md' | 'lg';\n\n/** Decorative placeholder. Loading status and lifecycle belong to its consumer. */\n@Directive({\n selector: '[vdSkeleton]',\n host: {\n class: 'vd-skeleton',\n 'aria-hidden': 'true',\n '[attr.data-shape]': 'shape()',\n '[attr.data-size]': 'size()',\n '[attr.data-animated]': 'animated() ? \"\" : null',\n },\n})\nexport class VdSkeleton {\n readonly shape = input<VdSkeletonShape | null>(null);\n readonly size = input<VdSkeletonSize>('md');\n readonly animated = input(true, { transform: booleanAttribute });\n}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|
2
|
+
import { Directive, ElementRef, afterEveryRender, inject } from "@angular/core";
|
|
3
|
+
import { VdFieldControlBase } from "@vadem/ui/field";
|
|
4
|
+
function vdSliderFill(value, min, max) {
|
|
5
|
+
if (!(max > min) || Number.isNaN(value)) return 0;
|
|
6
|
+
return (Math.min(Math.max(value, min), max) - min) / (max - min) * 100;
|
|
7
|
+
}
|
|
8
|
+
var VdSlider = class VdSlider extends VdFieldControlBase {
|
|
9
|
+
el = inject(ElementRef).nativeElement;
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
afterEveryRender(() => this.sync());
|
|
13
|
+
}
|
|
14
|
+
sync() {
|
|
15
|
+
const { valueAsNumber, min, max } = this.el;
|
|
16
|
+
const fill = vdSliderFill(valueAsNumber, Number(min || 0), Number(max || 100));
|
|
17
|
+
this.el.style.setProperty("--vd-slider-fill", `${fill}%`);
|
|
18
|
+
}
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
20
|
+
minVersion: "12.0.0",
|
|
21
|
+
version: "22.2.1",
|
|
22
|
+
ngImport: i0,
|
|
23
|
+
type: VdSlider,
|
|
24
|
+
deps: [],
|
|
25
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
26
|
+
});
|
|
27
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
28
|
+
minVersion: "14.0.0",
|
|
29
|
+
version: "22.2.1",
|
|
30
|
+
type: VdSlider,
|
|
31
|
+
isStandalone: true,
|
|
32
|
+
selector: "input[type=range][vdSlider]",
|
|
33
|
+
host: {
|
|
34
|
+
listeners: { "input": "sync()" },
|
|
35
|
+
classAttribute: "vd-slider"
|
|
36
|
+
},
|
|
37
|
+
usesInheritance: true,
|
|
38
|
+
ngImport: i0
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
42
|
+
minVersion: "12.0.0",
|
|
43
|
+
version: "22.2.1",
|
|
44
|
+
ngImport: i0,
|
|
45
|
+
type: VdSlider,
|
|
46
|
+
decorators: [{
|
|
47
|
+
type: Directive,
|
|
48
|
+
args: [{
|
|
49
|
+
selector: "input[type=range][vdSlider]",
|
|
50
|
+
host: {
|
|
51
|
+
class: "vd-slider",
|
|
52
|
+
"(input)": "sync()"
|
|
53
|
+
}
|
|
54
|
+
}]
|
|
55
|
+
}],
|
|
56
|
+
ctorParameters: () => []
|
|
57
|
+
});
|
|
58
|
+
export { VdSlider, vdSliderFill };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=vadem-ui-slider.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vadem-ui-slider.mjs","names":[],"sources":["../../../projects/ui/slider/src/slider.ts"],"sourcesContent":["import { Directive, ElementRef, afterEveryRender, inject } from '@angular/core';\nimport { VdFieldControlBase } from '@vadem/ui/field';\n\n/** Filled share of a range input in percent (0-100), from its min/max/value. */\nexport function vdSliderFill(value: number, min: number, max: number): number {\n if (!(max > min) || Number.isNaN(value)) return 0;\n return ((Math.min(Math.max(value, min), max) - min) / (max - min)) * 100;\n}\n\n/**\n * Styles a native `<input type=\"range\">`. Value, keyboard (arrows, PageUp/Down, Home/End),\n * forms and labelling stay native; the directive only keeps the filled part of the track in\n * sync (`--vd-slider-fill`) for engines without a native progress pseudo-element.\n * Spec: specs/slider.md\n */\n@Directive({\n selector: 'input[type=range][vdSlider]',\n host: {\n class: 'vd-slider',\n '(input)': 'sync()',\n },\n})\nexport class VdSlider extends VdFieldControlBase {\n private readonly el: HTMLInputElement = inject(ElementRef).nativeElement;\n\n constructor() {\n super();\n // Forms write `value` as a property (no event): re-read after every render.\n afterEveryRender(() => this.sync());\n }\n\n protected sync(): void {\n const { valueAsNumber, min, max } = this.el;\n const fill = vdSliderFill(valueAsNumber, Number(min || 0), Number(max || 100));\n this.el.style.setProperty('--vd-slider-fill', `${fill}%`);\n }\n}\n"],"mappings":";;;AAIA,SAAgB,aAAa,OAAe,KAAa,KAAW;CAClE,IAAI,EAAE,MAAM,QAAQ,OAAO,MAAM,KAAK,GAAG,OAAO;CAChD,QAAS,KAAK,IAAI,KAAK,IAAI,OAAO,GAAG,GAAG,GAAG,IAAI,QAAQ,MAAM,OAAQ;AACvE;AAeA,IAAa,WAAb,MAAa,iBAAiB,mBAAkB;CAC7B,KAAuB,OAAO,UAAU,CAAC,CAAC;CAE3D,cAAA;EACE,MAAK;EAEL,uBAAuB,KAAK,KAAI,CAAE;CACpC;CAEU,OAAI;EACZ,MAAM,EAAE,eAAe,KAAK,QAAQ,KAAK;EACzC,MAAM,OAAO,aAAa,eAAe,OAAO,OAAO,CAAC,GAAG,OAAO,OAAO,GAAG,CAAC;EAC7E,KAAK,GAAG,MAAM,YAAY,oBAAoB,GAAG,KAAI,EAAG;CAC1D;CAbW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAQ,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAR,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAQ,cAAA;EAAA,UAAA;EAAA,MAAA;GAAA,WAAA,EAAA,SAAA,SAAA;GAAA,gBAAA;EAAA;EAAA,iBAAA;EAAA,UAAA;CAAA,CAAA;;AAAR,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAQ,YAAA,CAAA;EAPpB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,MAAM;IACJ,OAAO;IACP,WAAW;GACZ;EACF,CAAA"}
|
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { DestroyRef, Directive, ElementRef, booleanAttribute, computed, contentChildren, effect, inject, input, model, signal } from "@angular/core";
|
|
3
|
+
import { vdUniqueId } from "@vadem/ui/field";
|
|
4
|
+
const finite = (value, fallback) => Number.isFinite(value) ? value : fallback;
|
|
5
|
+
const clamp = (value, min, max) => Math.min(max, Math.max(min, value));
|
|
6
|
+
function vdSplitterBounds(min, max) {
|
|
7
|
+
const lower = clamp(finite(min, 10), 1, 99);
|
|
8
|
+
return {
|
|
9
|
+
min: lower,
|
|
10
|
+
max: Math.max(lower, clamp(finite(max, 90), 1, 99))
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function vdSplitterValue(value, bounds) {
|
|
14
|
+
return clamp(finite(value, 50), bounds.min, bounds.max);
|
|
15
|
+
}
|
|
16
|
+
function vdSplitterKey(key, value, bounds, orientation, dir, step) {
|
|
17
|
+
if (key === "Home") return bounds.min;
|
|
18
|
+
if (key === "End") return bounds.max;
|
|
19
|
+
let delta = 0;
|
|
20
|
+
if (orientation === "horizontal") {
|
|
21
|
+
if (key === "ArrowRight") delta = dir === "rtl" ? -1 : 1;
|
|
22
|
+
if (key === "ArrowLeft") delta = dir === "rtl" ? 1 : -1;
|
|
23
|
+
} else {
|
|
24
|
+
if (key === "ArrowDown") delta = 1;
|
|
25
|
+
if (key === "ArrowUp") delta = -1;
|
|
26
|
+
}
|
|
27
|
+
if (!delta) return null;
|
|
28
|
+
return vdSplitterValue(Math.round((value + delta * (step > 0 && Number.isFinite(step) ? step : 1)) * 1e4) / 1e4, bounds);
|
|
29
|
+
}
|
|
30
|
+
function vdSplitterDrag(value, delta, span, bounds, reverse) {
|
|
31
|
+
if (!(span > 0) || !Number.isFinite(delta) || !Number.isFinite(span)) return value;
|
|
32
|
+
return vdSplitterValue(Math.round((value + delta / span * 100 * (reverse ? -1 : 1)) * 1e4) / 1e4, bounds);
|
|
33
|
+
}
|
|
34
|
+
var VdSplitter = class VdSplitter {
|
|
35
|
+
value = model(50, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
36
|
+
min = input(10, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
|
|
37
|
+
max = input(90, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
38
|
+
step = input(1, ...ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []);
|
|
39
|
+
orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
40
|
+
disabled = input(false, {
|
|
41
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
42
|
+
transform: booleanAttribute
|
|
43
|
+
});
|
|
44
|
+
dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []);
|
|
45
|
+
bounds = computed(() => vdSplitterBounds(this.min(), this.max()), ...ngDevMode ? [{ debugName: "bounds" }] : /* istanbul ignore next */ []);
|
|
46
|
+
position = computed(() => vdSplitterValue(this.value(), this.bounds()), ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
47
|
+
descendants = contentChildren(VdSplitterPane, {
|
|
48
|
+
...ngDevMode ? { debugName: "descendants" } : /* istanbul ignore next */ {},
|
|
49
|
+
descendants: true
|
|
50
|
+
});
|
|
51
|
+
panes = computed(() => this.descendants().filter((pane) => pane.splitter === this), ...ngDevMode ? [{ debugName: "panes" }] : /* istanbul ignore next */ []);
|
|
52
|
+
locked = computed(() => this.disabled() || this.bounds().min === this.bounds().max || this.panes().length !== 2, ...ngDevMode ? [{ debugName: "locked" }] : /* istanbul ignore next */ []);
|
|
53
|
+
element = inject(ElementRef).nativeElement;
|
|
54
|
+
resize(value) {
|
|
55
|
+
if (this.locked()) return;
|
|
56
|
+
const next = vdSplitterValue(value, this.bounds());
|
|
57
|
+
if (next !== this.position()) this.value.set(next);
|
|
58
|
+
}
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
60
|
+
minVersion: "12.0.0",
|
|
61
|
+
version: "22.2.1",
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
type: VdSplitter,
|
|
64
|
+
deps: [],
|
|
65
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
66
|
+
});
|
|
67
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
68
|
+
minVersion: "17.2.0",
|
|
69
|
+
version: "22.2.1",
|
|
70
|
+
type: VdSplitter,
|
|
71
|
+
isStandalone: true,
|
|
72
|
+
selector: "[vdSplitter]",
|
|
73
|
+
inputs: {
|
|
74
|
+
value: {
|
|
75
|
+
classPropertyName: "value",
|
|
76
|
+
publicName: "value",
|
|
77
|
+
isSignal: true,
|
|
78
|
+
isRequired: false,
|
|
79
|
+
transformFunction: null
|
|
80
|
+
},
|
|
81
|
+
min: {
|
|
82
|
+
classPropertyName: "min",
|
|
83
|
+
publicName: "min",
|
|
84
|
+
isSignal: true,
|
|
85
|
+
isRequired: false,
|
|
86
|
+
transformFunction: null
|
|
87
|
+
},
|
|
88
|
+
max: {
|
|
89
|
+
classPropertyName: "max",
|
|
90
|
+
publicName: "max",
|
|
91
|
+
isSignal: true,
|
|
92
|
+
isRequired: false,
|
|
93
|
+
transformFunction: null
|
|
94
|
+
},
|
|
95
|
+
step: {
|
|
96
|
+
classPropertyName: "step",
|
|
97
|
+
publicName: "step",
|
|
98
|
+
isSignal: true,
|
|
99
|
+
isRequired: false,
|
|
100
|
+
transformFunction: null
|
|
101
|
+
},
|
|
102
|
+
orientation: {
|
|
103
|
+
classPropertyName: "orientation",
|
|
104
|
+
publicName: "orientation",
|
|
105
|
+
isSignal: true,
|
|
106
|
+
isRequired: false,
|
|
107
|
+
transformFunction: null
|
|
108
|
+
},
|
|
109
|
+
disabled: {
|
|
110
|
+
classPropertyName: "disabled",
|
|
111
|
+
publicName: "disabled",
|
|
112
|
+
isSignal: true,
|
|
113
|
+
isRequired: false,
|
|
114
|
+
transformFunction: null
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
outputs: { value: "valueChange" },
|
|
118
|
+
host: {
|
|
119
|
+
properties: {
|
|
120
|
+
"attr.data-orientation": "orientation()",
|
|
121
|
+
"attr.data-disabled": "disabled() ? \"\" : null",
|
|
122
|
+
"attr.data-dragging": "dragging() ? \"\" : null",
|
|
123
|
+
"style.--vd-splitter-first": "position() + \"fr\"",
|
|
124
|
+
"style.--vd-splitter-second": "(100 - position()) + \"fr\""
|
|
125
|
+
},
|
|
126
|
+
classAttribute: "vd-splitter"
|
|
127
|
+
},
|
|
128
|
+
queries: [{
|
|
129
|
+
propertyName: "descendants",
|
|
130
|
+
predicate: VdSplitterPane,
|
|
131
|
+
descendants: true,
|
|
132
|
+
isSignal: true
|
|
133
|
+
}],
|
|
134
|
+
exportAs: ["vdSplitter"],
|
|
135
|
+
ngImport: i0
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
139
|
+
minVersion: "12.0.0",
|
|
140
|
+
version: "22.2.1",
|
|
141
|
+
ngImport: i0,
|
|
142
|
+
type: VdSplitter,
|
|
143
|
+
decorators: [{
|
|
144
|
+
type: Directive,
|
|
145
|
+
args: [{
|
|
146
|
+
selector: "[vdSplitter]",
|
|
147
|
+
exportAs: "vdSplitter",
|
|
148
|
+
host: {
|
|
149
|
+
class: "vd-splitter",
|
|
150
|
+
"[attr.data-orientation]": "orientation()",
|
|
151
|
+
"[attr.data-disabled]": "disabled() ? \"\" : null",
|
|
152
|
+
"[attr.data-dragging]": "dragging() ? \"\" : null",
|
|
153
|
+
"[style.--vd-splitter-first]": "position() + \"fr\"",
|
|
154
|
+
"[style.--vd-splitter-second]": "(100 - position()) + \"fr\""
|
|
155
|
+
}
|
|
156
|
+
}]
|
|
157
|
+
}],
|
|
158
|
+
propDecorators: {
|
|
159
|
+
value: [{
|
|
160
|
+
type: i0.Input,
|
|
161
|
+
args: [{
|
|
162
|
+
isSignal: true,
|
|
163
|
+
alias: "value",
|
|
164
|
+
required: false
|
|
165
|
+
}]
|
|
166
|
+
}, {
|
|
167
|
+
type: i0.Output,
|
|
168
|
+
args: ["valueChange"]
|
|
169
|
+
}],
|
|
170
|
+
min: [{
|
|
171
|
+
type: i0.Input,
|
|
172
|
+
args: [{
|
|
173
|
+
isSignal: true,
|
|
174
|
+
alias: "min",
|
|
175
|
+
required: false
|
|
176
|
+
}]
|
|
177
|
+
}],
|
|
178
|
+
max: [{
|
|
179
|
+
type: i0.Input,
|
|
180
|
+
args: [{
|
|
181
|
+
isSignal: true,
|
|
182
|
+
alias: "max",
|
|
183
|
+
required: false
|
|
184
|
+
}]
|
|
185
|
+
}],
|
|
186
|
+
step: [{
|
|
187
|
+
type: i0.Input,
|
|
188
|
+
args: [{
|
|
189
|
+
isSignal: true,
|
|
190
|
+
alias: "step",
|
|
191
|
+
required: false
|
|
192
|
+
}]
|
|
193
|
+
}],
|
|
194
|
+
orientation: [{
|
|
195
|
+
type: i0.Input,
|
|
196
|
+
args: [{
|
|
197
|
+
isSignal: true,
|
|
198
|
+
alias: "orientation",
|
|
199
|
+
required: false
|
|
200
|
+
}]
|
|
201
|
+
}],
|
|
202
|
+
disabled: [{
|
|
203
|
+
type: i0.Input,
|
|
204
|
+
args: [{
|
|
205
|
+
isSignal: true,
|
|
206
|
+
alias: "disabled",
|
|
207
|
+
required: false
|
|
208
|
+
}]
|
|
209
|
+
}],
|
|
210
|
+
descendants: [{
|
|
211
|
+
type: i0.ContentChildren,
|
|
212
|
+
args: [i0.forwardRef(() => VdSplitterPane), {
|
|
213
|
+
descendants: true,
|
|
214
|
+
isSignal: true
|
|
215
|
+
}]
|
|
216
|
+
}]
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
var VdSplitterPane = class VdSplitterPane {
|
|
220
|
+
splitter = inject(VdSplitter);
|
|
221
|
+
id = input(vdUniqueId("vd-splitter-pane"), ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
222
|
+
element = inject(ElementRef).nativeElement;
|
|
223
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
224
|
+
minVersion: "12.0.0",
|
|
225
|
+
version: "22.2.1",
|
|
226
|
+
ngImport: i0,
|
|
227
|
+
type: VdSplitterPane,
|
|
228
|
+
deps: [],
|
|
229
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
230
|
+
});
|
|
231
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
232
|
+
minVersion: "17.1.0",
|
|
233
|
+
version: "22.2.1",
|
|
234
|
+
type: VdSplitterPane,
|
|
235
|
+
isStandalone: true,
|
|
236
|
+
selector: "[vdSplitterPane]",
|
|
237
|
+
inputs: { id: {
|
|
238
|
+
classPropertyName: "id",
|
|
239
|
+
publicName: "id",
|
|
240
|
+
isSignal: true,
|
|
241
|
+
isRequired: false,
|
|
242
|
+
transformFunction: null
|
|
243
|
+
} },
|
|
244
|
+
host: {
|
|
245
|
+
attributes: { "tabindex": "0" },
|
|
246
|
+
properties: { "id": "id()" },
|
|
247
|
+
classAttribute: "vd-splitter__pane"
|
|
248
|
+
},
|
|
249
|
+
ngImport: i0
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
253
|
+
minVersion: "12.0.0",
|
|
254
|
+
version: "22.2.1",
|
|
255
|
+
ngImport: i0,
|
|
256
|
+
type: VdSplitterPane,
|
|
257
|
+
decorators: [{
|
|
258
|
+
type: Directive,
|
|
259
|
+
args: [{
|
|
260
|
+
selector: "[vdSplitterPane]",
|
|
261
|
+
host: {
|
|
262
|
+
class: "vd-splitter__pane",
|
|
263
|
+
"[id]": "id()",
|
|
264
|
+
tabindex: "0"
|
|
265
|
+
}
|
|
266
|
+
}]
|
|
267
|
+
}],
|
|
268
|
+
propDecorators: { id: [{
|
|
269
|
+
type: i0.Input,
|
|
270
|
+
args: [{
|
|
271
|
+
isSignal: true,
|
|
272
|
+
alias: "id",
|
|
273
|
+
required: false
|
|
274
|
+
}]
|
|
275
|
+
}] }
|
|
276
|
+
});
|
|
277
|
+
var VdSplitterHandle = class VdSplitterHandle {
|
|
278
|
+
label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
279
|
+
splitter = inject(VdSplitter);
|
|
280
|
+
element = inject(ElementRef).nativeElement;
|
|
281
|
+
drag = null;
|
|
282
|
+
constructor() {
|
|
283
|
+
inject(DestroyRef).onDestroy(() => this.finish());
|
|
284
|
+
effect(() => {
|
|
285
|
+
const locked = this.splitter.locked();
|
|
286
|
+
const orientation = this.splitter.orientation();
|
|
287
|
+
const { min, max } = this.splitter.bounds();
|
|
288
|
+
if (this.drag && (locked || orientation !== this.drag.orientation || min !== this.drag.min || max !== this.drag.max)) this.finish();
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
direction() {
|
|
292
|
+
return this.splitter.element.matches(":dir(rtl)") ? "rtl" : "ltr";
|
|
293
|
+
}
|
|
294
|
+
onKeydown(event) {
|
|
295
|
+
if (event.target !== this.element || this.splitter.locked() || event.isComposing || event.ctrlKey || event.metaKey || event.altKey || event.shiftKey) return;
|
|
296
|
+
const target = vdSplitterKey(event.key, this.splitter.position(), this.splitter.bounds(), this.splitter.orientation(), this.direction(), this.splitter.step());
|
|
297
|
+
if (target === null) return;
|
|
298
|
+
event.preventDefault();
|
|
299
|
+
this.finish();
|
|
300
|
+
this.splitter.resize(target);
|
|
301
|
+
}
|
|
302
|
+
onPointerDown(event) {
|
|
303
|
+
if (!event.isPrimary || event.button !== 0 || this.splitter.locked() || this.drag) return;
|
|
304
|
+
if (typeof this.element.setPointerCapture !== "function") return;
|
|
305
|
+
try {
|
|
306
|
+
this.element.setPointerCapture(event.pointerId);
|
|
307
|
+
} catch {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
event.preventDefault();
|
|
311
|
+
this.element.focus({ preventScroll: true });
|
|
312
|
+
const orientation = this.splitter.orientation();
|
|
313
|
+
this.drag = {
|
|
314
|
+
id: event.pointerId,
|
|
315
|
+
start: orientation === "horizontal" ? event.clientX : event.clientY,
|
|
316
|
+
value: this.splitter.position(),
|
|
317
|
+
orientation,
|
|
318
|
+
dir: this.direction(),
|
|
319
|
+
...this.splitter.bounds()
|
|
320
|
+
};
|
|
321
|
+
this.splitter.dragging.set(true);
|
|
322
|
+
}
|
|
323
|
+
onPointerMove(event) {
|
|
324
|
+
const drag = this.drag;
|
|
325
|
+
if (!drag || drag.id !== event.pointerId) return;
|
|
326
|
+
if (this.splitter.locked() || this.direction() !== drag.dir || this.splitter.orientation() !== drag.orientation) {
|
|
327
|
+
this.finish();
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
const span = this.splitter.panes().reduce((size, pane) => {
|
|
331
|
+
const r = pane.element.getBoundingClientRect();
|
|
332
|
+
return size + (drag.orientation === "horizontal" ? r.width : r.height);
|
|
333
|
+
}, 0);
|
|
334
|
+
const point = drag.orientation === "horizontal" ? event.clientX : event.clientY;
|
|
335
|
+
this.splitter.resize(vdSplitterDrag(drag.value, point - drag.start, span, this.splitter.bounds(), drag.orientation === "horizontal" && drag.dir === "rtl"));
|
|
336
|
+
}
|
|
337
|
+
onPointerEnd(event) {
|
|
338
|
+
if (event.pointerId === this.drag?.id) this.finish();
|
|
339
|
+
}
|
|
340
|
+
finish() {
|
|
341
|
+
const drag = this.drag;
|
|
342
|
+
this.drag = null;
|
|
343
|
+
this.splitter.dragging.set(false);
|
|
344
|
+
if (drag && this.element.hasPointerCapture?.(drag.id)) this.element.releasePointerCapture(drag.id);
|
|
345
|
+
}
|
|
346
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
347
|
+
minVersion: "12.0.0",
|
|
348
|
+
version: "22.2.1",
|
|
349
|
+
ngImport: i0,
|
|
350
|
+
type: VdSplitterHandle,
|
|
351
|
+
deps: [],
|
|
352
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
353
|
+
});
|
|
354
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
355
|
+
minVersion: "17.1.0",
|
|
356
|
+
version: "22.2.1",
|
|
357
|
+
type: VdSplitterHandle,
|
|
358
|
+
isStandalone: true,
|
|
359
|
+
selector: "[vdSplitterHandle]",
|
|
360
|
+
inputs: { label: {
|
|
361
|
+
classPropertyName: "label",
|
|
362
|
+
publicName: "label",
|
|
363
|
+
isSignal: true,
|
|
364
|
+
isRequired: true,
|
|
365
|
+
transformFunction: null
|
|
366
|
+
} },
|
|
367
|
+
host: {
|
|
368
|
+
attributes: { "role": "separator" },
|
|
369
|
+
listeners: {
|
|
370
|
+
"keydown": "onKeydown($event)",
|
|
371
|
+
"pointerdown": "onPointerDown($event)",
|
|
372
|
+
"pointermove": "onPointerMove($event)",
|
|
373
|
+
"pointerup": "onPointerEnd($event)",
|
|
374
|
+
"pointercancel": "onPointerEnd($event)",
|
|
375
|
+
"lostpointercapture": "onPointerEnd($event)"
|
|
376
|
+
},
|
|
377
|
+
properties: {
|
|
378
|
+
"attr.tabindex": "splitter.locked() ? -1 : 0",
|
|
379
|
+
"attr.aria-label": "label()",
|
|
380
|
+
"attr.aria-controls": "splitter.panes()[0]?.id() ?? null",
|
|
381
|
+
"attr.aria-orientation": "splitter.orientation() === \"horizontal\" ? \"vertical\" : \"horizontal\"",
|
|
382
|
+
"attr.aria-valuenow": "splitter.position()",
|
|
383
|
+
"attr.aria-valuemin": "splitter.bounds().min",
|
|
384
|
+
"attr.aria-valuemax": "splitter.bounds().max",
|
|
385
|
+
"attr.aria-disabled": "splitter.locked() ? \"true\" : null"
|
|
386
|
+
},
|
|
387
|
+
classAttribute: "vd-splitter__handle"
|
|
388
|
+
},
|
|
389
|
+
ngImport: i0
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
393
|
+
minVersion: "12.0.0",
|
|
394
|
+
version: "22.2.1",
|
|
395
|
+
ngImport: i0,
|
|
396
|
+
type: VdSplitterHandle,
|
|
397
|
+
decorators: [{
|
|
398
|
+
type: Directive,
|
|
399
|
+
args: [{
|
|
400
|
+
selector: "[vdSplitterHandle]",
|
|
401
|
+
host: {
|
|
402
|
+
class: "vd-splitter__handle",
|
|
403
|
+
role: "separator",
|
|
404
|
+
"[attr.tabindex]": "splitter.locked() ? -1 : 0",
|
|
405
|
+
"[attr.aria-label]": "label()",
|
|
406
|
+
"[attr.aria-controls]": "splitter.panes()[0]?.id() ?? null",
|
|
407
|
+
"[attr.aria-orientation]": "splitter.orientation() === \"horizontal\" ? \"vertical\" : \"horizontal\"",
|
|
408
|
+
"[attr.aria-valuenow]": "splitter.position()",
|
|
409
|
+
"[attr.aria-valuemin]": "splitter.bounds().min",
|
|
410
|
+
"[attr.aria-valuemax]": "splitter.bounds().max",
|
|
411
|
+
"[attr.aria-disabled]": "splitter.locked() ? \"true\" : null",
|
|
412
|
+
"(keydown)": "onKeydown($event)",
|
|
413
|
+
"(pointerdown)": "onPointerDown($event)",
|
|
414
|
+
"(pointermove)": "onPointerMove($event)",
|
|
415
|
+
"(pointerup)": "onPointerEnd($event)",
|
|
416
|
+
"(pointercancel)": "onPointerEnd($event)",
|
|
417
|
+
"(lostpointercapture)": "onPointerEnd($event)"
|
|
418
|
+
}
|
|
419
|
+
}]
|
|
420
|
+
}],
|
|
421
|
+
ctorParameters: () => [],
|
|
422
|
+
propDecorators: { label: [{
|
|
423
|
+
type: i0.Input,
|
|
424
|
+
args: [{
|
|
425
|
+
isSignal: true,
|
|
426
|
+
alias: "label",
|
|
427
|
+
required: true
|
|
428
|
+
}]
|
|
429
|
+
}] }
|
|
430
|
+
});
|
|
431
|
+
const VD_SPLITTER = [
|
|
432
|
+
VdSplitter,
|
|
433
|
+
VdSplitterPane,
|
|
434
|
+
VdSplitterHandle
|
|
435
|
+
];
|
|
436
|
+
export { VD_SPLITTER, VdSplitter, VdSplitterHandle, VdSplitterPane };
|
|
437
|
+
|
|
438
|
+
//# sourceMappingURL=vadem-ui-splitter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vadem-ui-splitter.mjs","names":[],"sources":["../../../projects/ui/splitter/src/core/splitter.ts","../../../projects/ui/splitter/src/splitter.ts"],"sourcesContent":["export interface VdSplitterBounds {\n min: number;\n max: number;\n}\nconst finite = (value: number, fallback: number) => (Number.isFinite(value) ? value : fallback);\nconst clamp = (value: number, min: number, max: number) => Math.min(max, Math.max(min, value));\n\n/** Nonzero panes keep their scrollable content reachable; invalid/reversed bounds become fixed. */\nexport function vdSplitterBounds(min: number, max: number): VdSplitterBounds {\n const lower = clamp(finite(min, 10), 1, 99);\n return { min: lower, max: Math.max(lower, clamp(finite(max, 90), 1, 99)) };\n}\nexport function vdSplitterValue(value: number, bounds: VdSplitterBounds): number {\n return clamp(finite(value, 50), bounds.min, bounds.max);\n}\nexport function vdSplitterKey(\n key: string,\n value: number,\n bounds: VdSplitterBounds,\n orientation: 'horizontal' | 'vertical',\n dir: 'ltr' | 'rtl',\n step: number,\n): number | null {\n if (key === 'Home') return bounds.min;\n if (key === 'End') return bounds.max;\n let delta = 0;\n if (orientation === 'horizontal') {\n if (key === 'ArrowRight') delta = dir === 'rtl' ? -1 : 1;\n if (key === 'ArrowLeft') delta = dir === 'rtl' ? 1 : -1;\n } else {\n if (key === 'ArrowDown') delta = 1;\n if (key === 'ArrowUp') delta = -1;\n }\n if (!delta) return null;\n const amount = step > 0 && Number.isFinite(step) ? step : 1;\n return vdSplitterValue(Math.round((value + delta * amount) * 10000) / 10000, bounds);\n}\nexport function vdSplitterDrag(\n value: number,\n delta: number,\n span: number,\n bounds: VdSplitterBounds,\n reverse: boolean,\n): number {\n if (!(span > 0) || !Number.isFinite(delta) || !Number.isFinite(span)) return value;\n return vdSplitterValue(\n Math.round((value + (delta / span) * 100 * (reverse ? -1 : 1)) * 10000) / 10000,\n bounds,\n );\n}\n","import {\n booleanAttribute,\n computed,\n contentChildren,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n model,\n signal,\n} from '@angular/core';\nimport { vdUniqueId } from '@vadem/ui/field';\nimport { type VdOrientation } from '@vadem/ui/keyboard';\nimport { vdSplitterBounds, vdSplitterDrag, vdSplitterKey, vdSplitterValue } from './core/splitter';\n\n@Directive({\n selector: '[vdSplitter]',\n exportAs: 'vdSplitter',\n host: {\n class: 'vd-splitter',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '[attr.data-dragging]': 'dragging() ? \"\" : null',\n '[style.--vd-splitter-first]': 'position() + \"fr\"',\n '[style.--vd-splitter-second]': '(100 - position()) + \"fr\"',\n },\n})\nexport class VdSplitter {\n readonly value = model(50);\n readonly min = input(10);\n readonly max = input(90);\n readonly step = input(1);\n /** Layout axis: horizontal means side by side, vertical means stacked panes. */\n readonly orientation = input<VdOrientation>('horizontal');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly dragging = signal(false);\n readonly bounds = computed(() => vdSplitterBounds(this.min(), this.max()));\n readonly position = computed(() => vdSplitterValue(this.value(), this.bounds()));\n private readonly descendants = contentChildren(VdSplitterPane, { descendants: true });\n readonly panes = computed(() => this.descendants().filter((pane) => pane.splitter === this));\n readonly locked = computed(\n () => this.disabled() || this.bounds().min === this.bounds().max || this.panes().length !== 2,\n );\n readonly element: HTMLElement = inject(ElementRef).nativeElement;\n resize(value: number): void {\n if (this.locked()) return;\n const next = vdSplitterValue(value, this.bounds());\n if (next !== this.position()) this.value.set(next);\n }\n}\n\n@Directive({\n selector: '[vdSplitterPane]',\n host: { class: 'vd-splitter__pane', '[id]': 'id()', tabindex: '0' },\n})\nexport class VdSplitterPane {\n readonly splitter = inject(VdSplitter);\n readonly id = input(vdUniqueId('vd-splitter-pane'));\n readonly element: HTMLElement = inject(ElementRef).nativeElement;\n}\n\ninterface Drag {\n id: number;\n start: number;\n value: number;\n orientation: VdOrientation;\n dir: 'ltr' | 'rtl';\n min: number;\n max: number;\n}\n@Directive({\n selector: '[vdSplitterHandle]',\n host: {\n class: 'vd-splitter__handle',\n role: 'separator',\n '[attr.tabindex]': 'splitter.locked() ? -1 : 0',\n '[attr.aria-label]': 'label()',\n '[attr.aria-controls]': 'splitter.panes()[0]?.id() ?? null',\n '[attr.aria-orientation]':\n 'splitter.orientation() === \"horizontal\" ? \"vertical\" : \"horizontal\"',\n '[attr.aria-valuenow]': 'splitter.position()',\n '[attr.aria-valuemin]': 'splitter.bounds().min',\n '[attr.aria-valuemax]': 'splitter.bounds().max',\n '[attr.aria-disabled]': 'splitter.locked() ? \"true\" : null',\n '(keydown)': 'onKeydown($event)',\n '(pointerdown)': 'onPointerDown($event)',\n '(pointermove)': 'onPointerMove($event)',\n '(pointerup)': 'onPointerEnd($event)',\n '(pointercancel)': 'onPointerEnd($event)',\n '(lostpointercapture)': 'onPointerEnd($event)',\n },\n})\nexport class VdSplitterHandle {\n /** Match the primary pane's name; consumers can provide aria-labelledby for its heading. */\n readonly label = input.required<string>();\n readonly splitter = inject(VdSplitter);\n private readonly element: HTMLElement = inject(ElementRef).nativeElement;\n private drag: Drag | null = null;\n constructor() {\n inject(DestroyRef).onDestroy(() => this.finish());\n effect(() => {\n const locked = this.splitter.locked();\n const orientation = this.splitter.orientation();\n const { min, max } = this.splitter.bounds();\n if (\n this.drag &&\n (locked ||\n orientation !== this.drag.orientation ||\n min !== this.drag.min ||\n max !== this.drag.max)\n )\n this.finish();\n });\n }\n private direction(): 'ltr' | 'rtl' {\n return this.splitter.element.matches(':dir(rtl)') ? 'rtl' : 'ltr';\n }\n protected onKeydown(event: KeyboardEvent): void {\n if (\n event.target !== this.element ||\n this.splitter.locked() ||\n event.isComposing ||\n event.ctrlKey ||\n event.metaKey ||\n event.altKey ||\n event.shiftKey\n )\n return;\n const target = vdSplitterKey(\n event.key,\n this.splitter.position(),\n this.splitter.bounds(),\n this.splitter.orientation(),\n this.direction(),\n this.splitter.step(),\n );\n if (target === null) return;\n event.preventDefault();\n this.finish();\n this.splitter.resize(target);\n }\n protected onPointerDown(event: PointerEvent): void {\n if (!event.isPrimary || event.button !== 0 || this.splitter.locked() || this.drag) return;\n // Native capture handles mouse/touch/pen beyond the rail; keyboard remains a fallback.\n if (typeof this.element.setPointerCapture !== 'function') return;\n try {\n this.element.setPointerCapture(event.pointerId);\n } catch {\n return;\n }\n event.preventDefault();\n this.element.focus({ preventScroll: true });\n const orientation = this.splitter.orientation();\n this.drag = {\n id: event.pointerId,\n start: orientation === 'horizontal' ? event.clientX : event.clientY,\n value: this.splitter.position(),\n orientation,\n dir: this.direction(),\n ...this.splitter.bounds(),\n };\n this.splitter.dragging.set(true);\n }\n protected onPointerMove(event: PointerEvent): void {\n const drag = this.drag;\n if (!drag || drag.id !== event.pointerId) return;\n if (\n this.splitter.locked() ||\n this.direction() !== drag.dir ||\n this.splitter.orientation() !== drag.orientation\n ) {\n this.finish();\n return;\n }\n const span = this.splitter.panes().reduce((size, pane) => {\n const r = pane.element.getBoundingClientRect();\n return size + (drag.orientation === 'horizontal' ? r.width : r.height);\n }, 0);\n const point = drag.orientation === 'horizontal' ? event.clientX : event.clientY;\n this.splitter.resize(\n vdSplitterDrag(\n drag.value,\n point - drag.start,\n span,\n this.splitter.bounds(),\n drag.orientation === 'horizontal' && drag.dir === 'rtl',\n ),\n );\n }\n protected onPointerEnd(event: PointerEvent): void {\n if (event.pointerId === this.drag?.id) this.finish();\n }\n private finish(): void {\n const drag = this.drag;\n this.drag = null;\n this.splitter.dragging.set(false);\n if (drag && this.element.hasPointerCapture?.(drag.id))\n this.element.releasePointerCapture(drag.id);\n }\n}\nexport const VD_SPLITTER = [VdSplitter, VdSplitterPane, VdSplitterHandle] as const;\n"],"mappings":";;;AAIA,MAAM,UAAU,OAAe,aAAsB,OAAO,SAAS,KAAK,IAAI,QAAQ;AACtF,MAAM,SAAS,OAAe,KAAa,QAAgB,KAAK,IAAI,KAAK,KAAK,IAAI,KAAK,KAAK,CAAC;AAG7F,SAAgB,iBAAiB,KAAa,KAAW;CACvD,MAAM,QAAQ,MAAM,OAAO,KAAK,EAAE,GAAG,GAAG,EAAE;CAC1C,OAAO;EAAE,KAAK;EAAO,KAAK,KAAK,IAAI,OAAO,MAAM,OAAO,KAAK,EAAE,GAAG,GAAG,EAAE,CAAC;CAAC;AAC1E;AACA,SAAgB,gBAAgB,OAAe,QAAwB;CACrE,OA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