primevue 4.3.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordionheader/AccordionHeader.vue +8 -2
- package/accordionheader/index.mjs +8 -1
- package/accordionheader/index.mjs.map +1 -1
- package/autocomplete/AutoComplete.vue +16 -6
- package/autocomplete/index.d.ts +3 -3
- package/autocomplete/index.mjs +17 -4
- package/autocomplete/index.mjs.map +1 -1
- package/avatar/Avatar.vue +13 -4
- package/avatar/index.d.ts +3 -3
- package/avatar/index.mjs +26 -6
- package/avatar/index.mjs.map +1 -1
- package/badge/Badge.vue +13 -2
- package/badge/index.d.ts +1 -1
- package/badge/index.mjs +18 -3
- package/badge/index.mjs.map +1 -1
- package/blockui/BlockUI.vue +15 -4
- package/blockui/index.mjs +13 -4
- package/blockui/index.mjs.map +1 -1
- package/button/Button.vue +30 -3
- package/button/index.d.ts +3 -7
- package/button/index.mjs +28 -9
- package/button/index.mjs.map +1 -1
- package/cascadeselect/index.d.ts +2 -2
- package/checkbox/Checkbox.vue +14 -4
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.mjs +27 -6
- package/checkbox/index.mjs.map +1 -1
- package/chip/Chip.vue +9 -1
- package/chip/index.mjs +12 -2
- package/chip/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +10 -2
- package/colorpicker/index.d.ts +1 -1
- package/colorpicker/index.mjs +9 -2
- package/colorpicker/index.mjs.map +1 -1
- package/column/index.d.ts +3 -3
- package/columngroup/index.d.ts +2 -2
- package/confirmationoptions/index.d.ts +1 -1
- package/datatable/BodyCell.vue +3 -1
- package/datatable/BodyRow.vue +2 -0
- package/datatable/index.d.ts +10 -10
- package/datatable/index.mjs +7 -2
- package/datatable/index.mjs.map +1 -1
- package/dataview/index.d.ts +3 -3
- package/datepicker/DatePicker.vue +1 -1
- package/datepicker/index.d.ts +6 -6
- package/datepicker/index.mjs +1 -1
- package/datepicker/index.mjs.map +1 -1
- package/dialog/Dialog.vue +48 -39
- package/dialog/index.d.ts +26 -1
- package/dialog/index.mjs +73 -50
- package/dialog/index.mjs.map +1 -1
- package/divider/Divider.vue +13 -3
- package/divider/index.d.ts +4 -4
- package/divider/index.mjs +18 -5
- package/divider/index.mjs.map +1 -1
- package/dock/index.d.ts +4 -4
- package/drawer/index.d.ts +2 -2
- package/fieldset/Fieldset.vue +8 -2
- package/fieldset/index.mjs +20 -10
- package/fieldset/index.mjs.map +1 -1
- package/fileupload/index.d.ts +2 -2
- package/floatlabel/index.d.ts +2 -2
- package/galleria/GalleriaItem.vue +8 -9
- package/galleria/index.d.ts +3 -3
- package/galleria/index.mjs +8 -8
- package/galleria/index.mjs.map +1 -1
- package/inputchips/index.d.ts +2 -2
- package/inputmask/InputMask.vue +15 -1
- package/inputmask/index.d.ts +3 -3
- package/inputmask/index.mjs +12 -1
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/InputNumber.vue +27 -5
- package/inputnumber/index.d.ts +6 -6
- package/inputnumber/index.mjs +41 -18
- package/inputnumber/index.mjs.map +1 -1
- package/inputotp/index.d.ts +3 -3
- package/inputtext/InputText.vue +10 -1
- package/inputtext/index.d.ts +3 -3
- package/inputtext/index.mjs +14 -1
- package/inputtext/index.mjs.map +1 -1
- package/knob/Knob.vue +1 -1
- package/knob/index.mjs +1 -1
- package/knob/index.mjs.map +1 -1
- package/megamenu/index.d.ts +2 -2
- package/message/Message.vue +16 -7
- package/message/index.d.ts +2 -2
- package/message/index.mjs +35 -13
- package/message/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +5 -1
- package/multiselect/index.d.ts +3 -3
- package/multiselect/index.mjs +4 -1
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/index.d.ts +2 -2
- package/overlaybadge/index.d.ts +1 -1
- package/package.json +3 -3
- package/panel/Panel.vue +29 -22
- package/panel/index.d.ts +22 -2
- package/panel/index.mjs +55 -31
- package/panel/index.mjs.map +1 -1
- package/password/index.d.ts +2 -2
- package/popover/Popover.vue +2 -2
- package/popover/index.mjs +2 -2
- package/popover/index.mjs.map +1 -1
- package/progressbar/ProgressBar.vue +11 -4
- package/progressbar/index.mjs +24 -6
- package/progressbar/index.mjs.map +1 -1
- package/radiobutton/RadioButton.vue +13 -3
- package/radiobutton/index.d.ts +3 -3
- package/radiobutton/index.mjs +24 -4
- package/radiobutton/index.mjs.map +1 -1
- package/rating/Rating.vue +19 -2
- package/rating/index.mjs +28 -7
- package/rating/index.mjs.map +1 -1
- package/scrolltop/index.d.ts +2 -2
- package/select/Select.vue +8 -4
- package/select/index.d.ts +2 -2
- package/select/index.mjs +9 -5
- package/select/index.mjs.map +1 -1
- package/selectbutton/SelectButton.vue +26 -9
- package/selectbutton/index.d.ts +2 -2
- package/selectbutton/index.mjs +30 -10
- package/selectbutton/index.mjs.map +1 -1
- package/skeleton/Skeleton.vue +7 -1
- package/skeleton/index.d.ts +3 -3
- package/skeleton/index.mjs +12 -1
- package/skeleton/index.mjs.map +1 -1
- package/slider/Slider.vue +11 -2
- package/slider/index.d.ts +2 -2
- package/slider/index.mjs +27 -8
- package/slider/index.mjs.map +1 -1
- package/speeddial/index.d.ts +5 -5
- package/splitbutton/index.d.ts +1 -1
- package/splitter/index.d.ts +3 -3
- package/stepper/index.d.ts +4 -0
- package/tab/Tab.vue +8 -2
- package/tab/index.mjs +9 -1
- package/tab/index.mjs.map +1 -1
- package/tablist/TabList.vue +10 -2
- package/tablist/index.mjs +20 -8
- package/tablist/index.mjs.map +1 -1
- package/tag/Tag.vue +11 -2
- package/tag/index.mjs +17 -3
- package/tag/index.mjs.map +1 -1
- package/textarea/Textarea.vue +10 -1
- package/textarea/index.d.ts +3 -3
- package/textarea/index.mjs +14 -1
- package/textarea/index.mjs.map +1 -1
- package/timeline/Timeline.vue +16 -7
- package/timeline/index.d.ts +3 -3
- package/timeline/index.mjs +42 -11
- package/timeline/index.mjs.map +1 -1
- package/toast/Toast.vue +10 -1
- package/toast/ToastMessage.vue +29 -19
- package/toast/index.d.ts +2 -2
- package/toast/index.mjs +77 -38
- package/toast/index.mjs.map +1 -1
- package/togglebutton/ToggleButton.vue +10 -1
- package/togglebutton/index.d.ts +3 -3
- package/togglebutton/index.mjs +19 -4
- package/togglebutton/index.mjs.map +1 -1
- package/toggleswitch/ToggleSwitch.vue +11 -3
- package/toggleswitch/index.mjs +20 -5
- package/toggleswitch/index.mjs.map +1 -1
- package/tooltip/index.mjs +0 -6
- package/tooltip/index.mjs.map +1 -1
- package/tree/index.d.ts +3 -3
- package/treeselect/index.d.ts +6 -6
- package/treetable/index.d.ts +7 -7
- package/treetable/style/index.mjs +2 -3
- package/treetable/style/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/virtualscroller/index.d.ts +2 -2
- package/web-types.json +1 -1
package/dataview/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module dataview
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
import type { DefineComponent, DesignToken, EmitFn, PassThrough } from '@primevue/core';
|
|
10
|
+
import type { DefineComponent, DesignToken, EmitFn, HintedString, PassThrough } from '@primevue/core';
|
|
11
11
|
import type { ComponentHooks } from '@primevue/core/basecomponent';
|
|
12
12
|
import type { PaginatorPassThroughOptionType } from 'primevue/paginator';
|
|
13
13
|
import type { PassThroughOptions } from 'primevue/passthrough';
|
|
@@ -152,7 +152,7 @@ export interface DataViewProps {
|
|
|
152
152
|
* Layout of the items, valid values are 'list' and 'grid'.
|
|
153
153
|
* @defaultValue list
|
|
154
154
|
*/
|
|
155
|
-
layout?: 'list' | 'grid' | undefined;
|
|
155
|
+
layout?: HintedString<'list' | 'grid'> | undefined;
|
|
156
156
|
/**
|
|
157
157
|
* Number of rows to display per page.
|
|
158
158
|
* @defaultValue 0
|
|
@@ -176,7 +176,7 @@ export interface DataViewProps {
|
|
|
176
176
|
* Position of the paginator, options are 'top','bottom' or 'both'.
|
|
177
177
|
* @defaultValue bottom
|
|
178
178
|
*/
|
|
179
|
-
paginatorPosition?: 'top' | 'bottom' | 'both' | undefined;
|
|
179
|
+
paginatorPosition?: HintedString<'top' | 'bottom' | 'both'> | undefined;
|
|
180
180
|
/**
|
|
181
181
|
* Whether to show it even there is only one page.
|
|
182
182
|
* @defaultValue true
|
|
@@ -1271,7 +1271,7 @@ export default {
|
|
|
1271
1271
|
},
|
|
1272
1272
|
formatValue(value) {
|
|
1273
1273
|
if (typeof value === 'string') {
|
|
1274
|
-
return value;
|
|
1274
|
+
return this.dateFormat ? (isNaN(new Date(value)) ? value : this.formatDate(new Date(value), this.dateFormat)) : value;
|
|
1275
1275
|
}
|
|
1276
1276
|
|
|
1277
1277
|
let formattedValue = '';
|
package/datepicker/index.d.ts
CHANGED
|
@@ -529,7 +529,7 @@ export interface DatePickerProps {
|
|
|
529
529
|
* Defines the quantity of the selection.
|
|
530
530
|
* @defaultValue single
|
|
531
531
|
*/
|
|
532
|
-
selectionMode?: 'single' | 'multiple' | 'range' | undefined;
|
|
532
|
+
selectionMode?: HintedString<'single' | 'multiple' | 'range'> | undefined;
|
|
533
533
|
/**
|
|
534
534
|
* Format of the date. Defaults to PrimeVue Locale configuration.
|
|
535
535
|
*/
|
|
@@ -558,7 +558,7 @@ export interface DatePickerProps {
|
|
|
558
558
|
* Icon position of the component. This only applies if the showIcon option is set to true.
|
|
559
559
|
* @defaultValue 'button'
|
|
560
560
|
*/
|
|
561
|
-
iconDisplay?: 'button' | 'input' | undefined;
|
|
561
|
+
iconDisplay?: HintedString<'button' | 'input'> | undefined;
|
|
562
562
|
/**
|
|
563
563
|
* Icon of the datepicker button.
|
|
564
564
|
*/
|
|
@@ -597,7 +597,7 @@ export interface DatePickerProps {
|
|
|
597
597
|
* Type of view to display.
|
|
598
598
|
* @defaultValue date
|
|
599
599
|
*/
|
|
600
|
-
view?: 'date' | 'month' | 'year' | undefined;
|
|
600
|
+
view?: HintedString<'date' | 'month' | 'year'> | undefined;
|
|
601
601
|
/**
|
|
602
602
|
* The minimum selectable date.
|
|
603
603
|
*/
|
|
@@ -657,7 +657,7 @@ export interface DatePickerProps {
|
|
|
657
657
|
* Specifies hour format.
|
|
658
658
|
* @defaultValue 24
|
|
659
659
|
*/
|
|
660
|
-
hourFormat?: '12' | '24' | undefined;
|
|
660
|
+
hourFormat?: HintedString<'12' | '24'> | undefined;
|
|
661
661
|
/**
|
|
662
662
|
* Hours to change per step.
|
|
663
663
|
* @defaultValue 1
|
|
@@ -706,7 +706,7 @@ export interface DatePickerProps {
|
|
|
706
706
|
/**
|
|
707
707
|
* Defines the size of the component.
|
|
708
708
|
*/
|
|
709
|
-
size?: 'small' | 'large' | undefined;
|
|
709
|
+
size?: HintedString<'small' | 'large'> | undefined;
|
|
710
710
|
/**
|
|
711
711
|
* When present, it specifies that the component should have invalid state style.
|
|
712
712
|
* @defaultValue false
|
|
@@ -721,7 +721,7 @@ export interface DatePickerProps {
|
|
|
721
721
|
* Specifies the input variant of the component.
|
|
722
722
|
* @defaultValue null
|
|
723
723
|
*/
|
|
724
|
-
variant?: 'outlined' | 'filled' | undefined | null;
|
|
724
|
+
variant?: HintedString<'outlined' | 'filled'> | undefined | null;
|
|
725
725
|
/**
|
|
726
726
|
* When present, it specifies that an input field is read-only.
|
|
727
727
|
* @defaultValue false
|
package/datepicker/index.mjs
CHANGED
|
@@ -978,7 +978,7 @@ var script = {
|
|
|
978
978
|
},
|
|
979
979
|
formatValue: function formatValue(value) {
|
|
980
980
|
if (typeof value === 'string') {
|
|
981
|
-
return value;
|
|
981
|
+
return this.dateFormat ? isNaN(new Date(value)) ? value : this.formatDate(new Date(value), this.dateFormat) : value;
|
|
982
982
|
}
|
|
983
983
|
var formattedValue = '';
|
|
984
984
|
if (value) {
|