@onereach/ui-components 10.4.5-beta.4380.0 → 10.4.5-beta.4384.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.
- package/dist/bundled/v2/{OrDataGrid-4af46b6e.js → OrDataGrid-5f7f4077.js} +25 -3
- package/dist/bundled/v2/components/OrDataGridV3/OrDataGrid.js +1 -1
- package/dist/bundled/v2/components/OrDataGridV3/OrDataGrid.vue.d.ts +2 -0
- package/dist/bundled/v2/components/OrDataGridV3/index.js +1 -1
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/components/OrDataGridV3/OrDataGrid.js +1 -1
- package/dist/bundled/v3/components/OrDataGridV3/OrDataGrid.vue.d.ts +1 -0
- package/dist/bundled/v3/components/OrDataGridV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDataGridV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrDataGridV3-d41bc776.js → OrDataGridV3-082274c0.js} +24 -6
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/index.js +1 -1
- package/dist/esm/v2/{OrDataGrid-0e0a1033.js → OrDataGrid-309f1513.js} +26 -2
- package/dist/esm/v2/{OrDataGridToolbar-6d344849.js → OrDataGridToolbar-931ff193.js} +0 -2
- package/dist/esm/v2/components/index.js +2 -2
- package/dist/esm/v2/components/or-data-grid-v3/OrDataGrid.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-data-grid-v3/index.js +2 -2
- package/dist/esm/v2/components/or-data-grid-v3/partials/index.js +1 -1
- package/dist/esm/v2/index.js +2 -2
- package/dist/esm/v3/{OrDataGrid-bbd1810b.js → OrDataGrid-746bd3a4.js} +25 -5
- package/dist/esm/v3/{OrDataGridToolbar-ed7a46e4.js → OrDataGridToolbar-c0bedcfe.js} +0 -2
- package/dist/esm/v3/components/index.js +2 -2
- package/dist/esm/v3/components/or-data-grid-v3/OrDataGrid.vue.d.ts +1 -0
- package/dist/esm/v3/components/or-data-grid-v3/index.js +2 -2
- package/dist/esm/v3/components/or-data-grid-v3/partials/index.js +1 -1
- package/dist/esm/v3/index.js +2 -2
- package/package.json +2 -2
- package/src/components/or-data-grid-v3/OrDataGrid.vue +27 -1
- package/src/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/styles.ts +0 -3
|
@@ -457,8 +457,6 @@ const __vue_component__$f = /*#__PURE__*/normalizeComponent({
|
|
|
457
457
|
var __vue_component__$g = __vue_component__$f;
|
|
458
458
|
|
|
459
459
|
const DataGridTableFooterRow = [
|
|
460
|
-
// Position
|
|
461
|
-
'sticky bottom-0 z-10',
|
|
462
460
|
// Layout
|
|
463
461
|
'grid col-span-full',
|
|
464
462
|
// Typography
|
|
@@ -1069,6 +1067,18 @@ var script = defineComponent({
|
|
|
1069
1067
|
const root = ref();
|
|
1070
1068
|
const rootStyles = computed(() => ['or-data-grid-v3', ...DataGrid]);
|
|
1071
1069
|
// State
|
|
1070
|
+
const selectingIndicator = computed({
|
|
1071
|
+
get: () => {
|
|
1072
|
+
return props.items.every(item => selectingModel.value.includes(item.id));
|
|
1073
|
+
},
|
|
1074
|
+
set: value => {
|
|
1075
|
+
if (value) {
|
|
1076
|
+
selectingModel.value = [...new Set([...selectingModel.value, ...props.items.map(item => item.id)])];
|
|
1077
|
+
} else {
|
|
1078
|
+
selectingModel.value = [];
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1072
1082
|
const selectingModel = computed({
|
|
1073
1083
|
get: () => {
|
|
1074
1084
|
var _a, _b;
|
|
@@ -1153,6 +1163,7 @@ var script = defineComponent({
|
|
|
1153
1163
|
return {
|
|
1154
1164
|
root,
|
|
1155
1165
|
rootStyles,
|
|
1166
|
+
selectingIndicator,
|
|
1156
1167
|
selectingModel,
|
|
1157
1168
|
filteringModel,
|
|
1158
1169
|
searchingModel,
|
|
@@ -1208,7 +1219,18 @@ var __vue_render__ = function () {
|
|
|
1208
1219
|
attrs: {
|
|
1209
1220
|
"variant": _vm.variant
|
|
1210
1221
|
}
|
|
1211
|
-
}, [_vm.features.selecting ? [_c('OrDataGridTableHeaderCell'
|
|
1222
|
+
}, [_vm.features.selecting ? [_c('OrDataGridTableHeaderCell', [_c('OrCheckbox', {
|
|
1223
|
+
attrs: {
|
|
1224
|
+
"indeterminate": !_vm.selectingIndicator && _vm.selectingModel.length > 0
|
|
1225
|
+
},
|
|
1226
|
+
model: {
|
|
1227
|
+
value: _vm.selectingIndicator,
|
|
1228
|
+
callback: function ($$v) {
|
|
1229
|
+
_vm.selectingIndicator = $$v;
|
|
1230
|
+
},
|
|
1231
|
+
expression: "selectingIndicator"
|
|
1232
|
+
}
|
|
1233
|
+
})], 1)] : _vm._e(), _vm._v(" "), _vm._l(_vm.columns, function (column) {
|
|
1212
1234
|
return _c('OrDataGridTableHeaderCell', {
|
|
1213
1235
|
key: column.name,
|
|
1214
1236
|
attrs: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { _ as default } from '../../OrDataGrid-
|
|
1
|
+
export { _ as default } from '../../OrDataGrid-5f7f4077.js';
|
|
2
2
|
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -4,6 +4,7 @@ import { DataGridColumn, DataGridFeatures, DataGridModelValue, DataGridVariant }
|
|
|
4
4
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
5
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
6
6
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
selectingIndicator: import("@vue/composition-api").WritableComputedRef<boolean>;
|
|
7
8
|
selectingModel: import("@vue/composition-api").WritableComputedRef<Id[]>;
|
|
8
9
|
filteringModel: import("@vue/composition-api").WritableComputedRef<undefined>;
|
|
9
10
|
searchingModel: import("@vue/composition-api").WritableComputedRef<import("../../types").ModelValue<string>>;
|
|
@@ -74,6 +75,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
74
75
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
75
76
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
76
77
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
78
|
+
selectingIndicator: import("@vue/composition-api").WritableComputedRef<boolean>;
|
|
77
79
|
selectingModel: import("@vue/composition-api").WritableComputedRef<Id[]>;
|
|
78
80
|
filteringModel: import("@vue/composition-api").WritableComputedRef<undefined>;
|
|
79
81
|
searchingModel: import("@vue/composition-api").WritableComputedRef<import("../../types").ModelValue<string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DataGridVariant, _ as OrDataGridV3 } from '../../OrDataGrid-
|
|
1
|
+
export { D as DataGridVariant, _ as OrDataGridV3 } from '../../OrDataGrid-5f7f4077.js';
|
|
@@ -44,7 +44,7 @@ export { default as OrConfirm } from './OrConfirm/OrConfirm.js';
|
|
|
44
44
|
export { default as OrConfirmV3 } from './OrConfirmV3/OrConfirm.js';
|
|
45
45
|
export { ConfirmType } from './OrConfirmV3/props.js';
|
|
46
46
|
export { default as OrContextMenuV3 } from './OrContextMenuV3/OrContextMenu.js';
|
|
47
|
-
export { D as DataGridVariant, _ as OrDataGridV3 } from '../OrDataGrid-
|
|
47
|
+
export { D as DataGridVariant, _ as OrDataGridV3 } from '../OrDataGrid-5f7f4077.js';
|
|
48
48
|
export { default as OrDateFormatV3 } from './OrDateFormatV3/OrDateFormat.js';
|
|
49
49
|
export { default as OrDatePickerV3 } from './OrDatePickerV3/OrDatePicker.js';
|
|
50
50
|
export { default as OrDateRangePickerV3 } from './OrDateRangePickerV3/OrDateRangePicker.js';
|
package/dist/bundled/v2/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { default as OrCombinedInputV3 } from './components/OrCombinedInputV3/OrC
|
|
|
18
18
|
export { default as OrConfirm } from './components/OrConfirm/OrConfirm.js';
|
|
19
19
|
export { default as OrConfirmV3 } from './components/OrConfirmV3/OrConfirm.js';
|
|
20
20
|
export { default as OrContextMenuV3 } from './components/OrContextMenuV3/OrContextMenu.js';
|
|
21
|
-
export { D as DataGridVariant, _ as OrDataGridV3 } from './OrDataGrid-
|
|
21
|
+
export { D as DataGridVariant, _ as OrDataGridV3 } from './OrDataGrid-5f7f4077.js';
|
|
22
22
|
export { default as OrDateFormatV3 } from './components/OrDateFormatV3/OrDateFormat.js';
|
|
23
23
|
export { default as OrDatePickerV3 } from './components/OrDatePickerV3/OrDatePicker.js';
|
|
24
24
|
export { default as OrDateRangePickerV3 } from './components/OrDateRangePickerV3/OrDateRangePicker.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDataGridV3-
|
|
1
|
+
export { s as default } from '../OrDataGridV3-082274c0.js';
|
|
@@ -28,6 +28,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
28
28
|
}, {
|
|
29
29
|
root: import("vue-demi").Ref<HTMLElement | undefined>;
|
|
30
30
|
rootStyles: import("vue-demi").ComputedRef<string[]>;
|
|
31
|
+
selectingIndicator: import("vue-demi").WritableComputedRef<boolean>;
|
|
31
32
|
selectingModel: import("vue-demi").WritableComputedRef<Id[]>;
|
|
32
33
|
filteringModel: import("vue-demi").WritableComputedRef<undefined>;
|
|
33
34
|
searchingModel: import("vue-demi").WritableComputedRef<import("../../types").ModelValue<string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-
|
|
1
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-082274c0.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as DataGrid } from '../OrDataGridV3-
|
|
1
|
+
export { a as DataGrid } from '../OrDataGridV3-082274c0.js';
|
|
@@ -311,8 +311,6 @@ script$8.render = render$8;
|
|
|
311
311
|
script$8.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/OrDataGridTableFooterCell.vue";
|
|
312
312
|
|
|
313
313
|
const DataGridTableFooterRow = [
|
|
314
|
-
// Position
|
|
315
|
-
'sticky bottom-0 z-10',
|
|
316
314
|
// Layout
|
|
317
315
|
'grid col-span-full',
|
|
318
316
|
// Typography
|
|
@@ -748,6 +746,18 @@ var script = defineComponent({
|
|
|
748
746
|
const root = ref();
|
|
749
747
|
const rootStyles = computed(() => ['or-data-grid-v3', ...DataGrid]);
|
|
750
748
|
// State
|
|
749
|
+
const selectingIndicator = computed({
|
|
750
|
+
get: () => {
|
|
751
|
+
return props.items.every(item => selectingModel.value.includes(item.id));
|
|
752
|
+
},
|
|
753
|
+
set: value => {
|
|
754
|
+
if (value) {
|
|
755
|
+
selectingModel.value = [...new Set([...selectingModel.value, ...props.items.map(item => item.id)])];
|
|
756
|
+
} else {
|
|
757
|
+
selectingModel.value = [];
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
});
|
|
751
761
|
const selectingModel = computed({
|
|
752
762
|
get: () => {
|
|
753
763
|
var _a, _b;
|
|
@@ -832,6 +842,7 @@ var script = defineComponent({
|
|
|
832
842
|
return {
|
|
833
843
|
root,
|
|
834
844
|
rootStyles,
|
|
845
|
+
selectingIndicator,
|
|
835
846
|
selectingModel,
|
|
836
847
|
filteringModel,
|
|
837
848
|
searchingModel,
|
|
@@ -845,10 +856,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
845
856
|
const _component_OrSearch = resolveComponent("OrSearch");
|
|
846
857
|
const _component_OrDataGridHeader = resolveComponent("OrDataGridHeader");
|
|
847
858
|
const _component_OrDataGridToolbar = resolveComponent("OrDataGridToolbar");
|
|
859
|
+
const _component_OrCheckbox = resolveComponent("OrCheckbox");
|
|
848
860
|
const _component_OrDataGridTableHeaderCell = resolveComponent("OrDataGridTableHeaderCell");
|
|
849
861
|
const _component_OrDataGridTableHeaderRow = resolveComponent("OrDataGridTableHeaderRow");
|
|
850
862
|
const _component_OrDataGridTableHeader = resolveComponent("OrDataGridTableHeader");
|
|
851
|
-
const _component_OrCheckbox = resolveComponent("OrCheckbox");
|
|
852
863
|
const _component_OrDataGridTableContentCell = resolveComponent("OrDataGridTableContentCell");
|
|
853
864
|
const _component_OrDataGridTableContentRow = resolveComponent("OrDataGridTableContentRow");
|
|
854
865
|
const _component_OrDataGridTableContent = resolveComponent("OrDataGridTableContent");
|
|
@@ -893,11 +904,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
893
904
|
}, {
|
|
894
905
|
default: withCtx(() => [_ctx.features.selecting ? (openBlock(), createBlock(_component_OrDataGridTableHeaderCell, {
|
|
895
906
|
key: 0
|
|
907
|
+
}, {
|
|
908
|
+
default: withCtx(() => [createVNode(_component_OrCheckbox, {
|
|
909
|
+
modelValue: _ctx.selectingIndicator,
|
|
910
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.selectingIndicator = $event),
|
|
911
|
+
indeterminate: !_ctx.selectingIndicator && _ctx.selectingModel.length > 0
|
|
912
|
+
}, null, 8 /* PROPS */, ["modelValue", "indeterminate"])]),
|
|
913
|
+
_: 1 /* STABLE */
|
|
896
914
|
})) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, column => {
|
|
897
915
|
return openBlock(), createBlock(_component_OrDataGridTableHeaderCell, {
|
|
898
916
|
key: column.name,
|
|
899
917
|
modelValue: _ctx.sortingModel,
|
|
900
|
-
"onUpdate:modelValue": _cache[
|
|
918
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.sortingModel = $event),
|
|
901
919
|
column: column,
|
|
902
920
|
features: _ctx.features
|
|
903
921
|
}, {
|
|
@@ -922,7 +940,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
922
940
|
}, {
|
|
923
941
|
default: withCtx(() => [createVNode(_component_OrCheckbox, {
|
|
924
942
|
modelValue: _ctx.selectingModel,
|
|
925
|
-
"onUpdate:modelValue": _cache[
|
|
943
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.selectingModel = $event),
|
|
926
944
|
value: item.id
|
|
927
945
|
}, null, 8 /* PROPS */, ["modelValue", "value"])]),
|
|
928
946
|
_: 2 /* DYNAMIC */
|
|
@@ -980,7 +998,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
980
998
|
name: "paging",
|
|
981
999
|
fn: withCtx(() => [createVNode(_component_OrPagination, {
|
|
982
1000
|
modelValue: _ctx.pagingModel,
|
|
983
|
-
"onUpdate:modelValue": _cache[
|
|
1001
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.pagingModel = $event),
|
|
984
1002
|
length: _ctx.features.paging.length,
|
|
985
1003
|
options: _ctx.features.paging.options
|
|
986
1004
|
}, null, 8 /* PROPS */, ["modelValue", "length", "options"])]),
|
|
@@ -24,7 +24,7 @@ export { s as OrCombinedInputV3 } from './OrCombinedInputV3-d40e62b4.js';
|
|
|
24
24
|
export { s as OrConfirm } from './OrConfirm-ba3d6b15.js';
|
|
25
25
|
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirmV3-f3cb1d17.js';
|
|
26
26
|
export { default as OrContextMenuV3 } from './OrContextMenuV3/OrContextMenu.js';
|
|
27
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-
|
|
27
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-082274c0.js';
|
|
28
28
|
export { s as OrDateFormatV3 } from './OrDateFormatV3-61017f82.js';
|
|
29
29
|
export { s as OrDatePickerV3 } from './OrDatePickerV3-a3bd25a5.js';
|
|
30
30
|
export { s as OrDateRangePickerV3 } from './OrDateRangePickerV3-40622df6.js';
|
package/dist/bundled/v3/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export { s as OrCombinedInputV3 } from './components/OrCombinedInputV3-d40e62b4.
|
|
|
16
16
|
export { s as OrConfirm } from './components/OrConfirm-ba3d6b15.js';
|
|
17
17
|
export { C as ConfirmType, s as OrConfirmV3 } from './components/OrConfirmV3-f3cb1d17.js';
|
|
18
18
|
export { default as OrContextMenuV3 } from './components/OrContextMenuV3/OrContextMenu.js';
|
|
19
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from './components/OrDataGridV3-
|
|
19
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from './components/OrDataGridV3-082274c0.js';
|
|
20
20
|
export { s as OrDateFormatV3 } from './components/OrDateFormatV3-61017f82.js';
|
|
21
21
|
export { s as OrDatePickerV3 } from './components/OrDatePickerV3-a3bd25a5.js';
|
|
22
22
|
export { s as OrDateRangePickerV3 } from './components/OrDateRangePickerV3-40622df6.js';
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed } from 'vue-demi';
|
|
|
2
2
|
import { _ as __vue_component__$1 } from './OrCheckbox-3b837bc2.js';
|
|
3
3
|
import { _ as __vue_component__$f } from './OrPagination-404ee1b8.js';
|
|
4
4
|
import { _ as __vue_component__$g } from './OrSearch-7b773c73.js';
|
|
5
|
-
import { _ as __vue_component__$2, a as __vue_component__$3, b as __vue_component__$4, c as __vue_component__$5, d as __vue_component__$6, e as __vue_component__$7, f as __vue_component__$8, g as __vue_component__$9, h as __vue_component__$a, i as __vue_component__$b, j as __vue_component__$c, k as __vue_component__$d, l as __vue_component__$e, D as DataGridVariant } from './OrDataGridToolbar-
|
|
5
|
+
import { _ as __vue_component__$2, a as __vue_component__$3, b as __vue_component__$4, c as __vue_component__$5, d as __vue_component__$6, e as __vue_component__$7, f as __vue_component__$8, g as __vue_component__$9, h as __vue_component__$a, i as __vue_component__$b, j as __vue_component__$c, k as __vue_component__$d, l as __vue_component__$e, D as DataGridVariant } from './OrDataGridToolbar-931ff193.js';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
7
7
|
|
|
8
8
|
const DataGrid = [
|
|
@@ -62,6 +62,18 @@ var script = defineComponent({
|
|
|
62
62
|
const root = ref();
|
|
63
63
|
const rootStyles = computed(() => ['or-data-grid-v3', ...DataGrid]);
|
|
64
64
|
// State
|
|
65
|
+
const selectingIndicator = computed({
|
|
66
|
+
get: () => {
|
|
67
|
+
return props.items.every(item => selectingModel.value.includes(item.id));
|
|
68
|
+
},
|
|
69
|
+
set: value => {
|
|
70
|
+
if (value) {
|
|
71
|
+
selectingModel.value = [...new Set([...selectingModel.value, ...props.items.map(item => item.id)])];
|
|
72
|
+
} else {
|
|
73
|
+
selectingModel.value = [];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
65
77
|
const selectingModel = computed({
|
|
66
78
|
get: () => {
|
|
67
79
|
var _a, _b;
|
|
@@ -146,6 +158,7 @@ var script = defineComponent({
|
|
|
146
158
|
return {
|
|
147
159
|
root,
|
|
148
160
|
rootStyles,
|
|
161
|
+
selectingIndicator,
|
|
149
162
|
selectingModel,
|
|
150
163
|
filteringModel,
|
|
151
164
|
searchingModel,
|
|
@@ -201,7 +214,18 @@ var __vue_render__ = function () {
|
|
|
201
214
|
attrs: {
|
|
202
215
|
"variant": _vm.variant
|
|
203
216
|
}
|
|
204
|
-
}, [_vm.features.selecting ? [_c('OrDataGridTableHeaderCell'
|
|
217
|
+
}, [_vm.features.selecting ? [_c('OrDataGridTableHeaderCell', [_c('OrCheckbox', {
|
|
218
|
+
attrs: {
|
|
219
|
+
"indeterminate": !_vm.selectingIndicator && _vm.selectingModel.length > 0
|
|
220
|
+
},
|
|
221
|
+
model: {
|
|
222
|
+
value: _vm.selectingIndicator,
|
|
223
|
+
callback: function ($$v) {
|
|
224
|
+
_vm.selectingIndicator = $$v;
|
|
225
|
+
},
|
|
226
|
+
expression: "selectingIndicator"
|
|
227
|
+
}
|
|
228
|
+
})], 1)] : _vm._e(), _vm._v(" "), _vm._l(_vm.columns, function (column) {
|
|
205
229
|
return _c('OrDataGridTableHeaderCell', {
|
|
206
230
|
key: column.name,
|
|
207
231
|
attrs: {
|
|
@@ -447,8 +447,6 @@ const __vue_component__$7 = /*#__PURE__*/normalizeComponent({
|
|
|
447
447
|
}, __vue_inject_styles__$7, __vue_script__$7, __vue_scope_id__$7, __vue_is_functional_template__$7, __vue_module_identifier__$7, false, undefined, undefined, undefined);
|
|
448
448
|
|
|
449
449
|
const DataGridTableFooterRow = [
|
|
450
|
-
// Position
|
|
451
|
-
'sticky bottom-0 z-10',
|
|
452
450
|
// Layout
|
|
453
451
|
'grid col-span-full',
|
|
454
452
|
// Typography
|
|
@@ -34,8 +34,8 @@ export { _ as OrCombinedInputV3 } from '../OrCombinedInput-4b19d4b3.js';
|
|
|
34
34
|
export { _ as OrConfirm } from '../OrConfirm-4b5fdad4.js';
|
|
35
35
|
export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-d530b5b9.js';
|
|
36
36
|
export { _ as OrContextMenuV3 } from '../OrContextMenu-9124fffe.js';
|
|
37
|
-
export { _ as OrDataGridV3 } from '../OrDataGrid-
|
|
38
|
-
export { D as DataGridVariant } from '../OrDataGridToolbar-
|
|
37
|
+
export { _ as OrDataGridV3 } from '../OrDataGrid-309f1513.js';
|
|
38
|
+
export { D as DataGridVariant } from '../OrDataGridToolbar-931ff193.js';
|
|
39
39
|
export { _ as OrDateFormatV3 } from '../OrDateFormat-40da23f2.js';
|
|
40
40
|
export { _ as OrDatePickerV3 } from '../OrDatePicker-72a797dd.js';
|
|
41
41
|
export { _ as OrDateRangePickerV3 } from '../OrDateRangePicker-af87592b.js';
|
|
@@ -4,6 +4,7 @@ import { DataGridColumn, DataGridFeatures, DataGridModelValue, DataGridVariant }
|
|
|
4
4
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
5
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
6
6
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
selectingIndicator: import("@vue/composition-api").WritableComputedRef<boolean>;
|
|
7
8
|
selectingModel: import("@vue/composition-api").WritableComputedRef<Id[]>;
|
|
8
9
|
filteringModel: import("@vue/composition-api").WritableComputedRef<undefined>;
|
|
9
10
|
searchingModel: import("@vue/composition-api").WritableComputedRef<import("../../types").ModelValue<string>>;
|
|
@@ -74,6 +75,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
74
75
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
75
76
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
76
77
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
78
|
+
selectingIndicator: import("@vue/composition-api").WritableComputedRef<boolean>;
|
|
77
79
|
selectingModel: import("@vue/composition-api").WritableComputedRef<Id[]>;
|
|
78
80
|
filteringModel: import("@vue/composition-api").WritableComputedRef<undefined>;
|
|
79
81
|
searchingModel: import("@vue/composition-api").WritableComputedRef<import("../../types").ModelValue<string>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { _ as OrDataGridV3 } from '../../OrDataGrid-
|
|
2
|
-
export { D as DataGridVariant } from '../../OrDataGridToolbar-
|
|
1
|
+
export { _ as OrDataGridV3 } from '../../OrDataGrid-309f1513.js';
|
|
2
|
+
export { D as DataGridVariant } from '../../OrDataGridToolbar-931ff193.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../OrCheckbox-3b837bc2.js';
|
|
5
5
|
import '../../useIdAttribute-859439f0.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrDataGridFooter, a as OrDataGridHeader, b as OrDataGridTable, c as OrDataGridTableContent, d as OrDataGridTableContentCell, e as OrDataGridTableContentRow, f as OrDataGridTableFooter, g as OrDataGridTableFooterCell, h as OrDataGridTableFooterRow, i as OrDataGridTableHeader, j as OrDataGridTableHeaderCell, k as OrDataGridTableHeaderRow, l as OrDataGridToolbar } from '../../../OrDataGridToolbar-
|
|
1
|
+
export { _ as OrDataGridFooter, a as OrDataGridHeader, b as OrDataGridTable, c as OrDataGridTableContent, d as OrDataGridTableContentCell, e as OrDataGridTableContentRow, f as OrDataGridTableFooter, g as OrDataGridTableFooterCell, h as OrDataGridTableFooterRow, i as OrDataGridTableHeader, j as OrDataGridTableHeaderCell, k as OrDataGridTableHeaderRow, l as OrDataGridToolbar } from '../../../OrDataGridToolbar-931ff193.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../../normalize-component-6e8e3d80.js';
|
|
4
4
|
import '../../../OrIcon-03e3c802.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -34,8 +34,8 @@ export { _ as OrCombinedInputV3 } from './OrCombinedInput-4b19d4b3.js';
|
|
|
34
34
|
export { _ as OrConfirm } from './OrConfirm-4b5fdad4.js';
|
|
35
35
|
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-d530b5b9.js';
|
|
36
36
|
export { _ as OrContextMenuV3 } from './OrContextMenu-9124fffe.js';
|
|
37
|
-
export { _ as OrDataGridV3 } from './OrDataGrid-
|
|
38
|
-
export { D as DataGridVariant } from './OrDataGridToolbar-
|
|
37
|
+
export { _ as OrDataGridV3 } from './OrDataGrid-309f1513.js';
|
|
38
|
+
export { D as DataGridVariant } from './OrDataGridToolbar-931ff193.js';
|
|
39
39
|
export { _ as OrDateFormatV3 } from './OrDateFormat-40da23f2.js';
|
|
40
40
|
export { _ as OrDatePickerV3 } from './OrDatePicker-72a797dd.js';
|
|
41
41
|
export { _ as OrDateRangePickerV3 } from './OrDateRangePicker-af87592b.js';
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed } from 'vue-demi';
|
|
|
2
2
|
import { s as script$1 } from './OrCheckbox-7391dea0.js';
|
|
3
3
|
import { s as script$f } from './OrPagination-9fa8d8d0.js';
|
|
4
4
|
import { s as script$g } from './OrSearch-5ba5c899.js';
|
|
5
|
-
import { s as script$2, a as script$3, b as script$4, c as script$5, d as script$6, e as script$7, f as script$8, g as script$9, h as script$a, i as script$b, j as script$c, k as script$d, l as script$e, D as DataGridVariant } from './OrDataGridToolbar-
|
|
5
|
+
import { s as script$2, a as script$3, b as script$4, c as script$5, d as script$6, e as script$7, f as script$8, g as script$9, h as script$a, i as script$b, j as script$c, k as script$d, l as script$e, D as DataGridVariant } from './OrDataGridToolbar-c0bedcfe.js';
|
|
6
6
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, createSlots, withCtx, renderSlot, createBlock, createCommentVNode, Fragment, renderList, createTextVNode, toDisplayString } from 'vue';
|
|
7
7
|
|
|
8
8
|
const DataGrid = [
|
|
@@ -62,6 +62,18 @@ var script = defineComponent({
|
|
|
62
62
|
const root = ref();
|
|
63
63
|
const rootStyles = computed(() => ['or-data-grid-v3', ...DataGrid]);
|
|
64
64
|
// State
|
|
65
|
+
const selectingIndicator = computed({
|
|
66
|
+
get: () => {
|
|
67
|
+
return props.items.every(item => selectingModel.value.includes(item.id));
|
|
68
|
+
},
|
|
69
|
+
set: value => {
|
|
70
|
+
if (value) {
|
|
71
|
+
selectingModel.value = [...new Set([...selectingModel.value, ...props.items.map(item => item.id)])];
|
|
72
|
+
} else {
|
|
73
|
+
selectingModel.value = [];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
65
77
|
const selectingModel = computed({
|
|
66
78
|
get: () => {
|
|
67
79
|
var _a, _b;
|
|
@@ -146,6 +158,7 @@ var script = defineComponent({
|
|
|
146
158
|
return {
|
|
147
159
|
root,
|
|
148
160
|
rootStyles,
|
|
161
|
+
selectingIndicator,
|
|
149
162
|
selectingModel,
|
|
150
163
|
filteringModel,
|
|
151
164
|
searchingModel,
|
|
@@ -159,10 +172,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
172
|
const _component_OrSearch = resolveComponent("OrSearch");
|
|
160
173
|
const _component_OrDataGridHeader = resolveComponent("OrDataGridHeader");
|
|
161
174
|
const _component_OrDataGridToolbar = resolveComponent("OrDataGridToolbar");
|
|
175
|
+
const _component_OrCheckbox = resolveComponent("OrCheckbox");
|
|
162
176
|
const _component_OrDataGridTableHeaderCell = resolveComponent("OrDataGridTableHeaderCell");
|
|
163
177
|
const _component_OrDataGridTableHeaderRow = resolveComponent("OrDataGridTableHeaderRow");
|
|
164
178
|
const _component_OrDataGridTableHeader = resolveComponent("OrDataGridTableHeader");
|
|
165
|
-
const _component_OrCheckbox = resolveComponent("OrCheckbox");
|
|
166
179
|
const _component_OrDataGridTableContentCell = resolveComponent("OrDataGridTableContentCell");
|
|
167
180
|
const _component_OrDataGridTableContentRow = resolveComponent("OrDataGridTableContentRow");
|
|
168
181
|
const _component_OrDataGridTableContent = resolveComponent("OrDataGridTableContent");
|
|
@@ -207,11 +220,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
207
220
|
}, {
|
|
208
221
|
default: withCtx(() => [_ctx.features.selecting ? (openBlock(), createBlock(_component_OrDataGridTableHeaderCell, {
|
|
209
222
|
key: 0
|
|
223
|
+
}, {
|
|
224
|
+
default: withCtx(() => [createVNode(_component_OrCheckbox, {
|
|
225
|
+
modelValue: _ctx.selectingIndicator,
|
|
226
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.selectingIndicator = $event),
|
|
227
|
+
indeterminate: !_ctx.selectingIndicator && _ctx.selectingModel.length > 0
|
|
228
|
+
}, null, 8 /* PROPS */, ["modelValue", "indeterminate"])]),
|
|
229
|
+
_: 1 /* STABLE */
|
|
210
230
|
})) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, column => {
|
|
211
231
|
return openBlock(), createBlock(_component_OrDataGridTableHeaderCell, {
|
|
212
232
|
key: column.name,
|
|
213
233
|
modelValue: _ctx.sortingModel,
|
|
214
|
-
"onUpdate:modelValue": _cache[
|
|
234
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.sortingModel = $event),
|
|
215
235
|
column: column,
|
|
216
236
|
features: _ctx.features
|
|
217
237
|
}, {
|
|
@@ -236,7 +256,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
236
256
|
}, {
|
|
237
257
|
default: withCtx(() => [createVNode(_component_OrCheckbox, {
|
|
238
258
|
modelValue: _ctx.selectingModel,
|
|
239
|
-
"onUpdate:modelValue": _cache[
|
|
259
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.selectingModel = $event),
|
|
240
260
|
value: item.id
|
|
241
261
|
}, null, 8 /* PROPS */, ["modelValue", "value"])]),
|
|
242
262
|
_: 2 /* DYNAMIC */
|
|
@@ -294,7 +314,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
294
314
|
name: "paging",
|
|
295
315
|
fn: withCtx(() => [createVNode(_component_OrPagination, {
|
|
296
316
|
modelValue: _ctx.pagingModel,
|
|
297
|
-
"onUpdate:modelValue": _cache[
|
|
317
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.pagingModel = $event),
|
|
298
318
|
length: _ctx.features.paging.length,
|
|
299
319
|
options: _ctx.features.paging.options
|
|
300
320
|
}, null, 8 /* PROPS */, ["modelValue", "length", "options"])]),
|
|
@@ -308,8 +308,6 @@ script$7.render = render$7;
|
|
|
308
308
|
script$7.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/OrDataGridTableFooterCell.vue";
|
|
309
309
|
|
|
310
310
|
const DataGridTableFooterRow = [
|
|
311
|
-
// Position
|
|
312
|
-
'sticky bottom-0 z-10',
|
|
313
311
|
// Layout
|
|
314
312
|
'grid col-span-full',
|
|
315
313
|
// Typography
|
|
@@ -32,8 +32,8 @@ export { s as OrCombinedInputV3 } from '../OrCombinedInput-4dc423a8.js';
|
|
|
32
32
|
export { s as OrConfirm } from '../OrConfirm-7c132ea7.js';
|
|
33
33
|
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-a5f93676.js';
|
|
34
34
|
export { s as OrContextMenuV3 } from '../OrContextMenu-cd742ad1.js';
|
|
35
|
-
export { s as OrDataGridV3 } from '../OrDataGrid-
|
|
36
|
-
export { D as DataGridVariant } from '../OrDataGridToolbar-
|
|
35
|
+
export { s as OrDataGridV3 } from '../OrDataGrid-746bd3a4.js';
|
|
36
|
+
export { D as DataGridVariant } from '../OrDataGridToolbar-c0bedcfe.js';
|
|
37
37
|
export { s as OrDateFormatV3 } from '../OrDateFormat-992afd2d.js';
|
|
38
38
|
export { s as OrDatePickerV3 } from '../OrDatePicker-14f3a0fc.js';
|
|
39
39
|
export { s as OrDateRangePickerV3 } from '../OrDateRangePicker-300312f0.js';
|
|
@@ -28,6 +28,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
28
28
|
}, {
|
|
29
29
|
root: import("vue-demi").Ref<HTMLElement | undefined>;
|
|
30
30
|
rootStyles: import("vue-demi").ComputedRef<string[]>;
|
|
31
|
+
selectingIndicator: import("vue-demi").WritableComputedRef<boolean>;
|
|
31
32
|
selectingModel: import("vue-demi").WritableComputedRef<Id[]>;
|
|
32
33
|
filteringModel: import("vue-demi").WritableComputedRef<undefined>;
|
|
33
34
|
searchingModel: import("vue-demi").WritableComputedRef<import("../../types").ModelValue<string>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { s as OrDataGridV3 } from '../../OrDataGrid-
|
|
2
|
-
export { D as DataGridVariant } from '../../OrDataGridToolbar-
|
|
1
|
+
export { s as OrDataGridV3 } from '../../OrDataGrid-746bd3a4.js';
|
|
2
|
+
export { D as DataGridVariant } from '../../OrDataGridToolbar-c0bedcfe.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../OrCheckbox-7391dea0.js';
|
|
5
5
|
import '../../useIdAttribute-859439f0.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrDataGridFooter, a as OrDataGridHeader, b as OrDataGridTable, c as OrDataGridTableContent, d as OrDataGridTableContentCell, e as OrDataGridTableContentRow, f as OrDataGridTableFooter, g as OrDataGridTableFooterCell, h as OrDataGridTableFooterRow, i as OrDataGridTableHeader, j as OrDataGridTableHeaderCell, k as OrDataGridTableHeaderRow, l as OrDataGridToolbar } from '../../../OrDataGridToolbar-
|
|
1
|
+
export { s as OrDataGridFooter, a as OrDataGridHeader, b as OrDataGridTable, c as OrDataGridTableContent, d as OrDataGridTableContentCell, e as OrDataGridTableContentRow, f as OrDataGridTableFooter, g as OrDataGridTableFooterCell, h as OrDataGridTableFooterRow, i as OrDataGridTableHeader, j as OrDataGridTableHeaderCell, k as OrDataGridTableHeaderRow, l as OrDataGridToolbar } from '../../../OrDataGridToolbar-c0bedcfe.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '../../../OrIcon-c446d072.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -32,8 +32,8 @@ export { s as OrCombinedInputV3 } from './OrCombinedInput-4dc423a8.js';
|
|
|
32
32
|
export { s as OrConfirm } from './OrConfirm-7c132ea7.js';
|
|
33
33
|
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-a5f93676.js';
|
|
34
34
|
export { s as OrContextMenuV3 } from './OrContextMenu-cd742ad1.js';
|
|
35
|
-
export { s as OrDataGridV3 } from './OrDataGrid-
|
|
36
|
-
export { D as DataGridVariant } from './OrDataGridToolbar-
|
|
35
|
+
export { s as OrDataGridV3 } from './OrDataGrid-746bd3a4.js';
|
|
36
|
+
export { D as DataGridVariant } from './OrDataGridToolbar-c0bedcfe.js';
|
|
37
37
|
export { s as OrDateFormatV3 } from './OrDateFormat-992afd2d.js';
|
|
38
38
|
export { s as OrDatePickerV3 } from './OrDatePicker-14f3a0fc.js';
|
|
39
39
|
export { s as OrDateRangePickerV3 } from './OrDateRangePicker-300312f0.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "10.4.5-beta.
|
|
3
|
+
"version": "10.4.5-beta.4384.0",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v2/3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@codemirror/lang-json": "6.0.1",
|
|
41
41
|
"@codemirror/lang-markdown": "6.1.1",
|
|
42
42
|
"@floating-ui/dom": "1.4.2",
|
|
43
|
-
"@onereach/styles": "^6.9.2-beta.
|
|
43
|
+
"@onereach/styles": "^6.9.2-beta.4384.0",
|
|
44
44
|
"@splidejs/splide": "4.0.6",
|
|
45
45
|
"@tiptap/core": "2.0.3",
|
|
46
46
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -39,7 +39,12 @@
|
|
|
39
39
|
:variant="variant"
|
|
40
40
|
>
|
|
41
41
|
<template v-if="features.selecting">
|
|
42
|
-
<OrDataGridTableHeaderCell
|
|
42
|
+
<OrDataGridTableHeaderCell>
|
|
43
|
+
<OrCheckbox
|
|
44
|
+
v-model="selectingIndicator"
|
|
45
|
+
:indeterminate="!selectingIndicator && selectingModel.length > 0"
|
|
46
|
+
/>
|
|
47
|
+
</OrDataGridTableHeaderCell>
|
|
43
48
|
</template>
|
|
44
49
|
|
|
45
50
|
<OrDataGridTableHeaderCell
|
|
@@ -216,6 +221,25 @@ export default defineComponent({
|
|
|
216
221
|
]);
|
|
217
222
|
|
|
218
223
|
// State
|
|
224
|
+
const selectingIndicator = computed({
|
|
225
|
+
get: () => {
|
|
226
|
+
return props.items.every((item) => selectingModel.value.includes(item.id));
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
set: (value) => {
|
|
230
|
+
if (value) {
|
|
231
|
+
selectingModel.value = [
|
|
232
|
+
...new Set([
|
|
233
|
+
...selectingModel.value,
|
|
234
|
+
...props.items.map((item) => item.id),
|
|
235
|
+
]),
|
|
236
|
+
];
|
|
237
|
+
} else {
|
|
238
|
+
selectingModel.value = [];
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
});
|
|
242
|
+
|
|
219
243
|
const selectingModel = computed({
|
|
220
244
|
get: () => props.modelValue?.selecting ?? [],
|
|
221
245
|
|
|
@@ -298,6 +322,8 @@ export default defineComponent({
|
|
|
298
322
|
root,
|
|
299
323
|
rootStyles,
|
|
300
324
|
|
|
325
|
+
selectingIndicator,
|
|
326
|
+
|
|
301
327
|
selectingModel,
|
|
302
328
|
filteringModel,
|
|
303
329
|
searchingModel,
|