amis-editor 5.2.1-beta.35 → 5.2.3-beta.12
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/component/BaseControl.js +2 -2
- 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 +2 -2
- package/esm/plugin/Audio.js +2 -2
- package/esm/plugin/Avatar.js +2 -2
- package/esm/plugin/Breadcrumb.js +2 -2
- package/esm/plugin/Button.js +32 -5
- package/esm/plugin/ButtonGroup.js +2 -2
- package/esm/plugin/CRUD.d.ts +1 -1
- package/esm/plugin/CRUD.js +12 -7
- package/esm/plugin/CRUD2.js +2 -2
- package/esm/plugin/Card.js +2 -2
- package/esm/plugin/Card2.js +2 -2
- package/esm/plugin/Cards.js +6 -2
- package/esm/plugin/Carousel.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/esm/plugin/Each.js +2 -2
- 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.js +2 -2
- package/esm/plugin/Form/Control.js +2 -2
- package/esm/plugin/Form/DiffEditor.js +2 -2
- package/esm/plugin/Form/FieldSet.js +2 -2
- package/esm/plugin/Form/Form.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/esm/plugin/Form/InputRating.js +2 -2
- package/esm/plugin/Form/InputRepeat.js +2 -2
- package/esm/plugin/Form/InputRichText.js +2 -2
- package/esm/plugin/Form/InputSubForm.js +3 -3
- package/esm/plugin/Form/InputTable.js +2 -2
- package/esm/plugin/Form/InputTag.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/esm/plugin/Form/TabsTransfer.js +2 -2
- package/esm/plugin/Form/Textarea.js +2 -2
- 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 +2 -2
- package/esm/plugin/Images.js +2 -2
- 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 +2 -2
- package/esm/plugin/List.js +2 -2
- package/esm/plugin/ListItem.js +2 -2
- package/esm/plugin/Log.js +2 -2
- package/esm/plugin/Mapping.js +2 -2
- package/esm/plugin/Markdown.js +2 -2
- package/esm/plugin/Nav.js +2 -2
- package/esm/plugin/Operation.js +2 -2
- package/esm/plugin/Others/Action.js +2 -2
- package/esm/plugin/Others/TableCell.js +2 -2
- package/esm/plugin/Page.js +3 -3
- package/esm/plugin/Pagination.js +2 -2
- package/esm/plugin/Panel.js +6 -6
- 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 +2 -2
- package/esm/plugin/Steps.js +2 -2
- package/esm/plugin/Submit.js +2 -2
- package/esm/plugin/Table.d.ts +1 -1
- package/esm/plugin/Table.js +18 -8
- package/esm/plugin/Table2.d.ts +1 -1
- package/esm/plugin/Table2.js +18 -11
- package/esm/plugin/TableCell2.js +2 -2
- package/esm/plugin/TableView.js +2 -2
- package/esm/plugin/Tabs.js +2 -2
- package/esm/plugin/Tasks.js +2 -2
- package/esm/plugin/Time.js +2 -2
- package/esm/plugin/Timeline.js +2 -2
- package/esm/plugin/TooltipWrapper.js +2 -2
- 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 +2 -2
- package/esm/plugin/Wrapper.js +5 -3
- 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 +2 -2
- 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.js +2 -2
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +2 -2
- 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 +3 -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.js +2 -2
- 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 +2 -2
- package/lib/plugin/Audio.js +2 -2
- package/lib/plugin/Avatar.js +2 -2
- package/lib/plugin/Breadcrumb.js +2 -2
- package/lib/plugin/Button.js +32 -5
- package/lib/plugin/ButtonGroup.js +2 -2
- package/lib/plugin/CRUD.d.ts +1 -1
- package/lib/plugin/CRUD.js +12 -7
- package/lib/plugin/CRUD2.d.ts +1 -1
- package/lib/plugin/CRUD2.js +2 -2
- package/lib/plugin/Card.js +2 -2
- package/lib/plugin/Card2.js +2 -2
- package/lib/plugin/Cards.js +6 -2
- package/lib/plugin/Carousel.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/lib/plugin/Each.js +2 -2
- 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.js +2 -2
- package/lib/plugin/Form/Control.js +2 -2
- package/lib/plugin/Form/DiffEditor.js +2 -2
- package/lib/plugin/Form/FieldSet.js +2 -2
- package/lib/plugin/Form/Form.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/lib/plugin/Form/InputRating.js +2 -2
- package/lib/plugin/Form/InputRepeat.js +2 -2
- package/lib/plugin/Form/InputRichText.js +2 -2
- package/lib/plugin/Form/InputSubForm.js +3 -3
- package/lib/plugin/Form/InputTable.js +2 -2
- package/lib/plugin/Form/InputTag.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/lib/plugin/Form/TabsTransfer.js +2 -2
- package/lib/plugin/Form/Textarea.js +2 -2
- 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 +2 -2
- package/lib/plugin/Images.js +2 -2
- 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 +2 -2
- package/lib/plugin/List.js +2 -2
- package/lib/plugin/ListItem.js +2 -2
- package/lib/plugin/Log.js +2 -2
- package/lib/plugin/Mapping.js +2 -2
- package/lib/plugin/Markdown.js +2 -2
- package/lib/plugin/Nav.js +2 -2
- package/lib/plugin/Operation.js +2 -2
- package/lib/plugin/Others/Action.js +2 -2
- package/lib/plugin/Others/TableCell.js +2 -2
- package/lib/plugin/Page.js +3 -3
- package/lib/plugin/Pagination.js +2 -2
- package/lib/plugin/Panel.js +6 -6
- 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 +2 -2
- package/lib/plugin/Steps.js +2 -2
- package/lib/plugin/Submit.js +2 -2
- package/lib/plugin/Table.d.ts +1 -1
- package/lib/plugin/Table.js +17 -7
- package/lib/plugin/Table2.d.ts +1 -1
- package/lib/plugin/Table2.js +17 -10
- package/lib/plugin/TableCell2.js +2 -2
- package/lib/plugin/TableView.js +2 -2
- package/lib/plugin/Tabs.d.ts +1 -0
- package/lib/plugin/Tabs.js +2 -2
- package/lib/plugin/Tasks.js +2 -2
- package/lib/plugin/Time.js +2 -2
- package/lib/plugin/Timeline.js +2 -2
- package/lib/plugin/TooltipWrapper.js +2 -2
- 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 +2 -2
- package/lib/plugin/Wrapper.js +5 -3
- package/lib/renderer/APIControl.d.ts +2 -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 +2 -2
- 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.js +2 -2
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +2 -2
- 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 +3 -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,31 +1,16 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
3
|
-
* Copyright 2018-
|
2
|
+
* amis-editor v5.2.3-beta.12
|
3
|
+
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
6
6
|
import { __spreadArray, __assign, __awaiter, __generator } from 'tslib';
|
7
7
|
import React__default from 'react';
|
8
|
-
import { defaultValue, getSchemaTpl } from 'amis-editor-core';
|
8
|
+
import { defaultValue, getSchemaTpl, tipedLabel } from 'amis-editor-core';
|
9
9
|
import { findTree, mapTree, filterTree, DataSchema, normalizeApi } from 'amis-core';
|
10
|
-
import CmptActionSelect from './comp-action-select.js';
|
11
10
|
import { Button } from 'amis';
|
12
|
-
import ACTION_TYPE_TREE from './actions.js';
|
13
|
-
import without from 'lodash/without';
|
14
11
|
import { i18n } from 'i18n-runtime';
|
15
|
-
|
16
|
-
|
17
|
-
// 下拉展示可赋值属性范围
|
18
|
-
var SELECT_PROPS_CONTAINER = ['form'];
|
19
|
-
// 是否数据容器
|
20
|
-
var IS_DATA_CONTAINER = "".concat(JSON.stringify(DATA_CONTAINER), ".includes(data.__rendererName)");
|
21
|
-
// 是否下拉展示可赋值属性
|
22
|
-
var SHOW_SELECT_PROP = "".concat(JSON.stringify(SELECT_PROPS_CONTAINER), ".includes(data.__rendererName)");
|
23
|
-
// 表单项组件
|
24
|
-
var FORMITEM_CMPTS = ['button-group-select', 'button-toolbar', 'chained-select', 'chart-radios', 'checkbox', 'checkboxes', 'combo', 'input-kv', 'condition-builder', 'diff-editor', 'editor', 'formula', 'hidden', 'icon-picker', 'input-array', 'input-city', 'input-color', 'input-date', 'input-date-range', 'input-datetime-range', 'input-time-range', 'input-excel', 'input-file', 'input-formula', 'input-group', 'input-image', 'input-month-range', 'input-number', 'input-quarter-range', 'input-range', 'input-rating', 'input-repeat', 'input-rich-text', 'input-sub-form', 'input-table', 'input-tag', 'input-text', 'input-password', 'input-email', 'input-url', 'native-date', 'native-time', 'native-number', 'input-tree', 'input-year-range', 'list-select', 'location-picker', 'matrix-checkboxes', 'nested-select', 'cascader-select', 'picker', 'radios', 'select', 'multi-select', 'switch', 'tabs-transfer', 'tabs-transfer-picker', 'textarea', 'transfer', 'transfer-picker', 'tree-select', 'uuid'];
|
25
|
-
var SUPPORT_STATIC_FORMITEM_CMPTS = without.apply(void 0, __spreadArray([FORMITEM_CMPTS], ['button-toolbar', 'condition-builder', 'diff-editor', 'editor', 'formula', 'hidden', 'icon-picker', 'input-excel', 'input-file', 'input-formula', 'input-image', 'input-repeat', 'input-rich-text', 'input-sub-form', 'input-table', 'picker', 'uuid'], false));
|
26
|
-
var SUPPORT_DISABLED_CMPTS = ['button-group', 'action', 'button', 'submit', 'reset', 'collapse', 'container', 'dropdown-button', 'flex', 'flex-item', 'grid', 'grid-2d', 'link', 'nav', 'wizard'
|
27
|
-
// 'card2'
|
28
|
-
];
|
12
|
+
import without from 'lodash/without';
|
13
|
+
import CmptActionSelect from './comp-action-select.js';
|
29
14
|
|
30
15
|
var getArgsWrapper = function (items, multiple, patch) {
|
31
16
|
if (multiple === void 0) {
|
@@ -44,6 +29,1305 @@ var getArgsWrapper = function (items, multiple, patch) {
|
|
44
29
|
items: Array.isArray(items) ? items : [items]
|
45
30
|
});
|
46
31
|
};
|
32
|
+
// 数据容器范围
|
33
|
+
var DATA_CONTAINER = ['form', 'dialog', 'drawer', 'wizard', 'service', 'crud', 'page', 'app', 'chart'];
|
34
|
+
var MSG_TYPES = {
|
35
|
+
info: i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),
|
36
|
+
warning: i18n("900c70fa5f7dbc014e6f762d5e0e885c"),
|
37
|
+
success: i18n("330363dfc524cff2488f2ebde0500896"),
|
38
|
+
error: i18n("7030ff64701a938becbc5aa67ddb86e8")
|
39
|
+
};
|
40
|
+
// 下拉展示可赋值属性范围
|
41
|
+
var SELECT_PROPS_CONTAINER = ['form'];
|
42
|
+
// 是否数据容器
|
43
|
+
var IS_DATA_CONTAINER = "".concat(JSON.stringify(DATA_CONTAINER), ".includes(data.__rendererName)");
|
44
|
+
// 是否下拉展示可赋值属性
|
45
|
+
var SHOW_SELECT_PROP = "".concat(JSON.stringify(SELECT_PROPS_CONTAINER), ".includes(data.__rendererName)");
|
46
|
+
// 表单项组件
|
47
|
+
var FORMITEM_CMPTS = ['button-group-select', 'button-toolbar', 'chained-select', 'chart-radios', 'checkbox', 'checkboxes', 'combo', 'input-kv', 'condition-builder', 'diff-editor', 'editor', 'formula', 'hidden', 'icon-picker', 'input-array', 'input-city', 'input-color', 'input-date', 'input-date-range', 'input-datetime-range', 'input-time-range', 'input-excel', 'input-file', 'input-formula', 'input-group', 'input-image', 'input-month-range', 'input-number', 'input-quarter-range', 'input-range', 'input-rating', 'input-repeat', 'input-rich-text', 'input-sub-form', 'input-table', 'input-tag', 'input-text', 'input-password', 'input-email', 'input-url', 'native-date', 'native-time', 'native-number', 'input-tree', 'input-year-range', 'list-select', 'location-picker', 'matrix-checkboxes', 'nested-select', 'cascader-select', 'picker', 'radios', 'select', 'multi-select', 'switch', 'tabs-transfer', 'tabs-transfer-picker', 'textarea', 'transfer', 'transfer-picker', 'tree-select', 'uuid'];
|
48
|
+
var SUPPORT_STATIC_FORMITEM_CMPTS = without.apply(void 0, __spreadArray([FORMITEM_CMPTS], ['button-toolbar', 'condition-builder', 'diff-editor', 'editor', 'formula', 'hidden', 'icon-picker', 'input-excel', 'input-file', 'input-formula', 'input-image', 'input-repeat', 'input-rich-text', 'input-sub-form', 'input-table', 'picker', 'uuid'], false));
|
49
|
+
var SUPPORT_DISABLED_CMPTS = ['button-group', 'action', 'button', 'submit', 'reset', 'collapse', 'container', 'dropdown-button', 'flex', 'flex-item', 'grid', 'grid-2d', 'link', 'nav', 'wizard'
|
50
|
+
// 'card2'
|
51
|
+
];
|
52
|
+
|
53
|
+
var ACTION_TYPE_TREE = function (manager) {
|
54
|
+
return [{
|
55
|
+
actionLabel: i18n("59ceff465ad16932d8972191ad815dfb"),
|
56
|
+
actionType: 'page',
|
57
|
+
children: [{
|
58
|
+
actionLabel: i18n("dec2eb7145e149f281cb7e75fbe8972a"),
|
59
|
+
actionType: 'url',
|
60
|
+
description: i18n("ae10a948eca808b3dd77506b24f3fd0e"),
|
61
|
+
innerArgs: ['url', 'params', 'blank'],
|
62
|
+
descDetail: function (info) {
|
63
|
+
var _a;
|
64
|
+
return React__default.createElement("div", null, "\u8DF3\u8F6C\u81F3", React__default.createElement("span", {
|
65
|
+
className: "variable-left"
|
66
|
+
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.url) || '-'));
|
67
|
+
},
|
68
|
+
schema: getArgsWrapper([{
|
69
|
+
type: 'wrapper',
|
70
|
+
className: 'p-none',
|
71
|
+
body: [
|
72
|
+
/**
|
73
|
+
{
|
74
|
+
label: '页面地址',
|
75
|
+
type: 'input-formula',
|
76
|
+
variables: '${variables}',
|
77
|
+
evalMode: false,
|
78
|
+
variableMode: 'tabs',
|
79
|
+
inputMode: 'input-group',
|
80
|
+
name: 'url',
|
81
|
+
placeholder: 'http://',
|
82
|
+
mode: 'horizontal',
|
83
|
+
size: 'lg',
|
84
|
+
required: true,
|
85
|
+
visibleOn: 'data.actionType === "url"'
|
86
|
+
},
|
87
|
+
*/
|
88
|
+
{
|
89
|
+
name: 'url',
|
90
|
+
label: i18n("8f1c078c6d42759e6ccb1a9bf35f1629"),
|
91
|
+
type: 'ae-textareaFormulaControl',
|
92
|
+
variables: '${variables}',
|
93
|
+
mode: 'horizontal',
|
94
|
+
// placeholder: 'http://', 长文本暂不支持
|
95
|
+
size: 'lg',
|
96
|
+
required: true,
|
97
|
+
visibleOn: 'data.actionType === "url"'
|
98
|
+
}, {
|
99
|
+
type: 'combo',
|
100
|
+
name: 'params',
|
101
|
+
label: i18n("0b72392143e4038e98128cb0f6f679b3"),
|
102
|
+
multiple: true,
|
103
|
+
mode: 'horizontal',
|
104
|
+
size: 'lg',
|
105
|
+
items: [{
|
106
|
+
name: 'key',
|
107
|
+
placeholder: i18n("c068b579db3bf0a553bd0af4f81cc14f"),
|
108
|
+
type: 'input-text'
|
109
|
+
},
|
110
|
+
/**
|
111
|
+
{
|
112
|
+
name: 'val',
|
113
|
+
placeholder: '参数值',
|
114
|
+
type: 'input-formula',
|
115
|
+
variables: '${variables}',
|
116
|
+
evalMode: false,
|
117
|
+
variableMode: 'tabs',
|
118
|
+
inputMode: 'input-group',
|
119
|
+
size: 'xs'
|
120
|
+
},
|
121
|
+
*/
|
122
|
+
{
|
123
|
+
type: 'ae-formulaControl',
|
124
|
+
variables: '${variables}',
|
125
|
+
name: 'val',
|
126
|
+
variableMode: 'tabs',
|
127
|
+
placeholder: i18n("bfed4943c5f487de1b63a82f7230cce2")
|
128
|
+
}]
|
129
|
+
}, {
|
130
|
+
type: 'switch',
|
131
|
+
name: 'blank',
|
132
|
+
label: i18n("56aa76ab3c987377e855ae2c6c612050"),
|
133
|
+
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
134
|
+
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
135
|
+
mode: 'horizontal',
|
136
|
+
pipeIn: defaultValue(true)
|
137
|
+
}]
|
138
|
+
}])
|
139
|
+
}, {
|
140
|
+
actionLabel: i18n("fd5fb471ecce1eea63a6a95b6707f815"),
|
141
|
+
actionType: 'link',
|
142
|
+
description: i18n("67e21dd387607ae3fb59846504fa2c4c"),
|
143
|
+
innerArgs: ['link', 'params', 'pageName', '__pageInputSchema'],
|
144
|
+
descDetail: function (info) {
|
145
|
+
var _a;
|
146
|
+
return React__default.createElement("div", null, "\u6253\u5F00", React__default.createElement("span", {
|
147
|
+
className: "variable-left variable-right"
|
148
|
+
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.pageName) || '-'), "\u9875\u9762");
|
149
|
+
},
|
150
|
+
schema: getArgsWrapper([{
|
151
|
+
type: 'wrapper',
|
152
|
+
className: 'p-none',
|
153
|
+
body: [getSchemaTpl('app-page'), getSchemaTpl('app-page-args')]
|
154
|
+
}])
|
155
|
+
}, {
|
156
|
+
actionLabel: i18n("39e107b7c4aa580f913ccbebc00f7534"),
|
157
|
+
actionType: 'refresh',
|
158
|
+
description: i18n("261242fe62b18b620419802c7dd7da7f")
|
159
|
+
}, {
|
160
|
+
actionLabel: i18n("ca180138a862543561d3a2c4f08b2e1b"),
|
161
|
+
actionType: 'goBack',
|
162
|
+
description: i18n("5f6b9e7a050ae3f34b38191435e14b24"),
|
163
|
+
descDetail: function (info) {
|
164
|
+
return React__default.createElement("div", null, "\u8FD4\u56DE\u4E0A\u4E00\u9875");
|
165
|
+
}
|
166
|
+
}]
|
167
|
+
}, {
|
168
|
+
actionLabel: i18n("f80d12dcd65429fd28841e768062d3c2"),
|
169
|
+
actionType: 'dialogs',
|
170
|
+
children: [{
|
171
|
+
actionLabel: i18n("0561589c26e732981f29709a9b574234"),
|
172
|
+
actionType: 'openDialog',
|
173
|
+
description: i18n("256dbc5161ae393ec8a0e83ae6cf9469"),
|
174
|
+
actions: [{
|
175
|
+
actionType: 'dialog'
|
176
|
+
}, {
|
177
|
+
actionType: 'drawer'
|
178
|
+
}],
|
179
|
+
schema: [{
|
180
|
+
type: 'radios',
|
181
|
+
label: i18n("226b0912184333c81babf2f1894ec0c1"),
|
182
|
+
name: 'groupType',
|
183
|
+
mode: 'horizontal',
|
184
|
+
value: 'dialog',
|
185
|
+
required: true,
|
186
|
+
pipeIn: defaultValue('dialog'),
|
187
|
+
inputClassName: 'event-action-radio',
|
188
|
+
options: [{
|
189
|
+
label: i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),
|
190
|
+
value: 'dialog'
|
191
|
+
}, {
|
192
|
+
label: i18n("2a2924380dfcaea998bd8a49703545a9"),
|
193
|
+
value: 'drawer'
|
194
|
+
}],
|
195
|
+
visibleOn: 'data.actionType === "openDialog"'
|
196
|
+
}, {
|
197
|
+
name: 'dialog',
|
198
|
+
label: i18n("507c1d40c5d6b990cf8c832b0a91cadb"),
|
199
|
+
mode: 'horizontal',
|
200
|
+
required: true,
|
201
|
+
pipeIn: defaultValue({
|
202
|
+
title: i18n("8a089992349df754f182a5d02de8e8e0"),
|
203
|
+
body: i18n("b680997c50ca749acd4e6075cdca244e"),
|
204
|
+
showCloseButton: true,
|
205
|
+
showErrorMsg: true,
|
206
|
+
showLoading: true
|
207
|
+
}),
|
208
|
+
asFormItem: true,
|
209
|
+
visibleOn: 'data.groupType === "dialog"',
|
210
|
+
children: function (_a) {
|
211
|
+
var value = _a.value,
|
212
|
+
onChange = _a.onChange,
|
213
|
+
data = _a.data;
|
214
|
+
return React__default.createElement(Button, {
|
215
|
+
size: "sm",
|
216
|
+
className: "action-btn-width",
|
217
|
+
onClick: function () {
|
218
|
+
return manager.openSubEditor({
|
219
|
+
title: i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"),
|
220
|
+
value: __assign({
|
221
|
+
type: 'dialog'
|
222
|
+
}, value),
|
223
|
+
data: data,
|
224
|
+
onChange: function (value) {
|
225
|
+
return onChange(value);
|
226
|
+
}
|
227
|
+
});
|
228
|
+
},
|
229
|
+
block: true
|
230
|
+
}, i18n('a532be3ad5f3fda70d228b8542e81835'));
|
231
|
+
}
|
232
|
+
}, {
|
233
|
+
name: 'drawer',
|
234
|
+
label: i18n("b67cbb1ca7439053f06d59aac5e410dc"),
|
235
|
+
mode: 'horizontal',
|
236
|
+
required: true,
|
237
|
+
pipeIn: defaultValue({
|
238
|
+
title: i18n("8a089992349df754f182a5d02de8e8e0"),
|
239
|
+
body: i18n("b680997c50ca749acd4e6075cdca244e")
|
240
|
+
}),
|
241
|
+
asFormItem: true,
|
242
|
+
visibleOn: 'data.groupType === "drawer"',
|
243
|
+
children: function (_a) {
|
244
|
+
var value = _a.value,
|
245
|
+
onChange = _a.onChange;
|
246
|
+
_a.data;
|
247
|
+
return React__default.createElement(Button, {
|
248
|
+
size: "sm",
|
249
|
+
className: "action-btn-width",
|
250
|
+
onClick: function () {
|
251
|
+
return manager.openSubEditor({
|
252
|
+
title: i18n("262c7c7b9874ae5607fb51da468d0e8c"),
|
253
|
+
value: __assign({
|
254
|
+
type: 'drawer'
|
255
|
+
}, value),
|
256
|
+
onChange: function (value) {
|
257
|
+
return onChange(value);
|
258
|
+
}
|
259
|
+
});
|
260
|
+
},
|
261
|
+
block: true
|
262
|
+
}, i18n('a532be3ad5f3fda70d228b8542e81835'));
|
263
|
+
}
|
264
|
+
}]
|
265
|
+
}, {
|
266
|
+
actionLabel: i18n("3b02248ca3790e356e47b6900c0e3931"),
|
267
|
+
actionType: 'closeDialog',
|
268
|
+
description: i18n("f33c2c6ff58bcec40d3e74e591bb3df2") // 或者关闭指定弹窗
|
269
|
+
// schema: getArgsWrapper({
|
270
|
+
// type: 'wrapper',
|
271
|
+
// className: 'p-none',
|
272
|
+
// body: [
|
273
|
+
// {
|
274
|
+
// type: 'radios',
|
275
|
+
// label: '类型',
|
276
|
+
// name: 'groupType',
|
277
|
+
// mode: 'horizontal',
|
278
|
+
// value: 'closeDialog',
|
279
|
+
// required: true,
|
280
|
+
// pipeIn: defaultValue('closeDialog'),
|
281
|
+
// options: [
|
282
|
+
// {
|
283
|
+
// label: '弹窗',
|
284
|
+
// value: 'closeDialog'
|
285
|
+
// },
|
286
|
+
// {
|
287
|
+
// label: '抽屉',
|
288
|
+
// value: 'closeDrawer'
|
289
|
+
// }
|
290
|
+
// ],
|
291
|
+
// visibleOn: 'data.actionType === "closeDialog"'
|
292
|
+
// }
|
293
|
+
// ]
|
294
|
+
// })
|
295
|
+
},
|
296
|
+
// 暂时下掉,看后面具体设计
|
297
|
+
// {
|
298
|
+
// actionLabel: '打开提示对话框',
|
299
|
+
// actionType: 'alert',
|
300
|
+
// description: '弹个提示对话框'
|
301
|
+
// },
|
302
|
+
// {
|
303
|
+
// actionLabel: '打开确认对话框',
|
304
|
+
// actionType: 'confirm',
|
305
|
+
// description: '弹个确认对话框'
|
306
|
+
// },
|
307
|
+
{
|
308
|
+
actionLabel: i18n("e495f416b83e4c7ff3c66ec3be96a76f"),
|
309
|
+
actionType: 'toast',
|
310
|
+
description: i18n("61d7aaa88181c527cfb936d4c686d267"),
|
311
|
+
innerArgs: ['title', 'msgType', 'msg', 'position', 'timeout', 'closeButton', 'showIcon'],
|
312
|
+
descDetail: function (info) {
|
313
|
+
var _a, _b;
|
314
|
+
return React__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.createElement("span", {
|
315
|
+
className: "variable-left"
|
316
|
+
}, ((_b = info === null || info === void 0 ? void 0 : info.args) === null || _b === void 0 ? void 0 : _b.msg) || '-'));
|
317
|
+
},
|
318
|
+
schema: getArgsWrapper({
|
319
|
+
type: 'wrapper',
|
320
|
+
className: 'p-none',
|
321
|
+
body: [{
|
322
|
+
type: 'button-group-select',
|
323
|
+
name: 'msgType',
|
324
|
+
label: i18n("6d00710a2528332bfcac14b58e412042"),
|
325
|
+
value: 'info',
|
326
|
+
required: true,
|
327
|
+
mode: 'horizontal',
|
328
|
+
options: Object.keys(MSG_TYPES).map(function (key) {
|
329
|
+
return {
|
330
|
+
label: MSG_TYPES[key],
|
331
|
+
value: key,
|
332
|
+
level: 'default'
|
333
|
+
};
|
334
|
+
})
|
335
|
+
},
|
336
|
+
/*
|
337
|
+
{
|
338
|
+
name: 'msg',
|
339
|
+
label: '消息内容',
|
340
|
+
mode: 'horizontal',
|
341
|
+
type: 'input-formula',
|
342
|
+
variables: '${variables}',
|
343
|
+
evalMode: false,
|
344
|
+
variableMode: 'tabs',
|
345
|
+
inputMode: 'input-group',
|
346
|
+
size: 'lg',
|
347
|
+
required: true
|
348
|
+
},
|
349
|
+
*/
|
350
|
+
{
|
351
|
+
name: 'msg',
|
352
|
+
label: i18n("b87b77561e776367e6756e11ea652217"),
|
353
|
+
type: 'ae-textareaFormulaControl',
|
354
|
+
mode: 'horizontal',
|
355
|
+
variables: '${variables}',
|
356
|
+
size: 'lg',
|
357
|
+
required: true
|
358
|
+
},
|
359
|
+
/*
|
360
|
+
{
|
361
|
+
name: 'title',
|
362
|
+
type: 'input-formula',
|
363
|
+
variables: '${variables}',
|
364
|
+
evalMode: false,
|
365
|
+
variableMode: 'tabs',
|
366
|
+
inputMode: 'input-group',
|
367
|
+
label: '标题内容',
|
368
|
+
size: 'lg',
|
369
|
+
mode: 'horizontal'
|
370
|
+
},
|
371
|
+
*/
|
372
|
+
{
|
373
|
+
name: 'title',
|
374
|
+
label: i18n("43ab9af06e1e0f0b2a8767b46cf8b1cf"),
|
375
|
+
type: 'ae-textareaFormulaControl',
|
376
|
+
variables: '${variables}',
|
377
|
+
mode: 'horizontal',
|
378
|
+
size: 'lg'
|
379
|
+
},
|
380
|
+
/*
|
381
|
+
{
|
382
|
+
name: 'timeout',
|
383
|
+
type: 'input-formula',
|
384
|
+
variables: '${variables}',
|
385
|
+
evalMode: false,
|
386
|
+
variableMode: 'tabs',
|
387
|
+
inputMode: 'input-group',
|
388
|
+
label: '持续时间(ms)',
|
389
|
+
size: 'lg',
|
390
|
+
mode: 'horizontal'
|
391
|
+
},
|
392
|
+
*/
|
393
|
+
{
|
394
|
+
name: 'timeout',
|
395
|
+
label: i18n("f41a94bb85c5223181c4cdf83ea9021b"),
|
396
|
+
type: 'ae-formulaControl',
|
397
|
+
rendererSchema: {
|
398
|
+
type: 'input-number'
|
399
|
+
},
|
400
|
+
valueType: 'number',
|
401
|
+
variables: '${variables}',
|
402
|
+
size: 'lg',
|
403
|
+
mode: 'horizontal'
|
404
|
+
}, {
|
405
|
+
type: 'button-group-select',
|
406
|
+
name: 'position',
|
407
|
+
value: 'top-right',
|
408
|
+
mode: 'horizontal',
|
409
|
+
label: i18n("a0a837f2873de80bc9ec353c30e73171"),
|
410
|
+
options: [{
|
411
|
+
label: i18n("f3296f64a8a1330d7a07f1d269a1db92"),
|
412
|
+
value: 'top-left'
|
413
|
+
}, {
|
414
|
+
label: i18n("b97a5adf068bee6c852db9dcea3a9799"),
|
415
|
+
value: 'top-center'
|
416
|
+
}, {
|
417
|
+
label: i18n("eafeba264b6338939f11f1b1adf40d2b"),
|
418
|
+
value: 'top-right'
|
419
|
+
}, {
|
420
|
+
label: i18n("d429ffb093e9aa3bf80da125f1be318c"),
|
421
|
+
value: 'bottom-left'
|
422
|
+
}, {
|
423
|
+
label: i18n("c241aa8f427118a719b94cbd8f2bb22d"),
|
424
|
+
value: 'bottom-center'
|
425
|
+
}, {
|
426
|
+
label: i18n("9cd707caffdfb314d939298f2f2c267c"),
|
427
|
+
value: 'bottom-right'
|
428
|
+
}]
|
429
|
+
}, {
|
430
|
+
type: 'switch',
|
431
|
+
name: 'closeButton',
|
432
|
+
value: true,
|
433
|
+
label: i18n("8c8fbec263e20f087555c9abcb6dd07a"),
|
434
|
+
mode: 'horizontal'
|
435
|
+
}, {
|
436
|
+
type: 'switch',
|
437
|
+
name: 'showIcon',
|
438
|
+
value: true,
|
439
|
+
label: i18n("3f3a016027e540ef10a16dbd49fffde9"),
|
440
|
+
mode: 'horizontal'
|
441
|
+
}]
|
442
|
+
})
|
443
|
+
}]
|
444
|
+
}, {
|
445
|
+
actionLabel: i18n("47d68cd0f4c3e91a86d23afe8afccfb8"),
|
446
|
+
actionType: 'service',
|
447
|
+
children: [{
|
448
|
+
actionLabel: i18n("4f02d2efe05a20232ab9da63c090595c"),
|
449
|
+
actionType: 'ajax',
|
450
|
+
description: i18n("0cd902f953656adb29985b68e6fc9754"),
|
451
|
+
innerArgs: ['api', 'options'],
|
452
|
+
descDetail: function (info) {
|
453
|
+
var _a;
|
454
|
+
var apiInfo = (_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.api;
|
455
|
+
if (typeof apiInfo === 'string') {
|
456
|
+
apiInfo = normalizeApi(apiInfo);
|
457
|
+
}
|
458
|
+
return React__default.createElement("div", null, "\u53D1\u9001", React__default.createElement("span", {
|
459
|
+
className: "variable-right variable-left"
|
460
|
+
}, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.method) || '-'), "\u8BF7\u6C42\uFF1A", React__default.createElement("span", {
|
461
|
+
className: "variable-left"
|
462
|
+
}, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.url) || '-'));
|
463
|
+
},
|
464
|
+
schema: {
|
465
|
+
type: 'wrapper',
|
466
|
+
className: 'p-none',
|
467
|
+
body: [getArgsWrapper([getSchemaTpl('apiControl', {
|
468
|
+
name: 'api',
|
469
|
+
label: i18n("88bdaf32c27ab169d3d686b86b3fae99"),
|
470
|
+
mode: 'horizontal',
|
471
|
+
size: 'lg',
|
472
|
+
inputClassName: 'm-b-none',
|
473
|
+
renderLabel: true,
|
474
|
+
required: true
|
475
|
+
}), {
|
476
|
+
name: 'options',
|
477
|
+
type: 'combo',
|
478
|
+
label: tipedLabel(i18n("6e6d4269d0dc3324d551062350a2ae9f"), i18n("56e13c39822a814ab39b0d5a0867d7dc")),
|
479
|
+
mode: 'horizontal',
|
480
|
+
items: [{
|
481
|
+
type: 'switch',
|
482
|
+
name: 'silent',
|
483
|
+
label: false,
|
484
|
+
onText: i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),
|
485
|
+
offText: i18n("b15d91274e9fc68608c609999e0413fa"),
|
486
|
+
mode: 'horizontal',
|
487
|
+
pipeIn: defaultValue(false)
|
488
|
+
}]
|
489
|
+
}], false, {
|
490
|
+
className: 'action-apiControl'
|
491
|
+
}), {
|
492
|
+
name: 'outputVar',
|
493
|
+
type: 'input-text',
|
494
|
+
label: i18n("e3b49b5bbbdea05598525e91dbdfa638"),
|
495
|
+
placeholder: i18n("4dca05af026848011eedee1b53efa61c"),
|
496
|
+
description: i18n("4da82260041107e5780bcbb3a14ef791"),
|
497
|
+
mode: 'horizontal',
|
498
|
+
size: 'lg',
|
499
|
+
value: 'responseResult',
|
500
|
+
required: true
|
501
|
+
}]
|
502
|
+
},
|
503
|
+
outputVarDataSchema: [{
|
504
|
+
type: 'object',
|
505
|
+
properties: {
|
506
|
+
'event.data.${outputVar}.responseData': {
|
507
|
+
type: 'object',
|
508
|
+
title: i18n("0d83078816aa273f2941c9b55ec82bf3")
|
509
|
+
},
|
510
|
+
'event.data.${outputVar}.responseStatus': {
|
511
|
+
type: 'number',
|
512
|
+
title: i18n("3f9e257178738d5d180ddc2996809c10")
|
513
|
+
},
|
514
|
+
'event.data.${outputVar}.responseMsg': {
|
515
|
+
type: 'string',
|
516
|
+
title: i18n("99c74120cc62f4bf31d661e3212b7121")
|
517
|
+
}
|
518
|
+
}
|
519
|
+
}]
|
520
|
+
}, {
|
521
|
+
actionLabel: i18n("5dfd5a78e2ba1bc8afb482a8745454ea"),
|
522
|
+
actionType: 'download',
|
523
|
+
description: i18n("89049706952412d790b801def284629e"),
|
524
|
+
innerArgs: ['api'],
|
525
|
+
schema: {
|
526
|
+
type: 'wrapper',
|
527
|
+
style: {
|
528
|
+
padding: '0'
|
529
|
+
},
|
530
|
+
body: [getArgsWrapper(getSchemaTpl('apiControl', {
|
531
|
+
name: 'api',
|
532
|
+
label: i18n("88bdaf32c27ab169d3d686b86b3fae99"),
|
533
|
+
mode: 'horizontal',
|
534
|
+
inputClassName: 'm-b-none',
|
535
|
+
size: 'lg',
|
536
|
+
renderLabel: true,
|
537
|
+
required: true
|
538
|
+
}), false, {
|
539
|
+
className: 'action-apiControl'
|
540
|
+
})]
|
541
|
+
}
|
542
|
+
}]
|
543
|
+
}, {
|
544
|
+
actionLabel: i18n("bb79667f37035e9562ec6bcffd6cf8ef"),
|
545
|
+
actionType: 'cmpt',
|
546
|
+
children: [{
|
547
|
+
actionLabel: i18n("c852fb60f1b8ce921c3def1eba000bc5"),
|
548
|
+
actionType: 'visibility',
|
549
|
+
description: i18n("1bd4cfded5e11a7a8ea4dcfd2fa17e15"),
|
550
|
+
actions: [{
|
551
|
+
actionType: 'show',
|
552
|
+
descDetail: function (info) {
|
553
|
+
return React__default.createElement("div", null, "\u663E\u793A", React__default.createElement("span", {
|
554
|
+
className: "variable-left variable-right"
|
555
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
556
|
+
}
|
557
|
+
}, {
|
558
|
+
actionType: 'hidden',
|
559
|
+
descDetail: function (info) {
|
560
|
+
return React__default.createElement("div", null, "\u9690\u85CF", React__default.createElement("span", {
|
561
|
+
className: "variable-left variable-right"
|
562
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
563
|
+
}
|
564
|
+
}, {
|
565
|
+
actionType: 'visibility',
|
566
|
+
descDetail: function (info) {
|
567
|
+
return React__default.createElement("div", null, "\u7EC4\u4EF6", React__default.createElement("span", {
|
568
|
+
className: "variable-left variable-right"
|
569
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u8868\u8FBE\u5F0F\u5DF2\u914D\u7F6E");
|
570
|
+
}
|
571
|
+
}],
|
572
|
+
supportComponents: '*',
|
573
|
+
schema: __spreadArray(__spreadArray([], renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true), true), [{
|
574
|
+
type: 'radios',
|
575
|
+
label: i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
|
576
|
+
name: 'groupType',
|
577
|
+
mode: 'horizontal',
|
578
|
+
value: 'static',
|
579
|
+
required: true,
|
580
|
+
inputClassName: 'event-action-radio',
|
581
|
+
options: [{
|
582
|
+
label: i18n("8baf21fa26d6d24b4faa872953275d8d"),
|
583
|
+
value: 'static'
|
584
|
+
}, {
|
585
|
+
label: i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
586
|
+
value: 'visibility'
|
587
|
+
}]
|
588
|
+
}, {
|
589
|
+
type: 'radios',
|
590
|
+
label: i18n("edf25860e3d457eb8ca9cb5dca06dfd7"),
|
591
|
+
name: '__statusType',
|
592
|
+
mode: 'horizontal',
|
593
|
+
value: 'show',
|
594
|
+
required: true,
|
595
|
+
pipeIn: defaultValue('show'),
|
596
|
+
inputClassName: 'event-action-radio',
|
597
|
+
visibleOn: "this.groupType === 'static'",
|
598
|
+
options: [{
|
599
|
+
label: i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"),
|
600
|
+
value: 'show'
|
601
|
+
}, {
|
602
|
+
label: i18n("dce5379cb978a8259ecfca8f08f00817"),
|
603
|
+
value: 'hidden'
|
604
|
+
}]
|
605
|
+
}, {
|
606
|
+
type: 'ae-expressionFormulaControl',
|
607
|
+
mode: 'horizontal',
|
608
|
+
label: i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
609
|
+
required: true,
|
610
|
+
size: 'lg',
|
611
|
+
variables: '${variables}',
|
612
|
+
evalMode: true,
|
613
|
+
name: '__actionExpression',
|
614
|
+
visibleOn: "this.groupType === 'visibility'"
|
615
|
+
}], false)
|
616
|
+
}, {
|
617
|
+
actionLabel: i18n("12c8d50c55eeec7059ddd5c303e34f77"),
|
618
|
+
actionType: 'usability',
|
619
|
+
description: i18n("5e75800641ec5c1198092bcf9d34f180"),
|
620
|
+
actions: [{
|
621
|
+
actionType: 'enabled',
|
622
|
+
descDetail: function (info) {
|
623
|
+
return React__default.createElement("div", null, "\u542F\u7528", React__default.createElement("span", {
|
624
|
+
className: "variable-left variable-right"
|
625
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
626
|
+
}
|
627
|
+
}, {
|
628
|
+
actionType: 'disabled',
|
629
|
+
descDetail: function (info) {
|
630
|
+
return React__default.createElement("div", null, "\u7981\u7528", React__default.createElement("span", {
|
631
|
+
className: "variable-left variable-right"
|
632
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
633
|
+
}
|
634
|
+
}, {
|
635
|
+
actionType: 'usability',
|
636
|
+
descDetail: function (info) {
|
637
|
+
return React__default.createElement("div", null, "\u7EC4\u4EF6", React__default.createElement("span", {
|
638
|
+
className: "variable-left variable-right"
|
639
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u8868\u8FBE\u5F0F\u5DF2\u914D\u7F6E");
|
640
|
+
}
|
641
|
+
}],
|
642
|
+
supportComponents: __spreadArray(__spreadArray(['form'], FORMITEM_CMPTS, true), SUPPORT_DISABLED_CMPTS, true),
|
643
|
+
schema: __spreadArray(__spreadArray([], renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true), true), [{
|
644
|
+
type: 'radios',
|
645
|
+
label: i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
|
646
|
+
name: 'groupType',
|
647
|
+
mode: 'horizontal',
|
648
|
+
inputClassName: 'event-action-radio',
|
649
|
+
value: 'static',
|
650
|
+
required: true,
|
651
|
+
options: [{
|
652
|
+
label: i18n("8baf21fa26d6d24b4faa872953275d8d"),
|
653
|
+
value: 'static'
|
654
|
+
}, {
|
655
|
+
label: i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
656
|
+
value: 'usability'
|
657
|
+
}]
|
658
|
+
}, {
|
659
|
+
type: 'radios',
|
660
|
+
label: i18n("d86d5919f595226b7a1e8264635ca23d"),
|
661
|
+
name: '__statusType',
|
662
|
+
mode: 'horizontal',
|
663
|
+
inputClassName: 'event-action-radio',
|
664
|
+
value: 'enabled',
|
665
|
+
required: true,
|
666
|
+
pipeIn: defaultValue('enabled'),
|
667
|
+
visibleOn: "this.groupType === 'static'",
|
668
|
+
options: [{
|
669
|
+
label: i18n("7854b52a889b3ef0590d9f542efeb4c8"),
|
670
|
+
value: 'enabled'
|
671
|
+
}, {
|
672
|
+
label: i18n("710ad08b11419332713360d2750cd707"),
|
673
|
+
value: 'disabled'
|
674
|
+
}]
|
675
|
+
}, {
|
676
|
+
type: 'ae-expressionFormulaControl',
|
677
|
+
mode: 'horizontal',
|
678
|
+
label: i18n("a9400c408441f1f7f6d6954deb05ae9a"),
|
679
|
+
required: true,
|
680
|
+
size: 'lg',
|
681
|
+
evalMode: true,
|
682
|
+
name: '__actionExpression',
|
683
|
+
visibleOn: "this.groupType === 'usability'"
|
684
|
+
}], false)
|
685
|
+
}, {
|
686
|
+
actionLabel: i18n("e052287273ad39a1d3fa9fa3decb5fd9"),
|
687
|
+
actionType: 'staticStatus',
|
688
|
+
description: i18n("506f28f48dbebd5d19e19dfc721e13be"),
|
689
|
+
actions: [{
|
690
|
+
actionType: 'static',
|
691
|
+
descDetail: function (info) {
|
692
|
+
return React__default.createElement("div", null, React__default.createElement("span", {
|
693
|
+
className: "variable-right"
|
694
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "\u7EC4\u4EF6\u5207\u6362\u4E3A\u9759\u6001");
|
695
|
+
}
|
696
|
+
}, {
|
697
|
+
actionType: 'nonstatic',
|
698
|
+
descDetail: function (info) {
|
699
|
+
return React__default.createElement("div", null, React__default.createElement("span", {
|
700
|
+
className: "variable-right"
|
701
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "\u7EC4\u4EF6\u5207\u6362\u4E3A\u8F93\u5165\u6001");
|
702
|
+
}
|
703
|
+
}],
|
704
|
+
supportComponents: __spreadArray(['form'], SUPPORT_STATIC_FORMITEM_CMPTS, true),
|
705
|
+
schema: __spreadArray(__spreadArray([], renderCmptSelect(i18n("d80bc0fcbfb250480320b683e48b1467"), true), true), [{
|
706
|
+
type: 'radios',
|
707
|
+
label: i18n("d2e930293da37452638759e17d771adf"),
|
708
|
+
name: 'groupType',
|
709
|
+
mode: 'horizontal',
|
710
|
+
inputClassName: 'event-action-radio',
|
711
|
+
value: 'nonstatic',
|
712
|
+
required: true,
|
713
|
+
pipeIn: defaultValue('nonstatic'),
|
714
|
+
options: [{
|
715
|
+
label: i18n("b535bea11c97ec5588b1494799de4d60"),
|
716
|
+
value: 'nonstatic'
|
717
|
+
}, {
|
718
|
+
label: i18n("f7784642f42d33f506ba05f3daefc3c4"),
|
719
|
+
value: 'static'
|
720
|
+
}]
|
721
|
+
}], false)
|
722
|
+
}, {
|
723
|
+
actionLabel: i18n("c5a9b6e8c522de8a14ad7fab51c1a1e3"),
|
724
|
+
actionType: 'reload',
|
725
|
+
description: i18n("be4b778e7f5aa6aa5a811d7db4e1a8b3"),
|
726
|
+
descDetail: function (info) {
|
727
|
+
return React__default.createElement("div", null, "\u5237\u65B0", React__default.createElement("span", {
|
728
|
+
className: "variable-left variable-right"
|
729
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
|
730
|
+
},
|
731
|
+
supportComponents: 'byComponent',
|
732
|
+
schema: __spreadArray(__spreadArray([], renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
|
733
|
+
form.setValueByName('args.resetPage', true);
|
734
|
+
form.setValueByName('__addParam', true);
|
735
|
+
form.setValueByName('__customData', false);
|
736
|
+
form.setValueByName('__containerType', 'all');
|
737
|
+
form.setValueByName('__reloadParam', []);
|
738
|
+
}), true), [{
|
739
|
+
type: 'switch',
|
740
|
+
name: '__resetPage',
|
741
|
+
label: tipedLabel(i18n("697af73997072e0ce9ee65b15a7b3715"), i18n("d7bf42dd6e66f2818f9a232603c4a53b")),
|
742
|
+
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
743
|
+
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
744
|
+
mode: 'horizontal',
|
745
|
+
pipeIn: defaultValue(true),
|
746
|
+
visibleOn: "data.actionType === \"reload\" && data.__rendererName === \"crud\""
|
747
|
+
}, {
|
748
|
+
type: 'switch',
|
749
|
+
name: '__addParam',
|
750
|
+
label: tipedLabel(i18n("fee99f2bcced486e4753a8f58f511d3f"), i18n("0f9803bd27434940d4017007c105a861")),
|
751
|
+
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
752
|
+
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
753
|
+
mode: 'horizontal',
|
754
|
+
pipeIn: defaultValue(true),
|
755
|
+
visibleOn: "data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER)
|
756
|
+
}, {
|
757
|
+
type: 'switch',
|
758
|
+
name: '__customData',
|
759
|
+
label: tipedLabel(i18n("fd951a59a7c635d5330bc1aeec22c813"), i18n("b62ce3df3c0d5772006c525b60d5eeab")),
|
760
|
+
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
761
|
+
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
762
|
+
mode: 'horizontal',
|
763
|
+
pipeIn: defaultValue(true),
|
764
|
+
visibleOn: "data.__addParam && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER),
|
765
|
+
onChange: function (value, oldVal, data, form) {
|
766
|
+
form.setValueByName('__containerType', 'all');
|
767
|
+
}
|
768
|
+
}, {
|
769
|
+
type: 'radios',
|
770
|
+
name: '__containerType',
|
771
|
+
mode: 'horizontal',
|
772
|
+
label: '',
|
773
|
+
pipeIn: defaultValue('all'),
|
774
|
+
visibleOn: "data.__addParam && data.__customData && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER),
|
775
|
+
options: [{
|
776
|
+
label: i18n("77b1081c177fa3334cc93c99f0ecee75"),
|
777
|
+
value: 'all'
|
778
|
+
}, {
|
779
|
+
label: i18n("f5c5e3d69daee06ea1606378ef466765"),
|
780
|
+
value: 'appoint'
|
781
|
+
}],
|
782
|
+
onChange: function (value, oldVal, data, form) {
|
783
|
+
form.setValueByName('__reloadParams', []);
|
784
|
+
form.setValueByName('__valueInput', undefined);
|
785
|
+
}
|
786
|
+
},
|
787
|
+
/*
|
788
|
+
{
|
789
|
+
name: '__valueInput',
|
790
|
+
type: 'input-formula',
|
791
|
+
variables: '${variables}',
|
792
|
+
evalMode: false,
|
793
|
+
required: true,
|
794
|
+
variableMode: 'tabs',
|
795
|
+
inputMode: 'input-group',
|
796
|
+
label: '',
|
797
|
+
size: 'lg',
|
798
|
+
mode: 'horizontal',
|
799
|
+
visibleOn: `data.__addParam && data.__customData && data.__containerType === "all" && data.actionType === "reload" && ${IS_DATA_CONTAINER}`
|
800
|
+
},
|
801
|
+
*/
|
802
|
+
{
|
803
|
+
name: '__valueInput',
|
804
|
+
label: '',
|
805
|
+
type: 'ae-formulaControl',
|
806
|
+
variables: '${variables}',
|
807
|
+
size: 'lg',
|
808
|
+
mode: 'horizontal',
|
809
|
+
required: true,
|
810
|
+
visibleOn: "data.__addParam && data.__customData && data.__containerType === \"all\" && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER)
|
811
|
+
}, {
|
812
|
+
type: 'combo',
|
813
|
+
name: '__reloadParams',
|
814
|
+
label: '',
|
815
|
+
multiple: true,
|
816
|
+
removable: true,
|
817
|
+
addable: true,
|
818
|
+
strictMode: false,
|
819
|
+
canAccessSuperData: true,
|
820
|
+
size: 'lg',
|
821
|
+
mode: 'horizontal',
|
822
|
+
items: [{
|
823
|
+
name: 'key',
|
824
|
+
type: 'input-text',
|
825
|
+
placeholder: i18n("c068b579db3bf0a553bd0af4f81cc14f"),
|
826
|
+
labelField: 'label',
|
827
|
+
valueField: 'value',
|
828
|
+
required: true
|
829
|
+
},
|
830
|
+
/*
|
831
|
+
{
|
832
|
+
name: 'val',
|
833
|
+
type: 'input-formula',
|
834
|
+
placeholder: '参数值',
|
835
|
+
variables: '${variables}',
|
836
|
+
evalMode: false,
|
837
|
+
variableMode: 'tabs',
|
838
|
+
inputMode: 'input-group'
|
839
|
+
}
|
840
|
+
*/
|
841
|
+
{
|
842
|
+
name: 'val',
|
843
|
+
type: 'ae-formulaControl',
|
844
|
+
variables: '${variables}',
|
845
|
+
placeholder: i18n("bfed4943c5f487de1b63a82f7230cce2")
|
846
|
+
}],
|
847
|
+
visibleOn: "data.__addParam && data.__customData && data.__containerType === \"appoint\" && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER)
|
848
|
+
}, {
|
849
|
+
type: 'radios',
|
850
|
+
name: 'dataMergeMode',
|
851
|
+
mode: 'horizontal',
|
852
|
+
label: tipedLabel(i18n("2aecb19ca1655d66fc80fc27a783cc9e"), i18n("b67b01a3b9170f1daf78082cfd0df793")),
|
853
|
+
pipeIn: defaultValue('merge'),
|
854
|
+
visibleOn: "data.__addParam && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER),
|
855
|
+
options: [{
|
856
|
+
label: i18n("bd81577a6fd4956e676cec499bb70d00"),
|
857
|
+
value: 'merge'
|
858
|
+
}, {
|
859
|
+
label: i18n("e09fea40f7e4abd4b2a495b315940688"),
|
860
|
+
value: 'override'
|
861
|
+
}]
|
862
|
+
}], false)
|
863
|
+
}, {
|
864
|
+
actionLabel: i18n("fa644cb20c66f7530d8a376d4fa6a36e"),
|
865
|
+
actionType: 'setValue',
|
866
|
+
description: i18n("7d9260bd45b2e85a09398f218c25f220"),
|
867
|
+
innerArgs: ['value', 'index', '__valueInput', '__comboType', '__containerType'],
|
868
|
+
descDetail: function (info) {
|
869
|
+
return React__default.createElement("div", null, "\u8BBE\u7F6E", React__default.createElement("span", {
|
870
|
+
className: "variable-left variable-right"
|
871
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
872
|
+
},
|
873
|
+
supportComponents: 'byComponent',
|
874
|
+
schema: __spreadArray(__spreadArray([], renderCmptActionSelect(i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
|
875
|
+
form.setValueByName('args.__containerType', 'all');
|
876
|
+
form.setValueByName('args.__comboType', 'all');
|
877
|
+
}), true), [getArgsWrapper({
|
878
|
+
type: 'wrapper',
|
879
|
+
className: 'p-none',
|
880
|
+
body: [{
|
881
|
+
type: 'radios',
|
882
|
+
name: '__containerType',
|
883
|
+
mode: 'horizontal',
|
884
|
+
label: i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
|
885
|
+
pipeIn: defaultValue('all'),
|
886
|
+
visibleOn: "".concat(IS_DATA_CONTAINER),
|
887
|
+
options: [{
|
888
|
+
label: i18n("77b1081c177fa3334cc93c99f0ecee75"),
|
889
|
+
value: 'all'
|
890
|
+
}, {
|
891
|
+
label: i18n("f5c5e3d69daee06ea1606378ef466765"),
|
892
|
+
value: 'appoint'
|
893
|
+
}],
|
894
|
+
onChange: function (value, oldVal, data, form) {
|
895
|
+
form.setValueByName('value', []);
|
896
|
+
form.setValueByName('__valueInput', undefined);
|
897
|
+
}
|
898
|
+
}, {
|
899
|
+
type: 'radios',
|
900
|
+
name: '__comboType',
|
901
|
+
inputClassName: 'event-action-radio',
|
902
|
+
mode: 'horizontal',
|
903
|
+
label: i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
|
904
|
+
pipeIn: defaultValue('all'),
|
905
|
+
visibleOn: "data.__rendererName === 'combo'",
|
906
|
+
options: [{
|
907
|
+
label: i18n("c60ad696dee4e1eeff6f0f2c2e9b9fc0"),
|
908
|
+
value: 'all'
|
909
|
+
}, {
|
910
|
+
label: i18n("139294edcce271bf483dda437c421c29"),
|
911
|
+
value: 'appoint'
|
912
|
+
}],
|
913
|
+
onChange: function (value, oldVal, data, form) {
|
914
|
+
form.setValueByName('index', undefined);
|
915
|
+
form.setValueByName('value', []);
|
916
|
+
form.setValueByName('__valueInput', undefined);
|
917
|
+
}
|
918
|
+
}, {
|
919
|
+
type: 'input-number',
|
920
|
+
required: true,
|
921
|
+
name: 'index',
|
922
|
+
mode: 'horizontal',
|
923
|
+
label: i18n("a7b0b80a7bea1e5e973967c179866ef0"),
|
924
|
+
size: 'lg',
|
925
|
+
placeholder: i18n("e887792fbbd65d21e43e832a5cd63aac"),
|
926
|
+
visibleOn: "data.__comboType === 'appoint' && data.__rendererName === 'combo'"
|
927
|
+
}, {
|
928
|
+
type: 'combo',
|
929
|
+
name: 'value',
|
930
|
+
label: '',
|
931
|
+
multiple: true,
|
932
|
+
removable: true,
|
933
|
+
required: true,
|
934
|
+
addable: true,
|
935
|
+
strictMode: false,
|
936
|
+
canAccessSuperData: true,
|
937
|
+
size: 'lg',
|
938
|
+
mode: 'horizontal',
|
939
|
+
items: [{
|
940
|
+
name: 'key',
|
941
|
+
type: 'input-text',
|
942
|
+
placeholder: i18n("a25657422b40023f2731619587940bc7"),
|
943
|
+
source: '${__setValueDs}',
|
944
|
+
labelField: 'label',
|
945
|
+
valueField: 'value',
|
946
|
+
required: true
|
947
|
+
},
|
948
|
+
/*
|
949
|
+
{
|
950
|
+
name: 'val',
|
951
|
+
type: 'input-formula',
|
952
|
+
placeholder: '字段值',
|
953
|
+
variables: '${variables}',
|
954
|
+
evalMode: false,
|
955
|
+
variableMode: 'tabs',
|
956
|
+
inputMode: 'input-group'
|
957
|
+
}
|
958
|
+
*/
|
959
|
+
{
|
960
|
+
name: 'val',
|
961
|
+
type: 'ae-formulaControl',
|
962
|
+
variables: '${variables}',
|
963
|
+
placeholder: i18n("a33903526e8fb3d1ac3066da70e7941e")
|
964
|
+
}],
|
965
|
+
visibleOn: "".concat(IS_DATA_CONTAINER, " && data.__containerType === 'appoint' || data.__comboType === 'appoint'")
|
966
|
+
}, {
|
967
|
+
type: 'combo',
|
968
|
+
name: 'value',
|
969
|
+
label: '',
|
970
|
+
multiple: true,
|
971
|
+
removable: true,
|
972
|
+
required: true,
|
973
|
+
addable: true,
|
974
|
+
strictMode: false,
|
975
|
+
canAccessSuperData: true,
|
976
|
+
mode: 'horizontal',
|
977
|
+
size: 'lg',
|
978
|
+
items: [{
|
979
|
+
type: 'combo',
|
980
|
+
name: 'item',
|
981
|
+
label: false,
|
982
|
+
renderLabel: false,
|
983
|
+
multiple: true,
|
984
|
+
removable: true,
|
985
|
+
required: true,
|
986
|
+
addable: true,
|
987
|
+
strictMode: false,
|
988
|
+
canAccessSuperData: true,
|
989
|
+
className: 'm-l',
|
990
|
+
size: 'lg',
|
991
|
+
mode: 'horizontal',
|
992
|
+
items: [{
|
993
|
+
name: 'key',
|
994
|
+
type: 'input-text',
|
995
|
+
source: '${__setValueDs}',
|
996
|
+
labelField: 'label',
|
997
|
+
valueField: 'value',
|
998
|
+
required: true,
|
999
|
+
visibleOn: "data.__rendererName"
|
1000
|
+
},
|
1001
|
+
/*
|
1002
|
+
{
|
1003
|
+
name: 'val',
|
1004
|
+
type: 'input-formula',
|
1005
|
+
variables: '${variables}',
|
1006
|
+
evalMode: false,
|
1007
|
+
variableMode: 'tabs',
|
1008
|
+
inputMode: 'input-group'
|
1009
|
+
}
|
1010
|
+
*/
|
1011
|
+
{
|
1012
|
+
name: 'val',
|
1013
|
+
type: 'ae-formulaControl',
|
1014
|
+
variables: '${variables}'
|
1015
|
+
}]
|
1016
|
+
}],
|
1017
|
+
visibleOn: "data.__rendererName === 'combo' && data.__comboType === 'all'"
|
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: `(${IS_DATA_CONTAINER} || ${SHOW_SELECT_PROP}) && data.__containerType === 'all'`,
|
1031
|
+
required: true
|
1032
|
+
},
|
1033
|
+
*/
|
1034
|
+
{
|
1035
|
+
name: '__valueInput',
|
1036
|
+
label: '',
|
1037
|
+
type: 'ae-formulaControl',
|
1038
|
+
variables: '${variables}',
|
1039
|
+
size: 'lg',
|
1040
|
+
mode: 'horizontal',
|
1041
|
+
visibleOn: "(".concat(IS_DATA_CONTAINER, " || ").concat(SHOW_SELECT_PROP, ") && data.__containerType === 'all'"),
|
1042
|
+
required: true
|
1043
|
+
},,
|
1044
|
+
/*
|
1045
|
+
{
|
1046
|
+
name: '__valueInput',
|
1047
|
+
type: 'input-formula',
|
1048
|
+
variables: '${variables}',
|
1049
|
+
evalMode: false,
|
1050
|
+
variableMode: 'tabs',
|
1051
|
+
inputMode: 'input-group',
|
1052
|
+
label: '数据设置',
|
1053
|
+
size: 'lg',
|
1054
|
+
mode: 'horizontal',
|
1055
|
+
visibleOn: `data.__rendererName && !${IS_DATA_CONTAINER} && data.__rendererName !== 'combo'`,
|
1056
|
+
required: true
|
1057
|
+
}
|
1058
|
+
*/
|
1059
|
+
{
|
1060
|
+
name: '__valueInput',
|
1061
|
+
label: i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
|
1062
|
+
type: 'ae-formulaControl',
|
1063
|
+
variables: '${variables}',
|
1064
|
+
size: 'lg',
|
1065
|
+
mode: 'horizontal',
|
1066
|
+
visibleOn: "data.__rendererName && !".concat(IS_DATA_CONTAINER, " && data.__rendererName !== 'combo'"),
|
1067
|
+
required: true
|
1068
|
+
}]
|
1069
|
+
})], false)
|
1070
|
+
}, {
|
1071
|
+
actionLabel: i18n("4e34003861eee3de1e0c9c1222249bbb"),
|
1072
|
+
actionType: 'submit',
|
1073
|
+
description: i18n("a360c5d4e723ad78a5e52eb1f5f3f2a2"),
|
1074
|
+
descDetail: function (info) {
|
1075
|
+
return React__default.createElement("div", null, "\u63D0\u4EA4", React__default.createElement("span", {
|
1076
|
+
className: "variable-left variable-right"
|
1077
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1078
|
+
},
|
1079
|
+
supportComponents: 'form',
|
1080
|
+
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1081
|
+
}, {
|
1082
|
+
actionLabel: i18n("4a3deab45c0a7218b8ae58a33fd24c28"),
|
1083
|
+
actionType: 'clear',
|
1084
|
+
description: i18n("82986a4cab1d0efdbc23b3ac5f0fd509"),
|
1085
|
+
descDetail: function (info) {
|
1086
|
+
return React__default.createElement("div", null, "\u6E05\u7A7A", React__default.createElement("span", {
|
1087
|
+
className: "variable-left variable-right"
|
1088
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1089
|
+
},
|
1090
|
+
supportComponents: 'form',
|
1091
|
+
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1092
|
+
}, {
|
1093
|
+
actionLabel: i18n("1b6f5cc49e71c90a5b85a796285e3135"),
|
1094
|
+
actionType: 'reset',
|
1095
|
+
description: i18n("f457845da8c119a8688e333a3554284f"),
|
1096
|
+
descDetail: function (info) {
|
1097
|
+
return React__default.createElement("div", null, "\u91CD\u7F6E", React__default.createElement("span", {
|
1098
|
+
className: "variable-left variable-right"
|
1099
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1100
|
+
},
|
1101
|
+
supportComponents: 'form',
|
1102
|
+
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1103
|
+
}, {
|
1104
|
+
actionLabel: i18n("17f2bf425eeb7d20d79c595344e9dc94"),
|
1105
|
+
actionType: 'validate',
|
1106
|
+
description: i18n("a84a1311bea7370f1749341ffa6f75e1"),
|
1107
|
+
descDetail: function (info) {
|
1108
|
+
return React__default.createElement("div", null, "\u6821\u9A8C", React__default.createElement("span", {
|
1109
|
+
className: "variable-left variable-right"
|
1110
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
|
1111
|
+
},
|
1112
|
+
supportComponents: 'form',
|
1113
|
+
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1114
|
+
}, {
|
1115
|
+
actionLabel: i18n("51325230409d4b7c64aaeb3db9904801"),
|
1116
|
+
actionType: 'component',
|
1117
|
+
description: i18n("98d130cb9a360df782f6510abacbc022"),
|
1118
|
+
supportComponents: '*',
|
1119
|
+
schema: renderCmptActionSelect(i18n("6afde638796d237377b0755506d08ded"))
|
1120
|
+
}]
|
1121
|
+
}, {
|
1122
|
+
actionLabel: i18n("0d98c74797e49d00bcc4c17c9d557a2b"),
|
1123
|
+
actionType: 'others',
|
1124
|
+
children: [{
|
1125
|
+
actionLabel: i18n("6a086902a84969a835423002718e86b4"),
|
1126
|
+
actionType: 'copy',
|
1127
|
+
description: i18n("557d01c07aa7c4450a414932e6c1ed2a"),
|
1128
|
+
innerArgs: ['content', 'copyFormat'],
|
1129
|
+
descDetail: function (info) {
|
1130
|
+
var _a;
|
1131
|
+
return React__default.createElement("div", null, "\u590D\u5236\u5185\u5BB9\uFF1A", React__default.createElement("span", {
|
1132
|
+
className: "variable-left"
|
1133
|
+
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.content) || '-'));
|
1134
|
+
},
|
1135
|
+
schema: getArgsWrapper({
|
1136
|
+
type: 'wrapper',
|
1137
|
+
className: 'p-none',
|
1138
|
+
body: [
|
1139
|
+
/*
|
1140
|
+
{
|
1141
|
+
name: 'content',
|
1142
|
+
type: 'input-formula',
|
1143
|
+
variables: '${variables}',
|
1144
|
+
evalMode: false,
|
1145
|
+
variableMode: 'tabs',
|
1146
|
+
inputMode: 'input-group',
|
1147
|
+
label: '内容模板',
|
1148
|
+
mode: 'horizontal',
|
1149
|
+
size: 'lg',
|
1150
|
+
visibleOn: 'data.actionType === "copy"',
|
1151
|
+
required: true
|
1152
|
+
},
|
1153
|
+
*/
|
1154
|
+
{
|
1155
|
+
name: 'content',
|
1156
|
+
label: i18n("ac04259507be8ba6b891dc9dc208f491"),
|
1157
|
+
type: 'ae-textareaFormulaControl',
|
1158
|
+
variables: '${variables}',
|
1159
|
+
mode: 'horizontal',
|
1160
|
+
size: 'lg',
|
1161
|
+
visibleOn: 'data.actionType === "copy"',
|
1162
|
+
required: true
|
1163
|
+
}, {
|
1164
|
+
type: 'select',
|
1165
|
+
name: 'copyFormat',
|
1166
|
+
mode: 'horizontal',
|
1167
|
+
value: 'text/plain',
|
1168
|
+
size: 'lg',
|
1169
|
+
options: [{
|
1170
|
+
label: i18n("ffb01e5bcf4c00447f5150d3cba81371"),
|
1171
|
+
value: 'text/plain'
|
1172
|
+
}, {
|
1173
|
+
label: i18n("e2591e971f4c28db7c80a5f546084a1d"),
|
1174
|
+
value: 'text/html'
|
1175
|
+
}],
|
1176
|
+
label: i18n("c28f4d63beabc4833b17aaa10ca550db")
|
1177
|
+
}]
|
1178
|
+
})
|
1179
|
+
}, {
|
1180
|
+
actionLabel: i18n("c7f16d729f3bca8f6936416884a74fb8"),
|
1181
|
+
actionType: 'custom',
|
1182
|
+
description: i18n("1b5a6299ef404c1f7b4292c290b80f55"),
|
1183
|
+
schema: {
|
1184
|
+
type: 'js-editor',
|
1185
|
+
allowFullscreen: true,
|
1186
|
+
required: true,
|
1187
|
+
name: 'script',
|
1188
|
+
label: i18n("c7f16d729f3bca8f6936416884a74fb8"),
|
1189
|
+
mode: 'horizontal',
|
1190
|
+
options: {
|
1191
|
+
automaticLayout: true,
|
1192
|
+
lineNumbers: 'off',
|
1193
|
+
glyphMargin: false,
|
1194
|
+
tabSize: 2,
|
1195
|
+
fontSize: '12px',
|
1196
|
+
wordWrap: 'on',
|
1197
|
+
lineDecorationsWidth: 0,
|
1198
|
+
lineNumbersMinChars: 0,
|
1199
|
+
selectOnLineNumbers: true,
|
1200
|
+
scrollBeyondLastLine: false,
|
1201
|
+
folding: true
|
1202
|
+
},
|
1203
|
+
className: 'ae-event-control-action-js-editor',
|
1204
|
+
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"
|
1205
|
+
}
|
1206
|
+
}
|
1207
|
+
// {
|
1208
|
+
// actionLabel: '广播',
|
1209
|
+
// actionType: 'broadcast',
|
1210
|
+
// description: '发送广播事件',
|
1211
|
+
// schema: {
|
1212
|
+
// type: 'wrapper',
|
1213
|
+
// className: 'p-none',
|
1214
|
+
// body: [
|
1215
|
+
// {
|
1216
|
+
// type: 'input-text',
|
1217
|
+
// name: 'eventName',
|
1218
|
+
// label: '广播标识',
|
1219
|
+
// mode: 'horizontal',
|
1220
|
+
// required: true,
|
1221
|
+
// description: '广播事件标识派发出去后,其他组件可以进行监听并作出响应'
|
1222
|
+
// },
|
1223
|
+
// {
|
1224
|
+
// type: 'input-text',
|
1225
|
+
// label: '广播名称',
|
1226
|
+
// name: 'eventLabel',
|
1227
|
+
// mode: 'horizontal',
|
1228
|
+
// required: true
|
1229
|
+
// },
|
1230
|
+
// {
|
1231
|
+
// type: 'textarea',
|
1232
|
+
// label: '描述',
|
1233
|
+
// name: 'description',
|
1234
|
+
// mode: 'horizontal',
|
1235
|
+
// required: true
|
1236
|
+
// }
|
1237
|
+
// ]
|
1238
|
+
// }
|
1239
|
+
// }
|
1240
|
+
]
|
1241
|
+
}];
|
1242
|
+
};
|
1243
|
+
// 渲染组件选择配置项
|
1244
|
+
var renderCmptSelect = function (componentLabel, required, onChange) {
|
1245
|
+
return [{
|
1246
|
+
type: 'tree-select',
|
1247
|
+
name: 'componentId',
|
1248
|
+
label: componentLabel || i18n("d80bc0fcbfb250480320b683e48b1467"),
|
1249
|
+
showIcon: false,
|
1250
|
+
searchable: true,
|
1251
|
+
required: required,
|
1252
|
+
selfDisabledAffectChildren: false,
|
1253
|
+
size: 'lg',
|
1254
|
+
source: '${__cmptTreeSource}',
|
1255
|
+
mode: 'horizontal',
|
1256
|
+
autoFill: {
|
1257
|
+
__rendererLabel: '${label}',
|
1258
|
+
__rendererName: '${type}',
|
1259
|
+
__nodeId: '${id}',
|
1260
|
+
__nodeSchema: '${schema}'
|
1261
|
+
},
|
1262
|
+
onChange: function (value, oldVal, data, form) {
|
1263
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
1264
|
+
return __generator(this, function (_a) {
|
1265
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value, oldVal, data, form);
|
1266
|
+
return [2 /*return*/];
|
1267
|
+
});
|
1268
|
+
});
|
1269
|
+
}
|
1270
|
+
}];
|
1271
|
+
};
|
1272
|
+
// 渲染组件特性动作配置项
|
1273
|
+
var renderCmptActionSelect = function (componentLabel, required, onChange) {
|
1274
|
+
return __spreadArray(__spreadArray([], renderCmptSelect(componentLabel || i18n("d80bc0fcbfb250480320b683e48b1467"), true, function (value, oldVal, data, form) {
|
1275
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
1276
|
+
var rendererType, dataSchema, dataSchemaIns, variables;
|
1277
|
+
var _a, _b;
|
1278
|
+
return __generator(this, function (_c) {
|
1279
|
+
switch (_c.label) {
|
1280
|
+
case 0:
|
1281
|
+
rendererType = form.data.__rendererName;
|
1282
|
+
if (!form.data.__nodeId) return [3 /*break*/, 2];
|
1283
|
+
return [4 /*yield*/, (_b = (_a = form.data).getContextSchemas) === null || _b === void 0 ? void 0 : _b.call(_a, form.data.__nodeId, true)];
|
1284
|
+
case 1:
|
1285
|
+
dataSchema = _c.sent();
|
1286
|
+
dataSchemaIns = new DataSchema(dataSchema || []);
|
1287
|
+
variables = (dataSchemaIns === null || dataSchemaIns === void 0 ? void 0 : dataSchemaIns.getDataPropsAsOptions()) || [];
|
1288
|
+
form.setValueByName('__cmptDataSchema', dataSchema);
|
1289
|
+
form.setValueByName('__cmptVariables', variables); // 组件上下文(不含父级)
|
1290
|
+
form.setValueByName('__cmptVariablesWithSys', __spreadArray([
|
1291
|
+
// 组件上下文+页面+系统
|
1292
|
+
{
|
1293
|
+
label: "".concat(form.data.__rendererLabel, "\u53D8\u91CF"),
|
1294
|
+
children: variables
|
1295
|
+
}], form.data.rawVariables.filter(function (item) {
|
1296
|
+
return [i18n("cc6aeb073ebc3cb29734a49164f8964c"), i18n("979a50681e278dcc0be18f68459e8217")].includes(item.label);
|
1297
|
+
}), true));
|
1298
|
+
if (form.data.actionType === 'setValue') {
|
1299
|
+
// todo:这里会闪一下,需要从amis查下问题
|
1300
|
+
form.setValueByName('args.value', []);
|
1301
|
+
form.setValueByName('args.__comboType', undefined);
|
1302
|
+
form.setValueByName('args.__valueInput', undefined);
|
1303
|
+
form.setValueByName('args.__containerType', undefined);
|
1304
|
+
if (SELECT_PROPS_CONTAINER.includes(rendererType)) {
|
1305
|
+
form.setValueByName('__setValueDs', variables.filter(function (item) {
|
1306
|
+
return item.value !== '$$id';
|
1307
|
+
}));
|
1308
|
+
} else {
|
1309
|
+
form.setValueByName('__setValueDs', []);
|
1310
|
+
}
|
1311
|
+
}
|
1312
|
+
_c.label = 2;
|
1313
|
+
case 2:
|
1314
|
+
form.setValueByName('groupType', '');
|
1315
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value, oldVal, data, form);
|
1316
|
+
return [2 /*return*/];
|
1317
|
+
}
|
1318
|
+
});
|
1319
|
+
});
|
1320
|
+
}), true), [{
|
1321
|
+
asFormItem: true,
|
1322
|
+
label: i18n("8deee3cdecdf06a05d22fcacc7031492"),
|
1323
|
+
name: 'groupType',
|
1324
|
+
mode: 'horizontal',
|
1325
|
+
required: true,
|
1326
|
+
visibleOn: 'data.actionType === "component"',
|
1327
|
+
component: CmptActionSelect,
|
1328
|
+
description: '${__cmptActionDesc}'
|
1329
|
+
}], false);
|
1330
|
+
};
|
47
1331
|
// 动作配置项schema map
|
48
1332
|
var COMMON_ACTION_SCHEMA_MAP = {
|
49
1333
|
setValue: {
|
@@ -331,94 +1615,6 @@ var getPropOfAcion = function (action, propName, actionTree, pluginActions, comm
|
|
331
1615
|
}
|
332
1616
|
return prop;
|
333
1617
|
};
|
334
|
-
// 渲染组件选择配置项
|
335
|
-
var renderCmptSelect = function (componentLabel, required, onChange) {
|
336
|
-
return [{
|
337
|
-
type: 'tree-select',
|
338
|
-
name: 'componentId',
|
339
|
-
label: componentLabel || i18n("d80bc0fcbfb250480320b683e48b1467"),
|
340
|
-
showIcon: false,
|
341
|
-
searchable: true,
|
342
|
-
required: required,
|
343
|
-
selfDisabledAffectChildren: false,
|
344
|
-
size: 'lg',
|
345
|
-
source: '${__cmptTreeSource}',
|
346
|
-
mode: 'horizontal',
|
347
|
-
autoFill: {
|
348
|
-
__rendererLabel: '${label}',
|
349
|
-
__rendererName: '${type}',
|
350
|
-
__nodeId: '${id}',
|
351
|
-
__nodeSchema: '${schema}'
|
352
|
-
},
|
353
|
-
onChange: function (value, oldVal, data, form) {
|
354
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
355
|
-
return __generator(this, function (_a) {
|
356
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(value, oldVal, data, form);
|
357
|
-
return [2 /*return*/];
|
358
|
-
});
|
359
|
-
});
|
360
|
-
}
|
361
|
-
}];
|
362
|
-
};
|
363
|
-
// 渲染组件特性动作配置项
|
364
|
-
var renderCmptActionSelect = function (componentLabel, required, onChange) {
|
365
|
-
return __spreadArray(__spreadArray([], renderCmptSelect(componentLabel || i18n("d80bc0fcbfb250480320b683e48b1467"), true, function (value, oldVal, data, form) {
|
366
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
367
|
-
var rendererType, dataSchema, dataSchemaIns, variables;
|
368
|
-
var _a, _b;
|
369
|
-
return __generator(this, function (_c) {
|
370
|
-
switch (_c.label) {
|
371
|
-
case 0:
|
372
|
-
rendererType = form.data.__rendererName;
|
373
|
-
if (!form.data.__nodeId) return [3 /*break*/, 2];
|
374
|
-
return [4 /*yield*/, (_b = (_a = form.data).getContextSchemas) === null || _b === void 0 ? void 0 : _b.call(_a, form.data.__nodeId, true)];
|
375
|
-
case 1:
|
376
|
-
dataSchema = _c.sent();
|
377
|
-
dataSchemaIns = new DataSchema(dataSchema || []);
|
378
|
-
variables = (dataSchemaIns === null || dataSchemaIns === void 0 ? void 0 : dataSchemaIns.getDataPropsAsOptions()) || [];
|
379
|
-
form.setValueByName('__cmptDataSchema', dataSchema);
|
380
|
-
form.setValueByName('__cmptVariables', variables); // 组件上下文(不含父级)
|
381
|
-
form.setValueByName('__cmptVariablesWithSys', __spreadArray([
|
382
|
-
// 组件上下文+页面+系统
|
383
|
-
{
|
384
|
-
label: "".concat(form.data.__rendererLabel, "\u53D8\u91CF"),
|
385
|
-
children: variables
|
386
|
-
}], form.data.rawVariables.filter(function (item) {
|
387
|
-
return [i18n("cc6aeb073ebc3cb29734a49164f8964c"), i18n("979a50681e278dcc0be18f68459e8217")].includes(item.label);
|
388
|
-
}), true));
|
389
|
-
if (form.data.actionType === 'setValue') {
|
390
|
-
// todo:这里会闪一下,需要从amis查下问题
|
391
|
-
form.setValueByName('args.value', []);
|
392
|
-
form.setValueByName('args.__comboType', undefined);
|
393
|
-
form.setValueByName('args.__valueInput', undefined);
|
394
|
-
form.setValueByName('args.__containerType', undefined);
|
395
|
-
if (SELECT_PROPS_CONTAINER.includes(rendererType)) {
|
396
|
-
form.setValueByName('__setValueDs', variables.filter(function (item) {
|
397
|
-
return item.value !== '$$id';
|
398
|
-
}));
|
399
|
-
} else {
|
400
|
-
form.setValueByName('__setValueDs', []);
|
401
|
-
}
|
402
|
-
}
|
403
|
-
_c.label = 2;
|
404
|
-
case 2:
|
405
|
-
form.setValueByName('groupType', '');
|
406
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(value, oldVal, data, form);
|
407
|
-
return [2 /*return*/];
|
408
|
-
}
|
409
|
-
});
|
410
|
-
});
|
411
|
-
}), true), [{
|
412
|
-
asFormItem: true,
|
413
|
-
label: i18n("8deee3cdecdf06a05d22fcacc7031492"),
|
414
|
-
name: 'groupType',
|
415
|
-
mode: 'horizontal',
|
416
|
-
required: true,
|
417
|
-
visibleOn: 'data.actionType === "component"',
|
418
|
-
component: CmptActionSelect,
|
419
|
-
description: '${__cmptActionDesc}'
|
420
|
-
}], false);
|
421
|
-
};
|
422
1618
|
var getOldActionSchema = function (manager, context) {
|
423
1619
|
var isInDialog = /(?:\/|^)dialog\/.+$/.test(context.path);
|
424
1620
|
return {
|
@@ -1039,4 +2235,4 @@ var getEventControlConfig = function (manager, context) {
|
|
1039
2235
|
};
|
1040
2236
|
};
|
1041
2237
|
|
1042
|
-
export { COMMON_ACTION_SCHEMA_MAP, DATA_CONTAINER, FORMITEM_CMPTS, IS_DATA_CONTAINER, 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, renderCmptSelect };
|
2238
|
+
export { ACTION_TYPE_TREE, COMMON_ACTION_SCHEMA_MAP, DATA_CONTAINER, FORMITEM_CMPTS, IS_DATA_CONTAINER, 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, renderCmptSelect };
|