sprintify-ui 0.0.66 → 0.0.67

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.
@@ -6947,16 +6947,16 @@ const Dc = /* @__PURE__ */ Ve(Lc, [["render", Fc]]), Pc = { class: "flex justify
6947
6947
  }
6948
6948
  },
6949
6949
  emits: [
6950
- "click",
6950
+ "cell-click",
6951
6951
  "delete",
6952
6952
  "checkAll",
6953
6953
  "update:checked-rows",
6954
- "check"
6954
+ "ce-check"
6955
6955
  ],
6956
6956
  setup(e, { expose: r, emit: n }) {
6957
6957
  const l = e, o = et(), a = xe.http, s = sr(), i = Et(), p = N(null), c = N(null);
6958
6958
  function w(u) {
6959
- n("click", u);
6959
+ n("cell-click", u);
6960
6960
  }
6961
6961
  const g = (u, m) => u.can && Object.prototype.hasOwnProperty.call(u.can, m) ? u.can[m] : !0, E = (u) => g(u, "update"), L = (u) => g(u, "delete");
6962
6962
  function S(u) {
@@ -7056,7 +7056,7 @@ const Dc = /* @__PURE__ */ Ve(Lc, [["render", Fc]]), Pc = { class: "flex justify
7056
7056
  onCheck: m[0] || (m[0] = (se) => u.$emit("check", se)),
7057
7057
  "onUpdate:checkedRows": m[1] || (m[1] = (se) => u.$emit("update:checked-rows", se)),
7058
7058
  onCheckAll: m[2] || (m[2] = (se) => u.$emit("checkAll", se)),
7059
- onClick: w
7059
+ onCellClick: w
7060
7060
  }, {
7061
7061
  default: H(() => [
7062
7062
  Y(u.$slots, "default"),
@@ -148,11 +148,11 @@ declare const _default: {
148
148
  type: NumberConstructor;
149
149
  };
150
150
  }>> & {
151
- onClick?: ((...args: any[]) => any) | undefined;
152
151
  onDelete?: ((...args: any[]) => any) | undefined;
153
152
  onCheckAll?: ((...args: any[]) => any) | undefined;
154
153
  "onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
155
- onCheck?: ((...args: any[]) => any) | undefined;
154
+ "onCell-click"?: ((...args: any[]) => any) | undefined;
155
+ "onCe-check"?: ((...args: any[]) => any) | undefined;
156
156
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "actions" | "urlQuery" | "defaultQuery" | "searchable" | "historyMode" | "detailed" | "checkable" | "checkableActions" | "isRowCheckable" | "checkedRows" | "hasDetailedVisible" | "maxHeight" | "editButton" | "editUrl" | "deleteButton" | "deleteUrl" | "toggleable">;
157
157
  $attrs: {
158
158
  [x: string]: unknown;
@@ -165,7 +165,7 @@ declare const _default: {
165
165
  }>;
166
166
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
167
167
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
168
- $emit: (event: "click" | "delete" | "checkAll" | "update:checked-rows" | "check", ...args: any[]) => void;
168
+ $emit: (event: "delete" | "checkAll" | "update:checked-rows" | "cell-click" | "ce-check", ...args: any[]) => void;
169
169
  $el: any;
170
170
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
171
171
  /**
@@ -293,15 +293,15 @@ declare const _default: {
293
293
  type: NumberConstructor;
294
294
  };
295
295
  }>> & {
296
- onClick?: ((...args: any[]) => any) | undefined;
297
296
  onDelete?: ((...args: any[]) => any) | undefined;
298
297
  onCheckAll?: ((...args: any[]) => any) | undefined;
299
298
  "onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
300
- onCheck?: ((...args: any[]) => any) | undefined;
299
+ "onCell-click"?: ((...args: any[]) => any) | undefined;
300
+ "onCe-check"?: ((...args: any[]) => any) | undefined;
301
301
  }, {
302
302
  fetch: () => void;
303
303
  query: import("vue").ComputedRef<DataTableQuery | null>;
304
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "delete" | "checkAll" | "update:checked-rows" | "check")[], string, {
304
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "checkAll" | "update:checked-rows" | "cell-click" | "ce-check")[], string, {
305
305
  actions: MenuItemInterface[];
306
306
  urlQuery: Record<string, any>;
307
307
  defaultQuery: DataTableQuery;
@@ -465,11 +465,11 @@ declare const _default: {
465
465
  type: NumberConstructor;
466
466
  };
467
467
  }>> & {
468
- onClick?: ((...args: any[]) => any) | undefined;
469
468
  onDelete?: ((...args: any[]) => any) | undefined;
470
469
  onCheckAll?: ((...args: any[]) => any) | undefined;
471
470
  "onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
472
- onCheck?: ((...args: any[]) => any) | undefined;
471
+ "onCell-click"?: ((...args: any[]) => any) | undefined;
472
+ "onCe-check"?: ((...args: any[]) => any) | undefined;
473
473
  } & import("vue").ShallowUnwrapRef<{
474
474
  fetch: () => void;
475
475
  query: import("vue").ComputedRef<DataTableQuery | null>;
@@ -603,15 +603,15 @@ declare const _default: {
603
603
  type: NumberConstructor;
604
604
  };
605
605
  }>> & {
606
- onClick?: ((...args: any[]) => any) | undefined;
607
606
  onDelete?: ((...args: any[]) => any) | undefined;
608
607
  onCheckAll?: ((...args: any[]) => any) | undefined;
609
608
  "onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
610
- onCheck?: ((...args: any[]) => any) | undefined;
609
+ "onCell-click"?: ((...args: any[]) => any) | undefined;
610
+ "onCe-check"?: ((...args: any[]) => any) | undefined;
611
611
  }, {
612
612
  fetch: () => void;
613
613
  query: import("vue").ComputedRef<DataTableQuery | null>;
614
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "delete" | "checkAll" | "update:checked-rows" | "check")[], "click" | "delete" | "checkAll" | "update:checked-rows" | "check", {
614
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "checkAll" | "update:checked-rows" | "cell-click" | "ce-check")[], "delete" | "checkAll" | "update:checked-rows" | "cell-click" | "ce-check", {
615
615
  actions: MenuItemInterface[];
616
616
  urlQuery: Record<string, any>;
617
617
  defaultQuery: DataTableQuery;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -39,7 +39,7 @@
39
39
  @check="$emit('check', $event)"
40
40
  @update:checked-rows="$emit('update:checked-rows', $event)"
41
41
  @check-all="$emit('checkAll', $event)"
42
- @click="onClick"
42
+ @cell-click="onCellClick"
43
43
  >
44
44
  <template #default>
45
45
  <slot />
@@ -335,11 +335,11 @@ const props = defineProps({
335
335
  });
336
336
 
337
337
  const emit = defineEmits([
338
- 'click',
338
+ 'cell-click',
339
339
  'delete',
340
340
  'checkAll',
341
341
  'update:checked-rows',
342
- 'check',
342
+ 'ce-check',
343
343
  ]);
344
344
 
345
345
  const dataIterator = ref(null) as Ref<null | InstanceType<
@@ -352,8 +352,8 @@ const dataIterator = ref(null) as Ref<null | InstanceType<
352
352
  |--------------------------------------------------------------------------
353
353
  */
354
354
 
355
- function onClick(payload: CollectionItem) {
356
- emit('click', payload);
355
+ function onCellClick(payload: CollectionItem) {
356
+ emit('cell-click', payload);
357
357
  }
358
358
 
359
359
  /*