ngx-core-components 0.0.8 → 0.1.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/README.md +193 -13
- package/barcodes/barcode/barcode.component.d.ts +19 -0
- package/barcodes/index.d.ts +5 -0
- package/barcodes/public-api.d.ts +2 -0
- package/barcodes/qr-code/qr-code.component.d.ts +17 -0
- package/buttons/button/button.component.d.ts +17 -0
- package/buttons/button-group/button-group.component.d.ts +8 -0
- package/buttons/chip/chip.component.d.ts +19 -0
- package/buttons/dropdown-button/dropdown-button.component.d.ts +21 -0
- package/buttons/index.d.ts +5 -0
- package/buttons/public-api.d.ts +9 -0
- package/buttons/split-button/split-button.component.d.ts +22 -0
- package/feedback/badge/badge.component.d.ts +13 -0
- package/feedback/index.d.ts +5 -0
- package/feedback/notification/notification.service.d.ts +39 -0
- package/feedback/progress-bar/progress-bar.component.d.ts +15 -0
- package/feedback/public-api.d.ts +8 -0
- package/feedback/skeleton/skeleton.component.d.ts +11 -0
- package/fesm2022/ngx-core-components-barcodes.mjs +222 -0
- package/fesm2022/ngx-core-components-barcodes.mjs.map +1 -0
- package/fesm2022/ngx-core-components-buttons.mjs +255 -0
- package/fesm2022/ngx-core-components-buttons.mjs.map +1 -0
- package/fesm2022/ngx-core-components-feedback.mjs +286 -0
- package/fesm2022/ngx-core-components-feedback.mjs.map +1 -0
- package/fesm2022/ngx-core-components-inputs.mjs +634 -1
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +407 -0
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -0
- package/fesm2022/ngx-core-components-navigation.mjs +184 -0
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -0
- package/fesm2022/ngx-core-components.mjs +6 -1
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/inputs/color-picker/color-picker.component.d.ts +14 -0
- package/inputs/date-range-picker/date-range-picker.component.d.ts +24 -0
- package/inputs/numeric-textbox/numeric-textbox.component.d.ts +19 -0
- package/inputs/public-api.d.ts +8 -0
- package/inputs/rating/rating.component.d.ts +14 -0
- package/inputs/slider/slider.component.d.ts +26 -0
- package/inputs/switch/switch.component.d.ts +12 -0
- package/inputs/textarea/textarea.component.d.ts +18 -0
- package/inputs/time-picker/time-picker.component.d.ts +20 -0
- package/layout/accordion/accordion.component.d.ts +17 -0
- package/layout/card/card.component.d.ts +16 -0
- package/layout/index.d.ts +5 -0
- package/layout/public-api.d.ts +8 -0
- package/layout/splitter/splitter.component.d.ts +14 -0
- package/layout/stepper/stepper.component.d.ts +20 -0
- package/layout/tab-strip/tab-strip.component.d.ts +22 -0
- package/navigation/breadcrumb/breadcrumb.component.d.ts +14 -0
- package/navigation/index.d.ts +5 -0
- package/navigation/menu/menu.component.d.ts +20 -0
- package/navigation/public-api.d.ts +4 -0
- package/package.json +21 -1
- package/public-api.d.ts +10 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, Component, signal, createComponent, Injectable } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
class BadgeComponent {
|
|
6
|
+
content = input('');
|
|
7
|
+
variant = input('primary');
|
|
8
|
+
dot = input(false);
|
|
9
|
+
positioned = input(false);
|
|
10
|
+
position = input('top-right');
|
|
11
|
+
ariaLabel = input('');
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: BadgeComponent, isStandalone: true, selector: "ngx-badge", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, dot: { classPropertyName: "dot", publicName: "dot", isSignal: true, isRequired: false, transformFunction: null }, positioned: { classPropertyName: "positioned", publicName: "positioned", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
14
|
+
<span class="ngx-badge-host" [class.positioned]="positioned()">
|
|
15
|
+
<ng-content />
|
|
16
|
+
<span
|
|
17
|
+
class="ngx-badge"
|
|
18
|
+
[class]="'ngx-badge-' + variant()"
|
|
19
|
+
[class.badge-dot]="dot()"
|
|
20
|
+
[class.badge-positioned]="positioned()"
|
|
21
|
+
[class]="positioned() ? 'badge-pos-' + position() : ''"
|
|
22
|
+
[attr.aria-label]="ariaLabel() || content()"
|
|
23
|
+
>
|
|
24
|
+
@if (!dot()) { {{ content() }} }
|
|
25
|
+
</span>
|
|
26
|
+
</span>
|
|
27
|
+
`, isInline: true, styles: [":host{display:inline-block}.ngx-badge-host{position:relative;display:inline-flex}.ngx-badge{display:inline-flex;align-items:center;justify-content:center;padding:2px 7px;font-size:11px;font-weight:700;border-radius:999px;line-height:1.4;white-space:nowrap;font-family:inherit;min-width:20px}.badge-dot{width:8px;height:8px;padding:0;min-width:0;border-radius:50%}.badge-positioned{position:absolute}.badge-pos-top-right{top:-6px;right:-6px}.badge-pos-top-left{top:-6px;left:-6px}.badge-pos-bottom-right{bottom:-6px;right:-6px}.badge-pos-bottom-left{bottom:-6px;left:-6px}.ngx-badge-primary{background:var(--ngx-badge-primary-bg, #1a73e8);color:#fff}.ngx-badge-secondary{background:var(--ngx-badge-secondary-bg, #6c757d);color:#fff}.ngx-badge-success{background:var(--ngx-badge-success-bg, #27ae60);color:#fff}.ngx-badge-danger{background:var(--ngx-badge-danger-bg, #e74c3c);color:#fff}.ngx-badge-warning{background:var(--ngx-badge-warning-bg, #f39c12);color:#fff}.ngx-badge-info{background:var(--ngx-badge-info-bg, #17a2b8);color:#fff}.ngx-badge-light{background:var(--ngx-badge-light-bg, #f8f9fa);color:#212529}.ngx-badge-dark{background:var(--ngx-badge-dark-bg, #343a40);color:#fff}\n"] });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BadgeComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'ngx-badge', standalone: true, template: `
|
|
32
|
+
<span class="ngx-badge-host" [class.positioned]="positioned()">
|
|
33
|
+
<ng-content />
|
|
34
|
+
<span
|
|
35
|
+
class="ngx-badge"
|
|
36
|
+
[class]="'ngx-badge-' + variant()"
|
|
37
|
+
[class.badge-dot]="dot()"
|
|
38
|
+
[class.badge-positioned]="positioned()"
|
|
39
|
+
[class]="positioned() ? 'badge-pos-' + position() : ''"
|
|
40
|
+
[attr.aria-label]="ariaLabel() || content()"
|
|
41
|
+
>
|
|
42
|
+
@if (!dot()) { {{ content() }} }
|
|
43
|
+
</span>
|
|
44
|
+
</span>
|
|
45
|
+
`, styles: [":host{display:inline-block}.ngx-badge-host{position:relative;display:inline-flex}.ngx-badge{display:inline-flex;align-items:center;justify-content:center;padding:2px 7px;font-size:11px;font-weight:700;border-radius:999px;line-height:1.4;white-space:nowrap;font-family:inherit;min-width:20px}.badge-dot{width:8px;height:8px;padding:0;min-width:0;border-radius:50%}.badge-positioned{position:absolute}.badge-pos-top-right{top:-6px;right:-6px}.badge-pos-top-left{top:-6px;left:-6px}.badge-pos-bottom-right{bottom:-6px;right:-6px}.badge-pos-bottom-left{bottom:-6px;left:-6px}.ngx-badge-primary{background:var(--ngx-badge-primary-bg, #1a73e8);color:#fff}.ngx-badge-secondary{background:var(--ngx-badge-secondary-bg, #6c757d);color:#fff}.ngx-badge-success{background:var(--ngx-badge-success-bg, #27ae60);color:#fff}.ngx-badge-danger{background:var(--ngx-badge-danger-bg, #e74c3c);color:#fff}.ngx-badge-warning{background:var(--ngx-badge-warning-bg, #f39c12);color:#fff}.ngx-badge-info{background:var(--ngx-badge-info-bg, #17a2b8);color:#fff}.ngx-badge-light{background:var(--ngx-badge-light-bg, #f8f9fa);color:#212529}.ngx-badge-dark{background:var(--ngx-badge-dark-bg, #343a40);color:#fff}\n"] }]
|
|
46
|
+
}] });
|
|
47
|
+
|
|
48
|
+
class ProgressBarComponent {
|
|
49
|
+
value = input(0);
|
|
50
|
+
min = input(0);
|
|
51
|
+
max = input(100);
|
|
52
|
+
label = input('');
|
|
53
|
+
variant = input('primary');
|
|
54
|
+
height = input(8);
|
|
55
|
+
showValue = input(false);
|
|
56
|
+
indeterminate = input(false);
|
|
57
|
+
get clamp() { return () => Math.max(0, Math.min(100, ((this.value() - this.min()) / (this.max() - this.min())) * 100)); }
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ProgressBarComponent, isStandalone: true, selector: "ngx-progress-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
60
|
+
<div class="ngx-progress-bar">
|
|
61
|
+
@if (label()) { <div class="progress-label">{{ label() }}</div> }
|
|
62
|
+
<div class="progress-track" [style.height.px]="height()">
|
|
63
|
+
@if (indeterminate()) {
|
|
64
|
+
<div class="progress-fill-indeterminate" [class]="'variant-' + variant()"></div>
|
|
65
|
+
} @else {
|
|
66
|
+
<div
|
|
67
|
+
class="progress-fill"
|
|
68
|
+
[class]="'variant-' + variant()"
|
|
69
|
+
[style.width.%]="clamp()"
|
|
70
|
+
role="progressbar"
|
|
71
|
+
[attr.aria-valuenow]="value()"
|
|
72
|
+
[attr.aria-valuemin]="min()"
|
|
73
|
+
[attr.aria-valuemax]="max()"
|
|
74
|
+
></div>
|
|
75
|
+
}
|
|
76
|
+
</div>
|
|
77
|
+
@if (showValue()) {
|
|
78
|
+
<div class="progress-value">{{ (clamp()).toFixed(0) }}%</div>
|
|
79
|
+
}
|
|
80
|
+
</div>
|
|
81
|
+
`, isInline: true, styles: [":host{display:block}.ngx-progress-bar{width:100%}.progress-label{font-size:12px;font-weight:600;color:var(--ngx-progress-label, #495057);margin-bottom:4px}.progress-track{background:var(--ngx-progress-track, #e9ecef);border-radius:999px;overflow:hidden;position:relative}.progress-fill{height:100%;border-radius:999px;transition:width .3s ease}.progress-value{font-size:11px;color:#6c757d;margin-top:3px;text-align:right}.progress-fill-indeterminate{height:100%;border-radius:999px;width:40%;animation:indeterminate 1.5s infinite ease-in-out;position:absolute}@keyframes indeterminate{0%{left:-40%}to{left:120%}}.variant-primary{background:var(--ngx-progress-primary, #1a73e8)}.variant-success{background:var(--ngx-progress-success, #27ae60)}.variant-danger{background:var(--ngx-progress-danger, #e74c3c)}.variant-warning{background:var(--ngx-progress-warning, #f39c12)}.variant-info{background:var(--ngx-progress-info, #17a2b8)}\n"] });
|
|
82
|
+
}
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
84
|
+
type: Component,
|
|
85
|
+
args: [{ selector: 'ngx-progress-bar', standalone: true, template: `
|
|
86
|
+
<div class="ngx-progress-bar">
|
|
87
|
+
@if (label()) { <div class="progress-label">{{ label() }}</div> }
|
|
88
|
+
<div class="progress-track" [style.height.px]="height()">
|
|
89
|
+
@if (indeterminate()) {
|
|
90
|
+
<div class="progress-fill-indeterminate" [class]="'variant-' + variant()"></div>
|
|
91
|
+
} @else {
|
|
92
|
+
<div
|
|
93
|
+
class="progress-fill"
|
|
94
|
+
[class]="'variant-' + variant()"
|
|
95
|
+
[style.width.%]="clamp()"
|
|
96
|
+
role="progressbar"
|
|
97
|
+
[attr.aria-valuenow]="value()"
|
|
98
|
+
[attr.aria-valuemin]="min()"
|
|
99
|
+
[attr.aria-valuemax]="max()"
|
|
100
|
+
></div>
|
|
101
|
+
}
|
|
102
|
+
</div>
|
|
103
|
+
@if (showValue()) {
|
|
104
|
+
<div class="progress-value">{{ (clamp()).toFixed(0) }}%</div>
|
|
105
|
+
}
|
|
106
|
+
</div>
|
|
107
|
+
`, styles: [":host{display:block}.ngx-progress-bar{width:100%}.progress-label{font-size:12px;font-weight:600;color:var(--ngx-progress-label, #495057);margin-bottom:4px}.progress-track{background:var(--ngx-progress-track, #e9ecef);border-radius:999px;overflow:hidden;position:relative}.progress-fill{height:100%;border-radius:999px;transition:width .3s ease}.progress-value{font-size:11px;color:#6c757d;margin-top:3px;text-align:right}.progress-fill-indeterminate{height:100%;border-radius:999px;width:40%;animation:indeterminate 1.5s infinite ease-in-out;position:absolute}@keyframes indeterminate{0%{left:-40%}to{left:120%}}.variant-primary{background:var(--ngx-progress-primary, #1a73e8)}.variant-success{background:var(--ngx-progress-success, #27ae60)}.variant-danger{background:var(--ngx-progress-danger, #e74c3c)}.variant-warning{background:var(--ngx-progress-warning, #f39c12)}.variant-info{background:var(--ngx-progress-info, #17a2b8)}\n"] }]
|
|
108
|
+
}] });
|
|
109
|
+
|
|
110
|
+
class SkeletonComponent {
|
|
111
|
+
shape = input('rect');
|
|
112
|
+
size = input(40);
|
|
113
|
+
width = input('100%');
|
|
114
|
+
height = input('16px');
|
|
115
|
+
lines = input(['100%', '80%', '60%']);
|
|
116
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: SkeletonComponent, isStandalone: true, selector: "ngx-skeleton", inputs: { shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, lines: { classPropertyName: "lines", publicName: "lines", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
118
|
+
@if (shape() === 'card') {
|
|
119
|
+
<div class="skeleton-card">
|
|
120
|
+
<div class="skeleton-rect" [style.height.px]="160"></div>
|
|
121
|
+
<div class="skeleton-card-body">
|
|
122
|
+
<div class="skeleton-text" [style.width]="'70%'"></div>
|
|
123
|
+
<div class="skeleton-text" [style.width]="'90%'"></div>
|
|
124
|
+
<div class="skeleton-text" [style.width]="'50%'"></div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
} @else if (shape() === 'circle') {
|
|
128
|
+
<div class="skeleton-circle" [style.width.px]="size()" [style.height.px]="size()"></div>
|
|
129
|
+
} @else if (shape() === 'text') {
|
|
130
|
+
<div class="skeleton-text-block">
|
|
131
|
+
@for (line of lines(); track $index) {
|
|
132
|
+
<div class="skeleton-text" [style.width]="line"></div>
|
|
133
|
+
}
|
|
134
|
+
</div>
|
|
135
|
+
} @else {
|
|
136
|
+
<div class="skeleton-rect" [style.width]="width()" [style.height]="height()"></div>
|
|
137
|
+
}
|
|
138
|
+
`, isInline: true, styles: [":host{display:block}.skeleton-circle,.skeleton-rect,.skeleton-text,.skeleton-card-body{background:var(--ngx-skeleton-bg, #e9ecef);border-radius:4px;animation:shimmer 1.4s infinite;background-size:200% 100%;background-image:linear-gradient(90deg,var(--ngx-skeleton-bg, #e9ecef) 0%,var(--ngx-skeleton-highlight, #f8f9fa) 50%,var(--ngx-skeleton-bg, #e9ecef) 100%)}.skeleton-circle{border-radius:50%}.skeleton-text{height:14px;margin-bottom:8px;border-radius:4px}.skeleton-text:last-child{margin-bottom:0}.skeleton-rect{border-radius:6px}.skeleton-card{border-radius:8px;overflow:hidden}.skeleton-card-body{background:none;padding:12px}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}\n"] });
|
|
139
|
+
}
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SkeletonComponent, decorators: [{
|
|
141
|
+
type: Component,
|
|
142
|
+
args: [{ selector: 'ngx-skeleton', standalone: true, template: `
|
|
143
|
+
@if (shape() === 'card') {
|
|
144
|
+
<div class="skeleton-card">
|
|
145
|
+
<div class="skeleton-rect" [style.height.px]="160"></div>
|
|
146
|
+
<div class="skeleton-card-body">
|
|
147
|
+
<div class="skeleton-text" [style.width]="'70%'"></div>
|
|
148
|
+
<div class="skeleton-text" [style.width]="'90%'"></div>
|
|
149
|
+
<div class="skeleton-text" [style.width]="'50%'"></div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
} @else if (shape() === 'circle') {
|
|
153
|
+
<div class="skeleton-circle" [style.width.px]="size()" [style.height.px]="size()"></div>
|
|
154
|
+
} @else if (shape() === 'text') {
|
|
155
|
+
<div class="skeleton-text-block">
|
|
156
|
+
@for (line of lines(); track $index) {
|
|
157
|
+
<div class="skeleton-text" [style.width]="line"></div>
|
|
158
|
+
}
|
|
159
|
+
</div>
|
|
160
|
+
} @else {
|
|
161
|
+
<div class="skeleton-rect" [style.width]="width()" [style.height]="height()"></div>
|
|
162
|
+
}
|
|
163
|
+
`, styles: [":host{display:block}.skeleton-circle,.skeleton-rect,.skeleton-text,.skeleton-card-body{background:var(--ngx-skeleton-bg, #e9ecef);border-radius:4px;animation:shimmer 1.4s infinite;background-size:200% 100%;background-image:linear-gradient(90deg,var(--ngx-skeleton-bg, #e9ecef) 0%,var(--ngx-skeleton-highlight, #f8f9fa) 50%,var(--ngx-skeleton-bg, #e9ecef) 100%)}.skeleton-circle{border-radius:50%}.skeleton-text{height:14px;margin-bottom:8px;border-radius:4px}.skeleton-text:last-child{margin-bottom:0}.skeleton-rect{border-radius:6px}.skeleton-card{border-radius:8px;overflow:hidden}.skeleton-card-body{background:none;padding:12px}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}\n"] }]
|
|
164
|
+
}] });
|
|
165
|
+
|
|
166
|
+
let nextId = 0;
|
|
167
|
+
class NotificationContainerComponent {
|
|
168
|
+
items = signal([]);
|
|
169
|
+
icons = { success: '✅', error: '❌', info: 'ℹ️', warning: '⚠️' };
|
|
170
|
+
ngOnInit() { }
|
|
171
|
+
add(opts) {
|
|
172
|
+
const id = ++nextId;
|
|
173
|
+
const item = {
|
|
174
|
+
id, visible: false,
|
|
175
|
+
message: opts.message,
|
|
176
|
+
type: opts.type ?? 'info',
|
|
177
|
+
title: opts.title ?? '',
|
|
178
|
+
duration: opts.duration ?? 4000,
|
|
179
|
+
closable: opts.closable ?? true,
|
|
180
|
+
position: opts.position ?? 'top-right'
|
|
181
|
+
};
|
|
182
|
+
this.items.update(arr => [...arr, item]);
|
|
183
|
+
setTimeout(() => this.items.update(arr => arr.map(n => n.id === id ? { ...n, visible: true } : n)), 10);
|
|
184
|
+
if (item.duration > 0) {
|
|
185
|
+
setTimeout(() => this.remove(id), item.duration);
|
|
186
|
+
}
|
|
187
|
+
return id;
|
|
188
|
+
}
|
|
189
|
+
remove(id) {
|
|
190
|
+
this.items.update(arr => arr.map(n => n.id === id ? { ...n, visible: false } : n));
|
|
191
|
+
setTimeout(() => this.items.update(arr => arr.filter(n => n.id !== id)), 300);
|
|
192
|
+
}
|
|
193
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NotificationContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
194
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: NotificationContainerComponent, isStandalone: true, selector: "ngx-notification-container", ngImport: i0, template: `
|
|
195
|
+
@for (n of items(); track n.id) {
|
|
196
|
+
<div class="notification" [class]="'notif-' + n.type" [class.visible]="n.visible" [attr.role]="n.type === 'error' ? 'alert' : 'status'">
|
|
197
|
+
<span class="notif-icon">{{ icons[n.type] }}</span>
|
|
198
|
+
<div class="notif-body">
|
|
199
|
+
@if (n.title) { <div class="notif-title">{{ n.title }}</div> }
|
|
200
|
+
<div class="notif-msg">{{ n.message }}</div>
|
|
201
|
+
</div>
|
|
202
|
+
@if (n.closable) {
|
|
203
|
+
<button class="notif-close" (click)="remove(n.id)" aria-label="Close">×</button>
|
|
204
|
+
}
|
|
205
|
+
</div>
|
|
206
|
+
}
|
|
207
|
+
`, isInline: true, styles: [":host{position:fixed;z-index:10000;display:flex;flex-direction:column;gap:10px;padding:16px;pointer-events:none}.notification{display:flex;align-items:flex-start;gap:10px;min-width:280px;max-width:380px;padding:12px 14px;border-radius:var(--ngx-notif-radius, 8px);box-shadow:0 4px 20px #00000026;pointer-events:all;font-family:inherit;font-size:13px;opacity:0;transform:translate(20px);transition:opacity .25s,transform .25s;border-left:4px solid transparent;background:var(--ngx-notif-bg, #fff);color:var(--ngx-notif-text, #212529)}.notification.visible{opacity:1;transform:translate(0)}.notif-success{border-left-color:#27ae60}.notif-error{border-left-color:#e74c3c}.notif-info{border-left-color:#1a73e8}.notif-warning{border-left-color:#f39c12}.notif-icon{font-size:18px;flex-shrink:0}.notif-body{flex:1}.notif-title{font-weight:700;margin-bottom:3px;font-size:13px}.notif-msg{color:#6c757d;font-size:12px}.notif-close{background:none;border:none;font-size:18px;cursor:pointer;color:#adb5bd;padding:0;line-height:1;margin-left:4px}.notif-close:hover{color:#495057}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
208
|
+
}
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NotificationContainerComponent, decorators: [{
|
|
210
|
+
type: Component,
|
|
211
|
+
args: [{ selector: 'ngx-notification-container', standalone: true, imports: [CommonModule], template: `
|
|
212
|
+
@for (n of items(); track n.id) {
|
|
213
|
+
<div class="notification" [class]="'notif-' + n.type" [class.visible]="n.visible" [attr.role]="n.type === 'error' ? 'alert' : 'status'">
|
|
214
|
+
<span class="notif-icon">{{ icons[n.type] }}</span>
|
|
215
|
+
<div class="notif-body">
|
|
216
|
+
@if (n.title) { <div class="notif-title">{{ n.title }}</div> }
|
|
217
|
+
<div class="notif-msg">{{ n.message }}</div>
|
|
218
|
+
</div>
|
|
219
|
+
@if (n.closable) {
|
|
220
|
+
<button class="notif-close" (click)="remove(n.id)" aria-label="Close">×</button>
|
|
221
|
+
}
|
|
222
|
+
</div>
|
|
223
|
+
}
|
|
224
|
+
`, styles: [":host{position:fixed;z-index:10000;display:flex;flex-direction:column;gap:10px;padding:16px;pointer-events:none}.notification{display:flex;align-items:flex-start;gap:10px;min-width:280px;max-width:380px;padding:12px 14px;border-radius:var(--ngx-notif-radius, 8px);box-shadow:0 4px 20px #00000026;pointer-events:all;font-family:inherit;font-size:13px;opacity:0;transform:translate(20px);transition:opacity .25s,transform .25s;border-left:4px solid transparent;background:var(--ngx-notif-bg, #fff);color:var(--ngx-notif-text, #212529)}.notification.visible{opacity:1;transform:translate(0)}.notif-success{border-left-color:#27ae60}.notif-error{border-left-color:#e74c3c}.notif-info{border-left-color:#1a73e8}.notif-warning{border-left-color:#f39c12}.notif-icon{font-size:18px;flex-shrink:0}.notif-body{flex:1}.notif-title{font-weight:700;margin-bottom:3px;font-size:13px}.notif-msg{color:#6c757d;font-size:12px}.notif-close{background:none;border:none;font-size:18px;cursor:pointer;color:#adb5bd;padding:0;line-height:1;margin-left:4px}.notif-close:hover{color:#495057}\n"] }]
|
|
225
|
+
}] });
|
|
226
|
+
const POSITIONS = {
|
|
227
|
+
'top-right': 'top:0;right:0',
|
|
228
|
+
'top-left': 'top:0;left:0',
|
|
229
|
+
'top-center': 'top:0;left:50%;transform:translateX(-50%)',
|
|
230
|
+
'bottom-right': 'bottom:0;right:0',
|
|
231
|
+
'bottom-left': 'bottom:0;left:0',
|
|
232
|
+
'bottom-center': 'bottom:0;left:50%;transform:translateX(-50%)'
|
|
233
|
+
};
|
|
234
|
+
class NotificationService {
|
|
235
|
+
appRef;
|
|
236
|
+
injector;
|
|
237
|
+
containers = new Map();
|
|
238
|
+
constructor(appRef, injector) {
|
|
239
|
+
this.appRef = appRef;
|
|
240
|
+
this.injector = injector;
|
|
241
|
+
}
|
|
242
|
+
getContainer(pos) {
|
|
243
|
+
if (this.containers.has(pos))
|
|
244
|
+
return this.containers.get(pos);
|
|
245
|
+
const ref = createComponent(NotificationContainerComponent, { environmentInjector: this.injector });
|
|
246
|
+
const el = ref.location.nativeElement;
|
|
247
|
+
el.setAttribute('style', POSITIONS[pos]);
|
|
248
|
+
document.body.appendChild(el);
|
|
249
|
+
this.appRef.attachView(ref.hostView);
|
|
250
|
+
this.containers.set(pos, ref.instance);
|
|
251
|
+
return ref.instance;
|
|
252
|
+
}
|
|
253
|
+
show(opts) {
|
|
254
|
+
const pos = opts.position ?? 'top-right';
|
|
255
|
+
return this.getContainer(pos).add(opts);
|
|
256
|
+
}
|
|
257
|
+
success(message, title, opts) {
|
|
258
|
+
return this.show({ ...opts, message, title, type: 'success' });
|
|
259
|
+
}
|
|
260
|
+
error(message, title, opts) {
|
|
261
|
+
return this.show({ ...opts, message, title, type: 'error' });
|
|
262
|
+
}
|
|
263
|
+
info(message, title, opts) {
|
|
264
|
+
return this.show({ ...opts, message, title, type: 'info' });
|
|
265
|
+
}
|
|
266
|
+
warning(message, title, opts) {
|
|
267
|
+
return this.show({ ...opts, message, title, type: 'warning' });
|
|
268
|
+
}
|
|
269
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NotificationService, deps: [{ token: i0.ApplicationRef }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
270
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NotificationService, providedIn: 'root' });
|
|
271
|
+
}
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NotificationService, decorators: [{
|
|
273
|
+
type: Injectable,
|
|
274
|
+
args: [{ providedIn: 'root' }]
|
|
275
|
+
}], ctorParameters: () => [{ type: i0.ApplicationRef }, { type: i0.EnvironmentInjector }] });
|
|
276
|
+
|
|
277
|
+
/*
|
|
278
|
+
* Public API Surface — secondary entry point: ngx-core-components/feedback
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Generated bundle index. Do not edit.
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
export { BadgeComponent, NotificationContainerComponent, NotificationService, ProgressBarComponent, SkeletonComponent };
|
|
286
|
+
//# sourceMappingURL=ngx-core-components-feedback.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-core-components-feedback.mjs","sources":["../../../projects/ngx-core-components/feedback/badge/badge.component.ts","../../../projects/ngx-core-components/feedback/progress-bar/progress-bar.component.ts","../../../projects/ngx-core-components/feedback/skeleton/skeleton.component.ts","../../../projects/ngx-core-components/feedback/notification/notification.service.ts","../../../projects/ngx-core-components/feedback/public-api.ts","../../../projects/ngx-core-components/feedback/ngx-core-components-feedback.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\nexport type BadgeVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';\nexport type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';\n\n@Component({\n selector: 'ngx-badge',\n standalone: true,\n template: `\n <span class=\"ngx-badge-host\" [class.positioned]=\"positioned()\">\n <ng-content />\n <span\n class=\"ngx-badge\"\n [class]=\"'ngx-badge-' + variant()\"\n [class.badge-dot]=\"dot()\"\n [class.badge-positioned]=\"positioned()\"\n [class]=\"positioned() ? 'badge-pos-' + position() : ''\"\n [attr.aria-label]=\"ariaLabel() || content()\"\n >\n @if (!dot()) { {{ content() }} }\n </span>\n </span>\n `,\n styles: [`\n :host { display: inline-block; }\n .ngx-badge-host { position: relative; display: inline-flex; }\n .ngx-badge {\n display: inline-flex; align-items: center; justify-content: center;\n padding: 2px 7px; font-size: 11px; font-weight: 700;\n border-radius: 999px; line-height: 1.4; white-space: nowrap; font-family: inherit;\n min-width: 20px;\n }\n .badge-dot { width: 8px; height: 8px; padding: 0; min-width: 0; border-radius: 50%; }\n .badge-positioned { position: absolute; }\n .badge-pos-top-right { top: -6px; right: -6px; }\n .badge-pos-top-left { top: -6px; left: -6px; }\n .badge-pos-bottom-right { bottom: -6px; right: -6px; }\n .badge-pos-bottom-left { bottom: -6px; left: -6px; }\n\n .ngx-badge-primary { background: var(--ngx-badge-primary-bg, #1a73e8); color: #fff; }\n .ngx-badge-secondary { background: var(--ngx-badge-secondary-bg, #6c757d); color: #fff; }\n .ngx-badge-success { background: var(--ngx-badge-success-bg, #27ae60); color: #fff; }\n .ngx-badge-danger { background: var(--ngx-badge-danger-bg, #e74c3c); color: #fff; }\n .ngx-badge-warning { background: var(--ngx-badge-warning-bg, #f39c12); color: #fff; }\n .ngx-badge-info { background: var(--ngx-badge-info-bg, #17a2b8); color: #fff; }\n .ngx-badge-light { background: var(--ngx-badge-light-bg, #f8f9fa); color: #212529; }\n .ngx-badge-dark { background: var(--ngx-badge-dark-bg, #343a40); color: #fff; }\n `]\n})\nexport class BadgeComponent {\n content = input<string | number>('');\n variant = input<BadgeVariant>('primary');\n dot = input(false);\n positioned = input(false);\n position = input<BadgePosition>('top-right');\n ariaLabel = input('');\n}\n","import { Component, input } from '@angular/core';\n\nexport type ProgressVariant = 'primary' | 'success' | 'danger' | 'warning' | 'info';\n\n@Component({\n selector: 'ngx-progress-bar',\n standalone: true,\n template: `\n <div class=\"ngx-progress-bar\">\n @if (label()) { <div class=\"progress-label\">{{ label() }}</div> }\n <div class=\"progress-track\" [style.height.px]=\"height()\">\n @if (indeterminate()) {\n <div class=\"progress-fill-indeterminate\" [class]=\"'variant-' + variant()\"></div>\n } @else {\n <div\n class=\"progress-fill\"\n [class]=\"'variant-' + variant()\"\n [style.width.%]=\"clamp()\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"value()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n ></div>\n }\n </div>\n @if (showValue()) {\n <div class=\"progress-value\">{{ (clamp()).toFixed(0) }}%</div>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-progress-bar { width: 100%; }\n .progress-label { font-size: 12px; font-weight: 600; color: var(--ngx-progress-label, #495057); margin-bottom: 4px; }\n .progress-track { background: var(--ngx-progress-track, #e9ecef); border-radius: 999px; overflow: hidden; position: relative; }\n .progress-fill { height: 100%; border-radius: 999px; transition: width 0.3s ease; }\n .progress-value { font-size: 11px; color: #6c757d; margin-top: 3px; text-align: right; }\n\n .progress-fill-indeterminate { height: 100%; border-radius: 999px; width: 40%; animation: indeterminate 1.5s infinite ease-in-out; position: absolute; }\n @keyframes indeterminate { 0% { left: -40%; } 100% { left: 120%; } }\n\n .variant-primary { background: var(--ngx-progress-primary, #1a73e8); }\n .variant-success { background: var(--ngx-progress-success, #27ae60); }\n .variant-danger { background: var(--ngx-progress-danger, #e74c3c); }\n .variant-warning { background: var(--ngx-progress-warning, #f39c12); }\n .variant-info { background: var(--ngx-progress-info, #17a2b8); }\n `]\n})\nexport class ProgressBarComponent {\n value = input(0);\n min = input(0);\n max = input(100);\n label = input('');\n variant = input<ProgressVariant>('primary');\n height = input(8);\n showValue = input(false);\n indeterminate = input(false);\n\n get clamp() { return () => Math.max(0, Math.min(100, ((this.value() - this.min()) / (this.max() - this.min())) * 100)); }\n}\n","import { Component, input } from '@angular/core';\n\nexport type SkeletonShape = 'text' | 'circle' | 'rect' | 'card';\n\n@Component({\n selector: 'ngx-skeleton',\n standalone: true,\n template: `\n @if (shape() === 'card') {\n <div class=\"skeleton-card\">\n <div class=\"skeleton-rect\" [style.height.px]=\"160\"></div>\n <div class=\"skeleton-card-body\">\n <div class=\"skeleton-text\" [style.width]=\"'70%'\"></div>\n <div class=\"skeleton-text\" [style.width]=\"'90%'\"></div>\n <div class=\"skeleton-text\" [style.width]=\"'50%'\"></div>\n </div>\n </div>\n } @else if (shape() === 'circle') {\n <div class=\"skeleton-circle\" [style.width.px]=\"size()\" [style.height.px]=\"size()\"></div>\n } @else if (shape() === 'text') {\n <div class=\"skeleton-text-block\">\n @for (line of lines(); track $index) {\n <div class=\"skeleton-text\" [style.width]=\"line\"></div>\n }\n </div>\n } @else {\n <div class=\"skeleton-rect\" [style.width]=\"width()\" [style.height]=\"height()\"></div>\n }\n `,\n styles: [`\n :host { display: block; }\n .skeleton-circle, .skeleton-rect, .skeleton-text, .skeleton-card-body { background: var(--ngx-skeleton-bg, #e9ecef); border-radius: 4px; animation: shimmer 1.4s infinite; background-size: 200% 100%; background-image: linear-gradient(90deg, var(--ngx-skeleton-bg, #e9ecef) 0%, var(--ngx-skeleton-highlight, #f8f9fa) 50%, var(--ngx-skeleton-bg, #e9ecef) 100%); }\n .skeleton-circle { border-radius: 50%; }\n .skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 4px; }\n .skeleton-text:last-child { margin-bottom: 0; }\n .skeleton-rect { border-radius: 6px; }\n .skeleton-card { border-radius: 8px; overflow: hidden; }\n .skeleton-card-body { background: none; padding: 12px; }\n @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }\n `]\n})\nexport class SkeletonComponent {\n shape = input<SkeletonShape>('rect');\n size = input(40);\n width = input('100%');\n height = input('16px');\n lines = input<string[]>(['100%', '80%', '60%']);\n}\n","import { Injectable, ApplicationRef, createComponent, EnvironmentInjector, Component, input, signal, OnInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nexport type NotificationType = 'success' | 'error' | 'info' | 'warning';\nexport type NotificationPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';\n\nexport interface NotificationOptions {\n message: string;\n type?: NotificationType;\n title?: string;\n duration?: number;\n closable?: boolean;\n position?: NotificationPosition;\n}\n\nexport interface NotificationItem extends Required<NotificationOptions> {\n id: number;\n visible: boolean;\n}\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngx-notification-container',\n standalone: true,\n imports: [CommonModule],\n template: `\n @for (n of items(); track n.id) {\n <div class=\"notification\" [class]=\"'notif-' + n.type\" [class.visible]=\"n.visible\" [attr.role]=\"n.type === 'error' ? 'alert' : 'status'\">\n <span class=\"notif-icon\">{{ icons[n.type] }}</span>\n <div class=\"notif-body\">\n @if (n.title) { <div class=\"notif-title\">{{ n.title }}</div> }\n <div class=\"notif-msg\">{{ n.message }}</div>\n </div>\n @if (n.closable) {\n <button class=\"notif-close\" (click)=\"remove(n.id)\" aria-label=\"Close\">×</button>\n }\n </div>\n }\n `,\n styles: [`\n :host { position: fixed; z-index: 10000; display: flex; flex-direction: column; gap: 10px; padding: 16px; pointer-events: none; }\n .notification {\n display: flex; align-items: flex-start; gap: 10px; min-width: 280px; max-width: 380px;\n padding: 12px 14px; border-radius: var(--ngx-notif-radius, 8px); box-shadow: 0 4px 20px rgba(0,0,0,0.15);\n pointer-events: all; font-family: inherit; font-size: 13px; opacity: 0; transform: translateX(20px);\n transition: opacity 0.25s, transform 0.25s; border-left: 4px solid transparent;\n background: var(--ngx-notif-bg, #fff); color: var(--ngx-notif-text, #212529);\n }\n .notification.visible { opacity: 1; transform: translateX(0); }\n .notif-success { border-left-color: #27ae60; }\n .notif-error { border-left-color: #e74c3c; }\n .notif-info { border-left-color: #1a73e8; }\n .notif-warning { border-left-color: #f39c12; }\n .notif-icon { font-size: 18px; flex-shrink: 0; }\n .notif-body { flex: 1; }\n .notif-title { font-weight: 700; margin-bottom: 3px; font-size: 13px; }\n .notif-msg { color: #6c757d; font-size: 12px; }\n .notif-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #adb5bd; padding: 0; line-height: 1; margin-left: 4px; }\n .notif-close:hover { color: #495057; }\n `]\n})\nexport class NotificationContainerComponent implements OnInit {\n items = signal<NotificationItem[]>([]);\n icons: Record<NotificationType, string> = { success: '✅', error: '❌', info: 'ℹ️', warning: '⚠️' };\n\n ngOnInit() {}\n\n add(opts: NotificationOptions): number {\n const id = ++nextId;\n const item: NotificationItem = {\n id, visible: false,\n message: opts.message,\n type: opts.type ?? 'info',\n title: opts.title ?? '',\n duration: opts.duration ?? 4000,\n closable: opts.closable ?? true,\n position: opts.position ?? 'top-right'\n };\n this.items.update(arr => [...arr, item]);\n setTimeout(() => this.items.update(arr => arr.map(n => n.id === id ? { ...n, visible: true } : n)), 10);\n if (item.duration > 0) { setTimeout(() => this.remove(id), item.duration); }\n return id;\n }\n\n remove(id: number): void {\n this.items.update(arr => arr.map(n => n.id === id ? { ...n, visible: false } : n));\n setTimeout(() => this.items.update(arr => arr.filter(n => n.id !== id)), 300);\n }\n}\n\nconst POSITIONS: Record<NotificationPosition, string> = {\n 'top-right': 'top:0;right:0',\n 'top-left': 'top:0;left:0',\n 'top-center': 'top:0;left:50%;transform:translateX(-50%)',\n 'bottom-right': 'bottom:0;right:0',\n 'bottom-left': 'bottom:0;left:0',\n 'bottom-center': 'bottom:0;left:50%;transform:translateX(-50%)'\n};\n\n@Injectable({ providedIn: 'root' })\nexport class NotificationService {\n private containers = new Map<NotificationPosition, NotificationContainerComponent>();\n\n constructor(private appRef: ApplicationRef, private injector: EnvironmentInjector) {}\n\n private getContainer(pos: NotificationPosition): NotificationContainerComponent {\n if (this.containers.has(pos)) return this.containers.get(pos)!;\n const ref = createComponent(NotificationContainerComponent, { environmentInjector: this.injector });\n const el: HTMLElement = ref.location.nativeElement;\n el.setAttribute('style', POSITIONS[pos]);\n document.body.appendChild(el);\n this.appRef.attachView(ref.hostView);\n this.containers.set(pos, ref.instance);\n return ref.instance;\n }\n\n show(opts: NotificationOptions): number {\n const pos = opts.position ?? 'top-right';\n return this.getContainer(pos).add(opts);\n }\n\n success(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'success' });\n }\n error(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'error' });\n }\n info(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'info' });\n }\n warning(message: string, title?: string, opts?: Partial<NotificationOptions>): number {\n return this.show({ ...opts, message, title, type: 'warning' });\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/feedback\n */\n\nexport { BadgeComponent } from './badge/badge.component';\nexport type { BadgeVariant, BadgePosition } from './badge/badge.component';\n\nexport { ProgressBarComponent } from './progress-bar/progress-bar.component';\nexport type { ProgressVariant } from './progress-bar/progress-bar.component';\n\nexport { SkeletonComponent } from './skeleton/skeleton.component';\nexport type { SkeletonShape } from './skeleton/skeleton.component';\n\nexport { NotificationService, NotificationContainerComponent } from './notification/notification.service';\nexport type { NotificationOptions, NotificationItem, NotificationType, NotificationPosition } from './notification/notification.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAiDa,cAAc,CAAA;AACzB,IAAA,OAAO,GAAG,KAAK,CAAkB,EAAE,CAAC;AACpC,IAAA,OAAO,GAAG,KAAK,CAAe,SAAS,CAAC;AACxC,IAAA,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC;AAClB,IAAA,UAAU,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