@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,117 @@
|
|
|
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/devicePlanning/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
createDevice: () => createDevice,
|
|
23
|
+
createWorkArea: () => createWorkArea,
|
|
24
|
+
deleteDevice: () => deleteDevice,
|
|
25
|
+
deleteWorkArea: () => deleteWorkArea,
|
|
26
|
+
getDeviceTypes: () => getDeviceTypes,
|
|
27
|
+
getDevices: () => getDevices,
|
|
28
|
+
getWorkAreaDetail: () => getWorkAreaDetail,
|
|
29
|
+
getWorkAreas: () => getWorkAreas,
|
|
30
|
+
sortDevices: () => sortDevices,
|
|
31
|
+
sortWorkAreas: () => sortWorkAreas,
|
|
32
|
+
updateDevice: () => updateDevice,
|
|
33
|
+
updateWorkArea: () => updateWorkArea
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(serve_exports);
|
|
36
|
+
var import_utils = require("../../../utils");
|
|
37
|
+
var CONFIG = {
|
|
38
|
+
isPisell2: true
|
|
39
|
+
};
|
|
40
|
+
var getWorkAreas = async () => {
|
|
41
|
+
const response = await import_utils.request.getRequest().get(
|
|
42
|
+
"/tenant/device/workarea",
|
|
43
|
+
{
|
|
44
|
+
relation_count: ["smartDevices", "dumbDevices", "integratedDevices"]
|
|
45
|
+
},
|
|
46
|
+
CONFIG
|
|
47
|
+
);
|
|
48
|
+
return (response == null ? void 0 : response.data) || [];
|
|
49
|
+
};
|
|
50
|
+
var createWorkArea = async (payload) => {
|
|
51
|
+
const response = await import_utils.request.getRequest().post(
|
|
52
|
+
"/tenant/device/workarea",
|
|
53
|
+
payload,
|
|
54
|
+
CONFIG
|
|
55
|
+
);
|
|
56
|
+
return (response == null ? void 0 : response.data) || null;
|
|
57
|
+
};
|
|
58
|
+
var updateWorkArea = async (id, payload) => {
|
|
59
|
+
const response = await import_utils.request.getRequest().put(
|
|
60
|
+
`/tenant/device/workarea/${id}`,
|
|
61
|
+
payload,
|
|
62
|
+
CONFIG
|
|
63
|
+
);
|
|
64
|
+
return (response == null ? void 0 : response.data) || null;
|
|
65
|
+
};
|
|
66
|
+
var sortWorkAreas = (ids) => import_utils.request.getRequest().post("/tenant/device/workarea/sort", { ids }, CONFIG);
|
|
67
|
+
var deleteWorkArea = (id) => import_utils.request.getRequest().remove(`/tenant/device/workarea/${id}`, {}, CONFIG);
|
|
68
|
+
var getWorkAreaDetail = async (params) => import_utils.request.getRequest().get(`/tenant/device/workarea`, params, CONFIG);
|
|
69
|
+
var getDevices = async (params) => {
|
|
70
|
+
const response = await import_utils.request.getRequest().get(
|
|
71
|
+
"/tenant/device",
|
|
72
|
+
{
|
|
73
|
+
with: params.with || ["type", "model", "workarea"],
|
|
74
|
+
workarea_id: params.workarea_id,
|
|
75
|
+
type_kind: params.type_kind,
|
|
76
|
+
profile_id: params.profile_id
|
|
77
|
+
},
|
|
78
|
+
CONFIG
|
|
79
|
+
);
|
|
80
|
+
return (response == null ? void 0 : response.data) || [];
|
|
81
|
+
};
|
|
82
|
+
var getDeviceTypes = async (params) => {
|
|
83
|
+
const response = await import_utils.request.getRequest().get(
|
|
84
|
+
"/tenant/device/type/all",
|
|
85
|
+
{
|
|
86
|
+
with: params.with || ["activeModels", "activeModels.activeProfiles"],
|
|
87
|
+
kind: params.kind
|
|
88
|
+
},
|
|
89
|
+
CONFIG
|
|
90
|
+
);
|
|
91
|
+
return (response == null ? void 0 : response.data) || [];
|
|
92
|
+
};
|
|
93
|
+
var createDevice = async (payload) => {
|
|
94
|
+
const response = await import_utils.request.getRequest().post("/tenant/device", payload, CONFIG);
|
|
95
|
+
return (response == null ? void 0 : response.data) || null;
|
|
96
|
+
};
|
|
97
|
+
var sortDevices = (ids) => import_utils.request.getRequest().post("/tenant/device/sort", { ids }, CONFIG);
|
|
98
|
+
var updateDevice = async (id, payload) => {
|
|
99
|
+
const response = await import_utils.request.getRequest().put(`/tenant/device/${id}`, payload, CONFIG);
|
|
100
|
+
return (response == null ? void 0 : response.data) || null;
|
|
101
|
+
};
|
|
102
|
+
var deleteDevice = (id) => import_utils.request.getRequest().remove(`/tenant/device/${id}`, {}, CONFIG);
|
|
103
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
104
|
+
0 && (module.exports = {
|
|
105
|
+
createDevice,
|
|
106
|
+
createWorkArea,
|
|
107
|
+
deleteDevice,
|
|
108
|
+
deleteWorkArea,
|
|
109
|
+
getDeviceTypes,
|
|
110
|
+
getDevices,
|
|
111
|
+
getWorkAreaDetail,
|
|
112
|
+
getWorkAreas,
|
|
113
|
+
sortDevices,
|
|
114
|
+
sortWorkAreas,
|
|
115
|
+
updateDevice,
|
|
116
|
+
updateWorkArea
|
|
117
|
+
});
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export declare type DeviceKind = 'smart' | 'dumb' | 'integrated';
|
|
3
|
+
export declare type DeviceLinkStatus = 'linked' | 'unlinked' | string;
|
|
4
|
+
export declare type DeviceOnlineStatus = 'online' | 'offline' | 'unknown' | string;
|
|
5
|
+
export declare type I18nText = string | {
|
|
6
|
+
original?: string;
|
|
7
|
+
'zh-CN'?: string;
|
|
8
|
+
'zh-HK'?: string;
|
|
9
|
+
en?: string;
|
|
10
|
+
ja?: string;
|
|
11
|
+
pt?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
export declare type LangDict = {
|
|
15
|
+
original?: string;
|
|
16
|
+
en?: string;
|
|
17
|
+
'zh-CN'?: string;
|
|
18
|
+
'zh-HK'?: string;
|
|
19
|
+
ja?: string;
|
|
20
|
+
pt?: string;
|
|
21
|
+
};
|
|
22
|
+
export interface SaasDevicePlanningProps {
|
|
23
|
+
className?: string;
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
export interface WorkAreaItem {
|
|
27
|
+
id: number;
|
|
28
|
+
tenant_id?: number;
|
|
29
|
+
name: I18nText;
|
|
30
|
+
description?: I18nText;
|
|
31
|
+
sort: number;
|
|
32
|
+
created_at?: string;
|
|
33
|
+
updated_at?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface DeviceTypeItem {
|
|
36
|
+
id: number;
|
|
37
|
+
kind: DeviceKind;
|
|
38
|
+
code: string;
|
|
39
|
+
icon?: string | null;
|
|
40
|
+
name: I18nText;
|
|
41
|
+
description?: I18nText;
|
|
42
|
+
status?: string;
|
|
43
|
+
sort?: number;
|
|
44
|
+
active_models?: DeviceModelItem[];
|
|
45
|
+
}
|
|
46
|
+
export interface DeviceModelItem {
|
|
47
|
+
id: number;
|
|
48
|
+
brand_code?: string;
|
|
49
|
+
type_code: string;
|
|
50
|
+
type?: DeviceTypeItem;
|
|
51
|
+
code: string;
|
|
52
|
+
name: I18nText;
|
|
53
|
+
description?: I18nText;
|
|
54
|
+
data?: {
|
|
55
|
+
profile_structure?: {
|
|
56
|
+
required?: boolean;
|
|
57
|
+
tabs?: unknown[];
|
|
58
|
+
};
|
|
59
|
+
[key: string]: unknown;
|
|
60
|
+
} | null;
|
|
61
|
+
status?: string;
|
|
62
|
+
sort?: number;
|
|
63
|
+
active_profiles?: DeviceProfileItem[];
|
|
64
|
+
}
|
|
65
|
+
export interface DeviceProfileItem {
|
|
66
|
+
id: number;
|
|
67
|
+
model_code?: string;
|
|
68
|
+
template_code?: string;
|
|
69
|
+
name?: I18nText;
|
|
70
|
+
description?: I18nText;
|
|
71
|
+
setting?: Record<string, unknown> | null;
|
|
72
|
+
status?: string;
|
|
73
|
+
}
|
|
74
|
+
export interface DeviceItem {
|
|
75
|
+
id: number;
|
|
76
|
+
tenant_id?: number;
|
|
77
|
+
workarea_id?: number;
|
|
78
|
+
type_kind: DeviceKind;
|
|
79
|
+
type_code: string;
|
|
80
|
+
model_code: string;
|
|
81
|
+
profile_id?: number | null;
|
|
82
|
+
number?: string;
|
|
83
|
+
name: I18nText;
|
|
84
|
+
data?: Record<string, unknown> | null;
|
|
85
|
+
setting?: Record<string, unknown> | null;
|
|
86
|
+
link?: DeviceLinkStatus;
|
|
87
|
+
status?: DeviceOnlineStatus;
|
|
88
|
+
sort?: number;
|
|
89
|
+
last_seen?: string;
|
|
90
|
+
created_at?: string;
|
|
91
|
+
updated_at?: string;
|
|
92
|
+
type?: DeviceTypeItem;
|
|
93
|
+
model?: DeviceModelItem;
|
|
94
|
+
profile?: DeviceProfileItem | null;
|
|
95
|
+
workarea?: WorkAreaItem;
|
|
96
|
+
}
|
|
97
|
+
export interface ListDeviceParams {
|
|
98
|
+
with?: string[];
|
|
99
|
+
workarea_id?: number;
|
|
100
|
+
type_kind?: DeviceKind;
|
|
101
|
+
profile_id?: number;
|
|
102
|
+
}
|
|
103
|
+
export interface SaveWorkAreaPayload {
|
|
104
|
+
name: LangDict;
|
|
105
|
+
description: LangDict;
|
|
106
|
+
}
|
|
107
|
+
export interface CreateDevicePayload {
|
|
108
|
+
workarea_id: number;
|
|
109
|
+
model_code: string;
|
|
110
|
+
profile_id: number | null;
|
|
111
|
+
name: LangDict;
|
|
112
|
+
}
|
|
113
|
+
export interface UpdateDevicePayload {
|
|
114
|
+
workarea_id: number;
|
|
115
|
+
profile_id: number | null;
|
|
116
|
+
name: LangDict;
|
|
117
|
+
}
|
|
118
|
+
export interface DeviceRow {
|
|
119
|
+
id: number;
|
|
120
|
+
name: string;
|
|
121
|
+
typeName: string;
|
|
122
|
+
modelName: string;
|
|
123
|
+
profileName: string;
|
|
124
|
+
link: DeviceLinkStatus;
|
|
125
|
+
status: DeviceOnlineStatus;
|
|
126
|
+
typeCode: string;
|
|
127
|
+
modelCode: string;
|
|
128
|
+
_raw: DeviceItem;
|
|
129
|
+
}
|
|
130
|
+
export interface DeleteWorkAreaCounts {
|
|
131
|
+
smart: number;
|
|
132
|
+
dumb: number;
|
|
133
|
+
integrated: number;
|
|
134
|
+
}
|
|
135
|
+
export declare const EMPTY_I18N: LangDict;
|
|
136
|
+
export declare const DEVICE_KIND_OPTIONS: DeviceKind[];
|
|
137
|
+
export declare const toLangDict: (val?: I18nText) => LangDict;
|
|
138
|
+
export declare const validateI18nRequired: (message: string) => (_rule: unknown, value: I18nText | undefined) => Promise<void>;
|
|
@@ -0,0 +1,61 @@
|
|
|
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/devicePlanning/types.ts
|
|
20
|
+
var types_exports = {};
|
|
21
|
+
__export(types_exports, {
|
|
22
|
+
DEVICE_KIND_OPTIONS: () => DEVICE_KIND_OPTIONS,
|
|
23
|
+
EMPTY_I18N: () => EMPTY_I18N,
|
|
24
|
+
toLangDict: () => toLangDict,
|
|
25
|
+
validateI18nRequired: () => validateI18nRequired
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(types_exports);
|
|
28
|
+
var EMPTY_I18N = {
|
|
29
|
+
original: "",
|
|
30
|
+
en: "",
|
|
31
|
+
"zh-CN": "",
|
|
32
|
+
"zh-HK": "",
|
|
33
|
+
ja: "",
|
|
34
|
+
pt: ""
|
|
35
|
+
};
|
|
36
|
+
var DEVICE_KIND_OPTIONS = ["smart"];
|
|
37
|
+
var toLangDict = (val) => {
|
|
38
|
+
if (!val) return { ...EMPTY_I18N };
|
|
39
|
+
if (typeof val === "string") {
|
|
40
|
+
return { ...EMPTY_I18N, original: val, en: val };
|
|
41
|
+
}
|
|
42
|
+
return { ...EMPTY_I18N, ...val };
|
|
43
|
+
};
|
|
44
|
+
var validateI18nRequired = (message) => (_rule, value) => {
|
|
45
|
+
if (!value) return Promise.reject(new Error(message));
|
|
46
|
+
if (typeof value === "string") {
|
|
47
|
+
return value.trim() ? Promise.resolve() : Promise.reject(new Error(message));
|
|
48
|
+
}
|
|
49
|
+
const filled = Object.entries(value).some(
|
|
50
|
+
([key, val]) => key !== "original" && typeof val === "string" && val.trim() !== ""
|
|
51
|
+
);
|
|
52
|
+
const original = typeof (value == null ? void 0 : value.original) === "string" && value.original.trim() !== "";
|
|
53
|
+
return filled || original ? Promise.resolve() : Promise.reject(new Error(message));
|
|
54
|
+
};
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
DEVICE_KIND_OPTIONS,
|
|
58
|
+
EMPTY_I18N,
|
|
59
|
+
toLangDict,
|
|
60
|
+
validateI18nRequired
|
|
61
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeviceProfileItem, DeviceTypeItem, I18nText } from '../../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare type Mode = 'create' | 'duplicate';
|
|
5
|
+
interface CreateProfileModalProps {
|
|
6
|
+
open: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onSuccess: () => void;
|
|
9
|
+
deviceType?: DeviceTypeItem;
|
|
10
|
+
getText: (key: string) => string;
|
|
11
|
+
translation: (val: I18nText) => string;
|
|
12
|
+
mode?: Mode;
|
|
13
|
+
sourceProfile?: DeviceProfileItem;
|
|
14
|
+
}
|
|
15
|
+
declare const CreateProfileModal: React.FC<CreateProfileModalProps>;
|
|
16
|
+
export default CreateProfileModal;
|
|
@@ -0,0 +1,343 @@
|
|
|
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/CreateProfileModal/index.tsx
|
|
30
|
+
var CreateProfileModal_exports = {};
|
|
31
|
+
__export(CreateProfileModal_exports, {
|
|
32
|
+
default: () => CreateProfileModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(CreateProfileModal_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_serve = require("../../serve");
|
|
41
|
+
var import_index = require("./index.less");
|
|
42
|
+
var EMPTY_DICT = {
|
|
43
|
+
en: "",
|
|
44
|
+
"zh-CN": "",
|
|
45
|
+
"zh-HK": "",
|
|
46
|
+
ja: "",
|
|
47
|
+
pt: "",
|
|
48
|
+
original: ""
|
|
49
|
+
};
|
|
50
|
+
var COPY_SUFFIX = " (Copy)";
|
|
51
|
+
var toLangDict = (val) => {
|
|
52
|
+
if (!val) return { ...EMPTY_DICT };
|
|
53
|
+
if (typeof val === "string") {
|
|
54
|
+
return { ...EMPTY_DICT, original: val, en: val };
|
|
55
|
+
}
|
|
56
|
+
return { ...EMPTY_DICT, ...val };
|
|
57
|
+
};
|
|
58
|
+
var appendCopySuffix = (val) => {
|
|
59
|
+
const dict = toLangDict(val);
|
|
60
|
+
const result = { ...EMPTY_DICT };
|
|
61
|
+
Object.keys(dict).forEach((k) => {
|
|
62
|
+
const v = dict[k];
|
|
63
|
+
result[k] = v && String(v).trim() ? `${v}${COPY_SUFFIX}` : "";
|
|
64
|
+
});
|
|
65
|
+
return result;
|
|
66
|
+
};
|
|
67
|
+
var CreateProfileModal = ({
|
|
68
|
+
open,
|
|
69
|
+
onClose,
|
|
70
|
+
onSuccess,
|
|
71
|
+
deviceType,
|
|
72
|
+
getText,
|
|
73
|
+
translation,
|
|
74
|
+
mode = "create",
|
|
75
|
+
sourceProfile
|
|
76
|
+
}) => {
|
|
77
|
+
const isDuplicate = mode === "duplicate" && !!sourceProfile;
|
|
78
|
+
const [step, setStep] = (0, import_react.useState)("template");
|
|
79
|
+
const [modelCode, setModelCode] = (0, import_react.useState)(void 0);
|
|
80
|
+
const [templateCode, setTemplateCode] = (0, import_react.useState)(
|
|
81
|
+
void 0
|
|
82
|
+
);
|
|
83
|
+
const [name, setName] = (0, import_react.useState)({ ...EMPTY_DICT });
|
|
84
|
+
const [description, setDescription] = (0, import_react.useState)({ ...EMPTY_DICT });
|
|
85
|
+
const [status, setStatus] = (0, import_react.useState)("active");
|
|
86
|
+
const [submitting, setSubmitting] = (0, import_react.useState)(false);
|
|
87
|
+
(0, import_react.useEffect)(() => {
|
|
88
|
+
if (!open) {
|
|
89
|
+
setStep("template");
|
|
90
|
+
setModelCode(void 0);
|
|
91
|
+
setTemplateCode(void 0);
|
|
92
|
+
setName({ ...EMPTY_DICT });
|
|
93
|
+
setDescription({ ...EMPTY_DICT });
|
|
94
|
+
setStatus("active");
|
|
95
|
+
setSubmitting(false);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (isDuplicate && sourceProfile) {
|
|
99
|
+
setStep("info");
|
|
100
|
+
setModelCode(sourceProfile.model_code);
|
|
101
|
+
setTemplateCode(sourceProfile.template_code);
|
|
102
|
+
setName(appendCopySuffix(sourceProfile.name));
|
|
103
|
+
setDescription(toLangDict(sourceProfile.description));
|
|
104
|
+
setStatus(sourceProfile.status);
|
|
105
|
+
}
|
|
106
|
+
}, [open, isDuplicate, sourceProfile]);
|
|
107
|
+
const typeName = (0, import_react.useMemo)(
|
|
108
|
+
() => deviceType ? translation(deviceType.name) : "",
|
|
109
|
+
[deviceType, translation]
|
|
110
|
+
);
|
|
111
|
+
const subTitle = (0, import_react.useMemo)(() => {
|
|
112
|
+
if (isDuplicate && sourceProfile) {
|
|
113
|
+
const sourceName = translation(sourceProfile.name);
|
|
114
|
+
return getText("pisell2.saas.device-profile.modal.subtitle.duplicate").replace("{DeviceType}", typeName || "").replace("{ProfileName}", sourceName || "");
|
|
115
|
+
}
|
|
116
|
+
return getText("pisell2.saas.device-profile.modal.subtitle.create").replace(
|
|
117
|
+
"{DeviceType}",
|
|
118
|
+
typeName || ""
|
|
119
|
+
);
|
|
120
|
+
}, [getText, typeName, isDuplicate, sourceProfile, translation]);
|
|
121
|
+
const modelOptions = (0, import_react.useMemo)(
|
|
122
|
+
() => ((deviceType == null ? void 0 : deviceType.active_models) || []).map((m) => ({
|
|
123
|
+
label: translation(m.name),
|
|
124
|
+
value: m.code
|
|
125
|
+
})),
|
|
126
|
+
[deviceType, translation]
|
|
127
|
+
);
|
|
128
|
+
const selectedModel = (0, import_react.useMemo)(
|
|
129
|
+
() => ((deviceType == null ? void 0 : deviceType.active_models) || []).find((m) => m.code === modelCode),
|
|
130
|
+
[deviceType, modelCode]
|
|
131
|
+
);
|
|
132
|
+
const templates = (0, import_react.useMemo)(
|
|
133
|
+
() => (selectedModel == null ? void 0 : selectedModel.active_profile_templates) || [],
|
|
134
|
+
[selectedModel]
|
|
135
|
+
);
|
|
136
|
+
const canNext = !!modelCode && !!templateCode;
|
|
137
|
+
const hasName = (0, import_react.useMemo)(
|
|
138
|
+
() => Object.values(name).some((v) => v && String(v).trim()),
|
|
139
|
+
[name]
|
|
140
|
+
);
|
|
141
|
+
const canCreate = hasName && !submitting;
|
|
142
|
+
const handleNext = () => {
|
|
143
|
+
if (!canNext) return;
|
|
144
|
+
setStep("info");
|
|
145
|
+
};
|
|
146
|
+
const handleBack = () => {
|
|
147
|
+
setStep("template");
|
|
148
|
+
};
|
|
149
|
+
const handleCreate = async () => {
|
|
150
|
+
if (!canCreate || !modelCode || !templateCode) return;
|
|
151
|
+
setSubmitting(true);
|
|
152
|
+
try {
|
|
153
|
+
const payload = {
|
|
154
|
+
model_code: modelCode,
|
|
155
|
+
template_code: templateCode,
|
|
156
|
+
name,
|
|
157
|
+
description,
|
|
158
|
+
setting: null,
|
|
159
|
+
status
|
|
160
|
+
};
|
|
161
|
+
if (isDuplicate) {
|
|
162
|
+
payload.setting = (sourceProfile == null ? void 0 : sourceProfile.setting) || null;
|
|
163
|
+
} else {
|
|
164
|
+
const template = templates.find((t) => t.code === templateCode);
|
|
165
|
+
if (template) {
|
|
166
|
+
payload.setting = template.setting;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
await (0, import_serve.createDeviceProfile)(payload);
|
|
170
|
+
(0, import_materials.PisellToast)({
|
|
171
|
+
content: getText("pisell2.saas.device-profile.message.create-success"),
|
|
172
|
+
duration: 2
|
|
173
|
+
});
|
|
174
|
+
onSuccess();
|
|
175
|
+
} catch (e) {
|
|
176
|
+
} finally {
|
|
177
|
+
setSubmitting(false);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
const renderHeader = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__header" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__title" }, step === "template" ? getText("pisell2.saas.device-profile.modal.title.choose-template") : getText("pisell2.saas.device-profile.modal.title.profile-info")), /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__subtitle" }, subTitle)), /* @__PURE__ */ import_react.default.createElement(
|
|
181
|
+
import_icons.CloseOutlined,
|
|
182
|
+
{
|
|
183
|
+
className: "create-profile-modal__close",
|
|
184
|
+
onClick: onClose
|
|
185
|
+
}
|
|
186
|
+
));
|
|
187
|
+
const renderTemplateStep = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__body" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical" }, /* @__PURE__ */ import_react.default.createElement(
|
|
188
|
+
import_antd.Form.Item,
|
|
189
|
+
{
|
|
190
|
+
required: true,
|
|
191
|
+
label: getText(
|
|
192
|
+
"pisell2.saas.device-profile.modal.field.device-model"
|
|
193
|
+
),
|
|
194
|
+
help: getText(
|
|
195
|
+
"pisell2.saas.device-profile.modal.help.profile-structure"
|
|
196
|
+
)
|
|
197
|
+
},
|
|
198
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
199
|
+
import_materials.Select,
|
|
200
|
+
{
|
|
201
|
+
value: modelCode,
|
|
202
|
+
onChange: (val) => {
|
|
203
|
+
setModelCode(val);
|
|
204
|
+
setTemplateCode(void 0);
|
|
205
|
+
},
|
|
206
|
+
placeholder: getText(
|
|
207
|
+
"pisell2.saas.device-profile.modal.placeholder.select-model"
|
|
208
|
+
),
|
|
209
|
+
options: modelOptions,
|
|
210
|
+
size: "large"
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__section-title" }, getText("pisell2.saas.device-profile.modal.help.select-template")), !modelCode ? /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__empty" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "ContainerOutlined" }), /* @__PURE__ */ import_react.default.createElement("div", null, getText("pisell2.saas.device-profile.modal.empty.no-model"))) : templates.length === 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__empty" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "ContainerOutlined" }), /* @__PURE__ */ import_react.default.createElement("div", null, getText("pisell2.saas.device-profile.modal.empty.no-templates"))) : /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__templates" }, templates.map((tpl) => {
|
|
214
|
+
const selected = templateCode === tpl.code;
|
|
215
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
key: tpl.code,
|
|
219
|
+
className: (0, import_classnames.default)("create-profile-modal__template-card", {
|
|
220
|
+
"is-selected": selected
|
|
221
|
+
}),
|
|
222
|
+
onClick: () => setTemplateCode(tpl.code)
|
|
223
|
+
},
|
|
224
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__template-icon" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "FileTextOutlined" })),
|
|
225
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__template-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__template-name" }, translation(tpl.name)), tpl.description ? /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__template-desc" }, translation(tpl.description)) : null)
|
|
226
|
+
);
|
|
227
|
+
})));
|
|
228
|
+
const renderInfoStep = () => {
|
|
229
|
+
const modelName = selectedModel ? translation(selectedModel.name) : "";
|
|
230
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__body" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical" }, /* @__PURE__ */ import_react.default.createElement(
|
|
231
|
+
import_antd.Form.Item,
|
|
232
|
+
{
|
|
233
|
+
required: true,
|
|
234
|
+
label: getText(
|
|
235
|
+
"pisell2.saas.device-profile.modal.field.profile-name"
|
|
236
|
+
)
|
|
237
|
+
},
|
|
238
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
239
|
+
import_materials.BaseTranslation,
|
|
240
|
+
{
|
|
241
|
+
value: name,
|
|
242
|
+
onChange: (val) => setName(val),
|
|
243
|
+
placeholder: getText(
|
|
244
|
+
"pisell2.saas.device-profile.modal.placeholder.profile-name"
|
|
245
|
+
),
|
|
246
|
+
size: "large"
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__row" }, /* @__PURE__ */ import_react.default.createElement(
|
|
250
|
+
import_antd.Form.Item,
|
|
251
|
+
{
|
|
252
|
+
label: getText(
|
|
253
|
+
"pisell2.saas.device-profile.modal.field.device-type"
|
|
254
|
+
),
|
|
255
|
+
className: "create-profile-modal__col"
|
|
256
|
+
},
|
|
257
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Input, { value: typeName, disabled: true, size: "large" })
|
|
258
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
259
|
+
import_antd.Form.Item,
|
|
260
|
+
{
|
|
261
|
+
label: getText(
|
|
262
|
+
"pisell2.saas.device-profile.modal.field.device-model"
|
|
263
|
+
),
|
|
264
|
+
className: "create-profile-modal__col"
|
|
265
|
+
},
|
|
266
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Input, { value: modelName, disabled: true, size: "large" })
|
|
267
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
268
|
+
import_antd.Form.Item,
|
|
269
|
+
{
|
|
270
|
+
label: getText("pisell2.saas.device-profile.modal.field.status")
|
|
271
|
+
},
|
|
272
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
273
|
+
import_materials.Select,
|
|
274
|
+
{
|
|
275
|
+
value: status,
|
|
276
|
+
onChange: (val) => setStatus(val),
|
|
277
|
+
size: "large",
|
|
278
|
+
options: [
|
|
279
|
+
{
|
|
280
|
+
label: getText("pisell2.saas.device-profile.status.active"),
|
|
281
|
+
value: "active"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
label: getText("pisell2.saas.device-profile.status.inactive"),
|
|
285
|
+
value: "inactive"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
}
|
|
289
|
+
)
|
|
290
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
291
|
+
import_antd.Form.Item,
|
|
292
|
+
{
|
|
293
|
+
label: getText(
|
|
294
|
+
"pisell2.saas.device-profile.modal.field.description"
|
|
295
|
+
)
|
|
296
|
+
},
|
|
297
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
298
|
+
import_materials.BaseTranslation,
|
|
299
|
+
{
|
|
300
|
+
value: description,
|
|
301
|
+
onChange: (val) => setDescription(val),
|
|
302
|
+
placeholder: getText(
|
|
303
|
+
"pisell2.saas.device-profile.modal.placeholder.description"
|
|
304
|
+
),
|
|
305
|
+
size: "large"
|
|
306
|
+
}
|
|
307
|
+
)
|
|
308
|
+
)));
|
|
309
|
+
};
|
|
310
|
+
const renderFooter = () => {
|
|
311
|
+
if (step === "template") {
|
|
312
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__footer" }, /* @__PURE__ */ import_react.default.createElement("span", null), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "primary", disabled: !canNext, onClick: handleNext }, getText("pisell2.saas.device-profile.modal.button.next")));
|
|
313
|
+
}
|
|
314
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "create-profile-modal__footer" }, isDuplicate ? /* @__PURE__ */ import_react.default.createElement("span", null) : /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "text", onClick: handleBack }, getText("pisell2.saas.device-profile.modal.button.back")), /* @__PURE__ */ import_react.default.createElement(
|
|
315
|
+
import_materials.Button,
|
|
316
|
+
{
|
|
317
|
+
type: "primary",
|
|
318
|
+
disabled: !canCreate,
|
|
319
|
+
loading: submitting,
|
|
320
|
+
onClick: handleCreate
|
|
321
|
+
},
|
|
322
|
+
getText("pisell2.saas.device-profile.modal.button.create")
|
|
323
|
+
));
|
|
324
|
+
};
|
|
325
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
326
|
+
import_materials.PisellModal,
|
|
327
|
+
{
|
|
328
|
+
open,
|
|
329
|
+
onCancel: onClose,
|
|
330
|
+
headerDivider: false,
|
|
331
|
+
footerDivider: false,
|
|
332
|
+
footer: null,
|
|
333
|
+
header: null,
|
|
334
|
+
closable: false,
|
|
335
|
+
width: 640,
|
|
336
|
+
destroyOnClose: true,
|
|
337
|
+
maskClosable: false,
|
|
338
|
+
className: "create-profile-modal"
|
|
339
|
+
},
|
|
340
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { padding: "24px 0" } }, renderHeader(), step === "template" ? renderTemplateStep() : renderInfoStep(), renderFooter())
|
|
341
|
+
);
|
|
342
|
+
};
|
|
343
|
+
var CreateProfileModal_default = CreateProfileModal;
|