Comparing version 1.0.0-beta.16 to 1.0.0-beta.17
@@ -6,3 +6,3 @@ { | ||
"desc": "Model of the component; Either use this property (along with a listener for 'input' event) OR use v-model directive", | ||
"category": "mdoel", | ||
"category": "model", | ||
"type": [ | ||
@@ -9,0 +9,0 @@ "Number", |
@@ -12,3 +12,3 @@ { | ||
"desc": "If set to true, the top and bottom margins will be set to 8px", | ||
"category": "contnet" | ||
"category": "content" | ||
}, | ||
@@ -15,0 +15,0 @@ "inset": { |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
* Released under the MIT License. | ||
*/ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):((e=e||self).Quasar=e.Quasar||{},e.Quasar.lang=e.Quasar.lang||{},e.Quasar.lang.fr=r())}(this,function(){"use strict";return{isoName:"fr",nativeName:"Français",label:{clear:"Effacer",ok:"OK",cancel:"Annuler",close:"Fermer",set:"Régler",select:"Sélectionner",reset:"Réinitialiser",remove:"Supprimer",update:"Mettre à jour",create:"Créer",search:"Rechercher",filter:"Filtrer",refresh:"Rafraîchir"},date:{days:"Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),daysShort:"Dim_Lun_Mar_Mer_Jeu_Ven_Sam".split("_"),months:"Janvier_Février_Mars_Avril_Mai_Juin_Juillet_Août_Septembre_Octobre_Novembre_Décembre".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Juin_Jui_Aou_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:1,format24h:!0},table:{noData:"Aucune donnée à afficher",noResults:"Aucune donnée trouvée",loading:"Chargement...",selectedRecords:function(e){return e>0?e+" "+(1===e?"ligne sélectionnée":"lignes sélectionnées")+".":"Aucune ligne sélectionnée."},recordsPerPage:"Lignes par page:",allRows:"Tous",pagination:function(e,r,n){return e+"-"+r+" sur "+n},columns:"Colonnes"},editor:{url:"URL",bold:"Gras",italic:"Italique",strikethrough:"Barré",underline:"Souligné",unorderedList:"Liste non ordonnée",orderedList:"Liste ordonnée",subscript:"Indice",superscript:"Exposant",hyperlink:"Hyperlien",toggleFullscreen:"Basculer en plein écran",quote:"Citation",left:"Aligner à gauche",center:"Aligner au centre",right:"Aligner à droite",justify:"Justifier",print:"Imprimer",outdent:"Diminuer l'indentation",indent:"Augmenter l'indentation",removeFormat:"Supprimer la mise en forme",formatting:"Mise en forme",fontSize:"Taille de police",align:"Aligner",hr:"Insérer une règle horizontale",undo:"Annuler",redo:"Refaire",header1:"Titre 1",header2:"Titre 2",header3:"Titre 3",header4:"Titre 4",header5:"Titre 5",header6:"Titre 6",paragraph:"Paragraphe",code:"Code",size1:"Très petit",size2:"Petit",size3:"Normal",size4:"Moyenne",size5:"Grand",size6:"Très grand",size7:"Maximum",defaultFont:"Police par défaut"},tree:{noData:"Aucun nœud à afficher",noResults:"Aucun nœud trouvée"}}}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):((e=e||self).Quasar=e.Quasar||{},e.Quasar.lang=e.Quasar.lang||{},e.Quasar.lang.fr=r())}(this,function(){"use strict";return{isoName:"fr",nativeName:"Français",label:{clear:"Effacer",ok:"OK",cancel:"Annuler",close:"Fermer",set:"Régler",select:"Sélectionner",reset:"Réinitialiser",remove:"Supprimer",update:"Mettre à jour",create:"Créer",search:"Rechercher",filter:"Filtrer",refresh:"Rafraîchir"},date:{days:"Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),daysShort:"Dim_Lun_Mar_Mer_Jeu_Ven_Sam".split("_"),months:"Janvier_Février_Mars_Avril_Mai_Juin_Juillet_Août_Septembre_Octobre_Novembre_Décembre".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Juin_Jui_Aou_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:1,format24h:!0},table:{noData:"Aucune donnée à afficher",noResults:"Aucune donnée trouvée",loading:"Chargement...",selectedRecords:function(e){return e>0?e+" "+(1===e?"ligne sélectionnée":"lignes sélectionnées")+".":"Aucune ligne sélectionnée."},recordsPerPage:"Lignes par page :",allRows:"Tous",pagination:function(e,r,n){return e+"-"+r+" sur "+n},columns:"Colonnes"},editor:{url:"URL",bold:"Gras",italic:"Italique",strikethrough:"Barré",underline:"Souligné",unorderedList:"Liste non ordonnée",orderedList:"Liste ordonnée",subscript:"Indice",superscript:"Exposant",hyperlink:"Hyperlien",toggleFullscreen:"Basculer en plein écran",quote:"Citation",left:"Aligner à gauche",center:"Aligner au centre",right:"Aligner à droite",justify:"Justifier",print:"Imprimer",outdent:"Diminuer l'indentation",indent:"Augmenter l'indentation",removeFormat:"Supprimer la mise en forme",formatting:"Mise en forme",fontSize:"Taille de police",align:"Aligner",hr:"Insérer une règle horizontale",undo:"Annuler",redo:"Refaire",header1:"Titre 1",header2:"Titre 2",header3:"Titre 3",header4:"Titre 4",header5:"Titre 5",header6:"Titre 6",paragraph:"Paragraphe",code:"Code",size1:"Très petit",size2:"Petit",size3:"Normal",size4:"Moyenne",size5:"Grand",size6:"Très grand",size7:"Maximum",defaultFont:"Police par défaut"},tree:{noData:"Aucun nœud à afficher",noResults:"Aucun nœud trouvé"}}}); |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* Quasar Framework v1.0.0-beta.16 | ||
* Quasar Framework v1.0.0-beta.17 | ||
* (c) 2016-present Razvan Stoenescu | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
@@ -36,3 +36,3 @@ export default { | ||
}, | ||
recordsPerPage: 'Lignes par page:', | ||
recordsPerPage: 'Lignes par page :', | ||
allRows: 'Tous', | ||
@@ -90,4 +90,4 @@ pagination: function (start, end, total) { | ||
noData: 'Aucun nœud à afficher', | ||
noResults: 'Aucun nœud trouvée' | ||
noResults: 'Aucun nœud trouvé' | ||
} | ||
} |
{ | ||
"name": "quasar", | ||
"version": "1.0.0-beta.16", | ||
"version": "1.0.0-beta.17", | ||
"description": "High performance, Material Design 2, full front end stack with Vue.js -- build SPA, SSR, PWA, Hybrid Mobile Apps and Electron apps, all simultaneously using the same codebase", | ||
@@ -88,2 +88,3 @@ "module": "src/index.esm.js", | ||
"rollup-plugin-node-resolve": "^4.0.1", | ||
"style-resources-loader": "^1.2.1", | ||
"stylus": "^0.54.5", | ||
@@ -90,0 +91,0 @@ "stylus-loader": "^3.0.2", |
@@ -47,4 +47,4 @@ import Vue from 'vue' | ||
render (h) { | ||
const node = slot(this, 'default') | ||
if (node === void 0) { return } | ||
const nodes = slot(this, 'default') | ||
if (nodes === void 0) { return } | ||
@@ -55,7 +55,6 @@ let els = 1 | ||
child = [], | ||
len = node.filter(c => c.tag !== void 0 && c.tag.endsWith('-QBreadcrumbsEl')).length, | ||
len = nodes.filter(c => c.tag !== void 0 && c.tag.endsWith('-QBreadcrumbsEl')).length, | ||
separator = this.$scopedSlots.separator || (() => this.separator) | ||
for (const i in node) { | ||
const comp = node[i] | ||
nodes.forEach(comp => { | ||
if (comp.tag !== void 0 && comp.tag.endsWith('-QBreadcrumbsEl')) { | ||
@@ -79,3 +78,3 @@ const middle = els < len | ||
} | ||
} | ||
}) | ||
@@ -87,3 +86,3 @@ return h('div', { | ||
h('div', { | ||
staticClass: ' flex items-center', | ||
staticClass: 'flex items-center', | ||
class: this.classes | ||
@@ -90,0 +89,0 @@ }, child) |
@@ -31,4 +31,22 @@ import Vue from 'vue' | ||
this.hasRouterLink === true && e !== void 0 && stopAndPrevent(e) | ||
if (e !== void 0) { | ||
// focus button if it came from ENTER on form | ||
// prevent the new submit (already done) | ||
if (this.type === 'submit' && this.$el.contains(document.activeElement) === false) { | ||
stopAndPrevent(e) | ||
this.$el.focus() | ||
return | ||
} | ||
if (e.qKeyEvent !== true && this.$refs.blurTarget !== void 0) { | ||
this.$refs.blurTarget.focus() | ||
} | ||
if (e.defaultPrevented === true) { | ||
return | ||
} | ||
this.hasRouterLink === true && stopAndPrevent(e) | ||
} | ||
const go = () => { | ||
@@ -40,6 +58,2 @@ this.$router[this.replace === true ? 'replace' : 'push'](this.to) | ||
this.hasRouterLink === true && e.navigate !== false && go() | ||
if (e !== void 0 && e.qKeyEvent !== true && this.$refs.blurTarget !== void 0) { | ||
this.$refs.blurTarget.focus() | ||
} | ||
}, | ||
@@ -49,2 +63,5 @@ | ||
if ([13, 32].includes(e.keyCode) === true) { | ||
// focus external button if the focus helper was focused before | ||
this.$el.focus() | ||
stopAndPrevent(e) | ||
@@ -64,18 +81,14 @@ | ||
if ([13, 32].includes(e.keyCode) === true) { | ||
// from form submit -- keydown was called | ||
// on other form item then keydown was attached to btn | ||
if (this.pressed !== true) { | ||
return | ||
} | ||
stopAndPrevent(e) | ||
this.__onKeyupAbort() | ||
// for ripple | ||
e.qKeyEvent = true | ||
// for click trigger | ||
const evt = new MouseEvent('click', e) | ||
evt.qKeyEvent = true | ||
e.defaultPrevented === true && evt.preventDefault() | ||
this.$el.dispatchEvent(evt) | ||
stopAndPrevent(e) | ||
// for ripple | ||
e.qKeyEvent = true | ||
} | ||
@@ -82,0 +95,0 @@ |
@@ -121,4 +121,4 @@ import Vue from 'vue' | ||
'q-field--readonly no-pointer-events': this.readonly, | ||
'disabled no-pointer-events': this.disable | ||
'q-field--readonly': this.readonly, | ||
'q-field--disabled': this.disable | ||
} | ||
@@ -189,23 +189,27 @@ }, | ||
;(this.loading === true || this.innerLoading === true) && node.push( | ||
this.__getInnerAppendNode( | ||
h, | ||
'inner-loading-append', | ||
this.$scopedSlots.loading !== void 0 | ||
? this.$scopedSlots.loading() | ||
: [ h(QSpinner, { props: { color: this.color } }) ] | ||
if (this.loading === true || this.innerLoading === true) { | ||
node.push( | ||
this.__getInnerAppendNode( | ||
h, | ||
'inner-loading-append', | ||
this.$scopedSlots.loading !== void 0 | ||
? this.$scopedSlots.loading() | ||
: [ h(QSpinner, { props: { color: this.color } }) ] | ||
) | ||
) | ||
) | ||
} | ||
this.clearable === true && this.hasValue === true && node.push( | ||
this.__getInnerAppendNode(h, 'inner-clearable-append', [ | ||
h(QIcon, { | ||
staticClass: 'cursor-pointer', | ||
props: { name: this.clearIcon || this.$q.iconSet.field.clear }, | ||
on: { | ||
click: this.__clearValue | ||
} | ||
}) | ||
]) | ||
) | ||
if (this.clearable === true && this.hasValue === true && this.editable === true) { | ||
node.push( | ||
this.__getInnerAppendNode(h, 'inner-clearable-append', [ | ||
h(QIcon, { | ||
staticClass: 'cursor-pointer', | ||
props: { name: this.clearIcon || this.$q.iconSet.field.clear }, | ||
on: { | ||
click: this.__clearValue | ||
} | ||
}) | ||
]) | ||
) | ||
} | ||
@@ -212,0 +216,0 @@ this.$scopedSlots.append !== void 0 && node.push( |
@@ -307,3 +307,4 @@ import Vue from 'vue' | ||
if (this.$refs.backdrop !== void 0) { | ||
this.$refs.backdrop.style.backgroundColor = `rgba(0,0,0,${x * 0.4})` | ||
this.$refs.backdrop.style.backgroundColor = | ||
this.lastBackdropBg = `rgba(0,0,0,${x * 0.4})` | ||
} | ||
@@ -512,2 +513,5 @@ }, | ||
class: this.backdropClass, | ||
style: this.lastBackdropBg !== void 0 | ||
? { backgroundColor: this.lastBackdropBg } | ||
: null, | ||
on: { | ||
@@ -514,0 +518,0 @@ click: this.hide |
@@ -212,5 +212,2 @@ import Vue from 'vue' | ||
el.style.maxHeight = this.maxHeight | ||
el.style.maxWidth = this.maxWidth | ||
setPosition({ | ||
@@ -224,3 +221,5 @@ el, | ||
fit: this.fit, | ||
cover: this.cover | ||
cover: this.cover, | ||
maxHeight: this.maxHeight, | ||
maxWidth: this.maxWidth | ||
}) | ||
@@ -227,0 +226,0 @@ }, |
@@ -8,3 +8,3 @@ { | ||
"examples": [ "v-model=\"option\"" ], | ||
"category": "mdoel" | ||
"category": "model" | ||
}, | ||
@@ -11,0 +11,0 @@ |
@@ -532,3 +532,3 @@ import Vue from 'vue' | ||
__hydrateOptions (updatePosition) { | ||
__hydrateOptions () { | ||
if (this.avoidScroll !== true) { | ||
@@ -543,10 +543,6 @@ if (this.optionsToShow < this.options.length) { | ||
this.avoidScroll = false | ||
this.__hydrateOptions(updatePosition) | ||
this.__hydrateOptions() | ||
}) | ||
return | ||
} | ||
} | ||
updatePosition === true && this.__updateMenuPosition() | ||
} | ||
@@ -803,7 +799,2 @@ }, | ||
this.$emit('focus', e) | ||
const target = this.$refs.target | ||
if (target !== void 0 && this.useInput === true && this.inputValue.length > 0) { | ||
target.setSelectionRange(0, this.inputValue.length) | ||
} | ||
}, | ||
@@ -958,6 +949,7 @@ | ||
this.optionIndex = -1 | ||
if (show === true) { | ||
this.optionsToShow = 20 | ||
this.$nextTick(() => { | ||
this.__hydrateOptions(true) | ||
this.__hydrateOptions() | ||
}) | ||
@@ -972,8 +964,2 @@ } | ||
__updateMenuPosition () { | ||
if (this.dialog === false && this.$refs.menu !== void 0) { | ||
this.$refs.menu.updatePosition() | ||
} | ||
}, | ||
__onPreRender () { | ||
@@ -983,3 +969,3 @@ this.hasDialog = this.$q.platform.is.mobile !== true | ||
: ( | ||
this.$listeners['new-value'] !== void 0 | ||
this.useInput === true | ||
? this.$listeners.filter !== void 0 | ||
@@ -991,3 +977,5 @@ : true | ||
__onPostRender () { | ||
this.__updateMenuPosition() | ||
if (this.dialog === false && this.$refs.menu !== void 0) { | ||
this.$refs.menu.updatePosition() | ||
} | ||
} | ||
@@ -994,0 +982,0 @@ }, |
@@ -10,3 +10,3 @@ { | ||
"desc": "If set to true, the top and bottom margins will be set to 8px", | ||
"category": "contnet" | ||
"category": "content" | ||
}, | ||
@@ -13,0 +13,0 @@ |
@@ -126,5 +126,2 @@ import Vue from 'vue' | ||
el.style.maxHeight = this.maxHeight | ||
el.style.maxWidth = this.maxWidth | ||
setPosition({ | ||
@@ -135,3 +132,5 @@ el, | ||
anchorOrigin: this.anchorOrigin, | ||
selfOrigin: this.selfOrigin | ||
selfOrigin: this.selfOrigin, | ||
maxHeight: this.maxHeight, | ||
maxWidth: this.maxWidth | ||
}) | ||
@@ -138,0 +137,0 @@ }, |
@@ -103,4 +103,4 @@ import { css } from '../utils/dom.js' | ||
el.__qripple = ctx | ||
el.addEventListener('click', ctx.click, false) | ||
el.addEventListener('keyup', ctx.keyup, false) | ||
el.addEventListener('click', ctx.click) | ||
el.addEventListener('keyup', ctx.keyup) | ||
}, | ||
@@ -116,4 +116,4 @@ | ||
ctx.abort !== void 0 && ctx.abort() | ||
el.removeEventListener('click', ctx.click, false) | ||
el.removeEventListener('keyup', ctx.keyup, false) | ||
el.removeEventListener('click', ctx.click) | ||
el.removeEventListener('keyup', ctx.keyup) | ||
delete el[el.__qripple_old ? '__qripple_old' : '__qripple'] | ||
@@ -120,0 +120,0 @@ } |
@@ -1,18 +0,1 @@ | ||
import { isSSR } from '../plugins/Platform.js' | ||
export const routerLinkEventName = 'qrouterlinkclick' | ||
let evt = null | ||
if (!isSSR) { | ||
try { | ||
evt = new Event(routerLinkEventName) | ||
} | ||
catch (e) { | ||
// IE doesn't support `new Event()`, so...` | ||
evt = document.createEvent('Event') | ||
evt.initEvent(routerLinkEventName, true, false) | ||
} | ||
} | ||
export const routerLinkProps = { | ||
@@ -28,4 +11,2 @@ to: [String, Object], | ||
export { evt as routerLinkEvent } | ||
export const RouterLinkMixin = { | ||
@@ -32,0 +13,0 @@ props: routerLinkProps, |
@@ -6,3 +6,3 @@ import { isSSR, hasWebStorage } from './Platform.js' | ||
install ({ $q }) { | ||
const storage = isSSR || !hasWebStorage | ||
const storage = isSSR === true || hasWebStorage() === false | ||
? getEmptyStorage() | ||
@@ -9,0 +9,0 @@ : getStorage('local') |
@@ -6,3 +6,3 @@ import { isSSR, hasWebStorage } from './Platform.js' | ||
install ({ $q }) { | ||
const storage = isSSR || !hasWebStorage | ||
const storage = isSSR === true || hasWebStorage() === false | ||
? getEmptyStorage() | ||
@@ -9,0 +9,0 @@ : getStorage('session') |
@@ -568,3 +568,7 @@ /* eslint no-fallthrough: 0 */ | ||
export function formatDate (val, mask = 'YYYY-MM-DDTHH:mm:ss.SSSZ', opts) { | ||
if (val !== 0 && !val) { | ||
if ( | ||
(val !== 0 && !val) || | ||
val === Infinity || | ||
val === -Infinity | ||
) { | ||
return | ||
@@ -575,2 +579,6 @@ } | ||
if (isNaN(date)) { | ||
return | ||
} | ||
return mask.replace(token, function (match, text) { | ||
@@ -577,0 +585,0 @@ if (match in formatter) { |
@@ -74,13 +74,23 @@ import { getScrollbarWidth } from './scroll.js' | ||
export function setPosition ({ el, anchorEl, anchorOrigin, selfOrigin, offset, absoluteOffset, cover, fit }) { | ||
// cfg: { el, anchorEl, anchorOrigin, selfOrigin, offset, absoluteOffset, cover, fit, maxHeight, maxWidth } | ||
export function setPosition (cfg) { | ||
let anchorProps | ||
if (absoluteOffset === void 0) { | ||
anchorProps = getAnchorProps(anchorEl, cover === true ? [0, 0] : offset) | ||
// scroll position might change | ||
// if max-height changes, so we | ||
// need to restore it after we calculate | ||
// the new positioning | ||
const scrollTop = cfg.el.scrollTop | ||
cfg.el.style.maxHeight = cfg.maxHeight | ||
cfg.el.style.maxWidth = cfg.maxWidth | ||
if (cfg.absoluteOffset === void 0) { | ||
anchorProps = getAnchorProps(cfg.anchorEl, cfg.cover === true ? [0, 0] : cfg.offset) | ||
} | ||
else { | ||
const | ||
{ top: anchorTop, left: anchorLeft } = anchorEl.getBoundingClientRect(), | ||
top = anchorTop + absoluteOffset.top, | ||
left = anchorLeft + absoluteOffset.left | ||
{ top: anchorTop, left: anchorLeft } = cfg.anchorEl.getBoundingClientRect(), | ||
top = anchorTop + cfg.absoluteOffset.top, | ||
left = anchorLeft + cfg.absoluteOffset.left | ||
@@ -90,6 +100,6 @@ anchorProps = { top, left, width: 1, height: 1, right: left + 1, center: top, middle: left, bottom: top + 1 } | ||
if (fit === true || cover === true) { | ||
el.style.minWidth = anchorProps.width + 'px' | ||
if (cover === true) { | ||
el.style.minHeight = anchorProps.height + 'px' | ||
if (cfg.fit === true || cfg.cover === true) { | ||
cfg.el.style.minWidth = anchorProps.width + 'px' | ||
if (cfg.cover === true) { | ||
cfg.el.style.minHeight = anchorProps.height + 'px' | ||
} | ||
@@ -99,19 +109,24 @@ } | ||
const | ||
targetProps = getTargetProps(el), | ||
targetProps = getTargetProps(cfg.el), | ||
props = { | ||
top: anchorProps[anchorOrigin.vertical] - targetProps[selfOrigin.vertical], | ||
left: anchorProps[anchorOrigin.horizontal] - targetProps[selfOrigin.horizontal] | ||
top: anchorProps[cfg.anchorOrigin.vertical] - targetProps[cfg.selfOrigin.vertical], | ||
left: anchorProps[cfg.anchorOrigin.horizontal] - targetProps[cfg.selfOrigin.horizontal] | ||
} | ||
applyBoundaries(props, anchorProps, targetProps, anchorOrigin, selfOrigin) | ||
applyBoundaries(props, anchorProps, targetProps, cfg.anchorOrigin, cfg.selfOrigin) | ||
el.style.top = Math.max(0, props.top) + 'px' | ||
el.style.left = Math.max(0, props.left) + 'px' | ||
cfg.el.style.top = Math.max(0, Math.floor(props.top)) + 'px' | ||
cfg.el.style.left = Math.max(0, Math.floor(props.left)) + 'px' | ||
if (props.maxHeight !== void 0) { | ||
el.style.maxHeight = props.maxHeight + 'px' | ||
cfg.el.style.maxHeight = Math.floor(props.maxHeight) + 'px' | ||
} | ||
if (props.maxWidth !== void 0) { | ||
el.style.maxWidth = props.maxWidth + 'px' | ||
cfg.el.style.maxWidth = Math.floor(props.maxWidth) + 'px' | ||
} | ||
// restore scroll position | ||
if (cfg.el.scrollTop !== scrollTop) { | ||
cfg.el.scrollTop = scrollTop | ||
} | ||
} | ||
@@ -118,0 +133,0 @@ |
@@ -1,2 +0,2 @@ | ||
export function setObserver (el, evt, ctx, fn) { | ||
export function setObserver (el, evt, ctx) { | ||
const target = evt.target | ||
@@ -3,0 +3,0 @@ ctx.touchTargetObserver = new MutationObserver(() => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5443563
120772
53