@deenruv/react-ui-devkit 1.0.16 → 1.0.17-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/accordion.d.ts +1 -1
- package/dist/components/atoms/accordion.js +8 -18
- package/dist/components/atoms/accordion.js.map +1 -1
- package/dist/components/atoms/alert-dialog.js +13 -38
- package/dist/components/atoms/alert-dialog.js.map +1 -1
- package/dist/components/atoms/aspect-ratio.d.ts +0 -1
- package/dist/components/atoms/aspect-ratio.js +1 -1
- package/dist/components/atoms/aspect-ratio.js.map +1 -1
- package/dist/components/atoms/asset-upload-button.js +39 -54
- package/dist/components/atoms/asset-upload-button.js.map +1 -1
- package/dist/components/atoms/badge.d.ts +1 -1
- package/dist/components/atoms/badge.js +10 -12
- package/dist/components/atoms/badge.js.map +1 -1
- package/dist/components/atoms/breadcrumb.d.ts +1 -1
- package/dist/components/atoms/breadcrumb.js +11 -31
- package/dist/components/atoms/breadcrumb.js.map +1 -1
- package/dist/components/atoms/button.js +3 -5
- package/dist/components/atoms/button.js.map +1 -1
- package/dist/components/atoms/calendar.js +25 -4
- package/dist/components/atoms/calendar.js.map +1 -1
- package/dist/components/atoms/card.js +6 -25
- package/dist/components/atoms/card.js.map +1 -1
- package/dist/components/atoms/chart.d.ts +11 -11
- package/dist/components/atoms/chart.js +55 -65
- package/dist/components/atoms/chart.js.map +1 -1
- package/dist/components/atoms/checkbox.js +3 -7
- package/dist/components/atoms/checkbox.js.map +1 -1
- package/dist/components/atoms/command.d.ts +35 -35
- package/dist/components/atoms/command.js +13 -34
- package/dist/components/atoms/command.js.map +1 -1
- package/dist/components/atoms/dialog.js +16 -35
- package/dist/components/atoms/dialog.js.map +1 -1
- package/dist/components/atoms/drawer.js +14 -36
- package/dist/components/atoms/drawer.js.map +1 -1
- package/dist/components/atoms/dropdown-menu.d.ts +3 -3
- package/dist/components/atoms/dropdown-menu.js +27 -53
- package/dist/components/atoms/dropdown-menu.js.map +1 -1
- package/dist/components/atoms/faceted-filter.d.ts +17 -17
- package/dist/components/atoms/faceted-filter.js +13 -21
- package/dist/components/atoms/faceted-filter.js.map +1 -1
- package/dist/components/atoms/form.d.ts +5 -3
- package/dist/components/atoms/form.js +38 -38
- package/dist/components/atoms/form.js.map +1 -1
- package/dist/components/atoms/hover-card.js +3 -7
- package/dist/components/atoms/hover-card.js.map +1 -1
- package/dist/components/atoms/image-placeholder.js +3 -3
- package/dist/components/atoms/image-placeholder.js.map +1 -1
- package/dist/components/atoms/input.js +29 -25
- package/dist/components/atoms/input.js.map +1 -1
- package/dist/components/atoms/label.d.ts +1 -1
- package/dist/components/atoms/label.js +2 -6
- package/dist/components/atoms/label.js.map +1 -1
- package/dist/components/atoms/language-picker.js +10 -11
- package/dist/components/atoms/language-picker.js.map +1 -1
- package/dist/components/atoms/multiple-selector.js +136 -173
- package/dist/components/atoms/multiple-selector.js.map +1 -1
- package/dist/components/atoms/pagination.js +17 -37
- package/dist/components/atoms/pagination.js.map +1 -1
- package/dist/components/atoms/popover.js +4 -8
- package/dist/components/atoms/popover.js.map +1 -1
- package/dist/components/atoms/progress.js +2 -6
- package/dist/components/atoms/progress.js.map +1 -1
- package/dist/components/atoms/radio-group.js +4 -7
- package/dist/components/atoms/radio-group.js.map +1 -1
- package/dist/components/atoms/scroll-area.js +8 -15
- package/dist/components/atoms/scroll-area.js.map +1 -1
- package/dist/components/atoms/select.js +25 -47
- package/dist/components/atoms/select.js.map +1 -1
- package/dist/components/atoms/separator.js +1 -5
- package/dist/components/atoms/separator.js.map +1 -1
- package/dist/components/atoms/sheet.d.ts +1 -1
- package/dist/components/atoms/sheet.js +17 -36
- package/dist/components/atoms/sheet.js.map +1 -1
- package/dist/components/atoms/skeleton.js +2 -4
- package/dist/components/atoms/skeleton.js.map +1 -1
- package/dist/components/atoms/sonner.d.ts +1 -1
- package/dist/components/atoms/sonner.js +3 -5
- package/dist/components/atoms/sonner.js.map +1 -1
- package/dist/components/atoms/sortable.js +132 -138
- package/dist/components/atoms/sortable.js.map +1 -1
- package/dist/components/atoms/spinner.js +11 -14
- package/dist/components/atoms/spinner.js.map +1 -1
- package/dist/components/atoms/switch.js +2 -6
- package/dist/components/atoms/switch.js.map +1 -1
- package/dist/components/atoms/table.d.ts +3 -3
- package/dist/components/atoms/table.js +12 -37
- package/dist/components/atoms/table.js.map +1 -1
- package/dist/components/atoms/tabs.js +7 -17
- package/dist/components/atoms/tabs.js.map +1 -1
- package/dist/components/atoms/textarea.js +2 -4
- package/dist/components/atoms/textarea.js.map +1 -1
- package/dist/components/atoms/timeline.d.ts +5 -5
- package/dist/components/atoms/timeline.js +17 -32
- package/dist/components/atoms/timeline.js.map +1 -1
- package/dist/components/atoms/toggle-group.d.ts +2 -2
- package/dist/components/atoms/toggle-group.js +7 -12
- package/dist/components/atoms/toggle-group.js.map +1 -1
- package/dist/components/atoms/toggle.d.ts +2 -2
- package/dist/components/atoms/toggle.js +2 -6
- package/dist/components/atoms/toggle.js.map +1 -1
- package/dist/components/atoms/tooltip.js +4 -8
- package/dist/components/atoms/tooltip.js.map +1 -1
- package/dist/components/core/DeenruvForm.js +2 -4
- package/dist/components/core/DeenruvForm.js.map +1 -1
- package/dist/components/core/DetailViewMarker.d.ts +2 -2
- package/dist/components/core/DetailViewMarker.js +13 -7
- package/dist/components/core/DetailViewMarker.js.map +1 -1
- package/dist/components/core/EntityCustomFields.js +133 -176
- package/dist/components/core/EntityCustomFields.js.map +1 -1
- package/dist/components/core/ListViewMarker.js +13 -7
- package/dist/components/core/ListViewMarker.js.map +1 -1
- package/dist/components/core/Renderer.js +5 -9
- package/dist/components/core/Renderer.js.map +1 -1
- package/dist/components/molecules/ContextMenu.js +1 -2
- package/dist/components/molecules/ContextMenu.js.map +1 -1
- package/dist/components/molecules/CustomFieldsModal.js +27 -33
- package/dist/components/molecules/CustomFieldsModal.js.map +1 -1
- package/dist/components/molecules/ErrorMessage.js +2 -3
- package/dist/components/molecules/ErrorMessage.js.map +1 -1
- package/dist/components/molecules/ImageWithPreview.js +4 -6
- package/dist/components/molecules/ImageWithPreview.js.map +1 -1
- package/dist/components/molecules/ListBadge.js +2 -3
- package/dist/components/molecules/ListBadge.js.map +1 -1
- package/dist/components/molecules/ListTable.js +82 -76
- package/dist/components/molecules/ListTable.js.map +1 -1
- package/dist/components/molecules/OrderStateBadge.js +3 -4
- package/dist/components/molecules/OrderStateBadge.js.map +1 -1
- package/dist/components/molecules/PaymentMethodImage.js +4 -5
- package/dist/components/molecules/PaymentMethodImage.js.map +1 -1
- package/dist/components/molecules/SearchInput.js +2 -3
- package/dist/components/molecules/SearchInput.js.map +1 -1
- package/dist/components/molecules/SimpleSelect.js +5 -6
- package/dist/components/molecules/SimpleSelect.js.map +1 -1
- package/dist/components/molecules/SimpleTooltip.js +1 -2
- package/dist/components/molecules/SimpleTooltip.js.map +1 -1
- package/dist/components/molecules/SortButton.js +1 -2
- package/dist/components/molecules/SortButton.js.map +1 -1
- package/dist/components/molecules/TranslationSelect.js +6 -6
- package/dist/components/molecules/TranslationSelect.js.map +1 -1
- package/dist/components/templates/DetailList/DetailList.js +237 -273
- package/dist/components/templates/DetailList/DetailList.js.map +1 -1
- package/dist/components/templates/DetailList/DetailListColumns/ActionsDropdown.js +35 -50
- package/dist/components/templates/DetailList/DetailListColumns/ActionsDropdown.js.map +1 -1
- package/dist/components/templates/DetailList/DetailListColumns/BooleanCell.js +3 -4
- package/dist/components/templates/DetailList/DetailListColumns/BooleanCell.js.map +1 -1
- package/dist/components/templates/DetailList/DetailListColumns/SelectIDColumn.js +7 -13
- package/dist/components/templates/DetailList/DetailListColumns/SelectIDColumn.js.map +1 -1
- package/dist/components/templates/DetailList/_components/DeleteDialog.js +3 -7
- package/dist/components/templates/DetailList/_components/DeleteDialog.js.map +1 -1
- package/dist/components/templates/DetailList/_components/TableLabel.d.ts +1 -1
- package/dist/components/templates/DetailList/_components/TableLabel.js +2 -5
- package/dist/components/templates/DetailList/_components/TableLabel.js.map +1 -1
- package/dist/components/templates/DetailList/_components/operators/ArrayInput.js +12 -14
- package/dist/components/templates/DetailList/_components/operators/ArrayInput.js.map +1 -1
- package/dist/components/templates/DetailList/_components/operators/BooleanOperator.js +10 -13
- package/dist/components/templates/DetailList/_components/operators/BooleanOperator.js.map +1 -1
- package/dist/components/templates/DetailList/_components/operators/DateOperator.js +17 -20
- package/dist/components/templates/DetailList/_components/operators/DateOperator.js.map +1 -1
- package/dist/components/templates/DetailList/_components/operators/IDOperator.js +13 -17
- package/dist/components/templates/DetailList/_components/operators/IDOperator.js.map +1 -1
- package/dist/components/templates/DetailList/_components/operators/NumberOperator.js +25 -32
- package/dist/components/templates/DetailList/_components/operators/NumberOperator.js.map +1 -1
- package/dist/components/templates/DetailList/_components/operators/RenderOperators.js +20 -21
- package/dist/components/templates/DetailList/_components/operators/RenderOperators.js.map +1 -1
- package/dist/components/templates/DetailList/_components/operators/StringOperator.js +17 -22
- package/dist/components/templates/DetailList/_components/operators/StringOperator.js.map +1 -1
- package/dist/components/templates/DetailList/_components/types.js +15 -15
- package/dist/components/templates/DetailList/_components/types.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailList.js +5 -7
- package/dist/components/templates/DetailList/useDetailList.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/ColumnView.js +47 -55
- package/dist/components/templates/DetailList/useDetailListHook/ColumnView.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/FiltersDialog.d.ts +6 -106
- package/dist/components/templates/DetailList/useDetailListHook/FiltersDialog.js +49 -64
- package/dist/components/templates/DetailList/useDetailListHook/FiltersDialog.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/OperatorSelect.js +24 -25
- package/dist/components/templates/DetailList/useDetailListHook/OperatorSelect.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/OperatorValue.js +8 -9
- package/dist/components/templates/DetailList/useDetailListHook/OperatorValue.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/Paginate.js +34 -36
- package/dist/components/templates/DetailList/useDetailListHook/Paginate.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/Search.d.ts +4 -4
- package/dist/components/templates/DetailList/useDetailListHook/Search.js +15 -15
- package/dist/components/templates/DetailList/useDetailListHook/Search.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/SortSelect.js +7 -8
- package/dist/components/templates/DetailList/useDetailListHook/SortSelect.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/constants.js +3 -3
- package/dist/components/templates/DetailList/useDetailListHook/constants.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/index.d.ts +9 -61
- package/dist/components/templates/DetailList/useDetailListHook/index.js +79 -81
- package/dist/components/templates/DetailList/useDetailListHook/index.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/types.d.ts +0 -1
- package/dist/components/templates/DetailList/useDetailListHook/types.js +3 -5
- package/dist/components/templates/DetailList/useDetailListHook/types.js.map +1 -1
- package/dist/components/templates/DetailView/DetailView.d.ts +1 -1
- package/dist/components/templates/DetailView/DetailView.js +80 -91
- package/dist/components/templates/DetailView/DetailView.js.map +1 -1
- package/dist/components/templates/DetailView/_components/LoadingMask.js +2 -3
- package/dist/components/templates/DetailView/_components/LoadingMask.js.map +1 -1
- package/dist/components/templates/DetailView/formChangeDetection.js +30 -32
- package/dist/components/templates/DetailView/formChangeDetection.js.map +1 -1
- package/dist/components/templates/DetailView/useDetailView.d.ts +132 -132
- package/dist/components/templates/DetailView/useDetailView.js +113 -136
- package/dist/components/templates/DetailView/useDetailView.js.map +1 -1
- package/dist/consts/defaultChannel.js +1 -1
- package/dist/consts/defaultChannel.js.map +1 -1
- package/dist/consts/icons.d.ts +0 -1
- package/dist/consts/icons.js +1 -1
- package/dist/consts/icons.js.map +1 -1
- package/dist/consts/localStorageVersion.js +1 -1
- package/dist/consts/localStorageVersion.js.map +1 -1
- package/dist/custom_fields/ArgumentFieldsComponent.d.ts +4 -4
- package/dist/custom_fields/ArgumentFieldsComponent.js +50 -49
- package/dist/custom_fields/ArgumentFieldsComponent.js.map +1 -1
- package/dist/custom_fields/CustomFieldsComponent.js +28 -36
- package/dist/custom_fields/CustomFieldsComponent.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/DefaultCheckbox.js +4 -5
- package/dist/custom_fields/DefaultInputs/DefaultCheckbox.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/DefaultCurrencyInput.js +6 -7
- package/dist/custom_fields/DefaultInputs/DefaultCurrencyInput.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/DefaultFloatInput.js +22 -7
- package/dist/custom_fields/DefaultInputs/DefaultFloatInput.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/DefaultIntInput.js +22 -6
- package/dist/custom_fields/DefaultInputs/DefaultIntInput.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/DefaultRichText.js +3 -4
- package/dist/custom_fields/DefaultInputs/DefaultRichText.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/DefaultSelectInput.d.ts +2 -0
- package/dist/custom_fields/DefaultInputs/DefaultSelectInput.js +38 -0
- package/dist/custom_fields/DefaultInputs/DefaultSelectInput.js.map +1 -0
- package/dist/custom_fields/DefaultInputs/DefaultSimpleListInput.js +17 -20
- package/dist/custom_fields/DefaultInputs/DefaultSimpleListInput.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/DefaultTextInput.js +3 -4
- package/dist/custom_fields/DefaultInputs/DefaultTextInput.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/DefaultTextarea.js +3 -4
- package/dist/custom_fields/DefaultInputs/DefaultTextarea.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/DefaultTimeSelect.js +7 -8
- package/dist/custom_fields/DefaultInputs/DefaultTimeSelect.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/Relations/DefaultRelationInput.js +1 -1
- package/dist/custom_fields/DefaultInputs/Relations/DefaultRelationInput.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/Relations/ListRelationInput.d.ts +4 -1
- package/dist/custom_fields/DefaultInputs/Relations/ListRelationInput.js +58 -81
- package/dist/custom_fields/DefaultInputs/Relations/ListRelationInput.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/Relations/RelationInput.d.ts +4 -1
- package/dist/custom_fields/DefaultInputs/Relations/RelationInput.js +26 -43
- package/dist/custom_fields/DefaultInputs/Relations/RelationInput.js.map +1 -1
- package/dist/custom_fields/DefaultInputs/index.d.ts +1 -0
- package/dist/custom_fields/DefaultInputs/index.js +1 -0
- package/dist/custom_fields/DefaultInputs/index.js.map +1 -1
- package/dist/custom_fields/InputFieldComponent.d.ts +2 -2
- package/dist/custom_fields/InputFieldComponent.js +4 -8
- package/dist/custom_fields/InputFieldComponent.js.map +1 -1
- package/dist/custom_fields/context.js +10 -15
- package/dist/custom_fields/context.js.map +1 -1
- package/dist/custom_fields/logic.js +26 -23
- package/dist/custom_fields/logic.js.map +1 -1
- package/dist/hooks/useAssets.d.ts +1 -2
- package/dist/hooks/useAssets.js +66 -73
- package/dist/hooks/useAssets.js.map +1 -1
- package/dist/hooks/useCustomSearchParams.d.ts +1 -1
- package/dist/hooks/useCustomSearchParams.js +12 -16
- package/dist/hooks/useCustomSearchParams.js.map +1 -1
- package/dist/hooks/useDebounce.js +4 -4
- package/dist/hooks/useDebounce.js.map +1 -1
- package/dist/hooks/useDeenruvForm.js +14 -11
- package/dist/hooks/useDeenruvForm.js.map +1 -1
- package/dist/hooks/useErrorHandler.js +11 -11
- package/dist/hooks/useErrorHandler.js.map +1 -1
- package/dist/hooks/useList.d.ts +4 -4
- package/dist/hooks/useList.js +89 -92
- package/dist/hooks/useList.js.map +1 -1
- package/dist/hooks/useLocalStorage.js +6 -6
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useRouteGuard.js +6 -7
- package/dist/hooks/useRouteGuard.js.map +1 -1
- package/dist/hooks/useTranslation.js +7 -9
- package/dist/hooks/useTranslation.js.map +1 -1
- package/dist/hooks/useValidators.js +49 -51
- package/dist/hooks/useValidators.js.map +1 -1
- package/dist/hooks/useZodValidators.js +17 -25
- package/dist/hooks/useZodValidators.js.map +1 -1
- package/dist/lib/composition.js +10 -21
- package/dist/lib/composition.js.map +1 -1
- package/dist/lib/utils.js +17 -19
- package/dist/lib/utils.js.map +1 -1
- package/dist/notifications/context.d.ts +0 -1
- package/dist/notifications/context.js +1 -1
- package/dist/notifications/context.js.map +1 -1
- package/dist/notifications/provider.js +2 -4
- package/dist/notifications/provider.js.map +1 -1
- package/dist/notifications/state.d.ts +1 -1
- package/dist/notifications/state.js +25 -30
- package/dist/notifications/state.js.map +1 -1
- package/dist/notifications/useNotifications.js +1 -1
- package/dist/notifications/useNotifications.js.map +1 -1
- package/dist/plugins/create-plugin.js +1 -1
- package/dist/plugins/create-plugin.js.map +1 -1
- package/dist/plugins/default-input-components.d.ts +1 -0
- package/dist/plugins/default-input-components.js +6 -4
- package/dist/plugins/default-input-components.js.map +1 -1
- package/dist/plugins/plugin-context.js +51 -40
- package/dist/plugins/plugin-context.js.map +1 -1
- package/dist/plugins/plugin-store.d.ts +4 -4
- package/dist/plugins/plugin-store.js +217 -254
- package/dist/plugins/plugin-store.js.map +1 -1
- package/dist/routes.js +23 -28
- package/dist/routes.js.map +1 -1
- package/dist/selectors/AssetsSelector.js +1 -1
- package/dist/selectors/AssetsSelector.js.map +1 -1
- package/dist/selectors/BaseSelectors.js +7 -7
- package/dist/selectors/BaseSelectors.js.map +1 -1
- package/dist/selectors/CustomFieldSelectors.js +5 -5
- package/dist/selectors/CustomFieldSelectors.js.map +1 -1
- package/dist/selectors/CustomerSearchSelector.js +1 -1
- package/dist/selectors/CustomerSearchSelector.js.map +1 -1
- package/dist/selectors/DialogProductPickerSelector.js +1 -1
- package/dist/selectors/DialogProductPickerSelector.js.map +1 -1
- package/dist/selectors/FacetValueSelector.js +1 -1
- package/dist/selectors/FacetValueSelector.js.map +1 -1
- package/dist/selectors/ModifyOrderSelector.js +1 -1
- package/dist/selectors/ModifyOrderSelector.js.map +1 -1
- package/dist/selectors/OrderHistorySelector.js +1 -1
- package/dist/selectors/OrderHistorySelector.js.map +1 -1
- package/dist/selectors/OrderListSelector.js +8 -8
- package/dist/selectors/OrderListSelector.js.map +1 -1
- package/dist/selectors/OrderPaymentSelector.js +1 -1
- package/dist/selectors/OrderPaymentSelector.js.map +1 -1
- package/dist/selectors/PaymentMethodsSelector.js +1 -1
- package/dist/selectors/PaymentMethodsSelector.js.map +1 -1
- package/dist/selectors/PromotionsSelector.js +2 -2
- package/dist/selectors/PromotionsSelector.js.map +1 -1
- package/dist/selectors/details/AdminDetailSelector.js +1 -1
- package/dist/selectors/details/AdminDetailSelector.js.map +1 -1
- package/dist/selectors/details/ChannelDetailSelector.js +1 -1
- package/dist/selectors/details/ChannelDetailSelector.js.map +1 -1
- package/dist/selectors/details/CollectionDetailSelector.js +1 -1
- package/dist/selectors/details/CollectionDetailSelector.js.map +1 -1
- package/dist/selectors/details/CountryDetailSelector.js +1 -1
- package/dist/selectors/details/CountryDetailSelector.js.map +1 -1
- package/dist/selectors/details/CustomerDetailSelector.js +4 -4
- package/dist/selectors/details/CustomerDetailSelector.js.map +1 -1
- package/dist/selectors/details/CustomerGroupDetailSelector.js +1 -1
- package/dist/selectors/details/CustomerGroupDetailSelector.js.map +1 -1
- package/dist/selectors/details/FacetDetailSelector.js +2 -2
- package/dist/selectors/details/FacetDetailSelector.js.map +1 -1
- package/dist/selectors/details/GlobalSettingsDetailSelector.js +1 -1
- package/dist/selectors/details/GlobalSettingsDetailSelector.js.map +1 -1
- package/dist/selectors/details/OrderDetailSelector.js +23 -10
- package/dist/selectors/details/OrderDetailSelector.js.map +1 -1
- package/dist/selectors/details/PaymentMethodDetailSelector.js +1 -1
- package/dist/selectors/details/PaymentMethodDetailSelector.js.map +1 -1
- package/dist/selectors/details/ProductDetailSelector.js +2 -2
- package/dist/selectors/details/ProductDetailSelector.js.map +1 -1
- package/dist/selectors/details/PromotionDetailSelector.js +1 -1
- package/dist/selectors/details/PromotionDetailSelector.js.map +1 -1
- package/dist/selectors/details/RoleDetailSelector.js +1 -1
- package/dist/selectors/details/RoleDetailSelector.js.map +1 -1
- package/dist/selectors/details/SellerDetailSelector.js +1 -1
- package/dist/selectors/details/SellerDetailSelector.js.map +1 -1
- package/dist/selectors/details/ShippingMethodDetailSelector.js +1 -1
- package/dist/selectors/details/ShippingMethodDetailSelector.js.map +1 -1
- package/dist/selectors/details/StockLocationDetailSelector.js +1 -1
- package/dist/selectors/details/StockLocationDetailSelector.js.map +1 -1
- package/dist/selectors/details/TaxCategoryDetailSelector.js +1 -1
- package/dist/selectors/details/TaxCategoryDetailSelector.js.map +1 -1
- package/dist/selectors/details/TaxRateDetailSelector.js +1 -1
- package/dist/selectors/details/TaxRateDetailSelector.js.map +1 -1
- package/dist/selectors/details/ZoneDetailSelector.js +1 -1
- package/dist/selectors/details/ZoneDetailSelector.js.map +1 -1
- package/dist/selectors/lists/AdminListSelector.js +1 -1
- package/dist/selectors/lists/AdminListSelector.js.map +1 -1
- package/dist/selectors/lists/AssetListSelector.js +1 -1
- package/dist/selectors/lists/AssetListSelector.js.map +1 -1
- package/dist/selectors/lists/ChannelListSelector.js +1 -1
- package/dist/selectors/lists/ChannelListSelector.js.map +1 -1
- package/dist/selectors/lists/CollectionListSelector.js +1 -1
- package/dist/selectors/lists/CollectionListSelector.js.map +1 -1
- package/dist/selectors/lists/CountryListSelector.js +1 -1
- package/dist/selectors/lists/CountryListSelector.js.map +1 -1
- package/dist/selectors/lists/CustomerGroupListSelector.js +1 -1
- package/dist/selectors/lists/CustomerGroupListSelector.js.map +1 -1
- package/dist/selectors/lists/CustomerListSelector.js +1 -1
- package/dist/selectors/lists/CustomerListSelector.js.map +1 -1
- package/dist/selectors/lists/FacetListSelector.js +1 -1
- package/dist/selectors/lists/FacetListSelector.js.map +1 -1
- package/dist/selectors/lists/FacetValueListSelector.js +1 -1
- package/dist/selectors/lists/FacetValueListSelector.js.map +1 -1
- package/dist/selectors/lists/OrderListSelector.js +1 -1
- package/dist/selectors/lists/OrderListSelector.js.map +1 -1
- package/dist/selectors/lists/PaymentMethodListSelector.js +1 -1
- package/dist/selectors/lists/PaymentMethodListSelector.js.map +1 -1
- package/dist/selectors/lists/ProductListSelector.js +1 -1
- package/dist/selectors/lists/ProductListSelector.js.map +1 -1
- package/dist/selectors/lists/ProductVariantListSelector.js +1 -1
- package/dist/selectors/lists/ProductVariantListSelector.js.map +1 -1
- package/dist/selectors/lists/PromotionListSelector.js +1 -1
- package/dist/selectors/lists/PromotionListSelector.js.map +1 -1
- package/dist/selectors/lists/RoleListSelector.js +1 -1
- package/dist/selectors/lists/RoleListSelector.js.map +1 -1
- package/dist/selectors/lists/SellerListSelector.js +1 -1
- package/dist/selectors/lists/SellerListSelector.js.map +1 -1
- package/dist/selectors/lists/ShippingMethodListSelector.js +1 -1
- package/dist/selectors/lists/ShippingMethodListSelector.js.map +1 -1
- package/dist/selectors/lists/StockLocationListSelector.js +1 -1
- package/dist/selectors/lists/StockLocationListSelector.js.map +1 -1
- package/dist/selectors/lists/TaxCategoryListSelector.js +1 -1
- package/dist/selectors/lists/TaxCategoryListSelector.js.map +1 -1
- package/dist/selectors/lists/TaxRateListSelector.js +1 -1
- package/dist/selectors/lists/TaxRateListSelector.js.map +1 -1
- package/dist/selectors/lists/ZoneListSelector.js +1 -1
- package/dist/selectors/lists/ZoneListSelector.js.map +1 -1
- package/dist/state/global-search.js +5 -5
- package/dist/state/global-search.js.map +1 -1
- package/dist/state/global.js +10 -11
- package/dist/state/global.js.map +1 -1
- package/dist/state/guard.js +13 -20
- package/dist/state/guard.js.map +1 -1
- package/dist/state/order.js +536 -645
- package/dist/state/order.js.map +1 -1
- package/dist/state/server.js +114 -134
- package/dist/state/server.js.map +1 -1
- package/dist/state/settings.d.ts +1 -1
- package/dist/state/settings.js +20 -26
- package/dist/state/settings.js.map +1 -1
- package/dist/types/models.d.ts +0 -1
- package/dist/types/types.d.ts +0 -1
- package/dist/types/types.js +3 -3
- package/dist/types/types.js.map +1 -1
- package/dist/universal_components/AssetsModalInput.js +69 -54
- package/dist/universal_components/AssetsModalInput.js.map +1 -1
- package/dist/universal_components/ConfirmationDialog.js +3 -4
- package/dist/universal_components/ConfirmationDialog.js.map +1 -1
- package/dist/universal_components/CustomCard.js +47 -26
- package/dist/universal_components/CustomCard.js.map +1 -1
- package/dist/universal_components/CustomCardHeader.js +8 -11
- package/dist/universal_components/CustomCardHeader.js.map +1 -1
- package/dist/universal_components/CustomerSearch.js +107 -125
- package/dist/universal_components/CustomerSearch.js.map +1 -1
- package/dist/universal_components/DateTimeInput.js +101 -127
- package/dist/universal_components/DateTimeInput.js.map +1 -1
- package/dist/universal_components/DateTimePicker.js +186 -206
- package/dist/universal_components/DateTimePicker.js.map +1 -1
- package/dist/universal_components/DialogProductPicker.js +68 -85
- package/dist/universal_components/DialogProductPicker.js.map +1 -1
- package/dist/universal_components/DraggableSelect.d.ts +3 -3
- package/dist/universal_components/DraggableSelect.js +25 -28
- package/dist/universal_components/DraggableSelect.js.map +1 -1
- package/dist/universal_components/EmptyState.js +6 -8
- package/dist/universal_components/EmptyState.js.map +1 -1
- package/dist/universal_components/EntityChannelManager.js +93 -124
- package/dist/universal_components/EntityChannelManager.js.map +1 -1
- package/dist/universal_components/FacetIdsSelector.js +33 -50
- package/dist/universal_components/FacetIdsSelector.js.map +1 -1
- package/dist/universal_components/PageBlock.js +4 -3
- package/dist/universal_components/PageBlock.js.map +1 -1
- package/dist/universal_components/RichTextEditor/Buttons.js +3 -6
- package/dist/universal_components/RichTextEditor/Buttons.js.map +1 -1
- package/dist/universal_components/RichTextEditor/EditorToolbar.js +14 -19
- package/dist/universal_components/RichTextEditor/EditorToolbar.js.map +1 -1
- package/dist/universal_components/RichTextEditor/RichTextEditor.js +8 -28
- package/dist/universal_components/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/universal_components/SimpleTimePicker.js +130 -138
- package/dist/universal_components/SimpleTimePicker.js.map +1 -1
- package/dist/universal_table_actions/DeleteEntityFromChannelsDialog.js +26 -36
- package/dist/universal_table_actions/DeleteEntityFromChannelsDialog.js.map +1 -1
- package/dist/universal_table_actions/EntityChannelManagementBulkAction.d.ts +1 -17
- package/dist/universal_table_actions/EntityChannelManagementBulkAction.js +161 -181
- package/dist/universal_table_actions/EntityChannelManagementBulkAction.js.map +1 -1
- package/dist/universal_table_actions/EntityChannelManagementRowAction.js +21 -35
- package/dist/universal_table_actions/EntityChannelManagementRowAction.js.map +1 -1
- package/dist/universal_table_actions/EntityFacetManagementBulkAction.d.ts +1 -17
- package/dist/universal_table_actions/EntityFacetManagementBulkAction.js +41 -61
- package/dist/universal_table_actions/EntityFacetManagementBulkAction.js.map +1 -1
- package/dist/universal_table_actions/ManageEntityFacetsDialog.js +62 -95
- package/dist/universal_table_actions/ManageEntityFacetsDialog.js.map +1 -1
- package/dist/universal_table_actions/ManageEntityToChannelsDialog.js +126 -141
- package/dist/universal_table_actions/ManageEntityToChannelsDialog.js.map +1 -1
- package/dist/universal_utils/createDialogFromComponentFunction.js +12 -15
- package/dist/universal_utils/createDialogFromComponentFunction.js.map +1 -1
- package/dist/universal_utils/createDialogFunction.js +9 -10
- package/dist/universal_utils/createDialogFunction.js.map +1 -1
- package/dist/utils/camel-case-to-spaces.js +1 -1
- package/dist/utils/camel-case-to-spaces.js.map +1 -1
- package/dist/utils/capitalizeFirstLetter.js +1 -3
- package/dist/utils/capitalizeFirstLetter.js.map +1 -1
- package/dist/utils/dashCaseToCamelCase.js +1 -1
- package/dist/utils/dashCaseToCamelCase.js.map +1 -1
- package/dist/utils/deepSortArray.js +3 -3
- package/dist/utils/deepSortArray.js.map +1 -1
- package/dist/utils/formatFileSize.js +4 -4
- package/dist/utils/formatFileSize.js.map +1 -1
- package/dist/utils/formatPrice.js +2 -2
- package/dist/utils/formatPrice.js.map +1 -1
- package/dist/utils/getGraphqlError.js +1 -2
- package/dist/utils/getGraphqlError.js.map +1 -1
- package/dist/utils/getMutation.d.ts +7 -28366
- package/dist/utils/getMutation.js +10 -11
- package/dist/utils/getMutation.js.map +1 -1
- package/dist/utils/getPermissions.js +5 -5
- package/dist/utils/getPermissions.js.map +1 -1
- package/dist/utils/normalizeString.js +1 -2
- package/dist/utils/normalizeString.js.map +1 -1
- package/dist/utils/object-compare.js +39 -40
- package/dist/utils/object-compare.js.map +1 -1
- package/dist/utils/price-formatter.js +13 -14
- package/dist/utils/price-formatter.js.map +1 -1
- package/dist/utils/setInArrayBy.js +3 -4
- package/dist/utils/setInArrayBy.js.map +1 -1
- package/dist/utils/styles.d.ts +1 -1
- package/dist/utils/styles.js +12 -12
- package/dist/utils/styles.js.map +1 -1
- package/dist/utils/utils.js +3 -3
- package/dist/utils/utils.js.map +1 -1
- package/dist/utils/zeus-utils.js +28 -16
- package/dist/utils/zeus-utils.js.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/widgets/DashboardWidgets.d.ts +1 -1
- package/dist/widgets/DashboardWidgets.js +36 -44
- package/dist/widgets/DashboardWidgets.js.map +1 -1
- package/dist/widgets/WidgetsEmptyState.js +5 -5
- package/dist/widgets/WidgetsEmptyState.js.map +1 -1
- package/dist/widgets/widgets-context.d.ts +1 -1
- package/dist/widgets/widgets-context.js +42 -42
- package/dist/widgets/widgets-context.js.map +1 -1
- package/dist/zeus_client/customFieldsForQuery.js +20 -21
- package/dist/zeus_client/customFieldsForQuery.js.map +1 -1
- package/dist/zeus_client/deenruvAPICall.d.ts +8 -8
- package/dist/zeus_client/deenruvAPICall.js +116 -117
- package/dist/zeus_client/deenruvAPICall.js.map +1 -1
- package/dist/zeus_client/useLazyQuery.d.ts +0 -1
- package/dist/zeus_client/useLazyQuery.js +20 -30
- package/dist/zeus_client/useLazyQuery.js.map +1 -1
- package/dist/zeus_client/useMutation.js +20 -30
- package/dist/zeus_client/useMutation.js.map +1 -1
- package/dist/zeus_client/useQuery.js +29 -39
- package/dist/zeus_client/useQuery.js.map +1 -1
- package/dist/zeus_client/utils.js +8 -11
- package/dist/zeus_client/utils.js.map +1 -1
- package/package.json +63 -63
|
@@ -83,12 +83,12 @@ export declare class PluginStore {
|
|
|
83
83
|
get topNavigationActionsMenu(): import("./types.js").NavigationAction[];
|
|
84
84
|
get widgets(): import("./types.js").Widget<object>[];
|
|
85
85
|
get navMenuData(): {
|
|
86
|
-
groups:
|
|
86
|
+
groups: Array<NonNullable<DeenruvUIPlugin["navMenuGroups"]>[number] & {
|
|
87
87
|
plugin: DeenruvPluginStored;
|
|
88
|
-
}
|
|
89
|
-
links:
|
|
88
|
+
}>;
|
|
89
|
+
links: Array<NonNullable<DeenruvUIPlugin["navMenuLinks"]>[number] & {
|
|
90
90
|
plugin: DeenruvPluginStored;
|
|
91
|
-
}
|
|
91
|
+
}>;
|
|
92
92
|
};
|
|
93
93
|
get routes(): (import("./types.js").PluginPage & {
|
|
94
94
|
plugin: DeenruvPluginStored;
|
|
@@ -1,118 +1,119 @@
|
|
|
1
|
-
import { __assign, __rest } from "tslib";
|
|
2
1
|
import { defaultInputComponents } from "./default-input-components.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this.
|
|
2
|
+
const pagePathPrefix = "admin-ui/extensions";
|
|
3
|
+
const removeAllSpaces = (str) => str.replace(/\s/g, "-");
|
|
4
|
+
const getExtensionsPath = (pluginName, path) => [pagePathPrefix, removeAllSpaces(pluginName.toLowerCase()), path].join("/");
|
|
5
|
+
export class PluginStore {
|
|
6
|
+
i18next;
|
|
7
|
+
pluginConfig = new Map();
|
|
8
|
+
pluginMap = new Map();
|
|
9
|
+
pluginPages = [];
|
|
10
|
+
pluginsNavigationDataField = { groups: [], links: [] };
|
|
11
|
+
/**
|
|
12
|
+
* Registry of extension-surface entries from the new `extensions` API.
|
|
13
|
+
* Populated during `install()`. Entries are sorted deterministically.
|
|
14
|
+
*/
|
|
15
|
+
extensionRegistry = [];
|
|
16
|
+
/**
|
|
17
|
+
* Monotonically increasing counter used to assign a stable registration
|
|
18
|
+
* index to each extension across all plugins.
|
|
19
|
+
*/
|
|
20
|
+
extensionSeq = 0;
|
|
21
|
+
getPluginMap() {
|
|
22
|
+
return Array.from(this.pluginMap.values()).filter((plugin) => plugin.status === "active");
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
return Array.from(this.pluginMap.values()).filter(function (plugin) { return plugin.status === "active"; });
|
|
27
|
-
};
|
|
28
|
-
PluginStore.prototype.getAllPlugins = function () {
|
|
24
|
+
getAllPlugins() {
|
|
29
25
|
return Array.from(this.pluginMap.values());
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
}
|
|
27
|
+
changePluginStatus(name, status) {
|
|
28
|
+
const plugin = this.pluginMap.get(name);
|
|
33
29
|
if (!plugin)
|
|
34
30
|
return;
|
|
35
|
-
this.pluginMap.set(name,
|
|
31
|
+
this.pluginMap.set(name, { ...plugin, status });
|
|
36
32
|
if (status === "inactive") {
|
|
37
33
|
this.pluginsNavigationDataField.links =
|
|
38
|
-
this.pluginsNavigationDataField.links.filter(
|
|
34
|
+
this.pluginsNavigationDataField.links.filter((link) => link.plugin.name !== name);
|
|
39
35
|
this.pluginsNavigationDataField.groups =
|
|
40
|
-
this.pluginsNavigationDataField.groups.filter(
|
|
41
|
-
this.pluginPages = this.pluginPages.filter(
|
|
36
|
+
this.pluginsNavigationDataField.groups.filter((group) => group.plugin.name !== name);
|
|
37
|
+
this.pluginPages = this.pluginPages.filter((page) => page.plugin.name !== name);
|
|
42
38
|
this.pluginConfig.delete(name);
|
|
43
39
|
}
|
|
44
40
|
else {
|
|
45
41
|
this.pluginsNavigationDataField.links =
|
|
46
|
-
this.pluginsNavigationDataField.links.map(
|
|
42
|
+
this.pluginsNavigationDataField.links.map((link) => {
|
|
47
43
|
if (link.plugin.name === name) {
|
|
48
|
-
return
|
|
44
|
+
return {
|
|
45
|
+
...link,
|
|
46
|
+
plugin: { ...link.plugin, status: "active" },
|
|
47
|
+
};
|
|
49
48
|
}
|
|
50
49
|
return link;
|
|
51
50
|
});
|
|
52
51
|
this.pluginsNavigationDataField.groups =
|
|
53
|
-
this.pluginsNavigationDataField.groups.map(
|
|
52
|
+
this.pluginsNavigationDataField.groups.map((group) => {
|
|
54
53
|
if (group.plugin.name === name) {
|
|
55
|
-
return
|
|
54
|
+
return {
|
|
55
|
+
...group,
|
|
56
|
+
plugin: { ...group.plugin, status: "active" },
|
|
57
|
+
};
|
|
56
58
|
}
|
|
57
59
|
return group;
|
|
58
60
|
});
|
|
59
|
-
this.pluginPages = this.pluginPages.map(
|
|
61
|
+
this.pluginPages = this.pluginPages.map((page) => {
|
|
60
62
|
if (page.plugin.name === name) {
|
|
61
|
-
return
|
|
63
|
+
return {
|
|
64
|
+
...page,
|
|
65
|
+
plugin: { ...page.plugin, status: "active" },
|
|
66
|
+
};
|
|
62
67
|
}
|
|
63
68
|
return page;
|
|
64
69
|
});
|
|
65
70
|
this.pluginConfig.set(name, plugin.config || {});
|
|
66
71
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
var _this = this;
|
|
72
|
+
}
|
|
73
|
+
install(plugins, i18next) {
|
|
70
74
|
this.i18next = i18next;
|
|
71
|
-
plugins.forEach(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
_this.pluginConfig.set(plugin.name, plugin.config || {});
|
|
75
|
+
plugins.forEach(({ translations, pages, navMenuGroups, navMenuLinks, extensions, ...plugin }) => {
|
|
76
|
+
this.pluginMap.set(plugin.name, { ...plugin, status: "active" });
|
|
77
|
+
this.pluginConfig.set(plugin.name, plugin.config || {});
|
|
75
78
|
// Index extension-surface entries
|
|
76
79
|
if (extensions) {
|
|
77
|
-
for (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
for (const ext of extensions) {
|
|
81
|
+
this.extensionRegistry.push({
|
|
82
|
+
...ext,
|
|
83
|
+
pluginName: plugin.name,
|
|
84
|
+
registrationIndex: this.extensionSeq++,
|
|
85
|
+
});
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
88
|
if (!translations)
|
|
83
89
|
return;
|
|
84
|
-
|
|
85
|
-
locales.forEach(
|
|
86
|
-
return i18next.addResourceBundle(lng, translations.ns, trans);
|
|
87
|
-
});
|
|
88
|
-
};
|
|
89
|
-
for (var _b = 0, _c = Object.entries(translations.data); _b < _c.length; _b++) {
|
|
90
|
-
var _d = _c[_b], lng = _d[0], locales = _d[1];
|
|
91
|
-
_loop_1(lng, locales);
|
|
90
|
+
for (const [lng, locales] of Object.entries(translations.data)) {
|
|
91
|
+
locales.forEach((trans) => i18next.addResourceBundle(lng, translations.ns, trans));
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
this.pluginPages = plugins.flatMap(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
this.pluginPages = plugins.flatMap((el) => el.pages?.map((route) => ({
|
|
95
|
+
...route,
|
|
96
|
+
plugin: { ...el, status: "active" },
|
|
97
|
+
path: getExtensionsPath(el.name, route.path),
|
|
98
|
+
})) || []);
|
|
99
|
+
this.pluginsNavigationDataField.links = plugins.flatMap((el) => {
|
|
99
100
|
if (!el.navMenuLinks)
|
|
100
101
|
return [];
|
|
101
|
-
return el.navMenuLinks.map(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
return el.navMenuLinks.map((linkEl) => ({
|
|
103
|
+
...linkEl,
|
|
104
|
+
plugin: { ...el, status: "active" },
|
|
105
|
+
labelId: `${el.translations?.ns}.${linkEl.labelId}`,
|
|
106
|
+
href: getExtensionsPath(el.name, linkEl.href),
|
|
107
|
+
}));
|
|
105
108
|
});
|
|
106
109
|
this.pluginsNavigationDataField.groups = plugins
|
|
107
|
-
.flatMap(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.filter(function (el, idx, arr) { return idx === arr.findIndex(function (obj) { return obj.id === el.id; }); });
|
|
115
|
-
};
|
|
110
|
+
.flatMap((el) => el.navMenuGroups?.map((groupEl) => ({
|
|
111
|
+
...groupEl,
|
|
112
|
+
plugin: { ...el, status: "active" },
|
|
113
|
+
labelId: `${el.translations?.ns}.${groupEl.labelId}`,
|
|
114
|
+
})) || [])
|
|
115
|
+
.filter((el, idx, arr) => idx === arr.findIndex((obj) => obj.id === el.id));
|
|
116
|
+
}
|
|
116
117
|
/**
|
|
117
118
|
* Install plugins from a manifest, filtered by a set of enabled IDs.
|
|
118
119
|
* This is a convenience wrapper around `install()` that resolves which
|
|
@@ -126,72 +127,80 @@ var PluginStore = /** @class */ (function () {
|
|
|
126
127
|
* @param i18next - i18next instance for translation registration
|
|
127
128
|
* @returns A typed report describing what was installed, skipped, or unknown
|
|
128
129
|
*/
|
|
129
|
-
|
|
130
|
-
var _a, _b, _c;
|
|
130
|
+
installFromManifest(manifest, enabledIds, i18next) {
|
|
131
131
|
// Deduplicate manifest entries (first wins)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
for (
|
|
136
|
-
var entry = manifest_1[_i];
|
|
132
|
+
const seenIds = new Set();
|
|
133
|
+
const duplicates = [];
|
|
134
|
+
const deduped = [];
|
|
135
|
+
for (const entry of manifest) {
|
|
137
136
|
if (seenIds.has(entry.id)) {
|
|
138
137
|
duplicates.push(entry.id);
|
|
139
|
-
console.warn(
|
|
138
|
+
console.warn(`[PluginStore] Duplicate manifest ID "${entry.id}" — skipping (first entry wins).`);
|
|
140
139
|
continue;
|
|
141
140
|
}
|
|
142
141
|
seenIds.add(entry.id);
|
|
143
142
|
deduped.push(entry);
|
|
144
143
|
}
|
|
145
144
|
// Detect unknown IDs (requested but not in manifest)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Array.from(enabledIds).forEach(
|
|
145
|
+
const manifestIds = new Set(deduped.map((e) => e.id));
|
|
146
|
+
const unknown = [];
|
|
147
|
+
Array.from(enabledIds).forEach((id) => {
|
|
149
148
|
if (!manifestIds.has(id)) {
|
|
150
149
|
unknown.push(id);
|
|
151
150
|
}
|
|
152
151
|
});
|
|
153
152
|
if (unknown.length > 0) {
|
|
154
|
-
console.warn(
|
|
155
|
-
|
|
153
|
+
console.warn(`[PluginStore] Unknown plugin IDs: ${unknown.join(", ")}. ` +
|
|
154
|
+
`Available: ${Array.from(manifestIds).join(", ")}`);
|
|
156
155
|
}
|
|
157
156
|
// Filter and install
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
this.install(toInstall.map(
|
|
157
|
+
const toInstall = deduped.filter((entry) => enabledIds.has(entry.id));
|
|
158
|
+
const installed = toInstall.map((entry) => entry.id);
|
|
159
|
+
this.install(toInstall.map((entry) => entry.plugin), i18next);
|
|
161
160
|
// Propagate manifest metadata onto stored plugins
|
|
162
|
-
for (
|
|
163
|
-
|
|
164
|
-
var stored = this.pluginMap.get(entry.plugin.name);
|
|
161
|
+
for (const entry of deduped) {
|
|
162
|
+
const stored = this.pluginMap.get(entry.plugin.name);
|
|
165
163
|
if (stored) {
|
|
166
|
-
this.pluginMap.set(entry.plugin.name,
|
|
164
|
+
this.pluginMap.set(entry.plugin.name, {
|
|
165
|
+
...stored,
|
|
166
|
+
status: enabledIds.has(entry.id) ? "active" : "inactive",
|
|
167
|
+
description: entry.description ?? stored.description,
|
|
168
|
+
author: entry.author ?? stored.author,
|
|
169
|
+
category: entry.category ?? stored.category,
|
|
170
|
+
});
|
|
167
171
|
}
|
|
168
172
|
}
|
|
169
173
|
// Also register disabled plugins so they appear in getAllPlugins()
|
|
170
|
-
for (
|
|
171
|
-
var entry = deduped_2[_e];
|
|
174
|
+
for (const entry of deduped) {
|
|
172
175
|
if (!enabledIds.has(entry.id) && !this.pluginMap.has(entry.plugin.name)) {
|
|
173
|
-
this.pluginMap.set(entry.plugin.name,
|
|
176
|
+
this.pluginMap.set(entry.plugin.name, {
|
|
177
|
+
...entry.plugin,
|
|
178
|
+
status: "inactive",
|
|
179
|
+
description: entry.description,
|
|
180
|
+
author: entry.author,
|
|
181
|
+
category: entry.category,
|
|
182
|
+
});
|
|
174
183
|
}
|
|
175
184
|
}
|
|
176
185
|
return {
|
|
177
|
-
installed
|
|
178
|
-
unknown
|
|
179
|
-
duplicates
|
|
186
|
+
installed,
|
|
187
|
+
unknown,
|
|
188
|
+
duplicates,
|
|
180
189
|
manifestSize: manifest.length,
|
|
181
190
|
};
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
.map(
|
|
191
|
+
}
|
|
192
|
+
getInputComponent(id) {
|
|
193
|
+
let component = null;
|
|
194
|
+
const input = this.getPluginMap()
|
|
195
|
+
.map((plugin) => plugin.inputs?.find((input) => input.id === id))
|
|
187
196
|
.find(Boolean);
|
|
188
|
-
if (input
|
|
197
|
+
if (input?.component)
|
|
189
198
|
component = input.component;
|
|
190
199
|
else
|
|
191
200
|
component =
|
|
192
201
|
defaultInputComponents[id];
|
|
193
202
|
return component;
|
|
194
|
-
}
|
|
203
|
+
}
|
|
195
204
|
/**
|
|
196
205
|
* Resolve extension-surface components for a given location and optional tab.
|
|
197
206
|
*
|
|
@@ -203,45 +212,39 @@ var PluginStore = /** @class */ (function () {
|
|
|
203
212
|
*
|
|
204
213
|
* Each returned entry includes a stable `key` suitable for React rendering.
|
|
205
214
|
*/
|
|
206
|
-
|
|
207
|
-
|
|
215
|
+
getSurfaceComponents(location, passedTab) {
|
|
216
|
+
const results = [];
|
|
208
217
|
// ── 1. New extensions API (deterministic ordering) ──────────────────
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
.filter(
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
})
|
|
216
|
-
.sort(function (a, b) {
|
|
217
|
-
var _a, _b;
|
|
218
|
+
const activePluginNames = new Set(this.getPluginMap().map((p) => p.name));
|
|
219
|
+
const matchingExtensions = this.extensionRegistry
|
|
220
|
+
.filter((ext) => activePluginNames.has(ext.pluginName) &&
|
|
221
|
+
ext.surface === location &&
|
|
222
|
+
(!passedTab || ext.tab === passedTab))
|
|
223
|
+
.sort((a, b) => {
|
|
218
224
|
// Entries with explicit order come first
|
|
219
|
-
|
|
220
|
-
|
|
225
|
+
const aOrder = a.order ?? Number.MAX_SAFE_INTEGER;
|
|
226
|
+
const bOrder = b.order ?? Number.MAX_SAFE_INTEGER;
|
|
221
227
|
if (aOrder !== bOrder)
|
|
222
228
|
return aOrder - bOrder;
|
|
223
229
|
return a.registrationIndex - b.registrationIndex;
|
|
224
230
|
});
|
|
225
|
-
for (
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
results.push({ key: key, component: ext.component });
|
|
231
|
+
for (const ext of matchingExtensions) {
|
|
232
|
+
const key = `ext:${ext.pluginName}:${ext.id}`;
|
|
233
|
+
results.push({ key, component: ext.component });
|
|
229
234
|
}
|
|
230
235
|
// ── 2. Legacy components API (registration order, after extensions) ─
|
|
231
|
-
|
|
232
|
-
this.getPluginMap().forEach(
|
|
233
|
-
|
|
234
|
-
(_a = plugin.components) === null || _a === void 0 ? void 0 : _a.forEach(function (_a) {
|
|
235
|
-
var component = _a.component, tab = _a.tab, id = _a.id;
|
|
236
|
+
let legacyIndex = 0;
|
|
237
|
+
this.getPluginMap().forEach((plugin) => {
|
|
238
|
+
plugin.components?.forEach(({ component, tab, id }) => {
|
|
236
239
|
if (id === location && (!passedTab || tab === passedTab)) {
|
|
237
|
-
|
|
238
|
-
results.push({ key
|
|
240
|
+
const key = `legacy:${plugin.name}:${id}:${legacyIndex}`;
|
|
241
|
+
results.push({ key, component });
|
|
239
242
|
}
|
|
240
243
|
legacyIndex++;
|
|
241
244
|
});
|
|
242
245
|
});
|
|
243
246
|
return results;
|
|
244
|
-
}
|
|
247
|
+
}
|
|
245
248
|
/**
|
|
246
249
|
* Legacy resolver — returns bare component array for backward compatibility.
|
|
247
250
|
*
|
|
@@ -250,148 +253,108 @@ var PluginStore = /** @class */ (function () {
|
|
|
250
253
|
*
|
|
251
254
|
* @deprecated Prefer `getSurfaceComponents()` for stable keys and ordering.
|
|
252
255
|
*/
|
|
253
|
-
|
|
254
|
-
return this.getSurfaceComponents(location, passedTab).map(
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
this.getPluginMap().forEach(
|
|
260
|
-
|
|
261
|
-
(_a = plugin.modals) === null || _a === void 0 ? void 0 : _a.forEach(function (_a) {
|
|
262
|
-
var component = _a.component, id = _a.id;
|
|
256
|
+
getComponents(location, passedTab) {
|
|
257
|
+
return this.getSurfaceComponents(location, passedTab).map((entry) => entry.component);
|
|
258
|
+
}
|
|
259
|
+
getModalComponents(location) {
|
|
260
|
+
const components = [];
|
|
261
|
+
let index = 0;
|
|
262
|
+
this.getPluginMap().forEach((plugin) => {
|
|
263
|
+
plugin.modals?.forEach(({ component, id }) => {
|
|
263
264
|
if (id === location) {
|
|
264
|
-
|
|
265
|
-
components.push({ key
|
|
265
|
+
const key = `modal:${plugin.name}:${id}:${index}`;
|
|
266
|
+
components.push({ key, component });
|
|
266
267
|
}
|
|
267
268
|
index++;
|
|
268
269
|
});
|
|
269
270
|
});
|
|
270
|
-
return components.map(
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
this.getPluginMap().forEach(
|
|
275
|
-
|
|
276
|
-
(_a = plugin.tables) === null || _a === void 0 ? void 0 : _a.forEach(function (table) {
|
|
271
|
+
return components.map((entry) => entry.component);
|
|
272
|
+
}
|
|
273
|
+
getTableExtensions(location) {
|
|
274
|
+
const tables = new Map();
|
|
275
|
+
this.getPluginMap().forEach((plugin) => {
|
|
276
|
+
plugin.tables?.forEach((table) => {
|
|
277
277
|
tables.set(table.id, table);
|
|
278
278
|
});
|
|
279
279
|
});
|
|
280
|
-
return Array.from(tables.values()).filter(
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
this.getPluginMap().forEach(
|
|
285
|
-
|
|
286
|
-
(_a = plugin.tabs) === null || _a === void 0 ? void 0 : _a.forEach(function (tab) {
|
|
280
|
+
return Array.from(tables.values()).filter((table) => table.id === location);
|
|
281
|
+
}
|
|
282
|
+
getDetailViewTabs(location) {
|
|
283
|
+
const tabs = new Map();
|
|
284
|
+
this.getPluginMap().forEach((plugin) => {
|
|
285
|
+
plugin.tabs?.forEach((tab) => {
|
|
287
286
|
tabs.set(tab.id, tab);
|
|
288
287
|
});
|
|
289
288
|
});
|
|
290
|
-
return Array.from(tabs.values()).filter(
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
this.getPluginMap().forEach(
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
actionsInline.set("".concat(action.id, ".").concat(i, ".").concat(j), action);
|
|
289
|
+
return Array.from(tabs.values()).filter((tab) => tab.id === location);
|
|
290
|
+
}
|
|
291
|
+
getDetailViewActions(location) {
|
|
292
|
+
const actionsInline = new Map();
|
|
293
|
+
const actionsDropdown = new Map();
|
|
294
|
+
this.getPluginMap().forEach((plugin, i) => {
|
|
295
|
+
plugin.actions?.inline?.forEach((action, j) => {
|
|
296
|
+
actionsInline.set(`${action.id}.${i}.${j}`, action);
|
|
299
297
|
});
|
|
300
|
-
|
|
301
|
-
actionsDropdown.set(
|
|
298
|
+
plugin.actions?.dropdown?.forEach((action, j) => {
|
|
299
|
+
actionsDropdown.set(`${action.id}.${j}.${i}`, action);
|
|
302
300
|
});
|
|
303
301
|
});
|
|
304
|
-
|
|
305
|
-
|
|
302
|
+
const inline = Array.from(actionsInline.keys()).filter((action) => {
|
|
303
|
+
const [split] = action.split(".");
|
|
306
304
|
return split === location;
|
|
307
305
|
});
|
|
308
|
-
|
|
309
|
-
|
|
306
|
+
const dropdown = Array.from(actionsDropdown.keys()).filter((action) => {
|
|
307
|
+
const [split] = action.split(".");
|
|
310
308
|
return split === location;
|
|
311
309
|
});
|
|
312
|
-
|
|
313
|
-
|
|
310
|
+
const inlineComponents = inline.map((action) => actionsInline.get(action));
|
|
311
|
+
const dropdownComponents = dropdown.map((action) => actionsDropdown.get(action));
|
|
314
312
|
return { inline: inlineComponents, dropdown: dropdownComponents };
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
(_a = plugin.topNavigationComponents) === null || _a === void 0 ? void 0 : _a.forEach(function (_a) {
|
|
322
|
-
var component = _a.component, id = _a.id;
|
|
323
|
-
components.set(id, { component: component, id: id });
|
|
324
|
-
});
|
|
313
|
+
}
|
|
314
|
+
get topNavigationComponents() {
|
|
315
|
+
const components = new Map();
|
|
316
|
+
this.getPluginMap().forEach((plugin) => {
|
|
317
|
+
plugin.topNavigationComponents?.forEach(({ component, id }) => {
|
|
318
|
+
components.set(id, { component, id });
|
|
325
319
|
});
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
this.getPluginMap().forEach(function (plugin) {
|
|
335
|
-
var _a;
|
|
336
|
-
(_a = plugin.topNavigationActionsMenu) === null || _a === void 0 ? void 0 : _a.forEach(function (action) {
|
|
337
|
-
actions.set(action.label, action);
|
|
338
|
-
});
|
|
320
|
+
});
|
|
321
|
+
return Array.from(components.values());
|
|
322
|
+
}
|
|
323
|
+
get topNavigationActionsMenu() {
|
|
324
|
+
const actions = new Map();
|
|
325
|
+
this.getPluginMap().forEach((plugin) => {
|
|
326
|
+
plugin.topNavigationActionsMenu?.forEach((action) => {
|
|
327
|
+
actions.set(action.label, action);
|
|
339
328
|
});
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
this.getPluginMap().forEach(function (plugin) {
|
|
349
|
-
var _a;
|
|
350
|
-
(_a = plugin.widgets) === null || _a === void 0 ? void 0 : _a.forEach(function (widget) {
|
|
351
|
-
widgets.set(widget.id, __assign(__assign({}, widget), { plugin: plugin }));
|
|
352
|
-
});
|
|
329
|
+
});
|
|
330
|
+
return Array.from(actions.values());
|
|
331
|
+
}
|
|
332
|
+
get widgets() {
|
|
333
|
+
const widgets = new Map();
|
|
334
|
+
this.getPluginMap().forEach((plugin) => {
|
|
335
|
+
plugin.widgets?.forEach((widget) => {
|
|
336
|
+
widgets.set(widget.id, { ...widget, plugin });
|
|
353
337
|
});
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
configurable: true
|
|
372
|
-
});
|
|
373
|
-
Object.defineProperty(PluginStore.prototype, "configs", {
|
|
374
|
-
get: function () {
|
|
375
|
-
return this.pluginConfig;
|
|
376
|
-
},
|
|
377
|
-
enumerable: false,
|
|
378
|
-
configurable: true
|
|
379
|
-
});
|
|
380
|
-
Object.defineProperty(PluginStore.prototype, "notifications", {
|
|
381
|
-
get: function () {
|
|
382
|
-
var notifications = new Map();
|
|
383
|
-
this.getPluginMap().forEach(function (plugin) {
|
|
384
|
-
var _a;
|
|
385
|
-
(_a = plugin.notifications) === null || _a === void 0 ? void 0 : _a.forEach(function (notification) {
|
|
386
|
-
notifications.set(notification.id, notification);
|
|
387
|
-
});
|
|
338
|
+
});
|
|
339
|
+
return Array.from(widgets.values());
|
|
340
|
+
}
|
|
341
|
+
get navMenuData() {
|
|
342
|
+
return this.pluginsNavigationDataField;
|
|
343
|
+
}
|
|
344
|
+
get routes() {
|
|
345
|
+
return this.pluginPages;
|
|
346
|
+
}
|
|
347
|
+
get configs() {
|
|
348
|
+
return this.pluginConfig;
|
|
349
|
+
}
|
|
350
|
+
get notifications() {
|
|
351
|
+
const notifications = new Map();
|
|
352
|
+
this.getPluginMap().forEach((plugin) => {
|
|
353
|
+
plugin.notifications?.forEach((notification) => {
|
|
354
|
+
notifications.set(notification.id, notification);
|
|
388
355
|
});
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
});
|
|
394
|
-
return PluginStore;
|
|
395
|
-
}());
|
|
396
|
-
export { PluginStore };
|
|
356
|
+
});
|
|
357
|
+
return Array.from(notifications.values());
|
|
358
|
+
}
|
|
359
|
+
}
|
|
397
360
|
//# sourceMappingURL=plugin-store.js.map
|