@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,101 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Drawer } from 'antd';
|
|
3
|
+
import { Button, Icon, Tag } from '@pisell/materials';
|
|
4
|
+
import { CloseOutlined } from '@ant-design/icons';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import "./index.less";
|
|
7
|
+
var DeviceDetailDrawer = function DeviceDetailDrawer(_ref) {
|
|
8
|
+
var _device$type;
|
|
9
|
+
var open = _ref.open,
|
|
10
|
+
record = _ref.record,
|
|
11
|
+
getText = _ref.getText,
|
|
12
|
+
translation = _ref.translation,
|
|
13
|
+
onClose = _ref.onClose,
|
|
14
|
+
onEdit = _ref.onEdit,
|
|
15
|
+
onDelete = _ref.onDelete;
|
|
16
|
+
var device = record === null || record === void 0 ? void 0 : record._raw;
|
|
17
|
+
var online = (record === null || record === void 0 ? void 0 : record.status) === 'online';
|
|
18
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
19
|
+
open: open,
|
|
20
|
+
onClose: onClose,
|
|
21
|
+
width: 520,
|
|
22
|
+
maskClosable: true,
|
|
23
|
+
closable: false,
|
|
24
|
+
className: "device-detail-drawer",
|
|
25
|
+
rootClassName: "device-detail-drawer-root",
|
|
26
|
+
styles: {
|
|
27
|
+
body: {
|
|
28
|
+
padding: 0
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
bodyStyle: {
|
|
32
|
+
padding: 0
|
|
33
|
+
}
|
|
34
|
+
}, record ? /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: "device-detail-drawer__root"
|
|
36
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: "device-detail-drawer__header"
|
|
38
|
+
}, device !== null && device !== void 0 && (_device$type = device.type) !== null && _device$type !== void 0 && _device$type.icon ? /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
className: "device-detail-drawer__icon"
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
41
|
+
type: device.type.icon
|
|
42
|
+
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: "device-detail-drawer__heading"
|
|
44
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "device-detail-drawer__name"
|
|
46
|
+
}, record.name), /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: "device-detail-drawer__type"
|
|
48
|
+
}, record.typeName)), /*#__PURE__*/React.createElement(Button, {
|
|
49
|
+
type: "text",
|
|
50
|
+
icon: /*#__PURE__*/React.createElement(CloseOutlined, null),
|
|
51
|
+
onClick: onClose
|
|
52
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: "device-detail-drawer__content"
|
|
54
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
className: "device-detail-drawer__section-title"
|
|
56
|
+
}, getText('pisell2.saas.device-planning.detail.basic-info')), /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: "device-detail-drawer__info-list"
|
|
58
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: "device-detail-drawer__info-row"
|
|
60
|
+
}, /*#__PURE__*/React.createElement("span", null, getText('pisell2.saas.device-planning.detail.name')), /*#__PURE__*/React.createElement("strong", null, record.name)), /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "device-detail-drawer__info-row"
|
|
62
|
+
}, /*#__PURE__*/React.createElement("span", null, getText('pisell2.saas.device-planning.detail.type')), /*#__PURE__*/React.createElement("strong", null, record.typeName)), /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "device-detail-drawer__info-row"
|
|
64
|
+
}, /*#__PURE__*/React.createElement("span", null, getText('pisell2.saas.device-planning.detail.model')), /*#__PURE__*/React.createElement("strong", null, record.modelName)), /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: "device-detail-drawer__info-two-row"
|
|
66
|
+
}, /*#__PURE__*/React.createElement("span", null, getText('pisell2.saas.device-planning.detail.profile')), /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: "device-detail-drawer__profile-card"
|
|
68
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
69
|
+
type: "FileTextOutlined"
|
|
70
|
+
}), record.profileName))), /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: "device-detail-drawer__section-title"
|
|
72
|
+
}, getText('pisell2.saas.device-planning.detail.status')), /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: "device-detail-drawer__info-list"
|
|
74
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: "device-detail-drawer__info-row"
|
|
76
|
+
}, /*#__PURE__*/React.createElement("span", null, getText('pisell2.saas.device-planning.detail.link-status')), /*#__PURE__*/React.createElement(Tag, {
|
|
77
|
+
color: record.link === 'linked' ? 'green' : 'gold',
|
|
78
|
+
style: {
|
|
79
|
+
marginRight: 0
|
|
80
|
+
}
|
|
81
|
+
}, getText("pisell2.saas.device-planning.status.".concat(record.link)) || record.link)), /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "device-detail-drawer__info-row"
|
|
83
|
+
}, /*#__PURE__*/React.createElement("span", null, getText('pisell2.saas.device-planning.detail.online-status')), /*#__PURE__*/React.createElement("span", {
|
|
84
|
+
className: "device-detail-drawer__online-status"
|
|
85
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
86
|
+
className: classNames('device-detail-drawer__status-dot', {
|
|
87
|
+
'is-online': online
|
|
88
|
+
})
|
|
89
|
+
}), getText("pisell2.saas.device-planning.status.".concat(record.status)) || record.status)))), /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
className: "device-detail-drawer__footer"
|
|
91
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
92
|
+
danger: true,
|
|
93
|
+
size: "large",
|
|
94
|
+
onClick: onDelete
|
|
95
|
+
}, getText('pisell2.saas.device-planning.detail.delete')), /*#__PURE__*/React.createElement(Button, {
|
|
96
|
+
type: "primary",
|
|
97
|
+
size: "large",
|
|
98
|
+
onClick: onEdit
|
|
99
|
+
}, getText('pisell2.saas.device-planning.detail.edit')))) : null);
|
|
100
|
+
};
|
|
101
|
+
export default DeviceDetailDrawer;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
.device-detail-drawer-root {
|
|
2
|
+
.ant-drawer-content,
|
|
3
|
+
.ant-drawer-wrapper-body,
|
|
4
|
+
.ant-drawer-body {
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ant-drawer-body {
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.device-detail-drawer {
|
|
14
|
+
.ant-drawer-body {
|
|
15
|
+
height: 100%;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__root {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__header {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 12px;
|
|
29
|
+
padding: 16px;
|
|
30
|
+
background: #e6f4ff;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__icon {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
width: 40px;
|
|
38
|
+
height: 40px;
|
|
39
|
+
border-radius: 8px;
|
|
40
|
+
background: #dbeafe;
|
|
41
|
+
color: #1677ff;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__heading {
|
|
45
|
+
flex: 1;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__name {
|
|
50
|
+
font-size: 15px;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
color: rgba(0, 0, 0, 0.88);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__type {
|
|
56
|
+
margin-top: 2px;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
color: rgba(0, 0, 0, 0.45);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__content {
|
|
62
|
+
flex: 1;
|
|
63
|
+
min-height: 0;
|
|
64
|
+
padding: 20px 24px;
|
|
65
|
+
overflow: auto;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&__section-title {
|
|
69
|
+
margin: 10px 0 12px;
|
|
70
|
+
font-size: 13px;
|
|
71
|
+
color: rgba(0, 0, 0, 0.45);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__info-list {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: 12px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__info-row {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
gap: 16px;
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
|
|
87
|
+
> span:first-child {
|
|
88
|
+
color: rgba(0, 0, 0, 0.55);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
strong {
|
|
92
|
+
font-weight: 600;
|
|
93
|
+
color: rgba(0, 0, 0, 0.88);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&__info-two-row {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
align-items: flex-start;
|
|
101
|
+
gap: 8px;
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
|
|
104
|
+
> span:first-child {
|
|
105
|
+
color: rgba(0, 0, 0, 0.55);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
strong {
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
color: rgba(0, 0, 0, 0.88);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&__profile-card {
|
|
115
|
+
width: 100%;
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
gap: 8px;
|
|
119
|
+
min-width: 180px;
|
|
120
|
+
padding: 8px 10px;
|
|
121
|
+
border-radius: 6px;
|
|
122
|
+
background: #f5f6f8;
|
|
123
|
+
color: rgba(0, 0, 0, 0.72);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&__online-status {
|
|
127
|
+
display: inline-flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
gap: 6px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&__status-dot {
|
|
133
|
+
width: 6px;
|
|
134
|
+
height: 6px;
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
background: rgba(0, 0, 0, 0.25);
|
|
137
|
+
|
|
138
|
+
&.is-online {
|
|
139
|
+
background: #16a34a;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__footer {
|
|
144
|
+
display: grid;
|
|
145
|
+
grid-template-columns: auto 1fr;
|
|
146
|
+
gap: 8px;
|
|
147
|
+
padding: 24px;
|
|
148
|
+
border-top: 1px solid #f0f0f0;
|
|
149
|
+
background: #fff;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeviceKind, DeviceRow } from '../../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface DeviceTableProps {
|
|
5
|
+
activeKind: DeviceKind;
|
|
6
|
+
data: DeviceRow[];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
search: string;
|
|
9
|
+
typeFilter?: string;
|
|
10
|
+
typeOptions: {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
page: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
getText: (key: string) => string;
|
|
17
|
+
onSearchChange: (value: string) => void;
|
|
18
|
+
onTypeFilterChange: (value?: string) => void;
|
|
19
|
+
onPageChange: (page: number, pageSize: number) => void;
|
|
20
|
+
onAdd: () => void;
|
|
21
|
+
onSortChange: (orderedRows: DeviceRow[]) => void;
|
|
22
|
+
onRowClick: (record: DeviceRow) => void;
|
|
23
|
+
}
|
|
24
|
+
declare const DeviceTable: React.FC<DeviceTableProps>;
|
|
25
|
+
export default DeviceTable;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import { Input, Select, Table, Tag, Button, Icon } from '@pisell/materials';
|
|
9
|
+
import { PlusOutlined, SearchOutlined } from '@ant-design/icons';
|
|
10
|
+
import classNames from 'classnames';
|
|
11
|
+
import { ADD_BUTTON_KEY, SEARCH_PLACEHOLDER_KEY } from "../../constants";
|
|
12
|
+
import "./index.less";
|
|
13
|
+
var DeviceTable = function DeviceTable(_ref) {
|
|
14
|
+
var activeKind = _ref.activeKind,
|
|
15
|
+
data = _ref.data,
|
|
16
|
+
loading = _ref.loading,
|
|
17
|
+
search = _ref.search,
|
|
18
|
+
typeFilter = _ref.typeFilter,
|
|
19
|
+
typeOptions = _ref.typeOptions,
|
|
20
|
+
page = _ref.page,
|
|
21
|
+
pageSize = _ref.pageSize,
|
|
22
|
+
getText = _ref.getText,
|
|
23
|
+
onSearchChange = _ref.onSearchChange,
|
|
24
|
+
onTypeFilterChange = _ref.onTypeFilterChange,
|
|
25
|
+
onPageChange = _ref.onPageChange,
|
|
26
|
+
onAdd = _ref.onAdd,
|
|
27
|
+
onSortChange = _ref.onSortChange,
|
|
28
|
+
onRowClick = _ref.onRowClick;
|
|
29
|
+
var columns = useMemo(function () {
|
|
30
|
+
return [{
|
|
31
|
+
title: getText('pisell2.saas.device-planning.column.name'),
|
|
32
|
+
dataIndex: 'name',
|
|
33
|
+
key: 'name',
|
|
34
|
+
render: function render(name, record) {
|
|
35
|
+
var _record$_raw$type;
|
|
36
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
37
|
+
className: "saas-device-planning-device-table__device-name"
|
|
38
|
+
}, (_record$_raw$type = record._raw.type) !== null && _record$_raw$type !== void 0 && _record$_raw$type.icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
39
|
+
type: record._raw.type.icon
|
|
40
|
+
}) : null, name);
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
title: getText('pisell2.saas.device-planning.column.device-type'),
|
|
44
|
+
dataIndex: 'typeName',
|
|
45
|
+
key: 'typeName'
|
|
46
|
+
}, {
|
|
47
|
+
title: getText('pisell2.saas.device-planning.column.device-model'),
|
|
48
|
+
dataIndex: 'modelName',
|
|
49
|
+
key: 'modelName'
|
|
50
|
+
}, {
|
|
51
|
+
title: getText('pisell2.saas.device-planning.column.profile'),
|
|
52
|
+
dataIndex: 'profileName',
|
|
53
|
+
key: 'profileName'
|
|
54
|
+
}, {
|
|
55
|
+
title: getText('pisell2.saas.device-planning.column.link-status'),
|
|
56
|
+
dataIndex: 'link',
|
|
57
|
+
key: 'link',
|
|
58
|
+
width: 140,
|
|
59
|
+
render: function render(value) {
|
|
60
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
61
|
+
color: value === 'linked' ? 'green' : 'gold'
|
|
62
|
+
}, getText("pisell2.saas.device-planning.status.".concat(value)) || value);
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
title: getText('pisell2.saas.device-planning.column.online-status'),
|
|
66
|
+
dataIndex: 'status',
|
|
67
|
+
key: 'status',
|
|
68
|
+
width: 140,
|
|
69
|
+
render: function render(value) {
|
|
70
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
71
|
+
className: "saas-device-planning-device-table__online-status"
|
|
72
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
73
|
+
className: classNames('saas-device-planning-device-table__status-dot', {
|
|
74
|
+
'is-online': value === 'online'
|
|
75
|
+
})
|
|
76
|
+
}), getText("pisell2.saas.device-planning.status.".concat(value)) || value);
|
|
77
|
+
}
|
|
78
|
+
}];
|
|
79
|
+
}, [getText]);
|
|
80
|
+
var pagedData = useMemo(function () {
|
|
81
|
+
var start = (page - 1) * pageSize;
|
|
82
|
+
return data.slice(start, start + pageSize);
|
|
83
|
+
}, [data, page, pageSize]);
|
|
84
|
+
var handleSortChange = function handleSortChange(detail) {
|
|
85
|
+
var sortedPageData = (detail === null || detail === void 0 ? void 0 : detail.dataSource) || [];
|
|
86
|
+
var start = (page - 1) * pageSize;
|
|
87
|
+
var nextData = _toConsumableArray(data);
|
|
88
|
+
nextData.splice.apply(nextData, [start, sortedPageData.length].concat(_toConsumableArray(sortedPageData)));
|
|
89
|
+
onSortChange(nextData);
|
|
90
|
+
return false;
|
|
91
|
+
};
|
|
92
|
+
var emptyContent = /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: "saas-device-planning-device-table__empty"
|
|
94
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
95
|
+
type: "SettingOutlined"
|
|
96
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
97
|
+
className: "saas-device-planning-device-table__empty-title"
|
|
98
|
+
}, getText("pisell2.saas.device-planning.empty.".concat(activeKind, ".title"))), /*#__PURE__*/React.createElement("div", {
|
|
99
|
+
className: "saas-device-planning-device-table__empty-desc"
|
|
100
|
+
}, getText("pisell2.saas.device-planning.empty.".concat(activeKind, ".desc"))), /*#__PURE__*/React.createElement(Button, {
|
|
101
|
+
type: "primary",
|
|
102
|
+
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
|
103
|
+
className: "saas-device-planning-device-table__empty-button",
|
|
104
|
+
onClick: onAdd
|
|
105
|
+
}, getText(ADD_BUTTON_KEY[activeKind])));
|
|
106
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
107
|
+
className: "saas-device-planning-device-table"
|
|
108
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
109
|
+
className: "saas-device-planning-device-table__toolbar"
|
|
110
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
111
|
+
className: "saas-device-planning-device-table__filters"
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
113
|
+
allowClear: true,
|
|
114
|
+
prefix: /*#__PURE__*/React.createElement(SearchOutlined, null),
|
|
115
|
+
value: search,
|
|
116
|
+
placeholder: getText(SEARCH_PLACEHOLDER_KEY[activeKind]),
|
|
117
|
+
onChange: function onChange(event) {
|
|
118
|
+
return onSearchChange(event.target.value);
|
|
119
|
+
},
|
|
120
|
+
style: {
|
|
121
|
+
width: 260
|
|
122
|
+
}
|
|
123
|
+
}), /*#__PURE__*/React.createElement(Select, {
|
|
124
|
+
allowClear: true,
|
|
125
|
+
value: typeFilter,
|
|
126
|
+
placeholder: getText('pisell2.saas.device-planning.all-types'),
|
|
127
|
+
options: typeOptions,
|
|
128
|
+
onChange: function onChange(value) {
|
|
129
|
+
return onTypeFilterChange(value);
|
|
130
|
+
},
|
|
131
|
+
style: {
|
|
132
|
+
width: 200
|
|
133
|
+
}
|
|
134
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
135
|
+
type: "primary",
|
|
136
|
+
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
|
137
|
+
className: "saas-device-planning-device-table__add-button",
|
|
138
|
+
onClick: onAdd
|
|
139
|
+
}, getText(ADD_BUTTON_KEY[activeKind]))), /*#__PURE__*/React.createElement("div", {
|
|
140
|
+
className: "saas-device-planning-device-table__table"
|
|
141
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
142
|
+
rowKey: "id",
|
|
143
|
+
dataSource: pagedData,
|
|
144
|
+
columns: columns,
|
|
145
|
+
rowClassName: "saas-device-planning-device-table__row",
|
|
146
|
+
loading: loading,
|
|
147
|
+
dragSort: data.length > 1,
|
|
148
|
+
virtual: false,
|
|
149
|
+
onSortChange: handleSortChange,
|
|
150
|
+
onRow: function onRow(record) {
|
|
151
|
+
return {
|
|
152
|
+
onClick: function onClick() {
|
|
153
|
+
return onRowClick(record);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
},
|
|
157
|
+
pagination: {
|
|
158
|
+
localPagination: false,
|
|
159
|
+
current: page,
|
|
160
|
+
pageSize: pageSize,
|
|
161
|
+
total: data.length,
|
|
162
|
+
showSizeChanger: true,
|
|
163
|
+
onChange: function onChange(value) {
|
|
164
|
+
onPageChange(value.page || 1, value.size || pageSize);
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
showTitle: false,
|
|
168
|
+
showSubTitle: false,
|
|
169
|
+
locale: {
|
|
170
|
+
emptyText: emptyContent
|
|
171
|
+
},
|
|
172
|
+
bordered: false
|
|
173
|
+
})));
|
|
174
|
+
};
|
|
175
|
+
export default DeviceTable;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
.saas-device-planning-device-table {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
min-height: 0;
|
|
6
|
+
|
|
7
|
+
&__toolbar {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
margin: 12px 0 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__filters {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__add-button,
|
|
21
|
+
&__empty-button {
|
|
22
|
+
position: relative;
|
|
23
|
+
z-index: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__table {
|
|
27
|
+
flex: 1;
|
|
28
|
+
min-height: 0;
|
|
29
|
+
overflow: auto;
|
|
30
|
+
background: #fff;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__device-name {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 8px;
|
|
37
|
+
|
|
38
|
+
.anticon {
|
|
39
|
+
color: #1677ff;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__online-status {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: 6px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__status-dot {
|
|
50
|
+
width: 6px;
|
|
51
|
+
height: 6px;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
background: rgba(0, 0, 0, 0.25);
|
|
54
|
+
|
|
55
|
+
&.is-online {
|
|
56
|
+
background: #16a34a;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__empty {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
min-height: 220px;
|
|
66
|
+
padding: 32px 16px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
color: rgba(0, 0, 0, 0.45);
|
|
69
|
+
|
|
70
|
+
> .anticon {
|
|
71
|
+
margin-bottom: 12px;
|
|
72
|
+
font-size: 36px;
|
|
73
|
+
color: rgba(0, 0, 0, 0.2);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__empty-title {
|
|
78
|
+
margin-bottom: 4px;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
color: rgba(0, 0, 0, 0.72);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__empty-desc {
|
|
85
|
+
margin-bottom: 12px;
|
|
86
|
+
font-size: 13px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:global(.ant-table-wrapper),
|
|
90
|
+
:global(.ant-spin-nested-loading),
|
|
91
|
+
:global(.ant-spin-container) {
|
|
92
|
+
height: 100%;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.saas-device-planning-device-table__row {
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeviceModelItem, DeviceRow, I18nText, UpdateDevicePayload, WorkAreaItem } from '../../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface EditDeviceModalProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
record?: DeviceRow;
|
|
7
|
+
workAreas: WorkAreaItem[];
|
|
8
|
+
models: DeviceModelItem[];
|
|
9
|
+
submitting: boolean;
|
|
10
|
+
getText: (key: string) => string;
|
|
11
|
+
translation: (val?: I18nText) => string;
|
|
12
|
+
onCancel: () => void;
|
|
13
|
+
onSubmit: (id: number, payload: UpdateDevicePayload) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const EditDeviceModal: React.FC<EditDeviceModalProps>;
|
|
16
|
+
export default EditDeviceModal;
|