Merge branch 'primefaces:master' into master

pull/5383/head
Amal Mathew 2024-03-13 17:14:14 +05:30 committed by GitHub
commit c78d2e2a4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 10 additions and 10 deletions

View File

@ -1117,7 +1117,7 @@ export interface DataTableProps {
/**
* Inline style of the table element.
*/
tableStyle?: object | undefined;
tableStyle?: string | object | undefined;
/**
* Style class of the table element.
*/

View File

@ -186,7 +186,7 @@ export interface ImageProps {
imageClass?: any;
/**
* Custom indicator icon.
* @deprecated since v3.27.0. Use 'indicator' slot.
* @deprecated since v3.27.0. Use 'indicatoricon' slot.
*/
indicatorIcon?: string;
/**
@ -223,7 +223,7 @@ export interface ImageSlots {
/**
* Custom indicator template.
*/
indicator(): VNode[];
indicatoricon(): VNode[];
/**
* Custom refresh template.
*/

View File

@ -188,7 +188,7 @@ export default {
if (paste.length) {
let pastedCode = paste.substring(0, this.length + 1);
if (!this.isIntegerOnly || !isNaN(pastedCode)) {
if (!this.integerOnly || !isNaN(pastedCode)) {
this.tokens = pastedCode.split('');
this.updateModel(event);
}
@ -199,7 +199,7 @@ export default {
},
computed: {
inputMode() {
return this.integerOnly ? 'number' : 'text';
return this.integerOnly ? 'numeric' : 'text';
},
inputType() {
return this.mask ? 'password' : 'text';

View File

@ -1,5 +1,5 @@
<template>
<div ref="container" :class="cx('root')" @click="onContainerClick" v-bind="ptmi('root')">
<div ref="container" :class="cx('root')" :style="sx('root')" @click="onContainerClick" v-bind="ptmi('root')">
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')" :data-p-hidden-accessible="true">
<input
ref="focusInput"

View File

@ -44,7 +44,7 @@ export default {
this.$refs.input.focus();
},
onKeydown(event) {
if ((event.code === 'Enter' || event.code === 'NumpadEnter') && this.commandText) {
if (event.key === 'Enter' && this.commandText) {
this.commands.push({ text: this.commandText });
TerminalService.emit('command', this.commandText);
this.commandText = '';

View File

@ -20407,7 +20407,7 @@
"name": "tableStyle",
"optional": true,
"readonly": false,
"type": "object",
"type": "string | object",
"default": "",
"description": "Inline style of the table element."
},
@ -29376,7 +29376,7 @@
"type": "string",
"default": "",
"description": "Custom indicator icon.",
"deprecated": "since v3.27.0. Use 'indicator' slot."
"deprecated": "since v3.27.0. Use 'indicatoricon' slot."
},
{
"name": "zoomInDisabled",
@ -29427,7 +29427,7 @@
"props": [],
"methods": [
{
"name": "indicator",
"name": "indicatoricon",
"parameters": [],
"returnType": "VNode<RendererNode, RendererElement, Object>[]",
"description": "Custom indicator template."