@iankibetsh/shframework 5.8.1 → 5.8.4
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 +3 -0
- package/dist/dist/library.mjs.css +35 -32
- package/dist/library.js +691 -420
- package/dist/library.mjs +692 -421
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,9 @@ A robust table component that handles server-side pagination, searching, and cus
|
|
|
22
22
|
- **Auto-Label Generation**: Automatically generates human-readable labels from keys if not explicitly provided (e.g., `user.first_name` becomes "First Name").
|
|
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
|
+
- **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
|
+
- **Row Links**: Easily define clickable rows with dynamic placeholders (e.g., `:row-link="'/users/{id}'"`).
|
|
27
|
+
- **Search Optimization**: Automatically clears stale data and shows a spinner when searching to ensure fresh results.
|
|
25
28
|
- **Links & Actions**: Easily define column links and action buttons.
|
|
26
29
|
|
|
27
30
|
```html
|
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
|
|
2
|
+
.sh-phone{
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
align-items: center;
|
|
6
|
+
padding: 0 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
.phone-country{
|
|
9
|
+
width: 2rem;
|
|
10
|
+
border: none;
|
|
11
|
+
align-self: center;
|
|
12
|
+
outline: none !important;
|
|
13
|
+
padding: 0.4rem;
|
|
14
|
+
border-right: 1px solid #0003;
|
|
15
|
+
}
|
|
16
|
+
.phone-number{
|
|
17
|
+
width: calc(100% - 2.2rem);
|
|
18
|
+
border: none;
|
|
19
|
+
align-self: center;
|
|
20
|
+
outline: none;
|
|
21
|
+
margin-bottom: 0;
|
|
22
|
+
padding: 0.4rem;
|
|
23
|
+
}
|
|
24
|
+
.sh-phone img{
|
|
25
|
+
padding: 0.125rem;
|
|
26
|
+
width: 2rem;
|
|
27
|
+
height: 2rem;
|
|
28
|
+
}
|
|
29
|
+
.phone-number::placeholder{
|
|
30
|
+
font-weight: 300;
|
|
31
|
+
opacity: 0.5;
|
|
32
|
+
}
|
|
33
|
+
|
|
2
34
|
/* Step Container */
|
|
3
35
|
.sh-form-steps-container {
|
|
4
36
|
margin-bottom: 2.5rem;
|
|
@@ -260,38 +292,6 @@
|
|
|
260
292
|
}
|
|
261
293
|
}
|
|
262
294
|
|
|
263
|
-
.sh-phone{
|
|
264
|
-
display: flex;
|
|
265
|
-
width: 100%;
|
|
266
|
-
align-items: center;
|
|
267
|
-
padding: 0 0.25rem;
|
|
268
|
-
}
|
|
269
|
-
.phone-country{
|
|
270
|
-
width: 2rem;
|
|
271
|
-
border: none;
|
|
272
|
-
align-self: center;
|
|
273
|
-
outline: none !important;
|
|
274
|
-
padding: 0.4rem;
|
|
275
|
-
border-right: 1px solid #0003;
|
|
276
|
-
}
|
|
277
|
-
.phone-number{
|
|
278
|
-
width: calc(100% - 2.2rem);
|
|
279
|
-
border: none;
|
|
280
|
-
align-self: center;
|
|
281
|
-
outline: none;
|
|
282
|
-
margin-bottom: 0;
|
|
283
|
-
padding: 0.4rem;
|
|
284
|
-
}
|
|
285
|
-
.sh-phone img{
|
|
286
|
-
padding: 0.125rem;
|
|
287
|
-
width: 2rem;
|
|
288
|
-
height: 2rem;
|
|
289
|
-
}
|
|
290
|
-
.phone-number::placeholder{
|
|
291
|
-
font-weight: 300;
|
|
292
|
-
opacity: 0.5;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
295
|
.colored-toast.swal2-icon-success {
|
|
296
296
|
background-color: #a5dc86 !important;
|
|
297
297
|
}
|
|
@@ -332,6 +332,9 @@
|
|
|
332
332
|
z-index: 1050;
|
|
333
333
|
min-width: 300px;
|
|
334
334
|
}
|
|
335
|
+
.cursor-pointer {
|
|
336
|
+
cursor: pointer;
|
|
337
|
+
}
|
|
335
338
|
|
|
336
339
|
.permissions-main {
|
|
337
340
|
background: #edeff2;
|