@leaflink/stash 50.12.0 → 50.12.2
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/dist/Accordion.js +14 -14
- package/dist/ActionsDropdown.js +2 -2
- package/dist/AddressSelect.js +2 -2
- package/dist/Alert.js +6 -6
- package/dist/AppNavigationItem.js +8 -8
- package/dist/AppSidebar.js +8 -8
- package/dist/AppTopbar.js +3 -3
- package/dist/Avatar.js +3 -3
- package/dist/Backdrop.js +2 -2
- package/dist/Badge.js +2 -2
- package/dist/Box.js +1 -1
- package/dist/{Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js → Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js} +3 -3
- package/dist/{Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js.map → Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js.map} +1 -1
- package/dist/Button.js +3 -3
- package/dist/ButtonGroup.js +4 -4
- package/dist/Card.js +7 -7
- package/dist/CardContent.js +2 -2
- package/dist/CardFooter.js +2 -2
- package/dist/CardHeader.js +4 -4
- package/dist/CardMedia.js +6 -6
- package/dist/Carousel.js +33 -33
- package/dist/Carousel.js.map +1 -1
- package/dist/Checkbox.js +7 -7
- package/dist/ChevronToggle.js +1 -1
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js → ChevronToggle.vue_vue_type_script_setup_true_lang-Ce_qOXfR.js} +3 -3
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js.map → ChevronToggle.vue_vue_type_script_setup_true_lang-Ce_qOXfR.js.map} +1 -1
- package/dist/Chip.js +7 -7
- package/dist/ConfirmationCodeInput.js +6 -6
- package/dist/ContextSwitcher.js +1 -1
- package/dist/Copy.js +1 -1
- package/dist/CurrencyInput.js +115 -111
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/DataView.js +3 -3
- package/dist/DataView.keys-aSOnA4AD.js.map +1 -1
- package/dist/DataViewFilters.js +3 -3
- package/dist/DataViewSortButton.js +10 -10
- package/dist/DataViewToolbar.js +1 -1
- package/dist/DatePicker.js +1080 -1037
- package/dist/DatePicker.js.map +1 -1
- package/dist/DescriptionList.js +2 -2
- package/dist/DescriptionListDetail.js +2 -2
- package/dist/DescriptionListGroup.js +2 -2
- package/dist/DescriptionListTerm.js +3 -3
- package/dist/Dialog.js +1 -1
- package/dist/Divider.js +2 -2
- package/dist/Dropdown.js +9 -9
- package/dist/EmptyState.js +2 -2
- package/dist/Expand.js +1 -1
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js → Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js} +5 -5
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map → Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js.map} +1 -1
- package/dist/Field.js +1 -1
- package/dist/{Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js → Field.vue_vue_type_script_setup_true_lang-DRaKs9Lm.js} +6 -6
- package/dist/{Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js.map → Field.vue_vue_type_script_setup_true_lang-DRaKs9Lm.js.map} +1 -1
- package/dist/FileUpload.js +7 -7
- package/dist/FilterChip.js +1 -1
- package/dist/FilterDrawerItem.js +9 -9
- package/dist/FilterDropdown.js +1 -1
- package/dist/FilterSelect.js +4 -4
- package/dist/Filters.js +18 -18
- package/dist/HttpError.js +9 -9
- package/dist/Icon.js +2 -2
- package/dist/IconLabel.js +2 -2
- package/dist/Illustration.js +2 -2
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-CYddAFtS.js → Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js} +3 -3
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-CYddAFtS.js.map → Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js.map} +1 -1
- package/dist/Image.js +2 -2
- package/dist/{Image.vue_vue_type_script_setup_true_lang-YUNunj71.js → Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js} +3 -3
- package/dist/{Image.vue_vue_type_script_setup_true_lang-YUNunj71.js.map → Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js.map} +1 -1
- package/dist/InlineEdit.js +5 -5
- package/dist/Input.js +2 -2
- package/dist/InputOptions.js +2 -2
- package/dist/IntegrationIcon.js +2 -2
- package/dist/Label.js +1 -1
- package/dist/{Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js → Label.vue_vue_type_script_setup_true_lang-DPnNUfc6.js} +3 -3
- package/dist/{Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js.map → Label.vue_vue_type_script_setup_true_lang-DPnNUfc6.js.map} +1 -1
- package/dist/LicenseChip.js +2 -2
- package/dist/ListItem.js +1 -1
- package/dist/ListItemCell.js +2 -2
- package/dist/ListView.js +11 -11
- package/dist/Loading.js +2 -2
- package/dist/Logo.js +1 -1
- package/dist/{Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js → Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js} +4 -4
- package/dist/{Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js.map → Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js.map} +1 -1
- package/dist/Menu.js +2 -2
- package/dist/MenuItem.js +2 -2
- package/dist/Metric.js +5 -5
- package/dist/Modal.js +20 -20
- package/dist/Modals.js +6 -6
- package/dist/Module.js +3 -3
- package/dist/ModuleContent.js +3 -3
- package/dist/ModuleFooter.js +2 -2
- package/dist/ModuleHeader.js +2 -2
- package/dist/ModuleHeader.js.map +1 -1
- package/dist/ObfuscateText.js +7 -7
- package/dist/PageContent.js +3 -3
- package/dist/PageHeader.js +6 -6
- package/dist/PageNavigation.js +1 -1
- package/dist/Paginate.js +6 -6
- package/dist/PlaidLink.js +2 -2
- package/dist/QuickAction.js +2 -2
- package/dist/Radio.js +2 -2
- package/dist/RadioGroup.js +2 -2
- package/dist/RadioNew.js +1 -1
- package/dist/RangeInput.js +2 -2
- package/dist/SearchBar.js +3 -3
- package/dist/Select.js +4 -4
- package/dist/Select.js.map +1 -1
- package/dist/SelectStatus.js +7 -7
- package/dist/Skeleton.js +4 -4
- package/dist/Step.js +6 -6
- package/dist/Stepper.js +9 -9
- package/dist/Switch.js +7 -7
- package/dist/Tab.js +4 -4
- package/dist/TabPanel.js +2 -2
- package/dist/Table.js +1 -1
- package/dist/TableCell.js +5 -5
- package/dist/TableHeaderCell.js +2 -2
- package/dist/TableHeaderRow.js +4 -4
- package/dist/TableRow.js +4 -4
- package/dist/TableRow.js.map +1 -1
- package/dist/TableRow.vue.d.ts +12 -8
- package/dist/Tabs.js +2 -2
- package/dist/{Tabs.vue_vue_type_script_setup_true_lang-NZm1OrRT.js → Tabs.vue_vue_type_script_setup_true_lang-CmnBP4i1.js} +4 -4
- package/dist/{Tabs.vue_vue_type_script_setup_true_lang-NZm1OrRT.js.map → Tabs.vue_vue_type_script_setup_true_lang-CmnBP4i1.js.map} +1 -1
- package/dist/TextEditor.js +3313 -3291
- package/dist/TextEditor.js.map +1 -1
- package/dist/Textarea.js +3 -3
- package/dist/Thumbnail.js +7 -7
- package/dist/Thumbnail.js.map +1 -1
- package/dist/ThumbnailEmpty.js +3 -3
- package/dist/ThumbnailGroup.js +6 -6
- package/dist/ThumbnailGroup.js.map +1 -1
- package/dist/{ThumbnailGroup.keys-D6WL5xQ5.js → ThumbnailGroup.keys-EJ4qFNhx.js} +2 -2
- package/dist/{ThumbnailGroup.keys-D6WL5xQ5.js.map → ThumbnailGroup.keys-EJ4qFNhx.js.map} +1 -1
- package/dist/Timeline.js +2 -2
- package/dist/TimelineItem.js +3 -3
- package/dist/Toast.js +277 -280
- package/dist/Toast.js.map +1 -1
- package/dist/Toasts.js +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/components.css +1 -1
- package/dist/{formatDateTime-C8CYECpd.js → formatDateTime-Dz8bXV0R.js} +98 -12
- package/dist/{formatDateTime-C8CYECpd.js.map → formatDateTime-Dz8bXV0R.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/searchFuzzy-DRasJ33G.js +409 -0
- package/dist/{searchFuzzy-DKooyZM8.js.map → searchFuzzy-DRasJ33G.js.map} +1 -1
- package/dist/storage.js +3 -3
- package/dist/{toTimeZone-CVE1ZmsS.js → toTimeZone-Coq1oPTt.js} +7 -9
- package/dist/{toTimeZone-CVE1ZmsS.js.map → toTimeZone-Coq1oPTt.js.map} +1 -1
- package/dist/useSearch.js +1 -1
- package/dist/utils/formatDateTime.js +2 -2
- package/dist/utils/searchFuzzy.js +1 -1
- package/dist/utils/toTimeZone.js +1 -1
- package/package.json +16 -16
- package/dist/searchFuzzy-DKooyZM8.js +0 -407
package/dist/DescriptionList.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, provide as n,
|
|
1
|
+
import { defineComponent as d, provide as n, createElementBlock as s, openBlock as i, normalizeClass as o, renderSlot as l } from "vue";
|
|
2
2
|
import { D as r } from "./DescriptionList.keys-BHlHYV6b.js";
|
|
3
3
|
var c = /* @__PURE__ */ ((e) => (e.Columns = "columns", e.Inline = "inline", e.Stacked = "stacked", e.SpaceBetween = "space-between", e))(c || {});
|
|
4
4
|
const p = ["data-variant"], f = /* @__PURE__ */ d({
|
|
@@ -9,7 +9,7 @@ const p = ["data-variant"], f = /* @__PURE__ */ d({
|
|
|
9
9
|
},
|
|
10
10
|
setup(e) {
|
|
11
11
|
const t = e;
|
|
12
|
-
return n(r.key, { divide: t.divide, variant: t.variant }), (a, v) => (
|
|
12
|
+
return n(r.key, { divide: t.divide, variant: t.variant }), (a, v) => (i(), s("dl", {
|
|
13
13
|
"data-variant": t.variant,
|
|
14
14
|
class: o(["stash-description-list tw-text-sm", {
|
|
15
15
|
"tw-divide-y tw-divide-ice-200": t.divide
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, inject as n,
|
|
1
|
+
import { defineComponent as a, inject as n, createElementBlock as o, openBlock as r, unref as i, normalizeClass as c, renderSlot as d } from "vue";
|
|
2
2
|
import { D as l } from "./DescriptionList.keys-BHlHYV6b.js";
|
|
3
3
|
const p = ["data-variant"], h = /* @__PURE__ */ a({
|
|
4
4
|
__name: "DescriptionListDetail",
|
|
@@ -7,7 +7,7 @@ const p = ["data-variant"], h = /* @__PURE__ */ a({
|
|
|
7
7
|
if (!t)
|
|
8
8
|
throw new Error("DescriptionListDetail must be used within a DescriptionList component.");
|
|
9
9
|
const { variant: e } = t;
|
|
10
|
-
return (s, _) => (
|
|
10
|
+
return (s, _) => (r(), o("dd", {
|
|
11
11
|
class: c(["stash-description-list-detail tw-flex-1 tw-text-ice-700", {
|
|
12
12
|
"md:tw-text-right": i(e) === "space-between"
|
|
13
13
|
}]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, inject as o,
|
|
1
|
+
import { defineComponent as n, inject as o, createElementBlock as r, openBlock as p, unref as t, normalizeClass as d, renderSlot as c } from "vue";
|
|
2
2
|
import { D as l } from "./DescriptionList.keys-BHlHYV6b.js";
|
|
3
3
|
const w = ["data-divide", "data-variant"], v = /* @__PURE__ */ n({
|
|
4
4
|
__name: "DescriptionListGroup",
|
|
@@ -7,7 +7,7 @@ const w = ["data-divide", "data-variant"], v = /* @__PURE__ */ n({
|
|
|
7
7
|
if (!s)
|
|
8
8
|
throw new Error("DescriptionListDetail must be used within a DescriptionList component.");
|
|
9
9
|
const { divide: i, variant: e } = s;
|
|
10
|
-
return (a, u) => (
|
|
10
|
+
return (a, u) => (p(), r("div", {
|
|
11
11
|
class: d(["stash-description-list-group", {
|
|
12
12
|
"md:tw-flex md:tw-gap-x-6": t(e) === "columns" || t(e) === "space-between",
|
|
13
13
|
"tw-justify-between": t(e) === "space-between",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as o, inject as r,
|
|
1
|
+
import { defineComponent as o, inject as r, createElementBlock as i, openBlock as n, unref as e, normalizeClass as c, renderSlot as d, createCommentVNode as m } from "vue";
|
|
2
2
|
import { D as l } from "./DescriptionList.keys-BHlHYV6b.js";
|
|
3
3
|
const p = ["data-variant"], w = {
|
|
4
4
|
key: 0,
|
|
@@ -10,7 +10,7 @@ const p = ["data-variant"], w = {
|
|
|
10
10
|
if (!s)
|
|
11
11
|
throw new Error("DescriptionListDetail must be used within a DescriptionList component.");
|
|
12
12
|
const { variant: t } = s;
|
|
13
|
-
return (a, u) => (
|
|
13
|
+
return (a, u) => (n(), i("dt", {
|
|
14
14
|
class: c(["stash-description-list-term tw-font-medium tw-text-ice-900", {
|
|
15
15
|
"md:tw-max-w-40 md:tw-basis-2/5": e(t) === "columns",
|
|
16
16
|
"tw-mr-1.5": e(t) === "inline",
|
|
@@ -21,7 +21,7 @@ const p = ["data-variant"], w = {
|
|
|
21
21
|
"data-variant": e(t)
|
|
22
22
|
}, [
|
|
23
23
|
d(a.$slots, "default"),
|
|
24
|
-
e(t) === "inline" ? (
|
|
24
|
+
e(t) === "inline" ? (n(), i("span", w, ":")) : m("", !0)
|
|
25
25
|
], 10, p));
|
|
26
26
|
}
|
|
27
27
|
});
|
package/dist/Dialog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, useSlots as H, useAttrs as K, useCssModule as L, ref as T, computed as s, watchEffect as q, nextTick as F,
|
|
1
|
+
import { defineComponent as A, useSlots as H, useAttrs as K, useCssModule as L, ref as T, computed as s, watchEffect as q, nextTick as F, createBlock as f, openBlock as l, Transition as P, withCtx as m, createElementBlock as _, createCommentVNode as c, mergeProps as Y, unref as e, withKeys as j, createElementVNode as a, normalizeClass as o, toDisplayString as p, renderSlot as G, createVNode as J, createTextVNode as S } from "vue";
|
|
2
2
|
import y from "lodash-es/capitalize";
|
|
3
3
|
import O from "lodash-es/uniqueId";
|
|
4
4
|
import { S as B, b as g, a as I } from "./statusLevels-D8EgtE_L.js";
|
package/dist/Divider.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as t, openBlock as s, normalizeClass as r, renderSlot as o } from "vue";
|
|
2
2
|
import { _ as a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
const c = "_separator_5w47w_2", l = {
|
|
4
4
|
separator: c
|
|
@@ -6,7 +6,7 @@ const c = "_separator_5w47w_2", l = {
|
|
|
6
6
|
name: "ll-divider"
|
|
7
7
|
};
|
|
8
8
|
function p(e, i, _, f, m, u) {
|
|
9
|
-
return
|
|
9
|
+
return s(), t("div", {
|
|
10
10
|
class: r(["tw-flex tw-items-center tw-text-center tw-uppercase", e.$style.separator]),
|
|
11
11
|
role: "separator"
|
|
12
12
|
}, [
|
package/dist/Dropdown.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, ref as r, useCssModule as q, watch as C, onMounted as K, onBeforeUnmount as R, computed as U, withDirectives as _,
|
|
1
|
+
import { defineComponent as I, ref as r, useCssModule as q, watch as C, onMounted as K, onBeforeUnmount as R, computed as U, withDirectives as _, createElementBlock as k, openBlock as m, renderSlot as x, createVNode as E, createElementVNode as b, normalizeClass as S, createBlock as V, createTextVNode as W, toDisplayString as Y, Transition as F, withCtx as j, normalizeStyle as G, unref as M, vShow as H, nextTick as A } from "vue";
|
|
2
2
|
import { KEY_CODES as f } from "./constants.js";
|
|
3
3
|
import J from "./directives/clickoutside.js";
|
|
4
4
|
import Q from "./utils/calculateElementOverflow.js";
|
|
@@ -100,31 +100,31 @@ const ee = ["aria-expanded"], te = {
|
|
|
100
100
|
isActive: l.value,
|
|
101
101
|
toggle: v
|
|
102
102
|
}, () => [
|
|
103
|
-
|
|
103
|
+
b("button", {
|
|
104
104
|
"data-test": "button|toggle",
|
|
105
105
|
"aria-expanded": l.value,
|
|
106
|
-
class:
|
|
106
|
+
class: S([e.label ? "tw-min-w-auto tw-outline-none" : "tw-rounded tw-p-3"]),
|
|
107
107
|
onClick: v
|
|
108
108
|
}, [
|
|
109
109
|
e.label ? (m(), k("span", te, [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
])) : (m(),
|
|
110
|
+
W(Y(e.label) + " ", 1),
|
|
111
|
+
E(B, { name: "caret-down" })
|
|
112
|
+
])) : (m(), V(B, {
|
|
113
113
|
key: 1,
|
|
114
114
|
name: "ellipsis"
|
|
115
115
|
}))
|
|
116
116
|
], 10, ee)
|
|
117
117
|
]),
|
|
118
|
-
|
|
118
|
+
E(F, {
|
|
119
119
|
name: "fade",
|
|
120
120
|
onAfterLeave: O
|
|
121
121
|
}, {
|
|
122
122
|
default: j(() => [
|
|
123
|
-
_(
|
|
123
|
+
_(b("div", {
|
|
124
124
|
ref_key: "contentRef",
|
|
125
125
|
ref: t,
|
|
126
126
|
"data-test": "ll-dropdown-content",
|
|
127
|
-
class:
|
|
127
|
+
class: S([
|
|
128
128
|
M(T).content,
|
|
129
129
|
e.contentClass,
|
|
130
130
|
{
|
package/dist/EmptyState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as p, useCssModule as f, useSlots as _,
|
|
1
|
+
import { defineComponent as p, useCssModule as f, useSlots as _, createElementBlock as o, openBlock as s, createBlock as g, createCommentVNode as n, createElementVNode as u, renderSlot as a, toDisplayString as i, normalizeClass as m, unref as r, createTextVNode as y } from "vue";
|
|
2
2
|
import { t as w } from "./locale.js";
|
|
3
|
-
import { _ as b } from "./Illustration.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as b } from "./Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js";
|
|
4
4
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const x = {
|
|
6
6
|
key: "empty",
|
package/dist/Expand.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, ref as u, onMounted as x,
|
|
1
|
+
import { defineComponent as c, ref as u, onMounted as x, createBlock as m, openBlock as s, resolveDynamicComponent as v, normalizeClass as E, withCtx as i, createVNode as g, Transition as k, createElementBlock as n, withDirectives as w, Fragment as C, createCommentVNode as B, renderSlot as d, vShow as N } from "vue";
|
|
2
2
|
const z = /* @__PURE__ */ c({
|
|
3
3
|
name: "ll-expand",
|
|
4
4
|
__name: "Expand",
|
|
@@ -43,15 +43,15 @@ const z = /* @__PURE__ */ c({
|
|
|
43
43
|
onLeave: y
|
|
44
44
|
}, {
|
|
45
45
|
default: i(() => [
|
|
46
|
-
e.isLazy ? (s(), n(
|
|
46
|
+
e.isLazy ? (s(), n(C, { key: 0 }, [
|
|
47
47
|
e.isExpanded ? (s(), n("div", {
|
|
48
48
|
key: 0,
|
|
49
49
|
ref_key: "contentRef",
|
|
50
50
|
ref: t
|
|
51
51
|
}, [
|
|
52
52
|
d(e.$slots, "default")
|
|
53
|
-
], 512)) :
|
|
54
|
-
], 64)) :
|
|
53
|
+
], 512)) : B("", !0)
|
|
54
|
+
], 64)) : w((s(), n("div", {
|
|
55
55
|
key: 1,
|
|
56
56
|
ref_key: "contentRef",
|
|
57
57
|
ref: t
|
|
@@ -71,4 +71,4 @@ const z = /* @__PURE__ */ c({
|
|
|
71
71
|
export {
|
|
72
72
|
z as _
|
|
73
73
|
};
|
|
74
|
-
//# sourceMappingURL=Expand.vue_vue_type_script_setup_true_lang-
|
|
74
|
+
//# sourceMappingURL=Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expand.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
{"version":3,"file":"Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js","sources":["../src/components/Expand/Expand.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { onMounted, ref } from 'vue';\n\n defineOptions({\n name: 'll-expand',\n });\n\n export type ExpandOuterElement = 'div' | 'td' | 'li';\n\n export interface ExpandProps {\n /**\n * The root element to use as the root element the expand transition gets applied to\n */\n is?: ExpandOuterElement;\n\n /**\n * Dictates whether the content is expanded or collapsed\n */\n isExpanded?: boolean;\n\n /**\n * Whether to only render content on expand\n */\n isLazy?: boolean;\n\n /**\n * The name of the transition to pass to the transition component\n * @see: https://vuejs.org/guide/built-ins/transition.html#css-based-transitions\n */\n transitionName?: string;\n }\n\n const props = withDefaults(defineProps<ExpandProps>(), {\n is: 'div',\n isExpanded: false,\n isLazy: false,\n transitionName: 'expand',\n });\n\n const emit = defineEmits<{\n (e: 'after-expand'): void;\n }>();\n\n const contentRef = ref<HTMLElement | null>(null);\n\n onMounted(() => {\n if (!props.isExpanded && contentRef.value) {\n contentRef.value.style.overflow = 'hidden';\n }\n });\n\n /**\n * Expands the element\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const onExpand = (element) => {\n // Trick to calculate the height of the hidden element\n element.style.visibility = 'hidden';\n element.style.height = 'auto';\n\n const height = element.offsetHeight;\n\n // Restore default styling\n element.style.visibility = '';\n element.style.display = '';\n\n // Set height on the element to zero\n element.style.height = 0;\n\n // Set expanded height after the other height change takes affect\n requestAnimationFrame(() => {\n element.style.height = `${height}px`;\n });\n };\n\n /**\n * Resores default styling after the expand animation is completed\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const afterExpand = (element) => {\n element.style.height = '';\n element.style.overflow = '';\n emit('after-expand');\n };\n\n /**\n * Collapses the element\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const onCollapse = (element) => {\n const height = element.offsetHeight;\n\n // Set height to the expanded height\n element.style.height = `${height}px`;\n element.style.overflow = 'hidden';\n\n // Set height to zero after the other height change takes affect\n requestAnimationFrame(() => {\n element.style.height = 0;\n });\n };\n</script>\n\n<template>\n <component\n :is=\"props.is\"\n class=\"stash-expand\"\n data-test=\"stash-expand\"\n :class=\"{\n 'stash-expand--expanded': isExpanded,\n 'stash-expand--collapsed': !isExpanded,\n }\"\n >\n <transition :name=\"transitionName\" @after-enter=\"afterExpand\" @enter=\"onExpand\" @leave=\"onCollapse\">\n <template v-if=\"isLazy\">\n <div v-if=\"isExpanded\" ref=\"contentRef\">\n <slot></slot>\n </div>\n </template>\n <template v-else>\n <div v-show=\"isExpanded\" ref=\"contentRef\">\n <slot></slot>\n </div>\n </template>\n </transition>\n </component>\n</template>\n"],"names":["props","__props","emit","__emit","contentRef","ref","onMounted","onExpand","element","height","afterExpand","onCollapse"],"mappings":";;;;;;;;;;;;AAgCE,UAAMA,IAAQC,GAORC,IAAOC,GAIPC,IAAaC,EAAwB,IAAI;AAE/C,IAAAC,EAAU,MAAM;AACd,MAAI,CAACN,EAAM,cAAcI,EAAW,UACvBA,EAAA,MAAM,MAAM,WAAW;AAAA,IACpC,CACD;AAOK,UAAAG,IAAW,CAACC,MAAY;AAE5B,MAAAA,EAAQ,MAAM,aAAa,UAC3BA,EAAQ,MAAM,SAAS;AAEvB,YAAMC,IAASD,EAAQ;AAGvB,MAAAA,EAAQ,MAAM,aAAa,IAC3BA,EAAQ,MAAM,UAAU,IAGxBA,EAAQ,MAAM,SAAS,GAGvB,sBAAsB,MAAM;AAClB,QAAAA,EAAA,MAAM,SAAS,GAAGC,CAAM;AAAA,MAAA,CACjC;AAAA,IACH,GAOMC,IAAc,CAACF,MAAY;AAC/B,MAAAA,EAAQ,MAAM,SAAS,IACvBA,EAAQ,MAAM,WAAW,IACzBN,EAAK,cAAc;AAAA,IACrB,GAOMS,IAAa,CAACH,MAAY;AAC9B,YAAMC,IAASD,EAAQ;AAGf,MAAAA,EAAA,MAAM,SAAS,GAAGC,CAAM,MAChCD,EAAQ,MAAM,WAAW,UAGzB,sBAAsB,MAAM;AAC1B,QAAAA,EAAQ,MAAM,SAAS;AAAA,MAAA,CACxB;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/Field.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as B, useAttrs as I, useSlots as T, computed as t,
|
|
1
|
+
import { defineComponent as B, useAttrs as I, useSlots as T, computed as t, createBlock as c, openBlock as a, resolveDynamicComponent as R, mergeProps as O, unref as i, withCtx as b, createCommentVNode as m, renderSlot as w, createElementBlock as o, createTextVNode as k, toDisplayString as r } from "vue";
|
|
2
2
|
import n from "lodash-es/uniqueId";
|
|
3
|
-
import { _ as q } from "./Label.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as q } from "./Label.vue_vue_type_script_setup_true_lang-DPnNUfc6.js";
|
|
4
4
|
const D = ["id"], E = {
|
|
5
5
|
key: 2,
|
|
6
6
|
class: "stash-field-hint tw-mt-1 tw-block tw-whitespace-pre-line tw-text-xs",
|
|
@@ -55,7 +55,7 @@ const D = ["id"], E = {
|
|
|
55
55
|
disabled: e.isDisabled || e.disabled
|
|
56
56
|
}, {
|
|
57
57
|
default: b(() => [
|
|
58
|
-
k(
|
|
58
|
+
k(r(e.label), 1)
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
61
|
}, 8, ["id", "for", "has-error", "is-required", "show-optional", "legend", "disabled"])) : m("", !0),
|
|
@@ -69,12 +69,12 @@ const D = ["id"], E = {
|
|
|
69
69
|
labelId: u.value,
|
|
70
70
|
showOptionalInLabel: e.showOptionalInLabel
|
|
71
71
|
}),
|
|
72
|
-
e.errorText ? (a(),
|
|
72
|
+
e.errorText ? (a(), o("span", {
|
|
73
73
|
key: 1,
|
|
74
74
|
id: h.value,
|
|
75
75
|
class: "stash-field-error tw-mt-1 tw-block tw-whitespace-pre-line tw-text-xs tw-text-red-500",
|
|
76
76
|
"data-test": "stash-field-error"
|
|
77
|
-
},
|
|
77
|
+
}, r(e.errorText), 9, D)) : e.hintText && !e.isReadOnly ? (a(), o("span", E, r(e.hintText), 1)) : i(l).hint && !e.isReadOnly ? (a(), o("div", S, [
|
|
78
78
|
w(s.$slots, "hint")
|
|
79
79
|
])) : m("", !0)
|
|
80
80
|
]),
|
|
@@ -85,4 +85,4 @@ const D = ["id"], E = {
|
|
|
85
85
|
export {
|
|
86
86
|
L as _
|
|
87
87
|
};
|
|
88
|
-
//# sourceMappingURL=Field.vue_vue_type_script_setup_true_lang-
|
|
88
|
+
//# sourceMappingURL=Field.vue_vue_type_script_setup_true_lang-DRaKs9Lm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
{"version":3,"file":"Field.vue_vue_type_script_setup_true_lang-DRaKs9Lm.js","sources":["../src/components/Field/Field.vue"],"sourcesContent":["<script lang=\"ts\">\n import { FieldProps } from './Field.types';\n\n export * from './Field.types';\n</script>\n\n<script setup lang=\"ts\">\n import uniqueId from 'lodash-es/uniqueId';\n import { computed, useAttrs, useSlots } from 'vue';\n\n import Label from '../Label/Label.vue';\n\n defineOptions({\n inheritAttrs: false,\n });\n\n const props = withDefaults(defineProps<FieldProps>(), {\n addBottomSpace: false,\n errorText: undefined,\n hintText: undefined,\n id: undefined,\n errorId: undefined,\n isRequired: false,\n label: undefined,\n showOptionalInLabel: false,\n fieldset: false,\n isDisabled: false,\n disabled: false,\n });\n const attrs = useAttrs();\n const slots = useSlots();\n const fieldId = computed(() => props.id || uniqueId('stash-field-'));\n const fieldErrorId = computed(() => props.errorId || uniqueId('stash-field-error-'));\n const labelId = computed(() => uniqueId('stash-field-label-'));\n const hasError = computed(() => !!props.errorText);\n const wrapperElement = computed(() => (props.fieldset ? 'fieldset' : 'div'));\n\n // Any attributes that are unique to form elements, you want to exclude from\n // being bound from the root element.\n const rootAttrs = computed(() => {\n const { placeholder, ...otherAttrs } = attrs;\n\n return otherAttrs;\n });\n</script>\n\n<template>\n <component\n :is=\"wrapperElement\"\n data-test=\"stash-field\"\n class=\"stash-field\"\n :class=\"[\n { 'tw-p-0': props.fieldset },\n { 'tw-mb-9': props.addBottomSpace && !props.errorText && !props.hintText && !slots.hint },\n { 'tw-mb-4': props.addBottomSpace && (props.errorText || props.hintText || slots.hint) },\n { 'stash-field--disabled': props.isDisabled || props.disabled },\n { 'stash-field--is-read-only': props.isReadOnly },\n { 'stash-field--is-required': props.isRequired },\n { 'stash-field--has-error': hasError },\n ]\"\n v-bind=\"rootAttrs\"\n >\n <Label\n v-if=\"props.label\"\n :id=\"labelId\"\n :for=\"fieldId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :show-optional=\"props.showOptionalInLabel\"\n :legend=\"props.fieldset\"\n :disabled=\"props.isDisabled || props.disabled\"\n >\n {{ props.label }}\n </Label>\n\n <!-- @slot for the form field; the Label can also be rendered here instead of using the label prop -->\n <slot\n :field-id=\"fieldId\"\n :field-error-id=\"fieldErrorId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :is-read-only=\"props.isReadOnly\"\n :disabled=\"props.isDisabled || props.disabled\"\n :label-id=\"labelId\"\n :show-optional-in-label=\"props.showOptionalInLabel\"\n ></slot>\n\n <span\n v-if=\"props.errorText\"\n :id=\"fieldErrorId\"\n class=\"stash-field-error tw-mt-1 tw-block tw-whitespace-pre-line tw-text-xs tw-text-red-500\"\n data-test=\"stash-field-error\"\n >\n {{ props.errorText }}\n </span>\n\n <span\n v-else-if=\"props.hintText && !props.isReadOnly\"\n class=\"stash-field-hint tw-mt-1 tw-block tw-whitespace-pre-line tw-text-xs\"\n data-test=\"stash-field-hint\"\n >\n {{ props.hintText }}\n </span>\n\n <div\n v-else-if=\"slots.hint && !props.isReadOnly\"\n class=\"stash-field-hint tw-mt-1 tw-whitespace-pre-line tw-text-xs\"\n data-test=\"stash-field-hint\"\n >\n <!-- @slot for displaying hint text below the field -->\n <slot name=\"hint\"></slot>\n </div>\n </component>\n</template>\n"],"names":["props","__props","attrs","useAttrs","slots","useSlots","fieldId","computed","uniqueId","fieldErrorId","labelId","hasError","wrapperElement","rootAttrs","placeholder","otherAttrs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBE,UAAMA,IAAQC,GAaRC,IAAQC,EAAS,GACjBC,IAAQC,EAAS,GACjBC,IAAUC,EAAS,MAAMP,EAAM,MAAMQ,EAAS,cAAc,CAAC,GAC7DC,IAAeF,EAAS,MAAMP,EAAM,WAAWQ,EAAS,oBAAoB,CAAC,GAC7EE,IAAUH,EAAS,MAAMC,EAAS,oBAAoB,CAAC,GACvDG,IAAWJ,EAAS,MAAM,CAAC,CAACP,EAAM,SAAS,GAC3CY,IAAiBL,EAAS,MAAOP,EAAM,WAAW,aAAa,KAAM,GAIrEa,IAAYN,EAAS,MAAM;AAC/B,YAAM,EAAE,aAAAO,GAAa,GAAGC,EAAA,IAAeb;AAEhC,aAAAa;AAAA,IAAA,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/FileUpload.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, useCssModule as K, ref as U, inject as Q, useAttrs as W, computed as w,
|
|
1
|
+
import { defineComponent as q, useCssModule as K, ref as U, inject as Q, useAttrs as W, computed as w, createElementBlock as r, openBlock as n, normalizeClass as c, unref as l, withDirectives as Z, createVNode as g, withModifiers as p, withCtx as I, renderSlot as S, createTextVNode as N, toDisplayString as u, createElementVNode as v, createCommentVNode as k, Fragment as R, createBlock as ee, renderList as te, mergeProps as le, vShow as se } from "vue";
|
|
2
2
|
import ne from "@leaflink/snitch";
|
|
3
3
|
import { I as oe } from "./index-D6bxWkZ1.js";
|
|
4
4
|
import { t as f } from "./locale.js";
|
|
@@ -158,7 +158,7 @@ const re = { key: 0 }, de = { class: "tw-text-ice-900" }, ce = {
|
|
|
158
158
|
v("div", {
|
|
159
159
|
class: c(["tw-flex tw-flex-col tw-items-center tw-justify-center tw-text-center", [{ "tw-items-center md:tw-flex-row": e.size === l(h).Dense }]])
|
|
160
160
|
}, [
|
|
161
|
-
e.files.length ? (n(!0), r(
|
|
161
|
+
e.files.length ? (n(!0), r(R, { key: 1 }, te(e.files, (s) => (n(), r("div", {
|
|
162
162
|
key: s.name
|
|
163
163
|
}, [
|
|
164
164
|
g(ae, { name: "file" }),
|
|
@@ -172,14 +172,14 @@ const re = { key: 0 }, de = { class: "tw-text-ice-900" }, ce = {
|
|
|
172
172
|
]),
|
|
173
173
|
_: 2
|
|
174
174
|
}, 1032, ["class", "onClick"])
|
|
175
|
-
]))), 128)) : (n(), r(
|
|
176
|
-
e.size !== l(h).Dense ? (n(),
|
|
175
|
+
]))), 128)) : (n(), r(R, { key: 0 }, [
|
|
176
|
+
e.size !== l(h).Dense ? (n(), ee(l(oe), {
|
|
177
177
|
key: 0,
|
|
178
178
|
src: Y.value,
|
|
179
179
|
name: "file",
|
|
180
180
|
width: "84",
|
|
181
181
|
height: "96"
|
|
182
|
-
}, null, 8, ["src"])) :
|
|
182
|
+
}, null, 8, ["src"])) : k("", !0),
|
|
183
183
|
v("span", de, u(l(f)("ll.fileUpload.dragDropFileHere")), 1),
|
|
184
184
|
v("span", {
|
|
185
185
|
class: c(
|
|
@@ -204,9 +204,9 @@ const re = { key: 0 }, de = { class: "tw-text-ice-900" }, ce = {
|
|
|
204
204
|
], 2),
|
|
205
205
|
e.$slots.hint && !e.files.length ? (n(), r("div", ce, [
|
|
206
206
|
S(e.$slots, "hint")
|
|
207
|
-
])) :
|
|
207
|
+
])) : k("", !0)
|
|
208
208
|
], 34)),
|
|
209
|
-
|
|
209
|
+
Z(v("input", le(X.value, {
|
|
210
210
|
ref_key: "fileUploadRef",
|
|
211
211
|
ref: T,
|
|
212
212
|
"data-test": "stash-file-upload|input",
|
package/dist/FilterChip.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, useCssModule as v, computed as h,
|
|
1
|
+
import { defineComponent as f, useCssModule as v, computed as h, createBlock as w, openBlock as a, normalizeClass as s, unref as t, withCtx as b, createElementVNode as C, renderSlot as k, createElementBlock as n, createCommentVNode as i, toDisplayString as y, createVNode as D } from "vue";
|
|
2
2
|
import { t as c } from "./locale.js";
|
|
3
3
|
import x from "./Chip.js";
|
|
4
4
|
import B from "./Icon.js";
|
package/dist/FilterDrawerItem.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, useSlots as F, inject as k, computed as w,
|
|
1
|
+
import { defineComponent as C, useSlots as F, inject as k, computed as w, createElementBlock as o, openBlock as e, createBlock as a, createCommentVNode as r, resolveDynamicComponent as x, withCtx as p, createElementVNode as l, toDisplayString as n, normalizeClass as I, unref as c, createTextVNode as g, renderSlot as D } from "vue";
|
|
2
2
|
import { t as u } from "./locale.js";
|
|
3
3
|
import E from "./Chip.js";
|
|
4
4
|
import { D as S } from "./DataViewFilters.keys-BLu07FiP.js";
|
|
@@ -32,12 +32,12 @@ const T = { class: "stash-filter-drawer-item" }, A = { class: "tw-flex tw-items-
|
|
|
32
32
|
onClick: m[0] || (m[0] = (j) => s.value ? void 0 : _("navigate"))
|
|
33
33
|
}, {
|
|
34
34
|
default: p(() => [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
i.description ? (e(), o("div", B, n(i.description), 1)) :
|
|
35
|
+
l("div", A, [
|
|
36
|
+
l("div", V, [
|
|
37
|
+
l("h4", null, n(i.title), 1),
|
|
38
|
+
i.description ? (e(), o("div", B, n(i.description), 1)) : r("", !0)
|
|
39
39
|
]),
|
|
40
|
-
|
|
40
|
+
l("div", {
|
|
41
41
|
class: I(["tw-inline-flex tw-items-center tw-gap-6", { "tw-mb-0.5 tw-mr-2": s.value }])
|
|
42
42
|
}, [
|
|
43
43
|
d.value ? (e(), a(E, {
|
|
@@ -52,8 +52,8 @@ const T = { class: "stash-filter-drawer-item" }, A = { class: "tw-flex tw-items-
|
|
|
52
52
|
g(n(d.value), 1)
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
55
|
-
}, 8, ["aria-label", "title"])) :
|
|
56
|
-
s.value ?
|
|
55
|
+
}, 8, ["aria-label", "title"])) : r("", !0),
|
|
56
|
+
s.value ? r("", !0) : (e(), a(N, {
|
|
57
57
|
key: 1,
|
|
58
58
|
name: "chevron-right",
|
|
59
59
|
title: c(u)("ll.viewFilterGroup")
|
|
@@ -65,7 +65,7 @@ const T = { class: "stash-filter-drawer-item" }, A = { class: "tw-flex tw-items-
|
|
|
65
65
|
})),
|
|
66
66
|
s.value && h.default ? (e(), o("div", O, [
|
|
67
67
|
D(y.$slots, "default")
|
|
68
|
-
])) :
|
|
68
|
+
])) : r("", !0)
|
|
69
69
|
]));
|
|
70
70
|
}
|
|
71
71
|
});
|
package/dist/FilterDropdown.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, inject as b, ref as y, computed as R,
|
|
1
|
+
import { defineComponent as O, inject as b, ref as y, computed as R, createBlock as k, openBlock as w, withCtx as l, createElementVNode as d, createVNode as f, unref as o, renderSlot as W, Transition as j, createElementBlock as J, createCommentVNode as x, createTextVNode as p, toDisplayString as m } from "vue";
|
|
2
2
|
import z from "lodash-es/throttle";
|
|
3
3
|
import { t as C } from "./locale.js";
|
|
4
4
|
import D from "./Button.js";
|
package/dist/FilterSelect.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as S, computed as m,
|
|
1
|
+
import { defineComponent as S, computed as m, createBlock as $, openBlock as r, mergeProps as C, withCtx as d, createElementVNode as s, createElementBlock as u, createCommentVNode as A, withDirectives as f, vModelCheckbox as v, createVNode as y, withKeys as h, createTextVNode as _, toDisplayString as x, unref as E, Fragment as K, renderList as N } from "vue";
|
|
2
2
|
import { t as O } from "./locale.js";
|
|
3
|
-
import { _ as D } from "./Field.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as D } from "./Field.vue_vue_type_script_setup_true_lang-DRaKs9Lm.js";
|
|
4
4
|
import b from "./FilterChip.js";
|
|
5
5
|
const F = { class: "tw-flex tw-flex-wrap tw-gap-1.5" }, I = ["id"], T = ["for"], L = ["id", "value"], R = ["for"], j = /* @__PURE__ */ S({
|
|
6
6
|
__name: "FilterSelect",
|
|
@@ -81,12 +81,12 @@ const F = { class: "tw-flex tw-flex-wrap tw-gap-1.5" }, I = ["id"], T = ["for"],
|
|
|
81
81
|
onKeypress: h(k, ["enter"])
|
|
82
82
|
}, {
|
|
83
83
|
default: d(() => [
|
|
84
|
-
_(x(
|
|
84
|
+
_(x(E(O)("ll.all")), 1)
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
87
87
|
}, 8, ["is-selected"])
|
|
88
88
|
], 8, T)
|
|
89
|
-
])) :
|
|
89
|
+
])) : A("", !0),
|
|
90
90
|
(r(!0), u(K, null, N(e.options, (l) => (r(), u("div", {
|
|
91
91
|
key: i(l)
|
|
92
92
|
}, [
|
package/dist/Filters.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import N from "lodash-es/cloneDeep";
|
|
2
2
|
import H from "lodash-es/merge";
|
|
3
|
-
import {
|
|
3
|
+
import { resolveComponent as V, createElementBlock as _, openBlock as u, createElementVNode as k, Fragment as E, renderList as G, createCommentVNode as P, normalizeClass as S, createBlock as f, mergeProps as b, resolveDynamicComponent as v, createSlots as W, withCtx as y, createVNode as L, createTextVNode as O, toDisplayString as U, nextTick as z, toRefs as Y, ref as D } from "vue";
|
|
4
4
|
import q from "./useValidation.js";
|
|
5
5
|
import { LLLV_CHANGE_TRIGGERS as R } from "./constants.js";
|
|
6
6
|
import { t as A } from "./locale.js";
|
|
@@ -59,7 +59,7 @@ const te = {
|
|
|
59
59
|
},
|
|
60
60
|
emits: ["change", "submit", "reset"],
|
|
61
61
|
setup(l) {
|
|
62
|
-
const { validationSchema: r } =
|
|
62
|
+
const { validationSchema: r } = Y(l), i = r.value(), s = D({}), t = D();
|
|
63
63
|
function o() {
|
|
64
64
|
if ((i == null ? void 0 : i.toString()) !== "[object Object]")
|
|
65
65
|
return;
|
|
@@ -126,7 +126,7 @@ const te = {
|
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
async created() {
|
|
129
|
-
this.initFilterValues(), await
|
|
129
|
+
this.initFilterValues(), await z(), this.initValidation(), this.applyFilters({ trigger: R.LOAD });
|
|
130
130
|
},
|
|
131
131
|
methods: {
|
|
132
132
|
initFilterValues() {
|
|
@@ -206,10 +206,10 @@ function ae(l, r, i, s, t, o) {
|
|
|
206
206
|
var c;
|
|
207
207
|
const p = V("ll-select"), d = V("ll-checkbox"), h = V("ll-radio"), m = V("ll-button");
|
|
208
208
|
return u(), _("div", se, [
|
|
209
|
-
(u(!0), _(
|
|
209
|
+
(u(!0), _(E, null, G(i.schema, (e, a) => {
|
|
210
210
|
var g, F, T, C, w, x, B, j;
|
|
211
|
-
return u(), _(
|
|
212
|
-
e.hidden ?
|
|
211
|
+
return u(), _(E, null, [
|
|
212
|
+
e.hidden ? P("", !0) : (u(), _("div", {
|
|
213
213
|
key: `${a} ${t.forceRenderCount}`,
|
|
214
214
|
class: S(["field-wrapper tw-col-span-4 md:tw-col-span-3", { "max-md:tw-hidden": !e.type, "tw-flex tw-items-end": e.type === "ll-checkbox" }]),
|
|
215
215
|
"data-test": `filter|${e.fieldToFilter}`
|
|
@@ -240,7 +240,7 @@ function ae(l, r, i, s, t, o) {
|
|
|
240
240
|
"error-text": ((w = s.validation) == null ? void 0 : w.fields[e.fieldToFilter]) && ((x = s.validation) == null ? void 0 : x.getError(e.fieldToFilter)),
|
|
241
241
|
label: e.label,
|
|
242
242
|
"onUpdate:checked": (n) => o.onChange(e, t.filterValues, a)
|
|
243
|
-
}), null, 16, ["checked", "onUpdate:checked", "error-text", "label"])) : e.type ? (u(), f(
|
|
243
|
+
}), null, 16, ["checked", "onUpdate:checked", "error-text", "label"])) : e.type ? (u(), f(v(e.type), b({
|
|
244
244
|
key: 3,
|
|
245
245
|
ref_for: !0
|
|
246
246
|
}, e.attributes, {
|
|
@@ -248,25 +248,25 @@ function ae(l, r, i, s, t, o) {
|
|
|
248
248
|
"onUpdate:modelValue": [(n) => t.filterValues[a] = n, (n) => o.onChange(e, t.filterValues, a)],
|
|
249
249
|
"error-text": ((B = s.validation) == null ? void 0 : B.fields[e.fieldToFilter]) && ((j = s.validation) == null ? void 0 : j.getError(e.fieldToFilter)),
|
|
250
250
|
label: e.label
|
|
251
|
-
}),
|
|
251
|
+
}), W({ _: 2 }, [
|
|
252
252
|
e.slots && e.slots.selected ? {
|
|
253
253
|
name: "selected",
|
|
254
254
|
fn: y(({ option: n }) => [
|
|
255
|
-
(u(), f(
|
|
255
|
+
(u(), f(v(e.slots.selected), b({ ref_for: !0 }, n.props), null, 16))
|
|
256
256
|
]),
|
|
257
257
|
key: "0"
|
|
258
258
|
} : void 0,
|
|
259
259
|
e.slots && e.slots.option ? {
|
|
260
260
|
name: "option",
|
|
261
261
|
fn: y(({ option: n }) => [
|
|
262
|
-
(u(), f(
|
|
262
|
+
(u(), f(v(e.slots.option), b({ ref_for: !0 }, n.props), null, 16))
|
|
263
263
|
]),
|
|
264
264
|
key: "1"
|
|
265
265
|
} : void 0,
|
|
266
266
|
e.slots && e.slots.prepend ? {
|
|
267
267
|
name: "prepend",
|
|
268
268
|
fn: y(() => [
|
|
269
|
-
|
|
269
|
+
k("span", {
|
|
270
270
|
innerHTML: e.slots.prepend
|
|
271
271
|
}, null, 8, oe)
|
|
272
272
|
]),
|
|
@@ -275,38 +275,38 @@ function ae(l, r, i, s, t, o) {
|
|
|
275
275
|
e.slots && e.slots.append ? {
|
|
276
276
|
name: "append",
|
|
277
277
|
fn: y(() => [
|
|
278
|
-
|
|
278
|
+
k("span", {
|
|
279
279
|
innerHTML: e.slots.append
|
|
280
280
|
}, null, 8, re)
|
|
281
281
|
]),
|
|
282
282
|
key: "3"
|
|
283
283
|
} : void 0
|
|
284
|
-
]), 1040, ["modelValue", "onUpdate:modelValue", "error-text", "label"])) :
|
|
284
|
+
]), 1040, ["modelValue", "onUpdate:modelValue", "error-text", "label"])) : P("", !0)
|
|
285
285
|
], 10, ie))
|
|
286
286
|
], 64);
|
|
287
287
|
}), 256)),
|
|
288
|
-
|
|
288
|
+
k("div", {
|
|
289
289
|
class: S(["button-grid tw-col-span-4 tw-flex tw-items-end tw-justify-end md:tw-col-span-12", l.$style["filter-button-group"]])
|
|
290
290
|
}, [
|
|
291
|
-
|
|
291
|
+
L(m, {
|
|
292
292
|
secondary: "",
|
|
293
293
|
"data-test": "button|reset-filters",
|
|
294
294
|
disabled: i.disableClear,
|
|
295
295
|
onClick: o.resetFilters
|
|
296
296
|
}, {
|
|
297
297
|
default: y(() => [
|
|
298
|
-
U(
|
|
298
|
+
O(U(t.clearText), 1)
|
|
299
299
|
]),
|
|
300
300
|
_: 1
|
|
301
301
|
}, 8, ["disabled", "onClick"]),
|
|
302
|
-
|
|
302
|
+
L(m, {
|
|
303
303
|
primary: "",
|
|
304
304
|
"data-test": "button|apply-filters",
|
|
305
305
|
disabled: i.disableApply || ((c = s.validation) == null ? void 0 : c.hasErrors),
|
|
306
306
|
onClick: o.applyFilters
|
|
307
307
|
}, {
|
|
308
308
|
default: y(() => [
|
|
309
|
-
U(
|
|
309
|
+
O(U(t.applyText), 1)
|
|
310
310
|
]),
|
|
311
311
|
_: 1
|
|
312
312
|
}, 8, ["disabled", "onClick"])
|
package/dist/HttpError.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as B, useCssModule as b, useSlots as z, computed as l, resolveComponent as S,
|
|
1
|
+
import { defineComponent as B, useCssModule as b, useSlots as z, computed as l, resolveComponent as S, createElementBlock as _, openBlock as m, normalizeClass as n, unref as s, createElementVNode as o, createVNode as p, createCommentVNode as V, withCtx as h, toDisplayString as a, createTextVNode as c, renderSlot as X } from "vue";
|
|
2
2
|
import { t } from "./locale.js";
|
|
3
3
|
import I from "./Button.js";
|
|
4
|
-
import { _ as N,
|
|
5
|
-
import { _ as T } from "./Logo.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as N, V as $, I as M } from "./Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js";
|
|
5
|
+
import { _ as T } from "./Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js";
|
|
6
6
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class: "tw-mb-8 tw-text-white" }, F = { class: "tw-mb-4 tw-text-white" }, R = ["href"], Y = {
|
|
8
8
|
key: 0,
|
|
@@ -54,7 +54,7 @@ const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class:
|
|
|
54
54
|
}, r = f, i = b(), w = z(), E = l(() => r.errorCode.toString()), g = l(() => parseInt(E.value, 10)), u = l(() => d[g.value] || d[500]), v = l(() => r.title || u.value.title), y = l(() => r.description || u.value.description), k = l(() => !r.hideLogoutButton && r.onLogout), C = l(() => r.retryLink || window.location.href);
|
|
55
55
|
return (x, e) => {
|
|
56
56
|
const L = S("router-link");
|
|
57
|
-
return
|
|
57
|
+
return m(), _("div", {
|
|
58
58
|
class: n(["stash-http-error tw-px-6 tw-py-12", s(i).root]),
|
|
59
59
|
"data-test": "stash-http-error"
|
|
60
60
|
}, [
|
|
@@ -100,13 +100,13 @@ const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class:
|
|
|
100
100
|
}, [
|
|
101
101
|
p(N, {
|
|
102
102
|
size: 300,
|
|
103
|
-
type: s(
|
|
104
|
-
name: s(
|
|
103
|
+
type: s(M).Vignette,
|
|
104
|
+
name: s($).SearchStorefront
|
|
105
105
|
}, null, 8, ["type", "name"])
|
|
106
106
|
], 2)
|
|
107
107
|
], 2),
|
|
108
|
-
s(w).actions || k.value ? (
|
|
109
|
-
|
|
108
|
+
s(w).actions || k.value ? (m(), _("div", Y, [
|
|
109
|
+
X(x.$slots, "actions", {}, () => [
|
|
110
110
|
p(I, {
|
|
111
111
|
tertiary: "",
|
|
112
112
|
onClick: r.onLogout
|
|
@@ -117,7 +117,7 @@ const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class:
|
|
|
117
117
|
_: 1
|
|
118
118
|
}, 8, ["onClick"])
|
|
119
119
|
])
|
|
120
|
-
])) :
|
|
120
|
+
])) : V("", !0)
|
|
121
121
|
], 2)
|
|
122
122
|
], 2);
|
|
123
123
|
};
|
package/dist/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, useCssModule as m, inject as h, computed as i,
|
|
1
|
+
import { defineComponent as p, useCssModule as m, inject as h, computed as i, createBlock as f, openBlock as g, unref as r, normalizeClass as b } from "vue";
|
|
2
2
|
import k from "lodash-es/uniqueId";
|
|
3
3
|
import { I as w } from "./index-D6bxWkZ1.js";
|
|
4
4
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -222,7 +222,7 @@ const x = /* @__PURE__ */ p({
|
|
|
222
222
|
const c = t.querySelector(`#${s.value}`);
|
|
223
223
|
return c ? (t.replaceChildren(c, l), t) : (t.insertBefore(l, t.firstChild), t);
|
|
224
224
|
};
|
|
225
|
-
return (t, l) => (
|
|
225
|
+
return (t, l) => (g(), f(r(w), {
|
|
226
226
|
id: e.id,
|
|
227
227
|
role: "presentation",
|
|
228
228
|
"aria-labelledby": e.id,
|