@onemrvapublic/design-system-demos 21.7.0 → 21.7.2-develop.1
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/assets/json/card-new.json +1 -1
- package/assets/json/card.json +1 -1
- package/main.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"demo-card-new.component.html":"<onemrva-card\n [type]=\"type()\"\n [image]=\"image()\"\n width=\"275px\"\n imageSrc=\"assets/images/actionmenu-thumbnail.png\"\n imageAlt=\"Card thumbnail\"\n label=\"Sep 15, 2025\"\n title=\"Action menu\"\n subtitle=\"Sep 15, 2025\"\n [description]=\"\n showDescription()\n ? 'Short description of the component on one or two lines and cut it off w...'\n : ''\n \"\n [helpText]=\"helpText()\"\n [coloredTitle]=\"coloredTitleValue\"\n>\n @if (showActions()) {\n <div cardActions>\n <button mat-flat-button color=\"accent\" aria-label=\"Action\">Button</button>\n <button mat-icon-button aria-label=\"Duplicate\" style=\"margin-left: 10px\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </div>\n }\n</onemrva-card>\n"}
|
|
1
|
+
{"demo-card-new.component.html":"<onemrva-card\n [type]=\"type()\"\n [image]=\"image()\"\n width=\"275px\"\n [imageSrc]=\"basePath() + 'assets/images/actionmenu-thumbnail.png'\"\n imageAlt=\"Card thumbnail\"\n label=\"Sep 15, 2025\"\n title=\"Action menu\"\n subtitle=\"Sep 15, 2025\"\n [description]=\"\n showDescription()\n ? 'Short description of the component on one or two lines and cut it off w...'\n : ''\n \"\n [helpText]=\"helpText()\"\n [coloredTitle]=\"coloredTitleValue\"\n>\n @if (showActions()) {\n <div cardActions>\n <button mat-flat-button color=\"accent\" aria-label=\"Action\">Button</button>\n <button mat-icon-button aria-label=\"Duplicate\" style=\"margin-left: 10px\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </div>\n }\n</onemrva-card>\n"}
|
package/assets/json/card.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"demo-card-new.component.html":"<onemrva-card\n [type]=\"type()\"\n [image]=\"image()\"\n width=\"275px\"\n imageSrc=\"assets/images/actionmenu-thumbnail.png\"\n imageAlt=\"Card thumbnail\"\n label=\"Sep 15, 2025\"\n title=\"Action menu\"\n subtitle=\"Sep 15, 2025\"\n [description]=\"\n showDescription()\n ? 'Short description of the component on one or two lines and cut it off w...'\n : ''\n \"\n [helpText]=\"helpText()\"\n [coloredTitle]=\"coloredTitleValue\"\n>\n @if (showActions()) {\n <div cardActions>\n <button mat-flat-button color=\"accent\" aria-label=\"Action\">Button</button>\n <button mat-icon-button aria-label=\"Duplicate\" style=\"margin-left: 10px\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </div>\n }\n</onemrva-card>\n","demo-card-new.component.ts":"import { Component, input, ViewEncapsulation } from '@angular/core';\nimport { OnemrvaCardComponent } from '@onemrvapublic/design-system/card';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { DemoComponentBase } from '../../_demo/demo-component-base';\n\n@Component({\n selector: 'app-demo-card-new',\n templateUrl: './demo-card-new.component.html',\n standalone: true,\n imports: [OnemrvaCardComponent, MatButtonModule, MatIconModule],\n encapsulation: ViewEncapsulation.None,\n})\nexport class DemoCardNewComponent extends DemoComponentBase {\n readonly type = input<'no-background' | 'outline' | 'background'>(\n 'no-background',\n );\n readonly image = input(true);\n readonly helpText = input('More information about this component');\n readonly coloredTitle = input<'auto' | 'true' | 'false'>('auto');\n readonly showActions = input(true);\n readonly showDescription = input(true);\n\n get coloredTitleValue(): boolean | undefined {\n const v = this.coloredTitle();\n if (v === 'true') return true;\n if (v === 'false') return false;\n return undefined;\n }\n}\n"}
|
|
1
|
+
{"demo-card-new.component.html":"<onemrva-card\n [type]=\"type()\"\n [image]=\"image()\"\n width=\"275px\"\n [imageSrc]=\"basePath() + 'assets/images/actionmenu-thumbnail.png'\"\n imageAlt=\"Card thumbnail\"\n label=\"Sep 15, 2025\"\n title=\"Action menu\"\n subtitle=\"Sep 15, 2025\"\n [description]=\"\n showDescription()\n ? 'Short description of the component on one or two lines and cut it off w...'\n : ''\n \"\n [helpText]=\"helpText()\"\n [coloredTitle]=\"coloredTitleValue\"\n>\n @if (showActions()) {\n <div cardActions>\n <button mat-flat-button color=\"accent\" aria-label=\"Action\">Button</button>\n <button mat-icon-button aria-label=\"Duplicate\" style=\"margin-left: 10px\">\n <mat-icon>content_copy</mat-icon>\n </button>\n </div>\n }\n</onemrva-card>\n","demo-card-new.component.ts":"import { Component, input, ViewEncapsulation } from '@angular/core';\nimport { OnemrvaCardComponent } from '@onemrvapublic/design-system/card';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { DemoComponentBase } from '../../_demo/demo-component-base';\n\n@Component({\n selector: 'app-demo-card-new',\n templateUrl: './demo-card-new.component.html',\n standalone: true,\n imports: [OnemrvaCardComponent, MatButtonModule, MatIconModule],\n encapsulation: ViewEncapsulation.None,\n})\nexport class DemoCardNewComponent extends DemoComponentBase {\n readonly type = input<'no-background' | 'outline' | 'background'>(\n 'no-background',\n );\n readonly image = input(true);\n readonly helpText = input('More information about this component');\n readonly coloredTitle = input<'auto' | 'true' | 'false'>('auto');\n readonly showActions = input(true);\n readonly showDescription = input(true);\n\n get coloredTitleValue(): boolean | undefined {\n const v = this.coloredTitle();\n if (v === 'true') return true;\n if (v === 'false') return false;\n return undefined;\n }\n}\n"}
|