@mythpe/quasar-ui-qui 0.0.71 → 0.0.73

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.0.71",
3
+ "version": "0.0.73",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -361,7 +361,9 @@ const hasShowBtn = computed<boolean>(() => {
361
361
  const hasDestroyBtn = computed<boolean>(() => !props.hideDestroyBtn)
362
362
  const hasFilterDialog = computed<boolean>(() => !!slots.filter)
363
363
  const hasMenu = computed<boolean>(() => {
364
- if (!!props.pdf || !!props.excel) {
364
+ const pdf = !!props.pdf && getRows.value.length > 0
365
+ const excel = !!props.excel && getRows.value.length > 0
366
+ if (pdf || excel) {
365
367
  return !0
366
368
  }
367
369
  return hasAddBtn.value && !!addListBtnComputed.value
@@ -1432,7 +1434,6 @@ defineOptions({
1432
1434
  <div class="col-auto">
1433
1435
  <MBtn
1434
1436
  :label="getFormTitle"
1435
- icon="ion-ios-add"
1436
1437
  no-caps
1437
1438
  @click="openCreateDialog()"
1438
1439
  />
@@ -1556,8 +1557,8 @@ defineOptions({
1556
1557
  key="more-selection-btn"
1557
1558
  :disable="tableOptions.loading"
1558
1559
  icon="ion-ios-options"
1559
- tooltip="myth.datatable.hints.more"
1560
1560
  label="myth.datatable.hints.options"
1561
+ tooltip="myth.datatable.hints.more"
1561
1562
  v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.buttons?.more}"
1562
1563
  >
1563
1564
  <MModalMenu
@@ -1589,8 +1590,9 @@ defineOptions({
1589
1590
  <span> {{ getFormTitle }}</span>
1590
1591
  </q-item-section>
1591
1592
  </q-item>
1593
+ <!-- Export PDF-->
1592
1594
  <q-item
1593
- v-if="pdf"
1595
+ v-if="pdf && getRows.length > 0"
1594
1596
  v-close-popup
1595
1597
  clickable
1596
1598
  v-bind="pluginOptions.dt?.buttons?.moreItem"
@@ -1616,8 +1618,9 @@ defineOptions({
1616
1618
  </span>
1617
1619
  </q-item-section>
1618
1620
  </q-item>
1621
+ <!-- Export Excel-->
1619
1622
  <q-item
1620
- v-if="excel"
1623
+ v-if="excel && getRows.length > 0"
1621
1624
  v-close-popup
1622
1625
  clickable
1623
1626
  v-bind="pluginOptions.dt?.buttons?.moreItem"
@@ -1670,8 +1673,8 @@ defineOptions({
1670
1673
  v-if="hasFilterDialog"
1671
1674
  key="filter-selection-btn"
1672
1675
  icon="o_filter_alt"
1673
- tooltip="myth.datatable.hints.filter"
1674
1676
  label="myth.datatable.hints.filter"
1677
+ tooltip="myth.datatable.hints.filter"
1675
1678
  v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.buttons?.filter}"
1676
1679
  @click="openFilterDialog()"
1677
1680
  >