Icard/angular-clarity-master(work.../node_modules/primeng/fesm2022/primeng-spinner.mjs.map

1 line
25 KiB
Plaintext
Raw Permalink Normal View History

2024-07-16 15:23:22 +00:00
{"version":3,"file":"primeng-spinner.mjs","sources":["../../src/app/components/spinner/spinner.ts","../../src/app/components/spinner/primeng-spinner.ts"],"sourcesContent":["import { NgModule, Component, ElementRef, OnInit, Input, Output, EventEmitter, forwardRef, ViewChild, ChangeDetectorRef, ChangeDetectionStrategy, ViewEncapsulation, booleanAttribute, numberAttribute } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { InputTextModule } from 'primeng/inputtext';\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';\n\nexport const SPINNER_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => Spinner),\n multi: true\n};\n\n@Component({\n selector: 'p-spinner',\n template: `\n <span class=\"ui-spinner ui-widget ui-corner-all\">\n <input\n #inputfield\n type=\"text\"\n [attr.id]=\"inputId\"\n [value]=\"formattedValue || null\"\n [attr.name]=\"name\"\n [attr.aria-valumin]=\"min\"\n [attr.aria-valuemax]=\"max\"\n [attr.aria-valuenow]=\"value\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.size]=\"size\"\n [attr.maxlength]=\"maxlength\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [attr.required]=\"required\"\n (keydown)=\"onInputKeydown($event)\"\n (blur)=\"onInputBlur($event)\"\n (input)=\"onInput($event)\"\n (change)=\"onInputChange($event)\"\n (focus)=\"onInputFocus($event)\"\n [ngStyle]=\"inputStyle\"\n [class]=\"inputStyleClass\"\n [ngClass]=\"'ui-spinner-input ui-inputtext ui-widget ui-state-default ui-corner-all'\"\n />\n <button\n type=\"button\"\n [ngClass]=\"{ 'ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default': true, 'ui-state-disabled': disabled }\"\n [disabled]=\"disabled || readonly\"\n tabindex=\"-1\"\n [attr.readonly]=\"readonly\"\n (mouseleave)=\"onUpButtonMouseleave($event)\"\n (mousedown)=\"onUpButtonMousedown($event)\"\n (mouseup)=\"onUpButtonMouseup($event)\"\n >\n <span class=\"ui-spinner-button-icon pi pi-caret-up ui-clickable\"></span>\n </button>\n <button\n type=\"button\"\n [ngClass]=\"{ 'ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default': true, 'ui-state-disabled': disabled }\"\n [disabled]=\"disabled || readonly\"\n tabindex=\"-1\"\n [attr.readonly]=\"readonly\"\n (mouseleave)=\"onDownButtonMouseleave($event)\"\n (mousedown)=\"onDownButtonMousedown($event)\"\n (mouseup)=\"onDownButtonMouseup($event)\"\n >\n <span class=\"ui-spinner-button-icon pi pi-caret-down ui-clickable\"></span>\n </button>\n </span>\n `,\n host: {\n class: 'p-element',\n '[class.ui-inputwrapper-filled]': 'filled',\n '[class.ui-inputwrapper-focus]': 'focus'\n },\n providers: [SPINNER_VALUE_ACCESSOR],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./spinner.css']\n})\nexport class Spinner implements OnInit, ControlValueAccessor {\n @Output() onChange: EventEmitter<any> = new EventEmitter();\n\n @Output() onFocus: EventEmitter<any> = new EventEmitter();\n\n @Output() onBlur: EventEmitter<any> = new EventEmitter();\n\n @Input({ transform: numberAttribute }) min: number;\n\n @Input({ transform: numberAttribute }) max: number;\n\n @Input({ transform: