@area8975/ui 0.2.2-dev.38 → 0.2.2-dev.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@area8975/ui",
3
- "version": "0.2.2-dev.38",
3
+ "version": "0.2.2-dev.40",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.0.0",
6
6
  "@angular/core": "^22.0.0",
package/theme.css CHANGED
@@ -126,6 +126,9 @@
126
126
  --background: oklch(0.948 0.005 264);
127
127
  --sidebar: var(--card);
128
128
  --sidebar-line: oklch(0.9 0.006 264);
129
+ --sidebar-nav-foreground: var(--foreground);
130
+ --sidebar-nav-hover: var(--muted-hover);
131
+ --sidebar-nav-focus: var(--muted-hover);
129
132
  --card-line: oklch(0.9 0.006 264);
130
133
  }
131
134
 
@@ -133,6 +136,9 @@
133
136
  --background: var(--color-neutral-900);
134
137
  --sidebar: var(--card);
135
138
  --sidebar-line: var(--card-line);
139
+ --sidebar-nav-foreground: var(--foreground);
140
+ --sidebar-nav-hover: var(--muted-hover);
141
+ --sidebar-nav-focus: var(--muted-hover);
136
142
 
137
143
  /* Preline's item hover matches the card colour in dark */
138
144
  --dropdown-item-hover: var(--color-neutral-700);
@@ -379,12 +379,11 @@ export declare class UiChartComponent {
379
379
  private destroyed;
380
380
  private drawnNames;
381
381
  private readonly host;
382
- private drawnSize;
383
382
  private resizeObserver;
384
383
  constructor();
385
384
  private withOwnParentResizing;
386
385
  private redrawWhenResized;
387
- private hostSize;
386
+ private isDrawnAtHostSize;
388
387
  private applyHidden;
389
388
  private applyEmphasis;
390
389
  private seriesNames;
@@ -3829,10 +3828,29 @@ export interface TableDateRangeFacet {
3829
3828
  min?: IsoDate | null;
3830
3829
  max?: IsoDate | null;
3831
3830
  }
3832
- export type TableFacet = TableOptionsFacet | TableDateRangeFacet;
3831
+ /** Either end is null when it's open. */
3832
+ export interface TableAmountRange {
3833
+ min: number | null;
3834
+ max: number | null;
3835
+ }
3836
+ export interface TableAmountRangePreset {
3837
+ label: string;
3838
+ range: TableAmountRange;
3839
+ }
3840
+ /** Writes `{ min, max }` under `id`, both ends included, with at least one of them set. */
3841
+ export interface TableAmountRangeFacet {
3842
+ id: string;
3843
+ label: string;
3844
+ kind: 'amountRange';
3845
+ presets?: TableAmountRangePreset[];
3846
+ /** Shown before each amount, such as a currency symbol. */
3847
+ prefix?: string;
3848
+ }
3849
+ export type TableFacet = TableOptionsFacet | TableDateRangeFacet | TableAmountRangeFacet;
3833
3850
  export type TableFacetDateRange = DateRange;
3834
3851
  type Filters = Record<string, unknown>;
3835
- type DateMode = 'any' | 'custom' | number;
3852
+ type RangeMode = 'any' | 'custom' | number;
3853
+ type AmountEnd = keyof TableAmountRange;
3836
3854
  export declare class UiTableFiltersComponent {
3837
3855
  private readonly registry;
3838
3856
  readonly facets: import("@angular/core").InputSignal<TableFacet[]>;
@@ -3842,9 +3860,10 @@ export declare class UiTableFiltersComponent {
3842
3860
  /** Below this breakpoint the panel becomes a Filters button and a drawer. */
3843
3861
  readonly collapseBelow: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xl" | "2xl">;
3844
3862
  protected readonly idPrefix: string;
3845
- protected readonly anyDate: DateMode;
3846
- protected readonly customDate: DateMode;
3847
- private readonly customDates;
3863
+ protected readonly anyRange: RangeMode;
3864
+ protected readonly customRange: RangeMode;
3865
+ private readonly customRanges;
3866
+ private readonly amountDrafts;
3848
3867
  private readonly expanded;
3849
3868
  private readonly linked;
3850
3869
  protected readonly appliedCount: import("@angular/core").Signal<number>;
@@ -3864,11 +3883,18 @@ export declare class UiTableFiltersComponent {
3864
3883
  protected hiddenCount(facet: TableOptionsFacet): number;
3865
3884
  protected toggleExpanded(facet: TableOptionsFacet): void;
3866
3885
  protected range(facet: TableDateRangeFacet): DateRange;
3867
- protected dateMode(facet: TableDateRangeFacet): DateMode;
3868
- protected pickDate(facet: TableDateRangeFacet, mode: DateMode): void;
3886
+ protected dateMode(facet: TableDateRangeFacet): RangeMode;
3887
+ protected pickDate(facet: TableDateRangeFacet, mode: RangeMode): void;
3869
3888
  protected setRange(facet: TableDateRangeFacet, range: DateRange): void;
3889
+ protected amountRange(facet: TableAmountRangeFacet): TableAmountRange | undefined;
3890
+ protected amountMode(facet: TableAmountRangeFacet): RangeMode;
3891
+ protected pickAmount(facet: TableAmountRangeFacet, mode: RangeMode): void;
3892
+ protected amountText(facet: TableAmountRangeFacet, end: AmountEnd): string;
3893
+ protected typeAmount(facet: TableAmountRangeFacet, end: AmountEnd, text: string): void;
3894
+ protected isAmountValid(facet: TableAmountRangeFacet, end: AmountEnd): boolean;
3870
3895
  protected clearAll(): void;
3871
3896
  private setCustom;
3897
+ private forgetAmountDraft;
3872
3898
  private isPastCutoff;
3873
3899
  private isSelected;
3874
3900
  private apply;