amis-editor 5.5.0 → 5.6.0-beta.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 +2 -2
- package/esm/component/TableViewEditor.js +2 -2
- 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 +2 -1
- package/esm/icons/display/aCenter.svg.js +2 -1
- package/esm/icons/display/aFlexEnd.svg.js +2 -1
- package/esm/icons/display/aFlexStart.svg.js +2 -1
- package/esm/icons/display/aStretch.svg.js +2 -1
- package/esm/icons/display/block.svg.js +2 -1
- package/esm/icons/display/dcolumn.svg.js +2 -1
- package/esm/icons/display/dcolumnReverse.svg.js +2 -1
- package/esm/icons/display/drow.svg.js +2 -1
- package/esm/icons/display/drowReverse.svg.js +2 -1
- package/esm/icons/display/flex.svg.js +2 -1
- package/esm/icons/display/inline-block.svg.js +2 -1
- package/esm/icons/display/inline.svg.js +2 -1
- package/esm/icons/display/jCenter.svg.js +2 -1
- package/esm/icons/display/jFlexEnd.svg.js +2 -1
- package/esm/icons/display/jFlexStart.svg.js +2 -1
- package/esm/icons/display/jSpaceAround.svg.js +2 -1
- package/esm/icons/display/jSpaceBetween.svg.js +2 -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 +1 -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 +1 -1
- 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 +1 -1
- package/esm/icons/other/divider.svg.js +1 -1
- package/esm/icons/other/fx.svg.js +1 -1
- 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 +1 -145
- package/esm/index.js +139 -139
- package/esm/locale/en-US.js +85 -2
- package/esm/locale/zh-CN.js +87 -4
- package/esm/plugin/Alert.js +1 -1
- package/esm/plugin/AnchorNav.js +3 -3
- 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.js +1 -1
- package/esm/plugin/ButtonGroup.js +1 -1
- package/esm/plugin/CRUD.d.ts +4 -3
- package/esm/plugin/CRUD.js +27 -23
- package/esm/plugin/CRUD2.js +7 -4
- package/esm/plugin/Card.js +8 -4
- package/esm/plugin/Card2.js +1 -1
- package/esm/plugin/Cards.js +3 -7
- package/esm/plugin/Carousel.js +3 -1
- package/esm/plugin/Chart.d.ts +3 -0
- package/esm/plugin/Chart.js +135 -91
- package/esm/plugin/CodeView.js +1 -1
- package/esm/plugin/Collapse.js +7 -8
- package/esm/plugin/CollapseGroup.js +12 -13
- package/esm/plugin/ColumnToggler.js +1 -1
- package/esm/plugin/Container.d.ts +2 -1
- package/esm/plugin/Container.js +79 -9
- package/esm/plugin/Custom.js +3 -3
- package/esm/plugin/CustomRegion.js +1 -1
- package/esm/plugin/Date.js +1 -1
- package/esm/plugin/Datetime.js +1 -1
- package/esm/plugin/Dialog.d.ts +13 -2
- package/esm/plugin/Dialog.js +66 -3
- package/esm/plugin/Divider.js +1 -1
- package/esm/plugin/Drawer.d.ts +7 -1
- package/esm/plugin/Drawer.js +44 -3
- package/esm/plugin/DropDownButton.js +2 -2
- package/esm/plugin/Each.js +3 -3
- package/esm/plugin/Flex.js +1 -1
- package/esm/plugin/Form/ButtonGroupSelect.d.ts +2 -0
- package/esm/plugin/Form/ButtonGroupSelect.js +49 -1
- package/esm/plugin/Form/ButtonToolbar.js +1 -1
- package/esm/plugin/Form/ChainedSelect.d.ts +2 -0
- package/esm/plugin/Form/ChainedSelect.js +40 -2
- package/esm/plugin/Form/Checkbox.d.ts +6 -0
- package/esm/plugin/Form/Checkbox.js +11 -1
- package/esm/plugin/Form/Checkboxes.d.ts +2 -0
- package/esm/plugin/Form/Checkboxes.js +55 -2
- package/esm/plugin/Form/CodeEditor.js +1 -1
- package/esm/plugin/Form/Combo.d.ts +1 -0
- package/esm/plugin/Form/Combo.js +72 -2
- package/esm/plugin/Form/ConditionBuilder.js +3 -2
- package/esm/plugin/Form/Control.js +3 -3
- package/esm/plugin/Form/DiffEditor.js +1 -1
- package/esm/plugin/Form/FieldSet.js +2 -2
- package/esm/plugin/Form/Form.d.ts +6 -1
- package/esm/plugin/Form/Form.js +51 -65
- package/esm/plugin/Form/Formula.js +1 -1
- package/esm/plugin/Form/Group.js +3 -3
- package/esm/plugin/Form/Hidden.js +1 -1
- package/esm/plugin/Form/InputArray.js +2 -2
- package/esm/plugin/Form/InputCity.d.ts +2 -0
- package/esm/plugin/Form/InputCity.js +51 -1
- package/esm/plugin/Form/InputColor.js +1 -1
- package/esm/plugin/Form/InputDate.js +1 -1
- package/esm/plugin/Form/InputDateRange.js +2 -2
- package/esm/plugin/Form/InputDateTime.js +1 -1
- package/esm/plugin/Form/InputDateTimeRange.js +1 -1
- 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 +1 -1
- package/esm/plugin/Form/InputKV.js +1 -1
- package/esm/plugin/Form/InputMonth.js +1 -1
- package/esm/plugin/Form/InputMonthRange.js +1 -1
- package/esm/plugin/Form/InputNumber.d.ts +6 -1
- package/esm/plugin/Form/InputNumber.js +10 -1
- package/esm/plugin/Form/InputPassword.js +1 -1
- package/esm/plugin/Form/InputQuarter.js +1 -1
- package/esm/plugin/Form/InputQuarterRange.js +1 -1
- package/esm/plugin/Form/InputRange.d.ts +21 -1
- package/esm/plugin/Form/InputRange.js +28 -1
- package/esm/plugin/Form/InputRating.d.ts +6 -0
- package/esm/plugin/Form/InputRating.js +10 -1
- package/esm/plugin/Form/InputRepeat.js +1 -1
- package/esm/plugin/Form/InputRichText.js +1 -1
- package/esm/plugin/Form/InputSubForm.js +3 -3
- package/esm/plugin/Form/InputTable.d.ts +1 -1
- package/esm/plugin/Form/InputTable.js +74 -58
- package/esm/plugin/Form/InputTag.d.ts +2 -0
- package/esm/plugin/Form/InputTag.js +40 -1
- package/esm/plugin/Form/InputText.d.ts +2 -0
- package/esm/plugin/Form/InputText.js +51 -1
- package/esm/plugin/Form/InputTime.js +1 -1
- package/esm/plugin/Form/InputTimeRange.js +1 -1
- package/esm/plugin/Form/InputTree.d.ts +2 -1
- package/esm/plugin/Form/InputTree.js +51 -3
- package/esm/plugin/Form/InputURL.js +1 -1
- package/esm/plugin/Form/InputYear.js +1 -1
- package/esm/plugin/Form/InputYearRange.js +1 -1
- package/esm/plugin/Form/Item.js +18 -15
- package/esm/plugin/Form/ListSelect.d.ts +2 -0
- package/esm/plugin/Form/ListSelect.js +49 -1
- package/esm/plugin/Form/LocationPicker.d.ts +28 -0
- package/esm/plugin/Form/LocationPicker.js +32 -1
- package/esm/plugin/Form/MatrixCheckboxes.d.ts +1 -2
- package/esm/plugin/Form/MatrixCheckboxes.js +30 -6
- package/esm/plugin/Form/NestedSelect.d.ts +2 -1
- package/esm/plugin/Form/NestedSelect.js +49 -1
- package/esm/plugin/Form/Picker.d.ts +2 -1
- package/esm/plugin/Form/Picker.js +51 -3
- package/esm/plugin/Form/Radios.d.ts +2 -0
- package/esm/plugin/Form/Radios.js +30 -1
- package/esm/plugin/Form/Select.d.ts +2 -0
- package/esm/plugin/Form/Select.js +49 -1
- package/esm/plugin/Form/Static.js +3 -3
- package/esm/plugin/Form/Switch.d.ts +6 -1
- package/esm/plugin/Form/Switch.js +11 -1
- package/esm/plugin/Form/TabsTransfer.d.ts +2 -0
- package/esm/plugin/Form/TabsTransfer.js +41 -2
- package/esm/plugin/Form/Textarea.js +1 -1
- package/esm/plugin/Form/Transfer.d.ts +2 -0
- package/esm/plugin/Form/Transfer.js +40 -1
- package/esm/plugin/Form/TreeSelect.d.ts +2 -1
- package/esm/plugin/Form/TreeSelect.js +49 -1
- package/esm/plugin/Form/UUID.js +1 -1
- package/esm/plugin/Grid.js +11 -8
- package/esm/plugin/HBox.js +8 -8
- package/esm/plugin/IFrame.js +1 -1
- package/esm/plugin/Icon.js +1 -1
- package/esm/plugin/Image.js +1 -1
- package/esm/plugin/Images.js +1 -1
- package/esm/plugin/Json.js +1 -1
- package/esm/plugin/Layout/FlexPluginBase.js +12 -9
- package/esm/plugin/Layout/Layout_fixed.js +1 -1
- package/esm/plugin/Layout/Layout_free_container.js +1 -1
- package/esm/plugin/Layout/Layout_sorption_container.js +1 -1
- package/esm/plugin/Link.js +1 -1
- package/esm/plugin/List.js +6 -6
- package/esm/plugin/ListItem.js +2 -2
- package/esm/plugin/Log.js +4 -4
- package/esm/plugin/Mapping.js +1 -1
- package/esm/plugin/Markdown.js +1 -1
- package/esm/plugin/Nav.d.ts +2 -0
- package/esm/plugin/Nav.js +5 -3
- package/esm/plugin/OfficeViewer.js +1 -1
- package/esm/plugin/Operation.js +2 -2
- package/esm/plugin/Others/Action.js +5 -5
- package/esm/plugin/Others/TableCell.js +3 -3
- package/esm/plugin/Page.d.ts +1 -1
- package/esm/plugin/Page.js +40 -19
- package/esm/plugin/Pagination.js +1 -1
- package/esm/plugin/Panel.js +2 -2
- package/esm/plugin/Plain.js +1 -1
- package/esm/plugin/Progress.js +35 -10
- package/esm/plugin/Property.js +1 -1
- package/esm/plugin/QRCode.js +1 -1
- package/esm/plugin/Reset.js +1 -1
- package/esm/plugin/SearchBox.js +1 -1
- package/esm/plugin/Service.d.ts +1 -0
- package/esm/plugin/Service.js +38 -7
- package/esm/plugin/Sparkline.d.ts +2 -1
- package/esm/plugin/Sparkline.js +33 -9
- package/esm/plugin/Status.js +1 -1
- package/esm/plugin/Steps.js +1 -1
- package/esm/plugin/Submit.js +1 -1
- package/esm/plugin/Table.d.ts +1 -1
- package/esm/plugin/Table.js +110 -106
- package/esm/plugin/Table2.js +1 -1
- package/esm/plugin/TableCell2.js +5 -5
- package/esm/plugin/TableView.d.ts +2 -1
- package/esm/plugin/TableView.js +1 -1
- package/esm/plugin/Tabs.d.ts +2 -1
- package/esm/plugin/Tabs.js +4 -4
- package/esm/plugin/Tag.js +1 -1
- package/esm/plugin/Tasks.js +1 -1
- package/esm/plugin/Time.js +1 -1
- package/esm/plugin/Timeline.d.ts +2 -1
- package/esm/plugin/Timeline.js +75 -4
- package/esm/plugin/TooltipWrapper.js +1 -1
- package/esm/plugin/Tpl.js +1 -1
- package/esm/plugin/Video.js +1 -1
- package/esm/plugin/WebComponent.js +1 -1
- package/esm/plugin/Wizard.js +5 -5
- package/esm/plugin/Wrapper.js +8 -8
- package/esm/plugin/index.d.ts +143 -0
- package/esm/renderer/APIAdaptorControl.d.ts +2 -2
- package/esm/renderer/APIAdaptorControl.js +8 -8
- package/esm/renderer/APIControl.d.ts +4 -4
- package/esm/renderer/APIControl.js +2 -2
- package/esm/renderer/ActionApiControl.d.ts +3 -3
- package/esm/renderer/BadgeControl.d.ts +1 -1
- package/esm/renderer/BadgeControl.js +6 -3
- package/esm/renderer/ButtonGroupControl.d.ts +1 -1
- package/esm/renderer/ButtonGroupControl.js +1 -1
- package/esm/renderer/ColumnControl.d.ts +1 -1
- package/esm/renderer/DataBindingControl.d.ts +2 -2
- package/esm/renderer/DataBindingControl.js +10 -6
- package/esm/renderer/DataMappingControl.js +1 -1
- package/esm/renderer/DataPickerControl.d.ts +1 -1
- package/esm/renderer/DataPickerControl.js +1 -1
- package/esm/renderer/DateShortCutControl.d.ts +2 -2
- package/esm/renderer/DateShortCutControl.js +2 -2
- package/esm/renderer/ExpressionFormulaControl.d.ts +1 -1
- package/esm/renderer/ExpressionFormulaControl.js +2 -2
- package/esm/renderer/FeatureControl.d.ts +2 -2
- package/esm/renderer/FeatureControl.js +3 -2
- package/esm/renderer/FlexSettingControl.d.ts +1 -1
- package/esm/renderer/FlexSettingControl.js +2 -2
- package/esm/renderer/FormulaControl.d.ts +2 -2
- package/esm/renderer/FormulaControl.js +1 -1
- package/esm/renderer/GoConfigControl.d.ts +1 -1
- package/esm/renderer/GoConfigControl.js +2 -2
- package/esm/renderer/MapSourceControl.d.ts +3 -3
- package/esm/renderer/MapSourceControl.js +2 -2
- package/esm/renderer/NavBadgeControl.d.ts +1 -1
- package/esm/renderer/NavBadgeControl.js +1 -1
- package/esm/renderer/NavDefaultActive.js +1 -1
- package/esm/renderer/NavSourceControl.d.ts +53 -35
- package/esm/renderer/NavSourceControl.js +599 -230
- package/esm/renderer/OptionControl.d.ts +3 -3
- package/esm/renderer/OptionControl.js +4 -4
- package/esm/renderer/RangePartsControl.d.ts +5 -5
- package/esm/renderer/RangePartsControl.js +4 -4
- package/esm/renderer/StatusControl.d.ts +2 -2
- package/esm/renderer/StatusControl.js +17 -3
- package/esm/renderer/SwitchMoreControl.d.ts +6 -5
- package/esm/renderer/SwitchMoreControl.js +10 -7
- package/esm/renderer/TimelineItemControl.d.ts +6 -6
- package/esm/renderer/TimelineItemControl.js +24 -7
- package/esm/renderer/TplFormulaControl.d.ts +1 -1
- package/esm/renderer/TplFormulaControl.js +1 -1
- package/esm/renderer/TransferTableControl.d.ts +3 -3
- package/esm/renderer/TransferTableControl.js +2 -2
- package/esm/renderer/TreeOptionControl.d.ts +3 -3
- package/esm/renderer/TreeOptionControl.js +8 -8
- package/esm/renderer/ValidationControl.d.ts +4 -4
- package/esm/renderer/ValidationControl.js +2 -2
- package/esm/renderer/ValidationItem.d.ts +3 -3
- package/esm/renderer/ValidationItem.js +1 -1
- package/esm/renderer/event-control/action-config-dialog.js +27 -3
- package/esm/renderer/event-control/action-config-panel.js +1 -1
- package/esm/renderer/event-control/comp-action-select.d.ts +1 -1
- package/esm/renderer/event-control/comp-action-select.js +1 -1
- package/esm/renderer/event-control/helper.js +138 -90
- package/esm/renderer/event-control/index.d.ts +2 -2
- package/esm/renderer/event-control/index.js +2 -1
- package/esm/renderer/style-control/Background.d.ts +1 -1
- package/esm/renderer/style-control/Background.js +1 -1
- package/esm/renderer/style-control/Border.d.ts +2 -2
- package/esm/renderer/style-control/Border.js +8 -8
- package/esm/renderer/style-control/BoxModel.d.ts +2 -2
- package/esm/renderer/style-control/BoxModel.js +1 -1
- package/esm/renderer/style-control/BoxShadow.d.ts +2 -2
- package/esm/renderer/style-control/BoxShadow.js +1 -1
- package/esm/renderer/style-control/Display.d.ts +1 -1
- package/esm/renderer/style-control/Display.js +1 -1
- package/esm/renderer/style-control/Font.d.ts +1 -1
- package/esm/renderer/style-control/Font.js +1 -1
- package/esm/renderer/style-control/InsetBoxModel.d.ts +2 -2
- package/esm/renderer/style-control/InsetBoxModel.js +1 -1
- package/esm/renderer/style-control/ThemeCssCode.d.ts +1 -1
- package/esm/renderer/style-control/ThemeCssCode.js +5 -4
- package/esm/renderer/style-control/font-family.js +1 -1
- package/esm/renderer/style-control/helper.js +1 -1
- package/esm/renderer/style-control/themeLanguage.js +2 -2
- package/esm/renderer/style-control/transformation.js +1 -1
- package/esm/renderer/textarea-formula/FormulaPicker.js +3 -3
- package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +1 -1
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +2 -2
- package/esm/renderer/textarea-formula/plugin.js +1 -1
- package/esm/tpl/api.js +2 -2
- package/esm/tpl/common.js +30 -6
- package/esm/tpl/horizontal.js +2 -2
- package/esm/tpl/layout.js +8 -5
- package/esm/tpl/options.js +3 -2
- package/esm/tpl/remark.js +1 -1
- package/esm/tpl/style.js +1 -1
- package/esm/tpl/validations.js +1 -1
- package/esm/util.d.ts +6 -0
- package/esm/util.js +21 -3
- package/esm/validator.js +5 -5
- package/lib/component/BaseControl.js +1 -1
- package/lib/component/InputComponentName.js +1 -1
- package/lib/component/TableViewEditor.d.ts +2 -2
- package/lib/component/TableViewEditor.js +2 -2
- 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 +17 -16
- package/lib/icons/display/aCenter.svg.js +17 -16
- package/lib/icons/display/aFlexEnd.svg.js +17 -16
- package/lib/icons/display/aFlexStart.svg.js +17 -16
- package/lib/icons/display/aStretch.svg.js +17 -16
- package/lib/icons/display/block.svg.js +17 -16
- package/lib/icons/display/dcolumn.svg.js +17 -16
- package/lib/icons/display/dcolumnReverse.svg.js +17 -16
- package/lib/icons/display/drow.svg.js +17 -16
- package/lib/icons/display/drowReverse.svg.js +17 -16
- package/lib/icons/display/flex.svg.js +17 -16
- package/lib/icons/display/inline-block.svg.js +17 -16
- package/lib/icons/display/inline.svg.js +17 -16
- package/lib/icons/display/jCenter.svg.js +17 -16
- package/lib/icons/display/jFlexEnd.svg.js +17 -16
- package/lib/icons/display/jFlexStart.svg.js +17 -16
- package/lib/icons/display/jSpaceAround.svg.js +17 -16
- package/lib/icons/display/jSpaceBetween.svg.js +17 -16
- 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 +1 -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 +1 -1
- 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 +1 -1
- package/lib/icons/other/divider.svg.js +1 -1
- package/lib/icons/other/fx.svg.js +1 -1
- 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 +1 -145
- package/lib/index.js +281 -139
- package/lib/locale/en-US.js +85 -2
- package/lib/locale/zh-CN.js +87 -4
- package/lib/plugin/Alert.js +1 -1
- package/lib/plugin/AnchorNav.js +3 -3
- 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.js +1 -1
- package/lib/plugin/ButtonGroup.js +1 -1
- package/lib/plugin/CRUD.d.ts +4 -3
- package/lib/plugin/CRUD.js +27 -23
- package/lib/plugin/CRUD2.js +18 -11
- package/lib/plugin/Card.js +8 -4
- package/lib/plugin/Card2.js +1 -1
- package/lib/plugin/Cards.js +3 -7
- package/lib/plugin/Carousel.js +3 -1
- package/lib/plugin/Chart.d.ts +3 -0
- package/lib/plugin/Chart.js +133 -89
- package/lib/plugin/CodeView.js +1 -1
- package/lib/plugin/Collapse.js +7 -8
- package/lib/plugin/CollapseGroup.js +12 -13
- package/lib/plugin/ColumnToggler.js +1 -1
- package/lib/plugin/Container.d.ts +2 -1
- package/lib/plugin/Container.js +79 -9
- package/lib/plugin/Custom.js +3 -3
- package/lib/plugin/CustomRegion.js +1 -1
- package/lib/plugin/Date.js +1 -1
- package/lib/plugin/Datetime.js +1 -1
- package/lib/plugin/Dialog.d.ts +13 -2
- package/lib/plugin/Dialog.js +65 -1
- package/lib/plugin/Divider.js +1 -1
- package/lib/plugin/Drawer.d.ts +7 -1
- package/lib/plugin/Drawer.js +46 -1
- package/lib/plugin/DropDownButton.js +2 -2
- package/lib/plugin/Each.js +3 -3
- package/lib/plugin/Flex.js +1 -1
- package/lib/plugin/Form/ButtonGroupSelect.d.ts +2 -0
- package/lib/plugin/Form/ButtonGroupSelect.js +49 -1
- package/lib/plugin/Form/ButtonToolbar.js +1 -1
- package/lib/plugin/Form/ChainedSelect.d.ts +2 -0
- package/lib/plugin/Form/ChainedSelect.js +40 -2
- package/lib/plugin/Form/Checkbox.d.ts +6 -0
- package/lib/plugin/Form/Checkbox.js +11 -1
- package/lib/plugin/Form/Checkboxes.d.ts +2 -0
- package/lib/plugin/Form/Checkboxes.js +55 -2
- package/lib/plugin/Form/CodeEditor.js +1 -1
- package/lib/plugin/Form/Combo.d.ts +1 -0
- package/lib/plugin/Form/Combo.js +71 -1
- package/lib/plugin/Form/ConditionBuilder.js +7 -4
- package/lib/plugin/Form/Control.js +3 -3
- package/lib/plugin/Form/DiffEditor.js +1 -1
- package/lib/plugin/Form/FieldSet.js +2 -2
- package/lib/plugin/Form/Form.d.ts +6 -1
- package/lib/plugin/Form/Form.js +50 -64
- package/lib/plugin/Form/Formula.js +1 -1
- package/lib/plugin/Form/Group.js +3 -3
- package/lib/plugin/Form/Hidden.js +1 -1
- package/lib/plugin/Form/InputArray.js +2 -2
- package/lib/plugin/Form/InputCity.d.ts +2 -0
- package/lib/plugin/Form/InputCity.js +51 -1
- package/lib/plugin/Form/InputColor.js +1 -1
- package/lib/plugin/Form/InputDate.js +1 -1
- package/lib/plugin/Form/InputDateRange.js +2 -2
- package/lib/plugin/Form/InputDateTime.js +1 -1
- package/lib/plugin/Form/InputDateTimeRange.js +1 -1
- 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 +1 -1
- package/lib/plugin/Form/InputKV.js +1 -1
- package/lib/plugin/Form/InputMonth.js +1 -1
- package/lib/plugin/Form/InputMonthRange.js +1 -1
- package/lib/plugin/Form/InputNumber.d.ts +6 -1
- package/lib/plugin/Form/InputNumber.js +10 -1
- package/lib/plugin/Form/InputPassword.js +1 -1
- package/lib/plugin/Form/InputQuarter.js +1 -1
- package/lib/plugin/Form/InputQuarterRange.js +1 -1
- package/lib/plugin/Form/InputRange.d.ts +21 -1
- package/lib/plugin/Form/InputRange.js +28 -1
- package/lib/plugin/Form/InputRating.d.ts +6 -0
- package/lib/plugin/Form/InputRating.js +10 -1
- package/lib/plugin/Form/InputRepeat.js +1 -1
- package/lib/plugin/Form/InputRichText.js +1 -1
- package/lib/plugin/Form/InputSubForm.js +3 -3
- package/lib/plugin/Form/InputTable.d.ts +1 -1
- package/lib/plugin/Form/InputTable.js +72 -56
- package/lib/plugin/Form/InputTag.d.ts +2 -0
- package/lib/plugin/Form/InputTag.js +40 -1
- package/lib/plugin/Form/InputText.d.ts +2 -0
- package/lib/plugin/Form/InputText.js +51 -1
- package/lib/plugin/Form/InputTime.js +1 -1
- package/lib/plugin/Form/InputTimeRange.js +1 -1
- package/lib/plugin/Form/InputTree.d.ts +2 -1
- package/lib/plugin/Form/InputTree.js +51 -3
- package/lib/plugin/Form/InputURL.js +1 -1
- package/lib/plugin/Form/InputYear.js +1 -1
- package/lib/plugin/Form/InputYearRange.js +1 -1
- package/lib/plugin/Form/Item.js +18 -15
- package/lib/plugin/Form/ListSelect.d.ts +2 -0
- package/lib/plugin/Form/ListSelect.js +49 -1
- package/lib/plugin/Form/LocationPicker.d.ts +28 -0
- package/lib/plugin/Form/LocationPicker.js +32 -1
- package/lib/plugin/Form/MatrixCheckboxes.d.ts +1 -2
- package/lib/plugin/Form/MatrixCheckboxes.js +30 -6
- package/lib/plugin/Form/NestedSelect.d.ts +2 -1
- package/lib/plugin/Form/NestedSelect.js +49 -1
- package/lib/plugin/Form/Picker.d.ts +2 -1
- package/lib/plugin/Form/Picker.js +51 -3
- package/lib/plugin/Form/Radios.d.ts +2 -0
- package/lib/plugin/Form/Radios.js +30 -1
- package/lib/plugin/Form/Select.d.ts +2 -0
- package/lib/plugin/Form/Select.js +49 -1
- package/lib/plugin/Form/Static.js +3 -3
- package/lib/plugin/Form/Switch.d.ts +6 -1
- package/lib/plugin/Form/Switch.js +11 -1
- package/lib/plugin/Form/TabsTransfer.d.ts +2 -0
- package/lib/plugin/Form/TabsTransfer.js +41 -2
- package/lib/plugin/Form/Textarea.js +1 -1
- package/lib/plugin/Form/Transfer.d.ts +2 -0
- package/lib/plugin/Form/Transfer.js +40 -1
- package/lib/plugin/Form/TreeSelect.d.ts +2 -1
- package/lib/plugin/Form/TreeSelect.js +49 -1
- package/lib/plugin/Form/UUID.js +1 -1
- package/lib/plugin/Grid.js +11 -8
- package/lib/plugin/HBox.js +8 -8
- package/lib/plugin/IFrame.js +1 -1
- package/lib/plugin/Icon.js +1 -1
- package/lib/plugin/Image.js +1 -1
- package/lib/plugin/Images.js +1 -1
- package/lib/plugin/Json.js +1 -1
- package/lib/plugin/Layout/FlexPluginBase.js +12 -9
- package/lib/plugin/Layout/Layout_fixed.js +1 -1
- package/lib/plugin/Layout/Layout_free_container.js +1 -1
- package/lib/plugin/Layout/Layout_sorption_container.js +1 -1
- package/lib/plugin/Link.js +1 -1
- package/lib/plugin/List.js +6 -6
- package/lib/plugin/ListItem.js +2 -2
- package/lib/plugin/Log.js +4 -4
- package/lib/plugin/Mapping.js +1 -1
- package/lib/plugin/Markdown.js +1 -1
- package/lib/plugin/Nav.d.ts +2 -0
- package/lib/plugin/Nav.js +5 -3
- package/lib/plugin/OfficeViewer.js +1 -1
- package/lib/plugin/Operation.js +2 -2
- package/lib/plugin/Others/Action.js +5 -5
- package/lib/plugin/Others/TableCell.js +3 -3
- package/lib/plugin/Page.d.ts +1 -1
- package/lib/plugin/Page.js +39 -22
- package/lib/plugin/Pagination.js +1 -1
- package/lib/plugin/Panel.js +2 -2
- package/lib/plugin/Plain.js +1 -1
- package/lib/plugin/Progress.js +35 -10
- package/lib/plugin/Property.js +1 -1
- package/lib/plugin/QRCode.js +1 -1
- package/lib/plugin/Reset.js +1 -1
- package/lib/plugin/SearchBox.js +1 -1
- package/lib/plugin/Service.d.ts +1 -0
- package/lib/plugin/Service.js +36 -5
- package/lib/plugin/Sparkline.d.ts +2 -1
- package/lib/plugin/Sparkline.js +32 -8
- package/lib/plugin/Status.js +1 -1
- package/lib/plugin/Steps.js +1 -1
- package/lib/plugin/Submit.js +1 -1
- package/lib/plugin/Table.d.ts +1 -1
- package/lib/plugin/Table.js +109 -105
- package/lib/plugin/Table2.js +1 -1
- package/lib/plugin/TableCell2.js +7 -6
- package/lib/plugin/TableView.d.ts +2 -1
- package/lib/plugin/TableView.js +1 -1
- package/lib/plugin/Tabs.d.ts +2 -1
- package/lib/plugin/Tabs.js +4 -4
- package/lib/plugin/Tag.js +1 -1
- package/lib/plugin/Tasks.js +1 -1
- package/lib/plugin/Time.js +1 -1
- package/lib/plugin/Timeline.d.ts +2 -1
- package/lib/plugin/Timeline.js +74 -3
- package/lib/plugin/TooltipWrapper.js +1 -1
- package/lib/plugin/Tpl.js +1 -1
- package/lib/plugin/Video.js +1 -1
- package/lib/plugin/WebComponent.js +1 -1
- package/lib/plugin/Wizard.js +5 -5
- package/lib/plugin/Wrapper.js +8 -8
- package/lib/plugin/index.d.ts +143 -0
- package/lib/renderer/APIAdaptorControl.d.ts +2 -2
- package/lib/renderer/APIAdaptorControl.js +8 -8
- package/lib/renderer/APIControl.d.ts +4 -4
- package/lib/renderer/APIControl.js +2 -2
- package/lib/renderer/ActionApiControl.d.ts +3 -3
- package/lib/renderer/BadgeControl.d.ts +7 -7
- package/lib/renderer/BadgeControl.js +6 -3
- package/lib/renderer/ButtonGroupControl.d.ts +1 -1
- package/lib/renderer/ButtonGroupControl.js +1 -1
- package/lib/renderer/ColumnControl.d.ts +1 -1
- package/lib/renderer/DataBindingControl.d.ts +2 -2
- package/lib/renderer/DataBindingControl.js +11 -6
- package/lib/renderer/DataMappingControl.js +1 -1
- package/lib/renderer/DataPickerControl.d.ts +1 -1
- package/lib/renderer/DataPickerControl.js +1 -1
- package/lib/renderer/DateShortCutControl.d.ts +2 -2
- package/lib/renderer/DateShortCutControl.js +2 -2
- package/lib/renderer/ExpressionFormulaControl.d.ts +1 -1
- package/lib/renderer/ExpressionFormulaControl.js +2 -2
- package/lib/renderer/FeatureControl.d.ts +2 -2
- package/lib/renderer/FeatureControl.js +8 -5
- package/lib/renderer/FlexSettingControl.d.ts +1 -1
- package/lib/renderer/FlexSettingControl.js +2 -2
- package/lib/renderer/FormulaControl.d.ts +2 -2
- package/lib/renderer/FormulaControl.js +1 -1
- package/lib/renderer/GoConfigControl.d.ts +1 -1
- package/lib/renderer/GoConfigControl.js +2 -2
- package/lib/renderer/MapSourceControl.d.ts +3 -3
- package/lib/renderer/MapSourceControl.js +2 -2
- 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 +53 -35
- package/lib/renderer/NavSourceControl.js +598 -227
- package/lib/renderer/OptionControl.d.ts +3 -3
- package/lib/renderer/OptionControl.js +4 -4
- package/lib/renderer/RangePartsControl.d.ts +5 -5
- package/lib/renderer/RangePartsControl.js +4 -4
- package/lib/renderer/StatusControl.d.ts +2 -2
- package/lib/renderer/StatusControl.js +17 -3
- package/lib/renderer/SwitchMoreControl.d.ts +6 -5
- package/lib/renderer/SwitchMoreControl.js +13 -8
- package/lib/renderer/TimelineItemControl.d.ts +6 -6
- package/lib/renderer/TimelineItemControl.js +24 -7
- package/lib/renderer/TplFormulaControl.d.ts +1 -1
- package/lib/renderer/TplFormulaControl.js +1 -1
- package/lib/renderer/TransferTableControl.d.ts +3 -3
- package/lib/renderer/TransferTableControl.js +2 -2
- package/lib/renderer/TreeOptionControl.d.ts +3 -3
- package/lib/renderer/TreeOptionControl.js +8 -8
- package/lib/renderer/ValidationControl.d.ts +4 -4
- package/lib/renderer/ValidationControl.js +2 -2
- package/lib/renderer/ValidationItem.d.ts +3 -3
- package/lib/renderer/ValidationItem.js +1 -1
- package/lib/renderer/event-control/action-config-dialog.js +26 -2
- package/lib/renderer/event-control/action-config-panel.js +1 -1
- package/lib/renderer/event-control/comp-action-select.d.ts +1 -1
- package/lib/renderer/event-control/comp-action-select.js +1 -1
- package/lib/renderer/event-control/helper.js +138 -90
- package/lib/renderer/event-control/index.d.ts +2 -2
- package/lib/renderer/event-control/index.js +2 -1
- package/lib/renderer/style-control/Background.d.ts +1 -1
- package/lib/renderer/style-control/Background.js +1 -1
- package/lib/renderer/style-control/Border.d.ts +2 -2
- package/lib/renderer/style-control/Border.js +8 -8
- package/lib/renderer/style-control/BoxModel.d.ts +2 -2
- package/lib/renderer/style-control/BoxModel.js +1 -1
- package/lib/renderer/style-control/BoxShadow.d.ts +2 -2
- package/lib/renderer/style-control/BoxShadow.js +1 -1
- package/lib/renderer/style-control/Display.d.ts +1 -1
- package/lib/renderer/style-control/Display.js +1 -1
- package/lib/renderer/style-control/Font.d.ts +1 -1
- package/lib/renderer/style-control/Font.js +1 -1
- package/lib/renderer/style-control/InsetBoxModel.d.ts +2 -2
- package/lib/renderer/style-control/InsetBoxModel.js +1 -1
- package/lib/renderer/style-control/ThemeCssCode.d.ts +1 -1
- package/lib/renderer/style-control/ThemeCssCode.js +10 -7
- package/lib/renderer/style-control/font-family.js +1 -1
- package/lib/renderer/style-control/helper.js +1 -1
- package/lib/renderer/style-control/themeLanguage.js +7 -3
- package/lib/renderer/style-control/transformation.js +1 -1
- package/lib/renderer/textarea-formula/FormulaPicker.js +3 -3
- package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +1 -1
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +2 -2
- package/lib/renderer/textarea-formula/plugin.js +1 -1
- package/lib/tpl/api.js +6 -5
- package/lib/tpl/common.js +33 -6
- package/lib/tpl/horizontal.js +7 -3
- package/lib/tpl/layout.js +8 -5
- package/lib/tpl/options.js +3 -2
- package/lib/tpl/remark.js +1 -1
- package/lib/tpl/style.js +1 -1
- package/lib/tpl/validations.js +1 -1
- package/lib/util.d.ts +6 -0
- package/lib/util.js +20 -1
- package/lib/validator.js +5 -5
- package/package.json +2 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.6.0-beta.0
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -141,7 +141,7 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
141
141
|
innerArgs: ['url', 'params', 'blank'],
|
142
142
|
descDetail: function (info) {
|
143
143
|
var _a;
|
144
|
-
return React__default.createElement("div", null, "
|
144
|
+
return React__default.createElement("div", null, i18n("c7a34a3465d1beea2f85d53edcff8235"), React__default.createElement("span", {
|
145
145
|
className: "variable-left"
|
146
146
|
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.url) || '-'));
|
147
147
|
},
|
@@ -190,9 +190,9 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
190
190
|
innerArgs: ['link', 'params', 'pageName', '__pageInputSchema'],
|
191
191
|
descDetail: function (info) {
|
192
192
|
var _a;
|
193
|
-
return React__default.createElement("div", null, "
|
193
|
+
return React__default.createElement("div", null, i18n("d7098f5050f017673319c5db1473ada7"), React__default.createElement("span", {
|
194
194
|
className: "variable-left variable-right"
|
195
|
-
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.pageName) || '-'), "
|
195
|
+
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.pageName) || '-'), i18n("59ceff465ad16932d8972191ad815dfb"));
|
196
196
|
},
|
197
197
|
schema: getArgsWrapper([{
|
198
198
|
type: 'wrapper',
|
@@ -208,7 +208,7 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
208
208
|
actionType: 'goBack',
|
209
209
|
description: i18n("5f6b9e7a050ae3f34b38191435e14b24"),
|
210
210
|
descDetail: function (info) {
|
211
|
-
return React__default.createElement("div", null, "
|
211
|
+
return React__default.createElement("div", null, i18n("27e0ca877865238aad6940481b2984d4"));
|
212
212
|
}
|
213
213
|
}]
|
214
214
|
}, {
|
@@ -401,7 +401,7 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
401
401
|
innerArgs: ['title', 'msgType', 'msg', 'position', 'timeout', 'closeButton', 'showIcon', 'className'],
|
402
402
|
descDetail: function (info) {
|
403
403
|
var _a, _b;
|
404
|
-
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] || '', "
|
404
|
+
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] || '', i18n("4e5242a645864528e10f04dc2326a5c4"), React__default.createElement("span", {
|
405
405
|
className: "variable-left"
|
406
406
|
}, ((_b = info === null || info === void 0 ? void 0 : info.args) === null || _b === void 0 ? void 0 : _b.msg) || '-'));
|
407
407
|
},
|
@@ -499,9 +499,9 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
499
499
|
if (typeof apiInfo === 'string') {
|
500
500
|
apiInfo = normalizeApi(apiInfo);
|
501
501
|
}
|
502
|
-
return React__default.createElement("div", null, "
|
502
|
+
return React__default.createElement("div", null, i18n("1535fcfa4cb8e4d467127154977e9788"), React__default.createElement("span", {
|
503
503
|
className: "variable-right variable-left"
|
504
|
-
}, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.method) || '-'), "
|
504
|
+
}, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.method) || '-'), i18n("c14a21300b61bb83b4420a1586497951"), React__default.createElement("span", {
|
505
505
|
className: "variable-left"
|
506
506
|
}, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.url) || '-'));
|
507
507
|
},
|
@@ -571,7 +571,7 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
571
571
|
}, {
|
572
572
|
name: 'outputVar',
|
573
573
|
type: 'input-text',
|
574
|
-
label: i18n("
|
574
|
+
label: i18n("139c619a4dbfc26fb61d76dc388e3e7d"),
|
575
575
|
placeholder: i18n("4dca05af026848011eedee1b53efa61c"),
|
576
576
|
description: i18n("4da82260041107e5780bcbb3a14ef791"),
|
577
577
|
mode: 'horizontal',
|
@@ -645,23 +645,23 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
645
645
|
actions: [{
|
646
646
|
actionType: 'show',
|
647
647
|
descDetail: function (info) {
|
648
|
-
return React__default.createElement("div", null, "
|
648
|
+
return React__default.createElement("div", null, i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"), React__default.createElement("span", {
|
649
649
|
className: "variable-left variable-right"
|
650
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
650
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
|
651
651
|
}
|
652
652
|
}, {
|
653
653
|
actionType: 'hidden',
|
654
654
|
descDetail: function (info) {
|
655
|
-
return React__default.createElement("div", null, "
|
655
|
+
return React__default.createElement("div", null, i18n("dce5379cb978a8259ecfca8f08f00817"), React__default.createElement("span", {
|
656
656
|
className: "variable-left variable-right"
|
657
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
657
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
|
658
658
|
}
|
659
659
|
}, {
|
660
660
|
actionType: 'visibility',
|
661
661
|
descDetail: function (info) {
|
662
|
-
return React__default.createElement("div", null, "
|
662
|
+
return React__default.createElement("div", null, i18n("bb79667f37035e9562ec6bcffd6cf8ef"), React__default.createElement("span", {
|
663
663
|
className: "variable-left variable-right"
|
664
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
664
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("7f019b96ffb7d72ec8d6ce8d76e5362f"));
|
665
665
|
}
|
666
666
|
}],
|
667
667
|
supportComponents: '*',
|
@@ -714,23 +714,23 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
714
714
|
actions: [{
|
715
715
|
actionType: 'enabled',
|
716
716
|
descDetail: function (info) {
|
717
|
-
return React__default.createElement("div", null, "
|
717
|
+
return React__default.createElement("div", null, i18n("7854b52a889b3ef0590d9f542efeb4c8"), React__default.createElement("span", {
|
718
718
|
className: "variable-left variable-right"
|
719
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
719
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
|
720
720
|
}
|
721
721
|
}, {
|
722
722
|
actionType: 'disabled',
|
723
723
|
descDetail: function (info) {
|
724
|
-
return React__default.createElement("div", null, "
|
724
|
+
return React__default.createElement("div", null, i18n("710ad08b11419332713360d2750cd707"), React__default.createElement("span", {
|
725
725
|
className: "variable-left variable-right"
|
726
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
726
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
|
727
727
|
}
|
728
728
|
}, {
|
729
729
|
actionType: 'usability',
|
730
730
|
descDetail: function (info) {
|
731
|
-
return React__default.createElement("div", null, "
|
731
|
+
return React__default.createElement("div", null, i18n("bb79667f37035e9562ec6bcffd6cf8ef"), React__default.createElement("span", {
|
732
732
|
className: "variable-left variable-right"
|
733
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
733
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("7f019b96ffb7d72ec8d6ce8d76e5362f"));
|
734
734
|
}
|
735
735
|
}],
|
736
736
|
supportComponents: __spreadArray(__spreadArray(['form'], __read(FORMITEM_CMPTS), false), __read(SUPPORT_DISABLED_CMPTS), false),
|
@@ -784,14 +784,14 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
784
784
|
descDetail: function (info) {
|
785
785
|
return React__default.createElement("div", null, React__default.createElement("span", {
|
786
786
|
className: "variable-right"
|
787
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
787
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("0e35b091e18032508758899735664df7"));
|
788
788
|
}
|
789
789
|
}, {
|
790
790
|
actionType: 'nonstatic',
|
791
791
|
descDetail: function (info) {
|
792
792
|
return React__default.createElement("div", null, React__default.createElement("span", {
|
793
793
|
className: "variable-right"
|
794
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
794
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("34d361256526b04909e064c29d9a9b76"));
|
795
795
|
}
|
796
796
|
}],
|
797
797
|
supportComponents: __spreadArray(['form'], __read(SUPPORT_STATIC_FORMITEM_CMPTS), false),
|
@@ -813,19 +813,18 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
813
813
|
}]
|
814
814
|
}], false)
|
815
815
|
}, {
|
816
|
-
actionLabel: i18n("
|
816
|
+
actionLabel: i18n("0eb4e63db88e158600dab0e723e8a213"),
|
817
817
|
actionType: 'reload',
|
818
|
-
description: i18n("
|
818
|
+
description: i18n("f16654604d6cb2f62469e5aa9db19871"),
|
819
819
|
descDetail: function (info) {
|
820
|
-
return React__default.createElement("div", null, "
|
820
|
+
return React__default.createElement("div", null, i18n("694fc5efa9e1d1c2c5eb6525e1c7fb29"), React__default.createElement("span", {
|
821
821
|
className: "variable-left variable-right"
|
822
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
822
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
|
823
823
|
},
|
824
824
|
supportComponents: 'byComponent',
|
825
825
|
schema: __spreadArray(__spreadArray([], __read(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
|
826
826
|
form.setValueByName('args.resetPage', true);
|
827
|
-
form.setValueByName('__addParam',
|
828
|
-
form.setValueByName('__customData', false);
|
827
|
+
form.setValueByName('__addParam', false);
|
829
828
|
form.setValueByName('__containerType', 'all');
|
830
829
|
form.setValueByName('__reloadParam', []);
|
831
830
|
})), false), [{
|
@@ -840,21 +839,12 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
840
839
|
}, {
|
841
840
|
type: 'switch',
|
842
841
|
name: '__addParam',
|
843
|
-
label: tipedLabel(i18n("
|
842
|
+
label: tipedLabel(i18n("8f0064a9cfd7dcbb3c729f1357f11772"), i18n("a0c117d927c6290bab55ae0e848a4d4b")),
|
844
843
|
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
845
844
|
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
846
845
|
mode: 'horizontal',
|
847
|
-
pipeIn: defaultValue(
|
848
|
-
visibleOn: "data.actionType === \"reload\" && data.__isScopeContainer"
|
849
|
-
}, {
|
850
|
-
type: 'switch',
|
851
|
-
name: '__customData',
|
852
|
-
label: tipedLabel(i18n("fd951a59a7c635d5330bc1aeec22c813"), i18n("b62ce3df3c0d5772006c525b60d5eeab")),
|
853
|
-
onText: i18n("0a60ac8f02ccd2cf723f927284877851"),
|
854
|
-
offText: i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
|
855
|
-
mode: 'horizontal',
|
856
|
-
pipeIn: defaultValue(true),
|
857
|
-
visibleOn: "data.__addParam && data.actionType === \"reload\" && data.__isScopeContainer",
|
846
|
+
pipeIn: defaultValue(false),
|
847
|
+
visibleOn: "data.actionType === \"reload\" && data.__isScopeContainer",
|
858
848
|
onChange: function (value, oldVal, data, form) {
|
859
849
|
form.setValueByName('__containerType', 'all');
|
860
850
|
}
|
@@ -864,7 +854,7 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
864
854
|
mode: 'horizontal',
|
865
855
|
label: '',
|
866
856
|
pipeIn: defaultValue('all'),
|
867
|
-
visibleOn: "data.__addParam && data.
|
857
|
+
visibleOn: "data.__addParam && data.actionType === \"reload\" && data.__isScopeContainer",
|
868
858
|
options: [{
|
869
859
|
label: i18n("77b1081c177fa3334cc93c99f0ecee75"),
|
870
860
|
value: 'all'
|
@@ -883,7 +873,7 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
883
873
|
size: 'lg',
|
884
874
|
mode: 'horizontal',
|
885
875
|
required: true,
|
886
|
-
visibleOn: "data.__addParam && data.
|
876
|
+
visibleOn: "data.__addParam && data.__containerType === \"all\" && data.actionType === \"reload\" && data.__isScopeContainer"
|
887
877
|
}), {
|
888
878
|
type: 'combo',
|
889
879
|
name: '__reloadParams',
|
@@ -907,12 +897,12 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
907
897
|
variables: '${variables}',
|
908
898
|
placeholder: i18n("bfed4943c5f487de1b63a82f7230cce2")
|
909
899
|
})],
|
910
|
-
visibleOn: "data.__addParam && data.
|
900
|
+
visibleOn: "data.__addParam && data.__containerType === \"appoint\" && data.actionType === \"reload\" && data.__isScopeContainer"
|
911
901
|
}, {
|
912
902
|
type: 'radios',
|
913
903
|
name: 'dataMergeMode',
|
914
904
|
mode: 'horizontal',
|
915
|
-
label: tipedLabel(i18n("
|
905
|
+
label: tipedLabel(i18n("eb6cd21b9ed45ded3ecdb12f62b590e1"), i18n("b67b01a3b9170f1daf78082cfd0df793")),
|
916
906
|
pipeIn: defaultValue('merge'),
|
917
907
|
visibleOn: "data.__addParam && data.actionType === \"reload\" && data.__isScopeContainer",
|
918
908
|
options: [{
|
@@ -930,11 +920,11 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
930
920
|
innerArgs: ['path', 'value', 'index', 'fromPage', 'fromApp', '__valueInput', '__comboType', '__containerType'],
|
931
921
|
descDetail: function (info) {
|
932
922
|
var _a;
|
933
|
-
return React__default.createElement("div", null, typeof ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.path) === 'string' && !(info === null || info === void 0 ? void 0 : info.componentId) ? React__default.createElement(React__default.Fragment, null, "
|
923
|
+
return React__default.createElement("div", null, typeof ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.path) === 'string' && !(info === null || info === void 0 ? void 0 : info.componentId) ? React__default.createElement(React__default.Fragment, null, i18n("c85c8d61a67014c4b5d44f25e49e87fc"), React__default.createElement("span", {
|
934
924
|
className: "variable-left variable-right"
|
935
|
-
}, variableManager.getNameByPath(info.args.path)), "
|
925
|
+
}, variableManager.getNameByPath(info.args.path)), i18n("df24d894cd3331f53964bc75f5c192e2")) : React__default.createElement(React__default.Fragment, null, i18n("9e1bafbb00018beacc8f579c8ddfaa36"), React__default.createElement("span", {
|
936
926
|
className: "variable-left variable-right"
|
937
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
927
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("df24d894cd3331f53964bc75f5c192e2")));
|
938
928
|
},
|
939
929
|
supportComponents: 'byComponent',
|
940
930
|
schema: [{
|
@@ -1155,20 +1145,52 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
1155
1145
|
actionType: 'submit',
|
1156
1146
|
description: i18n("a360c5d4e723ad78a5e52eb1f5f3f2a2"),
|
1157
1147
|
descDetail: function (info) {
|
1158
|
-
return React__default.createElement("div", null, "
|
1148
|
+
return React__default.createElement("div", null, i18n("939d5345ad4345dbaabe14798f6ac0f1"), React__default.createElement("span", {
|
1159
1149
|
className: "variable-left variable-right"
|
1160
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
1150
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("b91ebe714155c83b6d3bc02b675a31e9"));
|
1161
1151
|
},
|
1162
1152
|
supportComponents: 'form',
|
1163
|
-
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1153
|
+
schema: __spreadArray(__spreadArray([], __read(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)), false), [{
|
1154
|
+
name: 'outputVar',
|
1155
|
+
type: 'input-text',
|
1156
|
+
label: i18n("ac24ffeb131a7a9d2465b3ba7b14e10c"),
|
1157
|
+
placeholder: i18n("0e3517fb21e2c4066bd0ab75c51bc6fb"),
|
1158
|
+
description: i18n("0e2ba6becfa8760853cfa31c9e15a94b"),
|
1159
|
+
mode: 'horizontal',
|
1160
|
+
size: 'lg',
|
1161
|
+
value: 'submitResult',
|
1162
|
+
required: true
|
1163
|
+
}], false),
|
1164
|
+
outputVarDataSchema: [{
|
1165
|
+
type: 'object',
|
1166
|
+
title: 'submitResult',
|
1167
|
+
properties: {
|
1168
|
+
error: {
|
1169
|
+
type: 'string',
|
1170
|
+
title: i18n("4604d5023479171cb6e901dbeccf62c0")
|
1171
|
+
},
|
1172
|
+
errors: {
|
1173
|
+
type: 'object',
|
1174
|
+
title: i18n("71f6236494bfc8b023804abb0cca1639")
|
1175
|
+
},
|
1176
|
+
payload: {
|
1177
|
+
type: 'object',
|
1178
|
+
title: i18n("335d6c56c43204f9efcefe36f097d35a")
|
1179
|
+
},
|
1180
|
+
responseData: {
|
1181
|
+
type: 'object',
|
1182
|
+
title: i18n("4e6bfc5ad98f719f9bc6b2ad3b6440ee")
|
1183
|
+
}
|
1184
|
+
}
|
1185
|
+
}]
|
1164
1186
|
}, {
|
1165
1187
|
actionLabel: i18n("4a3deab45c0a7218b8ae58a33fd24c28"),
|
1166
1188
|
actionType: 'clear',
|
1167
1189
|
description: i18n("82986a4cab1d0efdbc23b3ac5f0fd509"),
|
1168
1190
|
descDetail: function (info) {
|
1169
|
-
return React__default.createElement("div", null, "
|
1191
|
+
return React__default.createElement("div", null, i18n("288f0c404c4e546aa3683ff5054e85e2"), React__default.createElement("span", {
|
1170
1192
|
className: "variable-left variable-right"
|
1171
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
1193
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("b91ebe714155c83b6d3bc02b675a31e9"));
|
1172
1194
|
},
|
1173
1195
|
supportComponents: 'form',
|
1174
1196
|
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
@@ -1177,9 +1199,9 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
1177
1199
|
actionType: 'reset',
|
1178
1200
|
description: i18n("f457845da8c119a8688e333a3554284f"),
|
1179
1201
|
descDetail: function (info) {
|
1180
|
-
return React__default.createElement("div", null, "
|
1202
|
+
return React__default.createElement("div", null, i18n("4b9c3271dc2f299dc3aeffb369187513"), React__default.createElement("span", {
|
1181
1203
|
className: "variable-left variable-right"
|
1182
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
1204
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("b91ebe714155c83b6d3bc02b675a31e9"));
|
1183
1205
|
},
|
1184
1206
|
supportComponents: 'form',
|
1185
1207
|
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
@@ -1188,12 +1210,40 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
1188
1210
|
actionType: 'validate',
|
1189
1211
|
description: i18n("a84a1311bea7370f1749341ffa6f75e1"),
|
1190
1212
|
descDetail: function (info) {
|
1191
|
-
return React__default.createElement("div", null, "
|
1213
|
+
return React__default.createElement("div", null, i18n("b7579706a363e5f23b1040fecfbcb677"), React__default.createElement("span", {
|
1192
1214
|
className: "variable-left variable-right"
|
1193
|
-
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "
|
1215
|
+
}, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), i18n("b91ebe714155c83b6d3bc02b675a31e9"));
|
1194
1216
|
},
|
1195
1217
|
supportComponents: 'form',
|
1196
|
-
schema: renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)
|
1218
|
+
schema: __spreadArray(__spreadArray([], __read(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"), true)), false), [{
|
1219
|
+
name: 'outputVar',
|
1220
|
+
type: 'input-text',
|
1221
|
+
label: i18n("bf0f829689370b36d01ce871324e0bb6"),
|
1222
|
+
placeholder: i18n("d23157205c994bde20bb2605c193fd27"),
|
1223
|
+
description: i18n("a422eb12ebbfdd3347c4deb5ec6b4b54"),
|
1224
|
+
mode: 'horizontal',
|
1225
|
+
size: 'lg',
|
1226
|
+
value: 'validateResult',
|
1227
|
+
required: true
|
1228
|
+
}], false),
|
1229
|
+
outputVarDataSchema: [{
|
1230
|
+
type: 'object',
|
1231
|
+
title: 'validateResult',
|
1232
|
+
properties: {
|
1233
|
+
error: {
|
1234
|
+
type: 'string',
|
1235
|
+
title: i18n("4604d5023479171cb6e901dbeccf62c0")
|
1236
|
+
},
|
1237
|
+
errors: {
|
1238
|
+
type: 'object',
|
1239
|
+
title: i18n("71f6236494bfc8b023804abb0cca1639")
|
1240
|
+
},
|
1241
|
+
payload: {
|
1242
|
+
type: 'object',
|
1243
|
+
title: i18n("335d6c56c43204f9efcefe36f097d35a")
|
1244
|
+
}
|
1245
|
+
}
|
1246
|
+
}]
|
1197
1247
|
}, {
|
1198
1248
|
actionLabel: i18n("51325230409d4b7c64aaeb3db9904801"),
|
1199
1249
|
actionType: 'component',
|
@@ -1211,7 +1261,7 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
1211
1261
|
innerArgs: ['content', 'copyFormat'],
|
1212
1262
|
descDetail: function (info) {
|
1213
1263
|
var _a;
|
1214
|
-
return React__default.createElement("div", null, "
|
1264
|
+
return React__default.createElement("div", null, i18n("5aa4369ec61715ddef3641992fad0d4d"), React__default.createElement("span", {
|
1215
1265
|
className: "variable-left"
|
1216
1266
|
}, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.content) || '-'));
|
1217
1267
|
},
|
@@ -1267,7 +1317,7 @@ var ACTION_TYPE_TREE = function (manager) {
|
|
1267
1317
|
folding: true
|
1268
1318
|
},
|
1269
1319
|
className: 'ae-event-control-action-js-editor',
|
1270
|
-
value: "
|
1320
|
+
value: i18n("fbaa94ca6b6e6e76a07124e80733f109")
|
1271
1321
|
}
|
1272
1322
|
}
|
1273
1323
|
// {
|
@@ -1388,9 +1438,9 @@ var COMMON_ACTION_SCHEMA_MAP = {
|
|
1388
1438
|
setValue: {
|
1389
1439
|
innerArgs: ['value'],
|
1390
1440
|
descDetail: function (info) {
|
1391
|
-
return React__default.createElement("div", null, "
|
1441
|
+
return React__default.createElement("div", null, i18n("e366ccf1556c0672dcecba135ed5472e"), React__default.createElement("span", {
|
1392
1442
|
className: "variable-left variable-right"
|
1393
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
1443
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("b91ebe714155c83b6d3bc02b675a31e9"));
|
1394
1444
|
},
|
1395
1445
|
schema: getArgsWrapper({
|
1396
1446
|
type: 'wrapper',
|
@@ -1467,37 +1517,37 @@ var COMMON_ACTION_SCHEMA_MAP = {
|
|
1467
1517
|
},
|
1468
1518
|
reload: {
|
1469
1519
|
descDetail: function (info) {
|
1470
|
-
return React__default.createElement("div", null, "
|
1520
|
+
return React__default.createElement("div", null, i18n("694fc5efa9e1d1c2c5eb6525e1c7fb29"), React__default.createElement("span", {
|
1471
1521
|
className: "variable-left variable-right"
|
1472
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
1522
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
|
1473
1523
|
}
|
1474
1524
|
},
|
1475
1525
|
clear: {
|
1476
1526
|
descDetail: function (info) {
|
1477
|
-
return React__default.createElement("div", null, "
|
1527
|
+
return React__default.createElement("div", null, i18n("288f0c404c4e546aa3683ff5054e85e2"), React__default.createElement("span", {
|
1478
1528
|
className: "variable-left variable-right"
|
1479
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
1529
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("b91ebe714155c83b6d3bc02b675a31e9"));
|
1480
1530
|
}
|
1481
1531
|
},
|
1482
1532
|
reset: {
|
1483
1533
|
descDetail: function (info) {
|
1484
|
-
return React__default.createElement("div", null, "
|
1534
|
+
return React__default.createElement("div", null, i18n("4b9c3271dc2f299dc3aeffb369187513"), React__default.createElement("span", {
|
1485
1535
|
className: "variable-left variable-right"
|
1486
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
1536
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("b91ebe714155c83b6d3bc02b675a31e9"));
|
1487
1537
|
}
|
1488
1538
|
},
|
1489
1539
|
submit: {
|
1490
1540
|
descDetail: function (info) {
|
1491
|
-
return React__default.createElement("div", null, "
|
1541
|
+
return React__default.createElement("div", null, i18n("939d5345ad4345dbaabe14798f6ac0f1"), React__default.createElement("span", {
|
1492
1542
|
className: "variable-left variable-right"
|
1493
1543
|
}, info === null || info === void 0 ? void 0 : info.rendererLabel), (info === null || info === void 0 ? void 0 : info.__rendererName) === 'wizard' ? i18n("fe9e25f4e4b3aeefeb9b7a9c368ede7e") : i18n("0d83078816aa273f2941c9b55ec82bf3"));
|
1494
1544
|
}
|
1495
1545
|
},
|
1496
1546
|
validate: {
|
1497
1547
|
descDetail: function (info) {
|
1498
|
-
return React__default.createElement("div", null, "
|
1548
|
+
return React__default.createElement("div", null, i18n("b7579706a363e5f23b1040fecfbcb677"), React__default.createElement("span", {
|
1499
1549
|
className: "variable-left variable-right"
|
1500
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
1550
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("b91ebe714155c83b6d3bc02b675a31e9"));
|
1501
1551
|
}
|
1502
1552
|
},
|
1503
1553
|
prev: {
|
@@ -1518,36 +1568,36 @@ var COMMON_ACTION_SCHEMA_MAP = {
|
|
1518
1568
|
descDetail: function (info) {
|
1519
1569
|
return React__default.createElement("div", null, React__default.createElement("span", {
|
1520
1570
|
className: "variable-right"
|
1521
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
1571
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("def9e98b60e3bfc493bcd7693e702096"));
|
1522
1572
|
}
|
1523
1573
|
},
|
1524
1574
|
selectAll: {
|
1525
1575
|
descDetail: function (info) {
|
1526
1576
|
return React__default.createElement("div", null, React__default.createElement("span", {
|
1527
1577
|
className: "variable-right"
|
1528
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
1578
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("8b3a9a5c912610c384bc8dc2c8514386"));
|
1529
1579
|
}
|
1530
1580
|
},
|
1531
1581
|
focus: {
|
1532
1582
|
descDetail: function (info) {
|
1533
1583
|
return React__default.createElement("div", null, React__default.createElement("span", {
|
1534
1584
|
className: "variable-right"
|
1535
|
-
}, info === null || info === void 0 ? void 0 : info.rendererLabel), "
|
1585
|
+
}, info === null || info === void 0 ? void 0 : info.rendererLabel), i18n("ab0710b367acefa1d6a78e2338291e86"));
|
1536
1586
|
}
|
1537
1587
|
},
|
1538
1588
|
refresh: {
|
1539
1589
|
descDetail: function (info) {
|
1540
|
-
return React__default.createElement("div", null, "
|
1590
|
+
return React__default.createElement("div", null, i18n("39e107b7c4aa580f913ccbebc00f7534"));
|
1541
1591
|
}
|
1542
1592
|
},
|
1543
1593
|
alert: {
|
1544
1594
|
descDetail: function (info) {
|
1545
|
-
return React__default.createElement("div", null, "
|
1595
|
+
return React__default.createElement("div", null, i18n("211ae8c8666f8b803282a74f90fb0dc6"));
|
1546
1596
|
}
|
1547
1597
|
},
|
1548
1598
|
confirm: {
|
1549
1599
|
descDetail: function (info) {
|
1550
|
-
return React__default.createElement("div", null, "
|
1600
|
+
return React__default.createElement("div", null, i18n("56eafb82d11c72b65efe07b9bedb5c19"));
|
1551
1601
|
}
|
1552
1602
|
}
|
1553
1603
|
};
|
@@ -1754,7 +1804,7 @@ var getOldActionSchema = function (manager, context) {
|
|
1754
1804
|
});
|
1755
1805
|
},
|
1756
1806
|
block: true
|
1757
|
-
}, "
|
1807
|
+
}, i18n("c3c8422fcecd8c1cc922cba15ab5cbc0")) : null;
|
1758
1808
|
}
|
1759
1809
|
}, {
|
1760
1810
|
visibleOn: 'data.actionType == "drawer"',
|
@@ -1784,7 +1834,7 @@ var getOldActionSchema = function (manager, context) {
|
|
1784
1834
|
});
|
1785
1835
|
},
|
1786
1836
|
block: true
|
1787
|
-
}, "
|
1837
|
+
}, i18n("262c7c7b9874ae5607fb51da468d0e8c")) : null;
|
1788
1838
|
}
|
1789
1839
|
}, getSchemaTpl('api', {
|
1790
1840
|
label: i18n("5eb694a4252528628929ced97ca95823"),
|
@@ -1816,14 +1866,14 @@ var getOldActionSchema = function (manager, context) {
|
|
1816
1866
|
}
|
1817
1867
|
});
|
1818
1868
|
}
|
1819
|
-
}, "
|
1869
|
+
}, i18n("deb9089ed7ebcacd712117fc4204c65f")), value ? React__default.createElement(Button, {
|
1820
1870
|
size: "sm",
|
1821
1871
|
level: "link",
|
1822
1872
|
className: "m-l",
|
1823
1873
|
onClick: function () {
|
1824
1874
|
return onChange('');
|
1825
1875
|
}
|
1826
|
-
}, "
|
1876
|
+
}, i18n("215f64480a93893fc56c51aeb5d40f11")) : null) : null;
|
1827
1877
|
}
|
1828
1878
|
}, {
|
1829
1879
|
name: 'feedback.visibleOn',
|
@@ -2033,6 +2083,7 @@ var getEventControlConfig = function (manager, context) {
|
|
2033
2083
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
2034
2084
|
return __generator(this, function (_w) {
|
2035
2085
|
config = __assign({}, action);
|
2086
|
+
config.args = __assign({}, action.args);
|
2036
2087
|
if (['link', 'url'].includes(action.actionType) && ((_a = action.args) === null || _a === void 0 ? void 0 : _a.params)) {
|
2037
2088
|
config.args = __assign(__assign({}, config.args), {
|
2038
2089
|
params: objectToComboArray((_b = action.args) === null || _b === void 0 ? void 0 : _b.params)
|
@@ -2087,14 +2138,13 @@ var getEventControlConfig = function (manager, context) {
|
|
2087
2138
|
// 处理刷新组件动作的追加参数
|
2088
2139
|
if (config.actionType === 'reload') {
|
2089
2140
|
config.__resetPage = (_s = config.args) === null || _s === void 0 ? void 0 : _s.resetPage;
|
2090
|
-
config.__addParam =
|
2091
|
-
config.__customData = !!config.data;
|
2141
|
+
config.__addParam = !!config.data;
|
2092
2142
|
if (config.data && typeof config.data === 'object' || config.args && !Object.keys(config.args).length && config.data === undefined) {
|
2093
|
-
config.
|
2143
|
+
config.__addParam = true;
|
2094
2144
|
config.__containerType = 'appoint';
|
2095
2145
|
config.dataMergeMode = 'override';
|
2096
2146
|
}
|
2097
|
-
if (config.__addParam && config.
|
2147
|
+
if (config.__addParam && config.data) {
|
2098
2148
|
if (typeof config.data === 'string') {
|
2099
2149
|
config.__containerType = 'all';
|
2100
2150
|
config.__valueInput = config.data;
|
@@ -2184,17 +2234,15 @@ var getEventControlConfig = function (manager, context) {
|
|
2184
2234
|
}
|
2185
2235
|
// 刷新组件时,处理是否追加事件变量
|
2186
2236
|
if (config.actionType === 'reload') {
|
2187
|
-
action.data =
|
2237
|
+
action.data = undefined;
|
2188
2238
|
action.dataMergeMode = undefined;
|
2189
2239
|
action.args = action.__rendererName === 'crud' ? __assign(__assign({}, action.args), {
|
2190
2240
|
resetPage: (_b = config.__resetPage) !== null && _b !== void 0 ? _b : true
|
2191
2241
|
}) : undefined;
|
2242
|
+
action.data = undefined;
|
2192
2243
|
if (config.__addParam) {
|
2193
2244
|
action.dataMergeMode = config.dataMergeMode || 'merge';
|
2194
|
-
action.data =
|
2195
|
-
if (config.__customData) {
|
2196
|
-
action.data = config.__containerType === 'all' ? config.__valueInput : comboArrayToObject(config.__reloadParams || []);
|
2197
|
-
}
|
2245
|
+
action.data = config.__containerType === 'all' ? config.__valueInput : comboArrayToObject(config.__reloadParams || []);
|
2198
2246
|
}
|
2199
2247
|
}
|
2200
2248
|
// 转换下格式
|
@@ -96,11 +96,11 @@ export declare class EventControl extends React.Component<EventControlProps, Eve
|
|
96
96
|
buildEventDataSchema(data: any, manager: EditorManager): void;
|
97
97
|
buildContextSchema(data: any): Promise<any>;
|
98
98
|
activeActionDialog(data: Pick<EventControlState, 'showAcionDialog' | 'type' | 'actionData'>): Promise<void>;
|
99
|
-
renderDesc(action: ActionConfig): JSX.Element | null;
|
99
|
+
renderDesc(action: ActionConfig): React.JSX.Element | null;
|
100
100
|
onSubmit(type: string, config: any): void;
|
101
101
|
onClose(): void;
|
102
102
|
removeDataSchema(): void;
|
103
|
-
render(): JSX.Element;
|
103
|
+
render(): React.JSX.Element;
|
104
104
|
}
|
105
105
|
export declare class EventControlRenderer extends EventControl {
|
106
106
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.6.0-beta.0
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -335,6 +335,7 @@ var EventControl = /** @class */function (_super) {
|
|
335
335
|
_this.setState({
|
336
336
|
onEvent: onEventConfig
|
337
337
|
});
|
338
|
+
_this.props.onChange && _this.props.onChange(onEventConfig);
|
338
339
|
}
|
339
340
|
});
|
340
341
|
};
|
@@ -13,5 +13,5 @@ interface BackgroundProps extends FormControlProps {
|
|
13
13
|
declare const Background: React.FC<BackgroundProps>;
|
14
14
|
export default Background;
|
15
15
|
export declare class BackgroundRenderer extends React.Component<FormControlProps> {
|
16
|
-
render(): JSX.Element;
|
16
|
+
render(): React.JSX.Element;
|
17
17
|
}
|
@@ -10,9 +10,9 @@ declare function BoxBorder({ disableBorder, disableRadius, onChange, value, rend
|
|
10
10
|
disableRadius?: boolean;
|
11
11
|
onChange: (value: PlainObject) => void;
|
12
12
|
value?: PlainObject;
|
13
|
-
} & RendererProps): JSX.Element;
|
13
|
+
} & RendererProps): React.JSX.Element;
|
14
14
|
declare const _default: typeof BoxBorder;
|
15
15
|
export default _default;
|
16
16
|
export declare class BorderRenderer extends React.Component<FormControlProps> {
|
17
|
-
render(): JSX.Element;
|
17
|
+
render(): React.JSX.Element;
|
18
18
|
}
|