ng-implementation/sae-csc/documentation.json

506 lines
50 KiB
JSON
Raw Permalink Normal View History

2025-08-07 14:24:23 +02:00
{
"pipes": [],
"interfaces": [
{
"name": "User",
"id": "interface-User-d4821beac0e4a852e513391b7470981c4353fdd95a18628bb68136c8695b489ee15b926e2e5031bc26cf30e1508e0a362c3ee13a06734702b4d15af140e485d5",
"file": "src/stories/user.ts",
"deprecated": false,
"deprecationMessage": "",
"type": "interface",
"sourceCode": "export interface User {\n name: string;\n}\n",
"properties": [
{
"name": "name",
"deprecated": false,
"deprecationMessage": "",
"type": "string",
"indexKey": "",
"optional": false,
"description": "",
"line": 2
}
],
"indexSignatures": [],
"kind": 171,
"methods": [],
"extends": []
}
],
"injectables": [],
"guards": [],
"interceptors": [],
"classes": [],
"directives": [],
"components": [
{
"name": "App",
"id": "component-App-83cb7b7567c923484135ef4026de76b33228744a4ddaa9d672eb827726bbfa38c43278ebd454406570c04388b3c322b89ea75154e2084ebb64a76bdf8957fb6c",
"file": "src/app/app.ts",
"encapsulation": [],
"entryComponents": [],
"inputs": [],
"outputs": [],
"providers": [],
"selector": "app-root",
"styleUrls": [],
"styles": [],
"templateUrl": [
"./app.html"
],
"viewProviders": [],
"hostDirectives": [],
"inputsClass": [],
"outputsClass": [],
"propertiesClass": [
{
"name": "title",
"defaultValue": "signal('implem')",
"deprecated": false,
"deprecationMessage": "",
"type": "",
"indexKey": "",
"optional": false,
"description": "",
"line": 11,
"modifierKind": [
124,
148
]
}
],
"methodsClass": [],
"deprecated": false,
"deprecationMessage": "",
"hostBindings": [],
"hostListeners": [],
"standalone": false,
"imports": [
{
"name": "RouterOutlet"
}
],
"description": "",
"rawdescription": "\n",
"type": "component",
"sourceCode": "import { Component, signal } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'app-root',\n imports: [RouterOutlet],\n templateUrl: './app.html',\n styleUrl: './app.scss'\n})\nexport class App {\n protected readonly title = signal('implem');\n}\n",
"styleUrl": "./app.scss",
"assetsDirs": [],
"styleUrlsData": "",
"stylesData": "",
"extends": [],
"templateData": "<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * Delete the template below * * * * * * * * * -->\n<!-- * * * * * * * to get started with your project! * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n\n<style>\n :host {\n --bright-blue: oklch(51.01% 0.274 263.83);\n --electric-violet: oklch(53.18% 0.28 296.97);\n --french-violet: oklch(47.66% 0.246 305.88);\n --vivid-pink: oklch(69.02% 0.277 332.77);\n --hot-red: oklch(61.42% 0.238 15.34);\n --orange-red: oklch(63.32% 0.24 31.68);\n\n --gray-900: oklch(19.37% 0.006 300.98);\n --gray-700: oklch(36.98% 0.014 302.71);\n --gray-400: oklch(70.9% 0.015 304.04);\n\n --red-to-pink-to-purple-vertical-gradient: linear-gradient(\n 180deg,\n var(--orange-red) 0%,\n var(--vivid-pink) 50%,\n var(--electric-violet) 100%\n );\n\n --red-to-pink-to-purple-horizontal-gradient: linear-gradient(\n 90deg,\n var(--orange-red) 0%,\n var(--vivid-pink) 50%,\n var(--electric-violet) 100%\n );\n\n --pill-accent: var(--bright-blue);\n\n font-family: \"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\n Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\",\n \"Segoe UI Symbol\";\n box-sizing: border-box;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n h1 {\n font-size: 3.125rem;\n color: var(--gray-900);\n font-weight: 500;\n line-height: 100%;\n letter-spacing: -0.125rem;\n margin: 0;\n font-family: \"Inter Tight\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\n Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\",\n \"Segoe UI Symbol\";\n }\n\n p {\n margin: 0;\n color: var(--gray-700);\n }\n\n main {\n width: 100%;\n min-height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 1rem;\n box-sizing: inherit;\n position: relative;\n }\n\n .angular-logo {\n max-width: 9.2rem;\n }\n\n .content {\n display: flex;\n justify-content: space-around;\n width: 100%;\n max-width: 700px;\n margin-bottom: 3rem;\n }\n\n .content h1 {\n margin-top: 1.75rem;\n }\n\n .content p {\n margin-top: 1.5rem;\n }\n\n .divider {\n width: 1px;\n background: var(--red-to-pink-to-purple-vertical-gradient);\n margin-inline: 0.5rem;\n }\n\n .pill-group {\n display: flex;\n flex-direction: column;\n align-items: start;\n flex-wrap: wrap;\n gap: 1.25rem;\n }\n\n .pill {\n display: flex;\n align-items: center;\n --pill-accent: var(--bright-blue);\n background: color-mix(in srgb, var(--pill-accent) 5%, transparent);\n color: var(--pill-accent);\n padding-inline: 0.75rem;\n padding-block: 0.375rem;\n border-radius: 2.75rem;\n border: 0;\n transition: background 0.3s ease;\n font-family: var(--inter-font);\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 500;\n line-height: 1.4rem;\n letter-spacing: -0.00875rem;\n text-decoration: none;\n white-space: nowrap;\n }\n\n .pill:hover {\n background: color-mix(in srgb, var(--pill-accent) 15%, transparent);\n }\n\n .pill-group .pill:nth-child(6n + 1) {\n --pill-accent: var(--bright-blue);\n }\n .pill-group .pill:nth-child(6n + 2) {\n --pill-accent: var(--electric-violet);\n }\n .pill-group .pill:nth-child(6n + 3) {\n --pill-accent: var(--french-violet);\n }\n\n .pill-group .pill:nth-child(6n + 4),\n .pill-group .pill:nth-child(6n + 5),\n .pill-group .pill:nth-child(6n + 6) {\n --pill-accent: var(--hot-red);\n }\n\n .pill-group svg {\n
},
{
"name": "ButtonComponent",
"id": "component-ButtonComponent-d7bf0323e6da130e2609e2af0117b4a8d7cd874132206af50bf43dfc37044485fe50f2867ea76525730dd195b9b95a43802a12dadc6ad5cd7bf2faa07f19f0da",
"file": "src/stories/button.component.ts",
"encapsulation": [],
"entryComponents": [],
"inputs": [],
"outputs": [],
"providers": [],
"selector": "storybook-button",
"styleUrls": [
"./button.css"
],
"styles": [],
"template": " <button type=\"button\"\n (click)=\"onClick.emit($event)\"\n [ngClass]=\"classes\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n>\n {{ label }}\n</button>",
"templateUrl": [],
"viewProviders": [],
"hostDirectives": [],
"inputsClass": [
{
"name": "backgroundColor",
"deprecated": false,
"deprecationMessage": "",
"rawdescription": "\nWhat background color to use",
"description": "<p>What background color to use</p>\n",
"line": 25,
"type": "string",
"decorators": []
},
{
"name": "label",
"defaultValue": "'Button'",
"deprecated": false,
"deprecationMessage": "",
"jsdoctags": [
{
"pos": 760,
"end": 773,
"kind": 327,
"id": 0,
"flags": 16842752,
"modifierFlagsCache": 0,
"transformFlags": 0,
"tagName": {
"pos": 761,
"end": 769,
"kind": 80,
"id": 0,
"flags": 16842752,
"transformFlags": 0,
"escapedText": "required"
},
"comment": ""
}
],
"rawdescription": "\n\nButton contents\n\n",
"description": "<p>Button contents</p>\n",
"line": 37,
"type": "string",
"decorators": []
},
{
"name": "primary",
"defaultValue": "false",
"deprecated": false,
"deprecationMessage": "",
"rawdescription": "\nIs this the principal call to action on the page?",
"description": "<p>Is this the principal call to action on the page?</p>\n",
"line": 21,
"type": "boolean",
"decorators": []
},
{
"name": "size",
"defaultValue": "'medium'",
"deprecated": false,
"deprecationMessage": "",
"rawdescription": "\nHow large should the button be?",
"description": "<p>How large should the button be?</p>\n",
"line": 29,
"type": "\"small\" | \"medium\" | \"large\"",
"decorators": []
}
],
"outputsClass": [
{
"name": "onClick",
"defaultValue": "new EventEmitter<Event>()",
"deprecated": false,
"deprecationMessage": "",
"rawdescription": "\nOptional click handler",
"description": "<p>Optional click handler</p>\n",
"line": 41,
"type": "EventEmitter"
}
],
"propertiesClass": [],
"methodsClass": [],
"deprecated": false,
"deprecationMessage": "",
"hostBindings": [],
"hostListeners": [],
"standalone": true,
"imports": [
{
"name": "CommonModule",
"type": "module"
}
],
"description": "",
"rawdescription": "\n",
"type": "component",
"sourceCode": "import { CommonModule } from '@angular/common';\nimport { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'storybook-button',\n standalone: true,\n imports: [CommonModule],\n template: ` <button\n type=\"button\"\n (click)=\"onClick.emit($event)\"\n [ngClass]=\"classes\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n>\n {{ label }}\n</button>`,\n styleUrls: ['./button.css'],\n})\nexport class ButtonComponent {\n /** Is this the principal call to action on the page? */\n @Input()\n primary = false;\n\n /** What background color to use */\n @Input()\n backgroundColor?: string;\n\n /** How large should the button be? */\n @Input()\n size: 'small' | 'medium' | 'large' = 'medium';\n\n /**\n * Button contents\n *\n * @required\n */\n @Input()\n label = 'Button';\n\n /** Optional click handler */\n @Output()\n onClick = new EventEmitter<Event>();\n\n public get classes(): string[] {\n const mode = this.primary ? 'storybook-button--primary' : 'storybook-button--secondary';\n\n return ['storybook-button', `storybook-button--${this.size}`, mode];\n }\n}\n",
"assetsDirs": [],
"styleUrlsData": [
{
"data": ".storybook-button {\n display: inline-block;\n cursor: pointer;\n border: 0;\n border-radius: 3em;\n font-weight: 700;\n line-height: 1;\n font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n}\n.storybook-button--primary {\n background-color: #555ab9;\n color: white;\n}\n.storybook-button--secondary {\n box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;\n background-color: transparent;\n color: #333;\n}\n.storybook-button--small {\n padding: 10px 16px;\n font-size: 12px;\n}\n.storybook-button--medium {\n padding: 11px 20px;\n font-size: 14px;\n}\n.storybook-button--large {\n padding: 12px 24px;\n font-size: 16px;\n}\n",
"styleUrl": "./button.css"
}
],
"stylesData": "",
"extends": [],
"accessors": {
"classes": {
"name": "classes",
"getSignature": {
"name": "classes",
"type": "[]",
"returnType": "string[]",
"line": 43
}
}
}
},
{
"name": "HeaderComponent",
"id": "component-HeaderComponent-48b9abe37706bc42f20cfa97ed9f943678344ea7d254c0c82183c657750c2191b43486fe730c778627b2ea6aa0e2f33a7abcf3ce08b68ad18b062ad99ea97acb",
"file": "src/stories/header.component.ts",
"encapsulation": [],
"entryComponents": [],
"inputs": [],
"outputs": [],
"providers": [],
"selector": "storybook-header",
"styleUrls": [
"./header.css"
],
"styles": [],
"template": "<header> <div class=\"storybook-header\">\n <div>\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n <g fill=\"none\" fillRule=\"evenodd\">\n <path\n d=\"M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z\"\n fill=\"#555AB9\"\n />\n <path d=\"M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z\" fill=\"#91BAF8\" />\n </g>\n </svg>\n <h1>Acme</h1>\n </div>\n <div>\n <div *ngIf=\"user\">\n <span class=\"welcome\">\n Welcome, <b>{{ user.name }}</b\n >!\n </span>\n <storybook-button\n *ngIf=\"user\"\n size=\"small\"\n (onClick)=\"onLogout.emit($event)\"\n label=\"Log out\"\n ></storybook-button>\n </div>\n <div *ngIf=\"!user\">\n <storybook-button\n *ngIf=\"!user\"\n size=\"small\"\n class=\"margin-left\"\n (onClick)=\"onLogin.emit($event)\"\n label=\"Log in\"\n ></storybook-button>\n <storybook-button\n *ngIf=\"!user\"\n size=\"small\"\n [primary]=\"true\"\n class=\"margin-left\"\n (onClick)=\"onCreateAccount.emit($event)\"\n label=\"Sign up\"\n ></storybook-button>\n </div>\n </div>\n </div>\n</header>",
"templateUrl": [],
"viewProviders": [],
"hostDirectives": [],
"inputsClass": [
{
"name": "user",
"defaultValue": "null",
"deprecated": false,
"deprecationMessage": "",
"line": 66,
"type": "User | null",
"decorators": []
}
],
"outputsClass": [
{
"name": "onCreateAccount",
"defaultValue": "new EventEmitter<Event>()",
"deprecated": false,
"deprecationMessage": "",
"line": 75,
"type": "EventEmitter"
},
{
"name": "onLogin",
"defaultValue": "new EventEmitter<Event>()",
"deprecated": false,
"deprecationMessage": "",
"line": 69,
"type": "EventEmitter"
},
{
"name": "onLogout",
"defaultValue": "new EventEmitter<Event>()",
"deprecated": false,
"deprecationMessage": "",
"line": 72,
"type": "EventEmitter"
}
],
"propertiesClass": [],
"methodsClass": [],
"deprecated": false,
"deprecationMessage": "",
"hostBindings": [],
"hostListeners": [],
"standalone": true,
"imports": [
{
"name": "CommonModule",
"type": "module"
},
{
"name": "ButtonComponent",
"type": "component"
}
],
"description": "",
"rawdescription": "\n",
"type": "component",
"sourceCode": "import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { ButtonComponent } from './button.component';\nimport type { User } from './user';\n\n@Component({\n selector: 'storybook-header',\n standalone: true,\n imports: [CommonModule, ButtonComponent],\n template: `<header>\n <div class=\"storybook-header\">\n <div>\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n <g fill=\"none\" fillRule=\"evenodd\">\n <path\n d=\"M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z\"\n fill=\"#555AB9\"\n />\n <path d=\"M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z\" fill=\"#91BAF8\" />\n </g>\n </svg>\n <h1>Acme</h1>\n </div>\n <div>\n <div *ngIf=\"user\">\n <span class=\"welcome\">\n Welcome, <b>{{ user.name }}</b\n >!\n </span>\n <storybook-button\n *ngIf=\"user\"\n size=\"small\"\n (onClick)=\"onLogout.emit($event)\"\n label=\"Log out\"\n ></storybook-button>\n </div>\n <div *ngIf=\"!user\">\n <storybook-button\n *ngIf=\"!user\"\n size=\"small\"\n class=\"margin-left\"\n (onClick)=\"onLogin.emit($event)\"\n label=\"Log in\"\n ></storybook-button>\n <storybook-button\n *ngIf=\"!user\"\n size=\"small\"\n [primary]=\"true\"\n class=\"margin-left\"\n (onClick)=\"onCreateAccount.emit($event)\"\n label=\"Sign up\"\n ></storybook-button>\n </div>\n </div>\n </div>\n</header>`,\n styleUrls: ['./header.css'],\n})\nexport class HeaderComponent {\n @Input()\n user: User | null = null;\n\n @Output()\n onLogin = new EventEmitter<Event>();\n\n @Output()\n onLogout = new EventEmitter<Event>();\n\n @Output()\n onCreateAccount = new EventEmitter<Event>();\n}\n",
"assetsDirs": [],
"styleUrlsData": [
{
"data": ".storybook-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n padding: 15px 20px;\n font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n}\n\n.storybook-header svg {\n display: inline-block;\n vertical-align: top;\n}\n\n.storybook-header h1 {\n display: inline-block;\n vertical-align: top;\n margin: 6px 0 6px 10px;\n font-weight: 700;\n font-size: 20px;\n line-height: 1;\n}\n\n.storybook-header button + button {\n margin-left: 10px;\n}\n\n.storybook-header .welcome {\n margin-right: 10px;\n color: #333;\n font-size: 14px;\n}\n",
"styleUrl": "./header.css"
}
],
"stylesData": "",
"extends": []
},
{
"name": "PageComponent",
"id": "component-PageComponent-21dd6eb370b4983b5c21c84d40e6f54d266a9d9af9889e6e76b35c43058bd53b3e451bad089d5adf4bea46647ba10265a2fa8cb15630398e75636307d4817fc6",
"file": "src/stories/page.component.ts",
"encapsulation": [],
"entryComponents": [],
"inputs": [],
"outputs": [],
"providers": [],
"selector": "storybook-page",
"styleUrls": [
"./page.css"
],
"styles": [],
"template": "<article> <storybook-header\n [user]=\"user\"\n (onLogout)=\"doLogout()\"\n (onLogin)=\"doLogin()\"\n (onCreateAccount)=\"doCreateAccount()\"\n ></storybook-header>\n <section class=\"storybook-page\">\n <h2>Pages in Storybook</h2>\n <p>\n We recommend building UIs with a\n <a href=\"https://componentdriven.org\" target=\"_blank\" rel=\"noopener noreferrer\">\n <strong>component-driven</strong>\n </a>\n process starting with atomic components and ending with pages.\n </p>\n <p>\n Render pages with mock data. This makes it easy to build and review page states without\n needing to navigate to them in your app. Here are some handy patterns for managing page data\n in Storybook:\n </p>\n <ul>\n <li>\n Use a higher-level connected component. Storybook helps you compose such data from the\n \"args\" of child component stories\n </li>\n <li>\n Assemble data in the page component from your services. You can mock these services out\n using Storybook.\n </li>\n </ul>\n <p>\n Get a guided tutorial on component-driven development at\n <a href=\"https://storybook.js.org/tutorials/\" target=\"_blank\" rel=\"noopener noreferrer\">\n Storybook tutorials\n </a>\n . Read more in the\n <a href=\"https://storybook.js.org/docs\" target=\"_blank\" rel=\"noopener noreferrer\"> docs </a>\n .\n </p>\n <div class=\"tip-wrapper\">\n <span class=\"tip\">Tip</span> Adjust the width of the canvas with the\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\">\n <g fill=\"none\" fillRule=\"evenodd\">\n <path\n d=\"M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z\"\n id=\"a\"\n fill=\"#999\"\n />\n </g>\n </svg>\n Viewports addon in the toolbar\n </div>\n </section>\n</article>",
"templateUrl": [],
"viewProviders": [],
"hostDirectives": [],
"inputsClass": [],
"outputsClass": [],
"propertiesClass": [
{
"name": "user",
"defaultValue": "null",
"deprecated": false,
"deprecationMessage": "",
"type": "User | null",
"indexKey": "",
"optional": false,
"description": "",
"line": 69
}
],
"methodsClass": [
{
"name": "doCreateAccount",
"args": [],
"optional": false,
"returnType": "void",
"typeParameters": [],
"line": 79,
"deprecated": false,
"deprecationMessage": ""
},
{
"name": "doLogin",
"args": [],
"optional": false,
"returnType": "void",
"typeParameters": [],
"line": 75,
"deprecated": false,
"deprecationMessage": ""
},
{
"name": "doLogout",
"args": [],
"optional": false,
"returnType": "void",
"typeParameters": [],
"line": 71,
"deprecated": false,
"deprecationMessage": ""
}
],
"deprecated": false,
"deprecationMessage": "",
"hostBindings": [],
"hostListeners": [],
"standalone": true,
"imports": [
{
"name": "CommonModule",
"type": "module"
},
{
"name": "HeaderComponent",
"type": "component"
}
],
"description": "",
"rawdescription": "\n",
"type": "component",
"sourceCode": "import { Component } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { HeaderComponent } from './header.component';\nimport type { User } from './user';\n\n@Component({\n selector: 'storybook-page',\n standalone: true,\n imports: [CommonModule, HeaderComponent],\n template: `<article>\n <storybook-header\n [user]=\"user\"\n (onLogout)=\"doLogout()\"\n (onLogin)=\"doLogin()\"\n (onCreateAccount)=\"doCreateAccount()\"\n ></storybook-header>\n <section class=\"storybook-page\">\n <h2>Pages in Storybook</h2>\n <p>\n We recommend building UIs with a\n <a href=\"https://componentdriven.org\" target=\"_blank\" rel=\"noopener noreferrer\">\n <strong>component-driven</strong>\n </a>\n process starting with atomic components and ending with pages.\n </p>\n <p>\n Render pages with mock data. This makes it easy to build and review page states without\n needing to navigate to them in your app. Here are some handy patterns for managing page data\n in Storybook:\n </p>\n <ul>\n <li>\n Use a higher-level connected component. Storybook helps you compose such data from the\n \"args\" of child component stories\n </li>\n <li>\n Assemble data in the page component from your services. You can mock these services out\n using Storybook.\n </li>\n </ul>\n <p>\n Get a guided tutorial on component-driven development at\n <a href=\"https://storybook.js.org/tutorials/\" target=\"_blank\" rel=\"noopener noreferrer\">\n Storybook tutorials\n </a>\n . Read more in the\n <a href=\"https://storybook.js.org/docs\" target=\"_blank\" rel=\"noopener noreferrer\"> docs </a>\n .\n </p>\n <div class=\"tip-wrapper\">\n <span class=\"tip\">Tip</span> Adjust the width of the canvas with the\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\">\n <g fill=\"none\" fillRule=\"evenodd\">\n <path\n d=\"M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z\"\n id=\"a\"\n fill=\"#999\"\n />\n </g>\n </svg>\n Viewports addon in the toolbar\n </div>\n </section>\n</article>`,\n styleUrls: ['./page.css'],\n})\nexport class PageComponent {\n user: User | null = null;\n\n doLogout() {\n this.user = null;\n }\n\n doLogin() {\n this.user = { name: 'Jane Doe' };\n }\n\n doCreateAccount() {\n this.user = { name: 'Jane Doe' };\n }\n}\n",
"assetsDirs": [],
"styleUrlsData": [
{
"data": ".storybook-page {\n margin: 0 auto;\n padding: 48px 20px;\n max-width: 600px;\n color: #333;\n font-size: 14px;\n line-height: 24px;\n font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n}\n\n.storybook-page h2 {\n display: inline-block;\n vertical-align: top;\n margin: 0 0 4px;\n font-weight: 700;\n font-size: 32px;\n line-height: 1;\n}\n\n.storybook-page p {\n margin: 1em 0;\n}\n\n.storybook-page a {\n color: inherit;\n}\n\n.storybook-page ul {\n margin: 1em 0;\n padding-left: 30px;\n}\n\n.storybook-page li {\n margin-bottom: 8px;\n}\n\n.storybook-page .tip {\n display: inline-block;\n vertical-align: top;\n margin-right: 10px;\n border-radius: 1em;\n background: #e7fdd8;\n padding: 4px 12px;\n color: #357a14;\n font-weight: 700;\n font-size: 11px;\n line-height: 12px;\n}\n\n.storybook-page .tip-wrapper {\n margin-top: 40px;\n margin-bottom: 40px;\n font-size: 13px;\n line-height: 20px;\n}\n\n.storybook-page .tip-wrapper svg {\n display: inline-block;\n vertical-align: top;\n margin-top: 3px;\n margin-right: 4px;\n width: 12px;\n height: 12px;\n}\n\n.storybook-page .tip-wrapper svg path {\n fill: #1ea7fd;\n}\n",
"styleUrl": "./page.css"
}
],
"stylesData": "",
"extends": []
}
],
"modules": [],
"miscellaneous": {
"variables": [
{
"name": "appConfig",
"ctype": "miscellaneous",
"subtype": "variable",
"file": "src/app/app.config.ts",
"deprecated": false,
"deprecationMessage": "",
"type": "ApplicationConfig",
"defaultValue": "{\n providers: [\n provideBrowserGlobalErrorListeners(),\n provideZoneChangeDetection({ eventCoalescing: true }),\n provideRouter(routes)\n ]\n}"
}
],
"functions": [],
"typealiases": [],
"enumerations": [],
"groupedVariables": {
"src/app/app.config.ts": [
{
"name": "appConfig",
"ctype": "miscellaneous",
"subtype": "variable",
"file": "src/app/app.config.ts",
"deprecated": false,
"deprecationMessage": "",
"type": "ApplicationConfig",
"defaultValue": "{\n providers: [\n provideBrowserGlobalErrorListeners(),\n provideZoneChangeDetection({ eventCoalescing: true }),\n provideRouter(routes)\n ]\n}"
}
]
},
"groupedFunctions": {},
"groupedEnumerations": {},
"groupedTypeAliases": {}
},
"routes": [],
"coverage": {
"count": 13,
"status": "low",
"files": [
{
"filePath": "src/app/app.config.ts",
"type": "variable",
"linktype": "miscellaneous",
"linksubtype": "variable",
"name": "appConfig",
"coveragePercent": 0,
"coverageCount": "0/1",
"status": "low"
},
{
"filePath": "src/app/app.ts",
"type": "component",
"linktype": "component",
"name": "App",
"coveragePercent": 0,
"coverageCount": "0/2",
"status": "low"
},
{
"filePath": "src/stories/button.component.ts",
"type": "component",
"linktype": "component",
"name": "ButtonComponent",
"coveragePercent": 83,
"coverageCount": "5/6",
"status": "very-good"
},
{
"filePath": "src/stories/header.component.ts",
"type": "component",
"linktype": "component",
"name": "HeaderComponent",
"coveragePercent": 0,
"coverageCount": "0/5",
"status": "low"
},
{
"filePath": "src/stories/page.component.ts",
"type": "component",
"linktype": "component",
"name": "PageComponent",
"coveragePercent": 0,
"coverageCount": "0/5",
"status": "low"
},
{
"filePath": "src/stories/user.ts",
"type": "interface",
"linktype": "interface",
"name": "User",
"coveragePercent": 0,
"coverageCount": "0/2",
"status": "low"
}
]
}
}