@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,186 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/saasDevice/devicePlanning/components/EditDeviceModal/index.tsx
|
|
30
|
+
var EditDeviceModal_exports = {};
|
|
31
|
+
__export(EditDeviceModal_exports, {
|
|
32
|
+
default: () => EditDeviceModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(EditDeviceModal_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_types = require("../../types");
|
|
40
|
+
var import_index = require("./index.less");
|
|
41
|
+
var isProfileRequired = (model) => {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
return Boolean((_b = (_a = model == null ? void 0 : model.data) == null ? void 0 : _a.profile_structure) == null ? void 0 : _b.required);
|
|
44
|
+
};
|
|
45
|
+
var EditDeviceModal = ({
|
|
46
|
+
open,
|
|
47
|
+
record,
|
|
48
|
+
workAreas,
|
|
49
|
+
models,
|
|
50
|
+
submitting,
|
|
51
|
+
getText,
|
|
52
|
+
translation,
|
|
53
|
+
onCancel,
|
|
54
|
+
onSubmit
|
|
55
|
+
}) => {
|
|
56
|
+
const [form] = import_antd.Form.useForm();
|
|
57
|
+
const currentModel = (0, import_react.useMemo)(() => {
|
|
58
|
+
if (!record) return void 0;
|
|
59
|
+
return models.find((item) => item.code === record._raw.model_code) || record._raw.model;
|
|
60
|
+
}, [models, record]);
|
|
61
|
+
const profileRequired = isProfileRequired(currentModel);
|
|
62
|
+
const profiles = (currentModel == null ? void 0 : currentModel.active_profiles) || [];
|
|
63
|
+
const online = (record == null ? void 0 : record.status) === "online";
|
|
64
|
+
(0, import_react.useEffect)(() => {
|
|
65
|
+
if (!open || !record) return;
|
|
66
|
+
form.setFieldsValue({
|
|
67
|
+
workarea_id: record._raw.workarea_id,
|
|
68
|
+
name: (0, import_types.toLangDict)(record._raw.name),
|
|
69
|
+
profile_id: record._raw.profile_id || void 0
|
|
70
|
+
});
|
|
71
|
+
}, [form, open, record]);
|
|
72
|
+
const handleOk = async () => {
|
|
73
|
+
if (!record) return;
|
|
74
|
+
const values = await form.validateFields();
|
|
75
|
+
onSubmit(record.id, {
|
|
76
|
+
workarea_id: values.workarea_id,
|
|
77
|
+
name: values.name,
|
|
78
|
+
profile_id: values.profile_id || null
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
82
|
+
import_materials.PisellModal,
|
|
83
|
+
{
|
|
84
|
+
open,
|
|
85
|
+
title: getText("pisell2.saas.device-planning.edit.title"),
|
|
86
|
+
headerDivider: false,
|
|
87
|
+
onCancel,
|
|
88
|
+
okText: getText("pisell2.saas.device-planning.detail.save"),
|
|
89
|
+
cancelText: getText("pisell2.saas.device-planning.detail.cancel"),
|
|
90
|
+
okButtonProps: { loading: submitting, onClick: handleOk },
|
|
91
|
+
cancelButtonProps: { disabled: submitting },
|
|
92
|
+
destroyOnClose: true,
|
|
93
|
+
maskClosable: false,
|
|
94
|
+
width: 520,
|
|
95
|
+
className: "edit-device-modal"
|
|
96
|
+
},
|
|
97
|
+
record ? /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical", preserve: false }, online ? /* @__PURE__ */ import_react.default.createElement(
|
|
98
|
+
import_antd.Alert,
|
|
99
|
+
{
|
|
100
|
+
type: "warning",
|
|
101
|
+
showIcon: true,
|
|
102
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ExclamationCircleFilled, null),
|
|
103
|
+
message: getText(
|
|
104
|
+
"pisell2.saas.device-planning.edit.online-title"
|
|
105
|
+
),
|
|
106
|
+
description: getText(
|
|
107
|
+
"pisell2.saas.device-planning.edit.online-desc"
|
|
108
|
+
),
|
|
109
|
+
style: { marginBottom: 16 }
|
|
110
|
+
}
|
|
111
|
+
) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "edit-device-modal__row" }, /* @__PURE__ */ import_react.default.createElement(
|
|
112
|
+
import_antd.Form.Item,
|
|
113
|
+
{
|
|
114
|
+
label: getText("pisell2.saas.device-planning.detail.type"),
|
|
115
|
+
className: "edit-device-modal__col"
|
|
116
|
+
},
|
|
117
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Input, { value: record.typeName, disabled: true })
|
|
118
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
119
|
+
import_antd.Form.Item,
|
|
120
|
+
{
|
|
121
|
+
label: getText("pisell2.saas.device-planning.detail.model"),
|
|
122
|
+
className: "edit-device-modal__col"
|
|
123
|
+
},
|
|
124
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Input, { value: record.modelName, disabled: true })
|
|
125
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
126
|
+
import_antd.Form.Item,
|
|
127
|
+
{
|
|
128
|
+
name: "workarea_id",
|
|
129
|
+
label: getText("pisell2.saas.device-planning.edit.work-area"),
|
|
130
|
+
required: true,
|
|
131
|
+
rules: [
|
|
132
|
+
{
|
|
133
|
+
required: true,
|
|
134
|
+
message: getText(
|
|
135
|
+
"pisell2.saas.device-planning.edit.work-area-required"
|
|
136
|
+
)
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
141
|
+
import_materials.Select,
|
|
142
|
+
{
|
|
143
|
+
options: workAreas.map((item) => ({
|
|
144
|
+
label: translation(item.name),
|
|
145
|
+
value: item.id
|
|
146
|
+
}))
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
150
|
+
import_antd.Form.Item,
|
|
151
|
+
{
|
|
152
|
+
name: "name",
|
|
153
|
+
label: getText("pisell2.saas.device-planning.detail.name"),
|
|
154
|
+
required: true,
|
|
155
|
+
rules: [
|
|
156
|
+
{
|
|
157
|
+
validator: (0, import_types.validateI18nRequired)(
|
|
158
|
+
getText("pisell2.saas.device-planning.add.device-name-required")
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials.BaseTranslation, { renderMode: "edit" })
|
|
164
|
+
), profileRequired || profiles.length > 0 ? /* @__PURE__ */ import_react.default.createElement(
|
|
165
|
+
import_antd.Form.Item,
|
|
166
|
+
{
|
|
167
|
+
name: "profile_id",
|
|
168
|
+
label: getText("pisell2.saas.device-planning.detail.profile"),
|
|
169
|
+
help: profileRequired && profiles.length === 0 ? getText(
|
|
170
|
+
"pisell2.saas.device-planning.add.create-profile-first"
|
|
171
|
+
) : void 0
|
|
172
|
+
},
|
|
173
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
174
|
+
import_materials.Select,
|
|
175
|
+
{
|
|
176
|
+
disabled: profiles.length === 0,
|
|
177
|
+
options: profiles.map((profile) => ({
|
|
178
|
+
label: translation(profile.name) || String(profile.id),
|
|
179
|
+
value: profile.id
|
|
180
|
+
}))
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
) : null) : null
|
|
184
|
+
);
|
|
185
|
+
};
|
|
186
|
+
var EditDeviceModal_default = EditDeviceModal;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DragEndEvent } from '@dnd-kit/core';
|
|
3
|
+
import type { WorkAreaItem } from '../../types';
|
|
4
|
+
import './index.less';
|
|
5
|
+
interface WorkAreaListProps {
|
|
6
|
+
loading: boolean;
|
|
7
|
+
workAreas: WorkAreaItem[];
|
|
8
|
+
selectedWorkAreaId?: number;
|
|
9
|
+
getText: (key: string) => string;
|
|
10
|
+
translation: (val: any) => string;
|
|
11
|
+
onCreate: () => void;
|
|
12
|
+
onSelect: (id: number) => void;
|
|
13
|
+
onEdit: (item: WorkAreaItem) => void;
|
|
14
|
+
onDelete: (item: WorkAreaItem) => void;
|
|
15
|
+
onSortEnd: (event: DragEndEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const WorkAreaList: React.FC<WorkAreaListProps>;
|
|
18
|
+
export default WorkAreaList;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/saasDevice/devicePlanning/components/WorkAreaList/index.tsx
|
|
30
|
+
var WorkAreaList_exports = {};
|
|
31
|
+
__export(WorkAreaList_exports, {
|
|
32
|
+
default: () => WorkAreaList_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WorkAreaList_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_core = require("@dnd-kit/core");
|
|
40
|
+
var import_sortable = require("@dnd-kit/sortable");
|
|
41
|
+
var import_utilities = require("@dnd-kit/utilities");
|
|
42
|
+
var import_classnames = __toESM(require("classnames"));
|
|
43
|
+
var import_index = require("./index.less");
|
|
44
|
+
var SortableWorkAreaItem = ({
|
|
45
|
+
item,
|
|
46
|
+
selected,
|
|
47
|
+
title,
|
|
48
|
+
getText,
|
|
49
|
+
onSelect,
|
|
50
|
+
onEdit,
|
|
51
|
+
onDelete
|
|
52
|
+
}) => {
|
|
53
|
+
const {
|
|
54
|
+
attributes,
|
|
55
|
+
isDragging,
|
|
56
|
+
listeners,
|
|
57
|
+
setNodeRef,
|
|
58
|
+
transform,
|
|
59
|
+
transition
|
|
60
|
+
} = (0, import_sortable.useSortable)({ id: item.id });
|
|
61
|
+
const menuItems = [
|
|
62
|
+
{
|
|
63
|
+
key: "edit",
|
|
64
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.EditOutlined, null),
|
|
65
|
+
label: getText("pisell2.saas.device-planning.action.edit"),
|
|
66
|
+
onClick: ({ domEvent }) => {
|
|
67
|
+
domEvent.stopPropagation();
|
|
68
|
+
onEdit(item);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: "delete",
|
|
73
|
+
danger: true,
|
|
74
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.DeleteOutlined, null),
|
|
75
|
+
label: getText("pisell2.saas.device-planning.action.delete"),
|
|
76
|
+
onClick: ({ domEvent }) => {
|
|
77
|
+
domEvent.stopPropagation();
|
|
78
|
+
onDelete(item);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
ref: setNodeRef,
|
|
86
|
+
className: (0, import_classnames.default)("saas-device-planning-workarea-item", {
|
|
87
|
+
"is-selected": selected,
|
|
88
|
+
"is-dragging": isDragging
|
|
89
|
+
}),
|
|
90
|
+
style: {
|
|
91
|
+
transform: import_utilities.CSS.Transform.toString(transform),
|
|
92
|
+
transition
|
|
93
|
+
},
|
|
94
|
+
onClick: () => onSelect(item.id)
|
|
95
|
+
},
|
|
96
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
97
|
+
"span",
|
|
98
|
+
{
|
|
99
|
+
className: "saas-device-planning-workarea-item__drag",
|
|
100
|
+
...attributes,
|
|
101
|
+
...listeners
|
|
102
|
+
},
|
|
103
|
+
/* @__PURE__ */ import_react.default.createElement(import_icons.HolderOutlined, null)
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "saas-device-planning-workarea-item__name" }, title),
|
|
106
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
107
|
+
import_antd.Dropdown,
|
|
108
|
+
{
|
|
109
|
+
trigger: ["click"],
|
|
110
|
+
menu: { items: menuItems },
|
|
111
|
+
placement: "bottomRight"
|
|
112
|
+
},
|
|
113
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
114
|
+
import_materials.Button,
|
|
115
|
+
{
|
|
116
|
+
type: "text",
|
|
117
|
+
className: "saas-device-planning-workarea-item__more",
|
|
118
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MoreOutlined, null),
|
|
119
|
+
onClick: (event) => event.stopPropagation()
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
)
|
|
123
|
+
);
|
|
124
|
+
};
|
|
125
|
+
var WorkAreaList = ({
|
|
126
|
+
loading,
|
|
127
|
+
workAreas,
|
|
128
|
+
selectedWorkAreaId,
|
|
129
|
+
getText,
|
|
130
|
+
translation,
|
|
131
|
+
onCreate,
|
|
132
|
+
onSelect,
|
|
133
|
+
onEdit,
|
|
134
|
+
onDelete,
|
|
135
|
+
onSortEnd
|
|
136
|
+
}) => {
|
|
137
|
+
const sensors = (0, import_core.useSensors)(
|
|
138
|
+
(0, import_core.useSensor)(import_core.PointerSensor, {
|
|
139
|
+
activationConstraint: { distance: 8 }
|
|
140
|
+
}),
|
|
141
|
+
(0, import_core.useSensor)(import_core.KeyboardSensor, {
|
|
142
|
+
coordinateGetter: import_sortable.sortableKeyboardCoordinates
|
|
143
|
+
})
|
|
144
|
+
);
|
|
145
|
+
return /* @__PURE__ */ import_react.default.createElement("aside", { className: "saas-device-planning-sider" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-planning-sider__header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-planning-sider__title" }, getText("pisell2.saas.device-planning.work-areas")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "primary", size: "middle", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.PlusOutlined, null), onClick: onCreate }, getText("pisell2.saas.device-planning.create"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-planning-sider__list" }, loading && !workAreas.length ? /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-device-planning-sider__loading" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, null)) : workAreas.length ? /* @__PURE__ */ import_react.default.createElement(
|
|
146
|
+
import_core.DndContext,
|
|
147
|
+
{
|
|
148
|
+
sensors,
|
|
149
|
+
collisionDetection: import_core.closestCenter,
|
|
150
|
+
onDragEnd: onSortEnd
|
|
151
|
+
},
|
|
152
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
153
|
+
import_sortable.SortableContext,
|
|
154
|
+
{
|
|
155
|
+
items: workAreas.map((item) => item.id),
|
|
156
|
+
strategy: import_sortable.verticalListSortingStrategy
|
|
157
|
+
},
|
|
158
|
+
workAreas.map((item) => /* @__PURE__ */ import_react.default.createElement(
|
|
159
|
+
SortableWorkAreaItem,
|
|
160
|
+
{
|
|
161
|
+
key: item.id,
|
|
162
|
+
item,
|
|
163
|
+
title: translation(item.name),
|
|
164
|
+
selected: item.id === selectedWorkAreaId,
|
|
165
|
+
getText,
|
|
166
|
+
onSelect,
|
|
167
|
+
onEdit,
|
|
168
|
+
onDelete
|
|
169
|
+
}
|
|
170
|
+
))
|
|
171
|
+
)
|
|
172
|
+
) : /* @__PURE__ */ import_react.default.createElement(import_antd.Empty, { image: import_antd.Empty.PRESENTED_IMAGE_SIMPLE })));
|
|
173
|
+
};
|
|
174
|
+
var WorkAreaList_default = WorkAreaList;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.saas-device-planning-sider {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 0 0 240px;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 240px;
|
|
6
|
+
min-height: 0;
|
|
7
|
+
padding: 16px;
|
|
8
|
+
background: #fff;
|
|
9
|
+
border-right: 1px solid #f0f0f0;
|
|
10
|
+
|
|
11
|
+
&__header {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
margin-bottom: 12px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__title {
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
color: rgba(0, 0, 0, 0.88);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__list {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex: 1;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 8px;
|
|
29
|
+
min-height: 0;
|
|
30
|
+
overflow: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__loading {
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
padding: 24px 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.saas-device-planning-workarea-item {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 8px;
|
|
44
|
+
min-height: 40px;
|
|
45
|
+
padding: 0 8px;
|
|
46
|
+
border: 1px solid transparent;
|
|
47
|
+
border-radius: 8px;
|
|
48
|
+
background: #fff;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
transition: all 0.18s;
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
background: #f8fbff;
|
|
54
|
+
border-color: #d6e4ff;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.is-selected {
|
|
58
|
+
background: #e6f4ff;
|
|
59
|
+
border-color: #91caff;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.is-dragging {
|
|
63
|
+
opacity: 0.6;
|
|
64
|
+
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__drag {
|
|
68
|
+
color: rgba(0, 0, 0, 0.25);
|
|
69
|
+
cursor: grab;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__name {
|
|
73
|
+
flex: 1;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
font-size: 13px;
|
|
77
|
+
color: rgba(0, 0, 0, 0.88);
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__more {
|
|
83
|
+
flex: 0 0 auto;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WorkAreaModalMode } from '../../constants';
|
|
3
|
+
import type { SaveWorkAreaPayload, WorkAreaItem } from '../../types';
|
|
4
|
+
interface WorkAreaModalProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
mode: WorkAreaModalMode;
|
|
7
|
+
record?: WorkAreaItem;
|
|
8
|
+
submitting: boolean;
|
|
9
|
+
getText: (key: string) => string;
|
|
10
|
+
onCancel: () => void;
|
|
11
|
+
onSubmit: (payload: SaveWorkAreaPayload) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const WorkAreaModal: React.FC<WorkAreaModalProps>;
|
|
14
|
+
export default WorkAreaModal;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/saasDevice/devicePlanning/components/WorkAreaModal/index.tsx
|
|
30
|
+
var WorkAreaModal_exports = {};
|
|
31
|
+
__export(WorkAreaModal_exports, {
|
|
32
|
+
default: () => WorkAreaModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WorkAreaModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_types = require("../../types");
|
|
39
|
+
var WorkAreaModal = ({
|
|
40
|
+
open,
|
|
41
|
+
mode,
|
|
42
|
+
record,
|
|
43
|
+
submitting,
|
|
44
|
+
getText,
|
|
45
|
+
onCancel,
|
|
46
|
+
onSubmit
|
|
47
|
+
}) => {
|
|
48
|
+
const [form] = import_antd.Form.useForm();
|
|
49
|
+
(0, import_react.useEffect)(() => {
|
|
50
|
+
if (!open) return;
|
|
51
|
+
form.setFieldsValue({
|
|
52
|
+
name: mode === "edit" ? (0, import_types.toLangDict)(record == null ? void 0 : record.name) : { ...import_types.EMPTY_I18N },
|
|
53
|
+
description: mode === "edit" ? (0, import_types.toLangDict)(record == null ? void 0 : record.description) : { ...import_types.EMPTY_I18N }
|
|
54
|
+
});
|
|
55
|
+
}, [form, mode, open, record]);
|
|
56
|
+
const handleOk = async () => {
|
|
57
|
+
const values = await form.validateFields();
|
|
58
|
+
onSubmit(values);
|
|
59
|
+
};
|
|
60
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
61
|
+
import_materials.PisellModal,
|
|
62
|
+
{
|
|
63
|
+
open,
|
|
64
|
+
title: getText(
|
|
65
|
+
mode === "create" ? "pisell2.saas.device-planning.modal.create-title" : "pisell2.saas.device-planning.modal.edit-title"
|
|
66
|
+
),
|
|
67
|
+
headerDivider: false,
|
|
68
|
+
onCancel,
|
|
69
|
+
okText: getText(
|
|
70
|
+
mode === "create" ? "pisell2.saas.device-planning.modal.create" : "pisell2.saas.device-planning.modal.save"
|
|
71
|
+
),
|
|
72
|
+
cancelText: getText("pisell2.saas.device-planning.modal.cancel"),
|
|
73
|
+
okButtonProps: { loading: submitting, onClick: handleOk },
|
|
74
|
+
cancelButtonProps: { disabled: submitting },
|
|
75
|
+
destroyOnClose: true,
|
|
76
|
+
maskClosable: false,
|
|
77
|
+
width: 520,
|
|
78
|
+
className: "saas-device-planning-workarea-modal"
|
|
79
|
+
},
|
|
80
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical", preserve: false }, /* @__PURE__ */ import_react.default.createElement(
|
|
81
|
+
import_antd.Form.Item,
|
|
82
|
+
{
|
|
83
|
+
name: "name",
|
|
84
|
+
label: getText("pisell2.saas.device-planning.modal.name"),
|
|
85
|
+
required: true,
|
|
86
|
+
rules: [
|
|
87
|
+
{
|
|
88
|
+
validator: (0, import_types.validateI18nRequired)(
|
|
89
|
+
getText("pisell2.saas.device-planning.modal.name-required")
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials.BaseTranslation, { renderMode: "edit" })
|
|
95
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
96
|
+
import_antd.Form.Item,
|
|
97
|
+
{
|
|
98
|
+
name: "description",
|
|
99
|
+
label: getText("pisell2.saas.device-planning.modal.description")
|
|
100
|
+
},
|
|
101
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials.BaseTranslation, { renderMode: "edit", type: "textarea" })
|
|
102
|
+
))
|
|
103
|
+
);
|
|
104
|
+
};
|
|
105
|
+
var WorkAreaModal_default = WorkAreaModal;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DeviceKind, WorkAreaItem } from './types';
|
|
2
|
+
export declare const DEVICE_KIND_LABEL_KEY: Record<DeviceKind, string>;
|
|
3
|
+
export declare const SEARCH_PLACEHOLDER_KEY: Record<DeviceKind, string>;
|
|
4
|
+
export declare const ADD_BUTTON_KEY: Record<DeviceKind, string>;
|
|
5
|
+
export declare const DEFAULT_PAGE_SIZE = 10;
|
|
6
|
+
export declare type WorkAreaModalMode = 'create' | 'edit';
|
|
7
|
+
export declare const normalizeText: (text: string) => string;
|
|
8
|
+
export declare const formatToken: (text: string, values: Record<string, string | number>) => string;
|
|
9
|
+
export declare const sortWorkAreaList: (list: WorkAreaItem[]) => WorkAreaItem[];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/plus/saasDevice/devicePlanning/constants.ts
|
|
20
|
+
var constants_exports = {};
|
|
21
|
+
__export(constants_exports, {
|
|
22
|
+
ADD_BUTTON_KEY: () => ADD_BUTTON_KEY,
|
|
23
|
+
DEFAULT_PAGE_SIZE: () => DEFAULT_PAGE_SIZE,
|
|
24
|
+
DEVICE_KIND_LABEL_KEY: () => DEVICE_KIND_LABEL_KEY,
|
|
25
|
+
SEARCH_PLACEHOLDER_KEY: () => SEARCH_PLACEHOLDER_KEY,
|
|
26
|
+
formatToken: () => formatToken,
|
|
27
|
+
normalizeText: () => normalizeText,
|
|
28
|
+
sortWorkAreaList: () => sortWorkAreaList
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(constants_exports);
|
|
31
|
+
var DEVICE_KIND_LABEL_KEY = {
|
|
32
|
+
smart: "pisell2.saas.device-planning.smart-devices",
|
|
33
|
+
dumb: "pisell2.saas.device-planning.peripherals",
|
|
34
|
+
integrated: "pisell2.saas.device-planning.integrated-devices"
|
|
35
|
+
};
|
|
36
|
+
var SEARCH_PLACEHOLDER_KEY = {
|
|
37
|
+
smart: "pisell2.saas.device-planning.search-smart",
|
|
38
|
+
dumb: "pisell2.saas.device-planning.search-peripherals",
|
|
39
|
+
integrated: "pisell2.saas.device-planning.search-integrated"
|
|
40
|
+
};
|
|
41
|
+
var ADD_BUTTON_KEY = {
|
|
42
|
+
smart: "pisell2.saas.device-planning.add-device",
|
|
43
|
+
dumb: "pisell2.saas.device-planning.add-peripheral",
|
|
44
|
+
integrated: "pisell2.saas.device-planning.add-integrated"
|
|
45
|
+
};
|
|
46
|
+
var DEFAULT_PAGE_SIZE = 10;
|
|
47
|
+
var normalizeText = (text) => text.toLowerCase().trim();
|
|
48
|
+
var formatToken = (text, values) => Object.entries(values).reduce(
|
|
49
|
+
(result, [key, value]) => result.replace(new RegExp(`\\{${key}\\}`, "g"), String(value)),
|
|
50
|
+
text
|
|
51
|
+
);
|
|
52
|
+
var sortWorkAreaList = (list) => [...list].sort((a, b) => (a.sort || 0) - (b.sort || 0));
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
ADD_BUTTON_KEY,
|
|
56
|
+
DEFAULT_PAGE_SIZE,
|
|
57
|
+
DEVICE_KIND_LABEL_KEY,
|
|
58
|
+
SEARCH_PLACEHOLDER_KEY,
|
|
59
|
+
formatToken,
|
|
60
|
+
normalizeText,
|
|
61
|
+
sortWorkAreaList
|
|
62
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTranslation: () => any;
|