@svgrid/enterprise 3.1.34 → 3.1.35
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/SvGridBoard.svelte +1 -1
- package/dist/cdn/svgrid-enterprise.svelte-external.js +2 -2
- package/dist/designer/assets/{index-v61ZvIWw.js → index-Eyxa9vgS.js} +3 -3
- package/dist/designer/assets/{src-DkFgWld_.js → src-CSmsOfsG.js} +15 -15
- package/dist/designer/index.html +2 -2
- package/dist/fields/AiCell.svelte +41 -0
- package/dist/fields/AiCell.svelte.d.ts +5 -0
- package/dist/fields/BaseChartView.svelte +1 -1
- package/dist/fields/BaseDashboardView.svelte +133 -0
- package/dist/fields/BaseDashboardView.svelte.d.ts +17 -0
- package/dist/fields/BaseImport.svelte +89 -0
- package/dist/fields/BaseImport.svelte.d.ts +15 -0
- package/dist/fields/BaseInboxView.svelte +112 -0
- package/dist/fields/BaseInboxView.svelte.d.ts +8 -0
- package/dist/fields/BaseListView.svelte +90 -0
- package/dist/fields/BaseListView.svelte.d.ts +8 -0
- package/dist/fields/BaseSearch.svelte +78 -0
- package/dist/fields/BaseSearch.svelte.d.ts +10 -0
- package/dist/fields/BaseTableView.svelte +28 -3
- package/dist/fields/BaseTableView.svelte.d.ts +5 -1
- package/dist/fields/BaseTabs.svelte +45 -8
- package/dist/fields/BaseTabs.svelte.d.ts +25 -1
- package/dist/fields/BaseTrash.svelte +63 -0
- package/dist/fields/BaseTrash.svelte.d.ts +15 -0
- package/dist/fields/ChecklistCell.svelte +22 -0
- package/dist/fields/ChecklistCell.svelte.d.ts +10 -0
- package/dist/fields/ChecklistEditor.svelte +81 -0
- package/dist/fields/ChecklistEditor.svelte.d.ts +12 -0
- package/dist/fields/ColorCell.svelte +13 -0
- package/dist/fields/ColorCell.svelte.d.ts +8 -0
- package/dist/fields/ColorEditor.svelte +60 -0
- package/dist/fields/ColorEditor.svelte.d.ts +11 -0
- package/dist/fields/DashboardRecords.svelte +35 -0
- package/dist/fields/DashboardRecords.svelte.d.ts +11 -0
- package/dist/fields/DashboardTileEditor.svelte +138 -0
- package/dist/fields/DashboardTileEditor.svelte.d.ts +15 -0
- package/dist/fields/FieldEditor.svelte +32 -3
- package/dist/fields/FieldInput.svelte +1 -1
- package/dist/fields/GroupHeader.svelte +3 -3
- package/dist/fields/ListChips.svelte +21 -0
- package/dist/fields/ListChips.svelte.d.ts +9 -0
- package/dist/fields/MentionInput.svelte +59 -0
- package/dist/fields/MentionInput.svelte.d.ts +11 -0
- package/dist/fields/PropertyInput.svelte +13 -10
- package/dist/fields/RecordView.svelte +20 -25
- package/dist/fields/SvBase.svelte +48 -9
- package/dist/fields/SvBase.svelte.d.ts +33 -1
- package/dist/fields/SvBaseForm.svelte +2 -2
- package/dist/fields/SvBaseForm.svelte.d.ts +14 -0
- package/dist/fields/SvBaseViewBar.svelte +33 -12
- package/dist/fields/SvBaseViewBar.svelte.d.ts +2 -0
- package/dist/fields/TimeOfDayEditor.svelte +39 -0
- package/dist/fields/TimeOfDayEditor.svelte.d.ts +12 -0
- package/dist/fields/activity.svelte.d.ts +29 -0
- package/dist/fields/activity.svelte.js +1 -1
- package/dist/fields/ai-field.svelte.d.ts +91 -0
- package/dist/fields/ai-field.svelte.js +1 -0
- package/dist/fields/ai-prompt.d.ts +64 -0
- package/dist/fields/ai-prompt.js +7 -0
- package/dist/fields/airtable.d.ts +90 -0
- package/dist/fields/airtable.js +1 -0
- package/dist/fields/bar-request.svelte.d.ts +1 -1
- package/dist/fields/base-history.d.ts +56 -0
- package/dist/fields/base-history.js +1 -0
- package/dist/fields/base-import.d.ts +54 -0
- package/dist/fields/base-import.js +2 -0
- package/dist/fields/base-search.d.ts +34 -0
- package/dist/fields/base-search.js +1 -0
- package/dist/fields/base-share.d.ts +45 -0
- package/dist/fields/base-share.js +1 -0
- package/dist/fields/base-sql.js +3 -3
- package/dist/fields/base-trash.d.ts +51 -0
- package/dist/fields/base-trash.js +1 -0
- package/dist/fields/builtin-types.js +1 -1
- package/dist/fields/chart-view.d.ts +12 -0
- package/dist/fields/chart-view.js +1 -1
- package/dist/fields/checklist.d.ts +36 -0
- package/dist/fields/checklist.js +4 -0
- package/dist/fields/color-value.d.ts +14 -0
- package/dist/fields/color-value.js +1 -0
- package/dist/fields/convert.js +1 -1
- package/dist/fields/copy-text.d.ts +1 -1
- package/dist/fields/copy-text.js +1 -1
- package/dist/fields/dashboard.d.ts +143 -0
- package/dist/fields/dashboard.js +1 -0
- package/dist/fields/field-access.svelte.d.ts +37 -0
- package/dist/fields/field-access.svelte.js +1 -0
- package/dist/fields/field-ops.js +1 -1
- package/dist/fields/filter-model.d.ts +4 -11
- package/dist/fields/filter-model.js +1 -1
- package/dist/fields/form-logic.d.ts +69 -0
- package/dist/fields/form-logic.js +1 -0
- package/dist/fields/formula.js +1 -1
- package/dist/fields/grid-access.d.ts +8 -0
- package/dist/fields/grid-access.js +1 -1
- package/dist/fields/index.d.ts +16 -0
- package/dist/fields/index.js +1 -1
- package/dist/fields/list-view.d.ts +40 -0
- package/dist/fields/list-view.js +1 -0
- package/dist/fields/mentions.d.ts +50 -0
- package/dist/fields/mentions.js +1 -0
- package/dist/fields/palette.d.ts +4 -2
- package/dist/fields/palette.js +1 -1
- package/dist/fields/record-menu.js +1 -1
- package/dist/fields/registry.svelte.d.ts +5 -0
- package/dist/fields/registry.svelte.js +1 -1
- package/dist/fields/time-of-day.d.ts +28 -0
- package/dist/fields/time-of-day.js +1 -0
- package/dist/fields/view-model.d.ts +24 -2
- package/dist/fields/view-model.js +1 -1
- package/dist/fields/viewbar/ConditionValue.svelte +3 -3
- package/dist/fields/viewbar/ListPanel.svelte +36 -0
- package/dist/fields/viewbar/ListPanel.svelte.d.ts +11 -0
- package/dist/fields/viewbar/ViewsMenu.svelte +27 -4
- package/dist/fields/viewbar/ViewsMenu.svelte.d.ts +6 -0
- package/dist/node/studio.js +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +1 -1
- package/dist/wc/GridFind-DsTvdUXq.js +1 -0
- package/dist/wc/GridFooter-D-i8boBh.js +1 -0
- package/dist/wc/GridMenus-CYe9Fw2I.js +20 -0
- package/dist/wc/PinSplitter-LvyyrLhe.js +6 -0
- package/dist/wc/SvChartMenu-XKW_LOYw.js +1 -0
- package/dist/wc/SvDateRangeInput-CSOxqTB1.js +1 -0
- package/dist/wc/SvDateTimePicker-DvvFs2T9.js +4 -0
- package/dist/wc/SvField-BmQphyOs.js +20 -0
- package/dist/wc/SvForm-HD7y5vmk.js +46 -0
- package/dist/wc/SvGridCellEditor-776KAOe1.js +3 -0
- package/dist/wc/SvGridChart-DC7ZUhp8.js +171 -0
- package/dist/wc/SvGridChartBuilder-Dd3vWBvq.js +7 -0
- package/dist/wc/SvGridChartPanel-CwYjF46U.js +5 -0
- package/dist/wc/SvGridChartView-CSF38rBs.js +3 -0
- package/dist/wc/SvGridDropdown-4S1G7gsP.js +30 -0
- package/dist/wc/SvMenuList-D3ZLXjL_.js +1 -0
- package/dist/wc/SvModal-Dk0YwPWp.js +7 -0
- package/dist/wc/SvSwitchButton-DdZmc3ew.js +1 -0
- package/dist/wc/SvTabs-BI2cQHyw.js +2 -0
- package/dist/wc/base-react.d.ts +38 -0
- package/dist/wc/base-react.js +1 -0
- package/dist/wc/base-vue.d.ts +29 -0
- package/dist/wc/base-vue.js +1 -0
- package/dist/wc/board-RQp5fHPR.js +21 -0
- package/dist/wc/board-view.svelte-CpxuZcEg.js +1 -0
- package/dist/wc/card-marks.svelte-QwxIcKcZ.js +1 -0
- package/dist/wc/client-DNdLmGcu.js +3 -0
- package/dist/wc/createOverlay.svelte-CDw3RXgs.js +1 -0
- package/dist/wc/custom-filter-Dp8JxlQu.js +2 -0
- package/dist/wc/date-format-DtSmFyEB.js +18 -0
- package/dist/wc/editor-registry-CkKfcVLc.js +1 -0
- package/dist/wc/export-format-CGfE9_O5.js +5 -0
- package/dist/wc/gallery-CNOHNWEJ.js +4 -0
- package/dist/wc/gallery-view.svelte-27X-wCQH.js +1 -0
- package/dist/wc/grid-extension.svelte-hgqOteka.js +1 -0
- package/dist/wc/import-B9mIERCl.js +4 -0
- package/dist/wc/js-scroller.svelte-BP8Up6_q.js +1 -0
- package/dist/wc/license-CWVWqb-i.js +27 -0
- package/dist/wc/list-option-CI4nMshZ.js +1 -0
- package/dist/wc/react.d.ts +1 -0
- package/dist/wc/react.js +1 -1
- package/dist/wc/scheduler-CkVY4od-.js +147 -0
- package/dist/wc/scheduler-view.svelte-SzG7rU8b.js +1 -0
- package/dist/wc/sparkline-DWRBQubt.js +1 -0
- package/dist/wc/sv-base-element.d.ts +87 -0
- package/dist/wc/sv-base-element.js +273 -0
- package/dist/wc/sv-sheet-element.d.ts +2 -0
- package/dist/wc/sv-sheet-element.js +55 -55
- package/dist/wc/svelte-virtualizer.svelte-CSBwEZt9.js +1 -0
- package/dist/wc/types/sv-base-element.d.ts +87 -0
- package/dist/wc/vue.d.ts +1 -0
- package/dist/wc/vue.js +1 -1
- package/package.json +18 -4
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type declarations for the <sv-base> custom element (`@svgrid/enterprise/wc/base`).
|
|
3
|
+
*
|
|
4
|
+
* Written by hand: the element's surface is a chosen subset of `<SvBase>`'s
|
|
5
|
+
* props, not all of them. The tables, columns and views are typed loosely
|
|
6
|
+
* here; import `BaseTable` and `FieldView` from `@svgrid/enterprise/base`
|
|
7
|
+
* when you want them checked.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** A table of the base: `{ id, name, columns, data, views?, primaryField?, ... }` (`BaseTable`). */
|
|
11
|
+
export type SvBaseTable = {
|
|
12
|
+
id: string
|
|
13
|
+
name: string
|
|
14
|
+
columns: unknown[]
|
|
15
|
+
data: Record<string, unknown>[]
|
|
16
|
+
views?: unknown[]
|
|
17
|
+
primaryField?: string
|
|
18
|
+
[key: string]: unknown
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** A person a user field can name (`FieldUser`). */
|
|
22
|
+
export type SvBaseUser = { id: string; name: string; email?: string; avatarUrl?: string }
|
|
23
|
+
|
|
24
|
+
export interface SvBaseElement extends HTMLElement {
|
|
25
|
+
/** property only - several tables, shown as tabs. Assigning a new list loads it. */
|
|
26
|
+
tables: SvBaseTable[] | undefined
|
|
27
|
+
/** property only - the rows of the one table, when `tables` is not set */
|
|
28
|
+
data: Record<string, unknown>[] | undefined
|
|
29
|
+
/** property only - the fields of the one table (`fieldType`, `fieldProps`) */
|
|
30
|
+
columns: unknown[] | undefined
|
|
31
|
+
/** property only - the saved views of the one table */
|
|
32
|
+
views: unknown[] | undefined
|
|
33
|
+
/** attribute `active-table` - the id of the table shown first */
|
|
34
|
+
activeTable: string | undefined
|
|
35
|
+
/** attribute `active-view` - the id of the view shown first (one table) */
|
|
36
|
+
activeView: string | undefined
|
|
37
|
+
/** attribute `primary-field` - the field that names a record (one table) */
|
|
38
|
+
primaryField: string | undefined
|
|
39
|
+
/** attribute `editable` */
|
|
40
|
+
editable: boolean | undefined
|
|
41
|
+
/** attribute `sortable` */
|
|
42
|
+
sortable: boolean | undefined
|
|
43
|
+
/** attribute `show-row-numbers` */
|
|
44
|
+
showRowNumbers: boolean | undefined
|
|
45
|
+
/** attribute `column-adder` - the "+" at the end of the header that adds a field */
|
|
46
|
+
columnAdder: boolean | undefined
|
|
47
|
+
/** attribute `field-menu` - the header menu that edits, hides and deletes a field */
|
|
48
|
+
fieldMenu: boolean | undefined
|
|
49
|
+
/** attribute `expand-rows` - the expand button on each row that opens the record */
|
|
50
|
+
expandRows: boolean | undefined
|
|
51
|
+
/** attribute `row-height` */
|
|
52
|
+
rowHeight: number | undefined
|
|
53
|
+
/** attribute `height` - pixels (`"480"`) or any CSS length (`"100%"`). Default 560. */
|
|
54
|
+
height: string | number | undefined
|
|
55
|
+
/** attribute `container-height` - the same as `height`, under `<SvBase>`'s own name */
|
|
56
|
+
containerHeight: string | number | undefined
|
|
57
|
+
/** property only - the view types the view bar offers */
|
|
58
|
+
viewTypes: string[] | undefined
|
|
59
|
+
/** property only - the people user fields choose from (`setFieldUsers`) */
|
|
60
|
+
users: SvBaseUser[] | undefined
|
|
61
|
+
/** property only - who is signed in: what "created by" and "last modified by" write (`setCurrentUser`) */
|
|
62
|
+
currentUser: SvBaseUser | null | undefined
|
|
63
|
+
/** attribute `license-key` - the @svgrid/enterprise key, for the copy of the pack inside this bundle */
|
|
64
|
+
licenseKey: string | undefined
|
|
65
|
+
/** property only - any other `<SvBase>` or `<SvGrid>` prop, passed through as is */
|
|
66
|
+
options: Record<string, unknown> | undefined
|
|
67
|
+
/** The shown grid's api, set before `ready` fires. */
|
|
68
|
+
readonly api: unknown
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** `detail` of each event. */
|
|
72
|
+
export interface SvBaseEventMap {
|
|
73
|
+
/** Every change to the tables (an edit, a field, a view, a table added). `detail` is the whole list. */
|
|
74
|
+
tableschange: CustomEvent<SvBaseTable[]>
|
|
75
|
+
/** The one table's views changed (single-table mode; with `tables` a view change is a `tableschange`). */
|
|
76
|
+
viewschange: CustomEvent<unknown[]>
|
|
77
|
+
/** Changes made in the database by someone else (tables with a realtime `source`). */
|
|
78
|
+
remotechange: CustomEvent<unknown[]>
|
|
79
|
+
/** The shown table's grid mounted. Fires again when another table's tab is opened. */
|
|
80
|
+
ready: CustomEvent<{ api: unknown }>
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare global {
|
|
84
|
+
interface HTMLElementTagNameMap {
|
|
85
|
+
'sv-base': SvBaseElement
|
|
86
|
+
}
|
|
87
|
+
}
|