2022-01-25 20:22:43 +01:00
|
|
|
import { API } from "api"
|
2021-01-22 12:44:43 +01:00
|
|
|
import {
|
|
|
|
authStore,
|
|
|
|
notificationStore,
|
|
|
|
routeStore,
|
|
|
|
screenStore,
|
2021-01-26 10:48:41 +01:00
|
|
|
builderStore,
|
2022-01-11 15:01:21 +01:00
|
|
|
uploadStore,
|
2022-02-11 12:55:35 +01:00
|
|
|
rowSelectionStore,
|
2022-05-05 09:57:36 +02:00
|
|
|
componentStore,
|
2022-06-09 15:28:02 +02:00
|
|
|
currentRole,
|
2022-09-15 14:22:17 +02:00
|
|
|
environmentStore,
|
2022-10-27 09:08:35 +02:00
|
|
|
sidePanelStore,
|
2024-06-18 12:18:05 +02:00
|
|
|
modalStore,
|
2022-11-22 17:43:48 +01:00
|
|
|
dndIsDragging,
|
2022-11-24 21:06:31 +01:00
|
|
|
confirmationStore,
|
2023-09-27 16:46:04 +02:00
|
|
|
roleStore,
|
2023-10-30 13:46:44 +01:00
|
|
|
appStore,
|
2023-11-07 15:36:57 +01:00
|
|
|
stateStore,
|
2023-11-09 12:10:52 +01:00
|
|
|
createContextStore,
|
2021-09-01 12:41:48 +02:00
|
|
|
} from "stores"
|
|
|
|
import { styleable } from "utils/styleable"
|
|
|
|
import { linkable } from "utils/linkable"
|
|
|
|
import { getAction } from "utils/getAction"
|
|
|
|
import Provider from "components/context/Provider.svelte"
|
2023-07-30 14:07:01 +02:00
|
|
|
import Block from "components/Block.svelte"
|
|
|
|
import BlockComponent from "components/BlockComponent.svelte"
|
2024-02-02 15:59:45 +01:00
|
|
|
import { ActionTypes } from "./constants"
|
2024-10-29 12:44:03 +01:00
|
|
|
import {
|
|
|
|
fetchDatasourceSchema,
|
|
|
|
fetchDatasourceDefinition,
|
|
|
|
} from "./utils/schema.js"
|
2022-09-21 10:49:33 +02:00
|
|
|
import { getAPIKey } from "./utils/api.js"
|
2023-11-01 17:45:37 +01:00
|
|
|
import { enrichButtonActions } from "./utils/buttonActions.js"
|
2023-11-20 09:30:42 +01:00
|
|
|
import { processStringSync, makePropSafe } from "@budibase/string-templates"
|
2024-02-27 15:44:25 +01:00
|
|
|
import {
|
|
|
|
fetchData,
|
2024-06-12 16:04:56 +02:00
|
|
|
QueryUtils,
|
2024-02-27 15:44:25 +01:00
|
|
|
Constants,
|
|
|
|
RowUtils,
|
2024-03-21 10:14:01 +01:00
|
|
|
memo,
|
|
|
|
derivedMemo,
|
2024-02-27 15:44:25 +01:00
|
|
|
} from "@budibase/frontend-core"
|
2020-11-18 20:18:18 +01:00
|
|
|
|
|
|
|
export default {
|
|
|
|
API,
|
2023-11-01 17:45:37 +01:00
|
|
|
|
|
|
|
// Stores
|
2020-11-18 20:18:18 +01:00
|
|
|
authStore,
|
2023-10-30 13:46:44 +01:00
|
|
|
appStore,
|
2021-07-30 15:01:01 +02:00
|
|
|
notificationStore,
|
2020-11-18 20:18:18 +01:00
|
|
|
routeStore,
|
2022-02-11 12:55:35 +01:00
|
|
|
rowSelectionStore,
|
2020-11-18 20:18:18 +01:00
|
|
|
screenStore,
|
2021-01-26 10:48:41 +01:00
|
|
|
builderStore,
|
2022-01-11 15:01:21 +01:00
|
|
|
uploadStore,
|
2022-05-05 09:57:36 +02:00
|
|
|
componentStore,
|
2022-09-15 14:22:17 +02:00
|
|
|
environmentStore,
|
2022-10-27 09:08:35 +02:00
|
|
|
sidePanelStore,
|
2024-06-18 12:18:05 +02:00
|
|
|
modalStore,
|
2022-11-22 17:43:48 +01:00
|
|
|
dndIsDragging,
|
2022-06-09 15:28:02 +02:00
|
|
|
currentRole,
|
2022-11-24 21:06:31 +01:00
|
|
|
confirmationStore,
|
2023-09-27 16:46:04 +02:00
|
|
|
roleStore,
|
2023-11-07 15:36:57 +01:00
|
|
|
stateStore,
|
2023-11-01 17:45:37 +01:00
|
|
|
|
|
|
|
// Utils
|
2020-11-18 20:18:18 +01:00
|
|
|
styleable,
|
|
|
|
linkable,
|
2021-06-03 11:10:25 +02:00
|
|
|
getAction,
|
2021-12-17 09:22:04 +01:00
|
|
|
fetchDatasourceSchema,
|
2024-10-29 12:44:03 +01:00
|
|
|
fetchDatasourceDefinition,
|
2024-01-20 22:11:31 +01:00
|
|
|
fetchData,
|
2024-06-12 16:04:56 +02:00
|
|
|
QueryUtils,
|
2024-02-02 15:59:45 +01:00
|
|
|
ContextScopes: Constants.ContextScopes,
|
2022-09-21 10:49:33 +02:00
|
|
|
getAPIKey,
|
2023-11-01 17:45:37 +01:00
|
|
|
enrichButtonActions,
|
2023-11-07 15:36:57 +01:00
|
|
|
processStringSync,
|
2023-11-20 09:30:42 +01:00
|
|
|
makePropSafe,
|
2023-11-09 12:10:52 +01:00
|
|
|
createContextStore,
|
2024-02-27 15:44:25 +01:00
|
|
|
generateGoldenSample: RowUtils.generateGoldenSample,
|
2024-03-21 10:14:01 +01:00
|
|
|
memo,
|
|
|
|
derivedMemo,
|
2023-11-01 17:45:37 +01:00
|
|
|
|
|
|
|
// Components
|
|
|
|
Provider,
|
2023-07-30 14:07:01 +02:00
|
|
|
Block,
|
|
|
|
BlockComponent,
|
2023-11-01 17:45:37 +01:00
|
|
|
|
|
|
|
// Constants
|
|
|
|
ActionTypes,
|
2020-11-18 20:18:18 +01:00
|
|
|
}
|