@mythpe/quasar-ui-qui 0.4.5 → 0.4.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -103,6 +103,7 @@ type Props = {
103
103
  align?: MDatatableProps['align'];
104
104
  importBtn?: MDatatableProps['importBtn'];
105
105
  noExampleBtn?: MDatatableProps['noExampleBtn'];
106
+ wrapCells?: MDatatableProps['wrapCells'];
106
107
  }
107
108
 
108
109
  const props = withDefaults(defineProps<Props>(), {
@@ -182,7 +183,8 @@ const props = withDefaults(defineProps<Props>(), {
182
183
  lockValue: undefined,
183
184
  align: 'left',
184
185
  importBtn: undefined,
185
- noExampleBtn: undefined
186
+ noExampleBtn: undefined,
187
+ wrapCells: undefined
186
188
  })
187
189
 
188
190
  interface Emits {
@@ -482,15 +484,15 @@ const mainAttrs = computed(() => ({
482
484
  title: getTableTitle.value,
483
485
  bordered: props.bordered === undefined ? pluginOptions.value.datatable?.bordered : props.bordered,
484
486
  dense: props.dense === undefined ? (theme.value?.inputs?.dense !== undefined ? theme.value.inputs.dense : pluginOptions.value.datatable?.dense) : props.dense,
485
- flat: props.flat === undefined ? pluginOptions.value.datatable?.flat : props.flat,
486
- wrapCells: wrapCellsRef.value
487
+ flat: props.flat === undefined ? pluginOptions.value.datatable?.flat : props.flat
487
488
  }))
488
489
  const attrs = useAttrs()
489
490
  const bindAttr = computed(() => ({
490
491
  virtualScroll: !0,
491
492
  ...pluginOptions.value.datatable as any,
492
493
  ...attrs as any,
493
- ...mainAttrs.value as any
494
+ ...mainAttrs.value as any,
495
+ wrapCells: wrapCellsRef.value
494
496
  }))
495
497
  const showIfContext = (contextBtn: GenericMDtBtn): boolean => {
496
498
  contextBtn = toValue(contextBtn)
@@ -622,6 +624,7 @@ defineExpose({
622
624
  :rows-per-page-options="getRowsPerPageOptions"
623
625
  :selection="getShowSelection ? (multiSelection ? 'multiple' : 'single') : 'none'"
624
626
  :visible-columns="visibleHeaders"
627
+ :wrap-cells="wrapCellsRef"
625
628
  card-container-class="m-datatable-container"
626
629
  color="primary"
627
630
  table-class="m-datatable-container"
@@ -1287,7 +1290,7 @@ defineExpose({
1287
1290
  <!-- Wrap Btn -->
1288
1291
  <MDtBtn
1289
1292
  v-if="!computedNoWrapBtn"
1290
- :icon="`ion-ios-${!wrapCellsRef ? 'grid' : 'list'}`"
1293
+ :icon="`ion-ios-${wrapCellsRef ? 'code' : 'code-working'}`"
1291
1294
  flat
1292
1295
  tooltip="myth.datatable.wrapBtn"
1293
1296
  @click="wrapCellsRef = !wrapCellsRef"