@mythpe/quasar-ui-qui 0.4.6 → 0.4.8

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.6",
3
+ "version": "0.4.8",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -491,7 +491,8 @@ const bindAttr = computed(() => ({
491
491
  virtualScroll: !0,
492
492
  ...pluginOptions.value.datatable as any,
493
493
  ...attrs as any,
494
- ...mainAttrs.value as any
494
+ ...mainAttrs.value as any,
495
+ wrapCells: wrapCellsRef.value
495
496
  }))
496
497
  const showIfContext = (contextBtn: GenericMDtBtn): boolean => {
497
498
  contextBtn = toValue(contextBtn)
@@ -1289,7 +1290,7 @@ defineExpose({
1289
1290
  <!-- Wrap Btn -->
1290
1291
  <MDtBtn
1291
1292
  v-if="!computedNoWrapBtn"
1292
- :icon="`ion-ios-${!wrapCellsRef ? 'grid' : 'list'}`"
1293
+ :icon="`ion-ios-${wrapCellsRef ? 'code' : 'code-working'}`"
1293
1294
  flat
1294
1295
  tooltip="myth.datatable.wrapBtn"
1295
1296
  @click="wrapCellsRef = !wrapCellsRef"
@@ -297,15 +297,17 @@ export const Helpers = {
297
297
  }
298
298
  return `//${path}`
299
299
  },
300
- formatMoney (value: any = '', suffix: string = ''): string {
300
+ formatMoney (value: any = '', suffix: string = '', options?: Intl.NumberFormatOptions): string {
301
301
  let numValue = typeof value !== 'number' ? parseFloat(value) : value
302
302
  if (isNaN(numValue)) {
303
303
  numValue = 0.00
304
304
  }
305
- const formattedValue = numValue.toLocaleString('en-US', {
305
+ const opt = {
306
306
  minimumFractionDigits: 2,
307
- maximumFractionDigits: 2
308
- })
307
+ maximumFractionDigits: 2,
308
+ ...(options || {})
309
+ }
310
+ const formattedValue = numValue.toLocaleString('en-US', opt)
309
311
  return `${formattedValue} ${suffix}`.trim()
310
312
  },
311
313
  calculateAspectRatio: (width: number | string, height: number | string): [number, string] => {