@agnos-ui/angular-bootstrap 0.9.0 → 0.9.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.
|
@@ -3078,7 +3078,7 @@ function SliderDefaultStructureSlotComponent_ng_template_0_Template(rf, ctx) { i
|
|
|
3078
3078
|
} }
|
|
3079
3079
|
const _c11 = ["auSlider", ""];
|
|
3080
3080
|
const _c12 = (a0, a1, a2) => ({ state: a0, api: a1, directives: a2 });
|
|
3081
|
-
function
|
|
3081
|
+
function SliderComponent_ng_template_1_Template(rf, ctx) { }
|
|
3082
3082
|
/**
|
|
3083
3083
|
* Directive to provide a template reference for slider labels.
|
|
3084
3084
|
*
|
|
@@ -3336,7 +3336,7 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
3336
3336
|
},
|
|
3337
3337
|
},
|
|
3338
3338
|
afterInit: (widget) => {
|
|
3339
|
-
useDirectiveForHost(widget.directives.
|
|
3339
|
+
useDirectiveForHost(widget.directives.containerDirective);
|
|
3340
3340
|
},
|
|
3341
3341
|
slotTemplates: () => ({
|
|
3342
3342
|
structure: this.slotStructureFromContent()?.templateRef,
|
|
@@ -3363,6 +3363,27 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
3363
3363
|
* @defaultValue `100`
|
|
3364
3364
|
*/
|
|
3365
3365
|
this.max = input(undefined, { alias: 'auMax', transform: auNumberAttribute });
|
|
3366
|
+
/**
|
|
3367
|
+
* Minimum distance between two values.
|
|
3368
|
+
* When set to 0, no minimum distance constraint is applied.
|
|
3369
|
+
*
|
|
3370
|
+
* @defaultValue 0
|
|
3371
|
+
*/
|
|
3372
|
+
this.minRange = input(undefined, { alias: 'auMinRange', transform: auNumberAttribute });
|
|
3373
|
+
/**
|
|
3374
|
+
* Maximum distance between two values
|
|
3375
|
+
* When set to 0, no maximum distance constraint is applied.
|
|
3376
|
+
*
|
|
3377
|
+
* @defaultValue 0
|
|
3378
|
+
*/
|
|
3379
|
+
this.maxRange = input(undefined, { alias: 'auMaxRange', transform: auNumberAttribute });
|
|
3380
|
+
/**
|
|
3381
|
+
* When true, if moving a value would break the minRange or maxRange constraint,
|
|
3382
|
+
* it will instead push or pull the neighboring values to keep the allowed range rather than just stopping.
|
|
3383
|
+
*
|
|
3384
|
+
* @defaultValue false
|
|
3385
|
+
*/
|
|
3386
|
+
this.pushRange = input(undefined, { alias: 'auPushRange', transform: auBooleanAttribute });
|
|
3366
3387
|
/**
|
|
3367
3388
|
* Unit value between slider steps
|
|
3368
3389
|
*
|
|
@@ -3539,11 +3560,15 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
3539
3560
|
i0.ɵɵqueryAdvance(4);
|
|
3540
3561
|
} }, hostBindings: function SliderComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
3541
3562
|
i0.ɵɵlistener("blur", function SliderComponent_blur_HostBindingHandler() { return ctx.handleBlur(); });
|
|
3542
|
-
} }, inputs: { className: [1, "auClassName", "className"], min: [1, "auMin", "min"], max: [1, "auMax", "max"], stepSize: [1, "auStepSize", "stepSize"], values: [1, "auValues", "values"], rtl: [1, "auRtl", "rtl"], showValueLabels: [1, "auShowValueLabels", "showValueLabels"], showMinMaxLabels: [1, "auShowMinMaxLabels", "showMinMaxLabels"], ariaLabel: [1, "auAriaLabel", "ariaLabel"], ariaLabelledBy: [1, "auAriaLabelledBy", "ariaLabelledBy"], ariaValueText: [1, "auAriaValueText", "ariaValueText"], readonly: [1, "auReadonly", "readonly"], disabled: [1, "auDisabled", "disabled"], vertical: [1, "auVertical", "vertical"], showTicks: [1, "auShowTicks", "showTicks"], tickInterval: [1, "auTickInterval", "tickInterval"], showTickValues: [1, "auShowTickValues", "showTickValues"], label: [1, "auLabel", "label"], structure: [1, "auStructure", "structure"], handle: [1, "auHandle", "handle"], tick: [1, "auTick", "tick"] }, outputs: { valuesChange: "auValuesChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true }]), i0.ɵɵInheritDefinitionFeature], attrs: _c11, decls:
|
|
3543
|
-
i0.ɵɵ
|
|
3563
|
+
} }, inputs: { className: [1, "auClassName", "className"], min: [1, "auMin", "min"], max: [1, "auMax", "max"], minRange: [1, "auMinRange", "minRange"], maxRange: [1, "auMaxRange", "maxRange"], pushRange: [1, "auPushRange", "pushRange"], stepSize: [1, "auStepSize", "stepSize"], values: [1, "auValues", "values"], rtl: [1, "auRtl", "rtl"], showValueLabels: [1, "auShowValueLabels", "showValueLabels"], showMinMaxLabels: [1, "auShowMinMaxLabels", "showMinMaxLabels"], ariaLabel: [1, "auAriaLabel", "ariaLabel"], ariaLabelledBy: [1, "auAriaLabelledBy", "ariaLabelledBy"], ariaValueText: [1, "auAriaValueText", "ariaValueText"], readonly: [1, "auReadonly", "readonly"], disabled: [1, "auDisabled", "disabled"], vertical: [1, "auVertical", "vertical"], showTicks: [1, "auShowTicks", "showTicks"], tickInterval: [1, "auTickInterval", "tickInterval"], showTickValues: [1, "auShowTickValues", "showTickValues"], label: [1, "auLabel", "label"], structure: [1, "auStructure", "structure"], handle: [1, "auHandle", "handle"], tick: [1, "auTick", "tick"] }, outputs: { valuesChange: "auValuesChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true }]), i0.ɵɵInheritDefinitionFeature], attrs: _c11, decls: 2, vars: 7, consts: [[3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function SliderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3564
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
3565
|
+
i0.ɵɵtemplate(1, SliderComponent_ng_template_1_Template, 0, 0, "ng-template", 1);
|
|
3566
|
+
i0.ɵɵelementEnd();
|
|
3544
3567
|
} if (rf & 2) {
|
|
3545
|
-
i0.ɵɵproperty("
|
|
3546
|
-
|
|
3568
|
+
i0.ɵɵproperty("auUse", ctx.directives.sliderDirective);
|
|
3569
|
+
i0.ɵɵadvance();
|
|
3570
|
+
i0.ɵɵproperty("auSlot", ctx.state.structure())("auSlotProps", i0.ɵɵpureFunction3(3, _c12, ctx.state, ctx.api, ctx.directives));
|
|
3571
|
+
} }, dependencies: [SlotDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
3547
3572
|
}
|
|
3548
3573
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderComponent, [{
|
|
3549
3574
|
type: Component,
|
|
@@ -3552,14 +3577,18 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
3552
3577
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3553
3578
|
encapsulation: ViewEncapsulation.None,
|
|
3554
3579
|
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true }],
|
|
3555
|
-
imports: [SlotDirective],
|
|
3580
|
+
imports: [SlotDirective, UseDirective],
|
|
3556
3581
|
host: {
|
|
3557
3582
|
'(blur)': 'handleBlur()',
|
|
3558
3583
|
},
|
|
3559
|
-
template: `
|
|
3584
|
+
template: `
|
|
3585
|
+
<div [auUse]="directives.sliderDirective">
|
|
3586
|
+
<ng-template [auSlot]="state.structure()" [auSlotProps]="{state, api, directives}" />
|
|
3587
|
+
</div>
|
|
3588
|
+
`,
|
|
3560
3589
|
}]
|
|
3561
3590
|
}], () => [], null); })();
|
|
3562
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderComponent, { className: "SliderComponent", filePath: "components/slider/slider.component.ts", lineNumber:
|
|
3591
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderComponent, { className: "SliderComponent", filePath: "components/slider/slider.component.ts", lineNumber: 229 }); })();
|
|
3563
3592
|
|
|
3564
3593
|
/**
|
|
3565
3594
|
* Retrieve a shallow copy of the default Progressbar config
|