@box/metadata-template-editor 1.19.0

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 (215) hide show
  1. package/LICENSE +379 -0
  2. package/README.md +57 -0
  3. package/dist/chunks/metadata-field-configurator.module.js +17 -0
  4. package/dist/chunks/types.js +34 -0
  5. package/dist/esm/index.js +34 -0
  6. package/dist/esm/lib/components/field-selector/field-selector.js +39 -0
  7. package/dist/esm/lib/components/field-selector/index.js +4 -0
  8. package/dist/esm/lib/components/field-selector/messages.js +14 -0
  9. package/dist/esm/lib/components/field-type-dropdown/field-type-dropdown.js +47 -0
  10. package/dist/esm/lib/components/field-type-dropdown/index.js +4 -0
  11. package/dist/esm/lib/components/field-type-dropdown/messages.js +14 -0
  12. package/dist/esm/lib/components/field-type-tiles/field-type-tiles.js +40 -0
  13. package/dist/esm/lib/components/field-type-tiles/index.js +4 -0
  14. package/dist/esm/lib/components/field-type-tiles/messages.js +14 -0
  15. package/dist/esm/lib/components/metadata-field-configurator/components/confirmation-modal/confirmation-modal.js +46 -0
  16. package/dist/esm/lib/components/metadata-field-configurator/components/confirmation-modal/messages.js +18 -0
  17. package/dist/esm/lib/components/metadata-field-configurator/components/field-action-slot/field-action-slot.js +80 -0
  18. package/dist/esm/lib/components/metadata-field-configurator/components/field-context-menu/field-context-menu.js +115 -0
  19. package/dist/esm/lib/components/metadata-field-configurator/components/field-edit-content/field-edit-content.js +101 -0
  20. package/dist/esm/lib/components/metadata-field-configurator/components/levels-chain/chip.js +33 -0
  21. package/dist/esm/lib/components/metadata-field-configurator/components/levels-chain/index.js +4 -0
  22. package/dist/esm/lib/components/metadata-field-configurator/components/levels-chain/levels-chain.js +118 -0
  23. package/dist/esm/lib/components/metadata-field-configurator/components/levels-chain/utils.js +34 -0
  24. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/__mocks__/getInitialValues.js +33 -0
  25. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/dropdown-default-values.js +15 -0
  26. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/dropdown-field-configuration.js +66 -0
  27. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/sortable-option-list.js +294 -0
  28. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/index.js +6 -0
  29. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-default-values.js +15 -0
  30. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-field-configuration.js +149 -0
  31. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-field-configurator-initial-state.js +54 -0
  32. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-selector-messages.js +38 -0
  33. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-selector.js +103 -0
  34. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/useTaxonomySelect.js +19 -0
  35. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/utils.js +4 -0
  36. package/dist/esm/lib/components/metadata-field-configurator/context/field-configurator-context.js +68 -0
  37. package/dist/esm/lib/components/metadata-field-configurator/context/field-extensions-context.js +9 -0
  38. package/dist/esm/lib/components/metadata-field-configurator/context/taxonomy-options-context.js +23 -0
  39. package/dist/esm/lib/components/metadata-field-configurator/hooks/useFieldConfiguratorBehavior.js +119 -0
  40. package/dist/esm/lib/components/metadata-field-configurator/hooks/useFieldValidation.js +68 -0
  41. package/dist/esm/lib/components/metadata-field-configurator/hooks/useTaxonomyFetch.js +27 -0
  42. package/dist/esm/lib/components/metadata-field-configurator/hooks/useTemplateFieldSchema.js +44 -0
  43. package/dist/esm/lib/components/metadata-field-configurator/index.js +11 -0
  44. package/dist/esm/lib/components/metadata-field-configurator/messages/configurator-messages.js +136 -0
  45. package/dist/esm/lib/components/metadata-field-configurator/messages/dropdown-messages.js +38 -0
  46. package/dist/esm/lib/components/metadata-field-configurator/messages/levels-chain-messages.js +18 -0
  47. package/dist/esm/lib/components/metadata-field-configurator/messages/taxonomy-messages.js +38 -0
  48. package/dist/esm/lib/components/metadata-field-configurator/metadata-field-configurator.js +154 -0
  49. package/dist/esm/lib/components/metadata-field-configurator/utils.js +53 -0
  50. package/dist/esm/lib/components/metadata-field-list/index.js +5 -0
  51. package/dist/esm/lib/components/metadata-field-list/metadata-field-list.js +279 -0
  52. package/dist/esm/lib/components/metadata-template-editor-form/metadata-template-editor-form.js +137 -0
  53. package/dist/esm/lib/components/metadata-template-editor-modal/index.js +4 -0
  54. package/dist/esm/lib/components/metadata-template-editor-modal/metadata-template-editor-modal.js +103 -0
  55. package/dist/esm/lib/hooks/useMetadataTemplateFormSchema.js +16 -0
  56. package/dist/esm/lib/hooks/useTemplateNameSchema.js +12 -0
  57. package/dist/esm/lib/index.js +14 -0
  58. package/dist/esm/lib/messages.js +118 -0
  59. package/dist/esm/lib/metadata-template-editor.js +179 -0
  60. package/dist/esm/lib/utils/constants.js +8 -0
  61. package/dist/esm/lib/utils/field-options/field-type-icon.js +34 -0
  62. package/dist/esm/lib/utils/field-options/index.js +9 -0
  63. package/dist/esm/lib/utils/field-options/messages.js +48 -0
  64. package/dist/esm/lib/utils/field-options/useFieldOptions.js +19 -0
  65. package/dist/esm/lib/utils/key-generation.js +29 -0
  66. package/dist/esm/lib/utils/template-type-conversion/convertLocalConfiguratorToTemplateField.js +78 -0
  67. package/dist/esm/lib/utils/template-type-conversion/convertTemplateFieldToLocalConfigurator.js +90 -0
  68. package/dist/esm/lib/utils/template-type-conversion/generateJSONPatchTemplateOperations.js +179 -0
  69. package/dist/esm/lib/utils/template-type-conversion/mapFieldsWithUniqueKeys.js +14 -0
  70. package/dist/i18n/bn-IN.js +108 -0
  71. package/dist/i18n/bn-IN.properties +196 -0
  72. package/dist/i18n/da-DK.js +108 -0
  73. package/dist/i18n/da-DK.properties +196 -0
  74. package/dist/i18n/de-DE.js +108 -0
  75. package/dist/i18n/de-DE.properties +196 -0
  76. package/dist/i18n/en-AU.js +108 -0
  77. package/dist/i18n/en-AU.properties +196 -0
  78. package/dist/i18n/en-CA.js +108 -0
  79. package/dist/i18n/en-CA.properties +196 -0
  80. package/dist/i18n/en-GB.js +108 -0
  81. package/dist/i18n/en-GB.properties +196 -0
  82. package/dist/i18n/en-US.js +108 -0
  83. package/dist/i18n/en-US.properties +212 -0
  84. package/dist/i18n/en-x-pseudo.js +108 -0
  85. package/dist/i18n/en-x-pseudo.properties +196 -0
  86. package/dist/i18n/es-419.js +108 -0
  87. package/dist/i18n/es-419.properties +196 -0
  88. package/dist/i18n/es-ES.js +108 -0
  89. package/dist/i18n/es-ES.properties +196 -0
  90. package/dist/i18n/fi-FI.js +108 -0
  91. package/dist/i18n/fi-FI.properties +196 -0
  92. package/dist/i18n/fr-CA.js +108 -0
  93. package/dist/i18n/fr-CA.properties +196 -0
  94. package/dist/i18n/fr-FR.js +108 -0
  95. package/dist/i18n/fr-FR.properties +196 -0
  96. package/dist/i18n/hi-IN.js +108 -0
  97. package/dist/i18n/hi-IN.properties +196 -0
  98. package/dist/i18n/it-IT.js +108 -0
  99. package/dist/i18n/it-IT.properties +196 -0
  100. package/dist/i18n/ja-JP.js +108 -0
  101. package/dist/i18n/ja-JP.properties +196 -0
  102. package/dist/i18n/json/src/lib/components/field-selector/messages.json +1 -0
  103. package/dist/i18n/json/src/lib/components/field-type-dropdown/messages.json +1 -0
  104. package/dist/i18n/json/src/lib/components/field-type-tiles/messages.json +1 -0
  105. package/dist/i18n/json/src/lib/components/metadata-field-configurator/components/confirmation-modal/messages.json +1 -0
  106. package/dist/i18n/json/src/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-selector-messages.json +1 -0
  107. package/dist/i18n/json/src/lib/components/metadata-field-configurator/messages/configurator-messages.json +1 -0
  108. package/dist/i18n/json/src/lib/components/metadata-field-configurator/messages/dropdown-messages.json +1 -0
  109. package/dist/i18n/json/src/lib/components/metadata-field-configurator/messages/levels-chain-messages.json +1 -0
  110. package/dist/i18n/json/src/lib/components/metadata-field-configurator/messages/taxonomy-messages.json +1 -0
  111. package/dist/i18n/json/src/lib/messages.json +1 -0
  112. package/dist/i18n/json/src/lib/utils/field-options/messages.json +1 -0
  113. package/dist/i18n/ko-KR.js +108 -0
  114. package/dist/i18n/ko-KR.properties +196 -0
  115. package/dist/i18n/nb-NO.js +108 -0
  116. package/dist/i18n/nb-NO.properties +196 -0
  117. package/dist/i18n/nl-NL.js +108 -0
  118. package/dist/i18n/nl-NL.properties +196 -0
  119. package/dist/i18n/pl-PL.js +108 -0
  120. package/dist/i18n/pl-PL.properties +196 -0
  121. package/dist/i18n/pt-BR.js +108 -0
  122. package/dist/i18n/pt-BR.properties +196 -0
  123. package/dist/i18n/ru-RU.js +108 -0
  124. package/dist/i18n/ru-RU.properties +196 -0
  125. package/dist/i18n/sv-SE.js +108 -0
  126. package/dist/i18n/sv-SE.properties +196 -0
  127. package/dist/i18n/tr-TR.js +108 -0
  128. package/dist/i18n/tr-TR.properties +196 -0
  129. package/dist/i18n/zh-CN.js +108 -0
  130. package/dist/i18n/zh-CN.properties +196 -0
  131. package/dist/i18n/zh-TW.js +108 -0
  132. package/dist/i18n/zh-TW.properties +196 -0
  133. package/dist/styles/chip.css +1 -0
  134. package/dist/styles/dropdown-field-configuration.css +1 -0
  135. package/dist/styles/field-context-menu.css +1 -0
  136. package/dist/styles/field-selector.css +1 -0
  137. package/dist/styles/field-type-dropdown.css +1 -0
  138. package/dist/styles/levels-chain.css +1 -0
  139. package/dist/styles/metadata-field-configurator.css +1 -0
  140. package/dist/styles/metadata-field-list.css +1 -0
  141. package/dist/styles/metadata-template-editor-form.css +1 -0
  142. package/dist/styles/metadata-template-editor-modal.css +1 -0
  143. package/dist/styles/metadata-template-editor.css +1 -0
  144. package/dist/styles/sortable-option-list.css +1 -0
  145. package/dist/styles/taxonomy-field-configuration.css +1 -0
  146. package/dist/styles/taxonomy-field-configurator-initial-state.css +1 -0
  147. package/dist/styles/taxonomy-selector.css +1 -0
  148. package/dist/types/index.d.ts +8 -0
  149. package/dist/types/lib/components/field-selector/field-selector.d.ts +16 -0
  150. package/dist/types/lib/components/field-selector/index.d.ts +1 -0
  151. package/dist/types/lib/components/field-selector/messages.d.ts +13 -0
  152. package/dist/types/lib/components/field-type-dropdown/field-type-dropdown.d.ts +15 -0
  153. package/dist/types/lib/components/field-type-dropdown/index.d.ts +2 -0
  154. package/dist/types/lib/components/field-type-dropdown/messages.d.ts +12 -0
  155. package/dist/types/lib/components/field-type-tiles/field-type-tiles.d.ts +12 -0
  156. package/dist/types/lib/components/field-type-tiles/index.d.ts +2 -0
  157. package/dist/types/lib/components/field-type-tiles/messages.d.ts +12 -0
  158. package/dist/types/lib/components/metadata-field-configurator/components/confirmation-modal/confirmation-modal.d.ts +31 -0
  159. package/dist/types/lib/components/metadata-field-configurator/components/confirmation-modal/messages.d.ts +18 -0
  160. package/dist/types/lib/components/metadata-field-configurator/components/field-action-slot/field-action-slot.d.ts +30 -0
  161. package/dist/types/lib/components/metadata-field-configurator/components/field-context-menu/field-context-menu.d.ts +23 -0
  162. package/dist/types/lib/components/metadata-field-configurator/components/field-edit-content/field-edit-content.d.ts +20 -0
  163. package/dist/types/lib/components/metadata-field-configurator/components/levels-chain/chip.d.ts +17 -0
  164. package/dist/types/lib/components/metadata-field-configurator/components/levels-chain/index.d.ts +1 -0
  165. package/dist/types/lib/components/metadata-field-configurator/components/levels-chain/levels-chain.d.ts +31 -0
  166. package/dist/types/lib/components/metadata-field-configurator/components/levels-chain/utils.d.ts +10 -0
  167. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/__mocks__/getInitialValues.d.ts +2 -0
  168. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/dropdown-default-values.d.ts +2 -0
  169. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/dropdown-field-configuration.d.ts +1 -0
  170. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/sortable-option-list.d.ts +6 -0
  171. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/index.d.ts +2 -0
  172. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-default-values.d.ts +2 -0
  173. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-field-configuration.d.ts +1 -0
  174. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-field-configurator-initial-state.d.ts +1 -0
  175. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-selector-messages.d.ts +43 -0
  176. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-selector.d.ts +12 -0
  177. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/useTaxonomySelect.d.ts +5 -0
  178. package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/utils.d.ts +2 -0
  179. package/dist/types/lib/components/metadata-field-configurator/context/field-configurator-context.d.ts +57 -0
  180. package/dist/types/lib/components/metadata-field-configurator/context/field-extensions-context.d.ts +52 -0
  181. package/dist/types/lib/components/metadata-field-configurator/context/taxonomy-options-context.d.ts +21 -0
  182. package/dist/types/lib/components/metadata-field-configurator/hooks/useFieldConfiguratorBehavior.d.ts +57 -0
  183. package/dist/types/lib/components/metadata-field-configurator/hooks/useFieldValidation.d.ts +27 -0
  184. package/dist/types/lib/components/metadata-field-configurator/hooks/useTaxonomyFetch.d.ts +19 -0
  185. package/dist/types/lib/components/metadata-field-configurator/hooks/useTemplateFieldSchema.d.ts +15 -0
  186. package/dist/types/lib/components/metadata-field-configurator/index.d.ts +6 -0
  187. package/dist/types/lib/components/metadata-field-configurator/messages/configurator-messages.d.ts +164 -0
  188. package/dist/types/lib/components/metadata-field-configurator/messages/dropdown-messages.d.ts +43 -0
  189. package/dist/types/lib/components/metadata-field-configurator/messages/levels-chain-messages.d.ts +18 -0
  190. package/dist/types/lib/components/metadata-field-configurator/messages/taxonomy-messages.d.ts +43 -0
  191. package/dist/types/lib/components/metadata-field-configurator/metadata-field-configurator.d.ts +191 -0
  192. package/dist/types/lib/components/metadata-field-configurator/stories/story-fixtures.d.ts +5 -0
  193. package/dist/types/lib/components/metadata-field-configurator/utils.d.ts +24 -0
  194. package/dist/types/lib/components/metadata-field-list/index.d.ts +2 -0
  195. package/dist/types/lib/components/metadata-field-list/metadata-field-list.d.ts +109 -0
  196. package/dist/types/lib/components/metadata-template-editor-form/metadata-template-editor-form.d.ts +20 -0
  197. package/dist/types/lib/components/metadata-template-editor-modal/index.d.ts +1 -0
  198. package/dist/types/lib/components/metadata-template-editor-modal/metadata-template-editor-modal.d.ts +56 -0
  199. package/dist/types/lib/hooks/useMetadataTemplateFormSchema.d.ts +17 -0
  200. package/dist/types/lib/hooks/useTemplateNameSchema.d.ts +2 -0
  201. package/dist/types/lib/index.d.ts +7 -0
  202. package/dist/types/lib/messages.d.ts +143 -0
  203. package/dist/types/lib/metadata-template-editor.d.ts +290 -0
  204. package/dist/types/lib/types.d.ts +311 -0
  205. package/dist/types/lib/utils/constants.d.ts +9 -0
  206. package/dist/types/lib/utils/field-options/field-type-icon.d.ts +6 -0
  207. package/dist/types/lib/utils/field-options/index.d.ts +4 -0
  208. package/dist/types/lib/utils/field-options/messages.d.ts +60 -0
  209. package/dist/types/lib/utils/field-options/useFieldOptions.d.ts +34 -0
  210. package/dist/types/lib/utils/key-generation.d.ts +24 -0
  211. package/dist/types/lib/utils/template-type-conversion/convertLocalConfiguratorToTemplateField.d.ts +25 -0
  212. package/dist/types/lib/utils/template-type-conversion/convertTemplateFieldToLocalConfigurator.d.ts +8 -0
  213. package/dist/types/lib/utils/template-type-conversion/generateJSONPatchTemplateOperations.d.ts +16 -0
  214. package/dist/types/lib/utils/template-type-conversion/mapFieldsWithUniqueKeys.d.ts +8 -0
  215. package/package.json +61 -0
@@ -0,0 +1,108 @@
1
+ export default {
2
+ "groupSharedFeatures.metadataTemplateEditor.allTaxonomies": "所有分類系統",
3
+ "groupSharedFeatures.metadataTemplateEditor.configurator.cancelDeleteField": "取消",
4
+ "groupSharedFeatures.metadataTemplateEditor.configurator.confirmDeleteField": "確認",
5
+ "groupSharedFeatures.metadataTemplateEditor.configurator.contextMenuAriaLabel": "欄位設定器上下文選單",
6
+ "groupSharedFeatures.metadataTemplateEditor.configurator.deleteField": "移除",
7
+ "groupSharedFeatures.metadataTemplateEditor.configurator.deleteFieldAriaLabel": "刪除欄位",
8
+ "groupSharedFeatures.metadataTemplateEditor.configurator.deleteFieldDescription": "所有與此欄位相關聯的檔案或資料夾現在都會有一個未指派的值。儲存範本後,此動作無法復原。",
9
+ "groupSharedFeatures.metadataTemplateEditor.configurator.deleteFieldTitle": "刪除「{fieldName}」欄位",
10
+ "groupSharedFeatures.metadataTemplateEditor.configurator.descriptionInfoTooltip": "說明內容對任何存取範本的人員均可見。此外,還能協助 Box AI 為您尋找並自動填入中繼資料。",
11
+ "groupSharedFeatures.metadataTemplateEditor.configurator.descriptionLearnMoreBadgeAriaLabel": "深入瞭解說明欄位",
12
+ "groupSharedFeatures.metadataTemplateEditor.configurator.dragAndDropFieldAriaLabel": "拖放重新排序欄位",
13
+ "groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.addAnOptionOptionPlaceholder": "新增選項",
14
+ "groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.addOption": "+ 新增選項",
15
+ "groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.allowMultipleSelection": "允許多個選取",
16
+ "groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.deleteDropdownOptionAriaLabel": "刪除選項",
17
+ "groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.deleteOptionDescription": "所有與此相關聯的檔案或資料夾現在都會有一個未指派的值。儲存範本後,此動作無法復原。",
18
+ "groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.deleteOptionTitle": "刪除「{optionName}」選項",
19
+ "groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.dragAndDropOptionAriaLabel": "拖放重新排序選項",
20
+ "groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.optionListValidationError": "此清單中的部分選項包含驗證錯誤。",
21
+ "groupSharedFeatures.metadataTemplateEditor.configurator.duplicateField": "Duplicate",
22
+ "groupSharedFeatures.metadataTemplateEditor.configurator.duplicateFieldAriaLabel": "Duplicate field",
23
+ "groupSharedFeatures.metadataTemplateEditor.configurator.editTabAriaLabel": "編輯欄位",
24
+ "groupSharedFeatures.metadataTemplateEditor.configurator.fieldDescriptionInputPlaceholder": "新增顯示在使用者工具提示中的自訂說明",
25
+ "groupSharedFeatures.metadataTemplateEditor.configurator.fieldDescriptionLabel": "欄位說明",
26
+ "groupSharedFeatures.metadataTemplateEditor.configurator.fieldNameInputPlaceholder": "新增欄位名稱/標籤",
27
+ "groupSharedFeatures.metadataTemplateEditor.configurator.fieldNameLabel": "欄位名稱",
28
+ "groupSharedFeatures.metadataTemplateEditor.configurator.fieldTypeLabel": "欄位類型",
29
+ "groupSharedFeatures.metadataTemplateEditor.configurator.fieldTypePlaceholder": "選取類型",
30
+ "groupSharedFeatures.metadataTemplateEditor.configurator.hiddenStatus": "已隱藏",
31
+ "groupSharedFeatures.metadataTemplateEditor.configurator.hideField": "隱藏欄位",
32
+ "groupSharedFeatures.metadataTemplateEditor.configurator.levelsChain.chipNotSelected": "未選取",
33
+ "groupSharedFeatures.metadataTemplateEditor.configurator.levelsChain.chipSelected": "個選定項目",
34
+ "groupSharedFeatures.metadataTemplateEditor.configurator.levelsChain.noLevels": "沒有要顯示的等級。",
35
+ "groupSharedFeatures.metadataTemplateEditor.configurator.moveDown": "下移",
36
+ "groupSharedFeatures.metadataTemplateEditor.configurator.moveDownAriaLabel": "將欄位下移",
37
+ "groupSharedFeatures.metadataTemplateEditor.configurator.moveUp": "上移",
38
+ "groupSharedFeatures.metadataTemplateEditor.configurator.moveUpAriaLabel": "將欄位上移",
39
+ "groupSharedFeatures.metadataTemplateEditor.configurator.showField": "顯示",
40
+ "groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.allowMultipleTaxonomySelections": "使用者可以挑選多個值",
41
+ "groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.callToActionHeader": "選擇或建立屬性分類系統",
42
+ "groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.callToActionSubheader": "分類系統允許您為下拉欄位設定動態和可重複使用的選項。",
43
+ "groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.noTaxonomySelectedError": "請選取分類",
44
+ "groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.selection": "使用者可以從哪個等級選取值?",
45
+ "groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.selection.anyLevelSelection": "使用者可以從清單中的任何等級挑選",
46
+ "groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.selection.chooseTaxonomyLevel": "選擇分類等級",
47
+ "groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.selection.requiredSelection": "使用者必須從以下等級挑選:",
48
+ "groupSharedFeatures.metadataTemplateEditor.confirmationModal.cancelButtonText": "取消",
49
+ "groupSharedFeatures.metadataTemplateEditor.confirmationModal.closeButtonAriaLabel": "關閉",
50
+ "groupSharedFeatures.metadataTemplateEditor.confirmationModal.confirmButtonText": "確認",
51
+ "groupSharedFeatures.metadataTemplateEditor.emptyState.heading": "新增您的第一個欄位",
52
+ "groupSharedFeatures.metadataTemplateEditor.emptyState.selectFieldTypeAriaLabel": "選取欄位類型。",
53
+ "groupSharedFeatures.metadataTemplateEditor.fieldSelector.selectField": "Select a Field",
54
+ "groupSharedFeatures.metadataTemplateEditor.fieldSelector.unnamedField": "(Unnamed field)",
55
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.date": "帶日曆選擇工具的日期欄位",
56
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.dropdown": "支援單選和複選",
57
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.number": "支援所有數值",
58
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.taxonomy": "可選選項的階層清單",
59
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.text": "自由文字輸入,最多 10,000 個字元",
60
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypeDropdown.addField": "新增欄位",
61
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypeDropdown.addFieldAriaLabel": "新增欄位",
62
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypes.date": "日期",
63
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypes.dropdown": "下拉式選單",
64
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypes.number": "數字",
65
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypes.taxonomy": "分類",
66
+ "groupSharedFeatures.metadataTemplateEditor.fieldTypes.text": "文字",
67
+ "groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.duplicateOption": "選項標籤必須是唯一的。",
68
+ "groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.fieldNameCannotBeEmpty": "欄位名稱不能為空。",
69
+ "groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.fieldNameTooLong": "欄位名稱太長。",
70
+ "groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.optionKeyCannotBeEmpty": "選項不能為空。",
71
+ "groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.selectedLevelRequired": "請選取等級。",
72
+ "groupSharedFeatures.metadataTemplateEditor.loadTaxonomiesError": "無法載入分類。",
73
+ "groupSharedFeatures.metadataTemplateEditor.loadingTaxonomies": "正在載入分類…",
74
+ "groupSharedFeatures.metadataTemplateEditor.recentlyUsedTaxonomies": "最近使用過的項目",
75
+ "groupSharedFeatures.metadataTemplateEditor.retryLoadTaxonomies": "重試",
76
+ "groupSharedFeatures.metadataTemplateEditor.searchTaxonomiesInputPlaceholder": "搜尋分類",
77
+ "groupSharedFeatures.metadataTemplateEditor.taxonomySelector": "選擇分類",
78
+ "groupSharedFeatures.metadataTemplateEditor.taxonomySelectorAriaLabel": "開啟分類選取工具",
79
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.cancel": "取消",
80
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.closeAriaLabel": "關閉中繼資料範本編輯器",
81
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.createTitle": "新的中繼資料範本",
82
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.displayNameUsedBefore": "此顯示名稱之前已使用過。請選擇另一個。",
83
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.editTitle": "編輯「{templateName}」中繼資料範本",
84
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.fetchError": "出了點問題。請重新載入以再試一次。",
85
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.fieldNameTooLong": "欄位名稱太長。",
86
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.fieldRequired": "此欄位為必填",
87
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.fields.description": "將您的第一個欄位新增至範本:",
88
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.fields.label": "欄位",
89
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.fields.learnMore": "深入瞭解中繼資料欄位類型",
90
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.forbiddenDisplayName": "此顯示名稱禁止使用。請選擇另一個。",
91
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.invalidCharacters": "欄位包含非法字元。",
92
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.loading": "載入範本中…",
93
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.notificationCloseButtonAriaLabel": "關閉通知",
94
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.notificationErrorIconAriaLabel": "錯誤",
95
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.notificationSuccessIconAriaLabel": "成功",
96
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.reload": "重新載入",
97
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.save": "儲存",
98
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.saveErrorNotification": "無法儲存範本。請再試一次。",
99
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.saveSuccessNotification": "已成功儲存範本。",
100
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.submitting": "正在提交…",
101
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.templateName.description": "向使用者顯示的範本顯示名稱",
102
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.templateName.label": "範本名稱",
103
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesBody": "You have unsaved changes. If you leave now, your changes will be lost.",
104
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesDiscard": "Leave Without Saving",
105
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesKeepEditing": "Keep Editing",
106
+ "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesTitle": "Unsaved Changes",
107
+ "groupSharedFeatures.metadataTemplateEditor.templates.details.fields.thisFieldContainsErrors": "此欄位包含驗證錯誤。"
108
+ }
@@ -0,0 +1,196 @@
1
+ # Label for the section that shows all taxonomies
2
+ groupSharedFeatures.metadataTemplateEditor.allTaxonomies = 所有分類系統
3
+ # Label for the cancel button in the confirmation modal
4
+ groupSharedFeatures.metadataTemplateEditor.configurator.cancelDeleteField = 取消
5
+ # Label for the confirm button in the confirmation modal
6
+ groupSharedFeatures.metadataTemplateEditor.configurator.confirmDeleteField = 確認
7
+ # Aria label for the context menu of the field configurator
8
+ groupSharedFeatures.metadataTemplateEditor.configurator.contextMenuAriaLabel = 欄位設定器上下文選單
9
+ # Label for the button to delete a field
10
+ groupSharedFeatures.metadataTemplateEditor.configurator.deleteField = 移除
11
+ # Aria label for the button to delete a field
12
+ groupSharedFeatures.metadataTemplateEditor.configurator.deleteFieldAriaLabel = 刪除欄位
13
+ # Description for the delete field confirmation modal
14
+ groupSharedFeatures.metadataTemplateEditor.configurator.deleteFieldDescription = 所有與此欄位相關聯的檔案或資料夾現在都會有一個未指派的值。儲存範本後,此動作無法復原。
15
+ # Title for the delete field confirmation modal
16
+ groupSharedFeatures.metadataTemplateEditor.configurator.deleteFieldTitle = 刪除「{fieldName}」欄位
17
+ # Description of the inline notice that explains the purpose of the description field.
18
+ groupSharedFeatures.metadataTemplateEditor.configurator.descriptionInfoTooltip = 說明內容對任何存取範本的人員均可見。此外,還能協助 Box AI 為您尋找並自動填入中繼資料。
19
+ # Aria label for the info badge that provides more information about the description field.
20
+ groupSharedFeatures.metadataTemplateEditor.configurator.descriptionLearnMoreBadgeAriaLabel = 深入瞭解說明欄位
21
+ # Aria label for the button to drag and drop a field to reorder it
22
+ groupSharedFeatures.metadataTemplateEditor.configurator.dragAndDropFieldAriaLabel = 拖放重新排序欄位
23
+ # Placeholder text for the input to add a new dropdown option
24
+ groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.addAnOptionOptionPlaceholder = 新增選項
25
+ # Label for the button to add a new dropdown option
26
+ groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.addOption = + 新增選項
27
+ # Label for the checkbox to allow multiple selections in a dropdown
28
+ groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.allowMultipleSelection = 允許多個選取
29
+ # Label for the button to delete a dropdown option
30
+ groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.deleteDropdownOptionAriaLabel = 刪除選項
31
+ # Description for the delete option confirmation modal
32
+ groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.deleteOptionDescription = 所有與此相關聯的檔案或資料夾現在都會有一個未指派的值。儲存範本後,此動作無法復原。
33
+ # Title for the delete option confirmation modal
34
+ groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.deleteOptionTitle = 刪除「{optionName}」選項
35
+ # Aria label for the button to drag and drop a dropdown option to reorder it
36
+ groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.dragAndDropOptionAriaLabel = 拖放重新排序選項
37
+ # Generic error shown above the option list when any dropdown option has a validation error
38
+ groupSharedFeatures.metadataTemplateEditor.configurator.dropdown.optionListValidationError = 此清單中的部分選項包含驗證錯誤。
39
+ # Aria label for the Edit tab button in the field configurator extension tab switcher
40
+ groupSharedFeatures.metadataTemplateEditor.configurator.editTabAriaLabel = 編輯欄位
41
+ # Placeholder for a text input allowing the description of a field in templates.
42
+ groupSharedFeatures.metadataTemplateEditor.configurator.fieldDescriptionInputPlaceholder = 新增顯示在使用者工具提示中的自訂說明
43
+ # Label for a text input allowing the description of a field name in templates.
44
+ groupSharedFeatures.metadataTemplateEditor.configurator.fieldDescriptionLabel = 欄位說明
45
+ # Placeholder for a text input allowing the specification of a field name in templates.
46
+ groupSharedFeatures.metadataTemplateEditor.configurator.fieldNameInputPlaceholder = 新增欄位名稱/標籤
47
+ # Label for a text input allowing the specification of a field name in templates.
48
+ groupSharedFeatures.metadataTemplateEditor.configurator.fieldNameLabel = 欄位名稱
49
+ # Label for a dropdown allowing the selection of a field type in templates.
50
+ groupSharedFeatures.metadataTemplateEditor.configurator.fieldTypeLabel = 欄位類型
51
+ # Placeholder for a dropdown allowing the selection of a field type in templates.
52
+ groupSharedFeatures.metadataTemplateEditor.configurator.fieldTypePlaceholder = 選取類型
53
+ # Label for the status badge indicating that a field is hidden
54
+ groupSharedFeatures.metadataTemplateEditor.configurator.hiddenStatus = 已隱藏
55
+ # Text for the button to hide a field
56
+ groupSharedFeatures.metadataTemplateEditor.configurator.hideField = 隱藏欄位
57
+ # Accessibility label indicating that a taxonomy level chip is not selected.
58
+ groupSharedFeatures.metadataTemplateEditor.configurator.levelsChain.chipNotSelected = 未選取
59
+ # Accessibility label indicating that a taxonomy level chip is selected.
60
+ groupSharedFeatures.metadataTemplateEditor.configurator.levelsChain.chipSelected = 個選定項目
61
+ # Message displayed when there are no levels to display in the levels chain.
62
+ groupSharedFeatures.metadataTemplateEditor.configurator.levelsChain.noLevels = 沒有要顯示的等級。
63
+ # Label for the button to move a field down in the list
64
+ groupSharedFeatures.metadataTemplateEditor.configurator.moveDown = 下移
65
+ # Aria label for the button to move a field down in the list
66
+ groupSharedFeatures.metadataTemplateEditor.configurator.moveDownAriaLabel = 將欄位下移
67
+ # Label for the button to move a field up in the list
68
+ groupSharedFeatures.metadataTemplateEditor.configurator.moveUp = 上移
69
+ # Aria label for the button to move a field up in the list
70
+ groupSharedFeatures.metadataTemplateEditor.configurator.moveUpAriaLabel = 將欄位上移
71
+ # Text for the button to show a field
72
+ groupSharedFeatures.metadataTemplateEditor.configurator.showField = 顯示
73
+ # Label for the toggle that allows you to set the taxonomy field in the template as multiple selection.
74
+ groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.allowMultipleTaxonomySelections = 使用者可以挑選多個值
75
+ # Call to action header
76
+ groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.callToActionHeader = 選擇或建立屬性分類系統
77
+ # Call to action subheader
78
+ groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.callToActionSubheader = 分類系統允許您為下拉欄位設定動態和可重複使用的選項。
79
+ # Error message shown when no taxonomy has been selected
80
+ groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.noTaxonomySelectedError = 請選取分類
81
+ # Label in taxonomy template field defining the selection policy
82
+ groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.selection = 使用者可以從哪個等級選取值?
83
+ # Radio button label for any level selection
84
+ groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.selection.anyLevelSelection = 使用者可以從清單中的任何等級挑選
85
+ # Label for the dropdown to choose the taxonomy level
86
+ groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.selection.chooseTaxonomyLevel = 選擇分類等級
87
+ # Radio button label for required selection
88
+ groupSharedFeatures.metadataTemplateEditor.configurator.taxonomy.selection.requiredSelection = 使用者必須從以下等級挑選:
89
+ # Text for the cancel button in the confirmation modal
90
+ groupSharedFeatures.metadataTemplateEditor.confirmationModal.cancelButtonText = 取消
91
+ # Aria label for the close button ("x") in the modal
92
+ groupSharedFeatures.metadataTemplateEditor.confirmationModal.closeButtonAriaLabel = 關閉
93
+ # Text for the confirm button in the confirmation modal
94
+ groupSharedFeatures.metadataTemplateEditor.confirmationModal.confirmButtonText = 確認
95
+ # Heading for the empty state when no fields exist yet
96
+ groupSharedFeatures.metadataTemplateEditor.emptyState.heading = 新增您的第一個欄位
97
+ # Aria label for the field type picker tiles.
98
+ groupSharedFeatures.metadataTemplateEditor.emptyState.selectFieldTypeAriaLabel = 選取欄位類型。
99
+ # Field type description for date input
100
+ groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.date = 帶日曆選擇工具的日期欄位
101
+ # Field type description for dropdown selection
102
+ groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.dropdown = 支援單選和複選
103
+ # Field type description for numerical input
104
+ groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.number = 支援所有數值
105
+ # Field type description for taxonomy selection
106
+ groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.taxonomy = 可選選項的階層清單
107
+ # Field type description for text input
108
+ groupSharedFeatures.metadataTemplateEditor.fieldTypeDescriptions.text = 自由文字輸入,最多 10,000 個字元
109
+ # Label for the add field dropdown trigger button
110
+ groupSharedFeatures.metadataTemplateEditor.fieldTypeDropdown.addField = 新增欄位
111
+ # Aria label for the add field button
112
+ groupSharedFeatures.metadataTemplateEditor.fieldTypeDropdown.addFieldAriaLabel = 新增欄位
113
+ # Field type for date input
114
+ groupSharedFeatures.metadataTemplateEditor.fieldTypes.date = 日期
115
+ # Field type for dropdown selection
116
+ groupSharedFeatures.metadataTemplateEditor.fieldTypes.dropdown = 下拉式選單
117
+ # Field type for numerical input
118
+ groupSharedFeatures.metadataTemplateEditor.fieldTypes.number = 數字
119
+ # Field type for taxonomy selection
120
+ groupSharedFeatures.metadataTemplateEditor.fieldTypes.taxonomy = 分類
121
+ # Field type for text input
122
+ groupSharedFeatures.metadataTemplateEditor.fieldTypes.text = 文字
123
+ # Error message for duplicate option labels
124
+ groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.duplicateOption = 選項標籤必須是唯一的。
125
+ # Error message displayed when a required field is not filled out in templates.
126
+ groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.fieldNameCannotBeEmpty = 欄位名稱不能為空。
127
+ # Error message for field name length
128
+ groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.fieldNameTooLong = 欄位名稱太長。
129
+ # Error message for empty option labels
130
+ groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.optionKeyCannotBeEmpty = 選項不能為空。
131
+ # Error message for missing selected level in taxonomy
132
+ groupSharedFeatures.metadataTemplateEditor.fields.validationErrors.selectedLevelRequired = 請選取等級。
133
+ # Error message shown when the taxonomy fetch fails
134
+ groupSharedFeatures.metadataTemplateEditor.loadTaxonomiesError = 無法載入分類。
135
+ # Accessible label shown while taxonomy options are being fetched
136
+ groupSharedFeatures.metadataTemplateEditor.loadingTaxonomies = 正在載入分類…
137
+ # Label for the section that shows recently used taxonomies
138
+ groupSharedFeatures.metadataTemplateEditor.recentlyUsedTaxonomies = 最近使用過的項目
139
+ # Button label to retry a failed taxonomy fetch
140
+ groupSharedFeatures.metadataTemplateEditor.retryLoadTaxonomies = 重試
141
+ # Placeholder text for the search input in the taxonomy selector
142
+ groupSharedFeatures.metadataTemplateEditor.searchTaxonomiesInputPlaceholder = 搜尋分類
143
+ # Text for the button that opens the taxonomy selector
144
+ groupSharedFeatures.metadataTemplateEditor.taxonomySelector = 選擇分類
145
+ # Aria label for the button that opens the taxonomy selector
146
+ groupSharedFeatures.metadataTemplateEditor.taxonomySelectorAriaLabel = 開啟分類選取工具
147
+ # Cancel button
148
+ groupSharedFeatures.metadataTemplateEditor.templateForm.cancel = 取消
149
+ # Accessible label for the close (×) button on the metadata template editor modal
150
+ groupSharedFeatures.metadataTemplateEditor.templateForm.closeAriaLabel = 關閉中繼資料範本編輯器
151
+ # Default title displayed in the metadata template editor header
152
+ groupSharedFeatures.metadataTemplateEditor.templateForm.createTitle = 新的中繼資料範本
153
+ # Error message for display name already used before.
154
+ groupSharedFeatures.metadataTemplateEditor.templateForm.displayNameUsedBefore = 此顯示名稱之前已使用過。請選擇另一個。
155
+ # Title displayed in the metadata template editor header for editing an existing template
156
+ groupSharedFeatures.metadataTemplateEditor.templateForm.editTitle = 編輯「{templateName}」中繼資料範本
157
+ # Error message shown when the template data could not be fetched
158
+ groupSharedFeatures.metadataTemplateEditor.templateForm.fetchError = 出了點問題。請重新載入以再試一次。
159
+ # Error message for field name too long
160
+ groupSharedFeatures.metadataTemplateEditor.templateForm.fieldNameTooLong = 欄位名稱太長。
161
+ # Error message for required fields
162
+ groupSharedFeatures.metadataTemplateEditor.templateForm.fieldRequired = 此欄位為必填
163
+ # Description for the fields section
164
+ groupSharedFeatures.metadataTemplateEditor.templateForm.fields.description = 將您的第一個欄位新增至範本:
165
+ # Label for the fields section
166
+ groupSharedFeatures.metadataTemplateEditor.templateForm.fields.label = 欄位
167
+ # Link to more information about metadata field types
168
+ groupSharedFeatures.metadataTemplateEditor.templateForm.fields.learnMore = 深入瞭解中繼資料欄位類型
169
+ # Error message for forbidden display name
170
+ groupSharedFeatures.metadataTemplateEditor.templateForm.forbiddenDisplayName = 此顯示名稱禁止使用。請選擇另一個。
171
+ # Error message for invalid characters
172
+ groupSharedFeatures.metadataTemplateEditor.templateForm.invalidCharacters = 欄位包含非法字元。
173
+ # Aria label for the loading indicator shown while template data is being fetched
174
+ groupSharedFeatures.metadataTemplateEditor.templateForm.loading = 載入範本中…
175
+ # Accessible label for the close button on save notifications
176
+ groupSharedFeatures.metadataTemplateEditor.templateForm.notificationCloseButtonAriaLabel = 關閉通知
177
+ # Accessible label for the error icon in the save notification
178
+ groupSharedFeatures.metadataTemplateEditor.templateForm.notificationErrorIconAriaLabel = 錯誤
179
+ # Accessible label for the success icon in the save notification
180
+ groupSharedFeatures.metadataTemplateEditor.templateForm.notificationSuccessIconAriaLabel = 成功
181
+ # Label for the reload button shown when template loading fails
182
+ groupSharedFeatures.metadataTemplateEditor.templateForm.reload = 重新載入
183
+ # Save button
184
+ groupSharedFeatures.metadataTemplateEditor.templateForm.save = 儲存
185
+ # Error notification message shown when the template fails to save
186
+ groupSharedFeatures.metadataTemplateEditor.templateForm.saveErrorNotification = 無法儲存範本。請再試一次。
187
+ # Success notification message shown after the template is saved
188
+ groupSharedFeatures.metadataTemplateEditor.templateForm.saveSuccessNotification = 已成功儲存範本。
189
+ # Aria Label for the save changes button in metadata template
190
+ groupSharedFeatures.metadataTemplateEditor.templateForm.submitting = 正在提交…
191
+ # Description for the template name field
192
+ groupSharedFeatures.metadataTemplateEditor.templateForm.templateName.description = 向使用者顯示的範本顯示名稱
193
+ # Label for the template name field
194
+ groupSharedFeatures.metadataTemplateEditor.templateForm.templateName.label = 範本名稱
195
+ # Message to show that the collapsed field configurator contains errors
196
+ groupSharedFeatures.metadataTemplateEditor.templates.details.fields.thisFieldContainsErrors = 此欄位包含驗證錯誤。
@@ -0,0 +1 @@
1
+ ._chip_x2zx9_1{display:inline-block;padding:var(--space-1) var(--space-3);color:var(--text-text-on-light);font-weight:var(--body-default-font-weight);font-size:var(--body-default-font-size);line-height:var(--title-small-line-height);background-color:var(--surface-inputchip-surface);border-radius:var(--radius-half);-webkit-user-select:none;user-select:none}._chip_x2zx9_1._selected_x2zx9_12{color:var(--text-text-on-dark);background-color:var(--surface-surface-brand)}
@@ -0,0 +1 @@
1
+ ._dropdownFieldConfiguration_rjv8w_1{display:flex;flex-direction:column;gap:var(--space-4)}._addOptionButton_rjv8w_7{align-self:flex-start}
@@ -0,0 +1 @@
1
+ ._contextMenuTrigger_102vn_1 svg{pointer-events:none}._menuItem_102vn_5{display:flex;gap:var(--space-4);align-items:center}._contextMenu_102vn_1{min-width:270px}._contextMenu_102vn_1 ._divider_102vn_14{margin:var(--space-2) 0}
@@ -0,0 +1 @@
1
+ ._fieldSelectorTrigger_cj5ij_1{color:var(--text-on-light-secondary)}
@@ -0,0 +1 @@
1
+ ._addField_1bl6g_1{width:100%}
@@ -0,0 +1 @@
1
+ ._levelsChain_1wuki_1{display:flex;gap:11px;align-items:center;width:100%;margin:0;padding:0;overflow:hidden;white-space:nowrap}._levelsChain_1wuki_1 ._hiddenLevelsButton_1wuki_11{all:unset}._levelsChain_1wuki_1 li{display:flex;gap:8px;align-items:center}
@@ -0,0 +1 @@
1
+ ._fieldset_1bz4h_1{margin:0;padding:0;border:0}._toolbarActions_1bz4h_7{display:flex;align-items:center;gap:var(--space-2)}._extensionTabsContainer_1bz4h_13{height:auto;overflow:visible;padding-right:var(--space-2);margin-right:var(--space-1);border-right:1px solid var(--border-border-on-light)}._extensionContent_1bz4h_21{padding:var(--space-4) 0}._fieldAccordionItem_1bz4h_25{max-width:650px}._expandedToolbarActions_1bz4h_29{display:flex;align-items:center;gap:var(--space-1)}._fieldAccordionItem_1bz4h_25[data-state=closed]{border:2px solid transparent}._fieldAccordionItem_1bz4h_25[data-state=closed] ._expandedToolbarActions_1bz4h_29{display:none}._fieldAccordionItem_1bz4h_25[data-state=closed] ._dragHandle_1bz4h_41{cursor:grab;padding:var(--space-2);display:flex;align-items:center;justify-content:center;visibility:hidden}._fieldAccordionItem_1bz4h_25[data-state=closed] ._dragHandle_1bz4h_41:active{cursor:grabbing}._fieldAccordionItem_1bz4h_25[data-state=closed]:hover ._dragHandle_1bz4h_41{visibility:visible}._fieldAccordionItem_1bz4h_25[data-state=open]{background-color:var(--box-blue-02);border:2px solid var(--box-blue-100)}._fieldAccordionItem_1bz4h_25[data-state=open]:first-child{border-top-left-radius:1.4rem!important;border-top-right-radius:1.4rem!important}._errorIcon_1bz4h_65{display:flex;align-items:center;color:var(--color-red-100)}._validationErrors_1bz4h_71{margin-block-start:var(--space-2)}._expandedContent_1bz4h_75{display:flex;flex-direction:column;gap:var(--space-4)}._basic_1bz4h_81{display:grid;grid-template-columns:3fr 2fr;gap:var(--space-4)}._basic_1bz4h_81 ._fieldTypeSelect_1bz4h_86{min-width:145px}._typeSpecific_1bz4h_90{margin-top:var(--space-2);display:flex;flex-direction:column;gap:var(--space-4)}._description_1bz4h_97{display:flex;flex-direction:column;gap:var(--space-4)}._description_1bz4h_97 ._labelWithTooltip_1bz4h_102{display:inline-block;color:var(--text-text-on-light);font-weight:var(--label-bold-font-weight);font-size:var(--body-default-bold-font-size);font-family:var(--label-bold-font-family);line-height:var(--label-bold-line-height);letter-spacing:var(--label-bold-letter-spacing);margin-block-end:var(--space-2)}
@@ -0,0 +1 @@
1
+ ._fieldList_18x5c_1{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--space-2);max-width:650px}._fieldItem_18x5c_11._dragging_18x5c_11{opacity:0}._accordionRootContainer_18x5c_15>*{padding:0}
@@ -0,0 +1 @@
1
+ ._form_8cb30_1{display:flex;flex-direction:column;gap:var(--space-4);max-width:620px}._loading_8cb30_8{display:flex;justify-content:center;align-items:center;padding:var(--space-8) 0}._fields_8cb30_15{display:flex;flex-direction:column;gap:var(--space-4)}._actions_8cb30_21{display:flex;justify-content:flex-end;gap:var(--space-3);padding-top:var(--space-2)}._fieldsHeader_8cb30_28{display:flex;align-items:center;gap:var(--space-2);justify-content:space-between}
@@ -0,0 +1 @@
1
+ ._modal_q1b7q_1{min-width:620px;min-height:620px;max-height:620px}._centeredBody_q1b7q_7{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%}
@@ -0,0 +1 @@
1
+ ._form_1o2vk_1{display:flex;flex-direction:column;gap:var(--space-4);max-width:620px}._loading_1o2vk_8{display:flex;justify-content:center;align-items:center;padding:var(--space-8) 0}._error_1o2vk_15{display:flex;flex-direction:column;align-items:center;gap:var(--space-4);padding:var(--space-8) 0;text-align:center}._fields_1o2vk_24{display:flex;flex-direction:column;gap:var(--space-4)}._addField_1o2vk_30{align-self:flex-start}._actions_1o2vk_34{display:flex;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-2)}
@@ -0,0 +1 @@
1
+ ._sortableOptionList_1cieq_1{margin:0;padding:0;max-height:190px;overflow:auto;list-style:none}._option_1cieq_9._editable_1cieq_9{display:grid;grid-template-rows:auto auto;grid-template-columns:auto 1fr auto;gap:var(--space-05);align-items:start}._option_1cieq_9 svg{pointer-events:none}._option_1cieq_9:not(:last-child){margin-bottom:var(--space-2)}._option_1cieq_9._dragging_1cieq_22{opacity:0}._dragHandle_1cieq_26{display:flex;grid-row:1;grid-column:1;align-items:center;justify-content:center;width:20px;padding:var(--space-3) 0;cursor:grab;touch-action:none}._dragHandle_1cieq_26:active{cursor:grabbing}._inputContainer_1cieq_41{grid-row:1;grid-column:2}._input_1cieq_41+span{grid-row:2;grid-column:2;margin-top:var(--space-1)}._deleteButtonContainer_1cieq_52{grid-row:1;grid-column:3;padding:var(--space-2) 0}._optionDragOverlay_1cieq_58{background-color:var(--surface-surface-on-light);border-radius:var(--border-radius-small)}
@@ -0,0 +1 @@
1
+ ._taxonomyFieldConfiguration_ylhrs_1{display:grid;grid-template-rows:auto;grid-template-columns:1fr;gap:var(--space-4)}._responsePlaceholder_ylhrs_8{display:flex;align-items:center;justify-content:center;padding:var(--space-4)}
@@ -0,0 +1 @@
1
+ ._taxonomyFieldConfiguratorInitialState_il5v7_1{display:flex;flex-direction:column;gap:var(--space-4);align-items:center;width:350px;margin:0 auto;padding:var(--space-3) 0}._taxonomyFieldConfiguratorInitialState_il5v7_1 ._subheader_il5v7_10{text-align:center}
@@ -0,0 +1 @@
1
+ ._taxonomySelectorLabel_b3aww_1{display:block;padding:var(--space-2) var(--space-3)}._taxonomySelectorSeparator_b3aww_6{height:1px;margin:0;padding:0;background:var(--border-card-border);border:none}._listWrapper_b3aww_14{max-height:200px;overflow-y:auto}._listWrapperWithPadding_b3aww_19{padding:var(--space-2);min-width:150px}._taxonomyItem_b3aww_24{width:100%;text-align:left;justify-content:flex-start}._statusContainer_b3aww_30{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);min-height:80px;min-width:190px}
@@ -0,0 +1,8 @@
1
+ export * from './lib/components/field-selector';
2
+ export * from './lib/components/field-type-dropdown';
3
+ export * from './lib/components/field-type-tiles';
4
+ export * from './lib/components/metadata-field-configurator';
5
+ export * from './lib/components/metadata-field-list';
6
+ export * from './lib/metadata-template-editor';
7
+ export * from './lib/components/metadata-template-editor-modal';
8
+ export * from './lib/types';
@@ -0,0 +1,16 @@
1
+ import { FieldData } from '../../types';
2
+ export type FieldSelectorProps = {
3
+ /** The list of fields to display in the dropdown. */
4
+ fields: FieldData[];
5
+ /** Called with the field's stable UI id when a field is selected. */
6
+ onSelect: (fieldId: string) => void;
7
+ };
8
+ /**
9
+ * Stateless dropdown that lists all template fields by name so the user can
10
+ * quickly jump to a specific field in the list below.
11
+ *
12
+ * It holds no selection state — clicking an item triggers `onSelect` and the
13
+ * dropdown closes. It is intentionally decoupled from the form.
14
+ */
15
+ export declare function FieldSelector({ fields, onSelect }: FieldSelectorProps): import("react/jsx-runtime").JSX.Element;
16
+ export default FieldSelector;
@@ -0,0 +1 @@
1
+ export { FieldSelector, type FieldSelectorProps } from './field-selector';
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ selectField: {
3
+ defaultMessage: string;
4
+ description: string;
5
+ id: string;
6
+ };
7
+ unnamedField: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
12
+ };
13
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { FieldOptionType } from '../../utils/field-options';
2
+ export type FieldTypeDropdownProps = {
3
+ /** Callback when a field type is selected from the dropdown. */
4
+ onFieldAdd: (fieldType: FieldOptionType) => void;
5
+ /** Optional. The element that opens the dropdown (e.g. a button). Defaults to "Add field" button with Plus icon. */
6
+ trigger?: React.ReactNode;
7
+ };
8
+ /**
9
+ * Dropdown for choosing a field type when the template has at least one field.
10
+ * Renders an "Add field" button with Plus icon that opens a dropdown of all
11
+ * field types (icon, label, description per option). Uses the same useFieldOptions
12
+ * as FieldTypeTiles.
13
+ */
14
+ export declare function FieldTypeDropdown({ onFieldAdd, trigger }: FieldTypeDropdownProps): import("react/jsx-runtime").JSX.Element;
15
+ export default FieldTypeDropdown;
@@ -0,0 +1,2 @@
1
+ export { FieldTypeDropdown } from './field-type-dropdown';
2
+ export type { FieldTypeDropdownProps } from './field-type-dropdown';
@@ -0,0 +1,12 @@
1
+ export declare const fieldTypeDropdownMessages: {
2
+ addField: {
3
+ defaultMessage: string;
4
+ description: string;
5
+ id: string;
6
+ };
7
+ addFieldAriaLabel: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
12
+ };
@@ -0,0 +1,12 @@
1
+ import { FieldOptionType } from '../../utils/field-options';
2
+ export type FieldTypeTilesProps = {
3
+ /** Callback when a field type tile is clicked. Receives the chosen field type metadata. */
4
+ onFieldAdd: (fieldType: FieldOptionType) => void;
5
+ };
6
+ /**
7
+ * Action-based tile picker for adding a field type when the template has no fields yet.
8
+ * Renders a grid of tiles (icon + label, tooltip) using RadioTiles. Clicking a tile invokes
9
+ * onFieldAdd with that field type—selection is not persisted (value is left unset).
10
+ */
11
+ export declare function FieldTypeTiles({ onFieldAdd }: FieldTypeTilesProps): import("react/jsx-runtime").JSX.Element;
12
+ export default FieldTypeTiles;
@@ -0,0 +1,2 @@
1
+ export { default as FieldTypeTiles } from './field-type-tiles';
2
+ export type { FieldTypeTilesProps } from './field-type-tiles';
@@ -0,0 +1,12 @@
1
+ export declare const emptyStateMessages: {
2
+ heading: {
3
+ defaultMessage: string;
4
+ description: string;
5
+ id: string;
6
+ };
7
+ selectFieldTypeAriaLabel: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
12
+ };
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ type ConfirmationModalProps = {
3
+ /** Called when the modal is closed (cancel, close button, or overlay click) */
4
+ onClose: () => void;
5
+ /** Called when the user confirms the action */
6
+ onConfirm: () => void;
7
+ /** Modal header title */
8
+ title: string;
9
+ /** Modal body content */
10
+ body: React.ReactNode;
11
+ /** Override label for the confirm button. Defaults to "Confirm". */
12
+ confirmLabel?: string;
13
+ /** Override label for the cancel button. Defaults to "Cancel". */
14
+ cancelLabel?: string;
15
+ };
16
+ /**
17
+ * A modal dialog for confirming user actions with cancel and confirm buttons.
18
+ * Uses the Blueprint Modal component with a consistent layout for confirmation flows.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * <ConfirmationModal
23
+ * title="Delete item?"
24
+ * body="This action cannot be undone."
25
+ * onClose={() => setOpen(false)}
26
+ * onConfirm={handleDelete}
27
+ * />
28
+ * ```
29
+ */
30
+ declare const ConfirmationModal: ({ onClose, onConfirm, title, body, confirmLabel, cancelLabel }: ConfirmationModalProps) => import("react/jsx-runtime").JSX.Element;
31
+ export default ConfirmationModal;
@@ -0,0 +1,18 @@
1
+ declare const messages: {
2
+ cancelButtonText: {
3
+ defaultMessage: string;
4
+ description: string;
5
+ id: string;
6
+ };
7
+ closeButtonAriaLabel: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
12
+ confirmButtonText: {
13
+ defaultMessage: string;
14
+ description: string;
15
+ id: string;
16
+ };
17
+ };
18
+ export default messages;
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ import { DndDragHandleProps } from '../../metadata-field-configurator';
3
+ import { FieldConfiguratorExtension } from '../../context/field-extensions-context';
4
+ type FieldActionSlotProps = {
5
+ /** Whether the accordion item is currently open. `undefined` in standalone mode. */
6
+ isExpanded: boolean | undefined;
7
+ isHidden: boolean;
8
+ index: number;
9
+ maxIndex?: number;
10
+ dndDragHandleProps?: DndDragHandleProps;
11
+ onDragStart?: (event: React.DragEvent<HTMLDivElement>, index: number) => void;
12
+ onDragEnd?: (event: React.DragEvent<HTMLDivElement>, index: number) => void;
13
+ onTouchStart?: (event: React.TouchEvent<HTMLDivElement>, index: number) => void;
14
+ onReorderFields: (fromIndex: number, toIndex: number) => void;
15
+ onToggleVisibility: (hidden: boolean) => void;
16
+ onRequestDelete: () => void;
17
+ onRequestDuplicate: () => void;
18
+ extensions: FieldConfiguratorExtension[];
19
+ };
20
+ /**
21
+ * The action slot rendered in the right side of a field's accordion header.
22
+ *
23
+ * Contains (in order, left to right):
24
+ * - "Hidden" status badge (when field is hidden)
25
+ * - Drag handle (visible only when collapsed)
26
+ * - Extension ContentSwitcher tabs (when extensions are provided)
27
+ * - Field context menu (always)
28
+ */
29
+ export declare const FieldActionSlot: ({ isExpanded, isHidden, index, maxIndex, dndDragHandleProps, onDragStart, onDragEnd, onTouchStart, onReorderFields, onToggleVisibility, onRequestDelete, onRequestDuplicate, extensions, }: FieldActionSlotProps) => import("react/jsx-runtime").JSX.Element;
30
+ export {};
@@ -0,0 +1,23 @@
1
+ type FieldContextMenuProps = {
2
+ /** Zero-based position of this field in the list. */
3
+ index: number;
4
+ /** Index of the last field; used to disable the "Move down" action on the last item. */
5
+ maxIndex?: number;
6
+ /** Whether the field is currently set to hidden. */
7
+ isHidden: boolean;
8
+ /** Called with the source and destination indices when the user moves the field up or down. */
9
+ onReorderFields: (fromIndex: number, toIndex: number) => void;
10
+ /** Called with the new hidden state when the user toggles field visibility. */
11
+ onToggleVisibility: (hidden: boolean) => void;
12
+ /** Called when the user selects the delete option (before any confirmation). */
13
+ onRequestDelete: () => void;
14
+ /** Called when the user selects the duplicate option. */
15
+ onRequestDuplicate: () => void;
16
+ };
17
+ /**
18
+ * An ellipsis icon button that opens a dropdown menu with actions for a single
19
+ * metadata field: move up, move down, toggle visibility, duplicate (when
20
+ * `onRequestDuplicate` is provided), and delete.
21
+ */
22
+ export declare const FieldContextMenu: ({ index, maxIndex, isHidden, onReorderFields, onToggleVisibility, onRequestDelete, onRequestDuplicate, }: FieldContextMenuProps) => import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,20 @@
1
+ import { FieldData } from '../../../../types';
2
+ type ValidatableFieldNames = 'name' | 'description' | 'key' | 'type' | 'hidden' | 'taxonomy' | 'dropdown';
3
+ type FieldEditContentProps = {
4
+ nameInputId: string;
5
+ descriptionInputId: string;
6
+ isTypeEditable: boolean;
7
+ externalErrors?: Partial<Record<ValidatableFieldNames, string>>;
8
+ externalTouched?: Partial<Record<ValidatableFieldNames, boolean>>;
9
+ handleTypeChange: (fieldType: FieldData['type']) => void;
10
+ };
11
+ /**
12
+ * The built-in Edit tab content for a field configurator.
13
+ *
14
+ * Reads field data, errors, and handlers from `FieldConfiguratorContext`
15
+ * so it can be a thin presentational component. Only the props that are
16
+ * not in context (IDs, editability flag, external validation, type change
17
+ * callback) are passed explicitly.
18
+ */
19
+ export declare const FieldEditContent: ({ nameInputId, descriptionInputId, isTypeEditable, externalErrors, externalTouched, handleTypeChange, }: FieldEditContentProps) => import("react/jsx-runtime").JSX.Element;
20
+ export {};