sprintify-ui 0.0.62 → 0.0.64

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.
@@ -2615,7 +2615,7 @@ const us = { class: "relative" }, cs = { class: "relative" }, ds = ["value", "pl
2615
2615
  });
2616
2616
  return (a, s) => (b(), ee(Nt(e.to ? "RouterLink" : "div"), {
2617
2617
  to: e.to,
2618
- class: "flex items-center"
2618
+ class: "flex shrink-0 items-center"
2619
2619
  }, {
2620
2620
  default: H(() => [
2621
2621
  v("img", {
@@ -2677,6 +2677,7 @@ const us = { class: "relative" }, cs = { class: "relative" }, ds = ["value", "pl
2677
2677
  (b(!0), T(fe, null, ve(e.users, (a, s) => (b(), T("div", {
2678
2678
  key: a.email + "-" + s,
2679
2679
  role: "tooltip",
2680
+ class: "shrink-0",
2680
2681
  "aria-label": a.full_name + `
2681
2682
  ` + a.email,
2682
2683
  style: je({
@@ -6233,7 +6234,7 @@ const Wu = {
6233
6234
  function Ju(e, n, r, l, o, a) {
6234
6235
  return b(), T("svg", Wu, Yu);
6235
6236
  }
6236
- const Qo = /* @__PURE__ */ Ne(Gu, [["render", Ju], ["__scopeId", "data-v-945515f9"]]), Zu = (e) => (Il("data-v-756da018"), e = e(), El(), e), Xu = { class: "relative w-full overflow-hidden" }, ec = { class: "flex flex-col" }, tc = { class: "inline-block min-w-full align-middle" }, nc = { class: "relative min-h-[300px]" }, rc = { class: "min-w-full border-separate border-spacing-0" }, oc = {
6237
+ const Qo = /* @__PURE__ */ Ne(Gu, [["render", Ju], ["__scopeId", "data-v-945515f9"]]), Zu = (e) => (Il("data-v-225c4996"), e = e(), El(), e), Xu = { class: "relative w-full overflow-hidden" }, ec = { class: "flex flex-col" }, tc = { class: "inline-block min-w-full align-middle" }, nc = { class: "relative min-h-[300px]" }, rc = { class: "min-w-full border-separate border-spacing-0" }, oc = {
6237
6238
  key: 0,
6238
6239
  class: "th"
6239
6240
  }, lc = {
@@ -6335,7 +6336,7 @@ const Qo = /* @__PURE__ */ Ne(Gu, [["render", Ju], ["__scopeId", "data-v-945515f
6335
6336
  function y() {
6336
6337
  L.value && (S.value = L.value.clientHeight);
6337
6338
  }
6338
- const A = E(() => w.value), t = E(() => A.value ? A.value.filter((N) => N.visible === !1 ? !1 : !!(!Xe(l.visibleColumns) || l.visibleColumns.includes(N.newKey))) : A.value), O = E(() => {
6339
+ const A = E(() => w.value), t = E(() => A.value ? A.value.filter((N) => N.toggle === !1 ? !!N.visible : !!(!Xe(l.visibleColumns) || l.visibleColumns.includes(N.newKey))) : A.value), O = E(() => {
6339
6340
  let N = t.value.length;
6340
6341
  return N += l.checkable ? 1 : 0, N += l.detailed ? 1 : 0, N;
6341
6342
  }), D = E(() => l.detailed);
@@ -6710,7 +6711,7 @@ const Qo = /* @__PURE__ */ Ne(Gu, [["render", Ju], ["__scopeId", "data-v-945515f
6710
6711
  };
6711
6712
  }
6712
6713
  });
6713
- const Yo = /* @__PURE__ */ Ne(Ic, [["__scopeId", "data-v-756da018"]]), Jo = K({
6714
+ const Yo = /* @__PURE__ */ Ne(Ic, [["__scopeId", "data-v-225c4996"]]), Jo = K({
6714
6715
  name: "BaseTableColumn",
6715
6716
  props: {
6716
6717
  label: {
@@ -6750,8 +6751,8 @@ const Yo = /* @__PURE__ */ Ne(Ic, [["__scopeId", "data-v-756da018"]]), Jo = K({
6750
6751
  type: Boolean
6751
6752
  },
6752
6753
  visible: {
6753
- type: Boolean,
6754
- default: !0
6754
+ default: !0,
6755
+ type: Boolean
6755
6756
  },
6756
6757
  toggle: {
6757
6758
  type: Boolean,
@@ -6799,7 +6800,7 @@ const Yo = /* @__PURE__ */ Ne(Ic, [["__scopeId", "data-v-756da018"]]), Jo = K({
6799
6800
  }
6800
6801
  },
6801
6802
  created() {
6802
- this.newKey = this.nextSequence(), this.addColumn(this);
6803
+ this.customKey ? this.newKey = this.customKey + "" : this.newKey = this.nextSequence(), this.addColumn(this);
6803
6804
  },
6804
6805
  beforeUnmount() {
6805
6806
  this.removeColumn(this);
@@ -7061,7 +7062,8 @@ const Dc = /* @__PURE__ */ Ne(Lc, [["render", Fc]]), Pc = { class: "flex justify
7061
7062
  Y(u.$slots, "default"),
7062
7063
  z(Jo, {
7063
7064
  visible: e.editButton || e.deleteButton || u.$slots.rowActions != null,
7064
- toggle: !1
7065
+ toggle: !1,
7066
+ "custom-key": "actions"
7065
7067
  }, {
7066
7068
  default: H(({ row: se }) => [
7067
7069
  v("div", Pc, [
package/dist/style.css CHANGED
@@ -1,4 +1,4 @@
1
- @charset "UTF-8";.spinner[data-v-945515f9]{animation:rotate-945515f9 1s linear infinite;-webkit-animation:rotate-945515f9 1s linear infinite;-moz-animation:rotate-945515f9 1s linear infinite}@keyframes rotate-945515f9{to{transform:rotate(360deg)}}.path[data-v-945515f9]{stroke-dasharray:170;stroke-dashoffset:20}.th[data-v-756da018]{background-color:rgb(248 250 252 / var(--tw-bg-opacity));position:sticky;top:0px;z-index:1;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity));--tw-bg-opacity: .75;--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}circle[data-v-e5ae83e3]{transition:stroke-dashoffset .35s;transform:rotate(-90deg);transform-origin:50% 50%}/*!
1
+ @charset "UTF-8";.spinner[data-v-945515f9]{animation:rotate-945515f9 1s linear infinite;-webkit-animation:rotate-945515f9 1s linear infinite;-moz-animation:rotate-945515f9 1s linear infinite}@keyframes rotate-945515f9{to{transform:rotate(360deg)}}.path[data-v-945515f9]{stroke-dasharray:170;stroke-dashoffset:20}.th[data-v-225c4996]{background-color:rgb(248 250 252 / var(--tw-bg-opacity));position:sticky;top:0px;z-index:1;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity));--tw-bg-opacity: .75;--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}circle[data-v-e5ae83e3]{transition:stroke-dashoffset .35s;transform:rotate(-90deg);transform-origin:50% 50%}/*!
2
2
  * Pikaday
3
3
  * Copyright © 2014 David Bushell | BSD & MIT license | https://dbushell.com/
4
4
  */.pika-single{z-index:9999;display:block;position:relative;color:#333;background:#fff;border:1px solid #ccc;border-bottom-color:#bbb;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.pika-single:before,.pika-single:after{content:" ";display:table}.pika-single:after{clear:both}.pika-single.is-hidden{display:none}.pika-single.is-bound{position:absolute;box-shadow:0 5px 15px -5px #00000080}.pika-lendar{float:left;width:240px;margin:8px}.pika-title{position:relative;text-align:center}.pika-label{display:inline-block;position:relative;z-index:9999;overflow:hidden;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:700;background-color:#fff}.pika-title select{cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:5px;opacity:0}.pika-prev,.pika-next{display:block;cursor:pointer;position:relative;outline:none;border:0;padding:0;width:20px;height:30px;text-indent:20px;white-space:nowrap;overflow:hidden;background-color:transparent;background-position:center center;background-repeat:no-repeat;background-size:75% 75%;opacity:.5}.pika-prev:hover,.pika-next:hover{opacity:1}.pika-prev,.is-rtl .pika-next{float:left;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==)}.pika-next,.is-rtl .pika-prev{float:right;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=)}.pika-select{display:inline-block}.pika-table{width:100%;border-collapse:collapse;border-spacing:0;border:0}.pika-table th,.pika-table td{width:14.285714285714286%;padding:0}.pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:700;text-align:center}.pika-button{cursor:pointer;display:block;box-sizing:border-box;-moz-box-sizing:border-box;outline:none;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5;height:initial}.pika-week{font-size:11px;color:#999}.is-today .pika-button{color:#3af;font-weight:700}.is-selected .pika-button,.has-event .pika-button{color:#fff;font-weight:700;background:#33aaff;box-shadow:inset 0 1px 3px #178fe5;border-radius:3px}.has-event .pika-button{background:#005da9;box-shadow:inset 0 1px 3px #0076c9}.is-disabled .pika-button,.is-inrange .pika-button{background:#D5E9F7}.is-startrange .pika-button{color:#fff;background:#6CB31D;box-shadow:none;border-radius:3px}.is-endrange .pika-button{color:#fff;background:#33aaff;box-shadow:none;border-radius:3px}.is-disabled .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}.is-outside-current-month .pika-button{color:#999;opacity:.3}.is-selection-disabled{pointer-events:none;cursor:default}.pika-button:hover,.pika-row.pick-whole-week:hover .pika-button{color:#fff;background:#ff8000;box-shadow:none;border-radius:3px}.pika-table abbr{border-bottom:none;cursor:help}.pikaday-white{--backgroundColor: #ffffff;--textColor: #718096;--currentDateTextColor: #3182ce;--selectedDateBackgroundColor: #3182ce;--selectedDateTextColor: #ffffff;--labelTextColor: #4a5568;--weekDaysTextColor: #a0aec0;font-family:inherit;background-color:var(--backgroundColor);padding:.5rem;z-index:2000;margin:6px 0 0;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-radius:.5rem}.pikaday-white .pika-title{width:100%;text-align:center;display:flex;justify-content:flex-start;margin-bottom:5px}.pikaday-white .pika-prev,.pikaday-white .pika-next{position:absolute;outline:none;padding:0;width:26px;height:26px;top:-1px;display:inline-block;margin-top:0;cursor:pointer;text-indent:-9999px;white-space:nowrap;overflow:hidden;background-color:transparent;background-position:center center;background-repeat:no-repeat;opacity:.7}.pikaday-white .pika-prev:hover,.pikaday-white .pika-next:hover{opacity:1}.pikaday-white .pika-prev{right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19l-7-7 7-7'%3E%3C/path%3E%3C/svg%3E")}.pikaday-white .pika-next{right:2px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E")}.pika-prev.is-disabled,.pika-next.is-disabled{cursor:default;opacity:.2}.pikaday-white .pika-label{margin-right:.375rem;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity));padding:.25rem .5rem;font-size:14px;font-weight:500;line-height:1}.pikaday-white .pika-label{position:relative}.pikaday-white .pika-select-month,.pikaday-white .pika-select-year{width:100%;cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:0;opacity:0;padding:0}.pikaday-white table{width:100%;border-collapse:collapse}.pikaday-white table th{width:2em;height:2em;font-weight:400;color:var(--weekDaysTextColor);text-align:center}.pikaday-white table th abbr{text-decoration:none}.pikaday-white table td{padding:1px}.pikaday-white table td button{width:2em;height:2em;text-align:center;border-radius:9999px;background-color:var(--backgroundColor)}.pikaday-white table td button:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.pikaday-white table td.is-today button{color:var(--currentDateTextColor)}.pikaday-white table td.is-selected button{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));font-weight:400}.pikaday-white table td button{color:var(--textColor)}[aria-label][role~=tooltip]{position:relative}[aria-label][role~=tooltip]:before,[aria-label][role~=tooltip]:after{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;transition:all var(--microtip-transition-duration, .18s) var(--microtip-transition-easing, ease-in-out) var(--microtip-transition-delay, 0s);position:absolute;box-sizing:border-box;z-index:10;transform-origin:top}[aria-label][role~=tooltip]:before{background-size:100% auto!important;content:""}[aria-label][role~=tooltip]:after{background:rgba(17,17,17,.9);border-radius:4px;color:#fff;content:attr(aria-label);font-size:var(--microtip-font-size, 13px);font-weight:var(--microtip-font-weight, normal);text-transform:var(--microtip-text-transform, none);padding:.5em 1em;white-space:nowrap;box-sizing:content-box}[aria-label][role~=tooltip]:hover:before,[aria-label][role~=tooltip]:hover:after,[aria-label][role~=tooltip]:focus:before,[aria-label][role~=tooltip]:focus:after{opacity:1;pointer-events:auto}[role~=tooltip][data-microtip-position|=top]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:6px;width:18px;margin-bottom:5px}[role~=tooltip][data-microtip-position|=top]:after{margin-bottom:11px}[role~=tooltip][data-microtip-position|=top]:before{transform:translate3d(-50%,0,0);bottom:100%;left:50%}[role~=tooltip][data-microtip-position|=top]:hover:before{transform:translate3d(-50%,-5px,0)}[role~=tooltip][data-microtip-position|=top]:after{transform:translate3d(-50%,0,0);bottom:100%;left:50%}[role~=tooltip][data-microtip-position=top]:hover:after{transform:translate3d(-50%,-5px,0)}[role~=tooltip][data-microtip-position=top-left]:after{transform:translate3d(calc(-100% + 16px),0,0);bottom:100%}[role~=tooltip][data-microtip-position=top-left]:hover:after{transform:translate3d(calc(-100% + 16px),-5px,0)}[role~=tooltip][data-microtip-position=top-right]:after{transform:translate3d(calc(0% - 16px),0,0);bottom:100%}[role~=tooltip][data-microtip-position=top-right]:hover:after{transform:translate3d(calc(0% - 16px),-5px,0)}[role~=tooltip][data-microtip-position|=bottom]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:6px;width:18px;margin-top:5px;margin-bottom:0}[role~=tooltip][data-microtip-position|=bottom]:after{margin-top:11px}[role~=tooltip][data-microtip-position|=bottom]:before{transform:translate3d(-50%,-10px,0);bottom:auto;left:50%;top:100%}[role~=tooltip][data-microtip-position|=bottom]:hover:before{transform:translate3d(-50%,0,0)}[role~=tooltip][data-microtip-position|=bottom]:after{transform:translate3d(-50%,-10px,0);top:100%;left:50%}[role~=tooltip][data-microtip-position=bottom]:hover:after{transform:translate3d(-50%,0,0)}[role~=tooltip][data-microtip-position=bottom-left]:after{transform:translate3d(calc(-100% + 16px),-10px,0);top:100%}[role~=tooltip][data-microtip-position=bottom-left]:hover:after{transform:translate3d(calc(-100% + 16px),0,0)}[role~=tooltip][data-microtip-position=bottom-right]:after{transform:translate3d(calc(0% - 16px),-10px,0);top:100%}[role~=tooltip][data-microtip-position=bottom-right]:hover:after{transform:translate3d(calc(0% - 16px),0,0)}[role~=tooltip][data-microtip-position=left]:before,[role~=tooltip][data-microtip-position=left]:after{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0)}[role~=tooltip][data-microtip-position=left]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:18px;width:6px;margin-right:5px;margin-bottom:0}[role~=tooltip][data-microtip-position=left]:after{margin-right:11px}[role~=tooltip][data-microtip-position=left]:hover:before,[role~=tooltip][data-microtip-position=left]:hover:after{transform:translate3d(0,-50%,0)}[role~=tooltip][data-microtip-position=right]:before,[role~=tooltip][data-microtip-position=right]:after{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0)}[role~=tooltip][data-microtip-position=right]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:18px;width:6px;margin-bottom:0;margin-left:5px}[role~=tooltip][data-microtip-position=right]:after{margin-left:11px}[role~=tooltip][data-microtip-position=right]:hover:before,[role~=tooltip][data-microtip-position=right]:hover:after{transform:translate3d(0,-50%,0)}[role~=tooltip][data-microtip-size=small]:after{white-space:initial;width:80px}[role~=tooltip][data-microtip-size=medium]:after{white-space:initial;width:150px}[role~=tooltip][data-microtip-size=large]:after{white-space:initial;width:260px}input::-moz-placeholder,textarea::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(148 163 184 / var(--tw-placeholder-opacity))}input::placeholder,textarea::placeholder{--tw-placeholder-opacity: 1;color:rgb(148 163 184 / var(--tw-placeholder-opacity))}[aria-label][role~=tooltip]:after{white-space:pre-line}
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<{
37
37
  type: BooleanConstructor;
38
38
  };
39
39
  visible: {
40
- type: BooleanConstructor;
41
40
  default: boolean;
41
+ type: BooleanConstructor;
42
42
  };
43
43
  toggle: {
44
44
  type: BooleanConstructor;
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
71
71
  addColumn: any;
72
72
  removeColumn: any;
73
73
  }, {
74
- newKey: undefined;
74
+ newKey: string | undefined;
75
75
  }, {
76
76
  style(): {
77
77
  width: string | undefined;
@@ -114,8 +114,8 @@ declare const _default: import("vue").DefineComponent<{
114
114
  type: BooleanConstructor;
115
115
  };
116
116
  visible: {
117
- type: BooleanConstructor;
118
117
  default: boolean;
118
+ type: BooleanConstructor;
119
119
  };
120
120
  toggle: {
121
121
  type: BooleanConstructor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <component :is="to ? 'RouterLink' : 'div'" :to="to" class="flex items-center">
2
+ <component
3
+ :is="to ? 'RouterLink' : 'div'"
4
+ :to="to"
5
+ class="flex shrink-0 items-center"
6
+ >
3
7
  <img
4
8
  :src="user.avatar_url"
5
9
  :class="[sizeClass, detailsPosition == 'left' ? 'order-2' : 'order-1']"
@@ -10,25 +10,30 @@ export default {
10
10
  },
11
11
  },
12
12
  };
13
+
14
+ const user = {
15
+ email: 'jane@witify.io',
16
+ full_name: 'Jane Doe',
17
+ avatar_url:
18
+ 'https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face',
19
+ };
20
+
13
21
  const users = [
14
- {
15
- email: 'jane@witify.io',
16
- full_name: 'Jane Doe',
17
- avatar_url:
18
- 'https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face',
19
- },
20
- {
21
- email: 'jane@witify.io',
22
- full_name: 'Jane Doe',
23
- avatar_url:
24
- 'https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face',
25
- },
26
- {
27
- email: 'jane@witify.io',
28
- full_name: 'Jane Doe',
29
- avatar_url:
30
- 'https://images.unsplash.com/photo-1494790108377-be9c29b29330??auto=format&fit=crop&w=200&h=200&q=80&g=face',
31
- },
22
+ user,
23
+ user,
24
+ user,
25
+ user,
26
+ user,
27
+ user,
28
+ user,
29
+ user,
30
+ user,
31
+ user,
32
+ user,
33
+ user,
34
+ user,
35
+ user,
36
+ user,
32
37
  ];
33
38
 
34
39
  const Template = (args) => ({
@@ -37,7 +42,11 @@ const Template = (args) => ({
37
42
  return { args };
38
43
  },
39
44
  template: `
45
+ <p class="text-sm mt-2">Demo</p>
40
46
  <BaseAvatarGroup v-bind="args"></BaseAvatarGroup>
47
+
48
+ <p class="text-sm mt-2">With small container</p>
49
+ <div style="max-width: 200px; overflow: hidden;"><BaseAvatarGroup v-bind="args"></BaseAvatarGroup></div>
41
50
  `,
42
51
  });
43
52
 
@@ -4,6 +4,7 @@
4
4
  v-for="(user, index) in users"
5
5
  :key="user.email + '-' + index"
6
6
  role="tooltip"
7
+ class="shrink-0"
7
8
  :aria-label="user.full_name + '\n' + user.email"
8
9
  :style="{
9
10
  marginLeft: index === 0 ? '0' : '-' + spacing,
@@ -48,6 +48,7 @@
48
48
  v-slot="{ row }"
49
49
  :visible="editButton || deleteButton || $slots.rowActions != null"
50
50
  :toggle="false"
51
+ custom-key="actions"
51
52
  >
52
53
  <div class="flex justify-end text-right">
53
54
  <slot name="rowActions" :row="row" />
@@ -419,8 +419,8 @@ const visibleColumns = computed(() => {
419
419
  }
420
420
 
421
421
  return newColumns.value.filter((column: BaseTableColumn) => {
422
- if (column.visible === false) {
423
- return false;
422
+ if (column.toggle === false) {
423
+ return !!column.visible;
424
424
  }
425
425
 
426
426
  if (!isArray(props.visibleColumns)) {
@@ -41,8 +41,8 @@ export default defineComponent({
41
41
  type: Boolean,
42
42
  },
43
43
  visible: {
44
- type: Boolean,
45
44
  default: true,
45
+ type: Boolean,
46
46
  },
47
47
  toggle: {
48
48
  type: Boolean,
@@ -84,7 +84,7 @@ export default defineComponent({
84
84
  },
85
85
  data() {
86
86
  return {
87
- newKey: undefined,
87
+ newKey: undefined as string | undefined,
88
88
  };
89
89
  },
90
90
  computed: {
@@ -95,7 +95,11 @@ export default defineComponent({
95
95
  },
96
96
  },
97
97
  created() {
98
- this.newKey = this.nextSequence();
98
+ if (this.customKey) {
99
+ this.newKey = this.customKey + '';
100
+ } else {
101
+ this.newKey = this.nextSequence();
102
+ }
99
103
  this.addColumn(this);
100
104
  },
101
105
  beforeUnmount() {