@myparcel-dev/pdk-admin 2.1.0 → 2.2.1

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.
Files changed (396) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/__tests__/doComponentTestSetup.d.ts +2 -0
  3. package/dist/__tests__/doComponentTestTeardown.d.ts +1 -0
  4. package/dist/__tests__/index.d.ts +3 -0
  5. package/dist/__tests__/mocks/index.d.ts +14 -0
  6. package/dist/__tests__/mocks/mockDefaultAccount.d.ts +2 -0
  7. package/dist/__tests__/mocks/mockDefaultAppConfig.d.ts +2 -0
  8. package/dist/__tests__/mocks/mockDefaultAppInfo.d.ts +2 -0
  9. package/dist/__tests__/mocks/mockDefaultCarriers.d.ts +2 -0
  10. package/dist/__tests__/mocks/mockDefaultConfig.d.ts +2 -0
  11. package/dist/__tests__/mocks/mockDefaultDynamicContext.d.ts +2 -0
  12. package/dist/__tests__/mocks/mockDefaultEndpoints.d.ts +2 -0
  13. package/dist/__tests__/mocks/mockDefaultGlobalContext.d.ts +2 -0
  14. package/dist/__tests__/mocks/mockDefaultLogger.d.ts +1 -0
  15. package/dist/__tests__/mocks/mockDefaultPluginSettings.d.ts +2 -0
  16. package/dist/__tests__/mocks/mockDefaultPrintOptionsView.d.ts +2 -0
  17. package/dist/__tests__/mocks/mockDefaultProposition.d.ts +2 -0
  18. package/dist/__tests__/mocks/mockDefaultShop.d.ts +2 -0
  19. package/dist/__tests__/mocks/mockDefaultTranslations.d.ts +2 -0
  20. package/dist/actions/composables/index.d.ts +2 -0
  21. package/dist/actions/composables/mutations/account/index.d.ts +2 -0
  22. package/dist/actions/composables/mutations/account/useDeleteAccountMutation.d.ts +3 -0
  23. package/dist/actions/composables/mutations/account/useUpdateAccountMutation.d.ts +3 -0
  24. package/dist/actions/composables/mutations/debug/index.d.ts +3 -0
  25. package/dist/actions/composables/mutations/debug/useDownloadLogsMutation.d.ts +3 -0
  26. package/dist/actions/composables/mutations/debug/useSwitchToAcceptanceApiMutation.d.ts +3 -0
  27. package/dist/actions/composables/mutations/debug/useSwitchToProductionApiMutation.d.ts +3 -0
  28. package/dist/actions/composables/mutations/index.d.ts +7 -0
  29. package/dist/actions/composables/mutations/orders/index.d.ts +3 -0
  30. package/dist/actions/composables/mutations/orders/useExportOrdersMutation.d.ts +5 -0
  31. package/dist/actions/composables/mutations/orders/usePrintOrdersMutation.d.ts +4 -0
  32. package/dist/actions/composables/mutations/orders/useUpdateOrdersMutation.d.ts +4 -0
  33. package/dist/actions/composables/mutations/settings/index.d.ts +2 -0
  34. package/dist/actions/composables/mutations/settings/useUpdatePluginSettingsMutation.d.ts +3 -0
  35. package/dist/actions/composables/mutations/settings/useUpdateProductSettingsMutation.d.ts +3 -0
  36. package/dist/actions/composables/mutations/shipments/index.d.ts +4 -0
  37. package/dist/actions/composables/mutations/shipments/useDeleteShipmentsMutation.d.ts +4 -0
  38. package/dist/actions/composables/mutations/shipments/useExportReturnMutation.d.ts +4 -0
  39. package/dist/actions/composables/mutations/shipments/usePrintShipmentsMutation.d.ts +4 -0
  40. package/dist/actions/composables/mutations/shipments/useUpdateShipmentsMutation.d.ts +4 -0
  41. package/dist/actions/composables/mutations/usePdkMutation.d.ts +15 -0
  42. package/dist/actions/composables/mutations/webhooks/index.d.ts +2 -0
  43. package/dist/actions/composables/mutations/webhooks/useCreateWebhooksMutation.d.ts +1 -0
  44. package/dist/actions/composables/mutations/webhooks/useDeleteWebhooksMutation.d.ts +3 -0
  45. package/dist/actions/composables/queries/account/index.d.ts +1 -0
  46. package/dist/actions/composables/queries/account/useFetchContextQuery.d.ts +3 -0
  47. package/dist/actions/composables/queries/account/useOrderCapabilitiesQuery.d.ts +29 -0
  48. package/dist/actions/composables/queries/account/useShipmentCapabilitiesQuery.d.ts +45 -0
  49. package/dist/actions/composables/queries/index.d.ts +6 -0
  50. package/dist/actions/composables/queries/orders/index.d.ts +1 -0
  51. package/dist/actions/composables/queries/orders/useFetchOrdersQuery.d.ts +3 -0
  52. package/dist/actions/composables/queries/products/index.d.ts +1 -0
  53. package/dist/actions/composables/queries/products/useFetchProductsQuery.d.ts +3 -0
  54. package/dist/actions/composables/queries/queryKeys.d.ts +2 -0
  55. package/dist/actions/composables/queries/shipments/index.d.ts +1 -0
  56. package/dist/actions/composables/queries/shipments/useFetchShipmentsQuery.d.ts +4 -0
  57. package/dist/actions/composables/queries/webhooks/index.d.ts +1 -0
  58. package/dist/actions/composables/queries/webhooks/useFetchWebhooksQuery.d.ts +3 -0
  59. package/dist/actions/defineAction.d.ts +8 -0
  60. package/dist/actions/definitions/account.d.ts +13 -0
  61. package/dist/actions/definitions/context.d.ts +6 -0
  62. package/dist/actions/definitions/debug.d.ts +13 -0
  63. package/dist/actions/definitions/index.d.ts +8 -0
  64. package/dist/actions/definitions/modal.d.ts +17 -0
  65. package/dist/actions/definitions/orders.d.ts +39 -0
  66. package/dist/actions/definitions/settings.d.ts +2 -0
  67. package/dist/actions/definitions/shipments.d.ts +15 -0
  68. package/dist/actions/definitions/webhooks.d.ts +4 -0
  69. package/dist/actions/executors/createHandlerWithParameters.d.ts +5 -0
  70. package/dist/actions/executors/createMutationHandler.d.ts +3 -0
  71. package/dist/actions/executors/createOrdersMutationHandler.d.ts +3 -0
  72. package/dist/actions/executors/createQueryHandler.d.ts +3 -0
  73. package/dist/actions/executors/createShipmentsMutationHandler.d.ts +3 -0
  74. package/dist/actions/executors/doMutate.d.ts +4 -0
  75. package/dist/actions/executors/executeAction.d.ts +6 -0
  76. package/dist/actions/executors/executeAfterHandle.d.ts +3 -0
  77. package/dist/actions/executors/executeBeforeHandle.d.ts +4 -0
  78. package/dist/actions/executors/executeHandler.d.ts +3 -0
  79. package/dist/actions/executors/executeNextAction.d.ts +6 -0
  80. package/dist/actions/executors/index.d.ts +14 -0
  81. package/dist/actions/executors/resolveOrderParameters.d.ts +3 -0
  82. package/dist/actions/executors/resolveQuerySuffix.d.ts +3 -0
  83. package/dist/actions/executors/types.d.ts +19 -0
  84. package/dist/actions/index.d.ts +7 -0
  85. package/dist/actions/orderModeActions.d.ts +37 -0
  86. package/dist/actions/print/index.d.ts +3 -0
  87. package/dist/actions/print/openOrPrintPdf.d.ts +3 -0
  88. package/dist/actions/print/resolvePrintParameters.d.ts +3 -0
  89. package/dist/actions/print/waitForLabelPrompt.d.ts +3 -0
  90. package/dist/actions/stopActionHandler.d.ts +2 -0
  91. package/dist/components/OrderBox/OrderShipmentsTable.vue.d.ts +7 -0
  92. package/dist/components/OrderBox/OrderShipmentsTableRow.vue.d.ts +19 -0
  93. package/dist/components/OrderBox/ShipmentOptionsBox.vue.d.ts +3 -0
  94. package/dist/components/OrderBox/ShipmentTableBox.vue.d.ts +3 -0
  95. package/dist/components/OrderListItem/OrderModeOrderListItem.vue.d.ts +3 -0
  96. package/dist/components/OrderListItem/ShipmentLabel.vue.d.ts +14 -0
  97. package/dist/components/OrderListItem/ShipmentModeOrderListItem.vue.d.ts +3 -0
  98. package/dist/components/PluginSettings/AccountSettings.vue.d.ts +3 -0
  99. package/dist/components/PluginSettings/DebugOptions.vue.d.ts +3 -0
  100. package/dist/components/PluginSettings/EditApiKeyForm.vue.d.ts +8 -0
  101. package/dist/components/PluginSettings/PluginSettingsForms.vue.d.ts +3 -0
  102. package/dist/components/PluginSettings/WebhooksStatus.vue.d.ts +3 -0
  103. package/dist/components/PluginSettings/createUpdateAccountSettingsValidator.d.ts +4 -0
  104. package/dist/components/common/ActionButton.vue.d.ts +48 -0
  105. package/dist/components/common/BulkSelectCheckbox.vue.d.ts +20 -0
  106. package/dist/components/common/CarrierLogo.vue.d.ts +15 -0
  107. package/dist/components/common/DateRelative.vue.d.ts +15 -0
  108. package/dist/components/common/DeliveryOptionsDeliveryType.vue.d.ts +15 -0
  109. package/dist/components/common/DeliveryOptionsExcerpt.vue.d.ts +3 -0
  110. package/dist/components/common/DeliveryOptionsExcerptCarrierName.vue.d.ts +15 -0
  111. package/dist/components/common/DeliveryOptionsPackageType.vue.d.ts +15 -0
  112. package/dist/components/common/DigitalStampWeightRange.vue.d.ts +14 -0
  113. package/dist/components/common/NotificationContainer.vue.d.ts +17 -0
  114. package/dist/components/common/PackageType.vue.d.ts +15 -0
  115. package/dist/components/common/PlainElement.d.ts +2 -0
  116. package/dist/components/common/ResetButton.vue.d.ts +14 -0
  117. package/dist/components/common/ReturnsForm.vue.d.ts +15 -0
  118. package/dist/components/common/ShipmentBarcode.vue.d.ts +14 -0
  119. package/dist/components/common/ShipmentOptionsForm.vue.d.ts +15 -0
  120. package/dist/components/common/ShipmentStatus.vue.d.ts +14 -0
  121. package/dist/components/common/StatusIndicator.vue.d.ts +27 -0
  122. package/dist/components/common/SubmitButton.vue.d.ts +14 -0
  123. package/dist/components/common/TabNavigation.vue.d.ts +70 -0
  124. package/dist/components/common/index.d.ts +20 -0
  125. package/dist/components/index.d.ts +1 -0
  126. package/dist/components/modals/PrintOptionsModal.vue.d.ts +3 -0
  127. package/dist/components/modals/PrintOptionsModalForm.vue.d.ts +3 -0
  128. package/dist/components/modals/ShipmentOptionsModal.vue.d.ts +3 -0
  129. package/dist/components/modals/ShipmentOptionsModalForm.vue.d.ts +15 -0
  130. package/dist/composables/components/index.d.ts +15 -0
  131. package/dist/composables/components/useBulkSelectCheckbox.d.ts +9 -0
  132. package/dist/composables/components/useCheckboxGroupContext.d.ts +4 -0
  133. package/dist/composables/components/useDropOffInputContext.d.ts +13 -0
  134. package/dist/composables/components/useDropdownButtonContext.d.ts +15 -0
  135. package/dist/composables/components/useElementContext.d.ts +7 -0
  136. package/dist/composables/components/useElementOptions.d.ts +6 -0
  137. package/dist/composables/components/useInputWithOptionsContext.d.ts +10 -0
  138. package/dist/composables/components/useModalElementContext.d.ts +11 -0
  139. package/dist/composables/components/useMultiSelectInputContext.d.ts +4 -0
  140. package/dist/composables/components/useRadioGroupContext.d.ts +10 -0
  141. package/dist/composables/components/useSelectInputContext.d.ts +4 -0
  142. package/dist/composables/components/useShippingMethodsInputContext.d.ts +13 -0
  143. package/dist/composables/components/useTableContext.d.ts +7 -0
  144. package/dist/composables/components/useToggleInputContext.d.ts +11 -0
  145. package/dist/composables/components/useTriStateInputContext.d.ts +17 -0
  146. package/dist/composables/context/index.d.ts +8 -0
  147. package/dist/composables/context/useAppInfo.d.ts +2 -0
  148. package/dist/composables/context/useContext.d.ts +3 -0
  149. package/dist/composables/context/useGlobalContext.d.ts +2 -0
  150. package/dist/composables/context/useInstanceContext.d.ts +8 -0
  151. package/dist/composables/context/useModalContext.d.ts +11 -0
  152. package/dist/composables/context/useModalOrder.d.ts +1 -0
  153. package/dist/composables/context/useOrderMode.d.ts +12 -0
  154. package/dist/composables/context/usePluginSettings.d.ts +2 -0
  155. package/dist/composables/formatter/default/createCurrencyFormat.d.ts +1 -0
  156. package/dist/composables/formatter/default/createLongDateFormat.d.ts +1 -0
  157. package/dist/composables/formatter/default/createRelativeTimeFormat.d.ts +1 -0
  158. package/dist/composables/formatter/default/defaultCurrencyFormatters.d.ts +2 -0
  159. package/dist/composables/formatter/default/defaultDateFormatters.d.ts +4 -0
  160. package/dist/composables/formatter/default/index.d.ts +6 -0
  161. package/dist/composables/formatter/default/parseDate.d.ts +1 -0
  162. package/dist/composables/formatter/formatter.types.d.ts +23 -0
  163. package/dist/composables/formatter/index.d.ts +4 -0
  164. package/dist/composables/formatter/useFormatter.d.ts +2 -0
  165. package/dist/composables/formatter/useLocalizedFormatter.d.ts +2 -0
  166. package/dist/composables/index.d.ts +17 -0
  167. package/dist/composables/language/index.d.ts +4 -0
  168. package/dist/composables/language/resolveTranslatedString.d.ts +3 -0
  169. package/dist/composables/language/resolveTranslationKey.d.ts +2 -0
  170. package/dist/composables/language/types.d.ts +1 -0
  171. package/dist/composables/language/useLanguage.d.ts +23 -0
  172. package/dist/composables/orders/index.d.ts +3 -0
  173. package/dist/composables/orders/useOrder.d.ts +3 -0
  174. package/dist/composables/orders/useOrderData.d.ts +9 -0
  175. package/dist/composables/orders/useOrdersData.d.ts +3 -0
  176. package/dist/composables/products/index.d.ts +1 -0
  177. package/dist/composables/products/useProductData.d.ts +8 -0
  178. package/dist/composables/shipments/index.d.ts +3 -0
  179. package/dist/composables/shipments/useShipment.d.ts +3 -0
  180. package/dist/composables/shipments/useShipmentData.d.ts +12 -0
  181. package/dist/composables/shipments/useShipmentsData.d.ts +2 -0
  182. package/dist/composables/useAdminConfig.d.ts +2 -0
  183. package/dist/composables/useAdminInstance.d.ts +2 -0
  184. package/dist/composables/useDigitalStampRanges.d.ts +12 -0
  185. package/dist/composables/useGlobalPdkAdmin.d.ts +2 -0
  186. package/dist/composables/useLoadMore.d.ts +14 -0
  187. package/dist/composables/useLoading.d.ts +10 -0
  188. package/dist/composables/useLogger.d.ts +2 -0
  189. package/dist/composables/useStoreContextQuery.d.ts +3 -0
  190. package/dist/composables/useStoreQuery.d.ts +4 -0
  191. package/dist/composables/useWeekdays.d.ts +9 -0
  192. package/dist/data/components.d.ts +195 -0
  193. package/dist/data/constants.d.ts +63 -0
  194. package/dist/data/endpoints.d.ts +5 -0
  195. package/dist/data/index.d.ts +5 -0
  196. package/dist/data/orderMode.d.ts +25 -0
  197. package/dist/data/view.d.ts +9 -0
  198. package/dist/deprecated.d.ts +6 -0
  199. package/dist/forms/createReturnsForm.d.ts +1 -0
  200. package/dist/forms/form-builder/builders/buildAfterUpdate.d.ts +3 -0
  201. package/dist/forms/form-builder/builders/buildFormStateWatcher.d.ts +3 -0
  202. package/dist/forms/form-builder/builders/index.d.ts +2 -0
  203. package/dist/forms/form-builder/conditions/index.d.ts +3 -0
  204. package/dist/forms/form-builder/conditions/validateIfCondition.d.ts +2 -0
  205. package/dist/forms/form-builder/conditions/validateIfConditions.d.ts +2 -0
  206. package/dist/forms/form-builder/conditions/validateIsTruthy.d.ts +2 -0
  207. package/dist/forms/form-builder/index.d.ts +5 -0
  208. package/dist/forms/form-builder/operations/executeCustomOperationHandlers.d.ts +2 -0
  209. package/dist/forms/form-builder/operations/executeOperation.d.ts +2 -0
  210. package/dist/forms/form-builder/operations/executeOperations.d.ts +2 -0
  211. package/dist/forms/form-builder/operations/executeSetPropOperation.d.ts +2 -0
  212. package/dist/forms/form-builder/operations/executeSetValueOperation.d.ts +2 -0
  213. package/dist/forms/form-builder/operations/index.d.ts +5 -0
  214. package/dist/forms/form-builder/operations/parseBuilders.d.ts +3 -0
  215. package/dist/forms/form-builder/types/FormCondition.types.d.ts +36 -0
  216. package/dist/forms/form-builder/types/FormOperations.types.d.ts +16 -0
  217. package/dist/forms/form-builder/types/SubOperationBuilder.types.d.ts +13 -0
  218. package/dist/forms/form-builder/types/common.types.d.ts +21 -0
  219. package/dist/forms/form-builder/types/index.d.ts +4 -0
  220. package/dist/forms/form-builder/utils/createPropSetter.d.ts +4 -0
  221. package/dist/forms/form-builder/utils/createValueGetter.d.ts +4 -0
  222. package/dist/forms/form-builder/utils/createValueSetter.d.ts +11 -0
  223. package/dist/forms/form-builder/utils/index.d.ts +4 -0
  224. package/dist/forms/formKeys.d.ts +10 -0
  225. package/dist/forms/helpers/addBulkEditNotification.d.ts +1 -0
  226. package/dist/forms/helpers/addCapabilitiesClearNotification.d.ts +15 -0
  227. package/dist/forms/helpers/createDefaultOption.d.ts +3 -0
  228. package/dist/forms/helpers/createLabel.d.ts +1 -0
  229. package/dist/forms/helpers/defineFormField.d.ts +2 -0
  230. package/dist/forms/helpers/getDeliveryTypes.d.ts +3 -0
  231. package/dist/forms/helpers/getFieldLabel.d.ts +7 -0
  232. package/dist/forms/helpers/getFormCarrierName.d.ts +2 -0
  233. package/dist/forms/helpers/getPackageTypes.d.ts +3 -0
  234. package/dist/forms/helpers/index.d.ts +14 -0
  235. package/dist/forms/helpers/resolveFormComponent.d.ts +3 -0
  236. package/dist/forms/helpers/setFieldProp.d.ts +8 -0
  237. package/dist/forms/helpers/triStateFieldIsEnabled.d.ts +2 -0
  238. package/dist/forms/helpers/updateFieldsDefaults.d.ts +6 -0
  239. package/dist/forms/helpers/useFormCapabilities.d.ts +66 -0
  240. package/dist/forms/index.d.ts +6 -0
  241. package/dist/forms/pluginSettings/createFormTab.d.ts +3 -0
  242. package/dist/forms/pluginSettings/createPluginSettingsForm.d.ts +4 -0
  243. package/dist/forms/pluginSettings/createPluginSettingsTabs.d.ts +4 -0
  244. package/dist/forms/pluginSettings/createPluginSettingsTabsComponent.d.ts +4 -0
  245. package/dist/forms/pluginSettings/filterPluginSettingsView.d.ts +15 -0
  246. package/dist/forms/pluginSettings/generateFormFields.d.ts +8 -0
  247. package/dist/forms/pluginSettings/index.d.ts +7 -0
  248. package/dist/forms/pluginSettings/resolveSettingsValues.d.ts +8 -0
  249. package/dist/forms/pluginSettings/types.d.ts +13 -0
  250. package/dist/forms/shipmentOptions/createShipmentOptionsForm.d.ts +4 -0
  251. package/dist/forms/shipmentOptions/field.d.ts +22 -0
  252. package/dist/forms/shipmentOptions/fieldFactoryRegistry.d.ts +21 -0
  253. package/dist/forms/shipmentOptions/fields/createCarrierField.d.ts +4 -0
  254. package/dist/forms/shipmentOptions/fields/createDeliveryTypeField.d.ts +3 -0
  255. package/dist/forms/shipmentOptions/fields/createDigitalStampRangeField.d.ts +4 -0
  256. package/dist/forms/shipmentOptions/fields/createDimensionFields.d.ts +3 -0
  257. package/dist/forms/shipmentOptions/fields/createInsuranceField.d.ts +17 -0
  258. package/dist/forms/shipmentOptions/fields/createLabelAmountField.d.ts +3 -0
  259. package/dist/forms/shipmentOptions/fields/createPackageTypeField.d.ts +3 -0
  260. package/dist/forms/shipmentOptions/fields/createRef.d.ts +3 -0
  261. package/dist/forms/shipmentOptions/fields/createShipmentOptionField.d.ts +15 -0
  262. package/dist/forms/shipmentOptions/fields/index.d.ts +7 -0
  263. package/dist/forms/shipmentOptions/index.d.ts +4 -0
  264. package/dist/forms/shipmentOptions/types.d.ts +2 -0
  265. package/dist/forms/shipmentOptions/useCapabilitiesAutoClear.d.ts +36 -0
  266. package/dist/forms/shipmentOptions/useCapabilitiesWatcher.d.ts +22 -0
  267. package/dist/forms/shipmentOptions/wireProxyCapabilities.d.ts +31 -0
  268. package/dist/index.d.ts +19 -0
  269. package/dist/pdk/PdkAdmin.d.ts +18 -0
  270. package/dist/pdk/boot.d.ts +3 -0
  271. package/dist/pdk/createAdminConfig.d.ts +2 -0
  272. package/dist/pdk/createPdkAdmin.d.ts +8 -0
  273. package/dist/pdk/createPdkAdminPlugin.d.ts +3 -0
  274. package/dist/pdk/fillShipmentsQueryData.d.ts +4 -0
  275. package/dist/pdk/index.d.ts +11 -0
  276. package/dist/pdk/instance/createInstanceContext.d.ts +5 -0
  277. package/dist/pdk/instance/createQueryClient.d.ts +2 -0
  278. package/dist/pdk/instance/index.d.ts +3 -0
  279. package/dist/pdk/instance/plugins/createContextPlugin.d.ts +2 -0
  280. package/dist/pdk/instance/plugins/createLoggerPlugin.d.ts +2 -0
  281. package/dist/pdk/instance/plugins/createRegisterComponentsPlugin.d.ts +5 -0
  282. package/dist/pdk/instance/plugins/createStorePlugin.d.ts +2 -0
  283. package/dist/pdk/instance/plugins/createVueQueryPlugin.d.ts +5 -0
  284. package/dist/pdk/instance/plugins/index.d.ts +6 -0
  285. package/dist/pdk/instance/plugins/plugins.types.d.ts +3 -0
  286. package/dist/pdk/renderMap.d.ts +3 -0
  287. package/dist/pdk/sendBootEvent.d.ts +3 -0
  288. package/dist/pdk/setupAdminApp.d.ts +3 -0
  289. package/dist/pdk/testIdDirective.d.ts +5 -0
  290. package/dist/sdk/PdkFetchClient.d.ts +11 -0
  291. package/dist/sdk/composables/api/index.d.ts +1 -0
  292. package/dist/sdk/composables/api/useFetchCarrier.d.ts +1 -0
  293. package/dist/sdk/composables/index.d.ts +3 -0
  294. package/dist/sdk/composables/useMyParcelApi.d.ts +5 -0
  295. package/dist/sdk/composables/usePdkAdminApi.d.ts +6 -0
  296. package/dist/sdk/endpoints/abstractPdkEndpoint.d.ts +7 -0
  297. package/dist/sdk/endpoints/index.d.ts +1 -0
  298. package/dist/sdk/index.d.ts +3 -0
  299. package/dist/services/actions/createAction.d.ts +4 -0
  300. package/dist/services/actions/createActionContext.d.ts +3 -0
  301. package/dist/services/actions/downloadFile.d.ts +4 -0
  302. package/dist/services/actions/getActionIdentifier.d.ts +2 -0
  303. package/dist/services/actions/index.d.ts +4 -0
  304. package/dist/services/addErrorToNotifications.d.ts +2 -0
  305. package/dist/services/context/getElementContext.d.ts +2 -0
  306. package/dist/services/context/index.d.ts +1 -0
  307. package/dist/services/createNotification.d.ts +5 -0
  308. package/dist/services/index.d.ts +9 -0
  309. package/dist/services/instantiateAction.d.ts +2 -0
  310. package/dist/services/instantiateActions.d.ts +8 -0
  311. package/dist/services/logger.d.ts +19 -0
  312. package/dist/services/mutations/getCallbackForMutationMode.d.ts +4 -0
  313. package/dist/services/mutations/getModalMutationOptions.d.ts +2 -0
  314. package/dist/services/mutations/index.d.ts +3 -0
  315. package/dist/services/mutations/mutationMode.d.ts +4 -0
  316. package/dist/services/print/index.d.ts +1 -0
  317. package/dist/services/print/openPdfInNewWindow.d.ts +4 -0
  318. package/dist/stores/createQueryCacheKey.d.ts +3 -0
  319. package/dist/stores/index.d.ts +6 -0
  320. package/dist/stores/types.d.ts +13 -0
  321. package/dist/stores/useActionStore.d.ts +25 -0
  322. package/dist/stores/useModalStore.d.ts +16 -0
  323. package/dist/stores/useNotificationStore.d.ts +60 -0
  324. package/dist/stores/useQueryStore.d.ts +80 -0
  325. package/dist/symbols.d.ts +5 -0
  326. package/dist/testing.d.ts +1 -0
  327. package/dist/types/actions/actions.types.d.ts +31 -0
  328. package/dist/types/actions/endpoints.types.d.ts +9 -0
  329. package/dist/types/actions/index.d.ts +4 -0
  330. package/dist/types/actions/parameters.types.d.ts +55 -0
  331. package/dist/types/actions/response.types.d.ts +7 -0
  332. package/dist/types/actions.types.d.ts +45 -0
  333. package/dist/types/admin.types.d.ts +26 -0
  334. package/dist/types/common.types.d.ts +53 -0
  335. package/dist/types/components-form.types.d.ts +107 -0
  336. package/dist/types/components.types.d.ts +273 -0
  337. package/dist/types/configuration.types.d.ts +95 -0
  338. package/dist/types/context.types.d.ts +20 -0
  339. package/dist/types/endpoints.types.d.ts +7 -0
  340. package/dist/types/form.types.d.ts +39 -0
  341. package/dist/types/index.d.ts +12 -0
  342. package/dist/types/language.types.d.ts +9 -0
  343. package/dist/types/sdk.types.d.ts +212 -0
  344. package/dist/utils/booleanToTriState.d.ts +2 -0
  345. package/dist/utils/convertDotNotationToObject.d.ts +1 -0
  346. package/dist/utils/createAssetUrl.d.ts +1 -0
  347. package/dist/utils/createClasses.d.ts +8 -0
  348. package/dist/utils/createObjectWithKeys.d.ts +3 -0
  349. package/dist/utils/decodeHtmlEntities.d.ts +7 -0
  350. package/dist/utils/downloadBlob.d.ts +1 -0
  351. package/dist/utils/downloadFileFromUrl.d.ts +1 -0
  352. package/dist/utils/encodeArrayParameter.d.ts +2 -0
  353. package/dist/utils/extendAdminInstance.d.ts +2 -0
  354. package/dist/utils/fakeLinkClick.d.ts +4 -0
  355. package/dist/utils/forms/createFormElement.d.ts +3 -0
  356. package/dist/utils/forms/createShipmentFormName.d.ts +1 -0
  357. package/dist/utils/forms/formToBody.d.ts +2 -0
  358. package/dist/utils/forms/generateFieldId.d.ts +3 -0
  359. package/dist/utils/forms/getEnabledValues.d.ts +11 -0
  360. package/dist/utils/forms/index.d.ts +5 -0
  361. package/dist/utils/generateLabelFilename.d.ts +3 -0
  362. package/dist/utils/getOrderId.d.ts +3 -0
  363. package/dist/utils/getOrderShipmentIds.d.ts +2 -0
  364. package/dist/utils/index.d.ts +22 -0
  365. package/dist/utils/openUrlInNewTab.d.ts +1 -0
  366. package/dist/utils/prefixComponent.d.ts +3 -0
  367. package/dist/utils/query/index.d.ts +3 -0
  368. package/dist/utils/query/setQueryData.d.ts +2 -0
  369. package/dist/utils/query/setQueryOrder.d.ts +10 -0
  370. package/dist/utils/query/setQueryShipment.d.ts +3 -0
  371. package/dist/utils/resolveCarrier.d.ts +1 -0
  372. package/dist/utils/translations/getDeliveryTypeTranslation.d.ts +2 -0
  373. package/dist/utils/translations/getDynamicTranslation.d.ts +1 -0
  374. package/dist/utils/translations/getPackageTypeTranslation.d.ts +2 -0
  375. package/dist/utils/translations/index.d.ts +4 -0
  376. package/dist/utils/translations/translateSelectOption.d.ts +3 -0
  377. package/dist/utils/triStateToBoolean.d.ts +2 -0
  378. package/dist/utils/unprefixComponent.d.ts +3 -0
  379. package/dist/utils/validateId.d.ts +2 -0
  380. package/dist/views/ChildProductSettings.vue.d.ts +3 -0
  381. package/dist/views/Modals.vue.d.ts +3 -0
  382. package/dist/views/Notifications.vue.d.ts +3 -0
  383. package/dist/views/OrderBox.vue.d.ts +3 -0
  384. package/dist/views/OrderListItem.vue.d.ts +3 -0
  385. package/dist/views/PluginSettings.vue.d.ts +3 -0
  386. package/dist/views/ProductSettings.vue.d.ts +35 -0
  387. package/dist/views/integrated/OrderBoxView.vue.d.ts +13 -0
  388. package/dist/views/integrated/OrderListItemView.vue.d.ts +13 -0
  389. package/dist/views/integrated/index.d.ts +7 -0
  390. package/package.json +5 -6
  391. package/src/forms/shipmentOptions/createShipmentOptionsForm.spec.ts +1 -0
  392. package/src/forms/shipmentOptions/createShipmentOptionsForm.ts +21 -2
  393. package/src/forms/shipmentOptions/field.ts +12 -0
  394. package/src/forms/shipmentOptions/fields/createDimensionFields.spec.ts +49 -0
  395. package/src/forms/shipmentOptions/fields/createDimensionFields.ts +32 -0
  396. package/src/forms/shipmentOptions/fields/index.ts +1 -0
@@ -0,0 +1,70 @@
1
+ import { type PropType } from 'vue';
2
+ import { type ComponentOrHtmlElement } from '@myparcel-dev/vue-form-builder';
3
+ import { type PrefixedAdminComponent, type TabDefinition } from '../../types';
4
+ declare var __VLS_20: {};
5
+ type __VLS_Slots = {} & {
6
+ 'button-wrapper'?: (props: typeof __VLS_20) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<{
9
+ button: {
10
+ type: PropType<ComponentOrHtmlElement | PrefixedAdminComponent>;
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
+ buttonWrapper: {
14
+ type: PropType<ComponentOrHtmlElement | PrefixedAdminComponent>;
15
+ 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";
16
+ };
17
+ closeable: {
18
+ type: BooleanConstructor;
19
+ };
20
+ hashPrefix: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ initialTab: {
25
+ type: (BooleanConstructor | StringConstructor)[];
26
+ default: null;
27
+ };
28
+ tabs: {
29
+ type: PropType<TabDefinition[]>;
30
+ required: true;
31
+ };
32
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
+ button: {
34
+ type: PropType<ComponentOrHtmlElement | PrefixedAdminComponent>;
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
+ buttonWrapper: {
38
+ type: PropType<ComponentOrHtmlElement | PrefixedAdminComponent>;
39
+ 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";
40
+ };
41
+ closeable: {
42
+ type: BooleanConstructor;
43
+ };
44
+ hashPrefix: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ initialTab: {
49
+ type: (BooleanConstructor | StringConstructor)[];
50
+ default: null;
51
+ };
52
+ tabs: {
53
+ type: PropType<TabDefinition[]>;
54
+ required: true;
55
+ };
56
+ }>>, {
57
+ button: ComponentOrHtmlElement;
58
+ buttonWrapper: ComponentOrHtmlElement;
59
+ closeable: boolean;
60
+ hashPrefix: string;
61
+ initialTab: string | boolean;
62
+ }, {}>;
63
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
64
+ declare const _default: typeof __VLS_export;
65
+ export default _default;
66
+ type __VLS_WithSlots<T, S> = T & {
67
+ new (): {
68
+ $slots: S;
69
+ };
70
+ };
@@ -0,0 +1,20 @@
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';
@@ -0,0 +1 @@
1
+ export * from './common';
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { type OneOrMore } from '@myparcel-dev/ts-utils';
2
+ type __VLS_Props = {
3
+ order: OneOrMore<string>;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}, {}>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
8
+ type __VLS_TypePropsToOption<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('vue').PropType<Required<T>[K]>;
11
+ } : {
12
+ type: import('vue').PropType<T[K]>;
13
+ required: true;
14
+ };
15
+ };
@@ -0,0 +1,15 @@
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';
@@ -0,0 +1,9 @@
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 {};
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,15 @@
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 {};
@@ -0,0 +1,7 @@
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>;
@@ -0,0 +1,6 @@
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 SelectInputModelValue = SelectInputModelValue, Props extends PdkElementProps<any, OptionsProp<T>> = PdkElementProps<any, OptionsProp<T>>>(props: Props) => ElementOptionsContext<T>;
@@ -0,0 +1,10 @@
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 SelectInputModelValue = SelectInputModelValue, Props extends SelectInputProps<T> = SelectInputProps<T>, Multiple extends boolean = boolean>(props: Props, emit: SelectInputEmits<T>, multiple?: Multiple) => InputWithOptionsContext<T, Multiple>;
10
+ export {};
@@ -0,0 +1,11 @@
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 {};
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,10 @@
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 RadioGroupModelValue = RadioGroupModelValue, Props extends RadioGroupProps<T> = RadioGroupProps<T>>(props: Props, emit: RadioGroupEmits<T>) => RadioGroupContext<T>;
10
+ export {};
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,13 @@
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 ShippingMethodsInputModelValue>(props: ShippingMethodsInputProps<T>, emit?: (name: "update:modelValue", value: T) => void) => ShippingMethodsInputContext;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import { type ComputedRef } from 'vue';
2
+ import { type TableProps } from '../../types';
3
+ type UseTableContext = (props: TableProps) => {
4
+ transition: ComputedRef<string | undefined>;
5
+ };
6
+ export declare const useTableContext: UseTableContext;
7
+ export {};
@@ -0,0 +1,11 @@
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 {};
@@ -0,0 +1,17 @@
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 {};
@@ -0,0 +1,8 @@
1
+ export * from './useAppInfo';
2
+ export * from './useContext';
3
+ export * from './useGlobalContext';
4
+ export * from './useInstanceContext';
5
+ export * from './useModalContext';
6
+ export * from './useModalOrder';
7
+ export * from './useOrderMode';
8
+ export * from './usePluginSettings';
@@ -0,0 +1,2 @@
1
+ import { type AdminContextObject } from '../../types';
2
+ export declare const useAppInfo: () => AdminContextObject["global"]["appInfo"];
@@ -0,0 +1,3 @@
1
+ import { AdminContextKey } from '@myparcel-dev/pdk-common';
2
+ import { type AdminContext } from '../../types';
3
+ export declare const useContext: <C extends AdminContextKey = AdminContextKey.Dynamic>(contextKey?: C) => NonNullable<AdminContext<C>>;
@@ -0,0 +1,2 @@
1
+ import { type AdminContextObject } from '../../types';
2
+ export declare const useGlobalContext: () => AdminContextObject["global"];
@@ -0,0 +1,8 @@
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 {};
@@ -0,0 +1,11 @@
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 {};
@@ -0,0 +1 @@
1
+ export declare const useModalOrder: () => string | null;
@@ -0,0 +1,12 @@
1
+ import { type ComputedRef } from 'vue';
2
+ import { type OrderMode } from '../../data';
3
+ /**
4
+ * Resolve the order mode the admin UI should adapt to.
5
+ *
6
+ * Prefers the pre-computed `effectiveOrderMode` emitted by the PDK admin context
7
+ * (so any business rules applied on the PHP side — e.g. INT-1590's
8
+ * sales-channel-conditional downgrade — naturally flow through). Falls back to
9
+ * resolving from the raw IAM subscription features when the context does not
10
+ * (yet) carry that value, which keeps older PDK versions working.
11
+ */
12
+ export declare const useOrderMode: () => ComputedRef<OrderMode>;
@@ -0,0 +1,2 @@
1
+ import { type Plugin } from '@myparcel-dev/pdk-common';
2
+ export declare const usePluginSettings: () => Plugin.ModelContextDynamicContext["pluginSettings"];
@@ -0,0 +1 @@
1
+ export declare const createCurrencyFormat: (locale: string) => Intl.NumberFormat;
@@ -0,0 +1 @@
1
+ export declare const createLongDateFormat: (locale: string) => Intl.DateTimeFormat;
@@ -0,0 +1 @@
1
+ export declare const createRelativeTimeFormat: (locale: string) => Intl.RelativeTimeFormat;
@@ -0,0 +1,2 @@
1
+ import { type FormatterFunction } from '../formatter.types';
2
+ export declare const createDefaultCurrencyFormatter: (locale: string) => FormatterFunction;
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,6 @@
1
+ export * from './createCurrencyFormat';
2
+ export * from './createLongDateFormat';
3
+ export * from './createRelativeTimeFormat';
4
+ export * from './defaultCurrencyFormatters';
5
+ export * from './defaultDateFormatters';
6
+ export * from './parseDate';
@@ -0,0 +1 @@
1
+ export declare const parseDate: (date: unknown) => Date;
@@ -0,0 +1,23 @@
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;
@@ -0,0 +1,4 @@
1
+ export * from './default';
2
+ export * from './formatter.types';
3
+ export * from './useFormatter';
4
+ export * from './useLocalizedFormatter';
@@ -0,0 +1,2 @@
1
+ import { type Formatter, type FormatterTranslateFunction } from './formatter.types';
2
+ export declare const useFormatter: (locale: string, translate?: FormatterTranslateFunction) => Formatter;
@@ -0,0 +1,2 @@
1
+ import { type Formatter } from './formatter.types';
2
+ export declare const useLocalizedFormatter: () => Formatter;
@@ -0,0 +1,17 @@
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';
@@ -0,0 +1,4 @@
1
+ export * from './resolveTranslatedString';
2
+ export * from './resolveTranslationKey';
3
+ export * from './types';
4
+ export * from './useLanguage';
@@ -0,0 +1,3 @@
1
+ import { type Translatable } from '../../types';
2
+ import { type Replacers } from './types';
3
+ export declare const resolveTranslatedString: (translated: string, replacers: undefined | Replacers, translation: string | Translatable) => string;
@@ -0,0 +1,2 @@
1
+ import { type Translatable } from '../../types';
2
+ export declare const resolveTranslationKey: (translation: string | Translatable) => string;
@@ -0,0 +1 @@
1
+ export type Replacers = Record<string, unknown | Record<string, unknown>>;
@@ -0,0 +1,23 @@
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 {};
@@ -0,0 +1,3 @@
1
+ export * from './useOrder';
2
+ export * from './useOrderData';
3
+ export * from './useOrdersData';
@@ -0,0 +1,3 @@
1
+ import { BackendEndpoint } from '@myparcel-dev/pdk-common';
2
+ import { type ResolvedQuery } from '../../stores';
3
+ export declare const useOrder: (externalIdentifier?: string) => ResolvedQuery<BackendEndpoint.FetchOrders>;
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,3 @@
1
+ import { type OneOrMore } from '@myparcel-dev/ts-utils';
2
+ import { type UseOrderData } from './useOrderData';
3
+ export declare const useOrdersData: (externalIdentifiers?: OneOrMore<string>) => UseOrderData[];
@@ -0,0 +1 @@
1
+ export * from './useProductData';
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,3 @@
1
+ export * from './useShipment';
2
+ export * from './useShipmentData';
3
+ export * from './useShipmentsData';
@@ -0,0 +1,3 @@
1
+ import { BackendEndpoint } from '@myparcel-dev/pdk-common';
2
+ import { type ResolvedQuery } from '../../stores';
3
+ export declare const useShipment: (id: number) => ResolvedQuery<BackendEndpoint.FetchShipments>;
@@ -0,0 +1,12 @@
1
+ import { type ComputedRef, type Ref } from 'vue';
2
+ import { type MaybeRef } from '@vueuse/core';
3
+ import { type Carrier } from '@myparcel-dev/sdk';
4
+ import { type Shipment } from '@myparcel-dev/pdk-common';
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;
@@ -0,0 +1,2 @@
1
+ import { type UseShipmentData } from './useShipmentData';
2
+ export declare const useShipmentsData: (ids: number[]) => UseShipmentData[];
@@ -0,0 +1,2 @@
1
+ import { type AdminConfiguration } from '../types';
2
+ export declare const useAdminConfig: () => AdminConfiguration;
@@ -0,0 +1,2 @@
1
+ import { type AdminInstance } from '../types';
2
+ export declare const useAdminInstance: () => AdminInstance;