@molecule/app-price-range-slider-angular 1.1.1 → 1.1.3
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 +23 -17
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/price-range-slider.component.d.ts +13 -7
- package/dist/price-range-slider.component.d.ts.map +1 -1
- package/dist/price-range-slider.component.js +21 -37
- package/dist/price-range-slider.component.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-23T14:53:39.165Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-price-range-slider-angular
|
|
@@ -44,7 +44,11 @@ import { PriceRangeSlider } from '@molecule/app-price-range-slider-angular'
|
|
|
44
44
|
</div>
|
|
45
45
|
`,
|
|
46
46
|
})
|
|
47
|
-
export class PriceFilter {
|
|
47
|
+
export class PriceFilter {
|
|
48
|
+
readonly setRange = (value: [number, number]): void => {
|
|
49
|
+
console.log('price range', value)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
48
52
|
```
|
|
49
53
|
|
|
50
54
|
## Type
|
|
@@ -104,13 +108,14 @@ optional `label` is projected `[slot=label]` content (or a string input).
|
|
|
104
108
|
|
|
105
109
|
Angular projection needs an always-mounted `<ng-content>` capture point, so
|
|
106
110
|
the label wrapper lives in the template unconditionally and
|
|
107
|
-
{@link PriceRangeSlider.
|
|
111
|
+
{@link PriceRangeSlider.reconcile} reconciles it against React's DOM (which
|
|
108
112
|
omits the `<span>` entirely when there is no label).
|
|
109
113
|
|
|
110
114
|
```typescript
|
|
111
115
|
@Component({
|
|
112
116
|
selector: 'div[mol-price-range-slider]',
|
|
113
117
|
standalone: true,
|
|
118
|
+
hostDirectives: [MolPlacement],
|
|
114
119
|
imports: [],
|
|
115
120
|
inputs: ['min', 'max', 'value', 'step', 'formatValue', 'label', 'className', 'onChange'],
|
|
116
121
|
host: {
|
|
@@ -171,8 +176,6 @@ export class PriceRangeSlider implements AfterViewInit, DoCheck {
|
|
|
171
176
|
/** The maximum handle's input. */
|
|
172
177
|
@ViewChild('maxInput') maxInput?: ElementRef<HTMLInputElement>
|
|
173
178
|
|
|
174
|
-
private readonly host: HTMLElement = inject(ElementRef).nativeElement
|
|
175
|
-
|
|
176
179
|
/** The i18n provider, read at label time so the labels follow a locale switch. */
|
|
177
180
|
private readonly i18n = useTranslation()
|
|
178
181
|
|
|
@@ -286,15 +289,18 @@ export class PriceRangeSlider implements AfterViewInit, DoCheck {
|
|
|
286
289
|
return typeof this.label === 'string' ? this.label : ''
|
|
287
290
|
}
|
|
288
291
|
|
|
289
|
-
/**
|
|
292
|
+
/** Registers the label wrapper's placement decision. */
|
|
293
|
+
constructor() {
|
|
294
|
+
usePlacement((hasContent) => this.reconcile(hasContent))
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/** Puts the inputs' live values on React's controlled values (view queries resolve at view init). */
|
|
290
298
|
ngAfterViewInit(): void {
|
|
291
|
-
this.reconcile()
|
|
292
299
|
this.syncInputs()
|
|
293
300
|
}
|
|
294
301
|
|
|
295
|
-
/** Re-
|
|
302
|
+
/** Re-syncs the inputs' live values on later passes. */
|
|
296
303
|
ngDoCheck(): void {
|
|
297
|
-
this.reconcile()
|
|
298
304
|
this.syncInputs()
|
|
299
305
|
}
|
|
300
306
|
|
|
@@ -310,15 +316,15 @@ export class PriceRangeSlider implements AfterViewInit, DoCheck {
|
|
|
310
316
|
if (maxEl && maxEl.value !== String(this.high())) maxEl.value = String(this.high())
|
|
311
317
|
}
|
|
312
318
|
|
|
313
|
-
/**
|
|
314
|
-
|
|
319
|
+
/**
|
|
320
|
+
* Applies React's condition: no `<span>` at all when there is no label.
|
|
321
|
+
*
|
|
322
|
+
* @param hasContent - Reads whether a slot has content.
|
|
323
|
+
*/
|
|
324
|
+
private reconcile(hasContent: SlotReader): void {
|
|
315
325
|
const wrap = this.labelWrap?.nativeElement
|
|
316
326
|
if (!wrap) return
|
|
317
|
-
|
|
318
|
-
if (wrap.parentNode !== this.host) this.host.insertBefore(wrap, this.host.firstChild)
|
|
319
|
-
} else if (wrap.parentNode === this.host) {
|
|
320
|
-
this.host.removeChild(wrap)
|
|
321
|
-
}
|
|
327
|
+
setElementPresent(wrap, this.hasLabel() || hasContent(wrap))
|
|
322
328
|
}
|
|
323
329
|
|
|
324
330
|
/**
|
|
@@ -366,7 +372,7 @@ Peer dependencies:
|
|
|
366
372
|
- `@angular/common` ^22.0.0
|
|
367
373
|
- `@angular/core` ^22.0.0
|
|
368
374
|
- `@angular/platform-browser` ^22.0.0
|
|
369
|
-
- `@molecule/app-angular` ^3.
|
|
375
|
+
- `@molecule/app-angular` ^3.13.0
|
|
370
376
|
- `@molecule/app-ui` ^1.0.1
|
|
371
377
|
- `@molecule/app-ui-angular` ^1.1.0
|
|
372
378
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,cAAc,mCAAmC,CAAA;AACjD,cAAc,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,cAAc,mCAAmC,CAAA;AACjD,cAAc,YAAY,CAAA"}
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { type AfterViewInit, type DoCheck, ElementRef } from '@angular/core';
|
|
6
|
+
import { type AfterViewInit, type DoCheck, type ElementRef } from '@angular/core';
|
|
7
7
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@molecule/app-angular";
|
|
9
10
|
/**
|
|
10
11
|
* PriceRangeSlider component.
|
|
11
12
|
*
|
|
@@ -18,7 +19,7 @@ import * as i0 from "@angular/core";
|
|
|
18
19
|
*
|
|
19
20
|
* Angular projection needs an always-mounted `<ng-content>` capture point, so
|
|
20
21
|
* the label wrapper lives in the template unconditionally and
|
|
21
|
-
* {@link PriceRangeSlider.
|
|
22
|
+
* {@link PriceRangeSlider.reconcile} reconciles it against React's DOM (which
|
|
22
23
|
* omits the `<span>` entirely when there is no label).
|
|
23
24
|
*/
|
|
24
25
|
export declare class PriceRangeSlider implements AfterViewInit, DoCheck {
|
|
@@ -44,7 +45,6 @@ export declare class PriceRangeSlider implements AfterViewInit, DoCheck {
|
|
|
44
45
|
minInput?: ElementRef<HTMLInputElement>;
|
|
45
46
|
/** The maximum handle's input. */
|
|
46
47
|
maxInput?: ElementRef<HTMLInputElement>;
|
|
47
|
-
private readonly host;
|
|
48
48
|
/** The i18n provider, read at label time so the labels follow a locale switch. */
|
|
49
49
|
private readonly i18n;
|
|
50
50
|
/**
|
|
@@ -118,9 +118,11 @@ export declare class PriceRangeSlider implements AfterViewInit, DoCheck {
|
|
|
118
118
|
* @returns The label text, or `''` when absent.
|
|
119
119
|
*/
|
|
120
120
|
labelText(): string;
|
|
121
|
-
/**
|
|
121
|
+
/** Registers the label wrapper's placement decision. */
|
|
122
|
+
constructor();
|
|
123
|
+
/** Puts the inputs' live values on React's controlled values (view queries resolve at view init). */
|
|
122
124
|
ngAfterViewInit(): void;
|
|
123
|
-
/** Re-
|
|
125
|
+
/** Re-syncs the inputs' live values on later passes. */
|
|
124
126
|
ngDoCheck(): void;
|
|
125
127
|
/**
|
|
126
128
|
* Keeps the two inputs' live values on React's controlled values. The
|
|
@@ -128,7 +130,11 @@ export declare class PriceRangeSlider implements AfterViewInit, DoCheck {
|
|
|
128
130
|
* edit, and React re-writes the property on every re-render.
|
|
129
131
|
*/
|
|
130
132
|
private syncInputs;
|
|
131
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Applies React's condition: no `<span>` at all when there is no label.
|
|
135
|
+
*
|
|
136
|
+
* @param hasContent - Reads whether a slot has content.
|
|
137
|
+
*/
|
|
132
138
|
private reconcile;
|
|
133
139
|
/**
|
|
134
140
|
* Whether a string label input is present (a projected node label is not).
|
|
@@ -152,6 +158,6 @@ export declare class PriceRangeSlider implements AfterViewInit, DoCheck {
|
|
|
152
158
|
*/
|
|
153
159
|
onMaxInput(event: Event): void;
|
|
154
160
|
static ɵfac: i0.ɵɵFactoryDeclaration<PriceRangeSlider, never>;
|
|
155
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PriceRangeSlider, "div[mol-price-range-slider]", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; "step": { "alias": "step"; "required": false; }; "formatValue": { "alias": "formatValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "className": { "alias": "className"; "required": false; }; "onChange": { "alias": "onChange"; "required": false; }; }, {}, never, ["[slot=label]"], true,
|
|
161
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PriceRangeSlider, "div[mol-price-range-slider]", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; "step": { "alias": "step"; "required": false; }; "formatValue": { "alias": "formatValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "className": { "alias": "className"; "required": false; }; "onChange": { "alias": "onChange"; "required": false; }; }, {}, never, ["[slot=label]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
156
162
|
}
|
|
157
163
|
//# sourceMappingURL=price-range-slider.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price-range-slider.component.d.ts","sourceRoot":"","sources":["../src/price-range-slider.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,
|
|
1
|
+
{"version":3,"file":"price-range-slider.component.d.ts","sourceRoot":"","sources":["../src/price-range-slider.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,KAAK,UAAU,EAEhB,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;;AAGlD;;;;;;;;;;;;;;GAcG;AACH,qBAqCa,gBAAiB,YAAW,aAAa,EAAE,OAAO;IAC7D,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,iCAAiC;IACjC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kFAAkF;IAClF,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACnC,iFAAiF;IACjF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,qBAAqB;IACrB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;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCA9MnB,gBAAgB;2CAAhB,gBAAgB;CAmN5B"}
|
|
@@ -3,32 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component,
|
|
7
|
-
import { useTranslation } from '@molecule/app-angular';
|
|
6
|
+
import { Component, ViewChild, } from '@angular/core';
|
|
7
|
+
import { MolPlacement, setElementPresent, usePlacement, useTranslation, } from '@molecule/app-angular';
|
|
8
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@molecule/app-angular";
|
|
10
11
|
const _c0 = ["labelWrap"];
|
|
11
12
|
const _c1 = ["minInput"];
|
|
12
13
|
const _c2 = ["maxInput"];
|
|
13
14
|
const _c3 = [[["", "slot", "label"]]];
|
|
14
15
|
const _c4 = ["[slot=label]"];
|
|
15
|
-
/**
|
|
16
|
-
* Whether an ng-content capture point received any element or text node.
|
|
17
|
-
*
|
|
18
|
-
* @param el - The capture element.
|
|
19
|
-
* @returns True when at least one rendered node exists.
|
|
20
|
-
*/
|
|
21
|
-
const hasNodes = (el) => {
|
|
22
|
-
if (!el)
|
|
23
|
-
return false;
|
|
24
|
-
for (const node of Array.from(el.childNodes)) {
|
|
25
|
-
if (node.nodeType === Node.ELEMENT_NODE)
|
|
26
|
-
return true;
|
|
27
|
-
if (node.nodeType === Node.TEXT_NODE && (node.textContent ?? '').trim())
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
return false;
|
|
31
|
-
};
|
|
32
16
|
/**
|
|
33
17
|
* PriceRangeSlider component.
|
|
34
18
|
*
|
|
@@ -41,7 +25,7 @@ const hasNodes = (el) => {
|
|
|
41
25
|
*
|
|
42
26
|
* Angular projection needs an always-mounted `<ng-content>` capture point, so
|
|
43
27
|
* the label wrapper lives in the template unconditionally and
|
|
44
|
-
* {@link PriceRangeSlider.
|
|
28
|
+
* {@link PriceRangeSlider.reconcile} reconciles it against React's DOM (which
|
|
45
29
|
* omits the `<span>` entirely when there is no label).
|
|
46
30
|
*/
|
|
47
31
|
export class PriceRangeSlider {
|
|
@@ -67,7 +51,6 @@ export class PriceRangeSlider {
|
|
|
67
51
|
minInput;
|
|
68
52
|
/** The maximum handle's input. */
|
|
69
53
|
maxInput;
|
|
70
|
-
host = inject(ElementRef).nativeElement;
|
|
71
54
|
/** The i18n provider, read at label time so the labels follow a locale switch. */
|
|
72
55
|
i18n = useTranslation();
|
|
73
56
|
/**
|
|
@@ -167,14 +150,16 @@ export class PriceRangeSlider {
|
|
|
167
150
|
labelText() {
|
|
168
151
|
return typeof this.label === 'string' ? this.label : '';
|
|
169
152
|
}
|
|
170
|
-
/**
|
|
153
|
+
/** Registers the label wrapper's placement decision. */
|
|
154
|
+
constructor() {
|
|
155
|
+
usePlacement((hasContent) => this.reconcile(hasContent));
|
|
156
|
+
}
|
|
157
|
+
/** Puts the inputs' live values on React's controlled values (view queries resolve at view init). */
|
|
171
158
|
ngAfterViewInit() {
|
|
172
|
-
this.reconcile();
|
|
173
159
|
this.syncInputs();
|
|
174
160
|
}
|
|
175
|
-
/** Re-
|
|
161
|
+
/** Re-syncs the inputs' live values on later passes. */
|
|
176
162
|
ngDoCheck() {
|
|
177
|
-
this.reconcile();
|
|
178
163
|
this.syncInputs();
|
|
179
164
|
}
|
|
180
165
|
/**
|
|
@@ -190,18 +175,16 @@ export class PriceRangeSlider {
|
|
|
190
175
|
if (maxEl && maxEl.value !== String(this.high()))
|
|
191
176
|
maxEl.value = String(this.high());
|
|
192
177
|
}
|
|
193
|
-
/**
|
|
194
|
-
|
|
178
|
+
/**
|
|
179
|
+
* Applies React's condition: no `<span>` at all when there is no label.
|
|
180
|
+
*
|
|
181
|
+
* @param hasContent - Reads whether a slot has content.
|
|
182
|
+
*/
|
|
183
|
+
reconcile(hasContent) {
|
|
195
184
|
const wrap = this.labelWrap?.nativeElement;
|
|
196
185
|
if (!wrap)
|
|
197
186
|
return;
|
|
198
|
-
|
|
199
|
-
if (wrap.parentNode !== this.host)
|
|
200
|
-
this.host.insertBefore(wrap, this.host.firstChild);
|
|
201
|
-
}
|
|
202
|
-
else if (wrap.parentNode === this.host) {
|
|
203
|
-
this.host.removeChild(wrap);
|
|
204
|
-
}
|
|
187
|
+
setElementPresent(wrap, this.hasLabel() || hasContent(wrap));
|
|
205
188
|
}
|
|
206
189
|
/**
|
|
207
190
|
* Whether a string label input is present (a projected node label is not).
|
|
@@ -244,7 +227,7 @@ export class PriceRangeSlider {
|
|
|
244
227
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.maxInput = _t.first);
|
|
245
228
|
} }, hostVars: 2, hostBindings: function PriceRangeSlider_HostBindings(rf, ctx) { if (rf & 2) {
|
|
246
229
|
i0.ɵɵclassMap(ctx.classes());
|
|
247
|
-
} }, inputs: { min: "min", max: "max", value: "value", step: "step", formatValue: "formatValue", label: "label", className: "className", onChange: "onChange" }, ngContentSelectors: _c4, decls: 13, vars: 25, consts: [["labelWrap", ""], ["minInput", ""], ["maxInput", ""], ["type", "range", 3, "input"]], template: function PriceRangeSlider_Template(rf, ctx) { if (rf & 1) {
|
|
230
|
+
} }, inputs: { min: "min", max: "max", value: "value", step: "step", formatValue: "formatValue", label: "label", className: "className", onChange: "onChange" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c4, decls: 13, vars: 25, consts: [["labelWrap", ""], ["minInput", ""], ["maxInput", ""], ["type", "range", 3, "input"]], template: function PriceRangeSlider_Template(rf, ctx) { if (rf & 1) {
|
|
248
231
|
i0.ɵɵprojectionDef(_c3);
|
|
249
232
|
i0.ɵɵdomElementStart(0, "span", null, 0);
|
|
250
233
|
i0.ɵɵprojection(2);
|
|
@@ -289,6 +272,7 @@ export class PriceRangeSlider {
|
|
|
289
272
|
args: [{
|
|
290
273
|
selector: 'div[mol-price-range-slider]',
|
|
291
274
|
standalone: true,
|
|
275
|
+
hostDirectives: [MolPlacement],
|
|
292
276
|
imports: [],
|
|
293
277
|
inputs: ['min', 'max', 'value', 'step', 'formatValue', 'label', 'className', 'onChange'],
|
|
294
278
|
host: {
|
|
@@ -322,7 +306,7 @@ export class PriceRangeSlider {
|
|
|
322
306
|
/><span [class]="endpointClasses()">{{ fmt(high()) }}</span>
|
|
323
307
|
</div>`,
|
|
324
308
|
}]
|
|
325
|
-
}],
|
|
309
|
+
}], () => [], { labelWrap: [{
|
|
326
310
|
type: ViewChild,
|
|
327
311
|
args: ['labelWrap']
|
|
328
312
|
}], minInput: [{
|
|
@@ -332,5 +316,5 @@ export class PriceRangeSlider {
|
|
|
332
316
|
type: ViewChild,
|
|
333
317
|
args: ['maxInput']
|
|
334
318
|
}] }); })();
|
|
335
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PriceRangeSlider, { className: "PriceRangeSlider", filePath: "price-range-slider.component.ts", lineNumber:
|
|
319
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PriceRangeSlider, { className: "PriceRangeSlider", filePath: "price-range-slider.component.ts", lineNumber: 77 }); })();
|
|
336
320
|
//# sourceMappingURL=price-range-slider.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price-range-slider.component.js","sourceRoot":"","sources":["../src/price-range-slider.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,
|
|
1
|
+
{"version":3,"file":"price-range-slider.component.js","sourceRoot":"","sources":["../src/price-range-slider.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EAGT,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,YAAY,EACZ,iBAAiB,EAEjB,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM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C;gBACT,QAAQ,EAAE,6BAA6B;gBACvC,UAAU,EAAE,IAAI;gBAChB,cAAc,EAAE,CAAC,YAAY,CAAC;gBAC9B,OAAO,EAAE,EAAE;gBACX,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC;gBACxF,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;iBACvB;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;WA0BD;aACV;;kBAoBE,SAAS;mBAAC,WAAW;;kBAGrB,SAAS;mBAAC,UAAU;;kBAGpB,SAAS;mBAAC,UAAU;;kFAzBV,gBAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-price-range-slider-angular",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Single- or dual-handle range slider with formatted labels",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-price-range-slider-angular",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@angular/common": "^22.0.0",
|
|
46
46
|
"@angular/core": "^22.0.0",
|
|
47
47
|
"@angular/platform-browser": "^22.0.0",
|
|
48
|
-
"@molecule/app-angular": "^3.
|
|
48
|
+
"@molecule/app-angular": "^3.13.0",
|
|
49
49
|
"@molecule/app-ui": "^1.0.1",
|
|
50
50
|
"@molecule/app-ui-angular": "^1.1.0"
|
|
51
51
|
},
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"@angular/compiler-cli": "22.2.3",
|
|
56
56
|
"@angular/core": "22.2.3",
|
|
57
57
|
"@angular/platform-browser": "22.2.3",
|
|
58
|
-
"@molecule/app-angular": "3.
|
|
58
|
+
"@molecule/app-angular": "3.13.0",
|
|
59
59
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
60
60
|
"@molecule/app-i18n": "1.2.2",
|
|
61
61
|
"@molecule/app-icons": "1.0.4",
|
|
62
62
|
"@molecule/app-ui": "1.5.0",
|
|
63
|
-
"@molecule/app-ui-angular": "1.
|
|
63
|
+
"@molecule/app-ui-angular": "1.5.1",
|
|
64
64
|
"@types/node": "26.6.5",
|
|
65
|
-
"jsdom": "
|
|
65
|
+
"jsdom": "31.0.1",
|
|
66
66
|
"rxjs": "7.8.2",
|
|
67
67
|
"typescript": "6.0.3",
|
|
68
68
|
"vitest": "4.1.12",
|