UNPKG

@empathyco/x-components

Version:
74 lines 3.01 kB
import type { Result } from '@empathyco/x-types'; import type { PropType } from 'vue'; import type { VueCSSClasses } from '../../utils/types'; /** * Component that renders the {@link @empathyco/x-types#Result} current price * that may or may not be on sale. * * @public */ declare const _default: import("vue").DefineComponent<{ /** * (Required) The {@link @empathyco/x-types#Result} information. * * @public */ result: { type: PropType<Result>; required: true; }; /** * Format or mask to be defined as string. * - Use 'i' to define integer numbers. * - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the * doesn't include decimals, it is filled with zeros until reach the length defined with 'd's. * - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group. * - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more * than one character. * - Set whatever you need around the integers and decimals marks. * - Default mask: 'i.iii,dd' which returns '1.345,67'. * * @remarks The number of 'd', which is the maximum decimal length, MUST match with the length * of decimals provided from the adapter. Otherwise, when the component truncate the decimal * part, delete significant digits. * * @public */ format: { type: StringConstructor; }; }, { dynamicClasses: import("vue").ComputedRef<VueCSSClasses>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ /** * (Required) The {@link @empathyco/x-types#Result} information. * * @public */ result: { type: PropType<Result>; required: true; }; /** * Format or mask to be defined as string. * - Use 'i' to define integer numbers. * - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the * doesn't include decimals, it is filled with zeros until reach the length defined with 'd's. * - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group. * - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more * than one character. * - Set whatever you need around the integers and decimals marks. * - Default mask: 'i.iii,dd' which returns '1.345,67'. * * @remarks The number of 'd', which is the maximum decimal length, MUST match with the length * of decimals provided from the adapter. Otherwise, when the component truncate the decimal * part, delete significant digits. * * @public */ format: { type: StringConstructor; }; }>>, {}, {}>; export default _default; //# sourceMappingURL=base-result-current-price.vue?vue&type=script&lang.d.ts.map