amis-editor 5.2.5 → 5.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/component/BaseControl.d.ts +1 -799
- package/esm/component/BaseControl.js +9 -9
- package/esm/component/InputComponentName.d.ts +1 -2
- package/esm/component/InputComponentName.js +3 -2
- package/esm/component/TableViewEditor.d.ts +1 -1
- package/esm/component/TableViewEditor.js +362 -524
- package/esm/icons/btn/btn-group.svg.js +1 -1
- package/esm/icons/btn/btn-select.svg.js +1 -1
- package/esm/icons/btn/btn-toolbar.svg.js +1 -1
- package/esm/icons/btn/button.svg.js +1 -1
- package/esm/icons/btn/dropdown-btn.svg.js +1 -1
- package/esm/icons/container/anchor-nav.svg.js +1 -1
- package/esm/icons/container/collapse.svg.js +1 -1
- package/esm/icons/container/container.svg.js +1 -1
- package/esm/icons/container/flex-container.svg.js +1 -1
- package/esm/icons/container/form-group.svg.js +1 -1
- package/esm/icons/container/grid.svg.js +1 -1
- package/esm/icons/container/iframe.svg.js +1 -1
- package/esm/icons/container/panel.svg.js +1 -1
- package/esm/icons/container/table-view.svg.js +1 -1
- package/esm/icons/container/tabs.svg.js +1 -1
- package/esm/icons/container/tooltip-wrapper.svg.js +1 -1
- package/esm/icons/container/web-component.svg.js +1 -1
- package/esm/icons/display/aBaseline.svg.js +28 -0
- package/esm/icons/display/aCenter.svg.js +28 -0
- package/esm/icons/display/aFlexEnd.svg.js +28 -0
- package/esm/icons/display/aFlexStart.svg.js +28 -0
- package/esm/icons/display/aStretch.svg.js +28 -0
- package/esm/icons/display/block.svg.js +25 -0
- package/esm/icons/display/dcolumn.svg.js +24 -0
- package/esm/icons/display/dcolumnReverse.svg.js +31 -0
- package/esm/icons/display/drow.svg.js +24 -0
- package/esm/icons/display/drowReverse.svg.js +25 -0
- package/esm/icons/display/flex.svg.js +37 -0
- package/esm/icons/display/inline-block.svg.js +25 -0
- package/esm/icons/display/inline.svg.js +19 -0
- package/esm/icons/display/jCenter.svg.js +28 -0
- package/esm/icons/display/jFlexEnd.svg.js +28 -0
- package/esm/icons/display/jFlexStart.svg.js +28 -0
- package/esm/icons/display/jSpaceAround.svg.js +28 -0
- package/esm/icons/display/jSpaceBetween.svg.js +28 -0
- 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 +47 -1
- package/esm/icons/layout/layout-1with2.svg.js +1 -1
- package/esm/icons/layout/layout-2cols.svg.js +1 -1
- package/esm/icons/layout/layout-2row.svg.js +1 -1
- package/esm/icons/layout/layout-2with1.svg.js +1 -1
- package/esm/icons/layout/layout-3cols.svg.js +1 -1
- package/esm/icons/layout/layout-3row.svg.js +1 -1
- package/esm/icons/layout/layout-absolute.svg.js +1 -1
- package/esm/icons/layout/layout-fixed-top.svg.js +1 -1
- package/esm/icons/layout/layout-fixed.svg.js +1 -1
- package/esm/icons/layout/layout-free-container.svg.js +1 -1
- package/esm/icons/layout/layout-full.svg.js +1 -1
- package/esm/icons/layout/layout1-2.svg.js +1 -1
- package/esm/icons/layout/layout2-1.svg.js +1 -1
- package/esm/icons/layout/layout3-1.svg.js +1 -1
- package/esm/icons/layout/layout3-2.svg.js +1 -1
- package/esm/icons/other/_fx.svg.js +42 -0
- package/esm/icons/other/divider.svg.js +1 -1
- package/esm/icons/other/fx.svg.js +27 -0
- package/esm/icons/other/property-sheet.svg.js +1 -1
- package/esm/icons/other/tooltip.svg.js +1 -1
- package/esm/icons/show/URL.svg.js +1 -1
- package/esm/icons/show/avatar.svg.js +1 -1
- package/esm/icons/show/breadcrumb.svg.js +1 -1
- package/esm/icons/show/card.svg.js +1 -1
- package/esm/icons/show/cards.svg.js +1 -1
- package/esm/icons/show/carousel.svg.js +1 -1
- package/esm/icons/show/chart.svg.js +1 -1
- package/esm/icons/show/code.svg.js +1 -1
- package/esm/icons/show/date.svg.js +1 -1
- package/esm/icons/show/datetime.svg.js +1 -1
- package/esm/icons/show/image.svg.js +1 -1
- package/esm/icons/show/images.svg.js +1 -1
- package/esm/icons/show/json-view.svg.js +1 -1
- package/esm/icons/show/list.svg.js +1 -1
- package/esm/icons/show/log.svg.js +1 -1
- package/esm/icons/show/mapping.svg.js +1 -1
- package/esm/icons/show/markdown.svg.js +1 -1
- package/esm/icons/show/plain.svg.js +1 -1
- package/esm/icons/show/progress.svg.js +1 -1
- package/esm/icons/show/sparkline.svg.js +1 -1
- package/esm/icons/show/status.svg.js +1 -1
- package/esm/icons/show/steps.svg.js +1 -1
- package/esm/icons/show/time.svg.js +1 -1
- package/esm/icons/theme/css.svg.js +21 -0
- package/esm/index.d.ts +113 -101
- package/esm/index.js +115 -103
- package/esm/locale/en-US.js +167 -2
- package/esm/locale/zh-CN.js +177 -3
- package/esm/plugin/Alert.d.ts +4 -2
- package/esm/plugin/Alert.js +81 -154
- package/esm/plugin/AnchorNav.js +236 -331
- package/esm/plugin/Audio.d.ts +2 -1
- package/esm/plugin/Audio.js +104 -163
- package/esm/plugin/Avatar.d.ts +2 -1
- package/esm/plugin/Avatar.js +219 -293
- package/esm/plugin/Breadcrumb.js +66 -136
- package/esm/plugin/Button.d.ts +4 -2
- package/esm/plugin/Button.js +285 -359
- package/esm/plugin/ButtonGroup.d.ts +2 -1
- package/esm/plugin/ButtonGroup.js +101 -175
- package/esm/plugin/CRUD.d.ts +26 -3
- package/esm/plugin/CRUD.js +1170 -1184
- package/esm/plugin/CRUD2.d.ts +2 -3
- package/esm/plugin/CRUD2.js +869 -1136
- package/esm/plugin/Card.d.ts +2 -1
- package/esm/plugin/Card.js +175 -264
- package/esm/plugin/Card2.d.ts +2 -1
- package/esm/plugin/Card2.js +68 -137
- package/esm/plugin/Cards.d.ts +1 -0
- package/esm/plugin/Cards.js +218 -302
- package/esm/plugin/Carousel.d.ts +3 -2
- package/esm/plugin/Carousel.js +265 -331
- package/esm/plugin/Chart.d.ts +1 -1
- package/esm/plugin/Chart.js +194 -274
- package/esm/plugin/CodeView.d.ts +1 -1
- package/esm/plugin/CodeView.js +39 -104
- package/esm/plugin/Collapse.d.ts +1 -1
- package/esm/plugin/Collapse.js +89 -164
- package/esm/plugin/CollapseGroup.d.ts +1 -1
- package/esm/plugin/CollapseGroup.js +176 -251
- package/esm/plugin/ColumnToggler.d.ts +1 -1
- package/esm/plugin/ColumnToggler.js +72 -137
- package/esm/plugin/Container.d.ts +2 -1
- package/esm/plugin/Container.js +124 -275
- package/esm/plugin/Custom.js +72 -142
- package/esm/plugin/CustomRegion.js +98 -173
- package/esm/plugin/Date.d.ts +2 -1
- package/esm/plugin/Date.js +70 -112
- package/esm/plugin/Datetime.d.ts +1 -1
- package/esm/plugin/Datetime.js +65 -82
- package/esm/plugin/Dialog.d.ts +2 -2
- package/esm/plugin/Dialog.js +203 -180
- package/esm/plugin/Divider.d.ts +2 -0
- package/esm/plugin/Divider.js +30 -88
- package/esm/plugin/Drawer.d.ts +2 -2
- package/esm/plugin/Drawer.js +197 -257
- package/esm/plugin/DropDownButton.d.ts +1 -0
- package/esm/plugin/DropDownButton.js +173 -262
- package/esm/plugin/Each.d.ts +1 -0
- package/esm/plugin/Each.js +103 -182
- package/esm/plugin/Flex.d.ts +1 -0
- package/esm/plugin/Flex.js +5 -19
- package/esm/plugin/Form/ButtonGroupSelect.d.ts +1 -1
- package/esm/plugin/Form/ButtonGroupSelect.js +117 -201
- package/esm/plugin/Form/ButtonToolbar.d.ts +2 -1
- package/esm/plugin/Form/ButtonToolbar.js +89 -168
- package/esm/plugin/Form/ChainedSelect.d.ts +1 -1
- package/esm/plugin/Form/ChainedSelect.js +124 -209
- package/esm/plugin/Form/Checkbox.d.ts +2 -1
- package/esm/plugin/Form/Checkbox.js +121 -205
- package/esm/plugin/Form/Checkboxes.d.ts +1 -2
- package/esm/plugin/Form/Checkboxes.js +141 -232
- package/esm/plugin/Form/CodeEditor.d.ts +0 -1
- package/esm/plugin/Form/CodeEditor.js +153 -243
- package/esm/plugin/Form/Combo.d.ts +1 -1
- package/esm/plugin/Form/Combo.js +432 -529
- package/esm/plugin/Form/ConditionBuilder.d.ts +1 -1
- package/esm/plugin/Form/ConditionBuilder.js +88 -158
- package/esm/plugin/Form/Control.d.ts +1 -1
- package/esm/plugin/Form/Control.js +52 -127
- package/esm/plugin/Form/DiffEditor.d.ts +0 -1
- package/esm/plugin/Form/DiffEditor.js +160 -250
- package/esm/plugin/Form/FieldSet.d.ts +1 -1
- package/esm/plugin/Form/FieldSet.js +97 -167
- package/esm/plugin/Form/Form.d.ts +1 -2
- package/esm/plugin/Form/Form.js +588 -681
- package/esm/plugin/Form/Formula.d.ts +1 -10
- package/esm/plugin/Form/Formula.js +55 -130
- package/esm/plugin/Form/Group.js +173 -253
- package/esm/plugin/Form/Hidden.d.ts +1 -10
- package/esm/plugin/Form/Hidden.js +29 -99
- package/esm/plugin/Form/InputArray.js +145 -235
- package/esm/plugin/Form/InputCity.d.ts +2 -1
- package/esm/plugin/Form/InputCity.js +122 -206
- package/esm/plugin/Form/InputColor.d.ts +2 -1
- package/esm/plugin/Form/InputColor.js +201 -295
- package/esm/plugin/Form/InputDate.d.ts +1 -2
- package/esm/plugin/Form/InputDate.js +218 -297
- package/esm/plugin/Form/InputDateRange.d.ts +1 -2
- package/esm/plugin/Form/InputDateRange.js +329 -357
- package/esm/plugin/Form/InputDateTime.js +24 -89
- package/esm/plugin/Form/InputDateTimeRange.d.ts +0 -1
- package/esm/plugin/Form/InputDateTimeRange.js +24 -95
- package/esm/plugin/Form/InputEmail.js +22 -77
- package/esm/plugin/Form/InputExcel.d.ts +1 -1
- package/esm/plugin/Form/InputExcel.js +80 -160
- package/esm/plugin/Form/InputFile.d.ts +1 -1
- package/esm/plugin/Form/InputFile.js +264 -344
- package/esm/plugin/Form/InputGroup.d.ts +2 -2
- package/esm/plugin/Form/InputGroup.js +65 -144
- package/esm/plugin/Form/InputImage.d.ts +1 -1
- package/esm/plugin/Form/InputImage.js +362 -383
- package/esm/plugin/Form/InputKV.d.ts +1 -0
- package/esm/plugin/Form/InputKV.js +90 -164
- package/esm/plugin/Form/InputMonth.js +21 -86
- package/esm/plugin/Form/InputMonthRange.d.ts +0 -1
- package/esm/plugin/Form/InputMonthRange.js +24 -95
- package/esm/plugin/Form/InputNumber.d.ts +1 -2
- package/esm/plugin/Form/InputNumber.js +198 -277
- package/esm/plugin/Form/InputPassword.js +22 -77
- package/esm/plugin/Form/InputQuarter.js +21 -86
- package/esm/plugin/Form/InputQuarterRange.d.ts +0 -1
- package/esm/plugin/Form/InputQuarterRange.js +24 -95
- package/esm/plugin/Form/InputRange.d.ts +1 -1
- package/esm/plugin/Form/InputRange.js +220 -305
- package/esm/plugin/Form/InputRating.d.ts +1 -1
- package/esm/plugin/Form/InputRating.js +266 -356
- package/esm/plugin/Form/InputRepeat.js +38 -103
- package/esm/plugin/Form/InputRichText.d.ts +0 -1
- package/esm/plugin/Form/InputRichText.js +224 -299
- package/esm/plugin/Form/InputSubForm.d.ts +0 -1
- package/esm/plugin/Form/InputSubForm.js +155 -240
- package/esm/plugin/Form/InputTable.d.ts +2 -1
- package/esm/plugin/Form/InputTable.js +747 -644
- package/esm/plugin/Form/InputTag.d.ts +3 -2
- package/esm/plugin/Form/InputTag.js +115 -199
- package/esm/plugin/Form/InputText.d.ts +2 -1
- package/esm/plugin/Form/InputText.js +271 -394
- package/esm/plugin/Form/InputTime.js +24 -89
- package/esm/plugin/Form/InputTimeRange.d.ts +0 -1
- package/esm/plugin/Form/InputTimeRange.js +24 -95
- package/esm/plugin/Form/InputTree.d.ts +1 -1
- package/esm/plugin/Form/InputTree.js +424 -519
- package/esm/plugin/Form/InputURL.js +23 -83
- package/esm/plugin/Form/InputYear.js +21 -86
- package/esm/plugin/Form/InputYearRange.d.ts +0 -1
- package/esm/plugin/Form/InputYearRange.js +24 -95
- package/esm/plugin/Form/Item.d.ts +1 -1
- package/esm/plugin/Form/Item.js +173 -213
- package/esm/plugin/Form/ListSelect.d.ts +1 -2
- package/esm/plugin/Form/ListSelect.js +83 -171
- package/esm/plugin/Form/LocationPicker.d.ts +3 -2
- package/esm/plugin/Form/LocationPicker.js +88 -114
- package/esm/plugin/Form/MatrixCheckboxes.d.ts +1 -1
- package/esm/plugin/Form/MatrixCheckboxes.js +148 -233
- package/esm/plugin/Form/NestedSelect.d.ts +1 -1
- package/esm/plugin/Form/NestedSelect.js +235 -325
- package/esm/plugin/Form/Picker.d.ts +1 -0
- package/esm/plugin/Form/Picker.js +177 -261
- package/esm/plugin/Form/Radios.d.ts +2 -2
- package/esm/plugin/Form/Radios.js +126 -224
- package/esm/plugin/Form/Select.d.ts +2 -2
- package/esm/plugin/Form/Select.js +244 -334
- package/esm/plugin/Form/Static.d.ts +2 -2
- package/esm/plugin/Form/Static.js +272 -372
- package/esm/plugin/Form/Switch.d.ts +2 -2
- package/esm/plugin/Form/Switch.js +156 -246
- package/esm/plugin/Form/TabsTransfer.d.ts +1 -1
- package/esm/plugin/Form/TabsTransfer.js +227 -317
- package/esm/plugin/Form/Textarea.d.ts +0 -2
- package/esm/plugin/Form/Textarea.js +127 -212
- package/esm/plugin/Form/Transfer.d.ts +1 -1
- package/esm/plugin/Form/Transfer.js +256 -346
- package/esm/plugin/Form/TreeSelect.d.ts +1 -1
- package/esm/plugin/Form/TreeSelect.js +410 -505
- package/esm/plugin/Form/UUID.d.ts +1 -10
- package/esm/plugin/Form/UUID.js +29 -99
- package/esm/plugin/Grid.d.ts +1 -1
- package/esm/plugin/Grid.js +511 -638
- package/esm/plugin/HBox.d.ts +1 -1
- package/esm/plugin/HBox.js +463 -577
- package/esm/plugin/IFrame.d.ts +2 -11
- package/esm/plugin/IFrame.js +53 -125
- package/esm/plugin/Icon.d.ts +23 -0
- package/esm/plugin/Icon.js +122 -0
- package/esm/plugin/Image.d.ts +3 -2
- package/esm/plugin/Image.js +219 -303
- package/esm/plugin/Images.d.ts +6 -3
- package/esm/plugin/Images.js +158 -224
- package/esm/plugin/Json.d.ts +1 -1
- package/esm/plugin/Json.js +40 -110
- package/esm/plugin/Layout/FlexPluginBase.js +175 -355
- package/esm/plugin/Layout/Layout1_2_v4.d.ts +1 -0
- package/esm/plugin/Layout/Layout_fixed.d.ts +1 -0
- package/esm/plugin/Layout/Layout_fixed.js +23 -57
- package/esm/plugin/Layout/Layout_free_container.d.ts +0 -1
- package/esm/plugin/Layout/Layout_free_container.js +18 -58
- package/esm/plugin/Layout/Layout_sorption_container.d.ts +1 -0
- package/esm/plugin/Layout/Layout_sorption_container.js +27 -64
- package/esm/plugin/Link.d.ts +1 -0
- package/esm/plugin/Link.js +63 -127
- package/esm/plugin/List.js +267 -376
- package/esm/plugin/ListItem.d.ts +2 -1
- package/esm/plugin/ListItem.js +133 -187
- package/esm/plugin/Log.d.ts +1 -1
- package/esm/plugin/Log.js +96 -166
- package/esm/plugin/Mapping.d.ts +1 -0
- package/esm/plugin/Mapping.js +150 -241
- package/esm/plugin/Markdown.d.ts +2 -1
- package/esm/plugin/Markdown.js +32 -96
- package/esm/plugin/Nav.d.ts +6 -2
- package/esm/plugin/Nav.js +310 -198
- package/esm/plugin/OfficeViewer.d.ts +24 -0
- package/esm/plugin/Operation.d.ts +1 -1
- package/esm/plugin/Operation.js +46 -112
- package/esm/plugin/Others/Action.d.ts +3 -1
- package/esm/plugin/Others/Action.js +305 -329
- package/esm/plugin/Others/TableCell.d.ts +1 -1
- package/esm/plugin/Others/TableCell.js +304 -329
- package/esm/plugin/Page.d.ts +3 -4
- package/esm/plugin/Page.js +275 -377
- package/esm/plugin/Pagination.d.ts +1 -1
- package/esm/plugin/Pagination.js +211 -296
- package/esm/plugin/Panel.d.ts +2 -2
- package/esm/plugin/Panel.js +172 -252
- package/esm/plugin/Plain.d.ts +1 -1
- package/esm/plugin/Plain.js +101 -186
- package/esm/plugin/Progress.d.ts +4 -1
- package/esm/plugin/Progress.js +204 -277
- package/esm/plugin/Property.js +89 -149
- package/esm/plugin/QRCode.d.ts +1 -0
- package/esm/plugin/QRCode.js +64 -128
- package/esm/plugin/Reset.js +13 -58
- package/esm/plugin/SearchBox.d.ts +25 -0
- package/esm/plugin/SearchBox.js +146 -0
- package/esm/plugin/Service.d.ts +1 -1
- package/esm/plugin/Service.js +199 -250
- package/esm/plugin/Sparkline.js +24 -89
- package/esm/plugin/Status.d.ts +2 -1
- package/esm/plugin/Status.js +226 -298
- package/esm/plugin/Steps.js +90 -140
- package/esm/plugin/Submit.js +13 -53
- package/esm/plugin/Table.d.ts +2 -2
- package/esm/plugin/Table.js +575 -637
- package/esm/plugin/Table2.d.ts +2 -2
- package/esm/plugin/Table2.js +732 -823
- package/esm/plugin/TableCell2.js +411 -436
- package/esm/plugin/TableView.d.ts +0 -1
- package/esm/plugin/TableView.js +563 -622
- package/esm/plugin/Tabs.d.ts +0 -1
- package/esm/plugin/Tabs.js +339 -466
- package/esm/plugin/Tag.d.ts +1 -1
- package/esm/plugin/Tag.js +153 -202
- package/esm/plugin/Tasks.d.ts +0 -1
- package/esm/plugin/Tasks.js +162 -227
- package/esm/plugin/Time.d.ts +0 -1
- package/esm/plugin/Time.js +69 -85
- package/esm/plugin/Timeline.d.ts +1 -1
- package/esm/plugin/Timeline.js +91 -168
- package/esm/plugin/TooltipWrapper.d.ts +2 -1
- package/esm/plugin/TooltipWrapper.js +190 -264
- package/esm/plugin/Tpl.d.ts +3 -1
- package/esm/plugin/Tpl.js +90 -175
- package/esm/plugin/Video.d.ts +2 -2
- package/esm/plugin/Video.js +101 -171
- package/esm/plugin/WebComponent.d.ts +1 -1
- package/esm/plugin/WebComponent.js +45 -125
- package/esm/plugin/Wizard.js +631 -733
- package/esm/plugin/Wrapper.d.ts +2 -1
- package/esm/plugin/Wrapper.js +105 -252
- package/esm/renderer/APIAdaptorControl.d.ts +177 -0
- package/esm/renderer/APIAdaptorControl.js +293 -0
- package/esm/renderer/APIControl.d.ts +8 -5544
- package/esm/renderer/APIControl.js +710 -836
- package/esm/renderer/ActionApiControl.d.ts +12 -6680
- package/esm/renderer/BadgeControl.d.ts +10 -10
- package/esm/renderer/BadgeControl.js +235 -269
- package/esm/renderer/ButtonGroupControl.d.ts +22 -0
- package/esm/renderer/ButtonGroupControl.js +37 -0
- package/esm/renderer/DataBindingControl.d.ts +3 -2
- package/esm/renderer/DataBindingControl.js +172 -208
- package/esm/renderer/DataMappingControl.d.ts +2 -2
- package/esm/renderer/DataMappingControl.js +28 -38
- package/esm/renderer/DataPickerControl.js +35 -50
- package/esm/renderer/DateShortCutControl.js +257 -349
- package/esm/renderer/ExpressionFormulaControl.d.ts +1 -2
- package/esm/renderer/ExpressionFormulaControl.js +160 -242
- package/esm/renderer/FeatureControl.d.ts +1 -1
- package/esm/renderer/FeatureControl.js +179 -241
- package/esm/renderer/FlexSettingControl.d.ts +20 -0
- package/esm/renderer/FlexSettingControl.js +175 -0
- package/esm/renderer/FormulaControl.d.ts +9 -2
- package/esm/renderer/FormulaControl.js +377 -470
- package/esm/renderer/GoConfigControl.js +25 -35
- package/esm/renderer/MapSourceControl.d.ts +12 -1605
- package/esm/renderer/MapSourceControl.js +283 -358
- package/esm/renderer/NavBadgeControl.d.ts +78 -0
- package/esm/renderer/NavBadgeControl.js +283 -0
- package/esm/renderer/NavDefaultActive.d.ts +19 -0
- package/esm/renderer/NavDefaultActive.js +105 -0
- package/esm/renderer/NavSourceControl.d.ts +68 -0
- package/esm/renderer/NavSourceControl.js +370 -0
- package/esm/renderer/OptionControl.d.ts +24 -9
- package/esm/renderer/OptionControl.js +705 -780
- package/esm/renderer/RangePartsControl.js +264 -339
- package/esm/renderer/StatusControl.d.ts +5 -2
- package/esm/renderer/StatusControl.js +147 -169
- package/esm/renderer/SwitchMoreControl.d.ts +27 -174
- package/esm/renderer/SwitchMoreControl.js +311 -413
- package/esm/renderer/TimelineItemControl.d.ts +2 -2
- package/esm/renderer/TimelineItemControl.js +422 -540
- package/esm/renderer/TplFormulaControl.d.ts +75 -0
- package/esm/renderer/TplFormulaControl.js +391 -0
- package/esm/renderer/TransferTableControl.d.ts +5 -4
- package/esm/renderer/TransferTableControl.js +344 -409
- package/esm/renderer/TreeOptionControl.d.ts +6 -5
- package/esm/renderer/TreeOptionControl.js +488 -605
- package/esm/renderer/ValidationControl.d.ts +1 -0
- package/esm/renderer/ValidationControl.js +274 -284
- package/esm/renderer/ValidationItem.js +124 -160
- package/esm/renderer/event-control/action-config-dialog.js +202 -214
- package/esm/renderer/event-control/action-config-panel.d.ts +1 -1
- package/esm/renderer/event-control/action-config-panel.js +33 -42
- package/esm/renderer/event-control/comp-action-select.js +28 -38
- package/esm/renderer/event-control/helper.d.ts +22 -32
- package/esm/renderer/event-control/helper.js +226 -100
- package/esm/renderer/event-control/index.js +676 -817
- package/esm/renderer/style-control/Background.js +6 -11
- package/esm/renderer/style-control/Border.js +7 -12
- package/esm/renderer/style-control/BoxModel.js +4 -9
- package/esm/renderer/style-control/BoxShadow.js +7 -12
- package/esm/renderer/style-control/Display.js +4 -9
- package/esm/renderer/style-control/Font.js +4 -9
- package/esm/renderer/style-control/InsetBoxModel.js +4 -9
- package/esm/renderer/style-control/{ThemeClassName.d.ts → ThemeCssCode.d.ts} +1 -1
- package/esm/renderer/style-control/ThemeCssCode.js +347 -0
- package/esm/renderer/style-control/font-family.js +1 -1
- package/esm/renderer/style-control/helper.d.ts +2 -0
- package/esm/renderer/style-control/helper.js +63 -0
- package/esm/renderer/style-control/themeLanguage.d.ts +1 -0
- package/esm/renderer/style-control/themeLanguage.js +1894 -0
- package/esm/renderer/style-control/transformation.js +3 -2
- package/esm/renderer/textarea-formula/FormulaPicker.d.ts +4 -0
- package/esm/renderer/textarea-formula/FormulaPicker.js +45 -25
- package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +56 -14
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +308 -326
- package/esm/renderer/textarea-formula/plugin.d.ts +17 -7
- package/esm/renderer/textarea-formula/plugin.js +188 -225
- package/esm/renderer/textarea-formula/utils.js +8 -6
- package/esm/tpl/api.js +1 -1
- package/esm/tpl/common.js +40 -16
- package/esm/tpl/horizontal.js +1 -1
- package/esm/tpl/index.d.ts +1 -0
- package/esm/tpl/layout.js +36 -12
- package/esm/tpl/options.js +20 -6
- package/esm/tpl/remark.d.ts +1 -0
- package/esm/tpl/remark.js +19 -0
- package/esm/tpl/style.js +98 -76
- package/esm/tpl/validations.js +4 -4
- package/esm/util.d.ts +19 -33
- package/esm/util.js +20 -3
- package/esm/validator.js +5 -5
- package/lib/component/BaseControl.d.ts +1 -799
- package/lib/component/BaseControl.js +8 -8
- package/lib/component/InputComponentName.d.ts +1 -2
- package/lib/component/InputComponentName.js +3 -2
- package/lib/component/TableViewEditor.d.ts +1 -1
- package/lib/component/TableViewEditor.js +361 -523
- package/lib/icons/btn/btn-group.svg.js +1 -1
- package/lib/icons/btn/btn-select.svg.js +1 -1
- package/lib/icons/btn/btn-toolbar.svg.js +1 -1
- package/lib/icons/btn/button.svg.js +1 -1
- package/lib/icons/btn/dropdown-btn.svg.js +1 -1
- package/lib/icons/container/anchor-nav.svg.js +1 -1
- package/lib/icons/container/collapse.svg.js +1 -1
- package/lib/icons/container/container.svg.js +1 -1
- package/lib/icons/container/flex-container.svg.js +1 -1
- package/lib/icons/container/form-group.svg.js +1 -1
- package/lib/icons/container/grid.svg.js +1 -1
- package/lib/icons/container/iframe.svg.js +1 -1
- package/lib/icons/container/panel.svg.js +1 -1
- package/lib/icons/container/table-view.svg.js +1 -1
- package/lib/icons/container/tabs.svg.js +1 -1
- package/lib/icons/container/tooltip-wrapper.svg.js +1 -1
- package/lib/icons/container/web-component.svg.js +1 -1
- package/lib/icons/display/aBaseline.svg.js +52 -0
- package/lib/icons/display/aCenter.svg.js +52 -0
- package/lib/icons/display/aFlexEnd.svg.js +52 -0
- package/lib/icons/display/aFlexStart.svg.js +52 -0
- package/lib/icons/display/aStretch.svg.js +52 -0
- package/lib/icons/display/block.svg.js +49 -0
- package/lib/icons/display/dcolumn.svg.js +48 -0
- package/lib/icons/display/dcolumnReverse.svg.js +55 -0
- package/lib/icons/display/drow.svg.js +48 -0
- package/lib/icons/display/drowReverse.svg.js +49 -0
- package/lib/icons/display/flex.svg.js +61 -0
- package/lib/icons/display/inline-block.svg.js +49 -0
- package/lib/icons/display/inline.svg.js +43 -0
- package/lib/icons/display/jCenter.svg.js +52 -0
- package/lib/icons/display/jFlexEnd.svg.js +52 -0
- package/lib/icons/display/jFlexStart.svg.js +52 -0
- package/lib/icons/display/jSpaceAround.svg.js +52 -0
- package/lib/icons/display/jSpaceBetween.svg.js +52 -0
- 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 +47 -1
- package/lib/icons/layout/layout-1with2.svg.js +1 -1
- package/lib/icons/layout/layout-2cols.svg.js +1 -1
- package/lib/icons/layout/layout-2row.svg.js +1 -1
- package/lib/icons/layout/layout-2with1.svg.js +1 -1
- package/lib/icons/layout/layout-3cols.svg.js +1 -1
- package/lib/icons/layout/layout-3row.svg.js +1 -1
- package/lib/icons/layout/layout-absolute.svg.js +1 -1
- package/lib/icons/layout/layout-fixed-top.svg.js +1 -1
- package/lib/icons/layout/layout-fixed.svg.js +1 -1
- package/lib/icons/layout/layout-free-container.svg.js +1 -1
- package/lib/icons/layout/layout-full.svg.js +1 -1
- package/lib/icons/layout/layout1-2.svg.js +1 -1
- package/lib/icons/layout/layout2-1.svg.js +1 -1
- package/lib/icons/layout/layout3-1.svg.js +1 -1
- package/lib/icons/layout/layout3-2.svg.js +1 -1
- package/lib/icons/other/_fx.svg.js +66 -0
- package/lib/icons/other/divider.svg.js +1 -1
- package/lib/icons/other/fx.svg.js +51 -0
- package/lib/icons/other/property-sheet.svg.js +1 -1
- package/lib/icons/other/tooltip.svg.js +1 -1
- package/lib/icons/show/URL.svg.js +1 -1
- package/lib/icons/show/avatar.svg.js +1 -1
- package/lib/icons/show/breadcrumb.svg.js +1 -1
- package/lib/icons/show/card.svg.js +1 -1
- package/lib/icons/show/cards.svg.js +1 -1
- package/lib/icons/show/carousel.svg.js +1 -1
- package/lib/icons/show/chart.svg.js +1 -1
- package/lib/icons/show/code.svg.js +1 -1
- package/lib/icons/show/date.svg.js +1 -1
- package/lib/icons/show/datetime.svg.js +1 -1
- package/lib/icons/show/image.svg.js +1 -1
- package/lib/icons/show/images.svg.js +1 -1
- package/lib/icons/show/json-view.svg.js +1 -1
- package/lib/icons/show/list.svg.js +1 -1
- package/lib/icons/show/log.svg.js +1 -1
- package/lib/icons/show/mapping.svg.js +1 -1
- package/lib/icons/show/markdown.svg.js +1 -1
- package/lib/icons/show/plain.svg.js +1 -1
- package/lib/icons/show/progress.svg.js +1 -1
- package/lib/icons/show/sparkline.svg.js +1 -1
- package/lib/icons/show/status.svg.js +1 -1
- package/lib/icons/show/steps.svg.js +1 -1
- package/lib/icons/show/time.svg.js +1 -1
- package/lib/icons/theme/css.svg.js +45 -0
- package/lib/index.d.ts +113 -101
- package/lib/index.js +115 -103
- package/lib/locale/en-US.js +167 -2
- package/lib/locale/zh-CN.js +177 -3
- package/lib/plugin/Alert.d.ts +4 -2
- package/lib/plugin/Alert.js +81 -154
- package/lib/plugin/AnchorNav.js +235 -330
- package/lib/plugin/Audio.d.ts +2 -1
- package/lib/plugin/Audio.js +104 -163
- package/lib/plugin/Avatar.d.ts +2 -1
- package/lib/plugin/Avatar.js +219 -293
- package/lib/plugin/Breadcrumb.js +66 -136
- package/lib/plugin/Button.d.ts +4 -2
- package/lib/plugin/Button.js +284 -358
- package/lib/plugin/ButtonGroup.d.ts +2 -1
- package/lib/plugin/ButtonGroup.js +101 -175
- package/lib/plugin/CRUD.d.ts +26 -3
- package/lib/plugin/CRUD.js +1169 -1181
- package/lib/plugin/CRUD2.d.ts +2 -3
- package/lib/plugin/CRUD2.js +868 -1135
- package/lib/plugin/Card.d.ts +2 -1
- package/lib/plugin/Card.js +175 -264
- package/lib/plugin/Card2.d.ts +2 -1
- package/lib/plugin/Card2.js +68 -137
- package/lib/plugin/Cards.d.ts +1 -0
- package/lib/plugin/Cards.js +217 -301
- package/lib/plugin/Carousel.d.ts +3 -2
- package/lib/plugin/Carousel.js +265 -331
- package/lib/plugin/Chart.d.ts +1 -1
- package/lib/plugin/Chart.js +194 -274
- package/lib/plugin/CodeView.d.ts +1 -1
- package/lib/plugin/CodeView.js +39 -104
- package/lib/plugin/Collapse.d.ts +1 -1
- package/lib/plugin/Collapse.js +89 -164
- package/lib/plugin/CollapseGroup.d.ts +1 -1
- package/lib/plugin/CollapseGroup.js +176 -251
- package/lib/plugin/ColumnToggler.d.ts +1 -1
- package/lib/plugin/ColumnToggler.js +72 -137
- package/lib/plugin/Container.d.ts +2 -1
- package/lib/plugin/Container.js +123 -274
- package/lib/plugin/Custom.js +72 -142
- package/lib/plugin/CustomRegion.js +98 -173
- package/lib/plugin/Date.d.ts +2 -1
- package/lib/plugin/Date.js +69 -111
- package/lib/plugin/Datetime.d.ts +1 -1
- package/lib/plugin/Datetime.js +64 -81
- package/lib/plugin/Dialog.d.ts +2 -2
- package/lib/plugin/Dialog.js +202 -179
- package/lib/plugin/Divider.d.ts +2 -0
- package/lib/plugin/Divider.js +30 -88
- package/lib/plugin/Drawer.d.ts +2 -2
- package/lib/plugin/Drawer.js +196 -256
- package/lib/plugin/DropDownButton.d.ts +1 -0
- package/lib/plugin/DropDownButton.js +173 -262
- package/lib/plugin/Each.d.ts +1 -0
- package/lib/plugin/Each.js +103 -182
- package/lib/plugin/Flex.d.ts +1 -0
- package/lib/plugin/Flex.js +5 -19
- package/lib/plugin/Form/ButtonGroupSelect.d.ts +1 -1
- package/lib/plugin/Form/ButtonGroupSelect.js +117 -201
- package/lib/plugin/Form/ButtonToolbar.d.ts +2 -1
- package/lib/plugin/Form/ButtonToolbar.js +89 -168
- package/lib/plugin/Form/ChainedSelect.d.ts +1 -1
- package/lib/plugin/Form/ChainedSelect.js +124 -209
- package/lib/plugin/Form/Checkbox.d.ts +2 -1
- package/lib/plugin/Form/Checkbox.js +121 -205
- package/lib/plugin/Form/Checkboxes.d.ts +1 -2
- package/lib/plugin/Form/Checkboxes.js +141 -232
- package/lib/plugin/Form/CodeEditor.d.ts +0 -1
- package/lib/plugin/Form/CodeEditor.js +153 -243
- package/lib/plugin/Form/Combo.d.ts +1 -1
- package/lib/plugin/Form/Combo.js +431 -528
- package/lib/plugin/Form/ConditionBuilder.d.ts +1 -1
- package/lib/plugin/Form/ConditionBuilder.js +88 -158
- package/lib/plugin/Form/Control.d.ts +1 -1
- package/lib/plugin/Form/Control.js +52 -127
- package/lib/plugin/Form/DiffEditor.d.ts +0 -1
- package/lib/plugin/Form/DiffEditor.js +160 -250
- package/lib/plugin/Form/FieldSet.d.ts +1 -1
- package/lib/plugin/Form/FieldSet.js +97 -167
- package/lib/plugin/Form/Form.d.ts +1 -2
- package/lib/plugin/Form/Form.js +587 -680
- package/lib/plugin/Form/Formula.d.ts +1 -10
- package/lib/plugin/Form/Formula.js +55 -130
- package/lib/plugin/Form/Group.js +173 -253
- package/lib/plugin/Form/Hidden.d.ts +1 -10
- package/lib/plugin/Form/Hidden.js +29 -99
- package/lib/plugin/Form/InputArray.js +145 -235
- package/lib/plugin/Form/InputCity.d.ts +2 -1
- package/lib/plugin/Form/InputCity.js +122 -206
- package/lib/plugin/Form/InputColor.d.ts +2 -1
- package/lib/plugin/Form/InputColor.js +200 -294
- package/lib/plugin/Form/InputDate.d.ts +1 -2
- package/lib/plugin/Form/InputDate.js +217 -296
- package/lib/plugin/Form/InputDateRange.d.ts +1 -2
- package/lib/plugin/Form/InputDateRange.js +328 -356
- package/lib/plugin/Form/InputDateTime.js +24 -89
- package/lib/plugin/Form/InputDateTimeRange.d.ts +0 -1
- package/lib/plugin/Form/InputDateTimeRange.js +24 -95
- package/lib/plugin/Form/InputEmail.js +22 -77
- package/lib/plugin/Form/InputExcel.d.ts +1 -1
- package/lib/plugin/Form/InputExcel.js +80 -160
- package/lib/plugin/Form/InputFile.d.ts +1 -1
- package/lib/plugin/Form/InputFile.js +264 -344
- package/lib/plugin/Form/InputGroup.d.ts +2 -2
- package/lib/plugin/Form/InputGroup.js +65 -144
- package/lib/plugin/Form/InputImage.d.ts +1 -1
- package/lib/plugin/Form/InputImage.js +361 -382
- package/lib/plugin/Form/InputKV.d.ts +1 -0
- package/lib/plugin/Form/InputKV.js +90 -164
- package/lib/plugin/Form/InputMonth.js +21 -86
- package/lib/plugin/Form/InputMonthRange.d.ts +0 -1
- package/lib/plugin/Form/InputMonthRange.js +24 -95
- package/lib/plugin/Form/InputNumber.d.ts +1 -2
- package/lib/plugin/Form/InputNumber.js +198 -277
- package/lib/plugin/Form/InputPassword.js +22 -77
- package/lib/plugin/Form/InputQuarter.js +21 -86
- package/lib/plugin/Form/InputQuarterRange.d.ts +0 -1
- package/lib/plugin/Form/InputQuarterRange.js +24 -95
- package/lib/plugin/Form/InputRange.d.ts +1 -1
- package/lib/plugin/Form/InputRange.js +220 -305
- package/lib/plugin/Form/InputRating.d.ts +1 -1
- package/lib/plugin/Form/InputRating.js +266 -356
- package/lib/plugin/Form/InputRepeat.js +38 -103
- package/lib/plugin/Form/InputRichText.d.ts +0 -1
- package/lib/plugin/Form/InputRichText.js +223 -298
- package/lib/plugin/Form/InputSubForm.d.ts +0 -1
- package/lib/plugin/Form/InputSubForm.js +155 -240
- package/lib/plugin/Form/InputTable.d.ts +2 -1
- package/lib/plugin/Form/InputTable.js +745 -642
- package/lib/plugin/Form/InputTag.d.ts +3 -2
- package/lib/plugin/Form/InputTag.js +115 -199
- package/lib/plugin/Form/InputText.d.ts +2 -1
- package/lib/plugin/Form/InputText.js +271 -394
- package/lib/plugin/Form/InputTime.js +24 -89
- package/lib/plugin/Form/InputTimeRange.d.ts +0 -1
- package/lib/plugin/Form/InputTimeRange.js +24 -95
- package/lib/plugin/Form/InputTree.d.ts +1 -1
- package/lib/plugin/Form/InputTree.js +424 -519
- package/lib/plugin/Form/InputURL.js +23 -83
- package/lib/plugin/Form/InputYear.js +21 -86
- package/lib/plugin/Form/InputYearRange.d.ts +0 -1
- package/lib/plugin/Form/InputYearRange.js +24 -95
- package/lib/plugin/Form/Item.d.ts +1 -1
- package/lib/plugin/Form/Item.js +172 -212
- package/lib/plugin/Form/ListSelect.d.ts +1 -2
- package/lib/plugin/Form/ListSelect.js +83 -171
- package/lib/plugin/Form/LocationPicker.d.ts +3 -2
- package/lib/plugin/Form/LocationPicker.js +88 -114
- package/lib/plugin/Form/MatrixCheckboxes.d.ts +1 -1
- package/lib/plugin/Form/MatrixCheckboxes.js +148 -233
- package/lib/plugin/Form/NestedSelect.d.ts +1 -1
- package/lib/plugin/Form/NestedSelect.js +235 -325
- package/lib/plugin/Form/Picker.d.ts +1 -0
- package/lib/plugin/Form/Picker.js +177 -261
- package/lib/plugin/Form/Radios.d.ts +2 -2
- package/lib/plugin/Form/Radios.js +126 -224
- package/lib/plugin/Form/Select.d.ts +2 -2
- package/lib/plugin/Form/Select.js +244 -334
- package/lib/plugin/Form/Static.d.ts +2 -2
- package/lib/plugin/Form/Static.js +272 -372
- package/lib/plugin/Form/Switch.d.ts +2 -2
- package/lib/plugin/Form/Switch.js +156 -246
- package/lib/plugin/Form/TabsTransfer.d.ts +1 -1
- package/lib/plugin/Form/TabsTransfer.js +227 -317
- package/lib/plugin/Form/Textarea.d.ts +0 -2
- package/lib/plugin/Form/Textarea.js +127 -212
- package/lib/plugin/Form/Transfer.d.ts +1 -1
- package/lib/plugin/Form/Transfer.js +256 -346
- package/lib/plugin/Form/TreeSelect.d.ts +1 -1
- package/lib/plugin/Form/TreeSelect.js +410 -505
- package/lib/plugin/Form/UUID.d.ts +1 -10
- package/lib/plugin/Form/UUID.js +29 -99
- package/lib/plugin/Grid.d.ts +1 -1
- package/lib/plugin/Grid.js +510 -637
- package/lib/plugin/HBox.d.ts +1 -1
- package/lib/plugin/HBox.js +463 -577
- package/lib/plugin/IFrame.d.ts +2 -11
- package/lib/plugin/IFrame.js +52 -124
- package/lib/plugin/Icon.d.ts +23 -0
- package/lib/plugin/Icon.js +126 -0
- package/lib/plugin/Image.d.ts +3 -2
- package/lib/plugin/Image.js +219 -303
- package/lib/plugin/Images.d.ts +6 -3
- package/lib/plugin/Images.js +158 -224
- package/lib/plugin/Json.d.ts +1 -1
- package/lib/plugin/Json.js +40 -110
- package/lib/plugin/Layout/FlexPluginBase.js +174 -354
- package/lib/plugin/Layout/Layout1_2_v4.d.ts +1 -0
- package/lib/plugin/Layout/Layout_fixed.d.ts +1 -0
- package/lib/plugin/Layout/Layout_fixed.js +23 -57
- package/lib/plugin/Layout/Layout_free_container.d.ts +0 -1
- package/lib/plugin/Layout/Layout_free_container.js +18 -58
- package/lib/plugin/Layout/Layout_sorption_container.d.ts +1 -0
- package/lib/plugin/Layout/Layout_sorption_container.js +27 -64
- package/lib/plugin/Link.d.ts +1 -0
- package/lib/plugin/Link.js +63 -127
- package/lib/plugin/List.js +266 -375
- package/lib/plugin/ListItem.d.ts +2 -1
- package/lib/plugin/ListItem.js +133 -187
- package/lib/plugin/Log.d.ts +1 -1
- package/lib/plugin/Log.js +96 -166
- package/lib/plugin/Mapping.d.ts +1 -0
- package/lib/plugin/Mapping.js +150 -241
- package/lib/plugin/Markdown.d.ts +2 -1
- package/lib/plugin/Markdown.js +32 -96
- package/lib/plugin/Nav.d.ts +6 -2
- package/lib/plugin/Nav.js +313 -197
- package/lib/plugin/OfficeViewer.d.ts +24 -0
- package/lib/plugin/Operation.d.ts +1 -1
- package/lib/plugin/Operation.js +46 -112
- package/lib/plugin/Others/Action.d.ts +3 -1
- package/lib/plugin/Others/Action.js +305 -329
- package/lib/plugin/Others/TableCell.d.ts +1 -1
- package/lib/plugin/Others/TableCell.js +304 -329
- package/lib/plugin/Page.d.ts +3 -4
- package/lib/plugin/Page.js +274 -376
- package/lib/plugin/Pagination.d.ts +1 -1
- package/lib/plugin/Pagination.js +211 -296
- package/lib/plugin/Panel.d.ts +2 -2
- package/lib/plugin/Panel.js +171 -251
- package/lib/plugin/Plain.d.ts +1 -1
- package/lib/plugin/Plain.js +101 -186
- package/lib/plugin/Progress.d.ts +4 -1
- package/lib/plugin/Progress.js +204 -277
- package/lib/plugin/Property.js +89 -149
- package/lib/plugin/QRCode.d.ts +1 -0
- package/lib/plugin/QRCode.js +64 -128
- package/lib/plugin/Reset.js +13 -58
- package/lib/plugin/SearchBox.d.ts +25 -0
- package/lib/plugin/SearchBox.js +150 -0
- package/lib/plugin/Service.d.ts +1 -1
- package/lib/plugin/Service.js +199 -250
- package/lib/plugin/Sparkline.js +24 -89
- package/lib/plugin/Status.d.ts +2 -1
- package/lib/plugin/Status.js +225 -297
- package/lib/plugin/Steps.js +90 -140
- package/lib/plugin/Submit.js +13 -53
- package/lib/plugin/Table.d.ts +2 -2
- package/lib/plugin/Table.js +572 -634
- package/lib/plugin/Table2.d.ts +2 -2
- package/lib/plugin/Table2.js +731 -822
- package/lib/plugin/TableCell2.js +410 -435
- package/lib/plugin/TableView.d.ts +0 -1
- package/lib/plugin/TableView.js +562 -621
- package/lib/plugin/Tabs.d.ts +0 -1
- package/lib/plugin/Tabs.js +339 -466
- package/lib/plugin/Tag.d.ts +1 -1
- package/lib/plugin/Tag.js +153 -202
- package/lib/plugin/Tasks.d.ts +0 -1
- package/lib/plugin/Tasks.js +162 -227
- package/lib/plugin/Time.d.ts +0 -1
- package/lib/plugin/Time.js +68 -84
- package/lib/plugin/Timeline.d.ts +1 -1
- package/lib/plugin/Timeline.js +91 -168
- package/lib/plugin/TooltipWrapper.d.ts +2 -1
- package/lib/plugin/TooltipWrapper.js +189 -263
- package/lib/plugin/Tpl.d.ts +3 -1
- package/lib/plugin/Tpl.js +89 -174
- package/lib/plugin/Video.d.ts +2 -2
- package/lib/plugin/Video.js +101 -171
- package/lib/plugin/WebComponent.d.ts +1 -1
- package/lib/plugin/WebComponent.js +45 -125
- package/lib/plugin/Wizard.js +631 -733
- package/lib/plugin/Wrapper.d.ts +2 -1
- package/lib/plugin/Wrapper.js +104 -251
- package/lib/renderer/APIAdaptorControl.d.ts +177 -0
- package/lib/renderer/APIAdaptorControl.js +312 -0
- package/lib/renderer/APIControl.d.ts +8 -5544
- package/lib/renderer/APIControl.js +710 -836
- package/lib/renderer/ActionApiControl.d.ts +12 -6680
- package/lib/renderer/BadgeControl.d.ts +12 -12
- package/lib/renderer/BadgeControl.js +235 -269
- package/lib/renderer/ButtonGroupControl.d.ts +22 -0
- package/lib/renderer/ButtonGroupControl.js +46 -0
- package/lib/renderer/DataBindingControl.d.ts +3 -2
- package/lib/renderer/DataBindingControl.js +172 -208
- package/lib/renderer/DataMappingControl.d.ts +2 -2
- package/lib/renderer/DataMappingControl.js +28 -38
- package/lib/renderer/DataPickerControl.js +35 -50
- package/lib/renderer/DateShortCutControl.js +256 -348
- package/lib/renderer/ExpressionFormulaControl.d.ts +1 -2
- package/lib/renderer/ExpressionFormulaControl.js +160 -242
- package/lib/renderer/FeatureControl.d.ts +1 -1
- package/lib/renderer/FeatureControl.js +179 -241
- package/lib/renderer/FlexSettingControl.d.ts +20 -0
- package/lib/renderer/FlexSettingControl.js +183 -0
- package/lib/renderer/FormulaControl.d.ts +9 -2
- package/lib/renderer/FormulaControl.js +375 -467
- package/lib/renderer/GoConfigControl.js +25 -35
- package/lib/renderer/MapSourceControl.d.ts +12 -1605
- package/lib/renderer/MapSourceControl.js +282 -357
- package/lib/renderer/NavBadgeControl.d.ts +78 -0
- package/lib/renderer/NavBadgeControl.js +292 -0
- package/lib/renderer/NavDefaultActive.d.ts +19 -0
- package/lib/renderer/NavDefaultActive.js +115 -0
- package/lib/renderer/NavSourceControl.d.ts +68 -0
- package/lib/renderer/NavSourceControl.js +381 -0
- package/lib/renderer/OptionControl.d.ts +24 -9
- package/lib/renderer/OptionControl.js +705 -779
- package/lib/renderer/RangePartsControl.js +264 -339
- package/lib/renderer/StatusControl.d.ts +5 -2
- package/lib/renderer/StatusControl.js +147 -169
- package/lib/renderer/SwitchMoreControl.d.ts +27 -174
- package/lib/renderer/SwitchMoreControl.js +311 -413
- package/lib/renderer/TimelineItemControl.d.ts +2 -2
- package/lib/renderer/TimelineItemControl.js +421 -539
- package/lib/renderer/TplFormulaControl.d.ts +75 -0
- package/lib/renderer/TplFormulaControl.js +400 -0
- package/lib/renderer/TransferTableControl.d.ts +5 -4
- package/lib/renderer/TransferTableControl.js +343 -408
- package/lib/renderer/TreeOptionControl.d.ts +6 -5
- package/lib/renderer/TreeOptionControl.js +487 -604
- package/lib/renderer/ValidationControl.d.ts +1 -0
- package/lib/renderer/ValidationControl.js +272 -282
- package/lib/renderer/ValidationItem.js +124 -160
- package/lib/renderer/event-control/action-config-dialog.js +202 -214
- package/lib/renderer/event-control/action-config-panel.d.ts +1 -1
- package/lib/renderer/event-control/action-config-panel.js +32 -41
- package/lib/renderer/event-control/comp-action-select.js +27 -37
- package/lib/renderer/event-control/helper.d.ts +22 -32
- package/lib/renderer/event-control/helper.js +224 -99
- package/lib/renderer/event-control/index.js +674 -816
- package/lib/renderer/style-control/Background.js +5 -10
- package/lib/renderer/style-control/Border.js +6 -11
- package/lib/renderer/style-control/BoxModel.js +4 -9
- package/lib/renderer/style-control/BoxShadow.js +6 -11
- package/lib/renderer/style-control/Display.js +4 -9
- package/lib/renderer/style-control/Font.js +4 -9
- package/lib/renderer/style-control/InsetBoxModel.js +4 -9
- package/lib/renderer/style-control/{ThemeClassName.d.ts → ThemeCssCode.d.ts} +1 -1
- package/lib/renderer/style-control/ThemeCssCode.js +354 -0
- package/lib/renderer/style-control/font-family.js +1 -1
- package/lib/renderer/style-control/helper.d.ts +2 -0
- package/lib/renderer/style-control/helper.js +68 -0
- package/lib/renderer/style-control/themeLanguage.d.ts +1 -0
- package/lib/renderer/style-control/themeLanguage.js +1898 -0
- package/lib/renderer/style-control/transformation.js +3 -2
- package/lib/renderer/textarea-formula/FormulaPicker.d.ts +4 -0
- package/lib/renderer/textarea-formula/FormulaPicker.js +44 -24
- package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +56 -14
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +306 -326
- package/lib/renderer/textarea-formula/plugin.d.ts +17 -7
- package/lib/renderer/textarea-formula/plugin.js +188 -225
- package/lib/renderer/textarea-formula/utils.js +7 -5
- package/lib/tpl/api.js +1 -1
- package/lib/tpl/common.js +39 -15
- package/lib/tpl/horizontal.js +1 -1
- package/lib/tpl/index.d.ts +1 -0
- package/lib/tpl/layout.js +36 -12
- package/lib/tpl/options.js +19 -5
- package/lib/tpl/remark.d.ts +1 -0
- package/lib/tpl/remark.js +21 -0
- package/lib/tpl/style.js +97 -75
- package/lib/tpl/validations.js +3 -3
- package/lib/util.d.ts +19 -33
- package/lib/util.js +22 -2
- package/lib/validator.js +4 -4
- package/package.json +6 -6
- package/esm/renderer/style-control/ThemeClassName.js +0 -228
- package/lib/renderer/style-control/ThemeClassName.js +0 -234
package/lib/plugin/Table.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.
|
2
|
+
* amis-editor v5.4.0
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -13,6 +13,7 @@ var amis = require('amis');
|
|
13
13
|
var amisEditorCore = require('amis-editor-core');
|
14
14
|
var amisCore = require('amis-core');
|
15
15
|
var helper = require('../renderer/event-control/helper.js');
|
16
|
+
var util = require('../util.js');
|
16
17
|
var i18nRuntime = require('i18n-runtime');
|
17
18
|
|
18
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
@@ -24,467 +25,416 @@ var TablePlugin = /** @class */function (_super) {
|
|
24
25
|
function TablePlugin() {
|
25
26
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
26
27
|
// 关联渲染器名字
|
27
|
-
|
28
|
-
|
29
|
-
configurable: true,
|
30
|
-
writable: true,
|
31
|
-
value: 'table'
|
32
|
-
});
|
33
|
-
Object.defineProperty(_this, "$schema", {
|
34
|
-
enumerable: true,
|
35
|
-
configurable: true,
|
36
|
-
writable: true,
|
37
|
-
value: '/schemas/TableSchema.json'
|
38
|
-
});
|
28
|
+
_this.rendererName = 'table';
|
29
|
+
_this.$schema = '/schemas/TableSchema.json';
|
39
30
|
// 组件名称
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
Object.defineProperty(_this, "isBaseComponent", {
|
53
|
-
enumerable: true,
|
54
|
-
configurable: true,
|
55
|
-
writable: true,
|
56
|
-
value: true
|
57
|
-
});
|
58
|
-
Object.defineProperty(_this, "description", {
|
59
|
-
enumerable: true,
|
60
|
-
configurable: true,
|
61
|
-
writable: true,
|
62
|
-
value: i18nRuntime.i18n("ea2b32f5d78d2305b9b7bc21e056a009")
|
63
|
-
});
|
64
|
-
Object.defineProperty(_this, "docLink", {
|
65
|
-
enumerable: true,
|
66
|
-
configurable: true,
|
67
|
-
writable: true,
|
68
|
-
value: '/amis/zh-CN/components/table'
|
69
|
-
});
|
70
|
-
Object.defineProperty(_this, "icon", {
|
71
|
-
enumerable: true,
|
72
|
-
configurable: true,
|
73
|
-
writable: true,
|
74
|
-
value: 'fa fa-table'
|
75
|
-
});
|
76
|
-
Object.defineProperty(_this, "pluginIcon", {
|
77
|
-
enumerable: true,
|
78
|
-
configurable: true,
|
79
|
-
writable: true,
|
80
|
-
value: 'table-plugin'
|
81
|
-
});
|
82
|
-
Object.defineProperty(_this, "scaffold", {
|
83
|
-
enumerable: true,
|
84
|
-
configurable: true,
|
85
|
-
writable: true,
|
86
|
-
value: {
|
87
|
-
type: 'table',
|
88
|
-
columns: [{
|
89
|
-
label: i18nRuntime.i18n("20aadc3f9b7edb564dc58898898e0dc8"),
|
90
|
-
name: 'a'
|
91
|
-
}]
|
92
|
-
}
|
93
|
-
});
|
94
|
-
Object.defineProperty(_this, "regions", {
|
95
|
-
enumerable: true,
|
96
|
-
configurable: true,
|
97
|
-
writable: true,
|
98
|
-
value: [{
|
99
|
-
key: 'columns',
|
100
|
-
label: i18nRuntime.i18n("1f9794dd5634220ed0a498c666cf46fe"),
|
101
|
-
renderMethod: 'renderTableContent',
|
102
|
-
preferTag: i18nRuntime.i18n("027446c2f9070b0f5b16a18208bf5fc7"),
|
103
|
-
dndMode: 'position-h'
|
31
|
+
_this.name = i18nRuntime.i18n("b339aa87104709397ba68e7ebbc6e5ba");
|
32
|
+
_this.tags = [i18nRuntime.i18n("027446c2f9070b0f5b16a18208bf5fc7")];
|
33
|
+
_this.isBaseComponent = true;
|
34
|
+
_this.description = i18nRuntime.i18n("ea2b32f5d78d2305b9b7bc21e056a009");
|
35
|
+
_this.docLink = '/amis/zh-CN/components/table';
|
36
|
+
_this.icon = 'fa fa-table';
|
37
|
+
_this.pluginIcon = 'table-plugin';
|
38
|
+
_this.scaffold = {
|
39
|
+
type: 'table',
|
40
|
+
columns: [{
|
41
|
+
label: i18nRuntime.i18n("20aadc3f9b7edb564dc58898898e0dc8"),
|
42
|
+
name: 'a'
|
104
43
|
}]
|
105
|
-
}
|
44
|
+
};
|
45
|
+
_this.regions = [{
|
46
|
+
key: 'columns',
|
47
|
+
label: i18nRuntime.i18n("1f9794dd5634220ed0a498c666cf46fe"),
|
48
|
+
renderMethod: 'renderTableContent',
|
49
|
+
preferTag: i18nRuntime.i18n("027446c2f9070b0f5b16a18208bf5fc7"),
|
50
|
+
dndMode: 'position-h'
|
51
|
+
}];
|
106
52
|
//renderTableContent
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
affixHeader: false,
|
115
|
-
items: [{
|
116
|
-
a: 1,
|
117
|
-
b: 2
|
118
|
-
}, {
|
119
|
-
a: 3,
|
120
|
-
b: 4
|
121
|
-
}, {
|
122
|
-
a: 5,
|
123
|
-
b: 6
|
124
|
-
}],
|
125
|
-
columns: [{
|
126
|
-
label: 'A',
|
127
|
-
name: 'a'
|
128
|
-
}, {
|
129
|
-
label: 'B',
|
130
|
-
name: 'b'
|
131
|
-
}]
|
132
|
-
}
|
133
|
-
});
|
134
|
-
Object.defineProperty(_this, "panelTitle", {
|
135
|
-
enumerable: true,
|
136
|
-
configurable: true,
|
137
|
-
writable: true,
|
138
|
-
value: i18nRuntime.i18n("b339aa87104709397ba68e7ebbc6e5ba")
|
139
|
-
});
|
140
|
-
Object.defineProperty(_this, "events", {
|
141
|
-
enumerable: true,
|
142
|
-
configurable: true,
|
143
|
-
writable: true,
|
144
|
-
value: [{
|
145
|
-
eventName: 'selectedChange',
|
146
|
-
eventLabel: i18nRuntime.i18n("257f5a3886d87d2255206f86b880d07e"),
|
147
|
-
description: i18nRuntime.i18n("6130b1f75d624b2f73f5d923492e92f7"),
|
148
|
-
dataSchema: [{
|
149
|
-
type: 'object',
|
150
|
-
properties: {
|
151
|
-
'event.data.selectedItems': {
|
152
|
-
type: 'array',
|
153
|
-
title: i18nRuntime.i18n("aeddca0456d8fe520dc95545a83458e9")
|
154
|
-
},
|
155
|
-
'event.data.unSelectedItems': {
|
156
|
-
type: 'array',
|
157
|
-
title: i18nRuntime.i18n("4f907cb94921bb62a8399adec922bb60")
|
158
|
-
}
|
159
|
-
}
|
160
|
-
}]
|
53
|
+
_this.previewSchema = {
|
54
|
+
type: 'table',
|
55
|
+
className: 'text-left m-b-none',
|
56
|
+
affixHeader: false,
|
57
|
+
items: [{
|
58
|
+
a: 1,
|
59
|
+
b: 2
|
161
60
|
}, {
|
162
|
-
|
163
|
-
|
164
|
-
description: i18nRuntime.i18n("d84464cfb2a5828a200fe9c28a323122"),
|
165
|
-
dataSchema: [{
|
166
|
-
type: 'object',
|
167
|
-
properties: {
|
168
|
-
'event.data.orderBy': {
|
169
|
-
type: 'string',
|
170
|
-
title: i18nRuntime.i18n("652f155e644e82ebb0a1aed97ab6ab23")
|
171
|
-
},
|
172
|
-
'event.data.orderDir': {
|
173
|
-
type: 'string',
|
174
|
-
title: i18nRuntime.i18n("460e3a697d1680445a47139c0816fbe6")
|
175
|
-
}
|
176
|
-
}
|
177
|
-
}]
|
61
|
+
a: 3,
|
62
|
+
b: 4
|
178
63
|
}, {
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
'event.data.filterName': {
|
186
|
-
type: 'string',
|
187
|
-
title: i18nRuntime.i18n("ad11fba3ac676233f3105e76e7de0501")
|
188
|
-
},
|
189
|
-
'event.data.filterValue': {
|
190
|
-
type: 'string',
|
191
|
-
title: i18nRuntime.i18n("8e4b9c88c51aaad1a28a28e8b536697f")
|
192
|
-
}
|
193
|
-
}
|
194
|
-
}]
|
64
|
+
a: 5,
|
65
|
+
b: 6
|
66
|
+
}],
|
67
|
+
columns: [{
|
68
|
+
label: 'A',
|
69
|
+
name: 'a'
|
195
70
|
}, {
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
71
|
+
label: 'B',
|
72
|
+
name: 'b'
|
73
|
+
}]
|
74
|
+
};
|
75
|
+
_this.panelTitle = i18nRuntime.i18n("b339aa87104709397ba68e7ebbc6e5ba");
|
76
|
+
_this.events = [{
|
77
|
+
eventName: 'selectedChange',
|
78
|
+
eventLabel: i18nRuntime.i18n("257f5a3886d87d2255206f86b880d07e"),
|
79
|
+
description: i18nRuntime.i18n("6130b1f75d624b2f73f5d923492e92f7"),
|
80
|
+
dataSchema: [{
|
81
|
+
type: 'object',
|
82
|
+
properties: {
|
83
|
+
'event.data.selectedItems': {
|
84
|
+
type: 'array',
|
85
|
+
title: i18nRuntime.i18n("aeddca0456d8fe520dc95545a83458e9")
|
86
|
+
},
|
87
|
+
'event.data.unSelectedItems': {
|
88
|
+
type: 'array',
|
89
|
+
title: i18nRuntime.i18n("4f907cb94921bb62a8399adec922bb60")
|
210
90
|
}
|
211
|
-
}
|
212
|
-
}
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
91
|
+
}
|
92
|
+
}]
|
93
|
+
}, {
|
94
|
+
eventName: 'columnSort',
|
95
|
+
eventLabel: i18nRuntime.i18n("f3d21138c8ecf5683503c4f814cc7199"),
|
96
|
+
description: i18nRuntime.i18n("d84464cfb2a5828a200fe9c28a323122"),
|
97
|
+
dataSchema: [{
|
98
|
+
type: 'object',
|
99
|
+
properties: {
|
100
|
+
'event.data.orderBy': {
|
101
|
+
type: 'string',
|
102
|
+
title: i18nRuntime.i18n("652f155e644e82ebb0a1aed97ab6ab23")
|
103
|
+
},
|
104
|
+
'event.data.orderDir': {
|
105
|
+
type: 'string',
|
106
|
+
title: i18nRuntime.i18n("460e3a697d1680445a47139c0816fbe6")
|
223
107
|
}
|
224
|
-
}
|
225
|
-
}
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
108
|
+
}
|
109
|
+
}]
|
110
|
+
}, {
|
111
|
+
eventName: 'columnFilter',
|
112
|
+
eventLabel: i18nRuntime.i18n("3d0b957a99d0c366612c01913e17a0c7"),
|
113
|
+
description: i18nRuntime.i18n("b35963687361af98e6acdc004e87fc3c"),
|
114
|
+
dataSchema: [{
|
115
|
+
type: 'object',
|
116
|
+
properties: {
|
117
|
+
'event.data.filterName': {
|
118
|
+
type: 'string',
|
119
|
+
title: i18nRuntime.i18n("ad11fba3ac676233f3105e76e7de0501")
|
120
|
+
},
|
121
|
+
'event.data.filterValue': {
|
122
|
+
type: 'string',
|
123
|
+
title: i18nRuntime.i18n("8e4b9c88c51aaad1a28a28e8b536697f")
|
236
124
|
}
|
237
|
-
}
|
238
|
-
}
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
125
|
+
}
|
126
|
+
}]
|
127
|
+
}, {
|
128
|
+
eventName: 'columnSearch',
|
129
|
+
eventLabel: i18nRuntime.i18n("93a5a0253f11e3a2e58f4e87a52fb094"),
|
130
|
+
description: i18nRuntime.i18n("6d4c4990ab2c32efe8a17c5f22e10cb5"),
|
131
|
+
dataSchema: [{
|
132
|
+
type: 'object',
|
133
|
+
properties: {
|
134
|
+
'event.data.searchName': {
|
135
|
+
type: 'string',
|
136
|
+
title: i18nRuntime.i18n("a80a4486100baf3f45fab3a59e4a816d")
|
137
|
+
},
|
138
|
+
'event.data.searchValue': {
|
139
|
+
type: 'object',
|
140
|
+
title: i18nRuntime.i18n("b9a565fe1dc488efae1d63464f277f09")
|
249
141
|
}
|
250
|
-
}
|
142
|
+
}
|
251
143
|
}]
|
252
|
-
}
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
/*
|
264
|
-
{
|
265
|
-
type: 'input-formula',
|
266
|
-
variables: '${variables}',
|
267
|
-
evalMode: false,
|
268
|
-
variableMode: 'tabs',
|
269
|
-
label: '选中项',
|
270
|
-
size: 'lg',
|
271
|
-
name: 'selected',
|
272
|
-
mode: 'horizontal'
|
144
|
+
}, {
|
145
|
+
eventName: 'orderChange',
|
146
|
+
eventLabel: i18nRuntime.i18n("85ddd38957256b6e9026f42ed570bc35"),
|
147
|
+
description: i18nRuntime.i18n("d7a66def82af88cd5d408e38feb8a65a"),
|
148
|
+
dataSchema: [{
|
149
|
+
type: 'object',
|
150
|
+
properties: {
|
151
|
+
'event.data.movedItems': {
|
152
|
+
type: 'array',
|
153
|
+
title: i18nRuntime.i18n("1987561c006c7192ab619f81103d2a2f")
|
154
|
+
}
|
273
155
|
}
|
274
|
-
*/
|
275
|
-
amisEditorCore.getSchemaTpl('formulaControl', {
|
276
|
-
name: 'selected',
|
277
|
-
label: i18nRuntime.i18n("a2b39e5a8b5015234dcd8e07a2e00e3d"),
|
278
|
-
variables: '${variables}',
|
279
|
-
size: 'lg',
|
280
|
-
mode: 'horizontal'
|
281
|
-
})])
|
282
|
-
}, {
|
283
|
-
actionType: 'selectAll',
|
284
|
-
actionLabel: i18nRuntime.i18n("366a3c07289bd6efb7c2a182f7a12772"),
|
285
|
-
description: i18nRuntime.i18n("e97c09cd119b64ae0a8dfd42a1d449cb")
|
286
|
-
}, {
|
287
|
-
actionType: 'clearAll',
|
288
|
-
actionLabel: i18nRuntime.i18n("c3e8652924c258e121eed16414d3a9e5"),
|
289
|
-
description: i18nRuntime.i18n("7619ec29c0a854dd49e0a7a47bf1a127")
|
290
|
-
}, {
|
291
|
-
actionType: 'initDrag',
|
292
|
-
actionLabel: i18nRuntime.i18n("b94bd878cae4ddc567b00a2dc4f21d74"),
|
293
|
-
description: i18nRuntime.i18n("5dc3017c21ae2e31ab127dbde8ec80e9")
|
294
156
|
}]
|
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
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
157
|
+
}, {
|
158
|
+
eventName: 'columnToggled',
|
159
|
+
eventLabel: i18nRuntime.i18n("ecfebbc91e2c18a512aeb11b7da15193"),
|
160
|
+
description: i18nRuntime.i18n("c94f45773a42dc386b9c9dcdc6fa542b"),
|
161
|
+
dataSchema: [{
|
162
|
+
type: 'object',
|
163
|
+
properties: {
|
164
|
+
'event.data.columns': {
|
165
|
+
type: 'array',
|
166
|
+
title: i18nRuntime.i18n("70567329ee851a5ba7e7301bd8e9d9a1")
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}]
|
170
|
+
}, {
|
171
|
+
eventName: 'rowClick',
|
172
|
+
eventLabel: i18nRuntime.i18n("76e47871d654c3b0b0e301c0a076e55a"),
|
173
|
+
description: i18nRuntime.i18n("cc13521eab2c7423b3fb857772405cc3"),
|
174
|
+
dataSchema: [{
|
175
|
+
type: 'object',
|
176
|
+
properties: {
|
177
|
+
'event.data.item': {
|
178
|
+
type: 'object',
|
179
|
+
title: i18nRuntime.i18n("7bb4a8abc423086dbd1edeed4cd3f718")
|
180
|
+
},
|
181
|
+
'event.data.index': {
|
182
|
+
type: 'number',
|
183
|
+
title: i18nRuntime.i18n("f74fd69ce55e3f96fe9a032c0da42330")
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}]
|
187
|
+
}, {
|
188
|
+
eventName: 'rowMouseEnter',
|
189
|
+
eventLabel: i18nRuntime.i18n("5db079b140feffa84c84d1b51d824dea"),
|
190
|
+
description: i18nRuntime.i18n("90a5608bcd85a3cfcfbb5263a229915c"),
|
191
|
+
dataSchema: [{
|
192
|
+
type: 'object',
|
193
|
+
properties: {
|
194
|
+
'event.data.item': {
|
195
|
+
type: 'object',
|
196
|
+
title: i18nRuntime.i18n("7bb4a8abc423086dbd1edeed4cd3f718")
|
197
|
+
},
|
198
|
+
'event.data.index': {
|
199
|
+
type: 'number',
|
200
|
+
title: i18nRuntime.i18n("f74fd69ce55e3f96fe9a032c0da42330")
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}]
|
204
|
+
}, {
|
205
|
+
eventName: 'rowMouseLeave',
|
206
|
+
eventLabel: i18nRuntime.i18n("e8bf039de5dc6751c4045f55930e0c83"),
|
207
|
+
description: i18nRuntime.i18n("f1ca0d305f3251a81f361a2dc8e11fff"),
|
208
|
+
dataSchema: [{
|
209
|
+
type: 'object',
|
210
|
+
properties: {
|
211
|
+
'event.data.item': {
|
212
|
+
type: 'object',
|
213
|
+
title: i18nRuntime.i18n("7bb4a8abc423086dbd1edeed4cd3f718")
|
214
|
+
},
|
215
|
+
'event.data.index': {
|
216
|
+
type: 'number',
|
217
|
+
title: i18nRuntime.i18n("f74fd69ce55e3f96fe9a032c0da42330")
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}]
|
221
|
+
}];
|
222
|
+
_this.actions = [{
|
223
|
+
actionType: 'select',
|
224
|
+
actionLabel: i18nRuntime.i18n("8eb3c8b16106e5487cd1fa3b8a1342ce"),
|
225
|
+
description: i18nRuntime.i18n("908cc16fe4f7972450167e26276ac726"),
|
226
|
+
innerArgs: ['selected'],
|
227
|
+
schema: helper.getArgsWrapper([
|
228
|
+
/*
|
229
|
+
{
|
230
|
+
type: 'input-formula',
|
231
|
+
variables: '${variables}',
|
232
|
+
evalMode: false,
|
233
|
+
variableMode: 'tabs',
|
234
|
+
label: '选中项',
|
235
|
+
size: 'lg',
|
236
|
+
name: 'selected',
|
237
|
+
mode: 'horizontal'
|
238
|
+
}
|
239
|
+
*/
|
240
|
+
amisEditorCore.getSchemaTpl('formulaControl', {
|
241
|
+
name: 'selected',
|
242
|
+
label: i18nRuntime.i18n("a2b39e5a8b5015234dcd8e07a2e00e3d"),
|
243
|
+
variables: '${variables}',
|
244
|
+
size: 'lg',
|
245
|
+
mode: 'horizontal'
|
246
|
+
})])
|
247
|
+
}, {
|
248
|
+
actionType: 'selectAll',
|
249
|
+
actionLabel: i18nRuntime.i18n("366a3c07289bd6efb7c2a182f7a12772"),
|
250
|
+
description: i18nRuntime.i18n("e97c09cd119b64ae0a8dfd42a1d449cb")
|
251
|
+
}, {
|
252
|
+
actionType: 'clearAll',
|
253
|
+
actionLabel: i18nRuntime.i18n("c3e8652924c258e121eed16414d3a9e5"),
|
254
|
+
description: i18nRuntime.i18n("7619ec29c0a854dd49e0a7a47bf1a127")
|
255
|
+
}, {
|
256
|
+
actionType: 'initDrag',
|
257
|
+
actionLabel: i18nRuntime.i18n("b94bd878cae4ddc567b00a2dc4f21d74"),
|
258
|
+
description: i18nRuntime.i18n("5dc3017c21ae2e31ab127dbde8ec80e9")
|
259
|
+
}];
|
260
|
+
_this.panelJustify = true;
|
261
|
+
_this.panelBodyCreator = function (context) {
|
262
|
+
var isCRUDBody = context.schema.type === 'crud';
|
263
|
+
var i18nEnabled = amisEditorCore.getI18nEnabled();
|
264
|
+
return amisEditorCore.getSchemaTpl('tabs', [{
|
265
|
+
title: i18nRuntime.i18n("24d67862f87f439db7ca957aecb77cce"),
|
266
|
+
body: amisEditorCore.getSchemaTpl('collapseGroup', [{
|
267
|
+
title: i18nRuntime.i18n("4092ed98e9035652d4c9ca9441701ed7"),
|
268
|
+
body: [{
|
269
|
+
name: 'title',
|
270
|
+
type: i18nEnabled ? 'input-text-i18n' : 'input-text',
|
271
|
+
label: i18nRuntime.i18n("32c65d8d7431e76029678ec7bb73a5ab")
|
272
|
+
}, isCRUDBody ? null : amisEditorCore.getSchemaTpl('sourceBindControl', {
|
273
|
+
label: i18nRuntime.i18n("c11322c9cc43ce3c004cf03f5ac0acd0")
|
274
|
+
}), {
|
275
|
+
name: 'combineNum',
|
276
|
+
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("25915fb58615ba9a5e145efa252fec30"), i18nRuntime.i18n("80174cabf025dfe269aee5390b813708")),
|
277
|
+
type: 'input-number',
|
278
|
+
labelAlign: 'left',
|
279
|
+
horizontal: {
|
280
|
+
left: 5,
|
281
|
+
right: 7
|
282
|
+
},
|
283
|
+
placeholder: i18nRuntime.i18n("d7d0936858fcdf4ffdb2899451ec74fc")
|
284
|
+
}, {
|
285
|
+
type: 'ae-switch-more',
|
286
|
+
mode: 'normal',
|
287
|
+
formType: 'extend',
|
288
|
+
label: i18nRuntime.i18n("86aafaa75b388deb4a4cbdab2293c099"),
|
289
|
+
name: 'showHeader',
|
290
|
+
form: {
|
291
|
+
body: [{
|
292
|
+
children: React__default["default"].createElement(amis.Button, {
|
293
|
+
level: "primary",
|
294
|
+
size: "sm",
|
295
|
+
block: true,
|
296
|
+
onClick: _this.editHeaderDetail.bind(_this, context.id)
|
297
|
+
}, "\u914D\u7F6E\u5934\u90E8")
|
298
|
+
}]
|
299
|
+
}
|
300
|
+
}, {
|
301
|
+
type: 'ae-switch-more',
|
302
|
+
mode: 'normal',
|
303
|
+
formType: 'extend',
|
304
|
+
label: i18nRuntime.i18n("12c4c5e8abda77e1fdc93653d6414187"),
|
305
|
+
name: 'showFooter',
|
306
|
+
form: {
|
307
|
+
body: [{
|
308
|
+
children: React__default["default"].createElement(amis.Button, {
|
309
|
+
level: "primary",
|
310
|
+
size: "sm",
|
311
|
+
block: true,
|
312
|
+
onClick: _this.editFooterDetail.bind(_this, context.id)
|
313
|
+
}, "\u914D\u7F6E\u5E95\u90E8")
|
314
|
+
}]
|
315
|
+
}
|
316
|
+
}
|
317
|
+
// {
|
318
|
+
// children: (
|
319
|
+
// <div>
|
320
|
+
// <Button
|
321
|
+
// level="info"
|
322
|
+
// size="sm"
|
323
|
+
// className="m-b-sm"
|
324
|
+
// block
|
325
|
+
// onClick={this.handleAdd}
|
326
|
+
// >
|
327
|
+
// 新增一列
|
328
|
+
// </Button>
|
329
|
+
// </div>
|
330
|
+
// )
|
331
|
+
// },
|
332
|
+
// {
|
333
|
+
// children: (
|
334
|
+
// <div>
|
335
|
+
// <Button
|
336
|
+
// level="success"
|
337
|
+
// size="sm"
|
338
|
+
// block
|
339
|
+
// onClick={this.handleColumnsQuickEdit.bind(this)}
|
340
|
+
// >
|
341
|
+
// 快速编辑列信息
|
342
|
+
// </Button>
|
343
|
+
// </div>
|
344
|
+
// )
|
345
|
+
// }
|
346
|
+
]
|
347
|
+
}, amisEditorCore.getSchemaTpl('status')])
|
348
|
+
}, {
|
349
|
+
title: i18nRuntime.i18n("afcde2611bdd13c1e65b4fb6a2f13425"),
|
350
|
+
body: amisEditorCore.getSchemaTpl('collapseGroup', [{
|
351
|
+
title: i18nRuntime.i18n("4092ed98e9035652d4c9ca9441701ed7"),
|
352
|
+
body: [{
|
353
|
+
name: 'columnsTogglable',
|
354
|
+
label: i18nRuntime.i18n("14921c3831512876f6d58b2a497b86df"),
|
355
|
+
type: 'button-group-select',
|
356
|
+
pipeIn: amisEditorCore.defaultValue('auto'),
|
357
|
+
size: 'sm',
|
358
|
+
labelAlign: 'left',
|
359
|
+
horizontal: {
|
360
|
+
left: 5,
|
361
|
+
right: 7
|
362
|
+
},
|
363
|
+
options: [{
|
364
|
+
label: i18nRuntime.i18n("3aed2c11e95a9c0ea1d853d4aee72e8c"),
|
365
|
+
value: 'auto'
|
333
366
|
}, {
|
334
|
-
|
335
|
-
|
336
|
-
formType: 'extend',
|
337
|
-
label: i18nRuntime.i18n("86aafaa75b388deb4a4cbdab2293c099"),
|
338
|
-
name: 'showHeader',
|
339
|
-
form: {
|
340
|
-
body: [{
|
341
|
-
children: React__default["default"].createElement(amis.Button, {
|
342
|
-
level: "primary",
|
343
|
-
size: "sm",
|
344
|
-
block: true,
|
345
|
-
onClick: _this.editHeaderDetail.bind(_this, context.id)
|
346
|
-
}, "\u914D\u7F6E\u5934\u90E8")
|
347
|
-
}]
|
348
|
-
}
|
367
|
+
label: i18nRuntime.i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),
|
368
|
+
value: true
|
349
369
|
}, {
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
}]
|
364
|
-
}
|
370
|
+
label: i18nRuntime.i18n("b15d91274e9fc68608c609999e0413fa"),
|
371
|
+
value: false
|
372
|
+
}],
|
373
|
+
description: i18nRuntime.i18n("6fe0b71c07a5ce5f7a09f7fdb1d63827")
|
374
|
+
}, amisEditorCore.getSchemaTpl('switch', {
|
375
|
+
name: 'affixHeader',
|
376
|
+
label: i18nRuntime.i18n("e8bb313fb86cf474c0e264794bc85896"),
|
377
|
+
pipeIn: amisEditorCore.defaultValue(true)
|
378
|
+
}), amisEditorCore.getSchemaTpl('switch', {
|
379
|
+
name: 'footable',
|
380
|
+
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("5006fdc5659989e42c3855c17c57f878"), i18nRuntime.i18n("9db359f376a1a588ef7dcbef53cc114a")),
|
381
|
+
pipeIn: function (value) {
|
382
|
+
return !!value;
|
365
383
|
}
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
// 新增一列
|
377
|
-
// </Button>
|
378
|
-
// </div>
|
379
|
-
// )
|
380
|
-
// },
|
381
|
-
// {
|
382
|
-
// children: (
|
383
|
-
// <div>
|
384
|
-
// <Button
|
385
|
-
// level="success"
|
386
|
-
// size="sm"
|
387
|
-
// block
|
388
|
-
// onClick={this.handleColumnsQuickEdit.bind(this)}
|
389
|
-
// >
|
390
|
-
// 快速编辑列信息
|
391
|
-
// </Button>
|
392
|
-
// </div>
|
393
|
-
// )
|
394
|
-
// }
|
395
|
-
]
|
396
|
-
}, amisEditorCore.getSchemaTpl('status')])
|
397
|
-
}, {
|
398
|
-
title: i18nRuntime.i18n("afcde2611bdd13c1e65b4fb6a2f13425"),
|
399
|
-
body: amisEditorCore.getSchemaTpl('collapseGroup', [{
|
400
|
-
title: i18nRuntime.i18n("4092ed98e9035652d4c9ca9441701ed7"),
|
401
|
-
body: [{
|
402
|
-
name: 'columnsTogglable',
|
403
|
-
label: i18nRuntime.i18n("14921c3831512876f6d58b2a497b86df"),
|
404
|
-
type: 'button-group-select',
|
405
|
-
pipeIn: amisEditorCore.defaultValue('auto'),
|
406
|
-
size: 'sm',
|
407
|
-
labelAlign: 'left',
|
408
|
-
horizontal: {
|
409
|
-
left: 5,
|
410
|
-
right: 7
|
411
|
-
},
|
412
|
-
options: [{
|
413
|
-
label: i18nRuntime.i18n("3aed2c11e95a9c0ea1d853d4aee72e8c"),
|
414
|
-
value: 'auto'
|
415
|
-
}, {
|
416
|
-
label: i18nRuntime.i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),
|
417
|
-
value: true
|
418
|
-
}, {
|
419
|
-
label: i18nRuntime.i18n("b15d91274e9fc68608c609999e0413fa"),
|
420
|
-
value: false
|
421
|
-
}],
|
422
|
-
description: i18nRuntime.i18n("6fe0b71c07a5ce5f7a09f7fdb1d63827")
|
423
|
-
}, amisEditorCore.getSchemaTpl('switch', {
|
424
|
-
name: 'affixHeader',
|
425
|
-
label: i18nRuntime.i18n("e8bb313fb86cf474c0e264794bc85896"),
|
426
|
-
pipeIn: amisEditorCore.defaultValue(true)
|
427
|
-
}), amisEditorCore.getSchemaTpl('switch', {
|
428
|
-
name: 'footable',
|
429
|
-
label: amisEditorCore.tipedLabel(i18nRuntime.i18n("5006fdc5659989e42c3855c17c57f878"), i18nRuntime.i18n("9db359f376a1a588ef7dcbef53cc114a")),
|
430
|
-
pipeIn: function (value) {
|
431
|
-
return !!value;
|
432
|
-
}
|
433
|
-
}), {
|
434
|
-
name: 'footable.expand',
|
435
|
-
type: 'button-group-select',
|
436
|
-
size: 'sm',
|
437
|
-
visibleOn: 'data.footable',
|
438
|
-
label: i18nRuntime.i18n("df74194830e695efbfce16c0c64223cf"),
|
439
|
-
pipeIn: amisEditorCore.defaultValue('none'),
|
440
|
-
options: [{
|
441
|
-
label: i18nRuntime.i18n("94be543c4fd399f0839211464c8583ce"),
|
442
|
-
value: 'first'
|
443
|
-
}, {
|
444
|
-
label: i18nRuntime.i18n("9a7b52fc8659f1786907fe93efa85bf7"),
|
445
|
-
value: 'all'
|
446
|
-
}, {
|
447
|
-
label: i18nRuntime.i18n("b07deca9076bd3354b1b2709d58d725a"),
|
448
|
-
value: 'none'
|
449
|
-
}]
|
384
|
+
}), {
|
385
|
+
name: 'footable.expand',
|
386
|
+
type: 'button-group-select',
|
387
|
+
size: 'sm',
|
388
|
+
visibleOn: 'data.footable',
|
389
|
+
label: i18nRuntime.i18n("df74194830e695efbfce16c0c64223cf"),
|
390
|
+
pipeIn: amisEditorCore.defaultValue('none'),
|
391
|
+
options: [{
|
392
|
+
label: i18nRuntime.i18n("94be543c4fd399f0839211464c8583ce"),
|
393
|
+
value: 'first'
|
450
394
|
}, {
|
451
|
-
|
452
|
-
|
453
|
-
type: 'input-text',
|
454
|
-
label: i18nRuntime.i18n("35ba83e053cef95e55dfffde279822b5")
|
395
|
+
label: i18nRuntime.i18n("9a7b52fc8659f1786907fe93efa85bf7"),
|
396
|
+
value: 'all'
|
455
397
|
}, {
|
456
|
-
|
457
|
-
|
458
|
-
label: i18nRuntime.i18n("76b3250fb1e8593fac075b64029300fa"),
|
459
|
-
placeholder: "\u652F\u6301\u6A21\u677F\u8BED\u6CD5\uFF0C\u5982 <%= data.id % 2 ? 'bg-success' : '' %>"
|
398
|
+
label: i18nRuntime.i18n("b07deca9076bd3354b1b2709d58d725a"),
|
399
|
+
value: 'none'
|
460
400
|
}]
|
461
401
|
}, {
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
name: '
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
402
|
+
name: 'placeholder',
|
403
|
+
pipeIn: amisEditorCore.defaultValue(i18nRuntime.i18n("21efd88b67a39834582ad99aabb9dc60")),
|
404
|
+
type: 'input-text',
|
405
|
+
label: i18nRuntime.i18n("35ba83e053cef95e55dfffde279822b5")
|
406
|
+
}, {
|
407
|
+
name: 'rowClassNameExpr',
|
408
|
+
type: 'input-text',
|
409
|
+
label: i18nRuntime.i18n("76b3250fb1e8593fac075b64029300fa"),
|
410
|
+
placeholder: "\u652F\u6301\u6A21\u677F\u8BED\u6CD5\uFF0C\u5982 <%= data.id % 2 ? 'bg-success' : '' %>"
|
411
|
+
}]
|
412
|
+
}, {
|
413
|
+
title: i18nRuntime.i18n("261bba7ad82914e477f4b37f6a83874e"),
|
414
|
+
body: [amisEditorCore.getSchemaTpl('className', {
|
415
|
+
label: i18nRuntime.i18n("5e5d3f13111593b2710673006d4c8297")
|
416
|
+
}), amisEditorCore.getSchemaTpl('className', {
|
417
|
+
name: 'tableClassName',
|
418
|
+
label: i18nRuntime.i18n("b339aa87104709397ba68e7ebbc6e5ba")
|
419
|
+
}), amisEditorCore.getSchemaTpl('className', {
|
420
|
+
name: 'headerClassName',
|
421
|
+
label: i18nRuntime.i18n("9e25d776a57c610940bcc1c19847b97d")
|
422
|
+
}), amisEditorCore.getSchemaTpl('className', {
|
423
|
+
name: 'footerClassName',
|
424
|
+
label: i18nRuntime.i18n("2ec1b0bb189b486945e79c167a4a024d")
|
425
|
+
}), amisEditorCore.getSchemaTpl('className', {
|
426
|
+
name: 'toolbarClassName',
|
427
|
+
label: i18nRuntime.i18n("012f602372cd2dbd639cd966c63e1f90")
|
428
|
+
})]
|
429
|
+
}])
|
430
|
+
}, isCRUDBody ? null : {
|
431
|
+
title: i18nRuntime.i18n("10b2761db5a8e089049df39675abc550"),
|
432
|
+
className: 'p-none',
|
433
|
+
body: [amisEditorCore.getSchemaTpl('eventControl', tslib.__assign({
|
434
|
+
name: 'onEvent'
|
435
|
+
}, helper.getEventControlConfig(_this.manager, context)))]
|
436
|
+
}]);
|
437
|
+
};
|
488
438
|
return _this;
|
489
439
|
}
|
490
440
|
Object.defineProperty(TablePlugin.prototype, "scaffoldForm", {
|
@@ -554,212 +504,200 @@ var TablePlugin = /** @class */function (_super) {
|
|
554
504
|
enumerable: false,
|
555
505
|
configurable: true
|
556
506
|
});
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
props.columns.forEach(function (column) {
|
567
|
-
if (column.name) {
|
568
|
-
amisCore.setVariable(mockedData_1, column.name, amisEditorCore.mockValue(column));
|
569
|
-
}
|
570
|
-
});
|
571
|
-
}
|
572
|
-
props.value = amisEditorCore.repeatArray(mockedData_1, 1).map(function (item, index) {
|
573
|
-
return tslib.__assign(tslib.__assign({}, item), {
|
574
|
-
id: index + 1
|
575
|
-
});
|
507
|
+
TablePlugin.prototype.filterProps = function (props) {
|
508
|
+
var arr = util.resolveArrayDatasource(props);
|
509
|
+
if (!Array.isArray(arr) || !arr.length) {
|
510
|
+
var mockedData_1 = {};
|
511
|
+
if (Array.isArray(props.columns)) {
|
512
|
+
props.columns.forEach(function (column) {
|
513
|
+
if (column.name) {
|
514
|
+
amisCore.setVariable(mockedData_1, column.name, amisEditorCore.mockValue(column));
|
515
|
+
}
|
576
516
|
});
|
577
|
-
} else {
|
578
|
-
// 只取10条预览,否则太多卡顿
|
579
|
-
props.value = arr.slice(0, 10);
|
580
517
|
}
|
581
|
-
|
582
|
-
|
583
|
-
|
518
|
+
props.value = amisEditorCore.repeatArray(mockedData_1, 1).map(function (item, index) {
|
519
|
+
return tslib.__assign(tslib.__assign({}, item), {
|
520
|
+
id: index + 1
|
521
|
+
});
|
522
|
+
});
|
523
|
+
} else {
|
524
|
+
// 只取10条预览,否则太多卡顿
|
525
|
+
props.value = arr.slice(0, 10);
|
584
526
|
}
|
585
|
-
|
527
|
+
// 编辑模式,不允许表格调整宽度
|
528
|
+
props.resizable = false;
|
529
|
+
return props;
|
530
|
+
};
|
586
531
|
// 为了能够自动注入数据。
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
filterProps: plugin.filterProps,
|
607
|
-
$schema: plugin.$schema,
|
608
|
-
renderRenderer: plugin.renderRenderer
|
609
|
-
});
|
610
|
-
}
|
611
|
-
return _super.prototype.getRendererInfo.call(this, context);
|
532
|
+
TablePlugin.prototype.getRendererInfo = function (context) {
|
533
|
+
var _a;
|
534
|
+
var plugin = this;
|
535
|
+
var schema = context.schema,
|
536
|
+
renderer = context.renderer;
|
537
|
+
if (!schema.$$id && ((_a = schema.$$editor) === null || _a === void 0 ? void 0 : _a.renderer.name) === 'crud' && renderer.name === 'table') {
|
538
|
+
return tslib.__assign(tslib.__assign({}, {
|
539
|
+
id: schema.$$editor.id
|
540
|
+
}), {
|
541
|
+
name: plugin.name,
|
542
|
+
regions: plugin.regions,
|
543
|
+
patchContainers: plugin.patchContainers,
|
544
|
+
vRendererConfig: plugin.vRendererConfig,
|
545
|
+
wrapperProps: plugin.wrapperProps,
|
546
|
+
wrapperResolve: plugin.wrapperResolve,
|
547
|
+
filterProps: plugin.filterProps,
|
548
|
+
$schema: plugin.$schema,
|
549
|
+
renderRenderer: plugin.renderRenderer
|
550
|
+
});
|
612
551
|
}
|
613
|
-
|
552
|
+
return _super.prototype.getRendererInfo.call(this, context);
|
553
|
+
};
|
614
554
|
// 自动插入 label
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
if ((context.info.plugin === this || ((_a = context.node.sameIdChild) === null || _a === void 0 ? void 0 : _a.info.plugin) === this) && context.region === 'columns') {
|
623
|
-
context.data = tslib.__assign(tslib.__assign({}, context.data), {
|
624
|
-
label: (_d = (_b = context.data.label) !== null && _b !== void 0 ? _b : (_c = context.subRenderer) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : i18nRuntime.i18n("bcee820bc20342a4d388a35ed32a35fe")
|
625
|
-
});
|
626
|
-
}
|
555
|
+
TablePlugin.prototype.beforeInsert = function (event) {
|
556
|
+
var _a, _b, _c, _d;
|
557
|
+
var context = event.context;
|
558
|
+
if ((context.info.plugin === this || ((_a = context.node.sameIdChild) === null || _a === void 0 ? void 0 : _a.info.plugin) === this) && context.region === 'columns') {
|
559
|
+
context.data = tslib.__assign(tslib.__assign({}, context.data), {
|
560
|
+
label: (_d = (_b = context.data.label) !== null && _b !== void 0 ? _b : (_c = context.subRenderer) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : i18nRuntime.i18n("bcee820bc20342a4d388a35ed32a35fe")
|
561
|
+
});
|
627
562
|
}
|
628
|
-
}
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
_f = {
|
563
|
+
};
|
564
|
+
TablePlugin.prototype.buildDataSchemas = function (node, region, trigger) {
|
565
|
+
var _a;
|
566
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
567
|
+
var itemsSchema, columns, _b, _c, current, cellProperties, isColumnChild;
|
568
|
+
var e_1, _d;
|
569
|
+
return tslib.__generator(this, function (_e) {
|
570
|
+
itemsSchema = {
|
571
|
+
$id: 'tableRow',
|
572
|
+
type: 'object',
|
573
|
+
properties: {}
|
574
|
+
};
|
575
|
+
columns = node.children.find(function (item) {
|
576
|
+
return item.isRegion && item.region === 'columns';
|
577
|
+
});
|
578
|
+
try {
|
579
|
+
// todo:以下的处理无效,需要cell实现才能深层细化
|
580
|
+
// for (let current of columns?.children) {
|
581
|
+
// const schema = current.schema;
|
582
|
+
// if (schema.name) {
|
583
|
+
// itemsSchema.properties[schema.name] = current.info?.plugin
|
584
|
+
// ?.buildDataSchemas
|
585
|
+
// ? await current.info.plugin.buildDataSchemas(current, region)
|
586
|
+
// : {
|
587
|
+
// type: 'string',
|
588
|
+
// title: schema.label || schema.name
|
589
|
+
// };
|
590
|
+
// }
|
591
|
+
// }
|
592
|
+
// 一期先简单处理,上面todo实现之后,这里可以废弃
|
593
|
+
// table 无法根据source确定异步数据来源,因此不能在table层做异步数据列的收集
|
594
|
+
for (_b = tslib.__values((_a = node.schema) === null || _a === void 0 ? void 0 : _a.columns), _c = _b.next(); !_c.done; _c = _b.next()) {
|
595
|
+
current = _c.value;
|
596
|
+
if (current.name) {
|
597
|
+
itemsSchema.properties[current.name] = {
|
664
598
|
type: 'string',
|
665
|
-
title:
|
599
|
+
title: current.label || current.name
|
666
600
|
};
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
cellProperties = {};
|
679
|
-
if (trigger) {
|
680
|
-
isColumnChild = amisCore.someTree(columns === null || columns === void 0 ? void 0 : columns.children, function (item) {
|
681
|
-
return item.id === trigger.id;
|
682
|
-
});
|
683
|
-
isColumnChild && (cellProperties = itemsSchema.properties);
|
684
|
-
}
|
685
|
-
return [2 /*return*/, {
|
686
|
-
$id: 'table',
|
687
|
-
type: 'object',
|
688
|
-
properties: tslib.__assign(tslib.__assign({}, cellProperties), {
|
689
|
-
rows: {
|
690
|
-
type: 'array',
|
691
|
-
title: i18nRuntime.i18n("77fdd35933c099cdcb64b71f3fbe7a6c"),
|
692
|
-
items: itemsSchema
|
693
|
-
}
|
694
|
-
})
|
695
|
-
}];
|
601
|
+
}
|
602
|
+
}
|
603
|
+
} catch (e_1_1) {
|
604
|
+
e_1 = {
|
605
|
+
error: e_1_1
|
606
|
+
};
|
607
|
+
} finally {
|
608
|
+
try {
|
609
|
+
if (_c && !_c.done && (_d = _b.return)) _d.call(_b);
|
610
|
+
} finally {
|
611
|
+
if (e_1) throw e_1.error;
|
696
612
|
}
|
697
|
-
});
|
698
|
-
});
|
699
|
-
}
|
700
|
-
});
|
701
|
-
Object.defineProperty(TablePlugin.prototype, "editHeaderDetail", {
|
702
|
-
enumerable: false,
|
703
|
-
configurable: true,
|
704
|
-
writable: true,
|
705
|
-
value: function (id) {
|
706
|
-
var _a;
|
707
|
-
var manager = this.manager;
|
708
|
-
var store = manager.store;
|
709
|
-
var node = store.getNodeById(id);
|
710
|
-
var value = store.getValueOf(id);
|
711
|
-
var defaultHeader = {
|
712
|
-
type: 'tpl',
|
713
|
-
tpl: i18nRuntime.i18n("86aafaa75b388deb4a4cbdab2293c099"),
|
714
|
-
wrapperComponent: ''
|
715
|
-
};
|
716
|
-
node && value && this.manager.openSubEditor({
|
717
|
-
title: i18nRuntime.i18n("e6aa1b827415217c524ae9d9b665cca5"),
|
718
|
-
value: (_a = value.header) !== null && _a !== void 0 ? _a : defaultHeader,
|
719
|
-
slot: {
|
720
|
-
type: 'container',
|
721
|
-
body: '$$'
|
722
|
-
},
|
723
|
-
onChange: function (newValue) {
|
724
|
-
newValue = tslib.__assign(tslib.__assign({}, value), {
|
725
|
-
header: newValue
|
726
|
-
});
|
727
|
-
manager.panelChangeValue(newValue, amisEditorCore.diff(value, newValue));
|
728
613
|
}
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
value: function (id) {
|
737
|
-
var _a;
|
738
|
-
var manager = this.manager;
|
739
|
-
var store = manager.store;
|
740
|
-
var node = store.getNodeById(id);
|
741
|
-
var value = store.getValueOf(id);
|
742
|
-
var defaultFooter = {
|
743
|
-
type: 'tpl',
|
744
|
-
tpl: i18nRuntime.i18n("12c4c5e8abda77e1fdc93653d6414187"),
|
745
|
-
wrapperComponent: ''
|
746
|
-
};
|
747
|
-
node && value && this.manager.openSubEditor({
|
748
|
-
title: i18nRuntime.i18n("a2ecfd5a0db9c855f59eea75083678e6"),
|
749
|
-
value: (_a = value.footer) !== null && _a !== void 0 ? _a : defaultFooter,
|
750
|
-
slot: {
|
751
|
-
type: 'container',
|
752
|
-
body: '$$'
|
753
|
-
},
|
754
|
-
onChange: function (newValue) {
|
755
|
-
newValue = tslib.__assign(tslib.__assign({}, value), {
|
756
|
-
footer: newValue
|
614
|
+
if ((region === null || region === void 0 ? void 0 : region.region) === 'columns') {
|
615
|
+
return [2 /*return*/, itemsSchema];
|
616
|
+
}
|
617
|
+
cellProperties = {};
|
618
|
+
if (trigger) {
|
619
|
+
isColumnChild = amisCore.someTree(columns === null || columns === void 0 ? void 0 : columns.children, function (item) {
|
620
|
+
return item.id === trigger.id;
|
757
621
|
});
|
758
|
-
|
622
|
+
isColumnChild && (cellProperties = itemsSchema.properties);
|
759
623
|
}
|
624
|
+
return [2 /*return*/, {
|
625
|
+
$id: 'table',
|
626
|
+
type: 'object',
|
627
|
+
properties: tslib.__assign(tslib.__assign({}, cellProperties), {
|
628
|
+
rows: {
|
629
|
+
type: 'array',
|
630
|
+
title: i18nRuntime.i18n("77fdd35933c099cdcb64b71f3fbe7a6c"),
|
631
|
+
items: itemsSchema
|
632
|
+
},
|
633
|
+
selectedItems: {
|
634
|
+
type: 'array',
|
635
|
+
title: i18nRuntime.i18n("41c5c859a80b635c23b3b4d1d8b44efb")
|
636
|
+
// items: itemsSchema
|
637
|
+
},
|
638
|
+
unSelectedItems: {
|
639
|
+
type: 'array',
|
640
|
+
title: i18nRuntime.i18n("f87912f19be48f36e4e261e585764d6e")
|
641
|
+
// items: itemsSchema
|
642
|
+
}
|
643
|
+
})
|
644
|
+
}];
|
760
645
|
});
|
761
|
-
}
|
762
|
-
}
|
646
|
+
});
|
647
|
+
};
|
648
|
+
|
649
|
+
TablePlugin.prototype.editHeaderDetail = function (id) {
|
650
|
+
var _a;
|
651
|
+
var manager = this.manager;
|
652
|
+
var store = manager.store;
|
653
|
+
var node = store.getNodeById(id);
|
654
|
+
var value = store.getValueOf(id);
|
655
|
+
var defaultHeader = {
|
656
|
+
type: 'tpl',
|
657
|
+
tpl: i18nRuntime.i18n("86aafaa75b388deb4a4cbdab2293c099"),
|
658
|
+
wrapperComponent: ''
|
659
|
+
};
|
660
|
+
node && value && this.manager.openSubEditor({
|
661
|
+
title: i18nRuntime.i18n("e6aa1b827415217c524ae9d9b665cca5"),
|
662
|
+
value: util.schemaToArray((_a = value.header) !== null && _a !== void 0 ? _a : defaultHeader),
|
663
|
+
slot: {
|
664
|
+
type: 'container',
|
665
|
+
body: '$$'
|
666
|
+
},
|
667
|
+
onChange: function (newValue) {
|
668
|
+
newValue = tslib.__assign(tslib.__assign({}, value), {
|
669
|
+
header: util.schemaArrayFormat(newValue)
|
670
|
+
});
|
671
|
+
manager.panelChangeValue(newValue, amisEditorCore.diff(value, newValue));
|
672
|
+
}
|
673
|
+
});
|
674
|
+
};
|
675
|
+
TablePlugin.prototype.editFooterDetail = function (id) {
|
676
|
+
var _a;
|
677
|
+
var manager = this.manager;
|
678
|
+
var store = manager.store;
|
679
|
+
var node = store.getNodeById(id);
|
680
|
+
var value = store.getValueOf(id);
|
681
|
+
var defaultFooter = {
|
682
|
+
type: 'tpl',
|
683
|
+
tpl: i18nRuntime.i18n("12c4c5e8abda77e1fdc93653d6414187"),
|
684
|
+
wrapperComponent: ''
|
685
|
+
};
|
686
|
+
node && value && this.manager.openSubEditor({
|
687
|
+
title: i18nRuntime.i18n("a2ecfd5a0db9c855f59eea75083678e6"),
|
688
|
+
value: util.schemaToArray((_a = value.footer) !== null && _a !== void 0 ? _a : defaultFooter),
|
689
|
+
slot: {
|
690
|
+
type: 'container',
|
691
|
+
body: '$$'
|
692
|
+
},
|
693
|
+
onChange: function (newValue) {
|
694
|
+
newValue = tslib.__assign(tslib.__assign({}, value), {
|
695
|
+
footer: util.schemaArrayFormat(newValue)
|
696
|
+
});
|
697
|
+
manager.panelChangeValue(newValue, amisEditorCore.diff(value, newValue));
|
698
|
+
}
|
699
|
+
});
|
700
|
+
};
|
763
701
|
return TablePlugin;
|
764
702
|
}(amisEditorCore.BasePlugin);
|
765
703
|
amisEditorCore.registerEditorPlugin(TablePlugin);
|