amis-editor 5.2.5-beta.7 → 5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/component/BaseControl.js +1 -1
- package/esm/component/InputComponentName.js +1 -1
- package/esm/component/TableViewEditor.d.ts +1 -1
- package/esm/component/TableViewEditor.js +1 -1
- package/esm/icons/btn/btn-group.svg.js +1 -1
- package/esm/icons/btn/btn-select.svg.js +1 -1
- package/esm/icons/btn/btn-toolbar.svg.js +1 -1
- package/esm/icons/btn/button.svg.js +1 -1
- package/esm/icons/btn/dropdown-btn.svg.js +1 -1
- package/esm/icons/container/anchor-nav.svg.js +1 -1
- package/esm/icons/container/collapse.svg.js +1 -1
- package/esm/icons/container/container.svg.js +1 -1
- package/esm/icons/container/flex-container.svg.js +1 -1
- package/esm/icons/container/form-group.svg.js +1 -1
- package/esm/icons/container/grid.svg.js +1 -1
- package/esm/icons/container/iframe.svg.js +1 -1
- package/esm/icons/container/panel.svg.js +1 -1
- package/esm/icons/container/table-view.svg.js +1 -1
- package/esm/icons/container/tabs.svg.js +1 -1
- package/esm/icons/container/tooltip-wrapper.svg.js +1 -1
- package/esm/icons/container/web-component.svg.js +1 -1
- package/esm/icons/display/aBaseline.svg.js +1 -1
- package/esm/icons/display/aCenter.svg.js +1 -1
- package/esm/icons/display/aFlexEnd.svg.js +1 -1
- package/esm/icons/display/aFlexStart.svg.js +1 -1
- package/esm/icons/display/aStretch.svg.js +1 -1
- package/esm/icons/display/block.svg.js +1 -1
- package/esm/icons/display/dcolumn.svg.js +1 -1
- package/esm/icons/display/dcolumnReverse.svg.js +1 -1
- package/esm/icons/display/drow.svg.js +1 -1
- package/esm/icons/display/drowReverse.svg.js +1 -1
- package/esm/icons/display/flex.svg.js +1 -1
- package/esm/icons/display/inline-block.svg.js +1 -1
- package/esm/icons/display/inline.svg.js +1 -1
- package/esm/icons/display/jCenter.svg.js +1 -1
- package/esm/icons/display/jFlexEnd.svg.js +1 -1
- package/esm/icons/display/jFlexStart.svg.js +1 -1
- package/esm/icons/display/jSpaceAround.svg.js +1 -1
- package/esm/icons/display/jSpaceBetween.svg.js +1 -1
- package/esm/icons/feat/audio.svg.js +1 -1
- package/esm/icons/feat/custom.svg.js +1 -1
- package/esm/icons/feat/each.svg.js +1 -1
- package/esm/icons/feat/form.svg.js +1 -1
- package/esm/icons/feat/nav.svg.js +1 -1
- package/esm/icons/feat/qrcode.svg.js +1 -1
- package/esm/icons/feat/service.svg.js +1 -1
- package/esm/icons/feat/table.svg.js +1 -1
- package/esm/icons/feat/tasks.svg.js +1 -1
- package/esm/icons/feat/video.svg.js +1 -1
- package/esm/icons/feat/wizard.svg.js +1 -1
- package/esm/icons/form/chained-select.svg.js +1 -1
- package/esm/icons/form/checkbox.svg.js +1 -1
- package/esm/icons/form/checkboxes.svg.js +1 -1
- package/esm/icons/form/combo.svg.js +1 -1
- package/esm/icons/form/condition-builder.svg.js +1 -1
- package/esm/icons/form/diff-editor.svg.js +1 -1
- package/esm/icons/form/editor.svg.js +1 -1
- package/esm/icons/form/formula.svg.js +1 -1
- package/esm/icons/form/hidden.svg.js +1 -1
- package/esm/icons/form/input-city.svg.js +1 -1
- package/esm/icons/form/input-color.svg.js +1 -1
- package/esm/icons/form/input-date-range.svg.js +1 -1
- package/esm/icons/form/input-date.svg.js +1 -1
- package/esm/icons/form/input-datetime.svg.js +1 -1
- package/esm/icons/form/input-email.svg.js +1 -1
- package/esm/icons/form/input-excel.svg.js +1 -1
- package/esm/icons/form/input-file.svg.js +1 -1
- package/esm/icons/form/input-group.svg.js +1 -1
- package/esm/icons/form/input-image.svg.js +1 -1
- package/esm/icons/form/input-kv.svg.js +1 -1
- package/esm/icons/form/input-month-range.svg.js +1 -1
- package/esm/icons/form/input-number.svg.js +1 -1
- package/esm/icons/form/input-password.svg.js +1 -1
- package/esm/icons/form/input-quarter-range.svg.js +1 -1
- package/esm/icons/form/input-range.svg.js +1 -1
- package/esm/icons/form/input-rating.svg.js +1 -1
- package/esm/icons/form/input-repeat.svg.js +1 -1
- package/esm/icons/form/input-rich-text.svg.js +1 -1
- package/esm/icons/form/input-tag.svg.js +1 -1
- package/esm/icons/form/input-text.svg.js +1 -1
- package/esm/icons/form/input-time-range.svg.js +1 -1
- package/esm/icons/form/input-time.svg.js +1 -1
- package/esm/icons/form/input-tree.svg.js +1 -1
- package/esm/icons/form/input-url.svg.js +1 -1
- package/esm/icons/form/input-year.svg.js +1 -1
- package/esm/icons/form/inputArray.svg.js +1 -1
- package/esm/icons/form/list-select.svg.js +1 -1
- package/esm/icons/form/location-picker.svg.js +1 -1
- package/esm/icons/form/matrix-checkboxes.svg.js +1 -1
- package/esm/icons/form/month.svg.js +1 -1
- package/esm/icons/form/nested-select.svg.js +1 -1
- package/esm/icons/form/picker.svg.js +1 -1
- package/esm/icons/form/quarter.svg.js +1 -1
- package/esm/icons/form/radios.svg.js +1 -1
- package/esm/icons/form/select.svg.js +1 -1
- package/esm/icons/form/static.svg.js +1 -1
- package/esm/icons/form/sub-form.svg.js +1 -1
- package/esm/icons/form/switch.svg.js +1 -1
- package/esm/icons/form/tabs-transfer.svg.js +1 -1
- package/esm/icons/form/textarea.svg.js +1 -1
- package/esm/icons/form/transfer.svg.js +1 -1
- package/esm/icons/form/tree-select.svg.js +1 -1
- package/esm/icons/form/uuid.svg.js +1 -1
- package/esm/icons/index.js +6 -1
- package/esm/icons/layout/layout-1with2.svg.js +1 -1
- package/esm/icons/layout/layout-2cols.svg.js +1 -1
- package/esm/icons/layout/layout-2row.svg.js +1 -1
- package/esm/icons/layout/layout-2with1.svg.js +1 -1
- package/esm/icons/layout/layout-3cols.svg.js +1 -1
- package/esm/icons/layout/layout-3row.svg.js +1 -1
- package/esm/icons/layout/layout-absolute.svg.js +1 -1
- package/esm/icons/layout/layout-fixed-top.svg.js +1 -1
- package/esm/icons/layout/layout-fixed.svg.js +20 -15
- package/esm/icons/layout/layout-free-container.svg.js +1 -1
- package/esm/icons/layout/layout-full.svg.js +1 -1
- package/esm/icons/layout/layout1-2.svg.js +1 -1
- package/esm/icons/layout/layout2-1.svg.js +1 -1
- package/esm/icons/layout/layout3-1.svg.js +1 -1
- package/esm/icons/layout/layout3-2.svg.js +1 -1
- package/esm/icons/other/_fx.svg.js +42 -0
- package/esm/icons/other/divider.svg.js +1 -1
- package/esm/icons/other/fx.svg.js +27 -0
- package/esm/icons/other/property-sheet.svg.js +1 -1
- package/esm/icons/other/tooltip.svg.js +1 -1
- package/esm/icons/show/URL.svg.js +1 -1
- package/esm/icons/show/avatar.svg.js +1 -1
- package/esm/icons/show/breadcrumb.svg.js +1 -1
- package/esm/icons/show/card.svg.js +1 -1
- package/esm/icons/show/cards.svg.js +1 -1
- package/esm/icons/show/carousel.svg.js +1 -1
- package/esm/icons/show/chart.svg.js +1 -1
- package/esm/icons/show/code.svg.js +1 -1
- package/esm/icons/show/date.svg.js +1 -1
- package/esm/icons/show/datetime.svg.js +1 -1
- package/esm/icons/show/image.svg.js +1 -1
- package/esm/icons/show/images.svg.js +1 -1
- package/esm/icons/show/json-view.svg.js +1 -1
- package/esm/icons/show/list.svg.js +1 -1
- package/esm/icons/show/log.svg.js +1 -1
- package/esm/icons/show/mapping.svg.js +1 -1
- package/esm/icons/show/markdown.svg.js +1 -1
- package/esm/icons/show/plain.svg.js +1 -1
- package/esm/icons/show/progress.svg.js +1 -1
- package/esm/icons/show/sparkline.svg.js +1 -1
- package/esm/icons/show/status.svg.js +1 -1
- package/esm/icons/show/steps.svg.js +1 -1
- package/esm/icons/show/time.svg.js +1 -1
- package/esm/icons/theme/css.svg.js +1 -1
- package/esm/index.d.ts +107 -101
- package/esm/index.js +108 -103
- package/esm/locale/en-US.js +112 -3
- package/esm/locale/zh-CN.js +123 -5
- package/esm/plugin/Alert.d.ts +2 -1
- package/esm/plugin/Alert.js +2 -1
- package/esm/plugin/AnchorNav.js +2 -2
- package/esm/plugin/Audio.js +1 -1
- package/esm/plugin/Avatar.js +1 -1
- package/esm/plugin/Breadcrumb.js +1 -1
- package/esm/plugin/Button.d.ts +2 -1
- package/esm/plugin/Button.js +4 -3
- package/esm/plugin/ButtonGroup.js +2 -2
- package/esm/plugin/CRUD.d.ts +1 -1
- package/esm/plugin/CRUD.js +3 -3
- package/esm/plugin/CRUD2.d.ts +1 -1
- package/esm/plugin/CRUD2.js +3 -2
- package/esm/plugin/Card.js +1 -1
- package/esm/plugin/Card2.js +1 -1
- package/esm/plugin/Cards.js +9 -4
- package/esm/plugin/Carousel.d.ts +1 -0
- package/esm/plugin/Carousel.js +47 -38
- package/esm/plugin/Chart.js +1 -1
- package/esm/plugin/CodeView.js +1 -1
- package/esm/plugin/Collapse.js +1 -1
- package/esm/plugin/CollapseGroup.js +2 -2
- package/esm/plugin/ColumnToggler.js +1 -1
- package/esm/plugin/Container.js +2 -2
- package/esm/plugin/Custom.js +1 -1
- package/esm/plugin/CustomRegion.js +1 -1
- package/esm/plugin/Date.js +29 -7
- package/esm/plugin/Datetime.js +29 -7
- package/esm/plugin/Dialog.js +1 -1
- package/esm/plugin/Divider.d.ts +1 -0
- package/esm/plugin/Divider.js +2 -1
- package/esm/plugin/Drawer.js +1 -1
- package/esm/plugin/DropDownButton.js +2 -2
- package/esm/plugin/Each.js +1 -1
- package/esm/plugin/Flex.js +2 -2
- package/esm/plugin/Form/ButtonGroupSelect.js +5 -4
- package/esm/plugin/Form/ButtonToolbar.js +2 -2
- package/esm/plugin/Form/ChainedSelect.js +1 -1
- package/esm/plugin/Form/Checkbox.js +1 -1
- package/esm/plugin/Form/Checkboxes.d.ts +0 -1
- package/esm/plugin/Form/Checkboxes.js +1 -2
- package/esm/plugin/Form/CodeEditor.js +4 -4
- package/esm/plugin/Form/Combo.js +4 -6
- package/esm/plugin/Form/ConditionBuilder.js +1 -1
- package/esm/plugin/Form/Control.js +1 -1
- package/esm/plugin/Form/DiffEditor.js +4 -4
- package/esm/plugin/Form/FieldSet.js +1 -1
- package/esm/plugin/Form/Form.d.ts +0 -1
- package/esm/plugin/Form/Form.js +2 -3
- package/esm/plugin/Form/Formula.js +1 -1
- package/esm/plugin/Form/Group.js +1 -1
- package/esm/plugin/Form/Hidden.js +1 -1
- package/esm/plugin/Form/InputArray.js +1 -1
- package/esm/plugin/Form/InputCity.js +1 -1
- package/esm/plugin/Form/InputColor.js +1 -1
- package/esm/plugin/Form/InputDate.d.ts +0 -1
- package/esm/plugin/Form/InputDate.js +19 -3
- package/esm/plugin/Form/InputDateRange.d.ts +0 -1
- package/esm/plugin/Form/InputDateRange.js +91 -27
- package/esm/plugin/Form/InputDateTime.js +1 -1
- package/esm/plugin/Form/InputDateTimeRange.d.ts +0 -1
- package/esm/plugin/Form/InputDateTimeRange.js +1 -2
- package/esm/plugin/Form/InputEmail.js +1 -1
- package/esm/plugin/Form/InputExcel.js +1 -1
- package/esm/plugin/Form/InputFile.js +1 -1
- package/esm/plugin/Form/InputGroup.js +1 -1
- package/esm/plugin/Form/InputImage.js +81 -21
- package/esm/plugin/Form/InputKV.js +1 -1
- package/esm/plugin/Form/InputMonth.js +1 -1
- package/esm/plugin/Form/InputMonthRange.d.ts +0 -1
- package/esm/plugin/Form/InputMonthRange.js +1 -2
- package/esm/plugin/Form/InputNumber.d.ts +0 -1
- package/esm/plugin/Form/InputNumber.js +3 -4
- package/esm/plugin/Form/InputPassword.js +1 -1
- package/esm/plugin/Form/InputQuarter.js +1 -1
- package/esm/plugin/Form/InputQuarterRange.d.ts +0 -1
- package/esm/plugin/Form/InputQuarterRange.js +1 -2
- package/esm/plugin/Form/InputRange.js +1 -1
- package/esm/plugin/Form/InputRating.js +1 -1
- package/esm/plugin/Form/InputRepeat.js +1 -1
- package/esm/plugin/Form/InputRichText.js +1 -1
- package/esm/plugin/Form/InputSubForm.d.ts +0 -1
- package/esm/plugin/Form/InputSubForm.js +1 -1
- package/esm/plugin/Form/InputTable.d.ts +2 -1
- package/esm/plugin/Form/InputTable.js +78 -4
- package/esm/plugin/Form/InputTag.d.ts +1 -1
- package/esm/plugin/Form/InputTag.js +3 -3
- package/esm/plugin/Form/InputText.js +11 -4
- package/esm/plugin/Form/InputTime.js +1 -1
- package/esm/plugin/Form/InputTimeRange.d.ts +0 -1
- package/esm/plugin/Form/InputTimeRange.js +1 -2
- package/esm/plugin/Form/InputTree.js +1 -1
- package/esm/plugin/Form/InputURL.js +1 -1
- package/esm/plugin/Form/InputYear.js +1 -1
- package/esm/plugin/Form/InputYearRange.d.ts +0 -1
- package/esm/plugin/Form/InputYearRange.js +1 -2
- package/esm/plugin/Form/Item.js +1 -1
- package/esm/plugin/Form/ListSelect.d.ts +0 -1
- package/esm/plugin/Form/ListSelect.js +2 -5
- package/esm/plugin/Form/LocationPicker.js +4 -4
- package/esm/plugin/Form/MatrixCheckboxes.js +1 -1
- package/esm/plugin/Form/NestedSelect.js +1 -1
- package/esm/plugin/Form/Picker.d.ts +1 -0
- package/esm/plugin/Form/Picker.js +3 -2
- package/esm/plugin/Form/Radios.d.ts +0 -1
- package/esm/plugin/Form/Radios.js +3 -12
- package/esm/plugin/Form/Select.d.ts +0 -1
- package/esm/plugin/Form/Select.js +2 -3
- package/esm/plugin/Form/Static.d.ts +0 -1
- package/esm/plugin/Form/Static.js +177 -183
- package/esm/plugin/Form/Switch.d.ts +0 -1
- package/esm/plugin/Form/Switch.js +1 -2
- package/esm/plugin/Form/TabsTransfer.js +1 -1
- package/esm/plugin/Form/Textarea.d.ts +0 -1
- package/esm/plugin/Form/Textarea.js +8 -3
- package/esm/plugin/Form/Transfer.js +1 -1
- package/esm/plugin/Form/TreeSelect.js +1 -1
- package/esm/plugin/Form/UUID.js +1 -1
- package/esm/plugin/Grid.js +6 -9
- package/esm/plugin/HBox.js +1 -1
- package/esm/plugin/IFrame.js +2 -2
- package/esm/plugin/Icon.d.ts +23 -0
- package/esm/plugin/Icon.js +122 -0
- package/esm/plugin/Image.js +1 -1
- package/esm/plugin/Images.d.ts +2 -0
- package/esm/plugin/Images.js +6 -8
- package/esm/plugin/Json.js +1 -1
- package/esm/plugin/Layout/FlexPluginBase.js +4 -4
- package/esm/plugin/Layout/Layout_fixed.js +2 -2
- package/esm/plugin/Layout/Layout_free_container.d.ts +0 -1
- package/esm/plugin/Layout/Layout_free_container.js +3 -3
- package/esm/plugin/Layout/Layout_sorption_container.js +2 -2
- package/esm/plugin/Link.js +1 -1
- package/esm/plugin/List.d.ts +0 -1
- package/esm/plugin/List.js +15 -15
- package/esm/plugin/ListItem.js +1 -1
- package/esm/plugin/Log.js +1 -1
- package/esm/plugin/Mapping.js +9 -6
- package/esm/plugin/Markdown.js +1 -1
- package/esm/plugin/Nav.js +1 -1
- package/esm/plugin/OfficeViewer.d.ts +2 -0
- package/esm/plugin/Operation.js +1 -1
- package/esm/plugin/Others/Action.d.ts +3 -1
- package/esm/plugin/Others/Action.js +15 -14
- package/esm/plugin/Others/TableCell.js +2 -2
- package/esm/plugin/Page.d.ts +1 -1
- package/esm/plugin/Page.js +1 -1
- package/esm/plugin/Pagination.js +1 -1
- package/esm/plugin/Panel.d.ts +1 -1
- package/esm/plugin/Panel.js +2 -2
- package/esm/plugin/Plain.js +1 -1
- package/esm/plugin/Progress.d.ts +2 -0
- package/esm/plugin/Progress.js +3 -2
- package/esm/plugin/Property.js +7 -2
- package/esm/plugin/QRCode.js +1 -1
- package/esm/plugin/Reset.js +1 -1
- package/esm/plugin/SearchBox.d.ts +25 -0
- package/esm/plugin/SearchBox.js +146 -0
- package/esm/plugin/Service.js +2 -2
- package/esm/plugin/Sparkline.js +1 -1
- package/esm/plugin/Status.js +1 -1
- package/esm/plugin/Steps.js +4 -4
- package/esm/plugin/Submit.js +1 -1
- package/esm/plugin/Table.d.ts +1 -1
- package/esm/plugin/Table.js +13 -16
- package/esm/plugin/Table2.d.ts +1 -1
- package/esm/plugin/Table2.js +4 -4
- package/esm/plugin/TableCell2.js +1 -1
- package/esm/plugin/TableView.js +2 -2
- package/esm/plugin/Tabs.js +4 -6
- package/esm/plugin/Tag.js +33 -2
- package/esm/plugin/Tasks.js +1 -1
- package/esm/plugin/Time.js +31 -7
- package/esm/plugin/Timeline.js +2 -2
- package/esm/plugin/TooltipWrapper.js +3 -3
- package/esm/plugin/Tpl.d.ts +1 -0
- package/esm/plugin/Tpl.js +2 -1
- package/esm/plugin/Video.js +1 -1
- package/esm/plugin/WebComponent.js +2 -2
- package/esm/plugin/Wizard.js +1 -1
- package/esm/plugin/Wrapper.js +1 -1
- package/esm/renderer/APIAdaptorControl.d.ts +150 -0
- package/esm/renderer/APIAdaptorControl.js +300 -0
- package/esm/renderer/APIControl.d.ts +8 -824
- package/esm/renderer/APIControl.js +5 -26
- package/esm/renderer/ActionApiControl.d.ts +8 -366
- package/esm/renderer/BadgeControl.d.ts +7 -7
- package/esm/renderer/BadgeControl.js +9 -3
- package/esm/renderer/ButtonGroupControl.js +2 -2
- package/esm/renderer/DataBindingControl.d.ts +3 -2
- package/esm/renderer/DataBindingControl.js +3 -4
- package/esm/renderer/DataMappingControl.js +1 -1
- package/esm/renderer/DataPickerControl.js +1 -1
- package/esm/renderer/DateShortCutControl.js +1 -1
- package/esm/renderer/ExpressionFormulaControl.d.ts +1 -2
- package/esm/renderer/ExpressionFormulaControl.js +12 -25
- package/esm/renderer/FeatureControl.js +1 -1
- package/esm/renderer/FlexSettingControl.js +8 -8
- package/esm/renderer/FormulaControl.d.ts +9 -2
- package/esm/renderer/FormulaControl.js +106 -80
- package/esm/renderer/GoConfigControl.js +1 -1
- package/esm/renderer/MapSourceControl.d.ts +3 -2
- package/esm/renderer/MapSourceControl.js +16 -5
- package/esm/renderer/NavBadgeControl.d.ts +7 -7
- package/esm/renderer/NavBadgeControl.js +1 -1
- package/esm/renderer/NavDefaultActive.js +1 -1
- package/esm/renderer/NavSourceControl.d.ts +1 -1
- package/esm/renderer/NavSourceControl.js +1 -1
- package/esm/renderer/OptionControl.d.ts +21 -5
- package/esm/renderer/OptionControl.js +121 -27
- package/esm/renderer/RangePartsControl.js +1 -1
- package/esm/renderer/StatusControl.d.ts +5 -2
- package/esm/renderer/StatusControl.js +17 -4
- package/esm/renderer/SwitchMoreControl.d.ts +26 -133
- package/esm/renderer/SwitchMoreControl.js +1 -1
- package/esm/renderer/TimelineItemControl.d.ts +1 -1
- package/esm/renderer/TimelineItemControl.js +1 -1
- package/esm/renderer/TplFormulaControl.d.ts +75 -0
- package/esm/renderer/TplFormulaControl.js +391 -0
- package/esm/renderer/TransferTableControl.d.ts +4 -3
- package/esm/renderer/TransferTableControl.js +16 -5
- package/esm/renderer/TreeOptionControl.d.ts +4 -3
- package/esm/renderer/TreeOptionControl.js +26 -18
- package/esm/renderer/ValidationControl.d.ts +1 -0
- package/esm/renderer/ValidationControl.js +47 -3
- package/esm/renderer/ValidationItem.js +1 -1
- package/esm/renderer/event-control/action-config-dialog.js +1 -1
- package/esm/renderer/event-control/action-config-panel.js +5 -9
- package/esm/renderer/event-control/comp-action-select.js +1 -1
- package/esm/renderer/event-control/helper.d.ts +4 -0
- package/esm/renderer/event-control/helper.js +154 -65
- package/esm/renderer/event-control/index.js +5 -3
- package/esm/renderer/style-control/Background.js +1 -1
- package/esm/renderer/style-control/Border.js +1 -1
- package/esm/renderer/style-control/BoxModel.js +1 -1
- package/esm/renderer/style-control/BoxShadow.js +1 -1
- package/esm/renderer/style-control/Display.js +1 -1
- package/esm/renderer/style-control/Font.js +1 -1
- package/esm/renderer/style-control/InsetBoxModel.js +1 -1
- package/esm/renderer/style-control/ThemeCssCode.js +6 -6
- package/esm/renderer/style-control/font-family.js +1 -1
- package/esm/renderer/style-control/helper.js +6 -15
- package/esm/renderer/style-control/themeLanguage.js +1874 -3092
- package/esm/renderer/style-control/transformation.js +1 -1
- package/esm/renderer/textarea-formula/FormulaPicker.d.ts +4 -0
- package/esm/renderer/textarea-formula/FormulaPicker.js +44 -24
- package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +56 -14
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +132 -50
- package/esm/renderer/textarea-formula/plugin.d.ts +17 -7
- package/esm/renderer/textarea-formula/plugin.js +67 -35
- package/esm/renderer/textarea-formula/utils.js +4 -2
- package/esm/tpl/api.js +1 -1
- package/esm/tpl/common.js +28 -2
- package/esm/tpl/horizontal.js +1 -1
- package/esm/tpl/layout.js +16 -7
- package/esm/tpl/options.js +10 -4
- package/esm/tpl/remark.js +1 -1
- package/esm/tpl/style.js +31 -5
- package/esm/tpl/validations.js +1 -1
- package/esm/util.d.ts +10 -0
- package/esm/util.js +20 -3
- package/esm/validator.js +1 -1
- package/lib/component/BaseControl.js +1 -1
- package/lib/component/InputComponentName.js +1 -1
- package/lib/component/TableViewEditor.d.ts +1 -1
- package/lib/component/TableViewEditor.js +1 -1
- package/lib/icons/btn/btn-group.svg.js +1 -1
- package/lib/icons/btn/btn-select.svg.js +1 -1
- package/lib/icons/btn/btn-toolbar.svg.js +1 -1
- package/lib/icons/btn/button.svg.js +1 -1
- package/lib/icons/btn/dropdown-btn.svg.js +1 -1
- package/lib/icons/container/anchor-nav.svg.js +1 -1
- package/lib/icons/container/collapse.svg.js +1 -1
- package/lib/icons/container/container.svg.js +1 -1
- package/lib/icons/container/flex-container.svg.js +1 -1
- package/lib/icons/container/form-group.svg.js +1 -1
- package/lib/icons/container/grid.svg.js +1 -1
- package/lib/icons/container/iframe.svg.js +1 -1
- package/lib/icons/container/panel.svg.js +1 -1
- package/lib/icons/container/table-view.svg.js +1 -1
- package/lib/icons/container/tabs.svg.js +1 -1
- package/lib/icons/container/tooltip-wrapper.svg.js +1 -1
- package/lib/icons/container/web-component.svg.js +1 -1
- package/lib/icons/display/aBaseline.svg.js +1 -1
- package/lib/icons/display/aCenter.svg.js +1 -1
- package/lib/icons/display/aFlexEnd.svg.js +1 -1
- package/lib/icons/display/aFlexStart.svg.js +1 -1
- package/lib/icons/display/aStretch.svg.js +1 -1
- package/lib/icons/display/block.svg.js +1 -1
- package/lib/icons/display/dcolumn.svg.js +1 -1
- package/lib/icons/display/dcolumnReverse.svg.js +1 -1
- package/lib/icons/display/drow.svg.js +1 -1
- package/lib/icons/display/drowReverse.svg.js +1 -1
- package/lib/icons/display/flex.svg.js +1 -1
- package/lib/icons/display/inline-block.svg.js +1 -1
- package/lib/icons/display/inline.svg.js +1 -1
- package/lib/icons/display/jCenter.svg.js +1 -1
- package/lib/icons/display/jFlexEnd.svg.js +1 -1
- package/lib/icons/display/jFlexStart.svg.js +1 -1
- package/lib/icons/display/jSpaceAround.svg.js +1 -1
- package/lib/icons/display/jSpaceBetween.svg.js +1 -1
- package/lib/icons/feat/audio.svg.js +1 -1
- package/lib/icons/feat/custom.svg.js +1 -1
- package/lib/icons/feat/each.svg.js +1 -1
- package/lib/icons/feat/form.svg.js +1 -1
- package/lib/icons/feat/nav.svg.js +1 -1
- package/lib/icons/feat/qrcode.svg.js +1 -1
- package/lib/icons/feat/service.svg.js +1 -1
- package/lib/icons/feat/table.svg.js +1 -1
- package/lib/icons/feat/tasks.svg.js +1 -1
- package/lib/icons/feat/video.svg.js +1 -1
- package/lib/icons/feat/wizard.svg.js +1 -1
- package/lib/icons/form/chained-select.svg.js +1 -1
- package/lib/icons/form/checkbox.svg.js +1 -1
- package/lib/icons/form/checkboxes.svg.js +1 -1
- package/lib/icons/form/combo.svg.js +1 -1
- package/lib/icons/form/condition-builder.svg.js +1 -1
- package/lib/icons/form/diff-editor.svg.js +1 -1
- package/lib/icons/form/editor.svg.js +1 -1
- package/lib/icons/form/formula.svg.js +1 -1
- package/lib/icons/form/hidden.svg.js +1 -1
- package/lib/icons/form/input-city.svg.js +1 -1
- package/lib/icons/form/input-color.svg.js +1 -1
- package/lib/icons/form/input-date-range.svg.js +1 -1
- package/lib/icons/form/input-date.svg.js +1 -1
- package/lib/icons/form/input-datetime.svg.js +1 -1
- package/lib/icons/form/input-email.svg.js +1 -1
- package/lib/icons/form/input-excel.svg.js +1 -1
- package/lib/icons/form/input-file.svg.js +1 -1
- package/lib/icons/form/input-group.svg.js +1 -1
- package/lib/icons/form/input-image.svg.js +1 -1
- package/lib/icons/form/input-kv.svg.js +1 -1
- package/lib/icons/form/input-month-range.svg.js +1 -1
- package/lib/icons/form/input-number.svg.js +1 -1
- package/lib/icons/form/input-password.svg.js +1 -1
- package/lib/icons/form/input-quarter-range.svg.js +1 -1
- package/lib/icons/form/input-range.svg.js +1 -1
- package/lib/icons/form/input-rating.svg.js +1 -1
- package/lib/icons/form/input-repeat.svg.js +1 -1
- package/lib/icons/form/input-rich-text.svg.js +1 -1
- package/lib/icons/form/input-tag.svg.js +1 -1
- package/lib/icons/form/input-text.svg.js +1 -1
- package/lib/icons/form/input-time-range.svg.js +1 -1
- package/lib/icons/form/input-time.svg.js +1 -1
- package/lib/icons/form/input-tree.svg.js +1 -1
- package/lib/icons/form/input-url.svg.js +1 -1
- package/lib/icons/form/input-year.svg.js +1 -1
- package/lib/icons/form/inputArray.svg.js +1 -1
- package/lib/icons/form/list-select.svg.js +1 -1
- package/lib/icons/form/location-picker.svg.js +1 -1
- package/lib/icons/form/matrix-checkboxes.svg.js +1 -1
- package/lib/icons/form/month.svg.js +1 -1
- package/lib/icons/form/nested-select.svg.js +1 -1
- package/lib/icons/form/picker.svg.js +1 -1
- package/lib/icons/form/quarter.svg.js +1 -1
- package/lib/icons/form/radios.svg.js +1 -1
- package/lib/icons/form/select.svg.js +1 -1
- package/lib/icons/form/static.svg.js +1 -1
- package/lib/icons/form/sub-form.svg.js +1 -1
- package/lib/icons/form/switch.svg.js +1 -1
- package/lib/icons/form/tabs-transfer.svg.js +1 -1
- package/lib/icons/form/textarea.svg.js +1 -1
- package/lib/icons/form/transfer.svg.js +1 -1
- package/lib/icons/form/tree-select.svg.js +1 -1
- package/lib/icons/form/uuid.svg.js +1 -1
- package/lib/icons/index.js +6 -1
- package/lib/icons/layout/layout-1with2.svg.js +1 -1
- package/lib/icons/layout/layout-2cols.svg.js +1 -1
- package/lib/icons/layout/layout-2row.svg.js +1 -1
- package/lib/icons/layout/layout-2with1.svg.js +1 -1
- package/lib/icons/layout/layout-3cols.svg.js +1 -1
- package/lib/icons/layout/layout-3row.svg.js +1 -1
- package/lib/icons/layout/layout-absolute.svg.js +1 -1
- package/lib/icons/layout/layout-fixed-top.svg.js +1 -1
- package/lib/icons/layout/layout-fixed.svg.js +35 -30
- package/lib/icons/layout/layout-free-container.svg.js +1 -1
- package/lib/icons/layout/layout-full.svg.js +1 -1
- package/lib/icons/layout/layout1-2.svg.js +1 -1
- package/lib/icons/layout/layout2-1.svg.js +1 -1
- package/lib/icons/layout/layout3-1.svg.js +1 -1
- package/lib/icons/layout/layout3-2.svg.js +1 -1
- package/lib/icons/other/_fx.svg.js +66 -0
- package/lib/icons/other/divider.svg.js +1 -1
- package/lib/icons/other/fx.svg.js +51 -0
- package/lib/icons/other/property-sheet.svg.js +1 -1
- package/lib/icons/other/tooltip.svg.js +1 -1
- package/lib/icons/show/URL.svg.js +1 -1
- package/lib/icons/show/avatar.svg.js +1 -1
- package/lib/icons/show/breadcrumb.svg.js +1 -1
- package/lib/icons/show/card.svg.js +1 -1
- package/lib/icons/show/cards.svg.js +1 -1
- package/lib/icons/show/carousel.svg.js +1 -1
- package/lib/icons/show/chart.svg.js +1 -1
- package/lib/icons/show/code.svg.js +1 -1
- package/lib/icons/show/date.svg.js +1 -1
- package/lib/icons/show/datetime.svg.js +1 -1
- package/lib/icons/show/image.svg.js +1 -1
- package/lib/icons/show/images.svg.js +1 -1
- package/lib/icons/show/json-view.svg.js +1 -1
- package/lib/icons/show/list.svg.js +1 -1
- package/lib/icons/show/log.svg.js +1 -1
- package/lib/icons/show/mapping.svg.js +1 -1
- package/lib/icons/show/markdown.svg.js +1 -1
- package/lib/icons/show/plain.svg.js +1 -1
- package/lib/icons/show/progress.svg.js +1 -1
- package/lib/icons/show/sparkline.svg.js +1 -1
- package/lib/icons/show/status.svg.js +1 -1
- package/lib/icons/show/steps.svg.js +1 -1
- package/lib/icons/show/time.svg.js +1 -1
- package/lib/icons/theme/css.svg.js +1 -1
- package/lib/index.d.ts +107 -101
- package/lib/index.js +108 -103
- package/lib/locale/en-US.js +112 -3
- package/lib/locale/zh-CN.js +123 -5
- package/lib/plugin/Alert.d.ts +2 -1
- package/lib/plugin/Alert.js +2 -1
- package/lib/plugin/AnchorNav.js +2 -2
- package/lib/plugin/Audio.js +1 -1
- package/lib/plugin/Avatar.js +1 -1
- package/lib/plugin/Breadcrumb.js +1 -1
- package/lib/plugin/Button.d.ts +2 -1
- package/lib/plugin/Button.js +4 -3
- package/lib/plugin/ButtonGroup.js +2 -2
- package/lib/plugin/CRUD.d.ts +1 -1
- package/lib/plugin/CRUD.js +3 -3
- package/lib/plugin/CRUD2.d.ts +1 -1
- package/lib/plugin/CRUD2.js +3 -2
- package/lib/plugin/Card.js +1 -1
- package/lib/plugin/Card2.js +1 -1
- package/lib/plugin/Cards.js +8 -3
- package/lib/plugin/Carousel.d.ts +1 -0
- package/lib/plugin/Carousel.js +47 -38
- package/lib/plugin/Chart.js +1 -1
- package/lib/plugin/CodeView.js +1 -1
- package/lib/plugin/Collapse.js +1 -1
- package/lib/plugin/CollapseGroup.js +2 -2
- package/lib/plugin/ColumnToggler.js +1 -1
- package/lib/plugin/Container.js +2 -2
- package/lib/plugin/Custom.js +1 -1
- package/lib/plugin/CustomRegion.js +1 -1
- package/lib/plugin/Date.js +28 -6
- package/lib/plugin/Datetime.js +28 -6
- package/lib/plugin/Dialog.js +1 -1
- package/lib/plugin/Divider.d.ts +1 -0
- package/lib/plugin/Divider.js +2 -1
- package/lib/plugin/Drawer.js +1 -1
- package/lib/plugin/DropDownButton.js +2 -2
- package/lib/plugin/Each.js +1 -1
- package/lib/plugin/Flex.js +2 -2
- package/lib/plugin/Form/ButtonGroupSelect.js +5 -4
- package/lib/plugin/Form/ButtonToolbar.js +2 -2
- package/lib/plugin/Form/ChainedSelect.js +1 -1
- package/lib/plugin/Form/Checkbox.js +1 -1
- package/lib/plugin/Form/Checkboxes.d.ts +0 -1
- package/lib/plugin/Form/Checkboxes.js +1 -2
- package/lib/plugin/Form/CodeEditor.js +4 -4
- package/lib/plugin/Form/Combo.js +3 -5
- package/lib/plugin/Form/ConditionBuilder.js +1 -1
- package/lib/plugin/Form/Control.js +1 -1
- package/lib/plugin/Form/DiffEditor.js +4 -4
- package/lib/plugin/Form/FieldSet.js +1 -1
- package/lib/plugin/Form/Form.d.ts +0 -1
- package/lib/plugin/Form/Form.js +2 -3
- package/lib/plugin/Form/Formula.js +1 -1
- package/lib/plugin/Form/Group.js +1 -1
- package/lib/plugin/Form/Hidden.js +1 -1
- package/lib/plugin/Form/InputArray.js +1 -1
- package/lib/plugin/Form/InputCity.js +1 -1
- package/lib/plugin/Form/InputColor.js +1 -1
- package/lib/plugin/Form/InputDate.d.ts +0 -1
- package/lib/plugin/Form/InputDate.js +19 -3
- package/lib/plugin/Form/InputDateRange.d.ts +0 -1
- package/lib/plugin/Form/InputDateRange.js +90 -26
- package/lib/plugin/Form/InputDateTime.js +1 -1
- package/lib/plugin/Form/InputDateTimeRange.d.ts +0 -1
- package/lib/plugin/Form/InputDateTimeRange.js +1 -2
- package/lib/plugin/Form/InputEmail.js +1 -1
- package/lib/plugin/Form/InputExcel.js +1 -1
- package/lib/plugin/Form/InputFile.js +1 -1
- package/lib/plugin/Form/InputGroup.js +1 -1
- package/lib/plugin/Form/InputImage.js +80 -20
- package/lib/plugin/Form/InputKV.js +1 -1
- package/lib/plugin/Form/InputMonth.js +1 -1
- package/lib/plugin/Form/InputMonthRange.d.ts +0 -1
- package/lib/plugin/Form/InputMonthRange.js +1 -2
- package/lib/plugin/Form/InputNumber.d.ts +0 -1
- package/lib/plugin/Form/InputNumber.js +3 -4
- package/lib/plugin/Form/InputPassword.js +1 -1
- package/lib/plugin/Form/InputQuarter.js +1 -1
- package/lib/plugin/Form/InputQuarterRange.d.ts +0 -1
- package/lib/plugin/Form/InputQuarterRange.js +1 -2
- package/lib/plugin/Form/InputRange.js +1 -1
- package/lib/plugin/Form/InputRating.js +1 -1
- package/lib/plugin/Form/InputRepeat.js +1 -1
- package/lib/plugin/Form/InputRichText.js +1 -1
- package/lib/plugin/Form/InputSubForm.d.ts +0 -1
- package/lib/plugin/Form/InputSubForm.js +1 -1
- package/lib/plugin/Form/InputTable.d.ts +2 -1
- package/lib/plugin/Form/InputTable.js +77 -3
- package/lib/plugin/Form/InputTag.d.ts +1 -1
- package/lib/plugin/Form/InputTag.js +3 -3
- package/lib/plugin/Form/InputText.js +11 -4
- package/lib/plugin/Form/InputTime.js +1 -1
- package/lib/plugin/Form/InputTimeRange.d.ts +0 -1
- package/lib/plugin/Form/InputTimeRange.js +1 -2
- package/lib/plugin/Form/InputTree.js +1 -1
- package/lib/plugin/Form/InputURL.js +1 -1
- package/lib/plugin/Form/InputYear.js +1 -1
- package/lib/plugin/Form/InputYearRange.d.ts +0 -1
- package/lib/plugin/Form/InputYearRange.js +1 -2
- package/lib/plugin/Form/Item.js +1 -1
- package/lib/plugin/Form/ListSelect.d.ts +0 -1
- package/lib/plugin/Form/ListSelect.js +2 -5
- package/lib/plugin/Form/LocationPicker.js +4 -4
- package/lib/plugin/Form/MatrixCheckboxes.js +1 -1
- package/lib/plugin/Form/NestedSelect.js +1 -1
- package/lib/plugin/Form/Picker.d.ts +1 -0
- package/lib/plugin/Form/Picker.js +3 -2
- package/lib/plugin/Form/Radios.d.ts +0 -1
- package/lib/plugin/Form/Radios.js +3 -12
- package/lib/plugin/Form/Select.d.ts +0 -1
- package/lib/plugin/Form/Select.js +2 -3
- package/lib/plugin/Form/Static.d.ts +0 -1
- package/lib/plugin/Form/Static.js +178 -184
- package/lib/plugin/Form/Switch.d.ts +0 -1
- package/lib/plugin/Form/Switch.js +1 -2
- package/lib/plugin/Form/TabsTransfer.js +1 -1
- package/lib/plugin/Form/Textarea.d.ts +0 -1
- package/lib/plugin/Form/Textarea.js +8 -3
- package/lib/plugin/Form/Transfer.js +1 -1
- package/lib/plugin/Form/TreeSelect.js +1 -1
- package/lib/plugin/Form/UUID.js +1 -1
- package/lib/plugin/Grid.js +5 -8
- package/lib/plugin/HBox.js +1 -1
- package/lib/plugin/IFrame.js +2 -2
- package/lib/plugin/Icon.d.ts +23 -0
- package/lib/plugin/Icon.js +126 -0
- package/lib/plugin/Image.js +1 -1
- package/lib/plugin/Images.d.ts +2 -0
- package/lib/plugin/Images.js +6 -8
- package/lib/plugin/Json.js +1 -1
- package/lib/plugin/Layout/FlexPluginBase.js +4 -4
- package/lib/plugin/Layout/Layout_fixed.js +2 -2
- package/lib/plugin/Layout/Layout_free_container.d.ts +0 -1
- package/lib/plugin/Layout/Layout_free_container.js +3 -3
- package/lib/plugin/Layout/Layout_sorption_container.js +2 -2
- package/lib/plugin/Link.js +1 -1
- package/lib/plugin/List.d.ts +0 -1
- package/lib/plugin/List.js +14 -14
- package/lib/plugin/ListItem.js +1 -1
- package/lib/plugin/Log.js +1 -1
- package/lib/plugin/Mapping.js +9 -6
- package/lib/plugin/Markdown.js +1 -1
- package/lib/plugin/Nav.js +1 -1
- package/lib/plugin/OfficeViewer.d.ts +2 -0
- package/lib/plugin/Operation.js +1 -1
- package/lib/plugin/Others/Action.d.ts +3 -1
- package/lib/plugin/Others/Action.js +15 -14
- package/lib/plugin/Others/TableCell.js +2 -2
- package/lib/plugin/Page.d.ts +1 -1
- package/lib/plugin/Page.js +1 -1
- package/lib/plugin/Pagination.js +1 -1
- package/lib/plugin/Panel.d.ts +1 -1
- package/lib/plugin/Panel.js +2 -2
- package/lib/plugin/Plain.js +1 -1
- package/lib/plugin/Progress.d.ts +2 -0
- package/lib/plugin/Progress.js +3 -2
- package/lib/plugin/Property.js +7 -2
- package/lib/plugin/QRCode.js +1 -1
- package/lib/plugin/Reset.js +1 -1
- package/lib/plugin/SearchBox.d.ts +25 -0
- package/lib/plugin/SearchBox.js +150 -0
- package/lib/plugin/Service.js +2 -2
- package/lib/plugin/Sparkline.js +1 -1
- package/lib/plugin/Status.js +1 -1
- package/lib/plugin/Steps.js +4 -4
- package/lib/plugin/Submit.js +1 -1
- package/lib/plugin/Table.d.ts +1 -1
- package/lib/plugin/Table.js +11 -14
- package/lib/plugin/Table2.d.ts +1 -1
- package/lib/plugin/Table2.js +4 -4
- package/lib/plugin/TableCell2.js +1 -1
- package/lib/plugin/TableView.js +2 -2
- package/lib/plugin/Tabs.js +4 -6
- package/lib/plugin/Tag.js +33 -2
- package/lib/plugin/Tasks.js +1 -1
- package/lib/plugin/Time.js +30 -6
- package/lib/plugin/Timeline.js +2 -2
- package/lib/plugin/TooltipWrapper.js +3 -3
- package/lib/plugin/Tpl.d.ts +1 -0
- package/lib/plugin/Tpl.js +2 -1
- package/lib/plugin/Video.js +1 -1
- package/lib/plugin/WebComponent.js +2 -2
- package/lib/plugin/Wizard.js +1 -1
- package/lib/plugin/Wrapper.js +1 -1
- package/lib/renderer/APIAdaptorControl.d.ts +150 -0
- package/lib/renderer/APIAdaptorControl.js +319 -0
- package/lib/renderer/APIControl.d.ts +8 -824
- package/lib/renderer/APIControl.js +5 -26
- package/lib/renderer/ActionApiControl.d.ts +8 -366
- package/lib/renderer/BadgeControl.d.ts +7 -7
- package/lib/renderer/BadgeControl.js +9 -3
- package/lib/renderer/ButtonGroupControl.js +2 -2
- package/lib/renderer/DataBindingControl.d.ts +3 -2
- package/lib/renderer/DataBindingControl.js +2 -3
- package/lib/renderer/DataMappingControl.js +1 -1
- package/lib/renderer/DataPickerControl.js +1 -1
- package/lib/renderer/DateShortCutControl.js +1 -1
- package/lib/renderer/ExpressionFormulaControl.d.ts +1 -2
- package/lib/renderer/ExpressionFormulaControl.js +14 -27
- package/lib/renderer/FeatureControl.js +1 -1
- package/lib/renderer/FlexSettingControl.js +8 -8
- package/lib/renderer/FormulaControl.d.ts +9 -2
- package/lib/renderer/FormulaControl.js +105 -78
- package/lib/renderer/GoConfigControl.js +1 -1
- package/lib/renderer/MapSourceControl.d.ts +3 -2
- package/lib/renderer/MapSourceControl.js +16 -5
- package/lib/renderer/NavBadgeControl.d.ts +7 -7
- package/lib/renderer/NavBadgeControl.js +1 -1
- package/lib/renderer/NavDefaultActive.js +1 -1
- package/lib/renderer/NavSourceControl.d.ts +1 -1
- package/lib/renderer/NavSourceControl.js +1 -1
- package/lib/renderer/OptionControl.d.ts +21 -5
- package/lib/renderer/OptionControl.js +121 -26
- package/lib/renderer/RangePartsControl.js +1 -1
- package/lib/renderer/StatusControl.d.ts +5 -2
- package/lib/renderer/StatusControl.js +17 -4
- package/lib/renderer/SwitchMoreControl.d.ts +26 -133
- package/lib/renderer/SwitchMoreControl.js +1 -1
- package/lib/renderer/TimelineItemControl.d.ts +1 -1
- package/lib/renderer/TimelineItemControl.js +1 -1
- package/lib/renderer/TplFormulaControl.d.ts +75 -0
- package/lib/renderer/TplFormulaControl.js +400 -0
- package/lib/renderer/TransferTableControl.d.ts +4 -3
- package/lib/renderer/TransferTableControl.js +16 -5
- package/lib/renderer/TreeOptionControl.d.ts +4 -3
- package/lib/renderer/TreeOptionControl.js +26 -18
- package/lib/renderer/ValidationControl.d.ts +1 -0
- package/lib/renderer/ValidationControl.js +46 -2
- package/lib/renderer/ValidationItem.js +1 -1
- package/lib/renderer/event-control/action-config-dialog.js +1 -1
- package/lib/renderer/event-control/action-config-panel.js +5 -9
- package/lib/renderer/event-control/comp-action-select.js +1 -1
- package/lib/renderer/event-control/helper.d.ts +4 -0
- package/lib/renderer/event-control/helper.js +153 -65
- package/lib/renderer/event-control/index.js +4 -3
- package/lib/renderer/style-control/Background.js +1 -1
- package/lib/renderer/style-control/Border.js +1 -1
- package/lib/renderer/style-control/BoxModel.js +1 -1
- package/lib/renderer/style-control/BoxShadow.js +1 -1
- package/lib/renderer/style-control/Display.js +1 -1
- package/lib/renderer/style-control/Font.js +1 -1
- package/lib/renderer/style-control/InsetBoxModel.js +1 -1
- package/lib/renderer/style-control/ThemeCssCode.js +6 -6
- package/lib/renderer/style-control/font-family.js +1 -1
- package/lib/renderer/style-control/helper.js +6 -15
- package/lib/renderer/style-control/themeLanguage.js +1874 -3092
- package/lib/renderer/style-control/transformation.js +1 -1
- package/lib/renderer/textarea-formula/FormulaPicker.d.ts +4 -0
- package/lib/renderer/textarea-formula/FormulaPicker.js +44 -24
- package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +56 -14
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +131 -51
- package/lib/renderer/textarea-formula/plugin.d.ts +17 -7
- package/lib/renderer/textarea-formula/plugin.js +66 -34
- package/lib/renderer/textarea-formula/utils.js +4 -2
- package/lib/tpl/api.js +1 -1
- package/lib/tpl/common.js +28 -2
- package/lib/tpl/horizontal.js +1 -1
- package/lib/tpl/layout.js +16 -7
- package/lib/tpl/options.js +10 -4
- package/lib/tpl/remark.js +1 -1
- package/lib/tpl/style.js +31 -5
- package/lib/tpl/validations.js +1 -1
- package/lib/util.d.ts +10 -0
- package/lib/util.js +22 -2
- package/lib/validator.js +1 -1
- package/package.json +2 -3
- package/esm/plugin/OfficeViewer.js +0 -91
- package/lib/plugin/OfficeViewer.js +0 -95
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.3.0
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -21,10 +21,10 @@ var TooltipWrapperPlugin = /** @class */function (_super) {
|
|
21
21
|
_this.rendererName = 'tooltip-wrapper';
|
22
22
|
_this.$schema = '/schemas/TooltipWrapperSchema.json';
|
23
23
|
_this.isBaseComponent = true;
|
24
|
-
_this.name = i18nRuntime.i18n("
|
24
|
+
_this.name = i18nRuntime.i18n("b624985146c759cfeb1be80325eccd65");
|
25
25
|
_this.description = i18nRuntime.i18n("33813749a95477897085e2435acc16b6");
|
26
26
|
_this.docLink = '/amis/zh-CN/components/tooltip';
|
27
|
-
_this.tags = [i18nRuntime.i18n("
|
27
|
+
_this.tags = [i18nRuntime.i18n("997c7a5d34f6fc628893f509d0df32e0")];
|
28
28
|
_this.icon = 'fa fa-comment-alt';
|
29
29
|
_this.pluginIcon = 'tooltip-wrapper-plugin';
|
30
30
|
_this.scaffold = {
|
package/lib/plugin/Tpl.d.ts
CHANGED
package/lib/plugin/Tpl.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.3.0
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -83,6 +83,7 @@ var TplPlugin = /** @class */function (_super) {
|
|
83
83
|
// 关联渲染器名字
|
84
84
|
_this.rendererName = 'tpl';
|
85
85
|
_this.$schema = '/schemas/TplSchema.json';
|
86
|
+
_this.order = -200;
|
86
87
|
// 组件名称
|
87
88
|
_this.name = i18nRuntime.i18n("ca746b1ff10193a3ce20878dec04a733");
|
88
89
|
_this.isBaseComponent = true;
|
package/lib/plugin/Video.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.3.0
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -42,7 +42,7 @@ var WebComponentPlugin = /** @class */function (_super) {
|
|
42
42
|
_this.isBaseComponent = true;
|
43
43
|
_this.description = i18nRuntime.i18n("1fa035e78c5408c9079c20637acdb2bb");
|
44
44
|
_this.docLink = '/amis/zh-CN/components/web-component';
|
45
|
-
_this.tags = [i18nRuntime.i18n("
|
45
|
+
_this.tags = [i18nRuntime.i18n("997c7a5d34f6fc628893f509d0df32e0")];
|
46
46
|
_this.icon = 'fa fa-square-o';
|
47
47
|
_this.pluginIcon = 'web-component-plugin';
|
48
48
|
_this.scaffold = {
|
package/lib/plugin/Wizard.js
CHANGED
package/lib/plugin/Wrapper.js
CHANGED
@@ -0,0 +1,150 @@
|
|
1
|
+
/**
|
2
|
+
* @file API 适配器
|
3
|
+
*/
|
4
|
+
import React from 'react';
|
5
|
+
import { FormControlProps } from 'amis-core';
|
6
|
+
import { TooltipObject } from 'amis-ui/lib/components/TooltipWrapper';
|
7
|
+
interface AdaptorFuncParam {
|
8
|
+
label: string;
|
9
|
+
tip?: string | TooltipObject;
|
10
|
+
}
|
11
|
+
export interface APIAdaptorControlProps extends FormControlProps {
|
12
|
+
/**
|
13
|
+
* 适配器函数参数
|
14
|
+
*/
|
15
|
+
params?: AdaptorFuncParam[];
|
16
|
+
/**
|
17
|
+
* 复用适配器 函数参数提示
|
18
|
+
*/
|
19
|
+
mergeParams?: (params: AdaptorFuncParam[]) => AdaptorFuncParam[];
|
20
|
+
/**
|
21
|
+
* 代码编辑器底部的 description
|
22
|
+
*/
|
23
|
+
editorDesc?: any;
|
24
|
+
/**
|
25
|
+
* 代码编辑器开启时 需要预置的代码
|
26
|
+
*/
|
27
|
+
defaultCode?: string;
|
28
|
+
/**
|
29
|
+
* 代码编辑器开启 的 placeHolder
|
30
|
+
*/
|
31
|
+
editorPlaceholder?: string;
|
32
|
+
/**
|
33
|
+
* 开关右侧旁边的提示
|
34
|
+
*/
|
35
|
+
switchTip?: string | React.ReactNode;
|
36
|
+
/**
|
37
|
+
* 自定义提示参数
|
38
|
+
*/
|
39
|
+
tooltipProps?: TooltipObject;
|
40
|
+
}
|
41
|
+
export interface APIAdaptorControlState {
|
42
|
+
switch: boolean;
|
43
|
+
}
|
44
|
+
export default class APIAdaptorControl extends React.Component<APIAdaptorControlProps, APIAdaptorControlState> {
|
45
|
+
static defaultProps: Pick<APIAdaptorControlProps, 'params'>;
|
46
|
+
constructor(props: APIAdaptorControlProps);
|
47
|
+
componentDidUpdate(prevProps: Readonly<APIAdaptorControlProps>): void;
|
48
|
+
onChange(value?: any): void;
|
49
|
+
genTooltipProps(content: any, othersProps?: TooltipObject): {
|
50
|
+
title?: string | undefined;
|
51
|
+
content: string;
|
52
|
+
placement: string;
|
53
|
+
tooltipTheme: string;
|
54
|
+
offset?: [number, number] | undefined;
|
55
|
+
style?: React.CSSProperties | undefined;
|
56
|
+
enterable?: boolean | undefined;
|
57
|
+
showArrow?: boolean | undefined;
|
58
|
+
disabled?: boolean | undefined;
|
59
|
+
mouseEnterDelay?: number | undefined;
|
60
|
+
mouseLeaveDelay?: number | undefined;
|
61
|
+
children?: (() => JSX.Element) | undefined;
|
62
|
+
container?: HTMLElement | (() => HTMLElement | null | undefined) | undefined;
|
63
|
+
trigger: string | import("amis-ui/lib/components/TooltipWrapper").Trigger[];
|
64
|
+
rootClose: boolean;
|
65
|
+
tooltipClassName: string;
|
66
|
+
} | {
|
67
|
+
title?: string | undefined;
|
68
|
+
content: string;
|
69
|
+
placement: string;
|
70
|
+
tooltipTheme: string;
|
71
|
+
offset?: [number, number] | undefined;
|
72
|
+
style?: React.CSSProperties | undefined;
|
73
|
+
enterable?: boolean | undefined;
|
74
|
+
showArrow?: boolean | undefined;
|
75
|
+
disabled?: boolean | undefined;
|
76
|
+
mouseEnterDelay?: number | undefined;
|
77
|
+
mouseLeaveDelay?: number | undefined;
|
78
|
+
children: () => any;
|
79
|
+
container?: HTMLElement | (() => HTMLElement | null | undefined) | undefined;
|
80
|
+
trigger: string | import("amis-ui/lib/components/TooltipWrapper").Trigger[];
|
81
|
+
rootClose: boolean;
|
82
|
+
tooltipClassName: string;
|
83
|
+
};
|
84
|
+
renderEditor(): any;
|
85
|
+
renderSwitch(): any;
|
86
|
+
render(): JSX.Element;
|
87
|
+
}
|
88
|
+
export declare class APIAdaptorControlRenderer extends APIAdaptorControl {
|
89
|
+
}
|
90
|
+
export declare const requestAdaptorDefaultCode = "api.data.count = api.data.count + 1;\nreturn api;";
|
91
|
+
export declare const adaptorApiStruct = "{\n url: string; // \u5F53\u524D\u63A5\u53E3\u5730\u5740\n method: 'get' | 'post' | 'put' | 'delete';\n data?: Object; // \u8BF7\u6C42\u4F53\n headers?: Object; // \u8BF7\u6C42\u5934\n ...\n}";
|
92
|
+
export declare const adaptorApiStructTooltip: any;
|
93
|
+
export declare const adaptorResponseStruct = "{\n data: Object; // \u63A5\u53E3\u8FD4\u56DE\u6570\u636E,\n request: XMLHttpRequest;\n headers?: Object; // \u8BF7\u6C42\u5934\n status: number; // \u72B6\u6001\u7801 200, 404, 500..\n statusText: string; // \u72B6\u6001\u4FE1\u606F\n ...\n}";
|
94
|
+
export declare const adaptorResponseStructTooltip: any;
|
95
|
+
export declare const adaptorDefaultCode = "// API\u54CD\u5E94\u6216\u81EA\u5B9A\u4E49\u5904\u7406\u540E\u9700\u8981\u7B26\u5408\u4EE5\u4E0B\u683C\u5F0F\nreturn {\n status: 0, // 0 \u8868\u793A\u8BF7\u6C42\u6210\u529F\uFF0C\u5426\u5219\u6309\u9519\u8BEF\u5904\u7406\n msg: '\u8BF7\u6C42\u6210\u529F',\n data: {\n text: 'world',\n items: [\n {label: '\u5F20\u4E09', value: 1}\n ]\n }\n}";
|
96
|
+
export declare const validateApiAdaptorDefaultCode = "// \u6821\u9A8C\u6210\u529F\nreturn {\n status: 0\n};\n\n// \u6821\u9A8C\u5931\u8D25\nreturn {\n status: 422,\n errors: '\u5F53\u524D\u7528\u6237\u5DF2\u5B58\u5728'\n}";
|
97
|
+
export declare const adaptorReturnStruct = "{\n \"status\": 0,\n \"msg\": \"\",\n \"data\": {\n // ...\u5176\u4ED6\u5B57\u6BB5\n }\n}";
|
98
|
+
export declare const adaptorEditorDescSchema: {
|
99
|
+
type: string;
|
100
|
+
className: string;
|
101
|
+
style: {
|
102
|
+
width: string;
|
103
|
+
height: string;
|
104
|
+
};
|
105
|
+
body: (string | {
|
106
|
+
body: {
|
107
|
+
type: string;
|
108
|
+
language: string;
|
109
|
+
className: string;
|
110
|
+
value: string;
|
111
|
+
};
|
112
|
+
style?: {
|
113
|
+
width: string;
|
114
|
+
height: string;
|
115
|
+
} | undefined;
|
116
|
+
type: string;
|
117
|
+
} | {
|
118
|
+
type: string;
|
119
|
+
className: string;
|
120
|
+
data: {
|
121
|
+
items: {
|
122
|
+
label: string;
|
123
|
+
desc: string;
|
124
|
+
}[];
|
125
|
+
};
|
126
|
+
columns: {
|
127
|
+
name: string;
|
128
|
+
label: string;
|
129
|
+
}[];
|
130
|
+
})[];
|
131
|
+
};
|
132
|
+
export declare const validateApiAdaptorEditorDescSchema: {
|
133
|
+
type: string;
|
134
|
+
className: string;
|
135
|
+
body: (string | {
|
136
|
+
type: string;
|
137
|
+
className: string;
|
138
|
+
data: {
|
139
|
+
items: {
|
140
|
+
label: string;
|
141
|
+
desc: string;
|
142
|
+
}[];
|
143
|
+
};
|
144
|
+
columns: {
|
145
|
+
name: string;
|
146
|
+
label: string;
|
147
|
+
}[];
|
148
|
+
})[];
|
149
|
+
};
|
150
|
+
export {};
|
@@ -0,0 +1,319 @@
|
|
1
|
+
/**
|
2
|
+
* amis-editor v5.3.0
|
3
|
+
* Copyright 2018-2023 @fex
|
4
|
+
*/
|
5
|
+
|
6
|
+
'use strict';
|
7
|
+
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
9
|
+
|
10
|
+
var tslib = require('tslib');
|
11
|
+
var React = require('react');
|
12
|
+
var cx = require('classnames');
|
13
|
+
var amisEditorCore = require('amis-editor-core');
|
14
|
+
var amisCore = require('amis-core');
|
15
|
+
var amis = require('amis');
|
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
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
22
|
+
|
23
|
+
/**
|
24
|
+
* @file API 适配器
|
25
|
+
*/
|
26
|
+
var APIAdaptorControl = /** @class */function (_super) {
|
27
|
+
tslib.__extends(APIAdaptorControl, _super);
|
28
|
+
function APIAdaptorControl(props) {
|
29
|
+
var _this = _super.call(this, props) || this;
|
30
|
+
_this.state = {
|
31
|
+
switch: !!_this.props.value
|
32
|
+
};
|
33
|
+
return _this;
|
34
|
+
}
|
35
|
+
APIAdaptorControl.prototype.componentDidUpdate = function (prevProps) {
|
36
|
+
if (this.props.value !== prevProps.value) {
|
37
|
+
this.setState({
|
38
|
+
switch: !!this.props.value
|
39
|
+
});
|
40
|
+
}
|
41
|
+
};
|
42
|
+
APIAdaptorControl.prototype.onChange = function (value) {
|
43
|
+
var _a, _b;
|
44
|
+
if (value === void 0) {
|
45
|
+
value = '';
|
46
|
+
}
|
47
|
+
(_b = (_a = this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, value);
|
48
|
+
};
|
49
|
+
// 生成tooltip 的参数
|
50
|
+
APIAdaptorControl.prototype.genTooltipProps = function (content, othersProps) {
|
51
|
+
return tslib.__assign(tslib.__assign(tslib.__assign({
|
52
|
+
tooltipTheme: 'light',
|
53
|
+
trigger: 'hover',
|
54
|
+
rootClose: true,
|
55
|
+
placement: 'top',
|
56
|
+
tooltipClassName: 'ae-AdaptorControl-desc-tooltip'
|
57
|
+
}, typeof content === 'string' ? {
|
58
|
+
content: content
|
59
|
+
} : {
|
60
|
+
content: ' ',
|
61
|
+
children: function () {
|
62
|
+
return content;
|
63
|
+
}
|
64
|
+
}), this.props.tooltipProps || {}), othersProps || {});
|
65
|
+
};
|
66
|
+
APIAdaptorControl.prototype.renderEditor = function () {
|
67
|
+
var _this = this;
|
68
|
+
if (!this.state.switch) {
|
69
|
+
return null;
|
70
|
+
}
|
71
|
+
var _a = this.props,
|
72
|
+
render = _a.render,
|
73
|
+
_b = _a.params,
|
74
|
+
params = _b === void 0 ? [] : _b,
|
75
|
+
allowFullscreen = _a.allowFullscreen,
|
76
|
+
value = _a.value,
|
77
|
+
name = _a.name,
|
78
|
+
editorPlaceholder = _a.editorPlaceholder,
|
79
|
+
editorDesc = _a.editorDesc,
|
80
|
+
mergeParams = _a.mergeParams;
|
81
|
+
var lastParams = typeof mergeParams === 'function' ? mergeParams(params) : params;
|
82
|
+
return render('api-adaptor-control-editor', [{
|
83
|
+
type: 'container',
|
84
|
+
className: 'ae-AdaptorControl-func-header',
|
85
|
+
body: tslib.__spreadArray(tslib.__spreadArray(['<span class="mtk6">function </span>', '<span class="mtk1 bracket-highlighting-0">(</span>'], tslib.__read(lastParams.map(function (_a, index) {
|
86
|
+
var label = _a.label,
|
87
|
+
tip = _a.tip;
|
88
|
+
return tslib.__spreadArray([tslib.__assign({
|
89
|
+
type: 'button',
|
90
|
+
level: 'link',
|
91
|
+
label: label,
|
92
|
+
className: 'ae-AdaptorControl-func-arg'
|
93
|
+
}, tip ? {
|
94
|
+
tooltip: _this.genTooltipProps(tip)
|
95
|
+
} : {})], tslib.__read(index === lastParams.length - 1 ? [] : ['<span class="mtk1">, </span>']), false);
|
96
|
+
}).flat()), false), ['<span class="mtk1 bracket-highlighting-0">) {</span>'], false)
|
97
|
+
}, {
|
98
|
+
label: '',
|
99
|
+
mode: 'normal',
|
100
|
+
name: '__editor_' + name,
|
101
|
+
type: 'js-editor',
|
102
|
+
className: 'ae-AdaptorControl-func-editor',
|
103
|
+
allowFullscreen: allowFullscreen,
|
104
|
+
value: value,
|
105
|
+
placeholder: editorPlaceholder || '',
|
106
|
+
onChange: function (value) {
|
107
|
+
_this.onChange(value);
|
108
|
+
}
|
109
|
+
}, {
|
110
|
+
type: 'container',
|
111
|
+
body: '<span class="mtk1 bracket-highlighting-0">}</span>',
|
112
|
+
className: 'ae-AdaptorControl-func-footer'
|
113
|
+
}, {
|
114
|
+
type: 'container',
|
115
|
+
className: 'cxd-Form-description',
|
116
|
+
body: editorDesc
|
117
|
+
}]);
|
118
|
+
};
|
119
|
+
APIAdaptorControl.prototype.renderSwitch = function () {
|
120
|
+
var _this = this;
|
121
|
+
var _a = this.props,
|
122
|
+
render = _a.render,
|
123
|
+
_b = _a.defaultCode,
|
124
|
+
defaultCode = _b === void 0 ? '' : _b,
|
125
|
+
switchTip = _a.switchTip,
|
126
|
+
name = _a.name,
|
127
|
+
value = _a.value;
|
128
|
+
return render('api-adaptor-control-switch', {
|
129
|
+
type: 'flex',
|
130
|
+
className: 'mb-2',
|
131
|
+
alignItems: 'center',
|
132
|
+
direction: 'row',
|
133
|
+
justify: 'flex-start',
|
134
|
+
items: tslib.__spreadArray([{
|
135
|
+
type: 'switch',
|
136
|
+
label: '',
|
137
|
+
mode: 'inline',
|
138
|
+
name: '__editorSwitch_' + name,
|
139
|
+
key: 'switch',
|
140
|
+
className: 'mb-1',
|
141
|
+
value: this.state.switch,
|
142
|
+
onChange: function (checked) {
|
143
|
+
_this.setState({
|
144
|
+
switch: checked
|
145
|
+
}, function () {
|
146
|
+
_this.onChange(!checked ? '' : value || defaultCode);
|
147
|
+
});
|
148
|
+
}
|
149
|
+
}], tslib.__read(switchTip ? [React__default["default"].createElement(amis.TooltipWrapper, {
|
150
|
+
key: "TooltipWrapper",
|
151
|
+
tooltip: this.genTooltipProps(switchTip, {
|
152
|
+
placement: 'right'
|
153
|
+
})
|
154
|
+
}, React__default["default"].createElement(amis.Icon, {
|
155
|
+
icon: "editor-help",
|
156
|
+
className: "icon",
|
157
|
+
color: "#84868c"
|
158
|
+
}))] : []), false)
|
159
|
+
});
|
160
|
+
};
|
161
|
+
APIAdaptorControl.prototype.render = function () {
|
162
|
+
var className = this.props.className;
|
163
|
+
return React__default["default"].createElement("div", {
|
164
|
+
className: cx__default["default"]('ae-ApiAdaptorControl', className)
|
165
|
+
}, this.renderSwitch(), this.renderEditor());
|
166
|
+
};
|
167
|
+
APIAdaptorControl.defaultProps = {
|
168
|
+
params: []
|
169
|
+
};
|
170
|
+
tslib.__decorate([amisEditorCore.autobind, tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", [Object]), tslib.__metadata("design:returntype", void 0)], APIAdaptorControl.prototype, "onChange", null);
|
171
|
+
return APIAdaptorControl;
|
172
|
+
}(React__default["default"].Component);
|
173
|
+
/** @class */(function (_super) {
|
174
|
+
tslib.__extends(APIAdaptorControlRenderer, _super);
|
175
|
+
function APIAdaptorControlRenderer() {
|
176
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
177
|
+
}
|
178
|
+
APIAdaptorControlRenderer = tslib.__decorate([amis.FormItem({
|
179
|
+
type: 'ae-apiAdaptorControl'
|
180
|
+
})], APIAdaptorControlRenderer);
|
181
|
+
return APIAdaptorControlRenderer;
|
182
|
+
})(APIAdaptorControl);
|
183
|
+
/**
|
184
|
+
* 渲染 代码高亮 节点
|
185
|
+
* @param code 代码字符串
|
186
|
+
* @param size 渲染区域的width, height, 代码区域是异步渲染,tooltip时计算会偏移
|
187
|
+
* @returns
|
188
|
+
*/
|
189
|
+
var genCodeSchema = function (code, size) {
|
190
|
+
return tslib.__assign(tslib.__assign({
|
191
|
+
type: 'container'
|
192
|
+
}, !size ? {} : {
|
193
|
+
style: {
|
194
|
+
width: size[0],
|
195
|
+
height: size[1]
|
196
|
+
}
|
197
|
+
}), {
|
198
|
+
body: {
|
199
|
+
type: 'code',
|
200
|
+
language: 'typescript',
|
201
|
+
className: 'bg-white text-xs m-0',
|
202
|
+
value: code
|
203
|
+
}
|
204
|
+
});
|
205
|
+
};
|
206
|
+
// 请求适配器 示例代码
|
207
|
+
var requestAdaptorDefaultCode = "api.data.count = api.data.count + 1;\nreturn api;";
|
208
|
+
// 适配器 适配器 api 参数说明
|
209
|
+
var adaptorApiStruct = "{\n url: string; // \u5F53\u524D\u63A5\u53E3\u5730\u5740\n method: 'get' | 'post' | 'put' | 'delete';\n data?: Object; // \u8BF7\u6C42\u4F53\n headers?: Object; // \u8BF7\u6C42\u5934\n ...\n}";
|
210
|
+
var adaptorApiStructTooltip = amisCore.render(genCodeSchema(adaptorApiStruct, ['350px', '128px']));
|
211
|
+
// 适配器 response 参数说明
|
212
|
+
var adaptorResponseStruct = "{\n data: Object; // \u63A5\u53E3\u8FD4\u56DE\u6570\u636E,\n request: XMLHttpRequest;\n headers?: Object; // \u8BF7\u6C42\u5934\n status: number; // \u72B6\u6001\u7801 200, 404, 500..\n statusText: string; // \u72B6\u6001\u4FE1\u606F\n ...\n}";
|
213
|
+
var adaptorResponseStructTooltip = amisCore.render(genCodeSchema(adaptorResponseStruct, ['345px', '144px']));
|
214
|
+
// 接收适配器 示例代码
|
215
|
+
var adaptorDefaultCode = "// API\u54CD\u5E94\u6216\u81EA\u5B9A\u4E49\u5904\u7406\u540E\u9700\u8981\u7B26\u5408\u4EE5\u4E0B\u683C\u5F0F\nreturn {\n status: 0, // 0 \u8868\u793A\u8BF7\u6C42\u6210\u529F\uFF0C\u5426\u5219\u6309\u9519\u8BEF\u5904\u7406\n msg: '\u8BF7\u6C42\u6210\u529F',\n data: {\n text: 'world',\n items: [\n {label: '\u5F20\u4E09', value: 1}\n ]\n }\n}";
|
216
|
+
var validateApiAdaptorDefaultCode = "// \u6821\u9A8C\u6210\u529F\nreturn {\n status: 0\n};\n\n// \u6821\u9A8C\u5931\u8D25\nreturn {\n status: 422,\n errors: '\u5F53\u524D\u7528\u6237\u5DF2\u5B58\u5728'\n}";
|
217
|
+
// 接收适配器 正确返回格式 示例
|
218
|
+
var adaptorReturnStruct = "{\n \"status\": 0,\n \"msg\": \"\",\n \"data\": {\n // ...\u5176\u4ED6\u5B57\u6BB5\n }\n}";
|
219
|
+
// 接收适配器 正确返回格式说明
|
220
|
+
var adaptorEditorDescSchema = {
|
221
|
+
type: 'container',
|
222
|
+
className: 'text-xs',
|
223
|
+
style: {
|
224
|
+
width: '458px',
|
225
|
+
height: '315px'
|
226
|
+
},
|
227
|
+
body: [i18nRuntime.i18n("6d8e3115be41a8a5690d6fefa637dac7"), genCodeSchema(adaptorReturnStruct), {
|
228
|
+
type: 'table',
|
229
|
+
className: 'mt-1 mb-0',
|
230
|
+
data: {
|
231
|
+
items: [{
|
232
|
+
label: 'status',
|
233
|
+
desc: i18nRuntime.i18n("09212e946a4d9b0f775700c46ef0dcd5")
|
234
|
+
}, {
|
235
|
+
label: 'msg',
|
236
|
+
desc: i18nRuntime.i18n("7391774e57425e5d8e83de64100b5f2e")
|
237
|
+
}, {
|
238
|
+
label: 'data',
|
239
|
+
desc: i18nRuntime.i18n("fa385c23820ee9999c82035086baa772")
|
240
|
+
}]
|
241
|
+
},
|
242
|
+
columns: [{
|
243
|
+
name: 'label',
|
244
|
+
label: i18nRuntime.i18n("9caecd931b956381e0763d05aa42835c")
|
245
|
+
}, {
|
246
|
+
name: 'desc',
|
247
|
+
label: i18nRuntime.i18n("f411d0f1f925d9b48d8c1d451bd809b1")
|
248
|
+
}]
|
249
|
+
}]
|
250
|
+
};
|
251
|
+
// 表单项校验接收适配器 正确返回格式说明
|
252
|
+
var validateApiAdaptorEditorDescSchema = {
|
253
|
+
type: 'container',
|
254
|
+
className: 'text-xs',
|
255
|
+
body: [i18nRuntime.i18n("6494bc042d99f2f5de34a858b8a699c6"), {
|
256
|
+
type: 'table',
|
257
|
+
className: 'mt-1 mb-0',
|
258
|
+
data: {
|
259
|
+
items: [{
|
260
|
+
label: 'status',
|
261
|
+
desc: i18nRuntime.i18n("e6246c03148f553e5d6a66adbdabb9f8")
|
262
|
+
}, {
|
263
|
+
label: 'errors',
|
264
|
+
desc: i18nRuntime.i18n("b8079b9d1e6d3e8a457787910a75cce4")
|
265
|
+
}]
|
266
|
+
},
|
267
|
+
columns: [{
|
268
|
+
name: 'label',
|
269
|
+
label: i18nRuntime.i18n("9caecd931b956381e0763d05aa42835c")
|
270
|
+
}, {
|
271
|
+
name: 'desc',
|
272
|
+
label: i18nRuntime.i18n("f411d0f1f925d9b48d8c1d451bd809b1")
|
273
|
+
}]
|
274
|
+
}]
|
275
|
+
};
|
276
|
+
amisEditorCore.setSchemaTpl('apiRequestAdaptor', {
|
277
|
+
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("417125a06b1d2bfff025e83a4e067bf0"), "\u53EF\u57FA\u4E8E JavaScript \u8BED\u8A00\u76F4\u63A5\u5F55\u5165\u53D1\u9001\u9002\u914D\u5668\u7684\u51FD\u6570\u4F53\uFF0C\u5728\u8BE5\u51FD\u6570\u4F53\u5185\uFF0C\u60A8\u53EF\u4EE5\u5BF9 <span style=\"color: #108CEE\">api</span> \u8FDB\u884C\u5904\u7406\u6216\u8005\u8FD4\u56DE\u65B0\u7684\u5185\u5BB9\uFF0C\u6700\u540E\u9700\u8981 <span style=\"color: #108CEE\">return</span> <span style=\"color: #108CEE\">api</span>\u3002<br><br/>\n \u51FD\u6570\u4F53\u5185\u53EF\u8BBF\u95EE\u7684\u53D8\u91CF\u5982\u4E0B\uFF1A<br/>\n 1. <span style=\"color: #108CEE\">api</span>\uFF1A\u63A5\u53E3\u7684schema\u914D\u7F6E\u5BF9\u8C61<br/>\n 2. <span style=\"color: #108CEE\">api.data</span>\uFF1A\u8BF7\u6C42\u6570\u636E<br/>\n 3. <span style=\"color: #108CEE\">api.query</span>\uFF1A\u8BF7\u6C42\u67E5\u8BE2\u53C2\u6570<br/>\n 4. <span style=\"color: #108CEE\">api.body</span>\uFF1A\u8BF7\u6C42\u4F53\uFF08\u9488\u5BF9POST/PUT/PATCH\uFF09<br/>\n 5. <span style=\"color: #108CEE\">api.headers</span>\uFF1A\u8BF7\u6C42\u5934<br/>\n 6. <span style=\"color: #108CEE\">api.url</span>\uFF1A\u8BF7\u6C42\u5730\u5740<br/>"),
|
278
|
+
name: 'requestAdaptor',
|
279
|
+
type: 'ae-apiAdaptorControl',
|
280
|
+
editorDesc: i18nRuntime.i18n("a59c65bea7d5065f19eb9c918a716c33"),
|
281
|
+
editorPlaceholder: requestAdaptorDefaultCode,
|
282
|
+
params: [{
|
283
|
+
label: 'api',
|
284
|
+
tip: adaptorApiStructTooltip
|
285
|
+
}]
|
286
|
+
});
|
287
|
+
amisEditorCore.setSchemaTpl('apiAdaptor', {
|
288
|
+
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("05fb5edb84e41c19b0f5429fff20b834"), "\u53EF\u57FA\u4E8E JavaScript \u8BED\u8A00\u76F4\u63A5\u5F55\u5165\u8FD4\u56DE\u9002\u914D\u5668\u7684\u51FD\u6570\u4F53\uFF0C\u5728\u51FD\u6570\u4F53\u5185\uFF0C\u60A8\u53EF\u4EE5\u5BF9 <span style=\"color: #108CEE\">payload</span> \u8FDB\u884C\u5904\u7406\u6216\u8005\u8FD4\u56DE\u65B0\u7684\u5185\u5BB9\uFF0C\u6700\u540E\u9700\u8981 <span style=\"color: #108CEE\">return</span> \u63A5\u53E3\u6700\u7EC8\u7684\u8FD4\u56DE\u7ED3\u679C\u3002<br><br/>\n \u51FD\u6570\u4F53\u5185\u53EF\u8BBF\u95EE\u7684\u53D8\u91CF\u5982\u4E0B\uFF1A<br/>\n 1. <span style=\"color: #108CEE\">payload</span>\uFF1A\u63A5\u53E3\u7684\u8FD4\u56DE\u7ED3\u679C<br/>\n 2. <span style=\"color: #108CEE\">response</span>\uFF1A\u63A5\u53E3\u7684response\u5BF9\u8C61<br/>\n 3. <span style=\"color: #108CEE\">api</span>\uFF1A\u63A5\u53E3\u7684schema\u914D\u7F6E\u5BF9\u8C61<br/>"),
|
289
|
+
type: 'ae-apiAdaptorControl',
|
290
|
+
name: 'adaptor',
|
291
|
+
params: [{
|
292
|
+
label: 'payload',
|
293
|
+
tip: i18nRuntime.i18n("98498eb59e87ec9a0eaf98ac55628da9")
|
294
|
+
}, {
|
295
|
+
label: 'response',
|
296
|
+
tip: adaptorResponseStructTooltip
|
297
|
+
}, {
|
298
|
+
label: 'api',
|
299
|
+
tip: adaptorApiStructTooltip
|
300
|
+
}],
|
301
|
+
editorPlaceholder: adaptorDefaultCode,
|
302
|
+
switchTip: amisCore.render(adaptorEditorDescSchema)
|
303
|
+
});
|
304
|
+
amisEditorCore.setSchemaTpl('validateApiAdaptor', tslib.__assign(tslib.__assign({}, amisEditorCore.getSchemaTpl('apiAdaptor')), {
|
305
|
+
editorPlaceholder: validateApiAdaptorDefaultCode,
|
306
|
+
switchTip: amisCore.render(validateApiAdaptorEditorDescSchema)
|
307
|
+
}));
|
308
|
+
|
309
|
+
exports.adaptorApiStruct = adaptorApiStruct;
|
310
|
+
exports.adaptorApiStructTooltip = adaptorApiStructTooltip;
|
311
|
+
exports.adaptorDefaultCode = adaptorDefaultCode;
|
312
|
+
exports.adaptorEditorDescSchema = adaptorEditorDescSchema;
|
313
|
+
exports.adaptorResponseStruct = adaptorResponseStruct;
|
314
|
+
exports.adaptorResponseStructTooltip = adaptorResponseStructTooltip;
|
315
|
+
exports.adaptorReturnStruct = adaptorReturnStruct;
|
316
|
+
exports["default"] = APIAdaptorControl;
|
317
|
+
exports.requestAdaptorDefaultCode = requestAdaptorDefaultCode;
|
318
|
+
exports.validateApiAdaptorDefaultCode = validateApiAdaptorDefaultCode;
|
319
|
+
exports.validateApiAdaptorEditorDescSchema = validateApiAdaptorEditorDescSchema;
|