@agnos-ui/angular-bootstrap 0.9.0 → 0.9.2

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 SliderComponent_ng_template_0_Template(rf, ctx) { }
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.sliderDirective);
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: 1, vars: 6, consts: [[3, "auSlot", "auSlotProps"]], template: function SliderComponent_Template(rf, ctx) { if (rf & 1) {
3543
- i0.ɵɵtemplate(0, SliderComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
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("auSlot", ctx.state.structure())("auSlotProps", i0.ɵɵpureFunction3(2, _c12, ctx.state, ctx.api, ctx.directives));
3546
- } }, dependencies: [SlotDirective], encapsulation: 2, changeDetection: 0 }); }
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: ` <ng-template [auSlot]="state.structure()" [auSlotProps]="{state, api, directives}" /> `,
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: 225 }); })();
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
@@ -4334,8 +4363,10 @@ const _c3$1 = a0 => ({ item: a0 });
4334
4363
  const _c4$1 = (a0, a1) => [a0, a1];
4335
4364
  function TreeDefaultItemToggleSlotComponent_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
4336
4365
  i0.ɵɵelementStart(0, "button", 2);
4337
- i0.ɵɵelement(1, "span", 4);
4338
- i0.ɵɵelementEnd();
4366
+ i0.ɵɵnamespaceSVG();
4367
+ i0.ɵɵelementStart(1, "svg", 4);
4368
+ i0.ɵɵelement(2, "path", 5);
4369
+ i0.ɵɵelementEnd()();
4339
4370
  } if (rf & 2) {
4340
4371
  const ctx_r0 = i0.ɵɵnextContext();
4341
4372
  const directives_r2 = ctx_r0.directives;
@@ -4346,7 +4377,7 @@ function TreeDefaultItemToggleSlotComponent_ng_template_0_Conditional_1_Template
4346
4377
  i0.ɵɵelement(0, "span", 3);
4347
4378
  } }
4348
4379
  function TreeDefaultItemToggleSlotComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
4349
- i0.ɵɵconditionalCreate(0, TreeDefaultItemToggleSlotComponent_ng_template_0_Conditional_0_Template, 2, 6, "button", 2)(1, TreeDefaultItemToggleSlotComponent_ng_template_0_Conditional_1_Template, 1, 0, "span", 3);
4380
+ i0.ɵɵconditionalCreate(0, TreeDefaultItemToggleSlotComponent_ng_template_0_Conditional_0_Template, 3, 6, "button", 2)(1, TreeDefaultItemToggleSlotComponent_ng_template_0_Conditional_1_Template, 1, 0, "span", 3);
4350
4381
  } if (rf & 2) {
4351
4382
  const item_r3 = ctx.item;
4352
4383
  i0.ɵɵconditional(item_r3.children.length > 0 ? 0 : 1);
@@ -4493,7 +4524,7 @@ class TreeDefaultItemToggleSlotComponent {
4493
4524
  i0.ɵɵviewQuerySignal(ctx.toggle, _c2$1, 5);
4494
4525
  } if (rf & 2) {
4495
4526
  i0.ɵɵqueryAdvance();
4496
- } }, decls: 2, vars: 0, consts: [["toggle", ""], ["auTreeItemToggle", ""], [3, "auUse"], [1, "au-tree-expand-icon-placeholder"], [1, "au-tree-expand-icon-svg"]], template: function TreeDefaultItemToggleSlotComponent_Template(rf, ctx) { if (rf & 1) {
4527
+ } }, decls: 2, vars: 0, consts: [["toggle", ""], ["auTreeItemToggle", ""], [3, "auUse"], [1, "au-tree-expand-icon-placeholder"], ["xmlns", "http://www.w3.org/2000/svg", "width", "14", "height", "14", "viewBox", "0 0 10 10", 1, "au-tree-expand-icon-svg"], ["d", "M3 1 L7 5 L3 9", "stroke-width", "1", "fill", "none", 1, "au-tree-expand-icon-svg-fill"]], template: function TreeDefaultItemToggleSlotComponent_Template(rf, ctx) { if (rf & 1) {
4497
4528
  i0.ɵɵtemplate(0, TreeDefaultItemToggleSlotComponent_ng_template_0_Template, 2, 1, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
4498
4529
  } }, dependencies: [UseDirective, TreeItemToggleDirective], encapsulation: 2, changeDetection: 0 }); }
4499
4530
  }
@@ -4506,7 +4537,9 @@ class TreeDefaultItemToggleSlotComponent {
4506
4537
  <ng-template auTreeItemToggle #toggle let-directives="directives" let-item="item">
4507
4538
  @if (item.children.length > 0) {
4508
4539
  <button [auUse]="[directives.itemToggleDirective, {item}]">
4509
- <span class="au-tree-expand-icon-svg"></span>
4540
+ <svg class="au-tree-expand-icon-svg" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 10 10">
4541
+ <path d="M3 1 L7 5 L3 9" class="au-tree-expand-icon-svg-fill" stroke-width="1" fill="none" />
4542
+ </svg>
4510
4543
  </button>
4511
4544
  } @else {
4512
4545
  <span class="au-tree-expand-icon-placeholder"></span>
@@ -4515,7 +4548,7 @@ class TreeDefaultItemToggleSlotComponent {
4515
4548
  `,
4516
4549
  }]
4517
4550
  }], null, null); })();
4518
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemToggleSlotComponent, { className: "TreeDefaultItemToggleSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 74 }); })();
4551
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemToggleSlotComponent, { className: "TreeDefaultItemToggleSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 76 }); })();
4519
4552
  /**
4520
4553
  * A constant representing the default slot for tree item toggle.
4521
4554
  */
@@ -4567,7 +4600,7 @@ class TreeDefaultItemContentSlotComponent {
4567
4600
  `,
4568
4601
  }]
4569
4602
  }], null, null); })();
4570
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemContentSlotComponent, { className: "TreeDefaultItemContentSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 108 }); })();
4603
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemContentSlotComponent, { className: "TreeDefaultItemContentSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 110 }); })();
4571
4604
  /**
4572
4605
  * A constant representing the default slot for tree item.
4573
4606
  */
@@ -4628,7 +4661,7 @@ class TreeDefaultItemSlotComponent {
4628
4661
  `,
4629
4662
  }]
4630
4663
  }], null, null); })();
4631
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemSlotComponent, { className: "TreeDefaultItemSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 151 }); })();
4664
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemSlotComponent, { className: "TreeDefaultItemSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 153 }); })();
4632
4665
  /**
4633
4666
  * A constant representing the default slot for tree item.
4634
4667
  */
@@ -4711,29 +4744,29 @@ class TreeComponent extends BaseWidgetDirective {
4711
4744
  * Slot to change the default tree item content
4712
4745
  */
4713
4746
  this.itemContent = input(undefined, { alias: 'auItemContent' });
4714
- this.slotItemContentFromContent = viewChild(TreeItemContentDirective);
4747
+ this.slotItemContentFromContent = contentChild(TreeItemContentDirective);
4715
4748
  /**
4716
4749
  * Slot to change the default display of the tree
4717
4750
  */
4718
4751
  this.structure = input(undefined, { alias: 'auStructure' });
4719
- this.slotStructureFromContent = viewChild(TreeStructureDirective);
4752
+ this.slotStructureFromContent = contentChild(TreeStructureDirective);
4720
4753
  /**
4721
4754
  * Slot to change the default tree item toggle
4722
4755
  */
4723
4756
  this.itemToggle = input(undefined, { alias: 'auItemToggle' });
4724
- this.slotItemToggleFromContent = viewChild(TreeItemToggleDirective);
4757
+ this.slotItemToggleFromContent = contentChild(TreeItemToggleDirective);
4725
4758
  /**
4726
4759
  * Slot to change the default tree item
4727
4760
  */
4728
4761
  this.item = input(undefined, { alias: 'auItem' });
4729
- this.slotItemFromContent = viewChild(TreeItemDirective);
4762
+ this.slotItemFromContent = contentChild(TreeItemDirective);
4730
4763
  }
4731
4764
  static { this.ɵfac = function TreeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeComponent)(); }; }
4732
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeComponent, selectors: [["", "auTree", ""]], viewQuery: function TreeComponent_Query(rf, ctx) { if (rf & 1) {
4733
- i0.ɵɵviewQuerySignal(ctx.slotItemContentFromContent, TreeItemContentDirective, 5);
4734
- i0.ɵɵviewQuerySignal(ctx.slotStructureFromContent, TreeStructureDirective, 5);
4735
- i0.ɵɵviewQuerySignal(ctx.slotItemToggleFromContent, TreeItemToggleDirective, 5);
4736
- i0.ɵɵviewQuerySignal(ctx.slotItemFromContent, TreeItemDirective, 5);
4765
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeComponent, selectors: [["", "auTree", ""]], contentQueries: function TreeComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
4766
+ i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotItemContentFromContent, TreeItemContentDirective, 5);
4767
+ i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotStructureFromContent, TreeStructureDirective, 5);
4768
+ i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotItemToggleFromContent, TreeItemToggleDirective, 5);
4769
+ i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotItemFromContent, TreeItemDirective, 5);
4737
4770
  } if (rf & 2) {
4738
4771
  i0.ɵɵqueryAdvance(4);
4739
4772
  } }, inputs: { ariaLabel: [1, "auAriaLabel", "ariaLabel"], nodes: [1, "auNodes", "nodes"], className: [1, "auClassName", "className"], navSelector: [1, "auNavSelector", "navSelector"], ariaLabelToggleFn: [1, "auAriaLabelToggleFn", "ariaLabelToggleFn"], itemContent: [1, "auItemContent", "itemContent"], structure: [1, "auStructure", "structure"], itemToggle: [1, "auItemToggle", "itemToggle"], item: [1, "auItem", "item"] }, outputs: { expandToggle: "auExpandToggle" }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c7, decls: 1, vars: 6, consts: [[3, "auSlot", "auSlotProps"]], template: function TreeComponent_Template(rf, ctx) { if (rf & 1) {
@@ -4751,7 +4784,7 @@ class TreeComponent extends BaseWidgetDirective {
4751
4784
  template: ` <ng-template [auSlot]="state.structure()" [auSlotProps]="{state, api, directives}" /> `,
4752
4785
  }]
4753
4786
  }], () => [], null); })();
4754
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeComponent, { className: "TreeComponent", filePath: "components/tree/tree.component.ts", lineNumber: 176 }); })();
4787
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeComponent, { className: "TreeComponent", filePath: "components/tree/tree.component.ts", lineNumber: 178 }); })();
4755
4788
 
4756
4789
  /**
4757
4790
  * Retrieve a shallow copy of the default Carousel config