@ouestfrance/sipa-bms-ui 8.0.1 → 8.1.1
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/BmsInputText.vue.d.ts +7 -1
- package/dist/components/form/BmsSearch.vue.d.ts +10 -2
- package/dist/components/form/RawAutocomplete.vue.d.ts +5 -1
- package/dist/components/form/RawInputText.vue.d.ts +2 -0
- package/dist/components/navigation/UiTenantSwitcher.vue.d.ts +10 -2
- package/dist/components/table/BmsTableFilters.vue.d.ts +10 -2
- package/dist/helpers/form.helper.d.ts +1 -0
- package/dist/helpers/form.helper.spec.d.ts +1 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/sipa-bms-ui.css +13 -13
- package/dist/sipa-bms-ui.es.js +11 -7
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +11 -6
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/form/BmsInputText.spec.ts +12 -0
- package/src/components/form/BmsInputText.vue +8 -2
- package/src/components/form/RawInputText.vue +2 -0
- package/src/helpers/form.helper.spec.ts +33 -0
- package/src/helpers/form.helper.ts +2 -0
- package/src/helpers/index.ts +1 -0
- package/src/showroom/pages/forms.vue +27 -0
package/dist/sipa-bms-ui.umd.js
CHANGED
|
@@ -141,6 +141,8 @@
|
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
+
const BMS_FORM_VALID_URL_REGEX = /^(https?:\/\/)?(localhost(:\d+)?|([\da-zA-Z][-\da-zA-Z]*[\da-zA-Z]\.)+[a-zA-Z]{2,6})(\/[\w .-]*)*\/?$/;
|
|
145
|
+
|
|
144
146
|
const getCurrentLocation = () => {
|
|
145
147
|
return window.location;
|
|
146
148
|
};
|
|
@@ -36762,7 +36764,7 @@
|
|
|
36762
36764
|
type: { default: InputType.TEXT },
|
|
36763
36765
|
errors: {}
|
|
36764
36766
|
},
|
|
36765
|
-
emits: ["update:modelValue", "update:focus", "keyUp", "keyDown", "keyEnter"],
|
|
36767
|
+
emits: ["update:modelValue", "update:focus", "blur", "keyUp", "keyDown", "keyEnter"],
|
|
36766
36768
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
36767
36769
|
const props = __props;
|
|
36768
36770
|
const input = vue.ref(null);
|
|
@@ -36812,11 +36814,12 @@
|
|
|
36812
36814
|
placeholder: _ctx.placeholder,
|
|
36813
36815
|
required: _ctx.required,
|
|
36814
36816
|
disabled: _ctx.disabled,
|
|
36817
|
+
onBlur: _cache[0] || (_cache[0] = ($event) => $emits("blur")),
|
|
36815
36818
|
onInput,
|
|
36816
36819
|
onKeydown: [
|
|
36817
|
-
_cache[
|
|
36818
|
-
_cache[
|
|
36819
|
-
_cache[
|
|
36820
|
+
_cache[1] || (_cache[1] = vue.withKeys(($event) => $emits("keyUp"), ["up"])),
|
|
36821
|
+
_cache[2] || (_cache[2] = vue.withKeys(($event) => $emits("keyDown"), ["down"])),
|
|
36822
|
+
_cache[3] || (_cache[3] = vue.withKeys(($event) => $emits("keyEnter"), ["enter"]))
|
|
36820
36823
|
]
|
|
36821
36824
|
}, null, 40, _hoisted_3$e),
|
|
36822
36825
|
vue.createElementVNode("span", _hoisted_4$b, [
|
|
@@ -36827,7 +36830,7 @@
|
|
|
36827
36830
|
}
|
|
36828
36831
|
});
|
|
36829
36832
|
|
|
36830
|
-
const RawInputText = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
36833
|
+
const RawInputText = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-c1fe71b9"]]);
|
|
36831
36834
|
|
|
36832
36835
|
const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
36833
36836
|
__name: "RawAutocomplete",
|
|
@@ -66341,7 +66344,7 @@
|
|
|
66341
66344
|
captions: {},
|
|
66342
66345
|
errors: {}
|
|
66343
66346
|
},
|
|
66344
|
-
emits: ["update:modelValue"],
|
|
66347
|
+
emits: ["update:modelValue", "blur"],
|
|
66345
66348
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
66346
66349
|
const props = __props;
|
|
66347
66350
|
const input = vue.ref(null);
|
|
@@ -66380,6 +66383,7 @@
|
|
|
66380
66383
|
disabled: _ctx.disabled,
|
|
66381
66384
|
errors: _ctx.errors,
|
|
66382
66385
|
hasDate: false,
|
|
66386
|
+
onBlur: _cache[0] || (_cache[0] = ($event) => $emits("blur")),
|
|
66383
66387
|
onInput,
|
|
66384
66388
|
onKeyup: onInput
|
|
66385
66389
|
}, {
|
|
@@ -102786,6 +102790,7 @@
|
|
|
102786
102790
|
}
|
|
102787
102791
|
});
|
|
102788
102792
|
|
|
102793
|
+
exports.BMS_FORM_VALID_URL_REGEX = BMS_FORM_VALID_URL_REGEX;
|
|
102789
102794
|
exports.BmsAlert = BmsAlert;
|
|
102790
102795
|
exports.BmsAutocomplete = BmsAutocomplete;
|
|
102791
102796
|
exports.BmsBackButton = BmsBackButton;
|