@onereach/ui-components-vue2 23.3.1-beta.5622.0 → 23.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.
|
@@ -19,7 +19,7 @@ export { EditorState } from '@codemirror/state';
|
|
|
19
19
|
export { OrCombinedInputV3 } from './or-combined-input-v3/index.js';
|
|
20
20
|
export { ConfirmType, OrConfirmV3 } from './or-confirm-v3/index.js';
|
|
21
21
|
export { OrContextMenuV3 } from './or-context-menu-v3/index.js';
|
|
22
|
-
export { DataGridVariant,
|
|
22
|
+
export { DataGridVariant, OrDataGridV3 } from './or-data-grid-v3/index.js';
|
|
23
23
|
export { OrDateFormatV3 } from './or-date-format-v3/index.js';
|
|
24
24
|
export { OrDatePickerV3 } from './or-date-picker-v3/index.js';
|
|
25
25
|
export { OrDateRangePickerV3 } from './or-date-range-picker-v3/index.js';
|
|
@@ -1386,7 +1386,7 @@ var __vue_component__$5 = __vue_component__$4;
|
|
|
1386
1386
|
|
|
1387
1387
|
const DataGridTableExtraRow = [
|
|
1388
1388
|
// Layout
|
|
1389
|
-
'grid
|
|
1389
|
+
'grid px-sm+',
|
|
1390
1390
|
// Typography
|
|
1391
1391
|
'typography-body-2-regular',
|
|
1392
1392
|
// Theme
|
|
@@ -1417,7 +1417,7 @@ var script$1 = defineComponent({
|
|
|
1417
1417
|
setup(props) {
|
|
1418
1418
|
// Refs & Styles
|
|
1419
1419
|
const root = ref();
|
|
1420
|
-
const rootStyles = computed(() => ['or-data-grid-table-
|
|
1420
|
+
const rootStyles = computed(() => ['or-data-grid-table-footer-row-v3', ...DataGridTableExtraRow, ...DataGridTableExtraRowVariants[props.variant]]);
|
|
1421
1421
|
return {
|
|
1422
1422
|
root,
|
|
1423
1423
|
rootStyles
|
|
@@ -1531,6 +1531,7 @@ var script = defineComponent({
|
|
|
1531
1531
|
setup(props, context) {
|
|
1532
1532
|
// Refs & Styles
|
|
1533
1533
|
const root = ref();
|
|
1534
|
+
const pagination = ref();
|
|
1534
1535
|
const rootStyles = computed(() => ['or-data-grid-v3', ...DataGrid]);
|
|
1535
1536
|
const tableInlineStyles = computed(() => ({
|
|
1536
1537
|
scrollPaddingInlineStart: `${[...scrollOffsetStart.value.values()].reduce((accumulator, value) => accumulator + value, 0)}px`,
|
|
@@ -1641,6 +1642,10 @@ var script = defineComponent({
|
|
|
1641
1642
|
const selectingDisabled = computed(() => {
|
|
1642
1643
|
return props.items.length === 0 || props.loading || typeof props.features.selecting === 'object' && props.features.selecting.disabled;
|
|
1643
1644
|
});
|
|
1645
|
+
const skeletonsLength = computed(() => {
|
|
1646
|
+
var _a;
|
|
1647
|
+
return ((_a = pagination.value) === null || _a === void 0 ? void 0 : _a.currentLimit) || 10;
|
|
1648
|
+
});
|
|
1644
1649
|
// Methods
|
|
1645
1650
|
function updateSearchingModel(value) {
|
|
1646
1651
|
searchingModel.value = value;
|
|
@@ -1711,10 +1716,12 @@ var script = defineComponent({
|
|
|
1711
1716
|
return {
|
|
1712
1717
|
root,
|
|
1713
1718
|
rootStyles,
|
|
1719
|
+
pagination,
|
|
1714
1720
|
tableInlineStyles,
|
|
1715
1721
|
selectingIndicator,
|
|
1716
1722
|
showSelectingCouter,
|
|
1717
1723
|
selectingDisabled,
|
|
1724
|
+
skeletonsLength,
|
|
1718
1725
|
handleMouseEnterRow,
|
|
1719
1726
|
handleMouseLeaveRow,
|
|
1720
1727
|
handleMouseEnterCell,
|
|
@@ -1851,11 +1858,13 @@ var __vue_render__ = function () {
|
|
|
1851
1858
|
proxy: true
|
|
1852
1859
|
} : null], null, true)
|
|
1853
1860
|
}) : _vm._e(), _vm._v(" "), _c('OrDataGridTableContent', [_vm.$slots['before-rows'] ? [_c('OrDataGridTableExtraRow', {
|
|
1854
|
-
|
|
1861
|
+
class: ['col-span-full border-b-1'],
|
|
1855
1862
|
attrs: {
|
|
1856
1863
|
"variant": _vm.variant
|
|
1857
1864
|
}
|
|
1858
|
-
}, [
|
|
1865
|
+
}, [_c('div', {
|
|
1866
|
+
staticClass: "col-span-full self-center"
|
|
1867
|
+
}, [_vm._t('before-rows')], 2)])] : _vm._e(), _vm._v(" "), _vm.loading ? _vm._l(_vm.skeletonsLength, function (n) {
|
|
1859
1868
|
return _c('OrDataGridTableContentRow', {
|
|
1860
1869
|
key: n,
|
|
1861
1870
|
attrs: {
|
|
@@ -1877,7 +1886,11 @@ var __vue_render__ = function () {
|
|
|
1877
1886
|
"features": _vm.features,
|
|
1878
1887
|
"override": true
|
|
1879
1888
|
}
|
|
1880
|
-
}, [
|
|
1889
|
+
}, [_vm._t("column-loading", function () {
|
|
1890
|
+
return [_c('OrSkeletonText')];
|
|
1891
|
+
}, {
|
|
1892
|
+
"column": column
|
|
1893
|
+
})], 2);
|
|
1881
1894
|
})], 2);
|
|
1882
1895
|
}) : _vm.items.length > 0 ? _vm._l(_vm.items, function (item) {
|
|
1883
1896
|
return _c('OrDataGridTableContentRow', {
|
|
@@ -1969,10 +1982,13 @@ var __vue_render__ = function () {
|
|
|
1969
1982
|
"variant": _vm.variant
|
|
1970
1983
|
}
|
|
1971
1984
|
}, [_vm._t('empty')], 2)] : _vm._e(), _vm._v(" "), _vm.$slots['after-rows'] ? [_c('OrDataGridTableExtraRow', {
|
|
1985
|
+
class: ['col-span-full'],
|
|
1972
1986
|
attrs: {
|
|
1973
1987
|
"variant": _vm.variant
|
|
1974
1988
|
}
|
|
1975
|
-
}, [
|
|
1989
|
+
}, [_c('div', {
|
|
1990
|
+
staticClass: "col-span-full self-center"
|
|
1991
|
+
}, [_vm._t('after-rows')], 2)])] : _vm._e()], 2)], 1), _vm._v(" "), _vm.$slots['extra-row'] ? [_c('OrDataGridTableFooter', [_c('OrDataGridTableFooterRow', {
|
|
1976
1992
|
class: ['shrink-0'],
|
|
1977
1993
|
attrs: {
|
|
1978
1994
|
"variant": _vm.variant
|
|
@@ -1995,6 +2011,7 @@ var __vue_render__ = function () {
|
|
|
1995
2011
|
key: "paging",
|
|
1996
2012
|
fn: function () {
|
|
1997
2013
|
return [_c('OrPagination', {
|
|
2014
|
+
ref: "pagination",
|
|
1998
2015
|
attrs: {
|
|
1999
2016
|
"length": _vm.features.paging.length,
|
|
2000
2017
|
"options": _vm.features.paging.options
|
|
@@ -2034,4 +2051,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
2034
2051
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
2035
2052
|
var __vue_component__$1 = __vue_component__;
|
|
2036
2053
|
|
|
2037
|
-
export { DataGridVariant, __vue_component__$
|
|
2054
|
+
export { DataGridVariant, __vue_component__$1 as OrDataGridV3 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
1
|
import { e as ee, t as te } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
2
|
+
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
3
3
|
import { OrButtonV3 as OrButton } from '../or-button-v3/index.js';
|
|
4
4
|
import { OrIconV3 as OrIcon } from '../or-icon-v3/index.js';
|
|
5
5
|
import { OrMenuV3 as OrMenu } from '../or-menu-v3/index.js';
|
|
@@ -81,7 +81,7 @@ var script = defineComponent({
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
emits: ['update:modelValue'],
|
|
84
|
-
expose: ['root'],
|
|
84
|
+
expose: ['root', 'currentLimit'],
|
|
85
85
|
setup(props, context) {
|
|
86
86
|
// Refs & Styles
|
|
87
87
|
const root = ref();
|
package/dist/esm/index.js
CHANGED
|
@@ -25,7 +25,7 @@ export { EditorState } from '@codemirror/state';
|
|
|
25
25
|
export { OrCombinedInputV3 } from './components/or-combined-input-v3/index.js';
|
|
26
26
|
export { ConfirmType, OrConfirmV3 } from './components/or-confirm-v3/index.js';
|
|
27
27
|
export { OrContextMenuV3 } from './components/or-context-menu-v3/index.js';
|
|
28
|
-
export { DataGridVariant,
|
|
28
|
+
export { DataGridVariant, OrDataGridV3 } from './components/or-data-grid-v3/index.js';
|
|
29
29
|
export { OrDateFormatV3 } from './components/or-date-format-v3/index.js';
|
|
30
30
|
export { OrDatePickerV3 } from './components/or-date-picker-v3/index.js';
|
|
31
31
|
export { OrDateRangePickerV3 } from './components/or-date-range-picker-v3/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components-vue2",
|
|
3
|
-
"version": "23.3.1
|
|
3
|
+
"version": "23.3.1",
|
|
4
4
|
"description": "Vue components library for v2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@codemirror/view": "^6",
|
|
41
41
|
"@floating-ui/dom": "1.5.3",
|
|
42
42
|
"@lezer/highlight": "*",
|
|
43
|
-
"@onereach/styles": "^23.3.1
|
|
44
|
-
"@onereach/ui-components-common": "^23.3.1
|
|
43
|
+
"@onereach/styles": "^23.3.1",
|
|
44
|
+
"@onereach/ui-components-common": "^23.3.1",
|
|
45
45
|
"@splidejs/splide": "4.0.6",
|
|
46
46
|
"@tiptap/core": "2.0.3",
|
|
47
47
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -102,5 +102,6 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"npmUnpacked": "4.15.2"
|
|
105
|
+
"npmUnpacked": "4.15.2",
|
|
106
|
+
"gitHead": "70c41ade8814efa9c5741247f7cb22b8cd4d8af1"
|
|
106
107
|
}
|