primevue 4.5.0 → 4.5.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.
Files changed (61) hide show
  1. package/blockui/BlockUI.vue +4 -4
  2. package/blockui/index.mjs +4 -4
  3. package/blockui/index.mjs.map +1 -1
  4. package/contextmenu/ContextMenuSub.vue +1 -1
  5. package/contextmenu/index.mjs +1 -1
  6. package/contextmenu/index.mjs.map +1 -1
  7. package/datatable/DataTable.vue +10 -8
  8. package/datatable/index.mjs +30 -23
  9. package/datatable/index.mjs.map +1 -1
  10. package/dialog/Dialog.vue +9 -25
  11. package/dialog/index.mjs +1 -1
  12. package/dialog/index.mjs.map +1 -1
  13. package/dialog/style/index.mjs +1 -1
  14. package/dialog/style/index.mjs.map +1 -1
  15. package/drawer/Drawer.vue +5 -13
  16. package/drawer/index.mjs +1 -1
  17. package/drawer/index.mjs.map +1 -1
  18. package/drawer/style/index.mjs +1 -1
  19. package/drawer/style/index.mjs.map +1 -1
  20. package/dynamicdialogoptions/index.d.ts +2 -2
  21. package/galleria/Galleria.vue +3 -2
  22. package/galleria/index.mjs +1 -1
  23. package/galleria/index.mjs.map +1 -1
  24. package/galleria/style/index.mjs +1 -1
  25. package/galleria/style/index.mjs.map +1 -1
  26. package/image/Image.vue +9 -5
  27. package/image/index.mjs +1 -1
  28. package/image/index.mjs.map +1 -1
  29. package/image/style/index.mjs +1 -1
  30. package/image/style/index.mjs.map +1 -1
  31. package/package.json +4 -4
  32. package/select/style/index.mjs +2 -1
  33. package/select/style/index.mjs.map +1 -1
  34. package/selectbutton/SelectButton.vue +1 -1
  35. package/selectbutton/index.mjs +1 -1
  36. package/selectbutton/index.mjs.map +1 -1
  37. package/speeddial/SpeedDial.vue +3 -3
  38. package/speeddial/index.mjs +13 -6
  39. package/speeddial/index.mjs.map +1 -1
  40. package/speeddial/style/index.mjs +1 -6
  41. package/speeddial/style/index.mjs.map +1 -1
  42. package/steppanel/StepPanel.vue +7 -0
  43. package/steppanel/index.mjs +8 -1
  44. package/steppanel/index.mjs.map +1 -1
  45. package/tieredmenu/TieredMenuSub.vue +1 -1
  46. package/tieredmenu/index.mjs +1 -1
  47. package/tieredmenu/index.mjs.map +1 -1
  48. package/tree/Tree.vue +3 -3
  49. package/tree/TreeNode.vue +1 -1
  50. package/tree/index.mjs +24 -17
  51. package/tree/index.mjs.map +1 -1
  52. package/treeselect/TreeSelect.vue +3 -3
  53. package/treeselect/index.mjs +4 -5
  54. package/treeselect/index.mjs.map +1 -1
  55. package/treetable/TreeTable.vue +8 -6
  56. package/treetable/index.mjs +24 -17
  57. package/treetable/index.mjs.map +1 -1
  58. package/treetable/style/index.mjs +1 -0
  59. package/treetable/style/index.mjs.map +1 -1
  60. package/umd/primevue.min.js +1 -1
  61. package/web-types.json +1 -1
package/tree/Tree.vue CHANGED
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <div :class="cx('root')" @dragover="onDragOver" @dragenter="onDragEnter" @dragleave="onDragLeave" @drop="onDrop" :data-p="containerDataP" v-bind="ptmi('root')">
3
- <template v-if="loading && loadingMode === 'mask'">
4
- <div :class="cx('mask')" v-bind="ptm('mask')">
3
+ <transition name="p-overlay-mask">
4
+ <div v-if="loading && loadingMode === 'mask'" :class="cx('mask')" v-bind="ptm('mask')">
5
5
  <slot name="loadingicon" :class="cx('loadingIcon')">
6
6
  <i v-if="loadingIcon" :class="[cx('loadingIcon'), 'pi-spin', loadingIcon]" v-bind="ptm('loadingIcon')" />
7
7
  <SpinnerIcon v-else spin :class="cx('loadingIcon')" v-bind="ptm('loadingIcon')" />
8
8
  </slot>
9
9
  </div>
10
- </template>
10
+ </transition>
11
11
  <IconField v-if="filter" :unstyled="unstyled" :pt="{ ...ptm('pcFilter'), ...ptm('pcFilterContainer') }" :class="cx('pcFilterContainer')">
12
12
  <InputText v-model="filterValue" autocomplete="off" :class="cx('pcFilterInput')" :placeholder="filterPlaceholder" :unstyled="unstyled" @keyup="onFilterKeyup" :pt="ptm('pcFilterInput')" />
13
13
  <InputIcon :unstyled="unstyled" :pt="ptm('pcFilterIconContainer')">
package/tree/TreeNode.vue CHANGED
@@ -125,7 +125,7 @@ export default {
125
125
  default: null
126
126
  },
127
127
  rootNodes: {
128
- type: Array,
128
+ type: Object,
129
129
  default: null
130
130
  },
131
131
  expandedKeys: {
package/tree/index.mjs CHANGED
@@ -7,7 +7,7 @@ import InputIcon from 'primevue/inputicon';
7
7
  import InputText from 'primevue/inputtext';
8
8
  import BaseComponent from '@primevue/core/basecomponent';
9
9
  import TreeStyle from 'primevue/tree/style';
10
- import { reactive, resolveComponent, resolveDirective, createElementBlock, openBlock, mergeProps, createCommentVNode, createElementVNode, normalizeClass, withDirectives, createBlock, Fragment, resolveDynamicComponent, withCtx, withModifiers, createTextVNode, toDisplayString, renderList, renderSlot, createVNode } from 'vue';
10
+ import { reactive, resolveComponent, resolveDirective, createElementBlock, openBlock, mergeProps, createCommentVNode, createElementVNode, normalizeClass, withDirectives, createBlock, Fragment, resolveDynamicComponent, withCtx, withModifiers, createTextVNode, toDisplayString, renderList, createVNode, Transition, renderSlot } from 'vue';
11
11
  import CheckIcon from '@primevue/icons/check';
12
12
  import ChevronDownIcon from '@primevue/icons/chevrondown';
13
13
  import ChevronRightIcon from '@primevue/icons/chevronright';
@@ -194,7 +194,7 @@ var script$1 = {
194
194
  "default": null
195
195
  },
196
196
  rootNodes: {
197
- type: Array,
197
+ type: Object,
198
198
  "default": null
199
199
  },
200
200
  expandedKeys: {
@@ -1463,22 +1463,29 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1463
1463
  return $options.onDrop && $options.onDrop.apply($options, arguments);
1464
1464
  }),
1465
1465
  "data-p": $options.containerDataP
1466
- }, _ctx.ptmi('root')), [_ctx.loading && _ctx.loadingMode === 'mask' ? (openBlock(), createElementBlock("div", mergeProps({
1466
+ }, _ctx.ptmi('root')), [createVNode(Transition, {
1467
+ name: "p-overlay-mask"
1468
+ }, {
1469
+ "default": withCtx(function () {
1470
+ return [_ctx.loading && _ctx.loadingMode === 'mask' ? (openBlock(), createElementBlock("div", mergeProps({
1471
+ key: 0,
1472
+ "class": _ctx.cx('mask')
1473
+ }, _ctx.ptm('mask')), [renderSlot(_ctx.$slots, "loadingicon", {
1474
+ "class": normalizeClass(_ctx.cx('loadingIcon'))
1475
+ }, function () {
1476
+ return [_ctx.loadingIcon ? (openBlock(), createElementBlock("i", mergeProps({
1477
+ key: 0,
1478
+ "class": [_ctx.cx('loadingIcon'), 'pi-spin', _ctx.loadingIcon]
1479
+ }, _ctx.ptm('loadingIcon')), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
1480
+ key: 1,
1481
+ spin: "",
1482
+ "class": _ctx.cx('loadingIcon')
1483
+ }, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
1484
+ })], 16)) : createCommentVNode("", true)];
1485
+ }),
1486
+ _: 3
1487
+ }), _ctx.filter ? (openBlock(), createBlock(_component_IconField, {
1467
1488
  key: 0,
1468
- "class": _ctx.cx('mask')
1469
- }, _ctx.ptm('mask')), [renderSlot(_ctx.$slots, "loadingicon", {
1470
- "class": normalizeClass(_ctx.cx('loadingIcon'))
1471
- }, function () {
1472
- return [_ctx.loadingIcon ? (openBlock(), createElementBlock("i", mergeProps({
1473
- key: 0,
1474
- "class": [_ctx.cx('loadingIcon'), 'pi-spin', _ctx.loadingIcon]
1475
- }, _ctx.ptm('loadingIcon')), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
1476
- key: 1,
1477
- spin: "",
1478
- "class": _ctx.cx('loadingIcon')
1479
- }, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
1480
- })], 16)) : createCommentVNode("", true), _ctx.filter ? (openBlock(), createBlock(_component_IconField, {
1481
- key: 1,
1482
1489
  unstyled: _ctx.unstyled,
1483
1490
  pt: _objectSpread(_objectSpread({}, _ctx.ptm('pcFilter')), _ctx.ptm('pcFilterContainer')),
1484
1491
  "class": normalizeClass(_ctx.cx('pcFilterContainer'))