@bagelink/vue 0.0.579 → 0.0.583
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/components/form/BglForm.vue.d.ts +2 -1
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +47 -41
- package/dist/index.mjs +47 -41
- package/dist/style.css +8 -7
- package/package.json +2 -2
- package/src/components/ListView.vue +1 -1
- package/src/components/ModalForm.vue +7 -7
- package/src/components/form/BglForm.vue +5 -1
- package/src/components/form/inputs/SelectInput.vue +37 -35
- package/src/styles/mobilLayout.css +1 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BglFormSchemaT } from '../..';
|
|
2
2
|
|
|
3
3
|
type FormStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
4
|
+
declare function validateForm(): boolean | undefined;
|
|
4
5
|
declare function runSubmit(): void;
|
|
5
6
|
declare function deleteItem(): void;
|
|
6
7
|
declare function __VLS_template(): {
|
|
@@ -22,7 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
22
23
|
}>, {
|
|
23
24
|
modelValue: () => {};
|
|
24
25
|
}>, {
|
|
25
|
-
validateForm:
|
|
26
|
+
validateForm: typeof validateForm;
|
|
26
27
|
deleteItem: typeof deleteItem;
|
|
27
28
|
isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
|
|
28
29
|
clearForm: () => {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BglForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglForm.vue"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,cAAc,EAAmB,MAAM,eAAe,CAAA;AAK9E,KAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,C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AsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SelectInput.vue"],"names":[],"mappings":"AAIA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,EAIN,KAAK,aAAa,EAElB,MAAM,eAAe,CAAA;AAItB,KAAK,MAAM,GACR,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAA;AA0K5C,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SelectInput.vue"],"names":[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CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -5863,7 +5863,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
5863
5863
|
};
|
|
5864
5864
|
}
|
|
5865
5865
|
});
|
|
5866
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-
|
|
5866
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-4609dcd1"]]);
|
|
5867
5867
|
const _hoisted_1$G = { class: "accordion-item" };
|
|
5868
5868
|
const _hoisted_2$x = ["aria-expanded", "aria-controls"];
|
|
5869
5869
|
const _hoisted_3$l = { class: "accordion-label" };
|
|
@@ -5940,7 +5940,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
5940
5940
|
});
|
|
5941
5941
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-f87b579d"]]);
|
|
5942
5942
|
const _sfc_main$I = {};
|
|
5943
|
-
const _hoisted_1$F = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0" };
|
|
5943
|
+
const _hoisted_1$F = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
|
|
5944
5944
|
const _hoisted_2$w = { class: "p-1" };
|
|
5945
5945
|
const _hoisted_3$k = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
5946
5946
|
function _sfc_render$2(_ctx, _cache) {
|
|
@@ -16818,10 +16818,14 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
16818
16818
|
get: () => formData.value
|
|
16819
16819
|
});
|
|
16820
16820
|
const form = vue.ref();
|
|
16821
|
-
|
|
16821
|
+
function validateForm() {
|
|
16822
16822
|
var _a2;
|
|
16823
|
+
setTimeout(() => {
|
|
16824
|
+
var _a3;
|
|
16825
|
+
return (_a3 = form.value) == null ? void 0 : _a3.reportValidity();
|
|
16826
|
+
}, 300);
|
|
16823
16827
|
return (_a2 = form.value) == null ? void 0 : _a2.reportValidity();
|
|
16824
|
-
}
|
|
16828
|
+
}
|
|
16825
16829
|
const clearForm = () => data2.value = {};
|
|
16826
16830
|
vue.watch(
|
|
16827
16831
|
() => props2.status,
|
|
@@ -25807,44 +25811,46 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
25807
25811
|
}, 8, ["style"])
|
|
25808
25812
|
]),
|
|
25809
25813
|
default: vue.withCtx(() => [
|
|
25810
|
-
vue.createElementVNode("label",
|
|
25814
|
+
vue.createElementVNode("label", null, [
|
|
25811
25815
|
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
25812
|
-
vue.createElementVNode("
|
|
25813
|
-
|
|
25814
|
-
|
|
25815
|
-
|
|
25816
|
-
|
|
25817
|
-
|
|
25818
|
-
|
|
25819
|
-
|
|
25820
|
-
|
|
25821
|
-
|
|
25822
|
-
|
|
25823
|
-
|
|
25824
|
-
|
|
25825
|
-
|
|
25826
|
-
|
|
25827
|
-
|
|
25828
|
-
|
|
25829
|
-
|
|
25830
|
-
|
|
25831
|
-
|
|
25816
|
+
vue.createElementVNode("div", _hoisted_1$q, [
|
|
25817
|
+
vue.createElementVNode("button", {
|
|
25818
|
+
disabled: _ctx.disabled,
|
|
25819
|
+
type: "button",
|
|
25820
|
+
class: vue.normalizeClass(["selectinput-btn", { isEmpty: selectedItemCount.value === 0 }]),
|
|
25821
|
+
onKeydown: openOptions,
|
|
25822
|
+
onClick: _cache[1] || (_cache[1] = ($event) => updateOpen(true))
|
|
25823
|
+
}, [
|
|
25824
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$O), {
|
|
25825
|
+
key: 0,
|
|
25826
|
+
icon: _ctx.icon
|
|
25827
|
+
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
25828
|
+
!_ctx.hideLabel ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$f, vue.toDisplayString(selectedLabel.value), 1)) : vue.createCommentVNode("", true),
|
|
25829
|
+
_ctx.clearable && selectedItemCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$b, [
|
|
25830
|
+
vue.createVNode(vue.unref(Btn), {
|
|
25831
|
+
thin: "",
|
|
25832
|
+
icon: "clear",
|
|
25833
|
+
class: "color-black bg-gray-light",
|
|
25834
|
+
onClick: _cache[0] || (_cache[0] = ($event) => {
|
|
25835
|
+
vue.isRef(selectedItems) ? selectedItems.value = [] : selectedItems = [];
|
|
25836
|
+
emitUpdate();
|
|
25837
|
+
})
|
|
25832
25838
|
})
|
|
25833
|
-
|
|
25834
|
-
|
|
25835
|
-
|
|
25836
|
-
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
|
|
25842
|
-
|
|
25843
|
-
|
|
25844
|
-
|
|
25845
|
-
|
|
25846
|
-
|
|
25847
|
-
|
|
25839
|
+
])) : vue.createCommentVNode("", true),
|
|
25840
|
+
!_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$O), vue.mergeProps({
|
|
25841
|
+
key: 3,
|
|
25842
|
+
thin: ""
|
|
25843
|
+
}, { icon: vue.unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : vue.createCommentVNode("", true)
|
|
25844
|
+
], 42, _hoisted_2$k),
|
|
25845
|
+
_ctx.required ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
25846
|
+
key: 0,
|
|
25847
|
+
tabindex: "-1",
|
|
25848
|
+
style: { "width": "0", "height": "0", "position": "absolute", "opacity": "0", "z-index": "-1" },
|
|
25849
|
+
value: vue.unref(selectedItems),
|
|
25850
|
+
required: "",
|
|
25851
|
+
onInput: _cache[2] || (_cache[2] = ($event) => updateOpen(true))
|
|
25852
|
+
}, null, 40, _hoisted_5$b)) : vue.createCommentVNode("", true)
|
|
25853
|
+
])
|
|
25848
25854
|
])
|
|
25849
25855
|
]),
|
|
25850
25856
|
_: 3
|
|
@@ -25852,7 +25858,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
25852
25858
|
};
|
|
25853
25859
|
}
|
|
25854
25860
|
});
|
|
25855
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
25861
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b4eacc5b"]]);
|
|
25856
25862
|
/*!
|
|
25857
25863
|
* vue-draggable-next v2.2.0
|
|
25858
25864
|
* (c) 2023 Anish George
|
package/dist/index.mjs
CHANGED
|
@@ -5861,7 +5861,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5861
5861
|
};
|
|
5862
5862
|
}
|
|
5863
5863
|
});
|
|
5864
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-
|
|
5864
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-4609dcd1"]]);
|
|
5865
5865
|
const _hoisted_1$G = { class: "accordion-item" };
|
|
5866
5866
|
const _hoisted_2$x = ["aria-expanded", "aria-controls"];
|
|
5867
5867
|
const _hoisted_3$l = { class: "accordion-label" };
|
|
@@ -5938,7 +5938,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5938
5938
|
});
|
|
5939
5939
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-f87b579d"]]);
|
|
5940
5940
|
const _sfc_main$I = {};
|
|
5941
|
-
const _hoisted_1$F = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0" };
|
|
5941
|
+
const _hoisted_1$F = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
|
|
5942
5942
|
const _hoisted_2$w = { class: "p-1" };
|
|
5943
5943
|
const _hoisted_3$k = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
5944
5944
|
function _sfc_render$2(_ctx, _cache) {
|
|
@@ -16816,10 +16816,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16816
16816
|
get: () => formData.value
|
|
16817
16817
|
});
|
|
16818
16818
|
const form = ref();
|
|
16819
|
-
|
|
16819
|
+
function validateForm() {
|
|
16820
16820
|
var _a2;
|
|
16821
|
+
setTimeout(() => {
|
|
16822
|
+
var _a3;
|
|
16823
|
+
return (_a3 = form.value) == null ? void 0 : _a3.reportValidity();
|
|
16824
|
+
}, 300);
|
|
16821
16825
|
return (_a2 = form.value) == null ? void 0 : _a2.reportValidity();
|
|
16822
|
-
}
|
|
16826
|
+
}
|
|
16823
16827
|
const clearForm = () => data2.value = {};
|
|
16824
16828
|
watch(
|
|
16825
16829
|
() => props2.status,
|
|
@@ -25805,44 +25809,46 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
25805
25809
|
}, 8, ["style"])
|
|
25806
25810
|
]),
|
|
25807
25811
|
default: withCtx(() => [
|
|
25808
|
-
createElementVNode("label",
|
|
25812
|
+
createElementVNode("label", null, [
|
|
25809
25813
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
25810
|
-
createElementVNode("
|
|
25811
|
-
|
|
25812
|
-
|
|
25813
|
-
|
|
25814
|
-
|
|
25815
|
-
|
|
25816
|
-
|
|
25817
|
-
|
|
25818
|
-
|
|
25819
|
-
|
|
25820
|
-
|
|
25821
|
-
|
|
25822
|
-
|
|
25823
|
-
|
|
25824
|
-
|
|
25825
|
-
|
|
25826
|
-
|
|
25827
|
-
|
|
25828
|
-
|
|
25829
|
-
|
|
25814
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
25815
|
+
createElementVNode("button", {
|
|
25816
|
+
disabled: _ctx.disabled,
|
|
25817
|
+
type: "button",
|
|
25818
|
+
class: normalizeClass(["selectinput-btn", { isEmpty: selectedItemCount.value === 0 }]),
|
|
25819
|
+
onKeydown: openOptions,
|
|
25820
|
+
onClick: _cache[1] || (_cache[1] = ($event) => updateOpen(true))
|
|
25821
|
+
}, [
|
|
25822
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$O), {
|
|
25823
|
+
key: 0,
|
|
25824
|
+
icon: _ctx.icon
|
|
25825
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
25826
|
+
!_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$f, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
|
|
25827
|
+
_ctx.clearable && selectedItemCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$b, [
|
|
25828
|
+
createVNode(unref(Btn), {
|
|
25829
|
+
thin: "",
|
|
25830
|
+
icon: "clear",
|
|
25831
|
+
class: "color-black bg-gray-light",
|
|
25832
|
+
onClick: _cache[0] || (_cache[0] = ($event) => {
|
|
25833
|
+
isRef(selectedItems) ? selectedItems.value = [] : selectedItems = [];
|
|
25834
|
+
emitUpdate();
|
|
25835
|
+
})
|
|
25830
25836
|
})
|
|
25831
|
-
|
|
25832
|
-
|
|
25833
|
-
|
|
25834
|
-
|
|
25835
|
-
|
|
25836
|
-
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
|
|
25842
|
-
|
|
25843
|
-
|
|
25844
|
-
|
|
25845
|
-
|
|
25837
|
+
])) : createCommentVNode("", true),
|
|
25838
|
+
!_ctx.disabled ? (openBlock(), createBlock(unref(_sfc_main$O), mergeProps({
|
|
25839
|
+
key: 3,
|
|
25840
|
+
thin: ""
|
|
25841
|
+
}, { icon: unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : createCommentVNode("", true)
|
|
25842
|
+
], 42, _hoisted_2$k),
|
|
25843
|
+
_ctx.required ? (openBlock(), createElementBlock("input", {
|
|
25844
|
+
key: 0,
|
|
25845
|
+
tabindex: "-1",
|
|
25846
|
+
style: { "width": "0", "height": "0", "position": "absolute", "opacity": "0", "z-index": "-1" },
|
|
25847
|
+
value: unref(selectedItems),
|
|
25848
|
+
required: "",
|
|
25849
|
+
onInput: _cache[2] || (_cache[2] = ($event) => updateOpen(true))
|
|
25850
|
+
}, null, 40, _hoisted_5$b)) : createCommentVNode("", true)
|
|
25851
|
+
])
|
|
25846
25852
|
])
|
|
25847
25853
|
]),
|
|
25848
25854
|
_: 3
|
|
@@ -25850,7 +25856,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
25850
25856
|
};
|
|
25851
25857
|
}
|
|
25852
25858
|
});
|
|
25853
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
25859
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b4eacc5b"]]);
|
|
25854
25860
|
/*!
|
|
25855
25861
|
* vue-draggable-next v2.2.0
|
|
25856
25862
|
* (c) 2023 Anish George
|
package/dist/style.css
CHANGED
|
@@ -531,11 +531,11 @@ a[data-v-59ea4a90] {
|
|
|
531
531
|
border-radius: var(--card-border-radius);
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
-
.modal-title[data-v-
|
|
534
|
+
.modal-title[data-v-4609dcd1] {
|
|
535
535
|
margin-top: 0.5rem;
|
|
536
536
|
}
|
|
537
537
|
@media screen and (max-width: 910px) {
|
|
538
|
-
.modal-title[data-v-
|
|
538
|
+
.modal-title[data-v-4609dcd1] {
|
|
539
539
|
margin-top: 1rem;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -1909,10 +1909,10 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}
|
|
1911
1911
|
|
|
1912
|
-
.selectinput[data-v-
|
|
1912
|
+
.selectinput[data-v-b4eacc5b] {
|
|
1913
1913
|
width: 100%;
|
|
1914
1914
|
}
|
|
1915
|
-
.selectinput-option[data-v-
|
|
1915
|
+
.selectinput-option[data-v-b4eacc5b] {
|
|
1916
1916
|
padding: 6px 12px;
|
|
1917
1917
|
cursor: pointer;
|
|
1918
1918
|
border-radius: 5px;
|
|
@@ -1923,14 +1923,14 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
1923
1923
|
width: 100%;
|
|
1924
1924
|
font-size: var(--input-font-size);
|
|
1925
1925
|
}
|
|
1926
|
-
.selectinput-options[data-v-
|
|
1926
|
+
.selectinput-options[data-v-b4eacc5b] {
|
|
1927
1927
|
max-height: 300px;
|
|
1928
1928
|
overflow-y: auto;
|
|
1929
1929
|
}
|
|
1930
|
-
.selectinput-option[data-v-
|
|
1930
|
+
.selectinput-option[data-v-b4eacc5b]:hover {
|
|
1931
1931
|
background: var(--bgl-gray-20);
|
|
1932
1932
|
}
|
|
1933
|
-
.isEmpty p[data-v-
|
|
1933
|
+
.isEmpty p[data-v-b4eacc5b] {
|
|
1934
1934
|
opacity: 0.3;
|
|
1935
1935
|
}
|
|
1936
1936
|
|
|
@@ -4933,6 +4933,7 @@ input[type="number"][data-v-4c741194] {
|
|
|
4933
4933
|
.m_w100p,
|
|
4934
4934
|
.m_w100p .m_width-100 {
|
|
4935
4935
|
width: 100% !important;
|
|
4936
|
+
max-width: 100% !important;
|
|
4936
4937
|
}
|
|
4937
4938
|
|
|
4938
4939
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.583",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Neveh Allon",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"leaflet": "^1.9.4",
|
|
122
122
|
"libphonenumber-js": "1.11.4",
|
|
123
123
|
"signature_pad": "^5.0.2",
|
|
124
|
-
"type-fest": "^4.
|
|
124
|
+
"type-fest": "^4.22.0"
|
|
125
125
|
},
|
|
126
126
|
"scripts": {
|
|
127
127
|
"dev": "tsx watch src/index.ts",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup></script>
|
|
2
2
|
|
|
3
3
|
<template>
|
|
4
|
-
<div class="list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0">
|
|
4
|
+
<div class="list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0">
|
|
5
5
|
<div class="p-1">
|
|
6
6
|
<slot name="header" />
|
|
7
7
|
</div>
|
|
@@ -45,13 +45,13 @@ const form = $ref<InstanceType<typeof BagelForm>>()
|
|
|
45
45
|
const closeModal = () => modal?.closeModal()
|
|
46
46
|
|
|
47
47
|
async function runSubmit() {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
if (form?.validateForm?.() === false) return
|
|
49
|
+
try {
|
|
50
|
+
await props.onSubmit?.(formData.value)
|
|
51
|
+
closeModal()
|
|
52
|
+
} catch (err: any) {
|
|
53
|
+
if (props.onError) props.onError(err)
|
|
54
|
+
else bagel.onError?.(err)
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -42,7 +42,11 @@ let data = $computed({
|
|
|
42
42
|
})
|
|
43
43
|
const form = $ref<HTMLFormElement>()
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
function validateForm() {
|
|
46
|
+
// ? Ensures that scrolling does not dismiss validation-tooltip in safari
|
|
47
|
+
setTimeout(() => form?.reportValidity(), 300) // TODO: check if browser is safari
|
|
48
|
+
return form?.reportValidity()
|
|
49
|
+
}
|
|
46
50
|
|
|
47
51
|
const clearForm = () => (data = {})
|
|
48
52
|
|
|
@@ -190,44 +190,46 @@ onMounted(() => {
|
|
|
190
190
|
@click.stop
|
|
191
191
|
@hide="updateOpen(false)"
|
|
192
192
|
>
|
|
193
|
-
<label
|
|
193
|
+
<label>
|
|
194
194
|
{{ label }}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
<
|
|
195
|
+
<div class="flex gap-05">
|
|
196
|
+
<button
|
|
197
|
+
:disabled="disabled"
|
|
198
|
+
type="button"
|
|
199
|
+
class="selectinput-btn"
|
|
200
|
+
:class="{ isEmpty: selectedItemCount === 0 }"
|
|
201
|
+
@keydown="openOptions"
|
|
202
|
+
@click="updateOpen(true)"
|
|
203
|
+
>
|
|
204
|
+
<Icon v-if="icon" :icon="icon" />
|
|
205
|
+
<p v-if="!hideLabel">
|
|
206
|
+
{{ selectedLabel }}
|
|
207
|
+
</p>
|
|
208
|
+
|
|
209
|
+
<div v-if="clearable && selectedItemCount > 0" class="ms-auto ps-05 me-05">
|
|
210
|
+
<Btn
|
|
211
|
+
thin
|
|
212
|
+
icon="clear"
|
|
213
|
+
class="color-black bg-gray-light"
|
|
214
|
+
@click="selectedItems = []; emitUpdate()"
|
|
215
|
+
/>
|
|
216
|
+
</div>
|
|
217
|
+
<Icon
|
|
218
|
+
v-if="!disabled"
|
|
210
219
|
thin
|
|
211
|
-
|
|
212
|
-
class="color-black bg-gray-light"
|
|
213
|
-
@click="selectedItems = []; emitUpdate()"
|
|
220
|
+
v-bind="{ icon: open ? 'unfold_less' : 'unfold_more' }"
|
|
214
221
|
/>
|
|
215
|
-
</
|
|
216
|
-
<
|
|
217
|
-
v-if="
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
:value="selectedItems"
|
|
227
|
-
required
|
|
228
|
-
@input="updateOpen(true)"
|
|
229
|
-
>
|
|
230
|
-
|
|
222
|
+
</button>
|
|
223
|
+
<input
|
|
224
|
+
v-if="required"
|
|
225
|
+
tabindex="-1"
|
|
226
|
+
style="width: 0; height: 0; position: absolute; opacity: 0; z-index: -1"
|
|
227
|
+
:value="selectedItems"
|
|
228
|
+
required
|
|
229
|
+
@input="updateOpen(true)"
|
|
230
|
+
>
|
|
231
|
+
|
|
232
|
+
</div>
|
|
231
233
|
</label>
|
|
232
234
|
<template #popper>
|
|
233
235
|
<Card
|