sprintify-ui 0.7.3 → 0.7.4
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/sprintify-ui.es.js +11 -11
- package/dist/types/components/BaseAutocomplete.vue.d.ts +3 -3
- package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +3 -3
- package/dist/types/components/BaseBelongsTo.vue.d.ts +3 -3
- package/dist/types/components/BaseBelongsToFetch.vue.d.ts +3 -3
- package/dist/types/components/BaseDatePicker.vue.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/BaseAutocomplete.vue +5 -5
- package/src/components/BaseAutocompleteFetch.vue +2 -2
- package/src/components/BaseBelongsTo.vue +2 -2
- package/src/components/BaseBelongsToFetch.vue +2 -2
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -8211,7 +8211,7 @@ const dg = /* @__PURE__ */ Gi(rE, [["render", aE]]), sE = { class: "relative w-f
|
|
|
8211
8211
|
default: !1,
|
|
8212
8212
|
type: Boolean
|
|
8213
8213
|
},
|
|
8214
|
-
|
|
8214
|
+
showRemoveButton: {
|
|
8215
8215
|
default: !0,
|
|
8216
8216
|
type: Boolean
|
|
8217
8217
|
},
|
|
@@ -8375,7 +8375,7 @@ const dg = /* @__PURE__ */ Gi(rE, [["render", aE]]), sE = { class: "relative w-f
|
|
|
8375
8375
|
Z,
|
|
8376
8376
|
V
|
|
8377
8377
|
];
|
|
8378
|
-
}), I = L(() => w.value && !r.disabled && r.showModelValue && r.
|
|
8378
|
+
}), I = L(() => w.value && !r.disabled && r.showModelValue && r.showRemoveButton);
|
|
8379
8379
|
return t({
|
|
8380
8380
|
focus: R,
|
|
8381
8381
|
blur: N,
|
|
@@ -8578,7 +8578,7 @@ const SE = {
|
|
|
8578
8578
|
default: !1,
|
|
8579
8579
|
type: Boolean
|
|
8580
8580
|
},
|
|
8581
|
-
|
|
8581
|
+
showRemoveButton: {
|
|
8582
8582
|
default: !0,
|
|
8583
8583
|
type: Boolean
|
|
8584
8584
|
},
|
|
@@ -8677,7 +8677,7 @@ const SE = {
|
|
|
8677
8677
|
"focus-on-mount": n.focusOnMount,
|
|
8678
8678
|
"show-empty-option": n.showEmptyOption,
|
|
8679
8679
|
"empty-option-label": n.emptyOptionLabel,
|
|
8680
|
-
"show-
|
|
8680
|
+
"show-remove-button": n.showRemoveButton,
|
|
8681
8681
|
select: n.select,
|
|
8682
8682
|
filter: E,
|
|
8683
8683
|
onClear: y,
|
|
@@ -8698,7 +8698,7 @@ const SE = {
|
|
|
8698
8698
|
])
|
|
8699
8699
|
]),
|
|
8700
8700
|
_: 3
|
|
8701
|
-
}, 8, ["loading", "loading-bottom", "model-value", "disabled", "name", "placeholder", "options", "value-key", "label-key", "has-error", "required", "size", "inline", "dropdown-show", "show-model-value", "visible-focus", "focus-on-mount", "show-empty-option", "empty-option-label", "show-
|
|
8701
|
+
}, 8, ["loading", "loading-bottom", "model-value", "disabled", "name", "placeholder", "options", "value-key", "label-key", "has-error", "required", "size", "inline", "dropdown-show", "show-model-value", "visible-focus", "focus-on-mount", "show-empty-option", "empty-option-label", "show-remove-button", "select", "onScrollBottom"]));
|
|
8702
8702
|
}
|
|
8703
8703
|
}), _E = ["src"], kE = { class: "truncate" }, AE = { class: "truncate font-light opacity-50" }, Al = /* @__PURE__ */ Ee({
|
|
8704
8704
|
inheritAttrs: !1,
|
|
@@ -8991,7 +8991,7 @@ const SE = {
|
|
|
8991
8991
|
default: !1,
|
|
8992
8992
|
type: Boolean
|
|
8993
8993
|
},
|
|
8994
|
-
|
|
8994
|
+
showRemoveButton: {
|
|
8995
8995
|
default: !0,
|
|
8996
8996
|
type: Boolean
|
|
8997
8997
|
},
|
|
@@ -9048,7 +9048,7 @@ const SE = {
|
|
|
9048
9048
|
"dropdown-show": n.dropdownShow,
|
|
9049
9049
|
"show-model-value": n.showModelValue,
|
|
9050
9050
|
"show-empty-option": n.showEmptyOption,
|
|
9051
|
-
"show-
|
|
9051
|
+
"show-remove-button": n.showRemoveButton,
|
|
9052
9052
|
"empty-option-label": n.emptyOptionLabel,
|
|
9053
9053
|
"visible-focus": n.visibleFocus,
|
|
9054
9054
|
"focus-on-mount": n.focusOnMount,
|
|
@@ -9065,7 +9065,7 @@ const SE = {
|
|
|
9065
9065
|
Ne(s.$slots, "footer", zt(jt(d)))
|
|
9066
9066
|
]),
|
|
9067
9067
|
_: 3
|
|
9068
|
-
}, 8, ["model-value", "options", "disabled", "name", "placeholder", "required", "value-key", "label-key", "has-error", "inline", "size", "dropdown-show", "show-model-value", "show-empty-option", "show-
|
|
9068
|
+
}, 8, ["model-value", "options", "disabled", "name", "placeholder", "required", "value-key", "label-key", "has-error", "inline", "size", "dropdown-show", "show-model-value", "show-empty-option", "show-remove-button", "empty-option-label", "visible-focus", "focus-on-mount", "select"]));
|
|
9069
9069
|
}
|
|
9070
9070
|
}), NE = /* @__PURE__ */ Ee({
|
|
9071
9071
|
__name: "BaseBelongsToFetch",
|
|
@@ -9142,7 +9142,7 @@ const SE = {
|
|
|
9142
9142
|
default: !1,
|
|
9143
9143
|
type: Boolean
|
|
9144
9144
|
},
|
|
9145
|
-
|
|
9145
|
+
showRemoveButton: {
|
|
9146
9146
|
default: !0,
|
|
9147
9147
|
type: Boolean
|
|
9148
9148
|
},
|
|
@@ -9232,7 +9232,7 @@ const SE = {
|
|
|
9232
9232
|
"dropdown-show": n.dropdownShow,
|
|
9233
9233
|
"show-model-value": n.showModelValue,
|
|
9234
9234
|
"show-empty-option": n.showEmptyOption,
|
|
9235
|
-
"show-
|
|
9235
|
+
"show-remove-button": n.showRemoveButton,
|
|
9236
9236
|
"empty-option-label": n.emptyOptionLabel,
|
|
9237
9237
|
"visible-focus": n.visibleFocus,
|
|
9238
9238
|
"focus-on-mount": n.focusOnMount,
|
|
@@ -9249,7 +9249,7 @@ const SE = {
|
|
|
9249
9249
|
Ne(f.$slots, "footer", zt(jt(p)))
|
|
9250
9250
|
]),
|
|
9251
9251
|
_: 3
|
|
9252
|
-
}, 8, ["model-value", "url", "disabled", "name", "placeholder", "required", "value-key", "label-key", "has-error", "inline", "size", "dropdown-show", "show-model-value", "show-empty-option", "show-
|
|
9252
|
+
}, 8, ["model-value", "url", "disabled", "name", "placeholder", "required", "value-key", "label-key", "has-error", "inline", "size", "dropdown-show", "show-model-value", "show-empty-option", "show-remove-button", "empty-option-label", "visible-focus", "focus-on-mount", "select"]));
|
|
9253
9253
|
}
|
|
9254
9254
|
}), BE = { key: 0 }, PE = { key: 1 }, LE = /* @__PURE__ */ Ee({
|
|
9255
9255
|
__name: "BaseBoolean",
|
|
@@ -84,7 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
84
84
|
default: boolean;
|
|
85
85
|
type: BooleanConstructor;
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
showRemoveButton: {
|
|
88
88
|
default: boolean;
|
|
89
89
|
type: BooleanConstructor;
|
|
90
90
|
};
|
|
@@ -188,7 +188,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
188
188
|
default: boolean;
|
|
189
189
|
type: BooleanConstructor;
|
|
190
190
|
};
|
|
191
|
-
|
|
191
|
+
showRemoveButton: {
|
|
192
192
|
default: boolean;
|
|
193
193
|
type: BooleanConstructor;
|
|
194
194
|
};
|
|
@@ -226,7 +226,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
226
226
|
visibleFocus: boolean;
|
|
227
227
|
focusOnMount: boolean;
|
|
228
228
|
showEmptyOption: boolean;
|
|
229
|
-
|
|
229
|
+
showRemoveButton: boolean;
|
|
230
230
|
emptyOptionLabel: string;
|
|
231
231
|
}, {}>, {
|
|
232
232
|
empty?(_: {
|
|
@@ -69,7 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
69
69
|
default: boolean;
|
|
70
70
|
type: BooleanConstructor;
|
|
71
71
|
};
|
|
72
|
-
|
|
72
|
+
showRemoveButton: {
|
|
73
73
|
default: boolean;
|
|
74
74
|
type: BooleanConstructor;
|
|
75
75
|
};
|
|
@@ -162,7 +162,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
162
162
|
default: boolean;
|
|
163
163
|
type: BooleanConstructor;
|
|
164
164
|
};
|
|
165
|
-
|
|
165
|
+
showRemoveButton: {
|
|
166
166
|
default: boolean;
|
|
167
167
|
type: BooleanConstructor;
|
|
168
168
|
};
|
|
@@ -195,7 +195,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
195
195
|
visibleFocus: boolean;
|
|
196
196
|
focusOnMount: boolean;
|
|
197
197
|
showEmptyOption: boolean;
|
|
198
|
-
|
|
198
|
+
showRemoveButton: boolean;
|
|
199
199
|
emptyOptionLabel: string;
|
|
200
200
|
queryKey: string;
|
|
201
201
|
}, {}>, {
|
|
@@ -65,7 +65,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
65
65
|
default: boolean;
|
|
66
66
|
type: BooleanConstructor;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
showRemoveButton: {
|
|
69
69
|
default: boolean;
|
|
70
70
|
type: BooleanConstructor;
|
|
71
71
|
};
|
|
@@ -150,7 +150,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
150
150
|
default: boolean;
|
|
151
151
|
type: BooleanConstructor;
|
|
152
152
|
};
|
|
153
|
-
|
|
153
|
+
showRemoveButton: {
|
|
154
154
|
default: boolean;
|
|
155
155
|
type: BooleanConstructor;
|
|
156
156
|
};
|
|
@@ -179,7 +179,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
179
179
|
visibleFocus: boolean;
|
|
180
180
|
focusOnMount: boolean;
|
|
181
181
|
showEmptyOption: boolean;
|
|
182
|
-
|
|
182
|
+
showRemoveButton: boolean;
|
|
183
183
|
emptyOptionLabel: string;
|
|
184
184
|
primaryKey: string;
|
|
185
185
|
}, {}>, {
|
|
@@ -73,7 +73,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
73
73
|
default: boolean;
|
|
74
74
|
type: BooleanConstructor;
|
|
75
75
|
};
|
|
76
|
-
|
|
76
|
+
showRemoveButton: {
|
|
77
77
|
default: boolean;
|
|
78
78
|
type: BooleanConstructor;
|
|
79
79
|
};
|
|
@@ -166,7 +166,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
166
166
|
default: boolean;
|
|
167
167
|
type: BooleanConstructor;
|
|
168
168
|
};
|
|
169
|
-
|
|
169
|
+
showRemoveButton: {
|
|
170
170
|
default: boolean;
|
|
171
171
|
type: BooleanConstructor;
|
|
172
172
|
};
|
|
@@ -195,7 +195,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
195
195
|
visibleFocus: boolean;
|
|
196
196
|
focusOnMount: boolean;
|
|
197
197
|
showEmptyOption: boolean;
|
|
198
|
-
|
|
198
|
+
showRemoveButton: boolean;
|
|
199
199
|
emptyOptionLabel: string;
|
|
200
200
|
primaryKey: string;
|
|
201
201
|
showRouteUrl: ((id: string | number) => string) | undefined;
|
|
@@ -75,6 +75,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
75
75
|
disabled: boolean;
|
|
76
76
|
hasError: boolean;
|
|
77
77
|
inline: boolean;
|
|
78
|
+
showRemoveButton: boolean;
|
|
78
79
|
mode: 'single' | 'multiple' | 'range' | 'time';
|
|
79
80
|
minDate: string | Date | null;
|
|
80
81
|
maxDate: string | Date | null;
|
|
@@ -82,7 +83,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
82
83
|
enableTime: boolean;
|
|
83
84
|
noCalendar: boolean;
|
|
84
85
|
disableDates: (string | Date | ((date: Date) => boolean))[];
|
|
85
|
-
showRemoveButton: boolean;
|
|
86
86
|
}, {}>;
|
|
87
87
|
export default _default;
|
|
88
88
|
type __VLS_WithDefaults<P, D> = {
|
package/package.json
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
</div>
|
|
45
45
|
|
|
46
46
|
<div
|
|
47
|
-
v-if="
|
|
47
|
+
v-if="showRemoveButtonInternal"
|
|
48
48
|
class="absolute right-0 top-0 flex h-full p-1"
|
|
49
49
|
>
|
|
50
50
|
<button
|
|
@@ -197,7 +197,7 @@ const props = defineProps({
|
|
|
197
197
|
default: false,
|
|
198
198
|
type: Boolean,
|
|
199
199
|
},
|
|
200
|
-
|
|
200
|
+
showRemoveButton: {
|
|
201
201
|
default: true,
|
|
202
202
|
type: Boolean,
|
|
203
203
|
},
|
|
@@ -515,7 +515,7 @@ const deleteButtonIconClasses = computed(() => {
|
|
|
515
515
|
|
|
516
516
|
const inputClasses = computed(() => {
|
|
517
517
|
const base = 'w-full';
|
|
518
|
-
const paddingRight =
|
|
518
|
+
const paddingRight = showRemoveButtonInternal.value ? 'pr-5' : '';
|
|
519
519
|
const withSelect = props.select ? 'rounded-l-none' : '';
|
|
520
520
|
|
|
521
521
|
return [
|
|
@@ -525,8 +525,8 @@ const inputClasses = computed(() => {
|
|
|
525
525
|
];
|
|
526
526
|
})
|
|
527
527
|
|
|
528
|
-
const
|
|
529
|
-
return normalizedModelValue.value && !props.disabled && props.showModelValue && props.
|
|
528
|
+
const showRemoveButtonInternal = computed(() => {
|
|
529
|
+
return normalizedModelValue.value && !props.disabled && props.showModelValue && props.showRemoveButton;
|
|
530
530
|
});
|
|
531
531
|
|
|
532
532
|
defineExpose({
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
:focus-on-mount="focusOnMount"
|
|
21
21
|
:show-empty-option="showEmptyOption"
|
|
22
22
|
:empty-option-label="emptyOptionLabel"
|
|
23
|
-
:show-
|
|
23
|
+
:show-remove-button="showRemoveButton"
|
|
24
24
|
:select="select"
|
|
25
25
|
:filter="filterOptions"
|
|
26
26
|
@clear="onClear"
|
|
@@ -155,7 +155,7 @@ const props = defineProps({
|
|
|
155
155
|
default: false,
|
|
156
156
|
type: Boolean,
|
|
157
157
|
},
|
|
158
|
-
|
|
158
|
+
showRemoveButton: {
|
|
159
159
|
default: true,
|
|
160
160
|
type: Boolean,
|
|
161
161
|
},
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:dropdown-show="dropdownShow"
|
|
16
16
|
:show-model-value="showModelValue"
|
|
17
17
|
:show-empty-option="showEmptyOption"
|
|
18
|
-
:show-
|
|
18
|
+
:show-remove-button="showRemoveButton"
|
|
19
19
|
:empty-option-label="emptyOptionLabel"
|
|
20
20
|
:visible-focus="visibleFocus"
|
|
21
21
|
:focus-on-mount="focusOnMount"
|
|
@@ -116,7 +116,7 @@ const props = defineProps({
|
|
|
116
116
|
default: false,
|
|
117
117
|
type: Boolean,
|
|
118
118
|
},
|
|
119
|
-
|
|
119
|
+
showRemoveButton: {
|
|
120
120
|
default: true,
|
|
121
121
|
type: Boolean,
|
|
122
122
|
},
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:dropdown-show="dropdownShow"
|
|
16
16
|
:show-model-value="showModelValue"
|
|
17
17
|
:show-empty-option="showEmptyOption"
|
|
18
|
-
:show-
|
|
18
|
+
:show-remove-button="showRemoveButton"
|
|
19
19
|
:empty-option-label="emptyOptionLabel"
|
|
20
20
|
:visible-focus="visibleFocus"
|
|
21
21
|
:focus-on-mount="focusOnMount"
|
|
@@ -127,7 +127,7 @@ const props = defineProps({
|
|
|
127
127
|
default: false,
|
|
128
128
|
type: Boolean,
|
|
129
129
|
},
|
|
130
|
-
|
|
130
|
+
showRemoveButton: {
|
|
131
131
|
default: true,
|
|
132
132
|
type: Boolean,
|
|
133
133
|
},
|