UNPKG

common-intellisense

Version:
274 lines 7.06 kB
{ "mixins": [ "composables/use-form/private.use-form" ], "meta": { "docsUrl": "https://v2.quasar.dev/vue-components/time" }, "props": { "landscape": { "type": "Boolean", "desc": "Display the component in landscape mode", "category": "behavior" }, "mask": { "type": [ "String", "null" ], "desc": "Mask (formatting string) used for parsing and formatting value", "category": "model", "default": "'HH:mm'", "__runtimeDefault": true, "examples": [ "'HH:mm:ss'", "'YYYY-MM-DD HH:mm:ss'", "'HH:mm MMMM Do, YYYY'" ] }, "locale": { "type": "Object", "desc": "Locale formatting options", "examples": [ "{ monthsShort: [ 'Ian', 'Feb', 'Mar', '...' ] }" ], "definition": { "days": { "type": "Array", "desc": "List of full day names (DDDD), starting with Sunday", "examples": [ "[ 'Duminica', 'Luni', 'Marti', '...' ]" ] }, "daysShort": { "type": "Array", "desc": "List of short day names (DDD), starting with Sunday", "examples": [ "[ 'Dum', 'Lun', 'Mar', '...' ]" ] }, "months": { "type": "Array", "desc": "List of full month names (MMMM), starting with January", "examples": [ "[ 'Ianuarie', 'Februarie', 'Martie', '...' ]" ] }, "monthsShort": { "type": "Array", "desc": "List of short month names (MMM), starting with January", "examples": [ "[ 'Ian', 'Feb', 'Mar', '...' ]" ] } }, "category": "model" }, "calendar": { "type": "String", "desc": "Specify calendar type", "default": "'gregorian'", "values": [ "'gregorian'", "'persian'" ], "category": "model" }, "color": { "extends": "color" }, "text-color": { "extends": "text-color" }, "dark": { "extends": "dark" }, "square": { "extends": "square" }, "flat": { "extends": "flat" }, "bordered": { "extends": "bordered" }, "readonly": { "extends": "readonly" }, "disable": { "extends": "disable" }, "model-value": { "extends": "model-value", "type": [ "String", "null", "undefined" ], "desc": "Time of the component; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive", "examples": [ "# v-model=\"currentTime\"" ] }, "format24h": { "type": [ "Boolean", "null" ], "default": "null", "desc": "Forces 24 hour time display instead of AM/PM system; If prop is not set, then the default is based on Quasar lang language being used", "category": "behavior" }, "default-date": { "type": "String", "desc": "The default date to use (in YYYY/MM/DD format) when model is unfilled (undefined or null)", "default": "# current day", "__runtimeDefault": true, "examples": [ "'1995/02/23'" ], "category": "model" }, "options": { "type": "Function", "desc": "Optionally configure what time is the user allowed to set; Overridden by 'hour-options', 'minute-options' and 'second-options' if those are set; For best performance, reference it from your scope and do not define it inline", "params": { "hr": { "type": "Number", "desc": "Hour" }, "min": { "type": [ "Number", "null" ], "desc": "Minutes" }, "sec": { "type": [ "Number", "null" ], "desc": "Seconds" } }, "returns": { "type": [ "Boolean", "null", "undefined" ], "desc": "Is the user allowed to set the specified time?" }, "examples": [ "(hr, min, sec) => hr <= 6" ], "category": "behavior" }, "hour-options": { "type": "Array", "desc": "Optionally configure what hours is the user allowed to set; Overrides 'options' prop if that is also set", "examples": [ "[ 3, 6, 9 ]" ], "category": "behavior" }, "minute-options": { "type": "Array", "desc": "Optionally configure what minutes is the user allowed to set; Overrides 'options' prop if that is also set", "examples": [ "[ 0, 15, 30, 45 ]" ], "category": "behavior" }, "second-options": { "type": "Array", "desc": "Optionally configure what seconds is the user allowed to set; Overrides 'options' prop if that is also set", "examples": [ "[ 0, 7, 10, 23 ]" ], "category": "behavior" }, "with-seconds": { "type": "Boolean", "desc": "Allow the time to be set with seconds", "category": "model|behavior" }, "now-btn": { "type": "Boolean", "desc": "Display a button that selects the current time", "category": "content" } }, "slots": { "default": { "desc": "This is where additional buttons can go" } }, "events": { "update:model-value": { "extends": "update:model-value", "params": { "value": { "type": [ "String", "null" ] }, "details": { "type": "Object", "desc": "Object of properties on the new model", "definition": { "year": { "type": "Number", "required": true, "desc": "The year" }, "month": { "type": "Number", "required": true, "desc": "The month" }, "day": { "type": "Number", "required": true, "desc": "The day of the month" }, "hour": { "type": "Number", "required": true, "desc": "The hour" }, "minute": { "type": "Number", "required": true, "desc": "The minute" }, "second": { "type": "Number", "required": true, "desc": "The second" }, "millisecond": { "type": "Number", "required": true, "desc": "The millisecond" }, "changed": { "type": "Boolean", "required": true, "desc": "Did the model change?" } } } } } }, "methods": { "setNow": { "desc": "Change model to current moment", "params": null, "returns": null } } }