@iankibetsh/shframework 1.2.7 → 1.2.8
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/library.js +10 -8
- package/dist/library.mjs +10 -8
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -4994,22 +4994,22 @@ script$1.__file = "src/lib/components/core/auth/ShAuth.vue";
|
|
|
4994
4994
|
|
|
4995
4995
|
var script = {
|
|
4996
4996
|
__name: 'TextInput',
|
|
4997
|
-
props: ['modelValue'],
|
|
4998
|
-
emits: ['update:modelValue'],
|
|
4997
|
+
props: ['modelValue','label'],
|
|
4998
|
+
emits: ['update:modelValue','clearValidationErrors'],
|
|
4999
4999
|
setup(__props, { emit }) {
|
|
5000
5000
|
|
|
5001
5001
|
const props = __props;
|
|
5002
5002
|
|
|
5003
5003
|
|
|
5004
5004
|
|
|
5005
|
-
|
|
5006
5005
|
const inputModel = vue.ref(null);
|
|
5007
5006
|
|
|
5008
5007
|
const modelValueUpdated = (e) => {
|
|
5008
|
+
emit('clearValidationErrors');
|
|
5009
5009
|
emit('update:modelValue',inputModel);
|
|
5010
5010
|
};
|
|
5011
5011
|
vue.onMounted(()=>{
|
|
5012
|
-
inputModel.value = props.modelValue;
|
|
5012
|
+
props.modelValue && (inputModel.value = props.modelValue);
|
|
5013
5013
|
});
|
|
5014
5014
|
|
|
5015
5015
|
|
|
@@ -5018,7 +5018,7 @@ return (_ctx, _cache) => {
|
|
|
5018
5018
|
type: "text",
|
|
5019
5019
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((inputModel).value = $event)),
|
|
5020
5020
|
onChange: modelValueUpdated,
|
|
5021
|
-
onKeydown:
|
|
5021
|
+
onKeydown: modelValueUpdated,
|
|
5022
5022
|
onUpdated: modelValueUpdated
|
|
5023
5023
|
}, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
|
|
5024
5024
|
[vue.vModelText, inputModel.value]
|
|
@@ -5042,7 +5042,9 @@ const ShFrontend = {
|
|
|
5042
5042
|
formGroup: shFormElements.formGroup ?? 'mb-2',
|
|
5043
5043
|
formLabel: shFormElements.formLabel ?? 'form-label',
|
|
5044
5044
|
helperText: shFormElements.helperText ?? 'form-text',
|
|
5045
|
-
actionBtn: shFormElements.actionBtn ?? 'btn btn-primary'
|
|
5045
|
+
actionBtn: shFormElements.actionBtn ?? 'btn btn-primary',
|
|
5046
|
+
formErrorTitle: shFormElements.formErrorTitle ?? 'alert alert-danger',
|
|
5047
|
+
invalidFeedback: shFormElements.invalidFeedback ?? 'invalid-feedback'
|
|
5046
5048
|
};
|
|
5047
5049
|
const swalPosition = options.swalPosition ?? 'top-end';
|
|
5048
5050
|
const loginEndpoint = options.loginEndpoint ?? 'auth/login';
|
|
@@ -5050,7 +5052,7 @@ const ShFrontend = {
|
|
|
5050
5052
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
5051
5053
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
5052
5054
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
5053
|
-
|
|
5055
|
+
options.formTextInput ?? script;
|
|
5054
5056
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
5055
5057
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
5056
5058
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -5064,7 +5066,7 @@ const ShFrontend = {
|
|
|
5064
5066
|
app.provide('redirectLogin', redirectLogin);
|
|
5065
5067
|
app.provide('redirectRegister', redirectRegister);
|
|
5066
5068
|
app.provide('logoutApiEndpoint', logoutApiEndpoint);
|
|
5067
|
-
app.provide('
|
|
5069
|
+
app.provide('formComponents', options.shFormComponents);
|
|
5068
5070
|
app.provide('loginUrl', loginUrl);
|
|
5069
5071
|
app.provide('shFormElementClasses',defaultFormElementClasses);
|
|
5070
5072
|
window.swalPosition = swalPosition;
|
package/dist/library.mjs
CHANGED
|
@@ -4982,22 +4982,22 @@ script$1.__file = "src/lib/components/core/auth/ShAuth.vue";
|
|
|
4982
4982
|
|
|
4983
4983
|
var script = {
|
|
4984
4984
|
__name: 'TextInput',
|
|
4985
|
-
props: ['modelValue'],
|
|
4986
|
-
emits: ['update:modelValue'],
|
|
4985
|
+
props: ['modelValue','label'],
|
|
4986
|
+
emits: ['update:modelValue','clearValidationErrors'],
|
|
4987
4987
|
setup(__props, { emit }) {
|
|
4988
4988
|
|
|
4989
4989
|
const props = __props;
|
|
4990
4990
|
|
|
4991
4991
|
|
|
4992
4992
|
|
|
4993
|
-
|
|
4994
4993
|
const inputModel = ref(null);
|
|
4995
4994
|
|
|
4996
4995
|
const modelValueUpdated = (e) => {
|
|
4996
|
+
emit('clearValidationErrors');
|
|
4997
4997
|
emit('update:modelValue',inputModel);
|
|
4998
4998
|
};
|
|
4999
4999
|
onMounted(()=>{
|
|
5000
|
-
inputModel.value = props.modelValue;
|
|
5000
|
+
props.modelValue && (inputModel.value = props.modelValue);
|
|
5001
5001
|
});
|
|
5002
5002
|
|
|
5003
5003
|
|
|
@@ -5006,7 +5006,7 @@ return (_ctx, _cache) => {
|
|
|
5006
5006
|
type: "text",
|
|
5007
5007
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((inputModel).value = $event)),
|
|
5008
5008
|
onChange: modelValueUpdated,
|
|
5009
|
-
onKeydown:
|
|
5009
|
+
onKeydown: modelValueUpdated,
|
|
5010
5010
|
onUpdated: modelValueUpdated
|
|
5011
5011
|
}, null, 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
|
|
5012
5012
|
[vModelText, inputModel.value]
|
|
@@ -5030,7 +5030,9 @@ const ShFrontend = {
|
|
|
5030
5030
|
formGroup: shFormElements.formGroup ?? 'mb-2',
|
|
5031
5031
|
formLabel: shFormElements.formLabel ?? 'form-label',
|
|
5032
5032
|
helperText: shFormElements.helperText ?? 'form-text',
|
|
5033
|
-
actionBtn: shFormElements.actionBtn ?? 'btn btn-primary'
|
|
5033
|
+
actionBtn: shFormElements.actionBtn ?? 'btn btn-primary',
|
|
5034
|
+
formErrorTitle: shFormElements.formErrorTitle ?? 'alert alert-danger',
|
|
5035
|
+
invalidFeedback: shFormElements.invalidFeedback ?? 'invalid-feedback'
|
|
5034
5036
|
};
|
|
5035
5037
|
const swalPosition = options.swalPosition ?? 'top-end';
|
|
5036
5038
|
const loginEndpoint = options.loginEndpoint ?? 'auth/login';
|
|
@@ -5038,7 +5040,7 @@ const ShFrontend = {
|
|
|
5038
5040
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
5039
5041
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
5040
5042
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
5041
|
-
|
|
5043
|
+
options.formTextInput ?? script;
|
|
5042
5044
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
5043
5045
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
5044
5046
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -5052,7 +5054,7 @@ const ShFrontend = {
|
|
|
5052
5054
|
app.provide('redirectLogin', redirectLogin);
|
|
5053
5055
|
app.provide('redirectRegister', redirectRegister);
|
|
5054
5056
|
app.provide('logoutApiEndpoint', logoutApiEndpoint);
|
|
5055
|
-
app.provide('
|
|
5057
|
+
app.provide('formComponents', options.shFormComponents);
|
|
5056
5058
|
app.provide('loginUrl', loginUrl);
|
|
5057
5059
|
app.provide('shFormElementClasses',defaultFormElementClasses);
|
|
5058
5060
|
window.swalPosition = swalPosition;
|