@ng-prism/core 21.4.4 → 21.5.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/README.md +1 -1
- package/dist/app/canvas/prism-canvas-rulers.component.d.ts +16 -0
- package/dist/app/canvas/prism-canvas-rulers.component.d.ts.map +1 -0
- package/dist/app/canvas/prism-canvas-rulers.component.js +177 -0
- package/dist/app/canvas/prism-canvas-toolbar.component.d.ts +14 -0
- package/dist/app/canvas/prism-canvas-toolbar.component.d.ts.map +1 -0
- package/dist/app/canvas/prism-canvas-toolbar.component.js +144 -0
- package/dist/app/canvas/prism-code-drawer.component.d.ts +12 -0
- package/dist/app/canvas/prism-code-drawer.component.d.ts.map +1 -0
- package/dist/app/canvas/prism-code-drawer.component.js +114 -0
- package/dist/app/component-head/prism-component-head.component.d.ts +15 -0
- package/dist/app/component-head/prism-component-head.component.d.ts.map +1 -0
- package/dist/app/component-head/prism-component-head.component.js +207 -0
- package/dist/app/component-head/prism-stat.component.d.ts +10 -0
- package/dist/app/component-head/prism-stat.component.d.ts.map +1 -0
- package/dist/app/component-head/prism-stat.component.js +52 -0
- package/dist/app/controls/boolean-control.component.d.ts.map +1 -1
- package/dist/app/controls/boolean-control.component.js +16 -44
- package/dist/app/controls/json-control.component.d.ts.map +1 -1
- package/dist/app/controls/json-control.component.js +33 -54
- package/dist/app/controls/number-control.component.d.ts.map +1 -1
- package/dist/app/controls/number-control.component.js +18 -35
- package/dist/app/controls/string-control.component.d.ts.map +1 -1
- package/dist/app/controls/string-control.component.js +14 -41
- package/dist/app/controls/union-control.component.d.ts.map +1 -1
- package/dist/app/controls/union-control.component.js +26 -50
- package/dist/app/directives/prism-resizer.directive.d.ts +14 -0
- package/dist/app/directives/prism-resizer.directive.d.ts.map +1 -0
- package/dist/app/directives/prism-resizer.directive.js +71 -0
- package/dist/app/header/prism-header.component.d.ts +3 -0
- package/dist/app/header/prism-header.component.d.ts.map +1 -1
- package/dist/app/header/prism-header.component.js +91 -215
- package/dist/app/icons/prism-icon.component.d.ts +10 -0
- package/dist/app/icons/prism-icon.component.d.ts.map +1 -0
- package/dist/app/icons/prism-icon.component.js +64 -0
- package/dist/app/index.d.ts +4 -3
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +4 -3
- package/dist/app/layout-menu/prism-layout-menu.component.d.ts.map +1 -1
- package/dist/app/layout-menu/prism-layout-menu.component.js +63 -69
- package/dist/app/panels/a11y/a11y-core.plugin.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-core.plugin.js +1 -0
- package/dist/app/panels/a11y/a11y-keyboard.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-keyboard.component.js +61 -100
- package/dist/app/panels/a11y/a11y-overlay-host.component.d.ts +4 -0
- package/dist/app/panels/a11y/a11y-overlay-host.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-overlay-host.component.js +87 -11
- package/dist/app/panels/a11y/a11y-panel.component.d.ts +0 -2
- package/dist/app/panels/a11y/a11y-panel.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-panel.component.js +70 -85
- package/dist/app/panels/a11y/a11y-score.component.d.ts +2 -1
- package/dist/app/panels/a11y/a11y-score.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-score.component.js +55 -49
- package/dist/app/panels/a11y/a11y-sr.component.d.ts +1 -9
- package/dist/app/panels/a11y/a11y-sr.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-sr.component.js +60 -208
- package/dist/app/panels/a11y/a11y-tree.component.d.ts +2 -4
- package/dist/app/panels/a11y/a11y-tree.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-tree.component.js +92 -137
- package/dist/app/panels/a11y/a11y-violations.component.d.ts +2 -6
- package/dist/app/panels/a11y/a11y-violations.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-violations.component.js +126 -373
- package/dist/app/panels/controls/controls-plugin.d.ts.map +1 -1
- package/dist/app/panels/controls/controls-plugin.js +1 -0
- package/dist/app/panels/controls/prism-controls-panel.component.d.ts.map +1 -1
- package/dist/app/panels/controls/prism-controls-panel.component.js +96 -88
- package/dist/app/panels/events/events-plugin.d.ts.map +1 -1
- package/dist/app/panels/events/events-plugin.js +1 -0
- package/dist/app/panels/events/prism-events-panel.component.d.ts +1 -0
- package/dist/app/panels/events/prism-events-panel.component.d.ts.map +1 -1
- package/dist/app/panels/events/prism-events-panel.component.js +44 -46
- package/dist/app/panels/panel-host/prism-panel-host.component.d.ts +7 -2
- package/dist/app/panels/panel-host/prism-panel-host.component.d.ts.map +1 -1
- package/dist/app/panels/panel-host/prism-panel-host.component.js +102 -42
- package/dist/app/renderer/prism-renderer.component.d.ts +5 -6
- package/dist/app/renderer/prism-renderer.component.d.ts.map +1 -1
- package/dist/app/renderer/prism-renderer.component.js +84 -150
- package/dist/app/services/prism-canvas.service.d.ts +18 -0
- package/dist/app/services/prism-canvas.service.d.ts.map +1 -0
- package/dist/app/services/prism-canvas.service.js +63 -0
- package/dist/app/services/prism-theme.service.d.ts +13 -1
- package/dist/app/services/prism-theme.service.d.ts.map +1 -1
- package/dist/app/services/prism-theme.service.js +56 -9
- package/dist/app/shell/prism-shell.component.d.ts +1 -2
- package/dist/app/shell/prism-shell.component.d.ts.map +1 -1
- package/dist/app/shell/prism-shell.component.js +189 -178
- package/dist/app/sidebar/prism-sidebar.component.d.ts +16 -10
- package/dist/app/sidebar/prism-sidebar.component.d.ts.map +1 -1
- package/dist/app/sidebar/prism-sidebar.component.js +318 -204
- package/dist/app/theme/prism-default-theme.d.ts +1 -0
- package/dist/app/theme/prism-default-theme.d.ts.map +1 -1
- package/dist/app/theme/prism-default-theme.js +53 -34
- package/dist/app/variant-ribbon/prism-variant-ribbon.component.d.ts +13 -0
- package/dist/app/variant-ribbon/prism-variant-ribbon.component.d.ts.map +1 -0
- package/dist/app/variant-ribbon/prism-variant-ribbon.component.js +134 -0
- package/dist/app/view-tab-bar/prism-view-tab-bar.component.d.ts.map +1 -1
- package/dist/app/view-tab-bar/prism-view-tab-bar.component.js +15 -11
- package/dist/decorator/showcase.decorator.d.ts +1 -3
- package/dist/decorator/showcase.decorator.d.ts.map +1 -1
- package/dist/decorator/showcase.decorator.js +2 -6
- package/dist/plugin/plugin.types.d.ts +1 -0
- package/dist/plugin/plugin.types.d.ts.map +1 -1
- package/dist/schematics/ng-add/index.d.ts.map +1 -1
- package/dist/schematics/ng-add/index.js +2 -1
- package/package.json +6 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const PRISM_DARK_THEME: Record<string, string>;
|
|
2
2
|
export declare const PRISM_LIGHT_THEME: Record<string, string>;
|
|
3
|
+
export declare const PRISM_BASE_TOKENS: Record<string, string>;
|
|
3
4
|
export declare const PRISM_DEFAULT_THEME: Record<string, string>;
|
|
4
5
|
//# sourceMappingURL=prism-default-theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prism-default-theme.d.ts","sourceRoot":"","sources":["../../../src/app/theme/prism-default-theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAiCnD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAiCpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,wBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"prism-default-theme.d.ts","sourceRoot":"","sources":["../../../src/app/theme/prism-default-theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAiCnD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAiCpD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyBpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,wBAAmB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export const PRISM_DARK_THEME = {
|
|
2
|
+
'--prism-code-tag': '#f472b6',
|
|
3
|
+
'--prism-code-attr': '#60a5fa',
|
|
4
|
+
'--prism-code-str': '#86efac',
|
|
5
|
+
'--prism-code-com': '#6a5d87',
|
|
2
6
|
'--prism-void': '#07050f',
|
|
3
7
|
'--prism-bg': '#0d0b1c',
|
|
4
8
|
'--prism-bg-surface': '#131022',
|
|
@@ -11,47 +15,62 @@ export const PRISM_DARK_THEME = {
|
|
|
11
15
|
'--prism-primary-from': '#7c3aed',
|
|
12
16
|
'--prism-primary-to': '#3b82f6',
|
|
13
17
|
'--prism-accent': '#ec4899',
|
|
14
|
-
'--prism-border': 'rgba(255,255,255,0.08)',
|
|
15
|
-
'--prism-border-strong': 'rgba(255,255,255,0.16)',
|
|
16
|
-
'--prism-glow': 'rgba(139,92,246,0.18)',
|
|
17
|
-
'--prism-glow-strong': 'rgba(139,92,246,0.35)',
|
|
18
|
-
'--prism-input-bg': 'rgba(255,255,255,0.05)',
|
|
19
|
-
'--prism-
|
|
20
|
-
'--prism-
|
|
21
|
-
'--prism-
|
|
22
|
-
'--prism-
|
|
23
|
-
'--prism-font-mono': "'Cascadia Code', 'Fira Code', ui-monospace, monospace",
|
|
24
|
-
'--prism-radius-xs': '3px',
|
|
25
|
-
'--prism-radius-sm': '5px',
|
|
26
|
-
'--prism-radius': '8px',
|
|
27
|
-
'--prism-radius-lg': '12px',
|
|
18
|
+
'--prism-border': 'rgba(255, 255, 255, 0.08)',
|
|
19
|
+
'--prism-border-strong': 'rgba(255, 255, 255, 0.16)',
|
|
20
|
+
'--prism-glow': 'rgba(139, 92, 246, 0.18)',
|
|
21
|
+
'--prism-glow-strong': 'rgba(139, 92, 246, 0.35)',
|
|
22
|
+
'--prism-input-bg': 'rgba(255, 255, 255, 0.05)',
|
|
23
|
+
'--prism-dot': 'rgba(167, 139, 250, 0.18)',
|
|
24
|
+
'--prism-success': '#34d399',
|
|
25
|
+
'--prism-warn': '#fbbf24',
|
|
26
|
+
'--prism-danger': '#f87171',
|
|
28
27
|
};
|
|
29
28
|
export const PRISM_LIGHT_THEME = {
|
|
30
|
-
'--prism-
|
|
31
|
-
'--prism-
|
|
32
|
-
'--prism-
|
|
29
|
+
'--prism-code-tag': '#be185d',
|
|
30
|
+
'--prism-code-attr': '#1d4ed8',
|
|
31
|
+
'--prism-code-str': '#047857',
|
|
32
|
+
'--prism-code-com': '#6b5e80',
|
|
33
|
+
'--prism-void': '#f7f5fc',
|
|
34
|
+
'--prism-bg': '#ffffff',
|
|
35
|
+
'--prism-bg-surface': '#faf9fd',
|
|
33
36
|
'--prism-bg-elevated': '#ffffff',
|
|
34
|
-
'--prism-text': '#
|
|
35
|
-
'--prism-text-2': '#
|
|
37
|
+
'--prism-text': '#1c1530',
|
|
38
|
+
'--prism-text-2': '#4d4266',
|
|
36
39
|
'--prism-text-muted': '#6b5e80',
|
|
37
40
|
'--prism-text-ghost': '#b0a6c8',
|
|
38
|
-
'--prism-primary': '#
|
|
41
|
+
'--prism-primary': '#7c3aed',
|
|
39
42
|
'--prism-primary-from': '#7c3aed',
|
|
40
|
-
'--prism-primary-to': '#
|
|
43
|
+
'--prism-primary-to': '#3b82f6',
|
|
41
44
|
'--prism-accent': '#db2777',
|
|
42
|
-
'--prism-border': 'rgba(
|
|
43
|
-
'--prism-border-strong': 'rgba(
|
|
44
|
-
'--prism-glow': 'rgba(
|
|
45
|
-
'--prism-glow-strong': 'rgba(
|
|
46
|
-
'--prism-input-bg': 'rgba(
|
|
47
|
-
'--prism-
|
|
45
|
+
'--prism-border': 'rgba(28, 21, 48, 0.08)',
|
|
46
|
+
'--prism-border-strong': 'rgba(28, 21, 48, 0.16)',
|
|
47
|
+
'--prism-glow': 'rgba(124, 58, 237, 0.12)',
|
|
48
|
+
'--prism-glow-strong': 'rgba(124, 58, 237, 0.25)',
|
|
49
|
+
'--prism-input-bg': 'rgba(28, 21, 48, 0.04)',
|
|
50
|
+
'--prism-dot': 'rgba(124, 58, 237, 0.2)',
|
|
51
|
+
'--prism-success': '#059669',
|
|
52
|
+
'--prism-warn': '#d97706',
|
|
53
|
+
'--prism-danger': '#dc2626',
|
|
54
|
+
};
|
|
55
|
+
export const PRISM_BASE_TOKENS = {
|
|
56
|
+
'--font-sans': "'Inter', system-ui, sans-serif",
|
|
57
|
+
'--font-mono': "'JetBrains Mono', ui-monospace, monospace",
|
|
58
|
+
'--fs-xs': '10px',
|
|
59
|
+
'--fs-sm': '11.5px',
|
|
60
|
+
'--fs-md': '12.5px',
|
|
61
|
+
'--fs-lg': '13.5px',
|
|
62
|
+
'--fs-xl': '15px',
|
|
63
|
+
'--fs-2xl': '22px',
|
|
64
|
+
'--radius-xs': '3px',
|
|
65
|
+
'--radius-sm': '5px',
|
|
66
|
+
'--radius-md': '7px',
|
|
67
|
+
'--radius-lg': '10px',
|
|
68
|
+
'--ease-default': 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
69
|
+
'--dur-fast': '0.12s',
|
|
70
|
+
'--dur-base': '0.2s',
|
|
71
|
+
'--dur-slow': '0.3s',
|
|
48
72
|
'--prism-header-height': '52px',
|
|
49
|
-
'--prism-
|
|
50
|
-
'--prism-font-
|
|
51
|
-
'--prism-font-mono': "'Cascadia Code', 'Fira Code', ui-monospace, monospace",
|
|
52
|
-
'--prism-radius-xs': '3px',
|
|
53
|
-
'--prism-radius-sm': '5px',
|
|
54
|
-
'--prism-radius': '8px',
|
|
55
|
-
'--prism-radius-lg': '12px',
|
|
73
|
+
'--prism-font-sans': 'var(--font-sans)',
|
|
74
|
+
'--prism-font-mono': 'var(--font-mono)',
|
|
56
75
|
};
|
|
57
76
|
export const PRISM_DEFAULT_THEME = PRISM_DARK_THEME;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PrismRendererService } from '../services/prism-renderer.service.js';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PrismVariantRibbonComponent {
|
|
4
|
+
private readonly navigationService;
|
|
5
|
+
protected readonly rendererService: PrismRendererService;
|
|
6
|
+
protected readonly variants: import("@angular/core").Signal<import("../../index.js").Variant[]>;
|
|
7
|
+
protected variantColor(name: string, index: number): string;
|
|
8
|
+
protected prev(): void;
|
|
9
|
+
protected next(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrismVariantRibbonComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PrismVariantRibbonComponent, "prism-variant-ribbon", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=prism-variant-ribbon.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prism-variant-ribbon.component.d.ts","sourceRoot":"","sources":["../../../src/app/variant-ribbon/prism-variant-ribbon.component.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;;AAgB7E,qBAkJa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAkC;IACpE,SAAS,CAAC,QAAQ,CAAC,eAAe,uBAAgC;IAElE,SAAS,CAAC,QAAQ,CAAC,QAAQ,qEAGxB;IAEH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAI3D,SAAS,CAAC,IAAI,IAAI,IAAI;IAKtB,SAAS,CAAC,IAAI,IAAI,IAAI;yCAlBX,2BAA2B;2CAA3B,2BAA2B;CAuBvC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { Component, inject, computed, ChangeDetectionStrategy, } from '@angular/core';
|
|
2
|
+
import { PrismIconComponent } from '../icons/prism-icon.component.js';
|
|
3
|
+
import { PrismNavigationService } from '../services/prism-navigation.service.js';
|
|
4
|
+
import { PrismRendererService } from '../services/prism-renderer.service.js';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
const _forTrack0 = ($index, $item) => $item.name;
|
|
7
|
+
function PrismVariantRibbonComponent_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
9
|
+
i0.ɵɵelementStart(0, "button", 7);
|
|
10
|
+
i0.ɵɵlistener("click", function PrismVariantRibbonComponent_Conditional_0_For_2_Template_button_click_0_listener() { const ɵ$index_4_r3 = i0.ɵɵrestoreView(_r2).$index; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.rendererService.selectVariant(ɵ$index_4_r3)); });
|
|
11
|
+
i0.ɵɵelement(1, "span", 8);
|
|
12
|
+
i0.ɵɵtext(2);
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const v_r5 = ctx.$implicit;
|
|
16
|
+
const ɵ$index_4_r3 = ctx.$index;
|
|
17
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
18
|
+
i0.ɵɵstyleProp("--vc", ctx_r3.variantColor(v_r5.name, ɵ$index_4_r3));
|
|
19
|
+
i0.ɵɵclassProp("v-tab--active", ctx_r3.rendererService.activeVariantIndex() === ɵ$index_4_r3);
|
|
20
|
+
i0.ɵɵadvance(2);
|
|
21
|
+
i0.ɵɵtextInterpolate1(" ", v_r5.name, " ");
|
|
22
|
+
} }
|
|
23
|
+
function PrismVariantRibbonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
25
|
+
i0.ɵɵelementStart(0, "nav", 0);
|
|
26
|
+
i0.ɵɵrepeaterCreate(1, PrismVariantRibbonComponent_Conditional_0_For_2_Template, 3, 5, "button", 1, _forTrack0);
|
|
27
|
+
i0.ɵɵelementStart(3, "div", 2)(4, "button", 3);
|
|
28
|
+
i0.ɵɵlistener("click", function PrismVariantRibbonComponent_Conditional_0_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r1); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.prev()); });
|
|
29
|
+
i0.ɵɵelement(5, "prism-icon", 4);
|
|
30
|
+
i0.ɵɵelementEnd();
|
|
31
|
+
i0.ɵɵelementStart(6, "button", 5);
|
|
32
|
+
i0.ɵɵlistener("click", function PrismVariantRibbonComponent_Conditional_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r1); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.next()); });
|
|
33
|
+
i0.ɵɵelement(7, "prism-icon", 6);
|
|
34
|
+
i0.ɵɵelementEnd()()();
|
|
35
|
+
} if (rf & 2) {
|
|
36
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
37
|
+
i0.ɵɵadvance();
|
|
38
|
+
i0.ɵɵrepeater(ctx_r3.variants());
|
|
39
|
+
i0.ɵɵadvance(3);
|
|
40
|
+
i0.ɵɵproperty("disabled", ctx_r3.rendererService.activeVariantIndex() === 0);
|
|
41
|
+
i0.ɵɵadvance();
|
|
42
|
+
i0.ɵɵproperty("size", 14);
|
|
43
|
+
i0.ɵɵadvance();
|
|
44
|
+
i0.ɵɵproperty("disabled", ctx_r3.rendererService.activeVariantIndex() >= ctx_r3.variants().length - 1);
|
|
45
|
+
i0.ɵɵadvance();
|
|
46
|
+
i0.ɵɵproperty("size", 14);
|
|
47
|
+
} }
|
|
48
|
+
function variantColor(name, index) {
|
|
49
|
+
const palette = [
|
|
50
|
+
'#a78bfa',
|
|
51
|
+
'#60a5fa',
|
|
52
|
+
'#34d399',
|
|
53
|
+
'#fbbf24',
|
|
54
|
+
'#f472b6',
|
|
55
|
+
'#8476a2',
|
|
56
|
+
'#ec4899',
|
|
57
|
+
'#06b6d4',
|
|
58
|
+
];
|
|
59
|
+
return palette[index % palette.length];
|
|
60
|
+
}
|
|
61
|
+
export class PrismVariantRibbonComponent {
|
|
62
|
+
navigationService = inject(PrismNavigationService);
|
|
63
|
+
rendererService = inject(PrismRendererService);
|
|
64
|
+
variants = computed(() => {
|
|
65
|
+
const comp = this.navigationService.activeComponent();
|
|
66
|
+
return comp?.meta.showcaseConfig.variants ?? [];
|
|
67
|
+
}, ...(ngDevMode ? [{ debugName: "variants" }] : []));
|
|
68
|
+
variantColor(name, index) {
|
|
69
|
+
return variantColor(name, index);
|
|
70
|
+
}
|
|
71
|
+
prev() {
|
|
72
|
+
const idx = this.rendererService.activeVariantIndex();
|
|
73
|
+
if (idx > 0)
|
|
74
|
+
this.rendererService.selectVariant(idx - 1);
|
|
75
|
+
}
|
|
76
|
+
next() {
|
|
77
|
+
const idx = this.rendererService.activeVariantIndex();
|
|
78
|
+
if (idx < this.variants().length - 1)
|
|
79
|
+
this.rendererService.selectVariant(idx + 1);
|
|
80
|
+
}
|
|
81
|
+
static ɵfac = function PrismVariantRibbonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PrismVariantRibbonComponent)(); };
|
|
82
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PrismVariantRibbonComponent, selectors: [["prism-variant-ribbon"]], decls: 1, vars: 1, consts: [[1, "variant-ribbon"], [1, "v-tab", 3, "v-tab--active", "--vc"], [1, "variant-ribbon-right"], ["title", "Previous variant", "aria-label", "Previous variant", 1, "tool-btn", 3, "click", "disabled"], ["name", "chevron-right", 2, "transform", "rotate(180deg)", 3, "size"], ["title", "Next variant", "aria-label", "Next variant", 1, "tool-btn", 3, "click", "disabled"], ["name", "chevron-right", 3, "size"], [1, "v-tab", 3, "click"], [1, "v-dot"]], template: function PrismVariantRibbonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
83
|
+
i0.ɵɵconditionalCreate(0, PrismVariantRibbonComponent_Conditional_0_Template, 8, 4, "nav", 0);
|
|
84
|
+
} if (rf & 2) {
|
|
85
|
+
i0.ɵɵconditional(ctx.variants().length > 0 ? 0 : -1);
|
|
86
|
+
} }, dependencies: [PrismIconComponent], styles: ["[_nghost-%COMP%] { display: block; flex-shrink: 0; }\n\n .variant-ribbon[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding: 0 28px;\n background: var(--prism-bg);\n border-bottom: 1px solid var(--prism-border);\n height: 42px;\n gap: 2px;\n overflow-x: auto;\n scrollbar-width: none;\n }\n .variant-ribbon[_ngcontent-%COMP%]::-webkit-scrollbar { display: none; }\n\n .v-tab[_ngcontent-%COMP%] {\n position: relative;\n height: 100%;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 0 14px;\n font-size: 13px;\n font-weight: 500;\n color: var(--prism-text-muted);\n white-space: nowrap;\n transition: color var(--dur-fast);\n background: none;\n border: none;\n cursor: pointer;\n font-family: var(--font-sans);\n }\n .v-tab[_ngcontent-%COMP%]::after {\n content: '';\n position: absolute;\n left: 10px;\n right: 10px;\n bottom: 0;\n height: 2px;\n background: linear-gradient(90deg, var(--prism-primary-from), var(--prism-primary-to));\n opacity: 0;\n transition: opacity var(--dur-fast);\n border-radius: 1px 1px 0 0;\n }\n .v-tab[_ngcontent-%COMP%]:hover { color: var(--prism-text-2); }\n .v-tab--active[_ngcontent-%COMP%] { color: var(--prism-text); }\n .v-tab--active[_ngcontent-%COMP%]::after { opacity: 1; }\n\n .v-dot[_ngcontent-%COMP%] {\n width: 6px;\n height: 6px;\n border-radius: 2px;\n background: var(--vc, var(--prism-primary));\n opacity: 0.6;\n }\n .v-tab--active[_ngcontent-%COMP%] .v-dot[_ngcontent-%COMP%] {\n opacity: 1;\n box-shadow: 0 0 6px var(--vc);\n }\n\n .variant-ribbon-right[_ngcontent-%COMP%] {\n margin-left: auto;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-left: 12px;\n border-left: 1px solid var(--prism-border);\n height: 24px;\n }\n\n .tool-btn[_ngcontent-%COMP%] {\n height: 24px;\n width: 24px;\n display: grid;\n place-items: center;\n border-radius: var(--radius-sm);\n color: var(--prism-text-muted);\n background: none;\n border: none;\n cursor: pointer;\n transition: all var(--dur-fast);\n }\n .tool-btn[_ngcontent-%COMP%]:hover:not(:disabled) {\n color: var(--prism-text);\n background: color-mix(in srgb, var(--prism-primary) 8%, transparent);\n }\n .tool-btn[_ngcontent-%COMP%]:disabled {\n opacity: 0.3;\n cursor: default;\n }\n\n [_ngcontent-%COMP%]:focus-visible {\n outline: 2px solid var(--prism-primary);\n outline-offset: 2px;\n }"], changeDetection: 0 });
|
|
87
|
+
}
|
|
88
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PrismVariantRibbonComponent, [{
|
|
89
|
+
type: Component,
|
|
90
|
+
args: [{ selector: 'prism-variant-ribbon', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [PrismIconComponent], template: `
|
|
91
|
+
@if (variants().length > 0) {
|
|
92
|
+
<nav class="variant-ribbon">
|
|
93
|
+
@for (v of variants(); track v.name; let i = $index) {
|
|
94
|
+
<button
|
|
95
|
+
class="v-tab"
|
|
96
|
+
[class.v-tab--active]="rendererService.activeVariantIndex() === i"
|
|
97
|
+
[style.--vc]="variantColor(v.name, i)"
|
|
98
|
+
(click)="rendererService.selectVariant(i)"
|
|
99
|
+
>
|
|
100
|
+
<span class="v-dot"></span>
|
|
101
|
+
{{ v.name }}
|
|
102
|
+
</button>
|
|
103
|
+
}
|
|
104
|
+
<div class="variant-ribbon-right">
|
|
105
|
+
<button
|
|
106
|
+
class="tool-btn"
|
|
107
|
+
title="Previous variant"
|
|
108
|
+
aria-label="Previous variant"
|
|
109
|
+
[disabled]="rendererService.activeVariantIndex() === 0"
|
|
110
|
+
(click)="prev()"
|
|
111
|
+
>
|
|
112
|
+
<prism-icon
|
|
113
|
+
name="chevron-right"
|
|
114
|
+
[size]="14"
|
|
115
|
+
style="transform: rotate(180deg)"
|
|
116
|
+
/>
|
|
117
|
+
</button>
|
|
118
|
+
<button
|
|
119
|
+
class="tool-btn"
|
|
120
|
+
title="Next variant"
|
|
121
|
+
aria-label="Next variant"
|
|
122
|
+
[disabled]="
|
|
123
|
+
rendererService.activeVariantIndex() >= variants().length - 1
|
|
124
|
+
"
|
|
125
|
+
(click)="next()"
|
|
126
|
+
>
|
|
127
|
+
<prism-icon name="chevron-right" [size]="14" />
|
|
128
|
+
</button>
|
|
129
|
+
</div>
|
|
130
|
+
</nav>
|
|
131
|
+
}
|
|
132
|
+
`, styles: ["\n :host { display: block; flex-shrink: 0; }\n\n .variant-ribbon {\n display: flex;\n align-items: center;\n padding: 0 28px;\n background: var(--prism-bg);\n border-bottom: 1px solid var(--prism-border);\n height: 42px;\n gap: 2px;\n overflow-x: auto;\n scrollbar-width: none;\n }\n .variant-ribbon::-webkit-scrollbar { display: none; }\n\n .v-tab {\n position: relative;\n height: 100%;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 0 14px;\n font-size: 13px;\n font-weight: 500;\n color: var(--prism-text-muted);\n white-space: nowrap;\n transition: color var(--dur-fast);\n background: none;\n border: none;\n cursor: pointer;\n font-family: var(--font-sans);\n }\n .v-tab::after {\n content: '';\n position: absolute;\n left: 10px;\n right: 10px;\n bottom: 0;\n height: 2px;\n background: linear-gradient(90deg, var(--prism-primary-from), var(--prism-primary-to));\n opacity: 0;\n transition: opacity var(--dur-fast);\n border-radius: 1px 1px 0 0;\n }\n .v-tab:hover { color: var(--prism-text-2); }\n .v-tab--active { color: var(--prism-text); }\n .v-tab--active::after { opacity: 1; }\n\n .v-dot {\n width: 6px;\n height: 6px;\n border-radius: 2px;\n background: var(--vc, var(--prism-primary));\n opacity: 0.6;\n }\n .v-tab--active .v-dot {\n opacity: 1;\n box-shadow: 0 0 6px var(--vc);\n }\n\n .variant-ribbon-right {\n margin-left: auto;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-left: 12px;\n border-left: 1px solid var(--prism-border);\n height: 24px;\n }\n\n .tool-btn {\n height: 24px;\n width: 24px;\n display: grid;\n place-items: center;\n border-radius: var(--radius-sm);\n color: var(--prism-text-muted);\n background: none;\n border: none;\n cursor: pointer;\n transition: all var(--dur-fast);\n }\n .tool-btn:hover:not(:disabled) {\n color: var(--prism-text);\n background: color-mix(in srgb, var(--prism-primary) 8%, transparent);\n }\n .tool-btn:disabled {\n opacity: 0.3;\n cursor: default;\n }\n\n :focus-visible {\n outline: 2px solid var(--prism-primary);\n outline-offset: 2px;\n }\n "] }]
|
|
133
|
+
}], null, null); })();
|
|
134
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PrismVariantRibbonComponent, { className: "PrismVariantRibbonComponent", filePath: "app/variant-ribbon/prism-variant-ribbon.component.ts", lineNumber: 171 }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prism-view-tab-bar.component.d.ts","sourceRoot":"","sources":["../../../src/app/view-tab-bar/prism-view-tab-bar.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;;AAGvE,
|
|
1
|
+
{"version":3,"file":"prism-view-tab-bar.component.d.ts","sourceRoot":"","sources":["../../../src/app/view-tab-bar/prism-view-tab-bar.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;;AAGvE,qBAoEa,wBAAwB;IACnC,SAAS,CAAC,QAAQ,CAAC,YAAY,oBAA6B;IAC5D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA8B;IAE5D,SAAS,CAAC,QAAQ,CAAC,UAAU,6EAG1B;yCAPQ,wBAAwB;2CAAxB,wBAAwB;CAQpC"}
|
|
@@ -28,7 +28,7 @@ export class PrismViewTabBarComponent {
|
|
|
28
28
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PrismViewTabBarComponent, selectors: [["prism-view-tab-bar"]], decls: 5, vars: 2, consts: [[1, "prism-view-tab-bar"], [1, "prism-view-tab-bar__tab", 3, "click"], [1, "prism-view-tab-bar__tab", 3, "prism-view-tab-bar__tab--active"]], template: function PrismViewTabBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29
29
|
i0.ɵɵdomElementStart(0, "div", 0)(1, "button", 1);
|
|
30
30
|
i0.ɵɵdomListener("click", function PrismViewTabBarComponent_Template_button_click_1_listener() { return ctx.panelService.activeViewId.set("renderer"); });
|
|
31
|
-
i0.ɵɵtext(2, "
|
|
31
|
+
i0.ɵɵtext(2, " Playground ");
|
|
32
32
|
i0.ɵɵdomElementEnd();
|
|
33
33
|
i0.ɵɵrepeaterCreate(3, PrismViewTabBarComponent_For_4_Template, 2, 3, "button", 2, _forTrack0);
|
|
34
34
|
i0.ɵɵdomElementEnd();
|
|
@@ -45,21 +45,25 @@ export class PrismViewTabBarComponent {
|
|
|
45
45
|
<div class="prism-view-tab-bar">
|
|
46
46
|
<button
|
|
47
47
|
class="prism-view-tab-bar__tab"
|
|
48
|
-
[class.prism-view-tab-bar__tab--active]="
|
|
48
|
+
[class.prism-view-tab-bar__tab--active]="
|
|
49
|
+
panelService.activeViewId() === 'renderer'
|
|
50
|
+
"
|
|
49
51
|
(click)="panelService.activeViewId.set('renderer')"
|
|
50
52
|
>
|
|
51
|
-
|
|
53
|
+
Playground
|
|
52
54
|
</button>
|
|
53
55
|
@for (panel of viewPanels(); track panel.id) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
<button
|
|
57
|
+
class="prism-view-tab-bar__tab"
|
|
58
|
+
[class.prism-view-tab-bar__tab--active]="
|
|
59
|
+
panelService.activeViewId() === panel.id
|
|
60
|
+
"
|
|
61
|
+
(click)="panelService.activeViewId.set(panel.id)"
|
|
62
|
+
>
|
|
63
|
+
{{ panel.label }}
|
|
64
|
+
</button>
|
|
61
65
|
}
|
|
62
66
|
</div>
|
|
63
67
|
`, styles: ["\n .prism-view-tab-bar {\n display: flex;\n border-bottom: 1px solid var(--prism-border);\n padding: 0 8px;\n flex-shrink: 0;\n background: var(--prism-bg-elevated);\n }\n\n .prism-view-tab-bar__tab {\n padding: 9px 14px;\n font-size: 13px;\n font-family: var(--prism-font-sans);\n border: none;\n background: none;\n color: var(--prism-text-muted);\n cursor: pointer;\n position: relative;\n margin-bottom: -1px;\n transition: color 0.12s;\n }\n\n .prism-view-tab-bar__tab::after {\n content: '';\n position: absolute;\n bottom: 0;\n left: 8px;\n right: 8px;\n height: 2px;\n background: linear-gradient(90deg, var(--prism-primary-from), var(--prism-primary-to));\n opacity: 0;\n transition: opacity 0.12s;\n }\n\n .prism-view-tab-bar__tab:hover { color: var(--prism-text-2); }\n\n .prism-view-tab-bar__tab--active { color: var(--prism-primary); font-weight: 500; }\n\n .prism-view-tab-bar__tab--active::after { opacity: 1; }\n "] }]
|
|
64
68
|
}], null, null); })();
|
|
65
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PrismViewTabBarComponent, { className: "PrismViewTabBarComponent", filePath: "app/view-tab-bar/prism-view-tab-bar.component.ts", lineNumber:
|
|
69
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PrismViewTabBarComponent, { className: "PrismViewTabBarComponent", filePath: "app/view-tab-bar/prism-view-tab-bar.component.ts", lineNumber: 74 }); })();
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
1
|
import type { ShowcaseConfig } from './showcase.types.js';
|
|
3
|
-
export declare
|
|
4
|
-
export declare function Showcase(config: ShowcaseConfig): ClassDecorator;
|
|
2
|
+
export declare function Showcase(_config: ShowcaseConfig): ClassDecorator;
|
|
5
3
|
//# sourceMappingURL=showcase.decorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showcase.decorator.d.ts","sourceRoot":"","sources":["../../src/decorator/showcase.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"showcase.decorator.d.ts","sourceRoot":"","sources":["../../src/decorator/showcase.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAAgB,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAEhE"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export function Showcase(config) {
|
|
4
|
-
return (target) => {
|
|
5
|
-
Reflect.defineMetadata(SHOWCASE_METADATA_KEY, config, target);
|
|
6
|
-
};
|
|
1
|
+
export function Showcase(_config) {
|
|
2
|
+
return () => { };
|
|
7
3
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.types.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IAGb,kBAAkB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"plugin.types.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IAGb,kBAAkB,CAAC,EAAE,CACnB,SAAS,EAAE,gBAAgB,KACxB,gBAAgB,GAAG,IAAI,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAChE,aAAa,CAAC,EAAE,CACd,IAAI,EAAE,cAAc,KACjB,cAAc,GAAG,IAAI,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5D,eAAe,CAAC,EAAE,CAChB,QAAQ,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":"","sources":["../../../src/schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,IAAI,EAIV,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAqOtD,wBAAgB,KAAK,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAOvD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { chain, SchematicsException, } from '@angular-devkit/schematics';
|
|
2
|
+
import { parse as parseJsonc } from 'jsonc-parser';
|
|
2
3
|
function readWorkspace(tree) {
|
|
3
4
|
const buffer = tree.read('angular.json');
|
|
4
5
|
if (!buffer) {
|
|
@@ -140,7 +141,7 @@ function addTsConfigPaths(options) {
|
|
|
140
141
|
if (!buffer) {
|
|
141
142
|
return tree;
|
|
142
143
|
}
|
|
143
|
-
const tsConfig =
|
|
144
|
+
const tsConfig = parseJsonc(buffer.toString('utf-8'));
|
|
144
145
|
if (!tsConfig.compilerOptions) {
|
|
145
146
|
tsConfig.compilerOptions = {};
|
|
146
147
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-prism/core",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.5.0",
|
|
4
4
|
"description": "Lightweight Angular-native component showcase — no story files needed.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"!**/*.tsbuildinfo"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@angular/core": ">=
|
|
47
|
-
"@angular/common": ">=
|
|
48
|
-
"@angular-devkit/architect": ">=0.
|
|
49
|
-
"@angular-devkit/core": ">=
|
|
50
|
-
"@angular-devkit/schematics": ">=
|
|
46
|
+
"@angular/core": ">=21.0.0",
|
|
47
|
+
"@angular/common": ">=21.0.0",
|
|
48
|
+
"@angular-devkit/architect": ">=0.2100.0",
|
|
49
|
+
"@angular-devkit/core": ">=21.0.0",
|
|
50
|
+
"@angular-devkit/schematics": ">=21.0.0",
|
|
51
51
|
"typescript": ">=5.5.0",
|
|
52
52
|
"highlight.js": ">=11.0.0",
|
|
53
53
|
"ngx-highlightjs": ">=14.0.0"
|