@iankibetsh/shframework 1.5.8 → 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 +9 -8
- package/dist/library.mjs +9 -8
- 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
|
@@ -3568,7 +3568,7 @@ script$a.__file = "src/lib/components/ShCanvas.vue";
|
|
|
3568
3568
|
|
|
3569
3569
|
var script$9 = {
|
|
3570
3570
|
name: 'Pagination',
|
|
3571
|
-
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore'],
|
|
3571
|
+
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3572
3572
|
data () {
|
|
3573
3573
|
return {
|
|
3574
3574
|
current_page: this.pagination_data.current,
|
|
@@ -3682,7 +3682,7 @@ const _hoisted_22$1 = {
|
|
|
3682
3682
|
};
|
|
3683
3683
|
|
|
3684
3684
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3685
|
-
return (
|
|
3685
|
+
return ($props.paginationStyle !== 'loadMore')
|
|
3686
3686
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
3687
3687
|
vue.createElementVNode("div", _hoisted_2$6, [
|
|
3688
3688
|
_hoisted_3$6,
|
|
@@ -3951,13 +3951,13 @@ script$7.__file = "src/lib/components/ShSilentAction.vue";
|
|
|
3951
3951
|
|
|
3952
3952
|
var script$6 = {
|
|
3953
3953
|
name: 'sh-table',
|
|
3954
|
-
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'],
|
|
3955
3955
|
inject: ['channel'],
|
|
3956
3956
|
data () {
|
|
3957
3957
|
return {
|
|
3958
3958
|
order_by: '',
|
|
3959
3959
|
order_method: '',
|
|
3960
|
-
per_page:
|
|
3960
|
+
per_page: shRepo.getShConfig('tablePerPage',10),
|
|
3961
3961
|
page: 1,
|
|
3962
3962
|
filter_value: '',
|
|
3963
3963
|
loading: 'loading',
|
|
@@ -3971,7 +3971,8 @@ var script$6 = {
|
|
|
3971
3971
|
appUrl: window.VITE_APP_API_URL,
|
|
3972
3972
|
hasCanvas: 0,
|
|
3973
3973
|
selectedRecord: null,
|
|
3974
|
-
timeOut: null
|
|
3974
|
+
timeOut: null,
|
|
3975
|
+
pageStyle: this.paginationStyle ?? shRepo.getShConfig('tablePaginationStyle','loadMore')
|
|
3975
3976
|
}
|
|
3976
3977
|
},
|
|
3977
3978
|
mounted () {
|
|
@@ -4797,8 +4798,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4797
4798
|
"hide-count": $props.hideCount,
|
|
4798
4799
|
pagination_data: $data.pagination_data,
|
|
4799
4800
|
onChangeKey: $options.changeKey,
|
|
4800
|
-
"
|
|
4801
|
-
}, 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"]))
|
|
4802
4803
|
: vue.createCommentVNode("v-if", true),
|
|
4803
4804
|
($props.actions)
|
|
4804
4805
|
? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 7 }, vue.renderList($props.actions.actions, (action) => {
|
|
@@ -5816,7 +5817,7 @@ const ShFrontend = {
|
|
|
5816
5817
|
//filter unwanted config items from options to be put in local storage
|
|
5817
5818
|
const removeKeys = ['formTextInput','router','shFormElementClasses'];
|
|
5818
5819
|
const allowKeys = [];
|
|
5819
|
-
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]);
|
|
5820
5821
|
|
|
5821
5822
|
ShStorage.setItem('ShConfig',options);
|
|
5822
5823
|
}
|
package/dist/library.mjs
CHANGED
|
@@ -3555,7 +3555,7 @@ script$a.__file = "src/lib/components/ShCanvas.vue";
|
|
|
3555
3555
|
|
|
3556
3556
|
var script$9 = {
|
|
3557
3557
|
name: 'Pagination',
|
|
3558
|
-
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore'],
|
|
3558
|
+
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3559
3559
|
data () {
|
|
3560
3560
|
return {
|
|
3561
3561
|
current_page: this.pagination_data.current,
|
|
@@ -3669,7 +3669,7 @@ const _hoisted_22$1 = {
|
|
|
3669
3669
|
};
|
|
3670
3670
|
|
|
3671
3671
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3672
|
-
return (
|
|
3672
|
+
return ($props.paginationStyle !== 'loadMore')
|
|
3673
3673
|
? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
3674
3674
|
createElementVNode("div", _hoisted_2$6, [
|
|
3675
3675
|
_hoisted_3$6,
|
|
@@ -3938,13 +3938,13 @@ script$7.__file = "src/lib/components/ShSilentAction.vue";
|
|
|
3938
3938
|
|
|
3939
3939
|
var script$6 = {
|
|
3940
3940
|
name: 'sh-table',
|
|
3941
|
-
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'],
|
|
3942
3942
|
inject: ['channel'],
|
|
3943
3943
|
data () {
|
|
3944
3944
|
return {
|
|
3945
3945
|
order_by: '',
|
|
3946
3946
|
order_method: '',
|
|
3947
|
-
per_page:
|
|
3947
|
+
per_page: shRepo.getShConfig('tablePerPage',10),
|
|
3948
3948
|
page: 1,
|
|
3949
3949
|
filter_value: '',
|
|
3950
3950
|
loading: 'loading',
|
|
@@ -3958,7 +3958,8 @@ var script$6 = {
|
|
|
3958
3958
|
appUrl: window.VITE_APP_API_URL,
|
|
3959
3959
|
hasCanvas: 0,
|
|
3960
3960
|
selectedRecord: null,
|
|
3961
|
-
timeOut: null
|
|
3961
|
+
timeOut: null,
|
|
3962
|
+
pageStyle: this.paginationStyle ?? shRepo.getShConfig('tablePaginationStyle','loadMore')
|
|
3962
3963
|
}
|
|
3963
3964
|
},
|
|
3964
3965
|
mounted () {
|
|
@@ -4784,8 +4785,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4784
4785
|
"hide-count": $props.hideCount,
|
|
4785
4786
|
pagination_data: $data.pagination_data,
|
|
4786
4787
|
onChangeKey: $options.changeKey,
|
|
4787
|
-
"
|
|
4788
|
-
}, 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"]))
|
|
4789
4790
|
: createCommentVNode("v-if", true),
|
|
4790
4791
|
($props.actions)
|
|
4791
4792
|
? (openBlock(true), createElementBlock(Fragment, { key: 7 }, renderList($props.actions.actions, (action) => {
|
|
@@ -5803,7 +5804,7 @@ const ShFrontend = {
|
|
|
5803
5804
|
//filter unwanted config items from options to be put in local storage
|
|
5804
5805
|
const removeKeys = ['formTextInput','router','shFormElementClasses'];
|
|
5805
5806
|
const allowKeys = [];
|
|
5806
|
-
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]);
|
|
5807
5808
|
|
|
5808
5809
|
ShStorage.setItem('ShConfig',options);
|
|
5809
5810
|
}
|