@bynder/compact-view 5.2.1 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccessToken.js +5 -0
- package/AccessToken2.js +176 -0
- package/AccessToken3.js +4 -0
- package/ActiveFilter.js +6 -5
- package/ActiveFilters.js +24 -24
- package/AddMedia.js +1 -1
- package/AdditionalInfo.js +18 -0
- package/Advanced.js +3 -3
- package/App.js +46 -43
- package/Arrow.js +14 -0
- package/AssetCard.js +32 -29
- package/AssetCardMetaproperties.js +14 -13
- package/AssetFilter.js +36 -35
- package/AssetFilterContext.js +3 -3
- package/AssetItem.js +14 -13
- package/AssetList.js +7 -7
- package/AssetTypeItem.js +13 -12
- package/Autocomplete_new.js +41 -37
- package/Axios2.js +136 -0
- package/AxiosError.js +54 -0
- package/AxiosHeaders.js +181 -0
- package/AxiosURLSearchParams.js +33 -0
- package/Badge.js +44 -0
- package/Baloon.js +42 -0
- package/BaseStyles.js +10 -0
- package/Blob.js +4 -0
- package/Box.js +22 -0
- package/Button.js +39 -0
- package/Button.styles.js +40 -0
- package/ButtonAction.js +3 -3
- package/ButtonLegacy.js +48 -0
- package/ButtonLegacy.styles.js +28 -0
- package/CancelToken.js +77 -0
- package/CanceledError.js +11 -0
- package/Card.js +84 -0
- package/CardSkeleton.js +15 -14
- package/Checkbox.js +85 -0
- package/Checkbox.styles.js +2 -2
- package/Checkmark.js +7 -0
- package/Chip.js +70 -40
- package/Chip2.js +42 -0
- package/CollectionCard.js +9 -8
- package/CollectionItem.js +15 -14
- package/CollectionList.js +2 -2
- package/CollectionView.js +2 -2
- package/CollectionsView.js +6 -6
- package/ColorHexInput.js +31 -0
- package/ColorPicker.js +66 -0
- package/ColorPickerSolid.js +20 -0
- package/ColorPickerWithOpacity.js +37 -0
- package/Combobox.js +61 -0
- package/ConcealedAction.js +16 -0
- package/ConnectButton.js +1 -1
- package/Container.js +14 -13
- package/Container2.js +31 -0
- package/Content.js +16 -0
- package/ContextAction.js +18 -17
- package/ContextActionButton.js +29 -0
- package/ControlGroup.js +32 -0
- package/DOMFunctions.js +27 -0
- package/Dat.js +62 -50
- package/DatDropdownItem.js +20 -19
- package/DesignSystemContext.js +4 -4
- package/DesignSystemProvider.js +29 -0
- package/DirectionSelect.js +16 -15
- package/Divider.js +21 -0
- package/DomainInput.js +15 -14
- package/DragRange.js +25 -0
- package/DragSelect.js +11 -11
- package/Dropdown.js +12 -11
- package/Dropdown2.js +169 -0
- package/DropdownContent.js +2 -2
- package/DropdownListItem.js +3 -3
- package/Enum.js +12 -0
- package/ErrorMessage.js +20 -19
- package/FieldSelect.js +4 -4
- package/FilePlaceholder.js +19 -0
- package/FileSelector.js +11 -10
- package/Flex.js +21 -0
- package/FontPicker.js +104 -0
- package/Footer.js +16 -0
- package/Form.js +23 -0
- package/FormData.js +4 -0
- package/Frame.js +64 -0
- package/Group.js +17 -0
- package/Group2.js +26 -0
- package/Header2.js +43 -0
- package/Header22.js +15 -0
- package/HelperText.js +26 -0
- package/HorizontalScroll.js +4 -4
- package/HttpHandler.js +74 -0
- package/HttpResponse.js +85 -0
- package/HttpStatusCode.js +71 -0
- package/IconPlaceholder.js +18 -0
- package/Image.js +19 -0
- package/Images.js +30 -0
- package/Indicator.js +74 -0
- package/InfiniteScroll.js +8 -8
- package/InlineBanner.js +51 -0
- package/Input.js +109 -0
- package/Input.styles.js +71 -0
- package/InputContainer.js +9 -0
- package/InputField.js +74 -0
- package/InputRow.js +18 -0
- package/Inspector.js +34 -0
- package/InteractiveIcon.js +28 -0
- package/InterceptorManager.js +58 -0
- package/Item.js +107 -0
- package/Item2.js +14 -0
- package/Item4.js +190 -0
- package/Label.js +33 -0
- package/LeftArrow.js +3 -3
- package/List.js +25 -0
- package/ListItem.js +11 -0
- package/ListItem2.js +58 -0
- package/ListItem4.js +37 -0
- package/MetapropertyFilterContent.js +2 -2
- package/MetapropertyOption.js +2 -3
- package/Middleware.js +49 -0
- package/Middleware2.js +49 -0
- package/Modal.js +2 -2
- package/Modal2.js +31 -0
- package/ModalBase.js +117 -0
- package/ModalBase.styles.js +75 -0
- package/ModalConfirmation.js +8 -0
- package/NoResults.js +16 -15
- package/OffsetContext.js +9 -0
- package/Oops.js +1 -1
- package/OpacityInput.js +17 -0
- package/Option_new.js +19 -18
- package/Overlay.js +35 -0
- package/Parser.js +131 -0
- package/Prefixer.js +187 -0
- package/Radio.js +78 -0
- package/RadioGroup.js +25 -0
- package/RangeInput.js +41 -0
- package/RefreshingSpinner.js +3 -3
- package/ReportModal.js +16 -14
- package/RequestHandler.js +119 -0
- package/RightArrow.js +4 -4
- package/Row.js +16 -0
- package/SearchInput.js +15 -15
- package/SearchInput2.js +46 -0
- package/SectionTitle.js +17 -0
- package/Select.js +49 -0
- package/SelectButtonText.js +16 -0
- package/SelectedItemContainer.js +11 -10
- package/SelectedItems.js +2 -2
- package/SelectionFooter.js +8 -7
- package/Serializer.js +27 -0
- package/ShadowRootInternal.js +17 -17
- package/Sidebar.js +17 -0
- package/Skeleton.js +6 -6
- package/Slider.constants.js +6 -0
- package/Slider.js +128 -0
- package/SmartFilterContent.js +2 -2
- package/SmartFilterSelect_new.js +2 -2
- package/Smartfilters_new.js +53 -50
- package/Spinner.js +2 -2
- package/Spinner2.js +15 -0
- package/StatefulAssetList.js +15 -15
- package/Stats.js +16 -0
- package/StatsItem.js +23 -0
- package/Status.js +32 -0
- package/Switch.js +82 -0
- package/SwitchNLS.js +26 -23
- package/Tabs2.js +10 -0
- package/TagItem.js +8 -8
- package/Tags.js +9 -9
- package/Text2.js +11 -0
- package/Text22.js +18 -0
- package/Text4.js +18 -0
- package/Textarea.js +92 -0
- package/Theming.js +4 -4
- package/Thumb.js +28 -0
- package/Thumbnail.js +91 -0
- package/Tokenizer.js +147 -0
- package/Toolbar.js +13 -12
- package/Tooltip.js +2 -2
- package/Tooltip2.js +111 -0
- package/TruncatedText.js +34 -0
- package/URLSearchParams.js +5 -0
- package/Utility.js +56 -0
- package/ViewSwitch.js +8 -7
- package/_check_private_redeclaration.js +7 -0
- package/_class_apply_descriptor_get.js +6 -0
- package/_class_apply_descriptor_set.js +11 -0
- package/_class_extract_field_descriptor.js +7 -0
- package/_class_private_field_get.js +9 -0
- package/_class_private_field_init.js +7 -0
- package/_class_private_field_set.js +9 -0
- package/_commonjsHelpers.js +6 -0
- package/adapters.js +53 -0
- package/api.js +25 -0
- package/api2.js +40 -0
- package/api3.js +406 -0
- package/applyScopeDataToEvent.js +83 -0
- package/applyScopeDataToEvent2.js +55 -0
- package/asset.type.js +9 -9
- package/autocomplete.js +2 -2
- package/axios.js +46 -0
- package/base.js +57 -0
- package/baseclient.js +498 -0
- package/bind.js +8 -0
- package/browser.js +44 -0
- package/buildFullPath.js +9 -0
- package/buildURL.js +23 -0
- package/bundle.esm.js +81 -0
- package/calculateContainerMaxHeight.js +12 -0
- package/calculateNodeHeight.js +35 -0
- package/carrier.js +13 -0
- package/chain.js +8 -0
- package/checkGlobals.js +13 -0
- package/checks.js +178 -0
- package/chunk-6HYIRFX2.js +1 -0
- package/cleanUrl.js +11 -0
- package/client.js +76 -0
- package/clientreport.js +15 -0
- package/clsx.js +17 -0
- package/colorTransforms.js +12 -0
- package/combineMetaproperties.js +1 -1
- package/combineURLs.js +6 -0
- package/composeSignals.js +30 -0
- package/constants.js +2 -12
- package/constants2.js +82 -0
- package/constants3.js +14 -0
- package/constants4.js +8 -0
- package/constants5.js +4 -0
- package/constants6.js +4 -0
- package/context.js +12 -0
- package/context10.js +12 -0
- package/context2.js +9 -0
- package/context3.js +12 -0
- package/context6.js +5 -0
- package/cookieStore.js +116 -0
- package/cookies.js +32 -0
- package/core.js +42 -0
- package/currentScopes.js +9 -0
- package/data.js +4 -0
- package/de_DE.json.js +18 -0
- package/debug-build.js +4 -0
- package/debug-build2.js +4 -0
- package/debug-build3.js +4 -0
- package/debug-build4.js +4 -0
- package/debug-build5.js +4 -0
- package/debug-build6.js +4 -0
- package/decorators.js +37 -0
- package/defaultScopes.js +12 -0
- package/devUtils.js +20 -0
- package/dispatchRequest.js +31 -0
- package/doc.js +26 -0
- package/domHelpers.js +15 -0
- package/dsn.js +54 -0
- package/dynamicSamplingContext.js +34 -0
- package/dynamicSamplingContext2.js +34 -0
- package/emotion-unitless.esm.js +52 -0
- package/en_US.json.js +23 -0
- package/englishText-12403056.js +6 -0
- package/env.js +6 -0
- package/envelope.js +113 -0
- package/envelope2.js +23 -0
- package/envelope3.js +24 -0
- package/error.js +9 -0
- package/errors.js +33 -0
- package/errors2.js +55 -0
- package/es_ES.json.js +18 -0
- package/es_MX.json.js +18 -0
- package/eventProcessors.js +27 -0
- package/eventProcessors2.js +23 -0
- package/eventbuilder.js +128 -0
- package/exports.js +11 -0
- package/exports2.js +16 -0
- package/exports3.js +8 -0
- package/fetch.js +44 -0
- package/fetch2.js +141 -0
- package/filterAssets.js +1 -1
- package/fixFontSpaceInUrl.js +8 -0
- package/focusWithoutScrolling.js +45 -0
- package/forceHiddenStyles.js +19 -0
- package/formDataToJSON.js +31 -0
- package/fr_FR.json.js +18 -0
- package/getAbsoluteUrl.js +13 -0
- package/getAsset.js +1 -1
- package/getAssetCounts.js +1 -1
- package/getAssets.js +2 -2
- package/getCallFrame.js +12 -0
- package/getCollections.js +1 -1
- package/getFilterOptions.js +1 -1
- package/getFilters.js +1 -1
- package/getFilters_new.js +1 -1
- package/getRequestCookies.js +40 -0
- package/getRootSpan.js +6 -0
- package/getRootSpan2.js +6 -0
- package/getSimilarityAssets.js +1 -1
- package/getSizingData.js +45 -0
- package/getStatusCodeColor.js +6 -0
- package/getThumbPosition.js +6 -0
- package/getTimestamp.js +7 -0
- package/getUseLayerOptions.js +49 -0
- package/handlers.js +92 -6
- package/handlers2.js +6 -0
- package/helpers.js +3 -4
- package/helpers2.js +6 -0
- package/hexFromPercentage.js +7 -0
- package/http.js +17 -0
- package/hub.js +446 -0
- package/hub2.js +442 -0
- package/immer.js +472 -0
- package/import.js +7 -0
- package/index-esm.js +10781 -0
- package/index-esm2.js +138 -0
- package/index-esm3.js +131 -0
- package/index.browser.js +11 -0
- package/index.module.js +57 -0
- package/index.module2.js +72 -0
- package/index.module3.js +57 -0
- package/index10.js +20 -0
- package/index102.js +273 -0
- package/index11.js +18 -0
- package/index112.js +29 -0
- package/index12.js +38 -0
- package/index13.js +2432 -0
- package/index14.js +558 -0
- package/index15.js +58 -0
- package/index16.js +4 -0
- package/index17.js +89 -0
- package/index18.js +9 -0
- package/index19.js +62 -0
- package/index20.js +15 -0
- package/index21.js +11 -0
- package/index22.js +42 -0
- package/index23.js +9 -0
- package/index24.js +10 -0
- package/index25.js +7 -0
- package/index26.js +12 -0
- package/index27.js +11 -0
- package/index28.js +639 -0
- package/index29.js +76 -0
- package/index3.js +5 -53
- package/index30.js +7 -0
- package/index31.js +22 -0
- package/index32.js +2 -0
- package/index33.js +7 -0
- package/index34.js +20 -0
- package/index35.js +8 -0
- package/index36.js +4 -0
- package/index37.js +13 -0
- package/index38.js +13 -0
- package/index39.js +15 -0
- package/index4.js +1684 -17
- package/index40.js +13 -0
- package/index41.js +21 -0
- package/index42.js +66 -0
- package/index43.js +8 -0
- package/index44.js +57 -0
- package/index45.js +69 -0
- package/index46.js +33 -0
- package/index47.js +13 -0
- package/index48.js +123 -0
- package/index49.js +88 -0
- package/index5.js +27 -0
- package/index50.js +10 -0
- package/index51.js +13 -0
- package/index52.js +16 -0
- package/index53.js +16 -0
- package/index54.js +9 -0
- package/index55.js +9 -0
- package/index56.js +17 -0
- package/index57.js +31 -0
- package/index58.js +18 -0
- package/index6.js +315 -0
- package/index7.js +4 -0
- package/index72.js +228 -0
- package/index8.js +5051 -0
- package/index82.js +8 -0
- package/index9.js +55 -0
- package/index92.js +12 -0
- package/integration.js +38 -0
- package/is.js +77 -0
- package/is2.js +14 -0
- package/is3.js +14 -0
- package/isAbsoluteURL.js +6 -0
- package/isAbsoluteUrl2.js +6 -0
- package/isAxiosError.js +7 -0
- package/isCancel.js +6 -0
- package/isIterable.js +6 -0
- package/isStringEqual.js +6 -0
- package/isURLSameOrigin.js +8 -0
- package/isValidHexValue.js +6 -0
- package/isVirtualEvent.js +11 -0
- package/iso.js +38 -0
- package/it_IT.json.js +18 -0
- package/itemContext.js +5 -0
- package/ja_JP.json.js +18 -0
- package/ko_KR.json.js +18 -0
- package/localStorageHelper.js +32 -0
- package/localStorageHelper2.js +4 -0
- package/localization.js +46 -0
- package/logger2.js +56 -0
- package/logger3.js +56 -0
- package/logger4.js +56 -0
- package/makeHexWithOpacity.js +12 -0
- package/makeInternalTokens.js +22 -0
- package/matchRequestUrl.js +23 -0
- package/memo.js +25 -0
- package/merge.js +13 -0
- package/mergeConfig.js +70 -0
- package/mergeProps.js +22 -0
- package/mergeRefs.js +9 -0
- package/middleware.js +177 -0
- package/middleware2.js +177 -0
- package/misc.js +58 -0
- package/misc2.js +28 -0
- package/misc3.js +24 -0
- package/nl_NL.json.js +18 -0
- package/normalize.js +97 -0
- package/normalizePath.js +11 -0
- package/normalizeResponse.js +1 -1
- package/normalizeRows.js +10 -0
- package/notify.js +52 -0
- package/null.js +4 -0
- package/object.js +110 -0
- package/object2.js +39 -0
- package/object3.js +17 -0
- package/opacityPercentageFromHex.js +9 -0
- package/openLink.js +27 -0
- package/package.json +1 -1
- package/packageVersion.js +4 -0
- package/parse.js +9 -0
- package/parse2.js +44 -0
- package/parseHeaders.js +30 -0
- package/parseProtocol.js +7 -0
- package/pl_PL.json.js +18 -0
- package/platform.js +42 -0
- package/prepareEvent.js +141 -0
- package/prepareEvent2.js +5 -0
- package/prepareEvent3.js +5 -0
- package/progressEventReducer.js +35 -0
- package/promisebuffer.js +44 -0
- package/propagationContext.js +11 -0
- package/pt_BR.json.js +18 -0
- package/ratelimit.js +37 -0
- package/react.js +19 -0
- package/react2.js +19 -0
- package/regexes.js +51 -0
- package/registries.js +41 -0
- package/resolveConfig.js +33 -0
- package/ru_RU.json.js +18 -0
- package/runAfterTransition.js +35 -0
- package/schemas.js +368 -0
- package/schemas2.js +691 -0
- package/scope.js +412 -0
- package/scope2.js +407 -0
- package/scope3.js +348 -0
- package/sdk-DhxX43BH.js +4813 -0
- package/sdkMetadata.js +15 -0
- package/serializeRequest.js +12 -0
- package/serializeResponse.js +14 -0
- package/session.js +57 -0
- package/session2.js +57 -0
- package/session3.js +16 -0
- package/settle.js +14 -0
- package/shadowdom.js +13 -0
- package/shadowdom2.js +13 -0
- package/spanOnScope.js +12 -0
- package/spanUtils.js +31 -0
- package/spanUtils2.js +31 -0
- package/speedometer.js +19 -0
- package/spread.js +8 -0
- package/stack-parsers.js +48 -0
- package/stackStrategy.js +98 -0
- package/stacktrace.js +49 -0
- package/state.js +106 -0
- package/store/useDatStore.d.ts +11 -8
- package/string.js +6 -0
- package/styled-components.browser.esm.js +530 -0
- package/styles.js +55 -0
- package/styles2.js +17 -0
- package/supports.js +6 -0
- package/syncpromise.js +121 -0
- package/syncpromise2.js +109 -0
- package/textSelection.js +33 -0
- package/textStyles.js +20 -0
- package/theme.js +238 -0
- package/themeContainers.js +20 -0
- package/themes3.js +26 -0
- package/throttle.js +15 -0
- package/time.js +24 -0
- package/time2.js +24 -0
- package/time3.js +24 -0
- package/toFormData.js +85 -0
- package/toPublicUrl.js +9 -0
- package/toURLEncodedForm.js +13 -0
- package/token.js +236 -0
- package/tokenExpirationHelper.js +48 -0
- package/tokenExpirationHelper2.js +4 -0
- package/tokensAndThemes.js +92 -0
- package/tr_TR.json.js +18 -0
- package/trackStream.js +63 -0
- package/transformData.js +13 -0
- package/transitional.js +8 -0
- package/trimMetapropertyValue.js +1 -1
- package/tslib.es6.js +18 -0
- package/typeof.js +11 -0
- package/urlHelper.js +15 -0
- package/urlHelper2.js +4 -0
- package/useAutoHeight.js +25 -0
- package/useDatStore.js +31 -27
- package/useEffectEvent.js +18 -0
- package/useFocus.js +30 -0
- package/useFocusRing.js +34 -0
- package/useFocusVisible.js +92 -0
- package/useFocusWithin.js +57 -0
- package/useFonts.js +118 -0
- package/useGlobalListeners.js +34 -0
- package/useGroupContext.js +10 -0
- package/useHover.js +79 -0
- package/useId.js +8 -0
- package/useId2.js +17 -0
- package/useKeyDown.js +14 -0
- package/useLayoutEffect.js +6 -0
- package/useOrderingStore.js +6 -6
- package/usePress.js +359 -0
- package/useRouterStore.js +6 -6
- package/useScrollHighlightedIntoView.js +24 -0
- package/useSearchStore.js +5 -5
- package/useSimilaritySearchStore.js +6 -6
- package/useSyncRef.js +12 -0
- package/useTranslate.js +13 -0
- package/useZIndex.js +9 -0
- package/userfeedback.js +28 -0
- package/util.js +265 -0
- package/utils/fixFontSpaceInUrl.d.ts +1 -0
- package/utils.js +26 -44
- package/utils2.js +43 -45
- package/utils3.js +50 -0
- package/utils4.js +12 -0
- package/utils5.js +71 -0
- package/utils6.js +222 -0
- package/utils7.js +9 -0
- package/utils8.js +70 -0
- package/validator.js +54 -0
- package/vanilla.js +14 -0
- package/vanilla2.js +14 -0
- package/version.js +4 -0
- package/version2.js +4 -0
- package/version3.js +4 -0
- package/versionContext.js +9 -0
- package/versions.js +8 -0
- package/worldwide.js +19 -0
- package/worldwide2.js +15 -0
- package/worldwide3.js +10 -0
- package/xhr.js +71 -0
- package/zh_CN.json.js +18 -0
- package/zh_TW.json.js +18 -0
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import r from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import r from "./styled-components.browser.esm.js";
|
|
3
|
+
import { Card as l } from "./Card.js";
|
|
4
|
+
import { token as a } from "./token.js";
|
|
5
|
+
import { combineMetaproperties as m } from "./combineMetaproperties.js";
|
|
6
|
+
import { trimMetapropertyValue as c } from "./trimMetapropertyValue.js";
|
|
7
|
+
const M = ({ metaproperties: p, textMetaproperties: d }) => {
|
|
8
|
+
const i = m(p, d);
|
|
9
|
+
return i?.length ? /* @__PURE__ */ e(l.AdditionalInfo, { children: /* @__PURE__ */ e(f, { children: i.map(({ label: o, value: t }) => {
|
|
10
|
+
const s = c(t);
|
|
10
11
|
return /* @__PURE__ */ n(x, { "data-testid": "asset-card-metaproperty", children: [
|
|
11
12
|
/* @__PURE__ */ n(h, { children: [
|
|
12
|
-
|
|
13
|
+
o,
|
|
13
14
|
":"
|
|
14
15
|
] }),
|
|
15
|
-
/* @__PURE__ */ e(w, { title:
|
|
16
|
-
] },
|
|
16
|
+
/* @__PURE__ */ e(w, { title: t, children: s })
|
|
17
|
+
] }, o);
|
|
17
18
|
}) }) }) : null;
|
|
18
19
|
}, f = r.dl`
|
|
19
20
|
color: rgba(0, 34, 51, 0.5);
|
|
20
|
-
font-size: ${
|
|
21
|
+
font-size: ${a.fontSize75};
|
|
21
22
|
display: flex;
|
|
22
23
|
flex-direction: column;
|
|
23
24
|
grid-row-gap: 1px;
|
|
@@ -42,5 +43,5 @@ const b = ({ metaproperties: p, textMetaproperties: d }) => {
|
|
|
42
43
|
text-overflow: ellipsis;
|
|
43
44
|
`;
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
M as AssetCardMetaproperties
|
|
46
47
|
};
|
package/AssetFilter.js
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { useState as f, useEffect as C } from "react";
|
|
3
|
+
import p from "./styled-components.browser.esm.js";
|
|
4
|
+
import { Button as F } from "./Button.js";
|
|
5
|
+
import { token as L } from "./token.js";
|
|
6
|
+
import { IconMultiSelect as B, IconRectangle as E } from "./index4.js";
|
|
6
7
|
import { useRouterSelectors as H } from "./useRouterStore.js";
|
|
7
8
|
import { useAssetFilter as R } from "./AssetFilterContext.js";
|
|
8
|
-
import { useLocalization as
|
|
9
|
-
import { useConfig as
|
|
10
|
-
import { useGetFilters as
|
|
11
|
-
import { useGetFilters as
|
|
12
|
-
import { Skeleton as
|
|
13
|
-
import { HorizontalScroll as
|
|
14
|
-
import { Tags as
|
|
15
|
-
import { Advanced as
|
|
9
|
+
import { useLocalization as Q } from "./index2.js";
|
|
10
|
+
import { useConfig as U } from "./ConfigContext.js";
|
|
11
|
+
import { useGetFilters as V } from "./getFilters.js";
|
|
12
|
+
import { useGetFilters as W } from "./getFilters_new.js";
|
|
13
|
+
import { Skeleton as u } from "./Skeleton.js";
|
|
14
|
+
import { HorizontalScroll as q } from "./HorizontalScroll.js";
|
|
15
|
+
import { Tags as J } from "./Tags.js";
|
|
16
|
+
import { Advanced as K } from "./Advanced.js";
|
|
16
17
|
import { useSelection as X } from "./SelectionContext.js";
|
|
17
18
|
import { useAuth as Y } from "./LoginContext.js";
|
|
18
19
|
import { getAssetCounts as Z } from "./getAssetCounts.js";
|
|
19
20
|
import { Smartfilter as _ } from "./Smartfilters_new.js";
|
|
20
21
|
import { useSearchStateByPage as ee } from "./useSearchStore.js";
|
|
21
22
|
import { useSimilaritySearchStore as te } from "./useSimilaritySearchStore.js";
|
|
22
|
-
function
|
|
23
|
+
function Ie() {
|
|
23
24
|
const s = R(), t = H.use.page(), { value: i } = ee("assets"), {
|
|
24
|
-
assetTypes:
|
|
25
|
+
assetTypes: a,
|
|
25
26
|
language: g,
|
|
26
27
|
assetFilter: x,
|
|
27
28
|
noCache: S,
|
|
28
29
|
selectionMode: w,
|
|
29
30
|
selectAllOption: T
|
|
30
|
-
} =
|
|
31
|
-
|
|
32
|
-
const [j, A] =
|
|
31
|
+
} = U(), { clear: I, selectAll: b } = X(), N = Y(), [h, P] = f(t.page);
|
|
32
|
+
Q(g);
|
|
33
|
+
const [j, A] = f(!1), {
|
|
33
34
|
isSelected: z,
|
|
34
35
|
isNLSSelected: D,
|
|
35
36
|
NLSSearchText: G
|
|
36
|
-
} = te(), [M,
|
|
37
|
+
} = te(), [M, v] = f(!1), { data: l, isLoading: y } = V(
|
|
37
38
|
{
|
|
38
39
|
filter: s,
|
|
39
40
|
searchTerm: i || null,
|
|
40
|
-
allAssetTypes:
|
|
41
|
+
allAssetTypes: a,
|
|
41
42
|
language: g,
|
|
42
43
|
predefinedFilter: x,
|
|
43
44
|
collectionId: t.page === "collection" ? t.collection.id : null
|
|
44
45
|
},
|
|
45
46
|
S
|
|
46
|
-
), { data: r } =
|
|
47
|
+
), { data: r } = W(S);
|
|
47
48
|
if (C(() => (t.page !== h && (P(t.page), s.clear()), () => {
|
|
48
49
|
s.clear();
|
|
49
50
|
}), [h, t.page]), C(() => {
|
|
50
51
|
let o = !1;
|
|
51
52
|
return (async () => {
|
|
52
|
-
|
|
53
|
+
v(!0);
|
|
53
54
|
try {
|
|
54
55
|
const d = await Z({
|
|
55
56
|
auth: N,
|
|
56
57
|
filter: {
|
|
57
58
|
searchTerm: i,
|
|
58
|
-
assetTypes:
|
|
59
|
+
assetTypes: a,
|
|
59
60
|
collectionId: t.page === "collection" ? t.collection.id : void 0,
|
|
60
61
|
tagNames: s.tags,
|
|
61
62
|
isLimitedUse: s.isLimited,
|
|
@@ -66,15 +67,15 @@ function Te() {
|
|
|
66
67
|
} catch (d) {
|
|
67
68
|
o || console.error("Error fetching asset counts:", d);
|
|
68
69
|
} finally {
|
|
69
|
-
o ||
|
|
70
|
+
o || v(!1);
|
|
70
71
|
}
|
|
71
72
|
})(), () => {
|
|
72
73
|
o = !0;
|
|
73
74
|
};
|
|
74
|
-
}, [s.tags, i,
|
|
75
|
+
}, [s.tags, i, a, t.page, s.selectedSmartfilterOptions]), l.tag === "Failure" || !l.value || r.tag === "Failure" || r.tag === "Loading" || !r.value || M)
|
|
75
76
|
return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(se, {}) });
|
|
76
|
-
const { tags:
|
|
77
|
-
|
|
77
|
+
const { tags: n, count: O } = l.value.searchAssets, { value: c } = r, $ = j ? /* @__PURE__ */ e(
|
|
78
|
+
F,
|
|
78
79
|
{
|
|
79
80
|
onClick: () => {
|
|
80
81
|
I(), A(!1);
|
|
@@ -85,7 +86,7 @@ function Te() {
|
|
|
85
86
|
"data-testid": "deselect-all"
|
|
86
87
|
}
|
|
87
88
|
) : /* @__PURE__ */ e(
|
|
88
|
-
|
|
89
|
+
F,
|
|
89
90
|
{
|
|
90
91
|
onClick: () => {
|
|
91
92
|
b(), A(!0);
|
|
@@ -97,26 +98,26 @@ function Te() {
|
|
|
97
98
|
}
|
|
98
99
|
);
|
|
99
100
|
return z || D && G ? null : /* @__PURE__ */ m(k, { "data-testid": "filter-nav", children: [
|
|
100
|
-
/* @__PURE__ */ m(
|
|
101
|
+
/* @__PURE__ */ m(q, { children: [
|
|
101
102
|
c && c.filters.length > 0 && /* @__PURE__ */ e(_, { filterData: c }),
|
|
102
|
-
|
|
103
|
-
/* @__PURE__ */ e(
|
|
103
|
+
n && n.nodes.length > 0 && /* @__PURE__ */ e(J, { tags: n.nodes, isLoading: y }),
|
|
104
|
+
/* @__PURE__ */ e(K, { isLoading: y, count: O.assetType })
|
|
104
105
|
] }),
|
|
105
106
|
/* @__PURE__ */ e(re, { children: w === "MultiSelect" && T && t.page === "assets" && $ })
|
|
106
107
|
] });
|
|
107
108
|
}
|
|
108
109
|
function se() {
|
|
109
110
|
return /* @__PURE__ */ m(oe, { children: [
|
|
110
|
-
/* @__PURE__ */ e(
|
|
111
|
-
/* @__PURE__ */ e(
|
|
112
|
-
/* @__PURE__ */ e(
|
|
111
|
+
/* @__PURE__ */ e(u, { width: 100 }),
|
|
112
|
+
/* @__PURE__ */ e(u, { width: 80 }),
|
|
113
|
+
/* @__PURE__ */ e(u, { width: 110 })
|
|
113
114
|
] });
|
|
114
115
|
}
|
|
115
116
|
const k = p.nav`
|
|
116
117
|
display: flex;
|
|
117
118
|
justify-content: space-between;
|
|
118
119
|
background-color: #fff;
|
|
119
|
-
padding: ${
|
|
120
|
+
padding: ${L.spacing3} ${L.spacing4};
|
|
120
121
|
z-index: 20;
|
|
121
122
|
`, re = p.div`
|
|
122
123
|
display: flex;
|
|
@@ -133,5 +134,5 @@ const k = p.nav`
|
|
|
133
134
|
align-items: center;
|
|
134
135
|
`;
|
|
135
136
|
export {
|
|
136
|
-
|
|
137
|
+
Ie as AssetFilter
|
|
137
138
|
};
|
package/AssetFilterContext.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as R } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as V,
|
|
2
|
+
import { createContext as V, useState as c, useEffect as x, useMemo as X, useContext as Y } from "react";
|
|
3
3
|
const j = V(null);
|
|
4
4
|
function U({
|
|
5
5
|
children: o,
|
|
@@ -114,7 +114,7 @@ function U({
|
|
|
114
114
|
function J(e) {
|
|
115
115
|
C(e);
|
|
116
116
|
}
|
|
117
|
-
const K =
|
|
117
|
+
const K = X(
|
|
118
118
|
() => ({
|
|
119
119
|
assetTypes: b,
|
|
120
120
|
metaproperties: h,
|
|
@@ -149,7 +149,7 @@ function A(o, u) {
|
|
|
149
149
|
return o.filter((s) => s !== u);
|
|
150
150
|
}
|
|
151
151
|
function F() {
|
|
152
|
-
const o =
|
|
152
|
+
const o = Y(j);
|
|
153
153
|
if (o === null)
|
|
154
154
|
throw new Error("useAssetFilter must be used with a AssetFilterProvider");
|
|
155
155
|
return o;
|
package/AssetItem.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import i from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import i from "./styled-components.browser.esm.js";
|
|
3
|
+
import { Thumbnail as s } from "./Thumbnail.js";
|
|
4
|
+
import { token as o } from "./token.js";
|
|
5
|
+
import { getExtension as n, getThumbnail as l } from "./utils2.js";
|
|
6
|
+
import { useSelection as p } from "./SelectionContext.js";
|
|
7
|
+
import { SelectedItemContainer as a } from "./SelectedItemContainer.js";
|
|
8
|
+
function b({ asset: e }) {
|
|
9
|
+
const r = p();
|
|
9
10
|
return /* @__PURE__ */ m(
|
|
10
|
-
|
|
11
|
+
a,
|
|
11
12
|
{
|
|
12
13
|
title: e.name,
|
|
13
14
|
onRemove: () => r.toggleAssets([e]),
|
|
14
15
|
children: [
|
|
15
16
|
/* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(s, { variant: "preview", imageUrl: l(e), size: "m" }) }),
|
|
16
17
|
/* @__PURE__ */ t(g, { children: e.name }),
|
|
17
|
-
|
|
18
|
+
n(e) && /* @__PURE__ */ t(h, { children: n(e) })
|
|
18
19
|
]
|
|
19
20
|
}
|
|
20
21
|
);
|
|
21
22
|
}
|
|
22
23
|
const c = i.div`
|
|
23
|
-
margin-right: ${
|
|
24
|
+
margin-right: ${o.spacing4};
|
|
24
25
|
max-width: 40px;
|
|
25
26
|
`, g = i.span`
|
|
26
27
|
width: 160px;
|
|
27
|
-
margin-right: ${
|
|
28
|
+
margin-right: ${o.spacing3};
|
|
28
29
|
overflow: hidden;
|
|
29
30
|
text-overflow: ellipsis;
|
|
30
31
|
white-space: nowrap;
|
|
31
32
|
`, h = i.span`
|
|
32
33
|
flex-grow: 1;
|
|
33
34
|
color: rgba(0, 34, 51, 0.5);
|
|
34
|
-
font-size: ${
|
|
35
|
+
font-size: ${o.fontSize75};
|
|
35
36
|
text-align: right;
|
|
36
37
|
`;
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
b as AssetItem
|
|
39
40
|
};
|
package/AssetList.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as I, jsx as s, Fragment as G } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as P, useState as k, useEffect as J } from "react";
|
|
3
|
-
import
|
|
3
|
+
import Q from "./styled-components.browser.esm.js";
|
|
4
4
|
import { AssetCard as U } from "./AssetCard.js";
|
|
5
5
|
import { CardSkeleton as V } from "./CardSkeleton.js";
|
|
6
6
|
import { DragSelect as X } from "./DragSelect.js";
|
|
@@ -30,17 +30,17 @@ function he({
|
|
|
30
30
|
setIsEnabled: C,
|
|
31
31
|
isEnabled: H,
|
|
32
32
|
setIsSelected: W
|
|
33
|
-
} = T(), { resetData: j, search:
|
|
33
|
+
} = T(), { resetData: j, search: p } = ee(), [A, E] = te(l, M), L = P(!1);
|
|
34
34
|
J(() => {
|
|
35
35
|
!L.current && e.value && e.value.length > 0 && (L.current = !0, (async () => {
|
|
36
36
|
if (e.value && e.value.length > 0) {
|
|
37
|
-
const i = e.value.find((n) => n.__typename === "Image") || e.value[0], r = await
|
|
37
|
+
const i = e.value.find((n) => n.__typename === "Image") || e.value[0], r = await p([i.databaseId]);
|
|
38
38
|
C(r || !1);
|
|
39
39
|
}
|
|
40
40
|
})());
|
|
41
|
-
}, [e.value,
|
|
41
|
+
}, [e.value, p, C]);
|
|
42
42
|
const z = (t) => {
|
|
43
|
-
j(), W(!0), R(),
|
|
43
|
+
j(), W(!0), R(), p(t);
|
|
44
44
|
};
|
|
45
45
|
function _(t) {
|
|
46
46
|
if (!(e.tag === "Loading" && !e.value))
|
|
@@ -71,9 +71,9 @@ function he({
|
|
|
71
71
|
}
|
|
72
72
|
function q(t, i) {
|
|
73
73
|
if (i.shiftKey && u === "MultiSelect" && e.value?.length) {
|
|
74
|
-
const r = e.value.findIndex((
|
|
74
|
+
const r = e.value.findIndex((y) => y.id === t.id);
|
|
75
75
|
let n = e.value?.findIndex(
|
|
76
|
-
(
|
|
76
|
+
(y) => y.id === a[a.length - 1]
|
|
77
77
|
);
|
|
78
78
|
n === -1 && (n = 0), n < r ? o(e.value?.slice(n, r + 1)) : o(e.value.slice(r, n + 1));
|
|
79
79
|
} else
|
package/AssetTypeItem.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import r from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import r from "./styled-components.browser.esm.js";
|
|
3
|
+
import { Checkbox as a } from "./Checkbox.js";
|
|
4
|
+
import { token as m } from "./token.js";
|
|
5
|
+
import { useAssetFilter as l } from "./AssetFilterContext.js";
|
|
6
|
+
import { getAssetTypeIcon as f, assetTypeToString as s } from "./asset.type.js";
|
|
7
|
+
import { ListItem as y, StyledCheckboxWrapper as h, Content as p } from "./Checkbox.styles.js";
|
|
8
|
+
function I(e) {
|
|
9
|
+
const n = l(), i = n.assetTypes.includes(e.type);
|
|
9
10
|
function o() {
|
|
10
11
|
i ? n.removeAssetType(e.type) : n.addAssetType(e.type);
|
|
11
12
|
}
|
|
12
|
-
const c =
|
|
13
|
-
return /* @__PURE__ */ t(
|
|
14
|
-
|
|
13
|
+
const c = f(e.type);
|
|
14
|
+
return /* @__PURE__ */ t(y, { "data-testid": "advanced-options", children: /* @__PURE__ */ t(h, { $isChecked: i, $isLoading: e.isLoading, children: /* @__PURE__ */ t(
|
|
15
|
+
a,
|
|
15
16
|
{
|
|
16
17
|
isChecked: i,
|
|
17
18
|
onChange: o,
|
|
@@ -25,9 +26,9 @@ function $(e) {
|
|
|
25
26
|
) }) });
|
|
26
27
|
}
|
|
27
28
|
const g = r.div`
|
|
28
|
-
margin: 1px ${
|
|
29
|
+
margin: 1px ${m.spacing3};
|
|
29
30
|
flex-grow: 1;
|
|
30
31
|
`;
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
I as AssetTypeItem
|
|
33
34
|
};
|
package/Autocomplete_new.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as C } from "react";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import i from "./styled-components.browser.esm.js";
|
|
4
|
+
import { Flex as h } from "./Flex.js";
|
|
5
|
+
import { Form as a } from "./Form.js";
|
|
6
|
+
import { Input as O } from "./Input.js";
|
|
7
|
+
import { TruncatedText as P } from "./TruncatedText.js";
|
|
8
|
+
import { token as m } from "./token.js";
|
|
5
9
|
import { __ as g } from "./index2.js";
|
|
6
10
|
import "./AssetCard.js";
|
|
7
11
|
import "./AssetList.js";
|
|
8
|
-
import "./
|
|
12
|
+
import "./Chip2.js";
|
|
9
13
|
import "./Dropdown.js";
|
|
10
14
|
import "./DropdownListItem.js";
|
|
11
15
|
import "./MetapropertyFilterContent.js";
|
|
@@ -20,39 +24,39 @@ import "./ShadowRoot.js";
|
|
|
20
24
|
import "./Skeleton.js";
|
|
21
25
|
import { Spinner as j } from "./Spinner.js";
|
|
22
26
|
import { OptionComponent as v } from "./Option_new.js";
|
|
23
|
-
const
|
|
27
|
+
const pt = ({
|
|
24
28
|
metaproperty: t,
|
|
25
29
|
value: l,
|
|
26
30
|
onChange: d,
|
|
27
|
-
onOptionSelect:
|
|
31
|
+
onOptionSelect: f,
|
|
28
32
|
autocompleteOptions: n,
|
|
29
33
|
isLoading: p,
|
|
30
|
-
selectedOptions:
|
|
34
|
+
selectedOptions: x
|
|
31
35
|
}) => {
|
|
32
|
-
const { label: u, name: b, id:
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
const
|
|
36
|
-
d(
|
|
36
|
+
const { label: u, name: b, id: e } = t, [$, c] = C(1), w = (r) => {
|
|
37
|
+
c(1), d(e, r, 1);
|
|
38
|
+
}, y = () => {
|
|
39
|
+
const r = $ + 1;
|
|
40
|
+
d(e, l, r), c(r);
|
|
37
41
|
};
|
|
38
|
-
return /* @__PURE__ */ o(M, { children: /* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */ o(N, { children: /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ o(M, { children: /* @__PURE__ */ s(h, { direction: "column", children: [
|
|
43
|
+
/* @__PURE__ */ o(N, { children: /* @__PURE__ */ s(L, { $isLoading: p, children: [
|
|
40
44
|
/* @__PURE__ */ o(
|
|
41
45
|
S,
|
|
42
46
|
{
|
|
43
47
|
"data-testid": "metaproperty-title",
|
|
44
48
|
$isLoading: p,
|
|
45
49
|
htmlFor: "Project Code",
|
|
46
|
-
children: /* @__PURE__ */ o(
|
|
50
|
+
children: /* @__PURE__ */ o(P, { children: u })
|
|
47
51
|
}
|
|
48
52
|
),
|
|
49
53
|
/* @__PURE__ */ o(
|
|
50
|
-
|
|
54
|
+
O,
|
|
51
55
|
{
|
|
52
56
|
id: "Project Code",
|
|
53
57
|
placeholder: g("Want to search for something?"),
|
|
54
58
|
value: l,
|
|
55
|
-
onChange:
|
|
59
|
+
onChange: w,
|
|
56
60
|
"data-testid": "autocomplete-input"
|
|
57
61
|
}
|
|
58
62
|
),
|
|
@@ -61,25 +65,25 @@ const et = ({
|
|
|
61
65
|
/* @__PURE__ */ o(
|
|
62
66
|
k,
|
|
63
67
|
{
|
|
64
|
-
$autocompleteOptions: n[
|
|
65
|
-
children: n[
|
|
68
|
+
$autocompleteOptions: n[e]?.metapropertyOptions.length,
|
|
69
|
+
children: n[e]?.metapropertyOptions?.length ? /* @__PURE__ */ o(h, { direction: "column", children: /* @__PURE__ */ o(
|
|
66
70
|
F,
|
|
67
71
|
{
|
|
68
72
|
isLoading: p,
|
|
69
|
-
hasNextPage: n[
|
|
70
|
-
loadMore:
|
|
71
|
-
children: n[
|
|
72
|
-
(
|
|
73
|
+
hasNextPage: n[e]?.hasNextPage,
|
|
74
|
+
loadMore: y,
|
|
75
|
+
children: n[e]?.metapropertyOptions.map(
|
|
76
|
+
(r) => /* @__PURE__ */ o(
|
|
73
77
|
v,
|
|
74
78
|
{
|
|
75
|
-
option:
|
|
76
|
-
onClick:
|
|
79
|
+
option: r,
|
|
80
|
+
onClick: f,
|
|
77
81
|
metapropertyName: b,
|
|
78
|
-
isSelected: !!
|
|
82
|
+
isSelected: !!x[t.name]?.[r.id],
|
|
79
83
|
metapropertyMultifilter: !!t.isMultifilter,
|
|
80
84
|
showCount: !1
|
|
81
85
|
},
|
|
82
|
-
|
|
86
|
+
r.id
|
|
83
87
|
)
|
|
84
88
|
)
|
|
85
89
|
}
|
|
@@ -87,18 +91,18 @@ const et = ({
|
|
|
87
91
|
}
|
|
88
92
|
)
|
|
89
93
|
] }) });
|
|
90
|
-
}, M =
|
|
94
|
+
}, M = i.div`
|
|
91
95
|
border-right: 1px solid rgba(3, 16, 38, 0.1);
|
|
92
96
|
min-width: 224px;
|
|
93
97
|
height: 100%;
|
|
94
|
-
`, N =
|
|
95
|
-
padding: ${
|
|
98
|
+
`, N = i(a)`
|
|
99
|
+
padding: ${m.spacing5};
|
|
96
100
|
border-bottom: 1px solid rgba(3, 16, 38, 0.1);
|
|
97
101
|
box-shadow: 0px 0px 1px 0px rgba(3, 16, 38, 0.1), 0px 1px 4px -1px rgba(3, 16, 38, 0.1);
|
|
98
|
-
`, L =
|
|
102
|
+
`, L = i(a.Group)`
|
|
99
103
|
display: flex;
|
|
100
104
|
flex-direction: column;
|
|
101
|
-
gap: ${
|
|
105
|
+
gap: ${m.spacing5};
|
|
102
106
|
padding: 0;
|
|
103
107
|
position: relative;
|
|
104
108
|
|
|
@@ -110,23 +114,23 @@ const et = ({
|
|
|
110
114
|
color: ${(t) => t.$isLoading ? "rgba(3, 16, 38, 0.46)" : "inherit"} !important;
|
|
111
115
|
min-width: 220px !important;
|
|
112
116
|
}
|
|
113
|
-
`, S =
|
|
117
|
+
`, S = i(a.Label)`
|
|
114
118
|
color: ${(t) => t.$isLoading ? "rgba(3, 16, 38, 0.46)" : "rgba(3, 16, 38, 0.88)"};
|
|
115
119
|
font-weight: 600;
|
|
116
|
-
`, k =
|
|
120
|
+
`, k = i.div`
|
|
117
121
|
display: flex;
|
|
118
122
|
justify-content: ${(t) => t.$autocompleteOptions ? "flex-start" : "center"};
|
|
119
123
|
align-items: ${(t) => t.$autocompleteOptions ? "flex-start" : "center"};
|
|
120
124
|
background: ${(t) => t.$autocompleteOptions ? "#fff" : "#f8f8f9"};
|
|
121
|
-
padding: ${(t) => t.$autocompleteOptions ? "0" : `${
|
|
125
|
+
padding: ${(t) => t.$autocompleteOptions ? "0" : `${m.spacing3} 0`};
|
|
122
126
|
height: 100%;
|
|
123
127
|
min-height: 315px;
|
|
124
128
|
max-height: 400px;
|
|
125
129
|
overflow-y: ${(t) => t.$autocompleteOptions ? "auto" : "visible"};
|
|
126
130
|
scrollbar-width: none;
|
|
127
|
-
`, I =
|
|
131
|
+
`, I = i.div`
|
|
128
132
|
color: rgba(3, 16, 38, 0.46);
|
|
129
133
|
`;
|
|
130
134
|
export {
|
|
131
|
-
|
|
135
|
+
pt as Autocomplete
|
|
132
136
|
};
|
package/Axios2.js
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import d from "./utils6.js";
|
|
2
|
+
import U from "./buildURL.js";
|
|
3
|
+
import q from "./InterceptorManager.js";
|
|
4
|
+
import R from "./dispatchRequest.js";
|
|
5
|
+
import w from "./mergeConfig.js";
|
|
6
|
+
import A from "./buildFullPath.js";
|
|
7
|
+
import m from "./validator.js";
|
|
8
|
+
import T from "./AxiosHeaders.js";
|
|
9
|
+
const i = m.validators;
|
|
10
|
+
class k {
|
|
11
|
+
constructor(t) {
|
|
12
|
+
this.defaults = t || {}, this.interceptors = {
|
|
13
|
+
request: new q(),
|
|
14
|
+
response: new q()
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Dispatch a request
|
|
19
|
+
*
|
|
20
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
21
|
+
* @param {?Object} config
|
|
22
|
+
*
|
|
23
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
24
|
+
*/
|
|
25
|
+
async request(t, e) {
|
|
26
|
+
try {
|
|
27
|
+
return await this._request(t, e);
|
|
28
|
+
} catch (s) {
|
|
29
|
+
if (s instanceof Error) {
|
|
30
|
+
let l = {};
|
|
31
|
+
Error.captureStackTrace ? Error.captureStackTrace(l) : l = new Error();
|
|
32
|
+
const a = l.stack ? l.stack.replace(/^.+\n/, "") : "";
|
|
33
|
+
try {
|
|
34
|
+
s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
|
|
35
|
+
` + a) : s.stack = a;
|
|
36
|
+
} catch {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
throw s;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
_request(t, e) {
|
|
43
|
+
typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = w(this.defaults, e);
|
|
44
|
+
const { transitional: s, paramsSerializer: l, headers: a } = e;
|
|
45
|
+
s !== void 0 && m.assertOptions(s, {
|
|
46
|
+
silentJSONParsing: i.transitional(i.boolean),
|
|
47
|
+
forcedJSONParsing: i.transitional(i.boolean),
|
|
48
|
+
clarifyTimeoutError: i.transitional(i.boolean)
|
|
49
|
+
}, !1), l != null && (d.isFunction(l) ? e.paramsSerializer = {
|
|
50
|
+
serialize: l
|
|
51
|
+
} : m.assertOptions(l, {
|
|
52
|
+
encode: i.function,
|
|
53
|
+
serialize: i.function
|
|
54
|
+
}, !0)), e.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : e.allowAbsoluteUrls = !0), m.assertOptions(e, {
|
|
55
|
+
baseUrl: i.spelling("baseURL"),
|
|
56
|
+
withXsrfToken: i.spelling("withXSRFToken")
|
|
57
|
+
}, !0), e.method = (e.method || this.defaults.method || "get").toLowerCase();
|
|
58
|
+
let f = a && d.merge(
|
|
59
|
+
a.common,
|
|
60
|
+
a[e.method]
|
|
61
|
+
);
|
|
62
|
+
a && d.forEach(
|
|
63
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
64
|
+
(r) => {
|
|
65
|
+
delete a[r];
|
|
66
|
+
}
|
|
67
|
+
), e.headers = T.concat(f, a);
|
|
68
|
+
const h = [];
|
|
69
|
+
let y = !0;
|
|
70
|
+
this.interceptors.request.forEach(function(n) {
|
|
71
|
+
typeof n.runWhen == "function" && n.runWhen(e) === !1 || (y = y && n.synchronous, h.unshift(n.fulfilled, n.rejected));
|
|
72
|
+
});
|
|
73
|
+
const c = [];
|
|
74
|
+
this.interceptors.response.forEach(function(n) {
|
|
75
|
+
c.push(n.fulfilled, n.rejected);
|
|
76
|
+
});
|
|
77
|
+
let u, o = 0, p;
|
|
78
|
+
if (!y) {
|
|
79
|
+
const r = [R.bind(this), void 0];
|
|
80
|
+
for (r.unshift.apply(r, h), r.push.apply(r, c), p = r.length, u = Promise.resolve(e); o < p; )
|
|
81
|
+
u = u.then(r[o++], r[o++]);
|
|
82
|
+
return u;
|
|
83
|
+
}
|
|
84
|
+
p = h.length;
|
|
85
|
+
let b = e;
|
|
86
|
+
for (o = 0; o < p; ) {
|
|
87
|
+
const r = h[o++], n = h[o++];
|
|
88
|
+
try {
|
|
89
|
+
b = r(b);
|
|
90
|
+
} catch (S) {
|
|
91
|
+
n.call(this, S);
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
u = R.call(this, b);
|
|
97
|
+
} catch (r) {
|
|
98
|
+
return Promise.reject(r);
|
|
99
|
+
}
|
|
100
|
+
for (o = 0, p = c.length; o < p; )
|
|
101
|
+
u = u.then(c[o++], c[o++]);
|
|
102
|
+
return u;
|
|
103
|
+
}
|
|
104
|
+
getUri(t) {
|
|
105
|
+
t = w(this.defaults, t);
|
|
106
|
+
const e = A(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
107
|
+
return U(e, t.params, t.paramsSerializer);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
d.forEach(["delete", "get", "head", "options"], function(t) {
|
|
111
|
+
k.prototype[t] = function(e, s) {
|
|
112
|
+
return this.request(w(s || {}, {
|
|
113
|
+
method: t,
|
|
114
|
+
url: e,
|
|
115
|
+
data: (s || {}).data
|
|
116
|
+
}));
|
|
117
|
+
};
|
|
118
|
+
});
|
|
119
|
+
d.forEach(["post", "put", "patch"], function(t) {
|
|
120
|
+
function e(s) {
|
|
121
|
+
return function(a, f, h) {
|
|
122
|
+
return this.request(w(h || {}, {
|
|
123
|
+
method: t,
|
|
124
|
+
headers: s ? {
|
|
125
|
+
"Content-Type": "multipart/form-data"
|
|
126
|
+
} : {},
|
|
127
|
+
url: a,
|
|
128
|
+
data: f
|
|
129
|
+
}));
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
k.prototype[t] = e(), k.prototype[t + "Form"] = e(!0);
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
k as default
|
|
136
|
+
};
|