@area8975/ui 0.2.2-dev.48 → 0.2.2-dev.50
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/README.md +3 -2
- package/fesm2022/area8975-ui-alert.mjs +113 -0
- package/fesm2022/area8975-ui-alert.mjs.map +1 -0
- package/fesm2022/area8975-ui-avatar.mjs +157 -0
- package/fesm2022/area8975-ui-avatar.mjs.map +1 -0
- package/fesm2022/area8975-ui-badge.mjs +116 -0
- package/fesm2022/area8975-ui-badge.mjs.map +1 -0
- package/fesm2022/area8975-ui-button.mjs +314 -0
- package/fesm2022/area8975-ui-button.mjs.map +1 -0
- package/fesm2022/area8975-ui-calendar.mjs +549 -0
- package/fesm2022/area8975-ui-calendar.mjs.map +1 -0
- package/fesm2022/area8975-ui-card-header.mjs +96 -0
- package/fesm2022/area8975-ui-card-header.mjs.map +1 -0
- package/fesm2022/area8975-ui-card.mjs +73 -0
- package/fesm2022/area8975-ui-card.mjs.map +1 -0
- package/fesm2022/area8975-ui-chart-palette.mjs +225 -0
- package/fesm2022/area8975-ui-chart-palette.mjs.map +1 -0
- package/fesm2022/area8975-ui-charts.mjs +2813 -0
- package/fesm2022/area8975-ui-charts.mjs.map +1 -0
- package/fesm2022/area8975-ui-checkbox.mjs +202 -0
- package/fesm2022/area8975-ui-checkbox.mjs.map +1 -0
- package/fesm2022/area8975-ui-colour.mjs +200 -0
- package/fesm2022/area8975-ui-colour.mjs.map +1 -0
- package/fesm2022/area8975-ui-container.mjs +40 -0
- package/fesm2022/area8975-ui-container.mjs.map +1 -0
- package/fesm2022/area8975-ui-counter.mjs +246 -0
- package/fesm2022/area8975-ui-counter.mjs.map +1 -0
- package/fesm2022/area8975-ui-date-range-picker.mjs +554 -0
- package/fesm2022/area8975-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/area8975-ui-datepicker.mjs +547 -0
- package/fesm2022/area8975-ui-datepicker.mjs.map +1 -0
- package/fesm2022/area8975-ui-disclosure.mjs +279 -0
- package/fesm2022/area8975-ui-disclosure.mjs.map +1 -0
- package/fesm2022/area8975-ui-drawer.mjs +106 -0
- package/fesm2022/area8975-ui-drawer.mjs.map +1 -0
- package/fesm2022/area8975-ui-dropdown-button.mjs +141 -0
- package/fesm2022/area8975-ui-dropdown-button.mjs.map +1 -0
- package/fesm2022/area8975-ui-dropdown-menu.mjs +96 -0
- package/fesm2022/area8975-ui-dropdown-menu.mjs.map +1 -0
- package/fesm2022/area8975-ui-dropdown.mjs +208 -0
- package/fesm2022/area8975-ui-dropdown.mjs.map +1 -0
- package/fesm2022/area8975-ui-dropzone.mjs +332 -0
- package/fesm2022/area8975-ui-dropzone.mjs.map +1 -0
- package/fesm2022/area8975-ui-field.mjs +191 -0
- package/fesm2022/area8975-ui-field.mjs.map +1 -0
- package/fesm2022/area8975-ui-file-input.mjs +340 -0
- package/fesm2022/area8975-ui-file-input.mjs.map +1 -0
- package/fesm2022/area8975-ui-file.mjs +47 -0
- package/fesm2022/area8975-ui-file.mjs.map +1 -0
- package/fesm2022/area8975-ui-format.mjs +70 -0
- package/fesm2022/area8975-ui-format.mjs.map +1 -0
- package/fesm2022/area8975-ui-input-addon.mjs +42 -0
- package/fesm2022/area8975-ui-input-addon.mjs.map +1 -0
- package/fesm2022/area8975-ui-input-group.mjs +86 -0
- package/fesm2022/area8975-ui-input-group.mjs.map +1 -0
- package/fesm2022/area8975-ui-input.mjs +682 -0
- package/fesm2022/area8975-ui-input.mjs.map +1 -0
- package/fesm2022/area8975-ui-kpi.mjs +167 -0
- package/fesm2022/area8975-ui-kpi.mjs.map +1 -0
- package/fesm2022/area8975-ui-layout.mjs +63 -0
- package/fesm2022/area8975-ui-layout.mjs.map +1 -0
- package/fesm2022/area8975-ui-loading.mjs +76 -0
- package/fesm2022/area8975-ui-loading.mjs.map +1 -0
- package/fesm2022/area8975-ui-modal-close-btn.mjs +89 -0
- package/fesm2022/area8975-ui-modal-close-btn.mjs.map +1 -0
- package/fesm2022/area8975-ui-modal.mjs +235 -0
- package/fesm2022/area8975-ui-modal.mjs.map +1 -0
- package/fesm2022/area8975-ui-money.mjs +230 -0
- package/fesm2022/area8975-ui-money.mjs.map +1 -0
- package/fesm2022/area8975-ui-overlay.mjs +317 -0
- package/fesm2022/area8975-ui-overlay.mjs.map +1 -0
- package/fesm2022/area8975-ui-pagination.mjs +152 -0
- package/fesm2022/area8975-ui-pagination.mjs.map +1 -0
- package/fesm2022/area8975-ui-private.mjs +63 -0
- package/fesm2022/area8975-ui-private.mjs.map +1 -0
- package/fesm2022/area8975-ui-progress.mjs +307 -0
- package/fesm2022/area8975-ui-progress.mjs.map +1 -0
- package/fesm2022/area8975-ui-radio.mjs +199 -0
- package/fesm2022/area8975-ui-radio.mjs.map +1 -0
- package/fesm2022/area8975-ui-rich-text-editor.mjs +778 -0
- package/fesm2022/area8975-ui-rich-text-editor.mjs.map +1 -0
- package/fesm2022/area8975-ui-search.mjs +266 -0
- package/fesm2022/area8975-ui-search.mjs.map +1 -0
- package/fesm2022/area8975-ui-segmented.mjs +118 -0
- package/fesm2022/area8975-ui-segmented.mjs.map +1 -0
- package/fesm2022/area8975-ui-select.mjs +926 -0
- package/fesm2022/area8975-ui-select.mjs.map +1 -0
- package/fesm2022/area8975-ui-sidebar-group.mjs +60 -0
- package/fesm2022/area8975-ui-sidebar-group.mjs.map +1 -0
- package/fesm2022/area8975-ui-sidebar-item.mjs +107 -0
- package/fesm2022/area8975-ui-sidebar-item.mjs.map +1 -0
- package/fesm2022/area8975-ui-sidebar.mjs +109 -0
- package/fesm2022/area8975-ui-sidebar.mjs.map +1 -0
- package/fesm2022/area8975-ui-skeleton.mjs +116 -0
- package/fesm2022/area8975-ui-skeleton.mjs.map +1 -0
- package/fesm2022/area8975-ui-stat.mjs +55 -0
- package/fesm2022/area8975-ui-stat.mjs.map +1 -0
- package/fesm2022/area8975-ui-switch.mjs +132 -0
- package/fesm2022/area8975-ui-switch.mjs.map +1 -0
- package/fesm2022/area8975-ui-tab.mjs +217 -0
- package/fesm2022/area8975-ui-tab.mjs.map +1 -0
- package/fesm2022/area8975-ui-table-filters.mjs +499 -0
- package/fesm2022/area8975-ui-table-filters.mjs.map +1 -0
- package/fesm2022/area8975-ui-table.mjs +1237 -0
- package/fesm2022/area8975-ui-table.mjs.map +1 -0
- package/fesm2022/area8975-ui-textarea.mjs +375 -0
- package/fesm2022/area8975-ui-textarea.mjs.map +1 -0
- package/fesm2022/area8975-ui-theme.mjs +246 -0
- package/fesm2022/area8975-ui-theme.mjs.map +1 -0
- package/fesm2022/area8975-ui-time-select.mjs +170 -0
- package/fesm2022/area8975-ui-time-select.mjs.map +1 -0
- package/fesm2022/area8975-ui-toast.mjs +269 -0
- package/fesm2022/area8975-ui-toast.mjs.map +1 -0
- package/fesm2022/area8975-ui-toaster.mjs +117 -0
- package/fesm2022/area8975-ui-toaster.mjs.map +1 -0
- package/fesm2022/area8975-ui-tooltip.mjs +196 -0
- package/fesm2022/area8975-ui-tooltip.mjs.map +1 -0
- package/fesm2022/area8975-ui-user-menu.mjs +186 -0
- package/fesm2022/area8975-ui-user-menu.mjs.map +1 -0
- package/fesm2022/area8975-ui.mjs +0 -16269
- package/package.json +237 -1
- package/types/area8975-ui-alert.d.ts +25 -0
- package/types/area8975-ui-avatar.d.ts +40 -0
- package/types/area8975-ui-badge.d.ts +31 -0
- package/types/area8975-ui-button.d.ts +129 -0
- package/types/area8975-ui-calendar.d.ts +177 -0
- package/types/area8975-ui-card-header.d.ts +28 -0
- package/types/area8975-ui-card.d.ts +18 -0
- package/types/area8975-ui-chart-palette.d.ts +176 -0
- package/types/area8975-ui-charts.d.ts +747 -0
- package/types/area8975-ui-checkbox.d.ts +61 -0
- package/types/area8975-ui-colour.d.ts +31 -0
- package/types/area8975-ui-container.d.ts +5 -0
- package/types/area8975-ui-counter.d.ts +43 -0
- package/types/area8975-ui-date-range-picker.d.ts +132 -0
- package/types/area8975-ui-datepicker.d.ts +124 -0
- package/types/area8975-ui-disclosure.d.ts +79 -0
- package/types/area8975-ui-drawer.d.ts +25 -0
- package/types/area8975-ui-dropdown-button.d.ts +32 -0
- package/types/area8975-ui-dropdown-menu.d.ts +25 -0
- package/types/area8975-ui-dropdown.d.ts +56 -0
- package/types/area8975-ui-dropzone.d.ts +96 -0
- package/types/area8975-ui-field.d.ts +72 -0
- package/types/area8975-ui-file-input.d.ts +72 -0
- package/types/area8975-ui-file.d.ts +21 -0
- package/types/area8975-ui-format.d.ts +37 -0
- package/types/area8975-ui-input-addon.d.ts +10 -0
- package/types/area8975-ui-input-group.d.ts +18 -0
- package/types/area8975-ui-input.d.ts +224 -0
- package/types/area8975-ui-kpi.d.ts +36 -0
- package/types/area8975-ui-layout.d.ts +7 -0
- package/types/area8975-ui-loading.d.ts +16 -0
- package/types/area8975-ui-modal-close-btn.d.ts +14 -0
- package/types/area8975-ui-modal.d.ts +45 -0
- package/types/area8975-ui-money.d.ts +77 -0
- package/types/area8975-ui-overlay.d.ts +75 -0
- package/types/area8975-ui-pagination.d.ts +27 -0
- package/types/area8975-ui-private.d.ts +20 -0
- package/types/area8975-ui-progress.d.ts +127 -0
- package/types/area8975-ui-radio.d.ts +61 -0
- package/types/area8975-ui-rich-text-editor.d.ts +165 -0
- package/types/area8975-ui-search.d.ts +56 -0
- package/types/area8975-ui-segmented.d.ts +41 -0
- package/types/area8975-ui-select.d.ts +293 -0
- package/types/area8975-ui-sidebar-group.d.ts +15 -0
- package/types/area8975-ui-sidebar-item.d.ts +20 -0
- package/types/area8975-ui-sidebar.d.ts +16 -0
- package/types/area8975-ui-skeleton.d.ts +35 -0
- package/types/area8975-ui-stat.d.ts +13 -0
- package/types/area8975-ui-switch.d.ts +32 -0
- package/types/area8975-ui-tab.d.ts +45 -0
- package/types/area8975-ui-table-filters.d.ts +138 -0
- package/types/area8975-ui-table.d.ts +371 -0
- package/types/area8975-ui-textarea.d.ts +126 -0
- package/types/area8975-ui-theme.d.ts +61 -0
- package/types/area8975-ui-time-select.d.ts +35 -0
- package/types/area8975-ui-toast.d.ts +78 -0
- package/types/area8975-ui-toaster.d.ts +23 -0
- package/types/area8975-ui-tooltip.d.ts +47 -0
- package/types/area8975-ui-user-menu.d.ts +39 -0
- package/types/area8975-ui.d.ts +1 -4464
- package/fesm2022/area8975-ui.mjs.map +0 -1
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, Injectable, effect, inject, input } from "@angular/core";
|
|
3
|
+
import { autoUpdate, computePosition, flip, offset, shift } from "@floating-ui/dom";
|
|
4
|
+
var UiOverlayPositioner = class UiOverlayPositioner {
|
|
5
|
+
position = (reference, overlay, options) => computePosition(reference, overlay, {
|
|
6
|
+
placement: options.placement,
|
|
7
|
+
strategy: "fixed",
|
|
8
|
+
middleware: [
|
|
9
|
+
offset(options.offset),
|
|
10
|
+
flip({ padding: options.viewportPadding }),
|
|
11
|
+
shift({ padding: options.viewportPadding })
|
|
12
|
+
]
|
|
13
|
+
});
|
|
14
|
+
watch = (reference, overlay, update) => autoUpdate(reference, overlay, update);
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
16
|
+
minVersion: "12.0.0",
|
|
17
|
+
version: "22.2.1",
|
|
18
|
+
ngImport: i0,
|
|
19
|
+
type: UiOverlayPositioner,
|
|
20
|
+
deps: [],
|
|
21
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
22
|
+
});
|
|
23
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
24
|
+
minVersion: "12.0.0",
|
|
25
|
+
version: "22.2.1",
|
|
26
|
+
ngImport: i0,
|
|
27
|
+
type: UiOverlayPositioner,
|
|
28
|
+
providedIn: "root"
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
32
|
+
minVersion: "12.0.0",
|
|
33
|
+
version: "22.2.1",
|
|
34
|
+
ngImport: i0,
|
|
35
|
+
type: UiOverlayPositioner,
|
|
36
|
+
decorators: [{
|
|
37
|
+
type: Injectable,
|
|
38
|
+
args: [{ providedIn: "root" }]
|
|
39
|
+
}]
|
|
40
|
+
});
|
|
41
|
+
var UiOverlayStack = class UiOverlayStack {
|
|
42
|
+
entries = [];
|
|
43
|
+
constructor() {
|
|
44
|
+
document.addEventListener("click", this.onDocumentClick);
|
|
45
|
+
document.addEventListener("keydown", this.onKeyDown);
|
|
46
|
+
inject(DestroyRef).onDestroy(() => {
|
|
47
|
+
document.removeEventListener("click", this.onDocumentClick);
|
|
48
|
+
document.removeEventListener("keydown", this.onKeyDown);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
push = (entry) => {
|
|
52
|
+
this.remove(entry);
|
|
53
|
+
this.entries.push(entry);
|
|
54
|
+
};
|
|
55
|
+
remove = (entry) => {
|
|
56
|
+
const index = this.entries.indexOf(entry);
|
|
57
|
+
if (index !== -1) this.entries.splice(index, 1);
|
|
58
|
+
};
|
|
59
|
+
top = () => this.entries.at(-1);
|
|
60
|
+
onDocumentClick = (event) => this.top()?.onDocumentClick(event);
|
|
61
|
+
onKeyDown = (event) => this.top()?.onKeyDown(event);
|
|
62
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
63
|
+
minVersion: "12.0.0",
|
|
64
|
+
version: "22.2.1",
|
|
65
|
+
ngImport: i0,
|
|
66
|
+
type: UiOverlayStack,
|
|
67
|
+
deps: [],
|
|
68
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
69
|
+
});
|
|
70
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
71
|
+
minVersion: "12.0.0",
|
|
72
|
+
version: "22.2.1",
|
|
73
|
+
ngImport: i0,
|
|
74
|
+
type: UiOverlayStack,
|
|
75
|
+
providedIn: "root"
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
79
|
+
minVersion: "12.0.0",
|
|
80
|
+
version: "22.2.1",
|
|
81
|
+
ngImport: i0,
|
|
82
|
+
type: UiOverlayStack,
|
|
83
|
+
decorators: [{
|
|
84
|
+
type: Injectable,
|
|
85
|
+
args: [{ providedIn: "root" }]
|
|
86
|
+
}],
|
|
87
|
+
ctorParameters: () => []
|
|
88
|
+
});
|
|
89
|
+
var UiOverlayComponent = class UiOverlayComponent {
|
|
90
|
+
positioner = inject(UiOverlayPositioner);
|
|
91
|
+
stack = inject(UiOverlayStack);
|
|
92
|
+
content = input(...ngDevMode ? [void 0, { debugName: "content" }] : /* istanbul ignore next */ []);
|
|
93
|
+
anchor = input(...ngDevMode ? [void 0, { debugName: "anchor" }] : /* istanbul ignore next */ []);
|
|
94
|
+
closeBehaviour = input("whenClickAnywhere", ...ngDevMode ? [{ debugName: "closeBehaviour" }] : /* istanbul ignore next */ []);
|
|
95
|
+
isOpen = input.required(...ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []);
|
|
96
|
+
placement = input("bottom-start", ...ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []);
|
|
97
|
+
offset = input(0, ...ngDevMode ? [{ debugName: "offset" }] : /* istanbul ignore next */ []);
|
|
98
|
+
viewportPadding = input(0, ...ngDevMode ? [{ debugName: "viewportPadding" }] : /* istanbul ignore next */ []);
|
|
99
|
+
matchWidth = input(null, ...ngDevMode ? [{ debugName: "matchWidth" }] : /* istanbul ignore next */ []);
|
|
100
|
+
constructor() {
|
|
101
|
+
effect((onCleanup) => {
|
|
102
|
+
if (!this.isOpen()()) return;
|
|
103
|
+
this.stack.push(this);
|
|
104
|
+
onCleanup(() => this.stack.remove(this));
|
|
105
|
+
});
|
|
106
|
+
effect((onCleanup) => {
|
|
107
|
+
const anchor = this.anchor();
|
|
108
|
+
const content = this.content();
|
|
109
|
+
if (!this.isOpen()() || !anchor || !content) return;
|
|
110
|
+
const referenceElement = anchor.nativeElement;
|
|
111
|
+
const floatingElement = content.nativeElement;
|
|
112
|
+
const update = () => {
|
|
113
|
+
const matchWidth = this.matchWidth();
|
|
114
|
+
if (matchWidth) {
|
|
115
|
+
const width = `${referenceElement.offsetWidth}px`;
|
|
116
|
+
if (matchWidth === "both") {
|
|
117
|
+
floatingElement.style.maxWidth = width;
|
|
118
|
+
floatingElement.style.minWidth = width;
|
|
119
|
+
} else floatingElement.style[matchWidth] = width;
|
|
120
|
+
}
|
|
121
|
+
return this.positioner.position(referenceElement, floatingElement, {
|
|
122
|
+
placement: this.placement(),
|
|
123
|
+
offset: this.offset(),
|
|
124
|
+
viewportPadding: this.viewportPadding()
|
|
125
|
+
}).then(({ x, y }) => Object.assign(floatingElement.style, {
|
|
126
|
+
left: `${x}px`,
|
|
127
|
+
top: `${y}px`
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
update();
|
|
131
|
+
onCleanup(this.positioner.watch(referenceElement, floatingElement, update));
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
close = () => this.isOpen().set(false);
|
|
135
|
+
onDocumentClick = (event) => {
|
|
136
|
+
const behaviour = this.closeBehaviour();
|
|
137
|
+
if (behaviour === "none") return;
|
|
138
|
+
const target = event.target;
|
|
139
|
+
if (!(target instanceof Node)) return;
|
|
140
|
+
const anchorElement = this.anchor()?.nativeElement;
|
|
141
|
+
const contentElement = this.content()?.nativeElement;
|
|
142
|
+
const isInsideAnchor = anchorElement?.contains(target) ?? false;
|
|
143
|
+
const isInsideContent = contentElement?.contains(target) ?? false;
|
|
144
|
+
if (isInsideAnchor && !isInsideContent) return;
|
|
145
|
+
if (behaviour === "whenClickAnywhere") {
|
|
146
|
+
this.close();
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (!isInsideContent) this.close();
|
|
150
|
+
};
|
|
151
|
+
onKeyDown = (event) => {
|
|
152
|
+
if (event.key === "Escape") this.close();
|
|
153
|
+
};
|
|
154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
155
|
+
minVersion: "12.0.0",
|
|
156
|
+
version: "22.2.1",
|
|
157
|
+
ngImport: i0,
|
|
158
|
+
type: UiOverlayComponent,
|
|
159
|
+
deps: [],
|
|
160
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
161
|
+
});
|
|
162
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
163
|
+
minVersion: "17.1.0",
|
|
164
|
+
version: "22.2.1",
|
|
165
|
+
type: UiOverlayComponent,
|
|
166
|
+
isStandalone: true,
|
|
167
|
+
selector: "ui-overlay",
|
|
168
|
+
inputs: {
|
|
169
|
+
content: {
|
|
170
|
+
classPropertyName: "content",
|
|
171
|
+
publicName: "content",
|
|
172
|
+
isSignal: true,
|
|
173
|
+
isRequired: false,
|
|
174
|
+
transformFunction: null
|
|
175
|
+
},
|
|
176
|
+
anchor: {
|
|
177
|
+
classPropertyName: "anchor",
|
|
178
|
+
publicName: "anchor",
|
|
179
|
+
isSignal: true,
|
|
180
|
+
isRequired: false,
|
|
181
|
+
transformFunction: null
|
|
182
|
+
},
|
|
183
|
+
closeBehaviour: {
|
|
184
|
+
classPropertyName: "closeBehaviour",
|
|
185
|
+
publicName: "closeBehaviour",
|
|
186
|
+
isSignal: true,
|
|
187
|
+
isRequired: false,
|
|
188
|
+
transformFunction: null
|
|
189
|
+
},
|
|
190
|
+
isOpen: {
|
|
191
|
+
classPropertyName: "isOpen",
|
|
192
|
+
publicName: "isOpen",
|
|
193
|
+
isSignal: true,
|
|
194
|
+
isRequired: true,
|
|
195
|
+
transformFunction: null
|
|
196
|
+
},
|
|
197
|
+
placement: {
|
|
198
|
+
classPropertyName: "placement",
|
|
199
|
+
publicName: "placement",
|
|
200
|
+
isSignal: true,
|
|
201
|
+
isRequired: false,
|
|
202
|
+
transformFunction: null
|
|
203
|
+
},
|
|
204
|
+
offset: {
|
|
205
|
+
classPropertyName: "offset",
|
|
206
|
+
publicName: "offset",
|
|
207
|
+
isSignal: true,
|
|
208
|
+
isRequired: false,
|
|
209
|
+
transformFunction: null
|
|
210
|
+
},
|
|
211
|
+
viewportPadding: {
|
|
212
|
+
classPropertyName: "viewportPadding",
|
|
213
|
+
publicName: "viewportPadding",
|
|
214
|
+
isSignal: true,
|
|
215
|
+
isRequired: false,
|
|
216
|
+
transformFunction: null
|
|
217
|
+
},
|
|
218
|
+
matchWidth: {
|
|
219
|
+
classPropertyName: "matchWidth",
|
|
220
|
+
publicName: "matchWidth",
|
|
221
|
+
isSignal: true,
|
|
222
|
+
isRequired: false,
|
|
223
|
+
transformFunction: null
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
host: { styleAttribute: "display: contents;" },
|
|
227
|
+
exportAs: ["uiOverlay"],
|
|
228
|
+
ngImport: i0,
|
|
229
|
+
template: "<ng-content />",
|
|
230
|
+
isInline: true
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
234
|
+
minVersion: "12.0.0",
|
|
235
|
+
version: "22.2.1",
|
|
236
|
+
ngImport: i0,
|
|
237
|
+
type: UiOverlayComponent,
|
|
238
|
+
decorators: [{
|
|
239
|
+
type: Component,
|
|
240
|
+
args: [{
|
|
241
|
+
selector: "ui-overlay",
|
|
242
|
+
exportAs: "uiOverlay",
|
|
243
|
+
template: "<ng-content />",
|
|
244
|
+
host: { style: "display: contents;" }
|
|
245
|
+
}]
|
|
246
|
+
}],
|
|
247
|
+
ctorParameters: () => [],
|
|
248
|
+
propDecorators: {
|
|
249
|
+
content: [{
|
|
250
|
+
type: i0.Input,
|
|
251
|
+
args: [{
|
|
252
|
+
isSignal: true,
|
|
253
|
+
alias: "content",
|
|
254
|
+
required: false
|
|
255
|
+
}]
|
|
256
|
+
}],
|
|
257
|
+
anchor: [{
|
|
258
|
+
type: i0.Input,
|
|
259
|
+
args: [{
|
|
260
|
+
isSignal: true,
|
|
261
|
+
alias: "anchor",
|
|
262
|
+
required: false
|
|
263
|
+
}]
|
|
264
|
+
}],
|
|
265
|
+
closeBehaviour: [{
|
|
266
|
+
type: i0.Input,
|
|
267
|
+
args: [{
|
|
268
|
+
isSignal: true,
|
|
269
|
+
alias: "closeBehaviour",
|
|
270
|
+
required: false
|
|
271
|
+
}]
|
|
272
|
+
}],
|
|
273
|
+
isOpen: [{
|
|
274
|
+
type: i0.Input,
|
|
275
|
+
args: [{
|
|
276
|
+
isSignal: true,
|
|
277
|
+
alias: "isOpen",
|
|
278
|
+
required: true
|
|
279
|
+
}]
|
|
280
|
+
}],
|
|
281
|
+
placement: [{
|
|
282
|
+
type: i0.Input,
|
|
283
|
+
args: [{
|
|
284
|
+
isSignal: true,
|
|
285
|
+
alias: "placement",
|
|
286
|
+
required: false
|
|
287
|
+
}]
|
|
288
|
+
}],
|
|
289
|
+
offset: [{
|
|
290
|
+
type: i0.Input,
|
|
291
|
+
args: [{
|
|
292
|
+
isSignal: true,
|
|
293
|
+
alias: "offset",
|
|
294
|
+
required: false
|
|
295
|
+
}]
|
|
296
|
+
}],
|
|
297
|
+
viewportPadding: [{
|
|
298
|
+
type: i0.Input,
|
|
299
|
+
args: [{
|
|
300
|
+
isSignal: true,
|
|
301
|
+
alias: "viewportPadding",
|
|
302
|
+
required: false
|
|
303
|
+
}]
|
|
304
|
+
}],
|
|
305
|
+
matchWidth: [{
|
|
306
|
+
type: i0.Input,
|
|
307
|
+
args: [{
|
|
308
|
+
isSignal: true,
|
|
309
|
+
alias: "matchWidth",
|
|
310
|
+
required: false
|
|
311
|
+
}]
|
|
312
|
+
}]
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
export { UiOverlayComponent };
|
|
316
|
+
|
|
317
|
+
//# sourceMappingURL=area8975-ui-overlay.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area8975-ui-overlay.mjs","names":[],"sources":["../../../projects/ui/overlay/overlay.positioner.ts","../../../projects/ui/overlay/overlay.stack.ts","../../../projects/ui/overlay/overlay.component.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\n\nimport { autoUpdate, computePosition, flip, offset, shift } from \"@floating-ui/dom\";\n\nimport { UiOverlayOptions } from \"./overlay.types\";\n\n\n@Injectable({ providedIn: \"root\" })\nexport class UiOverlayPositioner {\n readonly position = (\n reference: HTMLElement,\n overlay: HTMLElement,\n options: UiOverlayOptions\n ) => computePosition(reference, overlay, {\n placement: options.placement,\n strategy: \"fixed\",\n middleware: [\n offset(options.offset),\n flip({ padding: options.viewportPadding }),\n shift({ padding: options.viewportPadding })\n ]\n });\n\n readonly watch = (\n reference: HTMLElement,\n overlay: HTMLElement,\n update: () => void\n ) => autoUpdate(reference, overlay, update);\n}\n","import { DestroyRef, inject, Injectable } from '@angular/core';\n\nimport { UiOverlayStackEntry } from './overlay.types';\n\n\n/** Tracks open overlays so only the top one reacts to outside clicks and Escape. */\n@Injectable({ providedIn: 'root' })\nexport class UiOverlayStack {\n private readonly entries: UiOverlayStackEntry[] = [];\n\n constructor() {\n document.addEventListener('click', this.onDocumentClick);\n document.addEventListener('keydown', this.onKeyDown);\n\n inject(DestroyRef).onDestroy(() => {\n document.removeEventListener('click', this.onDocumentClick);\n document.removeEventListener('keydown', this.onKeyDown);\n });\n }\n\n readonly push = (entry: UiOverlayStackEntry) => {\n this.remove(entry);\n this.entries.push(entry);\n };\n\n readonly remove = (entry: UiOverlayStackEntry) => {\n const index = this.entries.indexOf(entry);\n if (index !== -1) { this.entries.splice(index, 1); }\n };\n\n private readonly top = () => this.entries.at(-1);\n\n private readonly onDocumentClick = (event: MouseEvent) =>\n this.top()?.onDocumentClick(event);\n\n private readonly onKeyDown = (event: KeyboardEvent) =>\n this.top()?.onKeyDown(event);\n}\n","import {\n Component,\n effect,\n ElementRef,\n inject,\n input,\n WritableSignal\n} from '@angular/core';\n\nimport { Placement } from '@floating-ui/dom';\n\nimport { UiOverlayPositioner } from './overlay.positioner';\nimport { UiOverlayStack } from './overlay.stack';\nimport {\n UiOverlayCloseBehaviour,\n UiOverlayMatchWidth,\n UiOverlayStackEntry\n} from './overlay.types';\n\n\n@Component({\n selector: 'ui-overlay',\n exportAs: 'uiOverlay',\n template: '<ng-content />',\n host: { style: 'display: contents;' }\n})\nexport class UiOverlayComponent implements UiOverlayStackEntry {\n private readonly positioner = inject(UiOverlayPositioner);\n private readonly stack = inject(UiOverlayStack);\n\n readonly content = input<ElementRef<HTMLInputElement>>();\n readonly anchor = input<ElementRef<HTMLElement>>();\n readonly closeBehaviour = input<UiOverlayCloseBehaviour>(\n 'whenClickAnywhere'\n );\n\n readonly isOpen = input.required<WritableSignal<boolean>>();\n\n readonly placement = input<Placement>('bottom-start');\n readonly offset = input<number>(0);\n readonly viewportPadding = input<number>(0);\n\n /** Forces this element to match the width of its anchor element. */\n readonly matchWidth = input<UiOverlayMatchWidth | null>(null);\n\n constructor() {\n effect(onCleanup => {\n if (!this.isOpen()()) { return; }\n\n this.stack.push(this);\n onCleanup(() => this.stack.remove(this));\n });\n\n effect(onCleanup => {\n const anchor = this.anchor();\n const content = this.content();\n\n if (!this.isOpen()() || !anchor || !content) { return; }\n\n const referenceElement = anchor.nativeElement;\n const floatingElement = content.nativeElement;\n\n const update = () => {\n const matchWidth = this.matchWidth();\n\n if (matchWidth) {\n const width = `${referenceElement.offsetWidth}px`;\n\n if (matchWidth === 'both') {\n floatingElement.style.maxWidth = width;\n floatingElement.style.minWidth = width;\n } else {\n floatingElement.style[matchWidth] = width;\n }\n }\n\n return this.positioner.position(\n referenceElement,\n floatingElement,\n {\n placement: this.placement(),\n offset: this.offset(),\n viewportPadding: this.viewportPadding()\n }\n ).then(({ x, y }) =>\n Object.assign(floatingElement.style, {\n left: `${x}px`,\n top: `${y}px`\n })\n );\n };\n\n update();\n\n onCleanup(\n this.positioner.watch(referenceElement, floatingElement, update)\n );\n });\n }\n\n private readonly close = () => this.isOpen().set(false);\n\n readonly onDocumentClick = (event: MouseEvent) => {\n const behaviour = this.closeBehaviour();\n if (behaviour === 'none') { return; }\n\n const target = event.target;\n if (!(target instanceof Node)) { return; }\n\n const anchorElement = this.anchor()?.nativeElement;\n const contentElement = this.content()?.nativeElement;\n const isInsideAnchor = anchorElement?.contains(target) ?? false;\n const isInsideContent = contentElement?.contains(target) ?? false;\n\n // Anchor can wrap the content too, so only treat a click as \"on the\n // anchor\" (e.g. the trigger button) when it's not inside the content.\n if (isInsideAnchor && !isInsideContent) { return; }\n\n if (behaviour === 'whenClickAnywhere') {\n this.close();\n return;\n }\n\n if (!isInsideContent) {\n this.close();\n }\n };\n\n readonly onKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') { this.close(); }\n };\n}\n"],"mappings":";;;AAQA,IAAa,sBAAb,MAAa,oBAAmB;CACnB,YACL,WACA,SACA,YACC,gBAAgB,WAAW,SAAS;EACrC,WAAW,QAAQ;EACnB,UAAU;EACV,YAAY;GACR,OAAO,QAAQ,MAAM;GACrB,KAAK,EAAG,SAAS,QAAQ,gBAAe,CAAE;GAC1C,MAAM,EAAE,SAAS,QAAQ,gBAAe,CAAE;EAC7C;CACJ,CAAA;CAEQ,SACL,WACA,SACA,WACC,WAAW,WAAW,SAAS,MAAM;CAnBjC,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAmB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAnB,OAAA,QAAA,GAAA,sBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAmB,YADN;CAAM,CAAA;;AACnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAD/B,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE;;;ACAlC,IAAa,iBAAb,MAAa,eAAc;CACN,UAAiC,CAAA;CAElD,cAAA;EACI,SAAS,iBAAiB,SAAS,KAAK,eAAe;EACvD,SAAS,iBAAiB,WAAW,KAAK,SAAS;EAEnD,OAAO,UAAU,CAAC,CAAC,gBAAe;GAC9B,SAAS,oBAAoB,SAAS,KAAK,eAAe;GAC1D,SAAS,oBAAoB,WA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AA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,QAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,iBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,YAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,MAAA,EAAA,gBAAA,qBAAA;EAAA,UAAA,CAAA,WAAA;EAAA,UAAA;EAAA,UAHjB;EAAgB,UAAA;CAAA,CAAA;;AAGjB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA;EAN9B,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,UAAU;GACV,UAAU;GACV,MAAM,EAAE,OAAO,qBAAoB;EACtC,CAAA"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, computed, input, model } from "@angular/core";
|
|
3
|
+
import { UiButtonComponent } from "@area8975/ui/button";
|
|
4
|
+
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
5
|
+
import { heroChevronLeft, heroChevronRight } from "@ng-icons/heroicons/outline";
|
|
6
|
+
var UiPaginationComponent = class UiPaginationComponent {
|
|
7
|
+
page = model(0, ...ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []);
|
|
8
|
+
totalPages = input.required(...ngDevMode ? [{ debugName: "totalPages" }] : /* istanbul ignore next */ []);
|
|
9
|
+
isFirstPage = computed(() => this.page() <= 0, ...ngDevMode ? [{ debugName: "isFirstPage" }] : /* istanbul ignore next */ []);
|
|
10
|
+
isLastPage = computed(() => this.page() >= this.totalPages() - 1, ...ngDevMode ? [{ debugName: "isLastPage" }] : /* istanbul ignore next */ []);
|
|
11
|
+
items = computed(() => {
|
|
12
|
+
const total = this.totalPages();
|
|
13
|
+
const current = this.page();
|
|
14
|
+
const items = [];
|
|
15
|
+
for (let i = 0; i < total; i++) {
|
|
16
|
+
const isEdge = i === 0 || i === total - 1;
|
|
17
|
+
const isNearCurrent = Math.abs(i - current) <= 1;
|
|
18
|
+
const hidesOnePage = i === 1 && current === 3 || i === total - 2 && current === total - 4;
|
|
19
|
+
if (isEdge || isNearCurrent || hidesOnePage) items.push(i);
|
|
20
|
+
else if (items.at(-1) !== "ellipsis") items.push("ellipsis");
|
|
21
|
+
}
|
|
22
|
+
return items;
|
|
23
|
+
}, ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
24
|
+
pageLabel(page) {
|
|
25
|
+
const label = `Page ${page + 1}`;
|
|
26
|
+
return page === this.page() ? `${label}, current page` : label;
|
|
27
|
+
}
|
|
28
|
+
goToPage(page) {
|
|
29
|
+
if (page < 0 || page >= this.totalPages()) return;
|
|
30
|
+
this.page.set(page);
|
|
31
|
+
}
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
33
|
+
minVersion: "12.0.0",
|
|
34
|
+
version: "22.2.1",
|
|
35
|
+
ngImport: i0,
|
|
36
|
+
type: UiPaginationComponent,
|
|
37
|
+
deps: [],
|
|
38
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
39
|
+
});
|
|
40
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
41
|
+
minVersion: "17.0.0",
|
|
42
|
+
version: "22.2.1",
|
|
43
|
+
type: UiPaginationComponent,
|
|
44
|
+
isStandalone: true,
|
|
45
|
+
selector: "ui-pagination",
|
|
46
|
+
inputs: {
|
|
47
|
+
page: {
|
|
48
|
+
classPropertyName: "page",
|
|
49
|
+
publicName: "page",
|
|
50
|
+
isSignal: true,
|
|
51
|
+
isRequired: false,
|
|
52
|
+
transformFunction: null
|
|
53
|
+
},
|
|
54
|
+
totalPages: {
|
|
55
|
+
classPropertyName: "totalPages",
|
|
56
|
+
publicName: "totalPages",
|
|
57
|
+
isSignal: true,
|
|
58
|
+
isRequired: true,
|
|
59
|
+
transformFunction: null
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
outputs: { page: "pageChange" },
|
|
63
|
+
host: {
|
|
64
|
+
attributes: {
|
|
65
|
+
"role": "navigation",
|
|
66
|
+
"aria-label": "Pagination"
|
|
67
|
+
},
|
|
68
|
+
classAttribute: "ui-pagination"
|
|
69
|
+
},
|
|
70
|
+
providers: [provideIcons({
|
|
71
|
+
heroChevronLeft,
|
|
72
|
+
heroChevronRight
|
|
73
|
+
})],
|
|
74
|
+
ngImport: i0,
|
|
75
|
+
template: "<ui-button\n appearance=\"none\"\n classes=\"ui-pagination--goto-btn ui-text-body\"\n [disabled]=\"isFirstPage()\"\n (click)=\"goToPage(page() - 1)\"\n>\n <ng-icon name=\"heroChevronLeft\" class=\"shrink-0\" />\n</ui-button>\n\n@for (item of items(); track $index) {\n @if (item === 'ellipsis') {\n <span class=\"ui-text-body ui-pagination-ellipsis\">…</span>\n } @else {\n <ui-button\n appearance=\"none\"\n classes=\"ui-pagination--goto-btn ui-text-body\"\n [class.active]=\"item === page()\"\n (click)=\"goToPage(item)\"\n >\n {{ item + 1 }}\n </ui-button>\n }\n}\n\n<ui-button\n appearance=\"none\"\n classes=\"ui-pagination--goto-btn ui-text-body\"\n [disabled]=\"isLastPage()\"\n (click)=\"goToPage(page() + 1)\"\n>\n <ng-icon name=\"heroChevronRight\" class=\"shrink-0\" />\n</ui-button>\n",
|
|
76
|
+
styles: ["@layer properties;:host(.ui-pagination){display:flex;align-items:center;column-gap:var(--spacing, .25rem)}::ng-deep .ui-pagination--goto-btn{min-height:calc(var(--spacing, .25rem) * 9.5);min-width:calc(var(--spacing, .25rem) * 9.5);justify-content:center!important;border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px;border-color:transparent!important;padding-inline:calc(var(--spacing, .25rem) * 2.5)!important;padding-block:calc(var(--spacing, .25rem) * 2)!important;color:var(--foreground)!important}::ng-deep .active>.ui-pagination--goto-btn{border-color:var(--border-line-2)!important}.ui-pagination-page{min-width:calc(var(--spacing, .25rem) * 9);justify-content:center}.ui-pagination-ellipsis{display:inline-flex;min-width:calc(var(--spacing, .25rem) * 9);justify-content:center;color:var(--muted-foreground-1)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
77
|
+
dependencies: [{
|
|
78
|
+
kind: "component",
|
|
79
|
+
type: UiButtonComponent,
|
|
80
|
+
selector: "ui-button",
|
|
81
|
+
inputs: [
|
|
82
|
+
"appearance",
|
|
83
|
+
"intent",
|
|
84
|
+
"size",
|
|
85
|
+
"classes",
|
|
86
|
+
"type",
|
|
87
|
+
"ariaLabel",
|
|
88
|
+
"disabled",
|
|
89
|
+
"loading"
|
|
90
|
+
]
|
|
91
|
+
}, {
|
|
92
|
+
kind: "component",
|
|
93
|
+
type: NgIcon,
|
|
94
|
+
selector: "ng-icon",
|
|
95
|
+
inputs: [
|
|
96
|
+
"name",
|
|
97
|
+
"svg",
|
|
98
|
+
"size",
|
|
99
|
+
"strokeWidth",
|
|
100
|
+
"color"
|
|
101
|
+
]
|
|
102
|
+
}]
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
106
|
+
minVersion: "12.0.0",
|
|
107
|
+
version: "22.2.1",
|
|
108
|
+
ngImport: i0,
|
|
109
|
+
type: UiPaginationComponent,
|
|
110
|
+
decorators: [{
|
|
111
|
+
type: Component,
|
|
112
|
+
args: [{
|
|
113
|
+
selector: "ui-pagination",
|
|
114
|
+
imports: [UiButtonComponent, NgIcon],
|
|
115
|
+
host: {
|
|
116
|
+
role: "navigation",
|
|
117
|
+
"aria-label": "Pagination",
|
|
118
|
+
class: "ui-pagination"
|
|
119
|
+
},
|
|
120
|
+
providers: [provideIcons({
|
|
121
|
+
heroChevronLeft,
|
|
122
|
+
heroChevronRight
|
|
123
|
+
})],
|
|
124
|
+
template: "<ui-button\n appearance=\"none\"\n classes=\"ui-pagination--goto-btn ui-text-body\"\n [disabled]=\"isFirstPage()\"\n (click)=\"goToPage(page() - 1)\"\n>\n <ng-icon name=\"heroChevronLeft\" class=\"shrink-0\" />\n</ui-button>\n\n@for (item of items(); track $index) {\n @if (item === 'ellipsis') {\n <span class=\"ui-text-body ui-pagination-ellipsis\">…</span>\n } @else {\n <ui-button\n appearance=\"none\"\n classes=\"ui-pagination--goto-btn ui-text-body\"\n [class.active]=\"item === page()\"\n (click)=\"goToPage(item)\"\n >\n {{ item + 1 }}\n </ui-button>\n }\n}\n\n<ui-button\n appearance=\"none\"\n classes=\"ui-pagination--goto-btn ui-text-body\"\n [disabled]=\"isLastPage()\"\n (click)=\"goToPage(page() + 1)\"\n>\n <ng-icon name=\"heroChevronRight\" class=\"shrink-0\" />\n</ui-button>\n",
|
|
125
|
+
styles: ["@layer properties;:host(.ui-pagination){display:flex;align-items:center;column-gap:var(--spacing, .25rem)}::ng-deep .ui-pagination--goto-btn{min-height:calc(var(--spacing, .25rem) * 9.5);min-width:calc(var(--spacing, .25rem) * 9.5);justify-content:center!important;border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px;border-color:transparent!important;padding-inline:calc(var(--spacing, .25rem) * 2.5)!important;padding-block:calc(var(--spacing, .25rem) * 2)!important;color:var(--foreground)!important}::ng-deep .active>.ui-pagination--goto-btn{border-color:var(--border-line-2)!important}.ui-pagination-page{min-width:calc(var(--spacing, .25rem) * 9);justify-content:center}.ui-pagination-ellipsis{display:inline-flex;min-width:calc(var(--spacing, .25rem) * 9);justify-content:center;color:var(--muted-foreground-1)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
126
|
+
}]
|
|
127
|
+
}],
|
|
128
|
+
propDecorators: {
|
|
129
|
+
page: [{
|
|
130
|
+
type: i0.Input,
|
|
131
|
+
args: [{
|
|
132
|
+
isSignal: true,
|
|
133
|
+
alias: "page",
|
|
134
|
+
required: false
|
|
135
|
+
}]
|
|
136
|
+
}, {
|
|
137
|
+
type: i0.Output,
|
|
138
|
+
args: ["pageChange"]
|
|
139
|
+
}],
|
|
140
|
+
totalPages: [{
|
|
141
|
+
type: i0.Input,
|
|
142
|
+
args: [{
|
|
143
|
+
isSignal: true,
|
|
144
|
+
alias: "totalPages",
|
|
145
|
+
required: true
|
|
146
|
+
}]
|
|
147
|
+
}]
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
export { UiPaginationComponent };
|
|
151
|
+
|
|
152
|
+
//# sourceMappingURL=area8975-ui-pagination.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area8975-ui-pagination.mjs","names":[],"sources":["../../../projects/ui/pagination/pagination.component.ts","../../../projects/ui/pagination/pagination.component.html"],"sourcesContent":["import { Component, computed, input, model } from '@angular/core';\n\nimport { UiButtonComponent } from '@area8975/ui/button';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { heroChevronLeft, heroChevronRight } from '@ng-icons/heroicons/outline';\n\nimport type { PaginationItem } from './pagination.types';\n\n\n@Component({\n selector: 'ui-pagination',\n templateUrl: './pagination.component.html',\n styleUrl: './pagination.component.css',\n imports: [UiButtonComponent, NgIcon],\n host: {\n role: 'navigation',\n 'aria-label': 'Pagination',\n class: 'ui-pagination'\n },\n providers: [provideIcons({ heroChevronLeft, heroChevronRight })]\n})\nexport class UiPaginationComponent {\n // zero-based, same as the table\n readonly page = model<number>(0);\n readonly totalPages = input.required<number>();\n\n readonly isFirstPage = computed(() => this.page() <= 0);\n readonly isLastPage = computed(() => this.page() >= this.totalPages() - 1);\n\n // first, last and the pages either side of the current one, with gaps collapsed\n readonly items = computed(() => {\n const total = this.totalPages();\n const current = this.page();\n const items: PaginationItem[] = [];\n\n for (let i = 0; i < total; i++) {\n const isEdge = i === 0 || i === total - 1;\n const isNearCurrent = Math.abs(i - current) <= 1;\n\n // no point hiding a single page behind an ellipsis\n const hidesOnePage = (i === 1 && current === 3) ||\n (i === total - 2 && current === total - 4);\n\n if (isEdge || isNearCurrent || hidesOnePage) {\n items.push(i);\n } else if (items.at(-1) !== 'ellipsis') {\n items.push('ellipsis');\n }\n }\n\n return items;\n });\n\n pageLabel(page: number): string {\n const label = `Page ${page + 1}`;\n\n return page === this.page() ? `${label}, current page` : label;\n }\n\n goToPage(page: number): void {\n if (page < 0 || page >= this.totalPages()) {\n return;\n }\n\n this.page.set(page);\n }\n}\n","<ui-button\n appearance=\"none\"\n classes=\"ui-pagination--goto-btn ui-text-body\"\n [disabled]=\"isFirstPage()\"\n (click)=\"goToPage(page() - 1)\"\n>\n <ng-icon name=\"heroChevronLeft\" class=\"shrink-0\" />\n</ui-button>\n\n@for (item of items(); track $index) {\n @if (item === 'ellipsis') {\n <span class=\"ui-text-body ui-pagination-ellipsis\">…</span>\n } @else {\n <ui-button\n appearance=\"none\"\n classes=\"ui-pagination--goto-btn ui-text-body\"\n [class.active]=\"item === page()\"\n (click)=\"goToPage(item)\"\n >\n {{ item + 1 }}\n </ui-button>\n }\n}\n\n<ui-button\n appearance=\"none\"\n classes=\"ui-pagination--goto-btn ui-text-body\"\n [disabled]=\"isLastPage()\"\n (click)=\"goToPage(page() + 1)\"\n>\n <ng-icon name=\"heroChevronRight\" class=\"shrink-0\" />\n</ui-button>\n"],"mappings":";;;;;AAqBA,IAAa,wBAAb,MAAa,sBAAqB;CAErB,OAAO,MAAc,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,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ArB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAqB,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,MAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,YAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,MAAA,aAAA;EAAA,MAAA;GAAA,YAAA;IAAA,QAAA;IAAA,cAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,WAFnB,CAAC,aAAa;GAAE;GAAiB;EAAgB,CAAE,CAAC;EAAC,UAAA;EAAA,UCnBpE;EAgCA,QAAA,CAAA,gsCAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MDnBc;GAAiB,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;EAAA,GAAA;GAAA,MAAA;GAAA,MAAE;GAAM,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;EAAA,CAAA;CAAA,CAAA;;AAQ1B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EAZjC,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAAe,SAGhB,CAAC,mBAAmB,MAAM;GAAC,MAC9B;IACF,MAAM;IACN,cAAc;IACd,OAAO;GACV;GAAA,WACU,CAAC,aAAa;IAAE;IAAiB;GAAgB,CAAE,CAAC;GAAC,UAAA;GAAA,QAAA,CAAA,gsCAAA;EAAA,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, computed, inject, input } from "@angular/core";
|
|
3
|
+
import { PRIVATE_TEXT_LABEL, PRIVATE_TEXT_MASK, UI_PRIVACY } from "@area8975/ui/format";
|
|
4
|
+
var UiPrivateComponent = class UiPrivateComponent {
|
|
5
|
+
privacy = inject(UI_PRIVACY);
|
|
6
|
+
text = input.required(...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
7
|
+
mask = PRIVATE_TEXT_MASK;
|
|
8
|
+
label = PRIVATE_TEXT_LABEL;
|
|
9
|
+
masked = computed(() => this.privacy() !== "visible" && !!this.text(), ...ngDevMode ? [{ debugName: "masked" }] : /* istanbul ignore next */ []);
|
|
10
|
+
generatedClasses = computed(() => ["ui-private", this.masked() && "ui-private--masked"].filter(Boolean).join(" "), ...ngDevMode ? [{ debugName: "generatedClasses" }] : /* istanbul ignore next */ []);
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "22.2.1",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: UiPrivateComponent,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
18
|
+
});
|
|
19
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
20
|
+
minVersion: "17.0.0",
|
|
21
|
+
version: "22.2.1",
|
|
22
|
+
type: UiPrivateComponent,
|
|
23
|
+
isStandalone: true,
|
|
24
|
+
selector: "ui-private",
|
|
25
|
+
inputs: { text: {
|
|
26
|
+
classPropertyName: "text",
|
|
27
|
+
publicName: "text",
|
|
28
|
+
isSignal: true,
|
|
29
|
+
isRequired: true,
|
|
30
|
+
transformFunction: null
|
|
31
|
+
} },
|
|
32
|
+
host: { properties: { "class": "generatedClasses()" } },
|
|
33
|
+
ngImport: i0,
|
|
34
|
+
template: "@if (masked()) {\n <span aria-hidden=\"true\">{{ mask }}</span>\n <span class=\"sr-only\">{{ label }}</span>\n} @else {{{ text() }}}\n",
|
|
35
|
+
styles: [":host{position:relative}:host(.ui-private--masked){white-space:nowrap}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
39
|
+
minVersion: "12.0.0",
|
|
40
|
+
version: "22.2.1",
|
|
41
|
+
ngImport: i0,
|
|
42
|
+
type: UiPrivateComponent,
|
|
43
|
+
decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{
|
|
46
|
+
selector: "ui-private",
|
|
47
|
+
host: { "[class]": "generatedClasses()" },
|
|
48
|
+
template: "@if (masked()) {\n <span aria-hidden=\"true\">{{ mask }}</span>\n <span class=\"sr-only\">{{ label }}</span>\n} @else {{{ text() }}}\n",
|
|
49
|
+
styles: [":host{position:relative}:host(.ui-private--masked){white-space:nowrap}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
50
|
+
}]
|
|
51
|
+
}],
|
|
52
|
+
propDecorators: { text: [{
|
|
53
|
+
type: i0.Input,
|
|
54
|
+
args: [{
|
|
55
|
+
isSignal: true,
|
|
56
|
+
alias: "text",
|
|
57
|
+
required: true
|
|
58
|
+
}]
|
|
59
|
+
}] }
|
|
60
|
+
});
|
|
61
|
+
export { UiPrivateComponent };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=area8975-ui-private.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area8975-ui-private.mjs","names":[],"sources":["../../../projects/ui/private/private.component.ts","../../../projects/ui/private/private.component.html"],"sourcesContent":["import { Component, computed, inject, input } from '@angular/core';\n\nimport { PRIVATE_TEXT_LABEL, PRIVATE_TEXT_MASK, UI_PRIVACY } from '@area8975/ui/format';\n\n\n/**\n * Text that privacy mode masks, e.g. a transaction's description.\n */\n@Component({\n selector: 'ui-private',\n templateUrl: './private.component.html',\n styleUrl: './private.component.css',\n host: {\n '[class]': 'generatedClasses()'\n }\n})\nexport class UiPrivateComponent {\n private readonly privacy = inject(UI_PRIVACY);\n\n readonly text = input.required<string | null | undefined>();\n\n protected readonly mask = PRIVATE_TEXT_MASK;\n protected readonly label = PRIVATE_TEXT_LABEL;\n\n protected readonly masked = computed(() => this.privacy() !== 'visible' && !!this.text());\n\n readonly generatedClasses = computed(() =>\n [\n 'ui-private',\n this.masked() && 'ui-private--masked'\n ]\n .filter(Boolean)\n .join(' ')\n );\n}\n","@if (masked()) {\n <span aria-hidden=\"true\">{{ mask }}</span>\n <span class=\"sr-only\">{{ label }}</span>\n} @else {{{ text() }}}\n"],"mappings":";;;AAgBA,IAAa,qBAAb,MAAa,mBAAkB;CACV,UAAU,OAAO,UAAU;CAEnC,OAAO,MAAM,SAAqC,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAExC,OAAO;CACP,QAAQ;CAER,SAAS,eAAe,KAAK,QAAO,MAAO,aAAa,CAAC,CAAC,KAAK,KAAI,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAEhF,mBAAmB,eACxB,CACI,cACA,KAAK,OAAM,KAAM,oBACpB,CAAA,CACI,OAAO,OAAO,CAAC,CACf,KAAK,GAAG,GAChB,GAAA,YAAA,CAAA,EAAA,WAAA,mBAAA,CAAA,+BAAA,CAAA,CAAA;CAjBQ,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAkB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAlB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAkB,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,MAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,MAAA,EAAA,YAAA,EAAA,SAAA,qBAAA,EAAA;EAAA,UAAA;EAAA,UChB/B;EAIA,QAAA,CAAA,6IAAA;CAAA,CAAA;;ADYa,GAAA,yBAAA;CAAA,YAAA;CA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