@epilot/base-elements 3.9.11 → 3.9.13
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/Chip360/Chip360.d.ts +1 -1
- package/dist/Table/ResizeTableCell/ResizeTableCell.d.ts +3 -2
- package/dist/Table/ResizeTableCell/ResizeTableCell.js +6 -6
- package/dist/Table/ResizeTableCell/ResizeTableCell.js.map +1 -1
- package/dist/bundle.js +91 -79
- package/dist/bundle.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const Chip360: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | "security" | "style" | "title" | "translate" | "className" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
3
3
|
label: React.ReactNode;
|
|
4
|
-
leftIcon?: "number" | "alarm" | "calculator" | "calendar" | "check" | "download" | "exclamation" | "file" | "filter" | "image" | "info" | "link" | "lock" | "map" | "message" | "paragraph" | "pause" | "phone" | "play" | "reply" | "search" | "share" | "star" | "sun" | "table" | "upload" | "add" | "add_circle" | "arrow_left" | "arrow_right" | "bolt" | "cable" | "call" | "category" | "check_box" | "check_circle" | "chevron_left" | "chevron_right" | "close" | "comment" | "content_copy" | "dashboard" | "delete" | "drag_indicator" | "edit" | "error" | "expand_less" | "expand_more" | "explore" | "file_copy" | "filter_alt" | "flip" | "help" | "label" | "label_off" | "lock_open" | "login" | "logout" | "mail" | "menu" | "more_horiz" | "more_vert" | "note" | "notifications" | "open_in_new" | "pause_circle" | "payment" | "pending_actions" | "read_more" | "refresh" | "remove" | "repeat" | "schedule" | "settings" | "sort" | "thumb_down" | "thumb_up" | "update" | "visibility" | "visibility_off" | "warning" | "primary" | "address" | "meter" | "summary" | "document" | "action" | "order" | "resize" | "epilot" | "file_copy_off" | "filter_alt_off" | "data_object" | "attributes" | "opportunity" | "contact" | "account" | "contract" | "request" | "templates" | "product" | "price" | "tax" | "submission" | "partner" | "partnering" | "entity" | "webhook" | "design" | "workflow" | "phase" | "automation" | "journey" | "relations" | "availability" | "desktop" | "arrow_circle_left" | "question_mark" | "skip" | "checklist" | "person_check" | "price_mapping" | "portal" | "entity_builder" | "connection" | "radio_button" | "text_field" | "signature" | "consent" | "attribute_edit" | "solar" | "sdk" | "lookup" | "previous_provider" | "success_confirmation" | "expand_content" | "collapse_content" | "frame" | "energy_savings_leaf" | "avg_time" | "table_rows_narrow" | "two_columns" | "diagram" | "move_down" | "step_over" | "condition" | "note_stack" | "double_thumbs_up" | "ai_star" | "file_manager" | "viewDay" | "calendar_clock" | undefined;
|
|
4
|
+
leftIcon?: "number" | "alarm" | "calculator" | "calendar" | "check" | "download" | "exclamation" | "file" | "filter" | "grid" | "image" | "info" | "link" | "lock" | "map" | "message" | "paragraph" | "pause" | "phone" | "play" | "reply" | "search" | "share" | "star" | "sun" | "table" | "upload" | "add" | "add_circle" | "add_link" | "arrow_left" | "arrow_right" | "auto_delete" | "bolt" | "cable" | "call" | "category" | "check_box" | "check_circle" | "chevron_left" | "chevron_right" | "close" | "comment" | "content_copy" | "dashboard" | "delete" | "delete_forever" | "drag_indicator" | "edit" | "error" | "expand_less" | "expand_more" | "explore" | "file_copy" | "filter_alt" | "flip" | "help" | "history" | "label" | "label_off" | "lock_open" | "login" | "logout" | "mail" | "menu" | "more_horiz" | "more_vert" | "note" | "notifications" | "open_in_new" | "pause_circle" | "payment" | "pending_actions" | "person_add" | "read_more" | "refresh" | "remove" | "repeat" | "schedule" | "settings" | "sort" | "thumb_down" | "thumb_up" | "update" | "visibility" | "visibility_off" | "warning" | "primary" | "address" | "meter" | "summary" | "document" | "action" | "order" | "resize" | "epilot" | "file_copy_off" | "filter_alt_off" | "data_object" | "attributes" | "opportunity" | "contact" | "account" | "contract" | "request" | "templates" | "product" | "price" | "tax" | "submission" | "partner" | "partnering" | "entity" | "webhook" | "design" | "workflow" | "blueprint" | "phase" | "automation" | "journey" | "relations" | "availability" | "desktop" | "arrow_circle_left" | "question_mark" | "skip" | "checklist" | "person_check" | "price_mapping" | "portal" | "entity_builder" | "connection" | "radio_button" | "text_field" | "signature" | "consent" | "attribute_edit" | "solar" | "sdk" | "lookup" | "previous_provider" | "success_confirmation" | "expand_content" | "collapse_content" | "frame" | "energy_savings_leaf" | "avg_time" | "table_rows_narrow" | "two_columns" | "diagram" | "move_down" | "step_over" | "condition" | "note_stack" | "double_thumbs_up" | "ai_star" | "ai_compose" | "file_manager" | "viewDay" | "calendar_clock" | "keep" | "keep_off" | "forest" | "fuel" | "recycling" | undefined;
|
|
5
5
|
rightIcon?: "close" | "edit" | "expand_more" | undefined;
|
|
6
6
|
onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
7
7
|
isFilled?: boolean | undefined;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { TableCellProps } from '../..';
|
|
3
3
|
export declare type ResizeTableCellProps = TableCellProps & {
|
|
4
4
|
columnId: string;
|
|
5
|
+
width: number;
|
|
5
6
|
onDragStart?: () => void;
|
|
6
7
|
onDragEnd?: () => void;
|
|
7
8
|
onWidthChange?: (newWidth: number) => void;
|
|
8
9
|
minWidth?: number;
|
|
9
|
-
|
|
10
|
+
hasResizeDisabled?: boolean;
|
|
10
11
|
};
|
|
11
|
-
export declare const ResizeTableCell: ({ children, columnId, onDragStart, onDragEnd, onWidthChange, width, minWidth, style, className, ...restProps }: ResizeTableCellProps) => JSX.Element;
|
|
12
|
+
export declare const ResizeTableCell: ({ children, columnId, onDragStart, onDragEnd, onWidthChange, width, hasResizeDisabled, minWidth, style, className, ...restProps }: ResizeTableCellProps) => JSX.Element;
|
|
@@ -10,11 +10,11 @@ var ResizeTableContext_1 = require("./ResizeTableContext");
|
|
|
10
10
|
var MIN_COLUMN_WIDTH = 100;
|
|
11
11
|
var ResizeTableCell = function (_a) {
|
|
12
12
|
var _b, _c;
|
|
13
|
-
var children = _a.children, columnId = _a.columnId, onDragStart = _a.onDragStart, onDragEnd = _a.onDragEnd, onWidthChange = _a.onWidthChange, width = _a.width, _d = _a.minWidth, minWidth =
|
|
14
|
-
var
|
|
13
|
+
var children = _a.children, columnId = _a.columnId, onDragStart = _a.onDragStart, onDragEnd = _a.onDragEnd, onWidthChange = _a.onWidthChange, width = _a.width, _d = _a.hasResizeDisabled, hasResizeDisabled = _d === void 0 ? false : _d, _e = _a.minWidth, minWidth = _e === void 0 ? MIN_COLUMN_WIDTH : _e, style = _a.style, _f = _a.className, className = _f === void 0 ? '' : _f, restProps = tslib_1.__rest(_a, ["children", "columnId", "onDragStart", "onDragEnd", "onWidthChange", "width", "hasResizeDisabled", "minWidth", "style", "className"]);
|
|
14
|
+
var _g = react_1.useContext(ResizeTableContext_1.ResizeTableContext), draggingColumnId = _g.data.draggingColumnId, actions = _g.actions;
|
|
15
15
|
var cellRef = react_1.useRef(null);
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var _h = react_1.useState(0), initialColumnX = _h[0], setInitialColumnX = _h[1];
|
|
17
|
+
var _j = react_1.useState(0), columnX = _j[0], setColumnX = _j[1];
|
|
18
18
|
var classes = ResizeTableCellStyles_1["default"]();
|
|
19
19
|
var onMouseDown = function (event) {
|
|
20
20
|
event.preventDefault();
|
|
@@ -83,10 +83,10 @@ var ResizeTableCell = function (_a) {
|
|
|
83
83
|
react_1["default"].createElement("div", { className: classes.content }, children),
|
|
84
84
|
react_1["default"].createElement("div", { "aria-hidden": "true", className: classnames_1["default"](classes.draggableContainer, (_c = {},
|
|
85
85
|
_c[classes.draggableContainerActive] = draggingColumnId === columnId,
|
|
86
|
-
_c)), onMouseDown: onMouseDown, style: draggableStyle },
|
|
86
|
+
_c)), onMouseDown: onMouseDown, style: draggableStyle }, !hasResizeDisabled && (react_1["default"].createElement(react_1["default"].Fragment, null,
|
|
87
87
|
react_1["default"].createElement("div", { className: classes.arrowLeft }),
|
|
88
88
|
react_1["default"].createElement("div", { className: classes.bar }),
|
|
89
|
-
react_1["default"].createElement("div", { className: classes.arrowRight }))));
|
|
89
|
+
react_1["default"].createElement("div", { className: classes.arrowRight }))))));
|
|
90
90
|
};
|
|
91
91
|
exports.ResizeTableCell = ResizeTableCell;
|
|
92
92
|
//# sourceMappingURL=ResizeTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResizeTableCell.js","sourceRoot":"","sources":["../../../src/Table/ResizeTableCell/ResizeTableCell.tsx"],"names":[],"mappings":";;;;AAAA,kEAAmC;AACnC,qDAAsE;AAEtE,2BAAiD;AAEjD,0FAAgD;AAChD,2DAAyD;AAEzD,IAAM,gBAAgB,GAAG,GAAG,CAAA;
|
|
1
|
+
{"version":3,"file":"ResizeTableCell.js","sourceRoot":"","sources":["../../../src/Table/ResizeTableCell/ResizeTableCell.tsx"],"names":[],"mappings":";;;;AAAA,kEAAmC;AACnC,qDAAsE;AAEtE,2BAAiD;AAEjD,0FAAgD;AAChD,2DAAyD;AAEzD,IAAM,gBAAgB,GAAG,GAAG,CAAA;AAYrB,IAAM,eAAe,GAAG,UAAC,EAYT;;IAXrB,IAAA,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,aAAa,mBAAA,EACb,KAAK,WAAA,EACL,yBAAyB,EAAzB,iBAAiB,mBAAG,KAAK,KAAA,EACzB,gBAA2B,EAA3B,QAAQ,mB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