@gisce/react-ooui 1.1.16 → 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/helpers/formHelper.d.ts +2 -1
- package/dist/helpers/formHelper.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 +1015 -993
- 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/dist/widgets/views/Form.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/actionbar/FormActionBar.tsx +11 -3
- package/src/helpers/formHelper.ts +21 -2
- 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/src/widgets/views/Form.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"),
|
|
@@ -15912,12 +15915,28 @@ const Image = (e) => {
|
|
|
15912
15915
|
}), t);
|
|
15913
15916
|
}, getOnChangePayload = ({
|
|
15914
15917
|
onChangeFieldActionArgs: e,
|
|
15915
|
-
values: t
|
|
15918
|
+
values: t,
|
|
15919
|
+
parentValues: n = {}
|
|
15916
15920
|
}) => {
|
|
15917
|
-
const
|
|
15918
|
-
return e.forEach((
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
+
const r = {};
|
|
15922
|
+
return e.forEach((o) => {
|
|
15923
|
+
const a = o.split("");
|
|
15924
|
+
if (o === "True")
|
|
15925
|
+
r[o] = !0;
|
|
15926
|
+
else if (o === "False")
|
|
15927
|
+
r[o] = !1;
|
|
15928
|
+
else if (t[o])
|
|
15929
|
+
r[o] = t[o];
|
|
15930
|
+
else if (a[0] === "'" && a[a.length - 1] === "'" && a.filter((s) => s === "'").length === 2)
|
|
15931
|
+
r[o] = o.replace(/'/g, "");
|
|
15932
|
+
else if (a.includes("'"))
|
|
15933
|
+
r[o] = o;
|
|
15934
|
+
else if (o.indexOf("parent.") !== -1) {
|
|
15935
|
+
const s = o.replace("parent.", "");
|
|
15936
|
+
r[o] = n[s] || !1;
|
|
15937
|
+
} else
|
|
15938
|
+
r[o] = !1;
|
|
15939
|
+
}), r;
|
|
15921
15940
|
}, mergeSearchFields = (e) => {
|
|
15922
15941
|
const t = {
|
|
15923
15942
|
primary: [],
|
|
@@ -15993,7 +16012,7 @@ const transformPlainMany2Ones = ({
|
|
|
15993
16012
|
let b = [];
|
|
15994
16013
|
try {
|
|
15995
16014
|
if (m && (b = [["id", "in", a]]), n.domain) {
|
|
15996
|
-
const
|
|
16015
|
+
const S = await ConnectionProvider.getHandler().evalDomain({
|
|
15997
16016
|
domain: n.domain,
|
|
15998
16017
|
values: transformPlainMany2Ones({
|
|
15999
16018
|
fields: x == null ? void 0 : x.getFields(),
|
|
@@ -16002,7 +16021,7 @@ const transformPlainMany2Ones = ({
|
|
|
16002
16021
|
fields: x == null ? void 0 : x.getFields(),
|
|
16003
16022
|
context: x.getContext()
|
|
16004
16023
|
});
|
|
16005
|
-
b = [...b, ...
|
|
16024
|
+
b = [...b, ...S];
|
|
16006
16025
|
}
|
|
16007
16026
|
const w = (await ConnectionProvider.getHandler().search({
|
|
16008
16027
|
model: p,
|
|
@@ -16012,12 +16031,12 @@ const transformPlainMany2Ones = ({
|
|
|
16012
16031
|
...g == null ? void 0 : g(),
|
|
16013
16032
|
...h
|
|
16014
16033
|
}
|
|
16015
|
-
})).map((
|
|
16016
|
-
const
|
|
16017
|
-
let k =
|
|
16018
|
-
return Array.isArray(
|
|
16034
|
+
})).map((S) => {
|
|
16035
|
+
const T = S[v];
|
|
16036
|
+
let k = T;
|
|
16037
|
+
return Array.isArray(T) && (k = T[1]), {
|
|
16019
16038
|
label: k,
|
|
16020
|
-
value:
|
|
16039
|
+
value: S.id
|
|
16021
16040
|
};
|
|
16022
16041
|
});
|
|
16023
16042
|
c(w);
|
|
@@ -16028,16 +16047,16 @@ const transformPlainMany2Ones = ({
|
|
|
16028
16047
|
}
|
|
16029
16048
|
}
|
|
16030
16049
|
const y = (b) => {
|
|
16031
|
-
const E = o.map((
|
|
16032
|
-
...
|
|
16050
|
+
const E = o.map((S) => b.includes(S.id) ? S.operation == "pendingRemove" ? {
|
|
16051
|
+
...S,
|
|
16033
16052
|
operation: "pendingLink"
|
|
16034
|
-
} :
|
|
16035
|
-
id:
|
|
16053
|
+
} : S : {
|
|
16054
|
+
id: S.id,
|
|
16036
16055
|
operation: "pendingRemove"
|
|
16037
|
-
}), w = E.map((
|
|
16038
|
-
b.filter((
|
|
16056
|
+
}), w = E.map((S) => S.id);
|
|
16057
|
+
b.filter((S) => !w.includes(S)).map((S) => {
|
|
16039
16058
|
E.push({
|
|
16040
|
-
id:
|
|
16059
|
+
id: S,
|
|
16041
16060
|
operation: "pendingLink"
|
|
16042
16061
|
});
|
|
16043
16062
|
}), I(E);
|
|
@@ -16045,18 +16064,18 @@ const transformPlainMany2Ones = ({
|
|
|
16045
16064
|
const {
|
|
16046
16065
|
label: E,
|
|
16047
16066
|
closable: w,
|
|
16048
|
-
onClose:
|
|
16049
|
-
} = b,
|
|
16067
|
+
onClose: S
|
|
16068
|
+
} = b, T = (k) => {
|
|
16050
16069
|
k.preventDefault(), k.stopPropagation();
|
|
16051
16070
|
};
|
|
16052
16071
|
return /* @__PURE__ */ jsx(Tag, {
|
|
16053
16072
|
color: colorFromString(E),
|
|
16054
|
-
onMouseDown:
|
|
16073
|
+
onMouseDown: T,
|
|
16055
16074
|
style: {
|
|
16056
16075
|
margin: "5px"
|
|
16057
16076
|
},
|
|
16058
16077
|
closable: w,
|
|
16059
|
-
onClose:
|
|
16078
|
+
onClose: S,
|
|
16060
16079
|
children: E
|
|
16061
16080
|
});
|
|
16062
16081
|
};
|
|
@@ -16447,7 +16466,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16447
16466
|
setLimit: O,
|
|
16448
16467
|
searchParams: b = [],
|
|
16449
16468
|
setSearchValues: E
|
|
16450
|
-
} = 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) => {
|
|
16451
16470
|
x == null || x([...J]), z([...J]);
|
|
16452
16471
|
}, []), A = useCallback(() => g || G, [g, G]), j = useCallback(async () => {
|
|
16453
16472
|
const J = await ConnectionProvider.getHandler().nameSearch({
|
|
@@ -16536,11 +16555,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16536
16555
|
), X = useCallback(
|
|
16537
16556
|
async (J) => {
|
|
16538
16557
|
try {
|
|
16539
|
-
|
|
16558
|
+
S(!0), s == null || s(!0), c && !l.current ? await j() : await K(J);
|
|
16540
16559
|
} catch (ee) {
|
|
16541
16560
|
D(ee.message);
|
|
16542
16561
|
} finally {
|
|
16543
|
-
|
|
16562
|
+
S(!1), k(!1), s == null || s(!1);
|
|
16544
16563
|
}
|
|
16545
16564
|
},
|
|
16546
16565
|
[
|
|
@@ -16559,7 +16578,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16559
16578
|
P,
|
|
16560
16579
|
D,
|
|
16561
16580
|
k,
|
|
16562
|
-
|
|
16581
|
+
S,
|
|
16563
16582
|
s,
|
|
16564
16583
|
h,
|
|
16565
16584
|
f
|
|
@@ -16575,10 +16594,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16575
16594
|
P(ee);
|
|
16576
16595
|
},
|
|
16577
16596
|
[m, A, f, p, P]
|
|
16578
|
-
),
|
|
16597
|
+
), _ = useCallback(
|
|
16579
16598
|
(J) => {
|
|
16580
16599
|
const { params: ee, searchValues: oe, limit: le, offset: ae } = J;
|
|
16581
|
-
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({
|
|
16582
16601
|
params: ee,
|
|
16583
16602
|
newOffset: ae
|
|
16584
16603
|
}));
|
|
@@ -16593,22 +16612,22 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16593
16612
|
D,
|
|
16594
16613
|
L,
|
|
16595
16614
|
O,
|
|
16596
|
-
|
|
16615
|
+
N,
|
|
16597
16616
|
X
|
|
16598
16617
|
]
|
|
16599
16618
|
), Y = useCallback(
|
|
16600
16619
|
(J) => {
|
|
16601
|
-
|
|
16620
|
+
S(!0), L(J), N((J - 1) * y);
|
|
16602
16621
|
},
|
|
16603
|
-
[
|
|
16622
|
+
[S, y, N, L]
|
|
16604
16623
|
), Q = useCallback(() => {
|
|
16605
|
-
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));
|
|
16606
16625
|
}, [
|
|
16607
16626
|
w,
|
|
16608
16627
|
n,
|
|
16609
16628
|
o,
|
|
16610
16629
|
D,
|
|
16611
|
-
|
|
16630
|
+
N,
|
|
16612
16631
|
L,
|
|
16613
16632
|
O,
|
|
16614
16633
|
y
|
|
@@ -16625,12 +16644,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16625
16644
|
[f, t, u, A, P]
|
|
16626
16645
|
);
|
|
16627
16646
|
return {
|
|
16628
|
-
submit:
|
|
16647
|
+
submit: _,
|
|
16629
16648
|
clear: Q,
|
|
16630
16649
|
fetchResults: X,
|
|
16631
16650
|
tableRefreshing: w,
|
|
16632
|
-
searchFilterLoading:
|
|
16633
|
-
searchError:
|
|
16651
|
+
searchFilterLoading: T,
|
|
16652
|
+
searchError: $,
|
|
16634
16653
|
page: M,
|
|
16635
16654
|
offset: q,
|
|
16636
16655
|
limit: y,
|
|
@@ -16667,13 +16686,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16667
16686
|
searchTreeNameSearch: b,
|
|
16668
16687
|
setSearchTreeNameSearch: E,
|
|
16669
16688
|
goToResourceId: w,
|
|
16670
|
-
limit:
|
|
16671
|
-
} = 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);
|
|
16672
16691
|
useEffect(() => {
|
|
16673
16692
|
p && p.length > 0 && !h && (m == null || m(0), d == null || d(p[0].id));
|
|
16674
16693
|
}, [p]), useEffect(() => {
|
|
16675
|
-
ne(
|
|
16676
|
-
}, [
|
|
16694
|
+
ne(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1);
|
|
16695
|
+
}, [S]), useEffect(() => {
|
|
16677
16696
|
a.length === 1 ? F(a[0]) : a.length > 1 && F(a.filter((ee) => ee.view_id !== n.view_id)[0]);
|
|
16678
16697
|
}, [a]), useEffect(() => {
|
|
16679
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]);
|
|
@@ -16688,9 +16707,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16688
16707
|
currentView: n,
|
|
16689
16708
|
setCurrentView: o,
|
|
16690
16709
|
availableViews: a,
|
|
16691
|
-
formIsSaving:
|
|
16710
|
+
formIsSaving: T,
|
|
16692
16711
|
setFormIsSaving: k,
|
|
16693
|
-
formHasChanges:
|
|
16712
|
+
formHasChanges: $,
|
|
16694
16713
|
setFormHasChanges: D,
|
|
16695
16714
|
formRef: s,
|
|
16696
16715
|
searchTreeRef: c,
|
|
@@ -16706,7 +16725,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16706
16725
|
removingItem: M,
|
|
16707
16726
|
setRemovingItem: L,
|
|
16708
16727
|
formIsLoading: q,
|
|
16709
|
-
setFormIsLoading:
|
|
16728
|
+
setFormIsLoading: N,
|
|
16710
16729
|
treeIsLoading: B,
|
|
16711
16730
|
setTreeIsLoading: U,
|
|
16712
16731
|
attachments: G,
|
|
@@ -16730,7 +16749,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16730
16749
|
previousView: X,
|
|
16731
16750
|
setPreviousView: F,
|
|
16732
16751
|
goToResourceId: w,
|
|
16733
|
-
searchValues:
|
|
16752
|
+
searchValues: _,
|
|
16734
16753
|
setSearchValues: Y,
|
|
16735
16754
|
limit: Q,
|
|
16736
16755
|
setLimit: ne
|
|
@@ -16788,11 +16807,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16788
16807
|
async function x(E) {
|
|
16789
16808
|
const {
|
|
16790
16809
|
reportData: w,
|
|
16791
|
-
fields:
|
|
16792
|
-
values:
|
|
16810
|
+
fields: S,
|
|
16811
|
+
values: T,
|
|
16793
16812
|
context: k = {}
|
|
16794
16813
|
} = E, {
|
|
16795
|
-
context:
|
|
16814
|
+
context: $,
|
|
16796
16815
|
model: D,
|
|
16797
16816
|
datas: M = {},
|
|
16798
16817
|
report_name: L,
|
|
@@ -16803,14 +16822,14 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16803
16822
|
return;
|
|
16804
16823
|
}
|
|
16805
16824
|
const {
|
|
16806
|
-
ids:
|
|
16825
|
+
ids: N
|
|
16807
16826
|
} = M || {};
|
|
16808
|
-
let B =
|
|
16809
|
-
const U = typeof
|
|
16810
|
-
context:
|
|
16811
|
-
fields:
|
|
16812
|
-
values:
|
|
16813
|
-
}) :
|
|
16827
|
+
let B = N || [];
|
|
16828
|
+
const U = typeof $ == "string" ? parseContext({
|
|
16829
|
+
context: $,
|
|
16830
|
+
fields: S,
|
|
16831
|
+
values: T
|
|
16832
|
+
}) : $;
|
|
16814
16833
|
try {
|
|
16815
16834
|
const G = await ConnectionProvider.getHandler().createReport({
|
|
16816
16835
|
model: D,
|
|
@@ -16836,58 +16855,58 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16836
16855
|
id: E
|
|
16837
16856
|
}), w.state && a.current === !0) {
|
|
16838
16857
|
a.current = !1, clearInterval(o.current), c(!1);
|
|
16839
|
-
const
|
|
16840
|
-
openBase64InNewTab(w.result,
|
|
16858
|
+
const S = await getMimeType(w.result);
|
|
16859
|
+
openBase64InNewTab(w.result, S.mime);
|
|
16841
16860
|
}
|
|
16842
|
-
} catch (
|
|
16843
|
-
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);
|
|
16844
16863
|
}
|
|
16845
16864
|
}
|
|
16846
16865
|
async function I({
|
|
16847
16866
|
actionData: E,
|
|
16848
16867
|
fields: w,
|
|
16849
|
-
values:
|
|
16850
|
-
context:
|
|
16868
|
+
values: S,
|
|
16869
|
+
context: T,
|
|
16851
16870
|
onRefreshParentValues: k
|
|
16852
16871
|
}) {
|
|
16853
16872
|
const {
|
|
16854
|
-
type:
|
|
16873
|
+
type: $
|
|
16855
16874
|
} = E;
|
|
16856
|
-
return d.current.push(k),
|
|
16875
|
+
return d.current.push(k), $ === "ir.actions.report.xml" ? await x({
|
|
16857
16876
|
reportData: E,
|
|
16858
16877
|
fields: w,
|
|
16859
|
-
values:
|
|
16860
|
-
context:
|
|
16861
|
-
}) :
|
|
16878
|
+
values: S,
|
|
16879
|
+
context: T
|
|
16880
|
+
}) : $ === "ir.actions.act_window" ? await C({
|
|
16862
16881
|
actionData: E,
|
|
16863
16882
|
fields: w,
|
|
16864
|
-
values:
|
|
16865
|
-
context:
|
|
16866
|
-
}) : (showDialog$8(`${
|
|
16883
|
+
values: S,
|
|
16884
|
+
context: T
|
|
16885
|
+
}) : (showDialog$8(`${$} action not supported`), {});
|
|
16867
16886
|
}
|
|
16868
16887
|
async function C({
|
|
16869
16888
|
actionData: E,
|
|
16870
16889
|
fields: w = {},
|
|
16871
|
-
values:
|
|
16872
|
-
context:
|
|
16890
|
+
values: S = {},
|
|
16891
|
+
context: T = {}
|
|
16873
16892
|
}) {
|
|
16874
16893
|
var L;
|
|
16875
16894
|
let k = E;
|
|
16876
16895
|
E.res_model || (k = (await ConnectionProvider.getHandler().readObjects({
|
|
16877
16896
|
model: "ir.actions.act_window",
|
|
16878
16897
|
ids: [parseInt(E.id)],
|
|
16879
|
-
context:
|
|
16898
|
+
context: T
|
|
16880
16899
|
}))[0]);
|
|
16881
16900
|
const D = {
|
|
16882
16901
|
...typeof (k == null ? void 0 : k.context) == "string" ? parseContext({
|
|
16883
16902
|
context: k.context,
|
|
16884
16903
|
fields: w,
|
|
16885
16904
|
values: {
|
|
16886
|
-
...
|
|
16905
|
+
...S,
|
|
16887
16906
|
...r
|
|
16888
16907
|
}
|
|
16889
16908
|
}) : k.context,
|
|
16890
|
-
...
|
|
16909
|
+
...T
|
|
16891
16910
|
};
|
|
16892
16911
|
let M = [];
|
|
16893
16912
|
if (k.domain && (M = await ConnectionProvider.getHandler().evalDomain({
|
|
@@ -16895,7 +16914,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16895
16914
|
values: transformPlainMany2Ones({
|
|
16896
16915
|
fields: w,
|
|
16897
16916
|
values: {
|
|
16898
|
-
...
|
|
16917
|
+
...S,
|
|
16899
16918
|
...r
|
|
16900
16919
|
}
|
|
16901
16920
|
}),
|
|
@@ -16916,8 +16935,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16916
16935
|
}), {};
|
|
16917
16936
|
} else {
|
|
16918
16937
|
let q;
|
|
16919
|
-
const
|
|
16920
|
-
for (const U of
|
|
16938
|
+
const N = k.view_mode.split(","), B = [];
|
|
16939
|
+
for (const U of N) {
|
|
16921
16940
|
const G = await ConnectionProvider.getHandler().getView({
|
|
16922
16941
|
model: k.res_model,
|
|
16923
16942
|
type: U,
|
|
@@ -16955,29 +16974,29 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16955
16974
|
function y({
|
|
16956
16975
|
domain: E,
|
|
16957
16976
|
model: w,
|
|
16958
|
-
formView:
|
|
16959
|
-
context:
|
|
16977
|
+
formView: S,
|
|
16978
|
+
context: T,
|
|
16960
16979
|
actionData: k
|
|
16961
16980
|
}) {
|
|
16962
16981
|
p ? O({
|
|
16963
16982
|
domain: E,
|
|
16964
16983
|
model: w,
|
|
16965
|
-
formView:
|
|
16966
|
-
context:
|
|
16984
|
+
formView: S,
|
|
16985
|
+
context: T,
|
|
16967
16986
|
actionData: k
|
|
16968
16987
|
}) : (v({
|
|
16969
16988
|
domain: E,
|
|
16970
16989
|
model: w,
|
|
16971
|
-
context:
|
|
16972
|
-
formView:
|
|
16990
|
+
context: T,
|
|
16991
|
+
formView: S,
|
|
16973
16992
|
actionData: k
|
|
16974
16993
|
}), h(!0));
|
|
16975
16994
|
}
|
|
16976
16995
|
async function O({
|
|
16977
16996
|
domain: E,
|
|
16978
16997
|
model: w,
|
|
16979
|
-
formView:
|
|
16980
|
-
context:
|
|
16998
|
+
formView: S,
|
|
16999
|
+
context: T,
|
|
16981
17000
|
actionData: k
|
|
16982
17001
|
}) {
|
|
16983
17002
|
v({
|
|
@@ -16986,11 +17005,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16986
17005
|
context: {},
|
|
16987
17006
|
formView: void 0,
|
|
16988
17007
|
actionData: void 0
|
|
16989
|
-
}), h(!1), await new Promise((
|
|
17008
|
+
}), h(!1), await new Promise(($) => setTimeout($, 300)), v({
|
|
16990
17009
|
domain: E,
|
|
16991
17010
|
model: w,
|
|
16992
|
-
context:
|
|
16993
|
-
formView:
|
|
17011
|
+
context: T,
|
|
17012
|
+
formView: S,
|
|
16994
17013
|
actionData: k
|
|
16995
17014
|
}), h(!0);
|
|
16996
17015
|
}
|
|
@@ -17068,15 +17087,15 @@ function Form(e, t) {
|
|
|
17068
17087
|
forcedValues: b = {}
|
|
17069
17088
|
} = e, {
|
|
17070
17089
|
lang: E
|
|
17071
|
-
} = 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), {
|
|
17072
17091
|
activeId: F
|
|
17073
|
-
} = X || {},
|
|
17092
|
+
} = X || {}, _ = useContext(ActionViewContext), {
|
|
17074
17093
|
setFormIsSaving: Y = void 0,
|
|
17075
17094
|
setFormHasChanges: Q = void 0,
|
|
17076
17095
|
setCurrentId: ne = void 0,
|
|
17077
17096
|
setFormIsLoading: J = void 0,
|
|
17078
17097
|
setAttachments: ee = void 0
|
|
17079
|
-
} = (y ?
|
|
17098
|
+
} = (y ? _ : {}) || {}, oe = useContext(ContentRootContext), {
|
|
17080
17099
|
processAction: le,
|
|
17081
17100
|
globalValues: ae
|
|
17082
17101
|
} = oe || {};
|
|
@@ -17097,7 +17116,7 @@ function Form(e, t) {
|
|
|
17097
17116
|
V.current = void 0, D(void 0);
|
|
17098
17117
|
return;
|
|
17099
17118
|
}
|
|
17100
|
-
(r === void 0 &&
|
|
17119
|
+
(r === void 0 && N || r !== void 0 && N && r < 0) && (V.current = void 0, D(void 0)), Fe();
|
|
17101
17120
|
}
|
|
17102
17121
|
}, [r, n, h, m, C]), useEffect(() => {
|
|
17103
17122
|
W && (De({
|
|
@@ -17115,11 +17134,11 @@ function Form(e, t) {
|
|
|
17115
17134
|
return r || V.current;
|
|
17116
17135
|
}
|
|
17117
17136
|
function Ie() {
|
|
17118
|
-
return
|
|
17137
|
+
return N;
|
|
17119
17138
|
}
|
|
17120
17139
|
function he() {
|
|
17121
17140
|
const re = {
|
|
17122
|
-
...ge(
|
|
17141
|
+
...ge(N),
|
|
17123
17142
|
...be()
|
|
17124
17143
|
};
|
|
17125
17144
|
for (const te in re)
|
|
@@ -17136,7 +17155,7 @@ function Form(e, t) {
|
|
|
17136
17155
|
}
|
|
17137
17156
|
function ve() {
|
|
17138
17157
|
const re = {
|
|
17139
|
-
...ge(
|
|
17158
|
+
...ge(N)
|
|
17140
17159
|
};
|
|
17141
17160
|
for (const te in re)
|
|
17142
17161
|
re[te] === void 0 && delete re[te];
|
|
@@ -17145,7 +17164,7 @@ function Form(e, t) {
|
|
|
17145
17164
|
function Te() {
|
|
17146
17165
|
return {
|
|
17147
17166
|
...g,
|
|
17148
|
-
|
|
17167
|
+
...$ == null ? void 0 : $.context
|
|
17149
17168
|
};
|
|
17150
17169
|
}
|
|
17151
17170
|
function be() {
|
|
@@ -17158,7 +17177,7 @@ function Form(e, t) {
|
|
|
17158
17177
|
};
|
|
17159
17178
|
}
|
|
17160
17179
|
const se = async (re) => {
|
|
17161
|
-
const te = de() ?
|
|
17180
|
+
const te = de() ? $ == null ? void 0 : $.context : {};
|
|
17162
17181
|
return await ConnectionProvider.getHandler().defaultGet({
|
|
17163
17182
|
model: n,
|
|
17164
17183
|
fields: re,
|
|
@@ -17170,18 +17189,18 @@ function Form(e, t) {
|
|
|
17170
17189
|
});
|
|
17171
17190
|
}, ce = () => Object.keys(getTouchedValues({
|
|
17172
17191
|
source: H.current,
|
|
17173
|
-
target: ge(
|
|
17174
|
-
fields:
|
|
17192
|
+
target: ge(N),
|
|
17193
|
+
fields: N
|
|
17175
17194
|
})).length !== 0, ge = (re) => {
|
|
17176
17195
|
const te = M.getFieldsValue(!0);
|
|
17177
17196
|
return processValues(te, re);
|
|
17178
17197
|
}, ye = (re, te) => {
|
|
17179
17198
|
Ae({
|
|
17180
17199
|
values: {
|
|
17181
|
-
...processValues(M.getFieldsValue(!0),
|
|
17200
|
+
...processValues(M.getFieldsValue(!0), N),
|
|
17182
17201
|
[re]: te
|
|
17183
17202
|
},
|
|
17184
|
-
fields:
|
|
17203
|
+
fields: N,
|
|
17185
17204
|
reset: !1
|
|
17186
17205
|
});
|
|
17187
17206
|
}, Oe = (re) => M.getFieldsValue(!0)[re];
|
|
@@ -17213,7 +17232,7 @@ function Form(e, t) {
|
|
|
17213
17232
|
}
|
|
17214
17233
|
}, Re = async (re) => {
|
|
17215
17234
|
let te, ue, fe, xe;
|
|
17216
|
-
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 : {
|
|
17217
17236
|
values: te,
|
|
17218
17237
|
defaultGetCalled: xe
|
|
17219
17238
|
} = await Ne({
|
|
@@ -17309,8 +17328,8 @@ function Form(e, t) {
|
|
|
17309
17328
|
if (de()) {
|
|
17310
17329
|
const ue = getTouchedValues({
|
|
17311
17330
|
source: H.current,
|
|
17312
|
-
target: ge(
|
|
17313
|
-
fields:
|
|
17331
|
+
target: ge(N),
|
|
17332
|
+
fields: N
|
|
17314
17333
|
});
|
|
17315
17334
|
await ConnectionProvider.getHandler().update({
|
|
17316
17335
|
model: n,
|
|
@@ -17319,23 +17338,23 @@ function Form(e, t) {
|
|
|
17319
17338
|
...ue,
|
|
17320
17339
|
...b
|
|
17321
17340
|
},
|
|
17322
|
-
fields:
|
|
17341
|
+
fields: N,
|
|
17323
17342
|
context: {
|
|
17324
17343
|
...g,
|
|
17325
|
-
|
|
17344
|
+
...$ == null ? void 0 : $.context
|
|
17326
17345
|
}
|
|
17327
|
-
}), H.current = ge(
|
|
17346
|
+
}), H.current = ge(N);
|
|
17328
17347
|
} else {
|
|
17329
|
-
const ue = ge(
|
|
17348
|
+
const ue = ge(N), fe = await ConnectionProvider.getHandler().create({
|
|
17330
17349
|
model: n,
|
|
17331
17350
|
values: {
|
|
17332
17351
|
...ue,
|
|
17333
17352
|
...b
|
|
17334
17353
|
},
|
|
17335
|
-
fields:
|
|
17354
|
+
fields: N,
|
|
17336
17355
|
context: {
|
|
17337
17356
|
...g,
|
|
17338
|
-
|
|
17357
|
+
...$ == null ? void 0 : $.context
|
|
17339
17358
|
}
|
|
17340
17359
|
});
|
|
17341
17360
|
V.current = fe, H.current = ue;
|
|
@@ -17355,17 +17374,17 @@ function Form(e, t) {
|
|
|
17355
17374
|
return j.current = !1, Q == null || Q(!1), me == null || me(), !0;
|
|
17356
17375
|
if (await Se())
|
|
17357
17376
|
return j.current = !1, showDialog$5(E), !1;
|
|
17358
|
-
|
|
17377
|
+
S(!0), Y == null || Y(!0);
|
|
17359
17378
|
try {
|
|
17360
17379
|
p === "api" ? await qe(re) : await je(re), f && (V.current = void 0, Ae({
|
|
17361
17380
|
values: {},
|
|
17362
|
-
fields:
|
|
17381
|
+
fields: N,
|
|
17363
17382
|
reset: !0
|
|
17364
17383
|
})), await Re(), te = !0;
|
|
17365
17384
|
} catch (fe) {
|
|
17366
|
-
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);
|
|
17367
17386
|
} finally {
|
|
17368
|
-
j.current = !1, Y == null || Y(!1),
|
|
17387
|
+
j.current = !1, Y == null || Y(!1), S(!1);
|
|
17369
17388
|
}
|
|
17370
17389
|
return te;
|
|
17371
17390
|
}, Me = ({
|
|
@@ -17389,18 +17408,18 @@ function Form(e, t) {
|
|
|
17389
17408
|
return;
|
|
17390
17409
|
const te = getTouchedValues({
|
|
17391
17410
|
source: P.current,
|
|
17392
|
-
target: ge(
|
|
17393
|
-
fields:
|
|
17411
|
+
target: ge(N),
|
|
17412
|
+
fields: N
|
|
17394
17413
|
}), ue = Object.keys(te);
|
|
17395
17414
|
if (ue.length !== 0) {
|
|
17396
17415
|
if (checkFieldsType({
|
|
17397
17416
|
changedFields: ue,
|
|
17398
|
-
fields:
|
|
17417
|
+
fields: N,
|
|
17399
17418
|
types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
|
|
17400
17419
|
}) && re !== !0)
|
|
17401
17420
|
return;
|
|
17402
17421
|
{
|
|
17403
|
-
const fe = processValues(M.getFieldsValue(!0),
|
|
17422
|
+
const fe = processValues(M.getFieldsValue(!0), N);
|
|
17404
17423
|
P.current = fe, l == null || l(fe), Q == null || Q(!0), Ue(ue);
|
|
17405
17424
|
}
|
|
17406
17425
|
}
|
|
@@ -17414,43 +17433,44 @@ function Form(e, t) {
|
|
|
17414
17433
|
showDialog$8(te);
|
|
17415
17434
|
}
|
|
17416
17435
|
}, He = async (re) => {
|
|
17417
|
-
const te =
|
|
17436
|
+
const te = $ == null ? void 0 : $.onChangeFields[re];
|
|
17418
17437
|
if (!te) {
|
|
17419
17438
|
Me({
|
|
17420
|
-
fields:
|
|
17439
|
+
fields: N,
|
|
17421
17440
|
arch: L,
|
|
17422
|
-
values: ge(
|
|
17441
|
+
values: ge(N)
|
|
17423
17442
|
});
|
|
17424
17443
|
return;
|
|
17425
17444
|
}
|
|
17426
17445
|
const ue = getOnChangePayload({
|
|
17427
17446
|
values: {
|
|
17428
|
-
...ge(
|
|
17447
|
+
...ge(N),
|
|
17429
17448
|
context: {
|
|
17430
17449
|
...g,
|
|
17431
|
-
|
|
17450
|
+
...$ == null ? void 0 : $.context
|
|
17432
17451
|
}
|
|
17433
17452
|
},
|
|
17453
|
+
parentValues: getParentPlainValues == null ? void 0 : getParentPlainValues(),
|
|
17434
17454
|
onChangeFieldActionArgs: te.args
|
|
17435
17455
|
}), fe = await ConnectionProvider.getHandler().executeOnChange({
|
|
17436
17456
|
model: n,
|
|
17437
17457
|
action: te.method,
|
|
17438
17458
|
ids: de() ? [de()] : [],
|
|
17439
17459
|
payload: ue,
|
|
17440
|
-
fields:
|
|
17460
|
+
fields: N
|
|
17441
17461
|
});
|
|
17442
17462
|
if (fe.value) {
|
|
17443
17463
|
const xe = {
|
|
17444
|
-
...ge(
|
|
17464
|
+
...ge(N),
|
|
17445
17465
|
...fe.value
|
|
17446
17466
|
};
|
|
17447
17467
|
Me({
|
|
17448
|
-
fields:
|
|
17468
|
+
fields: N,
|
|
17449
17469
|
arch: L,
|
|
17450
17470
|
values: xe
|
|
17451
17471
|
}), Ae({
|
|
17452
17472
|
values: xe,
|
|
17453
|
-
fields:
|
|
17473
|
+
fields: N,
|
|
17454
17474
|
reset: !1
|
|
17455
17475
|
});
|
|
17456
17476
|
}
|
|
@@ -17466,7 +17486,7 @@ function Form(e, t) {
|
|
|
17466
17486
|
if (fe.domain && Object.keys(fe.domain).length > 0) {
|
|
17467
17487
|
const xe = mergeFieldsDomain({
|
|
17468
17488
|
fieldsDomain: fe.domain,
|
|
17469
|
-
fields:
|
|
17489
|
+
fields: N
|
|
17470
17490
|
});
|
|
17471
17491
|
Me({
|
|
17472
17492
|
fields: xe,
|
|
@@ -17485,7 +17505,7 @@ function Form(e, t) {
|
|
|
17485
17505
|
payload: [de()],
|
|
17486
17506
|
context: {
|
|
17487
17507
|
...te,
|
|
17488
|
-
|
|
17508
|
+
...$ == null ? void 0 : $.context,
|
|
17489
17509
|
...g
|
|
17490
17510
|
}
|
|
17491
17511
|
});
|
|
@@ -17497,7 +17517,7 @@ function Form(e, t) {
|
|
|
17497
17517
|
let fe = {};
|
|
17498
17518
|
ue.context && (fe = parseContext({
|
|
17499
17519
|
context: ue.context,
|
|
17500
|
-
fields:
|
|
17520
|
+
fields: N,
|
|
17501
17521
|
values: he()
|
|
17502
17522
|
})), await $e({
|
|
17503
17523
|
actionData: ue,
|
|
@@ -17541,11 +17561,11 @@ function Form(e, t) {
|
|
|
17541
17561
|
closeParent: ue
|
|
17542
17562
|
} = await (le == null ? void 0 : le({
|
|
17543
17563
|
actionData: re,
|
|
17544
|
-
fields:
|
|
17564
|
+
fields: N,
|
|
17545
17565
|
values: he(),
|
|
17546
17566
|
context: {
|
|
17547
17567
|
...g,
|
|
17548
|
-
|
|
17568
|
+
...$ == null ? void 0 : $.context,
|
|
17549
17569
|
...te
|
|
17550
17570
|
},
|
|
17551
17571
|
onRefreshParentValues: () => {
|
|
@@ -17588,7 +17608,7 @@ function Form(e, t) {
|
|
|
17588
17608
|
showDialog$8(fe);
|
|
17589
17609
|
}
|
|
17590
17610
|
}
|
|
17591
|
-
const Ze = () =>
|
|
17611
|
+
const Ze = () => !$ && !T ? /* @__PURE__ */ jsx(Spin, {}) : !n && !m || !C ? null : /* @__PURE__ */ jsx(Fragment, {
|
|
17592
17612
|
children: /* @__PURE__ */ jsx(FormProvider$1, {
|
|
17593
17613
|
getValues: he,
|
|
17594
17614
|
getPlainValues: Ce,
|
|
@@ -17613,8 +17633,8 @@ function Form(e, t) {
|
|
|
17613
17633
|
});
|
|
17614
17634
|
},
|
|
17615
17635
|
component: !1,
|
|
17616
|
-
children:
|
|
17617
|
-
container:
|
|
17636
|
+
children: $ && /* @__PURE__ */ jsx(Container, {
|
|
17637
|
+
container: $.container,
|
|
17618
17638
|
responsiveBehaviour: K
|
|
17619
17639
|
})
|
|
17620
17640
|
})
|
|
@@ -17654,9 +17674,9 @@ function Form(e, t) {
|
|
|
17654
17674
|
}) => /* @__PURE__ */ jsxs("div", {
|
|
17655
17675
|
className: "pb-2",
|
|
17656
17676
|
ref: re,
|
|
17657
|
-
children: [
|
|
17677
|
+
children: [T && /* @__PURE__ */ jsx(Alert, {
|
|
17658
17678
|
className: "mt-10 mb-20",
|
|
17659
|
-
message: JSON.stringify(
|
|
17679
|
+
message: JSON.stringify(T),
|
|
17660
17680
|
type: "error",
|
|
17661
17681
|
banner: !0
|
|
17662
17682
|
}), Ze(), s && Xe()]
|
|
@@ -18137,14 +18157,14 @@ function SearchFilter(e) {
|
|
|
18137
18157
|
const O = () => {
|
|
18138
18158
|
if (!x)
|
|
18139
18159
|
return;
|
|
18140
|
-
const w = I ? x : m,
|
|
18141
|
-
return
|
|
18142
|
-
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, {
|
|
18143
18163
|
xs: 24,
|
|
18144
18164
|
className: "p-2",
|
|
18145
18165
|
xl: 6,
|
|
18146
18166
|
children: /* @__PURE__ */ jsx(SearchField, {
|
|
18147
|
-
field:
|
|
18167
|
+
field: $
|
|
18148
18168
|
})
|
|
18149
18169
|
}, D))
|
|
18150
18170
|
}, k));
|
|
@@ -18156,23 +18176,23 @@ function SearchFilter(e) {
|
|
|
18156
18176
|
}, [t, n]);
|
|
18157
18177
|
const b = O(), E = (w) => {
|
|
18158
18178
|
const {
|
|
18159
|
-
limit:
|
|
18160
|
-
offset:
|
|
18179
|
+
limit: S,
|
|
18180
|
+
offset: T
|
|
18161
18181
|
} = w;
|
|
18162
18182
|
delete w.offset, delete w.limit;
|
|
18163
18183
|
const k = getParamsForFields(w, t);
|
|
18164
18184
|
o({
|
|
18165
18185
|
params: k,
|
|
18166
|
-
offset:
|
|
18167
|
-
limit:
|
|
18186
|
+
offset: T,
|
|
18187
|
+
limit: S,
|
|
18168
18188
|
searchValues: w
|
|
18169
18189
|
});
|
|
18170
18190
|
};
|
|
18171
18191
|
return /* @__PURE__ */ jsx(Measure, {
|
|
18172
18192
|
bounds: !0,
|
|
18173
18193
|
onResize: (w) => {
|
|
18174
|
-
var
|
|
18175
|
-
d == null || d((
|
|
18194
|
+
var S;
|
|
18195
|
+
d == null || d((S = w.bounds) == null ? void 0 : S.height);
|
|
18176
18196
|
},
|
|
18177
18197
|
children: ({
|
|
18178
18198
|
measureRef: w
|
|
@@ -18244,7 +18264,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18244
18264
|
})
|
|
18245
18265
|
});
|
|
18246
18266
|
}, Many2oneSuffix = (e) => {
|
|
18247
|
-
var w,
|
|
18267
|
+
var w, S;
|
|
18248
18268
|
const {
|
|
18249
18269
|
id: t,
|
|
18250
18270
|
model: n,
|
|
@@ -18261,16 +18281,16 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18261
18281
|
async function C() {
|
|
18262
18282
|
u(!0);
|
|
18263
18283
|
try {
|
|
18264
|
-
const
|
|
18284
|
+
const T = await ConnectionProvider.getHandler().getView({
|
|
18265
18285
|
model: n,
|
|
18266
18286
|
type: "form",
|
|
18267
18287
|
context: r
|
|
18268
18288
|
});
|
|
18269
|
-
f(
|
|
18289
|
+
f(T);
|
|
18270
18290
|
const {
|
|
18271
18291
|
fields: k,
|
|
18272
|
-
arch:
|
|
18273
|
-
} =
|
|
18292
|
+
arch: $
|
|
18293
|
+
} = T, D = (await ConnectionProvider.getHandler().readObjects({
|
|
18274
18294
|
model: n,
|
|
18275
18295
|
ids: [t],
|
|
18276
18296
|
fields: k,
|
|
@@ -18280,8 +18300,8 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18280
18300
|
...processValues(D, k),
|
|
18281
18301
|
active_id: t
|
|
18282
18302
|
}), u(!1);
|
|
18283
|
-
} catch (
|
|
18284
|
-
u(!1), showDialog$8(
|
|
18303
|
+
} catch (T) {
|
|
18304
|
+
u(!1), showDialog$8(T);
|
|
18285
18305
|
return;
|
|
18286
18306
|
}
|
|
18287
18307
|
}
|
|
@@ -18298,9 +18318,9 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18298
18318
|
});
|
|
18299
18319
|
if (!d || !d.toolbar)
|
|
18300
18320
|
return /* @__PURE__ */ jsx(Menu, {});
|
|
18301
|
-
const
|
|
18302
|
-
children:
|
|
18303
|
-
},
|
|
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));
|
|
18304
18324
|
return /* @__PURE__ */ jsx(Menu, {
|
|
18305
18325
|
onClick: O,
|
|
18306
18326
|
children: [/* @__PURE__ */ jsx(Menu.Item, {
|
|
@@ -18317,17 +18337,17 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18317
18337
|
children: [" ", m("related")]
|
|
18318
18338
|
})]
|
|
18319
18339
|
}),
|
|
18320
|
-
children:
|
|
18340
|
+
children: T
|
|
18321
18341
|
})]
|
|
18322
18342
|
});
|
|
18323
18343
|
}
|
|
18324
|
-
function O(
|
|
18325
|
-
if (
|
|
18344
|
+
function O(T) {
|
|
18345
|
+
if (T.key === "action")
|
|
18326
18346
|
a(!0);
|
|
18327
|
-
else if (
|
|
18347
|
+
else if (T.key === "print")
|
|
18328
18348
|
c(!0);
|
|
18329
18349
|
else {
|
|
18330
|
-
const k = d.toolbar.relate.find((
|
|
18350
|
+
const k = d.toolbar.relate.find(($) => $.id === parseInt(T.key));
|
|
18331
18351
|
if (!k)
|
|
18332
18352
|
return;
|
|
18333
18353
|
x({
|
|
@@ -18339,9 +18359,9 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18339
18359
|
});
|
|
18340
18360
|
}
|
|
18341
18361
|
}
|
|
18342
|
-
function b(
|
|
18362
|
+
function b(T) {
|
|
18343
18363
|
a(!1), I == null || I({
|
|
18344
|
-
actionData:
|
|
18364
|
+
actionData: T,
|
|
18345
18365
|
values: p,
|
|
18346
18366
|
fields: d.fields,
|
|
18347
18367
|
context: {
|
|
@@ -18350,12 +18370,12 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18350
18370
|
}
|
|
18351
18371
|
});
|
|
18352
18372
|
}
|
|
18353
|
-
function E(
|
|
18373
|
+
function E(T) {
|
|
18354
18374
|
c(!1), I == null || I({
|
|
18355
18375
|
actionData: {
|
|
18356
|
-
...
|
|
18376
|
+
...T,
|
|
18357
18377
|
datas: {
|
|
18358
|
-
...
|
|
18378
|
+
...T.datas || {},
|
|
18359
18379
|
ids: [t]
|
|
18360
18380
|
}
|
|
18361
18381
|
},
|
|
@@ -18371,8 +18391,8 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18371
18391
|
style: {
|
|
18372
18392
|
color: "rgba(0,0,0,.45)"
|
|
18373
18393
|
},
|
|
18374
|
-
onClick: (
|
|
18375
|
-
|
|
18394
|
+
onClick: (T) => {
|
|
18395
|
+
T.preventDefault(), C();
|
|
18376
18396
|
}
|
|
18377
18397
|
})
|
|
18378
18398
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
@@ -18382,7 +18402,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18382
18402
|
onCancel: () => a(!1)
|
|
18383
18403
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
18384
18404
|
visible: s,
|
|
18385
|
-
items: (
|
|
18405
|
+
items: (S = d == null ? void 0 : d.toolbar) == null ? void 0 : S.print,
|
|
18386
18406
|
onItemClicked: E,
|
|
18387
18407
|
onCancel: () => c(!1)
|
|
18388
18408
|
})]
|
|
@@ -18560,7 +18580,7 @@ function Tree(e) {
|
|
|
18560
18580
|
const q = getTableItems(b.current, a);
|
|
18561
18581
|
I(q), w.current = n;
|
|
18562
18582
|
}, [a]);
|
|
18563
|
-
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, {
|
|
18564
18584
|
align: "bottom",
|
|
18565
18585
|
className: "pb-4",
|
|
18566
18586
|
children: [/* @__PURE__ */ jsx(Col, {
|
|
@@ -18580,14 +18600,14 @@ function Tree(e) {
|
|
|
18580
18600
|
});
|
|
18581
18601
|
function D() {
|
|
18582
18602
|
var G;
|
|
18583
|
-
const
|
|
18603
|
+
const N = b.current.columns.filter((z) => z.sum !== void 0).map((z) => ({
|
|
18584
18604
|
label: z.sum,
|
|
18585
18605
|
field: z.id
|
|
18586
18606
|
}));
|
|
18587
|
-
if (
|
|
18607
|
+
if (!N || N.length === 0)
|
|
18588
18608
|
return null;
|
|
18589
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;
|
|
18590
|
-
return
|
|
18610
|
+
return N.forEach((z) => {
|
|
18591
18611
|
const W = U.reduce((Z, V) => V[z.field] && !isNaN(V[z.field]) ? Z + V[z.field] : Z, 0);
|
|
18592
18612
|
B.push(`${z.label}: ${Math.round(W * 100) / 100}`);
|
|
18593
18613
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -18598,15 +18618,15 @@ function Tree(e) {
|
|
|
18598
18618
|
let M, L = f;
|
|
18599
18619
|
if (b.current !== null) {
|
|
18600
18620
|
M = calculateColumnsWidth(C, g, 600);
|
|
18601
|
-
const
|
|
18602
|
-
f &&
|
|
18621
|
+
const N = b.current;
|
|
18622
|
+
f && N.columns.some((B) => B.sum !== void 0) && (L = f - 30);
|
|
18603
18623
|
}
|
|
18604
18624
|
return b.current === null ? /* @__PURE__ */ jsx(Spin, {
|
|
18605
18625
|
style: {
|
|
18606
18626
|
padding: "2rem"
|
|
18607
18627
|
}
|
|
18608
18628
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
18609
|
-
children: [
|
|
18629
|
+
children: [$(), /* @__PURE__ */ jsx(Table, {
|
|
18610
18630
|
height: L,
|
|
18611
18631
|
columns: M.columns,
|
|
18612
18632
|
dataSource: g,
|
|
@@ -18645,12 +18665,12 @@ function SearchTree(e, t) {
|
|
|
18645
18665
|
rootTree: d = !1,
|
|
18646
18666
|
parentContext: f = {},
|
|
18647
18667
|
onChangeSelectedRowKeys: p
|
|
18648
|
-
} = 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(), {
|
|
18649
18669
|
height: D
|
|
18650
18670
|
} = useWindowDimensions(), M = useContext(ContentRootContext), {
|
|
18651
18671
|
processAction: L
|
|
18652
18672
|
} = M || {}, q = useContext(ActionViewContext), {
|
|
18653
|
-
setResults:
|
|
18673
|
+
setResults: N = void 0,
|
|
18654
18674
|
setCurrentItemIndex: B = void 0,
|
|
18655
18675
|
currentId: U = void 0,
|
|
18656
18676
|
results: G = void 0,
|
|
@@ -18665,7 +18685,7 @@ function SearchTree(e, t) {
|
|
|
18665
18685
|
setTotalItems: K = void 0,
|
|
18666
18686
|
setSearchTreeNameSearch: X = void 0,
|
|
18667
18687
|
setTreeIsLoading: F = void 0,
|
|
18668
|
-
searchValues:
|
|
18688
|
+
searchValues: _ = {},
|
|
18669
18689
|
setSearchValues: Y = void 0,
|
|
18670
18690
|
limit: Q = DEFAULT_SEARCH_LIMIT$1,
|
|
18671
18691
|
setLimit: ne = void 0
|
|
@@ -18701,7 +18721,7 @@ function SearchTree(e, t) {
|
|
|
18701
18721
|
sorter: A,
|
|
18702
18722
|
setSorter: j,
|
|
18703
18723
|
setCurrentItemIndex: B,
|
|
18704
|
-
setResultsActionView:
|
|
18724
|
+
setResultsActionView: N,
|
|
18705
18725
|
resultsActionView: G,
|
|
18706
18726
|
domain: l,
|
|
18707
18727
|
currentId: U,
|
|
@@ -18717,11 +18737,11 @@ function SearchTree(e, t) {
|
|
|
18717
18737
|
!v || u && (g.current = !1, oe());
|
|
18718
18738
|
}, [me, ie, v, u, s]);
|
|
18719
18739
|
const be = async () => {
|
|
18720
|
-
x(!1), m(!0),
|
|
18740
|
+
x(!1), m(!0), S(void 0), F == null || F(!0);
|
|
18721
18741
|
try {
|
|
18722
18742
|
await se(), x(!0);
|
|
18723
18743
|
} catch (we) {
|
|
18724
|
-
|
|
18744
|
+
S(we);
|
|
18725
18745
|
} finally {
|
|
18726
18746
|
m(!1), F == null || F(!1);
|
|
18727
18747
|
}
|
|
@@ -18749,12 +18769,12 @@ function SearchTree(e, t) {
|
|
|
18749
18769
|
const {
|
|
18750
18770
|
id: _e
|
|
18751
18771
|
} = we;
|
|
18752
|
-
|
|
18772
|
+
$.current || ($.current = await ConnectionProvider.getHandler().treeButOpen({
|
|
18753
18773
|
id: y.view_id,
|
|
18754
18774
|
model: I,
|
|
18755
18775
|
context: f
|
|
18756
18776
|
}));
|
|
18757
|
-
const Ee =
|
|
18777
|
+
const Ee = $.current[0][2];
|
|
18758
18778
|
await (L == null ? void 0 : L({
|
|
18759
18779
|
actionData: Ee,
|
|
18760
18780
|
fields: y.fields,
|
|
@@ -18788,7 +18808,7 @@ function SearchTree(e, t) {
|
|
|
18788
18808
|
W == null || W(_e), p == null || p(we);
|
|
18789
18809
|
}
|
|
18790
18810
|
function Se() {
|
|
18791
|
-
return y != null && y.isExpandable ? D - 160 : D - (
|
|
18811
|
+
return y != null && y.isExpandable ? D - 160 : D - (T + 210);
|
|
18792
18812
|
}
|
|
18793
18813
|
const Fe = () => !y || !b ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
18794
18814
|
children: [/* @__PURE__ */ jsx(SearchFilter, {
|
|
@@ -18806,7 +18826,7 @@ function SearchTree(e, t) {
|
|
|
18806
18826
|
setSearchFilterHeight: k,
|
|
18807
18827
|
searchError: pe,
|
|
18808
18828
|
searchVisible: H,
|
|
18809
|
-
searchValues:
|
|
18829
|
+
searchValues: _
|
|
18810
18830
|
}), /* @__PURE__ */ jsx(Tree, {
|
|
18811
18831
|
total: Te,
|
|
18812
18832
|
limit: Q,
|
|
@@ -18973,16 +18993,16 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18973
18993
|
domain: u
|
|
18974
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), {
|
|
18975
18995
|
domain: w,
|
|
18976
|
-
getValues:
|
|
18977
|
-
getFields:
|
|
18996
|
+
getValues: S,
|
|
18997
|
+
getFields: T,
|
|
18978
18998
|
getContext: k,
|
|
18979
|
-
setOriginalValue:
|
|
18999
|
+
setOriginalValue: $,
|
|
18980
19000
|
elementHasLostFocus: D
|
|
18981
|
-
} = E || {}, M = useRef([]), [L, q] = useState([]),
|
|
19001
|
+
} = E || {}, M = useRef([]), [L, q] = useState([]), N = t && t[0] || void 0, B = t && t[1] || "";
|
|
18982
19002
|
useEffect(() => {
|
|
18983
19003
|
!Array.isArray(t) && t && Z(t);
|
|
18984
19004
|
}, [t]), useEffect(() => {
|
|
18985
|
-
|
|
19005
|
+
N && B.length === 0 ? Z(N) : N && B.length > 0 ? O(B) : !N && !B && O(b.current || "");
|
|
18986
19006
|
}, [t]);
|
|
18987
19007
|
const U = (A) => {
|
|
18988
19008
|
n == null || n(A), D == null || D();
|
|
@@ -19042,7 +19062,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19042
19062
|
...c
|
|
19043
19063
|
}
|
|
19044
19064
|
});
|
|
19045
|
-
U([A, K[0][1]]), j &&
|
|
19065
|
+
U([A, K[0][1]]), j && $(r.id, [A, K[0][1]]);
|
|
19046
19066
|
} catch (K) {
|
|
19047
19067
|
showDialog$3(K);
|
|
19048
19068
|
} finally {
|
|
@@ -19053,10 +19073,10 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19053
19073
|
u && (M.current = await ConnectionProvider.getHandler().evalDomain({
|
|
19054
19074
|
domain: u,
|
|
19055
19075
|
values: transformPlainMany2Ones({
|
|
19056
|
-
fields:
|
|
19057
|
-
values:
|
|
19076
|
+
fields: T(),
|
|
19077
|
+
values: S()
|
|
19058
19078
|
}),
|
|
19059
|
-
fields:
|
|
19079
|
+
fields: T(),
|
|
19060
19080
|
context: k()
|
|
19061
19081
|
})), w && w.length > 0 && (M.current = M.current.concat(transformDomainForChildWidget({
|
|
19062
19082
|
domain: w,
|
|
@@ -19064,7 +19084,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19064
19084
|
}))), q(M.current);
|
|
19065
19085
|
}
|
|
19066
19086
|
async function H(A) {
|
|
19067
|
-
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, ""]));
|
|
19068
19088
|
}
|
|
19069
19089
|
return /* @__PURE__ */ jsxs(Row, {
|
|
19070
19090
|
gutter: 8,
|
|
@@ -19080,7 +19100,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19080
19100
|
onBlur: z,
|
|
19081
19101
|
onKeyDown: H,
|
|
19082
19102
|
suffix: /* @__PURE__ */ jsx(Many2oneSuffix, {
|
|
19083
|
-
id:
|
|
19103
|
+
id: N,
|
|
19084
19104
|
model: a,
|
|
19085
19105
|
context: {
|
|
19086
19106
|
...k == null ? void 0 : k(),
|
|
@@ -19092,7 +19112,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19092
19112
|
flex: "32px",
|
|
19093
19113
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
19094
19114
|
icon: /* @__PURE__ */ jsx(FolderOpenOutlined, {}),
|
|
19095
|
-
disabled:
|
|
19115
|
+
disabled: N === void 0 || B === "" || y === void 0,
|
|
19096
19116
|
onClick: () => {
|
|
19097
19117
|
m(!0);
|
|
19098
19118
|
},
|
|
@@ -19116,7 +19136,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19116
19136
|
...c
|
|
19117
19137
|
},
|
|
19118
19138
|
visible: f,
|
|
19119
|
-
nameSearch:
|
|
19139
|
+
nameSearch: N ? void 0 : g,
|
|
19120
19140
|
onSelectValues: (A) => {
|
|
19121
19141
|
p(!1), Z(A[0]), C.current = !1, b.current = void 0;
|
|
19122
19142
|
},
|
|
@@ -20278,18 +20298,18 @@ function doAlign(e, t, n, r) {
|
|
|
20278
20298
|
isCompleteFailY(E, h, p) || (d = 1, o = y, a = O, s = b);
|
|
20279
20299
|
}
|
|
20280
20300
|
d && (m = getElFuturePos(h, t, o, a, s), utils.mix(v, m));
|
|
20281
|
-
var w = isFailX(m, h, p),
|
|
20282
|
-
if (w ||
|
|
20283
|
-
var
|
|
20284
|
-
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, {
|
|
20285
20305
|
l: "r",
|
|
20286
20306
|
r: "l"
|
|
20287
|
-
})),
|
|
20307
|
+
})), S && (T = flip(o, /[tb]/gi, {
|
|
20288
20308
|
t: "b",
|
|
20289
20309
|
b: "t"
|
|
20290
|
-
})), o =
|
|
20310
|
+
})), o = T, a = n.offset || [0, 0], s = n.targetOffset || [0, 0];
|
|
20291
20311
|
}
|
|
20292
|
-
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));
|
|
20293
20313
|
}
|
|
20294
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, {
|
|
20295
20315
|
left: v.left,
|
|
@@ -20385,12 +20405,12 @@ var Align = function e(t, n) {
|
|
|
20385
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({});
|
|
20386
20406
|
m.current.disabled = o, m.current.target = a, m.current.onAlign = c;
|
|
20387
20407
|
var v = useBuffer(function() {
|
|
20388
|
-
var b = m.current, E = b.disabled, w = b.target,
|
|
20408
|
+
var b = m.current, E = b.disabled, w = b.target, S = b.onAlign;
|
|
20389
20409
|
if (!E && w) {
|
|
20390
|
-
var
|
|
20391
|
-
f.current.element =
|
|
20410
|
+
var T = p.current, k, $ = getElement(w), D = getPoint(w);
|
|
20411
|
+
f.current.element = $, f.current.point = D;
|
|
20392
20412
|
var M = document, L = M.activeElement;
|
|
20393
|
-
return
|
|
20413
|
+
return $ && isVisible($) ? k = alignElement(T, $, s) : D && (k = alignPoint(T, D, s)), restoreFocus(L, T), S && k && S(T, k), !0;
|
|
20394
20414
|
}
|
|
20395
20415
|
return !1;
|
|
20396
20416
|
}, d), x = _slicedToArray(v, 2), g = x[0], I = x[1], C = React__default.useRef({
|
|
@@ -20494,11 +20514,11 @@ const useVisibleStatus = function(e, t) {
|
|
|
20494
20514
|
return [s, a];
|
|
20495
20515
|
};
|
|
20496
20516
|
var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
20497
|
-
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];
|
|
20498
20518
|
function D() {
|
|
20499
|
-
l &&
|
|
20519
|
+
l && $(p());
|
|
20500
20520
|
}
|
|
20501
|
-
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();
|
|
20502
20522
|
function U() {
|
|
20503
20523
|
return f || p;
|
|
20504
20524
|
}
|
|
@@ -20511,7 +20531,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20511
20531
|
var K = h(j);
|
|
20512
20532
|
w(K), E !== K ? Promise.resolve().then(function() {
|
|
20513
20533
|
G();
|
|
20514
|
-
}) :
|
|
20534
|
+
}) : N(function() {
|
|
20515
20535
|
var X;
|
|
20516
20536
|
(X = B.current) === null || X === void 0 || X.call(B);
|
|
20517
20537
|
}), m == null || m(A, j);
|
|
@@ -20521,7 +20541,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20521
20541
|
["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(A) {
|
|
20522
20542
|
var j = W[A];
|
|
20523
20543
|
W[A] = function(K, X) {
|
|
20524
|
-
return
|
|
20544
|
+
return N(), j == null ? void 0 : j(K, X);
|
|
20525
20545
|
};
|
|
20526
20546
|
});
|
|
20527
20547
|
function Z() {
|
|
@@ -20530,7 +20550,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20530
20550
|
});
|
|
20531
20551
|
}
|
|
20532
20552
|
React.useEffect(function() {
|
|
20533
|
-
!W.motionName && q === "motion" &&
|
|
20553
|
+
!W.motionName && q === "motion" && N();
|
|
20534
20554
|
}, [W.motionName, q]), React.useImperativeHandle(t, function() {
|
|
20535
20555
|
return {
|
|
20536
20556
|
forceAlign: G,
|
|
@@ -20717,12 +20737,12 @@ function generateTrigger(e) {
|
|
|
20717
20737
|
var u = [], d = s.props, f = d.popupPlacement, p = d.builtinPlacements, h = d.prefixCls, m = d.alignPoint, v = d.getPopupClassNameFromAlign;
|
|
20718
20738
|
return f && p && u.push(getAlignPopupClassName(p, h, l, m)), v && u.push(v(l)), u.join(" ");
|
|
20719
20739
|
}, s.getComponent = function() {
|
|
20720
|
-
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 = {};
|
|
20721
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, {
|
|
20722
20742
|
prefixCls: u,
|
|
20723
20743
|
destroyPopupOnHide: d,
|
|
20724
20744
|
visible: k,
|
|
20725
|
-
point: w &&
|
|
20745
|
+
point: w && $,
|
|
20726
20746
|
className: f,
|
|
20727
20747
|
align: D,
|
|
20728
20748
|
onAlign: p,
|
|
@@ -20740,7 +20760,7 @@ function generateTrigger(e) {
|
|
|
20740
20760
|
maskMotion: y,
|
|
20741
20761
|
ref: s.popupRef,
|
|
20742
20762
|
motion: h,
|
|
20743
|
-
mobile:
|
|
20763
|
+
mobile: S,
|
|
20744
20764
|
children: typeof b == "function" ? b() : b
|
|
20745
20765
|
});
|
|
20746
20766
|
}, s.attachParent = function(l) {
|
|
@@ -21051,9 +21071,9 @@ var autoAdjustOverflow = {
|
|
|
21051
21071
|
children: typeof n == "function" ? n() : n
|
|
21052
21072
|
});
|
|
21053
21073
|
}, Tooltip = function e(t, n) {
|
|
21054
|
-
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);
|
|
21055
21075
|
useImperativeHandle(n, function() {
|
|
21056
|
-
return
|
|
21076
|
+
return $.current;
|
|
21057
21077
|
});
|
|
21058
21078
|
var D = _objectSpread2$1({}, k);
|
|
21059
21079
|
"visible" in t && (D.popupVisible = t.visible);
|
|
@@ -21068,15 +21088,15 @@ var autoAdjustOverflow = {
|
|
|
21068
21088
|
prefixCls: p,
|
|
21069
21089
|
id: W,
|
|
21070
21090
|
overlay: z,
|
|
21071
|
-
overlayInnerStyle:
|
|
21091
|
+
overlayInnerStyle: T
|
|
21072
21092
|
}, "content")
|
|
21073
21093
|
];
|
|
21074
21094
|
}, L = !1, q = !1;
|
|
21075
21095
|
if (typeof E == "boolean")
|
|
21076
21096
|
L = E;
|
|
21077
21097
|
else if (E && _typeof$1(E) === "object") {
|
|
21078
|
-
var
|
|
21079
|
-
L =
|
|
21098
|
+
var N = E.keepParent;
|
|
21099
|
+
L = N === !0, q = N === !1;
|
|
21080
21100
|
}
|
|
21081
21101
|
return /* @__PURE__ */ jsx(Trigger, {
|
|
21082
21102
|
...Object.assign({
|
|
@@ -21086,9 +21106,9 @@ var autoAdjustOverflow = {
|
|
|
21086
21106
|
action: a,
|
|
21087
21107
|
builtinPlacements: placements$2,
|
|
21088
21108
|
popupPlacement: C,
|
|
21089
|
-
ref:
|
|
21109
|
+
ref: $,
|
|
21090
21110
|
popupAlign: O,
|
|
21091
|
-
getPopupContainer:
|
|
21111
|
+
getPopupContainer: S,
|
|
21092
21112
|
onPopupVisibleChange: m,
|
|
21093
21113
|
afterPopupVisibleChange: v,
|
|
21094
21114
|
popupTransitionName: x,
|
|
@@ -21310,29 +21330,29 @@ function requireTooltip() {
|
|
|
21310
21330
|
}, b), {
|
|
21311
21331
|
cursor: "not-allowed",
|
|
21312
21332
|
width: I.props.block ? "100%" : null
|
|
21313
|
-
}),
|
|
21333
|
+
}), S = (0, a.default)((0, a.default)({}, E), {
|
|
21314
21334
|
pointerEvents: "none"
|
|
21315
|
-
}),
|
|
21316
|
-
style:
|
|
21335
|
+
}), T = (0, d.cloneElement)(I, {
|
|
21336
|
+
style: S,
|
|
21317
21337
|
className: null
|
|
21318
21338
|
});
|
|
21319
21339
|
return /* @__PURE__ */ s.createElement("span", {
|
|
21320
21340
|
style: w,
|
|
21321
21341
|
className: (0, l.default)(I.props.className, "".concat(C, "-disabled-compatible-wrapper"))
|
|
21322
|
-
},
|
|
21342
|
+
}, T);
|
|
21323
21343
|
}
|
|
21324
21344
|
return I;
|
|
21325
21345
|
}
|
|
21326
21346
|
var x = /* @__PURE__ */ s.forwardRef(function(I, C) {
|
|
21327
|
-
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];
|
|
21328
21348
|
s.useEffect(function() {
|
|
21329
|
-
"visible" in I &&
|
|
21349
|
+
"visible" in I && $(I.visible);
|
|
21330
21350
|
}, [I.visible]);
|
|
21331
21351
|
var D = function() {
|
|
21332
21352
|
var ne = I.title, J = I.overlay;
|
|
21333
21353
|
return !ne && !J && ne !== 0;
|
|
21334
21354
|
}, M = function(ne) {
|
|
21335
|
-
"visible" in I ||
|
|
21355
|
+
"visible" in I || $(D() ? !1 : ne), I.onVisibleChange && !D() && I.onVisibleChange(ne);
|
|
21336
21356
|
}, L = function() {
|
|
21337
21357
|
var ne = I.builtinPlacements, J = I.arrowPointAtCenter, ee = I.autoAdjustOverflow;
|
|
21338
21358
|
return ne || (0, u.default)({
|
|
@@ -21350,13 +21370,13 @@ function requireTooltip() {
|
|
|
21350
21370
|
};
|
|
21351
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);
|
|
21352
21372
|
}
|
|
21353
|
-
},
|
|
21373
|
+
}, N = function() {
|
|
21354
21374
|
var ne = I.title, J = I.overlay;
|
|
21355
21375
|
return ne === 0 ? ne : J || ne || "";
|
|
21356
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;
|
|
21357
21377
|
!("visible" in I) && D() && (A = !1);
|
|
21358
|
-
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)),
|
|
21359
|
-
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), {
|
|
21360
21380
|
background: Z
|
|
21361
21381
|
}), Y = {
|
|
21362
21382
|
background: Z
|
|
@@ -21366,11 +21386,11 @@ function requireTooltip() {
|
|
|
21366
21386
|
getTooltipContainer: G || z || b,
|
|
21367
21387
|
ref: C,
|
|
21368
21388
|
builtinPlacements: L(),
|
|
21369
|
-
overlay:
|
|
21389
|
+
overlay: N(),
|
|
21370
21390
|
visible: A,
|
|
21371
21391
|
onVisibleChange: M,
|
|
21372
21392
|
onPopupAlign: q,
|
|
21373
|
-
overlayInnerStyle:
|
|
21393
|
+
overlayInnerStyle: _,
|
|
21374
21394
|
arrowContent: /* @__PURE__ */ s.createElement("span", {
|
|
21375
21395
|
className: "".concat(P, "-arrow-content"),
|
|
21376
21396
|
style: Y
|
|
@@ -21435,14 +21455,14 @@ function requireTypography() {
|
|
|
21435
21455
|
x.indexOf(I[C]) < 0 && Object.prototype.propertyIsEnumerable.call(v, I[C]) && (g[I[C]] = v[I[C]]);
|
|
21436
21456
|
return g;
|
|
21437
21457
|
}, f = function(x, g) {
|
|
21438
|
-
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,
|
|
21439
|
-
return E && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."),
|
|
21440
|
-
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);
|
|
21441
21461
|
return /* @__PURE__ */ a.createElement(M, (0, r.default)({
|
|
21442
21462
|
className: q,
|
|
21443
21463
|
"aria-label": b,
|
|
21444
|
-
ref:
|
|
21445
|
-
},
|
|
21464
|
+
ref: T
|
|
21465
|
+
}, S), w);
|
|
21446
21466
|
});
|
|
21447
21467
|
}, p = /* @__PURE__ */ a.forwardRef(f);
|
|
21448
21468
|
p.displayName = "Typography";
|
|
@@ -21499,12 +21519,12 @@ function requireEditable() {
|
|
|
21499
21519
|
value: !0
|
|
21500
21520
|
}), e.default = void 0;
|
|
21501
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) {
|
|
21502
|
-
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];
|
|
21503
21523
|
a.useEffect(function() {
|
|
21504
21524
|
L(b);
|
|
21505
21525
|
}, [b]), a.useEffect(function() {
|
|
21506
|
-
if (
|
|
21507
|
-
var V =
|
|
21526
|
+
if (S.current && S.current.resizableTextArea) {
|
|
21527
|
+
var V = S.current.resizableTextArea.textArea;
|
|
21508
21528
|
V.focus();
|
|
21509
21529
|
var H = V.value.length;
|
|
21510
21530
|
V.setSelectionRange(H, H);
|
|
@@ -21513,18 +21533,18 @@ function requireEditable() {
|
|
|
21513
21533
|
var q = function(H) {
|
|
21514
21534
|
var P = H.target;
|
|
21515
21535
|
L(P.value.replace(/[\n\r]/g, ""));
|
|
21516
|
-
},
|
|
21517
|
-
|
|
21536
|
+
}, N = function() {
|
|
21537
|
+
T.current = !0;
|
|
21518
21538
|
}, B = function() {
|
|
21519
|
-
|
|
21539
|
+
T.current = !1;
|
|
21520
21540
|
}, U = function(H) {
|
|
21521
21541
|
var P = H.keyCode;
|
|
21522
|
-
|
|
21542
|
+
T.current || (k.current = P);
|
|
21523
21543
|
}, G = function() {
|
|
21524
21544
|
E(M.trim());
|
|
21525
21545
|
}, z = function(H) {
|
|
21526
21546
|
var P = H.keyCode, A = H.ctrlKey, j = H.altKey, K = H.metaKey, X = H.shiftKey;
|
|
21527
|
-
k.current === P && !
|
|
21547
|
+
k.current === P && !T.current && !A && !j && !K && !X && (P === c.default.ENTER ? G() : P === c.default.ESC && w());
|
|
21528
21548
|
}, W = function() {
|
|
21529
21549
|
G();
|
|
21530
21550
|
}, Z = (0, s.default)(m, "".concat(m, "-edit-content"), (0, r.default)({}, "".concat(m, "-rtl"), I === "rtl"), x);
|
|
@@ -21532,13 +21552,13 @@ function requireEditable() {
|
|
|
21532
21552
|
className: Z,
|
|
21533
21553
|
style: g
|
|
21534
21554
|
}, /* @__PURE__ */ a.createElement(u.default, {
|
|
21535
|
-
ref:
|
|
21555
|
+
ref: S,
|
|
21536
21556
|
maxLength: C,
|
|
21537
21557
|
value: M,
|
|
21538
21558
|
onChange: q,
|
|
21539
21559
|
onKeyDown: U,
|
|
21540
21560
|
onKeyUp: z,
|
|
21541
|
-
onCompositionStart:
|
|
21561
|
+
onCompositionStart: N,
|
|
21542
21562
|
onCompositionEnd: B,
|
|
21543
21563
|
onBlur: W,
|
|
21544
21564
|
"aria-label": v,
|
|
@@ -21584,14 +21604,14 @@ function requireUtil() {
|
|
|
21584
21604
|
}
|
|
21585
21605
|
var m = function(x, g, I, C, y) {
|
|
21586
21606
|
u || (u = document.createElement("div"), u.setAttribute("aria-hidden", "true"), document.body.appendChild(u));
|
|
21587
|
-
var O = g.rows, b = g.suffix, E = b === void 0 ? "" : b, w = window.getComputedStyle(x),
|
|
21588
|
-
u.setAttribute("style",
|
|
21589
|
-
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));
|
|
21590
21610
|
(0, r.render)(/* @__PURE__ */ o.createElement("div", {
|
|
21591
21611
|
style: d
|
|
21592
21612
|
}, /* @__PURE__ */ o.createElement("span", {
|
|
21593
21613
|
style: d
|
|
21594
|
-
},
|
|
21614
|
+
}, $, E), /* @__PURE__ */ o.createElement("span", {
|
|
21595
21615
|
style: d
|
|
21596
21616
|
}, C)), u);
|
|
21597
21617
|
function D() {
|
|
@@ -21610,14 +21630,14 @@ function requireUtil() {
|
|
|
21610
21630
|
(0, r.unmountComponentAtNode)(u);
|
|
21611
21631
|
var q = [];
|
|
21612
21632
|
u.innerHTML = "";
|
|
21613
|
-
var
|
|
21614
|
-
u.appendChild(
|
|
21633
|
+
var N = document.createElement("span");
|
|
21634
|
+
u.appendChild(N);
|
|
21615
21635
|
var B = document.createTextNode(y + E);
|
|
21616
|
-
|
|
21636
|
+
N.appendChild(B), L.forEach(function(W) {
|
|
21617
21637
|
u.appendChild(W);
|
|
21618
21638
|
});
|
|
21619
21639
|
function U(W) {
|
|
21620
|
-
|
|
21640
|
+
N.insertBefore(W, B);
|
|
21621
21641
|
}
|
|
21622
21642
|
function G(W, Z) {
|
|
21623
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);
|
|
@@ -21640,8 +21660,8 @@ function requireUtil() {
|
|
|
21640
21660
|
if (V === s)
|
|
21641
21661
|
return U(W), D() ? {
|
|
21642
21662
|
finished: !1,
|
|
21643
|
-
reactNode:
|
|
21644
|
-
} : (
|
|
21663
|
+
reactNode: $[Z]
|
|
21664
|
+
} : (N.removeChild(W), {
|
|
21645
21665
|
finished: !0,
|
|
21646
21666
|
reactNode: null
|
|
21647
21667
|
});
|
|
@@ -21673,7 +21693,7 @@ function requireBase() {
|
|
|
21673
21693
|
Object.defineProperty(e, "__esModule", {
|
|
21674
21694
|
value: !0
|
|
21675
21695
|
}), e.default = void 0;
|
|
21676
|
-
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) {
|
|
21677
21697
|
var Z = {};
|
|
21678
21698
|
for (var V in z)
|
|
21679
21699
|
Object.prototype.hasOwnProperty.call(z, V) && W.indexOf(V) < 0 && (Z[V] = z[V]);
|
|
@@ -21681,11 +21701,11 @@ function requireBase() {
|
|
|
21681
21701
|
for (var H = 0, V = Object.getOwnPropertySymbols(z); H < V.length; H++)
|
|
21682
21702
|
W.indexOf(V[H]) < 0 && Object.prototype.propertyIsEnumerable.call(z, V[H]) && (Z[V[H]] = z[V[H]]);
|
|
21683
21703
|
return Z;
|
|
21684
|
-
}, L = (0,
|
|
21685
|
-
function
|
|
21704
|
+
}, L = (0, S.isStyleSupport)("webkitLineClamp"), q = (0, S.isStyleSupport)("textOverflow");
|
|
21705
|
+
function N(z, W) {
|
|
21686
21706
|
var Z = z.mark, V = z.code, H = z.underline, P = z.delete, A = z.strong, j = z.keyboard, K = W;
|
|
21687
|
-
function X(F,
|
|
21688
|
-
!F || (K = /* @__PURE__ */ f.createElement(
|
|
21707
|
+
function X(F, _) {
|
|
21708
|
+
!F || (K = /* @__PURE__ */ f.createElement(_, {}, K));
|
|
21689
21709
|
}
|
|
21690
21710
|
return X(A, "strong"), X(H, "u"), X(P, "del"), X(V, "code"), X(Z, "mark"), X(j, "kbd"), K;
|
|
21691
21711
|
}
|
|
@@ -21784,13 +21804,13 @@ function requireBase() {
|
|
|
21784
21804
|
}, {
|
|
21785
21805
|
key: "canUseCSSEllipsis",
|
|
21786
21806
|
value: function() {
|
|
21787
|
-
var H = this.state.clientRendered, P = this.props, A = P.editable, j = P.copyable, K = this.getEllipsis(), X = K.rows, F = K.expandable,
|
|
21788
|
-
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;
|
|
21789
21809
|
}
|
|
21790
21810
|
}, {
|
|
21791
21811
|
key: "syncEllipsis",
|
|
21792
21812
|
value: function() {
|
|
21793
|
-
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;
|
|
21794
21814
|
if (!(!X || X < 0 || !this.contentRef.current || j) && !this.canUseCSSEllipsis()) {
|
|
21795
21815
|
(0, b.default)((0, h.default)(Y).every(function(oe) {
|
|
21796
21816
|
return typeof oe == "string";
|
|
@@ -21803,7 +21823,7 @@ function requireBase() {
|
|
|
21803
21823
|
ellipsisText: J,
|
|
21804
21824
|
ellipsisContent: ne,
|
|
21805
21825
|
isEllipsis: ee
|
|
21806
|
-
}), A !== ee &&
|
|
21826
|
+
}), A !== ee && _ && _(ee));
|
|
21807
21827
|
}
|
|
21808
21828
|
}
|
|
21809
21829
|
}, {
|
|
@@ -21812,13 +21832,13 @@ function requireBase() {
|
|
|
21812
21832
|
var P = this.getEllipsis(), A = P.expandable, j = P.symbol, K = this.state, X = K.expanded, F = K.isEllipsis;
|
|
21813
21833
|
if (!A || !H && (X || !F))
|
|
21814
21834
|
return null;
|
|
21815
|
-
var
|
|
21816
|
-
return j ?
|
|
21835
|
+
var _;
|
|
21836
|
+
return j ? _ = j : _ = this.expandStr, /* @__PURE__ */ f.createElement("a", {
|
|
21817
21837
|
key: "expand",
|
|
21818
21838
|
className: "".concat(this.getPrefixCls(), "-expand"),
|
|
21819
21839
|
onClick: this.onExpandClick,
|
|
21820
21840
|
"aria-label": this.expandStr
|
|
21821
|
-
},
|
|
21841
|
+
}, _);
|
|
21822
21842
|
}
|
|
21823
21843
|
}, {
|
|
21824
21844
|
key: "renderEdit",
|
|
@@ -21826,7 +21846,7 @@ function requireBase() {
|
|
|
21826
21846
|
var H = this.props.editable;
|
|
21827
21847
|
if (!!H) {
|
|
21828
21848
|
var P = H.icon, A = H.tooltip, j = (0, h.default)(A)[0] || this.editStr, K = typeof j == "string" ? j : "";
|
|
21829
|
-
return /* @__PURE__ */ f.createElement(
|
|
21849
|
+
return /* @__PURE__ */ f.createElement(T.default, {
|
|
21830
21850
|
key: "edit",
|
|
21831
21851
|
title: A === !1 ? "" : j
|
|
21832
21852
|
}, /* @__PURE__ */ f.createElement(E.default, {
|
|
@@ -21846,22 +21866,22 @@ function requireBase() {
|
|
|
21846
21866
|
if (!!P) {
|
|
21847
21867
|
var A = this.getPrefixCls(), j = P.tooltips, K = (0, h.default)(j);
|
|
21848
21868
|
K.length === 0 && (K = [this.copyStr, this.copiedStr]);
|
|
21849
|
-
var X = H ? K[1] : K[0], F = typeof X == "string" ? X : "",
|
|
21850
|
-
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, {
|
|
21851
21871
|
key: "copy",
|
|
21852
21872
|
title: j === !1 ? "" : X
|
|
21853
21873
|
}, /* @__PURE__ */ f.createElement(E.default, {
|
|
21854
21874
|
className: (0, p.default)("".concat(A, "-copy"), H && "".concat(A, "-copy-success")),
|
|
21855
21875
|
onClick: this.onCopyClick,
|
|
21856
21876
|
"aria-label": F
|
|
21857
|
-
}, H ?
|
|
21877
|
+
}, H ? _[1] || /* @__PURE__ */ f.createElement(g.default, null) : _[0] || /* @__PURE__ */ f.createElement(I.default, null)));
|
|
21858
21878
|
}
|
|
21859
21879
|
}
|
|
21860
21880
|
}, {
|
|
21861
21881
|
key: "renderEditInput",
|
|
21862
21882
|
value: function() {
|
|
21863
|
-
var H = this.props, P = H.children, A = H.className, j = H.style, K = this.context.direction, X = this.getEditable(), F = X.maxLength,
|
|
21864
|
-
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, {
|
|
21865
21885
|
value: typeof P == "string" ? P : "",
|
|
21866
21886
|
onSave: this.onEditChange,
|
|
21867
21887
|
onCancel: this.onEditCancel,
|
|
@@ -21870,7 +21890,7 @@ function requireBase() {
|
|
|
21870
21890
|
style: j,
|
|
21871
21891
|
direction: K,
|
|
21872
21892
|
maxLength: F,
|
|
21873
|
-
autoSize:
|
|
21893
|
+
autoSize: _
|
|
21874
21894
|
});
|
|
21875
21895
|
}
|
|
21876
21896
|
}, {
|
|
@@ -21883,18 +21903,18 @@ function requireBase() {
|
|
|
21883
21903
|
}, {
|
|
21884
21904
|
key: "renderContent",
|
|
21885
21905
|
value: function() {
|
|
21886
|
-
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 = _;
|
|
21887
21907
|
if (ae && j && !K && !Ie) {
|
|
21888
21908
|
var Te = ee.title, be = Te || "";
|
|
21889
|
-
!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", {
|
|
21890
21910
|
title: be,
|
|
21891
21911
|
"aria-hidden": "true"
|
|
21892
|
-
}, B), pe), me && (ve = /* @__PURE__ */ f.createElement(
|
|
21893
|
-
title: me === !0 ?
|
|
21912
|
+
}, B), pe), me && (ve = /* @__PURE__ */ f.createElement(T.default, {
|
|
21913
|
+
title: me === !0 ? _ : me
|
|
21894
21914
|
}, /* @__PURE__ */ f.createElement("span", null, ve)));
|
|
21895
21915
|
} else
|
|
21896
|
-
ve = /* @__PURE__ */ f.createElement(f.Fragment, null,
|
|
21897
|
-
return ve =
|
|
21916
|
+
ve = /* @__PURE__ */ f.createElement(f.Fragment, null, _, pe);
|
|
21917
|
+
return ve = N(this.props, ve), /* @__PURE__ */ f.createElement(O.default, {
|
|
21898
21918
|
componentName: "Text"
|
|
21899
21919
|
}, function(se) {
|
|
21900
21920
|
var ce, ge = se.edit, ye = se.copy, Oe = se.copied, Se = se.expand;
|
|
@@ -21969,21 +21989,21 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21969
21989
|
field: u,
|
|
21970
21990
|
operator: d,
|
|
21971
21991
|
manualIds: f
|
|
21972
|
-
} = 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();
|
|
21973
21993
|
useEffect(() => {
|
|
21974
21994
|
q();
|
|
21975
21995
|
}, [t, o]);
|
|
21976
21996
|
async function M({
|
|
21977
|
-
domain:
|
|
21997
|
+
domain: N,
|
|
21978
21998
|
isTotal: B
|
|
21979
21999
|
}) {
|
|
21980
22000
|
if (B)
|
|
21981
22001
|
return await L({
|
|
21982
|
-
domain:
|
|
22002
|
+
domain: N
|
|
21983
22003
|
});
|
|
21984
22004
|
if (u && d) {
|
|
21985
22005
|
const U = f || await ConnectionProvider.getHandler().searchAllIds({
|
|
21986
|
-
params:
|
|
22006
|
+
params: N,
|
|
21987
22007
|
model: t,
|
|
21988
22008
|
context: r
|
|
21989
22009
|
}), G = await ConnectionProvider.getHandler().readObjects({
|
|
@@ -21999,16 +22019,16 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21999
22019
|
} else
|
|
22000
22020
|
return f ? f.length : await ConnectionProvider.getHandler().searchCount({
|
|
22001
22021
|
model: t,
|
|
22002
|
-
params:
|
|
22022
|
+
params: N,
|
|
22003
22023
|
context: r
|
|
22004
22024
|
});
|
|
22005
22025
|
}
|
|
22006
22026
|
async function L({
|
|
22007
|
-
domain:
|
|
22027
|
+
domain: N
|
|
22008
22028
|
}) {
|
|
22009
22029
|
if (u && d) {
|
|
22010
22030
|
const B = await ConnectionProvider.getHandler().searchAllIds({
|
|
22011
|
-
params:
|
|
22031
|
+
params: N,
|
|
22012
22032
|
model: t,
|
|
22013
22033
|
context: r
|
|
22014
22034
|
}), U = await ConnectionProvider.getHandler().readObjects({
|
|
@@ -22024,13 +22044,13 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22024
22044
|
} else
|
|
22025
22045
|
return await ConnectionProvider.getHandler().searchCount({
|
|
22026
22046
|
model: t,
|
|
22027
|
-
params:
|
|
22047
|
+
params: N,
|
|
22028
22048
|
context: r
|
|
22029
22049
|
});
|
|
22030
22050
|
}
|
|
22031
22051
|
async function q() {
|
|
22032
22052
|
h(!0);
|
|
22033
|
-
let
|
|
22053
|
+
let N, B;
|
|
22034
22054
|
try {
|
|
22035
22055
|
const U = await M({
|
|
22036
22056
|
domain: n,
|
|
@@ -22042,12 +22062,12 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22042
22062
|
values: {},
|
|
22043
22063
|
context: r
|
|
22044
22064
|
});
|
|
22045
|
-
|
|
22065
|
+
N = await M({
|
|
22046
22066
|
domain: G,
|
|
22047
22067
|
isTotal: !0
|
|
22048
|
-
}), C(
|
|
22068
|
+
}), C(N);
|
|
22049
22069
|
}
|
|
22050
|
-
if (
|
|
22070
|
+
if (N ? (B = Math.round(U / N * 100 * 100) / 100, g(B)) : g(0), o) {
|
|
22051
22071
|
const G = await ConnectionProvider.getHandler().parseCondition({
|
|
22052
22072
|
condition: o,
|
|
22053
22073
|
values: {
|
|
@@ -22056,7 +22076,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22056
22076
|
},
|
|
22057
22077
|
context: r
|
|
22058
22078
|
});
|
|
22059
|
-
|
|
22079
|
+
S(G);
|
|
22060
22080
|
}
|
|
22061
22081
|
if (c)
|
|
22062
22082
|
if (c.indexOf(":") !== -1) {
|
|
@@ -22076,9 +22096,9 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22076
22096
|
}
|
|
22077
22097
|
h(!1);
|
|
22078
22098
|
}
|
|
22079
|
-
return
|
|
22099
|
+
return $ ? /* @__PURE__ */ jsx(Alert, {
|
|
22080
22100
|
className: "mt-10",
|
|
22081
|
-
message:
|
|
22101
|
+
message: $,
|
|
22082
22102
|
type: "error",
|
|
22083
22103
|
banner: !0
|
|
22084
22104
|
}) : p ? /* @__PURE__ */ jsx("div", {
|
|
@@ -22092,30 +22112,30 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22092
22112
|
})
|
|
22093
22113
|
}) : /* @__PURE__ */ jsx(Measure, {
|
|
22094
22114
|
bounds: !0,
|
|
22095
|
-
onResize: (
|
|
22115
|
+
onResize: (N) => {
|
|
22096
22116
|
var B, U;
|
|
22097
|
-
O((B =
|
|
22117
|
+
O((B = N.bounds) == null ? void 0 : B.height), E((U = N.bounds) == null ? void 0 : U.width);
|
|
22098
22118
|
},
|
|
22099
22119
|
children: ({
|
|
22100
|
-
measureRef:
|
|
22120
|
+
measureRef: N
|
|
22101
22121
|
}) => s ? /* @__PURE__ */ jsx(PercentageIndicator, {
|
|
22102
22122
|
value: m,
|
|
22103
22123
|
total: I,
|
|
22104
22124
|
percent: x,
|
|
22105
|
-
measureRef:
|
|
22125
|
+
measureRef: N,
|
|
22106
22126
|
height: y,
|
|
22107
22127
|
width: b,
|
|
22108
22128
|
color: w,
|
|
22109
|
-
icon:
|
|
22129
|
+
icon: T,
|
|
22110
22130
|
suffix: l
|
|
22111
22131
|
}) : /* @__PURE__ */ jsx(CommonIndicator, {
|
|
22112
22132
|
value: m,
|
|
22113
22133
|
total: I,
|
|
22114
|
-
measureRef:
|
|
22134
|
+
measureRef: N,
|
|
22115
22135
|
height: y,
|
|
22116
22136
|
width: b,
|
|
22117
22137
|
color: w,
|
|
22118
|
-
icon:
|
|
22138
|
+
icon: T,
|
|
22119
22139
|
suffix: l
|
|
22120
22140
|
})
|
|
22121
22141
|
});
|
|
@@ -22716,7 +22736,7 @@ const One2manyInput = (e) => {
|
|
|
22716
22736
|
} = d || {}, {
|
|
22717
22737
|
lang: x,
|
|
22718
22738
|
t: g
|
|
22719
|
-
} = 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(), {
|
|
22720
22740
|
readOnly: Z,
|
|
22721
22741
|
relation: V,
|
|
22722
22742
|
context: H,
|
|
@@ -22736,8 +22756,8 @@ const One2manyInput = (e) => {
|
|
|
22736
22756
|
items: filterDuplicateItems(se)
|
|
22737
22757
|
});
|
|
22738
22758
|
}, F = async () => {
|
|
22739
|
-
await
|
|
22740
|
-
},
|
|
22759
|
+
await _(), l > K.length - 1 && l !== 0 && u(0);
|
|
22760
|
+
}, _ = async () => {
|
|
22741
22761
|
var se;
|
|
22742
22762
|
b(!0), y(!1), w(void 0);
|
|
22743
22763
|
try {
|
|
@@ -22846,14 +22866,14 @@ const One2manyInput = (e) => {
|
|
|
22846
22866
|
}), s === "form" ? oe(() => {
|
|
22847
22867
|
B(!0), M({
|
|
22848
22868
|
defaultValues: ce
|
|
22849
|
-
}),
|
|
22869
|
+
}), T(!0);
|
|
22850
22870
|
}) : (B(!0), M({
|
|
22851
22871
|
defaultValues: ce
|
|
22852
|
-
}),
|
|
22872
|
+
}), T(!0));
|
|
22853
22873
|
}, pe = async () => {
|
|
22854
22874
|
s === "form" ? oe(() => {
|
|
22855
|
-
|
|
22856
|
-
}) :
|
|
22875
|
+
$(!0);
|
|
22876
|
+
}) : $(!0);
|
|
22857
22877
|
}, me = async () => {
|
|
22858
22878
|
b(!0), y(!1), w(void 0);
|
|
22859
22879
|
try {
|
|
@@ -22912,12 +22932,12 @@ const One2manyInput = (e) => {
|
|
|
22912
22932
|
}
|
|
22913
22933
|
});
|
|
22914
22934
|
}
|
|
22915
|
-
X(ye),
|
|
22935
|
+
X(ye), N || T(!1);
|
|
22916
22936
|
}, Ie = (se) => {
|
|
22917
22937
|
const {
|
|
22918
22938
|
id: ce
|
|
22919
22939
|
} = se;
|
|
22920
|
-
M(a.find((ge) => ge.id === ce)), B(!1),
|
|
22940
|
+
M(a.find((ge) => ge.id === ce)), B(!1), T(!0);
|
|
22921
22941
|
}, he = async (se) => {
|
|
22922
22942
|
b(!0);
|
|
22923
22943
|
let ce = a;
|
|
@@ -23041,7 +23061,7 @@ const One2manyInput = (e) => {
|
|
|
23041
23061
|
type: "error",
|
|
23042
23062
|
banner: !0
|
|
23043
23063
|
});
|
|
23044
|
-
const Te =
|
|
23064
|
+
const Te = N;
|
|
23045
23065
|
return O ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
23046
23066
|
children: [/* @__PURE__ */ jsx(One2manyTopBar, {
|
|
23047
23067
|
mode: s,
|
|
@@ -23067,14 +23087,14 @@ const One2manyInput = (e) => {
|
|
|
23067
23087
|
submitMode: "values",
|
|
23068
23088
|
values: D == null ? void 0 : D.values,
|
|
23069
23089
|
defaultValues: D == null ? void 0 : D.defaultValues,
|
|
23070
|
-
visible:
|
|
23090
|
+
visible: S,
|
|
23071
23091
|
onSubmitSucceed: de,
|
|
23072
23092
|
parentContext: {
|
|
23073
23093
|
...m == null ? void 0 : m(),
|
|
23074
23094
|
...H
|
|
23075
23095
|
},
|
|
23076
23096
|
onCancel: () => {
|
|
23077
|
-
B(!1),
|
|
23097
|
+
B(!1), T(!1);
|
|
23078
23098
|
},
|
|
23079
23099
|
readOnly: Z,
|
|
23080
23100
|
mustClearAfterSave: Te
|
|
@@ -23087,10 +23107,10 @@ const One2manyInput = (e) => {
|
|
|
23087
23107
|
},
|
|
23088
23108
|
visible: k,
|
|
23089
23109
|
onSelectValues: async (se) => {
|
|
23090
|
-
|
|
23110
|
+
$(!1), he(se);
|
|
23091
23111
|
},
|
|
23092
23112
|
onCloseModal: () => {
|
|
23093
|
-
|
|
23113
|
+
$(!1);
|
|
23094
23114
|
}
|
|
23095
23115
|
})]
|
|
23096
23116
|
});
|
|
@@ -26566,23 +26586,25 @@ function FormActionBar({
|
|
|
26566
26586
|
attachments: C,
|
|
26567
26587
|
formRef: y,
|
|
26568
26588
|
setFormHasChanges: O,
|
|
26569
|
-
|
|
26570
|
-
|
|
26571
|
-
|
|
26572
|
-
goToResourceId: _
|
|
26589
|
+
previousView: b,
|
|
26590
|
+
setPreviousView: E,
|
|
26591
|
+
goToResourceId: w
|
|
26573
26592
|
} = useContext(ActionViewContext), {
|
|
26574
26593
|
t: S,
|
|
26575
|
-
lang:
|
|
26576
|
-
} = useContext(LocaleContext),
|
|
26577
|
-
processAction:
|
|
26578
|
-
} =
|
|
26579
|
-
openRelate:
|
|
26580
|
-
openDefaultActionForModel:
|
|
26581
|
-
} =
|
|
26582
|
-
|
|
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) {
|
|
26583
26605
|
if (a) {
|
|
26584
26606
|
showDialog({
|
|
26585
|
-
lang:
|
|
26607
|
+
lang: T,
|
|
26586
26608
|
onOk: () => {
|
|
26587
26609
|
P();
|
|
26588
26610
|
}
|
|
@@ -26594,7 +26616,7 @@ function FormActionBar({
|
|
|
26594
26616
|
function B(P) {
|
|
26595
26617
|
if (a) {
|
|
26596
26618
|
showDialog$6({
|
|
26597
|
-
lang:
|
|
26619
|
+
lang: T,
|
|
26598
26620
|
onOk: () => {
|
|
26599
26621
|
P();
|
|
26600
26622
|
}
|
|
@@ -26612,7 +26634,7 @@ function FormActionBar({
|
|
|
26612
26634
|
function z() {
|
|
26613
26635
|
showDialog$9({
|
|
26614
26636
|
confirmMessage: S("confirmRemoveItem"),
|
|
26615
|
-
lang:
|
|
26637
|
+
lang: T,
|
|
26616
26638
|
onOk: () => {
|
|
26617
26639
|
W();
|
|
26618
26640
|
}
|
|
@@ -26642,7 +26664,7 @@ function FormActionBar({
|
|
|
26642
26664
|
model: p,
|
|
26643
26665
|
context: y.current.getContext()
|
|
26644
26666
|
});
|
|
26645
|
-
P && await (
|
|
26667
|
+
P && await (w == null ? void 0 : w(P));
|
|
26646
26668
|
} catch (P) {
|
|
26647
26669
|
showDialog$3(JSON.stringify(P));
|
|
26648
26670
|
} finally {
|
|
@@ -26651,7 +26673,7 @@ function FormActionBar({
|
|
|
26651
26673
|
}
|
|
26652
26674
|
const V = s || m || I || v;
|
|
26653
26675
|
function H(P) {
|
|
26654
|
-
|
|
26676
|
+
$ == null || $({
|
|
26655
26677
|
actionData: P,
|
|
26656
26678
|
values: y.current.getValues(),
|
|
26657
26679
|
fields: y.current.getFields(),
|
|
@@ -26699,16 +26721,16 @@ function FormActionBar({
|
|
|
26699
26721
|
disabled: s || c === void 0 || m || v || I,
|
|
26700
26722
|
loading: !1,
|
|
26701
26723
|
onClick: () => {
|
|
26702
|
-
|
|
26724
|
+
N(() => {
|
|
26703
26725
|
y.current.fetchValues();
|
|
26704
26726
|
});
|
|
26705
26727
|
}
|
|
26706
26728
|
}), separator$2(), /* @__PURE__ */ jsx(ChangeViewButton, {
|
|
26707
26729
|
currentView: n,
|
|
26708
|
-
previousView:
|
|
26730
|
+
previousView: b,
|
|
26709
26731
|
availableViews: t,
|
|
26710
26732
|
onChangeView: (P) => {
|
|
26711
|
-
|
|
26733
|
+
E == null || E(n), O == null || O(!1), r == null || r(P);
|
|
26712
26734
|
},
|
|
26713
26735
|
disabled: V,
|
|
26714
26736
|
formHasChanges: a
|
|
@@ -26758,7 +26780,7 @@ function FormActionBar({
|
|
|
26758
26780
|
tooltip: S("related"),
|
|
26759
26781
|
items: e == null ? void 0 : e.relate,
|
|
26760
26782
|
onItemClick: async (P) => {
|
|
26761
|
-
!P ||
|
|
26783
|
+
!P || M({
|
|
26762
26784
|
relateData: P,
|
|
26763
26785
|
values: y.current.getValues(),
|
|
26764
26786
|
fields: y.current.getFields(),
|
|
@@ -26771,7 +26793,7 @@ function FormActionBar({
|
|
|
26771
26793
|
attachments: C,
|
|
26772
26794
|
onAddNewAttachment: () => {
|
|
26773
26795
|
const P = c, A = p;
|
|
26774
|
-
|
|
26796
|
+
L({
|
|
26775
26797
|
model: "ir.attachment",
|
|
26776
26798
|
values: {
|
|
26777
26799
|
selection_associated_object: `${A},${P}`
|
|
@@ -26785,14 +26807,14 @@ function FormActionBar({
|
|
|
26785
26807
|
},
|
|
26786
26808
|
onListAllAttachments: () => {
|
|
26787
26809
|
const P = c;
|
|
26788
|
-
|
|
26810
|
+
L({
|
|
26789
26811
|
model: "ir.attachment",
|
|
26790
26812
|
domain: [["res_model", "=", `${p}`], ["res_id", "=", `${P}`]],
|
|
26791
26813
|
initialViewType: "tree"
|
|
26792
26814
|
});
|
|
26793
26815
|
},
|
|
26794
26816
|
onViewAttachmentDetails: (P) => {
|
|
26795
|
-
|
|
26817
|
+
L({
|
|
26796
26818
|
model: "ir.attachment",
|
|
26797
26819
|
res_id: P.id,
|
|
26798
26820
|
initialViewType: "form"
|
|
@@ -26926,10 +26948,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26926
26948
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(I)))) {
|
|
26927
26949
|
var y = [], O = !0, b = !1, E = void 0;
|
|
26928
26950
|
try {
|
|
26929
|
-
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)
|
|
26930
26952
|
;
|
|
26931
|
-
} catch (
|
|
26932
|
-
b = !0, E =
|
|
26953
|
+
} catch (T) {
|
|
26954
|
+
b = !0, E = T;
|
|
26933
26955
|
} finally {
|
|
26934
26956
|
try {
|
|
26935
26957
|
!O && w.return != null && w.return();
|
|
@@ -26973,9 +26995,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26973
26995
|
function g(I, C) {
|
|
26974
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("&")))
|
|
26975
26997
|
return !1;
|
|
26976
|
-
var y, O, b, E, w,
|
|
26977
|
-
if (
|
|
26978
|
-
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)
|
|
26979
27001
|
return !1;
|
|
26980
27002
|
} else {
|
|
26981
27003
|
if (C.require_protocol)
|
|
@@ -26983,24 +27005,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26983
27005
|
if (I.substr(0, 2) === "//") {
|
|
26984
27006
|
if (!C.allow_protocol_relative_urls)
|
|
26985
27007
|
return !1;
|
|
26986
|
-
|
|
27008
|
+
T[0] = I.substr(2);
|
|
26987
27009
|
}
|
|
26988
27010
|
}
|
|
26989
|
-
if (I =
|
|
27011
|
+
if (I = T.join("://"), I === "")
|
|
26990
27012
|
return !1;
|
|
26991
|
-
if (
|
|
27013
|
+
if (T = I.split("/"), I = T.shift(), I === "" && !C.require_host)
|
|
26992
27014
|
return !0;
|
|
26993
|
-
if (
|
|
26994
|
-
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))
|
|
26995
27017
|
return !1;
|
|
26996
|
-
var
|
|
27018
|
+
var $ = O.split(":"), D = c($, 2), M = D[0], L = D[1];
|
|
26997
27019
|
if (M === "" && L === "")
|
|
26998
27020
|
return !1;
|
|
26999
27021
|
}
|
|
27000
|
-
E =
|
|
27022
|
+
E = T.join("@"), S = null, k = null;
|
|
27001
27023
|
var q = E.match(m);
|
|
27002
|
-
if (q ? (b = "", k = q[1],
|
|
27003
|
-
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)
|
|
27004
27026
|
return !1;
|
|
27005
27027
|
} else if (C.require_port)
|
|
27006
27028
|
return !1;
|
|
@@ -27152,20 +27174,20 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
27152
27174
|
var b = I.split("@"), E = b.pop(), w = E.toLowerCase();
|
|
27153
27175
|
if (C.host_blacklist.includes(w))
|
|
27154
27176
|
return !1;
|
|
27155
|
-
var
|
|
27177
|
+
var S = b.join("@");
|
|
27156
27178
|
if (C.domain_specific_validation && (w === "gmail.com" || w === "googlemail.com")) {
|
|
27157
|
-
|
|
27158
|
-
var
|
|
27159
|
-
if (!(0, o.default)(
|
|
27179
|
+
S = S.toLowerCase();
|
|
27180
|
+
var T = S.split("+")[0];
|
|
27181
|
+
if (!(0, o.default)(T.replace(/\./g, ""), {
|
|
27160
27182
|
min: 6,
|
|
27161
27183
|
max: 30
|
|
27162
27184
|
}))
|
|
27163
27185
|
return !1;
|
|
27164
|
-
for (var k =
|
|
27165
|
-
if (!f.test(k[
|
|
27186
|
+
for (var k = T.split("."), $ = 0; $ < k.length; $++)
|
|
27187
|
+
if (!f.test(k[$]))
|
|
27166
27188
|
return !1;
|
|
27167
27189
|
}
|
|
27168
|
-
if (C.ignore_max_length === !1 && (!(0, o.default)(
|
|
27190
|
+
if (C.ignore_max_length === !1 && (!(0, o.default)(S, {
|
|
27169
27191
|
max: 64
|
|
27170
27192
|
}) || !(0, o.default)(E, {
|
|
27171
27193
|
max: 254
|
|
@@ -27184,12 +27206,12 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
27184
27206
|
return !1;
|
|
27185
27207
|
}
|
|
27186
27208
|
}
|
|
27187
|
-
if (
|
|
27188
|
-
return
|
|
27189
|
-
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++)
|
|
27190
27212
|
if (!M.test(L[q]))
|
|
27191
27213
|
return !1;
|
|
27192
|
-
return !(C.blacklisted_chars &&
|
|
27214
|
+
return !(C.blacklisted_chars && S.search(new RegExp("[".concat(C.blacklisted_chars, "]+"), "g")) !== -1);
|
|
27193
27215
|
}
|
|
27194
27216
|
e.exports = t.default, e.exports.default = t.default;
|
|
27195
27217
|
})(isEmail$1, isEmail$1.exports);
|
|
@@ -27470,28 +27492,28 @@ const GraphActionView = (e) => {
|
|
|
27470
27492
|
setTreeIsLoading: b = void 0,
|
|
27471
27493
|
limit: E,
|
|
27472
27494
|
setLimit: w,
|
|
27473
|
-
searchParams:
|
|
27474
|
-
searchValues:
|
|
27495
|
+
searchParams: S,
|
|
27496
|
+
searchValues: T,
|
|
27475
27497
|
setSearchValues: k,
|
|
27476
|
-
currentView:
|
|
27498
|
+
currentView: $
|
|
27477
27499
|
} = u || {}, [D, M] = useState(!0);
|
|
27478
27500
|
useEffect(() => {
|
|
27479
27501
|
var G;
|
|
27480
27502
|
(G = l.current) == null || G.refresh();
|
|
27481
|
-
}, [
|
|
27482
|
-
t.view_id !==
|
|
27483
|
-
}, [
|
|
27503
|
+
}, [S]), useEffect(() => {
|
|
27504
|
+
t.view_id !== $.view_id && M(!0);
|
|
27505
|
+
}, [$]);
|
|
27484
27506
|
const {
|
|
27485
27507
|
clear: L,
|
|
27486
27508
|
searchFilterLoading: q,
|
|
27487
|
-
searchError:
|
|
27509
|
+
searchError: N,
|
|
27488
27510
|
offset: B,
|
|
27489
27511
|
tableRefreshing: U
|
|
27490
27512
|
} = useSearch({
|
|
27491
27513
|
model: r,
|
|
27492
27514
|
setSearchTreeNameSearch: O,
|
|
27493
27515
|
setSelectedRowItems: m,
|
|
27494
|
-
searchParams:
|
|
27516
|
+
searchParams: S,
|
|
27495
27517
|
setSearchValues: k,
|
|
27496
27518
|
setSearchParams: v,
|
|
27497
27519
|
setSearchVisible: g,
|
|
@@ -27531,16 +27553,16 @@ const GraphActionView = (e) => {
|
|
|
27531
27553
|
onSubmit: (G) => {
|
|
27532
27554
|
M(!1), v == null || v(G.params), g == null || g(!1);
|
|
27533
27555
|
},
|
|
27534
|
-
searchError:
|
|
27556
|
+
searchError: N,
|
|
27535
27557
|
searchVisible: x,
|
|
27536
|
-
searchValues:
|
|
27558
|
+
searchValues: T,
|
|
27537
27559
|
showLimitOptions: !1
|
|
27538
27560
|
}), U ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Graph, {
|
|
27539
27561
|
ref: l,
|
|
27540
27562
|
view_id: t.view_id,
|
|
27541
27563
|
model: r,
|
|
27542
27564
|
context: o,
|
|
27543
|
-
domain: mergeParams(
|
|
27565
|
+
domain: mergeParams(S || [], a),
|
|
27544
27566
|
limit: D ? E : void 0,
|
|
27545
27567
|
manualIds: D ? h == null ? void 0 : h.map((G) => G.id) : void 0
|
|
27546
27568
|
})]
|
|
@@ -27668,14 +27690,14 @@ function TreeActionBar(e) {
|
|
|
27668
27690
|
toolbar: E
|
|
27669
27691
|
} = e, {
|
|
27670
27692
|
t: w,
|
|
27671
|
-
lang:
|
|
27672
|
-
} = useContext(LocaleContext),
|
|
27693
|
+
lang: S
|
|
27694
|
+
} = useContext(LocaleContext), T = useContext(ContentRootContext), {
|
|
27673
27695
|
processAction: k
|
|
27674
|
-
} =
|
|
27675
|
-
function
|
|
27696
|
+
} = T || {};
|
|
27697
|
+
function $() {
|
|
27676
27698
|
showDialog$9({
|
|
27677
27699
|
confirmMessage: w("confirmRemove"),
|
|
27678
|
-
lang:
|
|
27700
|
+
lang: S,
|
|
27679
27701
|
onOk: () => {
|
|
27680
27702
|
D();
|
|
27681
27703
|
}
|
|
@@ -27686,10 +27708,10 @@ function TreeActionBar(e) {
|
|
|
27686
27708
|
try {
|
|
27687
27709
|
a == null || a(!0), await ConnectionProvider.getHandler().delete({
|
|
27688
27710
|
model: u,
|
|
27689
|
-
ids: o.map((
|
|
27711
|
+
ids: o.map((N) => N.id)
|
|
27690
27712
|
}), f == null || f(void 0), p == null || p(void 0), (q = d == null ? void 0 : d.current) == null || q.refreshResults();
|
|
27691
|
-
} catch (
|
|
27692
|
-
showDialog$8(
|
|
27713
|
+
} catch (N) {
|
|
27714
|
+
showDialog$8(N);
|
|
27693
27715
|
} finally {
|
|
27694
27716
|
a == null || a(!1);
|
|
27695
27717
|
}
|
|
@@ -27698,16 +27720,16 @@ function TreeActionBar(e) {
|
|
|
27698
27720
|
var q;
|
|
27699
27721
|
try {
|
|
27700
27722
|
l == null || l(!0);
|
|
27701
|
-
const
|
|
27723
|
+
const N = o[0].id;
|
|
27702
27724
|
await ConnectionProvider.getHandler().duplicate({
|
|
27703
|
-
id:
|
|
27725
|
+
id: N,
|
|
27704
27726
|
model: u,
|
|
27705
27727
|
context: {
|
|
27706
27728
|
...O
|
|
27707
27729
|
}
|
|
27708
27730
|
}) && ((q = d == null ? void 0 : d.current) == null || q.refreshResults());
|
|
27709
|
-
} catch (
|
|
27710
|
-
showDialog$8(
|
|
27731
|
+
} catch (N) {
|
|
27732
|
+
showDialog$8(N);
|
|
27711
27733
|
} finally {
|
|
27712
27734
|
l == null || l(!1);
|
|
27713
27735
|
}
|
|
@@ -27716,18 +27738,18 @@ function TreeActionBar(e) {
|
|
|
27716
27738
|
k == null || k({
|
|
27717
27739
|
actionData: q,
|
|
27718
27740
|
values: {
|
|
27719
|
-
active_id: o == null ? void 0 : o.map((
|
|
27720
|
-
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)
|
|
27721
27743
|
},
|
|
27722
27744
|
fields: {},
|
|
27723
27745
|
context: {
|
|
27724
27746
|
...O,
|
|
27725
|
-
active_id: o == null ? void 0 : o.map((
|
|
27726
|
-
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)
|
|
27727
27749
|
},
|
|
27728
27750
|
onRefreshParentValues: () => {
|
|
27729
|
-
var
|
|
27730
|
-
(
|
|
27751
|
+
var N;
|
|
27752
|
+
(N = d == null ? void 0 : d.current) == null || N.refreshResults();
|
|
27731
27753
|
}
|
|
27732
27754
|
});
|
|
27733
27755
|
}
|
|
@@ -27753,7 +27775,7 @@ function TreeActionBar(e) {
|
|
|
27753
27775
|
tooltip: w("delete"),
|
|
27754
27776
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || I,
|
|
27755
27777
|
loading: s,
|
|
27756
|
-
onClick:
|
|
27778
|
+
onClick: $
|
|
27757
27779
|
}), separator$1()]
|
|
27758
27780
|
}), !b && /* @__PURE__ */ jsx(ButtonWithBadge, {
|
|
27759
27781
|
icon: /* @__PURE__ */ jsx(FilterOutlined, {
|
|
@@ -27813,7 +27835,7 @@ function TreeActionBar(e) {
|
|
|
27813
27835
|
...q,
|
|
27814
27836
|
datas: {
|
|
27815
27837
|
...q.datas || {},
|
|
27816
|
-
ids: o.map((
|
|
27838
|
+
ids: o.map((N) => N.id)
|
|
27817
27839
|
}
|
|
27818
27840
|
});
|
|
27819
27841
|
}
|
|
@@ -27977,20 +27999,20 @@ function ActionView(e, t) {
|
|
|
27977
27999
|
action_type: m,
|
|
27978
28000
|
treeExpandable: v = !1,
|
|
27979
28001
|
limit: x
|
|
27980
|
-
} = 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(), {
|
|
27981
28003
|
t: P
|
|
27982
28004
|
} = useContext(LocaleContext), A = useRef(), j = useRef(), K = useContext(TabManagerContext), {
|
|
27983
28005
|
setCurrentView: X,
|
|
27984
28006
|
setCurrentId: F,
|
|
27985
|
-
tabs:
|
|
28007
|
+
tabs: _,
|
|
27986
28008
|
activeKey: Y,
|
|
27987
28009
|
openAction: Q
|
|
27988
28010
|
} = K || {};
|
|
27989
28011
|
useHotkeys("ctrl+g,command+g", (ie) => {
|
|
27990
28012
|
ie.preventDefault(), le();
|
|
27991
|
-
}, [Y,
|
|
28013
|
+
}, [Y, _, g, $, M]);
|
|
27992
28014
|
function ne(ie) {
|
|
27993
|
-
|
|
28015
|
+
S(ie), F == null || F(ie);
|
|
27994
28016
|
}
|
|
27995
28017
|
function J(ie) {
|
|
27996
28018
|
I(ie), X == null || X(ie);
|
|
@@ -28075,7 +28097,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28075
28097
|
J(de || ie), p ? F == null || F(E) : (ne(void 0), D(void 0)), ee();
|
|
28076
28098
|
}, [r, a, p]), useEffect(() => {
|
|
28077
28099
|
Y === l && (F == null || F(w), X == null || X(g));
|
|
28078
|
-
}, [
|
|
28100
|
+
}, [_, Y]);
|
|
28079
28101
|
async function oe() {
|
|
28080
28102
|
return g.type === "form" ? await A.current.cancelUnsavedChanges() : !0;
|
|
28081
28103
|
}
|
|
@@ -28192,15 +28214,15 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28192
28214
|
currentId: w,
|
|
28193
28215
|
setCurrentId: ne,
|
|
28194
28216
|
setCurrentItemIndex: D,
|
|
28195
|
-
currentItemIndex:
|
|
28217
|
+
currentItemIndex: $,
|
|
28196
28218
|
results: M,
|
|
28197
28219
|
setResults: L,
|
|
28198
28220
|
currentModel: r,
|
|
28199
28221
|
sorter: q,
|
|
28200
|
-
setSorter:
|
|
28222
|
+
setSorter: N,
|
|
28201
28223
|
totalItems: B,
|
|
28202
28224
|
setTotalItems: U,
|
|
28203
|
-
selectedRowItems:
|
|
28225
|
+
selectedRowItems: T,
|
|
28204
28226
|
setSelectedRowItems: k,
|
|
28205
28227
|
setSearchTreeNameSearch: H,
|
|
28206
28228
|
searchTreeNameSearch: V,
|
|
@@ -28405,17 +28427,17 @@ function DashboardTree(e) {
|
|
|
28405
28427
|
domain: a = [],
|
|
28406
28428
|
visible: s = !0,
|
|
28407
28429
|
parentContext: c = {}
|
|
28408
|
-
} = 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) => {
|
|
28409
28431
|
z(!0), C(F), O((F - 1) * b.current);
|
|
28410
28432
|
}, V = async () => {
|
|
28411
|
-
const F = W.current.length > 0 ? W.current : a,
|
|
28433
|
+
const F = W.current.length > 0 ? W.current : a, _ = mergeParams(E.current, F), {
|
|
28412
28434
|
colors: Y
|
|
28413
28435
|
} = getTree(m), {
|
|
28414
28436
|
totalItems: Q,
|
|
28415
28437
|
results: ne,
|
|
28416
28438
|
attrsEvaluated: J
|
|
28417
28439
|
} = await ConnectionProvider.getHandler().searchForTree({
|
|
28418
|
-
params:
|
|
28440
|
+
params: _,
|
|
28419
28441
|
limit: b.current,
|
|
28420
28442
|
offset: y,
|
|
28421
28443
|
model: p,
|
|
@@ -28425,7 +28447,7 @@ function DashboardTree(e) {
|
|
|
28425
28447
|
colors: Y
|
|
28426
28448
|
}
|
|
28427
28449
|
}), ee = await Q;
|
|
28428
|
-
|
|
28450
|
+
S(ee), D(getColorMap(J));
|
|
28429
28451
|
const oe = sortResults({
|
|
28430
28452
|
resultsToSort: ne,
|
|
28431
28453
|
sorter: M,
|
|
@@ -28439,7 +28461,7 @@ function DashboardTree(e) {
|
|
|
28439
28461
|
try {
|
|
28440
28462
|
z(!0), await V();
|
|
28441
28463
|
} catch (F) {
|
|
28442
|
-
|
|
28464
|
+
N(JSON.stringify(F));
|
|
28443
28465
|
} finally {
|
|
28444
28466
|
z(!1);
|
|
28445
28467
|
}
|
|
@@ -28451,8 +28473,8 @@ function DashboardTree(e) {
|
|
|
28451
28473
|
f(!1), u(!0), U(void 0);
|
|
28452
28474
|
try {
|
|
28453
28475
|
F === "action" ? await A() : await j(), f(!0);
|
|
28454
|
-
} catch (
|
|
28455
|
-
U(
|
|
28476
|
+
} catch (_) {
|
|
28477
|
+
U(_);
|
|
28456
28478
|
} finally {
|
|
28457
28479
|
u(!1);
|
|
28458
28480
|
}
|
|
@@ -28470,23 +28492,23 @@ function DashboardTree(e) {
|
|
|
28470
28492
|
context: c
|
|
28471
28493
|
});
|
|
28472
28494
|
g(F);
|
|
28473
|
-
const
|
|
28495
|
+
const _ = await ConnectionProvider.getHandler().getView({
|
|
28474
28496
|
model: n,
|
|
28475
28497
|
type: "tree",
|
|
28476
28498
|
id: r,
|
|
28477
28499
|
context: c
|
|
28478
28500
|
});
|
|
28479
|
-
v(
|
|
28501
|
+
v(_);
|
|
28480
28502
|
};
|
|
28481
28503
|
useEffect(() => {
|
|
28482
28504
|
t ? P("action") : n && P("model");
|
|
28483
28505
|
}, [t, n]);
|
|
28484
28506
|
const K = (F) => {
|
|
28485
28507
|
const {
|
|
28486
|
-
id:
|
|
28508
|
+
id: _
|
|
28487
28509
|
} = F;
|
|
28488
28510
|
o({
|
|
28489
|
-
id:
|
|
28511
|
+
id: _,
|
|
28490
28512
|
model: p,
|
|
28491
28513
|
treeView: m
|
|
28492
28514
|
});
|
|
@@ -28505,23 +28527,23 @@ function DashboardTree(e) {
|
|
|
28505
28527
|
limit: b.current,
|
|
28506
28528
|
page: I,
|
|
28507
28529
|
treeView: m,
|
|
28508
|
-
results:
|
|
28530
|
+
results: T,
|
|
28509
28531
|
onRequestPageChange: Z,
|
|
28510
28532
|
loading: G,
|
|
28511
28533
|
onRowClicked: K,
|
|
28512
|
-
colorsForResults:
|
|
28534
|
+
colorsForResults: $,
|
|
28513
28535
|
sorter: M,
|
|
28514
28536
|
onChangeSort: (F) => {
|
|
28515
28537
|
L == null || L(F);
|
|
28516
|
-
const
|
|
28517
|
-
resultsToSort:
|
|
28538
|
+
const _ = sortResults({
|
|
28539
|
+
resultsToSort: T,
|
|
28518
28540
|
sorter: F,
|
|
28519
28541
|
fields: {
|
|
28520
28542
|
...m.fields,
|
|
28521
28543
|
...x.fields
|
|
28522
28544
|
}
|
|
28523
28545
|
});
|
|
28524
|
-
k(
|
|
28546
|
+
k(_);
|
|
28525
28547
|
}
|
|
28526
28548
|
})]
|
|
28527
28549
|
});
|
|
@@ -28586,13 +28608,13 @@ function Dashboard(e, t) {
|
|
|
28586
28608
|
async function g() {
|
|
28587
28609
|
u(!0), p(!0), f(void 0);
|
|
28588
28610
|
try {
|
|
28589
|
-
const w = await I(),
|
|
28611
|
+
const w = await I(), S = await y(w), T = w.fields[itemsField].relation, k = S[itemsField].items;
|
|
28590
28612
|
x.current = w.fields;
|
|
28591
|
-
const
|
|
28613
|
+
const $ = await C({
|
|
28592
28614
|
items: k,
|
|
28593
|
-
model:
|
|
28615
|
+
model: T,
|
|
28594
28616
|
context: r
|
|
28595
|
-
}), D = await O(
|
|
28617
|
+
}), D = await O($);
|
|
28596
28618
|
c(D), u(!1), p(!1);
|
|
28597
28619
|
} catch (w) {
|
|
28598
28620
|
f(JSON.stringify(w));
|
|
@@ -28607,19 +28629,19 @@ function Dashboard(e, t) {
|
|
|
28607
28629
|
}
|
|
28608
28630
|
async function C({
|
|
28609
28631
|
items: w,
|
|
28610
|
-
model:
|
|
28611
|
-
context:
|
|
28632
|
+
model: S,
|
|
28633
|
+
context: T
|
|
28612
28634
|
}) {
|
|
28613
28635
|
return v.current = (await ConnectionProvider.getHandler().getView({
|
|
28614
|
-
model:
|
|
28636
|
+
model: S,
|
|
28615
28637
|
type: "form",
|
|
28616
|
-
context:
|
|
28638
|
+
context: T
|
|
28617
28639
|
})).fields, await readObjectValues({
|
|
28618
28640
|
treeFields: v.current,
|
|
28619
28641
|
formFields: v.current,
|
|
28620
|
-
model:
|
|
28642
|
+
model: S,
|
|
28621
28643
|
items: w,
|
|
28622
|
-
context:
|
|
28644
|
+
context: T
|
|
28623
28645
|
});
|
|
28624
28646
|
}
|
|
28625
28647
|
async function y(w) {
|
|
@@ -28631,28 +28653,28 @@ function Dashboard(e, t) {
|
|
|
28631
28653
|
}))[0];
|
|
28632
28654
|
}
|
|
28633
28655
|
async function O(w) {
|
|
28634
|
-
const
|
|
28635
|
-
for (const
|
|
28656
|
+
const S = [];
|
|
28657
|
+
for (const T of w) {
|
|
28636
28658
|
const {
|
|
28637
28659
|
values: k
|
|
28638
|
-
} =
|
|
28660
|
+
} = T;
|
|
28639
28661
|
if (k.action_id && k.action_id.length > 0) {
|
|
28640
|
-
const
|
|
28641
|
-
actionId:
|
|
28662
|
+
const $ = parseInt(k.action_id[0], 10), D = await fetchAction({
|
|
28663
|
+
actionId: $,
|
|
28642
28664
|
rootContext: r
|
|
28643
28665
|
});
|
|
28644
|
-
|
|
28645
|
-
...
|
|
28666
|
+
S.push({
|
|
28667
|
+
...T,
|
|
28646
28668
|
actionData: D
|
|
28647
28669
|
});
|
|
28648
28670
|
}
|
|
28649
28671
|
}
|
|
28650
|
-
return
|
|
28672
|
+
return S;
|
|
28651
28673
|
}
|
|
28652
28674
|
async function b(w) {
|
|
28653
28675
|
if (!m)
|
|
28654
28676
|
return;
|
|
28655
|
-
const
|
|
28677
|
+
const S = w.filter((D) => {
|
|
28656
28678
|
const M = s.find((q) => q.id === D.id);
|
|
28657
28679
|
if (!M)
|
|
28658
28680
|
return !1;
|
|
@@ -28664,11 +28686,11 @@ function Dashboard(e, t) {
|
|
|
28664
28686
|
};
|
|
28665
28687
|
return JSON.stringify(D) !== JSON.stringify(L);
|
|
28666
28688
|
});
|
|
28667
|
-
if (
|
|
28689
|
+
if (S.length === 0)
|
|
28668
28690
|
return;
|
|
28669
|
-
const k = s.filter((D) =>
|
|
28691
|
+
const k = s.filter((D) => S.map((M) => M.id).includes(D.id)).map((D) => {
|
|
28670
28692
|
const M = {
|
|
28671
|
-
...
|
|
28693
|
+
...S.find((L) => L.id === D.id)
|
|
28672
28694
|
};
|
|
28673
28695
|
return delete M.id, {
|
|
28674
28696
|
...D
|
|
@@ -28680,7 +28702,7 @@ function Dashboard(e, t) {
|
|
|
28680
28702
|
position: JSON.stringify(M).replace(/"/g, "'")
|
|
28681
28703
|
}
|
|
28682
28704
|
};
|
|
28683
|
-
}),
|
|
28705
|
+
}), $ = {
|
|
28684
28706
|
fields: v.current,
|
|
28685
28707
|
items: k
|
|
28686
28708
|
};
|
|
@@ -28688,7 +28710,7 @@ function Dashboard(e, t) {
|
|
|
28688
28710
|
model: n,
|
|
28689
28711
|
id: o,
|
|
28690
28712
|
values: {
|
|
28691
|
-
[itemsField]:
|
|
28713
|
+
[itemsField]: $
|
|
28692
28714
|
},
|
|
28693
28715
|
fields: x.current,
|
|
28694
28716
|
context: r
|
|
@@ -28704,31 +28726,31 @@ function Dashboard(e, t) {
|
|
|
28704
28726
|
banner: !0
|
|
28705
28727
|
}) : l ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
|
|
28706
28728
|
onPositionItemsChanged: b,
|
|
28707
|
-
children: s.map((w,
|
|
28729
|
+
children: s.map((w, S) => {
|
|
28708
28730
|
const {
|
|
28709
|
-
actionData:
|
|
28731
|
+
actionData: T,
|
|
28710
28732
|
values: k
|
|
28711
28733
|
} = w, {
|
|
28712
|
-
position:
|
|
28734
|
+
position: $,
|
|
28713
28735
|
id: D
|
|
28714
28736
|
} = k, {
|
|
28715
28737
|
actionId: M,
|
|
28716
28738
|
actionType: L,
|
|
28717
28739
|
key: q,
|
|
28718
|
-
title:
|
|
28740
|
+
title: N,
|
|
28719
28741
|
views: B,
|
|
28720
28742
|
model: U,
|
|
28721
28743
|
context: G,
|
|
28722
28744
|
domain: z,
|
|
28723
28745
|
initialView: W,
|
|
28724
28746
|
limit: Z
|
|
28725
|
-
} =
|
|
28747
|
+
} = T;
|
|
28726
28748
|
let V = {};
|
|
28727
28749
|
try {
|
|
28728
|
-
V = JSON.parse(
|
|
28750
|
+
V = JSON.parse($.replace(/'/g, '"'));
|
|
28729
28751
|
} catch {
|
|
28730
28752
|
V = {
|
|
28731
|
-
x:
|
|
28753
|
+
x: S * 2,
|
|
28732
28754
|
y: 0,
|
|
28733
28755
|
w: 2,
|
|
28734
28756
|
h: 3
|
|
@@ -28760,12 +28782,12 @@ function Dashboard(e, t) {
|
|
|
28760
28782
|
});
|
|
28761
28783
|
if (K) {
|
|
28762
28784
|
const [X, F] = K, {
|
|
28763
|
-
actionId:
|
|
28785
|
+
actionId: _,
|
|
28764
28786
|
actionType: Y,
|
|
28765
28787
|
title: Q,
|
|
28766
28788
|
model: ne
|
|
28767
|
-
} =
|
|
28768
|
-
action_id:
|
|
28789
|
+
} = T, J = {
|
|
28790
|
+
action_id: _,
|
|
28769
28791
|
action_type: Y,
|
|
28770
28792
|
name: Q,
|
|
28771
28793
|
res_id: j.id,
|
|
@@ -28786,7 +28808,7 @@ function Dashboard(e, t) {
|
|
|
28786
28808
|
action_id: M,
|
|
28787
28809
|
action_type: L,
|
|
28788
28810
|
tabKey: q,
|
|
28789
|
-
title:
|
|
28811
|
+
title: N,
|
|
28790
28812
|
views: B,
|
|
28791
28813
|
model: U,
|
|
28792
28814
|
context: G,
|
|
@@ -28806,13 +28828,13 @@ function Dashboard(e, t) {
|
|
|
28806
28828
|
const [j, K] = A, {
|
|
28807
28829
|
actionId: X,
|
|
28808
28830
|
actionType: F,
|
|
28809
|
-
title:
|
|
28831
|
+
title: _,
|
|
28810
28832
|
model: Y
|
|
28811
|
-
} =
|
|
28833
|
+
} = T;
|
|
28812
28834
|
P = {
|
|
28813
28835
|
action_id: X,
|
|
28814
28836
|
action_type: F,
|
|
28815
|
-
name:
|
|
28837
|
+
name: _,
|
|
28816
28838
|
res_id: !1,
|
|
28817
28839
|
res_model: Y,
|
|
28818
28840
|
view_id: j,
|
|
@@ -28821,7 +28843,7 @@ function Dashboard(e, t) {
|
|
|
28821
28843
|
}
|
|
28822
28844
|
return /* @__PURE__ */ jsx(DashboardGridItem, {
|
|
28823
28845
|
id: D,
|
|
28824
|
-
title:
|
|
28846
|
+
title: N,
|
|
28825
28847
|
parms: V,
|
|
28826
28848
|
action: P,
|
|
28827
28849
|
openAction: h,
|
|
@@ -28869,7 +28891,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28869
28891
|
f(!0);
|
|
28870
28892
|
let w = [];
|
|
28871
28893
|
if (n.domain) {
|
|
28872
|
-
const
|
|
28894
|
+
const S = await ConnectionProvider.getHandler().evalDomain({
|
|
28873
28895
|
domain: n.domain,
|
|
28874
28896
|
values: transformPlainMany2Ones({
|
|
28875
28897
|
fields: g == null ? void 0 : g.getFields(),
|
|
@@ -28878,10 +28900,10 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28878
28900
|
fields: g == null ? void 0 : g.getFields(),
|
|
28879
28901
|
context: g.getContext()
|
|
28880
28902
|
});
|
|
28881
|
-
w = [...w, ...
|
|
28903
|
+
w = [...w, ...S];
|
|
28882
28904
|
}
|
|
28883
28905
|
try {
|
|
28884
|
-
const
|
|
28906
|
+
const T = (await ConnectionProvider.getHandler().search({
|
|
28885
28907
|
model: p,
|
|
28886
28908
|
params: w,
|
|
28887
28909
|
fields: [v],
|
|
@@ -28890,16 +28912,16 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28890
28912
|
...h
|
|
28891
28913
|
}
|
|
28892
28914
|
})).map((k) => {
|
|
28893
|
-
const
|
|
28894
|
-
let D =
|
|
28895
|
-
return Array.isArray(
|
|
28915
|
+
const $ = k[v];
|
|
28916
|
+
let D = $;
|
|
28917
|
+
return Array.isArray($) && (D = $[1]), {
|
|
28896
28918
|
label: D,
|
|
28897
28919
|
value: k.id
|
|
28898
28920
|
};
|
|
28899
28921
|
});
|
|
28900
|
-
c(
|
|
28901
|
-
} catch (
|
|
28902
|
-
u(
|
|
28922
|
+
c(T);
|
|
28923
|
+
} catch (S) {
|
|
28924
|
+
u(S);
|
|
28903
28925
|
} finally {
|
|
28904
28926
|
f(!1);
|
|
28905
28927
|
}
|
|
@@ -28916,19 +28938,19 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28916
28938
|
}, b = () => {
|
|
28917
28939
|
E([]);
|
|
28918
28940
|
}, E = (w) => {
|
|
28919
|
-
const
|
|
28941
|
+
const S = o.map((k) => w.includes(k.id) ? k.operation == "pendingRemove" ? {
|
|
28920
28942
|
...k,
|
|
28921
28943
|
operation: "original"
|
|
28922
28944
|
} : k : {
|
|
28923
28945
|
id: k.id,
|
|
28924
28946
|
operation: "pendingRemove"
|
|
28925
|
-
}),
|
|
28926
|
-
w.filter((k) => !
|
|
28927
|
-
|
|
28947
|
+
}), T = S.map((k) => k.id);
|
|
28948
|
+
w.filter((k) => !T.includes(k)).map((k) => {
|
|
28949
|
+
S.push({
|
|
28928
28950
|
id: k,
|
|
28929
28951
|
operation: "pendingLink"
|
|
28930
28952
|
});
|
|
28931
|
-
}), C(
|
|
28953
|
+
}), C(S);
|
|
28932
28954
|
};
|
|
28933
28955
|
return d && s.length === 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Fragment, {
|
|
28934
28956
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -29133,22 +29155,22 @@ function RootView(e, t) {
|
|
|
29133
29155
|
forced_values: b,
|
|
29134
29156
|
initialViewType: E,
|
|
29135
29157
|
res_id: w,
|
|
29136
|
-
domain:
|
|
29158
|
+
domain: S = []
|
|
29137
29159
|
}) {
|
|
29138
|
-
const
|
|
29160
|
+
const T = await ConnectionProvider.getHandler().getActionData({
|
|
29139
29161
|
action: y,
|
|
29140
29162
|
context: o
|
|
29141
29163
|
});
|
|
29142
|
-
if (
|
|
29164
|
+
if (T.type === "ir.actions.wizard") {
|
|
29143
29165
|
showDialog$8("Action type not supported");
|
|
29144
29166
|
return;
|
|
29145
29167
|
}
|
|
29146
|
-
const [k,
|
|
29147
|
-
context:
|
|
29168
|
+
const [k, $] = y.split(","), D = parseInt($), M = parseContext({
|
|
29169
|
+
context: T.context,
|
|
29148
29170
|
values: r,
|
|
29149
29171
|
fields: {}
|
|
29150
|
-
}), L =
|
|
29151
|
-
domain:
|
|
29172
|
+
}), L = T.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
29173
|
+
domain: T.domain,
|
|
29152
29174
|
values: r,
|
|
29153
29175
|
context: {
|
|
29154
29176
|
...o,
|
|
@@ -29156,13 +29178,13 @@ function RootView(e, t) {
|
|
|
29156
29178
|
}
|
|
29157
29179
|
}) : [], {
|
|
29158
29180
|
res_model: q,
|
|
29159
|
-
views:
|
|
29181
|
+
views: N,
|
|
29160
29182
|
name: B,
|
|
29161
29183
|
target: U,
|
|
29162
29184
|
view_type: G,
|
|
29163
29185
|
limit: z
|
|
29164
|
-
} =
|
|
29165
|
-
for (const H of
|
|
29186
|
+
} = T, W = G === "tree", Z = [];
|
|
29187
|
+
for (const H of N) {
|
|
29166
29188
|
const [P, A] = H;
|
|
29167
29189
|
if (P)
|
|
29168
29190
|
Z.push(H);
|
|
@@ -29198,7 +29220,7 @@ function RootView(e, t) {
|
|
|
29198
29220
|
};
|
|
29199
29221
|
}
|
|
29200
29222
|
C({
|
|
29201
|
-
domain: [...L, ...
|
|
29223
|
+
domain: [...L, ...S],
|
|
29202
29224
|
context: {
|
|
29203
29225
|
...o,
|
|
29204
29226
|
...M
|
|
@@ -29224,7 +29246,7 @@ function RootView(e, t) {
|
|
|
29224
29246
|
action: E
|
|
29225
29247
|
}) {
|
|
29226
29248
|
let w = [...l];
|
|
29227
|
-
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, {
|
|
29228
29250
|
title: y,
|
|
29229
29251
|
key: b,
|
|
29230
29252
|
closable: !0,
|
|
@@ -29240,18 +29262,18 @@ function RootView(e, t) {
|
|
|
29240
29262
|
action_type: w
|
|
29241
29263
|
}) {
|
|
29242
29264
|
const {
|
|
29243
|
-
res_model:
|
|
29244
|
-
context:
|
|
29265
|
+
res_model: S,
|
|
29266
|
+
context: T,
|
|
29245
29267
|
domain: k,
|
|
29246
|
-
views:
|
|
29268
|
+
views: $,
|
|
29247
29269
|
target: D,
|
|
29248
29270
|
string: M,
|
|
29249
29271
|
limit: L
|
|
29250
|
-
} = y, [q,
|
|
29272
|
+
} = y, [q, N] = $[0], B = {
|
|
29251
29273
|
id: q,
|
|
29252
|
-
type:
|
|
29274
|
+
type: N
|
|
29253
29275
|
}, U = parseContext({
|
|
29254
|
-
context:
|
|
29276
|
+
context: T,
|
|
29255
29277
|
values: {
|
|
29256
29278
|
...b,
|
|
29257
29279
|
...r
|
|
@@ -29273,9 +29295,9 @@ function RootView(e, t) {
|
|
|
29273
29295
|
}
|
|
29274
29296
|
}) : [];
|
|
29275
29297
|
C({
|
|
29276
|
-
model:
|
|
29298
|
+
model: S,
|
|
29277
29299
|
target: D,
|
|
29278
|
-
views:
|
|
29300
|
+
views: $,
|
|
29279
29301
|
context: {
|
|
29280
29302
|
...o,
|
|
29281
29303
|
...U
|
|
@@ -29294,15 +29316,15 @@ function RootView(e, t) {
|
|
|
29294
29316
|
action_type: b,
|
|
29295
29317
|
res_id: E,
|
|
29296
29318
|
view_id: w
|
|
29297
|
-
} = y,
|
|
29298
|
-
action:
|
|
29319
|
+
} = y, S = `${b},${O}`, T = await ConnectionProvider.getHandler().getActionData({
|
|
29320
|
+
action: S,
|
|
29299
29321
|
context: o
|
|
29300
29322
|
}), k = parseContext({
|
|
29301
|
-
context:
|
|
29323
|
+
context: T.context,
|
|
29302
29324
|
values: r,
|
|
29303
29325
|
fields: {}
|
|
29304
|
-
}),
|
|
29305
|
-
domain:
|
|
29326
|
+
}), $ = T.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
29327
|
+
domain: T.domain,
|
|
29306
29328
|
values: r,
|
|
29307
29329
|
context: {
|
|
29308
29330
|
...o,
|
|
@@ -29313,9 +29335,9 @@ function RootView(e, t) {
|
|
|
29313
29335
|
views: M,
|
|
29314
29336
|
name: L,
|
|
29315
29337
|
target: q,
|
|
29316
|
-
view_type:
|
|
29338
|
+
view_type: N,
|
|
29317
29339
|
limit: B
|
|
29318
|
-
} =
|
|
29340
|
+
} = T, U = N === "tree", G = [];
|
|
29319
29341
|
for (const V of M) {
|
|
29320
29342
|
const [H, P] = V;
|
|
29321
29343
|
if (H)
|
|
@@ -29348,7 +29370,7 @@ function RootView(e, t) {
|
|
|
29348
29370
|
type: W
|
|
29349
29371
|
};
|
|
29350
29372
|
C({
|
|
29351
|
-
domain:
|
|
29373
|
+
domain: $,
|
|
29352
29374
|
context: {
|
|
29353
29375
|
...o,
|
|
29354
29376
|
...k
|
|
@@ -29371,16 +29393,16 @@ function RootView(e, t) {
|
|
|
29371
29393
|
forced_values: b,
|
|
29372
29394
|
initialViewType: E,
|
|
29373
29395
|
res_id: w,
|
|
29374
|
-
domain:
|
|
29396
|
+
domain: S
|
|
29375
29397
|
}) {
|
|
29376
|
-
const
|
|
29398
|
+
const T = await ConnectionProvider.getHandler().getActionStringForModel(y);
|
|
29377
29399
|
await m({
|
|
29378
|
-
action:
|
|
29400
|
+
action: T,
|
|
29379
29401
|
values: O,
|
|
29380
29402
|
forced_values: b,
|
|
29381
29403
|
initialViewType: E,
|
|
29382
29404
|
res_id: w,
|
|
29383
|
-
domain:
|
|
29405
|
+
domain: S
|
|
29384
29406
|
});
|
|
29385
29407
|
}
|
|
29386
29408
|
async function C({
|
|
@@ -29389,22 +29411,22 @@ function RootView(e, t) {
|
|
|
29389
29411
|
model: b,
|
|
29390
29412
|
views: E,
|
|
29391
29413
|
title: w,
|
|
29392
|
-
target:
|
|
29393
|
-
initialView:
|
|
29414
|
+
target: S,
|
|
29415
|
+
initialView: T,
|
|
29394
29416
|
action_id: k,
|
|
29395
|
-
action_type:
|
|
29417
|
+
action_type: $,
|
|
29396
29418
|
res_id: D,
|
|
29397
29419
|
values: M,
|
|
29398
29420
|
forced_values: L,
|
|
29399
29421
|
treeExpandable: q = !1,
|
|
29400
|
-
limit:
|
|
29422
|
+
limit: N
|
|
29401
29423
|
}) {
|
|
29402
29424
|
const B = v4();
|
|
29403
|
-
if (
|
|
29425
|
+
if (S !== "current") {
|
|
29404
29426
|
const U = await ConnectionProvider.getHandler().getView({
|
|
29405
29427
|
model: b,
|
|
29406
29428
|
type: "form",
|
|
29407
|
-
id:
|
|
29429
|
+
id: T.type === "form" ? T.id : void 0,
|
|
29408
29430
|
context: {
|
|
29409
29431
|
...o,
|
|
29410
29432
|
...O
|
|
@@ -29420,25 +29442,25 @@ function RootView(e, t) {
|
|
|
29420
29442
|
},
|
|
29421
29443
|
actionData: {
|
|
29422
29444
|
action_id: k,
|
|
29423
|
-
action_type:
|
|
29445
|
+
action_type: $,
|
|
29424
29446
|
res_id: D,
|
|
29425
29447
|
view_id: U.view_id
|
|
29426
29448
|
}
|
|
29427
29449
|
});
|
|
29428
29450
|
} else {
|
|
29429
|
-
const U =
|
|
29430
|
-
...
|
|
29431
|
-
id:
|
|
29432
|
-
} :
|
|
29451
|
+
const U = T && Array.isArray(T.id) ? {
|
|
29452
|
+
...T,
|
|
29453
|
+
id: T.id[0]
|
|
29454
|
+
} : T;
|
|
29433
29455
|
v({
|
|
29434
29456
|
title: w,
|
|
29435
29457
|
action: {
|
|
29436
29458
|
id: k,
|
|
29437
|
-
type:
|
|
29459
|
+
type: $
|
|
29438
29460
|
},
|
|
29439
29461
|
content: /* @__PURE__ */ jsx(ActionView$1, {
|
|
29440
29462
|
action_id: k,
|
|
29441
|
-
action_type:
|
|
29463
|
+
action_type: $,
|
|
29442
29464
|
tabKey: B,
|
|
29443
29465
|
title: w,
|
|
29444
29466
|
views: E,
|
|
@@ -29454,7 +29476,7 @@ function RootView(e, t) {
|
|
|
29454
29476
|
formDefaultValues: M,
|
|
29455
29477
|
formForcedValues: L,
|
|
29456
29478
|
treeExpandable: q,
|
|
29457
|
-
limit:
|
|
29479
|
+
limit: N
|
|
29458
29480
|
}),
|
|
29459
29481
|
key: B
|
|
29460
29482
|
});
|
|
@@ -29606,7 +29628,7 @@ const FavouriteButton = (e) => {
|
|
|
29606
29628
|
useEffect(() => {
|
|
29607
29629
|
E();
|
|
29608
29630
|
}, []), useEffect(() => {
|
|
29609
|
-
|
|
29631
|
+
T();
|
|
29610
29632
|
}, [I, C, y, O]);
|
|
29611
29633
|
async function E() {
|
|
29612
29634
|
try {
|
|
@@ -29622,20 +29644,20 @@ const FavouriteButton = (e) => {
|
|
|
29622
29644
|
function w(L) {
|
|
29623
29645
|
const {
|
|
29624
29646
|
key: q
|
|
29625
|
-
} = L,
|
|
29626
|
-
(
|
|
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));
|
|
29627
29649
|
}
|
|
29628
|
-
function
|
|
29650
|
+
function S(L) {
|
|
29629
29651
|
L && E(), l(L);
|
|
29630
29652
|
}
|
|
29631
|
-
async function
|
|
29653
|
+
async function T() {
|
|
29632
29654
|
if (!y)
|
|
29633
29655
|
return;
|
|
29634
29656
|
const L = I.find((z) => z.key === C), {
|
|
29635
29657
|
id: q,
|
|
29636
|
-
type:
|
|
29658
|
+
type: N
|
|
29637
29659
|
} = (L == null ? void 0 : L.action) || {};
|
|
29638
|
-
if (!q ||
|
|
29660
|
+
if (!q || !N) {
|
|
29639
29661
|
s(!1);
|
|
29640
29662
|
return;
|
|
29641
29663
|
}
|
|
@@ -29644,7 +29666,7 @@ const FavouriteButton = (e) => {
|
|
|
29644
29666
|
y.type === "form" && (U = O || !1);
|
|
29645
29667
|
const G = await n({
|
|
29646
29668
|
action_id: q,
|
|
29647
|
-
action_type:
|
|
29669
|
+
action_type: N,
|
|
29648
29670
|
view_id: B,
|
|
29649
29671
|
res_id: U
|
|
29650
29672
|
});
|
|
@@ -29655,7 +29677,7 @@ const FavouriteButton = (e) => {
|
|
|
29655
29677
|
model: "ir.ui.view_sc"
|
|
29656
29678
|
});
|
|
29657
29679
|
}
|
|
29658
|
-
const
|
|
29680
|
+
const $ = /* @__PURE__ */ jsxs(Menu, {
|
|
29659
29681
|
onClick: w,
|
|
29660
29682
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
29661
29683
|
style: {
|
|
@@ -29731,16 +29753,16 @@ const FavouriteButton = (e) => {
|
|
|
29731
29753
|
return;
|
|
29732
29754
|
const L = I.find((G) => G.key === C), {
|
|
29733
29755
|
id: q,
|
|
29734
|
-
type:
|
|
29756
|
+
type: N
|
|
29735
29757
|
} = (L == null ? void 0 : L.action) || {}, B = y.view_id;
|
|
29736
29758
|
let U = !1;
|
|
29737
|
-
if (!q ||
|
|
29759
|
+
if (!q || !N) {
|
|
29738
29760
|
s(!1);
|
|
29739
29761
|
return;
|
|
29740
29762
|
}
|
|
29741
29763
|
y.type === "form" && (U = O || !1), await r({
|
|
29742
29764
|
action_id: q,
|
|
29743
|
-
action_type:
|
|
29765
|
+
action_type: N,
|
|
29744
29766
|
view_id: B,
|
|
29745
29767
|
res_id: U
|
|
29746
29768
|
});
|
|
@@ -29760,8 +29782,8 @@ const FavouriteButton = (e) => {
|
|
|
29760
29782
|
},
|
|
29761
29783
|
onClick: M
|
|
29762
29784
|
}), /* @__PURE__ */ jsx(Dropdown, {
|
|
29763
|
-
overlay:
|
|
29764
|
-
onVisibleChange:
|
|
29785
|
+
overlay: $,
|
|
29786
|
+
onVisibleChange: S,
|
|
29765
29787
|
visible: c,
|
|
29766
29788
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
29767
29789
|
style: {
|