angular-latest 0.0.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-3920d97c51b8ad2521918fb1205babd22b0ed3d7 +1 -1
- package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-43fdebe5fc35e4e9fabee9a83c7faea931b05ea0 +1 -1
- package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-f086b87885981c04ce7a583ff90a49313de83de7 +1 -0
- package/angular.json +1 -1
- package/documentation.json +73 -18
- package/package.json +1 -1
- package/src/app/nav-bar/nav-bar.component.ts +16 -0
- package/src/stories/{loader.stories.ts → loade.stories.ts} +33 -28
- package/src/stories/loader.css +24 -0
- package/src/stories/loader.ts +13 -0
- package/storybook-static/{723.dcfee548.iframe.bundle.js → 723.c32e1188.iframe.bundle.js} +5 -5
- package/storybook-static/{723.dcfee548.iframe.bundle.js.LICENSE.txt → 723.c32e1188.iframe.bundle.js.LICENSE.txt} +2 -2
- package/storybook-static/{723.dcfee548.iframe.bundle.js.map → 723.c32e1188.iframe.bundle.js.map} +1 -1
- package/storybook-static/{764.16831083.iframe.bundle.js → 764.3794ca45.iframe.bundle.js} +1 -1
- package/storybook-static/{994.091897e1.iframe.bundle.js → 994.39018fc0.iframe.bundle.js} +3 -3
- package/storybook-static/{994.091897e1.iframe.bundle.js.map → 994.39018fc0.iframe.bundle.js.map} +1 -1
- package/storybook-static/iframe.html +3 -3
- package/storybook-static/index.json +1 -1
- package/storybook-static/main.ecd23fcd.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/runtime~main.8d985908.iframe.bundle.js +1 -0
- package/storybook-static/stories-loade-stories.ca71547d.iframe.bundle.js +1 -0
- package/src/app/components/loader/loader.component.css +0 -21
- package/src/app/components/loader/loader.component.html +0 -1
- package/src/app/components/loader/loader.component.ts +0 -10
- package/storybook-static/main.c80cd11c.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.19b79a34.iframe.bundle.js +0 -1
- package/storybook-static/stories-loader-stories.8e527f9e.iframe.bundle.js +0 -1
- /package/storybook-static/{994.091897e1.iframe.bundle.js.LICENSE.txt → 994.39018fc0.iframe.bundle.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"value":{"id":"
|
|
1
|
+
{"value":{"id":"itMRBv2uhXYK92WU2naBm","lastUsed":1714464396648},"type":"Object","created":"2024-04-30T08:06:36.648Z","ttl":0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"value":
|
|
1
|
+
{"value":1714464195609,"type":"Number","created":"2024-04-30T08:03:15.612Z","ttl":0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"value":{"scaffolded-empty":{"body":{"eventType":"scaffolded-empty","eventId":"cQOeNClPTGkJFwjsoqhH4","sessionId":"itMRBv2uhXYK92WU2naBm","payload":{"packageManager":"npm","projectType":"angular-cli","metadataErrorMessage":"No configuration files have been found in your configDir: .storybook.\nStorybook needs a \"main.js\" file, please add it.\n\nYou can pass a --config-dir flag to tell Storybook, where your main.js file is located at).\n\nMore info: https://storybook.js.org/docs/configure\n"},"context":{"inCI":false,"isTTY":true,"platform":"Windows","cliVersion":"8.0.9"}},"timestamp":1714464196597},"init":{"body":{"eventType":"init","eventId":"GcS-hS-4huDJxKOiSQjwv","sessionId":"itMRBv2uhXYK92WU2naBm","metadata":{"generatedAt":1714464395571,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"preview":{"usesGlobals":false},"framework":{"name":"@storybook/angular","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/angular","storybookVersion":"8.0.9","storybookVersionSpecifier":"^8.0.9","language":"typescript","storybookPackages":{"@storybook/addon-docs":{"version":"8.0.9"},"@storybook/angular":{"version":"8.0.9"},"@storybook/blocks":{"version":"8.0.9"},"@storybook/test":{"version":"8.0.9"},"storybook":{"version":"8.0.9"}},"addons":{"@storybook/addon-links":{"version":"8.0.9"},"@storybook/addon-essentials":{"version":"8.0.9"},"@chromatic-com/storybook":{"version":"1.3.3"},"@storybook/addon-interactions":{"version":"8.0.9"}}},"payload":{"projectType":"ANGULAR"},"context":{"inCI":false,"isTTY":true,"platform":"Windows","cliVersion":"8.0.9"}},"timestamp":1714464396650}},"type":"Object","created":"2024-04-30T08:06:36.651Z","ttl":0}
|
package/angular.json
CHANGED
package/documentation.json
CHANGED
|
@@ -303,19 +303,20 @@
|
|
|
303
303
|
},
|
|
304
304
|
{
|
|
305
305
|
"name": "LoaderComponent",
|
|
306
|
-
"id": "component-LoaderComponent-
|
|
307
|
-
"file": "src/
|
|
306
|
+
"id": "component-LoaderComponent-3e70b0a6610836b0763ed9f419eb4ac4f6c27ec5b572ca14fbe8a9d4d01587f3270f2bf80bc63bf7740a740832a4660d65cdbc5f1d366cf23138963778c0a968",
|
|
307
|
+
"file": "src/stories/loader.ts",
|
|
308
308
|
"encapsulation": [],
|
|
309
309
|
"entryComponents": [],
|
|
310
310
|
"inputs": [],
|
|
311
311
|
"outputs": [],
|
|
312
312
|
"providers": [],
|
|
313
|
-
"selector": "
|
|
314
|
-
"styleUrls": [
|
|
315
|
-
|
|
316
|
-
"templateUrl": [
|
|
317
|
-
"./loader.component.html"
|
|
313
|
+
"selector": "storybook-loader",
|
|
314
|
+
"styleUrls": [
|
|
315
|
+
"./loader.css"
|
|
318
316
|
],
|
|
317
|
+
"styles": [],
|
|
318
|
+
"template": "<div class=\"loader\" [ngClass]=\"{'small': size === 'small', 'large': size === 'large'}\"></div>",
|
|
319
|
+
"templateUrl": [],
|
|
319
320
|
"viewProviders": [],
|
|
320
321
|
"hostDirectives": [],
|
|
321
322
|
"inputsClass": [
|
|
@@ -324,7 +325,7 @@
|
|
|
324
325
|
"defaultValue": "'medium'",
|
|
325
326
|
"deprecated": false,
|
|
326
327
|
"deprecationMessage": "",
|
|
327
|
-
"line":
|
|
328
|
+
"line": 12,
|
|
328
329
|
"type": "\"small\" | \"medium\" | \"large\"",
|
|
329
330
|
"decorators": []
|
|
330
331
|
}
|
|
@@ -336,18 +337,63 @@
|
|
|
336
337
|
"deprecationMessage": "",
|
|
337
338
|
"hostBindings": [],
|
|
338
339
|
"hostListeners": [],
|
|
339
|
-
"standalone":
|
|
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,
|
|
340
388
|
"imports": [],
|
|
341
389
|
"description": "",
|
|
342
390
|
"rawdescription": "\n",
|
|
343
391
|
"type": "component",
|
|
344
|
-
"sourceCode": "import { Component
|
|
345
|
-
"styleUrl": "./loader.component.css",
|
|
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",
|
|
346
393
|
"assetsDirs": [],
|
|
347
394
|
"styleUrlsData": "",
|
|
348
|
-
"stylesData": "",
|
|
349
|
-
"extends": []
|
|
350
|
-
"templateData": "<div class=\"loader\" [ngClass]=\"{'small': size === 'small', 'large': size === 'large'}\"></div>"
|
|
395
|
+
"stylesData": "\n",
|
|
396
|
+
"extends": []
|
|
351
397
|
},
|
|
352
398
|
{
|
|
353
399
|
"name": "PageComponent",
|
|
@@ -480,7 +526,7 @@
|
|
|
480
526
|
},
|
|
481
527
|
"routes": [],
|
|
482
528
|
"coverage": {
|
|
483
|
-
"count":
|
|
529
|
+
"count": 10,
|
|
484
530
|
"status": "low",
|
|
485
531
|
"files": [
|
|
486
532
|
{
|
|
@@ -503,12 +549,12 @@
|
|
|
503
549
|
"status": "low"
|
|
504
550
|
},
|
|
505
551
|
{
|
|
506
|
-
"filePath": "src/app/
|
|
552
|
+
"filePath": "src/app/nav-bar/nav-bar.component.ts",
|
|
507
553
|
"type": "component",
|
|
508
554
|
"linktype": "component",
|
|
509
|
-
"name": "
|
|
555
|
+
"name": "NavBarComponent",
|
|
510
556
|
"coveragePercent": 0,
|
|
511
|
-
"coverageCount": "0/
|
|
557
|
+
"coverageCount": "0/1",
|
|
512
558
|
"status": "low"
|
|
513
559
|
},
|
|
514
560
|
{
|
|
@@ -529,6 +575,15 @@
|
|
|
529
575
|
"coverageCount": "0/5",
|
|
530
576
|
"status": "low"
|
|
531
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
|
+
},
|
|
532
587
|
{
|
|
533
588
|
"filePath": "src/stories/page.component.ts",
|
|
534
589
|
"type": "component",
|
package/package.json
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { fn } from '@storybook/test';
|
|
3
|
-
import { LoaderComponent } from '
|
|
4
|
-
|
|
5
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
6
|
-
const meta: Meta<LoaderComponent> = {
|
|
7
|
-
title: 'Example/Loader',
|
|
8
|
-
component: LoaderComponent,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
+
import { fn } from '@storybook/test';
|
|
3
|
+
import { LoaderComponent } from './loader';
|
|
4
|
+
|
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
6
|
+
const meta: Meta<LoaderComponent> = {
|
|
7
|
+
title: 'Example/Loader',
|
|
8
|
+
component: LoaderComponent,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<LoaderComponent>;
|
|
14
|
+
|
|
15
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
16
|
+
export const Default: Story = {
|
|
17
|
+
args: {
|
|
18
|
+
size:'medium',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const Small: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
size: 'small'
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const Large: Story = {
|
|
29
|
+
args: {
|
|
30
|
+
size: 'large'
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.loader {
|
|
2
|
+
border: 4px solid #f3f3f3;
|
|
3
|
+
border-top: 4px solid #3498db;
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
width: 20px;
|
|
6
|
+
height: 20px;
|
|
7
|
+
animation: spin 1s linear infinite;
|
|
8
|
+
margin: 20px auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.small {
|
|
12
|
+
width: 10px;
|
|
13
|
+
height: 10px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.large {
|
|
17
|
+
width: 40px;
|
|
18
|
+
height: 40px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes spin {
|
|
22
|
+
0% { transform: rotate(0deg); }
|
|
23
|
+
100% { transform: rotate(360deg); }
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'storybook-loader',
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
template: `<div class="loader" [ngClass]="{'small': size === 'small', 'large': size === 'large'}"></div>`,
|
|
9
|
+
styleUrls: ['./loader.css'],
|
|
10
|
+
})
|
|
11
|
+
export class LoaderComponent {
|
|
12
|
+
@Input() size: 'small' | 'medium' | 'large' = 'medium';
|
|
13
|
+
}
|