@onereach/ui-components-vue2 19.5.0 → 19.6.0

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.
@@ -15,6 +15,7 @@ import { DataGrid } from './styles.js';
15
15
  import __vue_component__$D from '../OrPaginationV3/OrPagination.js';
16
16
  import __vue_component__$E from '../OrSearchV3/OrSearch.js';
17
17
  import __vue_component__$F from '../OrSkeletonTextV3/OrSkeletonText.js';
18
+ import __vue_component__$G from '../OrNotificationV3/OrNotification.js';
18
19
 
19
20
  const DataGridFooter = [
20
21
  // Layout
@@ -1283,7 +1284,8 @@ var script = defineComponent({
1283
1284
  OrDataGridToolbar: __vue_component__$2,
1284
1285
  OrPagination: __vue_component__$D,
1285
1286
  OrSearch: __vue_component__$E,
1286
- OrSkeletonText: __vue_component__$F
1287
+ OrSkeletonText: __vue_component__$F,
1288
+ OrNotification: __vue_component__$G
1287
1289
  },
1288
1290
  model: {
1289
1291
  prop: 'modelValue',
@@ -1313,9 +1315,13 @@ var script = defineComponent({
1313
1315
  loading: {
1314
1316
  type: Boolean,
1315
1317
  default: false
1318
+ },
1319
+ notification: {
1320
+ type: Object,
1321
+ default: undefined
1316
1322
  }
1317
1323
  },
1318
- emits: ['update:modelValue', 'update:item'],
1324
+ emits: ['update:modelValue', 'update:item', 'close-notification'],
1319
1325
  expose: ['root'],
1320
1326
  setup(props, context) {
1321
1327
  // Refs & Styles
@@ -1561,7 +1567,16 @@ var __vue_render__ = function () {
1561
1567
  expression: "sortingModel"
1562
1568
  }
1563
1569
  }, [_vm._v("\n " + _vm._s(column.label) + "\n ")]);
1564
- })], 2)], 1), _vm._v(" "), _c('OrDataGridTableContent', [_vm.loading ? _vm._l(10, function (n) {
1570
+ })], 2)], 1), _vm._v(" "), _vm.notification ? [_c('div', {
1571
+ staticClass: "grid col-span-full"
1572
+ }, [_c('OrNotification', _vm._b({
1573
+ staticClass: "rounded-0",
1574
+ on: {
1575
+ "close": function ($event) {
1576
+ return _vm.$emit('close-notification');
1577
+ }
1578
+ }
1579
+ }, 'OrNotification', _vm.notification, false), [_vm.$slots['notification'] ? [_vm._t('notification')] : _vm._e()], 2)], 1)] : _vm._e(), _vm._v(" "), _c('OrDataGridTableContent', [_vm.loading ? _vm._l(10, function (n) {
1565
1580
  return _c('OrDataGridTableContentRow', {
1566
1581
  key: n,
1567
1582
  attrs: {
@@ -1646,7 +1661,7 @@ var __vue_render__ = function () {
1646
1661
  attrs: {
1647
1662
  "variant": _vm.variant
1648
1663
  }
1649
- }, [_vm._t('empty')], 2)] : _vm._e()], 2)], 1), _vm._v(" "), _vm.$slots['extra-row'] ? [_c('OrDataGridTableFooter', [_c('OrDataGridTableFooterRow', {
1664
+ }, [_vm._t('empty')], 2)] : _vm._e()], 2)], 2), _vm._v(" "), _vm.$slots['extra-row'] ? [_c('OrDataGridTableFooter', [_c('OrDataGridTableFooterRow', {
1650
1665
  class: ['shrink-0'],
1651
1666
  attrs: {
1652
1667
  "variant": _vm.variant
@@ -20,6 +20,10 @@ var script = defineComponent({
20
20
  disableClose: {
21
21
  type: Boolean,
22
22
  default: false
23
+ },
24
+ message: {
25
+ type: String,
26
+ default: undefined
23
27
  }
24
28
  },
25
29
  expose: ['root'],
@@ -67,7 +71,9 @@ var __vue_render__ = function () {
67
71
  class: ['mt-[2px] md:mt-[2.5px]']
68
72
  }, [_c('OrIndicator', _vm._b({}, 'OrIndicator', _vm.indicatorProps, false))], 1), _vm._v(" "), _c('div', {
69
73
  class: ['grow']
70
- }, [_vm._t("default")], 2), _vm._v(" "), _c('div', {
74
+ }, [_vm._t("default", function () {
75
+ return [_vm._v(" " + _vm._s(_vm.message) + " ")];
76
+ })], 2), _vm._v(" "), _c('div', {
71
77
  class: ['mt-[2px] md:mt-[2.5px]']
72
78
  }, [!_vm.disableClose ? _c('OrIconButton', {
73
79
  attrs: {