@pisell/private-materials 3.4.96 → 3.4.98
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +153 -145
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.js +6 -3
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +2 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +17 -2
- package/es/components/systemSettings/registry/components/SettingsTable.js +3 -1
- package/es/components/systemSettings/registry/index.js +35 -30
- package/es/components/systemSettings/registry/locales.d.ts +10 -0
- package/es/components/systemSettings/registry/locales.js +12 -2
- package/es/components/systemSettings/registry/services.d.ts +11 -11
- package/es/components/systemSettings/registry/services.js +75 -33
- package/es/components/systemSettings/registry/types.d.ts +2 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +2 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/orderList/components/HandleActions.d.ts +0 -1
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/es/plus/orderList/components/Reset.d.ts +0 -1
- package/es/plus/orderList/components/Toolbar.d.ts +0 -1
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.d.ts +16 -0
- package/es/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.js +267 -0
- package/es/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.less +85 -0
- package/es/plus/saasDevice/devicePlanning/components/DeleteDeviceModal/index.d.ts +12 -0
- package/es/plus/saasDevice/devicePlanning/components/DeleteDeviceModal/index.js +48 -0
- package/es/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.d.ts +16 -0
- package/es/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.js +72 -0
- package/es/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.less +30 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.d.ts +14 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +101 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +151 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceTable/index.d.ts +25 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceTable/index.js +175 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceTable/index.less +98 -0
- package/es/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.d.ts +16 -0
- package/es/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.js +165 -0
- package/es/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.less +11 -0
- package/es/plus/saasDevice/devicePlanning/components/WorkAreaList/index.d.ts +18 -0
- package/es/plus/saasDevice/devicePlanning/components/WorkAreaList/index.js +137 -0
- package/es/plus/saasDevice/devicePlanning/components/WorkAreaList/index.less +85 -0
- package/es/plus/saasDevice/devicePlanning/components/WorkAreaModal/index.d.ts +14 -0
- package/es/plus/saasDevice/devicePlanning/components/WorkAreaModal/index.js +98 -0
- package/es/plus/saasDevice/devicePlanning/constants.d.ts +9 -0
- package/es/plus/saasDevice/devicePlanning/constants.js +42 -0
- package/es/plus/saasDevice/devicePlanning/hooks.d.ts +1 -0
- package/es/plus/saasDevice/devicePlanning/hooks.js +9 -0
- package/es/plus/saasDevice/devicePlanning/index.d.ts +5 -0
- package/es/plus/saasDevice/devicePlanning/index.js +804 -0
- package/es/plus/saasDevice/devicePlanning/index.less +52 -0
- package/es/plus/saasDevice/devicePlanning/locales.d.ts +483 -0
- package/es/plus/saasDevice/devicePlanning/locales.js +487 -0
- package/es/plus/saasDevice/devicePlanning/serve.d.ts +19 -0
- package/es/plus/saasDevice/devicePlanning/serve.js +197 -0
- package/es/plus/saasDevice/devicePlanning/types.d.ts +138 -0
- package/es/plus/saasDevice/devicePlanning/types.js +50 -0
- package/es/plus/saasDevice/deviceProfile/components/CreateProfileModal/index.d.ts +16 -0
- package/es/plus/saasDevice/deviceProfile/components/CreateProfileModal/index.js +381 -0
- package/es/plus/saasDevice/deviceProfile/components/CreateProfileModal/index.less +131 -0
- package/es/plus/saasDevice/deviceProfile/components/DeleteProfileModal/index.d.ts +16 -0
- package/es/plus/saasDevice/deviceProfile/components/DeleteProfileModal/index.js +96 -0
- package/es/plus/saasDevice/deviceProfile/components/DeleteProfileModal/index.less +109 -0
- package/es/plus/saasDevice/deviceProfile/components/ProfileSetting/BasicForm.d.ts +16 -0
- package/es/plus/saasDevice/deviceProfile/components/ProfileSetting/BasicForm.js +157 -0
- package/es/plus/saasDevice/deviceProfile/components/ProfileSetting/index.d.ts +12 -0
- package/es/plus/saasDevice/deviceProfile/components/ProfileSetting/index.js +290 -0
- package/es/plus/saasDevice/deviceProfile/components/ProfileSetting/index.less +94 -0
- package/es/plus/saasDevice/deviceProfile/components/ProfileSetting/utils.d.ts +1 -0
- package/es/plus/saasDevice/deviceProfile/components/ProfileSetting/utils.js +25 -0
- package/es/plus/saasDevice/deviceProfile/components/SiderMenuPanel/index.d.ts +15 -0
- package/es/plus/saasDevice/deviceProfile/components/SiderMenuPanel/index.js +56 -0
- package/es/plus/saasDevice/deviceProfile/components/SiderMenuPanel/index.less +28 -0
- package/es/plus/saasDevice/deviceProfile/components/TwoColumnPageLayout/index.d.ts +11 -0
- package/es/plus/saasDevice/deviceProfile/components/TwoColumnPageLayout/index.js +33 -0
- package/es/plus/saasDevice/deviceProfile/components/TwoColumnPageLayout/index.less +40 -0
- package/es/plus/saasDevice/deviceProfile/components/UnsavedConfirmModal/index.d.ts +2 -0
- package/es/plus/saasDevice/deviceProfile/components/UnsavedConfirmModal/index.js +18 -0
- package/es/plus/saasDevice/deviceProfile/components/UnsavedConfirmModal/index.less +14 -0
- package/es/plus/saasDevice/deviceProfile/hooks.d.ts +1 -0
- package/es/plus/saasDevice/deviceProfile/hooks.js +8 -0
- package/es/plus/saasDevice/deviceProfile/index.d.ts +5 -0
- package/es/plus/saasDevice/deviceProfile/index.js +611 -0
- package/es/plus/saasDevice/deviceProfile/index.less +54 -0
- package/es/plus/saasDevice/deviceProfile/locales.d.ts +383 -0
- package/es/plus/saasDevice/deviceProfile/locales.js +387 -0
- package/es/plus/saasDevice/deviceProfile/serve.d.ts +38 -0
- package/es/plus/saasDevice/deviceProfile/serve.js +148 -0
- package/es/plus/saasDevice/deviceProfile/types.d.ts +190 -0
- package/es/plus/saasDevice/deviceProfile/types.js +46 -0
- package/es/plus/saasDevice/index.d.ts +0 -0
- package/es/plus/saasDevice/index.js +0 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.js +2 -1
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +2 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +10 -2
- package/lib/components/systemSettings/registry/components/SettingsTable.js +3 -1
- package/lib/components/systemSettings/registry/index.js +19 -16
- package/lib/components/systemSettings/registry/locales.d.ts +10 -0
- package/lib/components/systemSettings/registry/locales.js +12 -2
- package/lib/components/systemSettings/registry/services.d.ts +11 -11
- package/lib/components/systemSettings/registry/services.js +49 -22
- package/lib/components/systemSettings/registry/types.d.ts +2 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +6 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -1
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/lib/plus/orderList/components/Reset.d.ts +0 -1
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -1
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.d.ts +16 -0
- package/lib/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.js +228 -0
- package/lib/plus/saasDevice/devicePlanning/components/AddDeviceModal/index.less +85 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeleteDeviceModal/index.d.ts +12 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeleteDeviceModal/index.js +86 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.d.ts +16 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.js +108 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeleteWorkAreaModal/index.less +30 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.d.ts +14 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +91 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +151 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceTable/index.d.ts +25 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceTable/index.js +193 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceTable/index.less +98 -0
- package/lib/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.d.ts +16 -0
- package/lib/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.js +186 -0
- package/lib/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.less +11 -0
- package/lib/plus/saasDevice/devicePlanning/components/WorkAreaList/index.d.ts +18 -0
- package/lib/plus/saasDevice/devicePlanning/components/WorkAreaList/index.js +174 -0
- package/lib/plus/saasDevice/devicePlanning/components/WorkAreaList/index.less +85 -0
- package/lib/plus/saasDevice/devicePlanning/components/WorkAreaModal/index.d.ts +14 -0
- package/lib/plus/saasDevice/devicePlanning/components/WorkAreaModal/index.js +105 -0
- package/lib/plus/saasDevice/devicePlanning/constants.d.ts +9 -0
- package/lib/plus/saasDevice/devicePlanning/constants.js +62 -0
- package/lib/plus/saasDevice/devicePlanning/hooks.d.ts +1 -0
- package/lib/plus/saasDevice/devicePlanning/hooks.js +47 -0
- package/lib/plus/saasDevice/devicePlanning/index.d.ts +5 -0
- package/lib/plus/saasDevice/devicePlanning/index.js +562 -0
- package/lib/plus/saasDevice/devicePlanning/index.less +52 -0
- package/lib/plus/saasDevice/devicePlanning/locales.d.ts +483 -0
- package/lib/plus/saasDevice/devicePlanning/locales.js +511 -0
- package/lib/plus/saasDevice/devicePlanning/serve.d.ts +19 -0
- package/lib/plus/saasDevice/devicePlanning/serve.js +117 -0
- package/lib/plus/saasDevice/devicePlanning/types.d.ts +138 -0
- package/lib/plus/saasDevice/devicePlanning/types.js +61 -0
- package/lib/plus/saasDevice/deviceProfile/components/CreateProfileModal/index.d.ts +16 -0
- package/lib/plus/saasDevice/deviceProfile/components/CreateProfileModal/index.js +343 -0
- package/lib/plus/saasDevice/deviceProfile/components/CreateProfileModal/index.less +131 -0
- package/lib/plus/saasDevice/deviceProfile/components/DeleteProfileModal/index.d.ts +16 -0
- package/lib/plus/saasDevice/deviceProfile/components/DeleteProfileModal/index.js +96 -0
- package/lib/plus/saasDevice/deviceProfile/components/DeleteProfileModal/index.less +109 -0
- package/lib/plus/saasDevice/deviceProfile/components/ProfileSetting/BasicForm.d.ts +16 -0
- package/lib/plus/saasDevice/deviceProfile/components/ProfileSetting/BasicForm.js +216 -0
- package/lib/plus/saasDevice/deviceProfile/components/ProfileSetting/index.d.ts +12 -0
- package/lib/plus/saasDevice/deviceProfile/components/ProfileSetting/index.js +232 -0
- package/lib/plus/saasDevice/deviceProfile/components/ProfileSetting/index.less +94 -0
- package/lib/plus/saasDevice/deviceProfile/components/ProfileSetting/utils.d.ts +1 -0
- package/lib/plus/saasDevice/deviceProfile/components/ProfileSetting/utils.js +44 -0
- package/lib/plus/saasDevice/deviceProfile/components/SiderMenuPanel/index.d.ts +15 -0
- package/lib/plus/saasDevice/deviceProfile/components/SiderMenuPanel/index.js +85 -0
- package/lib/plus/saasDevice/deviceProfile/components/SiderMenuPanel/index.less +28 -0
- package/lib/plus/saasDevice/deviceProfile/components/TwoColumnPageLayout/index.d.ts +11 -0
- package/lib/plus/saasDevice/deviceProfile/components/TwoColumnPageLayout/index.js +73 -0
- package/lib/plus/saasDevice/deviceProfile/components/TwoColumnPageLayout/index.less +40 -0
- package/lib/plus/saasDevice/deviceProfile/components/UnsavedConfirmModal/index.d.ts +2 -0
- package/lib/plus/saasDevice/deviceProfile/components/UnsavedConfirmModal/index.js +46 -0
- package/lib/plus/saasDevice/deviceProfile/components/UnsavedConfirmModal/index.less +14 -0
- package/lib/plus/saasDevice/deviceProfile/hooks.d.ts +1 -0
- package/lib/plus/saasDevice/deviceProfile/hooks.js +44 -0
- package/lib/plus/saasDevice/deviceProfile/index.d.ts +5 -0
- package/lib/plus/saasDevice/deviceProfile/index.js +556 -0
- package/lib/plus/saasDevice/deviceProfile/index.less +54 -0
- package/lib/plus/saasDevice/deviceProfile/locales.d.ts +383 -0
- package/lib/plus/saasDevice/deviceProfile/locales.js +411 -0
- package/lib/plus/saasDevice/deviceProfile/serve.d.ts +38 -0
- package/lib/plus/saasDevice/deviceProfile/serve.js +81 -0
- package/lib/plus/saasDevice/deviceProfile/types.d.ts +190 -0
- package/lib/plus/saasDevice/deviceProfile/types.js +53 -0
- package/lib/plus/saasDevice/index.d.ts +0 -0
- package/lib/plus/saasDevice/index.js +0 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lowcode/saas-device-planning/meta.ts +35 -0
- package/lowcode/saas-device-profile/meta.ts +67 -0
- package/lowcode/settings-registry/meta.ts +40 -0
- package/package.json +4 -4
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/saasDevice/deviceProfile/components/ProfileSetting/index.tsx
|
|
30
|
+
var ProfileSetting_exports = {};
|
|
31
|
+
__export(ProfileSetting_exports, {
|
|
32
|
+
default: () => ProfileSetting_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ProfileSetting_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_icons = require("@ant-design/icons");
|
|
38
|
+
var import_materials = require("@pisell/materials");
|
|
39
|
+
var import_utils = require("@pisell/utils");
|
|
40
|
+
var import_UnsavedConfirmModal = require("../UnsavedConfirmModal");
|
|
41
|
+
var import_utils2 = require("./utils");
|
|
42
|
+
var import_BasicForm = __toESM(require("./BasicForm"));
|
|
43
|
+
var import_index = require("./index.less");
|
|
44
|
+
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
45
|
+
var import_hooks = require("../../hooks");
|
|
46
|
+
var import_serve = require("../../serve");
|
|
47
|
+
var getText = import_utils.locales.getText;
|
|
48
|
+
var LowCodePage = (props) => {
|
|
49
|
+
var _a;
|
|
50
|
+
const { id, ...others } = props;
|
|
51
|
+
const context = (0, import_useEngineContext.default)();
|
|
52
|
+
const { RenderLowCodeByKey, getRenderLowCodeByKey } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
53
|
+
const Com = getRenderLowCodeByKey ? getRenderLowCodeByKey == null ? void 0 : getRenderLowCodeByKey() : RenderLowCodeByKey;
|
|
54
|
+
if (!Com) return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
|
|
55
|
+
return /* @__PURE__ */ import_react.default.createElement(Com, { ...others, id, key: id });
|
|
56
|
+
};
|
|
57
|
+
var BASIC_KEY = "basic";
|
|
58
|
+
var ProfileSetting = (props) => {
|
|
59
|
+
var _a, _b, _c, _d;
|
|
60
|
+
const context = (0, import_useEngineContext.default)();
|
|
61
|
+
const app = ((_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getApp) == null ? void 0 : _c.call(_b)) || {};
|
|
62
|
+
const { record, deviceModel, deviceType, scene = "profile", onBack } = props;
|
|
63
|
+
const translation = (0, import_hooks.useTranslation)();
|
|
64
|
+
const [model, setModel] = (0, import_react.useState)(deviceModel);
|
|
65
|
+
const [typeItem, setTypeItem] = (0, import_react.useState)();
|
|
66
|
+
const [bootstrapping, setBootstrapping] = (0, import_react.useState)(true);
|
|
67
|
+
(0, import_react.useEffect)(() => {
|
|
68
|
+
if (!record) return;
|
|
69
|
+
(async () => {
|
|
70
|
+
try {
|
|
71
|
+
if (deviceType) setTypeItem(deviceType);
|
|
72
|
+
if (deviceModel) setModel(deviceModel);
|
|
73
|
+
} catch (error) {
|
|
74
|
+
app.logger.addLog({
|
|
75
|
+
type: "error",
|
|
76
|
+
title: "加载配置模板上下文失败",
|
|
77
|
+
metadata: error
|
|
78
|
+
});
|
|
79
|
+
} finally {
|
|
80
|
+
setBootstrapping(false);
|
|
81
|
+
}
|
|
82
|
+
})();
|
|
83
|
+
}, []);
|
|
84
|
+
const profileStructure = (_d = model == null ? void 0 : model.data) == null ? void 0 : _d.profile_structure;
|
|
85
|
+
const extraTabs = (0, import_react.useMemo)(
|
|
86
|
+
() => (profileStructure == null ? void 0 : profileStructure.required) ? [...profileStructure.tabs ?? []].sort(
|
|
87
|
+
(a, b) => ((a == null ? void 0 : a.sort) ?? 0) - ((b == null ? void 0 : b.sort) ?? 0)
|
|
88
|
+
) : [],
|
|
89
|
+
[profileStructure]
|
|
90
|
+
);
|
|
91
|
+
const menuItems = (0, import_react.useMemo)(
|
|
92
|
+
() => [
|
|
93
|
+
{
|
|
94
|
+
key: BASIC_KEY,
|
|
95
|
+
label: getText("pisell2.saas.device-profile.setting.menu.basic")
|
|
96
|
+
},
|
|
97
|
+
...(extraTabs == null ? void 0 : extraTabs.map((t, i) => ({
|
|
98
|
+
key: `tab-${i}`,
|
|
99
|
+
label: translation(t.title) || `Tab ${i + 1}`
|
|
100
|
+
}))) || []
|
|
101
|
+
],
|
|
102
|
+
[extraTabs]
|
|
103
|
+
);
|
|
104
|
+
const [activeKey, setActiveKey] = (0, import_react.useState)(BASIC_KEY);
|
|
105
|
+
const formRef = (0, import_react.useRef)(null);
|
|
106
|
+
const [dirty, setDirty] = (0, import_react.useState)(false);
|
|
107
|
+
const [saving, setSaving] = (0, import_react.useState)(false);
|
|
108
|
+
const [displayName, setDisplayName] = (0, import_react.useState)(
|
|
109
|
+
record == null ? void 0 : record.name
|
|
110
|
+
);
|
|
111
|
+
if (!record) {
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
const title = translation(displayName) || record.code;
|
|
115
|
+
const subtitle = getText("pisell2.saas.device-profile.setting.subtitle");
|
|
116
|
+
const switchKey = (next) => {
|
|
117
|
+
if (next === activeKey) return;
|
|
118
|
+
if (dirty && activeKey === BASIC_KEY) {
|
|
119
|
+
(0, import_UnsavedConfirmModal.unsavedChangesConfirm)(() => {
|
|
120
|
+
setDirty(false);
|
|
121
|
+
setActiveKey(next);
|
|
122
|
+
});
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
setActiveKey(next);
|
|
126
|
+
};
|
|
127
|
+
const handleBack = () => {
|
|
128
|
+
if (dirty) {
|
|
129
|
+
(0, import_UnsavedConfirmModal.unsavedChangesConfirm)(() => {
|
|
130
|
+
setDirty(false);
|
|
131
|
+
onBack();
|
|
132
|
+
});
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
onBack();
|
|
136
|
+
};
|
|
137
|
+
const handleSave = async () => {
|
|
138
|
+
if (!formRef.current) return;
|
|
139
|
+
try {
|
|
140
|
+
const values = await formRef.current.getValues();
|
|
141
|
+
setSaving(true);
|
|
142
|
+
await (0, import_serve.updateDeviceProfile)(record.id, (0, import_utils2.toUpdatePayload)(values));
|
|
143
|
+
setDisplayName(values.name);
|
|
144
|
+
import_antd.message.success(
|
|
145
|
+
getText("pisell2.saas.device-profile.message.updateSuccess")
|
|
146
|
+
);
|
|
147
|
+
setDirty(false);
|
|
148
|
+
} catch (error) {
|
|
149
|
+
if (error && error.errorFields) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
app.logger.addLog({
|
|
153
|
+
type: "error",
|
|
154
|
+
title: "更新配置模板失败",
|
|
155
|
+
metadata: error
|
|
156
|
+
});
|
|
157
|
+
} finally {
|
|
158
|
+
setSaving(false);
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
const activeTab = activeKey === BASIC_KEY ? null : extraTabs[Number(activeKey.replace("tab-", ""))];
|
|
162
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__header-left" }, /* @__PURE__ */ import_react.default.createElement(
|
|
163
|
+
import_antd.Button,
|
|
164
|
+
{
|
|
165
|
+
type: "text",
|
|
166
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ArrowLeftOutlined, null),
|
|
167
|
+
onClick: handleBack
|
|
168
|
+
}
|
|
169
|
+
), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__title" }, title), subtitle ? /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__subtitle" }, subtitle) : null))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__alert-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
170
|
+
import_antd.Alert,
|
|
171
|
+
{
|
|
172
|
+
type: "warning",
|
|
173
|
+
showIcon: true,
|
|
174
|
+
message: getText("pisell2.saas.device-profile.setting.saveWarning")
|
|
175
|
+
}
|
|
176
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__main" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__menu-card" }, /* @__PURE__ */ import_react.default.createElement(
|
|
177
|
+
import_materials.PisellMenu,
|
|
178
|
+
{
|
|
179
|
+
mode: "inline",
|
|
180
|
+
theme: "light",
|
|
181
|
+
dataSource: menuItems,
|
|
182
|
+
selectedKeys: [activeKey],
|
|
183
|
+
onSelect: ({ key }) => switchKey(String(key))
|
|
184
|
+
}
|
|
185
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
186
|
+
"div",
|
|
187
|
+
{
|
|
188
|
+
className: "saas-device-profile-setting__content-card",
|
|
189
|
+
style: { padding: activeKey === BASIC_KEY ? "24px" : 0 }
|
|
190
|
+
},
|
|
191
|
+
bootstrapping ? /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__loading-wrap" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, null)) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
192
|
+
"div",
|
|
193
|
+
{
|
|
194
|
+
style: { display: activeKey === BASIC_KEY ? "block" : "none" }
|
|
195
|
+
},
|
|
196
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__section-title" }, getText(
|
|
197
|
+
"pisell2.saas.device-profile.setting.section.basicInfo"
|
|
198
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__subtitle" }, getText(
|
|
199
|
+
"pisell2.saas.device-profile.setting.section.basicInfoDesc"
|
|
200
|
+
))),
|
|
201
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
202
|
+
import_BasicForm.default,
|
|
203
|
+
{
|
|
204
|
+
ref: formRef,
|
|
205
|
+
mode: "edit",
|
|
206
|
+
deviceType: typeItem,
|
|
207
|
+
deviceModels: model ? [model] : [],
|
|
208
|
+
initialValue: record,
|
|
209
|
+
onDirty: () => setDirty(true)
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-setting__save-actions" }, /* @__PURE__ */ import_react.default.createElement(
|
|
213
|
+
import_antd.Button,
|
|
214
|
+
{
|
|
215
|
+
type: "primary",
|
|
216
|
+
size: "large",
|
|
217
|
+
loading: saving,
|
|
218
|
+
onClick: handleSave
|
|
219
|
+
},
|
|
220
|
+
getText("pisell2.saas.device-profile.common.save")
|
|
221
|
+
))
|
|
222
|
+
), activeKey !== BASIC_KEY && activeTab ? /* @__PURE__ */ import_react.default.createElement(
|
|
223
|
+
LowCodePage,
|
|
224
|
+
{
|
|
225
|
+
id: activeTab == null ? void 0 : activeTab.page_id,
|
|
226
|
+
scene,
|
|
227
|
+
sceneRequestId: record == null ? void 0 : record.id
|
|
228
|
+
}
|
|
229
|
+
) : null)
|
|
230
|
+
)));
|
|
231
|
+
};
|
|
232
|
+
var ProfileSetting_default = ProfileSetting;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
.saas-device-profile-setting {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100%;
|
|
5
|
+
background: #f5f6f8;
|
|
6
|
+
|
|
7
|
+
&__btn-link {
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__drawer-footer {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: flex-end;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__header {
|
|
17
|
+
padding: 16px 24px;
|
|
18
|
+
background: #fff;
|
|
19
|
+
border-bottom: 1px solid #f0f0f0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__header-left {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 12px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__title {
|
|
29
|
+
font-size: 18px;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__subtitle {
|
|
34
|
+
color: #8c8c8c;
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
margin-top: 4px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__alert-wrap {
|
|
40
|
+
padding: 12px 16px 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__main {
|
|
44
|
+
flex: 1;
|
|
45
|
+
display: flex;
|
|
46
|
+
gap: 16px;
|
|
47
|
+
padding: 16px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__menu-card {
|
|
52
|
+
width: 240px;
|
|
53
|
+
background: #fff;
|
|
54
|
+
border-radius: 12px;
|
|
55
|
+
padding: 12px;
|
|
56
|
+
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
|
|
57
|
+
overflow: auto;
|
|
58
|
+
|
|
59
|
+
.ant-menu {
|
|
60
|
+
border-inline-end: none;
|
|
61
|
+
background: transparent;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__content-card {
|
|
66
|
+
flex: 1;
|
|
67
|
+
background: #fff;
|
|
68
|
+
border-radius: 12px;
|
|
69
|
+
overflow: auto;
|
|
70
|
+
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__loading-wrap {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
min-height: 240px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__section {
|
|
81
|
+
margin-bottom: 16px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__section-title {
|
|
85
|
+
font-size: 16px;
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__save-actions {
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
margin-top: 24px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toUpdatePayload: (basic: any) => any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/plus/saasDevice/deviceProfile/components/ProfileSetting/utils.ts
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
toUpdatePayload: () => toUpdatePayload
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(utils_exports);
|
|
25
|
+
var EMPTY_I18N = {
|
|
26
|
+
original: "",
|
|
27
|
+
"zh-CN": "",
|
|
28
|
+
"zh-HK": "",
|
|
29
|
+
en: "",
|
|
30
|
+
pt: "",
|
|
31
|
+
ja: ""
|
|
32
|
+
};
|
|
33
|
+
var toUpdatePayload = (basic) => ({
|
|
34
|
+
icon: (basic == null ? void 0 : basic.icon) ?? "",
|
|
35
|
+
name: basic == null ? void 0 : basic.name,
|
|
36
|
+
description: (basic == null ? void 0 : basic.description) ?? { ...EMPTY_I18N },
|
|
37
|
+
status: basic == null ? void 0 : basic.status,
|
|
38
|
+
sort: (basic == null ? void 0 : basic.sort) ?? 0,
|
|
39
|
+
data: {}
|
|
40
|
+
});
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
toUpdatePayload
|
|
44
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { MenuProps } from "antd";
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface SiderMenuPanelProps {
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
searchable?: boolean;
|
|
7
|
+
searchPlaceholder?: string;
|
|
8
|
+
onSearch?: (value: string) => void;
|
|
9
|
+
items: MenuProps["items"];
|
|
10
|
+
selectedKey: string;
|
|
11
|
+
onSelect: (key: string) => void;
|
|
12
|
+
emptyText?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const SiderMenuPanel: React.FC<SiderMenuPanelProps>;
|
|
15
|
+
export default SiderMenuPanel;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/saasDevice/deviceProfile/components/SiderMenuPanel/index.tsx
|
|
30
|
+
var SiderMenuPanel_exports = {};
|
|
31
|
+
__export(SiderMenuPanel_exports, {
|
|
32
|
+
default: () => SiderMenuPanel_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(SiderMenuPanel_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_icons = require("@ant-design/icons");
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var hasAnyLeaf = (items) => {
|
|
40
|
+
if (!items || !items.length) return false;
|
|
41
|
+
return items.some((it) => {
|
|
42
|
+
if (!it) return false;
|
|
43
|
+
if (it.type === "group") {
|
|
44
|
+
return hasAnyLeaf(it.children);
|
|
45
|
+
}
|
|
46
|
+
return true;
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
var SiderMenuPanel = ({
|
|
50
|
+
title,
|
|
51
|
+
searchable,
|
|
52
|
+
searchPlaceholder,
|
|
53
|
+
onSearch,
|
|
54
|
+
items,
|
|
55
|
+
selectedKey,
|
|
56
|
+
onSelect,
|
|
57
|
+
emptyText
|
|
58
|
+
}) => {
|
|
59
|
+
const isEmpty = (0, import_react.useMemo)(() => !hasAnyLeaf(items), [items]);
|
|
60
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-panel" }, title && /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-title" }, title), searchable && /* @__PURE__ */ import_react.default.createElement(
|
|
61
|
+
import_materials.Input,
|
|
62
|
+
{
|
|
63
|
+
allowClear: true,
|
|
64
|
+
prefix: /* @__PURE__ */ import_react.default.createElement(import_icons.SearchOutlined, { className: "saas-device-profile-search-icon" }),
|
|
65
|
+
placeholder: searchPlaceholder ?? "Search...",
|
|
66
|
+
onChange: (e) => onSearch == null ? void 0 : onSearch(e.target.value)
|
|
67
|
+
}
|
|
68
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-menu-scroll" }, isEmpty ? /* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
import_materials.Empty,
|
|
70
|
+
{
|
|
71
|
+
image: import_materials.Empty.PRESENTED_IMAGE_SIMPLE,
|
|
72
|
+
description: emptyText ?? null
|
|
73
|
+
}
|
|
74
|
+
) : /* @__PURE__ */ import_react.default.createElement(
|
|
75
|
+
import_materials.PisellMenu,
|
|
76
|
+
{
|
|
77
|
+
mode: "inline",
|
|
78
|
+
theme: "light",
|
|
79
|
+
dataSource: items,
|
|
80
|
+
selectedKeys: [selectedKey],
|
|
81
|
+
onSelect: ({ key }) => onSelect(String(key))
|
|
82
|
+
}
|
|
83
|
+
)));
|
|
84
|
+
};
|
|
85
|
+
var SiderMenuPanel_default = SiderMenuPanel;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.saas-device-profile-panel {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 12px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.saas-device-profile-title {
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
color: #1f2937;
|
|
12
|
+
padding-left: 4px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.saas-device-profile-menu-scroll {
|
|
16
|
+
flex: 1;
|
|
17
|
+
min-height: 0;
|
|
18
|
+
overflow-y: auto;
|
|
19
|
+
|
|
20
|
+
:global(.ant-menu) {
|
|
21
|
+
border-inline-end: none;
|
|
22
|
+
background: transparent;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.saas-device-profile-search-icon {
|
|
27
|
+
color: #9ca3af;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface TwoColumnPageLayoutProps {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
subTitle?: React.ReactNode;
|
|
6
|
+
sider: React.ReactNode;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
siderWidth?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const TwoColumnPageLayout: React.FC<TwoColumnPageLayoutProps>;
|
|
11
|
+
export default TwoColumnPageLayout;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/saasDevice/deviceProfile/components/TwoColumnPageLayout/index.tsx
|
|
30
|
+
var TwoColumnPageLayout_exports = {};
|
|
31
|
+
__export(TwoColumnPageLayout_exports, {
|
|
32
|
+
default: () => TwoColumnPageLayout_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(TwoColumnPageLayout_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_index = require("./index.less");
|
|
38
|
+
var { Layout, Sider, Content } = import_materials.PisellLayouts;
|
|
39
|
+
var TwoColumnPageLayout = ({
|
|
40
|
+
title,
|
|
41
|
+
subTitle,
|
|
42
|
+
sider,
|
|
43
|
+
children,
|
|
44
|
+
siderWidth = 240
|
|
45
|
+
}) => {
|
|
46
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-two-column-page-root" }, /* @__PURE__ */ import_react.default.createElement(
|
|
47
|
+
import_materials.PageHeader,
|
|
48
|
+
{
|
|
49
|
+
title,
|
|
50
|
+
subTitle,
|
|
51
|
+
showTitle: true,
|
|
52
|
+
showSubTitle: Boolean(subTitle),
|
|
53
|
+
showDivider: false
|
|
54
|
+
}
|
|
55
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
56
|
+
Layout,
|
|
57
|
+
{
|
|
58
|
+
className: "saas-device-profile-two-column-page-root-layout",
|
|
59
|
+
hasSider: true
|
|
60
|
+
},
|
|
61
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
62
|
+
Sider,
|
|
63
|
+
{
|
|
64
|
+
width: siderWidth,
|
|
65
|
+
theme: "light",
|
|
66
|
+
className: "saas-device-profile-two-column-page-root-sider"
|
|
67
|
+
},
|
|
68
|
+
sider
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ import_react.default.createElement(Content, { className: "saas-device-profile-two-column-page-root-content" }, children)
|
|
71
|
+
));
|
|
72
|
+
};
|
|
73
|
+
var TwoColumnPageLayout_default = TwoColumnPageLayout;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.saas-device-profile-two-column-page-root {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
padding: 24px;
|
|
6
|
+
background: #f5f6f8;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
&-layout {
|
|
10
|
+
flex: 1;
|
|
11
|
+
min-height: 0;
|
|
12
|
+
margin-top: 16px;
|
|
13
|
+
background: transparent;
|
|
14
|
+
gap: 16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-sider {
|
|
18
|
+
background: #fff;
|
|
19
|
+
border-radius: 12px;
|
|
20
|
+
padding: 16px;
|
|
21
|
+
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
|
|
22
|
+
height: 100%;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
|
|
25
|
+
:global(.ant-layout-sider-children) {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-content {
|
|
33
|
+
background: #fff;
|
|
34
|
+
border-radius: 12px;
|
|
35
|
+
padding: 16px;
|
|
36
|
+
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
|
|
37
|
+
height: 100%;
|
|
38
|
+
overflow: auto;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/plus/saasDevice/deviceProfile/components/UnsavedConfirmModal/index.tsx
|
|
20
|
+
var UnsavedConfirmModal_exports = {};
|
|
21
|
+
__export(UnsavedConfirmModal_exports, {
|
|
22
|
+
unsavedChangesConfirm: () => unsavedChangesConfirm
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(UnsavedConfirmModal_exports);
|
|
25
|
+
var import_antd = require("antd");
|
|
26
|
+
var import_utils = require("@pisell/utils");
|
|
27
|
+
var import_index = require("./index.less");
|
|
28
|
+
var unsavedChangesConfirm = (callback) => {
|
|
29
|
+
import_antd.Modal.confirm({
|
|
30
|
+
title: import_utils.locales.getText("pisell2.saas.unsaved-changes"),
|
|
31
|
+
content: import_utils.locales.getText("pisell2.saas.unsaved-changes-content"),
|
|
32
|
+
okText: import_utils.locales.getText("pisell2.saas.leave"),
|
|
33
|
+
cancelText: import_utils.locales.getText("pisell2.saas.stay"),
|
|
34
|
+
okButtonProps: {
|
|
35
|
+
className: "unsaved-changes-modal-ok-btn"
|
|
36
|
+
},
|
|
37
|
+
wrapClassName: "unsaved-changes-modal",
|
|
38
|
+
onOk() {
|
|
39
|
+
callback();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
unsavedChangesConfirm
|
|
46
|
+
});
|