@iankibetsh/shframework 4.5.8 → 4.6.0
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 +16 -16
- package/dist/library.js +16 -3
- package/dist/library.mjs +16 -3
- package/package.json +1 -1
|
@@ -63,22 +63,6 @@
|
|
|
63
63
|
color: white;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.sh-selected-item{
|
|
67
|
-
line-height: unset!important;
|
|
68
|
-
}
|
|
69
|
-
.sh-suggestion-input{
|
|
70
|
-
padding: 0.375rem 0.75rem;
|
|
71
|
-
}
|
|
72
|
-
.sh-suggest{
|
|
73
|
-
margin-bottom: 1rem;
|
|
74
|
-
padding: 0rem 0rem;
|
|
75
|
-
}
|
|
76
|
-
.sh-suggest-control::after{
|
|
77
|
-
margin-top: auto;
|
|
78
|
-
margin-bottom: auto;
|
|
79
|
-
margin-right: 0.255em;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
66
|
.permissions-main {
|
|
83
67
|
background: #edeff2;
|
|
84
68
|
}
|
|
@@ -111,6 +95,22 @@
|
|
|
111
95
|
flex-grow: 1;
|
|
112
96
|
}
|
|
113
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
|
+
padding: 0rem 0rem;
|
|
107
|
+
}
|
|
108
|
+
.sh-suggest-control::after{
|
|
109
|
+
margin-top: auto;
|
|
110
|
+
margin-bottom: auto;
|
|
111
|
+
margin-right: 0.255em;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
114
|
.callout{
|
|
115
115
|
--bs-link-color-rgb: 110,168,254;
|
|
116
116
|
--bs-code-color: #e685b5;
|
package/dist/library.js
CHANGED
|
@@ -268,6 +268,16 @@ const hideModal = modalId => {
|
|
|
268
268
|
modal.hide();
|
|
269
269
|
};
|
|
270
270
|
|
|
271
|
+
const showOffCanvas = offCanvasId => {
|
|
272
|
+
const offCanvas = new bootstrap.Offcanvas(document.getElementById(offCanvasId));
|
|
273
|
+
offCanvas.show();
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
const hideOffCanvas = offCanvasId => {
|
|
277
|
+
const offCanvas = new bootstrap.Offcanvas(document.getElementById(offCanvasId));
|
|
278
|
+
offCanvas.hide();
|
|
279
|
+
};
|
|
280
|
+
|
|
271
281
|
var shRepo = {
|
|
272
282
|
swalSuccess,
|
|
273
283
|
swalError,
|
|
@@ -284,7 +294,9 @@ var shRepo = {
|
|
|
284
294
|
formatNumber,
|
|
285
295
|
signOutUser,
|
|
286
296
|
showModal,
|
|
287
|
-
hideModal
|
|
297
|
+
hideModal,
|
|
298
|
+
showOffCanvas,
|
|
299
|
+
hideOffCanvas
|
|
288
300
|
};
|
|
289
301
|
|
|
290
302
|
startSession();
|
|
@@ -5214,6 +5226,7 @@ const noRecordsComponent = vue.inject('noRecordsComponent', script$i);
|
|
|
5214
5226
|
|
|
5215
5227
|
const {user} = pinia.storeToRefs(useUserStore());
|
|
5216
5228
|
|
|
5229
|
+
|
|
5217
5230
|
return (_ctx, _cache) => {
|
|
5218
5231
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
5219
5232
|
|
|
@@ -7245,7 +7258,7 @@ const useShFetch = (url, path, cacheKey) => {
|
|
|
7245
7258
|
* Fetches data from the given URL and updates the status, loading state, error, and data refs.
|
|
7246
7259
|
* If a cacheKey is provided and there is cached data for that key, the cached data is used instead of fetching.
|
|
7247
7260
|
*/
|
|
7248
|
-
const reFetchData = () => {
|
|
7261
|
+
const reFetchData = (dataUrl) => {
|
|
7249
7262
|
loading.value = true;
|
|
7250
7263
|
status.value = 'loading';
|
|
7251
7264
|
if (cacheKey && shStorage.getItem(cacheKey)) {
|
|
@@ -7253,7 +7266,7 @@ const useShFetch = (url, path, cacheKey) => {
|
|
|
7253
7266
|
status.value = 'success';
|
|
7254
7267
|
loading.value = false;
|
|
7255
7268
|
} else {
|
|
7256
|
-
shApis.doGet(url).then(response => {
|
|
7269
|
+
shApis.doGet(dataUrl ?? url).then(response => {
|
|
7257
7270
|
status.value = 'success';
|
|
7258
7271
|
let res = response.data;
|
|
7259
7272
|
if (path) {
|
package/dist/library.mjs
CHANGED
|
@@ -256,6 +256,16 @@ const hideModal = modalId => {
|
|
|
256
256
|
modal.hide();
|
|
257
257
|
};
|
|
258
258
|
|
|
259
|
+
const showOffCanvas = offCanvasId => {
|
|
260
|
+
const offCanvas = new Offcanvas(document.getElementById(offCanvasId));
|
|
261
|
+
offCanvas.show();
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
const hideOffCanvas = offCanvasId => {
|
|
265
|
+
const offCanvas = new Offcanvas(document.getElementById(offCanvasId));
|
|
266
|
+
offCanvas.hide();
|
|
267
|
+
};
|
|
268
|
+
|
|
259
269
|
var shRepo = {
|
|
260
270
|
swalSuccess,
|
|
261
271
|
swalError,
|
|
@@ -272,7 +282,9 @@ var shRepo = {
|
|
|
272
282
|
formatNumber,
|
|
273
283
|
signOutUser,
|
|
274
284
|
showModal,
|
|
275
|
-
hideModal
|
|
285
|
+
hideModal,
|
|
286
|
+
showOffCanvas,
|
|
287
|
+
hideOffCanvas
|
|
276
288
|
};
|
|
277
289
|
|
|
278
290
|
startSession();
|
|
@@ -5202,6 +5214,7 @@ const noRecordsComponent = inject('noRecordsComponent', script$i);
|
|
|
5202
5214
|
|
|
5203
5215
|
const {user} = storeToRefs(useUserStore());
|
|
5204
5216
|
|
|
5217
|
+
|
|
5205
5218
|
return (_ctx, _cache) => {
|
|
5206
5219
|
const _component_router_link = resolveComponent("router-link");
|
|
5207
5220
|
|
|
@@ -7233,7 +7246,7 @@ const useShFetch = (url, path, cacheKey) => {
|
|
|
7233
7246
|
* Fetches data from the given URL and updates the status, loading state, error, and data refs.
|
|
7234
7247
|
* If a cacheKey is provided and there is cached data for that key, the cached data is used instead of fetching.
|
|
7235
7248
|
*/
|
|
7236
|
-
const reFetchData = () => {
|
|
7249
|
+
const reFetchData = (dataUrl) => {
|
|
7237
7250
|
loading.value = true;
|
|
7238
7251
|
status.value = 'loading';
|
|
7239
7252
|
if (cacheKey && shStorage.getItem(cacheKey)) {
|
|
@@ -7241,7 +7254,7 @@ const useShFetch = (url, path, cacheKey) => {
|
|
|
7241
7254
|
status.value = 'success';
|
|
7242
7255
|
loading.value = false;
|
|
7243
7256
|
} else {
|
|
7244
|
-
shApis.doGet(url).then(response => {
|
|
7257
|
+
shApis.doGet(dataUrl ?? url).then(response => {
|
|
7245
7258
|
status.value = 'success';
|
|
7246
7259
|
let res = response.data;
|
|
7247
7260
|
if (path) {
|