@gisce/react-ooui 1.1.17 → 1.1.18-rc.0
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/actionbar/FormActionBar.d.ts.map +1 -1
- package/dist/locales/ca_ES.d.ts +1 -0
- package/dist/locales/ca_ES.d.ts.map +1 -1
- package/dist/locales/en_US.d.ts +1 -0
- package/dist/locales/en_US.d.ts.map +1 -1
- package/dist/locales/es_ES.d.ts +1 -0
- package/dist/locales/es_ES.d.ts.map +1 -1
- package/dist/react-ooui.es.js +993 -988
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +13 -13
- package/dist/react-ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/actionbar/FormActionBar.tsx +11 -3
- package/src/locales/ca_ES.tsx +1 -0
- package/src/locales/en_US.tsx +1 -0
- package/src/locales/es_ES.tsx +1 -0
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React__default, { useContext, useState, useEffect, useRef, useLayoutEffect, Component, useCallback, forwardRef, useImperativeHandle } from "react";
|
|
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$1, Select, Checkbox, Alert, Timeline as Timeline$1, Statistic, Card, Tag, DatePicker as DatePicker$1, TimePicker, InputNumber, Progress, Pagination, Tabs, Popover, Radio as Radio$1, Switch as Switch$1, Steps as Steps$1, Layout } from "antd";
|
|
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$1, Select, Checkbox, Alert, Timeline as Timeline$1, Statistic, Card, Tag, DatePicker as DatePicker$1, TimePicker, InputNumber, Progress, Pagination, Tabs, Popover, message as message$1, Radio as Radio$1, Switch as Switch$1, Steps as Steps$1, Layout } from "antd";
|
|
4
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";
|
|
5
5
|
import Icon, { QuestionCircleOutlined, ExclamationCircleOutlined as ExclamationCircleOutlined$3, 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$3, CheckCircleOutlined as CheckCircleOutlined$3, CheckCircleTwoTone, CheckOutlined as CheckOutlined$3, CheckSquareFilled, CheckSquareOutlined, CheckSquareTwoTone, ChromeFilled, ChromeOutlined, CiCircleFilled, CiCircleOutlined, CiCircleTwoTone, CiOutlined, CiTwoTone, ClearOutlined, ClockCircleFilled, ClockCircleOutlined, ClockCircleTwoTone, CloseCircleFilled as CloseCircleFilled$3, CloseCircleOutlined as CloseCircleOutlined$3, CloseCircleTwoTone, CloseOutlined as CloseOutlined$3, 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$3, 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$3, EditTwoTone, EllipsisOutlined, EnterOutlined as EnterOutlined$3, EnvironmentFilled, EnvironmentOutlined, EnvironmentTwoTone, EuroCircleFilled, EuroCircleOutlined, EuroCircleTwoTone, EuroOutlined, EuroTwoTone, ExceptionOutlined, ExclamationCircleFilled as ExclamationCircleFilled$3, 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$3, InfoCircleOutlined as InfoCircleOutlined$3, 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$3, 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";
|
|
@@ -133,7 +133,8 @@ const {
|
|
|
133
133
|
openAttachment: "Veure detall de l'adjunt",
|
|
134
134
|
openAttachmentLink: "Obrir enlla\xE7 de l'adjunt",
|
|
135
135
|
uninformed: "Sense informar",
|
|
136
|
-
totalRegisters: "Registres totals:"
|
|
136
|
+
totalRegisters: "Registres totals:",
|
|
137
|
+
savedRegisters: "Registre guardat correctament"
|
|
137
138
|
}, en_US$5 = {
|
|
138
139
|
true: "Yes",
|
|
139
140
|
false: "No",
|
|
@@ -213,7 +214,8 @@ const {
|
|
|
213
214
|
openAttachment: "Open attachment detail",
|
|
214
215
|
openAttachmentLink: "Open attachment link",
|
|
215
216
|
uninformed: "Uninformed",
|
|
216
|
-
totalRegisters: "Total registers:"
|
|
217
|
+
totalRegisters: "Total registers:",
|
|
218
|
+
savedRegisters: "Record successfully saved"
|
|
217
219
|
}, es_ES = {
|
|
218
220
|
true: "S\xED",
|
|
219
221
|
false: "No",
|
|
@@ -293,7 +295,8 @@ const {
|
|
|
293
295
|
openAttachment: "Ver detalle del adjunto",
|
|
294
296
|
openAttachmentLink: "Abrir enlace del adjunto",
|
|
295
297
|
uninformed: "Sin informar",
|
|
296
|
-
totalRegisters: "Registros totales:"
|
|
298
|
+
totalRegisters: "Registros totales:",
|
|
299
|
+
savedRegisters: "Registro guardado correctamente"
|
|
297
300
|
}, localeStrings = {
|
|
298
301
|
ca_ES,
|
|
299
302
|
en_US: en_US$5,
|
|
@@ -4665,15 +4668,15 @@ var hasRequiredReactIs_development;
|
|
|
4665
4668
|
function requireReactIs_development() {
|
|
4666
4669
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4667
4670
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
4668
|
-
function C(
|
|
4669
|
-
return typeof
|
|
4671
|
+
function C(_) {
|
|
4672
|
+
return typeof _ == "string" || typeof _ == "function" || _ === r || _ === u || _ === a || _ === o || _ === f || _ === p || typeof _ == "object" && _ !== null && (_.$$typeof === m || _.$$typeof === h || _.$$typeof === s || _.$$typeof === c || _.$$typeof === d || _.$$typeof === x || _.$$typeof === g || _.$$typeof === I || _.$$typeof === v);
|
|
4670
4673
|
}
|
|
4671
|
-
function y(
|
|
4672
|
-
if (typeof
|
|
4673
|
-
var Y =
|
|
4674
|
+
function y(_) {
|
|
4675
|
+
if (typeof _ == "object" && _ !== null) {
|
|
4676
|
+
var Y = _.$$typeof;
|
|
4674
4677
|
switch (Y) {
|
|
4675
4678
|
case t:
|
|
4676
|
-
var Q =
|
|
4679
|
+
var Q = _.type;
|
|
4677
4680
|
switch (Q) {
|
|
4678
4681
|
case l:
|
|
4679
4682
|
case u:
|
|
@@ -4700,47 +4703,47 @@ function requireReactIs_development() {
|
|
|
4700
4703
|
}
|
|
4701
4704
|
}
|
|
4702
4705
|
}
|
|
4703
|
-
var O = l, b = u, E = c, w = s,
|
|
4704
|
-
function U(
|
|
4705
|
-
return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(
|
|
4706
|
+
var O = l, b = u, E = c, w = s, S = t, T = d, k = r, $ = m, D = h, M = n, L = a, q = o, N = f, B = !1;
|
|
4707
|
+
function U(_) {
|
|
4708
|
+
return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(_) || y(_) === l;
|
|
4706
4709
|
}
|
|
4707
|
-
function G(
|
|
4708
|
-
return y(
|
|
4710
|
+
function G(_) {
|
|
4711
|
+
return y(_) === u;
|
|
4709
4712
|
}
|
|
4710
|
-
function z(
|
|
4711
|
-
return y(
|
|
4713
|
+
function z(_) {
|
|
4714
|
+
return y(_) === c;
|
|
4712
4715
|
}
|
|
4713
|
-
function W(
|
|
4714
|
-
return y(
|
|
4716
|
+
function W(_) {
|
|
4717
|
+
return y(_) === s;
|
|
4715
4718
|
}
|
|
4716
|
-
function Z(
|
|
4717
|
-
return typeof
|
|
4719
|
+
function Z(_) {
|
|
4720
|
+
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
4718
4721
|
}
|
|
4719
|
-
function V(
|
|
4720
|
-
return y(
|
|
4722
|
+
function V(_) {
|
|
4723
|
+
return y(_) === d;
|
|
4721
4724
|
}
|
|
4722
|
-
function H(
|
|
4723
|
-
return y(
|
|
4725
|
+
function H(_) {
|
|
4726
|
+
return y(_) === r;
|
|
4724
4727
|
}
|
|
4725
|
-
function P(
|
|
4726
|
-
return y(
|
|
4728
|
+
function P(_) {
|
|
4729
|
+
return y(_) === m;
|
|
4727
4730
|
}
|
|
4728
|
-
function A(
|
|
4729
|
-
return y(
|
|
4731
|
+
function A(_) {
|
|
4732
|
+
return y(_) === h;
|
|
4730
4733
|
}
|
|
4731
|
-
function j(
|
|
4732
|
-
return y(
|
|
4734
|
+
function j(_) {
|
|
4735
|
+
return y(_) === n;
|
|
4733
4736
|
}
|
|
4734
|
-
function K(
|
|
4735
|
-
return y(
|
|
4737
|
+
function K(_) {
|
|
4738
|
+
return y(_) === a;
|
|
4736
4739
|
}
|
|
4737
|
-
function X(
|
|
4738
|
-
return y(
|
|
4740
|
+
function X(_) {
|
|
4741
|
+
return y(_) === o;
|
|
4739
4742
|
}
|
|
4740
|
-
function F(
|
|
4741
|
-
return y(
|
|
4743
|
+
function F(_) {
|
|
4744
|
+
return y(_) === f;
|
|
4742
4745
|
}
|
|
4743
|
-
reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = b, reactIs_development.ContextConsumer = E, reactIs_development.ContextProvider = w, reactIs_development.Element =
|
|
4746
|
+
reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = b, reactIs_development.ContextConsumer = E, reactIs_development.ContextProvider = w, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = D, reactIs_development.Portal = M, reactIs_development.Profiler = L, reactIs_development.StrictMode = q, reactIs_development.Suspense = N, reactIs_development.isAsyncMode = U, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = z, reactIs_development.isContextProvider = W, reactIs_development.isElement = Z, reactIs_development.isForwardRef = V, reactIs_development.isFragment = H, reactIs_development.isLazy = P, reactIs_development.isMemo = A, reactIs_development.isPortal = j, reactIs_development.isProfiler = K, reactIs_development.isStrictMode = X, reactIs_development.isSuspense = F, reactIs_development.isValidElementType = C, reactIs_development.typeOf = y;
|
|
4744
4747
|
}()), reactIs_development;
|
|
4745
4748
|
}
|
|
4746
4749
|
var hasRequiredReactIs;
|
|
@@ -6401,16 +6404,16 @@ function requireAntdIcon() {
|
|
|
6401
6404
|
var n = e(requireObjectSpread2()), r = e(requireSlicedToArray()), o = e(requireDefineProperty()), a = e(requireObjectWithoutProperties()), s = t(React__default), c = e(requireClassnames()), l = e(requireContext$2()), u = e(requireIconBase()), d = requireTwoTonePrimaryColor(), f = requireUtils(), p = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
6402
6405
|
(0, d.setTwoToneColor)("#1890ff");
|
|
6403
6406
|
var h = /* @__PURE__ */ s.forwardRef(function(v, x) {
|
|
6404
|
-
var g, I = v.className, C = v.icon, y = v.spin, O = v.rotate, b = v.tabIndex, E = v.onClick, w = v.twoToneColor,
|
|
6407
|
+
var g, I = v.className, C = v.icon, y = v.spin, O = v.rotate, b = v.tabIndex, E = v.onClick, w = v.twoToneColor, S = (0, a.default)(v, p), T = s.useContext(l.default), k = T.prefixCls, $ = k === void 0 ? "anticon" : k, D = (0, c.default)($, (g = {}, (0, o.default)(g, "".concat($, "-").concat(C.name), !!C.name), (0, o.default)(g, "".concat($, "-spin"), !!y || C.name === "loading"), g), I), M = b;
|
|
6405
6408
|
M === void 0 && E && (M = -1);
|
|
6406
6409
|
var L = O ? {
|
|
6407
6410
|
msTransform: "rotate(".concat(O, "deg)"),
|
|
6408
6411
|
transform: "rotate(".concat(O, "deg)")
|
|
6409
|
-
} : void 0, q = (0, f.normalizeTwoToneColors)(w),
|
|
6412
|
+
} : void 0, q = (0, f.normalizeTwoToneColors)(w), N = (0, r.default)(q, 2), B = N[0], U = N[1];
|
|
6410
6413
|
return /* @__PURE__ */ s.createElement("span", (0, n.default)((0, n.default)({
|
|
6411
6414
|
role: "img",
|
|
6412
6415
|
"aria-label": C.name
|
|
6413
|
-
},
|
|
6416
|
+
}, S), {}, {
|
|
6414
6417
|
ref: x,
|
|
6415
6418
|
tabIndex: M,
|
|
6416
6419
|
onClick: E,
|
|
@@ -6585,12 +6588,12 @@ function requireRegeneratorRuntime() {
|
|
|
6585
6588
|
try {
|
|
6586
6589
|
d({}, "");
|
|
6587
6590
|
} catch {
|
|
6588
|
-
d = function(L, q,
|
|
6589
|
-
return L[q] =
|
|
6591
|
+
d = function(L, q, N) {
|
|
6592
|
+
return L[q] = N;
|
|
6590
6593
|
};
|
|
6591
6594
|
}
|
|
6592
6595
|
function f(D, M, L, q) {
|
|
6593
|
-
var
|
|
6596
|
+
var N = M && M.prototype instanceof m ? M : m, B = Object.create(N.prototype), U = new T(q || []);
|
|
6594
6597
|
return B._invoke = function(G, z, W) {
|
|
6595
6598
|
var Z = "suspendedStart";
|
|
6596
6599
|
return function(V, H) {
|
|
@@ -6599,7 +6602,7 @@ function requireRegeneratorRuntime() {
|
|
|
6599
6602
|
if (Z === "completed") {
|
|
6600
6603
|
if (V === "throw")
|
|
6601
6604
|
throw H;
|
|
6602
|
-
return
|
|
6605
|
+
return $();
|
|
6603
6606
|
}
|
|
6604
6607
|
for (W.method = V, W.arg = H; ; ) {
|
|
6605
6608
|
var P = W.delegate;
|
|
@@ -6670,8 +6673,8 @@ function requireRegeneratorRuntime() {
|
|
|
6670
6673
|
});
|
|
6671
6674
|
}
|
|
6672
6675
|
function b(D, M) {
|
|
6673
|
-
function L(
|
|
6674
|
-
var z = p(D[
|
|
6676
|
+
function L(N, B, U, G) {
|
|
6677
|
+
var z = p(D[N], D, B);
|
|
6675
6678
|
if (z.type !== "throw") {
|
|
6676
6679
|
var W = z.arg, Z = W.value;
|
|
6677
6680
|
return Z && t(Z) == "object" && a.call(Z, "__await") ? M.resolve(Z.__await).then(function(V) {
|
|
@@ -6687,10 +6690,10 @@ function requireRegeneratorRuntime() {
|
|
|
6687
6690
|
G(z.arg);
|
|
6688
6691
|
}
|
|
6689
6692
|
var q;
|
|
6690
|
-
this._invoke = function(
|
|
6693
|
+
this._invoke = function(N, B) {
|
|
6691
6694
|
function U() {
|
|
6692
6695
|
return new M(function(G, z) {
|
|
6693
|
-
L(
|
|
6696
|
+
L(N, B, G, z);
|
|
6694
6697
|
});
|
|
6695
6698
|
}
|
|
6696
6699
|
return q = q ? q.then(U, U) : U();
|
|
@@ -6709,8 +6712,8 @@ function requireRegeneratorRuntime() {
|
|
|
6709
6712
|
var q = p(L, D.iterator, M.arg);
|
|
6710
6713
|
if (q.type === "throw")
|
|
6711
6714
|
return M.method = "throw", M.arg = q.arg, M.delegate = null, h;
|
|
6712
|
-
var
|
|
6713
|
-
return
|
|
6715
|
+
var N = q.arg;
|
|
6716
|
+
return N ? N.done ? (M[D.resultName] = N.value, M.next = D.nextLoc, M.method !== "return" && (M.method = "next", M.arg = void 0), M.delegate = null, h) : N : (M.method = "throw", M.arg = new TypeError("iterator result is not an object"), M.delegate = null, h);
|
|
6714
6717
|
}
|
|
6715
6718
|
function w(D) {
|
|
6716
6719
|
var M = {
|
|
@@ -6718,11 +6721,11 @@ function requireRegeneratorRuntime() {
|
|
|
6718
6721
|
};
|
|
6719
6722
|
1 in D && (M.catchLoc = D[1]), 2 in D && (M.finallyLoc = D[2], M.afterLoc = D[3]), this.tryEntries.push(M);
|
|
6720
6723
|
}
|
|
6721
|
-
function
|
|
6724
|
+
function S(D) {
|
|
6722
6725
|
var M = D.completion || {};
|
|
6723
6726
|
M.type = "normal", delete M.arg, D.completion = M;
|
|
6724
6727
|
}
|
|
6725
|
-
function
|
|
6728
|
+
function T(D) {
|
|
6726
6729
|
this.tryEntries = [{
|
|
6727
6730
|
tryLoc: "root"
|
|
6728
6731
|
}], D.forEach(w, this), this.reset(!0);
|
|
@@ -6735,20 +6738,20 @@ function requireRegeneratorRuntime() {
|
|
|
6735
6738
|
if (typeof D.next == "function")
|
|
6736
6739
|
return D;
|
|
6737
6740
|
if (!isNaN(D.length)) {
|
|
6738
|
-
var L = -1, q = function
|
|
6741
|
+
var L = -1, q = function N() {
|
|
6739
6742
|
for (; ++L < D.length; )
|
|
6740
6743
|
if (a.call(D, L))
|
|
6741
|
-
return
|
|
6742
|
-
return
|
|
6744
|
+
return N.value = D[L], N.done = !1, N;
|
|
6745
|
+
return N.value = void 0, N.done = !0, N;
|
|
6743
6746
|
};
|
|
6744
6747
|
return q.next = q;
|
|
6745
6748
|
}
|
|
6746
6749
|
}
|
|
6747
6750
|
return {
|
|
6748
|
-
next:
|
|
6751
|
+
next: $
|
|
6749
6752
|
};
|
|
6750
6753
|
}
|
|
6751
|
-
function
|
|
6754
|
+
function $() {
|
|
6752
6755
|
return {
|
|
6753
6756
|
value: void 0,
|
|
6754
6757
|
done: !0
|
|
@@ -6765,9 +6768,9 @@ function requireRegeneratorRuntime() {
|
|
|
6765
6768
|
};
|
|
6766
6769
|
}, O(b.prototype), d(b.prototype, l, function() {
|
|
6767
6770
|
return this;
|
|
6768
|
-
}), r.AsyncIterator = b, r.async = function(D, M, L, q,
|
|
6769
|
-
|
|
6770
|
-
var B = new b(f(D, M, L, q),
|
|
6771
|
+
}), r.AsyncIterator = b, r.async = function(D, M, L, q, N) {
|
|
6772
|
+
N === void 0 && (N = Promise);
|
|
6773
|
+
var B = new b(f(D, M, L, q), N);
|
|
6771
6774
|
return r.isGeneratorFunction(M) ? B : B.next().then(function(U) {
|
|
6772
6775
|
return U.done ? U.value : B.next();
|
|
6773
6776
|
});
|
|
@@ -6781,16 +6784,16 @@ function requireRegeneratorRuntime() {
|
|
|
6781
6784
|
M.push(L);
|
|
6782
6785
|
return M.reverse(), function q() {
|
|
6783
6786
|
for (; M.length; ) {
|
|
6784
|
-
var
|
|
6785
|
-
if (
|
|
6786
|
-
return q.value =
|
|
6787
|
+
var N = M.pop();
|
|
6788
|
+
if (N in D)
|
|
6789
|
+
return q.value = N, q.done = !1, q;
|
|
6787
6790
|
}
|
|
6788
6791
|
return q.done = !0, q;
|
|
6789
6792
|
};
|
|
6790
|
-
}, r.values = k,
|
|
6791
|
-
constructor:
|
|
6793
|
+
}, r.values = k, T.prototype = {
|
|
6794
|
+
constructor: T,
|
|
6792
6795
|
reset: function(M) {
|
|
6793
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(
|
|
6796
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(S), !M)
|
|
6794
6797
|
for (var L in this)
|
|
6795
6798
|
L.charAt(0) === "t" && a.call(this, L) && !isNaN(+L.slice(1)) && (this[L] = void 0);
|
|
6796
6799
|
},
|
|
@@ -6808,8 +6811,8 @@ function requireRegeneratorRuntime() {
|
|
|
6808
6811
|
function q(W, Z) {
|
|
6809
6812
|
return U.type = "throw", U.arg = M, L.next = W, Z && (L.method = "next", L.arg = void 0), !!Z;
|
|
6810
6813
|
}
|
|
6811
|
-
for (var
|
|
6812
|
-
var B = this.tryEntries[
|
|
6814
|
+
for (var N = this.tryEntries.length - 1; N >= 0; --N) {
|
|
6815
|
+
var B = this.tryEntries[N], U = B.completion;
|
|
6813
6816
|
if (B.tryLoc === "root")
|
|
6814
6817
|
return q("end");
|
|
6815
6818
|
if (B.tryLoc <= this.prev) {
|
|
@@ -6833,9 +6836,9 @@ function requireRegeneratorRuntime() {
|
|
|
6833
6836
|
},
|
|
6834
6837
|
abrupt: function(M, L) {
|
|
6835
6838
|
for (var q = this.tryEntries.length - 1; q >= 0; --q) {
|
|
6836
|
-
var
|
|
6837
|
-
if (
|
|
6838
|
-
var B =
|
|
6839
|
+
var N = this.tryEntries[q];
|
|
6840
|
+
if (N.tryLoc <= this.prev && a.call(N, "finallyLoc") && this.prev < N.finallyLoc) {
|
|
6841
|
+
var B = N;
|
|
6839
6842
|
break;
|
|
6840
6843
|
}
|
|
6841
6844
|
}
|
|
@@ -6852,17 +6855,17 @@ function requireRegeneratorRuntime() {
|
|
|
6852
6855
|
for (var L = this.tryEntries.length - 1; L >= 0; --L) {
|
|
6853
6856
|
var q = this.tryEntries[L];
|
|
6854
6857
|
if (q.finallyLoc === M)
|
|
6855
|
-
return this.complete(q.completion, q.afterLoc),
|
|
6858
|
+
return this.complete(q.completion, q.afterLoc), S(q), h;
|
|
6856
6859
|
}
|
|
6857
6860
|
},
|
|
6858
6861
|
catch: function(M) {
|
|
6859
6862
|
for (var L = this.tryEntries.length - 1; L >= 0; --L) {
|
|
6860
6863
|
var q = this.tryEntries[L];
|
|
6861
6864
|
if (q.tryLoc === M) {
|
|
6862
|
-
var
|
|
6863
|
-
if (
|
|
6864
|
-
var B =
|
|
6865
|
-
|
|
6865
|
+
var N = q.completion;
|
|
6866
|
+
if (N.type === "throw") {
|
|
6867
|
+
var B = N.arg;
|
|
6868
|
+
S(q);
|
|
6866
6869
|
}
|
|
6867
6870
|
return B;
|
|
6868
6871
|
}
|
|
@@ -7497,16 +7500,16 @@ Schema.prototype = {
|
|
|
7497
7500
|
return g.message !== void 0 ? E = [].concat(g.message).map(complementError(g)) : s.error && (E = [s.error(g, format$1(s.messages.required, g.field))]), x(E);
|
|
7498
7501
|
var w = {};
|
|
7499
7502
|
if (g.defaultField)
|
|
7500
|
-
for (var
|
|
7501
|
-
v.value.hasOwnProperty(
|
|
7503
|
+
for (var S in v.value)
|
|
7504
|
+
v.value.hasOwnProperty(S) && (w[S] = g.defaultField);
|
|
7502
7505
|
w = _extends(_extends({}, w), v.rule.fields);
|
|
7503
|
-
for (var
|
|
7504
|
-
if (w.hasOwnProperty(
|
|
7505
|
-
var k = Array.isArray(w[
|
|
7506
|
-
w[
|
|
7506
|
+
for (var T in w)
|
|
7507
|
+
if (w.hasOwnProperty(T)) {
|
|
7508
|
+
var k = Array.isArray(w[T]) ? w[T] : [w[T]];
|
|
7509
|
+
w[T] = k.map(C.bind(null, T));
|
|
7507
7510
|
}
|
|
7508
|
-
var
|
|
7509
|
-
|
|
7511
|
+
var $ = new Schema(w);
|
|
7512
|
+
$.messages(s.messages), v.rule.options && (v.rule.options.messages = s.messages, v.rule.options.error = s.error), $.validate(v.value, v.rule.options || s, function(D) {
|
|
7510
7513
|
var M = [];
|
|
7511
7514
|
E && E.length && M.push.apply(M, E), D && D.length && M.push.apply(M, D), x(M.length ? M : null);
|
|
7512
7515
|
});
|
|
@@ -8016,32 +8019,32 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
8016
8019
|
var u = o.props.fieldContext.getFieldsValue, d = o.getNamePath();
|
|
8017
8020
|
return getValue(l || u(!0), d);
|
|
8018
8021
|
}, o.getControlled = function() {
|
|
8019
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, p = u.getValueFromEvent, h = u.normalize, m = u.valuePropName, v = u.getValueProps, x = u.fieldContext, g = f !== void 0 ? f : x.validateTrigger, I = o.getNamePath(), C = x.getInternalHooks, y = x.getFieldsValue, O = C(HOOK_MARK), b = O.dispatch, E = o.getValue(), w = v || function(
|
|
8020
|
-
return _defineProperty$1({}, m,
|
|
8021
|
-
},
|
|
8022
|
-
|
|
8022
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, p = u.getValueFromEvent, h = u.normalize, m = u.valuePropName, v = u.getValueProps, x = u.fieldContext, g = f !== void 0 ? f : x.validateTrigger, I = o.getNamePath(), C = x.getInternalHooks, y = x.getFieldsValue, O = C(HOOK_MARK), b = O.dispatch, E = o.getValue(), w = v || function($) {
|
|
8023
|
+
return _defineProperty$1({}, m, $);
|
|
8024
|
+
}, S = l[d], T = _objectSpread2$1(_objectSpread2$1({}, l), w(E));
|
|
8025
|
+
T[d] = function() {
|
|
8023
8026
|
o.touched = !0, o.dirty = !0;
|
|
8024
|
-
for (var
|
|
8027
|
+
for (var $, D = arguments.length, M = new Array(D), L = 0; L < D; L++)
|
|
8025
8028
|
M[L] = arguments[L];
|
|
8026
|
-
p ?
|
|
8029
|
+
p ? $ = p.apply(void 0, M) : $ = defaultGetValueFromEvent.apply(void 0, [m].concat(M)), h && ($ = h($, E, y(!0))), b({
|
|
8027
8030
|
type: "updateValue",
|
|
8028
8031
|
namePath: I,
|
|
8029
|
-
value:
|
|
8030
|
-
}),
|
|
8032
|
+
value: $
|
|
8033
|
+
}), S && S.apply(void 0, M);
|
|
8031
8034
|
};
|
|
8032
8035
|
var k = toArray$2(g || []);
|
|
8033
|
-
return k.forEach(function(
|
|
8034
|
-
var D =
|
|
8035
|
-
|
|
8036
|
+
return k.forEach(function($) {
|
|
8037
|
+
var D = T[$];
|
|
8038
|
+
T[$] = function() {
|
|
8036
8039
|
D && D.apply(void 0, arguments);
|
|
8037
8040
|
var M = o.props.rules;
|
|
8038
8041
|
M && M.length && b({
|
|
8039
8042
|
type: "validateField",
|
|
8040
8043
|
namePath: I,
|
|
8041
|
-
triggerName:
|
|
8044
|
+
triggerName: $
|
|
8042
8045
|
});
|
|
8043
8046
|
};
|
|
8044
|
-
}),
|
|
8047
|
+
}), T;
|
|
8045
8048
|
}, r.fieldContext) {
|
|
8046
8049
|
var a = r.fieldContext.getInternalHooks, s = a(HOOK_MARK), c = s.initEntityValue;
|
|
8047
8050
|
c(_assertThisInitialized(o));
|
|
@@ -8120,21 +8123,21 @@ var List = function(t) {
|
|
|
8120
8123
|
return E || [];
|
|
8121
8124
|
}, y = {
|
|
8122
8125
|
add: function(E, w) {
|
|
8123
|
-
var
|
|
8124
|
-
w >= 0 && w <=
|
|
8126
|
+
var S = C();
|
|
8127
|
+
w >= 0 && w <= S.length ? (u.keys = [].concat(_toConsumableArray(u.keys.slice(0, w)), [u.id], _toConsumableArray(u.keys.slice(w))), g([].concat(_toConsumableArray(S.slice(0, w)), [E], _toConsumableArray(S.slice(w))))) : (process.env.NODE_ENV !== "production" && (w < 0 || w > S.length) && warningOnce(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(_toConsumableArray(u.keys), [u.id]), g([].concat(_toConsumableArray(S), [E]))), u.id += 1;
|
|
8125
8128
|
},
|
|
8126
8129
|
remove: function(E) {
|
|
8127
|
-
var w = C(),
|
|
8128
|
-
|
|
8129
|
-
return !
|
|
8130
|
-
}), g(w.filter(function(
|
|
8131
|
-
return !
|
|
8130
|
+
var w = C(), S = new Set(Array.isArray(E) ? E : [E]);
|
|
8131
|
+
S.size <= 0 || (u.keys = u.keys.filter(function(T, k) {
|
|
8132
|
+
return !S.has(k);
|
|
8133
|
+
}), g(w.filter(function(T, k) {
|
|
8134
|
+
return !S.has(k);
|
|
8132
8135
|
})));
|
|
8133
8136
|
},
|
|
8134
8137
|
move: function(E, w) {
|
|
8135
8138
|
if (E !== w) {
|
|
8136
|
-
var
|
|
8137
|
-
E < 0 || E >=
|
|
8139
|
+
var S = C();
|
|
8140
|
+
E < 0 || E >= S.length || w < 0 || w >= S.length || (u.keys = move(u.keys, E, w), g(move(S, E, w)));
|
|
8138
8141
|
}
|
|
8139
8142
|
}
|
|
8140
8143
|
}, O = x || [];
|
|
@@ -8713,14 +8716,14 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8713
8716
|
children: a
|
|
8714
8717
|
});
|
|
8715
8718
|
}, Form$2 = function(t, n) {
|
|
8716
|
-
var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, g = t.onFinishFailed, I = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), C = React.useContext(FormContext), y = useForm(s), O = _slicedToArray(y, 1), b = O[0], E = b.getInternalHooks(HOOK_MARK), w = E.useSubscribe,
|
|
8719
|
+
var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, g = t.onFinishFailed, I = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), C = React.useContext(FormContext), y = useForm(s), O = _slicedToArray(y, 1), b = O[0], E = b.getInternalHooks(HOOK_MARK), w = E.useSubscribe, S = E.setInitialValues, T = E.setCallbacks, k = E.setValidateMessages, $ = E.setPreserve;
|
|
8717
8720
|
React.useImperativeHandle(n, function() {
|
|
8718
8721
|
return b;
|
|
8719
8722
|
}), React.useEffect(function() {
|
|
8720
8723
|
return C.registerForm(r, b), function() {
|
|
8721
8724
|
C.unregisterForm(r);
|
|
8722
8725
|
};
|
|
8723
|
-
}, [C, b, r]), k(_objectSpread2$1(_objectSpread2$1({}, C.validateMessages), f)),
|
|
8726
|
+
}, [C, b, r]), k(_objectSpread2$1(_objectSpread2$1({}, C.validateMessages), f)), T({
|
|
8724
8727
|
onValuesChange: m,
|
|
8725
8728
|
onFieldsChange: function(z) {
|
|
8726
8729
|
if (C.triggerFormChange(r, z), v) {
|
|
@@ -8733,18 +8736,18 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8733
8736
|
C.triggerFormFinish(r, z), x && x(z);
|
|
8734
8737
|
},
|
|
8735
8738
|
onFinishFailed: g
|
|
8736
|
-
}),
|
|
8739
|
+
}), $(c);
|
|
8737
8740
|
var D = React.useRef(null);
|
|
8738
|
-
|
|
8741
|
+
S(o, !D.current), D.current || (D.current = !0);
|
|
8739
8742
|
var M = l, L = typeof l == "function";
|
|
8740
8743
|
if (L) {
|
|
8741
8744
|
var q = b.getFieldsValue(!0);
|
|
8742
8745
|
M = l(q, b);
|
|
8743
8746
|
}
|
|
8744
8747
|
w(!L);
|
|
8745
|
-
var
|
|
8748
|
+
var N = React.useRef();
|
|
8746
8749
|
React.useEffect(function() {
|
|
8747
|
-
isSimilar(
|
|
8750
|
+
isSimilar(N.current || [], a || []) || b.setFields(a || []), N.current = a;
|
|
8748
8751
|
}, [a, b]);
|
|
8749
8752
|
var B = React.useMemo(function() {
|
|
8750
8753
|
return _objectSpread2$1(_objectSpread2$1({}, b), {}, {
|
|
@@ -9315,17 +9318,17 @@ function requireEmpty() {
|
|
|
9315
9318
|
g.indexOf(C[y]) < 0 && Object.prototype.propertyIsEnumerable.call(x, C[y]) && (I[C[y]] = x[C[y]]);
|
|
9316
9319
|
return I;
|
|
9317
9320
|
}, p = /* @__PURE__ */ a.createElement(u.default, null), h = /* @__PURE__ */ a.createElement(d.default, null), m = function(g) {
|
|
9318
|
-
var I = g.className, C = g.prefixCls, y = g.image, O = y === void 0 ? p : y, b = g.description, E = g.children, w = g.imageStyle,
|
|
9321
|
+
var I = g.className, C = g.prefixCls, y = g.image, O = y === void 0 ? p : y, b = g.description, E = g.children, w = g.imageStyle, S = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), T = a.useContext(c.ConfigContext), k = T.getPrefixCls, $ = T.direction;
|
|
9319
9322
|
return /* @__PURE__ */ a.createElement(l.default, {
|
|
9320
9323
|
componentName: "Empty"
|
|
9321
9324
|
}, function(D) {
|
|
9322
|
-
var M, L = k("empty", C), q = typeof b < "u" ? b : D.description,
|
|
9325
|
+
var M, L = k("empty", C), q = typeof b < "u" ? b : D.description, N = typeof q == "string" ? q : "empty", B = null;
|
|
9323
9326
|
return typeof O == "string" ? B = /* @__PURE__ */ a.createElement("img", {
|
|
9324
|
-
alt:
|
|
9327
|
+
alt: N,
|
|
9325
9328
|
src: O
|
|
9326
9329
|
}) : B = O, /* @__PURE__ */ a.createElement("div", (0, r.default)({
|
|
9327
|
-
className: (0, s.default)(L, (M = {}, (0, o.default)(M, "".concat(L, "-normal"), O === h), (0, o.default)(M, "".concat(L, "-rtl"),
|
|
9328
|
-
},
|
|
9330
|
+
className: (0, s.default)(L, (M = {}, (0, o.default)(M, "".concat(L, "-normal"), O === h), (0, o.default)(M, "".concat(L, "-rtl"), $ === "rtl"), M), I)
|
|
9331
|
+
}, S), /* @__PURE__ */ a.createElement("div", {
|
|
9329
9332
|
className: "".concat(L, "-image"),
|
|
9330
9333
|
style: w
|
|
9331
9334
|
}, B), q && /* @__PURE__ */ a.createElement("div", {
|
|
@@ -9563,7 +9566,7 @@ const useStepQueue = function(e, t) {
|
|
|
9563
9566
|
}, []), [a, o];
|
|
9564
9567
|
};
|
|
9565
9568
|
function useStatus(e, t, n, r) {
|
|
9566
|
-
var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, p = r.onAppearPrepare, h = r.onEnterPrepare, m = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, I = r.onAppearActive, C = r.onEnterActive, y = r.onLeaveActive, O = r.onAppearEnd, b = r.onEnterEnd, E = r.onLeaveEnd, w = r.onVisibleChanged,
|
|
9569
|
+
var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, p = r.onAppearPrepare, h = r.onEnterPrepare, m = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, I = r.onAppearActive, C = r.onEnterActive, y = r.onLeaveActive, O = r.onAppearEnd, b = r.onEnterEnd, E = r.onLeaveEnd, w = r.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), k = T[0], $ = T[1], D = useMountStatus(STATUS_NONE), M = _slicedToArray(D, 2), L = M[0], q = M[1], N = useMountStatus(null), B = _slicedToArray(N, 2), U = B[0], G = B[1], z = useRef(!1), W = useRef(null), Z = useRef(!1), V = useRef(null);
|
|
9567
9570
|
function H() {
|
|
9568
9571
|
var oe = n();
|
|
9569
9572
|
return oe || V.current;
|
|
@@ -9588,7 +9591,7 @@ function useStatus(e, t, n, r) {
|
|
|
9588
9591
|
default:
|
|
9589
9592
|
return {};
|
|
9590
9593
|
}
|
|
9591
|
-
}, [L]),
|
|
9594
|
+
}, [L]), _ = useStepQueue(L, function(oe) {
|
|
9592
9595
|
if (oe === STEP_PREPARE) {
|
|
9593
9596
|
var le = F[STEP_PREPARE];
|
|
9594
9597
|
return le ? le(H()) : SkipStep;
|
|
@@ -9602,9 +9605,9 @@ function useStatus(e, t, n, r) {
|
|
|
9602
9605
|
deadline: !0
|
|
9603
9606
|
});
|
|
9604
9607
|
}, d))), DoStep;
|
|
9605
|
-
}), Y = _slicedToArray(
|
|
9608
|
+
}), Y = _slicedToArray(_, 2), Q = Y[0], ne = Y[1], J = isActive(ne);
|
|
9606
9609
|
P.current = J, useIsomorphicLayoutEffect(function() {
|
|
9607
|
-
if (
|
|
9610
|
+
if ($(t), !!e) {
|
|
9608
9611
|
var oe = z.current;
|
|
9609
9612
|
z.current = !0;
|
|
9610
9613
|
var le;
|
|
@@ -9652,29 +9655,29 @@ function genCSSMotion(e) {
|
|
|
9652
9655
|
return null;
|
|
9653
9656
|
}
|
|
9654
9657
|
}
|
|
9655
|
-
var C = useStatus(v, c, I, o), y = _slicedToArray(C, 4), O = y[0], b = y[1], E = y[2], w = y[3],
|
|
9656
|
-
|
|
9657
|
-
var
|
|
9658
|
-
x.current = L, fillRef(
|
|
9659
|
-
}, []), k,
|
|
9658
|
+
var C = useStatus(v, c, I, o), y = _slicedToArray(C, 4), O = y[0], b = y[1], E = y[2], w = y[3], S = useRef(a);
|
|
9659
|
+
S.current = a;
|
|
9660
|
+
var T = React.useCallback(function(L) {
|
|
9661
|
+
x.current = L, fillRef(S.current, L);
|
|
9662
|
+
}, []), k, $ = _objectSpread2$1(_objectSpread2$1({}, m), {}, {
|
|
9660
9663
|
visible: c
|
|
9661
9664
|
});
|
|
9662
9665
|
if (!f)
|
|
9663
9666
|
k = null;
|
|
9664
9667
|
else if (O === STATUS_NONE || !n(o))
|
|
9665
|
-
w ? k = f(_objectSpread2$1({},
|
|
9668
|
+
w ? k = f(_objectSpread2$1({}, $), T) : u ? d ? k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
|
|
9666
9669
|
style: {
|
|
9667
9670
|
display: "none"
|
|
9668
9671
|
}
|
|
9669
|
-
}),
|
|
9672
|
+
}), T) : k = null : k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
|
|
9670
9673
|
className: h
|
|
9671
|
-
}),
|
|
9674
|
+
}), T);
|
|
9672
9675
|
else {
|
|
9673
9676
|
var D, M;
|
|
9674
|
-
b === STEP_PREPARE ? M = "prepare" : isActive(b) ? M = "active" : b === STEP_START && (M = "start"), k = f(_objectSpread2$1(_objectSpread2$1({},
|
|
9677
|
+
b === STEP_PREPARE ? M = "prepare" : isActive(b) ? M = "active" : b === STEP_START && (M = "start"), k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
|
|
9675
9678
|
className: classnamesExports(getTransitionName$1(p, O), (D = {}, _defineProperty$1(D, getTransitionName$1(p, "".concat(O, "-").concat(M)), M), _defineProperty$1(D, p, typeof p == "string"), D)),
|
|
9676
9679
|
style: E
|
|
9677
|
-
}),
|
|
9680
|
+
}), T);
|
|
9678
9681
|
}
|
|
9679
9682
|
return /* @__PURE__ */ jsx(DomWrapper, {
|
|
9680
9683
|
ref: g,
|
|
@@ -10264,22 +10267,22 @@ function requireNotice() {
|
|
|
10264
10267
|
}, {
|
|
10265
10268
|
key: "render",
|
|
10266
10269
|
value: function() {
|
|
10267
|
-
var v = this, x = this.props, g = x.prefixCls, I = x.className, C = x.closable, y = x.closeIcon, O = x.style, b = x.onClick, E = x.children, w = x.holder,
|
|
10268
|
-
return (D.substr(0, 5) === "data-" || D.substr(0, 5) === "aria-" || D === "role") && (
|
|
10270
|
+
var v = this, x = this.props, g = x.prefixCls, I = x.className, C = x.closable, y = x.closeIcon, O = x.style, b = x.onClick, E = x.children, w = x.holder, S = "".concat(g, "-notice"), T = Object.keys(this.props).reduce(function($, D) {
|
|
10271
|
+
return (D.substr(0, 5) === "data-" || D.substr(0, 5) === "aria-" || D === "role") && ($[D] = v.props[D]), $;
|
|
10269
10272
|
}, {}), k = c.createElement("div", Object.assign({
|
|
10270
|
-
className: (0, u.default)(
|
|
10273
|
+
className: (0, u.default)(S, I, (0, n.default)({}, "".concat(S, "-closable"), C)),
|
|
10271
10274
|
style: O,
|
|
10272
10275
|
onMouseEnter: this.clearCloseTimer,
|
|
10273
10276
|
onMouseLeave: this.startCloseTimer,
|
|
10274
10277
|
onClick: b
|
|
10275
|
-
},
|
|
10276
|
-
className: "".concat(
|
|
10278
|
+
}, T), c.createElement("div", {
|
|
10279
|
+
className: "".concat(S, "-content")
|
|
10277
10280
|
}, E), C ? c.createElement("a", {
|
|
10278
10281
|
tabIndex: 0,
|
|
10279
10282
|
onClick: this.close,
|
|
10280
|
-
className: "".concat(
|
|
10283
|
+
className: "".concat(S, "-close")
|
|
10281
10284
|
}, y || c.createElement("span", {
|
|
10282
|
-
className: "".concat(
|
|
10285
|
+
className: "".concat(S, "-close-x")
|
|
10283
10286
|
})) : null);
|
|
10284
10287
|
return w ? l.default.createPortal(k, w) : k;
|
|
10285
10288
|
}
|
|
@@ -10331,30 +10334,30 @@ function requireUseMessage() {
|
|
|
10331
10334
|
function u(d, f) {
|
|
10332
10335
|
var p = function() {
|
|
10333
10336
|
var m, v = null, x = {
|
|
10334
|
-
add: function(w,
|
|
10335
|
-
v == null || v.component.add(w,
|
|
10337
|
+
add: function(w, S) {
|
|
10338
|
+
v == null || v.component.add(w, S);
|
|
10336
10339
|
}
|
|
10337
10340
|
}, g = (0, s.default)(x), I = (0, o.default)(g, 2), C = I[0], y = I[1];
|
|
10338
10341
|
function O(E) {
|
|
10339
|
-
var w = E.prefixCls,
|
|
10342
|
+
var w = E.prefixCls, S = m("message", w), T = E.key || (0, l.getKeyThenIncreaseKey)(), k = new Promise(function(D) {
|
|
10340
10343
|
var M = function() {
|
|
10341
10344
|
return typeof E.onClose == "function" && E.onClose(), D(!0);
|
|
10342
10345
|
};
|
|
10343
10346
|
d((0, r.default)((0, r.default)({}, E), {
|
|
10344
|
-
prefixCls:
|
|
10347
|
+
prefixCls: S
|
|
10345
10348
|
}), function(L) {
|
|
10346
|
-
var q = L.prefixCls,
|
|
10347
|
-
v =
|
|
10348
|
-
key:
|
|
10349
|
+
var q = L.prefixCls, N = L.instance;
|
|
10350
|
+
v = N, C(f((0, r.default)((0, r.default)({}, E), {
|
|
10351
|
+
key: T,
|
|
10349
10352
|
onClose: M
|
|
10350
10353
|
}), q));
|
|
10351
10354
|
});
|
|
10352
|
-
}),
|
|
10353
|
-
v && v.removeNotice(
|
|
10355
|
+
}), $ = function() {
|
|
10356
|
+
v && v.removeNotice(T);
|
|
10354
10357
|
};
|
|
10355
|
-
return
|
|
10358
|
+
return $.then = function(D, M) {
|
|
10356
10359
|
return k.then(D, M);
|
|
10357
|
-
},
|
|
10360
|
+
}, $.promise = k, $;
|
|
10358
10361
|
}
|
|
10359
10362
|
var b = a.useRef({});
|
|
10360
10363
|
return b.current.open = O, ["success", "info", "warning", "error", "loading"].forEach(function(E) {
|
|
@@ -10383,7 +10386,7 @@ function requireMessage() {
|
|
|
10383
10386
|
function w(B) {
|
|
10384
10387
|
B.top !== void 0 && (x = B.top, m = null), B.duration !== void 0 && (v = B.duration), B.prefixCls !== void 0 && (I = B.prefixCls), B.getContainer !== void 0 && (y = B.getContainer), B.transitionName !== void 0 && (C = B.transitionName, m = null), B.maxCount !== void 0 && (O = B.maxCount, m = null), B.rtl !== void 0 && (b = B.rtl);
|
|
10385
10388
|
}
|
|
10386
|
-
function
|
|
10389
|
+
function S(B, U) {
|
|
10387
10390
|
var G = B.prefixCls || I;
|
|
10388
10391
|
if (m) {
|
|
10389
10392
|
U({
|
|
@@ -10414,7 +10417,7 @@ function requireMessage() {
|
|
|
10414
10417
|
});
|
|
10415
10418
|
});
|
|
10416
10419
|
}
|
|
10417
|
-
var
|
|
10420
|
+
var T = {
|
|
10418
10421
|
info: p.default,
|
|
10419
10422
|
success: f.default,
|
|
10420
10423
|
error: d.default,
|
|
@@ -10422,7 +10425,7 @@ function requireMessage() {
|
|
|
10422
10425
|
loading: l.default
|
|
10423
10426
|
};
|
|
10424
10427
|
function k(B, U) {
|
|
10425
|
-
var G, z = B.duration !== void 0 ? B.duration : v, W =
|
|
10428
|
+
var G, z = B.duration !== void 0 ? B.duration : v, W = T[B.type], Z = (0, s.default)("".concat(U, "-custom-content"), (G = {}, (0, o.default)(G, "".concat(U, "-").concat(B.type), B.type), (0, o.default)(G, "".concat(U, "-rtl"), b === !0), G));
|
|
10426
10429
|
return {
|
|
10427
10430
|
key: B.key,
|
|
10428
10431
|
duration: z,
|
|
@@ -10435,12 +10438,12 @@ function requireMessage() {
|
|
|
10435
10438
|
onClick: B.onClick
|
|
10436
10439
|
};
|
|
10437
10440
|
}
|
|
10438
|
-
function
|
|
10441
|
+
function $(B) {
|
|
10439
10442
|
var U = B.key || g++, G = new Promise(function(W) {
|
|
10440
10443
|
var Z = function() {
|
|
10441
10444
|
return typeof B.onClose == "function" && B.onClose(), W(!0);
|
|
10442
10445
|
};
|
|
10443
|
-
|
|
10446
|
+
S(B, function(V) {
|
|
10444
10447
|
var H = V.prefixCls, P = V.instance;
|
|
10445
10448
|
P.notice(k((0, r.default)((0, r.default)({}, B), {
|
|
10446
10449
|
key: U,
|
|
@@ -10458,7 +10461,7 @@ function requireMessage() {
|
|
|
10458
10461
|
return Object.prototype.toString.call(B) === "[object Object]" && !!B.content;
|
|
10459
10462
|
}
|
|
10460
10463
|
var M = {
|
|
10461
|
-
open:
|
|
10464
|
+
open: $,
|
|
10462
10465
|
config: w,
|
|
10463
10466
|
destroy: function(U) {
|
|
10464
10467
|
if (m)
|
|
@@ -10485,13 +10488,13 @@ function requireMessage() {
|
|
|
10485
10488
|
}
|
|
10486
10489
|
["success", "info", "warning", "error", "loading"].forEach(function(B) {
|
|
10487
10490
|
return L(M, B);
|
|
10488
|
-
}), M.warn = M.warning, M.useMessage = (0, h.default)(
|
|
10491
|
+
}), M.warn = M.warning, M.useMessage = (0, h.default)(S, k);
|
|
10489
10492
|
var q = function() {
|
|
10490
10493
|
return process.env.NODE_ENV === "test" ? m : null;
|
|
10491
10494
|
};
|
|
10492
10495
|
e.getInstance = q;
|
|
10493
|
-
var
|
|
10494
|
-
e.default =
|
|
10496
|
+
var N = M;
|
|
10497
|
+
e.default = N;
|
|
10495
10498
|
}(message)), message;
|
|
10496
10499
|
}
|
|
10497
10500
|
var notification = {}, CloseOutlined$2 = { exports: {} }, CloseOutlined$1 = {}, CloseOutlined = {}, hasRequiredCloseOutlined$2;
|
|
@@ -10718,9 +10721,9 @@ function requireUseNotification() {
|
|
|
10718
10721
|
var E = b.prefixCls, w = h("notification", E);
|
|
10719
10722
|
u((0, r.default)((0, r.default)({}, b), {
|
|
10720
10723
|
prefixCls: w
|
|
10721
|
-
}), function(
|
|
10722
|
-
var
|
|
10723
|
-
m = k, I(d(b,
|
|
10724
|
+
}), function(S) {
|
|
10725
|
+
var T = S.prefixCls, k = S.instance;
|
|
10726
|
+
m = k, I(d(b, T));
|
|
10724
10727
|
});
|
|
10725
10728
|
}
|
|
10726
10729
|
var O = a.useRef({});
|
|
@@ -10774,11 +10777,11 @@ function requireNotification() {
|
|
|
10774
10777
|
A((z = z.apply(B, U || [])).next());
|
|
10775
10778
|
});
|
|
10776
10779
|
}, x = {}, g = 4.5, I = 24, C = 24, y = "ant-notification", O = "topRight", b, E, w = !1;
|
|
10777
|
-
function
|
|
10780
|
+
function S(B) {
|
|
10778
10781
|
var U = B.duration, G = B.placement, z = B.bottom, W = B.top, Z = B.getContainer, V = B.closeIcon, H = B.prefixCls;
|
|
10779
10782
|
H !== void 0 && (y = H), U !== void 0 && (g = U), G !== void 0 ? O = G : B.rtl && (O = "topLeft"), z !== void 0 && (C = z), W !== void 0 && (I = W), Z !== void 0 && (b = Z), V !== void 0 && (E = V), B.rtl !== void 0 && (w = B.rtl);
|
|
10780
10783
|
}
|
|
10781
|
-
function
|
|
10784
|
+
function T(B) {
|
|
10782
10785
|
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : I, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : C, z;
|
|
10783
10786
|
switch (B) {
|
|
10784
10787
|
case "topLeft":
|
|
@@ -10823,7 +10826,7 @@ function requireNotification() {
|
|
|
10823
10826
|
});
|
|
10824
10827
|
return;
|
|
10825
10828
|
}
|
|
10826
|
-
var
|
|
10829
|
+
var _ = /* @__PURE__ */ s.createElement("span", {
|
|
10827
10830
|
className: "".concat(j, "-close-x")
|
|
10828
10831
|
}, A || /* @__PURE__ */ s.createElement(l.default, {
|
|
10829
10832
|
className: "".concat(j, "-close-icon")
|
|
@@ -10832,9 +10835,9 @@ function requireNotification() {
|
|
|
10832
10835
|
c.default.newInstance({
|
|
10833
10836
|
prefixCls: j,
|
|
10834
10837
|
className: Y,
|
|
10835
|
-
style:
|
|
10838
|
+
style: T(z, W, Z),
|
|
10836
10839
|
getContainer: H,
|
|
10837
|
-
closeIcon:
|
|
10840
|
+
closeIcon: _
|
|
10838
10841
|
}, function(ne) {
|
|
10839
10842
|
Q(ne), U({
|
|
10840
10843
|
prefixCls: K,
|
|
@@ -10843,7 +10846,7 @@ function requireNotification() {
|
|
|
10843
10846
|
});
|
|
10844
10847
|
});
|
|
10845
10848
|
}
|
|
10846
|
-
var
|
|
10849
|
+
var $ = {
|
|
10847
10850
|
success: d.default,
|
|
10848
10851
|
info: h.default,
|
|
10849
10852
|
error: f.default,
|
|
@@ -10853,7 +10856,7 @@ function requireNotification() {
|
|
|
10853
10856
|
var G = B.duration === void 0 ? g : B.duration, z = null;
|
|
10854
10857
|
B.icon ? z = /* @__PURE__ */ s.createElement("span", {
|
|
10855
10858
|
className: "".concat(U, "-icon")
|
|
10856
|
-
}, B.icon) : B.type && (z = /* @__PURE__ */ s.createElement(
|
|
10859
|
+
}, B.icon) : B.type && (z = /* @__PURE__ */ s.createElement($[B.type] || null, {
|
|
10857
10860
|
className: "".concat(U, "-icon ").concat(U, "-icon-").concat(B.type)
|
|
10858
10861
|
}));
|
|
10859
10862
|
var W = !B.description && z ? /* @__PURE__ */ s.createElement("span", {
|
|
@@ -10894,7 +10897,7 @@ function requireNotification() {
|
|
|
10894
10897
|
});
|
|
10895
10898
|
});
|
|
10896
10899
|
},
|
|
10897
|
-
config:
|
|
10900
|
+
config: S,
|
|
10898
10901
|
destroy: function() {
|
|
10899
10902
|
Object.keys(x).forEach(function(U) {
|
|
10900
10903
|
Promise.resolve(x[U]).then(function(G) {
|
|
@@ -10925,8 +10928,8 @@ function requireNotification() {
|
|
|
10925
10928
|
}));
|
|
10926
10929
|
};
|
|
10927
10930
|
e.getInstance = q;
|
|
10928
|
-
var
|
|
10929
|
-
e.default =
|
|
10931
|
+
var N = L;
|
|
10932
|
+
e.default = N;
|
|
10930
10933
|
}(notification)), notification;
|
|
10931
10934
|
}
|
|
10932
10935
|
var hasRequiredConfigProvider;
|
|
@@ -10949,7 +10952,7 @@ function requireConfigProvider() {
|
|
|
10949
10952
|
var r = n(require_extends()), o = t(React__default), a = n(requireContext$2()), s = require$$5, c = n(requireUseMemo()), l = t(requireLocaleProvider()), u = n(requireLocaleReceiver()), d = requireContext(), f = t(requireSizeContext()), p = n(requireMessage()), h = n(requireNotification()), m = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
|
|
10950
10953
|
e.configConsumerProps = m;
|
|
10951
10954
|
var v = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], x = function(y) {
|
|
10952
|
-
var O = y.children, b = y.csp, E = y.autoInsertSpaceInButton, w = y.form,
|
|
10955
|
+
var O = y.children, b = y.csp, E = y.autoInsertSpaceInButton, w = y.form, S = y.locale, T = y.componentSize, k = y.direction, $ = y.space, D = y.virtual, M = y.dropdownMatchSelectWidth, L = y.legacyLocale, q = y.parentContext, N = y.iconPrefixCls, B = o.useCallback(function(V, H) {
|
|
10953
10956
|
var P = y.prefixCls;
|
|
10954
10957
|
if (H)
|
|
10955
10958
|
return H;
|
|
@@ -10958,9 +10961,9 @@ function requireConfigProvider() {
|
|
|
10958
10961
|
}, [q.getPrefixCls]), U = (0, r.default)((0, r.default)({}, q), {
|
|
10959
10962
|
csp: b,
|
|
10960
10963
|
autoInsertSpaceInButton: E,
|
|
10961
|
-
locale:
|
|
10964
|
+
locale: S || L,
|
|
10962
10965
|
direction: k,
|
|
10963
|
-
space:
|
|
10966
|
+
space: $,
|
|
10964
10967
|
virtual: D,
|
|
10965
10968
|
dropdownMatchSelectWidth: M,
|
|
10966
10969
|
getPrefixCls: B
|
|
@@ -10978,18 +10981,18 @@ function requireConfigProvider() {
|
|
|
10978
10981
|
});
|
|
10979
10982
|
}), z = o.useMemo(function() {
|
|
10980
10983
|
return {
|
|
10981
|
-
prefixCls:
|
|
10984
|
+
prefixCls: N
|
|
10982
10985
|
};
|
|
10983
|
-
}, [
|
|
10984
|
-
return
|
|
10986
|
+
}, [N]), W = O, Z = {};
|
|
10987
|
+
return S && S.Form && S.Form.defaultValidateMessages && (Z = S.Form.defaultValidateMessages), w && w.validateMessages && (Z = (0, r.default)((0, r.default)({}, Z), w.validateMessages)), Object.keys(Z).length > 0 && (W = /* @__PURE__ */ o.createElement(s.FormProvider, {
|
|
10985
10988
|
validateMessages: Z
|
|
10986
|
-
}, O)),
|
|
10987
|
-
locale:
|
|
10989
|
+
}, O)), S && (W = /* @__PURE__ */ o.createElement(l.default, {
|
|
10990
|
+
locale: S,
|
|
10988
10991
|
_ANT_MARK__: l.ANT_MARK
|
|
10989
|
-
}, W)),
|
|
10992
|
+
}, W)), N && (W = /* @__PURE__ */ o.createElement(a.default.Provider, {
|
|
10990
10993
|
value: z
|
|
10991
|
-
}, W)),
|
|
10992
|
-
size:
|
|
10994
|
+
}, W)), T && (W = /* @__PURE__ */ o.createElement(f.SizeContextProvider, {
|
|
10995
|
+
size: T
|
|
10993
10996
|
}, W)), /* @__PURE__ */ o.createElement(d.ConfigContext.Provider, {
|
|
10994
10997
|
value: G
|
|
10995
10998
|
}, W);
|
|
@@ -11027,35 +11030,35 @@ function requireInput() {
|
|
|
11027
11030
|
}
|
|
11028
11031
|
function g(b, E, w) {
|
|
11029
11032
|
if (w) {
|
|
11030
|
-
var
|
|
11033
|
+
var S = E;
|
|
11031
11034
|
if (E.type === "click") {
|
|
11032
|
-
|
|
11033
|
-
var
|
|
11034
|
-
b.value = "", w(
|
|
11035
|
+
S = Object.create(E), S.target = b, S.currentTarget = b;
|
|
11036
|
+
var T = b.value;
|
|
11037
|
+
b.value = "", w(S), b.value = T;
|
|
11035
11038
|
return;
|
|
11036
11039
|
}
|
|
11037
|
-
w(
|
|
11040
|
+
w(S);
|
|
11038
11041
|
}
|
|
11039
11042
|
}
|
|
11040
|
-
function I(b, E, w,
|
|
11043
|
+
function I(b, E, w, S, T) {
|
|
11041
11044
|
var k;
|
|
11042
|
-
return (0, d.default)(b, (k = {}, (0, l.default)(k, "".concat(b, "-sm"), w === "small"), (0, l.default)(k, "".concat(b, "-lg"), w === "large"), (0, l.default)(k, "".concat(b, "-disabled"),
|
|
11045
|
+
return (0, d.default)(b, (k = {}, (0, l.default)(k, "".concat(b, "-sm"), w === "small"), (0, l.default)(k, "".concat(b, "-lg"), w === "large"), (0, l.default)(k, "".concat(b, "-disabled"), S), (0, l.default)(k, "".concat(b, "-rtl"), T === "rtl"), (0, l.default)(k, "".concat(b, "-borderless"), !E), k));
|
|
11043
11046
|
}
|
|
11044
11047
|
function C(b, E) {
|
|
11045
11048
|
if (!!b) {
|
|
11046
11049
|
b.focus(E);
|
|
11047
|
-
var w = E || {},
|
|
11048
|
-
if (
|
|
11049
|
-
var
|
|
11050
|
-
switch (
|
|
11050
|
+
var w = E || {}, S = w.cursor;
|
|
11051
|
+
if (S) {
|
|
11052
|
+
var T = b.value.length;
|
|
11053
|
+
switch (S) {
|
|
11051
11054
|
case "start":
|
|
11052
11055
|
b.setSelectionRange(0, 0);
|
|
11053
11056
|
break;
|
|
11054
11057
|
case "end":
|
|
11055
|
-
b.setSelectionRange(
|
|
11058
|
+
b.setSelectionRange(T, T);
|
|
11056
11059
|
break;
|
|
11057
11060
|
default:
|
|
11058
|
-
b.setSelectionRange(0,
|
|
11061
|
+
b.setSelectionRange(0, T);
|
|
11059
11062
|
}
|
|
11060
11063
|
}
|
|
11061
11064
|
}
|
|
@@ -11063,30 +11066,30 @@ function requireInput() {
|
|
|
11063
11066
|
var y = /* @__PURE__ */ function(b) {
|
|
11064
11067
|
(0, s.default)(w, b);
|
|
11065
11068
|
var E = (0, c.default)(w);
|
|
11066
|
-
function w(
|
|
11067
|
-
var
|
|
11068
|
-
(0, o.default)(this, w),
|
|
11069
|
-
C(
|
|
11070
|
-
},
|
|
11071
|
-
|
|
11072
|
-
},
|
|
11073
|
-
|
|
11074
|
-
},
|
|
11075
|
-
var D =
|
|
11076
|
-
|
|
11069
|
+
function w(S) {
|
|
11070
|
+
var T;
|
|
11071
|
+
(0, o.default)(this, w), T = E.call(this, S), T.direction = "ltr", T.focus = function($) {
|
|
11072
|
+
C(T.input, $);
|
|
11073
|
+
}, T.saveClearableInput = function($) {
|
|
11074
|
+
T.clearableInput = $;
|
|
11075
|
+
}, T.saveInput = function($) {
|
|
11076
|
+
T.input = $;
|
|
11077
|
+
}, T.onFocus = function($) {
|
|
11078
|
+
var D = T.props.onFocus;
|
|
11079
|
+
T.setState({
|
|
11077
11080
|
focused: !0
|
|
11078
|
-
},
|
|
11079
|
-
},
|
|
11080
|
-
var D =
|
|
11081
|
-
|
|
11081
|
+
}, T.clearPasswordValueAttribute), D && D($);
|
|
11082
|
+
}, T.onBlur = function($) {
|
|
11083
|
+
var D = T.props.onBlur;
|
|
11084
|
+
T.setState({
|
|
11082
11085
|
focused: !1
|
|
11083
|
-
},
|
|
11084
|
-
},
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
}), g(
|
|
11088
|
-
},
|
|
11089
|
-
var L = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, q =
|
|
11086
|
+
}, T.clearPasswordValueAttribute), D && D($);
|
|
11087
|
+
}, T.handleReset = function($) {
|
|
11088
|
+
T.setValue("", function() {
|
|
11089
|
+
T.focus();
|
|
11090
|
+
}), g(T.input, $, T.props.onChange);
|
|
11091
|
+
}, T.renderInput = function($, D, M) {
|
|
11092
|
+
var L = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, q = T.props, N = q.className, B = q.addonBefore, U = q.addonAfter, G = q.size, z = q.disabled, W = (0, f.default)(T.props, [
|
|
11090
11093
|
"prefixCls",
|
|
11091
11094
|
"onPressEnter",
|
|
11092
11095
|
"addonBefore",
|
|
@@ -11102,47 +11105,47 @@ function requireInput() {
|
|
|
11102
11105
|
return /* @__PURE__ */ u.createElement("input", (0, r.default)({
|
|
11103
11106
|
autoComplete: L.autoComplete
|
|
11104
11107
|
}, W, {
|
|
11105
|
-
onChange:
|
|
11106
|
-
onFocus:
|
|
11107
|
-
onBlur:
|
|
11108
|
-
onKeyDown:
|
|
11109
|
-
className: (0, d.default)(I(
|
|
11110
|
-
ref:
|
|
11108
|
+
onChange: T.handleChange,
|
|
11109
|
+
onFocus: T.onFocus,
|
|
11110
|
+
onBlur: T.onBlur,
|
|
11111
|
+
onKeyDown: T.handleKeyDown,
|
|
11112
|
+
className: (0, d.default)(I($, M, G || D, z, T.direction), (0, l.default)({}, N, N && !B && !U)),
|
|
11113
|
+
ref: T.saveInput
|
|
11111
11114
|
}));
|
|
11112
|
-
},
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
+
}, T.clearPasswordValueAttribute = function() {
|
|
11116
|
+
T.removePasswordTimeout = setTimeout(function() {
|
|
11117
|
+
T.input && T.input.getAttribute("type") === "password" && T.input.hasAttribute("value") && T.input.removeAttribute("value");
|
|
11115
11118
|
});
|
|
11116
|
-
},
|
|
11117
|
-
|
|
11118
|
-
},
|
|
11119
|
-
var D =
|
|
11120
|
-
|
|
11121
|
-
},
|
|
11122
|
-
var D =
|
|
11123
|
-
return
|
|
11119
|
+
}, T.handleChange = function($) {
|
|
11120
|
+
T.setValue($.target.value, T.clearPasswordValueAttribute), g(T.input, $, T.props.onChange);
|
|
11121
|
+
}, T.handleKeyDown = function($) {
|
|
11122
|
+
var D = T.props, M = D.onPressEnter, L = D.onKeyDown;
|
|
11123
|
+
$.keyCode === 13 && M && M($), L && L($);
|
|
11124
|
+
}, T.renderComponent = function($) {
|
|
11125
|
+
var D = $.getPrefixCls, M = $.direction, L = $.input, q = T.state, N = q.value, B = q.focused, U = T.props, G = U.prefixCls, z = U.bordered, W = z === void 0 ? !0 : z, Z = D("input", G);
|
|
11126
|
+
return T.direction = M, /* @__PURE__ */ u.createElement(m.default.Consumer, null, function(V) {
|
|
11124
11127
|
return /* @__PURE__ */ u.createElement(p.default, (0, r.default)({
|
|
11125
11128
|
size: V
|
|
11126
|
-
},
|
|
11129
|
+
}, T.props, {
|
|
11127
11130
|
prefixCls: Z,
|
|
11128
11131
|
inputType: "input",
|
|
11129
|
-
value: x(
|
|
11130
|
-
element:
|
|
11131
|
-
handleReset:
|
|
11132
|
-
ref:
|
|
11132
|
+
value: x(N),
|
|
11133
|
+
element: T.renderInput(Z, V, W, L),
|
|
11134
|
+
handleReset: T.handleReset,
|
|
11135
|
+
ref: T.saveClearableInput,
|
|
11133
11136
|
direction: M,
|
|
11134
11137
|
focused: B,
|
|
11135
|
-
triggerFocus:
|
|
11138
|
+
triggerFocus: T.focus,
|
|
11136
11139
|
bordered: W
|
|
11137
11140
|
}));
|
|
11138
11141
|
});
|
|
11139
11142
|
};
|
|
11140
|
-
var k = typeof
|
|
11141
|
-
return
|
|
11143
|
+
var k = typeof S.value > "u" ? S.defaultValue : S.value;
|
|
11144
|
+
return T.state = {
|
|
11142
11145
|
value: k,
|
|
11143
11146
|
focused: !1,
|
|
11144
|
-
prevValue:
|
|
11145
|
-
},
|
|
11147
|
+
prevValue: S.value
|
|
11148
|
+
}, T;
|
|
11146
11149
|
}
|
|
11147
11150
|
return (0, a.default)(w, [{
|
|
11148
11151
|
key: "componentDidMount",
|
|
@@ -11155,8 +11158,8 @@ function requireInput() {
|
|
|
11155
11158
|
}
|
|
11156
11159
|
}, {
|
|
11157
11160
|
key: "getSnapshotBeforeUpdate",
|
|
11158
|
-
value: function(
|
|
11159
|
-
return (0, p.hasPrefixSuffix)(
|
|
11161
|
+
value: function(T) {
|
|
11162
|
+
return (0, p.hasPrefixSuffix)(T) !== (0, p.hasPrefixSuffix)(this.props) && (0, v.default)(this.input !== document.activeElement, "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), null;
|
|
11160
11163
|
}
|
|
11161
11164
|
}, {
|
|
11162
11165
|
key: "componentWillUnmount",
|
|
@@ -11170,8 +11173,8 @@ function requireInput() {
|
|
|
11170
11173
|
}
|
|
11171
11174
|
}, {
|
|
11172
11175
|
key: "setSelectionRange",
|
|
11173
|
-
value: function(
|
|
11174
|
-
this.input.setSelectionRange(
|
|
11176
|
+
value: function(T, k, $) {
|
|
11177
|
+
this.input.setSelectionRange(T, k, $);
|
|
11175
11178
|
}
|
|
11176
11179
|
}, {
|
|
11177
11180
|
key: "select",
|
|
@@ -11180,9 +11183,9 @@ function requireInput() {
|
|
|
11180
11183
|
}
|
|
11181
11184
|
}, {
|
|
11182
11185
|
key: "setValue",
|
|
11183
|
-
value: function(
|
|
11186
|
+
value: function(T, k) {
|
|
11184
11187
|
this.props.value === void 0 ? this.setState({
|
|
11185
|
-
value:
|
|
11188
|
+
value: T
|
|
11186
11189
|
}, k) : k == null || k();
|
|
11187
11190
|
}
|
|
11188
11191
|
}, {
|
|
@@ -11192,11 +11195,11 @@ function requireInput() {
|
|
|
11192
11195
|
}
|
|
11193
11196
|
}], [{
|
|
11194
11197
|
key: "getDerivedStateFromProps",
|
|
11195
|
-
value: function(
|
|
11196
|
-
var
|
|
11197
|
-
prevValue:
|
|
11198
|
+
value: function(T, k) {
|
|
11199
|
+
var $ = k.prevValue, D = {
|
|
11200
|
+
prevValue: T.value
|
|
11198
11201
|
};
|
|
11199
|
-
return (
|
|
11202
|
+
return (T.value !== void 0 || $ !== T.value) && (D.value = T.value), D;
|
|
11200
11203
|
}
|
|
11201
11204
|
}]), w;
|
|
11202
11205
|
}(u.Component);
|
|
@@ -11248,18 +11251,18 @@ function requireClearableLabeledInput() {
|
|
|
11248
11251
|
return (0, o.default)(this, O), b = y.apply(this, arguments), b.containerRef = /* @__PURE__ */ l.createRef(), b.onInputMouseUp = function(E) {
|
|
11249
11252
|
var w;
|
|
11250
11253
|
if (!((w = b.containerRef.current) === null || w === void 0) && w.contains(E.target)) {
|
|
11251
|
-
var
|
|
11252
|
-
|
|
11254
|
+
var S = b.props.triggerFocus;
|
|
11255
|
+
S == null || S();
|
|
11253
11256
|
}
|
|
11254
11257
|
}, b;
|
|
11255
11258
|
}
|
|
11256
11259
|
return (0, a.default)(O, [{
|
|
11257
11260
|
key: "renderClearIcon",
|
|
11258
11261
|
value: function(E) {
|
|
11259
|
-
var w = this.props,
|
|
11260
|
-
if (!
|
|
11262
|
+
var w = this.props, S = w.allowClear, T = w.value, k = w.disabled, $ = w.readOnly, D = w.handleReset;
|
|
11263
|
+
if (!S)
|
|
11261
11264
|
return null;
|
|
11262
|
-
var M = !k &&
|
|
11265
|
+
var M = !k && !$ && T, L = "".concat(E, "-clear-icon");
|
|
11263
11266
|
return /* @__PURE__ */ l.createElement(d.default, {
|
|
11264
11267
|
onClick: D,
|
|
11265
11268
|
className: (0, u.default)((0, r.default)({}, "".concat(L, "-hidden"), !M), L),
|
|
@@ -11269,22 +11272,22 @@ function requireClearableLabeledInput() {
|
|
|
11269
11272
|
}, {
|
|
11270
11273
|
key: "renderSuffix",
|
|
11271
11274
|
value: function(E) {
|
|
11272
|
-
var w = this.props,
|
|
11273
|
-
return
|
|
11275
|
+
var w = this.props, S = w.suffix, T = w.allowClear;
|
|
11276
|
+
return S || T ? /* @__PURE__ */ l.createElement("span", {
|
|
11274
11277
|
className: "".concat(E, "-suffix")
|
|
11275
|
-
}, this.renderClearIcon(E),
|
|
11278
|
+
}, this.renderClearIcon(E), S) : null;
|
|
11276
11279
|
}
|
|
11277
11280
|
}, {
|
|
11278
11281
|
key: "renderLabeledIcon",
|
|
11279
11282
|
value: function(E, w) {
|
|
11280
|
-
var
|
|
11283
|
+
var S, T = this.props, k = T.focused, $ = T.value, D = T.prefix, M = T.className, L = T.size, q = T.suffix, N = T.disabled, B = T.allowClear, U = T.direction, G = T.style, z = T.readOnly, W = T.bordered, Z = this.renderSuffix(E);
|
|
11281
11284
|
if (!v(this.props))
|
|
11282
11285
|
return (0, h.cloneElement)(w, {
|
|
11283
|
-
value:
|
|
11286
|
+
value: $
|
|
11284
11287
|
});
|
|
11285
11288
|
var V = D ? /* @__PURE__ */ l.createElement("span", {
|
|
11286
11289
|
className: "".concat(E, "-prefix")
|
|
11287
|
-
}, D) : null, H = (0, u.default)("".concat(E, "-affix-wrapper"), (
|
|
11290
|
+
}, D) : null, H = (0, u.default)("".concat(E, "-affix-wrapper"), (S = {}, (0, r.default)(S, "".concat(E, "-affix-wrapper-focused"), k), (0, r.default)(S, "".concat(E, "-affix-wrapper-disabled"), N), (0, r.default)(S, "".concat(E, "-affix-wrapper-sm"), L === "small"), (0, r.default)(S, "".concat(E, "-affix-wrapper-lg"), L === "large"), (0, r.default)(S, "".concat(E, "-affix-wrapper-input-with-clear-btn"), q && B && $), (0, r.default)(S, "".concat(E, "-affix-wrapper-rtl"), U === "rtl"), (0, r.default)(S, "".concat(E, "-affix-wrapper-readonly"), z), (0, r.default)(S, "".concat(E, "-affix-wrapper-borderless"), !W), (0, r.default)(S, "".concat(M), !x(this.props) && M), S));
|
|
11288
11291
|
return /* @__PURE__ */ l.createElement("span", {
|
|
11289
11292
|
ref: this.containerRef,
|
|
11290
11293
|
className: H,
|
|
@@ -11292,21 +11295,21 @@ function requireClearableLabeledInput() {
|
|
|
11292
11295
|
onMouseUp: this.onInputMouseUp
|
|
11293
11296
|
}, V, (0, h.cloneElement)(w, {
|
|
11294
11297
|
style: null,
|
|
11295
|
-
value:
|
|
11296
|
-
className: (0, p.getInputClassName)(E, W, L,
|
|
11298
|
+
value: $,
|
|
11299
|
+
className: (0, p.getInputClassName)(E, W, L, N)
|
|
11297
11300
|
}), Z);
|
|
11298
11301
|
}
|
|
11299
11302
|
}, {
|
|
11300
11303
|
key: "renderInputWithLabel",
|
|
11301
11304
|
value: function(E, w) {
|
|
11302
|
-
var
|
|
11305
|
+
var S, T = this.props, k = T.addonBefore, $ = T.addonAfter, D = T.style, M = T.size, L = T.className, q = T.direction;
|
|
11303
11306
|
if (!x(this.props))
|
|
11304
11307
|
return w;
|
|
11305
|
-
var
|
|
11308
|
+
var N = "".concat(E, "-group"), B = "".concat(N, "-addon"), U = k ? /* @__PURE__ */ l.createElement("span", {
|
|
11306
11309
|
className: B
|
|
11307
|
-
}, k) : null, G =
|
|
11310
|
+
}, k) : null, G = $ ? /* @__PURE__ */ l.createElement("span", {
|
|
11308
11311
|
className: B
|
|
11309
|
-
},
|
|
11312
|
+
}, $) : null, z = (0, u.default)("".concat(E, "-wrapper"), N, (0, r.default)({}, "".concat(N, "-rtl"), q === "rtl")), W = (0, u.default)("".concat(E, "-group-wrapper"), (S = {}, (0, r.default)(S, "".concat(E, "-group-wrapper-sm"), M === "small"), (0, r.default)(S, "".concat(E, "-group-wrapper-lg"), M === "large"), (0, r.default)(S, "".concat(E, "-group-wrapper-rtl"), q === "rtl"), S), L);
|
|
11310
11313
|
return /* @__PURE__ */ l.createElement("span", {
|
|
11311
11314
|
className: W,
|
|
11312
11315
|
style: D
|
|
@@ -11319,14 +11322,14 @@ function requireClearableLabeledInput() {
|
|
|
11319
11322
|
}, {
|
|
11320
11323
|
key: "renderTextAreaWithClearIcon",
|
|
11321
11324
|
value: function(E, w) {
|
|
11322
|
-
var
|
|
11323
|
-
if (
|
|
11325
|
+
var S, T = this.props, k = T.value, $ = T.allowClear, D = T.className, M = T.style, L = T.direction, q = T.bordered;
|
|
11326
|
+
if (!$)
|
|
11324
11327
|
return (0, h.cloneElement)(w, {
|
|
11325
11328
|
value: k
|
|
11326
11329
|
});
|
|
11327
|
-
var
|
|
11330
|
+
var N = (0, u.default)("".concat(E, "-affix-wrapper"), "".concat(E, "-affix-wrapper-textarea-with-clear-btn"), (S = {}, (0, r.default)(S, "".concat(E, "-affix-wrapper-rtl"), L === "rtl"), (0, r.default)(S, "".concat(E, "-affix-wrapper-borderless"), !q), (0, r.default)(S, "".concat(D), !x(this.props) && D), S));
|
|
11328
11331
|
return /* @__PURE__ */ l.createElement("span", {
|
|
11329
|
-
className:
|
|
11332
|
+
className: N,
|
|
11330
11333
|
style: M
|
|
11331
11334
|
}, (0, h.cloneElement)(w, {
|
|
11332
11335
|
style: null,
|
|
@@ -11336,8 +11339,8 @@ function requireClearableLabeledInput() {
|
|
|
11336
11339
|
}, {
|
|
11337
11340
|
key: "render",
|
|
11338
11341
|
value: function() {
|
|
11339
|
-
var E = this.props, w = E.prefixCls,
|
|
11340
|
-
return
|
|
11342
|
+
var E = this.props, w = E.prefixCls, S = E.inputType, T = E.element;
|
|
11343
|
+
return S === m[0] ? this.renderTextAreaWithClearIcon(w, T) : this.renderInputWithLabel(w, this.renderLabeledIcon(w, T));
|
|
11341
11344
|
}
|
|
11342
11345
|
}]), O;
|
|
11343
11346
|
}(l.Component), I = g;
|
|
@@ -11358,7 +11361,7 @@ function requireClearableLabeledInput() {
|
|
|
11358
11361
|
O.indexOf(E[w]) < 0 && Object.prototype.propertyIsEnumerable.call(y, E[w]) && (b[E[w]] = y[E[w]]);
|
|
11359
11362
|
return b;
|
|
11360
11363
|
}, I = /* @__PURE__ */ l.forwardRef(function(y, O) {
|
|
11361
|
-
var b, E = y.prefixCls, w = y.bordered,
|
|
11364
|
+
var b, E = y.prefixCls, w = y.bordered, S = w === void 0 ? !0 : w, T = y.showCount, k = T === void 0 ? !1 : T, $ = y.maxLength, D = y.className, M = y.style, L = y.size, q = g(y, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), N = l.useContext(m.ConfigContext), B = N.getPrefixCls, U = N.direction, G = l.useContext(x.default), z = l.useRef(null), W = l.useRef(null), Z = (0, p.default)(q.defaultValue, {
|
|
11362
11365
|
value: q.value
|
|
11363
11366
|
}), V = (0, c.default)(Z, 2), H = V[0], P = V[1], A = l.useRef(q.value);
|
|
11364
11367
|
l.useEffect(function() {
|
|
@@ -11388,31 +11391,31 @@ function requireClearableLabeledInput() {
|
|
|
11388
11391
|
}
|
|
11389
11392
|
};
|
|
11390
11393
|
});
|
|
11391
|
-
var
|
|
11392
|
-
maxLength:
|
|
11393
|
-
className: (0, f.default)((b = {}, (0, s.default)(b, "".concat(F, "-borderless"), !
|
|
11394
|
+
var _ = /* @__PURE__ */ l.createElement(u.default, (0, a.default)({}, (0, d.default)(q, ["allowClear"]), {
|
|
11395
|
+
maxLength: $,
|
|
11396
|
+
className: (0, f.default)((b = {}, (0, s.default)(b, "".concat(F, "-borderless"), !S), (0, s.default)(b, D, D && !k), (0, s.default)(b, "".concat(F, "-sm"), G === "small" || L === "small"), (0, s.default)(b, "".concat(F, "-lg"), G === "large" || L === "large"), b)),
|
|
11394
11397
|
style: k ? void 0 : M,
|
|
11395
11398
|
prefixCls: F,
|
|
11396
11399
|
onChange: K,
|
|
11397
11400
|
ref: z
|
|
11398
|
-
})), Y = (0, v.fixControlledValue)(H), Q = Number(
|
|
11399
|
-
Y = Q ? (0, o.default)(Y).slice(0,
|
|
11401
|
+
})), Y = (0, v.fixControlledValue)(H), Q = Number($) > 0;
|
|
11402
|
+
Y = Q ? (0, o.default)(Y).slice(0, $).join("") : Y;
|
|
11400
11403
|
var ne = /* @__PURE__ */ l.createElement(h.default, (0, a.default)({}, q, {
|
|
11401
11404
|
prefixCls: F,
|
|
11402
11405
|
direction: U,
|
|
11403
11406
|
inputType: "text",
|
|
11404
11407
|
value: Y,
|
|
11405
|
-
element:
|
|
11408
|
+
element: _,
|
|
11406
11409
|
handleReset: X,
|
|
11407
11410
|
ref: W,
|
|
11408
|
-
bordered:
|
|
11411
|
+
bordered: S
|
|
11409
11412
|
}));
|
|
11410
11413
|
if (k) {
|
|
11411
|
-
var J = Math.min(Y.length,
|
|
11414
|
+
var J = Math.min(Y.length, $ != null ? $ : 1 / 0), ee = "";
|
|
11412
11415
|
return (0, r.default)(k) === "object" ? ee = k.formatter({
|
|
11413
11416
|
count: J,
|
|
11414
|
-
maxLength:
|
|
11415
|
-
}) : ee = "".concat(J).concat(Q ? " / ".concat(
|
|
11417
|
+
maxLength: $
|
|
11418
|
+
}) : ee = "".concat(J).concat(Q ? " / ".concat($) : ""), /* @__PURE__ */ l.createElement("div", {
|
|
11416
11419
|
className: (0, f.default)("".concat(F, "-textarea"), (0, s.default)({}, "".concat(F, "-textarea-rtl"), U === "rtl"), "".concat(F, "-textarea-show-count"), D),
|
|
11417
11420
|
style: M,
|
|
11418
11421
|
"data-count": ee
|
|
@@ -11471,33 +11474,33 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11471
11474
|
p(!1);
|
|
11472
11475
|
}
|
|
11473
11476
|
async function C() {
|
|
11474
|
-
const
|
|
11477
|
+
const S = (await ConnectionProvider.getHandler().search({
|
|
11475
11478
|
params: [["translatable", "=", "1"]],
|
|
11476
11479
|
fields: ["code", "name"],
|
|
11477
11480
|
model: "res.lang"
|
|
11478
|
-
})).map((
|
|
11479
|
-
code:
|
|
11480
|
-
name:
|
|
11481
|
+
})).map((T) => ({
|
|
11482
|
+
code: T.code,
|
|
11483
|
+
name: T.name
|
|
11481
11484
|
}));
|
|
11482
|
-
return d == null || d(
|
|
11485
|
+
return d == null || d(S), S;
|
|
11483
11486
|
}
|
|
11484
11487
|
async function y(w) {
|
|
11485
|
-
const
|
|
11486
|
-
for (const
|
|
11488
|
+
const S = {};
|
|
11489
|
+
for (const T of w) {
|
|
11487
11490
|
const k = (await ConnectionProvider.getHandler().readObjects({
|
|
11488
11491
|
model: r,
|
|
11489
11492
|
ids: [o],
|
|
11490
11493
|
fieldsToRetrieve: [a],
|
|
11491
11494
|
context: {
|
|
11492
|
-
lang:
|
|
11495
|
+
lang: T.code
|
|
11493
11496
|
}
|
|
11494
11497
|
}))[0];
|
|
11495
|
-
|
|
11498
|
+
S[T.code] = k[a] || "";
|
|
11496
11499
|
}
|
|
11497
|
-
g.current =
|
|
11500
|
+
g.current = S, x(S);
|
|
11498
11501
|
}
|
|
11499
11502
|
function O() {
|
|
11500
|
-
return u.map((w,
|
|
11503
|
+
return u.map((w, S) => /* @__PURE__ */ jsxs(Row, {
|
|
11501
11504
|
style: {
|
|
11502
11505
|
paddingBottom: 20
|
|
11503
11506
|
},
|
|
@@ -11512,16 +11515,16 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11512
11515
|
children: /* @__PURE__ */ jsx(TextArea$1, {
|
|
11513
11516
|
rows: 4,
|
|
11514
11517
|
value: v[w.code] || "",
|
|
11515
|
-
onChange: (
|
|
11518
|
+
onChange: (T) => {
|
|
11516
11519
|
x({
|
|
11517
11520
|
...v,
|
|
11518
|
-
[w.code]:
|
|
11521
|
+
[w.code]: T.target.value
|
|
11519
11522
|
});
|
|
11520
11523
|
},
|
|
11521
11524
|
disabled: h
|
|
11522
11525
|
})
|
|
11523
11526
|
})]
|
|
11524
|
-
},
|
|
11527
|
+
}, S));
|
|
11525
11528
|
}
|
|
11526
11529
|
async function b() {
|
|
11527
11530
|
m(!0);
|
|
@@ -11866,8 +11869,8 @@ function debounce(e, t, n) {
|
|
|
11866
11869
|
return u = b, c = setTimeout(g, t), d ? h(b) : s;
|
|
11867
11870
|
}
|
|
11868
11871
|
function v(b) {
|
|
11869
|
-
var E = b - l, w = b - u,
|
|
11870
|
-
return f ? nativeMin(
|
|
11872
|
+
var E = b - l, w = b - u, S = t - E;
|
|
11873
|
+
return f ? nativeMin(S, a - w) : S;
|
|
11871
11874
|
}
|
|
11872
11875
|
function x(b) {
|
|
11873
11876
|
var E = b - l, w = b - u;
|
|
@@ -12499,17 +12502,17 @@ function require_stream_writable() {
|
|
|
12499
12502
|
w.prototype.pipe = function() {
|
|
12500
12503
|
y(this, new v());
|
|
12501
12504
|
};
|
|
12502
|
-
function
|
|
12505
|
+
function S(P, A) {
|
|
12503
12506
|
var j = new I();
|
|
12504
12507
|
y(P, j), process.nextTick(A, j);
|
|
12505
12508
|
}
|
|
12506
|
-
function
|
|
12509
|
+
function T(P, A, j, K) {
|
|
12507
12510
|
var X;
|
|
12508
12511
|
return j === null ? X = new g() : typeof j != "string" && !A.objectMode && (X = new p("chunk", ["string", "Buffer"], j)), X ? (y(P, X), process.nextTick(K, X), !1) : !0;
|
|
12509
12512
|
}
|
|
12510
12513
|
w.prototype.write = function(P, A, j) {
|
|
12511
12514
|
var K = this._writableState, X = !1, F = !K.objectMode && c(P);
|
|
12512
|
-
return F && !o.isBuffer(P) && (P = s(P)), typeof A == "function" && (j = A, A = null), F ? A = "buffer" : A || (A = K.defaultEncoding), typeof j != "function" && (j = O), K.ending ?
|
|
12515
|
+
return F && !o.isBuffer(P) && (P = s(P)), typeof A == "function" && (j = A, A = null), F ? A = "buffer" : A || (A = K.defaultEncoding), typeof j != "function" && (j = O), K.ending ? S(this, j) : (F || T(this, K, P, j)) && (K.pendingcb++, X = $(this, K, F, P, A, j)), X;
|
|
12513
12516
|
}, w.prototype.cork = function() {
|
|
12514
12517
|
this._writableState.corked++;
|
|
12515
12518
|
}, w.prototype.uncork = function() {
|
|
@@ -12534,10 +12537,10 @@ function require_stream_writable() {
|
|
|
12534
12537
|
return this._writableState.highWaterMark;
|
|
12535
12538
|
}
|
|
12536
12539
|
});
|
|
12537
|
-
function
|
|
12540
|
+
function $(P, A, j, K, X, F) {
|
|
12538
12541
|
if (!j) {
|
|
12539
|
-
var
|
|
12540
|
-
K !==
|
|
12542
|
+
var _ = k(A, K, X);
|
|
12543
|
+
K !== _ && (j = !0, X = "buffer", K = _);
|
|
12541
12544
|
}
|
|
12542
12545
|
var Y = A.objectMode ? 1 : K.length;
|
|
12543
12546
|
A.length += Y;
|
|
@@ -12555,8 +12558,8 @@ function require_stream_writable() {
|
|
|
12555
12558
|
D(P, A, !1, Y, K, X, F);
|
|
12556
12559
|
return Q;
|
|
12557
12560
|
}
|
|
12558
|
-
function D(P, A, j, K, X, F,
|
|
12559
|
-
A.writelen = K, A.writecb =
|
|
12561
|
+
function D(P, A, j, K, X, F, _) {
|
|
12562
|
+
A.writelen = K, A.writecb = _, A.writing = !0, A.sync = !0, A.destroyed ? A.onwrite(new x("write")) : j ? P._writev(X, A.onwrite) : P._write(X, F, A.onwrite), A.sync = !1;
|
|
12560
12563
|
}
|
|
12561
12564
|
function M(P, A, j, K, X) {
|
|
12562
12565
|
--A.pendingcb, j ? (process.nextTick(X, K), process.nextTick(Z, P, A), P._writableState.errorEmitted = !0, y(P, K)) : (X(K), P._writableState.errorEmitted = !0, y(P, K), Z(P, A));
|
|
@@ -12572,10 +12575,10 @@ function require_stream_writable() {
|
|
|
12572
12575
|
M(P, j, K, A, X);
|
|
12573
12576
|
else {
|
|
12574
12577
|
var F = G(j) || P.destroyed;
|
|
12575
|
-
!F && !j.corked && !j.bufferProcessing && j.bufferedRequest && U(P, j), K ? process.nextTick(
|
|
12578
|
+
!F && !j.corked && !j.bufferProcessing && j.bufferedRequest && U(P, j), K ? process.nextTick(N, P, j, F, X) : N(P, j, F, X);
|
|
12576
12579
|
}
|
|
12577
12580
|
}
|
|
12578
|
-
function
|
|
12581
|
+
function N(P, A, j, K) {
|
|
12579
12582
|
j || B(P, A), A.pendingcb--, K(), Z(P, A);
|
|
12580
12583
|
}
|
|
12581
12584
|
function B(P, A) {
|
|
@@ -12587,8 +12590,8 @@ function require_stream_writable() {
|
|
|
12587
12590
|
if (P._writev && j && j.next) {
|
|
12588
12591
|
var K = A.bufferedRequestCount, X = new Array(K), F = A.corkedRequestsFree;
|
|
12589
12592
|
F.entry = j;
|
|
12590
|
-
for (var
|
|
12591
|
-
X[
|
|
12593
|
+
for (var _ = 0, Y = !0; j; )
|
|
12594
|
+
X[_] = j, j.isBuf || (Y = !1), j = j.next, _ += 1;
|
|
12592
12595
|
X.allBuffers = Y, D(P, A, !0, A.length, X, "", F.finish), A.pendingcb++, A.lastBufferedRequest = null, F.next ? (A.corkedRequestsFree = F.next, F.next = null) : A.corkedRequestsFree = new e(A), A.bufferedRequestCount = 0;
|
|
12593
12596
|
} else {
|
|
12594
12597
|
for (; j; ) {
|
|
@@ -13072,11 +13075,11 @@ var _stream_readable, hasRequired_stream_readable;
|
|
|
13072
13075
|
function require_stream_readable() {
|
|
13073
13076
|
if (hasRequired_stream_readable)
|
|
13074
13077
|
return _stream_readable;
|
|
13075
|
-
hasRequired_stream_readable = 1, _stream_readable =
|
|
13078
|
+
hasRequired_stream_readable = 1, _stream_readable = S;
|
|
13076
13079
|
var e;
|
|
13077
|
-
|
|
13078
|
-
var t = function(
|
|
13079
|
-
return
|
|
13080
|
+
S.ReadableState = w, events.exports.EventEmitter;
|
|
13081
|
+
var t = function(_, Y) {
|
|
13082
|
+
return _.listeners(Y).length;
|
|
13080
13083
|
}, n = streamBrowser, r = require$$0.Buffer, o = commonjsGlobal.Uint8Array || function() {
|
|
13081
13084
|
};
|
|
13082
13085
|
function a(F) {
|
|
@@ -13089,129 +13092,129 @@ function require_stream_readable() {
|
|
|
13089
13092
|
c && c.debuglog ? l = c.debuglog("stream") : l = function() {
|
|
13090
13093
|
};
|
|
13091
13094
|
var u = requireBuffer_list(), d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, v = h.ERR_STREAM_PUSH_AFTER_EOF, x = h.ERR_METHOD_NOT_IMPLEMENTED, g = h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, I, C, y;
|
|
13092
|
-
inherits_browser.exports(
|
|
13095
|
+
inherits_browser.exports(S, n);
|
|
13093
13096
|
var O = d.errorOrDestroy, b = ["error", "close", "destroy", "pause", "resume"];
|
|
13094
|
-
function E(F,
|
|
13097
|
+
function E(F, _, Y) {
|
|
13095
13098
|
if (typeof F.prependListener == "function")
|
|
13096
|
-
return F.prependListener(
|
|
13097
|
-
!F._events || !F._events[
|
|
13099
|
+
return F.prependListener(_, Y);
|
|
13100
|
+
!F._events || !F._events[_] ? F.on(_, Y) : Array.isArray(F._events[_]) ? F._events[_].unshift(Y) : F._events[_] = [Y, F._events[_]];
|
|
13098
13101
|
}
|
|
13099
|
-
function w(F,
|
|
13100
|
-
e = e || require_stream_duplex(), F = F || {}, typeof Y != "boolean" && (Y =
|
|
13102
|
+
function w(F, _, Y) {
|
|
13103
|
+
e = e || require_stream_duplex(), F = F || {}, typeof Y != "boolean" && (Y = _ instanceof e), this.objectMode = !!F.objectMode, Y && (this.objectMode = this.objectMode || !!F.readableObjectMode), this.highWaterMark = p(this, F, "readableHighWaterMark", Y), this.buffer = new u(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = F.emitClose !== !1, this.autoDestroy = !!F.autoDestroy, this.destroyed = !1, this.defaultEncoding = F.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, F.encoding && (I || (I = requireString_decoder().StringDecoder), this.decoder = new I(F.encoding), this.encoding = F.encoding);
|
|
13101
13104
|
}
|
|
13102
|
-
function
|
|
13103
|
-
if (e = e || require_stream_duplex(), !(this instanceof
|
|
13104
|
-
return new
|
|
13105
|
-
var
|
|
13106
|
-
this._readableState = new w(F, this,
|
|
13105
|
+
function S(F) {
|
|
13106
|
+
if (e = e || require_stream_duplex(), !(this instanceof S))
|
|
13107
|
+
return new S(F);
|
|
13108
|
+
var _ = this instanceof e;
|
|
13109
|
+
this._readableState = new w(F, this, _), this.readable = !0, F && (typeof F.read == "function" && (this._read = F.read), typeof F.destroy == "function" && (this._destroy = F.destroy)), n.call(this);
|
|
13107
13110
|
}
|
|
13108
|
-
Object.defineProperty(
|
|
13111
|
+
Object.defineProperty(S.prototype, "destroyed", {
|
|
13109
13112
|
enumerable: !1,
|
|
13110
13113
|
get: function() {
|
|
13111
13114
|
return this._readableState === void 0 ? !1 : this._readableState.destroyed;
|
|
13112
13115
|
},
|
|
13113
|
-
set: function(
|
|
13114
|
-
!this._readableState || (this._readableState.destroyed =
|
|
13116
|
+
set: function(_) {
|
|
13117
|
+
!this._readableState || (this._readableState.destroyed = _);
|
|
13115
13118
|
}
|
|
13116
|
-
}),
|
|
13117
|
-
|
|
13118
|
-
},
|
|
13119
|
+
}), S.prototype.destroy = d.destroy, S.prototype._undestroy = d.undestroy, S.prototype._destroy = function(F, _) {
|
|
13120
|
+
_(F);
|
|
13121
|
+
}, S.prototype.push = function(F, _) {
|
|
13119
13122
|
var Y = this._readableState, Q;
|
|
13120
|
-
return Y.objectMode ? Q = !0 : typeof F == "string" && (
|
|
13121
|
-
},
|
|
13122
|
-
return
|
|
13123
|
+
return Y.objectMode ? Q = !0 : typeof F == "string" && (_ = _ || Y.defaultEncoding, _ !== Y.encoding && (F = r.from(F, _), _ = ""), Q = !0), T(this, F, _, !1, Q);
|
|
13124
|
+
}, S.prototype.unshift = function(F) {
|
|
13125
|
+
return T(this, F, null, !0, !1);
|
|
13123
13126
|
};
|
|
13124
|
-
function
|
|
13125
|
-
l("readableAddChunk",
|
|
13127
|
+
function T(F, _, Y, Q, ne) {
|
|
13128
|
+
l("readableAddChunk", _);
|
|
13126
13129
|
var J = F._readableState;
|
|
13127
|
-
if (
|
|
13130
|
+
if (_ === null)
|
|
13128
13131
|
J.reading = !1, q(F, J);
|
|
13129
13132
|
else {
|
|
13130
13133
|
var ee;
|
|
13131
|
-
if (ne || (ee =
|
|
13134
|
+
if (ne || (ee = $(J, _)), ee)
|
|
13132
13135
|
O(F, ee);
|
|
13133
|
-
else if (J.objectMode ||
|
|
13134
|
-
if (typeof
|
|
13135
|
-
J.endEmitted ? O(F, new g()) : k(F, J,
|
|
13136
|
+
else if (J.objectMode || _ && _.length > 0)
|
|
13137
|
+
if (typeof _ != "string" && !J.objectMode && Object.getPrototypeOf(_) !== r.prototype && (_ = a(_)), Q)
|
|
13138
|
+
J.endEmitted ? O(F, new g()) : k(F, J, _, !0);
|
|
13136
13139
|
else if (J.ended)
|
|
13137
13140
|
O(F, new v());
|
|
13138
13141
|
else {
|
|
13139
13142
|
if (J.destroyed)
|
|
13140
13143
|
return !1;
|
|
13141
|
-
J.reading = !1, J.decoder && !Y ? (
|
|
13144
|
+
J.reading = !1, J.decoder && !Y ? (_ = J.decoder.write(_), J.objectMode || _.length !== 0 ? k(F, J, _, !1) : U(F, J)) : k(F, J, _, !1);
|
|
13142
13145
|
}
|
|
13143
13146
|
else
|
|
13144
13147
|
Q || (J.reading = !1, U(F, J));
|
|
13145
13148
|
}
|
|
13146
13149
|
return !J.ended && (J.length < J.highWaterMark || J.length === 0);
|
|
13147
13150
|
}
|
|
13148
|
-
function k(F,
|
|
13149
|
-
|
|
13151
|
+
function k(F, _, Y, Q) {
|
|
13152
|
+
_.flowing && _.length === 0 && !_.sync ? (_.awaitDrain = 0, F.emit("data", Y)) : (_.length += _.objectMode ? 1 : Y.length, Q ? _.buffer.unshift(Y) : _.buffer.push(Y), _.needReadable && N(F)), U(F, _);
|
|
13150
13153
|
}
|
|
13151
|
-
function
|
|
13154
|
+
function $(F, _) {
|
|
13152
13155
|
var Y;
|
|
13153
|
-
return !s(
|
|
13156
|
+
return !s(_) && typeof _ != "string" && _ !== void 0 && !F.objectMode && (Y = new m("chunk", ["string", "Buffer", "Uint8Array"], _)), Y;
|
|
13154
13157
|
}
|
|
13155
|
-
|
|
13158
|
+
S.prototype.isPaused = function() {
|
|
13156
13159
|
return this._readableState.flowing === !1;
|
|
13157
|
-
},
|
|
13160
|
+
}, S.prototype.setEncoding = function(F) {
|
|
13158
13161
|
I || (I = requireString_decoder().StringDecoder);
|
|
13159
|
-
var
|
|
13160
|
-
this._readableState.decoder =
|
|
13162
|
+
var _ = new I(F);
|
|
13163
|
+
this._readableState.decoder = _, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
13161
13164
|
for (var Y = this._readableState.buffer.head, Q = ""; Y !== null; )
|
|
13162
|
-
Q +=
|
|
13165
|
+
Q += _.write(Y.data), Y = Y.next;
|
|
13163
13166
|
return this._readableState.buffer.clear(), Q !== "" && this._readableState.buffer.push(Q), this._readableState.length = Q.length, this;
|
|
13164
13167
|
};
|
|
13165
13168
|
var D = 1073741824;
|
|
13166
13169
|
function M(F) {
|
|
13167
13170
|
return F >= D ? F = D : (F--, F |= F >>> 1, F |= F >>> 2, F |= F >>> 4, F |= F >>> 8, F |= F >>> 16, F++), F;
|
|
13168
13171
|
}
|
|
13169
|
-
function L(F,
|
|
13170
|
-
return F <= 0 ||
|
|
13172
|
+
function L(F, _) {
|
|
13173
|
+
return F <= 0 || _.length === 0 && _.ended ? 0 : _.objectMode ? 1 : F !== F ? _.flowing && _.length ? _.buffer.head.data.length : _.length : (F > _.highWaterMark && (_.highWaterMark = M(F)), F <= _.length ? F : _.ended ? _.length : (_.needReadable = !0, 0));
|
|
13171
13174
|
}
|
|
13172
|
-
|
|
13175
|
+
S.prototype.read = function(F) {
|
|
13173
13176
|
l("read", F), F = parseInt(F, 10);
|
|
13174
|
-
var
|
|
13175
|
-
if (F !== 0 && (
|
|
13176
|
-
return l("read: emitReadable",
|
|
13177
|
-
if (F = L(F,
|
|
13178
|
-
return
|
|
13179
|
-
var Q =
|
|
13180
|
-
l("need readable", Q), (
|
|
13177
|
+
var _ = this._readableState, Y = F;
|
|
13178
|
+
if (F !== 0 && (_.emittedReadable = !1), F === 0 && _.needReadable && ((_.highWaterMark !== 0 ? _.length >= _.highWaterMark : _.length > 0) || _.ended))
|
|
13179
|
+
return l("read: emitReadable", _.length, _.ended), _.length === 0 && _.ended ? j(this) : N(this), null;
|
|
13180
|
+
if (F = L(F, _), F === 0 && _.ended)
|
|
13181
|
+
return _.length === 0 && j(this), null;
|
|
13182
|
+
var Q = _.needReadable;
|
|
13183
|
+
l("need readable", Q), (_.length === 0 || _.length - F < _.highWaterMark) && (Q = !0, l("length less than watermark", Q)), _.ended || _.reading ? (Q = !1, l("reading or ended", Q)) : Q && (l("do read"), _.reading = !0, _.sync = !0, _.length === 0 && (_.needReadable = !0), this._read(_.highWaterMark), _.sync = !1, _.reading || (F = L(Y, _)));
|
|
13181
13184
|
var ne;
|
|
13182
|
-
return F > 0 ? ne = A(F,
|
|
13185
|
+
return F > 0 ? ne = A(F, _) : ne = null, ne === null ? (_.needReadable = _.length <= _.highWaterMark, F = 0) : (_.length -= F, _.awaitDrain = 0), _.length === 0 && (_.ended || (_.needReadable = !0), Y !== F && _.ended && j(this)), ne !== null && this.emit("data", ne), ne;
|
|
13183
13186
|
};
|
|
13184
|
-
function q(F,
|
|
13185
|
-
if (l("onEofChunk"), !
|
|
13186
|
-
if (
|
|
13187
|
-
var Y =
|
|
13188
|
-
Y && Y.length && (
|
|
13187
|
+
function q(F, _) {
|
|
13188
|
+
if (l("onEofChunk"), !_.ended) {
|
|
13189
|
+
if (_.decoder) {
|
|
13190
|
+
var Y = _.decoder.end();
|
|
13191
|
+
Y && Y.length && (_.buffer.push(Y), _.length += _.objectMode ? 1 : Y.length);
|
|
13189
13192
|
}
|
|
13190
|
-
|
|
13193
|
+
_.ended = !0, _.sync ? N(F) : (_.needReadable = !1, _.emittedReadable || (_.emittedReadable = !0, B(F)));
|
|
13191
13194
|
}
|
|
13192
13195
|
}
|
|
13193
|
-
function
|
|
13194
|
-
var
|
|
13195
|
-
l("emitReadable",
|
|
13196
|
+
function N(F) {
|
|
13197
|
+
var _ = F._readableState;
|
|
13198
|
+
l("emitReadable", _.needReadable, _.emittedReadable), _.needReadable = !1, _.emittedReadable || (l("emitReadable", _.flowing), _.emittedReadable = !0, process.nextTick(B, F));
|
|
13196
13199
|
}
|
|
13197
13200
|
function B(F) {
|
|
13198
|
-
var
|
|
13199
|
-
l("emitReadable_",
|
|
13201
|
+
var _ = F._readableState;
|
|
13202
|
+
l("emitReadable_", _.destroyed, _.length, _.ended), !_.destroyed && (_.length || _.ended) && (F.emit("readable"), _.emittedReadable = !1), _.needReadable = !_.flowing && !_.ended && _.length <= _.highWaterMark, P(F);
|
|
13200
13203
|
}
|
|
13201
|
-
function U(F,
|
|
13202
|
-
|
|
13204
|
+
function U(F, _) {
|
|
13205
|
+
_.readingMore || (_.readingMore = !0, process.nextTick(G, F, _));
|
|
13203
13206
|
}
|
|
13204
|
-
function G(F,
|
|
13205
|
-
for (; !
|
|
13206
|
-
var Y =
|
|
13207
|
-
if (l("maybeReadMore read 0"), F.read(0), Y ===
|
|
13207
|
+
function G(F, _) {
|
|
13208
|
+
for (; !_.reading && !_.ended && (_.length < _.highWaterMark || _.flowing && _.length === 0); ) {
|
|
13209
|
+
var Y = _.length;
|
|
13210
|
+
if (l("maybeReadMore read 0"), F.read(0), Y === _.length)
|
|
13208
13211
|
break;
|
|
13209
13212
|
}
|
|
13210
|
-
|
|
13213
|
+
_.readingMore = !1;
|
|
13211
13214
|
}
|
|
13212
|
-
|
|
13215
|
+
S.prototype._read = function(F) {
|
|
13213
13216
|
O(this, new x("_read()"));
|
|
13214
|
-
},
|
|
13217
|
+
}, S.prototype.pipe = function(F, _) {
|
|
13215
13218
|
var Y = this, Q = this._readableState;
|
|
13216
13219
|
switch (Q.pipesCount) {
|
|
13217
13220
|
case 0:
|
|
@@ -13224,8 +13227,8 @@ function require_stream_readable() {
|
|
|
13224
13227
|
Q.pipes.push(F);
|
|
13225
13228
|
break;
|
|
13226
13229
|
}
|
|
13227
|
-
Q.pipesCount += 1, l("pipe count=%d opts=%j", Q.pipesCount,
|
|
13228
|
-
var ne = (!
|
|
13230
|
+
Q.pipesCount += 1, l("pipe count=%d opts=%j", Q.pipesCount, _);
|
|
13231
|
+
var ne = (!_ || _.end !== !1) && F !== process.stdout && F !== process.stderr, J = ne ? oe : he;
|
|
13229
13232
|
Q.endEmitted ? process.nextTick(J) : Y.once("end", J), F.on("unpipe", ee);
|
|
13230
13233
|
function ee(Ce, ve) {
|
|
13231
13234
|
l("onunpipe"), Ce === Y && ve && ve.hasUnpiped === !1 && (ve.hasUnpiped = !0, pe());
|
|
@@ -13268,71 +13271,71 @@ function require_stream_readable() {
|
|
|
13268
13271
|
l("pipeOnDrain", Y.awaitDrain), Y.awaitDrain && Y.awaitDrain--, Y.awaitDrain === 0 && t(F, "data") && (Y.flowing = !0, P(F));
|
|
13269
13272
|
};
|
|
13270
13273
|
}
|
|
13271
|
-
|
|
13272
|
-
var
|
|
13274
|
+
S.prototype.unpipe = function(F) {
|
|
13275
|
+
var _ = this._readableState, Y = {
|
|
13273
13276
|
hasUnpiped: !1
|
|
13274
13277
|
};
|
|
13275
|
-
if (
|
|
13278
|
+
if (_.pipesCount === 0)
|
|
13276
13279
|
return this;
|
|
13277
|
-
if (
|
|
13278
|
-
return F && F !==
|
|
13280
|
+
if (_.pipesCount === 1)
|
|
13281
|
+
return F && F !== _.pipes ? this : (F || (F = _.pipes), _.pipes = null, _.pipesCount = 0, _.flowing = !1, F && F.emit("unpipe", this, Y), this);
|
|
13279
13282
|
if (!F) {
|
|
13280
|
-
var Q =
|
|
13281
|
-
|
|
13283
|
+
var Q = _.pipes, ne = _.pipesCount;
|
|
13284
|
+
_.pipes = null, _.pipesCount = 0, _.flowing = !1;
|
|
13282
13285
|
for (var J = 0; J < ne; J++)
|
|
13283
13286
|
Q[J].emit("unpipe", this, {
|
|
13284
13287
|
hasUnpiped: !1
|
|
13285
13288
|
});
|
|
13286
13289
|
return this;
|
|
13287
13290
|
}
|
|
13288
|
-
var ee = X(
|
|
13289
|
-
return ee === -1 ? this : (
|
|
13290
|
-
},
|
|
13291
|
-
var Y = n.prototype.on.call(this, F,
|
|
13292
|
-
return F === "data" ? (Q.readableListening = this.listenerCount("readable") > 0, Q.flowing !== !1 && this.resume()) : F === "readable" && !Q.endEmitted && !Q.readableListening && (Q.readableListening = Q.needReadable = !0, Q.flowing = !1, Q.emittedReadable = !1, l("on readable", Q.length, Q.reading), Q.length ?
|
|
13293
|
-
},
|
|
13294
|
-
var Y = n.prototype.removeListener.call(this, F,
|
|
13291
|
+
var ee = X(_.pipes, F);
|
|
13292
|
+
return ee === -1 ? this : (_.pipes.splice(ee, 1), _.pipesCount -= 1, _.pipesCount === 1 && (_.pipes = _.pipes[0]), F.emit("unpipe", this, Y), this);
|
|
13293
|
+
}, S.prototype.on = function(F, _) {
|
|
13294
|
+
var Y = n.prototype.on.call(this, F, _), Q = this._readableState;
|
|
13295
|
+
return F === "data" ? (Q.readableListening = this.listenerCount("readable") > 0, Q.flowing !== !1 && this.resume()) : F === "readable" && !Q.endEmitted && !Q.readableListening && (Q.readableListening = Q.needReadable = !0, Q.flowing = !1, Q.emittedReadable = !1, l("on readable", Q.length, Q.reading), Q.length ? N(this) : Q.reading || process.nextTick(Z, this)), Y;
|
|
13296
|
+
}, S.prototype.addListener = S.prototype.on, S.prototype.removeListener = function(F, _) {
|
|
13297
|
+
var Y = n.prototype.removeListener.call(this, F, _);
|
|
13295
13298
|
return F === "readable" && process.nextTick(W, this), Y;
|
|
13296
|
-
},
|
|
13297
|
-
var
|
|
13298
|
-
return (F === "readable" || F === void 0) && process.nextTick(W, this),
|
|
13299
|
+
}, S.prototype.removeAllListeners = function(F) {
|
|
13300
|
+
var _ = n.prototype.removeAllListeners.apply(this, arguments);
|
|
13301
|
+
return (F === "readable" || F === void 0) && process.nextTick(W, this), _;
|
|
13299
13302
|
};
|
|
13300
13303
|
function W(F) {
|
|
13301
|
-
var
|
|
13302
|
-
|
|
13304
|
+
var _ = F._readableState;
|
|
13305
|
+
_.readableListening = F.listenerCount("readable") > 0, _.resumeScheduled && !_.paused ? _.flowing = !0 : F.listenerCount("data") > 0 && F.resume();
|
|
13303
13306
|
}
|
|
13304
13307
|
function Z(F) {
|
|
13305
13308
|
l("readable nexttick read 0"), F.read(0);
|
|
13306
13309
|
}
|
|
13307
|
-
|
|
13310
|
+
S.prototype.resume = function() {
|
|
13308
13311
|
var F = this._readableState;
|
|
13309
13312
|
return F.flowing || (l("resume"), F.flowing = !F.readableListening, V(this, F)), F.paused = !1, this;
|
|
13310
13313
|
};
|
|
13311
|
-
function V(F,
|
|
13312
|
-
|
|
13314
|
+
function V(F, _) {
|
|
13315
|
+
_.resumeScheduled || (_.resumeScheduled = !0, process.nextTick(H, F, _));
|
|
13313
13316
|
}
|
|
13314
|
-
function H(F,
|
|
13315
|
-
l("resume",
|
|
13317
|
+
function H(F, _) {
|
|
13318
|
+
l("resume", _.reading), _.reading || F.read(0), _.resumeScheduled = !1, F.emit("resume"), P(F), _.flowing && !_.reading && F.read(0);
|
|
13316
13319
|
}
|
|
13317
|
-
|
|
13320
|
+
S.prototype.pause = function() {
|
|
13318
13321
|
return l("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (l("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
13319
13322
|
};
|
|
13320
13323
|
function P(F) {
|
|
13321
|
-
var
|
|
13322
|
-
for (l("flow",
|
|
13324
|
+
var _ = F._readableState;
|
|
13325
|
+
for (l("flow", _.flowing); _.flowing && F.read() !== null; )
|
|
13323
13326
|
;
|
|
13324
13327
|
}
|
|
13325
|
-
|
|
13326
|
-
var
|
|
13328
|
+
S.prototype.wrap = function(F) {
|
|
13329
|
+
var _ = this, Y = this._readableState, Q = !1;
|
|
13327
13330
|
F.on("end", function() {
|
|
13328
13331
|
if (l("wrapped end"), Y.decoder && !Y.ended) {
|
|
13329
13332
|
var ee = Y.decoder.end();
|
|
13330
|
-
ee && ee.length &&
|
|
13333
|
+
ee && ee.length && _.push(ee);
|
|
13331
13334
|
}
|
|
13332
|
-
|
|
13335
|
+
_.push(null);
|
|
13333
13336
|
}), F.on("data", function(ee) {
|
|
13334
13337
|
if (l("wrapped data"), Y.decoder && (ee = Y.decoder.write(ee)), !(Y.objectMode && ee == null) && !(!Y.objectMode && (!ee || !ee.length))) {
|
|
13335
|
-
var oe =
|
|
13338
|
+
var oe = _.push(ee);
|
|
13336
13339
|
oe || (Q = !0, F.pause());
|
|
13337
13340
|
}
|
|
13338
13341
|
});
|
|
@@ -13347,54 +13350,54 @@ function require_stream_readable() {
|
|
|
13347
13350
|
return this._read = function(ee) {
|
|
13348
13351
|
l("wrapped _read", ee), Q && (Q = !1, F.resume());
|
|
13349
13352
|
}, this;
|
|
13350
|
-
}, typeof Symbol == "function" && (
|
|
13353
|
+
}, typeof Symbol == "function" && (S.prototype[Symbol.asyncIterator] = function() {
|
|
13351
13354
|
return C === void 0 && (C = requireAsync_iterator()), C(this);
|
|
13352
|
-
}), Object.defineProperty(
|
|
13355
|
+
}), Object.defineProperty(S.prototype, "readableHighWaterMark", {
|
|
13353
13356
|
enumerable: !1,
|
|
13354
13357
|
get: function() {
|
|
13355
13358
|
return this._readableState.highWaterMark;
|
|
13356
13359
|
}
|
|
13357
|
-
}), Object.defineProperty(
|
|
13360
|
+
}), Object.defineProperty(S.prototype, "readableBuffer", {
|
|
13358
13361
|
enumerable: !1,
|
|
13359
13362
|
get: function() {
|
|
13360
13363
|
return this._readableState && this._readableState.buffer;
|
|
13361
13364
|
}
|
|
13362
|
-
}), Object.defineProperty(
|
|
13365
|
+
}), Object.defineProperty(S.prototype, "readableFlowing", {
|
|
13363
13366
|
enumerable: !1,
|
|
13364
13367
|
get: function() {
|
|
13365
13368
|
return this._readableState.flowing;
|
|
13366
13369
|
},
|
|
13367
|
-
set: function(
|
|
13368
|
-
this._readableState && (this._readableState.flowing =
|
|
13370
|
+
set: function(_) {
|
|
13371
|
+
this._readableState && (this._readableState.flowing = _);
|
|
13369
13372
|
}
|
|
13370
|
-
}),
|
|
13373
|
+
}), S._fromList = A, Object.defineProperty(S.prototype, "readableLength", {
|
|
13371
13374
|
enumerable: !1,
|
|
13372
13375
|
get: function() {
|
|
13373
13376
|
return this._readableState.length;
|
|
13374
13377
|
}
|
|
13375
13378
|
});
|
|
13376
|
-
function A(F,
|
|
13377
|
-
if (
|
|
13379
|
+
function A(F, _) {
|
|
13380
|
+
if (_.length === 0)
|
|
13378
13381
|
return null;
|
|
13379
13382
|
var Y;
|
|
13380
|
-
return
|
|
13383
|
+
return _.objectMode ? Y = _.buffer.shift() : !F || F >= _.length ? (_.decoder ? Y = _.buffer.join("") : _.buffer.length === 1 ? Y = _.buffer.first() : Y = _.buffer.concat(_.length), _.buffer.clear()) : Y = _.buffer.consume(F, _.decoder), Y;
|
|
13381
13384
|
}
|
|
13382
13385
|
function j(F) {
|
|
13383
|
-
var
|
|
13384
|
-
l("endReadable",
|
|
13386
|
+
var _ = F._readableState;
|
|
13387
|
+
l("endReadable", _.endEmitted), _.endEmitted || (_.ended = !0, process.nextTick(K, _, F));
|
|
13385
13388
|
}
|
|
13386
|
-
function K(F,
|
|
13387
|
-
if (l("endReadableNT", F.endEmitted, F.length), !F.endEmitted && F.length === 0 && (F.endEmitted = !0,
|
|
13388
|
-
var Y =
|
|
13389
|
-
(!Y || Y.autoDestroy && Y.finished) &&
|
|
13389
|
+
function K(F, _) {
|
|
13390
|
+
if (l("endReadableNT", F.endEmitted, F.length), !F.endEmitted && F.length === 0 && (F.endEmitted = !0, _.readable = !1, _.emit("end"), F.autoDestroy)) {
|
|
13391
|
+
var Y = _._writableState;
|
|
13392
|
+
(!Y || Y.autoDestroy && Y.finished) && _.destroy();
|
|
13390
13393
|
}
|
|
13391
13394
|
}
|
|
13392
|
-
typeof Symbol == "function" && (
|
|
13393
|
-
return y === void 0 && (y = requireFromBrowser()), y(
|
|
13395
|
+
typeof Symbol == "function" && (S.from = function(F, _) {
|
|
13396
|
+
return y === void 0 && (y = requireFromBrowser()), y(S, F, _);
|
|
13394
13397
|
});
|
|
13395
|
-
function X(F,
|
|
13398
|
+
function X(F, _) {
|
|
13396
13399
|
for (var Y = 0, Q = F.length; Y < Q; Y++)
|
|
13397
|
-
if (F[Y] ===
|
|
13400
|
+
if (F[Y] === _)
|
|
13398
13401
|
return Y;
|
|
13399
13402
|
return -1;
|
|
13400
13403
|
}
|
|
@@ -15759,8 +15762,8 @@ const Image = (e) => {
|
|
|
15759
15762
|
style: {
|
|
15760
15763
|
padding: "1rem"
|
|
15761
15764
|
},
|
|
15762
|
-
children: C.map((w,
|
|
15763
|
-
var
|
|
15765
|
+
children: C.map((w, S) => {
|
|
15766
|
+
var T, k;
|
|
15764
15767
|
return /* @__PURE__ */ jsx("div", {
|
|
15765
15768
|
children: /* @__PURE__ */ jsxs(Timeline$1.Item, {
|
|
15766
15769
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -15769,10 +15772,10 @@ const Image = (e) => {
|
|
|
15769
15772
|
cursor: "pointer"
|
|
15770
15773
|
},
|
|
15771
15774
|
onClick: () => {
|
|
15772
|
-
h(C.find((
|
|
15775
|
+
h(C.find(($) => w.id === $.id)), f(!0);
|
|
15773
15776
|
},
|
|
15774
15777
|
children: /* @__PURE__ */ jsx("strong", {
|
|
15775
|
-
children: (
|
|
15778
|
+
children: (T = w.values) == null ? void 0 : T[I]
|
|
15776
15779
|
})
|
|
15777
15780
|
}), /* @__PURE__ */ jsx("br", {}), /* @__PURE__ */ jsx("div", {
|
|
15778
15781
|
style: {
|
|
@@ -15780,12 +15783,12 @@ const Image = (e) => {
|
|
|
15780
15783
|
cursor: "pointer"
|
|
15781
15784
|
},
|
|
15782
15785
|
onClick: () => {
|
|
15783
|
-
h(C.find((
|
|
15786
|
+
h(C.find(($) => w.id === $.id)), f(!0);
|
|
15784
15787
|
},
|
|
15785
15788
|
children: (k = w.values) == null ? void 0 : k[g]
|
|
15786
15789
|
})]
|
|
15787
|
-
},
|
|
15788
|
-
},
|
|
15790
|
+
}, S)
|
|
15791
|
+
}, S);
|
|
15789
15792
|
})
|
|
15790
15793
|
}), /* @__PURE__ */ jsx(FormModal, {
|
|
15791
15794
|
formView: n.get("form"),
|
|
@@ -16009,7 +16012,7 @@ const transformPlainMany2Ones = ({
|
|
|
16009
16012
|
let b = [];
|
|
16010
16013
|
try {
|
|
16011
16014
|
if (m && (b = [["id", "in", a]]), n.domain) {
|
|
16012
|
-
const
|
|
16015
|
+
const S = await ConnectionProvider.getHandler().evalDomain({
|
|
16013
16016
|
domain: n.domain,
|
|
16014
16017
|
values: transformPlainMany2Ones({
|
|
16015
16018
|
fields: x == null ? void 0 : x.getFields(),
|
|
@@ -16018,7 +16021,7 @@ const transformPlainMany2Ones = ({
|
|
|
16018
16021
|
fields: x == null ? void 0 : x.getFields(),
|
|
16019
16022
|
context: x.getContext()
|
|
16020
16023
|
});
|
|
16021
|
-
b = [...b, ...
|
|
16024
|
+
b = [...b, ...S];
|
|
16022
16025
|
}
|
|
16023
16026
|
const w = (await ConnectionProvider.getHandler().search({
|
|
16024
16027
|
model: p,
|
|
@@ -16028,12 +16031,12 @@ const transformPlainMany2Ones = ({
|
|
|
16028
16031
|
...g == null ? void 0 : g(),
|
|
16029
16032
|
...h
|
|
16030
16033
|
}
|
|
16031
|
-
})).map((
|
|
16032
|
-
const
|
|
16033
|
-
let k =
|
|
16034
|
-
return Array.isArray(
|
|
16034
|
+
})).map((S) => {
|
|
16035
|
+
const T = S[v];
|
|
16036
|
+
let k = T;
|
|
16037
|
+
return Array.isArray(T) && (k = T[1]), {
|
|
16035
16038
|
label: k,
|
|
16036
|
-
value:
|
|
16039
|
+
value: S.id
|
|
16037
16040
|
};
|
|
16038
16041
|
});
|
|
16039
16042
|
c(w);
|
|
@@ -16044,16 +16047,16 @@ const transformPlainMany2Ones = ({
|
|
|
16044
16047
|
}
|
|
16045
16048
|
}
|
|
16046
16049
|
const y = (b) => {
|
|
16047
|
-
const E = o.map((
|
|
16048
|
-
...
|
|
16050
|
+
const E = o.map((S) => b.includes(S.id) ? S.operation == "pendingRemove" ? {
|
|
16051
|
+
...S,
|
|
16049
16052
|
operation: "pendingLink"
|
|
16050
|
-
} :
|
|
16051
|
-
id:
|
|
16053
|
+
} : S : {
|
|
16054
|
+
id: S.id,
|
|
16052
16055
|
operation: "pendingRemove"
|
|
16053
|
-
}), w = E.map((
|
|
16054
|
-
b.filter((
|
|
16056
|
+
}), w = E.map((S) => S.id);
|
|
16057
|
+
b.filter((S) => !w.includes(S)).map((S) => {
|
|
16055
16058
|
E.push({
|
|
16056
|
-
id:
|
|
16059
|
+
id: S,
|
|
16057
16060
|
operation: "pendingLink"
|
|
16058
16061
|
});
|
|
16059
16062
|
}), I(E);
|
|
@@ -16061,18 +16064,18 @@ const transformPlainMany2Ones = ({
|
|
|
16061
16064
|
const {
|
|
16062
16065
|
label: E,
|
|
16063
16066
|
closable: w,
|
|
16064
|
-
onClose:
|
|
16065
|
-
} = b,
|
|
16067
|
+
onClose: S
|
|
16068
|
+
} = b, T = (k) => {
|
|
16066
16069
|
k.preventDefault(), k.stopPropagation();
|
|
16067
16070
|
};
|
|
16068
16071
|
return /* @__PURE__ */ jsx(Tag, {
|
|
16069
16072
|
color: colorFromString(E),
|
|
16070
|
-
onMouseDown:
|
|
16073
|
+
onMouseDown: T,
|
|
16071
16074
|
style: {
|
|
16072
16075
|
margin: "5px"
|
|
16073
16076
|
},
|
|
16074
16077
|
closable: w,
|
|
16075
|
-
onClose:
|
|
16078
|
+
onClose: S,
|
|
16076
16079
|
children: E
|
|
16077
16080
|
});
|
|
16078
16081
|
};
|
|
@@ -16463,7 +16466,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16463
16466
|
setLimit: O,
|
|
16464
16467
|
searchParams: b = [],
|
|
16465
16468
|
setSearchValues: E
|
|
16466
|
-
} = e, [w,
|
|
16469
|
+
} = e, [w, S] = useState(!1), [T, k] = useState(!1), [$, D] = useState(), [M, L] = useState(1), [q, N] = useState(0), [B, U] = useState(), [G, z] = useState([]), [W, Z] = useState(void 0), V = useRef(y || DEFAULT_SEARCH_LIMIT$1), H = useRef([]), P = useCallback((J) => {
|
|
16467
16470
|
x == null || x([...J]), z([...J]);
|
|
16468
16471
|
}, []), A = useCallback(() => g || G, [g, G]), j = useCallback(async () => {
|
|
16469
16472
|
const J = await ConnectionProvider.getHandler().nameSearch({
|
|
@@ -16552,11 +16555,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16552
16555
|
), X = useCallback(
|
|
16553
16556
|
async (J) => {
|
|
16554
16557
|
try {
|
|
16555
|
-
|
|
16558
|
+
S(!0), s == null || s(!0), c && !l.current ? await j() : await K(J);
|
|
16556
16559
|
} catch (ee) {
|
|
16557
16560
|
D(ee.message);
|
|
16558
16561
|
} finally {
|
|
16559
|
-
|
|
16562
|
+
S(!1), k(!1), s == null || s(!1);
|
|
16560
16563
|
}
|
|
16561
16564
|
},
|
|
16562
16565
|
[
|
|
@@ -16575,7 +16578,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16575
16578
|
P,
|
|
16576
16579
|
D,
|
|
16577
16580
|
k,
|
|
16578
|
-
|
|
16581
|
+
S,
|
|
16579
16582
|
s,
|
|
16580
16583
|
h,
|
|
16581
16584
|
f
|
|
@@ -16591,10 +16594,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16591
16594
|
P(ee);
|
|
16592
16595
|
},
|
|
16593
16596
|
[m, A, f, p, P]
|
|
16594
|
-
),
|
|
16597
|
+
), _ = useCallback(
|
|
16595
16598
|
(J) => {
|
|
16596
16599
|
const { params: ee, searchValues: oe, limit: le, offset: ae } = J;
|
|
16597
|
-
w || (n == null || n(void 0), r == null || r([]), E == null || E(oe), o == null || o(ee), a == null || a(!1), k(!0), D(void 0), L(1), le && (V.current = le, O == null || O(le)), ae &&
|
|
16600
|
+
w || (n == null || n(void 0), r == null || r([]), E == null || E(oe), o == null || o(ee), a == null || a(!1), k(!0), D(void 0), L(1), le && (V.current = le, O == null || O(le)), ae && N(ae), X({
|
|
16598
16601
|
params: ee,
|
|
16599
16602
|
newOffset: ae
|
|
16600
16603
|
}));
|
|
@@ -16609,22 +16612,22 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16609
16612
|
D,
|
|
16610
16613
|
L,
|
|
16611
16614
|
O,
|
|
16612
|
-
|
|
16615
|
+
N,
|
|
16613
16616
|
X
|
|
16614
16617
|
]
|
|
16615
16618
|
), Y = useCallback(
|
|
16616
16619
|
(J) => {
|
|
16617
|
-
|
|
16620
|
+
S(!0), L(J), N((J - 1) * y);
|
|
16618
16621
|
},
|
|
16619
|
-
[
|
|
16622
|
+
[S, y, N, L]
|
|
16620
16623
|
), Q = useCallback(() => {
|
|
16621
|
-
w || (n == null || n(void 0), o == null || o([]), E == null || E({}), D(void 0),
|
|
16624
|
+
w || (n == null || n(void 0), o == null || o([]), E == null || E({}), D(void 0), N(0), L(1), O == null || O(y || DEFAULT_SEARCH_LIMIT$1));
|
|
16622
16625
|
}, [
|
|
16623
16626
|
w,
|
|
16624
16627
|
n,
|
|
16625
16628
|
o,
|
|
16626
16629
|
D,
|
|
16627
|
-
|
|
16630
|
+
N,
|
|
16628
16631
|
L,
|
|
16629
16632
|
O,
|
|
16630
16633
|
y
|
|
@@ -16641,12 +16644,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16641
16644
|
[f, t, u, A, P]
|
|
16642
16645
|
);
|
|
16643
16646
|
return {
|
|
16644
|
-
submit:
|
|
16647
|
+
submit: _,
|
|
16645
16648
|
clear: Q,
|
|
16646
16649
|
fetchResults: X,
|
|
16647
16650
|
tableRefreshing: w,
|
|
16648
|
-
searchFilterLoading:
|
|
16649
|
-
searchError:
|
|
16651
|
+
searchFilterLoading: T,
|
|
16652
|
+
searchError: $,
|
|
16650
16653
|
page: M,
|
|
16651
16654
|
offset: q,
|
|
16652
16655
|
limit: y,
|
|
@@ -16683,13 +16686,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16683
16686
|
searchTreeNameSearch: b,
|
|
16684
16687
|
setSearchTreeNameSearch: E,
|
|
16685
16688
|
goToResourceId: w,
|
|
16686
|
-
limit:
|
|
16687
|
-
} = e, [
|
|
16689
|
+
limit: S
|
|
16690
|
+
} = e, [T, k] = useState(!1), [$, D] = useState(!1), [M, L] = useState(!1), [q, N] = useState(!0), [B, U] = useState(!0), [G, z] = useState([]), [W, Z] = useState(!1), [V, H] = useState([]), [P, A] = useState(!1), [j, K] = useState(!0), [X, F] = useState(), [_, Y] = useState({}), [Q, ne] = useState(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1);
|
|
16688
16691
|
useEffect(() => {
|
|
16689
16692
|
p && p.length > 0 && !h && (m == null || m(0), d == null || d(p[0].id));
|
|
16690
16693
|
}, [p]), useEffect(() => {
|
|
16691
|
-
ne(
|
|
16692
|
-
}, [
|
|
16694
|
+
ne(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1);
|
|
16695
|
+
}, [S]), useEffect(() => {
|
|
16693
16696
|
a.length === 1 ? F(a[0]) : a.length > 1 && F(a.filter((ee) => ee.view_id !== n.view_id)[0]);
|
|
16694
16697
|
}, [a]), useEffect(() => {
|
|
16695
16698
|
(X == null ? void 0 : X.view_id) === n.view_id && a.length > 1 && F(a.filter((ee) => ee.view_id !== n.view_id)[0]);
|
|
@@ -16704,9 +16707,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16704
16707
|
currentView: n,
|
|
16705
16708
|
setCurrentView: o,
|
|
16706
16709
|
availableViews: a,
|
|
16707
|
-
formIsSaving:
|
|
16710
|
+
formIsSaving: T,
|
|
16708
16711
|
setFormIsSaving: k,
|
|
16709
|
-
formHasChanges:
|
|
16712
|
+
formHasChanges: $,
|
|
16710
16713
|
setFormHasChanges: D,
|
|
16711
16714
|
formRef: s,
|
|
16712
16715
|
searchTreeRef: c,
|
|
@@ -16722,7 +16725,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16722
16725
|
removingItem: M,
|
|
16723
16726
|
setRemovingItem: L,
|
|
16724
16727
|
formIsLoading: q,
|
|
16725
|
-
setFormIsLoading:
|
|
16728
|
+
setFormIsLoading: N,
|
|
16726
16729
|
treeIsLoading: B,
|
|
16727
16730
|
setTreeIsLoading: U,
|
|
16728
16731
|
attachments: G,
|
|
@@ -16746,7 +16749,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16746
16749
|
previousView: X,
|
|
16747
16750
|
setPreviousView: F,
|
|
16748
16751
|
goToResourceId: w,
|
|
16749
|
-
searchValues:
|
|
16752
|
+
searchValues: _,
|
|
16750
16753
|
setSearchValues: Y,
|
|
16751
16754
|
limit: Q,
|
|
16752
16755
|
setLimit: ne
|
|
@@ -16804,11 +16807,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16804
16807
|
async function x(E) {
|
|
16805
16808
|
const {
|
|
16806
16809
|
reportData: w,
|
|
16807
|
-
fields:
|
|
16808
|
-
values:
|
|
16810
|
+
fields: S,
|
|
16811
|
+
values: T,
|
|
16809
16812
|
context: k = {}
|
|
16810
16813
|
} = E, {
|
|
16811
|
-
context:
|
|
16814
|
+
context: $,
|
|
16812
16815
|
model: D,
|
|
16813
16816
|
datas: M = {},
|
|
16814
16817
|
report_name: L,
|
|
@@ -16819,14 +16822,14 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16819
16822
|
return;
|
|
16820
16823
|
}
|
|
16821
16824
|
const {
|
|
16822
|
-
ids:
|
|
16825
|
+
ids: N
|
|
16823
16826
|
} = M || {};
|
|
16824
|
-
let B =
|
|
16825
|
-
const U = typeof
|
|
16826
|
-
context:
|
|
16827
|
-
fields:
|
|
16828
|
-
values:
|
|
16829
|
-
}) :
|
|
16827
|
+
let B = N || [];
|
|
16828
|
+
const U = typeof $ == "string" ? parseContext({
|
|
16829
|
+
context: $,
|
|
16830
|
+
fields: S,
|
|
16831
|
+
values: T
|
|
16832
|
+
}) : $;
|
|
16830
16833
|
try {
|
|
16831
16834
|
const G = await ConnectionProvider.getHandler().createReport({
|
|
16832
16835
|
model: D,
|
|
@@ -16852,58 +16855,58 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16852
16855
|
id: E
|
|
16853
16856
|
}), w.state && a.current === !0) {
|
|
16854
16857
|
a.current = !1, clearInterval(o.current), c(!1);
|
|
16855
|
-
const
|
|
16856
|
-
openBase64InNewTab(w.result,
|
|
16858
|
+
const S = await getMimeType(w.result);
|
|
16859
|
+
openBase64InNewTab(w.result, S.mime);
|
|
16857
16860
|
}
|
|
16858
|
-
} catch (
|
|
16859
|
-
a.current = !1, clearInterval(o.current), c(!1), showDialog$8(
|
|
16861
|
+
} catch (S) {
|
|
16862
|
+
a.current = !1, clearInterval(o.current), c(!1), showDialog$8(S.exception || S);
|
|
16860
16863
|
}
|
|
16861
16864
|
}
|
|
16862
16865
|
async function I({
|
|
16863
16866
|
actionData: E,
|
|
16864
16867
|
fields: w,
|
|
16865
|
-
values:
|
|
16866
|
-
context:
|
|
16868
|
+
values: S,
|
|
16869
|
+
context: T,
|
|
16867
16870
|
onRefreshParentValues: k
|
|
16868
16871
|
}) {
|
|
16869
16872
|
const {
|
|
16870
|
-
type:
|
|
16873
|
+
type: $
|
|
16871
16874
|
} = E;
|
|
16872
|
-
return d.current.push(k),
|
|
16875
|
+
return d.current.push(k), $ === "ir.actions.report.xml" ? await x({
|
|
16873
16876
|
reportData: E,
|
|
16874
16877
|
fields: w,
|
|
16875
|
-
values:
|
|
16876
|
-
context:
|
|
16877
|
-
}) :
|
|
16878
|
+
values: S,
|
|
16879
|
+
context: T
|
|
16880
|
+
}) : $ === "ir.actions.act_window" ? await C({
|
|
16878
16881
|
actionData: E,
|
|
16879
16882
|
fields: w,
|
|
16880
|
-
values:
|
|
16881
|
-
context:
|
|
16882
|
-
}) : (showDialog$8(`${
|
|
16883
|
+
values: S,
|
|
16884
|
+
context: T
|
|
16885
|
+
}) : (showDialog$8(`${$} action not supported`), {});
|
|
16883
16886
|
}
|
|
16884
16887
|
async function C({
|
|
16885
16888
|
actionData: E,
|
|
16886
16889
|
fields: w = {},
|
|
16887
|
-
values:
|
|
16888
|
-
context:
|
|
16890
|
+
values: S = {},
|
|
16891
|
+
context: T = {}
|
|
16889
16892
|
}) {
|
|
16890
16893
|
var L;
|
|
16891
16894
|
let k = E;
|
|
16892
16895
|
E.res_model || (k = (await ConnectionProvider.getHandler().readObjects({
|
|
16893
16896
|
model: "ir.actions.act_window",
|
|
16894
16897
|
ids: [parseInt(E.id)],
|
|
16895
|
-
context:
|
|
16898
|
+
context: T
|
|
16896
16899
|
}))[0]);
|
|
16897
16900
|
const D = {
|
|
16898
16901
|
...typeof (k == null ? void 0 : k.context) == "string" ? parseContext({
|
|
16899
16902
|
context: k.context,
|
|
16900
16903
|
fields: w,
|
|
16901
16904
|
values: {
|
|
16902
|
-
...
|
|
16905
|
+
...S,
|
|
16903
16906
|
...r
|
|
16904
16907
|
}
|
|
16905
16908
|
}) : k.context,
|
|
16906
|
-
...
|
|
16909
|
+
...T
|
|
16907
16910
|
};
|
|
16908
16911
|
let M = [];
|
|
16909
16912
|
if (k.domain && (M = await ConnectionProvider.getHandler().evalDomain({
|
|
@@ -16911,7 +16914,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16911
16914
|
values: transformPlainMany2Ones({
|
|
16912
16915
|
fields: w,
|
|
16913
16916
|
values: {
|
|
16914
|
-
...
|
|
16917
|
+
...S,
|
|
16915
16918
|
...r
|
|
16916
16919
|
}
|
|
16917
16920
|
}),
|
|
@@ -16932,8 +16935,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16932
16935
|
}), {};
|
|
16933
16936
|
} else {
|
|
16934
16937
|
let q;
|
|
16935
|
-
const
|
|
16936
|
-
for (const U of
|
|
16938
|
+
const N = k.view_mode.split(","), B = [];
|
|
16939
|
+
for (const U of N) {
|
|
16937
16940
|
const G = await ConnectionProvider.getHandler().getView({
|
|
16938
16941
|
model: k.res_model,
|
|
16939
16942
|
type: U,
|
|
@@ -16971,29 +16974,29 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16971
16974
|
function y({
|
|
16972
16975
|
domain: E,
|
|
16973
16976
|
model: w,
|
|
16974
|
-
formView:
|
|
16975
|
-
context:
|
|
16977
|
+
formView: S,
|
|
16978
|
+
context: T,
|
|
16976
16979
|
actionData: k
|
|
16977
16980
|
}) {
|
|
16978
16981
|
p ? O({
|
|
16979
16982
|
domain: E,
|
|
16980
16983
|
model: w,
|
|
16981
|
-
formView:
|
|
16982
|
-
context:
|
|
16984
|
+
formView: S,
|
|
16985
|
+
context: T,
|
|
16983
16986
|
actionData: k
|
|
16984
16987
|
}) : (v({
|
|
16985
16988
|
domain: E,
|
|
16986
16989
|
model: w,
|
|
16987
|
-
context:
|
|
16988
|
-
formView:
|
|
16990
|
+
context: T,
|
|
16991
|
+
formView: S,
|
|
16989
16992
|
actionData: k
|
|
16990
16993
|
}), h(!0));
|
|
16991
16994
|
}
|
|
16992
16995
|
async function O({
|
|
16993
16996
|
domain: E,
|
|
16994
16997
|
model: w,
|
|
16995
|
-
formView:
|
|
16996
|
-
context:
|
|
16998
|
+
formView: S,
|
|
16999
|
+
context: T,
|
|
16997
17000
|
actionData: k
|
|
16998
17001
|
}) {
|
|
16999
17002
|
v({
|
|
@@ -17002,11 +17005,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
17002
17005
|
context: {},
|
|
17003
17006
|
formView: void 0,
|
|
17004
17007
|
actionData: void 0
|
|
17005
|
-
}), h(!1), await new Promise((
|
|
17008
|
+
}), h(!1), await new Promise(($) => setTimeout($, 300)), v({
|
|
17006
17009
|
domain: E,
|
|
17007
17010
|
model: w,
|
|
17008
|
-
context:
|
|
17009
|
-
formView:
|
|
17011
|
+
context: T,
|
|
17012
|
+
formView: S,
|
|
17010
17013
|
actionData: k
|
|
17011
17014
|
}), h(!0);
|
|
17012
17015
|
}
|
|
@@ -17084,15 +17087,15 @@ function Form(e, t) {
|
|
|
17084
17087
|
forcedValues: b = {}
|
|
17085
17088
|
} = e, {
|
|
17086
17089
|
lang: E
|
|
17087
|
-
} = useContext(LocaleContext), [w,
|
|
17090
|
+
} = useContext(LocaleContext), [w, S] = useState(!1), [T, k] = useState(), [$, D] = useState(), [M] = Form$3.useForm(), [L, q] = useState(), [N, B] = useState(), U = useContext(FormModalContext), [G, z] = useState(), [W, Z] = useState(!1), V = useRef(), H = useRef({}), P = useRef({}), A = useRef(!1), j = useRef(!1), K = G < WIDTH_BREAKPOINT, X = useContext(FormContext$1), {
|
|
17088
17091
|
activeId: F
|
|
17089
|
-
} = X || {},
|
|
17092
|
+
} = X || {}, _ = useContext(ActionViewContext), {
|
|
17090
17093
|
setFormIsSaving: Y = void 0,
|
|
17091
17094
|
setFormHasChanges: Q = void 0,
|
|
17092
17095
|
setCurrentId: ne = void 0,
|
|
17093
17096
|
setFormIsLoading: J = void 0,
|
|
17094
17097
|
setAttachments: ee = void 0
|
|
17095
|
-
} = (y ?
|
|
17098
|
+
} = (y ? _ : {}) || {}, oe = useContext(ContentRootContext), {
|
|
17096
17099
|
processAction: le,
|
|
17097
17100
|
globalValues: ae
|
|
17098
17101
|
} = oe || {};
|
|
@@ -17113,7 +17116,7 @@ function Form(e, t) {
|
|
|
17113
17116
|
V.current = void 0, D(void 0);
|
|
17114
17117
|
return;
|
|
17115
17118
|
}
|
|
17116
|
-
(r === void 0 &&
|
|
17119
|
+
(r === void 0 && N || r !== void 0 && N && r < 0) && (V.current = void 0, D(void 0)), Fe();
|
|
17117
17120
|
}
|
|
17118
17121
|
}, [r, n, h, m, C]), useEffect(() => {
|
|
17119
17122
|
W && (De({
|
|
@@ -17131,11 +17134,11 @@ function Form(e, t) {
|
|
|
17131
17134
|
return r || V.current;
|
|
17132
17135
|
}
|
|
17133
17136
|
function Ie() {
|
|
17134
|
-
return
|
|
17137
|
+
return N;
|
|
17135
17138
|
}
|
|
17136
17139
|
function he() {
|
|
17137
17140
|
const re = {
|
|
17138
|
-
...ge(
|
|
17141
|
+
...ge(N),
|
|
17139
17142
|
...be()
|
|
17140
17143
|
};
|
|
17141
17144
|
for (const te in re)
|
|
@@ -17152,7 +17155,7 @@ function Form(e, t) {
|
|
|
17152
17155
|
}
|
|
17153
17156
|
function ve() {
|
|
17154
17157
|
const re = {
|
|
17155
|
-
...ge(
|
|
17158
|
+
...ge(N)
|
|
17156
17159
|
};
|
|
17157
17160
|
for (const te in re)
|
|
17158
17161
|
re[te] === void 0 && delete re[te];
|
|
@@ -17161,7 +17164,7 @@ function Form(e, t) {
|
|
|
17161
17164
|
function Te() {
|
|
17162
17165
|
return {
|
|
17163
17166
|
...g,
|
|
17164
|
-
|
|
17167
|
+
...$ == null ? void 0 : $.context
|
|
17165
17168
|
};
|
|
17166
17169
|
}
|
|
17167
17170
|
function be() {
|
|
@@ -17174,7 +17177,7 @@ function Form(e, t) {
|
|
|
17174
17177
|
};
|
|
17175
17178
|
}
|
|
17176
17179
|
const se = async (re) => {
|
|
17177
|
-
const te = de() ?
|
|
17180
|
+
const te = de() ? $ == null ? void 0 : $.context : {};
|
|
17178
17181
|
return await ConnectionProvider.getHandler().defaultGet({
|
|
17179
17182
|
model: n,
|
|
17180
17183
|
fields: re,
|
|
@@ -17186,18 +17189,18 @@ function Form(e, t) {
|
|
|
17186
17189
|
});
|
|
17187
17190
|
}, ce = () => Object.keys(getTouchedValues({
|
|
17188
17191
|
source: H.current,
|
|
17189
|
-
target: ge(
|
|
17190
|
-
fields:
|
|
17192
|
+
target: ge(N),
|
|
17193
|
+
fields: N
|
|
17191
17194
|
})).length !== 0, ge = (re) => {
|
|
17192
17195
|
const te = M.getFieldsValue(!0);
|
|
17193
17196
|
return processValues(te, re);
|
|
17194
17197
|
}, ye = (re, te) => {
|
|
17195
17198
|
Ae({
|
|
17196
17199
|
values: {
|
|
17197
|
-
...processValues(M.getFieldsValue(!0),
|
|
17200
|
+
...processValues(M.getFieldsValue(!0), N),
|
|
17198
17201
|
[re]: te
|
|
17199
17202
|
},
|
|
17200
|
-
fields:
|
|
17203
|
+
fields: N,
|
|
17201
17204
|
reset: !1
|
|
17202
17205
|
});
|
|
17203
17206
|
}, Oe = (re) => M.getFieldsValue(!0)[re];
|
|
@@ -17229,7 +17232,7 @@ function Form(e, t) {
|
|
|
17229
17232
|
}
|
|
17230
17233
|
}, Re = async (re) => {
|
|
17231
17234
|
let te, ue, fe, xe;
|
|
17232
|
-
J == null || J(!0), k(void 0), re ? (ue = re.fields, fe = re.arch) : (ue =
|
|
17235
|
+
J == null || J(!0), k(void 0), re ? (ue = re.fields, fe = re.arch) : (ue = N, fe = L), h ? te = h : {
|
|
17233
17236
|
values: te,
|
|
17234
17237
|
defaultGetCalled: xe
|
|
17235
17238
|
} = await Ne({
|
|
@@ -17325,8 +17328,8 @@ function Form(e, t) {
|
|
|
17325
17328
|
if (de()) {
|
|
17326
17329
|
const ue = getTouchedValues({
|
|
17327
17330
|
source: H.current,
|
|
17328
|
-
target: ge(
|
|
17329
|
-
fields:
|
|
17331
|
+
target: ge(N),
|
|
17332
|
+
fields: N
|
|
17330
17333
|
});
|
|
17331
17334
|
await ConnectionProvider.getHandler().update({
|
|
17332
17335
|
model: n,
|
|
@@ -17335,23 +17338,23 @@ function Form(e, t) {
|
|
|
17335
17338
|
...ue,
|
|
17336
17339
|
...b
|
|
17337
17340
|
},
|
|
17338
|
-
fields:
|
|
17341
|
+
fields: N,
|
|
17339
17342
|
context: {
|
|
17340
17343
|
...g,
|
|
17341
|
-
|
|
17344
|
+
...$ == null ? void 0 : $.context
|
|
17342
17345
|
}
|
|
17343
|
-
}), H.current = ge(
|
|
17346
|
+
}), H.current = ge(N);
|
|
17344
17347
|
} else {
|
|
17345
|
-
const ue = ge(
|
|
17348
|
+
const ue = ge(N), fe = await ConnectionProvider.getHandler().create({
|
|
17346
17349
|
model: n,
|
|
17347
17350
|
values: {
|
|
17348
17351
|
...ue,
|
|
17349
17352
|
...b
|
|
17350
17353
|
},
|
|
17351
|
-
fields:
|
|
17354
|
+
fields: N,
|
|
17352
17355
|
context: {
|
|
17353
17356
|
...g,
|
|
17354
|
-
|
|
17357
|
+
...$ == null ? void 0 : $.context
|
|
17355
17358
|
}
|
|
17356
17359
|
});
|
|
17357
17360
|
V.current = fe, H.current = ue;
|
|
@@ -17371,17 +17374,17 @@ function Form(e, t) {
|
|
|
17371
17374
|
return j.current = !1, Q == null || Q(!1), me == null || me(), !0;
|
|
17372
17375
|
if (await Se())
|
|
17373
17376
|
return j.current = !1, showDialog$5(E), !1;
|
|
17374
|
-
|
|
17377
|
+
S(!0), Y == null || Y(!0);
|
|
17375
17378
|
try {
|
|
17376
17379
|
p === "api" ? await qe(re) : await je(re), f && (V.current = void 0, Ae({
|
|
17377
17380
|
values: {},
|
|
17378
|
-
fields:
|
|
17381
|
+
fields: N,
|
|
17379
17382
|
reset: !0
|
|
17380
17383
|
})), await Re(), te = !0;
|
|
17381
17384
|
} catch (fe) {
|
|
17382
|
-
j.current = !1,
|
|
17385
|
+
j.current = !1, S(!1), Y == null || Y(!1), ie == null || ie(fe), k(fe != null && fe.message ? fe.message : fe);
|
|
17383
17386
|
} finally {
|
|
17384
|
-
j.current = !1, Y == null || Y(!1),
|
|
17387
|
+
j.current = !1, Y == null || Y(!1), S(!1);
|
|
17385
17388
|
}
|
|
17386
17389
|
return te;
|
|
17387
17390
|
}, Me = ({
|
|
@@ -17405,18 +17408,18 @@ function Form(e, t) {
|
|
|
17405
17408
|
return;
|
|
17406
17409
|
const te = getTouchedValues({
|
|
17407
17410
|
source: P.current,
|
|
17408
|
-
target: ge(
|
|
17409
|
-
fields:
|
|
17411
|
+
target: ge(N),
|
|
17412
|
+
fields: N
|
|
17410
17413
|
}), ue = Object.keys(te);
|
|
17411
17414
|
if (ue.length !== 0) {
|
|
17412
17415
|
if (checkFieldsType({
|
|
17413
17416
|
changedFields: ue,
|
|
17414
|
-
fields:
|
|
17417
|
+
fields: N,
|
|
17415
17418
|
types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
|
|
17416
17419
|
}) && re !== !0)
|
|
17417
17420
|
return;
|
|
17418
17421
|
{
|
|
17419
|
-
const fe = processValues(M.getFieldsValue(!0),
|
|
17422
|
+
const fe = processValues(M.getFieldsValue(!0), N);
|
|
17420
17423
|
P.current = fe, l == null || l(fe), Q == null || Q(!0), Ue(ue);
|
|
17421
17424
|
}
|
|
17422
17425
|
}
|
|
@@ -17430,21 +17433,21 @@ function Form(e, t) {
|
|
|
17430
17433
|
showDialog$8(te);
|
|
17431
17434
|
}
|
|
17432
17435
|
}, He = async (re) => {
|
|
17433
|
-
const te =
|
|
17436
|
+
const te = $ == null ? void 0 : $.onChangeFields[re];
|
|
17434
17437
|
if (!te) {
|
|
17435
17438
|
Me({
|
|
17436
|
-
fields:
|
|
17439
|
+
fields: N,
|
|
17437
17440
|
arch: L,
|
|
17438
|
-
values: ge(
|
|
17441
|
+
values: ge(N)
|
|
17439
17442
|
});
|
|
17440
17443
|
return;
|
|
17441
17444
|
}
|
|
17442
17445
|
const ue = getOnChangePayload({
|
|
17443
17446
|
values: {
|
|
17444
|
-
...ge(
|
|
17447
|
+
...ge(N),
|
|
17445
17448
|
context: {
|
|
17446
17449
|
...g,
|
|
17447
|
-
|
|
17450
|
+
...$ == null ? void 0 : $.context
|
|
17448
17451
|
}
|
|
17449
17452
|
},
|
|
17450
17453
|
parentValues: getParentPlainValues == null ? void 0 : getParentPlainValues(),
|
|
@@ -17454,20 +17457,20 @@ function Form(e, t) {
|
|
|
17454
17457
|
action: te.method,
|
|
17455
17458
|
ids: de() ? [de()] : [],
|
|
17456
17459
|
payload: ue,
|
|
17457
|
-
fields:
|
|
17460
|
+
fields: N
|
|
17458
17461
|
});
|
|
17459
17462
|
if (fe.value) {
|
|
17460
17463
|
const xe = {
|
|
17461
|
-
...ge(
|
|
17464
|
+
...ge(N),
|
|
17462
17465
|
...fe.value
|
|
17463
17466
|
};
|
|
17464
17467
|
Me({
|
|
17465
|
-
fields:
|
|
17468
|
+
fields: N,
|
|
17466
17469
|
arch: L,
|
|
17467
17470
|
values: xe
|
|
17468
17471
|
}), Ae({
|
|
17469
17472
|
values: xe,
|
|
17470
|
-
fields:
|
|
17473
|
+
fields: N,
|
|
17471
17474
|
reset: !1
|
|
17472
17475
|
});
|
|
17473
17476
|
}
|
|
@@ -17483,7 +17486,7 @@ function Form(e, t) {
|
|
|
17483
17486
|
if (fe.domain && Object.keys(fe.domain).length > 0) {
|
|
17484
17487
|
const xe = mergeFieldsDomain({
|
|
17485
17488
|
fieldsDomain: fe.domain,
|
|
17486
|
-
fields:
|
|
17489
|
+
fields: N
|
|
17487
17490
|
});
|
|
17488
17491
|
Me({
|
|
17489
17492
|
fields: xe,
|
|
@@ -17502,7 +17505,7 @@ function Form(e, t) {
|
|
|
17502
17505
|
payload: [de()],
|
|
17503
17506
|
context: {
|
|
17504
17507
|
...te,
|
|
17505
|
-
|
|
17508
|
+
...$ == null ? void 0 : $.context,
|
|
17506
17509
|
...g
|
|
17507
17510
|
}
|
|
17508
17511
|
});
|
|
@@ -17514,7 +17517,7 @@ function Form(e, t) {
|
|
|
17514
17517
|
let fe = {};
|
|
17515
17518
|
ue.context && (fe = parseContext({
|
|
17516
17519
|
context: ue.context,
|
|
17517
|
-
fields:
|
|
17520
|
+
fields: N,
|
|
17518
17521
|
values: he()
|
|
17519
17522
|
})), await $e({
|
|
17520
17523
|
actionData: ue,
|
|
@@ -17558,11 +17561,11 @@ function Form(e, t) {
|
|
|
17558
17561
|
closeParent: ue
|
|
17559
17562
|
} = await (le == null ? void 0 : le({
|
|
17560
17563
|
actionData: re,
|
|
17561
|
-
fields:
|
|
17564
|
+
fields: N,
|
|
17562
17565
|
values: he(),
|
|
17563
17566
|
context: {
|
|
17564
17567
|
...g,
|
|
17565
|
-
|
|
17568
|
+
...$ == null ? void 0 : $.context,
|
|
17566
17569
|
...te
|
|
17567
17570
|
},
|
|
17568
17571
|
onRefreshParentValues: () => {
|
|
@@ -17605,7 +17608,7 @@ function Form(e, t) {
|
|
|
17605
17608
|
showDialog$8(fe);
|
|
17606
17609
|
}
|
|
17607
17610
|
}
|
|
17608
|
-
const Ze = () =>
|
|
17611
|
+
const Ze = () => !$ && !T ? /* @__PURE__ */ jsx(Spin, {}) : !n && !m || !C ? null : /* @__PURE__ */ jsx(Fragment, {
|
|
17609
17612
|
children: /* @__PURE__ */ jsx(FormProvider$1, {
|
|
17610
17613
|
getValues: he,
|
|
17611
17614
|
getPlainValues: Ce,
|
|
@@ -17630,8 +17633,8 @@ function Form(e, t) {
|
|
|
17630
17633
|
});
|
|
17631
17634
|
},
|
|
17632
17635
|
component: !1,
|
|
17633
|
-
children:
|
|
17634
|
-
container:
|
|
17636
|
+
children: $ && /* @__PURE__ */ jsx(Container, {
|
|
17637
|
+
container: $.container,
|
|
17635
17638
|
responsiveBehaviour: K
|
|
17636
17639
|
})
|
|
17637
17640
|
})
|
|
@@ -17671,9 +17674,9 @@ function Form(e, t) {
|
|
|
17671
17674
|
}) => /* @__PURE__ */ jsxs("div", {
|
|
17672
17675
|
className: "pb-2",
|
|
17673
17676
|
ref: re,
|
|
17674
|
-
children: [
|
|
17677
|
+
children: [T && /* @__PURE__ */ jsx(Alert, {
|
|
17675
17678
|
className: "mt-10 mb-20",
|
|
17676
|
-
message: JSON.stringify(
|
|
17679
|
+
message: JSON.stringify(T),
|
|
17677
17680
|
type: "error",
|
|
17678
17681
|
banner: !0
|
|
17679
17682
|
}), Ze(), s && Xe()]
|
|
@@ -18154,14 +18157,14 @@ function SearchFilter(e) {
|
|
|
18154
18157
|
const O = () => {
|
|
18155
18158
|
if (!x)
|
|
18156
18159
|
return;
|
|
18157
|
-
const w = I ? x : m,
|
|
18158
|
-
return
|
|
18159
|
-
children:
|
|
18160
|
+
const w = I ? x : m, S = w == null ? void 0 : w.rows;
|
|
18161
|
+
return S == null ? void 0 : S.map((T, k) => /* @__PURE__ */ jsx(Row, {
|
|
18162
|
+
children: T.map(($, D) => /* @__PURE__ */ jsx(Col, {
|
|
18160
18163
|
xs: 24,
|
|
18161
18164
|
className: "p-2",
|
|
18162
18165
|
xl: 6,
|
|
18163
18166
|
children: /* @__PURE__ */ jsx(SearchField, {
|
|
18164
|
-
field:
|
|
18167
|
+
field: $
|
|
18165
18168
|
})
|
|
18166
18169
|
}, D))
|
|
18167
18170
|
}, k));
|
|
@@ -18173,23 +18176,23 @@ function SearchFilter(e) {
|
|
|
18173
18176
|
}, [t, n]);
|
|
18174
18177
|
const b = O(), E = (w) => {
|
|
18175
18178
|
const {
|
|
18176
|
-
limit:
|
|
18177
|
-
offset:
|
|
18179
|
+
limit: S,
|
|
18180
|
+
offset: T
|
|
18178
18181
|
} = w;
|
|
18179
18182
|
delete w.offset, delete w.limit;
|
|
18180
18183
|
const k = getParamsForFields(w, t);
|
|
18181
18184
|
o({
|
|
18182
18185
|
params: k,
|
|
18183
|
-
offset:
|
|
18184
|
-
limit:
|
|
18186
|
+
offset: T,
|
|
18187
|
+
limit: S,
|
|
18185
18188
|
searchValues: w
|
|
18186
18189
|
});
|
|
18187
18190
|
};
|
|
18188
18191
|
return /* @__PURE__ */ jsx(Measure, {
|
|
18189
18192
|
bounds: !0,
|
|
18190
18193
|
onResize: (w) => {
|
|
18191
|
-
var
|
|
18192
|
-
d == null || d((
|
|
18194
|
+
var S;
|
|
18195
|
+
d == null || d((S = w.bounds) == null ? void 0 : S.height);
|
|
18193
18196
|
},
|
|
18194
18197
|
children: ({
|
|
18195
18198
|
measureRef: w
|
|
@@ -18261,7 +18264,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18261
18264
|
})
|
|
18262
18265
|
});
|
|
18263
18266
|
}, Many2oneSuffix = (e) => {
|
|
18264
|
-
var w,
|
|
18267
|
+
var w, S;
|
|
18265
18268
|
const {
|
|
18266
18269
|
id: t,
|
|
18267
18270
|
model: n,
|
|
@@ -18278,16 +18281,16 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18278
18281
|
async function C() {
|
|
18279
18282
|
u(!0);
|
|
18280
18283
|
try {
|
|
18281
|
-
const
|
|
18284
|
+
const T = await ConnectionProvider.getHandler().getView({
|
|
18282
18285
|
model: n,
|
|
18283
18286
|
type: "form",
|
|
18284
18287
|
context: r
|
|
18285
18288
|
});
|
|
18286
|
-
f(
|
|
18289
|
+
f(T);
|
|
18287
18290
|
const {
|
|
18288
18291
|
fields: k,
|
|
18289
|
-
arch:
|
|
18290
|
-
} =
|
|
18292
|
+
arch: $
|
|
18293
|
+
} = T, D = (await ConnectionProvider.getHandler().readObjects({
|
|
18291
18294
|
model: n,
|
|
18292
18295
|
ids: [t],
|
|
18293
18296
|
fields: k,
|
|
@@ -18297,8 +18300,8 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18297
18300
|
...processValues(D, k),
|
|
18298
18301
|
active_id: t
|
|
18299
18302
|
}), u(!1);
|
|
18300
|
-
} catch (
|
|
18301
|
-
u(!1), showDialog$8(
|
|
18303
|
+
} catch (T) {
|
|
18304
|
+
u(!1), showDialog$8(T);
|
|
18302
18305
|
return;
|
|
18303
18306
|
}
|
|
18304
18307
|
}
|
|
@@ -18315,9 +18318,9 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18315
18318
|
});
|
|
18316
18319
|
if (!d || !d.toolbar)
|
|
18317
18320
|
return /* @__PURE__ */ jsx(Menu, {});
|
|
18318
|
-
const
|
|
18319
|
-
children:
|
|
18320
|
-
},
|
|
18321
|
+
const T = (k = d == null ? void 0 : d.toolbar) == null ? void 0 : k.relate.map(($) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
18322
|
+
children: $.name
|
|
18323
|
+
}, $.id));
|
|
18321
18324
|
return /* @__PURE__ */ jsx(Menu, {
|
|
18322
18325
|
onClick: O,
|
|
18323
18326
|
children: [/* @__PURE__ */ jsx(Menu.Item, {
|
|
@@ -18334,17 +18337,17 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18334
18337
|
children: [" ", m("related")]
|
|
18335
18338
|
})]
|
|
18336
18339
|
}),
|
|
18337
|
-
children:
|
|
18340
|
+
children: T
|
|
18338
18341
|
})]
|
|
18339
18342
|
});
|
|
18340
18343
|
}
|
|
18341
|
-
function O(
|
|
18342
|
-
if (
|
|
18344
|
+
function O(T) {
|
|
18345
|
+
if (T.key === "action")
|
|
18343
18346
|
a(!0);
|
|
18344
|
-
else if (
|
|
18347
|
+
else if (T.key === "print")
|
|
18345
18348
|
c(!0);
|
|
18346
18349
|
else {
|
|
18347
|
-
const k = d.toolbar.relate.find((
|
|
18350
|
+
const k = d.toolbar.relate.find(($) => $.id === parseInt(T.key));
|
|
18348
18351
|
if (!k)
|
|
18349
18352
|
return;
|
|
18350
18353
|
x({
|
|
@@ -18356,9 +18359,9 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18356
18359
|
});
|
|
18357
18360
|
}
|
|
18358
18361
|
}
|
|
18359
|
-
function b(
|
|
18362
|
+
function b(T) {
|
|
18360
18363
|
a(!1), I == null || I({
|
|
18361
|
-
actionData:
|
|
18364
|
+
actionData: T,
|
|
18362
18365
|
values: p,
|
|
18363
18366
|
fields: d.fields,
|
|
18364
18367
|
context: {
|
|
@@ -18367,12 +18370,12 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18367
18370
|
}
|
|
18368
18371
|
});
|
|
18369
18372
|
}
|
|
18370
|
-
function E(
|
|
18373
|
+
function E(T) {
|
|
18371
18374
|
c(!1), I == null || I({
|
|
18372
18375
|
actionData: {
|
|
18373
|
-
...
|
|
18376
|
+
...T,
|
|
18374
18377
|
datas: {
|
|
18375
|
-
...
|
|
18378
|
+
...T.datas || {},
|
|
18376
18379
|
ids: [t]
|
|
18377
18380
|
}
|
|
18378
18381
|
},
|
|
@@ -18388,8 +18391,8 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18388
18391
|
style: {
|
|
18389
18392
|
color: "rgba(0,0,0,.45)"
|
|
18390
18393
|
},
|
|
18391
|
-
onClick: (
|
|
18392
|
-
|
|
18394
|
+
onClick: (T) => {
|
|
18395
|
+
T.preventDefault(), C();
|
|
18393
18396
|
}
|
|
18394
18397
|
})
|
|
18395
18398
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
@@ -18399,7 +18402,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18399
18402
|
onCancel: () => a(!1)
|
|
18400
18403
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
18401
18404
|
visible: s,
|
|
18402
|
-
items: (
|
|
18405
|
+
items: (S = d == null ? void 0 : d.toolbar) == null ? void 0 : S.print,
|
|
18403
18406
|
onItemClicked: E,
|
|
18404
18407
|
onCancel: () => c(!1)
|
|
18405
18408
|
})]
|
|
@@ -18577,7 +18580,7 @@ function Tree(e) {
|
|
|
18577
18580
|
const q = getTableItems(b.current, a);
|
|
18578
18581
|
I(q), w.current = n;
|
|
18579
18582
|
}, [a]);
|
|
18580
|
-
const
|
|
18583
|
+
const S = (t - 1) * w.current + 1, T = S - 1 + g.length, k = r === void 0 ? null : r === 0 ? E("no_results") : E("summary").replace("{from}", S == null ? void 0 : S.toString()).replace("{to}", T == null ? void 0 : T.toString()).replace("{total}", r == null ? void 0 : r.toString()), $ = () => !u || o.isExpandable || c ? null : r === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
|
|
18581
18584
|
align: "bottom",
|
|
18582
18585
|
className: "pb-4",
|
|
18583
18586
|
children: [/* @__PURE__ */ jsx(Col, {
|
|
@@ -18597,14 +18600,14 @@ function Tree(e) {
|
|
|
18597
18600
|
});
|
|
18598
18601
|
function D() {
|
|
18599
18602
|
var G;
|
|
18600
|
-
const
|
|
18603
|
+
const N = b.current.columns.filter((z) => z.sum !== void 0).map((z) => ({
|
|
18601
18604
|
label: z.sum,
|
|
18602
18605
|
field: z.id
|
|
18603
18606
|
}));
|
|
18604
|
-
if (
|
|
18607
|
+
if (!N || N.length === 0)
|
|
18605
18608
|
return null;
|
|
18606
18609
|
let B = [], U = ((G = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : G.length) > 0 ? g.filter((z) => d == null ? void 0 : d.selectedRowKeys.includes(z.id)) : g;
|
|
18607
|
-
return
|
|
18610
|
+
return N.forEach((z) => {
|
|
18608
18611
|
const W = U.reduce((Z, V) => V[z.field] && !isNaN(V[z.field]) ? Z + V[z.field] : Z, 0);
|
|
18609
18612
|
B.push(`${z.label}: ${Math.round(W * 100) / 100}`);
|
|
18610
18613
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -18615,15 +18618,15 @@ function Tree(e) {
|
|
|
18615
18618
|
let M, L = f;
|
|
18616
18619
|
if (b.current !== null) {
|
|
18617
18620
|
M = calculateColumnsWidth(C, g, 600);
|
|
18618
|
-
const
|
|
18619
|
-
f &&
|
|
18621
|
+
const N = b.current;
|
|
18622
|
+
f && N.columns.some((B) => B.sum !== void 0) && (L = f - 30);
|
|
18620
18623
|
}
|
|
18621
18624
|
return b.current === null ? /* @__PURE__ */ jsx(Spin, {
|
|
18622
18625
|
style: {
|
|
18623
18626
|
padding: "2rem"
|
|
18624
18627
|
}
|
|
18625
18628
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
18626
|
-
children: [
|
|
18629
|
+
children: [$(), /* @__PURE__ */ jsx(Table, {
|
|
18627
18630
|
height: L,
|
|
18628
18631
|
columns: M.columns,
|
|
18629
18632
|
dataSource: g,
|
|
@@ -18662,12 +18665,12 @@ function SearchTree(e, t) {
|
|
|
18662
18665
|
rootTree: d = !1,
|
|
18663
18666
|
parentContext: f = {},
|
|
18664
18667
|
onChangeSelectedRowKeys: p
|
|
18665
|
-
} = e, [h, m] = useState(!1), [v, x] = useState(!1), g = useRef(!1), [I, C] = useState(), [y, O] = useState(), [b, E] = useState(), [w,
|
|
18668
|
+
} = e, [h, m] = useState(!1), [v, x] = useState(!1), g = useRef(!1), [I, C] = useState(), [y, O] = useState(), [b, E] = useState(), [w, S] = useState(), [T, k] = useState(200), $ = useRef(), {
|
|
18666
18669
|
height: D
|
|
18667
18670
|
} = useWindowDimensions(), M = useContext(ContentRootContext), {
|
|
18668
18671
|
processAction: L
|
|
18669
18672
|
} = M || {}, q = useContext(ActionViewContext), {
|
|
18670
|
-
setResults:
|
|
18673
|
+
setResults: N = void 0,
|
|
18671
18674
|
setCurrentItemIndex: B = void 0,
|
|
18672
18675
|
currentId: U = void 0,
|
|
18673
18676
|
results: G = void 0,
|
|
@@ -18682,7 +18685,7 @@ function SearchTree(e, t) {
|
|
|
18682
18685
|
setTotalItems: K = void 0,
|
|
18683
18686
|
setSearchTreeNameSearch: X = void 0,
|
|
18684
18687
|
setTreeIsLoading: F = void 0,
|
|
18685
|
-
searchValues:
|
|
18688
|
+
searchValues: _ = {},
|
|
18686
18689
|
setSearchValues: Y = void 0,
|
|
18687
18690
|
limit: Q = DEFAULT_SEARCH_LIMIT$1,
|
|
18688
18691
|
setLimit: ne = void 0
|
|
@@ -18718,7 +18721,7 @@ function SearchTree(e, t) {
|
|
|
18718
18721
|
sorter: A,
|
|
18719
18722
|
setSorter: j,
|
|
18720
18723
|
setCurrentItemIndex: B,
|
|
18721
|
-
setResultsActionView:
|
|
18724
|
+
setResultsActionView: N,
|
|
18722
18725
|
resultsActionView: G,
|
|
18723
18726
|
domain: l,
|
|
18724
18727
|
currentId: U,
|
|
@@ -18734,11 +18737,11 @@ function SearchTree(e, t) {
|
|
|
18734
18737
|
!v || u && (g.current = !1, oe());
|
|
18735
18738
|
}, [me, ie, v, u, s]);
|
|
18736
18739
|
const be = async () => {
|
|
18737
|
-
x(!1), m(!0),
|
|
18740
|
+
x(!1), m(!0), S(void 0), F == null || F(!0);
|
|
18738
18741
|
try {
|
|
18739
18742
|
await se(), x(!0);
|
|
18740
18743
|
} catch (we) {
|
|
18741
|
-
|
|
18744
|
+
S(we);
|
|
18742
18745
|
} finally {
|
|
18743
18746
|
m(!1), F == null || F(!1);
|
|
18744
18747
|
}
|
|
@@ -18766,12 +18769,12 @@ function SearchTree(e, t) {
|
|
|
18766
18769
|
const {
|
|
18767
18770
|
id: _e
|
|
18768
18771
|
} = we;
|
|
18769
|
-
|
|
18772
|
+
$.current || ($.current = await ConnectionProvider.getHandler().treeButOpen({
|
|
18770
18773
|
id: y.view_id,
|
|
18771
18774
|
model: I,
|
|
18772
18775
|
context: f
|
|
18773
18776
|
}));
|
|
18774
|
-
const Ee =
|
|
18777
|
+
const Ee = $.current[0][2];
|
|
18775
18778
|
await (L == null ? void 0 : L({
|
|
18776
18779
|
actionData: Ee,
|
|
18777
18780
|
fields: y.fields,
|
|
@@ -18805,7 +18808,7 @@ function SearchTree(e, t) {
|
|
|
18805
18808
|
W == null || W(_e), p == null || p(we);
|
|
18806
18809
|
}
|
|
18807
18810
|
function Se() {
|
|
18808
|
-
return y != null && y.isExpandable ? D - 160 : D - (
|
|
18811
|
+
return y != null && y.isExpandable ? D - 160 : D - (T + 210);
|
|
18809
18812
|
}
|
|
18810
18813
|
const Fe = () => !y || !b ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
18811
18814
|
children: [/* @__PURE__ */ jsx(SearchFilter, {
|
|
@@ -18823,7 +18826,7 @@ function SearchTree(e, t) {
|
|
|
18823
18826
|
setSearchFilterHeight: k,
|
|
18824
18827
|
searchError: pe,
|
|
18825
18828
|
searchVisible: H,
|
|
18826
|
-
searchValues:
|
|
18829
|
+
searchValues: _
|
|
18827
18830
|
}), /* @__PURE__ */ jsx(Tree, {
|
|
18828
18831
|
total: Te,
|
|
18829
18832
|
limit: Q,
|
|
@@ -18990,16 +18993,16 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18990
18993
|
domain: u
|
|
18991
18994
|
} = r, d = o && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, m] = useState(!1), [v, x] = useState(!1), [g, I] = useState(), C = useRef(!1), [y, O] = useState(""), b = useRef(), E = useContext(FormContext$1), {
|
|
18992
18995
|
domain: w,
|
|
18993
|
-
getValues:
|
|
18994
|
-
getFields:
|
|
18996
|
+
getValues: S,
|
|
18997
|
+
getFields: T,
|
|
18995
18998
|
getContext: k,
|
|
18996
|
-
setOriginalValue:
|
|
18999
|
+
setOriginalValue: $,
|
|
18997
19000
|
elementHasLostFocus: D
|
|
18998
|
-
} = E || {}, M = useRef([]), [L, q] = useState([]),
|
|
19001
|
+
} = E || {}, M = useRef([]), [L, q] = useState([]), N = t && t[0] || void 0, B = t && t[1] || "";
|
|
18999
19002
|
useEffect(() => {
|
|
19000
19003
|
!Array.isArray(t) && t && Z(t);
|
|
19001
19004
|
}, [t]), useEffect(() => {
|
|
19002
|
-
|
|
19005
|
+
N && B.length === 0 ? Z(N) : N && B.length > 0 ? O(B) : !N && !B && O(b.current || "");
|
|
19003
19006
|
}, [t]);
|
|
19004
19007
|
const U = (A) => {
|
|
19005
19008
|
n == null || n(A), D == null || D();
|
|
@@ -19059,7 +19062,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19059
19062
|
...c
|
|
19060
19063
|
}
|
|
19061
19064
|
});
|
|
19062
|
-
U([A, K[0][1]]), j &&
|
|
19065
|
+
U([A, K[0][1]]), j && $(r.id, [A, K[0][1]]);
|
|
19063
19066
|
} catch (K) {
|
|
19064
19067
|
showDialog$3(K);
|
|
19065
19068
|
} finally {
|
|
@@ -19070,10 +19073,10 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19070
19073
|
u && (M.current = await ConnectionProvider.getHandler().evalDomain({
|
|
19071
19074
|
domain: u,
|
|
19072
19075
|
values: transformPlainMany2Ones({
|
|
19073
|
-
fields:
|
|
19074
|
-
values:
|
|
19076
|
+
fields: T(),
|
|
19077
|
+
values: S()
|
|
19075
19078
|
}),
|
|
19076
|
-
fields:
|
|
19079
|
+
fields: T(),
|
|
19077
19080
|
context: k()
|
|
19078
19081
|
})), w && w.length > 0 && (M.current = M.current.concat(transformDomainForChildWidget({
|
|
19079
19082
|
domain: w,
|
|
@@ -19081,7 +19084,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19081
19084
|
}))), q(M.current);
|
|
19082
19085
|
}
|
|
19083
19086
|
async function H(A) {
|
|
19084
|
-
A.keyCode === 13 ? (A.preventDefault(), A.stopPropagation(), await z()) : A.code === "Backspace" &&
|
|
19087
|
+
A.keyCode === 13 ? (A.preventDefault(), A.stopPropagation(), await z()) : A.code === "Backspace" && N !== void 0 && (A.preventDefault(), A.stopPropagation(), U([void 0, ""]));
|
|
19085
19088
|
}
|
|
19086
19089
|
return /* @__PURE__ */ jsxs(Row, {
|
|
19087
19090
|
gutter: 8,
|
|
@@ -19097,7 +19100,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19097
19100
|
onBlur: z,
|
|
19098
19101
|
onKeyDown: H,
|
|
19099
19102
|
suffix: /* @__PURE__ */ jsx(Many2oneSuffix, {
|
|
19100
|
-
id:
|
|
19103
|
+
id: N,
|
|
19101
19104
|
model: a,
|
|
19102
19105
|
context: {
|
|
19103
19106
|
...k == null ? void 0 : k(),
|
|
@@ -19109,7 +19112,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19109
19112
|
flex: "32px",
|
|
19110
19113
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
19111
19114
|
icon: /* @__PURE__ */ jsx(FolderOpenOutlined, {}),
|
|
19112
|
-
disabled:
|
|
19115
|
+
disabled: N === void 0 || B === "" || y === void 0,
|
|
19113
19116
|
onClick: () => {
|
|
19114
19117
|
m(!0);
|
|
19115
19118
|
},
|
|
@@ -19133,7 +19136,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19133
19136
|
...c
|
|
19134
19137
|
},
|
|
19135
19138
|
visible: f,
|
|
19136
|
-
nameSearch:
|
|
19139
|
+
nameSearch: N ? void 0 : g,
|
|
19137
19140
|
onSelectValues: (A) => {
|
|
19138
19141
|
p(!1), Z(A[0]), C.current = !1, b.current = void 0;
|
|
19139
19142
|
},
|
|
@@ -20295,18 +20298,18 @@ function doAlign(e, t, n, r) {
|
|
|
20295
20298
|
isCompleteFailY(E, h, p) || (d = 1, o = y, a = O, s = b);
|
|
20296
20299
|
}
|
|
20297
20300
|
d && (m = getElFuturePos(h, t, o, a, s), utils.mix(v, m));
|
|
20298
|
-
var w = isFailX(m, h, p),
|
|
20299
|
-
if (w ||
|
|
20300
|
-
var
|
|
20301
|
-
w && (
|
|
20301
|
+
var w = isFailX(m, h, p), S = isFailY(m, h, p);
|
|
20302
|
+
if (w || S) {
|
|
20303
|
+
var T = o;
|
|
20304
|
+
w && (T = flip(o, /[lr]/gi, {
|
|
20302
20305
|
l: "r",
|
|
20303
20306
|
r: "l"
|
|
20304
|
-
})),
|
|
20307
|
+
})), S && (T = flip(o, /[tb]/gi, {
|
|
20305
20308
|
t: "b",
|
|
20306
20309
|
b: "t"
|
|
20307
|
-
})), o =
|
|
20310
|
+
})), o = T, a = n.offset || [0, 0], s = n.targetOffset || [0, 0];
|
|
20308
20311
|
}
|
|
20309
|
-
u.adjustX = c.adjustX && w, u.adjustY = c.adjustY &&
|
|
20312
|
+
u.adjustX = c.adjustX && w, u.adjustY = c.adjustY && S, (u.adjustX || u.adjustY) && (v = adjustForViewport(m, h, p, u));
|
|
20310
20313
|
}
|
|
20311
20314
|
return v.width !== h.width && utils.css(l, "width", utils.width(l) + v.width - h.width), v.height !== h.height && utils.css(l, "height", utils.height(l) + v.height - h.height), utils.offset(l, {
|
|
20312
20315
|
left: v.left,
|
|
@@ -20402,12 +20405,12 @@ var Align = function e(t, n) {
|
|
|
20402
20405
|
var r = t.children, o = t.disabled, a = t.target, s = t.align, c = t.onAlign, l = t.monitorWindowResize, u = t.monitorBufferTime, d = u === void 0 ? 0 : u, f = React__default.useRef({}), p = React__default.useRef(), h = React__default.Children.only(r), m = React__default.useRef({});
|
|
20403
20406
|
m.current.disabled = o, m.current.target = a, m.current.onAlign = c;
|
|
20404
20407
|
var v = useBuffer(function() {
|
|
20405
|
-
var b = m.current, E = b.disabled, w = b.target,
|
|
20408
|
+
var b = m.current, E = b.disabled, w = b.target, S = b.onAlign;
|
|
20406
20409
|
if (!E && w) {
|
|
20407
|
-
var
|
|
20408
|
-
f.current.element =
|
|
20410
|
+
var T = p.current, k, $ = getElement(w), D = getPoint(w);
|
|
20411
|
+
f.current.element = $, f.current.point = D;
|
|
20409
20412
|
var M = document, L = M.activeElement;
|
|
20410
|
-
return
|
|
20413
|
+
return $ && isVisible($) ? k = alignElement(T, $, s) : D && (k = alignPoint(T, D, s)), restoreFocus(L, T), S && k && S(T, k), !0;
|
|
20411
20414
|
}
|
|
20412
20415
|
return !1;
|
|
20413
20416
|
}, d), x = _slicedToArray(v, 2), g = x[0], I = x[1], C = React__default.useRef({
|
|
@@ -20511,11 +20514,11 @@ const useVisibleStatus = function(e, t) {
|
|
|
20511
20514
|
return [s, a];
|
|
20512
20515
|
};
|
|
20513
20516
|
var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
20514
|
-
var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, g = e.onMouseDown, I = e.onTouchStart, C = useRef(), y = useRef(), O = useState(), b = _slicedToArray(O, 2), E = b[0], w = b[1],
|
|
20517
|
+
var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, g = e.onMouseDown, I = e.onTouchStart, C = useRef(), y = useRef(), O = useState(), b = _slicedToArray(O, 2), E = b[0], w = b[1], S = useStretchStyle(l), T = _slicedToArray(S, 2), k = T[0], $ = T[1];
|
|
20515
20518
|
function D() {
|
|
20516
|
-
l &&
|
|
20519
|
+
l && $(p());
|
|
20517
20520
|
}
|
|
20518
|
-
var M = useVisibleStatus(n, D), L = _slicedToArray(M, 2), q = L[0],
|
|
20521
|
+
var M = useVisibleStatus(n, D), L = _slicedToArray(M, 2), q = L[0], N = L[1], B = useRef();
|
|
20519
20522
|
function U() {
|
|
20520
20523
|
return f || p;
|
|
20521
20524
|
}
|
|
@@ -20528,7 +20531,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20528
20531
|
var K = h(j);
|
|
20529
20532
|
w(K), E !== K ? Promise.resolve().then(function() {
|
|
20530
20533
|
G();
|
|
20531
|
-
}) :
|
|
20534
|
+
}) : N(function() {
|
|
20532
20535
|
var X;
|
|
20533
20536
|
(X = B.current) === null || X === void 0 || X.call(B);
|
|
20534
20537
|
}), m == null || m(A, j);
|
|
@@ -20538,7 +20541,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20538
20541
|
["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(A) {
|
|
20539
20542
|
var j = W[A];
|
|
20540
20543
|
W[A] = function(K, X) {
|
|
20541
|
-
return
|
|
20544
|
+
return N(), j == null ? void 0 : j(K, X);
|
|
20542
20545
|
};
|
|
20543
20546
|
});
|
|
20544
20547
|
function Z() {
|
|
@@ -20547,7 +20550,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20547
20550
|
});
|
|
20548
20551
|
}
|
|
20549
20552
|
React.useEffect(function() {
|
|
20550
|
-
!W.motionName && q === "motion" &&
|
|
20553
|
+
!W.motionName && q === "motion" && N();
|
|
20551
20554
|
}, [W.motionName, q]), React.useImperativeHandle(t, function() {
|
|
20552
20555
|
return {
|
|
20553
20556
|
forceAlign: G,
|
|
@@ -20734,12 +20737,12 @@ function generateTrigger(e) {
|
|
|
20734
20737
|
var u = [], d = s.props, f = d.popupPlacement, p = d.builtinPlacements, h = d.prefixCls, m = d.alignPoint, v = d.getPopupClassNameFromAlign;
|
|
20735
20738
|
return f && p && u.push(getAlignPopupClassName(p, h, l, m)), v && u.push(v(l)), u.join(" ");
|
|
20736
20739
|
}, s.getComponent = function() {
|
|
20737
|
-
var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, g = l.mask, I = l.maskAnimation, C = l.maskTransitionName, y = l.maskMotion, O = l.zIndex, b = l.popup, E = l.stretch, w = l.alignPoint,
|
|
20740
|
+
var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, g = l.mask, I = l.maskAnimation, C = l.maskTransitionName, y = l.maskMotion, O = l.zIndex, b = l.popup, E = l.stretch, w = l.alignPoint, S = l.mobile, T = s.state, k = T.popupVisible, $ = T.point, D = s.getPopupAlign(), M = {};
|
|
20738
20741
|
return s.isMouseEnterToShow() && (M.onMouseEnter = s.onPopupMouseEnter), s.isMouseLeaveToHide() && (M.onMouseLeave = s.onPopupMouseLeave), M.onMouseDown = s.onPopupMouseDown, M.onTouchStart = s.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
|
|
20739
20742
|
prefixCls: u,
|
|
20740
20743
|
destroyPopupOnHide: d,
|
|
20741
20744
|
visible: k,
|
|
20742
|
-
point: w &&
|
|
20745
|
+
point: w && $,
|
|
20743
20746
|
className: f,
|
|
20744
20747
|
align: D,
|
|
20745
20748
|
onAlign: p,
|
|
@@ -20757,7 +20760,7 @@ function generateTrigger(e) {
|
|
|
20757
20760
|
maskMotion: y,
|
|
20758
20761
|
ref: s.popupRef,
|
|
20759
20762
|
motion: h,
|
|
20760
|
-
mobile:
|
|
20763
|
+
mobile: S,
|
|
20761
20764
|
children: typeof b == "function" ? b() : b
|
|
20762
20765
|
});
|
|
20763
20766
|
}, s.attachParent = function(l) {
|
|
@@ -21068,9 +21071,9 @@ var autoAdjustOverflow = {
|
|
|
21068
21071
|
children: typeof n == "function" ? n() : n
|
|
21069
21072
|
});
|
|
21070
21073
|
}, Tooltip = function e(t, n) {
|
|
21071
|
-
var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, g = t.animation, I = t.placement, C = I === void 0 ? "right" : I, y = t.align, O = y === void 0 ? {} : y, b = t.destroyTooltipOnHide, E = b === void 0 ? !1 : b, w = t.defaultVisible,
|
|
21074
|
+
var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, g = t.animation, I = t.placement, C = I === void 0 ? "right" : I, y = t.align, O = y === void 0 ? {} : y, b = t.destroyTooltipOnHide, E = b === void 0 ? !1 : b, w = t.defaultVisible, S = t.getTooltipContainer, T = t.overlayInnerStyle, k = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), $ = useRef(null);
|
|
21072
21075
|
useImperativeHandle(n, function() {
|
|
21073
|
-
return
|
|
21076
|
+
return $.current;
|
|
21074
21077
|
});
|
|
21075
21078
|
var D = _objectSpread2$1({}, k);
|
|
21076
21079
|
"visible" in t && (D.popupVisible = t.visible);
|
|
@@ -21085,15 +21088,15 @@ var autoAdjustOverflow = {
|
|
|
21085
21088
|
prefixCls: p,
|
|
21086
21089
|
id: W,
|
|
21087
21090
|
overlay: z,
|
|
21088
|
-
overlayInnerStyle:
|
|
21091
|
+
overlayInnerStyle: T
|
|
21089
21092
|
}, "content")
|
|
21090
21093
|
];
|
|
21091
21094
|
}, L = !1, q = !1;
|
|
21092
21095
|
if (typeof E == "boolean")
|
|
21093
21096
|
L = E;
|
|
21094
21097
|
else if (E && _typeof$1(E) === "object") {
|
|
21095
|
-
var
|
|
21096
|
-
L =
|
|
21098
|
+
var N = E.keepParent;
|
|
21099
|
+
L = N === !0, q = N === !1;
|
|
21097
21100
|
}
|
|
21098
21101
|
return /* @__PURE__ */ jsx(Trigger, {
|
|
21099
21102
|
...Object.assign({
|
|
@@ -21103,9 +21106,9 @@ var autoAdjustOverflow = {
|
|
|
21103
21106
|
action: a,
|
|
21104
21107
|
builtinPlacements: placements$2,
|
|
21105
21108
|
popupPlacement: C,
|
|
21106
|
-
ref:
|
|
21109
|
+
ref: $,
|
|
21107
21110
|
popupAlign: O,
|
|
21108
|
-
getPopupContainer:
|
|
21111
|
+
getPopupContainer: S,
|
|
21109
21112
|
onPopupVisibleChange: m,
|
|
21110
21113
|
afterPopupVisibleChange: v,
|
|
21111
21114
|
popupTransitionName: x,
|
|
@@ -21327,29 +21330,29 @@ function requireTooltip() {
|
|
|
21327
21330
|
}, b), {
|
|
21328
21331
|
cursor: "not-allowed",
|
|
21329
21332
|
width: I.props.block ? "100%" : null
|
|
21330
|
-
}),
|
|
21333
|
+
}), S = (0, a.default)((0, a.default)({}, E), {
|
|
21331
21334
|
pointerEvents: "none"
|
|
21332
|
-
}),
|
|
21333
|
-
style:
|
|
21335
|
+
}), T = (0, d.cloneElement)(I, {
|
|
21336
|
+
style: S,
|
|
21334
21337
|
className: null
|
|
21335
21338
|
});
|
|
21336
21339
|
return /* @__PURE__ */ s.createElement("span", {
|
|
21337
21340
|
style: w,
|
|
21338
21341
|
className: (0, l.default)(I.props.className, "".concat(C, "-disabled-compatible-wrapper"))
|
|
21339
|
-
},
|
|
21342
|
+
}, T);
|
|
21340
21343
|
}
|
|
21341
21344
|
return I;
|
|
21342
21345
|
}
|
|
21343
21346
|
var x = /* @__PURE__ */ s.forwardRef(function(I, C) {
|
|
21344
|
-
var y, O = s.useContext(f.ConfigContext), b = O.getPopupContainer, E = O.getPrefixCls, w = O.direction,
|
|
21347
|
+
var y, O = s.useContext(f.ConfigContext), b = O.getPopupContainer, E = O.getPrefixCls, w = O.direction, S = s.useState(!!I.visible || !!I.defaultVisible), T = (0, o.default)(S, 2), k = T[0], $ = T[1];
|
|
21345
21348
|
s.useEffect(function() {
|
|
21346
|
-
"visible" in I &&
|
|
21349
|
+
"visible" in I && $(I.visible);
|
|
21347
21350
|
}, [I.visible]);
|
|
21348
21351
|
var D = function() {
|
|
21349
21352
|
var ne = I.title, J = I.overlay;
|
|
21350
21353
|
return !ne && !J && ne !== 0;
|
|
21351
21354
|
}, M = function(ne) {
|
|
21352
|
-
"visible" in I ||
|
|
21355
|
+
"visible" in I || $(D() ? !1 : ne), I.onVisibleChange && !D() && I.onVisibleChange(ne);
|
|
21353
21356
|
}, L = function() {
|
|
21354
21357
|
var ne = I.builtinPlacements, J = I.arrowPointAtCenter, ee = I.autoAdjustOverflow;
|
|
21355
21358
|
return ne || (0, u.default)({
|
|
@@ -21367,13 +21370,13 @@ function requireTooltip() {
|
|
|
21367
21370
|
};
|
|
21368
21371
|
oe.indexOf("top") >= 0 || oe.indexOf("Bottom") >= 0 ? ae.top = "".concat(le.height - J.offset[1], "px") : (oe.indexOf("Top") >= 0 || oe.indexOf("bottom") >= 0) && (ae.top = "".concat(-J.offset[1], "px")), oe.indexOf("left") >= 0 || oe.indexOf("Right") >= 0 ? ae.left = "".concat(le.width - J.offset[0], "px") : (oe.indexOf("right") >= 0 || oe.indexOf("Left") >= 0) && (ae.left = "".concat(-J.offset[0], "px")), ne.style.transformOrigin = "".concat(ae.left, " ").concat(ae.top);
|
|
21369
21372
|
}
|
|
21370
|
-
},
|
|
21373
|
+
}, N = function() {
|
|
21371
21374
|
var ne = I.title, J = I.overlay;
|
|
21372
21375
|
return ne === 0 ? ne : J || ne || "";
|
|
21373
21376
|
}, B = I.prefixCls, U = I.openClassName, G = I.getPopupContainer, z = I.getTooltipContainer, W = I.overlayClassName, Z = I.color, V = I.overlayInnerStyle, H = I.children, P = E("tooltip", B), A = k;
|
|
21374
21377
|
!("visible" in I) && D() && (A = !1);
|
|
21375
|
-
var j = v((0, d.isValidElement)(H) ? H : /* @__PURE__ */ s.createElement("span", null, H), P), K = j.props, X = (0, l.default)(K.className, (0, r.default)({}, U || "".concat(P, "-open"), !0)), F = (0, l.default)(W, (y = {}, (0, r.default)(y, "".concat(P, "-rtl"), w === "rtl"), (0, r.default)(y, "".concat(P, "-").concat(Z), Z && m.test(Z)), y)),
|
|
21376
|
-
return Z && !m.test(Z) && (
|
|
21378
|
+
var j = v((0, d.isValidElement)(H) ? H : /* @__PURE__ */ s.createElement("span", null, H), P), K = j.props, X = (0, l.default)(K.className, (0, r.default)({}, U || "".concat(P, "-open"), !0)), F = (0, l.default)(W, (y = {}, (0, r.default)(y, "".concat(P, "-rtl"), w === "rtl"), (0, r.default)(y, "".concat(P, "-").concat(Z), Z && m.test(Z)), y)), _ = V, Y;
|
|
21379
|
+
return Z && !m.test(Z) && (_ = (0, a.default)((0, a.default)({}, V), {
|
|
21377
21380
|
background: Z
|
|
21378
21381
|
}), Y = {
|
|
21379
21382
|
background: Z
|
|
@@ -21383,11 +21386,11 @@ function requireTooltip() {
|
|
|
21383
21386
|
getTooltipContainer: G || z || b,
|
|
21384
21387
|
ref: C,
|
|
21385
21388
|
builtinPlacements: L(),
|
|
21386
|
-
overlay:
|
|
21389
|
+
overlay: N(),
|
|
21387
21390
|
visible: A,
|
|
21388
21391
|
onVisibleChange: M,
|
|
21389
21392
|
onPopupAlign: q,
|
|
21390
|
-
overlayInnerStyle:
|
|
21393
|
+
overlayInnerStyle: _,
|
|
21391
21394
|
arrowContent: /* @__PURE__ */ s.createElement("span", {
|
|
21392
21395
|
className: "".concat(P, "-arrow-content"),
|
|
21393
21396
|
style: Y
|
|
@@ -21452,14 +21455,14 @@ function requireTypography() {
|
|
|
21452
21455
|
x.indexOf(I[C]) < 0 && Object.prototype.propertyIsEnumerable.call(v, I[C]) && (g[I[C]] = v[I[C]]);
|
|
21453
21456
|
return g;
|
|
21454
21457
|
}, f = function(x, g) {
|
|
21455
|
-
var I = x.prefixCls, C = x.component, y = C === void 0 ? "article" : C, O = x.className, b = x["aria-label"], E = x.setContentRef, w = x.children,
|
|
21456
|
-
return E && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."),
|
|
21457
|
-
var
|
|
21458
|
+
var I = x.prefixCls, C = x.component, y = C === void 0 ? "article" : C, O = x.className, b = x["aria-label"], E = x.setContentRef, w = x.children, S = d(x, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), T = g;
|
|
21459
|
+
return E && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), T = (0, c.composeRef)(g, E)), /* @__PURE__ */ a.createElement(l.ConfigConsumer, null, function(k) {
|
|
21460
|
+
var $ = k.getPrefixCls, D = k.direction, M = y, L = $("typography", I), q = (0, s.default)(L, (0, o.default)({}, "".concat(L, "-rtl"), D === "rtl"), O);
|
|
21458
21461
|
return /* @__PURE__ */ a.createElement(M, (0, r.default)({
|
|
21459
21462
|
className: q,
|
|
21460
21463
|
"aria-label": b,
|
|
21461
|
-
ref:
|
|
21462
|
-
},
|
|
21464
|
+
ref: T
|
|
21465
|
+
}, S), w);
|
|
21463
21466
|
});
|
|
21464
21467
|
}, p = /* @__PURE__ */ a.forwardRef(f);
|
|
21465
21468
|
p.displayName = "Typography";
|
|
@@ -21516,12 +21519,12 @@ function requireEditable() {
|
|
|
21516
21519
|
value: !0
|
|
21517
21520
|
}), e.default = void 0;
|
|
21518
21521
|
var r = n(requireDefineProperty()), o = n(requireSlicedToArray()), a = t(React__default), s = n(requireClassnames()), c = n(requireKeyCode()), l = n(requireEnterOutlined()), u = n(TextArea$3), d = function(h) {
|
|
21519
|
-
var m = h.prefixCls, v = h["aria-label"], x = h.className, g = h.style, I = h.direction, C = h.maxLength, y = h.autoSize, O = y === void 0 ? !0 : y, b = h.value, E = h.onSave, w = h.onCancel,
|
|
21522
|
+
var m = h.prefixCls, v = h["aria-label"], x = h.className, g = h.style, I = h.direction, C = h.maxLength, y = h.autoSize, O = y === void 0 ? !0 : y, b = h.value, E = h.onSave, w = h.onCancel, S = a.useRef(), T = a.useRef(!1), k = a.useRef(), $ = a.useState(b), D = (0, o.default)($, 2), M = D[0], L = D[1];
|
|
21520
21523
|
a.useEffect(function() {
|
|
21521
21524
|
L(b);
|
|
21522
21525
|
}, [b]), a.useEffect(function() {
|
|
21523
|
-
if (
|
|
21524
|
-
var V =
|
|
21526
|
+
if (S.current && S.current.resizableTextArea) {
|
|
21527
|
+
var V = S.current.resizableTextArea.textArea;
|
|
21525
21528
|
V.focus();
|
|
21526
21529
|
var H = V.value.length;
|
|
21527
21530
|
V.setSelectionRange(H, H);
|
|
@@ -21530,18 +21533,18 @@ function requireEditable() {
|
|
|
21530
21533
|
var q = function(H) {
|
|
21531
21534
|
var P = H.target;
|
|
21532
21535
|
L(P.value.replace(/[\n\r]/g, ""));
|
|
21533
|
-
},
|
|
21534
|
-
|
|
21536
|
+
}, N = function() {
|
|
21537
|
+
T.current = !0;
|
|
21535
21538
|
}, B = function() {
|
|
21536
|
-
|
|
21539
|
+
T.current = !1;
|
|
21537
21540
|
}, U = function(H) {
|
|
21538
21541
|
var P = H.keyCode;
|
|
21539
|
-
|
|
21542
|
+
T.current || (k.current = P);
|
|
21540
21543
|
}, G = function() {
|
|
21541
21544
|
E(M.trim());
|
|
21542
21545
|
}, z = function(H) {
|
|
21543
21546
|
var P = H.keyCode, A = H.ctrlKey, j = H.altKey, K = H.metaKey, X = H.shiftKey;
|
|
21544
|
-
k.current === P && !
|
|
21547
|
+
k.current === P && !T.current && !A && !j && !K && !X && (P === c.default.ENTER ? G() : P === c.default.ESC && w());
|
|
21545
21548
|
}, W = function() {
|
|
21546
21549
|
G();
|
|
21547
21550
|
}, Z = (0, s.default)(m, "".concat(m, "-edit-content"), (0, r.default)({}, "".concat(m, "-rtl"), I === "rtl"), x);
|
|
@@ -21549,13 +21552,13 @@ function requireEditable() {
|
|
|
21549
21552
|
className: Z,
|
|
21550
21553
|
style: g
|
|
21551
21554
|
}, /* @__PURE__ */ a.createElement(u.default, {
|
|
21552
|
-
ref:
|
|
21555
|
+
ref: S,
|
|
21553
21556
|
maxLength: C,
|
|
21554
21557
|
value: M,
|
|
21555
21558
|
onChange: q,
|
|
21556
21559
|
onKeyDown: U,
|
|
21557
21560
|
onKeyUp: z,
|
|
21558
|
-
onCompositionStart:
|
|
21561
|
+
onCompositionStart: N,
|
|
21559
21562
|
onCompositionEnd: B,
|
|
21560
21563
|
onBlur: W,
|
|
21561
21564
|
"aria-label": v,
|
|
@@ -21601,14 +21604,14 @@ function requireUtil() {
|
|
|
21601
21604
|
}
|
|
21602
21605
|
var m = function(x, g, I, C, y) {
|
|
21603
21606
|
u || (u = document.createElement("div"), u.setAttribute("aria-hidden", "true"), document.body.appendChild(u));
|
|
21604
|
-
var O = g.rows, b = g.suffix, E = b === void 0 ? "" : b, w = window.getComputedStyle(x),
|
|
21605
|
-
u.setAttribute("style",
|
|
21606
|
-
var
|
|
21607
|
+
var O = g.rows, b = g.suffix, E = b === void 0 ? "" : b, w = window.getComputedStyle(x), S = p(w), T = f(w.lineHeight), k = Math.round(T * (O + 1) + f(w.paddingTop) + f(w.paddingBottom));
|
|
21608
|
+
u.setAttribute("style", S), u.style.position = "fixed", u.style.left = "0", u.style.height = "auto", u.style.minHeight = "auto", u.style.maxHeight = "auto", u.style.top = "-999999px", u.style.zIndex = "-1000", u.style.textOverflow = "clip", u.style.whiteSpace = "normal", u.style.webkitLineClamp = "none";
|
|
21609
|
+
var $ = h((0, a.default)(I));
|
|
21607
21610
|
(0, r.render)(/* @__PURE__ */ o.createElement("div", {
|
|
21608
21611
|
style: d
|
|
21609
21612
|
}, /* @__PURE__ */ o.createElement("span", {
|
|
21610
21613
|
style: d
|
|
21611
|
-
},
|
|
21614
|
+
}, $, E), /* @__PURE__ */ o.createElement("span", {
|
|
21612
21615
|
style: d
|
|
21613
21616
|
}, C)), u);
|
|
21614
21617
|
function D() {
|
|
@@ -21627,14 +21630,14 @@ function requireUtil() {
|
|
|
21627
21630
|
(0, r.unmountComponentAtNode)(u);
|
|
21628
21631
|
var q = [];
|
|
21629
21632
|
u.innerHTML = "";
|
|
21630
|
-
var
|
|
21631
|
-
u.appendChild(
|
|
21633
|
+
var N = document.createElement("span");
|
|
21634
|
+
u.appendChild(N);
|
|
21632
21635
|
var B = document.createTextNode(y + E);
|
|
21633
|
-
|
|
21636
|
+
N.appendChild(B), L.forEach(function(W) {
|
|
21634
21637
|
u.appendChild(W);
|
|
21635
21638
|
});
|
|
21636
21639
|
function U(W) {
|
|
21637
|
-
|
|
21640
|
+
N.insertBefore(W, B);
|
|
21638
21641
|
}
|
|
21639
21642
|
function G(W, Z) {
|
|
21640
21643
|
var V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, H = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Z.length, P = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, A = Math.floor((V + H) / 2), j = Z.slice(0, A);
|
|
@@ -21657,8 +21660,8 @@ function requireUtil() {
|
|
|
21657
21660
|
if (V === s)
|
|
21658
21661
|
return U(W), D() ? {
|
|
21659
21662
|
finished: !1,
|
|
21660
|
-
reactNode:
|
|
21661
|
-
} : (
|
|
21663
|
+
reactNode: $[Z]
|
|
21664
|
+
} : (N.removeChild(W), {
|
|
21662
21665
|
finished: !0,
|
|
21663
21666
|
reactNode: null
|
|
21664
21667
|
});
|
|
@@ -21690,7 +21693,7 @@ function requireBase() {
|
|
|
21690
21693
|
Object.defineProperty(e, "__esModule", {
|
|
21691
21694
|
value: !0
|
|
21692
21695
|
}), e.default = void 0;
|
|
21693
|
-
var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), p = n(requireClassnames()), h = n(requireToArray()), m = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), I = n(requireCopyOutlined()), C = n(require$$18), y = requireConfigProvider(), O = n(requireLocaleReceiver()), b = n(requireDevWarning()), E = n(requireTransButton()), w = n(requireRaf()),
|
|
21696
|
+
var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), p = n(requireClassnames()), h = n(requireToArray()), m = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), I = n(requireCopyOutlined()), C = n(require$$18), y = requireConfigProvider(), O = n(requireLocaleReceiver()), b = n(requireDevWarning()), E = n(requireTransButton()), w = n(requireRaf()), S = requireStyleChecker(), T = n(requireTooltip()), k = n(requireTypography()), $ = n(requireEditable()), D = n(requireUtil()), M = function(z, W) {
|
|
21694
21697
|
var Z = {};
|
|
21695
21698
|
for (var V in z)
|
|
21696
21699
|
Object.prototype.hasOwnProperty.call(z, V) && W.indexOf(V) < 0 && (Z[V] = z[V]);
|
|
@@ -21698,11 +21701,11 @@ function requireBase() {
|
|
|
21698
21701
|
for (var H = 0, V = Object.getOwnPropertySymbols(z); H < V.length; H++)
|
|
21699
21702
|
W.indexOf(V[H]) < 0 && Object.prototype.propertyIsEnumerable.call(z, V[H]) && (Z[V[H]] = z[V[H]]);
|
|
21700
21703
|
return Z;
|
|
21701
|
-
}, L = (0,
|
|
21702
|
-
function
|
|
21704
|
+
}, L = (0, S.isStyleSupport)("webkitLineClamp"), q = (0, S.isStyleSupport)("textOverflow");
|
|
21705
|
+
function N(z, W) {
|
|
21703
21706
|
var Z = z.mark, V = z.code, H = z.underline, P = z.delete, A = z.strong, j = z.keyboard, K = W;
|
|
21704
|
-
function X(F,
|
|
21705
|
-
!F || (K = /* @__PURE__ */ f.createElement(
|
|
21707
|
+
function X(F, _) {
|
|
21708
|
+
!F || (K = /* @__PURE__ */ f.createElement(_, {}, K));
|
|
21706
21709
|
}
|
|
21707
21710
|
return X(A, "strong"), X(H, "u"), X(P, "del"), X(V, "code"), X(Z, "mark"), X(j, "kbd"), K;
|
|
21708
21711
|
}
|
|
@@ -21801,13 +21804,13 @@ function requireBase() {
|
|
|
21801
21804
|
}, {
|
|
21802
21805
|
key: "canUseCSSEllipsis",
|
|
21803
21806
|
value: function() {
|
|
21804
|
-
var H = this.state.clientRendered, P = this.props, A = P.editable, j = P.copyable, K = this.getEllipsis(), X = K.rows, F = K.expandable,
|
|
21805
|
-
return
|
|
21807
|
+
var H = this.state.clientRendered, P = this.props, A = P.editable, j = P.copyable, K = this.getEllipsis(), X = K.rows, F = K.expandable, _ = K.suffix, Y = K.onEllipsis, Q = K.tooltip;
|
|
21808
|
+
return _ || Q || A || j || F || !H || Y ? !1 : X === 1 ? q : L;
|
|
21806
21809
|
}
|
|
21807
21810
|
}, {
|
|
21808
21811
|
key: "syncEllipsis",
|
|
21809
21812
|
value: function() {
|
|
21810
|
-
var H = this.state, P = H.ellipsisText, A = H.isEllipsis, j = H.expanded, K = this.getEllipsis(), X = K.rows, F = K.suffix,
|
|
21813
|
+
var H = this.state, P = H.ellipsisText, A = H.isEllipsis, j = H.expanded, K = this.getEllipsis(), X = K.rows, F = K.suffix, _ = K.onEllipsis, Y = this.props.children;
|
|
21811
21814
|
if (!(!X || X < 0 || !this.contentRef.current || j) && !this.canUseCSSEllipsis()) {
|
|
21812
21815
|
(0, b.default)((0, h.default)(Y).every(function(oe) {
|
|
21813
21816
|
return typeof oe == "string";
|
|
@@ -21820,7 +21823,7 @@ function requireBase() {
|
|
|
21820
21823
|
ellipsisText: J,
|
|
21821
21824
|
ellipsisContent: ne,
|
|
21822
21825
|
isEllipsis: ee
|
|
21823
|
-
}), A !== ee &&
|
|
21826
|
+
}), A !== ee && _ && _(ee));
|
|
21824
21827
|
}
|
|
21825
21828
|
}
|
|
21826
21829
|
}, {
|
|
@@ -21829,13 +21832,13 @@ function requireBase() {
|
|
|
21829
21832
|
var P = this.getEllipsis(), A = P.expandable, j = P.symbol, K = this.state, X = K.expanded, F = K.isEllipsis;
|
|
21830
21833
|
if (!A || !H && (X || !F))
|
|
21831
21834
|
return null;
|
|
21832
|
-
var
|
|
21833
|
-
return j ?
|
|
21835
|
+
var _;
|
|
21836
|
+
return j ? _ = j : _ = this.expandStr, /* @__PURE__ */ f.createElement("a", {
|
|
21834
21837
|
key: "expand",
|
|
21835
21838
|
className: "".concat(this.getPrefixCls(), "-expand"),
|
|
21836
21839
|
onClick: this.onExpandClick,
|
|
21837
21840
|
"aria-label": this.expandStr
|
|
21838
|
-
},
|
|
21841
|
+
}, _);
|
|
21839
21842
|
}
|
|
21840
21843
|
}, {
|
|
21841
21844
|
key: "renderEdit",
|
|
@@ -21843,7 +21846,7 @@ function requireBase() {
|
|
|
21843
21846
|
var H = this.props.editable;
|
|
21844
21847
|
if (!!H) {
|
|
21845
21848
|
var P = H.icon, A = H.tooltip, j = (0, h.default)(A)[0] || this.editStr, K = typeof j == "string" ? j : "";
|
|
21846
|
-
return /* @__PURE__ */ f.createElement(
|
|
21849
|
+
return /* @__PURE__ */ f.createElement(T.default, {
|
|
21847
21850
|
key: "edit",
|
|
21848
21851
|
title: A === !1 ? "" : j
|
|
21849
21852
|
}, /* @__PURE__ */ f.createElement(E.default, {
|
|
@@ -21863,22 +21866,22 @@ function requireBase() {
|
|
|
21863
21866
|
if (!!P) {
|
|
21864
21867
|
var A = this.getPrefixCls(), j = P.tooltips, K = (0, h.default)(j);
|
|
21865
21868
|
K.length === 0 && (K = [this.copyStr, this.copiedStr]);
|
|
21866
|
-
var X = H ? K[1] : K[0], F = typeof X == "string" ? X : "",
|
|
21867
|
-
return /* @__PURE__ */ f.createElement(
|
|
21869
|
+
var X = H ? K[1] : K[0], F = typeof X == "string" ? X : "", _ = (0, h.default)(P.icon);
|
|
21870
|
+
return /* @__PURE__ */ f.createElement(T.default, {
|
|
21868
21871
|
key: "copy",
|
|
21869
21872
|
title: j === !1 ? "" : X
|
|
21870
21873
|
}, /* @__PURE__ */ f.createElement(E.default, {
|
|
21871
21874
|
className: (0, p.default)("".concat(A, "-copy"), H && "".concat(A, "-copy-success")),
|
|
21872
21875
|
onClick: this.onCopyClick,
|
|
21873
21876
|
"aria-label": F
|
|
21874
|
-
}, H ?
|
|
21877
|
+
}, H ? _[1] || /* @__PURE__ */ f.createElement(g.default, null) : _[0] || /* @__PURE__ */ f.createElement(I.default, null)));
|
|
21875
21878
|
}
|
|
21876
21879
|
}
|
|
21877
21880
|
}, {
|
|
21878
21881
|
key: "renderEditInput",
|
|
21879
21882
|
value: function() {
|
|
21880
|
-
var H = this.props, P = H.children, A = H.className, j = H.style, K = this.context.direction, X = this.getEditable(), F = X.maxLength,
|
|
21881
|
-
return /* @__PURE__ */ f.createElement(
|
|
21883
|
+
var H = this.props, P = H.children, A = H.className, j = H.style, K = this.context.direction, X = this.getEditable(), F = X.maxLength, _ = X.autoSize;
|
|
21884
|
+
return /* @__PURE__ */ f.createElement($.default, {
|
|
21882
21885
|
value: typeof P == "string" ? P : "",
|
|
21883
21886
|
onSave: this.onEditChange,
|
|
21884
21887
|
onCancel: this.onEditCancel,
|
|
@@ -21887,7 +21890,7 @@ function requireBase() {
|
|
|
21887
21890
|
style: j,
|
|
21888
21891
|
direction: K,
|
|
21889
21892
|
maxLength: F,
|
|
21890
|
-
autoSize:
|
|
21893
|
+
autoSize: _
|
|
21891
21894
|
});
|
|
21892
21895
|
}
|
|
21893
21896
|
}, {
|
|
@@ -21900,18 +21903,18 @@ function requireBase() {
|
|
|
21900
21903
|
}, {
|
|
21901
21904
|
key: "renderContent",
|
|
21902
21905
|
value: function() {
|
|
21903
|
-
var H = this, P = this.state, A = P.ellipsisContent, j = P.isEllipsis, K = P.expanded, X = this.props, F = X.component,
|
|
21906
|
+
var H = this, P = this.state, A = P.ellipsisContent, j = P.isEllipsis, K = P.expanded, X = this.props, F = X.component, _ = X.children, Y = X.className, Q = X.type, ne = X.disabled, J = X.style, ee = M(X, ["component", "children", "className", "type", "disabled", "style"]), oe = this.context.direction, le = this.getEllipsis(), ae = le.rows, pe = le.suffix, me = le.tooltip, ie = this.getPrefixCls(), de = (0, v.default)(ee, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, o.default)(y.configConsumerProps))), Ie = this.canUseCSSEllipsis(), he = ae === 1 && Ie, Ce = ae && ae > 1 && Ie, ve = _;
|
|
21904
21907
|
if (ae && j && !K && !Ie) {
|
|
21905
21908
|
var Te = ee.title, be = Te || "";
|
|
21906
|
-
!Te && (typeof
|
|
21909
|
+
!Te && (typeof _ == "string" || typeof _ == "number") && (be = String(_)), be = be == null ? void 0 : be.slice(String(A || "").length), ve = /* @__PURE__ */ f.createElement(f.Fragment, null, A, /* @__PURE__ */ f.createElement("span", {
|
|
21907
21910
|
title: be,
|
|
21908
21911
|
"aria-hidden": "true"
|
|
21909
|
-
}, B), pe), me && (ve = /* @__PURE__ */ f.createElement(
|
|
21910
|
-
title: me === !0 ?
|
|
21912
|
+
}, B), pe), me && (ve = /* @__PURE__ */ f.createElement(T.default, {
|
|
21913
|
+
title: me === !0 ? _ : me
|
|
21911
21914
|
}, /* @__PURE__ */ f.createElement("span", null, ve)));
|
|
21912
21915
|
} else
|
|
21913
|
-
ve = /* @__PURE__ */ f.createElement(f.Fragment, null,
|
|
21914
|
-
return ve =
|
|
21916
|
+
ve = /* @__PURE__ */ f.createElement(f.Fragment, null, _, pe);
|
|
21917
|
+
return ve = N(this.props, ve), /* @__PURE__ */ f.createElement(O.default, {
|
|
21915
21918
|
componentName: "Text"
|
|
21916
21919
|
}, function(se) {
|
|
21917
21920
|
var ce, ge = se.edit, ye = se.copy, Oe = se.copied, Se = se.expand;
|
|
@@ -21986,21 +21989,21 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21986
21989
|
field: u,
|
|
21987
21990
|
operator: d,
|
|
21988
21991
|
manualIds: f
|
|
21989
|
-
} = e, [p, h] = useState(!1), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(), [y, O] = useState(0), [b, E] = useState(0), [w,
|
|
21992
|
+
} = e, [p, h] = useState(!1), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(), [y, O] = useState(0), [b, E] = useState(0), [w, S] = useState(), [T, k] = useState(), [$, D] = useState();
|
|
21990
21993
|
useEffect(() => {
|
|
21991
21994
|
q();
|
|
21992
21995
|
}, [t, o]);
|
|
21993
21996
|
async function M({
|
|
21994
|
-
domain:
|
|
21997
|
+
domain: N,
|
|
21995
21998
|
isTotal: B
|
|
21996
21999
|
}) {
|
|
21997
22000
|
if (B)
|
|
21998
22001
|
return await L({
|
|
21999
|
-
domain:
|
|
22002
|
+
domain: N
|
|
22000
22003
|
});
|
|
22001
22004
|
if (u && d) {
|
|
22002
22005
|
const U = f || await ConnectionProvider.getHandler().searchAllIds({
|
|
22003
|
-
params:
|
|
22006
|
+
params: N,
|
|
22004
22007
|
model: t,
|
|
22005
22008
|
context: r
|
|
22006
22009
|
}), G = await ConnectionProvider.getHandler().readObjects({
|
|
@@ -22016,16 +22019,16 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22016
22019
|
} else
|
|
22017
22020
|
return f ? f.length : await ConnectionProvider.getHandler().searchCount({
|
|
22018
22021
|
model: t,
|
|
22019
|
-
params:
|
|
22022
|
+
params: N,
|
|
22020
22023
|
context: r
|
|
22021
22024
|
});
|
|
22022
22025
|
}
|
|
22023
22026
|
async function L({
|
|
22024
|
-
domain:
|
|
22027
|
+
domain: N
|
|
22025
22028
|
}) {
|
|
22026
22029
|
if (u && d) {
|
|
22027
22030
|
const B = await ConnectionProvider.getHandler().searchAllIds({
|
|
22028
|
-
params:
|
|
22031
|
+
params: N,
|
|
22029
22032
|
model: t,
|
|
22030
22033
|
context: r
|
|
22031
22034
|
}), U = await ConnectionProvider.getHandler().readObjects({
|
|
@@ -22041,13 +22044,13 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22041
22044
|
} else
|
|
22042
22045
|
return await ConnectionProvider.getHandler().searchCount({
|
|
22043
22046
|
model: t,
|
|
22044
|
-
params:
|
|
22047
|
+
params: N,
|
|
22045
22048
|
context: r
|
|
22046
22049
|
});
|
|
22047
22050
|
}
|
|
22048
22051
|
async function q() {
|
|
22049
22052
|
h(!0);
|
|
22050
|
-
let
|
|
22053
|
+
let N, B;
|
|
22051
22054
|
try {
|
|
22052
22055
|
const U = await M({
|
|
22053
22056
|
domain: n,
|
|
@@ -22059,12 +22062,12 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22059
22062
|
values: {},
|
|
22060
22063
|
context: r
|
|
22061
22064
|
});
|
|
22062
|
-
|
|
22065
|
+
N = await M({
|
|
22063
22066
|
domain: G,
|
|
22064
22067
|
isTotal: !0
|
|
22065
|
-
}), C(
|
|
22068
|
+
}), C(N);
|
|
22066
22069
|
}
|
|
22067
|
-
if (
|
|
22070
|
+
if (N ? (B = Math.round(U / N * 100 * 100) / 100, g(B)) : g(0), o) {
|
|
22068
22071
|
const G = await ConnectionProvider.getHandler().parseCondition({
|
|
22069
22072
|
condition: o,
|
|
22070
22073
|
values: {
|
|
@@ -22073,7 +22076,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22073
22076
|
},
|
|
22074
22077
|
context: r
|
|
22075
22078
|
});
|
|
22076
|
-
|
|
22079
|
+
S(G);
|
|
22077
22080
|
}
|
|
22078
22081
|
if (c)
|
|
22079
22082
|
if (c.indexOf(":") !== -1) {
|
|
@@ -22093,9 +22096,9 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22093
22096
|
}
|
|
22094
22097
|
h(!1);
|
|
22095
22098
|
}
|
|
22096
|
-
return
|
|
22099
|
+
return $ ? /* @__PURE__ */ jsx(Alert, {
|
|
22097
22100
|
className: "mt-10",
|
|
22098
|
-
message:
|
|
22101
|
+
message: $,
|
|
22099
22102
|
type: "error",
|
|
22100
22103
|
banner: !0
|
|
22101
22104
|
}) : p ? /* @__PURE__ */ jsx("div", {
|
|
@@ -22109,30 +22112,30 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22109
22112
|
})
|
|
22110
22113
|
}) : /* @__PURE__ */ jsx(Measure, {
|
|
22111
22114
|
bounds: !0,
|
|
22112
|
-
onResize: (
|
|
22115
|
+
onResize: (N) => {
|
|
22113
22116
|
var B, U;
|
|
22114
|
-
O((B =
|
|
22117
|
+
O((B = N.bounds) == null ? void 0 : B.height), E((U = N.bounds) == null ? void 0 : U.width);
|
|
22115
22118
|
},
|
|
22116
22119
|
children: ({
|
|
22117
|
-
measureRef:
|
|
22120
|
+
measureRef: N
|
|
22118
22121
|
}) => s ? /* @__PURE__ */ jsx(PercentageIndicator, {
|
|
22119
22122
|
value: m,
|
|
22120
22123
|
total: I,
|
|
22121
22124
|
percent: x,
|
|
22122
|
-
measureRef:
|
|
22125
|
+
measureRef: N,
|
|
22123
22126
|
height: y,
|
|
22124
22127
|
width: b,
|
|
22125
22128
|
color: w,
|
|
22126
|
-
icon:
|
|
22129
|
+
icon: T,
|
|
22127
22130
|
suffix: l
|
|
22128
22131
|
}) : /* @__PURE__ */ jsx(CommonIndicator, {
|
|
22129
22132
|
value: m,
|
|
22130
22133
|
total: I,
|
|
22131
|
-
measureRef:
|
|
22134
|
+
measureRef: N,
|
|
22132
22135
|
height: y,
|
|
22133
22136
|
width: b,
|
|
22134
22137
|
color: w,
|
|
22135
|
-
icon:
|
|
22138
|
+
icon: T,
|
|
22136
22139
|
suffix: l
|
|
22137
22140
|
})
|
|
22138
22141
|
});
|
|
@@ -22733,7 +22736,7 @@ const One2manyInput = (e) => {
|
|
|
22733
22736
|
} = d || {}, {
|
|
22734
22737
|
lang: x,
|
|
22735
22738
|
t: g
|
|
22736
|
-
} = useContext(LocaleContext), I = useRef(), [C, y] = useState(!1), [O, b] = useState(!1), [E, w] = useState(), [
|
|
22739
|
+
} = useContext(LocaleContext), I = useRef(), [C, y] = useState(!1), [O, b] = useState(!1), [E, w] = useState(), [S, T] = useState(!1), [k, $] = useState(!1), [D, M] = useState(), [L, q] = useState([]), [N, B] = useState(!1), U = useRef([]), [G, z] = useState(), W = useRef(), {
|
|
22737
22740
|
readOnly: Z,
|
|
22738
22741
|
relation: V,
|
|
22739
22742
|
context: H,
|
|
@@ -22753,8 +22756,8 @@ const One2manyInput = (e) => {
|
|
|
22753
22756
|
items: filterDuplicateItems(se)
|
|
22754
22757
|
});
|
|
22755
22758
|
}, F = async () => {
|
|
22756
|
-
await
|
|
22757
|
-
},
|
|
22759
|
+
await _(), l > K.length - 1 && l !== 0 && u(0);
|
|
22760
|
+
}, _ = async () => {
|
|
22758
22761
|
var se;
|
|
22759
22762
|
b(!0), y(!1), w(void 0);
|
|
22760
22763
|
try {
|
|
@@ -22863,14 +22866,14 @@ const One2manyInput = (e) => {
|
|
|
22863
22866
|
}), s === "form" ? oe(() => {
|
|
22864
22867
|
B(!0), M({
|
|
22865
22868
|
defaultValues: ce
|
|
22866
|
-
}),
|
|
22869
|
+
}), T(!0);
|
|
22867
22870
|
}) : (B(!0), M({
|
|
22868
22871
|
defaultValues: ce
|
|
22869
|
-
}),
|
|
22872
|
+
}), T(!0));
|
|
22870
22873
|
}, pe = async () => {
|
|
22871
22874
|
s === "form" ? oe(() => {
|
|
22872
|
-
|
|
22873
|
-
}) :
|
|
22875
|
+
$(!0);
|
|
22876
|
+
}) : $(!0);
|
|
22874
22877
|
}, me = async () => {
|
|
22875
22878
|
b(!0), y(!1), w(void 0);
|
|
22876
22879
|
try {
|
|
@@ -22929,12 +22932,12 @@ const One2manyInput = (e) => {
|
|
|
22929
22932
|
}
|
|
22930
22933
|
});
|
|
22931
22934
|
}
|
|
22932
|
-
X(ye),
|
|
22935
|
+
X(ye), N || T(!1);
|
|
22933
22936
|
}, Ie = (se) => {
|
|
22934
22937
|
const {
|
|
22935
22938
|
id: ce
|
|
22936
22939
|
} = se;
|
|
22937
|
-
M(a.find((ge) => ge.id === ce)), B(!1),
|
|
22940
|
+
M(a.find((ge) => ge.id === ce)), B(!1), T(!0);
|
|
22938
22941
|
}, he = async (se) => {
|
|
22939
22942
|
b(!0);
|
|
22940
22943
|
let ce = a;
|
|
@@ -23058,7 +23061,7 @@ const One2manyInput = (e) => {
|
|
|
23058
23061
|
type: "error",
|
|
23059
23062
|
banner: !0
|
|
23060
23063
|
});
|
|
23061
|
-
const Te =
|
|
23064
|
+
const Te = N;
|
|
23062
23065
|
return O ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
23063
23066
|
children: [/* @__PURE__ */ jsx(One2manyTopBar, {
|
|
23064
23067
|
mode: s,
|
|
@@ -23084,14 +23087,14 @@ const One2manyInput = (e) => {
|
|
|
23084
23087
|
submitMode: "values",
|
|
23085
23088
|
values: D == null ? void 0 : D.values,
|
|
23086
23089
|
defaultValues: D == null ? void 0 : D.defaultValues,
|
|
23087
|
-
visible:
|
|
23090
|
+
visible: S,
|
|
23088
23091
|
onSubmitSucceed: de,
|
|
23089
23092
|
parentContext: {
|
|
23090
23093
|
...m == null ? void 0 : m(),
|
|
23091
23094
|
...H
|
|
23092
23095
|
},
|
|
23093
23096
|
onCancel: () => {
|
|
23094
|
-
B(!1),
|
|
23097
|
+
B(!1), T(!1);
|
|
23095
23098
|
},
|
|
23096
23099
|
readOnly: Z,
|
|
23097
23100
|
mustClearAfterSave: Te
|
|
@@ -23104,10 +23107,10 @@ const One2manyInput = (e) => {
|
|
|
23104
23107
|
},
|
|
23105
23108
|
visible: k,
|
|
23106
23109
|
onSelectValues: async (se) => {
|
|
23107
|
-
|
|
23110
|
+
$(!1), he(se);
|
|
23108
23111
|
},
|
|
23109
23112
|
onCloseModal: () => {
|
|
23110
|
-
|
|
23113
|
+
$(!1);
|
|
23111
23114
|
}
|
|
23112
23115
|
})]
|
|
23113
23116
|
});
|
|
@@ -26583,23 +26586,25 @@ function FormActionBar({
|
|
|
26583
26586
|
attachments: C,
|
|
26584
26587
|
formRef: y,
|
|
26585
26588
|
setFormHasChanges: O,
|
|
26586
|
-
|
|
26587
|
-
|
|
26588
|
-
|
|
26589
|
-
goToResourceId: _
|
|
26589
|
+
previousView: b,
|
|
26590
|
+
setPreviousView: E,
|
|
26591
|
+
goToResourceId: w
|
|
26590
26592
|
} = useContext(ActionViewContext), {
|
|
26591
26593
|
t: S,
|
|
26592
|
-
lang:
|
|
26593
|
-
} = useContext(LocaleContext),
|
|
26594
|
-
processAction:
|
|
26595
|
-
} =
|
|
26596
|
-
openRelate:
|
|
26597
|
-
openDefaultActionForModel:
|
|
26598
|
-
} =
|
|
26599
|
-
|
|
26594
|
+
lang: T
|
|
26595
|
+
} = useContext(LocaleContext), k = useContext(ContentRootContext), {
|
|
26596
|
+
processAction: $
|
|
26597
|
+
} = k || {}, D = useContext(TabManagerContext), {
|
|
26598
|
+
openRelate: M,
|
|
26599
|
+
openDefaultActionForModel: L
|
|
26600
|
+
} = D || {}, q = useRef(!1);
|
|
26601
|
+
useEffect(() => {
|
|
26602
|
+
!s && q.current && message$1.success(S("savedRegisters")), q.current = s || !1;
|
|
26603
|
+
}, [s]);
|
|
26604
|
+
function N(P) {
|
|
26600
26605
|
if (a) {
|
|
26601
26606
|
showDialog({
|
|
26602
|
-
lang:
|
|
26607
|
+
lang: T,
|
|
26603
26608
|
onOk: () => {
|
|
26604
26609
|
P();
|
|
26605
26610
|
}
|
|
@@ -26611,7 +26616,7 @@ function FormActionBar({
|
|
|
26611
26616
|
function B(P) {
|
|
26612
26617
|
if (a) {
|
|
26613
26618
|
showDialog$6({
|
|
26614
|
-
lang:
|
|
26619
|
+
lang: T,
|
|
26615
26620
|
onOk: () => {
|
|
26616
26621
|
P();
|
|
26617
26622
|
}
|
|
@@ -26629,7 +26634,7 @@ function FormActionBar({
|
|
|
26629
26634
|
function z() {
|
|
26630
26635
|
showDialog$9({
|
|
26631
26636
|
confirmMessage: S("confirmRemoveItem"),
|
|
26632
|
-
lang:
|
|
26637
|
+
lang: T,
|
|
26633
26638
|
onOk: () => {
|
|
26634
26639
|
W();
|
|
26635
26640
|
}
|
|
@@ -26659,7 +26664,7 @@ function FormActionBar({
|
|
|
26659
26664
|
model: p,
|
|
26660
26665
|
context: y.current.getContext()
|
|
26661
26666
|
});
|
|
26662
|
-
P && await (
|
|
26667
|
+
P && await (w == null ? void 0 : w(P));
|
|
26663
26668
|
} catch (P) {
|
|
26664
26669
|
showDialog$3(JSON.stringify(P));
|
|
26665
26670
|
} finally {
|
|
@@ -26668,7 +26673,7 @@ function FormActionBar({
|
|
|
26668
26673
|
}
|
|
26669
26674
|
const V = s || m || I || v;
|
|
26670
26675
|
function H(P) {
|
|
26671
|
-
|
|
26676
|
+
$ == null || $({
|
|
26672
26677
|
actionData: P,
|
|
26673
26678
|
values: y.current.getValues(),
|
|
26674
26679
|
fields: y.current.getFields(),
|
|
@@ -26716,16 +26721,16 @@ function FormActionBar({
|
|
|
26716
26721
|
disabled: s || c === void 0 || m || v || I,
|
|
26717
26722
|
loading: !1,
|
|
26718
26723
|
onClick: () => {
|
|
26719
|
-
|
|
26724
|
+
N(() => {
|
|
26720
26725
|
y.current.fetchValues();
|
|
26721
26726
|
});
|
|
26722
26727
|
}
|
|
26723
26728
|
}), separator$2(), /* @__PURE__ */ jsx(ChangeViewButton, {
|
|
26724
26729
|
currentView: n,
|
|
26725
|
-
previousView:
|
|
26730
|
+
previousView: b,
|
|
26726
26731
|
availableViews: t,
|
|
26727
26732
|
onChangeView: (P) => {
|
|
26728
|
-
|
|
26733
|
+
E == null || E(n), O == null || O(!1), r == null || r(P);
|
|
26729
26734
|
},
|
|
26730
26735
|
disabled: V,
|
|
26731
26736
|
formHasChanges: a
|
|
@@ -26775,7 +26780,7 @@ function FormActionBar({
|
|
|
26775
26780
|
tooltip: S("related"),
|
|
26776
26781
|
items: e == null ? void 0 : e.relate,
|
|
26777
26782
|
onItemClick: async (P) => {
|
|
26778
|
-
!P ||
|
|
26783
|
+
!P || M({
|
|
26779
26784
|
relateData: P,
|
|
26780
26785
|
values: y.current.getValues(),
|
|
26781
26786
|
fields: y.current.getFields(),
|
|
@@ -26788,7 +26793,7 @@ function FormActionBar({
|
|
|
26788
26793
|
attachments: C,
|
|
26789
26794
|
onAddNewAttachment: () => {
|
|
26790
26795
|
const P = c, A = p;
|
|
26791
|
-
|
|
26796
|
+
L({
|
|
26792
26797
|
model: "ir.attachment",
|
|
26793
26798
|
values: {
|
|
26794
26799
|
selection_associated_object: `${A},${P}`
|
|
@@ -26802,14 +26807,14 @@ function FormActionBar({
|
|
|
26802
26807
|
},
|
|
26803
26808
|
onListAllAttachments: () => {
|
|
26804
26809
|
const P = c;
|
|
26805
|
-
|
|
26810
|
+
L({
|
|
26806
26811
|
model: "ir.attachment",
|
|
26807
26812
|
domain: [["res_model", "=", `${p}`], ["res_id", "=", `${P}`]],
|
|
26808
26813
|
initialViewType: "tree"
|
|
26809
26814
|
});
|
|
26810
26815
|
},
|
|
26811
26816
|
onViewAttachmentDetails: (P) => {
|
|
26812
|
-
|
|
26817
|
+
L({
|
|
26813
26818
|
model: "ir.attachment",
|
|
26814
26819
|
res_id: P.id,
|
|
26815
26820
|
initialViewType: "form"
|
|
@@ -26943,10 +26948,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26943
26948
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(I)))) {
|
|
26944
26949
|
var y = [], O = !0, b = !1, E = void 0;
|
|
26945
26950
|
try {
|
|
26946
|
-
for (var w = I[Symbol.iterator](),
|
|
26951
|
+
for (var w = I[Symbol.iterator](), S; !(O = (S = w.next()).done) && (y.push(S.value), !(C && y.length === C)); O = !0)
|
|
26947
26952
|
;
|
|
26948
|
-
} catch (
|
|
26949
|
-
b = !0, E =
|
|
26953
|
+
} catch (T) {
|
|
26954
|
+
b = !0, E = T;
|
|
26950
26955
|
} finally {
|
|
26951
26956
|
try {
|
|
26952
26957
|
!O && w.return != null && w.return();
|
|
@@ -26990,9 +26995,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26990
26995
|
function g(I, C) {
|
|
26991
26996
|
if ((0, n.default)(I), !I || /[\s<>]/.test(I) || I.indexOf("mailto:") === 0 || (C = (0, a.default)(C, h), C.validate_length && I.length >= 2083) || !C.allow_fragments && I.includes("#") || !C.allow_query_components && (I.includes("?") || I.includes("&")))
|
|
26992
26997
|
return !1;
|
|
26993
|
-
var y, O, b, E, w,
|
|
26994
|
-
if (
|
|
26995
|
-
if (y =
|
|
26998
|
+
var y, O, b, E, w, S, T, k;
|
|
26999
|
+
if (T = I.split("#"), I = T.shift(), T = I.split("?"), I = T.shift(), T = I.split("://"), T.length > 1) {
|
|
27000
|
+
if (y = T.shift().toLowerCase(), C.require_valid_protocol && C.protocols.indexOf(y) === -1)
|
|
26996
27001
|
return !1;
|
|
26997
27002
|
} else {
|
|
26998
27003
|
if (C.require_protocol)
|
|
@@ -27000,24 +27005,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27000
27005
|
if (I.substr(0, 2) === "//") {
|
|
27001
27006
|
if (!C.allow_protocol_relative_urls)
|
|
27002
27007
|
return !1;
|
|
27003
|
-
|
|
27008
|
+
T[0] = I.substr(2);
|
|
27004
27009
|
}
|
|
27005
27010
|
}
|
|
27006
|
-
if (I =
|
|
27011
|
+
if (I = T.join("://"), I === "")
|
|
27007
27012
|
return !1;
|
|
27008
|
-
if (
|
|
27013
|
+
if (T = I.split("/"), I = T.shift(), I === "" && !C.require_host)
|
|
27009
27014
|
return !0;
|
|
27010
|
-
if (
|
|
27011
|
-
if (C.disallow_auth ||
|
|
27015
|
+
if (T = I.split("@"), T.length > 1) {
|
|
27016
|
+
if (C.disallow_auth || T[0] === "" || (O = T.shift(), O.indexOf(":") >= 0 && O.split(":").length > 2))
|
|
27012
27017
|
return !1;
|
|
27013
|
-
var
|
|
27018
|
+
var $ = O.split(":"), D = c($, 2), M = D[0], L = D[1];
|
|
27014
27019
|
if (M === "" && L === "")
|
|
27015
27020
|
return !1;
|
|
27016
27021
|
}
|
|
27017
|
-
E =
|
|
27022
|
+
E = T.join("@"), S = null, k = null;
|
|
27018
27023
|
var q = E.match(m);
|
|
27019
|
-
if (q ? (b = "", k = q[1],
|
|
27020
|
-
if (w = parseInt(
|
|
27024
|
+
if (q ? (b = "", k = q[1], S = q[2] || null) : (T = E.split(":"), b = T.shift(), T.length && (S = T.join(":"))), S !== null && S.length > 0) {
|
|
27025
|
+
if (w = parseInt(S, 10), !/^[0-9]+$/.test(S) || w <= 0 || w > 65535)
|
|
27021
27026
|
return !1;
|
|
27022
27027
|
} else if (C.require_port)
|
|
27023
27028
|
return !1;
|
|
@@ -27169,20 +27174,20 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
27169
27174
|
var b = I.split("@"), E = b.pop(), w = E.toLowerCase();
|
|
27170
27175
|
if (C.host_blacklist.includes(w))
|
|
27171
27176
|
return !1;
|
|
27172
|
-
var
|
|
27177
|
+
var S = b.join("@");
|
|
27173
27178
|
if (C.domain_specific_validation && (w === "gmail.com" || w === "googlemail.com")) {
|
|
27174
|
-
|
|
27175
|
-
var
|
|
27176
|
-
if (!(0, o.default)(
|
|
27179
|
+
S = S.toLowerCase();
|
|
27180
|
+
var T = S.split("+")[0];
|
|
27181
|
+
if (!(0, o.default)(T.replace(/\./g, ""), {
|
|
27177
27182
|
min: 6,
|
|
27178
27183
|
max: 30
|
|
27179
27184
|
}))
|
|
27180
27185
|
return !1;
|
|
27181
|
-
for (var k =
|
|
27182
|
-
if (!f.test(k[
|
|
27186
|
+
for (var k = T.split("."), $ = 0; $ < k.length; $++)
|
|
27187
|
+
if (!f.test(k[$]))
|
|
27183
27188
|
return !1;
|
|
27184
27189
|
}
|
|
27185
|
-
if (C.ignore_max_length === !1 && (!(0, o.default)(
|
|
27190
|
+
if (C.ignore_max_length === !1 && (!(0, o.default)(S, {
|
|
27186
27191
|
max: 64
|
|
27187
27192
|
}) || !(0, o.default)(E, {
|
|
27188
27193
|
max: 254
|
|
@@ -27201,12 +27206,12 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
27201
27206
|
return !1;
|
|
27202
27207
|
}
|
|
27203
27208
|
}
|
|
27204
|
-
if (
|
|
27205
|
-
return
|
|
27206
|
-
for (var M = C.allow_utf8_local_part ? h : d, L =
|
|
27209
|
+
if (S[0] === '"')
|
|
27210
|
+
return S = S.slice(1, S.length - 1), C.allow_utf8_local_part ? m.test(S) : p.test(S);
|
|
27211
|
+
for (var M = C.allow_utf8_local_part ? h : d, L = S.split("."), q = 0; q < L.length; q++)
|
|
27207
27212
|
if (!M.test(L[q]))
|
|
27208
27213
|
return !1;
|
|
27209
|
-
return !(C.blacklisted_chars &&
|
|
27214
|
+
return !(C.blacklisted_chars && S.search(new RegExp("[".concat(C.blacklisted_chars, "]+"), "g")) !== -1);
|
|
27210
27215
|
}
|
|
27211
27216
|
e.exports = t.default, e.exports.default = t.default;
|
|
27212
27217
|
})(isEmail$1, isEmail$1.exports);
|
|
@@ -27487,28 +27492,28 @@ const GraphActionView = (e) => {
|
|
|
27487
27492
|
setTreeIsLoading: b = void 0,
|
|
27488
27493
|
limit: E,
|
|
27489
27494
|
setLimit: w,
|
|
27490
|
-
searchParams:
|
|
27491
|
-
searchValues:
|
|
27495
|
+
searchParams: S,
|
|
27496
|
+
searchValues: T,
|
|
27492
27497
|
setSearchValues: k,
|
|
27493
|
-
currentView:
|
|
27498
|
+
currentView: $
|
|
27494
27499
|
} = u || {}, [D, M] = useState(!0);
|
|
27495
27500
|
useEffect(() => {
|
|
27496
27501
|
var G;
|
|
27497
27502
|
(G = l.current) == null || G.refresh();
|
|
27498
|
-
}, [
|
|
27499
|
-
t.view_id !==
|
|
27500
|
-
}, [
|
|
27503
|
+
}, [S]), useEffect(() => {
|
|
27504
|
+
t.view_id !== $.view_id && M(!0);
|
|
27505
|
+
}, [$]);
|
|
27501
27506
|
const {
|
|
27502
27507
|
clear: L,
|
|
27503
27508
|
searchFilterLoading: q,
|
|
27504
|
-
searchError:
|
|
27509
|
+
searchError: N,
|
|
27505
27510
|
offset: B,
|
|
27506
27511
|
tableRefreshing: U
|
|
27507
27512
|
} = useSearch({
|
|
27508
27513
|
model: r,
|
|
27509
27514
|
setSearchTreeNameSearch: O,
|
|
27510
27515
|
setSelectedRowItems: m,
|
|
27511
|
-
searchParams:
|
|
27516
|
+
searchParams: S,
|
|
27512
27517
|
setSearchValues: k,
|
|
27513
27518
|
setSearchParams: v,
|
|
27514
27519
|
setSearchVisible: g,
|
|
@@ -27548,16 +27553,16 @@ const GraphActionView = (e) => {
|
|
|
27548
27553
|
onSubmit: (G) => {
|
|
27549
27554
|
M(!1), v == null || v(G.params), g == null || g(!1);
|
|
27550
27555
|
},
|
|
27551
|
-
searchError:
|
|
27556
|
+
searchError: N,
|
|
27552
27557
|
searchVisible: x,
|
|
27553
|
-
searchValues:
|
|
27558
|
+
searchValues: T,
|
|
27554
27559
|
showLimitOptions: !1
|
|
27555
27560
|
}), U ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Graph, {
|
|
27556
27561
|
ref: l,
|
|
27557
27562
|
view_id: t.view_id,
|
|
27558
27563
|
model: r,
|
|
27559
27564
|
context: o,
|
|
27560
|
-
domain: mergeParams(
|
|
27565
|
+
domain: mergeParams(S || [], a),
|
|
27561
27566
|
limit: D ? E : void 0,
|
|
27562
27567
|
manualIds: D ? h == null ? void 0 : h.map((G) => G.id) : void 0
|
|
27563
27568
|
})]
|
|
@@ -27685,14 +27690,14 @@ function TreeActionBar(e) {
|
|
|
27685
27690
|
toolbar: E
|
|
27686
27691
|
} = e, {
|
|
27687
27692
|
t: w,
|
|
27688
|
-
lang:
|
|
27689
|
-
} = useContext(LocaleContext),
|
|
27693
|
+
lang: S
|
|
27694
|
+
} = useContext(LocaleContext), T = useContext(ContentRootContext), {
|
|
27690
27695
|
processAction: k
|
|
27691
|
-
} =
|
|
27692
|
-
function
|
|
27696
|
+
} = T || {};
|
|
27697
|
+
function $() {
|
|
27693
27698
|
showDialog$9({
|
|
27694
27699
|
confirmMessage: w("confirmRemove"),
|
|
27695
|
-
lang:
|
|
27700
|
+
lang: S,
|
|
27696
27701
|
onOk: () => {
|
|
27697
27702
|
D();
|
|
27698
27703
|
}
|
|
@@ -27703,10 +27708,10 @@ function TreeActionBar(e) {
|
|
|
27703
27708
|
try {
|
|
27704
27709
|
a == null || a(!0), await ConnectionProvider.getHandler().delete({
|
|
27705
27710
|
model: u,
|
|
27706
|
-
ids: o.map((
|
|
27711
|
+
ids: o.map((N) => N.id)
|
|
27707
27712
|
}), f == null || f(void 0), p == null || p(void 0), (q = d == null ? void 0 : d.current) == null || q.refreshResults();
|
|
27708
|
-
} catch (
|
|
27709
|
-
showDialog$8(
|
|
27713
|
+
} catch (N) {
|
|
27714
|
+
showDialog$8(N);
|
|
27710
27715
|
} finally {
|
|
27711
27716
|
a == null || a(!1);
|
|
27712
27717
|
}
|
|
@@ -27715,16 +27720,16 @@ function TreeActionBar(e) {
|
|
|
27715
27720
|
var q;
|
|
27716
27721
|
try {
|
|
27717
27722
|
l == null || l(!0);
|
|
27718
|
-
const
|
|
27723
|
+
const N = o[0].id;
|
|
27719
27724
|
await ConnectionProvider.getHandler().duplicate({
|
|
27720
|
-
id:
|
|
27725
|
+
id: N,
|
|
27721
27726
|
model: u,
|
|
27722
27727
|
context: {
|
|
27723
27728
|
...O
|
|
27724
27729
|
}
|
|
27725
27730
|
}) && ((q = d == null ? void 0 : d.current) == null || q.refreshResults());
|
|
27726
|
-
} catch (
|
|
27727
|
-
showDialog$8(
|
|
27731
|
+
} catch (N) {
|
|
27732
|
+
showDialog$8(N);
|
|
27728
27733
|
} finally {
|
|
27729
27734
|
l == null || l(!1);
|
|
27730
27735
|
}
|
|
@@ -27733,18 +27738,18 @@ function TreeActionBar(e) {
|
|
|
27733
27738
|
k == null || k({
|
|
27734
27739
|
actionData: q,
|
|
27735
27740
|
values: {
|
|
27736
|
-
active_id: o == null ? void 0 : o.map((
|
|
27737
|
-
active_ids: o == null ? void 0 : o.map((
|
|
27741
|
+
active_id: o == null ? void 0 : o.map((N) => N.id)[0],
|
|
27742
|
+
active_ids: o == null ? void 0 : o.map((N) => N.id)
|
|
27738
27743
|
},
|
|
27739
27744
|
fields: {},
|
|
27740
27745
|
context: {
|
|
27741
27746
|
...O,
|
|
27742
|
-
active_id: o == null ? void 0 : o.map((
|
|
27743
|
-
active_ids: o == null ? void 0 : o.map((
|
|
27747
|
+
active_id: o == null ? void 0 : o.map((N) => N.id)[0],
|
|
27748
|
+
active_ids: o == null ? void 0 : o.map((N) => N.id)
|
|
27744
27749
|
},
|
|
27745
27750
|
onRefreshParentValues: () => {
|
|
27746
|
-
var
|
|
27747
|
-
(
|
|
27751
|
+
var N;
|
|
27752
|
+
(N = d == null ? void 0 : d.current) == null || N.refreshResults();
|
|
27748
27753
|
}
|
|
27749
27754
|
});
|
|
27750
27755
|
}
|
|
@@ -27770,7 +27775,7 @@ function TreeActionBar(e) {
|
|
|
27770
27775
|
tooltip: w("delete"),
|
|
27771
27776
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || I,
|
|
27772
27777
|
loading: s,
|
|
27773
|
-
onClick:
|
|
27778
|
+
onClick: $
|
|
27774
27779
|
}), separator$1()]
|
|
27775
27780
|
}), !b && /* @__PURE__ */ jsx(ButtonWithBadge, {
|
|
27776
27781
|
icon: /* @__PURE__ */ jsx(FilterOutlined, {
|
|
@@ -27830,7 +27835,7 @@ function TreeActionBar(e) {
|
|
|
27830
27835
|
...q,
|
|
27831
27836
|
datas: {
|
|
27832
27837
|
...q.datas || {},
|
|
27833
|
-
ids: o.map((
|
|
27838
|
+
ids: o.map((N) => N.id)
|
|
27834
27839
|
}
|
|
27835
27840
|
});
|
|
27836
27841
|
}
|
|
@@ -27994,20 +27999,20 @@ function ActionView(e, t) {
|
|
|
27994
27999
|
action_type: m,
|
|
27995
28000
|
treeExpandable: v = !1,
|
|
27996
28001
|
limit: x
|
|
27997
|
-
} = e, [g, I] = useState(), [C, y] = useState([]), [O, b] = useState(!0), E = p || void 0, [w,
|
|
28002
|
+
} = e, [g, I] = useState(), [C, y] = useState([]), [O, b] = useState(!0), E = p || void 0, [w, S] = useState(E), [T, k] = useState([]), [$, D] = useState(), [M, L] = useState([]), [q, N] = useState(), [B, U] = useState(0), [G, z] = useState(!1), [W, Z] = useState(!1), [V, H] = useState(), {
|
|
27998
28003
|
t: P
|
|
27999
28004
|
} = useContext(LocaleContext), A = useRef(), j = useRef(), K = useContext(TabManagerContext), {
|
|
28000
28005
|
setCurrentView: X,
|
|
28001
28006
|
setCurrentId: F,
|
|
28002
|
-
tabs:
|
|
28007
|
+
tabs: _,
|
|
28003
28008
|
activeKey: Y,
|
|
28004
28009
|
openAction: Q
|
|
28005
28010
|
} = K || {};
|
|
28006
28011
|
useHotkeys("ctrl+g,command+g", (ie) => {
|
|
28007
28012
|
ie.preventDefault(), le();
|
|
28008
|
-
}, [Y,
|
|
28013
|
+
}, [Y, _, g, $, M]);
|
|
28009
28014
|
function ne(ie) {
|
|
28010
|
-
|
|
28015
|
+
S(ie), F == null || F(ie);
|
|
28011
28016
|
}
|
|
28012
28017
|
function J(ie) {
|
|
28013
28018
|
I(ie), X == null || X(ie);
|
|
@@ -28092,7 +28097,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28092
28097
|
J(de || ie), p ? F == null || F(E) : (ne(void 0), D(void 0)), ee();
|
|
28093
28098
|
}, [r, a, p]), useEffect(() => {
|
|
28094
28099
|
Y === l && (F == null || F(w), X == null || X(g));
|
|
28095
|
-
}, [
|
|
28100
|
+
}, [_, Y]);
|
|
28096
28101
|
async function oe() {
|
|
28097
28102
|
return g.type === "form" ? await A.current.cancelUnsavedChanges() : !0;
|
|
28098
28103
|
}
|
|
@@ -28209,15 +28214,15 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28209
28214
|
currentId: w,
|
|
28210
28215
|
setCurrentId: ne,
|
|
28211
28216
|
setCurrentItemIndex: D,
|
|
28212
|
-
currentItemIndex:
|
|
28217
|
+
currentItemIndex: $,
|
|
28213
28218
|
results: M,
|
|
28214
28219
|
setResults: L,
|
|
28215
28220
|
currentModel: r,
|
|
28216
28221
|
sorter: q,
|
|
28217
|
-
setSorter:
|
|
28222
|
+
setSorter: N,
|
|
28218
28223
|
totalItems: B,
|
|
28219
28224
|
setTotalItems: U,
|
|
28220
|
-
selectedRowItems:
|
|
28225
|
+
selectedRowItems: T,
|
|
28221
28226
|
setSelectedRowItems: k,
|
|
28222
28227
|
setSearchTreeNameSearch: H,
|
|
28223
28228
|
searchTreeNameSearch: V,
|
|
@@ -28422,17 +28427,17 @@ function DashboardTree(e) {
|
|
|
28422
28427
|
domain: a = [],
|
|
28423
28428
|
visible: s = !0,
|
|
28424
28429
|
parentContext: c = {}
|
|
28425
|
-
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(1), [y, O] = useState(0), b = useRef(DEFAULT_SEARCH_LIMIT), E = useRef([]), [w,
|
|
28430
|
+
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(1), [y, O] = useState(0), b = useRef(DEFAULT_SEARCH_LIMIT), E = useRef([]), [w, S] = useState(0), [T, k] = useState([]), [$, D] = useState(void 0), [M, L] = useState(), [q, N] = useState(), [B, U] = useState(), [G, z] = useState(!1), W = useRef([]), Z = (F) => {
|
|
28426
28431
|
z(!0), C(F), O((F - 1) * b.current);
|
|
28427
28432
|
}, V = async () => {
|
|
28428
|
-
const F = W.current.length > 0 ? W.current : a,
|
|
28433
|
+
const F = W.current.length > 0 ? W.current : a, _ = mergeParams(E.current, F), {
|
|
28429
28434
|
colors: Y
|
|
28430
28435
|
} = getTree(m), {
|
|
28431
28436
|
totalItems: Q,
|
|
28432
28437
|
results: ne,
|
|
28433
28438
|
attrsEvaluated: J
|
|
28434
28439
|
} = await ConnectionProvider.getHandler().searchForTree({
|
|
28435
|
-
params:
|
|
28440
|
+
params: _,
|
|
28436
28441
|
limit: b.current,
|
|
28437
28442
|
offset: y,
|
|
28438
28443
|
model: p,
|
|
@@ -28442,7 +28447,7 @@ function DashboardTree(e) {
|
|
|
28442
28447
|
colors: Y
|
|
28443
28448
|
}
|
|
28444
28449
|
}), ee = await Q;
|
|
28445
|
-
|
|
28450
|
+
S(ee), D(getColorMap(J));
|
|
28446
28451
|
const oe = sortResults({
|
|
28447
28452
|
resultsToSort: ne,
|
|
28448
28453
|
sorter: M,
|
|
@@ -28456,7 +28461,7 @@ function DashboardTree(e) {
|
|
|
28456
28461
|
try {
|
|
28457
28462
|
z(!0), await V();
|
|
28458
28463
|
} catch (F) {
|
|
28459
|
-
|
|
28464
|
+
N(JSON.stringify(F));
|
|
28460
28465
|
} finally {
|
|
28461
28466
|
z(!1);
|
|
28462
28467
|
}
|
|
@@ -28468,8 +28473,8 @@ function DashboardTree(e) {
|
|
|
28468
28473
|
f(!1), u(!0), U(void 0);
|
|
28469
28474
|
try {
|
|
28470
28475
|
F === "action" ? await A() : await j(), f(!0);
|
|
28471
|
-
} catch (
|
|
28472
|
-
U(
|
|
28476
|
+
} catch (_) {
|
|
28477
|
+
U(_);
|
|
28473
28478
|
} finally {
|
|
28474
28479
|
u(!1);
|
|
28475
28480
|
}
|
|
@@ -28487,23 +28492,23 @@ function DashboardTree(e) {
|
|
|
28487
28492
|
context: c
|
|
28488
28493
|
});
|
|
28489
28494
|
g(F);
|
|
28490
|
-
const
|
|
28495
|
+
const _ = await ConnectionProvider.getHandler().getView({
|
|
28491
28496
|
model: n,
|
|
28492
28497
|
type: "tree",
|
|
28493
28498
|
id: r,
|
|
28494
28499
|
context: c
|
|
28495
28500
|
});
|
|
28496
|
-
v(
|
|
28501
|
+
v(_);
|
|
28497
28502
|
};
|
|
28498
28503
|
useEffect(() => {
|
|
28499
28504
|
t ? P("action") : n && P("model");
|
|
28500
28505
|
}, [t, n]);
|
|
28501
28506
|
const K = (F) => {
|
|
28502
28507
|
const {
|
|
28503
|
-
id:
|
|
28508
|
+
id: _
|
|
28504
28509
|
} = F;
|
|
28505
28510
|
o({
|
|
28506
|
-
id:
|
|
28511
|
+
id: _,
|
|
28507
28512
|
model: p,
|
|
28508
28513
|
treeView: m
|
|
28509
28514
|
});
|
|
@@ -28522,23 +28527,23 @@ function DashboardTree(e) {
|
|
|
28522
28527
|
limit: b.current,
|
|
28523
28528
|
page: I,
|
|
28524
28529
|
treeView: m,
|
|
28525
|
-
results:
|
|
28530
|
+
results: T,
|
|
28526
28531
|
onRequestPageChange: Z,
|
|
28527
28532
|
loading: G,
|
|
28528
28533
|
onRowClicked: K,
|
|
28529
|
-
colorsForResults:
|
|
28534
|
+
colorsForResults: $,
|
|
28530
28535
|
sorter: M,
|
|
28531
28536
|
onChangeSort: (F) => {
|
|
28532
28537
|
L == null || L(F);
|
|
28533
|
-
const
|
|
28534
|
-
resultsToSort:
|
|
28538
|
+
const _ = sortResults({
|
|
28539
|
+
resultsToSort: T,
|
|
28535
28540
|
sorter: F,
|
|
28536
28541
|
fields: {
|
|
28537
28542
|
...m.fields,
|
|
28538
28543
|
...x.fields
|
|
28539
28544
|
}
|
|
28540
28545
|
});
|
|
28541
|
-
k(
|
|
28546
|
+
k(_);
|
|
28542
28547
|
}
|
|
28543
28548
|
})]
|
|
28544
28549
|
});
|
|
@@ -28603,13 +28608,13 @@ function Dashboard(e, t) {
|
|
|
28603
28608
|
async function g() {
|
|
28604
28609
|
u(!0), p(!0), f(void 0);
|
|
28605
28610
|
try {
|
|
28606
|
-
const w = await I(),
|
|
28611
|
+
const w = await I(), S = await y(w), T = w.fields[itemsField].relation, k = S[itemsField].items;
|
|
28607
28612
|
x.current = w.fields;
|
|
28608
|
-
const
|
|
28613
|
+
const $ = await C({
|
|
28609
28614
|
items: k,
|
|
28610
|
-
model:
|
|
28615
|
+
model: T,
|
|
28611
28616
|
context: r
|
|
28612
|
-
}), D = await O(
|
|
28617
|
+
}), D = await O($);
|
|
28613
28618
|
c(D), u(!1), p(!1);
|
|
28614
28619
|
} catch (w) {
|
|
28615
28620
|
f(JSON.stringify(w));
|
|
@@ -28624,19 +28629,19 @@ function Dashboard(e, t) {
|
|
|
28624
28629
|
}
|
|
28625
28630
|
async function C({
|
|
28626
28631
|
items: w,
|
|
28627
|
-
model:
|
|
28628
|
-
context:
|
|
28632
|
+
model: S,
|
|
28633
|
+
context: T
|
|
28629
28634
|
}) {
|
|
28630
28635
|
return v.current = (await ConnectionProvider.getHandler().getView({
|
|
28631
|
-
model:
|
|
28636
|
+
model: S,
|
|
28632
28637
|
type: "form",
|
|
28633
|
-
context:
|
|
28638
|
+
context: T
|
|
28634
28639
|
})).fields, await readObjectValues({
|
|
28635
28640
|
treeFields: v.current,
|
|
28636
28641
|
formFields: v.current,
|
|
28637
|
-
model:
|
|
28642
|
+
model: S,
|
|
28638
28643
|
items: w,
|
|
28639
|
-
context:
|
|
28644
|
+
context: T
|
|
28640
28645
|
});
|
|
28641
28646
|
}
|
|
28642
28647
|
async function y(w) {
|
|
@@ -28648,28 +28653,28 @@ function Dashboard(e, t) {
|
|
|
28648
28653
|
}))[0];
|
|
28649
28654
|
}
|
|
28650
28655
|
async function O(w) {
|
|
28651
|
-
const
|
|
28652
|
-
for (const
|
|
28656
|
+
const S = [];
|
|
28657
|
+
for (const T of w) {
|
|
28653
28658
|
const {
|
|
28654
28659
|
values: k
|
|
28655
|
-
} =
|
|
28660
|
+
} = T;
|
|
28656
28661
|
if (k.action_id && k.action_id.length > 0) {
|
|
28657
|
-
const
|
|
28658
|
-
actionId:
|
|
28662
|
+
const $ = parseInt(k.action_id[0], 10), D = await fetchAction({
|
|
28663
|
+
actionId: $,
|
|
28659
28664
|
rootContext: r
|
|
28660
28665
|
});
|
|
28661
|
-
|
|
28662
|
-
...
|
|
28666
|
+
S.push({
|
|
28667
|
+
...T,
|
|
28663
28668
|
actionData: D
|
|
28664
28669
|
});
|
|
28665
28670
|
}
|
|
28666
28671
|
}
|
|
28667
|
-
return
|
|
28672
|
+
return S;
|
|
28668
28673
|
}
|
|
28669
28674
|
async function b(w) {
|
|
28670
28675
|
if (!m)
|
|
28671
28676
|
return;
|
|
28672
|
-
const
|
|
28677
|
+
const S = w.filter((D) => {
|
|
28673
28678
|
const M = s.find((q) => q.id === D.id);
|
|
28674
28679
|
if (!M)
|
|
28675
28680
|
return !1;
|
|
@@ -28681,11 +28686,11 @@ function Dashboard(e, t) {
|
|
|
28681
28686
|
};
|
|
28682
28687
|
return JSON.stringify(D) !== JSON.stringify(L);
|
|
28683
28688
|
});
|
|
28684
|
-
if (
|
|
28689
|
+
if (S.length === 0)
|
|
28685
28690
|
return;
|
|
28686
|
-
const k = s.filter((D) =>
|
|
28691
|
+
const k = s.filter((D) => S.map((M) => M.id).includes(D.id)).map((D) => {
|
|
28687
28692
|
const M = {
|
|
28688
|
-
...
|
|
28693
|
+
...S.find((L) => L.id === D.id)
|
|
28689
28694
|
};
|
|
28690
28695
|
return delete M.id, {
|
|
28691
28696
|
...D
|
|
@@ -28697,7 +28702,7 @@ function Dashboard(e, t) {
|
|
|
28697
28702
|
position: JSON.stringify(M).replace(/"/g, "'")
|
|
28698
28703
|
}
|
|
28699
28704
|
};
|
|
28700
|
-
}),
|
|
28705
|
+
}), $ = {
|
|
28701
28706
|
fields: v.current,
|
|
28702
28707
|
items: k
|
|
28703
28708
|
};
|
|
@@ -28705,7 +28710,7 @@ function Dashboard(e, t) {
|
|
|
28705
28710
|
model: n,
|
|
28706
28711
|
id: o,
|
|
28707
28712
|
values: {
|
|
28708
|
-
[itemsField]:
|
|
28713
|
+
[itemsField]: $
|
|
28709
28714
|
},
|
|
28710
28715
|
fields: x.current,
|
|
28711
28716
|
context: r
|
|
@@ -28721,31 +28726,31 @@ function Dashboard(e, t) {
|
|
|
28721
28726
|
banner: !0
|
|
28722
28727
|
}) : l ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
|
|
28723
28728
|
onPositionItemsChanged: b,
|
|
28724
|
-
children: s.map((w,
|
|
28729
|
+
children: s.map((w, S) => {
|
|
28725
28730
|
const {
|
|
28726
|
-
actionData:
|
|
28731
|
+
actionData: T,
|
|
28727
28732
|
values: k
|
|
28728
28733
|
} = w, {
|
|
28729
|
-
position:
|
|
28734
|
+
position: $,
|
|
28730
28735
|
id: D
|
|
28731
28736
|
} = k, {
|
|
28732
28737
|
actionId: M,
|
|
28733
28738
|
actionType: L,
|
|
28734
28739
|
key: q,
|
|
28735
|
-
title:
|
|
28740
|
+
title: N,
|
|
28736
28741
|
views: B,
|
|
28737
28742
|
model: U,
|
|
28738
28743
|
context: G,
|
|
28739
28744
|
domain: z,
|
|
28740
28745
|
initialView: W,
|
|
28741
28746
|
limit: Z
|
|
28742
|
-
} =
|
|
28747
|
+
} = T;
|
|
28743
28748
|
let V = {};
|
|
28744
28749
|
try {
|
|
28745
|
-
V = JSON.parse(
|
|
28750
|
+
V = JSON.parse($.replace(/'/g, '"'));
|
|
28746
28751
|
} catch {
|
|
28747
28752
|
V = {
|
|
28748
|
-
x:
|
|
28753
|
+
x: S * 2,
|
|
28749
28754
|
y: 0,
|
|
28750
28755
|
w: 2,
|
|
28751
28756
|
h: 3
|
|
@@ -28777,12 +28782,12 @@ function Dashboard(e, t) {
|
|
|
28777
28782
|
});
|
|
28778
28783
|
if (K) {
|
|
28779
28784
|
const [X, F] = K, {
|
|
28780
|
-
actionId:
|
|
28785
|
+
actionId: _,
|
|
28781
28786
|
actionType: Y,
|
|
28782
28787
|
title: Q,
|
|
28783
28788
|
model: ne
|
|
28784
|
-
} =
|
|
28785
|
-
action_id:
|
|
28789
|
+
} = T, J = {
|
|
28790
|
+
action_id: _,
|
|
28786
28791
|
action_type: Y,
|
|
28787
28792
|
name: Q,
|
|
28788
28793
|
res_id: j.id,
|
|
@@ -28803,7 +28808,7 @@ function Dashboard(e, t) {
|
|
|
28803
28808
|
action_id: M,
|
|
28804
28809
|
action_type: L,
|
|
28805
28810
|
tabKey: q,
|
|
28806
|
-
title:
|
|
28811
|
+
title: N,
|
|
28807
28812
|
views: B,
|
|
28808
28813
|
model: U,
|
|
28809
28814
|
context: G,
|
|
@@ -28823,13 +28828,13 @@ function Dashboard(e, t) {
|
|
|
28823
28828
|
const [j, K] = A, {
|
|
28824
28829
|
actionId: X,
|
|
28825
28830
|
actionType: F,
|
|
28826
|
-
title:
|
|
28831
|
+
title: _,
|
|
28827
28832
|
model: Y
|
|
28828
|
-
} =
|
|
28833
|
+
} = T;
|
|
28829
28834
|
P = {
|
|
28830
28835
|
action_id: X,
|
|
28831
28836
|
action_type: F,
|
|
28832
|
-
name:
|
|
28837
|
+
name: _,
|
|
28833
28838
|
res_id: !1,
|
|
28834
28839
|
res_model: Y,
|
|
28835
28840
|
view_id: j,
|
|
@@ -28838,7 +28843,7 @@ function Dashboard(e, t) {
|
|
|
28838
28843
|
}
|
|
28839
28844
|
return /* @__PURE__ */ jsx(DashboardGridItem, {
|
|
28840
28845
|
id: D,
|
|
28841
|
-
title:
|
|
28846
|
+
title: N,
|
|
28842
28847
|
parms: V,
|
|
28843
28848
|
action: P,
|
|
28844
28849
|
openAction: h,
|
|
@@ -28886,7 +28891,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28886
28891
|
f(!0);
|
|
28887
28892
|
let w = [];
|
|
28888
28893
|
if (n.domain) {
|
|
28889
|
-
const
|
|
28894
|
+
const S = await ConnectionProvider.getHandler().evalDomain({
|
|
28890
28895
|
domain: n.domain,
|
|
28891
28896
|
values: transformPlainMany2Ones({
|
|
28892
28897
|
fields: g == null ? void 0 : g.getFields(),
|
|
@@ -28895,10 +28900,10 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28895
28900
|
fields: g == null ? void 0 : g.getFields(),
|
|
28896
28901
|
context: g.getContext()
|
|
28897
28902
|
});
|
|
28898
|
-
w = [...w, ...
|
|
28903
|
+
w = [...w, ...S];
|
|
28899
28904
|
}
|
|
28900
28905
|
try {
|
|
28901
|
-
const
|
|
28906
|
+
const T = (await ConnectionProvider.getHandler().search({
|
|
28902
28907
|
model: p,
|
|
28903
28908
|
params: w,
|
|
28904
28909
|
fields: [v],
|
|
@@ -28907,16 +28912,16 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28907
28912
|
...h
|
|
28908
28913
|
}
|
|
28909
28914
|
})).map((k) => {
|
|
28910
|
-
const
|
|
28911
|
-
let D =
|
|
28912
|
-
return Array.isArray(
|
|
28915
|
+
const $ = k[v];
|
|
28916
|
+
let D = $;
|
|
28917
|
+
return Array.isArray($) && (D = $[1]), {
|
|
28913
28918
|
label: D,
|
|
28914
28919
|
value: k.id
|
|
28915
28920
|
};
|
|
28916
28921
|
});
|
|
28917
|
-
c(
|
|
28918
|
-
} catch (
|
|
28919
|
-
u(
|
|
28922
|
+
c(T);
|
|
28923
|
+
} catch (S) {
|
|
28924
|
+
u(S);
|
|
28920
28925
|
} finally {
|
|
28921
28926
|
f(!1);
|
|
28922
28927
|
}
|
|
@@ -28933,19 +28938,19 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28933
28938
|
}, b = () => {
|
|
28934
28939
|
E([]);
|
|
28935
28940
|
}, E = (w) => {
|
|
28936
|
-
const
|
|
28941
|
+
const S = o.map((k) => w.includes(k.id) ? k.operation == "pendingRemove" ? {
|
|
28937
28942
|
...k,
|
|
28938
28943
|
operation: "original"
|
|
28939
28944
|
} : k : {
|
|
28940
28945
|
id: k.id,
|
|
28941
28946
|
operation: "pendingRemove"
|
|
28942
|
-
}),
|
|
28943
|
-
w.filter((k) => !
|
|
28944
|
-
|
|
28947
|
+
}), T = S.map((k) => k.id);
|
|
28948
|
+
w.filter((k) => !T.includes(k)).map((k) => {
|
|
28949
|
+
S.push({
|
|
28945
28950
|
id: k,
|
|
28946
28951
|
operation: "pendingLink"
|
|
28947
28952
|
});
|
|
28948
|
-
}), C(
|
|
28953
|
+
}), C(S);
|
|
28949
28954
|
};
|
|
28950
28955
|
return d && s.length === 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Fragment, {
|
|
28951
28956
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -29150,22 +29155,22 @@ function RootView(e, t) {
|
|
|
29150
29155
|
forced_values: b,
|
|
29151
29156
|
initialViewType: E,
|
|
29152
29157
|
res_id: w,
|
|
29153
|
-
domain:
|
|
29158
|
+
domain: S = []
|
|
29154
29159
|
}) {
|
|
29155
|
-
const
|
|
29160
|
+
const T = await ConnectionProvider.getHandler().getActionData({
|
|
29156
29161
|
action: y,
|
|
29157
29162
|
context: o
|
|
29158
29163
|
});
|
|
29159
|
-
if (
|
|
29164
|
+
if (T.type === "ir.actions.wizard") {
|
|
29160
29165
|
showDialog$8("Action type not supported");
|
|
29161
29166
|
return;
|
|
29162
29167
|
}
|
|
29163
|
-
const [k,
|
|
29164
|
-
context:
|
|
29168
|
+
const [k, $] = y.split(","), D = parseInt($), M = parseContext({
|
|
29169
|
+
context: T.context,
|
|
29165
29170
|
values: r,
|
|
29166
29171
|
fields: {}
|
|
29167
|
-
}), L =
|
|
29168
|
-
domain:
|
|
29172
|
+
}), L = T.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
29173
|
+
domain: T.domain,
|
|
29169
29174
|
values: r,
|
|
29170
29175
|
context: {
|
|
29171
29176
|
...o,
|
|
@@ -29173,13 +29178,13 @@ function RootView(e, t) {
|
|
|
29173
29178
|
}
|
|
29174
29179
|
}) : [], {
|
|
29175
29180
|
res_model: q,
|
|
29176
|
-
views:
|
|
29181
|
+
views: N,
|
|
29177
29182
|
name: B,
|
|
29178
29183
|
target: U,
|
|
29179
29184
|
view_type: G,
|
|
29180
29185
|
limit: z
|
|
29181
|
-
} =
|
|
29182
|
-
for (const H of
|
|
29186
|
+
} = T, W = G === "tree", Z = [];
|
|
29187
|
+
for (const H of N) {
|
|
29183
29188
|
const [P, A] = H;
|
|
29184
29189
|
if (P)
|
|
29185
29190
|
Z.push(H);
|
|
@@ -29215,7 +29220,7 @@ function RootView(e, t) {
|
|
|
29215
29220
|
};
|
|
29216
29221
|
}
|
|
29217
29222
|
C({
|
|
29218
|
-
domain: [...L, ...
|
|
29223
|
+
domain: [...L, ...S],
|
|
29219
29224
|
context: {
|
|
29220
29225
|
...o,
|
|
29221
29226
|
...M
|
|
@@ -29241,7 +29246,7 @@ function RootView(e, t) {
|
|
|
29241
29246
|
action: E
|
|
29242
29247
|
}) {
|
|
29243
29248
|
let w = [...l];
|
|
29244
|
-
l.length === 1 && l[0].key === "welcome" && (w = [...l.filter((
|
|
29249
|
+
l.length === 1 && l[0].key === "welcome" && (w = [...l.filter((S) => S.key !== "welcome")]), u([...w, {
|
|
29245
29250
|
title: y,
|
|
29246
29251
|
key: b,
|
|
29247
29252
|
closable: !0,
|
|
@@ -29257,18 +29262,18 @@ function RootView(e, t) {
|
|
|
29257
29262
|
action_type: w
|
|
29258
29263
|
}) {
|
|
29259
29264
|
const {
|
|
29260
|
-
res_model:
|
|
29261
|
-
context:
|
|
29265
|
+
res_model: S,
|
|
29266
|
+
context: T,
|
|
29262
29267
|
domain: k,
|
|
29263
|
-
views:
|
|
29268
|
+
views: $,
|
|
29264
29269
|
target: D,
|
|
29265
29270
|
string: M,
|
|
29266
29271
|
limit: L
|
|
29267
|
-
} = y, [q,
|
|
29272
|
+
} = y, [q, N] = $[0], B = {
|
|
29268
29273
|
id: q,
|
|
29269
|
-
type:
|
|
29274
|
+
type: N
|
|
29270
29275
|
}, U = parseContext({
|
|
29271
|
-
context:
|
|
29276
|
+
context: T,
|
|
29272
29277
|
values: {
|
|
29273
29278
|
...b,
|
|
29274
29279
|
...r
|
|
@@ -29290,9 +29295,9 @@ function RootView(e, t) {
|
|
|
29290
29295
|
}
|
|
29291
29296
|
}) : [];
|
|
29292
29297
|
C({
|
|
29293
|
-
model:
|
|
29298
|
+
model: S,
|
|
29294
29299
|
target: D,
|
|
29295
|
-
views:
|
|
29300
|
+
views: $,
|
|
29296
29301
|
context: {
|
|
29297
29302
|
...o,
|
|
29298
29303
|
...U
|
|
@@ -29311,15 +29316,15 @@ function RootView(e, t) {
|
|
|
29311
29316
|
action_type: b,
|
|
29312
29317
|
res_id: E,
|
|
29313
29318
|
view_id: w
|
|
29314
|
-
} = y,
|
|
29315
|
-
action:
|
|
29319
|
+
} = y, S = `${b},${O}`, T = await ConnectionProvider.getHandler().getActionData({
|
|
29320
|
+
action: S,
|
|
29316
29321
|
context: o
|
|
29317
29322
|
}), k = parseContext({
|
|
29318
|
-
context:
|
|
29323
|
+
context: T.context,
|
|
29319
29324
|
values: r,
|
|
29320
29325
|
fields: {}
|
|
29321
|
-
}),
|
|
29322
|
-
domain:
|
|
29326
|
+
}), $ = T.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
29327
|
+
domain: T.domain,
|
|
29323
29328
|
values: r,
|
|
29324
29329
|
context: {
|
|
29325
29330
|
...o,
|
|
@@ -29330,9 +29335,9 @@ function RootView(e, t) {
|
|
|
29330
29335
|
views: M,
|
|
29331
29336
|
name: L,
|
|
29332
29337
|
target: q,
|
|
29333
|
-
view_type:
|
|
29338
|
+
view_type: N,
|
|
29334
29339
|
limit: B
|
|
29335
|
-
} =
|
|
29340
|
+
} = T, U = N === "tree", G = [];
|
|
29336
29341
|
for (const V of M) {
|
|
29337
29342
|
const [H, P] = V;
|
|
29338
29343
|
if (H)
|
|
@@ -29365,7 +29370,7 @@ function RootView(e, t) {
|
|
|
29365
29370
|
type: W
|
|
29366
29371
|
};
|
|
29367
29372
|
C({
|
|
29368
|
-
domain:
|
|
29373
|
+
domain: $,
|
|
29369
29374
|
context: {
|
|
29370
29375
|
...o,
|
|
29371
29376
|
...k
|
|
@@ -29388,16 +29393,16 @@ function RootView(e, t) {
|
|
|
29388
29393
|
forced_values: b,
|
|
29389
29394
|
initialViewType: E,
|
|
29390
29395
|
res_id: w,
|
|
29391
|
-
domain:
|
|
29396
|
+
domain: S
|
|
29392
29397
|
}) {
|
|
29393
|
-
const
|
|
29398
|
+
const T = await ConnectionProvider.getHandler().getActionStringForModel(y);
|
|
29394
29399
|
await m({
|
|
29395
|
-
action:
|
|
29400
|
+
action: T,
|
|
29396
29401
|
values: O,
|
|
29397
29402
|
forced_values: b,
|
|
29398
29403
|
initialViewType: E,
|
|
29399
29404
|
res_id: w,
|
|
29400
|
-
domain:
|
|
29405
|
+
domain: S
|
|
29401
29406
|
});
|
|
29402
29407
|
}
|
|
29403
29408
|
async function C({
|
|
@@ -29406,22 +29411,22 @@ function RootView(e, t) {
|
|
|
29406
29411
|
model: b,
|
|
29407
29412
|
views: E,
|
|
29408
29413
|
title: w,
|
|
29409
|
-
target:
|
|
29410
|
-
initialView:
|
|
29414
|
+
target: S,
|
|
29415
|
+
initialView: T,
|
|
29411
29416
|
action_id: k,
|
|
29412
|
-
action_type:
|
|
29417
|
+
action_type: $,
|
|
29413
29418
|
res_id: D,
|
|
29414
29419
|
values: M,
|
|
29415
29420
|
forced_values: L,
|
|
29416
29421
|
treeExpandable: q = !1,
|
|
29417
|
-
limit:
|
|
29422
|
+
limit: N
|
|
29418
29423
|
}) {
|
|
29419
29424
|
const B = v4();
|
|
29420
|
-
if (
|
|
29425
|
+
if (S !== "current") {
|
|
29421
29426
|
const U = await ConnectionProvider.getHandler().getView({
|
|
29422
29427
|
model: b,
|
|
29423
29428
|
type: "form",
|
|
29424
|
-
id:
|
|
29429
|
+
id: T.type === "form" ? T.id : void 0,
|
|
29425
29430
|
context: {
|
|
29426
29431
|
...o,
|
|
29427
29432
|
...O
|
|
@@ -29437,25 +29442,25 @@ function RootView(e, t) {
|
|
|
29437
29442
|
},
|
|
29438
29443
|
actionData: {
|
|
29439
29444
|
action_id: k,
|
|
29440
|
-
action_type:
|
|
29445
|
+
action_type: $,
|
|
29441
29446
|
res_id: D,
|
|
29442
29447
|
view_id: U.view_id
|
|
29443
29448
|
}
|
|
29444
29449
|
});
|
|
29445
29450
|
} else {
|
|
29446
|
-
const U =
|
|
29447
|
-
...
|
|
29448
|
-
id:
|
|
29449
|
-
} :
|
|
29451
|
+
const U = T && Array.isArray(T.id) ? {
|
|
29452
|
+
...T,
|
|
29453
|
+
id: T.id[0]
|
|
29454
|
+
} : T;
|
|
29450
29455
|
v({
|
|
29451
29456
|
title: w,
|
|
29452
29457
|
action: {
|
|
29453
29458
|
id: k,
|
|
29454
|
-
type:
|
|
29459
|
+
type: $
|
|
29455
29460
|
},
|
|
29456
29461
|
content: /* @__PURE__ */ jsx(ActionView$1, {
|
|
29457
29462
|
action_id: k,
|
|
29458
|
-
action_type:
|
|
29463
|
+
action_type: $,
|
|
29459
29464
|
tabKey: B,
|
|
29460
29465
|
title: w,
|
|
29461
29466
|
views: E,
|
|
@@ -29471,7 +29476,7 @@ function RootView(e, t) {
|
|
|
29471
29476
|
formDefaultValues: M,
|
|
29472
29477
|
formForcedValues: L,
|
|
29473
29478
|
treeExpandable: q,
|
|
29474
|
-
limit:
|
|
29479
|
+
limit: N
|
|
29475
29480
|
}),
|
|
29476
29481
|
key: B
|
|
29477
29482
|
});
|
|
@@ -29623,7 +29628,7 @@ const FavouriteButton = (e) => {
|
|
|
29623
29628
|
useEffect(() => {
|
|
29624
29629
|
E();
|
|
29625
29630
|
}, []), useEffect(() => {
|
|
29626
|
-
|
|
29631
|
+
T();
|
|
29627
29632
|
}, [I, C, y, O]);
|
|
29628
29633
|
async function E() {
|
|
29629
29634
|
try {
|
|
@@ -29639,20 +29644,20 @@ const FavouriteButton = (e) => {
|
|
|
29639
29644
|
function w(L) {
|
|
29640
29645
|
const {
|
|
29641
29646
|
key: q
|
|
29642
|
-
} = L,
|
|
29643
|
-
(
|
|
29647
|
+
} = L, N = u.find((B) => B.id === Number(q));
|
|
29648
|
+
(N == null ? void 0 : N.action_type) !== "ir.actions.wizard" && (N && g(N), l(!1));
|
|
29644
29649
|
}
|
|
29645
|
-
function
|
|
29650
|
+
function S(L) {
|
|
29646
29651
|
L && E(), l(L);
|
|
29647
29652
|
}
|
|
29648
|
-
async function
|
|
29653
|
+
async function T() {
|
|
29649
29654
|
if (!y)
|
|
29650
29655
|
return;
|
|
29651
29656
|
const L = I.find((z) => z.key === C), {
|
|
29652
29657
|
id: q,
|
|
29653
|
-
type:
|
|
29658
|
+
type: N
|
|
29654
29659
|
} = (L == null ? void 0 : L.action) || {};
|
|
29655
|
-
if (!q ||
|
|
29660
|
+
if (!q || !N) {
|
|
29656
29661
|
s(!1);
|
|
29657
29662
|
return;
|
|
29658
29663
|
}
|
|
@@ -29661,7 +29666,7 @@ const FavouriteButton = (e) => {
|
|
|
29661
29666
|
y.type === "form" && (U = O || !1);
|
|
29662
29667
|
const G = await n({
|
|
29663
29668
|
action_id: q,
|
|
29664
|
-
action_type:
|
|
29669
|
+
action_type: N,
|
|
29665
29670
|
view_id: B,
|
|
29666
29671
|
res_id: U
|
|
29667
29672
|
});
|
|
@@ -29672,7 +29677,7 @@ const FavouriteButton = (e) => {
|
|
|
29672
29677
|
model: "ir.ui.view_sc"
|
|
29673
29678
|
});
|
|
29674
29679
|
}
|
|
29675
|
-
const
|
|
29680
|
+
const $ = /* @__PURE__ */ jsxs(Menu, {
|
|
29676
29681
|
onClick: w,
|
|
29677
29682
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
29678
29683
|
style: {
|
|
@@ -29748,16 +29753,16 @@ const FavouriteButton = (e) => {
|
|
|
29748
29753
|
return;
|
|
29749
29754
|
const L = I.find((G) => G.key === C), {
|
|
29750
29755
|
id: q,
|
|
29751
|
-
type:
|
|
29756
|
+
type: N
|
|
29752
29757
|
} = (L == null ? void 0 : L.action) || {}, B = y.view_id;
|
|
29753
29758
|
let U = !1;
|
|
29754
|
-
if (!q ||
|
|
29759
|
+
if (!q || !N) {
|
|
29755
29760
|
s(!1);
|
|
29756
29761
|
return;
|
|
29757
29762
|
}
|
|
29758
29763
|
y.type === "form" && (U = O || !1), await r({
|
|
29759
29764
|
action_id: q,
|
|
29760
|
-
action_type:
|
|
29765
|
+
action_type: N,
|
|
29761
29766
|
view_id: B,
|
|
29762
29767
|
res_id: U
|
|
29763
29768
|
});
|
|
@@ -29777,8 +29782,8 @@ const FavouriteButton = (e) => {
|
|
|
29777
29782
|
},
|
|
29778
29783
|
onClick: M
|
|
29779
29784
|
}), /* @__PURE__ */ jsx(Dropdown, {
|
|
29780
|
-
overlay:
|
|
29781
|
-
onVisibleChange:
|
|
29785
|
+
overlay: $,
|
|
29786
|
+
onVisibleChange: S,
|
|
29782
29787
|
visible: c,
|
|
29783
29788
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
29784
29789
|
style: {
|