@gisce/react-ooui 1.5.0 → 2.0.0-rc.10
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/common/SelectAllRecordsRow.d.ts.map +1 -1
- package/dist/helpers/dynamicColumnsHelper.d.ts +9 -1
- package/dist/helpers/dynamicColumnsHelper.d.ts.map +1 -1
- package/dist/helpers/iconMapper.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/react-ooui.es.js +53 -53
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +16 -16
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/types/index.d.ts +30 -29
- package/dist/types/index.d.ts.map +1 -1
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/actionbar/FormActionBar.tsx +1 -1
- package/src/actionbar/TreeActionBar.tsx +1 -1
- package/src/common/SelectAllRecordsRow.tsx +0 -4
- package/src/helpers/dynamicColumnsHelper.ts +1 -1
- package/src/hooks/useExport.ts +2 -3
- package/src/index.ts +4 -0
- package/src/types/index.ts +92 -41
- package/src/views/ActionView.tsx +1 -1
- package/src/widgets/views/Tree.tsx +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectAllRecordsRow.d.ts","sourceRoot":"","sources":["SelectAllRecordsRow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,SAAS,oEAIrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;iCAOD,MAAM;kBACrB,MAAM;uBACD,MAAM;8BACC,MAAM;wBACZ,MAAM,QAAQ,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectAllRecordsRow.d.ts","sourceRoot":"","sources":["SelectAllRecordsRow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,SAAS,oEAIrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;iCAOD,MAAM;kBACrB,MAAM;uBACD,MAAM;8BACC,MAAM;wBACZ,MAAM,QAAQ,IAAI,CAAC;8BAkExC,CAAC"}
|
|
@@ -4,5 +4,13 @@
|
|
|
4
4
|
* @param {Array} source
|
|
5
5
|
* @param {Number} maxWidthPerCell
|
|
6
6
|
*/
|
|
7
|
-
export declare const calculateColumnsWidth: (columns: any, source: any, maxWidthPerCell?: number) =>
|
|
7
|
+
export declare const calculateColumnsWidth: (columns: any, source: any, maxWidthPerCell?: number) => {
|
|
8
|
+
columns: any;
|
|
9
|
+
source?: undefined;
|
|
10
|
+
tableWidth?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
columns: any;
|
|
13
|
+
source: any;
|
|
14
|
+
tableWidth: any;
|
|
15
|
+
};
|
|
8
16
|
//# sourceMappingURL=dynamicColumnsHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicColumnsHelper.d.ts","sourceRoot":"","sources":["dynamicColumnsHelper.ts"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,YACvB,GAAG,UACJ,GAAG,
|
|
1
|
+
{"version":3,"file":"dynamicColumnsHelper.d.ts","sourceRoot":"","sources":["dynamicColumnsHelper.ts"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,YACvB,GAAG,UACJ,GAAG;;;;;;;;CAmDZ,CAAC"}
|
|
@@ -8,6 +8,6 @@ declare const _default: (key: string, props?: {
|
|
|
8
8
|
}, React.Component<{
|
|
9
9
|
className?: any;
|
|
10
10
|
style?: React.CSSProperties | undefined;
|
|
11
|
-
}, any, any>>) | (() => React.FunctionComponentElement<Pick<import("@ant-design/icons/lib/components/Icon").IconComponentProps, "readOnly" | "id" | "children" | "lang" | "type" | "onClick" | "disabled" | "label" | "default" | "max" | "required" | "data" | "high" | "low" | "key" | "media" | "height" | "width" | "start" | "open" | "name" | "color" | "content" | "rotate" | "translate" | "value" | "hidden" | "cite" | "form" | "slot" | "span" | "style" | "summary" | "
|
|
11
|
+
}, any, any>>) | (() => React.FunctionComponentElement<Pick<import("@ant-design/icons/lib/components/Icon").IconComponentProps, "readOnly" | "id" | "children" | "lang" | "type" | "title" | "onClick" | "disabled" | "label" | "default" | "max" | "required" | "data" | "high" | "low" | "key" | "media" | "height" | "width" | "start" | "open" | "name" | "color" | "content" | "rotate" | "translate" | "value" | "hidden" | "cite" | "form" | "slot" | "span" | "style" | "summary" | "dir" | "pattern" | "acceptCharset" | "action" | "method" | "noValidate" | "target" | "accessKey" | "draggable" | "className" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "async" | "multiple" | "size" | "manifest" | "wrap" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "autoFocus" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "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" | "playsInline" | "poster" | "preload" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "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" | "spin" | "component" | "ariaLabel" | "viewBox"> & React.RefAttributes<HTMLSpanElement>>) | undefined;
|
|
12
12
|
export default _default;
|
|
13
13
|
//# sourceMappingURL=iconMapper.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -53,5 +53,7 @@ import CurrentTabContent from "./views/CurrentTabContent";
|
|
|
53
53
|
import ContentRootProvider from "./context/ContentRootContext";
|
|
54
54
|
import FavouriteButton from "./ui/FavouriteButton";
|
|
55
55
|
import { ConfigContext } from "./context/ConfigContext";
|
|
56
|
-
|
|
56
|
+
import Tab from "./views/tabs/Tab";
|
|
57
|
+
import ActionView from "./views/ActionView";
|
|
58
|
+
export { Button, ButtonGroup, Char, Selection, Boolean, Many2one, Tree, Group, SearchFilter, Form, Notebook, Float, FloatTime, Integer, Label, Text, TreeView, FormView, SearchFields, Separator, SearchTree, SearchRequest, SearchResponse, CreateObjectRequest, UpdateObjectRequest, ConnectionProvider, ConnectionProviderType, ViewData, Views, ExecuteRequest, ReadObjectsRequest, ReadEvalUiObjectsRequest, DeleteObjectsRequest, FormModal, SearchModal, One2many, One2manyItem, One2manyValue, Date, DateTime, Time, Reference, Binary, iconMapper, CreateReportRequest, GetReportRequest, ExecuteOnChangeRequest, ActionBar, GetViewRequest, GetFieldsRequest, DefaultGetRequest, RootView, TabSelector, CurrentTabContent, Url, Email, Image, ContentRootProvider, showConfirmDialog, NameSearchRequest, ProgressBar, FavouriteButton, Dashboard, GraphIndicator, DashboardGridItem, DashboardGrid, Tags, Tag, MultiCheckbox, Markdown, Radio, Switch, Steps, CodeEditor, CommentsTimelineField, ExportModal, ConfigContext, Tab, ActionView, };
|
|
57
59
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO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EACnB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,QAAQ,EACR,KAAK,EACL,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,GAAG,EACH,KAAK,EACL,KAAK,EACL,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,IAAI,EACJ,GAAG,EACH,aAAa,EACb,QAAQ,EACR,KAAK,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,GAAG,EACH,UAAU,GACX,CAAC"}
|
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Qe, { useContext as W, useState as _, useEffect as pe, useRef as ue, useCallback as Me, forwardRef as bt, useImperativeHandle as xt } from "react";
|
|
2
|
-
import { Tooltip as pt, theme as Pe, Typography as Ut, Form as lt, Row as xe, Col as ce, Modal as Je, Button as Ie, Dropdown as Gt, Menu as Be, Spin as
|
|
2
|
+
import { Tooltip as pt, theme as Pe, Typography as Ut, Form as lt, Row as xe, Col as ce, Modal as Je, Button as Ie, Dropdown as Gt, Menu as Be, Spin as ke, Divider as dn, Space as Ye, Input as it, Select as Ct, Checkbox as jt, Alert as et, Timeline as An, Statistic as li, Card as Nn, Tag as $r, message as Sn, DatePicker as Pn, TimePicker as Lr, InputNumber as Hn, Progress as ci, Avatar as Nr, Badge as di, Pagination as ui, Tabs as Pr, Popover as fi, Radio as lr, Switch as mi, Steps as cr, Layout as hi } from "antd";
|
|
3
3
|
import { Label as Vt, Field as Rn, Tree as Hr, Reference as pi, Selection as Bn, Many2one as Br, Boolean as gi, Container as yi, parseContext as wt, Form as jr, Integer as Vn, SearchFieldTypes as ht, SearchFilter as vi, parseContextFields as Tn, parseDomainFields as dr, transformDomainForChildWidget as Kr, graphProcessor as Yr, parseGraph as jn, graphFieldUtils as wi } from "@gisce/ooui";
|
|
4
4
|
import * as ur from "@ant-design/icons";
|
|
5
5
|
import Wr, { QuestionCircleOutlined as Ur, ExclamationCircleOutlined as gt, LoadingOutlined as st, DownOutlined as kt, WarningOutlined as Gr, CloseOutlined as qt, CheckOutlined as Mt, TranslationOutlined as qr, FolderOpenOutlined as Kn, DownloadOutlined as Yn, ClearOutlined as Wn, StarFilled as zr, StarOutlined as Jr, UpOutlined as bi, SearchOutlined as Un, RightCircleOutlined as xi, ThunderboltOutlined as Gn, PrinterOutlined as qn, EnterOutlined as Zr, PlusSquareOutlined as Ci, MinusSquareOutlined as Si, FileAddOutlined as un, AlignLeftOutlined as Ti, ApiOutlined as Fi, DeleteOutlined as zn, LeftOutlined as Xr, RightOutlined as Qr, EyeOutlined as Oi, FormOutlined as Kt, TableOutlined as Jn, AreaChartOutlined as Ii, CalendarOutlined as _i, LinkOutlined as eo, SaveOutlined as Di, CopyOutlined as Zn, InfoCircleOutlined as to, ReloadOutlined as fn, EditOutlined as no, FilterOutlined as ro, CloseCircleFilled as Ai, BorderOuterOutlined as Ri, SettingOutlined as Vi, ExportOutlined as ki } from "@ant-design/icons";
|
|
@@ -960,7 +960,7 @@ const so = (e) => {
|
|
|
960
960
|
p(!1), a();
|
|
961
961
|
}
|
|
962
962
|
function E() {
|
|
963
|
-
return d ? /* @__PURE__ */ n(
|
|
963
|
+
return d ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ N(te, {
|
|
964
964
|
children: [R(), /* @__PURE__ */ n(dn, {}), /* @__PURE__ */ n(xe, {
|
|
965
965
|
justify: "end",
|
|
966
966
|
children: /* @__PURE__ */ N(Ye, {
|
|
@@ -1628,7 +1628,7 @@ const er = async (e) => {
|
|
|
1628
1628
|
a(!1);
|
|
1629
1629
|
}
|
|
1630
1630
|
};
|
|
1631
|
-
return s ? /* @__PURE__ */ n(
|
|
1631
|
+
return s ? /* @__PURE__ */ n(ke, {}) : l ? /* @__PURE__ */ n(et, {
|
|
1632
1632
|
className: "mt-10",
|
|
1633
1633
|
message: l,
|
|
1634
1634
|
type: "error",
|
|
@@ -1697,7 +1697,7 @@ const er = async (e) => {
|
|
|
1697
1697
|
message: f,
|
|
1698
1698
|
type: "error",
|
|
1699
1699
|
banner: !0
|
|
1700
|
-
}) : a ? /* @__PURE__ */ n(
|
|
1700
|
+
}) : a ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ N(te, {
|
|
1701
1701
|
children: [/* @__PURE__ */ n(An, {
|
|
1702
1702
|
style: {
|
|
1703
1703
|
padding: "1rem"
|
|
@@ -2427,12 +2427,12 @@ const $t = ({
|
|
|
2427
2427
|
attrs: je
|
|
2428
2428
|
}), Se = ee[0];
|
|
2429
2429
|
Z.current = [...Se], Y(nn(ee[1])), B(Sr(ee[1]));
|
|
2430
|
-
const
|
|
2430
|
+
const Ve = Se.map((se) => se.id), He = y !== void 0 ? Dt({
|
|
2431
2431
|
resultsToSort: Se,
|
|
2432
2432
|
sorter: y,
|
|
2433
2433
|
fields: { ...d.fields, ...m.fields }
|
|
2434
2434
|
}) : [...Z.current];
|
|
2435
|
-
ne(He),
|
|
2435
|
+
ne(He), Ve.length > 0 ? h == null || h(0) : h == null || h(void 0);
|
|
2436
2436
|
} else
|
|
2437
2437
|
ne([]), h == null || h(void 0);
|
|
2438
2438
|
S(!1), f.current = !0;
|
|
@@ -2452,7 +2452,7 @@ const $t = ({
|
|
|
2452
2452
|
async (ie) => {
|
|
2453
2453
|
const { params: Ee, newOffset: be } = ie || {}, $e = Yt(Ee || O, C), { colors: je, status: ee } = _t(d), Se = {};
|
|
2454
2454
|
je && (Se.colors = je), ee && (Se.status = ee);
|
|
2455
|
-
const { totalItems:
|
|
2455
|
+
const { totalItems: Ve, results: He, attrsEvaluated: se } = await H.getHandler().searchForTree({
|
|
2456
2456
|
params: $e,
|
|
2457
2457
|
limit: P.current,
|
|
2458
2458
|
offset: be || k,
|
|
@@ -2475,7 +2475,7 @@ const $t = ({
|
|
|
2475
2475
|
} else
|
|
2476
2476
|
h == null || h(void 0);
|
|
2477
2477
|
S(!1);
|
|
2478
|
-
const Ge = await
|
|
2478
|
+
const Ge = await Ve;
|
|
2479
2479
|
I(Ge), u == null || u(Ge);
|
|
2480
2480
|
},
|
|
2481
2481
|
[
|
|
@@ -2985,7 +2985,7 @@ const $t = ({
|
|
|
2985
2985
|
closable: !1,
|
|
2986
2986
|
centered: !0,
|
|
2987
2987
|
maskClosable: !1,
|
|
2988
|
-
children: /* @__PURE__ */ n(
|
|
2988
|
+
children: /* @__PURE__ */ n(ke, {})
|
|
2989
2989
|
}), /* @__PURE__ */ n(Xt, {
|
|
2990
2990
|
buttonModal: !0,
|
|
2991
2991
|
parentContext: p.context,
|
|
@@ -3128,7 +3128,7 @@ function Ol(e, t) {
|
|
|
3128
3128
|
title: je = void 0,
|
|
3129
3129
|
setTitle: ee = void 0
|
|
3130
3130
|
} = (b ? Ue : {}) || {}, Se = W(Lt), {
|
|
3131
|
-
processAction:
|
|
3131
|
+
processAction: Ve,
|
|
3132
3132
|
globalValues: He
|
|
3133
3133
|
} = Se || {};
|
|
3134
3134
|
xt(t, () => ({
|
|
@@ -3621,7 +3621,7 @@ function Ol(e, t) {
|
|
|
3621
3621
|
}) {
|
|
3622
3622
|
const {
|
|
3623
3623
|
closeParent: re
|
|
3624
|
-
} = await (
|
|
3624
|
+
} = await (Ve == null ? void 0 : Ve({
|
|
3625
3625
|
actionData: K,
|
|
3626
3626
|
fields: I,
|
|
3627
3627
|
values: Ke(),
|
|
@@ -3688,7 +3688,7 @@ function Ol(e, t) {
|
|
|
3688
3688
|
oe && bn(!1), ze(he);
|
|
3689
3689
|
}
|
|
3690
3690
|
}
|
|
3691
|
-
const oi = () => !F && !L ? /* @__PURE__ */ n(
|
|
3691
|
+
const oi = () => !F && !L ? /* @__PURE__ */ n(ke, {}) : !r && !p || !A ? null : /* @__PURE__ */ n(te, {
|
|
3692
3692
|
children: /* @__PURE__ */ n(ds, {
|
|
3693
3693
|
getValues: Ke,
|
|
3694
3694
|
getPlainValues: Q,
|
|
@@ -4332,7 +4332,7 @@ const _r = (e, t = "14px -apple-system") => {
|
|
|
4332
4332
|
return Math.round((o.width + 80) * 1.5);
|
|
4333
4333
|
}, Kl = (e, t, r = 500) => {
|
|
4334
4334
|
if (e.length === 0)
|
|
4335
|
-
return e;
|
|
4335
|
+
return { columns: e };
|
|
4336
4336
|
const i = e.map(
|
|
4337
4337
|
(s) => Object.assign(s, {
|
|
4338
4338
|
width: _r(s.title)
|
|
@@ -4499,7 +4499,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4499
4499
|
style: {
|
|
4500
4500
|
padding: 15
|
|
4501
4501
|
},
|
|
4502
|
-
children: /* @__PURE__ */ n(
|
|
4502
|
+
children: /* @__PURE__ */ n(ke, {})
|
|
4503
4503
|
})
|
|
4504
4504
|
});
|
|
4505
4505
|
if (!u || !u.toolbar)
|
|
@@ -5046,12 +5046,12 @@ const ut = {
|
|
|
5046
5046
|
selectAllRecords: l("selectAllRecords"),
|
|
5047
5047
|
allRecordsSelected: l("allRecordsSelected")
|
|
5048
5048
|
};
|
|
5049
|
-
if (r === 0 || e < r && o <= r
|
|
5049
|
+
if (r === 0 || e < r && o <= r)
|
|
5050
5050
|
return null;
|
|
5051
5051
|
const c = async (m) => {
|
|
5052
5052
|
m.preventDefault(), m.stopPropagation(), a(!0), await i(), a(!1);
|
|
5053
5053
|
}, u = /* @__PURE__ */ N("span", {
|
|
5054
|
-
children: [f.recordsSelected.replace("{numberOfSelectedRows}", e.toString()) + " ", s ? /* @__PURE__ */ n(
|
|
5054
|
+
children: [f.recordsSelected.replace("{numberOfSelectedRows}", e.toString()) + " ", s ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(ji, {
|
|
5055
5055
|
onClick: c,
|
|
5056
5056
|
style: {
|
|
5057
5057
|
fontWeight: 600
|
|
@@ -5186,7 +5186,7 @@ function gn(e) {
|
|
|
5186
5186
|
const P = yo(w.current, s);
|
|
5187
5187
|
E(P), V.current = r;
|
|
5188
5188
|
}, [s]);
|
|
5189
|
-
const D = (t - 1) * V.current + 1, $ = D - 1 + O.length, I = i === void 0 ? null : i === 0 ? L("no_results") : L("summary").replace("{from}", D == null ? void 0 : D.toString()).replace("{to}", $ == null ? void 0 : $.toString()).replace("{total}", i == null ? void 0 : i.toString()), j = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(
|
|
5189
|
+
const D = (t - 1) * V.current + 1, $ = D - 1 + O.length, I = i === void 0 ? null : i === 0 ? L("no_results") : L("summary").replace("{from}", D == null ? void 0 : D.toString()).replace("{to}", $ == null ? void 0 : $.toString()).replace("{total}", i == null ? void 0 : i.toString()), j = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(ke, {
|
|
5190
5190
|
className: "pb-4"
|
|
5191
5191
|
}) : /* @__PURE__ */ N(xe, {
|
|
5192
5192
|
align: "bottom",
|
|
@@ -5240,19 +5240,17 @@ function gn(e) {
|
|
|
5240
5240
|
d && Z.columns.some((ne) => ne.sum !== void 0) && (Y = d - 30);
|
|
5241
5241
|
}
|
|
5242
5242
|
const J = O.filter((P) => u == null ? void 0 : u.selectedRowKeys.includes(P.id)).length;
|
|
5243
|
-
return w.current === null || !U || ((B = U.columns) == null ? void 0 : B.length) === 0 ? /* @__PURE__ */ n(
|
|
5243
|
+
return w.current === null || !U || ((B = U.columns) == null ? void 0 : B.length) === 0 ? /* @__PURE__ */ n(ke, {
|
|
5244
5244
|
style: {
|
|
5245
5245
|
padding: "2rem"
|
|
5246
5246
|
}
|
|
5247
5247
|
}) : /* @__PURE__ */ N("div", {
|
|
5248
|
-
children: [j(),
|
|
5249
|
-
className: "pb-4"
|
|
5250
|
-
}), /* @__PURE__ */ n(Ni, {
|
|
5248
|
+
children: [j(), /* @__PURE__ */ n(Ni, {
|
|
5251
5249
|
height: Y,
|
|
5252
5250
|
columns: U.columns,
|
|
5253
5251
|
dataSource: O,
|
|
5254
|
-
loading:
|
|
5255
|
-
loadingComponent: /* @__PURE__ */ n(
|
|
5252
|
+
loading: l,
|
|
5253
|
+
loadingComponent: /* @__PURE__ */ n(ke, {}),
|
|
5256
5254
|
onRowStyle: (P) => {
|
|
5257
5255
|
if (m[P.id])
|
|
5258
5256
|
return {
|
|
@@ -5329,7 +5327,7 @@ function hc(e, t) {
|
|
|
5329
5327
|
offset: je,
|
|
5330
5328
|
getResults: ee,
|
|
5331
5329
|
requestPageChange: Se,
|
|
5332
|
-
changeSort:
|
|
5330
|
+
changeSort: Ve,
|
|
5333
5331
|
fetchChildrenForRecord: He,
|
|
5334
5332
|
colorsForResults: se,
|
|
5335
5333
|
statusForResults: fe,
|
|
@@ -5485,7 +5483,7 @@ function hc(e, t) {
|
|
|
5485
5483
|
onChange: ve
|
|
5486
5484
|
},
|
|
5487
5485
|
sorter: Z,
|
|
5488
|
-
onChangeSort:
|
|
5486
|
+
onChangeSort: Ve,
|
|
5489
5487
|
onFetchChildrenForRecord: b.isExpandable ? He : void 0,
|
|
5490
5488
|
childField: b.field_parent,
|
|
5491
5489
|
rootTree: u,
|
|
@@ -5501,7 +5499,7 @@ function hc(e, t) {
|
|
|
5501
5499
|
style: c ? {} : {
|
|
5502
5500
|
display: "none"
|
|
5503
5501
|
},
|
|
5504
|
-
children: y ? /* @__PURE__ */ n(
|
|
5502
|
+
children: y ? /* @__PURE__ */ n(ke, {}) : tt()
|
|
5505
5503
|
});
|
|
5506
5504
|
}
|
|
5507
5505
|
const Vo = bt(hc), ko = (e) => {
|
|
@@ -6419,7 +6417,7 @@ const kc = {
|
|
|
6419
6417
|
banner: !0
|
|
6420
6418
|
});
|
|
6421
6419
|
if (c)
|
|
6422
|
-
return /* @__PURE__ */ n(
|
|
6420
|
+
return /* @__PURE__ */ n(ke, {});
|
|
6423
6421
|
if (!u)
|
|
6424
6422
|
return /* @__PURE__ */ n(et, {
|
|
6425
6423
|
message: "No data to display",
|
|
@@ -6833,7 +6831,7 @@ const Wc = (e) => {
|
|
|
6833
6831
|
Hc({
|
|
6834
6832
|
lang: g,
|
|
6835
6833
|
onOk: () => {
|
|
6836
|
-
a === "form" ? Se() :
|
|
6834
|
+
a === "form" ? Se() : Ve();
|
|
6837
6835
|
}
|
|
6838
6836
|
});
|
|
6839
6837
|
return;
|
|
@@ -6841,7 +6839,7 @@ const Wc = (e) => {
|
|
|
6841
6839
|
Nc({
|
|
6842
6840
|
lang: g,
|
|
6843
6841
|
onOk: () => {
|
|
6844
|
-
a === "form" ? Se() :
|
|
6842
|
+
a === "form" ? Se() : Ve();
|
|
6845
6843
|
}
|
|
6846
6844
|
});
|
|
6847
6845
|
}, je = async () => {
|
|
@@ -6877,7 +6875,7 @@ const Wc = (e) => {
|
|
|
6877
6875
|
E(Q);
|
|
6878
6876
|
}
|
|
6879
6877
|
c(0), R(!1);
|
|
6880
|
-
},
|
|
6878
|
+
}, Ve = async () => {
|
|
6881
6879
|
const Q = X.filter((ae) => F.includes(ae.id));
|
|
6882
6880
|
R(!0), A(!1), E(void 0);
|
|
6883
6881
|
try {
|
|
@@ -6990,7 +6988,7 @@ const Wc = (e) => {
|
|
|
6990
6988
|
const de = () => {
|
|
6991
6989
|
var ae, Te, ve, Fe;
|
|
6992
6990
|
if (a === "form")
|
|
6993
|
-
return X.length === 0 ? v("noCurrentEntries") : a !== G.current && s.some((_e) => !_e.values) ? /* @__PURE__ */ n(
|
|
6991
|
+
return X.length === 0 ? v("noCurrentEntries") : a !== G.current && s.some((_e) => !_e.values) ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(Zt, {
|
|
6994
6992
|
formView: o.get("form"),
|
|
6995
6993
|
values: (ae = X[f]) == null ? void 0 : ae.values,
|
|
6996
6994
|
parentContext: {
|
|
@@ -7070,7 +7068,7 @@ const Wc = (e) => {
|
|
|
7070
7068
|
banner: !0
|
|
7071
7069
|
});
|
|
7072
7070
|
const ot = k;
|
|
7073
|
-
return b ? /* @__PURE__ */ n(
|
|
7071
|
+
return b ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ N(te, {
|
|
7074
7072
|
children: [/* @__PURE__ */ n(jc, {
|
|
7075
7073
|
mode: a,
|
|
7076
7074
|
title: Ge(),
|
|
@@ -7165,7 +7163,7 @@ const Wc = (e) => {
|
|
|
7165
7163
|
c(!1);
|
|
7166
7164
|
}
|
|
7167
7165
|
};
|
|
7168
|
-
return r && r.length > 0 ? l = r[0] : l = "tree", f ? /* @__PURE__ */ n(
|
|
7166
|
+
return r && r.length > 0 ? l = r[0] : l = "tree", f ? /* @__PURE__ */ n(ke, {}) : u ? /* @__PURE__ */ n(et, {
|
|
7169
7167
|
className: "mt-10",
|
|
7170
7168
|
message: u,
|
|
7171
7169
|
type: "error",
|
|
@@ -7537,7 +7535,7 @@ const {
|
|
|
7537
7535
|
[]
|
|
7538
7536
|
), p = Me(
|
|
7539
7537
|
async (g) => {
|
|
7540
|
-
await H.getHandler().
|
|
7538
|
+
await H.getHandler().deleteObjects({
|
|
7541
7539
|
model: "ir.exports",
|
|
7542
7540
|
ids: [g.id]
|
|
7543
7541
|
});
|
|
@@ -8294,7 +8292,7 @@ const Sd = (e) => {
|
|
|
8294
8292
|
onOpenAttachmentDetail: l,
|
|
8295
8293
|
onListAllAttachments: f
|
|
8296
8294
|
} = e;
|
|
8297
|
-
return o ? /* @__PURE__ */ n(
|
|
8295
|
+
return o ? /* @__PURE__ */ n(ke, {
|
|
8298
8296
|
style: {
|
|
8299
8297
|
padding: 20
|
|
8300
8298
|
}
|
|
@@ -8445,7 +8443,7 @@ function Fd(e) {
|
|
|
8445
8443
|
closable: !1,
|
|
8446
8444
|
centered: !0,
|
|
8447
8445
|
maskClosable: !1,
|
|
8448
|
-
children: /* @__PURE__ */ n(
|
|
8446
|
+
children: /* @__PURE__ */ n(ke, {})
|
|
8449
8447
|
})]
|
|
8450
8448
|
});
|
|
8451
8449
|
}
|
|
@@ -8527,7 +8525,7 @@ function Od({
|
|
|
8527
8525
|
}
|
|
8528
8526
|
async function q() {
|
|
8529
8527
|
try {
|
|
8530
|
-
y == null || y(!0), await H.getHandler().
|
|
8528
|
+
y == null || y(!0), await H.getHandler().deleteObjects({
|
|
8531
8529
|
model: m,
|
|
8532
8530
|
ids: [l]
|
|
8533
8531
|
});
|
|
@@ -8571,7 +8569,7 @@ function Od({
|
|
|
8571
8569
|
return r ? /* @__PURE__ */ N(Ye, {
|
|
8572
8570
|
wrap: !0,
|
|
8573
8571
|
children: [C && /* @__PURE__ */ N(te, {
|
|
8574
|
-
children: [/* @__PURE__ */ n(
|
|
8572
|
+
children: [/* @__PURE__ */ n(ke, {}), Ft(), Ft()]
|
|
8575
8573
|
}), /* @__PURE__ */ n(Bo, {
|
|
8576
8574
|
disabled: a || C || p || h
|
|
8577
8575
|
}), /* @__PURE__ */ n(Ze, {
|
|
@@ -9201,7 +9199,7 @@ const Ed = (e) => {
|
|
|
9201
9199
|
searchVisible: g,
|
|
9202
9200
|
searchValues: T,
|
|
9203
9201
|
showLimitOptions: !1
|
|
9204
|
-
}), I ? /* @__PURE__ */ n(
|
|
9202
|
+
}), I ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(yn, {
|
|
9205
9203
|
ref: f,
|
|
9206
9204
|
view_id: t.view_id,
|
|
9207
9205
|
model: i,
|
|
@@ -9367,7 +9365,7 @@ function Pd(e) {
|
|
|
9367
9365
|
async function I() {
|
|
9368
9366
|
var Y;
|
|
9369
9367
|
try {
|
|
9370
|
-
s == null || s(!0), await H.getHandler().
|
|
9368
|
+
s == null || s(!0), await H.getHandler().deleteObjects({
|
|
9371
9369
|
model: c,
|
|
9372
9370
|
ids: o.map((J) => J.id)
|
|
9373
9371
|
}), d == null || d(void 0), m == null || m(void 0), (Y = u == null ? void 0 : u.current) == null || Y.refreshResults();
|
|
@@ -9417,7 +9415,7 @@ function Pd(e) {
|
|
|
9417
9415
|
return /* @__PURE__ */ N(Ye, {
|
|
9418
9416
|
wrap: !0,
|
|
9419
9417
|
children: [C && /* @__PURE__ */ N(te, {
|
|
9420
|
-
children: [/* @__PURE__ */ n(
|
|
9418
|
+
children: [/* @__PURE__ */ n(ke, {}), vt(), vt()]
|
|
9421
9419
|
}), S ? null : /* @__PURE__ */ N(te, {
|
|
9422
9420
|
children: [/* @__PURE__ */ n(Ld, {
|
|
9423
9421
|
disabled: l || a || C,
|
|
@@ -9745,7 +9743,7 @@ function Ud(e, t) {
|
|
|
9745
9743
|
limit: g
|
|
9746
9744
|
} = e, [v, C] = _(), [A, b] = _([]), [R, O] = _(!0), E = m || void 0, [x, S] = _(E), [T, w] = _([]), [L, V] = _(), [F, M] = _([]), [k, D] = _(), [$, I] = _(0), [j, q] = _(!1), [U, Y] = _(!1), [J, B] = _(), {
|
|
9747
9745
|
t: P
|
|
9748
|
-
} = W(ge), Z = ue(), ne = ue(), le = W(dt), {
|
|
9746
|
+
} = W(ge) || {}, Z = ue(), ne = ue(), le = W(dt), {
|
|
9749
9747
|
setCurrentView: X,
|
|
9750
9748
|
setCurrentId: G,
|
|
9751
9749
|
tabs: me,
|
|
@@ -9782,8 +9780,8 @@ function Ud(e, t) {
|
|
|
9782
9780
|
viewTuple: se
|
|
9783
9781
|
});
|
|
9784
9782
|
}
|
|
9785
|
-
const
|
|
9786
|
-
for (const se of
|
|
9783
|
+
const Ve = await Wd(Se);
|
|
9784
|
+
for (const se of Ve) {
|
|
9787
9785
|
if (!se)
|
|
9788
9786
|
continue;
|
|
9789
9787
|
const [, fe] = se.viewTuple;
|
|
@@ -9844,7 +9842,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9844
9842
|
tabKey: f,
|
|
9845
9843
|
canWeClose: ie
|
|
9846
9844
|
}), pe(() => {
|
|
9847
|
-
const ee = A.find((
|
|
9845
|
+
const ee = A.find((Ve) => Ve.type === "tree"), Se = A.find((Ve) => c.id ? Ve.type === c.type && Ve.view_id === c.id : Ve.type === c.type);
|
|
9848
9846
|
Ue(Se || ee), m ? G == null || G(E) : (Ne(void 0), V(void 0)), Ce();
|
|
9849
9847
|
}, [i, s, m]), pe(() => {
|
|
9850
9848
|
ye === f && (G == null || G(x), X == null || X(v));
|
|
@@ -9859,22 +9857,22 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9859
9857
|
var se;
|
|
9860
9858
|
Y(!0);
|
|
9861
9859
|
const Se = F.findIndex((fe) => fe.id === ee);
|
|
9862
|
-
let
|
|
9860
|
+
let Ve;
|
|
9863
9861
|
if (Se === -1) {
|
|
9864
9862
|
try {
|
|
9865
|
-
|
|
9863
|
+
Ve = (se = await H.getHandler().readObjects({
|
|
9866
9864
|
model: i,
|
|
9867
9865
|
ids: [ee],
|
|
9868
9866
|
context: o
|
|
9869
9867
|
})) == null ? void 0 : se[0];
|
|
9870
9868
|
} catch {
|
|
9871
9869
|
}
|
|
9872
|
-
if (!
|
|
9870
|
+
if (!Ve) {
|
|
9873
9871
|
Y(!1), q(!1), mt(P("idNotFound"));
|
|
9874
9872
|
return;
|
|
9875
9873
|
}
|
|
9876
9874
|
} else
|
|
9877
|
-
|
|
9875
|
+
Ve = F[Se];
|
|
9878
9876
|
Y(!1), q(!1);
|
|
9879
9877
|
const He = s.find((fe) => fe[1] === "form");
|
|
9880
9878
|
De({
|
|
@@ -9954,7 +9952,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9954
9952
|
Ue(ee);
|
|
9955
9953
|
}
|
|
9956
9954
|
}
|
|
9957
|
-
return R ? /* @__PURE__ */ n(
|
|
9955
|
+
return R ? /* @__PURE__ */ n(ke, {}) : v ? /* @__PURE__ */ N(wl, {
|
|
9958
9956
|
title: a,
|
|
9959
9957
|
currentView: v,
|
|
9960
9958
|
setCurrentView: Ue,
|
|
@@ -10278,7 +10276,7 @@ function eu(e) {
|
|
|
10278
10276
|
message: $,
|
|
10279
10277
|
type: "error",
|
|
10280
10278
|
banner: !0
|
|
10281
|
-
}) : f ? /* @__PURE__ */ n(
|
|
10279
|
+
}) : f ? /* @__PURE__ */ n(ke, {
|
|
10282
10280
|
style: {
|
|
10283
10281
|
padding: "2rem"
|
|
10284
10282
|
}
|
|
@@ -10685,7 +10683,7 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10685
10683
|
});
|
|
10686
10684
|
}), A(S);
|
|
10687
10685
|
};
|
|
10688
|
-
return u && a.length === 0 ? /* @__PURE__ */ n(
|
|
10686
|
+
return u && a.length === 0 ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(te, {
|
|
10689
10687
|
children: /* @__PURE__ */ N("div", {
|
|
10690
10688
|
className: "flex flex-row",
|
|
10691
10689
|
children: [/* @__PURE__ */ n(jt.Group, {
|
|
@@ -11603,7 +11601,7 @@ const {
|
|
|
11603
11601
|
})
|
|
11604
11602
|
})
|
|
11605
11603
|
})]
|
|
11606
|
-
}), /* @__PURE__ */ n(Be.Divider, {}), d ? /* @__PURE__ */ n(
|
|
11604
|
+
}), /* @__PURE__ */ n(Be.Divider, {}), d ? /* @__PURE__ */ n(ke, {
|
|
11607
11605
|
style: {
|
|
11608
11606
|
padding: "1rem"
|
|
11609
11607
|
}
|
|
@@ -11701,6 +11699,7 @@ const {
|
|
|
11701
11699
|
};
|
|
11702
11700
|
export {
|
|
11703
11701
|
Od as ActionBar,
|
|
11702
|
+
Wo as ActionView,
|
|
11704
11703
|
wd as Binary,
|
|
11705
11704
|
Is as Boolean,
|
|
11706
11705
|
io as Button,
|
|
@@ -11745,6 +11744,7 @@ export {
|
|
|
11745
11744
|
td as Separator,
|
|
11746
11745
|
fu as Steps,
|
|
11747
11746
|
du as Switch,
|
|
11747
|
+
_u as Tab,
|
|
11748
11748
|
af as TabSelector,
|
|
11749
11749
|
za as Tag,
|
|
11750
11750
|
Ja as Tags,
|