tsv2-library 0.2.3 → 0.2.4

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.
@@ -37,6 +37,11 @@ export interface ButtonBulkActionProps {
37
37
  * @default true
38
38
  */
39
39
  showSelectAllButton?: boolean;
40
+ /**
41
+ * Define wheter use this component with its bulk action button or not
42
+ * @default true
43
+ */
44
+ useButton?: boolean;
40
45
  }
41
46
 
42
47
  export interface ButtonBulkActionSlots {
@@ -39036,7 +39036,8 @@ const NM = ["onClick"], Cy = /* @__PURE__ */ De({
39036
39036
  naming: {},
39037
39037
  tableName: { default: "datatable" },
39038
39038
  for: {},
39039
- showSelectAllButton: { type: Boolean, default: !0 }
39039
+ showSelectAllButton: { type: Boolean, default: !0 },
39040
+ useButton: { type: Boolean, default: !0 }
39040
39041
  },
39041
39042
  emits: ["apply", "update:selectedData"],
39042
39043
  setup(e, { emit: t }) {
@@ -39092,7 +39093,8 @@ const NM = ["onClick"], Cy = /* @__PURE__ */ De({
39092
39093
  class: "flex gap-2 items-center text-xs font-medium align-center",
39093
39094
  "data-ts-name": "ts-bulkaction"
39094
39095
  }, [
39095
- B(et, {
39096
+ n.useButton ? (g(), N(et, {
39097
+ key: 0,
39096
39098
  ref_key: "bulkActionButton",
39097
39099
  ref: o,
39098
39100
  disabled: n.disabled || c.value || !((F = w.selectedData) != null && F.length),
@@ -39104,9 +39106,9 @@ const NM = ["onClick"], Cy = /* @__PURE__ */ De({
39104
39106
  icon: "arrow-down",
39105
39107
  "icon-pos": "right",
39106
39108
  outlined: ""
39107
- }, null, 8, ["disabled", "label"]),
39109
+ }, null, 8, ["disabled", "label"])) : Z("", !0),
39108
39110
  (T = w.selectedData) != null && T.length ? (g(), N(_(El), {
39109
- key: 0,
39111
+ key: 1,
39110
39112
  id: "bulkaction-overlay-menu",
39111
39113
  ref_key: "menu",
39112
39114
  ref: a,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsv2-library",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "author": "fixedassetv2-fe",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
@@ -37,6 +37,11 @@ export interface ButtonBulkActionProps {
37
37
  * @default true
38
38
  */
39
39
  showSelectAllButton?: boolean;
40
+ /**
41
+ * Define wheter use this component with its bulk action button or not
42
+ * @default true
43
+ */
44
+ useButton?: boolean;
40
45
  }
41
46
 
42
47
  export interface ButtonBulkActionSlots {