avero-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 +21 -0
- package/README.md +1043 -2
- package/fesm2022/avero-ui-accordion.mjs +515 -0
- package/fesm2022/avero-ui-accordion.mjs.map +1 -0
- package/fesm2022/avero-ui-animate-on-scroll.mjs +223 -0
- package/fesm2022/avero-ui-animate-on-scroll.mjs.map +1 -0
- package/fesm2022/avero-ui-auto-complete.mjs +638 -0
- package/fesm2022/avero-ui-auto-complete.mjs.map +1 -0
- package/fesm2022/avero-ui-auto-focus.mjs +88 -0
- package/fesm2022/avero-ui-auto-focus.mjs.map +1 -0
- package/fesm2022/avero-ui-avatar.mjs +274 -0
- package/fesm2022/avero-ui-avatar.mjs.map +1 -0
- package/fesm2022/avero-ui-badge.mjs +278 -0
- package/fesm2022/avero-ui-badge.mjs.map +1 -0
- package/fesm2022/avero-ui-bind.mjs +103 -0
- package/fesm2022/avero-ui-bind.mjs.map +1 -0
- package/fesm2022/avero-ui-block-ui.mjs +175 -0
- package/fesm2022/avero-ui-block-ui.mjs.map +1 -0
- package/fesm2022/avero-ui-breadcrumb.mjs +187 -0
- package/fesm2022/avero-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/avero-ui-button.mjs +118 -0
- package/fesm2022/avero-ui-button.mjs.map +1 -0
- package/fesm2022/avero-ui-calendar.mjs +412 -0
- package/fesm2022/avero-ui-calendar.mjs.map +1 -0
- package/fesm2022/avero-ui-card.mjs +305 -0
- package/fesm2022/avero-ui-card.mjs.map +1 -0
- package/fesm2022/avero-ui-carousel.mjs +390 -0
- package/fesm2022/avero-ui-carousel.mjs.map +1 -0
- package/fesm2022/avero-ui-cascade-select.mjs +771 -0
- package/fesm2022/avero-ui-cascade-select.mjs.map +1 -0
- package/fesm2022/avero-ui-chart.mjs +361 -0
- package/fesm2022/avero-ui-chart.mjs.map +1 -0
- package/fesm2022/avero-ui-checkbox.mjs +279 -0
- package/fesm2022/avero-ui-checkbox.mjs.map +1 -0
- package/fesm2022/avero-ui-chip.mjs +256 -0
- package/fesm2022/avero-ui-chip.mjs.map +1 -0
- package/fesm2022/avero-ui-class-names.mjs +80 -0
- package/fesm2022/avero-ui-class-names.mjs.map +1 -0
- package/fesm2022/avero-ui-color-picker.mjs +665 -0
- package/fesm2022/avero-ui-color-picker.mjs.map +1 -0
- package/fesm2022/avero-ui-confirm-dialog.mjs +561 -0
- package/fesm2022/avero-ui-confirm-dialog.mjs.map +1 -0
- package/fesm2022/avero-ui-confirm-popup.mjs +406 -0
- package/fesm2022/avero-ui-confirm-popup.mjs.map +1 -0
- package/fesm2022/avero-ui-context-menu.mjs +409 -0
- package/fesm2022/avero-ui-context-menu.mjs.map +1 -0
- package/fesm2022/avero-ui-core.mjs +38 -0
- package/fesm2022/avero-ui-core.mjs.map +1 -0
- package/fesm2022/avero-ui-data-view.mjs +312 -0
- package/fesm2022/avero-ui-data-view.mjs.map +1 -0
- package/fesm2022/avero-ui-dialog.mjs +595 -0
- package/fesm2022/avero-ui-dialog.mjs.map +1 -0
- package/fesm2022/avero-ui-divider.mjs +119 -0
- package/fesm2022/avero-ui-divider.mjs.map +1 -0
- package/fesm2022/avero-ui-dock.mjs +243 -0
- package/fesm2022/avero-ui-dock.mjs.map +1 -0
- package/fesm2022/avero-ui-drawer.mjs +577 -0
- package/fesm2022/avero-ui-drawer.mjs.map +1 -0
- package/fesm2022/avero-ui-dropdown.mjs +510 -0
- package/fesm2022/avero-ui-dropdown.mjs.map +1 -0
- package/fesm2022/avero-ui-dynamic-dialog.mjs +268 -0
- package/fesm2022/avero-ui-dynamic-dialog.mjs.map +1 -0
- package/fesm2022/avero-ui-fieldset.mjs +354 -0
- package/fesm2022/avero-ui-fieldset.mjs.map +1 -0
- package/fesm2022/avero-ui-file-upload.mjs +658 -0
- package/fesm2022/avero-ui-file-upload.mjs.map +1 -0
- package/fesm2022/avero-ui-fluid.mjs +147 -0
- package/fesm2022/avero-ui-fluid.mjs.map +1 -0
- package/fesm2022/avero-ui-focus-trap.mjs +120 -0
- package/fesm2022/avero-ui-focus-trap.mjs.map +1 -0
- package/fesm2022/avero-ui-galleria.mjs +523 -0
- package/fesm2022/avero-ui-galleria.mjs.map +1 -0
- package/fesm2022/avero-ui-icon-field.mjs +99 -0
- package/fesm2022/avero-ui-icon-field.mjs.map +1 -0
- package/fesm2022/avero-ui-image-compare.mjs +274 -0
- package/fesm2022/avero-ui-image-compare.mjs.map +1 -0
- package/fesm2022/avero-ui-image.mjs +397 -0
- package/fesm2022/avero-ui-image.mjs.map +1 -0
- package/fesm2022/avero-ui-input-group.mjs +79 -0
- package/fesm2022/avero-ui-input-group.mjs.map +1 -0
- package/fesm2022/avero-ui-input-mask.mjs +678 -0
- package/fesm2022/avero-ui-input-mask.mjs.map +1 -0
- package/fesm2022/avero-ui-input-number.mjs +390 -0
- package/fesm2022/avero-ui-input-number.mjs.map +1 -0
- package/fesm2022/avero-ui-input-otp.mjs +541 -0
- package/fesm2022/avero-ui-input-otp.mjs.map +1 -0
- package/fesm2022/avero-ui-input.mjs +140 -0
- package/fesm2022/avero-ui-input.mjs.map +1 -0
- package/fesm2022/avero-ui-knob.mjs +436 -0
- package/fesm2022/avero-ui-knob.mjs.map +1 -0
- package/fesm2022/avero-ui-mega-menu.mjs +431 -0
- package/fesm2022/avero-ui-mega-menu.mjs.map +1 -0
- package/fesm2022/avero-ui-menu.mjs +398 -0
- package/fesm2022/avero-ui-menu.mjs.map +1 -0
- package/fesm2022/avero-ui-menubar.mjs +387 -0
- package/fesm2022/avero-ui-menubar.mjs.map +1 -0
- package/fesm2022/avero-ui-message.mjs +221 -0
- package/fesm2022/avero-ui-message.mjs.map +1 -0
- package/fesm2022/avero-ui-order-list.mjs +302 -0
- package/fesm2022/avero-ui-order-list.mjs.map +1 -0
- package/fesm2022/avero-ui-organization-chart.mjs +505 -0
- package/fesm2022/avero-ui-organization-chart.mjs.map +1 -0
- package/fesm2022/avero-ui-paginator.mjs +319 -0
- package/fesm2022/avero-ui-paginator.mjs.map +1 -0
- package/fesm2022/avero-ui-panel-menu.mjs +339 -0
- package/fesm2022/avero-ui-panel-menu.mjs.map +1 -0
- package/fesm2022/avero-ui-password.mjs +483 -0
- package/fesm2022/avero-ui-password.mjs.map +1 -0
- package/fesm2022/avero-ui-popover.mjs +469 -0
- package/fesm2022/avero-ui-popover.mjs.map +1 -0
- package/fesm2022/avero-ui-progress-bar.mjs +194 -0
- package/fesm2022/avero-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/avero-ui-progress-spinner.mjs +150 -0
- package/fesm2022/avero-ui-progress-spinner.mjs.map +1 -0
- package/fesm2022/avero-ui-radio.mjs +67 -0
- package/fesm2022/avero-ui-radio.mjs.map +1 -0
- package/fesm2022/avero-ui-rating.mjs +271 -0
- package/fesm2022/avero-ui-rating.mjs.map +1 -0
- package/fesm2022/avero-ui-scroll-panel.mjs +415 -0
- package/fesm2022/avero-ui-scroll-panel.mjs.map +1 -0
- package/fesm2022/avero-ui-slider.mjs +274 -0
- package/fesm2022/avero-ui-slider.mjs.map +1 -0
- package/fesm2022/avero-ui-splitter.mjs +438 -0
- package/fesm2022/avero-ui-splitter.mjs.map +1 -0
- package/fesm2022/avero-ui-stepper.mjs +626 -0
- package/fesm2022/avero-ui-stepper.mjs.map +1 -0
- package/fesm2022/avero-ui-switch.mjs +252 -0
- package/fesm2022/avero-ui-switch.mjs.map +1 -0
- package/fesm2022/avero-ui-table.mjs +448 -0
- package/fesm2022/avero-ui-table.mjs.map +1 -0
- package/fesm2022/avero-ui-tabs.mjs +693 -0
- package/fesm2022/avero-ui-tabs.mjs.map +1 -0
- package/fesm2022/avero-ui-textarea.mjs +180 -0
- package/fesm2022/avero-ui-textarea.mjs.map +1 -0
- package/fesm2022/avero-ui-tiered-menu.mjs +444 -0
- package/fesm2022/avero-ui-tiered-menu.mjs.map +1 -0
- package/fesm2022/avero-ui-timeline.mjs +348 -0
- package/fesm2022/avero-ui-timeline.mjs.map +1 -0
- package/fesm2022/avero-ui-toast.mjs +291 -0
- package/fesm2022/avero-ui-toast.mjs.map +1 -0
- package/fesm2022/avero-ui-toggle-button.mjs +317 -0
- package/fesm2022/avero-ui-toggle-button.mjs.map +1 -0
- package/fesm2022/avero-ui-toolbar.mjs +284 -0
- package/fesm2022/avero-ui-toolbar.mjs.map +1 -0
- package/fesm2022/avero-ui-tooltip.mjs +442 -0
- package/fesm2022/avero-ui-tooltip.mjs.map +1 -0
- package/fesm2022/avero-ui-tree.mjs +426 -0
- package/fesm2022/avero-ui-tree.mjs.map +1 -0
- package/fesm2022/avero-ui-virtual-scroller.mjs +503 -0
- package/fesm2022/avero-ui-virtual-scroller.mjs.map +1 -0
- package/fesm2022/avero-ui.mjs +114 -0
- package/fesm2022/avero-ui.mjs.map +1 -0
- package/package.json +342 -3
- package/scripts/install-agent-skills.mjs +31 -0
- package/skills/avero-ui-build/SKILL.md +40 -0
- package/skills/avero-ui-build/agents/openai.yaml +4 -0
- package/skills/avero-ui-build/assets/workspace-page.scss +94 -0
- package/skills/avero-ui-build/assets/workspace-page.ts +222 -0
- package/skills/avero-ui-build/references/components.md +47 -0
- package/skills/avero-ui-build/references/integration.md +65 -0
- package/skills/avero-ui-build/references/recipes.md +88 -0
- package/styles/theme.scss +92 -0
- package/types/avero-ui-accordion.d.ts +101 -0
- package/types/avero-ui-animate-on-scroll.d.ts +56 -0
- package/types/avero-ui-auto-complete.d.ts +188 -0
- package/types/avero-ui-auto-focus.d.ts +24 -0
- package/types/avero-ui-avatar.d.ts +73 -0
- package/types/avero-ui-badge.d.ts +71 -0
- package/types/avero-ui-bind.d.ts +26 -0
- package/types/avero-ui-block-ui.d.ts +31 -0
- package/types/avero-ui-breadcrumb.d.ts +65 -0
- package/types/avero-ui-button.d.ts +37 -0
- package/types/avero-ui-calendar.d.ts +105 -0
- package/types/avero-ui-card.d.ts +53 -0
- package/types/avero-ui-carousel.d.ts +128 -0
- package/types/avero-ui-cascade-select.d.ts +212 -0
- package/types/avero-ui-chart.d.ts +106 -0
- package/types/avero-ui-checkbox.d.ts +90 -0
- package/types/avero-ui-chip.d.ts +63 -0
- package/types/avero-ui-class-names.d.ts +24 -0
- package/types/avero-ui-color-picker.d.ts +173 -0
- package/types/avero-ui-confirm-dialog.d.ts +113 -0
- package/types/avero-ui-confirm-popup.d.ts +68 -0
- package/types/avero-ui-context-menu.d.ts +95 -0
- package/types/avero-ui-core.d.ts +11 -0
- package/types/avero-ui-data-view.d.ts +102 -0
- package/types/avero-ui-dialog.d.ts +118 -0
- package/types/avero-ui-divider.d.ts +31 -0
- package/types/avero-ui-dock.d.ts +80 -0
- package/types/avero-ui-drawer.d.ts +109 -0
- package/types/avero-ui-dropdown.d.ts +146 -0
- package/types/avero-ui-dynamic-dialog.d.ts +51 -0
- package/types/avero-ui-fieldset.d.ts +73 -0
- package/types/avero-ui-file-upload.d.ts +195 -0
- package/types/avero-ui-fluid.d.ts +32 -0
- package/types/avero-ui-focus-trap.d.ts +25 -0
- package/types/avero-ui-galleria.d.ts +156 -0
- package/types/avero-ui-icon-field.d.ts +22 -0
- package/types/avero-ui-image-compare.d.ts +77 -0
- package/types/avero-ui-image.d.ts +111 -0
- package/types/avero-ui-input-group.d.ts +14 -0
- package/types/avero-ui-input-mask.d.ts +178 -0
- package/types/avero-ui-input-number.d.ts +131 -0
- package/types/avero-ui-input-otp.d.ts +140 -0
- package/types/avero-ui-input.d.ts +36 -0
- package/types/avero-ui-knob.d.ts +139 -0
- package/types/avero-ui-mega-menu.d.ts +115 -0
- package/types/avero-ui-menu.d.ts +100 -0
- package/types/avero-ui-menubar.d.ts +91 -0
- package/types/avero-ui-message.d.ts +54 -0
- package/types/avero-ui-order-list.d.ts +85 -0
- package/types/avero-ui-organization-chart.d.ts +145 -0
- package/types/avero-ui-paginator.d.ts +104 -0
- package/types/avero-ui-panel-menu.d.ts +99 -0
- package/types/avero-ui-password.d.ts +163 -0
- package/types/avero-ui-popover.d.ts +91 -0
- package/types/avero-ui-progress-bar.d.ts +45 -0
- package/types/avero-ui-progress-spinner.d.ts +41 -0
- package/types/avero-ui-radio.d.ts +16 -0
- package/types/avero-ui-rating.d.ts +75 -0
- package/types/avero-ui-scroll-panel.d.ts +78 -0
- package/types/avero-ui-slider.d.ts +92 -0
- package/types/avero-ui-splitter.d.ts +90 -0
- package/types/avero-ui-stepper.d.ts +134 -0
- package/types/avero-ui-switch.d.ts +83 -0
- package/types/avero-ui-table.d.ts +150 -0
- package/types/avero-ui-tabs.d.ts +135 -0
- package/types/avero-ui-textarea.d.ts +43 -0
- package/types/avero-ui-tiered-menu.d.ts +105 -0
- package/types/avero-ui-timeline.d.ts +97 -0
- package/types/avero-ui-toast.d.ts +99 -0
- package/types/avero-ui-toggle-button.d.ts +115 -0
- package/types/avero-ui-toolbar.d.ts +33 -0
- package/types/avero-ui-tooltip.d.ts +93 -0
- package/types/avero-ui-tree.d.ts +128 -0
- package/types/avero-ui-virtual-scroller.d.ts +149 -0
- package/types/avero-ui.d.ts +82 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { AvFluidControl } from "avero-ui/fluid";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, input } from "@angular/core";
|
|
4
|
+
var AvInput = class AvInput {
|
|
5
|
+
avSize = input("md", ...ngDevMode ? [{ debugName: "avSize" }] : /* istanbul ignore next */ []);
|
|
6
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
7
|
+
minVersion: "12.0.0",
|
|
8
|
+
version: "22.3.2",
|
|
9
|
+
ngImport: i0,
|
|
10
|
+
type: AvInput,
|
|
11
|
+
deps: [],
|
|
12
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
13
|
+
});
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
15
|
+
minVersion: "17.1.0",
|
|
16
|
+
version: "22.3.2",
|
|
17
|
+
type: AvInput,
|
|
18
|
+
isStandalone: true,
|
|
19
|
+
selector: "input[avInput]",
|
|
20
|
+
inputs: { avSize: {
|
|
21
|
+
classPropertyName: "avSize",
|
|
22
|
+
publicName: "avSize",
|
|
23
|
+
isSignal: true,
|
|
24
|
+
isRequired: false,
|
|
25
|
+
transformFunction: null
|
|
26
|
+
} },
|
|
27
|
+
host: {
|
|
28
|
+
properties: { "attr.data-av-size": "avSize()" },
|
|
29
|
+
classAttribute: "av-input"
|
|
30
|
+
},
|
|
31
|
+
hostDirectives: [{
|
|
32
|
+
directive: AvFluidControl,
|
|
33
|
+
inputs: ["fluid", "fluid"]
|
|
34
|
+
}],
|
|
35
|
+
ngImport: i0,
|
|
36
|
+
template: "",
|
|
37
|
+
isInline: true,
|
|
38
|
+
styles: [":host{box-sizing:border-box;display:inline-block;width:100%;min-width:0;height:40px;padding:0 12px;border:1px solid var(--av-input-border, var(--av-border-strong, #64748b));border-radius:var(--av-input-radius, 8px);background:var(--av-input-background, var(--av-surface, #fff));color:var(--av-input-color, var(--av-text-strong, #0f172a));font-family:inherit;font-size:14px;line-height:1.5;transition:border-color .12s ease,box-shadow .12s ease}:host([data-av-size=sm]){height:32px;padding-inline:10px;font-size:12px}:host([data-av-size=lg]){height:48px;padding-inline:16px;font-size:16px}:host::placeholder{color:var(--av-input-placeholder, var(--av-text-muted, #64748b));opacity:1}:host(:hover:not(:disabled)){border-color:var(--av-input-hover-border, var(--av-text, #475569))}:host(:focus-visible){border-color:var(--av-input-focus, var(--av-primary, #0f766e));outline:2px solid var(--av-input-focus, var(--av-primary, #0f766e));outline-offset:-2px}:host(:disabled){background:var(--av-input-disabled-background, var(--av-surface-muted, #f1f5f9));color:var(--av-input-disabled-color, var(--av-text-muted, #64748b));border-color:var(--av-input-disabled-border, var(--av-border, #e2e8f0));cursor:not-allowed;opacity:1}:host([aria-invalid=true]:not(:disabled)){border-color:var(--av-input-invalid-border, var(--av-danger, #b91c1c))}@media(forced-colors:active){:host{border-color:CanvasText}:host(:focus-visible){outline:2px solid Highlight}:host(:disabled){border-color:GrayText;color:GrayText}}@media(prefers-reduced-motion:reduce){:host{transition:none}}\n"],
|
|
39
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
43
|
+
minVersion: "12.0.0",
|
|
44
|
+
version: "22.3.2",
|
|
45
|
+
ngImport: i0,
|
|
46
|
+
type: AvInput,
|
|
47
|
+
decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{
|
|
50
|
+
hostDirectives: [{
|
|
51
|
+
directive: AvFluidControl,
|
|
52
|
+
inputs: ["fluid"]
|
|
53
|
+
}],
|
|
54
|
+
selector: "input[avInput]",
|
|
55
|
+
standalone: true,
|
|
56
|
+
template: "",
|
|
57
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
58
|
+
host: {
|
|
59
|
+
class: "av-input",
|
|
60
|
+
"[attr.data-av-size]": "avSize()"
|
|
61
|
+
},
|
|
62
|
+
styles: [":host{box-sizing:border-box;display:inline-block;width:100%;min-width:0;height:40px;padding:0 12px;border:1px solid var(--av-input-border, var(--av-border-strong, #64748b));border-radius:var(--av-input-radius, 8px);background:var(--av-input-background, var(--av-surface, #fff));color:var(--av-input-color, var(--av-text-strong, #0f172a));font-family:inherit;font-size:14px;line-height:1.5;transition:border-color .12s ease,box-shadow .12s ease}:host([data-av-size=sm]){height:32px;padding-inline:10px;font-size:12px}:host([data-av-size=lg]){height:48px;padding-inline:16px;font-size:16px}:host::placeholder{color:var(--av-input-placeholder, var(--av-text-muted, #64748b));opacity:1}:host(:hover:not(:disabled)){border-color:var(--av-input-hover-border, var(--av-text, #475569))}:host(:focus-visible){border-color:var(--av-input-focus, var(--av-primary, #0f766e));outline:2px solid var(--av-input-focus, var(--av-primary, #0f766e));outline-offset:-2px}:host(:disabled){background:var(--av-input-disabled-background, var(--av-surface-muted, #f1f5f9));color:var(--av-input-disabled-color, var(--av-text-muted, #64748b));border-color:var(--av-input-disabled-border, var(--av-border, #e2e8f0));cursor:not-allowed;opacity:1}:host([aria-invalid=true]:not(:disabled)){border-color:var(--av-input-invalid-border, var(--av-danger, #b91c1c))}@media(forced-colors:active){:host{border-color:CanvasText}:host(:focus-visible){outline:2px solid Highlight}:host(:disabled){border-color:GrayText;color:GrayText}}@media(prefers-reduced-motion:reduce){:host{transition:none}}\n"]
|
|
63
|
+
}]
|
|
64
|
+
}],
|
|
65
|
+
propDecorators: { avSize: [{
|
|
66
|
+
type: i0.Input,
|
|
67
|
+
args: [{
|
|
68
|
+
isSignal: true,
|
|
69
|
+
alias: "avSize",
|
|
70
|
+
required: false
|
|
71
|
+
}]
|
|
72
|
+
}] }
|
|
73
|
+
});
|
|
74
|
+
var AvFloatLabel = class AvFloatLabel {
|
|
75
|
+
label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
77
|
+
minVersion: "12.0.0",
|
|
78
|
+
version: "22.3.2",
|
|
79
|
+
ngImport: i0,
|
|
80
|
+
type: AvFloatLabel,
|
|
81
|
+
deps: [],
|
|
82
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
83
|
+
});
|
|
84
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
85
|
+
minVersion: "17.1.0",
|
|
86
|
+
version: "22.3.2",
|
|
87
|
+
type: AvFloatLabel,
|
|
88
|
+
isStandalone: true,
|
|
89
|
+
selector: "av-float-label",
|
|
90
|
+
inputs: { label: {
|
|
91
|
+
classPropertyName: "label",
|
|
92
|
+
publicName: "label",
|
|
93
|
+
isSignal: true,
|
|
94
|
+
isRequired: true,
|
|
95
|
+
transformFunction: null
|
|
96
|
+
} },
|
|
97
|
+
ngImport: i0,
|
|
98
|
+
template: `
|
|
99
|
+
<label class="field">
|
|
100
|
+
<ng-content select="input[avInput], textarea[avTextarea], av-icon-field" />
|
|
101
|
+
<span class="label">{{ label() }}</span>
|
|
102
|
+
</label>
|
|
103
|
+
`,
|
|
104
|
+
isInline: true,
|
|
105
|
+
styles: [":host{display:block;--av-floating-label-inset: 12px;--av-floating-label-font-size: 14px;--av-floating-icon-size: 16px}.field{position:relative;display:block;font-family:inherit}.label{position:absolute;top:50%;inset-inline-start:calc(var(--av-floating-label-inset) - 4px);max-width:calc(100% - 2 * var(--av-floating-label-inset));box-sizing:border-box;padding-inline:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transform:translateY(-50%);transform-origin:left center;color:var(--av-input-placeholder, var(--av-text-muted, #64748b));font-size:var(--av-floating-label-font-size);line-height:1.25;pointer-events:none;transition:top .16s ease,font-size .16s ease,color .16s ease}.field:has(:is(input,textarea)[data-av-size=sm]){--av-floating-label-inset: 10px;--av-floating-label-font-size: 12px;--av-floating-icon-size: 14px}.field:has(:is(input,textarea)[data-av-size=lg]){--av-floating-label-inset: 16px;--av-floating-label-font-size: 16px;--av-floating-icon-size: 20px}.field:has(:is(input,textarea):focus,:is(input,textarea):not(:placeholder-shown),input:autofill) .label{top:0;font-size:11px;background:var(--av-input-background, var(--av-surface, #fff))}.field:has(:is(input,textarea):focus) .label{color:var(--av-input-focus, var(--av-primary, #0f766e))}.field:has(:is(input,textarea):disabled) .label{color:var(--av-input-disabled-color, var(--av-text-muted, #64748b));background:var(--av-input-disabled-background, var(--av-surface-muted, #f1f5f9))}@media(prefers-reduced-motion:reduce){.label{transition:none}}.field:has(textarea:placeholder-shown:not(:focus)) .label{top:20px}.field:has(av-icon-field[data-icon-position=auto]>av-input-icon:first-child,av-icon-field[data-icon-position=left]>av-input-icon):has(input:placeholder-shown:not(:focus)) .label{inset-inline-start:calc(var(--av-floating-label-inset) + var(--av-floating-icon-size) + 4px);max-width:calc(100% - 2 * (var(--av-floating-label-inset) + var(--av-floating-label-font-size) + 10px))}\n"],
|
|
106
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
110
|
+
minVersion: "12.0.0",
|
|
111
|
+
version: "22.3.2",
|
|
112
|
+
ngImport: i0,
|
|
113
|
+
type: AvFloatLabel,
|
|
114
|
+
decorators: [{
|
|
115
|
+
type: Component,
|
|
116
|
+
args: [{
|
|
117
|
+
selector: "av-float-label",
|
|
118
|
+
standalone: true,
|
|
119
|
+
template: `
|
|
120
|
+
<label class="field">
|
|
121
|
+
<ng-content select="input[avInput], textarea[avTextarea], av-icon-field" />
|
|
122
|
+
<span class="label">{{ label() }}</span>
|
|
123
|
+
</label>
|
|
124
|
+
`,
|
|
125
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
126
|
+
styles: [":host{display:block;--av-floating-label-inset: 12px;--av-floating-label-font-size: 14px;--av-floating-icon-size: 16px}.field{position:relative;display:block;font-family:inherit}.label{position:absolute;top:50%;inset-inline-start:calc(var(--av-floating-label-inset) - 4px);max-width:calc(100% - 2 * var(--av-floating-label-inset));box-sizing:border-box;padding-inline:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transform:translateY(-50%);transform-origin:left center;color:var(--av-input-placeholder, var(--av-text-muted, #64748b));font-size:var(--av-floating-label-font-size);line-height:1.25;pointer-events:none;transition:top .16s ease,font-size .16s ease,color .16s ease}.field:has(:is(input,textarea)[data-av-size=sm]){--av-floating-label-inset: 10px;--av-floating-label-font-size: 12px;--av-floating-icon-size: 14px}.field:has(:is(input,textarea)[data-av-size=lg]){--av-floating-label-inset: 16px;--av-floating-label-font-size: 16px;--av-floating-icon-size: 20px}.field:has(:is(input,textarea):focus,:is(input,textarea):not(:placeholder-shown),input:autofill) .label{top:0;font-size:11px;background:var(--av-input-background, var(--av-surface, #fff))}.field:has(:is(input,textarea):focus) .label{color:var(--av-input-focus, var(--av-primary, #0f766e))}.field:has(:is(input,textarea):disabled) .label{color:var(--av-input-disabled-color, var(--av-text-muted, #64748b));background:var(--av-input-disabled-background, var(--av-surface-muted, #f1f5f9))}@media(prefers-reduced-motion:reduce){.label{transition:none}}.field:has(textarea:placeholder-shown:not(:focus)) .label{top:20px}.field:has(av-icon-field[data-icon-position=auto]>av-input-icon:first-child,av-icon-field[data-icon-position=left]>av-input-icon):has(input:placeholder-shown:not(:focus)) .label{inset-inline-start:calc(var(--av-floating-label-inset) + var(--av-floating-icon-size) + 4px);max-width:calc(100% - 2 * (var(--av-floating-label-inset) + var(--av-floating-label-font-size) + 10px))}\n"]
|
|
127
|
+
}]
|
|
128
|
+
}],
|
|
129
|
+
propDecorators: { label: [{
|
|
130
|
+
type: i0.Input,
|
|
131
|
+
args: [{
|
|
132
|
+
isSignal: true,
|
|
133
|
+
alias: "label",
|
|
134
|
+
required: true
|
|
135
|
+
}]
|
|
136
|
+
}] }
|
|
137
|
+
});
|
|
138
|
+
export { AvFloatLabel, AvInput };
|
|
139
|
+
|
|
140
|
+
//# sourceMappingURL=avero-ui-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avero-ui-input.mjs","names":[],"sources":["../../../projects/avero-ui/src/lib/input/input.ts","../../../projects/avero-ui/src/lib/input/float-label.ts"],"sourcesContent":["import { AvFluidControl } from 'avero-ui/fluid';\r\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\nexport type AvInputSize = 'sm' | 'md' | 'lg';\n\n/** Styles a native input without replacing its value, events or disabled state. */\n@Component({\r\n hostDirectives: [{ directive: AvFluidControl, inputs: ['fluid'] }],\n selector: 'input[avInput]',\n standalone: true,\n template: '',\n styleUrl: './input.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'av-input',\n '[attr.data-av-size]': 'avSize()',\n },\n})\nexport class AvInput {\n readonly avSize = input<AvInputSize>('md');\n}\r\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/** Wrap one text-like avInput or avTextarea with placeholder=\" \" for native value detection. */\n@Component({\n selector: 'av-float-label',\n standalone: true,\n template: `\n <label class=\"field\">\n <ng-content select=\"input[avInput], textarea[avTextarea], av-icon-field\" />\n <span class=\"label\">{{ label() }}</span>\n </label>\n `,\n styleUrl: './float-label.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AvFloatLabel {\n readonly label = input.required<string>();\n}\n"],"mappings":";;;AAkBA,IAAa,UAAb,MAAa,QAAO;CACT,SAAS,MAAmB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAD/B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAO,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAP,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAO,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,QAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,MAAA;GAAA,YAAA,EAAA,qBAAA,WAAA;GAAA,gBAAA;EAAA;EAAA,gBAAA,CAAA;GAAA,WAXY;GAAc,QAAA,CAAA,SAAA,OAAA;EAAA,CAAA;EAAA,UAAA;EAAA,UAGlC;EAAE,UAAA;EAAA,QAAA,CAAA,whDAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAQD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAO,YAAA,CAAA;EAZnB,MAAA;EACiB,MAAA,CAAA;GAAA,gBAAA,CAAC;IAAE,WAAW;IAAgB,QAAQ,CAAC,OAAO;GAAC,CAAE;GAAC,UACxD;GAAgB,YACd;GAAI,UACN;GAAE,iBAEK,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,uBAAuB;GACxB;GAAA,QAAA,CAAA,whDAAA;EAAA,CAAA;;;;;;;;;;;ACDH,IAAa,eAAb,MAAa,aAAY;CACd,QAAQ,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAY,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAZ,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAY,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,OAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,UAAA;EAAA,UATb;;;;;;EAKT,UAAA;EAAA,QAAA,CAAA,67DAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAIU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EAZxB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAgB,YACd;GAAI,UACN;;;;;;GAKT,iBAEgB,wBAAwB;GAAM,QAAA,CAAA,67DAAA;EAAA,CAAA"}
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, forwardRef, input, output, signal } from "@angular/core";
|
|
3
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
4
|
+
var AvKnob = class AvKnob {
|
|
5
|
+
min = input(0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
|
|
6
|
+
max = input(100, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
7
|
+
step = input(1, ...ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []);
|
|
8
|
+
size = input(100, ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
9
|
+
strokeWidth = input(14, ...ngDevMode ? [{ debugName: "strokeWidth" }] : /* istanbul ignore next */ []);
|
|
10
|
+
valueTemplate = input("{value}", ...ngDevMode ? [{ debugName: "valueTemplate" }] : /* istanbul ignore next */ []);
|
|
11
|
+
showValue = input(true, {
|
|
12
|
+
...ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {},
|
|
13
|
+
transform: booleanAttribute
|
|
14
|
+
});
|
|
15
|
+
valueColor = input(null, ...ngDevMode ? [{ debugName: "valueColor" }] : /* istanbul ignore next */ []);
|
|
16
|
+
rangeColor = input(null, ...ngDevMode ? [{ debugName: "rangeColor" }] : /* istanbul ignore next */ []);
|
|
17
|
+
textColor = input(null, ...ngDevMode ? [{ debugName: "textColor" }] : /* istanbul ignore next */ []);
|
|
18
|
+
ariaLabel = input("Value", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
19
|
+
ariaLabelledBy = input(null, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
20
|
+
describedBy = input(null, ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
|
|
21
|
+
disabled = input(false, {
|
|
22
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
23
|
+
transform: booleanAttribute
|
|
24
|
+
});
|
|
25
|
+
readonly = input(false, {
|
|
26
|
+
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
27
|
+
transform: booleanAttribute
|
|
28
|
+
});
|
|
29
|
+
invalid = input(false, {
|
|
30
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
31
|
+
transform: booleanAttribute
|
|
32
|
+
});
|
|
33
|
+
onChange = output();
|
|
34
|
+
current = signal(null, ...ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []);
|
|
35
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
36
|
+
pointerId = null;
|
|
37
|
+
lower = computed(() => Number.isFinite(this.min()) ? this.min() : 0, ...ngDevMode ? [{ debugName: "lower" }] : /* istanbul ignore next */ []);
|
|
38
|
+
upper = computed(() => Math.max(this.lower(), Number.isFinite(this.max()) ? this.max() : 100), ...ngDevMode ? [{ debugName: "upper" }] : /* istanbul ignore next */ []);
|
|
39
|
+
increment = computed(() => Number.isFinite(this.step()) && this.step() > 0 ? this.step() : 1, ...ngDevMode ? [{ debugName: "increment" }] : /* istanbul ignore next */ []);
|
|
40
|
+
diameter = computed(() => Number.isFinite(this.size()) ? Math.max(24, this.size()) : 100, ...ngDevMode ? [{ debugName: "diameter" }] : /* istanbul ignore next */ []);
|
|
41
|
+
stroke = computed(() => Number.isFinite(this.strokeWidth()) ? Math.min(40, Math.max(1, this.strokeWidth())) : 14, ...ngDevMode ? [{ debugName: "stroke" }] : /* istanbul ignore next */ []);
|
|
42
|
+
isDisabled = computed(() => this.disabled() || this.formDisabled() || this.lower() === this.upper(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
|
|
43
|
+
value = computed(() => this.normalize(this.current() ?? this.lower()), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
44
|
+
text = computed(() => this.valueTemplate().replaceAll("{value}", String(this.value())), ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
45
|
+
progress = computed(() => this.upper() === this.lower() ? 0 : (this.value() - this.lower()) / (this.upper() - this.lower()) * 100, ...ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []);
|
|
46
|
+
arc = computed(() => {
|
|
47
|
+
const r = 50 - this.stroke() / 2 - 2;
|
|
48
|
+
const offset = r / Math.sqrt(2);
|
|
49
|
+
return `M ${50 - offset} ${50 + offset} A ${r} ${r} 0 1 1 ${50 + offset} ${50 + offset}`;
|
|
50
|
+
}, ...ngDevMode ? [{ debugName: "arc" }] : /* istanbul ignore next */ []);
|
|
51
|
+
propagateChange = () => {};
|
|
52
|
+
onTouched = () => {};
|
|
53
|
+
writeValue(value) {
|
|
54
|
+
this.current.set(typeof value === "number" && Number.isFinite(value) ? value : null);
|
|
55
|
+
}
|
|
56
|
+
registerOnChange(fn) {
|
|
57
|
+
this.propagateChange = fn;
|
|
58
|
+
}
|
|
59
|
+
registerOnTouched(fn) {
|
|
60
|
+
this.onTouched = fn;
|
|
61
|
+
}
|
|
62
|
+
setDisabledState(value) {
|
|
63
|
+
this.formDisabled.set(value);
|
|
64
|
+
}
|
|
65
|
+
normalize(value) {
|
|
66
|
+
const bounded = Math.min(this.upper(), Math.max(this.lower(), value));
|
|
67
|
+
if (bounded === this.upper()) return this.upper();
|
|
68
|
+
const stepped = this.lower() + Math.round((bounded - this.lower()) / this.increment()) * this.increment();
|
|
69
|
+
return Math.min(this.upper(), Math.max(this.lower(), Number(stepped.toPrecision(15))));
|
|
70
|
+
}
|
|
71
|
+
change(value, event) {
|
|
72
|
+
if (this.isDisabled() || this.readonly()) return;
|
|
73
|
+
const next = this.normalize(value);
|
|
74
|
+
if (next === this.value()) return;
|
|
75
|
+
this.current.set(next);
|
|
76
|
+
this.propagateChange(next);
|
|
77
|
+
this.onChange.emit({
|
|
78
|
+
value: next,
|
|
79
|
+
originalEvent: event
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
keydown(event) {
|
|
83
|
+
if (this.isDisabled() || this.readonly()) return;
|
|
84
|
+
let next;
|
|
85
|
+
switch (event.key) {
|
|
86
|
+
case "ArrowRight":
|
|
87
|
+
case "ArrowUp":
|
|
88
|
+
next = this.value() + this.increment();
|
|
89
|
+
break;
|
|
90
|
+
case "ArrowLeft":
|
|
91
|
+
case "ArrowDown":
|
|
92
|
+
next = this.value() - this.increment();
|
|
93
|
+
break;
|
|
94
|
+
case "PageUp":
|
|
95
|
+
next = this.value() + this.increment() * 10;
|
|
96
|
+
break;
|
|
97
|
+
case "PageDown":
|
|
98
|
+
next = this.value() - this.increment() * 10;
|
|
99
|
+
break;
|
|
100
|
+
case "Home":
|
|
101
|
+
next = this.lower();
|
|
102
|
+
break;
|
|
103
|
+
case "End":
|
|
104
|
+
next = this.upper();
|
|
105
|
+
break;
|
|
106
|
+
default: return;
|
|
107
|
+
}
|
|
108
|
+
event.preventDefault();
|
|
109
|
+
this.change(next, event);
|
|
110
|
+
}
|
|
111
|
+
pointerDown(event) {
|
|
112
|
+
if (this.isDisabled() || this.readonly() || event.button !== 0 || this.pointerId !== null) return;
|
|
113
|
+
const element = event.currentTarget;
|
|
114
|
+
event.preventDefault();
|
|
115
|
+
element.focus();
|
|
116
|
+
this.pointerId = event.pointerId;
|
|
117
|
+
element.setPointerCapture(event.pointerId);
|
|
118
|
+
this.updatePointer(event);
|
|
119
|
+
}
|
|
120
|
+
pointerMove(event) {
|
|
121
|
+
if (this.pointerId === event.pointerId) this.updatePointer(event);
|
|
122
|
+
}
|
|
123
|
+
pointerEnd(event) {
|
|
124
|
+
if (this.pointerId !== event.pointerId) return;
|
|
125
|
+
this.pointerId = null;
|
|
126
|
+
const element = event.currentTarget;
|
|
127
|
+
if (element.hasPointerCapture(event.pointerId)) element.releasePointerCapture(event.pointerId);
|
|
128
|
+
this.onTouched();
|
|
129
|
+
}
|
|
130
|
+
updatePointer(event) {
|
|
131
|
+
const rect = event.currentTarget.getBoundingClientRect();
|
|
132
|
+
const x = event.clientX - rect.left - rect.width / 2;
|
|
133
|
+
const y = event.clientY - rect.top - rect.height / 2;
|
|
134
|
+
if (Math.hypot(x, y) < Math.min(rect.width, rect.height) * .1) return;
|
|
135
|
+
let angle = (Math.atan2(y, x) * 180 / Math.PI - 135 + 360) % 360;
|
|
136
|
+
if (angle > 270) angle = angle > 315 ? 0 : 270;
|
|
137
|
+
this.change(this.lower() + angle / 270 * (this.upper() - this.lower()), event);
|
|
138
|
+
}
|
|
139
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
140
|
+
minVersion: "12.0.0",
|
|
141
|
+
version: "22.3.2",
|
|
142
|
+
ngImport: i0,
|
|
143
|
+
type: AvKnob,
|
|
144
|
+
deps: [],
|
|
145
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
146
|
+
});
|
|
147
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
148
|
+
minVersion: "17.0.0",
|
|
149
|
+
version: "22.3.2",
|
|
150
|
+
type: AvKnob,
|
|
151
|
+
isStandalone: true,
|
|
152
|
+
selector: "av-knob",
|
|
153
|
+
inputs: {
|
|
154
|
+
min: {
|
|
155
|
+
classPropertyName: "min",
|
|
156
|
+
publicName: "min",
|
|
157
|
+
isSignal: true,
|
|
158
|
+
isRequired: false,
|
|
159
|
+
transformFunction: null
|
|
160
|
+
},
|
|
161
|
+
max: {
|
|
162
|
+
classPropertyName: "max",
|
|
163
|
+
publicName: "max",
|
|
164
|
+
isSignal: true,
|
|
165
|
+
isRequired: false,
|
|
166
|
+
transformFunction: null
|
|
167
|
+
},
|
|
168
|
+
step: {
|
|
169
|
+
classPropertyName: "step",
|
|
170
|
+
publicName: "step",
|
|
171
|
+
isSignal: true,
|
|
172
|
+
isRequired: false,
|
|
173
|
+
transformFunction: null
|
|
174
|
+
},
|
|
175
|
+
size: {
|
|
176
|
+
classPropertyName: "size",
|
|
177
|
+
publicName: "size",
|
|
178
|
+
isSignal: true,
|
|
179
|
+
isRequired: false,
|
|
180
|
+
transformFunction: null
|
|
181
|
+
},
|
|
182
|
+
strokeWidth: {
|
|
183
|
+
classPropertyName: "strokeWidth",
|
|
184
|
+
publicName: "strokeWidth",
|
|
185
|
+
isSignal: true,
|
|
186
|
+
isRequired: false,
|
|
187
|
+
transformFunction: null
|
|
188
|
+
},
|
|
189
|
+
valueTemplate: {
|
|
190
|
+
classPropertyName: "valueTemplate",
|
|
191
|
+
publicName: "valueTemplate",
|
|
192
|
+
isSignal: true,
|
|
193
|
+
isRequired: false,
|
|
194
|
+
transformFunction: null
|
|
195
|
+
},
|
|
196
|
+
showValue: {
|
|
197
|
+
classPropertyName: "showValue",
|
|
198
|
+
publicName: "showValue",
|
|
199
|
+
isSignal: true,
|
|
200
|
+
isRequired: false,
|
|
201
|
+
transformFunction: null
|
|
202
|
+
},
|
|
203
|
+
valueColor: {
|
|
204
|
+
classPropertyName: "valueColor",
|
|
205
|
+
publicName: "valueColor",
|
|
206
|
+
isSignal: true,
|
|
207
|
+
isRequired: false,
|
|
208
|
+
transformFunction: null
|
|
209
|
+
},
|
|
210
|
+
rangeColor: {
|
|
211
|
+
classPropertyName: "rangeColor",
|
|
212
|
+
publicName: "rangeColor",
|
|
213
|
+
isSignal: true,
|
|
214
|
+
isRequired: false,
|
|
215
|
+
transformFunction: null
|
|
216
|
+
},
|
|
217
|
+
textColor: {
|
|
218
|
+
classPropertyName: "textColor",
|
|
219
|
+
publicName: "textColor",
|
|
220
|
+
isSignal: true,
|
|
221
|
+
isRequired: false,
|
|
222
|
+
transformFunction: null
|
|
223
|
+
},
|
|
224
|
+
ariaLabel: {
|
|
225
|
+
classPropertyName: "ariaLabel",
|
|
226
|
+
publicName: "ariaLabel",
|
|
227
|
+
isSignal: true,
|
|
228
|
+
isRequired: false,
|
|
229
|
+
transformFunction: null
|
|
230
|
+
},
|
|
231
|
+
ariaLabelledBy: {
|
|
232
|
+
classPropertyName: "ariaLabelledBy",
|
|
233
|
+
publicName: "ariaLabelledBy",
|
|
234
|
+
isSignal: true,
|
|
235
|
+
isRequired: false,
|
|
236
|
+
transformFunction: null
|
|
237
|
+
},
|
|
238
|
+
describedBy: {
|
|
239
|
+
classPropertyName: "describedBy",
|
|
240
|
+
publicName: "describedBy",
|
|
241
|
+
isSignal: true,
|
|
242
|
+
isRequired: false,
|
|
243
|
+
transformFunction: null
|
|
244
|
+
},
|
|
245
|
+
disabled: {
|
|
246
|
+
classPropertyName: "disabled",
|
|
247
|
+
publicName: "disabled",
|
|
248
|
+
isSignal: true,
|
|
249
|
+
isRequired: false,
|
|
250
|
+
transformFunction: null
|
|
251
|
+
},
|
|
252
|
+
readonly: {
|
|
253
|
+
classPropertyName: "readonly",
|
|
254
|
+
publicName: "readonly",
|
|
255
|
+
isSignal: true,
|
|
256
|
+
isRequired: false,
|
|
257
|
+
transformFunction: null
|
|
258
|
+
},
|
|
259
|
+
invalid: {
|
|
260
|
+
classPropertyName: "invalid",
|
|
261
|
+
publicName: "invalid",
|
|
262
|
+
isSignal: true,
|
|
263
|
+
isRequired: false,
|
|
264
|
+
transformFunction: null
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
outputs: { onChange: "onChange" },
|
|
268
|
+
providers: [{
|
|
269
|
+
provide: NG_VALUE_ACCESSOR,
|
|
270
|
+
useExisting: forwardRef(() => AvKnob),
|
|
271
|
+
multi: true
|
|
272
|
+
}],
|
|
273
|
+
ngImport: i0,
|
|
274
|
+
template: "<div\n class=\"knob\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.width.px]=\"diameter()\"\n [style.height.px]=\"diameter()\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-valuemin]=\"lower()\"\n [attr.aria-valuemax]=\"upper()\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuetext]=\"text()\"\n [attr.aria-disabled]=\"isDisabled()\"\n [attr.aria-readonly]=\"readonly()\"\n [attr.aria-invalid]=\"invalid()\"\n (keydown)=\"keydown($event)\"\n (blur)=\"onTouched()\"\n (pointerdown)=\"pointerDown($event)\"\n (pointermove)=\"pointerMove($event)\"\n (pointerup)=\"pointerEnd($event)\"\n (pointercancel)=\"pointerEnd($event)\"\n (lostpointercapture)=\"pointerEnd($event)\"\n>\n <svg viewBox=\"0 0 100 100\" aria-hidden=\"true\" focusable=\"false\">\n <path\n class=\"range\"\n [attr.d]=\"arc()\"\n [attr.stroke-width]=\"stroke()\"\n [style.stroke]=\"rangeColor()\"\n />\n <path\n class=\"value\"\n [attr.d]=\"arc()\"\n [attr.stroke-width]=\"stroke()\"\n [style.stroke]=\"valueColor()\"\n pathLength=\"100\"\n [attr.stroke-dasharray]=\"progress() + ' 100'\"\n [attr.opacity]=\"progress() === 0 ? 0 : 1\"\n />\n @if (showValue()) {\n <text\n x=\"50\"\n y=\"50\"\n dominant-baseline=\"central\"\n text-anchor=\"middle\"\n [style.fill]=\"textColor()\"\n >\n {{ text() }}\n </text>\n }\n </svg>\n</div>\n",
|
|
275
|
+
styles: [":host{display:inline-block;vertical-align:middle}.knob{border-radius:50%;touch-action:none;-webkit-user-select:none;user-select:none;cursor:pointer}svg{display:block;width:100%;height:100%;overflow:visible}path{fill:none;stroke-linecap:round}.range{stroke:var(--av-knob-range, var(--av-border, #e2e8f0))}.value{stroke:var(--av-knob-value, var(--av-primary, #0f766e))}text{fill:var(--av-knob-text, var(--av-text-strong, #172b29));font:600 20px system-ui,sans-serif}.knob:focus-visible{outline:2px solid var(--av-knob-focus, var(--av-primary, #0f766e));outline-offset:4px}.knob[aria-invalid=true]{outline:1px solid var(--av-knob-invalid, var(--av-danger, #b91c1c));outline-offset:3px}.knob[aria-invalid=true]:focus-visible{outline-width:2px}.knob[aria-disabled=true]{opacity:.45;cursor:not-allowed}.knob[aria-readonly=true]{cursor:default}@media(forced-colors:active){.range{stroke:GrayText}.value{stroke:Highlight}text{fill:CanvasText}}\n"],
|
|
276
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
277
|
+
});
|
|
278
|
+
};
|
|
279
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
280
|
+
minVersion: "12.0.0",
|
|
281
|
+
version: "22.3.2",
|
|
282
|
+
ngImport: i0,
|
|
283
|
+
type: AvKnob,
|
|
284
|
+
decorators: [{
|
|
285
|
+
type: Component,
|
|
286
|
+
args: [{
|
|
287
|
+
selector: "av-knob",
|
|
288
|
+
standalone: true,
|
|
289
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
290
|
+
providers: [{
|
|
291
|
+
provide: NG_VALUE_ACCESSOR,
|
|
292
|
+
useExisting: forwardRef(() => AvKnob),
|
|
293
|
+
multi: true
|
|
294
|
+
}],
|
|
295
|
+
template: "<div\n class=\"knob\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.width.px]=\"diameter()\"\n [style.height.px]=\"diameter()\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-valuemin]=\"lower()\"\n [attr.aria-valuemax]=\"upper()\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuetext]=\"text()\"\n [attr.aria-disabled]=\"isDisabled()\"\n [attr.aria-readonly]=\"readonly()\"\n [attr.aria-invalid]=\"invalid()\"\n (keydown)=\"keydown($event)\"\n (blur)=\"onTouched()\"\n (pointerdown)=\"pointerDown($event)\"\n (pointermove)=\"pointerMove($event)\"\n (pointerup)=\"pointerEnd($event)\"\n (pointercancel)=\"pointerEnd($event)\"\n (lostpointercapture)=\"pointerEnd($event)\"\n>\n <svg viewBox=\"0 0 100 100\" aria-hidden=\"true\" focusable=\"false\">\n <path\n class=\"range\"\n [attr.d]=\"arc()\"\n [attr.stroke-width]=\"stroke()\"\n [style.stroke]=\"rangeColor()\"\n />\n <path\n class=\"value\"\n [attr.d]=\"arc()\"\n [attr.stroke-width]=\"stroke()\"\n [style.stroke]=\"valueColor()\"\n pathLength=\"100\"\n [attr.stroke-dasharray]=\"progress() + ' 100'\"\n [attr.opacity]=\"progress() === 0 ? 0 : 1\"\n />\n @if (showValue()) {\n <text\n x=\"50\"\n y=\"50\"\n dominant-baseline=\"central\"\n text-anchor=\"middle\"\n [style.fill]=\"textColor()\"\n >\n {{ text() }}\n </text>\n }\n </svg>\n</div>\n",
|
|
296
|
+
styles: [":host{display:inline-block;vertical-align:middle}.knob{border-radius:50%;touch-action:none;-webkit-user-select:none;user-select:none;cursor:pointer}svg{display:block;width:100%;height:100%;overflow:visible}path{fill:none;stroke-linecap:round}.range{stroke:var(--av-knob-range, var(--av-border, #e2e8f0))}.value{stroke:var(--av-knob-value, var(--av-primary, #0f766e))}text{fill:var(--av-knob-text, var(--av-text-strong, #172b29));font:600 20px system-ui,sans-serif}.knob:focus-visible{outline:2px solid var(--av-knob-focus, var(--av-primary, #0f766e));outline-offset:4px}.knob[aria-invalid=true]{outline:1px solid var(--av-knob-invalid, var(--av-danger, #b91c1c));outline-offset:3px}.knob[aria-invalid=true]:focus-visible{outline-width:2px}.knob[aria-disabled=true]{opacity:.45;cursor:not-allowed}.knob[aria-readonly=true]{cursor:default}@media(forced-colors:active){.range{stroke:GrayText}.value{stroke:Highlight}text{fill:CanvasText}}\n"]
|
|
297
|
+
}]
|
|
298
|
+
}],
|
|
299
|
+
propDecorators: {
|
|
300
|
+
min: [{
|
|
301
|
+
type: i0.Input,
|
|
302
|
+
args: [{
|
|
303
|
+
isSignal: true,
|
|
304
|
+
alias: "min",
|
|
305
|
+
required: false
|
|
306
|
+
}]
|
|
307
|
+
}],
|
|
308
|
+
max: [{
|
|
309
|
+
type: i0.Input,
|
|
310
|
+
args: [{
|
|
311
|
+
isSignal: true,
|
|
312
|
+
alias: "max",
|
|
313
|
+
required: false
|
|
314
|
+
}]
|
|
315
|
+
}],
|
|
316
|
+
step: [{
|
|
317
|
+
type: i0.Input,
|
|
318
|
+
args: [{
|
|
319
|
+
isSignal: true,
|
|
320
|
+
alias: "step",
|
|
321
|
+
required: false
|
|
322
|
+
}]
|
|
323
|
+
}],
|
|
324
|
+
size: [{
|
|
325
|
+
type: i0.Input,
|
|
326
|
+
args: [{
|
|
327
|
+
isSignal: true,
|
|
328
|
+
alias: "size",
|
|
329
|
+
required: false
|
|
330
|
+
}]
|
|
331
|
+
}],
|
|
332
|
+
strokeWidth: [{
|
|
333
|
+
type: i0.Input,
|
|
334
|
+
args: [{
|
|
335
|
+
isSignal: true,
|
|
336
|
+
alias: "strokeWidth",
|
|
337
|
+
required: false
|
|
338
|
+
}]
|
|
339
|
+
}],
|
|
340
|
+
valueTemplate: [{
|
|
341
|
+
type: i0.Input,
|
|
342
|
+
args: [{
|
|
343
|
+
isSignal: true,
|
|
344
|
+
alias: "valueTemplate",
|
|
345
|
+
required: false
|
|
346
|
+
}]
|
|
347
|
+
}],
|
|
348
|
+
showValue: [{
|
|
349
|
+
type: i0.Input,
|
|
350
|
+
args: [{
|
|
351
|
+
isSignal: true,
|
|
352
|
+
alias: "showValue",
|
|
353
|
+
required: false
|
|
354
|
+
}]
|
|
355
|
+
}],
|
|
356
|
+
valueColor: [{
|
|
357
|
+
type: i0.Input,
|
|
358
|
+
args: [{
|
|
359
|
+
isSignal: true,
|
|
360
|
+
alias: "valueColor",
|
|
361
|
+
required: false
|
|
362
|
+
}]
|
|
363
|
+
}],
|
|
364
|
+
rangeColor: [{
|
|
365
|
+
type: i0.Input,
|
|
366
|
+
args: [{
|
|
367
|
+
isSignal: true,
|
|
368
|
+
alias: "rangeColor",
|
|
369
|
+
required: false
|
|
370
|
+
}]
|
|
371
|
+
}],
|
|
372
|
+
textColor: [{
|
|
373
|
+
type: i0.Input,
|
|
374
|
+
args: [{
|
|
375
|
+
isSignal: true,
|
|
376
|
+
alias: "textColor",
|
|
377
|
+
required: false
|
|
378
|
+
}]
|
|
379
|
+
}],
|
|
380
|
+
ariaLabel: [{
|
|
381
|
+
type: i0.Input,
|
|
382
|
+
args: [{
|
|
383
|
+
isSignal: true,
|
|
384
|
+
alias: "ariaLabel",
|
|
385
|
+
required: false
|
|
386
|
+
}]
|
|
387
|
+
}],
|
|
388
|
+
ariaLabelledBy: [{
|
|
389
|
+
type: i0.Input,
|
|
390
|
+
args: [{
|
|
391
|
+
isSignal: true,
|
|
392
|
+
alias: "ariaLabelledBy",
|
|
393
|
+
required: false
|
|
394
|
+
}]
|
|
395
|
+
}],
|
|
396
|
+
describedBy: [{
|
|
397
|
+
type: i0.Input,
|
|
398
|
+
args: [{
|
|
399
|
+
isSignal: true,
|
|
400
|
+
alias: "describedBy",
|
|
401
|
+
required: false
|
|
402
|
+
}]
|
|
403
|
+
}],
|
|
404
|
+
disabled: [{
|
|
405
|
+
type: i0.Input,
|
|
406
|
+
args: [{
|
|
407
|
+
isSignal: true,
|
|
408
|
+
alias: "disabled",
|
|
409
|
+
required: false
|
|
410
|
+
}]
|
|
411
|
+
}],
|
|
412
|
+
readonly: [{
|
|
413
|
+
type: i0.Input,
|
|
414
|
+
args: [{
|
|
415
|
+
isSignal: true,
|
|
416
|
+
alias: "readonly",
|
|
417
|
+
required: false
|
|
418
|
+
}]
|
|
419
|
+
}],
|
|
420
|
+
invalid: [{
|
|
421
|
+
type: i0.Input,
|
|
422
|
+
args: [{
|
|
423
|
+
isSignal: true,
|
|
424
|
+
alias: "invalid",
|
|
425
|
+
required: false
|
|
426
|
+
}]
|
|
427
|
+
}],
|
|
428
|
+
onChange: [{
|
|
429
|
+
type: i0.Output,
|
|
430
|
+
args: ["onChange"]
|
|
431
|
+
}]
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
export { AvKnob };
|
|
435
|
+
|
|
436
|
+
//# sourceMappingURL=avero-ui-knob.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avero-ui-knob.mjs","names":[],"sources":["../../../projects/avero-ui/src/lib/knob/knob.ts","../../../projects/avero-ui/src/lib/knob/knob.html"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nexport interface AvKnobChangeEvent {\n value: number;\n originalEvent: Event;\n}\n\n@Component({\n selector: 'av-knob',\n standalone: true,\n templateUrl: './knob.html',\n styleUrl: './knob.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => AvKnob), multi: true }],\n})\nexport class AvKnob implements ControlValueAccessor {\n readonly min = input(0);\n readonly max = input(100);\n readonly step = input(1);\n readonly size = input(100);\n readonly strokeWidth = input(14);\n readonly valueTemplate = input('{value}');\n readonly showValue = input(true, { transform: booleanAttribute });\n readonly valueColor = input<string | null>(null);\n readonly rangeColor = input<string | null>(null);\n readonly textColor = input<string | null>(null);\n readonly ariaLabel = input('Value');\n readonly ariaLabelledBy = input<string | null>(null);\n readonly describedBy = input<string | null>(null);\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly onChange = output<AvKnobChangeEvent>();\n private readonly current = signal<number | null>(null);\n private readonly formDisabled = signal(false);\n private pointerId: number | null = null;\n protected readonly lower = computed(() => (Number.isFinite(this.min()) ? this.min() : 0));\n protected readonly upper = computed(() =>\n Math.max(this.lower(), Number.isFinite(this.max()) ? this.max() : 100),\n );\n protected readonly increment = computed(() =>\n Number.isFinite(this.step()) && this.step() > 0 ? this.step() : 1,\n );\n protected readonly diameter = computed(() =>\n Number.isFinite(this.size()) ? Math.max(24, this.size()) : 100,\n );\n protected readonly stroke = computed(() =>\n Number.isFinite(this.strokeWidth()) ? Math.min(40, Math.max(1, this.strokeWidth())) : 14,\n );\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled() || this.lower() === this.upper(),\n );\n protected readonly value = computed(() => this.normalize(this.current() ?? this.lower()));\n protected readonly text = computed(() =>\n this.valueTemplate().replaceAll('{value}', String(this.value())),\n );\n protected readonly progress = computed(() =>\n this.upper() === this.lower()\n ? 0\n : ((this.value() - this.lower()) / (this.upper() - this.lower())) * 100,\n );\n protected readonly arc = computed(() => {\n const r = 50 - this.stroke() / 2 - 2;\n const offset = r / Math.sqrt(2);\n return `M ${50 - offset} ${50 + offset} A ${r} ${r} 0 1 1 ${50 + offset} ${50 + offset}`;\n });\n private propagateChange: (value: number) => void = () => {};\n protected onTouched: () => void = () => {};\n writeValue(value: number | null): void {\n this.current.set(typeof value === 'number' && Number.isFinite(value) ? value : null);\n }\n registerOnChange(fn: (value: number) => void): void {\n this.propagateChange = fn;\n }\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n setDisabledState(value: boolean): void {\n this.formDisabled.set(value);\n }\n\n private normalize(value: number): number {\n const bounded = Math.min(this.upper(), Math.max(this.lower(), value));\n if (bounded === this.upper()) return this.upper();\n const stepped =\n this.lower() + Math.round((bounded - this.lower()) / this.increment()) * this.increment();\n return Math.min(this.upper(), Math.max(this.lower(), Number(stepped.toPrecision(15))));\n }\n private change(value: number, event: Event): void {\n if (this.isDisabled() || this.readonly()) return;\n const next = this.normalize(value);\n if (next === this.value()) return;\n this.current.set(next);\n this.propagateChange(next);\n this.onChange.emit({ value: next, originalEvent: event });\n }\n protected keydown(event: KeyboardEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n let next: number;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowUp':\n next = this.value() + this.increment();\n break;\n case 'ArrowLeft':\n case 'ArrowDown':\n next = this.value() - this.increment();\n break;\n case 'PageUp':\n next = this.value() + this.increment() * 10;\n break;\n case 'PageDown':\n next = this.value() - this.increment() * 10;\n break;\n case 'Home':\n next = this.lower();\n break;\n case 'End':\n next = this.upper();\n break;\n default:\n return;\n }\n event.preventDefault();\n this.change(next, event);\n }\n protected pointerDown(event: PointerEvent): void {\n if (this.isDisabled() || this.readonly() || event.button !== 0 || this.pointerId !== null)\n return;\n const element = event.currentTarget as HTMLElement;\n event.preventDefault();\n element.focus();\n this.pointerId = event.pointerId;\n element.setPointerCapture(event.pointerId);\n this.updatePointer(event);\n }\n protected pointerMove(event: PointerEvent): void {\n if (this.pointerId === event.pointerId) this.updatePointer(event);\n }\n protected pointerEnd(event: PointerEvent): void {\n if (this.pointerId !== event.pointerId) return;\n this.pointerId = null;\n const element = event.currentTarget as HTMLElement;\n if (element.hasPointerCapture(event.pointerId)) element.releasePointerCapture(event.pointerId);\n this.onTouched();\n }\n private updatePointer(event: PointerEvent): void {\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect();\n const x = event.clientX - rect.left - rect.width / 2;\n const y = event.clientY - rect.top - rect.height / 2;\n if (Math.hypot(x, y) < Math.min(rect.width, rect.height) * 0.1) return;\n let angle = ((Math.atan2(y, x) * 180) / Math.PI - 135 + 360) % 360;\n if (angle > 270) angle = angle > 315 ? 0 : 270;\n this.change(this.lower() + (angle / 270) * (this.upper() - this.lower()), event);\n }\n}\n","<div\n class=\"knob\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.width.px]=\"diameter()\"\n [style.height.px]=\"diameter()\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-valuemin]=\"lower()\"\n [attr.aria-valuemax]=\"upper()\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuetext]=\"text()\"\n [attr.aria-disabled]=\"isDisabled()\"\n [attr.aria-readonly]=\"readonly()\"\n [attr.aria-invalid]=\"invalid()\"\n (keydown)=\"keydown($event)\"\n (blur)=\"onTouched()\"\n (pointerdown)=\"pointerDown($event)\"\n (pointermove)=\"pointerMove($event)\"\n (pointerup)=\"pointerEnd($event)\"\n (pointercancel)=\"pointerEnd($event)\"\n (lostpointercapture)=\"pointerEnd($event)\"\n>\n <svg viewBox=\"0 0 100 100\" aria-hidden=\"true\" focusable=\"false\">\n <path\n class=\"range\"\n [attr.d]=\"arc()\"\n [attr.stroke-width]=\"stroke()\"\n [style.stroke]=\"rangeColor()\"\n />\n <path\n class=\"value\"\n [attr.d]=\"arc()\"\n [attr.stroke-width]=\"stroke()\"\n [style.stroke]=\"valueColor()\"\n pathLength=\"100\"\n [attr.stroke-dasharray]=\"progress() + ' 100'\"\n [attr.opacity]=\"progress() === 0 ? 0 : 1\"\n />\n @if (showValue()) {\n <text\n x=\"50\"\n y=\"50\"\n dominant-baseline=\"central\"\n text-anch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