1 line
No EOL
6.5 KiB
JSON
1 line
No EOL
6.5 KiB
JSON
{"ast":null,"code":"import { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./header.css?ngResource\";\nimport { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ButtonComponent } from './button.component';\nlet HeaderComponent = class HeaderComponent {\n user = null;\n onLogin = new EventEmitter();\n onLogout = new EventEmitter();\n onCreateAccount = new EventEmitter();\n static propDecorators = {\n user: [{\n type: Input\n }],\n onLogin: [{\n type: Output\n }],\n onLogout: [{\n type: Output\n }],\n onCreateAccount: [{\n type: Output\n }]\n };\n};\nHeaderComponent = __decorate([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 styles: [__NG_CLI_RESOURCE__0]\n})], HeaderComponent);\nexport { HeaderComponent };","map":{"version":3,"names":["__decorate","__NG_CLI_RESOURCE__0","Component","Input","Output","EventEmitter","CommonModule","ButtonComponent","HeaderComponent","user","onLogin","onLogout","onCreateAccount","propDecorators","type","selector","standalone","imports","template","styles"],"sources":["/home/poule/encrypted/stockage-syncable/www/development/html/ng-implementation/implem/src/stories/header.component.ts"],"sourcesContent":["import { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./header.css?ngResource\";\nimport { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ButtonComponent } from './button.component';\nlet HeaderComponent = class HeaderComponent {\n user = null;\n onLogin = new EventEmitter();\n onLogout = new EventEmitter();\n onCreateAccount = new EventEmitter();\n static propDecorators = {\n user: [{ type: Input }],\n onLogin: [{ type: Output }],\n onLogout: [{ type: Output }],\n onCreateAccount: [{ type: Output }]\n };\n};\nHeaderComponent = __decorate([\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 styles: [__NG_CLI_RESOURCE__0]\n })\n], HeaderComponent);\nexport { HeaderComponent };\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,OAAOC,oBAAoB,MAAM,yBAAyB;AAC1D,SAASC,SAAS,EAAEC,KAAK,EAAEC,MAAM,EAAEC,YAAY,QAAQ,eAAe;AACtE,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,eAAe,QAAQ,oBAAoB;AACpD,IAAIC,eAAe,GAAG,MAAMA,eAAe,CAAC;EACxCC,IAAI,GAAG,IAAI;EACXC,OAAO,GAAG,IAAIL,YAAY,CAAC,CAAC;EAC5BM,QAAQ,GAAG,IAAIN,YAAY,CAAC,CAAC;EAC7BO,eAAe,GAAG,IAAIP,YAAY,CAAC,CAAC;EACpC,OAAOQ,cAAc,GAAG;IACpBJ,IAAI,EAAE,CAAC;MAAEK,IAAI,EAAEX;IAAM,CAAC,CAAC;IACvBO,OAAO,EAAE,CAAC;MAAEI,IAAI,EAAEV;IAAO,CAAC,CAAC;IAC3BO,QAAQ,EAAE,CAAC;MAAEG,IAAI,EAAEV;IAAO,CAAC,CAAC;IAC5BQ,eAAe,EAAE,CAAC;MAAEE,IAAI,EAAEV;IAAO,CAAC;EACtC,CAAC;AACL,CAAC;AACDI,eAAe,GAAGR,UAAU,CAAC,CACzBE,SAAS,CAAC;EACNa,QAAQ,EAAE,kBAAkB;EAC5BC,UAAU,EAAE,IAAI;EAChBC,OAAO,EAAE,CAACX,YAAY,EAAEC,eAAe,CAAC;EACxCW,QAAQ,EAAE;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;EACFC,MAAM,EAAE,CAAClB,oBAAoB;AACjC,CAAC,CAAC,CACL,EAAEO,eAAe,CAAC;AACnB,SAASA,eAAe","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |