@iankibetsh/shframework 3.0.6 → 3.0.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/dist/library.mjs.css +42 -42
- package/dist/library.js +0 -7
- package/dist/library.mjs +0 -7
- package/package.json +1 -1
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.colored-toast.swal2-icon-success {
|
|
3
|
-
background-color: #a5dc86 !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.colored-toast.swal2-icon-error {
|
|
7
|
-
background-color: #f27474 !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.colored-toast.swal2-icon-warning {
|
|
11
|
-
background-color: #f8bb86 !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.colored-toast.swal2-icon-info {
|
|
15
|
-
background-color: #3fc3ee !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.colored-toast.swal2-icon-question {
|
|
19
|
-
background-color: #87adbd !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.colored-toast .swal2-title {
|
|
23
|
-
color: white;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.colored-toast .swal2-close {
|
|
27
|
-
color: white;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.colored-toast .swal2-html-container {
|
|
31
|
-
color: white;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
2
|
.sh-phone{
|
|
35
3
|
display: flex;
|
|
36
4
|
width: 100%;
|
|
@@ -63,19 +31,36 @@
|
|
|
63
31
|
opacity: 0.5;
|
|
64
32
|
}
|
|
65
33
|
|
|
66
|
-
.
|
|
67
|
-
|
|
34
|
+
.colored-toast.swal2-icon-success {
|
|
35
|
+
background-color: #a5dc86 !important;
|
|
68
36
|
}
|
|
69
|
-
|
|
70
|
-
|
|
37
|
+
|
|
38
|
+
.colored-toast.swal2-icon-error {
|
|
39
|
+
background-color: #f27474 !important;
|
|
71
40
|
}
|
|
72
|
-
|
|
73
|
-
|
|
41
|
+
|
|
42
|
+
.colored-toast.swal2-icon-warning {
|
|
43
|
+
background-color: #f8bb86 !important;
|
|
74
44
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
45
|
+
|
|
46
|
+
.colored-toast.swal2-icon-info {
|
|
47
|
+
background-color: #3fc3ee !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.colored-toast.swal2-icon-question {
|
|
51
|
+
background-color: #87adbd !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.colored-toast .swal2-title {
|
|
55
|
+
color: white;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.colored-toast .swal2-close {
|
|
59
|
+
color: white;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.colored-toast .swal2-html-container {
|
|
63
|
+
color: white;
|
|
79
64
|
}
|
|
80
65
|
|
|
81
66
|
.permissions-main {
|
|
@@ -110,6 +95,21 @@
|
|
|
110
95
|
flex-grow: 1;
|
|
111
96
|
}
|
|
112
97
|
|
|
98
|
+
.sh-selected-item{
|
|
99
|
+
line-height: unset!important;
|
|
100
|
+
}
|
|
101
|
+
.sh-suggestion-input{
|
|
102
|
+
padding: 0.375rem 0.75rem;
|
|
103
|
+
}
|
|
104
|
+
.sh-suggest{
|
|
105
|
+
margin-bottom: 1rem;
|
|
106
|
+
}
|
|
107
|
+
.sh-suggest-control::after{
|
|
108
|
+
margin-top: auto;
|
|
109
|
+
margin-bottom: auto;
|
|
110
|
+
margin-right: 0.255em;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
113
|
.sh-forgot-link, .sh-register-link{
|
|
114
114
|
cursor: pointer;
|
|
115
115
|
}
|
package/dist/library.js
CHANGED
|
@@ -3186,7 +3186,6 @@ const submitBtn = vue.ref(false);
|
|
|
3186
3186
|
const validationErrors = vue.ref({});
|
|
3187
3187
|
const formError = vue.ref(null);
|
|
3188
3188
|
const submitForm = e => {
|
|
3189
|
-
console.log(formFields.value);
|
|
3190
3189
|
submitBtnWidth.value = submitBtn.value.getBoundingClientRect().width + 'px !important';
|
|
3191
3190
|
validationErrors.value = {};
|
|
3192
3191
|
e.preventDefault();
|
|
@@ -3209,7 +3208,6 @@ const submitForm = e => {
|
|
|
3209
3208
|
args = '';
|
|
3210
3209
|
}
|
|
3211
3210
|
const mutation = `{\n${props.gqlMutation} ${args} {\n${selectFields.join(`\n`)}\n}\n}`;
|
|
3212
|
-
console.log(mutation);
|
|
3213
3211
|
shApis.graphQlMutate(mutation).then(res=>handleSuccessRequest(res)).catch(reason=>handlefailedRequest(reason));
|
|
3214
3212
|
} else {
|
|
3215
3213
|
shApis.doPost(props.action,data).then(res=>handleSuccessRequest(res)).catch(reason=>handlefailedRequest(reason));
|
|
@@ -3228,7 +3226,6 @@ const handleSuccessRequest = res=>{
|
|
|
3228
3226
|
};
|
|
3229
3227
|
|
|
3230
3228
|
const handlefailedRequest = reason=>{
|
|
3231
|
-
console.log(reason);
|
|
3232
3229
|
loading.value = false;
|
|
3233
3230
|
const httpStatus = reason.response ? reason.response.status:0;
|
|
3234
3231
|
formError.value = httpStatus === 422 ? formError.value = null:reason.message ?? null;
|
|
@@ -3253,7 +3250,6 @@ const setExistingData = (existingData)=>{
|
|
|
3253
3250
|
// existingData[field.field] && (field.value = existingData[field.field])
|
|
3254
3251
|
});
|
|
3255
3252
|
formFields.value = null;
|
|
3256
|
-
console.log(newFields);
|
|
3257
3253
|
formFields.value = newFields;
|
|
3258
3254
|
}
|
|
3259
3255
|
};
|
|
@@ -4305,7 +4301,6 @@ script$c.__file = "src/lib/components/ShRange.vue";
|
|
|
4305
4301
|
var script$b = {
|
|
4306
4302
|
name: 'sh-table',
|
|
4307
4303
|
props: ['endPoint', 'headers', 'query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle', 'hasRange'],
|
|
4308
|
-
inject: ['channel'],
|
|
4309
4304
|
data() {
|
|
4310
4305
|
return {
|
|
4311
4306
|
order_by: '',
|
|
@@ -4338,7 +4333,6 @@ var script$b = {
|
|
|
4338
4333
|
if (this.headers) {
|
|
4339
4334
|
this.tableHeaders = this.headers;
|
|
4340
4335
|
}
|
|
4341
|
-
if (this.event) ;
|
|
4342
4336
|
if (this.actions && this.actions.actions) {
|
|
4343
4337
|
this.actions.actions.forEach(action => {
|
|
4344
4338
|
if (action.canvasComponent) {
|
|
@@ -4520,7 +4514,6 @@ var script$b = {
|
|
|
4520
4514
|
endPoint = 'sh-ql';
|
|
4521
4515
|
data.query = this.query;
|
|
4522
4516
|
}
|
|
4523
|
-
console.log(endPoint, this.range);
|
|
4524
4517
|
shApis.doGet(endPoint, data).then(req => {
|
|
4525
4518
|
this.$emit('dataReloaded', this.pagination_data);
|
|
4526
4519
|
this.loading = 'done';
|
package/dist/library.mjs
CHANGED
|
@@ -3174,7 +3174,6 @@ const submitBtn = ref(false);
|
|
|
3174
3174
|
const validationErrors = ref({});
|
|
3175
3175
|
const formError = ref(null);
|
|
3176
3176
|
const submitForm = e => {
|
|
3177
|
-
console.log(formFields.value);
|
|
3178
3177
|
submitBtnWidth.value = submitBtn.value.getBoundingClientRect().width + 'px !important';
|
|
3179
3178
|
validationErrors.value = {};
|
|
3180
3179
|
e.preventDefault();
|
|
@@ -3197,7 +3196,6 @@ const submitForm = e => {
|
|
|
3197
3196
|
args = '';
|
|
3198
3197
|
}
|
|
3199
3198
|
const mutation = `{\n${props.gqlMutation} ${args} {\n${selectFields.join(`\n`)}\n}\n}`;
|
|
3200
|
-
console.log(mutation);
|
|
3201
3199
|
shApis.graphQlMutate(mutation).then(res=>handleSuccessRequest(res)).catch(reason=>handlefailedRequest(reason));
|
|
3202
3200
|
} else {
|
|
3203
3201
|
shApis.doPost(props.action,data).then(res=>handleSuccessRequest(res)).catch(reason=>handlefailedRequest(reason));
|
|
@@ -3216,7 +3214,6 @@ const handleSuccessRequest = res=>{
|
|
|
3216
3214
|
};
|
|
3217
3215
|
|
|
3218
3216
|
const handlefailedRequest = reason=>{
|
|
3219
|
-
console.log(reason);
|
|
3220
3217
|
loading.value = false;
|
|
3221
3218
|
const httpStatus = reason.response ? reason.response.status:0;
|
|
3222
3219
|
formError.value = httpStatus === 422 ? formError.value = null:reason.message ?? null;
|
|
@@ -3241,7 +3238,6 @@ const setExistingData = (existingData)=>{
|
|
|
3241
3238
|
// existingData[field.field] && (field.value = existingData[field.field])
|
|
3242
3239
|
});
|
|
3243
3240
|
formFields.value = null;
|
|
3244
|
-
console.log(newFields);
|
|
3245
3241
|
formFields.value = newFields;
|
|
3246
3242
|
}
|
|
3247
3243
|
};
|
|
@@ -4293,7 +4289,6 @@ script$c.__file = "src/lib/components/ShRange.vue";
|
|
|
4293
4289
|
var script$b = {
|
|
4294
4290
|
name: 'sh-table',
|
|
4295
4291
|
props: ['endPoint', 'headers', 'query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle', 'hasRange'],
|
|
4296
|
-
inject: ['channel'],
|
|
4297
4292
|
data() {
|
|
4298
4293
|
return {
|
|
4299
4294
|
order_by: '',
|
|
@@ -4326,7 +4321,6 @@ var script$b = {
|
|
|
4326
4321
|
if (this.headers) {
|
|
4327
4322
|
this.tableHeaders = this.headers;
|
|
4328
4323
|
}
|
|
4329
|
-
if (this.event) ;
|
|
4330
4324
|
if (this.actions && this.actions.actions) {
|
|
4331
4325
|
this.actions.actions.forEach(action => {
|
|
4332
4326
|
if (action.canvasComponent) {
|
|
@@ -4508,7 +4502,6 @@ var script$b = {
|
|
|
4508
4502
|
endPoint = 'sh-ql';
|
|
4509
4503
|
data.query = this.query;
|
|
4510
4504
|
}
|
|
4511
|
-
console.log(endPoint, this.range);
|
|
4512
4505
|
shApis.doGet(endPoint, data).then(req => {
|
|
4513
4506
|
this.$emit('dataReloaded', this.pagination_data);
|
|
4514
4507
|
this.loading = 'done';
|