@webiny/app-headless-cms 0.0.0-mt-1
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/LICENSE +21 -0
- package/README.md +18 -0
- package/admin/components/ContentEntryForm/ContentEntryForm.d.ts +8 -0
- package/admin/components/ContentEntryForm/ContentEntryForm.js +68 -0
- package/admin/components/ContentEntryForm/ContentEntryFormPreview.d.ts +7 -0
- package/admin/components/ContentEntryForm/ContentEntryFormPreview.js +43 -0
- package/admin/components/ContentEntryForm/Fields.d.ts +12 -0
- package/admin/components/ContentEntryForm/Fields.js +33 -0
- package/admin/components/ContentEntryForm/Label.d.ts +5 -0
- package/admin/components/ContentEntryForm/Label.js +20 -0
- package/admin/components/ContentEntryForm/RenderFieldElement.d.ts +8 -0
- package/admin/components/ContentEntryForm/RenderFieldElement.js +40 -0
- package/admin/components/ContentEntryForm/functions/createValidators.d.ts +1 -0
- package/admin/components/ContentEntryForm/functions/createValidators.js +58 -0
- package/admin/components/ContentEntryForm/functions/getValue.d.ts +5 -0
- package/admin/components/ContentEntryForm/functions/getValue.js +20 -0
- package/admin/components/ContentEntryForm/functions/setValue.d.ts +6 -0
- package/admin/components/ContentEntryForm/functions/setValue.js +20 -0
- package/admin/components/ContentEntryForm/useBind.d.ts +10 -0
- package/admin/components/ContentEntryForm/useBind.js +76 -0
- package/admin/components/ContentEntryForm/useContentEntryForm.d.ts +22 -0
- package/admin/components/ContentEntryForm/useContentEntryForm.js +338 -0
- package/admin/components/ContentEntryForm/useRenderPlugins.d.ts +2 -0
- package/admin/components/ContentEntryForm/useRenderPlugins.js +7 -0
- package/admin/components/ContentModelEditor/Context.d.ts +23 -0
- package/admin/components/ContentModelEditor/Context.js +218 -0
- package/admin/components/ContentModelEditor/Editor.d.ts +3 -0
- package/admin/components/ContentModelEditor/Editor.js +138 -0
- package/admin/components/ContentModelEditor/FieldsSidebar.d.ts +4 -0
- package/admin/components/ContentModelEditor/FieldsSidebar.js +91 -0
- package/admin/components/ContentModelEditor/Header.d.ts +2 -0
- package/admin/components/ContentModelEditor/Header.js +24 -0
- package/admin/components/ContentModelEditor/PreviewTab.d.ts +2 -0
- package/admin/components/ContentModelEditor/PreviewTab.js +36 -0
- package/admin/components/ContentModelEditor/icons/round-assignment-24px.svg +4 -0
- package/admin/components/ContentModelEditor/icons/round-drag_indicator-24px.svg +4 -0
- package/admin/components/ContentModelEditor/useContentModelEditor.d.ts +1 -0
- package/admin/components/ContentModelEditor/useContentModelEditor.js +11 -0
- package/admin/components/DragPreview.d.ts +2 -0
- package/admin/components/DragPreview.js +98 -0
- package/admin/components/Draggable.d.ts +14 -0
- package/admin/components/Draggable.js +49 -0
- package/admin/components/DropZone/Center.d.ts +12 -0
- package/admin/components/DropZone/Center.js +60 -0
- package/admin/components/DropZone/Horizontal.d.ts +9 -0
- package/admin/components/DropZone/Horizontal.js +83 -0
- package/admin/components/DropZone/Vertical.d.ts +10 -0
- package/admin/components/DropZone/Vertical.js +79 -0
- package/admin/components/DropZone/index.d.ts +4 -0
- package/admin/components/DropZone/index.js +4 -0
- package/admin/components/Droppable.d.ts +23 -0
- package/admin/components/Droppable.js +45 -0
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab.d.ts +3 -0
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab.js +83 -0
- package/admin/components/FieldEditor/EditFieldDialog/GeneralTab.d.ts +10 -0
- package/admin/components/FieldEditor/EditFieldDialog/GeneralTab.js +120 -0
- package/admin/components/FieldEditor/EditFieldDialog/PredefinedValues.d.ts +5 -0
- package/admin/components/FieldEditor/EditFieldDialog/PredefinedValues.js +55 -0
- package/admin/components/FieldEditor/EditFieldDialog/ValidatorsTab.d.ts +10 -0
- package/admin/components/FieldEditor/EditFieldDialog/ValidatorsTab.js +121 -0
- package/admin/components/FieldEditor/EditFieldDialog/functions/getValue.d.ts +6 -0
- package/admin/components/FieldEditor/EditFieldDialog/functions/getValue.js +16 -0
- package/admin/components/FieldEditor/EditFieldDialog/functions/setValue.d.ts +7 -0
- package/admin/components/FieldEditor/EditFieldDialog/functions/setValue.js +21 -0
- package/admin/components/FieldEditor/EditFieldDialog.d.ts +9 -0
- package/admin/components/FieldEditor/EditFieldDialog.js +231 -0
- package/admin/components/FieldEditor/Field.d.ts +3 -0
- package/admin/components/FieldEditor/Field.js +179 -0
- package/admin/components/FieldEditor/FieldEditor.d.ts +12 -0
- package/admin/components/FieldEditor/FieldEditor.js +166 -0
- package/admin/components/FieldEditor/FieldEditorContext.d.ts +53 -0
- package/admin/components/FieldEditor/FieldEditorContext.js +330 -0
- package/admin/components/FieldEditor/Styled.d.ts +6 -0
- package/admin/components/FieldEditor/Styled.js +54 -0
- package/admin/components/FieldEditor/index.d.ts +2 -0
- package/admin/components/FieldEditor/index.js +2 -0
- package/admin/components/FieldEditor/useFieldEditor.d.ts +1 -0
- package/admin/components/FieldEditor/useFieldEditor.js +5 -0
- package/admin/components/FieldEditor/utils/deleteField.d.ts +10 -0
- package/admin/components/FieldEditor/utils/deleteField.js +34 -0
- package/admin/components/FieldEditor/utils/getFieldPosition.d.ts +6 -0
- package/admin/components/FieldEditor/utils/getFieldPosition.js +20 -0
- package/admin/components/FieldEditor/utils/index.d.ts +4 -0
- package/admin/components/FieldEditor/utils/index.js +4 -0
- package/admin/components/FieldEditor/utils/moveField.d.ts +7 -0
- package/admin/components/FieldEditor/utils/moveField.js +51 -0
- package/admin/components/FieldEditor/utils/moveRow.d.ts +9 -0
- package/admin/components/FieldEditor/utils/moveRow.js +10 -0
- package/admin/constants/statusLabels.d.ts +8 -0
- package/admin/constants/statusLabels.js +13 -0
- package/admin/contexts/Cms/NetworkError.d.ts +2 -0
- package/admin/contexts/Cms/NetworkError.js +7 -0
- package/admin/contexts/Cms/index.d.ts +16 -0
- package/admin/contexts/Cms/index.js +43 -0
- package/admin/elements/ContentGroupMenuElement.d.ts +3 -0
- package/admin/elements/ContentGroupMenuElement.js +17 -0
- package/admin/elements/ContentModelMenuElement.d.ts +3 -0
- package/admin/elements/ContentModelMenuElement.js +17 -0
- package/admin/elements/NothingToShowElement.d.ts +15 -0
- package/admin/elements/NothingToShowElement.js +88 -0
- package/admin/graphql/contentEntries.d.ts +12 -0
- package/admin/graphql/contentEntries.js +68 -0
- package/admin/graphql/contentModels.d.ts +4 -0
- package/admin/graphql/contentModels.js +9 -0
- package/admin/graphql/createFieldsList.d.ts +2 -0
- package/admin/graphql/createFieldsList.js +21 -0
- package/admin/hooks/index.d.ts +5 -0
- package/admin/hooks/index.js +5 -0
- package/admin/hooks/useApolloClient.d.ts +2 -0
- package/admin/hooks/useApolloClient.js +10 -0
- package/admin/hooks/useCms.d.ts +3 -0
- package/admin/hooks/useCms.js +14 -0
- package/admin/hooks/useLazyQuery.d.ts +2 -0
- package/admin/hooks/useLazyQuery.js +16 -0
- package/admin/hooks/useMutation.d.ts +2 -0
- package/admin/hooks/useMutation.js +16 -0
- package/admin/hooks/usePermission.d.ts +27 -0
- package/admin/hooks/usePermission.js +218 -0
- package/admin/hooks/useQuery.d.ts +2 -0
- package/admin/hooks/useQuery.js +17 -0
- package/admin/icons/add.svg +5 -0
- package/admin/icons/arrow_forward-24px.svg +1 -0
- package/admin/icons/baseline-autorenew-24px.svg +4 -0
- package/admin/icons/beenhere.svg +1 -0
- package/admin/icons/call_split-24px.svg +4 -0
- package/admin/icons/close.svg +13 -0
- package/admin/icons/delete.svg +12 -0
- package/admin/icons/devices_other-black-24px.svg +1 -0
- package/admin/icons/done-24px.svg +1 -0
- package/admin/icons/edit.svg +17 -0
- package/admin/icons/emoji_people-24px.svg +1 -0
- package/admin/icons/gesture.svg +1 -0
- package/admin/icons/help_outline.svg +1 -0
- package/admin/icons/how_to_vote-24px.svg +4 -0
- package/admin/icons/info.svg +1 -0
- package/admin/icons/lock.svg +1 -0
- package/admin/icons/more_vert.svg +12 -0
- package/admin/icons/publish.svg +1 -0
- package/admin/icons/round-arrow_drop_down-24px.svg +12 -0
- package/admin/icons/round-drag_indicator-24px.svg +4 -0
- package/admin/icons/round-translate-24px.svg +4 -0
- package/admin/icons/rule-24px.svg +1 -0
- package/admin/icons/title-24px.svg +1 -0
- package/admin/icons/unpublish.svg +4 -0
- package/admin/icons/view_list.svg +1 -0
- package/admin/icons/visibility.svg +16 -0
- package/admin/plugins/apiInformation/index.d.ts +3 -0
- package/admin/plugins/apiInformation/index.js +59 -0
- package/admin/plugins/apiInformation/placeholder.manage.graphql +18 -0
- package/admin/plugins/apiInformation/placeholder.preview.graphql +15 -0
- package/admin/plugins/apiInformation/placeholder.read.graphql +16 -0
- package/admin/plugins/definitions/CmsEditorFieldValidatorFileTypePlugin.d.ts +21 -0
- package/admin/plugins/definitions/CmsEditorFieldValidatorFileTypePlugin.js +61 -0
- package/admin/plugins/definitions/CmsFieldValidatorFileTypePlugin.d.ts +10 -0
- package/admin/plugins/definitions/CmsFieldValidatorFileTypePlugin.js +36 -0
- package/admin/plugins/editor/defaultBar/BackButton.d.ts +3 -0
- package/admin/plugins/editor/defaultBar/BackButton.js +21 -0
- package/admin/plugins/editor/defaultBar/CreateContentButton.d.ts +3 -0
- package/admin/plugins/editor/defaultBar/CreateContentButton.js +46 -0
- package/admin/plugins/editor/defaultBar/Divider.d.ts +3 -0
- package/admin/plugins/editor/defaultBar/Divider.js +11 -0
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettings.d.ts +6 -0
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettings.js +90 -0
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsButton.d.ts +3 -0
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsButton.js +27 -0
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsStyled.d.ts +6 -0
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsStyled.js +42 -0
- package/admin/plugins/editor/defaultBar/FormSettings/index.d.ts +1 -0
- package/admin/plugins/editor/defaultBar/FormSettings/index.js +1 -0
- package/admin/plugins/editor/defaultBar/Name/Name.d.ts +7 -0
- package/admin/plugins/editor/defaultBar/Name/Name.js +80 -0
- package/admin/plugins/editor/defaultBar/Name/NameStyled.d.ts +5 -0
- package/admin/plugins/editor/defaultBar/Name/NameStyled.js +48 -0
- package/admin/plugins/editor/defaultBar/Name/index.d.ts +1 -0
- package/admin/plugins/editor/defaultBar/Name/index.js +1 -0
- package/admin/plugins/editor/defaultBar/SaveContentModelButton.d.ts +3 -0
- package/admin/plugins/editor/defaultBar/SaveContentModelButton.js +63 -0
- package/admin/plugins/editor/defaultBar/icons/more_vert.svg +12 -0
- package/admin/plugins/editor/defaultBar/icons/round-arrow_back-24px.svg +13 -0
- package/admin/plugins/editor/defaultBar/icons/round-arrow_drop_down-24px.svg +12 -0
- package/admin/plugins/editor/defaultBar/icons/settings.svg +25 -0
- package/admin/plugins/editor/defaultBar/index.d.ts +7 -0
- package/admin/plugins/editor/defaultBar/index.js +44 -0
- package/admin/plugins/editor/formSettings/components/GeneralSettings.d.ts +7 -0
- package/admin/plugins/editor/formSettings/components/GeneralSettings.js +37 -0
- package/admin/plugins/editor/formSettings/components/GroupSelect.d.ts +3 -0
- package/admin/plugins/editor/formSettings/components/GroupSelect.js +30 -0
- package/admin/plugins/editor/formSettings/icons/round-settings-24px.svg +1 -0
- package/admin/plugins/editor/formSettings/index.d.ts +3 -0
- package/admin/plugins/editor/formSettings/index.js +14 -0
- package/admin/plugins/fieldRenderers/Accordion.d.ts +10 -0
- package/admin/plugins/fieldRenderers/Accordion.js +125 -0
- package/admin/plugins/fieldRenderers/DynamicSection.d.ts +14 -0
- package/admin/plugins/fieldRenderers/DynamicSection.js +103 -0
- package/admin/plugins/fieldRenderers/boolean/booleanSwitch.d.ts +3 -0
- package/admin/plugins/fieldRenderers/boolean/booleanSwitch.js +34 -0
- package/admin/plugins/fieldRenderers/boolean/index.d.ts +2 -0
- package/admin/plugins/fieldRenderers/boolean/index.js +2 -0
- package/admin/plugins/fieldRenderers/checkboxes.d.ts +3 -0
- package/admin/plugins/fieldRenderers/checkboxes.js +45 -0
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithTimezone.d.ts +9 -0
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithTimezone.js +148 -0
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithoutTimezone.d.ts +8 -0
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithoutTimezone.js +115 -0
- package/admin/plugins/fieldRenderers/dateTime/Input.d.ts +16 -0
- package/admin/plugins/fieldRenderers/dateTime/Input.js +26 -0
- package/admin/plugins/fieldRenderers/dateTime/Select.d.ts +3 -0
- package/admin/plugins/fieldRenderers/dateTime/Select.js +13 -0
- package/admin/plugins/fieldRenderers/dateTime/Time.d.ts +3 -0
- package/admin/plugins/fieldRenderers/dateTime/Time.js +13 -0
- package/admin/plugins/fieldRenderers/dateTime/dateTimeField.d.ts +3 -0
- package/admin/plugins/fieldRenderers/dateTime/dateTimeField.js +59 -0
- package/admin/plugins/fieldRenderers/dateTime/dateTimeFields.d.ts +3 -0
- package/admin/plugins/fieldRenderers/dateTime/dateTimeFields.js +84 -0
- package/admin/plugins/fieldRenderers/dateTime/index.d.ts +2 -0
- package/admin/plugins/fieldRenderers/dateTime/index.js +3 -0
- package/admin/plugins/fieldRenderers/dateTime/utils.d.ts +15 -0
- package/admin/plugins/fieldRenderers/dateTime/utils.js +153 -0
- package/admin/plugins/fieldRenderers/file/File.d.ts +15 -0
- package/admin/plugins/fieldRenderers/file/File.js +79 -0
- package/admin/plugins/fieldRenderers/file/fileField.d.ts +3 -0
- package/admin/plugins/fieldRenderers/file/fileField.js +64 -0
- package/admin/plugins/fieldRenderers/file/fileFields.d.ts +3 -0
- package/admin/plugins/fieldRenderers/file/fileFields.js +125 -0
- package/admin/plugins/fieldRenderers/file/index.d.ts +2 -0
- package/admin/plugins/fieldRenderers/file/index.js +3 -0
- package/admin/plugins/fieldRenderers/file/utils.d.ts +7 -0
- package/admin/plugins/fieldRenderers/file/utils.js +51 -0
- package/admin/plugins/fieldRenderers/longText/index.d.ts +2 -0
- package/admin/plugins/fieldRenderers/longText/index.js +3 -0
- package/admin/plugins/fieldRenderers/longText/longText.d.ts +3 -0
- package/admin/plugins/fieldRenderers/longText/longText.js +36 -0
- package/admin/plugins/fieldRenderers/longText/longTexts.d.ts +3 -0
- package/admin/plugins/fieldRenderers/longText/longTexts.js +43 -0
- package/admin/plugins/fieldRenderers/number/index.d.ts +2 -0
- package/admin/plugins/fieldRenderers/number/index.js +3 -0
- package/admin/plugins/fieldRenderers/number/numberInput.d.ts +3 -0
- package/admin/plugins/fieldRenderers/number/numberInput.js +39 -0
- package/admin/plugins/fieldRenderers/number/numberInputs.d.ts +3 -0
- package/admin/plugins/fieldRenderers/number/numberInputs.js +50 -0
- package/admin/plugins/fieldRenderers/object/StyledComponents.d.ts +4 -0
- package/admin/plugins/fieldRenderers/object/StyledComponents.js +5 -0
- package/admin/plugins/fieldRenderers/object/index.d.ts +2 -0
- package/admin/plugins/fieldRenderers/object/index.js +3 -0
- package/admin/plugins/fieldRenderers/object/multipleObjects.d.ts +3 -0
- package/admin/plugins/fieldRenderers/object/multipleObjects.js +72 -0
- package/admin/plugins/fieldRenderers/object/singleObject.d.ts +3 -0
- package/admin/plugins/fieldRenderers/object/singleObject.js +45 -0
- package/admin/plugins/fieldRenderers/radioButtons.d.ts +3 -0
- package/admin/plugins/fieldRenderers/radioButtons.js +45 -0
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesAutocomplete.d.ts +6 -0
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesAutocomplete.js +54 -0
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesMultiAutoComplete.d.ts +6 -0
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesMultiAutoComplete.js +65 -0
- package/admin/plugins/fieldRenderers/ref/components/getOptions.d.ts +1 -0
- package/admin/plugins/fieldRenderers/ref/components/getOptions.js +21 -0
- package/admin/plugins/fieldRenderers/ref/components/graphql.d.ts +4 -0
- package/admin/plugins/fieldRenderers/ref/components/graphql.js +10 -0
- package/admin/plugins/fieldRenderers/ref/components/renderItem.d.ts +2 -0
- package/admin/plugins/fieldRenderers/ref/components/renderItem.js +14 -0
- package/admin/plugins/fieldRenderers/ref/components/useReference.d.ts +22 -0
- package/admin/plugins/fieldRenderers/ref/components/useReference.js +240 -0
- package/admin/plugins/fieldRenderers/ref/components/useReferences.d.ts +19 -0
- package/admin/plugins/fieldRenderers/ref/components/useReferences.js +180 -0
- package/admin/plugins/fieldRenderers/ref/index.d.ts +2 -0
- package/admin/plugins/fieldRenderers/ref/index.js +3 -0
- package/admin/plugins/fieldRenderers/ref/refInput.d.ts +3 -0
- package/admin/plugins/fieldRenderers/ref/refInput.js +30 -0
- package/admin/plugins/fieldRenderers/ref/refInputs.d.ts +3 -0
- package/admin/plugins/fieldRenderers/ref/refInputs.js +37 -0
- package/admin/plugins/fieldRenderers/richText/index.d.ts +2 -0
- package/admin/plugins/fieldRenderers/richText/index.js +3 -0
- package/admin/plugins/fieldRenderers/richText/richTextInput.d.ts +3 -0
- package/admin/plugins/fieldRenderers/richText/richTextInput.js +50 -0
- package/admin/plugins/fieldRenderers/richText/richTextInputs.d.ts +3 -0
- package/admin/plugins/fieldRenderers/richText/richTextInputs.js +79 -0
- package/admin/plugins/fieldRenderers/select.d.ts +3 -0
- package/admin/plugins/fieldRenderers/select.js +34 -0
- package/admin/plugins/fieldRenderers/text/index.d.ts +2 -0
- package/admin/plugins/fieldRenderers/text/index.js +3 -0
- package/admin/plugins/fieldRenderers/text/textInput.d.ts +3 -0
- package/admin/plugins/fieldRenderers/text/textInput.js +35 -0
- package/admin/plugins/fieldRenderers/text/textInputs.d.ts +3 -0
- package/admin/plugins/fieldRenderers/text/textInputs.js +46 -0
- package/admin/plugins/fieldValidators/date/availableValidators.d.ts +1 -0
- package/admin/plugins/fieldValidators/date/availableValidators.js +11 -0
- package/admin/plugins/fieldValidators/date/createDateInputField.d.ts +3 -0
- package/admin/plugins/fieldValidators/date/createDateInputField.js +33 -0
- package/admin/plugins/fieldValidators/dateGte.d.ts +3 -0
- package/admin/plugins/fieldValidators/dateGte.js +40 -0
- package/admin/plugins/fieldValidators/dateLte.d.ts +3 -0
- package/admin/plugins/fieldValidators/dateLte.js +40 -0
- package/admin/plugins/fieldValidators/gte.d.ts +3 -0
- package/admin/plugins/fieldValidators/gte.js +27 -0
- package/admin/plugins/fieldValidators/in.d.ts +3 -0
- package/admin/plugins/fieldValidators/in.js +26 -0
- package/admin/plugins/fieldValidators/lte.d.ts +3 -0
- package/admin/plugins/fieldValidators/lte.js +27 -0
- package/admin/plugins/fieldValidators/maxLength.d.ts +3 -0
- package/admin/plugins/fieldValidators/maxLength.js +27 -0
- package/admin/plugins/fieldValidators/minLength.d.ts +3 -0
- package/admin/plugins/fieldValidators/minLength.js +27 -0
- package/admin/plugins/fieldValidators/pattern.d.ts +3 -0
- package/admin/plugins/fieldValidators/pattern.js +74 -0
- package/admin/plugins/fieldValidators/patternPlugins/email.d.ts +3 -0
- package/admin/plugins/fieldValidators/patternPlugins/email.js +9 -0
- package/admin/plugins/fieldValidators/patternPlugins/lowerCase.d.ts +3 -0
- package/admin/plugins/fieldValidators/patternPlugins/lowerCase.js +9 -0
- package/admin/plugins/fieldValidators/patternPlugins/upperCase.d.ts +3 -0
- package/admin/plugins/fieldValidators/patternPlugins/upperCase.js +9 -0
- package/admin/plugins/fieldValidators/patternPlugins/url.d.ts +3 -0
- package/admin/plugins/fieldValidators/patternPlugins/url.js +9 -0
- package/admin/plugins/fieldValidators/required.d.ts +3 -0
- package/admin/plugins/fieldValidators/required.js +10 -0
- package/admin/plugins/fields/PredefinedValuesDynamicFieldset.d.ts +6 -0
- package/admin/plugins/fields/PredefinedValuesDynamicFieldset.js +108 -0
- package/admin/plugins/fields/boolean.d.ts +3 -0
- package/admin/plugins/fields/boolean.js +31 -0
- package/admin/plugins/fields/dateTime.d.ts +3 -0
- package/admin/plugins/fields/dateTime.js +77 -0
- package/admin/plugins/fields/file.d.ts +3 -0
- package/admin/plugins/fields/file.js +46 -0
- package/admin/plugins/fields/icons/ballot_black_24dp.svg +1 -0
- package/admin/plugins/fields/icons/dropdown-icon.svg +16 -0
- package/admin/plugins/fields/icons/notes-black-24px.svg +1 -0
- package/admin/plugins/fields/icons/round-check_box-24px.svg +4 -0
- package/admin/plugins/fields/icons/round-link-24px.svg +1 -0
- package/admin/plugins/fields/icons/round-looks_3-24px.svg +4 -0
- package/admin/plugins/fields/icons/round-notes.svg +1 -0
- package/admin/plugins/fields/icons/round-radio_button_checked-24px.svg +5 -0
- package/admin/plugins/fields/icons/round-short_text.svg +1 -0
- package/admin/plugins/fields/icons/round-subject.svg +1 -0
- package/admin/plugins/fields/icons/round-text_fields-24px.svg +4 -0
- package/admin/plugins/fields/icons/round-visibility_off-24px.svg +4 -0
- package/admin/plugins/fields/icons/round_insert_drive_file-24px.svg +1 -0
- package/admin/plugins/fields/icons/schedule-black-24px.svg +1 -0
- package/admin/plugins/fields/icons/title-black-24px.svg +1 -0
- package/admin/plugins/fields/icons/toggle_on-black-24px.svg +1 -0
- package/admin/plugins/fields/longText.d.ts +3 -0
- package/admin/plugins/fields/longText.js +46 -0
- package/admin/plugins/fields/number.d.ts +3 -0
- package/admin/plugins/fields/number.js +63 -0
- package/admin/plugins/fields/object/ObjectFields.d.ts +4 -0
- package/admin/plugins/fields/object/ObjectFields.js +32 -0
- package/admin/plugins/fields/object.d.ts +3 -0
- package/admin/plugins/fields/object.js +46 -0
- package/admin/plugins/fields/ref.d.ts +3 -0
- package/admin/plugins/fields/ref.js +144 -0
- package/admin/plugins/fields/richText.d.ts +3 -0
- package/admin/plugins/fields/richText.js +45 -0
- package/admin/plugins/fields/text.d.ts +3 -0
- package/admin/plugins/fields/text.js +51 -0
- package/admin/plugins/getObjectId.d.ts +3 -0
- package/admin/plugins/getObjectId.js +13 -0
- package/admin/plugins/icons.d.ts +3 -0
- package/admin/plugins/icons.js +40 -0
- package/admin/plugins/index.d.ts +13 -0
- package/admin/plugins/index.js +14 -0
- package/admin/plugins/install.d.ts +3 -0
- package/admin/plugins/install.js +127 -0
- package/admin/plugins/menus/CmsMenuLoader.d.ts +7 -0
- package/admin/plugins/menus/CmsMenuLoader.js +76 -0
- package/admin/plugins/menus/ContentGroupsMenuItems.d.ts +6 -0
- package/admin/plugins/menus/ContentGroupsMenuItems.js +154 -0
- package/admin/plugins/menus/GlobalSearchPlugins.d.ts +8 -0
- package/admin/plugins/menus/GlobalSearchPlugins.js +53 -0
- package/admin/plugins/menus.d.ts +4 -0
- package/admin/plugins/menus.js +19 -0
- package/admin/plugins/permissionRenderer/CmsPermissions.d.ts +5 -0
- package/admin/plugins/permissionRenderer/CmsPermissions.js +340 -0
- package/admin/plugins/permissionRenderer/components/ContentEntryPermission.d.ts +8 -0
- package/admin/plugins/permissionRenderer/components/ContentEntryPermission.js +117 -0
- package/admin/plugins/permissionRenderer/components/ContentModelGroupPermission.d.ts +9 -0
- package/admin/plugins/permissionRenderer/components/ContentModelGroupPermission.js +77 -0
- package/admin/plugins/permissionRenderer/components/ContentModelList.d.ts +7 -0
- package/admin/plugins/permissionRenderer/components/ContentModelList.js +53 -0
- package/admin/plugins/permissionRenderer/components/ContentModelPermission.d.ts +10 -0
- package/admin/plugins/permissionRenderer/components/ContentModelPermission.js +104 -0
- package/admin/plugins/permissionRenderer/components/PermissionRendererWrapper.d.ts +5 -0
- package/admin/plugins/permissionRenderer/components/PermissionRendererWrapper.js +28 -0
- package/admin/plugins/permissionRenderer/components/PermissionSelector.d.ts +34 -0
- package/admin/plugins/permissionRenderer/components/PermissionSelector.js +66 -0
- package/admin/plugins/permissionRenderer/components/StyledComponents.d.ts +2 -0
- package/admin/plugins/permissionRenderer/components/StyledComponents.js +10 -0
- package/admin/plugins/permissionRenderer/components/useCmsData.d.ts +1 -0
- package/admin/plugins/permissionRenderer/components/useCmsData.js +79 -0
- package/admin/plugins/permissionRenderer/index.d.ts +3 -0
- package/admin/plugins/permissionRenderer/index.js +16 -0
- package/admin/plugins/routes.d.ts +3 -0
- package/admin/plugins/routes.js +88 -0
- package/admin/plugins/transformers/dateTransformer.d.ts +3 -0
- package/admin/plugins/transformers/dateTransformer.js +44 -0
- package/admin/plugins/transformers/index.d.ts +3 -0
- package/admin/plugins/transformers/index.js +5 -0
- package/admin/plugins/transformers/numberTransformer.d.ts +3 -0
- package/admin/plugins/transformers/numberTransformer.js +14 -0
- package/admin/plugins/upgrades/v5.0.0.d.ts +5 -0
- package/admin/plugins/upgrades/v5.0.0.js +85 -0
- package/admin/plugins/upgrades/v5.5.0.d.ts +5 -0
- package/admin/plugins/upgrades/v5.5.0.js +85 -0
- package/admin/plugins/upgrades/v5.8.0.d.ts +5 -0
- package/admin/plugins/upgrades/v5.8.0.js +85 -0
- package/admin/plugins/validators/dateGte.d.ts +3 -0
- package/admin/plugins/validators/dateGte.js +23 -0
- package/admin/plugins/validators/dateLte.d.ts +3 -0
- package/admin/plugins/validators/dateLte.js +23 -0
- package/admin/plugins/validators/gte.d.ts +3 -0
- package/admin/plugins/validators/gte.js +15 -0
- package/admin/plugins/validators/in.d.ts +3 -0
- package/admin/plugins/validators/in.js +15 -0
- package/admin/plugins/validators/lte.d.ts +3 -0
- package/admin/plugins/validators/lte.js +15 -0
- package/admin/plugins/validators/maxLength.d.ts +3 -0
- package/admin/plugins/validators/maxLength.js +15 -0
- package/admin/plugins/validators/minLength.d.ts +3 -0
- package/admin/plugins/validators/minLength.js +15 -0
- package/admin/plugins/validators/pattern.d.ts +9 -0
- package/admin/plugins/validators/pattern.js +34 -0
- package/admin/plugins/validators/patternPlugins/email.d.ts +10 -0
- package/admin/plugins/validators/patternPlugins/email.js +9 -0
- package/admin/plugins/validators/patternPlugins/lowerCase.d.ts +10 -0
- package/admin/plugins/validators/patternPlugins/lowerCase.js +9 -0
- package/admin/plugins/validators/patternPlugins/upperCase.d.ts +10 -0
- package/admin/plugins/validators/patternPlugins/upperCase.js +9 -0
- package/admin/plugins/validators/patternPlugins/url.d.ts +10 -0
- package/admin/plugins/validators/patternPlugins/url.js +9 -0
- package/admin/plugins/validators/required.d.ts +3 -0
- package/admin/plugins/validators/required.js +11 -0
- package/admin/plugins/validators/timeGte.d.ts +3 -0
- package/admin/plugins/validators/timeGte.js +19 -0
- package/admin/plugins/validators/timeLte.d.ts +3 -0
- package/admin/plugins/validators/timeLte.js +19 -0
- package/admin/plugins/welcomeScreenWidget.d.ts +3 -0
- package/admin/plugins/welcomeScreenWidget.js +29 -0
- package/admin/views/contentEntries/ContentEntries.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntries.js +73 -0
- package/admin/views/contentEntries/ContentEntriesContext.d.ts +24 -0
- package/admin/views/contentEntries/ContentEntriesContext.js +78 -0
- package/admin/views/contentEntries/ContentEntriesList.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntriesList.js +180 -0
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.d.ts +28 -0
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.js +113 -0
- package/admin/views/contentEntries/ContentEntry/RevisionListItem.d.ts +7 -0
- package/admin/views/contentEntries/ContentEntry/RevisionListItem.js +152 -0
- package/admin/views/contentEntries/ContentEntry/RevisionsList.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntry/RevisionsList.js +59 -0
- package/admin/views/contentEntries/ContentEntry/cache.d.ts +7 -0
- package/admin/views/contentEntries/ContentEntry/cache.js +183 -0
- package/admin/views/contentEntries/ContentEntry/header/Header.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntry/header/Header.js +32 -0
- package/admin/views/contentEntries/ContentEntry/header/contentFormOptionsMenu/ContentFormOptionsMenu.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntry/header/contentFormOptionsMenu/ContentFormOptionsMenu.js +141 -0
- package/admin/views/contentEntries/ContentEntry/header/index.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntry/header/index.js +45 -0
- package/admin/views/contentEntries/ContentEntry/header/requestChanges/RequestChanges.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntry/header/requestChanges/RequestChanges.js +67 -0
- package/admin/views/contentEntries/ContentEntry/header/requestChanges/rule-24px.svg +1 -0
- package/admin/views/contentEntries/ContentEntry/header/requestReview/RequestReview.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntry/header/requestReview/RequestReview.js +69 -0
- package/admin/views/contentEntries/ContentEntry/header/requestReview/emoji_people-24px.svg +1 -0
- package/admin/views/contentEntries/ContentEntry/header/revisionSelector/RevisionSelector.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntry/header/revisionSelector/RevisionSelector.js +75 -0
- package/admin/views/contentEntries/ContentEntry/header/saveAndPublishContent/SaveAndPublishContent.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntry/header/saveAndPublishContent/SaveAndPublishContent.js +84 -0
- package/admin/views/contentEntries/ContentEntry/header/saveContent/SaveContent.d.ts +3 -0
- package/admin/views/contentEntries/ContentEntry/header/saveContent/SaveContent.js +32 -0
- package/admin/views/contentEntries/ContentEntry/prepareFormData.d.ts +2 -0
- package/admin/views/contentEntries/ContentEntry/prepareFormData.js +79 -0
- package/admin/views/contentEntries/ContentEntry/useRevision.d.ts +13 -0
- package/admin/views/contentEntries/ContentEntry/useRevision.js +335 -0
- package/admin/views/contentEntries/ContentEntry.d.ts +12 -0
- package/admin/views/contentEntries/ContentEntry.js +99 -0
- package/admin/views/contentEntries/hooks/useContentEntries.d.ts +1 -0
- package/admin/views/contentEntries/hooks/useContentEntries.js +5 -0
- package/admin/views/contentEntries/hooks/useContentEntriesList.d.ts +21 -0
- package/admin/views/contentEntries/hooks/useContentEntriesList.js +152 -0
- package/admin/views/contentEntries/hooks/useContentEntry.d.ts +1 -0
- package/admin/views/contentEntries/hooks/useContentEntry.js +5 -0
- package/admin/views/contentModelGroups/ContentModelGroups.d.ts +3 -0
- package/admin/views/contentModelGroups/ContentModelGroups.js +35 -0
- package/admin/views/contentModelGroups/ContentModelGroupsDataList.d.ts +6 -0
- package/admin/views/contentModelGroups/ContentModelGroupsDataList.js +242 -0
- package/admin/views/contentModelGroups/ContentModelGroupsForm.d.ts +6 -0
- package/admin/views/contentModelGroups/ContentModelGroupsForm.js +231 -0
- package/admin/views/contentModelGroups/DelayedOnChange.d.ts +25 -0
- package/admin/views/contentModelGroups/DelayedOnChange.js +134 -0
- package/admin/views/contentModelGroups/IconPicker.d.ts +7 -0
- package/admin/views/contentModelGroups/IconPicker.js +204 -0
- package/admin/views/contentModelGroups/graphql.d.ts +5 -0
- package/admin/views/contentModelGroups/graphql.js +11 -0
- package/admin/views/contentModels/ContentModelEditor.d.ts +2 -0
- package/admin/views/contentModels/ContentModelEditor.js +35 -0
- package/admin/views/contentModels/ContentModels.d.ts +3 -0
- package/admin/views/contentModels/ContentModels.js +82 -0
- package/admin/views/contentModels/ContentModelsDataList.d.ts +7 -0
- package/admin/views/contentModels/ContentModelsDataList.js +281 -0
- package/admin/views/contentModels/NewContentModelDialog.d.ts +8 -0
- package/admin/views/contentModels/NewContentModelDialog.js +196 -0
- package/admin/views/contentModels/cache.d.ts +5 -0
- package/admin/views/contentModels/cache.js +68 -0
- package/admin/views/utils.d.ts +2 -0
- package/admin/views/utils.js +27 -0
- package/admin/viewsGraphql.d.ts +4 -0
- package/admin/viewsGraphql.js +12 -0
- package/package.json +109 -0
- package/types.d.ts +484 -0
- package/types.js +1 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject, _templateObject2;
|
|
4
|
+
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { i18n } from "@webiny/app/i18n";
|
|
7
|
+
import DynamicSection from "../DynamicSection";
|
|
8
|
+
import { Fields } from "../../../components/ContentEntryForm/Fields";
|
|
9
|
+
import { ReactComponent as DeleteIcon } from "@svgr/webpack!../../../icons/close.svg";
|
|
10
|
+
import { IconButton } from "@webiny/ui/Button";
|
|
11
|
+
import { Cell } from "@webiny/ui/Grid";
|
|
12
|
+
import { FormElementMessage } from "@webiny/ui/FormElementMessage";
|
|
13
|
+
import { Typography } from "@webiny/ui/Typography";
|
|
14
|
+
import Accordion from "../Accordion";
|
|
15
|
+
import { fieldsWrapperStyle, dynamicSectionTitleStyle, dynamicSectionGridStyle, fieldsGridStyle } from "./StyledComponents";
|
|
16
|
+
var t = i18n.ns("app-headless-cms/admin/fields/text");
|
|
17
|
+
var plugin = {
|
|
18
|
+
type: "cms-editor-field-renderer",
|
|
19
|
+
name: "cms-editor-field-renderer-objects",
|
|
20
|
+
renderer: {
|
|
21
|
+
rendererName: "objects",
|
|
22
|
+
name: t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Objects"]))),
|
|
23
|
+
description: t(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["Renders a set of fields."]))),
|
|
24
|
+
canUse: function canUse(_ref) {
|
|
25
|
+
var field = _ref.field;
|
|
26
|
+
return field.type === "object" && field.multipleValues;
|
|
27
|
+
},
|
|
28
|
+
render: function render(props) {
|
|
29
|
+
var field = props.field,
|
|
30
|
+
contentModel = props.contentModel;
|
|
31
|
+
return /*#__PURE__*/React.createElement(DynamicSection, Object.assign({}, props, {
|
|
32
|
+
emptyValue: {},
|
|
33
|
+
showLabel: false,
|
|
34
|
+
renderTitle: function renderTitle(value) {
|
|
35
|
+
return /*#__PURE__*/React.createElement(Cell, {
|
|
36
|
+
span: 12,
|
|
37
|
+
className: dynamicSectionTitleStyle
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
39
|
+
use: "headline5"
|
|
40
|
+
}, "".concat(field.label, " ").concat(value.length ? "(".concat(value.length, ")") : "")), field.helpText && /*#__PURE__*/React.createElement(FormElementMessage, null, field.helpText));
|
|
41
|
+
},
|
|
42
|
+
gridClassName: dynamicSectionGridStyle
|
|
43
|
+
}), function (_ref2) {
|
|
44
|
+
var Bind = _ref2.Bind,
|
|
45
|
+
bind = _ref2.bind,
|
|
46
|
+
index = _ref2.index;
|
|
47
|
+
return /*#__PURE__*/React.createElement(Accordion, {
|
|
48
|
+
title: "".concat(props.field.label, " #").concat(index + 1),
|
|
49
|
+
action: index > 0 && /*#__PURE__*/React.createElement(IconButton, {
|
|
50
|
+
icon: /*#__PURE__*/React.createElement(DeleteIcon, null),
|
|
51
|
+
onClick: function onClick() {
|
|
52
|
+
return bind.field.removeValue(index);
|
|
53
|
+
}
|
|
54
|
+
}) // Open first Accordion by default
|
|
55
|
+
,
|
|
56
|
+
defaultValue: index === 0
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Cell, {
|
|
58
|
+
span: 12,
|
|
59
|
+
className: fieldsWrapperStyle
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Fields, Object.assign({
|
|
61
|
+
Bind: Bind
|
|
62
|
+
}, bind.index, {
|
|
63
|
+
contentModel: contentModel,
|
|
64
|
+
fields: field.settings.fields,
|
|
65
|
+
layout: field.settings.layout,
|
|
66
|
+
gridClassName: fieldsGridStyle
|
|
67
|
+
}))));
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
export default plugin;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject, _templateObject2;
|
|
4
|
+
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { i18n } from "@webiny/app/i18n";
|
|
7
|
+
import { Fields } from "../../../components/ContentEntryForm/Fields";
|
|
8
|
+
import { SimpleFormHeader } from "@webiny/app-admin/components/SimpleForm";
|
|
9
|
+
import { Grid, Cell } from "@webiny/ui/Grid";
|
|
10
|
+
import { FormElementMessage } from "@webiny/ui/FormElementMessage";
|
|
11
|
+
import { fieldsWrapperStyle } from "./StyledComponents";
|
|
12
|
+
var t = i18n.ns("app-headless-cms/admin/fields/text");
|
|
13
|
+
var plugin = {
|
|
14
|
+
type: "cms-editor-field-renderer",
|
|
15
|
+
name: "cms-editor-field-renderer-object",
|
|
16
|
+
renderer: {
|
|
17
|
+
rendererName: "object",
|
|
18
|
+
name: t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Object"]))),
|
|
19
|
+
description: t(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["Renders a set of fields."]))),
|
|
20
|
+
canUse: function canUse(_ref) {
|
|
21
|
+
var field = _ref.field;
|
|
22
|
+
return field.type === "object" && !field.multipleValues;
|
|
23
|
+
},
|
|
24
|
+
render: function render(_ref2) {
|
|
25
|
+
var field = _ref2.field,
|
|
26
|
+
getBind = _ref2.getBind,
|
|
27
|
+
contentModel = _ref2.contentModel;
|
|
28
|
+
var Bind = getBind();
|
|
29
|
+
return /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Cell, {
|
|
30
|
+
span: 12
|
|
31
|
+
}, /*#__PURE__*/React.createElement(SimpleFormHeader, {
|
|
32
|
+
title: field.label
|
|
33
|
+
}), field.helpText && /*#__PURE__*/React.createElement(FormElementMessage, null, field.helpText)), /*#__PURE__*/React.createElement(Cell, {
|
|
34
|
+
span: 12,
|
|
35
|
+
className: fieldsWrapperStyle
|
|
36
|
+
}, /*#__PURE__*/React.createElement(Fields, {
|
|
37
|
+
Bind: Bind,
|
|
38
|
+
contentModel: contentModel,
|
|
39
|
+
fields: field.settings.fields,
|
|
40
|
+
layout: field.settings.layout
|
|
41
|
+
})));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
export default plugin;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject, _templateObject2;
|
|
4
|
+
|
|
5
|
+
import React from "react";
|
|
6
|
+
import get from "lodash/get";
|
|
7
|
+
import { i18n } from "@webiny/app/i18n";
|
|
8
|
+
import { Radio, RadioGroup } from "@webiny/ui/Radio";
|
|
9
|
+
var t = i18n.ns("app-headless-cms/admin/fields/text");
|
|
10
|
+
var plugin = {
|
|
11
|
+
type: "cms-editor-field-renderer",
|
|
12
|
+
name: "cms-editor-field-renderer-radio-buttons",
|
|
13
|
+
renderer: {
|
|
14
|
+
rendererName: "radio-buttons",
|
|
15
|
+
name: t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Radio Buttons"]))),
|
|
16
|
+
description: t(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["Renders radio buttons, allowing selection of a single value."]))),
|
|
17
|
+
canUse: function canUse(_ref) {
|
|
18
|
+
var field = _ref.field;
|
|
19
|
+
return !field.multipleValues && get(field, "predefinedValues.enabled");
|
|
20
|
+
},
|
|
21
|
+
render: function render(_ref2) {
|
|
22
|
+
var field = _ref2.field,
|
|
23
|
+
getBind = _ref2.getBind;
|
|
24
|
+
var Bind = getBind();
|
|
25
|
+
var options = field.predefinedValues.values;
|
|
26
|
+
return /*#__PURE__*/React.createElement(Bind, null, /*#__PURE__*/React.createElement(RadioGroup, {
|
|
27
|
+
label: field.label,
|
|
28
|
+
description: field.helpText
|
|
29
|
+
}, function (_ref3) {
|
|
30
|
+
var onChange = _ref3.onChange,
|
|
31
|
+
getValue = _ref3.getValue;
|
|
32
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, options.map(function (option, index) {
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
key: option.value + index
|
|
35
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
36
|
+
label: option.label,
|
|
37
|
+
value: getValue(option.value),
|
|
38
|
+
onChange: onChange(option.value)
|
|
39
|
+
}));
|
|
40
|
+
}));
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
export default plugin;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject, _templateObject2;
|
|
4
|
+
|
|
5
|
+
import React from "react";
|
|
6
|
+
import debounce from "lodash/debounce";
|
|
7
|
+
import { AutoComplete } from "@webiny/ui/AutoComplete";
|
|
8
|
+
import { i18n } from "@webiny/app/i18n";
|
|
9
|
+
import { Link } from "@webiny/react-router";
|
|
10
|
+
import { useReference } from "./useReference";
|
|
11
|
+
import { renderItem } from "./renderItem";
|
|
12
|
+
var t = i18n.ns("app-headless-cms/admin/fields/ref");
|
|
13
|
+
var label = t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Selected content entry is not published. Make sure to {publishItLink} before publishing the main content entry."])));
|
|
14
|
+
|
|
15
|
+
function ContentEntriesAutocomplete(_ref) {
|
|
16
|
+
var bind = _ref.bind,
|
|
17
|
+
field = _ref.field;
|
|
18
|
+
|
|
19
|
+
var _useReference = useReference({
|
|
20
|
+
bind: bind,
|
|
21
|
+
field: field
|
|
22
|
+
}),
|
|
23
|
+
options = _useReference.options,
|
|
24
|
+
setSearch = _useReference.setSearch,
|
|
25
|
+
value = _useReference.value,
|
|
26
|
+
loading = _useReference.loading,
|
|
27
|
+
onChange = _useReference.onChange;
|
|
28
|
+
|
|
29
|
+
var unpublishedEntryInfo = null;
|
|
30
|
+
|
|
31
|
+
if (value && !value.published) {
|
|
32
|
+
var link = "/cms/content-entries/".concat(value.modelId, "?id=").concat(encodeURIComponent(value.id));
|
|
33
|
+
unpublishedEntryInfo = label({
|
|
34
|
+
publishItLink: /*#__PURE__*/React.createElement(Link, {
|
|
35
|
+
to: link
|
|
36
|
+
}, t(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["publish it"]))))
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return /*#__PURE__*/React.createElement(AutoComplete, Object.assign({}, bind, {
|
|
41
|
+
renderItem: renderItem,
|
|
42
|
+
onChange: onChange,
|
|
43
|
+
loading: loading,
|
|
44
|
+
value: value ? value.id : null,
|
|
45
|
+
options: options,
|
|
46
|
+
label: field.label,
|
|
47
|
+
description: /*#__PURE__*/React.createElement(React.Fragment, null, field.helpText, unpublishedEntryInfo),
|
|
48
|
+
onInput: debounce(function (search) {
|
|
49
|
+
return setSearch(search);
|
|
50
|
+
}, 250)
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export default ContentEntriesAutocomplete;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject;
|
|
4
|
+
|
|
5
|
+
import React from "react";
|
|
6
|
+
import debounce from "lodash/debounce";
|
|
7
|
+
import { MultiAutoComplete } from "@webiny/ui/AutoComplete";
|
|
8
|
+
import { Link } from "@webiny/react-router";
|
|
9
|
+
import { i18n } from "@webiny/app/i18n";
|
|
10
|
+
import { useReferences } from "./useReferences";
|
|
11
|
+
import { renderItem } from "./renderItem";
|
|
12
|
+
var t = i18n.ns("app-headless-cms/admin/fields/ref");
|
|
13
|
+
var warn = t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Before publishing the main content entry, make sure you publish the following referenced entries: {entries}"])));
|
|
14
|
+
|
|
15
|
+
function ContentEntriesMultiAutocomplete(_ref) {
|
|
16
|
+
var bind = _ref.bind,
|
|
17
|
+
field = _ref.field;
|
|
18
|
+
|
|
19
|
+
var _useReferences = useReferences({
|
|
20
|
+
bind: bind,
|
|
21
|
+
field: field
|
|
22
|
+
}),
|
|
23
|
+
options = _useReferences.options,
|
|
24
|
+
setSearch = _useReferences.setSearch,
|
|
25
|
+
entries = _useReferences.entries,
|
|
26
|
+
loading = _useReferences.loading,
|
|
27
|
+
onChange = _useReferences.onChange;
|
|
28
|
+
|
|
29
|
+
var entryWarning = function entryWarning(_ref2, index) {
|
|
30
|
+
var id = _ref2.id,
|
|
31
|
+
modelId = _ref2.modelId,
|
|
32
|
+
name = _ref2.name,
|
|
33
|
+
published = _ref2.published;
|
|
34
|
+
return !published && /*#__PURE__*/React.createElement(React.Fragment, {
|
|
35
|
+
key: id
|
|
36
|
+
}, index > 0 && ", ", /*#__PURE__*/React.createElement(Link, {
|
|
37
|
+
to: "/cms/content-entries/".concat(modelId, "?id=").concat(encodeURIComponent(id))
|
|
38
|
+
}, name));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
var warning = entries.filter(function (item) {
|
|
42
|
+
return item.published === false;
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
if (warning.length) {
|
|
46
|
+
warning = warn({
|
|
47
|
+
entries: /*#__PURE__*/React.createElement(React.Fragment, null, warning.map(entryWarning))
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return /*#__PURE__*/React.createElement(MultiAutoComplete, Object.assign({}, bind, {
|
|
52
|
+
renderItem: renderItem,
|
|
53
|
+
renderListItemLabel: renderItem,
|
|
54
|
+
useMultipleSelectionList: true,
|
|
55
|
+
onChange: onChange,
|
|
56
|
+
loading: loading,
|
|
57
|
+
value: entries,
|
|
58
|
+
options: options,
|
|
59
|
+
label: field.label,
|
|
60
|
+
onInput: debounce(setSearch, 250),
|
|
61
|
+
description: /*#__PURE__*/React.createElement(React.Fragment, null, field.helpText, warning)
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export default ContentEntriesMultiAutocomplete;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getOptions: (entries?: any[], extraOptions?: any) => any[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
export var getOptions = function getOptions() {
|
|
3
|
+
var entries = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
4
|
+
var extraOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
5
|
+
return entries.map(function (item) {
|
|
6
|
+
var name = item.title;
|
|
7
|
+
|
|
8
|
+
if (!name) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
var extraData = typeof extraOptions === "function" ? extraOptions(item) : {};
|
|
13
|
+
return _objectSpread({
|
|
14
|
+
id: item.id,
|
|
15
|
+
modelId: item.model.modelId,
|
|
16
|
+
modelName: item.model.name,
|
|
17
|
+
name: name,
|
|
18
|
+
published: item.status === "published"
|
|
19
|
+
}, extraData);
|
|
20
|
+
}).filter(Boolean);
|
|
21
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SEARCH_CONTENT_ENTRIES: import("graphql").DocumentNode;
|
|
2
|
+
export declare const GET_CONTENT_ENTRIES: import("graphql").DocumentNode;
|
|
3
|
+
export declare const GET_CONTENT_ENTRY: import("graphql").DocumentNode;
|
|
4
|
+
export declare const GET_CONTENT_MODELS: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
|
+
|
|
5
|
+
import gql from "graphql-tag";
|
|
6
|
+
var fields = "\ndata {\n id\n status\n title\n model {\n modelId\n name\n }\n}\nerror {\n code\n message\n}\n";
|
|
7
|
+
export var SEARCH_CONTENT_ENTRIES = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n query CmsSearchContentEntries($modelIds: [ID!]!, $query: String!, $limit: Int) {\n content: searchContentEntries(modelIds: $modelIds, query: $query, limit: $limit) {\n ", "\n }\n }\n"])), fields);
|
|
8
|
+
export var GET_CONTENT_ENTRIES = gql(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n query CmsGetContentEntries($entries: [CmsModelEntryInput!]!) {\n content: getContentEntries(entries: $entries) {\n ", "\n }\n }\n"])), fields);
|
|
9
|
+
export var GET_CONTENT_ENTRY = gql(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n query CmsGetContentEntry($entry: CmsModelEntryInput!) {\n content: getContentEntry(entry: $entry) {\n ", "\n }\n }\n"])), fields);
|
|
10
|
+
export var GET_CONTENT_MODELS = gql(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n query CmsGetContentModels {\n listContentModels {\n data {\n modelId\n titleFieldId\n }\n }\n }\n"])));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "@emotion/styled";
|
|
3
|
+
import { Typography } from "@webiny/ui/Typography";
|
|
4
|
+
var ModelId = /*#__PURE__*/styled("span", {
|
|
5
|
+
target: "ejkg0kv0",
|
|
6
|
+
label: "ModelId"
|
|
7
|
+
})({
|
|
8
|
+
color: "var(--mdc-theme-text-secondary-on-background) !important"
|
|
9
|
+
});
|
|
10
|
+
export var renderItem = function renderItem(item) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(Typography, {
|
|
12
|
+
use: "body2"
|
|
13
|
+
}, item.name, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(ModelId, null, "Model: ", item.modelName));
|
|
14
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CmsEditorField } from "../../../../../types";
|
|
2
|
+
interface ValueEntry {
|
|
3
|
+
id: string;
|
|
4
|
+
modelId: string;
|
|
5
|
+
modelName: string;
|
|
6
|
+
published: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
interface UseReferenceHookArgs {
|
|
10
|
+
bind: any;
|
|
11
|
+
field: CmsEditorField;
|
|
12
|
+
}
|
|
13
|
+
interface UseReferenceHookValue {
|
|
14
|
+
onChange: (value: any, entry: ValueEntry) => void;
|
|
15
|
+
setSearch: (value: string) => void;
|
|
16
|
+
value: ValueEntry | null;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
options: ValueEntry[];
|
|
19
|
+
}
|
|
20
|
+
declare type UseReferenceHook = (args: UseReferenceHookArgs) => UseReferenceHookValue;
|
|
21
|
+
export declare const useReference: UseReferenceHook;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
7
|
+
import { useApolloClient } from "../../../../hooks";
|
|
8
|
+
import * as GQL from "./graphql";
|
|
9
|
+
import { getOptions } from "./getOptions";
|
|
10
|
+
|
|
11
|
+
var convertQueryDataToEntryList = function convertQueryDataToEntryList(data) {
|
|
12
|
+
return data.reduce(function (collection, entry) {
|
|
13
|
+
collection[entry.id] = entry;
|
|
14
|
+
return collection;
|
|
15
|
+
}, {});
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
var convertValueEntryToData = function convertValueEntryToData(entry) {
|
|
19
|
+
return {
|
|
20
|
+
id: entry.id,
|
|
21
|
+
model: {
|
|
22
|
+
modelId: entry.modelId,
|
|
23
|
+
name: entry.modelName
|
|
24
|
+
},
|
|
25
|
+
status: entry.published ? "published" : "draft",
|
|
26
|
+
title: entry.name
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var convertDataEntryToValue = function convertDataEntryToValue(entry) {
|
|
31
|
+
return {
|
|
32
|
+
id: entry.id,
|
|
33
|
+
modelId: entry.model.modelId,
|
|
34
|
+
modelName: entry.model.name,
|
|
35
|
+
published: entry.status === "published",
|
|
36
|
+
name: entry.title
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
var assignValueEntry = function assignValueEntry(entry, collection) {
|
|
41
|
+
if (!entry) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
collection[entry.id] = convertValueEntryToData(entry);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export var useReference = function useReference(_ref) {
|
|
49
|
+
var bind = _ref.bind,
|
|
50
|
+
field = _ref.field;
|
|
51
|
+
var allEntries = useRef({});
|
|
52
|
+
var client = useApolloClient();
|
|
53
|
+
|
|
54
|
+
var _useState = useState(""),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
56
|
+
search = _useState2[0],
|
|
57
|
+
setSearch = _useState2[1];
|
|
58
|
+
|
|
59
|
+
var _useState3 = useState(false),
|
|
60
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
61
|
+
loading = _useState4[0],
|
|
62
|
+
setLoading = _useState4[1];
|
|
63
|
+
|
|
64
|
+
var _useState5 = useState({}),
|
|
65
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
66
|
+
entries = _useState6[0],
|
|
67
|
+
setEntries = _useState6[1];
|
|
68
|
+
|
|
69
|
+
var _useState7 = useState({}),
|
|
70
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
71
|
+
latestEntries = _useState8[0],
|
|
72
|
+
setLatestEntries = _useState8[1];
|
|
73
|
+
|
|
74
|
+
var _useState9 = useState(null),
|
|
75
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
76
|
+
valueEntry = _useState10[0],
|
|
77
|
+
setValueEntry = _useState10[1];
|
|
78
|
+
|
|
79
|
+
var models = field.settings.models;
|
|
80
|
+
var modelsHash = models.join(",");
|
|
81
|
+
var value = bind.value;
|
|
82
|
+
var valueHash = value ? value.id : null;
|
|
83
|
+
|
|
84
|
+
var searchEntries = /*#__PURE__*/function () {
|
|
85
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
86
|
+
var _yield$client$query, data, searchEntries;
|
|
87
|
+
|
|
88
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
89
|
+
while (1) {
|
|
90
|
+
switch (_context.prev = _context.next) {
|
|
91
|
+
case 0:
|
|
92
|
+
if (search) {
|
|
93
|
+
_context.next = 2;
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return _context.abrupt("return");
|
|
98
|
+
|
|
99
|
+
case 2:
|
|
100
|
+
setLoading(true);
|
|
101
|
+
_context.next = 5;
|
|
102
|
+
return client.query({
|
|
103
|
+
query: GQL.SEARCH_CONTENT_ENTRIES,
|
|
104
|
+
variables: {
|
|
105
|
+
modelIds: models.map(function (m) {
|
|
106
|
+
return m.modelId;
|
|
107
|
+
}),
|
|
108
|
+
query: search
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
case 5:
|
|
113
|
+
_yield$client$query = _context.sent;
|
|
114
|
+
data = _yield$client$query.data;
|
|
115
|
+
setLoading(false);
|
|
116
|
+
searchEntries = convertQueryDataToEntryList(data.content.data);
|
|
117
|
+
assignValueEntry(valueEntry, searchEntries);
|
|
118
|
+
Object.assign(allEntries.current, searchEntries);
|
|
119
|
+
setEntries(searchEntries);
|
|
120
|
+
|
|
121
|
+
case 12:
|
|
122
|
+
case "end":
|
|
123
|
+
return _context.stop();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}, _callee);
|
|
127
|
+
}));
|
|
128
|
+
|
|
129
|
+
return function searchEntries() {
|
|
130
|
+
return _ref2.apply(this, arguments);
|
|
131
|
+
};
|
|
132
|
+
}();
|
|
133
|
+
|
|
134
|
+
useEffect(function () {
|
|
135
|
+
searchEntries();
|
|
136
|
+
}, [search]);
|
|
137
|
+
useEffect(function () {
|
|
138
|
+
client.query({
|
|
139
|
+
query: GQL.SEARCH_CONTENT_ENTRIES,
|
|
140
|
+
variables: {
|
|
141
|
+
modelIds: models.map(function (m) {
|
|
142
|
+
return m.modelId;
|
|
143
|
+
}),
|
|
144
|
+
query: "__latest__",
|
|
145
|
+
limit: 10
|
|
146
|
+
}
|
|
147
|
+
}).then(function (_ref3) {
|
|
148
|
+
var data = _ref3.data;
|
|
149
|
+
var latestEntryData = convertQueryDataToEntryList(data.content.data);
|
|
150
|
+
assignValueEntry(valueEntry, latestEntryData);
|
|
151
|
+
setLatestEntries(latestEntryData);
|
|
152
|
+
Object.assign(allEntries.current, latestEntryData);
|
|
153
|
+
});
|
|
154
|
+
}, [modelsHash]);
|
|
155
|
+
useEffect(function () {
|
|
156
|
+
if (!value || !models) {
|
|
157
|
+
setValueEntry(function () {
|
|
158
|
+
return null;
|
|
159
|
+
});
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
var entry = allEntries.current[valueHash];
|
|
164
|
+
|
|
165
|
+
if (entry) {
|
|
166
|
+
// if entry exists set valueEntry to that one so we do not load new one
|
|
167
|
+
setValueEntry(function () {
|
|
168
|
+
return convertDataEntryToValue(entry);
|
|
169
|
+
});
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
setLoading(true);
|
|
174
|
+
client.query({
|
|
175
|
+
query: GQL.GET_CONTENT_ENTRY,
|
|
176
|
+
variables: {
|
|
177
|
+
entry: {
|
|
178
|
+
modelId: value.modelId,
|
|
179
|
+
entryId: value.entryId
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}).then(function (res) {
|
|
183
|
+
setLoading(false);
|
|
184
|
+
var dataEntry = res.data.content.data;
|
|
185
|
+
|
|
186
|
+
if (!dataEntry) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
allEntries.current[dataEntry.id] = dataEntry;
|
|
191
|
+
setLatestEntries(function (prev) {
|
|
192
|
+
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, dataEntry.id, dataEntry));
|
|
193
|
+
}); // Calculate a couple of props for the Autocomplete component.
|
|
194
|
+
|
|
195
|
+
setValueEntry(function () {
|
|
196
|
+
return convertDataEntryToValue(dataEntry);
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
}, [valueHash, modelsHash]);
|
|
200
|
+
var onChange = useCallback(function (value, entry) {
|
|
201
|
+
if (value !== null) {
|
|
202
|
+
setSearch("");
|
|
203
|
+
setValueEntry(function () {
|
|
204
|
+
return entry;
|
|
205
|
+
});
|
|
206
|
+
return bind.onChange({
|
|
207
|
+
modelId: entry.modelId,
|
|
208
|
+
entryId: entry.id
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
setValueEntry(function () {
|
|
213
|
+
return null;
|
|
214
|
+
});
|
|
215
|
+
bind.onChange(null);
|
|
216
|
+
}, []); // Format options for the Autocomplete component.
|
|
217
|
+
|
|
218
|
+
var options = useMemo(function () {
|
|
219
|
+
return getOptions(Object.values(entries));
|
|
220
|
+
}, [entries]); // Format default options for the Autocomplete component.
|
|
221
|
+
|
|
222
|
+
var defaultOptions = useMemo(function () {
|
|
223
|
+
return getOptions(Object.values(latestEntries));
|
|
224
|
+
}, [latestEntries]);
|
|
225
|
+
var outputOptions = search ? options : defaultOptions || [];
|
|
226
|
+
|
|
227
|
+
if (valueEntry && outputOptions.some(function (opt) {
|
|
228
|
+
return opt.id === valueEntry.id;
|
|
229
|
+
}) === false) {
|
|
230
|
+
outputOptions.push(valueEntry);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
return {
|
|
234
|
+
onChange: onChange,
|
|
235
|
+
setSearch: setSearch,
|
|
236
|
+
value: valueEntry,
|
|
237
|
+
loading: loading,
|
|
238
|
+
options: outputOptions
|
|
239
|
+
};
|
|
240
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type ValueEntry = {
|
|
3
|
+
id: string;
|
|
4
|
+
modelId: string;
|
|
5
|
+
modelName: string;
|
|
6
|
+
published: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const useReferences: ({ bind, field }: {
|
|
10
|
+
bind: any;
|
|
11
|
+
field: any;
|
|
12
|
+
}) => {
|
|
13
|
+
onChange: (values: any) => void;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
setSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
16
|
+
entries: ValueEntry[];
|
|
17
|
+
options: any[];
|
|
18
|
+
};
|
|
19
|
+
export {};
|