@onereach/ui-components 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.
@@ -1,6 +1,10 @@
1
1
  import { PropType } from 'vue';
2
- import { Id } from '@onereach/ui-components-common/types';
3
- import { DataGridColumn, DataGridFeatures, DataGridModelValue, DataGridVariant } from './types';
2
+ import { DataModel, Id } from '@onereach/ui-components-common/types';
3
+ import { DataGridColumn, DataGridFeatures, DataGridItem, DataGridModelValue, DataGridVariant } from './types';
4
+ type T = DataModel<{
5
+ id: Id;
6
+ [key: string]: any;
7
+ }>;
4
8
  declare const _default: import("vue").DefineComponent<{
5
9
  modelValue: {
6
10
  type: PropType<DataGridModelValue>;
@@ -33,6 +37,10 @@ declare const _default: import("vue").DefineComponent<{
33
37
  type: PropType<any>;
34
38
  default: undefined;
35
39
  };
40
+ interactiveRows: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
36
44
  }, {
37
45
  root: import("vue").Ref<HTMLElement | undefined>;
38
46
  rootStyles: import("vue").ComputedRef<string[]>;
@@ -43,6 +51,11 @@ declare const _default: import("vue").DefineComponent<{
43
51
  selectingIndicator: import("vue").WritableComputedRef<boolean>;
44
52
  showSelectingCouter: import("vue").ComputedRef<boolean | undefined>;
45
53
  selectingDisabled: import("vue").ComputedRef<boolean | undefined>;
54
+ handleMouseEnterRow: (item: DataGridItem<T>) => void;
55
+ handleMouseLeaveRow: (item: DataGridItem<T>) => void;
56
+ handleMouseEnterCell: (item: DataGridItem<T>, columnName: string, value: any) => void;
57
+ handleMouseLeaveCell: (item: DataGridItem<T>, columnName: string, value: any) => void;
58
+ handleRowClick: (item: DataGridItem<T>) => void;
46
59
  selectingModel: import("vue").WritableComputedRef<Id[]>;
47
60
  filteringModel: import("vue").WritableComputedRef<undefined>;
48
61
  searchingModel: import("vue").WritableComputedRef<import("@onereach/ui-components-common/types").ModelValue<string>>;
@@ -55,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
55
68
  removeScrollOffset: (header: HTMLElement) => void;
56
69
  updateSearchingModel: (value: string) => void;
57
70
  scrollTo: (event: FocusEvent) => void;
58
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:item" | "close-notification")[], "update:modelValue" | "update:item" | "close-notification", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
71
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:item" | "close-notification" | "hover:row" | "blur:row" | "hover:cell" | "blur:cell" | "click:row")[], "update:modelValue" | "update:item" | "close-notification" | "hover:row" | "blur:row" | "hover:cell" | "blur:cell" | "click:row", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
59
72
  modelValue: {
60
73
  type: PropType<DataGridModelValue>;
61
74
  default: undefined;
@@ -87,10 +100,19 @@ declare const _default: import("vue").DefineComponent<{
87
100
  type: PropType<any>;
88
101
  default: undefined;
89
102
  };
103
+ interactiveRows: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
90
107
  }>> & {
91
108
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
92
109
  "onUpdate:item"?: ((...args: any[]) => any) | undefined;
93
110
  "onClose-notification"?: ((...args: any[]) => any) | undefined;
111
+ "onHover:row"?: ((...args: any[]) => any) | undefined;
112
+ "onBlur:row"?: ((...args: any[]) => any) | undefined;
113
+ "onHover:cell"?: ((...args: any[]) => any) | undefined;
114
+ "onBlur:cell"?: ((...args: any[]) => any) | undefined;
115
+ "onClick:row"?: ((...args: any[]) => any) | undefined;
94
116
  }, {
95
117
  modelValue: DataGridModelValue;
96
118
  items: {
@@ -101,5 +123,6 @@ declare const _default: import("vue").DefineComponent<{
101
123
  features: DataGridFeatures;
102
124
  loading: boolean;
103
125
  notification: any;
126
+ interactiveRows: boolean;
104
127
  }, {}>;
105
128
  export default _default;
@@ -1,19 +1,19 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode, createSlots, withCtx, normalizeProps, guardReactiveProps, createVNode, renderList, createTextVNode, toDisplayString, mergeProps } from 'vue';
2
- import { OrCheckboxV3 as script$f } from '../or-checkbox-v3/index.js';
3
- import { OrDatePickerV3 as script$g } from '../or-date-picker-v3/index.js';
4
- import { s as script$h } from '../OrDateTimePickerV3-3c2fd488.js';
5
- import { OrInputV3 as script$i } from '../or-input-v3/index.js';
6
- import { OrRatingV3 as script$j } from '../or-rating-v3/index.js';
7
- import { OrSelectV3 as script$k } from '../or-select-v3/index.js';
8
- import { OrSwitchV3 as script$l } from '../or-switch-v3/index.js';
9
- import { OrTagInputV3 as script$m } from '../or-tag-input-v3/index.js';
10
- import { OrTimePickerV3 as script$n } from '../or-time-picker-v3/index.js';
1
+ import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode, createVNode, mergeProps, withCtx, createSlots, normalizeProps, guardReactiveProps, renderList, createTextVNode, toDisplayString } from 'vue';
2
+ import { OrCheckboxV3 as script$g } from '../or-checkbox-v3/index.js';
3
+ import { OrDatePickerV3 as script$h } from '../or-date-picker-v3/index.js';
4
+ import { s as script$i } from '../OrDateTimePickerV3-3c2fd488.js';
5
+ import { OrInputV3 as script$j } from '../or-input-v3/index.js';
6
+ import { OrRatingV3 as script$k } from '../or-rating-v3/index.js';
7
+ import { OrSelectV3 as script$l } from '../or-select-v3/index.js';
8
+ import { OrSwitchV3 as script$m } from '../or-switch-v3/index.js';
9
+ import { OrTagInputV3 as script$n } from '../or-tag-input-v3/index.js';
10
+ import { OrTimePickerV3 as script$o } from '../or-time-picker-v3/index.js';
11
11
  import { useElementSize } from '@vueuse/core';
12
- import { OrIconV3 as script$o } from '../or-icon-v3/index.js';
13
- import { OrPaginationV3 as script$p } from '../or-pagination-v3/index.js';
14
- import { OrSearchV3 as script$q } from '../or-search-v3/index.js';
15
- import { OrSkeletonTextV3 as script$r } from '../or-skeleton-v3/index.js';
16
- import { OrNotificationV3 as script$s } from '../or-notification-v3/index.js';
12
+ import { OrIconV3 as script$p } from '../or-icon-v3/index.js';
13
+ import { OrNotificationV3 as script$q } from '../or-notification-v3/index.js';
14
+ import { OrPaginationV3 as script$r } from '../or-pagination-v3/index.js';
15
+ import { OrSearchV3 as script$s } from '../or-search-v3/index.js';
16
+ import { OrSkeletonTextV3 as script$t } from '../or-skeleton-v3/index.js';
17
17
  import '../OrAutocompleteV3-fd7065f1.js';
18
18
  import '@onereach/styles/screens.json';
19
19
  import '@onereach/styles/tailwind.config.json';
@@ -41,8 +41,8 @@ import '../or-tag-v3/index.js';
41
41
  import '../or-menu-v3/index.js';
42
42
  import '../OrEditorTabsV3-152c10c5.js';
43
43
  import '../or-expansion-panel-v3/index.js';
44
- import 'lodash/range';
45
44
  import '../or-indicator-v3/index.js';
45
+ import 'lodash/range';
46
46
 
47
47
  const DataGridFooter = [
48
48
  // Layout
@@ -59,7 +59,7 @@ const DataGridFooterStatus = [
59
59
  // Typography
60
60
  'typography-body-2-semibold'];
61
61
 
62
- var script$e = defineComponent({
62
+ var script$f = defineComponent({
63
63
  name: 'OrDataGridFooter',
64
64
  expose: ['root'],
65
65
  setup() {
@@ -75,22 +75,22 @@ var script$e = defineComponent({
75
75
  }
76
76
  });
77
77
 
78
- const _hoisted_1$5 = {
78
+ const _hoisted_1$4 = {
79
79
  key: 1,
80
80
  class: /*#__PURE__*/normalizeClass(['grow'])
81
81
  };
82
- function render$e(_ctx, _cache, $props, $setup, $data, $options) {
82
+ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
83
83
  return openBlock(), createElementBlock("div", {
84
84
  ref: 'root',
85
85
  class: normalizeClass(_ctx.rootStyles)
86
86
  }, [_ctx.$slots['status'] ? (openBlock(), createElementBlock("div", {
87
87
  key: 0,
88
88
  class: normalizeClass(_ctx.statusStyles)
89
- }, [renderSlot(_ctx.$slots, 'status')], 2 /* CLASS */)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'actions'), _ctx.$slots['paging'] ? (openBlock(), createElementBlock("div", _hoisted_1$5)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'paging')], 2 /* CLASS */);
89
+ }, [renderSlot(_ctx.$slots, 'status')], 2 /* CLASS */)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'actions'), _ctx.$slots['paging'] ? (openBlock(), createElementBlock("div", _hoisted_1$4)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'paging')], 2 /* CLASS */);
90
90
  }
91
91
 
92
- script$e.render = render$e;
93
- script$e.__file = "src/components/or-data-grid-v3/partials/or-data-grid-footer/OrDataGridFooter.vue";
92
+ script$f.render = render$f;
93
+ script$f.__file = "src/components/or-data-grid-v3/partials/or-data-grid-footer/OrDataGridFooter.vue";
94
94
 
95
95
  const DataGridHeader = [
96
96
  // Layout
@@ -103,7 +103,7 @@ const DataGridHeaderTitle = [
103
103
  // Typography
104
104
  'typography-headline-2'];
105
105
 
106
- var script$d = defineComponent({
106
+ var script$e = defineComponent({
107
107
  name: 'OrDataGridHeader',
108
108
  expose: ['root'],
109
109
  setup() {
@@ -119,22 +119,22 @@ var script$d = defineComponent({
119
119
  }
120
120
  });
121
121
 
122
- const _hoisted_1$4 = {
122
+ const _hoisted_1$3 = {
123
123
  key: 1,
124
124
  class: /*#__PURE__*/normalizeClass(['grow'])
125
125
  };
126
- function render$d(_ctx, _cache, $props, $setup, $data, $options) {
126
+ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
127
127
  return openBlock(), createElementBlock("div", {
128
128
  ref: 'root',
129
129
  class: normalizeClass(_ctx.rootStyles)
130
130
  }, [_ctx.$slots['title'] ? (openBlock(), createElementBlock("div", {
131
131
  key: 0,
132
132
  class: normalizeClass(_ctx.titleStyles)
133
- }, [renderSlot(_ctx.$slots, 'title')], 2 /* CLASS */)) : createCommentVNode("v-if", true), _ctx.$slots['searching'] ? (openBlock(), createElementBlock("div", _hoisted_1$4)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'searching')], 2 /* CLASS */);
133
+ }, [renderSlot(_ctx.$slots, 'title')], 2 /* CLASS */)) : createCommentVNode("v-if", true), _ctx.$slots['searching'] ? (openBlock(), createElementBlock("div", _hoisted_1$3)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'searching')], 2 /* CLASS */);
134
134
  }
135
135
 
136
- script$d.render = render$d;
137
- script$d.__file = "src/components/or-data-grid-v3/partials/or-data-grid-header/OrDataGridHeader.vue";
136
+ script$e.render = render$e;
137
+ script$e.__file = "src/components/or-data-grid-v3/partials/or-data-grid-header/OrDataGridHeader.vue";
138
138
 
139
139
  const DataGridTableContentCell = [
140
140
  // Layout
@@ -150,18 +150,18 @@ const DataGridTableContentCell = [
150
150
  // Theme (.sticky-end)
151
151
  '[&.sticky-end]:border-s-disabled', 'dark:[&.sticky-end]:border-s-disabled-dark'];
152
152
 
153
- var script$c = defineComponent({
153
+ var script$d = defineComponent({
154
154
  name: 'OrDataGridTableContentCell',
155
155
  components: {
156
- OrCheckbox: script$f,
157
- OrDatePicker: script$g,
158
- OrDateTimePicker: script$h,
159
- OrInput: script$i,
160
- OrRating: script$j,
161
- OrSelect: script$k,
162
- OrSwitch: script$l,
163
- OrTagInput: script$m,
164
- OrTimePicker: script$n
156
+ OrCheckbox: script$g,
157
+ OrDatePicker: script$h,
158
+ OrDateTimePicker: script$i,
159
+ OrInput: script$j,
160
+ OrRating: script$k,
161
+ OrSelect: script$l,
162
+ OrSwitch: script$m,
163
+ OrTagInput: script$n,
164
+ OrTimePicker: script$o
165
165
  },
166
166
  model: {
167
167
  prop: 'modelValue',
@@ -243,11 +243,11 @@ var script$c = defineComponent({
243
243
  }
244
244
  });
245
245
 
246
- const _hoisted_1$3 = {
246
+ const _hoisted_1$2 = {
247
247
  key: 2,
248
248
  class: /*#__PURE__*/normalizeClass(['truncate'])
249
249
  };
250
- function render$c(_ctx, _cache, $props, $setup, $data, $options) {
250
+ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
251
251
  const _component_OrInput = resolveComponent("OrInput");
252
252
  const _component_OrRating = resolveComponent("OrRating");
253
253
  const _component_OrSelect = resolveComponent("OrSelect");
@@ -319,11 +319,11 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
319
319
  modelValue: _ctx.model,
320
320
  "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => _ctx.model = $event),
321
321
  variant: 'embedded'
322
- }, null, 8 /* PROPS */, ["modelValue"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("div", _hoisted_1$3, [renderSlot(_ctx.$slots, "default")]))], 6 /* CLASS, STYLE */);
322
+ }, null, 8 /* PROPS */, ["modelValue"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("div", _hoisted_1$2, [renderSlot(_ctx.$slots, "default")]))], 6 /* CLASS, STYLE */);
323
323
  }
324
324
 
325
- script$c.render = render$c;
326
- script$c.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue";
325
+ script$d.render = render$d;
326
+ script$d.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue";
327
327
 
328
328
  var DataGridVariant;
329
329
  (function (DataGridVariant) {
@@ -359,7 +359,7 @@ const DataGridTableContentRowVariants = {
359
359
  'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
360
360
  };
361
361
 
362
- var script$b = defineComponent({
362
+ var script$c = defineComponent({
363
363
  name: 'OrDataGridTableContentRow',
364
364
  props: {
365
365
  variant: {
@@ -369,13 +369,17 @@ var script$b = defineComponent({
369
369
  selected: {
370
370
  type: Boolean,
371
371
  default: false
372
+ },
373
+ interactive: {
374
+ type: Boolean,
375
+ default: false
372
376
  }
373
377
  },
374
378
  expose: ['root'],
375
379
  setup(props) {
376
380
  // Refs & Styles
377
381
  const root = ref();
378
- const rootStyles = computed(() => ['or-data-grid-table-content-row-v3', ...DataGridTableContentRow, ...DataGridTableContentRowVariants[props.variant]]);
382
+ const rootStyles = computed(() => ['or-data-grid-table-content-row-v3', ...DataGridTableContentRow, ...DataGridTableContentRowVariants[props.variant], ...(props.interactive ? ['cursor-pointer'] : [])]);
379
383
  return {
380
384
  root,
381
385
  rootStyles
@@ -383,23 +387,23 @@ var script$b = defineComponent({
383
387
  }
384
388
  });
385
389
 
386
- const _hoisted_1$2 = ["selected"];
387
- function render$b(_ctx, _cache, $props, $setup, $data, $options) {
390
+ const _hoisted_1$1 = ["selected"];
391
+ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
388
392
  return openBlock(), createElementBlock("div", {
389
393
  ref: 'root',
390
394
  class: normalizeClass(_ctx.rootStyles),
391
395
  selected: _ctx.selected
392
- }, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$2);
396
+ }, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$1);
393
397
  }
394
398
 
395
- script$b.render = render$b;
396
- script$b.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content-row/OrDataGridTableContentRow.vue";
399
+ script$c.render = render$c;
400
+ script$c.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content-row/OrDataGridTableContentRow.vue";
397
401
 
398
402
  const DataGridTableContent = [
399
403
  // Layout
400
404
  'contents'];
401
405
 
402
- var script$a = defineComponent({
406
+ var script$b = defineComponent({
403
407
  name: 'OrDataGridTableContent',
404
408
  expose: ['root'],
405
409
  setup() {
@@ -413,15 +417,15 @@ var script$a = defineComponent({
413
417
  }
414
418
  });
415
419
 
416
- function render$a(_ctx, _cache, $props, $setup, $data, $options) {
420
+ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
417
421
  return openBlock(), createElementBlock("div", {
418
422
  ref: 'root',
419
423
  class: normalizeClass(_ctx.rootStyles)
420
424
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
421
425
  }
422
426
 
423
- script$a.render = render$a;
424
- script$a.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content/OrDataGridTableContent.vue";
427
+ script$b.render = render$b;
428
+ script$b.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content/OrDataGridTableContent.vue";
425
429
 
426
430
  const DataGridTableFooterCell = [
427
431
  // Layout
@@ -431,7 +435,7 @@ const DataGridTableFooterCell = [
431
435
  // Theme
432
436
  'theme-border-transparent border-1', 'dark:theme-border-transparent-dark'];
433
437
 
434
- var script$9 = defineComponent({
438
+ var script$a = defineComponent({
435
439
  name: 'OrDataGridTableFooterCell',
436
440
  expose: ['root'],
437
441
  setup() {
@@ -445,15 +449,15 @@ var script$9 = defineComponent({
445
449
  }
446
450
  });
447
451
 
448
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
452
+ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
449
453
  return openBlock(), createElementBlock("div", {
450
454
  ref: 'root',
451
455
  class: normalizeClass(_ctx.rootStyles)
452
456
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
453
457
  }
454
458
 
455
- script$9.render = render$9;
456
- script$9.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/OrDataGridTableFooterCell.vue";
459
+ script$a.render = render$a;
460
+ script$a.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/OrDataGridTableFooterCell.vue";
457
461
 
458
462
  const DataGridTableFooterRow = [
459
463
  // Layout
@@ -476,7 +480,7 @@ const DataGridTableFooterRowVariants = {
476
480
  'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
477
481
  };
478
482
 
479
- var script$8 = defineComponent({
483
+ var script$9 = defineComponent({
480
484
  name: 'OrDataGridTableFooterRow',
481
485
  props: {
482
486
  variant: {
@@ -496,21 +500,21 @@ var script$8 = defineComponent({
496
500
  }
497
501
  });
498
502
 
499
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
503
+ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
500
504
  return openBlock(), createElementBlock("div", {
501
505
  ref: 'root',
502
506
  class: normalizeClass(_ctx.rootStyles)
503
507
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
504
508
  }
505
509
 
506
- script$8.render = render$8;
507
- script$8.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/OrDataGridTableFooterRow.vue";
510
+ script$9.render = render$9;
511
+ script$9.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/OrDataGridTableFooterRow.vue";
508
512
 
509
513
  const DataGridTableFooter = [
510
514
  // Layout
511
515
  'contents'];
512
516
 
513
- var script$7 = defineComponent({
517
+ var script$8 = defineComponent({
514
518
  name: 'OrDataGridTableFooter',
515
519
  expose: ['root'],
516
520
  setup() {
@@ -524,15 +528,15 @@ var script$7 = defineComponent({
524
528
  }
525
529
  });
526
530
 
527
- function render$7(_ctx, _cache, $props, $setup, $data, $options) {
531
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
528
532
  return openBlock(), createElementBlock("div", {
529
533
  ref: 'root',
530
534
  class: normalizeClass(_ctx.rootStyles)
531
535
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
532
536
  }
533
537
 
534
- script$7.render = render$7;
535
- script$7.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer/OrDataGridTableFooter.vue";
538
+ script$8.render = render$8;
539
+ script$8.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer/OrDataGridTableFooter.vue";
536
540
 
537
541
  const DataGridTableHeaderCell = [
538
542
  // Layout
@@ -546,10 +550,10 @@ const DataGridTableHeaderCell = [
546
550
  // Theme (.sticky-end)
547
551
  '[&.sticky-end]:border-s-disabled', 'dark:[&.sticky-end]:border-s-disabled-dark'];
548
552
 
549
- var script$6 = defineComponent({
553
+ var script$7 = defineComponent({
550
554
  name: 'OrDataGridTableHeaderCell',
551
555
  components: {
552
- OrIcon: script$o
556
+ OrIcon: script$p
553
557
  },
554
558
  model: {
555
559
  prop: 'modelValue',
@@ -665,24 +669,24 @@ var script$6 = defineComponent({
665
669
  }
666
670
  });
667
671
 
668
- const _hoisted_1$1 = {
672
+ const _hoisted_1 = {
669
673
  class: /*#__PURE__*/normalizeClass(['truncate'])
670
674
  };
671
- function render$6(_ctx, _cache, $props, $setup, $data, $options) {
675
+ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
672
676
  const _component_OrIcon = resolveComponent("OrIcon");
673
677
  return openBlock(), createElementBlock("div", {
674
678
  ref: 'root',
675
679
  class: normalizeClass(_ctx.rootStyles),
676
680
  style: normalizeStyle(_ctx.rootInlineStyles),
677
681
  onClick: _cache[0] || (_cache[0] = $event => _ctx.toggleSorting())
678
- }, [createElementVNode("div", _hoisted_1$1, [renderSlot(_ctx.$slots, "default")]), _ctx.model ? (openBlock(), createBlock(_component_OrIcon, {
682
+ }, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), _ctx.model ? (openBlock(), createBlock(_component_OrIcon, {
679
683
  key: 0,
680
684
  icon: _ctx.model.direction === 'asc' ? 'arrow_upward' : 'arrow_downward'
681
685
  }, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)], 6 /* CLASS, STYLE */);
682
686
  }
683
687
 
684
- script$6.render = render$6;
685
- script$6.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue";
688
+ script$7.render = render$7;
689
+ script$7.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue";
686
690
 
687
691
  const DataGridTableHeaderRow = [
688
692
  // Position
@@ -705,7 +709,7 @@ const DataGridTableHeaderRowVariants = {
705
709
  'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
706
710
  };
707
711
 
708
- var script$5 = defineComponent({
712
+ var script$6 = defineComponent({
709
713
  name: 'OrDataGridTableHeaderRow',
710
714
  props: {
711
715
  variant: {
@@ -725,21 +729,21 @@ var script$5 = defineComponent({
725
729
  }
726
730
  });
727
731
 
728
- function render$5(_ctx, _cache, $props, $setup, $data, $options) {
732
+ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
729
733
  return openBlock(), createElementBlock("div", {
730
734
  ref: 'root',
731
735
  class: normalizeClass(_ctx.rootStyles)
732
736
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
733
737
  }
734
738
 
735
- script$5.render = render$5;
736
- script$5.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-row/OrDataGridTableHeaderRow.vue";
739
+ script$6.render = render$6;
740
+ script$6.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-row/OrDataGridTableHeaderRow.vue";
737
741
 
738
742
  const DataGridTableHeader = [
739
743
  // Layout
740
744
  'contents'];
741
745
 
742
- var script$4 = defineComponent({
746
+ var script$5 = defineComponent({
743
747
  name: 'OrDataGridTableHeader',
744
748
  expose: ['root'],
745
749
  setup() {
@@ -753,15 +757,15 @@ var script$4 = defineComponent({
753
757
  }
754
758
  });
755
759
 
756
- function render$4(_ctx, _cache, $props, $setup, $data, $options) {
760
+ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
757
761
  return openBlock(), createElementBlock("div", {
758
762
  ref: 'root',
759
763
  class: normalizeClass(_ctx.rootStyles)
760
764
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
761
765
  }
762
766
 
763
- script$4.render = render$4;
764
- script$4.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header/OrDataGridTableHeader.vue";
767
+ script$5.render = render$5;
768
+ script$5.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header/OrDataGridTableHeader.vue";
765
769
 
766
770
  const DataGridTablePlaceholder = [
767
771
  // Layout
@@ -784,7 +788,7 @@ const DataGridTablePlaceholderVariants = {
784
788
  'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
785
789
  };
786
790
 
787
- var script$3 = defineComponent({
791
+ var script$4 = defineComponent({
788
792
  name: 'OrDataGridTablePlaceholder',
789
793
  props: {
790
794
  variant: {
@@ -804,15 +808,15 @@ var script$3 = defineComponent({
804
808
  }
805
809
  });
806
810
 
807
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
811
+ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
808
812
  return openBlock(), createElementBlock("div", {
809
813
  ref: 'root',
810
814
  class: normalizeClass(_ctx.rootStyles)
811
815
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
812
816
  }
813
817
 
814
- script$3.render = render$3;
815
- script$3.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-placeholder/OrDataGridTablePlaceholder.vue";
818
+ script$4.render = render$4;
819
+ script$4.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-placeholder/OrDataGridTablePlaceholder.vue";
816
820
 
817
821
  const DataGridTable = [
818
822
  // Layout
@@ -822,7 +826,7 @@ const DataGridTable = [
822
826
  // Interactivity
823
827
  'interactivity-default'];
824
828
 
825
- var script$2 = defineComponent({
829
+ var script$3 = defineComponent({
826
830
  name: 'OrDataGridTable',
827
831
  props: {
828
832
  columns: {
@@ -861,7 +865,7 @@ var script$2 = defineComponent({
861
865
  }
862
866
  });
863
867
 
864
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
868
+ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
865
869
  return openBlock(), createElementBlock("div", {
866
870
  ref: 'root',
867
871
  class: normalizeClass(_ctx.rootStyles),
@@ -869,8 +873,8 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
869
873
  }, [renderSlot(_ctx.$slots, "default")], 6 /* CLASS, STYLE */);
870
874
  }
871
875
 
872
- script$2.render = render$2;
873
- script$2.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table/OrDataGridTable.vue";
876
+ script$3.render = render$3;
877
+ script$3.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table/OrDataGridTable.vue";
874
878
 
875
879
  const DataGridToolbar = [
876
880
  // Layout
@@ -880,7 +884,7 @@ const DataGridToolbar = [
880
884
  // Spacing
881
885
  'gap-xl'];
882
886
 
883
- var script$1 = defineComponent({
887
+ var script$2 = defineComponent({
884
888
  name: 'OrDataGridToolbar',
885
889
  expose: ['root'],
886
890
  setup() {
@@ -894,15 +898,73 @@ var script$1 = defineComponent({
894
898
  }
895
899
  });
896
900
 
897
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
901
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
898
902
  return openBlock(), createElementBlock("div", {
899
903
  ref: 'root',
900
904
  class: normalizeClass(_ctx.rootStyles)
901
905
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
902
906
  }
903
907
 
908
+ script$2.render = render$2;
909
+ script$2.__file = "src/components/or-data-grid-v3/partials/or-data-grid-toolbar/OrDataGridToolbar.vue";
910
+
911
+ const DataGridNotification = [
912
+ // Position
913
+ 'grid sticky z-10',
914
+ // Layout
915
+ 'col-span-full'];
916
+ const DataGridNotificationPositionVariants = {
917
+ [DataGridVariant.Standard]: [
918
+ // Position
919
+ 'top-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
920
+ [DataGridVariant.Comfortable]: [
921
+ // Position
922
+ 'top-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
923
+ [DataGridVariant.Compact]: [
924
+ // Position
925
+ 'top-[calc(theme(spacing.xl)+theme(spacing.xs))]']
926
+ };
927
+
928
+ var script$1 = defineComponent({
929
+ components: {
930
+ OrNotification: script$q
931
+ },
932
+ props: {
933
+ notification: {
934
+ type: Object,
935
+ required: true
936
+ },
937
+ variant: {
938
+ type: String,
939
+ required: true
940
+ }
941
+ },
942
+ emits: ['close-notification'],
943
+ setup(props) {
944
+ const rootStyles = computed(() => ['or-data-grid-notification-v3', ...DataGridNotification, ...DataGridNotificationPositionVariants[props.variant]]);
945
+ return {
946
+ rootStyles
947
+ };
948
+ }
949
+ });
950
+
951
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
952
+ const _component_OrNotification = resolveComponent("OrNotification");
953
+ return openBlock(), createElementBlock("div", {
954
+ class: normalizeClass(_ctx.rootStyles)
955
+ }, [createVNode(_component_OrNotification, mergeProps(_ctx.notification, {
956
+ class: "rounded-0 shadow-none",
957
+ onClose: _cache[0] || (_cache[0] = $event => _ctx.$emit('close-notification'))
958
+ }), {
959
+ default: withCtx(() => [_ctx.$slots['notification'] ? renderSlot(_ctx.$slots, 'notification', {
960
+ key: 0
961
+ }) : createCommentVNode("v-if", true)]),
962
+ _: 3 /* FORWARDED */
963
+ }, 16 /* FULL_PROPS */)], 2 /* CLASS */);
964
+ }
965
+
904
966
  script$1.render = render$1;
905
- script$1.__file = "src/components/or-data-grid-v3/partials/or-data-grid-toolbar/OrDataGridToolbar.vue";
967
+ script$1.__file = "src/components/or-data-grid-v3/partials/or-data-grid-notification/OrDataGridNotification.vue";
906
968
 
907
969
  const DataGrid = [
908
970
  // Layout
@@ -911,25 +973,25 @@ const DataGrid = [
911
973
  var script = defineComponent({
912
974
  name: 'OrDataGrid',
913
975
  components: {
914
- OrCheckbox: script$f,
915
- OrDataGridFooter: script$e,
916
- OrDataGridHeader: script$d,
917
- OrDataGridTable: script$2,
918
- OrDataGridTableContent: script$a,
919
- OrDataGridTableContentCell: script$c,
920
- OrDataGridTableContentRow: script$b,
921
- OrDataGridTableFooter: script$7,
922
- OrDataGridTableFooterCell: script$9,
923
- OrDataGridTableFooterRow: script$8,
924
- OrDataGridTableHeader: script$4,
925
- OrDataGridTableHeaderCell: script$6,
926
- OrDataGridTableHeaderRow: script$5,
927
- OrDataGridTablePlaceholder: script$3,
928
- OrDataGridToolbar: script$1,
929
- OrPagination: script$p,
930
- OrSearch: script$q,
931
- OrSkeletonText: script$r,
932
- OrNotification: script$s
976
+ OrCheckbox: script$g,
977
+ OrDataGridFooter: script$f,
978
+ OrDataGridHeader: script$e,
979
+ OrDataGridTable: script$3,
980
+ OrDataGridTableContent: script$b,
981
+ OrDataGridTableContentCell: script$d,
982
+ OrDataGridTableContentRow: script$c,
983
+ OrDataGridTableFooter: script$8,
984
+ OrDataGridTableFooterCell: script$a,
985
+ OrDataGridTableFooterRow: script$9,
986
+ OrDataGridTableHeader: script$5,
987
+ OrDataGridTableHeaderCell: script$7,
988
+ OrDataGridTableHeaderRow: script$6,
989
+ OrDataGridTablePlaceholder: script$4,
990
+ OrDataGridToolbar: script$2,
991
+ OrDataGridNotification: script$1,
992
+ OrPagination: script$r,
993
+ OrSearch: script$s,
994
+ OrSkeletonText: script$t
933
995
  },
934
996
  model: {
935
997
  prop: 'modelValue',
@@ -963,9 +1025,13 @@ var script = defineComponent({
963
1025
  notification: {
964
1026
  type: Object,
965
1027
  default: undefined
1028
+ },
1029
+ interactiveRows: {
1030
+ type: Boolean,
1031
+ default: false
966
1032
  }
967
1033
  },
968
- emits: ['update:modelValue', 'update:item', 'close-notification'],
1034
+ emits: ['update:modelValue', 'update:item', 'close-notification', 'hover:row', 'blur:row', 'hover:cell', 'blur:cell', 'click:row'],
969
1035
  expose: ['root'],
970
1036
  setup(props, context) {
971
1037
  // Refs & Styles
@@ -1103,6 +1169,38 @@ var script = defineComponent({
1103
1169
  break;
1104
1170
  }
1105
1171
  }
1172
+ function handleMouseEnterRow(item) {
1173
+ if (!props.interactiveRows) return;
1174
+ context.emit('hover:row', item);
1175
+ }
1176
+ function handleMouseLeaveRow(item) {
1177
+ if (!props.interactiveRows) return;
1178
+ context.emit('blur:row', item);
1179
+ }
1180
+ function handleMouseEnterCell(item, columnName, value) {
1181
+ if (!props.interactiveRows) return;
1182
+ context.emit('hover:cell', {
1183
+ item,
1184
+ columnName,
1185
+ value
1186
+ });
1187
+ }
1188
+ function handleMouseLeaveCell(item, columnName, value) {
1189
+ if (!props.interactiveRows) return;
1190
+ context.emit('blur:cell', {
1191
+ item,
1192
+ columnName,
1193
+ value
1194
+ });
1195
+ }
1196
+ function handleRowClick(item) {
1197
+ if (!props.interactiveRows) return;
1198
+ context.emit('click:row', item);
1199
+ }
1200
+ // function handleCellClick(item: DataGridItem<T>, columnName: string, value: any): void {
1201
+ // if (!props.interactiveRows) return;
1202
+ // context.emit('click:cell', { item, columnName, value });
1203
+ // }
1106
1204
  function removeScrollOffset(header) {
1107
1205
  scrollOffsetStart.value.delete(header);
1108
1206
  scrollOffsetStart.value = new Map(scrollOffsetStart.value);
@@ -1122,6 +1220,11 @@ var script = defineComponent({
1122
1220
  selectingIndicator,
1123
1221
  showSelectingCouter,
1124
1222
  selectingDisabled,
1223
+ handleMouseEnterRow,
1224
+ handleMouseLeaveRow,
1225
+ handleMouseEnterCell,
1226
+ handleMouseLeaveCell,
1227
+ handleRowClick,
1125
1228
  selectingModel,
1126
1229
  filteringModel,
1127
1230
  searchingModel,
@@ -1135,10 +1238,6 @@ var script = defineComponent({
1135
1238
  }
1136
1239
  });
1137
1240
 
1138
- const _hoisted_1 = {
1139
- key: 0,
1140
- class: "grid col-span-full"
1141
- };
1142
1241
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1143
1242
  const _component_OrSearch = resolveComponent("OrSearch");
1144
1243
  const _component_OrDataGridHeader = resolveComponent("OrDataGridHeader");
@@ -1147,7 +1246,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1147
1246
  const _component_OrDataGridTableHeaderCell = resolveComponent("OrDataGridTableHeaderCell");
1148
1247
  const _component_OrDataGridTableHeaderRow = resolveComponent("OrDataGridTableHeaderRow");
1149
1248
  const _component_OrDataGridTableHeader = resolveComponent("OrDataGridTableHeader");
1150
- const _component_OrNotification = resolveComponent("OrNotification");
1249
+ const _component_OrDataGridNotification = resolveComponent("OrDataGridNotification");
1151
1250
  const _component_OrSkeletonText = resolveComponent("OrSkeletonText");
1152
1251
  const _component_OrDataGridTableContentCell = resolveComponent("OrDataGridTableContentCell");
1153
1252
  const _component_OrDataGridTableContentRow = resolveComponent("OrDataGridTableContentRow");
@@ -1232,21 +1331,25 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1232
1331
  _: 1 /* STABLE */
1233
1332
  }, 8 /* PROPS */, ["variant"])]),
1234
1333
  _: 1 /* STABLE */
1235
- }), _ctx.notification ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_OrNotification, mergeProps(_ctx.notification, {
1236
- class: "rounded-0",
1237
- onClose: _cache[3] || (_cache[3] = $event => _ctx.$emit('close-notification'))
1238
- }), {
1239
- default: withCtx(() => [_ctx.$slots['notification'] ? renderSlot(_ctx.$slots, 'notification', {
1240
- key: 0
1241
- }) : createCommentVNode("v-if", true)]),
1242
- _: 3 /* FORWARDED */
1243
- }, 16 /* FULL_PROPS */)])) : createCommentVNode("v-if", true), createVNode(_component_OrDataGridTableContent, null, {
1334
+ }), _ctx.notification ? (openBlock(), createBlock(_component_OrDataGridNotification, {
1335
+ key: 0,
1336
+ notification: _ctx.notification,
1337
+ variant: _ctx.variant,
1338
+ onCloseNotification: _cache[3] || (_cache[3] = $event => _ctx.$emit('close-notification'))
1339
+ }, createSlots({
1340
+ _: 2 /* DYNAMIC */
1341
+ }, [_ctx.$slots['notification'] ? {
1342
+ name: "notification",
1343
+ fn: withCtx(() => [renderSlot(_ctx.$slots, 'notification')]),
1344
+ key: "0"
1345
+ } : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["notification", "variant"])) : createCommentVNode("v-if", true), createVNode(_component_OrDataGridTableContent, null, {
1244
1346
  default: withCtx(() => [_ctx.loading ? (openBlock(), createElementBlock(Fragment, {
1245
1347
  key: 0
1246
1348
  }, renderList(10, n => {
1247
1349
  return createVNode(_component_OrDataGridTableContentRow, {
1248
1350
  key: n,
1249
- variant: _ctx.variant
1351
+ variant: _ctx.variant,
1352
+ interactive: _ctx.interactiveRows
1250
1353
  }, {
1251
1354
  default: withCtx(() => [_ctx.features.selecting ? (openBlock(), createBlock(_component_OrDataGridTableContentCell, {
1252
1355
  key: 0,
@@ -1269,14 +1372,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1269
1372
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["column", "features"]);
1270
1373
  }), 128 /* KEYED_FRAGMENT */))]),
1271
1374
  _: 2 /* DYNAMIC */
1272
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant"]);
1375
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant", "interactive"]);
1273
1376
  }), 64 /* STABLE_FRAGMENT */)) : _ctx.items.length > 0 ? (openBlock(true), createElementBlock(Fragment, {
1274
1377
  key: 1
1275
1378
  }, renderList(_ctx.items, item => {
1276
1379
  return openBlock(), createBlock(_component_OrDataGridTableContentRow, {
1277
1380
  key: item.id,
1278
1381
  variant: _ctx.variant,
1279
- selected: _ctx.selectingModel.includes(item.id)
1382
+ selected: _ctx.selectingModel.includes(item.id),
1383
+ interactive: _ctx.interactiveRows,
1384
+ onMouseenter: () => _ctx.handleMouseEnterRow(item),
1385
+ onMouseleave: () => _ctx.handleMouseLeaveRow(item),
1386
+ onClick: () => _ctx.handleRowClick(item)
1280
1387
  }, {
1281
1388
  default: withCtx(() => [_ctx.features.selecting ? (openBlock(), createBlock(_component_OrDataGridTableContentCell, {
1282
1389
  key: 0,
@@ -1284,7 +1391,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1284
1391
  stickiness: 'start'
1285
1392
  },
1286
1393
  "force-state": 'none',
1287
- class: "!py-xs !px-xs md:!py-none md:!px-sm+"
1394
+ class: "!py-xs !px-xs md:!py-none md:!px-sm+",
1395
+ onMouseenter: () => _ctx.handleMouseEnterCell(item, 'selecting', _ctx.selectingModel.includes(item.id)),
1396
+ onMouseleave: () => _ctx.handleMouseLeaveCell(item, 'selecting', _ctx.selectingModel.includes(item.id))
1288
1397
  }, {
1289
1398
  default: withCtx(() => [createVNode(_component_OrCheckbox, {
1290
1399
  modelValue: _ctx.selectingModel,
@@ -1293,7 +1402,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1293
1402
  disabled: _ctx.selectingDisabled
1294
1403
  }, null, 8 /* PROPS */, ["modelValue", "value", "disabled"])]),
1295
1404
  _: 2 /* DYNAMIC */
1296
- }, 1024 /* DYNAMIC_SLOTS */)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, column => {
1405
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onMouseenter", "onMouseleave"])) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, column => {
1297
1406
  return openBlock(), createBlock(_component_OrDataGridTableContentCell, {
1298
1407
  key: column.name,
1299
1408
  "model-value": item[column.name],
@@ -1303,17 +1412,19 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1303
1412
  item[column.name] = value;
1304
1413
  _ctx.$emit('update:item', item);
1305
1414
  },
1306
- onFocusin: _cache[5] || (_cache[5] = $event => _ctx.scrollTo($event))
1415
+ onFocusin: _cache[5] || (_cache[5] = $event => _ctx.scrollTo($event)),
1416
+ onMouseenter: () => _ctx.handleMouseEnterCell(item, column.name, item[column.name]),
1417
+ onMouseleave: () => _ctx.handleMouseLeaveCell(item, column.name, item[column.name])
1307
1418
  }, {
1308
1419
  default: withCtx(() => [renderSlot(_ctx.$slots, column.name, {
1309
1420
  column: column,
1310
1421
  item: item
1311
1422
  }, () => [createTextVNode(toDisplayString(item[column.name]), 1 /* TEXT */)])]),
1312
1423
  _: 2 /* DYNAMIC */
1313
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["model-value", "column", "features", "onInput"]);
1424
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["model-value", "column", "features", "onInput", "onMouseenter", "onMouseleave"]);
1314
1425
  }), 128 /* KEYED_FRAGMENT */))]),
1315
1426
  _: 2 /* DYNAMIC */
1316
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant", "selected"]);
1427
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]);
1317
1428
  }), 128 /* KEYED_FRAGMENT */)) : _ctx.$slots['noSearchResults'] && (_ctx.features.filtering && _ctx.filteringModel || _ctx.features.searching && _ctx.searchingModel) ? (openBlock(), createBlock(_component_OrDataGridTablePlaceholder, {
1318
1429
  key: 2,
1319
1430
  class: normalizeClass(['col-span-full']),
@@ -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,26 @@
1
+ import { PropType } from 'vue';
2
+ import { DataGridVariant } from '../../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ notification: {
5
+ type: PropType<any>;
6
+ required: true;
7
+ };
8
+ variant: {
9
+ type: PropType<DataGridVariant>;
10
+ required: true;
11
+ };
12
+ }, {
13
+ rootStyles: import("vue").ComputedRef<string[]>;
14
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close-notification"[], "close-notification", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ notification: {
16
+ type: PropType<any>;
17
+ required: true;
18
+ };
19
+ variant: {
20
+ type: PropType<DataGridVariant>;
21
+ required: true;
22
+ };
23
+ }>> & {
24
+ "onClose-notification"?: ((...args: any[]) => any) | undefined;
25
+ }, {}, {}>;
26
+ 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[]>;
@@ -9,6 +9,10 @@ declare const _default: import("vue").DefineComponent<{
9
9
  type: BooleanConstructor;
10
10
  default: boolean;
11
11
  };
12
+ interactive: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
12
16
  }, {
13
17
  root: import("vue").Ref<HTMLElement | undefined>;
14
18
  rootStyles: import("vue").ComputedRef<string[]>;
@@ -21,7 +25,12 @@ declare const _default: import("vue").DefineComponent<{
21
25
  type: BooleanConstructor;
22
26
  default: boolean;
23
27
  };
28
+ interactive: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
24
32
  }>>, {
25
33
  selected: boolean;
34
+ interactive: boolean;
26
35
  }, {}>;
27
36
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "20.3.0",
3
+ "version": "20.4.0",
4
4
  "description": "Vue components library for v3",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -44,8 +44,8 @@
44
44
  "@codemirror/view": "^6",
45
45
  "@floating-ui/dom": "1.5.3",
46
46
  "@lezer/highlight": "*",
47
- "@onereach/styles": "^20.3.0",
48
- "@onereach/ui-components-common": "^20.3.0",
47
+ "@onereach/styles": "^20.4.0",
48
+ "@onereach/ui-components-common": "^20.4.0",
49
49
  "@splidejs/splide": "4.0.6",
50
50
  "@tiptap/core": "2.0.3",
51
51
  "@tiptap/extension-blockquote": "2.0.3",
@@ -105,5 +105,5 @@
105
105
  "access": "public"
106
106
  },
107
107
  "npmUnpacked": "4.15.2",
108
- "gitHead": "da62f7d2af0507ea35abbe990f2c03918721e4f6"
108
+ "gitHead": "4739e1eb32ed19459b84bf21e1c5b7bfe548332e"
109
109
  }