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,278 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input } from "@angular/core";
|
|
3
|
+
var AvBadge = class AvBadge {
|
|
4
|
+
value = input(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
5
|
+
severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
6
|
+
badgeSize = input("normal", ...ngDevMode ? [{ debugName: "badgeSize" }] : /* istanbul ignore next */ []);
|
|
7
|
+
badgeDisabled = input(false, {
|
|
8
|
+
...ngDevMode ? { debugName: "badgeDisabled" } : /* istanbul ignore next */ {},
|
|
9
|
+
transform: booleanAttribute
|
|
10
|
+
});
|
|
11
|
+
dot = computed(() => this.value() == null || this.value() === "", ...ngDevMode ? [{ debugName: "dot" }] : /* istanbul ignore next */ []);
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
13
|
+
minVersion: "12.0.0",
|
|
14
|
+
version: "22.3.2",
|
|
15
|
+
ngImport: i0,
|
|
16
|
+
type: AvBadge,
|
|
17
|
+
deps: [],
|
|
18
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
19
|
+
});
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
21
|
+
minVersion: "17.1.0",
|
|
22
|
+
version: "22.3.2",
|
|
23
|
+
type: AvBadge,
|
|
24
|
+
isStandalone: true,
|
|
25
|
+
selector: "av-badge",
|
|
26
|
+
inputs: {
|
|
27
|
+
value: {
|
|
28
|
+
classPropertyName: "value",
|
|
29
|
+
publicName: "value",
|
|
30
|
+
isSignal: true,
|
|
31
|
+
isRequired: false,
|
|
32
|
+
transformFunction: null
|
|
33
|
+
},
|
|
34
|
+
severity: {
|
|
35
|
+
classPropertyName: "severity",
|
|
36
|
+
publicName: "severity",
|
|
37
|
+
isSignal: true,
|
|
38
|
+
isRequired: false,
|
|
39
|
+
transformFunction: null
|
|
40
|
+
},
|
|
41
|
+
badgeSize: {
|
|
42
|
+
classPropertyName: "badgeSize",
|
|
43
|
+
publicName: "badgeSize",
|
|
44
|
+
isSignal: true,
|
|
45
|
+
isRequired: false,
|
|
46
|
+
transformFunction: null
|
|
47
|
+
},
|
|
48
|
+
badgeDisabled: {
|
|
49
|
+
classPropertyName: "badgeDisabled",
|
|
50
|
+
publicName: "badgeDisabled",
|
|
51
|
+
isSignal: true,
|
|
52
|
+
isRequired: false,
|
|
53
|
+
transformFunction: null
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
host: { properties: {
|
|
57
|
+
"attr.data-severity": "severity()",
|
|
58
|
+
"attr.data-size": "badgeSize()",
|
|
59
|
+
"class.dot": "dot()",
|
|
60
|
+
"class.badge-disabled": "badgeDisabled()"
|
|
61
|
+
} },
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
template: "{{ value() }}",
|
|
64
|
+
isInline: true,
|
|
65
|
+
styles: [":host{--_background: var(--av-primary-solid, #0f766e);--_color: var(--av-on-solid, white);--_size: 20px;--_font: 11px;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;box-sizing:border-box;min-width:var(--_size);height:var(--_size);padding:0 6px;border-radius:var(--av-badge-radius, 999px);background:var(--av-badge-background, var(--_background));color:var(--av-badge-color, var(--_color));font-family:inherit;font-size:var(--_font);font-weight:650;line-height:1;white-space:nowrap;vertical-align:middle}:host([data-severity=secondary]){--_background: var(--av-border, #e2e8f0);--_color: var(--av-text, #334155)}:host([data-severity=success]){--_background: var(--av-success-solid, #15803d)}:host([data-severity=info]){--_background: var(--av-info-solid, #0369a1)}:host([data-severity=warn]){--_background: var(--av-warning-solid, #fbbf24);--_color: var(--av-warning-contrast, #422006)}:host([data-severity=danger]){--_background: var(--av-danger-solid, #b91c1c)}:host([data-severity=contrast]){--_background: var(--av-inverse-surface, #172b29);--_color: var(--av-inverse-text, white)}:host([data-size=small]){--_size: 16px;--_font: 10px;padding-inline:4px}:host([data-size=large]){--_size: 28px;--_font: 14px;padding-inline:8px}:host([data-size=xlarge]){--_size: 36px;--_font: 18px;padding-inline:10px}:host(.dot){min-width:8px;width:8px;height:8px;padding:0}:host(.badge-disabled),:host([hidden]){display:none}\n"],
|
|
66
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
70
|
+
minVersion: "12.0.0",
|
|
71
|
+
version: "22.3.2",
|
|
72
|
+
ngImport: i0,
|
|
73
|
+
type: AvBadge,
|
|
74
|
+
decorators: [{
|
|
75
|
+
type: Component,
|
|
76
|
+
args: [{
|
|
77
|
+
selector: "av-badge",
|
|
78
|
+
standalone: true,
|
|
79
|
+
template: "{{ value() }}",
|
|
80
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
81
|
+
host: {
|
|
82
|
+
"[attr.data-severity]": "severity()",
|
|
83
|
+
"[attr.data-size]": "badgeSize()",
|
|
84
|
+
"[class.dot]": "dot()",
|
|
85
|
+
"[class.badge-disabled]": "badgeDisabled()"
|
|
86
|
+
},
|
|
87
|
+
styles: [":host{--_background: var(--av-primary-solid, #0f766e);--_color: var(--av-on-solid, white);--_size: 20px;--_font: 11px;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;box-sizing:border-box;min-width:var(--_size);height:var(--_size);padding:0 6px;border-radius:var(--av-badge-radius, 999px);background:var(--av-badge-background, var(--_background));color:var(--av-badge-color, var(--_color));font-family:inherit;font-size:var(--_font);font-weight:650;line-height:1;white-space:nowrap;vertical-align:middle}:host([data-severity=secondary]){--_background: var(--av-border, #e2e8f0);--_color: var(--av-text, #334155)}:host([data-severity=success]){--_background: var(--av-success-solid, #15803d)}:host([data-severity=info]){--_background: var(--av-info-solid, #0369a1)}:host([data-severity=warn]){--_background: var(--av-warning-solid, #fbbf24);--_color: var(--av-warning-contrast, #422006)}:host([data-severity=danger]){--_background: var(--av-danger-solid, #b91c1c)}:host([data-severity=contrast]){--_background: var(--av-inverse-surface, #172b29);--_color: var(--av-inverse-text, white)}:host([data-size=small]){--_size: 16px;--_font: 10px;padding-inline:4px}:host([data-size=large]){--_size: 28px;--_font: 14px;padding-inline:8px}:host([data-size=xlarge]){--_size: 36px;--_font: 18px;padding-inline:10px}:host(.dot){min-width:8px;width:8px;height:8px;padding:0}:host(.badge-disabled),:host([hidden]){display:none}\n"]
|
|
88
|
+
}]
|
|
89
|
+
}],
|
|
90
|
+
propDecorators: {
|
|
91
|
+
value: [{
|
|
92
|
+
type: i0.Input,
|
|
93
|
+
args: [{
|
|
94
|
+
isSignal: true,
|
|
95
|
+
alias: "value",
|
|
96
|
+
required: false
|
|
97
|
+
}]
|
|
98
|
+
}],
|
|
99
|
+
severity: [{
|
|
100
|
+
type: i0.Input,
|
|
101
|
+
args: [{
|
|
102
|
+
isSignal: true,
|
|
103
|
+
alias: "severity",
|
|
104
|
+
required: false
|
|
105
|
+
}]
|
|
106
|
+
}],
|
|
107
|
+
badgeSize: [{
|
|
108
|
+
type: i0.Input,
|
|
109
|
+
args: [{
|
|
110
|
+
isSignal: true,
|
|
111
|
+
alias: "badgeSize",
|
|
112
|
+
required: false
|
|
113
|
+
}]
|
|
114
|
+
}],
|
|
115
|
+
badgeDisabled: [{
|
|
116
|
+
type: i0.Input,
|
|
117
|
+
args: [{
|
|
118
|
+
isSignal: true,
|
|
119
|
+
alias: "badgeDisabled",
|
|
120
|
+
required: false
|
|
121
|
+
}]
|
|
122
|
+
}]
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
var AvOverlayBadge = class AvOverlayBadge {
|
|
126
|
+
value = input(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
127
|
+
severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
128
|
+
badgeSize = input("normal", ...ngDevMode ? [{ debugName: "badgeSize" }] : /* istanbul ignore next */ []);
|
|
129
|
+
badgeDisabled = input(false, {
|
|
130
|
+
...ngDevMode ? { debugName: "badgeDisabled" } : /* istanbul ignore next */ {},
|
|
131
|
+
transform: booleanAttribute
|
|
132
|
+
});
|
|
133
|
+
badgeLabel = input("", ...ngDevMode ? [{ debugName: "badgeLabel" }] : /* istanbul ignore next */ []);
|
|
134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
135
|
+
minVersion: "12.0.0",
|
|
136
|
+
version: "22.3.2",
|
|
137
|
+
ngImport: i0,
|
|
138
|
+
type: AvOverlayBadge,
|
|
139
|
+
deps: [],
|
|
140
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
141
|
+
});
|
|
142
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
143
|
+
minVersion: "17.1.0",
|
|
144
|
+
version: "22.3.2",
|
|
145
|
+
type: AvOverlayBadge,
|
|
146
|
+
isStandalone: true,
|
|
147
|
+
selector: "av-overlay-badge",
|
|
148
|
+
inputs: {
|
|
149
|
+
value: {
|
|
150
|
+
classPropertyName: "value",
|
|
151
|
+
publicName: "value",
|
|
152
|
+
isSignal: true,
|
|
153
|
+
isRequired: false,
|
|
154
|
+
transformFunction: null
|
|
155
|
+
},
|
|
156
|
+
severity: {
|
|
157
|
+
classPropertyName: "severity",
|
|
158
|
+
publicName: "severity",
|
|
159
|
+
isSignal: true,
|
|
160
|
+
isRequired: false,
|
|
161
|
+
transformFunction: null
|
|
162
|
+
},
|
|
163
|
+
badgeSize: {
|
|
164
|
+
classPropertyName: "badgeSize",
|
|
165
|
+
publicName: "badgeSize",
|
|
166
|
+
isSignal: true,
|
|
167
|
+
isRequired: false,
|
|
168
|
+
transformFunction: null
|
|
169
|
+
},
|
|
170
|
+
badgeDisabled: {
|
|
171
|
+
classPropertyName: "badgeDisabled",
|
|
172
|
+
publicName: "badgeDisabled",
|
|
173
|
+
isSignal: true,
|
|
174
|
+
isRequired: false,
|
|
175
|
+
transformFunction: null
|
|
176
|
+
},
|
|
177
|
+
badgeLabel: {
|
|
178
|
+
classPropertyName: "badgeLabel",
|
|
179
|
+
publicName: "badgeLabel",
|
|
180
|
+
isSignal: true,
|
|
181
|
+
isRequired: false,
|
|
182
|
+
transformFunction: null
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
ngImport: i0,
|
|
186
|
+
template: `<ng-content /><av-badge
|
|
187
|
+
[value]="value()"
|
|
188
|
+
[severity]="severity()"
|
|
189
|
+
[badgeSize]="badgeSize()"
|
|
190
|
+
[badgeDisabled]="badgeDisabled()"
|
|
191
|
+
[attr.role]="badgeLabel() ? 'img' : null"
|
|
192
|
+
[attr.aria-label]="badgeLabel() || null"
|
|
193
|
+
/>`,
|
|
194
|
+
isInline: true,
|
|
195
|
+
styles: [":host{position:relative;display:inline-flex;vertical-align:middle}av-badge{position:absolute;top:0;inset-inline-end:0;transform:translate(50%,-50%);z-index:1;box-shadow:0 0 0 2px var(--av-overlay-badge-border, var(--av-surface, white));pointer-events:none}:host-context([dir=\"rtl\"]) av-badge{transform:translate(-50%,-50%)}\n"],
|
|
196
|
+
dependencies: [{
|
|
197
|
+
kind: "component",
|
|
198
|
+
type: AvBadge,
|
|
199
|
+
selector: "av-badge",
|
|
200
|
+
inputs: [
|
|
201
|
+
"value",
|
|
202
|
+
"severity",
|
|
203
|
+
"badgeSize",
|
|
204
|
+
"badgeDisabled"
|
|
205
|
+
]
|
|
206
|
+
}],
|
|
207
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
208
|
+
});
|
|
209
|
+
};
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
211
|
+
minVersion: "12.0.0",
|
|
212
|
+
version: "22.3.2",
|
|
213
|
+
ngImport: i0,
|
|
214
|
+
type: AvOverlayBadge,
|
|
215
|
+
decorators: [{
|
|
216
|
+
type: Component,
|
|
217
|
+
args: [{
|
|
218
|
+
selector: "av-overlay-badge",
|
|
219
|
+
standalone: true,
|
|
220
|
+
imports: [AvBadge],
|
|
221
|
+
template: `<ng-content /><av-badge
|
|
222
|
+
[value]="value()"
|
|
223
|
+
[severity]="severity()"
|
|
224
|
+
[badgeSize]="badgeSize()"
|
|
225
|
+
[badgeDisabled]="badgeDisabled()"
|
|
226
|
+
[attr.role]="badgeLabel() ? 'img' : null"
|
|
227
|
+
[attr.aria-label]="badgeLabel() || null"
|
|
228
|
+
/>`,
|
|
229
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
230
|
+
styles: [":host{position:relative;display:inline-flex;vertical-align:middle}av-badge{position:absolute;top:0;inset-inline-end:0;transform:translate(50%,-50%);z-index:1;box-shadow:0 0 0 2px var(--av-overlay-badge-border, var(--av-surface, white));pointer-events:none}:host-context([dir=\"rtl\"]) av-badge{transform:translate(-50%,-50%)}\n"]
|
|
231
|
+
}]
|
|
232
|
+
}],
|
|
233
|
+
propDecorators: {
|
|
234
|
+
value: [{
|
|
235
|
+
type: i0.Input,
|
|
236
|
+
args: [{
|
|
237
|
+
isSignal: true,
|
|
238
|
+
alias: "value",
|
|
239
|
+
required: false
|
|
240
|
+
}]
|
|
241
|
+
}],
|
|
242
|
+
severity: [{
|
|
243
|
+
type: i0.Input,
|
|
244
|
+
args: [{
|
|
245
|
+
isSignal: true,
|
|
246
|
+
alias: "severity",
|
|
247
|
+
required: false
|
|
248
|
+
}]
|
|
249
|
+
}],
|
|
250
|
+
badgeSize: [{
|
|
251
|
+
type: i0.Input,
|
|
252
|
+
args: [{
|
|
253
|
+
isSignal: true,
|
|
254
|
+
alias: "badgeSize",
|
|
255
|
+
required: false
|
|
256
|
+
}]
|
|
257
|
+
}],
|
|
258
|
+
badgeDisabled: [{
|
|
259
|
+
type: i0.Input,
|
|
260
|
+
args: [{
|
|
261
|
+
isSignal: true,
|
|
262
|
+
alias: "badgeDisabled",
|
|
263
|
+
required: false
|
|
264
|
+
}]
|
|
265
|
+
}],
|
|
266
|
+
badgeLabel: [{
|
|
267
|
+
type: i0.Input,
|
|
268
|
+
args: [{
|
|
269
|
+
isSignal: true,
|
|
270
|
+
alias: "badgeLabel",
|
|
271
|
+
required: false
|
|
272
|
+
}]
|
|
273
|
+
}]
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
export { AvBadge, AvOverlayBadge };
|
|
277
|
+
|
|
278
|
+
//# sourceMappingURL=avero-ui-badge.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avero-ui-badge.mjs","names":[],"sources":["../../../projects/avero-ui/src/lib/badge/badge.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n} from '@angular/core';\n\nexport type AvBadgeSeverity =\n 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'contrast';\nexport type AvBadgeSize = 'small' | 'normal' | 'large' | 'xlarge';\n\n@Component({\n selector: 'av-badge',\n standalone: true,\n template: '{{ value() }}',\n styleUrl: './badge.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'badgeSize()',\n '[class.dot]': 'dot()',\n '[class.badge-disabled]': 'badgeDisabled()',\n },\n})\nexport class AvBadge {\n readonly value = input<string | number | null | undefined>(null);\n readonly severity = input<AvBadgeSeverity>('primary');\n readonly badgeSize = input<AvBadgeSize>('normal');\n readonly badgeDisabled = input(false, { transform: booleanAttribute });\n protected readonly dot = computed(() => this.value() == null || this.value() === '');\n}\n\n@Component({\n selector: 'av-overlay-badge',\n standalone: true,\n imports: [AvBadge],\n template: `<ng-content /><av-badge\n [value]=\"value()\"\n [severity]=\"severity()\"\n [badgeSize]=\"badgeSize()\"\n [badgeDisabled]=\"badgeDisabled()\"\n [attr.role]=\"badgeLabel() ? 'img' : null\"\n [attr.aria-label]=\"badgeLabel() || null\"\n />`,\n styles: `\n :host {\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n }\n av-badge {\n position: absolute;\n top: 0;\n inset-inline-end: 0;\n transform: translate(50%, -50%);\n z-index: 1;\n box-shadow: 0 0 0 2px var(--av-overlay-badge-border, var(--av-surface, white));\n pointer-events: none;\n }\n :host-context([dir='rtl']) av-badge {\n transform: translate(-50%, -50%);\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AvOverlayBadge {\n readonly value = input<string | number | null | undefined>(null);\n readonly severity = input<AvBadgeSeverity>('primary');\n readonly badgeSize = input<AvBadgeSize>('normal');\n readonly badgeDisabled = input(false, { transform: booleanAttribute });\n readonly badgeLabel = input('');\n}\n"],"mappings":";;AAyBA,IAAa,UAAb,MAAa,QAAO;CACT,QAAQ,MAA0C,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACvD,WAAW,MAAuB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,YAAY,MAAmB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,C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A;EAAA,UA7Bf;;;;;;;;EAOL,UAAA;EAAA,QAAA,CAAA,yUAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MAnBM;GAAO,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;GAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAyCP,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAjC1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,YAChB;GAAI,SACP,CAAC,OAAO;GAAC,UACR;;;;;;;;GAOL,iBAoBY,wBAAwB;GAAM,QAAA,CAAA,yUAAA;EAAA,CAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Directive, ElementRef, Renderer2, SecurityContext, inject, input } from "@angular/core";
|
|
3
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
4
|
+
const booleanAttributes = new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden inert ismap itemscope loop multiple muted nomodule novalidate open playsinline readonly required reversed selected".split(" "));
|
|
5
|
+
const urlAttributes = /* @__PURE__ */ new Set([
|
|
6
|
+
"href",
|
|
7
|
+
"src",
|
|
8
|
+
"action",
|
|
9
|
+
"formaction",
|
|
10
|
+
"poster",
|
|
11
|
+
"cite",
|
|
12
|
+
"background",
|
|
13
|
+
"xlink:href"
|
|
14
|
+
]);
|
|
15
|
+
var AvBind = class AvBind {
|
|
16
|
+
avBind = input(null, ...ngDevMode ? [{ debugName: "avBind" }] : /* istanbul ignore next */ []);
|
|
17
|
+
element = inject(ElementRef).nativeElement;
|
|
18
|
+
renderer = inject(Renderer2);
|
|
19
|
+
sanitizer = inject(DomSanitizer);
|
|
20
|
+
originals = /* @__PURE__ */ new Map();
|
|
21
|
+
applied = /* @__PURE__ */ new Map();
|
|
22
|
+
ngDoCheck() {
|
|
23
|
+
const next = /* @__PURE__ */ new Map();
|
|
24
|
+
for (const [key, value] of Object.entries(this.avBind() ?? {})) {
|
|
25
|
+
const name = key.toLowerCase();
|
|
26
|
+
if (!/^[a-z_][a-z0-9_.:-]*$/.test(name) || name.startsWith("on") || name === "srcdoc") continue;
|
|
27
|
+
if (name === "src" && [
|
|
28
|
+
"SCRIPT",
|
|
29
|
+
"IFRAME",
|
|
30
|
+
"EMBED"
|
|
31
|
+
].includes(this.element.tagName) || name === "data" && this.element.tagName === "OBJECT" || name === "href" && ["LINK", "BASE"].includes(this.element.tagName)) continue;
|
|
32
|
+
let text = value == null ? null : booleanAttributes.has(name) && typeof value === "boolean" ? value ? "" : null : String(value);
|
|
33
|
+
if (text !== null && urlAttributes.has(name)) text = this.sanitizer.sanitize(SecurityContext.URL, text);
|
|
34
|
+
next.set(name, text);
|
|
35
|
+
}
|
|
36
|
+
for (const name of this.applied.keys()) if (!next.has(name)) {
|
|
37
|
+
this.write(name, this.originals.get(name) ?? null);
|
|
38
|
+
this.originals.delete(name);
|
|
39
|
+
this.applied.delete(name);
|
|
40
|
+
}
|
|
41
|
+
for (const [name, value] of next) {
|
|
42
|
+
if (!this.applied.has(name)) this.originals.set(name, this.element.getAttribute(name));
|
|
43
|
+
if (!this.applied.has(name) || this.applied.get(name) !== value) this.write(name, value);
|
|
44
|
+
this.applied.set(name, value);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
ngOnDestroy() {
|
|
48
|
+
for (const [name, value] of this.originals) this.write(name, value);
|
|
49
|
+
this.originals.clear();
|
|
50
|
+
this.applied.clear();
|
|
51
|
+
}
|
|
52
|
+
write(name, value) {
|
|
53
|
+
if (value === null) this.renderer.removeAttribute(this.element, name);
|
|
54
|
+
else this.renderer.setAttribute(this.element, name, value);
|
|
55
|
+
}
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
57
|
+
minVersion: "12.0.0",
|
|
58
|
+
version: "22.3.2",
|
|
59
|
+
ngImport: i0,
|
|
60
|
+
type: AvBind,
|
|
61
|
+
deps: [],
|
|
62
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
63
|
+
});
|
|
64
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
65
|
+
minVersion: "17.1.0",
|
|
66
|
+
version: "22.3.2",
|
|
67
|
+
type: AvBind,
|
|
68
|
+
isStandalone: true,
|
|
69
|
+
selector: "[avBind]",
|
|
70
|
+
inputs: { avBind: {
|
|
71
|
+
classPropertyName: "avBind",
|
|
72
|
+
publicName: "avBind",
|
|
73
|
+
isSignal: true,
|
|
74
|
+
isRequired: false,
|
|
75
|
+
transformFunction: null
|
|
76
|
+
} },
|
|
77
|
+
ngImport: i0
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
81
|
+
minVersion: "12.0.0",
|
|
82
|
+
version: "22.3.2",
|
|
83
|
+
ngImport: i0,
|
|
84
|
+
type: AvBind,
|
|
85
|
+
decorators: [{
|
|
86
|
+
type: Directive,
|
|
87
|
+
args: [{
|
|
88
|
+
selector: "[avBind]",
|
|
89
|
+
standalone: true
|
|
90
|
+
}]
|
|
91
|
+
}],
|
|
92
|
+
propDecorators: { avBind: [{
|
|
93
|
+
type: i0.Input,
|
|
94
|
+
args: [{
|
|
95
|
+
isSignal: true,
|
|
96
|
+
alias: "avBind",
|
|
97
|
+
required: false
|
|
98
|
+
}]
|
|
99
|
+
}] }
|
|
100
|
+
});
|
|
101
|
+
export { AvBind };
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=avero-ui-bind.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avero-ui-bind.mjs","names":[],"sources":["../../../projects/avero-ui/src/lib/bind/bind.ts"],"sourcesContent":["import {\n Directive,\n DoCheck,\n ElementRef,\n inject,\n input,\n OnDestroy,\n Renderer2,\n SecurityContext,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nexport type AvBindAttributes = Readonly<\n Record<string, string | number | boolean | null | undefined>\n>;\n\nconst booleanAttributes = new Set(\n 'allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden inert ismap itemscope loop multiple muted nomodule novalidate open playsinline readonly required reversed selected'.split(\n ' ',\n ),\n);\nconst urlAttributes = new Set([\n 'href',\n 'src',\n 'action',\n 'formaction',\n 'poster',\n 'cite',\n 'background',\n 'xlink:href',\n]);\n\n/** Applies DOM attributes, not component inputs or event handlers. */\n@Directive({ selector: '[avBind]', standalone: true })\nexport class AvBind implements DoCheck, OnDestroy {\n readonly avBind = input<AvBindAttributes | null | undefined>(null);\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly originals = new Map<string, string | null>();\n private readonly applied = new Map<string, string | null>();\n\n ngDoCheck(): void {\n const next = new Map<string, string | null>();\n for (const [key, value] of Object.entries(this.avBind() ?? {})) {\n const name = key.toLowerCase();\n if (!/^[a-z_][a-z0-9_.:-]*$/.test(name) || name.startsWith('on') || name === 'srcdoc')\n continue;\n // Executable resource URLs require explicit Angular bindings.\n if (\n (name === 'src' && ['SCRIPT', 'IFRAME', 'EMBED'].includes(this.element.tagName)) ||\n (name === 'data' && this.element.tagName === 'OBJECT') ||\n (name === 'href' && ['LINK', 'BASE'].includes(this.element.tagName))\n )\n continue;\n let text =\n value == null\n ? null\n : booleanAttributes.has(name) && typeof value === 'boolean'\n ? value\n ? ''\n : null\n : String(value);\n if (text !== null && urlAttributes.has(name))\n text = this.sanitizer.sanitize(SecurityContext.URL, text);\n next.set(name, text);\n }\n for (const name of this.applied.keys()) {\n if (!next.has(name)) {\n this.write(name, this.originals.get(name) ?? null);\n this.originals.delete(name);\n this.applied.delete(name);\n }\n }\n for (const [name, value] of next) {\n if (!this.applied.has(name)) this.originals.set(name, this.element.getAttribute(name));\n if (!this.applied.has(name) || this.applied.get(name) !== value) this.write(name, value);\n this.applied.set(name, value);\n }\n }\n\n ngOnDestroy(): void {\n for (const [name, value] of this.originals) this.write(name, value);\n this.originals.clear();\n this.applied.clear();\n }\n\n private write(name: string, value: string | null): void {\n if (value === null) this.renderer.removeAttribute(this.element, name);\n else this.renderer.setAttribute(this.element, name, value);\n }\n}\n"],"mappings":";;;AAgBA,MAAM,oBAAoB,IAAI,IAC5B,4NAA4N,MAC1N,GAAG,CACJ;AAEH,MAAM,gCAAgB,IAAI,IAAI;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAA;AAID,IAAa,SAAb,MAAa,OAAM;CACR,SAAS,MAA2C,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACjD,UAAU,OAAgC,UAAU,CAAC,CAAC;CACtD,WAAW,OAAO,SAAS;CAC3B,YAAY,OAAO,YAAY;CAC/B,4BAAY,IAAI,IAAG;CACnB,0BAAU,IAAI,IAAG;CAElC,YAAS;EACP,MAAM,uBAAO,IAAI,IAAG;EACpB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,KAAK,OAAM,KAAM,CAAA,CAAE,GAAG;GAC9D,MAAM,OAAO,IAAI,YAAW;GAC5B,IAAI,CAAC,wBAAwB,KAAK,IAAI,KAAK,KAAK,WAAW,IAAI,KAAK,SAAS,UAC3E;GAEF,IACG,SAAS,SAAS;IAAC;IAAU;IAAU;GAAO,CAAC,CAAC,SAAS,KAAK,QAAQ,OAAO,KAC7E,SAAS,UAAU,KAAK,QAAQ,YAAY,YAC5C,SAAS,UAAU,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,KAAK,QAAQ,OAAO,GAElE;GACF,IAAI,OACF,SAAS,OACL,OACA,kBAAkB,IAAI,IAAI,KAAK,OAAO,UAAU,YAC9C,QACE,KACA,OACF,OAAO,KAAK;GACpB,IAAI,SAAS,QAAQ,cAAc,IAAI,IAAI,GACzC,OAAO,KAAK,UAAU,SAAS,gBA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CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAM,YAAA,CAAA;EADlB,MAAA;EAAU,MAAA,CAAA;GAAE,UAAU;GAAY,YAAY;EAAI,CAAE"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { DOCUMENT } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, ElementRef, afterRenderEffect, booleanAttribute, inject, input, viewChild } from "@angular/core";
|
|
4
|
+
const locks = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
var AvBlockUI = class AvBlockUI {
|
|
6
|
+
blocked = input(false, {
|
|
7
|
+
...ngDevMode ? { debugName: "blocked" } : /* istanbul ignore next */ {},
|
|
8
|
+
transform: booleanAttribute
|
|
9
|
+
});
|
|
10
|
+
target = input(null, ...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
|
|
11
|
+
ariaLabel = input("Content is busy", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
12
|
+
document = inject(DOCUMENT);
|
|
13
|
+
mask = viewChild.required("mask", ...ngDevMode ? [{ debugName: "mask" }] : /* istanbul ignore next */ []);
|
|
14
|
+
constructor() {
|
|
15
|
+
afterRenderEffect((onCleanup) => {
|
|
16
|
+
const value = this.target();
|
|
17
|
+
if (!this.blocked()) return;
|
|
18
|
+
const target = value instanceof ElementRef ? value.nativeElement : value;
|
|
19
|
+
const area = target ?? this.document.body;
|
|
20
|
+
const mask = this.mask().nativeElement;
|
|
21
|
+
const previousFocus = this.document.activeElement;
|
|
22
|
+
const lock = locks.get(area) ?? {
|
|
23
|
+
count: 0,
|
|
24
|
+
busy: area.getAttribute("aria-busy"),
|
|
25
|
+
inert: area.inert
|
|
26
|
+
};
|
|
27
|
+
locks.set(area, lock);
|
|
28
|
+
lock.count++;
|
|
29
|
+
area.setAttribute("aria-busy", "true");
|
|
30
|
+
const position = () => {
|
|
31
|
+
if (!target) return;
|
|
32
|
+
const rect = target.getBoundingClientRect();
|
|
33
|
+
Object.assign(mask.style, {
|
|
34
|
+
left: `${rect.left}px`,
|
|
35
|
+
top: `${rect.top}px`,
|
|
36
|
+
width: `${rect.width}px`,
|
|
37
|
+
height: `${rect.height}px`
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const window = this.document.defaultView;
|
|
41
|
+
let observer;
|
|
42
|
+
if (target) {
|
|
43
|
+
if (target.contains(previousFocus)) previousFocus?.blur();
|
|
44
|
+
target.inert = true;
|
|
45
|
+
position();
|
|
46
|
+
mask.show();
|
|
47
|
+
if (previousFocus?.isConnected && !target.contains(previousFocus)) previousFocus.focus({ preventScroll: true });
|
|
48
|
+
window.addEventListener("scroll", position, true);
|
|
49
|
+
window.addEventListener("resize", position);
|
|
50
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
51
|
+
observer = new ResizeObserver(position);
|
|
52
|
+
observer.observe(target);
|
|
53
|
+
}
|
|
54
|
+
} else mask.showModal();
|
|
55
|
+
onCleanup(() => {
|
|
56
|
+
observer?.disconnect();
|
|
57
|
+
window.removeEventListener("scroll", position, true);
|
|
58
|
+
window.removeEventListener("resize", position);
|
|
59
|
+
mask.close();
|
|
60
|
+
mask.removeAttribute("style");
|
|
61
|
+
if (--lock.count === 0) {
|
|
62
|
+
if (lock.busy === null) area.removeAttribute("aria-busy");
|
|
63
|
+
else area.setAttribute("aria-busy", lock.busy);
|
|
64
|
+
if (target) target.inert = lock.inert;
|
|
65
|
+
locks.delete(area);
|
|
66
|
+
}
|
|
67
|
+
if (previousFocus?.isConnected && !previousFocus.closest("[inert]") && (!target || this.document.activeElement === this.document.body || mask.contains(this.document.activeElement))) previousFocus.focus({ preventScroll: true });
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
72
|
+
minVersion: "12.0.0",
|
|
73
|
+
version: "22.3.2",
|
|
74
|
+
ngImport: i0,
|
|
75
|
+
type: AvBlockUI,
|
|
76
|
+
deps: [],
|
|
77
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
78
|
+
});
|
|
79
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
80
|
+
minVersion: "17.2.0",
|
|
81
|
+
version: "22.3.2",
|
|
82
|
+
type: AvBlockUI,
|
|
83
|
+
isStandalone: true,
|
|
84
|
+
selector: "av-block-ui",
|
|
85
|
+
inputs: {
|
|
86
|
+
blocked: {
|
|
87
|
+
classPropertyName: "blocked",
|
|
88
|
+
publicName: "blocked",
|
|
89
|
+
isSignal: true,
|
|
90
|
+
isRequired: false,
|
|
91
|
+
transformFunction: null
|
|
92
|
+
},
|
|
93
|
+
target: {
|
|
94
|
+
classPropertyName: "target",
|
|
95
|
+
publicName: "target",
|
|
96
|
+
isSignal: true,
|
|
97
|
+
isRequired: false,
|
|
98
|
+
transformFunction: null
|
|
99
|
+
},
|
|
100
|
+
ariaLabel: {
|
|
101
|
+
classPropertyName: "ariaLabel",
|
|
102
|
+
publicName: "ariaLabel",
|
|
103
|
+
isSignal: true,
|
|
104
|
+
isRequired: false,
|
|
105
|
+
transformFunction: null
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
viewQueries: [{
|
|
109
|
+
propertyName: "mask",
|
|
110
|
+
first: true,
|
|
111
|
+
predicate: ["mask"],
|
|
112
|
+
descendants: true,
|
|
113
|
+
isSignal: true
|
|
114
|
+
}],
|
|
115
|
+
ngImport: i0,
|
|
116
|
+
template: `<dialog #mask [class.local]="!!target()" [attr.aria-label]="ariaLabel()" [attr.aria-modal]="target() ? null : 'true'" tabindex="-1" (cancel)="$event.preventDefault()">
|
|
117
|
+
<div class="content"><ng-content /></div>
|
|
118
|
+
</dialog>`,
|
|
119
|
+
isInline: true,
|
|
120
|
+
styles: [":host{display:contents}dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;box-sizing:border-box;margin:0;padding:24px;border:0;background:var(--av-block-ui-background, rgba(15, 23, 42, .55));color:var(--av-block-ui-color, var(--av-on-solid, white));z-index:var(--av-block-ui-z-index, 1100);overscroll-behavior:contain}dialog[open]{display:grid;place-items:center}dialog::backdrop{background:transparent}dialog.local{inset:auto;overflow:hidden}.content{text-align:center}\n"],
|
|
121
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
125
|
+
minVersion: "12.0.0",
|
|
126
|
+
version: "22.3.2",
|
|
127
|
+
ngImport: i0,
|
|
128
|
+
type: AvBlockUI,
|
|
129
|
+
decorators: [{
|
|
130
|
+
type: Component,
|
|
131
|
+
args: [{
|
|
132
|
+
selector: "av-block-ui",
|
|
133
|
+
standalone: true,
|
|
134
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
135
|
+
template: `<dialog #mask [class.local]="!!target()" [attr.aria-label]="ariaLabel()" [attr.aria-modal]="target() ? null : 'true'" tabindex="-1" (cancel)="$event.preventDefault()">
|
|
136
|
+
<div class="content"><ng-content /></div>
|
|
137
|
+
</dialog>`,
|
|
138
|
+
styles: [":host{display:contents}dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;box-sizing:border-box;margin:0;padding:24px;border:0;background:var(--av-block-ui-background, rgba(15, 23, 42, .55));color:var(--av-block-ui-color, var(--av-on-solid, white));z-index:var(--av-block-ui-z-index, 1100);overscroll-behavior:contain}dialog[open]{display:grid;place-items:center}dialog::backdrop{background:transparent}dialog.local{inset:auto;overflow:hidden}.content{text-align:center}\n"]
|
|
139
|
+
}]
|
|
140
|
+
}],
|
|
141
|
+
ctorParameters: () => [],
|
|
142
|
+
propDecorators: {
|
|
143
|
+
blocked: [{
|
|
144
|
+
type: i0.Input,
|
|
145
|
+
args: [{
|
|
146
|
+
isSignal: true,
|
|
147
|
+
alias: "blocked",
|
|
148
|
+
required: false
|
|
149
|
+
}]
|
|
150
|
+
}],
|
|
151
|
+
target: [{
|
|
152
|
+
type: i0.Input,
|
|
153
|
+
args: [{
|
|
154
|
+
isSignal: true,
|
|
155
|
+
alias: "target",
|
|
156
|
+
required: false
|
|
157
|
+
}]
|
|
158
|
+
}],
|
|
159
|
+
ariaLabel: [{
|
|
160
|
+
type: i0.Input,
|
|
161
|
+
args: [{
|
|
162
|
+
isSignal: true,
|
|
163
|
+
alias: "ariaLabel",
|
|
164
|
+
required: false
|
|
165
|
+
}]
|
|
166
|
+
}],
|
|
167
|
+
mask: [{
|
|
168
|
+
type: i0.ViewChild,
|
|
169
|
+
args: ["mask", { isSignal: true }]
|
|
170
|
+
}]
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
export { AvBlockUI };
|
|
174
|
+
|
|
175
|
+
//# sourceMappingURL=avero-ui-block-ui.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avero-ui-block-ui.mjs","names":[],"sources":["../../../projects/avero-ui/src/lib/block-ui/block-ui.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { afterRenderEffect, booleanAttribute, ChangeDetectionStrategy, Component, ElementRef, inject, input, viewChild } from '@angular/core';\n\nconst locks = new WeakMap<HTMLElement, { count: number; busy: string | null; inert: boolean }>();\n\n@Component({\n selector: 'av-block-ui',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<dialog #mask [class.local]=\"!!target()\" [attr.aria-label]=\"ariaLabel()\" [attr.aria-modal]=\"target() ? null : 'true'\" tabindex=\"-1\" (cancel)=\"$event.preventDefault()\">\n <div class=\"content\"><ng-content /></div>\n </dialog>`,\n styleUrl: './block-ui.scss',\n})\nexport class AvBlockUI {\n readonly blocked = input(false, { transform: booleanAttribute });\n readonly target = input<HTMLElement | ElementRef<HTMLElement> | null>(null);\n readonly ariaLabel = input('Content is busy');\n private readonly document = inject(DOCUMENT);\n private readonly mask = viewChild.required<ElementRef<HTMLDialogElement>>('mask');\n\n constructor() {\n afterRenderEffect((onCleanup) => {\n const value = this.target();\n if (!this.blocked()) return;\n const target = value instanceof ElementRef ? value.nativeElement : value;\n const area = target ?? this.document.body;\n const mask = this.mask().nativeElement;\n const previousFocus = this.document.activeElement as HTMLElement | null;\n const lock = locks.get(area) ?? { count: 0, busy: area.getAttribute('aria-busy'), inert: area.inert };\n locks.set(area, lock);\n lock.count++;\n area.setAttribute('aria-busy', 'true');\n const position = () => {\n if (!target) return;\n const rect = target.getBoundingClientRect();\n Object.assign(mask.style, { left: `${rect.left}px`, top: `${rect.top}px`, width: `${rect.width}px`, height: `${rect.height}px` });\n };\n const window = this.document.defaultView!;\n let observer: ResizeObserver | undefined;\n if (target) {\n if (target.contains(previousFocus)) previousFocus?.blur();\n target.inert = true;\n position();\n mask.show();\n // A local blocker must not steal focus from controls outside its target.\n if (previousFocus?.isConnected && !target.contains(previousFocus)) previousFocus.focus({ preventScroll: true });\n window.addEventListener('scroll', position, true);\n window.addEventListener('resize', position);\n if (typeof ResizeObserver !== 'undefined') {\n observer = new ResizeObserver(position);\n observer.observe(target);\n }\n } else {\n mask.showModal();\n }\n onCleanup(() => {\n observer?.disconnect();\n window.removeEventListener('scroll', position, true);\n window.removeEventListener('resize', position);\n mask.close();\n mask.removeAttribute('style');\n if (--lock.count === 0) {\n if (lock.busy === null) area.removeAttribute('aria-busy');\n else area.setAttribute('aria-busy', lock.busy);\n if (target) target.inert = lock.inert;\n locks.delete(area);\n }\n if (previousFocus?.isConnected && !previousFocus.closest('[inert]') &&\n (!target || this.document.activeElement === this.document.body || mask.contains(this.document.activeElement))) {\n previousFocus.focus({ preventScroll: true });\n }\n });\n });\n }\n}\n"],"mappings":";;;AAGA,MAAM,wBAAQ,IAAI,QAAO;AAWzB,IAAa,YAAb,MAAa,UAAS;CACX,UAAU,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACpD,SAAS,MAAoD,MAAK,GAAA,YAAA,CAAA,EAAA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