@iankibetsh/shframework 1.5.7 → 1.5.9
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 +15 -15
- package/dist/library.js +11 -9
- package/dist/library.mjs +11 -9
- package/package.json +1 -1
|
@@ -95,21 +95,6 @@
|
|
|
95
95
|
flex-grow: 1;
|
|
96
96
|
}
|
|
97
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
98
|
:root {
|
|
114
99
|
--ck-z-default: 10555 !important;
|
|
115
100
|
--ck-z-modal: calc(var(--ck-z-default) + 999) !important;
|
|
@@ -131,6 +116,21 @@
|
|
|
131
116
|
}
|
|
132
117
|
}
|
|
133
118
|
|
|
119
|
+
.sh-selected-item{
|
|
120
|
+
line-height: unset!important;
|
|
121
|
+
}
|
|
122
|
+
.sh-suggestion-input{
|
|
123
|
+
padding: 0.375rem 0.75rem;
|
|
124
|
+
}
|
|
125
|
+
.sh-suggest{
|
|
126
|
+
margin-bottom: 1rem;
|
|
127
|
+
}
|
|
128
|
+
.sh-suggest-control::after{
|
|
129
|
+
margin-top: auto;
|
|
130
|
+
margin-bottom: auto;
|
|
131
|
+
margin-right: 0.255em;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
134
|
.sh-forgot-link, .sh-register-link{
|
|
135
135
|
cursor: pointer;
|
|
136
136
|
}
|
package/dist/library.js
CHANGED
|
@@ -2238,6 +2238,7 @@ var script$l = {
|
|
|
2238
2238
|
'hasTerms',
|
|
2239
2239
|
'country_code',
|
|
2240
2240
|
'submitBtnClass',
|
|
2241
|
+
'retainModal',
|
|
2241
2242
|
'fields',
|
|
2242
2243
|
'columns', 'placeholders', 'field_permissions', 'retainDataAfterSubmission',
|
|
2243
2244
|
'currentData', 'actionLabel', 'fillSelects', 'phones', 'successCallback',
|
|
@@ -2443,7 +2444,7 @@ var script$l = {
|
|
|
2443
2444
|
}
|
|
2444
2445
|
}
|
|
2445
2446
|
NProgress__default["default"].done();
|
|
2446
|
-
if (!this.
|
|
2447
|
+
if (!this.retainModal) {
|
|
2447
2448
|
this.closeModal();
|
|
2448
2449
|
}
|
|
2449
2450
|
}).catch((reason, data) => {
|
|
@@ -3567,7 +3568,7 @@ script$a.__file = "src/lib/components/ShCanvas.vue";
|
|
|
3567
3568
|
|
|
3568
3569
|
var script$9 = {
|
|
3569
3570
|
name: 'Pagination',
|
|
3570
|
-
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore'],
|
|
3571
|
+
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3571
3572
|
data () {
|
|
3572
3573
|
return {
|
|
3573
3574
|
current_page: this.pagination_data.current,
|
|
@@ -3681,7 +3682,7 @@ const _hoisted_22$1 = {
|
|
|
3681
3682
|
};
|
|
3682
3683
|
|
|
3683
3684
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3684
|
-
return (
|
|
3685
|
+
return ($props.paginationStyle !== 'loadMore')
|
|
3685
3686
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
3686
3687
|
vue.createElementVNode("div", _hoisted_2$6, [
|
|
3687
3688
|
_hoisted_3$6,
|
|
@@ -3950,13 +3951,13 @@ script$7.__file = "src/lib/components/ShSilentAction.vue";
|
|
|
3950
3951
|
|
|
3951
3952
|
var script$6 = {
|
|
3952
3953
|
name: 'sh-table',
|
|
3953
|
-
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds'],
|
|
3954
|
+
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
3954
3955
|
inject: ['channel'],
|
|
3955
3956
|
data () {
|
|
3956
3957
|
return {
|
|
3957
3958
|
order_by: '',
|
|
3958
3959
|
order_method: '',
|
|
3959
|
-
per_page:
|
|
3960
|
+
per_page: shRepo.getShConfig('tablePerPage',10),
|
|
3960
3961
|
page: 1,
|
|
3961
3962
|
filter_value: '',
|
|
3962
3963
|
loading: 'loading',
|
|
@@ -3970,7 +3971,8 @@ var script$6 = {
|
|
|
3970
3971
|
appUrl: window.VITE_APP_API_URL,
|
|
3971
3972
|
hasCanvas: 0,
|
|
3972
3973
|
selectedRecord: null,
|
|
3973
|
-
timeOut: null
|
|
3974
|
+
timeOut: null,
|
|
3975
|
+
pageStyle: this.paginationStyle ?? shRepo.getShConfig('tablePaginationStyle','loadMore')
|
|
3974
3976
|
}
|
|
3975
3977
|
},
|
|
3976
3978
|
mounted () {
|
|
@@ -4796,8 +4798,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4796
4798
|
"hide-count": $props.hideCount,
|
|
4797
4799
|
pagination_data: $data.pagination_data,
|
|
4798
4800
|
onChangeKey: $options.changeKey,
|
|
4799
|
-
"
|
|
4800
|
-
}, null, 8 /* PROPS */, ["onLoadMoreRecords", "hide-load-more", "hide-count", "pagination_data", "onChangeKey"]))
|
|
4801
|
+
"pagination-style": $data.pageStyle
|
|
4802
|
+
}, null, 8 /* PROPS */, ["onLoadMoreRecords", "hide-load-more", "hide-count", "pagination_data", "onChangeKey", "pagination-style"]))
|
|
4801
4803
|
: vue.createCommentVNode("v-if", true),
|
|
4802
4804
|
($props.actions)
|
|
4803
4805
|
? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 7 }, vue.renderList($props.actions.actions, (action) => {
|
|
@@ -5815,7 +5817,7 @@ const ShFrontend = {
|
|
|
5815
5817
|
//filter unwanted config items from options to be put in local storage
|
|
5816
5818
|
const removeKeys = ['formTextInput','router','shFormElementClasses'];
|
|
5817
5819
|
const allowKeys = [];
|
|
5818
|
-
Object.keys(options).map(key=> ((typeof options[key]
|
|
5820
|
+
Object.keys(options).map(key=> ((!['string','integer','number'].includes(typeof options[key]) && !allowKeys.includes(key)) || removeKeys.includes(key)) && delete options[key]);
|
|
5819
5821
|
|
|
5820
5822
|
ShStorage.setItem('ShConfig',options);
|
|
5821
5823
|
}
|
package/dist/library.mjs
CHANGED
|
@@ -2225,6 +2225,7 @@ var script$l = {
|
|
|
2225
2225
|
'hasTerms',
|
|
2226
2226
|
'country_code',
|
|
2227
2227
|
'submitBtnClass',
|
|
2228
|
+
'retainModal',
|
|
2228
2229
|
'fields',
|
|
2229
2230
|
'columns', 'placeholders', 'field_permissions', 'retainDataAfterSubmission',
|
|
2230
2231
|
'currentData', 'actionLabel', 'fillSelects', 'phones', 'successCallback',
|
|
@@ -2430,7 +2431,7 @@ var script$l = {
|
|
|
2430
2431
|
}
|
|
2431
2432
|
}
|
|
2432
2433
|
NProgress.done();
|
|
2433
|
-
if (!this.
|
|
2434
|
+
if (!this.retainModal) {
|
|
2434
2435
|
this.closeModal();
|
|
2435
2436
|
}
|
|
2436
2437
|
}).catch((reason, data) => {
|
|
@@ -3554,7 +3555,7 @@ script$a.__file = "src/lib/components/ShCanvas.vue";
|
|
|
3554
3555
|
|
|
3555
3556
|
var script$9 = {
|
|
3556
3557
|
name: 'Pagination',
|
|
3557
|
-
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore'],
|
|
3558
|
+
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3558
3559
|
data () {
|
|
3559
3560
|
return {
|
|
3560
3561
|
current_page: this.pagination_data.current,
|
|
@@ -3668,7 +3669,7 @@ const _hoisted_22$1 = {
|
|
|
3668
3669
|
};
|
|
3669
3670
|
|
|
3670
3671
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3671
|
-
return (
|
|
3672
|
+
return ($props.paginationStyle !== 'loadMore')
|
|
3672
3673
|
? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
3673
3674
|
createElementVNode("div", _hoisted_2$6, [
|
|
3674
3675
|
_hoisted_3$6,
|
|
@@ -3937,13 +3938,13 @@ script$7.__file = "src/lib/components/ShSilentAction.vue";
|
|
|
3937
3938
|
|
|
3938
3939
|
var script$6 = {
|
|
3939
3940
|
name: 'sh-table',
|
|
3940
|
-
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds'],
|
|
3941
|
+
props: ['endPoint', 'headers', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
3941
3942
|
inject: ['channel'],
|
|
3942
3943
|
data () {
|
|
3943
3944
|
return {
|
|
3944
3945
|
order_by: '',
|
|
3945
3946
|
order_method: '',
|
|
3946
|
-
per_page:
|
|
3947
|
+
per_page: shRepo.getShConfig('tablePerPage',10),
|
|
3947
3948
|
page: 1,
|
|
3948
3949
|
filter_value: '',
|
|
3949
3950
|
loading: 'loading',
|
|
@@ -3957,7 +3958,8 @@ var script$6 = {
|
|
|
3957
3958
|
appUrl: window.VITE_APP_API_URL,
|
|
3958
3959
|
hasCanvas: 0,
|
|
3959
3960
|
selectedRecord: null,
|
|
3960
|
-
timeOut: null
|
|
3961
|
+
timeOut: null,
|
|
3962
|
+
pageStyle: this.paginationStyle ?? shRepo.getShConfig('tablePaginationStyle','loadMore')
|
|
3961
3963
|
}
|
|
3962
3964
|
},
|
|
3963
3965
|
mounted () {
|
|
@@ -4783,8 +4785,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4783
4785
|
"hide-count": $props.hideCount,
|
|
4784
4786
|
pagination_data: $data.pagination_data,
|
|
4785
4787
|
onChangeKey: $options.changeKey,
|
|
4786
|
-
"
|
|
4787
|
-
}, null, 8 /* PROPS */, ["onLoadMoreRecords", "hide-load-more", "hide-count", "pagination_data", "onChangeKey"]))
|
|
4788
|
+
"pagination-style": $data.pageStyle
|
|
4789
|
+
}, null, 8 /* PROPS */, ["onLoadMoreRecords", "hide-load-more", "hide-count", "pagination_data", "onChangeKey", "pagination-style"]))
|
|
4788
4790
|
: createCommentVNode("v-if", true),
|
|
4789
4791
|
($props.actions)
|
|
4790
4792
|
? (openBlock(true), createElementBlock(Fragment, { key: 7 }, renderList($props.actions.actions, (action) => {
|
|
@@ -5802,7 +5804,7 @@ const ShFrontend = {
|
|
|
5802
5804
|
//filter unwanted config items from options to be put in local storage
|
|
5803
5805
|
const removeKeys = ['formTextInput','router','shFormElementClasses'];
|
|
5804
5806
|
const allowKeys = [];
|
|
5805
|
-
Object.keys(options).map(key=> ((typeof options[key]
|
|
5807
|
+
Object.keys(options).map(key=> ((!['string','integer','number'].includes(typeof options[key]) && !allowKeys.includes(key)) || removeKeys.includes(key)) && delete options[key]);
|
|
5806
5808
|
|
|
5807
5809
|
ShStorage.setItem('ShConfig',options);
|
|
5808
5810
|
}
|