@area8975/ui 0.1.1-dev.5 → 0.1.1-dev.8

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.1.1-dev.5",
3
+ "version": "0.1.1-dev.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.0.0",
6
6
  "@angular/core": "^22.0.0",
@@ -429,6 +429,44 @@ export declare class UiLineChartComponent extends UiAxisChartBase {
429
429
  export declare const LineChartCurves: readonly ["straight", "smooth", "stepline"];
430
430
  /** @see {@link LineChartCurves} */
431
431
  export type LineChartCurve = typeof LineChartCurves[number];
432
+ /**
433
+ * Slices for showing how a whole splits into parts. Each category is a
434
+ * slice, only the first series is drawn. Best kept to a handful of slices,
435
+ * fold the small ones into "Other".
436
+ */
437
+ export declare class UiPieChartComponent extends UiAxisChartBase {
438
+ readonly variant: import("@angular/core").InputSignal<"pie" | "donut">;
439
+ /** Shown above the total in the middle of a donut. */
440
+ readonly totalLabel: import("@angular/core").InputSignal<string>;
441
+ protected readonly values: import("@angular/core").Signal<(number | null)[]>;
442
+ protected readonly isEmpty: import("@angular/core").Signal<boolean>;
443
+ protected readonly isMuted: import("@angular/core").Signal<boolean[]>;
444
+ protected readonly styles: import("@angular/core").Signal<ChartSeriesStyle[]>;
445
+ protected readonly legendItems: import("@angular/core").Signal<{
446
+ colour: string;
447
+ dashed: boolean;
448
+ name: string;
449
+ }[]>;
450
+ private readonly slices;
451
+ protected readonly chartOptions: import("@angular/core").Signal<ApexCharts.ApexOptions>;
452
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiPieChartComponent, never>;
453
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiPieChartComponent, "ui-pie-chart", never, {
454
+ "variant": {
455
+ "alias": "variant";
456
+ "required": false;
457
+ "isSignal": true;
458
+ };
459
+ "totalLabel": {
460
+ "alias": "totalLabel";
461
+ "required": false;
462
+ "isSignal": true;
463
+ };
464
+ }, {}, never, never, true, never>;
465
+ }
466
+ /** pie fills the whole circle, donut leaves a hole with the total in it. */
467
+ export declare const PieChartVariants: readonly ["pie", "donut"];
468
+ /** @see {@link PieChartVariants} */
469
+ export type PieChartVariant = typeof PieChartVariants[number];
432
470
  /** Native type values ui-input supports. File/checkbox/radio/range need their own components. */
433
471
  export declare const InputTypes: readonly ["text", "email", "tel", "url", "search", "password", "number", "date", "time", "datetime-local", "month", "week", "color"];
434
472
  /** @see {@link InputTypes} */
@@ -676,7 +714,7 @@ export declare class UiInputComponent<ValueType = string> {
676
714
  readonly name: import("@angular/core").InputSignal<string>;
677
715
  readonly placeholder: import("@angular/core").InputSignal<string>;
678
716
  readonly autocomplete: import("@angular/core").InputSignal<string>;
679
- readonly inputmode: import("@angular/core").InputSignal<"" | "none" | "text" | "search" | "numeric" | "email" | "tel" | "url" | "decimal">;
717
+ readonly inputmode: import("@angular/core").InputSignal<"" | "none" | "text" | "search" | "numeric" | "decimal" | "email" | "tel" | "url">;
680
718
  readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
681
719
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
682
720
  readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
@@ -953,6 +991,10 @@ export interface UiOverlayOptions {
953
991
  offset: number;
954
992
  viewportPadding: number;
955
993
  }
994
+ export interface UiOverlayStackEntry {
995
+ onDocumentClick: (event: MouseEvent) => void;
996
+ onKeyDown: (event: KeyboardEvent) => void;
997
+ }
956
998
  export interface SelectDataSourceParameters {
957
999
  query: string;
958
1000
  page: number;
@@ -1762,23 +1804,21 @@ export declare class UiLoadingComponent {
1762
1804
  export declare const UI_LOADING_TYPES: ["spinner", "throbber", "pulse-ring", "pulse-dot", "wave", "equaliser", "terminal", "blinking-caret", "shimmer-text", "loading-dots", "bouncing-dots", "fading-dots"];
1763
1805
  export type UiLoadingType = typeof UI_LOADING_TYPES[number];
1764
1806
  type ModalSize = 'sm' | 'md' | 'lg';
1765
- /**
1766
- * Centered dialog with a backdrop. Uses ui-overlay for dismissal/focus,
1767
- * no ui-floating since there's nothing to position against.
1768
- */
1769
1807
  export declare class UiModalComponent {
1770
- readonly panelElement: import("@angular/core").Signal<ElementRef<any> | undefined>;
1771
- readonly open: import("@angular/core").ModelSignal<boolean>;
1808
+ readonly isOpen: import("@angular/core").ModelSignal<boolean>;
1772
1809
  readonly closeBehaviour: import("@angular/core").InputSignal<UiOverlayCloseBehaviour>;
1773
- readonly toggle: () => void;
1774
- readonly close: () => void;
1810
+ readonly title: import("@angular/core").InputSignal<string>;
1775
1811
  readonly size: import("@angular/core").InputSignal<ModalSize>;
1776
- readonly generatedSizeClasses: import("@angular/core").Signal<string>;
1812
+ readonly classes: import("@angular/core").InputSignal<string>;
1813
+ readonly headerElement: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
1814
+ readonly footerElement: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
1815
+ readonly panelElement: import("@angular/core").Signal<ElementRef<any> | undefined>;
1816
+ readonly generatedClasses: import("@angular/core").Signal<string>;
1777
1817
  static ɵfac: i0.ɵɵFactoryDeclaration<UiModalComponent, never>;
1778
- static ɵcmp: i0.ɵɵComponentDeclaration<UiModalComponent, "ui-modal", ["uiModal"], {
1779
- "open": {
1780
- "alias": "open";
1781
- "required": false;
1818
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiModalComponent, "ui-modal", never, {
1819
+ "isOpen": {
1820
+ "alias": "isOpen";
1821
+ "required": true;
1782
1822
  "isSignal": true;
1783
1823
  };
1784
1824
  "closeBehaviour": {
@@ -1786,14 +1826,24 @@ export declare class UiModalComponent {
1786
1826
  "required": false;
1787
1827
  "isSignal": true;
1788
1828
  };
1829
+ "title": {
1830
+ "alias": "title";
1831
+ "required": false;
1832
+ "isSignal": true;
1833
+ };
1789
1834
  "size": {
1790
1835
  "alias": "size";
1791
1836
  "required": false;
1792
1837
  "isSignal": true;
1793
1838
  };
1839
+ "classes": {
1840
+ "alias": "classes";
1841
+ "required": false;
1842
+ "isSignal": true;
1843
+ };
1794
1844
  }, {
1795
- "open": "openChange";
1796
- }, never, ["*"], true, never>;
1845
+ "isOpen": "isOpenChange";
1846
+ }, ["headerElement", "footerElement"], ["*"], true, never>;
1797
1847
  }
1798
1848
  /**
1799
1849
  * Formats a money value, e.g. -42.1 as "-£42.10".
@@ -2530,8 +2580,9 @@ export declare class UiLayoutComponent {
2530
2580
  static ɵfac: i0.ɵɵFactoryDeclaration<UiLayoutComponent, never>;
2531
2581
  static ɵcmp: i0.ɵɵComponentDeclaration<UiLayoutComponent, "ui-layout", never, {}, {}, ["sidebar"], ["*"], true, never>;
2532
2582
  }
2533
- export declare class UiOverlayComponent {
2583
+ export declare class UiOverlayComponent implements UiOverlayStackEntry {
2534
2584
  private readonly positioner;
2585
+ private readonly stack;
2535
2586
  readonly content: import("@angular/core").InputSignal<ElementRef<HTMLInputElement> | undefined>;
2536
2587
  readonly anchor: import("@angular/core").InputSignal<ElementRef<HTMLElement> | undefined>;
2537
2588
  readonly closeBehaviour: import("@angular/core").InputSignal<UiOverlayCloseBehaviour>;
@@ -2543,8 +2594,8 @@ export declare class UiOverlayComponent {
2543
2594
  readonly matchWidth: import("@angular/core").InputSignal<DropdownMatchWidth | null>;
2544
2595
  constructor();
2545
2596
  private readonly close;
2546
- private onDocumentClick;
2547
- private onKeyDown;
2597
+ readonly onDocumentClick: (event: MouseEvent) => void;
2598
+ readonly onKeyDown: (event: KeyboardEvent) => void;
2548
2599
  static ɵfac: i0.ɵɵFactoryDeclaration<UiOverlayComponent, never>;
2549
2600
  static ɵcmp: i0.ɵɵComponentDeclaration<UiOverlayComponent, "ui-overlay", ["uiOverlay"], {
2550
2601
  "content": {