@onereach/ui-components 19.3.1 → 19.4.0-beta.5050.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 +1 @@
1
- export { s as default } from '../OrDataGridV3-3c616520.js';
1
+ export { s as default } from '../OrDataGridV3-dcdb59c8.js';
@@ -29,6 +29,10 @@ declare const _default: import("vue").DefineComponent<{
29
29
  type: BooleanConstructor;
30
30
  default: boolean;
31
31
  };
32
+ notification: {
33
+ type: PropType<any>;
34
+ default: undefined;
35
+ };
32
36
  }, {
33
37
  root: import("vue").Ref<HTMLElement | undefined>;
34
38
  rootStyles: import("vue").ComputedRef<string[]>;
@@ -48,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
48
52
  updateScrollOffset: (header: HTMLElement, offset: number, column: DataGridColumn) => void;
49
53
  removeScrollOffset: (header: HTMLElement) => void;
50
54
  scrollTo: (event: FocusEvent) => void;
51
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:item")[], "update:modelValue" | "update:item", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
55
+ }, 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<{
52
56
  modelValue: {
53
57
  type: PropType<DataGridModelValue>;
54
58
  default: undefined;
@@ -76,9 +80,14 @@ declare const _default: import("vue").DefineComponent<{
76
80
  type: BooleanConstructor;
77
81
  default: boolean;
78
82
  };
83
+ notification: {
84
+ type: PropType<any>;
85
+ default: undefined;
86
+ };
79
87
  }>> & {
80
88
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81
89
  "onUpdate:item"?: ((...args: any[]) => any) | undefined;
90
+ "onClose-notification"?: ((...args: any[]) => any) | undefined;
82
91
  }, {
83
92
  modelValue: DataGridModelValue;
84
93
  items: {
@@ -88,5 +97,6 @@ declare const _default: import("vue").DefineComponent<{
88
97
  variant: DataGridVariant;
89
98
  features: DataGridFeatures;
90
99
  loading: boolean;
100
+ notification: any;
91
101
  }, {}>;
92
102
  export default _default;
@@ -1 +1 @@
1
- export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-3c616520.js';
1
+ export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-dcdb59c8.js';
@@ -1 +1 @@
1
- export { a as DataGrid } from '../OrDataGridV3-3c616520.js';
1
+ export { a as DataGrid } from '../OrDataGridV3-dcdb59c8.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode, createSlots, withCtx, createVNode, renderList, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode, createSlots, withCtx, createVNode, renderList, createTextVNode, toDisplayString, mergeProps } from 'vue';
2
2
  import { s as script$f } from './OrCheckboxV3-775b2227.js';
3
3
  import { s as script$g } from './OrDatePickerV3-c675b113.js';
4
4
  import { s as script$h } from './OrDateTimePickerV3-fae2c559.js';
@@ -13,6 +13,7 @@ import { s as script$o } from './OrIconV3-9807ee48.js';
13
13
  import { s as script$p } from './OrPaginationV3-0d2166b7.js';
14
14
  import script$q from './OrSearchV3/OrSearch.js';
15
15
  import { s as script$r } from './OrSkeletonV3-5b153caa.js';
16
+ import { s as script$s } from './OrNotificationV3-7ed646ba.js';
16
17
 
17
18
  const DataGridFooter = [
18
19
  // Layout
@@ -45,7 +46,7 @@ var script$e = defineComponent({
45
46
  }
46
47
  });
47
48
 
48
- const _hoisted_1$4 = {
49
+ const _hoisted_1$5 = {
49
50
  key: 1,
50
51
  class: /*#__PURE__*/normalizeClass(['grow'])
51
52
  };
@@ -56,7 +57,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
56
57
  }, [_ctx.$slots['status'] ? (openBlock(), createElementBlock("div", {
57
58
  key: 0,
58
59
  class: normalizeClass(_ctx.statusStyles)
59
- }, [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 */);
60
+ }, [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 */);
60
61
  }
61
62
 
62
63
  script$e.render = render$e;
@@ -89,7 +90,7 @@ var script$d = defineComponent({
89
90
  }
90
91
  });
91
92
 
92
- const _hoisted_1$3 = {
93
+ const _hoisted_1$4 = {
93
94
  key: 1,
94
95
  class: /*#__PURE__*/normalizeClass(['grow'])
95
96
  };
@@ -100,7 +101,7 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
100
101
  }, [_ctx.$slots['title'] ? (openBlock(), createElementBlock("div", {
101
102
  key: 0,
102
103
  class: normalizeClass(_ctx.titleStyles)
103
- }, [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 */);
104
+ }, [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 */);
104
105
  }
105
106
 
106
107
  script$d.render = render$d;
@@ -213,7 +214,7 @@ var script$c = defineComponent({
213
214
  }
214
215
  });
215
216
 
216
- const _hoisted_1$2 = {
217
+ const _hoisted_1$3 = {
217
218
  key: 2,
218
219
  class: /*#__PURE__*/normalizeClass(['truncate'])
219
220
  };
@@ -289,7 +290,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
289
290
  modelValue: _ctx.model,
290
291
  "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => _ctx.model = $event),
291
292
  variant: 'embedded'
292
- }, null, 8 /* PROPS */, ["modelValue"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("div", _hoisted_1$2, [renderSlot(_ctx.$slots, "default")]))], 6 /* CLASS, STYLE */);
293
+ }, null, 8 /* PROPS */, ["modelValue"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("div", _hoisted_1$3, [renderSlot(_ctx.$slots, "default")]))], 6 /* CLASS, STYLE */);
293
294
  }
294
295
 
295
296
  script$c.render = render$c;
@@ -353,13 +354,13 @@ var script$b = defineComponent({
353
354
  }
354
355
  });
355
356
 
356
- const _hoisted_1$1 = ["selected"];
357
+ const _hoisted_1$2 = ["selected"];
357
358
  function render$b(_ctx, _cache, $props, $setup, $data, $options) {
358
359
  return openBlock(), createElementBlock("div", {
359
360
  ref: 'root',
360
361
  class: normalizeClass(_ctx.rootStyles),
361
362
  selected: _ctx.selected
362
- }, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$1);
363
+ }, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$2);
363
364
  }
364
365
 
365
366
  script$b.render = render$b;
@@ -635,7 +636,7 @@ var script$6 = defineComponent({
635
636
  }
636
637
  });
637
638
 
638
- const _hoisted_1 = {
639
+ const _hoisted_1$1 = {
639
640
  class: /*#__PURE__*/normalizeClass(['truncate'])
640
641
  };
641
642
  function render$6(_ctx, _cache, $props, $setup, $data, $options) {
@@ -645,7 +646,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
645
646
  class: normalizeClass(_ctx.rootStyles),
646
647
  style: normalizeStyle(_ctx.rootInlineStyles),
647
648
  onClick: _cache[0] || (_cache[0] = $event => _ctx.toggleSorting())
648
- }, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), _ctx.model ? (openBlock(), createBlock(_component_OrIcon, {
649
+ }, [createElementVNode("div", _hoisted_1$1, [renderSlot(_ctx.$slots, "default")]), _ctx.model ? (openBlock(), createBlock(_component_OrIcon, {
649
650
  key: 0,
650
651
  icon: _ctx.model.direction === 'asc' ? 'arrow_upward' : 'arrow_downward'
651
652
  }, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)], 6 /* CLASS, STYLE */);
@@ -898,7 +899,8 @@ var script = defineComponent({
898
899
  OrDataGridToolbar: script$1,
899
900
  OrPagination: script$p,
900
901
  OrSearch: script$q,
901
- OrSkeletonText: script$r
902
+ OrSkeletonText: script$r,
903
+ OrNotification: script$s
902
904
  },
903
905
  model: {
904
906
  prop: 'modelValue',
@@ -928,9 +930,13 @@ var script = defineComponent({
928
930
  loading: {
929
931
  type: Boolean,
930
932
  default: false
933
+ },
934
+ notification: {
935
+ type: Object,
936
+ default: undefined
931
937
  }
932
938
  },
933
- emits: ['update:modelValue', 'update:item'],
939
+ emits: ['update:modelValue', 'update:item', 'close-notification'],
934
940
  expose: ['root'],
935
941
  setup(props, context) {
936
942
  // Refs & Styles
@@ -1086,6 +1092,10 @@ var script = defineComponent({
1086
1092
  }
1087
1093
  });
1088
1094
 
1095
+ const _hoisted_1 = {
1096
+ key: 0,
1097
+ class: "grid col-span-full"
1098
+ };
1089
1099
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1090
1100
  const _component_OrSearch = resolveComponent("OrSearch");
1091
1101
  const _component_OrDataGridHeader = resolveComponent("OrDataGridHeader");
@@ -1094,6 +1104,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1094
1104
  const _component_OrDataGridTableHeaderCell = resolveComponent("OrDataGridTableHeaderCell");
1095
1105
  const _component_OrDataGridTableHeaderRow = resolveComponent("OrDataGridTableHeaderRow");
1096
1106
  const _component_OrDataGridTableHeader = resolveComponent("OrDataGridTableHeader");
1107
+ const _component_OrNotification = resolveComponent("OrNotification");
1097
1108
  const _component_OrSkeletonText = resolveComponent("OrSkeletonText");
1098
1109
  const _component_OrDataGridTableContentCell = resolveComponent("OrDataGridTableContentCell");
1099
1110
  const _component_OrDataGridTableContentRow = resolveComponent("OrDataGridTableContentRow");
@@ -1174,7 +1185,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1174
1185
  _: 1 /* STABLE */
1175
1186
  }, 8 /* PROPS */, ["variant"])]),
1176
1187
  _: 1 /* STABLE */
1177
- }), createVNode(_component_OrDataGridTableContent, null, {
1188
+ }), _ctx.notification ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_OrNotification, mergeProps(_ctx.notification, {
1189
+ class: "rounded-0",
1190
+ onClose: _cache[3] || (_cache[3] = $event => _ctx.$emit('close-notification'))
1191
+ }), {
1192
+ default: withCtx(() => [_ctx.$slots['notification'] ? renderSlot(_ctx.$slots, 'notification', {
1193
+ key: 0
1194
+ }) : createCommentVNode("v-if", true)]),
1195
+ _: 3 /* FORWARDED */
1196
+ }, 16 /* FULL_PROPS */)])) : createCommentVNode("v-if", true), createVNode(_component_OrDataGridTableContent, null, {
1178
1197
  default: withCtx(() => [_ctx.loading ? (openBlock(), createElementBlock(Fragment, {
1179
1198
  key: 0
1180
1199
  }, renderList(10, n => {
@@ -1221,7 +1240,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1221
1240
  }, {
1222
1241
  default: withCtx(() => [createVNode(_component_OrCheckbox, {
1223
1242
  modelValue: _ctx.selectingModel,
1224
- "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.selectingModel = $event),
1243
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.selectingModel = $event),
1225
1244
  value: item.id
1226
1245
  }, null, 8 /* PROPS */, ["modelValue", "value"])]),
1227
1246
  _: 2 /* DYNAMIC */
@@ -1235,7 +1254,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1235
1254
  item[column.name] = value;
1236
1255
  _ctx.$emit('update:item', item);
1237
1256
  },
1238
- onFocusin: _cache[4] || (_cache[4] = $event => _ctx.scrollTo($event))
1257
+ onFocusin: _cache[5] || (_cache[5] = $event => _ctx.scrollTo($event))
1239
1258
  }, {
1240
1259
  default: withCtx(() => [renderSlot(_ctx.$slots, column.name, {
1241
1260
  column: column,
@@ -1298,7 +1317,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1298
1317
  name: "paging",
1299
1318
  fn: withCtx(() => [createVNode(_component_OrPagination, {
1300
1319
  modelValue: _ctx.pagingModel,
1301
- "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => _ctx.pagingModel = $event),
1320
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => _ctx.pagingModel = $event),
1302
1321
  length: _ctx.features.paging.length,
1303
1322
  options: _ctx.features.paging.options
1304
1323
  }, null, 8 /* PROPS */, ["modelValue", "length", "options"])]),
@@ -1 +1 @@
1
- export { s as default } from '../OrNotificationV3-d111cab4.js';
1
+ export { s as default } from '../OrNotificationV3-7ed646ba.js';
@@ -9,6 +9,10 @@ declare const _default: import("vue").DefineComponent<{
9
9
  type: BooleanConstructor;
10
10
  default: boolean;
11
11
  };
12
+ message: {
13
+ type: StringConstructor;
14
+ default: undefined;
15
+ };
12
16
  }, {
13
17
  root: import("vue").Ref<HTMLElement | undefined>;
14
18
  rootStyles: import("vue").ComputedRef<string[]>;
@@ -23,8 +27,13 @@ declare const _default: import("vue").DefineComponent<{
23
27
  type: BooleanConstructor;
24
28
  default: boolean;
25
29
  };
30
+ message: {
31
+ type: StringConstructor;
32
+ default: undefined;
33
+ };
26
34
  }>>, {
27
35
  variant: "success" | "warning" | "error" | "info";
28
36
  disableClose: boolean;
37
+ message: string;
29
38
  }, {}>;
30
39
  export default _default;
@@ -1 +1 @@
1
- export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotificationV3-d111cab4.js';
1
+ export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotificationV3-7ed646ba.js';
@@ -1 +1 @@
1
- export { N as NotificationVariant } from '../OrNotificationV3-d111cab4.js';
1
+ export { N as NotificationVariant } from '../OrNotificationV3-7ed646ba.js';
@@ -1 +1 @@
1
- export { a as Notification, c as NotificationIcon, d as NotificationIconVariants, b as NotificationVariants } from '../OrNotificationV3-d111cab4.js';
1
+ export { a as Notification, c as NotificationIcon, d as NotificationIconVariants, b as NotificationVariants } from '../OrNotificationV3-7ed646ba.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, createBlock, withModifiers, createCommentVNode } from 'vue';
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, createTextVNode, toDisplayString, createBlock, withModifiers, createCommentVNode } from 'vue';
2
2
  import { s as script$1 } from './OrIconV3-9807ee48.js';
3
3
  import { s as script$2 } from './OrIconButtonV3-47bef849.js';
4
4
 
@@ -77,6 +77,10 @@ var script = defineComponent({
77
77
  disableClose: {
78
78
  type: Boolean,
79
79
  default: false
80
+ },
81
+ message: {
82
+ type: String,
83
+ default: undefined
80
84
  }
81
85
  },
82
86
  expose: ['root'],
@@ -128,7 +132,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
128
132
  class: normalizeClass(_ctx.iconStyles),
129
133
  icon: _ctx.icon,
130
134
  variant: 'filled-bold'
131
- }, null, 8 /* PROPS */, ["class", "icon"])]), createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")]), createElementVNode("div", _hoisted_3, [!_ctx.disableClose ? (openBlock(), createBlock(_component_OrIconButton, {
135
+ }, null, 8 /* PROPS */, ["class", "icon"])]), createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.message), 1 /* TEXT */)])]), createElementVNode("div", _hoisted_3, [!_ctx.disableClose ? (openBlock(), createBlock(_component_OrIconButton, {
132
136
  key: 0,
133
137
  icon: 'close',
134
138
  size: 'm',
@@ -24,7 +24,7 @@ export { s as OrCombinedInputV3 } from './OrCombinedInputV3-7aa0d255.js';
24
24
  export { s as OrConfirm } from './OrConfirm-42142758.js';
25
25
  export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirmV3-b8e40c10.js';
26
26
  export { default as OrContextMenuV3 } from './OrContextMenuV3/OrContextMenu.js';
27
- export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-3c616520.js';
27
+ export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-dcdb59c8.js';
28
28
  export { s as OrDateFormatV3 } from './OrDateFormatV3-3495075a.js';
29
29
  export { s as OrDatePickerV3 } from './OrDatePickerV3-c675b113.js';
30
30
  export { s as OrDateRangePickerV3 } from './OrDateRangePickerV3-ab4a5170.js';
@@ -70,7 +70,7 @@ export { s as OrMenuV3 } from './OrMenuV3-e7d4f361.js';
70
70
  export { s as OrModal, O as OrModalSizes } from './OrModal-84dcf453.js';
71
71
  export { M as ModalSize, s as OrModalV3 } from './OrModalV3-4caade87.js';
72
72
  export { OR_NOTIFICATION_SIZE, OR_NOTIFICATION_TYPE, OrNotification } from './OrNotification/index.js';
73
- export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotificationV3-d111cab4.js';
73
+ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotificationV3-7ed646ba.js';
74
74
  export { default as OrNumberInput } from './OrNumberInput/OrNumberInput.js';
75
75
  export { default as OrOverflowMenu } from './OrOverflowMenu/OrOverflowMenu.js';
76
76
  export { default as OrOverlay } from './OrOverlay/OrOverlay.js';