@stsdti/funky-ui-kit 1.6.12 → 1.7.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/funky-fonts.css +1 -1
- package/dist/funky-ui-kit.es.js +22 -13
- package/dist/funky-ui-kit.es.js.map +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
package/dist/funky-ui-kit.es.js
CHANGED
|
@@ -22533,9 +22533,7 @@ async function fetchBuilder({ requestParams, repository, transformer, search = n
|
|
|
22533
22533
|
return item;
|
|
22534
22534
|
});
|
|
22535
22535
|
if (search && requestParams.searchBackendScope) {
|
|
22536
|
-
const searchFilter = computedFilters.find(
|
|
22537
|
-
(filter2) => filter2.field == requestParams.searchBackendScope
|
|
22538
|
-
);
|
|
22536
|
+
const searchFilter = computedFilters.find((filter2) => filter2.field == requestParams.searchBackendScope);
|
|
22539
22537
|
if (searchFilter) {
|
|
22540
22538
|
searchFilter.value = search;
|
|
22541
22539
|
} else {
|
|
@@ -22566,10 +22564,7 @@ function getGUID() {
|
|
|
22566
22564
|
if (crypto.randomUUID) {
|
|
22567
22565
|
return crypto.randomUUID();
|
|
22568
22566
|
}
|
|
22569
|
-
return ("10000000-1000-4000-8000" + -1e11).replace(
|
|
22570
|
-
/[018]/g,
|
|
22571
|
-
(c2) => (c2 ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c2 / 4).toString(16)
|
|
22572
|
-
);
|
|
22567
|
+
return ("10000000-1000-4000-8000" + -1e11).replace(/[018]/g, (c2) => (c2 ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c2 / 4).toString(16));
|
|
22573
22568
|
}
|
|
22574
22569
|
function hasValue(value) {
|
|
22575
22570
|
if (Array.isArray(value)) {
|
|
@@ -22580,11 +22575,16 @@ function hasValue(value) {
|
|
|
22580
22575
|
}
|
|
22581
22576
|
return value || value === false || value === 0;
|
|
22582
22577
|
}
|
|
22583
|
-
const resolveValue = async (value) => {
|
|
22578
|
+
const resolveValue = async (value, ...args) => {
|
|
22584
22579
|
let result = value;
|
|
22585
|
-
result = result instanceof Function ? result() : result;
|
|
22580
|
+
result = result instanceof Function ? result(...args) : result;
|
|
22586
22581
|
result = result instanceof Promise ? await result : result;
|
|
22587
|
-
return result;
|
|
22582
|
+
return toValue$3(result);
|
|
22583
|
+
};
|
|
22584
|
+
const resolveValueSync = (value, ...args) => {
|
|
22585
|
+
let result = value;
|
|
22586
|
+
result = result instanceof Function ? result(...args) : result;
|
|
22587
|
+
return toValue$3(result);
|
|
22588
22588
|
};
|
|
22589
22589
|
function joinList(list, path, separator = ",") {
|
|
22590
22590
|
let localList = list || [];
|
|
@@ -31790,6 +31790,7 @@ function useTable(config, emits) {
|
|
|
31790
31790
|
tableRequest.value.isPaginationFull = configIsPaginationFull;
|
|
31791
31791
|
let tableData = ref(TableUtils.createTableData());
|
|
31792
31792
|
let isPaginated = ref(false);
|
|
31793
|
+
let topButtonExtras = ref({});
|
|
31793
31794
|
let tableRows = computed(() => lodashExports.get(tableData.value, "data") ?? []);
|
|
31794
31795
|
watch(tableRequest, async (newValue, oldValue) => {
|
|
31795
31796
|
if (lodashExports.isEqual(newValue, oldValue)) {
|
|
@@ -31806,6 +31807,9 @@ function useTable(config, emits) {
|
|
|
31806
31807
|
result.per_page = parseInt(tableData.value.per_page);
|
|
31807
31808
|
tableRequest.value = result;
|
|
31808
31809
|
});
|
|
31810
|
+
function setTopButtonExtras(overrides) {
|
|
31811
|
+
topButtonExtras.value = overrides;
|
|
31812
|
+
}
|
|
31809
31813
|
async function onFilterSet() {
|
|
31810
31814
|
if (onValidateFilters) {
|
|
31811
31815
|
let validationResult = onValidateFilters(tableFilters.filters.value);
|
|
@@ -31864,6 +31868,7 @@ function useTable(config, emits) {
|
|
|
31864
31868
|
tableData,
|
|
31865
31869
|
isPaginated,
|
|
31866
31870
|
tableRows,
|
|
31871
|
+
topButtonExtras,
|
|
31867
31872
|
onFilterSet,
|
|
31868
31873
|
onTableFilterChange,
|
|
31869
31874
|
onFilterReset,
|
|
@@ -31871,6 +31876,7 @@ function useTable(config, emits) {
|
|
|
31871
31876
|
onTablePageSizeChange,
|
|
31872
31877
|
onTableSortChange,
|
|
31873
31878
|
fetchTable,
|
|
31879
|
+
setTopButtonExtras,
|
|
31874
31880
|
...tableFilters
|
|
31875
31881
|
};
|
|
31876
31882
|
onMounted(async () => {
|
|
@@ -84452,12 +84458,14 @@ const _sfc_main$9 = {
|
|
|
84452
84458
|
}
|
|
84453
84459
|
};
|
|
84454
84460
|
const buttonsList = computed(() => props2.buttons ?? Object.values(button));
|
|
84455
|
-
const show2 = async ({ id = null, external = {} }) => {
|
|
84461
|
+
const show2 = async ({ id = null, external = {} } = {}) => {
|
|
84456
84462
|
var _a2, _b2, _c2;
|
|
84457
84463
|
isModalVisible.value = true;
|
|
84458
84464
|
await nextTick();
|
|
84459
|
-
(
|
|
84460
|
-
|
|
84465
|
+
if (!lodashExports.isEqual(external, {})) {
|
|
84466
|
+
(_a2 = formContext.setPayload) == null ? void 0 : _a2.call(formContext, external == null ? void 0 : external.payload);
|
|
84467
|
+
(_b2 = formContext.setExternal) == null ? void 0 : _b2.call(formContext, external == null ? void 0 : external.values);
|
|
84468
|
+
}
|
|
84461
84469
|
await ((_c2 = formContext.initItem) == null ? void 0 : _c2.call(formContext, { id }));
|
|
84462
84470
|
};
|
|
84463
84471
|
const onClose = () => {
|
|
@@ -86445,6 +86453,7 @@ export {
|
|
|
86445
86453
|
makeArray,
|
|
86446
86454
|
mergeObjectWithoutOverwrite,
|
|
86447
86455
|
resolveValue,
|
|
86456
|
+
resolveValueSync,
|
|
86448
86457
|
useAppSelectCore as sharedProps,
|
|
86449
86458
|
sleep,
|
|
86450
86459
|
toPathString,
|