tsv2-library 1.0.61-alpha.121 → 1.0.61-alpha.123
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/tsv2-library.es.js
CHANGED
|
@@ -51744,7 +51744,7 @@ var cloneDeep_1 = cloneDeep;
|
|
|
51744
51744
|
const cloneDeep$1 = /* @__PURE__ */ getDefaultExportFromCjs(cloneDeep_1);
|
|
51745
51745
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
51746
51746
|
const API$5 = ({ headers = {}, params = {} } = {}) => {
|
|
51747
|
-
const BASE_URL2 =
|
|
51747
|
+
const BASE_URL2 = "https://dev-api.global-settings.tagsamurai.com";
|
|
51748
51748
|
const instance = axios.create({
|
|
51749
51749
|
baseURL: `${BASE_URL2}/v1/global-settings`,
|
|
51750
51750
|
headers: {
|
|
@@ -51768,7 +51768,7 @@ async function readConfig(tableId, defaultColumns) {
|
|
|
51768
51768
|
const {
|
|
51769
51769
|
data: { data: tableConfig }
|
|
51770
51770
|
} = await ColumnServices.getColumnSetup(tableId);
|
|
51771
|
-
if (tableConfig) {
|
|
51771
|
+
if (tableConfig && tableConfig.length > 0) {
|
|
51772
51772
|
return tableConfig.map((conf) => {
|
|
51773
51773
|
const foundCol = defaultColumns.find((col) => col.field === conf.field);
|
|
51774
51774
|
if (!foundCol || foundCol.visible === false)
|
|
@@ -52023,7 +52023,6 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
52023
52023
|
field: col.field,
|
|
52024
52024
|
width: col.width ?? "max-content",
|
|
52025
52025
|
visible: col.visible !== false,
|
|
52026
|
-
fixed: !!col.fixed,
|
|
52027
52026
|
pinned: !!col.pinned
|
|
52028
52027
|
};
|
|
52029
52028
|
}
|
|
@@ -52835,7 +52834,6 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
52835
52834
|
return {
|
|
52836
52835
|
field: column.field,
|
|
52837
52836
|
visible: column.visible !== false,
|
|
52838
|
-
fixed: !!column.fixed,
|
|
52839
52837
|
pinned: !!column.pinned,
|
|
52840
52838
|
width: colElement ? getComputedStyle(colElement).width : column.width ?? "max-content"
|
|
52841
52839
|
};
|