@myparcel-dev/pdk-admin 1.14.0 → 1.14.2
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/CHANGELOG.md +15 -0
- package/package.json +3 -3
- package/src/composables/useDigitalStampRanges.ts +9 -5
- package/src/forms/shipmentOptions/createShipmentOptionsForm.ts +2 -2
- package/src/forms/shipmentOptions/fields/createDigitalStampRangeField.ts +8 -6
- package/dist/__tests__/doComponentTestSetup.d.ts +0 -2
- package/dist/__tests__/doComponentTestTeardown.d.ts +0 -1
- package/dist/__tests__/index.d.ts +0 -3
- package/dist/__tests__/mocks/index.d.ts +0 -14
- package/dist/__tests__/mocks/mockDefaultAccount.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultAppConfig.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultAppInfo.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultCarriers.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultConfig.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultDynamicContext.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultEndpoints.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultGlobalContext.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultLogger.d.ts +0 -1
- package/dist/__tests__/mocks/mockDefaultPlatform.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultPluginSettings.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultPrintOptionsView.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultShop.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultTranslations.d.ts +0 -2
- package/dist/actions/composables/index.d.ts +0 -2
- package/dist/actions/composables/mutations/account/index.d.ts +0 -2
- package/dist/actions/composables/mutations/account/useDeleteAccountMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/account/useUpdateAccountMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/debug/index.d.ts +0 -3
- package/dist/actions/composables/mutations/debug/useDownloadLogsMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/debug/useSwitchToAcceptanceApiMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/debug/useSwitchToProductionApiMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/index.d.ts +0 -7
- package/dist/actions/composables/mutations/orders/index.d.ts +0 -3
- package/dist/actions/composables/mutations/orders/useExportOrdersMutation.d.ts +0 -5
- package/dist/actions/composables/mutations/orders/usePrintOrdersMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/orders/useUpdateOrdersMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/settings/index.d.ts +0 -2
- package/dist/actions/composables/mutations/settings/useUpdatePluginSettingsMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/settings/useUpdateProductSettingsMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/shipments/index.d.ts +0 -4
- package/dist/actions/composables/mutations/shipments/useDeleteShipmentsMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/shipments/useExportReturnMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/shipments/usePrintShipmentsMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/shipments/useUpdateShipmentsMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/usePdkMutation.d.ts +0 -15
- package/dist/actions/composables/mutations/webhooks/index.d.ts +0 -2
- package/dist/actions/composables/mutations/webhooks/useCreateWebhooksMutation.d.ts +0 -1
- package/dist/actions/composables/mutations/webhooks/useDeleteWebhooksMutation.d.ts +0 -3
- package/dist/actions/composables/queries/account/index.d.ts +0 -1
- package/dist/actions/composables/queries/account/useFetchContextQuery.d.ts +0 -3
- package/dist/actions/composables/queries/index.d.ts +0 -6
- package/dist/actions/composables/queries/orders/index.d.ts +0 -1
- package/dist/actions/composables/queries/orders/useFetchOrdersQuery.d.ts +0 -3
- package/dist/actions/composables/queries/products/index.d.ts +0 -1
- package/dist/actions/composables/queries/products/useFetchProductsQuery.d.ts +0 -3
- package/dist/actions/composables/queries/queryKeys.d.ts +0 -2
- package/dist/actions/composables/queries/shipments/index.d.ts +0 -1
- package/dist/actions/composables/queries/shipments/useFetchShipmentsQuery.d.ts +0 -4
- package/dist/actions/composables/queries/webhooks/index.d.ts +0 -1
- package/dist/actions/composables/queries/webhooks/useFetchWebhooksQuery.d.ts +0 -3
- package/dist/actions/defineAction.d.ts +0 -8
- package/dist/actions/definitions/account.d.ts +0 -13
- package/dist/actions/definitions/context.d.ts +0 -6
- package/dist/actions/definitions/debug.d.ts +0 -13
- package/dist/actions/definitions/index.d.ts +0 -8
- package/dist/actions/definitions/modal.d.ts +0 -17
- package/dist/actions/definitions/orders.d.ts +0 -38
- package/dist/actions/definitions/settings.d.ts +0 -2
- package/dist/actions/definitions/shipments.d.ts +0 -15
- package/dist/actions/definitions/webhooks.d.ts +0 -4
- package/dist/actions/executors/createHandlerWithParameters.d.ts +0 -5
- package/dist/actions/executors/createMutationHandler.d.ts +0 -3
- package/dist/actions/executors/createOrdersMutationHandler.d.ts +0 -2
- package/dist/actions/executors/createQueryHandler.d.ts +0 -3
- package/dist/actions/executors/createShipmentsMutationHandler.d.ts +0 -2
- package/dist/actions/executors/doMutate.d.ts +0 -4
- package/dist/actions/executors/executeAction.d.ts +0 -6
- package/dist/actions/executors/executeAfterHandle.d.ts +0 -3
- package/dist/actions/executors/executeBeforeHandle.d.ts +0 -4
- package/dist/actions/executors/executeHandler.d.ts +0 -3
- package/dist/actions/executors/executeNextAction.d.ts +0 -6
- package/dist/actions/executors/index.d.ts +0 -14
- package/dist/actions/executors/resolveOrderParameters.d.ts +0 -3
- package/dist/actions/executors/resolveQuerySuffix.d.ts +0 -3
- package/dist/actions/executors/types.d.ts +0 -19
- package/dist/actions/index.d.ts +0 -6
- package/dist/actions/print/index.d.ts +0 -3
- package/dist/actions/print/openOrPrintPdf.d.ts +0 -3
- package/dist/actions/print/resolvePrintParameters.d.ts +0 -3
- package/dist/actions/print/waitForLabelPrompt.d.ts +0 -3
- package/dist/actions/stopActionHandler.d.ts +0 -2
- package/dist/components/OrderBox/OrderShipmentsTable.vue.d.ts +0 -6
- package/dist/components/OrderBox/OrderShipmentsTableRow.vue.d.ts +0 -21
- package/dist/components/OrderBox/ShipmentOptionsBox.vue.d.ts +0 -2
- package/dist/components/OrderBox/ShipmentTableBox.vue.d.ts +0 -2
- package/dist/components/OrderListItem/OrderModeOrderListItem.vue.d.ts +0 -2
- package/dist/components/OrderListItem/ShipmentLabel.vue.d.ts +0 -15
- package/dist/components/OrderListItem/ShipmentModeOrderListItem.vue.d.ts +0 -2
- package/dist/components/PluginSettings/AccountSettings.vue.d.ts +0 -2
- package/dist/components/PluginSettings/DebugOptions.vue.d.ts +0 -2
- package/dist/components/PluginSettings/EditApiKeyForm.vue.d.ts +0 -7
- package/dist/components/PluginSettings/PluginSettingsForms.vue.d.ts +0 -2
- package/dist/components/PluginSettings/WebhooksStatus.vue.d.ts +0 -2
- package/dist/components/PluginSettings/createUpdateAccountSettingsValidator.d.ts +0 -4
- package/dist/components/common/ActionButton.vue.d.ts +0 -52
- package/dist/components/common/BulkSelectCheckbox.vue.d.ts +0 -22
- package/dist/components/common/CarrierLogo.vue.d.ts +0 -16
- package/dist/components/common/DateRelative.vue.d.ts +0 -16
- package/dist/components/common/DeliveryOptionsDeliveryType.vue.d.ts +0 -16
- package/dist/components/common/DeliveryOptionsExcerpt.vue.d.ts +0 -2
- package/dist/components/common/DeliveryOptionsExcerptCarrierName.vue.d.ts +0 -16
- package/dist/components/common/DeliveryOptionsPackageType.vue.d.ts +0 -16
- package/dist/components/common/DigitalStampWeightRange.vue.d.ts +0 -15
- package/dist/components/common/NotificationContainer.vue.d.ts +0 -19
- package/dist/components/common/PackageType.vue.d.ts +0 -16
- package/dist/components/common/PlainElement.d.ts +0 -2
- package/dist/components/common/ResetButton.vue.d.ts +0 -15
- package/dist/components/common/ReturnsForm.vue.d.ts +0 -14
- package/dist/components/common/ShipmentBarcode.vue.d.ts +0 -15
- package/dist/components/common/ShipmentOptionsForm.vue.d.ts +0 -16
- package/dist/components/common/ShipmentStatus.vue.d.ts +0 -15
- package/dist/components/common/StatusIndicator.vue.d.ts +0 -23
- package/dist/components/common/SubmitButton.vue.d.ts +0 -15
- package/dist/components/common/TabNavigation.vue.d.ts +0 -66
- package/dist/components/common/index.d.ts +0 -20
- package/dist/components/index.d.ts +0 -1
- package/dist/components/modals/PrintOptionsModal.vue.d.ts +0 -2
- package/dist/components/modals/PrintOptionsModalForm.vue.d.ts +0 -2
- package/dist/components/modals/ShipmentOptionsModal.vue.d.ts +0 -2
- package/dist/components/modals/ShipmentOptionsModalForm.vue.d.ts +0 -16
- package/dist/composables/components/index.d.ts +0 -15
- package/dist/composables/components/useBulkSelectCheckbox.d.ts +0 -9
- package/dist/composables/components/useCheckboxGroupContext.d.ts +0 -4
- package/dist/composables/components/useDropOffInputContext.d.ts +0 -13
- package/dist/composables/components/useDropdownButtonContext.d.ts +0 -15
- package/dist/composables/components/useElementContext.d.ts +0 -7
- package/dist/composables/components/useElementOptions.d.ts +0 -6
- package/dist/composables/components/useInputWithOptionsContext.d.ts +0 -10
- package/dist/composables/components/useModalElementContext.d.ts +0 -11
- package/dist/composables/components/useMultiSelectInputContext.d.ts +0 -4
- package/dist/composables/components/useRadioGroupContext.d.ts +0 -10
- package/dist/composables/components/useSelectInputContext.d.ts +0 -4
- package/dist/composables/components/useShippingMethodsInputContext.d.ts +0 -13
- package/dist/composables/components/useTableContext.d.ts +0 -7
- package/dist/composables/components/useToggleInputContext.d.ts +0 -11
- package/dist/composables/components/useTriStateInputContext.d.ts +0 -17
- package/dist/composables/context/index.d.ts +0 -7
- package/dist/composables/context/useAppInfo.d.ts +0 -2
- package/dist/composables/context/useContext.d.ts +0 -3
- package/dist/composables/context/useGlobalContext.d.ts +0 -2
- package/dist/composables/context/useInstanceContext.d.ts +0 -8
- package/dist/composables/context/useModalContext.d.ts +0 -11
- package/dist/composables/context/useModalOrder.d.ts +0 -1
- package/dist/composables/context/usePluginSettings.d.ts +0 -2
- package/dist/composables/formatter/default/createCurrencyFormat.d.ts +0 -1
- package/dist/composables/formatter/default/createLongDateFormat.d.ts +0 -1
- package/dist/composables/formatter/default/createRelativeTimeFormat.d.ts +0 -1
- package/dist/composables/formatter/default/defaultCurrencyFormatters.d.ts +0 -2
- package/dist/composables/formatter/default/defaultDateFormatters.d.ts +0 -4
- package/dist/composables/formatter/default/index.d.ts +0 -6
- package/dist/composables/formatter/default/parseDate.d.ts +0 -1
- package/dist/composables/formatter/formatter.types.d.ts +0 -23
- package/dist/composables/formatter/index.d.ts +0 -4
- package/dist/composables/formatter/useFormatter.d.ts +0 -2
- package/dist/composables/formatter/useLocalizedFormatter.d.ts +0 -2
- package/dist/composables/index.d.ts +0 -17
- package/dist/composables/language/index.d.ts +0 -4
- package/dist/composables/language/resolveTranslatedString.d.ts +0 -3
- package/dist/composables/language/resolveTranslationKey.d.ts +0 -2
- package/dist/composables/language/types.d.ts +0 -1
- package/dist/composables/language/useLanguage.d.ts +0 -23
- package/dist/composables/orders/index.d.ts +0 -3
- package/dist/composables/orders/useOrder.d.ts +0 -3
- package/dist/composables/orders/useOrderData.d.ts +0 -9
- package/dist/composables/orders/useOrdersData.d.ts +0 -3
- package/dist/composables/products/index.d.ts +0 -1
- package/dist/composables/products/useProductData.d.ts +0 -8
- package/dist/composables/shipments/index.d.ts +0 -3
- package/dist/composables/shipments/useShipment.d.ts +0 -3
- package/dist/composables/shipments/useShipmentData.d.ts +0 -12
- package/dist/composables/shipments/useShipmentsData.d.ts +0 -2
- package/dist/composables/useAdminConfig.d.ts +0 -2
- package/dist/composables/useAdminInstance.d.ts +0 -2
- package/dist/composables/useDigitalStampRanges.d.ts +0 -9
- package/dist/composables/useGlobalPdkAdmin.d.ts +0 -2
- package/dist/composables/useLoadMore.d.ts +0 -14
- package/dist/composables/useLoading.d.ts +0 -10
- package/dist/composables/useLogger.d.ts +0 -2
- package/dist/composables/useStoreContextQuery.d.ts +0 -3
- package/dist/composables/useStoreQuery.d.ts +0 -4
- package/dist/composables/useWeekdays.d.ts +0 -9
- package/dist/data/components.d.ts +0 -195
- package/dist/data/constants.d.ts +0 -63
- package/dist/data/endpoints.d.ts +0 -5
- package/dist/data/index.d.ts +0 -4
- package/dist/data/view.d.ts +0 -9
- package/dist/deprecated.d.ts +0 -6
- package/dist/forms/createReturnsForm.d.ts +0 -1
- package/dist/forms/form-builder/builders/buildAfterUpdate.d.ts +0 -3
- package/dist/forms/form-builder/builders/buildFormStateWatcher.d.ts +0 -3
- package/dist/forms/form-builder/builders/index.d.ts +0 -2
- package/dist/forms/form-builder/conditions/index.d.ts +0 -3
- package/dist/forms/form-builder/conditions/validateIfCondition.d.ts +0 -2
- package/dist/forms/form-builder/conditions/validateIfConditions.d.ts +0 -2
- package/dist/forms/form-builder/conditions/validateIsTruthy.d.ts +0 -2
- package/dist/forms/form-builder/index.d.ts +0 -5
- package/dist/forms/form-builder/operations/executeCustomOperationHandlers.d.ts +0 -2
- package/dist/forms/form-builder/operations/executeOperation.d.ts +0 -2
- package/dist/forms/form-builder/operations/executeOperations.d.ts +0 -2
- package/dist/forms/form-builder/operations/executeSetPropOperation.d.ts +0 -2
- package/dist/forms/form-builder/operations/executeSetValueOperation.d.ts +0 -2
- package/dist/forms/form-builder/operations/index.d.ts +0 -5
- package/dist/forms/form-builder/operations/parseBuilders.d.ts +0 -3
- package/dist/forms/form-builder/types/FormCondition.types.d.ts +0 -36
- package/dist/forms/form-builder/types/FormOperations.types.d.ts +0 -16
- package/dist/forms/form-builder/types/SubOperationBuilder.types.d.ts +0 -13
- package/dist/forms/form-builder/types/common.types.d.ts +0 -21
- package/dist/forms/form-builder/types/index.d.ts +0 -4
- package/dist/forms/form-builder/utils/createPropSetter.d.ts +0 -4
- package/dist/forms/form-builder/utils/createValueGetter.d.ts +0 -4
- package/dist/forms/form-builder/utils/createValueSetter.d.ts +0 -4
- package/dist/forms/form-builder/utils/index.d.ts +0 -4
- package/dist/forms/formKeys.d.ts +0 -10
- package/dist/forms/helpers/addBulkEditNotification.d.ts +0 -1
- package/dist/forms/helpers/createDefaultOption.d.ts +0 -3
- package/dist/forms/helpers/createHasShipmentOptionWatcher.d.ts +0 -3
- package/dist/forms/helpers/createLabel.d.ts +0 -1
- package/dist/forms/helpers/defineFormField.d.ts +0 -2
- package/dist/forms/helpers/getCarrier.d.ts +0 -3
- package/dist/forms/helpers/getDeliveryTypes.d.ts +0 -3
- package/dist/forms/helpers/getFieldLabel.d.ts +0 -2
- package/dist/forms/helpers/getFormCarrierName.d.ts +0 -2
- package/dist/forms/helpers/getInsuranceOptions.d.ts +0 -3
- package/dist/forms/helpers/getPackageTypes.d.ts +0 -3
- package/dist/forms/helpers/hasPostNlAgeCheck.d.ts +0 -2
- package/dist/forms/helpers/hasShipmentOption.d.ts +0 -3
- package/dist/forms/helpers/index.d.ts +0 -21
- package/dist/forms/helpers/isPackageTypeMailbox.d.ts +0 -2
- package/dist/forms/helpers/isPackageTypePackage.d.ts +0 -2
- package/dist/forms/helpers/isPackageTypePackageOrSmall.d.ts +0 -2
- package/dist/forms/helpers/isPackageTypeSmallPackage.d.ts +0 -2
- package/dist/forms/helpers/resolveFormComponent.d.ts +0 -3
- package/dist/forms/helpers/setFieldProp.d.ts +0 -8
- package/dist/forms/helpers/setPostNlAgeCheckSubtext.d.ts +0 -2
- package/dist/forms/helpers/triStateFieldIsEnabled.d.ts +0 -2
- package/dist/forms/helpers/updateFieldsDefaults.d.ts +0 -6
- package/dist/forms/index.d.ts +0 -6
- package/dist/forms/pluginSettings/createFormTab.d.ts +0 -3
- package/dist/forms/pluginSettings/createPluginSettingsForm.d.ts +0 -4
- package/dist/forms/pluginSettings/createPluginSettingsTabs.d.ts +0 -4
- package/dist/forms/pluginSettings/createPluginSettingsTabsComponent.d.ts +0 -4
- package/dist/forms/pluginSettings/generateFormFields.d.ts +0 -8
- package/dist/forms/pluginSettings/index.d.ts +0 -6
- package/dist/forms/pluginSettings/types.d.ts +0 -13
- package/dist/forms/shipmentOptions/createShipmentOptionsForm.d.ts +0 -4
- package/dist/forms/shipmentOptions/field.d.ts +0 -36
- package/dist/forms/shipmentOptions/fields/createAgeCheckField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createCarrierField.d.ts +0 -4
- package/dist/forms/shipmentOptions/fields/createDeliveryTypeField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createDigitalStampRangeField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createDirectReturnField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createHideSenderField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createInsuranceField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createLabelAmountField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createLargeFormatField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createOnlyRecipientField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createPackageTypeField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createPriorityDeliveryField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createReceiptCodeField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createRef.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createSameDayDeliveryField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createShipmentOptionField.d.ts +0 -4
- package/dist/forms/shipmentOptions/fields/createSignatureField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/index.d.ts +0 -15
- package/dist/forms/shipmentOptions/index.d.ts +0 -4
- package/dist/forms/shipmentOptions/types.d.ts +0 -2
- package/dist/index.d.ts +0 -19
- package/dist/pdk/PdkAdmin.d.ts +0 -18
- package/dist/pdk/boot.d.ts +0 -3
- package/dist/pdk/createAdminConfig.d.ts +0 -2
- package/dist/pdk/createPdkAdmin.d.ts +0 -8
- package/dist/pdk/createPdkAdminPlugin.d.ts +0 -3
- package/dist/pdk/fillShipmentsQueryData.d.ts +0 -4
- package/dist/pdk/index.d.ts +0 -11
- package/dist/pdk/instance/createInstanceContext.d.ts +0 -5
- package/dist/pdk/instance/createQueryClient.d.ts +0 -2
- package/dist/pdk/instance/index.d.ts +0 -3
- package/dist/pdk/instance/plugins/createContextPlugin.d.ts +0 -2
- package/dist/pdk/instance/plugins/createLoggerPlugin.d.ts +0 -2
- package/dist/pdk/instance/plugins/createRegisterComponentsPlugin.d.ts +0 -5
- package/dist/pdk/instance/plugins/createStorePlugin.d.ts +0 -2
- package/dist/pdk/instance/plugins/createVueQueryPlugin.d.ts +0 -5
- package/dist/pdk/instance/plugins/index.d.ts +0 -6
- package/dist/pdk/instance/plugins/plugins.types.d.ts +0 -3
- package/dist/pdk/renderMap.d.ts +0 -3
- package/dist/pdk/sendBootEvent.d.ts +0 -3
- package/dist/pdk/setupAdminApp.d.ts +0 -3
- package/dist/pdk/testIdDirective.d.ts +0 -5
- package/dist/sdk/PdkFetchClient.d.ts +0 -11
- package/dist/sdk/composables/api/index.d.ts +0 -1
- package/dist/sdk/composables/api/useFetchCarrier.d.ts +0 -2
- package/dist/sdk/composables/index.d.ts +0 -3
- package/dist/sdk/composables/useMyParcelApi.d.ts +0 -5
- package/dist/sdk/composables/usePdkAdminApi.d.ts +0 -6
- package/dist/sdk/endpoints/abstractPdkEndpoint.d.ts +0 -7
- package/dist/sdk/endpoints/index.d.ts +0 -1
- package/dist/sdk/index.d.ts +0 -3
- package/dist/services/actions/createAction.d.ts +0 -4
- package/dist/services/actions/createActionContext.d.ts +0 -3
- package/dist/services/actions/downloadFile.d.ts +0 -4
- package/dist/services/actions/getActionIdentifier.d.ts +0 -2
- package/dist/services/actions/index.d.ts +0 -4
- package/dist/services/addErrorToNotifications.d.ts +0 -2
- package/dist/services/context/getElementContext.d.ts +0 -2
- package/dist/services/context/index.d.ts +0 -1
- package/dist/services/createNotification.d.ts +0 -5
- package/dist/services/index.d.ts +0 -9
- package/dist/services/instantiateAction.d.ts +0 -2
- package/dist/services/instantiateActions.d.ts +0 -8
- package/dist/services/logger.d.ts +0 -19
- package/dist/services/mutations/getCallbackForMutationMode.d.ts +0 -4
- package/dist/services/mutations/getModalMutationOptions.d.ts +0 -2
- package/dist/services/mutations/index.d.ts +0 -3
- package/dist/services/mutations/mutationMode.d.ts +0 -4
- package/dist/services/print/index.d.ts +0 -1
- package/dist/services/print/openPdfInNewWindow.d.ts +0 -4
- package/dist/stores/createQueryCacheKey.d.ts +0 -3
- package/dist/stores/index.d.ts +0 -6
- package/dist/stores/types.d.ts +0 -13
- package/dist/stores/useActionStore.d.ts +0 -25
- package/dist/stores/useModalStore.d.ts +0 -16
- package/dist/stores/useNotificationStore.d.ts +0 -60
- package/dist/stores/useQueryStore.d.ts +0 -77
- package/dist/symbols.d.ts +0 -5
- package/dist/testing.d.ts +0 -1
- package/dist/types/actions/actions.types.d.ts +0 -31
- package/dist/types/actions/endpoints.types.d.ts +0 -9
- package/dist/types/actions/index.d.ts +0 -4
- package/dist/types/actions/parameters.types.d.ts +0 -55
- package/dist/types/actions/response.types.d.ts +0 -7
- package/dist/types/actions.types.d.ts +0 -45
- package/dist/types/admin.types.d.ts +0 -26
- package/dist/types/common.types.d.ts +0 -53
- package/dist/types/components-form.types.d.ts +0 -107
- package/dist/types/components.types.d.ts +0 -273
- package/dist/types/configuration.types.d.ts +0 -95
- package/dist/types/context.types.d.ts +0 -20
- package/dist/types/endpoints.types.d.ts +0 -7
- package/dist/types/form.types.d.ts +0 -39
- package/dist/types/index.d.ts +0 -12
- package/dist/types/language.types.d.ts +0 -9
- package/dist/types/sdk.types.d.ts +0 -155
- package/dist/utils/booleanToTriState.d.ts +0 -2
- package/dist/utils/convertDotNotationToObject.d.ts +0 -1
- package/dist/utils/createAssetUrl.d.ts +0 -1
- package/dist/utils/createClasses.d.ts +0 -8
- package/dist/utils/createObjectWithKeys.d.ts +0 -3
- package/dist/utils/decodeHtmlEntities.d.ts +0 -7
- package/dist/utils/downloadBlob.d.ts +0 -1
- package/dist/utils/downloadFileFromUrl.d.ts +0 -1
- package/dist/utils/encodeArrayParameter.d.ts +0 -2
- package/dist/utils/extendAdminInstance.d.ts +0 -2
- package/dist/utils/fakeLinkClick.d.ts +0 -4
- package/dist/utils/forms/createFormElement.d.ts +0 -3
- package/dist/utils/forms/createShipmentFormName.d.ts +0 -1
- package/dist/utils/forms/formToBody.d.ts +0 -2
- package/dist/utils/forms/generateFieldId.d.ts +0 -3
- package/dist/utils/forms/index.d.ts +0 -4
- package/dist/utils/generateLabelFilename.d.ts +0 -3
- package/dist/utils/getOrderId.d.ts +0 -3
- package/dist/utils/getOrderShipmentIds.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -22
- package/dist/utils/openUrlInNewTab.d.ts +0 -1
- package/dist/utils/prefixComponent.d.ts +0 -3
- package/dist/utils/query/index.d.ts +0 -3
- package/dist/utils/query/setQueryData.d.ts +0 -2
- package/dist/utils/query/setQueryOrder.d.ts +0 -10
- package/dist/utils/query/setQueryShipment.d.ts +0 -3
- package/dist/utils/resolveCarrier.d.ts +0 -1
- package/dist/utils/translations/getDeliveryTypeTranslation.d.ts +0 -2
- package/dist/utils/translations/getDynamicTranslation.d.ts +0 -1
- package/dist/utils/translations/getPackageTypeTranslation.d.ts +0 -2
- package/dist/utils/translations/index.d.ts +0 -4
- package/dist/utils/translations/translateSelectOption.d.ts +0 -3
- package/dist/utils/triStateToBoolean.d.ts +0 -2
- package/dist/utils/unprefixComponent.d.ts +0 -3
- package/dist/utils/validateId.d.ts +0 -2
- package/dist/views/ChildProductSettings.vue.d.ts +0 -2
- package/dist/views/Modals.vue.d.ts +0 -2
- package/dist/views/Notifications.vue.d.ts +0 -2
- package/dist/views/OrderBox.vue.d.ts +0 -2
- package/dist/views/OrderListItem.vue.d.ts +0 -2
- package/dist/views/PluginSettings.vue.d.ts +0 -2
- package/dist/views/ProductSettings.vue.d.ts +0 -35
- package/dist/views/integrated/OrderBoxView.vue.d.ts +0 -12
- package/dist/views/integrated/OrderListItemView.vue.d.ts +0 -12
- package/dist/views/integrated/index.d.ts +0 -7
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
import { type ComponentOrHtmlElement } from '@myparcel-dev/vue-form-builder';
|
|
3
|
-
import { type TabDefinition } from '../../types';
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
|
-
button: {
|
|
6
|
-
type: PropType<ComponentOrHtmlElement>;
|
|
7
|
-
default: () => "PdkBadge" | "PdkBox" | "PdkButton" | "PdkButtonGroup" | "PdkCheckboxGroup" | "PdkCheckboxInput" | "PdkCodeEditor" | "PdkCol" | "PdkConceptBoxWrapper" | "PdkCurrencyInput" | "PdkDropOffInput" | "PdkDropdownButton" | "PdkFormGroup" | "PdkHeading" | "PdkIcon" | "PdkImage" | "PdkLink" | "PdkLoader" | "PdkModal" | "PdkMultiSelectInput" | "PdkNotification" | "PdkNumberInput" | "PdkPluginSettingsWrapper" | "PdkRadioGroup" | "PdkRadioInput" | "PdkRow" | "PdkSelectInput" | "PdkSettingsDivider" | "PdkShipmentLabelWrapper" | "PdkShippingMethodsInput" | "PdkTabNavButton" | "PdkTabNavButtonWrapper" | "PdkTabNavContentWrapper" | "PdkTable" | "PdkTableCol" | "PdkTableRow" | "PdkTextArea" | "PdkTextInput" | "PdkTimeInput" | "PdkToggleInput" | "PdkTriStateInput" | "PdkMultiDateInput";
|
|
8
|
-
};
|
|
9
|
-
buttonWrapper: {
|
|
10
|
-
type: PropType<ComponentOrHtmlElement>;
|
|
11
|
-
default: () => "PdkBadge" | "PdkBox" | "PdkButton" | "PdkButtonGroup" | "PdkCheckboxGroup" | "PdkCheckboxInput" | "PdkCodeEditor" | "PdkCol" | "PdkConceptBoxWrapper" | "PdkCurrencyInput" | "PdkDropOffInput" | "PdkDropdownButton" | "PdkFormGroup" | "PdkHeading" | "PdkIcon" | "PdkImage" | "PdkLink" | "PdkLoader" | "PdkModal" | "PdkMultiSelectInput" | "PdkNotification" | "PdkNumberInput" | "PdkPluginSettingsWrapper" | "PdkRadioGroup" | "PdkRadioInput" | "PdkRow" | "PdkSelectInput" | "PdkSettingsDivider" | "PdkShipmentLabelWrapper" | "PdkShippingMethodsInput" | "PdkTabNavButton" | "PdkTabNavButtonWrapper" | "PdkTabNavContentWrapper" | "PdkTable" | "PdkTableCol" | "PdkTableRow" | "PdkTextArea" | "PdkTextInput" | "PdkTimeInput" | "PdkToggleInput" | "PdkTriStateInput" | "PdkMultiDateInput";
|
|
12
|
-
};
|
|
13
|
-
closeable: {
|
|
14
|
-
type: BooleanConstructor;
|
|
15
|
-
};
|
|
16
|
-
hashPrefix: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
initialTab: {
|
|
21
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
22
|
-
default: null;
|
|
23
|
-
};
|
|
24
|
-
tabs: {
|
|
25
|
-
type: PropType<TabDefinition[]>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
-
button: {
|
|
30
|
-
type: PropType<ComponentOrHtmlElement>;
|
|
31
|
-
default: () => "PdkBadge" | "PdkBox" | "PdkButton" | "PdkButtonGroup" | "PdkCheckboxGroup" | "PdkCheckboxInput" | "PdkCodeEditor" | "PdkCol" | "PdkConceptBoxWrapper" | "PdkCurrencyInput" | "PdkDropOffInput" | "PdkDropdownButton" | "PdkFormGroup" | "PdkHeading" | "PdkIcon" | "PdkImage" | "PdkLink" | "PdkLoader" | "PdkModal" | "PdkMultiSelectInput" | "PdkNotification" | "PdkNumberInput" | "PdkPluginSettingsWrapper" | "PdkRadioGroup" | "PdkRadioInput" | "PdkRow" | "PdkSelectInput" | "PdkSettingsDivider" | "PdkShipmentLabelWrapper" | "PdkShippingMethodsInput" | "PdkTabNavButton" | "PdkTabNavButtonWrapper" | "PdkTabNavContentWrapper" | "PdkTable" | "PdkTableCol" | "PdkTableRow" | "PdkTextArea" | "PdkTextInput" | "PdkTimeInput" | "PdkToggleInput" | "PdkTriStateInput" | "PdkMultiDateInput";
|
|
32
|
-
};
|
|
33
|
-
buttonWrapper: {
|
|
34
|
-
type: PropType<ComponentOrHtmlElement>;
|
|
35
|
-
default: () => "PdkBadge" | "PdkBox" | "PdkButton" | "PdkButtonGroup" | "PdkCheckboxGroup" | "PdkCheckboxInput" | "PdkCodeEditor" | "PdkCol" | "PdkConceptBoxWrapper" | "PdkCurrencyInput" | "PdkDropOffInput" | "PdkDropdownButton" | "PdkFormGroup" | "PdkHeading" | "PdkIcon" | "PdkImage" | "PdkLink" | "PdkLoader" | "PdkModal" | "PdkMultiSelectInput" | "PdkNotification" | "PdkNumberInput" | "PdkPluginSettingsWrapper" | "PdkRadioGroup" | "PdkRadioInput" | "PdkRow" | "PdkSelectInput" | "PdkSettingsDivider" | "PdkShipmentLabelWrapper" | "PdkShippingMethodsInput" | "PdkTabNavButton" | "PdkTabNavButtonWrapper" | "PdkTabNavContentWrapper" | "PdkTable" | "PdkTableCol" | "PdkTableRow" | "PdkTextArea" | "PdkTextInput" | "PdkTimeInput" | "PdkToggleInput" | "PdkTriStateInput" | "PdkMultiDateInput";
|
|
36
|
-
};
|
|
37
|
-
closeable: {
|
|
38
|
-
type: BooleanConstructor;
|
|
39
|
-
};
|
|
40
|
-
hashPrefix: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
initialTab: {
|
|
45
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
46
|
-
default: null;
|
|
47
|
-
};
|
|
48
|
-
tabs: {
|
|
49
|
-
type: PropType<TabDefinition[]>;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
}>>, {
|
|
53
|
-
button: ComponentOrHtmlElement;
|
|
54
|
-
buttonWrapper: ComponentOrHtmlElement;
|
|
55
|
-
closeable: boolean;
|
|
56
|
-
hashPrefix: string;
|
|
57
|
-
initialTab: string | boolean;
|
|
58
|
-
}, {}>, {
|
|
59
|
-
"button-wrapper"?(_: {}): any;
|
|
60
|
-
}>;
|
|
61
|
-
export default _default;
|
|
62
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
-
new (): {
|
|
64
|
-
$slots: S;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { default as ActionButton } from './ActionButton.vue';
|
|
2
|
-
export { default as BulkSelectCheckbox } from './BulkSelectCheckbox.vue';
|
|
3
|
-
export { default as CarrierLogo } from './CarrierLogo.vue';
|
|
4
|
-
export { default as DateRelative } from './DateRelative.vue';
|
|
5
|
-
export { default as DeliveryOptionsDeliveryType } from './DeliveryOptionsDeliveryType.vue';
|
|
6
|
-
export { default as DeliveryOptionsExcerpt } from './DeliveryOptionsExcerpt.vue';
|
|
7
|
-
export { default as DeliveryOptionsExcerptCarrierName } from './DeliveryOptionsExcerptCarrierName.vue';
|
|
8
|
-
export { default as DeliveryOptionsPackageType } from './DeliveryOptionsPackageType.vue';
|
|
9
|
-
export { default as DigitalStampWeightRange } from './DigitalStampWeightRange.vue';
|
|
10
|
-
export { default as NotificationContainer } from './NotificationContainer.vue';
|
|
11
|
-
export { default as PackageType } from './PackageType.vue';
|
|
12
|
-
export { default as PlainElement } from './PlainElement';
|
|
13
|
-
export { default as ResetButton } from './ResetButton.vue';
|
|
14
|
-
export { default as ReturnsForm } from './ReturnsForm.vue';
|
|
15
|
-
export { default as ShipmentBarcode } from './ShipmentBarcode.vue';
|
|
16
|
-
export { default as ShipmentOptionsForm } from './ShipmentOptionsForm.vue';
|
|
17
|
-
export { default as ShipmentStatus } from './ShipmentStatus.vue';
|
|
18
|
-
export { default as StatusIndicator } from './StatusIndicator.vue';
|
|
19
|
-
export { default as SubmitButton } from './SubmitButton.vue';
|
|
20
|
-
export { default as TabNavigation } from './TabNavigation.vue';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './common';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
-
order: OneOrMore<string>;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
5
|
-
order: OneOrMore<string>;
|
|
6
|
-
}>>>, {}, {}>;
|
|
7
|
-
export default _default;
|
|
8
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type __VLS_TypePropsToOption<T> = {
|
|
10
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
-
} : {
|
|
13
|
-
type: import('vue').PropType<T[K]>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './useBulkSelectCheckbox';
|
|
2
|
-
export * from './useCheckboxGroupContext';
|
|
3
|
-
export * from './useDropOffInputContext';
|
|
4
|
-
export * from './useDropdownButtonContext';
|
|
5
|
-
export * from './useElementContext';
|
|
6
|
-
export * from './useElementOptions';
|
|
7
|
-
export * from './useInputWithOptionsContext';
|
|
8
|
-
export * from './useModalElementContext';
|
|
9
|
-
export * from './useMultiSelectInputContext';
|
|
10
|
-
export * from './useRadioGroupContext';
|
|
11
|
-
export * from './useSelectInputContext';
|
|
12
|
-
export * from './useShippingMethodsInputContext';
|
|
13
|
-
export * from './useTableContext';
|
|
14
|
-
export * from './useToggleInputContext';
|
|
15
|
-
export * from './useTriStateInputContext';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type UnwrapRef, type WritableComputedRef } from 'vue';
|
|
2
|
-
import { type Keyable } from '@myparcel-dev/pdk-common';
|
|
3
|
-
type Value<K extends Keyable = Keyable> = Partial<Record<K, boolean>>;
|
|
4
|
-
export type PdkBulkSelectCheckboxEmits = (event: 'select', value: Record<Keyable, boolean>) => void;
|
|
5
|
-
export declare const useBulkSelectCheckbox: <K extends Keyable = Keyable, KS extends K[] = K[]>(options: KS, emit: PdkBulkSelectCheckboxEmits) => {
|
|
6
|
-
bulkModel: WritableComputedRef<UnwrapRef<Value<K>>>;
|
|
7
|
-
bulkOptions: Keyable[];
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type CheckboxGroupEmits, type CheckboxGroupModelValue, type CheckboxGroupProps } from '../../types';
|
|
2
|
-
import { type InputWithOptionsContext } from './useInputWithOptionsContext';
|
|
3
|
-
export type UseCheckboxGroupContext<T extends CheckboxGroupModelValue = CheckboxGroupModelValue, P extends CheckboxGroupProps<T> = CheckboxGroupProps<T>> = (props: P, emit: CheckboxGroupEmits<T>) => InputWithOptionsContext<T, false>;
|
|
4
|
-
export declare const useCheckboxGroupContext: UseCheckboxGroupContext;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Weekday, type Weekdays } from '../useWeekdays';
|
|
2
|
-
import { createFormElement } from '../../utils';
|
|
3
|
-
import { type DropOffInputProps } from '../../types';
|
|
4
|
-
type UseDropOffInputContext = (props: DropOffInputProps, emit?: (name: 'update:modelValue', ...args: unknown[]) => void) => {
|
|
5
|
-
weekdaysObject: Record<Weekday, string>;
|
|
6
|
-
weekdays: Weekdays;
|
|
7
|
-
toggleRefs: Record<Weekday, boolean>;
|
|
8
|
-
cutoffRefs: Record<Weekday, string>;
|
|
9
|
-
cutoffElements: Record<Weekday, ReturnType<typeof createFormElement>>;
|
|
10
|
-
toggleElements: Record<Weekday, ReturnType<typeof createFormElement>>;
|
|
11
|
-
};
|
|
12
|
-
export declare const useDropOffInputContext: UseDropOffInputContext;
|
|
13
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
-
import { type ActionDefinition, type DropdownButtonProps } from '../../types';
|
|
3
|
-
import { AdminIcon } from '../../data';
|
|
4
|
-
interface DropdownActions {
|
|
5
|
-
standalone: ActionDefinition[];
|
|
6
|
-
hidden: ActionDefinition[];
|
|
7
|
-
}
|
|
8
|
-
interface DropdownData {
|
|
9
|
-
dropdownActions: ComputedRef<DropdownActions>;
|
|
10
|
-
dropdownIcon: ComputedRef<AdminIcon>;
|
|
11
|
-
toggled: Ref<boolean>;
|
|
12
|
-
toggle(value?: boolean): void;
|
|
13
|
-
}
|
|
14
|
-
export declare const useDropdownButtonContext: (props: DropdownButtonProps) => DropdownData;
|
|
15
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type WritableComputedRef } from 'vue';
|
|
2
|
-
import { type PdkElementEmits, type PdkElementProps } from '../../types';
|
|
3
|
-
export type ElementContext<T = unknown> = {
|
|
4
|
-
id: string;
|
|
5
|
-
model: WritableComputedRef<T>;
|
|
6
|
-
};
|
|
7
|
-
export declare const useElementContext: <T1 = unknown, T2 = T1, Props extends PdkElementProps<T1> = PdkElementProps<T1>, Emits extends PdkElementEmits<T2> = PdkElementEmits<T2>>(props: Props, emit: Emits) => ElementContext<T1>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef, type UnwrapRef } from 'vue';
|
|
2
|
-
import { type OptionsProp, type PdkElementProps, type SelectInputModelValue, type SelectOptionWithLabel } from '../../types';
|
|
3
|
-
export interface ElementOptionsContext<T extends SelectInputModelValue> {
|
|
4
|
-
options: ComputedRef<SelectOptionWithLabel<UnwrapRef<T>, string>[]>;
|
|
5
|
-
}
|
|
6
|
-
export declare const useElementOptions: <T extends import("../../types").SelectInputModelValue = import("../../types").SelectInputModelValue, Props extends PdkElementProps<any, OptionsProp<T>> = PdkElementProps<any, OptionsProp<T>>>(props: Props) => ElementOptionsContext<T>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type WritableComputedRef } from 'vue';
|
|
2
|
-
import { type ArrayItem, type SelectInputEmits, type SelectInputModelValue, type SelectInputProps } from '../../types';
|
|
3
|
-
import { type ElementOptionsContext } from './useElementOptions';
|
|
4
|
-
type ModelValue<T extends SelectInputModelValue, Multiple extends boolean> = Multiple extends true ? T : ArrayItem<T>;
|
|
5
|
-
export interface InputWithOptionsContext<T extends SelectInputModelValue, Multiple extends boolean> extends ElementOptionsContext<T> {
|
|
6
|
-
id: string;
|
|
7
|
-
model: WritableComputedRef<ModelValue<T, Multiple>>;
|
|
8
|
-
}
|
|
9
|
-
export declare const useInputWithOptionsContext: <T extends import("../../types").SelectInputModelValue = import("../../types").SelectInputModelValue, Props extends SelectInputProps<T> = SelectInputProps<T>, Multiple extends boolean = boolean>(props: Props, emit: SelectInputEmits<T>, multiple?: Multiple) => InputWithOptionsContext<T, Multiple>;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef } from 'vue';
|
|
2
|
-
import { type AdminModalContext } from '../../types';
|
|
3
|
-
import { useModalStore } from '../../stores';
|
|
4
|
-
import { type AdminModalKey } from '../../data';
|
|
5
|
-
type UseModalElementContext = <K extends AdminModalKey>(modalKey: K | undefined) => {
|
|
6
|
-
context: ComputedRef<AdminModalContext>;
|
|
7
|
-
isOpen: ComputedRef<boolean>;
|
|
8
|
-
close: ReturnType<typeof useModalStore>['close'];
|
|
9
|
-
};
|
|
10
|
-
export declare const useModalElementContext: UseModalElementContext;
|
|
11
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type MultiSelectInputEmits, type MultiSelectInputModelValue, type MultiSelectInputProps } from '../../types';
|
|
2
|
-
import { type InputWithOptionsContext } from './useInputWithOptionsContext';
|
|
3
|
-
export type UseMultiSelectInputContext<T extends MultiSelectInputModelValue = MultiSelectInputModelValue, P extends MultiSelectInputProps<T> = MultiSelectInputProps<T>> = (props: P, emit: MultiSelectInputEmits<T>) => InputWithOptionsContext<T[number], true>;
|
|
4
|
-
export declare const useMultiSelectInputContext: UseMultiSelectInputContext;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef, type WritableComputedRef } from 'vue';
|
|
2
|
-
import { type ArrayItem, type ElementInstance, type RadioGroupEmits, type RadioGroupModelValue, type RadioGroupProps, type SelectOption } from '../../types';
|
|
3
|
-
interface RadioGroupContext<T extends RadioGroupModelValue> {
|
|
4
|
-
id: string;
|
|
5
|
-
model: WritableComputedRef<ArrayItem<T>>;
|
|
6
|
-
options: ComputedRef<SelectOption<T>[]>;
|
|
7
|
-
elements: ComputedRef<Record<ArrayItem<T>, ElementInstance>>;
|
|
8
|
-
}
|
|
9
|
-
export declare const useRadioGroupContext: <T extends import("../../types").RadioGroupModelValue = import("../../types").RadioGroupModelValue, Props extends RadioGroupProps<T> = RadioGroupProps<T>>(props: Props, emit: RadioGroupEmits<T>) => RadioGroupContext<T>;
|
|
10
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type SelectInputEmits, type SelectInputModelValue, type SelectInputProps } from '../../types';
|
|
2
|
-
import { type InputWithOptionsContext } from './useInputWithOptionsContext';
|
|
3
|
-
export type UseSelectInputContext<T extends SelectInputModelValue = SelectInputModelValue, P extends SelectInputProps<T> = SelectInputProps<T>> = (props: P, emit: SelectInputEmits<T>) => InputWithOptionsContext<T, false>;
|
|
4
|
-
export declare const useSelectInputContext: UseSelectInputContext;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
-
import { type ShippingMethodId, type ShippingMethodType } from '@myparcel-dev/pdk-common';
|
|
3
|
-
import { createFormElement } from '../../utils';
|
|
4
|
-
import { type SelectOptionWithLabel, type ShippingMethodsInputModelValue, type ShippingMethodsInputProps } from '../../types';
|
|
5
|
-
interface ShippingMethodsInputContext {
|
|
6
|
-
elements: Record<ShippingMethodId, Record<ShippingMethodType, ReturnType<typeof createFormElement>>>;
|
|
7
|
-
model: Ref<ShippingMethodsInputModelValue>;
|
|
8
|
-
refs: Record<ShippingMethodId, ShippingMethodType>;
|
|
9
|
-
shippingMethodTypes: readonly SelectOptionWithLabel<ShippingMethodType>[];
|
|
10
|
-
shippingMethods: ComputedRef<SelectOptionWithLabel<ShippingMethodId>[]>;
|
|
11
|
-
}
|
|
12
|
-
export declare const useShippingMethodsInputContext: <T extends import("@myparcel-dev/pdk-common").ShippingMethodTypeMap>(props: ShippingMethodsInputProps<T>, emit?: ((name: 'update:modelValue', value: T) => void) | undefined) => ShippingMethodsInputContext;
|
|
13
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Ref, type WritableComputedRef } from 'vue';
|
|
2
|
-
import { type ToggleInputEmits, type ToggleInputModelValue, type ToggleInputProps } from '../../types';
|
|
3
|
-
interface ToggleInputContext {
|
|
4
|
-
id: string;
|
|
5
|
-
model: WritableComputedRef<ToggleInputModelValue>;
|
|
6
|
-
toggleId: string;
|
|
7
|
-
toggleModel: Ref<boolean>;
|
|
8
|
-
}
|
|
9
|
-
type UseToggleInputContext = (props: ToggleInputProps, emit: ToggleInputEmits) => ToggleInputContext;
|
|
10
|
-
export declare const useToggleInputContext: UseToggleInputContext;
|
|
11
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type Ref, type WritableComputedRef } from 'vue';
|
|
2
|
-
import { type ElementInstance, type PdkElementProps, type TriStateInputEmits, type TriStateInputModelValue, type TriStateInputProps } from '../../types';
|
|
3
|
-
type BoolElInstance = ElementInstance<boolean, PdkElementProps>;
|
|
4
|
-
interface TriStateInputContext {
|
|
5
|
-
id: string;
|
|
6
|
-
inheritElement: BoolElInstance;
|
|
7
|
-
inheritModel: Ref<boolean>;
|
|
8
|
-
model: WritableComputedRef<TriStateInputModelValue>;
|
|
9
|
-
toggleElement: BoolElInstance;
|
|
10
|
-
toggleModel: Ref<boolean>;
|
|
11
|
-
}
|
|
12
|
-
type UseTriStateInputContext = (props: TriStateInputProps, emit: TriStateInputEmits) => TriStateInputContext;
|
|
13
|
-
/**
|
|
14
|
-
* A tri-state input can hold a value of 0, 1 or -1. -1 is used to indicate that the value should be inherited .
|
|
15
|
-
*/
|
|
16
|
-
export declare const useTriStateInputContext: UseTriStateInputContext;
|
|
17
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type AdminContext, type AnyAdminContext } from '../../types';
|
|
2
|
-
import { type AdminInstanceContextKey } from '../../data';
|
|
3
|
-
interface UseInstanceContext {
|
|
4
|
-
<Key extends AdminInstanceContextKey>(contextKey: Key): AdminContext<Key>;
|
|
5
|
-
<Ctx extends AnyAdminContext>(context: Ctx): Ctx;
|
|
6
|
-
}
|
|
7
|
-
export declare const useInstanceContext: UseInstanceContext;
|
|
8
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
-
import { type AdminModalKey } from '../../data';
|
|
3
|
-
type UseModalContext = (modalId?: Ref<null | AdminModalKey>, onSave?: Ref, onCancel?: Ref) => null | {
|
|
4
|
-
loading: Ref<boolean>;
|
|
5
|
-
modalData: Ref;
|
|
6
|
-
onButtonClick: (type: string) => Promise<void>;
|
|
7
|
-
setLoading: (state: boolean) => void;
|
|
8
|
-
shown: ComputedRef<boolean>;
|
|
9
|
-
};
|
|
10
|
-
export declare const useModalContext: UseModalContext;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useModalOrder: () => string | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createCurrencyFormat: (locale: string) => Intl.NumberFormat;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createLongDateFormat: (locale: string) => Intl.DateTimeFormat;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createRelativeTimeFormat: (locale: string) => Intl.RelativeTimeFormat;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type FormatterFunction, type FormatterTranslateFunction } from '../formatter.types';
|
|
2
|
-
export declare const createDefaultDateLongFormatter: (locale: string) => FormatterFunction;
|
|
3
|
-
export declare const createDefaultDateRelativeFormatter: (locale: string, translate: FormatterTranslateFunction) => FormatterFunction;
|
|
4
|
-
export declare const createDefaultWeekdayFormatter: (locale: string) => FormatterFunction;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const parseDate: (date: unknown) => Date;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type Ref } from 'vue';
|
|
2
|
-
export declare enum Format {
|
|
3
|
-
Currency = "currency",
|
|
4
|
-
DateLong = "dateLong",
|
|
5
|
-
DateRelative = "dateRelative",
|
|
6
|
-
Weekday = "weekday"
|
|
7
|
-
}
|
|
8
|
-
export type FormatName = Format | string;
|
|
9
|
-
export type FormatterFunction = (input: unknown, ...args: unknown[]) => string;
|
|
10
|
-
export type FormatterObject = Record<FormatName, FormatterFunction>;
|
|
11
|
-
export type LocaleFormatterObject = Record<string, FormatterObject>;
|
|
12
|
-
export type Formatter = {
|
|
13
|
-
/**
|
|
14
|
-
* Get all registered formatters
|
|
15
|
-
*/
|
|
16
|
-
getFormatters(locale: string): FormatterObject;
|
|
17
|
-
/**
|
|
18
|
-
* Format a value into a string using the given format.
|
|
19
|
-
*/
|
|
20
|
-
format(format: FormatName, input: unknown): string;
|
|
21
|
-
formats: Ref<LocaleFormatterObject>;
|
|
22
|
-
};
|
|
23
|
-
export type FormatterTranslateFunction = (string?: string) => string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
2
|
-
export * from './context';
|
|
3
|
-
export * from './formatter';
|
|
4
|
-
export * from './language';
|
|
5
|
-
export * from './orders';
|
|
6
|
-
export * from './products';
|
|
7
|
-
export * from './shipments';
|
|
8
|
-
export * from './useAdminConfig';
|
|
9
|
-
export * from './useAdminInstance';
|
|
10
|
-
export * from './useDigitalStampRanges';
|
|
11
|
-
export * from './useGlobalPdkAdmin';
|
|
12
|
-
export * from './useLoadMore';
|
|
13
|
-
export * from './useLoading';
|
|
14
|
-
export * from './useLogger';
|
|
15
|
-
export * from './useStoreContextQuery';
|
|
16
|
-
export * from './useStoreQuery';
|
|
17
|
-
export * from './useWeekdays';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Replacers = Record<string, unknown | Record<string, unknown>>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type Ref } from 'vue';
|
|
2
|
-
import { type Translation } from '../../types';
|
|
3
|
-
import { type Replacers } from './types';
|
|
4
|
-
type UseLanguage = {
|
|
5
|
-
/**
|
|
6
|
-
* A list of all invalid keys that were passed to translate().
|
|
7
|
-
*/
|
|
8
|
-
missingKeys: Ref<string[]>;
|
|
9
|
-
/**
|
|
10
|
-
* Get all translations.
|
|
11
|
-
*/
|
|
12
|
-
all(): Record<string, string>;
|
|
13
|
-
/**
|
|
14
|
-
* Check if a given translation key exists.
|
|
15
|
-
*/
|
|
16
|
-
has(key: Translation | undefined): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Translate a string into the current language.
|
|
19
|
-
*/
|
|
20
|
-
translate(key?: Translation, replacers?: Replacers): string;
|
|
21
|
-
};
|
|
22
|
-
export declare const useLanguage: () => UseLanguage;
|
|
23
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef } from 'vue';
|
|
2
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
3
|
-
import { type ResolvedQuery } from '../../stores';
|
|
4
|
-
export interface UseOrderData {
|
|
5
|
-
loading: ComputedRef<boolean>;
|
|
6
|
-
order: ComputedRef;
|
|
7
|
-
query: ResolvedQuery<BackendEndpoint.FetchOrders>;
|
|
8
|
-
}
|
|
9
|
-
export declare const useOrderData: (externalIdentifier?: string) => UseOrderData;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useProductData';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef } from 'vue';
|
|
2
|
-
import { BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
3
|
-
import { type ResolvedQuery } from '../../stores';
|
|
4
|
-
export interface UseProductData {
|
|
5
|
-
product: ComputedRef;
|
|
6
|
-
query: ResolvedQuery<BackendEndpoint.FetchProducts>;
|
|
7
|
-
}
|
|
8
|
-
export declare const useProductData: (externalIdentifier?: string) => UseProductData;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
-
import { type MaybeRef } from '@vueuse/core';
|
|
3
|
-
import { type Shipment } from '@myparcel-dev/pdk-common';
|
|
4
|
-
import { type Carrier } from '@myparcel-dev/sdk';
|
|
5
|
-
import { type AnyActionDefinition } from '../../types';
|
|
6
|
-
export type UseShipmentData = {
|
|
7
|
-
actions: AnyActionDefinition[];
|
|
8
|
-
carrier: Ref<Carrier | undefined>;
|
|
9
|
-
loading: Ref<boolean>;
|
|
10
|
-
shipment: ComputedRef<Shipment.ModelShipment>;
|
|
11
|
-
};
|
|
12
|
-
export declare const useShipmentData: (id: MaybeRef<number>) => UseShipmentData;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef } from 'vue';
|
|
2
|
-
import { type MaybeRef } from '@vueuse/core';
|
|
3
|
-
import { type SelectOptionWithPlainLabel } from '../types';
|
|
4
|
-
interface UseDigitalStampRanges {
|
|
5
|
-
ranges: ComputedRef<SelectOptionWithPlainLabel<number, string>[]>;
|
|
6
|
-
currentRange: ComputedRef<SelectOptionWithPlainLabel<number, string>>;
|
|
7
|
-
}
|
|
8
|
-
export declare const useDigitalStampRanges: (weight: MaybeRef<number>) => UseDigitalStampRanges;
|
|
9
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef, type MaybeRef, type Ref } from 'vue';
|
|
2
|
-
import { type ReadonlyOr } from '@myparcel-dev/ts-utils';
|
|
3
|
-
export type UseLoadMoreOptions<Item = unknown> = {
|
|
4
|
-
step?: number;
|
|
5
|
-
start?: number;
|
|
6
|
-
items: ReadonlyOr<MaybeRef<Item[]>>;
|
|
7
|
-
};
|
|
8
|
-
export type UseLoadMore<Item = unknown> = {
|
|
9
|
-
loadMore(): void;
|
|
10
|
-
hasMore: ComputedRef<boolean>;
|
|
11
|
-
loaded: Ref<number>;
|
|
12
|
-
items: ComputedRef<Item[]>;
|
|
13
|
-
};
|
|
14
|
-
export declare const useLoadMore: <Item = unknown>(options: UseLoadMoreOptions<Item>) => UseLoadMore<Item>;
|