jp.ui.app.ds 1.0.15 → 1.0.17
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/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { JSX as JSX$1 } from 'react';
|
|
|
3
3
|
import * as _emotion_styled from '@emotion/styled';
|
|
4
4
|
import * as _emotion_react from '@emotion/react';
|
|
5
5
|
import { Theme } from '@emotion/react';
|
|
6
|
-
import { DragStopEvent } from '@shopify/draggable';
|
|
6
|
+
import { DragStopEvent, DragStartEvent, DragMoveEvent, DroppableDroppedEvent } from '@shopify/draggable';
|
|
7
7
|
import { AppSectionButton, AppScreenSectionListItem, AppScreenTypes } from 'jp.common.view';
|
|
8
8
|
|
|
9
9
|
type RoomsItemRequisiteType = {
|
|
@@ -269,6 +269,55 @@ declare const WorkflowButtonsStyled: _emotion_styled.StyledComponent<{
|
|
|
269
269
|
as?: React.ElementType;
|
|
270
270
|
}, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
271
271
|
|
|
272
|
+
type DragAndDropEvent = {
|
|
273
|
+
event: DragStopEvent;
|
|
274
|
+
dragItemId: number;
|
|
275
|
+
targetId?: number;
|
|
276
|
+
};
|
|
277
|
+
type DragAndDropZoneClick = {
|
|
278
|
+
event: Event;
|
|
279
|
+
targetId: number;
|
|
280
|
+
activated: boolean;
|
|
281
|
+
};
|
|
282
|
+
type DragAndDropContainerProps = {
|
|
283
|
+
containerId: string;
|
|
284
|
+
children: React$1.ReactNode;
|
|
285
|
+
className?: string;
|
|
286
|
+
onStartDrag?: (event: DragAndDropEvent) => void;
|
|
287
|
+
onSuccessDrop?: (event: DragAndDropEvent) => void;
|
|
288
|
+
onFailDrop?: (event: DragAndDropEvent) => void;
|
|
289
|
+
onDragItemClick?: (event: DragAndDropEvent) => void;
|
|
290
|
+
onDropZoneClick?: (event: DragAndDropZoneClick) => void;
|
|
291
|
+
};
|
|
292
|
+
declare class DragAndDropContainer extends React$1.PureComponent<DragAndDropContainerProps> {
|
|
293
|
+
private startEvent;
|
|
294
|
+
private moveEvent;
|
|
295
|
+
private droppable;
|
|
296
|
+
componentDidMount(): void;
|
|
297
|
+
componentWillUnmount(): void;
|
|
298
|
+
handleDragAndDropClick: (event: PointerEvent) => void;
|
|
299
|
+
handleDragStart: (evt: DragStartEvent) => void;
|
|
300
|
+
handleDragStop: (evt: DragStopEvent) => void;
|
|
301
|
+
handleDragMove: (evt: DragMoveEvent) => void;
|
|
302
|
+
handleDropped: (evt: DroppableDroppedEvent) => void;
|
|
303
|
+
render(): React$1.JSX.Element;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
type DropzoneProps = {
|
|
307
|
+
className?: string;
|
|
308
|
+
children: React$1.ReactNode;
|
|
309
|
+
id: number;
|
|
310
|
+
};
|
|
311
|
+
declare const DragAndDropZone: ({ id, children, className }: DropzoneProps) => React$1.JSX.Element;
|
|
312
|
+
|
|
313
|
+
type DragAndDropItemProps = {
|
|
314
|
+
children: React$1.ReactNode;
|
|
315
|
+
id: number;
|
|
316
|
+
className?: string;
|
|
317
|
+
dataTargets?: Array<number>;
|
|
318
|
+
};
|
|
319
|
+
declare const DragAndDropItem: ({ children, id, className, dataTargets }: DragAndDropItemProps) => React$1.JSX.Element;
|
|
320
|
+
|
|
272
321
|
type CardTableProps = {
|
|
273
322
|
orientation: 'horizontal' | 'vertical';
|
|
274
323
|
size: number;
|
|
@@ -295,24 +344,11 @@ type CardPair = {
|
|
|
295
344
|
disabled: boolean;
|
|
296
345
|
};
|
|
297
346
|
|
|
298
|
-
type DragAndDropEvent = {
|
|
299
|
-
event: DragStopEvent;
|
|
300
|
-
dragItemId: number;
|
|
301
|
-
targetId?: number;
|
|
302
|
-
};
|
|
303
|
-
type DragAndDropZoneClick = {
|
|
304
|
-
event: Event;
|
|
305
|
-
targetId: number;
|
|
306
|
-
activated: boolean;
|
|
307
|
-
};
|
|
308
|
-
|
|
309
347
|
type CardDropTableProps$1 = {
|
|
310
348
|
onSuccessDrop?: (event: DragAndDropEvent) => void;
|
|
311
349
|
onFailDrop?: (event: DragAndDropEvent) => void;
|
|
312
350
|
onDragItemClick?: (event: DragAndDropEvent) => void;
|
|
313
351
|
onDropZoneClick?: (event: DragAndDropZoneClick) => void;
|
|
314
|
-
onMoveButtonClick?: (id: string) => void;
|
|
315
|
-
onCloseClick?: () => void;
|
|
316
352
|
tableSize: number;
|
|
317
353
|
tableOrientation: 'horizontal' | 'vertical';
|
|
318
354
|
tableSeats: Array<{
|
|
@@ -324,6 +360,8 @@ type CardDropTableProps$1 = {
|
|
|
324
360
|
cardsPanelCards: Array<GameCardType>;
|
|
325
361
|
cardsPanelIsOpen: boolean;
|
|
326
362
|
cardsPanelMoves: Array<PlayerMoveButtonsType$1>;
|
|
363
|
+
cardsPanelOnMoveButtonClick?: (id: string) => void;
|
|
364
|
+
cardsPanelOnCloseClick?: () => void;
|
|
327
365
|
summaryRequisites?: Array<SummaryRequisiteItem>;
|
|
328
366
|
summaryRequisitesTimer?: number;
|
|
329
367
|
};
|
|
@@ -877,4 +915,5 @@ type UniversalScreenProps = {
|
|
|
877
915
|
};
|
|
878
916
|
declare const UniversalScreen: (props: UniversalScreenProps) => React$1.JSX.Element;
|
|
879
917
|
|
|
880
|
-
export { Alert, AppBarHeader, Avatar, AvatarBadge, AvatarImage, Badge, Banner, Body, BottomSelectionPanel, BottomSheet, Card, CardButton, CardDeck, CardDragAndDropTable, CardItem, CardProduct, CardTable, CardsPlayer, CardsPlayerOnMobileTable, CardsPlayerOnMobileTableYours, CardsPlayerYours, Checkbox, CircularProgress, Dialog, Display, Divider, FilledButton, GameCardRankEnum, GameCardSizeEnum, GameCardSkinEnum, GameCardSuitEnum, Headline, IconButton, Label, LastActionPanel, ListItem, OutlinedButton, OutlinedTextField, OutlinedTextarea, PageScreen, PlayerMoveButtons, PlayerMoveButtonsExtra, PlayerMoveButtonsPanel, PlayersRow, PlayersSkeleton, PlayersSkeletonRow, PopupScreen, RadioButtonGroup, RuStoreBanner, Screen, ScreenProgress, ScrollList, Skeleton, Snackbar, Tab, TableCardsRow, TableSummary, Tabs, TextButton, Title, TopAppBar, UniversalScreen, WorkflowButtonsStyled, common_d as common, createGameCard, media_d as media, palette_d as palette, zIndex_d as zIndex };
|
|
918
|
+
export { Alert, AppBarHeader, Avatar, AvatarBadge, AvatarImage, Badge, Banner, Body, BottomSelectionPanel, BottomSheet, Card, CardButton, CardDeck, CardDragAndDropTable, CardItem, CardProduct, CardTable, CardsPlayer, CardsPlayerOnMobileTable, CardsPlayerOnMobileTableYours, CardsPlayerYours, Checkbox, CircularProgress, Dialog, Display, Divider, DragAndDropContainer, DragAndDropItem, DragAndDropZone, FilledButton, GameCardRankEnum, GameCardSizeEnum, GameCardSkinEnum, GameCardSuitEnum, Headline, IconButton, Label, LastActionPanel, ListItem, OutlinedButton, OutlinedTextField, OutlinedTextarea, PageScreen, PlayerMoveButtons, PlayerMoveButtonsExtra, PlayerMoveButtonsPanel, PlayersRow, PlayersSkeleton, PlayersSkeletonRow, PopupScreen, RadioButtonGroup, RuStoreBanner, Screen, ScreenProgress, ScrollList, Skeleton, Snackbar, Tab, TableCardsRow, TableSummary, Tabs, TextButton, Title, TopAppBar, UniversalScreen, WorkflowButtonsStyled, common_d as common, createGameCard, media_d as media, palette_d as palette, zIndex_d as zIndex };
|
|
919
|
+
export type { DragAndDropEvent, DragAndDropZoneClick };
|