@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 @@
|
|
|
1
|
+
export declare const useTranslation: () => any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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/hooks.ts
|
|
30
|
+
var hooks_exports = {};
|
|
31
|
+
__export(hooks_exports, {
|
|
32
|
+
useTranslation: () => useTranslation
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
35
|
+
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
36
|
+
var useTranslation = () => {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
const context = (0, import_useEngineContext.default)();
|
|
39
|
+
return ((_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.translation) || ((val) => val == null ? void 0 : val.original);
|
|
40
|
+
};
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
useTranslation
|
|
44
|
+
});
|
|
@@ -0,0 +1,556 @@
|
|
|
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/index.tsx
|
|
30
|
+
var deviceProfile_exports = {};
|
|
31
|
+
__export(deviceProfile_exports, {
|
|
32
|
+
default: () => deviceProfile_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(deviceProfile_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_ahooks = require("ahooks");
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var import_classnames = __toESM(require("classnames"));
|
|
40
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
41
|
+
var import_utils = require("@pisell/utils");
|
|
42
|
+
var import_utils2 = require("../../../utils");
|
|
43
|
+
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
44
|
+
var import_useLocale = __toESM(require("../../../hooks/useLocale"));
|
|
45
|
+
var import_TwoColumnPageLayout = __toESM(require("./components/TwoColumnPageLayout"));
|
|
46
|
+
var import_SiderMenuPanel = __toESM(require("./components/SiderMenuPanel"));
|
|
47
|
+
var import_CreateProfileModal = __toESM(require("./components/CreateProfileModal"));
|
|
48
|
+
var import_DeleteProfileModal = __toESM(require("./components/DeleteProfileModal"));
|
|
49
|
+
var import_serve = require("./serve");
|
|
50
|
+
var import_hooks = require("./hooks");
|
|
51
|
+
var import_locales = __toESM(require("./locales"));
|
|
52
|
+
var import_index = require("./index.less");
|
|
53
|
+
var import_ProfileSetting = __toESM(require("./components/ProfileSetting"));
|
|
54
|
+
var KIND_ORDER = ["smart", "dumb", "integrated"];
|
|
55
|
+
var DEFAULT_PAGE_SIZE = 10;
|
|
56
|
+
var SaasDeviceProfile = ({
|
|
57
|
+
className,
|
|
58
|
+
style,
|
|
59
|
+
scene = "profile",
|
|
60
|
+
showBackButton = false
|
|
61
|
+
}) => {
|
|
62
|
+
var _a, _b, _c;
|
|
63
|
+
const context = (0, import_useEngineContext.default)();
|
|
64
|
+
const locale = (0, import_useLocale.default)();
|
|
65
|
+
import_utils.locales.init(import_locales.default, locale || "en");
|
|
66
|
+
const getText = import_utils.locales.getText;
|
|
67
|
+
const translation = (0, import_hooks.useTranslation)();
|
|
68
|
+
const utils = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
69
|
+
if (utils == null ? void 0 : utils.request) {
|
|
70
|
+
import_utils2.request.setRequest(utils.request);
|
|
71
|
+
}
|
|
72
|
+
const [siderSearch, setSiderSearch] = (0, import_react.useState)("");
|
|
73
|
+
const [selectedCode, setSelectedCode] = (0, import_react.useState)("");
|
|
74
|
+
const [page, setPage] = (0, import_react.useState)(1);
|
|
75
|
+
const [pageSize, setPageSize] = (0, import_react.useState)(DEFAULT_PAGE_SIZE);
|
|
76
|
+
const [filters, setFilters] = (0, import_react.useState)({});
|
|
77
|
+
const [createOpen, setCreateOpen] = (0, import_react.useState)(false);
|
|
78
|
+
const [duplicateSource, setDuplicateSource] = (0, import_react.useState)(void 0);
|
|
79
|
+
const [deleteOpen, setDeleteOpen] = (0, import_react.useState)(false);
|
|
80
|
+
const [deleteRecord, setDeleteRecord] = (0, import_react.useState)(
|
|
81
|
+
void 0
|
|
82
|
+
);
|
|
83
|
+
const [linkedDevices, setLinkedDevices] = (0, import_react.useState)([]);
|
|
84
|
+
const [modalOpen, setModalOpen] = (0, import_react.useState)(false);
|
|
85
|
+
const [modalState, setModalState] = (0, import_react.useState)(null);
|
|
86
|
+
const tableRef = (0, import_react.useRef)(null);
|
|
87
|
+
const skipNextFetchRef = (0, import_react.useRef)(false);
|
|
88
|
+
const detailRequest = (0, import_ahooks.useRequest)(import_serve.getDeviceTypes, { manual: true });
|
|
89
|
+
const profileRequest = (0, import_ahooks.useRequest)(import_serve.getDeviceProfiles, { manual: true });
|
|
90
|
+
const checkLinkedRequest = (0, import_ahooks.useRequest)(import_serve.getProfileLinkedDevices, {
|
|
91
|
+
manual: true
|
|
92
|
+
});
|
|
93
|
+
const deleteRequest = (0, import_ahooks.useRequest)(import_serve.deleteDeviceProfile, { manual: true });
|
|
94
|
+
const handleSelectType = (0, import_react.useCallback)(
|
|
95
|
+
(code) => {
|
|
96
|
+
var _a2, _b2;
|
|
97
|
+
if (!code || code === selectedCode) return;
|
|
98
|
+
skipNextFetchRef.current = true;
|
|
99
|
+
setSelectedCode(code);
|
|
100
|
+
setFilters({});
|
|
101
|
+
setPage(1);
|
|
102
|
+
(_b2 = (_a2 = tableRef.current) == null ? void 0 : _a2.formInstance) == null ? void 0 : _b2.resetFields([
|
|
103
|
+
["filters", "search"],
|
|
104
|
+
["filters", "model"],
|
|
105
|
+
["filters", "status"]
|
|
106
|
+
]);
|
|
107
|
+
detailRequest.run({
|
|
108
|
+
code,
|
|
109
|
+
with: ["activeModels", "activeModels.activeProfileTemplates"]
|
|
110
|
+
});
|
|
111
|
+
profileRequest.run({
|
|
112
|
+
page: 1,
|
|
113
|
+
size: pageSize,
|
|
114
|
+
type_code: code
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
[selectedCode, pageSize, detailRequest, profileRequest]
|
|
118
|
+
);
|
|
119
|
+
const listRequest = (0, import_ahooks.useRequest)(() => (0, import_serve.getDeviceTypes)(), {
|
|
120
|
+
onSuccess: (list) => {
|
|
121
|
+
if (!selectedCode && list.length) {
|
|
122
|
+
const first = list.find((it) => it.status === "active") || list[0];
|
|
123
|
+
handleSelectType(first.code);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
const selectedDetail = (0, import_react.useMemo)(() => {
|
|
128
|
+
const data = detailRequest.data || [];
|
|
129
|
+
return data.find((it) => it.code === selectedCode) || data[0];
|
|
130
|
+
}, [detailRequest.data, selectedCode]);
|
|
131
|
+
(0, import_react.useEffect)(() => {
|
|
132
|
+
if (skipNextFetchRef.current) {
|
|
133
|
+
skipNextFetchRef.current = false;
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (!selectedCode) return;
|
|
137
|
+
profileRequest.run({
|
|
138
|
+
page,
|
|
139
|
+
size: pageSize,
|
|
140
|
+
type_code: selectedCode,
|
|
141
|
+
model_code: filters.model || void 0,
|
|
142
|
+
status: filters.status || void 0,
|
|
143
|
+
search: filters.search || void 0
|
|
144
|
+
});
|
|
145
|
+
}, [selectedCode, page, pageSize, filters]);
|
|
146
|
+
const menuItems = (0, import_react.useMemo)(() => {
|
|
147
|
+
const all = listRequest.data || [];
|
|
148
|
+
const keyword = siderSearch.trim().toLowerCase();
|
|
149
|
+
return KIND_ORDER.map((kind) => {
|
|
150
|
+
const children = all.filter((it) => it.kind === kind).sort((a, b) => a.sort - b.sort).map((it) => ({
|
|
151
|
+
item: it,
|
|
152
|
+
text: translation(it.name)
|
|
153
|
+
})).filter(
|
|
154
|
+
({ text }) => keyword ? String(text).toLowerCase().includes(keyword) : true
|
|
155
|
+
).map(({ item, text }) => ({
|
|
156
|
+
key: item.code,
|
|
157
|
+
label: text,
|
|
158
|
+
icon: item.icon ? /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: item.icon }) : null
|
|
159
|
+
}));
|
|
160
|
+
return {
|
|
161
|
+
key: `group-${kind}`,
|
|
162
|
+
type: "group",
|
|
163
|
+
label: getText(`pisell2.saas.device-profile.kind.${kind}`),
|
|
164
|
+
children
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
}, [listRequest.data, siderSearch, translation, getText]);
|
|
168
|
+
const modelOptions = (0, import_react.useMemo)(
|
|
169
|
+
() => ((selectedDetail == null ? void 0 : selectedDetail.active_models) || []).map((m) => ({
|
|
170
|
+
label: translation(m.name),
|
|
171
|
+
value: m.code
|
|
172
|
+
})),
|
|
173
|
+
[selectedDetail, translation]
|
|
174
|
+
);
|
|
175
|
+
const modelNameMap = (0, import_react.useMemo)(() => {
|
|
176
|
+
const map = {};
|
|
177
|
+
((selectedDetail == null ? void 0 : selectedDetail.active_models) || []).forEach((m) => {
|
|
178
|
+
map[m.code] = translation(m.name);
|
|
179
|
+
});
|
|
180
|
+
return map;
|
|
181
|
+
}, [selectedDetail, translation]);
|
|
182
|
+
const tableData = (0, import_react.useMemo)(() => {
|
|
183
|
+
var _a2;
|
|
184
|
+
const list = ((_a2 = profileRequest.data) == null ? void 0 : _a2.list) || [];
|
|
185
|
+
return list.map((it) => {
|
|
186
|
+
var _a3;
|
|
187
|
+
return {
|
|
188
|
+
id: it.id,
|
|
189
|
+
name: translation(it.name),
|
|
190
|
+
modelCode: it.model_code,
|
|
191
|
+
modelName: modelNameMap[it.model_code] || it.model_code,
|
|
192
|
+
status: it.status,
|
|
193
|
+
updated_at: it.updated_at,
|
|
194
|
+
_deviceType: selectedDetail,
|
|
195
|
+
_deviceModel: (_a3 = selectedDetail == null ? void 0 : selectedDetail.active_models) == null ? void 0 : _a3.find(
|
|
196
|
+
(m) => m.code === (it == null ? void 0 : it.model_code)
|
|
197
|
+
),
|
|
198
|
+
_raw: it
|
|
199
|
+
};
|
|
200
|
+
});
|
|
201
|
+
}, [profileRequest.data, modelNameMap, translation]);
|
|
202
|
+
const total = ((_b = profileRequest.data) == null ? void 0 : _b.count) || 0;
|
|
203
|
+
const noop = (0, import_react.useCallback)(
|
|
204
|
+
(action, record) => {
|
|
205
|
+
var _a2;
|
|
206
|
+
console.log("action =>>>>", action, record);
|
|
207
|
+
switch (action) {
|
|
208
|
+
case "edit":
|
|
209
|
+
setModalOpen(true);
|
|
210
|
+
setModalState({
|
|
211
|
+
record,
|
|
212
|
+
deviceModel: record == null ? void 0 : record._deviceModel,
|
|
213
|
+
deviceType: record == null ? void 0 : record._deviceType
|
|
214
|
+
});
|
|
215
|
+
break;
|
|
216
|
+
case "copy":
|
|
217
|
+
if (record == null ? void 0 : record._raw) {
|
|
218
|
+
setDuplicateSource(record._raw);
|
|
219
|
+
setCreateOpen(true);
|
|
220
|
+
}
|
|
221
|
+
break;
|
|
222
|
+
case "delete": {
|
|
223
|
+
const typeKind = (_a2 = record._deviceType) == null ? void 0 : _a2.kind;
|
|
224
|
+
if (!record.id || !typeKind) return;
|
|
225
|
+
setDeleteRecord(record);
|
|
226
|
+
setLinkedDevices([]);
|
|
227
|
+
setDeleteOpen(true);
|
|
228
|
+
checkLinkedRequest.runAsync({
|
|
229
|
+
profile_id: record.id,
|
|
230
|
+
type_kind: typeKind,
|
|
231
|
+
with: ["workarea"]
|
|
232
|
+
}).then((list) => setLinkedDevices(list || [])).catch(() => setLinkedDevices([]));
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
[checkLinkedRequest]
|
|
238
|
+
);
|
|
239
|
+
const filterConfig = (0, import_react.useMemo)(
|
|
240
|
+
() => ({
|
|
241
|
+
show: true,
|
|
242
|
+
quickFilterMaxLength: 3,
|
|
243
|
+
list: [
|
|
244
|
+
{
|
|
245
|
+
key: "search",
|
|
246
|
+
type: "search",
|
|
247
|
+
name: "search",
|
|
248
|
+
isCustom: true,
|
|
249
|
+
columnKey: "",
|
|
250
|
+
localFilter: false,
|
|
251
|
+
other: {
|
|
252
|
+
size: "large",
|
|
253
|
+
allowClear: true,
|
|
254
|
+
trigger: ["onChange", "onPressEnter"],
|
|
255
|
+
placeholder: getText("pisell2.saas.device-profile.search-profiles"),
|
|
256
|
+
style: { width: 280 }
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
key: "model",
|
|
261
|
+
type: "single",
|
|
262
|
+
name: "model",
|
|
263
|
+
isCustom: true,
|
|
264
|
+
columnKey: "",
|
|
265
|
+
localFilter: false,
|
|
266
|
+
other: {
|
|
267
|
+
size: "large",
|
|
268
|
+
allowClear: true,
|
|
269
|
+
placeholder: getText(
|
|
270
|
+
"pisell2.saas.device-profile.filter.all-models"
|
|
271
|
+
),
|
|
272
|
+
options: modelOptions,
|
|
273
|
+
style: { width: 200 }
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
key: "status",
|
|
278
|
+
type: "single",
|
|
279
|
+
name: "status",
|
|
280
|
+
isCustom: true,
|
|
281
|
+
columnKey: "",
|
|
282
|
+
localFilter: false,
|
|
283
|
+
other: {
|
|
284
|
+
size: "large",
|
|
285
|
+
allowClear: true,
|
|
286
|
+
placeholder: getText(
|
|
287
|
+
"pisell2.saas.device-profile.filter.all-status"
|
|
288
|
+
),
|
|
289
|
+
options: [
|
|
290
|
+
{
|
|
291
|
+
label: getText("pisell2.saas.device-profile.status.active"),
|
|
292
|
+
value: "active"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
label: getText("pisell2.saas.device-profile.status.inactive"),
|
|
296
|
+
value: "inactive"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
style: { width: 160 }
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
}),
|
|
304
|
+
[getText, modelOptions]
|
|
305
|
+
);
|
|
306
|
+
const handleValuesChange = (0, import_react.useCallback)((_changed, values) => {
|
|
307
|
+
const f = (values == null ? void 0 : values.filters) || {};
|
|
308
|
+
setFilters({
|
|
309
|
+
search: f.search,
|
|
310
|
+
model: f.model,
|
|
311
|
+
status: f.status
|
|
312
|
+
});
|
|
313
|
+
if (values == null ? void 0 : values.pagination) {
|
|
314
|
+
setPage(values.pagination.page || 1);
|
|
315
|
+
setPageSize(values.pagination.size || DEFAULT_PAGE_SIZE);
|
|
316
|
+
}
|
|
317
|
+
}, []);
|
|
318
|
+
const columns = (0, import_react.useMemo)(
|
|
319
|
+
() => [
|
|
320
|
+
{
|
|
321
|
+
title: getText("pisell2.saas.device-profile.column.name"),
|
|
322
|
+
dataIndex: "name",
|
|
323
|
+
key: "name"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
title: getText("pisell2.saas.device-profile.column.device-model"),
|
|
327
|
+
dataIndex: "modelName",
|
|
328
|
+
key: "modelName"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
title: getText("pisell2.saas.device-profile.column.status"),
|
|
332
|
+
dataIndex: "status",
|
|
333
|
+
key: "status",
|
|
334
|
+
width: 120,
|
|
335
|
+
render: (status) => /* @__PURE__ */ import_react.default.createElement(
|
|
336
|
+
import_materials.Tag,
|
|
337
|
+
{
|
|
338
|
+
variant: "solid",
|
|
339
|
+
color: status === "active" ? "green" : "default"
|
|
340
|
+
},
|
|
341
|
+
getText(`pisell2.saas.device-profile.status.${status}`)
|
|
342
|
+
)
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
title: getText("pisell2.saas.device-profile.column.updated"),
|
|
346
|
+
dataIndex: "updated_at",
|
|
347
|
+
key: "updated_at",
|
|
348
|
+
width: 180,
|
|
349
|
+
render: (text) => text ? (0, import_dayjs.default)(text).format("DD/MM/YYYY HH:mm") : "-"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
title: getText("pisell2.saas.device-profile.column.actions"),
|
|
353
|
+
key: "actions",
|
|
354
|
+
width: 140,
|
|
355
|
+
render: (record) => /* @__PURE__ */ import_react.default.createElement(import_materials.Space, { size: 4 }, /* @__PURE__ */ import_react.default.createElement(
|
|
356
|
+
import_materials.Button,
|
|
357
|
+
{
|
|
358
|
+
type: "text",
|
|
359
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.EditOutlined, null),
|
|
360
|
+
onClick: () => noop("edit", record)
|
|
361
|
+
}
|
|
362
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
363
|
+
import_materials.Button,
|
|
364
|
+
{
|
|
365
|
+
type: "text",
|
|
366
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.CopyOutlined, null),
|
|
367
|
+
onClick: () => noop("copy", record)
|
|
368
|
+
}
|
|
369
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
370
|
+
import_materials.Button,
|
|
371
|
+
{
|
|
372
|
+
type: "text",
|
|
373
|
+
danger: true,
|
|
374
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.DeleteOutlined, null),
|
|
375
|
+
onClick: () => noop("delete", record)
|
|
376
|
+
}
|
|
377
|
+
))
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
[getText, noop]
|
|
381
|
+
);
|
|
382
|
+
const emptyProfilesText = (0, import_react.useMemo)(() => {
|
|
383
|
+
const dt = selectedDetail ? translation(selectedDetail.name) : "";
|
|
384
|
+
return getText("pisell2.saas.device-profile.empty.profiles").replace(
|
|
385
|
+
"{DeviceType}",
|
|
386
|
+
dt || ""
|
|
387
|
+
);
|
|
388
|
+
}, [getText, selectedDetail, translation]);
|
|
389
|
+
const reload = () => {
|
|
390
|
+
profileRequest.run({
|
|
391
|
+
page,
|
|
392
|
+
size: pageSize,
|
|
393
|
+
type_code: selectedCode,
|
|
394
|
+
model_code: filters.model || void 0,
|
|
395
|
+
status: filters.status || void 0,
|
|
396
|
+
search: filters.search || void 0
|
|
397
|
+
});
|
|
398
|
+
};
|
|
399
|
+
const handleBack = (0, import_react.useCallback)(() => {
|
|
400
|
+
var _a2, _b2, _c2, _d, _e;
|
|
401
|
+
const getApp = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.getApp;
|
|
402
|
+
const history = (_d = (_c2 = getApp == null ? void 0 : getApp()) == null ? void 0 : _c2.history) == null ? void 0 : _d.instance;
|
|
403
|
+
(_e = history == null ? void 0 : history.goBack) == null ? void 0 : _e.call(history);
|
|
404
|
+
}, [(_c = context == null ? void 0 : context.appHelper) == null ? void 0 : _c.utils]);
|
|
405
|
+
const pageSubTitle = getText("pisell2.saas.device-profile.subtitle");
|
|
406
|
+
const pageTitle = (0, import_react.useMemo)(() => {
|
|
407
|
+
const title = getText("pisell2.saas.device-profile.title");
|
|
408
|
+
if (!showBackButton) return title;
|
|
409
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile__page-heading" }, /* @__PURE__ */ import_react.default.createElement(
|
|
410
|
+
import_materials.Button,
|
|
411
|
+
{
|
|
412
|
+
type: "text",
|
|
413
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ArrowLeftOutlined, null),
|
|
414
|
+
className: "saas-device-profile__back-button",
|
|
415
|
+
onClick: handleBack,
|
|
416
|
+
size: "large"
|
|
417
|
+
}
|
|
418
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile__page-title" }, /* @__PURE__ */ import_react.default.createElement("span", null, title), /* @__PURE__ */ import_react.default.createElement("span", { className: "saas-device-profile__page-subtitle" }, pageSubTitle)));
|
|
419
|
+
}, [getText, handleBack, pageSubTitle, showBackButton]);
|
|
420
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("saas-device-profile", className), style }, /* @__PURE__ */ import_react.default.createElement(
|
|
421
|
+
import_TwoColumnPageLayout.default,
|
|
422
|
+
{
|
|
423
|
+
title: pageTitle,
|
|
424
|
+
subTitle: showBackButton ? void 0 : pageSubTitle,
|
|
425
|
+
sider: /* @__PURE__ */ import_react.default.createElement(
|
|
426
|
+
import_SiderMenuPanel.default,
|
|
427
|
+
{
|
|
428
|
+
title: getText("pisell2.saas.device-profile.device-type"),
|
|
429
|
+
searchable: true,
|
|
430
|
+
searchPlaceholder: getText("pisell2.saas.device-profile.search"),
|
|
431
|
+
onSearch: setSiderSearch,
|
|
432
|
+
items: menuItems,
|
|
433
|
+
selectedKey: selectedCode,
|
|
434
|
+
onSelect: handleSelectType,
|
|
435
|
+
emptyText: getText(
|
|
436
|
+
"pisell2.saas.device-profile.empty.device-types"
|
|
437
|
+
)
|
|
438
|
+
}
|
|
439
|
+
)
|
|
440
|
+
},
|
|
441
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
442
|
+
import_materials.Table,
|
|
443
|
+
{
|
|
444
|
+
ref: tableRef,
|
|
445
|
+
rowKey: "id",
|
|
446
|
+
dataSource: tableData,
|
|
447
|
+
columns,
|
|
448
|
+
loading: detailRequest.loading || profileRequest.loading,
|
|
449
|
+
filter: filterConfig,
|
|
450
|
+
onValuesChange: handleValuesChange,
|
|
451
|
+
pagination: {
|
|
452
|
+
localPagination: false,
|
|
453
|
+
current: page,
|
|
454
|
+
pageSize,
|
|
455
|
+
total,
|
|
456
|
+
showSizeChanger: true,
|
|
457
|
+
onChange: (p) => {
|
|
458
|
+
setPage(p.page);
|
|
459
|
+
setPageSize(p.size);
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
showTitle: false,
|
|
463
|
+
showSubTitle: false,
|
|
464
|
+
actionButtons: [
|
|
465
|
+
{
|
|
466
|
+
type: "primary",
|
|
467
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.PlusOutlined, null),
|
|
468
|
+
title: getText("pisell2.saas.device-profile.create"),
|
|
469
|
+
onClick: () => setCreateOpen(true),
|
|
470
|
+
disabled: !selectedDetail
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
locale: { emptyText: emptyProfilesText },
|
|
474
|
+
bordered: true
|
|
475
|
+
}
|
|
476
|
+
)
|
|
477
|
+
), createOpen && /* @__PURE__ */ import_react.default.createElement(
|
|
478
|
+
import_CreateProfileModal.default,
|
|
479
|
+
{
|
|
480
|
+
open: createOpen,
|
|
481
|
+
mode: duplicateSource ? "duplicate" : "create",
|
|
482
|
+
sourceProfile: duplicateSource,
|
|
483
|
+
deviceType: selectedDetail,
|
|
484
|
+
getText,
|
|
485
|
+
translation,
|
|
486
|
+
onClose: () => {
|
|
487
|
+
setCreateOpen(false);
|
|
488
|
+
setDuplicateSource(void 0);
|
|
489
|
+
},
|
|
490
|
+
onSuccess: () => {
|
|
491
|
+
setCreateOpen(false);
|
|
492
|
+
setDuplicateSource(void 0);
|
|
493
|
+
if (page !== 1) {
|
|
494
|
+
setPage(1);
|
|
495
|
+
} else {
|
|
496
|
+
profileRequest.run({
|
|
497
|
+
page: 1,
|
|
498
|
+
size: pageSize,
|
|
499
|
+
type_code: selectedCode,
|
|
500
|
+
model_code: filters.model || void 0,
|
|
501
|
+
status: filters.status || void 0,
|
|
502
|
+
search: filters.search || void 0
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
), deleteOpen && /* @__PURE__ */ import_react.default.createElement(
|
|
508
|
+
import_DeleteProfileModal.default,
|
|
509
|
+
{
|
|
510
|
+
open: deleteOpen,
|
|
511
|
+
loading: checkLinkedRequest.loading,
|
|
512
|
+
submitting: deleteRequest.loading,
|
|
513
|
+
profileName: deleteRecord ? deleteRecord.name : "",
|
|
514
|
+
linkedDevices,
|
|
515
|
+
translation,
|
|
516
|
+
getText,
|
|
517
|
+
onClose: () => {
|
|
518
|
+
setDeleteOpen(false);
|
|
519
|
+
setDeleteRecord(void 0);
|
|
520
|
+
setLinkedDevices([]);
|
|
521
|
+
},
|
|
522
|
+
onConfirm: async () => {
|
|
523
|
+
console.log("deleteRecord =>>>>", deleteRecord);
|
|
524
|
+
if (!deleteRecord) return;
|
|
525
|
+
try {
|
|
526
|
+
await deleteRequest.runAsync(deleteRecord.id);
|
|
527
|
+
(0, import_materials.PisellToast)({
|
|
528
|
+
content: getText(
|
|
529
|
+
"pisell2.saas.device-profile.message.delete-success"
|
|
530
|
+
),
|
|
531
|
+
duration: 2
|
|
532
|
+
});
|
|
533
|
+
setDeleteOpen(false);
|
|
534
|
+
setDeleteRecord(void 0);
|
|
535
|
+
setLinkedDevices([]);
|
|
536
|
+
reload();
|
|
537
|
+
} catch (e) {
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
), modalOpen && /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-profile-template-modal" }, /* @__PURE__ */ import_react.default.createElement(
|
|
542
|
+
import_ProfileSetting.default,
|
|
543
|
+
{
|
|
544
|
+
record: modalState == null ? void 0 : modalState.record,
|
|
545
|
+
deviceModel: modalState == null ? void 0 : modalState.deviceModel,
|
|
546
|
+
deviceType: modalState == null ? void 0 : modalState.deviceType,
|
|
547
|
+
scene,
|
|
548
|
+
onBack: () => {
|
|
549
|
+
reload();
|
|
550
|
+
setModalOpen(false);
|
|
551
|
+
setModalState(null);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
)));
|
|
555
|
+
};
|
|
556
|
+
var deviceProfile_default = SaasDeviceProfile;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.saas-device-profile {
|
|
2
|
+
height: 100%;
|
|
3
|
+
|
|
4
|
+
&__page-heading {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
gap: 12px;
|
|
9
|
+
line-height: normal;
|
|
10
|
+
|
|
11
|
+
.saas-device-profile__page-title {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
gap: 0;
|
|
16
|
+
line-height: normal !important;
|
|
17
|
+
|
|
18
|
+
> span:first-child {
|
|
19
|
+
line-height: 28px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__page-subtitle {
|
|
25
|
+
color: var(--Colors-Neutral-Text-colorTextSecondary, rgba(0, 0, 0, 0.65));
|
|
26
|
+
font-size: var(--Typography-Font-Size-fontSize, 14px);
|
|
27
|
+
font-weight: var(--Typography-Font-Weight-fontWeightNormal, 400);
|
|
28
|
+
line-height: var(--Typography-Line-Height-lineHeight, 22px) !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__back-button {
|
|
32
|
+
width: 32px;
|
|
33
|
+
height: 32px;
|
|
34
|
+
padding: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__menu-dot {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
width: 6px;
|
|
40
|
+
height: 6px;
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
background: #d1d5db;
|
|
43
|
+
margin-right: 6px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.saas-device-profile-template-modal {
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
z-index: 99;
|
|
53
|
+
}
|
|
54
|
+
}
|