@cloudscape-design/components 3.0.706 → 3.0.708

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/container/interfaces.d.ts +9 -0
  2. package/container/interfaces.d.ts.map +1 -1
  3. package/container/interfaces.js.map +1 -1
  4. package/expandable-section/interfaces.d.ts +9 -0
  5. package/expandable-section/interfaces.d.ts.map +1 -1
  6. package/expandable-section/interfaces.js.map +1 -1
  7. package/form/interfaces.d.ts +14 -0
  8. package/form/interfaces.d.ts.map +1 -1
  9. package/form/interfaces.js.map +1 -1
  10. package/i18n/messages/all.all.js +1 -1
  11. package/i18n/messages/all.all.json +1 -1
  12. package/i18n/messages/all.ar.js +1 -1
  13. package/i18n/messages/all.ar.json +1 -1
  14. package/i18n/messages/all.de.js +1 -1
  15. package/i18n/messages/all.de.json +1 -1
  16. package/i18n/messages/all.en-GB.js +1 -1
  17. package/i18n/messages/all.en-GB.json +1 -1
  18. package/i18n/messages/all.en.js +1 -1
  19. package/i18n/messages/all.en.json +1 -1
  20. package/i18n/messages/all.es.js +1 -1
  21. package/i18n/messages/all.es.json +1 -1
  22. package/i18n/messages/all.fr.js +1 -1
  23. package/i18n/messages/all.fr.json +1 -1
  24. package/i18n/messages/all.id.js +1 -1
  25. package/i18n/messages/all.id.json +1 -1
  26. package/i18n/messages/all.it.js +1 -1
  27. package/i18n/messages/all.it.json +1 -1
  28. package/i18n/messages/all.ja.js +1 -1
  29. package/i18n/messages/all.ja.json +1 -1
  30. package/i18n/messages/all.ko.js +1 -1
  31. package/i18n/messages/all.ko.json +1 -1
  32. package/i18n/messages/all.pt-BR.js +1 -1
  33. package/i18n/messages/all.pt-BR.json +1 -1
  34. package/i18n/messages/all.th.js +1 -1
  35. package/i18n/messages/all.th.json +1 -1
  36. package/i18n/messages/all.tr.js +1 -1
  37. package/i18n/messages/all.tr.json +1 -1
  38. package/i18n/messages/all.zh-CN.js +1 -1
  39. package/i18n/messages/all.zh-CN.json +1 -1
  40. package/i18n/messages/all.zh-TW.js +1 -1
  41. package/i18n/messages/all.zh-TW.json +1 -1
  42. package/i18n/messages-types.d.ts +1 -1
  43. package/i18n/messages-types.d.ts.map +1 -1
  44. package/i18n/messages-types.js.map +1 -1
  45. package/internal/analytics/hooks/use-funnel.d.ts +1 -1
  46. package/internal/analytics/interfaces.d.ts +16 -15
  47. package/internal/analytics/interfaces.d.ts.map +1 -1
  48. package/internal/analytics/interfaces.js.map +1 -1
  49. package/internal/base-component/index.d.ts +10 -1
  50. package/internal/base-component/index.d.ts.map +1 -1
  51. package/internal/base-component/index.js +5 -1
  52. package/internal/base-component/index.js.map +1 -1
  53. package/internal/components/token-list/styles.css.js +9 -9
  54. package/internal/components/token-list/styles.scoped.css +22 -22
  55. package/internal/components/token-list/styles.selectors.js +9 -9
  56. package/internal/environment.js +1 -1
  57. package/internal/environment.json +1 -1
  58. package/internal/manifest.json +1 -1
  59. package/package.json +1 -1
  60. package/property-filter/i18n-utils.d.ts +9 -0
  61. package/property-filter/i18n-utils.d.ts.map +1 -0
  62. package/property-filter/i18n-utils.js +48 -0
  63. package/property-filter/i18n-utils.js.map +1 -0
  64. package/property-filter/index.d.ts.map +1 -1
  65. package/property-filter/index.js +5 -38
  66. package/property-filter/index.js.map +1 -1
  67. package/property-filter/interfaces.d.ts +8 -1
  68. package/property-filter/interfaces.d.ts.map +1 -1
  69. package/property-filter/interfaces.js.map +1 -1
  70. package/property-filter/token.d.ts.map +1 -1
  71. package/property-filter/token.js +12 -13
  72. package/property-filter/token.js.map +1 -1
  73. package/property-filter/utils.d.ts +0 -6
  74. package/property-filter/utils.d.ts.map +1 -1
  75. package/property-filter/utils.js +0 -8
  76. package/property-filter/utils.js.map +1 -1
  77. package/table/interfaces.d.ts +9 -0
  78. package/table/interfaces.d.ts.map +1 -1
  79. package/table/interfaces.js.map +1 -1
  80. package/tabs/styles.css.js +28 -28
  81. package/tabs/styles.scoped.css +49 -54
  82. package/tabs/styles.selectors.js +28 -28
  83. package/tabs/tab-header-bar.d.ts.map +1 -1
  84. package/tabs/tab-header-bar.js +4 -3
  85. package/tabs/tab-header-bar.js.map +1 -1
  86. package/tabs/test-classes/styles.css.js +6 -0
  87. package/tabs/test-classes/styles.scoped.css +7 -0
  88. package/tabs/test-classes/styles.selectors.js +7 -0
  89. package/test-utils/dom/tabs/index.js +4 -3
  90. package/test-utils/dom/tabs/index.js.map +1 -1
  91. package/test-utils/selectors/tabs/index.js +4 -3
  92. package/test-utils/selectors/tabs/index.js.map +1 -1
  93. package/test-utils/tsconfig.tsbuildinfo +1 -1
  94. package/wizard/interfaces.d.ts +20 -0
  95. package/wizard/interfaces.d.ts.map +1 -1
  96. package/wizard/interfaces.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"messages-types.js","sourceRoot":"","sources":["../../../src/i18n/messages-types.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/* eslint-disable prettier/prettier */\n\n/** Auto-generated argument types based on \"en\" i18n strings. Do not edit manually. */\nexport interface I18nFormatArgTypes {\n \"[charts]\": {\n \"loadingText\": never;\n \"errorText\": never;\n \"recoveryText\": never;\n \"i18nStrings.filterLabel\": never;\n \"i18nStrings.filterPlaceholder\": never;\n \"i18nStrings.legendAriaLabel\": never;\n \"i18nStrings.chartAriaRoleDescription\": never;\n \"i18nStrings.xAxisAriaRoleDescription\": never;\n \"i18nStrings.yAxisAriaRoleDescription\": never;\n }\n \"alert\": {\n \"dismissAriaLabel\": never;\n }\n \"annotation-context\": {\n \"i18nStrings.nextButtonText\": never;\n \"i18nStrings.previousButtonText\": never;\n \"i18nStrings.finishButtonText\": never;\n \"i18nStrings.labelDismissAnnotation\": never;\n \"i18nStrings.stepCounterText\": {\n \"stepNumber\": string | number;\n \"totalStepCount\": string | number;\n }\n \"i18nStrings.taskTitle\": {\n \"taskNumber\": string | number;\n \"taskTitle\": string | number;\n }\n \"i18nStrings.labelHotspot\": {\n \"openState\": string;\n \"stepNumber\": string | number;\n \"totalStepCount\": string | number;\n }\n }\n \"app-layout\": {\n \"ariaLabels.drawers\": never;\n \"ariaLabels.drawersOverflow\": never;\n \"ariaLabels.drawersOverflowWithBadge\": never;\n \"ariaLabels.navigation\": never;\n \"ariaLabels.navigationClose\": never;\n \"ariaLabels.navigationToggle\": never;\n \"ariaLabels.notifications\": never;\n \"ariaLabels.tools\": never;\n \"ariaLabels.toolsClose\": never;\n \"ariaLabels.toolsToggle\": never;\n }\n \"area-chart\": {\n \"i18nStrings.detailTotalLabel\": never;\n }\n \"attribute-editor\": {\n \"removeButtonText\": never;\n }\n \"autosuggest\": {\n \"errorIconAriaLabel\": never;\n \"selectedAriaLabel\": never;\n \"enteredTextLabel\": {\n \"value\": string | number;\n }\n \"recoveryText\": never;\n }\n \"breadcrumb-group\": {\n \"expandAriaLabel\": never;\n }\n \"calendar\": {\n \"nextMonthAriaLabel\": never;\n \"previousMonthAriaLabel\": never;\n \"todayAriaLabel\": never;\n \"i18nStrings.nextYearAriaLabel\": never;\n \"i18nStrings.previousYearAriaLabel\": never;\n \"i18nStrings.currentMonthAriaLabel\": never;\n }\n \"cards\": {\n \"ariaLabels.selectionGroupLabel\": never;\n }\n \"code-editor\": {\n \"i18nStrings.loadingState\": never;\n \"i18nStrings.errorState\": never;\n \"i18nStrings.errorStateRecovery\": never;\n \"i18nStrings.editorGroupAriaLabel\": never;\n \"i18nStrings.statusBarGroupAriaLabel\": never;\n \"i18nStrings.cursorPosition\": {\n \"row\": string | number;\n \"column\": string | number;\n }\n \"i18nStrings.errorsTab\": never;\n \"i18nStrings.warningsTab\": never;\n \"i18nStrings.preferencesButtonAriaLabel\": never;\n \"i18nStrings.paneCloseButtonAriaLabel\": never;\n \"i18nStrings.preferencesModalHeader\": never;\n \"i18nStrings.preferencesModalCancel\": never;\n \"i18nStrings.preferencesModalConfirm\": never;\n \"i18nStrings.preferencesModalWrapLines\": never;\n \"i18nStrings.preferencesModalTheme\": never;\n \"i18nStrings.preferencesModalLightThemes\": never;\n \"i18nStrings.preferencesModalDarkThemes\": never;\n \"i18nStrings.cursorPositionAriaLabel\": {\n \"row\": string | number;\n }\n }\n \"collection-preferences\": {\n \"title\": never;\n \"confirmLabel\": never;\n \"cancelLabel\": never;\n \"pageSizePreference.title\": never;\n \"wrapLinesPreference.label\": never;\n \"wrapLinesPreference.description\": never;\n \"stripedRowsPreference.label\": never;\n \"stripedRowsPreference.description\": never;\n \"contentDensityPreference.label\": never;\n \"contentDensityPreference.description\": never;\n \"stickyColumnsPreference.firstColumns.title\": never;\n \"stickyColumnsPreference.firstColumns.description\": never;\n \"stickyColumnsPreference.firstColumns.options[0].label\": never;\n \"stickyColumnsPreference.firstColumns.options[1].label\": never;\n \"stickyColumnsPreference.firstColumns.options[2].label\": never;\n \"stickyColumnsPreference.lastColumns.title\": never;\n \"stickyColumnsPreference.lastColumns.description\": never;\n \"stickyColumnsPreference.lastColumns.options[0].label\": never;\n \"stickyColumnsPreference.lastColumns.options[1].label\": never;\n \"contentDisplayPreference.title\": never;\n \"contentDisplayPreference.description\": never;\n \"contentDisplayPreference.dragHandleAriaLabel\": never;\n \"contentDisplayPreference.dragHandleAriaDescription\": never;\n \"contentDisplayPreference.liveAnnouncementDndStarted\": {\n \"position\": string | number;\n \"total\": string | number;\n }\n \"contentDisplayPreference.liveAnnouncementDndDiscarded\": never;\n \"contentDisplayPreference.liveAnnouncementDndItemReordered\": {\n \"isInitialPosition\": string;\n \"currentPosition\": string | number;\n \"total\": string | number;\n }\n \"contentDisplayPreference.liveAnnouncementDndItemCommitted\": {\n \"isInitialPosition\": string;\n \"initialPosition\": string | number;\n \"total\": string | number;\n \"finalPosition\": string | number;\n }\n }\n \"copy-to-clipboard\": {\n \"i18nStrings.copyButtonText\": never;\n }\n \"date-range-picker\": {\n \"i18nStrings.relativeModeTitle\": never;\n \"i18nStrings.absoluteModeTitle\": never;\n \"i18nStrings.relativeRangeSelectionHeading\": never;\n \"i18nStrings.cancelButtonLabel\": never;\n \"i18nStrings.clearButtonLabel\": never;\n \"i18nStrings.applyButtonLabel\": never;\n \"i18nStrings.customRelativeRangeOptionLabel\": never;\n \"i18nStrings.customRelativeRangeOptionDescription\": never;\n \"i18nStrings.customRelativeRangeUnitLabel\": never;\n \"i18nStrings.customRelativeRangeDurationLabel\": never;\n \"i18nStrings.customRelativeRangeDurationPlaceholder\": never;\n \"i18nStrings.startDateLabel\": never;\n \"i18nStrings.startTimeLabel\": never;\n \"i18nStrings.endDateLabel\": never;\n \"i18nStrings.endTimeLabel\": never;\n \"i18nStrings.dateTimeConstraintText\": never;\n \"i18nStrings.errorIconAriaLabel\": never;\n \"i18nStrings.renderSelectedAbsoluteRangeAriaLive\": {\n \"startDate\": string | number;\n \"endDate\": string | number;\n }\n \"i18nStrings.formatRelativeRange\": {\n \"unit\": string;\n \"amount\": number;\n }\n \"i18nStrings.formatUnit\": {\n \"unit\": string;\n \"amount\": number;\n }\n }\n \"drawer\": {\n \"i18nStrings.loadingText\": never;\n }\n \"flashbar\": {\n \"i18nStrings.ariaLabel\": never;\n \"i18nStrings.errorIconAriaLabel\": never;\n \"i18nStrings.inProgressIconAriaLabel\": never;\n \"i18nStrings.infoIconAriaLabel\": never;\n \"i18nStrings.notificationBarAriaLabel\": never;\n \"i18nStrings.notificationBarText\": never;\n \"i18nStrings.successIconAriaLabel\": never;\n \"i18nStrings.warningIconAriaLabel\": never;\n }\n \"form-field\": {\n \"i18nStrings.errorIconAriaLabel\": never;\n \"i18nStrings.warningIconAriaLabel\": never;\n }\n \"form\": {\n \"errorIconAriaLabel\": never;\n }\n \"help-panel\": {\n \"loadingText\": never;\n }\n \"input\": {\n \"clearAriaLabel\": never;\n }\n \"link\": {\n \"externalIconAriaLabel\": never;\n }\n \"modal\": {\n \"closeAriaLabel\": never;\n }\n \"multiselect\": {\n \"deselectAriaLabel\": {\n \"option__label\": string | number;\n }\n }\n \"pagination\": {\n \"ariaLabels.nextPageLabel\": never;\n \"ariaLabels.pageLabel\": {\n \"pageNumber\": string | number;\n }\n \"ariaLabels.previousPageLabel\": never;\n }\n \"pie-chart\": {\n \"i18nStrings.detailsValue\": never;\n \"i18nStrings.detailsPercentage\": never;\n \"i18nStrings.chartAriaRoleDescription\": never;\n \"i18nStrings.segmentAriaRoleDescription\": never;\n }\n \"popover\": {\n \"dismissAriaLabel\": never;\n }\n \"property-filter\": {\n \"i18nStrings.allPropertiesLabel\": never;\n \"i18nStrings.applyActionText\": never;\n \"i18nStrings.cancelActionText\": never;\n \"i18nStrings.clearFiltersText\": never;\n \"i18nStrings.editTokenHeader\": never;\n \"i18nStrings.groupPropertiesText\": never;\n \"i18nStrings.groupValuesText\": never;\n \"i18nStrings.operationAndText\": never;\n \"i18nStrings.operationOrText\": never;\n \"i18nStrings.operatorContainsText\": never;\n \"i18nStrings.operatorDoesNotContainText\": never;\n \"i18nStrings.operatorDoesNotEqualText\": never;\n \"i18nStrings.operatorEqualsText\": never;\n \"i18nStrings.operatorGreaterOrEqualText\": never;\n \"i18nStrings.operatorGreaterText\": never;\n \"i18nStrings.operatorLessOrEqualText\": never;\n \"i18nStrings.operatorLessText\": never;\n \"i18nStrings.operatorStartsWithText\": never;\n \"i18nStrings.operatorDoesNotStartWithText\": never;\n \"i18nStrings.operatorText\": never;\n \"i18nStrings.operatorsText\": never;\n \"i18nStrings.propertyText\": never;\n \"i18nStrings.tokenLimitShowFewer\": never;\n \"i18nStrings.tokenLimitShowMore\": never;\n \"i18nStrings.valueText\": never;\n \"i18nStrings.removeTokenButtonAriaLabel\": {\n \"token__operator\": string;\n \"token__propertyKey\": string | number;\n \"token__value\": string | number;\n }\n }\n \"s3-resource-selector\": {\n \"i18nStrings.inContextSelectPlaceholder\": never;\n \"i18nStrings.inContextBrowseButton\": never;\n \"i18nStrings.inContextViewButton\": never;\n \"i18nStrings.inContextViewButtonAriaLabel\": never;\n \"i18nStrings.inContextLoadingText\": never;\n \"i18nStrings.inContextUriLabel\": never;\n \"i18nStrings.inContextVersionSelectLabel\": never;\n \"i18nStrings.modalTitle\": never;\n \"i18nStrings.modalCancelButton\": never;\n \"i18nStrings.modalSubmitButton\": never;\n \"i18nStrings.modalBreadcrumbRootItem\": never;\n \"i18nStrings.modalLastUpdatedText\": never;\n \"i18nStrings.selectionBuckets\": never;\n \"i18nStrings.selectionObjects\": never;\n \"i18nStrings.selectionVersions\": never;\n \"i18nStrings.selectionBucketsSearchPlaceholder\": never;\n \"i18nStrings.selectionObjectsSearchPlaceholder\": never;\n \"i18nStrings.selectionVersionsSearchPlaceholder\": never;\n \"i18nStrings.selectionBucketsLoading\": never;\n \"i18nStrings.selectionBucketsNoItems\": never;\n \"i18nStrings.selectionObjectsLoading\": never;\n \"i18nStrings.selectionObjectsNoItems\": never;\n \"i18nStrings.selectionVersionsLoading\": never;\n \"i18nStrings.selectionVersionsNoItems\": never;\n \"i18nStrings.filteringNoMatches\": never;\n \"i18nStrings.filteringCantFindMatch\": never;\n \"i18nStrings.clearFilterButtonText\": never;\n \"i18nStrings.columnBucketID\": never;\n \"i18nStrings.columnBucketName\": never;\n \"i18nStrings.columnBucketCreationDate\": never;\n \"i18nStrings.columnBucketRegion\": never;\n \"i18nStrings.columnObjectKey\": never;\n \"i18nStrings.columnObjectLastModified\": never;\n \"i18nStrings.columnObjectSize\": never;\n \"i18nStrings.columnVersionID\": never;\n \"i18nStrings.columnVersionLastModified\": never;\n \"i18nStrings.columnVersionSize\": never;\n \"i18nStrings.validationPathMustBegin\": never;\n \"i18nStrings.validationBucketLowerCase\": never;\n \"i18nStrings.validationBucketMustNotContain\": never;\n \"i18nStrings.validationBucketLength\": never;\n \"i18nStrings.validationBucketMustComplyDns\": never;\n \"i18nStrings.labelSortedDescending\": {\n \"columnName\": string | number;\n }\n \"i18nStrings.labelSortedAscending\": {\n \"columnName\": string | number;\n }\n \"i18nStrings.labelNotSorted\": {\n \"columnName\": string | number;\n }\n \"i18nStrings.labelsBucketsSelection.selectionGroupLabel\": never;\n \"i18nStrings.labelsBucketsSelection.itemSelectionLabel\": {\n \"item__Name\": string | number;\n }\n \"i18nStrings.labelsObjectsSelection.selectionGroupLabel\": never;\n \"i18nStrings.labelsObjectsSelection.itemSelectionLabel\": {\n \"item__Key\": string | number;\n }\n \"i18nStrings.labelsVersionsSelection.selectionGroupLabel\": never;\n \"i18nStrings.labelsVersionsSelection.itemSelectionLabel\": {\n \"item__VersionId\": string | number;\n }\n \"i18nStrings.labelFiltering\": {\n \"itemsType\": string | number;\n }\n \"i18nStrings.labelRefresh\": never;\n \"i18nStrings.labelBreadcrumbs\": never;\n \"i18nStrings.filteringCounterText\": {\n \"count\": number;\n }\n }\n \"select\": {\n \"errorIconAriaLabel\": never;\n \"selectedAriaLabel\": never;\n \"recoveryText\": never;\n }\n \"slider\": {\n \"i18nStrings.valueTextRange\": {\n \"value\": string | number;\n \"previousValue\": string | number;\n \"nextValue\": string | number;\n }\n }\n \"split-panel\": {\n \"i18nStrings.closeButtonAriaLabel\": never;\n \"i18nStrings.openButtonAriaLabel\": never;\n \"i18nStrings.preferencesTitle\": never;\n \"i18nStrings.preferencesPositionLabel\": never;\n \"i18nStrings.preferencesPositionDescription\": never;\n \"i18nStrings.preferencesPositionSide\": never;\n \"i18nStrings.preferencesPositionBottom\": never;\n \"i18nStrings.preferencesConfirm\": never;\n \"i18nStrings.preferencesCancel\": never;\n \"i18nStrings.resizeHandleAriaLabel\": never;\n }\n \"table\": {\n \"ariaLabels.resizerRoleDescription\": never;\n \"ariaLabels.submittingEditText\": never;\n \"ariaLabels.successfulEditLabel\": never;\n \"ariaLabels.expandButtonLabel\": never;\n \"ariaLabels.collapseButtonLabel\": never;\n \"columnDefinitions.editConfig.errorIconAriaLabel\": never;\n \"columnDefinitions.editConfig.editIconAriaLabel\": never;\n }\n \"tabs\": {\n \"i18nStrings.scrollLeftAriaLabel\": never;\n \"i18nStrings.scrollRightAriaLabel\": never;\n \"i18nStrings.tabsWithActionsAriaRoleDescription\": never;\n }\n \"tag-editor\": {\n \"i18nStrings.keyPlaceholder\": never;\n \"i18nStrings.valuePlaceholder\": never;\n \"i18nStrings.addButton\": never;\n \"i18nStrings.removeButton\": never;\n \"i18nStrings.removeButtonAriaLabel\": {\n \"tag__key\": string | number;\n }\n \"i18nStrings.undoButton\": never;\n \"i18nStrings.undoPrompt\": never;\n \"i18nStrings.loading\": never;\n \"i18nStrings.keyHeader\": never;\n \"i18nStrings.valueHeader\": never;\n \"i18nStrings.optional\": never;\n \"i18nStrings.keySuggestion\": never;\n \"i18nStrings.valueSuggestion\": never;\n \"i18nStrings.emptyTags\": never;\n \"i18nStrings.tooManyKeysSuggestion\": never;\n \"i18nStrings.tooManyValuesSuggestion\": never;\n \"i18nStrings.keysSuggestionLoading\": never;\n \"i18nStrings.keysSuggestionError\": never;\n \"i18nStrings.valuesSuggestionLoading\": never;\n \"i18nStrings.valuesSuggestionError\": never;\n \"i18nStrings.emptyKeyError\": never;\n \"i18nStrings.maxKeyCharLengthError\": never;\n \"i18nStrings.maxValueCharLengthError\": never;\n \"i18nStrings.duplicateKeyError\": never;\n \"i18nStrings.invalidKeyError\": never;\n \"i18nStrings.invalidValueError\": never;\n \"i18nStrings.awsPrefixError\": never;\n \"i18nStrings.tagLimitReached\": {\n \"tagLimit\": number;\n }\n \"i18nStrings.tagLimitExceeded\": {\n \"tagLimit\": number;\n }\n \"i18nStrings.tagLimit\": {\n \"tagLimitAvailable\": string;\n \"availableTags\": number;\n \"tagLimit\": string | number;\n }\n }\n \"token-group\": {\n \"i18nStrings.limitShowFewer\": never;\n \"i18nStrings.limitShowMore\": never;\n }\n \"top-navigation\": {\n \"i18nStrings.searchIconAriaLabel\": never;\n \"i18nStrings.searchDismissIconAriaLabel\": never;\n \"i18nStrings.overflowMenuTriggerText\": never;\n \"i18nStrings.overflowMenuDismissIconAriaLabel\": never;\n \"i18nStrings.overflowMenuBackIconAriaLabel\": never;\n \"i18nStrings.overflowMenuTitleText\": never;\n }\n \"tutorial-panel\": {\n \"i18nStrings.loadingText\": never;\n \"i18nStrings.tutorialListTitle\": never;\n \"i18nStrings.tutorialListDownloadLinkText\": never;\n \"i18nStrings.labelTutorialListDownloadLink\": never;\n \"i18nStrings.tutorialCompletedText\": never;\n \"i18nStrings.learnMoreLinkText\": never;\n \"i18nStrings.startTutorialButtonText\": never;\n \"i18nStrings.restartTutorialButtonText\": never;\n \"i18nStrings.completionScreenTitle\": never;\n \"i18nStrings.feedbackLinkText\": never;\n \"i18nStrings.dismissTutorialButtonText\": never;\n \"i18nStrings.taskTitle\": {\n \"taskNumber\": string | number;\n \"taskTitle\": string | number;\n }\n \"i18nStrings.stepTitle\": {\n \"stepNumber\": string | number;\n \"stepTitle\": string | number;\n }\n \"i18nStrings.labelExitTutorial\": never;\n \"i18nStrings.labelTotalSteps\": {\n \"totalStepCount\": string | number;\n }\n \"i18nStrings.labelsTaskStatus.pending\": never;\n \"i18nStrings.labelsTaskStatus.in-progress\": never;\n \"i18nStrings.labelsTaskStatus.success\": never;\n }\n \"wizard\": {\n \"i18nStrings.stepNumberLabel\": {\n \"stepNumber\": string | number;\n }\n \"i18nStrings.collapsedStepsLabel\": {\n \"stepNumber\": string | number;\n \"stepsCount\": string | number;\n }\n \"i18nStrings.skipToButtonLabel\": {\n \"task__title\": string | number;\n }\n \"i18nStrings.navigationAriaLabel\": never;\n \"i18nStrings.cancelButton\": never;\n \"i18nStrings.previousButton\": never;\n \"i18nStrings.nextButton\": never;\n \"i18nStrings.optional\": never;\n \"i18nStrings.nextButtonLoadingAnnouncement\": never;\n \"i18nStrings.submitButtonLoadingAnnouncement\": never;\n }\n}"]}
1
+ {"version":3,"file":"messages-types.js","sourceRoot":"","sources":["../../../src/i18n/messages-types.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/* eslint-disable prettier/prettier */\n\n/** Auto-generated argument types based on \"en\" i18n strings. Do not edit manually. */\nexport interface I18nFormatArgTypes {\n \"[charts]\": {\n \"loadingText\": never;\n \"errorText\": never;\n \"recoveryText\": never;\n \"i18nStrings.filterLabel\": never;\n \"i18nStrings.filterPlaceholder\": never;\n \"i18nStrings.legendAriaLabel\": never;\n \"i18nStrings.chartAriaRoleDescription\": never;\n \"i18nStrings.xAxisAriaRoleDescription\": never;\n \"i18nStrings.yAxisAriaRoleDescription\": never;\n }\n \"alert\": {\n \"dismissAriaLabel\": never;\n }\n \"annotation-context\": {\n \"i18nStrings.nextButtonText\": never;\n \"i18nStrings.previousButtonText\": never;\n \"i18nStrings.finishButtonText\": never;\n \"i18nStrings.labelDismissAnnotation\": never;\n \"i18nStrings.stepCounterText\": {\n \"stepNumber\": string | number;\n \"totalStepCount\": string | number;\n }\n \"i18nStrings.taskTitle\": {\n \"taskNumber\": string | number;\n \"taskTitle\": string | number;\n }\n \"i18nStrings.labelHotspot\": {\n \"openState\": string;\n \"stepNumber\": string | number;\n \"totalStepCount\": string | number;\n }\n }\n \"app-layout\": {\n \"ariaLabels.drawers\": never;\n \"ariaLabels.drawersOverflow\": never;\n \"ariaLabels.drawersOverflowWithBadge\": never;\n \"ariaLabels.navigation\": never;\n \"ariaLabels.navigationClose\": never;\n \"ariaLabels.navigationToggle\": never;\n \"ariaLabels.notifications\": never;\n \"ariaLabels.tools\": never;\n \"ariaLabels.toolsClose\": never;\n \"ariaLabels.toolsToggle\": never;\n }\n \"area-chart\": {\n \"i18nStrings.detailTotalLabel\": never;\n }\n \"attribute-editor\": {\n \"removeButtonText\": never;\n }\n \"autosuggest\": {\n \"errorIconAriaLabel\": never;\n \"selectedAriaLabel\": never;\n \"enteredTextLabel\": {\n \"value\": string | number;\n }\n \"recoveryText\": never;\n }\n \"breadcrumb-group\": {\n \"expandAriaLabel\": never;\n }\n \"calendar\": {\n \"nextMonthAriaLabel\": never;\n \"previousMonthAriaLabel\": never;\n \"todayAriaLabel\": never;\n \"i18nStrings.nextYearAriaLabel\": never;\n \"i18nStrings.previousYearAriaLabel\": never;\n \"i18nStrings.currentMonthAriaLabel\": never;\n }\n \"cards\": {\n \"ariaLabels.selectionGroupLabel\": never;\n }\n \"code-editor\": {\n \"i18nStrings.loadingState\": never;\n \"i18nStrings.errorState\": never;\n \"i18nStrings.errorStateRecovery\": never;\n \"i18nStrings.editorGroupAriaLabel\": never;\n \"i18nStrings.statusBarGroupAriaLabel\": never;\n \"i18nStrings.cursorPosition\": {\n \"row\": string | number;\n \"column\": string | number;\n }\n \"i18nStrings.errorsTab\": never;\n \"i18nStrings.warningsTab\": never;\n \"i18nStrings.preferencesButtonAriaLabel\": never;\n \"i18nStrings.paneCloseButtonAriaLabel\": never;\n \"i18nStrings.preferencesModalHeader\": never;\n \"i18nStrings.preferencesModalCancel\": never;\n \"i18nStrings.preferencesModalConfirm\": never;\n \"i18nStrings.preferencesModalWrapLines\": never;\n \"i18nStrings.preferencesModalTheme\": never;\n \"i18nStrings.preferencesModalLightThemes\": never;\n \"i18nStrings.preferencesModalDarkThemes\": never;\n \"i18nStrings.cursorPositionAriaLabel\": {\n \"row\": string | number;\n }\n }\n \"collection-preferences\": {\n \"title\": never;\n \"confirmLabel\": never;\n \"cancelLabel\": never;\n \"pageSizePreference.title\": never;\n \"wrapLinesPreference.label\": never;\n \"wrapLinesPreference.description\": never;\n \"stripedRowsPreference.label\": never;\n \"stripedRowsPreference.description\": never;\n \"contentDensityPreference.label\": never;\n \"contentDensityPreference.description\": never;\n \"stickyColumnsPreference.firstColumns.title\": never;\n \"stickyColumnsPreference.firstColumns.description\": never;\n \"stickyColumnsPreference.firstColumns.options[0].label\": never;\n \"stickyColumnsPreference.firstColumns.options[1].label\": never;\n \"stickyColumnsPreference.firstColumns.options[2].label\": never;\n \"stickyColumnsPreference.lastColumns.title\": never;\n \"stickyColumnsPreference.lastColumns.description\": never;\n \"stickyColumnsPreference.lastColumns.options[0].label\": never;\n \"stickyColumnsPreference.lastColumns.options[1].label\": never;\n \"contentDisplayPreference.title\": never;\n \"contentDisplayPreference.description\": never;\n \"contentDisplayPreference.dragHandleAriaLabel\": never;\n \"contentDisplayPreference.dragHandleAriaDescription\": never;\n \"contentDisplayPreference.liveAnnouncementDndStarted\": {\n \"position\": string | number;\n \"total\": string | number;\n }\n \"contentDisplayPreference.liveAnnouncementDndDiscarded\": never;\n \"contentDisplayPreference.liveAnnouncementDndItemReordered\": {\n \"isInitialPosition\": string;\n \"currentPosition\": string | number;\n \"total\": string | number;\n }\n \"contentDisplayPreference.liveAnnouncementDndItemCommitted\": {\n \"isInitialPosition\": string;\n \"initialPosition\": string | number;\n \"total\": string | number;\n \"finalPosition\": string | number;\n }\n }\n \"copy-to-clipboard\": {\n \"i18nStrings.copyButtonText\": never;\n }\n \"date-range-picker\": {\n \"i18nStrings.relativeModeTitle\": never;\n \"i18nStrings.absoluteModeTitle\": never;\n \"i18nStrings.relativeRangeSelectionHeading\": never;\n \"i18nStrings.cancelButtonLabel\": never;\n \"i18nStrings.clearButtonLabel\": never;\n \"i18nStrings.applyButtonLabel\": never;\n \"i18nStrings.customRelativeRangeOptionLabel\": never;\n \"i18nStrings.customRelativeRangeOptionDescription\": never;\n \"i18nStrings.customRelativeRangeUnitLabel\": never;\n \"i18nStrings.customRelativeRangeDurationLabel\": never;\n \"i18nStrings.customRelativeRangeDurationPlaceholder\": never;\n \"i18nStrings.startDateLabel\": never;\n \"i18nStrings.startTimeLabel\": never;\n \"i18nStrings.endDateLabel\": never;\n \"i18nStrings.endTimeLabel\": never;\n \"i18nStrings.dateTimeConstraintText\": never;\n \"i18nStrings.errorIconAriaLabel\": never;\n \"i18nStrings.renderSelectedAbsoluteRangeAriaLive\": {\n \"startDate\": string | number;\n \"endDate\": string | number;\n }\n \"i18nStrings.formatRelativeRange\": {\n \"unit\": string;\n \"amount\": number;\n }\n \"i18nStrings.formatUnit\": {\n \"unit\": string;\n \"amount\": number;\n }\n }\n \"drawer\": {\n \"i18nStrings.loadingText\": never;\n }\n \"flashbar\": {\n \"i18nStrings.ariaLabel\": never;\n \"i18nStrings.errorIconAriaLabel\": never;\n \"i18nStrings.inProgressIconAriaLabel\": never;\n \"i18nStrings.infoIconAriaLabel\": never;\n \"i18nStrings.notificationBarAriaLabel\": never;\n \"i18nStrings.notificationBarText\": never;\n \"i18nStrings.successIconAriaLabel\": never;\n \"i18nStrings.warningIconAriaLabel\": never;\n }\n \"form-field\": {\n \"i18nStrings.errorIconAriaLabel\": never;\n \"i18nStrings.warningIconAriaLabel\": never;\n }\n \"form\": {\n \"errorIconAriaLabel\": never;\n }\n \"help-panel\": {\n \"loadingText\": never;\n }\n \"input\": {\n \"clearAriaLabel\": never;\n }\n \"link\": {\n \"externalIconAriaLabel\": never;\n }\n \"modal\": {\n \"closeAriaLabel\": never;\n }\n \"multiselect\": {\n \"deselectAriaLabel\": {\n \"option__label\": string | number;\n }\n }\n \"pagination\": {\n \"ariaLabels.nextPageLabel\": never;\n \"ariaLabels.pageLabel\": {\n \"pageNumber\": string | number;\n }\n \"ariaLabels.previousPageLabel\": never;\n }\n \"pie-chart\": {\n \"i18nStrings.detailsValue\": never;\n \"i18nStrings.detailsPercentage\": never;\n \"i18nStrings.chartAriaRoleDescription\": never;\n \"i18nStrings.segmentAriaRoleDescription\": never;\n }\n \"popover\": {\n \"dismissAriaLabel\": never;\n }\n \"property-filter\": {\n \"i18nStrings.allPropertiesLabel\": never;\n \"i18nStrings.applyActionText\": never;\n \"i18nStrings.cancelActionText\": never;\n \"i18nStrings.clearFiltersText\": never;\n \"i18nStrings.editTokenHeader\": never;\n \"i18nStrings.groupPropertiesText\": never;\n \"i18nStrings.groupValuesText\": never;\n \"i18nStrings.operationAndText\": never;\n \"i18nStrings.operationOrText\": never;\n \"i18nStrings.operatorContainsText\": never;\n \"i18nStrings.operatorDoesNotContainText\": never;\n \"i18nStrings.operatorDoesNotEqualText\": never;\n \"i18nStrings.operatorEqualsText\": never;\n \"i18nStrings.operatorGreaterOrEqualText\": never;\n \"i18nStrings.operatorGreaterText\": never;\n \"i18nStrings.operatorLessOrEqualText\": never;\n \"i18nStrings.operatorLessText\": never;\n \"i18nStrings.operatorStartsWithText\": never;\n \"i18nStrings.operatorDoesNotStartWithText\": never;\n \"i18nStrings.operatorText\": never;\n \"i18nStrings.operatorsText\": never;\n \"i18nStrings.propertyText\": never;\n \"i18nStrings.tokenLimitShowFewer\": never;\n \"i18nStrings.tokenLimitShowMore\": never;\n \"i18nStrings.valueText\": never;\n \"i18nStrings.removeTokenButtonAriaLabel\": {\n \"token__operator\": string;\n \"token__propertyLabel\": string | number;\n \"token__value\": string | number;\n }\n }\n \"s3-resource-selector\": {\n \"i18nStrings.inContextSelectPlaceholder\": never;\n \"i18nStrings.inContextBrowseButton\": never;\n \"i18nStrings.inContextViewButton\": never;\n \"i18nStrings.inContextViewButtonAriaLabel\": never;\n \"i18nStrings.inContextLoadingText\": never;\n \"i18nStrings.inContextUriLabel\": never;\n \"i18nStrings.inContextVersionSelectLabel\": never;\n \"i18nStrings.modalTitle\": never;\n \"i18nStrings.modalCancelButton\": never;\n \"i18nStrings.modalSubmitButton\": never;\n \"i18nStrings.modalBreadcrumbRootItem\": never;\n \"i18nStrings.modalLastUpdatedText\": never;\n \"i18nStrings.selectionBuckets\": never;\n \"i18nStrings.selectionObjects\": never;\n \"i18nStrings.selectionVersions\": never;\n \"i18nStrings.selectionBucketsSearchPlaceholder\": never;\n \"i18nStrings.selectionObjectsSearchPlaceholder\": never;\n \"i18nStrings.selectionVersionsSearchPlaceholder\": never;\n \"i18nStrings.selectionBucketsLoading\": never;\n \"i18nStrings.selectionBucketsNoItems\": never;\n \"i18nStrings.selectionObjectsLoading\": never;\n \"i18nStrings.selectionObjectsNoItems\": never;\n \"i18nStrings.selectionVersionsLoading\": never;\n \"i18nStrings.selectionVersionsNoItems\": never;\n \"i18nStrings.filteringNoMatches\": never;\n \"i18nStrings.filteringCantFindMatch\": never;\n \"i18nStrings.clearFilterButtonText\": never;\n \"i18nStrings.columnBucketID\": never;\n \"i18nStrings.columnBucketName\": never;\n \"i18nStrings.columnBucketCreationDate\": never;\n \"i18nStrings.columnBucketRegion\": never;\n \"i18nStrings.columnObjectKey\": never;\n \"i18nStrings.columnObjectLastModified\": never;\n \"i18nStrings.columnObjectSize\": never;\n \"i18nStrings.columnVersionID\": never;\n \"i18nStrings.columnVersionLastModified\": never;\n \"i18nStrings.columnVersionSize\": never;\n \"i18nStrings.validationPathMustBegin\": never;\n \"i18nStrings.validationBucketLowerCase\": never;\n \"i18nStrings.validationBucketMustNotContain\": never;\n \"i18nStrings.validationBucketLength\": never;\n \"i18nStrings.validationBucketMustComplyDns\": never;\n \"i18nStrings.labelSortedDescending\": {\n \"columnName\": string | number;\n }\n \"i18nStrings.labelSortedAscending\": {\n \"columnName\": string | number;\n }\n \"i18nStrings.labelNotSorted\": {\n \"columnName\": string | number;\n }\n \"i18nStrings.labelsBucketsSelection.selectionGroupLabel\": never;\n \"i18nStrings.labelsBucketsSelection.itemSelectionLabel\": {\n \"item__Name\": string | number;\n }\n \"i18nStrings.labelsObjectsSelection.selectionGroupLabel\": never;\n \"i18nStrings.labelsObjectsSelection.itemSelectionLabel\": {\n \"item__Key\": string | number;\n }\n \"i18nStrings.labelsVersionsSelection.selectionGroupLabel\": never;\n \"i18nStrings.labelsVersionsSelection.itemSelectionLabel\": {\n \"item__VersionId\": string | number;\n }\n \"i18nStrings.labelFiltering\": {\n \"itemsType\": string | number;\n }\n \"i18nStrings.labelRefresh\": never;\n \"i18nStrings.labelBreadcrumbs\": never;\n \"i18nStrings.filteringCounterText\": {\n \"count\": number;\n }\n }\n \"select\": {\n \"errorIconAriaLabel\": never;\n \"selectedAriaLabel\": never;\n \"recoveryText\": never;\n }\n \"slider\": {\n \"i18nStrings.valueTextRange\": {\n \"value\": string | number;\n \"previousValue\": string | number;\n \"nextValue\": string | number;\n }\n }\n \"split-panel\": {\n \"i18nStrings.closeButtonAriaLabel\": never;\n \"i18nStrings.openButtonAriaLabel\": never;\n \"i18nStrings.preferencesTitle\": never;\n \"i18nStrings.preferencesPositionLabel\": never;\n \"i18nStrings.preferencesPositionDescription\": never;\n \"i18nStrings.preferencesPositionSide\": never;\n \"i18nStrings.preferencesPositionBottom\": never;\n \"i18nStrings.preferencesConfirm\": never;\n \"i18nStrings.preferencesCancel\": never;\n \"i18nStrings.resizeHandleAriaLabel\": never;\n }\n \"table\": {\n \"ariaLabels.resizerRoleDescription\": never;\n \"ariaLabels.submittingEditText\": never;\n \"ariaLabels.successfulEditLabel\": never;\n \"ariaLabels.expandButtonLabel\": never;\n \"ariaLabels.collapseButtonLabel\": never;\n \"columnDefinitions.editConfig.errorIconAriaLabel\": never;\n \"columnDefinitions.editConfig.editIconAriaLabel\": never;\n }\n \"tabs\": {\n \"i18nStrings.scrollLeftAriaLabel\": never;\n \"i18nStrings.scrollRightAriaLabel\": never;\n \"i18nStrings.tabsWithActionsAriaRoleDescription\": never;\n }\n \"tag-editor\": {\n \"i18nStrings.keyPlaceholder\": never;\n \"i18nStrings.valuePlaceholder\": never;\n \"i18nStrings.addButton\": never;\n \"i18nStrings.removeButton\": never;\n \"i18nStrings.removeButtonAriaLabel\": {\n \"tag__key\": string | number;\n }\n \"i18nStrings.undoButton\": never;\n \"i18nStrings.undoPrompt\": never;\n \"i18nStrings.loading\": never;\n \"i18nStrings.keyHeader\": never;\n \"i18nStrings.valueHeader\": never;\n \"i18nStrings.optional\": never;\n \"i18nStrings.keySuggestion\": never;\n \"i18nStrings.valueSuggestion\": never;\n \"i18nStrings.emptyTags\": never;\n \"i18nStrings.tooManyKeysSuggestion\": never;\n \"i18nStrings.tooManyValuesSuggestion\": never;\n \"i18nStrings.keysSuggestionLoading\": never;\n \"i18nStrings.keysSuggestionError\": never;\n \"i18nStrings.valuesSuggestionLoading\": never;\n \"i18nStrings.valuesSuggestionError\": never;\n \"i18nStrings.emptyKeyError\": never;\n \"i18nStrings.maxKeyCharLengthError\": never;\n \"i18nStrings.maxValueCharLengthError\": never;\n \"i18nStrings.duplicateKeyError\": never;\n \"i18nStrings.invalidKeyError\": never;\n \"i18nStrings.invalidValueError\": never;\n \"i18nStrings.awsPrefixError\": never;\n \"i18nStrings.tagLimitReached\": {\n \"tagLimit\": number;\n }\n \"i18nStrings.tagLimitExceeded\": {\n \"tagLimit\": number;\n }\n \"i18nStrings.tagLimit\": {\n \"tagLimitAvailable\": string;\n \"availableTags\": number;\n \"tagLimit\": string | number;\n }\n }\n \"token-group\": {\n \"i18nStrings.limitShowFewer\": never;\n \"i18nStrings.limitShowMore\": never;\n }\n \"top-navigation\": {\n \"i18nStrings.searchIconAriaLabel\": never;\n \"i18nStrings.searchDismissIconAriaLabel\": never;\n \"i18nStrings.overflowMenuTriggerText\": never;\n \"i18nStrings.overflowMenuDismissIconAriaLabel\": never;\n \"i18nStrings.overflowMenuBackIconAriaLabel\": never;\n \"i18nStrings.overflowMenuTitleText\": never;\n }\n \"tutorial-panel\": {\n \"i18nStrings.loadingText\": never;\n \"i18nStrings.tutorialListTitle\": never;\n \"i18nStrings.tutorialListDownloadLinkText\": never;\n \"i18nStrings.labelTutorialListDownloadLink\": never;\n \"i18nStrings.tutorialCompletedText\": never;\n \"i18nStrings.learnMoreLinkText\": never;\n \"i18nStrings.startTutorialButtonText\": never;\n \"i18nStrings.restartTutorialButtonText\": never;\n \"i18nStrings.completionScreenTitle\": never;\n \"i18nStrings.feedbackLinkText\": never;\n \"i18nStrings.dismissTutorialButtonText\": never;\n \"i18nStrings.taskTitle\": {\n \"taskNumber\": string | number;\n \"taskTitle\": string | number;\n }\n \"i18nStrings.stepTitle\": {\n \"stepNumber\": string | number;\n \"stepTitle\": string | number;\n }\n \"i18nStrings.labelExitTutorial\": never;\n \"i18nStrings.labelTotalSteps\": {\n \"totalStepCount\": string | number;\n }\n \"i18nStrings.labelsTaskStatus.pending\": never;\n \"i18nStrings.labelsTaskStatus.in-progress\": never;\n \"i18nStrings.labelsTaskStatus.success\": never;\n }\n \"wizard\": {\n \"i18nStrings.stepNumberLabel\": {\n \"stepNumber\": string | number;\n }\n \"i18nStrings.collapsedStepsLabel\": {\n \"stepNumber\": string | number;\n \"stepsCount\": string | number;\n }\n \"i18nStrings.skipToButtonLabel\": {\n \"task__title\": string | number;\n }\n \"i18nStrings.navigationAriaLabel\": never;\n \"i18nStrings.cancelButton\": never;\n \"i18nStrings.previousButton\": never;\n \"i18nStrings.nextButton\": never;\n \"i18nStrings.optional\": never;\n \"i18nStrings.nextButtonLoadingAnnouncement\": never;\n \"i18nStrings.submitButtonLoadingAnnouncement\": never;\n }\n}"]}
@@ -42,7 +42,7 @@ export declare const useFunnel: () => {
42
42
  funnelInteractionId: string | undefined;
43
43
  funnelIdentifier?: string | undefined;
44
44
  funnelErrorContext?: string | undefined;
45
- funnelFlowType?: "create" | "edit" | undefined;
45
+ funnelFlowType?: "create" | undefined;
46
46
  funnelType: import("../interfaces").FunnelType;
47
47
  funnelNameSelector: string;
48
48
  optionalStepNumbers: number[];
@@ -1,19 +1,20 @@
1
1
  export type FunnelType = 'single-page' | 'multi-page';
2
+ export type FlowType = 'create';
2
3
  export interface AnalyticsMetadata {
3
4
  instanceIdentifier?: string;
4
- flowType?: 'create' | 'edit';
5
+ flowType?: FlowType;
5
6
  errorContext?: string;
6
7
  }
7
8
  export interface BaseFunnelProps {
8
- funnelIdentifier?: AnalyticsMetadata['instanceIdentifier'];
9
+ funnelIdentifier?: string;
9
10
  funnelInteractionId: string;
10
11
  currentDocument?: Document;
11
12
  }
12
13
  export interface FunnelErrorProps extends BaseFunnelProps {
13
- funnelErrorContext?: AnalyticsMetadata['errorContext'];
14
+ funnelErrorContext?: string;
14
15
  }
15
16
  export interface FunnelStartProps extends Omit<BaseFunnelProps, 'funnelInteractionId'> {
16
- flowType?: AnalyticsMetadata['flowType'];
17
+ flowType?: FlowType;
17
18
  funnelNameSelector: string;
18
19
  totalFunnelSteps: number;
19
20
  optionalStepNumbers: number[];
@@ -36,7 +37,7 @@ export interface TableInteractionProps {
36
37
  export type TableInteractionMethod = (props: TableInteractionProps) => void;
37
38
  export type FunnelStartMethod = (props: FunnelStartProps) => string;
38
39
  export interface FunnelStepProps extends BaseFunnelProps {
39
- stepIdentifier?: AnalyticsMetadata['instanceIdentifier'];
40
+ stepIdentifier?: string;
40
41
  stepNumber: number;
41
42
  stepName?: string | undefined;
42
43
  stepNameSelector?: string;
@@ -50,27 +51,27 @@ export interface FunnelStepNavigationProps extends FunnelStepProps {
50
51
  totalSubSteps?: number;
51
52
  }
52
53
  export interface FunnelStepErrorProps extends FunnelStepProps {
53
- stepErrorContext?: AnalyticsMetadata['errorContext'];
54
+ stepErrorContext?: string;
54
55
  stepErrorSelector: string;
55
56
  }
56
57
  export interface FunnelSubStepProps extends FunnelStepProps {
57
- subStepIdentifier?: AnalyticsMetadata['instanceIdentifier'];
58
+ subStepIdentifier?: string;
58
59
  subStepSelector: string;
59
60
  subStepName?: string | undefined;
60
61
  subStepNameSelector: string;
61
62
  subStepNumber?: number;
62
63
  }
63
64
  export interface FunnelSubStepErrorProps extends FunnelSubStepProps {
64
- subStepErrorContext?: AnalyticsMetadata['errorContext'];
65
- fieldIdentifier?: AnalyticsMetadata['instanceIdentifier'];
66
- fieldErrorContext?: AnalyticsMetadata['errorContext'];
65
+ subStepErrorContext?: string;
66
+ fieldIdentifier?: string;
67
+ fieldErrorContext?: string;
67
68
  fieldLabelSelector: string;
68
69
  fieldErrorSelector: string;
69
70
  }
70
71
  export interface OptionalFunnelSubStepErrorProps extends FunnelSubStepProps {
71
- subStepErrorContext?: AnalyticsMetadata['errorContext'];
72
- fieldIdentifier?: AnalyticsMetadata['instanceIdentifier'];
73
- fieldErrorContext?: AnalyticsMetadata['errorContext'];
72
+ subStepErrorContext?: string;
73
+ fieldIdentifier?: string;
74
+ fieldErrorContext?: string;
74
75
  fieldLabelSelector?: string;
75
76
  fieldErrorSelector?: string;
76
77
  }
@@ -84,12 +85,12 @@ export interface StepConfiguration {
84
85
  number: number;
85
86
  name: string;
86
87
  isOptional: boolean;
87
- stepIdentifier?: AnalyticsMetadata['instanceIdentifier'];
88
+ stepIdentifier?: string;
88
89
  }
89
90
  export interface SubStepConfiguration {
90
91
  number: number;
91
92
  name: string;
92
- subStepIdentifier?: AnalyticsMetadata['instanceIdentifier'];
93
+ subStepIdentifier?: string;
93
94
  }
94
95
  export interface IFunnelMetrics {
95
96
  funnelStart: FunnelStartMethod;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/internal/analytics/interfaces.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,YAAY,CAAC;AACtD,MAAM,WAAW,iBAAiB;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,eAAe;IAC9B,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAC3D,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,QAAQ,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,eAAe,EAAE,qBAAqB,CAAC;IACpF,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACzC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACxC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EA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EAAE,YAAY,CAAC,+BAA+B,CAAC,CAAC;IAElE,mBAAmB,EAAE,YAAY,CAAC,0BAA0B,CAAC,CAAC;IAC9D,sBAAsB,EAAE,YAAY,CAAC,0BAA0B,CAAC,CAAC;CAClE;AAED,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,sBAAsB,CAAC;CAC1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/internal/analytics/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport type FunnelType = 'single-page' | 'multi-page';\nexport interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: 'create' | 'edit';\n errorContext?: string;\n}\n\n// Common properties for all funnels\nexport interface BaseFunnelProps {\n funnelIdentifier?: AnalyticsMetadata['instanceIdentifier'];\n funnelInteractionId: string;\n currentDocument?: Document;\n}\n\nexport interface FunnelErrorProps extends BaseFunnelProps {\n funnelErrorContext?: AnalyticsMetadata['errorContext'];\n}\n\nexport interface FunnelStartProps extends Omit<BaseFunnelProps, 'funnelInteractionId'> {\n flowType?: AnalyticsMetadata['flowType'];\n funnelNameSelector: string;\n totalFunnelSteps: number;\n optionalStepNumbers: number[];\n stepConfiguration?: StepConfiguration[];\n funnelType: FunnelType;\n funnelVersion: string;\n componentVersion: string;\n componentTheme: string;\n funnelInteractionId?: string;\n}\n\n// A function type for a generic funnel method\nexport type FunnelMethod<T extends BaseFunnelProps> = (props: T) => void;\n\n// Interface for table interaction method props\nexport interface TableInteractionProps {\n // Time to render table in either no data state or with data after user actions like filtering, pagination.\n // in milliseconds\n interactionTime: number;\n // User action like sorting, filtering, pagination which triggered new data load in table.\n userAction: string;\n // Unique instance identifier for the component.\n // Default: ''\n instanceIdentifier?: string;\n // Component identifier like table header which can be used to identify the table\n // Default: ''\n componentIdentifier?: string;\n // Number of resources in table after user action\n // Default: 0\n noOfResourcesInTable?: number;\n // Additional metadata related to user interaction\n interactionMetadata?: string;\n}\n\nexport type TableInteractionMethod = (props: TableInteractionProps) => void;\n\n// A function type specifically for funnelStart\nexport type FunnelStartMethod = (props: FunnelStartProps) => string;\n\n// Define individual method props by extending the base\nexport interface FunnelStepProps extends BaseFunnelProps {\n stepIdentifier?: AnalyticsMetadata['instanceIdentifier'];\n stepNumber: number;\n stepName?: string | undefined;\n stepNameSelector?: string;\n subStepAllSelector: string;\n totalSubSteps?: number;\n subStepConfiguration?: SubStepConfiguration[];\n}\n\nexport interface FunnelStepNavigationProps extends FunnelStepProps {\n destinationStepNumber: number;\n navigationType: string;\n totalSubSteps?: number;\n}\n\nexport interface FunnelStepErrorProps extends FunnelStepProps {\n stepErrorContext?: AnalyticsMetadata['errorContext'];\n stepErrorSelector: string;\n}\n\nexport interface FunnelSubStepProps extends FunnelStepProps {\n subStepIdentifier?: AnalyticsMetadata['instanceIdentifier'];\n subStepSelector: string;\n subStepName?: string | undefined;\n subStepNameSelector: string;\n subStepNumber?: number;\n}\n\nexport interface FunnelSubStepErrorProps extends FunnelSubStepProps {\n subStepErrorContext?: AnalyticsMetadata['errorContext'];\n fieldIdentifier?: AnalyticsMetadata['instanceIdentifier'];\n fieldErrorContext?: AnalyticsMetadata['errorContext'];\n fieldLabelSelector: string;\n fieldErrorSelector: string;\n}\n\nexport interface OptionalFunnelSubStepErrorProps extends FunnelSubStepProps {\n subStepErrorContext?: AnalyticsMetadata['errorContext'];\n fieldIdentifier?: AnalyticsMetadata['instanceIdentifier'];\n fieldErrorContext?: AnalyticsMetadata['errorContext'];\n fieldLabelSelector?: string;\n fieldErrorSelector?: string;\n}\n\nexport interface FunnelLinkInteractionProps extends FunnelSubStepProps {\n elementSelector: string;\n}\n\nexport interface FunnelChangeProps extends BaseFunnelProps {\n stepConfiguration: StepConfiguration[];\n}\n\nexport interface StepConfiguration {\n number: number;\n name: string;\n isOptional: boolean;\n stepIdentifier?: AnalyticsMetadata['instanceIdentifier'];\n}\n\nexport interface SubStepConfiguration {\n number: number;\n name: string;\n subStepIdentifier?: AnalyticsMetadata['instanceIdentifier'];\n}\n\n// Define the interface using the method type\nexport interface IFunnelMetrics {\n funnelStart: FunnelStartMethod;\n funnelError: FunnelMethod<FunnelErrorProps>;\n funnelComplete: FunnelMethod<BaseFunnelProps>;\n funnelSuccessful: FunnelMethod<BaseFunnelProps>;\n funnelCancelled: FunnelMethod<BaseFunnelProps>;\n funnelChange: FunnelMethod<FunnelChangeProps>;\n\n funnelStepStart: FunnelMethod<FunnelStepProps>;\n funnelStepComplete: FunnelMethod<FunnelStepProps>;\n funnelStepNavigation: FunnelMethod<FunnelStepNavigationProps>;\n funnelStepError: FunnelMethod<FunnelStepErrorProps>;\n funnelStepChange: FunnelMethod<FunnelStepProps>;\n\n funnelSubStepStart: FunnelMethod<FunnelSubStepProps>;\n funnelSubStepComplete: FunnelMethod<FunnelSubStepProps>;\n funnelSubStepError: FunnelMethod<OptionalFunnelSubStepErrorProps>;\n\n helpPanelInteracted: FunnelMethod<FunnelLinkInteractionProps>;\n externalLinkInteracted: FunnelMethod<FunnelLinkInteractionProps>;\n}\n\nexport interface IPerformanceMetrics {\n tableInteraction: TableInteractionMethod;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/internal/analytics/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport type FunnelType = 'single-page' | 'multi-page';\nexport type FlowType = 'create';\nexport interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: FlowType;\n errorContext?: string;\n}\n\n// Common properties for all funnels\nexport interface BaseFunnelProps {\n funnelIdentifier?: string;\n funnelInteractionId: string;\n currentDocument?: Document;\n}\n\nexport interface FunnelErrorProps extends BaseFunnelProps {\n funnelErrorContext?: string;\n}\n\nexport interface FunnelStartProps extends Omit<BaseFunnelProps, 'funnelInteractionId'> {\n flowType?: FlowType;\n funnelNameSelector: string;\n totalFunnelSteps: number;\n optionalStepNumbers: number[];\n stepConfiguration?: StepConfiguration[];\n funnelType: FunnelType;\n funnelVersion: string;\n componentVersion: string;\n componentTheme: string;\n funnelInteractionId?: string;\n}\n\n// A function type for a generic funnel method\nexport type FunnelMethod<T extends BaseFunnelProps> = (props: T) => void;\n\n// Interface for table interaction method props\nexport interface TableInteractionProps {\n // Time to render table in either no data state or with data after user actions like filtering, pagination.\n // in milliseconds\n interactionTime: number;\n // User action like sorting, filtering, pagination which triggered new data load in table.\n userAction: string;\n // Unique instance identifier for the component.\n // Default: ''\n instanceIdentifier?: string;\n // Component identifier like table header which can be used to identify the table\n // Default: ''\n componentIdentifier?: string;\n // Number of resources in table after user action\n // Default: 0\n noOfResourcesInTable?: number;\n // Additional metadata related to user interaction\n interactionMetadata?: string;\n}\n\nexport type TableInteractionMethod = (props: TableInteractionProps) => void;\n\n// A function type specifically for funnelStart\nexport type FunnelStartMethod = (props: FunnelStartProps) => string;\n\n// Define individual method props by extending the base\nexport interface FunnelStepProps extends BaseFunnelProps {\n stepIdentifier?: string;\n stepNumber: number;\n stepName?: string | undefined;\n stepNameSelector?: string;\n subStepAllSelector: string;\n totalSubSteps?: number;\n subStepConfiguration?: SubStepConfiguration[];\n}\n\nexport interface FunnelStepNavigationProps extends FunnelStepProps {\n destinationStepNumber: number;\n navigationType: string;\n totalSubSteps?: number;\n}\n\nexport interface FunnelStepErrorProps extends FunnelStepProps {\n stepErrorContext?: string;\n stepErrorSelector: string;\n}\n\nexport interface FunnelSubStepProps extends FunnelStepProps {\n subStepIdentifier?: string;\n subStepSelector: string;\n subStepName?: string | undefined;\n subStepNameSelector: string;\n subStepNumber?: number;\n}\n\nexport interface FunnelSubStepErrorProps extends FunnelSubStepProps {\n subStepErrorContext?: string;\n fieldIdentifier?: string;\n fieldErrorContext?: string;\n fieldLabelSelector: string;\n fieldErrorSelector: string;\n}\n\nexport interface OptionalFunnelSubStepErrorProps extends FunnelSubStepProps {\n subStepErrorContext?: string;\n fieldIdentifier?: string;\n fieldErrorContext?: string;\n fieldLabelSelector?: string;\n fieldErrorSelector?: string;\n}\n\nexport interface FunnelLinkInteractionProps extends FunnelSubStepProps {\n elementSelector: string;\n}\n\nexport interface FunnelChangeProps extends BaseFunnelProps {\n stepConfiguration: StepConfiguration[];\n}\n\nexport interface StepConfiguration {\n number: number;\n name: string;\n isOptional: boolean;\n stepIdentifier?: string;\n}\n\nexport interface SubStepConfiguration {\n number: number;\n name: string;\n subStepIdentifier?: string;\n}\n\n// Define the interface using the method type\nexport interface IFunnelMetrics {\n funnelStart: FunnelStartMethod;\n funnelError: FunnelMethod<FunnelErrorProps>;\n funnelComplete: FunnelMethod<BaseFunnelProps>;\n funnelSuccessful: FunnelMethod<BaseFunnelProps>;\n funnelCancelled: FunnelMethod<BaseFunnelProps>;\n funnelChange: FunnelMethod<FunnelChangeProps>;\n\n funnelStepStart: FunnelMethod<FunnelStepProps>;\n funnelStepComplete: FunnelMethod<FunnelStepProps>;\n funnelStepNavigation: FunnelMethod<FunnelStepNavigationProps>;\n funnelStepError: FunnelMethod<FunnelStepErrorProps>;\n funnelStepChange: FunnelMethod<FunnelStepProps>;\n\n funnelSubStepStart: FunnelMethod<FunnelSubStepProps>;\n funnelSubStepComplete: FunnelMethod<FunnelSubStepProps>;\n funnelSubStepError: FunnelMethod<OptionalFunnelSubStepErrorProps>;\n\n helpPanelInteracted: FunnelMethod<FunnelLinkInteractionProps>;\n externalLinkInteracted: FunnelMethod<FunnelLinkInteractionProps>;\n}\n\nexport interface IPerformanceMetrics {\n tableInteraction: TableInteractionMethod;\n}\n"]}
@@ -16,7 +16,16 @@ export interface BaseComponentProps {
16
16
  }
17
17
  export declare function getBaseProps(props: BaseComponentProps): BaseComponentProps;
18
18
  export interface BasePropsWithAnalyticsMetadata {
19
+ analyticsMetadata?: AnalyticsMetadata;
19
20
  __analyticsMetadata?: AnalyticsMetadata;
20
21
  }
21
- export declare function getAnalyticsMetadataProps(props?: unknown): AnalyticsMetadata | undefined;
22
+ /**
23
+ * Helper function to merge beta analytics metadata with the public analytics metadata api.
24
+ * Beta analytics metadata will override the public values to allow for safe migration.
25
+ */
26
+ export declare function getAnalyticsMetadataProps(props?: BasePropsWithAnalyticsMetadata): {
27
+ instanceIdentifier?: string | undefined;
28
+ flowType?: "create" | undefined;
29
+ errorContext?: string | undefined;
30
+ };
22
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/base-component/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,iBAAiB,CAAC;AAIzB,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CAIb;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,sBAQrD;AAED,MAAM,WAAW,8BAA8B;IAC7C,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;CACzC;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,OAAO,iCAExD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/base-component/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,iBAAiB,CAAC;AAIzB,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CAIb;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,sBAQrD;AAED,MAAM,WAAW,8BAA8B;IAC7C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;CACzC;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,8BAA8B;;;;EAE/E"}
@@ -14,7 +14,11 @@ export function getBaseProps(props) {
14
14
  });
15
15
  return baseProps;
16
16
  }
17
+ /**
18
+ * Helper function to merge beta analytics metadata with the public analytics metadata api.
19
+ * Beta analytics metadata will override the public values to allow for safe migration.
20
+ */
17
21
  export function getAnalyticsMetadataProps(props) {
18
- return props === null || props === void 0 ? void 0 : props.__analyticsMetadata;
22
+ return Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.analyticsMetadata), props === null || props === void 0 ? void 0 : props.__analyticsMetadata);
19
23
  }
20
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/base-component/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAGlF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjE,gEAAgE;AAChE,OAAO,iBAAiB,CAAC;AAEzB,iBAAiB,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;AAoBnD,MAAM,UAAU,YAAY,CAAC,KAAyB;IACpD,MAAM,SAAS,GAAwB,EAAE,CAAC;IAC1C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAChC,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;YACjE,SAAS,CAAC,IAAI,CAAC,GAAI,KAA6B,CAAC,IAAI,CAAC,CAAC;SACxD;IACH,CAAC,CAAC,CAAC;IACH,OAAO,SAA+B,CAAC;AACzC,CAAC;AAMD,MAAM,UAAU,yBAAyB,CAAC,KAAe;IACvD,OAAQ,KAAoD,aAApD,KAAK,uBAAL,KAAK,CAAiD,mBAAmB,CAAC;AACpF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { initAwsUiVersions } from '@cloudscape-design/component-toolkit/internal';\n\nimport { AnalyticsMetadata } from '../analytics/interfaces';\nimport { PACKAGE_SOURCE, PACKAGE_VERSION } from '../environment';\n\n// these styles needed to be imported for every public component\nimport './styles.css.js';\n\ninitAwsUiVersions(PACKAGE_SOURCE, PACKAGE_VERSION);\n\nexport interface BaseComponentProps {\n /**\n * Adds the specified classes to the root element of the component.\n * @deprecated Custom CSS is not supported. For testing and other use cases, use [data attributes](https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes).\n */\n className?: string;\n /**\n * Adds the specified ID to the root element of the component.\n * @deprecated The usage of the `id` attribute is reserved for internal use cases. For testing and other use cases,\n * use [data attributes](https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes). If you must\n * use the `id` attribute, consider setting it on a parent element instead.\n */\n id?: string;\n // we also support data-* attributes, but they are always implicitly allowed by typescript\n // http://www.typescriptlang.org/docs/handbook/jsx.html#attribute-type-checking\n // \"Note: If an attribute name is not a valid JS identifier (like a data-* attribute), it is not considered to be an error\"\n}\n\nexport function getBaseProps(props: BaseComponentProps) {\n const baseProps: Record<string, any> = {};\n Object.keys(props).forEach(prop => {\n if (prop === 'id' || prop === 'className' || prop.match(/^data-/)) {\n baseProps[prop] = (props as Record<string, any>)[prop];\n }\n });\n return baseProps as BaseComponentProps;\n}\n\nexport interface BasePropsWithAnalyticsMetadata {\n __analyticsMetadata?: AnalyticsMetadata;\n}\n\nexport function getAnalyticsMetadataProps(props?: unknown) {\n return (props as BasePropsWithAnalyticsMetadata | undefined)?.__analyticsMetadata;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/base-component/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAGlF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjE,gEAAgE;AAChE,OAAO,iBAAiB,CAAC;AAEzB,iBAAiB,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;AAoBnD,MAAM,UAAU,YAAY,CAAC,KAAyB;IACpD,MAAM,SAAS,GAAwB,EAAE,CAAC;IAC1C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAChC,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;YACjE,SAAS,CAAC,IAAI,CAAC,GAAI,KAA6B,CAAC,IAAI,CAAC,CAAC;SACxD;IACH,CAAC,CAAC,CAAC;IACH,OAAO,SAA+B,CAAC;AACzC,CAAC;AAOD;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAsC;IAC9E,uCAAY,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,iBAAiB,GAAK,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,mBAAmB,EAAG;AACxE,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { initAwsUiVersions } from '@cloudscape-design/component-toolkit/internal';\n\nimport { AnalyticsMetadata } from '../analytics/interfaces';\nimport { PACKAGE_SOURCE, PACKAGE_VERSION } from '../environment';\n\n// these styles needed to be imported for every public component\nimport './styles.css.js';\n\ninitAwsUiVersions(PACKAGE_SOURCE, PACKAGE_VERSION);\n\nexport interface BaseComponentProps {\n /**\n * Adds the specified classes to the root element of the component.\n * @deprecated Custom CSS is not supported. For testing and other use cases, use [data attributes](https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes).\n */\n className?: string;\n /**\n * Adds the specified ID to the root element of the component.\n * @deprecated The usage of the `id` attribute is reserved for internal use cases. For testing and other use cases,\n * use [data attributes](https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes). If you must\n * use the `id` attribute, consider setting it on a parent element instead.\n */\n id?: string;\n // we also support data-* attributes, but they are always implicitly allowed by typescript\n // http://www.typescriptlang.org/docs/handbook/jsx.html#attribute-type-checking\n // \"Note: If an attribute name is not a valid JS identifier (like a data-* attribute), it is not considered to be an error\"\n}\n\nexport function getBaseProps(props: BaseComponentProps) {\n const baseProps: Record<string, any> = {};\n Object.keys(props).forEach(prop => {\n if (prop === 'id' || prop === 'className' || prop.match(/^data-/)) {\n baseProps[prop] = (props as Record<string, any>)[prop];\n }\n });\n return baseProps as BaseComponentProps;\n}\n\nexport interface BasePropsWithAnalyticsMetadata {\n analyticsMetadata?: AnalyticsMetadata;\n __analyticsMetadata?: AnalyticsMetadata;\n}\n\n/**\n * Helper function to merge beta analytics metadata with the public analytics metadata api.\n * Beta analytics metadata will override the public values to allow for safe migration.\n */\nexport function getAnalyticsMetadataProps(props?: BasePropsWithAnalyticsMetadata) {\n return { ...props?.analyticsMetadata, ...props?.__analyticsMetadata };\n}\n"]}
@@ -1,14 +1,14 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_gfwv3_1gn2o_97",
5
- "horizontal": "awsui_horizontal_gfwv3_1gn2o_102",
6
- "vertical": "awsui_vertical_gfwv3_1gn2o_106",
7
- "list": "awsui_list_gfwv3_1gn2o_110",
8
- "list-item": "awsui_list-item_gfwv3_1gn2o_130",
9
- "toggle-container-inline": "awsui_toggle-container-inline_gfwv3_1gn2o_137",
10
- "toggle": "awsui_toggle_gfwv3_1gn2o_137",
11
- "description": "awsui_description_gfwv3_1gn2o_232",
12
- "separator": "awsui_separator_gfwv3_1gn2o_236"
4
+ "root": "awsui_root_gfwv3_101jq_97",
5
+ "horizontal": "awsui_horizontal_gfwv3_101jq_101",
6
+ "vertical": "awsui_vertical_gfwv3_101jq_106",
7
+ "list": "awsui_list_gfwv3_101jq_110",
8
+ "list-item": "awsui_list-item_gfwv3_101jq_130",
9
+ "toggle-container-inline": "awsui_toggle-container-inline_gfwv3_101jq_137",
10
+ "toggle": "awsui_toggle_gfwv3_101jq_137",
11
+ "description": "awsui_description_gfwv3_101jq_232",
12
+ "separator": "awsui_separator_gfwv3_101jq_236"
13
13
  };
14
14
 
@@ -94,20 +94,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
94
94
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
95
  SPDX-License-Identifier: Apache-2.0
96
96
  */
97
- .awsui_root_gfwv3_1gn2o_97:not(#\9) {
97
+ .awsui_root_gfwv3_101jq_97:not(#\9) {
98
98
  display: flex;
99
- flex-wrap: wrap;
100
99
  gap: var(--space-scaled-xs-26e2du, 8px);
101
100
  }
102
- .awsui_root_gfwv3_1gn2o_97.awsui_horizontal_gfwv3_1gn2o_102:not(#\9) {
101
+ .awsui_root_gfwv3_101jq_97.awsui_horizontal_gfwv3_101jq_101:not(#\9) {
103
102
  gap: var(--space-xs-zb16t3, 8px);
104
103
  flex-direction: row;
104
+ flex-wrap: wrap;
105
105
  }
106
- .awsui_root_gfwv3_1gn2o_97.awsui_vertical_gfwv3_1gn2o_106:not(#\9) {
106
+ .awsui_root_gfwv3_101jq_97.awsui_vertical_gfwv3_101jq_106:not(#\9) {
107
107
  flex-direction: column;
108
108
  }
109
109
 
110
- .awsui_list_gfwv3_1gn2o_110:not(#\9) {
110
+ .awsui_list_gfwv3_101jq_110:not(#\9) {
111
111
  display: contents;
112
112
  list-style: none;
113
113
  padding-block: 0;
@@ -115,32 +115,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
115
115
  margin-block: 0;
116
116
  margin-inline: 0;
117
117
  }
118
- .awsui_list_gfwv3_1gn2o_110.awsui_horizontal_gfwv3_1gn2o_102:not(#\9), .awsui_list_gfwv3_1gn2o_110.awsui_vertical_gfwv3_1gn2o_106:not(#\9) {
118
+ .awsui_list_gfwv3_101jq_110.awsui_horizontal_gfwv3_101jq_101:not(#\9), .awsui_list_gfwv3_101jq_110.awsui_vertical_gfwv3_101jq_106:not(#\9) {
119
119
  display: flex;
120
- flex-wrap: wrap;
121
120
  gap: var(--space-xs-zb16t3, 8px);
122
121
  }
123
- .awsui_list_gfwv3_1gn2o_110.awsui_horizontal_gfwv3_1gn2o_102:not(#\9) {
122
+ .awsui_list_gfwv3_101jq_110.awsui_horizontal_gfwv3_101jq_101:not(#\9) {
124
123
  flex-direction: row;
124
+ flex-wrap: wrap;
125
125
  }
126
- .awsui_list_gfwv3_1gn2o_110.awsui_vertical_gfwv3_1gn2o_106:not(#\9) {
126
+ .awsui_list_gfwv3_101jq_110.awsui_vertical_gfwv3_101jq_106:not(#\9) {
127
127
  flex-direction: column;
128
128
  }
129
129
 
130
- .awsui_list-item_gfwv3_1gn2o_130:not(#\9) {
130
+ .awsui_list-item_gfwv3_101jq_130:not(#\9) {
131
131
  padding-block: 0;
132
132
  padding-inline: 0;
133
133
  margin-block: 0;
134
134
  margin-inline: 0;
135
135
  }
136
136
 
137
- .awsui_toggle-container-inline_gfwv3_1gn2o_137:not(#\9) {
137
+ .awsui_toggle-container-inline_gfwv3_101jq_137:not(#\9) {
138
138
  padding-inline-start: var(--space-xs-zb16t3, 8px);
139
139
  display: flex;
140
140
  align-items: center;
141
141
  }
142
142
 
143
- .awsui_toggle_gfwv3_1gn2o_137:not(#\9) {
143
+ .awsui_toggle_gfwv3_101jq_137:not(#\9) {
144
144
  border-collapse: separate;
145
145
  border-spacing: 0;
146
146
  box-sizing: border-box;
@@ -195,34 +195,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
195
195
  margin-inline-start: -1px;
196
196
  }
197
197
  @media (prefers-reduced-motion: reduce) {
198
- .awsui_toggle_gfwv3_1gn2o_137:not(#\9) {
198
+ .awsui_toggle_gfwv3_101jq_137:not(#\9) {
199
199
  animation: none;
200
200
  transition: none;
201
201
  }
202
202
  }
203
- .awsui-motion-disabled .awsui_toggle_gfwv3_1gn2o_137:not(#\9), .awsui-mode-entering .awsui_toggle_gfwv3_1gn2o_137:not(#\9) {
203
+ .awsui-motion-disabled .awsui_toggle_gfwv3_101jq_137:not(#\9), .awsui-mode-entering .awsui_toggle_gfwv3_101jq_137:not(#\9) {
204
204
  animation: none;
205
205
  transition: none;
206
206
  }
207
- .awsui_toggle_gfwv3_1gn2o_137:not(#\9):hover {
207
+ .awsui_toggle_gfwv3_101jq_137:not(#\9):hover {
208
208
  cursor: pointer;
209
209
  color: var(--color-text-link-hover-8j6p14, #033160);
210
210
  }
211
- .awsui_toggle_gfwv3_1gn2o_137:not(#\9):focus {
211
+ .awsui_toggle_gfwv3_101jq_137:not(#\9):focus {
212
212
  outline: none;
213
213
  }
214
- .awsui_toggle_gfwv3_1gn2o_137:not(#\9):active {
214
+ .awsui_toggle_gfwv3_101jq_137:not(#\9):active {
215
215
  color: var(--color-text-link-hover-8j6p14, #033160);
216
216
  }
217
- .awsui_toggle_gfwv3_1gn2o_137:not(#\9):active, .awsui_toggle_gfwv3_1gn2o_137:not(#\9):focus, .awsui_toggle_gfwv3_1gn2o_137:not(#\9):hover {
217
+ .awsui_toggle_gfwv3_101jq_137:not(#\9):active, .awsui_toggle_gfwv3_101jq_137:not(#\9):focus, .awsui_toggle_gfwv3_101jq_137:not(#\9):hover {
218
218
  text-decoration-line: underline;
219
219
  text-decoration-color: currentColor;
220
220
  }
221
- .awsui_toggle_gfwv3_1gn2o_137:not(#\9):active, .awsui_toggle_gfwv3_1gn2o_137:not(#\9):focus, .awsui_toggle_gfwv3_1gn2o_137:not(#\9):hover {
221
+ .awsui_toggle_gfwv3_101jq_137:not(#\9):active, .awsui_toggle_gfwv3_101jq_137:not(#\9):focus, .awsui_toggle_gfwv3_101jq_137:not(#\9):hover {
222
222
  text-decoration: none;
223
223
  text-decoration-color: transparent;
224
224
  }
225
- body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_1gn2o_137:not(#\9):focus {
225
+ body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_101jq_137:not(#\9):focus {
226
226
  outline: 2px dotted transparent;
227
227
  border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-focused-b2ntyl, #0972d3);
228
228
  border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-focused-b2ntyl, #0972d3);
@@ -232,11 +232,11 @@ body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_1gn2o_137:not(#\9):focus
232
232
  border-end-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
233
233
  box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-b2ntyl, #0972d3);
234
234
  }
235
- .awsui_toggle_gfwv3_1gn2o_137 > .awsui_description_gfwv3_1gn2o_232:not(#\9) {
235
+ .awsui_toggle_gfwv3_101jq_137 > .awsui_description_gfwv3_101jq_232:not(#\9) {
236
236
  margin-inline-start: var(--space-xxs-p8yyaw, 4px);
237
237
  }
238
238
 
239
- .awsui_separator_gfwv3_1gn2o_236:not(#\9) {
239
+ .awsui_separator_gfwv3_101jq_236:not(#\9) {
240
240
  margin-block: 0;
241
241
  margin-inline: var(--space-scaled-m-mo5yse, 16px);
242
242
  inline-size: var(--border-divider-section-width-1061zr, 1px);
@@ -2,14 +2,14 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_gfwv3_1gn2o_97",
6
- "horizontal": "awsui_horizontal_gfwv3_1gn2o_102",
7
- "vertical": "awsui_vertical_gfwv3_1gn2o_106",
8
- "list": "awsui_list_gfwv3_1gn2o_110",
9
- "list-item": "awsui_list-item_gfwv3_1gn2o_130",
10
- "toggle-container-inline": "awsui_toggle-container-inline_gfwv3_1gn2o_137",
11
- "toggle": "awsui_toggle_gfwv3_1gn2o_137",
12
- "description": "awsui_description_gfwv3_1gn2o_232",
13
- "separator": "awsui_separator_gfwv3_1gn2o_236"
5
+ "root": "awsui_root_gfwv3_101jq_97",
6
+ "horizontal": "awsui_horizontal_gfwv3_101jq_101",
7
+ "vertical": "awsui_vertical_gfwv3_101jq_106",
8
+ "list": "awsui_list_gfwv3_101jq_110",
9
+ "list-item": "awsui_list-item_gfwv3_101jq_130",
10
+ "toggle-container-inline": "awsui_toggle-container-inline_gfwv3_101jq_137",
11
+ "toggle": "awsui_toggle_gfwv3_101jq_137",
12
+ "description": "awsui_description_gfwv3_101jq_232",
13
+ "separator": "awsui_separator_gfwv3_101jq_236"
14
14
  };
15
15
 
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (b694f9a8)";
2
+ export var PACKAGE_VERSION = "3.0.0 (1316d132)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (b694f9a8)",
3
+ "PACKAGE_VERSION": "3.0.0 (1316d132)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "b694f9a8ff6169b5219526f06dd8300a0e19f153"
2
+ "commit": "1316d13288cfd85372fc26b903141eaea4897478"
3
3
  }
package/package.json CHANGED
@@ -125,7 +125,7 @@
125
125
  "./internal/base-component/index.js",
126
126
  "./internal/base-component/styles.css.js"
127
127
  ],
128
- "version": "3.0.706",
128
+ "version": "3.0.708",
129
129
  "repository": {
130
130
  "type": "git",
131
131
  "url": "https://github.com/cloudscape-design/components.git"
@@ -0,0 +1,9 @@
1
+ import { FormattedToken, I18nStrings, InternalToken } from './interfaces';
2
+ export declare function getI18nToken(token: FormattedToken): {
3
+ token__operator: string;
4
+ token__propertyKey: string;
5
+ token__propertyLabel: string;
6
+ token__value: string;
7
+ };
8
+ export declare function getFormattedToken(token: InternalToken, i18nStrings: I18nStrings): FormattedToken;
9
+ //# sourceMappingURL=i18n-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n-utils.d.ts","sourceRoot":"","sources":["../../../src/property-filter/i18n-utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9F,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,GAAG;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;CACtB,CAOA;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,GAAG,cAAc,CAKhG"}
@@ -0,0 +1,48 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ export function getI18nToken(token) {
4
+ var _a;
5
+ return {
6
+ token__propertyKey: (_a = token.propertyKey) !== null && _a !== void 0 ? _a : '',
7
+ token__propertyLabel: token.propertyLabel,
8
+ token__operator: getOperatorI18nString(token.operator),
9
+ token__value: token.value,
10
+ };
11
+ }
12
+ export function getFormattedToken(token, i18nStrings) {
13
+ var _a, _b, _c;
14
+ const valueFormatter = (_a = token.property) === null || _a === void 0 ? void 0 : _a.getValueFormatter(token.operator);
15
+ const propertyLabel = token.property ? token.property.propertyLabel : (_b = i18nStrings.allPropertiesLabel) !== null && _b !== void 0 ? _b : '';
16
+ const tokenValue = valueFormatter ? valueFormatter(token.value) : token.value;
17
+ return { propertyKey: (_c = token.property) === null || _c === void 0 ? void 0 : _c.propertyKey, propertyLabel, operator: token.operator, value: tokenValue };
18
+ }
19
+ function getOperatorI18nString(operator) {
20
+ switch (operator) {
21
+ case '=':
22
+ return 'equals';
23
+ case '!=':
24
+ return 'not_equals';
25
+ case '>':
26
+ return 'greater_than';
27
+ case '>=':
28
+ return 'greater_than_equal';
29
+ case '<':
30
+ return 'less_than';
31
+ case '<=':
32
+ return 'less_than_equal';
33
+ case ':':
34
+ return 'contains';
35
+ case '!:':
36
+ return 'not_contains';
37
+ case '^':
38
+ return 'starts_with';
39
+ case '!^':
40
+ return 'not_starts_with';
41
+ // The line is ignored from coverage because it is not reachable.
42
+ // The purpose of it is to prevent TS errors if ComparisonOperator type gets extended.
43
+ /* istanbul ignore next */
44
+ default:
45
+ return operator;
46
+ }
47
+ }
48
+ //# sourceMappingURL=i18n-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n-utils.js","sourceRoot":"","sources":["../../../src/property-filter/i18n-utils.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAItC,MAAM,UAAU,YAAY,CAAC,KAAqB;;IAMhD,OAAO;QACL,kBAAkB,EAAE,MAAA,KAAK,CAAC,WAAW,mCAAI,EAAE;QAC3C,oBAAoB,EAAE,KAAK,CAAC,aAAa;QACzC,eAAe,EAAE,qBAAqB,CAAC,KAAK,CAAC,QAAQ,CAAC;QACtD,YAAY,EAAE,KAAK,CAAC,KAAK;KAC1B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAoB,EAAE,WAAwB;;IAC9E,MAAM,cAAc,GAAG,MAAA,KAAK,CAAC,QAAQ,0CAAE,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzE,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAA,WAAW,CAAC,kBAAkB,mCAAI,EAAE,CAAC;IAC3G,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IAC9E,OAAO,EAAE,WAAW,EAAE,MAAA,KAAK,CAAC,QAAQ,0CAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;AAClH,CAAC;AAED,SAAS,qBAAqB,CAAC,QAA4B;IACzD,QAAQ,QAAQ,EAAE;QAChB,KAAK,GAAG;YACN,OAAO,QAAQ,CAAC;QAClB,KAAK,IAAI;YACP,OAAO,YAAY,CAAC;QACtB,KAAK,GAAG;YACN,OAAO,cAAc,CAAC;QACxB,KAAK,IAAI;YACP,OAAO,oBAAoB,CAAC;QAC9B,KAAK,GAAG;YACN,OAAO,WAAW,CAAC;QACrB,KAAK,IAAI;YACP,OAAO,iBAAiB,CAAC;QAC3B,KAAK,GAAG;YACN,OAAO,UAAU,CAAC;QACpB,KAAK,IAAI;YACP,OAAO,cAAc,CAAC;QACxB,KAAK,GAAG;YACN,OAAO,aAAa,CAAC;QACvB,KAAK,IAAI;YACP,OAAO,iBAAiB,CAAC;QAC3B,iEAAiE;QACjE,sFAAsF;QACtF,0BAA0B;QAC1B;YACE,OAAO,QAAQ,CAAC;KACnB;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { ComparisonOperator, FormattedToken, I18nStrings, InternalToken } from './interfaces';\n\nexport function getI18nToken(token: FormattedToken): {\n token__operator: string;\n token__propertyKey: string;\n token__propertyLabel: string;\n token__value: string;\n} {\n return {\n token__propertyKey: token.propertyKey ?? '',\n token__propertyLabel: token.propertyLabel,\n token__operator: getOperatorI18nString(token.operator),\n token__value: token.value,\n };\n}\n\nexport function getFormattedToken(token: InternalToken, i18nStrings: I18nStrings): FormattedToken {\n const valueFormatter = token.property?.getValueFormatter(token.operator);\n const propertyLabel = token.property ? token.property.propertyLabel : i18nStrings.allPropertiesLabel ?? '';\n const tokenValue = valueFormatter ? valueFormatter(token.value) : token.value;\n return { propertyKey: token.property?.propertyKey, propertyLabel, operator: token.operator, value: tokenValue };\n}\n\nfunction getOperatorI18nString(operator: ComparisonOperator): string {\n switch (operator) {\n case '=':\n return 'equals';\n case '!=':\n return 'not_equals';\n case '>':\n return 'greater_than';\n case '>=':\n return 'greater_than_equal';\n case '<':\n return 'less_than';\n case '<=':\n return 'less_than_equal';\n case ':':\n return 'contains';\n case '!:':\n return 'not_contains';\n case '^':\n return 'starts_with';\n case '!^':\n return 'not_starts_with';\n // The line is ignored from coverage because it is not reachable.\n // The purpose of it is to prevent TS errors if ComparisonOperator type gets extended.\n /* istanbul ignore next */\n default:\n return operator;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/property-filter/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAmBrE,OAAO,EASL,mBAAmB,EAGpB,MAAM,cAAc,CAAC;AAStB,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAgC/B,QAAA,MAAM,cAAc,qGAmZnB,CAAC;AAGF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/property-filter/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAoBrE,OAAO,EASL,mBAAmB,EAGpB,MAAM,cAAc,CAAC;AAStB,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,QAAA,MAAM,cAAc,qGAgZnB,CAAC;AAGF,eAAe,cAAc,CAAC"}