@brickclay-org/ui 0.1.90 → 0.1.91

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/index.d.ts CHANGED
@@ -1579,7 +1579,7 @@ declare class BkSelect implements ControlValueAccessor, AfterViewInit, OnDestroy
1579
1579
  * existing click/Enter-to-open behaviour is unchanged.
1580
1580
  */
1581
1581
  openOnFocus: _angular_core.InputSignal<boolean>;
1582
- dropdownPosition: _angular_core.InputSignal<"top" | "bottom">;
1582
+ dropdownPosition: _angular_core.InputSignal<"bottom" | "top">;
1583
1583
  hasError: boolean;
1584
1584
  errorMessage: string;
1585
1585
  /**
@@ -1618,7 +1618,7 @@ declare class BkSelect implements ControlValueAccessor, AfterViewInit, OnDestroy
1618
1618
  private gridDraftOptions;
1619
1619
  searchTerm: _angular_core.WritableSignal<string>;
1620
1620
  markedIndex: _angular_core.WritableSignal<number>;
1621
- placement: _angular_core.WritableSignal<"top" | "bottom">;
1621
+ placement: _angular_core.WritableSignal<"bottom" | "top">;
1622
1622
  visibleCount: _angular_core.WritableSignal<number>;
1623
1623
  private resizeObserver?;
1624
1624
  /**
@@ -1868,6 +1868,19 @@ declare class BkInput implements OnInit, OnDestroy, AfterViewInit, ControlValueA
1868
1868
  phoneOverlay?: CdkConnectedOverlay;
1869
1869
  isFocused: boolean;
1870
1870
  inputValue: string;
1871
+ /**
1872
+ * What the template's `[value]` binding actually renders. Deliberately a separate property
1873
+ * from `inputValue` (which still mirrors the live text for `isFilled`/bookkeeping on every
1874
+ * keystroke): re-applying `[value]` to an element that already displays that exact text is a
1875
+ * no-op on most inputs, but on `type="number"` it isn't - Chromium doesn't skip the write just
1876
+ * because the string is unchanged, and since `type="number"` also refuses `setSelectionRange`
1877
+ * (it throws), we have no way to put the caret back afterwards. So `displayValue` is only ever
1878
+ * written by genuinely external changes (writeValue(), the phone country-prefix swap) - never
1879
+ * from handleInput() or the "parent mutated the native value" resync, both of which are only
1880
+ * echoing back text the DOM already has. That keeps every self-originated edit from re-touching
1881
+ * `.value` at all, which is the only reliable fix here given number inputs can't be caret-restored.
1882
+ */
1883
+ displayValue: string;
1871
1884
  isDropdownOpen: boolean;
1872
1885
  private pendingMaskedValue;
1873
1886
  private isPropagatingViewValue;
@@ -2921,7 +2934,7 @@ declare class BkHierarchicalSelect implements ControlValueAccessor, AfterViewIni
2921
2934
  */
2922
2935
  appendToBody: _angular_core.InputSignal<boolean>;
2923
2936
  /** Open above or below the trigger (also used when appendToBody is true for fixed coordinates). */
2924
- dropdownPosition: _angular_core.InputSignal<"top" | "bottom">;
2937
+ dropdownPosition: _angular_core.InputSignal<"bottom" | "top">;
2925
2938
  /** Key for option color (e.g. "color"). When set, option label and selected value use this color. */
2926
2939
  colorKey: _angular_core.InputSignal<string>;
2927
2940
  /**
@@ -2955,7 +2968,7 @@ declare class BkHierarchicalSelect implements ControlValueAccessor, AfterViewIni
2955
2968
  /** Index of the keyboard-highlighted option within the current level (`filteredItems`). */
2956
2969
  markedIndex: _angular_core.WritableSignal<number>;
2957
2970
  private el;
2958
- placement: _angular_core.WritableSignal<"top" | "bottom">;
2971
+ placement: _angular_core.WritableSignal<"bottom" | "top">;
2959
2972
  /**
2960
2973
  * Panel width, kept equal to the control's — matches the old `dropdownStyle().width`
2961
2974
  * behaviour. Set on open and re-measured by a ResizeObserver on the control while open, so a
@@ -3719,7 +3732,7 @@ declare class BkPopover implements OnDestroy {
3719
3732
  * anything interactive. `hover` opens on the way in and closes on the way
3720
3733
  * out, with a grace period so the pointer can travel into the panel.
3721
3734
  */
3722
- trigger: _angular_core.InputSignal<"hover" | "click">;
3735
+ trigger: _angular_core.InputSignal<"click" | "hover">;
3723
3736
  /** Optional heading. Empty hides the header row entirely. */
3724
3737
  title: _angular_core.InputSignal<string>;
3725
3738
  /** Show the × in the header. Ignored without a `title` to put it in. */
@@ -4566,7 +4579,7 @@ declare class BkTd extends BkCellBase implements AfterViewInit, OnDestroy {
4566
4579
  */
4567
4580
  protected readonly truncatedTooltip: _angular_core.WritableSignal<string>;
4568
4581
  /** Forwarded to the content wrapper's `bkTooltip`. Override on a column whose default 'right' would run into its neighbour. */
4569
- tooltipPosition: _angular_core.InputSignal<"right" | "left" | "top" | "bottom">;
4582
+ tooltipPosition: _angular_core.InputSignal<"left" | "right" | "bottom" | "top">;
4570
4583
  /** Only present when `ellipsis()` is true — see the `@else` branch in the template. */
4571
4584
  private ellipsisTextRef?;
4572
4585
  checkbox: _angular_core.InputSignal<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brickclay-org/ui",
3
- "version": "0.1.90",
3
+ "version": "0.1.91",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "ng-add": {
6
6
  "save": "dependencies"
@@ -14,8 +14,10 @@
14
14
  pointer-events: none;
15
15
  }
16
16
 
17
- /* Guarantee toasts stack above dialogs/popovers/etc. that also use CDK overlays CDK's own
18
- z-index otherwise just reflects creation order. Targets the pane CDK wraps this panel in. */
17
+ /* Belt-and-braces: pins the pane itself in case some future overlay ever nests a pane inside
18
+ this one's wrapper. The stacking fight against *other* overlays (dialogs, selects, popovers)
19
+ actually happens one level up, at the wrapper CDK puts around the pane — see the
20
+ `hostElement.style.zIndex` line in toastr.service.ts, which is the real fix for that. */
19
21
  .cdk-overlay-pane.bk-toastr-panel {
20
22
  z-index: 2147483647 !important;
21
23
  }