@leaflink/stash 44.9.0 → 45.0.0
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/AddressSelect.js +1 -1
- package/dist/CurrencyInput.js +1 -1
- package/dist/DataViewFilters.js +1 -1
- package/dist/DatePicker.js +1 -1
- package/dist/Field.js +1 -1
- package/dist/{Field.vue_vue_type_script_setup_true_lang-42ba3c5a.js → Field.vue_vue_type_script_setup_true_lang-224ab33a.js} +24 -24
- package/dist/Field.vue_vue_type_script_setup_true_lang-224ab33a.js.map +1 -0
- package/dist/FilterSelect.js +1 -1
- package/dist/Filters.js +1 -1
- package/dist/InlineEdit.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/InputOptions.js +1 -1
- package/dist/ListView.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/SearchBar.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/SelectStatus.js +1 -1
- package/dist/Textarea.js +1 -1
- package/package.json +1 -1
- package/dist/Field.vue_vue_type_script_setup_true_lang-42ba3c5a.js.map +0 -1
package/dist/AddressSelect.js
CHANGED
|
@@ -24,7 +24,7 @@ import "./Icon.js";
|
|
|
24
24
|
import "./index-79ce320f.js";
|
|
25
25
|
import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
|
|
26
26
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
27
|
-
import "./Field.vue_vue_type_script_setup_true_lang-
|
|
27
|
+
import "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
28
28
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
29
29
|
import "./locale.js";
|
|
30
30
|
const _ = "address-select-", ve = /* @__PURE__ */ M({
|
package/dist/CurrencyInput.js
CHANGED
|
@@ -6,7 +6,7 @@ import "./utils/i18n.js";
|
|
|
6
6
|
import "./constants.js";
|
|
7
7
|
import "./locale.js";
|
|
8
8
|
import "lodash-es/get";
|
|
9
|
-
import "./Field.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
10
10
|
import "lodash-es/uniqueId";
|
|
11
11
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
12
12
|
import "./Icon.js";
|
package/dist/DataViewFilters.js
CHANGED
|
@@ -26,7 +26,7 @@ import "./Backdrop.js";
|
|
|
26
26
|
import "./Input.js";
|
|
27
27
|
import "lodash-es/isNil";
|
|
28
28
|
import "./utils/i18n.js";
|
|
29
|
-
import "./Field.vue_vue_type_script_setup_true_lang-
|
|
29
|
+
import "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
30
30
|
function Pe({
|
|
31
31
|
schema: a,
|
|
32
32
|
dataViewRef: w
|
package/dist/DatePicker.js
CHANGED
|
@@ -20,7 +20,7 @@ import "./index-79ce320f.js";
|
|
|
20
20
|
import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
|
|
21
21
|
import "lodash-es/isNil";
|
|
22
22
|
import "./utils/i18n.js";
|
|
23
|
-
import "./Field.vue_vue_type_script_setup_true_lang-
|
|
23
|
+
import "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
24
24
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
25
25
|
function Uf(e, t) {
|
|
26
26
|
he(2, arguments);
|
package/dist/Field.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o } from "./Field.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as o } from "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "lodash-es/uniqueId";
|
|
4
4
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as x, useAttrs as k, useSlots as T, computed as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as x, useAttrs as k, useSlots as T, computed as s, openBlock as l, createBlock as m, resolveDynamicComponent as B, mergeProps as O, unref as f, withCtx as v, normalizeClass as R, createTextVNode as q, toDisplayString as h, createCommentVNode as r, createElementBlock as a, renderSlot as p } from "vue";
|
|
2
|
+
import c from "lodash-es/uniqueId";
|
|
3
3
|
import { _ as E } from "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
4
4
|
const L = ["aria-labelledby"], S = ["id"], C = {
|
|
5
5
|
key: 4,
|
|
6
6
|
class: "tw-mt-1 tw-block tw-whitespace-pre-line tw-text-xs",
|
|
7
|
-
"data-test": "field-hint"
|
|
7
|
+
"data-test": "stash-field-hint"
|
|
8
8
|
}, g = { key: 0 }, A = {
|
|
9
9
|
key: 5,
|
|
10
10
|
class: "tw-mt-1 tw-whitespace-pre-line tw-text-xs",
|
|
11
|
-
"data-test": "field-hint"
|
|
11
|
+
"data-test": "stash-field-hint"
|
|
12
12
|
}, $ = {
|
|
13
13
|
inheritAttrs: !1
|
|
14
14
|
}, z = /* @__PURE__ */ x({
|
|
@@ -27,21 +27,21 @@ const L = ["aria-labelledby"], S = ["id"], C = {
|
|
|
27
27
|
fieldset: { type: Boolean, default: !1 }
|
|
28
28
|
},
|
|
29
29
|
setup(b) {
|
|
30
|
-
const e = b, y = k(), i = T(), d =
|
|
30
|
+
const e = b, y = k(), i = T(), d = s(() => e.id || c("stash-field-")), n = s(() => e.errorId || c("stash-field-error-")), o = s(() => c("stash-field-label-")), u = s(() => !!e.errorText), _ = s(() => e.fieldset ? "fieldset" : "div"), I = s(() => {
|
|
31
31
|
const { placeholder: t, ...w } = y;
|
|
32
32
|
return w;
|
|
33
33
|
});
|
|
34
34
|
return (t, w) => (l(), m(B(_.value), O(I.value, {
|
|
35
|
-
class: [
|
|
35
|
+
class: ["stash-field", [
|
|
36
36
|
{ "tw-p-0": e.fieldset },
|
|
37
37
|
{ "tw-mb-9": e.addBottomSpace && !e.errorText && !e.hintText && !f(i).hint },
|
|
38
38
|
{ "tw-mb-4": e.addBottomSpace && (e.errorText || e.hintText || f(i).hint) }
|
|
39
|
-
]
|
|
39
|
+
]]
|
|
40
40
|
}), {
|
|
41
41
|
default: v(() => [
|
|
42
42
|
e.label ? (l(), m(E, {
|
|
43
43
|
key: 0,
|
|
44
|
-
id:
|
|
44
|
+
id: o.value,
|
|
45
45
|
class: R({ "tw-mb-1.5": !!e.isReadOnly }),
|
|
46
46
|
for: d.value,
|
|
47
47
|
"has-error": u.value,
|
|
@@ -50,41 +50,41 @@ const L = ["aria-labelledby"], S = ["id"], C = {
|
|
|
50
50
|
legend: e.fieldset
|
|
51
51
|
}, {
|
|
52
52
|
default: v(() => [
|
|
53
|
-
q(
|
|
53
|
+
q(h(e.label), 1)
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
|
-
}, 8, ["id", "class", "for", "has-error", "is-required", "show-optional", "legend"])) :
|
|
57
|
-
e.isReadOnly ? (l(),
|
|
56
|
+
}, 8, ["id", "class", "for", "has-error", "is-required", "show-optional", "legend"])) : r("", !0),
|
|
57
|
+
e.isReadOnly ? (l(), a("div", {
|
|
58
58
|
key: 1,
|
|
59
|
-
"aria-labelledby":
|
|
59
|
+
"aria-labelledby": o.value
|
|
60
60
|
}, [
|
|
61
|
-
|
|
61
|
+
p(t.$slots, "default", {
|
|
62
62
|
fieldId: d.value,
|
|
63
63
|
fieldErrorId: n.value,
|
|
64
64
|
hasError: u.value,
|
|
65
65
|
isRequired: t.isRequired,
|
|
66
|
-
labelId:
|
|
66
|
+
labelId: o.value,
|
|
67
67
|
showOptionalInLabel: e.showOptionalInLabel
|
|
68
68
|
})
|
|
69
|
-
], 8, L)) :
|
|
69
|
+
], 8, L)) : p(t.$slots, "default", {
|
|
70
70
|
key: 2,
|
|
71
71
|
fieldId: d.value,
|
|
72
72
|
fieldErrorId: n.value,
|
|
73
73
|
hasError: u.value,
|
|
74
74
|
isRequired: t.isRequired,
|
|
75
|
-
labelId:
|
|
75
|
+
labelId: o.value,
|
|
76
76
|
showOptionalInLabel: e.showOptionalInLabel
|
|
77
77
|
}),
|
|
78
|
-
e.errorText ? (l(),
|
|
78
|
+
e.errorText ? (l(), a("span", {
|
|
79
79
|
key: 3,
|
|
80
80
|
id: n.value,
|
|
81
81
|
class: "tw-mt-1 tw-block tw-whitespace-pre-line tw-text-xs tw-text-red-500",
|
|
82
|
-
"data-test": "field-error"
|
|
83
|
-
},
|
|
84
|
-
e.isReadOnly ?
|
|
85
|
-
])) : f(i).hint ? (l(),
|
|
86
|
-
e.isReadOnly ?
|
|
87
|
-
])) :
|
|
82
|
+
"data-test": "stash-field-error"
|
|
83
|
+
}, h(e.errorText), 9, S)) : e.hintText ? (l(), a("span", C, [
|
|
84
|
+
e.isReadOnly ? r("", !0) : (l(), a("span", g, h(e.hintText), 1))
|
|
85
|
+
])) : f(i).hint ? (l(), a("div", A, [
|
|
86
|
+
e.isReadOnly ? r("", !0) : p(t.$slots, "hint", { key: 0 })
|
|
87
|
+
])) : r("", !0)
|
|
88
88
|
]),
|
|
89
89
|
_: 3
|
|
90
90
|
}, 16, ["class"]));
|
|
@@ -93,4 +93,4 @@ const L = ["aria-labelledby"], S = ["id"], C = {
|
|
|
93
93
|
export {
|
|
94
94
|
z as _
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=Field.vue_vue_type_script_setup_true_lang-
|
|
96
|
+
//# sourceMappingURL=Field.vue_vue_type_script_setup_true_lang-224ab33a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.vue_vue_type_script_setup_true_lang-224ab33a.js","sources":["../src/components/Field/Field.vue"],"sourcesContent":["<script lang=\"ts\">\n export default {\n inheritAttrs: false,\n };\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 export interface FieldProps {\n /**\n * Adds spacing under the field that is consistent whether hint/error text is displayed.\n */\n addBottomSpace?: boolean;\n\n /**\n * Error text to display. Replaces `hintText` (if provided) & adds error styling.\n */\n errorText?: string;\n\n /**\n * Displays text below the input; hidden when the isReadOnly prop is truthy.\n */\n hintText?: string;\n\n /**\n * ID for the Label and Input; must be unique\n */\n id?: string;\n\n /**\n * ID for the error text element; useful for aria-errormessage\n */\n errorId?: string;\n\n /**\n * Whether it's a readonly field.\n */\n isReadOnly?: boolean;\n\n /**\n * Whether the field is required.\n */\n isRequired?: boolean;\n\n /**\n * Label to render above the input.\n */\n label?: string;\n\n /**\n * Show \"(optional)\" to the right of the label text\n */\n showOptionalInLabel?: boolean;\n\n /**\n * Indicates wheter the field is a fieldset or not\n */\n fieldset?: boolean;\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 });\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 v-bind=\"rootAttrs\"\n :is=\"wrapperElement\"\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 ]\"\n >\n <Label\n v-if=\"props.label\"\n :id=\"labelId\"\n :class=\"{ 'tw-mb-1.5': !!props.isReadOnly }\"\n :for=\"fieldId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :show-optional=\"props.showOptionalInLabel\"\n :legend=\"props.fieldset\"\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 <template v-if=\"props.isReadOnly\">\n <div :aria-labelledby=\"labelId\">\n <slot\n :field-id=\"fieldId\"\n :field-error-id=\"fieldErrorId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :label-id=\"labelId\"\n :show-optional-in-label=\"props.showOptionalInLabel\"\n ></slot>\n </div>\n </template>\n <template v-else>\n <slot\n :field-id=\"fieldId\"\n :field-error-id=\"fieldErrorId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :label-id=\"labelId\"\n :show-optional-in-label=\"props.showOptionalInLabel\"\n ></slot>\n </template>\n\n <span\n v-if=\"props.errorText\"\n :id=\"fieldErrorId\"\n class=\"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\"\n class=\"tw-mt-1 tw-block tw-whitespace-pre-line tw-text-xs\"\n data-test=\"stash-field-hint\"\n >\n <span v-if=\"!props.isReadOnly\">{{ props.hintText }}</span>\n </span>\n\n <div v-else-if=\"slots.hint\" class=\"tw-mt-1 tw-whitespace-pre-line tw-text-xs\" data-test=\"stash-field-hint\">\n <!-- @slot for displaying hint text below the field -->\n <slot v-if=\"!props.isReadOnly\" name=\"hint\"></slot>\n </div>\n </component>\n</template>\n"],"names":["attrs","useAttrs","slots","useSlots","fieldId","computed","props","uniqueId","fieldErrorId","labelId","hasError","wrapperElement","rootAttrs","placeholder","otherAttrs"],"mappings":";;;;;;;;;;;OACiB;AAAA,EACb,cAAc;AAChB;;;;;;;;;;;;;;;;iBAwEMA,IAAQC,KACRC,IAAQC,KACRC,IAAUC,EAAS,MAAMC,EAAM,MAAMC,EAAS,cAAc,CAAC,GAC7DC,IAAeH,EAAS,MAAMC,EAAM,WAAWC,EAAS,oBAAoB,CAAC,GAC7EE,IAAUJ,EAAS,MAAME,EAAS,oBAAoB,CAAC,GACvDG,IAAWL,EAAS,MAAM,CAAC,CAACC,EAAM,SAAS,GAC3CK,IAAiBN,EAAS,MAAOC,EAAM,WAAW,aAAa,KAAM,GAIrEM,IAAYP,EAAS,MAAM;AAC/B,YAAM,EAAE,aAAAQ,GAAa,GAAGC,EAAA,IAAed;AAEhC,aAAAc;AAAA,IAAA,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/FilterSelect.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, computed as p, openBlock as r, createBlock as $, withCtx as u, createElementVNode as s, createElementBlock as d, withDirectives as f, vModelCheckbox as v, createVNode as _, withKeys as h, createTextVNode as b, toDisplayString as x, unref as C, createCommentVNode as K, Fragment as A, renderList as B } from "vue";
|
|
2
2
|
import { t as E } from "./locale.js";
|
|
3
|
-
import { _ as N } from "./Field.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as N } from "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
4
4
|
import y from "./FilterChip.js";
|
|
5
5
|
import "lodash-es/get";
|
|
6
6
|
import "lodash-es/uniqueId";
|
package/dist/Filters.js
CHANGED
|
@@ -38,7 +38,7 @@ import "./index-79ce320f.js";
|
|
|
38
38
|
import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
|
|
39
39
|
import "lodash-es/isNil";
|
|
40
40
|
import "./utils/i18n.js";
|
|
41
|
-
import "./Field.vue_vue_type_script_setup_true_lang-
|
|
41
|
+
import "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
42
42
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
43
43
|
import "lodash-es/isEmpty";
|
|
44
44
|
import "lodash-es/isEqual";
|
package/dist/InlineEdit.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./constants.js";
|
|
|
5
5
|
import "./locale.js";
|
|
6
6
|
import "lodash-es/get";
|
|
7
7
|
import "lodash-es/isNil";
|
|
8
|
-
import "./Field.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
9
9
|
import "lodash-es/uniqueId";
|
|
10
10
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
11
11
|
import "./Icon.js";
|
package/dist/Input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as P, useSlots as U, useCssModule as G, useAttrs as L, ref as f, computed as v, watchEffect as O, onMounted as W, openBlock as m, createBlock as g, mergeProps as V, unref as o, createSlots as j, withCtx as k, createElementVNode as N, withDirectives as q, vModelDynamic as H, createElementBlock as x, normalizeClass as C, renderSlot as y, createCommentVNode as I } from "vue";
|
|
2
2
|
import $ from "lodash-es/isNil";
|
|
3
3
|
import { convertDecimal as B, sanitizeDecimal as J, decimalSeparator as _ } from "./utils/i18n.js";
|
|
4
|
-
import { _ as K } from "./Field.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as K } from "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
5
5
|
import Q from "./Icon.js";
|
|
6
6
|
import { _ as R } from "./_plugin-vue_export-helper-dad06003.js";
|
|
7
7
|
import "./constants.js";
|
package/dist/InputOptions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, useAttrs as S, useSlots as k, useCssModule as T, ref as d, computed as c, watchEffect as $, watch as v, openBlock as b, createBlock as E, mergeProps as m, createSlots as A, withCtx as f, createElementVNode as M, normalizeClass as O, unref as u, createVNode as h, renderSlot as z } from "vue";
|
|
2
|
-
import { _ as F } from "./Field.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as F } from "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
3
3
|
import N from "./Input.js";
|
|
4
4
|
import U from "./Select.js";
|
|
5
5
|
import { _ as P } from "./_plugin-vue_export-helper-dad06003.js";
|
package/dist/ListView.js
CHANGED
|
@@ -46,7 +46,7 @@ import "./utils/formatDateTime.js";
|
|
|
46
46
|
import "./utils/normalizeDate.js";
|
|
47
47
|
import "./toTimeZone-e6e9ab75.js";
|
|
48
48
|
import "./InputOptions.js";
|
|
49
|
-
import "./Field.vue_vue_type_script_setup_true_lang-
|
|
49
|
+
import "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
50
50
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
51
51
|
import "./Select.js";
|
|
52
52
|
import "lodash-es/isEmpty";
|
package/dist/RadioGroup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as $, inject as x, useCssModule as k, openBlock as l, createElementBlock as n, normalizeClass as _, unref as e, Fragment as V, renderList as B, createElementVNode as r, toDisplayString as h, provide as g, computed as v, createBlock as C, withCtx as M, renderSlot as T, resolveDynamicComponent as E } from "vue";
|
|
2
2
|
import G from "lodash-es/uniqueId";
|
|
3
|
-
import { _ as O } from "./Field.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as O } from "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
4
4
|
import { R as y } from "./RadioGroup.keys-974818d6.js";
|
|
5
5
|
import { _ as R } from "./_plugin-vue_export-helper-dad06003.js";
|
|
6
6
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
package/dist/SearchBar.js
CHANGED
|
@@ -12,7 +12,7 @@ import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
|
|
|
12
12
|
import "lodash-es/isNil";
|
|
13
13
|
import "./utils/i18n.js";
|
|
14
14
|
import "./constants.js";
|
|
15
|
-
import "./Field.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
16
16
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
17
17
|
const M = /* @__PURE__ */ C({
|
|
18
18
|
name: "ll-search-bar",
|
package/dist/Select.js
CHANGED
|
@@ -10,7 +10,7 @@ import { DEBOUNCE as Ht, KEY_CODES as ie } from "./constants.js";
|
|
|
10
10
|
import zt from "./clickoutside.js";
|
|
11
11
|
import { D as Wt } from "./MenusPlugin-5e93f0a5.js";
|
|
12
12
|
import Xe from "./Chip.js";
|
|
13
|
-
import { _ as Kt } from "./Field.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { _ as Kt } from "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
14
14
|
import ve from "./Icon.js";
|
|
15
15
|
import { _ as Ut } from "./_plugin-vue_export-helper-dad06003.js";
|
|
16
16
|
import "lodash-es/get";
|
package/dist/SelectStatus.js
CHANGED
|
@@ -22,7 +22,7 @@ import "./clickoutside.js";
|
|
|
22
22
|
import "./MenusPlugin-5e93f0a5.js";
|
|
23
23
|
import "./Chip.js";
|
|
24
24
|
import "./utils/colorScheme.js";
|
|
25
|
-
import "./Field.vue_vue_type_script_setup_true_lang-
|
|
25
|
+
import "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
26
26
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
27
27
|
import "./locale.js";
|
|
28
28
|
const j = { class: "tw-mr-6 tw-truncate" }, E = {
|
package/dist/Textarea.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as R, useAttrs as M, useSlots as S, useCssModule as k, ref as x, computed as H, watch as O, onMounted as A, nextTick as I, onBeforeUnmount as P, openBlock as V, createBlock as $, mergeProps as _, unref as c, createSlots as q, withCtx as g, createElementVNode as j, renderSlot as D } from "vue";
|
|
2
2
|
import F from "lodash-es/uniqueId";
|
|
3
|
-
import { _ as L } from "./Field.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as L } from "./Field.vue_vue_type_script_setup_true_lang-224ab33a.js";
|
|
4
4
|
import { _ as N } from "./_plugin-vue_export-helper-dad06003.js";
|
|
5
5
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
6
6
|
import "./locale.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Field.vue_vue_type_script_setup_true_lang-42ba3c5a.js","sources":["../src/components/Field/Field.vue"],"sourcesContent":["<script lang=\"ts\">\n export default {\n inheritAttrs: false,\n };\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 export interface FieldProps {\n /**\n * Adds spacing under the field that is consistent whether hint/error text is displayed.\n */\n addBottomSpace?: boolean;\n\n /**\n * Error text to display. Replaces `hintText` (if provided) & adds error styling.\n */\n errorText?: string;\n\n /**\n * Displays text below the input; hidden when the isReadOnly prop is truthy.\n */\n hintText?: string;\n\n /**\n * ID for the Label and Input; must be unique\n */\n id?: string;\n\n /**\n * ID for the error text element; useful for aria-errormessage\n */\n errorId?: string;\n\n /**\n * Whether it's a readonly field.\n */\n isReadOnly?: boolean;\n\n /**\n * Whether the field is required.\n */\n isRequired?: boolean;\n\n /**\n * Label to render above the input.\n */\n label?: string;\n\n /**\n * Show \"(optional)\" to the right of the label text\n */\n showOptionalInLabel?: boolean;\n\n /**\n * Indicates wheter the field is a fieldset or not\n */\n fieldset?: boolean;\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 });\n const attrs = useAttrs();\n const slots = useSlots();\n const fieldId = computed(() => props.id || uniqueId('field-'));\n const fieldErrorId = computed(() => props.errorId || uniqueId('field-error-'));\n const labelId = computed(() => uniqueId('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 v-bind=\"rootAttrs\"\n :is=\"wrapperElement\"\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 ]\"\n >\n <Label\n v-if=\"props.label\"\n :id=\"labelId\"\n :class=\"{ 'tw-mb-1.5': !!props.isReadOnly }\"\n :for=\"fieldId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :show-optional=\"props.showOptionalInLabel\"\n :legend=\"props.fieldset\"\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 <template v-if=\"props.isReadOnly\">\n <div :aria-labelledby=\"labelId\">\n <slot\n :field-id=\"fieldId\"\n :field-error-id=\"fieldErrorId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :label-id=\"labelId\"\n :show-optional-in-label=\"props.showOptionalInLabel\"\n ></slot>\n </div>\n </template>\n <template v-else>\n <slot\n :field-id=\"fieldId\"\n :field-error-id=\"fieldErrorId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :label-id=\"labelId\"\n :show-optional-in-label=\"props.showOptionalInLabel\"\n ></slot>\n </template>\n\n <span\n v-if=\"props.errorText\"\n :id=\"fieldErrorId\"\n class=\"tw-mt-1 tw-block tw-whitespace-pre-line tw-text-xs tw-text-red-500\"\n data-test=\"field-error\"\n >\n {{ props.errorText }}\n </span>\n\n <span v-else-if=\"props.hintText\" class=\"tw-mt-1 tw-block tw-whitespace-pre-line tw-text-xs\" data-test=\"field-hint\">\n <span v-if=\"!props.isReadOnly\">{{ props.hintText }}</span>\n </span>\n\n <div v-else-if=\"slots.hint\" class=\"tw-mt-1 tw-whitespace-pre-line tw-text-xs\" data-test=\"field-hint\">\n <!-- @slot for displaying hint text below the field -->\n <slot v-if=\"!props.isReadOnly\" name=\"hint\"></slot>\n </div>\n </component>\n</template>\n"],"names":["attrs","useAttrs","slots","useSlots","fieldId","computed","props","uniqueId","fieldErrorId","labelId","hasError","wrapperElement","rootAttrs","placeholder","otherAttrs"],"mappings":";;;;;;;;;;;OACiB;AAAA,EACb,cAAc;AAChB;;;;;;;;;;;;;;;;iBAwEMA,IAAQC,KACRC,IAAQC,KACRC,IAAUC,EAAS,MAAMC,EAAM,MAAMC,EAAS,QAAQ,CAAC,GACvDC,IAAeH,EAAS,MAAMC,EAAM,WAAWC,EAAS,cAAc,CAAC,GACvEE,IAAUJ,EAAS,MAAME,EAAS,cAAc,CAAC,GACjDG,IAAWL,EAAS,MAAM,CAAC,CAACC,EAAM,SAAS,GAC3CK,IAAiBN,EAAS,MAAOC,EAAM,WAAW,aAAa,KAAM,GAIrEM,IAAYP,EAAS,MAAM;AAC/B,YAAM,EAAE,aAAAQ,GAAa,GAAGC,EAAA,IAAed;AAEhC,aAAAc;AAAA,IAAA,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|