@esri/hub-common 17.12.0 → 17.13.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.
- package/dist/esm/content/_internal/ContentUiSchemaEdit.js +46 -33
- package/dist/esm/content/_internal/ContentUiSchemaEdit.js.map +1 -1
- package/dist/esm/core/schemas/internal/fetchCategoriesUiSchemaElement.js +0 -4
- package/dist/esm/core/schemas/internal/fetchCategoriesUiSchemaElement.js.map +1 -1
- package/dist/esm/core/schemas/internal/getSlugSchemaElement.js +0 -3
- package/dist/esm/core/schemas/internal/getSlugSchemaElement.js.map +1 -1
- package/dist/esm/core/schemas/internal/getThumbnailUiSchemaElement.js +1 -12
- package/dist/esm/core/schemas/internal/getThumbnailUiSchemaElement.js.map +1 -1
- package/dist/esm/discussions/_internal/DiscussionUiSchemaEdit.js +59 -46
- package/dist/esm/discussions/_internal/DiscussionUiSchemaEdit.js.map +1 -1
- package/dist/esm/events/_internal/EventUiSchemaEdit.js +298 -200
- package/dist/esm/events/_internal/EventUiSchemaEdit.js.map +1 -1
- package/dist/esm/groups/_internal/GroupSchema.js +2 -1
- package/dist/esm/groups/_internal/GroupSchema.js.map +1 -1
- package/dist/esm/groups/_internal/GroupUiSchemaEdit.js +47 -6
- package/dist/esm/groups/_internal/GroupUiSchemaEdit.js.map +1 -1
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js +74 -36
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js +126 -92
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -1
- package/dist/esm/pages/_internal/PageUiSchemaEdit.js +45 -28
- package/dist/esm/pages/_internal/PageUiSchemaEdit.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectUiSchemaEdit.js +221 -146
- package/dist/esm/projects/_internal/ProjectUiSchemaEdit.js.map +1 -1
- package/dist/esm/sites/_internal/SiteUiSchemaEdit.js +43 -28
- package/dist/esm/sites/_internal/SiteUiSchemaEdit.js.map +1 -1
- package/dist/esm/surveys/_internal/SurveyUiSchemaEdit.js +62 -25
- package/dist/esm/surveys/_internal/SurveyUiSchemaEdit.js.map +1 -1
- package/dist/esm/templates/_internal/TemplateUiSchemaEdit.js +78 -33
- package/dist/esm/templates/_internal/TemplateUiSchemaEdit.js.map +1 -1
- package/dist/node/content/_internal/ContentUiSchemaEdit.js +46 -33
- package/dist/node/content/_internal/ContentUiSchemaEdit.js.map +1 -1
- package/dist/node/core/schemas/internal/fetchCategoriesUiSchemaElement.js +0 -4
- package/dist/node/core/schemas/internal/fetchCategoriesUiSchemaElement.js.map +1 -1
- package/dist/node/core/schemas/internal/getSlugSchemaElement.js +0 -3
- package/dist/node/core/schemas/internal/getSlugSchemaElement.js.map +1 -1
- package/dist/node/core/schemas/internal/getThumbnailUiSchemaElement.js +1 -12
- package/dist/node/core/schemas/internal/getThumbnailUiSchemaElement.js.map +1 -1
- package/dist/node/discussions/_internal/DiscussionUiSchemaEdit.js +59 -46
- package/dist/node/discussions/_internal/DiscussionUiSchemaEdit.js.map +1 -1
- package/dist/node/events/_internal/EventUiSchemaEdit.js +298 -200
- package/dist/node/events/_internal/EventUiSchemaEdit.js.map +1 -1
- package/dist/node/groups/_internal/GroupSchema.js +1 -0
- package/dist/node/groups/_internal/GroupSchema.js.map +1 -1
- package/dist/node/groups/_internal/GroupUiSchemaEdit.js +47 -6
- package/dist/node/groups/_internal/GroupUiSchemaEdit.js.map +1 -1
- package/dist/node/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js +74 -36
- package/dist/node/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js +126 -92
- package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -1
- package/dist/node/pages/_internal/PageUiSchemaEdit.js +45 -28
- package/dist/node/pages/_internal/PageUiSchemaEdit.js.map +1 -1
- package/dist/node/projects/_internal/ProjectUiSchemaEdit.js +221 -146
- package/dist/node/projects/_internal/ProjectUiSchemaEdit.js.map +1 -1
- package/dist/node/sites/_internal/SiteUiSchemaEdit.js +43 -28
- package/dist/node/sites/_internal/SiteUiSchemaEdit.js.map +1 -1
- package/dist/node/surveys/_internal/SurveyUiSchemaEdit.js +62 -25
- package/dist/node/surveys/_internal/SurveyUiSchemaEdit.js.map +1 -1
- package/dist/node/templates/_internal/TemplateUiSchemaEdit.js +78 -33
- package/dist/node/templates/_internal/TemplateUiSchemaEdit.js.map +1 -1
- package/dist/types/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.d.ts +2 -2
- package/dist/types/templates/_internal/TemplateUiSchemaEdit.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/projects/_internal/ProjectUiSchemaEdit.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"ProjectUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/projects/_internal/ProjectUiSchemaEdit.ts"],"names":[],"mappings":";;;AAEA,qFAAkF;AAClF,uFAAoF;AACpF,yEAAsE;AACtE,yGAAsG;AAEtG,8EAA2E;AAC3E,+GAA4G;AAC5G,uGAAoG;AAEpG;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA6B,EAC7B,OAAuB,EACH,EAAE;;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,gCAAgC;qBACvD;iBACF;gBACD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAo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uDAA0B,CAAC,OAAO,CAAC,WAAW,CAAC;oCACzD,MAAM,EAAE;wCACN;4CACE,KAAK,EAAE,KAAK,SAAS,iDAAiD;4CACtE,GAAG,EAAE,MAAM;4CACX,OAAO,EAAE,cAAc;4CACvB,KAAK,EAAE,MAAM;4CACb,OAAO,EAAE,EAAE;4CACX,SAAS,EAAE,IAAI;4CACf,QAAQ,EAAE,GAAG;yCACd;wCACD;4CACE,KAAK,EAAE,KAAK,SAAS,oDAAoD;4CACzE,GAAG,EAAE,QAAQ;4CACb,OAAO,EAAE,cAAc;4CACvB,KAAK,EAAE,QAAQ;4CACf,OAAO,EAAE,EAAE;4CACX,SAAS,EAAE,IAAI;yCAChB;qCACF;oCACD,sBAAsB,EAAE,IAAI;oCAC5B,cAAc,EAAE,IAAI;iCACrB;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -17,9 +17,15 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
17
17
|
return {
|
|
18
18
|
type: "Layout",
|
|
19
19
|
elements: [
|
|
20
|
+
// basic info section
|
|
20
21
|
{
|
|
21
22
|
type: "Section",
|
|
22
23
|
labelKey: `${i18nScope}.sections.basicInfo.label`,
|
|
24
|
+
options: {
|
|
25
|
+
helperText: {
|
|
26
|
+
labelKey: `${i18nScope}.sections.basicInfo.helperText`,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
23
29
|
elements: [
|
|
24
30
|
{
|
|
25
31
|
labelKey: `${i18nScope}.fields.name.label`,
|
|
@@ -56,9 +62,6 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
56
62
|
control: "hub-field-input-input",
|
|
57
63
|
type: "textarea",
|
|
58
64
|
rows: 4,
|
|
59
|
-
helperText: {
|
|
60
|
-
labelKey: `${i18nScope}.fields.summary.helperText`,
|
|
61
|
-
},
|
|
62
65
|
messages: [
|
|
63
66
|
{
|
|
64
67
|
type: "ERROR",
|
|
@@ -69,44 +72,56 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
69
72
|
],
|
|
70
73
|
},
|
|
71
74
|
},
|
|
75
|
+
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "site", context.requestOptions),
|
|
76
|
+
...(context.isPortal ? [getSlugSchemaElement_1.getSlugSchemaElement(i18nScope)] : []),
|
|
72
77
|
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
type: "Control",
|
|
78
|
+
type: "Section",
|
|
79
|
+
labelKey: `${i18nScope}.sections.description.label`,
|
|
76
80
|
options: {
|
|
77
|
-
|
|
78
|
-
type: "textarea",
|
|
79
|
-
helperText: {
|
|
80
|
-
labelKey: `${i18nScope}.fields.description.helperText`,
|
|
81
|
-
},
|
|
81
|
+
section: "block",
|
|
82
82
|
},
|
|
83
|
+
elements: [
|
|
84
|
+
{
|
|
85
|
+
labelKey: `${i18nScope}.fields.description.label`,
|
|
86
|
+
scope: "/properties/description",
|
|
87
|
+
type: "Control",
|
|
88
|
+
options: {
|
|
89
|
+
control: "hub-field-input-rich-text",
|
|
90
|
+
type: "textarea",
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
],
|
|
83
94
|
},
|
|
84
|
-
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "site", context.requestOptions),
|
|
85
|
-
...(context.isPortal ? [getSlugSchemaElement_1.getSlugSchemaElement(i18nScope)] : []),
|
|
86
95
|
{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
type: "Control",
|
|
96
|
+
type: "Section",
|
|
97
|
+
labelKey: `${i18nScope}.sections.discoverability.label`,
|
|
90
98
|
options: {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
placeholderIcon: "label",
|
|
96
|
-
helperText: { labelKey: `${i18nScope}.fields.tags.helperText` },
|
|
99
|
+
section: "block",
|
|
100
|
+
helperText: {
|
|
101
|
+
labelKey: `${i18nScope}.sections.discoverability.helperText`,
|
|
102
|
+
},
|
|
97
103
|
},
|
|
104
|
+
elements: [
|
|
105
|
+
{
|
|
106
|
+
labelKey: `${i18nScope}.fields.tags.label`,
|
|
107
|
+
scope: "/properties/tags",
|
|
108
|
+
type: "Control",
|
|
109
|
+
options: {
|
|
110
|
+
control: "hub-field-input-combobox",
|
|
111
|
+
items: await getTagItems_1.getTagItems(options.tags, context.portal.id, context.hubRequestOptions),
|
|
112
|
+
allowCustomValues: true,
|
|
113
|
+
selectionMode: "multiple",
|
|
114
|
+
placeholderIcon: "label",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
...(await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
118
|
+
],
|
|
98
119
|
},
|
|
99
|
-
...(await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
100
120
|
],
|
|
101
121
|
},
|
|
102
122
|
{
|
|
103
123
|
type: "Section",
|
|
104
124
|
labelKey: `${i18nScope}.sections.location.label`,
|
|
105
|
-
options: {
|
|
106
|
-
helperText: {
|
|
107
|
-
labelKey: `${i18nScope}.sections.location.helperText`,
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
125
|
elements: [
|
|
111
126
|
{
|
|
112
127
|
scope: "/properties/location",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SiteUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/sites/_internal/SiteUiSchemaEdit.ts"],"names":[],"mappings":";;;AACA,qFAAkF;AAClF,uFAAoF;AACpF,yEAAsE;AAEtE,yGAAsG;AAEtG,+GAA4G;AAC5G,2FAAwF;AAExF;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA0B,EAC1B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;iCACnD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;oCACpB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,6BAA6B;iCACpD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,QAAQ;oCACjB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4CAA4C;iCACnE;6BACF;yBACF;qBACF;oBACD;wBACE,QAAQ,EAAE,GAAG,SAAS,uBAAuB;wBAC7C,KAAK,EAAE,qBAAqB;wBAC5B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,uBAAuB;4BAChC,IAAI,EAAE,UAAU;4BAChB,IAAI,EAAE,CAAC;4BACP,
|
|
1
|
+
{"version":3,"file":"SiteUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/sites/_internal/SiteUiSchemaEdit.ts"],"names":[],"mappings":";;;AACA,qFAAkF;AAClF,uFAAoF;AACpF,yEAAsE;AAEtE,yGAAsG;AAEtG,+GAA4G;AAC5G,2FAAwF;AAExF;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA0B,EAC1B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR,qBAAqB;YACrB;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ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MAAM,EAAE,MAAM,qCAAiB,CAC7B,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,OAAO,EAAE,MAAM,uCAAkB,CAC/B,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,IAAI,EACnB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,2BAA2B,EAAE,CAAC;yBAC/B;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -4,6 +4,8 @@ exports.buildUiSchema = void 0;
|
|
|
4
4
|
const fetchCategoriesUiSchemaElement_1 = require("../../core/schemas/internal/fetchCategoriesUiSchemaElement");
|
|
5
5
|
const getTagItems_1 = require("../../core/schemas/internal/getTagItems");
|
|
6
6
|
const getThumbnailUiSchemaElement_1 = require("../../core/schemas/internal/getThumbnailUiSchemaElement");
|
|
7
|
+
const getLocationExtent_1 = require("../../core/schemas/internal/getLocationExtent");
|
|
8
|
+
const getLocationOptions_1 = require("../../core/schemas/internal/getLocationOptions");
|
|
7
9
|
/**
|
|
8
10
|
* @private
|
|
9
11
|
* constructs the complete edit uiSchema for Hub Survey.
|
|
@@ -17,6 +19,11 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
17
19
|
{
|
|
18
20
|
type: "Section",
|
|
19
21
|
labelKey: `${i18nScope}.sections.basicInfo.label`,
|
|
22
|
+
options: {
|
|
23
|
+
helperText: {
|
|
24
|
+
labelKey: `${i18nScope}.sections.basicInfo.helperText`,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
20
27
|
elements: [
|
|
21
28
|
{
|
|
22
29
|
labelKey: `${i18nScope}.fields.name.label`,
|
|
@@ -45,18 +52,7 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
45
52
|
],
|
|
46
53
|
},
|
|
47
54
|
},
|
|
48
|
-
|
|
49
|
-
labelKey: `${i18nScope}.fields.description.label`,
|
|
50
|
-
scope: "/properties/description",
|
|
51
|
-
type: "Control",
|
|
52
|
-
options: {
|
|
53
|
-
control: "hub-field-input-rich-text",
|
|
54
|
-
type: "textarea",
|
|
55
|
-
helperText: {
|
|
56
|
-
labelKey: `${i18nScope}.fields.description.helperText`,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
55
|
+
// getSlugSchemaElement(i18nScope),
|
|
60
56
|
{
|
|
61
57
|
labelKey: `${i18nScope}.fields.summary.label`,
|
|
62
58
|
scope: "/properties/summary",
|
|
@@ -65,9 +61,6 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
65
61
|
control: "hub-field-input-input",
|
|
66
62
|
type: "textarea",
|
|
67
63
|
rows: 4,
|
|
68
|
-
helperText: {
|
|
69
|
-
labelKey: `${i18nScope}.fields.summary.helperText`,
|
|
70
|
-
},
|
|
71
64
|
messages: [
|
|
72
65
|
{
|
|
73
66
|
type: "ERROR",
|
|
@@ -78,26 +71,70 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
78
71
|
],
|
|
79
72
|
},
|
|
80
73
|
},
|
|
74
|
+
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "survey", context.requestOptions),
|
|
75
|
+
{
|
|
76
|
+
type: "Section",
|
|
77
|
+
labelKey: `${i18nScope}.sections.description.label`,
|
|
78
|
+
options: {
|
|
79
|
+
section: "block",
|
|
80
|
+
},
|
|
81
|
+
elements: [
|
|
82
|
+
// description
|
|
83
|
+
{
|
|
84
|
+
labelKey: `${i18nScope}.fields.description.label`,
|
|
85
|
+
scope: "/properties/description",
|
|
86
|
+
type: "Control",
|
|
87
|
+
options: {
|
|
88
|
+
control: "hub-field-input-rich-text",
|
|
89
|
+
type: "textarea",
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: "Section",
|
|
96
|
+
labelKey: `${i18nScope}.sections.discoverability.label`,
|
|
97
|
+
options: {
|
|
98
|
+
section: "block",
|
|
99
|
+
helperText: {
|
|
100
|
+
labelKey: `${i18nScope}.sections.discoverability.helperText`,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
elements: [
|
|
104
|
+
// tags
|
|
105
|
+
{
|
|
106
|
+
labelKey: `${i18nScope}.fields.tags.label`,
|
|
107
|
+
scope: "/properties/tags",
|
|
108
|
+
type: "Control",
|
|
109
|
+
options: {
|
|
110
|
+
control: "hub-field-input-combobox",
|
|
111
|
+
items: await getTagItems_1.getTagItems(options.tags, context.portal.id, context.hubRequestOptions),
|
|
112
|
+
allowCustomValues: true,
|
|
113
|
+
selectionMode: "multiple",
|
|
114
|
+
placeholderIcon: "label",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
// categories
|
|
118
|
+
...(await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
119
|
+
],
|
|
120
|
+
},
|
|
81
121
|
],
|
|
82
122
|
},
|
|
123
|
+
// location section
|
|
83
124
|
{
|
|
84
125
|
type: "Section",
|
|
85
|
-
labelKey: `${i18nScope}.sections.
|
|
126
|
+
labelKey: `${i18nScope}.sections.location.label`,
|
|
86
127
|
elements: [
|
|
87
128
|
{
|
|
88
|
-
|
|
89
|
-
scope: "/properties/tags",
|
|
129
|
+
scope: "/properties/location",
|
|
90
130
|
type: "Control",
|
|
91
131
|
options: {
|
|
92
|
-
control: "hub-field-input-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
placeholderIcon: "label",
|
|
132
|
+
control: "hub-field-input-location-picker",
|
|
133
|
+
extent: await getLocationExtent_1.getLocationExtent(options.location, context.hubRequestOptions),
|
|
134
|
+
options: await getLocationOptions_1.getLocationOptions(options.id, options.type, options.location, context.portal.name, context.hubRequestOptions),
|
|
135
|
+
noticeTitleElementAriaLevel: 3,
|
|
97
136
|
},
|
|
98
137
|
},
|
|
99
|
-
...(await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
100
|
-
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "survey", context.requestOptions),
|
|
101
138
|
],
|
|
102
139
|
},
|
|
103
140
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SurveyUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/surveys/_internal/SurveyUiSchemaEdit.ts"],"names":[],"mappings":";;;AACA,+GAA4G;AAC5G,yEAAsE;AACtE,yGAAsG;
|
|
1
|
+
{"version":3,"file":"SurveyUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/surveys/_internal/SurveyUiSchemaEdit.ts"],"names":[],"mappings":";;;AACA,+GAA4G;AAC5G,yEAAsE;AACtE,yGAAsG;AAGtG,qFAAkF;AAClF,uFAAoF;AAEpF;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,gCAAgC;qBACvD;iBACF;gBACD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;iCACnD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;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QAAQ,EAAE;4BACR,OAAO;4BACP;gCACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gCAC1C,KAAK,EAAE,kBAAkB;gCACzB,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE;oCACP,OAAO,EAAE,0BAA0B;oCACnC,KAAK,EAAE,MAAM,yBAAW,CACtB,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,MAAM,CAAC,EAAE,EACjB,OAAO,CAAC,iBAAiB,CAC1B;oCACD,iBAAiB,EAAE,IAAI;oCACvB,aAAa,EAAE,UAAU;oCACzB,eAAe,EAAE,OAAO;iCACzB;6BACF;4BACD,aAAa;4BACb,GAAG,CAAC,MAAM,+DAA8B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;yBAC9D;qBACF;iBACF;aACF;YACD,mBAAmB;YACnB;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,0BAA0B;gBAChD,QAAQ,EAAE;oBACR;wBACE,KAAK,EAAE,sBAAsB;wBAC7B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,iCAAiC;4BAC1C,MAAM,EAAE,MAAM,qCAAiB,CAC7B,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,OAAO,EAAE,MAAM,uCAAkB,CAC/B,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,IAAI,EACnB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,2BAA2B,EAAE,CAAC;yBAC/B;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -4,6 +4,8 @@ exports.buildUiSchema = void 0;
|
|
|
4
4
|
const getThumbnailUiSchemaElement_1 = require("../../core/schemas/internal/getThumbnailUiSchemaElement");
|
|
5
5
|
const types_1 = require("../../core/schemas/types");
|
|
6
6
|
const getEntityThumbnailUrl_1 = require("../../core/getEntityThumbnailUrl");
|
|
7
|
+
const getTagItems_1 = require("../../core/schemas/internal/getTagItems");
|
|
8
|
+
const fetchCategoriesUiSchemaElement_1 = require("../../core/schemas/internal/fetchCategoriesUiSchemaElement");
|
|
7
9
|
/**
|
|
8
10
|
* @private
|
|
9
11
|
* constructs the complete edit uiSchema for Hub Templates.
|
|
@@ -22,6 +24,11 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
22
24
|
{
|
|
23
25
|
type: "Section",
|
|
24
26
|
labelKey: `${i18nScope}.sections.basicInfo.label`,
|
|
27
|
+
options: {
|
|
28
|
+
helperText: {
|
|
29
|
+
labelKey: `${i18nScope}.sections.basicInfo.helperText`,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
25
32
|
elements: [
|
|
26
33
|
{
|
|
27
34
|
type: "Control",
|
|
@@ -50,40 +57,15 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
50
57
|
],
|
|
51
58
|
},
|
|
52
59
|
},
|
|
60
|
+
// getSlugSchemaElement(i18nScope),
|
|
53
61
|
{
|
|
54
62
|
type: "Control",
|
|
55
|
-
scope: "/properties/previewUrl",
|
|
56
|
-
labelKey: `${i18nScope}.fields.previewUrl.label`,
|
|
57
|
-
options: {
|
|
58
|
-
helperText: {
|
|
59
|
-
labelKey: `${i18nScope}.fields.previewUrl.helperText`,
|
|
60
|
-
},
|
|
61
|
-
messages: [
|
|
62
|
-
{
|
|
63
|
-
type: "ERROR",
|
|
64
|
-
keyword: "format",
|
|
65
|
-
icon: true,
|
|
66
|
-
labelKey: `shared.errors.urlFormat`,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
type: "ERROR",
|
|
70
|
-
keyword: "if",
|
|
71
|
-
hidden: true,
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
labelKey: `${i18nScope}.fields.summary.label`,
|
|
78
63
|
scope: "/properties/summary",
|
|
79
|
-
|
|
64
|
+
labelKey: `${i18nScope}.fields.summary.label`,
|
|
80
65
|
options: {
|
|
81
66
|
control: "hub-field-input-input",
|
|
82
67
|
type: "textarea",
|
|
83
68
|
rows: 4,
|
|
84
|
-
helperText: {
|
|
85
|
-
labelKey: `${i18nScope}.fields.summary.helperText`,
|
|
86
|
-
},
|
|
87
69
|
messages: [
|
|
88
70
|
{
|
|
89
71
|
type: "ERROR",
|
|
@@ -94,19 +76,82 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
94
76
|
],
|
|
95
77
|
},
|
|
96
78
|
},
|
|
79
|
+
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, getEntityThumbnailUrl_1.getEntityThumbnailUrl(options), "template", context.requestOptions),
|
|
80
|
+
{
|
|
81
|
+
type: "Section",
|
|
82
|
+
labelKey: `${i18nScope}.sections.description.label`,
|
|
83
|
+
options: {
|
|
84
|
+
section: "block",
|
|
85
|
+
},
|
|
86
|
+
elements: [
|
|
87
|
+
// description
|
|
88
|
+
{
|
|
89
|
+
labelKey: `${i18nScope}.fields.description.label`,
|
|
90
|
+
scope: "/properties/description",
|
|
91
|
+
type: "Control",
|
|
92
|
+
options: {
|
|
93
|
+
control: "hub-field-input-rich-text",
|
|
94
|
+
type: "textarea",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "Section",
|
|
101
|
+
labelKey: `${i18nScope}.sections.discoverability.label`,
|
|
102
|
+
options: {
|
|
103
|
+
section: "block",
|
|
104
|
+
helperText: {
|
|
105
|
+
labelKey: `${i18nScope}.sections.discoverability.helperText`,
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
elements: [
|
|
109
|
+
// tags
|
|
110
|
+
{
|
|
111
|
+
labelKey: `${i18nScope}.fields.tags.label`,
|
|
112
|
+
scope: "/properties/tags",
|
|
113
|
+
type: "Control",
|
|
114
|
+
options: {
|
|
115
|
+
control: "hub-field-input-combobox",
|
|
116
|
+
items: await getTagItems_1.getTagItems(options.tags, context.portal.id, context.hubRequestOptions),
|
|
117
|
+
allowCustomValues: true,
|
|
118
|
+
selectionMode: "multiple",
|
|
119
|
+
placeholderIcon: "label",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
// categories
|
|
123
|
+
...(await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: "Section",
|
|
130
|
+
labelKey: `${i18nScope}.sections.templateDetails.label`,
|
|
131
|
+
elements: [
|
|
97
132
|
{
|
|
98
|
-
labelKey: `${i18nScope}.fields.description.label`,
|
|
99
|
-
scope: "/properties/description",
|
|
100
133
|
type: "Control",
|
|
134
|
+
scope: "/properties/previewUrl",
|
|
135
|
+
labelKey: `${i18nScope}.fields.previewUrl.label`,
|
|
101
136
|
options: {
|
|
102
|
-
control: "hub-field-input-rich-text",
|
|
103
|
-
type: "textarea",
|
|
104
137
|
helperText: {
|
|
105
|
-
labelKey: `${i18nScope}.fields.
|
|
138
|
+
labelKey: `${i18nScope}.fields.previewUrl.helperText`,
|
|
106
139
|
},
|
|
140
|
+
messages: [
|
|
141
|
+
{
|
|
142
|
+
type: "ERROR",
|
|
143
|
+
keyword: "format",
|
|
144
|
+
icon: true,
|
|
145
|
+
labelKey: `shared.errors.urlFormat`,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
type: "ERROR",
|
|
149
|
+
keyword: "if",
|
|
150
|
+
hidden: true,
|
|
151
|
+
},
|
|
152
|
+
],
|
|
107
153
|
},
|
|
108
154
|
},
|
|
109
|
-
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, getEntityThumbnailUrl_1.getEntityThumbnailUrl(options), "template", context.requestOptions),
|
|
110
155
|
],
|
|
111
156
|
},
|
|
112
157
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/templates/_internal/TemplateUiSchemaEdit.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TemplateUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/templates/_internal/TemplateUiSchemaEdit.ts"],"names":[],"mappings":";;;AACA,yGAAsG;AACtG,oDAA2E;AAC3E,4EAAyE;AACzE,yEAAsE;AACtE,+GAA4G;AAG5G;;;;;;;;;;GAUG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA8B,EAC9B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,gCAAgC;qBACvD;iBACF;gBACD,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,kBAAkB;wBACzB,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,4BAAoB,CAAC,KAAK;oCAChC,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;iCACnD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;oCACpB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,6BAA6B;iCACpD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,QAAQ;oCACjB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,wCAAwC;iCAC/D;6BACF;yBACF;q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,yBAAW,CACtB,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,MAAM,CAAC,EAAE,EACjB,OAAO,CAAC,iBAAiB,CAC1B;oCACD,iBAAiB,EAAE,IAAI;oCACvB,aAAa,EAAE,UAAU;oCACzB,eAAe,EAAE,OAAO;iCACzB;6BACF;4BACD,aAAa;4BACb,GAAG,CAAC,MAAM,+DAA8B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;yBAC9D;qBACF;iBACF;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,iCAAiC;gBACvD,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,wBAAwB;wBAC/B,QAAQ,EAAE,GAAG,SAAS,0BAA0B;wBAChD,OAAO,EAAE;4BACP,UAAU,EAAE;gCACV,QAAQ,EAAE,GAAG,SAAS,+BAA+B;6BACtD;4BACD,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,QAAQ;oCACjB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,yBAAyB;iCACpC;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,IAAI;oCACb,MAAM,EAAE,IAAI;iCACb;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IArcGISContext } from "../../types/IArcGISContext";
|
|
2
|
-
import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
3
2
|
import { IUiSchema } from "../../core/schemas/types";
|
|
3
|
+
import { IHubInitiativeTemplate } from "../../core";
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
6
6
|
* constructs the complete edit uiSchema for Hub Initiative Templates.
|
|
@@ -12,4 +12,4 @@ import { IUiSchema } from "../../core/schemas/types";
|
|
|
12
12
|
* @param context
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
export declare const buildUiSchema: (i18nScope: string, options:
|
|
15
|
+
export declare const buildUiSchema: (i18nScope: string, options: Partial<IHubInitiativeTemplate>, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IArcGISContext } from "../../types/IArcGISContext";
|
|
2
|
-
import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
3
2
|
import { IUiSchema } from "../../core/schemas/types";
|
|
3
|
+
import { IHubTemplate } from "../../core";
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
6
6
|
* constructs the complete edit uiSchema for Hub Templates.
|
|
@@ -12,4 +12,4 @@ import { IUiSchema } from "../../core/schemas/types";
|
|
|
12
12
|
* @param context
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
export declare const buildUiSchema: (i18nScope: string, options:
|
|
15
|
+
export declare const buildUiSchema: (i18nScope: string, options: Partial<IHubTemplate>, context: IArcGISContext) => Promise<IUiSchema>;
|