@ixon-cdk/types 1.11.0 → 1.12.0-next.0

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.
@@ -1,13 +1,16 @@
1
+ /** @deprecated */
1
2
  export interface ActionBottomSheetOptions {
2
3
  /** List of actions. */
3
4
  actions: ActionBottomSheetAction[];
4
5
  }
6
+ /** @deprecated */
5
7
  export interface ActionBottomSheetAction {
6
8
  /** Title of the action. */
7
9
  title: string;
8
10
  /** Indicates that the action result is destructive. Defaults to false. */
9
11
  destructive?: boolean;
10
12
  }
13
+ /** @deprecated */
11
14
  export interface ActionBottomSheetResult {
12
15
  /** The index of the action that was clicked (zero-based). */
13
16
  index: number;
@@ -7,10 +7,12 @@ import type { VpnClientStatus } from '../vpn-client';
7
7
  import type { ComponentContextAppData } from './app-data';
8
8
  import type { ActionBottomSheetOptions, ActionBottomSheetResult } from './bottom-sheet';
9
9
  import type { AlertDialogOptions, ConfirmDialogOptions, FormDialogOptions, FormDialogResult } from './dialog';
10
+ import type { ActionMenuOptions, ActionMenuResult } from './menu';
10
11
  import type { Tooltip, TooltipOptions } from './tooltip';
11
12
  export type { ComponentContextAppData } from './app-data';
12
13
  export type { ActionBottomSheetAction, ActionBottomSheetOptions, ActionBottomSheetResult } from './bottom-sheet';
13
14
  export type { AlertDialogOptions, ConfirmDialogOptions, FormDialogOptions, FormDialogResult } from './dialog';
15
+ export type { ActionMenuAction, ActionMenuOptions, ActionMenuResult } from './menu';
14
16
  export type { Tooltip, TooltipOptions } from './tooltip';
15
17
  export * from './input';
16
18
  /**
@@ -132,10 +134,20 @@ export interface ComponentContext<ComponentContextInputs extends object = {
132
134
  *
133
135
  * @param options configures the action sheet
134
136
  *
135
- * @experimental
137
+ * @deprecated Please use `openActionMenu(target, options)` instead.
136
138
  * @ignore
137
139
  */
138
140
  openActionBottomSheet(options: ActionBottomSheetOptions): Promise<ActionBottomSheetResult>;
141
+ /**
142
+ * Opens an action menu that displays actions a user can take.
143
+ *
144
+ * @param target the target element
145
+ * @param options configures the action menu
146
+ *
147
+ * @experimental
148
+ * @ignore
149
+ */
150
+ openActionMenu(target: HTMLElement, options: ActionMenuOptions): Promise<ActionMenuResult | undefined>;
139
151
  /**
140
152
  * Opens an alert dialog.
141
153
  *
@@ -0,0 +1,14 @@
1
+ export interface ActionMenuOptions {
2
+ /** List of actions. */
3
+ actions: ActionMenuAction[];
4
+ }
5
+ export interface ActionMenuAction {
6
+ /** Title of the action. */
7
+ title: string;
8
+ /** Indicates that the action result is destructive. Defaults to false. */
9
+ destructive?: boolean;
10
+ }
11
+ export interface ActionMenuResult {
12
+ /** The index of the action that was clicked (zero-based). */
13
+ index: number;
14
+ }
@@ -1,5 +1,7 @@
1
+ import type { CompanyReference } from './company';
1
2
  import type { ResLink } from './res-link';
2
3
  export interface BackendComponentTemplateShare {
3
- company: ResLink;
4
+ company: CompanyReference | null;
5
+ publicId: string;
4
6
  template: ResLink;
5
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/types",
3
- "version": "1.11.0",
3
+ "version": "1.12.0-next.0",
4
4
  "description": "",
5
5
  "main": "./dist/component-devkit/src/types/src/index.d.ts",
6
6
  "author": "",