q2-tecton-common 1.60.6 → 1.60.7
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/lib/outlets/tecton-outlet-base.js +1 -1
- package/lib/types/action-sheet.d.ts +100 -0
- package/lib/types/action-sheet.d.ts.map +1 -0
- package/lib/types/action-sheet.js +5 -0
- package/lib/types/action-sheet.js.map +1 -0
- package/lib/types/actions.d.ts +80 -0
- package/lib/types/actions.d.ts.map +1 -0
- package/lib/types/actions.js +20 -0
- package/lib/types/actions.js.map +1 -0
- package/lib/types/analytics.d.ts +11 -0
- package/lib/types/analytics.d.ts.map +1 -0
- package/lib/types/analytics.js +5 -0
- package/lib/types/analytics.js.map +1 -0
- package/lib/types/elements.d.ts +188 -0
- package/lib/types/elements.d.ts.map +1 -0
- package/lib/types/elements.js +5 -0
- package/lib/types/elements.js.map +1 -0
- package/lib/types/index.d.ts +17 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +17 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/message-bus.d.ts +24 -0
- package/lib/types/message-bus.d.ts.map +1 -0
- package/lib/types/message-bus.js +2 -0
- package/lib/types/message-bus.js.map +1 -0
- package/lib/types/modal.d.ts +43 -0
- package/lib/types/modal.d.ts.map +1 -0
- package/lib/types/modal.js +5 -0
- package/lib/types/modal.js.map +1 -0
- package/lib/types/outlet.d.ts +72 -0
- package/lib/types/outlet.d.ts.map +1 -0
- package/lib/types/outlet.js +2 -0
- package/lib/types/outlet.js.map +1 -0
- package/lib/types/response.d.ts +75 -0
- package/lib/types/response.d.ts.map +1 -0
- package/lib/types/response.js +5 -0
- package/lib/types/response.js.map +1 -0
- package/lib/types/sources.d.ts +62 -0
- package/lib/types/sources.d.ts.map +1 -0
- package/lib/types/sources.js +2 -0
- package/lib/types/sources.js.map +1 -0
- package/lib/types/tabs.d.ts +49 -0
- package/lib/types/tabs.d.ts.map +1 -0
- package/lib/types/tabs.js +2 -0
- package/lib/types/tabs.js.map +1 -0
- package/package.json +33 -34
|
@@ -93,7 +93,7 @@ export function makeTectonElement(elementName, { messageBus, props, moduleId, te
|
|
|
93
93
|
display: block;
|
|
94
94
|
height: 100%;
|
|
95
95
|
}
|
|
96
|
-
.outlet-wrapper {
|
|
96
|
+
.root:has(~ .loading-wrapper:not([hidden])) .outlet-wrapper {
|
|
97
97
|
min-height: calc(var(--tct-loading-spinner-size, var(--app-scale-12x, 60px)) + 2px);
|
|
98
98
|
}
|
|
99
99
|
.loading-wrapper {
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data payload for displaying an action sheet.
|
|
3
|
+
* Can be undefined, a message-style alert, or a list selection.
|
|
4
|
+
*
|
|
5
|
+
* @see showActionSheet - SDK/platform utility that accepts this type
|
|
6
|
+
*/
|
|
7
|
+
export type ActionSheetData = undefined | ActionSheetMessageData | ActionSheetListData;
|
|
8
|
+
/**
|
|
9
|
+
* Configuration for a message-style action sheet.
|
|
10
|
+
* Displays an alert with an icon indicating the message type.
|
|
11
|
+
*/
|
|
12
|
+
export type ActionSheetMessageData = {
|
|
13
|
+
appearance: 'message';
|
|
14
|
+
type: 'info' | 'success' | 'warning' | 'error';
|
|
15
|
+
title?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
slotsHtml?: ActionSheetStaticHtmlData[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Array of options or option groups for a list-style action sheet.
|
|
21
|
+
*/
|
|
22
|
+
export type ActionSheetListDataOptions = (ActionSheetListOptgroup | ActionSheetListOption)[] | ActionSheetStaticHtmlData[];
|
|
23
|
+
/**
|
|
24
|
+
* A grouped set of options within a list-style action sheet.
|
|
25
|
+
*/
|
|
26
|
+
export interface ActionSheetListOptgroup {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
label: string;
|
|
29
|
+
options: ActionSheetListOption[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A single selectable option within a list-style action sheet.
|
|
33
|
+
*/
|
|
34
|
+
export interface ActionSheetListOption {
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
display: string;
|
|
37
|
+
hidden: boolean;
|
|
38
|
+
separator: boolean;
|
|
39
|
+
multiline: boolean;
|
|
40
|
+
value: string;
|
|
41
|
+
innerHTML: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Represents a selected option from an action sheet list.
|
|
45
|
+
*/
|
|
46
|
+
export interface ActionSheetSelectedOption {
|
|
47
|
+
value: string;
|
|
48
|
+
display: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Configuration for a list-style action sheet.
|
|
52
|
+
* Displays a selectable list of options with optional multi-select support.
|
|
53
|
+
*/
|
|
54
|
+
export type ActionSheetListData = {
|
|
55
|
+
appearance: 'list';
|
|
56
|
+
title?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
event?: MouseEvent | KeyboardEvent | undefined;
|
|
59
|
+
listProps: {
|
|
60
|
+
multiple: boolean;
|
|
61
|
+
selectedOptions: ActionSheetSelectedOption[];
|
|
62
|
+
noSelect: boolean;
|
|
63
|
+
};
|
|
64
|
+
options: ActionSheetListDataOptions;
|
|
65
|
+
slotsHtml?: ActionSheetStaticHtmlData[];
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Slotted into action sheet as a static html
|
|
69
|
+
* Contains non-interactive static html
|
|
70
|
+
*/
|
|
71
|
+
export type ActionSheetStaticHtmlData = {
|
|
72
|
+
slot: string;
|
|
73
|
+
html: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Data returned when an action sheet is closed.
|
|
77
|
+
* Contains the selected value(s) and whether the user confirmed or cancelled.
|
|
78
|
+
*/
|
|
79
|
+
export interface ActionSheetListCloseData {
|
|
80
|
+
value?: string;
|
|
81
|
+
values?: ActionSheetSelectedOption[];
|
|
82
|
+
type: 'cancel' | 'confirm';
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Function signature for showing an action sheet.
|
|
86
|
+
*
|
|
87
|
+
* @see showActionSheet - Implementation in q2-tecton-common/utility
|
|
88
|
+
*/
|
|
89
|
+
export type ShowActionSheetFn = (data: ActionSheetData, selectors?: string[]) => Promise<ActionSheetListCloseData>;
|
|
90
|
+
/**
|
|
91
|
+
* Extended HTMLElement interface for the q2-action-sheet custom element.
|
|
92
|
+
* Provides type-safe access to the action sheet's properties and methods.
|
|
93
|
+
*
|
|
94
|
+
* @see q2-action-sheet - Component in q2-tecton-elements
|
|
95
|
+
*/
|
|
96
|
+
export interface HTMLQ2ActionSheetElement extends HTMLElement {
|
|
97
|
+
show: () => Promise<void>;
|
|
98
|
+
data: ActionSheetData;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=action-sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-sheet.d.ts","sourceRoot":"","sources":["../../src/types/action-sheet.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,sBAAsB,GAAG,mBAAmB,CAAC;AAEvF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,UAAU,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,yBAAyB,EAAE,CAAC;CAC3C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAChC,CAAC,uBAAuB,GAAG,qBAAqB,CAAC,EAAE,GACnD,yBAAyB,EAAE,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,qBAAqB,EAAE,CAAC;CACpC;AAED;;GAE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M,WAAW,wBAAyB,SAAQ,WAAW;IACzD,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,IAAI,EAAE,eAAe,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-sheet.js","sourceRoot":"","sources":["../../src/types/action-sheet.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Visual style types for platform alert notifications.
|
|
3
|
+
* Determines the color scheme and icon displayed with the alert.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @see showAlert action in q2-tecton-sdk
|
|
7
|
+
* @see sendAlert-setup in q2-tecton-platform
|
|
8
|
+
*/
|
|
9
|
+
export declare enum PlatformAlertType {
|
|
10
|
+
Info = "info",
|
|
11
|
+
Error = "error",
|
|
12
|
+
Danger = "danger",
|
|
13
|
+
Warning = "warning",
|
|
14
|
+
Success = "success"
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Options for the scrollTo action controlling scroll positioning.
|
|
18
|
+
* Supports scrolling to specific coordinates, elements via selector, or with animation.
|
|
19
|
+
*
|
|
20
|
+
* @see scrollTo action in q2-tecton-sdk and q2-tecton-platform
|
|
21
|
+
*/
|
|
22
|
+
export type ScrollOption = {
|
|
23
|
+
selector?: string;
|
|
24
|
+
top?: number;
|
|
25
|
+
left?: number;
|
|
26
|
+
behavior?: ScrollBehavior;
|
|
27
|
+
initialize?: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Base navigation options used when an alert click triggers navigation.
|
|
31
|
+
* Provides the foundation for specifying which module to navigate to and its configuration.
|
|
32
|
+
*/
|
|
33
|
+
export interface BasePlatformNavigationOptions<ModuleName extends string = string, ModuleOptions = Record<string, any>> {
|
|
34
|
+
moduleName: ModuleName;
|
|
35
|
+
moduleOptions: ModuleOptions;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Navigation options for opening an overpanel when an alert is clicked.
|
|
39
|
+
* Extends base navigation with the requirement that the target opens as an overpanel.
|
|
40
|
+
*/
|
|
41
|
+
export interface AlertNavigationViaOverpanelOptions<ModuleName extends string = string, ModuleOptions = Record<string, any>> extends BasePlatformNavigationOptions<ModuleName, ModuleOptions> {
|
|
42
|
+
asOverpanel: true;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Navigation options for standard platform navigation when an alert is clicked.
|
|
46
|
+
* Extends base navigation with the requirement that the target opens inline (not as an overpanel).
|
|
47
|
+
*/
|
|
48
|
+
export interface PlatformNavigationOptions<ModuleName extends string = string, ModuleOptions = Record<string, any>> extends BasePlatformNavigationOptions<ModuleName, ModuleOptions> {
|
|
49
|
+
asOverpanel: false;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Union type for all alert navigation options.
|
|
53
|
+
* Allows alerts to navigate either via overpanel or standard platform navigation.
|
|
54
|
+
*/
|
|
55
|
+
export type AlertNavigationOptions = AlertNavigationViaOverpanelOptions | PlatformNavigationOptions;
|
|
56
|
+
/**
|
|
57
|
+
* Configuration options for platform alert/toast notifications.
|
|
58
|
+
* Controls the message content, visual style, duration, and optional navigation behavior.
|
|
59
|
+
*/
|
|
60
|
+
export interface PlatformAlertOptions<Type extends PlatformAlertType = PlatformAlertType> {
|
|
61
|
+
msg?: string;
|
|
62
|
+
message?: string;
|
|
63
|
+
styleType: Type;
|
|
64
|
+
closable?: boolean;
|
|
65
|
+
durationInMs?: number;
|
|
66
|
+
onClickNavigation?: AlertNavigationOptions | void;
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Options for the openURL capability controlling how external URLs are opened.
|
|
71
|
+
* Allows configuration of modal display, overpanel rendering, and native browser behavior.
|
|
72
|
+
*/
|
|
73
|
+
export interface OpenUrlOptions {
|
|
74
|
+
showInModal?: boolean;
|
|
75
|
+
showInOverpanel?: boolean;
|
|
76
|
+
nativeBrowserIfInApp?: boolean;
|
|
77
|
+
requiresToken?: boolean;
|
|
78
|
+
closeOverpanel?: boolean;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/types/actions.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAMD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAMF;;;GAGG;AACH,MAAM,WAAW,6BAA6B,CAC1C,UAAU,SAAS,MAAM,GAAG,MAAM,EAClC,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAEnC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,kCAAkC,CAC/C,UAAU,SAAS,MAAM,GAAG,MAAM,EAClC,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACrC,SAAQ,6BAA6B,CAAC,UAAU,EAAE,aAAa,CAAC;IAC9D,WAAW,EAAE,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB,CAAC,UAAU,SAAS,MAAM,GAAG,MAAM,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC9G,SAAQ,6BAA6B,CAAC,UAAU,EAAE,aAAa,CAAC;IAChE,WAAW,EAAE,KAAK,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,kCAAkC,GAAG,yBAAyB,CAAC;AAMpG;;;GAGG;AACH,MAAM,WAAW,oBAAoB,CAAC,IAAI,SAAS,iBAAiB,GAAG,iBAAiB;IACpF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAClD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAMD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Alert and Notification Types
|
|
3
|
+
// ============================================================================
|
|
4
|
+
/**
|
|
5
|
+
* Visual style types for platform alert notifications.
|
|
6
|
+
* Determines the color scheme and icon displayed with the alert.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* @see showAlert action in q2-tecton-sdk
|
|
10
|
+
* @see sendAlert-setup in q2-tecton-platform
|
|
11
|
+
*/
|
|
12
|
+
export var PlatformAlertType;
|
|
13
|
+
(function (PlatformAlertType) {
|
|
14
|
+
PlatformAlertType["Info"] = "info";
|
|
15
|
+
PlatformAlertType["Error"] = "error";
|
|
16
|
+
PlatformAlertType["Danger"] = "danger";
|
|
17
|
+
PlatformAlertType["Warning"] = "warning";
|
|
18
|
+
PlatformAlertType["Success"] = "success";
|
|
19
|
+
})(PlatformAlertType || (PlatformAlertType = {}));
|
|
20
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/types/actions.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAE/E;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IACzB,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;AACvB,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pendo visitor identification data.
|
|
3
|
+
* Contains the unique visitor ID and additional custom properties
|
|
4
|
+
* used for analytics segmentation and tracking.
|
|
5
|
+
*
|
|
6
|
+
* @see getPendoInfo - Used in PendoOptions.visitor
|
|
7
|
+
*/
|
|
8
|
+
export interface PendoVisitor extends Record<string, string | boolean> {
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/types/analytics.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAClE,EAAE,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../src/types/analytics.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base data structure for chart visualizations.
|
|
3
|
+
*
|
|
4
|
+
* @see q2-tecton-elements chart components
|
|
5
|
+
*/
|
|
6
|
+
export interface ChartData {
|
|
7
|
+
id: string;
|
|
8
|
+
value: number;
|
|
9
|
+
name: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Extended data structure for donut chart visualizations.
|
|
14
|
+
*
|
|
15
|
+
* @see tct-donut-chart component in q2-tecton-elements
|
|
16
|
+
*/
|
|
17
|
+
export interface DonutChartData extends ChartData {
|
|
18
|
+
icon?: string;
|
|
19
|
+
itemStyle?: any;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Horizontal alignment options for data table cells.
|
|
23
|
+
*
|
|
24
|
+
* @see q2-data-table component in q2-tecton-elements
|
|
25
|
+
*/
|
|
26
|
+
export type Q2DataTableCellAlignOptions = 'start' | 'center' | 'end';
|
|
27
|
+
/**
|
|
28
|
+
* Discriminated union describing the visual type of a data table cell.
|
|
29
|
+
* The `badge` variant exposes additional styling props.
|
|
30
|
+
*
|
|
31
|
+
* @see q2-data-table component in q2-tecton-elements
|
|
32
|
+
*/
|
|
33
|
+
export type Q2DataTableCellType = {
|
|
34
|
+
type?: 'text' | 'number' | 'icon' | 'boolean' | 'code';
|
|
35
|
+
} | {
|
|
36
|
+
type?: 'badge';
|
|
37
|
+
/** Matches q2-badge `status` prop values. */
|
|
38
|
+
badgeStatus?: 'info' | 'alert' | 'warning' | 'success';
|
|
39
|
+
/** Matches q2-badge `theme` prop values. */
|
|
40
|
+
badgeTheme?: 'primary' | 'secondary' | 'tertiary';
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Column header configuration for a data table.
|
|
44
|
+
*
|
|
45
|
+
* @see q2-data-table component in q2-tecton-elements
|
|
46
|
+
*/
|
|
47
|
+
export type Q2DataTableHeader = {
|
|
48
|
+
title: string;
|
|
49
|
+
align?: Q2DataTableCellAlignOptions;
|
|
50
|
+
/** Auto-generated from title if not provided. Used to match data keys in rows. */
|
|
51
|
+
key?: string;
|
|
52
|
+
sortable?: boolean | 'auto' | 'manual';
|
|
53
|
+
width?: string;
|
|
54
|
+
backgroundColor?: string;
|
|
55
|
+
sorted?: 'ASC' | 'DESC';
|
|
56
|
+
ariaLabel?: string;
|
|
57
|
+
lineClamp?: number;
|
|
58
|
+
verticalAlign?: 'top' | 'bottom';
|
|
59
|
+
} & Partial<Q2DataTableCellType>;
|
|
60
|
+
/**
|
|
61
|
+
* Individual cell data within a data table row.
|
|
62
|
+
*
|
|
63
|
+
* @see q2-data-table component in q2-tecton-elements
|
|
64
|
+
*/
|
|
65
|
+
export type Q2DataTableCell = {
|
|
66
|
+
value: string | number | boolean;
|
|
67
|
+
align?: Q2DataTableCellAlignOptions;
|
|
68
|
+
ariaLabel?: string;
|
|
69
|
+
lineClamp?: number;
|
|
70
|
+
verticalAlign?: 'top' | 'bottom';
|
|
71
|
+
} & Q2DataTableCellType;
|
|
72
|
+
/**
|
|
73
|
+
* Base properties shared by all data table row types.
|
|
74
|
+
*
|
|
75
|
+
* @see q2-data-table component in q2-tecton-elements
|
|
76
|
+
*/
|
|
77
|
+
export type Q2DataTableBaseRow = {
|
|
78
|
+
id: string | number;
|
|
79
|
+
selected?: boolean;
|
|
80
|
+
expanded?: boolean;
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
selectAriaLabel?: string | string[];
|
|
83
|
+
status?: 'info' | 'alert' | 'error' | 'warning' | 'success';
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Map of column keys to cell values or full cell configurations within a row.
|
|
87
|
+
*
|
|
88
|
+
* @see q2-data-table component in q2-tecton-elements
|
|
89
|
+
*/
|
|
90
|
+
export type Q2DataTableCells = Record<string, string | number | Q2DataTableCell>;
|
|
91
|
+
/**
|
|
92
|
+
* Map of column keys to fully-serialized cell configurations within a row.
|
|
93
|
+
*
|
|
94
|
+
* @see q2-data-table component in q2-tecton-elements
|
|
95
|
+
*/
|
|
96
|
+
export type Q2DataTableSerializedCells = Record<string, Q2DataTableCell>;
|
|
97
|
+
/**
|
|
98
|
+
* Complete data table row combining base row properties and cell data.
|
|
99
|
+
*
|
|
100
|
+
* @see q2-data-table component in q2-tecton-elements
|
|
101
|
+
*/
|
|
102
|
+
export type Q2DataTableRow = Q2DataTableBaseRow & {
|
|
103
|
+
cells: Q2DataTableCells;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Data table row with cells normalized to fully-serialized form.
|
|
107
|
+
*
|
|
108
|
+
* @see q2-data-table component in q2-tecton-elements
|
|
109
|
+
*/
|
|
110
|
+
export type Q2DataTableSerializedRow = Q2DataTableBaseRow & {
|
|
111
|
+
cells: Q2DataTableSerializedCells;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Status descriptor for a file that has passed validation in the file picker.
|
|
115
|
+
*
|
|
116
|
+
* @see q2-file-picker component in q2-tecton-elements
|
|
117
|
+
*/
|
|
118
|
+
export type ValidFileStatus = {
|
|
119
|
+
name: string;
|
|
120
|
+
status: 'in-progress' | 'failed' | 'uploaded';
|
|
121
|
+
message?: string;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Status descriptor for a file that failed validation in the file picker.
|
|
125
|
+
*
|
|
126
|
+
* @see q2-file-picker component in q2-tecton-elements
|
|
127
|
+
*/
|
|
128
|
+
export type InvalidFileStatus = {
|
|
129
|
+
file: File;
|
|
130
|
+
status: 'invalid-type' | 'over-size-limit' | 'over-max-files-limit';
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Container holding both valid and invalid files from a file picker selection event.
|
|
134
|
+
*
|
|
135
|
+
* @see q2-file-picker component in q2-tecton-elements
|
|
136
|
+
*/
|
|
137
|
+
export type FilesObject = {
|
|
138
|
+
invalidFiles: InvalidFileStatus[];
|
|
139
|
+
validFiles: File[];
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Base value container pairing a raw string value with its formatted counterpart.
|
|
143
|
+
*
|
|
144
|
+
* @see q2-input component in q2-tecton-elements
|
|
145
|
+
*/
|
|
146
|
+
export interface ValueObject {
|
|
147
|
+
value: string;
|
|
148
|
+
formattedValue: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Event payload emitted by input components on change and input events.
|
|
152
|
+
*
|
|
153
|
+
* @see q2-input component in q2-tecton-elements
|
|
154
|
+
*/
|
|
155
|
+
export interface EventDetail extends ValueObject {
|
|
156
|
+
minFormattedLength?: number;
|
|
157
|
+
/** Credit card type */
|
|
158
|
+
type?: string;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Extended value object carrying full formatter metadata for input components.
|
|
162
|
+
*
|
|
163
|
+
* @see q2-input component in q2-tecton-elements
|
|
164
|
+
*/
|
|
165
|
+
export interface FormatterValueObject extends ValueObject {
|
|
166
|
+
fullyFormattedValue: string;
|
|
167
|
+
prefix?: string;
|
|
168
|
+
suffix?: string;
|
|
169
|
+
formattingCharacterCount?: number;
|
|
170
|
+
maxlength?: number;
|
|
171
|
+
minFormattedLength?: number;
|
|
172
|
+
unformattedValue?: string;
|
|
173
|
+
type?: string;
|
|
174
|
+
leftIcon?: string;
|
|
175
|
+
leftIconMuted?: boolean;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Payload emitted by the q2-stepper-pane tctActiveChange and tctStatusChange events.
|
|
179
|
+
*
|
|
180
|
+
* @see q2-stepper-pane component in q2-tecton-elements
|
|
181
|
+
*/
|
|
182
|
+
export interface StepperPaneEvent {
|
|
183
|
+
status: string;
|
|
184
|
+
isActive: boolean;
|
|
185
|
+
id: string;
|
|
186
|
+
host: HTMLElement;
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=elements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/types/elements.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,M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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './action-sheet';
|
|
2
|
+
export * from './actions';
|
|
3
|
+
export * from './analytics';
|
|
4
|
+
export * from './config';
|
|
5
|
+
export * from './cssThemeProperty';
|
|
6
|
+
export * from './elements';
|
|
7
|
+
export * from './mobile';
|
|
8
|
+
export * from './modal';
|
|
9
|
+
export * from './outlet';
|
|
10
|
+
export * from './overpanels';
|
|
11
|
+
export * from './platformDimensions';
|
|
12
|
+
export * from './request';
|
|
13
|
+
export * from './response';
|
|
14
|
+
export * from './sources';
|
|
15
|
+
export * from './tabs';
|
|
16
|
+
export * from './windows';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './action-sheet';
|
|
2
|
+
export * from './actions';
|
|
3
|
+
export * from './analytics';
|
|
4
|
+
export * from './config.js';
|
|
5
|
+
export * from './cssThemeProperty.js';
|
|
6
|
+
export * from './elements';
|
|
7
|
+
export * from './mobile.js';
|
|
8
|
+
export * from './modal';
|
|
9
|
+
export * from './outlet';
|
|
10
|
+
export * from './overpanels.js';
|
|
11
|
+
export * from './platformDimensions.js';
|
|
12
|
+
export * from './request.js';
|
|
13
|
+
export * from './response';
|
|
14
|
+
export * from './sources';
|
|
15
|
+
export * from './tabs';
|
|
16
|
+
export * from './windows.js';
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Observable, Subscription } from 'rxjs';
|
|
2
|
+
import type { Maybe } from 'maybe-not';
|
|
3
|
+
import type { ResponseCallback, TectonMessageSuccessResponse } from './response';
|
|
4
|
+
/**
|
|
5
|
+
* Message protocol types for inter-window communication.
|
|
6
|
+
* REQUEST expects a response, RESPONSE answers a request,
|
|
7
|
+
* MESSAGE is one-way, and BROADCAST reaches all listeners.
|
|
8
|
+
*/
|
|
9
|
+
export type Protocol = 'REQUEST' | 'RESPONSE' | 'MESSAGE' | 'BROADCAST';
|
|
10
|
+
/**
|
|
11
|
+
* Interface for the message bus communication system.
|
|
12
|
+
* Provides methods for sending and receiving messages between windows.
|
|
13
|
+
*
|
|
14
|
+
* @typeParam T - The expected type of the message value (for onMessage)
|
|
15
|
+
* @typeParam R - The expected type of the response value (for sendRequest/sendResponse)
|
|
16
|
+
*
|
|
17
|
+
* @see MessageBus - Implementation in q2-tecton-common/utility
|
|
18
|
+
*/
|
|
19
|
+
export interface TectonMessageBus {
|
|
20
|
+
onMessage<T>(type: string, protocol?: Protocol, guid?: number | null): Observable<TectonMessageSuccessResponse<T>>;
|
|
21
|
+
sendRequest<R>(type: string, message: Maybe<string>): Promise<TectonMessageSuccessResponse<R>>;
|
|
22
|
+
sendResponse<T, R>(type: string, generateResponse: ResponseCallback<T, R>): Subscription;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=message-bus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-bus.d.ts","sourceRoot":"","sources":["../../src/types/message-bus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAMjF;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AAExE;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC7B,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC;IACnH,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/F,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,YAAY,CAAC;CAC5F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-bus.js","sourceRoot":"","sources":["../../src/types/message-bus.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for displaying a modal dialog.
|
|
3
|
+
*
|
|
4
|
+
* @see openModal - SDK/platform utility that accepts this type
|
|
5
|
+
*/
|
|
6
|
+
export type ModalOption = {
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
customMarkup?: string;
|
|
10
|
+
imageSrc?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
iconStrokePrimary?: string;
|
|
13
|
+
iconStrokeSecondary?: string;
|
|
14
|
+
iconFillColor?: string;
|
|
15
|
+
iconStrokeWidth?: string;
|
|
16
|
+
closeable?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Response data returned when a modal is closed.
|
|
20
|
+
*/
|
|
21
|
+
export type ModalResponse = {
|
|
22
|
+
appearance: 'message';
|
|
23
|
+
type: 'info' | 'success' | 'warning' | 'error';
|
|
24
|
+
title?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Function signature for showing a modal dialog.
|
|
29
|
+
*
|
|
30
|
+
* @see openModal - Implementation in q2-tecton-common/utility
|
|
31
|
+
*/
|
|
32
|
+
export type ShowModalFn = (data: ModalOption) => Promise<ModalResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Extended HTMLElement interface for the q2-modal custom element.
|
|
35
|
+
* Provides type-safe access to the modal's properties and methods.
|
|
36
|
+
*
|
|
37
|
+
* @see q2-modal - Component in q2-tecton-elements
|
|
38
|
+
*/
|
|
39
|
+
export interface HTMLQ2ModalElement extends HTMLElement {
|
|
40
|
+
open: () => Promise<void>;
|
|
41
|
+
option: ModalOption;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/types/modal.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,UAAU,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;AAExE;;;;;GAKG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACnD,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,MAAM,EAAE,WAAW,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/types/modal.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,cAAc;AACd,+EAA+E"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ObservedProperty, Effect } from 'dry-suite';
|
|
2
|
+
import type { Observable, BehaviorSubject } from 'rxjs';
|
|
3
|
+
import type { DSCustomElement } from 'dry-suite';
|
|
4
|
+
import type { TectonMessageBus } from './message-bus';
|
|
5
|
+
/**
|
|
6
|
+
* Configuration options for creating a platform outlet custom element.
|
|
7
|
+
*
|
|
8
|
+
* @see makeTectonElement - Factory function that accepts these options
|
|
9
|
+
*/
|
|
10
|
+
export interface PlatformOutletOptions {
|
|
11
|
+
messageBus: TectonMessageBus;
|
|
12
|
+
moduleId: string;
|
|
13
|
+
props: ObservedProperty[];
|
|
14
|
+
tectonOutletAdaptor: tectonOutletAdaptor;
|
|
15
|
+
resize?: () => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Cleanup function returned by outlet setup operations.
|
|
19
|
+
* Call this function to properly dispose of resources and subscriptions.
|
|
20
|
+
*/
|
|
21
|
+
export type Teardown = () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Response object returned by a tecton outlet adaptor containing reactive streams
|
|
24
|
+
* for managing the outlet's DOM, lifecycle, and side effects.
|
|
25
|
+
*
|
|
26
|
+
* @see tectonOutletAdaptor - Function type that returns this response
|
|
27
|
+
*/
|
|
28
|
+
export interface TectonOutletAdaptorResponse {
|
|
29
|
+
DOM$: BehaviorSubject<HTMLElement>;
|
|
30
|
+
teardown$: BehaviorSubject<Teardown>;
|
|
31
|
+
settled$: BehaviorSubject<boolean>;
|
|
32
|
+
effect$: Observable<Effect>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Adaptor function type that connects an outlet to the message bus and manages its lifecycle.
|
|
36
|
+
*
|
|
37
|
+
* @param messageBus - Message bus for platform/feature communication
|
|
38
|
+
* @param outletPath - Full path identifier for the outlet (e.g., "moduleId.outletName")
|
|
39
|
+
* @param customElement - The custom element instance being adapted
|
|
40
|
+
* @param props$ - Observable stream of the element's current properties
|
|
41
|
+
* @param resize - Optional callback to invoke when the outlet resizes
|
|
42
|
+
* @returns Response object containing reactive streams for DOM, teardown, settled state, and effects
|
|
43
|
+
*
|
|
44
|
+
* @see tectonFeatureOutlet - SDK implementation
|
|
45
|
+
* @see platformOutlet - Platform implementation
|
|
46
|
+
*/
|
|
47
|
+
export type tectonOutletAdaptor = (messageBus: TectonMessageBus, outletPath: string, customElement: DSCustomElement, props$: BehaviorSubject<Record<string, any>>, resize?: () => void) => TectonOutletAdaptorResponse;
|
|
48
|
+
/**
|
|
49
|
+
* Result object returned when creating an iframe wrapper for an outlet.
|
|
50
|
+
*
|
|
51
|
+
* @see setupOutletIFrameWrapper - Function that returns this result
|
|
52
|
+
*/
|
|
53
|
+
export interface FrameWrapperResult {
|
|
54
|
+
element: HTMLDivElement;
|
|
55
|
+
cleanup: () => void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Base custom element interface for outlet components.
|
|
59
|
+
* Extends DSCustomElement with an optional name property for outlet identification.
|
|
60
|
+
*/
|
|
61
|
+
export interface OutletElement extends DSCustomElement {
|
|
62
|
+
name?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Platform outlet element type alias for backwards compatibility.
|
|
66
|
+
*/
|
|
67
|
+
export type PlatformOutletElement = OutletElement;
|
|
68
|
+
/**
|
|
69
|
+
* Feature outlet element type alias for backwards compatibility.
|
|
70
|
+
*/
|
|
71
|
+
export type FeatureOutletElement = OutletElement;
|
|
72
|
+
//# sourceMappingURL=outlet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outlet.d.ts","sourceRoot":"","sources":["../../src/types/outlet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAMtD;;;;GAIG;AACH,MAAM,WAAW,qB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
|
2
|
+
* Callback function type for generating responses to message bus requests.
|
|
3
|
+
*
|
|
4
|
+
* @typeParam T - The type of the incoming message body
|
|
5
|
+
* @typeParam R - The type of the response data (defaults to Record<string, string>)
|
|
6
|
+
* @param messageBody - The parsed message body from the request
|
|
7
|
+
* @param sender - The window that sent the request
|
|
8
|
+
* @returns A promise resolving to the response data, or null to skip responding
|
|
9
|
+
*
|
|
10
|
+
* @see TectonMessageBus.sendResponse - Uses this callback type
|
|
11
|
+
*/
|
|
12
|
+
export type ResponseCallback<T, R = Record<string, string>> = (messageBody: T, sender?: Window) => Promise<R> | null;
|
|
13
|
+
/**
|
|
14
|
+
* Union type representing either a successful or error response from the message bus.
|
|
15
|
+
*
|
|
16
|
+
* @typeParam T - The type of the value in a successful response
|
|
17
|
+
*/
|
|
18
|
+
export type TectonMessageResponse<T> = TectonMessageSuccessResponse<T> | TectonMessageErrorResponse;
|
|
19
|
+
/**
|
|
20
|
+
* Successful response from a message bus request.
|
|
21
|
+
* Contains the parsed value and metadata about the message.
|
|
22
|
+
*
|
|
23
|
+
* @typeParam T - The type of the response value
|
|
24
|
+
*
|
|
25
|
+
* @see TectonMessageBus.sendRequest - Returns this type
|
|
26
|
+
* @see TectonMessageBus.onMessage - Emits this type
|
|
27
|
+
*/
|
|
28
|
+
export interface TectonMessageSuccessResponse<T> {
|
|
29
|
+
status: 'success';
|
|
30
|
+
value: T;
|
|
31
|
+
sender: Window;
|
|
32
|
+
type: string;
|
|
33
|
+
guid: number | null;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Error response from a message bus request.
|
|
37
|
+
* Contains the error message and metadata about the failed request.
|
|
38
|
+
*/
|
|
39
|
+
export interface TectonMessageErrorResponse {
|
|
40
|
+
status: 'error';
|
|
41
|
+
message: string;
|
|
42
|
+
sender: Window;
|
|
43
|
+
type: string;
|
|
44
|
+
guid: number | null;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Standard response format from Tecton platform data requests.
|
|
48
|
+
* Wraps HTTP responses with consistent status and response body access.
|
|
49
|
+
* Used by both SDK and platform for platform data communication.
|
|
50
|
+
*
|
|
51
|
+
* @see requestPlatformData - Used as return type for platform data requests
|
|
52
|
+
*/
|
|
53
|
+
export interface TectonResponse {
|
|
54
|
+
response: any;
|
|
55
|
+
status: number;
|
|
56
|
+
statusText: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Outlet bounding box and dimension information.
|
|
60
|
+
* Provides position and size data for outlet elements, matching DOMRect structure.
|
|
61
|
+
* Returned by requestOutletInfo capability to give features their container dimensions.
|
|
62
|
+
*
|
|
63
|
+
* @see requestOutletInfo - Return type for outlet dimension queries
|
|
64
|
+
*/
|
|
65
|
+
export interface OutletInfo {
|
|
66
|
+
bottom: number;
|
|
67
|
+
height: number;
|
|
68
|
+
left: number;
|
|
69
|
+
right: number;
|
|
70
|
+
top: number;
|
|
71
|
+
width: number;
|
|
72
|
+
x: number;
|
|
73
|
+
y: number;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../src/types/response.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AAErH;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI,4BAA4B,CAAC,CAAC,CAAC,GAAG,0BAA0B,CAAC;AAEpG;;;;;;;;GAQG;AACH,MAAM,WAAW,4BAA4B,CAAC,CAAC;IAC3C,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,CAAC,CAAC;IACT,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAMD;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../src/types/response.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PendoVisitor } from './analytics';
|
|
2
|
+
/**
|
|
3
|
+
* Response from extension data requests.
|
|
4
|
+
* Contains the response data along with HTTP status information.
|
|
5
|
+
*/
|
|
6
|
+
export interface ExtensionResponse<T = any> {
|
|
7
|
+
data: T;
|
|
8
|
+
status: number;
|
|
9
|
+
statusText: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Theme information exposed by the platform.
|
|
13
|
+
* Contains the active theme name and its associated aesthetic, when available.
|
|
14
|
+
*/
|
|
15
|
+
export interface ThemeInfo {
|
|
16
|
+
themeName: string;
|
|
17
|
+
aesthetic: string | null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Platform event notification payload for broadcasting events to features.
|
|
21
|
+
*/
|
|
22
|
+
export interface PlatformEvent {
|
|
23
|
+
name: string;
|
|
24
|
+
data?: Record<string, any> | string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Scroll position data from platform scroll event notifications.
|
|
28
|
+
*/
|
|
29
|
+
export interface ScrollData {
|
|
30
|
+
scrollY?: number;
|
|
31
|
+
innerHeight?: number;
|
|
32
|
+
innerWidth?: number;
|
|
33
|
+
top?: number;
|
|
34
|
+
bottom?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Pendo account configuration for multi-account analytics.
|
|
38
|
+
*/
|
|
39
|
+
export interface PendoAccount extends Record<string, any> {
|
|
40
|
+
id: string;
|
|
41
|
+
env?: string;
|
|
42
|
+
url?: string;
|
|
43
|
+
version?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Pendo initialization options for analytics configuration.
|
|
47
|
+
*/
|
|
48
|
+
export interface PendoOptions {
|
|
49
|
+
apiKey?: string;
|
|
50
|
+
additionalApiKeys?: string[];
|
|
51
|
+
visitor: PendoVisitor;
|
|
52
|
+
account?: PendoAccount;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Complete Pendo configuration from the getPendoInfo capability.
|
|
56
|
+
*/
|
|
57
|
+
export interface PendoInfo {
|
|
58
|
+
isPendo: boolean;
|
|
59
|
+
pendoOptions: PendoOptions;
|
|
60
|
+
pendoScriptUrl?: string;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../src/types/sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAMhD;;;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,"file":"sources.js","sourceRoot":"","sources":["../../src/types/sources.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { LoadingOptions } from './config';
|
|
2
|
+
/**
|
|
3
|
+
* Tab configuration provided directly by a module.
|
|
4
|
+
* Represents a tab that the module itself defines rather than resolving from config.
|
|
5
|
+
* Discriminated by provided: true.
|
|
6
|
+
*
|
|
7
|
+
* @see ResolvedTab - Part of the resolved tab union type
|
|
8
|
+
*/
|
|
9
|
+
export interface ModuleProvidedTab {
|
|
10
|
+
tabLabel: string;
|
|
11
|
+
provided: true;
|
|
12
|
+
url: '';
|
|
13
|
+
moduleId: '';
|
|
14
|
+
initialParams: object;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Base information for a resolved tab.
|
|
18
|
+
* Contains the URL, module ID, and initial parameters for the tab's content.
|
|
19
|
+
*
|
|
20
|
+
* @see TectonResolvedTab - Extends this with full tab configuration
|
|
21
|
+
*/
|
|
22
|
+
export interface TabInfo {
|
|
23
|
+
url: string;
|
|
24
|
+
moduleId: string;
|
|
25
|
+
initialParams: Record<string, any>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Fully resolved tab configuration from platform configuration.
|
|
29
|
+
* Contains all information needed to render a tab including loading options,
|
|
30
|
+
* domains, directives, and access control.
|
|
31
|
+
*/
|
|
32
|
+
export interface TectonResolvedTab extends TabInfo {
|
|
33
|
+
tabLabel: string;
|
|
34
|
+
provided: false;
|
|
35
|
+
minHeight?: string;
|
|
36
|
+
tabLabelOverride?: string;
|
|
37
|
+
formPostAuth: boolean;
|
|
38
|
+
loadingOptions?: LoadingOptions;
|
|
39
|
+
additionalDomains?: string[];
|
|
40
|
+
allowDirectives?: string[];
|
|
41
|
+
requiredUserCapabilities?: string[];
|
|
42
|
+
rightsEnabled?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Union type representing all possible tab configurations.
|
|
46
|
+
* Discriminated by the 'provided' property to distinguish source.
|
|
47
|
+
*/
|
|
48
|
+
export type ResolvedTab = TectonResolvedTab | ModuleProvidedTab;
|
|
49
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/types/tabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAM/C;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,IAAI,CAAC;IACf,GAAG,EAAE,EAAE,CAAC;IACR,QAAQ,EAAE,EAAE,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;AAMD;;;;GAIG;AACH,MAAM,WAAW,iBAAkB,SAAQ,OAAO;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../src/types/tabs.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
2
|
+
"name": "q2-tecton-common",
|
|
3
|
+
"version": "1.60.7",
|
|
4
|
+
"description": "Common types and utilities used across all Tecton packages.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Q2 Tecton Team",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib"
|
|
9
|
+
],
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"dry-suite": "1.60.7",
|
|
15
|
+
"maybe-not": "1.3.3"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"mocha": "^11.1.0",
|
|
19
|
+
"resolve-tspaths": "^0.8.18",
|
|
20
|
+
"sinon-chai": "3.7.0"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "yarn build:prod",
|
|
24
|
+
"build:dev": "yarn build:prod",
|
|
25
|
+
"build:prerelease": "yarn build:prod",
|
|
26
|
+
"build:prod": "tsc --project tsconfig.prod.json && resolve-tspaths",
|
|
27
|
+
"clean": "rm -rf lib",
|
|
28
|
+
"lint": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint --config .cli-eslintrc.js --ext .ts,.tsx --ignore-path .gitignore .",
|
|
29
|
+
"lint:fix": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint --fix --config .cli-eslintrc.js --ext .ts,.tsx --ignore-path .gitignore .",
|
|
30
|
+
"problems": "tsc --noEmit",
|
|
31
|
+
"test": "karma start --single-run --browsers chrome_headless --port 3412",
|
|
32
|
+
"test:dev": "karma start"
|
|
33
|
+
}
|
|
34
|
+
}
|