angular-latest 1.0.0 → 1.4.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.

Potentially problematic release.


This version of angular-latest might be problematic. Click here for more details.

Files changed (141) hide show
  1. package/index.js +47 -0
  2. package/package.json +7 -37
  3. package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-3920d97c51b8ad2521918fb1205babd22b0ed3d7 +0 -1
  4. package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-43fdebe5fc35e4e9fabee9a83c7faea931b05ea0 +0 -1
  5. package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-f086b87885981c04ce7a583ff90a49313de83de7 +0 -1
  6. package/.storybook/main.ts +0 -19
  7. package/.storybook/preview.ts +0 -17
  8. package/.storybook/tsconfig.doc.json +0 -10
  9. package/.storybook/tsconfig.json +0 -11
  10. package/.storybook/typings.d.ts +0 -4
  11. package/.vscode/extensions.json +0 -4
  12. package/.vscode/launch.json +0 -13
  13. package/.vscode/tasks.json +0 -24
  14. package/README.md +0 -27
  15. package/angular.json +0 -139
  16. package/documentation.json +0 -607
  17. package/src/app/app.component.ts +0 -17
  18. package/src/app/app.config.ts +0 -8
  19. package/src/app/app.routes.ts +0 -3
  20. package/src/app/nav-bar/nav-bar.component.ts +0 -16
  21. package/src/assets/.gitkeep +0 -0
  22. package/src/favicon.ico +0 -0
  23. package/src/index.html +0 -13
  24. package/src/main.ts +0 -6
  25. package/src/stories/.eslintrc.json +0 -5
  26. package/src/stories/Configure.mdx +0 -364
  27. package/src/stories/assets/accessibility.png +0 -0
  28. package/src/stories/assets/accessibility.svg +0 -5
  29. package/src/stories/assets/addon-library.png +0 -0
  30. package/src/stories/assets/assets.png +0 -0
  31. package/src/stories/assets/avif-test-image.avif +0 -0
  32. package/src/stories/assets/context.png +0 -0
  33. package/src/stories/assets/discord.svg +0 -15
  34. package/src/stories/assets/docs.png +0 -0
  35. package/src/stories/assets/figma-plugin.png +0 -0
  36. package/src/stories/assets/github.svg +0 -3
  37. package/src/stories/assets/share.png +0 -0
  38. package/src/stories/assets/styling.png +0 -0
  39. package/src/stories/assets/testing.png +0 -0
  40. package/src/stories/assets/theming.png +0 -0
  41. package/src/stories/assets/tutorials.svg +0 -12
  42. package/src/stories/assets/youtube.svg +0 -4
  43. package/src/stories/button.component.ts +0 -56
  44. package/src/stories/button.css +0 -30
  45. package/src/stories/button.stories.ts +0 -48
  46. package/src/stories/header.component.ts +0 -79
  47. package/src/stories/header.css +0 -32
  48. package/src/stories/header.stories.ts +0 -33
  49. package/src/stories/loade.stories.ts +0 -33
  50. package/src/stories/loader.css +0 -24
  51. package/src/stories/loader.ts +0 -13
  52. package/src/stories/page.component.ts +0 -82
  53. package/src/stories/page.css +0 -69
  54. package/src/stories/page.stories.ts +0 -32
  55. package/src/stories/user.ts +0 -3
  56. package/src/styles.scss +0 -1
  57. package/storybook-static/419.9380106a.iframe.bundle.js +0 -1
  58. package/storybook-static/555.5343233e.iframe.bundle.js +0 -1
  59. package/storybook-static/723.c32e1188.iframe.bundle.js +0 -425
  60. package/storybook-static/723.c32e1188.iframe.bundle.js.LICENSE.txt +0 -52
  61. package/storybook-static/723.c32e1188.iframe.bundle.js.map +0 -1
  62. package/storybook-static/764.3794ca45.iframe.bundle.js +0 -1
  63. package/storybook-static/787.f3a8f680.iframe.bundle.js +0 -1
  64. package/storybook-static/912.a867d3a2.iframe.bundle.js +0 -1
  65. package/storybook-static/944.63355339.iframe.bundle.js +0 -1
  66. package/storybook-static/994.39018fc0.iframe.bundle.js +0 -95
  67. package/storybook-static/994.39018fc0.iframe.bundle.js.LICENSE.txt +0 -29
  68. package/storybook-static/994.39018fc0.iframe.bundle.js.map +0 -1
  69. package/storybook-static/favicon.svg +0 -7
  70. package/storybook-static/iframe.html +0 -370
  71. package/storybook-static/index.html +0 -159
  72. package/storybook-static/index.json +0 -1
  73. package/storybook-static/main.01eb4ecea8870f3a4901.css +0 -1
  74. package/storybook-static/main.ecd23fcd.iframe.bundle.js +0 -1
  75. package/storybook-static/project.json +0 -1
  76. package/storybook-static/runtime~main.8d985908.iframe.bundle.js +0 -1
  77. package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +0 -327
  78. package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +0 -40
  79. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +0 -3
  80. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
  81. package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +0 -12
  82. package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt +0 -0
  83. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +0 -60
  84. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -18
  85. package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +0 -3
  86. package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt +0 -0
  87. package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +0 -3
  88. package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt +0 -0
  89. package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +0 -3
  90. package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt +0 -0
  91. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +0 -3
  92. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt +0 -0
  93. package/storybook-static/sb-addons/interactions-10/manager-bundle.js +0 -33
  94. package/storybook-static/sb-addons/interactions-10/manager-bundle.js.LEGAL.txt +0 -0
  95. package/storybook-static/sb-addons/links-1/manager-bundle.js +0 -3
  96. package/storybook-static/sb-addons/links-1/manager-bundle.js.LEGAL.txt +0 -0
  97. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -3
  98. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  99. package/storybook-static/sb-common-assets/fonts.css +0 -31
  100. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  101. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  102. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  103. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  104. package/storybook-static/sb-manager/WithTooltip-Y7J54OF7-CEHQ77YF.js +0 -1
  105. package/storybook-static/sb-manager/chunk-FEE35O7J.js +0 -9
  106. package/storybook-static/sb-manager/chunk-GFFGH77H.js +0 -183
  107. package/storybook-static/sb-manager/chunk-KCHUFUTG.js +0 -234
  108. package/storybook-static/sb-manager/chunk-S4VOIVUE.js +0 -347
  109. package/storybook-static/sb-manager/chunk-XCO5HRLK.js +0 -6
  110. package/storybook-static/sb-manager/chunk-XP3HGWTR.js +0 -1
  111. package/storybook-static/sb-manager/formatter-B5HCVTEV-7DCBOGO6.js +0 -58
  112. package/storybook-static/sb-manager/globals-module-info.js +0 -1
  113. package/storybook-static/sb-manager/globals-runtime.js +0 -1
  114. package/storybook-static/sb-manager/globals.js +0 -1
  115. package/storybook-static/sb-manager/index.js +0 -1
  116. package/storybook-static/sb-manager/runtime.js +0 -1
  117. package/storybook-static/sb-manager/syntaxhighlighter-JOJW2KGS-VF6EEVPI.js +0 -1
  118. package/storybook-static/sb-preview/globals.js +0 -1
  119. package/storybook-static/sb-preview/runtime.js +0 -139
  120. package/storybook-static/static/media/accessibility.2dbc6973.png +0 -0
  121. package/storybook-static/static/media/addon-library.7a58d2cb.png +0 -0
  122. package/storybook-static/static/media/assets.e6440a95.png +0 -0
  123. package/storybook-static/static/media/context.645728c6.png +0 -0
  124. package/storybook-static/static/media/discord.bd319a53.svg +0 -15
  125. package/storybook-static/static/media/docs.f7d8b9a8.png +0 -0
  126. package/storybook-static/static/media/figma-plugin.9335a1a9.png +0 -0
  127. package/storybook-static/static/media/github.0366d3df.svg +0 -3
  128. package/storybook-static/static/media/share.161528bb.png +0 -0
  129. package/storybook-static/static/media/styling.38cab73b.png +0 -0
  130. package/storybook-static/static/media/testing.c720ced2.png +0 -0
  131. package/storybook-static/static/media/theming.e93de094.png +0 -0
  132. package/storybook-static/static/media/tutorials.dc623e0d.svg +0 -12
  133. package/storybook-static/static/media/youtube.9ab9c849.svg +0 -4
  134. package/storybook-static/stories-Configure-mdx.4d18500d.iframe.bundle.js +0 -2
  135. package/storybook-static/stories-Configure-mdx.4d18500d.iframe.bundle.js.LICENSE.txt +0 -9
  136. package/storybook-static/stories-button-stories.e503e31e.iframe.bundle.js +0 -1
  137. package/storybook-static/stories-header-stories.2b1be1ea.iframe.bundle.js +0 -1
  138. package/storybook-static/stories-loade-stories.ca71547d.iframe.bundle.js +0 -1
  139. package/storybook-static/stories-page-stories.528e11e1.iframe.bundle.js +0 -1
  140. package/tsconfig.app.json +0 -14
  141. package/tsconfig.json +0 -32
@@ -1,607 +0,0 @@
1
- {
2
- "pipes": [],
3
- "interfaces": [
4
- {
5
- "name": "User",
6
- "id": "interface-User-d4821beac0e4a852e513391b7470981c4353fdd95a18628bb68136c8695b489ee15b926e2e5031bc26cf30e1508e0a362c3ee13a06734702b4d15af140e485d5",
7
- "file": "src/stories/user.ts",
8
- "deprecated": false,
9
- "deprecationMessage": "",
10
- "type": "interface",
11
- "sourceCode": "export interface User {\n name: string;\n}\n",
12
- "properties": [
13
- {
14
- "name": "name",
15
- "deprecated": false,
16
- "deprecationMessage": "",
17
- "type": "string",
18
- "optional": false,
19
- "description": "",
20
- "line": 2
21
- }
22
- ],
23
- "indexSignatures": [],
24
- "kind": 171,
25
- "methods": [],
26
- "extends": []
27
- }
28
- ],
29
- "injectables": [],
30
- "guards": [],
31
- "interceptors": [],
32
- "classes": [],
33
- "directives": [],
34
- "components": [
35
- {
36
- "name": "AppComponent",
37
- "id": "component-AppComponent-f6e0a4165d90cd59f3e708780d9a8341fa358b7687dd565495660007b0653a064c738c99f2fcf4933a6716ace42cccf066ae403b54d7fe0acdb9b2879c092f10",
38
- "file": "src/app/app.component.ts",
39
- "encapsulation": [],
40
- "entryComponents": [],
41
- "inputs": [],
42
- "outputs": [],
43
- "providers": [],
44
- "selector": "app-root",
45
- "styleUrls": [],
46
- "styles": [],
47
- "template": "<h1>Welcome to {{title}}!</h1>\n\n<router-outlet />\n",
48
- "templateUrl": [],
49
- "viewProviders": [],
50
- "hostDirectives": [],
51
- "inputsClass": [],
52
- "outputsClass": [],
53
- "propertiesClass": [
54
- {
55
- "name": "title",
56
- "defaultValue": "'angular-latest'",
57
- "deprecated": false,
58
- "deprecationMessage": "",
59
- "type": "string",
60
- "optional": false,
61
- "description": "",
62
- "line": 16
63
- }
64
- ],
65
- "methodsClass": [],
66
- "deprecated": false,
67
- "deprecationMessage": "",
68
- "hostBindings": [],
69
- "hostListeners": [],
70
- "standalone": true,
71
- "imports": [
72
- {
73
- "name": "RouterOutlet"
74
- }
75
- ],
76
- "description": "",
77
- "rawdescription": "\n",
78
- "type": "component",
79
- "sourceCode": "import { Component } from '@angular/core';\r\nimport { RouterOutlet } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n standalone: true,\r\n imports: [RouterOutlet],\r\n template: `\r\n <h1>Welcome to {{title}}!</h1>\r\n\r\n <router-outlet />\r\n `,\r\n styles: [],\r\n})\r\nexport class AppComponent {\r\n title = 'angular-latest';\r\n}\r\n",
80
- "assetsDirs": [],
81
- "styleUrlsData": "",
82
- "stylesData": "",
83
- "extends": []
84
- },
85
- {
86
- "name": "ButtonComponent",
87
- "id": "component-ButtonComponent-86e2311c54fbca7431c12e070d0fd5b0ebe343eec0553a392f182ba0e04a8f86613233d26ee47718fd0e7a65078f580c76a1fcc928ce55de81193d6618025bc4",
88
- "file": "src/stories/button.component.ts",
89
- "encapsulation": [],
90
- "entryComponents": [],
91
- "inputs": [],
92
- "outputs": [],
93
- "providers": [],
94
- "selector": "storybook-button",
95
- "styleUrls": [
96
- "./button.css"
97
- ],
98
- "styles": [],
99
- "template": "<button type=\"button\"\n (click)=\"onClick.emit($event)\"\n [ngClass]=\"classes\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n >\n {{ label }}\n </button>",
100
- "templateUrl": [],
101
- "viewProviders": [],
102
- "hostDirectives": [],
103
- "inputsClass": [
104
- {
105
- "name": "backgroundColor",
106
- "deprecated": false,
107
- "deprecationMessage": "",
108
- "rawdescription": "\n\nWhat background color to use\n",
109
- "description": "<p>What background color to use</p>\n",
110
- "line": 29,
111
- "type": "string",
112
- "decorators": []
113
- },
114
- {
115
- "name": "label",
116
- "defaultValue": "'Button'",
117
- "deprecated": false,
118
- "deprecationMessage": "",
119
- "jsdoctags": [
120
- {
121
- "pos": 798,
122
- "end": 811,
123
- "flags": 16842752,
124
- "modifierFlagsCache": 0,
125
- "transformFlags": 0,
126
- "kind": 334,
127
- "tagName": {
128
- "pos": 799,
129
- "end": 807,
130
- "flags": 16842752,
131
- "modifierFlagsCache": 0,
132
- "transformFlags": 0,
133
- "kind": 80,
134
- "escapedText": "required"
135
- },
136
- "comment": ""
137
- }
138
- ],
139
- "rawdescription": "\n\nButton contents\n\n",
140
- "description": "<p>Button contents</p>\n",
141
- "line": 43,
142
- "type": "string",
143
- "decorators": []
144
- },
145
- {
146
- "name": "primary",
147
- "defaultValue": "false",
148
- "deprecated": false,
149
- "deprecationMessage": "",
150
- "rawdescription": "\n\nIs this the principal call to action on the page?\n",
151
- "description": "<p>Is this the principal call to action on the page?</p>\n",
152
- "line": 23,
153
- "type": "boolean",
154
- "decorators": []
155
- },
156
- {
157
- "name": "size",
158
- "defaultValue": "'medium'",
159
- "deprecated": false,
160
- "deprecationMessage": "",
161
- "rawdescription": "\n\nHow large should the button be?\n",
162
- "description": "<p>How large should the button be?</p>\n",
163
- "line": 35,
164
- "type": "\"small\" | \"medium\" | \"large\"",
165
- "decorators": []
166
- }
167
- ],
168
- "outputsClass": [
169
- {
170
- "name": "onClick",
171
- "defaultValue": "new EventEmitter<Event>()",
172
- "deprecated": false,
173
- "deprecationMessage": "",
174
- "rawdescription": "\n\nOptional click handler\n",
175
- "description": "<p>Optional click handler</p>\n",
176
- "line": 49,
177
- "type": "EventEmitter"
178
- }
179
- ],
180
- "propertiesClass": [],
181
- "methodsClass": [],
182
- "deprecated": false,
183
- "deprecationMessage": "",
184
- "hostBindings": [],
185
- "hostListeners": [],
186
- "standalone": true,
187
- "imports": [
188
- {
189
- "name": "CommonModule",
190
- "type": "module"
191
- }
192
- ],
193
- "description": "",
194
- "rawdescription": "\n",
195
- "type": "component",
196
- "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 /**\n * Is this the principal call to action on the page?\n */\n @Input()\n primary = false;\n\n /**\n * What background color to use\n */\n @Input()\n backgroundColor?: string;\n\n /**\n * How large should the button be?\n */\n @Input()\n size: 'small' | 'medium' | 'large' = 'medium';\n\n /**\n * Button contents\n *\n * @required\n */\n @Input()\n label = 'Button';\n\n /**\n * Optional click handler\n */\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",
197
- "assetsDirs": [],
198
- "styleUrlsData": [
199
- {
200
- "data": ".storybook-button {\n font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-weight: 700;\n border: 0;\n border-radius: 3em;\n cursor: pointer;\n display: inline-block;\n line-height: 1;\n}\n.storybook-button--primary {\n color: white;\n background-color: #1ea7fd;\n}\n.storybook-button--secondary {\n color: #333;\n background-color: transparent;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;\n}\n.storybook-button--small {\n font-size: 12px;\n padding: 10px 16px;\n}\n.storybook-button--medium {\n font-size: 14px;\n padding: 11px 20px;\n}\n.storybook-button--large {\n font-size: 16px;\n padding: 12px 24px;\n}\n",
201
- "styleUrl": "./button.css"
202
- }
203
- ],
204
- "stylesData": "",
205
- "extends": [],
206
- "accessors": {
207
- "classes": {
208
- "name": "classes",
209
- "getSignature": {
210
- "name": "classes",
211
- "type": "[]",
212
- "returnType": "string[]",
213
- "line": 51
214
- }
215
- }
216
- }
217
- },
218
- {
219
- "name": "HeaderComponent",
220
- "id": "component-HeaderComponent-cad94b233ec8e80ceb541e7972c5f9737e08237b4e137112f3987ca48ee0cce5c0d57798d41daa5d4d24d6bdbb2df1606ab68cca2aa0a1785e38f99f3cac0729",
221
- "file": "src/stories/header.component.ts",
222
- "encapsulation": [],
223
- "entryComponents": [],
224
- "inputs": [],
225
- "outputs": [],
226
- "providers": [],
227
- "selector": "storybook-header",
228
- "styleUrls": [
229
- "./header.css"
230
- ],
231
- "styles": [],
232
- "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\n d=\"M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z\"\n fill=\"#91BAF8\"\n />\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>",
233
- "templateUrl": [],
234
- "viewProviders": [],
235
- "hostDirectives": [],
236
- "inputsClass": [
237
- {
238
- "name": "user",
239
- "defaultValue": "null",
240
- "deprecated": false,
241
- "deprecationMessage": "",
242
- "line": 69,
243
- "type": "User | null",
244
- "decorators": []
245
- }
246
- ],
247
- "outputsClass": [
248
- {
249
- "name": "onCreateAccount",
250
- "defaultValue": "new EventEmitter<Event>()",
251
- "deprecated": false,
252
- "deprecationMessage": "",
253
- "line": 78,
254
- "type": "EventEmitter"
255
- },
256
- {
257
- "name": "onLogin",
258
- "defaultValue": "new EventEmitter<Event>()",
259
- "deprecated": false,
260
- "deprecationMessage": "",
261
- "line": 72,
262
- "type": "EventEmitter"
263
- },
264
- {
265
- "name": "onLogout",
266
- "defaultValue": "new EventEmitter<Event>()",
267
- "deprecated": false,
268
- "deprecationMessage": "",
269
- "line": 75,
270
- "type": "EventEmitter"
271
- }
272
- ],
273
- "propertiesClass": [],
274
- "methodsClass": [],
275
- "deprecated": false,
276
- "deprecationMessage": "",
277
- "hostBindings": [],
278
- "hostListeners": [],
279
- "standalone": true,
280
- "imports": [
281
- {
282
- "name": "CommonModule",
283
- "type": "module"
284
- },
285
- {
286
- "name": "ButtonComponent",
287
- "type": "component"
288
- }
289
- ],
290
- "description": "",
291
- "rawdescription": "\n",
292
- "type": "component",
293
- "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\n d=\"M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z\"\n fill=\"#91BAF8\"\n />\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",
294
- "assetsDirs": [],
295
- "styleUrlsData": [
296
- {
297
- "data": ".storybook-header {\n font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n padding: 15px 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.storybook-header svg {\n display: inline-block;\n vertical-align: top;\n}\n\n.storybook-header h1 {\n font-weight: 700;\n font-size: 20px;\n line-height: 1;\n margin: 6px 0 6px 10px;\n display: inline-block;\n vertical-align: top;\n}\n\n.storybook-header button + button {\n margin-left: 10px;\n}\n\n.storybook-header .welcome {\n color: #333;\n font-size: 14px;\n margin-right: 10px;\n}\n",
298
- "styleUrl": "./header.css"
299
- }
300
- ],
301
- "stylesData": "",
302
- "extends": []
303
- },
304
- {
305
- "name": "LoaderComponent",
306
- "id": "component-LoaderComponent-3e70b0a6610836b0763ed9f419eb4ac4f6c27ec5b572ca14fbe8a9d4d01587f3270f2bf80bc63bf7740a740832a4660d65cdbc5f1d366cf23138963778c0a968",
307
- "file": "src/stories/loader.ts",
308
- "encapsulation": [],
309
- "entryComponents": [],
310
- "inputs": [],
311
- "outputs": [],
312
- "providers": [],
313
- "selector": "storybook-loader",
314
- "styleUrls": [
315
- "./loader.css"
316
- ],
317
- "styles": [],
318
- "template": "<div class=\"loader\" [ngClass]=\"{'small': size === 'small', 'large': size === 'large'}\"></div>",
319
- "templateUrl": [],
320
- "viewProviders": [],
321
- "hostDirectives": [],
322
- "inputsClass": [
323
- {
324
- "name": "size",
325
- "defaultValue": "'medium'",
326
- "deprecated": false,
327
- "deprecationMessage": "",
328
- "line": 12,
329
- "type": "\"small\" | \"medium\" | \"large\"",
330
- "decorators": []
331
- }
332
- ],
333
- "outputsClass": [],
334
- "propertiesClass": [],
335
- "methodsClass": [],
336
- "deprecated": false,
337
- "deprecationMessage": "",
338
- "hostBindings": [],
339
- "hostListeners": [],
340
- "standalone": true,
341
- "imports": [
342
- {
343
- "name": "CommonModule",
344
- "type": "module"
345
- }
346
- ],
347
- "description": "",
348
- "rawdescription": "\n",
349
- "type": "component",
350
- "sourceCode": "import { CommonModule } from '@angular/common';\nimport { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'storybook-loader',\n standalone: true,\n imports: [CommonModule],\n template: `<div class=\"loader\" [ngClass]=\"{'small': size === 'small', 'large': size === 'large'}\"></div>`,\n styleUrls: ['./loader.css'],\n})\nexport class LoaderComponent {\n @Input() size: 'small' | 'medium' | 'large' = 'medium';\n}\n",
351
- "assetsDirs": [],
352
- "styleUrlsData": [
353
- {
354
- "data": ".loader {\n border: 4px solid #f3f3f3;\n border-top: 4px solid #3498db;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n animation: spin 1s linear infinite;\n margin: 20px auto;\n}\n\n.small {\n width: 10px;\n height: 10px;\n}\n\n.large {\n width: 40px;\n height: 40px;\n}\n\n@keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}",
355
- "styleUrl": "./loader.css"
356
- }
357
- ],
358
- "stylesData": "",
359
- "extends": []
360
- },
361
- {
362
- "name": "NavBarComponent",
363
- "id": "component-NavBarComponent-caa1ca12cf5225daef254aa1713612b1fe912e158eee5699055180c6906ec34c9da1f67047c6b2ebdd8fd59f06c25f2319a4466292329a2235595d52fa4e5e49",
364
- "file": "src/app/nav-bar/nav-bar.component.ts",
365
- "encapsulation": [],
366
- "entryComponents": [],
367
- "inputs": [],
368
- "outputs": [],
369
- "providers": [],
370
- "selector": "app-nav-bar",
371
- "styleUrls": [],
372
- "styles": [
373
- ""
374
- ],
375
- "template": "<p>\n nav-bar works!\n</p>\n",
376
- "templateUrl": [],
377
- "viewProviders": [],
378
- "hostDirectives": [],
379
- "inputsClass": [],
380
- "outputsClass": [],
381
- "propertiesClass": [],
382
- "methodsClass": [],
383
- "deprecated": false,
384
- "deprecationMessage": "",
385
- "hostBindings": [],
386
- "hostListeners": [],
387
- "standalone": true,
388
- "imports": [],
389
- "description": "",
390
- "rawdescription": "\n",
391
- "type": "component",
392
- "sourceCode": "import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-nav-bar',\r\n standalone: true,\r\n imports: [],\r\n template: `\r\n <p>\r\n nav-bar works!\r\n </p>\r\n `,\r\n styles: ``\r\n})\r\nexport class NavBarComponent {\r\n\r\n}\r\n",
393
- "assetsDirs": [],
394
- "styleUrlsData": "",
395
- "stylesData": "\n",
396
- "extends": []
397
- },
398
- {
399
- "name": "PageComponent",
400
- "id": "component-PageComponent-d32b0f19628254ea3fc5526c4d4564ada1cc83cf936759006d90a46f5874b02a3359e331bddda20b22e74a616a6443c660602ba74dd38ebe1160759e0de6f7ba",
401
- "file": "src/stories/page.component.ts",
402
- "encapsulation": [],
403
- "entryComponents": [],
404
- "inputs": [],
405
- "outputs": [],
406
- "providers": [],
407
- "selector": "storybook-page",
408
- "styleUrls": [
409
- "./page.css"
410
- ],
411
- "styles": [],
412
- "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>",
413
- "templateUrl": [],
414
- "viewProviders": [],
415
- "hostDirectives": [],
416
- "inputsClass": [],
417
- "outputsClass": [],
418
- "propertiesClass": [
419
- {
420
- "name": "user",
421
- "defaultValue": "null",
422
- "deprecated": false,
423
- "deprecationMessage": "",
424
- "type": "User | null",
425
- "optional": false,
426
- "description": "",
427
- "line": 69
428
- }
429
- ],
430
- "methodsClass": [
431
- {
432
- "name": "doCreateAccount",
433
- "args": [],
434
- "optional": false,
435
- "returnType": "void",
436
- "typeParameters": [],
437
- "line": 79,
438
- "deprecated": false,
439
- "deprecationMessage": ""
440
- },
441
- {
442
- "name": "doLogin",
443
- "args": [],
444
- "optional": false,
445
- "returnType": "void",
446
- "typeParameters": [],
447
- "line": 75,
448
- "deprecated": false,
449
- "deprecationMessage": ""
450
- },
451
- {
452
- "name": "doLogout",
453
- "args": [],
454
- "optional": false,
455
- "returnType": "void",
456
- "typeParameters": [],
457
- "line": 71,
458
- "deprecated": false,
459
- "deprecationMessage": ""
460
- }
461
- ],
462
- "deprecated": false,
463
- "deprecationMessage": "",
464
- "hostBindings": [],
465
- "hostListeners": [],
466
- "standalone": true,
467
- "imports": [
468
- {
469
- "name": "CommonModule",
470
- "type": "module"
471
- },
472
- {
473
- "name": "HeaderComponent",
474
- "type": "component"
475
- }
476
- ],
477
- "description": "",
478
- "rawdescription": "\n",
479
- "type": "component",
480
- "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",
481
- "assetsDirs": [],
482
- "styleUrlsData": [
483
- {
484
- "data": ".storybook-page {\n font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-size: 14px;\n line-height: 24px;\n padding: 48px 20px;\n margin: 0 auto;\n max-width: 600px;\n color: #333;\n}\n\n.storybook-page h2 {\n font-weight: 700;\n font-size: 32px;\n line-height: 1;\n margin: 0 0 4px;\n display: inline-block;\n vertical-align: top;\n}\n\n.storybook-page p {\n margin: 1em 0;\n}\n\n.storybook-page a {\n text-decoration: none;\n color: #1ea7fd;\n}\n\n.storybook-page ul {\n padding-left: 30px;\n margin: 1em 0;\n}\n\n.storybook-page li {\n margin-bottom: 8px;\n}\n\n.storybook-page .tip {\n display: inline-block;\n border-radius: 1em;\n font-size: 11px;\n line-height: 12px;\n font-weight: 700;\n background: #e7fdd8;\n color: #66bf3c;\n padding: 4px 12px;\n margin-right: 10px;\n vertical-align: top;\n}\n\n.storybook-page .tip-wrapper {\n font-size: 13px;\n line-height: 20px;\n margin-top: 40px;\n margin-bottom: 40px;\n}\n\n.storybook-page .tip-wrapper svg {\n display: inline-block;\n height: 12px;\n width: 12px;\n margin-right: 4px;\n vertical-align: top;\n margin-top: 3px;\n}\n\n.storybook-page .tip-wrapper svg path {\n fill: #1ea7fd;\n}\n",
485
- "styleUrl": "./page.css"
486
- }
487
- ],
488
- "stylesData": "",
489
- "extends": []
490
- }
491
- ],
492
- "modules": [],
493
- "miscellaneous": {
494
- "variables": [
495
- {
496
- "name": "appConfig",
497
- "ctype": "miscellaneous",
498
- "subtype": "variable",
499
- "file": "src/app/app.config.ts",
500
- "deprecated": false,
501
- "deprecationMessage": "",
502
- "type": "ApplicationConfig",
503
- "defaultValue": "{\r\n providers: [provideRouter(routes)]\r\n}"
504
- }
505
- ],
506
- "functions": [],
507
- "typealiases": [],
508
- "enumerations": [],
509
- "groupedVariables": {
510
- "src/app/app.config.ts": [
511
- {
512
- "name": "appConfig",
513
- "ctype": "miscellaneous",
514
- "subtype": "variable",
515
- "file": "src/app/app.config.ts",
516
- "deprecated": false,
517
- "deprecationMessage": "",
518
- "type": "ApplicationConfig",
519
- "defaultValue": "{\r\n providers: [provideRouter(routes)]\r\n}"
520
- }
521
- ]
522
- },
523
- "groupedFunctions": {},
524
- "groupedEnumerations": {},
525
- "groupedTypeAliases": {}
526
- },
527
- "routes": [],
528
- "coverage": {
529
- "count": 10,
530
- "status": "low",
531
- "files": [
532
- {
533
- "filePath": "src/app/app.component.ts",
534
- "type": "component",
535
- "linktype": "component",
536
- "name": "AppComponent",
537
- "coveragePercent": 0,
538
- "coverageCount": "0/2",
539
- "status": "low"
540
- },
541
- {
542
- "filePath": "src/app/app.config.ts",
543
- "type": "variable",
544
- "linktype": "miscellaneous",
545
- "linksubtype": "variable",
546
- "name": "appConfig",
547
- "coveragePercent": 0,
548
- "coverageCount": "0/1",
549
- "status": "low"
550
- },
551
- {
552
- "filePath": "src/app/nav-bar/nav-bar.component.ts",
553
- "type": "component",
554
- "linktype": "component",
555
- "name": "NavBarComponent",
556
- "coveragePercent": 0,
557
- "coverageCount": "0/1",
558
- "status": "low"
559
- },
560
- {
561
- "filePath": "src/stories/button.component.ts",
562
- "type": "component",
563
- "linktype": "component",
564
- "name": "ButtonComponent",
565
- "coveragePercent": 83,
566
- "coverageCount": "5/6",
567
- "status": "very-good"
568
- },
569
- {
570
- "filePath": "src/stories/header.component.ts",
571
- "type": "component",
572
- "linktype": "component",
573
- "name": "HeaderComponent",
574
- "coveragePercent": 0,
575
- "coverageCount": "0/5",
576
- "status": "low"
577
- },
578
- {
579
- "filePath": "src/stories/loader.ts",
580
- "type": "component",
581
- "linktype": "component",
582
- "name": "LoaderComponent",
583
- "coveragePercent": 0,
584
- "coverageCount": "0/2",
585
- "status": "low"
586
- },
587
- {
588
- "filePath": "src/stories/page.component.ts",
589
- "type": "component",
590
- "linktype": "component",
591
- "name": "PageComponent",
592
- "coveragePercent": 0,
593
- "coverageCount": "0/5",
594
- "status": "low"
595
- },
596
- {
597
- "filePath": "src/stories/user.ts",
598
- "type": "interface",
599
- "linktype": "interface",
600
- "name": "User",
601
- "coveragePercent": 0,
602
- "coverageCount": "0/2",
603
- "status": "low"
604
- }
605
- ]
606
- }
607
- }
@@ -1,17 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { RouterOutlet } from '@angular/router';
3
-
4
- @Component({
5
- selector: 'app-root',
6
- standalone: true,
7
- imports: [RouterOutlet],
8
- template: `
9
- <h1>Welcome to {{title}}!</h1>
10
-
11
- <router-outlet />
12
- `,
13
- styles: [],
14
- })
15
- export class AppComponent {
16
- title = 'angular-latest';
17
- }
@@ -1,8 +0,0 @@
1
- import { ApplicationConfig } from '@angular/core';
2
- import { provideRouter } from '@angular/router';
3
-
4
- import { routes } from './app.routes';
5
-
6
- export const appConfig: ApplicationConfig = {
7
- providers: [provideRouter(routes)]
8
- };
@@ -1,3 +0,0 @@
1
- import { Routes } from '@angular/router';
2
-
3
- export const routes: Routes = [];