@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,228 @@
|
|
|
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/devicePlanning/components/AddDeviceModal/index.tsx
|
|
30
|
+
var AddDeviceModal_exports = {};
|
|
31
|
+
__export(AddDeviceModal_exports, {
|
|
32
|
+
default: () => AddDeviceModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(AddDeviceModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var import_classnames = __toESM(require("classnames"));
|
|
40
|
+
var import_types = require("../../types");
|
|
41
|
+
var import_constants = require("../../constants");
|
|
42
|
+
var import_index = require("./index.less");
|
|
43
|
+
var isProfileRequired = (model) => {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
return Boolean((_b = (_a = model == null ? void 0 : model.data) == null ? void 0 : _a.profile_structure) == null ? void 0 : _b.required);
|
|
46
|
+
};
|
|
47
|
+
var hasI18nValue = (value) => {
|
|
48
|
+
if (!value) return false;
|
|
49
|
+
return Object.values(value).some((item) => String(item || "").trim());
|
|
50
|
+
};
|
|
51
|
+
var AddDeviceModal = ({
|
|
52
|
+
open,
|
|
53
|
+
activeKind,
|
|
54
|
+
models,
|
|
55
|
+
workAreaId,
|
|
56
|
+
submitting,
|
|
57
|
+
getText,
|
|
58
|
+
translation,
|
|
59
|
+
onClose,
|
|
60
|
+
onSubmit
|
|
61
|
+
}) => {
|
|
62
|
+
const [form] = import_antd.Form.useForm();
|
|
63
|
+
const [step, setStep] = (0, import_react.useState)("model");
|
|
64
|
+
const [keyword, setKeyword] = (0, import_react.useState)("");
|
|
65
|
+
const [selectedModel, setSelectedModel] = (0, import_react.useState)();
|
|
66
|
+
const nameValue = import_antd.Form.useWatch("name", form);
|
|
67
|
+
const profileValue = import_antd.Form.useWatch("profile_id", form);
|
|
68
|
+
(0, import_react.useEffect)(() => {
|
|
69
|
+
if (!open) return;
|
|
70
|
+
setStep("model");
|
|
71
|
+
setKeyword("");
|
|
72
|
+
setSelectedModel(void 0);
|
|
73
|
+
form.resetFields();
|
|
74
|
+
form.setFieldsValue({ name: { ...import_types.EMPTY_I18N } });
|
|
75
|
+
}, [form, open]);
|
|
76
|
+
const filteredModels = (0, import_react.useMemo)(() => {
|
|
77
|
+
const value = (0, import_constants.normalizeText)(keyword);
|
|
78
|
+
if (!value) return models;
|
|
79
|
+
return models.filter((model) => {
|
|
80
|
+
const name = translation(model.name);
|
|
81
|
+
const desc = translation(model.description);
|
|
82
|
+
return [name, desc, model.code, model.type_code].some(
|
|
83
|
+
(item) => (0, import_constants.normalizeText)(item || "").includes(value)
|
|
84
|
+
);
|
|
85
|
+
});
|
|
86
|
+
}, [keyword, models, translation]);
|
|
87
|
+
const groupedModels = (0, import_react.useMemo)(() => {
|
|
88
|
+
const groups = /* @__PURE__ */ new Map();
|
|
89
|
+
filteredModels.forEach((model) => {
|
|
90
|
+
const key = model.type_code || getText(import_constants.DEVICE_KIND_LABEL_KEY[activeKind]);
|
|
91
|
+
groups.set(key, [...groups.get(key) || [], model]);
|
|
92
|
+
});
|
|
93
|
+
return Array.from(groups.entries());
|
|
94
|
+
}, [activeKind, filteredModels, getText]);
|
|
95
|
+
const profileRequired = isProfileRequired(selectedModel);
|
|
96
|
+
const profiles = (selectedModel == null ? void 0 : selectedModel.active_profiles) || [];
|
|
97
|
+
const canSave = Boolean(
|
|
98
|
+
workAreaId && selectedModel && hasI18nValue(nameValue) && (!profileRequired || profiles.length > 0) && (!profileRequired || Boolean(profileValue))
|
|
99
|
+
);
|
|
100
|
+
const handleSelectModel = (model) => {
|
|
101
|
+
setSelectedModel(model);
|
|
102
|
+
setStep("configure");
|
|
103
|
+
form.resetFields();
|
|
104
|
+
form.setFieldsValue({ name: { ...import_types.EMPTY_I18N }, profile_id: void 0 });
|
|
105
|
+
};
|
|
106
|
+
const handleSave = async () => {
|
|
107
|
+
if (!canSave || !selectedModel || !workAreaId) return;
|
|
108
|
+
const values = await form.validateFields();
|
|
109
|
+
onSubmit({
|
|
110
|
+
workarea_id: workAreaId,
|
|
111
|
+
model_code: selectedModel.code,
|
|
112
|
+
profile_id: profileRequired ? values.profile_id || null : null,
|
|
113
|
+
name: values.name
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const renderModelStep = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__body" }, /* @__PURE__ */ import_react.default.createElement(
|
|
117
|
+
import_materials.Input,
|
|
118
|
+
{
|
|
119
|
+
allowClear: true,
|
|
120
|
+
prefix: /* @__PURE__ */ import_react.default.createElement(import_icons.SearchOutlined, null),
|
|
121
|
+
value: keyword,
|
|
122
|
+
placeholder: getText("pisell2.saas.device-planning.add.search"),
|
|
123
|
+
onChange: (event) => setKeyword(event.target.value)
|
|
124
|
+
}
|
|
125
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__model-list" }, groupedModels.length ? groupedModels.map(([typeCode, items]) => {
|
|
126
|
+
var _a;
|
|
127
|
+
const type = (_a = items[0]) == null ? void 0 : _a.type;
|
|
128
|
+
const typeName = translation(type == null ? void 0 : type.name) || typeCode;
|
|
129
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { key: typeCode, className: "add-device-modal__model-group" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__group-title" }, (type == null ? void 0 : type.icon) ? /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: type == null ? void 0 : type.icon }) : null, /* @__PURE__ */ import_react.default.createElement("span", null, typeName)), /* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__model-grid" }, items.map((model) => /* @__PURE__ */ import_react.default.createElement(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
key: model.code,
|
|
133
|
+
className: (0, import_classnames.default)("add-device-modal__model-card", {
|
|
134
|
+
"is-selected": (selectedModel == null ? void 0 : selectedModel.code) === model.code
|
|
135
|
+
}),
|
|
136
|
+
onClick: () => handleSelectModel(model)
|
|
137
|
+
},
|
|
138
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__model-name" }, translation(model.name) || ""),
|
|
139
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__model-desc" }, translation(model.description) || "")
|
|
140
|
+
))));
|
|
141
|
+
}) : /* @__PURE__ */ import_react.default.createElement(
|
|
142
|
+
import_materials.Empty,
|
|
143
|
+
{
|
|
144
|
+
image: import_materials.Empty.PRESENTED_IMAGE_SIMPLE,
|
|
145
|
+
description: /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", null, getText("pisell2.saas.device-planning.add.no-devices")), /* @__PURE__ */ import_react.default.createElement("div", null, getText("pisell2.saas.device-planning.add.adjust-search")))
|
|
146
|
+
}
|
|
147
|
+
)));
|
|
148
|
+
const renderConfigureStep = () => {
|
|
149
|
+
var _a;
|
|
150
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__body" }, selectedModel ? /* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__selected-model" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: ((_a = selectedModel.type) == null ? void 0 : _a.icon) || "DesktopOutlined" }), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__model-name" }, translation(selectedModel.name) || ""), /* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__model-desc" }, translation(selectedModel.description) || ""))) : null, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical", preserve: false }, /* @__PURE__ */ import_react.default.createElement(
|
|
151
|
+
import_antd.Form.Item,
|
|
152
|
+
{
|
|
153
|
+
name: "name",
|
|
154
|
+
label: getText("pisell2.saas.device-planning.add.device-name"),
|
|
155
|
+
required: true,
|
|
156
|
+
rules: [
|
|
157
|
+
{
|
|
158
|
+
validator: (0, import_types.validateI18nRequired)(
|
|
159
|
+
getText("pisell2.saas.device-planning.add.device-name-required")
|
|
160
|
+
)
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials.BaseTranslation, { renderMode: "edit" })
|
|
165
|
+
), profileRequired ? /* @__PURE__ */ import_react.default.createElement(
|
|
166
|
+
import_antd.Form.Item,
|
|
167
|
+
{
|
|
168
|
+
name: "profile_id",
|
|
169
|
+
label: getText("pisell2.saas.device-planning.add.device-profile"),
|
|
170
|
+
required: true,
|
|
171
|
+
rules: [
|
|
172
|
+
{
|
|
173
|
+
required: true,
|
|
174
|
+
message: getText(
|
|
175
|
+
"pisell2.saas.device-planning.add.device-profile-required"
|
|
176
|
+
)
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
help: profiles.length === 0 ? getText("pisell2.saas.device-planning.add.create-profile-first") : void 0
|
|
180
|
+
},
|
|
181
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
182
|
+
import_materials.Select,
|
|
183
|
+
{
|
|
184
|
+
disabled: profiles.length === 0,
|
|
185
|
+
options: profiles.map((profile) => ({
|
|
186
|
+
label: translation(profile.name) || String(profile.id),
|
|
187
|
+
value: profile.id
|
|
188
|
+
}))
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
) : null));
|
|
192
|
+
};
|
|
193
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
194
|
+
import_materials.PisellModal,
|
|
195
|
+
{
|
|
196
|
+
open,
|
|
197
|
+
onCancel: onClose,
|
|
198
|
+
title: step === "model" ? getText(`pisell2.saas.device-planning.add.title.${activeKind}`) : getText("pisell2.saas.device-planning.add.configure-title"),
|
|
199
|
+
footer: null,
|
|
200
|
+
destroyOnClose: true,
|
|
201
|
+
maskClosable: false,
|
|
202
|
+
width: step === "model" ? 760 : 480,
|
|
203
|
+
className: "add-device-modal",
|
|
204
|
+
bodyStyle: { padding: "24px" }
|
|
205
|
+
},
|
|
206
|
+
step === "configure" ? /* @__PURE__ */ import_react.default.createElement(
|
|
207
|
+
import_materials.Button,
|
|
208
|
+
{
|
|
209
|
+
type: "text",
|
|
210
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ArrowLeftOutlined, null),
|
|
211
|
+
className: "add-device-modal__back-icon",
|
|
212
|
+
onClick: () => setStep("model")
|
|
213
|
+
}
|
|
214
|
+
) : null,
|
|
215
|
+
step === "model" ? renderModelStep() : renderConfigureStep(),
|
|
216
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "add-device-modal__footer" }, step === "model" ? /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "text", onClick: onClose }, getText("pisell2.saas.device-planning.add.cancel")) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "text", onClick: () => setStep("model") }, getText("pisell2.saas.device-planning.add.back")), /* @__PURE__ */ import_react.default.createElement(
|
|
217
|
+
import_materials.Button,
|
|
218
|
+
{
|
|
219
|
+
type: "primary",
|
|
220
|
+
disabled: !canSave,
|
|
221
|
+
loading: submitting,
|
|
222
|
+
onClick: handleSave
|
|
223
|
+
},
|
|
224
|
+
getText("pisell2.saas.device-planning.add.save")
|
|
225
|
+
)))
|
|
226
|
+
);
|
|
227
|
+
};
|
|
228
|
+
var AddDeviceModal_default = AddDeviceModal;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.add-device-modal {
|
|
2
|
+
&__body {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 16px;
|
|
6
|
+
min-height: 260px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&__model-list {
|
|
10
|
+
max-height: 420px;
|
|
11
|
+
overflow: auto;
|
|
12
|
+
padding-right: 8px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__model-group {
|
|
16
|
+
& + & {
|
|
17
|
+
margin-top: 20px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__group-title {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 8px;
|
|
25
|
+
margin-bottom: 10px;
|
|
26
|
+
font-size: 15px;
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
color: rgba(0, 0, 0, 0.88);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__model-grid {
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
34
|
+
gap: 12px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__model-card {
|
|
38
|
+
padding: 14px;
|
|
39
|
+
border: 1px solid transparent;
|
|
40
|
+
border-radius: 8px;
|
|
41
|
+
background: #f5f6f8;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
transition: all 0.18s;
|
|
44
|
+
|
|
45
|
+
&:hover,
|
|
46
|
+
&.is-selected {
|
|
47
|
+
border-color: #7c3aed;
|
|
48
|
+
background: #f5f0ff;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__model-name {
|
|
53
|
+
font-size: 14px;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
color: rgba(0, 0, 0, 0.88);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__model-desc {
|
|
59
|
+
margin-top: 4px;
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
line-height: 18px;
|
|
62
|
+
color: rgba(0, 0, 0, 0.45);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__selected-model {
|
|
66
|
+
display: flex;
|
|
67
|
+
gap: 12px;
|
|
68
|
+
padding: 12px;
|
|
69
|
+
border-radius: 8px;
|
|
70
|
+
background: #f5f6f8;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__footer {
|
|
74
|
+
display: flex;
|
|
75
|
+
justify-content: flex-end;
|
|
76
|
+
gap: 8px;
|
|
77
|
+
margin-top: 20px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__back-icon {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 18px;
|
|
83
|
+
left: 16px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeviceRow } from '../../types';
|
|
3
|
+
interface DeleteDeviceModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
record?: DeviceRow;
|
|
6
|
+
submitting: boolean;
|
|
7
|
+
getText: (key: string) => string;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
onConfirm: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const DeleteDeviceModal: React.FC<DeleteDeviceModalProps>;
|
|
12
|
+
export default DeleteDeviceModal;
|
|
@@ -0,0 +1,86 @@
|
|
|
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/devicePlanning/components/DeleteDeviceModal/index.tsx
|
|
30
|
+
var DeleteDeviceModal_exports = {};
|
|
31
|
+
__export(DeleteDeviceModal_exports, {
|
|
32
|
+
default: () => DeleteDeviceModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DeleteDeviceModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var import_constants = require("../../constants");
|
|
40
|
+
var DeleteDeviceModal = ({
|
|
41
|
+
open,
|
|
42
|
+
record,
|
|
43
|
+
submitting,
|
|
44
|
+
getText,
|
|
45
|
+
onCancel,
|
|
46
|
+
onConfirm
|
|
47
|
+
}) => {
|
|
48
|
+
const online = (record == null ? void 0 : record.status) === "online";
|
|
49
|
+
const name = (record == null ? void 0 : record.name) || "";
|
|
50
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
51
|
+
import_materials.PisellModal,
|
|
52
|
+
{
|
|
53
|
+
open,
|
|
54
|
+
title: getText("pisell2.saas.device-planning.delete-device.title"),
|
|
55
|
+
headerDivider: false,
|
|
56
|
+
onCancel,
|
|
57
|
+
okText: getText(
|
|
58
|
+
online ? "pisell2.saas.device-planning.delete-device.delete-anyway" : "pisell2.saas.device-planning.detail.delete"
|
|
59
|
+
),
|
|
60
|
+
cancelText: getText("pisell2.saas.device-planning.detail.cancel"),
|
|
61
|
+
okButtonProps: { danger: true, loading: submitting, onClick: onConfirm },
|
|
62
|
+
cancelButtonProps: { disabled: submitting },
|
|
63
|
+
destroyOnClose: true,
|
|
64
|
+
maskClosable: false,
|
|
65
|
+
width: 460,
|
|
66
|
+
bodyStyle: { padding: "0 24px 24px" }
|
|
67
|
+
},
|
|
68
|
+
online ? /* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
import_antd.Alert,
|
|
70
|
+
{
|
|
71
|
+
type: "warning",
|
|
72
|
+
showIcon: true,
|
|
73
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ExclamationCircleFilled, null),
|
|
74
|
+
message: getText("pisell2.saas.device-planning.delete-device.online-title"),
|
|
75
|
+
description: (0, import_constants.formatToken)(
|
|
76
|
+
getText("pisell2.saas.device-planning.delete-device.online-desc"),
|
|
77
|
+
{ DeviceName: name }
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
) : /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_constants.formatToken)(
|
|
81
|
+
getText("pisell2.saas.device-planning.delete-device.confirm"),
|
|
82
|
+
{ DeviceName: name }
|
|
83
|
+
))
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
var DeleteDeviceModal_default = DeleteDeviceModal;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeleteWorkAreaCounts, I18nText, WorkAreaItem } from '../../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface DeleteWorkAreaModalProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
submitting: boolean;
|
|
8
|
+
record?: WorkAreaItem;
|
|
9
|
+
counts: DeleteWorkAreaCounts;
|
|
10
|
+
translation: (val?: I18nText) => string;
|
|
11
|
+
getText: (key: string) => string;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onConfirm: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const DeleteWorkAreaModal: React.FC<DeleteWorkAreaModalProps>;
|
|
16
|
+
export default DeleteWorkAreaModal;
|
|
@@ -0,0 +1,108 @@
|
|
|
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/devicePlanning/components/DeleteWorkAreaModal/index.tsx
|
|
30
|
+
var DeleteWorkAreaModal_exports = {};
|
|
31
|
+
__export(DeleteWorkAreaModal_exports, {
|
|
32
|
+
default: () => DeleteWorkAreaModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DeleteWorkAreaModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var import_constants = require("../../constants");
|
|
40
|
+
var import_index = require("./index.less");
|
|
41
|
+
var DeleteWorkAreaModal = ({
|
|
42
|
+
open,
|
|
43
|
+
loading,
|
|
44
|
+
submitting,
|
|
45
|
+
record,
|
|
46
|
+
counts,
|
|
47
|
+
translation,
|
|
48
|
+
getText,
|
|
49
|
+
onClose,
|
|
50
|
+
onConfirm
|
|
51
|
+
}) => {
|
|
52
|
+
const total = counts.smart + counts.dumb + counts.integrated;
|
|
53
|
+
const hasDevices = total > 0;
|
|
54
|
+
const workAreaName = translation(record == null ? void 0 : record.name) || "";
|
|
55
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
56
|
+
import_materials.PisellModal,
|
|
57
|
+
{
|
|
58
|
+
open,
|
|
59
|
+
title: getText("pisell2.saas.device-planning.delete.title"),
|
|
60
|
+
headerDivider: false,
|
|
61
|
+
onCancel: onClose,
|
|
62
|
+
okVisible: !hasDevices,
|
|
63
|
+
okText: getText("pisell2.saas.device-planning.delete.confirm-button"),
|
|
64
|
+
cancelText: getText(
|
|
65
|
+
hasDevices ? "pisell2.saas.device-planning.delete.close" : "pisell2.saas.device-planning.delete.cancel"
|
|
66
|
+
),
|
|
67
|
+
okButtonProps: {
|
|
68
|
+
danger: true,
|
|
69
|
+
loading: submitting,
|
|
70
|
+
onClick: onConfirm
|
|
71
|
+
},
|
|
72
|
+
cancelButtonProps: { disabled: submitting },
|
|
73
|
+
destroyOnClose: true,
|
|
74
|
+
maskClosable: false,
|
|
75
|
+
width: 520,
|
|
76
|
+
className: "saas-device-planning-delete-modal",
|
|
77
|
+
bodyStyle: { padding: "0 24px 24px" },
|
|
78
|
+
footer: loading ? null : void 0
|
|
79
|
+
},
|
|
80
|
+
loading ? /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-planning-delete-modal__loading" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, null)) : hasDevices ? /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-planning-delete-modal__body" }, /* @__PURE__ */ import_react.default.createElement(
|
|
81
|
+
import_antd.Alert,
|
|
82
|
+
{
|
|
83
|
+
type: "warning",
|
|
84
|
+
showIcon: true,
|
|
85
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ExclamationCircleFilled, null),
|
|
86
|
+
message: getText("pisell2.saas.device-planning.delete.block-title"),
|
|
87
|
+
description: (0, import_constants.formatToken)(
|
|
88
|
+
getText("pisell2.saas.device-planning.delete.block-content"),
|
|
89
|
+
{ WorkAreaName: workAreaName }
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-planning-delete-modal__label" }, getText("pisell2.saas.device-planning.delete.devices-label")), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-planning-delete-modal__counts" }, counts.smart > 0 ? /* @__PURE__ */ import_react.default.createElement(import_materials.Tag, null, (0, import_constants.formatToken)(
|
|
93
|
+
getText("pisell2.saas.device-planning.delete.smart-count"),
|
|
94
|
+
{ N: counts.smart }
|
|
95
|
+
)) : null, counts.dumb > 0 ? /* @__PURE__ */ import_react.default.createElement(import_materials.Tag, null, (0, import_constants.formatToken)(
|
|
96
|
+
getText("pisell2.saas.device-planning.delete.dumb-count"),
|
|
97
|
+
{ N: counts.dumb }
|
|
98
|
+
)) : null, counts.integrated > 0 ? /* @__PURE__ */ import_react.default.createElement(import_materials.Tag, null, (0, import_constants.formatToken)(
|
|
99
|
+
getText(
|
|
100
|
+
"pisell2.saas.device-planning.delete.integrated-count"
|
|
101
|
+
),
|
|
102
|
+
{ N: counts.integrated }
|
|
103
|
+
)) : null)) : /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-planning-delete-modal__confirm" }, (0, import_constants.formatToken)(getText("pisell2.saas.device-planning.delete.confirm"), {
|
|
104
|
+
WorkAreaName: workAreaName
|
|
105
|
+
}))
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
var DeleteWorkAreaModal_default = DeleteWorkAreaModal;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.saas-device-planning-delete-modal {
|
|
2
|
+
&__loading {
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
padding: 32px 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__body {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__label {
|
|
15
|
+
font-size: 13px;
|
|
16
|
+
color: rgba(0, 0, 0, 0.65);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__counts {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-wrap: wrap;
|
|
22
|
+
gap: 8px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__confirm {
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
line-height: 22px;
|
|
28
|
+
color: rgba(0, 0, 0, 0.72);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeviceRow, I18nText } from '../../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface DeviceDetailDrawerProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
record?: DeviceRow;
|
|
7
|
+
getText: (key: string) => string;
|
|
8
|
+
translation: (val?: I18nText) => string;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onEdit: () => void;
|
|
11
|
+
onDelete: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const DeviceDetailDrawer: React.FC<DeviceDetailDrawerProps>;
|
|
14
|
+
export default DeviceDetailDrawer;
|