sprintify-ui 0.6.25 → 0.6.27

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.
@@ -8751,6 +8751,7 @@ const Dd = /* @__PURE__ */ _e({
8751
8751
  __name: "BaseButton",
8752
8752
  props: {
8753
8753
  as: { default: "button" },
8754
+ disabled: { type: Boolean, default: !1 },
8754
8755
  class: { type: [Array, String, null, Number, Boolean], default: "" },
8755
8756
  loading: { type: Boolean, default: !1 },
8756
8757
  icon: { default: "" },
@@ -8801,6 +8802,7 @@ const Dd = /* @__PURE__ */ _e({
8801
8802
  ref: "button",
8802
8803
  class: fe(T(i)),
8803
8804
  to: l.to,
8805
+ disabled: l.disabled,
8804
8806
  type: l.type,
8805
8807
  onClick: s[0] || (s[0] = (c) => l.$emit("click"))
8806
8808
  }, {
@@ -8823,7 +8825,7 @@ const Dd = /* @__PURE__ */ _e({
8823
8825
  l.loading ? (P(), G("div", wE, EE)) : Se("", !0)
8824
8826
  ]),
8825
8827
  _: 3
8826
- }, 8, ["class", "to", "type"]));
8828
+ }, 8, ["class", "to", "disabled", "type"]));
8827
8829
  }
8828
8830
  }), SE = ["type", "disabled", "onClick"], ig = /* @__PURE__ */ _e({
8829
8831
  __name: "BaseButtonGroup",
@@ -25007,6 +25009,20 @@ const Hy = /* @__PURE__ */ qr(XR, [["render", nM]]), rM = ["disabled"], iM = /*
25007
25009
  default: void 0,
25008
25010
  type: Function
25009
25011
  },
25012
+ /**
25013
+ * Delete label
25014
+ */
25015
+ deleteLabel: {
25016
+ default: "",
25017
+ type: String
25018
+ },
25019
+ /**
25020
+ * Delete message
25021
+ */
25022
+ deleteMessage: {
25023
+ default: "",
25024
+ type: String
25025
+ },
25010
25026
  /**
25011
25027
  * Show toggle-able details on each row
25012
25028
  */
@@ -25141,8 +25157,8 @@ const Hy = /* @__PURE__ */ qr(XR, [["render", nM]]), rM = ["disabled"], iM = /*
25141
25157
  const h = (ie, Z) => ie.can && Object.prototype.hasOwnProperty.call(ie.can, Z) ? ie.can[Z] : !0, f = (ie) => h(ie, "update"), p = (ie) => h(ie, "delete");
25142
25158
  function v(ie) {
25143
25159
  a.push({
25144
- title: je("sui.delete_record") + "?",
25145
- message: je("sui.delete_record_description"),
25160
+ title: r.deleteLabel ? r.deleteLabel : je("sui.delete_record") + "?",
25161
+ message: r.deleteMessage ? r.deleteMessage : je("sui.delete_record_description"),
25146
25162
  color: "danger",
25147
25163
  closeOnOutsideClick: !0,
25148
25164
  confirmText: je("sui.yes_delete"),
@@ -21,6 +21,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
21
21
  type: import("vue").PropType<string>;
22
22
  default: string;
23
23
  };
24
+ disabled: {
25
+ type: import("vue").PropType<boolean>;
26
+ default: boolean;
27
+ };
24
28
  loading: {
25
29
  type: import("vue").PropType<boolean>;
26
30
  default: boolean;
@@ -60,6 +64,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
60
64
  type: import("vue").PropType<string>;
61
65
  default: string;
62
66
  };
67
+ disabled: {
68
+ type: import("vue").PropType<boolean>;
69
+ default: boolean;
70
+ };
63
71
  loading: {
64
72
  type: import("vue").PropType<boolean>;
65
73
  default: boolean;
@@ -84,6 +92,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
84
92
  to: RouteLocationRaw;
85
93
  color: "" | "danger" | "success" | "warning" | "primary" | "secondary" | "info" | "black" | "white" | "secondary-outline" | "success-outline" | "danger-outline" | "warning-outline" | "info-outline" | "slate-100" | "slate-100-outline" | "slate-200" | "slate-200-outline";
86
94
  icon: string;
95
+ disabled: boolean;
87
96
  loading: boolean;
88
97
  size: "xs" | "sm" | "lg" | "xl" | "md";
89
98
  as: string;
@@ -62,6 +62,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
62
62
  default: undefined;
63
63
  type: PropType<((row: CollectionItem) => string) | undefined>;
64
64
  };
65
+ /**
66
+ * Delete label
67
+ */
68
+ deleteLabel: {
69
+ default: string;
70
+ type: StringConstructor;
71
+ };
72
+ /**
73
+ * Delete message
74
+ */
75
+ deleteMessage: {
76
+ default: string;
77
+ type: StringConstructor;
78
+ };
65
79
  /**
66
80
  * Show toggle-able details on each row
67
81
  */
@@ -239,6 +253,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
239
253
  default: undefined;
240
254
  type: PropType<((row: CollectionItem) => string) | undefined>;
241
255
  };
256
+ /**
257
+ * Delete label
258
+ */
259
+ deleteLabel: {
260
+ default: string;
261
+ type: StringConstructor;
262
+ };
263
+ /**
264
+ * Delete message
265
+ */
266
+ deleteMessage: {
267
+ default: string;
268
+ type: StringConstructor;
269
+ };
242
270
  /**
243
271
  * Show toggle-able details on each row
244
272
  */
@@ -375,6 +403,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
375
403
  editUrl: ((row: CollectionItem) => RouteLocationRaw) | undefined;
376
404
  deleteButton: boolean;
377
405
  deleteUrl: ((row: CollectionItem) => string) | undefined;
406
+ deleteLabel: string;
407
+ deleteMessage: string;
378
408
  checkableActions: ActionItem[];
379
409
  toggleable: boolean;
380
410
  rowActions: RowAction[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.25",
3
+ "version": "0.6.27",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -4,6 +4,7 @@
4
4
  ref="button"
5
5
  :class="classes"
6
6
  :to="to"
7
+ :disabled="disabled"
7
8
  :type="type"
8
9
  @click="$emit('click')"
9
10
  >
@@ -81,6 +82,7 @@ const colors = {
81
82
 
82
83
  const props = withDefaults(defineProps<{
83
84
  as?: string;
85
+ disabled?: boolean;
84
86
  class?: ClassNameValue,
85
87
  loading?: boolean;
86
88
  icon?: string;
@@ -91,6 +93,7 @@ const props = withDefaults(defineProps<{
91
93
  to?: RouteLocationRaw;
92
94
  }>(), {
93
95
  as: 'button',
96
+ disabled: false,
94
97
  class: '',
95
98
  loading: false,
96
99
  icon: '',
@@ -341,6 +341,22 @@ const props = defineProps({
341
341
  type: Function as PropType<((row: CollectionItem) => string) | undefined>,
342
342
  },
343
343
 
344
+ /**
345
+ * Delete label
346
+ */
347
+ deleteLabel: {
348
+ default: '',
349
+ type: String,
350
+ },
351
+
352
+ /**
353
+ * Delete message
354
+ */
355
+ deleteMessage: {
356
+ default: '',
357
+ type: String,
358
+ },
359
+
344
360
  /**
345
361
  * Show toggle-able details on each row
346
362
  */
@@ -523,8 +539,8 @@ const canDelete = (row: CollectionItem): boolean => {
523
539
 
524
540
  function onDeleteClick(row: CollectionItem) {
525
541
  dialogs.push({
526
- title: t('sui.delete_record') + '?',
527
- message: t('sui.delete_record_description'),
542
+ title: props.deleteLabel ? props.deleteLabel : (t('sui.delete_record') + '?'),
543
+ message: props.deleteMessage ? props.deleteMessage : t('sui.delete_record_description'),
528
544
  color: 'danger',
529
545
  closeOnOutsideClick: true,
530
546
  confirmText: t('sui.yes_delete'),