@wishbone-media/spark 0.14.0 → 0.15.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/index.css +1 -0
- package/dist/index.js +1735 -2669
- package/formkit.theme.mjs +53 -53
- package/package.json +8 -1
- package/src/assets/css/spark-table.css +69 -0
- package/src/components/SparkButton.vue +1 -1
- package/src/components/SparkTable.vue +368 -0
- package/src/components/SparkTablePaginationDetails.vue +26 -0
- package/src/components/SparkTablePaginationPaging.vue +102 -0
- package/src/components/SparkTablePaginationPerPage.vue +47 -0
- package/src/components/SparkTableToolbar.vue +33 -0
- package/src/components/index.js +7 -0
- package/src/components/plugins/SparkTableDatePicker.vue +122 -0
- package/src/components/plugins/SparkTableFilterButtons.vue +123 -0
- package/src/components/plugins/SparkTableFilterSelect.vue +116 -0
- package/src/components/plugins/SparkTableReset.vue +123 -0
- package/src/components/plugins/SparkTableSearch.vue +107 -0
- package/src/components/plugins/index.js +5 -0
- package/src/containers/SparkDefaultContainer.vue +6 -1
- package/src/index.js +1 -0
- package/src/plugins/fontawesome.js +6 -0
- package/src/utils/index.js +4 -0
- package/src/utils/sparkTable/header-title.js +10 -0
- package/src/utils/sparkTable/header.js +137 -0
- package/src/utils/sparkTable/plugin-manager.js +67 -0
- package/src/utils/sparkTable/renderers/actions.js +125 -0
- package/src/utils/sparkTable/renderers/badge.js +66 -0
- package/src/utils/sparkTable/renderers/date.js +102 -0
- package/src/utils/sparkTable/renderers/image.js +61 -0
- package/src/utils/sparkTable/renderers/index.js +82 -0
- package/src/utils/sparkTable/renderers/link.js +69 -0
- package/src/utils/sparkTable/update-row.js +5 -0
package/formkit.theme.mjs
CHANGED
|
@@ -56,7 +56,7 @@ const classes = {
|
|
|
56
56
|
'selection:text-slate-700': true,
|
|
57
57
|
'group-data-has-overlay:selection:text-transparent!': true,
|
|
58
58
|
'font-bold': true,
|
|
59
|
-
rounded: true,
|
|
59
|
+
"rounded-md": true,
|
|
60
60
|
'outline-none': true,
|
|
61
61
|
flex: true,
|
|
62
62
|
'text-xs!': true,
|
|
@@ -211,7 +211,7 @@ const classes = {
|
|
|
211
211
|
'w-full': true,
|
|
212
212
|
'py-2.5': true,
|
|
213
213
|
'px-3.5': true,
|
|
214
|
-
rounded: true,
|
|
214
|
+
"rounded-md": true,
|
|
215
215
|
border: true,
|
|
216
216
|
'border-slate-300': true,
|
|
217
217
|
'bg-white': true,
|
|
@@ -241,7 +241,7 @@ const classes = {
|
|
|
241
241
|
'text-sm': true,
|
|
242
242
|
'text-slate-700': true,
|
|
243
243
|
'min-w-0': true,
|
|
244
|
-
'min-h-[
|
|
244
|
+
'min-h-[20px]': true,
|
|
245
245
|
grow: true,
|
|
246
246
|
'outline-none': true,
|
|
247
247
|
'bg-transparent': true,
|
|
@@ -290,7 +290,7 @@ const classes = {
|
|
|
290
290
|
'bg-white': true,
|
|
291
291
|
border: true,
|
|
292
292
|
'border-slate-300': true,
|
|
293
|
-
rounded: true,
|
|
293
|
+
"rounded-md": true,
|
|
294
294
|
'group-data-is-multiline:rounded!': true,
|
|
295
295
|
'focus-within:ring-1': true,
|
|
296
296
|
'focus-within:ring-primary-500!': true,
|
|
@@ -411,7 +411,7 @@ const classes = {
|
|
|
411
411
|
'dark:text-slate-300': true,
|
|
412
412
|
},
|
|
413
413
|
'family:dropdown__dropdownWrapper': {
|
|
414
|
-
rounded: true,
|
|
414
|
+
"rounded-md": true,
|
|
415
415
|
'shadow-md': true,
|
|
416
416
|
'mt-1.5': true,
|
|
417
417
|
'overflow-clip': true,
|
|
@@ -445,7 +445,7 @@ const classes = {
|
|
|
445
445
|
},
|
|
446
446
|
'family:dropdown__listbox': {
|
|
447
447
|
'bg-white': true,
|
|
448
|
-
rounded: true,
|
|
448
|
+
"rounded-md": true,
|
|
449
449
|
'empty:hidden': true,
|
|
450
450
|
'dark:bg-slate-800': true,
|
|
451
451
|
'group-data-overscroll:shadow-md': true,
|
|
@@ -528,7 +528,7 @@ const classes = {
|
|
|
528
528
|
},
|
|
529
529
|
'family:dropdown__tagWrapper': {
|
|
530
530
|
'group/tag': true,
|
|
531
|
-
rounded: true,
|
|
531
|
+
"rounded-md": true,
|
|
532
532
|
'mr-1.5': true,
|
|
533
533
|
'mb-1.5': true,
|
|
534
534
|
'outline-none': true,
|
|
@@ -547,7 +547,7 @@ const classes = {
|
|
|
547
547
|
flex: true,
|
|
548
548
|
'items-center': true,
|
|
549
549
|
'cursor-default': true,
|
|
550
|
-
rounded: true,
|
|
550
|
+
"rounded-md": true,
|
|
551
551
|
'text-xs': true,
|
|
552
552
|
'px-2': true,
|
|
553
553
|
'py-1': true,
|
|
@@ -589,7 +589,7 @@ const classes = {
|
|
|
589
589
|
'dark:hover:bg-primary-50/5': true,
|
|
590
590
|
},
|
|
591
591
|
checkbox__decorator: {
|
|
592
|
-
rounded: true,
|
|
592
|
+
"rounded-md": true,
|
|
593
593
|
},
|
|
594
594
|
checkbox__decoratorIcon: {
|
|
595
595
|
'max-w-[66.66%]': true,
|
|
@@ -615,7 +615,7 @@ const classes = {
|
|
|
615
615
|
'w-14!': true,
|
|
616
616
|
'bg-transparent': true,
|
|
617
617
|
'cursor-pointer': true,
|
|
618
|
-
rounded: true,
|
|
618
|
+
"rounded-md": true,
|
|
619
619
|
'overflow-clip': true,
|
|
620
620
|
'[&::-webkit-color-swatch-wrapper]:p-0': true,
|
|
621
621
|
'[&::-webkit-color-swatch]:border-none': true,
|
|
@@ -707,7 +707,7 @@ const classes = {
|
|
|
707
707
|
file__fileRemove: {
|
|
708
708
|
'right-2.5': true,
|
|
709
709
|
'ring-primary-500': true,
|
|
710
|
-
rounded: true,
|
|
710
|
+
"rounded-md": true,
|
|
711
711
|
'z-20': true,
|
|
712
712
|
flex: true,
|
|
713
713
|
'appearance-none': true,
|
|
@@ -780,7 +780,7 @@ const classes = {
|
|
|
780
780
|
border: true,
|
|
781
781
|
'border-slate-300': true,
|
|
782
782
|
'bg-white': true,
|
|
783
|
-
rounded: true,
|
|
783
|
+
"rounded-md": true,
|
|
784
784
|
'py-2.5': true,
|
|
785
785
|
'px-3.5': true,
|
|
786
786
|
'shadow-sm': false,
|
|
@@ -892,7 +892,7 @@ const classes = {
|
|
|
892
892
|
'bg-white': true,
|
|
893
893
|
border: true,
|
|
894
894
|
'border-slate-300': true,
|
|
895
|
-
rounded: true,
|
|
895
|
+
"rounded-md": true,
|
|
896
896
|
'focus-within:ring-1': true,
|
|
897
897
|
'focus-within:ring-primary-500!': true,
|
|
898
898
|
'focus-within:border-primary-500!': true,
|
|
@@ -1079,7 +1079,7 @@ const classes = {
|
|
|
1079
1079
|
'bg-white': true,
|
|
1080
1080
|
border: true,
|
|
1081
1081
|
'border-slate-300': true,
|
|
1082
|
-
rounded: true,
|
|
1082
|
+
"rounded-md": true,
|
|
1083
1083
|
'focus-within:ring-1': true,
|
|
1084
1084
|
'focus-within:ring-primary-500!': true,
|
|
1085
1085
|
'focus-within:border-primary-500!': true,
|
|
@@ -1183,7 +1183,7 @@ const classes = {
|
|
|
1183
1183
|
},
|
|
1184
1184
|
autocomplete__selectionWrapper: {
|
|
1185
1185
|
'bg-slate-100': true,
|
|
1186
|
-
rounded: true,
|
|
1186
|
+
"rounded-md": true,
|
|
1187
1187
|
'group-data-multiple:border': true,
|
|
1188
1188
|
'group-data-multiple:border-slate-200': true,
|
|
1189
1189
|
'group-data-multiple:mb-2': true,
|
|
@@ -1198,7 +1198,7 @@ const classes = {
|
|
|
1198
1198
|
'[&.formkit-longTouch]:opacity-25': true,
|
|
1199
1199
|
},
|
|
1200
1200
|
autocomplete__selection: {
|
|
1201
|
-
rounded: true,
|
|
1201
|
+
"rounded-md": true,
|
|
1202
1202
|
just: true,
|
|
1203
1203
|
'pl-2.5': true,
|
|
1204
1204
|
'*:ml-0': true,
|
|
@@ -1243,7 +1243,7 @@ const classes = {
|
|
|
1243
1243
|
flex: true,
|
|
1244
1244
|
'justify-start': true,
|
|
1245
1245
|
'items-center': true,
|
|
1246
|
-
rounded: true,
|
|
1246
|
+
"rounded-md": true,
|
|
1247
1247
|
'text-sm': true,
|
|
1248
1248
|
'cursor-pointer': true,
|
|
1249
1249
|
'outline-none': true,
|
|
@@ -1259,7 +1259,7 @@ const classes = {
|
|
|
1259
1259
|
},
|
|
1260
1260
|
colorpicker__canvasSwatchPreview: {
|
|
1261
1261
|
'text-sm': true,
|
|
1262
|
-
rounded: true,
|
|
1262
|
+
"rounded-md": true,
|
|
1263
1263
|
'aspect-square': true,
|
|
1264
1264
|
'shrink-0': true,
|
|
1265
1265
|
grow: true,
|
|
@@ -1286,7 +1286,7 @@ const classes = {
|
|
|
1286
1286
|
'max-w-[18.5em]': true,
|
|
1287
1287
|
'touch-manipulation': true,
|
|
1288
1288
|
'flex-col': true,
|
|
1289
|
-
rounded: true,
|
|
1289
|
+
"rounded-md": true,
|
|
1290
1290
|
border: true,
|
|
1291
1291
|
'bg-white': true,
|
|
1292
1292
|
'p-2.5': true,
|
|
@@ -1334,7 +1334,7 @@ const classes = {
|
|
|
1334
1334
|
'w-8': true,
|
|
1335
1335
|
'aspect-square': true,
|
|
1336
1336
|
'p-1': true,
|
|
1337
|
-
rounded: true,
|
|
1337
|
+
"rounded-md": true,
|
|
1338
1338
|
border: true,
|
|
1339
1339
|
'[&>svg]:w-full': true,
|
|
1340
1340
|
'[&>svg]:aspect-square': true,
|
|
@@ -1367,7 +1367,7 @@ const classes = {
|
|
|
1367
1367
|
'rounded-none': true,
|
|
1368
1368
|
},
|
|
1369
1369
|
colorpicker__preview: {
|
|
1370
|
-
rounded: true,
|
|
1370
|
+
"rounded-md": true,
|
|
1371
1371
|
'after:rounded': true,
|
|
1372
1372
|
relative: true,
|
|
1373
1373
|
'inline-flex': true,
|
|
@@ -1406,7 +1406,7 @@ const classes = {
|
|
|
1406
1406
|
'justify-center': true,
|
|
1407
1407
|
'justify-self-center': true,
|
|
1408
1408
|
'aspect-square': true,
|
|
1409
|
-
rounded: true,
|
|
1409
|
+
"rounded-md": true,
|
|
1410
1410
|
border: true,
|
|
1411
1411
|
'border-slate-200': true,
|
|
1412
1412
|
'cursor-pointer': true,
|
|
@@ -1442,13 +1442,13 @@ const classes = {
|
|
|
1442
1442
|
'w-[4px]': true,
|
|
1443
1443
|
'h-[calc(100%-2px)]': true,
|
|
1444
1444
|
'top-1/2': true,
|
|
1445
|
-
rounded: true,
|
|
1445
|
+
"rounded-md": true,
|
|
1446
1446
|
},
|
|
1447
1447
|
colorpicker__controlAlpha: {
|
|
1448
1448
|
'w-[4px]': true,
|
|
1449
1449
|
'h-[calc(100%-2px)]': true,
|
|
1450
1450
|
'top-1/2': true,
|
|
1451
|
-
rounded: true,
|
|
1451
|
+
"rounded-md": true,
|
|
1452
1452
|
},
|
|
1453
1453
|
colorpicker__formatField: {
|
|
1454
1454
|
flex: true,
|
|
@@ -1515,7 +1515,7 @@ const classes = {
|
|
|
1515
1515
|
'p-1': true,
|
|
1516
1516
|
'mt-0.5': true,
|
|
1517
1517
|
'text-slate-600': true,
|
|
1518
|
-
rounded: true,
|
|
1518
|
+
"rounded-md": true,
|
|
1519
1519
|
'select-none': true,
|
|
1520
1520
|
'dark:text-slate-400': true,
|
|
1521
1521
|
},
|
|
@@ -1627,7 +1627,7 @@ const classes = {
|
|
|
1627
1627
|
'top-[calc(100%+0.5em)]': true,
|
|
1628
1628
|
'left-0': true,
|
|
1629
1629
|
'shadow-[0_0_1.25em_rgba(0,0,0,.25)]': true,
|
|
1630
|
-
rounded: true,
|
|
1630
|
+
"rounded-md": true,
|
|
1631
1631
|
'p-5': true,
|
|
1632
1632
|
'bg-white': true,
|
|
1633
1633
|
'z-10': true,
|
|
@@ -1658,7 +1658,7 @@ const classes = {
|
|
|
1658
1658
|
'aspect-square': true,
|
|
1659
1659
|
border: true,
|
|
1660
1660
|
'border-slate-200': true,
|
|
1661
|
-
rounded: true,
|
|
1661
|
+
"rounded-md": true,
|
|
1662
1662
|
flex: true,
|
|
1663
1663
|
'items-center': true,
|
|
1664
1664
|
'justify-center': true,
|
|
@@ -1706,7 +1706,7 @@ const classes = {
|
|
|
1706
1706
|
'p-1.5': true,
|
|
1707
1707
|
'text-center': true,
|
|
1708
1708
|
'text-slate-700': true,
|
|
1709
|
-
rounded: true,
|
|
1709
|
+
"rounded-md": true,
|
|
1710
1710
|
'bg-slate-200': true,
|
|
1711
1711
|
'aria-selected:bg-primary-600!': true,
|
|
1712
1712
|
'aria-selected:text-white!': true,
|
|
@@ -1744,7 +1744,7 @@ const classes = {
|
|
|
1744
1744
|
'items-center': true,
|
|
1745
1745
|
'm-2': true,
|
|
1746
1746
|
'p-1.5': true,
|
|
1747
|
-
rounded: true,
|
|
1747
|
+
"rounded-md": true,
|
|
1748
1748
|
'bg-slate-200': true,
|
|
1749
1749
|
'aria-selected:bg-primary-600!': true,
|
|
1750
1750
|
'aria-selected:text-white!': true,
|
|
@@ -1768,7 +1768,7 @@ const classes = {
|
|
|
1768
1768
|
'w-[2.25em]': true,
|
|
1769
1769
|
'text-slate-700': true,
|
|
1770
1770
|
'm-2': true,
|
|
1771
|
-
rounded: true,
|
|
1771
|
+
"rounded-md": true,
|
|
1772
1772
|
'font-medium': true,
|
|
1773
1773
|
lowercase: true,
|
|
1774
1774
|
'dark:text-slate-500': true,
|
|
@@ -1793,7 +1793,7 @@ const classes = {
|
|
|
1793
1793
|
'h-[2.25em]': true,
|
|
1794
1794
|
'm-1': true,
|
|
1795
1795
|
'p-2.5': true,
|
|
1796
|
-
rounded: true,
|
|
1796
|
+
"rounded-md": true,
|
|
1797
1797
|
'bg-slate-200': true,
|
|
1798
1798
|
'aria-selected:bg-primary-600': true,
|
|
1799
1799
|
'aria-selected:text-white': true,
|
|
@@ -1821,7 +1821,7 @@ const classes = {
|
|
|
1821
1821
|
'dark:scheme-dark': true,
|
|
1822
1822
|
'text-slate-700': true,
|
|
1823
1823
|
'border-slate-200': true,
|
|
1824
|
-
rounded: true,
|
|
1824
|
+
"rounded-md": true,
|
|
1825
1825
|
'p-2': true,
|
|
1826
1826
|
'my-3': true,
|
|
1827
1827
|
'focus-visible:outline-primary-600': true,
|
|
@@ -1839,7 +1839,7 @@ const classes = {
|
|
|
1839
1839
|
'px-3': true,
|
|
1840
1840
|
'py-1': true,
|
|
1841
1841
|
'hover:bg-slate-100': true,
|
|
1842
|
-
rounded: true,
|
|
1842
|
+
"rounded-md": true,
|
|
1843
1843
|
'col-start-1': true,
|
|
1844
1844
|
'col-end-1': true,
|
|
1845
1845
|
'focus-visible:outline-none': true,
|
|
@@ -1866,7 +1866,7 @@ const classes = {
|
|
|
1866
1866
|
'py-1': true,
|
|
1867
1867
|
'border-2': true,
|
|
1868
1868
|
'border-slate-200': true,
|
|
1869
|
-
rounded: true,
|
|
1869
|
+
"rounded-md": true,
|
|
1870
1870
|
'mx-1': true,
|
|
1871
1871
|
'hover:border-primary-600': true,
|
|
1872
1872
|
'focus-visible:outline-none': true,
|
|
@@ -1885,7 +1885,7 @@ const classes = {
|
|
|
1885
1885
|
'py-1': true,
|
|
1886
1886
|
'border-2': true,
|
|
1887
1887
|
'border-slate-200': true,
|
|
1888
|
-
rounded: true,
|
|
1888
|
+
"rounded-md": true,
|
|
1889
1889
|
'mx-1': true,
|
|
1890
1890
|
'hover:border-primary-600': true,
|
|
1891
1891
|
'focus-visible:outline-none': true,
|
|
@@ -1904,7 +1904,7 @@ const classes = {
|
|
|
1904
1904
|
'py-1': true,
|
|
1905
1905
|
'border-2': true,
|
|
1906
1906
|
'border-slate-200': true,
|
|
1907
|
-
rounded: true,
|
|
1907
|
+
"rounded-md": true,
|
|
1908
1908
|
'mx-1': true,
|
|
1909
1909
|
'hover:border-primary-600': true,
|
|
1910
1910
|
'focus-visible:outline-none': true,
|
|
@@ -1919,7 +1919,7 @@ const classes = {
|
|
|
1919
1919
|
'ml-auto': true,
|
|
1920
1920
|
'px-3': true,
|
|
1921
1921
|
'py-1': true,
|
|
1922
|
-
rounded: true,
|
|
1922
|
+
"rounded-md": true,
|
|
1923
1923
|
'hover:bg-slate-100': true,
|
|
1924
1924
|
'hover:rounded': true,
|
|
1925
1925
|
'col-start-3': true,
|
|
@@ -2019,7 +2019,7 @@ const classes = {
|
|
|
2019
2019
|
'items-center': true,
|
|
2020
2020
|
'justify-center': true,
|
|
2021
2021
|
'h-[1.5em]': true,
|
|
2022
|
-
rounded: true,
|
|
2022
|
+
"rounded-md": true,
|
|
2023
2023
|
'bg-slate-400': true,
|
|
2024
2024
|
'text-white': true,
|
|
2025
2025
|
'whitespace-nowrap': true,
|
|
@@ -2161,7 +2161,7 @@ const classes = {
|
|
|
2161
2161
|
'p-2.5': true,
|
|
2162
2162
|
'[&>li]:aspect-square': true,
|
|
2163
2163
|
'dark:bg-slate-800': true,
|
|
2164
|
-
rounded: true,
|
|
2164
|
+
"rounded-md": true,
|
|
2165
2165
|
'rounded-tl-none': true,
|
|
2166
2166
|
'rounded-bl-none': true,
|
|
2167
2167
|
},
|
|
@@ -2257,7 +2257,7 @@ const classes = {
|
|
|
2257
2257
|
'bg-white': true,
|
|
2258
2258
|
border: true,
|
|
2259
2259
|
'border-slate-200': true,
|
|
2260
|
-
rounded: true,
|
|
2260
|
+
"rounded-md": true,
|
|
2261
2261
|
'shadow-sm': false,
|
|
2262
2262
|
'dark:border-slate-700': true,
|
|
2263
2263
|
'dark:bg-transparent': true,
|
|
@@ -2268,7 +2268,7 @@ const classes = {
|
|
|
2268
2268
|
relative: true,
|
|
2269
2269
|
'w-8': true,
|
|
2270
2270
|
'bg-slate-50': true,
|
|
2271
|
-
rounded: true,
|
|
2271
|
+
"rounded-md": true,
|
|
2272
2272
|
'rounded-tr-none': true,
|
|
2273
2273
|
'rounded-br-none': true,
|
|
2274
2274
|
'dark:bg-slate-800': true,
|
|
@@ -2454,7 +2454,7 @@ const classes = {
|
|
|
2454
2454
|
'text-xs': true,
|
|
2455
2455
|
'leading-none': true,
|
|
2456
2456
|
'whitespace-nowrap': true,
|
|
2457
|
-
rounded: true,
|
|
2457
|
+
"rounded-md": true,
|
|
2458
2458
|
'opacity-0': true,
|
|
2459
2459
|
'pointer-events-none': true,
|
|
2460
2460
|
'transition-opacity': true,
|
|
@@ -2757,7 +2757,7 @@ const classes = {
|
|
|
2757
2757
|
'h-[350px]': true,
|
|
2758
2758
|
border: true,
|
|
2759
2759
|
'border-slate-200': true,
|
|
2760
|
-
rounded: true,
|
|
2760
|
+
"rounded-md": true,
|
|
2761
2761
|
'overflow-hidden': true,
|
|
2762
2762
|
'select-none': true,
|
|
2763
2763
|
'[&:has(:focus-visible)]:ring-1': true,
|
|
@@ -2861,7 +2861,7 @@ const classes = {
|
|
|
2861
2861
|
'sm:my-auto': true,
|
|
2862
2862
|
'mx-auto': true,
|
|
2863
2863
|
'sm:mx-2.5': true,
|
|
2864
|
-
rounded: true,
|
|
2864
|
+
"rounded-md": true,
|
|
2865
2865
|
'overflow-clip': true,
|
|
2866
2866
|
'shadow-none': true,
|
|
2867
2867
|
'in-[.group\/repeater]:shadow-none': true,
|
|
@@ -2908,7 +2908,7 @@ const classes = {
|
|
|
2908
2908
|
flex: true,
|
|
2909
2909
|
border: true,
|
|
2910
2910
|
'border-slate-200': true,
|
|
2911
|
-
rounded: true,
|
|
2911
|
+
"rounded-md": true,
|
|
2912
2912
|
'items-center': true,
|
|
2913
2913
|
'text-slate-700': true,
|
|
2914
2914
|
'selection:bg-primary-100': true,
|
|
@@ -3039,7 +3039,7 @@ const classes = {
|
|
|
3039
3039
|
'overflow-clip': true,
|
|
3040
3040
|
'p-0': true,
|
|
3041
3041
|
'bg-black': true,
|
|
3042
|
-
rounded: true,
|
|
3042
|
+
"rounded-md": true,
|
|
3043
3043
|
'w-[100%-2rem]': true,
|
|
3044
3044
|
'max-w-120': true,
|
|
3045
3045
|
'backdrop:bg-slate-800/50': true,
|
|
@@ -3058,7 +3058,7 @@ const classes = {
|
|
|
3058
3058
|
'color-slate-700': true,
|
|
3059
3059
|
'w-[1.5em]': true,
|
|
3060
3060
|
'h-[1.5em]': true,
|
|
3061
|
-
rounded: true,
|
|
3061
|
+
"rounded-md": true,
|
|
3062
3062
|
flex: true,
|
|
3063
3063
|
'top-2.5': true,
|
|
3064
3064
|
'right-2.5': true,
|
|
@@ -3077,7 +3077,7 @@ const classes = {
|
|
|
3077
3077
|
'aspect-square': true,
|
|
3078
3078
|
'-translate-x-1/2': true,
|
|
3079
3079
|
'-translate-y-1/2': true,
|
|
3080
|
-
rounded: true,
|
|
3080
|
+
"rounded-md": true,
|
|
3081
3081
|
'pointer-events-none': true,
|
|
3082
3082
|
'shadow-[0_0_0_999em_rgba(0,0,0,0.5)]': true,
|
|
3083
3083
|
},
|
|
@@ -3090,7 +3090,7 @@ const classes = {
|
|
|
3090
3090
|
absolute: true,
|
|
3091
3091
|
'w-6': true,
|
|
3092
3092
|
'h-6': true,
|
|
3093
|
-
rounded: true,
|
|
3093
|
+
"rounded-md": true,
|
|
3094
3094
|
'top-0': true,
|
|
3095
3095
|
'left-0': true,
|
|
3096
3096
|
'border-l-4': true,
|
|
@@ -3102,7 +3102,7 @@ const classes = {
|
|
|
3102
3102
|
absolute: true,
|
|
3103
3103
|
'w-6': true,
|
|
3104
3104
|
'h-6': true,
|
|
3105
|
-
rounded: true,
|
|
3105
|
+
"rounded-md": true,
|
|
3106
3106
|
'top-0': true,
|
|
3107
3107
|
'right-0': true,
|
|
3108
3108
|
'border-r-4': true,
|
|
@@ -3114,7 +3114,7 @@ const classes = {
|
|
|
3114
3114
|
absolute: true,
|
|
3115
3115
|
'w-6': true,
|
|
3116
3116
|
'h-6': true,
|
|
3117
|
-
rounded: true,
|
|
3117
|
+
"rounded-md": true,
|
|
3118
3118
|
'bottom-0': true,
|
|
3119
3119
|
'right-0': true,
|
|
3120
3120
|
'border-r-4': true,
|
|
@@ -3126,7 +3126,7 @@ const classes = {
|
|
|
3126
3126
|
absolute: true,
|
|
3127
3127
|
'w-6': true,
|
|
3128
3128
|
'h-6': true,
|
|
3129
|
-
rounded: true,
|
|
3129
|
+
"rounded-md": true,
|
|
3130
3130
|
'bottom-0': true,
|
|
3131
3131
|
'left-0': true,
|
|
3132
3132
|
'border-l-4': true,
|
|
@@ -3271,7 +3271,7 @@ const classes = {
|
|
|
3271
3271
|
'bg-white': true,
|
|
3272
3272
|
border: true,
|
|
3273
3273
|
'border-slate-200': true,
|
|
3274
|
-
rounded: true,
|
|
3274
|
+
"rounded-md": true,
|
|
3275
3275
|
'dark:bg-transparent': true,
|
|
3276
3276
|
'dark:border-slate-800': true,
|
|
3277
3277
|
'group-data-[tab-style=tab]/wrapper:border-t-0': true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wishbone-media/spark",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,8 +23,14 @@
|
|
|
23
23
|
"@formkit/vue": "^1.6.9",
|
|
24
24
|
"@fortawesome/fontawesome-svg-core": "^7.1.0",
|
|
25
25
|
"@fortawesome/pro-regular-svg-icons": "^7.1.0",
|
|
26
|
+
"@fortawesome/vue-fontawesome": "^3.1.2",
|
|
27
|
+
"@handsontable/vue3": "^16.1.1",
|
|
26
28
|
"@headlessui/vue": "^1.7.23",
|
|
29
|
+
"@vueuse/core": "^14.0.0",
|
|
27
30
|
"axios": "^1.6.0",
|
|
31
|
+
"handsontable": "^16.1.1",
|
|
32
|
+
"lodash": "^4.17.21",
|
|
33
|
+
"nprogress": "^0.2.0",
|
|
28
34
|
"pinia": "^3.0.4",
|
|
29
35
|
"pinia-plugin-persistedstate": "^4.0.0",
|
|
30
36
|
"vue": "^3.5.24",
|
|
@@ -48,6 +54,7 @@
|
|
|
48
54
|
"./formkit.config.js": "./formkit.config.js",
|
|
49
55
|
"./formkit.theme.mjs": "./formkit.theme.mjs",
|
|
50
56
|
"./assets/css/*": "./src/assets/css/*",
|
|
57
|
+
"./assets/css/spark-table.css": "./src/assets/css/spark-table.css",
|
|
51
58
|
"./assets/fonts/*": "./src/assets/fonts/*",
|
|
52
59
|
"./assets/images/brands/*": "./src/assets/images/brands/*"
|
|
53
60
|
},
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.spark-table-table {
|
|
2
|
+
tbody {
|
|
3
|
+
tr:nth-child(even) td {
|
|
4
|
+
@apply bg-gray-50;
|
|
5
|
+
|
|
6
|
+
&:not(.read-only) {
|
|
7
|
+
@apply bg-gray-50;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
td {
|
|
12
|
+
@apply px-6 py-4 whitespace-nowrap text-gray-500 text-sm align-middle h-auto;
|
|
13
|
+
@apply !border-l-0 !border-r-0 !border-gray-200;
|
|
14
|
+
|
|
15
|
+
&:not(.read-only) {
|
|
16
|
+
@apply bg-gray-50;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
td:not(:last-child) {
|
|
21
|
+
@apply !border-r-0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.spark-table-table thead th {
|
|
27
|
+
@apply !border-t-0 !border-x-0;
|
|
28
|
+
|
|
29
|
+
&.ht__highlight .relative {
|
|
30
|
+
@apply bg-gray-200;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.ht__active_highlight .relative {
|
|
34
|
+
@apply bg-blue-400 text-black;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
& > .relative {
|
|
38
|
+
@apply text-left text-xs font-semibold bg-gray-50 text-gray-800 whitespace-normal
|
|
39
|
+
tracking-wider focus:outline-hidden drop-shadow-sm filter flex items-center;
|
|
40
|
+
|
|
41
|
+
@apply !px-5 !py-3;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.colHeader {
|
|
45
|
+
@apply leading-5;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.spark-table-head-title {
|
|
50
|
+
@apply max-w-full mr-4 overflow-hidden text-clip capitalize;
|
|
51
|
+
|
|
52
|
+
& > span {
|
|
53
|
+
@apply leading-normal;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.spark-table-action-button {
|
|
58
|
+
@apply px-3 py-[9px] text-sm shadow-xs rounded-md ring-1 ring-gray-300 ring-inset bg-white hover:bg-gray-50 text-gray-900;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.spark-table-head-filter {
|
|
62
|
+
/* hidden for now */
|
|
63
|
+
@apply hidden;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.spark-table-head-sorting {
|
|
67
|
+
/* hidden for now */
|
|
68
|
+
@apply hidden;
|
|
69
|
+
}
|