primevue 3.30.0 → 3.30.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/README.md +4 -2
- package/accordion/Accordion.d.ts +6 -1
- package/accordion/Accordion.vue +2 -1
- package/accordion/accordion.cjs.js +5 -9
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +5 -9
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +6 -10
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +1 -1
- package/autocomplete/AutoComplete.d.ts +1 -1
- package/avatar/Avatar.d.ts +1 -1
- package/badge/Badge.d.ts +1 -1
- package/basecomponent/BaseComponent.vue +12 -16
- package/basecomponent/basecomponent.cjs.js +18 -6
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +18 -6
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +18 -6
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +8 -2
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +8 -2
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +8 -2
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BlockUI.d.ts +1 -1
- package/breadcrumb/Breadcrumb.d.ts +1 -1
- package/button/Button.d.ts +1 -1
- package/calendar/Calendar.d.ts +1 -1
- package/carousel/Carousel.d.ts +1 -1
- package/cascadeselect/CascadeSelect.d.ts +1 -1
- package/chart/Chart.d.ts +1 -1
- package/checkbox/Checkbox.d.ts +1 -1
- package/chip/Chip.d.ts +1 -1
- package/chips/Chips.d.ts +1 -1
- package/colorpicker/ColorPicker.d.ts +1 -1
- package/column/Column.d.ts +49 -1
- package/columngroup/ColumnGroup.d.ts +6 -1
- package/config/PrimeVue.d.ts +13 -6
- package/confirmdialog/ConfirmDialog.d.ts +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +1 -1
- package/contextmenu/ContextMenu.d.ts +1 -1
- package/core/core.js +144 -103
- package/core/core.min.js +10 -10
- package/datatable/BaseDataTable.vue +7 -1
- package/datatable/BodyCell.vue +7 -4
- package/datatable/ColumnFilter.vue +43 -8
- package/datatable/DataTable.d.ts +31 -1
- package/datatable/FooterCell.vue +5 -2
- package/datatable/HeaderCell.vue +8 -3
- package/datatable/HeaderCheckbox.vue +5 -2
- package/datatable/RowCheckbox.vue +5 -2
- package/datatable/RowRadioButton.vue +5 -2
- package/datatable/TableBody.vue +33 -13
- package/datatable/TableFooter.vue +13 -4
- package/datatable/TableHeader.vue +16 -5
- package/datatable/datatable.cjs.js +221 -145
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +221 -145
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +222 -146
- package/datatable/datatable.min.js +1 -1
- package/dataview/BaseDataView.vue +1 -2
- package/dataview/DataView.d.ts +1 -1
- package/dataview/DataView.vue +3 -3
- package/dataview/dataview.cjs.js +5 -13
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +5 -13
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +5 -13
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +6 -1
- package/deferredcontent/DeferredContent.d.ts +1 -1
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.vue +13 -1
- package/dialog/dialog.cjs.js +6 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +6 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -2
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +1 -1
- package/dock/Dock.d.ts +5 -1
- package/dock/DockSub.vue +9 -8
- package/dock/dock.cjs.js +9 -8
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +9 -8
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +9 -8
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +1 -1
- package/editor/Editor.d.ts +1 -1
- package/fieldset/Fieldset.d.ts +1 -1
- package/fileupload/FileUpload.d.ts +1 -1
- package/galleria/Galleria.d.ts +5 -1
- package/galleria/GalleriaContent.vue +16 -6
- package/galleria/GalleriaItem.vue +2 -1
- package/galleria/GalleriaThumbnails.vue +1 -0
- package/galleria/galleria.cjs.js +34 -17
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +35 -18
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +34 -17
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +1 -1
- package/inlinemessage/InlineMessage.d.ts +1 -1
- package/inplace/Inplace.d.ts +1 -1
- package/inputnumber/InputNumber.d.ts +1 -1
- package/inputswitch/InputSwitch.d.ts +1 -1
- package/inputtext/InputText.d.ts +26 -1
- package/inputtext/InputText.vue +2 -1
- package/inputtext/inputtext.cjs.js +2 -1
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +2 -1
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +2 -1
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +1 -1
- package/listbox/Listbox.d.ts +1 -1
- package/megamenu/MegaMenu.d.ts +1 -1
- package/menu/Menu.d.ts +1 -1
- package/menubar/Menubar.d.ts +1 -1
- package/message/BaseMessage.vue +2 -2
- package/message/Message.d.ts +11 -1
- package/message/Message.vue +3 -3
- package/message/message.cjs.js +8 -8
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +8 -8
- package/message/message.esm.min.js +1 -1
- package/message/message.js +8 -8
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +1 -1
- package/multiselect/MultiSelect.vue +3 -2
- package/multiselect/multiselect.cjs.js +5 -5
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +6 -6
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +5 -5
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +18 -1
- package/orderlist/OrderList.vue +7 -7
- package/orderlist/orderlist.cjs.js +19 -15
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +19 -15
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +19 -15
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +1 -1
- package/overlaypanel/OverlayPanel.d.ts +1 -1
- package/overlaypanel/OverlayPanel.vue +4 -2
- package/overlaypanel/overlaypanel.cjs.js +4 -2
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +4 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +4 -2
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/JumpToPageDropdown.vue +1 -1
- package/paginator/Paginator.d.ts +1 -26
- package/paginator/paginator.cjs.js +1 -1
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +1 -1
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +2 -2
- package/panelmenu/PanelMenu.d.ts +1 -1
- package/password/Password.d.ts +1 -1
- package/picklist/BasePickList.vue +4 -4
- package/picklist/PickList.d.ts +22 -1
- package/picklist/PickList.vue +19 -19
- package/picklist/picklist.cjs.js +59 -47
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +59 -47
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +59 -47
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +1 -1
- package/progressspinner/ProgressSpinner.d.ts +1 -1
- package/radiobutton/RadioButton.d.ts +1 -1
- package/rating/Rating.d.ts +1 -1
- package/row/Row.d.ts +1 -1
- package/scrollpanel/ScrollPanel.d.ts +1 -1
- package/scrollpanel/ScrollPanel.vue +2 -0
- package/scrollpanel/scrollpanel.cjs.js +6 -2
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +6 -2
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +6 -2
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.d.ts +1 -1
- package/selectbutton/SelectButton.d.ts +1 -1
- package/sidebar/Sidebar.d.ts +1 -1
- package/sidebar/Sidebar.vue +1 -1
- package/sidebar/sidebar.cjs.js +3 -1
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +3 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +3 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +1 -1
- package/slider/Slider.d.ts +1 -1
- package/speeddial/SpeedDial.d.ts +1 -1
- package/splitbutton/SplitButton.d.ts +1 -1
- package/splitbutton/SplitButton.vue +2 -1
- package/splitbutton/splitbutton.cjs.js +4 -2
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +4 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +4 -2
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +1 -1
- package/splitterpanel/SplitterPanel.d.ts +1 -1
- package/steps/Steps.d.ts +1 -1
- package/tabmenu/TabMenu.d.ts +1 -1
- package/tabmenu/TabMenu.vue +71 -72
- package/tabmenu/tabmenu.cjs.js +67 -75
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +67 -75
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +67 -75
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +17 -1
- package/tabview/TabView.d.ts +6 -1
- package/tabview/TabView.vue +12 -4
- package/tabview/tabview.cjs.js +23 -16
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +23 -16
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +24 -17
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +1 -1
- package/terminal/Terminal.d.ts +1 -1
- package/textarea/Textarea.d.ts +18 -1
- package/textarea/Textarea.vue +8 -1
- package/textarea/textarea.cjs.js +8 -1
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +8 -1
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +8 -1
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +1 -1
- package/timeline/Timeline.d.ts +20 -1
- package/timeline/Timeline.vue +14 -6
- package/timeline/timeline.cjs.js +17 -7
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +17 -7
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +17 -7
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +2 -2
- package/toast/Toast.d.ts +11 -1
- package/toast/ToastMessage.vue +3 -2
- package/toast/toast.cjs.js +7 -6
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +7 -6
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +7 -6
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +1 -1
- package/toolbar/Toolbar.d.ts +1 -1
- package/tree/Tree.d.ts +10 -1
- package/tree/TreeNode.vue +3 -1
- package/tree/tree.cjs.js +3 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +3 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +3 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +1 -1
- package/treetable/BaseTreeTable.vue +9 -3
- package/treetable/BodyCell.vue +16 -5
- package/treetable/FooterCell.vue +5 -2
- package/treetable/HeaderCell.vue +11 -3
- package/treetable/TreeTable.d.ts +31 -9
- package/treetable/TreeTable.vue +13 -5
- package/treetable/TreeTableRow.vue +11 -2
- package/treetable/treetable.cjs.js +84 -55
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +85 -56
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +84 -55
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +1 -1
- package/usestyle/UseStyle.d.ts +1 -0
- package/usestyle/usestyle.cjs.js +12 -10
- package/usestyle/usestyle.cjs.min.js +1 -1
- package/usestyle/usestyle.esm.js +12 -10
- package/usestyle/usestyle.esm.min.js +1 -1
- package/usestyle/usestyle.js +12 -10
- package/usestyle/usestyle.min.js +1 -1
- package/utils/Utils.d.ts +4 -3
- package/utils/utils.cjs.js +19 -5
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +19 -5
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +19 -5
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +8 -0
- package/vetur-tags.json +2 -0
- package/virtualscroller/VirtualScroller.d.ts +1 -1
- package/web-types.json +21 -1
package/column/Column.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { DropdownPassThroughOptionType } from '../dropdown';
|
|
|
17
17
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
18
18
|
import { VirtualScrollerLoaderOptions } from '../virtualscroller';
|
|
19
19
|
|
|
20
|
-
export declare type ColumnPassThroughOptionType = ColumnPassThroughAttributes | ((options: ColumnPassThroughMethodOptions) => ColumnPassThroughAttributes) | null | undefined;
|
|
20
|
+
export declare type ColumnPassThroughOptionType = ColumnPassThroughAttributes | ((options: ColumnPassThroughMethodOptions) => ColumnPassThroughAttributes | string) | string | null | undefined;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Custom passthrough(pt) option method.
|
|
@@ -141,6 +141,10 @@ export interface ColumnPassThroughOptions {
|
|
|
141
141
|
* Uses to pass attributes to the filter menu button's DOM element.
|
|
142
142
|
*/
|
|
143
143
|
filterMenuButton?: ColumnPassThroughOptionType;
|
|
144
|
+
/**
|
|
145
|
+
* Uses to pass attributes to the filter menu icon's DOM element.
|
|
146
|
+
*/
|
|
147
|
+
filterMenuIcon?: ColumnPassThroughOptionType;
|
|
144
148
|
/**
|
|
145
149
|
* Uses to pass attributes to the header filter clear button's DOM element.
|
|
146
150
|
*/
|
|
@@ -594,6 +598,50 @@ export interface ColumnContext {
|
|
|
594
598
|
* @defaultValue false
|
|
595
599
|
*/
|
|
596
600
|
disabled: boolean;
|
|
601
|
+
/**
|
|
602
|
+
* Current sort state of the column as a boolean.
|
|
603
|
+
* @defaultValue false
|
|
604
|
+
*/
|
|
605
|
+
sorted: boolean;
|
|
606
|
+
/**
|
|
607
|
+
* Current frozen state of the column as a boolean.
|
|
608
|
+
* @defaultValue false
|
|
609
|
+
*/
|
|
610
|
+
frozen: boolean;
|
|
611
|
+
/**
|
|
612
|
+
* Current resizable state of the column as a boolean.
|
|
613
|
+
* @defaultValue false
|
|
614
|
+
*/
|
|
615
|
+
resizable: boolean;
|
|
616
|
+
/**
|
|
617
|
+
* Current size state of the table.
|
|
618
|
+
*/
|
|
619
|
+
size: string;
|
|
620
|
+
/**
|
|
621
|
+
* Current gridlines state of the table as a boolean.
|
|
622
|
+
* @defaultValue false
|
|
623
|
+
*/
|
|
624
|
+
showGridlines: boolean;
|
|
625
|
+
/**
|
|
626
|
+
* Current highlighted state of the filter row item as a boolean.
|
|
627
|
+
* @defaultValue false
|
|
628
|
+
*/
|
|
629
|
+
highlighted: boolean;
|
|
630
|
+
/**
|
|
631
|
+
* Current hidden state of the filter clear button of a column as a boolean.
|
|
632
|
+
* @defaultValue false
|
|
633
|
+
*/
|
|
634
|
+
hidden: boolean;
|
|
635
|
+
/**
|
|
636
|
+
* Current visible state of the filter menu of a column as a boolean.
|
|
637
|
+
* @defaultValue false
|
|
638
|
+
*/
|
|
639
|
+
overlayVisible: boolean;
|
|
640
|
+
/**
|
|
641
|
+
* Current active state of the filter menu of a column as a boolean.
|
|
642
|
+
* @defaultValue false
|
|
643
|
+
*/
|
|
644
|
+
active: boolean;
|
|
597
645
|
}
|
|
598
646
|
|
|
599
647
|
/**
|
|
@@ -9,7 +9,7 @@ import { ComponentHooks } from '../basecomponent';
|
|
|
9
9
|
import { DataTablePassThroughOptions } from '../datatable';
|
|
10
10
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
11
11
|
|
|
12
|
-
export declare type ColumnGroupPassThroughOptionType = ColumnGroupPassThroughAttributes | ((options: ColumnGroupPassThroughMethodOptions) => ColumnGroupPassThroughAttributes) | null | undefined;
|
|
12
|
+
export declare type ColumnGroupPassThroughOptionType = ColumnGroupPassThroughAttributes | ((options: ColumnGroupPassThroughMethodOptions) => ColumnGroupPassThroughAttributes | string) | string | null | undefined;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Custom passthrough(pt) option method.
|
|
@@ -72,6 +72,11 @@ export interface ColumnGroupContext {
|
|
|
72
72
|
* Current type of the column group.
|
|
73
73
|
*/
|
|
74
74
|
type: string;
|
|
75
|
+
/**
|
|
76
|
+
* Current scrollable state of column group as a boolean.
|
|
77
|
+
* @defaultValue false
|
|
78
|
+
*/
|
|
79
|
+
scrollable: boolean;
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
/**
|
package/config/PrimeVue.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ import { TreeTablePassThroughOptions } from '../treetable';
|
|
|
88
88
|
import { DefaultPTOptions } from '../ts-helpers';
|
|
89
89
|
import { VirtualScrollerPassThroughOptions } from '../virtualscroller';
|
|
90
90
|
|
|
91
|
-
interface PrimeVueConfiguration {
|
|
91
|
+
export interface PrimeVueConfiguration {
|
|
92
92
|
ripple?: boolean;
|
|
93
93
|
inputStyle?: string;
|
|
94
94
|
locale?: PrimeVueLocaleOptions;
|
|
@@ -98,14 +98,14 @@ interface PrimeVueConfiguration {
|
|
|
98
98
|
unstyled?: boolean;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
interface PrimeVueZIndexOptions {
|
|
101
|
+
export interface PrimeVueZIndexOptions {
|
|
102
102
|
modal?: number;
|
|
103
103
|
overlay?: number;
|
|
104
104
|
menu?: number;
|
|
105
105
|
tooltip?: number;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
interface PrimeVuePTOptions {
|
|
108
|
+
export interface PrimeVuePTOptions {
|
|
109
109
|
accordion?: DefaultPTOptions<AccordionPassThroughOptions>;
|
|
110
110
|
accordiontab?: DefaultPTOptions<AccordionTabPassThroughOptions>;
|
|
111
111
|
autocomplete?: DefaultPTOptions<AutoCompletePassThroughOptions>;
|
|
@@ -198,7 +198,7 @@ interface PrimeVuePTOptions {
|
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
interface PrimeVueLocaleAriaOptions {
|
|
201
|
+
export interface PrimeVueLocaleAriaOptions {
|
|
202
202
|
trueLabel?: string;
|
|
203
203
|
falseLabel?: string;
|
|
204
204
|
nullLabel?: string;
|
|
@@ -249,7 +249,7 @@ interface PrimeVueLocaleAriaOptions {
|
|
|
249
249
|
rotateLeft?: string;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
interface PrimeVueLocaleOptions {
|
|
252
|
+
export interface PrimeVueLocaleOptions {
|
|
253
253
|
startsWith?: string;
|
|
254
254
|
contains?: string;
|
|
255
255
|
notContains?: string;
|
|
@@ -317,7 +317,12 @@ interface PrimeVueLocaleOptions {
|
|
|
317
317
|
aria?: PrimeVueLocaleAriaOptions;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
export
|
|
320
|
+
export type PrimeVueChangeTheme = (currentTheme: string, newTheme: string, linkElementId: string, callback?: Function) => void;
|
|
321
|
+
|
|
322
|
+
export declare function usePrimeVue(): {
|
|
323
|
+
config: PrimeVueConfiguration;
|
|
324
|
+
changeTheme: PrimeVueChangeTheme;
|
|
325
|
+
};
|
|
321
326
|
|
|
322
327
|
declare const plugin: Plugin;
|
|
323
328
|
export default plugin;
|
|
@@ -326,6 +331,7 @@ declare module 'vue/types/vue' {
|
|
|
326
331
|
interface Vue {
|
|
327
332
|
$primevue: {
|
|
328
333
|
config: PrimeVueConfiguration;
|
|
334
|
+
changeTheme: PrimeVueChangeTheme;
|
|
329
335
|
};
|
|
330
336
|
}
|
|
331
337
|
}
|
|
@@ -334,6 +340,7 @@ declare module '@vue/runtime-core' {
|
|
|
334
340
|
interface ComponentCustomProperties {
|
|
335
341
|
$primevue: {
|
|
336
342
|
config: PrimeVueConfiguration;
|
|
343
|
+
changeTheme: PrimeVueChangeTheme;
|
|
337
344
|
};
|
|
338
345
|
}
|
|
339
346
|
}
|
|
@@ -13,7 +13,7 @@ import { ButtonPassThroughOptions } from '../button';
|
|
|
13
13
|
import { ConfirmationOptions } from '../confirmationoptions';
|
|
14
14
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
15
15
|
|
|
16
|
-
export declare type ConfirmDialogPassThroughOptionType = ConfirmDialogPassThroughAttributes | ((options: ConfirmDialogPassThroughMethodOptions) => ConfirmDialogPassThroughAttributes) | null | undefined;
|
|
16
|
+
export declare type ConfirmDialogPassThroughOptionType = ConfirmDialogPassThroughAttributes | ((options: ConfirmDialogPassThroughMethodOptions) => ConfirmDialogPassThroughAttributes | string) | string | null | undefined;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Custom passthrough(pt) option method.
|
|
@@ -13,7 +13,7 @@ import { ButtonPassThroughOptions } from '../button';
|
|
|
13
13
|
import { ConfirmationOptions } from '../confirmationoptions';
|
|
14
14
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
15
15
|
|
|
16
|
-
export declare type ConfirmPopupPassThroughOptionType = ConfirmPopupPassThroughAttributes | ((options: ConfirmPopupPassThroughMethodOptions) => ConfirmPopupPassThroughAttributes) | null | undefined;
|
|
16
|
+
export declare type ConfirmPopupPassThroughOptionType = ConfirmPopupPassThroughAttributes | ((options: ConfirmPopupPassThroughMethodOptions) => ConfirmPopupPassThroughAttributes | string) | string | null | undefined;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Custom passthrough(pt) option method.
|
|
@@ -13,7 +13,7 @@ import { ComponentHooks } from '../basecomponent';
|
|
|
13
13
|
import { MenuItem } from '../menuitem';
|
|
14
14
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
15
15
|
|
|
16
|
-
export declare type ContextMenuPassThroughOptionType = ContextMenuPassThroughAttributes | ((options: ContextMenuPassThroughMethodOptions) => ContextMenuPassThroughAttributes) | null | undefined;
|
|
16
|
+
export declare type ContextMenuPassThroughOptionType = ContextMenuPassThroughAttributes | ((options: ContextMenuPassThroughMethodOptions) => ContextMenuPassThroughAttributes | string) | string | null | undefined;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Custom passthrough(pt) option method.
|
package/core/core.js
CHANGED
|
@@ -866,10 +866,18 @@ this.primevue.utils = (function (exports) {
|
|
|
866
866
|
},
|
|
867
867
|
toFlatCase: function toFlatCase(str) {
|
|
868
868
|
// convert snake, kebab, camel and pascal cases to flat case
|
|
869
|
-
return this.
|
|
869
|
+
return this.isString(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
|
|
870
|
+
},
|
|
871
|
+
toKebabCase: function toKebabCase(str) {
|
|
872
|
+
// convert snake, camel and pascal cases to kebab case
|
|
873
|
+
return this.isString(str) ? str.replace(/(_)/g, '-').replace(/[A-Z]/g, function (c, i) {
|
|
874
|
+
return i === 0 ? c : '-' + c.toLowerCase();
|
|
875
|
+
}).toLowerCase() : str;
|
|
870
876
|
},
|
|
871
877
|
toCapitalCase: function toCapitalCase(str) {
|
|
872
|
-
return this.
|
|
878
|
+
return this.isString(str, {
|
|
879
|
+
empty: false
|
|
880
|
+
}) ? str[0].toUpperCase() + str.slice(1) : str;
|
|
873
881
|
},
|
|
874
882
|
isEmpty: function isEmpty(value) {
|
|
875
883
|
return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
|
|
@@ -881,13 +889,19 @@ this.primevue.utils = (function (exports) {
|
|
|
881
889
|
return !!(value && value.constructor && value.call && value.apply);
|
|
882
890
|
},
|
|
883
891
|
isObject: function isObject(value) {
|
|
884
|
-
|
|
892
|
+
var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
893
|
+
return value instanceof Object && value.constructor === Object && (empty || Object.keys(value).length !== 0);
|
|
885
894
|
},
|
|
886
895
|
isDate: function isDate(value) {
|
|
887
|
-
return value
|
|
896
|
+
return value instanceof Date && value.constructor === Date;
|
|
888
897
|
},
|
|
889
898
|
isArray: function isArray(value) {
|
|
890
|
-
|
|
899
|
+
var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
900
|
+
return Array.isArray(value) && (empty || value.length !== 0);
|
|
901
|
+
},
|
|
902
|
+
isString: function isString(value) {
|
|
903
|
+
var empty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
904
|
+
return typeof value === 'string' && (empty || value !== '');
|
|
891
905
|
},
|
|
892
906
|
isPrintableCharacter: function isPrintableCharacter() {
|
|
893
907
|
var _char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -1698,6 +1712,85 @@ this.primevue.config = (function (exports, api, vue) {
|
|
|
1698
1712
|
|
|
1699
1713
|
})({}, primevue.api, Vue);
|
|
1700
1714
|
|
|
1715
|
+
this.primevue = this.primevue || {};
|
|
1716
|
+
this.primevue.usestyle = (function (exports, utils, vue) {
|
|
1717
|
+
'use strict';
|
|
1718
|
+
|
|
1719
|
+
/*
|
|
1720
|
+
* Ported from useStyleTag in @vueuse/core
|
|
1721
|
+
* https://github.com/vueuse
|
|
1722
|
+
*/
|
|
1723
|
+
function tryOnMounted(fn) {
|
|
1724
|
+
var sync = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
1725
|
+
if (vue.getCurrentInstance()) vue.onMounted(fn);else if (sync) fn();else vue.nextTick(fn);
|
|
1726
|
+
}
|
|
1727
|
+
var _id = 0;
|
|
1728
|
+
function useStyle(css) {
|
|
1729
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1730
|
+
var isLoaded = vue.ref(false);
|
|
1731
|
+
var cssRef = vue.ref(css);
|
|
1732
|
+
var styleRef = vue.ref(null);
|
|
1733
|
+
var defaultDocument = utils.DomHandler.isClient() ? window.document : undefined;
|
|
1734
|
+
var _options$document = options.document,
|
|
1735
|
+
document = _options$document === void 0 ? defaultDocument : _options$document,
|
|
1736
|
+
_options$immediate = options.immediate,
|
|
1737
|
+
immediate = _options$immediate === void 0 ? true : _options$immediate,
|
|
1738
|
+
_options$manual = options.manual,
|
|
1739
|
+
manual = _options$manual === void 0 ? false : _options$manual,
|
|
1740
|
+
_options$name = options.name,
|
|
1741
|
+
name = _options$name === void 0 ? "style_".concat(++_id) : _options$name,
|
|
1742
|
+
_options$id = options.id,
|
|
1743
|
+
id = _options$id === void 0 ? undefined : _options$id,
|
|
1744
|
+
_options$media = options.media,
|
|
1745
|
+
media = _options$media === void 0 ? undefined : _options$media;
|
|
1746
|
+
var stop = function stop() {};
|
|
1747
|
+
var load = function load() {
|
|
1748
|
+
if (!document) return;
|
|
1749
|
+
styleRef.value = document.querySelector("style[data-primevue-style-id=\"".concat(name, "\"]")) || document.getElementById(id) || document.createElement('style');
|
|
1750
|
+
if (!styleRef.value.isConnected) {
|
|
1751
|
+
styleRef.value.type = 'text/css';
|
|
1752
|
+
id && (styleRef.value.id = id);
|
|
1753
|
+
media && (styleRef.value.media = media);
|
|
1754
|
+
document.head.appendChild(styleRef.value);
|
|
1755
|
+
name && styleRef.value.setAttribute('data-primevue-style-id', name);
|
|
1756
|
+
}
|
|
1757
|
+
if (isLoaded.value) return;
|
|
1758
|
+
stop = vue.watch(cssRef, function (value) {
|
|
1759
|
+
styleRef.value.textContent = value;
|
|
1760
|
+
}, {
|
|
1761
|
+
immediate: true
|
|
1762
|
+
});
|
|
1763
|
+
isLoaded.value = true;
|
|
1764
|
+
};
|
|
1765
|
+
var unload = function unload() {
|
|
1766
|
+
if (!document || !isLoaded.value) return;
|
|
1767
|
+
stop();
|
|
1768
|
+
utils.DomHandler.isExist(styleRef.value) && document.head.removeChild(styleRef.value);
|
|
1769
|
+
isLoaded.value = false;
|
|
1770
|
+
};
|
|
1771
|
+
if (immediate && !manual) tryOnMounted(load);
|
|
1772
|
+
|
|
1773
|
+
/*if (!manual)
|
|
1774
|
+
tryOnScopeDispose(unload)*/
|
|
1775
|
+
|
|
1776
|
+
return {
|
|
1777
|
+
id: id,
|
|
1778
|
+
name: name,
|
|
1779
|
+
css: cssRef,
|
|
1780
|
+
unload: unload,
|
|
1781
|
+
load: load,
|
|
1782
|
+
isLoaded: vue.readonly(isLoaded)
|
|
1783
|
+
};
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
exports.useStyle = useStyle;
|
|
1787
|
+
|
|
1788
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1789
|
+
|
|
1790
|
+
return exports;
|
|
1791
|
+
|
|
1792
|
+
})({}, primevue.utils, Vue);
|
|
1793
|
+
|
|
1701
1794
|
this.primevue = this.primevue || {};
|
|
1702
1795
|
this.primevue.base = (function (exports, usestyle) {
|
|
1703
1796
|
'use strict';
|
|
@@ -1756,9 +1849,15 @@ this.primevue.basedirective = (function (base, utils, vue) {
|
|
|
1756
1849
|
var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
1757
1850
|
var params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
1758
1851
|
var searchInDefaultPT = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
1852
|
+
var getValue = function getValue() {
|
|
1853
|
+
var value = BaseDirective._getOptionValue.apply(BaseDirective, arguments);
|
|
1854
|
+
return utils.ObjectUtils.isString(value) || utils.ObjectUtils.isArray(value) ? {
|
|
1855
|
+
"class": value
|
|
1856
|
+
} : value;
|
|
1857
|
+
};
|
|
1759
1858
|
var datasetPrefix = 'data-pc-';
|
|
1760
|
-
var self =
|
|
1761
|
-
var globalPT = searchInDefaultPT ?
|
|
1859
|
+
var self = getValue(obj, key, params);
|
|
1860
|
+
var globalPT = searchInDefaultPT ? getValue(instance.defaultPT, key, params) : undefined;
|
|
1762
1861
|
var merged = vue.mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key))));
|
|
1763
1862
|
return merged;
|
|
1764
1863
|
},
|
|
@@ -2055,11 +2154,11 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
|
|
|
2055
2154
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
2056
2155
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2057
2156
|
var inlineStyles = {};
|
|
2058
|
-
var buttonStyles = "\n.p-button {\n
|
|
2157
|
+
var buttonStyles = "\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-buttonset .p-button {\n margin: 0;\n}\n\n.p-buttonset .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-buttonset .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-buttonset .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-buttonset .p-button:focus {\n position: relative;\n z-index: 1;\n}\n";
|
|
2059
2158
|
var checkboxStyles = "\n.p-checkbox {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n position: relative;\n}\n\n.p-checkbox.p-checkbox-disabled {\n cursor: default;\n}\n\n.p-checkbox-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
|
|
2060
|
-
var inputTextStyles = "\n.p-
|
|
2159
|
+
var inputTextStyles = "\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label {\n top: -.75rem;\n font-size: 12px;\n}\n\n.p-float-label .input:-webkit-autofill ~ label {\n top: -20px;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > i,\n.p-input-icon-right > svg {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n";
|
|
2061
2160
|
var radioButtonStyles = "\n.p-radiobutton {\n position: relative;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n}\n\n.p-radiobutton.p-radiobutton-disabled {\n cursor: default;\n}\n\n.p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n}\n\n.p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\n}\n";
|
|
2062
|
-
var styles = "\n.p-component, .p-component * {\n box-sizing: border-box;\n}\n\n.p-hidden-space {\n visibility: hidden;\n}\n\n.p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n}\n\n.p-disabled, .p-disabled * {\n cursor: default !important;\n pointer-events: none;\n user-select: none;\n}\n\n.p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-unselectable-text {\n user-select: none;\n}\n\n.p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal !important;\n}\n\
|
|
2161
|
+
var styles = "\n.p-component, .p-component * {\n box-sizing: border-box;\n}\n\n.p-hidden-space {\n visibility: hidden;\n}\n\n.p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n}\n\n.p-disabled, .p-disabled * {\n cursor: default !important;\n pointer-events: none;\n user-select: none;\n}\n\n.p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-unselectable-text {\n user-select: none;\n}\n\n.p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal !important;\n}\n\n.p-link {\n\ttext-align: left;\n\tbackground-color: transparent;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: none;\n cursor: pointer;\n user-select: none;\n}\n\n.p-link:disabled {\n\tcursor: default;\n}\n\n/* Non vue overlay animations */\n.p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n}\n\n/* Vue based overlay animations */\n.p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n transition: opacity .1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n".concat(buttonStyles, "\n").concat(checkboxStyles, "\n").concat(inputTextStyles, "\n").concat(radioButtonStyles, "\n");
|
|
2063
2162
|
var _useStyle = usestyle.useStyle(styles, {
|
|
2064
2163
|
name: 'common',
|
|
2065
2164
|
manual: true
|
|
@@ -2140,13 +2239,20 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
|
|
|
2140
2239
|
}) || ''], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getItemValue(options, params);
|
|
2141
2240
|
},
|
|
2142
2241
|
_getPTValue: function _getPTValue() {
|
|
2242
|
+
var _this = this;
|
|
2143
2243
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2144
2244
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
2145
2245
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
2146
2246
|
var searchInDefaultPT = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
2247
|
+
var getValue = function getValue() {
|
|
2248
|
+
var value = _this._getOptionValue.apply(_this, arguments);
|
|
2249
|
+
return utils.ObjectUtils.isString(value) || utils.ObjectUtils.isArray(value) ? {
|
|
2250
|
+
"class": value
|
|
2251
|
+
} : value;
|
|
2252
|
+
};
|
|
2147
2253
|
var datasetPrefix = 'data-pc-';
|
|
2148
|
-
var self =
|
|
2149
|
-
var globalPT = searchInDefaultPT ? this.
|
|
2254
|
+
var self = getValue(obj, key, params);
|
|
2255
|
+
var globalPT = searchInDefaultPT ? /./g.test(key) && !!params[key.split('.')[0]] ? getValue(this.globalPT, key, params) : getValue(this.defaultPT, key, params) : undefined;
|
|
2150
2256
|
var merged = vue.mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(this.$.type.name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key))));
|
|
2151
2257
|
return merged;
|
|
2152
2258
|
/*
|
|
@@ -2205,10 +2311,15 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
|
|
|
2205
2311
|
}
|
|
2206
2312
|
},
|
|
2207
2313
|
computed: {
|
|
2314
|
+
globalPT: function globalPT() {
|
|
2315
|
+
return utils.ObjectUtils.getItemValue(this.$primevue.config.pt, {
|
|
2316
|
+
instance: this
|
|
2317
|
+
});
|
|
2318
|
+
},
|
|
2208
2319
|
defaultPT: function defaultPT() {
|
|
2209
2320
|
return this._getOptionValue(this.$primevue.config.pt, this.$options.hostName || this.$.type.name, {
|
|
2210
2321
|
instance: this
|
|
2211
|
-
});
|
|
2322
|
+
}) || this.globalPT;
|
|
2212
2323
|
},
|
|
2213
2324
|
isUnstyled: function isUnstyled() {
|
|
2214
2325
|
return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
|
|
@@ -5940,83 +6051,6 @@ this.primevue.usedialog = (function (exports, vue) {
|
|
|
5940
6051
|
|
|
5941
6052
|
})({}, Vue);
|
|
5942
6053
|
|
|
5943
|
-
this.primevue = this.primevue || {};
|
|
5944
|
-
this.primevue.usestyle = (function (exports, utils, vue) {
|
|
5945
|
-
'use strict';
|
|
5946
|
-
|
|
5947
|
-
/*
|
|
5948
|
-
* Ported from useStyleTag in @vueuse/core
|
|
5949
|
-
* https://github.com/vueuse
|
|
5950
|
-
*/
|
|
5951
|
-
function tryOnMounted(fn) {
|
|
5952
|
-
var sync = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
5953
|
-
if (vue.getCurrentInstance()) vue.onMounted(fn);else if (sync) fn();else vue.nextTick(fn);
|
|
5954
|
-
}
|
|
5955
|
-
var _id = 0;
|
|
5956
|
-
function useStyle(css) {
|
|
5957
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
5958
|
-
var isLoaded = vue.ref(false);
|
|
5959
|
-
var defaultDocument = utils.DomHandler.isClient() ? window.document : undefined;
|
|
5960
|
-
var _options$document = options.document,
|
|
5961
|
-
document = _options$document === void 0 ? defaultDocument : _options$document,
|
|
5962
|
-
_options$immediate = options.immediate,
|
|
5963
|
-
immediate = _options$immediate === void 0 ? true : _options$immediate,
|
|
5964
|
-
_options$manual = options.manual,
|
|
5965
|
-
manual = _options$manual === void 0 ? false : _options$manual,
|
|
5966
|
-
_options$name = options.name,
|
|
5967
|
-
name = _options$name === void 0 ? "style_".concat(++_id) : _options$name,
|
|
5968
|
-
_options$id = options.id,
|
|
5969
|
-
id = _options$id === void 0 ? undefined : _options$id,
|
|
5970
|
-
_options$media = options.media,
|
|
5971
|
-
media = _options$media === void 0 ? undefined : _options$media;
|
|
5972
|
-
var cssRef = vue.ref(css);
|
|
5973
|
-
var stop = function stop() {};
|
|
5974
|
-
var load = function load() {
|
|
5975
|
-
if (!document) return;
|
|
5976
|
-
var el = document.querySelector("style[data-primevue-style-id=\"".concat(name, "\"]")) || document.getElementById(id) || document.createElement('style');
|
|
5977
|
-
if (!el.isConnected) {
|
|
5978
|
-
el.type = 'text/css';
|
|
5979
|
-
id && (el.id = id);
|
|
5980
|
-
media && (el.media = media);
|
|
5981
|
-
document.head.appendChild(el);
|
|
5982
|
-
name && el.setAttribute('data-primevue-style-id', name);
|
|
5983
|
-
}
|
|
5984
|
-
if (isLoaded.value) return;
|
|
5985
|
-
stop = vue.watch(cssRef, function (value) {
|
|
5986
|
-
el.textContent = value;
|
|
5987
|
-
}, {
|
|
5988
|
-
immediate: true
|
|
5989
|
-
});
|
|
5990
|
-
isLoaded.value = true;
|
|
5991
|
-
};
|
|
5992
|
-
var unload = function unload() {
|
|
5993
|
-
if (!document || !isLoaded.value) return;
|
|
5994
|
-
stop();
|
|
5995
|
-
document.head.removeChild(document.getElementById(id));
|
|
5996
|
-
isLoaded.value = false;
|
|
5997
|
-
};
|
|
5998
|
-
if (immediate && !manual) tryOnMounted(load);
|
|
5999
|
-
|
|
6000
|
-
/*if (!manual)
|
|
6001
|
-
tryOnScopeDispose(unload)*/
|
|
6002
|
-
|
|
6003
|
-
return {
|
|
6004
|
-
id: id,
|
|
6005
|
-
css: cssRef,
|
|
6006
|
-
unload: unload,
|
|
6007
|
-
load: load,
|
|
6008
|
-
isLoaded: vue.readonly(isLoaded)
|
|
6009
|
-
};
|
|
6010
|
-
}
|
|
6011
|
-
|
|
6012
|
-
exports.useStyle = useStyle;
|
|
6013
|
-
|
|
6014
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6015
|
-
|
|
6016
|
-
return exports;
|
|
6017
|
-
|
|
6018
|
-
})({}, primevue.utils, Vue);
|
|
6019
|
-
|
|
6020
6054
|
this.primevue = this.primevue || {};
|
|
6021
6055
|
this.primevue.button = (function (Badge, SpinnerIcon, Ripple, BaseComponent, vue) {
|
|
6022
6056
|
'use strict';
|
|
@@ -6275,7 +6309,8 @@ this.primevue.inputtext = (function (BaseComponent, vue) {
|
|
|
6275
6309
|
ptmParams: function ptmParams() {
|
|
6276
6310
|
return {
|
|
6277
6311
|
context: {
|
|
6278
|
-
filled: this.filled
|
|
6312
|
+
filled: this.filled,
|
|
6313
|
+
disabled: this.$attrs.disabled || this.$attrs.disabled === ''
|
|
6279
6314
|
}
|
|
6280
6315
|
};
|
|
6281
6316
|
}
|
|
@@ -7485,8 +7520,8 @@ this.primevue.message = (function (CheckIcon, ExclamationTriangleIcon, InfoCircl
|
|
|
7485
7520
|
wrapper: 'p-message-wrapper',
|
|
7486
7521
|
icon: 'p-message-icon',
|
|
7487
7522
|
text: 'p-message-text',
|
|
7488
|
-
|
|
7489
|
-
|
|
7523
|
+
closeButton: 'p-message-close p-link',
|
|
7524
|
+
closeIcon: 'p-message-close-icon'
|
|
7490
7525
|
};
|
|
7491
7526
|
var _useStyle = usestyle.useStyle(styles, {
|
|
7492
7527
|
name: 'message',
|
|
@@ -7623,20 +7658,20 @@ this.primevue.message = (function (CheckIcon, ExclamationTriangleIcon, InfoCircl
|
|
|
7623
7658
|
"class": ["p-message-text", _ctx.cx('text')]
|
|
7624
7659
|
}, _ctx.ptm('text')), [vue.renderSlot(_ctx.$slots, "default")], 16), _ctx.closable ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
7625
7660
|
key: 0,
|
|
7626
|
-
"class": _ctx.cx('
|
|
7661
|
+
"class": _ctx.cx('closeButton'),
|
|
7627
7662
|
"aria-label": $options.closeAriaLabel,
|
|
7628
7663
|
type: "button",
|
|
7629
7664
|
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
7630
7665
|
return $options.close($event);
|
|
7631
7666
|
})
|
|
7632
|
-
}, _objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('button'))), [vue.renderSlot(_ctx.$slots, "closeicon", {}, function () {
|
|
7667
|
+
}, _objectSpread(_objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('button')), _ctx.ptm('closeButton'))), [vue.renderSlot(_ctx.$slots, "closeicon", {}, function () {
|
|
7633
7668
|
return [_ctx.closeIcon ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
|
|
7634
7669
|
key: 0,
|
|
7635
|
-
"class": [_ctx.cx('
|
|
7636
|
-
}, _ctx.ptm('buttonIcon')), null, 16)) : (vue.openBlock(), vue.createBlock(_component_TimesIcon, vue.mergeProps({
|
|
7670
|
+
"class": [_ctx.cx('closeIcon'), _ctx.closeIcon]
|
|
7671
|
+
}, _objectSpread(_objectSpread({}, _ctx.ptm('buttonIcon')), _ctx.ptm('closeIcon'))), null, 16)) : (vue.openBlock(), vue.createBlock(_component_TimesIcon, vue.mergeProps({
|
|
7637
7672
|
key: 1,
|
|
7638
|
-
"class": [_ctx.cx('
|
|
7639
|
-
}, _ctx.ptm('buttonIcon')), null, 16, ["class"]))];
|
|
7673
|
+
"class": [_ctx.cx('closeIcon'), _ctx.closeIcon]
|
|
7674
|
+
}, _objectSpread(_objectSpread({}, _ctx.ptm('buttonIcon')), _ctx.ptm('closeIcon'))), null, 16, ["class"]))];
|
|
7640
7675
|
})], 16, _hoisted_1)), [[_directive_ripple]]) : vue.createCommentVNode("", true)], 16)], 16), [[vue.vShow, $data.visible]])];
|
|
7641
7676
|
}),
|
|
7642
7677
|
_: 3
|
|
@@ -9645,7 +9680,9 @@ this.primevue.dialog = (function (FocusTrap, TimesIcon, WindowMaximizeIcon, Wind
|
|
|
9645
9680
|
}),
|
|
9646
9681
|
type: "button",
|
|
9647
9682
|
tabindex: _ctx.maximizable ? '0' : '-1'
|
|
9648
|
-
}, _ctx.ptm('maximizableButton')
|
|
9683
|
+
}, _ctx.ptm('maximizableButton'), {
|
|
9684
|
+
"data-pc-group-section": "headericon"
|
|
9685
|
+
}), [vue.renderSlot(_ctx.$slots, "maximizeicon", {
|
|
9649
9686
|
maximized: $data.maximized
|
|
9650
9687
|
}, function () {
|
|
9651
9688
|
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($options.maximizeIconComponent), vue.mergeProps({
|
|
@@ -9661,7 +9698,9 @@ this.primevue.dialog = (function (FocusTrap, TimesIcon, WindowMaximizeIcon, Wind
|
|
|
9661
9698
|
}),
|
|
9662
9699
|
"aria-label": $options.closeAriaLabel,
|
|
9663
9700
|
type: "button"
|
|
9664
|
-
}, _objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('closeButton'))
|
|
9701
|
+
}, _objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('closeButton')), {
|
|
9702
|
+
"data-pc-group-section": "headericon"
|
|
9703
|
+
}), [vue.renderSlot(_ctx.$slots, "closeicon", {}, function () {
|
|
9665
9704
|
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.closeIcon ? 'span' : 'TimesIcon'), vue.mergeProps({
|
|
9666
9705
|
"class": [_ctx.cx('closeButtonIcon'), _ctx.closeIcon]
|
|
9667
9706
|
}, _ctx.ptm('closeButtonIcon')), null, 16, ["class"]))];
|
|
@@ -9950,7 +9989,7 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
|
|
|
9950
9989
|
"class": vue.normalizeClass(_ctx.cx('jumpToPageDropdown')),
|
|
9951
9990
|
disabled: $props.disabled,
|
|
9952
9991
|
unstyled: _ctx.unstyled,
|
|
9953
|
-
pt: _ctx.ptm('
|
|
9992
|
+
pt: _ctx.ptm('jumpToPageDropdown'),
|
|
9954
9993
|
"data-pc-section": "jumptopagedropdown"
|
|
9955
9994
|
}, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
|
|
9956
9995
|
}
|
|
@@ -10801,9 +10840,11 @@ this.primevue.tree = (function (SearchIcon, SpinnerIcon, utils, BaseComponent, u
|
|
|
10801
10840
|
getPTOptions: function getPTOptions(key) {
|
|
10802
10841
|
return this.ptm(key, {
|
|
10803
10842
|
context: {
|
|
10843
|
+
index: this.index,
|
|
10804
10844
|
expanded: this.expanded,
|
|
10805
10845
|
selected: this.selected,
|
|
10806
|
-
checked: this.checked
|
|
10846
|
+
checked: this.checked,
|
|
10847
|
+
leaf: this.leaf
|
|
10807
10848
|
}
|
|
10808
10849
|
});
|
|
10809
10850
|
},
|