@area8975/ui 0.2.2-dev.35 → 0.2.2-dev.37

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.35",
3
+ "version": "0.2.2-dev.37",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.0.0",
6
6
  "@angular/core": "^22.0.0",
@@ -2073,6 +2073,83 @@ export declare class UiContainerComponent {
2073
2073
  static ɵfac: i0.ɵɵFactoryDeclaration<UiContainerComponent, never>;
2074
2074
  static ɵcmp: i0.ɵɵComponentDeclaration<UiContainerComponent, "ui-container", never, {}, {}, never, ["*"], true, never>;
2075
2075
  }
2076
+ /** The disclosure's content, only rendered while it's expanded. */
2077
+ export declare class UiDisclosurePanelDirective {
2078
+ readonly template: TemplateRef<any>;
2079
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiDisclosurePanelDirective, never>;
2080
+ static ɵdir: i0.ɵɵDirectiveDeclaration<UiDisclosurePanelDirective, "ng-template[uiDisclosurePanel]", never, {}, {}, never, never, true, never>;
2081
+ }
2082
+ /**
2083
+ * Shows and hides a panel of content from a `ui-disclosure-trigger` inside it.
2084
+ * The content goes in an `<ng-template uiDisclosurePanel>`, rendered after
2085
+ * everything else in the disclosure.
2086
+ */
2087
+ export declare class UiDisclosureComponent {
2088
+ readonly expanded: import("@angular/core").ModelSignal<boolean>;
2089
+ /** The panel's id, which the trigger's aria-controls points at. Generated when left out. */
2090
+ readonly panelId: import("@angular/core").InputSignal<string>;
2091
+ private readonly generatedId;
2092
+ readonly regionId: import("@angular/core").Signal<string>;
2093
+ protected readonly panel: import("@angular/core").Signal<UiDisclosurePanelDirective | undefined>;
2094
+ readonly toggle: () => void;
2095
+ readonly open: () => void;
2096
+ readonly close: () => void;
2097
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiDisclosureComponent, never>;
2098
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiDisclosureComponent, "ui-disclosure", ["uiDisclosure"], {
2099
+ "expanded": {
2100
+ "alias": "expanded";
2101
+ "required": false;
2102
+ "isSignal": true;
2103
+ };
2104
+ "panelId": {
2105
+ "alias": "panelId";
2106
+ "required": false;
2107
+ "isSignal": true;
2108
+ };
2109
+ }, {
2110
+ "expanded": "expandedChange";
2111
+ }, ["panel"], ["*"], true, never>;
2112
+ }
2113
+ /**
2114
+ * How a disclosure trigger looks. `"section"` is a full-width header,
2115
+ * `"row"` stretches the trigger over its row - see
2116
+ * `UiDisclosureTriggerComponent.appearance`.
2117
+ */
2118
+ export declare const DisclosureTriggerAppearances: readonly ["section", "row"];
2119
+ /** @see {@link DisclosureTriggerAppearances} */
2120
+ export type DisclosureTriggerAppearance = typeof DisclosureTriggerAppearances[number];
2121
+ /** A chevron that turns with the `ui-disclosure` it's in. Put it in the trigger, or anywhere in a row. */
2122
+ export declare class UiDisclosureChevronComponent {
2123
+ protected readonly disclosure: UiDisclosureComponent;
2124
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiDisclosureChevronComponent, never>;
2125
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiDisclosureChevronComponent, "ui-disclosure-chevron", never, {}, {}, never, never, true, never>;
2126
+ }
2127
+ /**
2128
+ * The button that expands and collapses the `ui-disclosure` it's in.
2129
+ *
2130
+ * As a `"row"`, its hit area and focus ring cover the nearest positioned
2131
+ * element around it, so make the row `relative`, otherwise it's the whole
2132
+ * disclosure. Give other controls in the row `class="relative"` so they stay
2133
+ * clickable above it.
2134
+ */
2135
+ export declare class UiDisclosureTriggerComponent {
2136
+ protected readonly disclosure: UiDisclosureComponent;
2137
+ readonly appearance: import("@angular/core").InputSignal<"section" | "row">;
2138
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
2139
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiDisclosureTriggerComponent, never>;
2140
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiDisclosureTriggerComponent, "ui-disclosure-trigger", never, {
2141
+ "appearance": {
2142
+ "alias": "appearance";
2143
+ "required": false;
2144
+ "isSignal": true;
2145
+ };
2146
+ "ariaLabel": {
2147
+ "alias": "ariaLabel";
2148
+ "required": false;
2149
+ "isSignal": true;
2150
+ };
2151
+ }, {}, never, ["*"], true, never>;
2152
+ }
2076
2153
  export declare class UiDrawerComponent {
2077
2154
  readonly isOpen: import("@angular/core").WritableSignal<boolean>;
2078
2155
  readonly enableBackdrop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
@@ -3732,6 +3809,8 @@ export interface TableOptionsFacet {
3732
3809
  kind: 'options';
3733
3810
  options: TableFacetOption[];
3734
3811
  multiple?: boolean;
3812
+ /** Shows this many options, plus any picked, then a "Show N more" toggle. Leave out to show them all. */
3813
+ visibleOptions?: number;
3735
3814
  }
3736
3815
  /** Writes `{ start, end }` ISO dates under `id`. */
3737
3816
  export interface TableDateRangeFacet {
@@ -3760,6 +3839,7 @@ export declare class UiTableFiltersComponent {
3760
3839
  protected readonly anyDate: DateMode;
3761
3840
  protected readonly customDate: DateMode;
3762
3841
  private readonly customDates;
3842
+ private readonly expanded;
3763
3843
  private readonly linked;
3764
3844
  protected readonly appliedCount: import("@angular/core").Signal<number>;
3765
3845
  protected readonly anyApplied: import("@angular/core").Signal<boolean>;
@@ -3772,12 +3852,19 @@ export declare class UiTableFiltersComponent {
3772
3852
  protected pick(facet: TableOptionsFacet, value: unknown): void;
3773
3853
  protected isChecked(facet: TableOptionsFacet, option: TableFacetOption): boolean;
3774
3854
  protected check(facet: TableOptionsFacet, option: TableFacetOption, checked: boolean): void;
3855
+ protected isExpanded(facet: TableOptionsFacet): boolean;
3856
+ protected isShown(facet: TableOptionsFacet, option: TableFacetOption, index: number): boolean;
3857
+ /** How many options collapsing hides, 0 when there's nothing to toggle. */
3858
+ protected hiddenCount(facet: TableOptionsFacet): number;
3859
+ protected toggleExpanded(facet: TableOptionsFacet): void;
3775
3860
  protected range(facet: TableDateRangeFacet): DateRange;
3776
3861
  protected dateMode(facet: TableDateRangeFacet): DateMode;
3777
3862
  protected pickDate(facet: TableDateRangeFacet, mode: DateMode): void;
3778
3863
  protected setRange(facet: TableDateRangeFacet, range: DateRange): void;
3779
3864
  protected clearAll(): void;
3780
3865
  private setCustom;
3866
+ private isPastCutoff;
3867
+ private isSelected;
3781
3868
  private apply;
3782
3869
  private write;
3783
3870
  private currentFilters;