@iankibetsh/shframework 5.8.5 → 5.8.7
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/README.md +5 -2
- package/dist/dist/library.mjs.css +21 -16
- package/dist/library.js +378 -256
- package/dist/library.mjs +377 -255
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,8 +23,8 @@ A robust table component that handles server-side pagination, searching, and cus
|
|
|
23
23
|
- **Named Slots for Custom Formatting**: Use named slots for columns to provide custom formatting (e.g., `<template #age="{ row }">`).
|
|
24
24
|
- **Multi-Action Support**: Enable row selection and collective operations with a floating action bar.
|
|
25
25
|
- **Caching & Background Loading**: Uses IndexedDB to cache data. Shows cached data immediately while fetching fresh data in the background (enabled via `enableTableCache` config or `:cache="true"` prop).
|
|
26
|
-
- **
|
|
27
|
-
- **
|
|
26
|
+
- **User-Specific Caching**: Automatically prefixes cache keys with user identifiers (e.g., `id`, `email`) to ensure data isolation between users. Configure via `cacheUserFields`.
|
|
27
|
+
- **Metadata Tracking**: Tracks cache source URLs and timestamps in a dedicated `cache_metadata` store for better auditability.
|
|
28
28
|
- **Links & Actions**: Easily define column links and action buttons.
|
|
29
29
|
|
|
30
30
|
```html
|
|
@@ -67,6 +67,8 @@ The flagship component for generating complex forms from simple configurations.
|
|
|
67
67
|
- **Multi-Step Support**: Break long forms into logical steps with progress indicators.
|
|
68
68
|
- **Validation**: Seamlessly handles and displays Laravel validation errors (422).
|
|
69
69
|
- **GraphQL Support**: Integrate with GraphQL mutations via the `gqlMutation` prop.
|
|
70
|
+
- **Checkbox Support**: Easily handle boolean or multiple-choice fields with `type: 'checkbox'`.
|
|
71
|
+
- **Modern Reactivity**: Built using Vue 3.4's `defineModel` for clean, conflict-free two-way binding.
|
|
70
72
|
|
|
71
73
|
```html
|
|
72
74
|
<sh-auto-form
|
|
@@ -114,6 +116,7 @@ A collection of common UI and data utilities.
|
|
|
114
116
|
- `shRepo.runPlainRequest(url, message)`: Post request with a confirmation prompt.
|
|
115
117
|
- `shRepo.runSilentRequest(url)`: Direct post request without prompt.
|
|
116
118
|
- `shRepo.showToast(message, type)`: Displays a sweetalert2 toast.
|
|
119
|
+
- `shRepo.flushCache()`: Clears all IndexedDB cache data.
|
|
117
120
|
- `shRepo.swalSuccess(message)` / `shRepo.swalError(message)`: Standard success/error popups.
|
|
118
121
|
|
|
119
122
|
### shUser (State Management)
|
|
@@ -336,22 +336,6 @@
|
|
|
336
336
|
opacity: 0.5;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
.sh-selected-item{
|
|
340
|
-
line-height: unset!important;
|
|
341
|
-
}
|
|
342
|
-
.sh-suggestion-input{
|
|
343
|
-
padding: 0.375rem 0.75rem;
|
|
344
|
-
}
|
|
345
|
-
.sh-suggest{
|
|
346
|
-
margin-bottom: 1rem;
|
|
347
|
-
padding: 0rem 0rem;
|
|
348
|
-
}
|
|
349
|
-
.sh-suggest-control::after{
|
|
350
|
-
margin-top: auto;
|
|
351
|
-
margin-bottom: auto;
|
|
352
|
-
margin-right: 0.255em;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
339
|
.permissions-main {
|
|
356
340
|
background: #edeff2;
|
|
357
341
|
}
|
|
@@ -384,6 +368,22 @@
|
|
|
384
368
|
flex-grow: 1;
|
|
385
369
|
}
|
|
386
370
|
|
|
371
|
+
.sh-selected-item{
|
|
372
|
+
line-height: unset!important;
|
|
373
|
+
}
|
|
374
|
+
.sh-suggestion-input{
|
|
375
|
+
padding: 0.375rem 0.75rem;
|
|
376
|
+
}
|
|
377
|
+
.sh-suggest{
|
|
378
|
+
margin-bottom: 1rem;
|
|
379
|
+
padding: 0rem 0rem;
|
|
380
|
+
}
|
|
381
|
+
.sh-suggest-control::after{
|
|
382
|
+
margin-top: auto;
|
|
383
|
+
margin-bottom: auto;
|
|
384
|
+
margin-right: 0.255em;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
387
|
.callout{
|
|
388
388
|
--bs-link-color-rgb: 110,168,254;
|
|
389
389
|
--bs-code-color: #e685b5;
|
|
@@ -400,6 +400,11 @@
|
|
|
400
400
|
--bd-callout-border: var(--bs-info-border-subtle);
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
+
.sh-checkbox-group {
|
|
404
|
+
display: flex;
|
|
405
|
+
flex-wrap: wrap;
|
|
406
|
+
}
|
|
407
|
+
|
|
403
408
|
.sh-forgot-link, .sh-register-link{
|
|
404
409
|
cursor: pointer;
|
|
405
410
|
}
|