@elasticias/ui 1.0.4 → 1.0.5

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.
@@ -4731,6 +4731,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
4731
4731
  }]
4732
4732
  }], propDecorators: { darkIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "darkIcon", required: false }] }], lightIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "lightIcon", required: false }] }], ariaLabelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelKey", required: false }] }] } });
4733
4733
 
4734
+ /**
4735
+ * Comptoir-skinned tooltip.
4736
+ *
4737
+ * `ef-button` already drives PrimeNG's tooltip through its `tooltipKey`
4738
+ * input, so this composes the same directive rather than introducing a
4739
+ * second tooltip with its own positioning and its own bugs. It contributes
4740
+ * the `ef-*` name the house style asks for and nothing else; the look comes
4741
+ * from the `.p-tooltip` rules in `_patterns.scss`, which means every tooltip
4742
+ * in the app — this one and `ef-button`'s — reads the same.
4743
+ *
4744
+ * Text is a plain input, so translate at the call site:
4745
+ *
4746
+ * ```html
4747
+ * <span [efTooltip]="'module_sales_hint' | translate" efTooltipPosition="top"></span>
4748
+ * ```
4749
+ */
4750
+ class EfTooltipDirective {
4751
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: EfTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4752
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: EfTooltipDirective, isStandalone: true, selector: "[efTooltip]", hostDirectives: [{ directive: i1$5.Tooltip, inputs: ["pTooltip", "efTooltip", "tooltipPosition", "efTooltipPosition", "tooltipDisabled", "efTooltipDisabled", "tooltipStyleClass", "efTooltipStyleClass", "tooltipEvent", "efTooltipEvent", "showDelay", "efTooltipShowDelay", "hideDelay", "efTooltipHideDelay", "appendTo", "efTooltipAppendTo", "autoHide", "efTooltipAutoHide", "escape", "efTooltipEscape", "life", "efTooltipLife"] }], ngImport: i0 });
4753
+ }
4754
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: EfTooltipDirective, decorators: [{
4755
+ type: Directive,
4756
+ args: [{
4757
+ selector: '[efTooltip]',
4758
+ standalone: true,
4759
+ hostDirectives: [
4760
+ {
4761
+ directive: Tooltip,
4762
+ inputs: [
4763
+ 'pTooltip: efTooltip',
4764
+ 'tooltipPosition: efTooltipPosition',
4765
+ 'tooltipDisabled: efTooltipDisabled',
4766
+ 'tooltipStyleClass: efTooltipStyleClass',
4767
+ 'tooltipEvent: efTooltipEvent',
4768
+ 'showDelay: efTooltipShowDelay',
4769
+ 'hideDelay: efTooltipHideDelay',
4770
+ 'appendTo: efTooltipAppendTo',
4771
+ 'autoHide: efTooltipAutoHide',
4772
+ 'escape: efTooltipEscape',
4773
+ 'life: efTooltipLife',
4774
+ ],
4775
+ },
4776
+ ],
4777
+ }]
4778
+ }] });
4779
+
4734
4780
  /**
4735
4781
  * Which build is running, for a footer or an about box.
4736
4782
  *
@@ -4748,11 +4794,20 @@ class EfBuildStampComponent {
4748
4794
  owner = input('', ...(ngDevMode ? [{ debugName: "owner" }] : /* istanbul ignore next */ []));
4749
4795
  info = inject(EF_BUILD_INFO, { optional: true });
4750
4796
  year = new Date().getFullYear();
4751
- detail = computed(() => this.info ? `${this.info.commit} · ${this.info.branch} · v${this.info.version}` : '', ...(ngDevMode ? [{ debugName: "detail" }] : /* istanbul ignore next */ []));
4797
+ /** Commit and branch always identify a build; a version only appears when
4798
+ * the app actually maintains one, so an unversioned app shows no `v`. */
4799
+ detail = computed(() => {
4800
+ if (!this.info)
4801
+ return '';
4802
+ const parts = [this.info.commit, this.info.branch];
4803
+ if (this.info.version)
4804
+ parts.push(`v${this.info.version}`);
4805
+ return parts.join(' · ');
4806
+ }, ...(ngDevMode ? [{ debugName: "detail" }] : /* istanbul ignore next */ []));
4752
4807
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: EfBuildStampComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4753
4808
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: EfBuildStampComponent, isStandalone: true, selector: "ef-build-stamp", inputs: { owner: { classPropertyName: "owner", publicName: "owner", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
4754
4809
  @if (info) {
4755
- <span class="ef-build-stamp" [attr.title]="detail()">
4810
+ <span class="ef-build-stamp" [efTooltip]="detail()" efTooltipPosition="bottom">
4756
4811
  @if (owner()) {
4757
4812
  <span class="ef-build-stamp__owner">© {{ year }} {{ owner() }}</span>
4758
4813
  <span class="ef-build-stamp__sep" aria-hidden="true">·</span>
@@ -4760,16 +4815,17 @@ class EfBuildStampComponent {
4760
4815
  <span class="ef-build-stamp__build">build {{ info.date }}</span>
4761
4816
  </span>
4762
4817
  }
4763
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
4818
+ `, isInline: true, dependencies: [{ kind: "directive", type: EfTooltipDirective, selector: "[efTooltip]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4764
4819
  }
4765
4820
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: EfBuildStampComponent, decorators: [{
4766
4821
  type: Component,
4767
4822
  args: [{
4768
4823
  selector: 'ef-build-stamp',
4769
4824
  standalone: true,
4825
+ imports: [EfTooltipDirective],
4770
4826
  template: `
4771
4827
  @if (info) {
4772
- <span class="ef-build-stamp" [attr.title]="detail()">
4828
+ <span class="ef-build-stamp" [efTooltip]="detail()" efTooltipPosition="bottom">
4773
4829
  @if (owner()) {
4774
4830
  <span class="ef-build-stamp__owner">© {{ year }} {{ owner() }}</span>
4775
4831
  <span class="ef-build-stamp__sep" aria-hidden="true">·</span>
@@ -4782,52 +4838,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
4782
4838
  }]
4783
4839
  }], propDecorators: { owner: [{ type: i0.Input, args: [{ isSignal: true, alias: "owner", required: false }] }] } });
4784
4840
 
4785
- /**
4786
- * Comptoir-skinned tooltip.
4787
- *
4788
- * `ef-button` already drives PrimeNG's tooltip through its `tooltipKey`
4789
- * input, so this composes the same directive rather than introducing a
4790
- * second tooltip with its own positioning and its own bugs. It contributes
4791
- * the `ef-*` name the house style asks for and nothing else; the look comes
4792
- * from the `.p-tooltip` rules in `_patterns.scss`, which means every tooltip
4793
- * in the app — this one and `ef-button`'s — reads the same.
4794
- *
4795
- * Text is a plain input, so translate at the call site:
4796
- *
4797
- * ```html
4798
- * <span [efTooltip]="'module_sales_hint' | translate" efTooltipPosition="top"></span>
4799
- * ```
4800
- */
4801
- class EfTooltipDirective {
4802
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: EfTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4803
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: EfTooltipDirective, isStandalone: true, selector: "[efTooltip]", hostDirectives: [{ directive: i1$5.Tooltip, inputs: ["pTooltip", "efTooltip", "tooltipPosition", "efTooltipPosition", "tooltipDisabled", "efTooltipDisabled", "tooltipStyleClass", "efTooltipStyleClass", "tooltipEvent", "efTooltipEvent", "showDelay", "efTooltipShowDelay", "hideDelay", "efTooltipHideDelay", "appendTo", "efTooltipAppendTo", "autoHide", "efTooltipAutoHide", "escape", "efTooltipEscape", "life", "efTooltipLife"] }], ngImport: i0 });
4804
- }
4805
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: EfTooltipDirective, decorators: [{
4806
- type: Directive,
4807
- args: [{
4808
- selector: '[efTooltip]',
4809
- standalone: true,
4810
- hostDirectives: [
4811
- {
4812
- directive: Tooltip,
4813
- inputs: [
4814
- 'pTooltip: efTooltip',
4815
- 'tooltipPosition: efTooltipPosition',
4816
- 'tooltipDisabled: efTooltipDisabled',
4817
- 'tooltipStyleClass: efTooltipStyleClass',
4818
- 'tooltipEvent: efTooltipEvent',
4819
- 'showDelay: efTooltipShowDelay',
4820
- 'hideDelay: efTooltipHideDelay',
4821
- 'appendTo: efTooltipAppendTo',
4822
- 'autoHide: efTooltipAutoHide',
4823
- 'escape: efTooltipEscape',
4824
- 'life: efTooltipLife',
4825
- ],
4826
- },
4827
- ],
4828
- }]
4829
- }] });
4830
-
4831
4841
  class EfFieldsetComponent {
4832
4842
  /** Direct legend text (not translated) */
4833
4843
  legend;