amis-editor 5.2.3 → 5.2.4-beta.30
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/component/BaseControl.d.ts +12 -4
- package/esm/component/BaseControl.js +1 -1
- package/esm/component/InputComponentName.js +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/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.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/divider.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/index.js +1 -1
- package/esm/locale/en-US.js +69 -2
- package/esm/locale/zh-CN.js +73 -2
- package/esm/plugin/Alert.js +1 -1
- package/esm/plugin/AnchorNav.js +8 -9
- 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 +5 -2
- package/esm/plugin/CRUD.js +3 -3
- package/esm/plugin/CRUD2.js +1 -1
- package/esm/plugin/Card.js +1 -1
- package/esm/plugin/Card2.js +1 -1
- package/esm/plugin/Cards.js +1 -1
- package/esm/plugin/Carousel.js +1 -1
- package/esm/plugin/Chart.js +1 -1
- package/esm/plugin/CodeView.js +1 -1
- package/esm/plugin/Collapse.js +3 -4
- package/esm/plugin/CollapseGroup.js +4 -3
- package/esm/plugin/ColumnToggler.js +1 -1
- package/esm/plugin/Container.d.ts +4 -2
- package/esm/plugin/Container.js +20 -8
- package/esm/plugin/Custom.js +1 -1
- 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.js +1 -1
- package/esm/plugin/Divider.js +1 -1
- package/esm/plugin/Drawer.js +1 -1
- package/esm/plugin/DropDownButton.js +1 -1
- package/esm/plugin/Each.js +1 -1
- package/esm/plugin/Flex.js +1 -1
- package/esm/plugin/Form/ButtonGroupSelect.js +1 -1
- package/esm/plugin/Form/ButtonToolbar.js +5 -2
- package/esm/plugin/Form/ChainedSelect.js +1 -1
- package/esm/plugin/Form/Checkbox.js +1 -1
- package/esm/plugin/Form/Checkboxes.js +1 -1
- package/esm/plugin/Form/CodeEditor.js +1 -1
- package/esm/plugin/Form/Combo.js +19 -27
- package/esm/plugin/Form/ConditionBuilder.js +3 -4
- package/esm/plugin/Form/Control.js +1 -1
- package/esm/plugin/Form/DiffEditor.js +1 -1
- package/esm/plugin/Form/FieldSet.js +1 -1
- package/esm/plugin/Form/Form.js +8 -16
- 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 +4 -4
- package/esm/plugin/Form/InputColor.js +1 -1
- package/esm/plugin/Form/InputDate.js +1 -1
- package/esm/plugin/Form/InputDateRange.js +1 -1
- 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.d.ts +0 -4
- package/esm/plugin/Form/InputFile.js +6 -6
- package/esm/plugin/Form/InputGroup.js +1 -1
- package/esm/plugin/Form/InputImage.d.ts +0 -4
- package/esm/plugin/Form/InputImage.js +6 -6
- 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.js +3 -4
- 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.js +1 -1
- package/esm/plugin/Form/InputRating.js +3 -4
- package/esm/plugin/Form/InputRepeat.js +1 -1
- package/esm/plugin/Form/InputRichText.js +1 -1
- package/esm/plugin/Form/InputSubForm.js +1 -1
- package/esm/plugin/Form/InputTable.js +10 -10
- package/esm/plugin/Form/InputTag.js +1 -1
- package/esm/plugin/Form/InputText.js +2 -6
- package/esm/plugin/Form/InputTime.js +1 -1
- package/esm/plugin/Form/InputTimeRange.js +1 -1
- package/esm/plugin/Form/InputTree.d.ts +1 -13
- package/esm/plugin/Form/InputTree.js +31 -12
- 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 +1 -1
- package/esm/plugin/Form/ListSelect.js +1 -1
- package/esm/plugin/Form/LocationPicker.js +1 -1
- package/esm/plugin/Form/MatrixCheckboxes.js +1 -1
- package/esm/plugin/Form/NestedSelect.d.ts +1 -13
- package/esm/plugin/Form/NestedSelect.js +2 -7
- package/esm/plugin/Form/Picker.js +1 -1
- package/esm/plugin/Form/Radios.js +1 -1
- package/esm/plugin/Form/Select.js +1 -1
- package/esm/plugin/Form/Static.d.ts +1 -0
- package/esm/plugin/Form/Static.js +11 -5
- package/esm/plugin/Form/Switch.js +2 -10
- package/esm/plugin/Form/TabsTransfer.js +1 -1
- package/esm/plugin/Form/Textarea.js +1 -1
- package/esm/plugin/Form/Transfer.d.ts +1 -13
- package/esm/plugin/Form/Transfer.js +2 -7
- package/esm/plugin/Form/TreeSelect.d.ts +1 -13
- package/esm/plugin/Form/TreeSelect.js +29 -10
- package/esm/plugin/Form/UUID.js +1 -1
- package/esm/plugin/Grid.js +1 -1
- package/esm/plugin/HBox.js +1 -1
- package/esm/plugin/IFrame.js +1 -1
- package/esm/plugin/Image.js +7 -6
- package/esm/plugin/Images.js +8 -7
- package/esm/plugin/Json.js +2 -2
- package/esm/plugin/Layout/FlexPluginBase.d.ts +2 -2
- package/esm/plugin/Layout/FlexPluginBase.js +18 -11
- package/esm/plugin/Layout/Layout1_2_v4.js +1 -1
- 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 +12 -11
- package/esm/plugin/ListItem.d.ts +2 -2
- package/esm/plugin/ListItem.js +41 -71
- package/esm/plugin/Log.js +12 -12
- package/esm/plugin/Mapping.js +12 -12
- package/esm/plugin/Markdown.js +1 -1
- package/esm/plugin/Nav.js +1 -1
- package/esm/plugin/Operation.js +1 -1
- package/esm/plugin/Others/Action.js +1 -1
- package/esm/plugin/Others/TableCell.js +5 -10
- package/esm/plugin/Page.js +1 -1
- package/esm/plugin/Pagination.js +1 -1
- package/esm/plugin/Panel.js +1 -1
- package/esm/plugin/Plain.js +4 -5
- package/esm/plugin/Progress.js +1 -1
- package/esm/plugin/Property.js +3 -19
- package/esm/plugin/QRCode.js +1 -1
- package/esm/plugin/Reset.js +1 -1
- package/esm/plugin/Service.js +2 -10
- package/esm/plugin/Sparkline.js +1 -1
- 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.js +14 -17
- package/esm/plugin/Table2.js +2 -3
- package/esm/plugin/TableCell2.js +1 -1
- package/esm/plugin/TableView.js +1 -1
- package/esm/plugin/Tabs.js +4 -3
- package/esm/plugin/Tag.js +6 -6
- package/esm/plugin/Tasks.js +1 -1
- package/esm/plugin/Time.js +1 -1
- package/esm/plugin/Timeline.js +1 -1
- 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 +4 -3
- package/esm/plugin/Wrapper.d.ts +2 -2
- package/esm/plugin/Wrapper.js +18 -33
- package/esm/renderer/APIControl.d.ts +0 -78
- package/esm/renderer/APIControl.js +1 -1
- package/esm/renderer/BadgeControl.js +4 -3
- package/esm/renderer/DataBindingControl.js +1 -1
- 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 +3 -0
- package/esm/renderer/ExpressionFormulaControl.js +49 -2
- package/esm/renderer/FeatureControl.js +1 -1
- package/esm/renderer/FormulaControl.d.ts +3 -0
- package/esm/renderer/FormulaControl.js +54 -3
- package/esm/renderer/GoConfigControl.js +1 -1
- package/esm/renderer/MapSourceControl.js +7 -7
- package/esm/renderer/OptionControl.js +13 -11
- package/esm/renderer/RangePartsControl.js +1 -1
- package/esm/renderer/StatusControl.js +1 -1
- package/esm/renderer/SwitchMoreControl.d.ts +2 -2
- package/esm/renderer/SwitchMoreControl.js +1 -1
- package/esm/renderer/TimelineItemControl.js +15 -11
- package/esm/renderer/TransferTableControl.js +1 -1
- package/esm/renderer/TreeOptionControl.js +14 -9
- package/esm/renderer/ValidationControl.js +1 -1
- package/esm/renderer/ValidationItem.js +3 -4
- package/esm/renderer/event-control/action-config-dialog.js +1 -1
- package/esm/renderer/event-control/action-config-panel.js +1 -1
- package/esm/renderer/event-control/comp-action-select.js +1 -1
- package/esm/renderer/event-control/helper.js +19 -30
- package/esm/renderer/event-control/index.d.ts +4 -0
- package/esm/renderer/event-control/index.js +35 -2
- package/esm/renderer/style-control/Background.js +5 -2
- 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 +5 -24
- package/esm/renderer/style-control/InsetBoxModel.js +1 -1
- package/esm/renderer/style-control/ThemeClassName.js +1 -1
- package/esm/renderer/style-control/font-family.js +1 -1
- package/esm/renderer/style-control/transformation.js +1 -1
- package/esm/renderer/textarea-formula/FormulaPicker.js +1 -1
- package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +3 -0
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +49 -2
- package/esm/renderer/textarea-formula/plugin.js +1 -1
- package/esm/renderer/textarea-formula/utils.d.ts +1 -1
- package/esm/renderer/textarea-formula/utils.js +6 -1
- package/esm/tpl/api.js +1 -1
- package/esm/tpl/common.js +65 -1
- package/esm/tpl/horizontal.js +1 -1
- package/esm/tpl/layout.js +71 -3
- package/esm/tpl/options.js +85 -86
- package/esm/tpl/style.js +1 -1
- package/esm/tpl/validations.js +4 -3
- package/esm/util.js +1 -1
- package/esm/validator.js +1 -1
- package/lib/component/BaseControl.d.ts +12 -4
- package/lib/component/BaseControl.js +1 -1
- package/lib/component/InputComponentName.js +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/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.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/divider.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/index.js +1 -1
- package/lib/locale/en-US.js +69 -2
- package/lib/locale/zh-CN.js +73 -2
- package/lib/plugin/Alert.js +1 -1
- package/lib/plugin/AnchorNav.js +7 -8
- 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 +4 -1
- package/lib/plugin/CRUD.js +2 -2
- package/lib/plugin/CRUD2.js +1 -1
- package/lib/plugin/Card.js +1 -1
- package/lib/plugin/Card2.js +1 -1
- package/lib/plugin/Cards.js +1 -1
- package/lib/plugin/Carousel.js +1 -1
- package/lib/plugin/Chart.js +1 -1
- package/lib/plugin/CodeView.js +1 -1
- package/lib/plugin/Collapse.js +2 -3
- package/lib/plugin/CollapseGroup.js +3 -2
- package/lib/plugin/ColumnToggler.js +1 -1
- package/lib/plugin/Container.d.ts +4 -2
- package/lib/plugin/Container.js +19 -7
- package/lib/plugin/Custom.js +1 -1
- 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.js +1 -1
- package/lib/plugin/Divider.js +1 -1
- package/lib/plugin/Drawer.js +1 -1
- package/lib/plugin/DropDownButton.js +1 -1
- package/lib/plugin/Each.js +1 -1
- package/lib/plugin/Flex.js +1 -1
- package/lib/plugin/Form/ButtonGroupSelect.js +1 -1
- package/lib/plugin/Form/ButtonToolbar.js +4 -1
- package/lib/plugin/Form/ChainedSelect.js +1 -1
- package/lib/plugin/Form/Checkbox.js +1 -1
- package/lib/plugin/Form/Checkboxes.js +1 -1
- package/lib/plugin/Form/CodeEditor.js +1 -1
- package/lib/plugin/Form/Combo.js +18 -26
- package/lib/plugin/Form/ConditionBuilder.js +2 -3
- package/lib/plugin/Form/Control.js +1 -1
- package/lib/plugin/Form/DiffEditor.js +1 -1
- package/lib/plugin/Form/FieldSet.js +1 -1
- package/lib/plugin/Form/Form.js +7 -15
- 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 +4 -4
- package/lib/plugin/Form/InputColor.js +1 -1
- package/lib/plugin/Form/InputDate.js +1 -1
- package/lib/plugin/Form/InputDateRange.js +1 -1
- 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.d.ts +0 -4
- package/lib/plugin/Form/InputFile.js +6 -6
- package/lib/plugin/Form/InputGroup.d.ts +1 -0
- package/lib/plugin/Form/InputGroup.js +1 -1
- package/lib/plugin/Form/InputImage.d.ts +0 -4
- package/lib/plugin/Form/InputImage.js +6 -6
- 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.js +2 -3
- 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.js +1 -1
- package/lib/plugin/Form/InputRating.js +2 -3
- package/lib/plugin/Form/InputRepeat.js +1 -1
- package/lib/plugin/Form/InputRichText.js +1 -1
- package/lib/plugin/Form/InputSubForm.js +1 -1
- package/lib/plugin/Form/InputTable.js +9 -9
- package/lib/plugin/Form/InputTag.js +1 -1
- package/lib/plugin/Form/InputText.js +2 -6
- package/lib/plugin/Form/InputTime.js +1 -1
- package/lib/plugin/Form/InputTimeRange.js +1 -1
- package/lib/plugin/Form/InputTree.d.ts +1 -13
- package/lib/plugin/Form/InputTree.js +31 -11
- 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 +1 -1
- package/lib/plugin/Form/ListSelect.js +1 -1
- package/lib/plugin/Form/LocationPicker.js +1 -1
- package/lib/plugin/Form/MatrixCheckboxes.js +1 -1
- package/lib/plugin/Form/NestedSelect.d.ts +1 -13
- package/lib/plugin/Form/NestedSelect.js +2 -7
- package/lib/plugin/Form/Picker.js +1 -1
- package/lib/plugin/Form/Radios.js +1 -1
- package/lib/plugin/Form/Select.js +1 -1
- package/lib/plugin/Form/Static.d.ts +1 -0
- package/lib/plugin/Form/Static.js +11 -5
- package/lib/plugin/Form/Switch.js +2 -10
- package/lib/plugin/Form/TabsTransfer.js +1 -1
- package/lib/plugin/Form/Textarea.js +1 -1
- package/lib/plugin/Form/Transfer.d.ts +1 -13
- package/lib/plugin/Form/Transfer.js +2 -7
- package/lib/plugin/Form/TreeSelect.d.ts +1 -13
- package/lib/plugin/Form/TreeSelect.js +32 -9
- package/lib/plugin/Form/UUID.js +1 -1
- package/lib/plugin/Grid.js +1 -1
- package/lib/plugin/HBox.js +1 -1
- package/lib/plugin/IFrame.js +1 -1
- package/lib/plugin/Image.js +6 -5
- package/lib/plugin/Images.js +7 -6
- package/lib/plugin/Json.js +2 -2
- package/lib/plugin/Layout/FlexPluginBase.d.ts +2 -2
- package/lib/plugin/Layout/FlexPluginBase.js +17 -10
- package/lib/plugin/Layout/Layout1_2_v4.js +1 -1
- 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 +11 -10
- package/lib/plugin/ListItem.d.ts +2 -2
- package/lib/plugin/ListItem.js +40 -70
- package/lib/plugin/Log.js +12 -12
- package/lib/plugin/Mapping.js +12 -12
- package/lib/plugin/Markdown.js +1 -1
- package/lib/plugin/Nav.js +1 -1
- package/lib/plugin/Operation.js +1 -1
- package/lib/plugin/Others/Action.js +1 -1
- package/lib/plugin/Others/TableCell.js +4 -9
- package/lib/plugin/Page.js +1 -1
- package/lib/plugin/Pagination.js +1 -1
- package/lib/plugin/Panel.js +1 -1
- package/lib/plugin/Plain.js +4 -5
- package/lib/plugin/Progress.js +1 -1
- package/lib/plugin/Property.js +3 -19
- package/lib/plugin/QRCode.js +1 -1
- package/lib/plugin/Reset.js +1 -1
- package/lib/plugin/Service.js +2 -10
- package/lib/plugin/Sparkline.js +1 -1
- 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.js +14 -17
- package/lib/plugin/Table2.js +2 -3
- package/lib/plugin/TableCell2.js +1 -1
- package/lib/plugin/TableView.js +1 -1
- package/lib/plugin/Tabs.js +3 -2
- package/lib/plugin/Tag.js +6 -6
- package/lib/plugin/Tasks.js +1 -1
- package/lib/plugin/Time.js +1 -1
- package/lib/plugin/Timeline.js +1 -1
- 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 +3 -2
- package/lib/plugin/Wrapper.d.ts +2 -2
- package/lib/plugin/Wrapper.js +17 -32
- package/lib/renderer/APIControl.js +1 -1
- package/lib/renderer/BadgeControl.js +3 -2
- package/lib/renderer/DataBindingControl.js +1 -1
- 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 +3 -0
- package/lib/renderer/ExpressionFormulaControl.js +49 -2
- package/lib/renderer/FeatureControl.js +1 -1
- package/lib/renderer/FormulaControl.d.ts +3 -0
- package/lib/renderer/FormulaControl.js +53 -2
- package/lib/renderer/GoConfigControl.js +1 -1
- package/lib/renderer/MapSourceControl.js +7 -7
- package/lib/renderer/OptionControl.js +8 -6
- package/lib/renderer/RangePartsControl.js +1 -1
- package/lib/renderer/StatusControl.js +1 -1
- package/lib/renderer/SwitchMoreControl.js +1 -1
- package/lib/renderer/TimelineItemControl.js +13 -9
- package/lib/renderer/TransferTableControl.js +1 -1
- package/lib/renderer/TreeOptionControl.js +10 -5
- package/lib/renderer/ValidationControl.js +1 -1
- package/lib/renderer/ValidationItem.js +2 -3
- package/lib/renderer/event-control/action-config-dialog.js +1 -1
- package/lib/renderer/event-control/action-config-panel.js +1 -1
- package/lib/renderer/event-control/comp-action-select.js +1 -1
- package/lib/renderer/event-control/helper.js +18 -29
- package/lib/renderer/event-control/index.d.ts +4 -0
- package/lib/renderer/event-control/index.js +35 -2
- package/lib/renderer/style-control/Background.js +5 -2
- 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 +5 -24
- package/lib/renderer/style-control/InsetBoxModel.js +1 -1
- package/lib/renderer/style-control/ThemeClassName.js +1 -1
- package/lib/renderer/style-control/font-family.js +1 -1
- package/lib/renderer/style-control/transformation.js +1 -1
- package/lib/renderer/textarea-formula/FormulaPicker.js +1 -1
- package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +3 -0
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +49 -2
- package/lib/renderer/textarea-formula/plugin.js +1 -1
- package/lib/renderer/textarea-formula/utils.d.ts +1 -1
- package/lib/renderer/textarea-formula/utils.js +6 -1
- package/lib/tpl/api.js +1 -1
- package/lib/tpl/common.js +65 -1
- package/lib/tpl/horizontal.js +1 -1
- package/lib/tpl/layout.js +70 -2
- package/lib/tpl/options.js +84 -85
- package/lib/tpl/style.js +1 -1
- package/lib/tpl/validations.js +3 -2
- package/lib/util.js +1 -1
- package/lib/validator.js +1 -1
- package/package.json +16 -2
@@ -1,11 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.4-beta.30
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
6
6
|
import { __extends, __assign } from 'tslib';
|
7
7
|
import React__default from 'react';
|
8
|
-
import { getSchemaTpl, defaultValue, tipedLabel, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
8
|
+
import { getSchemaTpl, getI18nEnabled, defaultValue, tipedLabel, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
9
|
+
import cloneDeep from 'lodash/cloneDeep';
|
9
10
|
import { getArgsWrapper, getEventControlConfig } from '../../renderer/event-control/helper.js';
|
10
11
|
import { ValidatorTag } from '../../validator.js';
|
11
12
|
import { i18n } from 'i18n-runtime';
|
@@ -56,13 +57,13 @@ var TreeControlPlugin = /** @class */function (_super) {
|
|
56
57
|
enumerable: true,
|
57
58
|
configurable: true,
|
58
59
|
writable: true,
|
59
|
-
value:
|
60
|
+
value: i18n("912beb37a3785e50d6483852be41111f")
|
60
61
|
});
|
61
62
|
Object.defineProperty(_this, "searchKeywords", {
|
62
63
|
enumerable: true,
|
63
64
|
configurable: true,
|
64
65
|
writable: true,
|
65
|
-
value:
|
66
|
+
value: i18n("0b52d7d00ed28e41f4845fec1622d056")
|
66
67
|
});
|
67
68
|
Object.defineProperty(_this, "docLink", {
|
68
69
|
enumerable: true,
|
@@ -110,7 +111,7 @@ var TreeControlPlugin = /** @class */function (_super) {
|
|
110
111
|
mode: 'horizontal',
|
111
112
|
wrapWithPanel: false,
|
112
113
|
body: [__assign(__assign({}, _this.scaffold), {
|
113
|
-
label:
|
114
|
+
label: i18n("ea687c59ff7d980afc55427853af864a"),
|
114
115
|
mode: 'normal'
|
115
116
|
})]
|
116
117
|
}
|
@@ -287,12 +288,7 @@ var TreeControlPlugin = /** @class */function (_super) {
|
|
287
288
|
},
|
288
289
|
items: [{
|
289
290
|
type: 'group',
|
290
|
-
body: [{
|
291
|
-
type: 'input-text',
|
292
|
-
name: 'label',
|
293
|
-
placeholder: i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),
|
294
|
-
required: true
|
295
|
-
}, {
|
291
|
+
body: [getSchemaTpl('optionsLabel'), {
|
296
292
|
type: 'input-text',
|
297
293
|
name: 'value',
|
298
294
|
placeholder: i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),
|
@@ -319,6 +315,7 @@ var TreeControlPlugin = /** @class */function (_super) {
|
|
319
315
|
writable: true,
|
320
316
|
value: function (context) {
|
321
317
|
var renderer = context.info.renderer;
|
318
|
+
var i18nEnabled = getI18nEnabled();
|
322
319
|
return getSchemaTpl('tabs', [{
|
323
320
|
title: i18n("24d67862f87f439db7ca957aecb77cce"),
|
324
321
|
body: getSchemaTpl('collapseGroup', [{
|
@@ -332,6 +329,28 @@ var TreeControlPlugin = /** @class */function (_super) {
|
|
332
329
|
name: 'type',
|
333
330
|
label: i18n("f0789e79d48f135e5d870753f7a85d05"),
|
334
331
|
pipeIn: defaultValue('input-tree'),
|
332
|
+
onChange: function (value, oldValue, model, form) {
|
333
|
+
var activeEvent = cloneDeep(form.getValueByName('onEvent') || {});
|
334
|
+
var eventList = _this.events;
|
335
|
+
if (value === 'tree-select') {
|
336
|
+
var treeSelectPlugin = _this.manager.plugins.find(function (item) {
|
337
|
+
return item.rendererName === 'tree-select';
|
338
|
+
});
|
339
|
+
eventList = (treeSelectPlugin === null || treeSelectPlugin === void 0 ? void 0 : treeSelectPlugin.events) || [];
|
340
|
+
}
|
341
|
+
var _loop_1 = function (key) {
|
342
|
+
var hasEventKey = eventList.find(function (event) {
|
343
|
+
return event.eventName === key;
|
344
|
+
});
|
345
|
+
if (!hasEventKey) {
|
346
|
+
delete activeEvent[key];
|
347
|
+
}
|
348
|
+
};
|
349
|
+
for (var key in activeEvent) {
|
350
|
+
_loop_1(key);
|
351
|
+
}
|
352
|
+
form.setValueByName('onEvent', activeEvent);
|
353
|
+
},
|
335
354
|
options: [{
|
336
355
|
label: i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),
|
337
356
|
value: 'input-tree'
|
@@ -459,7 +478,7 @@ var TreeControlPlugin = /** @class */function (_super) {
|
|
459
478
|
formType: 'extend',
|
460
479
|
form: {
|
461
480
|
body: [{
|
462
|
-
type: 'input-text',
|
481
|
+
type: i18nEnabled ? 'input-text-i18n' : 'input-text',
|
463
482
|
label: i18n("e2c310a329c2cf62a0764fc912f2f583"),
|
464
483
|
value: i18n("c48d9f48ce8a798772f17d1f47560529"),
|
465
484
|
name: 'rootLabel'
|
package/esm/plugin/Form/Item.js
CHANGED
@@ -46,19 +46,7 @@ export declare class NestedSelectControlPlugin extends BasePlugin {
|
|
46
46
|
};
|
47
47
|
items: ({
|
48
48
|
type: string;
|
49
|
-
body:
|
50
|
-
type: string;
|
51
|
-
name: string;
|
52
|
-
placeholder: string;
|
53
|
-
required: boolean;
|
54
|
-
unique?: undefined;
|
55
|
-
} | {
|
56
|
-
type: string;
|
57
|
-
name: string;
|
58
|
-
placeholder: string;
|
59
|
-
unique: boolean;
|
60
|
-
required?: undefined;
|
61
|
-
})[];
|
49
|
+
body: any[];
|
62
50
|
$ref?: undefined;
|
63
51
|
label?: undefined;
|
64
52
|
name?: undefined;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.4-beta.30
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -147,12 +147,7 @@ var NestedSelectControlPlugin = /** @class */function (_super) {
|
|
147
147
|
},
|
148
148
|
items: [{
|
149
149
|
type: 'group',
|
150
|
-
body: [{
|
151
|
-
type: 'input-text',
|
152
|
-
name: 'label',
|
153
|
-
placeholder: i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),
|
154
|
-
required: true
|
155
|
-
}, {
|
150
|
+
body: [getSchemaTpl('optionsLabel'), {
|
156
151
|
type: 'input-text',
|
157
152
|
name: 'value',
|
158
153
|
placeholder: i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.4-beta.30
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -23,7 +23,7 @@ setSchemaTpl('quickEdit', {
|
|
23
23
|
},
|
24
24
|
form: {
|
25
25
|
body: [{
|
26
|
-
label:
|
26
|
+
label: i18n("ce0e89aa6a8e17562c265714b33b4f82"),
|
27
27
|
name: 'quickEdit.mode',
|
28
28
|
type: 'button-group-select',
|
29
29
|
inputClassName: 'items-center',
|
@@ -47,7 +47,7 @@ setSchemaTpl('quickEdit', {
|
|
47
47
|
name: 'quickEdit.saveImmediately.api',
|
48
48
|
label: i18n("ff7cc75cc43c25c823d05d87cb8190b0"),
|
49
49
|
mode: 'row',
|
50
|
-
description:
|
50
|
+
description: i18n("ba1a077af717cb3c4788849c2342200b"),
|
51
51
|
visibleOn: 'this.quickEdit && this.quickEdit.saveImmediately'
|
52
52
|
}), {
|
53
53
|
name: 'quickEdit',
|
@@ -244,7 +244,13 @@ var StaticControlPlugin = /** @class */function (_super) {
|
|
244
244
|
enumerable: true,
|
245
245
|
configurable: true,
|
246
246
|
writable: true,
|
247
|
-
value:
|
247
|
+
value: true
|
248
|
+
});
|
249
|
+
Object.defineProperty(_this, "disabledRendererPlugin", {
|
250
|
+
enumerable: true,
|
251
|
+
configurable: true,
|
252
|
+
writable: true,
|
253
|
+
value: true
|
248
254
|
});
|
249
255
|
Object.defineProperty(_this, "icon", {
|
250
256
|
enumerable: true,
|
@@ -338,7 +344,7 @@ var StaticControlPlugin = /** @class */function (_super) {
|
|
338
344
|
inline: false,
|
339
345
|
level: 'warning',
|
340
346
|
className: 'text-sm',
|
341
|
-
body:
|
347
|
+
body: i18n("cf8774ca07f11ecb14b3b59c3891e9cc")
|
342
348
|
}, getSchemaTpl('formItemName', {
|
343
349
|
required: false
|
344
350
|
}), getSchemaTpl('label')
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.4-beta.30
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -170,15 +170,7 @@ var SwitchControlPlugin = /** @class */function (_super) {
|
|
170
170
|
label: i18n("7e1eec8349c4998d142960009305f27a"),
|
171
171
|
formType: 'extend',
|
172
172
|
form: {
|
173
|
-
body: [
|
174
|
-
name: 'onText',
|
175
|
-
type: 'input-text',
|
176
|
-
label: i18n("c580bacf343343f04a1b551e46d02c4f")
|
177
|
-
}, {
|
178
|
-
name: 'offText',
|
179
|
-
type: 'input-text',
|
180
|
-
label: i18n("9ff352ae39cdaeaa4fc54f83575eedc9")
|
181
|
-
}]
|
173
|
+
body: [getSchemaTpl('onText'), getSchemaTpl('offText')]
|
182
174
|
}
|
183
175
|
}, {
|
184
176
|
type: 'ae-switch-more',
|
@@ -40,19 +40,7 @@ export declare class TransferPlugin extends BasePlugin {
|
|
40
40
|
};
|
41
41
|
items: ({
|
42
42
|
type: string;
|
43
|
-
body:
|
44
|
-
type: string;
|
45
|
-
name: string;
|
46
|
-
placeholder: string;
|
47
|
-
required: boolean;
|
48
|
-
unique?: undefined;
|
49
|
-
} | {
|
50
|
-
type: string;
|
51
|
-
name: string;
|
52
|
-
placeholder: string;
|
53
|
-
unique: boolean;
|
54
|
-
required?: undefined;
|
55
|
-
})[];
|
43
|
+
body: any[];
|
56
44
|
$ref?: undefined;
|
57
45
|
label?: undefined;
|
58
46
|
name?: undefined;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.4-beta.30
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -184,12 +184,7 @@ var TransferPlugin = /** @class */function (_super) {
|
|
184
184
|
},
|
185
185
|
items: [{
|
186
186
|
type: 'group',
|
187
|
-
body: [{
|
188
|
-
type: 'input-text',
|
189
|
-
name: 'label',
|
190
|
-
placeholder: i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),
|
191
|
-
required: true
|
192
|
-
}, {
|
187
|
+
body: [getSchemaTpl('optionsLabel'), {
|
193
188
|
type: 'input-text',
|
194
189
|
name: 'value',
|
195
190
|
placeholder: i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),
|
@@ -49,19 +49,7 @@ export declare class TreeSelectControlPlugin extends BasePlugin {
|
|
49
49
|
};
|
50
50
|
items: ({
|
51
51
|
type: string;
|
52
|
-
body:
|
53
|
-
type: string;
|
54
|
-
name: string;
|
55
|
-
placeholder: string;
|
56
|
-
required: boolean;
|
57
|
-
unique?: undefined;
|
58
|
-
} | {
|
59
|
-
type: string;
|
60
|
-
name: string;
|
61
|
-
placeholder: string;
|
62
|
-
unique: boolean;
|
63
|
-
required?: undefined;
|
64
|
-
})[];
|
52
|
+
body: any[];
|
65
53
|
$ref?: undefined;
|
66
54
|
label?: undefined;
|
67
55
|
name?: undefined;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.4-beta.30
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
6
6
|
import { __extends, __assign } from 'tslib';
|
7
|
-
import { getSchemaTpl, defaultValue, tipedLabel, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
7
|
+
import { getSchemaTpl, getI18nEnabled, defaultValue, tipedLabel, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
8
|
+
import cloneDeep from 'lodash/cloneDeep';
|
8
9
|
import { getEventControlConfig } from '../../renderer/event-control/helper.js';
|
9
10
|
import { ValidatorTag } from '../../validator.js';
|
10
11
|
import { i18n } from 'i18n-runtime';
|
@@ -61,7 +62,7 @@ var TreeSelectControlPlugin = /** @class */function (_super) {
|
|
61
62
|
enumerable: true,
|
62
63
|
configurable: true,
|
63
64
|
writable: true,
|
64
|
-
value:
|
65
|
+
value: i18n("912beb37a3785e50d6483852be41111f")
|
65
66
|
});
|
66
67
|
Object.defineProperty(_this, "docLink", {
|
67
68
|
enumerable: true,
|
@@ -272,12 +273,7 @@ var TreeSelectControlPlugin = /** @class */function (_super) {
|
|
272
273
|
},
|
273
274
|
items: [{
|
274
275
|
type: 'group',
|
275
|
-
body: [{
|
276
|
-
type: 'input-text',
|
277
|
-
name: 'label',
|
278
|
-
placeholder: i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),
|
279
|
-
required: true
|
280
|
-
}, {
|
276
|
+
body: [getSchemaTpl('optionsLabel'), {
|
281
277
|
type: 'input-text',
|
282
278
|
name: 'value',
|
283
279
|
placeholder: i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),
|
@@ -304,6 +300,7 @@ var TreeSelectControlPlugin = /** @class */function (_super) {
|
|
304
300
|
writable: true,
|
305
301
|
value: function (context) {
|
306
302
|
var renderer = context.info.renderer;
|
303
|
+
var i18nEnabled = getI18nEnabled();
|
307
304
|
return getSchemaTpl('tabs', [{
|
308
305
|
title: i18n("24d67862f87f439db7ca957aecb77cce"),
|
309
306
|
body: getSchemaTpl('collapseGroup', [{
|
@@ -317,6 +314,28 @@ var TreeSelectControlPlugin = /** @class */function (_super) {
|
|
317
314
|
name: 'type',
|
318
315
|
label: i18n("f0789e79d48f135e5d870753f7a85d05"),
|
319
316
|
pipeIn: defaultValue('tree-select'),
|
317
|
+
onChange: function (value, oldValue, model, form) {
|
318
|
+
var activeEvent = cloneDeep(form.getValueByName('onEvent') || {});
|
319
|
+
var eventList = _this.events;
|
320
|
+
if (value === 'input-tree') {
|
321
|
+
var inputTreePlugin = _this.manager.plugins.find(function (item) {
|
322
|
+
return item.rendererName === 'input-tree';
|
323
|
+
});
|
324
|
+
eventList = (inputTreePlugin === null || inputTreePlugin === void 0 ? void 0 : inputTreePlugin.events) || [];
|
325
|
+
}
|
326
|
+
var _loop_1 = function (key) {
|
327
|
+
var hasEventKey = eventList.find(function (event) {
|
328
|
+
return event.eventName === key;
|
329
|
+
});
|
330
|
+
if (!hasEventKey) {
|
331
|
+
delete activeEvent[key];
|
332
|
+
}
|
333
|
+
};
|
334
|
+
for (var key in activeEvent) {
|
335
|
+
_loop_1(key);
|
336
|
+
}
|
337
|
+
form.setValueByName('onEvent', activeEvent);
|
338
|
+
},
|
320
339
|
options: [{
|
321
340
|
label: i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),
|
322
341
|
value: 'input-tree'
|
@@ -444,7 +463,7 @@ var TreeSelectControlPlugin = /** @class */function (_super) {
|
|
444
463
|
formType: 'extend',
|
445
464
|
form: {
|
446
465
|
body: [{
|
447
|
-
type: 'input-text',
|
466
|
+
type: i18nEnabled ? 'input-text-i18n' : 'input-text',
|
448
467
|
label: i18n("e2c310a329c2cf62a0764fc912f2f583"),
|
449
468
|
value: i18n("c48d9f48ce8a798772f17d1f47560529"),
|
450
469
|
name: 'rootLabel'
|
package/esm/plugin/Form/UUID.js
CHANGED
package/esm/plugin/Grid.js
CHANGED
package/esm/plugin/HBox.js
CHANGED
package/esm/plugin/IFrame.js
CHANGED
package/esm/plugin/Image.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.4-beta.30
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
6
6
|
import { __extends, __assign } from 'tslib';
|
7
|
-
import { mockValue, getSchemaTpl, defaultValue, tipedLabel, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
7
|
+
import { mockValue, getI18nEnabled, getSchemaTpl, defaultValue, tipedLabel, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
8
8
|
import { i18n } from 'i18n-runtime';
|
9
9
|
|
10
10
|
var ImagePlugin = /** @class */function (_super) {
|
@@ -98,17 +98,18 @@ var ImagePlugin = /** @class */function (_super) {
|
|
98
98
|
writable: true,
|
99
99
|
value: function (context) {
|
100
100
|
var isUnderField = /\/field\/\w+$/.test(context.path);
|
101
|
+
var i18nEnabled = getI18nEnabled();
|
101
102
|
return getSchemaTpl('tabs', [{
|
102
103
|
title: i18n("24d67862f87f439db7ca957aecb77cce"),
|
103
104
|
body: getSchemaTpl('collapseGroup', [{
|
104
105
|
title: i18n("4092ed98e9035652d4c9ca9441701ed7"),
|
105
106
|
body: [{
|
106
107
|
name: 'title',
|
107
|
-
type: 'input-text',
|
108
|
+
type: i18nEnabled ? 'input-text-i18n' : 'input-text',
|
108
109
|
label: i18n("c6c7456d446d62a906c2809b6ba19ce1")
|
109
110
|
}, {
|
110
111
|
name: 'imageCaption',
|
111
|
-
type: 'input-text',
|
112
|
+
type: i18nEnabled ? 'input-text-i18n' : 'input-text',
|
112
113
|
label: i18n("098c3d959911b48b4d912cb85ccc4942")
|
113
114
|
}, {
|
114
115
|
name: 'imageMode',
|
@@ -139,7 +140,7 @@ var ImagePlugin = /** @class */function (_super) {
|
|
139
140
|
type: 'ae-switch-more',
|
140
141
|
mode: 'normal',
|
141
142
|
name: 'enlargeAble',
|
142
|
-
label: tipedLabel(
|
143
|
+
label: tipedLabel(i18n("26122d95c72204c83ebdc37cd16a96f9"), i18n("a19769d02b8de60a1e3b46c3ef96f122")),
|
143
144
|
value: false,
|
144
145
|
hiddenOnDefault: false,
|
145
146
|
formType: 'extend',
|
@@ -161,7 +162,7 @@ var ImagePlugin = /** @class */function (_super) {
|
|
161
162
|
clearValueOnHidden: true
|
162
163
|
}, getSchemaTpl('imageUrl', {
|
163
164
|
name: 'defaultImage',
|
164
|
-
label: tipedLabel(
|
165
|
+
label: tipedLabel(i18n("d196eb8f65e84003b7ca64d5dd8fc737"), i18n("f5865bf2d791d293374af4aa76d27c4d"))
|
165
166
|
})]
|
166
167
|
}, getSchemaTpl('status')])
|
167
168
|
}, {
|
package/esm/plugin/Images.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.4-beta.30
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
6
6
|
import { __extends, __assign } from 'tslib';
|
7
|
-
import { mockValue, getSchemaTpl, tipedLabel, defaultValue, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
7
|
+
import { mockValue, getI18nEnabled, getSchemaTpl, tipedLabel, defaultValue, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
8
8
|
import { i18n } from 'i18n-runtime';
|
9
9
|
|
10
10
|
var ImagesPlugin = /** @class */function (_super) {
|
@@ -113,6 +113,7 @@ var ImagesPlugin = /** @class */function (_super) {
|
|
113
113
|
writable: true,
|
114
114
|
value: function (context) {
|
115
115
|
var isUnderField = /\/field\/\w+$/.test(context.path);
|
116
|
+
var i18nEnabled = getI18nEnabled();
|
116
117
|
return getSchemaTpl('tabs', [{
|
117
118
|
title: i18n("24d67862f87f439db7ca957aecb77cce"),
|
118
119
|
body: getSchemaTpl('collapseGroup', [{
|
@@ -163,20 +164,20 @@ var ImagesPlugin = /** @class */function (_super) {
|
|
163
164
|
name: 'src',
|
164
165
|
label: i18n("fb43d5ffa21f3c4055c29fad350f27e4")
|
165
166
|
}), {
|
166
|
-
type: 'input-text',
|
167
|
+
type: i18nEnabled ? 'input-text-i18n' : 'input-text',
|
167
168
|
label: i18n("c6c7456d446d62a906c2809b6ba19ce1"),
|
168
169
|
name: 'title'
|
169
170
|
}, {
|
170
|
-
type: 'textarea',
|
171
|
+
type: i18nEnabled ? 'textarea-i18n' : 'textarea',
|
171
172
|
label: i18n("098c3d959911b48b4d912cb85ccc4942"),
|
172
173
|
name: 'caption'
|
173
174
|
}]
|
174
175
|
}, getSchemaTpl('switch', {
|
175
176
|
name: 'enlargeAble',
|
176
|
-
label:
|
177
|
+
label: i18n("26122d95c72204c83ebdc37cd16a96f9")
|
177
178
|
})]).concat([getSchemaTpl('imageUrl', {
|
178
179
|
name: 'defaultImage',
|
179
|
-
label: tipedLabel(
|
180
|
+
label: tipedLabel(i18n("d196eb8f65e84003b7ca64d5dd8fc737"), i18n("f5865bf2d791d293374af4aa76d27c4d"))
|
180
181
|
})])
|
181
182
|
}, getSchemaTpl('status')])
|
182
183
|
}, {
|
@@ -237,7 +238,7 @@ var ImagesPlugin = /** @class */function (_super) {
|
|
237
238
|
label: i18n("5e5d3f13111593b2710673006d4c8297")
|
238
239
|
}), getSchemaTpl('className', {
|
239
240
|
name: 'listClassName',
|
240
|
-
label:
|
241
|
+
label: i18n("d98b3f3d11e6dce8eac1a041247fbc50")
|
241
242
|
})]
|
242
243
|
}])
|
243
244
|
}]);
|
package/esm/plugin/Json.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.4-beta.30
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -115,7 +115,7 @@ var JsonPlugin = /** @class */function (_super) {
|
|
115
115
|
type: 'tpl',
|
116
116
|
inline: false,
|
117
117
|
className: 'text-info text-sm',
|
118
|
-
tpl:
|
118
|
+
tpl: i18n("8e1fee898434093aad55f5888497f970")
|
119
119
|
} : null, {
|
120
120
|
name: 'levelExpand',
|
121
121
|
type: 'input-number',
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @file Flex 常见布局 1:3
|
3
3
|
*/
|
4
|
-
import {
|
4
|
+
import { LayoutBasePlugin, PluginEvent } from 'amis-editor-core';
|
5
5
|
import type { BaseEventContext, RegionConfig, RendererJSONSchemaResolveEventContext, BasicToolbarItem } from 'amis-editor-core';
|
6
6
|
export declare const defaultFlexColumnSchema: (title?: string) => {
|
7
7
|
type: string;
|
@@ -18,7 +18,7 @@ export declare const defaultFlexColumnSchema: (title?: string) => {
|
|
18
18
|
isFixedHeight: boolean;
|
19
19
|
isFixedWidth: boolean;
|
20
20
|
};
|
21
|
-
export declare class FlexPluginBase extends
|
21
|
+
export declare class FlexPluginBase extends LayoutBasePlugin {
|
22
22
|
rendererName: string;
|
23
23
|
$schema: string;
|
24
24
|
disabledRendererPlugin: boolean;
|