@box/metadata-template-editor 1.20.9 → 1.20.10

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 (95) hide show
  1. package/dist/chunks/chip.js +21 -0
  2. package/dist/chunks/dropdown-field-configuration.js +62 -0
  3. package/dist/chunks/field-context-menu.js +90 -0
  4. package/dist/chunks/field-selector.js +23 -0
  5. package/dist/chunks/field-type-dropdown.js +31 -0
  6. package/dist/chunks/levels-chain.js +125 -0
  7. package/dist/chunks/metadata-field-configurator.module.js +17 -16
  8. package/dist/chunks/metadata-field-list.js +229 -0
  9. package/dist/chunks/metadata-template-editor-form.js +107 -0
  10. package/dist/chunks/metadata-template-editor-modal.js +77 -0
  11. package/dist/chunks/metadata-template-editor.js +157 -0
  12. package/dist/chunks/sortable-option-list.js +231 -0
  13. package/dist/chunks/taxonomy-field-configuration.js +126 -0
  14. package/dist/chunks/taxonomy-field-configurator-initial-state.js +48 -0
  15. package/dist/chunks/taxonomy-selector.js +90 -0
  16. package/dist/chunks/types.js +22 -33
  17. package/dist/esm/index.js +13 -34
  18. package/dist/esm/lib/components/field-selector/field-selector.js +2 -39
  19. package/dist/esm/lib/components/field-selector/index.js +2 -4
  20. package/dist/esm/lib/components/field-selector/messages.js +10 -12
  21. package/dist/esm/lib/components/field-type-dropdown/field-type-dropdown.js +2 -47
  22. package/dist/esm/lib/components/field-type-dropdown/index.js +2 -4
  23. package/dist/esm/lib/components/field-type-dropdown/messages.js +10 -12
  24. package/dist/esm/lib/components/field-type-tiles/field-type-tiles.js +32 -39
  25. package/dist/esm/lib/components/field-type-tiles/index.js +2 -4
  26. package/dist/esm/lib/components/field-type-tiles/messages.js +10 -12
  27. package/dist/esm/lib/components/metadata-field-configurator/components/confirmation-modal/confirmation-modal.js +32 -45
  28. package/dist/esm/lib/components/metadata-field-configurator/components/confirmation-modal/messages.js +14 -16
  29. package/dist/esm/lib/components/metadata-field-configurator/components/field-action-slot/field-action-slot.js +62 -79
  30. package/dist/esm/lib/components/metadata-field-configurator/components/field-context-menu/field-context-menu.js +2 -115
  31. package/dist/esm/lib/components/metadata-field-configurator/components/field-edit-content/field-edit-content.js +83 -100
  32. package/dist/esm/lib/components/metadata-field-configurator/components/levels-chain/chip.js +2 -33
  33. package/dist/esm/lib/components/metadata-field-configurator/components/levels-chain/index.js +2 -4
  34. package/dist/esm/lib/components/metadata-field-configurator/components/levels-chain/levels-chain.js +2 -118
  35. package/dist/esm/lib/components/metadata-field-configurator/components/levels-chain/utils.js +16 -33
  36. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/__mocks__/getInitialValues.js +34 -32
  37. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/dropdown-default-values.js +10 -14
  38. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/dropdown-field-configuration.js +2 -66
  39. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/dropdown/sortable-option-list.js +2 -294
  40. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/index.js +3 -6
  41. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-default-values.js +11 -15
  42. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-field-configuration.js +2 -149
  43. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-field-configurator-initial-state.js +2 -54
  44. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-selector-messages.js +34 -36
  45. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/taxonomy-selector.js +2 -103
  46. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/useTaxonomySelect.js +15 -19
  47. package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/utils.js +2 -4
  48. package/dist/esm/lib/components/metadata-field-configurator/context/field-configurator-context.js +60 -66
  49. package/dist/esm/lib/components/metadata-field-configurator/context/field-extensions-context.js +5 -8
  50. package/dist/esm/lib/components/metadata-field-configurator/context/taxonomy-options-context.js +14 -20
  51. package/dist/esm/lib/components/metadata-field-configurator/hooks/useFieldConfiguratorBehavior.js +99 -118
  52. package/dist/esm/lib/components/metadata-field-configurator/hooks/useFieldValidation.js +52 -66
  53. package/dist/esm/lib/components/metadata-field-configurator/hooks/useTaxonomyFetch.js +23 -26
  54. package/dist/esm/lib/components/metadata-field-configurator/hooks/useTemplateFieldSchema.js +34 -43
  55. package/dist/esm/lib/components/metadata-field-configurator/index.js +5 -11
  56. package/dist/esm/lib/components/metadata-field-configurator/messages/configurator-messages.js +131 -134
  57. package/dist/esm/lib/components/metadata-field-configurator/messages/dropdown-messages.js +34 -36
  58. package/dist/esm/lib/components/metadata-field-configurator/messages/levels-chain-messages.js +14 -16
  59. package/dist/esm/lib/components/metadata-field-configurator/messages/taxonomy-messages.js +34 -36
  60. package/dist/esm/lib/components/metadata-field-configurator/metadata-field-configurator.js +94 -153
  61. package/dist/esm/lib/components/metadata-field-configurator/utils.js +42 -49
  62. package/dist/esm/lib/components/metadata-field-list/index.js +2 -5
  63. package/dist/esm/lib/components/metadata-field-list/metadata-field-list.js +2 -279
  64. package/dist/esm/lib/components/metadata-template-editor-form/metadata-template-editor-form.js +2 -137
  65. package/dist/esm/lib/components/metadata-template-editor-modal/index.js +2 -4
  66. package/dist/esm/lib/components/metadata-template-editor-modal/metadata-template-editor-modal.js +2 -103
  67. package/dist/esm/lib/hooks/useMetadataTemplateFormSchema.js +13 -15
  68. package/dist/esm/lib/hooks/useTemplateNameSchema.js +8 -10
  69. package/dist/esm/lib/index.js +7 -14
  70. package/dist/esm/lib/messages.js +114 -116
  71. package/dist/esm/lib/metadata-template-editor.js +2 -182
  72. package/dist/esm/lib/utils/constants.js +2 -8
  73. package/dist/esm/lib/utils/field-options/field-type-icon.js +14 -33
  74. package/dist/esm/lib/utils/field-options/index.js +4 -9
  75. package/dist/esm/lib/utils/field-options/messages.js +43 -46
  76. package/dist/esm/lib/utils/field-options/useFieldOptions.js +14 -18
  77. package/dist/esm/lib/utils/key-generation.js +16 -27
  78. package/dist/esm/lib/utils/template-type-conversion/convertLocalConfiguratorToTemplateField.js +63 -77
  79. package/dist/esm/lib/utils/template-type-conversion/convertTemplateFieldToLocalConfigurator.js +69 -89
  80. package/dist/esm/lib/utils/template-type-conversion/generateJSONPatchTemplateOperations.js +150 -169
  81. package/dist/esm/lib/utils/template-type-conversion/mapFieldsWithUniqueKeys.js +8 -13
  82. package/dist/styles/chip.css +1 -1
  83. package/dist/styles/dropdown-field-configuration.css +1 -1
  84. package/dist/styles/field-context-menu.css +1 -1
  85. package/dist/styles/levels-chain.css +1 -1
  86. package/dist/styles/metadata-field-configurator.css +1 -1
  87. package/dist/styles/metadata-field-list.css +1 -1
  88. package/dist/styles/metadata-template-editor-form.css +1 -1
  89. package/dist/styles/metadata-template-editor-modal.css +1 -1
  90. package/dist/styles/metadata-template-editor.css +1 -1
  91. package/dist/styles/sortable-option-list.css +1 -1
  92. package/dist/styles/taxonomy-field-configuration.css +1 -1
  93. package/dist/styles/taxonomy-field-configurator-initial-state.css +1 -1
  94. package/dist/styles/taxonomy-selector.css +1 -1
  95. package/package.json +6 -6
@@ -1,137 +1,2 @@
1
- import { useFormikContext as V, Form as H } from "formik";
2
- import { useRef as j, useMemo as w, useEffect as A } from "react";
3
- import { TextInput as U, Text as G, Link as O, Button as b } from "@box/blueprint-web";
4
- import { useIntl as P, FormattedMessage as N } from "react-intl";
5
- import s from "../../messages.js";
6
- import { FieldExtensionsContext as X } from "../metadata-field-configurator/context/field-extensions-context.js";
7
- import { jsxs as a, jsx as e, Fragment as v } from "react/jsx-runtime";
8
- import { FieldSelector as q } from "../field-selector/field-selector.js";
9
- import { FieldTypeTiles as z } from "../field-type-tiles/field-type-tiles.js";
10
- import { MetadataFieldList as J } from "../metadata-field-list/metadata-field-list.js";
11
- import { FieldTypeDropdown as K } from "../field-type-dropdown/field-type-dropdown.js";
12
- import { createDefaultFieldValues as Q } from "../metadata-field-configurator/utils.js";
13
- import '../../../../styles/metadata-template-editor-form.css';const W = "_form_8cb30_1", Y = "_fields_8cb30_15", Z = "_actions_8cb30_21", $ = "_fieldsHeader_8cb30_28", l = {
14
- form: W,
15
- fields: Y,
16
- actions: Z,
17
- fieldsHeader: $
18
- }, ee = "bodyDefaultBold", ie = "h2", se = "https://developer.box.com/guides/metadata/fields/", he = ({
19
- formId: y,
20
- onCancel: m,
21
- taxonomyOptions: E,
22
- fetchTaxonomies: M,
23
- hideActions: x,
24
- isEditMode: I,
25
- onDirtyStateChange: f,
26
- onValidationChange: c,
27
- fieldExtensions: u
28
- }) => {
29
- const d = P(), {
30
- errors: r,
31
- values: t,
32
- setFieldValue: p,
33
- isSubmitting: o,
34
- isValid: h,
35
- touched: L,
36
- handleChange: T,
37
- handleBlur: D,
38
- submitCount: B,
39
- dirty: n
40
- } = V(), F = j(null), C = w(() => {
41
- if (!Array.isArray(r.fields))
42
- return null;
43
- const i = r.fields.findIndex(Boolean);
44
- return i >= 0 ? i : null;
45
- }, [r.fields]), _ = (i) => {
46
- const S = Q(i.type);
47
- p("fields", [...t.fields, S]);
48
- }, k = (i) => {
49
- p("fields", i);
50
- };
51
- A(() => {
52
- f?.(n);
53
- }, [n, f]), A(() => {
54
- c?.(h);
55
- }, [h, c]);
56
- const R = o || I && !n, g = /* @__PURE__ */ a(H, {
57
- noValidate: !0,
58
- id: y,
59
- className: l.form,
60
- children: [/* @__PURE__ */ e("div", {
61
- className: l.templateInfo,
62
- children: /* @__PURE__ */ e(U, {
63
- name: "displayName",
64
- label: d.formatMessage(s.templateName),
65
- placeholder: d.formatMessage(s.templateNameDescription),
66
- value: t.displayName,
67
- error: L.displayName && r.displayName ? r.displayName : void 0,
68
- onChange: (i) => {
69
- T(i);
70
- },
71
- onBlur: D
72
- })
73
- }), /* @__PURE__ */ a("div", {
74
- className: l.fieldsHeader,
75
- children: [/* @__PURE__ */ e(G, {
76
- as: ie,
77
- variant: ee,
78
- children: /* @__PURE__ */ e(N, {
79
- ...t.fields.length === 0 ? s.fieldsAddFirst : s.fields
80
- })
81
- }), t.fields.length > 0 && /* @__PURE__ */ e(q, {
82
- fields: t.fields,
83
- onSelect: (i) => F.current?.scrollToAndExpand(i)
84
- })]
85
- }), /* @__PURE__ */ e("div", {
86
- className: l.fields,
87
- children: t.fields.length === 0 ? /* @__PURE__ */ a(v, {
88
- children: [/* @__PURE__ */ e(z, {
89
- onFieldAdd: _
90
- }), /* @__PURE__ */ e(O, {
91
- isExternal: !0,
92
- className: l.fieldsLearnMoreLink,
93
- href: se,
94
- target: "_blank",
95
- children: /* @__PURE__ */ e(N, {
96
- ...s.fieldsLearnMore
97
- })
98
- })]
99
- }) : /* @__PURE__ */ a(v, {
100
- children: [/* @__PURE__ */ e(J, {
101
- ref: F,
102
- fields: t.fields,
103
- taxonomyOptions: E,
104
- fetchTaxonomies: M,
105
- onChangeFields: k,
106
- firstInvalidFieldIndex: C,
107
- submitAttemptCount: B
108
- }), /* @__PURE__ */ e(K, {
109
- onFieldAdd: _
110
- })]
111
- })
112
- }), !x && /* @__PURE__ */ a("div", {
113
- className: l.actions,
114
- children: [m && /* @__PURE__ */ e(b, {
115
- variant: "secondary",
116
- type: "button",
117
- onClick: m,
118
- loading: o,
119
- disabled: o,
120
- loadingAriaLabel: d.formatMessage(s.submitting),
121
- children: d.formatMessage(s.cancel)
122
- }), /* @__PURE__ */ e(b, {
123
- variant: "primary",
124
- type: "submit",
125
- disabled: R,
126
- children: d.formatMessage(s.save)
127
- })]
128
- })]
129
- });
130
- return u !== void 0 ? /* @__PURE__ */ e(X.Provider, {
131
- value: u,
132
- children: g
133
- }) : g;
134
- };
135
- export {
136
- he as default
137
- };
1
+ import { t as e } from "../../../../chunks/metadata-template-editor-form.js";
2
+ export { e as default };
@@ -1,4 +1,2 @@
1
- import { MetadataTemplateEditorModal as e } from "./metadata-template-editor-modal.js";
2
- export {
3
- e as MetadataTemplateEditorModal
4
- };
1
+ import { t as e } from "../../../../chunks/metadata-template-editor-modal.js";
2
+ export { e as MetadataTemplateEditorModal };
@@ -1,103 +1,2 @@
1
- import { MetadataTemplateEditor as D } from "../../metadata-template-editor.js";
2
- import { M as A } from "../../../../chunks/types.js";
3
- import "../field-type-tiles/field-type-tiles.js";
4
- import "../metadata-field-list/metadata-field-list.js";
5
- import "../metadata-field-configurator/context/field-extensions-context.js";
6
- import "../field-selector/field-selector.js";
7
- import "../field-type-dropdown/field-type-dropdown.js";
8
- import "../metadata-field-configurator/metadata-field-configurator.js";
9
- import { useId as F, useRef as j, useState as c, useCallback as k, useEffect as w } from "react";
10
- import z from "clsx";
11
- import { Modal as e } from "@box/blueprint-web";
12
- import { useIntl as R } from "react-intl";
13
- import r from "../../messages.js";
14
- import { jsx as t, jsxs as T } from "react/jsx-runtime";
15
- import "../metadata-field-configurator/utils.js";
16
- import "../metadata-field-configurator/hooks/useTemplateFieldSchema.js";
17
- import '../../../../styles/metadata-template-editor-modal.css';const H = "_modal_q1b7q_1", G = "_centeredBody_q1b7q_7", h = {
18
- modal: H,
19
- centeredBody: G
20
- };
21
- function re({
22
- open: m,
23
- onOpenChange: i,
24
- onTemplateLoad: C,
25
- onValidationChange: E,
26
- onCancel: f,
27
- title: B,
28
- ...s
29
- }) {
30
- const o = R(), p = F(), d = j(null), [u, y] = c(!1), [S, b] = c(!1), [n, g] = c(void 0), l = s.mode === A.Edit, q = k(() => {
31
- f?.(), i(!1);
32
- }, [f, i]);
33
- w(() => {
34
- m || (b(!1), g(void 0));
35
- }, [m]);
36
- const N = (a) => {
37
- a ? i(a) : d.current?.requestClose();
38
- }, _ = (a) => {
39
- g(a.displayName), C?.(a);
40
- }, M = (a) => async (...x) => {
41
- y(!0);
42
- try {
43
- await a(...x), i(!1);
44
- } finally {
45
- y(!1);
46
- }
47
- }, v = l ? {
48
- ...s,
49
- onEditTemplate: M(s.onEditTemplate)
50
- } : {
51
- ...s,
52
- onCreateTemplate: M(s.onCreateTemplate)
53
- }, I = u || l && !S, L = l && !n;
54
- return /* @__PURE__ */ t(e, {
55
- open: m,
56
- onOpenChange: N,
57
- children: /* @__PURE__ */ T(e.Content, {
58
- size: "large",
59
- className: h.modal,
60
- children: [/* @__PURE__ */ t(e.Header, {
61
- children: B ?? (l && n ? o.formatMessage(r.editTitle, {
62
- templateName: n
63
- }) : o.formatMessage(r.createTitle))
64
- }), /* @__PURE__ */ t(e.ScrollableContainer, {
65
- className: z({
66
- [h.centeredBody]: L
67
- }),
68
- children: /* @__PURE__ */ t(e.Body, {
69
- children: /* @__PURE__ */ t(D, {
70
- ...v,
71
- ref: d,
72
- formId: p,
73
- hideActions: !0,
74
- onCancel: q,
75
- onDirtyStateChange: b,
76
- onValidationChange: E,
77
- onTemplateLoad: _
78
- })
79
- })
80
- }), /* @__PURE__ */ T(e.Footer, {
81
- children: [/* @__PURE__ */ t(e.Footer.SecondaryButton, {
82
- onClick: () => d.current?.requestClose(),
83
- size: "large",
84
- children: o.formatMessage(r.cancel)
85
- }), /* @__PURE__ */ t(e.Footer.PrimaryButton, {
86
- variant: "primary",
87
- type: "submit",
88
- form: p,
89
- loading: u,
90
- loadingAriaLabel: o.formatMessage(r.submitting),
91
- disabled: I,
92
- children: o.formatMessage(r.save)
93
- })]
94
- }), /* @__PURE__ */ t(e.Close, {
95
- "aria-label": o.formatMessage(r.closeAriaLabel)
96
- })]
97
- })
98
- });
99
- }
100
- export {
101
- re as MetadataTemplateEditorModal,
102
- re as default
103
- };
1
+ import { t as e } from "../../../../chunks/metadata-template-editor-modal.js";
2
+ export { e as MetadataTemplateEditorModal, e as default };
@@ -1,16 +1,14 @@
1
- import { useMemo as a } from "react";
2
- import * as e from "yup";
3
- import { useTemplateNameSchema as o } from "./useTemplateNameSchema.js";
4
- import { useTemplateFieldSchema as r } from "../components/metadata-field-configurator/hooks/useTemplateFieldSchema.js";
5
- const l = () => {
6
- const m = r(), t = o();
7
- return a(() => e.object().shape({
8
- displayName: t,
9
- templateKey: e.string().notRequired(),
10
- fields: e.array().of(m).notRequired(),
11
- hidden: e.boolean()
12
- }), [m, t]);
13
- };
14
- export {
15
- l as useMetadataTemplateFormSchema
1
+ import { useTemplateFieldSchema as e } from "../components/metadata-field-configurator/hooks/useTemplateFieldSchema.js";
2
+ import { useTemplateNameSchema as t } from "./useTemplateNameSchema.js";
3
+ import { useMemo as n } from "react";
4
+ import * as r from "yup";
5
+ var i = () => {
6
+ let i = e(), a = t();
7
+ return n(() => r.object().shape({
8
+ displayName: a,
9
+ templateKey: r.string().notRequired(),
10
+ fields: r.array().of(i).notRequired(),
11
+ hidden: r.boolean()
12
+ }), [i, a]);
16
13
  };
14
+ export { i as useMetadataTemplateFormSchema };
@@ -1,12 +1,10 @@
1
- import { useMemo as s } from "react";
2
- import { useIntl as r } from "react-intl";
3
- import * as a from "yup";
4
- import { METADATA_TEMPLATE_NAME_MAX_LENGTH as i } from "../utils/constants.js";
1
+ import { METADATA_TEMPLATE_NAME_MAX_LENGTH as e } from "../utils/constants.js";
5
2
  import t from "../messages.js";
6
- const n = ["new_template"], M = () => {
7
- const e = r();
8
- return s(() => a.string().min(1).max(i, e.formatMessage(t.fieldNameTooLong)).required(e.formatMessage(t.fieldRequired)).test("no-whitespace-only", e.formatMessage(t.fieldRequired), (o) => !o || o.trim().length > 0).test("forbidden-display-name", e.formatMessage(t.forbiddenDisplayName), (o) => !n.some((m) => o.toLowerCase().includes(m))), [e]);
9
- };
10
- export {
11
- M as useTemplateNameSchema
3
+ import { useIntl as n } from "react-intl";
4
+ import { useMemo as r } from "react";
5
+ import * as i from "yup";
6
+ var a = ["new_template"], o = () => {
7
+ let o = n();
8
+ return r(() => i.string().min(1).max(e, o.formatMessage(t.fieldNameTooLong)).required(o.formatMessage(t.fieldRequired)).test("no-whitespace-only", o.formatMessage(t.fieldRequired), (e) => !e || e.trim().length > 0).test("forbidden-display-name", o.formatMessage(t.forbiddenDisplayName), (e) => !a.some((t) => e.toLowerCase().includes(t))), [o]);
12
9
  };
10
+ export { o as useTemplateNameSchema };
@@ -1,14 +1,7 @@
1
- import { MetadataTemplateEditor as a } from "./metadata-template-editor.js";
2
- import { useMetadataTemplateFormSchema as r } from "./hooks/useMetadataTemplateFormSchema.js";
3
- import { useTemplateNameSchema as p } from "./hooks/useTemplateNameSchema.js";
4
- import { convertApiMetadataTemplateFieldToLocalConfiguratorField as l } from "./utils/template-type-conversion/convertTemplateFieldToLocalConfigurator.js";
5
- import { mapFieldsWithUniqueKeys as f } from "./utils/template-type-conversion/mapFieldsWithUniqueKeys.js";
6
- import { generateJSONPatchTemplateOperations as T } from "./utils/template-type-conversion/generateJSONPatchTemplateOperations.js";
7
- export {
8
- a as MetadataTemplateEditor,
9
- l as convertApiMetadataTemplateFieldToLocalConfiguratorField,
10
- T as generateJSONPatchTemplateOperations,
11
- f as mapFieldsWithUniqueKeys,
12
- r as useMetadataTemplateFormSchema,
13
- p as useTemplateNameSchema
14
- };
1
+ import { useTemplateNameSchema as e } from "./hooks/useTemplateNameSchema.js";
2
+ import { useMetadataTemplateFormSchema as t } from "./hooks/useMetadataTemplateFormSchema.js";
3
+ import { convertApiMetadataTemplateFieldToLocalConfiguratorField as n } from "./utils/template-type-conversion/convertTemplateFieldToLocalConfigurator.js";
4
+ import { mapFieldsWithUniqueKeys as r } from "./utils/template-type-conversion/mapFieldsWithUniqueKeys.js";
5
+ import { generateJSONPatchTemplateOperations as i } from "./utils/template-type-conversion/generateJSONPatchTemplateOperations.js";
6
+ import { t as a } from "../../chunks/metadata-template-editor.js";
7
+ export { a as MetadataTemplateEditor, n as convertApiMetadataTemplateFieldToLocalConfiguratorField, i as generateJSONPatchTemplateOperations, r as mapFieldsWithUniqueKeys, t as useMetadataTemplateFormSchema, e as useTemplateNameSchema };
@@ -1,118 +1,116 @@
1
1
  import { defineMessages as e } from "react-intl";
2
- const t = e({
3
- createTitle: {
4
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.createTitle",
5
- defaultMessage: "New Metadata Template"
6
- },
7
- editTitle: {
8
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.editTitle",
9
- defaultMessage: 'Edit "{templateName}" Metadata Template'
10
- },
11
- templateName: {
12
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.templateName.label",
13
- defaultMessage: "Template Name"
14
- },
15
- templateNameDescription: {
16
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.templateName.description",
17
- defaultMessage: "Display name of the template shown to users"
18
- },
19
- cancel: {
20
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.cancel",
21
- defaultMessage: "Cancel"
22
- },
23
- save: {
24
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.save",
25
- defaultMessage: "Save"
26
- },
27
- fields: {
28
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fields.label",
29
- defaultMessage: "Fields"
30
- },
31
- fieldsAddFirst: {
32
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fields.description",
33
- defaultMessage: "Add your first field to the Template:"
34
- },
35
- fieldsLearnMore: {
36
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fields.learnMore",
37
- defaultMessage: "Learn more about Metadata Field Types"
38
- },
39
- fieldRequired: {
40
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fieldRequired",
41
- defaultMessage: "This field is required"
42
- },
43
- forbiddenDisplayName: {
44
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.forbiddenDisplayName",
45
- defaultMessage: "This display name is forbidden. Please choose another one."
46
- },
47
- invalidCharacters: {
48
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.invalidCharacters",
49
- defaultMessage: "The field contains illegal characters."
50
- },
51
- fieldNameTooLong: {
52
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fieldNameTooLong",
53
- defaultMessage: "The field name is too long."
54
- },
55
- displayNameUsedBefore: {
56
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.displayNameUsedBefore",
57
- defaultMessage: "This display name has already been used before. Please choose another one."
58
- },
59
- submitting: {
60
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.submitting",
61
- defaultMessage: "Submitting..."
62
- },
63
- closeAriaLabel: {
64
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.closeAriaLabel",
65
- defaultMessage: "Close metadata template editor"
66
- },
67
- saveSuccessNotification: {
68
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.saveSuccessNotification",
69
- defaultMessage: "Template saved successfully."
70
- },
71
- saveErrorNotification: {
72
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.saveErrorNotification",
73
- defaultMessage: "Failed to save template. Please try again."
74
- },
75
- notificationSuccessIconAriaLabel: {
76
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.notificationSuccessIconAriaLabel",
77
- defaultMessage: "Success"
78
- },
79
- notificationErrorIconAriaLabel: {
80
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.notificationErrorIconAriaLabel",
81
- defaultMessage: "Error"
82
- },
83
- notificationCloseButtonAriaLabel: {
84
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.notificationCloseButtonAriaLabel",
85
- defaultMessage: "Close notification"
86
- },
87
- loading: {
88
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.loading",
89
- defaultMessage: "Loading template…"
90
- },
91
- fetchError: {
92
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fetchError",
93
- defaultMessage: "Something went wrong. Please reload to try again."
94
- },
95
- reload: {
96
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.reload",
97
- defaultMessage: "Reload"
98
- },
99
- unsavedChangesTitle: {
100
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesTitle",
101
- defaultMessage: "Unsaved Changes"
102
- },
103
- unsavedChangesBody: {
104
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesBody",
105
- defaultMessage: "You have unsaved changes. If you leave now, your changes will be lost."
106
- },
107
- unsavedChangesDiscard: {
108
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesDiscard",
109
- defaultMessage: "Leave Without Saving"
110
- },
111
- unsavedChangesKeepEditing: {
112
- id: "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesKeepEditing",
113
- defaultMessage: "Keep Editing"
114
- }
2
+ var t = e({
3
+ createTitle: {
4
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.createTitle",
5
+ defaultMessage: "New Metadata Template"
6
+ },
7
+ editTitle: {
8
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.editTitle",
9
+ defaultMessage: "Edit \"{templateName}\" Metadata Template"
10
+ },
11
+ templateName: {
12
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.templateName.label",
13
+ defaultMessage: "Template Name"
14
+ },
15
+ templateNameDescription: {
16
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.templateName.description",
17
+ defaultMessage: "Display name of the template shown to users"
18
+ },
19
+ cancel: {
20
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.cancel",
21
+ defaultMessage: "Cancel"
22
+ },
23
+ save: {
24
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.save",
25
+ defaultMessage: "Save"
26
+ },
27
+ fields: {
28
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fields.label",
29
+ defaultMessage: "Fields"
30
+ },
31
+ fieldsAddFirst: {
32
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fields.description",
33
+ defaultMessage: "Add your first field to the Template:"
34
+ },
35
+ fieldsLearnMore: {
36
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fields.learnMore",
37
+ defaultMessage: "Learn more about Metadata Field Types"
38
+ },
39
+ fieldRequired: {
40
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fieldRequired",
41
+ defaultMessage: "This field is required"
42
+ },
43
+ forbiddenDisplayName: {
44
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.forbiddenDisplayName",
45
+ defaultMessage: "This display name is forbidden. Please choose another one."
46
+ },
47
+ invalidCharacters: {
48
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.invalidCharacters",
49
+ defaultMessage: "The field contains illegal characters."
50
+ },
51
+ fieldNameTooLong: {
52
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fieldNameTooLong",
53
+ defaultMessage: "The field name is too long."
54
+ },
55
+ displayNameUsedBefore: {
56
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.displayNameUsedBefore",
57
+ defaultMessage: "This display name has already been used before. Please choose another one."
58
+ },
59
+ submitting: {
60
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.submitting",
61
+ defaultMessage: "Submitting..."
62
+ },
63
+ closeAriaLabel: {
64
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.closeAriaLabel",
65
+ defaultMessage: "Close metadata template editor"
66
+ },
67
+ saveSuccessNotification: {
68
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.saveSuccessNotification",
69
+ defaultMessage: "Template saved successfully."
70
+ },
71
+ saveErrorNotification: {
72
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.saveErrorNotification",
73
+ defaultMessage: "Failed to save template. Please try again."
74
+ },
75
+ notificationSuccessIconAriaLabel: {
76
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.notificationSuccessIconAriaLabel",
77
+ defaultMessage: "Success"
78
+ },
79
+ notificationErrorIconAriaLabel: {
80
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.notificationErrorIconAriaLabel",
81
+ defaultMessage: "Error"
82
+ },
83
+ notificationCloseButtonAriaLabel: {
84
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.notificationCloseButtonAriaLabel",
85
+ defaultMessage: "Close notification"
86
+ },
87
+ loading: {
88
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.loading",
89
+ defaultMessage: "Loading template…"
90
+ },
91
+ fetchError: {
92
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.fetchError",
93
+ defaultMessage: "Something went wrong. Please reload to try again."
94
+ },
95
+ reload: {
96
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.reload",
97
+ defaultMessage: "Reload"
98
+ },
99
+ unsavedChangesTitle: {
100
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesTitle",
101
+ defaultMessage: "Unsaved Changes"
102
+ },
103
+ unsavedChangesBody: {
104
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesBody",
105
+ defaultMessage: "You have unsaved changes. If you leave now, your changes will be lost."
106
+ },
107
+ unsavedChangesDiscard: {
108
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesDiscard",
109
+ defaultMessage: "Leave Without Saving"
110
+ },
111
+ unsavedChangesKeepEditing: {
112
+ id: "groupSharedFeatures.metadataTemplateEditor.templateForm.unsavedChangesKeepEditing",
113
+ defaultMessage: "Keep Editing"
114
+ }
115
115
  });
116
- export {
117
- t as default
118
- };
116
+ export { t as default };