@muxima-ui/core 1.0.0 → 1.2.0
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 +12 -4
- package/fesm2022/muxima-ui-core-carousel.mjs +377 -0
- package/fesm2022/muxima-ui-core-carousel.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-chips.mjs +349 -0
- package/fesm2022/muxima-ui-core-chips.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-clipboard.mjs +110 -0
- package/fesm2022/muxima-ui-core-clipboard.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-color-picker.mjs +755 -0
- package/fesm2022/muxima-ui-core-color-picker.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-date-picker.mjs +494 -12
- package/fesm2022/muxima-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-file-upload.mjs +392 -0
- package/fesm2022/muxima-ui-core-file-upload.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-notification-center.mjs +487 -0
- package/fesm2022/muxima-ui-core-notification-center.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-rating.mjs +212 -0
- package/fesm2022/muxima-ui-core-rating.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-sidebar.mjs +333 -0
- package/fesm2022/muxima-ui-core-sidebar.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-slider.mjs +211 -3
- package/fesm2022/muxima-ui-core-slider.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-time-picker.mjs +389 -0
- package/fesm2022/muxima-ui-core-time-picker.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-timeline.mjs +117 -0
- package/fesm2022/muxima-ui-core-timeline.mjs.map +1 -0
- package/fesm2022/muxima-ui-core.mjs +1 -1
- package/fesm2022/muxima-ui-core.mjs.map +1 -1
- package/package.json +41 -1
- package/styles/base.css +21 -1
- package/styles/components/carousel.css +113 -0
- package/styles/components/chips.css +170 -0
- package/styles/components/clipboard.css +52 -0
- package/styles/components/color-picker.css +207 -0
- package/styles/components/date-picker.css +135 -0
- package/styles/components/file-upload.css +164 -0
- package/styles/components/notification-center.css +220 -0
- package/styles/components/rating.css +89 -0
- package/styles/components/sidebar.css +211 -0
- package/styles/components/slider.css +111 -0
- package/styles/components/time-picker.css +39 -0
- package/styles/components/timeline.css +180 -0
- package/styles/muxima.css +10 -0
- package/types/muxima-ui-core-carousel.d.ts +72 -0
- package/types/muxima-ui-core-chips.d.ts +120 -0
- package/types/muxima-ui-core-clipboard.d.ts +42 -0
- package/types/muxima-ui-core-color-picker.d.ts +153 -0
- package/types/muxima-ui-core-date-picker.d.ts +130 -2
- package/types/muxima-ui-core-file-upload.d.ts +96 -0
- package/types/muxima-ui-core-notification-center.d.ts +91 -0
- package/types/muxima-ui-core-rating.d.ts +64 -0
- package/types/muxima-ui-core-sidebar.d.ts +115 -0
- package/types/muxima-ui-core-slider.d.ts +68 -6
- package/types/muxima-ui-core-time-picker.d.ts +83 -0
- package/types/muxima-ui-core-timeline.d.ts +59 -0
- package/types/muxima-ui-core.d.ts +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, afterEveryRender, inject, DestroyRef, Directive } from '@angular/core';
|
|
3
|
-
import { MxNativeControl, MX_FORM_FIELD_CONTROL } from '@muxima-ui/core/form-field';
|
|
2
|
+
import { input, afterEveryRender, inject, DestroyRef, Directive, model, numberAttribute, booleanAttribute, computed, signal, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { MxNativeControl, MX_FORM_FIELD_CONTROL, MxFormField, mxUniqueId } from '@muxima-ui/core/form-field';
|
|
4
|
+
import { NgControl, Validators } from '@angular/forms';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Cursor de intervalo sobre o `<input type="range">` nativo: setas, Page Up/Down,
|
|
@@ -52,9 +53,216 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
52
53
|
}]
|
|
53
54
|
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
54
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Intervalo com dois cursores (mínimo e máximo), feito com dois `<input type="range">`
|
|
58
|
+
* nativos: cada cursor tem o seu teclado e é anunciado como "Preço, mínimo, 20 000 Kz".
|
|
59
|
+
*
|
|
60
|
+
* ```html
|
|
61
|
+
* <mx-form-field>
|
|
62
|
+
* <label mxLabel>Preço</label>
|
|
63
|
+
* <mx-range-slider formControlName="preco" [min]="0" [max]="100000" [step]="1000" [format]="kz" />
|
|
64
|
+
* </mx-form-field>
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* O valor é `[mínimo, máximo]`. Os cursores não se cruzam: ficam a pelo menos `minGap` um do outro.
|
|
68
|
+
*/
|
|
69
|
+
class MxRangeSlider {
|
|
70
|
+
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
71
|
+
min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
72
|
+
max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
73
|
+
step = input(1, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
74
|
+
/** Distância mínima entre os dois cursores. */
|
|
75
|
+
minGap = input(0, { ...(ngDevMode ? { debugName: "minGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
76
|
+
/** Texto de cada valor, para o leitor de ecrã e as etiquetas. */
|
|
77
|
+
format = input((v) => String(v), ...(ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []));
|
|
78
|
+
/** Mostra os dois valores por baixo da barra. */
|
|
79
|
+
showValues = input(false, { ...(ngDevMode ? { debugName: "showValues" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
80
|
+
lowLabel = input('mínimo', ...(ngDevMode ? [{ debugName: "lowLabel" }] : /* istanbul ignore next */ []));
|
|
81
|
+
highLabel = input('máximo', ...(ngDevMode ? [{ debugName: "highLabel" }] : /* istanbul ignore next */ []));
|
|
82
|
+
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
83
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
84
|
+
required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
85
|
+
invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
86
|
+
id = input(undefined, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
87
|
+
ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
88
|
+
field = inject(MxFormField, { optional: true });
|
|
89
|
+
ngControl = inject(NgControl, { self: true, optional: true });
|
|
90
|
+
generatedId = mxUniqueId('mx-range');
|
|
91
|
+
controlId = computed(() => this.id() ?? this.generatedId, ...(ngDevMode ? [{ debugName: "controlId" }] : /* istanbul ignore next */ []));
|
|
92
|
+
lowId = mxUniqueId('mx-range-low');
|
|
93
|
+
highId = mxUniqueId('mx-range-high');
|
|
94
|
+
nameId = mxUniqueId('mx-range-name');
|
|
95
|
+
formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
|
|
96
|
+
isDisabled = computed(() => this.disabled() || this.formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
97
|
+
low = computed(() => this.value()?.[0] ?? this.min(), ...(ngDevMode ? [{ debugName: "low" }] : /* istanbul ignore next */ []));
|
|
98
|
+
high = computed(() => this.value()?.[1] ?? this.max(), ...(ngDevMode ? [{ debugName: "high" }] : /* istanbul ignore next */ []));
|
|
99
|
+
pct(v) {
|
|
100
|
+
const span = this.max() - this.min();
|
|
101
|
+
return span > 0 ? ((v - this.min()) / span) * 100 : 0;
|
|
102
|
+
}
|
|
103
|
+
fromPct = computed(() => this.pct(this.low()), ...(ngDevMode ? [{ debugName: "fromPct" }] : /* istanbul ignore next */ []));
|
|
104
|
+
toPct = computed(() => this.pct(this.high()), ...(ngDevMode ? [{ debugName: "toPct" }] : /* istanbul ignore next */ []));
|
|
105
|
+
onChange = () => { };
|
|
106
|
+
onTouched = () => { };
|
|
107
|
+
constructor() {
|
|
108
|
+
if (this.ngControl)
|
|
109
|
+
this.ngControl.valueAccessor = this;
|
|
110
|
+
}
|
|
111
|
+
labelledBy(partId) {
|
|
112
|
+
return `${this.field?.labelId() ?? this.nameId} ${partId}`;
|
|
113
|
+
}
|
|
114
|
+
onInput(which, event) {
|
|
115
|
+
const el = event.target;
|
|
116
|
+
let v = Number(el.value);
|
|
117
|
+
const gap = this.minGap();
|
|
118
|
+
if (which === 0)
|
|
119
|
+
v = Math.min(v, this.high() - gap);
|
|
120
|
+
else
|
|
121
|
+
v = Math.max(v, this.low() + gap);
|
|
122
|
+
// o input nativo pode ter passado o outro cursor: repõe a posição
|
|
123
|
+
el.value = String(v);
|
|
124
|
+
const next = which === 0 ? [v, this.high()] : [this.low(), v];
|
|
125
|
+
this.value.set(next);
|
|
126
|
+
this.onChange(next);
|
|
127
|
+
}
|
|
128
|
+
// ---- MxFormFieldControl ----
|
|
129
|
+
errorState() {
|
|
130
|
+
if (this.invalid())
|
|
131
|
+
return true;
|
|
132
|
+
const c = this.ngControl;
|
|
133
|
+
return !!c && !!c.invalid && !!(c.touched || c.dirty);
|
|
134
|
+
}
|
|
135
|
+
isRequired() {
|
|
136
|
+
return this.required() || !!this.ngControl?.control?.hasValidator?.(Validators.required);
|
|
137
|
+
}
|
|
138
|
+
// ---- ControlValueAccessor ----
|
|
139
|
+
writeValue(value) {
|
|
140
|
+
this.value.set(value ? [value[0], value[1]] : null);
|
|
141
|
+
}
|
|
142
|
+
registerOnChange(fn) {
|
|
143
|
+
this.onChange = fn;
|
|
144
|
+
}
|
|
145
|
+
registerOnTouched(fn) {
|
|
146
|
+
this.onTouched = fn;
|
|
147
|
+
}
|
|
148
|
+
setDisabledState(isDisabled) {
|
|
149
|
+
this.formDisabled.set(isDisabled);
|
|
150
|
+
}
|
|
151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: MxRangeSlider, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
152
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: MxRangeSlider, isStandalone: true, selector: "mx-range-slider", 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 }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, minGap: { classPropertyName: "minGap", publicName: "minGap", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, lowLabel: { classPropertyName: "lowLabel", publicName: "lowLabel", isSignal: true, isRequired: false, transformFunction: null }, highLabel: { classPropertyName: "highLabel", publicName: "highLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "attr.data-size": "size() === \"md\" ? null : size()", "attr.data-disabled": "isDisabled() ? \"\" : null", "attr.data-invalid": "errorState() ? \"\" : null", "attr.aria-label": "null", "style.--mx-range-from": "fromPct() + \"%\"", "style.--mx-range-to": "toPct() + \"%\"" }, classAttribute: "mx-range-slider" }, providers: [{ provide: MX_FORM_FIELD_CONTROL, useExisting: MxRangeSlider }], exportAs: ["mxRangeSlider"], ngImport: i0, template: `
|
|
153
|
+
<div class="mx-range-slider-track" aria-hidden="true"><div class="mx-range-slider-fill"></div></div>
|
|
154
|
+
<input
|
|
155
|
+
type="range"
|
|
156
|
+
class="mx-range-slider-input"
|
|
157
|
+
[id]="controlId()"
|
|
158
|
+
[min]="min()"
|
|
159
|
+
[max]="max()"
|
|
160
|
+
[step]="step()"
|
|
161
|
+
[value]="low()"
|
|
162
|
+
[disabled]="isDisabled()"
|
|
163
|
+
[attr.aria-labelledby]="labelledBy(lowId)"
|
|
164
|
+
[attr.aria-valuetext]="format()(low())"
|
|
165
|
+
[attr.aria-describedby]="field?.describedBy() ?? null"
|
|
166
|
+
[attr.aria-invalid]="errorState() ? 'true' : null"
|
|
167
|
+
(input)="onInput(0, $event)"
|
|
168
|
+
(blur)="onTouched()"
|
|
169
|
+
/>
|
|
170
|
+
<input
|
|
171
|
+
type="range"
|
|
172
|
+
class="mx-range-slider-input"
|
|
173
|
+
[min]="min()"
|
|
174
|
+
[max]="max()"
|
|
175
|
+
[step]="step()"
|
|
176
|
+
[value]="high()"
|
|
177
|
+
[disabled]="isDisabled()"
|
|
178
|
+
[attr.aria-labelledby]="labelledBy(highId)"
|
|
179
|
+
[attr.aria-valuetext]="format()(high())"
|
|
180
|
+
[attr.aria-describedby]="field?.describedBy() ?? null"
|
|
181
|
+
[attr.aria-invalid]="errorState() ? 'true' : null"
|
|
182
|
+
(input)="onInput(1, $event)"
|
|
183
|
+
(blur)="onTouched()"
|
|
184
|
+
/>
|
|
185
|
+
<span class="mx-visually-hidden" [id]="lowId">{{ lowLabel() }}</span>
|
|
186
|
+
<span class="mx-visually-hidden" [id]="highId">{{ highLabel() }}</span>
|
|
187
|
+
@if (!field?.labelId()) {
|
|
188
|
+
<span class="mx-visually-hidden" [id]="nameId">{{ ariaLabel() }}</span>
|
|
189
|
+
}
|
|
190
|
+
@if (showValues()) {
|
|
191
|
+
<div class="mx-range-slider-values" aria-hidden="true">
|
|
192
|
+
<span>{{ format()(low()) }}</span>
|
|
193
|
+
<span>{{ format()(high()) }}</span>
|
|
194
|
+
</div>
|
|
195
|
+
}
|
|
196
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
197
|
+
}
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: MxRangeSlider, decorators: [{
|
|
199
|
+
type: Component,
|
|
200
|
+
args: [{
|
|
201
|
+
selector: 'mx-range-slider',
|
|
202
|
+
exportAs: 'mxRangeSlider',
|
|
203
|
+
providers: [{ provide: MX_FORM_FIELD_CONTROL, useExisting: MxRangeSlider }],
|
|
204
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
205
|
+
encapsulation: ViewEncapsulation.None,
|
|
206
|
+
host: {
|
|
207
|
+
class: 'mx-range-slider',
|
|
208
|
+
'[attr.data-size]': 'size() === "md" ? null : size()',
|
|
209
|
+
'[attr.data-disabled]': 'isDisabled() ? "" : null',
|
|
210
|
+
'[attr.data-invalid]': 'errorState() ? "" : null',
|
|
211
|
+
'[attr.aria-label]': 'null',
|
|
212
|
+
'[style.--mx-range-from]': 'fromPct() + "%"',
|
|
213
|
+
'[style.--mx-range-to]': 'toPct() + "%"',
|
|
214
|
+
},
|
|
215
|
+
template: `
|
|
216
|
+
<div class="mx-range-slider-track" aria-hidden="true"><div class="mx-range-slider-fill"></div></div>
|
|
217
|
+
<input
|
|
218
|
+
type="range"
|
|
219
|
+
class="mx-range-slider-input"
|
|
220
|
+
[id]="controlId()"
|
|
221
|
+
[min]="min()"
|
|
222
|
+
[max]="max()"
|
|
223
|
+
[step]="step()"
|
|
224
|
+
[value]="low()"
|
|
225
|
+
[disabled]="isDisabled()"
|
|
226
|
+
[attr.aria-labelledby]="labelledBy(lowId)"
|
|
227
|
+
[attr.aria-valuetext]="format()(low())"
|
|
228
|
+
[attr.aria-describedby]="field?.describedBy() ?? null"
|
|
229
|
+
[attr.aria-invalid]="errorState() ? 'true' : null"
|
|
230
|
+
(input)="onInput(0, $event)"
|
|
231
|
+
(blur)="onTouched()"
|
|
232
|
+
/>
|
|
233
|
+
<input
|
|
234
|
+
type="range"
|
|
235
|
+
class="mx-range-slider-input"
|
|
236
|
+
[min]="min()"
|
|
237
|
+
[max]="max()"
|
|
238
|
+
[step]="step()"
|
|
239
|
+
[value]="high()"
|
|
240
|
+
[disabled]="isDisabled()"
|
|
241
|
+
[attr.aria-labelledby]="labelledBy(highId)"
|
|
242
|
+
[attr.aria-valuetext]="format()(high())"
|
|
243
|
+
[attr.aria-describedby]="field?.describedBy() ?? null"
|
|
244
|
+
[attr.aria-invalid]="errorState() ? 'true' : null"
|
|
245
|
+
(input)="onInput(1, $event)"
|
|
246
|
+
(blur)="onTouched()"
|
|
247
|
+
/>
|
|
248
|
+
<span class="mx-visually-hidden" [id]="lowId">{{ lowLabel() }}</span>
|
|
249
|
+
<span class="mx-visually-hidden" [id]="highId">{{ highLabel() }}</span>
|
|
250
|
+
@if (!field?.labelId()) {
|
|
251
|
+
<span class="mx-visually-hidden" [id]="nameId">{{ ariaLabel() }}</span>
|
|
252
|
+
}
|
|
253
|
+
@if (showValues()) {
|
|
254
|
+
<div class="mx-range-slider-values" aria-hidden="true">
|
|
255
|
+
<span>{{ format()(low()) }}</span>
|
|
256
|
+
<span>{{ format()(high()) }}</span>
|
|
257
|
+
</div>
|
|
258
|
+
}
|
|
259
|
+
`,
|
|
260
|
+
}]
|
|
261
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], minGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "minGap", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], lowLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "lowLabel", required: false }] }], highLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "highLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }] } });
|
|
262
|
+
|
|
55
263
|
/**
|
|
56
264
|
* Generated bundle index. Do not edit.
|
|
57
265
|
*/
|
|
58
266
|
|
|
59
|
-
export { MxSlider };
|
|
267
|
+
export { MxRangeSlider, MxSlider };
|
|
60
268
|
//# sourceMappingURL=muxima-ui-core-slider.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muxima-ui-core-slider.mjs","sources":["../../../projects/core/slider/slider.ts","../../../projects/core/slider/muxima-ui-core-slider.ts"],"sourcesContent":["import { DestroyRef, Directive, OnInit, afterEveryRender, inject, input } from '@angular/core';\nimport { MX_FORM_FIELD_CONTROL, MxNativeControl } from '@muxima-ui/core/form-field';\n\n/**\n * Cursor de intervalo sobre o `<input type=\"range\">` nativo: setas, Page Up/Down,\n * Home e End funcionam como no navegador, e o valor é anunciado pelo leitor de ecrã.\n *\n * ```html\n * <mx-form-field>\n * <label mxLabel>Orçamento (mil Kz)</label>\n * <input type=\"range\" mxSlider min=\"0\" max=\"500\" step=\"10\" formControlName=\"orcamento\" />\n * </mx-form-field>\n * ```\n */\n@Directive({\n selector: 'input[type=range][mxSlider]',\n exportAs: 'mxSlider',\n providers: [{ provide: MX_FORM_FIELD_CONTROL, useExisting: MxSlider }],\n host: {\n class: 'mx-slider',\n '[attr.data-size]': 'size() === \"md\" ? null : size()',\n '(input)': 'paint()',\n },\n})\nexport class MxSlider extends MxNativeControl implements OnInit {\n /** Espessura da barra: sm 4 px, md 6 px, lg 8 px. */\n readonly size = input<'sm' | 'md' | 'lg'>('md');\n\n constructor() {\n super();\n // O valor pode mudar por formulário ou atributo sem evento \"input\": repinta após cada render.\n afterEveryRender({ write: () => this.paint() });\n }\n\n private readonly destroyRef = inject(DestroyRef);\n\n ngOnInit(): void {\n // setValue/patchValue escrevem no input sem evento nem render: repinta quando o valor muda.\n const sub = this.ngControl?.valueChanges?.subscribe(() => this.paint());\n if (sub) this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n protected paint(): void {\n const el = this.element as HTMLInputElement;\n const min = Number(el.min || 0);\n const max = Number(el.max || 100);\n const pct = max > min ? ((Number(el.value) - min) / (max - min)) * 100 : 0;\n el.style.setProperty('--mx-slider-fill', `${pct}%`);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;;;;;AAUG;AAWG,MAAO,QAAS,SAAQ,eAAe,CAAA;;AAElC,IAAA,IAAI,GAAG,KAAK,CAAqB,IAAI,2EAAC;AAE/C,IAAA,WAAA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A,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,UAAA,EAAA,EAAA,gBAAA,EAAA,mCAAA,EAAA,EAAA,cAAA,EAAA,WAAA,EAAA,EAAA,SAAA,EAPR,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAAA,QAAA,EAAA,CAAA,UAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAO3D,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAVpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,6BAA6B;AACvC,oBAAA,QAAQ,EAAE,UAAU;oBACpB,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAA,QAAU,EAAE,CAAC;AACtE,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,WAAW;AAClB,wBAAA,kBAAkB,EAAE,iCAAiC;AACrD,wBAAA,SAAS,EAAE,SAAS;AACrB,qBAAA;AACF,iBAAA;;;ACvBD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"muxima-ui-core-slider.mjs","sources":["../../../projects/core/slider/slider.ts","../../../projects/core/slider/range-slider.ts","../../../projects/core/slider/muxima-ui-core-slider.ts"],"sourcesContent":["import { DestroyRef, Directive, OnInit, afterEveryRender, inject, input } from '@angular/core';\nimport { MX_FORM_FIELD_CONTROL, MxNativeControl } from '@muxima-ui/core/form-field';\n\n/**\n * Cursor de intervalo sobre o `<input type=\"range\">` nativo: setas, Page Up/Down,\n * Home e End funcionam como no navegador, e o valor é anunciado pelo leitor de ecrã.\n *\n * ```html\n * <mx-form-field>\n * <label mxLabel>Orçamento (mil Kz)</label>\n * <input type=\"range\" mxSlider min=\"0\" max=\"500\" step=\"10\" formControlName=\"orcamento\" />\n * </mx-form-field>\n * ```\n */\n@Directive({\n selector: 'input[type=range][mxSlider]',\n exportAs: 'mxSlider',\n providers: [{ provide: MX_FORM_FIELD_CONTROL, useExisting: MxSlider }],\n host: {\n class: 'mx-slider',\n '[attr.data-size]': 'size() === \"md\" ? null : size()',\n '(input)': 'paint()',\n },\n})\nexport class MxSlider extends MxNativeControl implements OnInit {\n /** Espessura da barra: sm 4 px, md 6 px, lg 8 px. */\n readonly size = input<'sm' | 'md' | 'lg'>('md');\n\n constructor() {\n super();\n // O valor pode mudar por formulário ou atributo sem evento \"input\": repinta após cada render.\n afterEveryRender({ write: () => this.paint() });\n }\n\n private readonly destroyRef = inject(DestroyRef);\n\n ngOnInit(): void {\n // setValue/patchValue escrevem no input sem evento nem render: repinta quando o valor muda.\n const sub = this.ngControl?.valueChanges?.subscribe(() => this.paint());\n if (sub) this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n protected paint(): void {\n const el = this.element as HTMLInputElement;\n const min = Number(el.min || 0);\n const max = Number(el.max || 100);\n const pct = max > min ? ((Number(el.value) - min) / (max - min)) * 100 : 0;\n el.style.setProperty('--mx-slider-fill', `${pct}%`);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n numberAttribute,\n signal,\n} from '@angular/core';\nimport { ControlValueAccessor, NgControl, Validators } from '@angular/forms';\nimport { MX_FORM_FIELD_CONTROL, MxFormField, MxFormFieldControl, mxUniqueId } from '@muxima-ui/core/form-field';\n\n/**\n * Intervalo com dois cursores (mínimo e máximo), feito com dois `<input type=\"range\">`\n * nativos: cada cursor tem o seu teclado e é anunciado como \"Preço, mínimo, 20 000 Kz\".\n *\n * ```html\n * <mx-form-field>\n * <label mxLabel>Preço</label>\n * <mx-range-slider formControlName=\"preco\" [min]=\"0\" [max]=\"100000\" [step]=\"1000\" [format]=\"kz\" />\n * </mx-form-field>\n * ```\n *\n * O valor é `[mínimo, máximo]`. Os cursores não se cruzam: ficam a pelo menos `minGap` um do outro.\n */\n@Component({\n selector: 'mx-range-slider',\n exportAs: 'mxRangeSlider',\n providers: [{ provide: MX_FORM_FIELD_CONTROL, useExisting: MxRangeSlider }],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'mx-range-slider',\n '[attr.data-size]': 'size() === \"md\" ? null : size()',\n '[attr.data-disabled]': 'isDisabled() ? \"\" : null',\n '[attr.data-invalid]': 'errorState() ? \"\" : null',\n '[attr.aria-label]': 'null',\n '[style.--mx-range-from]': 'fromPct() + \"%\"',\n '[style.--mx-range-to]': 'toPct() + \"%\"',\n },\n template: `\n <div class=\"mx-range-slider-track\" aria-hidden=\"true\"><div class=\"mx-range-slider-fill\"></div></div>\n <input\n type=\"range\"\n class=\"mx-range-slider-input\"\n [id]=\"controlId()\"\n [min]=\"min()\"\n [max]=\"max()\"\n [step]=\"step()\"\n [value]=\"low()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-labelledby]=\"labelledBy(lowId)\"\n [attr.aria-valuetext]=\"format()(low())\"\n [attr.aria-describedby]=\"field?.describedBy() ?? null\"\n [attr.aria-invalid]=\"errorState() ? 'true' : null\"\n (input)=\"onInput(0, $event)\"\n (blur)=\"onTouched()\"\n />\n <input\n type=\"range\"\n class=\"mx-range-slider-input\"\n [min]=\"min()\"\n [max]=\"max()\"\n [step]=\"step()\"\n [value]=\"high()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-labelledby]=\"labelledBy(highId)\"\n [attr.aria-valuetext]=\"format()(high())\"\n [attr.aria-describedby]=\"field?.describedBy() ?? null\"\n [attr.aria-invalid]=\"errorState() ? 'true' : null\"\n (input)=\"onInput(1, $event)\"\n (blur)=\"onTouched()\"\n />\n <span class=\"mx-visually-hidden\" [id]=\"lowId\">{{ lowLabel() }}</span>\n <span class=\"mx-visually-hidden\" [id]=\"highId\">{{ highLabel() }}</span>\n @if (!field?.labelId()) {\n <span class=\"mx-visually-hidden\" [id]=\"nameId\">{{ ariaLabel() }}</span>\n }\n @if (showValues()) {\n <div class=\"mx-range-slider-values\" aria-hidden=\"true\">\n <span>{{ format()(low()) }}</span>\n <span>{{ format()(high()) }}</span>\n </div>\n }\n `,\n})\nexport class MxRangeSlider implements ControlValueAccessor, MxFormFieldControl {\n readonly value = model<[number, number] | null>(null);\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly step = input(1, { transform: numberAttribute });\n /** Distância mínima entre os dois cursores. */\n readonly minGap = input(0, { transform: numberAttribute });\n /** Texto de cada valor, para o leitor de ecrã e as etiquetas. */\n readonly format = input<(v: number) => string>((v) => String(v));\n /** Mostra os dois valores por baixo da barra. */\n readonly showValues = input(false, { transform: booleanAttribute });\n readonly lowLabel = input('mínimo');\n readonly highLabel = input('máximo');\n readonly size = input<'sm' | 'md' | 'lg'>('md');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly id = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n\n protected readonly field = inject(MxFormField, { optional: true });\n private readonly ngControl = inject(NgControl, { self: true, optional: true });\n private readonly generatedId = mxUniqueId('mx-range');\n readonly controlId = computed(() => this.id() ?? this.generatedId);\n protected readonly lowId = mxUniqueId('mx-range-low');\n protected readonly highId = mxUniqueId('mx-range-high');\n protected readonly nameId = mxUniqueId('mx-range-name');\n private readonly formDisabled = signal(false);\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n protected readonly low = computed(() => this.value()?.[0] ?? this.min());\n protected readonly high = computed(() => this.value()?.[1] ?? this.max());\n private pct(v: number): number {\n const span = this.max() - this.min();\n return span > 0 ? ((v - this.min()) / span) * 100 : 0;\n }\n protected readonly fromPct = computed(() => this.pct(this.low()));\n protected readonly toPct = computed(() => this.pct(this.high()));\n\n private onChange: (value: [number, number] | null) => void = () => {};\n protected onTouched: () => void = () => {};\n\n constructor() {\n if (this.ngControl) this.ngControl.valueAccessor = this;\n }\n\n protected labelledBy(partId: string): string {\n return `${this.field?.labelId() ?? this.nameId} ${partId}`;\n }\n\n protected onInput(which: 0 | 1, event: Event): void {\n const el = event.target as HTMLInputElement;\n let v = Number(el.value);\n const gap = this.minGap();\n if (which === 0) v = Math.min(v, this.high() - gap);\n else v = Math.max(v, this.low() + gap);\n // o input nativo pode ter passado o outro cursor: repõe a posição\n el.value = String(v);\n const next: [number, number] = which === 0 ? [v, this.high()] : [this.low(), v];\n this.value.set(next);\n this.onChange(next);\n }\n\n // ---- MxFormFieldControl ----\n errorState(): boolean {\n if (this.invalid()) return true;\n const c = this.ngControl;\n return !!c && !!c.invalid && !!(c.touched || c.dirty);\n }\n isRequired(): boolean {\n return this.required() || !!this.ngControl?.control?.hasValidator?.(Validators.required);\n }\n\n // ---- ControlValueAccessor ----\n writeValue(value: [number, number] | null): void {\n this.value.set(value ? [value[0], value[1]] : null);\n }\n registerOnChange(fn: (value: [number, number] | null) => void): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGA;;;;;;;;;;AAUG;AAWG,MAAO,QAAS,SAAQ,eAAe,CAAA;;AAElC,IAAA,IAAI,GAAG,KAAK,CAAqB,IAAI,2EAAC;AAE/C,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;AAEP,QAAA,gBAAgB,CAAC,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;IACjD;AAEiB,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IAEhD,QAAQ,GAAA;;AAEN,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC,MAA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