@rblabs-dev/axiom 1.2.2 → 1.2.3
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/README.md +6 -0
- package/app-shell/package.json +4 -0
- package/brand-lockup/package.json +4 -0
- package/central-sign-in/package.json +4 -0
- package/confirm-dialog/package.json +4 -0
- package/core/package.json +4 -0
- package/empty-state/package.json +4 -0
- package/fesm2022/rblabs-dev-axiom-app-shell.mjs +375 -0
- package/fesm2022/rblabs-dev-axiom-app-shell.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-brand-lockup.mjs +154 -0
- package/fesm2022/rblabs-dev-axiom-brand-lockup.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-central-sign-in.mjs +375 -0
- package/fesm2022/rblabs-dev-axiom-central-sign-in.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-confirm-dialog.mjs +329 -0
- package/fesm2022/rblabs-dev-axiom-confirm-dialog.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-core.mjs +181 -0
- package/fesm2022/rblabs-dev-axiom-core.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-empty-state.mjs +252 -0
- package/fesm2022/rblabs-dev-axiom-empty-state.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-message.mjs +194 -0
- package/fesm2022/rblabs-dev-axiom-message.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-monogram.mjs +102 -0
- package/fesm2022/rblabs-dev-axiom-monogram.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-page-header.mjs +199 -0
- package/fesm2022/rblabs-dev-axiom-page-header.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-panel.mjs +207 -0
- package/fesm2022/rblabs-dev-axiom-panel.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-public-shell.mjs +165 -0
- package/fesm2022/rblabs-dev-axiom-public-shell.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-shell-footer.mjs +73 -0
- package/fesm2022/rblabs-dev-axiom-shell-footer.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-status-chip.mjs +161 -0
- package/fesm2022/rblabs-dev-axiom-status-chip.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-technical-value.mjs +173 -0
- package/fesm2022/rblabs-dev-axiom-technical-value.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom-theme-toggle.mjs +117 -0
- package/fesm2022/rblabs-dev-axiom-theme-toggle.mjs.map +1 -0
- package/fesm2022/rblabs-dev-axiom.mjs +15 -2955
- package/message/package.json +4 -0
- package/monogram/package.json +4 -0
- package/package.json +76 -1
- package/page-header/package.json +4 -0
- package/panel/package.json +4 -0
- package/public-shell/package.json +4 -0
- package/shell-footer/package.json +4 -0
- package/status-chip/package.json +4 -0
- package/styles/_index.scss +1 -1
- package/technical-value/package.json +4 -0
- package/theme-toggle/package.json +4 -0
- package/types/rblabs-dev-axiom-app-shell.d.ts +50 -0
- package/types/rblabs-dev-axiom-brand-lockup.d.ts +35 -0
- package/types/rblabs-dev-axiom-central-sign-in.d.ts +82 -0
- package/types/rblabs-dev-axiom-confirm-dialog.d.ts +76 -0
- package/types/rblabs-dev-axiom-core.d.ts +116 -0
- package/types/rblabs-dev-axiom-empty-state.d.ts +55 -0
- package/types/rblabs-dev-axiom-message.d.ts +48 -0
- package/types/rblabs-dev-axiom-monogram.d.ts +12 -0
- package/types/rblabs-dev-axiom-page-header.d.ts +44 -0
- package/types/rblabs-dev-axiom-panel.d.ts +44 -0
- package/types/rblabs-dev-axiom-public-shell.d.ts +28 -0
- package/types/rblabs-dev-axiom-shell-footer.d.ts +17 -0
- package/types/rblabs-dev-axiom-status-chip.d.ts +40 -0
- package/types/rblabs-dev-axiom-technical-value.d.ts +35 -0
- package/types/rblabs-dev-axiom-theme-toggle.d.ts +12 -0
- package/types/rblabs-dev-axiom.d.ts +15 -675
- package/fesm2022/rblabs-dev-axiom.mjs.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { RbStatusTone } from "@rblabs-dev/axiom/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface RbPageHeaderMetric {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
/** Adds a tone color and icon to the value; the label and value carry the meaning. */
|
|
7
|
+
tone?: RbStatusTone;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The page's single `<h1>` with its eyebrow, description, summary metrics and page actions
|
|
11
|
+
* (docs/design-system.md, section 15.1). Elements marked `rbActions` are projected next to the
|
|
12
|
+
* title.
|
|
13
|
+
*/
|
|
14
|
+
export declare class RbPageHeaderComponent {
|
|
15
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
16
|
+
/** Short context line above the title, such as the app area. */
|
|
17
|
+
readonly eyebrow: import("@angular/core").InputSignal<string>;
|
|
18
|
+
readonly description: import("@angular/core").InputSignal<string>;
|
|
19
|
+
readonly metrics: import("@angular/core").InputSignal<readonly RbPageHeaderMetric[]>;
|
|
20
|
+
protected toneIcon(metric: RbPageHeaderMetric): string | null;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbPageHeaderComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbPageHeaderComponent, "rb-page-header", never, {
|
|
23
|
+
"title": {
|
|
24
|
+
"alias": "title";
|
|
25
|
+
"required": true;
|
|
26
|
+
"isSignal": true;
|
|
27
|
+
};
|
|
28
|
+
"eyebrow": {
|
|
29
|
+
"alias": "eyebrow";
|
|
30
|
+
"required": false;
|
|
31
|
+
"isSignal": true;
|
|
32
|
+
};
|
|
33
|
+
"description": {
|
|
34
|
+
"alias": "description";
|
|
35
|
+
"required": false;
|
|
36
|
+
"isSignal": true;
|
|
37
|
+
};
|
|
38
|
+
"metrics": {
|
|
39
|
+
"alias": "metrics";
|
|
40
|
+
"required": false;
|
|
41
|
+
"isSignal": true;
|
|
42
|
+
};
|
|
43
|
+
}, {}, never, ["[rbActions]"], true, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type RbPanelVariant = 'default' | 'soft' | 'elevated' | 'danger';
|
|
3
|
+
export type RbHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
/**
|
|
5
|
+
* Content container with an optional header (docs/design-system.md, section 15.2). Elements marked
|
|
6
|
+
* `rbActions` are projected into the header next to the title.
|
|
7
|
+
*/
|
|
8
|
+
export declare class RbPanelComponent {
|
|
9
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
10
|
+
readonly description: import("@angular/core").InputSignal<string>;
|
|
11
|
+
readonly variant: import("@angular/core").InputSignal<RbPanelVariant>;
|
|
12
|
+
/** Heading level of the title; follows the document outline, not the visual size. */
|
|
13
|
+
readonly headingLevel: import("@angular/core").InputSignal<RbHeadingLevel>;
|
|
14
|
+
/** Removes the body padding, for a table or list that runs to the panel's edges. */
|
|
15
|
+
readonly flush: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbPanelComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbPanelComponent, "rb-panel", never, {
|
|
18
|
+
"title": {
|
|
19
|
+
"alias": "title";
|
|
20
|
+
"required": false;
|
|
21
|
+
"isSignal": true;
|
|
22
|
+
};
|
|
23
|
+
"description": {
|
|
24
|
+
"alias": "description";
|
|
25
|
+
"required": false;
|
|
26
|
+
"isSignal": true;
|
|
27
|
+
};
|
|
28
|
+
"variant": {
|
|
29
|
+
"alias": "variant";
|
|
30
|
+
"required": false;
|
|
31
|
+
"isSignal": true;
|
|
32
|
+
};
|
|
33
|
+
"headingLevel": {
|
|
34
|
+
"alias": "headingLevel";
|
|
35
|
+
"required": false;
|
|
36
|
+
"isSignal": true;
|
|
37
|
+
};
|
|
38
|
+
"flush": {
|
|
39
|
+
"alias": "flush";
|
|
40
|
+
"required": false;
|
|
41
|
+
"isSignal": true;
|
|
42
|
+
};
|
|
43
|
+
}, {}, never, ["[rbActions]", "*"], true, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Frame for landing, sign-in and other public pages (docs/design-system.md, section 16.2): skip
|
|
4
|
+
* link, a header with the brand lockup and theme toggle, a centered content area on the brand
|
|
5
|
+
* background, and the standard footer.
|
|
6
|
+
*/
|
|
7
|
+
export declare class RbPublicShellComponent {
|
|
8
|
+
/** Shown in the lockup and the footer: `Admin`, `Auth`, `Rover`, `Photogrammetry`… */
|
|
9
|
+
readonly appName: import("@angular/core").InputSignal<string>;
|
|
10
|
+
/** The lockup's link target, as a `routerLink` value. */
|
|
11
|
+
readonly homeLink: import("@angular/core").InputSignal<string | readonly unknown[]>;
|
|
12
|
+
private readonly main;
|
|
13
|
+
/** See RbAppShellComponent: keeps the skip link on the current route. */
|
|
14
|
+
protected skipToMain(event: Event): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbPublicShellComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbPublicShellComponent, "rb-public-shell", never, {
|
|
17
|
+
"appName": {
|
|
18
|
+
"alias": "appName";
|
|
19
|
+
"required": true;
|
|
20
|
+
"isSignal": true;
|
|
21
|
+
};
|
|
22
|
+
"homeLink": {
|
|
23
|
+
"alias": "homeLink";
|
|
24
|
+
"required": false;
|
|
25
|
+
"isSignal": true;
|
|
26
|
+
};
|
|
27
|
+
}, {}, never, ["[rbShellActions]", "*", "[rbShellFooter]"], true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* The standard footer of every shell (docs/design-system.md, section 12.5): "© <year> RB Labs ·
|
|
4
|
+
* <App name>", followed on the same line by any projected links or status.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RbShellFooterComponent {
|
|
7
|
+
readonly appName: import("@angular/core").InputSignal<string>;
|
|
8
|
+
protected readonly year: number;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbShellFooterComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbShellFooterComponent, "rb-shell-footer", never, {
|
|
11
|
+
"appName": {
|
|
12
|
+
"alias": "appName";
|
|
13
|
+
"required": true;
|
|
14
|
+
"isSignal": true;
|
|
15
|
+
};
|
|
16
|
+
}, {}, never, ["*"], true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { RbStatusTone } from "@rblabs-dev/axiom/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type RbStatusChipSize = 'default' | 'compact';
|
|
4
|
+
/**
|
|
5
|
+
* Read-only status label (docs/design-system.md, section 15.5). The label is always visible and
|
|
6
|
+
* every non-neutral tone has an icon, so the state is never carried by color alone. It is not
|
|
7
|
+
* interactive and not a live region: announce changes through `rb-message` or a status region.
|
|
8
|
+
*/
|
|
9
|
+
export declare class RbStatusChipComponent {
|
|
10
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
11
|
+
readonly tone: import("@angular/core").InputSignal<RbStatusTone>;
|
|
12
|
+
/** Overrides the tone's default icon. */
|
|
13
|
+
readonly icon: import("@angular/core").InputSignal<string>;
|
|
14
|
+
/** `compact` fits a single table row line. */
|
|
15
|
+
readonly size: import("@angular/core").InputSignal<RbStatusChipSize>;
|
|
16
|
+
protected readonly resolvedIcon: import("@angular/core").Signal<string | null>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbStatusChipComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbStatusChipComponent, "rb-status-chip", never, {
|
|
19
|
+
"label": {
|
|
20
|
+
"alias": "label";
|
|
21
|
+
"required": true;
|
|
22
|
+
"isSignal": true;
|
|
23
|
+
};
|
|
24
|
+
"tone": {
|
|
25
|
+
"alias": "tone";
|
|
26
|
+
"required": false;
|
|
27
|
+
"isSignal": true;
|
|
28
|
+
};
|
|
29
|
+
"icon": {
|
|
30
|
+
"alias": "icon";
|
|
31
|
+
"required": false;
|
|
32
|
+
"isSignal": true;
|
|
33
|
+
};
|
|
34
|
+
"size": {
|
|
35
|
+
"alias": "size";
|
|
36
|
+
"required": false;
|
|
37
|
+
"isSignal": true;
|
|
38
|
+
};
|
|
39
|
+
}, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Identifier, key, hash or path in monospace on one line (docs/design-system.md, section 15.6).
|
|
4
|
+
* A value that does not fit is truncated with an ellipsis and the full value appears in a tooltip.
|
|
5
|
+
* Screen readers and copying always get the full value, even when `displayValue` shortens it.
|
|
6
|
+
*/
|
|
7
|
+
export declare class RbTechnicalValueComponent {
|
|
8
|
+
readonly value: import("@angular/core").InputSignal<string>;
|
|
9
|
+
/** Shorter text to show instead of the value, such as the first characters of a hash. */
|
|
10
|
+
readonly displayValue: import("@angular/core").InputSignal<string>;
|
|
11
|
+
private readonly host;
|
|
12
|
+
private readonly destroyRef;
|
|
13
|
+
private readonly text;
|
|
14
|
+
private readonly truncated;
|
|
15
|
+
protected readonly shownValue: import("@angular/core").Signal<string>;
|
|
16
|
+
protected readonly shortened: import("@angular/core").Signal<boolean>;
|
|
17
|
+
protected readonly tooltipEnabled: import("@angular/core").Signal<boolean>;
|
|
18
|
+
constructor();
|
|
19
|
+
/** Copying a selection inside the component copies the full value, not the shortened text. */
|
|
20
|
+
protected copyFullValue(event: ClipboardEvent): void;
|
|
21
|
+
private measure;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbTechnicalValueComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbTechnicalValueComponent, "rb-technical-value", never, {
|
|
24
|
+
"value": {
|
|
25
|
+
"alias": "value";
|
|
26
|
+
"required": true;
|
|
27
|
+
"isSignal": true;
|
|
28
|
+
};
|
|
29
|
+
"displayValue": {
|
|
30
|
+
"alias": "displayValue";
|
|
31
|
+
"required": false;
|
|
32
|
+
"isSignal": true;
|
|
33
|
+
};
|
|
34
|
+
}, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ThemeService } from "@rblabs-dev/axiom/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Light/dark switch for the app shell (docs/design-system.md, section 11). The accessible name stays
|
|
5
|
+
* "Dark theme" and `aria-pressed` carries the state, so the label never rewrites itself into the
|
|
6
|
+
* opposite action. Renders nothing while the app forces a theme.
|
|
7
|
+
*/
|
|
8
|
+
export declare class RbThemeToggleComponent {
|
|
9
|
+
protected readonly theme: ThemeService;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbThemeToggleComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbThemeToggleComponent, "rb-theme-toggle", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|