@onemrvapublic/design-system-demos 20.2.1-develop.4 → 20.2.1-develop.5
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.json +1 -1
- package/index.html +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
package/assets/json/card.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"demo-card.component.html":"<mat-card style=\"width: 275px\">\n @if (image) {\n <img\n mat-card-image\n src=\"/assets/images/actionmenu-thumbnail.png\"\n alt=\"Photo of a Shiba Inu\"\n />\n }\n <mat-card-header>\n <mat-card-title>Shiba Inu</mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <p>\n The Shiba Inu is the smallest of the six original and distinct spitz\n breeds of dog from Japan. A small, agile dog that copes very well with\n mountainous terrain, the Shiba Inu was originally bred for hunting.\n </p>\n <onemrva-mat-sticker>Important</onemrva-mat-sticker>\n </mat-card-content>\n</mat-card>\n","demo-card.component.ts":"import { DemoComponentBase } from '../../_demo/demo-component-base';\nimport { Component, Input, ViewEncapsulation } from '@angular/core';\nimport {\n MatCard,\n MatCardContent,\n MatCardHeader,\n MatCardImage,\n MatCardTitle,\n} from '@angular/material/card';\nimport { OnemrvaMatStickerComponent } from '@onemrvapublic/design-system';\n\n@Component({\n selector: 'app-demo-card
|
|
1
|
+
{"demo-card.component.html":"<mat-card style=\"width: 275px\">\n @if (image) {\n <img\n mat-card-image\n src=\"/assets/images/actionmenu-thumbnail.png\"\n alt=\"Photo of a Shiba Inu\"\n />\n }\n <mat-card-header>\n <mat-card-title>Shiba Inu</mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <p>\n The Shiba Inu is the smallest of the six original and distinct spitz\n breeds of dog from Japan. A small, agile dog that copes very well with\n mountainous terrain, the Shiba Inu was originally bred for hunting.\n </p>\n <onemrva-mat-sticker>Important</onemrva-mat-sticker>\n </mat-card-content>\n</mat-card>\n","demo-card.component.ts":"import { DemoComponentBase } from '../../_demo/demo-component-base';\nimport { Component, Input, ViewEncapsulation } from '@angular/core';\nimport {\n MatCard,\n MatCardContent,\n MatCardHeader,\n MatCardImage,\n MatCardTitle,\n} from '@angular/material/card';\nimport { OnemrvaMatStickerComponent } from '@onemrvapublic/design-system';\n\n@Component({\n selector: 'app-demo-card',\n templateUrl: './demo-card.component.html',\n\n standalone: true,\n imports: [\n MatCard,\n MatCardHeader,\n MatCardTitle,\n MatCardContent,\n MatCardImage,\n OnemrvaMatStickerComponent,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class DemoCardComponent extends DemoComponentBase {\n @Input()\n image = true;\n}\n"}
|
package/index.html
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
function showDemo(demo) {
|
|
47
47
|
let showDemo = document.getElementById('showDemo');
|
|
48
|
-
showDemo.innerHTML = `<app-demo component="${demo}" wp="0" showCode="yes" ></app-demo>`;
|
|
48
|
+
showDemo.innerHTML = `<app-demo component="${demo}" [wp]="0" showCode="yes" ></app-demo>`;
|
|
49
49
|
window.location.hash = demo;
|
|
50
50
|
}
|
|
51
51
|
</script>
|