@wisemen/wise-invoicing-web 0.0.2 → 0.0.4
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/dist/AddOpenBoundaryIcon-9SqBHfoz.js +25 -0
- package/dist/AirlineIcon-Z6sH_StM.js +26 -0
- package/dist/AirplaneIcon-C-nSkD1w.js +19 -0
- package/dist/AirportIcon-m4itDKCV.js +16 -0
- package/dist/AlertTriangleIcon-DtYLCC-Y.js +23 -0
- package/dist/AllocationsIcon-hcg93Sll.js +16 -0
- package/dist/ArrowNarrowRightIcon-2-Sml68f.js +23 -0
- package/dist/AssetIcon-qOYs6Wna.js +16 -0
- package/dist/BarChartIcon-DDyzpV_3.js +22 -0
- package/dist/BellIcon-DF1OBFta.js +21 -0
- package/dist/BillingDocumentDetailViewDataProvider-pePmiXWb.js +5248 -0
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/BillingDocumentPdf-Dg5JlQE1.js +726 -0
- package/dist/BuildingIcon-CC5PMNeP.js +22 -0
- package/dist/ChargerIcon-aM_endLr.js +16 -0
- package/dist/ChevronDownIcon-4QiK-Z6-.js +23 -0
- package/dist/ChevronUpIcon-qBsjZ5Dz.js +23 -0
- package/dist/ClockIcon-BNiPCaiB.js +23 -0
- package/dist/ClockSnoozeIcon-BxGfwJB6.js +23 -0
- package/dist/CopyIcon-DH5ly0dZ.js +19 -0
- package/dist/CreditNoteDetailViewDataProvider-C-A0jyVr.js +751 -0
- package/dist/CreditNotePdfViewDataProvider-DNUvFVDj.js +21 -0
- package/dist/CustomFieldValueText-DDQq-975.js +189 -0
- package/dist/DataProvider-CfHLB3rH.js +48 -0
- package/dist/DownloadCloudIcon-Cf8ftklG.js +22 -0
- package/dist/DunningCaseDetailViewDataProvider-0WV-7-vg.js +400 -0
- package/dist/DunningCaseOverviewView-CHdzfbhb.js +553 -0
- package/dist/DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js +239 -0
- package/dist/DunningCaseSendDialog-DBtwr2ue.js +350 -0
- package/dist/EditIcon-Dr7OHBBR.js +21 -0
- package/dist/EraserIcon-B1VJSvdI.js +23 -0
- package/dist/FileIcon-ssmQI5Yl.js +23 -0
- package/dist/FilterLinesIcon-C7YdyPBk.js +23 -0
- package/dist/GlobeIcon-BfRM6Ike.js +22 -0
- package/dist/HelpIcon-BrJ49P5y.js +22 -0
- package/dist/HourGlassIcon-D9rfU1Is.js +22 -0
- package/dist/InfoCircleIcon-Ee0SyiMc.js +23 -0
- package/dist/InvoiceDetailViewDataProvider-BDL9lAWe.js +1579 -0
- package/dist/InvoiceOverviewViewDataProvider-B_jrcC_8.js +1613 -0
- package/dist/InvoicePdfView-Bygb-9z6.js +17 -0
- package/dist/InvoicePdfViewDataProvider-nBk3XNrE.js +21 -0
- package/dist/InvoicePublicPdfViewDataProvider-DHJP_-7-.js +44 -0
- package/dist/IssuerSettingsViewDataProvider-Dk_Q6w6f.js +188 -0
- package/dist/KeyboardIcon-T3o_g-1c.js +22 -0
- package/dist/LinkExternalIcon-BkHS4fCx.js +22 -0
- package/dist/LinkIcon-DuPwae98.js +22 -0
- package/dist/MarkerIcon-B1Jqenjb.js +28 -0
- package/dist/MobileBatteryIcon-GZ1SMRDV.js +16 -0
- package/dist/MonitorIcon-pbK22reU.js +22 -0
- package/dist/NotificationIcon-Ctv8vyWt.js +19 -0
- package/dist/ParkingIcon-DnUPW3pB.js +24 -0
- package/dist/PlanningIcon-CXvrskgj.js +16 -0
- package/dist/PreferenceIcon-BHS8uDyi.js +22 -0
- package/dist/ReceiptCheckIcon-QTestqCJ.js +23 -0
- package/dist/RefreshIcon-DShY-aoS.js +22 -0
- package/dist/ReminderSettingsViewDataProvider-CDBjfU7R.js +668 -0
- package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +28 -0
- package/dist/RewindIcon-GWg2AQax.js +22 -0
- package/dist/SettingsIcon-CBLJ6B5u.js +25 -0
- package/dist/ShieldIcon-CVnrOcxl.js +19 -0
- package/dist/ShieldOffIcon-B9l0dDVb.js +23 -0
- package/dist/SignOutIcon-CmDkjJ5F.js +21 -0
- package/dist/SlashCircleIcon-jY5FBko5.js +22 -0
- package/dist/StandIcon-CoYnBLMn.js +23 -0
- package/dist/StarsIcon-D7ZlqOW7.js +22 -0
- package/dist/StopwatchIcon-BK0vh1lg.js +22 -0
- package/dist/TargetIcon-HMWj77-Q.js +22 -0
- package/dist/ThreeDotsIcon-BtFruOKz.js +32 -0
- package/dist/ToolIcon-DRfDb7fE.js +22 -0
- package/dist/TrashIcon-BwxBjHv5.js +19 -0
- package/dist/TurnaroundIcon-b1X61TwZ.js +27 -0
- package/dist/UploadCloudIcon-BF0equKg.js +22 -0
- package/dist/UserIcon-B0rCC6KE.js +22 -0
- package/dist/UsersIcon-cK5l_zKG.js +22 -0
- package/dist/VerifiedIcon-CELYlqcv.js +22 -0
- package/dist/WifiIcon--JPvMNEF.js +23 -0
- package/dist/WifiOffIcon-BS2KftcP.js +23 -0
- package/dist/ZapIcon-BHwcIQc0.js +23 -0
- package/dist/ZoomInIcon-Cu6r915V.js +23 -0
- package/dist/ZoomOutIcon-DwB4FRj-.js +23 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/address.transformer-B8C0pwT1.js +167 -0
- package/dist/addressForm.model-C853zEtX.js +20 -0
- package/dist/api.util-Dm_TQedZ.js +2948 -0
- package/dist/billingDocumentDetail.transformer-zMTbka5p.js +334 -0
- package/dist/client/client/client.gen.d.ts +2 -0
- package/dist/client/client/index.d.ts +10 -0
- package/dist/client/client/types.gen.d.ts +120 -0
- package/dist/client/client/utils.gen.d.ts +37 -0
- package/dist/client/client.gen.d.ts +12 -0
- package/dist/client/core/auth.gen.d.ts +25 -0
- package/dist/client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/client/core/params.gen.d.ts +43 -0
- package/dist/client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/client/core/types.gen.d.ts +83 -0
- package/dist/client/core/utils.gen.d.ts +19 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/sdk.gen.d.ts +123 -0
- package/dist/client/types.gen.d.ts +4894 -0
- package/dist/client/zod.gen.d.ts +67202 -0
- package/dist/composables/created.composable.d.ts +1 -0
- package/dist/composables/currency-format/useCurrencyFormat.composable.d.ts +12 -0
- package/dist/composables/document-title/documentTitle.composable.d.ts +8 -0
- package/dist/composables/form-auto-save/formAutoSave.composable.d.ts +14 -0
- package/dist/composables/invoicingConfig.composable.d.ts +24 -0
- package/dist/composables/invoicingQueryInvalidation.composable.d.ts +9 -0
- package/dist/composables/invoicingQueryInvalidation.composable.spec.d.ts +1 -0
- package/dist/composables/is-selector-visible/isSelectorVisible.composable.d.ts +1 -0
- package/dist/composables/paginated-cache/paginatedCache.composable.d.ts +8 -0
- package/dist/composables/routeQueryState.composable.d.ts +12 -0
- package/dist/composables/search/search.composable.d.ts +12 -0
- package/dist/composables/sort.composable.d.ts +3 -0
- package/dist/composables/virtual-scrolling/virtualScrolling.composable.d.ts +31 -0
- package/dist/creditNoteDetail.query-BZqgZRSu.js +122 -0
- package/dist/customerUuid.model-GUFYq3O2.js +5 -0
- package/dist/dashboard-BaWGNEek.js +5 -0
- package/dist/dist-DJ8yJcb9.js +2499 -0
- package/dist/dist-DP8KNFVD.js +927 -0
- package/dist/dist-YTXTCfo1.js +333 -0
- package/dist/documentTitle.composable-CeaFddr1.js +68 -0
- package/dist/download.util-PjaUQR6r.js +9 -0
- package/dist/formango.util-D5c2ql--.js +12 -0
- package/dist/i18n.lib-DUbAMBRb.js +1440 -0
- package/dist/index.d.ts +1603 -2873
- package/dist/index.js +749 -42
- package/dist/invoice.service-ChHEtXBA.js +629 -0
- package/dist/invoiceDeliveryStatus.util-BsA-MlA3.js +331 -0
- package/dist/invoiceDetail.query-O_CGvdwg.js +11 -0
- package/dist/invoicingConfig.composable-c6w_aMm1.js +60 -0
- package/dist/issuerSettings.query-RqtrZFaB.js +116 -0
- package/dist/libs/http.lib.d.ts +5 -0
- package/dist/libs/i18n.lib.d.ts +1439 -0
- package/dist/locales/en-US.json.d.ts +718 -0
- package/dist/locales/nl-BE.json.d.ts +718 -0
- package/dist/locales/ui-en-US.json.d.ts +66 -0
- package/dist/locales/ui-nl-BE.json.d.ts +66 -0
- package/dist/models/address/address.model.d.ts +15 -0
- package/dist/models/address/address.transformer.d.ts +11 -0
- package/dist/models/address/address.util.d.ts +11 -0
- package/dist/models/address/addressForm.model.d.ts +15 -0
- package/dist/models/address/addressForm.transformer.d.ts +8 -0
- package/dist/models/address/addressForm.transformer.spec.d.ts +1 -0
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +21 -0
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.transformer.d.ts +5 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +136 -0
- package/dist/models/billing-document/billingDocumentDetail.transformer.d.ts +5 -0
- package/dist/models/billing-document/billingDocumentDiscount.model.d.ts +9 -0
- package/dist/models/billing-document/billingDocumentDiscount.transformer.d.ts +6 -0
- package/dist/models/billing-document/billingDocumentDisplay.util.d.ts +7 -0
- package/dist/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.d.ts +6 -0
- package/dist/models/billing-document/billingDocumentLineItemUpdateForm.model.d.ts +21 -0
- package/dist/models/billing-document/billingDocumentStatusEnum.model.d.ts +12 -0
- package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +27 -0
- package/dist/models/billing-document/billingDocumentVatSummary.util.d.ts +4 -0
- package/dist/models/billing-document/billingDocumentVatSummary.util.spec.d.ts +1 -0
- package/dist/models/customer/customerDetail.model.d.ts +6 -0
- package/dist/models/customer/customerDetail.transformer.d.ts +5 -0
- package/dist/models/customer/customerUuid.model.d.ts +3 -0
- package/dist/models/file-reference/fileReference.dto.d.ts +13 -0
- package/dist/models/file-reference/fileReference.model.d.ts +13 -0
- package/dist/models/file-reference/fileReference.transformer.d.ts +9 -0
- package/dist/models/file-reference/fileReferenceForm.model.d.ts +10 -0
- package/dist/modules/credit-note/api/mutations/creditNoteDelete.mutation.d.ts +4 -0
- package/dist/modules/credit-note/api/mutations/creditNoteFinalize.mutation.d.ts +6 -0
- package/dist/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.d.ts +6 -0
- package/dist/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.d.ts +6 -0
- package/dist/modules/credit-note/api/mutations/creditNoteSend.mutation.d.ts +4 -0
- package/dist/modules/credit-note/api/mutations/creditNoteUpdate.mutation.d.ts +9 -0
- package/dist/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.d.ts +4 -0
- package/dist/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.d.ts +3 -0
- package/dist/modules/credit-note/api/queries/creditNoteDetail.query.d.ts +3 -0
- package/dist/modules/credit-note/api/query-keys/creditNote.queryKeys.d.ts +17 -0
- package/dist/modules/credit-note/api/services/creditNote.service.d.ts +18 -0
- package/dist/modules/credit-note/models/creditNoteUuid.model.d.ts +3 -0
- package/dist/modules/credit-note/models/detail/creditNoteDetail.model.d.ts +4 -0
- package/dist/modules/credit-note/models/detail/creditNoteDetail.transformer.d.ts +5 -0
- package/dist/modules/credit-note/models/update/creditNoteUpdate.transformer.d.ts +7 -0
- package/dist/modules/credit-note/models/update/creditNoteUpdateForm.model.d.ts +11 -0
- package/dist/modules/credit-note/models/update/creditNoteUpdateLines.model.d.ts +2 -0
- package/dist/modules/credit-note/models/update/creditNoteUpdateLines.transformer.d.ts +5 -0
- package/dist/modules/credit-note/routes/creditNote.routes.d.ts +26 -0
- package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue.d.ts +12 -0
- package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailRemarksSection.vue.d.ts +7 -0
- package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebar.vue.d.ts +9 -0
- package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue.d.ts +7 -0
- package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarInfoTab.vue.d.ts +9 -0
- package/dist/modules/credit-note/use-cases/detail/components/table/CreditNoteLineItemsTableSection.vue.d.ts +9 -0
- package/dist/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.d.ts +8 -0
- package/dist/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue.d.ts +13 -0
- package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailView.vue.d.ts +9 -0
- package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/credit-note/use-cases/pdf/views/CreditNotePdfViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/custom-field/api/queries/customFieldDefinitionIndex.query.d.ts +3 -0
- package/dist/modules/custom-field/api/query-keys/customFieldDefinition.queryKeys.d.ts +10 -0
- package/dist/modules/custom-field/api/services/customFieldDefinition.service.d.ts +6 -0
- package/dist/modules/custom-field/components/CustomFieldFieldset.vue.d.ts +21 -0
- package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +10 -0
- package/dist/modules/custom-field/components/CustomFieldValueInput.vue.d.ts +23 -0
- package/dist/modules/custom-field/components/CustomFieldValueText.vue.d.ts +10 -0
- package/dist/modules/custom-field/components/customFieldFieldset.spec.d.ts +1 -0
- package/dist/modules/custom-field/components/customFieldValueInput.spec.d.ts +1 -0
- package/dist/modules/custom-field/composables/customFieldValueModel.composable.d.ts +28 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +24 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.d.ts +5 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +8 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionIndexQueryParams.model.d.ts +4 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionUuid.model.d.ts +3 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +12 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.d.ts +8 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.spec.d.ts +1 -0
- package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +13 -0
- package/dist/modules/dunning-case/api/mutations/dunningCaseBulkSend.mutation.d.ts +5 -0
- package/dist/modules/dunning-case/api/mutations/dunningCaseSend.mutation.d.ts +4 -0
- package/dist/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.d.ts +24 -0
- package/dist/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.d.ts +2 -0
- package/dist/modules/dunning-case/api/queries/dunningCaseCustomerIndex.query.d.ts +6 -0
- package/dist/modules/dunning-case/api/queries/dunningCaseDetail.query.d.ts +3 -0
- package/dist/modules/dunning-case/api/queries/dunningCaseIndex.query.d.ts +8 -0
- package/dist/modules/dunning-case/api/queries/reminderConfig.query.d.ts +1 -0
- package/dist/modules/dunning-case/api/query-keys/dunningCase.queryKeys.d.ts +55 -0
- package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +19 -0
- package/dist/modules/dunning-case/api/services/dunningCaseCustomer.service.d.ts +11 -0
- package/dist/modules/dunning-case/components/DunningCaseReminderLevelIndicator.vue.d.ts +9 -0
- package/dist/modules/dunning-case/components/DunningCaseReminderStatusIndicator.vue.d.ts +9 -0
- package/dist/modules/dunning-case/components/dunningCaseReminderLevelIndicator.spec.d.ts +1 -0
- package/dist/modules/dunning-case/components/dunningCaseReminderStatusIndicator.spec.d.ts +1 -0
- package/dist/modules/dunning-case/index.d.ts +4 -0
- package/dist/modules/dunning-case/models/dunningCase.model.d.ts +107 -0
- package/dist/modules/dunning-case/models/dunningCase.model.spec.d.ts +1 -0
- package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +13 -0
- package/dist/modules/dunning-case/models/dunningCase.transformer.spec.d.ts +1 -0
- package/dist/modules/dunning-case/models/dunningCaseCustomer.model.d.ts +9 -0
- package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +31 -0
- package/dist/modules/dunning-case/models/reminderConfigForm.model.spec.d.ts +1 -0
- package/dist/modules/dunning-case/models/reminderTimeline.util.d.ts +9 -0
- package/dist/modules/dunning-case/models/reminderTimeline.util.spec.d.ts +1 -0
- package/dist/modules/dunning-case/routes/dunningCase.routes.d.ts +37 -0
- package/dist/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailView.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/detail/views/dunningCaseDetailView.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewFilters.composable.d.ts +5 -0
- package/dist/modules/dunning-case/use-cases/overview/views/DunningCaseOverviewView.vue.d.ts +3 -0
- package/dist/modules/dunning-case/use-cases/overview/views/dunningCaseOverviewView.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +2 -0
- package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +5 -0
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +20 -0
- package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendStat.vue.d.ts +9 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendSummary.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendFeeRow.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceRow.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceSummary.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendRecipientAlert.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseReminderSubject.composable.d.ts +6 -0
- package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseSendRecipient.composable.d.ts +16 -0
- package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +10 -0
- package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseSendDialog.vue.d.ts +12 -0
- package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.d.ts +16 -0
- package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderFeeNotice.vue.d.ts +3 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderPanel.vue.d.ts +12 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +26 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderTimeline.vue.d.ts +13 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplateTabs.vue.d.ts +20 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplatesPanel.vue.d.ts +24 -0
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +41 -0
- package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsView.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/invoice/actions/invoice.actions.d.ts +5 -0
- package/dist/modules/invoice/actions/invoiceNavigateToDetail.action.d.ts +1 -0
- package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +11 -0
- package/dist/modules/invoice/api/invoiceIndexCache.util.spec.d.ts +1 -0
- package/dist/modules/invoice/api/mutations/invoiceApplyDiscount.mutation.d.ts +9 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceCreate.mutation.d.ts +7 -0
- package/dist/modules/invoice/api/mutations/invoiceCreateCreditNote.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceDelete.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceDuplicate.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceFinalize.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsDraft.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPaid.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsProtested.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsReady.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoicePaymentCreate.mutation.d.ts +11 -0
- package/dist/modules/invoice/api/mutations/invoicePaymentDelete.mutation.d.ts +6 -0
- package/dist/modules/invoice/api/mutations/invoiceSend.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceUpdateAttachments.mutation.d.ts +13 -0
- package/dist/modules/invoice/api/mutations/invoiceUpdateLines.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceWithdrawProtest.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/queries/invoiceActivityLogIndex.query.d.ts +3 -0
- package/dist/modules/invoice/api/queries/invoiceCustomerDetail.query.d.ts +6 -0
- package/dist/modules/invoice/api/queries/invoiceCustomerSearch.query.d.ts +7 -0
- package/dist/modules/invoice/api/queries/invoiceDetail.query.d.ts +3 -0
- package/dist/modules/invoice/api/queries/invoiceIndex.query.d.ts +3 -0
- package/dist/modules/invoice/api/queries/invoicePaymentIndex.query.d.ts +3 -0
- package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +2 -0
- package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +55 -0
- package/dist/modules/invoice/api/services/fileUpload.service.d.ts +9 -0
- package/dist/modules/invoice/api/services/fileUpload.service.spec.d.ts +1 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +48 -0
- package/dist/modules/invoice/api/services/invoiceCustomer.service.d.ts +9 -0
- package/dist/modules/invoice/components/InvoiceDeliveryStatusBadge.vue.d.ts +10 -0
- package/dist/modules/invoice/components/InvoiceDisputedBadge.vue.d.ts +8 -0
- package/dist/modules/invoice/components/InvoiceOverdueBadge.vue.d.ts +8 -0
- package/dist/modules/invoice/components/InvoiceSettlementStatusBadge.vue.d.ts +18 -0
- package/dist/modules/invoice/components/InvoiceStatusBadge.vue.d.ts +10 -0
- package/dist/modules/invoice/components/form/InvoiceFormCustomerField.vue.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCreate.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.model.d.ts +9 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCreateForm.model.d.ts +9 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.transformer.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +4 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/index/invoiceDateRange.model.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +27 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndex.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.model.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.model.d.ts +20 -0
- package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.d.ts +11 -0
- package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceStatus.model.d.ts +11 -0
- package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/payment/invoicePayment.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/payment/invoicePayment.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.d.ts +11 -0
- package/dist/modules/invoice/models/invoice/payment/paymentUuid.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +56 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscount.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscountForm.model.d.ts +9 -0
- package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdate.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdateForm.model.d.ts +12 -0
- package/dist/modules/invoice/models/invoice/update/invoiceLineItemUpdateForm.model.d.ts +11 -0
- package/dist/modules/invoice/models/invoice/update/invoiceSubjectUpdateForm.model.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUpdate.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUpdateForm.model.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.model.d.ts +2 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoiceUuid.model.d.ts +3 -0
- package/dist/modules/invoice/routes/invoice.routes.d.ts +38 -0
- package/dist/modules/invoice/use-cases/create/dialogs/InvoiceCreateDialog.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailLinkedCreditNotesSection.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailRemarksSection.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebar.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarActivityTab.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarInfoTab.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/components/sidebar/invoiceDetailSidebarInfoTab.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentActionsCell.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentManualCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsSection.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsTableTextCell.vue.d.ts +6 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceLineItemsTableSection.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +6 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApplyDiscountDialog.vue.d.ts +11 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceDeleteDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentCreateDialog.vue.d.ts +11 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceUpdateDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailView.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +22 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableAmountCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableCustomFieldCell.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableDueDateCell.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableIssuedDateCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableLifecycleCell.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableNameCell.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSelectionCell.vue.d.ts +10 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSentCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSequenceCell.vue.d.ts +6 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableStatusCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +15 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.d.ts +11 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +16 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +18 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.d.ts +14 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +25 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkFinalizeDialog.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +29 -0
- package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +25 -0
- package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewViewDataProvider.vue.d.ts +16 -0
- package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfFooterSection.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfHeaderSection.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfLinesTable.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfSummarySection.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableCell.vue.d.ts +16 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableHeaderCell.vue.d.ts +6 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +3 -0
- package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +30 -0
- package/dist/modules/invoice/use-cases/pdf/components/invoicePdfLinesTable.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +42 -0
- package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicPdfViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/api/mutations/issuerSettingsUpdate.mutation.d.ts +25 -0
- package/dist/modules/settings/api/queries/issuerSettings.query.d.ts +1 -0
- package/dist/modules/settings/api/query-keys/issuerSettings.queryKeys.d.ts +6 -0
- package/dist/modules/settings/api/services/issuerSettings.service.d.ts +7 -0
- package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +15 -0
- package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.d.ts +8 -0
- package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.spec.d.ts +1 -0
- package/dist/modules/settings/models/issuer-settings/issuerSettingsForm.model.d.ts +28 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +23 -0
- package/dist/modules/settings/use-cases/overview/components/IssuerSettingsForm.vue.d.ts +7 -0
- package/dist/modules/settings/use-cases/overview/views/IssuerSettingsView.vue.d.ts +7 -0
- package/dist/modules/settings/use-cases/overview/views/IssuerSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/plainDate.transformer-BxvJpJOv.js +39 -0
- package/dist/reminderConfig.query-DzTN2AvU.js +316 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/routes/invoicingPublicRoutes.composable.d.ts +9 -0
- package/dist/routes/invoicingRoutes.composable.d.ts +73 -0
- package/dist/routes/invoicingRoutes.composable.spec.d.ts +1 -0
- package/dist/routes/invoicingStandaloneRoutes.composable.d.ts +17 -0
- package/dist/src-BFgnUugN.js +123 -0
- package/dist/style.css +2 -1
- package/dist/types/apiError.type.d.ts +7 -0
- package/dist/types/query.type.d.ts +20 -0
- package/dist/types/queryKey.type.d.ts +8 -0
- package/dist/ui/DateRangeFilterButton.vue.d.ts +15 -0
- package/dist/ui/DisplayState.vue.d.ts +16 -0
- package/dist/ui/billing-document/BillingDocumentDetailHeaderSection.vue.d.ts +28 -0
- package/dist/ui/billing-document/BillingDocumentDetailLayout.vue.d.ts +22 -0
- package/dist/ui/billing-document/BillingDocumentDetailPage.vue.d.ts +24 -0
- package/dist/ui/billing-document/BillingDocumentDetailRemarksSection.vue.d.ts +10 -0
- package/dist/ui/billing-document/BillingDocumentDetailViewDataProvider.vue.d.ts +31 -0
- package/dist/ui/billing-document/BillingDocumentFinalizeDialog.vue.d.ts +11 -0
- package/dist/ui/billing-document/BillingDocumentHeaderActions.vue.d.ts +13 -0
- package/dist/ui/billing-document/BillingDocumentPdfViewer.vue.d.ts +7 -0
- package/dist/ui/billing-document/billingDocumentHeaderActions.types.d.ts +24 -0
- package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.d.ts +14 -0
- package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.spec.d.ts +1 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebar.vue.d.ts +20 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityContent.vue.d.ts +20 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityTab.vue.d.ts +3 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarAttachmentsTab.vue.d.ts +7 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarHeader.vue.d.ts +14 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarInfoItem.vue.d.ts +21 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarLayout.vue.d.ts +16 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarOriginalInvoiceSection.vue.d.ts +7 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarPartySection.vue.d.ts +12 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +16 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsBulkActionBar.vue.d.ts +3 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsDragHandle.vue.d.ts +3 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +16 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGrid.vue.d.ts +3 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +14 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableHeader.vue.d.ts +12 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableRow.vue.d.ts +10 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableSection.vue.d.ts +13 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTotals.vue.d.ts +7 -0
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +2773 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.d.ts +22 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.spec.d.ts +1 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +484 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +41 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.spec.d.ts +1 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +41 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsSelection.composable.d.ts +16 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +13 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableCustomField.vue.d.ts +21 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +35 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableNumberField.vue.d.ts +26 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableSelectField.vue.d.ts +35 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +23 -0
- package/dist/ui/billing-document/table/field/billingDocumentLineItemsTableNumberField.spec.d.ts +1 -0
- package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +90 -0
- package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.spec.d.ts +1 -0
- package/dist/ui/billing-document/useBillingDocumentFinalizePreference.composable.d.ts +4 -0
- package/dist/ui/customer-invoice-list/CustomerInvoiceList.vue.d.ts +16 -0
- package/dist/ui/customer-invoice-list/CustomerInvoiceTable.vue.d.ts +6 -0
- package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue.d.ts +8 -0
- package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableInvoiceNumberCell.vue.d.ts +6 -0
- package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableTextCell.vue.d.ts +6 -0
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +3 -0
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.d.ts +9 -0
- package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.d.ts +8 -0
- package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.spec.d.ts +1 -0
- package/dist/ui/dashboard/index.d.ts +7 -0
- package/dist/ui/data-provider/DataProvider.vue.d.ts +27 -0
- package/dist/ui/file-upload/InvoicingFileUploadProvider.vue.d.ts +13 -0
- package/dist/ui/file-upload/invoicingFileUpload.adapter.d.ts +2 -0
- package/dist/useCurrencyFormat.composable-MtZaqKnO.js +38 -0
- package/dist/utils/api.util.d.ts +5 -0
- package/dist/utils/context.util.d.ts +1 -0
- package/dist/utils/createComponent.d.ts +4 -0
- package/dist/utils/download.util.d.ts +3 -0
- package/dist/utils/formango.util.d.ts +8 -0
- package/dist/utils/image.util.d.ts +3 -0
- package/dist/utils/instant.transformer.d.ts +7 -0
- package/dist/utils/map.util.d.ts +2 -0
- package/dist/utils/monetary/currency.model.d.ts +180 -0
- package/dist/utils/monetary/monetary.model.d.ts +6 -0
- package/dist/utils/monetary/monetary.util.d.ts +8 -0
- package/dist/utils/monetary/monetaryDto.model.d.ts +9 -0
- package/dist/utils/number.util.d.ts +4 -0
- package/dist/utils/percentage.util.d.ts +13 -0
- package/dist/utils/plainDate.transformer.d.ts +7 -0
- package/dist/utils/search.util.d.ts +3 -0
- package/package.json +26 -25
- package/dist/AddOpenBoundaryIcon-LcnpqCb7.js +0 -28
- package/dist/AirlineIcon-29r8leGB.js +0 -31
- package/dist/AirplaneIcon-B9jZP9r0.js +0 -21
- package/dist/AirportIcon-C4PxDtDr.js +0 -18
- package/dist/AlertTriangleIcon-BD58hKRP.js +0 -24
- package/dist/AllocationsIcon-BQan6NWO.js +0 -18
- package/dist/ArrowNarrowRightIcon-BA1c_QRh.js +0 -24
- package/dist/AssetIcon-DnK5wAyN.js +0 -18
- package/dist/BarChartIcon-CKrBCh6x.js +0 -24
- package/dist/BellIcon-BT2cGatU.js +0 -23
- package/dist/BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-C5j9jPsk.js +0 -5374
- package/dist/BuildingIcon-CUOTWDHc.js +0 -24
- package/dist/ChargerIcon-BhrjeyKv.js +0 -18
- package/dist/ChevronDownIcon-DljNUnFk.js +0 -24
- package/dist/ChevronUpIcon-CoxFAIp_.js +0 -24
- package/dist/ClockIcon-CTnAGb9i.js +0 -24
- package/dist/ClockSnoozeIcon-BRoTw_Vn.js +0 -24
- package/dist/CopyIcon-JiNI8Dfg.js +0 -21
- package/dist/CreditNoteDetailViewDataProvider-Cy1j_m3I.js +0 -871
- package/dist/CreditNotePdfViewDataProvider-B7-HFIKD.js +0 -36
- package/dist/DownloadCloudIcon-DKHwnpvk.js +0 -24
- package/dist/EditIcon-DtGrCf8G.js +0 -23
- package/dist/EraserIcon-Cb0Ep_Yq.js +0 -24
- package/dist/FileIcon-C4wGvJpt.js +0 -26
- package/dist/FilterLinesIcon-B7wPXDy1.js +0 -24
- package/dist/GlobeIcon-B-Idmck1.js +0 -24
- package/dist/HelpIcon-CdKWaEaB.js +0 -26
- package/dist/HourGlassIcon-CQLPiXVW.js +0 -24
- package/dist/InfoCircleIcon-5gjQoNog.js +0 -24
- package/dist/InvoiceDetailViewDataProvider-4lGG7Wtq.js +0 -1918
- package/dist/InvoiceOverviewView-Boqvwabl.js +0 -4
- package/dist/InvoicePdfViewDataProvider-CJ3fL71W.js +0 -36
- package/dist/InvoicePublicPdfViewDataProvider-CzgGk_V5.js +0 -4
- package/dist/IssuerSettingsViewDataProvider-TM-bmC55.js +0 -249
- package/dist/KeyboardIcon-DlAp0VUG.js +0 -24
- package/dist/LinkExternalIcon-BPO_c7Ke.js +0 -24
- package/dist/LinkIcon-9M0uzW4a.js +0 -24
- package/dist/MarkerIcon-pId64QTW.js +0 -31
- package/dist/MobileBatteryIcon-Dq6Vh0d5.js +0 -18
- package/dist/MonitorIcon-PsvDF5LA.js +0 -24
- package/dist/NotificationIcon-C-mhyH5v.js +0 -21
- package/dist/ParkingIcon-BD0RoGv5.js +0 -29
- package/dist/PlanningIcon-BBIuwW2I.js +0 -18
- package/dist/PreferenceIcon-zR5mjygu.js +0 -24
- package/dist/ReceiptCheckIcon-CHEEnJEK.js +0 -24
- package/dist/RefreshIcon-CfjOS7Vw.js +0 -24
- package/dist/RemoveOpenBoundaryIcon-CEbBT9CX.js +0 -31
- package/dist/RewindIcon-9PFea9gA.js +0 -24
- package/dist/SettingsIcon-CSIbrANE.js +0 -28
- package/dist/ShieldIcon-CU4mxKxP.js +0 -21
- package/dist/ShieldOffIcon-D6_I1MKn.js +0 -24
- package/dist/SignOutIcon-ClrPsj39.js +0 -23
- package/dist/SlashCircleIcon-DBy7XjBm.js +0 -24
- package/dist/StandIcon-vV8J4-3H.js +0 -24
- package/dist/StarsIcon-RO6wNbsC.js +0 -26
- package/dist/StopwatchIcon-DubYBmeN.js +0 -24
- package/dist/TargetIcon-BwVw7rVC.js +0 -24
- package/dist/ThreeDotsIcon-BvRfi-Lm.js +0 -32
- package/dist/ToolIcon-Dw-vgiL1.js +0 -24
- package/dist/TrashIcon-Dh6ASxXd.js +0 -21
- package/dist/TurnaroundIcon-Hn5nPhvb.js +0 -30
- package/dist/UploadCloudIcon-BV7b8ygQ.js +0 -24
- package/dist/UserIcon-BRrPmqkm.js +0 -24
- package/dist/UsersIcon-fORcf4YV.js +0 -24
- package/dist/VerifiedIcon-BtqxtP6h.js +0 -26
- package/dist/WifiIcon-Bd9TvVVJ.js +0 -24
- package/dist/WifiOffIcon-CpATjY4j.js +0 -24
- package/dist/ZapIcon-BG6cVpfC.js +0 -24
- package/dist/ZoomInIcon-CQ_R4Ydf.js +0 -24
- package/dist/ZoomOutIcon-DlcCdCda.js +0 -24
- package/dist/creditNoteDetail.query-Dj6oKRTO.js +0 -159
- package/dist/index-CYV9qUlg.js +0 -23375
- package/dist/index-DCE3vzbe.js +0 -7
- package/dist/invoiceDetail.query-Wtw3VSKd.js +0 -13
- package/dist/issuerSettings.query-H5-5e_KF.js +0 -130
- package/dist/style.d.ts +0 -1
- /package/dist/{index.css → DunningCaseReminderPdfViewDataProvider.css} +0 -0
|
@@ -0,0 +1,2499 @@
|
|
|
1
|
+
import { D as e, F as t, H as n, V as r, a as i, n as a, y as o } from "./dist-DP8KNFVD.js";
|
|
2
|
+
import { n as s } from "./dist-YTXTCfo1.js";
|
|
3
|
+
import { GroupPriority as c, createAction as l, useTemporaryActions as u } from "@wisemen/vue-core-actions";
|
|
4
|
+
import { useRoute as d, useRouter as f } from "vue-router";
|
|
5
|
+
import p from "zod";
|
|
6
|
+
import { useI18n as m } from "vue-i18n";
|
|
7
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createVNode as x, defineComponent as S, inject as C, mergeProps as w, normalizeClass as ee, onUnmounted as te, openBlock as T, provide as ne, ref as E, renderList as D, renderSlot as re, resolveDynamicComponent as ie, toDisplayString as ae, unref as O, useId as oe, watch as se, withCtx as k } from "vue";
|
|
8
|
+
import { refDebounced as ce } from "@vueuse/core";
|
|
9
|
+
import { UIActionDropdownMenu as le, UIActionFocus as ue, UIActionTooltip as de, UIActionTrigger as fe, UIButton as pe, UIClickableElement as A, UIDatePicker as me, UIDateRangePicker as he, UIDialog as ge, UIDialogBody as _e, UIDialogFooter as ve, UIDialogFooterCancel as ye, UIDialogFooterPrimary as be, UIDialogFooterSecondary as xe, UIDialogFooterSubmit as Se, UIDialogHeader as Ce, UIDropdownMenu as we, UIDropdownMenuGroup as Te, UIDropdownMenuRadioGroup as Ee, UIDropdownMenuRadioItem as De, UIFormDialog as Oe, UIIconButton as ke, UINumberField as Ae, UIRowLayout as je, UISeparator as Me, UIText as j, toFormField as Ne, useNumberFormat as Pe, useOverlay as Fe } from "@wisemen/vue-core-design-system";
|
|
10
|
+
import { useForm as Ie } from "formango";
|
|
11
|
+
//#region src/composables/routeQueryState.composable.ts
|
|
12
|
+
function Le(e) {
|
|
13
|
+
let t = d(), n = f();
|
|
14
|
+
function r(t) {
|
|
15
|
+
if (t === null) return e.initialState;
|
|
16
|
+
try {
|
|
17
|
+
return e.serializer.parse(t);
|
|
18
|
+
} catch {
|
|
19
|
+
return e.initialState;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
let i = E(r(t.query[e.key] ?? null));
|
|
23
|
+
return se(() => t.query[e.key], (e) => {
|
|
24
|
+
i.value = r(e ?? null);
|
|
25
|
+
}, { immediate: !0 }), se(i, (r) => {
|
|
26
|
+
n.replace({ query: {
|
|
27
|
+
...t.query,
|
|
28
|
+
[e.key]: e.serializer.serialize(r) || void 0
|
|
29
|
+
} });
|
|
30
|
+
}, { deep: !0 }), i;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/composables/search/search.composable.ts
|
|
34
|
+
var Re = 50, ze = "search";
|
|
35
|
+
function Be(e) {
|
|
36
|
+
let t = e?.debounceMs ?? Re, n = e?.persistInUrl ?? !1, r = n === !0 || typeof n == "string" ? Le({
|
|
37
|
+
initialState: "",
|
|
38
|
+
key: typeof n == "string" ? n : ze,
|
|
39
|
+
serializer: {
|
|
40
|
+
parse: (e) => e,
|
|
41
|
+
serialize: (e) => e
|
|
42
|
+
}
|
|
43
|
+
}) : E(""), i = ce(r, t), a = g(() => r.value !== i.value);
|
|
44
|
+
function o() {
|
|
45
|
+
r.value = "";
|
|
46
|
+
}
|
|
47
|
+
function s(e) {
|
|
48
|
+
r.value = e;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
isDebouncing: a,
|
|
52
|
+
clear: o,
|
|
53
|
+
debouncedSearch: g(() => i.value),
|
|
54
|
+
search: r,
|
|
55
|
+
updateSearch: s
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region ../../../node_modules/.pnpm/@wisemen+vue-core-filters@10.0.2_2a31609dd8fed7ce0cd9237e465cef67/node_modules/@wisemen/vue-core-filters/dist/index.js
|
|
60
|
+
function Ve(e) {
|
|
61
|
+
let t = Symbol(e);
|
|
62
|
+
function n(e) {
|
|
63
|
+
return ne(t, e), e;
|
|
64
|
+
}
|
|
65
|
+
function r(n) {
|
|
66
|
+
let r = C(t, n ?? void 0);
|
|
67
|
+
if (r === void 0 && n === void 0) throw Error(`${e} context is not provided.`);
|
|
68
|
+
return r ?? null;
|
|
69
|
+
}
|
|
70
|
+
return [n, r];
|
|
71
|
+
}
|
|
72
|
+
var [He, M] = Ve("filtersContext"), Ue = /* @__PURE__ */ S({
|
|
73
|
+
__name: "FiltersActiveAddFilters",
|
|
74
|
+
setup(e) {
|
|
75
|
+
let t = m(), { action: n } = M();
|
|
76
|
+
return (e, i) => (T(), _(O(le), {
|
|
77
|
+
metadata: { filters: { hideClearAll: !0 } },
|
|
78
|
+
"is-current-context-only": !1,
|
|
79
|
+
"parent-action": O(n),
|
|
80
|
+
"popover-collision-padding": 10,
|
|
81
|
+
"fixed-content-position": !0,
|
|
82
|
+
"popover-align": "start",
|
|
83
|
+
"popover-side": "bottom"
|
|
84
|
+
}, {
|
|
85
|
+
default: k(() => [x(O(ke), {
|
|
86
|
+
icon: O(r),
|
|
87
|
+
label: O(t).t("component.filters.add_filter"),
|
|
88
|
+
variant: "tertiary",
|
|
89
|
+
size: "sm"
|
|
90
|
+
}, null, 8, ["icon", "label"])]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["parent-action"]));
|
|
93
|
+
}
|
|
94
|
+
}), We = { class: "flex h-6 items-center rounded-sm border border-secondary select-none" }, N = /* @__PURE__ */ S({
|
|
95
|
+
__name: "FiltersActiveBadgeBase",
|
|
96
|
+
props: { filter: {} },
|
|
97
|
+
setup(n) {
|
|
98
|
+
let r = n, i = m(), { clearFilter: a } = M(), o = l({
|
|
99
|
+
id: `clear-filter-${r.filter.key}`,
|
|
100
|
+
name: () => i.t("component.filters.remove_filter"),
|
|
101
|
+
execute: () => {
|
|
102
|
+
a(r.filter.key);
|
|
103
|
+
},
|
|
104
|
+
group: {
|
|
105
|
+
name: () => r.filter.label,
|
|
106
|
+
category: () => i.t("component.filters.action_category"),
|
|
107
|
+
priority: c.HOVER
|
|
108
|
+
},
|
|
109
|
+
icon: () => e,
|
|
110
|
+
keyboardShortcut: { key: "Backspace" }
|
|
111
|
+
});
|
|
112
|
+
return (e, n) => (T(), _(O(ue), { actions: [O(o)] }, {
|
|
113
|
+
default: k(() => [b("div", We, [re(e.$slots, "default"), r.filter.isPersistent === !0 ? v("", !0) : (T(), y(h, { key: 0 }, [x(O(Me), { orientation: "vertical" }), x(O(fe), {
|
|
114
|
+
action: O(o),
|
|
115
|
+
"is-current-context-only": !0
|
|
116
|
+
}, {
|
|
117
|
+
default: k(({ keyboardShortcut: e, label: n }) => [x(O(ke), {
|
|
118
|
+
icon: O(t),
|
|
119
|
+
"keyboard-shortcut": e,
|
|
120
|
+
label: n,
|
|
121
|
+
size: "xs",
|
|
122
|
+
variant: "tertiary",
|
|
123
|
+
class: "rounded-l-none!"
|
|
124
|
+
}, null, 8, [
|
|
125
|
+
"icon",
|
|
126
|
+
"keyboard-shortcut",
|
|
127
|
+
"label"
|
|
128
|
+
])]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["action"])], 64))])]),
|
|
131
|
+
_: 3
|
|
132
|
+
}, 8, ["actions"]));
|
|
133
|
+
}
|
|
134
|
+
}), P = /* @__PURE__ */ S({
|
|
135
|
+
__name: "FiltersActiveBadgeBasePart",
|
|
136
|
+
props: {
|
|
137
|
+
isInteractive: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: !1
|
|
140
|
+
},
|
|
141
|
+
icon: { default: null },
|
|
142
|
+
label: { default: null }
|
|
143
|
+
},
|
|
144
|
+
setup(e) {
|
|
145
|
+
let t = e;
|
|
146
|
+
return (e, n) => (T(), _(O(je), {
|
|
147
|
+
class: ee([{ "hover:bg-fg-primary/2 dark:hover:bg-fg-primary/5": t.isInteractive }, "size-full px-sm"]),
|
|
148
|
+
gap: "xs"
|
|
149
|
+
}, {
|
|
150
|
+
default: k(() => [
|
|
151
|
+
t.icon === null ? v("", !0) : (T(), _(ie(t.icon), {
|
|
152
|
+
key: 0,
|
|
153
|
+
class: "size-3 text-primary"
|
|
154
|
+
})),
|
|
155
|
+
t.label === null ? v("", !0) : (T(), _(O(j), {
|
|
156
|
+
key: 1,
|
|
157
|
+
text: t.label,
|
|
158
|
+
class: "text-xs text-primary"
|
|
159
|
+
}, null, 8, ["text"])),
|
|
160
|
+
re(e.$slots, "default")
|
|
161
|
+
]),
|
|
162
|
+
_: 3
|
|
163
|
+
}, 8, ["class"]));
|
|
164
|
+
}
|
|
165
|
+
}), F = /* @__PURE__ */ S({
|
|
166
|
+
__name: "FiltersActiveBadgePartSeparator",
|
|
167
|
+
setup(e) {
|
|
168
|
+
return (e, t) => (T(), _(O(Me), { orientation: "vertical" }));
|
|
169
|
+
}
|
|
170
|
+
}), Ge = ["disabled"], Ke = /* @__PURE__ */ S({
|
|
171
|
+
__name: "FiltersActiveBadgeBoolean",
|
|
172
|
+
props: { filter: {} },
|
|
173
|
+
setup(e) {
|
|
174
|
+
let t = e, n = m(), { values: r } = M(), i = g(() => r.value[t.filter.key]), a = g(() => String(i.value)), o = g(() => i.value ? t.filter.trueOperatorLabel ?? n.t("component.filters.operator.is") : t.filter.falseOperatorLabel ?? n.t("component.filters.operator.is_not"));
|
|
175
|
+
function s(e) {
|
|
176
|
+
r.value[t.filter.key] = e === "true";
|
|
177
|
+
}
|
|
178
|
+
return (e, r) => (T(), _(N, { filter: t.filter }, {
|
|
179
|
+
default: k(() => [
|
|
180
|
+
x(P, {
|
|
181
|
+
label: t.filter.label,
|
|
182
|
+
icon: t.filter.icon ?? null
|
|
183
|
+
}, null, 8, ["label", "icon"]),
|
|
184
|
+
x(F),
|
|
185
|
+
x(O(we), {
|
|
186
|
+
"popover-side": "bottom",
|
|
187
|
+
"popover-align": "start",
|
|
188
|
+
"width-classes": "w-32"
|
|
189
|
+
}, {
|
|
190
|
+
trigger: k(() => [x(O(A), null, {
|
|
191
|
+
default: k(() => [b("button", {
|
|
192
|
+
disabled: t.filter.disableOperators ?? !1,
|
|
193
|
+
type: "button",
|
|
194
|
+
class: "size-full disabled:cursor-not-allowed"
|
|
195
|
+
}, [x(P, {
|
|
196
|
+
"is-interactive": !(t.filter.disableOperators ?? !1),
|
|
197
|
+
label: o.value
|
|
198
|
+
}, null, 8, ["is-interactive", "label"])], 8, Ge)]),
|
|
199
|
+
_: 1
|
|
200
|
+
})]),
|
|
201
|
+
content: k(() => [x(O(Te), null, {
|
|
202
|
+
default: k(() => [x(O(Ee), {
|
|
203
|
+
"model-value": a.value,
|
|
204
|
+
"onUpdate:modelValue": s
|
|
205
|
+
}, {
|
|
206
|
+
default: k(() => [x(O(De), {
|
|
207
|
+
label: t.filter.trueOperatorLabel ?? O(n).t("component.filters.operator.is"),
|
|
208
|
+
value: "true"
|
|
209
|
+
}, null, 8, ["label"]), x(O(De), {
|
|
210
|
+
label: t.filter.falseOperatorLabel ?? O(n).t("component.filters.operator.is_not"),
|
|
211
|
+
value: "false"
|
|
212
|
+
}, null, 8, ["label"])]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 8, ["model-value"])]),
|
|
215
|
+
_: 1
|
|
216
|
+
})]),
|
|
217
|
+
_: 1
|
|
218
|
+
}),
|
|
219
|
+
x(F),
|
|
220
|
+
x(P, {
|
|
221
|
+
label: t.filter.entityLabel,
|
|
222
|
+
class: "lowercase"
|
|
223
|
+
}, null, 8, ["label"])
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
}, 8, ["filter"]));
|
|
227
|
+
}
|
|
228
|
+
}), qe = ["aria-label"], Je = ["aria-label"], Ye = /* @__PURE__ */ S({
|
|
229
|
+
__name: "FiltersActiveBadgeDateNavigation",
|
|
230
|
+
props: {
|
|
231
|
+
filterId: {},
|
|
232
|
+
from: {},
|
|
233
|
+
until: {}
|
|
234
|
+
},
|
|
235
|
+
emits: ["navigate"],
|
|
236
|
+
setup(e, { emit: t }) {
|
|
237
|
+
let n = e, r = t, { actionGroup: s } = M(), c = m(), d = g(() => {
|
|
238
|
+
let { from: e, until: t } = n;
|
|
239
|
+
return e === null || t === null || e.equals(t) ? "day" : e.month === 1 && e.day === 1 && t.month === 12 && t.day === 31 && e.year === t.year ? "year" : e.day === 1 && t.equals(e.add({ months: 1 }).add({ days: -1 })) ? "month" : e.add({ days: 6 }).equals(t) ? "week" : "custom";
|
|
240
|
+
}), f = g(() => {
|
|
241
|
+
switch (d.value) {
|
|
242
|
+
case "day": return c.t("component.filters_date_navigation.previous_day");
|
|
243
|
+
case "week": return c.t("component.filters_date_navigation.previous_week");
|
|
244
|
+
case "month": return c.t("component.filters_date_navigation.previous_month");
|
|
245
|
+
case "year": return c.t("component.filters_date_navigation.previous_year");
|
|
246
|
+
case "custom": return c.t("component.filters_date_navigation.previous_period");
|
|
247
|
+
default: throw Error("invalid period");
|
|
248
|
+
}
|
|
249
|
+
}), p = g(() => {
|
|
250
|
+
switch (d.value) {
|
|
251
|
+
case "day": return c.t("component.filters_date_navigation.next_day");
|
|
252
|
+
case "week": return c.t("component.filters_date_navigation.next_week");
|
|
253
|
+
case "month": return c.t("component.filters_date_navigation.next_month");
|
|
254
|
+
case "year": return c.t("component.filters_date_navigation.next_year");
|
|
255
|
+
case "custom": return c.t("component.filters_date_navigation.next_period");
|
|
256
|
+
default: throw Error("invalid period");
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
function _(e) {
|
|
260
|
+
let t = Temporal.Now.plainDateISO();
|
|
261
|
+
if (n.from === null) {
|
|
262
|
+
r("navigate", t, t);
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
let i = n.from, a = n.until ?? i;
|
|
266
|
+
switch (d.value) {
|
|
267
|
+
case "day": {
|
|
268
|
+
let t = i.add({ days: e });
|
|
269
|
+
r("navigate", t, t);
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
case "week":
|
|
273
|
+
r("navigate", i.add({ weeks: e }), a.add({ weeks: e }));
|
|
274
|
+
break;
|
|
275
|
+
case "month": {
|
|
276
|
+
let t = i.add({ months: e });
|
|
277
|
+
r("navigate", t, t.add({ months: 1 }).add({ days: -1 }));
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
case "year": {
|
|
281
|
+
let t = i.add({ years: e });
|
|
282
|
+
r("navigate", t, t.with({
|
|
283
|
+
day: 31,
|
|
284
|
+
month: 12
|
|
285
|
+
}));
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
case "custom": {
|
|
289
|
+
let t = a.since(i, { largestUnit: "day" }).days + 1;
|
|
290
|
+
r("navigate", i.add({ days: e * t }), a.add({ days: e * t }));
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
let v = l({
|
|
296
|
+
id: `${n.filterId}-previous`,
|
|
297
|
+
isApplicable: (e) => e.menuType === void 0,
|
|
298
|
+
name: () => f.value,
|
|
299
|
+
execute: () => _(-1),
|
|
300
|
+
group: s,
|
|
301
|
+
icon: () => o,
|
|
302
|
+
keyboardShortcut: { key: "ArrowLeft" }
|
|
303
|
+
}), S = l({
|
|
304
|
+
id: `${n.filterId}-next`,
|
|
305
|
+
isApplicable: (e) => e.menuType === void 0,
|
|
306
|
+
name: () => p.value,
|
|
307
|
+
execute: () => _(1),
|
|
308
|
+
group: s,
|
|
309
|
+
icon: () => a,
|
|
310
|
+
keyboardShortcut: { key: "ArrowRight" }
|
|
311
|
+
});
|
|
312
|
+
return u(l({
|
|
313
|
+
id: `${n.filterId}-today`,
|
|
314
|
+
isApplicable: (e) => e.menuType === void 0,
|
|
315
|
+
name: () => c.t("component.filters_date_navigation.today"),
|
|
316
|
+
execute: () => {
|
|
317
|
+
let e = Temporal.Now.plainDateISO();
|
|
318
|
+
r("navigate", e, e);
|
|
319
|
+
},
|
|
320
|
+
group: s,
|
|
321
|
+
icon: () => i,
|
|
322
|
+
keyboardShortcut: { key: "T" }
|
|
323
|
+
})), (e, t) => (T(), y(h, null, [
|
|
324
|
+
x(O(fe), {
|
|
325
|
+
action: O(v),
|
|
326
|
+
"is-current-context-only": !1
|
|
327
|
+
}, {
|
|
328
|
+
default: k(({ label: e, keyboardShortcut: n }) => [x(O(de), {
|
|
329
|
+
label: e,
|
|
330
|
+
"keyboard-shortcut": n
|
|
331
|
+
}, {
|
|
332
|
+
default: k(() => [x(O(A), null, {
|
|
333
|
+
default: k(() => [b("button", {
|
|
334
|
+
"aria-label": e,
|
|
335
|
+
type: "button",
|
|
336
|
+
class: "flex h-full w-4 shrink-0 items-center justify-center rounded-none! hover:bg-fg-primary/2 dark:hover:bg-fg-primary/5",
|
|
337
|
+
onClick: t[0] ||= (e) => _(-1)
|
|
338
|
+
}, [x(O(o), { class: "size-3.5 text-primary" })], 8, qe)]),
|
|
339
|
+
_: 2
|
|
340
|
+
}, 1024)]),
|
|
341
|
+
_: 2
|
|
342
|
+
}, 1032, ["label", "keyboard-shortcut"])]),
|
|
343
|
+
_: 1
|
|
344
|
+
}, 8, ["action"]),
|
|
345
|
+
x(F),
|
|
346
|
+
re(e.$slots, "default"),
|
|
347
|
+
x(F),
|
|
348
|
+
x(O(fe), {
|
|
349
|
+
action: O(S),
|
|
350
|
+
"is-current-context-only": !1
|
|
351
|
+
}, {
|
|
352
|
+
default: k(({ label: e, keyboardShortcut: n }) => [x(O(de), {
|
|
353
|
+
label: e,
|
|
354
|
+
"keyboard-shortcut": n
|
|
355
|
+
}, {
|
|
356
|
+
default: k(() => [x(O(A), null, {
|
|
357
|
+
default: k(() => [b("button", {
|
|
358
|
+
"aria-label": e,
|
|
359
|
+
type: "button",
|
|
360
|
+
class: "flex h-full w-4 shrink-0 items-center justify-center rounded-none! hover:bg-fg-primary/2 dark:hover:bg-fg-primary/5",
|
|
361
|
+
onClick: t[1] ||= (e) => _(1)
|
|
362
|
+
}, [x(O(a), { class: "size-3.5 text-primary" })], 8, Je)]),
|
|
363
|
+
_: 2
|
|
364
|
+
}, 1024)]),
|
|
365
|
+
_: 2
|
|
366
|
+
}, 1032, ["label", "keyboard-shortcut"])]),
|
|
367
|
+
_: 1
|
|
368
|
+
}, 8, ["action"])
|
|
369
|
+
], 64));
|
|
370
|
+
}
|
|
371
|
+
}), Xe = {
|
|
372
|
+
type: "button",
|
|
373
|
+
class: "size-full"
|
|
374
|
+
}, I = /* @__PURE__ */ S({
|
|
375
|
+
__name: "FiltersActiveBadgeDialogTrigger",
|
|
376
|
+
props: { filter: {} },
|
|
377
|
+
setup(e) {
|
|
378
|
+
let t = e;
|
|
379
|
+
return (e, n) => (T(), _(O(fe), {
|
|
380
|
+
"is-current-context-only": !0,
|
|
381
|
+
action: t.filter.action
|
|
382
|
+
}, {
|
|
383
|
+
default: k(() => [x(O(A), null, {
|
|
384
|
+
default: k(() => [b("button", Xe, [re(e.$slots, "default")])]),
|
|
385
|
+
_: 3
|
|
386
|
+
})]),
|
|
387
|
+
_: 3
|
|
388
|
+
}, 8, ["action"]));
|
|
389
|
+
}
|
|
390
|
+
}), Ze = ["disabled"], Qe = /* @__PURE__ */ S({
|
|
391
|
+
__name: "FiltersActiveBadgeOperatorDropdown",
|
|
392
|
+
props: {
|
|
393
|
+
disabled: { type: Boolean },
|
|
394
|
+
label: {},
|
|
395
|
+
modelValue: {},
|
|
396
|
+
options: {}
|
|
397
|
+
},
|
|
398
|
+
emits: ["update:modelValue"],
|
|
399
|
+
setup(e, { emit: t }) {
|
|
400
|
+
let n = e, r = t;
|
|
401
|
+
function i() {
|
|
402
|
+
return n.label ?? n.options.find((e) => e.value === n.modelValue)?.label ?? n.modelValue;
|
|
403
|
+
}
|
|
404
|
+
return (e, t) => (T(), _(O(we), {
|
|
405
|
+
"popover-side": "bottom",
|
|
406
|
+
"popover-align": "start",
|
|
407
|
+
"width-classes": "w-40"
|
|
408
|
+
}, {
|
|
409
|
+
trigger: k(() => [x(O(A), null, {
|
|
410
|
+
default: k(() => [b("button", {
|
|
411
|
+
disabled: n.disabled,
|
|
412
|
+
type: "button",
|
|
413
|
+
class: "size-full"
|
|
414
|
+
}, [x(P, {
|
|
415
|
+
"is-interactive": !(n.disabled ?? !1),
|
|
416
|
+
label: i()
|
|
417
|
+
}, null, 8, ["is-interactive", "label"])], 8, Ze)]),
|
|
418
|
+
_: 1
|
|
419
|
+
})]),
|
|
420
|
+
content: k(() => [x(O(Te), null, {
|
|
421
|
+
default: k(() => [x(O(Ee), {
|
|
422
|
+
"model-value": n.modelValue,
|
|
423
|
+
"onUpdate:modelValue": t[0] ||= (e) => r("update:modelValue", e)
|
|
424
|
+
}, {
|
|
425
|
+
default: k(() => [(T(!0), y(h, null, D(n.options, (e) => (T(), _(O(De), {
|
|
426
|
+
key: e.value,
|
|
427
|
+
label: e.label,
|
|
428
|
+
value: e.value
|
|
429
|
+
}, null, 8, ["label", "value"]))), 128))]),
|
|
430
|
+
_: 1
|
|
431
|
+
}, 8, ["model-value"])]),
|
|
432
|
+
_: 1
|
|
433
|
+
})]),
|
|
434
|
+
_: 1
|
|
435
|
+
}));
|
|
436
|
+
}
|
|
437
|
+
}), L = /* @__PURE__ */ S({
|
|
438
|
+
__name: "FiltersActiveBadgeValueEmptyState",
|
|
439
|
+
setup(e) {
|
|
440
|
+
let t = m();
|
|
441
|
+
return (e, n) => (T(), _(O(j), {
|
|
442
|
+
"aria-label": O(t).t("component.filters.no_value"),
|
|
443
|
+
text: "...",
|
|
444
|
+
class: "text-xs text-placeholder"
|
|
445
|
+
}, null, 8, ["aria-label"]));
|
|
446
|
+
}
|
|
447
|
+
}), $e = class {
|
|
448
|
+
constructor() {
|
|
449
|
+
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
450
|
+
}
|
|
451
|
+
set(e, t) {
|
|
452
|
+
this.keyToValue.set(e, t), this.valueToKey.set(t, e);
|
|
453
|
+
}
|
|
454
|
+
getByKey(e) {
|
|
455
|
+
return this.keyToValue.get(e);
|
|
456
|
+
}
|
|
457
|
+
getByValue(e) {
|
|
458
|
+
return this.valueToKey.get(e);
|
|
459
|
+
}
|
|
460
|
+
clear() {
|
|
461
|
+
this.keyToValue.clear(), this.valueToKey.clear();
|
|
462
|
+
}
|
|
463
|
+
}, et = class {
|
|
464
|
+
constructor(e) {
|
|
465
|
+
this.generateIdentifier = e, this.kv = new $e();
|
|
466
|
+
}
|
|
467
|
+
register(e, t) {
|
|
468
|
+
this.kv.getByValue(e) || (t ||= this.generateIdentifier(e), this.kv.set(t, e));
|
|
469
|
+
}
|
|
470
|
+
clear() {
|
|
471
|
+
this.kv.clear();
|
|
472
|
+
}
|
|
473
|
+
getIdentifier(e) {
|
|
474
|
+
return this.kv.getByValue(e);
|
|
475
|
+
}
|
|
476
|
+
getValue(e) {
|
|
477
|
+
return this.kv.getByKey(e);
|
|
478
|
+
}
|
|
479
|
+
}, tt = class extends et {
|
|
480
|
+
constructor() {
|
|
481
|
+
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
482
|
+
}
|
|
483
|
+
register(e, t) {
|
|
484
|
+
typeof t == "object" ? (t.allowProps && this.classToAllowedProps.set(e, t.allowProps), super.register(e, t.identifier)) : super.register(e, t);
|
|
485
|
+
}
|
|
486
|
+
getAllowedProps(e) {
|
|
487
|
+
return this.classToAllowedProps.get(e);
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
function nt(e) {
|
|
491
|
+
if ("values" in Object) return Object.values(e);
|
|
492
|
+
let t = [];
|
|
493
|
+
for (let n in e) e.hasOwnProperty(n) && t.push(e[n]);
|
|
494
|
+
return t;
|
|
495
|
+
}
|
|
496
|
+
function rt(e, t) {
|
|
497
|
+
let n = nt(e);
|
|
498
|
+
if ("find" in n) return n.find(t);
|
|
499
|
+
let r = n;
|
|
500
|
+
for (let e = 0; e < r.length; e++) {
|
|
501
|
+
let n = r[e];
|
|
502
|
+
if (t(n)) return n;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function R(e, t) {
|
|
506
|
+
Object.entries(e).forEach(([e, n]) => t(n, e));
|
|
507
|
+
}
|
|
508
|
+
function it(e, t) {
|
|
509
|
+
return e.indexOf(t) !== -1;
|
|
510
|
+
}
|
|
511
|
+
function at(e, t) {
|
|
512
|
+
for (let n = 0; n < e.length; n++) {
|
|
513
|
+
let r = e[n];
|
|
514
|
+
if (t(r)) return r;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
var ot = class {
|
|
518
|
+
constructor() {
|
|
519
|
+
this.transfomers = {};
|
|
520
|
+
}
|
|
521
|
+
register(e) {
|
|
522
|
+
this.transfomers[e.name] = e;
|
|
523
|
+
}
|
|
524
|
+
findApplicable(e) {
|
|
525
|
+
return rt(this.transfomers, (t) => t.isApplicable(e));
|
|
526
|
+
}
|
|
527
|
+
findByName(e) {
|
|
528
|
+
return this.transfomers[e];
|
|
529
|
+
}
|
|
530
|
+
}, st = (e) => Object.prototype.toString.call(e).slice(8, -1), ct = (e) => e === void 0, lt = (e) => e === null, z = (e) => typeof e != "object" || !e || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null || Object.getPrototypeOf(e) === Object.prototype, ut = (e) => z(e) && Object.keys(e).length === 0, B = (e) => Array.isArray(e), dt = (e) => typeof e == "string", ft = (e) => typeof e == "number" && !isNaN(e), pt = (e) => typeof e == "boolean", mt = (e) => e instanceof RegExp, V = (e) => e instanceof Map, H = (e) => e instanceof Set, ht = (e) => st(e) === "Symbol", gt = (e) => e instanceof Date && !isNaN(e.valueOf()), _t = (e) => e instanceof Error, vt = (e) => typeof e == "number" && isNaN(e), yt = (e) => pt(e) || lt(e) || ct(e) || ft(e) || dt(e) || ht(e), bt = (e) => typeof e == "bigint", xt = (e) => e === Infinity || e === -Infinity, St = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Ct = (e) => e instanceof URL, wt = (e) => e.replace(/\\/g, "\\\\").replace(/\./g, "\\."), Tt = (e) => e.map(String).map(wt).join("."), U = (e, t) => {
|
|
531
|
+
let n = [], r = "";
|
|
532
|
+
for (let i = 0; i < e.length; i++) {
|
|
533
|
+
let a = e.charAt(i);
|
|
534
|
+
if (!t && a === "\\") {
|
|
535
|
+
let t = e.charAt(i + 1);
|
|
536
|
+
if (t === "\\") {
|
|
537
|
+
r += "\\", i++;
|
|
538
|
+
continue;
|
|
539
|
+
}
|
|
540
|
+
if (t !== ".") throw Error("invalid path");
|
|
541
|
+
}
|
|
542
|
+
if (a === "\\" && e.charAt(i + 1) === ".") {
|
|
543
|
+
r += ".", i++;
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
if (a === ".") {
|
|
547
|
+
n.push(r), r = "";
|
|
548
|
+
continue;
|
|
549
|
+
}
|
|
550
|
+
r += a;
|
|
551
|
+
}
|
|
552
|
+
let i = r;
|
|
553
|
+
return n.push(i), n;
|
|
554
|
+
};
|
|
555
|
+
function W(e, t, n, r) {
|
|
556
|
+
return {
|
|
557
|
+
isApplicable: e,
|
|
558
|
+
annotation: t,
|
|
559
|
+
transform: n,
|
|
560
|
+
untransform: r
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
var Et = [
|
|
564
|
+
W(ct, "undefined", () => null, () => void 0),
|
|
565
|
+
W(bt, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
|
|
566
|
+
W(gt, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
567
|
+
W(_t, "Error", (e, t) => {
|
|
568
|
+
let n = {
|
|
569
|
+
name: e.name,
|
|
570
|
+
message: e.message
|
|
571
|
+
};
|
|
572
|
+
return "cause" in e && (n.cause = e.cause), t.allowedErrorProps.forEach((t) => {
|
|
573
|
+
n[t] = e[t];
|
|
574
|
+
}), n;
|
|
575
|
+
}, (e, t) => {
|
|
576
|
+
let n = Error(e.message, { cause: e.cause });
|
|
577
|
+
return n.name = e.name, n.stack = e.stack, t.allowedErrorProps.forEach((t) => {
|
|
578
|
+
n[t] = e[t];
|
|
579
|
+
}), n;
|
|
580
|
+
}),
|
|
581
|
+
W(mt, "regexp", (e) => "" + e, (e) => {
|
|
582
|
+
let t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
583
|
+
return new RegExp(t, n);
|
|
584
|
+
}),
|
|
585
|
+
W(H, "set", (e) => [...e.values()], (e) => new Set(e)),
|
|
586
|
+
W(V, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
587
|
+
W((e) => vt(e) || xt(e), "number", (e) => vt(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
588
|
+
W((e) => e === 0 && 1 / e == -Infinity, "number", () => "-0", Number),
|
|
589
|
+
W(Ct, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
590
|
+
];
|
|
591
|
+
function Dt(e, t, n, r) {
|
|
592
|
+
return {
|
|
593
|
+
isApplicable: e,
|
|
594
|
+
annotation: t,
|
|
595
|
+
transform: n,
|
|
596
|
+
untransform: r
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
var Ot = Dt((e, t) => ht(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
600
|
+
let r = n.symbolRegistry.getValue(t[1]);
|
|
601
|
+
if (!r) throw Error("Trying to deserialize unknown symbol");
|
|
602
|
+
return r;
|
|
603
|
+
}), kt = [
|
|
604
|
+
Int8Array,
|
|
605
|
+
Uint8Array,
|
|
606
|
+
Int16Array,
|
|
607
|
+
Uint16Array,
|
|
608
|
+
Int32Array,
|
|
609
|
+
Uint32Array,
|
|
610
|
+
Float32Array,
|
|
611
|
+
Float64Array,
|
|
612
|
+
Uint8ClampedArray
|
|
613
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), At = Dt(St, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
614
|
+
let n = kt[t[1]];
|
|
615
|
+
if (!n) throw Error("Trying to deserialize unknown typed array");
|
|
616
|
+
return new n(e);
|
|
617
|
+
});
|
|
618
|
+
function jt(e, t) {
|
|
619
|
+
return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
620
|
+
}
|
|
621
|
+
var Mt = Dt(jt, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
622
|
+
let n = t.classRegistry.getAllowedProps(e.constructor);
|
|
623
|
+
if (!n) return { ...e };
|
|
624
|
+
let r = {};
|
|
625
|
+
return n.forEach((t) => {
|
|
626
|
+
r[t] = e[t];
|
|
627
|
+
}), r;
|
|
628
|
+
}, (e, t, n) => {
|
|
629
|
+
let r = n.classRegistry.getValue(t[1]);
|
|
630
|
+
if (!r) throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
631
|
+
return Object.assign(Object.create(r.prototype), e);
|
|
632
|
+
}), Nt = Dt((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
|
|
633
|
+
let r = n.customTransformerRegistry.findByName(t[1]);
|
|
634
|
+
if (!r) throw Error("Trying to deserialize unknown custom value");
|
|
635
|
+
return r.deserialize(e);
|
|
636
|
+
}), Pt = [
|
|
637
|
+
Mt,
|
|
638
|
+
Ot,
|
|
639
|
+
Nt,
|
|
640
|
+
At
|
|
641
|
+
], Ft = (e, t) => {
|
|
642
|
+
let n = at(Pt, (n) => n.isApplicable(e, t));
|
|
643
|
+
if (n) return {
|
|
644
|
+
value: n.transform(e, t),
|
|
645
|
+
type: n.annotation(e, t)
|
|
646
|
+
};
|
|
647
|
+
let r = at(Et, (n) => n.isApplicable(e, t));
|
|
648
|
+
if (r) return {
|
|
649
|
+
value: r.transform(e, t),
|
|
650
|
+
type: r.annotation
|
|
651
|
+
};
|
|
652
|
+
}, It = {};
|
|
653
|
+
Et.forEach((e) => {
|
|
654
|
+
It[e.annotation] = e;
|
|
655
|
+
});
|
|
656
|
+
var Lt = (e, t, n) => {
|
|
657
|
+
if (B(t)) switch (t[0]) {
|
|
658
|
+
case "symbol": return Ot.untransform(e, t, n);
|
|
659
|
+
case "class": return Mt.untransform(e, t, n);
|
|
660
|
+
case "custom": return Nt.untransform(e, t, n);
|
|
661
|
+
case "typed-array": return At.untransform(e, t, n);
|
|
662
|
+
default: throw Error("Unknown transformation: " + t);
|
|
663
|
+
}
|
|
664
|
+
else {
|
|
665
|
+
let r = It[t];
|
|
666
|
+
if (!r) throw Error("Unknown transformation: " + t);
|
|
667
|
+
return r.untransform(e, n);
|
|
668
|
+
}
|
|
669
|
+
}, G = (e, t) => {
|
|
670
|
+
if (t > e.size) throw Error("index out of bounds");
|
|
671
|
+
let n = e.keys();
|
|
672
|
+
for (; t > 0;) n.next(), t--;
|
|
673
|
+
return n.next().value;
|
|
674
|
+
};
|
|
675
|
+
function Rt(e) {
|
|
676
|
+
if (it(e, "__proto__")) throw Error("__proto__ is not allowed as a property");
|
|
677
|
+
if (it(e, "prototype")) throw Error("prototype is not allowed as a property");
|
|
678
|
+
if (it(e, "constructor")) throw Error("constructor is not allowed as a property");
|
|
679
|
+
}
|
|
680
|
+
var zt = (e, t) => {
|
|
681
|
+
Rt(t);
|
|
682
|
+
for (let n = 0; n < t.length; n++) {
|
|
683
|
+
let r = t[n];
|
|
684
|
+
if (H(e)) e = G(e, +r);
|
|
685
|
+
else if (V(e)) {
|
|
686
|
+
let i = +r, a = +t[++n] == 0 ? "key" : "value", o = G(e, i);
|
|
687
|
+
switch (a) {
|
|
688
|
+
case "key":
|
|
689
|
+
e = o;
|
|
690
|
+
break;
|
|
691
|
+
case "value": e = e.get(o);
|
|
692
|
+
}
|
|
693
|
+
} else e = e[r];
|
|
694
|
+
}
|
|
695
|
+
return e;
|
|
696
|
+
}, Bt = (e, t, n) => {
|
|
697
|
+
if (Rt(t), t.length === 0) return n(e);
|
|
698
|
+
let r = e;
|
|
699
|
+
for (let e = 0; e < t.length - 1; e++) {
|
|
700
|
+
let n = t[e];
|
|
701
|
+
if (B(r)) {
|
|
702
|
+
let e = +n;
|
|
703
|
+
r = r[e];
|
|
704
|
+
} else if (z(r)) r = r[n];
|
|
705
|
+
else if (H(r)) {
|
|
706
|
+
let e = +n;
|
|
707
|
+
r = G(r, e);
|
|
708
|
+
} else if (V(r)) {
|
|
709
|
+
if (e === t.length - 2) break;
|
|
710
|
+
let i = +n, a = +t[++e] == 0 ? "key" : "value", o = G(r, i);
|
|
711
|
+
switch (a) {
|
|
712
|
+
case "key":
|
|
713
|
+
r = o;
|
|
714
|
+
break;
|
|
715
|
+
case "value": r = r.get(o);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
let i = t[t.length - 1];
|
|
720
|
+
if (B(r) ? r[+i] = n(r[+i]) : z(r) && (r[i] = n(r[i])), H(r)) {
|
|
721
|
+
let e = G(r, +i), t = n(e);
|
|
722
|
+
e !== t && (r.delete(e), r.add(t));
|
|
723
|
+
}
|
|
724
|
+
if (V(r)) {
|
|
725
|
+
let e = +t[t.length - 2], a = G(r, e);
|
|
726
|
+
switch (+i == 0 ? "key" : "value") {
|
|
727
|
+
case "key": {
|
|
728
|
+
let e = n(a);
|
|
729
|
+
r.set(e, r.get(a)), e !== a && r.delete(a);
|
|
730
|
+
break;
|
|
731
|
+
}
|
|
732
|
+
case "value": r.set(a, n(r.get(a)));
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
return e;
|
|
736
|
+
}, Vt = (e) => e < 1;
|
|
737
|
+
function Ht(e, t, n, r = []) {
|
|
738
|
+
if (!e) return;
|
|
739
|
+
let i = Vt(n);
|
|
740
|
+
if (!B(e)) {
|
|
741
|
+
R(e, (e, a) => Ht(e, t, n, [...r, ...U(a, i)]));
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
let [a, o] = e;
|
|
745
|
+
o && R(o, (e, a) => {
|
|
746
|
+
Ht(e, t, n, [...r, ...U(a, i)]);
|
|
747
|
+
}), t(a, r);
|
|
748
|
+
}
|
|
749
|
+
function Ut(e, t, n, r) {
|
|
750
|
+
return Ht(t, (t, n) => {
|
|
751
|
+
e = Bt(e, n, (e) => Lt(e, t, r));
|
|
752
|
+
}, n), e;
|
|
753
|
+
}
|
|
754
|
+
function Wt(e, t, n) {
|
|
755
|
+
let r = Vt(n);
|
|
756
|
+
function i(t, n) {
|
|
757
|
+
let i = zt(e, U(n, r));
|
|
758
|
+
t.map((e) => U(e, r)).forEach((t) => {
|
|
759
|
+
e = Bt(e, t, () => i);
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
if (B(t)) {
|
|
763
|
+
let [n, a] = t;
|
|
764
|
+
n.forEach((t) => {
|
|
765
|
+
e = Bt(e, U(t, r), () => e);
|
|
766
|
+
}), a && R(a, i);
|
|
767
|
+
} else R(t, i);
|
|
768
|
+
return e;
|
|
769
|
+
}
|
|
770
|
+
var Gt = (e, t) => z(e) || B(e) || V(e) || H(e) || _t(e) || jt(e, t);
|
|
771
|
+
function Kt(e, t, n) {
|
|
772
|
+
let r = n.get(e);
|
|
773
|
+
r ? r.push(t) : n.set(e, [t]);
|
|
774
|
+
}
|
|
775
|
+
function qt(e, t) {
|
|
776
|
+
let n = {}, r;
|
|
777
|
+
return e.forEach((e) => {
|
|
778
|
+
if (e.length <= 1) return;
|
|
779
|
+
t || (e = e.map((e) => e.map(String)).sort((e, t) => e.length - t.length));
|
|
780
|
+
let [i, ...a] = e;
|
|
781
|
+
i.length === 0 ? r = a.map(Tt) : n[Tt(i)] = a.map(Tt);
|
|
782
|
+
}), r ? ut(n) ? [r] : [r, n] : ut(n) ? void 0 : n;
|
|
783
|
+
}
|
|
784
|
+
var Jt = (e, t, n, r, i = [], a = [], o = /* @__PURE__ */ new Map()) => {
|
|
785
|
+
let s = yt(e);
|
|
786
|
+
if (!s) {
|
|
787
|
+
Kt(e, i, t);
|
|
788
|
+
let n = o.get(e);
|
|
789
|
+
if (n) return r ? { transformedValue: null } : n;
|
|
790
|
+
}
|
|
791
|
+
if (!Gt(e, n)) {
|
|
792
|
+
let t = Ft(e, n), r = t ? {
|
|
793
|
+
transformedValue: t.value,
|
|
794
|
+
annotations: [t.type]
|
|
795
|
+
} : { transformedValue: e };
|
|
796
|
+
return s || o.set(e, r), r;
|
|
797
|
+
}
|
|
798
|
+
if (it(a, e)) return { transformedValue: null };
|
|
799
|
+
let c = Ft(e, n), l = c?.value ?? e, u = B(l) ? [] : {}, d = {};
|
|
800
|
+
R(l, (s, c) => {
|
|
801
|
+
if (c === "__proto__" || c === "constructor" || c === "prototype") throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);
|
|
802
|
+
let l = Jt(s, t, n, r, [...i, c], [...a, e], o);
|
|
803
|
+
u[c] = l.transformedValue, B(l.annotations) ? d[wt(c)] = l.annotations : z(l.annotations) && R(l.annotations, (e, t) => {
|
|
804
|
+
d[wt(c) + "." + t] = e;
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
let f = ut(d) ? {
|
|
808
|
+
transformedValue: u,
|
|
809
|
+
annotations: c ? [c.type] : void 0
|
|
810
|
+
} : {
|
|
811
|
+
transformedValue: u,
|
|
812
|
+
annotations: c ? [c.type, d] : d
|
|
813
|
+
};
|
|
814
|
+
return s || o.set(e, f), f;
|
|
815
|
+
};
|
|
816
|
+
function Yt(e) {
|
|
817
|
+
return Object.prototype.toString.call(e).slice(8, -1);
|
|
818
|
+
}
|
|
819
|
+
function Xt(e) {
|
|
820
|
+
return Yt(e) === "Array";
|
|
821
|
+
}
|
|
822
|
+
function Zt(e) {
|
|
823
|
+
if (Yt(e) !== "Object") return !1;
|
|
824
|
+
let t = Object.getPrototypeOf(e);
|
|
825
|
+
return !!t && t.constructor === Object && t === Object.prototype;
|
|
826
|
+
}
|
|
827
|
+
function Qt(e, t, n, r, i) {
|
|
828
|
+
let a = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
|
|
829
|
+
a === "enumerable" && (e[t] = n), i && a === "nonenumerable" && Object.defineProperty(e, t, {
|
|
830
|
+
value: n,
|
|
831
|
+
enumerable: !1,
|
|
832
|
+
writable: !0,
|
|
833
|
+
configurable: !0
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
function $t(e, t = {}) {
|
|
837
|
+
if (Xt(e)) return e.map((e) => $t(e, t));
|
|
838
|
+
if (!Zt(e)) return e;
|
|
839
|
+
let n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
|
|
840
|
+
return [...n, ...r].reduce((n, r) => {
|
|
841
|
+
if (r === "__proto__" || Xt(t.props) && !t.props.includes(r)) return n;
|
|
842
|
+
let i = e[r];
|
|
843
|
+
return Qt(n, r, $t(i, t), e, t.nonenumerable), n;
|
|
844
|
+
}, {});
|
|
845
|
+
}
|
|
846
|
+
var K = class {
|
|
847
|
+
constructor({ dedupe: e = !1 } = {}) {
|
|
848
|
+
this.classRegistry = new tt(), this.symbolRegistry = new et((e) => e.description ?? ""), this.customTransformerRegistry = new ot(), this.allowedErrorProps = [], this.dedupe = e;
|
|
849
|
+
}
|
|
850
|
+
serialize(e) {
|
|
851
|
+
let t = /* @__PURE__ */ new Map(), n = Jt(e, t, this, this.dedupe), r = { json: n.transformedValue };
|
|
852
|
+
n.annotations && (r.meta = {
|
|
853
|
+
...r.meta,
|
|
854
|
+
values: n.annotations
|
|
855
|
+
});
|
|
856
|
+
let i = qt(t, this.dedupe);
|
|
857
|
+
return i && (r.meta = {
|
|
858
|
+
...r.meta,
|
|
859
|
+
referentialEqualities: i
|
|
860
|
+
}), r.meta && (r.meta.v = 1), r;
|
|
861
|
+
}
|
|
862
|
+
deserialize(e, t) {
|
|
863
|
+
let { json: n, meta: r } = e, i = t?.inPlace ? n : $t(n);
|
|
864
|
+
return r?.values && (i = Ut(i, r.values, r.v ?? 0, this)), r?.referentialEqualities && (i = Wt(i, r.referentialEqualities, r.v ?? 0)), i;
|
|
865
|
+
}
|
|
866
|
+
stringify(e) {
|
|
867
|
+
return JSON.stringify(this.serialize(e));
|
|
868
|
+
}
|
|
869
|
+
parse(e) {
|
|
870
|
+
return this.deserialize(JSON.parse(e), { inPlace: !0 });
|
|
871
|
+
}
|
|
872
|
+
registerClass(e, t) {
|
|
873
|
+
this.classRegistry.register(e, t);
|
|
874
|
+
}
|
|
875
|
+
registerSymbol(e, t) {
|
|
876
|
+
this.symbolRegistry.register(e, t);
|
|
877
|
+
}
|
|
878
|
+
registerCustom(e, t) {
|
|
879
|
+
this.customTransformerRegistry.register({
|
|
880
|
+
name: t,
|
|
881
|
+
...e
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
allowErrorProps(...e) {
|
|
885
|
+
this.allowedErrorProps.push(...e);
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
K.defaultInstance = new K(), K.serialize = K.defaultInstance.serialize.bind(K.defaultInstance), K.deserialize = K.defaultInstance.deserialize.bind(K.defaultInstance), K.stringify = K.defaultInstance.stringify.bind(K.defaultInstance), K.parse = K.defaultInstance.parse.bind(K.defaultInstance), K.registerClass = K.defaultInstance.registerClass.bind(K.defaultInstance), K.registerSymbol = K.defaultInstance.registerSymbol.bind(K.defaultInstance), K.registerCustom = K.defaultInstance.registerCustom.bind(K.defaultInstance), K.allowErrorProps = K.defaultInstance.allowErrorProps.bind(K.defaultInstance), K.serialize, K.deserialize, K.stringify, K.parse, K.registerClass, K.registerCustom, K.registerSymbol, K.allowErrorProps;
|
|
889
|
+
var en = /* @__PURE__ */ S({
|
|
890
|
+
__name: "FiltersDialogDateFilter",
|
|
891
|
+
props: {
|
|
892
|
+
filter: {},
|
|
893
|
+
initialValue: {}
|
|
894
|
+
},
|
|
895
|
+
emits: ["submit"],
|
|
896
|
+
setup(e, { emit: t }) {
|
|
897
|
+
let n = e, r = t, i = m(), a = E(n.initialValue.value);
|
|
898
|
+
function o() {
|
|
899
|
+
r("submit", {
|
|
900
|
+
operator: n.initialValue.operator,
|
|
901
|
+
value: a.value ?? null
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
function s() {
|
|
905
|
+
a.value = null;
|
|
906
|
+
}
|
|
907
|
+
return (e, t) => (T(), _(O(ge), { size: "xxs" }, {
|
|
908
|
+
default: k(() => [
|
|
909
|
+
x(O(Ce), {
|
|
910
|
+
title: n.filter.label,
|
|
911
|
+
"hide-description": !0,
|
|
912
|
+
description: ""
|
|
913
|
+
}, null, 8, ["title"]),
|
|
914
|
+
x(O(_e), null, {
|
|
915
|
+
default: k(() => [x(O(me), {
|
|
916
|
+
modelValue: a.value,
|
|
917
|
+
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
918
|
+
class: "p-none!"
|
|
919
|
+
}, null, 8, ["modelValue"])]),
|
|
920
|
+
_: 1
|
|
921
|
+
}),
|
|
922
|
+
x(O(ve), null, {
|
|
923
|
+
left: k(() => [x(O(xe), {
|
|
924
|
+
label: O(i).t("component.filters_date_dialog.clear"),
|
|
925
|
+
"is-disabled": a.value === null,
|
|
926
|
+
class: "mr-auto",
|
|
927
|
+
onClick: s
|
|
928
|
+
}, null, 8, ["label", "is-disabled"])]),
|
|
929
|
+
right: k(() => [x(O(ye), { label: O(i).t("component.filters_date_dialog.cancel") }, null, 8, ["label"]), x(O(be), {
|
|
930
|
+
label: O(i).t("component.filters_date_dialog.set_filter"),
|
|
931
|
+
onClick: o
|
|
932
|
+
}, null, 8, ["label"])]),
|
|
933
|
+
_: 1
|
|
934
|
+
})
|
|
935
|
+
]),
|
|
936
|
+
_: 1
|
|
937
|
+
}));
|
|
938
|
+
}
|
|
939
|
+
}), tn = /* @__PURE__ */ S({
|
|
940
|
+
__name: "FiltersDialogDateRangeFilter",
|
|
941
|
+
props: {
|
|
942
|
+
filter: {},
|
|
943
|
+
initialValue: {}
|
|
944
|
+
},
|
|
945
|
+
emits: ["submit"],
|
|
946
|
+
setup(e, { emit: t }) {
|
|
947
|
+
let n = e, r = t, i = m(), a = E(n.initialValue.value);
|
|
948
|
+
function o() {
|
|
949
|
+
r("submit", {
|
|
950
|
+
operator: n.initialValue.operator,
|
|
951
|
+
value: a.value ?? {
|
|
952
|
+
from: null,
|
|
953
|
+
until: null
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
function s() {
|
|
958
|
+
a.value = {
|
|
959
|
+
from: null,
|
|
960
|
+
until: null
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
return (e, t) => (T(), _(O(ge), { size: "xl" }, {
|
|
964
|
+
default: k(() => [
|
|
965
|
+
x(O(Ce), {
|
|
966
|
+
title: n.filter.label,
|
|
967
|
+
"hide-description": !0,
|
|
968
|
+
description: ""
|
|
969
|
+
}, null, 8, ["title"]),
|
|
970
|
+
x(O(_e), null, {
|
|
971
|
+
default: k(() => [x(O(he), {
|
|
972
|
+
modelValue: a.value,
|
|
973
|
+
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
974
|
+
"show-presets": !1
|
|
975
|
+
}, null, 8, ["modelValue"])]),
|
|
976
|
+
_: 1
|
|
977
|
+
}),
|
|
978
|
+
x(O(ve), null, {
|
|
979
|
+
left: k(() => [x(O(xe), {
|
|
980
|
+
label: O(i).t("component.filters_date_range_dialog.clear"),
|
|
981
|
+
"is-disabled": a.value.from === null || a.value.until === null,
|
|
982
|
+
class: "mr-auto",
|
|
983
|
+
onClick: s
|
|
984
|
+
}, null, 8, ["label", "is-disabled"])]),
|
|
985
|
+
right: k(() => [x(O(ye), { label: O(i).t("component.filters_date_range_dialog.cancel") }, null, 8, ["label"]), x(O(be), {
|
|
986
|
+
label: O(i).t("component.filters_date_range_dialog.set_filter"),
|
|
987
|
+
onClick: o
|
|
988
|
+
}, null, 8, ["label"])]),
|
|
989
|
+
_: 1
|
|
990
|
+
})
|
|
991
|
+
]),
|
|
992
|
+
_: 1
|
|
993
|
+
}));
|
|
994
|
+
}
|
|
995
|
+
}), nn = ["for"], rn = /* @__PURE__ */ S({
|
|
996
|
+
__name: "FiltersDialogNumberFilter",
|
|
997
|
+
props: {
|
|
998
|
+
filter: {},
|
|
999
|
+
initialValue: {}
|
|
1000
|
+
},
|
|
1001
|
+
emits: ["submit"],
|
|
1002
|
+
setup(e, { emit: n }) {
|
|
1003
|
+
let r = e, i = n, a = m(), o = oe(), s = Ie({
|
|
1004
|
+
schema: p.object({ value: p.number().min(r.filter.min ?? -(2 ** 53 - 1)).max(r.filter.max ?? 2 ** 53 - 1).nullable() }),
|
|
1005
|
+
onSubmit: (e) => {
|
|
1006
|
+
i("submit", {
|
|
1007
|
+
operator: r.initialValue.operator,
|
|
1008
|
+
value: e.value
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
}), c = s.register("value", r.initialValue.value);
|
|
1012
|
+
return (e, n) => (T(), _(O(Oe), {
|
|
1013
|
+
form: O(s),
|
|
1014
|
+
size: "xxs"
|
|
1015
|
+
}, {
|
|
1016
|
+
default: k(() => [
|
|
1017
|
+
x(O(Ce), {
|
|
1018
|
+
title: r.filter.label,
|
|
1019
|
+
"hide-description": !0,
|
|
1020
|
+
description: r.filter.label
|
|
1021
|
+
}, null, 8, ["title", "description"]),
|
|
1022
|
+
x(O(_e), null, {
|
|
1023
|
+
default: k(() => [b("label", {
|
|
1024
|
+
for: O(o),
|
|
1025
|
+
class: "sr-only"
|
|
1026
|
+
}, ae(r.filter.label), 9, nn), x(O(Ae), w(O(Ne)(O(c)), {
|
|
1027
|
+
id: O(o),
|
|
1028
|
+
"format-options": r.filter.formatOptions,
|
|
1029
|
+
placeholder: r.filter.placeholder ?? O(a).t("component.filters_number_dialog.placeholder")
|
|
1030
|
+
}), {
|
|
1031
|
+
right: k(() => [r.filter.customUnit === void 0 ? v("", !0) : (T(), _(O(j), {
|
|
1032
|
+
key: 0,
|
|
1033
|
+
text: r.filter.customUnit,
|
|
1034
|
+
truncate: !1,
|
|
1035
|
+
class: "mr-sm text-xs text-tertiary"
|
|
1036
|
+
}, null, 8, ["text"])), O(c).value.value === null ? v("", !0) : (T(), _(O(ke), {
|
|
1037
|
+
key: 1,
|
|
1038
|
+
icon: O(t),
|
|
1039
|
+
label: O(a).t("component.filters_number_dialog.clear"),
|
|
1040
|
+
size: "xs",
|
|
1041
|
+
variant: "tertiary",
|
|
1042
|
+
class: "mr-xs",
|
|
1043
|
+
onClick: n[0] ||= (e) => O(c).setValue(null)
|
|
1044
|
+
}, null, 8, ["icon", "label"]))]),
|
|
1045
|
+
_: 1
|
|
1046
|
+
}, 16, [
|
|
1047
|
+
"id",
|
|
1048
|
+
"format-options",
|
|
1049
|
+
"placeholder"
|
|
1050
|
+
])]),
|
|
1051
|
+
_: 1
|
|
1052
|
+
}),
|
|
1053
|
+
x(O(ve), null, {
|
|
1054
|
+
default: k(() => [x(O(ye), { label: O(a).t("component.filters_number_dialog.cancel") }, null, 8, ["label"]), x(O(Se), { label: O(a).t("component.filters_number_dialog.set_filter") }, null, 8, ["label"])]),
|
|
1055
|
+
_: 1
|
|
1056
|
+
})
|
|
1057
|
+
]),
|
|
1058
|
+
_: 1
|
|
1059
|
+
}, 8, ["form"]));
|
|
1060
|
+
}
|
|
1061
|
+
}), an = /* @__PURE__ */ function(e) {
|
|
1062
|
+
return e.EXCLUDES = "excludes", e.INCLUDES = "includes", e;
|
|
1063
|
+
}({}), on = /* @__PURE__ */ function(e) {
|
|
1064
|
+
return e.AFTER = "after", e.BEFORE = "before", e.IS = "is", e.IS_NOT = "is_not", e;
|
|
1065
|
+
}({}), sn = /* @__PURE__ */ function(e) {
|
|
1066
|
+
return e.IS_BETWEEN = "is_between", e.IS_NOT_BETWEEN = "is_not_between", e;
|
|
1067
|
+
}({}), q = /* @__PURE__ */ function(e) {
|
|
1068
|
+
return e.EQUALS = "equals", e.GREATER_THAN_OR_EQUALS = "greater_than_or_equals", e.LESS_THAN_OR_EQUALS = "less_than_or_equals", e.NOT_EQUALS = "not_equals", e;
|
|
1069
|
+
}({}), J = /* @__PURE__ */ function(e) {
|
|
1070
|
+
return e.BOOLEAN = "boolean", e.DATE = "date", e.DATE_RANGE = "date-range", e.MULTI_AUTOCOMPLETE = "multi-autocomplete", e.MULTI_SELECT = "multi-select", e.NUMBER = "number", e;
|
|
1071
|
+
}({});
|
|
1072
|
+
function cn(e) {
|
|
1073
|
+
return {
|
|
1074
|
+
...e,
|
|
1075
|
+
type: "multi-select"
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
function ln(e) {
|
|
1079
|
+
return {
|
|
1080
|
+
...e,
|
|
1081
|
+
type: "multi-autocomplete"
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
function un(e) {
|
|
1085
|
+
return {
|
|
1086
|
+
...e,
|
|
1087
|
+
type: "boolean"
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
function dn(e) {
|
|
1091
|
+
return {
|
|
1092
|
+
...e,
|
|
1093
|
+
type: "number"
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
function fn(e) {
|
|
1097
|
+
return {
|
|
1098
|
+
...e,
|
|
1099
|
+
type: "date-range"
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
function pn(e) {
|
|
1103
|
+
return typeof e == "object" && !!e && "items" in e && "pagination" in e;
|
|
1104
|
+
}
|
|
1105
|
+
function mn(t) {
|
|
1106
|
+
let r = m(), i = Fe(), a = i.create(rn), o = i.create(en), s = i.create(tn), c = oe(), d = E(S()), f = E(null), p = E(/* @__PURE__ */ new Set()), h = t.filters.map((e) => {
|
|
1107
|
+
switch (e.type) {
|
|
1108
|
+
case "multi-select":
|
|
1109
|
+
case "multi-autocomplete": return {
|
|
1110
|
+
action: l({
|
|
1111
|
+
id: e.key,
|
|
1112
|
+
name: e.label,
|
|
1113
|
+
group: t.actionGroup,
|
|
1114
|
+
icon: () => e.icon ?? null,
|
|
1115
|
+
multiSelectSubActions: !0,
|
|
1116
|
+
parentScoreInfluence: "none",
|
|
1117
|
+
searchSubActionsConfig: {
|
|
1118
|
+
minLength: 1,
|
|
1119
|
+
placeholder: r.t("component.filters_listbox.filter_placeholder")
|
|
1120
|
+
},
|
|
1121
|
+
subActions: async (t) => {
|
|
1122
|
+
let n = await e.options(t.searchInput, t.getPaginationOffsetForSubActionId), r = pn(n) ? n.items : n, i = d.value[e.key].value, a = (t.getPaginationOffsetForSubActionId(e.key) === null ? [...i, ...r.filter((e) => !i.some((t) => K.stringify(t) === K.stringify(e)))] : r.filter((e) => !i.some((t) => K.stringify(t) === K.stringify(e)))).map((t) => l({
|
|
1123
|
+
id: K.stringify(t),
|
|
1124
|
+
name: e.displayFn(t),
|
|
1125
|
+
execute: () => {
|
|
1126
|
+
let n = d.value[e.key], r = n.value;
|
|
1127
|
+
r.some((e) => K.stringify(e) === K.stringify(t)) ? d.value[e.key] = {
|
|
1128
|
+
...n,
|
|
1129
|
+
value: r.filter((e) => K.stringify(e) !== K.stringify(t))
|
|
1130
|
+
} : d.value[e.key] = {
|
|
1131
|
+
...n,
|
|
1132
|
+
value: [...r, t]
|
|
1133
|
+
};
|
|
1134
|
+
},
|
|
1135
|
+
parentScoreInfluence: "direct",
|
|
1136
|
+
selected: () => d.value[e.key].value.some((e) => K.stringify(e) === K.stringify(t)),
|
|
1137
|
+
skipFilterScoring: e.type === "multi-autocomplete" && !i.some((e) => K.stringify(e) === K.stringify(t))
|
|
1138
|
+
}));
|
|
1139
|
+
return pn(n) ? {
|
|
1140
|
+
actions: a,
|
|
1141
|
+
pagination: { nextOffset: n.pagination.nextOffset }
|
|
1142
|
+
} : a;
|
|
1143
|
+
}
|
|
1144
|
+
}),
|
|
1145
|
+
key: e.key
|
|
1146
|
+
};
|
|
1147
|
+
case "boolean": return {
|
|
1148
|
+
action: l({
|
|
1149
|
+
id: e.key,
|
|
1150
|
+
name: e.entityLabel,
|
|
1151
|
+
disabledReason: () => d.value[e.key] === null ? null : r.t("component.filters.boolean_filter_already_active"),
|
|
1152
|
+
execute: () => {
|
|
1153
|
+
d.value[e.key] = !0;
|
|
1154
|
+
},
|
|
1155
|
+
group: t.actionGroup,
|
|
1156
|
+
icon: () => e.icon ?? null,
|
|
1157
|
+
parentScoreInfluence: "none"
|
|
1158
|
+
}),
|
|
1159
|
+
key: e.key,
|
|
1160
|
+
searchSubActionsConfig: { placeholder: "Filter..." }
|
|
1161
|
+
};
|
|
1162
|
+
case "number": return {
|
|
1163
|
+
action: l({
|
|
1164
|
+
id: e.key,
|
|
1165
|
+
name: e.label,
|
|
1166
|
+
execute: () => {
|
|
1167
|
+
a.open({
|
|
1168
|
+
filter: e,
|
|
1169
|
+
initialValue: d.value[e.key],
|
|
1170
|
+
onSubmit: (t) => {
|
|
1171
|
+
d.value[e.key] = t, a.close();
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
},
|
|
1175
|
+
group: t.actionGroup,
|
|
1176
|
+
icon: () => e.icon ?? null,
|
|
1177
|
+
parentScoreInfluence: "none"
|
|
1178
|
+
}),
|
|
1179
|
+
key: e.key
|
|
1180
|
+
};
|
|
1181
|
+
case "date": return {
|
|
1182
|
+
action: l({
|
|
1183
|
+
id: e.key,
|
|
1184
|
+
name: e.label,
|
|
1185
|
+
execute: () => {
|
|
1186
|
+
o.open({
|
|
1187
|
+
filter: e,
|
|
1188
|
+
initialValue: d.value[e.key],
|
|
1189
|
+
onSubmit: (t) => {
|
|
1190
|
+
d.value[e.key] = t, o.close();
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
},
|
|
1194
|
+
group: t.actionGroup,
|
|
1195
|
+
icon: () => e.icon ?? null,
|
|
1196
|
+
parentScoreInfluence: "none"
|
|
1197
|
+
}),
|
|
1198
|
+
key: e.key
|
|
1199
|
+
};
|
|
1200
|
+
case "date-range": return {
|
|
1201
|
+
action: l({
|
|
1202
|
+
id: e.key,
|
|
1203
|
+
name: e.label,
|
|
1204
|
+
execute: () => {
|
|
1205
|
+
s.open({
|
|
1206
|
+
filter: e,
|
|
1207
|
+
initialValue: d.value[e.key],
|
|
1208
|
+
onSubmit: (t) => {
|
|
1209
|
+
d.value[e.key] = t, s.close();
|
|
1210
|
+
}
|
|
1211
|
+
});
|
|
1212
|
+
},
|
|
1213
|
+
group: t.actionGroup,
|
|
1214
|
+
icon: () => e.icon ?? null,
|
|
1215
|
+
parentScoreInfluence: "none"
|
|
1216
|
+
}),
|
|
1217
|
+
key: e.key
|
|
1218
|
+
};
|
|
1219
|
+
default: throw Error("Unsupported filter type");
|
|
1220
|
+
}
|
|
1221
|
+
}), _ = l({
|
|
1222
|
+
id: "clear-filters",
|
|
1223
|
+
isApplicable: (e) => p.value.size > 0 && e.menuType !== "contextualMenu",
|
|
1224
|
+
name: () => r.t("component.filters.clear_filters"),
|
|
1225
|
+
execute: () => ne(),
|
|
1226
|
+
group: t.actionGroup,
|
|
1227
|
+
icon: () => e,
|
|
1228
|
+
keyboardShortcut: {
|
|
1229
|
+
key: "F",
|
|
1230
|
+
shift: !0
|
|
1231
|
+
}
|
|
1232
|
+
}), v = l({
|
|
1233
|
+
id: c,
|
|
1234
|
+
name: () => r.t("component.filters.add_filters"),
|
|
1235
|
+
forceAsRootMenu: !0,
|
|
1236
|
+
group: t.actionGroup,
|
|
1237
|
+
icon: () => n,
|
|
1238
|
+
nameAsParent: r.t("component.filters_dropdown_menu.filter"),
|
|
1239
|
+
searchSubActionsConfig: {
|
|
1240
|
+
minLength: 99,
|
|
1241
|
+
placeholder: r.t("component.filters.add_filter_placeholder")
|
|
1242
|
+
},
|
|
1243
|
+
subActions: () => [...h.map((e) => e.action), l({
|
|
1244
|
+
id: "add-filters-action-clear-filters",
|
|
1245
|
+
isApplicable: (e) => p.value.size === 0 || e.menuType !== "contextualMenu" || e.metadata.filters?.hideClearAll === !0 ? !1 : e.searchInput.trim().length === 0,
|
|
1246
|
+
name: () => r.t("component.filters.clear_filters"),
|
|
1247
|
+
execute: () => ne(),
|
|
1248
|
+
group: t.actionGroup,
|
|
1249
|
+
icon: () => e,
|
|
1250
|
+
keyboardShortcut: {
|
|
1251
|
+
key: "F",
|
|
1252
|
+
shift: !0
|
|
1253
|
+
},
|
|
1254
|
+
separatorGroup: "clear"
|
|
1255
|
+
})],
|
|
1256
|
+
subActionsHaveKeyboardShortcuts: !0
|
|
1257
|
+
}), y = g(() => Array.from(p.value).map(w).map((e) => ({
|
|
1258
|
+
...e,
|
|
1259
|
+
action: ee(e.key)
|
|
1260
|
+
})).sort((e, t) => (e.isPersistent === !0 ? 0 : 1) - (t.isPersistent === !0 ? 0 : 1)));
|
|
1261
|
+
se(d, () => {
|
|
1262
|
+
for (let e of t.filters) b(e.key) ? p.value.add(e.key) : p.value.delete(e.key);
|
|
1263
|
+
}, {
|
|
1264
|
+
deep: !0,
|
|
1265
|
+
immediate: !0
|
|
1266
|
+
});
|
|
1267
|
+
function b(e) {
|
|
1268
|
+
let t = w(e), n = f.value === e;
|
|
1269
|
+
return t.isPersistent === !0 || n || !x(e);
|
|
1270
|
+
}
|
|
1271
|
+
function x(e) {
|
|
1272
|
+
let t = d.value[e];
|
|
1273
|
+
switch (w(e).type) {
|
|
1274
|
+
case "multi-select":
|
|
1275
|
+
case "multi-autocomplete": return t.value.length === 0;
|
|
1276
|
+
case "boolean": return t === null;
|
|
1277
|
+
case "date": return t.value === null;
|
|
1278
|
+
case "number": return t.value === null;
|
|
1279
|
+
case "date-range": {
|
|
1280
|
+
let e = t.value;
|
|
1281
|
+
return e.from === null || e.until === null;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
function S() {
|
|
1286
|
+
return t.filters.reduce((e, t) => (e[t.key] = t.defaultValue ?? C(t.key), e), {});
|
|
1287
|
+
}
|
|
1288
|
+
function C(e) {
|
|
1289
|
+
switch (w(e).type) {
|
|
1290
|
+
case "multi-select":
|
|
1291
|
+
case "multi-autocomplete": return {
|
|
1292
|
+
operator: "includes",
|
|
1293
|
+
value: []
|
|
1294
|
+
};
|
|
1295
|
+
case "boolean": return null;
|
|
1296
|
+
case "number": return {
|
|
1297
|
+
operator: "equals",
|
|
1298
|
+
value: null
|
|
1299
|
+
};
|
|
1300
|
+
case "date": return {
|
|
1301
|
+
operator: "is",
|
|
1302
|
+
value: null
|
|
1303
|
+
};
|
|
1304
|
+
case "date-range": return {
|
|
1305
|
+
operator: "is_between",
|
|
1306
|
+
value: {
|
|
1307
|
+
from: null,
|
|
1308
|
+
until: null
|
|
1309
|
+
}
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
function w(e) {
|
|
1314
|
+
return t.filters.find((t) => t.key === e);
|
|
1315
|
+
}
|
|
1316
|
+
function ee(e) {
|
|
1317
|
+
return h.find((t) => t.key === e).action;
|
|
1318
|
+
}
|
|
1319
|
+
function te(e) {
|
|
1320
|
+
f.value = e;
|
|
1321
|
+
}
|
|
1322
|
+
function T(e, t = !1) {
|
|
1323
|
+
w(e).isPersistent !== !0 && (t && !x(e) || (d.value[e] = C(e), p.value.delete(e)));
|
|
1324
|
+
}
|
|
1325
|
+
function ne() {
|
|
1326
|
+
for (let e of t.filters) e.isPersistent !== !0 && (d.value[e.key] = C(e.key), p.value.delete(e.key));
|
|
1327
|
+
}
|
|
1328
|
+
u(_);
|
|
1329
|
+
let D = {
|
|
1330
|
+
action: v,
|
|
1331
|
+
actionGroup: t.actionGroup,
|
|
1332
|
+
activeFilters: y,
|
|
1333
|
+
clearAll: ne,
|
|
1334
|
+
clearFilter: T,
|
|
1335
|
+
setOpenFilter: te,
|
|
1336
|
+
values: d
|
|
1337
|
+
};
|
|
1338
|
+
return He(D), D;
|
|
1339
|
+
}
|
|
1340
|
+
var hn = /* @__PURE__ */ S({
|
|
1341
|
+
__name: "FiltersActiveBadgeDate",
|
|
1342
|
+
props: { filter: {} },
|
|
1343
|
+
setup(e) {
|
|
1344
|
+
let t = e, n = m(), { values: r } = M(), i = s(), a = g(() => r.value[t.filter.key]), o = g(() => a.value.value), c = g(() => [
|
|
1345
|
+
{
|
|
1346
|
+
label: n.t("component.filters.operator.is"),
|
|
1347
|
+
value: on.IS
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
label: n.t("component.filters.operator.is_not"),
|
|
1351
|
+
value: on.IS_NOT
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
label: n.t("component.filters.operator.before"),
|
|
1355
|
+
value: on.BEFORE
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
label: n.t("component.filters.operator.after"),
|
|
1359
|
+
value: on.AFTER
|
|
1360
|
+
}
|
|
1361
|
+
]);
|
|
1362
|
+
function l(e) {
|
|
1363
|
+
r.value[t.filter.key] = {
|
|
1364
|
+
...a.value,
|
|
1365
|
+
operator: e
|
|
1366
|
+
};
|
|
1367
|
+
}
|
|
1368
|
+
function u(e) {
|
|
1369
|
+
r.value[t.filter.key] = {
|
|
1370
|
+
...a.value,
|
|
1371
|
+
value: e
|
|
1372
|
+
};
|
|
1373
|
+
}
|
|
1374
|
+
return (e, n) => (T(), _(N, { filter: t.filter }, {
|
|
1375
|
+
default: k(() => [
|
|
1376
|
+
x(P, {
|
|
1377
|
+
icon: t.filter.icon ?? null,
|
|
1378
|
+
label: t.filter.label
|
|
1379
|
+
}, null, 8, ["icon", "label"]),
|
|
1380
|
+
x(F),
|
|
1381
|
+
x(Qe, {
|
|
1382
|
+
disabled: t.filter.disableOperators ?? !1,
|
|
1383
|
+
"model-value": a.value.operator,
|
|
1384
|
+
options: c.value,
|
|
1385
|
+
"onUpdate:modelValue": l
|
|
1386
|
+
}, null, 8, [
|
|
1387
|
+
"disabled",
|
|
1388
|
+
"model-value",
|
|
1389
|
+
"options"
|
|
1390
|
+
]),
|
|
1391
|
+
x(F),
|
|
1392
|
+
t.filter.isPersistent ?? !1 ? (T(), _(Ye, {
|
|
1393
|
+
key: 0,
|
|
1394
|
+
"filter-id": t.filter.key,
|
|
1395
|
+
from: o.value,
|
|
1396
|
+
until: o.value,
|
|
1397
|
+
onNavigate: n[0] ||= (e) => u(e)
|
|
1398
|
+
}, {
|
|
1399
|
+
default: k(() => [x(I, { filter: t.filter }, {
|
|
1400
|
+
default: k(() => [x(P, { "is-interactive": !0 }, {
|
|
1401
|
+
default: k(() => [o.value === null ? (T(), _(L, { key: 0 })) : (T(), _(O(j), {
|
|
1402
|
+
key: 1,
|
|
1403
|
+
text: O(i).formatPlainDate(o.value),
|
|
1404
|
+
class: "text-xs text-primary tabular-nums"
|
|
1405
|
+
}, null, 8, ["text"]))]),
|
|
1406
|
+
_: 1
|
|
1407
|
+
})]),
|
|
1408
|
+
_: 1
|
|
1409
|
+
}, 8, ["filter"])]),
|
|
1410
|
+
_: 1
|
|
1411
|
+
}, 8, [
|
|
1412
|
+
"filter-id",
|
|
1413
|
+
"from",
|
|
1414
|
+
"until"
|
|
1415
|
+
])) : (T(), _(I, {
|
|
1416
|
+
key: 1,
|
|
1417
|
+
filter: t.filter
|
|
1418
|
+
}, {
|
|
1419
|
+
default: k(() => [x(P, { "is-interactive": !0 }, {
|
|
1420
|
+
default: k(() => [o.value === null ? (T(), _(L, { key: 0 })) : (T(), _(O(j), {
|
|
1421
|
+
key: 1,
|
|
1422
|
+
text: O(i).formatPlainDate(o.value),
|
|
1423
|
+
class: "text-xs text-primary tabular-nums"
|
|
1424
|
+
}, null, 8, ["text"]))]),
|
|
1425
|
+
_: 1
|
|
1426
|
+
})]),
|
|
1427
|
+
_: 1
|
|
1428
|
+
}, 8, ["filter"]))
|
|
1429
|
+
]),
|
|
1430
|
+
_: 1
|
|
1431
|
+
}, 8, ["filter"]));
|
|
1432
|
+
}
|
|
1433
|
+
}), gn = /* @__PURE__ */ S({
|
|
1434
|
+
__name: "FiltersActiveBadgeDateRange",
|
|
1435
|
+
props: { filter: {} },
|
|
1436
|
+
setup(e) {
|
|
1437
|
+
let t = e, n = m(), { values: r } = M(), i = s(), a = g(() => r.value[t.filter.key]), o = g(() => a.value.value), c = g(() => o.value.from !== null && o.value.until !== null), l = g(() => (t.filter.isPersistent ?? !1) && c.value), u = g(() => [{
|
|
1438
|
+
label: n.t("component.filters.operator.is_between"),
|
|
1439
|
+
value: sn.IS_BETWEEN
|
|
1440
|
+
}, {
|
|
1441
|
+
label: n.t("component.filters.operator.is_not_between"),
|
|
1442
|
+
value: sn.IS_NOT_BETWEEN
|
|
1443
|
+
}]), d = g(() => o.value.from !== null && o.value.until !== null && o.value.from.equals(o.value.until)), f = g(() => d.value ? a.value.operator === sn.IS_BETWEEN ? n.t("component.filters.operator.is") : n.t("component.filters.operator.is_not") : u.value.find((e) => e.value === a.value.operator)?.label ?? a.value.operator);
|
|
1444
|
+
function p(e) {
|
|
1445
|
+
r.value[t.filter.key] = {
|
|
1446
|
+
...a.value,
|
|
1447
|
+
operator: e
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
function h(e, n) {
|
|
1451
|
+
r.value[t.filter.key] = {
|
|
1452
|
+
...a.value,
|
|
1453
|
+
value: {
|
|
1454
|
+
from: e,
|
|
1455
|
+
until: n
|
|
1456
|
+
}
|
|
1457
|
+
};
|
|
1458
|
+
}
|
|
1459
|
+
return (e, n) => (T(), _(N, { filter: t.filter }, {
|
|
1460
|
+
default: k(() => [
|
|
1461
|
+
x(P, {
|
|
1462
|
+
icon: t.filter.icon ?? null,
|
|
1463
|
+
label: t.filter.label
|
|
1464
|
+
}, null, 8, ["icon", "label"]),
|
|
1465
|
+
x(F),
|
|
1466
|
+
x(Qe, {
|
|
1467
|
+
disabled: t.filter.disableOperators ?? !1,
|
|
1468
|
+
label: d.value ? f.value : void 0,
|
|
1469
|
+
"model-value": a.value.operator,
|
|
1470
|
+
options: u.value,
|
|
1471
|
+
"onUpdate:modelValue": p
|
|
1472
|
+
}, null, 8, [
|
|
1473
|
+
"disabled",
|
|
1474
|
+
"label",
|
|
1475
|
+
"model-value",
|
|
1476
|
+
"options"
|
|
1477
|
+
]),
|
|
1478
|
+
x(F),
|
|
1479
|
+
l.value ? (T(), _(Ye, {
|
|
1480
|
+
key: 0,
|
|
1481
|
+
"filter-id": t.filter.key,
|
|
1482
|
+
from: o.value.from,
|
|
1483
|
+
until: o.value.until,
|
|
1484
|
+
onNavigate: h
|
|
1485
|
+
}, {
|
|
1486
|
+
default: k(() => [x(I, { filter: t.filter }, {
|
|
1487
|
+
default: k(() => [x(P, { "is-interactive": !0 }, {
|
|
1488
|
+
default: k(() => [x(O(j), {
|
|
1489
|
+
text: O(i).formatPlainDateRange(o.value),
|
|
1490
|
+
class: "text-xs text-primary tabular-nums"
|
|
1491
|
+
}, null, 8, ["text"])]),
|
|
1492
|
+
_: 1
|
|
1493
|
+
})]),
|
|
1494
|
+
_: 1
|
|
1495
|
+
}, 8, ["filter"])]),
|
|
1496
|
+
_: 1
|
|
1497
|
+
}, 8, [
|
|
1498
|
+
"filter-id",
|
|
1499
|
+
"from",
|
|
1500
|
+
"until"
|
|
1501
|
+
])) : (T(), _(I, {
|
|
1502
|
+
key: 1,
|
|
1503
|
+
filter: t.filter
|
|
1504
|
+
}, {
|
|
1505
|
+
default: k(() => [x(P, { "is-interactive": !0 }, {
|
|
1506
|
+
default: k(() => [o.value.from === null || o.value.until === null ? (T(), _(L, { key: 0 })) : (T(), _(O(j), {
|
|
1507
|
+
key: 1,
|
|
1508
|
+
text: O(i).formatPlainDateRange(o.value),
|
|
1509
|
+
class: "text-xs text-primary"
|
|
1510
|
+
}, null, 8, ["text"]))]),
|
|
1511
|
+
_: 1
|
|
1512
|
+
})]),
|
|
1513
|
+
_: 1
|
|
1514
|
+
}, 8, ["filter"]))
|
|
1515
|
+
]),
|
|
1516
|
+
_: 1
|
|
1517
|
+
}, 8, ["filter"]));
|
|
1518
|
+
}
|
|
1519
|
+
}), _n = /* @__PURE__ */ S({
|
|
1520
|
+
__name: "FiltersActiveBadgeNumber",
|
|
1521
|
+
props: { filter: {} },
|
|
1522
|
+
setup(e) {
|
|
1523
|
+
let t = e, n = m(), { values: r } = M(), i = Pe(), a = g(() => r.value[t.filter.key]), o = g(() => a.value.value), s = g(() => [
|
|
1524
|
+
{
|
|
1525
|
+
label: n.t("component.filters.operator.equals"),
|
|
1526
|
+
value: q.EQUALS
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
label: n.t("component.filters.operator.not_equals"),
|
|
1530
|
+
value: q.NOT_EQUALS
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
label: n.t("component.filters.operator.greater_than_or_equals"),
|
|
1534
|
+
value: q.GREATER_THAN_OR_EQUALS
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
label: n.t("component.filters.operator.less_than_or_equals"),
|
|
1538
|
+
value: q.LESS_THAN_OR_EQUALS
|
|
1539
|
+
}
|
|
1540
|
+
]), c = g(() => o.value === null ? null : t.filter.customUnit === void 0 ? Intl.NumberFormat(i.locale.value, t.filter.formatOptions).format(o.value) : `${i.format(o.value)} ${t.filter.customUnit}`);
|
|
1541
|
+
function l(e) {
|
|
1542
|
+
r.value[t.filter.key] = {
|
|
1543
|
+
...a.value,
|
|
1544
|
+
operator: e
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1547
|
+
return (e, n) => (T(), _(N, { filter: t.filter }, {
|
|
1548
|
+
default: k(() => [
|
|
1549
|
+
x(P, {
|
|
1550
|
+
icon: t.filter.icon,
|
|
1551
|
+
label: t.filter.label
|
|
1552
|
+
}, null, 8, ["icon", "label"]),
|
|
1553
|
+
x(F),
|
|
1554
|
+
x(Qe, {
|
|
1555
|
+
disabled: t.filter.disableOperators ?? !1,
|
|
1556
|
+
"model-value": a.value.operator,
|
|
1557
|
+
options: s.value,
|
|
1558
|
+
"onUpdate:modelValue": l
|
|
1559
|
+
}, null, 8, [
|
|
1560
|
+
"disabled",
|
|
1561
|
+
"model-value",
|
|
1562
|
+
"options"
|
|
1563
|
+
]),
|
|
1564
|
+
x(F),
|
|
1565
|
+
x(I, { filter: t.filter }, {
|
|
1566
|
+
default: k(() => [x(P, { "is-interactive": !0 }, {
|
|
1567
|
+
default: k(() => [c.value === null ? (T(), _(L, { key: 0 })) : (T(), _(O(j), {
|
|
1568
|
+
key: 1,
|
|
1569
|
+
text: c.value,
|
|
1570
|
+
class: "text-xs text-primary"
|
|
1571
|
+
}, null, 8, ["text"]))]),
|
|
1572
|
+
_: 1
|
|
1573
|
+
})]),
|
|
1574
|
+
_: 1
|
|
1575
|
+
}, 8, ["filter"])
|
|
1576
|
+
]),
|
|
1577
|
+
_: 1
|
|
1578
|
+
}, 8, ["filter"]));
|
|
1579
|
+
}
|
|
1580
|
+
}), vn = {
|
|
1581
|
+
type: "button",
|
|
1582
|
+
class: "size-full"
|
|
1583
|
+
}, yn = /* @__PURE__ */ S({
|
|
1584
|
+
__name: "FiltersActiveBadgeDropdownMenu",
|
|
1585
|
+
props: { filter: {} },
|
|
1586
|
+
setup(e) {
|
|
1587
|
+
let t = e, { clearFilter: n, setOpenFilter: r } = M();
|
|
1588
|
+
function i(e) {
|
|
1589
|
+
e ? r(t.filter.key) : (r(null), t.filter.isPersistent !== !0 && n(t.filter.key, !0));
|
|
1590
|
+
}
|
|
1591
|
+
return (e, n) => (T(), _(O(le), {
|
|
1592
|
+
"parent-action": t.filter.action,
|
|
1593
|
+
"is-current-context-only": !0,
|
|
1594
|
+
"fixed-content-position": !0,
|
|
1595
|
+
"popover-align": "start",
|
|
1596
|
+
"popover-side": "bottom",
|
|
1597
|
+
"onUpdate:isOpen": i
|
|
1598
|
+
}, {
|
|
1599
|
+
default: k(() => [x(O(A), null, {
|
|
1600
|
+
default: k(() => [b("button", vn, [re(e.$slots, "default")])]),
|
|
1601
|
+
_: 3
|
|
1602
|
+
})]),
|
|
1603
|
+
_: 3
|
|
1604
|
+
}, 8, ["parent-action"]));
|
|
1605
|
+
}
|
|
1606
|
+
}), bn = /* @__PURE__ */ S({
|
|
1607
|
+
__name: "FiltersActiveMultiSelectBadge",
|
|
1608
|
+
props: { filter: {} },
|
|
1609
|
+
setup(e) {
|
|
1610
|
+
let t = e, n = m(), { values: r } = M(), i = g(() => r.value[t.filter.key]), a = g(() => i.value.value), o = Pe(), s = g(() => [{
|
|
1611
|
+
label: a.value.length > 1 ? n.t("component.filters.operator.is_any_of") : n.t("component.filters.operator.is"),
|
|
1612
|
+
value: an.INCLUDES
|
|
1613
|
+
}, {
|
|
1614
|
+
label: n.t("component.filters.operator.is_not"),
|
|
1615
|
+
value: an.EXCLUDES
|
|
1616
|
+
}]), c = g(() => i.value.operator === an.EXCLUDES ? n.t("component.filters.operator.is_not") : a.value.length > 1 ? n.t("component.filters.operator.is_any_of") : n.t("component.filters.operator.is"));
|
|
1617
|
+
function l(e) {
|
|
1618
|
+
r.value[t.filter.key] = {
|
|
1619
|
+
...i.value,
|
|
1620
|
+
operator: e
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
return (e, r) => (T(), _(N, { filter: t.filter }, {
|
|
1624
|
+
default: k(() => [
|
|
1625
|
+
x(P, {
|
|
1626
|
+
icon: t.filter.icon,
|
|
1627
|
+
label: t.filter.label
|
|
1628
|
+
}, null, 8, ["icon", "label"]),
|
|
1629
|
+
x(F),
|
|
1630
|
+
x(Qe, {
|
|
1631
|
+
disabled: t.filter.disableOperators ?? !1,
|
|
1632
|
+
label: c.value,
|
|
1633
|
+
"model-value": i.value.operator,
|
|
1634
|
+
options: s.value,
|
|
1635
|
+
"onUpdate:modelValue": l
|
|
1636
|
+
}, null, 8, [
|
|
1637
|
+
"disabled",
|
|
1638
|
+
"label",
|
|
1639
|
+
"model-value",
|
|
1640
|
+
"options"
|
|
1641
|
+
]),
|
|
1642
|
+
x(F),
|
|
1643
|
+
x(yn, { filter: t.filter }, {
|
|
1644
|
+
default: k(() => [x(P, { "is-interactive": !0 }, {
|
|
1645
|
+
default: k(() => [a.value.length === 0 ? (T(), _(L, { key: 0 })) : a.value.length === 1 ? (T(), _(O(j), {
|
|
1646
|
+
key: 1,
|
|
1647
|
+
text: t.filter.displayFn(a.value[0]),
|
|
1648
|
+
class: "text-xs text-primary"
|
|
1649
|
+
}, null, 8, ["text"])) : (T(), _(O(de), {
|
|
1650
|
+
key: 2,
|
|
1651
|
+
label: a.value.map((e) => t.filter.displayFn(e)).join(", ")
|
|
1652
|
+
}, {
|
|
1653
|
+
default: k(() => [x(O(j), {
|
|
1654
|
+
text: t.filter.itemLabel === void 0 ? O(n).t("component.filters.selected_count", { count: O(o).format(a.value.length) }) : `${O(o).format(a.value.length)} ${t.filter.itemLabel}`,
|
|
1655
|
+
class: "text-xs text-primary tabular-nums"
|
|
1656
|
+
}, null, 8, ["text"])]),
|
|
1657
|
+
_: 1
|
|
1658
|
+
}, 8, ["label"]))]),
|
|
1659
|
+
_: 1
|
|
1660
|
+
})]),
|
|
1661
|
+
_: 1
|
|
1662
|
+
}, 8, ["filter"])
|
|
1663
|
+
]),
|
|
1664
|
+
_: 1
|
|
1665
|
+
}, 8, ["filter"]));
|
|
1666
|
+
}
|
|
1667
|
+
}), xn = /* @__PURE__ */ S({
|
|
1668
|
+
__name: "FiltersActiveBadge",
|
|
1669
|
+
props: { filter: {} },
|
|
1670
|
+
setup(e) {
|
|
1671
|
+
let t = e;
|
|
1672
|
+
return (e, n) => t.filter.type === O(J).MULTI_SELECT ? (T(), _(bn, {
|
|
1673
|
+
key: 0,
|
|
1674
|
+
filter: t.filter
|
|
1675
|
+
}, null, 8, ["filter"])) : t.filter.type === O(J).MULTI_AUTOCOMPLETE ? (T(), _(bn, {
|
|
1676
|
+
key: 1,
|
|
1677
|
+
filter: t.filter
|
|
1678
|
+
}, null, 8, ["filter"])) : t.filter.type === O(J).BOOLEAN ? (T(), _(Ke, {
|
|
1679
|
+
key: 2,
|
|
1680
|
+
filter: t.filter
|
|
1681
|
+
}, null, 8, ["filter"])) : t.filter.type === O(J).DATE ? (T(), _(hn, {
|
|
1682
|
+
key: 3,
|
|
1683
|
+
filter: t.filter
|
|
1684
|
+
}, null, 8, ["filter"])) : t.filter.type === O(J).NUMBER ? (T(), _(_n, {
|
|
1685
|
+
key: 4,
|
|
1686
|
+
filter: t.filter
|
|
1687
|
+
}, null, 8, ["filter"])) : t.filter.type === O(J).DATE_RANGE ? (T(), _(gn, {
|
|
1688
|
+
key: 5,
|
|
1689
|
+
filter: t.filter
|
|
1690
|
+
}, null, 8, ["filter"])) : v("", !0);
|
|
1691
|
+
}
|
|
1692
|
+
}), Sn = /* @__PURE__ */ S({
|
|
1693
|
+
__name: "FiltersActive",
|
|
1694
|
+
setup(e) {
|
|
1695
|
+
let { activeFilters: t } = M(), n = g(() => t.value.filter((e) => e.isPersistent === !0)), r = g(() => t.value.filter((e) => e.isPersistent !== !0));
|
|
1696
|
+
return (e, i) => (T(), _(O(je), { gap: "xs" }, {
|
|
1697
|
+
default: k(() => [
|
|
1698
|
+
(T(!0), y(h, null, D(n.value, (e) => (T(), _(xn, {
|
|
1699
|
+
key: e.key,
|
|
1700
|
+
filter: e
|
|
1701
|
+
}, null, 8, ["filter"]))), 128)),
|
|
1702
|
+
n.value.length > 0 && r.value.length > 0 ? (T(), _(O(Me), {
|
|
1703
|
+
key: 0,
|
|
1704
|
+
orientation: "vertical",
|
|
1705
|
+
class: "mx-sm h-4"
|
|
1706
|
+
})) : v("", !0),
|
|
1707
|
+
(T(!0), y(h, null, D(r.value, (e) => (T(), _(xn, {
|
|
1708
|
+
key: e.key,
|
|
1709
|
+
filter: e
|
|
1710
|
+
}, null, 8, ["filter"]))), 128)),
|
|
1711
|
+
O(t).length > 0 ? (T(), _(Ue, { key: 1 })) : v("", !0)
|
|
1712
|
+
]),
|
|
1713
|
+
_: 1
|
|
1714
|
+
}));
|
|
1715
|
+
}
|
|
1716
|
+
}), Cn = Symbol("HotkeysContext");
|
|
1717
|
+
function wn() {
|
|
1718
|
+
return C(Cn, null)?.defaultOptions ?? {};
|
|
1719
|
+
}
|
|
1720
|
+
function Y() {
|
|
1721
|
+
if (typeof navigator > "u") return "linux";
|
|
1722
|
+
let e = navigator.platform?.toLowerCase() ?? "", t = navigator.userAgent?.toLowerCase() ?? "";
|
|
1723
|
+
return e.includes("mac") || t.includes("mac") ? "mac" : e.includes("win") || t.includes("win") ? "windows" : "linux";
|
|
1724
|
+
}
|
|
1725
|
+
var X = [
|
|
1726
|
+
"Control",
|
|
1727
|
+
"Alt",
|
|
1728
|
+
"Shift",
|
|
1729
|
+
"Meta"
|
|
1730
|
+
];
|
|
1731
|
+
new Set(X);
|
|
1732
|
+
var Tn = {
|
|
1733
|
+
Control: "Control",
|
|
1734
|
+
Ctrl: "Control",
|
|
1735
|
+
control: "Control",
|
|
1736
|
+
ctrl: "Control",
|
|
1737
|
+
Shift: "Shift",
|
|
1738
|
+
shift: "Shift",
|
|
1739
|
+
Alt: "Alt",
|
|
1740
|
+
Option: "Alt",
|
|
1741
|
+
alt: "Alt",
|
|
1742
|
+
option: "Alt",
|
|
1743
|
+
Command: "Meta",
|
|
1744
|
+
Cmd: "Meta",
|
|
1745
|
+
Meta: "Meta",
|
|
1746
|
+
command: "Meta",
|
|
1747
|
+
cmd: "Meta",
|
|
1748
|
+
meta: "Meta",
|
|
1749
|
+
OS: "Meta",
|
|
1750
|
+
os: "Meta",
|
|
1751
|
+
Win: "Meta",
|
|
1752
|
+
win: "Meta",
|
|
1753
|
+
CommandOrControl: "Mod",
|
|
1754
|
+
Mod: "Mod",
|
|
1755
|
+
commandorcontrol: "Mod",
|
|
1756
|
+
mod: "Mod"
|
|
1757
|
+
};
|
|
1758
|
+
function En(e, t = Y()) {
|
|
1759
|
+
return e === "Mod" ? t === "mac" ? "Meta" : "Control" : e;
|
|
1760
|
+
}
|
|
1761
|
+
var Dn = /* @__PURE__ */ new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), On = /* @__PURE__ */ new Set([
|
|
1762
|
+
"0",
|
|
1763
|
+
"1",
|
|
1764
|
+
"2",
|
|
1765
|
+
"3",
|
|
1766
|
+
"4",
|
|
1767
|
+
"5",
|
|
1768
|
+
"6",
|
|
1769
|
+
"7",
|
|
1770
|
+
"8",
|
|
1771
|
+
"9"
|
|
1772
|
+
]), kn = /* @__PURE__ */ new Set([
|
|
1773
|
+
"F1",
|
|
1774
|
+
"F2",
|
|
1775
|
+
"F3",
|
|
1776
|
+
"F4",
|
|
1777
|
+
"F5",
|
|
1778
|
+
"F6",
|
|
1779
|
+
"F7",
|
|
1780
|
+
"F8",
|
|
1781
|
+
"F9",
|
|
1782
|
+
"F10",
|
|
1783
|
+
"F11",
|
|
1784
|
+
"F12"
|
|
1785
|
+
]), An = /* @__PURE__ */ new Set([
|
|
1786
|
+
"ArrowUp",
|
|
1787
|
+
"ArrowDown",
|
|
1788
|
+
"ArrowLeft",
|
|
1789
|
+
"ArrowRight",
|
|
1790
|
+
"Home",
|
|
1791
|
+
"End",
|
|
1792
|
+
"PageUp",
|
|
1793
|
+
"PageDown"
|
|
1794
|
+
]), jn = /* @__PURE__ */ new Set([
|
|
1795
|
+
"Enter",
|
|
1796
|
+
"Escape",
|
|
1797
|
+
"Space",
|
|
1798
|
+
"Tab",
|
|
1799
|
+
"Backspace",
|
|
1800
|
+
"Delete"
|
|
1801
|
+
]), Mn = /* @__PURE__ */ new Set([
|
|
1802
|
+
"/",
|
|
1803
|
+
"[",
|
|
1804
|
+
"]",
|
|
1805
|
+
"\\",
|
|
1806
|
+
"=",
|
|
1807
|
+
"-",
|
|
1808
|
+
",",
|
|
1809
|
+
".",
|
|
1810
|
+
";",
|
|
1811
|
+
"`"
|
|
1812
|
+
]), Nn = {
|
|
1813
|
+
Backquote: "`",
|
|
1814
|
+
Backslash: "\\",
|
|
1815
|
+
BracketLeft: "[",
|
|
1816
|
+
BracketRight: "]",
|
|
1817
|
+
Comma: ",",
|
|
1818
|
+
Equal: "=",
|
|
1819
|
+
Minus: "-",
|
|
1820
|
+
Period: ".",
|
|
1821
|
+
Semicolon: ";",
|
|
1822
|
+
Slash: "/"
|
|
1823
|
+
};
|
|
1824
|
+
[
|
|
1825
|
+
...Dn,
|
|
1826
|
+
...On,
|
|
1827
|
+
...kn,
|
|
1828
|
+
...An,
|
|
1829
|
+
...jn,
|
|
1830
|
+
...Mn
|
|
1831
|
+
];
|
|
1832
|
+
var Pn = {
|
|
1833
|
+
Esc: "Escape",
|
|
1834
|
+
esc: "Escape",
|
|
1835
|
+
escape: "Escape",
|
|
1836
|
+
Return: "Enter",
|
|
1837
|
+
return: "Enter",
|
|
1838
|
+
enter: "Enter",
|
|
1839
|
+
" ": "Space",
|
|
1840
|
+
space: "Space",
|
|
1841
|
+
Spacebar: "Space",
|
|
1842
|
+
spacebar: "Space",
|
|
1843
|
+
tab: "Tab",
|
|
1844
|
+
backspace: "Backspace",
|
|
1845
|
+
Del: "Delete",
|
|
1846
|
+
del: "Delete",
|
|
1847
|
+
delete: "Delete",
|
|
1848
|
+
Up: "ArrowUp",
|
|
1849
|
+
up: "ArrowUp",
|
|
1850
|
+
arrowup: "ArrowUp",
|
|
1851
|
+
Down: "ArrowDown",
|
|
1852
|
+
down: "ArrowDown",
|
|
1853
|
+
arrowdown: "ArrowDown",
|
|
1854
|
+
Left: "ArrowLeft",
|
|
1855
|
+
left: "ArrowLeft",
|
|
1856
|
+
arrowleft: "ArrowLeft",
|
|
1857
|
+
Right: "ArrowRight",
|
|
1858
|
+
right: "ArrowRight",
|
|
1859
|
+
arrowright: "ArrowRight",
|
|
1860
|
+
home: "Home",
|
|
1861
|
+
end: "End",
|
|
1862
|
+
pageup: "PageUp",
|
|
1863
|
+
pagedown: "PageDown",
|
|
1864
|
+
PgUp: "PageUp",
|
|
1865
|
+
PgDn: "PageDown",
|
|
1866
|
+
pgup: "PageUp",
|
|
1867
|
+
pgdn: "PageDown"
|
|
1868
|
+
};
|
|
1869
|
+
function Fn(e) {
|
|
1870
|
+
return /^\p{Letter}$/u.test(e);
|
|
1871
|
+
}
|
|
1872
|
+
function Z(e) {
|
|
1873
|
+
if (!e) return "";
|
|
1874
|
+
if (e in Pn) return Pn[e];
|
|
1875
|
+
if (Fn(e)) {
|
|
1876
|
+
let t = e.toUpperCase();
|
|
1877
|
+
return t.length === 1 ? t : e;
|
|
1878
|
+
}
|
|
1879
|
+
let t = e.toUpperCase();
|
|
1880
|
+
return /^F([1-9]|1[0-2])$/.test(t) ? t : e;
|
|
1881
|
+
}
|
|
1882
|
+
function In(e, t = Y()) {
|
|
1883
|
+
let n = e.split("+"), r = /* @__PURE__ */ new Set(), i = "";
|
|
1884
|
+
for (let e = 0; e < n.length; e++) {
|
|
1885
|
+
let a = n[e].trim();
|
|
1886
|
+
if (e === n.length - 1) i = Z(a);
|
|
1887
|
+
else {
|
|
1888
|
+
let e = Tn[a] ?? Tn[a.toLowerCase()];
|
|
1889
|
+
if (e) {
|
|
1890
|
+
let n = En(e, t);
|
|
1891
|
+
r.add(n);
|
|
1892
|
+
} else n.length === 1 && (i = Z(a));
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
return !i && n.length > 0 && (i = Z(n[n.length - 1].trim())), {
|
|
1896
|
+
key: i,
|
|
1897
|
+
ctrl: r.has("Control"),
|
|
1898
|
+
shift: r.has("Shift"),
|
|
1899
|
+
alt: r.has("Alt"),
|
|
1900
|
+
meta: r.has("Meta"),
|
|
1901
|
+
modifiers: X.filter((e) => r.has(e))
|
|
1902
|
+
};
|
|
1903
|
+
}
|
|
1904
|
+
function Ln(e, t = Y()) {
|
|
1905
|
+
let n = e.ctrl ?? !1, r = e.shift ?? !1, i = e.alt ?? !1, a = e.meta ?? !1;
|
|
1906
|
+
e.mod && (En("Mod", t) === "Control" ? n = !0 : a = !0);
|
|
1907
|
+
let o = X.filter((e) => {
|
|
1908
|
+
switch (e) {
|
|
1909
|
+
case "Control": return n;
|
|
1910
|
+
case "Shift": return r;
|
|
1911
|
+
case "Alt": return i;
|
|
1912
|
+
case "Meta": return a;
|
|
1913
|
+
default: return !1;
|
|
1914
|
+
}
|
|
1915
|
+
});
|
|
1916
|
+
return {
|
|
1917
|
+
key: e.key,
|
|
1918
|
+
ctrl: n,
|
|
1919
|
+
shift: r,
|
|
1920
|
+
alt: i,
|
|
1921
|
+
meta: a,
|
|
1922
|
+
modifiers: o
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
function Rn(e, t) {
|
|
1926
|
+
let n = t === "mac" ? e.meta && !e.ctrl : e.ctrl && !e.meta, r = [];
|
|
1927
|
+
if (n) r.push("Mod"), e.alt && r.push("Alt"), e.shift && r.push("Shift");
|
|
1928
|
+
else for (let t of X) e.modifiers.includes(t) && r.push(t);
|
|
1929
|
+
return r.push(Z(e.key)), r.join("+");
|
|
1930
|
+
}
|
|
1931
|
+
function zn(e, t = Y()) {
|
|
1932
|
+
return Rn(In(e, t), t);
|
|
1933
|
+
}
|
|
1934
|
+
function Bn(e, t = Y()) {
|
|
1935
|
+
return Rn(e, t);
|
|
1936
|
+
}
|
|
1937
|
+
function Vn(e, t = Y()) {
|
|
1938
|
+
return typeof e == "string" ? zn(e, t) : Bn(Ln(e, t), t);
|
|
1939
|
+
}
|
|
1940
|
+
function Hn(e) {
|
|
1941
|
+
let t = [];
|
|
1942
|
+
for (let n of X) e.modifiers.includes(n) && t.push(n);
|
|
1943
|
+
return t.push(e.key), t.join("+");
|
|
1944
|
+
}
|
|
1945
|
+
function Un(e, t, n = Y()) {
|
|
1946
|
+
let r = typeof t == "string" ? In(t, n) : t;
|
|
1947
|
+
if (e.ctrlKey !== r.ctrl || e.shiftKey !== r.shift || e.altKey !== r.alt || e.metaKey !== r.meta) return !1;
|
|
1948
|
+
let i = Z(e.key), a = r.key;
|
|
1949
|
+
if (i !== "Dead" && i.length === 1 && a.length === 1) {
|
|
1950
|
+
if (i.toUpperCase() === a.toUpperCase()) return !0;
|
|
1951
|
+
if (Fn(i) && (/^[A-Za-z]$/.test(i) || !e.altKey)) return !1;
|
|
1952
|
+
}
|
|
1953
|
+
if (e.code && (i === "Dead" || i.length === 1 && a.length === 1)) {
|
|
1954
|
+
if (e.code.startsWith("Key")) {
|
|
1955
|
+
let t = e.code.slice(3);
|
|
1956
|
+
if (t.length === 1 && /^[A-Za-z]$/.test(t)) return t.toUpperCase() === a.toUpperCase();
|
|
1957
|
+
}
|
|
1958
|
+
if (e.code.startsWith("Digit")) {
|
|
1959
|
+
let t = e.code.slice(5);
|
|
1960
|
+
if (t.length === 1 && /^[0-9]$/.test(t)) return t === a;
|
|
1961
|
+
}
|
|
1962
|
+
return e.code in Nn && Nn[e.code] === a;
|
|
1963
|
+
}
|
|
1964
|
+
return i === a;
|
|
1965
|
+
}
|
|
1966
|
+
var Wn = {
|
|
1967
|
+
preventDefault: !0,
|
|
1968
|
+
stopPropagation: !0,
|
|
1969
|
+
eventType: "keydown",
|
|
1970
|
+
enabled: !0,
|
|
1971
|
+
ignoreInputs: !0,
|
|
1972
|
+
conflictBehavior: "warn"
|
|
1973
|
+
};
|
|
1974
|
+
function Gn(e) {
|
|
1975
|
+
return !(e.ctrl || e.meta || e.key === "Escape");
|
|
1976
|
+
}
|
|
1977
|
+
function Kn(e) {
|
|
1978
|
+
if (!e) return !1;
|
|
1979
|
+
if (e instanceof HTMLInputElement) {
|
|
1980
|
+
let t = e.type.toLowerCase();
|
|
1981
|
+
return t !== "button" && t !== "submit" && t !== "reset";
|
|
1982
|
+
}
|
|
1983
|
+
return !!(e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement || e instanceof HTMLElement && e.isContentEditable);
|
|
1984
|
+
}
|
|
1985
|
+
function qn(e) {
|
|
1986
|
+
return typeof document > "u" ? null : typeof Document < "u" && e instanceof Document || typeof Node < "u" && e.nodeType === Node.DOCUMENT_NODE ? e.activeElement : typeof HTMLElement < "u" && e instanceof HTMLElement ? e.ownerDocument.activeElement ?? null : e.document.activeElement ?? null;
|
|
1987
|
+
}
|
|
1988
|
+
function Jn(e, t, n) {
|
|
1989
|
+
let r = qn(t);
|
|
1990
|
+
return r && Kn(r) && r !== n || e.composedPath().some((e) => Kn(e) && e !== n) ? !0 : Kn(e.target) && e.target !== n;
|
|
1991
|
+
}
|
|
1992
|
+
function Yn(e, t) {
|
|
1993
|
+
return t === document || t === window ? e.currentTarget === t || e.currentTarget === document.documentElement : t === window ? e.currentTarget === window || e.currentTarget === document || e.currentTarget === document.documentElement : !!(t instanceof HTMLElement && (e.currentTarget === t || e.target instanceof Node && t.contains(e.target)));
|
|
1994
|
+
}
|
|
1995
|
+
function Xn(e, t, n, r) {
|
|
1996
|
+
if (n !== "allow") {
|
|
1997
|
+
if (n === "warn") {
|
|
1998
|
+
console.warn(`'${t}' is already registered. Multiple handlers will be triggered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to suppress this warning.`);
|
|
1999
|
+
return;
|
|
2000
|
+
}
|
|
2001
|
+
if (n === "error") throw Error(`'${t}' is already registered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to allow multiple registrations.`);
|
|
2002
|
+
r(e);
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
var Q = /* @__PURE__ */ function(e) {
|
|
2006
|
+
return e[e.None = 0] = "None", e[e.Mutable = 1] = "Mutable", e[e.Watching = 2] = "Watching", e[e.RecursedCheck = 4] = "RecursedCheck", e[e.Recursed = 8] = "Recursed", e[e.Dirty = 16] = "Dirty", e[e.Pending = 32] = "Pending", e;
|
|
2007
|
+
}({});
|
|
2008
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2009
|
+
function Zn({ update: e, notify: t, unwatched: n }) {
|
|
2010
|
+
return {
|
|
2011
|
+
link: r,
|
|
2012
|
+
unlink: i,
|
|
2013
|
+
propagate: a,
|
|
2014
|
+
checkDirty: o,
|
|
2015
|
+
shallowPropagate: s
|
|
2016
|
+
};
|
|
2017
|
+
function r(e, t, n) {
|
|
2018
|
+
let r = t.depsTail;
|
|
2019
|
+
if (r !== void 0 && r.dep === e) return;
|
|
2020
|
+
let i = r === void 0 ? t.deps : r.nextDep;
|
|
2021
|
+
if (i !== void 0 && i.dep === e) {
|
|
2022
|
+
i.version = n, t.depsTail = i;
|
|
2023
|
+
return;
|
|
2024
|
+
}
|
|
2025
|
+
let a = e.subsTail;
|
|
2026
|
+
if (a !== void 0 && a.version === n && a.sub === t) return;
|
|
2027
|
+
let o = t.depsTail = e.subsTail = {
|
|
2028
|
+
version: n,
|
|
2029
|
+
dep: e,
|
|
2030
|
+
sub: t,
|
|
2031
|
+
prevDep: r,
|
|
2032
|
+
nextDep: i,
|
|
2033
|
+
prevSub: a,
|
|
2034
|
+
nextSub: void 0
|
|
2035
|
+
};
|
|
2036
|
+
i !== void 0 && (i.prevDep = o), r === void 0 ? t.deps = o : r.nextDep = o, a === void 0 ? e.subs = o : a.nextSub = o;
|
|
2037
|
+
}
|
|
2038
|
+
function i(e, t = e.sub) {
|
|
2039
|
+
let r = e.dep, i = e.prevDep, a = e.nextDep, o = e.nextSub, s = e.prevSub;
|
|
2040
|
+
return a === void 0 ? t.depsTail = i : a.prevDep = i, i === void 0 ? t.deps = a : i.nextDep = a, o === void 0 ? r.subsTail = s : o.prevSub = s, s === void 0 ? (r.subs = o) === void 0 && n(r) : s.nextSub = o, a;
|
|
2041
|
+
}
|
|
2042
|
+
function a(e) {
|
|
2043
|
+
let n = e.nextSub, r;
|
|
2044
|
+
top: do {
|
|
2045
|
+
let i = e.sub, a = i.flags;
|
|
2046
|
+
if (a & (Q.RecursedCheck | Q.Recursed | Q.Dirty | Q.Pending) ? a & (Q.RecursedCheck | Q.Recursed) ? a & Q.RecursedCheck ? !(a & (Q.Dirty | Q.Pending)) && c(e, i) ? (i.flags = a | (Q.Recursed | Q.Pending), a &= Q.Mutable) : a = Q.None : i.flags = a & ~Q.Recursed | Q.Pending : a = Q.None : i.flags = a | Q.Pending, a & Q.Watching && t(i), a & Q.Mutable) {
|
|
2047
|
+
let t = i.subs;
|
|
2048
|
+
if (t !== void 0) {
|
|
2049
|
+
let i = (e = t).nextSub;
|
|
2050
|
+
i !== void 0 && (r = {
|
|
2051
|
+
value: n,
|
|
2052
|
+
prev: r
|
|
2053
|
+
}, n = i);
|
|
2054
|
+
continue;
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
if ((e = n) !== void 0) {
|
|
2058
|
+
n = e.nextSub;
|
|
2059
|
+
continue;
|
|
2060
|
+
}
|
|
2061
|
+
for (; r !== void 0;) if (e = r.value, r = r.prev, e !== void 0) {
|
|
2062
|
+
n = e.nextSub;
|
|
2063
|
+
continue top;
|
|
2064
|
+
}
|
|
2065
|
+
break;
|
|
2066
|
+
} while (!0);
|
|
2067
|
+
}
|
|
2068
|
+
function o(t, n) {
|
|
2069
|
+
let r, i = 0, a = !1;
|
|
2070
|
+
top: do {
|
|
2071
|
+
let o = t.dep, c = o.flags;
|
|
2072
|
+
if (n.flags & Q.Dirty) a = !0;
|
|
2073
|
+
else if ((c & (Q.Mutable | Q.Dirty)) === (Q.Mutable | Q.Dirty)) {
|
|
2074
|
+
if (e(o)) {
|
|
2075
|
+
let e = o.subs;
|
|
2076
|
+
e.nextSub !== void 0 && s(e), a = !0;
|
|
2077
|
+
}
|
|
2078
|
+
} else if ((c & (Q.Mutable | Q.Pending)) === (Q.Mutable | Q.Pending)) {
|
|
2079
|
+
(t.nextSub !== void 0 || t.prevSub !== void 0) && (r = {
|
|
2080
|
+
value: t,
|
|
2081
|
+
prev: r
|
|
2082
|
+
}), t = o.deps, n = o, ++i;
|
|
2083
|
+
continue;
|
|
2084
|
+
}
|
|
2085
|
+
if (!a) {
|
|
2086
|
+
let e = t.nextDep;
|
|
2087
|
+
if (e !== void 0) {
|
|
2088
|
+
t = e;
|
|
2089
|
+
continue;
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
for (; i--;) {
|
|
2093
|
+
let i = n.subs, o = i.nextSub !== void 0;
|
|
2094
|
+
if (o ? (t = r.value, r = r.prev) : t = i, a) {
|
|
2095
|
+
if (e(n)) {
|
|
2096
|
+
o && s(i), n = t.sub;
|
|
2097
|
+
continue;
|
|
2098
|
+
}
|
|
2099
|
+
a = !1;
|
|
2100
|
+
} else n.flags &= ~Q.Pending;
|
|
2101
|
+
n = t.sub;
|
|
2102
|
+
let c = t.nextDep;
|
|
2103
|
+
if (c !== void 0) {
|
|
2104
|
+
t = c;
|
|
2105
|
+
continue top;
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
return a;
|
|
2109
|
+
} while (!0);
|
|
2110
|
+
}
|
|
2111
|
+
function s(e) {
|
|
2112
|
+
do {
|
|
2113
|
+
let n = e.sub, r = n.flags;
|
|
2114
|
+
(r & (Q.Pending | Q.Dirty)) === Q.Pending && (n.flags = r | Q.Dirty, (r & (Q.Watching | Q.RecursedCheck)) === Q.Watching && t(n));
|
|
2115
|
+
} while ((e = e.nextSub) !== void 0);
|
|
2116
|
+
}
|
|
2117
|
+
function c(e, t) {
|
|
2118
|
+
let n = t.depsTail;
|
|
2119
|
+
for (; n !== void 0;) {
|
|
2120
|
+
if (n === e) return !0;
|
|
2121
|
+
n = n.prevDep;
|
|
2122
|
+
}
|
|
2123
|
+
return !1;
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
function Qn(e, t, n) {
|
|
2127
|
+
let r = typeof e == "object", i = r ? e : void 0;
|
|
2128
|
+
return {
|
|
2129
|
+
next: (r ? e.next : e)?.bind(i),
|
|
2130
|
+
error: (r ? e.error : t)?.bind(i),
|
|
2131
|
+
complete: (r ? e.complete : n)?.bind(i)
|
|
2132
|
+
};
|
|
2133
|
+
}
|
|
2134
|
+
var $n = [], er = 0, { link: tr, unlink: nr, propagate: rr, checkDirty: ir, shallowPropagate: ar } = /* @__PURE__ */ Zn({
|
|
2135
|
+
update(e) {
|
|
2136
|
+
return e._update();
|
|
2137
|
+
},
|
|
2138
|
+
notify(e) {
|
|
2139
|
+
$n[sr++] = e, e.flags &= ~Q.Watching;
|
|
2140
|
+
},
|
|
2141
|
+
unwatched(e) {
|
|
2142
|
+
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = Q.Mutable | Q.Dirty, lr(e));
|
|
2143
|
+
}
|
|
2144
|
+
}), or = 0, sr = 0, $, cr = 0;
|
|
2145
|
+
function lr(e) {
|
|
2146
|
+
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
|
|
2147
|
+
for (; n !== void 0;) n = nr(n, e);
|
|
2148
|
+
}
|
|
2149
|
+
function ur() {
|
|
2150
|
+
if (!(cr > 0)) {
|
|
2151
|
+
for (; or < sr;) {
|
|
2152
|
+
let e = $n[or];
|
|
2153
|
+
$n[or++] = void 0, e.notify();
|
|
2154
|
+
}
|
|
2155
|
+
or = 0, sr = 0;
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
function dr(e, t) {
|
|
2159
|
+
let n = typeof e == "function", r = e, i = {
|
|
2160
|
+
_snapshot: n ? void 0 : e,
|
|
2161
|
+
subs: void 0,
|
|
2162
|
+
subsTail: void 0,
|
|
2163
|
+
deps: void 0,
|
|
2164
|
+
depsTail: void 0,
|
|
2165
|
+
flags: n ? Q.None : Q.Mutable,
|
|
2166
|
+
get() {
|
|
2167
|
+
return $ !== void 0 && tr(i, $, er), i._snapshot;
|
|
2168
|
+
},
|
|
2169
|
+
subscribe(e) {
|
|
2170
|
+
let t = Qn(e), n = { current: !1 }, r = fr(() => {
|
|
2171
|
+
i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
|
|
2172
|
+
});
|
|
2173
|
+
return { unsubscribe: () => {
|
|
2174
|
+
r.stop();
|
|
2175
|
+
} };
|
|
2176
|
+
},
|
|
2177
|
+
_update(e) {
|
|
2178
|
+
let a = $, o = t?.compare ?? Object.is;
|
|
2179
|
+
if (n) $ = i, ++er, i.depsTail = void 0;
|
|
2180
|
+
else if (e === void 0) return !1;
|
|
2181
|
+
n && (i.flags = Q.Mutable | Q.RecursedCheck);
|
|
2182
|
+
try {
|
|
2183
|
+
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
|
|
2184
|
+
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
|
|
2185
|
+
} finally {
|
|
2186
|
+
$ = a, n && (i.flags &= ~Q.RecursedCheck), lr(i);
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
};
|
|
2190
|
+
return n ? (i.flags = Q.Mutable | Q.Dirty, i.get = function() {
|
|
2191
|
+
let e = i.flags;
|
|
2192
|
+
if (e & Q.Dirty || e & Q.Pending && ir(i.deps, i)) {
|
|
2193
|
+
if (i._update()) {
|
|
2194
|
+
let e = i.subs;
|
|
2195
|
+
e !== void 0 && ar(e);
|
|
2196
|
+
}
|
|
2197
|
+
} else e & Q.Pending && (i.flags = e & ~Q.Pending);
|
|
2198
|
+
return $ !== void 0 && tr(i, $, er), i._snapshot;
|
|
2199
|
+
}) : i.set = function(e) {
|
|
2200
|
+
if (i._update(e)) {
|
|
2201
|
+
let e = i.subs;
|
|
2202
|
+
e !== void 0 && (rr(e), ar(e), ur());
|
|
2203
|
+
}
|
|
2204
|
+
}, i;
|
|
2205
|
+
}
|
|
2206
|
+
function fr(e) {
|
|
2207
|
+
let t = () => {
|
|
2208
|
+
let t = $;
|
|
2209
|
+
$ = n, ++er, n.depsTail = void 0, n.flags = Q.Watching | Q.RecursedCheck;
|
|
2210
|
+
try {
|
|
2211
|
+
return e();
|
|
2212
|
+
} finally {
|
|
2213
|
+
$ = t, n.flags &= ~Q.RecursedCheck, lr(n);
|
|
2214
|
+
}
|
|
2215
|
+
}, n = {
|
|
2216
|
+
deps: void 0,
|
|
2217
|
+
depsTail: void 0,
|
|
2218
|
+
subs: void 0,
|
|
2219
|
+
subsTail: void 0,
|
|
2220
|
+
flags: Q.Watching | Q.RecursedCheck,
|
|
2221
|
+
notify() {
|
|
2222
|
+
let e = this.flags;
|
|
2223
|
+
e & Q.Dirty || e & Q.Pending && ir(this.deps, this) ? t() : this.flags = Q.Watching;
|
|
2224
|
+
},
|
|
2225
|
+
stop() {
|
|
2226
|
+
this.flags = Q.None, this.depsTail = void 0, lr(this);
|
|
2227
|
+
}
|
|
2228
|
+
};
|
|
2229
|
+
return t(), n;
|
|
2230
|
+
}
|
|
2231
|
+
var pr = class {
|
|
2232
|
+
constructor(e, t) {
|
|
2233
|
+
this.atom = dr(e), this.get = this.get.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), t && (this.actions = t(this));
|
|
2234
|
+
}
|
|
2235
|
+
setState(e) {
|
|
2236
|
+
this.atom.set(e);
|
|
2237
|
+
}
|
|
2238
|
+
get state() {
|
|
2239
|
+
return this.atom.get();
|
|
2240
|
+
}
|
|
2241
|
+
get() {
|
|
2242
|
+
return this.state;
|
|
2243
|
+
}
|
|
2244
|
+
subscribe(e) {
|
|
2245
|
+
return this.atom.subscribe(Qn(e));
|
|
2246
|
+
}
|
|
2247
|
+
}, mr = 0;
|
|
2248
|
+
function hr() {
|
|
2249
|
+
return `hotkey_${++mr}`;
|
|
2250
|
+
}
|
|
2251
|
+
var gr = class e {
|
|
2252
|
+
static #e = null;
|
|
2253
|
+
#t;
|
|
2254
|
+
#n = /* @__PURE__ */ new Map();
|
|
2255
|
+
#r = /* @__PURE__ */ new Map();
|
|
2256
|
+
constructor() {
|
|
2257
|
+
this.registrations = new pr(/* @__PURE__ */ new Map()), this.#t = Y();
|
|
2258
|
+
}
|
|
2259
|
+
static getInstance() {
|
|
2260
|
+
return e.#e ||= new e(), e.#e;
|
|
2261
|
+
}
|
|
2262
|
+
static resetInstance() {
|
|
2263
|
+
e.#e &&= (e.#e.destroy(), null);
|
|
2264
|
+
}
|
|
2265
|
+
register(e, t, n = {}) {
|
|
2266
|
+
if (typeof document > "u" && !n.target) {
|
|
2267
|
+
let e = t;
|
|
2268
|
+
return {
|
|
2269
|
+
id: hr(),
|
|
2270
|
+
unregister: () => {},
|
|
2271
|
+
get callback() {
|
|
2272
|
+
return e;
|
|
2273
|
+
},
|
|
2274
|
+
set callback(t) {
|
|
2275
|
+
e = t;
|
|
2276
|
+
},
|
|
2277
|
+
setOptions: () => {},
|
|
2278
|
+
get isActive() {
|
|
2279
|
+
return !1;
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2282
|
+
}
|
|
2283
|
+
let r = hr(), i = n.platform ?? this.#t, a = typeof e == "string" ? In(e, i) : Ln(e, i), o = typeof e == "string" ? e : Hn(a), s = n.target ?? document, c = n.conflictBehavior ?? "warn", l = this.#d(o, s);
|
|
2284
|
+
l && Xn(l.id, o, c, (e) => this.#i(e));
|
|
2285
|
+
let u = n.ignoreInputs ?? Gn(a), d = {
|
|
2286
|
+
id: r,
|
|
2287
|
+
hotkey: o,
|
|
2288
|
+
parsedHotkey: a,
|
|
2289
|
+
callback: t,
|
|
2290
|
+
options: {
|
|
2291
|
+
...Wn,
|
|
2292
|
+
requireReset: !1,
|
|
2293
|
+
...n,
|
|
2294
|
+
platform: i,
|
|
2295
|
+
ignoreInputs: u
|
|
2296
|
+
},
|
|
2297
|
+
hasFired: !1,
|
|
2298
|
+
triggerCount: 0,
|
|
2299
|
+
target: s
|
|
2300
|
+
};
|
|
2301
|
+
this.registrations.setState((e) => new Map(e).set(r, d)), this.#r.has(s) || this.#r.set(s, /* @__PURE__ */ new Set()), this.#r.get(s).add(r), this.#a(s);
|
|
2302
|
+
let f = this;
|
|
2303
|
+
return {
|
|
2304
|
+
get id() {
|
|
2305
|
+
return r;
|
|
2306
|
+
},
|
|
2307
|
+
unregister: () => {
|
|
2308
|
+
f.#i(r);
|
|
2309
|
+
},
|
|
2310
|
+
get callback() {
|
|
2311
|
+
return f.registrations.state.get(r)?.callback ?? t;
|
|
2312
|
+
},
|
|
2313
|
+
set callback(e) {
|
|
2314
|
+
let t = f.registrations.state.get(r);
|
|
2315
|
+
t && (t.callback = e);
|
|
2316
|
+
},
|
|
2317
|
+
setOptions: (e) => {
|
|
2318
|
+
f.registrations.setState((t) => {
|
|
2319
|
+
let n = t.get(r);
|
|
2320
|
+
if (n) {
|
|
2321
|
+
let i = new Map(t);
|
|
2322
|
+
return i.set(r, {
|
|
2323
|
+
...n,
|
|
2324
|
+
options: {
|
|
2325
|
+
...n.options,
|
|
2326
|
+
...e
|
|
2327
|
+
}
|
|
2328
|
+
}), i;
|
|
2329
|
+
}
|
|
2330
|
+
return t;
|
|
2331
|
+
});
|
|
2332
|
+
},
|
|
2333
|
+
get isActive() {
|
|
2334
|
+
return f.registrations.state.has(r);
|
|
2335
|
+
}
|
|
2336
|
+
};
|
|
2337
|
+
}
|
|
2338
|
+
#i(e) {
|
|
2339
|
+
let t = this.registrations.state.get(e);
|
|
2340
|
+
if (!t) return;
|
|
2341
|
+
let n = t.target;
|
|
2342
|
+
this.registrations.setState((t) => {
|
|
2343
|
+
let n = new Map(t);
|
|
2344
|
+
return n.delete(e), n;
|
|
2345
|
+
});
|
|
2346
|
+
let r = this.#r.get(n);
|
|
2347
|
+
r && (r.delete(e), r.size === 0 && this.#o(n));
|
|
2348
|
+
}
|
|
2349
|
+
#a(e) {
|
|
2350
|
+
if (typeof document > "u" || this.#n.has(e)) return;
|
|
2351
|
+
let t = this.#l(e), n = this.#u(e);
|
|
2352
|
+
e.addEventListener("keydown", t), e.addEventListener("keyup", n), this.#n.set(e, {
|
|
2353
|
+
keydown: t,
|
|
2354
|
+
keyup: n
|
|
2355
|
+
});
|
|
2356
|
+
}
|
|
2357
|
+
#o(e) {
|
|
2358
|
+
if (typeof document > "u") return;
|
|
2359
|
+
let t = this.#n.get(e);
|
|
2360
|
+
t && (e.removeEventListener("keydown", t.keydown), e.removeEventListener("keyup", t.keyup), this.#n.delete(e), this.#r.delete(e));
|
|
2361
|
+
}
|
|
2362
|
+
#s(e, t, n) {
|
|
2363
|
+
let r = this.#r.get(t);
|
|
2364
|
+
if (r) for (let i of r) {
|
|
2365
|
+
let r = this.registrations.state.get(i);
|
|
2366
|
+
if (r && Yn(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && Jn(e, t, r.target))) if (n === "keydown") {
|
|
2367
|
+
if (r.options.eventType !== "keydown") continue;
|
|
2368
|
+
Un(e, r.parsedHotkey, r.options.platform) && (r.options.preventDefault && e.preventDefault(), r.options.stopPropagation && e.stopPropagation(), (!r.options.requireReset || !r.hasFired) && (this.#c(r, e), r.options.requireReset && (r.hasFired = !0)));
|
|
2369
|
+
} else r.options.eventType === "keyup" && Un(e, r.parsedHotkey, r.options.platform) && this.#c(r, e), r.options.requireReset && r.hasFired && this.#f(r, e) && (r.hasFired = !1);
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
#c(e, t) {
|
|
2373
|
+
e.options.preventDefault && t.preventDefault(), e.options.stopPropagation && t.stopPropagation(), e.triggerCount++, this.registrations.setState((e) => new Map(e));
|
|
2374
|
+
let n = {
|
|
2375
|
+
hotkey: e.hotkey,
|
|
2376
|
+
parsedHotkey: e.parsedHotkey
|
|
2377
|
+
};
|
|
2378
|
+
e.callback(t, n);
|
|
2379
|
+
}
|
|
2380
|
+
#l(e) {
|
|
2381
|
+
return (t) => {
|
|
2382
|
+
this.#s(t, e, "keydown");
|
|
2383
|
+
};
|
|
2384
|
+
}
|
|
2385
|
+
#u(e) {
|
|
2386
|
+
return (t) => {
|
|
2387
|
+
this.#s(t, e, "keyup");
|
|
2388
|
+
};
|
|
2389
|
+
}
|
|
2390
|
+
#d(e, t) {
|
|
2391
|
+
for (let n of this.registrations.state.values()) if (n.hotkey === e && n.target === t) return n;
|
|
2392
|
+
return null;
|
|
2393
|
+
}
|
|
2394
|
+
#f(e, t) {
|
|
2395
|
+
let n = e.parsedHotkey, r = Z(t.key), i = n.key.length === 1 ? n.key.toUpperCase() : n.key;
|
|
2396
|
+
return !!((r.length === 1 ? r.toUpperCase() : r) === i || n.ctrl && r === "Control" || n.shift && r === "Shift" || n.alt && r === "Alt" || n.meta && r === "Meta");
|
|
2397
|
+
}
|
|
2398
|
+
triggerRegistration(e) {
|
|
2399
|
+
let t = this.registrations.state.get(e);
|
|
2400
|
+
if (!t) return !1;
|
|
2401
|
+
let n = t.parsedHotkey, r = new KeyboardEvent(t.options.eventType ?? "keydown", {
|
|
2402
|
+
key: n.key,
|
|
2403
|
+
ctrlKey: n.ctrl,
|
|
2404
|
+
shiftKey: n.shift,
|
|
2405
|
+
altKey: n.alt,
|
|
2406
|
+
metaKey: n.meta,
|
|
2407
|
+
bubbles: !0,
|
|
2408
|
+
cancelable: !0
|
|
2409
|
+
});
|
|
2410
|
+
return t.triggerCount++, this.registrations.setState((e) => new Map(e)), t.callback(r, {
|
|
2411
|
+
hotkey: t.hotkey,
|
|
2412
|
+
parsedHotkey: t.parsedHotkey
|
|
2413
|
+
}), !0;
|
|
2414
|
+
}
|
|
2415
|
+
getRegistrationCount() {
|
|
2416
|
+
return this.registrations.state.size;
|
|
2417
|
+
}
|
|
2418
|
+
isRegistered(e, t) {
|
|
2419
|
+
for (let n of this.registrations.state.values()) if (n.hotkey === e && (t === void 0 || n.target === t)) return !0;
|
|
2420
|
+
return !1;
|
|
2421
|
+
}
|
|
2422
|
+
destroy() {
|
|
2423
|
+
for (let e of this.#n.keys()) this.#o(e);
|
|
2424
|
+
this.registrations.setState(() => /* @__PURE__ */ new Map()), this.#n.clear(), this.#r.clear();
|
|
2425
|
+
}
|
|
2426
|
+
};
|
|
2427
|
+
function _r() {
|
|
2428
|
+
return gr.getInstance();
|
|
2429
|
+
}
|
|
2430
|
+
function vr(e, t, n = {}) {
|
|
2431
|
+
let r = wn(), i = _r(), a = null, o = null, s = null, c = se(() => {
|
|
2432
|
+
let t = yr(e), i = yr(n), a = {
|
|
2433
|
+
...r.hotkey,
|
|
2434
|
+
...i
|
|
2435
|
+
};
|
|
2436
|
+
return {
|
|
2437
|
+
resolvedHotkey: t,
|
|
2438
|
+
mergedOptions: a,
|
|
2439
|
+
resolvedEnabled: a.enabled === void 0 ? void 0 : yr(a.enabled),
|
|
2440
|
+
resolvedTarget: a.target === void 0 ? void 0 : yr(a.target)
|
|
2441
|
+
};
|
|
2442
|
+
}, ({ resolvedHotkey: e, mergedOptions: n, resolvedEnabled: r, resolvedTarget: c }) => {
|
|
2443
|
+
let l = Vn(e, n.platform ?? Y()), u = c === void 0 ? typeof document < "u" ? document : null : c;
|
|
2444
|
+
if (!u) {
|
|
2445
|
+
a?.isActive && (a.unregister(), a = null), o = null, s = null;
|
|
2446
|
+
return;
|
|
2447
|
+
}
|
|
2448
|
+
let { target: d, enabled: f, ...p } = n, m = {
|
|
2449
|
+
...p,
|
|
2450
|
+
...r === void 0 ? {} : { enabled: r }
|
|
2451
|
+
};
|
|
2452
|
+
if (a?.isActive && o === l && s === u) {
|
|
2453
|
+
a.callback = t, a.setOptions(m);
|
|
2454
|
+
return;
|
|
2455
|
+
}
|
|
2456
|
+
a?.isActive && (a.unregister(), a = null), a = i.register(l, t, {
|
|
2457
|
+
...m,
|
|
2458
|
+
target: u
|
|
2459
|
+
}), a.isActive && (a.callback = t, a.setOptions(m)), o = l, s = u;
|
|
2460
|
+
}, { immediate: !0 });
|
|
2461
|
+
te(() => {
|
|
2462
|
+
c(), a?.isActive && (a.unregister(), a = null);
|
|
2463
|
+
});
|
|
2464
|
+
}
|
|
2465
|
+
function yr(e) {
|
|
2466
|
+
return typeof e == "function" ? e() : O(e);
|
|
2467
|
+
}
|
|
2468
|
+
var br = /* @__PURE__ */ S({
|
|
2469
|
+
__name: "FiltersDropdownMenu",
|
|
2470
|
+
setup(e) {
|
|
2471
|
+
let t = m(), { action: r } = M(), i = E(!1);
|
|
2472
|
+
return vr("F", () => {
|
|
2473
|
+
i.value = !0;
|
|
2474
|
+
}), (e, a) => (T(), _(O(le), {
|
|
2475
|
+
"is-open": i.value,
|
|
2476
|
+
"onUpdate:isOpen": a[0] ||= (e) => i.value = e,
|
|
2477
|
+
"parent-action": O(r),
|
|
2478
|
+
"popover-collision-padding": 10,
|
|
2479
|
+
"is-current-context-only": !1,
|
|
2480
|
+
"popover-align": "start",
|
|
2481
|
+
"popover-side": "bottom"
|
|
2482
|
+
}, {
|
|
2483
|
+
default: k(() => [x(O(pe), {
|
|
2484
|
+
"keyboard-shortcut": { key: "F" },
|
|
2485
|
+
"icon-left": O(n),
|
|
2486
|
+
label: O(t).t("component.filters_dropdown_menu.filter"),
|
|
2487
|
+
"tooltip-label": O(t).t("component.filters_dropdown_menu.add_filter"),
|
|
2488
|
+
variant: "secondary"
|
|
2489
|
+
}, null, 8, [
|
|
2490
|
+
"icon-left",
|
|
2491
|
+
"label",
|
|
2492
|
+
"tooltip-label"
|
|
2493
|
+
])]),
|
|
2494
|
+
_: 1
|
|
2495
|
+
}, 8, ["is-open", "parent-action"]));
|
|
2496
|
+
}
|
|
2497
|
+
});
|
|
2498
|
+
//#endregion
|
|
2499
|
+
export { cn as a, un as c, dn as d, ln as f, mn as i, fn as l, He as n, Sn as o, Be as p, an as r, br as s, sn as t, q as u };
|