amis-editor 6.2.2 → 6.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/builder/ApiDSBuilder.js +3 -3
- package/esm/builder/DSBuilder.js +3 -3
- package/esm/builder/DSBuilderManager.js +3 -3
- package/esm/builder/constants.js +3 -3
- package/esm/builder/utils.js +3 -3
- package/esm/component/BaseControl.js +3 -3
- package/esm/component/InputComponentName.js +3 -3
- package/esm/component/ModalSettingPanel.d.ts +9 -0
- package/esm/component/ModalSettingPanel.js +49 -0
- package/esm/component/TableViewEditor.js +3 -3
- package/esm/icons/btn/btn-group.svg.js +3 -3
- package/esm/icons/btn/btn-select.svg.js +3 -3
- package/esm/icons/btn/btn-toolbar.svg.js +3 -3
- package/esm/icons/btn/button.svg.js +3 -3
- package/esm/icons/btn/dropdown-btn.svg.js +3 -3
- package/esm/icons/container/anchor-nav.svg.js +3 -3
- package/esm/icons/container/collapse.svg.js +3 -3
- package/esm/icons/container/container.svg.js +3 -3
- package/esm/icons/container/flex-container.svg.js +3 -3
- package/esm/icons/container/form-group.svg.js +3 -3
- package/esm/icons/container/grid.svg.js +3 -3
- package/esm/icons/container/iframe.svg.js +3 -3
- package/esm/icons/container/panel.svg.js +3 -3
- package/esm/icons/container/switch-container.svg.js +3 -3
- package/esm/icons/container/table-view.svg.js +3 -3
- package/esm/icons/container/tabs.svg.js +3 -3
- package/esm/icons/container/tooltip-wrapper.svg.js +3 -3
- package/esm/icons/container/web-component.svg.js +3 -3
- package/esm/icons/crud/column-add.svg.js +3 -3
- package/esm/icons/crud/column-delete.svg.js +3 -3
- package/esm/icons/crud/column-setting.svg.js +3 -3
- package/esm/icons/crud/share-link.svg.js +3 -3
- package/esm/icons/display/aBaseline.svg.js +3 -3
- package/esm/icons/display/aCenter.svg.js +3 -3
- package/esm/icons/display/aFlexEnd.svg.js +3 -3
- package/esm/icons/display/aFlexStart.svg.js +3 -3
- package/esm/icons/display/aStretch.svg.js +3 -3
- package/esm/icons/display/block.svg.js +3 -3
- package/esm/icons/display/dcolumn.svg.js +3 -3
- package/esm/icons/display/dcolumnReverse.svg.js +3 -3
- package/esm/icons/display/drow.svg.js +3 -3
- package/esm/icons/display/drowReverse.svg.js +3 -3
- package/esm/icons/display/flex.svg.js +3 -3
- package/esm/icons/display/inline-block.svg.js +3 -3
- package/esm/icons/display/inline.svg.js +3 -3
- package/esm/icons/display/jCenter.svg.js +3 -3
- package/esm/icons/display/jFlexEnd.svg.js +3 -3
- package/esm/icons/display/jFlexStart.svg.js +3 -3
- package/esm/icons/display/jSpaceAround.svg.js +3 -3
- package/esm/icons/display/jSpaceBetween.svg.js +3 -3
- package/esm/icons/feat/audio.svg.js +3 -3
- package/esm/icons/feat/custom.svg.js +3 -3
- package/esm/icons/feat/each.svg.js +3 -3
- package/esm/icons/feat/form.svg.js +3 -3
- package/esm/icons/feat/nav.svg.js +3 -3
- package/esm/icons/feat/qrcode.svg.js +3 -3
- package/esm/icons/feat/service.svg.js +3 -3
- package/esm/icons/feat/table.svg.js +3 -3
- package/esm/icons/feat/tasks.svg.js +3 -3
- package/esm/icons/feat/video.svg.js +3 -3
- package/esm/icons/feat/wizard.svg.js +3 -3
- package/esm/icons/form/chained-select.svg.js +3 -3
- package/esm/icons/form/checkbox.svg.js +3 -3
- package/esm/icons/form/checkboxes.svg.js +3 -3
- package/esm/icons/form/combo.svg.js +3 -3
- package/esm/icons/form/condition-builder.svg.js +3 -3
- package/esm/icons/form/diff-editor.svg.js +3 -3
- package/esm/icons/form/editor.svg.js +3 -3
- package/esm/icons/form/formula.svg.js +3 -3
- package/esm/icons/form/hidden.svg.js +3 -3
- package/esm/icons/form/input-city.svg.js +3 -3
- package/esm/icons/form/input-color.svg.js +3 -3
- package/esm/icons/form/input-date-range.svg.js +3 -3
- package/esm/icons/form/input-date.svg.js +3 -3
- package/esm/icons/form/input-datetime.svg.js +3 -3
- package/esm/icons/form/input-email.svg.js +3 -3
- package/esm/icons/form/input-excel.svg.js +3 -3
- package/esm/icons/form/input-file.svg.js +3 -3
- package/esm/icons/form/input-group.svg.js +3 -3
- package/esm/icons/form/input-image.svg.js +3 -3
- package/esm/icons/form/input-kv.svg.js +3 -3
- package/esm/icons/form/input-month-range.svg.js +3 -3
- package/esm/icons/form/input-number.svg.js +3 -3
- package/esm/icons/form/input-password.svg.js +3 -3
- package/esm/icons/form/input-quarter-range.svg.js +3 -3
- package/esm/icons/form/input-range.svg.js +3 -3
- package/esm/icons/form/input-rating.svg.js +3 -3
- package/esm/icons/form/input-repeat.svg.js +3 -3
- package/esm/icons/form/input-rich-text.svg.js +3 -3
- package/esm/icons/form/input-signature.svg.js +23 -0
- package/esm/icons/form/input-tag.svg.js +3 -3
- package/esm/icons/form/input-text.svg.js +3 -3
- package/esm/icons/form/input-time-range.svg.js +3 -3
- package/esm/icons/form/input-time.svg.js +3 -3
- package/esm/icons/form/input-tree.svg.js +3 -3
- package/esm/icons/form/input-url.svg.js +3 -3
- package/esm/icons/form/input-year.svg.js +3 -3
- package/esm/icons/form/inputArray.svg.js +3 -3
- package/esm/icons/form/list-select.svg.js +3 -3
- package/esm/icons/form/location-picker.svg.js +3 -3
- package/esm/icons/form/matrix-checkboxes.svg.js +3 -3
- package/esm/icons/form/month.svg.js +3 -3
- package/esm/icons/form/nested-select.svg.js +3 -3
- package/esm/icons/form/picker.svg.js +3 -3
- package/esm/icons/form/quarter.svg.js +3 -3
- package/esm/icons/form/radios.svg.js +3 -3
- package/esm/icons/form/select.svg.js +3 -3
- package/esm/icons/form/static.svg.js +3 -3
- package/esm/icons/form/sub-form.svg.js +3 -3
- package/esm/icons/form/switch.svg.js +3 -3
- package/esm/icons/form/tabs-transfer.svg.js +3 -3
- package/esm/icons/form/textarea.svg.js +3 -3
- package/esm/icons/form/transfer.svg.js +3 -3
- package/esm/icons/form/tree-select.svg.js +3 -3
- package/esm/icons/form/uuid.svg.js +3 -3
- package/esm/icons/index.js +7 -3
- package/esm/icons/layout/layout-1with2.svg.js +3 -3
- package/esm/icons/layout/layout-2cols.svg.js +3 -3
- package/esm/icons/layout/layout-2row.svg.js +3 -3
- package/esm/icons/layout/layout-2with1.svg.js +3 -3
- package/esm/icons/layout/layout-3cols.svg.js +3 -3
- package/esm/icons/layout/layout-3row.svg.js +3 -3
- package/esm/icons/layout/layout-absolute.svg.js +3 -3
- package/esm/icons/layout/layout-fixed-top.svg.js +3 -3
- package/esm/icons/layout/layout-fixed.svg.js +3 -3
- package/esm/icons/layout/layout-free-container.svg.js +3 -3
- package/esm/icons/layout/layout-full.svg.js +3 -3
- package/esm/icons/layout/layout1-2.svg.js +3 -3
- package/esm/icons/layout/layout2-1.svg.js +3 -3
- package/esm/icons/layout/layout3-1.svg.js +3 -3
- package/esm/icons/layout/layout3-2.svg.js +3 -3
- package/esm/icons/other/_fx.svg.js +3 -3
- package/esm/icons/other/divider.svg.js +3 -3
- package/esm/icons/other/fx.svg.js +3 -3
- package/esm/icons/other/modal-setting.svg.js +24 -0
- package/esm/icons/other/property-sheet.svg.js +3 -3
- package/esm/icons/other/tooltip.svg.js +3 -3
- package/esm/icons/show/URL.svg.js +3 -3
- package/esm/icons/show/avatar.svg.js +3 -3
- package/esm/icons/show/breadcrumb.svg.js +3 -3
- package/esm/icons/show/card.svg.js +3 -3
- package/esm/icons/show/cards.svg.js +3 -3
- package/esm/icons/show/carousel.svg.js +3 -3
- package/esm/icons/show/chart.svg.js +3 -3
- package/esm/icons/show/code.svg.js +3 -3
- package/esm/icons/show/date.svg.js +3 -3
- package/esm/icons/show/datetime.svg.js +3 -3
- package/esm/icons/show/image.svg.js +3 -3
- package/esm/icons/show/images.svg.js +3 -3
- package/esm/icons/show/json-view.svg.js +3 -3
- package/esm/icons/show/list.svg.js +3 -3
- package/esm/icons/show/log.svg.js +3 -3
- package/esm/icons/show/mapping.svg.js +3 -3
- package/esm/icons/show/markdown.svg.js +3 -3
- package/esm/icons/show/plain.svg.js +3 -3
- package/esm/icons/show/progress.svg.js +3 -3
- package/esm/icons/show/sparkline.svg.js +3 -3
- package/esm/icons/show/status.svg.js +3 -3
- package/esm/icons/show/steps.svg.js +3 -3
- package/esm/icons/show/time.svg.js +3 -3
- package/esm/icons/theme/css.svg.js +3 -3
- package/esm/index.d.ts +1 -0
- package/esm/index.js +7 -3
- package/esm/locale/en-US.js +4 -5
- package/esm/locale/zh-CN.js +4 -4
- package/esm/plugin/Alert.js +3 -3
- package/esm/plugin/AnchorNav.js +3 -3
- package/esm/plugin/Audio.js +3 -3
- package/esm/plugin/Avatar.js +3 -3
- package/esm/plugin/Breadcrumb.js +3 -3
- package/esm/plugin/Button.js +5 -5
- package/esm/plugin/ButtonGroup.js +3 -3
- package/esm/plugin/CRUD.js +33 -16
- package/esm/plugin/CRUD2/BaseCRUD.js +10 -6
- package/esm/plugin/CRUD2/CRUDTable.js +3 -3
- package/esm/plugin/CRUD2/constants.js +3 -3
- package/esm/plugin/CRUD2/utils.js +3 -3
- package/esm/plugin/Calendar.js +4 -4
- package/esm/plugin/Card.js +3 -3
- package/esm/plugin/Card2.js +3 -3
- package/esm/plugin/Cards.js +7 -4
- package/esm/plugin/Carousel.js +3 -3
- package/esm/plugin/Chart.js +3 -3
- package/esm/plugin/CodeView.js +3 -3
- package/esm/plugin/Collapse.js +3 -3
- package/esm/plugin/CollapseGroup.js +3 -3
- package/esm/plugin/ColumnToggler.js +3 -3
- package/esm/plugin/Container.d.ts +14 -1
- package/esm/plugin/Container.js +241 -35
- package/esm/plugin/Custom.js +3 -3
- package/esm/plugin/CustomRegion.js +3 -3
- package/esm/plugin/Date.js +3 -3
- package/esm/plugin/Datetime.js +3 -3
- package/esm/plugin/Dialog.d.ts +4 -7
- package/esm/plugin/Dialog.js +105 -20
- package/esm/plugin/Divider.js +3 -3
- package/esm/plugin/Drawer.d.ts +1 -6
- package/esm/plugin/Drawer.js +34 -10
- package/esm/plugin/DropDownButton.js +3 -3
- package/esm/plugin/Each.js +9 -6
- package/esm/plugin/Flex.js +3 -3
- package/esm/plugin/Form/ButtonGroupSelect.js +4 -4
- package/esm/plugin/Form/ButtonToolbar.js +3 -3
- package/esm/plugin/Form/ChainedSelect.js +4 -4
- package/esm/plugin/Form/Checkbox.js +4 -4
- package/esm/plugin/Form/Checkboxes.js +4 -4
- package/esm/plugin/Form/CodeEditor.js +4 -4
- package/esm/plugin/Form/Combo.js +47 -4
- package/esm/plugin/Form/ConditionBuilder.js +3 -3
- package/esm/plugin/Form/Control.js +3 -3
- package/esm/plugin/Form/DiffEditor.js +4 -4
- package/esm/plugin/Form/FieldSet.js +3 -3
- package/esm/plugin/Form/Form.js +3 -3
- package/esm/plugin/Form/Formula.js +3 -3
- package/esm/plugin/Form/Group.js +3 -3
- package/esm/plugin/Form/Hidden.js +3 -3
- package/esm/plugin/Form/InputArray.js +3 -3
- package/esm/plugin/Form/InputCity.js +3 -3
- package/esm/plugin/Form/InputColor.js +3 -3
- package/esm/plugin/Form/InputDate.js +4 -4
- package/esm/plugin/Form/InputDateRange.js +4 -4
- package/esm/plugin/Form/InputDateTime.js +3 -3
- package/esm/plugin/Form/InputDateTimeRange.js +3 -3
- package/esm/plugin/Form/InputEmail.js +3 -3
- package/esm/plugin/Form/InputExcel.js +4 -4
- package/esm/plugin/Form/InputFile.js +3 -3
- package/esm/plugin/Form/InputGroup.js +3 -3
- package/esm/plugin/Form/InputImage.js +5 -5
- package/esm/plugin/Form/InputKV.d.ts +1 -0
- package/esm/plugin/Form/InputKV.js +12 -4
- package/esm/plugin/Form/InputMonth.js +3 -3
- package/esm/plugin/Form/InputMonthRange.js +3 -3
- package/esm/plugin/Form/InputNumber.js +6 -4
- package/esm/plugin/Form/InputPassword.js +3 -3
- package/esm/plugin/Form/InputQuarter.js +3 -3
- package/esm/plugin/Form/InputQuarterRange.js +3 -3
- package/esm/plugin/Form/InputRange.js +4 -4
- package/esm/plugin/Form/InputRating.js +4 -4
- package/esm/plugin/Form/InputRepeat.js +3 -3
- package/esm/plugin/Form/InputRichText.js +3 -3
- package/esm/plugin/Form/InputSignature.d.ts +32 -0
- package/esm/plugin/Form/InputSignature.js +166 -0
- package/esm/plugin/Form/InputSubForm.js +3 -3
- package/esm/plugin/Form/InputTable.js +77 -6
- package/esm/plugin/Form/InputTag.js +3 -3
- package/esm/plugin/Form/InputText.js +4 -4
- package/esm/plugin/Form/InputTime.js +3 -3
- package/esm/plugin/Form/InputTimeRange.js +3 -3
- package/esm/plugin/Form/InputTree.js +3 -3
- package/esm/plugin/Form/InputURL.js +3 -3
- package/esm/plugin/Form/InputYear.js +3 -3
- package/esm/plugin/Form/InputYearRange.js +3 -3
- package/esm/plugin/Form/Item.js +3 -3
- package/esm/plugin/Form/ListSelect.js +4 -4
- package/esm/plugin/Form/LocationPicker.js +4 -4
- package/esm/plugin/Form/MatrixCheckboxes.js +3 -3
- package/esm/plugin/Form/NestedSelect.js +4 -4
- package/esm/plugin/Form/Picker.js +5 -5
- package/esm/plugin/Form/Radios.js +4 -4
- package/esm/plugin/Form/Select.js +4 -4
- package/esm/plugin/Form/Static.js +3 -3
- package/esm/plugin/Form/Switch.js +53 -27
- package/esm/plugin/Form/TabsTransfer.js +3 -3
- package/esm/plugin/Form/Textarea.js +4 -4
- package/esm/plugin/Form/Transfer.js +40 -7
- package/esm/plugin/Form/TransferPicker.d.ts +26 -0
- package/esm/plugin/Form/TransferPicker.js +57 -0
- package/esm/plugin/Form/TreeSelect.js +3 -3
- package/esm/plugin/Form/UUID.js +3 -3
- package/esm/plugin/Grid.js +3 -3
- package/esm/plugin/HBox.js +3 -3
- package/esm/plugin/IFrame.js +3 -3
- package/esm/plugin/Icon.js +3 -3
- package/esm/plugin/Image.js +4 -3
- package/esm/plugin/Images.js +3 -3
- package/esm/plugin/Json.js +3 -3
- package/esm/plugin/Layout/FlexPluginBase.d.ts +4 -8
- package/esm/plugin/Layout/FlexPluginBase.js +153 -20
- package/esm/plugin/Layout/Layout_fixed.js +3 -3
- package/esm/plugin/Layout/Layout_free_container.js +3 -3
- package/esm/plugin/Layout/Layout_sorption_container.js +3 -3
- package/esm/plugin/Link.js +3 -3
- package/esm/plugin/List.js +3 -3
- package/esm/plugin/List2.js +7 -4
- package/esm/plugin/ListItem.js +3 -3
- package/esm/plugin/Log.js +3 -3
- package/esm/plugin/Mapping.js +3 -3
- package/esm/plugin/Markdown.js +3 -3
- package/esm/plugin/Nav.js +3 -3
- package/esm/plugin/OfficeViewer.js +3 -3
- package/esm/plugin/Operation.js +3 -3
- package/esm/plugin/Others/Action.js +18 -16
- package/esm/plugin/Others/TableCell.js +3 -3
- package/esm/plugin/Page.js +3 -3
- package/esm/plugin/Pagination.js +3 -3
- package/esm/plugin/Panel.js +3 -3
- package/esm/plugin/PdfViewer.d.ts +23 -0
- package/esm/plugin/PdfViewer.js +85 -0
- package/esm/plugin/Plain.js +3 -3
- package/esm/plugin/Progress.js +3 -3
- package/esm/plugin/Property.js +3 -3
- package/esm/plugin/QRCode.js +3 -3
- package/esm/plugin/Reset.js +3 -3
- package/esm/plugin/SearchBox.js +3 -3
- package/esm/plugin/Service.js +3 -3
- package/esm/plugin/Sparkline.js +3 -3
- package/esm/plugin/Status.js +3 -3
- package/esm/plugin/Steps.js +3 -3
- package/esm/plugin/Submit.js +3 -3
- package/esm/plugin/SwitchContainer.js +3 -3
- package/esm/plugin/Table.js +23 -3
- package/esm/plugin/Table2.js +3 -3
- package/esm/plugin/TableCell2.js +6 -4
- package/esm/plugin/TableView.js +3 -3
- package/esm/plugin/Tabs.d.ts +2 -0
- package/esm/plugin/Tabs.js +7 -6
- package/esm/plugin/Tag.js +3 -3
- package/esm/plugin/Tasks.js +3 -3
- package/esm/plugin/Time.js +3 -3
- package/esm/plugin/Timeline.js +3 -3
- package/esm/plugin/TooltipWrapper.js +3 -3
- package/esm/plugin/Tpl.js +3 -3
- package/esm/plugin/Video.js +3 -3
- package/esm/plugin/WebComponent.js +3 -3
- package/esm/plugin/Wizard.js +3 -3
- package/esm/plugin/Wrapper.js +3 -3
- package/esm/plugin/index.d.ts +3 -0
- package/esm/renderer/APIAdaptorControl.js +3 -3
- package/esm/renderer/APIControl.js +3 -3
- package/esm/renderer/BadgeControl.js +3 -3
- package/esm/renderer/ButtonGroupControl.js +3 -3
- package/esm/renderer/DataBindingControl.js +3 -3
- package/esm/renderer/DataMappingControl.js +3 -3
- package/esm/renderer/DataPickerControl.js +3 -3
- package/esm/renderer/DateShortCutControl.js +3 -3
- package/esm/renderer/ExpressionFormulaControl.js +61 -35
- package/esm/renderer/FeatureControl.js +14 -12
- package/esm/renderer/FieldSetting.js +3 -3
- package/esm/renderer/FlexSettingControl.js +4 -4
- package/esm/renderer/FormulaControl.d.ts +6 -1
- package/esm/renderer/FormulaControl.js +71 -49
- package/esm/renderer/FunctionEditorControl.js +3 -3
- package/esm/renderer/GoConfigControl.js +3 -3
- package/esm/renderer/InputRangeValueControl.js +3 -3
- package/esm/renderer/KeyValueMapControl.js +3 -3
- package/esm/renderer/ListItemControl.js +3 -3
- package/esm/renderer/MapSourceControl.js +3 -3
- package/esm/renderer/NavBadgeControl.js +3 -3
- package/esm/renderer/NavDefaultActive.js +3 -3
- package/esm/renderer/NavSourceControl.js +3 -3
- package/esm/renderer/OptionControl.js +3 -3
- package/esm/renderer/RangePartsControl.js +3 -3
- package/esm/renderer/StatusControl.js +4 -5
- package/esm/renderer/SwitchMoreControl.js +3 -3
- package/esm/renderer/TableColumnWidthControl.js +3 -3
- package/esm/renderer/TimelineItemControl.js +4 -4
- package/esm/renderer/TplFormulaControl.js +34 -25
- package/esm/renderer/TransferTableControl.d.ts +1 -3
- package/esm/renderer/TransferTableControl.js +4 -3
- package/esm/renderer/TreeOptionControl.js +3 -3
- package/esm/renderer/ValidationControl.js +5 -4
- package/esm/renderer/ValidationItem.js +3 -3
- package/esm/renderer/ValueFormatControl.js +3 -3
- package/esm/renderer/crud2-control/AddColumnModal.js +3 -3
- package/esm/renderer/crud2-control/CRUDColumnControl.js +3 -3
- package/esm/renderer/crud2-control/CRUDFiltersControl.js +3 -3
- package/esm/renderer/crud2-control/CRUDToolbarControl.js +3 -3
- package/esm/renderer/event-control/DialogActionPanel.d.ts +28 -0
- package/esm/renderer/event-control/DialogActionPanel.js +636 -0
- package/esm/renderer/event-control/action-config-dialog.d.ts +3 -0
- package/esm/renderer/event-control/action-config-dialog.js +11 -6
- package/esm/renderer/event-control/action-config-panel.js +3 -3
- package/esm/renderer/event-control/comp-action-select.js +3 -3
- package/esm/renderer/event-control/helper.js +107 -191
- package/esm/renderer/event-control/index.d.ts +7 -8
- package/esm/renderer/event-control/index.js +73 -112
- package/esm/renderer/style-control/Background.js +3 -3
- package/esm/renderer/style-control/Border.js +3 -3
- package/esm/renderer/style-control/BoxModel.js +3 -3
- package/esm/renderer/style-control/BoxShadow.js +3 -3
- package/esm/renderer/style-control/Display.js +3 -3
- package/esm/renderer/style-control/FlexLayout.d.ts +8 -0
- package/esm/renderer/style-control/FlexLayout.js +89 -0
- package/esm/renderer/style-control/Font.js +3 -3
- package/esm/renderer/style-control/InsetBoxModel.js +3 -3
- package/esm/renderer/style-control/ThemeCssCode.js +3 -3
- package/esm/renderer/style-control/font-family.js +3 -3
- package/esm/renderer/style-control/helper.js +5 -5
- package/esm/renderer/style-control/transformation.js +3 -3
- package/esm/renderer/textarea-formula/FormulaPicker.js +4 -4
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +5 -5
- package/esm/renderer/textarea-formula/plugin.js +3 -3
- package/esm/tpl/api.js +3 -3
- package/esm/tpl/common.js +45 -6
- package/esm/tpl/horizontal.js +3 -3
- package/esm/tpl/layout.js +34 -17
- package/esm/tpl/options.js +3 -3
- package/esm/tpl/remark.js +3 -3
- package/esm/tpl/style.js +13 -13
- package/esm/tpl/validations.js +3 -3
- package/esm/util.js +11 -4
- package/esm/validator.js +3 -3
- package/lib/builder/ApiDSBuilder.d.ts +8 -8
- package/lib/builder/ApiDSBuilder.js +3 -3
- package/lib/builder/DSBuilder.js +3 -3
- package/lib/builder/DSBuilderManager.js +3 -3
- package/lib/builder/constants.d.ts +1 -1
- package/lib/builder/constants.js +3 -3
- package/lib/builder/utils.js +3 -3
- package/lib/component/BaseControl.js +3 -3
- package/lib/component/InputComponentName.js +3 -3
- package/lib/component/ModalSettingPanel.d.ts +9 -0
- package/lib/component/ModalSettingPanel.js +57 -0
- package/lib/component/TableViewEditor.js +3 -3
- package/lib/icons/btn/btn-group.svg.js +3 -3
- package/lib/icons/btn/btn-select.svg.js +3 -3
- package/lib/icons/btn/btn-toolbar.svg.js +3 -3
- package/lib/icons/btn/button.svg.js +3 -3
- package/lib/icons/btn/dropdown-btn.svg.js +3 -3
- package/lib/icons/container/anchor-nav.svg.js +3 -3
- package/lib/icons/container/collapse.svg.js +3 -3
- package/lib/icons/container/container.svg.js +3 -3
- package/lib/icons/container/flex-container.svg.js +3 -3
- package/lib/icons/container/form-group.svg.js +3 -3
- package/lib/icons/container/grid.svg.js +3 -3
- package/lib/icons/container/iframe.svg.js +3 -3
- package/lib/icons/container/panel.svg.js +3 -3
- package/lib/icons/container/switch-container.svg.js +3 -3
- package/lib/icons/container/table-view.svg.js +3 -3
- package/lib/icons/container/tabs.svg.js +3 -3
- package/lib/icons/container/tooltip-wrapper.svg.js +3 -3
- package/lib/icons/container/web-component.svg.js +3 -3
- package/lib/icons/crud/column-add.svg.js +3 -3
- package/lib/icons/crud/column-delete.svg.js +3 -3
- package/lib/icons/crud/column-setting.svg.js +3 -3
- package/lib/icons/crud/share-link.svg.js +3 -3
- package/lib/icons/display/aBaseline.svg.js +3 -3
- package/lib/icons/display/aCenter.svg.js +3 -3
- package/lib/icons/display/aFlexEnd.svg.js +3 -3
- package/lib/icons/display/aFlexStart.svg.js +3 -3
- package/lib/icons/display/aStretch.svg.js +3 -3
- package/lib/icons/display/block.svg.js +3 -3
- package/lib/icons/display/dcolumn.svg.js +3 -3
- package/lib/icons/display/dcolumnReverse.svg.js +3 -3
- package/lib/icons/display/drow.svg.js +3 -3
- package/lib/icons/display/drowReverse.svg.js +3 -3
- package/lib/icons/display/flex.svg.js +3 -3
- package/lib/icons/display/inline-block.svg.js +3 -3
- package/lib/icons/display/inline.svg.js +3 -3
- package/lib/icons/display/jCenter.svg.js +3 -3
- package/lib/icons/display/jFlexEnd.svg.js +3 -3
- package/lib/icons/display/jFlexStart.svg.js +3 -3
- package/lib/icons/display/jSpaceAround.svg.js +3 -3
- package/lib/icons/display/jSpaceBetween.svg.js +3 -3
- package/lib/icons/feat/audio.svg.js +3 -3
- package/lib/icons/feat/custom.svg.js +3 -3
- package/lib/icons/feat/each.svg.js +3 -3
- package/lib/icons/feat/form.svg.js +3 -3
- package/lib/icons/feat/nav.svg.js +3 -3
- package/lib/icons/feat/qrcode.svg.js +3 -3
- package/lib/icons/feat/service.svg.js +3 -3
- package/lib/icons/feat/table.svg.js +3 -3
- package/lib/icons/feat/tasks.svg.js +3 -3
- package/lib/icons/feat/video.svg.js +3 -3
- package/lib/icons/feat/wizard.svg.js +3 -3
- package/lib/icons/form/chained-select.svg.js +3 -3
- package/lib/icons/form/checkbox.svg.js +3 -3
- package/lib/icons/form/checkboxes.svg.js +3 -3
- package/lib/icons/form/combo.svg.js +3 -3
- package/lib/icons/form/condition-builder.svg.js +3 -3
- package/lib/icons/form/diff-editor.svg.js +3 -3
- package/lib/icons/form/editor.svg.js +3 -3
- package/lib/icons/form/formula.svg.js +3 -3
- package/lib/icons/form/hidden.svg.js +3 -3
- package/lib/icons/form/input-city.svg.js +3 -3
- package/lib/icons/form/input-color.svg.js +3 -3
- package/lib/icons/form/input-date-range.svg.js +3 -3
- package/lib/icons/form/input-date.svg.js +3 -3
- package/lib/icons/form/input-datetime.svg.js +3 -3
- package/lib/icons/form/input-email.svg.js +3 -3
- package/lib/icons/form/input-excel.svg.js +3 -3
- package/lib/icons/form/input-file.svg.js +3 -3
- package/lib/icons/form/input-group.svg.js +3 -3
- package/lib/icons/form/input-image.svg.js +3 -3
- package/lib/icons/form/input-kv.svg.js +3 -3
- package/lib/icons/form/input-month-range.svg.js +3 -3
- package/lib/icons/form/input-number.svg.js +3 -3
- package/lib/icons/form/input-password.svg.js +3 -3
- package/lib/icons/form/input-quarter-range.svg.js +3 -3
- package/lib/icons/form/input-range.svg.js +3 -3
- package/lib/icons/form/input-rating.svg.js +3 -3
- package/lib/icons/form/input-repeat.svg.js +3 -3
- package/lib/icons/form/input-rich-text.svg.js +3 -3
- package/lib/icons/form/input-signature.svg.js +47 -0
- package/lib/icons/form/input-tag.svg.js +3 -3
- package/lib/icons/form/input-text.svg.js +3 -3
- package/lib/icons/form/input-time-range.svg.js +3 -3
- package/lib/icons/form/input-time.svg.js +3 -3
- package/lib/icons/form/input-tree.svg.js +3 -3
- package/lib/icons/form/input-url.svg.js +3 -3
- package/lib/icons/form/input-year.svg.js +3 -3
- package/lib/icons/form/inputArray.svg.js +3 -3
- package/lib/icons/form/list-select.svg.js +3 -3
- package/lib/icons/form/location-picker.svg.js +3 -3
- package/lib/icons/form/matrix-checkboxes.svg.js +3 -3
- package/lib/icons/form/month.svg.js +3 -3
- package/lib/icons/form/nested-select.svg.js +3 -3
- package/lib/icons/form/picker.svg.js +3 -3
- package/lib/icons/form/quarter.svg.js +3 -3
- package/lib/icons/form/radios.svg.js +3 -3
- package/lib/icons/form/select.svg.js +3 -3
- package/lib/icons/form/static.svg.js +3 -3
- package/lib/icons/form/sub-form.svg.js +3 -3
- package/lib/icons/form/switch.svg.js +3 -3
- package/lib/icons/form/tabs-transfer.svg.js +3 -3
- package/lib/icons/form/textarea.svg.js +3 -3
- package/lib/icons/form/transfer.svg.js +3 -3
- package/lib/icons/form/tree-select.svg.js +3 -3
- package/lib/icons/form/uuid.svg.js +3 -3
- package/lib/icons/index.js +7 -3
- package/lib/icons/layout/layout-1with2.svg.js +3 -3
- package/lib/icons/layout/layout-2cols.svg.js +3 -3
- package/lib/icons/layout/layout-2row.svg.js +3 -3
- package/lib/icons/layout/layout-2with1.svg.js +3 -3
- package/lib/icons/layout/layout-3cols.svg.js +3 -3
- package/lib/icons/layout/layout-3row.svg.js +3 -3
- package/lib/icons/layout/layout-absolute.svg.js +3 -3
- package/lib/icons/layout/layout-fixed-top.svg.js +3 -3
- package/lib/icons/layout/layout-fixed.svg.js +3 -3
- package/lib/icons/layout/layout-free-container.svg.js +3 -3
- package/lib/icons/layout/layout-full.svg.js +3 -3
- package/lib/icons/layout/layout1-2.svg.js +3 -3
- package/lib/icons/layout/layout2-1.svg.js +3 -3
- package/lib/icons/layout/layout3-1.svg.js +3 -3
- package/lib/icons/layout/layout3-2.svg.js +3 -3
- package/lib/icons/other/_fx.svg.js +3 -3
- package/lib/icons/other/divider.svg.js +3 -3
- package/lib/icons/other/fx.svg.js +3 -3
- package/lib/icons/other/modal-setting.svg.js +48 -0
- package/lib/icons/other/property-sheet.svg.js +3 -3
- package/lib/icons/other/tooltip.svg.js +3 -3
- package/lib/icons/show/URL.svg.js +3 -3
- package/lib/icons/show/avatar.svg.js +3 -3
- package/lib/icons/show/breadcrumb.svg.js +3 -3
- package/lib/icons/show/card.svg.js +3 -3
- package/lib/icons/show/cards.svg.js +3 -3
- package/lib/icons/show/carousel.svg.js +3 -3
- package/lib/icons/show/chart.svg.js +3 -3
- package/lib/icons/show/code.svg.js +3 -3
- package/lib/icons/show/date.svg.js +3 -3
- package/lib/icons/show/datetime.svg.js +3 -3
- package/lib/icons/show/image.svg.js +3 -3
- package/lib/icons/show/images.svg.js +3 -3
- package/lib/icons/show/json-view.svg.js +3 -3
- package/lib/icons/show/list.svg.js +3 -3
- package/lib/icons/show/log.svg.js +3 -3
- package/lib/icons/show/mapping.svg.js +3 -3
- package/lib/icons/show/markdown.svg.js +3 -3
- package/lib/icons/show/plain.svg.js +3 -3
- package/lib/icons/show/progress.svg.js +3 -3
- package/lib/icons/show/sparkline.svg.js +3 -3
- package/lib/icons/show/status.svg.js +3 -3
- package/lib/icons/show/steps.svg.js +3 -3
- package/lib/icons/show/time.svg.js +3 -3
- package/lib/icons/theme/css.svg.js +3 -3
- package/lib/index.d.ts +1 -0
- package/lib/index.js +10 -3
- package/lib/locale/en-US.js +4 -5
- package/lib/locale/zh-CN.js +4 -4
- package/lib/plugin/Alert.js +3 -3
- package/lib/plugin/AnchorNav.js +3 -3
- package/lib/plugin/Audio.js +3 -3
- package/lib/plugin/Avatar.js +3 -3
- package/lib/plugin/Breadcrumb.js +3 -3
- package/lib/plugin/Button.js +5 -5
- package/lib/plugin/ButtonGroup.js +3 -3
- package/lib/plugin/CRUD.js +33 -16
- package/lib/plugin/CRUD2/BaseCRUD.js +10 -6
- package/lib/plugin/CRUD2/CRUDTable.js +3 -3
- package/lib/plugin/CRUD2/constants.js +3 -3
- package/lib/plugin/CRUD2/utils.js +3 -3
- package/lib/plugin/Calendar.js +4 -4
- package/lib/plugin/Card.js +3 -3
- package/lib/plugin/Card2.js +3 -3
- package/lib/plugin/Cards.js +8 -4
- package/lib/plugin/Carousel.js +3 -3
- package/lib/plugin/Chart.js +3 -3
- package/lib/plugin/CodeView.js +3 -3
- package/lib/plugin/Collapse.js +3 -3
- package/lib/plugin/CollapseGroup.js +3 -3
- package/lib/plugin/ColumnToggler.js +3 -3
- package/lib/plugin/Container.d.ts +14 -1
- package/lib/plugin/Container.js +244 -34
- package/lib/plugin/Custom.js +3 -3
- package/lib/plugin/CustomRegion.js +3 -3
- package/lib/plugin/Date.js +3 -3
- package/lib/plugin/Datetime.js +3 -3
- package/lib/plugin/Dialog.d.ts +4 -7
- package/lib/plugin/Dialog.js +104 -18
- package/lib/plugin/Divider.js +3 -3
- package/lib/plugin/Drawer.d.ts +1 -6
- package/lib/plugin/Drawer.js +33 -9
- package/lib/plugin/DropDownButton.js +3 -3
- package/lib/plugin/Each.js +15 -7
- package/lib/plugin/Flex.js +3 -3
- package/lib/plugin/Form/ButtonGroupSelect.js +4 -4
- package/lib/plugin/Form/ButtonToolbar.js +3 -3
- package/lib/plugin/Form/ChainedSelect.js +4 -4
- package/lib/plugin/Form/Checkbox.js +4 -4
- package/lib/plugin/Form/Checkboxes.js +4 -4
- package/lib/plugin/Form/CodeEditor.js +4 -4
- package/lib/plugin/Form/Combo.js +47 -4
- package/lib/plugin/Form/ConditionBuilder.js +3 -3
- package/lib/plugin/Form/Control.js +3 -3
- package/lib/plugin/Form/DiffEditor.js +4 -4
- package/lib/plugin/Form/FieldSet.js +3 -3
- package/lib/plugin/Form/Form.js +3 -3
- package/lib/plugin/Form/Formula.js +3 -3
- package/lib/plugin/Form/Group.js +3 -3
- package/lib/plugin/Form/Hidden.js +3 -3
- package/lib/plugin/Form/InputArray.js +3 -3
- package/lib/plugin/Form/InputCity.js +3 -3
- package/lib/plugin/Form/InputColor.js +3 -3
- package/lib/plugin/Form/InputDate.js +4 -4
- package/lib/plugin/Form/InputDateRange.js +4 -4
- package/lib/plugin/Form/InputDateTime.js +3 -3
- package/lib/plugin/Form/InputDateTimeRange.js +3 -3
- package/lib/plugin/Form/InputEmail.js +3 -3
- package/lib/plugin/Form/InputExcel.js +4 -4
- package/lib/plugin/Form/InputFile.js +3 -3
- package/lib/plugin/Form/InputGroup.js +3 -3
- package/lib/plugin/Form/InputImage.js +5 -5
- package/lib/plugin/Form/InputKV.d.ts +1 -0
- package/lib/plugin/Form/InputKV.js +12 -4
- package/lib/plugin/Form/InputMonth.js +3 -3
- package/lib/plugin/Form/InputMonthRange.js +3 -3
- package/lib/plugin/Form/InputNumber.js +6 -4
- package/lib/plugin/Form/InputPassword.js +3 -3
- package/lib/plugin/Form/InputQuarter.js +3 -3
- package/lib/plugin/Form/InputQuarterRange.js +3 -3
- package/lib/plugin/Form/InputRange.js +4 -4
- package/lib/plugin/Form/InputRating.js +4 -4
- package/lib/plugin/Form/InputRepeat.js +3 -3
- package/lib/plugin/Form/InputRichText.js +3 -3
- package/lib/plugin/Form/InputSignature.d.ts +32 -0
- package/lib/plugin/Form/InputSignature.js +170 -0
- package/lib/plugin/Form/InputSubForm.js +3 -3
- package/lib/plugin/Form/InputTable.js +77 -6
- package/lib/plugin/Form/InputTag.js +3 -3
- package/lib/plugin/Form/InputText.js +4 -4
- package/lib/plugin/Form/InputTime.js +3 -3
- package/lib/plugin/Form/InputTimeRange.js +3 -3
- package/lib/plugin/Form/InputTree.js +3 -3
- package/lib/plugin/Form/InputURL.js +3 -3
- package/lib/plugin/Form/InputYear.js +3 -3
- package/lib/plugin/Form/InputYearRange.js +3 -3
- package/lib/plugin/Form/Item.js +3 -3
- package/lib/plugin/Form/ListSelect.js +4 -4
- package/lib/plugin/Form/LocationPicker.js +4 -4
- package/lib/plugin/Form/MatrixCheckboxes.js +3 -3
- package/lib/plugin/Form/NestedSelect.js +4 -4
- package/lib/plugin/Form/Picker.js +5 -5
- package/lib/plugin/Form/Radios.js +4 -4
- package/lib/plugin/Form/Select.js +4 -4
- package/lib/plugin/Form/Static.js +3 -3
- package/lib/plugin/Form/Switch.js +55 -25
- package/lib/plugin/Form/TabsTransfer.js +3 -3
- package/lib/plugin/Form/Textarea.js +4 -4
- package/lib/plugin/Form/Transfer.js +38 -5
- package/lib/plugin/Form/TransferPicker.d.ts +26 -0
- package/lib/plugin/Form/TransferPicker.js +61 -0
- package/lib/plugin/Form/TreeSelect.js +3 -3
- package/lib/plugin/Form/UUID.js +3 -3
- package/lib/plugin/Grid.js +3 -3
- package/lib/plugin/HBox.js +3 -3
- package/lib/plugin/IFrame.js +3 -3
- package/lib/plugin/Icon.js +3 -3
- package/lib/plugin/Image.js +4 -3
- package/lib/plugin/Images.js +3 -3
- package/lib/plugin/Json.js +3 -3
- package/lib/plugin/Layout/FlexPluginBase.d.ts +4 -8
- package/lib/plugin/Layout/FlexPluginBase.js +156 -19
- package/lib/plugin/Layout/Layout_fixed.js +3 -3
- package/lib/plugin/Layout/Layout_free_container.js +3 -3
- package/lib/plugin/Layout/Layout_sorption_container.js +3 -3
- package/lib/plugin/Link.js +3 -3
- package/lib/plugin/List.js +3 -3
- package/lib/plugin/List2.js +8 -4
- package/lib/plugin/ListItem.js +3 -3
- package/lib/plugin/Log.js +3 -3
- package/lib/plugin/Mapping.js +3 -3
- package/lib/plugin/Markdown.js +3 -3
- package/lib/plugin/Nav.js +3 -3
- package/lib/plugin/OfficeViewer.js +3 -3
- package/lib/plugin/Operation.js +3 -3
- package/lib/plugin/Others/Action.js +18 -16
- package/lib/plugin/Others/TableCell.js +3 -3
- package/lib/plugin/Page.js +3 -3
- package/lib/plugin/Pagination.js +3 -3
- package/lib/plugin/Panel.js +3 -3
- package/lib/plugin/PdfViewer.d.ts +23 -0
- package/lib/plugin/PdfViewer.js +89 -0
- package/lib/plugin/Plain.js +3 -3
- package/lib/plugin/Progress.js +3 -3
- package/lib/plugin/Property.js +3 -3
- package/lib/plugin/QRCode.js +3 -3
- package/lib/plugin/Reset.js +3 -3
- package/lib/plugin/SearchBox.js +3 -3
- package/lib/plugin/Service.js +3 -3
- package/lib/plugin/Sparkline.js +3 -3
- package/lib/plugin/Status.js +3 -3
- package/lib/plugin/Steps.js +3 -3
- package/lib/plugin/Submit.js +3 -3
- package/lib/plugin/SwitchContainer.js +3 -3
- package/lib/plugin/Table.js +23 -3
- package/lib/plugin/Table2.js +3 -3
- package/lib/plugin/TableCell2.js +6 -4
- package/lib/plugin/TableView.js +3 -3
- package/lib/plugin/Tabs.d.ts +2 -0
- package/lib/plugin/Tabs.js +7 -6
- package/lib/plugin/Tag.js +3 -3
- package/lib/plugin/Tasks.js +3 -3
- package/lib/plugin/Time.js +3 -3
- package/lib/plugin/Timeline.js +3 -3
- package/lib/plugin/TooltipWrapper.js +3 -3
- package/lib/plugin/Tpl.js +3 -3
- package/lib/plugin/Video.js +3 -3
- package/lib/plugin/WebComponent.js +3 -3
- package/lib/plugin/Wizard.js +3 -3
- package/lib/plugin/Wrapper.js +3 -3
- package/lib/plugin/index.d.ts +3 -0
- package/lib/renderer/APIAdaptorControl.js +3 -3
- package/lib/renderer/APIControl.js +3 -3
- package/lib/renderer/BadgeControl.d.ts +2 -2
- package/lib/renderer/BadgeControl.js +3 -3
- package/lib/renderer/ButtonGroupControl.js +3 -3
- package/lib/renderer/DataBindingControl.js +3 -3
- package/lib/renderer/DataMappingControl.js +3 -3
- package/lib/renderer/DataPickerControl.js +3 -3
- package/lib/renderer/DateShortCutControl.js +3 -3
- package/lib/renderer/ExpressionFormulaControl.js +59 -33
- package/lib/renderer/FeatureControl.js +15 -13
- package/lib/renderer/FieldSetting.js +3 -3
- package/lib/renderer/FlexSettingControl.js +4 -4
- package/lib/renderer/FormulaControl.d.ts +6 -1
- package/lib/renderer/FormulaControl.js +69 -47
- package/lib/renderer/FunctionEditorControl.js +3 -3
- package/lib/renderer/GoConfigControl.js +3 -3
- package/lib/renderer/InputRangeValueControl.js +3 -3
- package/lib/renderer/KeyValueMapControl.js +3 -3
- package/lib/renderer/ListItemControl.js +3 -3
- package/lib/renderer/MapSourceControl.js +3 -3
- package/lib/renderer/NavBadgeControl.d.ts +2 -2
- package/lib/renderer/NavBadgeControl.js +3 -3
- package/lib/renderer/NavDefaultActive.js +3 -3
- package/lib/renderer/NavSourceControl.js +3 -3
- package/lib/renderer/OptionControl.js +3 -3
- package/lib/renderer/RangePartsControl.js +3 -3
- package/lib/renderer/StatusControl.js +4 -5
- package/lib/renderer/SwitchMoreControl.js +3 -3
- package/lib/renderer/TableColumnWidthControl.js +3 -3
- package/lib/renderer/TimelineItemControl.js +4 -4
- package/lib/renderer/TplFormulaControl.js +34 -25
- package/lib/renderer/TransferTableControl.js +4 -3
- package/lib/renderer/TreeOptionControl.js +3 -3
- package/lib/renderer/ValidationControl.js +5 -4
- package/lib/renderer/ValidationItem.js +3 -3
- package/lib/renderer/ValueFormatControl.js +3 -3
- package/lib/renderer/crud2-control/AddColumnModal.js +3 -3
- package/lib/renderer/crud2-control/CRUDColumnControl.js +3 -3
- package/lib/renderer/crud2-control/CRUDFiltersControl.js +3 -3
- package/lib/renderer/crud2-control/CRUDToolbarControl.js +3 -3
- package/lib/renderer/event-control/DialogActionPanel.d.ts +28 -0
- package/lib/renderer/event-control/DialogActionPanel.js +644 -0
- package/lib/renderer/event-control/action-config-dialog.d.ts +3 -0
- package/lib/renderer/event-control/action-config-dialog.js +11 -6
- package/lib/renderer/event-control/action-config-panel.js +3 -3
- package/lib/renderer/event-control/comp-action-select.js +3 -3
- package/lib/renderer/event-control/helper.js +104 -188
- package/lib/renderer/event-control/index.d.ts +7 -8
- package/lib/renderer/event-control/index.js +73 -112
- package/lib/renderer/style-control/Background.js +3 -3
- package/lib/renderer/style-control/Border.js +3 -3
- package/lib/renderer/style-control/BoxModel.js +3 -3
- package/lib/renderer/style-control/BoxShadow.js +3 -3
- package/lib/renderer/style-control/Display.js +3 -3
- package/lib/renderer/style-control/FlexLayout.d.ts +8 -0
- package/lib/renderer/style-control/FlexLayout.js +96 -0
- package/lib/renderer/style-control/Font.js +3 -3
- package/lib/renderer/style-control/InsetBoxModel.js +3 -3
- package/lib/renderer/style-control/ThemeCssCode.js +3 -3
- package/lib/renderer/style-control/font-family.js +3 -3
- package/lib/renderer/style-control/helper.js +5 -5
- package/lib/renderer/style-control/transformation.js +3 -3
- package/lib/renderer/textarea-formula/FormulaPicker.js +5 -6
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +5 -5
- package/lib/renderer/textarea-formula/plugin.js +3 -3
- package/lib/tpl/api.js +3 -3
- package/lib/tpl/common.js +45 -6
- package/lib/tpl/horizontal.js +3 -3
- package/lib/tpl/layout.js +34 -17
- package/lib/tpl/options.js +3 -3
- package/lib/tpl/remark.js +3 -3
- package/lib/tpl/style.js +13 -13
- package/lib/tpl/validations.js +3 -3
- package/lib/util.js +11 -4
- package/lib/validator.js +3 -3
- package/package.json +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -18,9 +18,9 @@ var cloneDeep = require('lodash/cloneDeep');
|
|
18
18
|
var amisCore = require('amis-core');
|
19
19
|
var actionConfigDialog = require('./action-config-dialog.js');
|
20
20
|
var helper = require('./helper.js');
|
21
|
-
var amisEditorCore = require('amis-editor-core');
|
22
21
|
var i18nRuntime = require('i18n-runtime');
|
23
22
|
var mobx = require('mobx');
|
23
|
+
var amisEditorCore = require('amis-editor-core');
|
24
24
|
|
25
25
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
26
26
|
|
@@ -29,16 +29,12 @@ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
29
29
|
var Sortable__default = /*#__PURE__*/_interopDefaultLegacy(Sortable);
|
30
30
|
var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
|
31
31
|
|
32
|
-
var dialogObjMap = {
|
33
|
-
dialog: 'dialog',
|
34
|
-
drawer: 'drawer',
|
35
|
-
confirmDialog: ['dialog', 'args']
|
36
|
-
};
|
37
32
|
var EventControl = /** @class */function (_super) {
|
38
33
|
tslib.__extends(EventControl, _super);
|
39
34
|
function EventControl(props) {
|
40
35
|
var _this = _super.call(this, props) || this;
|
41
36
|
_this.eventPanelSortMap = {};
|
37
|
+
_this.submitSubscribers = [];
|
42
38
|
var events = props.events,
|
43
39
|
value = props.value,
|
44
40
|
data = props.data,
|
@@ -75,6 +71,7 @@ var EventControl = /** @class */function (_super) {
|
|
75
71
|
EventControl.prototype.componentWillUnmount = function () {
|
76
72
|
var _a;
|
77
73
|
(_a = this.unReaction) === null || _a === void 0 ? void 0 : _a.call(this);
|
74
|
+
this.submitSubscribers = [];
|
78
75
|
};
|
79
76
|
EventControl.prototype.componentDidUpdate = function (prevProps, prevState) {
|
80
77
|
var _a, _b;
|
@@ -101,6 +98,17 @@ var EventControl = /** @class */function (_super) {
|
|
101
98
|
});
|
102
99
|
}
|
103
100
|
};
|
101
|
+
EventControl.prototype.subscribeSubmit = function (subscriber) {
|
102
|
+
var _this = this;
|
103
|
+
var fn = function (value) {
|
104
|
+
return (subscriber === null || subscriber === void 0 ? void 0 : subscriber(value)) || value;
|
105
|
+
};
|
106
|
+
this.submitSubscribers.push(fn);
|
107
|
+
return function () {
|
108
|
+
var idx = _this.submitSubscribers.indexOf(fn);
|
109
|
+
_this.submitSubscribers.splice(idx, 1);
|
110
|
+
};
|
111
|
+
};
|
104
112
|
EventControl.prototype.generateEmptyDefault = function (events) {
|
105
113
|
var onEvent = {};
|
106
114
|
events.forEach(function (event) {
|
@@ -581,32 +589,23 @@ var EventControl = /** @class */function (_super) {
|
|
581
589
|
});
|
582
590
|
});
|
583
591
|
};
|
584
|
-
// 获取现有弹窗列表
|
585
|
-
EventControl.prototype.getDialogList = function (manager, action, actionType) {
|
586
|
-
var _a;
|
587
|
-
if (action && actionType && dialogObjMap[actionType] && !((_a = action === null || action === void 0 ? void 0 : action.args) === null || _a === void 0 ? void 0 : _a.fromCurrentDialog)) {
|
588
|
-
var dialogBodyContent = dialogObjMap[actionType];
|
589
|
-
var filterId = Array.isArray(dialogBodyContent) ? action[dialogBodyContent[0]].id || action[dialogBodyContent[1]].id : action[dialogBodyContent].id;
|
590
|
-
return amisEditorCore.getDialogActions(manager.store.schema, 'source', filterId);
|
591
|
-
} else return amisEditorCore.getDialogActions(manager.store.schema, 'source');
|
592
|
-
};
|
593
592
|
// 唤起动作配置弹窗
|
594
593
|
EventControl.prototype.activeActionDialog = function (data) {
|
595
|
-
var _a
|
594
|
+
var _a;
|
596
595
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
597
|
-
var
|
598
|
-
return tslib.__generator(this, function (
|
599
|
-
switch (
|
596
|
+
var _b, pluginActions, getContextSchemas, actionConfigInitFormatter, getComponents, actionTree, allComponents, manager, variables, action_1, actionConfig, actionNode, hasSubActionNode, supportComponents, node, setValueDs, contextSchema, dataSchema, targetVariables, actionGroupType;
|
597
|
+
return tslib.__generator(this, function (_c) {
|
598
|
+
switch (_c.label) {
|
600
599
|
case 0:
|
601
|
-
|
600
|
+
_b = this.props, pluginActions = _b.actions, getContextSchemas = _b.getContextSchemas, actionConfigInitFormatter = _b.actionConfigInitFormatter, getComponents = _b.getComponents, actionTree = _b.actionTree, allComponents = _b.allComponents, manager = _b.manager, _b.node;
|
602
601
|
return [4 /*yield*/, this.buildContextSchema(data)];
|
603
602
|
case 1:
|
604
|
-
variables =
|
603
|
+
variables = _c.sent();
|
605
604
|
if (!(data.type === 'update')) return [3 /*break*/, 5];
|
606
605
|
action_1 = data.actionData.action;
|
607
606
|
return [4 /*yield*/, actionConfigInitFormatter === null || actionConfigInitFormatter === void 0 ? void 0 : actionConfigInitFormatter(action_1)];
|
608
607
|
case 2:
|
609
|
-
actionConfig =
|
608
|
+
actionConfig = _c.sent();
|
610
609
|
actionNode = helper.findActionNode(actionTree, actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig.actionType);
|
611
610
|
hasSubActionNode = helper.findSubActionNode(actionTree, action_1.actionType);
|
612
611
|
supportComponents = getComponents(actionNode);
|
@@ -617,13 +616,13 @@ var EventControl = /** @class */function (_super) {
|
|
617
616
|
if (!((actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig.actionType) === 'setValue' && (node === null || node === void 0 ? void 0 : node.id) && helper.SELECT_PROPS_CONTAINER.includes((node === null || node === void 0 ? void 0 : node.type) || ''))) return [3 /*break*/, 4];
|
618
617
|
return [4 /*yield*/, manager.getContextSchemas(node.id, true)];
|
619
618
|
case 3:
|
620
|
-
contextSchema =
|
619
|
+
contextSchema = _c.sent();
|
621
620
|
dataSchema = new amis.DataSchema(contextSchema || []);
|
622
621
|
targetVariables = (dataSchema === null || dataSchema === void 0 ? void 0 : dataSchema.getDataPropsAsOptions()) || [];
|
623
622
|
setValueDs = targetVariables === null || targetVariables === void 0 ? void 0 : targetVariables.filter(function (item) {
|
624
623
|
return item.value !== '$$id';
|
625
624
|
});
|
626
|
-
|
625
|
+
_c.label = 4;
|
627
626
|
case 4:
|
628
627
|
actionGroupType = (actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig.__actionType) || action_1.actionType;
|
629
628
|
data.actionData = tslib.__assign(tslib.__assign({
|
@@ -638,29 +637,11 @@ var EventControl = /** @class */function (_super) {
|
|
638
637
|
__actionSchema: actionNode.schema,
|
639
638
|
__subActions: hasSubActionNode === null || hasSubActionNode === void 0 ? void 0 : hasSubActionNode.actions,
|
640
639
|
__cmptTreeSource: supportComponents !== null && supportComponents !== void 0 ? supportComponents : [],
|
641
|
-
__dialogActions:
|
640
|
+
// __dialogActions: manager.store.modalOptions,
|
642
641
|
__superCmptTreeSource: allComponents,
|
643
642
|
// __supersCmptTreeSource: '',
|
644
643
|
__setValueDs: setValueDs
|
645
644
|
});
|
646
|
-
// 编辑时准备已选的弹窗来源和标题
|
647
|
-
if ((actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig.actionType) == 'openDialog') {
|
648
|
-
definitions = manager.store.schema.definitions;
|
649
|
-
dialogBody = dialogObjMap[actionGroupType];
|
650
|
-
dialogObj = Array.isArray(dialogBody) ? dialogBody[0] || dialogBody[1] : dialogBody;
|
651
|
-
dialogRef = (_b = actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig[dialogObj]) === null || _b === void 0 ? void 0 : _b.$ref;
|
652
|
-
if (dialogRef) {
|
653
|
-
data.actionData.__dialogTitle = definitions[dialogRef].title;
|
654
|
-
} else {
|
655
|
-
data.actionData.__dialogTitle = (_c = actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig[dialogObj]) === null || _c === void 0 ? void 0 : _c.title;
|
656
|
-
}
|
657
|
-
if ((_d = actionConfig.args) === null || _d === void 0 ? void 0 : _d.fromCurrentDialog) {
|
658
|
-
data.actionData.__dialogSource = 'current';
|
659
|
-
data.actionData.__selectDialog = definitions[dialogRef].$$id;
|
660
|
-
} else {
|
661
|
-
data.actionData.__dialogSource = 'new';
|
662
|
-
}
|
663
|
-
}
|
664
645
|
// 选中项自动滚动至可见位置
|
665
646
|
setTimeout(function () {
|
666
647
|
var _a;
|
@@ -674,9 +655,9 @@ var EventControl = /** @class */function (_super) {
|
|
674
655
|
pluginActions: pluginActions,
|
675
656
|
getContextSchemas: getContextSchemas,
|
676
657
|
__superCmptTreeSource: allComponents,
|
677
|
-
__dialogActions:
|
658
|
+
__dialogActions: manager.store.modalOptions
|
678
659
|
};
|
679
|
-
|
660
|
+
_c.label = 6;
|
680
661
|
case 6:
|
681
662
|
this.setState(data);
|
682
663
|
return [2 /*return*/];
|
@@ -685,7 +666,7 @@ var EventControl = /** @class */function (_super) {
|
|
685
666
|
});
|
686
667
|
};
|
687
668
|
// 渲染描述信息
|
688
|
-
EventControl.prototype.renderDesc = function (action) {
|
669
|
+
EventControl.prototype.renderDesc = function (action, actionIndex, eventKey) {
|
689
670
|
var _a = this.props,
|
690
671
|
pluginActions = _a.actions,
|
691
672
|
actionTree = _a.actionTree,
|
@@ -711,70 +692,27 @@ var EventControl = /** @class */function (_super) {
|
|
711
692
|
}
|
712
693
|
return typeof desc === 'function' ? React__default["default"].createElement("div", {
|
713
694
|
className: "action-control-content"
|
714
|
-
}, (desc === null || desc === void 0 ? void 0 : desc(info
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
var dialogMaxIndex = 0;
|
719
|
-
var dialogRefsName = '';
|
720
|
-
if (definitions) {
|
721
|
-
Object.keys(definitions).forEach(function (k) {
|
722
|
-
var dialog = definitions[k];
|
723
|
-
if (dialog.$$id === action.__selectDialog) {
|
724
|
-
dialogRefsName = k;
|
725
|
-
}
|
726
|
-
if (k.includes('ref-')) {
|
727
|
-
var index = Number(k.split('-')[2]);
|
728
|
-
dialogMaxIndex = Math.max(dialogMaxIndex, index);
|
729
|
-
}
|
730
|
-
});
|
731
|
-
}
|
732
|
-
var dialogType = amisEditorCore.getFixDialogType(store.schema, action.__selectDialog);
|
733
|
-
if (!dialogRefsName) {
|
734
|
-
dialogRefsName = dialogMaxIndex ? "".concat(dialogType, "-ref-").concat(dialogMaxIndex + 1) : "".concat(dialogType, "-ref-1");
|
735
|
-
}
|
736
|
-
return dialogRefsName;
|
695
|
+
}, (desc === null || desc === void 0 ? void 0 : desc(info, {
|
696
|
+
actionIndex: actionIndex,
|
697
|
+
eventKey: eventKey
|
698
|
+
}, this.props)) || '-') : null;
|
737
699
|
};
|
738
700
|
EventControl.prototype.onSubmit = function (type, config) {
|
739
|
-
var _a, _b, _c
|
740
|
-
var
|
741
|
-
actionConfigSubmitFormatter =
|
742
|
-
manager =
|
701
|
+
var _a, _b, _c;
|
702
|
+
var _d = this.props,
|
703
|
+
actionConfigSubmitFormatter = _d.actionConfigSubmitFormatter,
|
704
|
+
manager = _d.manager;
|
743
705
|
var actionData = this.state.actionData;
|
744
706
|
var store = manager.store;
|
745
707
|
var action = (_a = actionConfigSubmitFormatter === null || actionConfigSubmitFormatter === void 0 ? void 0 : actionConfigSubmitFormatter(config, type, actionData, store.schema)) !== null && _a !== void 0 ? _a : config;
|
708
|
+
action = this.submitSubscribers.reduce(function (action, fn) {
|
709
|
+
return fn(action) || action;
|
710
|
+
}, action);
|
746
711
|
delete action.__actionSchema;
|
747
712
|
if (type === 'add') {
|
748
|
-
|
749
|
-
var args = action.actionType === 'dialog' ? 'dialog' : action.actionType === 'drawer' ? 'drawer' : 'dialog';
|
750
|
-
if (!(config === null || config === void 0 ? void 0 : config.__dialogSource) || (config === null || config === void 0 ? void 0 : config.__dialogSource) === 'new') {
|
751
|
-
var actionLength = this.state.onEvent[config.eventKey].actions.length;
|
752
|
-
var path = "".concat(store.getSchemaPath(store.activeId), "/onEvent/").concat(config.eventKey, "/actions/").concat(actionLength, "/").concat(args);
|
753
|
-
store.setActiveDialogPath(path);
|
754
|
-
} else if ((config === null || config === void 0 ? void 0 : config.__dialogSource) === 'current') {
|
755
|
-
var dialogRefsName = this.getRefsFromCurrentDialog(store, action);
|
756
|
-
var path = "definitions/".concat(dialogRefsName);
|
757
|
-
store.setActiveDialogPath(path);
|
758
|
-
}
|
759
|
-
(_b = this.addAction) === null || _b === void 0 ? void 0 : _b.call(this, config.eventKey, action);
|
760
|
-
} else {
|
761
|
-
(_c = this.addAction) === null || _c === void 0 ? void 0 : _c.call(this, config.eventKey, action);
|
762
|
-
}
|
713
|
+
(_b = this.addAction) === null || _b === void 0 ? void 0 : _b.call(this, config.eventKey, action);
|
763
714
|
} else if (type === 'update') {
|
764
|
-
|
765
|
-
var args = action.actionType === 'dialog' ? 'dialog' : action.actionType === 'drawer' ? 'drawer' : 'dialog';
|
766
|
-
if (config.__dialogSource === 'new') {
|
767
|
-
var path = "".concat(store.getSchemaPath(store.activeId), "/onEvent/").concat(config.eventKey, "/actions/").concat(config.actionIndex, "/").concat(args);
|
768
|
-
store.setActiveDialogPath(path);
|
769
|
-
} else if (config.__dialogSource === 'current') {
|
770
|
-
var dialogRefsName = this.getRefsFromCurrentDialog(store, action);
|
771
|
-
var path = "definitions/".concat(dialogRefsName);
|
772
|
-
store.setActiveDialogPath(path);
|
773
|
-
}
|
774
|
-
(_d = this.updateAction) === null || _d === void 0 ? void 0 : _d.call(this, config.eventKey, config.actionIndex, action);
|
775
|
-
} else {
|
776
|
-
(_e = this.updateAction) === null || _e === void 0 ? void 0 : _e.call(this, config.eventKey, config.actionIndex, action);
|
777
|
-
}
|
715
|
+
(_c = this.updateAction) === null || _c === void 0 ? void 0 : _c.call(this, config.eventKey, config.actionIndex, action);
|
778
716
|
}
|
779
717
|
helper.updateCommonUseActions({
|
780
718
|
label: action.__title,
|
@@ -790,10 +728,17 @@ var EventControl = /** @class */function (_super) {
|
|
790
728
|
});
|
791
729
|
};
|
792
730
|
EventControl.prototype.onClose = function () {
|
731
|
+
var _a;
|
793
732
|
this.removeDataSchema();
|
794
733
|
this.setState({
|
795
734
|
showAcionDialog: false
|
796
735
|
});
|
736
|
+
(_a = this.unSubscribeSchemaSubmit) === null || _a === void 0 ? void 0 : _a.call(this);
|
737
|
+
delete this.unSubscribeSchemaSubmit;
|
738
|
+
};
|
739
|
+
EventControl.prototype.subscribeSchemaSubmit = function (fn, once) {
|
740
|
+
this.unSubscribeSchemaSubmit = this.props.subscribeSchemaSubmit(fn, once);
|
741
|
+
return this.unSubscribeSchemaSubmit;
|
797
742
|
};
|
798
743
|
EventControl.prototype.removeDataSchema = function () {
|
799
744
|
var manager = this.props.manager;
|
@@ -810,6 +755,16 @@ var EventControl = /** @class */function (_super) {
|
|
810
755
|
// }
|
811
756
|
// });
|
812
757
|
};
|
758
|
+
EventControl.prototype.renderActionType = function (action, actionIndex, eventKey) {
|
759
|
+
var _a = this.props,
|
760
|
+
actionTree = _a.actionTree,
|
761
|
+
pluginActions = _a.actions,
|
762
|
+
commonActions = _a.commonActions,
|
763
|
+
allComponents = _a.allComponents;
|
764
|
+
_a.node;
|
765
|
+
_a.manager;
|
766
|
+
return React__default["default"].createElement("span", null, helper.getPropOfAcion(action, 'actionLabel', actionTree, pluginActions, commonActions, allComponents) || action.actionType);
|
767
|
+
};
|
813
768
|
EventControl.prototype.render = function () {
|
814
769
|
var _this = this;
|
815
770
|
var _a, _b, _c;
|
@@ -817,9 +772,10 @@ var EventControl = /** @class */function (_super) {
|
|
817
772
|
actionTree = _d.actionTree,
|
818
773
|
pluginActions = _d.actions,
|
819
774
|
commonActions = _d.commonActions,
|
820
|
-
getComponents = _d.getComponents
|
821
|
-
|
822
|
-
render = _d.render;
|
775
|
+
getComponents = _d.getComponents;
|
776
|
+
_d.allComponents;
|
777
|
+
var render = _d.render;
|
778
|
+
_d.subscribeSchemaSubmit;
|
823
779
|
var _e = this.state,
|
824
780
|
onEvent = _e.onEvent,
|
825
781
|
itemEvents = _e.events,
|
@@ -976,7 +932,7 @@ var EventControl = /** @class */function (_super) {
|
|
976
932
|
className: "icon"
|
977
933
|
})), React__default["default"].createElement("div", {
|
978
934
|
className: "action-item-actiontype"
|
979
|
-
},
|
935
|
+
}, _this.renderActionType(action, actionIndex, eventKey))), React__default["default"].createElement("div", {
|
980
936
|
className: "action-control-header-right"
|
981
937
|
}, React__default["default"].createElement("div", {
|
982
938
|
onClick: _this.activeActionDialog.bind(_this, {
|
@@ -990,13 +946,13 @@ var EventControl = /** @class */function (_super) {
|
|
990
946
|
})
|
991
947
|
}, React__default["default"].createElement(amis.Icon, {
|
992
948
|
className: "icon",
|
993
|
-
icon: "
|
949
|
+
icon: "setting"
|
994
950
|
})), React__default["default"].createElement("div", {
|
995
951
|
onClick: _this.delAction.bind(_this, eventKey, action, actionIndex)
|
996
952
|
}, React__default["default"].createElement(amis.Icon, {
|
997
953
|
className: "icon",
|
998
954
|
icon: "delete-easy-btn"
|
999
|
-
})))), _this.renderDesc(action));
|
955
|
+
})))), _this.renderDesc(action, actionIndex, eventKey));
|
1000
956
|
})) : null);
|
1001
957
|
}) : React__default["default"].createElement("div", {
|
1002
958
|
className: "ae-event-control-placeholder"
|
@@ -1074,6 +1030,7 @@ var EventControl = /** @class */function (_super) {
|
|
1074
1030
|
data: eventDialogData,
|
1075
1031
|
show: showEventDialog
|
1076
1032
|
}), React__default["default"].createElement(actionConfigDialog["default"], {
|
1033
|
+
closeOnEsc: false,
|
1077
1034
|
show: showAcionDialog,
|
1078
1035
|
type: type,
|
1079
1036
|
actionTree: actionTree,
|
@@ -1083,12 +1040,16 @@ var EventControl = /** @class */function (_super) {
|
|
1083
1040
|
data: actionData,
|
1084
1041
|
onSubmit: this.onSubmit,
|
1085
1042
|
onClose: this.onClose,
|
1086
|
-
render: this.props.render
|
1043
|
+
render: this.props.render,
|
1044
|
+
subscribeSchemaSubmit: this.subscribeSchemaSubmit,
|
1045
|
+
subscribeActionSubmit: this.subscribeSubmit
|
1087
1046
|
}));
|
1088
1047
|
};
|
1048
|
+
tslib.__decorate([amisCore.autobind, tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", [Function]), tslib.__metadata("design:returntype", void 0)], EventControl.prototype, "subscribeSubmit", null);
|
1089
1049
|
tslib.__decorate([amisCore.autobind, tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", [Object]), tslib.__metadata("design:returntype", void 0)], EventControl.prototype, "dragRef", null);
|
1090
1050
|
tslib.__decorate([amisCore.autobind, tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", [String, Object]), tslib.__metadata("design:returntype", void 0)], EventControl.prototype, "onSubmit", null);
|
1091
1051
|
tslib.__decorate([amisCore.autobind, tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", void 0)], EventControl.prototype, "onClose", null);
|
1052
|
+
tslib.__decorate([amisCore.autobind, tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", [Function, Boolean]), tslib.__metadata("design:returntype", void 0)], EventControl.prototype, "subscribeSchemaSubmit", null);
|
1092
1053
|
return EventControl;
|
1093
1054
|
}(React__default["default"].Component);
|
1094
1055
|
/** @class */(function (_super) {
|
@@ -1126,4 +1087,4 @@ exports.renderCmptIdInput = helper.renderCmptIdInput;
|
|
1126
1087
|
exports.renderCmptSelect = helper.renderCmptSelect;
|
1127
1088
|
exports.updateCommonUseActions = helper.updateCommonUseActions;
|
1128
1089
|
exports.EventControl = EventControl;
|
1129
|
-
window.amisEditorVersionInfo={version:'6.
|
1090
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -492,4 +492,4 @@ var Background = function (props) {
|
|
492
492
|
})(React__default["default"].Component);
|
493
493
|
|
494
494
|
exports["default"] = Background;
|
495
|
-
window.amisEditorVersionInfo={version:'6.
|
495
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -224,4 +224,4 @@ mobxReact.observer(BoxBorder);
|
|
224
224
|
})], BorderRenderer);
|
225
225
|
return BorderRenderer;
|
226
226
|
})(React__default["default"].Component);
|
227
|
-
window.amisEditorVersionInfo={version:'6.
|
227
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -74,4 +74,4 @@ mobxReact.observer(BoxModel);
|
|
74
74
|
], BoxModelRenderer);
|
75
75
|
return BoxModelRenderer;
|
76
76
|
})(React__default["default"].Component));
|
77
|
-
window.amisEditorVersionInfo={version:'6.
|
77
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -122,4 +122,4 @@ function BoxShadow(_a) {
|
|
122
122
|
})(React__default["default"].Component);
|
123
123
|
|
124
124
|
exports["default"] = BoxShadow;
|
125
|
-
window.amisEditorVersionInfo={version:'6.
|
125
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -191,4 +191,4 @@ var Display = function (props) {
|
|
191
191
|
})], DisplayRenderer);
|
192
192
|
return DisplayRenderer;
|
193
193
|
})(React__default["default"].Component);
|
194
|
-
window.amisEditorVersionInfo={version:'6.
|
194
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -0,0 +1,96 @@
|
|
1
|
+
/**
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
|
+
* Copyright 2018-2024 @fex
|
5
|
+
*/
|
6
|
+
|
7
|
+
'use strict';
|
8
|
+
|
9
|
+
var tslib = require('tslib');
|
10
|
+
var React = require('react');
|
11
|
+
var amisUi = require('amis-ui');
|
12
|
+
var amisCore = require('amis-core');
|
13
|
+
var cx = require('classnames');
|
14
|
+
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
16
|
+
|
17
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
18
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
19
|
+
|
20
|
+
/**
|
21
|
+
* @file flex 快捷分栏布局设置
|
22
|
+
*/
|
23
|
+
function LayoutItem(_a) {
|
24
|
+
var value = _a.value, onSelect = _a.onSelect, active = _a.active, tip = _a.tip, flexDirection = _a.flexDirection;
|
25
|
+
var items = String(value).split(':');
|
26
|
+
return (React__default["default"].createElement(amisUi.TooltipWrapper, { key: "TooltipWrapper", tooltip: tip },
|
27
|
+
React__default["default"].createElement("div", { className: cx__default["default"]('ae-FlexLayout-item', {
|
28
|
+
active: active
|
29
|
+
}), style: {
|
30
|
+
flex: value,
|
31
|
+
flexDirection: flexDirection || 'row'
|
32
|
+
}, onClick: onSelect }, items.map(function (val) { return (React__default["default"].createElement("div", { className: "ae-FlexLayout-itemColumn", style: { flex: val } })); }))));
|
33
|
+
}
|
34
|
+
function FlexLayouts(_a) {
|
35
|
+
var onChange = _a.onChange, value = _a.value, flexDirection = _a.flexDirection;
|
36
|
+
var presetLayouts = [
|
37
|
+
'1',
|
38
|
+
'1:1',
|
39
|
+
'1:2',
|
40
|
+
'2:1',
|
41
|
+
'1:3',
|
42
|
+
'1:1:1',
|
43
|
+
'1:2:1',
|
44
|
+
'1:1:1:1'
|
45
|
+
];
|
46
|
+
var _b = tslib.__read(React.useState(''), 2), currentLayout = _b[0], setCurrentLayout = _b[1];
|
47
|
+
React.useEffect(function () {
|
48
|
+
if (value) {
|
49
|
+
// 转换成1:x格式
|
50
|
+
var items = String(value).split(':');
|
51
|
+
var min_1 = Math.min.apply(null, items);
|
52
|
+
if (items.every(function (item) { return +item % min_1 === 0; })) {
|
53
|
+
items = items.map(function (item) { return String(+item / min_1); });
|
54
|
+
var layout = items.join(':');
|
55
|
+
if (layout !== currentLayout) {
|
56
|
+
setCurrentLayout(items.join(':'));
|
57
|
+
}
|
58
|
+
}
|
59
|
+
else if (value !== currentLayout) {
|
60
|
+
setCurrentLayout(value);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}, []);
|
64
|
+
function onChangeLayout() {
|
65
|
+
if (/\d[\d:]+\d$/.test(currentLayout)) {
|
66
|
+
onChange(currentLayout);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
return (React__default["default"].createElement("div", { className: "ae-FlexLayout" },
|
70
|
+
React__default["default"].createElement("div", { className: "ae-FlexLayout-wrap" }, presetLayouts.map(function (item) { return (React__default["default"].createElement(LayoutItem, { key: item, value: item, tip: "\u6392\u5217".concat(item), flexDirection: flexDirection, onSelect: function () {
|
71
|
+
setCurrentLayout(item);
|
72
|
+
onChange(item);
|
73
|
+
}, active: item === currentLayout })); })),
|
74
|
+
React__default["default"].createElement("div", { className: "flex items-center" },
|
75
|
+
React__default["default"].createElement("span", { className: "mr-2 text-gray-500" }, "\u81EA\u5B9A\u4E49\u5206\u9694\u6BD4\u4F8B"),
|
76
|
+
React__default["default"].createElement(amisUi.InputBox, { className: "ae-FlexLayout-input", clearable: false, value: currentLayout, placeholder: "\u4F8B\u5982 1:3:2", onChange: function (val) { return setCurrentLayout(val); }, onBlur: function () { return currentLayout && onChangeLayout(); }, onKeyDown: function (e) {
|
77
|
+
if (e.key === 'Enter') {
|
78
|
+
e.preventDefault();
|
79
|
+
onChangeLayout();
|
80
|
+
}
|
81
|
+
} }))));
|
82
|
+
}
|
83
|
+
/** @class */ ((function (_super) {
|
84
|
+
tslib.__extends(FlexLayoutRenderer, _super);
|
85
|
+
function FlexLayoutRenderer() {
|
86
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
87
|
+
}
|
88
|
+
FlexLayoutRenderer.prototype.render = function () {
|
89
|
+
return React__default["default"].createElement(FlexLayouts, tslib.__assign({}, this.props));
|
90
|
+
};
|
91
|
+
FlexLayoutRenderer = tslib.__decorate([
|
92
|
+
amisCore.FormItem({ type: 'flex-layout' })
|
93
|
+
], FlexLayoutRenderer);
|
94
|
+
return FlexLayoutRenderer;
|
95
|
+
})(React__default["default"].Component));
|
96
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -189,4 +189,4 @@ var Font = function (props) {
|
|
189
189
|
})(React__default["default"].Component);
|
190
190
|
|
191
191
|
exports["default"] = Font;
|
192
|
-
window.amisEditorVersionInfo={version:'6.
|
192
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -71,4 +71,4 @@ mobxReact.observer(InsetBoxModel);
|
|
71
71
|
], BoxModelRenderer);
|
72
72
|
return BoxModelRenderer;
|
73
73
|
})(React__default["default"].Component));
|
74
|
-
window.amisEditorVersionInfo={version:'6.
|
74
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -205,4 +205,4 @@ function ThemeCssCode(props) {
|
|
205
205
|
})], ThemeCssCodeRenderer);
|
206
206
|
return ThemeCssCodeRenderer;
|
207
207
|
})(React__default["default"].Component);
|
208
|
-
window.amisEditorVersionInfo={version:'6.
|
208
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -147,4 +147,4 @@ fontFamilyList.reduce(function (memo, current) {
|
|
147
147
|
}, {});
|
148
148
|
|
149
149
|
exports.fontFamilyList = fontFamilyList;
|
150
|
-
window.amisEditorVersionInfo={version:'6.
|
150
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -18,7 +18,7 @@ var inputStateTpl = function (className, path) {
|
|
18
18
|
}
|
19
19
|
return tslib.__spreadArray(tslib.__spreadArray(tslib.__spreadArray([{
|
20
20
|
type: 'select',
|
21
|
-
name: '
|
21
|
+
name: '__editorState',
|
22
22
|
label: i18nRuntime.i18n("3fea7ca76cdece641436d7ab0d02ab1b"),
|
23
23
|
selectFirst: true,
|
24
24
|
options: [{
|
@@ -31,7 +31,7 @@ var inputStateTpl = function (className, path) {
|
|
31
31
|
label: i18nRuntime.i18n("4363c17ebb346b646af55bd8c8075915"),
|
32
32
|
value: 'active'
|
33
33
|
}]
|
34
|
-
}], tslib.__read(inputStateFunc("${
|
34
|
+
}], tslib.__read(inputStateFunc("${__editorState == 'default' || !__editorState}", 'default', className, path)), false), tslib.__read(inputStateFunc("${__editorState == 'hover'}", 'hover', className, path)), false), tslib.__read(inputStateFunc("${__editorState == 'active'}", 'active', className, path)), false);
|
35
35
|
};
|
36
36
|
var inputStateFunc = function (visibleOn, state, className, path, options) {
|
37
37
|
if (options === void 0) {
|
@@ -67,4 +67,4 @@ var inputStateFunc = function (visibleOn, state, className, path, options) {
|
|
67
67
|
|
68
68
|
exports.inputStateFunc = inputStateFunc;
|
69
69
|
exports.inputStateTpl = inputStateTpl;
|
70
|
-
window.amisEditorVersionInfo={version:'6.
|
70
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v6.
|
3
|
-
* build time: 2024-
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
4
|
* Copyright 2018-2024 @fex
|
5
5
|
*/
|
6
6
|
|
@@ -84,4 +84,4 @@ function normalizeBoxShadow(config) {
|
|
84
84
|
|
85
85
|
exports.normalizeBoxShadow = normalizeBoxShadow;
|
86
86
|
exports.parseBoxShadow = parseBoxShadow;
|
87
|
-
window.amisEditorVersionInfo={version:'6.
|
87
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|