@onereach/ui-components-vue2 20.3.0 → 20.4.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.
@@ -11,10 +11,10 @@ import { OrTagInputV3 as OrTagInput } from '../or-tag-input-v3/index.js';
11
11
  import { OrTimePickerV3 as OrTimePicker } from '../or-time-picker-v3/index.js';
12
12
  import { useElementSize } from '@vueuse/core';
13
13
  import { OrIconV3 as OrIcon } from '../or-icon-v3/index.js';
14
+ import { OrNotificationV3 as OrNotification } from '../or-notification-v3/index.js';
14
15
  import { OrPaginationV3 as OrPagination } from '../or-pagination-v3/index.js';
15
16
  import { OrSearchV3 as OrSearch } from '../or-search-v3/index.js';
16
17
  import { O as OrSkeletonText } from '../../OrSkeletonText-32afddae.js';
17
- import { OrNotificationV3 as OrNotification } from '../or-notification-v3/index.js';
18
18
  import '../../useValidationAttributes-w0RCHARs-21132c84.js';
19
19
  import '../../dom-DzNS5tBj-6d9cf0ef.js';
20
20
  import 'lodash/get';
@@ -52,8 +52,8 @@ import '../../searchItemsByLabel-CPGAoUEr-0aa65960.js';
52
52
  import '../or-tags-v3/index.js';
53
53
  import '../or-tag-v3/index.js';
54
54
  import '../or-expansion-panel-v3/index.js';
55
- import 'lodash/range';
56
55
  import '../or-indicator-v3/index.js';
56
+ import 'lodash/range';
57
57
 
58
58
  const DataGridFooter = [
59
59
  // Layout
@@ -70,7 +70,7 @@ const DataGridFooterStatus = [
70
70
  // Typography
71
71
  'typography-body-2-semibold'];
72
72
 
73
- var script$e = defineComponent({
73
+ var script$f = defineComponent({
74
74
  name: 'OrDataGridFooter',
75
75
  expose: ['root'],
76
76
  setup() {
@@ -87,10 +87,10 @@ var script$e = defineComponent({
87
87
  });
88
88
 
89
89
  /* script */
90
- const __vue_script__$e = script$e;
90
+ const __vue_script__$f = script$f;
91
91
 
92
92
  /* template */
93
- var __vue_render__$e = function () {
93
+ var __vue_render__$f = function () {
94
94
  var _vm = this;
95
95
  var _h = _vm.$createElement;
96
96
  var _c = _vm._self._c || _h;
@@ -103,27 +103,27 @@ var __vue_render__$e = function () {
103
103
  class: ['grow']
104
104
  })] : _vm._e(), _vm._v(" "), _vm._t('paging')], 2);
105
105
  };
106
- var __vue_staticRenderFns__$e = [];
106
+ var __vue_staticRenderFns__$f = [];
107
107
 
108
108
  /* style */
109
- const __vue_inject_styles__$e = undefined;
109
+ const __vue_inject_styles__$f = undefined;
110
110
  /* scoped */
111
- const __vue_scope_id__$e = undefined;
111
+ const __vue_scope_id__$f = undefined;
112
112
  /* module identifier */
113
- const __vue_module_identifier__$e = undefined;
113
+ const __vue_module_identifier__$f = undefined;
114
114
  /* functional template */
115
- const __vue_is_functional_template__$e = false;
115
+ const __vue_is_functional_template__$f = false;
116
116
  /* style inject */
117
117
 
118
118
  /* style inject SSR */
119
119
 
120
120
  /* style inject shadow dom */
121
121
 
122
- const __vue_component__$s = /*#__PURE__*/normalizeComponent({
123
- render: __vue_render__$e,
124
- staticRenderFns: __vue_staticRenderFns__$e
125
- }, __vue_inject_styles__$e, __vue_script__$e, __vue_scope_id__$e, __vue_is_functional_template__$e, __vue_module_identifier__$e, false, undefined, undefined, undefined);
126
- var __vue_component__$t = __vue_component__$s;
122
+ const __vue_component__$u = /*#__PURE__*/normalizeComponent({
123
+ render: __vue_render__$f,
124
+ staticRenderFns: __vue_staticRenderFns__$f
125
+ }, __vue_inject_styles__$f, __vue_script__$f, __vue_scope_id__$f, __vue_is_functional_template__$f, __vue_module_identifier__$f, false, undefined, undefined, undefined);
126
+ var __vue_component__$v = __vue_component__$u;
127
127
 
128
128
  const DataGridHeader = [
129
129
  // Layout
@@ -136,7 +136,7 @@ const DataGridHeaderTitle = [
136
136
  // Typography
137
137
  'typography-headline-2'];
138
138
 
139
- var script$d = defineComponent({
139
+ var script$e = defineComponent({
140
140
  name: 'OrDataGridHeader',
141
141
  expose: ['root'],
142
142
  setup() {
@@ -153,10 +153,10 @@ var script$d = defineComponent({
153
153
  });
154
154
 
155
155
  /* script */
156
- const __vue_script__$d = script$d;
156
+ const __vue_script__$e = script$e;
157
157
 
158
158
  /* template */
159
- var __vue_render__$d = function () {
159
+ var __vue_render__$e = function () {
160
160
  var _vm = this;
161
161
  var _h = _vm.$createElement;
162
162
  var _c = _vm._self._c || _h;
@@ -169,27 +169,27 @@ var __vue_render__$d = function () {
169
169
  class: ['grow']
170
170
  })] : _vm._e(), _vm._v(" "), _vm._t('searching')], 2);
171
171
  };
172
- var __vue_staticRenderFns__$d = [];
172
+ var __vue_staticRenderFns__$e = [];
173
173
 
174
174
  /* style */
175
- const __vue_inject_styles__$d = undefined;
175
+ const __vue_inject_styles__$e = undefined;
176
176
  /* scoped */
177
- const __vue_scope_id__$d = undefined;
177
+ const __vue_scope_id__$e = undefined;
178
178
  /* module identifier */
179
- const __vue_module_identifier__$d = undefined;
179
+ const __vue_module_identifier__$e = undefined;
180
180
  /* functional template */
181
- const __vue_is_functional_template__$d = false;
181
+ const __vue_is_functional_template__$e = false;
182
182
  /* style inject */
183
183
 
184
184
  /* style inject SSR */
185
185
 
186
186
  /* style inject shadow dom */
187
187
 
188
- const __vue_component__$q = /*#__PURE__*/normalizeComponent({
189
- render: __vue_render__$d,
190
- staticRenderFns: __vue_staticRenderFns__$d
191
- }, __vue_inject_styles__$d, __vue_script__$d, __vue_scope_id__$d, __vue_is_functional_template__$d, __vue_module_identifier__$d, false, undefined, undefined, undefined);
192
- var __vue_component__$r = __vue_component__$q;
188
+ const __vue_component__$s = /*#__PURE__*/normalizeComponent({
189
+ render: __vue_render__$e,
190
+ staticRenderFns: __vue_staticRenderFns__$e
191
+ }, __vue_inject_styles__$e, __vue_script__$e, __vue_scope_id__$e, __vue_is_functional_template__$e, __vue_module_identifier__$e, false, undefined, undefined, undefined);
192
+ var __vue_component__$t = __vue_component__$s;
193
193
 
194
194
  const DataGridTableContentCell = [
195
195
  // Layout
@@ -205,7 +205,7 @@ const DataGridTableContentCell = [
205
205
  // Theme (.sticky-end)
206
206
  '[&.sticky-end]:border-s-disabled', 'dark:[&.sticky-end]:border-s-disabled-dark'];
207
207
 
208
- var script$c = defineComponent({
208
+ var script$d = defineComponent({
209
209
  name: 'OrDataGridTableContentCell',
210
210
  components: {
211
211
  OrCheckbox,
@@ -299,10 +299,10 @@ var script$c = defineComponent({
299
299
  });
300
300
 
301
301
  /* script */
302
- const __vue_script__$c = script$c;
302
+ const __vue_script__$d = script$d;
303
303
 
304
304
  /* template */
305
- var __vue_render__$c = function () {
305
+ var __vue_render__$d = function () {
306
306
  var _vm = this;
307
307
  var _h = _vm.$createElement;
308
308
  var _c = _vm._self._c || _h;
@@ -422,27 +422,27 @@ var __vue_render__$c = function () {
422
422
  class: ['truncate']
423
423
  }, [_vm._t("default")], 2)]], 2);
424
424
  };
425
- var __vue_staticRenderFns__$c = [];
425
+ var __vue_staticRenderFns__$d = [];
426
426
 
427
427
  /* style */
428
- const __vue_inject_styles__$c = undefined;
428
+ const __vue_inject_styles__$d = undefined;
429
429
  /* scoped */
430
- const __vue_scope_id__$c = undefined;
430
+ const __vue_scope_id__$d = undefined;
431
431
  /* module identifier */
432
- const __vue_module_identifier__$c = undefined;
432
+ const __vue_module_identifier__$d = undefined;
433
433
  /* functional template */
434
- const __vue_is_functional_template__$c = false;
434
+ const __vue_is_functional_template__$d = false;
435
435
  /* style inject */
436
436
 
437
437
  /* style inject SSR */
438
438
 
439
439
  /* style inject shadow dom */
440
440
 
441
- const __vue_component__$o = /*#__PURE__*/normalizeComponent({
442
- render: __vue_render__$c,
443
- staticRenderFns: __vue_staticRenderFns__$c
444
- }, __vue_inject_styles__$c, __vue_script__$c, __vue_scope_id__$c, __vue_is_functional_template__$c, __vue_module_identifier__$c, false, undefined, undefined, undefined);
445
- var __vue_component__$p = __vue_component__$o;
441
+ const __vue_component__$q = /*#__PURE__*/normalizeComponent({
442
+ render: __vue_render__$d,
443
+ staticRenderFns: __vue_staticRenderFns__$d
444
+ }, __vue_inject_styles__$d, __vue_script__$d, __vue_scope_id__$d, __vue_is_functional_template__$d, __vue_module_identifier__$d, false, undefined, undefined, undefined);
445
+ var __vue_component__$r = __vue_component__$q;
446
446
 
447
447
  var DataGridVariant;
448
448
  (function (DataGridVariant) {
@@ -478,7 +478,7 @@ const DataGridTableContentRowVariants = {
478
478
  'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
479
479
  };
480
480
 
481
- var script$b = defineComponent({
481
+ var script$c = defineComponent({
482
482
  name: 'OrDataGridTableContentRow',
483
483
  props: {
484
484
  variant: {
@@ -488,13 +488,17 @@ var script$b = defineComponent({
488
488
  selected: {
489
489
  type: Boolean,
490
490
  default: false
491
+ },
492
+ interactive: {
493
+ type: Boolean,
494
+ default: false
491
495
  }
492
496
  },
493
497
  expose: ['root'],
494
498
  setup(props) {
495
499
  // Refs & Styles
496
500
  const root = ref();
497
- const rootStyles = computed(() => ['or-data-grid-table-content-row-v3', ...DataGridTableContentRow, ...DataGridTableContentRowVariants[props.variant]]);
501
+ const rootStyles = computed(() => ['or-data-grid-table-content-row-v3', ...DataGridTableContentRow, ...DataGridTableContentRowVariants[props.variant], ...(props.interactive ? ['cursor-pointer'] : [])]);
498
502
  return {
499
503
  root,
500
504
  rootStyles
@@ -503,10 +507,10 @@ var script$b = defineComponent({
503
507
  });
504
508
 
505
509
  /* script */
506
- const __vue_script__$b = script$b;
510
+ const __vue_script__$c = script$c;
507
511
 
508
512
  /* template */
509
- var __vue_render__$b = function () {
513
+ var __vue_render__$c = function () {
510
514
  var _vm = this;
511
515
  var _h = _vm.$createElement;
512
516
  var _c = _vm._self._c || _h;
@@ -518,33 +522,33 @@ var __vue_render__$b = function () {
518
522
  }
519
523
  }, [_vm._t("default")], 2);
520
524
  };
521
- var __vue_staticRenderFns__$b = [];
525
+ var __vue_staticRenderFns__$c = [];
522
526
 
523
527
  /* style */
524
- const __vue_inject_styles__$b = undefined;
528
+ const __vue_inject_styles__$c = undefined;
525
529
  /* scoped */
526
- const __vue_scope_id__$b = undefined;
530
+ const __vue_scope_id__$c = undefined;
527
531
  /* module identifier */
528
- const __vue_module_identifier__$b = undefined;
532
+ const __vue_module_identifier__$c = undefined;
529
533
  /* functional template */
530
- const __vue_is_functional_template__$b = false;
534
+ const __vue_is_functional_template__$c = false;
531
535
  /* style inject */
532
536
 
533
537
  /* style inject SSR */
534
538
 
535
539
  /* style inject shadow dom */
536
540
 
537
- const __vue_component__$m = /*#__PURE__*/normalizeComponent({
538
- render: __vue_render__$b,
539
- staticRenderFns: __vue_staticRenderFns__$b
540
- }, __vue_inject_styles__$b, __vue_script__$b, __vue_scope_id__$b, __vue_is_functional_template__$b, __vue_module_identifier__$b, false, undefined, undefined, undefined);
541
- var __vue_component__$n = __vue_component__$m;
541
+ const __vue_component__$o = /*#__PURE__*/normalizeComponent({
542
+ render: __vue_render__$c,
543
+ staticRenderFns: __vue_staticRenderFns__$c
544
+ }, __vue_inject_styles__$c, __vue_script__$c, __vue_scope_id__$c, __vue_is_functional_template__$c, __vue_module_identifier__$c, false, undefined, undefined, undefined);
545
+ var __vue_component__$p = __vue_component__$o;
542
546
 
543
547
  const DataGridTableContent = [
544
548
  // Layout
545
549
  'contents'];
546
550
 
547
- var script$a = defineComponent({
551
+ var script$b = defineComponent({
548
552
  name: 'OrDataGridTableContent',
549
553
  expose: ['root'],
550
554
  setup() {
@@ -559,10 +563,10 @@ var script$a = defineComponent({
559
563
  });
560
564
 
561
565
  /* script */
562
- const __vue_script__$a = script$a;
566
+ const __vue_script__$b = script$b;
563
567
 
564
568
  /* template */
565
- var __vue_render__$a = function () {
569
+ var __vue_render__$b = function () {
566
570
  var _vm = this;
567
571
  var _h = _vm.$createElement;
568
572
  var _c = _vm._self._c || _h;
@@ -571,27 +575,27 @@ var __vue_render__$a = function () {
571
575
  class: _vm.rootStyles
572
576
  }, [_vm._t("default")], 2);
573
577
  };
574
- var __vue_staticRenderFns__$a = [];
578
+ var __vue_staticRenderFns__$b = [];
575
579
 
576
580
  /* style */
577
- const __vue_inject_styles__$a = undefined;
581
+ const __vue_inject_styles__$b = undefined;
578
582
  /* scoped */
579
- const __vue_scope_id__$a = undefined;
583
+ const __vue_scope_id__$b = undefined;
580
584
  /* module identifier */
581
- const __vue_module_identifier__$a = undefined;
585
+ const __vue_module_identifier__$b = undefined;
582
586
  /* functional template */
583
- const __vue_is_functional_template__$a = false;
587
+ const __vue_is_functional_template__$b = false;
584
588
  /* style inject */
585
589
 
586
590
  /* style inject SSR */
587
591
 
588
592
  /* style inject shadow dom */
589
593
 
590
- const __vue_component__$k = /*#__PURE__*/normalizeComponent({
591
- render: __vue_render__$a,
592
- staticRenderFns: __vue_staticRenderFns__$a
593
- }, __vue_inject_styles__$a, __vue_script__$a, __vue_scope_id__$a, __vue_is_functional_template__$a, __vue_module_identifier__$a, false, undefined, undefined, undefined);
594
- var __vue_component__$l = __vue_component__$k;
594
+ const __vue_component__$m = /*#__PURE__*/normalizeComponent({
595
+ render: __vue_render__$b,
596
+ staticRenderFns: __vue_staticRenderFns__$b
597
+ }, __vue_inject_styles__$b, __vue_script__$b, __vue_scope_id__$b, __vue_is_functional_template__$b, __vue_module_identifier__$b, false, undefined, undefined, undefined);
598
+ var __vue_component__$n = __vue_component__$m;
595
599
 
596
600
  const DataGridTableFooterCell = [
597
601
  // Layout
@@ -601,7 +605,7 @@ const DataGridTableFooterCell = [
601
605
  // Theme
602
606
  'theme-border-transparent border-1', 'dark:theme-border-transparent-dark'];
603
607
 
604
- var script$9 = defineComponent({
608
+ var script$a = defineComponent({
605
609
  name: 'OrDataGridTableFooterCell',
606
610
  expose: ['root'],
607
611
  setup() {
@@ -616,10 +620,10 @@ var script$9 = defineComponent({
616
620
  });
617
621
 
618
622
  /* script */
619
- const __vue_script__$9 = script$9;
623
+ const __vue_script__$a = script$a;
620
624
 
621
625
  /* template */
622
- var __vue_render__$9 = function () {
626
+ var __vue_render__$a = function () {
623
627
  var _vm = this;
624
628
  var _h = _vm.$createElement;
625
629
  var _c = _vm._self._c || _h;
@@ -628,27 +632,27 @@ var __vue_render__$9 = function () {
628
632
  class: _vm.rootStyles
629
633
  }, [_vm._t("default")], 2);
630
634
  };
631
- var __vue_staticRenderFns__$9 = [];
635
+ var __vue_staticRenderFns__$a = [];
632
636
 
633
637
  /* style */
634
- const __vue_inject_styles__$9 = undefined;
638
+ const __vue_inject_styles__$a = undefined;
635
639
  /* scoped */
636
- const __vue_scope_id__$9 = undefined;
640
+ const __vue_scope_id__$a = undefined;
637
641
  /* module identifier */
638
- const __vue_module_identifier__$9 = undefined;
642
+ const __vue_module_identifier__$a = undefined;
639
643
  /* functional template */
640
- const __vue_is_functional_template__$9 = false;
644
+ const __vue_is_functional_template__$a = false;
641
645
  /* style inject */
642
646
 
643
647
  /* style inject SSR */
644
648
 
645
649
  /* style inject shadow dom */
646
650
 
647
- const __vue_component__$i = /*#__PURE__*/normalizeComponent({
648
- render: __vue_render__$9,
649
- staticRenderFns: __vue_staticRenderFns__$9
650
- }, __vue_inject_styles__$9, __vue_script__$9, __vue_scope_id__$9, __vue_is_functional_template__$9, __vue_module_identifier__$9, false, undefined, undefined, undefined);
651
- var __vue_component__$j = __vue_component__$i;
651
+ const __vue_component__$k = /*#__PURE__*/normalizeComponent({
652
+ render: __vue_render__$a,
653
+ staticRenderFns: __vue_staticRenderFns__$a
654
+ }, __vue_inject_styles__$a, __vue_script__$a, __vue_scope_id__$a, __vue_is_functional_template__$a, __vue_module_identifier__$a, false, undefined, undefined, undefined);
655
+ var __vue_component__$l = __vue_component__$k;
652
656
 
653
657
  const DataGridTableFooterRow = [
654
658
  // Layout
@@ -671,7 +675,7 @@ const DataGridTableFooterRowVariants = {
671
675
  'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
672
676
  };
673
677
 
674
- var script$8 = defineComponent({
678
+ var script$9 = defineComponent({
675
679
  name: 'OrDataGridTableFooterRow',
676
680
  props: {
677
681
  variant: {
@@ -692,10 +696,10 @@ var script$8 = defineComponent({
692
696
  });
693
697
 
694
698
  /* script */
695
- const __vue_script__$8 = script$8;
699
+ const __vue_script__$9 = script$9;
696
700
 
697
701
  /* template */
698
- var __vue_render__$8 = function () {
702
+ var __vue_render__$9 = function () {
699
703
  var _vm = this;
700
704
  var _h = _vm.$createElement;
701
705
  var _c = _vm._self._c || _h;
@@ -704,33 +708,33 @@ var __vue_render__$8 = function () {
704
708
  class: _vm.rootStyles
705
709
  }, [_vm._t("default")], 2);
706
710
  };
707
- var __vue_staticRenderFns__$8 = [];
711
+ var __vue_staticRenderFns__$9 = [];
708
712
 
709
713
  /* style */
710
- const __vue_inject_styles__$8 = undefined;
714
+ const __vue_inject_styles__$9 = undefined;
711
715
  /* scoped */
712
- const __vue_scope_id__$8 = undefined;
716
+ const __vue_scope_id__$9 = undefined;
713
717
  /* module identifier */
714
- const __vue_module_identifier__$8 = undefined;
718
+ const __vue_module_identifier__$9 = undefined;
715
719
  /* functional template */
716
- const __vue_is_functional_template__$8 = false;
720
+ const __vue_is_functional_template__$9 = false;
717
721
  /* style inject */
718
722
 
719
723
  /* style inject SSR */
720
724
 
721
725
  /* style inject shadow dom */
722
726
 
723
- const __vue_component__$g = /*#__PURE__*/normalizeComponent({
724
- render: __vue_render__$8,
725
- staticRenderFns: __vue_staticRenderFns__$8
726
- }, __vue_inject_styles__$8, __vue_script__$8, __vue_scope_id__$8, __vue_is_functional_template__$8, __vue_module_identifier__$8, false, undefined, undefined, undefined);
727
- var __vue_component__$h = __vue_component__$g;
727
+ const __vue_component__$i = /*#__PURE__*/normalizeComponent({
728
+ render: __vue_render__$9,
729
+ staticRenderFns: __vue_staticRenderFns__$9
730
+ }, __vue_inject_styles__$9, __vue_script__$9, __vue_scope_id__$9, __vue_is_functional_template__$9, __vue_module_identifier__$9, false, undefined, undefined, undefined);
731
+ var __vue_component__$j = __vue_component__$i;
728
732
 
729
733
  const DataGridTableFooter = [
730
734
  // Layout
731
735
  'contents'];
732
736
 
733
- var script$7 = defineComponent({
737
+ var script$8 = defineComponent({
734
738
  name: 'OrDataGridTableFooter',
735
739
  expose: ['root'],
736
740
  setup() {
@@ -745,10 +749,10 @@ var script$7 = defineComponent({
745
749
  });
746
750
 
747
751
  /* script */
748
- const __vue_script__$7 = script$7;
752
+ const __vue_script__$8 = script$8;
749
753
 
750
754
  /* template */
751
- var __vue_render__$7 = function () {
755
+ var __vue_render__$8 = function () {
752
756
  var _vm = this;
753
757
  var _h = _vm.$createElement;
754
758
  var _c = _vm._self._c || _h;
@@ -757,27 +761,27 @@ var __vue_render__$7 = function () {
757
761
  class: _vm.rootStyles
758
762
  }, [_vm._t("default")], 2);
759
763
  };
760
- var __vue_staticRenderFns__$7 = [];
764
+ var __vue_staticRenderFns__$8 = [];
761
765
 
762
766
  /* style */
763
- const __vue_inject_styles__$7 = undefined;
767
+ const __vue_inject_styles__$8 = undefined;
764
768
  /* scoped */
765
- const __vue_scope_id__$7 = undefined;
769
+ const __vue_scope_id__$8 = undefined;
766
770
  /* module identifier */
767
- const __vue_module_identifier__$7 = undefined;
771
+ const __vue_module_identifier__$8 = undefined;
768
772
  /* functional template */
769
- const __vue_is_functional_template__$7 = false;
773
+ const __vue_is_functional_template__$8 = false;
770
774
  /* style inject */
771
775
 
772
776
  /* style inject SSR */
773
777
 
774
778
  /* style inject shadow dom */
775
779
 
776
- const __vue_component__$e = /*#__PURE__*/normalizeComponent({
777
- render: __vue_render__$7,
778
- staticRenderFns: __vue_staticRenderFns__$7
779
- }, __vue_inject_styles__$7, __vue_script__$7, __vue_scope_id__$7, __vue_is_functional_template__$7, __vue_module_identifier__$7, false, undefined, undefined, undefined);
780
- var __vue_component__$f = __vue_component__$e;
780
+ const __vue_component__$g = /*#__PURE__*/normalizeComponent({
781
+ render: __vue_render__$8,
782
+ staticRenderFns: __vue_staticRenderFns__$8
783
+ }, __vue_inject_styles__$8, __vue_script__$8, __vue_scope_id__$8, __vue_is_functional_template__$8, __vue_module_identifier__$8, false, undefined, undefined, undefined);
784
+ var __vue_component__$h = __vue_component__$g;
781
785
 
782
786
  const DataGridTableHeaderCell = [
783
787
  // Layout
@@ -791,7 +795,7 @@ const DataGridTableHeaderCell = [
791
795
  // Theme (.sticky-end)
792
796
  '[&.sticky-end]:border-s-disabled', 'dark:[&.sticky-end]:border-s-disabled-dark'];
793
797
 
794
- var script$6 = defineComponent({
798
+ var script$7 = defineComponent({
795
799
  name: 'OrDataGridTableHeaderCell',
796
800
  components: {
797
801
  OrIcon
@@ -911,10 +915,10 @@ var script$6 = defineComponent({
911
915
  });
912
916
 
913
917
  /* script */
914
- const __vue_script__$6 = script$6;
918
+ const __vue_script__$7 = script$7;
915
919
 
916
920
  /* template */
917
- var __vue_render__$6 = function () {
921
+ var __vue_render__$7 = function () {
918
922
  var _vm = this;
919
923
  var _h = _vm.$createElement;
920
924
  var _c = _vm._self._c || _h;
@@ -935,27 +939,27 @@ var __vue_render__$6 = function () {
935
939
  }
936
940
  })] : _vm._e()], 2);
937
941
  };
938
- var __vue_staticRenderFns__$6 = [];
942
+ var __vue_staticRenderFns__$7 = [];
939
943
 
940
944
  /* style */
941
- const __vue_inject_styles__$6 = undefined;
945
+ const __vue_inject_styles__$7 = undefined;
942
946
  /* scoped */
943
- const __vue_scope_id__$6 = undefined;
947
+ const __vue_scope_id__$7 = undefined;
944
948
  /* module identifier */
945
- const __vue_module_identifier__$6 = undefined;
949
+ const __vue_module_identifier__$7 = undefined;
946
950
  /* functional template */
947
- const __vue_is_functional_template__$6 = false;
951
+ const __vue_is_functional_template__$7 = false;
948
952
  /* style inject */
949
953
 
950
954
  /* style inject SSR */
951
955
 
952
956
  /* style inject shadow dom */
953
957
 
954
- const __vue_component__$c = /*#__PURE__*/normalizeComponent({
955
- render: __vue_render__$6,
956
- staticRenderFns: __vue_staticRenderFns__$6
957
- }, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, undefined, undefined, undefined);
958
- var __vue_component__$d = __vue_component__$c;
958
+ const __vue_component__$e = /*#__PURE__*/normalizeComponent({
959
+ render: __vue_render__$7,
960
+ staticRenderFns: __vue_staticRenderFns__$7
961
+ }, __vue_inject_styles__$7, __vue_script__$7, __vue_scope_id__$7, __vue_is_functional_template__$7, __vue_module_identifier__$7, false, undefined, undefined, undefined);
962
+ var __vue_component__$f = __vue_component__$e;
959
963
 
960
964
  const DataGridTableHeaderRow = [
961
965
  // Position
@@ -978,7 +982,7 @@ const DataGridTableHeaderRowVariants = {
978
982
  'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
979
983
  };
980
984
 
981
- var script$5 = defineComponent({
985
+ var script$6 = defineComponent({
982
986
  name: 'OrDataGridTableHeaderRow',
983
987
  props: {
984
988
  variant: {
@@ -999,10 +1003,10 @@ var script$5 = defineComponent({
999
1003
  });
1000
1004
 
1001
1005
  /* script */
1002
- const __vue_script__$5 = script$5;
1006
+ const __vue_script__$6 = script$6;
1003
1007
 
1004
1008
  /* template */
1005
- var __vue_render__$5 = function () {
1009
+ var __vue_render__$6 = function () {
1006
1010
  var _vm = this;
1007
1011
  var _h = _vm.$createElement;
1008
1012
  var _c = _vm._self._c || _h;
@@ -1011,33 +1015,33 @@ var __vue_render__$5 = function () {
1011
1015
  class: _vm.rootStyles
1012
1016
  }, [_vm._t("default")], 2);
1013
1017
  };
1014
- var __vue_staticRenderFns__$5 = [];
1018
+ var __vue_staticRenderFns__$6 = [];
1015
1019
 
1016
1020
  /* style */
1017
- const __vue_inject_styles__$5 = undefined;
1021
+ const __vue_inject_styles__$6 = undefined;
1018
1022
  /* scoped */
1019
- const __vue_scope_id__$5 = undefined;
1023
+ const __vue_scope_id__$6 = undefined;
1020
1024
  /* module identifier */
1021
- const __vue_module_identifier__$5 = undefined;
1025
+ const __vue_module_identifier__$6 = undefined;
1022
1026
  /* functional template */
1023
- const __vue_is_functional_template__$5 = false;
1027
+ const __vue_is_functional_template__$6 = false;
1024
1028
  /* style inject */
1025
1029
 
1026
1030
  /* style inject SSR */
1027
1031
 
1028
1032
  /* style inject shadow dom */
1029
1033
 
1030
- const __vue_component__$a = /*#__PURE__*/normalizeComponent({
1031
- render: __vue_render__$5,
1032
- staticRenderFns: __vue_staticRenderFns__$5
1033
- }, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, undefined, undefined, undefined);
1034
- var __vue_component__$b = __vue_component__$a;
1034
+ const __vue_component__$c = /*#__PURE__*/normalizeComponent({
1035
+ render: __vue_render__$6,
1036
+ staticRenderFns: __vue_staticRenderFns__$6
1037
+ }, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, undefined, undefined, undefined);
1038
+ var __vue_component__$d = __vue_component__$c;
1035
1039
 
1036
1040
  const DataGridTableHeader = [
1037
1041
  // Layout
1038
1042
  'contents'];
1039
1043
 
1040
- var script$4 = defineComponent({
1044
+ var script$5 = defineComponent({
1041
1045
  name: 'OrDataGridTableHeader',
1042
1046
  expose: ['root'],
1043
1047
  setup() {
@@ -1052,10 +1056,10 @@ var script$4 = defineComponent({
1052
1056
  });
1053
1057
 
1054
1058
  /* script */
1055
- const __vue_script__$4 = script$4;
1059
+ const __vue_script__$5 = script$5;
1056
1060
 
1057
1061
  /* template */
1058
- var __vue_render__$4 = function () {
1062
+ var __vue_render__$5 = function () {
1059
1063
  var _vm = this;
1060
1064
  var _h = _vm.$createElement;
1061
1065
  var _c = _vm._self._c || _h;
@@ -1064,27 +1068,27 @@ var __vue_render__$4 = function () {
1064
1068
  class: _vm.rootStyles
1065
1069
  }, [_vm._t("default")], 2);
1066
1070
  };
1067
- var __vue_staticRenderFns__$4 = [];
1071
+ var __vue_staticRenderFns__$5 = [];
1068
1072
 
1069
1073
  /* style */
1070
- const __vue_inject_styles__$4 = undefined;
1074
+ const __vue_inject_styles__$5 = undefined;
1071
1075
  /* scoped */
1072
- const __vue_scope_id__$4 = undefined;
1076
+ const __vue_scope_id__$5 = undefined;
1073
1077
  /* module identifier */
1074
- const __vue_module_identifier__$4 = undefined;
1078
+ const __vue_module_identifier__$5 = undefined;
1075
1079
  /* functional template */
1076
- const __vue_is_functional_template__$4 = false;
1080
+ const __vue_is_functional_template__$5 = false;
1077
1081
  /* style inject */
1078
1082
 
1079
1083
  /* style inject SSR */
1080
1084
 
1081
1085
  /* style inject shadow dom */
1082
1086
 
1083
- const __vue_component__$8 = /*#__PURE__*/normalizeComponent({
1084
- render: __vue_render__$4,
1085
- staticRenderFns: __vue_staticRenderFns__$4
1086
- }, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);
1087
- var __vue_component__$9 = __vue_component__$8;
1087
+ const __vue_component__$a = /*#__PURE__*/normalizeComponent({
1088
+ render: __vue_render__$5,
1089
+ staticRenderFns: __vue_staticRenderFns__$5
1090
+ }, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, undefined, undefined, undefined);
1091
+ var __vue_component__$b = __vue_component__$a;
1088
1092
 
1089
1093
  const DataGridTablePlaceholder = [
1090
1094
  // Layout
@@ -1107,7 +1111,7 @@ const DataGridTablePlaceholderVariants = {
1107
1111
  'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
1108
1112
  };
1109
1113
 
1110
- var script$3 = defineComponent({
1114
+ var script$4 = defineComponent({
1111
1115
  name: 'OrDataGridTablePlaceholder',
1112
1116
  props: {
1113
1117
  variant: {
@@ -1128,10 +1132,10 @@ var script$3 = defineComponent({
1128
1132
  });
1129
1133
 
1130
1134
  /* script */
1131
- const __vue_script__$3 = script$3;
1135
+ const __vue_script__$4 = script$4;
1132
1136
 
1133
1137
  /* template */
1134
- var __vue_render__$3 = function () {
1138
+ var __vue_render__$4 = function () {
1135
1139
  var _vm = this;
1136
1140
  var _h = _vm.$createElement;
1137
1141
  var _c = _vm._self._c || _h;
@@ -1140,27 +1144,27 @@ var __vue_render__$3 = function () {
1140
1144
  class: _vm.rootStyles
1141
1145
  }, [_vm._t("default")], 2);
1142
1146
  };
1143
- var __vue_staticRenderFns__$3 = [];
1147
+ var __vue_staticRenderFns__$4 = [];
1144
1148
 
1145
1149
  /* style */
1146
- const __vue_inject_styles__$3 = undefined;
1150
+ const __vue_inject_styles__$4 = undefined;
1147
1151
  /* scoped */
1148
- const __vue_scope_id__$3 = undefined;
1152
+ const __vue_scope_id__$4 = undefined;
1149
1153
  /* module identifier */
1150
- const __vue_module_identifier__$3 = undefined;
1154
+ const __vue_module_identifier__$4 = undefined;
1151
1155
  /* functional template */
1152
- const __vue_is_functional_template__$3 = false;
1156
+ const __vue_is_functional_template__$4 = false;
1153
1157
  /* style inject */
1154
1158
 
1155
1159
  /* style inject SSR */
1156
1160
 
1157
1161
  /* style inject shadow dom */
1158
1162
 
1159
- const __vue_component__$6 = /*#__PURE__*/normalizeComponent({
1160
- render: __vue_render__$3,
1161
- staticRenderFns: __vue_staticRenderFns__$3
1162
- }, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);
1163
- var __vue_component__$7 = __vue_component__$6;
1163
+ const __vue_component__$8 = /*#__PURE__*/normalizeComponent({
1164
+ render: __vue_render__$4,
1165
+ staticRenderFns: __vue_staticRenderFns__$4
1166
+ }, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);
1167
+ var __vue_component__$9 = __vue_component__$8;
1164
1168
 
1165
1169
  const DataGridTable = [
1166
1170
  // Layout
@@ -1170,7 +1174,7 @@ const DataGridTable = [
1170
1174
  // Interactivity
1171
1175
  'interactivity-default'];
1172
1176
 
1173
- var script$2 = defineComponent({
1177
+ var script$3 = defineComponent({
1174
1178
  name: 'OrDataGridTable',
1175
1179
  props: {
1176
1180
  columns: {
@@ -1210,10 +1214,10 @@ var script$2 = defineComponent({
1210
1214
  });
1211
1215
 
1212
1216
  /* script */
1213
- const __vue_script__$2 = script$2;
1217
+ const __vue_script__$3 = script$3;
1214
1218
 
1215
1219
  /* template */
1216
- var __vue_render__$2 = function () {
1220
+ var __vue_render__$3 = function () {
1217
1221
  var _vm = this;
1218
1222
  var _h = _vm.$createElement;
1219
1223
  var _c = _vm._self._c || _h;
@@ -1223,27 +1227,27 @@ var __vue_render__$2 = function () {
1223
1227
  style: _vm.rootInlineStyles
1224
1228
  }, [_vm._t("default")], 2);
1225
1229
  };
1226
- var __vue_staticRenderFns__$2 = [];
1230
+ var __vue_staticRenderFns__$3 = [];
1227
1231
 
1228
1232
  /* style */
1229
- const __vue_inject_styles__$2 = undefined;
1233
+ const __vue_inject_styles__$3 = undefined;
1230
1234
  /* scoped */
1231
- const __vue_scope_id__$2 = undefined;
1235
+ const __vue_scope_id__$3 = undefined;
1232
1236
  /* module identifier */
1233
- const __vue_module_identifier__$2 = undefined;
1237
+ const __vue_module_identifier__$3 = undefined;
1234
1238
  /* functional template */
1235
- const __vue_is_functional_template__$2 = false;
1239
+ const __vue_is_functional_template__$3 = false;
1236
1240
  /* style inject */
1237
1241
 
1238
1242
  /* style inject SSR */
1239
1243
 
1240
1244
  /* style inject shadow dom */
1241
1245
 
1242
- const __vue_component__$4 = /*#__PURE__*/normalizeComponent({
1243
- render: __vue_render__$2,
1244
- staticRenderFns: __vue_staticRenderFns__$2
1245
- }, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
1246
- var __vue_component__$5 = __vue_component__$4;
1246
+ const __vue_component__$6 = /*#__PURE__*/normalizeComponent({
1247
+ render: __vue_render__$3,
1248
+ staticRenderFns: __vue_staticRenderFns__$3
1249
+ }, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);
1250
+ var __vue_component__$7 = __vue_component__$6;
1247
1251
 
1248
1252
  const DataGridToolbar = [
1249
1253
  // Layout
@@ -1253,7 +1257,7 @@ const DataGridToolbar = [
1253
1257
  // Spacing
1254
1258
  'gap-xl'];
1255
1259
 
1256
- var script$1 = defineComponent({
1260
+ var script$2 = defineComponent({
1257
1261
  name: 'OrDataGridToolbar',
1258
1262
  expose: ['root'],
1259
1263
  setup() {
@@ -1268,10 +1272,10 @@ var script$1 = defineComponent({
1268
1272
  });
1269
1273
 
1270
1274
  /* script */
1271
- const __vue_script__$1 = script$1;
1275
+ const __vue_script__$2 = script$2;
1272
1276
 
1273
1277
  /* template */
1274
- var __vue_render__$1 = function () {
1278
+ var __vue_render__$2 = function () {
1275
1279
  var _vm = this;
1276
1280
  var _h = _vm.$createElement;
1277
1281
  var _c = _vm._self._c || _h;
@@ -1280,6 +1284,87 @@ var __vue_render__$1 = function () {
1280
1284
  class: _vm.rootStyles
1281
1285
  }, [_vm._t("default")], 2);
1282
1286
  };
1287
+ var __vue_staticRenderFns__$2 = [];
1288
+
1289
+ /* style */
1290
+ const __vue_inject_styles__$2 = undefined;
1291
+ /* scoped */
1292
+ const __vue_scope_id__$2 = undefined;
1293
+ /* module identifier */
1294
+ const __vue_module_identifier__$2 = undefined;
1295
+ /* functional template */
1296
+ const __vue_is_functional_template__$2 = false;
1297
+ /* style inject */
1298
+
1299
+ /* style inject SSR */
1300
+
1301
+ /* style inject shadow dom */
1302
+
1303
+ const __vue_component__$4 = /*#__PURE__*/normalizeComponent({
1304
+ render: __vue_render__$2,
1305
+ staticRenderFns: __vue_staticRenderFns__$2
1306
+ }, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
1307
+ var __vue_component__$5 = __vue_component__$4;
1308
+
1309
+ const DataGridNotification = [
1310
+ // Position
1311
+ 'grid sticky z-10',
1312
+ // Layout
1313
+ 'col-span-full'];
1314
+ const DataGridNotificationPositionVariants = {
1315
+ [DataGridVariant.Standard]: [
1316
+ // Position
1317
+ 'top-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
1318
+ [DataGridVariant.Comfortable]: [
1319
+ // Position
1320
+ 'top-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
1321
+ [DataGridVariant.Compact]: [
1322
+ // Position
1323
+ 'top-[calc(theme(spacing.xl)+theme(spacing.xs))]']
1324
+ };
1325
+
1326
+ var script$1 = defineComponent({
1327
+ components: {
1328
+ OrNotification
1329
+ },
1330
+ props: {
1331
+ notification: {
1332
+ type: Object,
1333
+ required: true
1334
+ },
1335
+ variant: {
1336
+ type: String,
1337
+ required: true
1338
+ }
1339
+ },
1340
+ emits: ['close-notification'],
1341
+ setup(props) {
1342
+ const rootStyles = computed(() => ['or-data-grid-notification-v3', ...DataGridNotification, ...DataGridNotificationPositionVariants[props.variant]]);
1343
+ return {
1344
+ rootStyles
1345
+ };
1346
+ }
1347
+ });
1348
+
1349
+ /* script */
1350
+ const __vue_script__$1 = script$1;
1351
+
1352
+ /* template */
1353
+ var __vue_render__$1 = function () {
1354
+ var _vm = this;
1355
+ var _h = _vm.$createElement;
1356
+ var _c = _vm._self._c || _h;
1357
+ return _c('div', {
1358
+ class: _vm.rootStyles
1359
+ }, [_c('OrNotification', _vm._b({
1360
+ staticClass: "rounded-0 shadow-none",
1361
+ on: {
1362
+ "close": function ($event) {
1363
+ return _vm.$emit('close-notification');
1364
+ }
1365
+ }
1366
+ }, 'OrNotification', _vm.notification, false), [_vm.$slots['notification'] ? [_vm._t('notification')] : _vm._e()], 2)], 1);
1367
+ };
1283
1368
  var __vue_staticRenderFns__$1 = [];
1284
1369
 
1285
1370
  /* style */
@@ -1310,24 +1395,24 @@ var script = defineComponent({
1310
1395
  name: 'OrDataGrid',
1311
1396
  components: {
1312
1397
  OrCheckbox,
1313
- OrDataGridFooter: __vue_component__$t,
1314
- OrDataGridHeader: __vue_component__$r,
1315
- OrDataGridTable: __vue_component__$5,
1316
- OrDataGridTableContent: __vue_component__$l,
1317
- OrDataGridTableContentCell: __vue_component__$p,
1318
- OrDataGridTableContentRow: __vue_component__$n,
1319
- OrDataGridTableFooter: __vue_component__$f,
1320
- OrDataGridTableFooterCell: __vue_component__$j,
1321
- OrDataGridTableFooterRow: __vue_component__$h,
1322
- OrDataGridTableHeader: __vue_component__$9,
1323
- OrDataGridTableHeaderCell: __vue_component__$d,
1324
- OrDataGridTableHeaderRow: __vue_component__$b,
1325
- OrDataGridTablePlaceholder: __vue_component__$7,
1326
- OrDataGridToolbar: __vue_component__$3,
1398
+ OrDataGridFooter: __vue_component__$v,
1399
+ OrDataGridHeader: __vue_component__$t,
1400
+ OrDataGridTable: __vue_component__$7,
1401
+ OrDataGridTableContent: __vue_component__$n,
1402
+ OrDataGridTableContentCell: __vue_component__$r,
1403
+ OrDataGridTableContentRow: __vue_component__$p,
1404
+ OrDataGridTableFooter: __vue_component__$h,
1405
+ OrDataGridTableFooterCell: __vue_component__$l,
1406
+ OrDataGridTableFooterRow: __vue_component__$j,
1407
+ OrDataGridTableHeader: __vue_component__$b,
1408
+ OrDataGridTableHeaderCell: __vue_component__$f,
1409
+ OrDataGridTableHeaderRow: __vue_component__$d,
1410
+ OrDataGridTablePlaceholder: __vue_component__$9,
1411
+ OrDataGridToolbar: __vue_component__$5,
1412
+ OrDataGridNotification: __vue_component__$3,
1327
1413
  OrPagination,
1328
1414
  OrSearch,
1329
- OrSkeletonText,
1330
- OrNotification
1415
+ OrSkeletonText
1331
1416
  },
1332
1417
  model: {
1333
1418
  prop: 'modelValue',
@@ -1361,9 +1446,13 @@ var script = defineComponent({
1361
1446
  notification: {
1362
1447
  type: Object,
1363
1448
  default: undefined
1449
+ },
1450
+ interactiveRows: {
1451
+ type: Boolean,
1452
+ default: false
1364
1453
  }
1365
1454
  },
1366
- emits: ['update:modelValue', 'update:item', 'close-notification'],
1455
+ emits: ['update:modelValue', 'update:item', 'close-notification', 'hover:row', 'blur:row', 'hover:cell', 'blur:cell', 'click:row'],
1367
1456
  expose: ['root'],
1368
1457
  setup(props, context) {
1369
1458
  // Refs & Styles
@@ -1501,6 +1590,38 @@ var script = defineComponent({
1501
1590
  break;
1502
1591
  }
1503
1592
  }
1593
+ function handleMouseEnterRow(item) {
1594
+ if (!props.interactiveRows) return;
1595
+ context.emit('hover:row', item);
1596
+ }
1597
+ function handleMouseLeaveRow(item) {
1598
+ if (!props.interactiveRows) return;
1599
+ context.emit('blur:row', item);
1600
+ }
1601
+ function handleMouseEnterCell(item, columnName, value) {
1602
+ if (!props.interactiveRows) return;
1603
+ context.emit('hover:cell', {
1604
+ item,
1605
+ columnName,
1606
+ value
1607
+ });
1608
+ }
1609
+ function handleMouseLeaveCell(item, columnName, value) {
1610
+ if (!props.interactiveRows) return;
1611
+ context.emit('blur:cell', {
1612
+ item,
1613
+ columnName,
1614
+ value
1615
+ });
1616
+ }
1617
+ function handleRowClick(item) {
1618
+ if (!props.interactiveRows) return;
1619
+ context.emit('click:row', item);
1620
+ }
1621
+ // function handleCellClick(item: DataGridItem<T>, columnName: string, value: any): void {
1622
+ // if (!props.interactiveRows) return;
1623
+ // context.emit('click:cell', { item, columnName, value });
1624
+ // }
1504
1625
  function removeScrollOffset(header) {
1505
1626
  scrollOffsetStart.value.delete(header);
1506
1627
  scrollOffsetStart.value = new Map(scrollOffsetStart.value);
@@ -1520,6 +1641,11 @@ var script = defineComponent({
1520
1641
  selectingIndicator,
1521
1642
  showSelectingCouter,
1522
1643
  selectingDisabled,
1644
+ handleMouseEnterRow,
1645
+ handleMouseLeaveRow,
1646
+ handleMouseEnterCell,
1647
+ handleMouseLeaveCell,
1648
+ handleRowClick,
1523
1649
  selectingModel,
1524
1650
  filteringModel,
1525
1651
  searchingModel,
@@ -1629,20 +1755,29 @@ var __vue_render__ = function () {
1629
1755
  expression: "sortingModel"
1630
1756
  }
1631
1757
  }, [_vm._v("\n " + _vm._s(column.label) + "\n ")]);
1632
- })], 2)], 1), _vm._v(" "), _vm.notification ? [_c('div', {
1633
- staticClass: "grid col-span-full"
1634
- }, [_c('OrNotification', _vm._b({
1635
- staticClass: "rounded-0",
1758
+ })], 2)], 1), _vm._v(" "), _vm.notification ? _c('OrDataGridNotification', {
1759
+ attrs: {
1760
+ "notification": _vm.notification,
1761
+ "variant": _vm.variant
1762
+ },
1636
1763
  on: {
1637
- "close": function ($event) {
1764
+ "close-notification": function ($event) {
1638
1765
  return _vm.$emit('close-notification');
1639
1766
  }
1640
- }
1641
- }, '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) {
1767
+ },
1768
+ scopedSlots: _vm._u([_vm.$slots['notification'] ? {
1769
+ key: "notification",
1770
+ fn: function () {
1771
+ return [_vm._t('notification')];
1772
+ },
1773
+ proxy: true
1774
+ } : null], null, true)
1775
+ }) : _vm._e(), _vm._v(" "), _c('OrDataGridTableContent', [_vm.loading ? _vm._l(10, function (n) {
1642
1776
  return _c('OrDataGridTableContentRow', {
1643
1777
  key: n,
1644
1778
  attrs: {
1645
- "variant": _vm.variant
1779
+ "variant": _vm.variant,
1780
+ "interactive": _vm.interactiveRows
1646
1781
  }
1647
1782
  }, [_vm.features.selecting ? [_c('OrDataGridTableContentCell', {
1648
1783
  attrs: {
@@ -1666,7 +1801,19 @@ var __vue_render__ = function () {
1666
1801
  key: item.id,
1667
1802
  attrs: {
1668
1803
  "variant": _vm.variant,
1669
- "selected": _vm.selectingModel.includes(item.id)
1804
+ "selected": _vm.selectingModel.includes(item.id),
1805
+ "interactive": _vm.interactiveRows
1806
+ },
1807
+ on: {
1808
+ "mouseenter": function () {
1809
+ return _vm.handleMouseEnterRow(item);
1810
+ },
1811
+ "mouseleave": function () {
1812
+ return _vm.handleMouseLeaveRow(item);
1813
+ },
1814
+ "click": function () {
1815
+ return _vm.handleRowClick(item);
1816
+ }
1670
1817
  }
1671
1818
  }, [_vm.features.selecting ? [_c('OrDataGridTableContentCell', {
1672
1819
  staticClass: "!py-xs !px-xs md:!py-none md:!px-sm+",
@@ -1675,6 +1822,14 @@ var __vue_render__ = function () {
1675
1822
  stickiness: 'start'
1676
1823
  },
1677
1824
  "force-state": 'none'
1825
+ },
1826
+ on: {
1827
+ "mouseenter": function () {
1828
+ return _vm.handleMouseEnterCell(item, 'selecting', _vm.selectingModel.includes(item.id));
1829
+ },
1830
+ "mouseleave": function () {
1831
+ return _vm.handleMouseLeaveCell(item, 'selecting', _vm.selectingModel.includes(item.id));
1832
+ }
1678
1833
  }
1679
1834
  }, [_c('OrCheckbox', {
1680
1835
  attrs: {
@@ -1703,6 +1858,12 @@ var __vue_render__ = function () {
1703
1858
  },
1704
1859
  "focusin": function ($event) {
1705
1860
  return _vm.scrollTo($event);
1861
+ },
1862
+ "mouseenter": function () {
1863
+ return _vm.handleMouseEnterCell(item, column.name, item[column.name]);
1864
+ },
1865
+ "mouseleave": function () {
1866
+ return _vm.handleMouseLeaveCell(item, column.name, item[column.name]);
1706
1867
  }
1707
1868
  }
1708
1869
  }, [_vm._t(column.name, function () {
@@ -1725,7 +1886,7 @@ var __vue_render__ = function () {
1725
1886
  attrs: {
1726
1887
  "variant": _vm.variant
1727
1888
  }
1728
- }, [_vm._t('empty')], 2)] : _vm._e()], 2)], 2), _vm._v(" "), _vm.$slots['extra-row'] ? [_c('OrDataGridTableFooter', [_c('OrDataGridTableFooterRow', {
1889
+ }, [_vm._t('empty')], 2)] : _vm._e()], 2)], 1), _vm._v(" "), _vm.$slots['extra-row'] ? [_c('OrDataGridTableFooter', [_c('OrDataGridTableFooterRow', {
1729
1890
  class: ['shrink-0'],
1730
1891
  attrs: {
1731
1892
  "variant": _vm.variant
@@ -12,3 +12,4 @@ export { default as OrDataGridTableHeader } from './or-data-grid-table-header/Or
12
12
  export { default as OrDataGridTablePlaceholder } from './or-data-grid-table-placeholder/OrDataGridTablePlaceholder.vue';
13
13
  export { default as OrDataGridTable } from './or-data-grid-table/OrDataGridTable.vue';
14
14
  export { default as OrDataGridToolbar } from './or-data-grid-toolbar/OrDataGridToolbar.vue';
15
+ export { default as OrDataGridNotification } from './or-data-grid-notification/OrDataGridNotification.vue';
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { DataGridVariant } from '../../types';
2
+ export declare const DataGridNotification: string[];
3
+ export declare const DataGridNotificationPositionVariants: Record<DataGridVariant, string[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components-vue2",
3
- "version": "20.3.0",
3
+ "version": "20.4.0",
4
4
  "description": "Vue components library for v2",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -39,8 +39,8 @@
39
39
  "@codemirror/view": "^6",
40
40
  "@floating-ui/dom": "1.5.3",
41
41
  "@lezer/highlight": "*",
42
- "@onereach/styles": "^20.3.0",
43
- "@onereach/ui-components-common": "^20.3.0",
42
+ "@onereach/styles": "^20.4.0",
43
+ "@onereach/ui-components-common": "^20.4.0",
44
44
  "@splidejs/splide": "4.0.6",
45
45
  "@tiptap/core": "2.0.3",
46
46
  "@tiptap/extension-blockquote": "2.0.3",
@@ -104,5 +104,5 @@
104
104
  "access": "public"
105
105
  },
106
106
  "npmUnpacked": "4.15.2",
107
- "gitHead": "da62f7d2af0507ea35abbe990f2c03918721e4f6"
107
+ "gitHead": "4739e1eb32ed19459b84bf21e1c5b7bfe548332e"
108
108
  }