@stsdti/funky-ui-kit 1.8.5 → 1.8.6
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/funky-ui-kit.esm.js
CHANGED
|
@@ -73228,22 +73228,23 @@ var AppInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
73228
73228
|
}),
|
|
73229
73229
|
emits: /*@__PURE__*/ mergeModels(["onSubmit", "blur"], ["update:modelValue"]),
|
|
73230
73230
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
73231
|
-
useSlots();
|
|
73231
|
+
const slots = useSlots();
|
|
73232
73232
|
let modelValue = useModel(__props, "modelValue");
|
|
73233
73233
|
const props = __props;
|
|
73234
73234
|
const emits = __emit;
|
|
73235
|
+
const hasLeftIcon = computed(() => !!props.leftIcon || !!slots.iconLeft);
|
|
73235
73236
|
const clearStyle = computed(() => ({ "margin-right": isTypeNumber.value ? "2px" : "8px" }));
|
|
73236
73237
|
const inputClass = computed(() => ({
|
|
73237
73238
|
"input-empty no-spinner flex-1": true,
|
|
73238
|
-
"pl-15": !
|
|
73239
|
+
"pl-15": !hasLeftIcon.value
|
|
73239
73240
|
}));
|
|
73240
73241
|
const inputContainerClass = computed(() => {
|
|
73241
73242
|
return {
|
|
73242
73243
|
"flex-center-vertical form-control": true,
|
|
73243
73244
|
"disabled-element": props.disabled,
|
|
73244
|
-
"p-0": !
|
|
73245
|
-
"no-padding-right": !!
|
|
73246
|
-
"gap-1": !!
|
|
73245
|
+
"p-0": !hasLeftIcon.value,
|
|
73246
|
+
"no-padding-right": !!hasLeftIcon.value,
|
|
73247
|
+
"gap-1": !!hasLeftIcon.value
|
|
73247
73248
|
};
|
|
73248
73249
|
});
|
|
73249
73250
|
const isTypeNumber = computed(() => props.type === "number");
|
|
@@ -73289,7 +73290,7 @@ var AppInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
73289
73290
|
return openBlock(), createBlock(AppFormElement_default, normalizeProps(guardReactiveProps(unref(formElementProps))), createSlots({
|
|
73290
73291
|
"help-block": withCtx(() => [renderSlot(_ctx.$slots, "help-block", {}, void 0, true)]),
|
|
73291
73292
|
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(inputContainerClass.value) }, [
|
|
73292
|
-
|
|
73293
|
+
hasLeftIcon.value ? (openBlock(), createElementBlock("div", _hoisted_1$59, [renderSlot(_ctx.$slots, "iconLeft", {}, () => [createVNode(_component_app_icon, { value: __props.leftIcon }, null, 8, ["value"])], true)])) : createCommentVNode("", true),
|
|
73293
73294
|
withDirectives(createElementVNode("input", mergeProps({
|
|
73294
73295
|
ref_key: "inputElement",
|
|
73295
73296
|
ref: inputElement,
|
|
@@ -73327,7 +73328,7 @@ var AppInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
73327
73328
|
})]), 1040);
|
|
73328
73329
|
};
|
|
73329
73330
|
}
|
|
73330
|
-
}, [["__scopeId", "data-v-
|
|
73331
|
+
}, [["__scopeId", "data-v-7a5068b0"]]);
|
|
73331
73332
|
//#endregion
|
|
73332
73333
|
//#region src/components/small/app-link/AppLink.vue
|
|
73333
73334
|
var _hoisted_1$58 = {
|