@antcde/component-library 0.1.30 → 0.1.31-rc.1

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.
Files changed (33) hide show
  1. package/dist/build/uno.safelist.d.ts +1 -1
  2. package/dist/build/uno.safelist.js +52 -42
  3. package/dist/index.js +10767 -9039
  4. package/dist/types/components/AntNoticeAlert.vue.d.ts +24 -0
  5. package/dist/types/components/ScriptTrigger/AntDatasetFileSource.vue.d.ts +21 -0
  6. package/dist/types/components/ScriptTrigger/AntDatasetTableSource.vue.d.ts +16 -0
  7. package/dist/types/components/ScriptTrigger/AntPayloadFieldsEditor.vue.d.ts +13 -0
  8. package/dist/types/components/ScriptTrigger/AntRunScriptFields.vue.d.ts +32 -0
  9. package/dist/types/components/ScriptTrigger/AntTransformScriptFields.vue.d.ts +19 -0
  10. package/dist/types/components/ScriptTrigger/AntTriggerExecutionUser.vue.d.ts +10 -0
  11. package/dist/types/components/ScriptTrigger/_DatasetFileColumnList.vue.d.ts +8 -0
  12. package/dist/types/components/ScriptTrigger/_ScriptVersionPicker.vue.d.ts +10 -0
  13. package/dist/types/components/ScriptTrigger/composables/useDatasetColumnMapping.d.ts +43 -0
  14. package/dist/types/components/ScriptTrigger/composables/useDatasetFileColumns.d.ts +51 -0
  15. package/dist/types/components/ScriptTrigger/composables/useDatasetFileProposal.d.ts +96 -0
  16. package/dist/types/components/ScriptTrigger/composables/useFieldIssue.d.ts +16 -0
  17. package/dist/types/components/ScriptTrigger/composables/useScriptSelection.d.ts +68 -0
  18. package/dist/types/components/ScriptTrigger/composables/useTableColumns.d.ts +30 -0
  19. package/dist/types/components/ScriptTrigger/composables/useTableSelection.d.ts +221 -0
  20. package/dist/types/components/ScriptTrigger/context.d.ts +459 -0
  21. package/dist/types/components/ScriptTrigger/messages/de.json.d.ts +151 -0
  22. package/dist/types/components/ScriptTrigger/messages/en.json.d.ts +151 -0
  23. package/dist/types/components/ScriptTrigger/messages/nl.json.d.ts +151 -0
  24. package/dist/types/components/ScriptTrigger/utils/payloadFields.d.ts +6 -0
  25. package/dist/types/components/ScriptTrigger/utils/triggerDataset.d.ts +4 -0
  26. package/dist/types/components/ScriptTrigger/utils/withSavedOption.d.ts +7 -0
  27. package/dist/types/components/form/AntFilterSelect.vue.d.ts +2 -0
  28. package/dist/types/components/form/AntSelect.vue.d.ts +4 -0
  29. package/dist/types/components/form/useMenuSearch.d.ts +12 -0
  30. package/dist/types/index.d.ts +19 -1
  31. package/lib/build/genSafelist.mjs +9 -2
  32. package/lib/build/uno.safelist.ts +52 -42
  33. package/package.json +3 -3
@@ -0,0 +1,24 @@
1
+ type __VLS_Props = {
2
+ type?: 'error' | 'warning' | 'info' | 'success';
3
+ headline?: string | null;
4
+ body?: string | null;
5
+ icon?: string | false;
6
+ };
7
+ declare var __VLS_8: {};
8
+ type __VLS_Slots = {} & {
9
+ action?: (props: typeof __VLS_8) => any;
10
+ };
11
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ type: "error" | "warning" | "info" | "success";
13
+ body: string | null;
14
+ icon: string | false;
15
+ headline: string | null;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,21 @@
1
+ import { DatasetFileColumn, DatasetFileFormat } from '@antcde/connect-ts';
2
+ type __VLS_Props = {
3
+ columnsIgnored?: boolean;
4
+ };
5
+ type __VLS_ModelProps = {
6
+ 'fileId'?: string;
7
+ 'columns'?: DatasetFileColumn[];
8
+ 'format'?: DatasetFileFormat | undefined;
9
+ };
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ "update:fileId": (value: string) => any;
13
+ "update:columns": (value: DatasetFileColumn[]) => any;
14
+ "update:format": (value: DatasetFileFormat | undefined) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:fileId"?: ((value: string) => any) | undefined;
17
+ "onUpdate:columns"?: ((value: DatasetFileColumn[]) => any) | undefined;
18
+ "onUpdate:format"?: ((value: DatasetFileFormat | undefined) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { DatasetTableColumn } from '@antcde/connect-ts';
2
+ type __VLS_ModelProps = {
3
+ 'tableId'?: string;
4
+ 'columns'?: DatasetTableColumn[];
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_ModelProps, {
7
+ isValid: import('vue').ComputedRef<boolean>;
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:columns": (value: DatasetTableColumn[]) => any;
10
+ "update:tableId": (value: string) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
12
+ "onUpdate:columns"?: ((value: DatasetTableColumn[]) => any) | undefined;
13
+ "onUpdate:tableId"?: ((value: string) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { PayloadField } from './utils/payloadFields';
2
+ type __VLS_ModelProps = {
3
+ 'payloadFields'?: PayloadField[];
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_ModelProps, {
6
+ isValid: import('vue').ComputedRef<boolean>;
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:payloadFields": (value: PayloadField[]) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
10
+ "onUpdate:payloadFields"?: ((value: PayloadField[]) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { ScriptTriggerContext } from './context';
2
+ type __VLS_Props = {
3
+ context: ScriptTriggerContext;
4
+ };
5
+ type __VLS_ModelProps = {
6
+ 'payload'?: {
7
+ script_id: string | null;
8
+ executor_id: string | null;
9
+ async?: boolean;
10
+ request_payload?: Record<string, any> | string;
11
+ };
12
+ };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {
15
+ isValid: import('vue').ComputedRef<boolean>;
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:payload": (value: {
18
+ script_id: string | null;
19
+ executor_id: string | null;
20
+ async?: boolean;
21
+ request_payload?: Record<string, any> | string;
22
+ }) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ "onUpdate:payload"?: ((value: {
25
+ script_id: string | null;
26
+ executor_id: string | null;
27
+ async?: boolean;
28
+ request_payload?: Record<string, any> | string;
29
+ }) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { TransformWithScriptPayload } from '@antcde/connect-ts';
2
+ import { ScriptTriggerContext } from './context';
3
+ type __VLS_Props = {
4
+ context: ScriptTriggerContext;
5
+ readOnly?: boolean;
6
+ };
7
+ type __VLS_ModelProps = {
8
+ 'payload'?: TransformWithScriptPayload;
9
+ };
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {
12
+ isValid: import('vue').ComputedRef<boolean>;
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "update:payload": (value: TransformWithScriptPayload) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:payload"?: ((value: TransformWithScriptPayload) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_ModelProps = {
2
+ modelValue?: string | null;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ "update:modelValue": (value: string | null | undefined) => any;
6
+ }, string, import('vue').PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { useDatasetFileColumns } from './composables/useDatasetFileColumns';
2
+ type __VLS_Props = {
3
+ columns: ReturnType<typeof useDatasetFileColumns>;
4
+ ignored?: boolean;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_ModelProps = {
2
+ 'scriptId'?: string;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ "update:scriptId": (value: string) => any;
6
+ }, string, import('vue').PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
+ "onUpdate:scriptId"?: ((value: string) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,43 @@
1
+ import { DatasetTableColumn, datasetKeyError } from '@antcde/connect-ts';
2
+ import { DatasetColumnChoice } from './useTableColumns';
3
+ export interface ColumnMapping {
4
+ columnId: string;
5
+ sourceName: string;
6
+ type: string;
7
+ publishable: boolean;
8
+ selected: boolean;
9
+ /** What callers receive this as. */
10
+ returnedKey: string;
11
+ /** The key as saved (null when omitted), and its saved position: kept so an untouched load rebuilds the same payload. */
12
+ storedKey?: string | null;
13
+ storedIndex?: number;
14
+ }
15
+ export declare function useDatasetColumnMapping(): {
16
+ rows: Readonly<import('vue').Ref<readonly {
17
+ readonly columnId: string;
18
+ readonly sourceName: string;
19
+ readonly type: string;
20
+ readonly publishable: boolean;
21
+ readonly selected: boolean;
22
+ readonly returnedKey: string;
23
+ readonly storedKey?: string | null | undefined;
24
+ readonly storedIndex?: number | undefined;
25
+ }[], readonly {
26
+ readonly columnId: string;
27
+ readonly sourceName: string;
28
+ readonly type: string;
29
+ readonly publishable: boolean;
30
+ readonly selected: boolean;
31
+ readonly returnedKey: string;
32
+ readonly storedKey?: string | null | undefined;
33
+ readonly storedIndex?: number | undefined;
34
+ }[]>>;
35
+ selectedCount: import('vue').ComputedRef<number>;
36
+ isValid: import('vue').ComputedRef<boolean>;
37
+ keyErrorFor: (row: ColumnMapping) => ReturnType<typeof datasetKeyError>;
38
+ setColumns: (choices: readonly DatasetColumnChoice[], stored?: readonly DatasetTableColumn[]) => void;
39
+ toggle: (columnId: string) => void;
40
+ setKey: (columnId: string, value: string) => void;
41
+ buildColumns: () => DatasetTableColumn[];
42
+ clear: () => void;
43
+ };
@@ -0,0 +1,51 @@
1
+ import { DatasetColumnType, DatasetFileColumn, DatasetFileColumnProposal, datasetKeyError } from '@antcde/connect-ts';
2
+ /** Where a declared file column came from. Provenance, not decoration. */
3
+ export type FileColumnOrigin = 'proposed' | 'manual';
4
+ export interface FileColumnRow {
5
+ /** Stable local key for `v-for`; not sent anywhere. */
6
+ rowId: number;
7
+ /** The header as it appears in the file. */
8
+ sourceKey: string;
9
+ returnedKey: string;
10
+ type: DatasetColumnType;
11
+ selected: boolean;
12
+ origin: FileColumnOrigin;
13
+ /** From a proposal only: how many sampled rows had no value here. */
14
+ nullCount?: number;
15
+ nullable?: boolean;
16
+ }
17
+ export declare function useDatasetFileColumns(): {
18
+ rows: Readonly<import('vue').Ref<readonly {
19
+ readonly rowId: number;
20
+ readonly sourceKey: string;
21
+ readonly returnedKey: string;
22
+ readonly type: DatasetColumnType;
23
+ readonly selected: boolean;
24
+ readonly origin: FileColumnOrigin;
25
+ readonly nullCount?: number | undefined;
26
+ readonly nullable?: boolean | undefined;
27
+ }[], readonly {
28
+ readonly rowId: number;
29
+ readonly sourceKey: string;
30
+ readonly returnedKey: string;
31
+ readonly type: DatasetColumnType;
32
+ readonly selected: boolean;
33
+ readonly origin: FileColumnOrigin;
34
+ readonly nullCount?: number | undefined;
35
+ readonly nullable?: boolean | undefined;
36
+ }[]>>;
37
+ rowCount: Readonly<import('vue').Ref<number | null, number | null>>;
38
+ selectedCount: import('vue').ComputedRef<number>;
39
+ hasProposal: import('vue').ComputedRef<boolean>;
40
+ isValid: import('vue').ComputedRef<boolean>;
41
+ keyErrorFor: (row: FileColumnRow) => ReturnType<typeof datasetKeyError>;
42
+ sourceMissing: (row: FileColumnRow) => boolean;
43
+ setProposals: (proposed: readonly DatasetFileColumnProposal[], sampledRows?: number) => void;
44
+ seedFromStored: (stored: readonly DatasetFileColumn[]) => void;
45
+ addRow: (type: DatasetColumnType) => void;
46
+ removeRow: (rowId: number) => void;
47
+ toggle: (rowId: number) => void;
48
+ set: (rowId: number, patch: Partial<Pick<FileColumnRow, "sourceKey" | "returnedKey" | "type">>) => void;
49
+ buildColumns: () => DatasetFileColumn[];
50
+ clear: () => void;
51
+ };
@@ -0,0 +1,96 @@
1
+ import { DatasetFileFormat, DatasetFileProposal, DatasetRefusedResult } from '@antcde/connect-ts';
2
+ import { MaybeRefOrGetter } from 'vue';
3
+ import { ScriptTriggerContext } from '../context';
4
+ export type ProposalFailure = {
5
+ kind: 'refused';
6
+ refusal: DatasetRefusedResult;
7
+ } | {
8
+ kind: 'inaccessible';
9
+ status: number;
10
+ } | {
11
+ kind: 'unknown';
12
+ };
13
+ export declare function useDatasetFileProposal(context: MaybeRefOrGetter<Pick<ScriptTriggerContext, 'antConnect'>>): {
14
+ proposal: Readonly<import('vue').Ref<{
15
+ readonly file: {
16
+ readonly id: string;
17
+ readonly name: string;
18
+ readonly extension: string;
19
+ readonly mime: string;
20
+ readonly size: number;
21
+ readonly folder_id: string | null;
22
+ readonly folder_path: readonly string[];
23
+ readonly project_id: string | null;
24
+ readonly license_id: string;
25
+ };
26
+ readonly format: DatasetFileFormat;
27
+ readonly row_count: number;
28
+ readonly columns: readonly {
29
+ readonly source_key: string;
30
+ readonly key: string;
31
+ readonly label: string;
32
+ readonly proposed_type: import('@antcde/connect-ts').DatasetColumnType;
33
+ readonly null_count: number;
34
+ readonly nullable: boolean;
35
+ }[];
36
+ readonly sample: readonly {
37
+ readonly [x: string]: Readonly<unknown>;
38
+ }[];
39
+ } | null, {
40
+ readonly file: {
41
+ readonly id: string;
42
+ readonly name: string;
43
+ readonly extension: string;
44
+ readonly mime: string;
45
+ readonly size: number;
46
+ readonly folder_id: string | null;
47
+ readonly folder_path: readonly string[];
48
+ readonly project_id: string | null;
49
+ readonly license_id: string;
50
+ };
51
+ readonly format: DatasetFileFormat;
52
+ readonly row_count: number;
53
+ readonly columns: readonly {
54
+ readonly source_key: string;
55
+ readonly key: string;
56
+ readonly label: string;
57
+ readonly proposed_type: import('@antcde/connect-ts').DatasetColumnType;
58
+ readonly null_count: number;
59
+ readonly nullable: boolean;
60
+ }[];
61
+ readonly sample: readonly {
62
+ readonly [x: string]: Readonly<unknown>;
63
+ }[];
64
+ } | null>>;
65
+ failure: Readonly<import('vue').Ref<{
66
+ readonly kind: "refused";
67
+ readonly refusal: {
68
+ readonly dataset_refused: true;
69
+ readonly reason: import('@antcde/connect-ts').DatasetRefusalReason;
70
+ readonly message: string;
71
+ readonly status_code: number;
72
+ };
73
+ } | {
74
+ readonly kind: "inaccessible";
75
+ readonly status: number;
76
+ } | {
77
+ readonly kind: "unknown";
78
+ } | null, {
79
+ readonly kind: "refused";
80
+ readonly refusal: {
81
+ readonly dataset_refused: true;
82
+ readonly reason: import('@antcde/connect-ts').DatasetRefusalReason;
83
+ readonly message: string;
84
+ readonly status_code: number;
85
+ };
86
+ } | {
87
+ readonly kind: "inaccessible";
88
+ readonly status: number;
89
+ } | {
90
+ readonly kind: "unknown";
91
+ } | null>>;
92
+ formatUnsupported: import('vue').ComputedRef<boolean>;
93
+ isLoading: import('vue').ComputedRef<boolean>;
94
+ propose: (dmsFileId: string, format?: DatasetFileFormat) => Promise<DatasetFileProposal | null>;
95
+ reset: () => void;
96
+ };
@@ -0,0 +1,16 @@
1
+ import { ComputedRef, InjectionKey, MaybeRefOrGetter } from 'vue';
2
+ export interface FieldIssues {
3
+ /** The translated message for `path`, or undefined while it should stay quiet. */
4
+ errorFor: (path: string) => string | undefined;
5
+ /** The user has interacted with `path`; its error may now be shown. */
6
+ touch: (path: string) => void;
7
+ /** A rule only the editor can judge (a duplicate key), reported into the same gate. `null` clears it. */
8
+ setLocalIssue: (path: string, message: string | null) => void;
9
+ }
10
+ export declare const FIELD_ISSUES_KEY: InjectionKey<FieldIssues>;
11
+ export interface FieldIssue {
12
+ error: ComputedRef<string | undefined>;
13
+ touch: () => void;
14
+ setLocal: (message: string | null) => void;
15
+ }
16
+ export declare function useFieldIssue(path: MaybeRefOrGetter<string>): FieldIssue;
@@ -0,0 +1,68 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ import { ScriptTriggerContext } from '../context';
3
+ export declare const WORKING_COPY = "working-copy";
4
+ export declare function useScriptSelection(context: MaybeRefOrGetter<Pick<ScriptTriggerContext, 'antConnect' | 'projectId'>>): {
5
+ scriptsLoading: Readonly<import('vue').Ref<boolean, boolean>>;
6
+ allScripts: Readonly<import('vue').Ref<readonly {
7
+ readonly id: string;
8
+ readonly version: string;
9
+ readonly name: string;
10
+ readonly genesis_id: string;
11
+ readonly pivot: {
12
+ readonly project_id: string;
13
+ readonly script_id: string;
14
+ };
15
+ }[], readonly {
16
+ readonly id: string;
17
+ readonly version: string;
18
+ readonly name: string;
19
+ readonly genesis_id: string;
20
+ readonly pivot: {
21
+ readonly project_id: string;
22
+ readonly script_id: string;
23
+ };
24
+ }[]>>;
25
+ uniqueScripts: Readonly<import('vue').Ref<readonly {
26
+ readonly id: string;
27
+ readonly version: string;
28
+ readonly name: string;
29
+ readonly genesis_id: string;
30
+ readonly pivot: {
31
+ readonly project_id: string;
32
+ readonly script_id: string;
33
+ };
34
+ }[], readonly {
35
+ readonly id: string;
36
+ readonly version: string;
37
+ readonly name: string;
38
+ readonly genesis_id: string;
39
+ readonly pivot: {
40
+ readonly project_id: string;
41
+ readonly script_id: string;
42
+ };
43
+ }[]>>;
44
+ availableVersions: Readonly<import('vue').Ref<readonly {
45
+ readonly id: string;
46
+ readonly version: string;
47
+ readonly name: string;
48
+ readonly genesis_id: string;
49
+ readonly pivot: {
50
+ readonly project_id: string;
51
+ readonly script_id: string;
52
+ };
53
+ }[], readonly {
54
+ readonly id: string;
55
+ readonly version: string;
56
+ readonly name: string;
57
+ readonly genesis_id: string;
58
+ readonly pivot: {
59
+ readonly project_id: string;
60
+ readonly script_id: string;
61
+ };
62
+ }[]>>;
63
+ selectedGenesisId: import('vue').Ref<string | null, string | null>;
64
+ selectedVersion: import('vue').Ref<string | null, string | null>;
65
+ selectedScriptId: Readonly<import('vue').Ref<string | null, string | null>>;
66
+ loadScripts: () => Promise<void>;
67
+ setInitialSelections: (scriptId: string | null) => void;
68
+ };
@@ -0,0 +1,30 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ import { ScriptTriggerContext } from '../context';
3
+ /** A table column, plus whether a dataset may publish it. */
4
+ export interface DatasetColumnChoice {
5
+ id: string;
6
+ name: string;
7
+ type: string;
8
+ /** False when the type is not in the API's `publishable_column_types`. */
9
+ publishable: boolean;
10
+ }
11
+ export declare function useTableColumns(context: MaybeRefOrGetter<Pick<ScriptTriggerContext, 'antConnect' | 'publishableColumnTypes'>>): {
12
+ columns: Readonly<import('vue').Ref<readonly {
13
+ readonly id: string;
14
+ readonly name: string;
15
+ readonly type: string;
16
+ readonly publishable: boolean;
17
+ }[], readonly {
18
+ readonly id: string;
19
+ readonly name: string;
20
+ readonly type: string;
21
+ readonly publishable: boolean;
22
+ }[]>>;
23
+ isLoading: import('vue').ComputedRef<boolean>;
24
+ isEmpty: import('vue').ComputedRef<boolean>;
25
+ loadFailed: Readonly<import('vue').Ref<boolean, boolean>>;
26
+ loadedTableId: Readonly<import('vue').Ref<string | null, string | null>>;
27
+ loadColumns: (tableId: string | null | undefined) => Promise<void>;
28
+ columnName: (columnId: string) => string | null;
29
+ publishableTypes: () => string[];
30
+ };