@rblabs-dev/axiom 1.2.1 → 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 +39 -13
- package/app-shell/package.json +4 -0
- package/brand-lockup/package.json +4 -0
- package/central-sign-in/package.json +4 -0
- package/cli/build-brand-assets.mjs +12 -18
- package/cli/project.mjs +6 -0
- package/cli/verify-production-assets.mjs +71 -6
- 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/fonts/LICENSE +93 -0
- package/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/message/package.json +4 -0
- package/monogram/package.json +4 -0
- package/package.json +77 -2
- 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/_fonts.scss +7 -7
- 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
package/fonts/LICENSE
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rblabs-dev/axiom",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Axiom, the RB Labs design system for Angular and Angular Material 3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -31,9 +31,69 @@
|
|
|
31
31
|
"./package.json": {
|
|
32
32
|
"default": "./package.json"
|
|
33
33
|
},
|
|
34
|
+
"./app-shell": {
|
|
35
|
+
"types": "./types/rblabs-dev-axiom-app-shell.d.ts",
|
|
36
|
+
"default": "./fesm2022/rblabs-dev-axiom-app-shell.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./brand-lockup": {
|
|
39
|
+
"types": "./types/rblabs-dev-axiom-brand-lockup.d.ts",
|
|
40
|
+
"default": "./fesm2022/rblabs-dev-axiom-brand-lockup.mjs"
|
|
41
|
+
},
|
|
42
|
+
"./central-sign-in": {
|
|
43
|
+
"types": "./types/rblabs-dev-axiom-central-sign-in.d.ts",
|
|
44
|
+
"default": "./fesm2022/rblabs-dev-axiom-central-sign-in.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./confirm-dialog": {
|
|
47
|
+
"types": "./types/rblabs-dev-axiom-confirm-dialog.d.ts",
|
|
48
|
+
"default": "./fesm2022/rblabs-dev-axiom-confirm-dialog.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./core": {
|
|
51
|
+
"types": "./types/rblabs-dev-axiom-core.d.ts",
|
|
52
|
+
"default": "./fesm2022/rblabs-dev-axiom-core.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./empty-state": {
|
|
55
|
+
"types": "./types/rblabs-dev-axiom-empty-state.d.ts",
|
|
56
|
+
"default": "./fesm2022/rblabs-dev-axiom-empty-state.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./message": {
|
|
59
|
+
"types": "./types/rblabs-dev-axiom-message.d.ts",
|
|
60
|
+
"default": "./fesm2022/rblabs-dev-axiom-message.mjs"
|
|
61
|
+
},
|
|
62
|
+
"./monogram": {
|
|
63
|
+
"types": "./types/rblabs-dev-axiom-monogram.d.ts",
|
|
64
|
+
"default": "./fesm2022/rblabs-dev-axiom-monogram.mjs"
|
|
65
|
+
},
|
|
66
|
+
"./page-header": {
|
|
67
|
+
"types": "./types/rblabs-dev-axiom-page-header.d.ts",
|
|
68
|
+
"default": "./fesm2022/rblabs-dev-axiom-page-header.mjs"
|
|
69
|
+
},
|
|
70
|
+
"./panel": {
|
|
71
|
+
"types": "./types/rblabs-dev-axiom-panel.d.ts",
|
|
72
|
+
"default": "./fesm2022/rblabs-dev-axiom-panel.mjs"
|
|
73
|
+
},
|
|
74
|
+
"./public-shell": {
|
|
75
|
+
"types": "./types/rblabs-dev-axiom-public-shell.d.ts",
|
|
76
|
+
"default": "./fesm2022/rblabs-dev-axiom-public-shell.mjs"
|
|
77
|
+
},
|
|
78
|
+
"./shell-footer": {
|
|
79
|
+
"types": "./types/rblabs-dev-axiom-shell-footer.d.ts",
|
|
80
|
+
"default": "./fesm2022/rblabs-dev-axiom-shell-footer.mjs"
|
|
81
|
+
},
|
|
34
82
|
"./showcase": {
|
|
35
83
|
"types": "./types/rblabs-dev-axiom-showcase.d.ts",
|
|
36
84
|
"default": "./fesm2022/rblabs-dev-axiom-showcase.mjs"
|
|
85
|
+
},
|
|
86
|
+
"./status-chip": {
|
|
87
|
+
"types": "./types/rblabs-dev-axiom-status-chip.d.ts",
|
|
88
|
+
"default": "./fesm2022/rblabs-dev-axiom-status-chip.mjs"
|
|
89
|
+
},
|
|
90
|
+
"./technical-value": {
|
|
91
|
+
"types": "./types/rblabs-dev-axiom-technical-value.d.ts",
|
|
92
|
+
"default": "./fesm2022/rblabs-dev-axiom-technical-value.mjs"
|
|
93
|
+
},
|
|
94
|
+
"./theme-toggle": {
|
|
95
|
+
"types": "./types/rblabs-dev-axiom-theme-toggle.d.ts",
|
|
96
|
+
"default": "./fesm2022/rblabs-dev-axiom-theme-toggle.mjs"
|
|
37
97
|
}
|
|
38
98
|
},
|
|
39
99
|
"bin": {
|
|
@@ -42,8 +102,24 @@
|
|
|
42
102
|
"files": [
|
|
43
103
|
"fesm2022",
|
|
44
104
|
"types",
|
|
105
|
+
"app-shell",
|
|
106
|
+
"brand-lockup",
|
|
107
|
+
"central-sign-in",
|
|
108
|
+
"confirm-dialog",
|
|
109
|
+
"core",
|
|
110
|
+
"empty-state",
|
|
111
|
+
"message",
|
|
112
|
+
"monogram",
|
|
113
|
+
"page-header",
|
|
114
|
+
"panel",
|
|
115
|
+
"public-shell",
|
|
116
|
+
"shell-footer",
|
|
45
117
|
"showcase",
|
|
118
|
+
"status-chip",
|
|
119
|
+
"technical-value",
|
|
120
|
+
"theme-toggle",
|
|
46
121
|
"styles",
|
|
122
|
+
"fonts",
|
|
47
123
|
"brand",
|
|
48
124
|
"material-symbols-icons.txt",
|
|
49
125
|
"cli"
|
|
@@ -59,7 +135,6 @@
|
|
|
59
135
|
"rxjs": "^7.8.0"
|
|
60
136
|
},
|
|
61
137
|
"dependencies": {
|
|
62
|
-
"@fontsource-variable/inter": "^5.3.0",
|
|
63
138
|
"tslib": "^2.3.0"
|
|
64
139
|
},
|
|
65
140
|
"sideEffects": false,
|
package/styles/_fonts.scss
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// Self-hosted fonts (docs/design-system.md, sections 6.1 and 10). Nothing here loads from a CDN:
|
|
2
|
-
// Inter Variable
|
|
3
|
-
//
|
|
2
|
+
// the app serves Inter Variable from the package's fonts/ folder and its Material Symbols subset
|
|
3
|
+
// from public/fonts/, both at /fonts/.
|
|
4
4
|
|
|
5
5
|
// Inter Variable, Latin and Latin Extended. `optional` paints with the system fallback at once on a
|
|
6
|
-
// slow network instead of delaying or reflowing the first render.
|
|
6
|
+
// slow network instead of delaying or reflowing the first render. The URLs are stable so that the
|
|
7
|
+
// app's index.html can preload the Latin file: the font then loads with the HTML instead of after
|
|
8
|
+
// the global stylesheet, which a first visit needs to get Inter within the `optional` window.
|
|
7
9
|
@mixin inter() {
|
|
8
10
|
@font-face {
|
|
9
11
|
font-family: 'Inter Variable';
|
|
10
12
|
font-style: normal;
|
|
11
13
|
font-display: optional;
|
|
12
14
|
font-weight: 100 900;
|
|
13
|
-
src: url('
|
|
14
|
-
format('woff2-variations');
|
|
15
|
+
src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
|
|
15
16
|
unicode-range:
|
|
16
17
|
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
17
18
|
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
@@ -22,8 +23,7 @@
|
|
|
22
23
|
font-style: normal;
|
|
23
24
|
font-display: optional;
|
|
24
25
|
font-weight: 100 900;
|
|
25
|
-
src: url('
|
|
26
|
-
format('woff2-variations');
|
|
26
|
+
src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
|
|
27
27
|
unicode-range:
|
|
28
28
|
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
|
|
29
29
|
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
|
package/styles/_index.scss
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
@forward 'breakpoints' show below, above, $breakpoints;
|
|
28
28
|
|
|
29
29
|
// Stamped from projects/axiom/package.json by the build (scripts/stamp-version.mjs).
|
|
30
|
-
$version: '1.2.
|
|
30
|
+
$version: '1.2.3';
|
|
31
31
|
|
|
32
32
|
@mixin design-system($scope: null, $icon-font-url: null) {
|
|
33
33
|
@include fonts.inter();
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* `sidenav`: a navigation rail beside the content that becomes a drawer below `lg`.
|
|
4
|
+
* `modules`: a short list of sections beside the content that becomes a row, then a tab bar.
|
|
5
|
+
* `none`: top-level links, if any, go in the `[rbShellActions]` slot.
|
|
6
|
+
*/
|
|
7
|
+
export type RbAppShellNavigation = 'none' | 'sidenav' | 'modules';
|
|
8
|
+
/**
|
|
9
|
+
* Frame for authenticated and operational areas (docs/design-system.md, section 16.1): skip link,
|
|
10
|
+
* top bar with the brand lockup, title, actions and theme toggle, optional navigation, the content
|
|
11
|
+
* column and the standard footer.
|
|
12
|
+
*/
|
|
13
|
+
export declare class RbAppShellComponent {
|
|
14
|
+
/** Shown in the lockup and the footer: `Admin`, `Auth`, `Rover`, `Photogrammetry`… */
|
|
15
|
+
readonly appName: import("@angular/core").InputSignal<string>;
|
|
16
|
+
/** The lockup's link target, as a `routerLink` value. */
|
|
17
|
+
readonly homeLink: import("@angular/core").InputSignal<string | readonly unknown[]>;
|
|
18
|
+
readonly navigation: import("@angular/core").InputSignal<RbAppShellNavigation>;
|
|
19
|
+
protected readonly hasSidenav: import("@angular/core").Signal<boolean>;
|
|
20
|
+
private readonly breakpointObserver;
|
|
21
|
+
/** Below `lg` the sidenav is an overlay drawer (section 8.1). */
|
|
22
|
+
readonly isDrawer: import("@angular/core").WritableSignal<boolean>;
|
|
23
|
+
readonly drawerOpen: import("@angular/core").WritableSignal<boolean>;
|
|
24
|
+
private readonly main;
|
|
25
|
+
constructor();
|
|
26
|
+
toggleDrawer(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Moves focus to `<main>` without changing the URL: with `<base href="/">` a bare `#main-content`
|
|
29
|
+
* link would resolve to the root route instead of the current page.
|
|
30
|
+
*/
|
|
31
|
+
protected skipToMain(event: Event): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbAppShellComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbAppShellComponent, "rb-app-shell", never, {
|
|
34
|
+
"appName": {
|
|
35
|
+
"alias": "appName";
|
|
36
|
+
"required": true;
|
|
37
|
+
"isSignal": true;
|
|
38
|
+
};
|
|
39
|
+
"homeLink": {
|
|
40
|
+
"alias": "homeLink";
|
|
41
|
+
"required": false;
|
|
42
|
+
"isSignal": true;
|
|
43
|
+
};
|
|
44
|
+
"navigation": {
|
|
45
|
+
"alias": "navigation";
|
|
46
|
+
"required": false;
|
|
47
|
+
"isSignal": true;
|
|
48
|
+
};
|
|
49
|
+
}, {}, never, ["[rbShellTitle]", "[rbShellActions]", "[rbShellSidenav]", "[rbShellModuleNav]", "*", "[rbShellFooter]"], true, never>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/** `true` shows only the monogram; `'below-sm'` does so only below the `sm` breakpoint. */
|
|
3
|
+
export type RbBrandLockupCompact = boolean | 'below-sm';
|
|
4
|
+
/**
|
|
5
|
+
* The RB monogram followed by "RB Labs · <App name>", as a link to the app's home
|
|
6
|
+
* (docs/design-system.md, section 12.2). The accessible name stays "RB Labs <App name> home" in
|
|
7
|
+
* every variant.
|
|
8
|
+
*/
|
|
9
|
+
export declare class RbBrandLockupComponent {
|
|
10
|
+
/** `Admin`, `Auth`, `Rover`, `Photogrammetry` or a new app's name. */
|
|
11
|
+
readonly appName: import("@angular/core").InputSignal<string>;
|
|
12
|
+
/** The app's home, as a `routerLink` value. */
|
|
13
|
+
readonly link: import("@angular/core").InputSignal<string | readonly unknown[]>;
|
|
14
|
+
readonly compact: import("@angular/core").InputSignalWithTransform<RbBrandLockupCompact, "" | RbBrandLockupCompact>;
|
|
15
|
+
protected readonly accessibleName: import("@angular/core").Signal<string>;
|
|
16
|
+
protected readonly compactAttribute: import("@angular/core").Signal<"below-sm" | "always" | null>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbBrandLockupComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbBrandLockupComponent, "rb-brand-lockup", never, {
|
|
19
|
+
"appName": {
|
|
20
|
+
"alias": "appName";
|
|
21
|
+
"required": true;
|
|
22
|
+
"isSignal": true;
|
|
23
|
+
};
|
|
24
|
+
"link": {
|
|
25
|
+
"alias": "link";
|
|
26
|
+
"required": false;
|
|
27
|
+
"isSignal": true;
|
|
28
|
+
};
|
|
29
|
+
"compact": {
|
|
30
|
+
"alias": "compact";
|
|
31
|
+
"required": false;
|
|
32
|
+
"isSignal": true;
|
|
33
|
+
};
|
|
34
|
+
}, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* The central sign-in page (docs/design-system.md, section 16.3): one card that hands the user off
|
|
4
|
+
* to RB Labs Auth. Apps that sign in through Auth place it alone in `rb-public-shell`; it renders
|
|
5
|
+
* the page's single `<h1>`, collects no credentials and emits `signIn` for the app to start the
|
|
6
|
+
* handoff with its own return path.
|
|
7
|
+
*/
|
|
8
|
+
export declare class RbCentralSignInComponent {
|
|
9
|
+
/** The app the user signs in to: `Admin`, `Rover`, `Photogrammetry`… */
|
|
10
|
+
readonly appName: import("@angular/core").InputSignal<string>;
|
|
11
|
+
/** Overrides the default title, `Sign in to RB Labs <appName>`. */
|
|
12
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
13
|
+
/** Short context above the title, such as the workspace the page protects. */
|
|
14
|
+
readonly eyebrow: import("@angular/core").InputSignal<string>;
|
|
15
|
+
/** Overrides the default sentence about where the user is sent. */
|
|
16
|
+
readonly description: import("@angular/core").InputSignal<string>;
|
|
17
|
+
/** Material Symbols name of the app's icon in the card header. */
|
|
18
|
+
readonly icon: import("@angular/core").InputSignal<string>;
|
|
19
|
+
/** Host shown in the identity row. */
|
|
20
|
+
readonly authHost: import("@angular/core").InputSignal<string>;
|
|
21
|
+
/** Optional closing note, such as who may enter the app. */
|
|
22
|
+
readonly note: import("@angular/core").InputSignal<string>;
|
|
23
|
+
/** A safe, non-disclosing message for the failure the app was sent back with. */
|
|
24
|
+
readonly error: import("@angular/core").InputSignal<string | null>;
|
|
25
|
+
/** The "Back to home" target, as a `routerLink` value. */
|
|
26
|
+
readonly backLink: import("@angular/core").InputSignal<string | readonly unknown[]>;
|
|
27
|
+
/** The primary action: the app starts the Auth handoff with its return path. */
|
|
28
|
+
readonly signIn: import("@angular/core").OutputEmitterRef<void>;
|
|
29
|
+
protected readonly titleId: string;
|
|
30
|
+
protected readonly resolvedTitle: import("@angular/core").Signal<string>;
|
|
31
|
+
protected readonly resolvedDescription: import("@angular/core").Signal<string>;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbCentralSignInComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbCentralSignInComponent, "rb-central-sign-in", never, {
|
|
34
|
+
"appName": {
|
|
35
|
+
"alias": "appName";
|
|
36
|
+
"required": true;
|
|
37
|
+
"isSignal": true;
|
|
38
|
+
};
|
|
39
|
+
"title": {
|
|
40
|
+
"alias": "title";
|
|
41
|
+
"required": false;
|
|
42
|
+
"isSignal": true;
|
|
43
|
+
};
|
|
44
|
+
"eyebrow": {
|
|
45
|
+
"alias": "eyebrow";
|
|
46
|
+
"required": false;
|
|
47
|
+
"isSignal": true;
|
|
48
|
+
};
|
|
49
|
+
"description": {
|
|
50
|
+
"alias": "description";
|
|
51
|
+
"required": false;
|
|
52
|
+
"isSignal": true;
|
|
53
|
+
};
|
|
54
|
+
"icon": {
|
|
55
|
+
"alias": "icon";
|
|
56
|
+
"required": false;
|
|
57
|
+
"isSignal": true;
|
|
58
|
+
};
|
|
59
|
+
"authHost": {
|
|
60
|
+
"alias": "authHost";
|
|
61
|
+
"required": false;
|
|
62
|
+
"isSignal": true;
|
|
63
|
+
};
|
|
64
|
+
"note": {
|
|
65
|
+
"alias": "note";
|
|
66
|
+
"required": false;
|
|
67
|
+
"isSignal": true;
|
|
68
|
+
};
|
|
69
|
+
"error": {
|
|
70
|
+
"alias": "error";
|
|
71
|
+
"required": false;
|
|
72
|
+
"isSignal": true;
|
|
73
|
+
};
|
|
74
|
+
"backLink": {
|
|
75
|
+
"alias": "backLink";
|
|
76
|
+
"required": false;
|
|
77
|
+
"isSignal": true;
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
"signIn": "signIn";
|
|
81
|
+
}, never, never, true, never>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { FormControl } from "@angular/forms";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type RbConfirmDialogTone = 'primary' | 'danger';
|
|
4
|
+
export interface RbConfirmDialogReason {
|
|
5
|
+
/** Visible label of the reason field. Defaults to "Reason". */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Helper text under the field. */
|
|
8
|
+
hint?: string;
|
|
9
|
+
/** Minimum length of the trimmed reason. Defaults to 3. */
|
|
10
|
+
minimumLength?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface RbConfirmDialogData {
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
confirmLabel: string;
|
|
16
|
+
/** Defaults to "Cancel". */
|
|
17
|
+
cancelLabel?: string;
|
|
18
|
+
/** `danger` is for destructive or irreversible actions. Defaults to `primary`. */
|
|
19
|
+
tone?: RbConfirmDialogTone;
|
|
20
|
+
/** Asks for a required reason, returned trimmed in the result. */
|
|
21
|
+
reason?: RbConfirmDialogReason;
|
|
22
|
+
}
|
|
23
|
+
export interface RbConfirmDialogResult {
|
|
24
|
+
confirmed: boolean;
|
|
25
|
+
reason?: string;
|
|
26
|
+
}
|
|
27
|
+
/** Data the service adds so the dialog container can reference the description. */
|
|
28
|
+
export interface RbConfirmDialogInternalData extends RbConfirmDialogData {
|
|
29
|
+
descriptionId?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Generates the ids shared by the service (dialog config) and the dialog content. */
|
|
32
|
+
export declare function rbConfirmDialogId(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Confirmation content opened by `RbConfirmDialogService` (docs/design-system.md, section 15.7).
|
|
35
|
+
* Use the service rather than opening this component directly.
|
|
36
|
+
*/
|
|
37
|
+
export declare class RbConfirmDialogComponent {
|
|
38
|
+
protected readonly data: RbConfirmDialogInternalData;
|
|
39
|
+
private readonly dialogRef;
|
|
40
|
+
private readonly reasonInput;
|
|
41
|
+
private readonly id;
|
|
42
|
+
protected readonly descriptionId: string;
|
|
43
|
+
protected readonly reasonId: string;
|
|
44
|
+
protected readonly tone: RbConfirmDialogTone;
|
|
45
|
+
protected readonly minimumReasonLength: number;
|
|
46
|
+
private readonly trimmedMinLength;
|
|
47
|
+
protected readonly reason: FormControl<string>;
|
|
48
|
+
private readonly submitted;
|
|
49
|
+
protected showReasonError(): boolean;
|
|
50
|
+
protected reasonDescribedBy(): string | null;
|
|
51
|
+
cancel(): void;
|
|
52
|
+
confirm(): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbConfirmDialogComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RbConfirmDialogComponent, "rb-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Asks the user to confirm an action (docs/design-system.md, section 15.7):
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* const { confirmed, reason } = await confirmDialog.confirm({
|
|
61
|
+
* title: 'Revoke credential?',
|
|
62
|
+
* description: 'Clients using it stop working immediately.',
|
|
63
|
+
* confirmLabel: 'Revoke credential',
|
|
64
|
+
* tone: 'danger',
|
|
65
|
+
* reason: { label: 'Reason for revoking' },
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* Closing the dialog in any other way (Cancel, Escape, the backdrop) resolves `confirmed: false`.
|
|
70
|
+
*/
|
|
71
|
+
export declare class RbConfirmDialogService {
|
|
72
|
+
private readonly dialog;
|
|
73
|
+
confirm(data: RbConfirmDialogData): Promise<RbConfirmDialogResult>;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbConfirmDialogService, never>;
|
|
75
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
76
|
+
}
|