amis-editor 5.2.1-beta.35 → 5.2.3-beta.16
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/component/BaseControl.d.ts +1 -0
- package/esm/component/BaseControl.js +4 -4
- package/esm/component/InputComponentName.js +2 -2
- package/esm/component/TableViewEditor.js +2 -2
- package/esm/icons/btn/btn-group.svg.js +2 -2
- package/esm/icons/btn/btn-select.svg.js +2 -2
- package/esm/icons/btn/btn-toolbar.svg.js +2 -2
- package/esm/icons/btn/button.svg.js +2 -2
- package/esm/icons/btn/dropdown-btn.svg.js +2 -2
- package/esm/icons/container/anchor-nav.svg.js +2 -2
- package/esm/icons/container/collapse.svg.js +2 -2
- package/esm/icons/container/container.svg.js +2 -2
- package/esm/icons/container/flex-container.svg.js +2 -2
- package/esm/icons/container/form-group.svg.js +2 -2
- package/esm/icons/container/grid.svg.js +2 -2
- package/esm/icons/container/iframe.svg.js +2 -2
- package/esm/icons/container/panel.svg.js +2 -2
- package/esm/icons/container/table-view.svg.js +2 -2
- package/esm/icons/container/tabs.svg.js +2 -2
- package/esm/icons/container/tooltip-wrapper.svg.js +2 -2
- package/esm/icons/container/web-component.svg.js +2 -2
- package/esm/icons/feat/audio.svg.js +2 -2
- package/esm/icons/feat/custom.svg.js +2 -2
- package/esm/icons/feat/each.svg.js +2 -2
- package/esm/icons/feat/form.svg.js +2 -2
- package/esm/icons/feat/nav.svg.js +2 -2
- package/esm/icons/feat/qrcode.svg.js +2 -2
- package/esm/icons/feat/service.svg.js +2 -2
- package/esm/icons/feat/table.svg.js +2 -2
- package/esm/icons/feat/tasks.svg.js +2 -2
- package/esm/icons/feat/video.svg.js +2 -2
- package/esm/icons/feat/wizard.svg.js +2 -2
- package/esm/icons/form/chained-select.svg.js +2 -2
- package/esm/icons/form/checkbox.svg.js +2 -2
- package/esm/icons/form/checkboxes.svg.js +2 -2
- package/esm/icons/form/combo.svg.js +2 -2
- package/esm/icons/form/condition-builder.svg.js +2 -2
- package/esm/icons/form/diff-editor.svg.js +2 -2
- package/esm/icons/form/editor.svg.js +2 -2
- package/esm/icons/form/formula.svg.js +2 -2
- package/esm/icons/form/hidden.svg.js +2 -2
- package/esm/icons/form/input-city.svg.js +2 -2
- package/esm/icons/form/input-color.svg.js +2 -2
- package/esm/icons/form/input-date-range.svg.js +2 -2
- package/esm/icons/form/input-date.svg.js +2 -2
- package/esm/icons/form/input-datetime.svg.js +2 -2
- package/esm/icons/form/input-email.svg.js +2 -2
- package/esm/icons/form/input-excel.svg.js +2 -2
- package/esm/icons/form/input-file.svg.js +2 -2
- package/esm/icons/form/input-group.svg.js +2 -2
- package/esm/icons/form/input-image.svg.js +2 -2
- package/esm/icons/form/input-kv.svg.js +2 -2
- package/esm/icons/form/input-month-range.svg.js +2 -2
- package/esm/icons/form/input-number.svg.js +2 -2
- package/esm/icons/form/input-password.svg.js +2 -2
- package/esm/icons/form/input-quarter-range.svg.js +2 -2
- package/esm/icons/form/input-range.svg.js +2 -2
- package/esm/icons/form/input-rating.svg.js +2 -2
- package/esm/icons/form/input-repeat.svg.js +2 -2
- package/esm/icons/form/input-rich-text.svg.js +2 -2
- package/esm/icons/form/input-tag.svg.js +2 -2
- package/esm/icons/form/input-text.svg.js +2 -2
- package/esm/icons/form/input-time-range.svg.js +2 -2
- package/esm/icons/form/input-time.svg.js +2 -2
- package/esm/icons/form/input-tree.svg.js +2 -2
- package/esm/icons/form/input-url.svg.js +2 -2
- package/esm/icons/form/input-year.svg.js +2 -2
- package/esm/icons/form/inputArray.svg.js +2 -2
- package/esm/icons/form/list-select.svg.js +2 -2
- package/esm/icons/form/location-picker.svg.js +2 -2
- package/esm/icons/form/matrix-checkboxes.svg.js +2 -2
- package/esm/icons/form/month.svg.js +2 -2
- package/esm/icons/form/nested-select.svg.js +2 -2
- package/esm/icons/form/picker.svg.js +2 -2
- package/esm/icons/form/quarter.svg.js +2 -2
- package/esm/icons/form/radios.svg.js +2 -2
- package/esm/icons/form/select.svg.js +2 -2
- package/esm/icons/form/static.svg.js +2 -2
- package/esm/icons/form/sub-form.svg.js +2 -2
- package/esm/icons/form/switch.svg.js +2 -2
- package/esm/icons/form/tabs-transfer.svg.js +2 -2
- package/esm/icons/form/textarea.svg.js +2 -2
- package/esm/icons/form/transfer.svg.js +2 -2
- package/esm/icons/form/tree-select.svg.js +2 -2
- package/esm/icons/form/uuid.svg.js +2 -2
- package/esm/icons/index.js +2 -2
- package/esm/icons/layout/layout-1with2.svg.js +2 -2
- package/esm/icons/layout/layout-2cols.svg.js +2 -2
- package/esm/icons/layout/layout-2row.svg.js +2 -2
- package/esm/icons/layout/layout-2with1.svg.js +2 -2
- package/esm/icons/layout/layout-3cols.svg.js +2 -2
- package/esm/icons/layout/layout-3row.svg.js +2 -2
- package/esm/icons/layout/layout-absolute.svg.js +2 -2
- package/esm/icons/layout/layout-fixed.svg.js +2 -2
- package/esm/icons/layout/layout-full.svg.js +2 -2
- package/esm/icons/layout/layout1-2.svg.js +2 -2
- package/esm/icons/layout/layout2-1.svg.js +2 -2
- package/esm/icons/layout/layout3-1.svg.js +2 -2
- package/esm/icons/layout/layout3-2.svg.js +2 -2
- package/esm/icons/other/divider.svg.js +2 -2
- package/esm/icons/other/property-sheet.svg.js +2 -2
- package/esm/icons/other/tooltip.svg.js +2 -2
- package/esm/icons/show/URL.svg.js +2 -2
- package/esm/icons/show/avatar.svg.js +2 -2
- package/esm/icons/show/breadcrumb.svg.js +2 -2
- package/esm/icons/show/card.svg.js +2 -2
- package/esm/icons/show/cards.svg.js +2 -2
- package/esm/icons/show/carousel.svg.js +2 -2
- package/esm/icons/show/chart.svg.js +2 -2
- package/esm/icons/show/code.svg.js +2 -2
- package/esm/icons/show/date.svg.js +2 -2
- package/esm/icons/show/datetime.svg.js +2 -2
- package/esm/icons/show/image.svg.js +2 -2
- package/esm/icons/show/images.svg.js +2 -2
- package/esm/icons/show/json-view.svg.js +2 -2
- package/esm/icons/show/list.svg.js +2 -2
- package/esm/icons/show/log.svg.js +2 -2
- package/esm/icons/show/mapping.svg.js +2 -2
- package/esm/icons/show/markdown.svg.js +2 -2
- package/esm/icons/show/plain.svg.js +2 -2
- package/esm/icons/show/progress.svg.js +2 -2
- package/esm/icons/show/sparkline.svg.js +2 -2
- package/esm/icons/show/status.svg.js +2 -2
- package/esm/icons/show/steps.svg.js +2 -2
- package/esm/icons/show/time.svg.js +2 -2
- package/esm/index.js +2 -2
- package/esm/locale/en-US.js +13 -7
- package/esm/locale/zh-CN.js +9 -3
- package/esm/plugin/Alert.js +2 -2
- package/esm/plugin/AnchorNav.js +3 -8
- package/esm/plugin/Audio.js +2 -2
- package/esm/plugin/Avatar.js +3 -11
- package/esm/plugin/Breadcrumb.js +2 -2
- package/esm/plugin/Button.js +34 -9
- package/esm/plugin/ButtonGroup.js +2 -2
- package/esm/plugin/CRUD.d.ts +2 -2
- package/esm/plugin/CRUD.js +321 -345
- package/esm/plugin/CRUD2.js +2 -2
- package/esm/plugin/Card.js +4 -19
- package/esm/plugin/Card2.js +2 -2
- package/esm/plugin/Cards.js +8 -13
- package/esm/plugin/Carousel.js +4 -14
- package/esm/plugin/Chart.js +2 -2
- package/esm/plugin/CodeView.d.ts +2 -2
- package/esm/plugin/CodeView.js +25 -23
- package/esm/plugin/Collapse.js +4 -19
- package/esm/plugin/CollapseGroup.js +2 -2
- package/esm/plugin/ColumnToggler.js +2 -2
- package/esm/plugin/Container.js +8 -7
- package/esm/plugin/Custom.js +2 -2
- package/esm/plugin/CustomRegion.js +2 -2
- package/esm/plugin/Date.js +2 -2
- package/esm/plugin/Datetime.js +2 -2
- package/esm/plugin/Dialog.js +2 -2
- package/esm/plugin/Divider.d.ts +1 -0
- package/esm/plugin/Divider.js +13 -3
- package/esm/plugin/Drawer.js +2 -2
- package/esm/plugin/DropDownButton.js +5 -7
- package/esm/plugin/Each.js +4 -6
- package/esm/plugin/Flex.js +2 -2
- package/esm/plugin/Form/ButtonGroupSelect.js +3 -7
- package/esm/plugin/Form/ButtonToolbar.js +2 -2
- package/esm/plugin/Form/ChainedSelect.js +2 -2
- package/esm/plugin/Form/Checkbox.js +2 -2
- package/esm/plugin/Form/Checkboxes.js +2 -6
- package/esm/plugin/Form/CodeEditor.js +2 -2
- package/esm/plugin/Form/Combo.js +2 -2
- package/esm/plugin/Form/ConditionBuilder.d.ts +1 -1
- package/esm/plugin/Form/ConditionBuilder.js +39 -36
- package/esm/plugin/Form/Control.js +2 -2
- package/esm/plugin/Form/DiffEditor.js +2 -2
- package/esm/plugin/Form/FieldSet.js +3 -8
- package/esm/plugin/Form/Form.d.ts +1 -1
- package/esm/plugin/Form/Form.js +124 -140
- package/esm/plugin/Form/Formula.js +2 -2
- package/esm/plugin/Form/Group.js +2 -2
- package/esm/plugin/Form/Hidden.js +2 -2
- package/esm/plugin/Form/InputArray.js +2 -2
- package/esm/plugin/Form/InputCity.js +2 -4
- package/esm/plugin/Form/InputColor.js +2 -2
- package/esm/plugin/Form/InputDate.js +2 -2
- package/esm/plugin/Form/InputDateRange.js +3 -13
- package/esm/plugin/Form/InputDateTime.js +2 -2
- package/esm/plugin/Form/InputDateTimeRange.js +2 -2
- package/esm/plugin/Form/InputEmail.js +2 -2
- package/esm/plugin/Form/InputExcel.js +2 -2
- package/esm/plugin/Form/InputFile.js +3 -8
- package/esm/plugin/Form/InputGroup.js +2 -2
- package/esm/plugin/Form/InputImage.js +2 -2
- package/esm/plugin/Form/InputKV.js +2 -2
- package/esm/plugin/Form/InputMonth.js +2 -2
- package/esm/plugin/Form/InputMonthRange.js +2 -2
- package/esm/plugin/Form/InputNumber.js +4 -40
- package/esm/plugin/Form/InputPassword.js +2 -2
- package/esm/plugin/Form/InputQuarter.js +2 -2
- package/esm/plugin/Form/InputQuarterRange.js +2 -2
- package/esm/plugin/Form/InputRange.js +5 -12
- package/esm/plugin/Form/InputRating.js +6 -27
- package/esm/plugin/Form/InputRepeat.js +2 -2
- package/esm/plugin/Form/InputRichText.js +2 -2
- package/esm/plugin/Form/InputSubForm.js +6 -8
- package/esm/plugin/Form/InputTable.d.ts +1 -1
- package/esm/plugin/Form/InputTable.js +70 -67
- package/esm/plugin/Form/InputTag.js +3 -8
- package/esm/plugin/Form/InputText.js +2 -2
- package/esm/plugin/Form/InputTime.js +2 -2
- package/esm/plugin/Form/InputTimeRange.js +2 -2
- package/esm/plugin/Form/InputTree.js +2 -2
- package/esm/plugin/Form/InputURL.js +2 -2
- package/esm/plugin/Form/InputYear.js +2 -2
- package/esm/plugin/Form/InputYearRange.js +2 -2
- package/esm/plugin/Form/Item.js +2 -2
- package/esm/plugin/Form/ListSelect.js +2 -6
- package/esm/plugin/Form/LocationPicker.js +2 -2
- package/esm/plugin/Form/MatrixCheckboxes.js +5 -17
- package/esm/plugin/Form/NestedSelect.js +2 -2
- package/esm/plugin/Form/Picker.js +2 -2
- package/esm/plugin/Form/Radios.js +2 -6
- package/esm/plugin/Form/Select.js +2 -2
- package/esm/plugin/Form/Static.js +2 -2
- package/esm/plugin/Form/Switch.js +3 -7
- package/esm/plugin/Form/TabsTransfer.d.ts +1 -13
- package/esm/plugin/Form/TabsTransfer.js +5 -6
- package/esm/plugin/Form/Textarea.js +3 -8
- package/esm/plugin/Form/Transfer.js +2 -2
- package/esm/plugin/Form/TreeSelect.js +2 -2
- package/esm/plugin/Form/UUID.js +2 -2
- package/esm/plugin/Grid.js +5 -3
- package/esm/plugin/HBox.js +2 -2
- package/esm/plugin/IFrame.js +2 -2
- package/esm/plugin/Image.js +4 -10
- package/esm/plugin/Images.js +5 -11
- package/esm/plugin/Json.js +2 -2
- package/esm/plugin/Layout/FlexPluginBase.js +5 -3
- package/esm/plugin/Layout/Layout1_2_v4.js +2 -2
- package/esm/plugin/Layout/Layout_fixed.js +2 -2
- package/esm/plugin/Layout/Layout_free_container.js +2 -2
- package/esm/plugin/Layout/Layout_sorption_container.js +2 -2
- package/esm/plugin/Link.js +3 -7
- package/esm/plugin/List.js +3 -7
- package/esm/plugin/ListItem.js +2 -2
- package/esm/plugin/Log.js +2 -2
- package/esm/plugin/Mapping.js +6 -8
- package/esm/plugin/Markdown.js +2 -2
- package/esm/plugin/Nav.js +4 -6
- package/esm/plugin/Operation.js +2 -2
- package/esm/plugin/Others/Action.js +2 -2
- package/esm/plugin/Others/TableCell.js +6 -13
- package/esm/plugin/Page.js +12 -12
- package/esm/plugin/Pagination.js +2 -2
- package/esm/plugin/Panel.js +6 -10
- package/esm/plugin/Plain.d.ts +3 -0
- package/esm/plugin/Plain.js +63 -3
- package/esm/plugin/Progress.js +2 -2
- package/esm/plugin/Property.js +2 -2
- package/esm/plugin/QRCode.js +2 -2
- package/esm/plugin/Reset.js +2 -2
- package/esm/plugin/Service.js +2 -2
- package/esm/plugin/Sparkline.js +2 -2
- package/esm/plugin/Status.js +6 -8
- package/esm/plugin/Steps.js +4 -16
- package/esm/plugin/Submit.js +2 -2
- package/esm/plugin/Table.d.ts +2 -2
- package/esm/plugin/Table.js +88 -84
- package/esm/plugin/Table2.d.ts +1 -1
- package/esm/plugin/Table2.js +19 -17
- package/esm/plugin/TableCell2.js +2 -2
- package/esm/plugin/TableView.js +3 -7
- package/esm/plugin/Tabs.js +5 -6
- package/esm/plugin/Tasks.js +7 -36
- package/esm/plugin/Time.js +2 -2
- package/esm/plugin/Timeline.js +2 -2
- package/esm/plugin/TooltipWrapper.js +4 -10
- package/esm/plugin/Tpl.d.ts +3 -0
- package/esm/plugin/Tpl.js +63 -3
- package/esm/plugin/Video.js +2 -2
- package/esm/plugin/WebComponent.js +6 -6
- package/esm/plugin/Wizard.js +6 -29
- package/esm/plugin/Wrapper.js +5 -3
- package/esm/renderer/APIControl.d.ts +78 -0
- package/esm/renderer/APIControl.js +2 -2
- package/esm/renderer/BadgeControl.js +2 -2
- package/esm/renderer/DataBindingControl.js +2 -2
- package/esm/renderer/DataMappingControl.js +2 -2
- package/esm/renderer/DataPickerControl.js +2 -2
- package/esm/renderer/DateShortCutControl.js +2 -2
- package/esm/renderer/ExpressionFormulaControl.js +2 -2
- package/esm/renderer/FeatureControl.js +2 -2
- package/esm/renderer/FormulaControl.js +2 -2
- package/esm/renderer/GoConfigControl.js +2 -2
- package/esm/renderer/OptionControl.js +2 -2
- package/esm/renderer/RangePartsControl.js +2 -2
- package/esm/renderer/StatusControl.js +2 -2
- package/esm/renderer/SwitchMoreControl.js +2 -2
- package/esm/renderer/TimelineItemControl.js +2 -2
- package/esm/renderer/TransferTableControl.js +2 -2
- package/esm/renderer/TreeOptionControl.js +2 -2
- package/esm/renderer/ValidationControl.js +2 -2
- package/esm/renderer/ValidationItem.js +5 -3
- package/esm/renderer/event-control/action-config-dialog.js +2 -2
- package/esm/renderer/event-control/action-config-panel.js +2 -2
- package/esm/renderer/event-control/comp-action-select.js +2 -2
- package/esm/renderer/event-control/helper.d.ts +22 -21
- package/esm/renderer/event-control/helper.js +1305 -109
- package/esm/renderer/event-control/index.js +4 -4
- package/esm/renderer/style-control/Background.js +2 -2
- package/esm/renderer/style-control/Border.js +2 -2
- package/esm/renderer/style-control/BoxModel.js +2 -2
- package/esm/renderer/style-control/BoxShadow.js +2 -2
- package/esm/renderer/style-control/Display.js +2 -2
- package/esm/renderer/style-control/Font.js +2 -2
- package/esm/renderer/style-control/InsetBoxModel.js +2 -2
- package/esm/renderer/style-control/font-family.js +2 -2
- package/esm/renderer/style-control/transformation.js +2 -2
- package/esm/renderer/textarea-formula/FormulaPicker.d.ts +3 -0
- package/esm/renderer/textarea-formula/FormulaPicker.js +2 -2
- package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +9 -0
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +17 -5
- package/esm/renderer/textarea-formula/plugin.js +2 -2
- package/esm/renderer/textarea-formula/utils.js +2 -2
- package/esm/tpl/api.js +2 -2
- package/esm/tpl/common.js +366 -3
- package/esm/tpl/horizontal.js +2 -2
- package/esm/tpl/layout.js +91 -23
- package/esm/tpl/options.js +2 -2
- package/esm/tpl/style.js +2 -2
- package/esm/tpl/validations.js +2 -2
- package/esm/util.js +2 -3
- package/esm/validator.js +2 -2
- package/lib/component/BaseControl.d.ts +1 -0
- package/lib/component/BaseControl.js +4 -4
- package/lib/component/InputComponentName.js +2 -2
- package/lib/component/TableViewEditor.js +2 -2
- package/lib/icons/btn/btn-group.svg.js +2 -2
- package/lib/icons/btn/btn-select.svg.js +2 -2
- package/lib/icons/btn/btn-toolbar.svg.js +2 -2
- package/lib/icons/btn/button.svg.js +2 -2
- package/lib/icons/btn/dropdown-btn.svg.js +2 -2
- package/lib/icons/container/anchor-nav.svg.js +2 -2
- package/lib/icons/container/collapse.svg.js +2 -2
- package/lib/icons/container/container.svg.js +2 -2
- package/lib/icons/container/flex-container.svg.js +2 -2
- package/lib/icons/container/form-group.svg.js +2 -2
- package/lib/icons/container/grid.svg.js +2 -2
- package/lib/icons/container/iframe.svg.js +2 -2
- package/lib/icons/container/panel.svg.js +2 -2
- package/lib/icons/container/table-view.svg.js +2 -2
- package/lib/icons/container/tabs.svg.js +2 -2
- package/lib/icons/container/tooltip-wrapper.svg.js +2 -2
- package/lib/icons/container/web-component.svg.js +2 -2
- package/lib/icons/feat/audio.svg.js +2 -2
- package/lib/icons/feat/custom.svg.js +2 -2
- package/lib/icons/feat/each.svg.js +2 -2
- package/lib/icons/feat/form.svg.js +2 -2
- package/lib/icons/feat/nav.svg.js +2 -2
- package/lib/icons/feat/qrcode.svg.js +2 -2
- package/lib/icons/feat/service.svg.js +2 -2
- package/lib/icons/feat/table.svg.js +2 -2
- package/lib/icons/feat/tasks.svg.js +2 -2
- package/lib/icons/feat/video.svg.js +2 -2
- package/lib/icons/feat/wizard.svg.js +2 -2
- package/lib/icons/form/chained-select.svg.js +2 -2
- package/lib/icons/form/checkbox.svg.js +2 -2
- package/lib/icons/form/checkboxes.svg.js +2 -2
- package/lib/icons/form/combo.svg.js +2 -2
- package/lib/icons/form/condition-builder.svg.js +2 -2
- package/lib/icons/form/diff-editor.svg.js +2 -2
- package/lib/icons/form/editor.svg.js +2 -2
- package/lib/icons/form/formula.svg.js +2 -2
- package/lib/icons/form/hidden.svg.js +2 -2
- package/lib/icons/form/input-city.svg.js +2 -2
- package/lib/icons/form/input-color.svg.js +2 -2
- package/lib/icons/form/input-date-range.svg.js +2 -2
- package/lib/icons/form/input-date.svg.js +2 -2
- package/lib/icons/form/input-datetime.svg.js +2 -2
- package/lib/icons/form/input-email.svg.js +2 -2
- package/lib/icons/form/input-excel.svg.js +2 -2
- package/lib/icons/form/input-file.svg.js +2 -2
- package/lib/icons/form/input-group.svg.js +2 -2
- package/lib/icons/form/input-image.svg.js +2 -2
- package/lib/icons/form/input-kv.svg.js +2 -2
- package/lib/icons/form/input-month-range.svg.js +2 -2
- package/lib/icons/form/input-number.svg.js +2 -2
- package/lib/icons/form/input-password.svg.js +2 -2
- package/lib/icons/form/input-quarter-range.svg.js +2 -2
- package/lib/icons/form/input-range.svg.js +2 -2
- package/lib/icons/form/input-rating.svg.js +2 -2
- package/lib/icons/form/input-repeat.svg.js +2 -2
- package/lib/icons/form/input-rich-text.svg.js +2 -2
- package/lib/icons/form/input-tag.svg.js +2 -2
- package/lib/icons/form/input-text.svg.js +2 -2
- package/lib/icons/form/input-time-range.svg.js +2 -2
- package/lib/icons/form/input-time.svg.js +2 -2
- package/lib/icons/form/input-tree.svg.js +2 -2
- package/lib/icons/form/input-url.svg.js +2 -2
- package/lib/icons/form/input-year.svg.js +2 -2
- package/lib/icons/form/inputArray.svg.js +2 -2
- package/lib/icons/form/list-select.svg.js +2 -2
- package/lib/icons/form/location-picker.svg.js +2 -2
- package/lib/icons/form/matrix-checkboxes.svg.js +2 -2
- package/lib/icons/form/month.svg.js +2 -2
- package/lib/icons/form/nested-select.svg.js +2 -2
- package/lib/icons/form/picker.svg.js +2 -2
- package/lib/icons/form/quarter.svg.js +2 -2
- package/lib/icons/form/radios.svg.js +2 -2
- package/lib/icons/form/select.svg.js +2 -2
- package/lib/icons/form/static.svg.js +2 -2
- package/lib/icons/form/sub-form.svg.js +2 -2
- package/lib/icons/form/switch.svg.js +2 -2
- package/lib/icons/form/tabs-transfer.svg.js +2 -2
- package/lib/icons/form/textarea.svg.js +2 -2
- package/lib/icons/form/transfer.svg.js +2 -2
- package/lib/icons/form/tree-select.svg.js +2 -2
- package/lib/icons/form/uuid.svg.js +2 -2
- package/lib/icons/index.js +2 -2
- package/lib/icons/layout/layout-1with2.svg.js +2 -2
- package/lib/icons/layout/layout-2cols.svg.js +2 -2
- package/lib/icons/layout/layout-2row.svg.js +2 -2
- package/lib/icons/layout/layout-2with1.svg.js +2 -2
- package/lib/icons/layout/layout-3cols.svg.js +2 -2
- package/lib/icons/layout/layout-3row.svg.js +2 -2
- package/lib/icons/layout/layout-absolute.svg.js +2 -2
- package/lib/icons/layout/layout-fixed.svg.js +2 -2
- package/lib/icons/layout/layout-full.svg.js +2 -2
- package/lib/icons/layout/layout1-2.svg.js +2 -2
- package/lib/icons/layout/layout2-1.svg.js +2 -2
- package/lib/icons/layout/layout3-1.svg.js +2 -2
- package/lib/icons/layout/layout3-2.svg.js +2 -2
- package/lib/icons/other/divider.svg.js +2 -2
- package/lib/icons/other/property-sheet.svg.js +2 -2
- package/lib/icons/other/tooltip.svg.js +2 -2
- package/lib/icons/show/URL.svg.js +2 -2
- package/lib/icons/show/avatar.svg.js +2 -2
- package/lib/icons/show/breadcrumb.svg.js +2 -2
- package/lib/icons/show/card.svg.js +2 -2
- package/lib/icons/show/cards.svg.js +2 -2
- package/lib/icons/show/carousel.svg.js +2 -2
- package/lib/icons/show/chart.svg.js +2 -2
- package/lib/icons/show/code.svg.js +2 -2
- package/lib/icons/show/date.svg.js +2 -2
- package/lib/icons/show/datetime.svg.js +2 -2
- package/lib/icons/show/image.svg.js +2 -2
- package/lib/icons/show/images.svg.js +2 -2
- package/lib/icons/show/json-view.svg.js +2 -2
- package/lib/icons/show/list.svg.js +2 -2
- package/lib/icons/show/log.svg.js +2 -2
- package/lib/icons/show/mapping.svg.js +2 -2
- package/lib/icons/show/markdown.svg.js +2 -2
- package/lib/icons/show/plain.svg.js +2 -2
- package/lib/icons/show/progress.svg.js +2 -2
- package/lib/icons/show/sparkline.svg.js +2 -2
- package/lib/icons/show/status.svg.js +2 -2
- package/lib/icons/show/steps.svg.js +2 -2
- package/lib/icons/show/time.svg.js +2 -2
- package/lib/index.js +2 -2
- package/lib/locale/en-US.js +13 -7
- package/lib/locale/zh-CN.js +9 -3
- package/lib/plugin/Alert.js +2 -2
- package/lib/plugin/AnchorNav.js +3 -8
- package/lib/plugin/Audio.js +2 -2
- package/lib/plugin/Avatar.js +3 -11
- package/lib/plugin/Breadcrumb.js +2 -2
- package/lib/plugin/Button.js +34 -9
- package/lib/plugin/ButtonGroup.js +2 -2
- package/lib/plugin/CRUD.d.ts +2 -2
- package/lib/plugin/CRUD.js +319 -343
- package/lib/plugin/CRUD2.d.ts +1 -1
- package/lib/plugin/CRUD2.js +2 -2
- package/lib/plugin/Card.js +4 -19
- package/lib/plugin/Card2.js +2 -2
- package/lib/plugin/Cards.js +8 -13
- package/lib/plugin/Carousel.js +4 -14
- package/lib/plugin/Chart.js +2 -2
- package/lib/plugin/CodeView.d.ts +2 -2
- package/lib/plugin/CodeView.js +25 -23
- package/lib/plugin/Collapse.js +3 -18
- package/lib/plugin/CollapseGroup.js +2 -2
- package/lib/plugin/ColumnToggler.js +2 -2
- package/lib/plugin/Container.js +8 -7
- package/lib/plugin/Custom.js +2 -2
- package/lib/plugin/CustomRegion.js +2 -2
- package/lib/plugin/Date.js +2 -2
- package/lib/plugin/Datetime.js +2 -2
- package/lib/plugin/Dialog.js +2 -2
- package/lib/plugin/Divider.d.ts +1 -0
- package/lib/plugin/Divider.js +13 -3
- package/lib/plugin/Drawer.js +2 -2
- package/lib/plugin/DropDownButton.js +5 -7
- package/lib/plugin/Each.js +4 -6
- package/lib/plugin/Flex.js +2 -2
- package/lib/plugin/Form/ButtonGroupSelect.js +3 -7
- package/lib/plugin/Form/ButtonToolbar.js +2 -2
- package/lib/plugin/Form/ChainedSelect.js +2 -2
- package/lib/plugin/Form/Checkbox.js +2 -2
- package/lib/plugin/Form/Checkboxes.js +2 -6
- package/lib/plugin/Form/CodeEditor.js +2 -2
- package/lib/plugin/Form/Combo.js +2 -2
- package/lib/plugin/Form/ConditionBuilder.d.ts +1 -1
- package/lib/plugin/Form/ConditionBuilder.js +39 -36
- package/lib/plugin/Form/Control.js +2 -2
- package/lib/plugin/Form/DiffEditor.js +2 -2
- package/lib/plugin/Form/FieldSet.js +3 -8
- package/lib/plugin/Form/Form.d.ts +1 -1
- package/lib/plugin/Form/Form.js +123 -139
- package/lib/plugin/Form/Formula.js +2 -2
- package/lib/plugin/Form/Group.js +2 -2
- package/lib/plugin/Form/Hidden.js +2 -2
- package/lib/plugin/Form/InputArray.js +2 -2
- package/lib/plugin/Form/InputCity.js +2 -4
- package/lib/plugin/Form/InputColor.js +2 -2
- package/lib/plugin/Form/InputDate.js +2 -2
- package/lib/plugin/Form/InputDateRange.js +3 -13
- package/lib/plugin/Form/InputDateTime.js +2 -2
- package/lib/plugin/Form/InputDateTimeRange.js +2 -2
- package/lib/plugin/Form/InputEmail.js +2 -2
- package/lib/plugin/Form/InputExcel.js +2 -2
- package/lib/plugin/Form/InputFile.js +3 -8
- package/lib/plugin/Form/InputGroup.js +2 -2
- package/lib/plugin/Form/InputImage.js +2 -2
- package/lib/plugin/Form/InputKV.js +2 -2
- package/lib/plugin/Form/InputMonth.js +2 -2
- package/lib/plugin/Form/InputMonthRange.js +2 -2
- package/lib/plugin/Form/InputNumber.js +3 -39
- package/lib/plugin/Form/InputPassword.js +2 -2
- package/lib/plugin/Form/InputQuarter.js +2 -2
- package/lib/plugin/Form/InputQuarterRange.js +2 -2
- package/lib/plugin/Form/InputRange.js +5 -12
- package/lib/plugin/Form/InputRating.js +6 -27
- package/lib/plugin/Form/InputRepeat.js +2 -2
- package/lib/plugin/Form/InputRichText.js +2 -2
- package/lib/plugin/Form/InputSubForm.js +6 -8
- package/lib/plugin/Form/InputTable.d.ts +1 -1
- package/lib/plugin/Form/InputTable.js +70 -67
- package/lib/plugin/Form/InputTag.js +3 -8
- package/lib/plugin/Form/InputText.js +2 -2
- package/lib/plugin/Form/InputTime.js +2 -2
- package/lib/plugin/Form/InputTimeRange.js +2 -2
- package/lib/plugin/Form/InputTree.js +2 -2
- package/lib/plugin/Form/InputURL.js +2 -2
- package/lib/plugin/Form/InputYear.js +2 -2
- package/lib/plugin/Form/InputYearRange.js +2 -2
- package/lib/plugin/Form/Item.js +2 -2
- package/lib/plugin/Form/ListSelect.js +2 -6
- package/lib/plugin/Form/LocationPicker.js +2 -2
- package/lib/plugin/Form/MatrixCheckboxes.js +5 -17
- package/lib/plugin/Form/NestedSelect.js +2 -2
- package/lib/plugin/Form/Picker.js +2 -2
- package/lib/plugin/Form/Radios.js +2 -6
- package/lib/plugin/Form/Select.js +2 -2
- package/lib/plugin/Form/Static.js +2 -2
- package/lib/plugin/Form/Switch.js +3 -7
- package/lib/plugin/Form/TabsTransfer.d.ts +1 -13
- package/lib/plugin/Form/TabsTransfer.js +5 -6
- package/lib/plugin/Form/Textarea.js +3 -8
- package/lib/plugin/Form/Transfer.js +2 -2
- package/lib/plugin/Form/TreeSelect.js +2 -2
- package/lib/plugin/Form/UUID.js +2 -2
- package/lib/plugin/Grid.js +5 -3
- package/lib/plugin/HBox.js +2 -2
- package/lib/plugin/IFrame.js +2 -2
- package/lib/plugin/Image.js +4 -10
- package/lib/plugin/Images.js +5 -11
- package/lib/plugin/Json.js +2 -2
- package/lib/plugin/Layout/FlexPluginBase.js +5 -3
- package/lib/plugin/Layout/Layout1_2_v4.js +2 -2
- package/lib/plugin/Layout/Layout_fixed.js +2 -2
- package/lib/plugin/Layout/Layout_free_container.js +2 -2
- package/lib/plugin/Layout/Layout_sorption_container.js +2 -2
- package/lib/plugin/Link.js +3 -7
- package/lib/plugin/List.js +3 -7
- package/lib/plugin/ListItem.js +2 -2
- package/lib/plugin/Log.js +2 -2
- package/lib/plugin/Mapping.js +6 -8
- package/lib/plugin/Markdown.js +2 -2
- package/lib/plugin/Nav.js +4 -6
- package/lib/plugin/Operation.js +2 -2
- package/lib/plugin/Others/Action.js +2 -2
- package/lib/plugin/Others/TableCell.js +6 -13
- package/lib/plugin/Page.js +12 -12
- package/lib/plugin/Pagination.js +2 -2
- package/lib/plugin/Panel.js +6 -10
- package/lib/plugin/Plain.d.ts +3 -0
- package/lib/plugin/Plain.js +62 -2
- package/lib/plugin/Progress.js +2 -2
- package/lib/plugin/Property.js +2 -2
- package/lib/plugin/QRCode.js +2 -2
- package/lib/plugin/Reset.js +2 -2
- package/lib/plugin/Service.js +2 -2
- package/lib/plugin/Sparkline.js +2 -2
- package/lib/plugin/Status.js +6 -8
- package/lib/plugin/Steps.js +4 -16
- package/lib/plugin/Submit.js +2 -2
- package/lib/plugin/Table.d.ts +2 -2
- package/lib/plugin/Table.js +87 -83
- package/lib/plugin/Table2.d.ts +1 -1
- package/lib/plugin/Table2.js +18 -16
- package/lib/plugin/TableCell2.js +2 -2
- package/lib/plugin/TableView.js +3 -7
- package/lib/plugin/Tabs.d.ts +1 -0
- package/lib/plugin/Tabs.js +5 -6
- package/lib/plugin/Tasks.js +7 -36
- package/lib/plugin/Time.js +2 -2
- package/lib/plugin/Timeline.js +2 -2
- package/lib/plugin/TooltipWrapper.js +4 -10
- package/lib/plugin/Tpl.d.ts +3 -0
- package/lib/plugin/Tpl.js +62 -2
- package/lib/plugin/Video.js +2 -2
- package/lib/plugin/WebComponent.js +6 -6
- package/lib/plugin/Wizard.js +5 -28
- package/lib/plugin/Wrapper.js +5 -3
- package/lib/renderer/APIControl.d.ts +80 -2
- package/lib/renderer/APIControl.js +2 -2
- package/lib/renderer/BadgeControl.d.ts +10 -10
- package/lib/renderer/BadgeControl.js +2 -2
- package/lib/renderer/DataBindingControl.js +2 -2
- package/lib/renderer/DataMappingControl.js +2 -2
- package/lib/renderer/DataPickerControl.js +2 -2
- package/lib/renderer/DateShortCutControl.js +2 -2
- package/lib/renderer/ExpressionFormulaControl.js +2 -2
- package/lib/renderer/FeatureControl.js +2 -2
- package/lib/renderer/FormulaControl.js +2 -2
- package/lib/renderer/GoConfigControl.js +2 -2
- package/lib/renderer/OptionControl.js +2 -2
- package/lib/renderer/RangePartsControl.js +2 -2
- package/lib/renderer/StatusControl.js +2 -2
- package/lib/renderer/SwitchMoreControl.d.ts +62 -62
- package/lib/renderer/SwitchMoreControl.js +2 -2
- package/lib/renderer/TimelineItemControl.js +2 -2
- package/lib/renderer/TransferTableControl.js +2 -2
- package/lib/renderer/TreeOptionControl.js +2 -2
- package/lib/renderer/ValidationControl.js +2 -2
- package/lib/renderer/ValidationItem.js +5 -3
- package/lib/renderer/event-control/action-config-dialog.js +2 -2
- package/lib/renderer/event-control/action-config-panel.js +2 -2
- package/lib/renderer/event-control/comp-action-select.js +2 -2
- package/lib/renderer/event-control/helper.d.ts +22 -21
- package/lib/renderer/event-control/helper.js +1305 -108
- package/lib/renderer/event-control/index.js +4 -3
- package/lib/renderer/style-control/Background.js +2 -2
- package/lib/renderer/style-control/Border.js +2 -2
- package/lib/renderer/style-control/BoxModel.js +2 -2
- package/lib/renderer/style-control/BoxShadow.js +2 -2
- package/lib/renderer/style-control/Display.js +2 -2
- package/lib/renderer/style-control/Font.js +2 -2
- package/lib/renderer/style-control/InsetBoxModel.js +2 -2
- package/lib/renderer/style-control/font-family.js +2 -2
- package/lib/renderer/style-control/transformation.js +2 -2
- package/lib/renderer/textarea-formula/FormulaPicker.d.ts +3 -0
- package/lib/renderer/textarea-formula/FormulaPicker.js +2 -2
- package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +9 -0
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +17 -5
- package/lib/renderer/textarea-formula/plugin.js +2 -2
- package/lib/renderer/textarea-formula/utils.js +2 -2
- package/lib/tpl/api.js +2 -2
- package/lib/tpl/common.js +366 -3
- package/lib/tpl/horizontal.js +2 -2
- package/lib/tpl/layout.js +91 -23
- package/lib/tpl/options.js +2 -2
- package/lib/tpl/style.js +2 -2
- package/lib/tpl/validations.js +2 -2
- package/lib/util.js +2 -3
- package/lib/validator.js +2 -2
- package/package.json +1 -5
- package/esm/renderer/event-control/actions.d.ts +0 -3
- package/esm/renderer/event-control/actions.js +0 -1211
- package/lib/renderer/event-control/actions.d.ts +0 -3
- package/lib/renderer/event-control/actions.js +0 -1219
@@ -1,1219 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* amis-editor v5.2.1-beta.35
|
3
|
-
* Copyright 2018-2022 @fex
|
4
|
-
*/
|
5
|
-
|
6
|
-
'use strict';
|
7
|
-
|
8
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
9
|
-
|
10
|
-
var tslib = require('tslib');
|
11
|
-
var amis = require('amis');
|
12
|
-
var amisEditorCore = require('amis-editor-core');
|
13
|
-
var React = require('react');
|
14
|
-
var amisCore = require('amis-core');
|
15
|
-
var helper = require('./helper.js');
|
16
|
-
var i18nRuntime = require('i18n-runtime');
|
17
|
-
|
18
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
19
|
-
|
20
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
21
|
-
|
22
|
-
var MSG_TYPES = {
|
23
|
-
info: i18nRuntime.i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),
|
24
|
-
warning: i18nRuntime.i18n("900c70fa5f7dbc014e6f762d5e0e885c"),
|
25
|
-
success: i18nRuntime.i18n("330363dfc524cff2488f2ebde0500896"),
|
26
|
-
error: i18nRuntime.i18n("7030ff64701a938becbc5aa67ddb86e8")
|
27
|
-
};
|
28
|
-
var ACTION_TYPE_TREE = function (manager) {
|
29
|
-
return [{
|
30
|
-
actionLabel: i18nRuntime.i18n("59ceff465ad16932d8972191ad815dfb"),
|
31
|
-
actionType: 'page',
|
32
|
-
children: [{
|
33
|
-
actionLabel: i18nRuntime.i18n("dec2eb7145e149f281cb7e75fbe8972a"),
|
34
|
-
actionType: 'url',
|
35
|
-
description: i18nRuntime.i18n("ae10a948eca808b3dd77506b24f3fd0e"),
|
36
|
-
innerArgs: ['url', 'params', 'blank'],
|
37
|
-
descDetail: function (info) {
|
38
|
-
var _a;
|
39
|
-
return React__default["default"].createElement("div", null, "\u8DF3\u8F6C\u81F3", React__default["default"].createElement("span", {
|
40
|
-
className: "variable-left"
|
41
|
-
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.url) || '-'));
|
42
|
-
},
|
43
|
-
schema: helper.getArgsWrapper([{
|
44
|
-
type: 'wrapper',
|
45
|
-
className: 'p-none',
|
46
|
-
body: [
|
47
|
-
/**
|
48
|
-
{
|
49
|
-
label: '页面地址',
|
50
|
-
type: 'input-formula',
|
51
|
-
variables: '${variables}',
|
52
|
-
evalMode: false,
|
53
|
-
variableMode: 'tabs',
|
54
|
-
inputMode: 'input-group',
|
55
|
-
name: 'url',
|
56
|
-
placeholder: 'http://',
|
57
|
-
mode: 'horizontal',
|
58
|
-
size: 'lg',
|
59
|
-
required: true,
|
60
|
-
visibleOn: 'data.actionType === "url"'
|
61
|
-
},
|
62
|
-
*/
|
63
|
-
{
|
64
|
-
name: 'url',
|
65
|
-
label: i18nRuntime.i18n("8f1c078c6d42759e6ccb1a9bf35f1629"),
|
66
|
-
type: 'ae-textareaFormulaControl',
|
67
|
-
variables: '${variables}',
|
68
|
-
mode: 'horizontal',
|
69
|
-
// placeholder: 'http://', 长文本暂不支持
|
70
|
-
size: 'lg',
|
71
|
-
required: true,
|
72
|
-
visibleOn: 'data.actionType === "url"'
|
73
|
-
}, {
|
74
|
-
type: 'combo',
|
75
|
-
name: 'params',
|
76
|
-
label: i18nRuntime.i18n("0b72392143e4038e98128cb0f6f679b3"),
|
77
|
-
multiple: true,
|
78
|
-
mode: 'horizontal',
|
79
|
-
size: 'lg',
|
80
|
-
items: [{
|
81
|
-
name: 'key',
|
82
|
-
placeholder: i18nRuntime.i18n("c068b579db3bf0a553bd0af4f81cc14f"),
|
83
|
-
type: 'input-text'
|
84
|
-
},
|
85
|
-
/**
|
86
|
-
{
|
87
|
-
name: 'val',
|
88
|
-
placeholder: '参数值',
|
89
|
-
type: 'input-formula',
|
90
|
-
variables: '${variables}',
|
91
|
-
evalMode: false,
|
92
|
-
variableMode: 'tabs',
|
93
|
-
inputMode: 'input-group',
|
94
|
-
size: 'xs'
|
95
|
-
},
|
96
|
-
*/
|
97
|
-
{
|
98
|
-
type: 'ae-formulaControl',
|
99
|
-
variables: '${variables}',
|
100
|
-
name: 'val',
|
101
|
-
variableMode: 'tabs',
|
102
|
-
placeholder: i18nRuntime.i18n("bfed4943c5f487de1b63a82f7230cce2")
|
103
|
-
}]
|
104
|
-
}, {
|
105
|
-
type: 'switch',
|
106
|
-
name: 'blank',
|
107
|
-
label: i18nRuntime.i18n("56aa76ab3c987377e855ae2c6c612050"),
|
108
|
-
onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
|
109
|
-
offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
110
|
-
mode: 'horizontal',
|
111
|
-
pipeIn: amisEditorCore.defaultValue(true)
|
112
|
-
}]
|
113
|
-
}])
|
114
|
-
}, {
|
115
|
-
actionLabel: i18nRuntime.i18n("fd5fb471ecce1eea63a6a95b6707f815"),
|
116
|
-
actionType: 'link',
|
117
|
-
description: i18nRuntime.i18n("67e21dd387607ae3fb59846504fa2c4c"),
|
118
|
-
innerArgs: ['link', 'params', 'pageName', '__pageInputSchema'],
|
119
|
-
descDetail: function (info) {
|
120
|
-
var _a;
|
121
|
-
return React__default["default"].createElement("div", null, "\u6253\u5F00", React__default["default"].createElement("span", {
|
122
|
-
className: "variable-left variable-right"
|
123
|
-
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.pageName) || '-'), "\u9875\u9762");
|
124
|
-
},
|
125
|
-
schema: helper.getArgsWrapper([{
|
126
|
-
type: 'wrapper',
|
127
|
-
className: 'p-none',
|
128
|
-
body: [amisEditorCore.getSchemaTpl('app-page'), amisEditorCore.getSchemaTpl('app-page-args')]
|
129
|
-
}])
|
130
|
-
}, {
|
131
|
-
actionLabel: i18nRuntime.i18n("39e107b7c4aa580f913ccbebc00f7534"),
|
132
|
-
actionType: 'refresh',
|
133
|
-
description: i18nRuntime.i18n("261242fe62b18b620419802c7dd7da7f")
|
134
|
-
}, {
|
135
|
-
actionLabel: i18nRuntime.i18n("ca180138a862543561d3a2c4f08b2e1b"),
|
136
|
-
actionType: 'goBack',
|
137
|
-
description: i18nRuntime.i18n("5f6b9e7a050ae3f34b38191435e14b24"),
|
138
|
-
descDetail: function (info) {
|
139
|
-
return React__default["default"].createElement("div", null, "\u8FD4\u56DE\u4E0A\u4E00\u9875");
|
140
|
-
}
|
141
|
-
}]
|
142
|
-
}, {
|
143
|
-
actionLabel: i18nRuntime.i18n("f80d12dcd65429fd28841e768062d3c2"),
|
144
|
-
actionType: 'dialogs',
|
145
|
-
children: [{
|
146
|
-
actionLabel: i18nRuntime.i18n("0561589c26e732981f29709a9b574234"),
|
147
|
-
actionType: 'openDialog',
|
148
|
-
description: i18nRuntime.i18n("256dbc5161ae393ec8a0e83ae6cf9469"),
|
149
|
-
actions: [{
|
150
|
-
actionType: 'dialog'
|
151
|
-
}, {
|
152
|
-
actionType: 'drawer'
|
153
|
-
}],
|
154
|
-
schema: [{
|
155
|
-
type: 'radios',
|
156
|
-
label: i18nRuntime.i18n("226b0912184333c81babf2f1894ec0c1"),
|
157
|
-
name: 'groupType',
|
158
|
-
mode: 'horizontal',
|
159
|
-
value: 'dialog',
|
160
|
-
required: true,
|
161
|
-
pipeIn: amisEditorCore.defaultValue('dialog'),
|
162
|
-
inputClassName: 'event-action-radio',
|
163
|
-
options: [{
|
164
|
-
label: i18nRuntime.i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),
|
165
|
-
value: 'dialog'
|
166
|
-
}, {
|
167
|
-
label: i18nRuntime.i18n("2a2924380dfcaea998bd8a49703545a9"),
|
168
|
-
value: 'drawer'
|
169
|
-
}],
|
170
|
-
visibleOn: 'data.actionType === "openDialog"'
|
171
|
-
}, {
|
172
|
-
name: 'dialog',
|
173
|
-
label: i18nRuntime.i18n("507c1d40c5d6b990cf8c832b0a91cadb"),
|
174
|
-
mode: 'horizontal',
|
175
|
-
required: true,
|
176
|
-
pipeIn: amisEditorCore.defaultValue({
|
177
|
-
title: i18nRuntime.i18n("8a089992349df754f182a5d02de8e8e0"),
|
178
|
-
body: i18nRuntime.i18n("b680997c50ca749acd4e6075cdca244e"),
|
179
|
-
showCloseButton: true,
|
180
|
-
showErrorMsg: true,
|
181
|
-
showLoading: true
|
182
|
-
}),
|
183
|
-
asFormItem: true,
|
184
|
-
visibleOn: 'data.groupType === "dialog"',
|
185
|
-
children: function (_a) {
|
186
|
-
var value = _a.value,
|
187
|
-
onChange = _a.onChange,
|
188
|
-
data = _a.data;
|
189
|
-
return React__default["default"].createElement(amis.Button, {
|
190
|
-
size: "sm",
|
191
|
-
className: "action-btn-width",
|
192
|
-
onClick: function () {
|
193
|
-
return manager.openSubEditor({
|
194
|
-
title: i18nRuntime.i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"),
|
195
|
-
value: tslib.__assign({
|
196
|
-
type: 'dialog'
|
197
|
-
}, value),
|
198
|
-
data: data,
|
199
|
-
onChange: function (value) {
|
200
|
-
return onChange(value);
|
201
|
-
}
|
202
|
-
});
|
203
|
-
},
|
204
|
-
block: true
|
205
|
-
}, i18nRuntime.i18n('a532be3ad5f3fda70d228b8542e81835'));
|
206
|
-
}
|
207
|
-
}, {
|
208
|
-
name: 'drawer',
|
209
|
-
label: i18nRuntime.i18n("b67cbb1ca7439053f06d59aac5e410dc"),
|
210
|
-
mode: 'horizontal',
|
211
|
-
required: true,
|
212
|
-
pipeIn: amisEditorCore.defaultValue({
|
213
|
-
title: i18nRuntime.i18n("8a089992349df754f182a5d02de8e8e0"),
|
214
|
-
body: i18nRuntime.i18n("b680997c50ca749acd4e6075cdca244e")
|
215
|
-
}),
|
216
|
-
asFormItem: true,
|
217
|
-
visibleOn: 'data.groupType === "drawer"',
|
218
|
-
children: function (_a) {
|
219
|
-
var value = _a.value,
|
220
|
-
onChange = _a.onChange;
|
221
|
-
_a.data;
|
222
|
-
return React__default["default"].createElement(amis.Button, {
|
223
|
-
size: "sm",
|
224
|
-
className: "action-btn-width",
|
225
|
-
onClick: function () {
|
226
|
-
return manager.openSubEditor({
|
227
|
-
title: i18nRuntime.i18n("262c7c7b9874ae5607fb51da468d0e8c"),
|
228
|
-
value: tslib.__assign({
|
229
|
-
type: 'drawer'
|
230
|
-
}, value),
|
231
|
-
onChange: function (value) {
|
232
|
-
return onChange(value);
|
233
|
-
}
|
234
|
-
});
|
235
|
-
},
|
236
|
-
block: true
|
237
|
-
}, i18nRuntime.i18n('a532be3ad5f3fda70d228b8542e81835'));
|
238
|
-
}
|
239
|
-
}]
|
240
|
-
}, {
|
241
|
-
actionLabel: i18nRuntime.i18n("3b02248ca3790e356e47b6900c0e3931"),
|
242
|
-
actionType: 'closeDialog',
|
243
|
-
description: i18nRuntime.i18n("f33c2c6ff58bcec40d3e74e591bb3df2") // 或者关闭指定弹窗
|
244
|
-
// schema: getArgsWrapper({
|
245
|
-
// type: 'wrapper',
|
246
|
-
// className: 'p-none',
|
247
|
-
// body: [
|
248
|
-
// {
|
249
|
-
// type: 'radios',
|
250
|
-
// label: '类型',
|
251
|
-
// name: 'groupType',
|
252
|
-
// mode: 'horizontal',
|
253
|
-
// value: 'closeDialog',
|
254
|
-
// required: true,
|
255
|
-
// pipeIn: defaultValue('closeDialog'),
|
256
|
-
// options: [
|
257
|
-
// {
|
258
|
-
// label: '弹窗',
|
259
|
-
// value: 'closeDialog'
|
260
|
-
// },
|
261
|
-
// {
|
262
|
-
// label: '抽屉',
|
263
|
-
// value: 'closeDrawer'
|
264
|
-
// }
|
265
|
-
// ],
|
266
|
-
// visibleOn: 'data.actionType === "closeDialog"'
|
267
|
-
// }
|
268
|
-
// ]
|
269
|
-
// })
|
270
|
-
},
|
271
|
-
// 暂时下掉,看后面具体设计
|
272
|
-
// {
|
273
|
-
// actionLabel: '打开提示对话框',
|
274
|
-
// actionType: 'alert',
|
275
|
-
// description: '弹个提示对话框'
|
276
|
-
// },
|
277
|
-
// {
|
278
|
-
// actionLabel: '打开确认对话框',
|
279
|
-
// actionType: 'confirm',
|
280
|
-
// description: '弹个确认对话框'
|
281
|
-
// },
|
282
|
-
{
|
283
|
-
actionLabel: i18nRuntime.i18n("e495f416b83e4c7ff3c66ec3be96a76f"),
|
284
|
-
actionType: 'toast',
|
285
|
-
description: i18nRuntime.i18n("61d7aaa88181c527cfb936d4c686d267"),
|
286
|
-
innerArgs: ['title', 'msgType', 'msg', 'position', 'timeout', 'closeButton', 'showIcon'],
|
287
|
-
descDetail: function (info) {
|
288
|
-
var _a, _b;
|
289
|
-
return React__default["default"].createElement("div", null, MSG_TYPES[(_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.msgType] || '', "\u6D88\u606F\uFF1A", React__default["default"].createElement("span", {
|
290
|
-
className: "variable-left"
|
291
|
-
}, ((_b = info === null || info === void 0 ? void 0 : info.args) === null || _b === void 0 ? void 0 : _b.msg) || '-'));
|
292
|
-
},
|
293
|
-
schema: helper.getArgsWrapper({
|
294
|
-
type: 'wrapper',
|
295
|
-
className: 'p-none',
|
296
|
-
body: [{
|
297
|
-
type: 'button-group-select',
|
298
|
-
name: 'msgType',
|
299
|
-
label: i18nRuntime.i18n("6d00710a2528332bfcac14b58e412042"),
|
300
|
-
value: 'info',
|
301
|
-
required: true,
|
302
|
-
mode: 'horizontal',
|
303
|
-
options: Object.keys(MSG_TYPES).map(function (key) {
|
304
|
-
return {
|
305
|
-
label: MSG_TYPES[key],
|
306
|
-
value: key,
|
307
|
-
level: 'default'
|
308
|
-
};
|
309
|
-
})
|
310
|
-
},
|
311
|
-
/*
|
312
|
-
{
|
313
|
-
name: 'msg',
|
314
|
-
label: '消息内容',
|
315
|
-
mode: 'horizontal',
|
316
|
-
type: 'input-formula',
|
317
|
-
variables: '${variables}',
|
318
|
-
evalMode: false,
|
319
|
-
variableMode: 'tabs',
|
320
|
-
inputMode: 'input-group',
|
321
|
-
size: 'lg',
|
322
|
-
required: true
|
323
|
-
},
|
324
|
-
*/
|
325
|
-
{
|
326
|
-
name: 'msg',
|
327
|
-
label: i18nRuntime.i18n("b87b77561e776367e6756e11ea652217"),
|
328
|
-
type: 'ae-textareaFormulaControl',
|
329
|
-
mode: 'horizontal',
|
330
|
-
variables: '${variables}',
|
331
|
-
size: 'lg',
|
332
|
-
required: true
|
333
|
-
},
|
334
|
-
/*
|
335
|
-
{
|
336
|
-
name: 'title',
|
337
|
-
type: 'input-formula',
|
338
|
-
variables: '${variables}',
|
339
|
-
evalMode: false,
|
340
|
-
variableMode: 'tabs',
|
341
|
-
inputMode: 'input-group',
|
342
|
-
label: '标题内容',
|
343
|
-
size: 'lg',
|
344
|
-
mode: 'horizontal'
|
345
|
-
},
|
346
|
-
*/
|
347
|
-
{
|
348
|
-
name: 'title',
|
349
|
-
label: i18nRuntime.i18n("43ab9af06e1e0f0b2a8767b46cf8b1cf"),
|
350
|
-
type: 'ae-textareaFormulaControl',
|
351
|
-
variables: '${variables}',
|
352
|
-
mode: 'horizontal',
|
353
|
-
size: 'lg'
|
354
|
-
},
|
355
|
-
/*
|
356
|
-
{
|
357
|
-
name: 'timeout',
|
358
|
-
type: 'input-formula',
|
359
|
-
variables: '${variables}',
|
360
|
-
evalMode: false,
|
361
|
-
variableMode: 'tabs',
|
362
|
-
inputMode: 'input-group',
|
363
|
-
label: '持续时间(ms)',
|
364
|
-
size: 'lg',
|
365
|
-
mode: 'horizontal'
|
366
|
-
},
|
367
|
-
*/
|
368
|
-
{
|
369
|
-
name: 'timeout',
|
370
|
-
label: i18nRuntime.i18n("f41a94bb85c5223181c4cdf83ea9021b"),
|
371
|
-
type: 'ae-formulaControl',
|
372
|
-
rendererSchema: {
|
373
|
-
type: 'input-number'
|
374
|
-
},
|
375
|
-
valueType: 'number',
|
376
|
-
variables: '${variables}',
|
377
|
-
size: 'lg',
|
378
|
-
mode: 'horizontal'
|
379
|
-
}, {
|
380
|
-
type: 'button-group-select',
|
381
|
-
name: 'position',
|
382
|
-
value: 'top-right',
|
383
|
-
mode: 'horizontal',
|
384
|
-
label: i18nRuntime.i18n("a0a837f2873de80bc9ec353c30e73171"),
|
385
|
-
options: [{
|
386
|
-
label: i18nRuntime.i18n("f3296f64a8a1330d7a07f1d269a1db92"),
|
387
|
-
value: 'top-left'
|
388
|
-
}, {
|
389
|
-
label: i18nRuntime.i18n("b97a5adf068bee6c852db9dcea3a9799"),
|
390
|
-
value: 'top-center'
|
391
|
-
}, {
|
392
|
-
label: i18nRuntime.i18n("eafeba264b6338939f11f1b1adf40d2b"),
|
393
|
-
value: 'top-right'
|
394
|
-
}, {
|
395
|
-
label: i18nRuntime.i18n("d429ffb093e9aa3bf80da125f1be318c"),
|
396
|
-
value: 'bottom-left'
|
397
|
-
}, {
|
398
|
-
label: i18nRuntime.i18n("c241aa8f427118a719b94cbd8f2bb22d"),
|
399
|
-
value: 'bottom-center'
|
400
|
-
}, {
|
401
|
-
label: i18nRuntime.i18n("9cd707caffdfb314d939298f2f2c267c"),
|
402
|
-
value: 'bottom-right'
|
403
|
-
}]
|
404
|
-
}, {
|
405
|
-
type: 'switch',
|
406
|
-
name: 'closeButton',
|
407
|
-
value: true,
|
408
|
-
label: i18nRuntime.i18n("8c8fbec263e20f087555c9abcb6dd07a"),
|
409
|
-
mode: 'horizontal'
|
410
|
-
}, {
|
411
|
-
type: 'switch',
|
412
|
-
name: 'showIcon',
|
413
|
-
value: true,
|
414
|
-
label: i18nRuntime.i18n("3f3a016027e540ef10a16dbd49fffde9"),
|
415
|
-
mode: 'horizontal'
|
416
|
-
}]
|
417
|
-
})
|
418
|
-
}]
|
419
|
-
}, {
|
420
|
-
actionLabel: i18nRuntime.i18n("47d68cd0f4c3e91a86d23afe8afccfb8"),
|
421
|
-
actionType: 'service',
|
422
|
-
children: [{
|
423
|
-
actionLabel: i18nRuntime.i18n("4f02d2efe05a20232ab9da63c090595c"),
|
424
|
-
actionType: 'ajax',
|
425
|
-
description: i18nRuntime.i18n("0cd902f953656adb29985b68e6fc9754"),
|
426
|
-
innerArgs: ['api', 'options'],
|
427
|
-
descDetail: function (info) {
|
428
|
-
var _a;
|
429
|
-
var apiInfo = (_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.api;
|
430
|
-
if (typeof apiInfo === 'string') {
|
431
|
-
apiInfo = amisCore.normalizeApi(apiInfo);
|
432
|
-
}
|
433
|
-
return React__default["default"].createElement("div", null, "\u53D1\u9001", React__default["default"].createElement("span", {
|
434
|
-
className: "variable-right variable-left"
|
435
|
-
}, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.method) || '-'), "\u8BF7\u6C42\uFF1A", React__default["default"].createElement("span", {
|
436
|
-
className: "variable-left"
|
437
|
-
}, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.url) || '-'));
|
438
|
-
},
|
439
|
-
schema: {
|
440
|
-
type: 'wrapper',
|
441
|
-
className: 'p-none',
|
442
|
-
body: [helper.getArgsWrapper([amisEditorCore.getSchemaTpl('apiControl', {
|
443
|
-
name: 'api',
|
444
|
-
label: i18nRuntime.i18n("88bdaf32c27ab169d3d686b86b3fae99"),
|
445
|
-
mode: 'horizontal',
|
446
|
-
size: 'lg',
|
447
|
-
inputClassName: 'm-b-none',
|
448
|
-
renderLabel: true,
|
449
|
-
required: true
|
450
|
-
}), {
|
451
|
-
name: 'options',
|
452
|
-
type: 'combo',
|
453
|
-
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("6e6d4269d0dc3324d551062350a2ae9f"), i18nRuntime.i18n("56e13c39822a814ab39b0d5a0867d7dc")),
|
454
|
-
mode: 'horizontal',
|
455
|
-
items: [{
|
456
|
-
type: 'switch',
|
457
|
-
name: 'silent',
|
458
|
-
label: false,
|
459
|
-
onText: i18nRuntime.i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),
|
460
|
-
offText: i18nRuntime.i18n("b15d91274e9fc68608c609999e0413fa"),
|
461
|
-
mode: 'horizontal',
|
462
|
-
pipeIn: amisEditorCore.defaultValue(false)
|
463
|
-
}]
|
464
|
-
}], false, {
|
465
|
-
className: 'action-apiControl'
|
466
|
-
}), {
|
467
|
-
name: 'outputVar',
|
468
|
-
type: 'input-text',
|
469
|
-
label: i18nRuntime.i18n("e3b49b5bbbdea05598525e91dbdfa638"),
|
470
|
-
placeholder: i18nRuntime.i18n("4dca05af026848011eedee1b53efa61c"),
|
471
|
-
description: i18nRuntime.i18n("4da82260041107e5780bcbb3a14ef791"),
|
472
|
-
mode: 'horizontal',
|
473
|
-
size: 'lg',
|
474
|
-
value: 'responseResult',
|
475
|
-
required: true
|
476
|
-
}]
|
477
|
-
},
|
478
|
-
outputVarDataSchema: [{
|
479
|
-
type: 'object',
|
480
|
-
properties: {
|
481
|
-
'event.data.${outputVar}.responseData': {
|
482
|
-
type: 'object',
|
483
|
-
title: i18nRuntime.i18n("0d83078816aa273f2941c9b55ec82bf3")
|
484
|
-
},
|
485
|
-
'event.data.${outputVar}.responseStatus': {
|
486
|
-
type: 'number',
|
487
|
-
title: i18nRuntime.i18n("3f9e257178738d5d180ddc2996809c10")
|
488
|
-
},
|
489
|
-
'event.data.${outputVar}.responseMsg': {
|
490
|
-
type: 'string',
|
491
|
-
title: i18nRuntime.i18n("99c74120cc62f4bf31d661e3212b7121")
|
492
|
-
}
|
493
|
-
}
|
494
|
-
}]
|
495
|
-
}, {
|
496
|
-
actionLabel: i18nRuntime.i18n("5dfd5a78e2ba1bc8afb482a8745454ea"),
|
497
|
-
actionType: 'download',
|
498
|
-
description: i18nRuntime.i18n("89049706952412d790b801def284629e"),
|
499
|
-
innerArgs: ['api'],
|
500
|
-
schema: {
|
501
|
-
type: 'wrapper',
|
502
|
-
style: {
|
503
|
-
padding: '0'
|
504
|
-
},
|
505
|
-
body: [helper.getArgsWrapper(amisEditorCore.getSchemaTpl('apiControl', {
|
506
|
-
name: 'api',
|
507
|
-
label: i18nRuntime.i18n("88bdaf32c27ab169d3d686b86b3fae99"),
|
508
|
-
mode: 'horizontal',
|
509
|
-
inputClassName: 'm-b-none',
|
510
|
-
size: 'lg',
|
511
|
-
renderLabel: true,
|
512
|
-
required: true
|
513
|
-
}), false, {
|
514
|
-
className: 'action-apiControl'
|
515
|
-
})]
|
516
|
-
}
|
517
|
-
}]
|
518
|
-
}, {
|
519
|
-
actionLabel: i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"),
|
520
|
-
actionType: 'cmpt',
|
521
|
-
children: [{
|
522
|
-
actionLabel: i18nRuntime.i18n("c852fb60f1b8ce921c3def1eba000bc5"),
|
523
|
-
actionType: 'visibility',
|
524
|
-
description: i18nRuntime.i18n("1bd4cfded5e11a7a8ea4dcfd2fa17e15"),
|
525
|
-
actions: [{
|
526
|
-
actionType: 'show',
|
527
|
-
descDetail: function (info) {
|
528
|
-
return React__default["default"].createElement("div", null, "\u663E\u793A", React__default["default"].createElement("span", {
|
529
|
-
className: "variable-left variable-right"
|
530
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
531
|
-
}
|
532
|
-
}, {
|
533
|
-
actionType: 'hidden',
|
534
|
-
descDetail: function (info) {
|
535
|
-
return React__default["default"].createElement("div", null, "\u9690\u85CF", React__default["default"].createElement("span", {
|
536
|
-
className: "variable-left variable-right"
|
537
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
538
|
-
}
|
539
|
-
}, {
|
540
|
-
actionType: 'visibility',
|
541
|
-
descDetail: function (info) {
|
542
|
-
return React__default["default"].createElement("div", null, "\u7EC4\u4EF6", React__default["default"].createElement("span", {
|
543
|
-
className: "variable-left variable-right"
|
544
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u8868\u8FBE\u5F0F\u5DF2\u914D\u7F6E");
|
545
|
-
}
|
546
|
-
}],
|
547
|
-
supportComponents: '*',
|
548
|
-
schema: tslib.__spreadArray(tslib.__spreadArray([], helper.renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true), true), [{
|
549
|
-
type: 'radios',
|
550
|
-
label: i18nRuntime.i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
|
551
|
-
name: 'groupType',
|
552
|
-
mode: 'horizontal',
|
553
|
-
value: 'static',
|
554
|
-
required: true,
|
555
|
-
inputClassName: 'event-action-radio',
|
556
|
-
options: [{
|
557
|
-
label: i18nRuntime.i18n("8baf21fa26d6d24b4faa872953275d8d"),
|
558
|
-
value: 'static'
|
559
|
-
}, {
|
560
|
-
label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
561
|
-
value: 'visibility'
|
562
|
-
}]
|
563
|
-
}, {
|
564
|
-
type: 'radios',
|
565
|
-
label: i18nRuntime.i18n("edf25860e3d457eb8ca9cb5dca06dfd7"),
|
566
|
-
name: '__statusType',
|
567
|
-
mode: 'horizontal',
|
568
|
-
value: 'show',
|
569
|
-
required: true,
|
570
|
-
pipeIn: amisEditorCore.defaultValue('show'),
|
571
|
-
inputClassName: 'event-action-radio',
|
572
|
-
visibleOn: "this.groupType === 'static'",
|
573
|
-
options: [{
|
574
|
-
label: i18nRuntime.i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"),
|
575
|
-
value: 'show'
|
576
|
-
}, {
|
577
|
-
label: i18nRuntime.i18n("dce5379cb978a8259ecfca8f08f00817"),
|
578
|
-
value: 'hidden'
|
579
|
-
}]
|
580
|
-
}, {
|
581
|
-
type: 'ae-expressionFormulaControl',
|
582
|
-
mode: 'horizontal',
|
583
|
-
label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
584
|
-
required: true,
|
585
|
-
size: 'lg',
|
586
|
-
variables: '${variables}',
|
587
|
-
evalMode: true,
|
588
|
-
name: '__actionExpression',
|
589
|
-
visibleOn: "this.groupType === 'visibility'"
|
590
|
-
}], false)
|
591
|
-
}, {
|
592
|
-
actionLabel: i18nRuntime.i18n("12c8d50c55eeec7059ddd5c303e34f77"),
|
593
|
-
actionType: 'usability',
|
594
|
-
description: i18nRuntime.i18n("5e75800641ec5c1198092bcf9d34f180"),
|
595
|
-
actions: [{
|
596
|
-
actionType: 'enabled',
|
597
|
-
descDetail: function (info) {
|
598
|
-
return React__default["default"].createElement("div", null, "\u542F\u7528", React__default["default"].createElement("span", {
|
599
|
-
className: "variable-left variable-right"
|
600
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
601
|
-
}
|
602
|
-
}, {
|
603
|
-
actionType: 'disabled',
|
604
|
-
descDetail: function (info) {
|
605
|
-
return React__default["default"].createElement("div", null, "\u7981\u7528", React__default["default"].createElement("span", {
|
606
|
-
className: "variable-left variable-right"
|
607
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
608
|
-
}
|
609
|
-
}, {
|
610
|
-
actionType: 'usability',
|
611
|
-
descDetail: function (info) {
|
612
|
-
return React__default["default"].createElement("div", null, "\u7EC4\u4EF6", React__default["default"].createElement("span", {
|
613
|
-
className: "variable-left variable-right"
|
614
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u8868\u8FBE\u5F0F\u5DF2\u914D\u7F6E");
|
615
|
-
}
|
616
|
-
}],
|
617
|
-
supportComponents: tslib.__spreadArray(tslib.__spreadArray(['form'], helper.FORMITEM_CMPTS, true), helper.SUPPORT_DISABLED_CMPTS, true),
|
618
|
-
schema: tslib.__spreadArray(tslib.__spreadArray([], helper.renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true), true), [{
|
619
|
-
type: 'radios',
|
620
|
-
label: i18nRuntime.i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
|
621
|
-
name: 'groupType',
|
622
|
-
mode: 'horizontal',
|
623
|
-
inputClassName: 'event-action-radio',
|
624
|
-
value: 'static',
|
625
|
-
required: true,
|
626
|
-
options: [{
|
627
|
-
label: i18nRuntime.i18n("8baf21fa26d6d24b4faa872953275d8d"),
|
628
|
-
value: 'static'
|
629
|
-
}, {
|
630
|
-
label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
631
|
-
value: 'usability'
|
632
|
-
}]
|
633
|
-
}, {
|
634
|
-
type: 'radios',
|
635
|
-
label: i18nRuntime.i18n("d86d5919f595226b7a1e8264635ca23d"),
|
636
|
-
name: '__statusType',
|
637
|
-
mode: 'horizontal',
|
638
|
-
inputClassName: 'event-action-radio',
|
639
|
-
value: 'enabled',
|
640
|
-
required: true,
|
641
|
-
pipeIn: amisEditorCore.defaultValue('enabled'),
|
642
|
-
visibleOn: "this.groupType === 'static'",
|
643
|
-
options: [{
|
644
|
-
label: i18nRuntime.i18n("7854b52a889b3ef0590d9f542efeb4c8"),
|
645
|
-
value: 'enabled'
|
646
|
-
}, {
|
647
|
-
label: i18nRuntime.i18n("710ad08b11419332713360d2750cd707"),
|
648
|
-
value: 'disabled'
|
649
|
-
}]
|
650
|
-
}, {
|
651
|
-
type: 'ae-expressionFormulaControl',
|
652
|
-
mode: 'horizontal',
|
653
|
-
label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
654
|
-
required: true,
|
655
|
-
size: 'lg',
|
656
|
-
evalMode: true,
|
657
|
-
name: '__actionExpression',
|
658
|
-
visibleOn: "this.groupType === 'usability'"
|
659
|
-
}], false)
|
660
|
-
}, {
|
661
|
-
actionLabel: i18nRuntime.i18n("e052287273ad39a1d3fa9fa3decb5fd9"),
|
662
|
-
actionType: 'staticStatus',
|
663
|
-
description: i18nRuntime.i18n("506f28f48dbebd5d19e19dfc721e13be"),
|
664
|
-
actions: [{
|
665
|
-
actionType: 'static',
|
666
|
-
descDetail: function (info) {
|
667
|
-
return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
|
668
|
-
className: "variable-right"
|
669
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "\u7EC4\u4EF6\u5207\u6362\u4E3A\u9759\u6001");
|
670
|
-
}
|
671
|
-
}, {
|
672
|
-
actionType: 'nonstatic',
|
673
|
-
descDetail: function (info) {
|
674
|
-
return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
|
675
|
-
className: "variable-right"
|
676
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "\u7EC4\u4EF6\u5207\u6362\u4E3A\u8F93\u5165\u6001");
|
677
|
-
}
|
678
|
-
}],
|
679
|
-
supportComponents: tslib.__spreadArray(['form'], helper.SUPPORT_STATIC_FORMITEM_CMPTS, true),
|
680
|
-
schema: tslib.__spreadArray(tslib.__spreadArray([], helper.renderCmptSelect(i18nRuntime.i18n("d80bc0fcbfb250480320b683e48b1467"), true), true), [{
|
681
|
-
type: 'radios',
|
682
|
-
label: i18nRuntime.i18n("d2e930293da37452638759e17d771adf"),
|
683
|
-
name: 'groupType',
|
684
|
-
mode: 'horizontal',
|
685
|
-
inputClassName: 'event-action-radio',
|
686
|
-
value: 'nonstatic',
|
687
|
-
required: true,
|
688
|
-
pipeIn: amisEditorCore.defaultValue('nonstatic'),
|
689
|
-
options: [{
|
690
|
-
label: i18nRuntime.i18n("b535bea11c97ec5588b1494799de4d60"),
|
691
|
-
value: 'nonstatic'
|
692
|
-
}, {
|
693
|
-
label: i18nRuntime.i18n("f7784642f42d33f506ba05f3daefc3c4"),
|
694
|
-
value: 'static'
|
695
|
-
}]
|
696
|
-
}], false)
|
697
|
-
}, {
|
698
|
-
actionLabel: i18nRuntime.i18n("c5a9b6e8c522de8a14ad7fab51c1a1e3"),
|
699
|
-
actionType: 'reload',
|
700
|
-
description: i18nRuntime.i18n("be4b778e7f5aa6aa5a811d7db4e1a8b3"),
|
701
|
-
descDetail: function (info) {
|
702
|
-
return React__default["default"].createElement("div", null, "\u5237\u65B0", React__default["default"].createElement("span", {
|
703
|
-
className: "variable-left variable-right"
|
704
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
705
|
-
},
|
706
|
-
supportComponents: 'byComponent',
|
707
|
-
schema: tslib.__spreadArray(tslib.__spreadArray([], helper.renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
|
708
|
-
form.setValueByName('args.resetPage', true);
|
709
|
-
form.setValueByName('__addParam', true);
|
710
|
-
form.setValueByName('__customData', false);
|
711
|
-
form.setValueByName('__containerType', 'all');
|
712
|
-
form.setValueByName('__reloadParam', []);
|
713
|
-
}), true), [{
|
714
|
-
type: 'switch',
|
715
|
-
name: '__resetPage',
|
716
|
-
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("697af73997072e0ce9ee65b15a7b3715"), i18nRuntime.i18n("d7bf42dd6e66f2818f9a232603c4a53b")),
|
717
|
-
onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
|
718
|
-
offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
719
|
-
mode: 'horizontal',
|
720
|
-
pipeIn: amisEditorCore.defaultValue(true),
|
721
|
-
visibleOn: "data.actionType === \"reload\" && data.__rendererName === \"crud\""
|
722
|
-
}, {
|
723
|
-
type: 'switch',
|
724
|
-
name: '__addParam',
|
725
|
-
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("fee99f2bcced486e4753a8f58f511d3f"), i18nRuntime.i18n("0f9803bd27434940d4017007c105a861")),
|
726
|
-
onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
|
727
|
-
offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
728
|
-
mode: 'horizontal',
|
729
|
-
pipeIn: amisEditorCore.defaultValue(true),
|
730
|
-
visibleOn: "data.actionType === \"reload\" && ".concat(helper.IS_DATA_CONTAINER)
|
731
|
-
}, {
|
732
|
-
type: 'switch',
|
733
|
-
name: '__customData',
|
734
|
-
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("fd951a59a7c635d5330bc1aeec22c813"), i18nRuntime.i18n("b62ce3df3c0d5772006c525b60d5eeab")),
|
735
|
-
onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
|
736
|
-
offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
737
|
-
mode: 'horizontal',
|
738
|
-
pipeIn: amisEditorCore.defaultValue(true),
|
739
|
-
visibleOn: "data.__addParam && data.actionType === \"reload\" && ".concat(helper.IS_DATA_CONTAINER),
|
740
|
-
onChange: function (value, oldVal, data, form) {
|
741
|
-
form.setValueByName('__containerType', 'all');
|
742
|
-
}
|
743
|
-
}, {
|
744
|
-
type: 'radios',
|
745
|
-
name: '__containerType',
|
746
|
-
mode: 'horizontal',
|
747
|
-
label: '',
|
748
|
-
pipeIn: amisEditorCore.defaultValue('all'),
|
749
|
-
visibleOn: "data.__addParam && data.__customData && data.actionType === \"reload\" && ".concat(helper.IS_DATA_CONTAINER),
|
750
|
-
options: [{
|
751
|
-
label: i18nRuntime.i18n("77b1081c177fa3334cc93c99f0ecee75"),
|
752
|
-
value: 'all'
|
753
|
-
}, {
|
754
|
-
label: i18nRuntime.i18n("f5c5e3d69daee06ea1606378ef466765"),
|
755
|
-
value: 'appoint'
|
756
|
-
}],
|
757
|
-
onChange: function (value, oldVal, data, form) {
|
758
|
-
form.setValueByName('__reloadParams', []);
|
759
|
-
form.setValueByName('__valueInput', undefined);
|
760
|
-
}
|
761
|
-
},
|
762
|
-
/*
|
763
|
-
{
|
764
|
-
name: '__valueInput',
|
765
|
-
type: 'input-formula',
|
766
|
-
variables: '${variables}',
|
767
|
-
evalMode: false,
|
768
|
-
required: true,
|
769
|
-
variableMode: 'tabs',
|
770
|
-
inputMode: 'input-group',
|
771
|
-
label: '',
|
772
|
-
size: 'lg',
|
773
|
-
mode: 'horizontal',
|
774
|
-
visibleOn: `data.__addParam && data.__customData && data.__containerType === "all" && data.actionType === "reload" && ${IS_DATA_CONTAINER}`
|
775
|
-
},
|
776
|
-
*/
|
777
|
-
{
|
778
|
-
name: '__valueInput',
|
779
|
-
label: '',
|
780
|
-
type: 'ae-formulaControl',
|
781
|
-
variables: '${variables}',
|
782
|
-
size: 'lg',
|
783
|
-
mode: 'horizontal',
|
784
|
-
required: true,
|
785
|
-
visibleOn: "data.__addParam && data.__customData && data.__containerType === \"all\" && data.actionType === \"reload\" && ".concat(helper.IS_DATA_CONTAINER)
|
786
|
-
}, {
|
787
|
-
type: 'combo',
|
788
|
-
name: '__reloadParams',
|
789
|
-
label: '',
|
790
|
-
multiple: true,
|
791
|
-
removable: true,
|
792
|
-
addable: true,
|
793
|
-
strictMode: false,
|
794
|
-
canAccessSuperData: true,
|
795
|
-
size: 'lg',
|
796
|
-
mode: 'horizontal',
|
797
|
-
items: [{
|
798
|
-
name: 'key',
|
799
|
-
type: 'input-text',
|
800
|
-
placeholder: i18nRuntime.i18n("c068b579db3bf0a553bd0af4f81cc14f"),
|
801
|
-
labelField: 'label',
|
802
|
-
valueField: 'value',
|
803
|
-
required: true
|
804
|
-
},
|
805
|
-
/*
|
806
|
-
{
|
807
|
-
name: 'val',
|
808
|
-
type: 'input-formula',
|
809
|
-
placeholder: '参数值',
|
810
|
-
variables: '${variables}',
|
811
|
-
evalMode: false,
|
812
|
-
variableMode: 'tabs',
|
813
|
-
inputMode: 'input-group'
|
814
|
-
}
|
815
|
-
*/
|
816
|
-
{
|
817
|
-
name: 'val',
|
818
|
-
type: 'ae-formulaControl',
|
819
|
-
variables: '${variables}',
|
820
|
-
placeholder: i18nRuntime.i18n("bfed4943c5f487de1b63a82f7230cce2")
|
821
|
-
}],
|
822
|
-
visibleOn: "data.__addParam && data.__customData && data.__containerType === \"appoint\" && data.actionType === \"reload\" && ".concat(helper.IS_DATA_CONTAINER)
|
823
|
-
}, {
|
824
|
-
type: 'radios',
|
825
|
-
name: 'dataMergeMode',
|
826
|
-
mode: 'horizontal',
|
827
|
-
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("2aecb19ca1655d66fc80fc27a783cc9e"), i18nRuntime.i18n("b67b01a3b9170f1daf78082cfd0df793")),
|
828
|
-
pipeIn: amisEditorCore.defaultValue('merge'),
|
829
|
-
visibleOn: "data.__addParam && data.actionType === \"reload\" && ".concat(helper.IS_DATA_CONTAINER),
|
830
|
-
options: [{
|
831
|
-
label: i18nRuntime.i18n("bd81577a6fd4956e676cec499bb70d00"),
|
832
|
-
value: 'merge'
|
833
|
-
}, {
|
834
|
-
label: i18nRuntime.i18n("e09fea40f7e4abd4b2a495b315940688"),
|
835
|
-
value: 'override'
|
836
|
-
}]
|
837
|
-
}], false)
|
838
|
-
}, {
|
839
|
-
actionLabel: i18nRuntime.i18n("fa644cb20c66f7530d8a376d4fa6a36e"),
|
840
|
-
actionType: 'setValue',
|
841
|
-
description: i18nRuntime.i18n("7d9260bd45b2e85a09398f218c25f220"),
|
842
|
-
innerArgs: ['value', 'index', '__valueInput', '__comboType', '__containerType'],
|
843
|
-
descDetail: function (info) {
|
844
|
-
return React__default["default"].createElement("div", null, "\u8BBE\u7F6E", React__default["default"].createElement("span", {
|
845
|
-
className: "variable-left variable-right"
|
846
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
847
|
-
},
|
848
|
-
supportComponents: 'byComponent',
|
849
|
-
schema: tslib.__spreadArray(tslib.__spreadArray([], helper.renderCmptActionSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
|
850
|
-
form.setValueByName('args.__containerType', 'all');
|
851
|
-
form.setValueByName('args.__comboType', 'all');
|
852
|
-
}), true), [helper.getArgsWrapper({
|
853
|
-
type: 'wrapper',
|
854
|
-
className: 'p-none',
|
855
|
-
body: [{
|
856
|
-
type: 'radios',
|
857
|
-
name: '__containerType',
|
858
|
-
mode: 'horizontal',
|
859
|
-
label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
|
860
|
-
pipeIn: amisEditorCore.defaultValue('all'),
|
861
|
-
visibleOn: "".concat(helper.IS_DATA_CONTAINER),
|
862
|
-
options: [{
|
863
|
-
label: i18nRuntime.i18n("77b1081c177fa3334cc93c99f0ecee75"),
|
864
|
-
value: 'all'
|
865
|
-
}, {
|
866
|
-
label: i18nRuntime.i18n("f5c5e3d69daee06ea1606378ef466765"),
|
867
|
-
value: 'appoint'
|
868
|
-
}],
|
869
|
-
onChange: function (value, oldVal, data, form) {
|
870
|
-
form.setValueByName('value', []);
|
871
|
-
form.setValueByName('__valueInput', undefined);
|
872
|
-
}
|
873
|
-
}, {
|
874
|
-
type: 'radios',
|
875
|
-
name: '__comboType',
|
876
|
-
inputClassName: 'event-action-radio',
|
877
|
-
mode: 'horizontal',
|
878
|
-
label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
|
879
|
-
pipeIn: amisEditorCore.defaultValue('all'),
|
880
|
-
visibleOn: "data.__rendererName === 'combo'",
|
881
|
-
options: [{
|
882
|
-
label: i18nRuntime.i18n("c60ad696dee4e1eeff6f0f2c2e9b9fc0"),
|
883
|
-
value: 'all'
|
884
|
-
}, {
|
885
|
-
label: i18nRuntime.i18n("139294edcce271bf483dda437c421c29"),
|
886
|
-
value: 'appoint'
|
887
|
-
}],
|
888
|
-
onChange: function (value, oldVal, data, form) {
|
889
|
-
form.setValueByName('index', undefined);
|
890
|
-
form.setValueByName('value', []);
|
891
|
-
form.setValueByName('__valueInput', undefined);
|
892
|
-
}
|
893
|
-
}, {
|
894
|
-
type: 'input-number',
|
895
|
-
required: true,
|
896
|
-
name: 'index',
|
897
|
-
mode: 'horizontal',
|
898
|
-
label: i18nRuntime.i18n("a7b0b80a7bea1e5e973967c179866ef0"),
|
899
|
-
size: 'lg',
|
900
|
-
placeholder: i18nRuntime.i18n("e887792fbbd65d21e43e832a5cd63aac"),
|
901
|
-
visibleOn: "data.__comboType === 'appoint' && data.__rendererName === 'combo'"
|
902
|
-
}, {
|
903
|
-
type: 'combo',
|
904
|
-
name: 'value',
|
905
|
-
label: '',
|
906
|
-
multiple: true,
|
907
|
-
removable: true,
|
908
|
-
required: true,
|
909
|
-
addable: true,
|
910
|
-
strictMode: false,
|
911
|
-
canAccessSuperData: true,
|
912
|
-
size: 'lg',
|
913
|
-
mode: 'horizontal',
|
914
|
-
items: [{
|
915
|
-
name: 'key',
|
916
|
-
type: 'input-text',
|
917
|
-
placeholder: i18nRuntime.i18n("a25657422b40023f2731619587940bc7"),
|
918
|
-
source: '${__setValueDs}',
|
919
|
-
labelField: 'label',
|
920
|
-
valueField: 'value',
|
921
|
-
required: true
|
922
|
-
},
|
923
|
-
/*
|
924
|
-
{
|
925
|
-
name: 'val',
|
926
|
-
type: 'input-formula',
|
927
|
-
placeholder: '字段值',
|
928
|
-
variables: '${variables}',
|
929
|
-
evalMode: false,
|
930
|
-
variableMode: 'tabs',
|
931
|
-
inputMode: 'input-group'
|
932
|
-
}
|
933
|
-
*/
|
934
|
-
{
|
935
|
-
name: 'val',
|
936
|
-
type: 'ae-formulaControl',
|
937
|
-
variables: '${variables}',
|
938
|
-
placeholder: i18nRuntime.i18n("a33903526e8fb3d1ac3066da70e7941e")
|
939
|
-
}],
|
940
|
-
visibleOn: "".concat(helper.IS_DATA_CONTAINER, " && data.__containerType === 'appoint' || data.__comboType === 'appoint'")
|
941
|
-
}, {
|
942
|
-
type: 'combo',
|
943
|
-
name: 'value',
|
944
|
-
label: '',
|
945
|
-
multiple: true,
|
946
|
-
removable: true,
|
947
|
-
required: true,
|
948
|
-
addable: true,
|
949
|
-
strictMode: false,
|
950
|
-
canAccessSuperData: true,
|
951
|
-
mode: 'horizontal',
|
952
|
-
size: 'lg',
|
953
|
-
items: [{
|
954
|
-
type: 'combo',
|
955
|
-
name: 'item',
|
956
|
-
label: false,
|
957
|
-
renderLabel: false,
|
958
|
-
multiple: true,
|
959
|
-
removable: true,
|
960
|
-
required: true,
|
961
|
-
addable: true,
|
962
|
-
strictMode: false,
|
963
|
-
canAccessSuperData: true,
|
964
|
-
className: 'm-l',
|
965
|
-
size: 'lg',
|
966
|
-
mode: 'horizontal',
|
967
|
-
items: [{
|
968
|
-
name: 'key',
|
969
|
-
type: 'input-text',
|
970
|
-
source: '${__setValueDs}',
|
971
|
-
labelField: 'label',
|
972
|
-
valueField: 'value',
|
973
|
-
required: true,
|
974
|
-
visibleOn: "data.__rendererName"
|
975
|
-
},
|
976
|
-
/*
|
977
|
-
{
|
978
|
-
name: 'val',
|
979
|
-
type: 'input-formula',
|
980
|
-
variables: '${variables}',
|
981
|
-
evalMode: false,
|
982
|
-
variableMode: 'tabs',
|
983
|
-
inputMode: 'input-group'
|
984
|
-
}
|
985
|
-
*/
|
986
|
-
{
|
987
|
-
name: 'val',
|
988
|
-
type: 'ae-formulaControl',
|
989
|
-
variables: '${variables}'
|
990
|
-
}]
|
991
|
-
}],
|
992
|
-
visibleOn: "data.__rendererName === 'combo' && data.__comboType === 'all'"
|
993
|
-
},
|
994
|
-
/*
|
995
|
-
{
|
996
|
-
name: '__valueInput',
|
997
|
-
type: 'input-formula',
|
998
|
-
variables: '${variables}',
|
999
|
-
evalMode: false,
|
1000
|
-
variableMode: 'tabs',
|
1001
|
-
inputMode: 'input-group',
|
1002
|
-
label: '',
|
1003
|
-
size: 'lg',
|
1004
|
-
mode: 'horizontal',
|
1005
|
-
visibleOn: `(${IS_DATA_CONTAINER} || ${SHOW_SELECT_PROP}) && data.__containerType === 'all'`,
|
1006
|
-
required: true
|
1007
|
-
},
|
1008
|
-
*/
|
1009
|
-
{
|
1010
|
-
name: '__valueInput',
|
1011
|
-
label: '',
|
1012
|
-
type: 'ae-formulaControl',
|
1013
|
-
variables: '${variables}',
|
1014
|
-
size: 'lg',
|
1015
|
-
mode: 'horizontal',
|
1016
|
-
visibleOn: "(".concat(helper.IS_DATA_CONTAINER, " || ").concat(helper.SHOW_SELECT_PROP, ") && data.__containerType === 'all'"),
|
1017
|
-
required: true
|
1018
|
-
},,
|
1019
|
-
/*
|
1020
|
-
{
|
1021
|
-
name: '__valueInput',
|
1022
|
-
type: 'input-formula',
|
1023
|
-
variables: '${variables}',
|
1024
|
-
evalMode: false,
|
1025
|
-
variableMode: 'tabs',
|
1026
|
-
inputMode: 'input-group',
|
1027
|
-
label: '数据设置',
|
1028
|
-
size: 'lg',
|
1029
|
-
mode: 'horizontal',
|
1030
|
-
visibleOn: `data.__rendererName && !${IS_DATA_CONTAINER} && data.__rendererName !== 'combo'`,
|
1031
|
-
required: true
|
1032
|
-
}
|
1033
|
-
*/
|
1034
|
-
{
|
1035
|
-
name: '__valueInput',
|
1036
|
-
label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
|
1037
|
-
type: 'ae-formulaControl',
|
1038
|
-
variables: '${variables}',
|
1039
|
-
size: 'lg',
|
1040
|
-
mode: 'horizontal',
|
1041
|
-
visibleOn: "data.__rendererName && !".concat(helper.IS_DATA_CONTAINER, " && data.__rendererName !== 'combo'"),
|
1042
|
-
required: true
|
1043
|
-
}]
|
1044
|
-
})], false)
|
1045
|
-
}, {
|
1046
|
-
actionLabel: i18nRuntime.i18n("4e34003861eee3de1e0c9c1222249bbb"),
|
1047
|
-
actionType: 'submit',
|
1048
|
-
description: i18nRuntime.i18n("a360c5d4e723ad78a5e52eb1f5f3f2a2"),
|
1049
|
-
descDetail: function (info) {
|
1050
|
-
return React__default["default"].createElement("div", null, "\u63D0\u4EA4", React__default["default"].createElement("span", {
|
1051
|
-
className: "variable-left variable-right"
|
1052
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1053
|
-
},
|
1054
|
-
supportComponents: 'form',
|
1055
|
-
schema: helper.renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)
|
1056
|
-
}, {
|
1057
|
-
actionLabel: i18nRuntime.i18n("4a3deab45c0a7218b8ae58a33fd24c28"),
|
1058
|
-
actionType: 'clear',
|
1059
|
-
description: i18nRuntime.i18n("82986a4cab1d0efdbc23b3ac5f0fd509"),
|
1060
|
-
descDetail: function (info) {
|
1061
|
-
return React__default["default"].createElement("div", null, "\u6E05\u7A7A", React__default["default"].createElement("span", {
|
1062
|
-
className: "variable-left variable-right"
|
1063
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1064
|
-
},
|
1065
|
-
supportComponents: 'form',
|
1066
|
-
schema: helper.renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)
|
1067
|
-
}, {
|
1068
|
-
actionLabel: i18nRuntime.i18n("1b6f5cc49e71c90a5b85a796285e3135"),
|
1069
|
-
actionType: 'reset',
|
1070
|
-
description: i18nRuntime.i18n("f457845da8c119a8688e333a3554284f"),
|
1071
|
-
descDetail: function (info) {
|
1072
|
-
return React__default["default"].createElement("div", null, "\u91CD\u7F6E", React__default["default"].createElement("span", {
|
1073
|
-
className: "variable-left variable-right"
|
1074
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1075
|
-
},
|
1076
|
-
supportComponents: 'form',
|
1077
|
-
schema: helper.renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)
|
1078
|
-
}, {
|
1079
|
-
actionLabel: i18nRuntime.i18n("17f2bf425eeb7d20d79c595344e9dc94"),
|
1080
|
-
actionType: 'validate',
|
1081
|
-
description: i18nRuntime.i18n("a84a1311bea7370f1749341ffa6f75e1"),
|
1082
|
-
descDetail: function (info) {
|
1083
|
-
return React__default["default"].createElement("div", null, "\u6821\u9A8C", React__default["default"].createElement("span", {
|
1084
|
-
className: "variable-left variable-right"
|
1085
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1086
|
-
},
|
1087
|
-
supportComponents: 'form',
|
1088
|
-
schema: helper.renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)
|
1089
|
-
}, {
|
1090
|
-
actionLabel: i18nRuntime.i18n("51325230409d4b7c64aaeb3db9904801"),
|
1091
|
-
actionType: 'component',
|
1092
|
-
description: i18nRuntime.i18n("98d130cb9a360df782f6510abacbc022"),
|
1093
|
-
supportComponents: '*',
|
1094
|
-
schema: helper.renderCmptActionSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"))
|
1095
|
-
}]
|
1096
|
-
}, {
|
1097
|
-
actionLabel: i18nRuntime.i18n("0d98c74797e49d00bcc4c17c9d557a2b"),
|
1098
|
-
actionType: 'others',
|
1099
|
-
children: [{
|
1100
|
-
actionLabel: i18nRuntime.i18n("6a086902a84969a835423002718e86b4"),
|
1101
|
-
actionType: 'copy',
|
1102
|
-
description: i18nRuntime.i18n("557d01c07aa7c4450a414932e6c1ed2a"),
|
1103
|
-
innerArgs: ['content', 'copyFormat'],
|
1104
|
-
descDetail: function (info) {
|
1105
|
-
var _a;
|
1106
|
-
return React__default["default"].createElement("div", null, "\u590D\u5236\u5185\u5BB9\uFF1A", React__default["default"].createElement("span", {
|
1107
|
-
className: "variable-left"
|
1108
|
-
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.content) || '-'));
|
1109
|
-
},
|
1110
|
-
schema: helper.getArgsWrapper({
|
1111
|
-
type: 'wrapper',
|
1112
|
-
className: 'p-none',
|
1113
|
-
body: [
|
1114
|
-
/*
|
1115
|
-
{
|
1116
|
-
name: 'content',
|
1117
|
-
type: 'input-formula',
|
1118
|
-
variables: '${variables}',
|
1119
|
-
evalMode: false,
|
1120
|
-
variableMode: 'tabs',
|
1121
|
-
inputMode: 'input-group',
|
1122
|
-
label: '内容模板',
|
1123
|
-
mode: 'horizontal',
|
1124
|
-
size: 'lg',
|
1125
|
-
visibleOn: 'data.actionType === "copy"',
|
1126
|
-
required: true
|
1127
|
-
},
|
1128
|
-
*/
|
1129
|
-
{
|
1130
|
-
name: 'content',
|
1131
|
-
label: i18nRuntime.i18n("ac04259507be8ba6b891dc9dc208f491"),
|
1132
|
-
type: 'ae-textareaFormulaControl',
|
1133
|
-
variables: '${variables}',
|
1134
|
-
mode: 'horizontal',
|
1135
|
-
size: 'lg',
|
1136
|
-
visibleOn: 'data.actionType === "copy"',
|
1137
|
-
required: true
|
1138
|
-
}, {
|
1139
|
-
type: 'select',
|
1140
|
-
name: 'copyFormat',
|
1141
|
-
mode: 'horizontal',
|
1142
|
-
value: 'text/plain',
|
1143
|
-
size: 'lg',
|
1144
|
-
options: [{
|
1145
|
-
label: i18nRuntime.i18n("ffb01e5bcf4c00447f5150d3cba81371"),
|
1146
|
-
value: 'text/plain'
|
1147
|
-
}, {
|
1148
|
-
label: i18nRuntime.i18n("e2591e971f4c28db7c80a5f546084a1d"),
|
1149
|
-
value: 'text/html'
|
1150
|
-
}],
|
1151
|
-
label: i18nRuntime.i18n("c28f4d63beabc4833b17aaa10ca550db")
|
1152
|
-
}]
|
1153
|
-
})
|
1154
|
-
}, {
|
1155
|
-
actionLabel: i18nRuntime.i18n("c7f16d729f3bca8f6936416884a74fb8"),
|
1156
|
-
actionType: 'custom',
|
1157
|
-
description: i18nRuntime.i18n("1b5a6299ef404c1f7b4292c290b80f55"),
|
1158
|
-
schema: {
|
1159
|
-
type: 'js-editor',
|
1160
|
-
allowFullscreen: true,
|
1161
|
-
required: true,
|
1162
|
-
name: 'script',
|
1163
|
-
label: i18nRuntime.i18n("c7f16d729f3bca8f6936416884a74fb8"),
|
1164
|
-
mode: 'horizontal',
|
1165
|
-
options: {
|
1166
|
-
automaticLayout: true,
|
1167
|
-
lineNumbers: 'off',
|
1168
|
-
glyphMargin: false,
|
1169
|
-
tabSize: 2,
|
1170
|
-
fontSize: '12px',
|
1171
|
-
wordWrap: 'on',
|
1172
|
-
lineDecorationsWidth: 0,
|
1173
|
-
lineNumbersMinChars: 0,
|
1174
|
-
selectOnLineNumbers: true,
|
1175
|
-
scrollBeyondLastLine: false,
|
1176
|
-
folding: true
|
1177
|
-
},
|
1178
|
-
className: 'ae-event-control-action-js-editor',
|
1179
|
-
value: "/* \u81EA\u5B9A\u4E49JS\u4F7F\u7528\u8BF4\u660E\uFF1A\n * 1.\u52A8\u4F5C\u6267\u884C\u51FD\u6570doAction\uFF0C\u53EF\u4EE5\u6267\u884C\u6240\u6709\u7C7B\u578B\u7684\u52A8\u4F5C\n * 2.\u901A\u8FC7\u4E0A\u4E0B\u6587\u5BF9\u8C61context\u53EF\u4EE5\u83B7\u53D6\u5F53\u524D\u7EC4\u4EF6\u5B9E\u4F8B\uFF0C\u4F8B\u5982context.props\u53EF\u4EE5\u83B7\u53D6\u8BE5\u7EC4\u4EF6\u76F8\u5173\u5C5E\u6027\n * 3.\u4E8B\u4EF6\u5BF9\u8C61event\uFF0C\u5728doAction\u4E4B\u540E\u6267\u884Cevent.stopPropagation = true;\u53EF\u4EE5\u963B\u6B62\u540E\u7EED\u52A8\u4F5C\u6267\u884C\n*/\nconst myMsg = '\u6211\u662F\u81EA\u5B9A\u4E49JS';\ndoAction({\n actionType: 'toast',\n args: {\n msg: myMsg\n }\n});\n"
|
1180
|
-
}
|
1181
|
-
}
|
1182
|
-
// {
|
1183
|
-
// actionLabel: '广播',
|
1184
|
-
// actionType: 'broadcast',
|
1185
|
-
// description: '发送广播事件',
|
1186
|
-
// schema: {
|
1187
|
-
// type: 'wrapper',
|
1188
|
-
// className: 'p-none',
|
1189
|
-
// body: [
|
1190
|
-
// {
|
1191
|
-
// type: 'input-text',
|
1192
|
-
// name: 'eventName',
|
1193
|
-
// label: '广播标识',
|
1194
|
-
// mode: 'horizontal',
|
1195
|
-
// required: true,
|
1196
|
-
// description: '广播事件标识派发出去后,其他组件可以进行监听并作出响应'
|
1197
|
-
// },
|
1198
|
-
// {
|
1199
|
-
// type: 'input-text',
|
1200
|
-
// label: '广播名称',
|
1201
|
-
// name: 'eventLabel',
|
1202
|
-
// mode: 'horizontal',
|
1203
|
-
// required: true
|
1204
|
-
// },
|
1205
|
-
// {
|
1206
|
-
// type: 'textarea',
|
1207
|
-
// label: '描述',
|
1208
|
-
// name: 'description',
|
1209
|
-
// mode: 'horizontal',
|
1210
|
-
// required: true
|
1211
|
-
// }
|
1212
|
-
// ]
|
1213
|
-
// }
|
1214
|
-
// }
|
1215
|
-
]
|
1216
|
-
}];
|
1217
|
-
};
|
1218
|
-
|
1219
|
-
exports["default"] = ACTION_TYPE_TREE;
|