box-ui-elements 24.0.0-beta.5 → 24.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +1 -1
- package/es/elements/content-explorer/Content.js +3 -1
- package/es/elements/content-explorer/Content.js.map +1 -1
- package/es/elements/content-explorer/ContentExplorer.js +16 -5
- package/es/elements/content-explorer/ContentExplorer.js.map +1 -1
- package/es/elements/content-explorer/MetadataQueryAPIHelper.js +104 -7
- package/es/elements/content-explorer/MetadataQueryAPIHelper.js.map +1 -1
- package/es/elements/content-explorer/MetadataQueryBuilder.js +115 -0
- package/es/elements/content-explorer/MetadataQueryBuilder.js.map +1 -0
- package/es/elements/content-explorer/MetadataViewContainer.js +92 -46
- package/es/elements/content-explorer/MetadataViewContainer.js.map +1 -1
- package/es/elements/content-explorer/stories/MetadataView.stories.js +3 -25
- package/es/elements/content-explorer/stories/MetadataView.stories.js.map +1 -1
- package/es/elements/content-explorer/stories/tests/MetadataView-visual.stories.js +4 -16
- package/es/elements/content-explorer/stories/tests/MetadataView-visual.stories.js.map +1 -1
- package/es/src/elements/common/__mocks__/mockMetadata.d.ts +8 -24
- package/es/src/elements/content-explorer/Content.d.ts +4 -3
- package/es/src/elements/content-explorer/ContentExplorer.d.ts +8 -3
- package/es/src/elements/content-explorer/MetadataQueryAPIHelper.d.ts +11 -2
- package/es/src/elements/content-explorer/MetadataQueryBuilder.d.ts +27 -0
- package/es/src/elements/content-explorer/MetadataViewContainer.d.ts +8 -4
- package/es/src/elements/content-explorer/__tests__/MetadataQueryBuilder.test.d.ts +1 -0
- package/i18n/bn-IN.js +1 -1
- package/i18n/bn-IN.properties +8 -0
- package/i18n/da-DK.js +1 -1
- package/i18n/da-DK.properties +8 -0
- package/i18n/de-DE.js +1 -1
- package/i18n/de-DE.properties +8 -0
- package/i18n/en-AU.js +1 -1
- package/i18n/en-AU.properties +8 -0
- package/i18n/en-CA.js +1 -1
- package/i18n/en-CA.properties +8 -0
- package/i18n/en-GB.js +1 -1
- package/i18n/en-GB.properties +8 -0
- package/i18n/es-419.js +1 -1
- package/i18n/es-419.properties +8 -0
- package/i18n/es-ES.js +1 -1
- package/i18n/es-ES.properties +8 -0
- package/i18n/fi-FI.js +1 -1
- package/i18n/fi-FI.properties +8 -0
- package/i18n/fr-CA.js +1 -1
- package/i18n/fr-CA.properties +8 -0
- package/i18n/fr-FR.js +1 -1
- package/i18n/fr-FR.properties +8 -0
- package/i18n/hi-IN.js +1 -1
- package/i18n/hi-IN.properties +8 -0
- package/i18n/it-IT.js +1 -1
- package/i18n/it-IT.properties +8 -0
- package/i18n/ja-JP.js +1 -1
- package/i18n/ja-JP.properties +8 -0
- package/i18n/ko-KR.js +1 -1
- package/i18n/ko-KR.properties +8 -0
- package/i18n/nb-NO.js +1 -1
- package/i18n/nb-NO.properties +8 -0
- package/i18n/nl-NL.js +1 -1
- package/i18n/nl-NL.properties +8 -0
- package/i18n/pl-PL.js +1 -1
- package/i18n/pl-PL.properties +8 -0
- package/i18n/pt-BR.js +1 -1
- package/i18n/pt-BR.properties +8 -0
- package/i18n/ru-RU.js +1 -1
- package/i18n/ru-RU.properties +8 -0
- package/i18n/sv-SE.js +1 -1
- package/i18n/sv-SE.properties +8 -0
- package/i18n/tr-TR.js +1 -1
- package/i18n/tr-TR.properties +8 -0
- package/i18n/zh-CN.js +1 -1
- package/i18n/zh-CN.properties +8 -0
- package/i18n/zh-TW.js +1 -1
- package/i18n/zh-TW.properties +8 -0
- package/package.json +3 -3
- package/src/elements/common/__mocks__/mockMetadata.ts +7 -11
- package/src/elements/content-explorer/Content.tsx +8 -2
- package/src/elements/content-explorer/ContentExplorer.tsx +208 -193
- package/src/elements/content-explorer/MetadataQueryAPIHelper.ts +111 -5
- package/src/elements/content-explorer/MetadataQueryBuilder.ts +159 -0
- package/src/elements/content-explorer/MetadataViewContainer.tsx +112 -37
- package/src/elements/content-explorer/__tests__/Content.test.tsx +1 -0
- package/src/elements/content-explorer/__tests__/ContentExplorer.test.tsx +2 -5
- package/src/elements/content-explorer/__tests__/MetadataQueryAPIHelper.test.ts +421 -8
- package/src/elements/content-explorer/__tests__/MetadataQueryBuilder.test.ts +419 -0
- package/src/elements/content-explorer/__tests__/MetadataViewContainer.test.tsx +413 -9
- package/src/elements/content-explorer/stories/MetadataView.stories.tsx +3 -21
- package/src/elements/content-explorer/stories/tests/MetadataView-visual.stories.tsx +2 -13
package/i18n/pl-PL.properties
CHANGED
|
@@ -582,12 +582,18 @@ be.messageCenter.previewError = Przepraszamy, występują problemy z wyświetlan
|
|
|
582
582
|
be.messageCenter.product = Produkt
|
|
583
583
|
# Title for the message center modal
|
|
584
584
|
be.messageCenter.title = Co nowego
|
|
585
|
+
# Text shown in error notification banner
|
|
586
|
+
be.metadataUpdateErrorNotification = Unable to save changes. Please try again.
|
|
587
|
+
# Text shown in success notification banner
|
|
588
|
+
be.metadataUpdateSuccessNotification = {numSelected, plural, =1 {1 document updated} other {# documents updated} }
|
|
585
589
|
# Text for modified date with modified prefix.
|
|
586
590
|
be.modifiedDate = Ostatnia modyfikacja: {date}
|
|
587
591
|
# Text for modified date with user with modified prefix.
|
|
588
592
|
be.modifiedDateBy = Zmieniono {date} przez użytkownika {name}
|
|
589
593
|
# Label for a button that displays more options
|
|
590
594
|
be.moreOptions = Więcej opcji
|
|
595
|
+
# Display text for field when there are multiple items selected and have different value
|
|
596
|
+
be.multipleValues = Multiple Values
|
|
591
597
|
# Name ascending option shown in the share access drop down select.
|
|
592
598
|
be.nameASC = Nazwa: A → Z
|
|
593
599
|
# Name descending option shown in the share access drop down select.
|
|
@@ -834,6 +840,8 @@ be.skillUnknownError = Podczas uruchamiania umiejętności lub pobierania danych
|
|
|
834
840
|
be.sort = Sortuj
|
|
835
841
|
# Label for status skill card in the preview sidebar
|
|
836
842
|
be.statusSkill = Stan
|
|
843
|
+
# Generic success label.
|
|
844
|
+
be.success = Success
|
|
837
845
|
# Shown instead of todays date.
|
|
838
846
|
be.today = dziś
|
|
839
847
|
# Label for keywords/topics skill section in the preview sidebar
|
package/i18n/pt-BR.js
CHANGED
|
@@ -292,7 +292,7 @@ export default {
|
|
|
292
292
|
"be.messageCenter.product": "Produto",
|
|
293
293
|
"be.messageCenter.title": "Novidades",
|
|
294
294
|
"be.metadataUpdateErrorNotification": "Unable to save changes. Please try again.",
|
|
295
|
-
"be.metadataUpdateSuccessNotification": "
|
|
295
|
+
"be.metadataUpdateSuccessNotification": "{numSelected, plural, =1 {1 document updated} other {# documents updated} } ",
|
|
296
296
|
"be.modifiedDate": "Alterado em {date}",
|
|
297
297
|
"be.modifiedDateBy": "Modificado em {date} por {name}",
|
|
298
298
|
"be.moreOptions": "Mais opções",
|
package/i18n/pt-BR.properties
CHANGED
|
@@ -582,12 +582,18 @@ be.messageCenter.previewError = Lamentamos, mas estamos com problemas para exibi
|
|
|
582
582
|
be.messageCenter.product = Produto
|
|
583
583
|
# Title for the message center modal
|
|
584
584
|
be.messageCenter.title = Novidades
|
|
585
|
+
# Text shown in error notification banner
|
|
586
|
+
be.metadataUpdateErrorNotification = Unable to save changes. Please try again.
|
|
587
|
+
# Text shown in success notification banner
|
|
588
|
+
be.metadataUpdateSuccessNotification = {numSelected, plural, =1 {1 document updated} other {# documents updated} }
|
|
585
589
|
# Text for modified date with modified prefix.
|
|
586
590
|
be.modifiedDate = Alterado em {date}
|
|
587
591
|
# Text for modified date with user with modified prefix.
|
|
588
592
|
be.modifiedDateBy = Modificado em {date} por {name}
|
|
589
593
|
# Label for a button that displays more options
|
|
590
594
|
be.moreOptions = Mais opções
|
|
595
|
+
# Display text for field when there are multiple items selected and have different value
|
|
596
|
+
be.multipleValues = Multiple Values
|
|
591
597
|
# Name ascending option shown in the share access drop down select.
|
|
592
598
|
be.nameASC = Nome: A → Z
|
|
593
599
|
# Name descending option shown in the share access drop down select.
|
|
@@ -834,6 +840,8 @@ be.skillUnknownError = Ocorreu um erro ao executar esta habilidade ou ao obter e
|
|
|
834
840
|
be.sort = Classificar
|
|
835
841
|
# Label for status skill card in the preview sidebar
|
|
836
842
|
be.statusSkill = Status
|
|
843
|
+
# Generic success label.
|
|
844
|
+
be.success = Success
|
|
837
845
|
# Shown instead of todays date.
|
|
838
846
|
be.today = hoje
|
|
839
847
|
# Label for keywords/topics skill section in the preview sidebar
|
package/i18n/ru-RU.js
CHANGED
|
@@ -292,7 +292,7 @@ export default {
|
|
|
292
292
|
"be.messageCenter.product": "Продукт",
|
|
293
293
|
"be.messageCenter.title": "Новые возможности",
|
|
294
294
|
"be.metadataUpdateErrorNotification": "Unable to save changes. Please try again.",
|
|
295
|
-
"be.metadataUpdateSuccessNotification": "
|
|
295
|
+
"be.metadataUpdateSuccessNotification": "{numSelected, plural, =1 {1 document updated} other {# documents updated} } ",
|
|
296
296
|
"be.modifiedDate": "Изменено: {date}",
|
|
297
297
|
"be.modifiedDateBy": "Изменено {date} пользователем {name}",
|
|
298
298
|
"be.moreOptions": "Дополнительные параметры",
|
package/i18n/ru-RU.properties
CHANGED
|
@@ -582,12 +582,18 @@ be.messageCenter.previewError = Не удается показать это из
|
|
|
582
582
|
be.messageCenter.product = Продукт
|
|
583
583
|
# Title for the message center modal
|
|
584
584
|
be.messageCenter.title = Новые возможности
|
|
585
|
+
# Text shown in error notification banner
|
|
586
|
+
be.metadataUpdateErrorNotification = Unable to save changes. Please try again.
|
|
587
|
+
# Text shown in success notification banner
|
|
588
|
+
be.metadataUpdateSuccessNotification = {numSelected, plural, =1 {1 document updated} other {# documents updated} }
|
|
585
589
|
# Text for modified date with modified prefix.
|
|
586
590
|
be.modifiedDate = Изменено: {date}
|
|
587
591
|
# Text for modified date with user with modified prefix.
|
|
588
592
|
be.modifiedDateBy = Изменено {date} пользователем {name}
|
|
589
593
|
# Label for a button that displays more options
|
|
590
594
|
be.moreOptions = Дополнительные параметры
|
|
595
|
+
# Display text for field when there are multiple items selected and have different value
|
|
596
|
+
be.multipleValues = Multiple Values
|
|
591
597
|
# Name ascending option shown in the share access drop down select.
|
|
592
598
|
be.nameASC = Имя: А → Я
|
|
593
599
|
# Name descending option shown in the share access drop down select.
|
|
@@ -834,6 +840,8 @@ be.skillUnknownError = Произошла ошибка при запуске э
|
|
|
834
840
|
be.sort = Сортировать
|
|
835
841
|
# Label for status skill card in the preview sidebar
|
|
836
842
|
be.statusSkill = Статус
|
|
843
|
+
# Generic success label.
|
|
844
|
+
be.success = Success
|
|
837
845
|
# Shown instead of todays date.
|
|
838
846
|
be.today = сегодня
|
|
839
847
|
# Label for keywords/topics skill section in the preview sidebar
|
package/i18n/sv-SE.js
CHANGED
|
@@ -292,7 +292,7 @@ export default {
|
|
|
292
292
|
"be.messageCenter.product": "Produkt",
|
|
293
293
|
"be.messageCenter.title": "Nyheter",
|
|
294
294
|
"be.metadataUpdateErrorNotification": "Unable to save changes. Please try again.",
|
|
295
|
-
"be.metadataUpdateSuccessNotification": "
|
|
295
|
+
"be.metadataUpdateSuccessNotification": "{numSelected, plural, =1 {1 document updated} other {# documents updated} } ",
|
|
296
296
|
"be.modifiedDate": "Ändrad {date}",
|
|
297
297
|
"be.modifiedDateBy": "Ändrad {date} av {name}",
|
|
298
298
|
"be.moreOptions": "Fler alternativ",
|
package/i18n/sv-SE.properties
CHANGED
|
@@ -582,12 +582,18 @@ be.messageCenter.previewError = Vi har tyvärr problem med att visa den här bil
|
|
|
582
582
|
be.messageCenter.product = Produkt
|
|
583
583
|
# Title for the message center modal
|
|
584
584
|
be.messageCenter.title = Nyheter
|
|
585
|
+
# Text shown in error notification banner
|
|
586
|
+
be.metadataUpdateErrorNotification = Unable to save changes. Please try again.
|
|
587
|
+
# Text shown in success notification banner
|
|
588
|
+
be.metadataUpdateSuccessNotification = {numSelected, plural, =1 {1 document updated} other {# documents updated} }
|
|
585
589
|
# Text for modified date with modified prefix.
|
|
586
590
|
be.modifiedDate = Ändrad {date}
|
|
587
591
|
# Text for modified date with user with modified prefix.
|
|
588
592
|
be.modifiedDateBy = Ändrad {date} av {name}
|
|
589
593
|
# Label for a button that displays more options
|
|
590
594
|
be.moreOptions = Fler alternativ
|
|
595
|
+
# Display text for field when there are multiple items selected and have different value
|
|
596
|
+
be.multipleValues = Multiple Values
|
|
591
597
|
# Name ascending option shown in the share access drop down select.
|
|
592
598
|
be.nameASC = Namn: A → Ö
|
|
593
599
|
# Name descending option shown in the share access drop down select.
|
|
@@ -834,6 +840,8 @@ be.skillUnknownError = Något gick fel när funktionen kördes eller när dess d
|
|
|
834
840
|
be.sort = Sortera
|
|
835
841
|
# Label for status skill card in the preview sidebar
|
|
836
842
|
be.statusSkill = Status
|
|
843
|
+
# Generic success label.
|
|
844
|
+
be.success = Success
|
|
837
845
|
# Shown instead of todays date.
|
|
838
846
|
be.today = idag
|
|
839
847
|
# Label for keywords/topics skill section in the preview sidebar
|
package/i18n/tr-TR.js
CHANGED
|
@@ -292,7 +292,7 @@ export default {
|
|
|
292
292
|
"be.messageCenter.product": "Ürün",
|
|
293
293
|
"be.messageCenter.title": "Yenilikler",
|
|
294
294
|
"be.metadataUpdateErrorNotification": "Unable to save changes. Please try again.",
|
|
295
|
-
"be.metadataUpdateSuccessNotification": "
|
|
295
|
+
"be.metadataUpdateSuccessNotification": "{numSelected, plural, =1 {1 document updated} other {# documents updated} } ",
|
|
296
296
|
"be.modifiedDate": "{date} tarihinde değiştirildi",
|
|
297
297
|
"be.modifiedDateBy": "{name} tarafından {date} tarihinde değiştirildi",
|
|
298
298
|
"be.moreOptions": "Daha Fazla Seçenek",
|
package/i18n/tr-TR.properties
CHANGED
|
@@ -582,12 +582,18 @@ be.messageCenter.previewError = Üzgünüz, bu görüntüyü göstermekte sorun
|
|
|
582
582
|
be.messageCenter.product = Ürün
|
|
583
583
|
# Title for the message center modal
|
|
584
584
|
be.messageCenter.title = Yenilikler
|
|
585
|
+
# Text shown in error notification banner
|
|
586
|
+
be.metadataUpdateErrorNotification = Unable to save changes. Please try again.
|
|
587
|
+
# Text shown in success notification banner
|
|
588
|
+
be.metadataUpdateSuccessNotification = {numSelected, plural, =1 {1 document updated} other {# documents updated} }
|
|
585
589
|
# Text for modified date with modified prefix.
|
|
586
590
|
be.modifiedDate = {date} tarihinde değiştirildi
|
|
587
591
|
# Text for modified date with user with modified prefix.
|
|
588
592
|
be.modifiedDateBy = {name} tarafından {date} tarihinde değiştirildi
|
|
589
593
|
# Label for a button that displays more options
|
|
590
594
|
be.moreOptions = Daha Fazla Seçenek
|
|
595
|
+
# Display text for field when there are multiple items selected and have different value
|
|
596
|
+
be.multipleValues = Multiple Values
|
|
591
597
|
# Name ascending option shown in the share access drop down select.
|
|
592
598
|
be.nameASC = Ad: A → Z
|
|
593
599
|
# Name descending option shown in the share access drop down select.
|
|
@@ -834,6 +840,8 @@ be.skillUnknownError = Bu Skill özelliği kullanılırken veya ilgili veriler g
|
|
|
834
840
|
be.sort = Sırala
|
|
835
841
|
# Label for status skill card in the preview sidebar
|
|
836
842
|
be.statusSkill = Durum
|
|
843
|
+
# Generic success label.
|
|
844
|
+
be.success = Success
|
|
837
845
|
# Shown instead of todays date.
|
|
838
846
|
be.today = bugün
|
|
839
847
|
# Label for keywords/topics skill section in the preview sidebar
|
package/i18n/zh-CN.js
CHANGED
|
@@ -292,7 +292,7 @@ export default {
|
|
|
292
292
|
"be.messageCenter.product": "产品",
|
|
293
293
|
"be.messageCenter.title": "新增功能",
|
|
294
294
|
"be.metadataUpdateErrorNotification": "Unable to save changes. Please try again.",
|
|
295
|
-
"be.metadataUpdateSuccessNotification": "
|
|
295
|
+
"be.metadataUpdateSuccessNotification": "{numSelected, plural, =1 {1 document updated} other {# documents updated} } ",
|
|
296
296
|
"be.modifiedDate": "修改日期:{date}",
|
|
297
297
|
"be.modifiedDateBy": "{name} 于 {date} 修改",
|
|
298
298
|
"be.moreOptions": "更多选项",
|
package/i18n/zh-CN.properties
CHANGED
|
@@ -582,12 +582,18 @@ be.messageCenter.previewError = 抱歉,无法显示此图像。
|
|
|
582
582
|
be.messageCenter.product = 产品
|
|
583
583
|
# Title for the message center modal
|
|
584
584
|
be.messageCenter.title = 新增功能
|
|
585
|
+
# Text shown in error notification banner
|
|
586
|
+
be.metadataUpdateErrorNotification = Unable to save changes. Please try again.
|
|
587
|
+
# Text shown in success notification banner
|
|
588
|
+
be.metadataUpdateSuccessNotification = {numSelected, plural, =1 {1 document updated} other {# documents updated} }
|
|
585
589
|
# Text for modified date with modified prefix.
|
|
586
590
|
be.modifiedDate = 修改日期:{date}
|
|
587
591
|
# Text for modified date with user with modified prefix.
|
|
588
592
|
be.modifiedDateBy = {name} 于 {date} 修改
|
|
589
593
|
# Label for a button that displays more options
|
|
590
594
|
be.moreOptions = 更多选项
|
|
595
|
+
# Display text for field when there are multiple items selected and have different value
|
|
596
|
+
be.multipleValues = Multiple Values
|
|
591
597
|
# Name ascending option shown in the share access drop down select.
|
|
592
598
|
be.nameASC = 名称:A → Z
|
|
593
599
|
# Name descending option shown in the share access drop down select.
|
|
@@ -834,6 +840,8 @@ be.skillUnknownError = 运行此技能或获取其数据时出错。
|
|
|
834
840
|
be.sort = 排序
|
|
835
841
|
# Label for status skill card in the preview sidebar
|
|
836
842
|
be.statusSkill = 状态
|
|
843
|
+
# Generic success label.
|
|
844
|
+
be.success = Success
|
|
837
845
|
# Shown instead of todays date.
|
|
838
846
|
be.today = 今天
|
|
839
847
|
# Label for keywords/topics skill section in the preview sidebar
|
package/i18n/zh-TW.js
CHANGED
|
@@ -292,7 +292,7 @@ export default {
|
|
|
292
292
|
"be.messageCenter.product": "產品",
|
|
293
293
|
"be.messageCenter.title": "新增內容",
|
|
294
294
|
"be.metadataUpdateErrorNotification": "Unable to save changes. Please try again.",
|
|
295
|
-
"be.metadataUpdateSuccessNotification": "
|
|
295
|
+
"be.metadataUpdateSuccessNotification": "{numSelected, plural, =1 {1 document updated} other {# documents updated} } ",
|
|
296
296
|
"be.modifiedDate": "於 {date} 修改",
|
|
297
297
|
"be.modifiedDateBy": "{name} 於 {date} 修改",
|
|
298
298
|
"be.moreOptions": "更多選項",
|
package/i18n/zh-TW.properties
CHANGED
|
@@ -582,12 +582,18 @@ be.messageCenter.previewError = 很抱歉,顯示此影像時發生問題。
|
|
|
582
582
|
be.messageCenter.product = 產品
|
|
583
583
|
# Title for the message center modal
|
|
584
584
|
be.messageCenter.title = 新增內容
|
|
585
|
+
# Text shown in error notification banner
|
|
586
|
+
be.metadataUpdateErrorNotification = Unable to save changes. Please try again.
|
|
587
|
+
# Text shown in success notification banner
|
|
588
|
+
be.metadataUpdateSuccessNotification = {numSelected, plural, =1 {1 document updated} other {# documents updated} }
|
|
585
589
|
# Text for modified date with modified prefix.
|
|
586
590
|
be.modifiedDate = 於 {date} 修改
|
|
587
591
|
# Text for modified date with user with modified prefix.
|
|
588
592
|
be.modifiedDateBy = {name} 於 {date} 修改
|
|
589
593
|
# Label for a button that displays more options
|
|
590
594
|
be.moreOptions = 更多選項
|
|
595
|
+
# Display text for field when there are multiple items selected and have different value
|
|
596
|
+
be.multipleValues = Multiple Values
|
|
591
597
|
# Name ascending option shown in the share access drop down select.
|
|
592
598
|
be.nameASC = 名稱:A → Z
|
|
593
599
|
# Name descending option shown in the share access drop down select.
|
|
@@ -834,6 +840,8 @@ be.skillUnknownError = 執行這個技能或擷取其資料時發生錯誤。
|
|
|
834
840
|
be.sort = 排序
|
|
835
841
|
# Label for status skill card in the preview sidebar
|
|
836
842
|
be.statusSkill = 狀態
|
|
843
|
+
# Generic success label.
|
|
844
|
+
be.success = Success
|
|
837
845
|
# Shown instead of todays date.
|
|
838
846
|
be.today = 今天
|
|
839
847
|
# Label for keywords/topics skill section in the preview sidebar
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "box-ui-elements",
|
|
3
|
-
"version": "24.0.0-beta.
|
|
3
|
+
"version": "24.0.0-beta.6",
|
|
4
4
|
"description": "Box UI Elements",
|
|
5
5
|
"author": "Box (https://www.box.com/)",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"@box/languages": "^1.0.0",
|
|
141
141
|
"@box/metadata-editor": "^0.122.12",
|
|
142
142
|
"@box/metadata-filter": "^1.19.2",
|
|
143
|
-
"@box/metadata-view": "^0.
|
|
143
|
+
"@box/metadata-view": "^0.48.1",
|
|
144
144
|
"@box/react-virtualized": "^9.22.3-rc-box.10",
|
|
145
145
|
"@box/types": "^0.2.1",
|
|
146
146
|
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
"@box/item-icon": "^0.17.15",
|
|
308
308
|
"@box/metadata-editor": "^0.122.12",
|
|
309
309
|
"@box/metadata-filter": "^1.19.2",
|
|
310
|
-
"@box/metadata-view": "^0.
|
|
310
|
+
"@box/metadata-view": "^0.48.1",
|
|
311
311
|
"@box/react-virtualized": "^9.22.3-rc-box.10",
|
|
312
312
|
"@box/types": "^0.2.1",
|
|
313
313
|
"@hapi/address": "^2.1.4",
|
|
@@ -9,7 +9,6 @@ const mockMetadata = {
|
|
|
9
9
|
role: ['Business Owner', 'Marketing'],
|
|
10
10
|
$template: 'templateName',
|
|
11
11
|
$parent: 'file_1188899160835',
|
|
12
|
-
name: 'something',
|
|
13
12
|
industry: 'Technology',
|
|
14
13
|
last_contacted_at: '2023-11-16T00:00:00.000Z',
|
|
15
14
|
$version: 9,
|
|
@@ -31,7 +30,6 @@ const mockMetadata = {
|
|
|
31
30
|
role: ['Developer'],
|
|
32
31
|
$template: 'templateName',
|
|
33
32
|
$parent: 'file_1318276254035',
|
|
34
|
-
name: '1',
|
|
35
33
|
industry: 'Technology',
|
|
36
34
|
last_contacted_at: '2023-11-01T00:00:00.000Z',
|
|
37
35
|
$version: 3,
|
|
@@ -94,7 +92,6 @@ const mockMetadata = {
|
|
|
94
92
|
$scope: 'enterprise_0',
|
|
95
93
|
$template: 'templateName',
|
|
96
94
|
$parent: 'file_1812508470016',
|
|
97
|
-
name: 'in folder 3 that doesnt have metadata',
|
|
98
95
|
$version: 0,
|
|
99
96
|
},
|
|
100
97
|
},
|
|
@@ -154,14 +151,6 @@ const mockSchema = {
|
|
|
154
151
|
hidden: false,
|
|
155
152
|
copyInstanceOnItemCopy: false,
|
|
156
153
|
fields: [
|
|
157
|
-
{
|
|
158
|
-
id: '56b6f00e-5db3-4875-a31d-14b20f63c0ea',
|
|
159
|
-
type: 'string',
|
|
160
|
-
key: 'name',
|
|
161
|
-
displayName: 'Name',
|
|
162
|
-
hidden: false,
|
|
163
|
-
description: 'The customer name',
|
|
164
|
-
},
|
|
165
154
|
{
|
|
166
155
|
id: '07d3c06c-5db4-4f3f-821e-19219ba70ed3',
|
|
167
156
|
type: 'date',
|
|
@@ -220,6 +209,13 @@ const mockSchema = {
|
|
|
220
209
|
},
|
|
221
210
|
],
|
|
222
211
|
},
|
|
212
|
+
{
|
|
213
|
+
id: 'c3f87bb0-44df-4689-aafe-b9ed4aecbb01',
|
|
214
|
+
type: 'float',
|
|
215
|
+
key: 'number',
|
|
216
|
+
displayName: 'Merit Count',
|
|
217
|
+
hidden: false,
|
|
218
|
+
},
|
|
223
219
|
],
|
|
224
220
|
};
|
|
225
221
|
|
|
@@ -4,7 +4,7 @@ import ItemGrid from '../common/item-grid';
|
|
|
4
4
|
import ItemList from '../common/item-list';
|
|
5
5
|
import ProgressBar from '../common/progress-bar';
|
|
6
6
|
import MetadataBasedItemList from '../../features/metadata-based-view';
|
|
7
|
-
import MetadataViewContainer, { MetadataViewContainerProps } from './MetadataViewContainer';
|
|
7
|
+
import MetadataViewContainer, { ExternalFilterValues, MetadataViewContainerProps } from './MetadataViewContainer';
|
|
8
8
|
import { isFeatureEnabled, type FeatureConfig } from '../common/feature-checking';
|
|
9
9
|
import { VIEW_ERROR, VIEW_METADATA, VIEW_MODE_LIST, VIEW_MODE_GRID, VIEW_SELECTED } from '../../constants';
|
|
10
10
|
import type { ViewMode } from '../common/flowTypes';
|
|
@@ -37,7 +37,11 @@ export interface ContentProps extends Required<ItemEventHandlers>, Required<Item
|
|
|
37
37
|
isTouch: boolean;
|
|
38
38
|
itemActions?: ItemAction[];
|
|
39
39
|
metadataTemplate?: MetadataTemplate;
|
|
40
|
-
metadataViewProps?: Omit<
|
|
40
|
+
metadataViewProps?: Omit<
|
|
41
|
+
MetadataViewContainerProps,
|
|
42
|
+
'hasError' | 'currentCollection' | 'metadataTemplate' | 'onMetadataFilter'
|
|
43
|
+
>;
|
|
44
|
+
onMetadataFilter?: (fields: ExternalFilterValues) => void;
|
|
41
45
|
onMetadataUpdate: (
|
|
42
46
|
item: BoxItem,
|
|
43
47
|
field: string,
|
|
@@ -57,6 +61,7 @@ const Content = ({
|
|
|
57
61
|
gridColumnCount,
|
|
58
62
|
metadataTemplate,
|
|
59
63
|
metadataViewProps,
|
|
64
|
+
onMetadataFilter,
|
|
60
65
|
onMetadataUpdate,
|
|
61
66
|
onSortChange,
|
|
62
67
|
view,
|
|
@@ -89,6 +94,7 @@ const Content = ({
|
|
|
89
94
|
isLoading={percentLoaded !== 100}
|
|
90
95
|
hasError={view === VIEW_ERROR}
|
|
91
96
|
metadataTemplate={metadataTemplate}
|
|
97
|
+
onMetadataFilter={onMetadataFilter}
|
|
92
98
|
onSortChange={onSortChange}
|
|
93
99
|
{...metadataViewProps}
|
|
94
100
|
/>
|