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
|
|
@@ -15,20 +15,16 @@ import { findTree, getRendererByName, autobind } from 'amis-core';
|
|
15
15
|
import ActionDialog from './action-config-dialog.js';
|
16
16
|
import { getPropOfAcion, findActionNode, findSubActionNode, SELECT_PROPS_CONTAINER, getActionType, updateCommonUseActions, getEventStrongDesc, getEventDesc, getEventLabel } from './helper.js';
|
17
17
|
export { ACTION_TYPE_TREE, COMMON_ACTION_SCHEMA_MAP, DATA_CONTAINER, FORMITEM_CMPTS, SELECT_PROPS_CONTAINER, SHOW_SELECT_PROP, SUPPORT_DISABLED_CMPTS, SUPPORT_STATIC_FORMITEM_CMPTS, findActionNode, findSubActionNode, getActionType, getArgsWrapper, getEventControlConfig, getEventDesc, getEventLabel, getEventStrongDesc, getOldActionSchema, getPropOfAcion, hasActionType, renderCmptActionSelect, renderCmptIdInput, renderCmptSelect, updateCommonUseActions } from './helper.js';
|
18
|
-
import { updateComponentContext, getDialogActions, getFixDialogType } from 'amis-editor-core';
|
19
18
|
import { i18n } from 'i18n-runtime';
|
20
19
|
import { reaction } from 'mobx';
|
20
|
+
import { updateComponentContext } from 'amis-editor-core';
|
21
21
|
|
22
|
-
var dialogObjMap = {
|
23
|
-
dialog: 'dialog',
|
24
|
-
drawer: 'drawer',
|
25
|
-
confirmDialog: ['dialog', 'args']
|
26
|
-
};
|
27
22
|
var EventControl = /** @class */function (_super) {
|
28
23
|
__extends(EventControl, _super);
|
29
24
|
function EventControl(props) {
|
30
25
|
var _this = _super.call(this, props) || this;
|
31
26
|
_this.eventPanelSortMap = {};
|
27
|
+
_this.submitSubscribers = [];
|
32
28
|
var events = props.events,
|
33
29
|
value = props.value,
|
34
30
|
data = props.data,
|
@@ -65,6 +61,7 @@ var EventControl = /** @class */function (_super) {
|
|
65
61
|
EventControl.prototype.componentWillUnmount = function () {
|
66
62
|
var _a;
|
67
63
|
(_a = this.unReaction) === null || _a === void 0 ? void 0 : _a.call(this);
|
64
|
+
this.submitSubscribers = [];
|
68
65
|
};
|
69
66
|
EventControl.prototype.componentDidUpdate = function (prevProps, prevState) {
|
70
67
|
var _a, _b;
|
@@ -91,6 +88,17 @@ var EventControl = /** @class */function (_super) {
|
|
91
88
|
});
|
92
89
|
}
|
93
90
|
};
|
91
|
+
EventControl.prototype.subscribeSubmit = function (subscriber) {
|
92
|
+
var _this = this;
|
93
|
+
var fn = function (value) {
|
94
|
+
return (subscriber === null || subscriber === void 0 ? void 0 : subscriber(value)) || value;
|
95
|
+
};
|
96
|
+
this.submitSubscribers.push(fn);
|
97
|
+
return function () {
|
98
|
+
var idx = _this.submitSubscribers.indexOf(fn);
|
99
|
+
_this.submitSubscribers.splice(idx, 1);
|
100
|
+
};
|
101
|
+
};
|
94
102
|
EventControl.prototype.generateEmptyDefault = function (events) {
|
95
103
|
var onEvent = {};
|
96
104
|
events.forEach(function (event) {
|
@@ -571,32 +579,23 @@ var EventControl = /** @class */function (_super) {
|
|
571
579
|
});
|
572
580
|
});
|
573
581
|
};
|
574
|
-
// 获取现有弹窗列表
|
575
|
-
EventControl.prototype.getDialogList = function (manager, action, actionType) {
|
576
|
-
var _a;
|
577
|
-
if (action && actionType && dialogObjMap[actionType] && !((_a = action === null || action === void 0 ? void 0 : action.args) === null || _a === void 0 ? void 0 : _a.fromCurrentDialog)) {
|
578
|
-
var dialogBodyContent = dialogObjMap[actionType];
|
579
|
-
var filterId = Array.isArray(dialogBodyContent) ? action[dialogBodyContent[0]].id || action[dialogBodyContent[1]].id : action[dialogBodyContent].id;
|
580
|
-
return getDialogActions(manager.store.schema, 'source', filterId);
|
581
|
-
} else return getDialogActions(manager.store.schema, 'source');
|
582
|
-
};
|
583
582
|
// 唤起动作配置弹窗
|
584
583
|
EventControl.prototype.activeActionDialog = function (data) {
|
585
|
-
var _a
|
584
|
+
var _a;
|
586
585
|
return __awaiter(this, void 0, void 0, function () {
|
587
|
-
var
|
588
|
-
return __generator(this, function (
|
589
|
-
switch (
|
586
|
+
var _b, pluginActions, getContextSchemas, actionConfigInitFormatter, getComponents, actionTree, allComponents, manager, variables, action_1, actionConfig, actionNode, hasSubActionNode, supportComponents, node, setValueDs, contextSchema, dataSchema, targetVariables, actionGroupType;
|
587
|
+
return __generator(this, function (_c) {
|
588
|
+
switch (_c.label) {
|
590
589
|
case 0:
|
591
|
-
|
590
|
+
_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;
|
592
591
|
return [4 /*yield*/, this.buildContextSchema(data)];
|
593
592
|
case 1:
|
594
|
-
variables =
|
593
|
+
variables = _c.sent();
|
595
594
|
if (!(data.type === 'update')) return [3 /*break*/, 5];
|
596
595
|
action_1 = data.actionData.action;
|
597
596
|
return [4 /*yield*/, actionConfigInitFormatter === null || actionConfigInitFormatter === void 0 ? void 0 : actionConfigInitFormatter(action_1)];
|
598
597
|
case 2:
|
599
|
-
actionConfig =
|
598
|
+
actionConfig = _c.sent();
|
600
599
|
actionNode = findActionNode(actionTree, actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig.actionType);
|
601
600
|
hasSubActionNode = findSubActionNode(actionTree, action_1.actionType);
|
602
601
|
supportComponents = getComponents(actionNode);
|
@@ -607,13 +606,13 @@ var EventControl = /** @class */function (_super) {
|
|
607
606
|
if (!((actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig.actionType) === 'setValue' && (node === null || node === void 0 ? void 0 : node.id) && SELECT_PROPS_CONTAINER.includes((node === null || node === void 0 ? void 0 : node.type) || ''))) return [3 /*break*/, 4];
|
608
607
|
return [4 /*yield*/, manager.getContextSchemas(node.id, true)];
|
609
608
|
case 3:
|
610
|
-
contextSchema =
|
609
|
+
contextSchema = _c.sent();
|
611
610
|
dataSchema = new DataSchema(contextSchema || []);
|
612
611
|
targetVariables = (dataSchema === null || dataSchema === void 0 ? void 0 : dataSchema.getDataPropsAsOptions()) || [];
|
613
612
|
setValueDs = targetVariables === null || targetVariables === void 0 ? void 0 : targetVariables.filter(function (item) {
|
614
613
|
return item.value !== '$$id';
|
615
614
|
});
|
616
|
-
|
615
|
+
_c.label = 4;
|
617
616
|
case 4:
|
618
617
|
actionGroupType = (actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig.__actionType) || action_1.actionType;
|
619
618
|
data.actionData = __assign(__assign({
|
@@ -628,29 +627,11 @@ var EventControl = /** @class */function (_super) {
|
|
628
627
|
__actionSchema: actionNode.schema,
|
629
628
|
__subActions: hasSubActionNode === null || hasSubActionNode === void 0 ? void 0 : hasSubActionNode.actions,
|
630
629
|
__cmptTreeSource: supportComponents !== null && supportComponents !== void 0 ? supportComponents : [],
|
631
|
-
__dialogActions:
|
630
|
+
// __dialogActions: manager.store.modalOptions,
|
632
631
|
__superCmptTreeSource: allComponents,
|
633
632
|
// __supersCmptTreeSource: '',
|
634
633
|
__setValueDs: setValueDs
|
635
634
|
});
|
636
|
-
// 编辑时准备已选的弹窗来源和标题
|
637
|
-
if ((actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig.actionType) == 'openDialog') {
|
638
|
-
definitions = manager.store.schema.definitions;
|
639
|
-
dialogBody = dialogObjMap[actionGroupType];
|
640
|
-
dialogObj = Array.isArray(dialogBody) ? dialogBody[0] || dialogBody[1] : dialogBody;
|
641
|
-
dialogRef = (_b = actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig[dialogObj]) === null || _b === void 0 ? void 0 : _b.$ref;
|
642
|
-
if (dialogRef) {
|
643
|
-
data.actionData.__dialogTitle = definitions[dialogRef].title;
|
644
|
-
} else {
|
645
|
-
data.actionData.__dialogTitle = (_c = actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig[dialogObj]) === null || _c === void 0 ? void 0 : _c.title;
|
646
|
-
}
|
647
|
-
if ((_d = actionConfig.args) === null || _d === void 0 ? void 0 : _d.fromCurrentDialog) {
|
648
|
-
data.actionData.__dialogSource = 'current';
|
649
|
-
data.actionData.__selectDialog = definitions[dialogRef].$$id;
|
650
|
-
} else {
|
651
|
-
data.actionData.__dialogSource = 'new';
|
652
|
-
}
|
653
|
-
}
|
654
635
|
// 选中项自动滚动至可见位置
|
655
636
|
setTimeout(function () {
|
656
637
|
var _a;
|
@@ -664,9 +645,9 @@ var EventControl = /** @class */function (_super) {
|
|
664
645
|
pluginActions: pluginActions,
|
665
646
|
getContextSchemas: getContextSchemas,
|
666
647
|
__superCmptTreeSource: allComponents,
|
667
|
-
__dialogActions:
|
648
|
+
__dialogActions: manager.store.modalOptions
|
668
649
|
};
|
669
|
-
|
650
|
+
_c.label = 6;
|
670
651
|
case 6:
|
671
652
|
this.setState(data);
|
672
653
|
return [2 /*return*/];
|
@@ -675,7 +656,7 @@ var EventControl = /** @class */function (_super) {
|
|
675
656
|
});
|
676
657
|
};
|
677
658
|
// 渲染描述信息
|
678
|
-
EventControl.prototype.renderDesc = function (action) {
|
659
|
+
EventControl.prototype.renderDesc = function (action, actionIndex, eventKey) {
|
679
660
|
var _a = this.props,
|
680
661
|
pluginActions = _a.actions,
|
681
662
|
actionTree = _a.actionTree,
|
@@ -701,70 +682,27 @@ var EventControl = /** @class */function (_super) {
|
|
701
682
|
}
|
702
683
|
return typeof desc === 'function' ? React__default.createElement("div", {
|
703
684
|
className: "action-control-content"
|
704
|
-
}, (desc === null || desc === void 0 ? void 0 : desc(info
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
var dialogMaxIndex = 0;
|
709
|
-
var dialogRefsName = '';
|
710
|
-
if (definitions) {
|
711
|
-
Object.keys(definitions).forEach(function (k) {
|
712
|
-
var dialog = definitions[k];
|
713
|
-
if (dialog.$$id === action.__selectDialog) {
|
714
|
-
dialogRefsName = k;
|
715
|
-
}
|
716
|
-
if (k.includes('ref-')) {
|
717
|
-
var index = Number(k.split('-')[2]);
|
718
|
-
dialogMaxIndex = Math.max(dialogMaxIndex, index);
|
719
|
-
}
|
720
|
-
});
|
721
|
-
}
|
722
|
-
var dialogType = getFixDialogType(store.schema, action.__selectDialog);
|
723
|
-
if (!dialogRefsName) {
|
724
|
-
dialogRefsName = dialogMaxIndex ? "".concat(dialogType, "-ref-").concat(dialogMaxIndex + 1) : "".concat(dialogType, "-ref-1");
|
725
|
-
}
|
726
|
-
return dialogRefsName;
|
685
|
+
}, (desc === null || desc === void 0 ? void 0 : desc(info, {
|
686
|
+
actionIndex: actionIndex,
|
687
|
+
eventKey: eventKey
|
688
|
+
}, this.props)) || '-') : null;
|
727
689
|
};
|
728
690
|
EventControl.prototype.onSubmit = function (type, config) {
|
729
|
-
var _a, _b, _c
|
730
|
-
var
|
731
|
-
actionConfigSubmitFormatter =
|
732
|
-
manager =
|
691
|
+
var _a, _b, _c;
|
692
|
+
var _d = this.props,
|
693
|
+
actionConfigSubmitFormatter = _d.actionConfigSubmitFormatter,
|
694
|
+
manager = _d.manager;
|
733
695
|
var actionData = this.state.actionData;
|
734
696
|
var store = manager.store;
|
735
697
|
var action = (_a = actionConfigSubmitFormatter === null || actionConfigSubmitFormatter === void 0 ? void 0 : actionConfigSubmitFormatter(config, type, actionData, store.schema)) !== null && _a !== void 0 ? _a : config;
|
698
|
+
action = this.submitSubscribers.reduce(function (action, fn) {
|
699
|
+
return fn(action) || action;
|
700
|
+
}, action);
|
736
701
|
delete action.__actionSchema;
|
737
702
|
if (type === 'add') {
|
738
|
-
|
739
|
-
var args = action.actionType === 'dialog' ? 'dialog' : action.actionType === 'drawer' ? 'drawer' : 'dialog';
|
740
|
-
if (!(config === null || config === void 0 ? void 0 : config.__dialogSource) || (config === null || config === void 0 ? void 0 : config.__dialogSource) === 'new') {
|
741
|
-
var actionLength = this.state.onEvent[config.eventKey].actions.length;
|
742
|
-
var path = "".concat(store.getSchemaPath(store.activeId), "/onEvent/").concat(config.eventKey, "/actions/").concat(actionLength, "/").concat(args);
|
743
|
-
store.setActiveDialogPath(path);
|
744
|
-
} else if ((config === null || config === void 0 ? void 0 : config.__dialogSource) === 'current') {
|
745
|
-
var dialogRefsName = this.getRefsFromCurrentDialog(store, action);
|
746
|
-
var path = "definitions/".concat(dialogRefsName);
|
747
|
-
store.setActiveDialogPath(path);
|
748
|
-
}
|
749
|
-
(_b = this.addAction) === null || _b === void 0 ? void 0 : _b.call(this, config.eventKey, action);
|
750
|
-
} else {
|
751
|
-
(_c = this.addAction) === null || _c === void 0 ? void 0 : _c.call(this, config.eventKey, action);
|
752
|
-
}
|
703
|
+
(_b = this.addAction) === null || _b === void 0 ? void 0 : _b.call(this, config.eventKey, action);
|
753
704
|
} else if (type === 'update') {
|
754
|
-
|
755
|
-
var args = action.actionType === 'dialog' ? 'dialog' : action.actionType === 'drawer' ? 'drawer' : 'dialog';
|
756
|
-
if (config.__dialogSource === 'new') {
|
757
|
-
var path = "".concat(store.getSchemaPath(store.activeId), "/onEvent/").concat(config.eventKey, "/actions/").concat(config.actionIndex, "/").concat(args);
|
758
|
-
store.setActiveDialogPath(path);
|
759
|
-
} else if (config.__dialogSource === 'current') {
|
760
|
-
var dialogRefsName = this.getRefsFromCurrentDialog(store, action);
|
761
|
-
var path = "definitions/".concat(dialogRefsName);
|
762
|
-
store.setActiveDialogPath(path);
|
763
|
-
}
|
764
|
-
(_d = this.updateAction) === null || _d === void 0 ? void 0 : _d.call(this, config.eventKey, config.actionIndex, action);
|
765
|
-
} else {
|
766
|
-
(_e = this.updateAction) === null || _e === void 0 ? void 0 : _e.call(this, config.eventKey, config.actionIndex, action);
|
767
|
-
}
|
705
|
+
(_c = this.updateAction) === null || _c === void 0 ? void 0 : _c.call(this, config.eventKey, config.actionIndex, action);
|
768
706
|
}
|
769
707
|
updateCommonUseActions({
|
770
708
|
label: action.__title,
|
@@ -780,10 +718,17 @@ var EventControl = /** @class */function (_super) {
|
|
780
718
|
});
|
781
719
|
};
|
782
720
|
EventControl.prototype.onClose = function () {
|
721
|
+
var _a;
|
783
722
|
this.removeDataSchema();
|
784
723
|
this.setState({
|
785
724
|
showAcionDialog: false
|
786
725
|
});
|
726
|
+
(_a = this.unSubscribeSchemaSubmit) === null || _a === void 0 ? void 0 : _a.call(this);
|
727
|
+
delete this.unSubscribeSchemaSubmit;
|
728
|
+
};
|
729
|
+
EventControl.prototype.subscribeSchemaSubmit = function (fn, once) {
|
730
|
+
this.unSubscribeSchemaSubmit = this.props.subscribeSchemaSubmit(fn, once);
|
731
|
+
return this.unSubscribeSchemaSubmit;
|
787
732
|
};
|
788
733
|
EventControl.prototype.removeDataSchema = function () {
|
789
734
|
var manager = this.props.manager;
|
@@ -800,6 +745,16 @@ var EventControl = /** @class */function (_super) {
|
|
800
745
|
// }
|
801
746
|
// });
|
802
747
|
};
|
748
|
+
EventControl.prototype.renderActionType = function (action, actionIndex, eventKey) {
|
749
|
+
var _a = this.props,
|
750
|
+
actionTree = _a.actionTree,
|
751
|
+
pluginActions = _a.actions,
|
752
|
+
commonActions = _a.commonActions,
|
753
|
+
allComponents = _a.allComponents;
|
754
|
+
_a.node;
|
755
|
+
_a.manager;
|
756
|
+
return React__default.createElement("span", null, getPropOfAcion(action, 'actionLabel', actionTree, pluginActions, commonActions, allComponents) || action.actionType);
|
757
|
+
};
|
803
758
|
EventControl.prototype.render = function () {
|
804
759
|
var _this = this;
|
805
760
|
var _a, _b, _c;
|
@@ -807,9 +762,10 @@ var EventControl = /** @class */function (_super) {
|
|
807
762
|
actionTree = _d.actionTree,
|
808
763
|
pluginActions = _d.actions,
|
809
764
|
commonActions = _d.commonActions,
|
810
|
-
getComponents = _d.getComponents
|
811
|
-
|
812
|
-
render$1 = _d.render;
|
765
|
+
getComponents = _d.getComponents;
|
766
|
+
_d.allComponents;
|
767
|
+
var render$1 = _d.render;
|
768
|
+
_d.subscribeSchemaSubmit;
|
813
769
|
var _e = this.state,
|
814
770
|
onEvent = _e.onEvent,
|
815
771
|
itemEvents = _e.events,
|
@@ -966,7 +922,7 @@ var EventControl = /** @class */function (_super) {
|
|
966
922
|
className: "icon"
|
967
923
|
})), React__default.createElement("div", {
|
968
924
|
className: "action-item-actiontype"
|
969
|
-
},
|
925
|
+
}, _this.renderActionType(action, actionIndex, eventKey))), React__default.createElement("div", {
|
970
926
|
className: "action-control-header-right"
|
971
927
|
}, React__default.createElement("div", {
|
972
928
|
onClick: _this.activeActionDialog.bind(_this, {
|
@@ -980,13 +936,13 @@ var EventControl = /** @class */function (_super) {
|
|
980
936
|
})
|
981
937
|
}, React__default.createElement(Icon, {
|
982
938
|
className: "icon",
|
983
|
-
icon: "
|
939
|
+
icon: "setting"
|
984
940
|
})), React__default.createElement("div", {
|
985
941
|
onClick: _this.delAction.bind(_this, eventKey, action, actionIndex)
|
986
942
|
}, React__default.createElement(Icon, {
|
987
943
|
className: "icon",
|
988
944
|
icon: "delete-easy-btn"
|
989
|
-
})))), _this.renderDesc(action));
|
945
|
+
})))), _this.renderDesc(action, actionIndex, eventKey));
|
990
946
|
})) : null);
|
991
947
|
}) : React__default.createElement("div", {
|
992
948
|
className: "ae-event-control-placeholder"
|
@@ -1064,6 +1020,7 @@ var EventControl = /** @class */function (_super) {
|
|
1064
1020
|
data: eventDialogData,
|
1065
1021
|
show: showEventDialog
|
1066
1022
|
}), React__default.createElement(ActionDialog, {
|
1023
|
+
closeOnEsc: false,
|
1067
1024
|
show: showAcionDialog,
|
1068
1025
|
type: type,
|
1069
1026
|
actionTree: actionTree,
|
@@ -1073,12 +1030,16 @@ var EventControl = /** @class */function (_super) {
|
|
1073
1030
|
data: actionData,
|
1074
1031
|
onSubmit: this.onSubmit,
|
1075
1032
|
onClose: this.onClose,
|
1076
|
-
render: this.props.render
|
1033
|
+
render: this.props.render,
|
1034
|
+
subscribeSchemaSubmit: this.subscribeSchemaSubmit,
|
1035
|
+
subscribeActionSubmit: this.subscribeSubmit
|
1077
1036
|
}));
|
1078
1037
|
};
|
1038
|
+
__decorate([autobind, __metadata("design:type", Function), __metadata("design:paramtypes", [Function]), __metadata("design:returntype", void 0)], EventControl.prototype, "subscribeSubmit", null);
|
1079
1039
|
__decorate([autobind, __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], EventControl.prototype, "dragRef", null);
|
1080
1040
|
__decorate([autobind, __metadata("design:type", Function), __metadata("design:paramtypes", [String, Object]), __metadata("design:returntype", void 0)], EventControl.prototype, "onSubmit", null);
|
1081
1041
|
__decorate([autobind, __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0)], EventControl.prototype, "onClose", null);
|
1042
|
+
__decorate([autobind, __metadata("design:type", Function), __metadata("design:paramtypes", [Function, Boolean]), __metadata("design:returntype", void 0)], EventControl.prototype, "subscribeSchemaSubmit", null);
|
1082
1043
|
return EventControl;
|
1083
1044
|
}(React__default.Component);
|
1084
1045
|
/** @class */(function (_super) {
|
@@ -1093,4 +1054,4 @@ var EventControl = /** @class */function (_super) {
|
|
1093
1054
|
})(EventControl);
|
1094
1055
|
|
1095
1056
|
export { EventControl };
|
1096
|
-
window.amisEditorVersionInfo={version:'6.
|
1057
|
+
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
|
|
@@ -481,4 +481,4 @@ var Background = function (props) {
|
|
481
481
|
})(React__default.Component);
|
482
482
|
|
483
483
|
export { Background as default };
|
484
|
-
window.amisEditorVersionInfo={version:'6.
|
484
|
+
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
|
|
@@ -216,4 +216,4 @@ observer(BoxBorder);
|
|
216
216
|
})], BorderRenderer);
|
217
217
|
return BorderRenderer;
|
218
218
|
})(React__default.Component);
|
219
|
-
window.amisEditorVersionInfo={version:'6.
|
219
|
+
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
|
|
@@ -66,4 +66,4 @@ observer(BoxModel);
|
|
66
66
|
], BoxModelRenderer);
|
67
67
|
return BoxModelRenderer;
|
68
68
|
})(React__default.Component));
|
69
|
-
window.amisEditorVersionInfo={version:'6.
|
69
|
+
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
|
|
@@ -113,4 +113,4 @@ function BoxShadow(_a) {
|
|
113
113
|
})(React__default.Component);
|
114
114
|
|
115
115
|
export { BoxShadow as default };
|
116
|
-
window.amisEditorVersionInfo={version:'6.
|
116
|
+
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
|
|
@@ -183,4 +183,4 @@ var Display = function (props) {
|
|
183
183
|
})], DisplayRenderer);
|
184
184
|
return DisplayRenderer;
|
185
185
|
})(React__default.Component);
|
186
|
-
window.amisEditorVersionInfo={version:'6.
|
186
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/**
|
2
|
+
* amis-editor v6.4.0
|
3
|
+
* build time: 2024-05-06
|
4
|
+
* Copyright 2018-2024 @fex
|
5
|
+
*/
|
6
|
+
|
7
|
+
import { __extends, __assign, __decorate, __read } from 'tslib';
|
8
|
+
import React__default, { useState, useEffect } from 'react';
|
9
|
+
import { InputBox, TooltipWrapper } from 'amis-ui';
|
10
|
+
import { FormItem } from 'amis-core';
|
11
|
+
import cx from 'classnames';
|
12
|
+
|
13
|
+
/**
|
14
|
+
* @file flex 快捷分栏布局设置
|
15
|
+
*/
|
16
|
+
function LayoutItem(_a) {
|
17
|
+
var value = _a.value, onSelect = _a.onSelect, active = _a.active, tip = _a.tip, flexDirection = _a.flexDirection;
|
18
|
+
var items = String(value).split(':');
|
19
|
+
return (React__default.createElement(TooltipWrapper, { key: "TooltipWrapper", tooltip: tip },
|
20
|
+
React__default.createElement("div", { className: cx('ae-FlexLayout-item', {
|
21
|
+
active: active
|
22
|
+
}), style: {
|
23
|
+
flex: value,
|
24
|
+
flexDirection: flexDirection || 'row'
|
25
|
+
}, onClick: onSelect }, items.map(function (val) { return (React__default.createElement("div", { className: "ae-FlexLayout-itemColumn", style: { flex: val } })); }))));
|
26
|
+
}
|
27
|
+
function FlexLayouts(_a) {
|
28
|
+
var onChange = _a.onChange, value = _a.value, flexDirection = _a.flexDirection;
|
29
|
+
var presetLayouts = [
|
30
|
+
'1',
|
31
|
+
'1:1',
|
32
|
+
'1:2',
|
33
|
+
'2:1',
|
34
|
+
'1:3',
|
35
|
+
'1:1:1',
|
36
|
+
'1:2:1',
|
37
|
+
'1:1:1:1'
|
38
|
+
];
|
39
|
+
var _b = __read(useState(''), 2), currentLayout = _b[0], setCurrentLayout = _b[1];
|
40
|
+
useEffect(function () {
|
41
|
+
if (value) {
|
42
|
+
// 转换成1:x格式
|
43
|
+
var items = String(value).split(':');
|
44
|
+
var min_1 = Math.min.apply(null, items);
|
45
|
+
if (items.every(function (item) { return +item % min_1 === 0; })) {
|
46
|
+
items = items.map(function (item) { return String(+item / min_1); });
|
47
|
+
var layout = items.join(':');
|
48
|
+
if (layout !== currentLayout) {
|
49
|
+
setCurrentLayout(items.join(':'));
|
50
|
+
}
|
51
|
+
}
|
52
|
+
else if (value !== currentLayout) {
|
53
|
+
setCurrentLayout(value);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}, []);
|
57
|
+
function onChangeLayout() {
|
58
|
+
if (/\d[\d:]+\d$/.test(currentLayout)) {
|
59
|
+
onChange(currentLayout);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
return (React__default.createElement("div", { className: "ae-FlexLayout" },
|
63
|
+
React__default.createElement("div", { className: "ae-FlexLayout-wrap" }, presetLayouts.map(function (item) { return (React__default.createElement(LayoutItem, { key: item, value: item, tip: "\u6392\u5217".concat(item), flexDirection: flexDirection, onSelect: function () {
|
64
|
+
setCurrentLayout(item);
|
65
|
+
onChange(item);
|
66
|
+
}, active: item === currentLayout })); })),
|
67
|
+
React__default.createElement("div", { className: "flex items-center" },
|
68
|
+
React__default.createElement("span", { className: "mr-2 text-gray-500" }, "\u81EA\u5B9A\u4E49\u5206\u9694\u6BD4\u4F8B"),
|
69
|
+
React__default.createElement(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) {
|
70
|
+
if (e.key === 'Enter') {
|
71
|
+
e.preventDefault();
|
72
|
+
onChangeLayout();
|
73
|
+
}
|
74
|
+
} }))));
|
75
|
+
}
|
76
|
+
/** @class */ ((function (_super) {
|
77
|
+
__extends(FlexLayoutRenderer, _super);
|
78
|
+
function FlexLayoutRenderer() {
|
79
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
80
|
+
}
|
81
|
+
FlexLayoutRenderer.prototype.render = function () {
|
82
|
+
return React__default.createElement(FlexLayouts, __assign({}, this.props));
|
83
|
+
};
|
84
|
+
FlexLayoutRenderer = __decorate([
|
85
|
+
FormItem({ type: 'flex-layout' })
|
86
|
+
], FlexLayoutRenderer);
|
87
|
+
return FlexLayoutRenderer;
|
88
|
+
})(React__default.Component));
|
89
|
+
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
|
|
@@ -179,4 +179,4 @@ var Font = function (props) {
|
|
179
179
|
})(React__default.Component);
|
180
180
|
|
181
181
|
export { Font as default };
|
182
|
-
window.amisEditorVersionInfo={version:'6.
|
182
|
+
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
|
|
@@ -63,4 +63,4 @@ observer(InsetBoxModel);
|
|
63
63
|
], BoxModelRenderer);
|
64
64
|
return BoxModelRenderer;
|
65
65
|
})(React__default.Component));
|
66
|
-
window.amisEditorVersionInfo={version:'6.
|
66
|
+
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
|
|
@@ -196,4 +196,4 @@ function ThemeCssCode(props) {
|
|
196
196
|
})], ThemeCssCodeRenderer);
|
197
197
|
return ThemeCssCodeRenderer;
|
198
198
|
})(React__default.Component);
|
199
|
-
window.amisEditorVersionInfo={version:'6.
|
199
|
+
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
|
|
@@ -143,4 +143,4 @@ fontFamilyList.reduce(function (memo, current) {
|
|
143
143
|
}, {});
|
144
144
|
|
145
145
|
export { fontFamilyList };
|
146
|
-
window.amisEditorVersionInfo={version:'6.
|
146
|
+
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
|
|
@@ -14,7 +14,7 @@ var inputStateTpl = function (className, path) {
|
|
14
14
|
}
|
15
15
|
return __spreadArray(__spreadArray(__spreadArray([{
|
16
16
|
type: 'select',
|
17
|
-
name: '
|
17
|
+
name: '__editorState',
|
18
18
|
label: i18n("3fea7ca76cdece641436d7ab0d02ab1b"),
|
19
19
|
selectFirst: true,
|
20
20
|
options: [{
|
@@ -27,7 +27,7 @@ var inputStateTpl = function (className, path) {
|
|
27
27
|
label: i18n("4363c17ebb346b646af55bd8c8075915"),
|
28
28
|
value: 'active'
|
29
29
|
}]
|
30
|
-
}], __read(inputStateFunc("${
|
30
|
+
}], __read(inputStateFunc("${__editorState == 'default' || !__editorState}", 'default', className, path)), false), __read(inputStateFunc("${__editorState == 'hover'}", 'hover', className, path)), false), __read(inputStateFunc("${__editorState == 'active'}", 'active', className, path)), false);
|
31
31
|
};
|
32
32
|
var inputStateFunc = function (visibleOn, state, className, path, options) {
|
33
33
|
if (options === void 0) {
|
@@ -62,4 +62,4 @@ var inputStateFunc = function (visibleOn, state, className, path, options) {
|
|
62
62
|
};
|
63
63
|
|
64
64
|
export { inputStateFunc, inputStateTpl };
|
65
|
-
window.amisEditorVersionInfo={version:'6.
|
65
|
+
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 @@ function normalizeBoxShadow(config) {
|
|
74
74
|
}
|
75
75
|
|
76
76
|
export { normalizeBoxShadow, parseBoxShadow };
|
77
|
-
window.amisEditorVersionInfo={version:'6.
|
77
|
+
window.amisEditorVersionInfo={version:'6.4.0',buildTime:'2024-05-06'};
|