amis-editor 5.6.0-beta.0 → 5.6.1
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/builder/ApiDSBuilder.d.ts +491 -0
- package/esm/builder/ApiDSBuilder.js +1212 -0
- package/esm/builder/DSBuilder.d.ts +171 -0
- package/esm/builder/DSBuilder.js +49 -0
- package/esm/builder/DSBuilderManager.d.ts +62 -0
- package/esm/builder/DSBuilderManager.js +207 -0
- package/esm/builder/constants.d.ts +97 -0
- package/esm/builder/constants.js +135 -0
- package/esm/builder/index.d.ts +6 -0
- package/esm/builder/type.d.ts +96 -0
- package/esm/builder/utils.d.ts +10 -0
- package/esm/builder/utils.js +93 -0
- package/esm/component/BaseControl.js +5 -3
- package/esm/component/InputComponentName.js +3 -1
- package/esm/component/TableViewEditor.js +3 -1
- package/esm/icons/btn/btn-group.svg.js +3 -1
- package/esm/icons/btn/btn-select.svg.js +3 -1
- package/esm/icons/btn/btn-toolbar.svg.js +3 -1
- package/esm/icons/btn/button.svg.js +3 -1
- package/esm/icons/btn/dropdown-btn.svg.js +3 -1
- package/esm/icons/container/anchor-nav.svg.js +3 -1
- package/esm/icons/container/collapse.svg.js +3 -1
- package/esm/icons/container/container.svg.js +3 -1
- package/esm/icons/container/flex-container.svg.js +3 -1
- package/esm/icons/container/form-group.svg.js +3 -1
- package/esm/icons/container/grid.svg.js +3 -1
- package/esm/icons/container/iframe.svg.js +3 -1
- package/esm/icons/container/panel.svg.js +3 -1
- package/esm/icons/container/table-view.svg.js +3 -1
- package/esm/icons/container/tabs.svg.js +3 -1
- package/esm/icons/container/tooltip-wrapper.svg.js +3 -1
- package/esm/icons/container/web-component.svg.js +3 -1
- package/esm/icons/crud/column-add.svg.js +26 -0
- package/esm/icons/crud/column-delete.svg.js +24 -0
- package/esm/icons/crud/column-setting.svg.js +24 -0
- package/esm/icons/crud/share-link.svg.js +22 -0
- package/esm/icons/display/aBaseline.svg.js +3 -1
- package/esm/icons/display/aCenter.svg.js +3 -1
- package/esm/icons/display/aFlexEnd.svg.js +3 -1
- package/esm/icons/display/aFlexStart.svg.js +3 -1
- package/esm/icons/display/aStretch.svg.js +3 -1
- package/esm/icons/display/block.svg.js +3 -1
- package/esm/icons/display/dcolumn.svg.js +3 -1
- package/esm/icons/display/dcolumnReverse.svg.js +3 -1
- package/esm/icons/display/drow.svg.js +3 -1
- package/esm/icons/display/drowReverse.svg.js +3 -1
- package/esm/icons/display/flex.svg.js +3 -1
- package/esm/icons/display/inline-block.svg.js +3 -1
- package/esm/icons/display/inline.svg.js +3 -1
- package/esm/icons/display/jCenter.svg.js +3 -1
- package/esm/icons/display/jFlexEnd.svg.js +3 -1
- package/esm/icons/display/jFlexStart.svg.js +3 -1
- package/esm/icons/display/jSpaceAround.svg.js +3 -1
- package/esm/icons/display/jSpaceBetween.svg.js +3 -1
- package/esm/icons/feat/audio.svg.js +3 -1
- package/esm/icons/feat/custom.svg.js +3 -1
- package/esm/icons/feat/each.svg.js +3 -1
- package/esm/icons/feat/form.svg.js +3 -1
- package/esm/icons/feat/nav.svg.js +3 -1
- package/esm/icons/feat/qrcode.svg.js +3 -1
- package/esm/icons/feat/service.svg.js +3 -1
- package/esm/icons/feat/table.svg.js +3 -1
- package/esm/icons/feat/tasks.svg.js +3 -1
- package/esm/icons/feat/video.svg.js +3 -1
- package/esm/icons/feat/wizard.svg.js +3 -1
- package/esm/icons/form/chained-select.svg.js +3 -1
- package/esm/icons/form/checkbox.svg.js +3 -1
- package/esm/icons/form/checkboxes.svg.js +3 -1
- package/esm/icons/form/combo.svg.js +3 -1
- package/esm/icons/form/condition-builder.svg.js +3 -1
- package/esm/icons/form/diff-editor.svg.js +3 -1
- package/esm/icons/form/editor.svg.js +3 -1
- package/esm/icons/form/formula.svg.js +3 -1
- package/esm/icons/form/hidden.svg.js +3 -1
- package/esm/icons/form/input-city.svg.js +3 -1
- package/esm/icons/form/input-color.svg.js +3 -1
- package/esm/icons/form/input-date-range.svg.js +3 -1
- package/esm/icons/form/input-date.svg.js +3 -1
- package/esm/icons/form/input-datetime.svg.js +3 -1
- package/esm/icons/form/input-email.svg.js +3 -1
- package/esm/icons/form/input-excel.svg.js +3 -1
- package/esm/icons/form/input-file.svg.js +3 -1
- package/esm/icons/form/input-group.svg.js +3 -1
- package/esm/icons/form/input-image.svg.js +3 -1
- package/esm/icons/form/input-kv.svg.js +3 -1
- package/esm/icons/form/input-month-range.svg.js +3 -1
- package/esm/icons/form/input-number.svg.js +3 -1
- package/esm/icons/form/input-password.svg.js +3 -1
- package/esm/icons/form/input-quarter-range.svg.js +3 -1
- package/esm/icons/form/input-range.svg.js +3 -1
- package/esm/icons/form/input-rating.svg.js +3 -1
- package/esm/icons/form/input-repeat.svg.js +3 -1
- package/esm/icons/form/input-rich-text.svg.js +3 -1
- package/esm/icons/form/input-tag.svg.js +3 -1
- package/esm/icons/form/input-text.svg.js +3 -1
- package/esm/icons/form/input-time-range.svg.js +3 -1
- package/esm/icons/form/input-time.svg.js +3 -1
- package/esm/icons/form/input-tree.svg.js +3 -1
- package/esm/icons/form/input-url.svg.js +3 -1
- package/esm/icons/form/input-year.svg.js +3 -1
- package/esm/icons/form/inputArray.svg.js +3 -1
- package/esm/icons/form/list-select.svg.js +3 -1
- package/esm/icons/form/location-picker.svg.js +3 -1
- package/esm/icons/form/matrix-checkboxes.svg.js +3 -1
- package/esm/icons/form/month.svg.js +3 -1
- package/esm/icons/form/nested-select.svg.js +3 -1
- package/esm/icons/form/picker.svg.js +3 -1
- package/esm/icons/form/quarter.svg.js +3 -1
- package/esm/icons/form/radios.svg.js +3 -1
- package/esm/icons/form/select.svg.js +3 -1
- package/esm/icons/form/static.svg.js +3 -1
- package/esm/icons/form/sub-form.svg.js +3 -1
- package/esm/icons/form/switch.svg.js +3 -1
- package/esm/icons/form/tabs-transfer.svg.js +3 -1
- package/esm/icons/form/textarea.svg.js +3 -1
- package/esm/icons/form/transfer.svg.js +3 -1
- package/esm/icons/form/tree-select.svg.js +3 -1
- package/esm/icons/form/uuid.svg.js +3 -1
- package/esm/icons/index.js +12 -1
- package/esm/icons/layout/layout-1with2.svg.js +3 -1
- package/esm/icons/layout/layout-2cols.svg.js +3 -1
- package/esm/icons/layout/layout-2row.svg.js +3 -1
- package/esm/icons/layout/layout-2with1.svg.js +3 -1
- package/esm/icons/layout/layout-3cols.svg.js +3 -1
- package/esm/icons/layout/layout-3row.svg.js +3 -1
- package/esm/icons/layout/layout-absolute.svg.js +3 -1
- package/esm/icons/layout/layout-fixed-top.svg.js +3 -1
- package/esm/icons/layout/layout-fixed.svg.js +3 -1
- package/esm/icons/layout/layout-free-container.svg.js +3 -1
- package/esm/icons/layout/layout-full.svg.js +3 -1
- package/esm/icons/layout/layout1-2.svg.js +3 -1
- package/esm/icons/layout/layout2-1.svg.js +3 -1
- package/esm/icons/layout/layout3-1.svg.js +3 -1
- package/esm/icons/layout/layout3-2.svg.js +3 -1
- package/esm/icons/other/_fx.svg.js +3 -1
- package/esm/icons/other/divider.svg.js +3 -1
- package/esm/icons/other/fx.svg.js +3 -1
- package/esm/icons/other/property-sheet.svg.js +3 -1
- package/esm/icons/other/tooltip.svg.js +3 -1
- package/esm/icons/show/URL.svg.js +3 -1
- package/esm/icons/show/avatar.svg.js +3 -1
- package/esm/icons/show/breadcrumb.svg.js +3 -1
- package/esm/icons/show/card.svg.js +3 -1
- package/esm/icons/show/cards.svg.js +3 -1
- package/esm/icons/show/carousel.svg.js +3 -1
- package/esm/icons/show/chart.svg.js +3 -1
- package/esm/icons/show/code.svg.js +3 -1
- package/esm/icons/show/date.svg.js +3 -1
- package/esm/icons/show/datetime.svg.js +3 -1
- package/esm/icons/show/image.svg.js +3 -1
- package/esm/icons/show/images.svg.js +3 -1
- package/esm/icons/show/json-view.svg.js +3 -1
- package/esm/icons/show/list.svg.js +3 -1
- package/esm/icons/show/log.svg.js +3 -1
- package/esm/icons/show/mapping.svg.js +3 -1
- package/esm/icons/show/markdown.svg.js +3 -1
- package/esm/icons/show/plain.svg.js +3 -1
- package/esm/icons/show/progress.svg.js +3 -1
- package/esm/icons/show/sparkline.svg.js +3 -1
- package/esm/icons/show/status.svg.js +3 -1
- package/esm/icons/show/steps.svg.js +3 -1
- package/esm/icons/show/time.svg.js +3 -1
- package/esm/icons/theme/css.svg.js +3 -1
- package/esm/index.d.ts +8 -0
- package/esm/index.js +18 -3
- package/esm/locale/en-US.js +241 -19
- package/esm/locale/zh-CN.js +235 -7
- package/esm/plugin/Alert.js +3 -1
- package/esm/plugin/AnchorNav.js +3 -1
- package/esm/plugin/Audio.js +3 -1
- package/esm/plugin/Avatar.js +3 -1
- package/esm/plugin/Breadcrumb.js +3 -1
- package/esm/plugin/Button.js +5 -3
- package/esm/plugin/ButtonGroup.js +3 -1
- package/esm/plugin/CRUD.js +3 -1
- package/esm/plugin/CRUD2/BaseCRUD.d.ts +233 -0
- package/esm/plugin/CRUD2/BaseCRUD.js +1045 -0
- package/esm/plugin/CRUD2/CRUDCards.d.ts +53 -0
- package/esm/plugin/CRUD2/CRUDList.d.ts +53 -0
- package/esm/plugin/CRUD2/CRUDTable.d.ts +21 -0
- package/esm/plugin/CRUD2/CRUDTable.js +48 -0
- package/esm/plugin/CRUD2/constants.d.ts +32 -0
- package/esm/plugin/CRUD2/constants.js +75 -0
- package/esm/plugin/CRUD2/utils.d.ts +8 -0
- package/esm/plugin/CRUD2/utils.js +91 -0
- package/esm/plugin/Card.js +3 -1
- package/esm/plugin/Card2.js +3 -1
- package/esm/plugin/Cards.d.ts +547 -41
- package/esm/plugin/Cards.js +368 -170
- package/esm/plugin/Carousel.js +120 -97
- package/esm/plugin/Chart.js +17 -5
- package/esm/plugin/CodeView.js +3 -1
- package/esm/plugin/Collapse.d.ts +2 -1
- package/esm/plugin/Collapse.js +50 -1
- package/esm/plugin/CollapseGroup.js +3 -1
- package/esm/plugin/ColumnToggler.d.ts +11 -6
- package/esm/plugin/ColumnToggler.js +69 -10
- package/esm/plugin/Container.d.ts +2 -0
- package/esm/plugin/Container.js +8 -8
- package/esm/plugin/Custom.js +3 -1
- package/esm/plugin/CustomRegion.js +5 -2
- package/esm/plugin/Date.js +3 -1
- package/esm/plugin/Datetime.js +3 -1
- package/esm/plugin/Dialog.d.ts +13 -1
- package/esm/plugin/Dialog.js +186 -55
- package/esm/plugin/Divider.js +72 -6
- package/esm/plugin/Drawer.js +126 -77
- package/esm/plugin/DropDownButton.js +3 -1
- package/esm/plugin/Each.d.ts +226 -11
- package/esm/plugin/Each.js +238 -89
- package/esm/plugin/Flex.js +3 -1
- package/esm/plugin/Form/ButtonGroupSelect.js +25 -23
- package/esm/plugin/Form/ButtonToolbar.js +3 -1
- package/esm/plugin/Form/ChainedSelect.js +21 -19
- package/esm/plugin/Form/Checkbox.js +51 -12
- package/esm/plugin/Form/Checkboxes.js +33 -42
- package/esm/plugin/Form/CodeEditor.js +3 -1
- package/esm/plugin/Form/Combo.d.ts +3 -2
- package/esm/plugin/Form/Combo.js +8 -5
- package/esm/plugin/Form/ConditionBuilder.js +3 -1
- package/esm/plugin/Form/Control.js +3 -1
- package/esm/plugin/Form/DiffEditor.js +3 -1
- package/esm/plugin/Form/FieldSet.js +3 -1
- package/esm/plugin/Form/Form.d.ts +32 -8
- package/esm/plugin/Form/Form.js +594 -442
- package/esm/plugin/Form/Formula.js +3 -1
- package/esm/plugin/Form/Group.js +3 -1
- package/esm/plugin/Form/Hidden.js +3 -1
- package/esm/plugin/Form/InputArray.js +3 -1
- package/esm/plugin/Form/InputCity.js +6 -2
- package/esm/plugin/Form/InputColor.js +3 -1
- package/esm/plugin/Form/InputDate.js +29 -43
- package/esm/plugin/Form/InputDateRange.js +41 -30
- package/esm/plugin/Form/InputDateTime.js +3 -1
- package/esm/plugin/Form/InputDateTimeRange.js +3 -1
- package/esm/plugin/Form/InputEmail.js +3 -1
- package/esm/plugin/Form/InputExcel.js +3 -1
- package/esm/plugin/Form/InputFile.js +8 -2
- package/esm/plugin/Form/InputGroup.d.ts +1 -0
- package/esm/plugin/Form/InputGroup.js +3 -1
- package/esm/plugin/Form/InputImage.js +12 -6
- package/esm/plugin/Form/InputKV.js +3 -1
- package/esm/plugin/Form/InputMonth.js +3 -1
- package/esm/plugin/Form/InputMonthRange.js +3 -1
- package/esm/plugin/Form/InputNumber.js +3 -1
- package/esm/plugin/Form/InputPassword.js +3 -1
- package/esm/plugin/Form/InputQuarter.js +3 -1
- package/esm/plugin/Form/InputQuarterRange.js +3 -1
- package/esm/plugin/Form/InputRange.js +23 -35
- package/esm/plugin/Form/InputRating.js +3 -1
- package/esm/plugin/Form/InputRepeat.js +3 -1
- package/esm/plugin/Form/InputRichText.js +3 -1
- package/esm/plugin/Form/InputSubForm.js +3 -1
- package/esm/plugin/Form/InputTable.d.ts +3 -2
- package/esm/plugin/Form/InputTable.js +13 -8
- package/esm/plugin/Form/InputTag.d.ts +4 -1
- package/esm/plugin/Form/InputTag.js +33 -22
- package/esm/plugin/Form/InputText.js +23 -23
- package/esm/plugin/Form/InputTime.js +3 -1
- package/esm/plugin/Form/InputTimeRange.js +3 -1
- package/esm/plugin/Form/InputTree.js +69 -54
- package/esm/plugin/Form/InputURL.js +3 -1
- package/esm/plugin/Form/InputYear.js +3 -1
- package/esm/plugin/Form/InputYearRange.js +3 -1
- package/esm/plugin/Form/Item.js +3 -1
- package/esm/plugin/Form/ListSelect.js +25 -23
- package/esm/plugin/Form/LocationPicker.js +3 -1
- package/esm/plugin/Form/MatrixCheckboxes.js +3 -1
- package/esm/plugin/Form/NestedSelect.js +25 -23
- package/esm/plugin/Form/Picker.js +22 -22
- package/esm/plugin/Form/Radios.js +20 -18
- package/esm/plugin/Form/Select.d.ts +8 -8
- package/esm/plugin/Form/Select.js +41 -72
- package/esm/plugin/Form/Static.js +3 -1
- package/esm/plugin/Form/Switch.js +3 -1
- package/esm/plugin/Form/TabsTransfer.d.ts +2 -3
- package/esm/plugin/Form/TabsTransfer.js +59 -45
- package/esm/plugin/Form/Textarea.js +3 -1
- package/esm/plugin/Form/Transfer.js +25 -23
- package/esm/plugin/Form/TreeSelect.js +59 -51
- package/esm/plugin/Form/UUID.js +3 -1
- package/esm/plugin/Grid.js +3 -1
- package/esm/plugin/HBox.js +3 -1
- package/esm/plugin/IFrame.js +3 -1
- package/esm/plugin/Icon.js +5 -3
- package/esm/plugin/Image.js +54 -31
- package/esm/plugin/Images.js +22 -10
- package/esm/plugin/Json.js +3 -1
- package/esm/plugin/Layout/FlexPluginBase.js +14 -15
- package/esm/plugin/Layout/Layout_fixed.js +3 -1
- package/esm/plugin/Layout/Layout_free_container.js +3 -1
- package/esm/plugin/Layout/Layout_sorption_container.js +3 -1
- package/esm/plugin/Link.js +17 -5
- package/esm/plugin/List.d.ts +5 -0
- package/esm/plugin/List.js +55 -19
- package/esm/plugin/List2.d.ts +545 -0
- package/esm/plugin/List2.js +380 -0
- package/esm/plugin/ListItem.js +3 -1
- package/esm/plugin/Log.js +3 -1
- package/esm/plugin/Mapping.js +3 -1
- package/esm/plugin/Markdown.js +3 -1
- package/esm/plugin/Nav.js +3 -1
- package/esm/plugin/OfficeViewer.js +3 -1
- package/esm/plugin/Operation.js +3 -2
- package/esm/plugin/Others/Action.js +3 -1
- package/esm/plugin/Others/TableCell.js +3 -1
- package/esm/plugin/Page.js +27 -2
- package/esm/plugin/Pagination.d.ts +0 -1
- package/esm/plugin/Pagination.js +35 -19
- package/esm/plugin/Panel.js +3 -1
- package/esm/plugin/Plain.js +3 -1
- package/esm/plugin/Progress.js +3 -1
- package/esm/plugin/Property.js +3 -1
- package/esm/plugin/QRCode.js +3 -1
- package/esm/plugin/Reset.js +3 -1
- package/esm/plugin/SearchBox.d.ts +3 -1
- package/esm/plugin/SearchBox.js +14 -1
- package/esm/plugin/Service.d.ts +19 -13
- package/esm/plugin/Service.js +169 -91
- package/esm/plugin/Sparkline.js +5 -6
- package/esm/plugin/Status.js +3 -1
- package/esm/plugin/Steps.js +3 -1
- package/esm/plugin/Submit.js +3 -1
- package/esm/plugin/Table.d.ts +9 -0
- package/esm/plugin/Table.js +53 -4
- package/esm/plugin/Table2.d.ts +24 -10
- package/esm/plugin/Table2.js +668 -420
- package/esm/plugin/TableCell2.d.ts +14 -2
- package/esm/plugin/TableCell2.js +510 -365
- package/esm/plugin/TableView.js +3 -1
- package/esm/plugin/Tabs.js +3 -1
- package/esm/plugin/Tag.js +10 -2
- package/esm/plugin/Tasks.js +3 -1
- package/esm/plugin/Time.js +3 -1
- package/esm/plugin/Timeline.js +3 -1
- package/esm/plugin/TooltipWrapper.js +12 -9
- package/esm/plugin/Tpl.js +21 -3
- package/esm/plugin/Video.js +3 -1
- package/esm/plugin/WebComponent.js +3 -1
- package/esm/plugin/Wizard.js +3 -1
- package/esm/plugin/Wrapper.js +3 -1
- package/esm/plugin/index.d.ts +2 -1
- package/esm/renderer/APIAdaptorControl.d.ts +14 -0
- package/esm/renderer/APIAdaptorControl.js +26 -40
- package/esm/renderer/APIControl.js +12 -2
- package/esm/renderer/ActionApiControl.d.ts +6 -0
- package/esm/renderer/BadgeControl.d.ts +6 -6
- package/esm/renderer/BadgeControl.js +3 -1
- package/esm/renderer/ButtonGroupControl.js +3 -1
- package/esm/renderer/DataBindingControl.d.ts +1 -1
- package/esm/renderer/DataBindingControl.js +3 -1
- package/esm/renderer/DataMappingControl.js +3 -1
- package/esm/renderer/DataPickerControl.js +3 -1
- package/esm/renderer/DateShortCutControl.d.ts +1 -0
- package/esm/renderer/DateShortCutControl.js +9 -5
- package/esm/renderer/ExpressionFormulaControl.js +3 -1
- package/esm/renderer/FeatureControl.d.ts +17 -4
- package/esm/renderer/FeatureControl.js +73 -12
- package/esm/renderer/FieldSetting.d.ts +66 -0
- package/esm/renderer/FieldSetting.js +492 -0
- package/esm/renderer/FlexSettingControl.js +3 -1
- package/esm/renderer/FormulaControl.d.ts +6 -1
- package/esm/renderer/FormulaControl.js +24 -7
- package/esm/renderer/FunctionEditorControl.d.ts +79 -0
- package/esm/renderer/FunctionEditorControl.js +107 -0
- package/esm/renderer/GoConfigControl.js +3 -1
- package/esm/renderer/InputRangeValueControl.d.ts +15 -0
- package/esm/renderer/InputRangeValueControl.js +121 -0
- package/esm/renderer/MapSourceControl.js +3 -1
- package/esm/renderer/NavBadgeControl.d.ts +6 -6
- package/esm/renderer/NavBadgeControl.js +3 -1
- package/esm/renderer/NavDefaultActive.js +3 -1
- package/esm/renderer/NavSourceControl.js +3 -1
- package/esm/renderer/OptionControl.d.ts +2 -0
- package/esm/renderer/OptionControl.js +35 -23
- package/esm/renderer/RangePartsControl.js +3 -1
- package/esm/renderer/StatusControl.js +3 -1
- package/esm/renderer/SwitchMoreControl.d.ts +6 -0
- package/esm/renderer/SwitchMoreControl.js +14 -2
- package/esm/renderer/TableColumnWidthControl.d.ts +29 -0
- package/esm/renderer/TableColumnWidthControl.js +177 -0
- package/esm/renderer/TimelineItemControl.js +3 -1
- package/esm/renderer/TplFormulaControl.js +3 -1
- package/esm/renderer/TransferTableControl.js +3 -1
- package/esm/renderer/TreeOptionControl.d.ts +1 -1
- package/esm/renderer/TreeOptionControl.js +8 -6
- package/esm/renderer/ValidationControl.js +3 -1
- package/esm/renderer/ValidationItem.js +3 -1
- package/esm/renderer/crud2-control/AddColumnModal.d.ts +6 -0
- package/esm/renderer/crud2-control/AddColumnModal.js +256 -0
- package/esm/renderer/crud2-control/CRUDColumnControl.d.ts +68 -0
- package/esm/renderer/crud2-control/CRUDColumnControl.js +473 -0
- package/esm/renderer/crud2-control/CRUDFiltersControl.d.ts +53 -0
- package/esm/renderer/crud2-control/CRUDFiltersControl.js +691 -0
- package/esm/renderer/crud2-control/CRUDToolbarControl.d.ts +49 -0
- package/esm/renderer/crud2-control/CRUDToolbarControl.js +417 -0
- package/esm/renderer/event-control/action-config-dialog.d.ts +1 -1
- package/esm/renderer/event-control/action-config-dialog.js +4 -2
- package/esm/renderer/event-control/action-config-panel.js +3 -1
- package/esm/renderer/event-control/comp-action-select.js +3 -1
- package/esm/renderer/event-control/helper.d.ts +2 -1
- package/esm/renderer/event-control/helper.js +170 -117
- package/esm/renderer/event-control/index.d.ts +26 -17
- package/esm/renderer/event-control/index.js +114 -22
- package/esm/renderer/style-control/Background.js +3 -1
- package/esm/renderer/style-control/Border.js +3 -1
- package/esm/renderer/style-control/BoxModel.js +3 -1
- package/esm/renderer/style-control/BoxShadow.js +3 -1
- package/esm/renderer/style-control/Display.js +3 -1
- package/esm/renderer/style-control/Font.js +3 -1
- package/esm/renderer/style-control/InsetBoxModel.js +3 -1
- package/esm/renderer/style-control/ThemeCssCode.js +132 -281
- package/esm/renderer/style-control/font-family.js +3 -1
- package/esm/renderer/style-control/helper.js +3 -1
- package/esm/renderer/style-control/transformation.js +3 -1
- package/esm/renderer/textarea-formula/FormulaPicker.js +3 -1
- package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +2 -0
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +76 -7
- package/esm/renderer/textarea-formula/plugin.js +5 -3
- package/esm/tpl/api.js +15 -10
- package/esm/tpl/common.js +53 -35
- package/esm/tpl/horizontal.js +3 -1
- package/esm/tpl/layout.js +9 -6
- package/esm/tpl/options.d.ts +10 -1
- package/esm/tpl/options.js +249 -10
- package/esm/tpl/remark.js +3 -1
- package/esm/tpl/style.js +99 -60
- package/esm/tpl/validations.js +3 -1
- package/esm/util.d.ts +8 -0
- package/esm/util.js +21 -3
- package/esm/validator.js +3 -1
- package/lib/builder/ApiDSBuilder.d.ts +491 -0
- package/lib/builder/ApiDSBuilder.js +1226 -0
- package/lib/builder/DSBuilder.d.ts +171 -0
- package/lib/builder/DSBuilder.js +55 -0
- package/lib/builder/DSBuilderManager.d.ts +62 -0
- package/lib/builder/DSBuilderManager.js +211 -0
- package/lib/builder/constants.d.ts +97 -0
- package/lib/builder/constants.js +144 -0
- package/lib/builder/index.d.ts +6 -0
- package/lib/builder/type.d.ts +96 -0
- package/lib/builder/utils.d.ts +10 -0
- package/lib/builder/utils.js +104 -0
- package/lib/component/BaseControl.js +5 -3
- package/lib/component/InputComponentName.js +3 -1
- package/lib/component/TableViewEditor.js +3 -1
- package/lib/icons/btn/btn-group.svg.js +3 -1
- package/lib/icons/btn/btn-select.svg.js +3 -1
- package/lib/icons/btn/btn-toolbar.svg.js +3 -1
- package/lib/icons/btn/button.svg.js +3 -1
- package/lib/icons/btn/dropdown-btn.svg.js +3 -1
- package/lib/icons/container/anchor-nav.svg.js +3 -1
- package/lib/icons/container/collapse.svg.js +3 -1
- package/lib/icons/container/container.svg.js +3 -1
- package/lib/icons/container/flex-container.svg.js +3 -1
- package/lib/icons/container/form-group.svg.js +3 -1
- package/lib/icons/container/grid.svg.js +3 -1
- package/lib/icons/container/iframe.svg.js +3 -1
- package/lib/icons/container/panel.svg.js +3 -1
- package/lib/icons/container/table-view.svg.js +3 -1
- package/lib/icons/container/tabs.svg.js +3 -1
- package/lib/icons/container/tooltip-wrapper.svg.js +3 -1
- package/lib/icons/container/web-component.svg.js +3 -1
- package/lib/icons/crud/column-add.svg.js +50 -0
- package/lib/icons/crud/column-delete.svg.js +48 -0
- package/lib/icons/crud/column-setting.svg.js +48 -0
- package/lib/icons/crud/share-link.svg.js +46 -0
- package/lib/icons/display/aBaseline.svg.js +3 -1
- package/lib/icons/display/aCenter.svg.js +3 -1
- package/lib/icons/display/aFlexEnd.svg.js +3 -1
- package/lib/icons/display/aFlexStart.svg.js +3 -1
- package/lib/icons/display/aStretch.svg.js +3 -1
- package/lib/icons/display/block.svg.js +3 -1
- package/lib/icons/display/dcolumn.svg.js +3 -1
- package/lib/icons/display/dcolumnReverse.svg.js +3 -1
- package/lib/icons/display/drow.svg.js +3 -1
- package/lib/icons/display/drowReverse.svg.js +3 -1
- package/lib/icons/display/flex.svg.js +3 -1
- package/lib/icons/display/inline-block.svg.js +3 -1
- package/lib/icons/display/inline.svg.js +3 -1
- package/lib/icons/display/jCenter.svg.js +3 -1
- package/lib/icons/display/jFlexEnd.svg.js +3 -1
- package/lib/icons/display/jFlexStart.svg.js +3 -1
- package/lib/icons/display/jSpaceAround.svg.js +3 -1
- package/lib/icons/display/jSpaceBetween.svg.js +3 -1
- package/lib/icons/feat/audio.svg.js +3 -1
- package/lib/icons/feat/custom.svg.js +3 -1
- package/lib/icons/feat/each.svg.js +3 -1
- package/lib/icons/feat/form.svg.js +3 -1
- package/lib/icons/feat/nav.svg.js +3 -1
- package/lib/icons/feat/qrcode.svg.js +3 -1
- package/lib/icons/feat/service.svg.js +3 -1
- package/lib/icons/feat/table.svg.js +3 -1
- package/lib/icons/feat/tasks.svg.js +3 -1
- package/lib/icons/feat/video.svg.js +3 -1
- package/lib/icons/feat/wizard.svg.js +3 -1
- package/lib/icons/form/chained-select.svg.js +3 -1
- package/lib/icons/form/checkbox.svg.js +3 -1
- package/lib/icons/form/checkboxes.svg.js +3 -1
- package/lib/icons/form/combo.svg.js +3 -1
- package/lib/icons/form/condition-builder.svg.js +3 -1
- package/lib/icons/form/diff-editor.svg.js +3 -1
- package/lib/icons/form/editor.svg.js +3 -1
- package/lib/icons/form/formula.svg.js +3 -1
- package/lib/icons/form/hidden.svg.js +3 -1
- package/lib/icons/form/input-city.svg.js +3 -1
- package/lib/icons/form/input-color.svg.js +3 -1
- package/lib/icons/form/input-date-range.svg.js +3 -1
- package/lib/icons/form/input-date.svg.js +3 -1
- package/lib/icons/form/input-datetime.svg.js +3 -1
- package/lib/icons/form/input-email.svg.js +3 -1
- package/lib/icons/form/input-excel.svg.js +3 -1
- package/lib/icons/form/input-file.svg.js +3 -1
- package/lib/icons/form/input-group.svg.js +3 -1
- package/lib/icons/form/input-image.svg.js +3 -1
- package/lib/icons/form/input-kv.svg.js +3 -1
- package/lib/icons/form/input-month-range.svg.js +3 -1
- package/lib/icons/form/input-number.svg.js +3 -1
- package/lib/icons/form/input-password.svg.js +3 -1
- package/lib/icons/form/input-quarter-range.svg.js +3 -1
- package/lib/icons/form/input-range.svg.js +3 -1
- package/lib/icons/form/input-rating.svg.js +3 -1
- package/lib/icons/form/input-repeat.svg.js +3 -1
- package/lib/icons/form/input-rich-text.svg.js +3 -1
- package/lib/icons/form/input-tag.svg.js +3 -1
- package/lib/icons/form/input-text.svg.js +3 -1
- package/lib/icons/form/input-time-range.svg.js +3 -1
- package/lib/icons/form/input-time.svg.js +3 -1
- package/lib/icons/form/input-tree.svg.js +3 -1
- package/lib/icons/form/input-url.svg.js +3 -1
- package/lib/icons/form/input-year.svg.js +3 -1
- package/lib/icons/form/inputArray.svg.js +3 -1
- package/lib/icons/form/list-select.svg.js +3 -1
- package/lib/icons/form/location-picker.svg.js +3 -1
- package/lib/icons/form/matrix-checkboxes.svg.js +3 -1
- package/lib/icons/form/month.svg.js +3 -1
- package/lib/icons/form/nested-select.svg.js +3 -1
- package/lib/icons/form/picker.svg.js +3 -1
- package/lib/icons/form/quarter.svg.js +3 -1
- package/lib/icons/form/radios.svg.js +3 -1
- package/lib/icons/form/select.svg.js +3 -1
- package/lib/icons/form/static.svg.js +3 -1
- package/lib/icons/form/sub-form.svg.js +3 -1
- package/lib/icons/form/switch.svg.js +3 -1
- package/lib/icons/form/tabs-transfer.svg.js +3 -1
- package/lib/icons/form/textarea.svg.js +3 -1
- package/lib/icons/form/transfer.svg.js +3 -1
- package/lib/icons/form/tree-select.svg.js +3 -1
- package/lib/icons/form/uuid.svg.js +3 -1
- package/lib/icons/index.js +12 -1
- package/lib/icons/layout/layout-1with2.svg.js +3 -1
- package/lib/icons/layout/layout-2cols.svg.js +3 -1
- package/lib/icons/layout/layout-2row.svg.js +3 -1
- package/lib/icons/layout/layout-2with1.svg.js +3 -1
- package/lib/icons/layout/layout-3cols.svg.js +3 -1
- package/lib/icons/layout/layout-3row.svg.js +3 -1
- package/lib/icons/layout/layout-absolute.svg.js +3 -1
- package/lib/icons/layout/layout-fixed-top.svg.js +3 -1
- package/lib/icons/layout/layout-fixed.svg.js +3 -1
- package/lib/icons/layout/layout-free-container.svg.js +3 -1
- package/lib/icons/layout/layout-full.svg.js +3 -1
- package/lib/icons/layout/layout1-2.svg.js +3 -1
- package/lib/icons/layout/layout2-1.svg.js +3 -1
- package/lib/icons/layout/layout3-1.svg.js +3 -1
- package/lib/icons/layout/layout3-2.svg.js +3 -1
- package/lib/icons/other/_fx.svg.js +3 -1
- package/lib/icons/other/divider.svg.js +3 -1
- package/lib/icons/other/fx.svg.js +3 -1
- package/lib/icons/other/property-sheet.svg.js +3 -1
- package/lib/icons/other/tooltip.svg.js +3 -1
- package/lib/icons/show/URL.svg.js +3 -1
- package/lib/icons/show/avatar.svg.js +3 -1
- package/lib/icons/show/breadcrumb.svg.js +3 -1
- package/lib/icons/show/card.svg.js +3 -1
- package/lib/icons/show/cards.svg.js +3 -1
- package/lib/icons/show/carousel.svg.js +3 -1
- package/lib/icons/show/chart.svg.js +3 -1
- package/lib/icons/show/code.svg.js +3 -1
- package/lib/icons/show/date.svg.js +3 -1
- package/lib/icons/show/datetime.svg.js +3 -1
- package/lib/icons/show/image.svg.js +3 -1
- package/lib/icons/show/images.svg.js +3 -1
- package/lib/icons/show/json-view.svg.js +3 -1
- package/lib/icons/show/list.svg.js +3 -1
- package/lib/icons/show/log.svg.js +3 -1
- package/lib/icons/show/mapping.svg.js +3 -1
- package/lib/icons/show/markdown.svg.js +3 -1
- package/lib/icons/show/plain.svg.js +3 -1
- package/lib/icons/show/progress.svg.js +3 -1
- package/lib/icons/show/sparkline.svg.js +3 -1
- package/lib/icons/show/status.svg.js +3 -1
- package/lib/icons/show/steps.svg.js +3 -1
- package/lib/icons/show/time.svg.js +3 -1
- package/lib/icons/theme/css.svg.js +3 -1
- package/lib/index.d.ts +8 -0
- package/lib/index.js +47 -6
- package/lib/locale/en-US.js +241 -19
- package/lib/locale/zh-CN.js +235 -7
- package/lib/plugin/Alert.js +3 -1
- package/lib/plugin/AnchorNav.js +3 -1
- package/lib/plugin/Audio.js +3 -1
- package/lib/plugin/Avatar.js +3 -1
- package/lib/plugin/Breadcrumb.js +3 -1
- package/lib/plugin/Button.js +5 -3
- package/lib/plugin/ButtonGroup.js +3 -1
- package/lib/plugin/CRUD.js +3 -1
- package/lib/plugin/CRUD2/BaseCRUD.d.ts +233 -0
- package/lib/plugin/CRUD2/BaseCRUD.js +1060 -0
- package/lib/plugin/CRUD2/CRUDCards.d.ts +53 -0
- package/lib/plugin/CRUD2/CRUDList.d.ts +53 -0
- package/lib/plugin/CRUD2/CRUDTable.d.ts +21 -0
- package/lib/plugin/CRUD2/CRUDTable.js +52 -0
- package/lib/plugin/CRUD2/constants.d.ts +32 -0
- package/lib/plugin/CRUD2/constants.js +81 -0
- package/lib/plugin/CRUD2/utils.d.ts +8 -0
- package/lib/plugin/CRUD2/utils.js +103 -0
- package/lib/plugin/Card.js +3 -1
- package/lib/plugin/Card2.js +3 -1
- package/lib/plugin/Cards.d.ts +547 -41
- package/lib/plugin/Cards.js +365 -167
- package/lib/plugin/Carousel.js +120 -97
- package/lib/plugin/Chart.js +17 -5
- package/lib/plugin/CodeView.js +3 -1
- package/lib/plugin/Collapse.d.ts +2 -1
- package/lib/plugin/Collapse.js +50 -1
- package/lib/plugin/CollapseGroup.js +3 -1
- package/lib/plugin/ColumnToggler.d.ts +11 -6
- package/lib/plugin/ColumnToggler.js +72 -9
- package/lib/plugin/Container.d.ts +2 -0
- package/lib/plugin/Container.js +8 -8
- package/lib/plugin/Custom.js +3 -1
- package/lib/plugin/CustomRegion.js +5 -2
- package/lib/plugin/Date.js +3 -1
- package/lib/plugin/Datetime.js +3 -1
- package/lib/plugin/Dialog.d.ts +13 -1
- package/lib/plugin/Dialog.js +184 -53
- package/lib/plugin/Divider.js +72 -6
- package/lib/plugin/Drawer.js +125 -76
- package/lib/plugin/DropDownButton.js +3 -1
- package/lib/plugin/Each.d.ts +226 -11
- package/lib/plugin/Each.js +234 -89
- package/lib/plugin/Flex.js +3 -1
- package/lib/plugin/Form/ButtonGroupSelect.js +25 -23
- package/lib/plugin/Form/ButtonToolbar.js +3 -1
- package/lib/plugin/Form/ChainedSelect.js +21 -19
- package/lib/plugin/Form/Checkbox.js +55 -12
- package/lib/plugin/Form/Checkboxes.js +33 -42
- package/lib/plugin/Form/CodeEditor.js +3 -1
- package/lib/plugin/Form/Combo.d.ts +3 -2
- package/lib/plugin/Form/Combo.js +8 -5
- package/lib/plugin/Form/ConditionBuilder.js +3 -1
- package/lib/plugin/Form/Control.js +3 -1
- package/lib/plugin/Form/DiffEditor.js +3 -1
- package/lib/plugin/Form/FieldSet.js +3 -1
- package/lib/plugin/Form/Form.d.ts +32 -8
- package/lib/plugin/Form/Form.js +598 -440
- package/lib/plugin/Form/Formula.js +3 -1
- package/lib/plugin/Form/Group.js +3 -1
- package/lib/plugin/Form/Hidden.js +3 -1
- package/lib/plugin/Form/InputArray.js +3 -1
- package/lib/plugin/Form/InputCity.js +6 -2
- package/lib/plugin/Form/InputColor.js +3 -1
- package/lib/plugin/Form/InputDate.js +29 -43
- package/lib/plugin/Form/InputDateRange.js +41 -30
- package/lib/plugin/Form/InputDateTime.js +3 -1
- package/lib/plugin/Form/InputDateTimeRange.js +3 -1
- package/lib/plugin/Form/InputEmail.js +3 -1
- package/lib/plugin/Form/InputExcel.js +3 -1
- package/lib/plugin/Form/InputFile.js +8 -2
- package/lib/plugin/Form/InputGroup.d.ts +1 -0
- package/lib/plugin/Form/InputGroup.js +3 -1
- package/lib/plugin/Form/InputImage.js +12 -6
- package/lib/plugin/Form/InputKV.js +3 -1
- package/lib/plugin/Form/InputMonth.js +3 -1
- package/lib/plugin/Form/InputMonthRange.js +3 -1
- package/lib/plugin/Form/InputNumber.js +3 -1
- package/lib/plugin/Form/InputPassword.js +3 -1
- package/lib/plugin/Form/InputQuarter.js +3 -1
- package/lib/plugin/Form/InputQuarterRange.js +3 -1
- package/lib/plugin/Form/InputRange.js +23 -35
- package/lib/plugin/Form/InputRating.js +3 -1
- package/lib/plugin/Form/InputRepeat.js +3 -1
- package/lib/plugin/Form/InputRichText.js +3 -1
- package/lib/plugin/Form/InputSubForm.js +3 -1
- package/lib/plugin/Form/InputTable.d.ts +3 -2
- package/lib/plugin/Form/InputTable.js +12 -7
- package/lib/plugin/Form/InputTag.d.ts +4 -1
- package/lib/plugin/Form/InputTag.js +33 -22
- package/lib/plugin/Form/InputText.js +23 -23
- package/lib/plugin/Form/InputTime.js +3 -1
- package/lib/plugin/Form/InputTimeRange.js +3 -1
- package/lib/plugin/Form/InputTree.js +69 -54
- package/lib/plugin/Form/InputURL.js +3 -1
- package/lib/plugin/Form/InputYear.js +3 -1
- package/lib/plugin/Form/InputYearRange.js +3 -1
- package/lib/plugin/Form/Item.js +3 -1
- package/lib/plugin/Form/ListSelect.js +25 -23
- package/lib/plugin/Form/LocationPicker.js +3 -1
- package/lib/plugin/Form/MatrixCheckboxes.js +3 -1
- package/lib/plugin/Form/NestedSelect.js +25 -23
- package/lib/plugin/Form/Picker.js +22 -22
- package/lib/plugin/Form/Radios.js +20 -18
- package/lib/plugin/Form/Select.d.ts +8 -8
- package/lib/plugin/Form/Select.js +41 -72
- package/lib/plugin/Form/Static.js +3 -1
- package/lib/plugin/Form/Switch.js +3 -1
- package/lib/plugin/Form/TabsTransfer.d.ts +2 -3
- package/lib/plugin/Form/TabsTransfer.js +58 -44
- package/lib/plugin/Form/Textarea.js +3 -1
- package/lib/plugin/Form/Transfer.js +25 -23
- package/lib/plugin/Form/TreeSelect.js +59 -51
- package/lib/plugin/Form/UUID.js +3 -1
- package/lib/plugin/Grid.js +3 -1
- package/lib/plugin/HBox.js +3 -1
- package/lib/plugin/IFrame.js +3 -1
- package/lib/plugin/Icon.js +5 -3
- package/lib/plugin/Image.js +54 -31
- package/lib/plugin/Images.js +22 -10
- package/lib/plugin/Json.js +3 -1
- package/lib/plugin/Layout/FlexPluginBase.js +14 -15
- package/lib/plugin/Layout/Layout_fixed.js +3 -1
- package/lib/plugin/Layout/Layout_free_container.js +3 -1
- package/lib/plugin/Layout/Layout_sorption_container.js +3 -1
- package/lib/plugin/Link.js +17 -5
- package/lib/plugin/List.d.ts +5 -0
- package/lib/plugin/List.js +54 -17
- package/lib/plugin/List2.d.ts +545 -0
- package/lib/plugin/List2.js +388 -0
- package/lib/plugin/ListItem.js +3 -1
- package/lib/plugin/Log.js +3 -1
- package/lib/plugin/Mapping.js +3 -1
- package/lib/plugin/Markdown.js +3 -1
- package/lib/plugin/Nav.js +3 -1
- package/lib/plugin/OfficeViewer.js +3 -1
- package/lib/plugin/Operation.js +3 -2
- package/lib/plugin/Others/Action.js +3 -1
- package/lib/plugin/Others/TableCell.js +3 -1
- package/lib/plugin/Page.js +27 -2
- package/lib/plugin/Pagination.d.ts +0 -1
- package/lib/plugin/Pagination.js +38 -18
- package/lib/plugin/Panel.js +3 -1
- package/lib/plugin/Plain.js +3 -1
- package/lib/plugin/Progress.js +3 -1
- package/lib/plugin/Property.js +3 -1
- package/lib/plugin/QRCode.js +3 -1
- package/lib/plugin/Reset.js +3 -1
- package/lib/plugin/SearchBox.d.ts +3 -1
- package/lib/plugin/SearchBox.js +14 -1
- package/lib/plugin/Service.d.ts +19 -13
- package/lib/plugin/Service.js +167 -89
- package/lib/plugin/Sparkline.js +5 -6
- package/lib/plugin/Status.js +3 -1
- package/lib/plugin/Steps.js +3 -1
- package/lib/plugin/Submit.js +3 -1
- package/lib/plugin/Table.d.ts +9 -0
- package/lib/plugin/Table.js +53 -4
- package/lib/plugin/Table2.d.ts +24 -10
- package/lib/plugin/Table2.js +672 -418
- package/lib/plugin/TableCell2.d.ts +14 -2
- package/lib/plugin/TableCell2.js +509 -363
- package/lib/plugin/TableView.js +3 -1
- package/lib/plugin/Tabs.js +3 -1
- package/lib/plugin/Tag.js +10 -2
- package/lib/plugin/Tasks.js +3 -1
- package/lib/plugin/Time.js +3 -1
- package/lib/plugin/Timeline.js +3 -1
- package/lib/plugin/TooltipWrapper.js +12 -9
- package/lib/plugin/Tpl.js +21 -3
- package/lib/plugin/Video.js +3 -1
- package/lib/plugin/WebComponent.js +3 -1
- package/lib/plugin/Wizard.js +3 -1
- package/lib/plugin/Wrapper.js +3 -1
- package/lib/plugin/index.d.ts +2 -1
- package/lib/renderer/APIAdaptorControl.d.ts +14 -0
- package/lib/renderer/APIAdaptorControl.js +27 -39
- package/lib/renderer/APIControl.js +12 -2
- package/lib/renderer/ActionApiControl.d.ts +6 -0
- package/lib/renderer/BadgeControl.d.ts +6 -6
- package/lib/renderer/BadgeControl.js +3 -1
- package/lib/renderer/ButtonGroupControl.js +3 -1
- package/lib/renderer/DataBindingControl.d.ts +1 -1
- package/lib/renderer/DataBindingControl.js +3 -1
- package/lib/renderer/DataMappingControl.js +3 -1
- package/lib/renderer/DataPickerControl.js +3 -1
- package/lib/renderer/DateShortCutControl.d.ts +1 -0
- package/lib/renderer/DateShortCutControl.js +9 -5
- package/lib/renderer/ExpressionFormulaControl.js +3 -1
- package/lib/renderer/FeatureControl.d.ts +17 -4
- package/lib/renderer/FeatureControl.js +75 -13
- package/lib/renderer/FieldSetting.d.ts +66 -0
- package/lib/renderer/FieldSetting.js +503 -0
- package/lib/renderer/FlexSettingControl.js +3 -1
- package/lib/renderer/FormulaControl.d.ts +6 -1
- package/lib/renderer/FormulaControl.js +23 -6
- package/lib/renderer/FunctionEditorControl.d.ts +79 -0
- package/lib/renderer/FunctionEditorControl.js +115 -0
- package/lib/renderer/GoConfigControl.js +3 -1
- package/lib/renderer/InputRangeValueControl.d.ts +15 -0
- package/lib/renderer/InputRangeValueControl.js +127 -0
- package/lib/renderer/MapSourceControl.js +3 -1
- package/lib/renderer/NavBadgeControl.d.ts +6 -6
- package/lib/renderer/NavBadgeControl.js +3 -1
- package/lib/renderer/NavDefaultActive.js +3 -1
- package/lib/renderer/NavSourceControl.js +3 -1
- package/lib/renderer/OptionControl.d.ts +2 -0
- package/lib/renderer/OptionControl.js +35 -23
- package/lib/renderer/RangePartsControl.js +3 -1
- package/lib/renderer/StatusControl.js +3 -1
- package/lib/renderer/SwitchMoreControl.d.ts +6 -0
- package/lib/renderer/SwitchMoreControl.js +14 -2
- package/lib/renderer/TableColumnWidthControl.d.ts +29 -0
- package/lib/renderer/TableColumnWidthControl.js +186 -0
- package/lib/renderer/TimelineItemControl.js +3 -1
- package/lib/renderer/TplFormulaControl.js +3 -1
- package/lib/renderer/TransferTableControl.js +3 -1
- package/lib/renderer/TreeOptionControl.d.ts +1 -1
- package/lib/renderer/TreeOptionControl.js +8 -6
- package/lib/renderer/ValidationControl.js +3 -1
- package/lib/renderer/ValidationItem.js +3 -1
- package/lib/renderer/crud2-control/AddColumnModal.d.ts +6 -0
- package/lib/renderer/crud2-control/AddColumnModal.js +265 -0
- package/lib/renderer/crud2-control/CRUDColumnControl.d.ts +68 -0
- package/lib/renderer/crud2-control/CRUDColumnControl.js +482 -0
- package/lib/renderer/crud2-control/CRUDFiltersControl.d.ts +53 -0
- package/lib/renderer/crud2-control/CRUDFiltersControl.js +701 -0
- package/lib/renderer/crud2-control/CRUDToolbarControl.d.ts +49 -0
- package/lib/renderer/crud2-control/CRUDToolbarControl.js +426 -0
- package/lib/renderer/event-control/action-config-dialog.d.ts +1 -1
- package/lib/renderer/event-control/action-config-dialog.js +4 -2
- package/lib/renderer/event-control/action-config-panel.js +3 -1
- package/lib/renderer/event-control/comp-action-select.js +3 -1
- package/lib/renderer/event-control/helper.d.ts +2 -1
- package/lib/renderer/event-control/helper.js +168 -115
- package/lib/renderer/event-control/index.d.ts +26 -17
- package/lib/renderer/event-control/index.js +114 -22
- package/lib/renderer/style-control/Background.js +3 -1
- package/lib/renderer/style-control/Border.js +3 -1
- package/lib/renderer/style-control/BoxModel.js +3 -1
- package/lib/renderer/style-control/BoxShadow.js +3 -1
- package/lib/renderer/style-control/Display.js +3 -1
- package/lib/renderer/style-control/Font.js +3 -1
- package/lib/renderer/style-control/InsetBoxModel.js +3 -1
- package/lib/renderer/style-control/ThemeCssCode.js +131 -280
- package/lib/renderer/style-control/font-family.js +3 -1
- package/lib/renderer/style-control/helper.js +3 -1
- package/lib/renderer/style-control/transformation.js +3 -1
- package/lib/renderer/textarea-formula/FormulaPicker.js +3 -1
- package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +2 -0
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +75 -6
- package/lib/renderer/textarea-formula/plugin.js +5 -3
- package/lib/tpl/api.js +14 -9
- package/lib/tpl/common.js +52 -34
- package/lib/tpl/horizontal.js +3 -1
- package/lib/tpl/layout.js +10 -6
- package/lib/tpl/options.d.ts +10 -1
- package/lib/tpl/options.js +249 -9
- package/lib/tpl/remark.js +3 -1
- package/lib/tpl/style.js +99 -60
- package/lib/tpl/validations.js +3 -1
- package/lib/util.d.ts +8 -0
- package/lib/util.js +20 -1
- package/lib/validator.js +3 -1
- package/package.json +1 -1
- package/esm/plugin/CRUD2.d.ts +0 -78
- package/esm/plugin/CRUD2.js +0 -1556
- package/esm/renderer/style-control/themeLanguage.d.ts +0 -1
- package/esm/renderer/style-control/themeLanguage.js +0 -1894
- package/lib/plugin/CRUD2.d.ts +0 -78
- package/lib/plugin/CRUD2.js +0 -1572
- package/lib/renderer/style-control/themeLanguage.d.ts +0 -1
- package/lib/renderer/style-control/themeLanguage.js +0 -1902
@@ -0,0 +1,79 @@
|
|
1
|
+
/**
|
2
|
+
* @file 函数编辑器
|
3
|
+
*/
|
4
|
+
import React from 'react';
|
5
|
+
import { FormControlProps } from 'amis-core';
|
6
|
+
import { TooltipObject } from 'amis-ui/lib/components/TooltipWrapper';
|
7
|
+
interface FuncParam {
|
8
|
+
label: string;
|
9
|
+
tip?: string | TooltipObject;
|
10
|
+
}
|
11
|
+
export interface FunctionEditorControlProps extends FormControlProps {
|
12
|
+
/**
|
13
|
+
* 适配器函数参数
|
14
|
+
*/
|
15
|
+
params?: FuncParam[];
|
16
|
+
/**
|
17
|
+
* 复用适配器 函数参数提示
|
18
|
+
*/
|
19
|
+
mergeParams?: (params: FuncParam[]) => FuncParam[];
|
20
|
+
/**
|
21
|
+
* 代码编辑器底部的 description
|
22
|
+
*/
|
23
|
+
desc?: any;
|
24
|
+
/**
|
25
|
+
* 代码编辑器的placeholder
|
26
|
+
*/
|
27
|
+
placeholder?: string;
|
28
|
+
/**
|
29
|
+
* 自定义提示参数
|
30
|
+
*/
|
31
|
+
tooltipProps?: TooltipObject;
|
32
|
+
}
|
33
|
+
export default class FunctionEditorControl extends React.Component<FunctionEditorControlProps, {}> {
|
34
|
+
static defaultProps: Pick<FunctionEditorControlProps, 'params'>;
|
35
|
+
onChange(value?: any): void;
|
36
|
+
genTooltipProps(content: any, othersProps?: TooltipObject): {
|
37
|
+
title?: string | undefined;
|
38
|
+
content: string;
|
39
|
+
placement: string;
|
40
|
+
tooltipTheme: string;
|
41
|
+
offset?: [number, number] | undefined;
|
42
|
+
style?: React.CSSProperties | undefined;
|
43
|
+
enterable?: boolean | undefined;
|
44
|
+
showArrow?: boolean | undefined;
|
45
|
+
disabled?: boolean | undefined;
|
46
|
+
mouseEnterDelay?: number | undefined;
|
47
|
+
mouseLeaveDelay?: number | undefined;
|
48
|
+
children?: (() => JSX.Element) | undefined;
|
49
|
+
container?: HTMLElement | (() => HTMLElement | null | undefined) | undefined;
|
50
|
+
trigger: string | import("amis-ui/lib/components/TooltipWrapper").Trigger[];
|
51
|
+
rootClose: boolean;
|
52
|
+
tooltipClassName: string;
|
53
|
+
tooltipBodyClassName?: string | undefined;
|
54
|
+
filterHtml?: ((input: string) => string) | undefined;
|
55
|
+
} | {
|
56
|
+
title?: string | undefined;
|
57
|
+
content: string;
|
58
|
+
placement: string;
|
59
|
+
tooltipTheme: string;
|
60
|
+
offset?: [number, number] | undefined;
|
61
|
+
style?: React.CSSProperties | undefined;
|
62
|
+
enterable?: boolean | undefined;
|
63
|
+
showArrow?: boolean | undefined;
|
64
|
+
disabled?: boolean | undefined;
|
65
|
+
mouseEnterDelay?: number | undefined;
|
66
|
+
mouseLeaveDelay?: number | undefined;
|
67
|
+
children: () => any;
|
68
|
+
container?: HTMLElement | (() => HTMLElement | null | undefined) | undefined;
|
69
|
+
trigger: string | import("amis-ui/lib/components/TooltipWrapper").Trigger[];
|
70
|
+
rootClose: boolean;
|
71
|
+
tooltipClassName: string;
|
72
|
+
tooltipBodyClassName?: string | undefined;
|
73
|
+
filterHtml?: ((input: string) => string) | undefined;
|
74
|
+
};
|
75
|
+
render(): React.JSX.Element;
|
76
|
+
}
|
77
|
+
export declare class FunctionEditorControlRenderer extends FunctionEditorControl {
|
78
|
+
}
|
79
|
+
export {};
|
@@ -0,0 +1,115 @@
|
|
1
|
+
/**
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
4
|
+
* Copyright 2018-2023 @fex
|
5
|
+
*/
|
6
|
+
|
7
|
+
'use strict';
|
8
|
+
|
9
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
10
|
+
|
11
|
+
var tslib = require('tslib');
|
12
|
+
var React = require('react');
|
13
|
+
var amisEditorCore = require('amis-editor-core');
|
14
|
+
var amis = require('amis');
|
15
|
+
|
16
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
17
|
+
|
18
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
19
|
+
|
20
|
+
/**
|
21
|
+
* @file 函数编辑器
|
22
|
+
*/
|
23
|
+
var FunctionEditorControl = /** @class */ (function (_super) {
|
24
|
+
tslib.__extends(FunctionEditorControl, _super);
|
25
|
+
function FunctionEditorControl() {
|
26
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
27
|
+
}
|
28
|
+
FunctionEditorControl.prototype.onChange = function (value) {
|
29
|
+
var _a, _b;
|
30
|
+
if (value === void 0) { value = ''; }
|
31
|
+
(_b = (_a = this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, value);
|
32
|
+
};
|
33
|
+
// 生成tooltip 的参数
|
34
|
+
FunctionEditorControl.prototype.genTooltipProps = function (content, othersProps) {
|
35
|
+
var render = this.props.render;
|
36
|
+
return tslib.__assign(tslib.__assign(tslib.__assign({ tooltipTheme: 'light', trigger: 'hover', rootClose: true, placement: 'top', tooltipClassName: 'ae-FunctionEditorControl-desc-tooltip' }, (typeof content === 'string'
|
37
|
+
? { content: content }
|
38
|
+
: {
|
39
|
+
content: ' ',
|
40
|
+
children: function () {
|
41
|
+
return React__default["default"].isValidElement(content)
|
42
|
+
? content
|
43
|
+
: render('content', content);
|
44
|
+
}
|
45
|
+
})), (this.props.tooltipProps || {})), (othersProps || {}));
|
46
|
+
};
|
47
|
+
FunctionEditorControl.prototype.render = function () {
|
48
|
+
var _this = this;
|
49
|
+
var _a = this.props, render = _a.render, _b = _a.params, params = _b === void 0 ? [] : _b, allowFullscreen = _a.allowFullscreen, value = _a.value, placeholder = _a.placeholder; _a.desc; var mergeParams = _a.mergeParams;
|
50
|
+
var lastParams = typeof mergeParams === 'function' ? mergeParams(params) : params;
|
51
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
52
|
+
render('api-function-editor-control-editor/0', {
|
53
|
+
type: 'container',
|
54
|
+
className: 'ae-FunctionEditorControl-func-header',
|
55
|
+
body: tslib.__spreadArray(tslib.__spreadArray([
|
56
|
+
'<span class="mtk6">function </span>',
|
57
|
+
'<span class="mtk1 bracket-highlighting-0">(</span>'
|
58
|
+
], tslib.__read(lastParams
|
59
|
+
.map(function (_a, index) {
|
60
|
+
var label = _a.label, tip = _a.tip;
|
61
|
+
return tslib.__spreadArray([
|
62
|
+
tslib.__assign({ type: 'button', level: 'link', label: label, className: 'ae-FunctionEditorControl-func-arg' }, (tip ? { tooltip: _this.genTooltipProps(tip) } : {}))
|
63
|
+
], tslib.__read((index === lastParams.length - 1
|
64
|
+
? []
|
65
|
+
: ['<span class="mtk1">, </span>'])), false);
|
66
|
+
})
|
67
|
+
.flat()), false), [
|
68
|
+
'<span class="mtk1 bracket-highlighting-0">) {</span>'
|
69
|
+
], false)
|
70
|
+
}),
|
71
|
+
render('api-function-editor-control-editor/1', {
|
72
|
+
label: '',
|
73
|
+
name: '__whatever_name_adpator',
|
74
|
+
placeholder: placeholder || '',
|
75
|
+
mode: 'normal',
|
76
|
+
type: 'js-editor',
|
77
|
+
className: 'ae-FunctionEditorControl-func-editor',
|
78
|
+
allowFullscreen: allowFullscreen
|
79
|
+
}, {
|
80
|
+
value: value,
|
81
|
+
onChange: this.onChange
|
82
|
+
}),
|
83
|
+
render('api-function-editor-control-editor/2', {
|
84
|
+
type: 'container',
|
85
|
+
body: '<span class="mtk1 bracket-highlighting-0">}</span>',
|
86
|
+
className: 'ae-FunctionEditorControl-func-footer'
|
87
|
+
})));
|
88
|
+
};
|
89
|
+
FunctionEditorControl.defaultProps = {
|
90
|
+
params: []
|
91
|
+
};
|
92
|
+
tslib.__decorate([
|
93
|
+
amisEditorCore.autobind,
|
94
|
+
tslib.__metadata("design:type", Function),
|
95
|
+
tslib.__metadata("design:paramtypes", [Object]),
|
96
|
+
tslib.__metadata("design:returntype", void 0)
|
97
|
+
], FunctionEditorControl.prototype, "onChange", null);
|
98
|
+
return FunctionEditorControl;
|
99
|
+
}(React__default["default"].Component));
|
100
|
+
/** @class */ ((function (_super) {
|
101
|
+
tslib.__extends(FunctionEditorControlRenderer, _super);
|
102
|
+
function FunctionEditorControlRenderer() {
|
103
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
104
|
+
}
|
105
|
+
FunctionEditorControlRenderer = tslib.__decorate([
|
106
|
+
amis.FormItem({
|
107
|
+
type: 'ae-functionEditorControl',
|
108
|
+
renderLabel: false
|
109
|
+
})
|
110
|
+
], FunctionEditorControlRenderer);
|
111
|
+
return FunctionEditorControlRenderer;
|
112
|
+
})(FunctionEditorControl));
|
113
|
+
|
114
|
+
exports["default"] = FunctionEditorControl;
|
115
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
3
4
|
* Copyright 2018-2023 @fex
|
4
5
|
*/
|
5
6
|
|
@@ -67,3 +68,4 @@ var GoConfigControl = /** @class */function (_super) {
|
|
67
68
|
})(GoConfigControl);
|
68
69
|
|
69
70
|
exports.GoConfigControl = GoConfigControl;
|
71
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* @file InputRangeValue
|
3
|
+
* @description 滑块组件默认值控件
|
4
|
+
*/
|
5
|
+
import React from 'react';
|
6
|
+
import type { FormControlProps } from 'amis-core';
|
7
|
+
export interface InputRangeValueProps extends FormControlProps {
|
8
|
+
value?: any;
|
9
|
+
minField?: string;
|
10
|
+
maxField?: string;
|
11
|
+
onChange: (value: any) => void;
|
12
|
+
}
|
13
|
+
export default class InputRangeValueRenderer extends React.Component<FormControlProps> {
|
14
|
+
render(): React.JSX.Element;
|
15
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
/**
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
4
|
+
* Copyright 2018-2023 @fex
|
5
|
+
*/
|
6
|
+
|
7
|
+
'use strict';
|
8
|
+
|
9
|
+
var tslib = require('tslib');
|
10
|
+
var React = require('react');
|
11
|
+
var amis = require('amis');
|
12
|
+
|
13
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
14
|
+
|
15
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @file InputRangeValue
|
19
|
+
* @description 滑块组件默认值控件
|
20
|
+
*/
|
21
|
+
var InputRangeValue = function (props) {
|
22
|
+
var _a;
|
23
|
+
var cx = props.classnames, _b = props.minField, minField = _b === void 0 ? 'min' : _b, _c = props.maxField, maxField = _c === void 0 ? 'max' : _c, ctx = props.data, name = props.name, onChange = props.onChange, value = props.value, render = props.render;
|
24
|
+
var key = 'InputRangeValue';
|
25
|
+
var joinValues = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.joinValues) !== null && _a !== void 0 ? _a : true;
|
26
|
+
/** delimiter变化需要重新计算默认值 */
|
27
|
+
var delimiter = (ctx === null || ctx === void 0 ? void 0 : ctx.delimiter) || ',';
|
28
|
+
var extraName = ctx === null || ctx === void 0 ? void 0 : ctx.extraName;
|
29
|
+
/** 转化成对象格式 */
|
30
|
+
var pipeInValue = React.useCallback(function (value) {
|
31
|
+
var _a, _b, _c;
|
32
|
+
if (!value) {
|
33
|
+
return _a = {}, _a[minField] = undefined, _a[maxField] = undefined, _a;
|
34
|
+
}
|
35
|
+
if (typeof value === 'string') {
|
36
|
+
var _d = tslib.__read(value.split(delimiter), 2), lhs = _d[0], rhs = _d[1];
|
37
|
+
return _b = {}, _b[minField] = lhs, _b[maxField] = rhs, _b;
|
38
|
+
}
|
39
|
+
else if (Array.isArray(value)) {
|
40
|
+
return _c = {}, _c[minField] = value[0], _c[maxField] = value[1], _c;
|
41
|
+
}
|
42
|
+
else {
|
43
|
+
return value;
|
44
|
+
}
|
45
|
+
}, [minField, maxField, delimiter, value, joinValues, extraName]);
|
46
|
+
var handleSubmit = React.useCallback(function (value, action) {
|
47
|
+
var _a;
|
48
|
+
var updatedValue = value;
|
49
|
+
if (value[minField] == null || value[maxField] == null) {
|
50
|
+
return;
|
51
|
+
}
|
52
|
+
if (extraName) {
|
53
|
+
updatedValue = [value[minField], value[maxField]];
|
54
|
+
}
|
55
|
+
else {
|
56
|
+
if (joinValues) {
|
57
|
+
updatedValue = [value[minField], value[maxField]].join(delimiter || ',');
|
58
|
+
}
|
59
|
+
else {
|
60
|
+
updatedValue = (_a = {},
|
61
|
+
_a[minField] = value[minField],
|
62
|
+
_a[maxField] = value[maxField],
|
63
|
+
_a);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(updatedValue);
|
67
|
+
}, [key, minField, maxField, delimiter, joinValues, extraName, value]);
|
68
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null, render('input-range-value-control', {
|
69
|
+
type: 'form',
|
70
|
+
wrapWithPanel: false,
|
71
|
+
panelClassName: 'border-none shadow-none mb-0',
|
72
|
+
bodyClassName: 'p-none',
|
73
|
+
actionsClassName: 'border-none mt-2.5',
|
74
|
+
wrapperComponent: 'div',
|
75
|
+
formLazyChange: true,
|
76
|
+
preventEnterSubmit: true,
|
77
|
+
submitOnChange: true,
|
78
|
+
body: [
|
79
|
+
{
|
80
|
+
label: false,
|
81
|
+
type: 'input-group',
|
82
|
+
name: key,
|
83
|
+
className: cx('ae-InputRangeValue-input-group'),
|
84
|
+
body: [
|
85
|
+
{
|
86
|
+
type: 'input-number',
|
87
|
+
validations: 'isNumeric',
|
88
|
+
name: minField,
|
89
|
+
value: 0
|
90
|
+
},
|
91
|
+
{
|
92
|
+
type: 'html',
|
93
|
+
html: '-',
|
94
|
+
className: cx('ae-InputRangeValue-input-group-delimiter')
|
95
|
+
},
|
96
|
+
{
|
97
|
+
type: 'input-number',
|
98
|
+
validations: 'isNumeric',
|
99
|
+
name: maxField,
|
100
|
+
value: 100
|
101
|
+
}
|
102
|
+
]
|
103
|
+
}
|
104
|
+
]
|
105
|
+
}, {
|
106
|
+
data: name ? pipeInValue(ctx[name]) : {},
|
107
|
+
onSubmit: handleSubmit
|
108
|
+
})));
|
109
|
+
};
|
110
|
+
InputRangeValue.defaultProps = {
|
111
|
+
minField: 'min',
|
112
|
+
maxField: 'max'
|
113
|
+
};
|
114
|
+
/** @class */ ((function (_super) {
|
115
|
+
tslib.__extends(InputRangeValueRenderer, _super);
|
116
|
+
function InputRangeValueRenderer() {
|
117
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
118
|
+
}
|
119
|
+
InputRangeValueRenderer.prototype.render = function () {
|
120
|
+
return React__default["default"].createElement(InputRangeValue, tslib.__assign({}, this.props));
|
121
|
+
};
|
122
|
+
InputRangeValueRenderer = tslib.__decorate([
|
123
|
+
amis.FormItem({ type: 'ae-input-range-value' })
|
124
|
+
], InputRangeValueRenderer);
|
125
|
+
return InputRangeValueRenderer;
|
126
|
+
})(React__default["default"].Component));
|
127
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
3
4
|
* Copyright 2018-2023 @fex
|
4
5
|
*/
|
5
6
|
|
@@ -361,3 +362,4 @@ var MapSourceControl = /** @class */function (_super) {
|
|
361
362
|
})(MapSourceControl);
|
362
363
|
|
363
364
|
exports["default"] = MapSourceControl;
|
365
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -48,22 +48,22 @@ export default class BadgeControl extends React.Component<BadgeControlProps, Bad
|
|
48
48
|
normalizeBadgeValue(form: BadgeForm): {
|
49
49
|
offset: number[];
|
50
50
|
size?: any;
|
51
|
-
style?: unknown;
|
52
|
-
text?: unknown;
|
53
51
|
level?: any;
|
54
|
-
visibleOn?: unknown;
|
55
52
|
mode?: "text" | "dot" | "ribbon" | undefined;
|
53
|
+
visibleOn?: unknown;
|
54
|
+
style?: unknown;
|
55
|
+
text?: unknown;
|
56
56
|
position?: "top-right" | "top-left" | "bottom-left" | "bottom-right" | undefined;
|
57
57
|
animation?: unknown;
|
58
58
|
overflowCount?: number | undefined;
|
59
59
|
} | {
|
60
60
|
offset: [number, number];
|
61
61
|
size?: any;
|
62
|
-
style?: unknown;
|
63
|
-
text?: unknown;
|
64
62
|
level?: any;
|
65
|
-
visibleOn?: unknown;
|
66
63
|
mode?: "text" | "dot" | "ribbon" | undefined;
|
64
|
+
visibleOn?: unknown;
|
65
|
+
style?: unknown;
|
66
|
+
text?: unknown;
|
67
67
|
position?: "top-right" | "top-left" | "bottom-left" | "bottom-right" | undefined;
|
68
68
|
animation?: unknown;
|
69
69
|
overflowCount?: number | undefined;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
3
4
|
* Copyright 2018-2023 @fex
|
4
5
|
*/
|
5
6
|
|
@@ -290,3 +291,4 @@ var BadgeControl = /** @class */function (_super) {
|
|
290
291
|
})(BadgeControl);
|
291
292
|
|
292
293
|
exports["default"] = BadgeControl;
|
294
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
3
4
|
* Copyright 2018-2023 @fex
|
4
5
|
*/
|
5
6
|
|
@@ -113,3 +114,4 @@ var NavDefaultActiveControl = /** @class */function (_super) {
|
|
113
114
|
})(NavDefaultActiveControl);
|
114
115
|
|
115
116
|
exports["default"] = NavDefaultActiveControl;
|
117
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
3
4
|
* Copyright 2018-2023 @fex
|
4
5
|
*/
|
5
6
|
|
@@ -750,3 +751,4 @@ var NavSourceControl = /** @class */function (_super) {
|
|
750
751
|
})(NavSourceControl);
|
751
752
|
|
752
753
|
exports.NavSourceControl = NavSourceControl;
|
754
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -160,6 +160,8 @@ export default class OptionControl extends React.Component<OptionControlProps, O
|
|
160
160
|
handleAPIChange(source: SchemaApi): void;
|
161
161
|
handleLableFieldChange(labelField: string): void;
|
162
162
|
handleValueFieldChange(valueField: string): void;
|
163
|
+
/** 获取功能性字段控件 schema */
|
164
|
+
getFuncFieldSchema(): Record<string, any>[];
|
163
165
|
renderApiPanel(): any;
|
164
166
|
render(): React.JSX.Element;
|
165
167
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
3
4
|
* Copyright 2018-2023 @fex
|
4
5
|
*/
|
5
6
|
|
@@ -749,13 +750,34 @@ var OptionControl = /** @class */function (_super) {
|
|
749
750
|
valueField: valueField
|
750
751
|
}, this.onChange);
|
751
752
|
};
|
753
|
+
/** 获取功能性字段控件 schema */
|
754
|
+
OptionControl.prototype.getFuncFieldSchema = function () {
|
755
|
+
var _a = this.state,
|
756
|
+
labelField = _a.labelField,
|
757
|
+
valueField = _a.valueField;
|
758
|
+
return [{
|
759
|
+
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("7e9c83e86beb612377a94e6e8d1fc644"), i18nRuntime.i18n("26ff46d82166741297ce666b2792af85")),
|
760
|
+
type: 'input-text',
|
761
|
+
name: 'labelField',
|
762
|
+
clearable: true,
|
763
|
+
value: labelField,
|
764
|
+
placeholder: i18nRuntime.i18n("6d4ce0631f37676a887c9599691fabec"),
|
765
|
+
onChange: this.handleLableFieldChange
|
766
|
+
}, {
|
767
|
+
label: i18nRuntime.i18n("2e01f5f5889e33d003bec7857cd38445"),
|
768
|
+
type: 'input-text',
|
769
|
+
name: 'valueField',
|
770
|
+
clearable: true,
|
771
|
+
value: valueField,
|
772
|
+
placeholder: i18nRuntime.i18n("959c27193eb0a41d01f4b53dcc4b9245"),
|
773
|
+
onChange: this.handleValueFieldChange
|
774
|
+
}];
|
775
|
+
};
|
752
776
|
OptionControl.prototype.renderApiPanel = function () {
|
753
777
|
var render = this.props.render;
|
754
778
|
var _a = this.state,
|
755
779
|
source = _a.source,
|
756
|
-
api = _a.api
|
757
|
-
labelField = _a.labelField,
|
758
|
-
valueField = _a.valueField;
|
780
|
+
api = _a.api;
|
759
781
|
return render('api', amisEditorCore.getSchemaTpl('apiControl', {
|
760
782
|
label: i18nRuntime.i18n("54ea89b497ec3bb319c68844dfa3687f"),
|
761
783
|
name: 'source',
|
@@ -765,21 +787,7 @@ var OptionControl = /** @class */function (_super) {
|
|
765
787
|
value: api,
|
766
788
|
onChange: this.handleAPIChange,
|
767
789
|
sourceType: source,
|
768
|
-
footer:
|
769
|
-
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("7e9c83e86beb612377a94e6e8d1fc644"), i18nRuntime.i18n("26ff46d82166741297ce666b2792af85")),
|
770
|
-
type: 'input-text',
|
771
|
-
name: 'labelField',
|
772
|
-
value: labelField,
|
773
|
-
placeholder: i18nRuntime.i18n("6d4ce0631f37676a887c9599691fabec"),
|
774
|
-
onChange: this.handleLableFieldChange
|
775
|
-
}, {
|
776
|
-
label: i18nRuntime.i18n("2e01f5f5889e33d003bec7857cd38445"),
|
777
|
-
type: 'input-text',
|
778
|
-
name: 'valueField',
|
779
|
-
value: valueField,
|
780
|
-
placeholder: i18nRuntime.i18n("959c27193eb0a41d01f4b53dcc4b9245"),
|
781
|
-
onChange: this.handleValueFieldChange
|
782
|
-
}]
|
790
|
+
footer: this.getFuncFieldSchema()
|
783
791
|
}));
|
784
792
|
};
|
785
793
|
OptionControl.prototype.render = function () {
|
@@ -811,11 +819,14 @@ var OptionControl = /** @class */function (_super) {
|
|
811
819
|
level: "enhance",
|
812
820
|
onClick: this.handleAdd,
|
813
821
|
ref: this.targetRef
|
814
|
-
}, i18nRuntime.i18n("e8755fb1e985a5d26df0fce1f0b7b0f8")), render('inner', this.buildBatchAddSchema()))) : null, source === 'api' || source === 'apicenter' ? this.renderApiPanel() : null, source === 'variable' ? render('variable',
|
822
|
+
}, i18nRuntime.i18n("e8755fb1e985a5d26df0fce1f0b7b0f8")), render('inner', this.buildBatchAddSchema()))) : null, source === 'api' || source === 'apicenter' ? this.renderApiPanel() : null, source === 'variable' ? render('variable', {
|
823
|
+
type: 'control',
|
815
824
|
label: false,
|
816
|
-
className: 'ae-ExtendMore'
|
817
|
-
|
818
|
-
|
825
|
+
className: 'ae-ExtendMore',
|
826
|
+
body: [amisEditorCore.getSchemaTpl('sourceBindControl', {
|
827
|
+
label: false,
|
828
|
+
onChange: this.handleAPIChange
|
829
|
+
})].concat(this.getFuncFieldSchema())
|
819
830
|
}) : null);
|
820
831
|
};
|
821
832
|
tslib.__decorate([amisEditorCore.autobind, tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", [Object]), tslib.__metadata("design:returntype", void 0)], OptionControl.prototype, "targetRef", null);
|
@@ -843,3 +854,4 @@ var OptionControl = /** @class */function (_super) {
|
|
843
854
|
})(OptionControl);
|
844
855
|
|
845
856
|
exports["default"] = OptionControl;
|
857
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
3
4
|
* Copyright 2018-2023 @fex
|
4
5
|
*/
|
5
6
|
|
@@ -438,3 +439,4 @@ var MarksControl = /** @class */function (_super) {
|
|
438
439
|
|
439
440
|
exports.MarksControl = MarksControl;
|
440
441
|
exports.PartsControl = PartsControl;
|
442
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
3
4
|
* Copyright 2018-2023 @fex
|
4
5
|
*/
|
5
6
|
|
@@ -211,3 +212,4 @@ var StatusControl = /** @class */function (_super) {
|
|
211
212
|
})(StatusControl);
|
212
213
|
|
213
214
|
exports.StatusControl = StatusControl;
|
215
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -28,6 +28,12 @@ export interface SwitchMoreProps extends FormControlProps {
|
|
28
28
|
onClose: (e: React.UIEvent<any> | void) => void;
|
29
29
|
clearChildValuesOnOff?: boolean;
|
30
30
|
defaultData?: any;
|
31
|
+
isChecked?: (options: {
|
32
|
+
data: any;
|
33
|
+
value: any;
|
34
|
+
name?: string;
|
35
|
+
bulk?: boolean;
|
36
|
+
}) => boolean;
|
31
37
|
}
|
32
38
|
interface SwitchMoreState {
|
33
39
|
/**
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.5.2-beta.2
|
3
|
+
* build time: 2023-09-28
|
3
4
|
* Copyright 2018-2023 @fex
|
4
5
|
*/
|
5
6
|
|
@@ -45,10 +46,20 @@ var SwitchMore = /** @class */function (_super) {
|
|
45
46
|
var name = _a.name,
|
46
47
|
bulk = _a.bulk;
|
47
48
|
_a.hiddenOnDefault;
|
49
|
+
var isChecked = _a.isChecked;
|
48
50
|
var checked = false;
|
49
51
|
var show = false;
|
52
|
+
if (isChecked && typeof isChecked === 'function') {
|
53
|
+
checked = isChecked({
|
54
|
+
data: data,
|
55
|
+
value: value,
|
56
|
+
name: name,
|
57
|
+
bulk: bulk
|
58
|
+
});
|
59
|
+
show = checked;
|
60
|
+
}
|
50
61
|
// 这个开关 无具体属性对应
|
51
|
-
if (!name) {
|
62
|
+
else if (!name) {
|
52
63
|
// 子表单项是组件根属性,遍历看是否有值
|
53
64
|
if (bulk) {
|
54
65
|
var formNames = this.getFormItemNames();
|
@@ -392,3 +403,4 @@ var SwitchMore = /** @class */function (_super) {
|
|
392
403
|
})(SwitchMore);
|
393
404
|
|
394
405
|
exports["default"] = SwitchMore;
|
406
|
+
window.amisEditorVersionInfo={version:'5.5.2-beta.2',buildTime:'2023-09-28'};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* @file 表格自定义列可视化编辑控件
|
3
|
+
*/
|
4
|
+
import React from 'react';
|
5
|
+
import { FormControlProps } from 'amis';
|
6
|
+
interface optionType {
|
7
|
+
label: string;
|
8
|
+
value: string;
|
9
|
+
}
|
10
|
+
export interface TableColumnWidthProps extends FormControlProps {
|
11
|
+
className?: string;
|
12
|
+
}
|
13
|
+
export interface TableColumnWidthState {
|
14
|
+
columns?: Array<any>;
|
15
|
+
activeOption: optionType;
|
16
|
+
}
|
17
|
+
export default class TableColumnWidthControl extends React.Component<TableColumnWidthProps, TableColumnWidthState> {
|
18
|
+
options: Array<optionType>;
|
19
|
+
constructor(props: any);
|
20
|
+
componentDidMount(): void;
|
21
|
+
handleOptionChange(item: optionType): void;
|
22
|
+
renderHeader(): React.JSX.Element;
|
23
|
+
handleChange(type: 'fixed' | 'percentage', val: number): void;
|
24
|
+
renderBody(): any;
|
25
|
+
render(): React.JSX.Element;
|
26
|
+
}
|
27
|
+
export declare class TableColumnWidthControlRender extends TableColumnWidthControl {
|
28
|
+
}
|
29
|
+
export {};
|