@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,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px"
|
|
4
|
+
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
5
|
+
<g id="Bounding_Boxes">
|
|
6
|
+
<path fill="none" d="M0,0h24v24H0V0z"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="Rounded">
|
|
9
|
+
<path d="M12,8c1.1,0,2-0.9,2-2s-0.9-2-2-2s-2,0.9-2,2S10.9,8,12,8z M12,10c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S13.1,10,12,10z
|
|
10
|
+
M12,16c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S13.1,16,12,16z"/>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
5
|
+
<g id="Bounding_Boxes">
|
|
6
|
+
<path fill="none" d="M0,0h24v24H0V0z"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="Rounded">
|
|
9
|
+
<path fill="currentColor" d="M19,11H7.83l4.88-4.88c0.39-0.39,0.39-1.03,0-1.42l0,0c-0.39-0.39-1.02-0.39-1.41,0l-6.59,6.59
|
|
10
|
+
c-0.39,0.39-0.39,1.02,0,1.41l6.59,6.59c0.39,0.39,1.02,0.39,1.41,0l0,0c0.39-0.39,0.39-1.02,0-1.41L7.83,13H19c0.55,0,1-0.45,1-1
|
|
11
|
+
v0C20,11.45,19.55,11,19,11z"/>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
5
|
+
<g id="Bounding_Boxes">
|
|
6
|
+
<path fill="none" d="M0,0h24v24H0V0z"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="Rounded">
|
|
9
|
+
<path fill="currentColor" d="M8.71,11.71l2.59,2.59c0.39,0.39,1.02,0.39,1.41,0l2.59-2.59c0.63-0.63,0.18-1.71-0.71-1.71H9.41
|
|
10
|
+
C8.52,10,8.08,11.08,8.71,11.71z"/>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px"
|
|
4
|
+
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
5
|
+
<g id="Header_x2F_BG" display="none">
|
|
6
|
+
<rect x="-402" y="-314" display="inline" fill="#F1F1F2" width="520" height="520"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="Bounding_Boxes">
|
|
9
|
+
<g id="ui_x5F_spec_x5F_header_copy_3" display="none">
|
|
10
|
+
</g>
|
|
11
|
+
<path fill="none" d="M0,0h24v24H0V0z"/>
|
|
12
|
+
</g>
|
|
13
|
+
<g id="Rounded">
|
|
14
|
+
<g id="ui_x5F_spec_x5F_header_copy_5" display="none">
|
|
15
|
+
</g>
|
|
16
|
+
<path fill="currentColor" d="M19.43,12.98c0.04-0.32,0.07-0.64,0.07-0.98s-0.03-0.66-0.07-0.98l2.11-1.65c0.19-0.15,0.24-0.42,0.12-0.64l-2-3.46
|
|
17
|
+
c-0.12-0.22-0.39-0.3-0.61-0.22l-2.49,1c-0.52-0.4-1.08-0.73-1.69-0.98l-0.38-2.65C14.46,2.18,14.25,2,14,2h-4
|
|
18
|
+
C9.75,2,9.54,2.18,9.51,2.42L9.13,5.07C8.52,5.32,7.96,5.66,7.44,6.05l-2.49-1c-0.23-0.09-0.49,0-0.61,0.22l-2,3.46
|
|
19
|
+
C2.21,8.95,2.27,9.22,2.46,9.37l2.11,1.65C4.53,11.34,4.5,11.67,4.5,12s0.03,0.66,0.07,0.98l-2.11,1.65
|
|
20
|
+
c-0.19,0.15-0.24,0.42-0.12,0.64l2,3.46c0.12,0.22,0.39,0.3,0.61,0.22l2.49-1c0.52,0.4,1.08,0.73,1.69,0.98l0.38,2.65
|
|
21
|
+
C9.54,21.82,9.75,22,10,22h4c0.25,0,0.46-0.18,0.49-0.42l0.38-2.65c0.61-0.25,1.17-0.59,1.69-0.98l2.49,1
|
|
22
|
+
c0.23,0.09,0.49,0,0.61-0.22l2-3.46c0.12-0.22,0.07-0.49-0.12-0.64L19.43,12.98z M12,15.5c-1.93,0-3.5-1.57-3.5-3.5
|
|
23
|
+
s1.57-3.5,3.5-3.5s3.5,1.57,3.5,3.5S13.93,15.5,12,15.5z"/>
|
|
24
|
+
</g>
|
|
25
|
+
</svg>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import BackButton from "./BackButton";
|
|
3
|
+
import Divider from "./Divider";
|
|
4
|
+
import SaveContentModelButton from "./SaveContentModelButton";
|
|
5
|
+
import CreateContentButton from "./CreateContentButton";
|
|
6
|
+
import { Name } from "./Name";
|
|
7
|
+
import { FormSettingsButton } from "./FormSettings";
|
|
8
|
+
export default [{
|
|
9
|
+
name: "content-model-editor-default-bar-right-create-content-button",
|
|
10
|
+
type: "content-model-editor-default-bar-right",
|
|
11
|
+
render: function render() {
|
|
12
|
+
return /*#__PURE__*/React.createElement(CreateContentButton, null);
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
name: "content-model-editor-default-bar-left-divider",
|
|
16
|
+
type: "content-model-editor-default-bar-right",
|
|
17
|
+
render: function render() {
|
|
18
|
+
return /*#__PURE__*/React.createElement(Divider, null);
|
|
19
|
+
}
|
|
20
|
+
}, {
|
|
21
|
+
name: "content-model-editor-default-bar-right-form-settings-button",
|
|
22
|
+
type: "content-model-editor-default-bar-right",
|
|
23
|
+
render: function render() {
|
|
24
|
+
return /*#__PURE__*/React.createElement(FormSettingsButton, null);
|
|
25
|
+
}
|
|
26
|
+
}, {
|
|
27
|
+
name: "content-model-editor-default-bar-right-save-button",
|
|
28
|
+
type: "content-model-editor-default-bar-right",
|
|
29
|
+
render: function render() {
|
|
30
|
+
return /*#__PURE__*/React.createElement(SaveContentModelButton, null);
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
name: "content-model-editor-default-bar-left-back-button",
|
|
34
|
+
type: "content-model-editor-default-bar-left",
|
|
35
|
+
render: function render() {
|
|
36
|
+
return /*#__PURE__*/React.createElement(BackButton, null);
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
name: "content-model-editor-default-bar-left-name",
|
|
40
|
+
type: "content-model-editor-default-bar-left",
|
|
41
|
+
render: function render() {
|
|
42
|
+
return /*#__PURE__*/React.createElement(Name, null);
|
|
43
|
+
}
|
|
44
|
+
}];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Grid, Cell } from "@webiny/ui/Grid";
|
|
3
|
+
import { Input } from "@webiny/ui/Input";
|
|
4
|
+
import { validation } from "@webiny/validation";
|
|
5
|
+
import GroupSelect from "./GroupSelect";
|
|
6
|
+
|
|
7
|
+
var GeneralSettings = function GeneralSettings(_ref) {
|
|
8
|
+
var Bind = _ref.Bind;
|
|
9
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Cell, {
|
|
10
|
+
span: 12
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Bind, {
|
|
12
|
+
name: "name"
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
14
|
+
label: "Content model name"
|
|
15
|
+
}))), /*#__PURE__*/React.createElement(Cell, {
|
|
16
|
+
span: 12
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Bind, {
|
|
18
|
+
name: "modelId"
|
|
19
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
20
|
+
disabled: true,
|
|
21
|
+
label: "Content model ID"
|
|
22
|
+
}))), /*#__PURE__*/React.createElement(Cell, {
|
|
23
|
+
span: 12
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Bind, {
|
|
25
|
+
name: "description"
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
27
|
+
rows: 5,
|
|
28
|
+
label: "Content model description"
|
|
29
|
+
}))), /*#__PURE__*/React.createElement(Cell, {
|
|
30
|
+
span: 12
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Bind, {
|
|
32
|
+
name: "group",
|
|
33
|
+
validators: validation.create("required")
|
|
34
|
+
}, /*#__PURE__*/React.createElement(GroupSelect, null)))));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default GeneralSettings;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["value"];
|
|
3
|
+
import React, { useMemo } from "react";
|
|
4
|
+
import { Select } from "@webiny/ui/Select";
|
|
5
|
+
import { LIST_MENU_CONTENT_GROUPS_MODELS } from "../../../../viewsGraphql";
|
|
6
|
+
import { useQuery } from "../../../../hooks";
|
|
7
|
+
export default function GroupSelect(_ref) {
|
|
8
|
+
var value = _ref.value,
|
|
9
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
+
|
|
11
|
+
var _useQuery = useQuery(LIST_MENU_CONTENT_GROUPS_MODELS),
|
|
12
|
+
data = _useQuery.data,
|
|
13
|
+
loading = _useQuery.loading;
|
|
14
|
+
|
|
15
|
+
var groups = loading && !data ? [] : data.listContentModelGroups.data;
|
|
16
|
+
var options = useMemo(function () {
|
|
17
|
+
return groups.map(function (item) {
|
|
18
|
+
return {
|
|
19
|
+
value: item.id,
|
|
20
|
+
label: item.name
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
}, [groups]);
|
|
24
|
+
var selectValue = typeof value === "string" ? value : value.id;
|
|
25
|
+
return /*#__PURE__*/React.createElement(Select, Object.assign({}, props, {
|
|
26
|
+
value: loading ? "" : selectValue,
|
|
27
|
+
label: "Content model group",
|
|
28
|
+
options: options
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/></svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import GeneralSettings from "./components/GeneralSettings";
|
|
3
|
+
import { ReactComponent as SettingsIcon } from "@svgr/webpack!./icons/round-settings-24px.svg";
|
|
4
|
+
var plugin = {
|
|
5
|
+
name: "cms-editor-form-settings-general",
|
|
6
|
+
type: "cms-editor-form-settings",
|
|
7
|
+
title: "General settings",
|
|
8
|
+
description: "Manage content model's name and description.",
|
|
9
|
+
icon: /*#__PURE__*/React.createElement(SettingsIcon, null),
|
|
10
|
+
render: function render(props) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(GeneralSettings, props);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
export default plugin;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
declare type AccordionProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
action?: ReactElement;
|
|
6
|
+
icon?: ReactElement;
|
|
7
|
+
defaultValue?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ title, children, action, icon, defaultValue }: AccordionProps) => JSX.Element>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useCallback, useState } from "react";
|
|
3
|
+
import { css } from "emotion";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { Typography } from "@webiny/ui/Typography";
|
|
6
|
+
var classes = {
|
|
7
|
+
accordionWrapper: /*#__PURE__*/css({
|
|
8
|
+
/**
|
|
9
|
+
* We're using position: "relative" here for "Popping Out of Hidden Overflow" https://css-tricks.com/popping-hidden-overflow/
|
|
10
|
+
* so that, we can use absolute positioned element inside without "overflow: hidden" being a problem
|
|
11
|
+
*/
|
|
12
|
+
position: "relative",
|
|
13
|
+
width: "100%",
|
|
14
|
+
borderBottom: "1px solid var(--mdc-theme-on-secondary)"
|
|
15
|
+
}, "label:accordionWrapper;"),
|
|
16
|
+
accordionHeader: /*#__PURE__*/css({
|
|
17
|
+
position: "relative",
|
|
18
|
+
color: "var(--mdc-theme-text-secondary-on-background)",
|
|
19
|
+
cursor: "pointer",
|
|
20
|
+
padding: "0px",
|
|
21
|
+
minHeight: 48,
|
|
22
|
+
// To have same height as the remove value action button.
|
|
23
|
+
display: "flex",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
justifyContent: "space-between",
|
|
26
|
+
"& .accordion-header--left": {
|
|
27
|
+
display: "flex",
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
justifyContent: "space-between",
|
|
30
|
+
"& .accordion-title": {
|
|
31
|
+
span: {
|
|
32
|
+
marginLeft: 16
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"& .accordion-header--right": {
|
|
37
|
+
display: "flex",
|
|
38
|
+
"& .icon-container": {
|
|
39
|
+
display: "flex",
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
"& span": {
|
|
42
|
+
display: "flex"
|
|
43
|
+
},
|
|
44
|
+
"& svg": {
|
|
45
|
+
fill: "currentColor",
|
|
46
|
+
width: 14,
|
|
47
|
+
height: 14
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"&::before": {
|
|
52
|
+
position: "absolute",
|
|
53
|
+
top: "calc(50% - 5px)",
|
|
54
|
+
left: 0,
|
|
55
|
+
content: '""',
|
|
56
|
+
width: 0,
|
|
57
|
+
height: 0,
|
|
58
|
+
// Arrow right.
|
|
59
|
+
borderTop: "5px solid transparent",
|
|
60
|
+
borderBottom: "5px solid transparent",
|
|
61
|
+
borderLeft: "5px solid currentColor"
|
|
62
|
+
},
|
|
63
|
+
"&.open": {
|
|
64
|
+
"&::before": {
|
|
65
|
+
transform: "translateY(3px) rotate(90deg)"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, "label:accordionHeader;"),
|
|
69
|
+
accordionItem: /*#__PURE__*/css({
|
|
70
|
+
overflow: "hidden",
|
|
71
|
+
transition: "max-height 0.3s cubic-bezier(1, 0, 1, 0)",
|
|
72
|
+
height: "auto",
|
|
73
|
+
maxHeight: "9999px",
|
|
74
|
+
"&.collapsed": {
|
|
75
|
+
maxHeight: 0,
|
|
76
|
+
transition: "max-height 0.35s cubic-bezier(0, 1, 0, 1)"
|
|
77
|
+
}
|
|
78
|
+
}, "label:accordionItem;")
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var Accordion = function Accordion(_ref) {
|
|
82
|
+
var title = _ref.title,
|
|
83
|
+
children = _ref.children,
|
|
84
|
+
action = _ref.action,
|
|
85
|
+
icon = _ref.icon,
|
|
86
|
+
_ref$defaultValue = _ref.defaultValue,
|
|
87
|
+
defaultValue = _ref$defaultValue === void 0 ? false : _ref$defaultValue;
|
|
88
|
+
|
|
89
|
+
var _useState = useState(defaultValue),
|
|
90
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
91
|
+
isOpen = _useState2[0],
|
|
92
|
+
setOpen = _useState2[1];
|
|
93
|
+
|
|
94
|
+
var toggleOpen = useCallback(function () {
|
|
95
|
+
return setOpen(!isOpen);
|
|
96
|
+
}, [isOpen]);
|
|
97
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
className: classes.accordionWrapper
|
|
99
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
className: classNames(classes.accordionHeader, {
|
|
101
|
+
open: isOpen
|
|
102
|
+
}),
|
|
103
|
+
onClick: toggleOpen
|
|
104
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
105
|
+
className: "accordion-header--left"
|
|
106
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
107
|
+
className: "accordion-title"
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
109
|
+
use: "subtitle1"
|
|
110
|
+
}, title))), /*#__PURE__*/React.createElement("div", {
|
|
111
|
+
className: "accordion-header--right"
|
|
112
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
113
|
+
className: "action-container"
|
|
114
|
+
}, action), /*#__PURE__*/React.createElement("div", {
|
|
115
|
+
className: "icon-container"
|
|
116
|
+
}, icon))), /*#__PURE__*/React.createElement("div", {
|
|
117
|
+
className: classNames(classes.accordionItem, {
|
|
118
|
+
collapsed: !isOpen
|
|
119
|
+
})
|
|
120
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
121
|
+
className: "accordion-content"
|
|
122
|
+
}, children)));
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export default /*#__PURE__*/React.memo(Accordion);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CmsEditorField } from "../../../types";
|
|
3
|
+
declare type Props = {
|
|
4
|
+
field: CmsEditorField;
|
|
5
|
+
getBind(index?: number): React.ComponentType<any>;
|
|
6
|
+
showLabel?: boolean;
|
|
7
|
+
Label: React.ComponentType<any>;
|
|
8
|
+
children: (params: any) => React.ReactNode;
|
|
9
|
+
emptyValue?: any;
|
|
10
|
+
renderTitle?: (value: any[]) => React.ReactElement;
|
|
11
|
+
gridClassName?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const DynamicSection: ({ field, getBind, Label, children, showLabel, emptyValue, renderTitle, gridClassName }: Props) => JSX.Element;
|
|
14
|
+
export default DynamicSection;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject;
|
|
4
|
+
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { css } from "emotion";
|
|
7
|
+
import { i18n } from "@webiny/app/i18n";
|
|
8
|
+
import { Cell, Grid } from "@webiny/ui/Grid";
|
|
9
|
+
import { ButtonDefault, ButtonIcon } from "@webiny/ui/Button";
|
|
10
|
+
import { FormElementMessage } from "@webiny/ui/FormElementMessage";
|
|
11
|
+
import { ReactComponent as AddIcon } from "@svgr/webpack!@webiny/app-admin/assets/icons/add-18px.svg";
|
|
12
|
+
var t = i18n.ns("app-headless-cms/admin/fields/text");
|
|
13
|
+
var style = {
|
|
14
|
+
addButton: /*#__PURE__*/css({
|
|
15
|
+
width: "100%",
|
|
16
|
+
borderTop: "1px solid var(--mdc-theme-background)",
|
|
17
|
+
paddingTop: 8
|
|
18
|
+
}, "label:addButton;")
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var DynamicSection = function DynamicSection(_ref) {
|
|
22
|
+
var field = _ref.field,
|
|
23
|
+
getBind = _ref.getBind,
|
|
24
|
+
Label = _ref.Label,
|
|
25
|
+
children = _ref.children,
|
|
26
|
+
_ref$showLabel = _ref.showLabel,
|
|
27
|
+
showLabel = _ref$showLabel === void 0 ? true : _ref$showLabel,
|
|
28
|
+
_ref$emptyValue = _ref.emptyValue,
|
|
29
|
+
emptyValue = _ref$emptyValue === void 0 ? "" : _ref$emptyValue,
|
|
30
|
+
renderTitle = _ref.renderTitle,
|
|
31
|
+
gridClassName = _ref.gridClassName;
|
|
32
|
+
var Bind = getBind();
|
|
33
|
+
var FirstFieldBind = getBind(0);
|
|
34
|
+
return (
|
|
35
|
+
/*#__PURE__*/
|
|
36
|
+
|
|
37
|
+
/* First we mount the top level field, for example: "items" */
|
|
38
|
+
React.createElement(Bind, null, function (bindField) {
|
|
39
|
+
/**
|
|
40
|
+
* "value" -> an array of items
|
|
41
|
+
* "appendValue" -> a callback to add a new value to the top level "items" array
|
|
42
|
+
*/
|
|
43
|
+
var value = bindField.value,
|
|
44
|
+
appendValue = bindField.appendValue;
|
|
45
|
+
var bindFieldValue = value || [];
|
|
46
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
47
|
+
className: gridClassName
|
|
48
|
+
}, typeof renderTitle === "function" && renderTitle(bindFieldValue), /*#__PURE__*/React.createElement(Cell, {
|
|
49
|
+
span: 12
|
|
50
|
+
}, showLabel && field.label && /*#__PURE__*/React.createElement(Label, null, field.label), /*#__PURE__*/React.createElement(FirstFieldBind, null, function (bindIndex) {
|
|
51
|
+
return (
|
|
52
|
+
/* We bind it to index "0", so when you start typing, that index in parent array will be populated */
|
|
53
|
+
children({
|
|
54
|
+
Bind: FirstFieldBind,
|
|
55
|
+
field: field,
|
|
56
|
+
// "index" contains Bind props for this particular item in the array
|
|
57
|
+
// "field" contains Bind props for the main (parent) field.
|
|
58
|
+
bind: {
|
|
59
|
+
index: bindIndex,
|
|
60
|
+
field: bindField
|
|
61
|
+
},
|
|
62
|
+
index: 0 // Binds to "items.0" in the <Form>.
|
|
63
|
+
|
|
64
|
+
})
|
|
65
|
+
);
|
|
66
|
+
})), bindFieldValue.slice(1).map(function (_, index) {
|
|
67
|
+
/* We simply increase index, and as you type, the appropriate indexes in the parent array will be updated. */
|
|
68
|
+
var realIndex = index + 1;
|
|
69
|
+
var BindField = getBind(realIndex);
|
|
70
|
+
return /*#__PURE__*/React.createElement(Cell, {
|
|
71
|
+
span: 12,
|
|
72
|
+
key: realIndex
|
|
73
|
+
}, /*#__PURE__*/React.createElement(BindField, null, function (bindIndex) {
|
|
74
|
+
return children({
|
|
75
|
+
Bind: BindField,
|
|
76
|
+
field: field,
|
|
77
|
+
bind: {
|
|
78
|
+
index: bindIndex,
|
|
79
|
+
field: bindField
|
|
80
|
+
},
|
|
81
|
+
index: realIndex
|
|
82
|
+
});
|
|
83
|
+
}));
|
|
84
|
+
}), bindField.validation.isValid === false && /*#__PURE__*/React.createElement(Cell, {
|
|
85
|
+
span: 12
|
|
86
|
+
}, /*#__PURE__*/React.createElement(FormElementMessage, {
|
|
87
|
+
error: true
|
|
88
|
+
}, bindField.validation.message)), /*#__PURE__*/React.createElement(Cell, {
|
|
89
|
+
span: 12,
|
|
90
|
+
className: style.addButton
|
|
91
|
+
}, /*#__PURE__*/React.createElement(ButtonDefault, {
|
|
92
|
+
disabled: bindFieldValue[0] === undefined,
|
|
93
|
+
onClick: function onClick() {
|
|
94
|
+
return appendValue(emptyValue);
|
|
95
|
+
}
|
|
96
|
+
}, /*#__PURE__*/React.createElement(ButtonIcon, {
|
|
97
|
+
icon: /*#__PURE__*/React.createElement(AddIcon, null)
|
|
98
|
+
}), t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Add value"]))))));
|
|
99
|
+
})
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export default DynamicSection;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { Switch } from "@webiny/ui/Switch";
|
|
8
|
+
import { i18n } from "@webiny/app/i18n";
|
|
9
|
+
var t = i18n.ns("app-headless-cms/admin/fields/boolean");
|
|
10
|
+
var plugin = {
|
|
11
|
+
type: "cms-editor-field-renderer",
|
|
12
|
+
name: "cms-editor-field-renderer-boolean",
|
|
13
|
+
renderer: {
|
|
14
|
+
rendererName: "boolean-input",
|
|
15
|
+
name: t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Boolean Input"]))),
|
|
16
|
+
description: t(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["Renders a simple switch button."]))),
|
|
17
|
+
canUse: function canUse(_ref) {
|
|
18
|
+
var field = _ref.field;
|
|
19
|
+
return field.type === "boolean" && !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
|
+
return /*#__PURE__*/React.createElement(Bind, null, function (bindProps) {
|
|
26
|
+
return /*#__PURE__*/React.createElement(Switch, Object.assign({}, bindProps, {
|
|
27
|
+
label: field.label,
|
|
28
|
+
description: field.helpText
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
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 { Checkbox, CheckboxGroup } from "@webiny/ui/Checkbox";
|
|
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-checkboxes-buttons",
|
|
13
|
+
renderer: {
|
|
14
|
+
rendererName: "checkboxes",
|
|
15
|
+
name: t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Checkboxes"]))),
|
|
16
|
+
description: t(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["Renders checkboxes, allowing selection of multiple values."]))),
|
|
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(CheckboxGroup, {
|
|
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(Checkbox, {
|
|
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,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CmsEditorField } from "../../../../types";
|
|
3
|
+
interface DateTimeWithTimezoneProps {
|
|
4
|
+
bind: any;
|
|
5
|
+
trailingIcon?: any;
|
|
6
|
+
field: CmsEditorField;
|
|
7
|
+
}
|
|
8
|
+
declare const DateTimeWithTimezone: React.FunctionComponent<DateTimeWithTimezoneProps>;
|
|
9
|
+
export default DateTimeWithTimezone;
|