@wildmason/aegis 1.18.0 → 2.0.0
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/CHANGELOG.md +70 -1
- package/dist/fesm2022/wildmason-aegis-license.mjs +153 -0
- package/dist/fesm2022/wildmason-aegis-license.mjs.map +1 -0
- package/dist/fesm2022/wildmason-aegis.mjs +184 -319
- package/dist/fesm2022/wildmason-aegis.mjs.map +1 -1
- package/dist/types/wildmason-aegis-license.d.ts +73 -0
- package/dist/types/wildmason-aegis.d.ts +2 -71
- package/inputs.css +4 -8
- package/package.json +27 -13
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface LicenseStatus {
|
|
4
|
+
valid: boolean;
|
|
5
|
+
org: string | null;
|
|
6
|
+
product: string;
|
|
7
|
+
seats: number | null;
|
|
8
|
+
tier: string | null;
|
|
9
|
+
expires: string | null;
|
|
10
|
+
key_id: string | null;
|
|
11
|
+
error: string | null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class WmLicenseService {
|
|
15
|
+
private toast;
|
|
16
|
+
readonly license: _angular_core.WritableSignal<LicenseStatus>;
|
|
17
|
+
readonly isLicensed: _angular_core.Signal<boolean>;
|
|
18
|
+
readonly orgName: _angular_core.Signal<string>;
|
|
19
|
+
checkLicense(): Promise<void>;
|
|
20
|
+
installKey(jwt: string): Promise<LicenseStatus>;
|
|
21
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WmLicenseService, never>;
|
|
22
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<WmLicenseService>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* One of the values written to `AppConfig.declared_use_type` by the
|
|
27
|
+
* first-run EULA modal in apps that gate on use-type self-attestation
|
|
28
|
+
* (Mortar). Apps without a use-type system (Helm) leave this `null` and
|
|
29
|
+
* the nudge falls back to its original behaviour: visible to anyone
|
|
30
|
+
* without a valid commercial key.
|
|
31
|
+
*/
|
|
32
|
+
type WmDeclaredUseType = 'personal' | 'oss' | 'commercial';
|
|
33
|
+
declare class WmLicenseNudge {
|
|
34
|
+
private licenseService;
|
|
35
|
+
/**
|
|
36
|
+
* Self-declared use type from the host app's first-run modal. When the
|
|
37
|
+
* user has declared `personal` or `oss` the nudge stays hidden — they've
|
|
38
|
+
* already told us a commercial key isn't relevant. `commercial` (without
|
|
39
|
+
* a key) and `null` (no declaration yet) keep the nudge visible.
|
|
40
|
+
*
|
|
41
|
+
* Typed `string | null` rather than `WmDeclaredUseType | null` because
|
|
42
|
+
* ng-packagr's partial-compilation d.ts emit drops the `null` from a
|
|
43
|
+
* union with a string-literal type, which then forces every consumer to
|
|
44
|
+
* `as` the binding. Runtime narrowing happens in `shouldShow`.
|
|
45
|
+
*/
|
|
46
|
+
readonly declaredUseType: _angular_core.InputSignal<string>;
|
|
47
|
+
dismissed: _angular_core.WritableSignal<boolean>;
|
|
48
|
+
enterLicense: _angular_core.OutputEmitterRef<void>;
|
|
49
|
+
protected readonly shouldShow: () => boolean;
|
|
50
|
+
dismiss(): void;
|
|
51
|
+
onEnterLicense(): void;
|
|
52
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WmLicenseNudge, never>;
|
|
53
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WmLicenseNudge, "wm-license-nudge", never, { "declaredUseType": { "alias": "declaredUseType"; "required": false; "isSignal": true; }; }, { "enterLicense": "enterLicense"; }, never, never, true, never>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class WmLicenseDialog {
|
|
57
|
+
private licenseService;
|
|
58
|
+
visible: _angular_core.InputSignal<boolean>;
|
|
59
|
+
dismiss: _angular_core.OutputEmitterRef<void>;
|
|
60
|
+
keyInput: _angular_core.WritableSignal<string>;
|
|
61
|
+
validationResult: _angular_core.WritableSignal<LicenseStatus>;
|
|
62
|
+
validating: _angular_core.WritableSignal<boolean>;
|
|
63
|
+
installed: _angular_core.WritableSignal<boolean>;
|
|
64
|
+
onDismiss(): void;
|
|
65
|
+
onKeyInput(event: Event): void;
|
|
66
|
+
validate(): Promise<void>;
|
|
67
|
+
private reset;
|
|
68
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WmLicenseDialog, never>;
|
|
69
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WmLicenseDialog, "wm-license-dialog", never, { "visible": { "alias": "visible"; "required": true; "isSignal": true; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { WmLicenseDialog, WmLicenseNudge, WmLicenseService };
|
|
73
|
+
export type { LicenseStatus, WmDeclaredUseType };
|
|
@@ -1090,74 +1090,5 @@ declare class WmRichTooltip {
|
|
|
1090
1090
|
*/
|
|
1091
1091
|
declare function onViewportChange(handler: () => void): () => void;
|
|
1092
1092
|
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
org: string | null;
|
|
1096
|
-
product: string;
|
|
1097
|
-
seats: number | null;
|
|
1098
|
-
tier: string | null;
|
|
1099
|
-
expires: string | null;
|
|
1100
|
-
key_id: string | null;
|
|
1101
|
-
error: string | null;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
declare class WmLicenseService {
|
|
1105
|
-
private toast;
|
|
1106
|
-
readonly license: _angular_core.WritableSignal<LicenseStatus>;
|
|
1107
|
-
readonly isLicensed: _angular_core.Signal<boolean>;
|
|
1108
|
-
readonly orgName: _angular_core.Signal<string>;
|
|
1109
|
-
checkLicense(): Promise<void>;
|
|
1110
|
-
installKey(jwt: string): Promise<LicenseStatus>;
|
|
1111
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WmLicenseService, never>;
|
|
1112
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<WmLicenseService>;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
/**
|
|
1116
|
-
* One of the values written to `AppConfig.declared_use_type` by the
|
|
1117
|
-
* first-run EULA modal in apps that gate on use-type self-attestation
|
|
1118
|
-
* (Mortar). Apps without a use-type system (Helm) leave this `null` and
|
|
1119
|
-
* the nudge falls back to its original behaviour: visible to anyone
|
|
1120
|
-
* without a valid commercial key.
|
|
1121
|
-
*/
|
|
1122
|
-
type WmDeclaredUseType = 'personal' | 'oss' | 'commercial';
|
|
1123
|
-
declare class WmLicenseNudge {
|
|
1124
|
-
private licenseService;
|
|
1125
|
-
/**
|
|
1126
|
-
* Self-declared use type from the host app's first-run modal. When the
|
|
1127
|
-
* user has declared `personal` or `oss` the nudge stays hidden — they've
|
|
1128
|
-
* already told us a commercial key isn't relevant. `commercial` (without
|
|
1129
|
-
* a key) and `null` (no declaration yet) keep the nudge visible.
|
|
1130
|
-
*
|
|
1131
|
-
* Typed `string | null` rather than `WmDeclaredUseType | null` because
|
|
1132
|
-
* ng-packagr's partial-compilation d.ts emit drops the `null` from a
|
|
1133
|
-
* union with a string-literal type, which then forces every consumer to
|
|
1134
|
-
* `as` the binding. Runtime narrowing happens in `shouldShow`.
|
|
1135
|
-
*/
|
|
1136
|
-
readonly declaredUseType: _angular_core.InputSignal<string>;
|
|
1137
|
-
dismissed: _angular_core.WritableSignal<boolean>;
|
|
1138
|
-
enterLicense: _angular_core.OutputEmitterRef<void>;
|
|
1139
|
-
protected readonly shouldShow: () => boolean;
|
|
1140
|
-
dismiss(): void;
|
|
1141
|
-
onEnterLicense(): void;
|
|
1142
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WmLicenseNudge, never>;
|
|
1143
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WmLicenseNudge, "wm-license-nudge", never, { "declaredUseType": { "alias": "declaredUseType"; "required": false; "isSignal": true; }; }, { "enterLicense": "enterLicense"; }, never, never, true, never>;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
declare class WmLicenseDialog {
|
|
1147
|
-
private licenseService;
|
|
1148
|
-
visible: _angular_core.InputSignal<boolean>;
|
|
1149
|
-
dismiss: _angular_core.OutputEmitterRef<void>;
|
|
1150
|
-
keyInput: _angular_core.WritableSignal<string>;
|
|
1151
|
-
validationResult: _angular_core.WritableSignal<LicenseStatus>;
|
|
1152
|
-
validating: _angular_core.WritableSignal<boolean>;
|
|
1153
|
-
installed: _angular_core.WritableSignal<boolean>;
|
|
1154
|
-
onDismiss(): void;
|
|
1155
|
-
onKeyInput(event: Event): void;
|
|
1156
|
-
validate(): Promise<void>;
|
|
1157
|
-
private reset;
|
|
1158
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WmLicenseDialog, never>;
|
|
1159
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WmLicenseDialog, "wm-license-dialog", never, { "visible": { "alias": "visible"; "required": true; "isSignal": true; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
export { Checkbox, GhostField, NumberInput, PageHeader, Toggle, WmAnchoredScrollStrategy, WmAutoFocus, WmButton, WmCombobox, WmDialog, WmLicenseDialog, WmLicenseNudge, WmLicenseService, WmModal, WmPopover, WmRichTooltip, WmRichTooltipContent, WmRichTooltipTrigger, WmSelect, WmTab, WmTabs, WmToastContainer, WmToastService, WmTooltip, onViewportChange };
|
|
1163
|
-
export type { ButtonSize, ButtonVariant, ComboboxOption, DialogSize, LicenseStatus, SelectOption, Toast, ToastType, WmDeclaredUseType, WmTooltipPosition, WmTooltipRelation };
|
|
1093
|
+
export { Checkbox, GhostField, NumberInput, PageHeader, Toggle, WmAnchoredScrollStrategy, WmAutoFocus, WmButton, WmCombobox, WmDialog, WmModal, WmPopover, WmRichTooltip, WmRichTooltipContent, WmRichTooltipTrigger, WmSelect, WmTab, WmTabs, WmToastContainer, WmToastService, WmTooltip, onViewportChange };
|
|
1094
|
+
export type { ButtonSize, ButtonVariant, ComboboxOption, DialogSize, SelectOption, Toast, ToastType, WmTooltipPosition, WmTooltipRelation };
|
package/inputs.css
CHANGED
|
@@ -1632,14 +1632,11 @@ select.wm-input {
|
|
|
1632
1632
|
</span>
|
|
1633
1633
|
</button>
|
|
1634
1634
|
|
|
1635
|
-
.wm-kbd--on-accent
|
|
1636
|
-
|
|
1637
|
-
a published class is a breaking change, and it is deprecated
|
|
1638
|
-
because the mechanism was never accent-specific. Prefer --on-fill.
|
|
1635
|
+
.wm-kbd--on-accent, the name this shipped under in 1.16.0, was
|
|
1636
|
+
removed in 2.0.0: the mechanism was never accent-specific.
|
|
1639
1637
|
---------------------------------------------------------------- */
|
|
1640
1638
|
|
|
1641
|
-
.wm-kbd--on-fill
|
|
1642
|
-
.wm-kbd--on-accent {
|
|
1639
|
+
.wm-kbd--on-fill {
|
|
1643
1640
|
color: inherit;
|
|
1644
1641
|
background: transparent;
|
|
1645
1642
|
border-color: color-mix(in srgb, currentColor 75%, transparent);
|
|
@@ -1648,7 +1645,6 @@ select.wm-input {
|
|
|
1648
1645
|
/* The combo's `+` is --wm-text-muted, a surface colour, so it is as wrong on
|
|
1649
1646
|
a fill as the cap's own tokens were. Same share as the edge, so there is one
|
|
1650
1647
|
number to keep in step rather than two. */
|
|
1651
|
-
.wm-kbd-combo > .wm-kbd--on-fill + .wm-kbd--on-fill::before
|
|
1652
|
-
.wm-kbd-combo > .wm-kbd--on-accent + .wm-kbd--on-accent::before {
|
|
1648
|
+
.wm-kbd-combo > .wm-kbd--on-fill + .wm-kbd--on-fill::before {
|
|
1653
1649
|
color: color-mix(in srgb, currentColor 75%, transparent);
|
|
1654
1650
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildmason/aegis",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Aegis design system
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Aegis design system — CSS tokens and Angular component library",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"check:offline-fonts": "node scripts/check-offline-fonts.mjs",
|
|
7
|
-
"build": "npm run check:offline-fonts && npm run check:destructive-contrast && npm run check:semantic-contrast && npm run check:accent-contrast && npm run check:tooltip-contrast && npm run check:docs && ng-packagr -p ng-package.json",
|
|
7
|
+
"build": "npm run check:offline-fonts && npm run check:destructive-contrast && npm run check:semantic-contrast && npm run check:accent-contrast && npm run check:tooltip-contrast && npm run check:docs && ng-packagr -p ng-package.json && npm run check:entry-points",
|
|
8
8
|
"prepublishOnly": "npm run build",
|
|
9
9
|
"check:destructive-contrast": "node scripts/check-destructive-contrast.mjs",
|
|
10
10
|
"check:semantic-contrast": "node scripts/check-semantic-contrast.mjs",
|
|
11
11
|
"check:tooltip-contrast": "node scripts/check-tooltip-contrast.mjs",
|
|
12
12
|
"check:accent-contrast": "node scripts/check-accent-contrast.mjs",
|
|
13
|
-
"check:docs": "node scripts/check-design-language.mjs"
|
|
13
|
+
"check:docs": "node scripts/check-design-language.mjs",
|
|
14
|
+
"check:entry-points": "node scripts/check-entry-points.mjs"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"CHANGELOG.md",
|
|
@@ -22,9 +23,17 @@
|
|
|
22
23
|
"exports": {
|
|
23
24
|
"./themes.css": "./themes.css",
|
|
24
25
|
"./inputs.css": "./inputs.css",
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/types/wildmason-aegis.d.ts",
|
|
28
|
+
"default": "./dist/fesm2022/wildmason-aegis.mjs"
|
|
29
|
+
},
|
|
25
30
|
"./components": {
|
|
26
31
|
"types": "./dist/types/wildmason-aegis.d.ts",
|
|
27
32
|
"default": "./dist/fesm2022/wildmason-aegis.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./license": {
|
|
35
|
+
"types": "./dist/types/wildmason-aegis-license.d.ts",
|
|
36
|
+
"default": "./dist/fesm2022/wildmason-aegis-license.mjs"
|
|
28
37
|
}
|
|
29
38
|
},
|
|
30
39
|
"peerDependencies": {
|
|
@@ -34,16 +43,21 @@
|
|
|
34
43
|
"rxjs": ">=7",
|
|
35
44
|
"tslib": "^2.3.0"
|
|
36
45
|
},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"@tauri-apps/api": {
|
|
48
|
+
"optional": true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
37
51
|
"devDependencies": {
|
|
38
|
-
"@angular/cdk": "^21.
|
|
39
|
-
"@angular/common": "21.2.
|
|
40
|
-
"@angular/compiler": "21.2.
|
|
41
|
-
"@angular/compiler-cli": "21.2.
|
|
42
|
-
"@angular/core": "21.2.
|
|
43
|
-
"@angular/forms": "21.2.
|
|
44
|
-
"@angular/platform-browser": "21.2.
|
|
45
|
-
"@tauri-apps/api": "^2.
|
|
46
|
-
"ng-packagr": "^21.
|
|
52
|
+
"@angular/cdk": "^21.2.14",
|
|
53
|
+
"@angular/common": "^21.2.23",
|
|
54
|
+
"@angular/compiler": "^21.2.23",
|
|
55
|
+
"@angular/compiler-cli": "^21.2.23",
|
|
56
|
+
"@angular/core": "^21.2.23",
|
|
57
|
+
"@angular/forms": "^21.2.23",
|
|
58
|
+
"@angular/platform-browser": "^21.2.23",
|
|
59
|
+
"@tauri-apps/api": "^2.11.1",
|
|
60
|
+
"ng-packagr": "^21.2.7",
|
|
47
61
|
"tslib": "^2.8.1",
|
|
48
62
|
"typescript": "^5.9.2"
|
|
49
63
|
},
|