@gisce/react-ooui 1.2.0-rc.29 → 1.2.0-rc.30
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/helpers/treeHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +141 -103
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +4 -4
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/base/ReferenceTree.d.ts +7 -0
- package/dist/widgets/base/ReferenceTree.d.ts.map +1 -0
- package/dist/widgets/base/many2one/Many2oneTree.d.ts +6 -0
- package/dist/widgets/base/many2one/Many2oneTree.d.ts.map +1 -0
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/helpers/treeHelper.ts +10 -2
- package/src/widgets/base/ReferenceTree.tsx +55 -0
- package/src/widgets/base/many2one/Many2oneTree.tsx +18 -0
- package/src/widgets/views/Tree.tsx +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeHelper.d.ts","sourceRoot":"","sources":["treeHelper.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"treeHelper.d.ts","sourceRoot":"","sources":["treeHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,IAAI,QAAQ,EAKjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAE3C,QAAA,MAAM,OAAO,aAAc,QAAQ,KAAG,QAMrC,CAAC;AAEF,QAAA,MAAM,eAAe,SAAU,QAAQ,cAAc,GAAG,KAAG,MAAM,MAAM,CAkCtE,CAAC;AAEF,QAAA,MAAM,aAAa,aAAc,QAAQ,WAAW,MAAM,GAAG,CAAC,KAAG,MAAM,GAAG,CAmCzE,CAAC;AAEF,iBAAS,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,GAAG,CAAA;CAAE,WAOxE;AAED,iBAAS,wBAAwB,CAAC,EAChC,MAAM,EACN,MAAM,GACP,EAAE;IACD,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;CACb,OAWA;AAED,iBAAS,WAAW,CAAC,WAAW,EAAE,GAAG,OASpC;AAED,iBAAS,WAAW,CAAC,EACnB,aAAa,EACb,MAAM,EACN,MAAM,GACP,EAAE;IACD,aAAa,EAAE,GAAG,EAAE,CAAC;IACrB,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;CACb,SA+BA;AAED,OAAO,EACL,eAAe,EACf,aAAa,EACb,OAAO,EACP,wBAAwB,EACxB,eAAe,EACf,WAAW,EACX,WAAW,GACZ,CAAC"}
|
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$n from "react";
|
|
2
2
|
import React__default, { useContext, useState as useState$1, useEffect, createElement, useMemo as useMemo$2, useRef, useLayoutEffect as useLayoutEffect$3, Component, cloneElement as cloneElement$1, forwardRef, useImperativeHandle, useCallback, createContext } from "react";
|
|
3
3
|
import { Tooltip as Tooltip$2, Typography as Typography$1, Form as Form$3, Row, Col, Modal, Button as Button$1, Dropdown, Menu, Spin, Divider, Space, Input as Input$2, Select, Checkbox, Alert, Timeline as Timeline$1, Statistic, Card, Tag, message as message$1, DatePicker as DatePicker$1, TimePicker, InputNumber, Progress, Pagination, Radio as Radio$1, Tree as Tree$2, Tabs, Popover, Switch as Switch$1, Steps as Steps$1, Layout } from "antd";
|
|
4
|
-
import { Label as Label$1, Field as Field$2, Container as Container$1, Tree as Tree$1, Selection as Selection$1, Many2one as Many2one$1, Boolean as Boolean$2, parseContext, Form as Form$4, Integer as Integer$1, SearchFilter as SearchFilter$1, transformDomainForChildWidget, graphProcessor, parseGraph, graphFieldUtils } from "@gisce/ooui";
|
|
4
|
+
import { Label as Label$1, Field as Field$2, Container as Container$1, Tree as Tree$1, Reference as Reference$1, Selection as Selection$1, Many2one as Many2one$1, Boolean as Boolean$2, parseContext, Form as Form$4, Integer as Integer$1, SearchFilter as SearchFilter$1, transformDomainForChildWidget, graphProcessor, parseGraph, graphFieldUtils } from "@gisce/ooui";
|
|
5
5
|
import Icon, { QuestionCircleOutlined, ExclamationCircleOutlined as ExclamationCircleOutlined$4, AccountBookFilled, AccountBookOutlined, AccountBookTwoTone, AimOutlined, AlertFilled, AlertOutlined, AlertTwoTone, AlibabaOutlined, AlignCenterOutlined, AlignLeftOutlined, AlignRightOutlined, AlipayCircleFilled, AlipayCircleOutlined, AlipayOutlined, AlipaySquareFilled, AliwangwangFilled, AliwangwangOutlined, AliyunOutlined, AmazonCircleFilled, AmazonOutlined, AmazonSquareFilled, AndroidFilled, AndroidOutlined, AntCloudOutlined, AntDesignOutlined, ApartmentOutlined, ApiFilled, ApiOutlined, ApiTwoTone, AppleFilled, AppleOutlined, AppstoreAddOutlined, AppstoreFilled, AppstoreOutlined, AppstoreTwoTone, AreaChartOutlined, ArrowDownOutlined, ArrowLeftOutlined, ArrowRightOutlined, ArrowUpOutlined, ArrowsAltOutlined, AudioFilled, AudioMutedOutlined, AudioOutlined, AudioTwoTone, AuditOutlined, BackwardFilled, BackwardOutlined, BankFilled, BankOutlined, BankTwoTone, BarChartOutlined, BarcodeOutlined, BarsOutlined, BehanceCircleFilled, BehanceOutlined, BehanceSquareFilled, BehanceSquareOutlined, BellFilled, BellOutlined, BellTwoTone, BgColorsOutlined, BlockOutlined, BoldOutlined, BookFilled, BookOutlined, BookTwoTone, BorderBottomOutlined, BorderHorizontalOutlined, BorderInnerOutlined, BorderLeftOutlined, BorderOuterOutlined, BorderOutlined, BorderRightOutlined, BorderTopOutlined, BorderVerticleOutlined, BorderlessTableOutlined, BoxPlotFilled, BoxPlotOutlined, BoxPlotTwoTone, BranchesOutlined, BugFilled, BugOutlined, BugTwoTone, BuildFilled, BuildOutlined, BuildTwoTone, BulbFilled, BulbOutlined, BulbTwoTone, CalculatorFilled, CalculatorOutlined, CalculatorTwoTone, CalendarFilled, CalendarOutlined, CalendarTwoTone, CameraFilled, CameraOutlined, CameraTwoTone, CarFilled, CarOutlined, CarTwoTone, CaretDownFilled, CaretDownOutlined, CaretLeftFilled, CaretLeftOutlined, CaretRightFilled, CaretRightOutlined, CaretUpFilled, CaretUpOutlined, CarryOutFilled, CarryOutOutlined, CarryOutTwoTone, CheckCircleFilled as CheckCircleFilled$4, CheckCircleOutlined as CheckCircleOutlined$4, CheckCircleTwoTone, CheckOutlined as CheckOutlined$4, CheckSquareFilled, CheckSquareOutlined, CheckSquareTwoTone, ChromeFilled, ChromeOutlined, CiCircleFilled, CiCircleOutlined, CiCircleTwoTone, CiOutlined, CiTwoTone, ClearOutlined, ClockCircleFilled, ClockCircleOutlined, ClockCircleTwoTone, CloseCircleFilled as CloseCircleFilled$4, CloseCircleOutlined as CloseCircleOutlined$4, CloseCircleTwoTone, CloseOutlined as CloseOutlined$4, CloseSquareFilled, CloseSquareOutlined, CloseSquareTwoTone, CloudDownloadOutlined, CloudFilled, CloudOutlined, CloudServerOutlined, CloudSyncOutlined, CloudTwoTone, CloudUploadOutlined, ClusterOutlined, CodeFilled, CodeOutlined, CodeSandboxCircleFilled, CodeSandboxOutlined, CodeSandboxSquareFilled, CodeTwoTone, CodepenCircleFilled, CodepenCircleOutlined, CodepenOutlined, CodepenSquareFilled, CoffeeOutlined, ColumnHeightOutlined, ColumnWidthOutlined, CommentOutlined, CompassFilled, CompassOutlined, CompassTwoTone, CompressOutlined, ConsoleSqlOutlined, ContactsFilled, ContactsOutlined, ContactsTwoTone, ContainerFilled, ContainerOutlined, ContainerTwoTone, ControlFilled, ControlOutlined, ControlTwoTone, CopyFilled, CopyOutlined as CopyOutlined$4, CopyTwoTone, CopyrightCircleFilled, CopyrightCircleOutlined, CopyrightCircleTwoTone, CopyrightOutlined, CopyrightTwoTone, CreditCardFilled, CreditCardOutlined, CreditCardTwoTone, CrownFilled, CrownOutlined, CrownTwoTone, CustomerServiceFilled, CustomerServiceOutlined, CustomerServiceTwoTone, DashOutlined, DashboardFilled, DashboardOutlined, DashboardTwoTone, DatabaseFilled, DatabaseOutlined, DatabaseTwoTone, DeleteColumnOutlined, DeleteFilled, DeleteOutlined, DeleteRowOutlined, DeleteTwoTone, DeliveredProcedureOutlined, DeploymentUnitOutlined, DesktopOutlined, DiffFilled, DiffOutlined, DiffTwoTone, DingdingOutlined, DingtalkCircleFilled, DingtalkOutlined, DingtalkSquareFilled, DisconnectOutlined, DislikeFilled, DislikeOutlined, DislikeTwoTone, DollarCircleFilled, DollarCircleOutlined, DollarCircleTwoTone, DollarOutlined, DollarTwoTone, DotChartOutlined, DoubleLeftOutlined, DoubleRightOutlined, DownCircleFilled, DownCircleOutlined, DownCircleTwoTone, DownOutlined, DownSquareFilled, DownSquareOutlined, DownSquareTwoTone, DownloadOutlined, DragOutlined, DribbbleCircleFilled, DribbbleOutlined, DribbbleSquareFilled, DribbbleSquareOutlined, DropboxCircleFilled, DropboxOutlined, DropboxSquareFilled, EditFilled, EditOutlined as EditOutlined$4, EditTwoTone, EllipsisOutlined, EnterOutlined as EnterOutlined$4, EnvironmentFilled, EnvironmentOutlined, EnvironmentTwoTone, EuroCircleFilled, EuroCircleOutlined, EuroCircleTwoTone, EuroOutlined, EuroTwoTone, ExceptionOutlined, ExclamationCircleFilled as ExclamationCircleFilled$4, ExclamationCircleTwoTone, ExclamationOutlined, ExpandAltOutlined, ExpandOutlined, ExperimentFilled, ExperimentOutlined, ExperimentTwoTone, ExportOutlined, EyeFilled, EyeInvisibleFilled, EyeInvisibleOutlined, EyeInvisibleTwoTone, EyeOutlined, EyeTwoTone, FacebookFilled, FacebookOutlined, FallOutlined, FastBackwardFilled, FastBackwardOutlined, FastForwardFilled, FastForwardOutlined, FieldBinaryOutlined, FieldNumberOutlined, FieldStringOutlined, FieldTimeOutlined, FileAddFilled, FileAddOutlined, FileAddTwoTone, FileDoneOutlined, FileExcelFilled, FileExcelOutlined, FileExcelTwoTone, FileExclamationFilled, FileExclamationOutlined, FileExclamationTwoTone, FileFilled, FileGifOutlined, FileImageFilled, FileImageOutlined, FileImageTwoTone, FileJpgOutlined, FileMarkdownFilled, FileMarkdownOutlined, FileMarkdownTwoTone, FileOutlined, FilePdfFilled, FilePdfOutlined, FilePdfTwoTone, FilePptFilled, FilePptOutlined, FilePptTwoTone, FileProtectOutlined, FileSearchOutlined, FileSyncOutlined, FileTextFilled, FileTextOutlined, FileTextTwoTone, FileTwoTone, FileUnknownFilled, FileUnknownOutlined, FileUnknownTwoTone, FileWordFilled, FileWordOutlined, FileWordTwoTone, FileZipFilled, FileZipOutlined, FileZipTwoTone, FilterFilled, FilterOutlined, FilterTwoTone, FireFilled, FireOutlined, FireTwoTone, FlagFilled, FlagOutlined, FlagTwoTone, FolderAddFilled, FolderAddOutlined, FolderAddTwoTone, FolderFilled, FolderOpenFilled, FolderOpenOutlined, FolderOpenTwoTone, FolderOutlined, FolderTwoTone, FolderViewOutlined, FontColorsOutlined, FontSizeOutlined, ForkOutlined, FormOutlined, FormatPainterFilled, FormatPainterOutlined, ForwardFilled, ForwardOutlined, FrownFilled, FrownOutlined, FrownTwoTone, FullscreenExitOutlined, FullscreenOutlined, FunctionOutlined, FundFilled, FundOutlined, FundProjectionScreenOutlined, FundTwoTone, FundViewOutlined, FunnelPlotFilled, FunnelPlotOutlined, FunnelPlotTwoTone, GatewayOutlined, GifOutlined, GiftFilled, GiftOutlined, GiftTwoTone, GithubFilled, GithubOutlined, GitlabFilled, GitlabOutlined, GlobalOutlined, GoldFilled, GoldOutlined, GoldTwoTone, GoldenFilled, GoogleCircleFilled, GoogleOutlined, GooglePlusCircleFilled, GooglePlusOutlined, GooglePlusSquareFilled, GoogleSquareFilled, GroupOutlined, HddFilled, HddOutlined, HddTwoTone, HeartFilled, HeartOutlined, HeartTwoTone, HeatMapOutlined, HighlightFilled, HighlightOutlined, HighlightTwoTone, HistoryOutlined, HolderOutlined, HomeFilled, HomeOutlined, HomeTwoTone, HourglassFilled, HourglassOutlined, HourglassTwoTone, Html5Filled, Html5Outlined, Html5TwoTone, IdcardFilled, IdcardOutlined, IdcardTwoTone, IeCircleFilled, IeOutlined, IeSquareFilled, ImportOutlined, InboxOutlined, InfoCircleFilled as InfoCircleFilled$4, InfoCircleOutlined as InfoCircleOutlined$4, InfoCircleTwoTone, InfoOutlined, InsertRowAboveOutlined, InsertRowBelowOutlined, InsertRowLeftOutlined, InsertRowRightOutlined, InstagramFilled, InstagramOutlined, InsuranceFilled, InsuranceOutlined, InsuranceTwoTone, InteractionFilled, InteractionOutlined, InteractionTwoTone, IssuesCloseOutlined, ItalicOutlined, KeyOutlined, LaptopOutlined, LayoutFilled, LayoutOutlined, LayoutTwoTone, LeftCircleFilled, LeftCircleOutlined, LeftCircleTwoTone, LeftOutlined, LeftSquareFilled, LeftSquareOutlined, LeftSquareTwoTone, LikeFilled, LikeOutlined, LikeTwoTone, LineChartOutlined, LineHeightOutlined, LineOutlined, LinkOutlined, LinkedinFilled, LinkedinOutlined, Loading3QuartersOutlined, LoadingOutlined as LoadingOutlined$4, LockFilled, LockOutlined, LockTwoTone, LoginOutlined, LogoutOutlined, MacCommandFilled, MacCommandOutlined, MailFilled, MailOutlined, MailTwoTone, ManOutlined, MedicineBoxFilled, MedicineBoxOutlined, MedicineBoxTwoTone, MediumCircleFilled, MediumOutlined, MediumSquareFilled, MediumWorkmarkOutlined, MehFilled, MehOutlined, MehTwoTone, MenuFoldOutlined, MenuOutlined, MenuUnfoldOutlined, MergeCellsOutlined, MessageFilled, MessageOutlined, MessageTwoTone, MinusCircleFilled, MinusCircleOutlined, MinusCircleTwoTone, MinusOutlined, MinusSquareFilled, MinusSquareOutlined, MinusSquareTwoTone, MobileFilled, MobileOutlined, MobileTwoTone, MoneyCollectFilled, MoneyCollectOutlined, MoneyCollectTwoTone, MonitorOutlined, MoreOutlined, NodeCollapseOutlined, NodeExpandOutlined, NodeIndexOutlined, NotificationFilled, NotificationOutlined, NotificationTwoTone, NumberOutlined, OneToOneOutlined, OrderedListOutlined, PaperClipOutlined, PartitionOutlined, PauseCircleFilled, PauseCircleOutlined, PauseCircleTwoTone, PauseOutlined, PayCircleFilled, PayCircleOutlined, PercentageOutlined, PhoneFilled, PhoneOutlined, PhoneTwoTone, PicCenterOutlined, PicLeftOutlined, PicRightOutlined, PictureFilled, PictureOutlined, PictureTwoTone, PieChartFilled, PieChartOutlined, PieChartTwoTone, PlayCircleFilled, PlayCircleOutlined, PlayCircleTwoTone, PlaySquareFilled, PlaySquareOutlined, PlaySquareTwoTone, PlusCircleFilled, PlusCircleOutlined, PlusCircleTwoTone, PlusOutlined, PlusSquareFilled, PlusSquareOutlined, PlusSquareTwoTone, PoundCircleFilled, PoundCircleOutlined, PoundCircleTwoTone, PoundOutlined, PoweroffOutlined, PrinterFilled, PrinterOutlined, PrinterTwoTone, ProfileFilled, ProfileOutlined, ProfileTwoTone, ProjectFilled, ProjectOutlined, ProjectTwoTone, PropertySafetyFilled, PropertySafetyOutlined, PropertySafetyTwoTone, PullRequestOutlined, PushpinFilled, PushpinOutlined, PushpinTwoTone, QqCircleFilled, QqOutlined, QqSquareFilled, QrcodeOutlined, QuestionCircleFilled, QuestionCircleTwoTone, QuestionOutlined, RadarChartOutlined, RadiusBottomleftOutlined, RadiusBottomrightOutlined, RadiusSettingOutlined, RadiusUpleftOutlined, RadiusUprightOutlined, ReadFilled, ReadOutlined, ReconciliationFilled, ReconciliationOutlined, ReconciliationTwoTone, RedEnvelopeFilled, RedEnvelopeOutlined, RedEnvelopeTwoTone, RedditCircleFilled, RedditOutlined, RedditSquareFilled, RedoOutlined, ReloadOutlined, RestFilled, RestOutlined, RestTwoTone, RetweetOutlined, RightCircleFilled, RightCircleOutlined, RightCircleTwoTone, RightOutlined, RightSquareFilled, RightSquareOutlined, RightSquareTwoTone, RiseOutlined, RobotFilled, RobotOutlined, RocketFilled, RocketOutlined, RocketTwoTone, RollbackOutlined, RotateLeftOutlined, RotateRightOutlined, SafetyCertificateFilled, SafetyCertificateOutlined, SafetyCertificateTwoTone, SafetyOutlined, SaveFilled, SaveOutlined, SaveTwoTone, ScanOutlined, ScheduleFilled, ScheduleOutlined, ScheduleTwoTone, ScissorOutlined, SearchOutlined, SecurityScanFilled, SecurityScanOutlined, SecurityScanTwoTone, SelectOutlined, SendOutlined, SettingFilled, SettingOutlined, SettingTwoTone, ShakeOutlined, ShareAltOutlined, ShopFilled, ShopOutlined, ShopTwoTone, ShoppingCartOutlined, ShoppingFilled, ShoppingOutlined, ShoppingTwoTone, ShrinkOutlined, SignalFilled, SisternodeOutlined, SketchCircleFilled, SketchOutlined, SketchSquareFilled, SkinFilled, SkinOutlined, SkinTwoTone, SkypeFilled, SkypeOutlined, SlackCircleFilled, SlackOutlined, SlackSquareFilled, SlackSquareOutlined, SlidersFilled, SlidersOutlined, SlidersTwoTone, SmallDashOutlined, SmileFilled, SmileOutlined, SmileTwoTone, SnippetsFilled, SnippetsOutlined, SnippetsTwoTone, SolutionOutlined, SortAscendingOutlined, SortDescendingOutlined, SoundFilled, SoundOutlined, SoundTwoTone, SplitCellsOutlined, StarFilled, StarOutlined, StarTwoTone, StepBackwardFilled, StepBackwardOutlined, StepForwardFilled, StepForwardOutlined, StockOutlined, StopFilled, StopOutlined, StopTwoTone, StrikethroughOutlined, SubnodeOutlined, SwapLeftOutlined, SwapOutlined, SwapRightOutlined, SwitcherFilled, SwitcherOutlined, SwitcherTwoTone, SyncOutlined, TableOutlined, TabletFilled, TabletOutlined, TabletTwoTone, TagFilled, TagOutlined, TagTwoTone, TagsFilled, TagsOutlined, TagsTwoTone, TaobaoCircleFilled, TaobaoCircleOutlined, TaobaoOutlined, TaobaoSquareFilled, TeamOutlined, ThunderboltFilled, ThunderboltOutlined, ThunderboltTwoTone, ToTopOutlined, ToolFilled, ToolOutlined, ToolTwoTone, TrademarkCircleFilled, TrademarkCircleOutlined, TrademarkCircleTwoTone, TrademarkOutlined, TransactionOutlined, TranslationOutlined, TrophyFilled, TrophyOutlined, TrophyTwoTone, TwitterCircleFilled, TwitterOutlined, TwitterSquareFilled, UnderlineOutlined, UndoOutlined, UngroupOutlined, UnlockFilled, UnlockOutlined, UnlockTwoTone, UnorderedListOutlined, UpCircleFilled, UpCircleOutlined, UpCircleTwoTone, UpOutlined, UpSquareFilled, UpSquareOutlined, UpSquareTwoTone, UploadOutlined, UsbFilled, UsbOutlined, UsbTwoTone, UserAddOutlined, UserDeleteOutlined, UserOutlined, UserSwitchOutlined, UsergroupAddOutlined, UsergroupDeleteOutlined, VerifiedOutlined, VerticalAlignBottomOutlined, VerticalAlignMiddleOutlined, VerticalAlignTopOutlined, VerticalLeftOutlined, VerticalRightOutlined, VideoCameraAddOutlined, VideoCameraFilled, VideoCameraOutlined, VideoCameraTwoTone, WalletFilled, WalletOutlined, WalletTwoTone, WarningFilled, WarningOutlined, WarningTwoTone, WechatFilled, WechatOutlined, WeiboCircleFilled, WeiboCircleOutlined, WeiboOutlined, WeiboSquareFilled, WeiboSquareOutlined, WhatsAppOutlined, WifiOutlined, WindowsFilled, WindowsOutlined, WomanOutlined, YahooFilled, YahooOutlined, YoutubeFilled, YoutubeOutlined, YuqueFilled, YuqueOutlined, ZhihuCircleFilled, ZhihuOutlined, ZhihuSquareFilled, ZoomInOutlined, ZoomOutOutlined } from "@ant-design/icons";
|
|
6
6
|
import { Interweave } from "interweave";
|
|
7
7
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
@@ -12,8 +12,8 @@ import k, { css as css$1 } from "styled-components";
|
|
|
12
12
|
import Measure from "react-measure";
|
|
13
13
|
import { Line, Column, Pie } from "@ant-design/plots";
|
|
14
14
|
import useDeepCompareEffect from "use-deep-compare-effect";
|
|
15
|
-
import require$$0, { Buffer as Buffer$1 } from "buffer";
|
|
16
15
|
import { Table } from "@gisce/react-formiga-table";
|
|
16
|
+
import require$$0, { Buffer as Buffer$1 } from "buffer";
|
|
17
17
|
import { GridUi } from "fiber-diagram";
|
|
18
18
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
19
19
|
import Editor from "@monaco-editor/react";
|
|
@@ -17751,7 +17751,9 @@ const transformPlainMany2Ones = ({
|
|
|
17751
17751
|
s[l] = a[l];
|
|
17752
17752
|
else {
|
|
17753
17753
|
const c = e.findById(l);
|
|
17754
|
-
if (c instanceof
|
|
17754
|
+
if (c instanceof Reference$1)
|
|
17755
|
+
s[l] = a[l];
|
|
17756
|
+
else if (c instanceof Selection$1) {
|
|
17755
17757
|
const u = c;
|
|
17756
17758
|
s[l] = u.selectionValues.get(a[l]);
|
|
17757
17759
|
} else
|
|
@@ -19580,7 +19582,99 @@ function SearchFilter(e) {
|
|
|
19580
19582
|
})
|
|
19581
19583
|
});
|
|
19582
19584
|
}
|
|
19583
|
-
const
|
|
19585
|
+
const getTextWidth$1 = (e, r = "14px -apple-system") => {
|
|
19586
|
+
const a = document.createElement("canvas").getContext("2d");
|
|
19587
|
+
a.font = r;
|
|
19588
|
+
const s = a.measureText(e);
|
|
19589
|
+
return Math.round((s.width + 80) * 1.5);
|
|
19590
|
+
}, calculateColumnsWidth = (e, r, o = 500) => {
|
|
19591
|
+
if (e.length === 0)
|
|
19592
|
+
return e;
|
|
19593
|
+
const a = e.map(
|
|
19594
|
+
(l) => Object.assign(l, {
|
|
19595
|
+
width: getTextWidth$1(l.title)
|
|
19596
|
+
})
|
|
19597
|
+
);
|
|
19598
|
+
r.map((l) => {
|
|
19599
|
+
a.map((c, u) => {
|
|
19600
|
+
const d = c.width, f = l[c.key] || "";
|
|
19601
|
+
let p = getTextWidth$1(f);
|
|
19602
|
+
p < d && (p = d), p > o && (p = o), a[u].width = p;
|
|
19603
|
+
});
|
|
19604
|
+
});
|
|
19605
|
+
const s = a.map((l) => l.width).reduce((l, c) => l + c);
|
|
19606
|
+
return {
|
|
19607
|
+
columns: a,
|
|
19608
|
+
source: r,
|
|
19609
|
+
tableWidth: s
|
|
19610
|
+
};
|
|
19611
|
+
};
|
|
19612
|
+
function parseStringToFloat(e) {
|
|
19613
|
+
if (!!e)
|
|
19614
|
+
try {
|
|
19615
|
+
if (e.includes(":")) {
|
|
19616
|
+
const r = e.trim().split(":");
|
|
19617
|
+
return Math.round(
|
|
19618
|
+
(parseInt(r[0]) + parseInt(r[1]) / 60) * 1e4
|
|
19619
|
+
) / 1e4;
|
|
19620
|
+
} else
|
|
19621
|
+
return parseFloat(e.trim());
|
|
19622
|
+
} catch {
|
|
19623
|
+
return 0;
|
|
19624
|
+
}
|
|
19625
|
+
}
|
|
19626
|
+
function parseFloatToString(e) {
|
|
19627
|
+
if (e === void 0)
|
|
19628
|
+
return;
|
|
19629
|
+
let r, o = Math.floor(Math.abs(e)), a = Math.round(Math.abs(e) % 1 * 100) / 100;
|
|
19630
|
+
a >= 1 ? (o = o + 1, a = 0) : a = a * 60;
|
|
19631
|
+
const s = o.toLocaleString("en-US", {
|
|
19632
|
+
minimumIntegerDigits: 2,
|
|
19633
|
+
maximumFractionDigits: 0,
|
|
19634
|
+
useGrouping: !1
|
|
19635
|
+
}), l = a.toLocaleString("en-US", {
|
|
19636
|
+
minimumIntegerDigits: 2,
|
|
19637
|
+
maximumFractionDigits: 0,
|
|
19638
|
+
useGrouping: !1
|
|
19639
|
+
});
|
|
19640
|
+
return r = `${s}:${l}`, e < 0 && (r = "-" + r), r;
|
|
19641
|
+
}
|
|
19642
|
+
const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
19643
|
+
...e,
|
|
19644
|
+
children: /* @__PURE__ */ jsx(ProgressBarInput, {})
|
|
19645
|
+
}), ProgressBarInput = ({
|
|
19646
|
+
value: e
|
|
19647
|
+
}) => {
|
|
19648
|
+
const r = `${(e || 0).toLocaleString("en-US", {
|
|
19649
|
+
minimumIntegerDigits: 1,
|
|
19650
|
+
maximumFractionDigits: 4,
|
|
19651
|
+
useGrouping: !1
|
|
19652
|
+
})}%`;
|
|
19653
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
19654
|
+
style: {
|
|
19655
|
+
flex: 1,
|
|
19656
|
+
display: "flex",
|
|
19657
|
+
alignItems: "center"
|
|
19658
|
+
},
|
|
19659
|
+
children: [/* @__PURE__ */ jsx(StyledProgress, {
|
|
19660
|
+
percent: e
|
|
19661
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
19662
|
+
style: {
|
|
19663
|
+
flexGrow: 1,
|
|
19664
|
+
paddingLeft: 10
|
|
19665
|
+
},
|
|
19666
|
+
children: r
|
|
19667
|
+
})]
|
|
19668
|
+
});
|
|
19669
|
+
}, StyledProgress = k(Progress)`
|
|
19670
|
+
.ant-progress-outer {
|
|
19671
|
+
margin-right: 0px;
|
|
19672
|
+
padding-right: 0px;
|
|
19673
|
+
}
|
|
19674
|
+
.ant-progress-text {
|
|
19675
|
+
display: none;
|
|
19676
|
+
}
|
|
19677
|
+
`, Many2oneSuffixModal = (e) => {
|
|
19584
19678
|
const {
|
|
19585
19679
|
visible: r,
|
|
19586
19680
|
onCancel: o,
|
|
@@ -19753,99 +19847,45 @@ const Many2oneSuffixModal = (e) => {
|
|
|
19753
19847
|
onCancel: () => u(!1)
|
|
19754
19848
|
})]
|
|
19755
19849
|
});
|
|
19756
|
-
},
|
|
19757
|
-
const
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
return
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
|
|
19769
|
-
|
|
19770
|
-
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19850
|
+
}, Many2oneTree = (e) => {
|
|
19851
|
+
const {
|
|
19852
|
+
m2oField: r
|
|
19853
|
+
} = e;
|
|
19854
|
+
return r ? /* @__PURE__ */ jsxs(Space, {
|
|
19855
|
+
children: [/* @__PURE__ */ jsx(Fragment, {
|
|
19856
|
+
children: r.value
|
|
19857
|
+
}), /* @__PURE__ */ jsx(Many2oneSuffix, {
|
|
19858
|
+
id: r.id,
|
|
19859
|
+
model: r.model
|
|
19860
|
+
})]
|
|
19861
|
+
}) : /* @__PURE__ */ jsx(Fragment, {});
|
|
19862
|
+
}, ReferenceTree = (e) => {
|
|
19863
|
+
const {
|
|
19864
|
+
value: r,
|
|
19865
|
+
context: o
|
|
19866
|
+
} = e, [a, s] = useState$1(), [l, c] = useState$1(!1), [u, d] = r ? r.split(",") : [], f = parseInt(d), p = useCallback(async () => {
|
|
19867
|
+
if (!r || r && a)
|
|
19868
|
+
return;
|
|
19869
|
+
c(!0);
|
|
19870
|
+
const h = await ConnectionProvider.getHandler().execute({
|
|
19871
|
+
action: "name_get",
|
|
19872
|
+
payload: [f],
|
|
19873
|
+
model: u,
|
|
19874
|
+
context: o
|
|
19774
19875
|
});
|
|
19775
|
-
|
|
19776
|
-
|
|
19777
|
-
return {
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
}
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
try {
|
|
19786
|
-
if (e.includes(":")) {
|
|
19787
|
-
const r = e.trim().split(":");
|
|
19788
|
-
return Math.round(
|
|
19789
|
-
(parseInt(r[0]) + parseInt(r[1]) / 60) * 1e4
|
|
19790
|
-
) / 1e4;
|
|
19791
|
-
} else
|
|
19792
|
-
return parseFloat(e.trim());
|
|
19793
|
-
} catch {
|
|
19794
|
-
return 0;
|
|
19795
|
-
}
|
|
19796
|
-
}
|
|
19797
|
-
function parseFloatToString(e) {
|
|
19798
|
-
if (e === void 0)
|
|
19799
|
-
return;
|
|
19800
|
-
let r, o = Math.floor(Math.abs(e)), a = Math.round(Math.abs(e) % 1 * 100) / 100;
|
|
19801
|
-
a >= 1 ? (o = o + 1, a = 0) : a = a * 60;
|
|
19802
|
-
const s = o.toLocaleString("en-US", {
|
|
19803
|
-
minimumIntegerDigits: 2,
|
|
19804
|
-
maximumFractionDigits: 0,
|
|
19805
|
-
useGrouping: !1
|
|
19806
|
-
}), l = a.toLocaleString("en-US", {
|
|
19807
|
-
minimumIntegerDigits: 2,
|
|
19808
|
-
maximumFractionDigits: 0,
|
|
19809
|
-
useGrouping: !1
|
|
19810
|
-
});
|
|
19811
|
-
return r = `${s}:${l}`, e < 0 && (r = "-" + r), r;
|
|
19812
|
-
}
|
|
19813
|
-
const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
19814
|
-
...e,
|
|
19815
|
-
children: /* @__PURE__ */ jsx(ProgressBarInput, {})
|
|
19816
|
-
}), ProgressBarInput = ({
|
|
19817
|
-
value: e
|
|
19818
|
-
}) => {
|
|
19819
|
-
const r = `${(e || 0).toLocaleString("en-US", {
|
|
19820
|
-
minimumIntegerDigits: 1,
|
|
19821
|
-
maximumFractionDigits: 4,
|
|
19822
|
-
useGrouping: !1
|
|
19823
|
-
})}%`;
|
|
19824
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
19825
|
-
style: {
|
|
19826
|
-
flex: 1,
|
|
19827
|
-
display: "flex",
|
|
19828
|
-
alignItems: "center"
|
|
19829
|
-
},
|
|
19830
|
-
children: [/* @__PURE__ */ jsx(StyledProgress, {
|
|
19831
|
-
percent: e
|
|
19832
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
19833
|
-
style: {
|
|
19834
|
-
flexGrow: 1,
|
|
19835
|
-
paddingLeft: 10
|
|
19836
|
-
},
|
|
19837
|
-
children: r
|
|
19876
|
+
s(h[0][1]), c(!1);
|
|
19877
|
+
}, [r, a]);
|
|
19878
|
+
return useEffect(() => {
|
|
19879
|
+
p();
|
|
19880
|
+
}, [r]), !r && !l ? /* @__PURE__ */ jsx(Fragment, {}) : l ? /* @__PURE__ */ jsx(LoadingOutlined$4, {}) : /* @__PURE__ */ jsxs(Space, {
|
|
19881
|
+
children: [/* @__PURE__ */ jsx(Fragment, {
|
|
19882
|
+
children: a
|
|
19883
|
+
}), /* @__PURE__ */ jsx(Many2oneSuffix, {
|
|
19884
|
+
id: f,
|
|
19885
|
+
model: u
|
|
19838
19886
|
})]
|
|
19839
19887
|
});
|
|
19840
|
-
},
|
|
19841
|
-
.ant-progress-outer {
|
|
19842
|
-
margin-right: 0px;
|
|
19843
|
-
padding-right: 0px;
|
|
19844
|
-
}
|
|
19845
|
-
.ant-progress-text {
|
|
19846
|
-
display: none;
|
|
19847
|
-
}
|
|
19848
|
-
`, booleanComponentFn = (e) => /* @__PURE__ */ jsx("div", {
|
|
19888
|
+
}, booleanComponentFn = (e) => /* @__PURE__ */ jsx("div", {
|
|
19849
19889
|
style: {
|
|
19850
19890
|
display: "flex",
|
|
19851
19891
|
justifyContent: "center",
|
|
@@ -19855,14 +19895,9 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
19855
19895
|
checked: e,
|
|
19856
19896
|
disabled: !0
|
|
19857
19897
|
})
|
|
19858
|
-
}), many2OneComponentFn = (e) =>
|
|
19859
|
-
|
|
19860
|
-
|
|
19861
|
-
}), /* @__PURE__ */ jsx(Many2oneSuffix, {
|
|
19862
|
-
id: e.id,
|
|
19863
|
-
model: e.model
|
|
19864
|
-
})]
|
|
19865
|
-
}) : /* @__PURE__ */ jsx(Fragment, {}), textComponentFn = (e) => /* @__PURE__ */ jsx(Interweave, {
|
|
19898
|
+
}), many2OneComponentFn = (e) => /* @__PURE__ */ jsx(Many2oneTree, {
|
|
19899
|
+
m2oField: e
|
|
19900
|
+
}), textComponentFn = (e) => /* @__PURE__ */ jsx(Interweave, {
|
|
19866
19901
|
content: e == null ? void 0 : e.replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
19867
19902
|
}), one2ManyComponentFn = (e) => {
|
|
19868
19903
|
const r = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
@@ -19884,6 +19919,8 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
19884
19919
|
maxWidth: "50px",
|
|
19885
19920
|
padding: "5px"
|
|
19886
19921
|
}
|
|
19922
|
+
}), referenceComponent = (e) => /* @__PURE__ */ jsx(ReferenceTree, {
|
|
19923
|
+
value: e
|
|
19887
19924
|
});
|
|
19888
19925
|
function Tree(e) {
|
|
19889
19926
|
const {
|
|
@@ -19918,7 +19955,8 @@ function Tree(e) {
|
|
|
19918
19955
|
float_time: floatTimeComponent,
|
|
19919
19956
|
image: imageComponent,
|
|
19920
19957
|
integer: numberComponent,
|
|
19921
|
-
float: numberComponent
|
|
19958
|
+
float: numberComponent,
|
|
19959
|
+
reference: referenceComponent
|
|
19922
19960
|
});
|
|
19923
19961
|
O(W);
|
|
19924
19962
|
}, [s]), useEffect(() => {
|