amis-editor 5.2.3-beta.16 → 5.2.4-beta.28
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.d.ts +11 -0
- package/esm/index.js +12 -1
- package/esm/locale/en-US.js +78 -2
- package/esm/locale/zh-CN.js +82 -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 +44 -13
- 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 +15 -3
- 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.d.ts +1 -0
- package/esm/plugin/Date.js +32 -33
- package/esm/plugin/Datetime.d.ts +1 -0
- package/esm/plugin/Datetime.js +32 -33
- 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.d.ts +14 -6
- package/esm/plugin/Form/Combo.js +345 -374
- 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.d.ts +1 -0
- package/esm/plugin/Form/Formula.js +7 -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.d.ts +3 -0
- package/esm/plugin/Form/InputCity.js +40 -10
- package/esm/plugin/Form/InputColor.js +1 -1
- package/esm/plugin/Form/InputDate.js +2 -2
- 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.d.ts +0 -4
- package/esm/plugin/Form/InputFile.js +6 -6
- package/esm/plugin/Form/InputGroup.d.ts +12 -2
- package/esm/plugin/Form/InputGroup.js +56 -42
- 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 +32 -3
- 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 +23 -3
- 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 +62 -15
- package/esm/plugin/Form/InputTime.js +1 -1
- package/esm/plugin/Form/InputTimeRange.js +1 -1
- package/esm/plugin/Form/InputTree.d.ts +2 -13
- package/esm/plugin/Form/InputTree.js +75 -14
- 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 +2 -0
- package/esm/plugin/Form/Static.js +237 -202
- package/esm/plugin/Form/Switch.js +3 -11
- 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 +2 -13
- package/esm/plugin/Form/TreeSelect.js +96 -42
- 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.d.ts +2 -1
- package/esm/plugin/Image.js +132 -100
- package/esm/plugin/Images.d.ts +2 -1
- package/esm/plugin/Images.js +130 -115
- package/esm/plugin/Json.d.ts +1 -0
- package/esm/plugin/Json.js +23 -23
- 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.d.ts +3 -0
- package/esm/plugin/List.js +147 -49
- package/esm/plugin/ListItem.d.ts +2 -2
- package/esm/plugin/ListItem.js +41 -71
- package/esm/plugin/Log.d.ts +2 -0
- package/esm/plugin/Log.js +85 -15
- package/esm/plugin/Mapping.d.ts +15 -3
- package/esm/plugin/Mapping.js +158 -81
- 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 +2 -2
- package/esm/plugin/Pagination.js +1 -1
- package/esm/plugin/Panel.js +1 -1
- package/esm/plugin/Plain.d.ts +2 -4
- package/esm/plugin/Plain.js +33 -85
- 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.d.ts +3 -0
- package/esm/plugin/Table.js +238 -131
- 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.d.ts +24 -0
- package/esm/plugin/Tag.js +234 -0
- package/esm/plugin/Tasks.js +1 -1
- package/esm/plugin/Time.d.ts +1 -0
- package/esm/plugin/Time.js +34 -35
- 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 +3 -2
- 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 +55 -4
- package/esm/renderer/GoConfigControl.js +1 -1
- package/esm/renderer/MapSourceControl.d.ts +1658 -0
- package/esm/renderer/MapSourceControl.js +428 -0
- 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 +38 -38
- 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.d.ts +8 -0
- package/esm/renderer/style-control/ThemeClassName.js +228 -0
- 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 +81 -67
- package/esm/tpl/horizontal.js +1 -1
- package/esm/tpl/layout.js +71 -3
- package/esm/tpl/options.js +94 -86
- package/esm/tpl/style.js +188 -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.d.ts +11 -0
- package/lib/index.js +12 -1
- package/lib/locale/en-US.js +78 -2
- package/lib/locale/zh-CN.js +82 -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 +43 -12
- 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 +14 -2
- 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.d.ts +1 -0
- package/lib/plugin/Date.js +32 -33
- package/lib/plugin/Datetime.d.ts +1 -0
- package/lib/plugin/Datetime.js +32 -33
- 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.d.ts +14 -6
- package/lib/plugin/Form/Combo.js +344 -377
- 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.d.ts +1 -0
- package/lib/plugin/Form/Formula.js +7 -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.d.ts +3 -0
- package/lib/plugin/Form/InputCity.js +44 -10
- package/lib/plugin/Form/InputColor.js +1 -1
- package/lib/plugin/Form/InputDate.js +2 -2
- 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.d.ts +0 -4
- package/lib/plugin/Form/InputFile.js +6 -6
- package/lib/plugin/Form/InputGroup.d.ts +12 -2
- package/lib/plugin/Form/InputGroup.js +55 -45
- 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 +31 -2
- 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 +22 -2
- 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 +61 -14
- package/lib/plugin/Form/InputTime.js +1 -1
- package/lib/plugin/Form/InputTimeRange.js +1 -1
- package/lib/plugin/Form/InputTree.d.ts +2 -13
- package/lib/plugin/Form/InputTree.js +75 -13
- 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 +2 -0
- package/lib/plugin/Form/Static.js +235 -200
- package/lib/plugin/Form/Switch.js +3 -11
- 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 +2 -13
- package/lib/plugin/Form/TreeSelect.js +99 -41
- 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.d.ts +2 -1
- package/lib/plugin/Image.js +131 -99
- package/lib/plugin/Images.d.ts +2 -1
- package/lib/plugin/Images.js +129 -114
- package/lib/plugin/Json.d.ts +1 -0
- package/lib/plugin/Json.js +23 -27
- 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.d.ts +3 -0
- package/lib/plugin/List.js +146 -48
- package/lib/plugin/ListItem.d.ts +2 -2
- package/lib/plugin/ListItem.js +40 -70
- package/lib/plugin/Log.d.ts +2 -0
- package/lib/plugin/Log.js +84 -14
- package/lib/plugin/Mapping.d.ts +15 -3
- package/lib/plugin/Mapping.js +157 -80
- 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 +2 -2
- package/lib/plugin/Pagination.js +1 -1
- package/lib/plugin/Panel.js +1 -1
- package/lib/plugin/Plain.d.ts +2 -4
- package/lib/plugin/Plain.js +32 -84
- 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.d.ts +3 -0
- package/lib/plugin/Table.js +241 -130
- 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.d.ts +24 -0
- package/lib/plugin/Tag.js +238 -0
- package/lib/plugin/Tasks.js +1 -1
- package/lib/plugin/Time.d.ts +1 -0
- package/lib/plugin/Time.js +34 -35
- 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.d.ts +0 -78
- package/lib/renderer/APIControl.js +3 -2
- package/lib/renderer/BadgeControl.d.ts +6 -6
- 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 +54 -3
- package/lib/renderer/GoConfigControl.js +1 -1
- package/lib/renderer/MapSourceControl.d.ts +1658 -0
- package/lib/renderer/MapSourceControl.js +438 -0
- 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.d.ts +24 -24
- 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 +37 -37
- 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.d.ts +8 -0
- package/lib/renderer/style-control/ThemeClassName.js +234 -0
- 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 +81 -67
- package/lib/tpl/horizontal.js +1 -1
- package/lib/tpl/layout.js +70 -2
- package/lib/tpl/options.js +93 -85
- package/lib/tpl/style.js +188 -1
- package/lib/tpl/validations.js +3 -2
- package/lib/util.js +1 -1
- package/lib/validator.js +1 -1
- package/package.json +18 -1
package/esm/plugin/Form/Combo.js
CHANGED
@@ -1,13 +1,13 @@
|
|
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 {
|
8
|
-
import { getSchemaTpl, valuePipeOut, defaultValue, JSONPipeOut, mockValue, diff, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
9
|
-
import React__default from 'react';
|
7
|
+
import { getI18nEnabled, getSchemaTpl, tipedLabel, defaultValue, mockValue, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
10
8
|
import { setVariable } from 'amis-core';
|
9
|
+
import { ValidatorTag } from '../../validator.js';
|
10
|
+
import { getArgsWrapper, getEventControlConfig } from '../../renderer/event-control/helper.js';
|
11
11
|
import { i18n } from 'i18n-runtime';
|
12
12
|
|
13
13
|
var ComboControlPlugin = /** @class */function (_super) {
|
@@ -79,6 +79,15 @@ var ComboControlPlugin = /** @class */function (_super) {
|
|
79
79
|
label: i18n("254bb8aa6b92d588d957a383df24db1e"),
|
80
80
|
name: 'combo',
|
81
81
|
multiple: true,
|
82
|
+
addable: true,
|
83
|
+
removable: true,
|
84
|
+
removableMode: 'icon',
|
85
|
+
addBtn: {
|
86
|
+
label: i18n("66ab5e9f24c8f46012a25c89919fb191"),
|
87
|
+
icon: 'fa fa-plus',
|
88
|
+
level: 'primary',
|
89
|
+
size: 'sm'
|
90
|
+
},
|
82
91
|
items: [{
|
83
92
|
type: 'input-text',
|
84
93
|
name: 'input-text',
|
@@ -189,6 +198,38 @@ var ComboControlPlugin = /** @class */function (_super) {
|
|
189
198
|
actionType: 'reset',
|
190
199
|
actionLabel: i18n("4b9c3271dc2f299dc3aeffb369187513"),
|
191
200
|
description: i18n("8db57ba01ffb9bf29c1656de5f0208f5")
|
201
|
+
}, {
|
202
|
+
actionType: 'addItem',
|
203
|
+
actionLabel: i18n("00d1a6230e9a31664c895e95fde707d3"),
|
204
|
+
description: i18n("cf3f7c0c1e6c77197bb0b6508a9173aa"),
|
205
|
+
innerArgs: ['item'],
|
206
|
+
schema: getArgsWrapper({
|
207
|
+
type: 'combo',
|
208
|
+
label: i18n("00d1a6230e9a31664c895e95fde707d3"),
|
209
|
+
name: 'item',
|
210
|
+
draggable: false,
|
211
|
+
multiple: true,
|
212
|
+
removable: true,
|
213
|
+
required: true,
|
214
|
+
addable: true,
|
215
|
+
strictMode: false,
|
216
|
+
canAccessSuperData: true,
|
217
|
+
mode: 'horizontal',
|
218
|
+
items: [{
|
219
|
+
name: 'key',
|
220
|
+
type: 'input-text',
|
221
|
+
required: true,
|
222
|
+
placeholder: i18n("a25657422b40023f2731619587940bc7"),
|
223
|
+
source: '${__setValueDs}'
|
224
|
+
}, {
|
225
|
+
name: 'val',
|
226
|
+
type: 'input-formula',
|
227
|
+
variables: '${variables}',
|
228
|
+
evalMode: false,
|
229
|
+
variableMode: 'tabs',
|
230
|
+
inputMode: 'input-group'
|
231
|
+
}]
|
232
|
+
})
|
192
233
|
}, {
|
193
234
|
actionType: 'setValue',
|
194
235
|
actionLabel: i18n("8f40db3b25528063f1b6a59602a05cd5"),
|
@@ -201,324 +242,317 @@ var ComboControlPlugin = /** @class */function (_super) {
|
|
201
242
|
writable: true,
|
202
243
|
value: i18n("254bb8aa6b92d588d957a383df24db1e")
|
203
244
|
});
|
245
|
+
Object.defineProperty(_this, "notRenderFormZone", {
|
246
|
+
enumerable: true,
|
247
|
+
configurable: true,
|
248
|
+
writable: true,
|
249
|
+
value: true
|
250
|
+
});
|
251
|
+
Object.defineProperty(_this, "panelJustify", {
|
252
|
+
enumerable: true,
|
253
|
+
configurable: true,
|
254
|
+
writable: true,
|
255
|
+
value: true
|
256
|
+
});
|
204
257
|
Object.defineProperty(_this, "panelBodyCreator", {
|
205
258
|
enumerable: true,
|
206
259
|
configurable: true,
|
207
260
|
writable: true,
|
208
261
|
value: function (context) {
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
262
|
+
var i18nEnabled = getI18nEnabled();
|
263
|
+
return getSchemaTpl('tabs', [{
|
264
|
+
title: i18n("24d67862f87f439db7ca957aecb77cce"),
|
265
|
+
body: [getSchemaTpl('collapseGroup', [{
|
266
|
+
className: 'p-none',
|
267
|
+
title: i18n("f7e68bde2caa2cb5696d6a37fe4a23a4"),
|
268
|
+
body: [getSchemaTpl('formItemName', {
|
269
|
+
required: true
|
270
|
+
}), getSchemaTpl('label'), getSchemaTpl('valueFormula', {
|
271
|
+
rendererSchema: __assign(__assign({}, context === null || context === void 0 ? void 0 : context.schema), {
|
272
|
+
type: 'textarea'
|
273
|
+
}),
|
274
|
+
label: tipedLabel(i18n("225f3ed00750ae78ad1e6ea42c8f5087"), i18n("bf8f46b5c3b309f666965a74d57ac093")),
|
275
|
+
pipeOut: function (value) {
|
276
|
+
try {
|
277
|
+
return typeof JSON.parse(value) === 'number' ? value : JSON.parse(value);
|
278
|
+
} catch (err) {
|
279
|
+
return value;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}),
|
283
|
+
// 多选模式和条数绑定了,所以设定了多选,条数开启
|
284
|
+
getSchemaTpl('switch', {
|
285
|
+
name: 'multiple',
|
286
|
+
label: i18n("e3be7b8a459a08fec8f378a0660b642b"),
|
287
|
+
pipeIn: defaultValue(true),
|
288
|
+
onChange: function (value, oldValue, model, form) {
|
289
|
+
form.setValueByName('addable', value);
|
290
|
+
form.setValueByName('removable', value);
|
291
|
+
!!value && form.setValueByName('draggable', false);
|
292
|
+
form.setValueByName('flat', false);
|
293
|
+
}
|
294
|
+
}), {
|
295
|
+
type: 'container',
|
296
|
+
className: 'ae-ExtendMore mb-3',
|
297
|
+
visibleOn: 'data.multiple',
|
298
|
+
body: [{
|
299
|
+
label: i18n("3a553b1123f403cf1f81eb28b3e4b814"),
|
300
|
+
name: 'maxLength',
|
301
|
+
type: 'input-number'
|
302
|
+
}, {
|
303
|
+
label: i18n("93bc4888bc13bb6e6c49b34b54077438"),
|
304
|
+
name: 'minLength',
|
305
|
+
type: 'input-number'
|
306
|
+
}]
|
307
|
+
}, getSchemaTpl('switch', {
|
308
|
+
name: 'flat',
|
309
|
+
label: tipedLabel(i18n("e61c32382d879b867938086a50ef094e"), i18n("28a59fee1a4714493a8d6cec05c1417b")),
|
310
|
+
visibleOn: 'Array.isArray(data.items) && data.items.length === 1 && data.multiple'
|
311
|
+
}), {
|
312
|
+
type: 'container',
|
313
|
+
className: 'ae-ExtendMore mb-3',
|
314
|
+
visibleOn: 'data.multiple && data.flat',
|
315
|
+
body: [getSchemaTpl('joinValues'), getSchemaTpl('delimiter')]
|
316
|
+
},
|
317
|
+
// 可排序,排序和新增无关,和多选模式有关
|
318
|
+
getSchemaTpl('switch', {
|
319
|
+
name: 'draggable',
|
320
|
+
label: i18n("b4521626a48dcb61001fc563d2433ed3"),
|
321
|
+
pipeIn: defaultValue(false),
|
322
|
+
visibleOn: 'data.multiple'
|
323
|
+
}), {
|
324
|
+
type: 'container',
|
325
|
+
className: 'ae-ExtendMore mb-3',
|
326
|
+
visibleOn: 'data.draggable',
|
327
|
+
body: [getSchemaTpl('draggableTip')]
|
328
|
+
},
|
329
|
+
// 可新增
|
330
|
+
getSchemaTpl('switch', {
|
331
|
+
name: 'addable',
|
332
|
+
label: tipedLabel(i18n("8865c6822a31e0da6bc7eece8677d8f0"), i18n("30d4e9f1c60f2d5851f77463476d568b")),
|
333
|
+
visibleOn: 'data.multiple',
|
334
|
+
pipeIn: defaultValue(false),
|
335
|
+
onChange: function (value, oldValue, model, form) {
|
336
|
+
if (value) {
|
337
|
+
form.setValueByName('addBtn', {
|
338
|
+
label: i18n("66ab5e9f24c8f46012a25c89919fb191"),
|
339
|
+
icon: 'fa fa-plus',
|
340
|
+
level: 'primary',
|
341
|
+
size: 'sm'
|
282
342
|
});
|
283
343
|
}
|
284
|
-
}
|
285
|
-
}
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
slot: {
|
325
|
-
type: 'form',
|
326
|
-
mode: 'normal',
|
327
|
-
body: '$$',
|
328
|
-
wrapWithPanel: false,
|
329
|
-
className: 'wrapper'
|
330
|
-
},
|
331
|
-
onChange: function (value) {
|
332
|
-
return onChange(value);
|
344
|
+
}
|
345
|
+
}),
|
346
|
+
// 可删除
|
347
|
+
getSchemaTpl('switch', {
|
348
|
+
name: 'removable',
|
349
|
+
label: i18n("3c87af7c432e6b1f59e4f415fd5060cf"),
|
350
|
+
pipeIn: defaultValue(false),
|
351
|
+
visibleOn: 'data.multiple',
|
352
|
+
onChange: function (value, oldValue, model, form) {
|
353
|
+
if (value) {
|
354
|
+
form.setValueByName('removableMode', 'icon');
|
355
|
+
form.setValueByName('deleteIcon', undefined);
|
356
|
+
form.setValueByName('deleteBtn', undefined);
|
357
|
+
}
|
358
|
+
}
|
359
|
+
}), {
|
360
|
+
type: 'container',
|
361
|
+
className: 'ae-ExtendMore mb-3',
|
362
|
+
visibleOn: 'data.removable',
|
363
|
+
body: [
|
364
|
+
// 自定义删除按钮开关
|
365
|
+
{
|
366
|
+
type: 'button-group-select',
|
367
|
+
name: 'removableMode',
|
368
|
+
label: i18n("405a48545938c075e62eafb80b732769"),
|
369
|
+
options: [{
|
370
|
+
label: i18n("5ef69f62dc668c1a3e68b51c50a2530a"),
|
371
|
+
value: 'icon'
|
372
|
+
}, {
|
373
|
+
label: i18n("fa966345577ba81af19408f203db968f"),
|
374
|
+
value: 'button'
|
375
|
+
}],
|
376
|
+
onChange: function (value, oldValue, model, form) {
|
377
|
+
if (value === 'icon') {
|
378
|
+
form.setValueByName('deleteBtn', undefined);
|
379
|
+
} else if (value === 'button') {
|
380
|
+
form.setValueByName('deleteBtn', {
|
381
|
+
label: i18n("2f4aaddde33c9b93c36fd2503f3d122b"),
|
382
|
+
level: 'default'
|
383
|
+
});
|
333
384
|
}
|
385
|
+
}
|
386
|
+
},
|
387
|
+
// getSchemaTpl('icon', {
|
388
|
+
// name: 'deleteIcon',
|
389
|
+
// label: '图标',
|
390
|
+
// visibleOn: 'data.removableMode === "icon"'
|
391
|
+
// }),
|
392
|
+
{
|
393
|
+
label: i18n("f4b06bd9e4f5ceaac7fbb0e17fffc518"),
|
394
|
+
name: 'deleteBtn.label',
|
395
|
+
type: i18nEnabled ? 'input-text-i18n' : 'input-text',
|
396
|
+
visibleOn: 'data.removableMode === "button"'
|
397
|
+
}, getSchemaTpl('buttonLevel', {
|
398
|
+
label: i18n("39003734d1d700d5bd97bf1e7a2fcf73"),
|
399
|
+
name: 'deleteBtn.level',
|
400
|
+
visibleOn: 'data.removableMode === "button"'
|
401
|
+
}), getSchemaTpl('apiControl', {
|
402
|
+
name: 'deleteApi',
|
403
|
+
label: i18n("2f4aaddde33c9b93c36fd2503f3d122b"),
|
404
|
+
renderLabel: false,
|
405
|
+
mode: 'normal'
|
406
|
+
}), getSchemaTpl('deleteConfirmText')]
|
407
|
+
}, getSchemaTpl('labelRemark'), getSchemaTpl('remark'), getSchemaTpl('placeholder'), getSchemaTpl('description')]
|
408
|
+
}, getSchemaTpl('status', {
|
409
|
+
isFormItem: true,
|
410
|
+
readonly: true
|
411
|
+
}), getSchemaTpl('validation', {
|
412
|
+
tag: ValidatorTag.MultiSelect
|
413
|
+
}), getSchemaTpl('collapseGroup', [{
|
414
|
+
className: 'p-none',
|
415
|
+
title: i18n("dfac151de712ab0b3618072c8a7f0a0f"),
|
416
|
+
body: [getSchemaTpl('switch', {
|
417
|
+
name: 'canAccessSuperData',
|
418
|
+
label: i18n("f7894f17d0eba299011d856ce3efea73"),
|
419
|
+
pipeIn: defaultValue(false)
|
420
|
+
}), getSchemaTpl('switch', {
|
421
|
+
name: 'strictMode',
|
422
|
+
label: tipedLabel(i18n("98d52b737d6bc171b6d5bad9a42f6e23"), i18n("cb5ca128b6c78a90f26673e21b0b3f28")),
|
423
|
+
value: true
|
424
|
+
}), getSchemaTpl('combo-container', {
|
425
|
+
name: 'syncFields',
|
426
|
+
visibleOn: '!data.strictMode',
|
427
|
+
label: tipedLabel(i18n("7fc8dab2069004acb8f5c98c27ee0883"), i18n("07bf6c08bb5f0bdb32dbfecc7d3fe290")),
|
428
|
+
type: 'combo',
|
429
|
+
mode: 'normal',
|
430
|
+
multiple: true,
|
431
|
+
canAccessSuperData: true,
|
432
|
+
items: [{
|
433
|
+
name: 'field',
|
434
|
+
type: 'input-text'
|
435
|
+
}],
|
436
|
+
value: [],
|
437
|
+
pipeIn: function (value) {
|
438
|
+
return (value !== null && value !== void 0 ? value : []).map(function (item) {
|
439
|
+
return {
|
440
|
+
field: item
|
441
|
+
};
|
442
|
+
});
|
443
|
+
},
|
444
|
+
pipeOut: function (value) {
|
445
|
+
return (value !== null && value !== void 0 ? value : []).map(function (item) {
|
446
|
+
var keys = Object.keys(item);
|
447
|
+
return keys.length > 0 ? item.field : '';
|
334
448
|
});
|
335
449
|
}
|
336
|
-
},
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
label: i18n("225f3ed00750ae78ad1e6ea42c8f5087"),
|
344
|
-
pipeOut: valuePipeOut,
|
345
|
-
visibleOn: 'typeof this.value !== "undefined"'
|
346
|
-
}, getSchemaTpl('switch', {
|
347
|
-
label: i18n("8a0c77e91392d70df522b55eb4d403e2"),
|
348
|
-
name: 'multiLine',
|
349
|
-
value: false,
|
350
|
-
description: i18n("26343b8bcb694fa5e333b47d8b663d1c")
|
351
|
-
}), getSchemaTpl('multiple'), getSchemaTpl('joinValues'), getSchemaTpl('delimiter'), getSchemaTpl('switch', {
|
352
|
-
name: 'flat',
|
353
|
-
label: i18n("86032735a191d117b02111e447494380"),
|
354
|
-
visibleOn: 'Array.isArray(data.items) && data.items.length === 1 && data.multiple',
|
355
|
-
description: i18n("28a59fee1a4714493a8d6cec05c1417b")
|
356
|
-
}), getSchemaTpl('switch', {
|
357
|
-
label: i18n("7f2579cabd4d654458a720eed517a37d"),
|
358
|
-
name: 'addable',
|
359
|
-
visibleOn: 'this.multiple',
|
360
|
-
pipeIn: defaultValue(true)
|
361
|
-
}), {
|
362
|
-
type: 'textarea',
|
363
|
-
name: 'scaffold',
|
364
|
-
label: i18n("aab09f676645f2651655a711d5e3327c"),
|
365
|
-
visibleOn: 'this.multiple && this.addable !== false',
|
366
|
-
pipeOut: valuePipeOut,
|
367
|
-
pipeIn: defaultValue({})
|
368
|
-
}, {
|
369
|
-
label: i18n("ea1e5695bf682ea3b31aba0c35198ae3"),
|
370
|
-
name: 'addButtonText',
|
371
|
-
type: 'input-text',
|
372
|
-
visibleOn: 'data.addable',
|
373
|
-
pipeIn: defaultValue(i18n("66ab5e9f24c8f46012a25c89919fb191"))
|
374
|
-
}, getSchemaTpl('switch', {
|
375
|
-
label: i18n("1ab31449faaaeeeb7200d724eab9a7ab"),
|
376
|
-
name: 'removable',
|
377
|
-
visibleOn: 'this.multiple',
|
378
|
-
pipeIn: defaultValue(true)
|
379
|
-
}), getSchemaTpl('api', {
|
380
|
-
name: 'deleteApi',
|
381
|
-
label: i18n("fa3e9f9e49f5a81c998f949155f86b50"),
|
382
|
-
hiddenOn: '!data.removable'
|
383
|
-
}), {
|
384
|
-
label: i18n("f962922d46ef18e68127642e5c00165a"),
|
385
|
-
name: 'deleteConfirmText',
|
386
|
-
type: 'input-text',
|
387
|
-
visibleOn: 'data.deleteApi',
|
388
|
-
pipeIn: defaultValue(i18n("fc763fd5ddf637fe4ba1ac59e10b8d3a"))
|
389
|
-
}, getSchemaTpl('switch', {
|
390
|
-
name: 'draggable',
|
391
|
-
label: i18n("d8905a70e93a33c7a86240f467c653d4"),
|
392
|
-
visibleOn: 'this.multiple'
|
393
|
-
}), {
|
394
|
-
label: i18n("f41a714bc8b26dc27a93a07c44e329a8"),
|
395
|
-
name: 'draggableTip',
|
396
|
-
type: 'input-text',
|
397
|
-
visibleOn: 'data.draggable',
|
398
|
-
pipeIn: defaultValue(i18n("91396e9bc25c9e8b63907fe22408e2bb"))
|
399
|
-
}, getSchemaTpl('switch', {
|
400
|
-
name: 'noBorder',
|
401
|
-
label: i18n("8ee004bdd55b578acdb10b1bcd3fa4f7"),
|
402
|
-
visibleOn: 'this.multiLine'
|
403
|
-
}), {
|
404
|
-
name: 'minLength',
|
405
|
-
type: 'input-number',
|
406
|
-
label: i18n("e9cbda74a1ffc06228fca68e4d16c4dd")
|
450
|
+
}), getSchemaTpl('switch', {
|
451
|
+
name: 'lazyLoad',
|
452
|
+
label: tipedLabel(i18n("9ff4713f6b17e96e9cd76650fd5892be"), i18n("93dc24d4ad01981d5994ba7f8ffaf345")),
|
453
|
+
pipeIn: defaultValue(false),
|
454
|
+
visibleOn: 'data.multiple && !data.tabsMode'
|
455
|
+
})]
|
456
|
+
}])])]
|
407
457
|
}, {
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
458
|
+
title: i18n("afcde2611bdd13c1e65b4fb6a2f13425"),
|
459
|
+
className: 'p-none',
|
460
|
+
body: getSchemaTpl('collapseGroup', [{
|
461
|
+
title: i18n("4092ed98e9035652d4c9ca9441701ed7"),
|
462
|
+
visibleOn: 'data.multiple',
|
463
|
+
body: [{
|
464
|
+
name: 'tabsMode',
|
465
|
+
label: i18n("1e409f26f9c1d58ce0c47a68104d45f0"),
|
466
|
+
type: 'button-group-select',
|
467
|
+
inputClassName: 'items-center',
|
468
|
+
size: 'sm',
|
469
|
+
options: [{
|
470
|
+
label: i18n("eee1e2258d7ea163fec625ee44be9637"),
|
471
|
+
value: false
|
472
|
+
}, {
|
473
|
+
label: i18n("9377e388f7189d6103a3985a321115c8"),
|
474
|
+
value: true
|
475
|
+
}],
|
476
|
+
pipeIn: defaultValue(false),
|
477
|
+
onChange: function (value, oldValue, model, form) {
|
478
|
+
if (value) {
|
479
|
+
form.setValueByName('lazyLoad', undefined);
|
480
|
+
}
|
481
|
+
}
|
482
|
+
}, {
|
483
|
+
type: 'container',
|
484
|
+
className: 'ae-ExtendMore mb-3',
|
485
|
+
visibleOn: 'data.tabsMode',
|
486
|
+
body: [{
|
487
|
+
type: 'select',
|
488
|
+
name: 'tabsStyle',
|
489
|
+
label: i18n("39003734d1d700d5bd97bf1e7a2fcf73"),
|
490
|
+
pipeIn: defaultValue(''),
|
491
|
+
options: [{
|
492
|
+
label: i18n("18c63459a2c069022c7790430f761214"),
|
493
|
+
value: ''
|
494
|
+
}, {
|
495
|
+
label: i18n("ecfcea4b381d761fecd512761bc07954"),
|
496
|
+
value: 'line'
|
497
|
+
}, {
|
498
|
+
label: i18n("d87f215d9ac688b1d3399bf575a0ef6f"),
|
499
|
+
value: 'card'
|
500
|
+
}, {
|
501
|
+
label: i18n("22d18bf0c476ebe7aa9303108677ff2e"),
|
502
|
+
value: 'radio'
|
503
|
+
}]
|
504
|
+
}, {
|
505
|
+
type: 'ae-formulaControl',
|
506
|
+
label: i18n("8e32c9ffc35059f8ac5254ffaf3c99b0"),
|
507
|
+
name: 'tabsLabelTpl'
|
508
|
+
}]
|
509
|
+
},
|
510
|
+
// 表单多行展示
|
511
|
+
getSchemaTpl('switch', {
|
512
|
+
name: 'multiLine',
|
513
|
+
label: i18n("21766034147682a2435ecc766de5ea22"),
|
514
|
+
pipeIn: defaultValue(false),
|
515
|
+
onChange: function (value, oldValue, model, form) {
|
516
|
+
if (!value) {
|
517
|
+
form.setValueByName('subFormMode', undefined);
|
518
|
+
form.setValueByName('noBorder', undefined);
|
519
|
+
}
|
520
|
+
}
|
521
|
+
}), getSchemaTpl('switch', {
|
522
|
+
visibleOn: 'data.multiLine',
|
523
|
+
name: 'noBorder',
|
524
|
+
label: i18n("8ee004bdd55b578acdb10b1bcd3fa4f7"),
|
525
|
+
pipeIn: defaultValue(false)
|
526
|
+
})]
|
527
|
+
}, getSchemaTpl('style:formItem', {
|
528
|
+
renderer: context.info.renderer,
|
529
|
+
schema: [getSchemaTpl('subFormItemMode', {
|
530
|
+
visibleOn: 'data.multiLine',
|
531
|
+
type: 'select',
|
532
|
+
label: i18n("32f6f7f8164c7f78e4b46eb50c158ab9")
|
533
|
+
})]
|
534
|
+
}), getSchemaTpl('style:classNames')])
|
455
535
|
}, {
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
}, getSchemaTpl('switch', {
|
463
|
-
name: 'lazyLoad',
|
464
|
-
label: i18n("9ff4713f6b17e96e9cd76650fd5892be"),
|
465
|
-
pipeIn: defaultValue(false),
|
466
|
-
labelRemark: {
|
467
|
-
className: 'm-l-xs',
|
468
|
-
trigger: 'click',
|
469
|
-
rootClose: true,
|
470
|
-
placement: 'left',
|
471
|
-
content: i18n("f6e5fc909971d2e5f6ffe23edae93584")
|
472
|
-
}
|
473
|
-
}), getSchemaTpl('switch', {
|
474
|
-
name: 'strictMode',
|
475
|
-
label: i18n("98d52b737d6bc171b6d5bad9a42f6e23"),
|
476
|
-
pipeIn: defaultValue(true),
|
477
|
-
labelRemark: {
|
478
|
-
className: 'm-l-xs',
|
479
|
-
trigger: 'click',
|
480
|
-
rootClose: true,
|
481
|
-
placement: 'left',
|
482
|
-
content: i18n("cb5ca128b6c78a90f26673e21b0b3f28")
|
483
|
-
}
|
484
|
-
}), {
|
485
|
-
name: 'syncFields',
|
486
|
-
visibleOn: '!data.strictMode',
|
487
|
-
label: i18n("bc91f4844843d6c8ec1acb78a1f1aba4"),
|
488
|
-
type: 'input-text',
|
489
|
-
multiple: true,
|
490
|
-
joinValues: false,
|
491
|
-
extractValue: true,
|
492
|
-
description: i18n("07bf6c08bb5f0bdb32dbfecc7d3fe290")
|
493
|
-
}, getSchemaTpl('switch', {
|
494
|
-
name: 'nullable',
|
495
|
-
label: i18n("3f2176cdae8a4ed6a4c4eaff002a3b24"),
|
496
|
-
pipeIn: defaultValue(false),
|
497
|
-
labelRemark: {
|
498
|
-
className: 'm-l-xs',
|
499
|
-
trigger: 'click',
|
500
|
-
rootClose: true,
|
501
|
-
placement: 'left',
|
502
|
-
content: i18n("ead7156521ca11acb7ca7bdf4c9c87f6")
|
503
|
-
}
|
504
|
-
}), {
|
505
|
-
name: 'items',
|
506
|
-
label: i18n("7ab968b8219f6c348478da255ebcbcb9"),
|
507
|
-
hiddenOn: 'this.multiLine',
|
508
|
-
type: 'combo',
|
509
|
-
addable: false,
|
510
|
-
removable: false,
|
511
|
-
multiple: true,
|
512
|
-
items: [{
|
513
|
-
name: 'columnClassName',
|
514
|
-
placeholder: i18n("4434b33a8731a73613ba5fa1eb984efb"),
|
515
|
-
type: 'input-text'
|
516
|
-
}]
|
517
|
-
}, getSchemaTpl('subFormItemMode', {
|
518
|
-
visibleOn: 'this.multiLine'
|
519
|
-
}), getSchemaTpl('subFormHorizontalMode'), getSchemaTpl('subFormHorizontal')];
|
536
|
+
title: i18n("10b2761db5a8e089049df39675abc550"),
|
537
|
+
className: 'p-none',
|
538
|
+
body: [getSchemaTpl('eventControl', __assign({
|
539
|
+
name: 'onEvent'
|
540
|
+
}, getEventControlConfig(_this.manager, context)))]
|
541
|
+
}]);
|
520
542
|
}
|
521
543
|
});
|
544
|
+
// 容器配置
|
545
|
+
Object.defineProperty(_this, "regions", {
|
546
|
+
enumerable: true,
|
547
|
+
configurable: true,
|
548
|
+
writable: true,
|
549
|
+
value: [{
|
550
|
+
key: 'items',
|
551
|
+
label: i18n("132a78bdf68d6d17bde00aa807bbf032"),
|
552
|
+
preferTag: i18n("132a78bdf68d6d17bde00aa807bbf032"),
|
553
|
+
renderMethod: 'renderItems'
|
554
|
+
}]
|
555
|
+
});
|
522
556
|
return _this;
|
523
557
|
}
|
524
558
|
Object.defineProperty(ComboControlPlugin.prototype, "filterProps", {
|
@@ -526,83 +560,20 @@ var ComboControlPlugin = /** @class */function (_super) {
|
|
526
560
|
configurable: true,
|
527
561
|
writable: true,
|
528
562
|
value: function (props) {
|
529
|
-
props = JSONPipeOut(props);
|
530
563
|
// 至少显示一个成员,否则啥都不显示。
|
531
|
-
if (props.multiple && !props.value && !props.$ref) {
|
564
|
+
if (props.multiple && !props.value && !props.$schema.value && !props.$ref) {
|
532
565
|
var mockedData_1 = {};
|
533
|
-
if (Array.isArray(props.items)) {
|
566
|
+
if (Array.isArray(props.items) && props.items.length === 0) {
|
534
567
|
props.items.forEach(function (control) {
|
535
568
|
control.name && setVariable(mockedData_1, control.name, mockValue(control));
|
536
569
|
});
|
537
570
|
}
|
538
571
|
props.value = [mockedData_1];
|
572
|
+
return props;
|
539
573
|
}
|
540
574
|
return props;
|
541
575
|
}
|
542
576
|
});
|
543
|
-
Object.defineProperty(ComboControlPlugin.prototype, "buildEditorToolbar", {
|
544
|
-
enumerable: false,
|
545
|
-
configurable: true,
|
546
|
-
writable: true,
|
547
|
-
value: function (_a, toolbars) {
|
548
|
-
var id = _a.id,
|
549
|
-
info = _a.info,
|
550
|
-
schema = _a.schema;
|
551
|
-
if (info.renderer.name === 'combo' && !Array.isArray(schema.conditions)) {
|
552
|
-
toolbars.push({
|
553
|
-
icon: 'fa fa-expand',
|
554
|
-
order: 100,
|
555
|
-
tooltip: i18n("50bfed6ada3e7d0ef4d20eb727b3d7df"),
|
556
|
-
onClick: this.editDetail.bind(this, id)
|
557
|
-
});
|
558
|
-
}
|
559
|
-
}
|
560
|
-
});
|
561
|
-
Object.defineProperty(ComboControlPlugin.prototype, "buildEditorContextMenu", {
|
562
|
-
enumerable: false,
|
563
|
-
configurable: true,
|
564
|
-
writable: true,
|
565
|
-
value: function (_a, menus) {
|
566
|
-
var id = _a.id,
|
567
|
-
schema = _a.schema;
|
568
|
-
_a.region;
|
569
|
-
var info = _a.info;
|
570
|
-
if (info.renderer.name === 'combo' && !Array.isArray(schema.conditions)) {
|
571
|
-
menus.push('|', {
|
572
|
-
label: i18n("39a6853b109ae98f1aabca90283d7edc"),
|
573
|
-
onSelect: this.editDetail.bind(this, id)
|
574
|
-
});
|
575
|
-
}
|
576
|
-
}
|
577
|
-
});
|
578
|
-
Object.defineProperty(ComboControlPlugin.prototype, "editDetail", {
|
579
|
-
enumerable: false,
|
580
|
-
configurable: true,
|
581
|
-
writable: true,
|
582
|
-
value: function (id) {
|
583
|
-
var manager = this.manager;
|
584
|
-
var store = manager.store;
|
585
|
-
var node = store.getNodeById(id);
|
586
|
-
var value = store.getValueOf(id);
|
587
|
-
node && value && this.manager.openSubEditor({
|
588
|
-
title: i18n("50bfed6ada3e7d0ef4d20eb727b3d7df"),
|
589
|
-
value: value.items,
|
590
|
-
slot: {
|
591
|
-
type: 'form',
|
592
|
-
mode: 'normal',
|
593
|
-
body: '$$',
|
594
|
-
wrapWithPanel: false,
|
595
|
-
className: 'wrapper'
|
596
|
-
},
|
597
|
-
onChange: function (newValue) {
|
598
|
-
newValue = __assign(__assign({}, value), {
|
599
|
-
items: newValue
|
600
|
-
});
|
601
|
-
manager.panelChangeValue(newValue, diff(value, newValue));
|
602
|
-
}
|
603
|
-
});
|
604
|
-
}
|
605
|
-
});
|
606
577
|
return ComboControlPlugin;
|
607
578
|
}(BasePlugin);
|
608
579
|
registerEditorPlugin(ComboControlPlugin);
|