@onereach/ui-components 20.3.0 → 20.3.1
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.
- package/dist/esm/components/or-data-grid-v3/index.js +181 -124
- package/dist/esm/components/or-data-grid-v3/partials/index.d.ts +1 -0
- package/dist/esm/components/or-data-grid-v3/partials/or-data-grid-notification/OrDataGridNotification.vue.d.ts +26 -0
- package/dist/esm/components/or-data-grid-v3/partials/or-data-grid-notification/styles.d.ts +3 -0
- package/package.json +4 -4
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode,
|
|
2
|
-
import { OrCheckboxV3 as script$
|
|
3
|
-
import { OrDatePickerV3 as script$
|
|
4
|
-
import { s as script$
|
|
5
|
-
import { OrInputV3 as script$
|
|
6
|
-
import { OrRatingV3 as script$
|
|
7
|
-
import { OrSelectV3 as script$
|
|
8
|
-
import { OrSwitchV3 as script$
|
|
9
|
-
import { OrTagInputV3 as script$
|
|
10
|
-
import { OrTimePickerV3 as script$
|
|
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$
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
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$
|
|
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$
|
|
78
|
+
const _hoisted_1$4 = {
|
|
79
79
|
key: 1,
|
|
80
80
|
class: /*#__PURE__*/normalizeClass(['grow'])
|
|
81
81
|
};
|
|
82
|
-
function render$
|
|
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$
|
|
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$
|
|
93
|
-
script$
|
|
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$
|
|
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$
|
|
122
|
+
const _hoisted_1$3 = {
|
|
123
123
|
key: 1,
|
|
124
124
|
class: /*#__PURE__*/normalizeClass(['grow'])
|
|
125
125
|
};
|
|
126
|
-
function render$
|
|
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$
|
|
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$
|
|
137
|
-
script$
|
|
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$
|
|
153
|
+
var script$d = defineComponent({
|
|
154
154
|
name: 'OrDataGridTableContentCell',
|
|
155
155
|
components: {
|
|
156
|
-
OrCheckbox: script$
|
|
157
|
-
OrDatePicker: script$
|
|
158
|
-
OrDateTimePicker: script$
|
|
159
|
-
OrInput: script$
|
|
160
|
-
OrRating: script$
|
|
161
|
-
OrSelect: script$
|
|
162
|
-
OrSwitch: script$
|
|
163
|
-
OrTagInput: script$
|
|
164
|
-
OrTimePicker: script$
|
|
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$
|
|
246
|
+
const _hoisted_1$2 = {
|
|
247
247
|
key: 2,
|
|
248
248
|
class: /*#__PURE__*/normalizeClass(['truncate'])
|
|
249
249
|
};
|
|
250
|
-
function render$
|
|
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$
|
|
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$
|
|
326
|
-
script$
|
|
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$
|
|
362
|
+
var script$c = defineComponent({
|
|
363
363
|
name: 'OrDataGridTableContentRow',
|
|
364
364
|
props: {
|
|
365
365
|
variant: {
|
|
@@ -383,23 +383,23 @@ var script$b = defineComponent({
|
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
|
|
386
|
-
const _hoisted_1$
|
|
387
|
-
function render$
|
|
386
|
+
const _hoisted_1$1 = ["selected"];
|
|
387
|
+
function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
388
388
|
return openBlock(), createElementBlock("div", {
|
|
389
389
|
ref: 'root',
|
|
390
390
|
class: normalizeClass(_ctx.rootStyles),
|
|
391
391
|
selected: _ctx.selected
|
|
392
|
-
}, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$
|
|
392
|
+
}, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$1);
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
script$
|
|
396
|
-
script$
|
|
395
|
+
script$c.render = render$c;
|
|
396
|
+
script$c.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content-row/OrDataGridTableContentRow.vue";
|
|
397
397
|
|
|
398
398
|
const DataGridTableContent = [
|
|
399
399
|
// Layout
|
|
400
400
|
'contents'];
|
|
401
401
|
|
|
402
|
-
var script$
|
|
402
|
+
var script$b = defineComponent({
|
|
403
403
|
name: 'OrDataGridTableContent',
|
|
404
404
|
expose: ['root'],
|
|
405
405
|
setup() {
|
|
@@ -413,15 +413,15 @@ var script$a = defineComponent({
|
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
|
|
416
|
-
function render$
|
|
416
|
+
function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
417
417
|
return openBlock(), createElementBlock("div", {
|
|
418
418
|
ref: 'root',
|
|
419
419
|
class: normalizeClass(_ctx.rootStyles)
|
|
420
420
|
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
script$
|
|
424
|
-
script$
|
|
423
|
+
script$b.render = render$b;
|
|
424
|
+
script$b.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content/OrDataGridTableContent.vue";
|
|
425
425
|
|
|
426
426
|
const DataGridTableFooterCell = [
|
|
427
427
|
// Layout
|
|
@@ -431,7 +431,7 @@ const DataGridTableFooterCell = [
|
|
|
431
431
|
// Theme
|
|
432
432
|
'theme-border-transparent border-1', 'dark:theme-border-transparent-dark'];
|
|
433
433
|
|
|
434
|
-
var script$
|
|
434
|
+
var script$a = defineComponent({
|
|
435
435
|
name: 'OrDataGridTableFooterCell',
|
|
436
436
|
expose: ['root'],
|
|
437
437
|
setup() {
|
|
@@ -445,15 +445,15 @@ var script$9 = defineComponent({
|
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
|
|
448
|
-
function render$
|
|
448
|
+
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
449
449
|
return openBlock(), createElementBlock("div", {
|
|
450
450
|
ref: 'root',
|
|
451
451
|
class: normalizeClass(_ctx.rootStyles)
|
|
452
452
|
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
script$
|
|
456
|
-
script$
|
|
455
|
+
script$a.render = render$a;
|
|
456
|
+
script$a.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/OrDataGridTableFooterCell.vue";
|
|
457
457
|
|
|
458
458
|
const DataGridTableFooterRow = [
|
|
459
459
|
// Layout
|
|
@@ -476,7 +476,7 @@ const DataGridTableFooterRowVariants = {
|
|
|
476
476
|
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
|
|
477
477
|
};
|
|
478
478
|
|
|
479
|
-
var script$
|
|
479
|
+
var script$9 = defineComponent({
|
|
480
480
|
name: 'OrDataGridTableFooterRow',
|
|
481
481
|
props: {
|
|
482
482
|
variant: {
|
|
@@ -496,21 +496,21 @@ var script$8 = defineComponent({
|
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
|
|
499
|
-
function render$
|
|
499
|
+
function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
500
500
|
return openBlock(), createElementBlock("div", {
|
|
501
501
|
ref: 'root',
|
|
502
502
|
class: normalizeClass(_ctx.rootStyles)
|
|
503
503
|
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
script$
|
|
507
|
-
script$
|
|
506
|
+
script$9.render = render$9;
|
|
507
|
+
script$9.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/OrDataGridTableFooterRow.vue";
|
|
508
508
|
|
|
509
509
|
const DataGridTableFooter = [
|
|
510
510
|
// Layout
|
|
511
511
|
'contents'];
|
|
512
512
|
|
|
513
|
-
var script$
|
|
513
|
+
var script$8 = defineComponent({
|
|
514
514
|
name: 'OrDataGridTableFooter',
|
|
515
515
|
expose: ['root'],
|
|
516
516
|
setup() {
|
|
@@ -524,15 +524,15 @@ var script$7 = defineComponent({
|
|
|
524
524
|
}
|
|
525
525
|
});
|
|
526
526
|
|
|
527
|
-
function render$
|
|
527
|
+
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
528
528
|
return openBlock(), createElementBlock("div", {
|
|
529
529
|
ref: 'root',
|
|
530
530
|
class: normalizeClass(_ctx.rootStyles)
|
|
531
531
|
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
-
script$
|
|
535
|
-
script$
|
|
534
|
+
script$8.render = render$8;
|
|
535
|
+
script$8.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer/OrDataGridTableFooter.vue";
|
|
536
536
|
|
|
537
537
|
const DataGridTableHeaderCell = [
|
|
538
538
|
// Layout
|
|
@@ -546,10 +546,10 @@ const DataGridTableHeaderCell = [
|
|
|
546
546
|
// Theme (.sticky-end)
|
|
547
547
|
'[&.sticky-end]:border-s-disabled', 'dark:[&.sticky-end]:border-s-disabled-dark'];
|
|
548
548
|
|
|
549
|
-
var script$
|
|
549
|
+
var script$7 = defineComponent({
|
|
550
550
|
name: 'OrDataGridTableHeaderCell',
|
|
551
551
|
components: {
|
|
552
|
-
OrIcon: script$
|
|
552
|
+
OrIcon: script$p
|
|
553
553
|
},
|
|
554
554
|
model: {
|
|
555
555
|
prop: 'modelValue',
|
|
@@ -665,24 +665,24 @@ var script$6 = defineComponent({
|
|
|
665
665
|
}
|
|
666
666
|
});
|
|
667
667
|
|
|
668
|
-
const _hoisted_1
|
|
668
|
+
const _hoisted_1 = {
|
|
669
669
|
class: /*#__PURE__*/normalizeClass(['truncate'])
|
|
670
670
|
};
|
|
671
|
-
function render$
|
|
671
|
+
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
672
672
|
const _component_OrIcon = resolveComponent("OrIcon");
|
|
673
673
|
return openBlock(), createElementBlock("div", {
|
|
674
674
|
ref: 'root',
|
|
675
675
|
class: normalizeClass(_ctx.rootStyles),
|
|
676
676
|
style: normalizeStyle(_ctx.rootInlineStyles),
|
|
677
677
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.toggleSorting())
|
|
678
|
-
}, [createElementVNode("div", _hoisted_1
|
|
678
|
+
}, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), _ctx.model ? (openBlock(), createBlock(_component_OrIcon, {
|
|
679
679
|
key: 0,
|
|
680
680
|
icon: _ctx.model.direction === 'asc' ? 'arrow_upward' : 'arrow_downward'
|
|
681
681
|
}, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)], 6 /* CLASS, STYLE */);
|
|
682
682
|
}
|
|
683
683
|
|
|
684
|
-
script$
|
|
685
|
-
script$
|
|
684
|
+
script$7.render = render$7;
|
|
685
|
+
script$7.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue";
|
|
686
686
|
|
|
687
687
|
const DataGridTableHeaderRow = [
|
|
688
688
|
// Position
|
|
@@ -705,7 +705,7 @@ const DataGridTableHeaderRowVariants = {
|
|
|
705
705
|
'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
|
|
706
706
|
};
|
|
707
707
|
|
|
708
|
-
var script$
|
|
708
|
+
var script$6 = defineComponent({
|
|
709
709
|
name: 'OrDataGridTableHeaderRow',
|
|
710
710
|
props: {
|
|
711
711
|
variant: {
|
|
@@ -725,21 +725,21 @@ var script$5 = defineComponent({
|
|
|
725
725
|
}
|
|
726
726
|
});
|
|
727
727
|
|
|
728
|
-
function render$
|
|
728
|
+
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
729
729
|
return openBlock(), createElementBlock("div", {
|
|
730
730
|
ref: 'root',
|
|
731
731
|
class: normalizeClass(_ctx.rootStyles)
|
|
732
732
|
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
733
733
|
}
|
|
734
734
|
|
|
735
|
-
script$
|
|
736
|
-
script$
|
|
735
|
+
script$6.render = render$6;
|
|
736
|
+
script$6.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-row/OrDataGridTableHeaderRow.vue";
|
|
737
737
|
|
|
738
738
|
const DataGridTableHeader = [
|
|
739
739
|
// Layout
|
|
740
740
|
'contents'];
|
|
741
741
|
|
|
742
|
-
var script$
|
|
742
|
+
var script$5 = defineComponent({
|
|
743
743
|
name: 'OrDataGridTableHeader',
|
|
744
744
|
expose: ['root'],
|
|
745
745
|
setup() {
|
|
@@ -753,15 +753,15 @@ var script$4 = defineComponent({
|
|
|
753
753
|
}
|
|
754
754
|
});
|
|
755
755
|
|
|
756
|
-
function render$
|
|
756
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
757
757
|
return openBlock(), createElementBlock("div", {
|
|
758
758
|
ref: 'root',
|
|
759
759
|
class: normalizeClass(_ctx.rootStyles)
|
|
760
760
|
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
761
761
|
}
|
|
762
762
|
|
|
763
|
-
script$
|
|
764
|
-
script$
|
|
763
|
+
script$5.render = render$5;
|
|
764
|
+
script$5.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header/OrDataGridTableHeader.vue";
|
|
765
765
|
|
|
766
766
|
const DataGridTablePlaceholder = [
|
|
767
767
|
// Layout
|
|
@@ -784,7 +784,7 @@ const DataGridTablePlaceholderVariants = {
|
|
|
784
784
|
'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
|
|
785
785
|
};
|
|
786
786
|
|
|
787
|
-
var script$
|
|
787
|
+
var script$4 = defineComponent({
|
|
788
788
|
name: 'OrDataGridTablePlaceholder',
|
|
789
789
|
props: {
|
|
790
790
|
variant: {
|
|
@@ -804,15 +804,15 @@ var script$3 = defineComponent({
|
|
|
804
804
|
}
|
|
805
805
|
});
|
|
806
806
|
|
|
807
|
-
function render$
|
|
807
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
808
808
|
return openBlock(), createElementBlock("div", {
|
|
809
809
|
ref: 'root',
|
|
810
810
|
class: normalizeClass(_ctx.rootStyles)
|
|
811
811
|
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
812
812
|
}
|
|
813
813
|
|
|
814
|
-
script$
|
|
815
|
-
script$
|
|
814
|
+
script$4.render = render$4;
|
|
815
|
+
script$4.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-placeholder/OrDataGridTablePlaceholder.vue";
|
|
816
816
|
|
|
817
817
|
const DataGridTable = [
|
|
818
818
|
// Layout
|
|
@@ -822,7 +822,7 @@ const DataGridTable = [
|
|
|
822
822
|
// Interactivity
|
|
823
823
|
'interactivity-default'];
|
|
824
824
|
|
|
825
|
-
var script$
|
|
825
|
+
var script$3 = defineComponent({
|
|
826
826
|
name: 'OrDataGridTable',
|
|
827
827
|
props: {
|
|
828
828
|
columns: {
|
|
@@ -861,7 +861,7 @@ var script$2 = defineComponent({
|
|
|
861
861
|
}
|
|
862
862
|
});
|
|
863
863
|
|
|
864
|
-
function render$
|
|
864
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
865
865
|
return openBlock(), createElementBlock("div", {
|
|
866
866
|
ref: 'root',
|
|
867
867
|
class: normalizeClass(_ctx.rootStyles),
|
|
@@ -869,8 +869,8 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
869
869
|
}, [renderSlot(_ctx.$slots, "default")], 6 /* CLASS, STYLE */);
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
script$
|
|
873
|
-
script$
|
|
872
|
+
script$3.render = render$3;
|
|
873
|
+
script$3.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table/OrDataGridTable.vue";
|
|
874
874
|
|
|
875
875
|
const DataGridToolbar = [
|
|
876
876
|
// Layout
|
|
@@ -880,7 +880,7 @@ const DataGridToolbar = [
|
|
|
880
880
|
// Spacing
|
|
881
881
|
'gap-xl'];
|
|
882
882
|
|
|
883
|
-
var script$
|
|
883
|
+
var script$2 = defineComponent({
|
|
884
884
|
name: 'OrDataGridToolbar',
|
|
885
885
|
expose: ['root'],
|
|
886
886
|
setup() {
|
|
@@ -894,15 +894,73 @@ var script$1 = defineComponent({
|
|
|
894
894
|
}
|
|
895
895
|
});
|
|
896
896
|
|
|
897
|
-
function render$
|
|
897
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
898
898
|
return openBlock(), createElementBlock("div", {
|
|
899
899
|
ref: 'root',
|
|
900
900
|
class: normalizeClass(_ctx.rootStyles)
|
|
901
901
|
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
+
script$2.render = render$2;
|
|
905
|
+
script$2.__file = "src/components/or-data-grid-v3/partials/or-data-grid-toolbar/OrDataGridToolbar.vue";
|
|
906
|
+
|
|
907
|
+
const DataGridNotification = [
|
|
908
|
+
// Position
|
|
909
|
+
'grid sticky z-10',
|
|
910
|
+
// Layout
|
|
911
|
+
'col-span-full'];
|
|
912
|
+
const DataGridNotificationPositionVariants = {
|
|
913
|
+
[DataGridVariant.Standard]: [
|
|
914
|
+
// Position
|
|
915
|
+
'top-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
|
|
916
|
+
[DataGridVariant.Comfortable]: [
|
|
917
|
+
// Position
|
|
918
|
+
'top-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
|
|
919
|
+
[DataGridVariant.Compact]: [
|
|
920
|
+
// Position
|
|
921
|
+
'top-[calc(theme(spacing.xl)+theme(spacing.xs))]']
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
var script$1 = defineComponent({
|
|
925
|
+
components: {
|
|
926
|
+
OrNotification: script$q
|
|
927
|
+
},
|
|
928
|
+
props: {
|
|
929
|
+
notification: {
|
|
930
|
+
type: Object,
|
|
931
|
+
required: true
|
|
932
|
+
},
|
|
933
|
+
variant: {
|
|
934
|
+
type: String,
|
|
935
|
+
required: true
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
emits: ['close-notification'],
|
|
939
|
+
setup(props) {
|
|
940
|
+
const rootStyles = computed(() => ['or-data-grid-notification-v3', ...DataGridNotification, ...DataGridNotificationPositionVariants[props.variant]]);
|
|
941
|
+
return {
|
|
942
|
+
rootStyles
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
|
|
947
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
948
|
+
const _component_OrNotification = resolveComponent("OrNotification");
|
|
949
|
+
return openBlock(), createElementBlock("div", {
|
|
950
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
951
|
+
}, [createVNode(_component_OrNotification, mergeProps(_ctx.notification, {
|
|
952
|
+
class: "rounded-0 shadow-none",
|
|
953
|
+
onClose: _cache[0] || (_cache[0] = $event => _ctx.$emit('close-notification'))
|
|
954
|
+
}), {
|
|
955
|
+
default: withCtx(() => [_ctx.$slots['notification'] ? renderSlot(_ctx.$slots, 'notification', {
|
|
956
|
+
key: 0
|
|
957
|
+
}) : createCommentVNode("v-if", true)]),
|
|
958
|
+
_: 3 /* FORWARDED */
|
|
959
|
+
}, 16 /* FULL_PROPS */)], 2 /* CLASS */);
|
|
960
|
+
}
|
|
961
|
+
|
|
904
962
|
script$1.render = render$1;
|
|
905
|
-
script$1.__file = "src/components/or-data-grid-v3/partials/or-data-grid-
|
|
963
|
+
script$1.__file = "src/components/or-data-grid-v3/partials/or-data-grid-notification/OrDataGridNotification.vue";
|
|
906
964
|
|
|
907
965
|
const DataGrid = [
|
|
908
966
|
// Layout
|
|
@@ -911,25 +969,25 @@ const DataGrid = [
|
|
|
911
969
|
var script = defineComponent({
|
|
912
970
|
name: 'OrDataGrid',
|
|
913
971
|
components: {
|
|
914
|
-
OrCheckbox: script$
|
|
915
|
-
OrDataGridFooter: script$
|
|
916
|
-
OrDataGridHeader: script$
|
|
917
|
-
OrDataGridTable: script$
|
|
918
|
-
OrDataGridTableContent: script$
|
|
919
|
-
OrDataGridTableContentCell: script$
|
|
920
|
-
OrDataGridTableContentRow: script$
|
|
921
|
-
OrDataGridTableFooter: script$
|
|
922
|
-
OrDataGridTableFooterCell: script$
|
|
923
|
-
OrDataGridTableFooterRow: script$
|
|
924
|
-
OrDataGridTableHeader: script$
|
|
925
|
-
OrDataGridTableHeaderCell: script$
|
|
926
|
-
OrDataGridTableHeaderRow: script$
|
|
927
|
-
OrDataGridTablePlaceholder: script$
|
|
928
|
-
OrDataGridToolbar: script$
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
972
|
+
OrCheckbox: script$g,
|
|
973
|
+
OrDataGridFooter: script$f,
|
|
974
|
+
OrDataGridHeader: script$e,
|
|
975
|
+
OrDataGridTable: script$3,
|
|
976
|
+
OrDataGridTableContent: script$b,
|
|
977
|
+
OrDataGridTableContentCell: script$d,
|
|
978
|
+
OrDataGridTableContentRow: script$c,
|
|
979
|
+
OrDataGridTableFooter: script$8,
|
|
980
|
+
OrDataGridTableFooterCell: script$a,
|
|
981
|
+
OrDataGridTableFooterRow: script$9,
|
|
982
|
+
OrDataGridTableHeader: script$5,
|
|
983
|
+
OrDataGridTableHeaderCell: script$7,
|
|
984
|
+
OrDataGridTableHeaderRow: script$6,
|
|
985
|
+
OrDataGridTablePlaceholder: script$4,
|
|
986
|
+
OrDataGridToolbar: script$2,
|
|
987
|
+
OrDataGridNotification: script$1,
|
|
988
|
+
OrPagination: script$r,
|
|
989
|
+
OrSearch: script$s,
|
|
990
|
+
OrSkeletonText: script$t
|
|
933
991
|
},
|
|
934
992
|
model: {
|
|
935
993
|
prop: 'modelValue',
|
|
@@ -1135,10 +1193,6 @@ var script = defineComponent({
|
|
|
1135
1193
|
}
|
|
1136
1194
|
});
|
|
1137
1195
|
|
|
1138
|
-
const _hoisted_1 = {
|
|
1139
|
-
key: 0,
|
|
1140
|
-
class: "grid col-span-full"
|
|
1141
|
-
};
|
|
1142
1196
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1143
1197
|
const _component_OrSearch = resolveComponent("OrSearch");
|
|
1144
1198
|
const _component_OrDataGridHeader = resolveComponent("OrDataGridHeader");
|
|
@@ -1147,7 +1201,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1147
1201
|
const _component_OrDataGridTableHeaderCell = resolveComponent("OrDataGridTableHeaderCell");
|
|
1148
1202
|
const _component_OrDataGridTableHeaderRow = resolveComponent("OrDataGridTableHeaderRow");
|
|
1149
1203
|
const _component_OrDataGridTableHeader = resolveComponent("OrDataGridTableHeader");
|
|
1150
|
-
const
|
|
1204
|
+
const _component_OrDataGridNotification = resolveComponent("OrDataGridNotification");
|
|
1151
1205
|
const _component_OrSkeletonText = resolveComponent("OrSkeletonText");
|
|
1152
1206
|
const _component_OrDataGridTableContentCell = resolveComponent("OrDataGridTableContentCell");
|
|
1153
1207
|
const _component_OrDataGridTableContentRow = resolveComponent("OrDataGridTableContentRow");
|
|
@@ -1232,15 +1286,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1232
1286
|
_: 1 /* STABLE */
|
|
1233
1287
|
}, 8 /* PROPS */, ["variant"])]),
|
|
1234
1288
|
_: 1 /* STABLE */
|
|
1235
|
-
}), _ctx.notification ? (openBlock(),
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1289
|
+
}), _ctx.notification ? (openBlock(), createBlock(_component_OrDataGridNotification, {
|
|
1290
|
+
key: 0,
|
|
1291
|
+
notification: _ctx.notification,
|
|
1292
|
+
variant: _ctx.variant,
|
|
1293
|
+
onCloseNotification: _cache[3] || (_cache[3] = $event => _ctx.$emit('close-notification'))
|
|
1294
|
+
}, createSlots({
|
|
1295
|
+
_: 2 /* DYNAMIC */
|
|
1296
|
+
}, [_ctx.$slots['notification'] ? {
|
|
1297
|
+
name: "notification",
|
|
1298
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, 'notification')]),
|
|
1299
|
+
key: "0"
|
|
1300
|
+
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["notification", "variant"])) : createCommentVNode("v-if", true), createVNode(_component_OrDataGridTableContent, null, {
|
|
1244
1301
|
default: withCtx(() => [_ctx.loading ? (openBlock(), createElementBlock(Fragment, {
|
|
1245
1302
|
key: 0
|
|
1246
1303
|
}, renderList(10, n => {
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "20.3.
|
|
3
|
+
"version": "20.3.1",
|
|
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.
|
|
48
|
-
"@onereach/ui-components-common": "^20.3.
|
|
47
|
+
"@onereach/styles": "^20.3.1",
|
|
48
|
+
"@onereach/ui-components-common": "^20.3.1",
|
|
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": "
|
|
108
|
+
"gitHead": "ede500b09e1eaac359f8dc812db0f1cf7a4deeb1"
|
|
109
109
|
}
|