UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

1 lines 3.17 kB
{"version":3,"file":"index.mjs","sources":["../../../src/inputnumber/style/InputNumberStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/inputnumber';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst classes = {\n root: ({ instance, props }) => [\n 'p-inputnumber p-component p-inputwrapper',\n {\n 'p-invalid': instance.$invalid,\n 'p-inputwrapper-filled': instance.$filled || props.allowEmpty === false,\n 'p-inputwrapper-focus': instance.focused,\n 'p-inputnumber-stacked': props.showButtons && props.buttonLayout === 'stacked',\n 'p-inputnumber-horizontal': props.showButtons && props.buttonLayout === 'horizontal',\n 'p-inputnumber-vertical': props.showButtons && props.buttonLayout === 'vertical',\n 'p-inputnumber-fluid': instance.$fluid\n }\n ],\n pcInputText: 'p-inputnumber-input',\n buttonGroup: 'p-inputnumber-button-group',\n incrementButton: ({ instance, props }) => [\n 'p-inputnumber-button p-inputnumber-increment-button',\n {\n 'p-disabled': props.showButtons && props.max !== null && instance.maxBoundry()\n }\n ],\n decrementButton: ({ instance, props }) => [\n 'p-inputnumber-button p-inputnumber-decrement-button',\n {\n 'p-disabled': props.showButtons && props.min !== null && instance.minBoundry()\n }\n ]\n};\n\nexport default BaseStyle.extend({\n name: 'inputnumber',\n style,\n classes\n});\n"],"names":["classes","root","_ref","instance","props","$invalid","$filled","allowEmpty","focused","showButtons","buttonLayout","$fluid","pcInputText","buttonGroup","incrementButton","_ref2","max","maxBoundry","decrementButton","_ref3","min","minBoundry","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,OAAO,GAAG;AACZC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;MAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK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