@onereach/ui-components-vue2 26.4.1-beta.5886.0 → 26.4.1-beta.5887.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.
@@ -277,25 +277,29 @@ var script$e = defineComponent({
277
277
  return ['or-data-grid-table-content-cell-v3', ...DataGridTableContentCell, ...(((_a = props.column) === null || _a === void 0 ? void 0 : _a.stickiness) ? ['overflow-hidden', `sticky-${props.column.stickiness}`] : []), ...(!!((_b = props.features) === null || _b === void 0 ? void 0 : _b.resizing) && !!((_c = props.column) === null || _c === void 0 ? void 0 : _c.name) && ((_d = props.column) === null || _d === void 0 ? void 0 : _d.resizing) !== false ? ['resizable'] : [])];
278
278
  });
279
279
  const rootInlineStyles = computed(() => {
280
+ var _a;
281
+ const styles = {
282
+ justifyContent: ((_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment) || (props.column ? undefined : 'center')
283
+ };
280
284
  if (props.column) {
281
285
  switch (props.column.stickiness) {
282
286
  case 'start':
283
- return {
287
+ Object.assign(styles, {
284
288
  position: 'sticky',
285
289
  insetInlineStart: `${props.stickyOffset}px`,
286
290
  zIndex: '30'
287
- };
291
+ });
292
+ break;
288
293
  case 'end':
289
- return {
294
+ Object.assign(styles, {
290
295
  position: 'sticky',
291
296
  insetInlineEnd: `${props.stickyOffset}px`,
292
297
  zIndex: '30'
293
- };
294
- default:
295
- return {};
298
+ });
299
+ break;
296
300
  }
297
301
  }
298
- return {};
302
+ return styles;
299
303
  });
300
304
  const contentStyles = computed(() => {
301
305
  var _a, _b, _c, _d, _e, _f;
@@ -875,6 +879,10 @@ var script$8 = defineComponent({
875
879
  stickyOffset: {
876
880
  type: Number,
877
881
  default: 0
882
+ },
883
+ override: {
884
+ type: Boolean,
885
+ default: false
878
886
  }
879
887
  },
880
888
  emits: ['update:modelValue', 'update:scrollOffset', 'remove:scrollOffset', 'update:column-width'],
@@ -905,27 +913,29 @@ var script$8 = defineComponent({
905
913
  };
906
914
  });
907
915
  const rootInlineStyles = computed(() => {
916
+ var _a;
917
+ const styles = {
918
+ justifyContent: ((_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment) || (props.column ? undefined : 'center')
919
+ };
908
920
  if (props.column) {
909
921
  switch (props.column.stickiness) {
910
922
  case 'start':
911
- return {
923
+ Object.assign(styles, {
912
924
  position: 'sticky',
913
925
  insetInlineStart: `${props.stickyOffset}px`,
914
926
  zIndex: '120'
915
- };
927
+ });
928
+ break;
916
929
  case 'end':
917
- return {
930
+ Object.assign(styles, {
918
931
  position: 'sticky',
919
932
  insetInlineEnd: `${props.stickyOffset}px`,
920
933
  zIndex: '120'
921
- };
922
- default:
923
- return {};
934
+ });
935
+ break;
924
936
  }
925
937
  }
926
- return {
927
- justifyContent: 'center'
928
- };
938
+ return styles;
929
939
  });
930
940
  // State
931
941
  const model = computed({
@@ -945,9 +955,9 @@ var script$8 = defineComponent({
945
955
  return ['layout-row items-center w-full min-w-0', ...(((_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment) === 'end' ? ['flex-row-reverse'] : [])];
946
956
  });
947
957
  const headerContentInlineStyles = computed(() => {
948
- var _a;
958
+ var _a, _b;
949
959
  return {
950
- justifyContent: (_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment
960
+ justifyContent: ((_a = props.column) === null || _a === void 0 ? void 0 : _a.alignment) === 'end' ? undefined : (_b = props.column) === null || _b === void 0 ? void 0 : _b.alignment
951
961
  };
952
962
  });
953
963
  // Methods
@@ -1047,7 +1057,7 @@ var __vue_render__$8 = function () {
1047
1057
  return _vm.toggleSorting();
1048
1058
  }
1049
1059
  }
1050
- }, [_c('div', {
1060
+ }, [_vm.override ? [_vm._t("default")] : _c('div', {
1051
1061
  class: _vm.headerContentStyles,
1052
1062
  style: _vm.headerContentInlineStyles
1053
1063
  }, [_c('div', {
@@ -1069,7 +1079,7 @@ var __vue_render__$8 = function () {
1069
1079
  $event.stopPropagation();
1070
1080
  }
1071
1081
  }
1072
- }) : _vm._e()]);
1082
+ }) : _vm._e()], 2);
1073
1083
  };
1074
1084
  var __vue_staticRenderFns__$8 = [];
1075
1085
 
@@ -1834,7 +1844,8 @@ var script = defineComponent({
1834
1844
  if (props.features.selecting) {
1835
1845
  startColumns.push({
1836
1846
  name: '_check',
1837
- stickiness: 'start'
1847
+ stickiness: 'start',
1848
+ alignment: 'center'
1838
1849
  });
1839
1850
  }
1840
1851
  actualColumns.value.forEach(column => {
@@ -2066,13 +2077,15 @@ var __vue_render__ = function () {
2066
2077
  "variant": _vm.variant
2067
2078
  }
2068
2079
  }, [_vm.features.selecting ? [_c('OrDataGridTableHeaderCell', {
2069
- staticClass: "md:!py-none",
2080
+ staticClass: "!px-none",
2070
2081
  attrs: {
2071
2082
  "column": {
2072
2083
  name: '_check',
2073
- stickiness: 'start'
2084
+ stickiness: 'start',
2085
+ alignment: 'center'
2074
2086
  },
2075
- "sticky-offset": _vm.stickyOffsets.start.get('_check')
2087
+ "sticky-offset": _vm.stickyOffsets.start.get('_check'),
2088
+ "override": true
2076
2089
  },
2077
2090
  on: {
2078
2091
  "update:scroll-offset": _vm.updateScrollOffset,
@@ -2143,10 +2156,12 @@ var __vue_render__ = function () {
2143
2156
  "interactive": _vm.interactiveRows
2144
2157
  }
2145
2158
  }, [_vm.features.selecting ? [_c('OrDataGridTableContentCell', {
2159
+ staticClass: "!px-none",
2146
2160
  attrs: {
2147
2161
  "column": {
2148
2162
  name: '_check',
2149
- stickiness: 'start'
2163
+ stickiness: 'start',
2164
+ alignment: 'center'
2150
2165
  },
2151
2166
  "sticky-offset": _vm.stickyOffsets.start.get('_check'),
2152
2167
  "variant": _vm.variant,
@@ -2188,11 +2203,12 @@ var __vue_render__ = function () {
2188
2203
  }
2189
2204
  }
2190
2205
  }, [_vm.features.selecting ? [_c('OrDataGridTableContentCell', {
2191
- staticClass: "md:!py-none",
2206
+ staticClass: "!px-none",
2192
2207
  attrs: {
2193
2208
  "column": {
2194
2209
  name: '_check',
2195
- stickiness: 'start'
2210
+ stickiness: 'start',
2211
+ alignment: 'center'
2196
2212
  },
2197
2213
  "sticky-offset": _vm.stickyOffsets.start.get('_check'),
2198
2214
  "variant": _vm.variant,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components-vue2",
3
- "version": "26.4.1-beta.5886.0",
3
+ "version": "26.4.1-beta.5887.0",
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": "^26.4.1-beta.5886.0",
44
- "@onereach/ui-components-common": "^26.4.1-beta.5886.0",
43
+ "@onereach/styles": "^26.4.1-beta.5887.0",
44
+ "@onereach/ui-components-common": "^26.4.1-beta.5887.0",
45
45
  "@splidejs/splide": "4.0.6",
46
46
  "@tiptap/core": "2.27.1",
47
47
  "@tiptap/extension-blockquote": "2.27.1",