import UiDropdownSimple from "../Ui/Dropdown/Simple";
import * as UiPageAction from "../Ui/Page/Action";
import * as UiScreen from "../Ui/Screen";
-import { ClipboardOptions, ContainerData, ClipboardActionData, AjaxResponse } from "./ClipboardData";
+import { ClipboardOptions, ContainerData, ClipboardActionData, AjaxResponse } from "./Clipboard/Data";
const _specialCheckboxSelector =
'.messageCheckboxLabel > input[type="checkbox"], .message .messageClipboardCheckbox > input[type="checkbox"], .messageGroupList .columnMark > label > input[type="checkbox"]';
--- /dev/null
+import { DatabaseObjectActionResponse } from "../../Ajax/Data";
+
+export interface ClipboardOptions {
+ hasMarkedItems: boolean;
+ pageClassName: string;
+ pageObjectId?: number;
+}
+
+export interface ContainerData {
+ checkboxes: HTMLCollectionOf<HTMLInputElement>;
+ element: HTMLElement;
+ markAll: HTMLInputElement | null;
+ markedObjectIds: Set<number>;
+}
+
+export interface ClipboardItemData {
+ items: { [key: string]: ClipboardActionData };
+ label: string;
+ reloadPageOnSuccess: string[];
+}
+
+export interface ClipboardActionData {
+ actionName: string;
+ internalData: ArbitraryObject;
+ label: string;
+ parameters: {
+ actionName?: string;
+ className?: string;
+ objectIDs: number[];
+ template: string;
+ };
+ url: string;
+}
+
+export interface AjaxResponseMarkedItems {
+ [key: string]: number[];
+}
+
+export interface AjaxResponse extends DatabaseObjectActionResponse {
+ returnValues: {
+ action: string;
+ items?: {
+ // They key is the `typeName`
+ [key: string]: ClipboardItemData;
+ };
+ markedItems?: AjaxResponseMarkedItems;
+ objectType: string;
+ };
+}
+++ /dev/null
-import { DatabaseObjectActionResponse } from "../Ajax/Data";
-
-export interface ClipboardOptions {
- hasMarkedItems: boolean;
- pageClassName: string;
- pageObjectId?: number;
-}
-
-export interface ContainerData {
- checkboxes: HTMLCollectionOf<HTMLInputElement>;
- element: HTMLElement;
- markAll: HTMLInputElement | null;
- markedObjectIds: Set<number>;
-}
-
-export interface ClipboardItemData {
- items: { [key: string]: ClipboardActionData };
- label: string;
- reloadPageOnSuccess: string[];
-}
-
-export interface ClipboardActionData {
- actionName: string;
- internalData: ArbitraryObject;
- label: string;
- parameters: {
- actionName?: string;
- className?: string;
- objectIDs: number[];
- template: string;
- };
- url: string;
-}
-
-export interface AjaxResponseMarkedItems {
- [key: string]: number[];
-}
-
-export interface AjaxResponse extends DatabaseObjectActionResponse {
- returnValues: {
- action: string;
- items?: {
- // They key is the `typeName`
- [key: string]: ClipboardItemData;
- };
- markedItems?: AjaxResponseMarkedItems;
- objectType: string;
- };
-}
import { DatabaseObjectActionResponse } from "../../Ajax/Data";
-import { ClipboardActionData } from "../../Controller/ClipboardData";
+import { ClipboardActionData } from "../../Controller/Clipboard/Data";
export interface ObjectActionData {
data: DatabaseObjectActionResponse;
--- /dev/null
+define(["require", "exports"], function (require, exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+});
+++ /dev/null
-define(["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
-});