UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

1,836 lines (1,790 loc) 197 kB
import Vue, { VueConstructor, PluginObject } from 'vue' export interface AddressbarColor { /** * Sets addressbar color (for browsers that support it) * @param hexColor Color in hex format */ set (hexColor : string): void } export interface AppFullscreen { /** * Does browser support it? */ isCapable : boolean /** * Is Fullscreen active? */ isActive : boolean /** * Request going into Fullscreen (with optional target) * @param target Optional CSS selector of target to request Fullscreen on */ request (target? : string): void /** * Request exiting out of Fullscreen mode */ exit (): void /** * Request toggling Fullscreen mode (with optional target if requesting going into Fullscreen only) * @param target Optional CSS selector of target to request Fullscreen on */ toggle (target? : string): void } export interface AppVisibility { /** * Does the app have user focus? Or the app runs in the background / another tab has the user's attention */ appVisible : boolean } export interface BottomSheet { /** * Creates an ad-hoc Bottom Sheet; Same as calling $q.bottomSheet(...) * @param opts Bottom Sheet options * @returns Chainable Object */ create (opts : { /** * CSS Class name to apply to the Dialog's QCard */ class? : string | any[] | any /** * CSS style to apply to the Dialog's QCard */ style? : string | any[] | any /** * Title */ title? : string /** * Message */ message? : string /** * Array of Objects, each Object defining an action */ actions? : any[] /** * Display actions as a grid instead of as a list */ grid? : boolean /** * Apply dark mode */ dark? : boolean /** * Put Bottom Sheet into seamless mode; Does not use a backdrop so user is able to interact with the rest of the page too */ seamless? : boolean /** * User cannot dismiss Bottom Sheet if clicking outside of it or hitting ESC key */ persistent? : boolean }): DialogChainObject } export interface Cookies { /** * Get cookie * @param name Cookie name * @returns Cookie value */ get (name : string): string /** * Get all cookies * @returns Object with cookie names (as keys) and their values */ getAll (): any /** * Set cookie * @param name Cookie name * @param value Cookie value * @param options Cookie options */ set (name : string, value : string, options? : { /** * Cookie expires detail; If specified as Number, then the unit is days */ expires? : number | string /** * Cookie path */ path? : string /** * Cookie domain */ domain? : string /** * SameSite cookie option (not supported by IE11) */ sameSite? : string /** * Is cookie Http Only? */ httpOnly? : boolean /** * Is cookie secure? (https only) */ secure? : boolean /** * Raw string for other cookie options; To be used as a last resort for possible newer props that are currently not yet implemented in Quasar */ other? : string }): void /** * Check if cookie exists * @param name Cookie name * @returns Does cookie exists or not? */ has (name : string): boolean /** * Remove a cookie * @param name Cookie name * @param options Cookie options */ remove (name : string, options? : { /** * Cookie path */ path? : string /** * Cookie domain */ domain? : string }): void /** * For SSR usage only, and only on the global import (not on $q.cookies) * @param ssrContext SSR Context Object * @returns Cookie object (like $q.cookies) for SSR usage purposes */ parseSSR (ssrContext : any): any } export interface Dialog { /** * Creates an ad-hoc Dialog; Same as calling $q.dialog(...) * @param opts Dialog options * @returns Chainable Object */ create (opts : QDialogOptions): DialogChainObject } export interface Loading { /** * Is Loading active? */ isActive : boolean /** * Activate and show * @param opts All props are optional */ show (opts? : { /** * Wait a number of millisecond before showing; Not worth showing for 100ms for example then hiding it, so wait until you're sure it's a process that will take some considerable amount of time */ delay? : number /** * Message to display */ message? : string /** * Force use of textContent instead of innerHTML to render message; Use it when the message might be unsafe (from user input) */ sanitize? : boolean /** * Spinner size (in pixels) */ spinnerSize? : number /** * Color name for spinner from the Quasar Color Palette */ spinnerColor? : string /** * Color name for text from the Quasar Color Palette */ messageColor? : string /** * Color name for background from the Quasar Color Palette */ backgroundColor? : string /** * One of the QSpinners */ spinner? : Vue /** * Add a CSS class to easily customize the component */ customClass? : string /** * Ignore the default configuration (set by setDefaults()) for this instance only */ ignoreDefaults? : boolean }): void /** * Hide it */ hide (): void /** * Merge options into the default ones * @param opts Pick the subprop you want to define */ setDefaults (opts : { /** * Wait a number of millisecond before showing; Not worth showing for 100ms for example then hiding it, so wait until you're sure it's a process that will take some considerable amount of time */ delay? : number /** * Message to display */ message? : string /** * Spinner size (in pixels) */ spinnerSize? : number /** * Color name for spinner from the Quasar Color Palette */ spinnerColor? : string /** * Color name for text from the Quasar Color Palette */ messageColor? : string /** * Color name for background from the Quasar Color Palette */ backgroundColor? : string /** * One of the QSpinners */ spinner? : Vue /** * Add a CSS class to easily customize the component */ customClass? : string }): void } export interface LoadingBar { /** * Notify bar you've started a background activity * @param speed Delay (in milliseconds) between bar progress increments */ start (speed? : number): void /** * Notify bar one background activity has finalized */ stop (): void /** * Manually trigger a bar progress increment * @param amount Amount (0.0 < x < 1.0) to increment with */ increment (amount? : number): void /** * Set the inner QAjaxBar's props * @param ...props QAjaxBar component props */ setDefaults (): void } export interface LocalStorage { /** * Check if storage item exists * @param key Entry key * @returns Does the item exists or not? */ has (key : string): boolean /** * Get storage number of entries * @returns Number of entries */ getLength (): number /** * Get a storage item value * @param key Entry key * @returns Storage item value */ getItem (key : string): any /** * Get the storage item value at specific index * @param index Entry index * @returns Storage item value */ getIndex (index : number): any /** * Retrieve all items in storage * @returns Object syntax: item name as Object key and its value */ getAll (): any /** * Set item in storage * @param key Entry key * @param value Entry value */ set (key : string, value : any): void /** * Remove a storage item * @param key Storage key */ remove (key : string): void /** * Remove everything from the storage */ clear (): void /** * Determine if storage has any items * @returns Tells if storage is empty or not */ isEmpty (): boolean } export interface Meta { } export interface Notify { /** * Creates a notification; Same as calling $q.notify(...) * @param opts For syntax, check quasar.conf options parameters * @returns Calling this function hides the notification */ create (opts : { /** * Color name for component from the Quasar Color Palette */ color? : string /** * Color name for component from the Quasar Color Palette */ textColor? : string /** * The content of your message */ message : string /** * Render message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first */ html? : boolean /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ icon? : string /** * URL to an avatar/image; Suggestion: use statics folder */ avatar? : string /** * Window side/corner to stick to */ position? : string /** * Add CSS class(es) to the notification for easier customization */ classes? : string /** * Amount of time to display (in milliseconds) */ timeout? : number /** * Notification actions (buttons); If a 'handler' is specified or not, clicking/tapping on the button will also close the notification; Also check 'closeBtn' convenience prop */ actions? : any[] /** * Function to call when notification gets dismissed */ onDismiss? : Function /** * Convenience way to add a dismiss button with a specific label, without using the 'actions' convoluted prop */ closeBtn? : string /** * Put notification into multi-line mode; If this prop isn't used and more than one 'action' is specified then notification goes into multi-line mode by default */ multiLine? : boolean /** * Ignore the default configuration (set by setDefaults()) for this instance only */ ignoreDefaults? : boolean } | string): Function /** * Merge options into the default ones * @param opts For syntax, check quasar.conf options parameters */ setDefaults (opts : { /** * Color name for component from the Quasar Color Palette */ color? : string /** * Color name for component from the Quasar Color Palette */ textColor? : string /** * The content of your message */ message : string /** * Render message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first */ html? : boolean /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ icon? : string /** * URL to an avatar/image; Suggestion: use statics folder */ avatar? : string /** * Window side/corner to stick to */ position? : string /** * Add CSS class(es) to the notification for easier customization */ classes? : string /** * Amount of time to display (in milliseconds) */ timeout? : number /** * Notification actions (buttons); If a 'handler' is specified or not, clicking/tapping on the button will also close the notification; Also check 'closeBtn' convenience prop */ actions? : any[] /** * Function to call when notification gets dismissed */ onDismiss? : Function /** * Convenience way to add a dismiss button with a specific label, without using the 'actions' convoluted prop */ closeBtn? : string /** * Put notification into multi-line mode; If this prop isn't used and more than one 'action' is specified then notification goes into multi-line mode by default */ multiLine? : boolean }): void } export interface Platform { /** * Client browser User Agent */ userAgent : string /** * Client browser details (property names depend on browser) */ is : any /** * Client browser detectable properties */ has : { /** * Client browser runs on device with touch support */ touch : boolean /** * Client browser has Web Storage support */ webStorage : boolean } /** * Client browser environment */ within : { /** * Does the app run under an iframe? */ iframe : boolean } } export interface Screen { /** * Screen width (in pixels) */ width : number /** * Screen height (in pixels) */ height : number /** * Breakpoints (in pixels) */ sizes : { /** * Breakpoint width size (minimum size) */ sm : number /** * Breakpoint width size (minimum size) */ md : number /** * Breakpoint width size (minimum size) */ lg : number /** * Breakpoint width size (minimum size) */ xl : number } /** * Tells if current screen width is lower than breakpoint-name */ lt : { /** * Is current screen width lower than this breakpoint's lowest limit? */ sm : boolean /** * Is current screen width lower than this breakpoint's lowest limit? */ md : boolean /** * Is current screen width lower than this breakpoint's lowest limit? */ lg : boolean /** * Is current screen width lower than this breakpoint's lowest limit? */ xl : boolean } /** * Tells if current screen width is greater than breakpoint-name */ gt : { /** * Is current screen width greater than this breakpoint's max limit? */ xs : boolean /** * Is current screen width greater than this breakpoint's max limit? */ sm : boolean /** * Is current screen width greater than this breakpoint's max limit? */ md : boolean /** * Is current screen width greater than this breakpoint's max limit? */ lg : boolean } /** * Current screen width fits exactly 'xs' breakpoint */ xs : boolean /** * Current screen width fits exactly 'sm' breakpoint */ sm : boolean /** * Current screen width fits exactly 'md' breakpoint */ md : boolean /** * Current screen width fits exactly 'lg' breakpoint */ lg : boolean /** * Current screen width fits exactly 'xl' breakpoint */ xl : boolean /** * Override default breakpoint sizes * @param breakpoints Pick what you want to override */ setSizes (breakpoints : { /** * Breakpoint width size (minimum size) */ sm? : number /** * Breakpoint width size (minimum size) */ md? : number /** * Breakpoint width size (minimum size) */ lg? : number /** * Breakpoint width size (minimum size) */ xl? : number }): void /** * Debounce update of all props when screen width/height changes * @param amount Amount in milliseconds */ setDebounce (amount : number): void } export interface SessionStorage { /** * Check if storage item exists * @param key Entry key * @returns Does the item exists or not? */ has (key : string): boolean /** * Get storage number of entries * @returns Number of entries */ getLength (): number /** * Get a storage item value * @param key Entry key * @returns Storage item value */ getItem (key : string): any /** * Get the storage item value at specific index * @param index Entry index * @returns Storage item value */ getIndex (index : number): any /** * Retrieve all items in storage * @returns Object syntax: item name as Object key and its value */ getAll (): any /** * Set item in storage * @param key Entry key * @param value Entry value */ set (key : string, value : any): void /** * Remove a storage item * @param key Storage key */ remove (key : string): void /** * Remove everything from the storage */ clear (): void /** * Determine if storage has any items * @returns Tells if storage is empty or not */ isEmpty (): boolean } export interface ClosePopup { } export interface GoBack { } export interface Ripple { } export interface Scroll { } export interface ScrollFire { } export interface TouchHold { } export interface TouchPan { } export interface TouchRepeat { } export interface TouchSwipe { } export interface QAjaxBar extends Vue { /** * Position within window of where QAjaxBar should be displayed */ position? : string /** * Size in CSS units, including unit name */ size? : string /** * Color name for component from the Quasar Color Palette */ color? : string /** * Skip Ajax hijacking (not a reactive prop) */ skipHijack? : boolean /** * Reverse direction of progress */ reverse? : boolean /** * Notify bar you are waiting for a new process to finish * @param speed Delay (in milliseconds) between progress auto-increments; If delay is 0 then it disables auto-incrementing */ start (speed? : number): void /** * Manually trigger a bar progress increment * @param amount Amount (0 < x <= 100) to increment with */ increment (amount? : number): void /** * Notify bar that one process you were waiting has finished */ stop (): void } export interface QAvatar extends Vue { /** * Size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl) */ size? : string /** * The size in CSS units, including unit name, of the content (icon, text) */ fontSize? : string /** * Color name for component from the Quasar Color Palette */ color? : string /** * Overrides text color (if needed); color name from the Quasar Color Palette */ textColor? : string /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ icon? : string /** * Removes border-radius so borders are squared */ square? : boolean /** * Applies a small standard border-radius for a squared shape of the component */ rounded? : boolean } export interface QBadge extends Vue { /** * Color name for component from the Quasar Color Palette */ color? : string /** * Overrides text color (if needed); color name from the Quasar Color Palette */ textColor? : string /** * Tell QBadge if it should float to the top right side of the relative positioned parent element or not */ floating? : boolean /** * Applies a 0.8 opacity; Useful especially for floating QBagde */ transparent? : boolean /** * Content can wrap to multiple lines */ multiLine? : boolean /** * Badge's content as string; overrides default slot if specified */ label? : string | number /** * Sets vertical-align CSS prop */ align? : string } export interface QBanner extends Vue { /** * Display actions on same row as content */ inlineActions? : boolean /** * Dense mode; occupies less space */ dense? : boolean /** * Applies a small standard border-radius for a squared shape of the component */ rounded? : boolean } export interface QBar extends Vue { /** * Dense mode; occupies less space */ dense? : boolean /** * The component background color lights up the parent's background (as opposed to default behavior which is to darken it); Works unless you specify a CSS background color for it */ dark? : boolean } export interface QBreadcrumbs extends Vue { /** * The string used to separate the breadcrumbs */ separator? : string /** * The color of the active breadcrumb, which can be any color from the Quasar Color Palette */ activeColor? : string /** * The gutter value allows you control over the space between the breadcrumb elements. */ gutter? : string /** * The color used to color the separator, which can be any color from the Quasar Color Palette */ separatorColor? : string /** * Specify how to align the breadcrumbs horizontally */ align? : string } export interface QBreadcrumbsEl extends Vue { /** * Equivalent to Vue Router <router-link> 'to' property */ to? : string | any /** * Equivalent to Vue Router <router-link> 'exact' property */ exact? : boolean /** * Equivalent to Vue Router <router-link> 'append' property */ append? : boolean /** * Equivalent to Vue Router <router-link> 'replace' property */ replace? : boolean /** * Equivalent to Vue Router <router-link> 'active-class' property */ activeClass? : string /** * Equivalent to Vue Router <router-link> 'active-class' property */ exactActiveClass? : string /** * Put component in disabled mode */ disable? : boolean /** * The label text for the breadcrumb */ label? : string /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ icon? : string } export interface QBtn extends Vue { /** * Size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl) */ size? : string /** * Configure material ripple (disable it by setting it to 'false' or supply a config object) */ ripple? : boolean | any /** * Define the button HTML DOM type */ type? : string /** * Equivalent to Vue Router <router-link> 'to' property */ to? : string | any /** * Equivalent to Vue Router <router-link> 'replace' property */ replace? : boolean /** * The text that will be shown on the button */ label? : string | number /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ icon? : string /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ iconRight? : string /** * Use 'outline' design */ outline? : boolean /** * Use 'flat' design */ flat? : boolean /** * Remove shadow */ unelevated? : boolean /** * Applies a more prominent border-radius for a squared shape button */ rounded? : boolean /** * Use 'push' design */ push? : boolean /** * Applies a glossy effect */ glossy? : boolean /** * Makes button size and shape to fit a Floating Action Button */ fab? : boolean /** * Makes button size and shape to fit a small Floating Action Button */ fabMini? : boolean /** * Color name for component from the Quasar Color Palette */ color? : string /** * Overrides text color (if needed); color name from the Quasar Color Palette */ textColor? : string /** * Avoid turning label text into caps (which happens by default) */ noCaps? : boolean /** * Avoid label text wrapping */ noWrap? : boolean /** * Dense mode; occupies less space */ dense? : boolean /** * Tabindex HTML attribute value */ tabindex? : number | string /** * Label or content alignment */ align? : string /** * Stack icon and label vertically instead of on same line (like it is by default) */ stack? : boolean /** * When used on flexbox parent, button will stretch to parent's height */ stretch? : boolean /** * Put button into loading state (displays a QSpinner -- can be overriden by using a 'loading' slot) */ loading? : boolean /** * Put component in disabled mode */ disable? : boolean /** * Makes a circle shaped button */ round? : boolean /** * Percentage (0.0 < x < 100.0); To be used along 'loading' prop; Display a progress bar on the background */ percentage? : number /** * Progress bar on the background should have dark color; To be used along with 'percentage' and 'loading' props */ darkPercentage? : boolean /** * Emulate click on QBtn * @param evt JS event object */ click (evt? : any): void } export interface QBtnDropdown extends Vue { /** * Controls Menu show/hidden state; Either use this property (along with a listener for 'input' event) OR use v-model directive */ value? : boolean /** * Size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl) */ size? : string /** * Configure material ripple (disable it by setting it to 'false' or supply a config object) */ ripple? : boolean | any /** * Define the button HTML DOM type */ type? : string /** * Equivalent to Vue Router <router-link> 'to' property */ to? : string | any /** * Equivalent to Vue Router <router-link> 'replace' property */ replace? : boolean /** * The text that will be shown on the button */ label? : string | number /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ icon? : string /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ iconRight? : string /** * Use 'outline' design */ outline? : boolean /** * Use 'flat' design */ flat? : boolean /** * Remove shadow */ unelevated? : boolean /** * Applies a more prominent border-radius for a squared shape button */ rounded? : boolean /** * Use 'push' design */ push? : boolean /** * Applies a glossy effect */ glossy? : boolean /** * Makes button size and shape to fit a Floating Action Button */ fab? : boolean /** * Makes button size and shape to fit a small Floating Action Button */ fabMini? : boolean /** * Color name for component from the Quasar Color Palette */ color? : string /** * Overrides text color (if needed); color name from the Quasar Color Palette */ textColor? : string /** * Avoid turning label text into caps (which happens by default) */ noCaps? : boolean /** * Avoid label text wrapping */ noWrap? : boolean /** * Dense mode; occupies less space */ dense? : boolean /** * Tabindex HTML attribute value */ tabindex? : number | string /** * Label or content alignment */ align? : string /** * Stack icon and label vertically instead of on same line (like it is by default) */ stack? : boolean /** * When used on flexbox parent, button will stretch to parent's height */ stretch? : boolean /** * Put button into loading state (displays a QSpinner -- can be overriden by using a 'loading' slot) */ loading? : boolean /** * Put component in disabled mode */ disable? : boolean /** * Split dropdown icon into its own button */ split? : boolean /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ dropdownIcon? : string /** * Disable main button (useful along with 'split' prop) */ disableMainBtn? : boolean /** * Disables dropdown (dropdown button if using along 'split' prop) */ disableDropdown? : boolean /** * Style definitions to be attributed to the menu */ contentStyle? : any[] | string | any /** * Class definitions to be attributed to the menu */ contentClass? : any[] | string | any /** * Allows the menu to cover the button. When used, the 'menu-self' and 'menu-fit' props are no longer effective */ cover? : boolean /** * Allows the menu to not be dismissed by a click/tap outside of the menu or by hitting the ESC key */ persistent? : boolean /** * Allows any click/tap in the menu to close it; Useful instead of attaching events to each menu item that should close the menu on click/tap */ autoClose? : boolean /** * Two values setting the starting position or anchor point of the menu relative to its target */ menuAnchor? : string /** * Two values setting the menu's own position relative to its target */ menuSelf? : string /** * Triggers component to show * @param evt JS event object */ show (evt? : any): void /** * Triggers component to hide * @param evt JS event object */ hide (evt? : any): void /** * Triggers component to toggle between show/hide * @param evt JS event object */ toggle (evt? : any): void } export interface QBtnGroup extends Vue { /** * Spread horizontally to all available space */ spread? : boolean /** * Use 'outline' design for buttons */ outline? : boolean /** * Use 'flat' design for buttons */ flat? : boolean /** * Remove shadow on buttons */ unelevated? : boolean /** * Applies a more prominent border-radius for squared shape buttons */ rounded? : boolean /** * Use 'push' design for buttons */ push? : boolean /** * When used on flexbox parent, buttons will stretch to parent's height */ stretch? : boolean /** * Applies a glossy effect */ glossy? : boolean } export interface QBtnToggle extends Vue { /** * Configure material ripple (disable it by setting it to 'false' or supply a config object) */ ripple? : boolean | any /** * Model of the component; Either use this property (along with a listener for 'input' event) OR use v-model directive */ value? : any /** * Array of Objects defining each option */ options : any[] /** * Color name for component from the Quasar Color Palette */ color? : string /** * Overrides text color (if needed); color name from the Quasar Color Palette */ textColor? : string /** * Color name for component from the Quasar Color Palette */ toggleColor? : string /** * Overrides text color (if needed); color name from the Quasar Color Palette */ toggleTextColor? : string /** * Spread horizontally to all available space */ spread? : boolean /** * Use 'outline' design */ outline? : boolean /** * Use 'flat' design */ flat? : boolean /** * Remove shadow */ unelevated? : boolean /** * Applies a more prominent border-radius for a squared shape button */ rounded? : boolean /** * Use 'push' design */ push? : boolean /** * Applies a glossy effect */ glossy? : boolean /** * Button size name or a CSS unit including unit name */ size? : string /** * Avoid turning label text into caps (which happens by default) */ noCaps? : boolean /** * Avoid label text wrapping */ noWrap? : boolean /** * Dense mode; occupies less space */ dense? : boolean /** * Put component in readonly mode */ readonly? : boolean /** * Put component in disabled mode */ disable? : boolean /** * Stack icon and label vertically instead of on same line (like it is by default) */ stack? : boolean /** * When used on flexbox parent, button will stretch to parent's height */ stretch? : boolean } export interface QCard extends Vue { /** * Notify the component that the background is a dark color */ dark? : boolean /** * Removes border-radius so borders are squared */ square? : boolean /** * Applies a 'flat' design (no default shadow) */ flat? : boolean /** * Applies a default border to the component */ bordered? : boolean } export interface QCardActions extends Vue { /** * Specify how to align the actions */ align? : string /** * Display actions one below the other */ vertical? : boolean } export interface QCardSection extends Vue { } export interface QCarousel extends Vue { /** * Fullscreen mode */ fullscreen? : boolean /** * Changing route app won't exit fullscreen */ noRouteFullscreenExit? : boolean /** * Model of the component defining current panel's name; If used as Number, it does not defines panel index though but slide name's which may be an Integer; Either use this property (along with a listener for 'input' event) OR use v-model directive */ value? : any /** * Equivalent to using Vue's native <keep-alive> component on the content */ keepAlive? : boolean /** * Enable transitions between panel (also see 'transition-prev' and 'transition-next' props) */ animated? : boolean /** * Makes component appear as infinite (when reaching last panel, next one will become the first one) */ infinite? : boolean /** * Enable swipe events (may interfere with content's touch/mouse events) */ swipeable? : boolean /** * One of Quasar's embedded transitions (has effect only if 'animated' prop is set) */ transitionPrev? : string /** * One of Quasar's embedded transitions (has effect only if 'animated' prop is set) */ transitionNext? : string /** * Height of Carousel in CSS units, including unit name */ height? : string /** * Applies a default padding to each slide, according to the usage of 'arrows' and 'navigation' props */ padding? : boolean /** * Color name for component from the Quasar Color Palette */ controlColor? : string /** * Jump to next slide at fixed time intervals (in milliseconds); 'false' disables autoplay, 'true' enables it for 5000ms intervals */ autoplay? : number | boolean /** * Show navigation arrow buttons */ arrows? : boolean /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ prevIcon? : string /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ nextIcon? : string /** * Show navigation dots */ navigation? : boolean /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ navigationIcon? : string /** * Show thumbnails */ thumbnails? : boolean /** * Toggle the view to be fullscreen or not fullscreen */ toggleFullscreen (): void /** * Enter the fullscreen view */ setFullscreen (): void /** * Leave the fullscreen view */ exitFullscreen (): void /** * Go to next panel */ next (): void /** * Go to previous panel */ previous (): void /** * Go to specific panel * @param panelName Panel's name, which may be a String or Number; Number does not refers to panel index, but to its name, which may be an Integer */ goTo (panelName : string | number): void } export interface QCarouselControl extends Vue { /** * Side/corner to stick to */ position? : string /** * An array of two numbers to offset the component horizontally and vertically (in pixels) */ offset? : any[] } export interface QCarouselSlide extends Vue { /** * Slide name */ name : any /** * Put component in disabled mode */ disable? : boolean /** * URL pointing to a slide background image (use statics folder) */ imgSrc? : string } export interface QChatMessage extends Vue { /** * Render as a sent message (so from current user) */ sent? : boolean /** * Renders a label header/section only */ label? : string /** * Color name (from the Quasar Color Palette) for chat bubble background */ bgColor? : string /** * Color name (from the Quasar Color Palette) for chat bubble text */ textColor? : string /** * Author's name */ name? : string /** * URL to the avatar image of the author; Suggestion: use a static resource */ avatar? : string /** * Array of strings that are the message body. Strings are not sanitized (see details in docs) */ text? : string /** * Creation timestamp */ stamp? : string /** * 1-12 out of 12 (same as col-*) */ size? : string /** * Force use of textContent instead of innerHTML to render label; Use it when the label might be unsafe (from user input) */ labelSanitize? : boolean /** * Force use of textContent instead of innerHTML to render name; Use it when the name might be unsafe (from user input) */ nameSanitize? : boolean /** * Force use of textContent instead of innerHTML to render text; Use it when the text might be unsafe (from user input) */ textSanitize? : boolean /** * Force use of textContent instead of innerHTML to render stamp; Use it when the stamp might be unsafe (from user input) */ stampSanitize? : boolean } export interface QCheckbox extends Vue { /** * Model of the component; Either use this property (along with a listener for 'input' event) OR use v-model directive */ value : any | any[] /** * Works when model ('value') is Array. It tells the component which value should add/remove when ticked/unticked */ val? : any /** * What model value should be considered as checked/ticked/on? */ trueValue? : any /** * What model value should be considered as unchecked/unticked/off? */ falseValue? : any /** * Label to display along the component (or use the default slot instead of this prop) */ label? : string /** * Label (if any specified) should be displayed on the left side of the component */ leftLabel? : boolean /** * Color name for component from the Quasar Color Palette */ color? : string /** * Should the color (if specified any) be kept when the component is unticked/ off? */ keepColor? : boolean /** * Notify the component that the background is a dark color */ dark? : boolean /** * Dense mode; occupies less space */ dense? : boolean /** * Put component in disabled mode */ disable? : boolean /** * Tabindex HTML attribute value */ tabindex? : number | string /** * What model value should be considered as 'indeterminate'? */ indeterminateValue? : any /** * When user clicks/taps on the component, should we toggle through the indeterminate state too? */ toggleIndeterminate? : boolean /** * Toggle the state (of the model) */ toggle (): void } export interface QChip extends Vue { /** * Configure material ripple (disable it by setting it to 'false' or supply a config object) */ ripple? : boolean | any /** * Dense mode; occupies less space */ dense? : boolean /** * QChip size name or a CSS unit including unit name */ size? : string /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ icon? : string /** * Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix */ iconRight? : string /** * Chip's content as string; overrides default slot if specified */ label? : string | number /** * Color name for component from the Quasar Color Palette */ color? : string /** * Overrides text color (if needed); color name from the Quasar Color Palette */ textColor? : string /** * Model of the component determining if QChip should be rendered or not */ value? : boolean /** * Model for QChip if it's selected or not */ selected? : boolean /** * Sets a low value for border-radius instead of the default one, making it close to a square */ square? : boolean /** * Display using the 'outline' design */ outline? : boolean /** * Is QChip clickable? If it's the case, then it will add hover effects and emit 'click' events */ clickable? : boolean /** * If set, then it displays a 'remove' icon that when clicked the QChip emits 'remove' event */ removable? : boolean /** * Tabindex HTML attribute value */ tabindex? : number | string /** * Put component in disabled mode */ disable? : boolean } export interface QCircularProgress extends Vue { /** * Size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl) */ size? : string /** * Current progress (must be between min/max) */ value? : number /** * Minimum value defining 'no progress' (must be lower than 'max') */ min? : number /** * Maximum value defining 100% progress made (must be higher than 'min') */ max? : number /** * Color name for the arc progress from the Quasar Color Palette */ color? : string /** * Color name for the center part of the component from the Quasar Color Palette */ centerColor? : string /** * Color name for the track of the component from the Quasar Color Palette */ trackColor? : string /** * Size of text in CSS units, including unit name. Suggestion: use 'em' units to sync with component size */ fontSize? : string /** * Thickness of progress arc as a ratio (0.0 < x < 1.0) of component size */ thickness? : number /** * Angle to rotate progress arc by */ angle? : number /** * Put component into 'indeterminate' state; Ignores 'value' prop */ indeterminate? : boolean /** * Enables the default slot and uses it (if available), otherwise it displays the 'value' prop as text; Make sure the text has enough space to be displayed inside the component */ showValue? : boolean /** * Reverses the direction of progress; Only for determined state */ reverse? : boolean } export interface QColor extends Vue { /** * Model of the component; Either use this property (along with a listener for 'input' event) OR use v-model directive */ value? : string /** * The default value to show when the model doesn't have one */ defaultValue? : string /** * The default view of the picker */ defaultView? : string /** * Forces a certain model format upon the model */ formatModel? : string /** * Use a custom palette of colors for the palette tab */ palette? : any[] /** * Do not render header */ noHeader? : boolean /** * Do not render footer; Useful when you want a specific view ('default-view' prop) and don't want the user to be able to switch it */ noFooter? : boolean /** * Put component in disabled mode */ disable? : boolean /** * Put component in readonly mode */ readonly? : boolean /** * Notify the component that the background is a dark color */ dark? : boolean } export interface QDate extends Vue { /** * Date of the component; Either use this property (along with a listener for 'input' event) OR use v-model directive */ value : string /** * Display the component in landscape mode */ landscape? : boolean /** * Mask (formatting string) used for parsing and formatting value */ mask? : string /** * Locale formatting options */ locale? : { /** * List of full day names (DDDD), starting with Sunday */ days? : any[] /** * List of short day names (DDD), starting with Sunday */ daysShort? : any[] /** * List of full month names (MMMM), starting with January */ months? : any[] /** * List of short month names (MMM), starting with January */ monthsShort? : any[] } /** * Specify calendar type */ calendar? : string /** * Color name for component from the Quasar Color Palette */ color? : string /** * Overrides text color (if needed); color name from the Quasar Color Palette */ textColor? : string /** * Notify the component that the background is a dark color */ dark? : boolean /** * Removes border-radius so borders are squared */ square? : boolean /** * Applies a 'flat' design (no default shadow) */ flat? : boolean /** * Applies a default border to the component */ bordered? : boolean /** * Put component in readonly mode */ readonly? : boolean /** * Put component in disabled mode */ disable? : boolean /** * When specified, it overrides the default header title; Makes sense when not in 'minimal' mode */ title? : string /** * When specified, it overrides the default header subtitle; Makes sense when not in 'minimal' mode */ subtitle? : string /** * Emit model when user browses month and year too */ emitImmediately? : boolean /** * The default year and month to display (in YYYY/MM format) when model is unfilled (undefined or null) */ defaultYearMonth? : string /** * The view which will be displayed by