@onemrvapublic/design-system-demos 20.3.0-develop.1 → 20.3.0-develop.2
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/phone-input.json +1 -1
- package/assets/json/textarea.json +1 -1
- package/assets/json/timepicker.json +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/styles.css +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"demo-phone-input.component.html":"<onemrva-mat-input-phone\n [phoneNumber]=\"phoneForm\"\n label=\"{{ 'input.phone.label' | translate }}\"\n noEntriesFoundLabel=\"{{ 'input.phone.not.found' | translate }}\"\n placeholderLabel=\"{{ 'input.phone.search' | translate }}\"\n searchAriaLabel=\"{{ 'input.phone.search' | translate }}\"\n [defaultPrefix]=\"'+32'\"\n hint=\" {{ 'input.phone.hint' | translate }}\"\n (getCountry)=\"getCountry($event)\"\n></onemrva-mat-input-phone>\n","demo-phone-input.component.ts":"import { Component, ViewEncapsulation } from '@angular/core';\nimport {\n FormControl,\n FormsModule,\n ReactiveFormsModule,\n Validators,\n} from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { OnemrvaMatInputPhoneComponent } from '@onemrvapublic/design-system/mat-input-phone';\nimport { MatInputModule } from '@angular/material/input';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { DemoComponentBase } from '../../_demo/demo-component-base';\n\n@Component({\n selector: 'app-demo-phone-input',\n templateUrl: './demo-phone-input.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n OnemrvaMatInputPhoneComponent,\n FormsModule,\n MatInputModule,\n TranslateModule,\n ],\n\n encapsulation: ViewEncapsulation.None,\n})\nexport class DemoPhoneInputComponent extends DemoComponentBase {\n phoneForm = new FormControl('', [Validators.required]);\n getCountry($event: any) {\n this.output.set($event);\n }\n}\n"}
|
|
1
|
+
{"demo-phone-input.component.html":"<onemrva-mat-input-phone\n [phoneNumber]=\"phoneForm\"\n label=\"{{ 'input.phone.label' | translate }}\"\n noEntriesFoundLabel=\"{{ 'input.phone.not.found' | translate }}\"\n placeholderLabel=\"{{ 'input.phone.search' | translate }}\"\n searchAriaLabel=\"{{ 'input.phone.search' | translate }}\"\n [defaultPrefix]=\"'+32'\"\n hint=\" {{ 'input.phone.hint' | translate }}\"\n (getCountry)=\"getCountry($event)\"\n></onemrva-mat-input-phone>\n\n<br />\n<br />\n<br />\n\n<form onemrva-readonly>\n <onemrva-mat-input-phone\n [phoneNumber]=\"phoneForm\"\n label=\"{{ 'input.phone.label' | translate }}\"\n noEntriesFoundLabel=\"{{ 'input.phone.not.found' | translate }}\"\n placeholderLabel=\"{{ 'input.phone.search' | translate }}\"\n searchAriaLabel=\"{{ 'input.phone.search' | translate }}\"\n [defaultPrefix]=\"'+32'\"\n hint=\" {{ 'input.phone.hint' | translate }}\"\n (getCountry)=\"getCountry($event)\"\n ></onemrva-mat-input-phone>\n</form>\n","demo-phone-input.component.ts":"import { Component, ViewEncapsulation } from '@angular/core';\nimport {\n FormControl,\n FormsModule,\n ReactiveFormsModule,\n Validators,\n} from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { OnemrvaMatInputPhoneComponent } from '@onemrvapublic/design-system/mat-input-phone';\nimport { MatInputModule } from '@angular/material/input';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { DemoComponentBase } from '../../_demo/demo-component-base';\nimport { ReadOnlyFormDirective } from '@onemrvapublic/design-system';\n\n@Component({\n selector: 'app-demo-phone-input',\n templateUrl: './demo-phone-input.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n OnemrvaMatInputPhoneComponent,\n FormsModule,\n MatInputModule,\n TranslateModule,\n ReadOnlyFormDirective,\n ],\n\n encapsulation: ViewEncapsulation.None,\n})\nexport class DemoPhoneInputComponent extends DemoComponentBase {\n phoneForm = new FormControl('', [Validators.required]);\n getCountry($event: any) {\n this.output.set($event);\n }\n}\n"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"demo-textarea.component.html":"<mat-form-field>\n <mat-label>Textarea</mat-label>\n <textarea matInput [formControl]=\"text\" style=\"height: 100px\">\nRelax. I'll talk to Lando and see what I can find out.\nI don't trust Lando.\nWell, I don't trust him, either.</textarea\n >\n <mat-hint class=\"with-counter\">\n Hint\n <div class=\"counter\">{{ text.value.length }} / 256</div>\n </mat-hint>\n</mat-form-field>\n<br />\n<br />\n\n<mat-form-field>\n <mat-label>Textarea (autoresize)</mat-label>\n <textarea matInput [formControl]=\"text\" cdkTextareaAutosize>\nRelax. I'll talk to Lando and see what I can find out.\nI don't trust Lando.\nWell, I don't trust him, either.</textarea\n >\n <mat-hint class=\"with-counter\">\n Hint\n <div class=\"counter\">{{ text.value.length }} / 256</div>\n </mat-hint>\n</mat-form-field>\n","demo-textarea.component.ts":"import { Component, ViewEncapsulation } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { DemoComponentBase } from '../../_demo/demo-component-base';\n\n@Component({\n selector: 'app-demo-textarea',\n templateUrl: './demo-textarea.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n MatInputModule,\n ],\n\n encapsulation: ViewEncapsulation.None,\n})\nexport class DemoTextareaComponent extends DemoComponentBase {\n text: FormControl = new FormControl('
|
|
1
|
+
{"demo-textarea.component.html":"<mat-form-field>\n <mat-label>Textarea</mat-label>\n <textarea matInput [formControl]=\"text\" style=\"height: 100px\">\nRelax. I'll talk to Lando and see what I can find out.\nI don't trust Lando.\nWell, I don't trust him, either.</textarea\n >\n <mat-hint class=\"with-counter\">\n Hint\n <div class=\"counter\">{{ text.value.length }} / 256</div>\n </mat-hint>\n</mat-form-field>\n<br />\n<br />\n\n<mat-form-field>\n <mat-label>Textarea (autoresize)</mat-label>\n <textarea matInput [formControl]=\"text\" cdkTextareaAutosize>\nRelax. I'll talk to Lando and see what I can find out.\nI don't trust Lando.\nWell, I don't trust him, either.</textarea\n >\n <mat-hint class=\"with-counter\">\n Hint\n <div class=\"counter\">{{ text.value.length }} / 256</div>\n </mat-hint>\n</mat-form-field>\n\n<br />\n<br />\n<br />\n<br />\n\n<mat-form-field onemrva-readonly>\n <mat-label>Textarea (autoresize)</mat-label>\n <textarea matInput [formControl]=\"text\" cdkTextareaAutosize>\nRelax. I'll talk to Lando and see what I can find out.\nI don't trust Lando.\nWell, I don't trust him, either.</textarea\n >\n <mat-hint class=\"with-counter\">\n Hint\n <div class=\"counter\">{{ text.value.length }} / 256</div>\n </mat-hint>\n</mat-form-field>\n<br />\n<br />\n<br />\n","demo-textarea.component.ts":"import { Component, ViewEncapsulation } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { DemoComponentBase } from '../../_demo/demo-component-base';\nimport { ReadOnlyFormDirective } from '@onemrvapublic/design-system';\n\n@Component({\n selector: 'app-demo-textarea',\n templateUrl: './demo-textarea.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n MatInputModule,\n ReadOnlyFormDirective,\n ],\n\n encapsulation: ViewEncapsulation.None,\n})\nexport class DemoTextareaComponent extends DemoComponentBase {\n text: FormControl = new FormControl(\n \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuriess\",\n );\n}\n"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"demo-timepicker.component.html":"<mat-form-field class=\"example-full-width\" [formGroup]=\"form\">\n <mat-label>Time</mat-label>\n <input formControlName=\"time\" matInput [matTimepicker]=\"timepicker\" />\n <mat-timepicker-toggle\n [ariaLabel]=\"'Pick a time'\"\n matSuffix\n [for]=\"timepicker\"\n ></mat-timepicker-toggle>\n <mat-timepicker color=\"accent\" #timepicker></mat-timepicker>\n</mat-form-field>\n","demo-timepicker.component.ts":"import { Component, ViewEncapsulation } from '@angular/core';\nimport { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { OnemrvaMatTimepickerModule } from '@onemrvapublic/design-system/mat-timepicker';\nimport { DemoComponentBase } from '../../_demo/demo-component-base';\nimport {
|
|
1
|
+
{"demo-timepicker.component.html":"<mat-form-field class=\"example-full-width\" [formGroup]=\"form\">\n <mat-label>Time</mat-label>\n <input formControlName=\"time\" matInput [matTimepicker]=\"timepicker\" />\n <mat-timepicker-toggle\n [ariaLabel]=\"'Pick a time'\"\n matSuffix\n [for]=\"timepicker\"\n ></mat-timepicker-toggle>\n <mat-timepicker color=\"accent\" #timepicker></mat-timepicker>\n</mat-form-field>\n\n<br />\n<br />\n<br />\n\n<mat-form-field class=\"example-full-width\" [formGroup]=\"form2\" onemrva-readonly>\n <mat-label>Time</mat-label>\n <input formControlName=\"time\" matInput [matTimepicker]=\"timepicker2\" />\n <mat-timepicker-toggle\n [ariaLabel]=\"'Pick a time'\"\n matSuffix\n [for]=\"timepicker2\"\n ></mat-timepicker-toggle>\n <mat-timepicker color=\"accent\" #timepicker2></mat-timepicker>\n</mat-form-field>\n","demo-timepicker.component.ts":"import { Component, ViewEncapsulation } from '@angular/core';\nimport { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { OnemrvaMatTimepickerModule } from '@onemrvapublic/design-system/mat-timepicker';\nimport { DemoComponentBase } from '../../_demo/demo-component-base';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ReadOnlyFormDirective } from '@onemrvapublic/design-system';\n\n@Component({\n selector: 'app-demo-timepicker',\n templateUrl: 'demo-timepicker.component.html',\n\n standalone: true,\n imports: [\n CommonModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n MatInputModule,\n OnemrvaMatTimepickerModule,\n ReadOnlyFormDirective,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class DemoTimepickerComponent extends DemoComponentBase {\n public form = new FormGroup({\n time: new FormControl(),\n });\n\n public form2 = new FormGroup({\n time: new FormControl('13:44'),\n });\n\n constructor() {\n super();\n this.form\n .get('time')\n ?.valueChanges.pipe(takeUntilDestroyed())\n .subscribe(value => {\n this.output.set(\n `${value.getHours().toString().padStart(2, '0')}:${value.getMinutes().toString().padStart(2, '0')}`,\n );\n });\n }\n}\n"}
|