@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,131 @@
|
|
|
1
|
+
.create-profile-modal {
|
|
2
|
+
&__content {
|
|
3
|
+
padding: 24px 0;
|
|
4
|
+
border-radius: 12px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&__header {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
margin-bottom: 24px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__title {
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
line-height: 26px;
|
|
18
|
+
color: rgba(0, 0, 0, 0.88);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__subtitle {
|
|
22
|
+
margin-top: 4px;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
line-height: 22px;
|
|
25
|
+
color: rgba(0, 0, 0, 0.45);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__close {
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
color: rgba(0, 0, 0, 0.45);
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
padding: 4px;
|
|
33
|
+
line-height: 1;
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
color: rgba(0, 0, 0, 0.88);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__body {
|
|
41
|
+
min-height: 240px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__row {
|
|
45
|
+
display: flex;
|
|
46
|
+
gap: 16px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__col {
|
|
50
|
+
flex: 1;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__section-title {
|
|
55
|
+
padding: 16px 0 8px 0;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
color: rgba(0, 0, 0, 0.65);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__empty {
|
|
61
|
+
border: 1px dashed #d9d9d9;
|
|
62
|
+
border-radius: 8px;
|
|
63
|
+
padding: 40px 16px;
|
|
64
|
+
text-align: center;
|
|
65
|
+
color: rgba(0, 0, 0, 0.45);
|
|
66
|
+
|
|
67
|
+
.anticon {
|
|
68
|
+
font-size: 32px;
|
|
69
|
+
margin-bottom: 12px;
|
|
70
|
+
color: rgba(0, 0, 0, 0.25);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__templates {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: 12px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__template-card {
|
|
81
|
+
display: flex;
|
|
82
|
+
gap: 16px;
|
|
83
|
+
align-items: flex-start;
|
|
84
|
+
padding: 16px;
|
|
85
|
+
border: 1px solid #d0d5dd;
|
|
86
|
+
border-radius: 8px;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
transition: all 0.18s;
|
|
89
|
+
|
|
90
|
+
&:hover {
|
|
91
|
+
border-color: #91caff;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.is-selected {
|
|
95
|
+
border-color: #1677ff;
|
|
96
|
+
background: #f0f7ff;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__template-icon {
|
|
101
|
+
.anticon {
|
|
102
|
+
font-size: 24px;
|
|
103
|
+
color: rgba(0, 0, 0, 0.65);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&__template-content {
|
|
108
|
+
flex: 1;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&__template-name {
|
|
113
|
+
font-size: 15px;
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
color: rgba(0, 0, 0, 0.88);
|
|
116
|
+
margin-bottom: 4px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&__template-desc {
|
|
120
|
+
font-size: 13px;
|
|
121
|
+
color: rgba(0, 0, 0, 0.55);
|
|
122
|
+
line-height: 20px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&__footer {
|
|
126
|
+
display: flex;
|
|
127
|
+
justify-content: space-between;
|
|
128
|
+
align-items: center;
|
|
129
|
+
margin-top: 24px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { I18nText, LinkedDeviceItem } from '../../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface DeleteProfileModalProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
submitting: boolean;
|
|
8
|
+
profileName: string;
|
|
9
|
+
linkedDevices: LinkedDeviceItem[];
|
|
10
|
+
translation: (val: I18nText) => string;
|
|
11
|
+
getText: (key: string) => string;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onConfirm: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const DeleteProfileModal: React.FC<DeleteProfileModalProps>;
|
|
16
|
+
export default DeleteProfileModal;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/saasDevice/deviceProfile/components/DeleteProfileModal/index.tsx
|
|
30
|
+
var DeleteProfileModal_exports = {};
|
|
31
|
+
__export(DeleteProfileModal_exports, {
|
|
32
|
+
default: () => DeleteProfileModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DeleteProfileModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
|
+
var DeleteProfileModal = ({
|
|
41
|
+
open,
|
|
42
|
+
loading,
|
|
43
|
+
submitting,
|
|
44
|
+
profileName,
|
|
45
|
+
linkedDevices,
|
|
46
|
+
translation,
|
|
47
|
+
getText,
|
|
48
|
+
onClose,
|
|
49
|
+
onConfirm
|
|
50
|
+
}) => {
|
|
51
|
+
const hasLinked = linkedDevices.length > 0;
|
|
52
|
+
const renderConfirmBody = () => {
|
|
53
|
+
const tpl = getText("pisell2.saas.device-profile.delete.confirm.content");
|
|
54
|
+
const [before, after] = tpl.split("{ProfileName}");
|
|
55
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__body" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__confirm-text" }, before, /* @__PURE__ */ import_react.default.createElement("strong", null, profileName), after));
|
|
56
|
+
};
|
|
57
|
+
const renderLinkedBody = () => {
|
|
58
|
+
const tpl = getText("pisell2.saas.device-profile.delete.linked.content");
|
|
59
|
+
const text = tpl.replace("{ProfileName}", "__PROFILE__").replace("{N}", String(linkedDevices.length));
|
|
60
|
+
const [before, after] = text.split("__PROFILE__");
|
|
61
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__body" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__warning" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__warning-title" }, /* @__PURE__ */ import_react.default.createElement(import_icons.ExclamationCircleFilled, { className: "delete-profile-modal__warning-icon" }), getText("pisell2.saas.device-profile.delete.linked.title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__warning-content" }, before, /* @__PURE__ */ import_react.default.createElement("strong", null, profileName), after)), /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__devices-label" }, getText("pisell2.saas.device-profile.delete.linked.devicesLabel")), /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__devices-list" }, linkedDevices.map((d) => {
|
|
62
|
+
var _a, _b;
|
|
63
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { key: d.id, className: "delete-profile-modal__device-row" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__device-name" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "DesktopOutlined" }), /* @__PURE__ */ import_react.default.createElement("span", null, translation(d.name))), d.workarea ? /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { key: (_a = d == null ? void 0 : d.workarea) == null ? void 0 : _a.id }, translation((_b = d.workarea) == null ? void 0 : _b.name)) : null);
|
|
64
|
+
})));
|
|
65
|
+
};
|
|
66
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
67
|
+
import_materials.PisellModal,
|
|
68
|
+
{
|
|
69
|
+
open,
|
|
70
|
+
onCancel: onClose,
|
|
71
|
+
headerDivider: false,
|
|
72
|
+
footerDivider: false,
|
|
73
|
+
title: getText("pisell2.saas.device-profile.delete.title"),
|
|
74
|
+
okVisible: !hasLinked,
|
|
75
|
+
cancelButtonProps: {
|
|
76
|
+
disabled: submitting
|
|
77
|
+
},
|
|
78
|
+
okButtonProps: {
|
|
79
|
+
danger: true,
|
|
80
|
+
loading: submitting,
|
|
81
|
+
onClick: onConfirm
|
|
82
|
+
},
|
|
83
|
+
cancelText: getText(
|
|
84
|
+
hasLinked ? "pisell2.saas.device-profile.delete.button.close" : "pisell2.saas.device-profile.delete.button.cancel"
|
|
85
|
+
),
|
|
86
|
+
okText: getText("pisell2.saas.device-profile.delete.button.delete"),
|
|
87
|
+
closable: true,
|
|
88
|
+
width: 520,
|
|
89
|
+
destroyOnClose: true,
|
|
90
|
+
maskClosable: false,
|
|
91
|
+
className: "delete-profile-modal"
|
|
92
|
+
},
|
|
93
|
+
/* @__PURE__ */ import_react.default.createElement("div", null, loading ? /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-profile-modal__loading" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, null)) : hasLinked ? renderLinkedBody() : renderConfirmBody())
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
var DeleteProfileModal_default = DeleteProfileModal;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
.delete-profile-modal {
|
|
2
|
+
&__header {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
margin-bottom: 16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&__title {
|
|
10
|
+
font-size: 18px;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
line-height: 26px;
|
|
13
|
+
color: rgba(0, 0, 0, 0.88);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__close {
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
color: rgba(0, 0, 0, 0.45);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
padding: 4px;
|
|
21
|
+
line-height: 1;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
color: rgba(0, 0, 0, 0.88);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__body {
|
|
29
|
+
min-height: 80px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__confirm-text {
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
line-height: 22px;
|
|
35
|
+
color: rgba(0, 0, 0, 0.65);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__warning {
|
|
39
|
+
background: #fff7e6;
|
|
40
|
+
border: 1px solid #ffe58f;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
padding: 12px 16px;
|
|
43
|
+
margin-bottom: 16px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__warning-title {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
color: #d48806;
|
|
52
|
+
margin-bottom: 4px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__warning-icon {
|
|
56
|
+
margin-right: 8px;
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__warning-content {
|
|
61
|
+
font-size: 13px;
|
|
62
|
+
line-height: 20px;
|
|
63
|
+
color: rgba(0, 0, 0, 0.65);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__devices-label {
|
|
67
|
+
font-size: 13px;
|
|
68
|
+
color: rgba(0, 0, 0, 0.65);
|
|
69
|
+
margin-bottom: 8px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__devices-list {
|
|
73
|
+
max-height: 280px;
|
|
74
|
+
overflow-y: auto;
|
|
75
|
+
border: 1px solid #f0f0f0;
|
|
76
|
+
border-radius: 8px;
|
|
77
|
+
padding: 4px 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__device-row {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
padding: 8px 12px;
|
|
85
|
+
|
|
86
|
+
& + & {
|
|
87
|
+
border-top: 1px solid #f5f5f5;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&__device-name {
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
gap: 8px;
|
|
95
|
+
color: rgba(0, 0, 0, 0.85);
|
|
96
|
+
font-size: 13px;
|
|
97
|
+
|
|
98
|
+
.anticon {
|
|
99
|
+
color: rgba(0, 0, 0, 0.45);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&__loading {
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
min-height: 120px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProfileTemplateFormValues, ProfileTemplateItem, DeviceModelItem, DeviceTypeItem } from '../../types';
|
|
3
|
+
export interface BasicFormHandle {
|
|
4
|
+
getValues: () => Promise<ProfileTemplateFormValues>;
|
|
5
|
+
resetDirty: () => void;
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
mode: 'create' | 'edit';
|
|
9
|
+
deviceType?: DeviceTypeItem;
|
|
10
|
+
deviceModels?: DeviceModelItem[];
|
|
11
|
+
initialValue?: ProfileTemplateItem;
|
|
12
|
+
onDirty?: () => void;
|
|
13
|
+
open?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const BasicForm: React.ForwardRefExoticComponent<Props & React.RefAttributes<BasicFormHandle>>;
|
|
16
|
+
export default BasicForm;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/saasDevice/deviceProfile/components/ProfileSetting/BasicForm.tsx
|
|
30
|
+
var BasicForm_exports = {};
|
|
31
|
+
__export(BasicForm_exports, {
|
|
32
|
+
default: () => BasicForm_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(BasicForm_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_antd = require("antd");
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_types = require("../../types");
|
|
40
|
+
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
41
|
+
var getText = import_utils.locales.getText;
|
|
42
|
+
var EMPTY_I18N = {
|
|
43
|
+
original: "",
|
|
44
|
+
"zh-CN": "",
|
|
45
|
+
"zh-HK": "",
|
|
46
|
+
en: "",
|
|
47
|
+
pt: "",
|
|
48
|
+
ja: ""
|
|
49
|
+
};
|
|
50
|
+
var BasicForm = (0, import_react.forwardRef)(
|
|
51
|
+
({ mode, deviceType, deviceModels, initialValue, onDirty, open = true }, ref) => {
|
|
52
|
+
var _a;
|
|
53
|
+
const context = (0, import_useEngineContext.default)();
|
|
54
|
+
const [form] = import_antd.Form.useForm();
|
|
55
|
+
const { translation } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
56
|
+
const initialValues = (0, import_react.useMemo)(() => {
|
|
57
|
+
var _a2;
|
|
58
|
+
if (mode === "edit" && initialValue) {
|
|
59
|
+
return {
|
|
60
|
+
name: typeof (initialValue == null ? void 0 : initialValue.name) === "string" ? { ...EMPTY_I18N, original: initialValue == null ? void 0 : initialValue.name } : initialValue == null ? void 0 : initialValue.name,
|
|
61
|
+
type_code: (deviceType == null ? void 0 : deviceType.code) || "",
|
|
62
|
+
model_code: (initialValue == null ? void 0 : initialValue.modelCode) || (initialValue == null ? void 0 : initialValue.model_code),
|
|
63
|
+
description: ((_a2 = initialValue == null ? void 0 : initialValue._raw) == null ? void 0 : _a2.description) ?? { ...EMPTY_I18N },
|
|
64
|
+
status: initialValue == null ? void 0 : initialValue.status
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
name: { ...EMPTY_I18N },
|
|
69
|
+
type_code: (deviceType == null ? void 0 : deviceType.code) || "",
|
|
70
|
+
model_code: "",
|
|
71
|
+
description: { ...EMPTY_I18N },
|
|
72
|
+
status: "active"
|
|
73
|
+
};
|
|
74
|
+
}, [mode, initialValue, deviceType == null ? void 0 : deviceType.code]);
|
|
75
|
+
(0, import_react.useEffect)(() => {
|
|
76
|
+
if (!open) return;
|
|
77
|
+
form.resetFields();
|
|
78
|
+
form.setFieldsValue(initialValues);
|
|
79
|
+
}, [open, initialValues, form]);
|
|
80
|
+
(0, import_react.useImperativeHandle)(
|
|
81
|
+
ref,
|
|
82
|
+
() => ({
|
|
83
|
+
getValues: () => form.validateFields(),
|
|
84
|
+
resetDirty: () => {
|
|
85
|
+
}
|
|
86
|
+
}),
|
|
87
|
+
[form]
|
|
88
|
+
);
|
|
89
|
+
const typeOptions = (0, import_react.useMemo)(
|
|
90
|
+
() => [
|
|
91
|
+
{
|
|
92
|
+
label: translation((deviceType == null ? void 0 : deviceType.name) || "") || (deviceType == null ? void 0 : deviceType.code) || "",
|
|
93
|
+
value: (deviceType == null ? void 0 : deviceType.code) || ""
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
[deviceType == null ? void 0 : deviceType.code, deviceType == null ? void 0 : deviceType.name]
|
|
97
|
+
);
|
|
98
|
+
const modelOptions = (0, import_react.useMemo)(
|
|
99
|
+
() => deviceModels == null ? void 0 : deviceModels.map((m) => ({
|
|
100
|
+
label: translation(m.name) || m.code,
|
|
101
|
+
value: m.code
|
|
102
|
+
})),
|
|
103
|
+
[deviceModels]
|
|
104
|
+
);
|
|
105
|
+
const statusOptions = (0, import_react.useMemo)(
|
|
106
|
+
() => import_types.DEVICE_STATUSES.map((s) => ({
|
|
107
|
+
label: getText(s.labelKey),
|
|
108
|
+
value: s.value
|
|
109
|
+
})),
|
|
110
|
+
[]
|
|
111
|
+
);
|
|
112
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
113
|
+
import_antd.Form,
|
|
114
|
+
{
|
|
115
|
+
form,
|
|
116
|
+
layout: "vertical",
|
|
117
|
+
onValuesChange: () => onDirty == null ? void 0 : onDirty(),
|
|
118
|
+
preserve: false,
|
|
119
|
+
initialValues
|
|
120
|
+
},
|
|
121
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
122
|
+
import_antd.Form.Item,
|
|
123
|
+
{
|
|
124
|
+
name: "name",
|
|
125
|
+
label: getText("pisell2.saas.device-profile.setting.field.name"),
|
|
126
|
+
required: true,
|
|
127
|
+
rules: [
|
|
128
|
+
{
|
|
129
|
+
validator: (0, import_types.validateI18nRequired)(
|
|
130
|
+
getText(
|
|
131
|
+
"pisell2.saas.device-profile.setting.field.nameRequired"
|
|
132
|
+
)
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
138
|
+
import_materials.BaseTranslation,
|
|
139
|
+
{
|
|
140
|
+
renderMode: "edit",
|
|
141
|
+
placeholder: getText(
|
|
142
|
+
"pisell2.saas.device-profile.setting.field.namePlaceholder"
|
|
143
|
+
)
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
148
|
+
import_antd.Form.Item,
|
|
149
|
+
{
|
|
150
|
+
name: "type_code",
|
|
151
|
+
label: getText(
|
|
152
|
+
"pisell2.saas.device-profile.setting.field.deviceType"
|
|
153
|
+
),
|
|
154
|
+
required: true
|
|
155
|
+
},
|
|
156
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Select, { disabled: true, options: typeOptions })
|
|
157
|
+
),
|
|
158
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
159
|
+
import_antd.Form.Item,
|
|
160
|
+
{
|
|
161
|
+
name: "model_code",
|
|
162
|
+
label: getText("pisell2.saas.device-profile.setting.field.model"),
|
|
163
|
+
required: true,
|
|
164
|
+
rules: [
|
|
165
|
+
{
|
|
166
|
+
required: true,
|
|
167
|
+
message: getText(
|
|
168
|
+
"pisell2.saas.device-profile.setting.field.modelRequired"
|
|
169
|
+
)
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
174
|
+
import_antd.Select,
|
|
175
|
+
{
|
|
176
|
+
disabled: mode === "edit",
|
|
177
|
+
placeholder: getText(
|
|
178
|
+
"pisell2.saas.device-profile.setting.field.modelPlaceholder"
|
|
179
|
+
),
|
|
180
|
+
options: modelOptions
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
),
|
|
184
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
185
|
+
import_antd.Form.Item,
|
|
186
|
+
{
|
|
187
|
+
name: "status",
|
|
188
|
+
label: getText("pisell2.saas.device-profile.setting.field.status"),
|
|
189
|
+
required: true
|
|
190
|
+
},
|
|
191
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Select, { options: statusOptions })
|
|
192
|
+
),
|
|
193
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
194
|
+
import_antd.Form.Item,
|
|
195
|
+
{
|
|
196
|
+
name: "description",
|
|
197
|
+
label: getText(
|
|
198
|
+
"pisell2.saas.device-profile.setting.field.description"
|
|
199
|
+
)
|
|
200
|
+
},
|
|
201
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
202
|
+
import_materials.BaseTranslation,
|
|
203
|
+
{
|
|
204
|
+
renderMode: "edit",
|
|
205
|
+
type: "textarea",
|
|
206
|
+
placeholder: getText(
|
|
207
|
+
"pisell2.saas.device-profile.setting.field.descriptionPlaceholder"
|
|
208
|
+
)
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
)
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
BasicForm.displayName = "BasicForm";
|
|
216
|
+
var BasicForm_default = BasicForm;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import { DeviceProfileScene, DeviceTypeItem, DeviceModelItem, ProfileTemplateItem } from '../../types';
|
|
4
|
+
interface ProfileSettingState {
|
|
5
|
+
record: ProfileTemplateItem;
|
|
6
|
+
deviceModel?: DeviceModelItem;
|
|
7
|
+
deviceType?: DeviceTypeItem;
|
|
8
|
+
scene?: DeviceProfileScene;
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const ProfileSetting: React.FC<ProfileSettingState>;
|
|
12
|
+
export default ProfileSetting;
|