lucid-extension-sdk 0.0.424 → 0.0.426
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/commandtypes.d.ts +2 -0
- package/core/cardintegration/cardfielddisplaysettings.d.ts +6 -1
- package/core/cardintegration/cardfielddisplaysettings.js +6 -1
- package/core/spreadsheetintegration/lucidspreadsheetintegration.d.ts +2 -1
- package/core/spreadsheetintegration/lucidspreadsheetintegrationregistry.js +8 -0
- package/package.json +1 -1
package/commandtypes.d.ts
CHANGED
|
@@ -1019,6 +1019,8 @@ export type AddSpreadsheetIntegrationQuery = {
|
|
|
1019
1019
|
'gu'?: string;
|
|
1020
1020
|
/** If specified, add-card settings */
|
|
1021
1021
|
'ac'?: AddCardsActions | undefined;
|
|
1022
|
+
/** fieldConfiguration */
|
|
1023
|
+
'fc'?: Partial<SerializedFieldConfiguration>;
|
|
1022
1024
|
};
|
|
1023
1025
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
1024
1026
|
export type AddSpreadsheetIntegrationResult = undefined;
|
|
@@ -3,7 +3,7 @@ import { HorizontalBadgePos, VerticalBadgePos } from '../properties/datagraphic/
|
|
|
3
3
|
/**
|
|
4
4
|
* When configuring a field on a LucidCardBlock to be displayed as a data graphic, one of these values specifies
|
|
5
5
|
* the function to convert the field value to the data graphic settings. The definition of these functions is in
|
|
6
|
-
*
|
|
6
|
+
* LucidCardsRegistry.registerDefaults.
|
|
7
7
|
*/
|
|
8
8
|
export declare enum FieldDisplayType {
|
|
9
9
|
/**
|
|
@@ -34,6 +34,11 @@ export declare enum FieldDisplayType {
|
|
|
34
34
|
* as a string, e.g. "Sep 9"
|
|
35
35
|
*/
|
|
36
36
|
DateBadge = "DateBadge",
|
|
37
|
+
/**
|
|
38
|
+
* Given a date range, display a small calendar icon alongside a short version of the date range
|
|
39
|
+
* as a string, e.g. "1/16/2025 - 2/16/2025"
|
|
40
|
+
*/
|
|
41
|
+
DateRangeBadge = "DateRangeBadge",
|
|
37
42
|
/** Given an object containing iconUrl (optional) and name (optional), determine whether
|
|
38
43
|
* to display as an ImageBadge or InitializedString (or nothing, if neither is present).
|
|
39
44
|
*
|
|
@@ -7,7 +7,7 @@ const validators_1 = require("../validators/validators");
|
|
|
7
7
|
/**
|
|
8
8
|
* When configuring a field on a LucidCardBlock to be displayed as a data graphic, one of these values specifies
|
|
9
9
|
* the function to convert the field value to the data graphic settings. The definition of these functions is in
|
|
10
|
-
*
|
|
10
|
+
* LucidCardsRegistry.registerDefaults.
|
|
11
11
|
*/
|
|
12
12
|
var FieldDisplayType;
|
|
13
13
|
(function (FieldDisplayType) {
|
|
@@ -39,6 +39,11 @@ var FieldDisplayType;
|
|
|
39
39
|
* as a string, e.g. "Sep 9"
|
|
40
40
|
*/
|
|
41
41
|
FieldDisplayType["DateBadge"] = "DateBadge";
|
|
42
|
+
/**
|
|
43
|
+
* Given a date range, display a small calendar icon alongside a short version of the date range
|
|
44
|
+
* as a string, e.g. "1/16/2025 - 2/16/2025"
|
|
45
|
+
*/
|
|
46
|
+
FieldDisplayType["DateRangeBadge"] = "DateRangeBadge";
|
|
42
47
|
/** Given an object containing iconUrl (optional) and name (optional), determine whether
|
|
43
48
|
* to display as an ImageBadge or InitializedString (or nothing, if neither is present).
|
|
44
49
|
*
|
|
@@ -3,7 +3,7 @@ import { SerializedUpstreamConfig } from '../data/datasource/serializedupstreamc
|
|
|
3
3
|
import { SerializedFieldType } from '../data/serializedfield/serializedfields';
|
|
4
4
|
import { SerializedSchema } from '../data/serializedfield/serializedschema';
|
|
5
5
|
import { UnsafeJsonSerializableOrUndefined } from '../jsonserializable';
|
|
6
|
-
import { ExtensionCardFieldDefinition } from '../sharedcardintegration/cardintegrationdefinitions';
|
|
6
|
+
import { ExtensionCardFieldDefinition, ExtensionFieldConfiguration } from '../sharedcardintegration/cardintegrationdefinitions';
|
|
7
7
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
8
8
|
export declare enum LucidSpreadsheetIntegrationFailureType {
|
|
9
9
|
AuthorizationFailure = "AuthorizationFailure",
|
|
@@ -98,4 +98,5 @@ export declare abstract class LucidSpreadsheetIntegration {
|
|
|
98
98
|
primaryKey: string;
|
|
99
99
|
}>;
|
|
100
100
|
};
|
|
101
|
+
fieldConfiguration?: Partial<ExtensionFieldConfiguration>;
|
|
101
102
|
}
|
|
@@ -13,6 +13,7 @@ class LucidSpreadsheetIntegrationRegistry {
|
|
|
13
13
|
* Register a spreadsheet integration.
|
|
14
14
|
*/
|
|
15
15
|
static addSpreadsheetIntegration(client, spreadsheetIntegration) {
|
|
16
|
+
var _a, _b, _c, _d, _e, _f;
|
|
16
17
|
let configChooserActions;
|
|
17
18
|
const configChooser = spreadsheetIntegration.configChooser;
|
|
18
19
|
if (configChooser instanceof lucidspreadsheetintegration_1.CustomDetailsChooser) {
|
|
@@ -66,6 +67,13 @@ class LucidSpreadsheetIntegrationRegistry {
|
|
|
66
67
|
'c': spreadsheetIntegration.addCardsIntegration,
|
|
67
68
|
'gs': configChooserActions,
|
|
68
69
|
'gm': getMultipleSheetsForSpreadsheetDetailsActionName,
|
|
70
|
+
'fc': {
|
|
71
|
+
'cfds': {
|
|
72
|
+
'd': (_b = (_a = spreadsheetIntegration.fieldConfiguration) === null || _a === void 0 ? void 0 : _a.customFieldDisplaySettings) === null || _b === void 0 ? void 0 : _b.defaultToMultilineText,
|
|
73
|
+
'uri': (_d = (_c = spreadsheetIntegration.fieldConfiguration) === null || _c === void 0 ? void 0 : _c.customFieldDisplaySettings) === null || _d === void 0 ? void 0 : _d.useRoundIcons,
|
|
74
|
+
'dadr': (_f = (_e = spreadsheetIntegration.fieldConfiguration) === null || _e === void 0 ? void 0 : _e.customFieldDisplaySettings) === null || _f === void 0 ? void 0 : _f.displayMappedDatesAsDateRange,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
69
77
|
};
|
|
70
78
|
if (spreadsheetIntegration.iconConfiguration) {
|
|
71
79
|
serialized['icu'] = {
|